{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s:1", "text": "/******************************************************************************\n * @file     startup_ARMCA9.s\n * @brief    CMSIS Device System Source File for ARM Cortex-A5 Device Series\n * @version  V1.00\n * @date     01 Nov 2017\n *\n * @note\n *\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n  MODULE  ?startup_ARMCA5\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Handler\n *----------------------------------------------------------------------------*/\n  PUBLIC  Reset_Handler\n  PUBWEAK Undef_Handler\n  PUBWEAK SVC_Handler\n  PUBWEAK PAbt_Handler\n  PUBWEAK DAbt_Handler\n  PUBWEAK IRQ_Handler\n  PUBWEAK FIQ_Handler\n\n  SECTION SVC_STACK:DATA:NOROOT(3)\n  SECTION IRQ_STACK:DATA:NOROOT(3)\n  SECTION FIQ_STACK:DATA:NOROOT(3)\n  SECTION ABT_STACK:DATA:NOROOT(3)\n  SECTION UND_STACK:DATA:NOROOT(3)\n  SECTION USR_STACK:DATA:NOROOT(3)\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n  section RESET:CODE:NOROOT(2)\n  PUBLIC  Vectors\n\nVectors:\n  LDR    PC, =Reset_Handler\n  LDR    PC, =Undef_Handler\n  LDR    PC, =SVC_Handler\n  LDR    PC, =PAbt_Handler\n  LDR    PC, =DAbt_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s:2", "text": "SECTION SVC_STACK:DATA:NOROOT(3)\n  SECTION IRQ_STACK:DATA:NOROOT(3)\n  SECTION FIQ_STACK:DATA:NOROOT(3)\n  SECTION ABT_STACK:DATA:NOROOT(3)\n  SECTION UND_STACK:DATA:NOROOT(3)\n  SECTION USR_STACK:DATA:NOROOT(3)\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n  section RESET:CODE:NOROOT(2)\n  PUBLIC  Vectors\n\nVectors:\n  LDR    PC, =Reset_Handler\n  LDR    PC, =Undef_Handler\n  LDR    PC, =SVC_Handler\n  LDR    PC, =PAbt_Handler\n  LDR    PC, =DAbt_Handler\n  NOP\n  LDR    PC, =IRQ_Handler\n  LDR    PC, =FIQ_Handler\n\n\n  section .text:CODE:NOROOT(4)\n\n/*----------------------------------------------------------------------------\n  Reset Handler called on controller reset\n  *----------------------------------------------------------------------------*/\n  EXTERN  SystemInit\n  EXTERN  __iar_program_start\n\nReset_Handler:\n\n  // Mask interrupts\n  CPSID   if\n\n  // Put any cores other than 0 to sleep\n  MRC     p15, 0, R0, c0, c0, 5\n  ANDS    R0, R0, #3\ngoToSleep:\n  WFINE\n  BNE     goToSleep\n\n  // Reset SCTLR Settings\n  MRC     p15, 0, R0, c1, c0, 0 // Read CP15 System Control register\n  BIC     R0, R0, #(0x1 << 12) // Clear I bit 12 to disable I Cache\n  BIC     R0, R0, #(0x1 <<  2) // Clear C bit  2 to disable D Cache\n  BIC     R0, R0, #0x1       // Clear M bit  0 to disable MMU\n  BIC     R0, R0, #(0x1 << 11) // Clear Z bit 11 to disable branch prediction\n  BIC     R0, R0, #(0x1 << 13) // Clear V bit 13 to disable hivecs\n  MCR     p15, 0, R0, c1, c0, 0 // Write value back to CP15 System Control register\n  ISB\n\n  // Configure ACTLR\n  MRC     p15, 0, r0, c1, c0, 1 // Read CP15 Auxiliary Control Register\n  ORR     r0, r0, #(1 <<  1) // Enable L2 prefetch hint (UNK/WI since r4p1)\n  MCR     p15, 0, r0, c1, c0, 1 // Write CP15 Auxiliary Control Register", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s:3", "text": "ANDS    R0, R0, #3\ngoToSleep:\n  WFINE\n  BNE     goToSleep\n\n  // Reset SCTLR Settings\n  MRC     p15, 0, R0, c1, c0, 0 // Read CP15 System Control register\n  BIC     R0, R0, #(0x1 << 12) // Clear I bit 12 to disable I Cache\n  BIC     R0, R0, #(0x1 <<  2) // Clear C bit  2 to disable D Cache\n  BIC     R0, R0, #0x1       // Clear M bit  0 to disable MMU\n  BIC     R0, R0, #(0x1 << 11) // Clear Z bit 11 to disable branch prediction\n  BIC     R0, R0, #(0x1 << 13) // Clear V bit 13 to disable hivecs\n  MCR     p15, 0, R0, c1, c0, 0 // Write value back to CP15 System Control register\n  ISB\n\n  // Configure ACTLR\n  MRC     p15, 0, r0, c1, c0, 1 // Read CP15 Auxiliary Control Register\n  ORR     r0, r0, #(1 <<  1) // Enable L2 prefetch hint (UNK/WI since r4p1)\n  MCR     p15, 0, r0, c1, c0, 1 // Write CP15 Auxiliary Control Register\n\n  // Set Vector Base Address Register (VBAR) to point to this application's vector table\n  LDR    R0, =Vectors\n  MCR    p15, 0, R0, c12, c0, 0\n\n  // Setup Stack for each exception mode\n  CPS    #0x11\n  LDR    SP, =SFE(FIQ_STACK)\n  CPS    #0x12\n  LDR    SP, =SFE(IRQ_STACK)\n  CPS    #0x13\n  LDR    SP, =SFE(SVC_STACK)\n  CPS    #0x17\n  LDR    SP, =SFE(ABT_STACK)\n  CPS    #0x1B\n  LDR    SP, =SFE(UND_STACK)\n  CPS    #0x1F\n  LDR    SP, =SFE(USR_STACK)\n\n  // Call SystemInit\n  BL     SystemInit\n\n  // Unmask interrupts\n  CPSIE  if\n\n  // Call __iar_program_start\n  BL     __iar_program_start\n\n/*----------------------------------------------------------------------------\n  Default Handler for Exceptions / Interrupts\n *----------------------------------------------------------------------------*/\nUndef_Handler:\nSVC_Handler:\nPAbt_Handler:\nDAbt_Handler:\nIRQ_Handler:\nFIQ_Handler:\nDefault_Handler:\n  B .\n\n  END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s:4", "text": "// Unmask interrupts\n  CPSIE  if\n\n  // Call __iar_program_start\n  BL     __iar_program_start\n\n/*----------------------------------------------------------------------------\n  Default Handler for Exceptions / Interrupts\n *----------------------------------------------------------------------------*/\nUndef_Handler:\nSVC_Handler:\nPAbt_Handler:\nDAbt_Handler:\nIRQ_Handler:\nFIQ_Handler:\nDefault_Handler:\n  B .\n\n  END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA5/RTE/Device/ARMCA5/startup_ARMCA5.s", "line_start": 121, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/startup_ARMCA7.s:1", "text": "/******************************************************************************\n * @file     startup_ARMCA7.s\n * @brief    CMSIS Device System Source File for ARM Cortex-A9 Device Series\n * @version  V1.00\n * @date     01 Nov 2017\n *\n * @note\n *\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n  MODULE  ?startup_ARMCA7\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Handler\n *----------------------------------------------------------------------------*/\n  PUBLIC  Reset_Handler\n  PUBWEAK Undef_Handler\n  PUBWEAK SVC_Handler\n  PUBWEAK PAbt_Handler\n  PUBWEAK DAbt_Handler\n  PUBWEAK IRQ_Handler\n  PUBWEAK FIQ_Handler\n\n  SECTION SVC_STACK:DATA:NOROOT(3)\n  SECTION IRQ_STACK:DATA:NOROOT(3)\n  SECTION FIQ_STACK:DATA:NOROOT(3)\n  SECTION ABT_STACK:DATA:NOROOT(3)\n  SECTION UND_STACK:DATA:NOROOT(3)\n  SECTION USR_STACK:DATA:NOROOT(3)\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n  section RESET:CODE:NOROOT(2)\n  PUBLIC  Vectors\n\nVectors:\n  LDR    PC, =Reset_Handler\n  LDR    PC, =Undef_Handler\n  LDR    PC, =SVC_Handler\n  LDR    PC, =PAbt_Handler\n  LDR    PC, =DAbt_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA7/RTE/Device/ARMCA7/startup_ARMCA7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.s:1", "text": "/******************************************************************************\n * @file     startup_ARMCA9.s\n * @brief    CMSIS Device System Source File for ARM Cortex-A9 Device Series\n * @version  V1.00\n * @date     01 Nov 2017\n *\n * @note\n *\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n  MODULE  ?startup_ARMCA9\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Handler\n *----------------------------------------------------------------------------*/\n  PUBLIC  Reset_Handler\n  PUBWEAK Undef_Handler\n  PUBWEAK SVC_Handler\n  PUBWEAK PAbt_Handler\n  PUBWEAK DAbt_Handler\n  PUBWEAK IRQ_Handler\n  PUBWEAK FIQ_Handler\n\n  SECTION SVC_STACK:DATA:NOROOT(3)\n  SECTION IRQ_STACK:DATA:NOROOT(3)\n  SECTION FIQ_STACK:DATA:NOROOT(3)\n  SECTION ABT_STACK:DATA:NOROOT(3)\n  SECTION UND_STACK:DATA:NOROOT(3)\n  SECTION USR_STACK:DATA:NOROOT(3)\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n  section RESET:CODE:NOROOT(2)\n  PUBLIC  Vectors\n\nVectors:\n  LDR    PC, =Reset_Handler\n  LDR    PC, =Undef_Handler\n  LDR    PC, =SVC_Handler\n  LDR    PC, =PAbt_Handler\n  LDR    PC, =DAbt_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.s:2", "text": "SECTION SVC_STACK:DATA:NOROOT(3)\n  SECTION IRQ_STACK:DATA:NOROOT(3)\n  SECTION FIQ_STACK:DATA:NOROOT(3)\n  SECTION ABT_STACK:DATA:NOROOT(3)\n  SECTION UND_STACK:DATA:NOROOT(3)\n  SECTION USR_STACK:DATA:NOROOT(3)\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n  section RESET:CODE:NOROOT(2)\n  PUBLIC  Vectors\n\nVectors:\n  LDR    PC, =Reset_Handler\n  LDR    PC, =Undef_Handler\n  LDR    PC, =SVC_Handler\n  LDR    PC, =PAbt_Handler\n  LDR    PC, =DAbt_Handler\n  NOP\n  LDR    PC, =IRQ_Handler\n  LDR    PC, =FIQ_Handler\n\n\n  section .text:CODE:NOROOT(2)\n\n/*----------------------------------------------------------------------------\n  Reset Handler called on controller reset\n  *----------------------------------------------------------------------------*/\n  EXTERN  SystemInit\n  EXTERN  __iar_program_start\n\nReset_Handler:\n\n  // Mask interrupts\n  CPSID   if\n\n  // Put any cores other than 0 to sleep\n  MRC     p15, 0, R0, c0, c0, 5\n  ANDS    R0, R0, #3\ngoToSleep:\n  WFINE\n  BNE     goToSleep\n\n  // Reset SCTLR Settings\n  MRC     p15, 0, R0, c1, c0, 0 // Read CP15 System Control register\n  BIC     R0, R0, #(0x1 << 12) // Clear I bit 12 to disable I Cache\n  BIC     R0, R0, #(0x1 <<  2) // Clear C bit  2 to disable D Cache\n  BIC     R0, R0, #0x1       // Clear M bit  0 to disable MMU\n  BIC     R0, R0, #(0x1 << 11) // Clear Z bit 11 to disable branch prediction\n  BIC     R0, R0, #(0x1 << 13) // Clear V bit 13 to disable hivecs\n  MCR     p15, 0, R0, c1, c0, 0 // Write value back to CP15 System Control register\n  ISB\n\n  // Configure ACTLR\n  MRC     p15, 0, r0, c1, c0, 1 // Read CP15 Auxiliary Control Register\n  ORR     r0, r0, #(1 <<  1) // Enable L2 prefetch hint (UNK/WI since r4p1)\n  MCR     p15, 0, r0, c1, c0, 1 // Write CP15 Auxiliary Control Register", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/CoreValidation/Layer/Target/CA9/RTE/Device/ARMCA9/startup_ARMCA9.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/AC5/RTE/Device/ARMCM0/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/AC5/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M0/AC5/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s:4", "text": ";;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nHardFault_Handler\n        B HardFault_Handler\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSVC_Handler\n        B SVC_Handler\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s:5", "text": "SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s:6", "text": "SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s:7", "text": "SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/CMSIS/ARM/startup_ARMCM0.s", "line_start": 241, "line_end": 270}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/Device/ARMCM0/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M0/IAR/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC5/RTE/Device/ARMCM0P/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC5/RTE/Device/ARMCM0P/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "bdbddef2552ea101581c69f5e32d1e836d662c03", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/bdbddef2552ea101581c69f5e32d1e836d662c03/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC5/RTE/Device/ARMCM0P/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC5/RTE/Device/ARMCM0P_MPU/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC5/RTE/Device/ARMCM0P_MPU/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC5/RTE/Device/ARMCM0P_MPU/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s:2", "text": ";\n; Amount of memory (in bytes) allocated for Stack\n; Tailor this value to your application needs\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000200\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WWDG_IRQHandler                ; Window Watchdog\n                DCD     PVD_IRQHandler                 ; PVD through EXTI Line detect\n                DCD     RTC_IRQHandler                 ; RTC through EXTI Line\n                DCD     FLASH_IRQHandler               ; FLASH\n                DCD     RCC_CRS_IRQHandler             ; RCC and CRS\n                DCD     EXTI0_1_IRQHandler             ; EXTI Line 0 and 1\n                DCD     EXTI2_3_IRQHandler             ; EXTI Line 2 and 3", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "license": "Apache-2.0", "commit": "de02d2d71914d1dc60f4afb9c7bbc7378f67673d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/de02d2d71914d1dc60f4afb9c7bbc7378f67673d/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s:3", "text": "DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WWDG_IRQHandler                ; Window Watchdog\n                DCD     PVD_IRQHandler                 ; PVD through EXTI Line detect\n                DCD     RTC_IRQHandler                 ; RTC through EXTI Line\n                DCD     FLASH_IRQHandler               ; FLASH\n                DCD     RCC_CRS_IRQHandler             ; RCC and CRS\n                DCD     EXTI0_1_IRQHandler             ; EXTI Line 0 and 1\n                DCD     EXTI2_3_IRQHandler             ; EXTI Line 2 and 3\n                DCD     EXTI4_15_IRQHandler            ; EXTI Line 4 to 15\n                DCD     TSC_IRQHandler                 ; TSC\n                DCD     DMA1_Channel1_IRQHandler       ; DMA1 Channel 1\n                DCD     DMA1_Channel2_3_IRQHandler     ; DMA1 Channel 2 and Channel 3\n                DCD     DMA1_Channel4_5_6_7_IRQHandler ; DMA1 Channel 4, Channel 5, Channel 6 and Channel 7\n                DCD     ADC1_COMP_IRQHandler           ; ADC1, COMP1 and COMP2\n                DCD     LPTIM1_IRQHandler              ; LPTIM1\n                DCD     0                              ; Reserved\n                DCD     TIM2_IRQHandler                ; TIM2\n                DCD     0                              ; Reserved\n                DCD     TIM6_DAC_IRQHandler            ; TIM6 and DAC\n                DCD     0                              ; Reserved\n                DCD     0                              ; Reserved\n                DCD     TIM21_IRQHandler               ; TIM21\n                DCD     0                              ; Reserved\n                DCD     TIM22_IRQHandler               ; TIM22\n                DCD     I2C1_IRQHandler                ; I2C1\n                DCD     I2C2_IRQHandler                ; I2C2\n                DCD     SPI1_IRQHandler                ; SPI1\n                DCD     SPI2_IRQHandler                ; SPI2\n                DCD     USART1_IRQHandler              ; USART1\n                DCD     USART2_IRQHandler              ; USART2\n                DCD     RNG_LPUART1_IRQHandler         ; RNG and LPUART1\n                DCD     LCD_IRQHandler                 ; LCD\n                DCD     USB_IRQHandler                 ; USB\n\n__Vectors_End\n\n__Vectors_Size  EQU  __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n; Reset handler routine\nReset_Handler    PROC\n                 EXPORT  Reset_Handler                 [WEAK]\n        IMPORT  __main\n        IMPORT  SystemInit\n                 LDR     R0, =SystemInit\n                 BLX     R0\n                 LDR     R0, =__main", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "license": "Apache-2.0", "commit": "de02d2d71914d1dc60f4afb9c7bbc7378f67673d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/de02d2d71914d1dc60f4afb9c7bbc7378f67673d/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s:4", "text": "DCD     USART1_IRQHandler              ; USART1\n                DCD     USART2_IRQHandler              ; USART2\n                DCD     RNG_LPUART1_IRQHandler         ; RNG and LPUART1\n                DCD     LCD_IRQHandler                 ; LCD\n                DCD     USB_IRQHandler                 ; USB\n\n__Vectors_End\n\n__Vectors_Size  EQU  __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n; Reset handler routine\nReset_Handler    PROC\n                 EXPORT  Reset_Handler                 [WEAK]\n        IMPORT  __main\n        IMPORT  SystemInit\n                 LDR     R0, =SystemInit\n                 BLX     R0\n                 LDR     R0, =__main\n                 BX      R0\n                 ENDP\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler                    [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler              [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler                    [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler                 [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler                [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WWDG_IRQHandler                [WEAK]\n                EXPORT  PVD_IRQHandler                 [WEAK]\n                EXPORT  RTC_IRQHandler                 [WEAK]\n                EXPORT  FLASH_IRQHandler               [WEAK]\n                EXPORT  RCC_CRS_IRQHandler             [WEAK]\n                EXPORT  EXTI0_1_IRQHandler             [WEAK]\n                EXPORT  EXTI2_3_IRQHandler             [WEAK]\n                EXPORT  EXTI4_15_IRQHandler            [WEAK]\n                EXPORT  TSC_IRQHandler                  [WEAK]\n                EXPORT  DMA1_Channel1_IRQHandler       [WEAK]\n                EXPORT  DMA1_Channel2_3_IRQHandler     [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "license": "Apache-2.0", "commit": "de02d2d71914d1dc60f4afb9c7bbc7378f67673d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/de02d2d71914d1dc60f4afb9c7bbc7378f67673d/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s:5", "text": "B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler                [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WWDG_IRQHandler                [WEAK]\n                EXPORT  PVD_IRQHandler                 [WEAK]\n                EXPORT  RTC_IRQHandler                 [WEAK]\n                EXPORT  FLASH_IRQHandler               [WEAK]\n                EXPORT  RCC_CRS_IRQHandler             [WEAK]\n                EXPORT  EXTI0_1_IRQHandler             [WEAK]\n                EXPORT  EXTI2_3_IRQHandler             [WEAK]\n                EXPORT  EXTI4_15_IRQHandler            [WEAK]\n                EXPORT  TSC_IRQHandler                  [WEAK]\n                EXPORT  DMA1_Channel1_IRQHandler       [WEAK]\n                EXPORT  DMA1_Channel2_3_IRQHandler     [WEAK]\n                EXPORT  DMA1_Channel4_5_6_7_IRQHandler [WEAK]\n                EXPORT  ADC1_COMP_IRQHandler           [WEAK]\n                EXPORT  LPTIM1_IRQHandler              [WEAK]\n                EXPORT  TIM2_IRQHandler                [WEAK]\n                EXPORT  TIM6_DAC_IRQHandler            [WEAK]\n                EXPORT  TIM21_IRQHandler               [WEAK]\n                EXPORT  TIM22_IRQHandler               [WEAK]\n                EXPORT  I2C1_IRQHandler                [WEAK]\n                EXPORT  I2C2_IRQHandler                [WEAK]\n                EXPORT  SPI1_IRQHandler                [WEAK]\n                EXPORT  SPI2_IRQHandler                [WEAK]\n                EXPORT  USART1_IRQHandler              [WEAK]\n                EXPORT  USART2_IRQHandler              [WEAK]\n                EXPORT  RNG_LPUART1_IRQHandler         [WEAK]\n                EXPORT  LCD_IRQHandler                 [WEAK]\n                EXPORT  USB_IRQHandler                 [WEAK]\n\n\nWWDG_IRQHandler\nPVD_IRQHandler\nRTC_IRQHandler\nFLASH_IRQHandler\nRCC_CRS_IRQHandler\nEXTI0_1_IRQHandler\nEXTI2_3_IRQHandler\nEXTI4_15_IRQHandler\nTSC_IRQHandler\nDMA1_Channel1_IRQHandler\nDMA1_Channel2_3_IRQHandler\nDMA1_Channel4_5_6_7_IRQHandler\nADC1_COMP_IRQHandler\nLPTIM1_IRQHandler\nTIM2_IRQHandler\nTIM6_DAC_IRQHandler\nTIM21_IRQHandler\nTIM22_IRQHandler\nI2C1_IRQHandler\nI2C2_IRQHandler\nSPI1_IRQHandler\nSPI2_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "license": "Apache-2.0", "commit": "de02d2d71914d1dc60f4afb9c7bbc7378f67673d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/de02d2d71914d1dc60f4afb9c7bbc7378f67673d/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s:6", "text": "RTC_IRQHandler\nFLASH_IRQHandler\nRCC_CRS_IRQHandler\nEXTI0_1_IRQHandler\nEXTI2_3_IRQHandler\nEXTI4_15_IRQHandler\nTSC_IRQHandler\nDMA1_Channel1_IRQHandler\nDMA1_Channel2_3_IRQHandler\nDMA1_Channel4_5_6_7_IRQHandler\nADC1_COMP_IRQHandler\nLPTIM1_IRQHandler\nTIM2_IRQHandler\nTIM6_DAC_IRQHandler\nTIM21_IRQHandler\nTIM22_IRQHandler\nI2C1_IRQHandler\nI2C2_IRQHandler\nSPI1_IRQHandler\nSPI2_IRQHandler\nUSART1_IRQHandler\nUSART2_IRQHandler\nRNG_LPUART1_IRQHandler\nLCD_IRQHandler\nUSB_IRQHandler\n\n                B       .\n\n                ENDP\n\n                ALIGN\n\n;*******************************************************************************\n; User Stack and Heap initialization\n;*******************************************************************************\n                 IF      :DEF:__MICROLIB\n\n                 EXPORT  __initial_sp\n                 EXPORT  __heap_base\n                 EXPORT  __heap_limit\n\n                 ELSE\n\n                 IMPORT  __use_two_region_memory\n                 EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap\n\n                 LDR     R0, =  Heap_Mem\n                 LDR     R1, =(Stack_Mem + Stack_Size)\n                 LDR     R2, = (Heap_Mem +  Heap_Size)\n                 LDR     R3, = Stack_Mem\n                 BX      LR\n\n                 ALIGN\n\n                 ENDIF\n\n                 END", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "license": "Apache-2.0", "commit": "de02d2d71914d1dc60f4afb9c7bbc7378f67673d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/de02d2d71914d1dc60f4afb9c7bbc7378f67673d/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s:7", "text": "ELSE\n\n                 IMPORT  __use_two_region_memory\n                 EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap\n\n                 LDR     R0, =  Heap_Mem\n                 LDR     R1, =(Stack_Mem + Stack_Size)\n                 LDR     R2, = (Heap_Mem +  Heap_Size)\n                 LDR     R3, = Stack_Mem\n                 BX      LR\n\n                 ALIGN\n\n                 ENDIF\n\n                 END\n\n;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "license": "Apache-2.0", "commit": "de02d2d71914d1dc60f4afb9c7bbc7378f67673d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/de02d2d71914d1dc60f4afb9c7bbc7378f67673d/CMSIS/CoreValidation/Tests/Cortex-M0plus/AC6/RTE/Device/STM32L053R8Tx/startup_stm32l053xx.s", "line_start": 241, "line_end": 261}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/IAR/RTE/CMSIS/ARM/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/IAR/RTE/CMSIS/ARM/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M0plus/IAR/RTE/CMSIS/ARM/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M0plus/IAR/RTE/Device/ARMCM0P_MPU/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M0plus/IAR/RTE/Device/ARMCM0P_MPU/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M0plus/IAR/RTE/Device/ARMCM0P_MPU/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s:4", "text": "; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s", "line_start": 121, "line_end": 162}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/AC6/RTE/Device/ARMCM23/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:2", "text": "MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)\n        DCD     Reset_Handler\n\n        DCD     NMI_Handler\n        DCD     HardFault_Handler\n        DCD     0\n        DCD     0\n        DCD     0\n__vector_table_0x1c\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     0\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:3", "text": "DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved\n        DCD     0                         ; 21: Reserved\n        DCD     0                         ; 22: Reserved\n        DCD     0                         ; 23: Reserved\n        DCD     0                         ; 24: Reserved\n        DCD     0                         ; 25: Reserved\n        DCD     0                         ; 26: Reserved\n        DCD     0                         ; 27: Reserved\n        DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n        DCD     0                         ; 29: Reserved - CPU FPGA\n        DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n        DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors       EQU   __vector_table\n__Vectors_Size  EQU   __Vectors_End - __Vectors\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;;\n;; Default interrupt handlers.\n;;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nHardFault_Handler\n        B HardFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:4", "text": ";;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nHardFault_Handler\n        B HardFault_Handler\n\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:5", "text": "PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:6", "text": "PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s:7", "text": "PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/CMSIS/ARM/startup_ARMCM23.s", "line_start": 241, "line_end": 272}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/Device/ARMCM23/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/Device/ARMCM23/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M23/IAR/RTE/Device/ARMCM23/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/AC5/RTE/Device/ARMCM3/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/AC5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M3/AC5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/AC5/RTE/Device/ARMCM3/startup_ARMCM3.s:4", "text": "$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/AC5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M3/AC5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 121, "line_end": 163}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:2", "text": "MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)\n        DCD     Reset_Handler\n\n        DCD     NMI_Handler\n        DCD     HardFault_Handler\n        DCD     MemManage_Handler\n        DCD     BusFault_Handler\n        DCD     UsageFault_Handler\n__vector_table_0x1c\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     DebugMon_Handler\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:4", "text": ";;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nHardFault_Handler\n        B HardFault_Handler\n\n        PUBWEAK MemManage_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMemManage_Handler\n        B MemManage_Handler\n\n        PUBWEAK BusFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nBusFault_Handler\n        B BusFault_Handler\n\n        PUBWEAK UsageFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUsageFault_Handler\n        B UsageFault_Handler\n\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK DebugMon_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nDebugMon_Handler\n        B DebugMon_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:5", "text": "PUBWEAK DebugMon_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nDebugMon_Handler\n        B DebugMon_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:6", "text": "PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:7", "text": "PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 241, "line_end": 292}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s:8", "text": "PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/CMSIS/ARM/startup_ARMCM3.s", "line_start": 281, "line_end": 292}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/Device/ARMCM3/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M3/IAR/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/AC6/RTE/Device/ARMCM33/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/AC6/RTE/Device/ARMCM33/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M33/AC6/RTE/Device/ARMCM33/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/AC6/RTE/Device/ARMCM33/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/AC6/RTE/Device/ARMCM33/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/AC6/RTE/Device/ARMCM33/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:2", "text": "MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)\n        DCD     Reset_Handler\n\n        DCD     NMI_Handler\n        DCD     HardFault_Handler\n        DCD     MemManage_Handler\n        DCD     BusFault_Handler\n        DCD     UsageFault_Handler\n__vector_table_0x1c\n        DCD     SecureFault_Handler\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     DebugMon_Handler\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:4", "text": ";;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nHardFault_Handler\n        B HardFault_Handler\n\n        PUBWEAK MemManage_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMemManage_Handler\n        B MemManage_Handler\n\n        PUBWEAK BusFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nBusFault_Handler\n        B BusFault_Handler\n\n        PUBWEAK UsageFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUsageFault_Handler\n        B UsageFault_Handler\n\n        PUBWEAK SecureFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSecureFault_Handler\n        B SecureFault_Handler\n\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK DebugMon_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nDebugMon_Handler\n        B DebugMon_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:5", "text": "PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK DebugMon_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nDebugMon_Handler\n        B DebugMon_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:6", "text": "PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:7", "text": "PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 241, "line_end": 297}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s:8", "text": "PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "e2be57f7c74a0510c317a427277d7a4d7a59d3eb", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e2be57f7c74a0510c317a427277d7a4d7a59d3eb/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/CMSIS/ARM/startup_ARMCM33.s", "line_start": 281, "line_end": 297}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/Device/ARMCM33/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/Device/ARMCM33/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M33/IAR/RTE/Device/ARMCM33/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M4/AC5/RTE/Device/ARMCM4/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M4/AC5/RTE/Device/ARMCM4/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M4/AC5/RTE/Device/ARMCM4/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M4/IAR/RTE/CMSIS/ARM/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M4/IAR/RTE/CMSIS/ARM/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M4/IAR/RTE/CMSIS/ARM/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M4/IAR/RTE/Device/ARMCM4/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M4/IAR/RTE/Device/ARMCM4/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M4/IAR/RTE/Device/ARMCM4/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M7/AC5/RTE/Device/ARMCM7/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M7/AC5/RTE/Device/ARMCM7/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M7/AC5/RTE/Device/ARMCM7/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M7/AC5/RTE/Device/ARMCM7/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M7/AC5/RTE/Device/ARMCM7/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "bdbddef2552ea101581c69f5e32d1e836d662c03", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/bdbddef2552ea101581c69f5e32d1e836d662c03/CMSIS/CoreValidation/Tests/Cortex-M7/AC5/RTE/Device/ARMCM7/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M7/IAR/RTE/CMSIS/ARM/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M7/IAR/RTE/CMSIS/ARM/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "18ba7199851b8881e0ec9094d8dcc600243c0694", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/18ba7199851b8881e0ec9094d8dcc600243c0694/CMSIS/CoreValidation/Tests/Cortex-M7/IAR/RTE/CMSIS/ARM/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/CoreValidation/Tests/Cortex-M7/IAR/RTE/Device/ARMCM7/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm64", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/CoreValidation/Tests/Cortex-M7/IAR/RTE/Device/ARMCM7/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "80622e7c4bf093e12f3d484ddcf8a322d4437b7c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/80622e7c4bf093e12f3d484ddcf8a322d4437b7c/CMSIS/CoreValidation/Tests/Cortex-M7/IAR/RTE/Device/ARMCM7/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:2", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:3", "text": "; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN\n                DCD     LIN_IRQHandler            ; 18: LIN\n                DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n                DCD     0                         ; 20: Reserved\n                DCD     0                         ; 21: Reserved\n                DCD     0                         ; 22: Reserved\n                DCD     0                         ; 23: Reserved\n                DCD     0                         ; 24: Reserved\n                DCD     0                         ; 25: Reserved\n                DCD     0                         ; 26: Reserved\n                DCD     0                         ; 27: Reserved\n                DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n                DCD     0                         ; 29: Reserved - CPU FPGA\n                DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n                DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:4", "text": "; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:5", "text": "SVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:6", "text": "EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s:7", "text": "EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/DAP/Firmware/Validation/MDK5/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 241, "line_end": 262}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:1", "text": ";/* File: startup_armv6-m.s\n; * Purpose: startup file for armv7-m architecture devices.\n; *          Should be used with ARMCC\n; * Version: V2.00\n; * Date: 16 November 2015\n; *\n; */\n;/* Copyright (c) 2011 - 2014 ARM LIMITED\n;\n;   All rights reserved.\n;   Redistribution and use in source and binary forms, with or without\n;   modification, are permitted provided that the following conditions are met:\n;   - Redistributions of source code must retain the above copyright\n;     notice, this list of conditions and the following disclaimer.\n;   - Redistributions in binary form must reproduce the above copyright\n;     notice, this list of conditions and the following disclaimer in the\n;     documentation and/or other materials provided with the distribution.\n;   - Neither the name of ARM nor the names of its contributors may be used\n;     to endorse or promote products derived from this software without\n;     specific prior written permission.\n;   *\n;   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n;   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n;   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n;   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n;   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n;   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n;   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n;   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n;   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n;   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n;   POSSIBILITY OF SUCH DAMAGE.\n;   ---------------------------------------------------------------------------*/\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                IMPORT  ||Image$$ARM_LIB_STACK$$ZI$$Limit||\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     ||Image$$ARM_LIB_STACK$$ZI$$Limit||              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:2", "text": "AREA    RESET, DATA, READONLY\n                IMPORT  ||Image$$ARM_LIB_STACK$$ZI$$Limit||\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     ||Image$$ARM_LIB_STACK$$ZI$$Limit||              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:3", "text": "; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\n                ALIGN\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 81, "line_end": 111}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:2", "text": "; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:3", "text": "DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\n                ALIGN\n\n; User Initial Stack & Heap\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:4", "text": "ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\n                ALIGN\n\n; User Initial Stack & Heap\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n\n;/*\n;  __user_setup_stackheap() returns the:\n;     - heap base in r0 (if the program uses the heap)\n;     - stack base in sp\n;     - heap limit in r2 (if the program uses the heap and uses two-region memory).\n; */\n                EXPORT  __user_setup_stackheap\n\n__user_setup_stackheap PROC\n                LDR     R0, = __initial_sp\n                MOV     SP, R0\n\t\t\t\tIF Heap_Size > 0\n                LDR     R2, = __heap_limit\n                LDR     R0, = __heap_base\n\t\t\t\tELSE\n                MOV     R0, #0\n                MOV     R2, #0\n                ENDIF\n                BX      LR\n                ENDP\n\n\n;/*\n;__user_initial_stackheap() returns the:\n;   - heap base in r0\n;   - stack base in r1, that is, the highest address in the stack region\n;   - heap limit in r2\n;   - stack limit in r3, that is, the lowest address in the stack region.\n; */\n;\n;/* DEPRICATED\n;                EXPORT  __user_initial_stackheap\n;", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s:5", "text": "LDR     R0, = __heap_base\n\t\t\t\tELSE\n                MOV     R0, #0\n                MOV     R2, #0\n                ENDIF\n                BX      LR\n                ENDP\n\n\n;/*\n;__user_initial_stackheap() returns the:\n;   - heap base in r0\n;   - stack base in r1, that is, the highest address in the stack region\n;   - heap limit in r2\n;   - stack limit in r3, that is, the lowest address in the stack region.\n; */\n;\n;/* DEPRICATED\n;                EXPORT  __user_initial_stackheap\n;\n;__user_initial_stackheap PROC\n;                LDR     R0, =  Heap_Mem\n;                LDR     R1, =(Stack_Mem + Stack_Size)\n;                LDR     R2, = (Heap_Mem +  Heap_Size)\n;                LDR     R3, = Stack_Mem\n;                BX      LR\n;                ENDP\n; */\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv6-m.s", "line_start": 161, "line_end": 195}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:1", "text": ";/* File: startup_armv7-m.s\n; * Purpose: startup file for armv7-m architecture devices.\n; *          Should be used with ARMCC\n; * Version: V2.00\n; * Date: 16 November 2015\n; *\n; */\n;/* Copyright (c) 2011 - 2014 ARM LIMITED\n;\n;   All rights reserved.\n;   Redistribution and use in source and binary forms, with or without\n;   modification, are permitted provided that the following conditions are met:\n;   - Redistributions of source code must retain the above copyright\n;     notice, this list of conditions and the following disclaimer.\n;   - Redistributions in binary form must reproduce the above copyright\n;     notice, this list of conditions and the following disclaimer in the\n;     documentation and/or other materials provided with the distribution.\n;   - Neither the name of ARM nor the names of its contributors may be used\n;     to endorse or promote products derived from this software without\n;     specific prior written permission.\n;   *\n;   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n;   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n;   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n;   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n;   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n;   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n;   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n;   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n;   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n;   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n;   POSSIBILITY OF SUCH DAMAGE.\n;   ---------------------------------------------------------------------------*/\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                IMPORT  ||Image$$ARM_LIB_STACK$$ZI$$Limit||\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     ||Image$$ARM_LIB_STACK$$ZI$$Limit||              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:2", "text": "AREA    RESET, DATA, READONLY\n                IMPORT  ||Image$$ARM_LIB_STACK$$ZI$$Limit||\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     ||Image$$ARM_LIB_STACK$$ZI$$Limit||              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                BKPT #0\n                B       .", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:3", "text": "; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\n                ALIGN\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 81, "line_end": 134}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:4", "text": "B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\n                ALIGN\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 121, "line_end": 134}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:2", "text": "; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:3", "text": "DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nSVC_Handler     PROC", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:4", "text": "ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                BKPT #0\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\n                ALIGN\n\n; User Initial Stack & Heap\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n\n;/*\n;  __user_setup_stackheap() returns the:\n;     - heap base in r0 (if the program uses the heap)\n;     - stack base in sp\n;     - heap limit in r2 (if the program uses the heap and uses two-region memory).\n; */\n                EXPORT  __user_setup_stackheap\n\n__user_setup_stackheap PROC\n                LDR     R0, = __initial_sp", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:5", "text": "IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n\n;/*\n;  __user_setup_stackheap() returns the:\n;     - heap base in r0 (if the program uses the heap)\n;     - stack base in sp\n;     - heap limit in r2 (if the program uses the heap and uses two-region memory).\n; */\n                EXPORT  __user_setup_stackheap\n\n__user_setup_stackheap PROC\n                LDR     R0, = __initial_sp\n                MOV     SP, R0\n\t\t\t\tIF Heap_Size > 0\n                LDR     R2, = __heap_limit\n                LDR     R0, = __heap_base\n\t\t\t\tELSE\n                MOV     R0, #0\n                MOV     R2, #0\n                ENDIF\n                BX      LR\n                ENDP\n\n\n;/*\n;__user_initial_stackheap() returns the:\n;   - heap base in r0\n;   - stack base in r1, that is, the highest address in the stack region\n;   - heap limit in r2\n;   - stack limit in r3, that is, the lowest address in the stack region.\n; */\n;\n;/* DEPRICATED\n;                EXPORT  __user_initial_stackheap\n;\n;__user_initial_stackheap PROC\n;                LDR     R0, =  Heap_Mem\n;                LDR     R1, =(Stack_Mem + Stack_Size)\n;                LDR     R2, = (Heap_Mem +  Heap_Size)\n;                LDR     R3, = Stack_Mem\n;                BX      LR\n;                ENDP\n; */\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 161, "line_end": 218}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s:6", "text": ";/* DEPRICATED\n;                EXPORT  __user_initial_stackheap\n;\n;__user_initial_stackheap PROC\n;                LDR     R0, =  Heap_Mem\n;                LDR     R1, =(Stack_Mem + Stack_Size)\n;                LDR     R2, = (Heap_Mem +  Heap_Size)\n;                LDR     R3, = Stack_Mem\n;                BX      LR\n;                ENDP\n; */\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCC/startup_armv7-m.s", "line_start": 201, "line_end": 218}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:1", "text": "/* File: startup_armv6-m.S\n * Purpose: startup file for armv6-m architecture devices.\n *          Should be used with ARMCLANG\n * Version: V2.00\n * Date: 16 November 2015\n *\n */\n/* Copyright (c) 2011 - 2015 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n  ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n    .syntax unified\n    .arch   armv6-m\n\n/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n    .global    Image$$ARM_LIB_STACK$$ZI$$Limit\n\n\n    .section RESET, \"x\"\n    .align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   Image$$ARM_LIB_STACK$$ZI$$Limit            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:2", "text": "/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n    .global    Image$$ARM_LIB_STACK$$ZI$$Limit\n\n\n    .section RESET, \"x\"\n    .align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   Image$$ARM_LIB_STACK$$ZI$$Limit            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   SVC_Handler           /* SVCall Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   PendSV_Handler        /* PendSV Handler */\n    .long   SysTick_Handler       /* SysTick Handler */\n__Vectors_End:\n\n    .equ    __Vectors_Size, __Vectors_End - __Vectors\n\n\n    .text\n    .thumb\n    .align  2\n\n    .globl  Reset_Handler\n    .weak   Reset_Handler\n    .type   Reset_Handler, %function\n    .thumb_func\nReset_Handler:\n    bl      SystemInit\n    bl      __main\n\n    .globl  NMI_Handler\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:3", "text": ".type   Reset_Handler, %function\n    .thumb_func\nReset_Handler:\n    bl      SystemInit\n    bl      __main\n\n    .globl  NMI_Handler\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SVC_Handler\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  PendSV_Handler\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\n    .thumb_func\nPendSV_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SysTick_Handler\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\n    .thumb_func\nSysTick_Handler:\n    bkpt    #0\n    b       .\n\n    .end", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 81, "line_end": 127}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:1", "text": "/* File: startup_armv6-m.S\n * Purpose: startup file for armv6-m architecture devices.\n *          Should be used with ARMCLANG\n * Version: V2.00\n * Date: 16 November 2015\n *\n */\n/* Copyright (c) 2011 - 2015 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n  ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n    .syntax unified\n    .arch   armv6-m\n\n/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n\n/*\n  ;<h> Stack Configuration\n  ;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n  ;</h>\n*/\n    .equ    Stack_Size, 0x00000400\n\n    .section STACK, \"w\"\n    .align  3\n    .globl  __StackTop\n    .globl  __StackLimit\n__StackLimit:\n    .space  Stack_Size\n__StackTop:   /* formerly known as __initial_sp */", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:2", "text": "/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n\n/*\n  ;<h> Stack Configuration\n  ;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n  ;</h>\n*/\n    .equ    Stack_Size, 0x00000400\n\n    .section STACK, \"w\"\n    .align  3\n    .globl  __StackTop\n    .globl  __StackLimit\n__StackLimit:\n    .space  Stack_Size\n__StackTop:   /* formerly known as __initial_sp */\n\n\n/*\n  ;<h> Heap Configuration\n  ;  <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n  ;</h>\n*/\n    .equ    Heap_Size, 0x00000C00\n\n    .section HEAP, \"w\"\n    .align  3\n    .globl  __HeapBase\n    .globl  __HeapLimit\n__HeapBase:\n    .if Heap_Size\n    .space  Heap_Size\n    .endif\n__HeapLimit:\n\n\n    .section RESET, \"x\"\n    .align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   __StackTop            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   SVC_Handler           /* SVCall Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   PendSV_Handler        /* PendSV Handler */", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:3", "text": ".align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   __StackTop            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   SVC_Handler           /* SVCall Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   PendSV_Handler        /* PendSV Handler */\n    .long   SysTick_Handler       /* SysTick Handler */\n__Vectors_End:\n\n    .equ    __Vectors_Size, __Vectors_End - __Vectors\n\n\n    .text\n    .thumb\n    .align  2\n\n    .globl  Reset_Handler\n    .weak   Reset_Handler\n    .type   Reset_Handler, %function\n    .thumb_func\nReset_Handler:\n    bl      SystemInit\n    bl      __main\n\n    .globl  NMI_Handler\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SVC_Handler\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:4", "text": ".type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SVC_Handler\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  PendSV_Handler\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\n    .thumb_func\nPendSV_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SysTick_Handler\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\n    .thumb_func\nSysTick_Handler:\n    bkpt    #0\n    b       .\n\n\n    .global __use_two_region_memory\n\n/*\n  __user_setup_stackheap() returns the:\n     - heap base in r0 (if the program uses the heap)\n     - stack base in sp\n     - heap limit in r2 (if the program uses the heap and uses two-region memory).\n */\n    .globl  __user_setup_stackheap\n    .type   __user_setup_stackheap, %function\n    .thumb_func\n__user_setup_stackheap:\n    ldr     r0, =__StackTop\n    mov     sp, r0\n    .if Heap_Size\n    ldr     r0, =__HeapBase\n    ldr     r2, =__HeapLimit\n    .else\n    mov     r0, #0\n    mov     r2, #0\n    .endif", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S:5", "text": "/*\n  __user_setup_stackheap() returns the:\n     - heap base in r0 (if the program uses the heap)\n     - stack base in sp\n     - heap limit in r2 (if the program uses the heap and uses two-region memory).\n */\n    .globl  __user_setup_stackheap\n    .type   __user_setup_stackheap, %function\n    .thumb_func\n__user_setup_stackheap:\n    ldr     r0, =__StackTop\n    mov     sp, r0\n    .if Heap_Size\n    ldr     r0, =__HeapBase\n    ldr     r2, =__HeapLimit\n    .else\n    mov     r0, #0\n    mov     r2, #0\n    .endif\n    bx      lr\n\n\n/*\n__user_initial_stackheap() returns the:\n   - heap base in r0\n   - stack base in r1, that is, the highest address in the stack region\n   - heap limit in r2\n   - stack limit in r3, that is, the lowest address in the stack region.\n */\n/* DEPRICATED\n    .globl  __user_initial_stackheap\n    .type   __user_initial_stackheap, %function\n    .thumb_func\n__user_initial_stackheap:\n    ldr     r0, = __HeapBase\n    ldr     r1, = __StackTop\n    ldr     r2, = __HeapLimit\n    ldr     r3, = __StackLimit\n    bx      lr\n*/\n\n    .end", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv6-m.S", "line_start": 161, "line_end": 203}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:1", "text": "/* File: startup_armv7-m.S\n * Purpose: startup file for armv7-m architecture devices.\n *          Should be used with ARMCLANG\n * Version: V2.00\n * Date: 16 November 2015\n *\n */\n/* Copyright (c) 2011 - 2015 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n  ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n    .syntax unified\n    .arch   armv7-m\n\n/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n    .global    Image$$ARM_LIB_STACK$$ZI$$Limit\n\n\n    .section RESET, \"x\"\n    .align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   Image$$ARM_LIB_STACK$$ZI$$Limit            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   MemManage_Handler     /* MPU Fault Handler */\n    .long   BusFault_Handler      /* Bus Fault Handler */\n    .long   UsageFault_Handler    /* Usage Fault Handler */", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:2", "text": "/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n    .global    Image$$ARM_LIB_STACK$$ZI$$Limit\n\n\n    .section RESET, \"x\"\n    .align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   Image$$ARM_LIB_STACK$$ZI$$Limit            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   MemManage_Handler     /* MPU Fault Handler */\n    .long   BusFault_Handler      /* Bus Fault Handler */\n    .long   UsageFault_Handler    /* Usage Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   SVC_Handler           /* SVCall Handler */\n    .long   DebugMon_Handler      /* Debug Monitor Handler */\n    .long   0                     /* Reserved */\n    .long   PendSV_Handler        /* PendSV Handler */\n    .long   SysTick_Handler       /* SysTick Handler */\n__Vectors_End:\n\n    .equ    __Vectors_Size, __Vectors_End - __Vectors\n\n\n    .text\n    .thumb\n    .align  2\n\n    .globl  Reset_Handler\n    .weak   Reset_Handler\n    .type   Reset_Handler, %function\n    .thumb_func\nReset_Handler:\n    bl      SystemInit\n    bl      __main\n\n    .globl  NMI_Handler\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:3", "text": ".type   Reset_Handler, %function\n    .thumb_func\nReset_Handler:\n    bl      SystemInit\n    bl      __main\n\n    .globl  NMI_Handler\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  MemManage_Handler\n    .weak   MemManage_Handler\n    .type   MemManage_Handler, %function\n    .thumb_func\nMemManage_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  BusFault_Handler\n    .weak   BusFault_Handler\n    .type   BusFault_Handler, %function\n    .thumb_func\nBusFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  UsageFault_Handler\n    .weak   UsageFault_Handler\n    .type   UsageFault_Handler, %function\n    .thumb_func\nUsageFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SVC_Handler\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  DebugMon_Handler\n    .weak   DebugMon_Handler\n    .type   DebugMon_Handler, %function\n    .thumb_func\nDebugMon_Handler:\n    bkpt    #0", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:4", "text": ".type   UsageFault_Handler, %function\n    .thumb_func\nUsageFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SVC_Handler\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  DebugMon_Handler\n    .weak   DebugMon_Handler\n    .type   DebugMon_Handler, %function\n    .thumb_func\nDebugMon_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  PendSV_Handler\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\n    .thumb_func\nPendSV_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SysTick_Handler\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\n    .thumb_func\nSysTick_Handler:\n    bkpt    #0\n    b       .\n\n    .end", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 121, "line_end": 159}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:1", "text": "/* File: startup_armv7-m.S\n * Purpose: startup file for armv7-m architecture devices.\n *          Should be used with ARMCLANG\n * Version: V2.00\n * Date: 16 November 2015\n *\n */\n/* Copyright (c) 2011 - 2015 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n  ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n    .syntax unified\n    .arch   armv6-m\n\n/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n\n/*\n  ;<h> Stack Configuration\n  ;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n  ;</h>\n*/\n    .equ    Stack_Size, 0x00000400\n\n    .section STACK, \"w\"\n    .align  3\n    .globl  __StackTop\n    .globl  __StackLimit\n__StackLimit:\n    .space  Stack_Size\n__StackTop:   /* formerly known as __initial_sp */", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:2", "text": "/* .eabi_attribute Tag_ABI_align8_preserved,1    www.support.code-red-tech.com/CodeRedWiki/Preserve8 */\n.eabi_attribute 25, 1   /* Tag_ABI_align_preserved */\n\n\n/*\n  ;<h> Stack Configuration\n  ;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n  ;</h>\n*/\n    .equ    Stack_Size, 0x00000400\n\n    .section STACK, \"w\"\n    .align  3\n    .globl  __StackTop\n    .globl  __StackLimit\n__StackLimit:\n    .space  Stack_Size\n__StackTop:   /* formerly known as __initial_sp */\n\n\n/*\n  ;<h> Heap Configuration\n  ;  <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n  ;</h>\n*/\n    .equ    Heap_Size, 0x00000C00\n\n    .section HEAP, \"w\"\n    .align  3\n    .globl  __HeapBase\n    .globl  __HeapLimit\n__HeapBase:\n    .if Heap_Size\n    .space  Heap_Size\n    .endif\n__HeapLimit:\n\n\n    .section RESET, \"x\"\n    .align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   __StackTop            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   MemManage_Handler     /* MPU Fault Handler */\n    .long   BusFault_Handler      /* Bus Fault Handler */\n    .long   UsageFault_Handler    /* Usage Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   SVC_Handler           /* SVCall Handler */\n    .long   DebugMon_Handler      /* Debug Monitor Handler */\n    .long   0                     /* Reserved */\n    .long   PendSV_Handler        /* PendSV Handler */", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:3", "text": ".align  2\n    .globl  __Vectors\n    .globl  __Vectors_End\n    .globl  __Vectors_Size\n__Vectors:\n    .long   __StackTop            /* Top of Stack */\n    .long   Reset_Handler         /* Reset Handler */\n    .long   NMI_Handler           /* NMI Handler */\n    .long   HardFault_Handler     /* Hard Fault Handler */\n    .long   MemManage_Handler     /* MPU Fault Handler */\n    .long   BusFault_Handler      /* Bus Fault Handler */\n    .long   UsageFault_Handler    /* Usage Fault Handler */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   0                     /* Reserved */\n    .long   SVC_Handler           /* SVCall Handler */\n    .long   DebugMon_Handler      /* Debug Monitor Handler */\n    .long   0                     /* Reserved */\n    .long   PendSV_Handler        /* PendSV Handler */\n    .long   SysTick_Handler       /* SysTick Handler */\n__Vectors_End:\n\n    .equ    __Vectors_Size, __Vectors_End - __Vectors\n\n\n    .text\n    .thumb\n    .align  2\n\n    .globl  Reset_Handler\n    .weak   Reset_Handler\n    .type   Reset_Handler, %function\n    .thumb_func\nReset_Handler:\n    bl      SystemInit\n    bl      __main\n\n    .globl  NMI_Handler\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  MemManage_Handler\n    .weak   MemManage_Handler\n    .type   MemManage_Handler, %function\n    .thumb_func\nMemManage_Handler:\n    bkpt    #0", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:4", "text": ".type   NMI_Handler, %function\n    .thumb_func\nNMI_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  HardFault_Handler\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\n    .thumb_func\nHardFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  MemManage_Handler\n    .weak   MemManage_Handler\n    .type   MemManage_Handler, %function\n    .thumb_func\nMemManage_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  BusFault_Handler\n    .weak   BusFault_Handler\n    .type   BusFault_Handler, %function\n    .thumb_func\nBusFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  UsageFault_Handler\n    .weak   UsageFault_Handler\n    .type   UsageFault_Handler, %function\n    .thumb_func\nUsageFault_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SVC_Handler\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  DebugMon_Handler\n    .weak   DebugMon_Handler\n    .type   DebugMon_Handler, %function\n    .thumb_func\nDebugMon_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  PendSV_Handler\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\n    .thumb_func\nPendSV_Handler:\n    bkpt    #0", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:5", "text": ".type   SVC_Handler, %function\n    .thumb_func\nSVC_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  DebugMon_Handler\n    .weak   DebugMon_Handler\n    .type   DebugMon_Handler, %function\n    .thumb_func\nDebugMon_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  PendSV_Handler\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\n    .thumb_func\nPendSV_Handler:\n    bkpt    #0\n    b       .\n\n    .globl  SysTick_Handler\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\n    .thumb_func\nSysTick_Handler:\n    bkpt    #0\n    b       .\n\n\n    .global __use_two_region_memory\n\n/*\n  __user_setup_stackheap() returns the:\n     - heap base in r0 (if the program uses the heap)\n     - stack base in sp\n     - heap limit in r2 (if the program uses the heap and uses two-region memory).\n */\n    .globl  __user_setup_stackheap\n    .type   __user_setup_stackheap, %function\n    .thumb_func\n__user_setup_stackheap:\n    ldr     r0, =__StackTop\n    mov     sp, r0\n    .if Heap_Size\n    ldr     r0, =__HeapBase\n    ldr     r2, =__HeapLimit\n    .else\n    mov     r0, #0\n    mov     r2, #0\n    .endif\n    bx      lr\n\n\n/*\n__user_initial_stackheap() returns the:\n   - heap base in r0\n   - stack base in r1, that is, the highest address in the stack region\n   - heap limit in r2", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S:6", "text": ".type   __user_setup_stackheap, %function\n    .thumb_func\n__user_setup_stackheap:\n    ldr     r0, =__StackTop\n    mov     sp, r0\n    .if Heap_Size\n    ldr     r0, =__HeapBase\n    ldr     r2, =__HeapLimit\n    .else\n    mov     r0, #0\n    mov     r2, #0\n    .endif\n    bx      lr\n\n\n/*\n__user_initial_stackheap() returns the:\n   - heap base in r0\n   - stack base in r1, that is, the highest address in the stack region\n   - heap limit in r2\n   - stack limit in r3, that is, the lowest address in the stack region.\n */\n/* DEPRICATED\n    .globl  __user_initial_stackheap\n    .type   __user_initial_stackheap, %function\n    .thumb_func\n__user_initial_stackheap:\n    ldr     r0, = __HeapBase\n    ldr     r1, = __StackTop\n    ldr     r2, = __HeapLimit\n    ldr     r3, = __StackLimit\n    bx      lr\n*/\n\n    .end", "arch": "arm", "syntax": "intel-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/ARMCLANG/startup_armv7-m.S", "line_start": 201, "line_end": 235}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:1", "text": "/* File: startup_armv6-m.S\n * Purpose: startup file for armv6-m architecture devices.\n *          Should be used with GCC for ARM Embedded Processors\n * Version: V2.00\n * Date: 16 November 2015\n *\n */\n/* Copyright (c) 2011 - 2015 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:2", "text": "#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .vectors\n\t.align 2\n\t.globl\t__Vectors\n__Vectors:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t.size\t__Vectors, . - __Vectors\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t1\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:3", "text": ".long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t.size\t__Vectors, . - __Vectors\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t1\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr4, =__copy_table_start__\n\tldr\tr5, =__copy_table_end__\n\n.L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tblt\t.L_loop0_0_done\n\tldr\tr0, [r1, r3]\n\tstr\tr0, [r2, r3]\n\tb\t.L_loop0_0\n\n.L_loop0_0_done:\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:4", "text": ".L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tblt\t.L_loop0_0_done\n\tldr\tr0, [r1, r3]\n\tstr\tr0, [r2, r3]\n\tb\t.L_loop0_0\n\n.L_loop0_0_done:\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n\tsubs\tr3, r2\n\tble\t.L_loop1_done\n\n.L_loop1:\n\tsubs\tr3, #4\n\tldr\tr0, [r1,r3]\n\tstr\tr0, [r2,r3]\n\tbgt\t.L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:5", "text": "bgt\t.L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\tblt\t.L_loop2_0_done\n\tstr\tr0, [r1, r2]\n\tb\t.L_loop2_0\n.L_loop2_0_done:\n\n\tadds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n\n\tsubs\tr2, r1\n\tble\t.L_loop3_done", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:6", "text": "adds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n\n\tsubs\tr2, r1\n\tble\t.L_loop3_done\n\n.L_loop3:\n\tsubs\tr2, #4\n\tstr\tr0, [r1, r2]\n\tbgt\t.L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n    bkpt #0\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S:7", "text": ".thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n    bkpt #0\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv6-m.S", "line_start": 241, "line_end": 263}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:1", "text": "/* File: startup_armv7-m.S\n * Purpose: startup file for armv7-m architecture devices.\n *          Should be used with GCC for ARM Embedded Processors\n * Version: V2.00\n * Date: 16 November 2015\n *\n */\n/* Copyright (c) 2011 - 2015 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:2", "text": "#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .vectors\n\t.align\t2\n\t.globl\t__Vectors\n__Vectors:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\tMemManage_Handler     /* MPU Fault Handler */\n\t.long\tBusFault_Handler      /* Bus Fault Handler */\n\t.long\tUsageFault_Handler    /* Usage Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\tDebugMon_Handler      /* Debug Monitor Handler */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t.size\t__Vectors, . - __Vectors\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t2\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:3", "text": ".long\tUsageFault_Handler    /* Usage Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\tDebugMon_Handler      /* Debug Monitor Handler */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t.size\t__Vectors, . - __Vectors\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t2\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr4, =__copy_table_start__\n\tldr\tr5, =__copy_table_end__\n\n.L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tittt\tge\n\tldrge\tr0, [r1, r3]\n\tstrge\tr0, [r2, r3]\n\tbge\t.L_loop0_0\n\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:4", "text": ".L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tittt\tge\n\tldrge\tr0, [r1, r3]\n\tstrge\tr0, [r2, r3]\n\tbge\t.L_loop0_0\n\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n.L_loop1:\n\tcmp\tr2, r3\n\tittt\tlt\n\tldrlt\tr0, [r1], #4\n\tstrlt\tr0, [r2], #4\n\tblt\t.L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:5", "text": "/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\titt\tge\n\tstrge\tr0, [r1, r2]\n\tbge\t.L_loop2_0\n\n\tadds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n.L_loop3:\n\tcmp\tr1, r2\n\titt\tlt\n\tstrlt\tr0, [r1], #4\n\tblt\t.L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:6", "text": "*  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n.L_loop3:\n\tcmp\tr1, r2\n\titt\tlt\n\tstrlt\tr0, [r1], #4\n\tblt\t.L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n    bkpt #0\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tMemManage_Handler\n\tdef_irq_handler\tBusFault_Handler\n\tdef_irq_handler\tUsageFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tDebugMon_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 201, "line_end": 257}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S:7", "text": "*    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tMemManage_Handler\n\tdef_irq_handler\tBusFault_Handler\n\tdef_irq_handler\tUsageFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tDebugMon_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "testsuite", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "license": "Apache-2.0", "commit": "d030bba668edfabb77fbd111c3607bae06244391", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d030bba668edfabb77fbd111c3607bae06244391/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/GCC/startup_armv7-m.S", "line_start": 241, "line_end": 257}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC5/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n#include \"mem_ARMCM0.h\"\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      STACK_SIZE\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC5/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "4146c13bb6f2a60d0534c1c2fee0adf5885442a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4146c13bb6f2a60d0534c1c2fee0adf5885442a6/CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC5/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n#include \"mem_ARMCM0.h\"\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      STACK_SIZE\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "37b86225f2d4a0ca4d11aa82c8b51366fcca1dab", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/37b86225f2d4a0ca4d11aa82c8b51366fcca1dab/CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "37b86225f2d4a0ca4d11aa82c8b51366fcca1dab", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/37b86225f2d4a0ca4d11aa82c8b51366fcca1dab/CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s:3", "text": "DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "37b86225f2d4a0ca4d11aa82c8b51366fcca1dab", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/37b86225f2d4a0ca4d11aa82c8b51366fcca1dab/CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s:4", "text": "Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "37b86225f2d4a0ca4d11aa82c8b51366fcca1dab", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/37b86225f2d4a0ca4d11aa82c8b51366fcca1dab/CMSIS/DSP/Platforms/FVP/ARMCM0/Startup/AC6/startup_ARMCM0.s", "line_start": 121, "line_end": 164}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n#include \"mem_ARMCM33.h\"\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      STACK_SIZE\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "3b2a0ee23428eb1f230672d9061da4e6b7afa3db", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3b2a0ee23428eb1f230672d9061da4e6b7afa3db/CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "3b2a0ee23428eb1f230672d9061da4e6b7afa3db", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3b2a0ee23428eb1f230672d9061da4e6b7afa3db/CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s:3", "text": "DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "3b2a0ee23428eb1f230672d9061da4e6b7afa3db", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3b2a0ee23428eb1f230672d9061da4e6b7afa3db/CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s:4", "text": "; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "3b2a0ee23428eb1f230672d9061da4e6b7afa3db", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3b2a0ee23428eb1f230672d9061da4e6b7afa3db/CMSIS/DSP/Platforms/FVP/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 121, "line_end": 172}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/FVP/ARMCM4/Startup/AC6/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n#include \"mem_ARMCM4.h\"\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      STACK_SIZE\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/FVP/ARMCM4/Startup/AC6/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "3b2a0ee23428eb1f230672d9061da4e6b7afa3db", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3b2a0ee23428eb1f230672d9061da4e6b7afa3db/CMSIS/DSP/Platforms/FVP/ARMCM4/Startup/AC6/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3/CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3/CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3/CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S:4", "text": "b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3/CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "line_start": 121, "line_end": 179}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S:5", "text": "Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3f7bbfb22d1a6499f04ed89dd7d4f3d5a45282f3/CMSIS/DSP/Platforms/IPSS/ARMCM0/Startup/GCC/startup_ARMCM0.S", "line_start": 161, "line_end": 179}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M7 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "21bb620dd456b68ccae678f81355fa9b8804848d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/21bb620dd456b68ccae678f81355fa9b8804848d/CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "21bb620dd456b68ccae678f81355fa9b8804848d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/21bb620dd456b68ccae678f81355fa9b8804848d/CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "21bb620dd456b68ccae678f81355fa9b8804848d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/21bb620dd456b68ccae678f81355fa9b8804848d/CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S:4", "text": "bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "21bb620dd456b68ccae678f81355fa9b8804848d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/21bb620dd456b68ccae678f81355fa9b8804848d/CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "line_start": 121, "line_end": 170}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S:5", "text": "Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "21bb620dd456b68ccae678f81355fa9b8804848d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/21bb620dd456b68ccae678f81355fa9b8804848d/CMSIS/DSP/Platforms/IPSS/ARMCM7/Startup/GCC/startup_ARMCM7.S", "line_start": 161, "line_end": 170}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:2", "text": "#define Region_16M  0b10111\n#define Region_32M  0b11000\n#define Region_64M  0b11001\n#define Region_128M 0b11010\n#define Region_256M 0b11011\n#define Region_512M 0b11100\n#define Region_1G   0b11101\n#define Region_2G   0b11110\n#define Region_4G   0b11111\n\n#define Region_Enable 0b1\n\n#define Execute_Never 0x1000 // Bit 12\n\n#define Normal_nShared 0x03 // Outer and Inner write-back, no write-allocate\n#define Device_nShared 0x10\n\n#define Full_Access 0b011\n#define Read_Only   0b110\n\n//----------------------------------------------------------------\n\n    .eabi_attribute Tag_ABI_align8_preserved,1\n\n    .section  VECTORS,\"ax\"\n    .align 3\n    .cfi_sections .debug_frame  // put stack frame info into .debug_frame instead of .eh_frame\n\n\n//----------------------------------------------------------------\n// Entry point for the Reset handler\n//----------------------------------------------------------------\n\n    .global Start\n\nStart:\n\n//----------------------------------------------------------------\n// Exception Vector Table\n//----------------------------------------------------------------\n// Note: LDR PC instructions are used here, though branch (B) instructions\n// could also be used, unless the exception handlers are >32MB away.\n\nVectors:\n        LDR PC, Reset_Addr\n        LDR PC, Undefined_Addr\n        LDR PC, SVC_Addr\n        LDR PC, Prefetch_Addr\n        LDR PC, Abort_Addr\n        B .                              // Reserved vector\n        LDR PC, IRQ_Addr\n        LDR PC, FIQ_Addr\n\n\n    .balign 4\nReset_Addr:     .word Reset_Handler\nUndefined_Addr: .word Undefined_Handler\nSVC_Addr:       .word SVC_Handler\nPrefetch_Addr:  .word Prefetch_Handler\nAbort_Addr:     .word Abort_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:3", "text": "// Note: LDR PC instructions are used here, though branch (B) instructions\n// could also be used, unless the exception handlers are >32MB away.\n\nVectors:\n        LDR PC, Reset_Addr\n        LDR PC, Undefined_Addr\n        LDR PC, SVC_Addr\n        LDR PC, Prefetch_Addr\n        LDR PC, Abort_Addr\n        B .                              // Reserved vector\n        LDR PC, IRQ_Addr\n        LDR PC, FIQ_Addr\n\n\n    .balign 4\nReset_Addr:     .word Reset_Handler\nUndefined_Addr: .word Undefined_Handler\nSVC_Addr:       .word SVC_Handler\nPrefetch_Addr:  .word Prefetch_Handler\nAbort_Addr:     .word Abort_Handler\nIRQ_Addr:       .word IRQ_Handler\nFIQ_Addr:       .word FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Exception Handlers\n//----------------------------------------------------------------\n\nUndefined_Handler:\n        B   Undefined_Handler\nSVC_Handler:\n        B   SVC_Handler\nPrefetch_Handler:\n        B   Prefetch_Handler\nAbort_Handler:\n        B   Abort_Handler\nIRQ_Handler:\n        B   IRQ_Handler\nFIQ_Handler:\n        B   FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Reset Handler\n//----------------------------------------------------------------\n\n    .global Reset_Handler\n    .type Reset_Handler, \"function\"\nReset_Handler:\n\n//----------------------------------------------------------------\n// Disable MPU and caches\n//----------------------------------------------------------------\n\n// Disable MPU and cache in case it was left enabled from an earlier run\n// This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x05               // Disable MPU (M bit) and data cache (C bit)\n        BIC r0, r0, #0x800              // Disable branch prediction (Z bit)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:4", "text": "//----------------------------------------------------------------\n// Reset Handler\n//----------------------------------------------------------------\n\n    .global Reset_Handler\n    .type Reset_Handler, \"function\"\nReset_Handler:\n\n//----------------------------------------------------------------\n// Disable MPU and caches\n//----------------------------------------------------------------\n\n// Disable MPU and cache in case it was left enabled from an earlier run\n// This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x05               // Disable MPU (M bit) and data cache (C bit)\n        BIC r0, r0, #0x800              // Disable branch prediction (Z bit)\n        BIC r0, r0, #0x1000             // Disable instruction cache (I bit)\n        DSB                             // Ensure all previous loads/stores have completed\n        MCR p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                             // Ensure subsequent insts execute wrt new MPU settings\n\n\n//----------------------------------------------------------------\n// Initialize Supervisor Mode Stack using Linker symbol from scatter file.\n// Stacks must be 8 byte aligned.\n//----------------------------------------------------------------\n\n        .global  Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n        LDR SP, =Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n\n\n//----------------------------------------------------------------\n// Cache invalidation\n//----------------------------------------------------------------\n\n        DSB\n        MOV     r0, #0\n        MCR     p15, 0, r0, c7, c5, 0      // invalidate I cache\n        MCR     p15, 0, r0, c15, c5, 0     // invalidate D cache\n\n//----------------------------------------------------------------\n// TCM Configuration\n//----------------------------------------------------------------\n\n// Cortex-R8 optionally provides two Tightly-Coupled Memory (TCM) blocks (ITCM and DTCM)\n//    for fast access to code or data.\n// ITCM typically holds interrupt or exception code that must be accessed at high speed,\n//    without any potential delay resulting from a cache miss.\n// DTCM typically holds a block of data for intensive processing, such as audio or video data.\n\n// The following illustrates basic TCM configuration, as the basis for exploration by the user\n\n#if TCM\n     .global  Image$$CODE$$Base\n     .global  Image$$DATA$$Base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:5", "text": "MOV     r0, #0\n        MCR     p15, 0, r0, c7, c5, 0      // invalidate I cache\n        MCR     p15, 0, r0, c15, c5, 0     // invalidate D cache\n\n//----------------------------------------------------------------\n// TCM Configuration\n//----------------------------------------------------------------\n\n// Cortex-R8 optionally provides two Tightly-Coupled Memory (TCM) blocks (ITCM and DTCM)\n//    for fast access to code or data.\n// ITCM typically holds interrupt or exception code that must be accessed at high speed,\n//    without any potential delay resulting from a cache miss.\n// DTCM typically holds a block of data for intensive processing, such as audio or video data.\n\n// The following illustrates basic TCM configuration, as the basis for exploration by the user\n\n#if TCM\n     .global  Image$$CODE$$Base\n     .global  Image$$DATA$$Base\n\n        MRC p15, 0, r0, c0, c0, 2       // Read TCM Type Register\n        // r0 now contains ITCM & DTCM availability\n\n        MRC p15, 0, r0, c9, c1, 1       // Read ITCM Region Register\n        // r0 now contains ITCM size in bits [5:2]\n\n        LDR r0, =Image$$CODE$$Base      // Set ITCM base address\n        ORR r0, r0, #1                  // Enable it\n        MCR p15, 0, r0, c9, c1, 1       // Write ITCM Region Register\n\n        MRC p15, 0, r0, c9, c1, 0       // Read DTCM Region Register\n        // r0 now contains DTCM size in bits [5:2]\n\n        LDR r0, =Image$$DATA$$Base      // Set DTCM base address\n        ORR r0, r0, #1                  // Enable it\n        MCR p15, 0, r0, c9, c1, 0       // Write DTCM Region Register\n\n#endif\n\n    MRC     p15, 0, r0, c1, c0, 1\n    TST     r0, #(1 << 6) //  SMP bit\n    ORREQ   r0, r0, #(1 << 6) //  Set SMP bit in aux control register\n    MCREQ   p15, 0, r0, c1, c0, 1 //  write Aux Control Register (ACTLR)\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = 0x0000  Size = 32KB   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = 0x40000  Size = 128KB   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = 0x100000  Size = 64KB   Normal  Non-shared  Full access  Not Executable\n// Region 3: Vectors       Base = 0x0000  Size =  1KB   Normal  Non-shared  Full access  Executable\n// Region 4: Peripherals   Base = 0xB0000000   Limit = 0xBFFFFFC0  Device   Full access  Not Executable", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:6", "text": "TST     r0, #(1 << 6) //  SMP bit\n    ORREQ   r0, r0, #(1 << 6) //  Set SMP bit in aux control register\n    MCREQ   p15, 0, r0, c1, c0, 1 //  write Aux Control Register (ACTLR)\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = 0x0000  Size = 32KB   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = 0x40000  Size = 128KB   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = 0x100000  Size = 64KB   Normal  Non-shared  Full access  Not Executable\n// Region 3: Vectors       Base = 0x0000  Size =  1KB   Normal  Non-shared  Full access  Executable\n// Region 4: Peripherals   Base = 0xB0000000   Limit = 0xBFFFFFC0  Device   Full access  Not Executable\n\n        // Import linker symbols to get region base addresses\n    .global  Image$$CODE$$Base\n    .global  Image$$DATA$$Base\n    .global  Image$$ARM_LIB_STACKHEAP$$Base\n\n        // Region 0 - Code\n        MOV     r1, #0\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$CODE$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_32K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access  << 8)  |  Normal_nShared\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 1 - Data\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_128K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_64K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 3 - Vectors\n        ADD     r1, r1, #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:7", "text": "LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_128K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_64K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 3 - Vectors\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 4 - Peripherals\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0xB0000000\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  | Device_nShared | Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP\n//----------------------------------------------------------------\n// Enable access to VFP by enabling access to Coprocessors 10 and 11.\n// Enables Full Access i.e. in both privileged and non privileged modes\n//----------------------------------------------------------------", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:8", "text": "// Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP\n//----------------------------------------------------------------\n// Enable access to VFP by enabling access to Coprocessors 10 and 11.\n// Enables Full Access i.e. in both privileged and non privileged modes\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 2      // Read Coprocessor Access Control Register (CPACR)\n        ORR     r0, r0, #(0xF << 20)       // Enable access to CP 10 & 11\n        MCR     p15, 0, r0, c1, c0, 2      // Write Coprocessor Access Control Register (CPACR)\n        ISB\n\n//----------------------------------------------------------------\n// Switch on the VFP hardware\n//----------------------------------------------------------------\n\n        MOV     r0, #0x40000000\n        VMSR    FPEXC, r0                   // Write FPEXC register, EN bit set\n#endif\n\n  //\n  // SMP initialization\n  // -------------------\n  MRC     p15, 0, r0, c0, c0, 5     // Read CPU ID register\n  ANDS    r0, r0, #0x03             // Mask off, leaving the CPU ID field\n  BNE     secondaryCPUsInit\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        ORR     r0, r0, #0x800              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n    .global     __main\n        B       __main\n\n    .size Reset_Handler, . - Reset_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s:9", "text": "//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        ORR     r0, r0, #0x800              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n    .global     __main\n        B       __main\n\n    .size Reset_Handler, . - Reset_Handler\n\n\n\n// ------------------------------------------------------------\n// Initialization for SECONDARY CPUs\n// ------------------------------------------------------------\n\n  .global secondaryCPUsInit\n  .type secondaryCPUsInit, \"function\"\nsecondaryCPUsInit:\n   wfi\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // enable D Cache\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc\n\n    .size enable_caches, . - enable_caches", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/old_startup.s", "line_start": 321, "line_end": 369}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:2", "text": "#define Region_16M  0b10111\n#define Region_32M  0b11000\n#define Region_64M  0b11001\n#define Region_128M 0b11010\n#define Region_256M 0b11011\n#define Region_512M 0b11100\n#define Region_1G   0b11101\n#define Region_2G   0b11110\n#define Region_4G   0b11111\n\n#define Region_Enable 0b1\n\n#define Execute_Never 0x1000 // Bit 12\n\n#define Normal_nShared 0x03 // Outer and Inner write-back, no write-allocate\n#define Device_nShared 0x10\n\n#define Full_Access 0b011\n#define Read_Only   0b110\n\n\n//----------------------------------------------------------------\n\n    .eabi_attribute Tag_ABI_align8_preserved,1\n\n    .section  VECTORS,\"ax\"\n    .align 3\n    .cfi_sections .debug_frame  // put stack frame info into .debug_frame instead of .eh_frame\n\n\n//----------------------------------------------------------------\n// Entry point for the Reset handler\n//----------------------------------------------------------------\n\n    .global Start\n\nStart:\n\n//----------------------------------------------------------------\n// Exception Vector Table\n//----------------------------------------------------------------\n// Note: LDR PC instructions are used here, though branch (B) instructions\n// could also be used, unless the exception handlers are >32MB away.\n\nVectors:\n        LDR PC, Reset_Addr\n        LDR PC, Undefined_Addr\n        LDR PC, SVC_Addr\n        LDR PC, Prefetch_Addr\n        LDR PC, Abort_Addr\n        B .                              // Reserved vector\n        LDR PC, IRQ_Addr\n        LDR PC, FIQ_Addr\n\n\n    .balign 4\nReset_Addr:     .word Reset_Handler\nUndefined_Addr: .word Undefined_Handler\nSVC_Addr:       .word SVC_Handler\nPrefetch_Addr:  .word Prefetch_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:3", "text": "//----------------------------------------------------------------\n// Note: LDR PC instructions are used here, though branch (B) instructions\n// could also be used, unless the exception handlers are >32MB away.\n\nVectors:\n        LDR PC, Reset_Addr\n        LDR PC, Undefined_Addr\n        LDR PC, SVC_Addr\n        LDR PC, Prefetch_Addr\n        LDR PC, Abort_Addr\n        B .                              // Reserved vector\n        LDR PC, IRQ_Addr\n        LDR PC, FIQ_Addr\n\n\n    .balign 4\nReset_Addr:     .word Reset_Handler\nUndefined_Addr: .word Undefined_Handler\nSVC_Addr:       .word SVC_Handler\nPrefetch_Addr:  .word Prefetch_Handler\nAbort_Addr:     .word Abort_Handler\nIRQ_Addr:       .word IRQ_Handler\nFIQ_Addr:       .word FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Exception Handlers\n//----------------------------------------------------------------\n\nUndefined_Handler:\n        B   Undefined_Handler\nSVC_Handler:\n        B   SVC_Handler\nPrefetch_Handler:\n        B   Prefetch_Handler\nAbort_Handler:\n        B   Abort_Handler\nIRQ_Handler:\n        B   IRQ_Handler\nFIQ_Handler:\n        B   FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Reset Handler\n//----------------------------------------------------------------\n\n    .global Reset_Handler\n    .type Reset_Handler, \"function\"\nReset_Handler:\n       mrc     p15, 0, r0, c1, c0, 0       // read CP15 register 1 into r0 (SCTLR)\n       orr     r0, r0, #(0x1  <<12)        // enable I Cache\n       orr     r0, r0, #(0x1  <<2)         // enable D Cache\n\n       mcr     p15, 0, r0, c1, c0, 0       // write CP15 register 1\n\n       mrc     p15, 0, r0, c1, c0, 0       // read CP15 register 1 into r0 (SCTLR)\n       orr     r0, r0, #(0x1  <<11)        // Enable all forms of branch prediction\n       mcr     p15, 0, r0, c1, c0, 0       // write CP15 register 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:4", "text": "B   FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Reset Handler\n//----------------------------------------------------------------\n\n    .global Reset_Handler\n    .type Reset_Handler, \"function\"\nReset_Handler:\n       mrc     p15, 0, r0, c1, c0, 0       // read CP15 register 1 into r0 (SCTLR)\n       orr     r0, r0, #(0x1  <<12)        // enable I Cache\n       orr     r0, r0, #(0x1  <<2)         // enable D Cache\n\n       mcr     p15, 0, r0, c1, c0, 0       // write CP15 register 1\n\n       mrc     p15, 0, r0, c1, c0, 0       // read CP15 register 1 into r0 (SCTLR)\n       orr     r0, r0, #(0x1  <<11)        // Enable all forms of branch prediction\n       mcr     p15, 0, r0, c1, c0, 0       // write CP15 register 1\n\n//----------------------------------------------------------------\n// Disable MPU and caches\n//----------------------------------------------------------------\n\n// Disable MPU and cache in case it was left enabled from an earlier run\n// This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x01               // Disable MPU (M bit) and data cache (C bit)\n        DSB                             // Ensure all previous loads/stores have completed\n        MCR p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                             // Ensure subsequent insts execute wrt new MPU settings\n\n\n//----------------------------------------------------------------\n// Initialize Supervisor Mode Stack using Linker symbol from scatter file.\n// Stacks must be 8 byte aligned.\n//----------------------------------------------------------------\n\n        .global  Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n        LDR SP, =Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n\n\n//----------------------------------------------------------------\n// Cache invalidation\n//----------------------------------------------------------------\n\n        //DSB\n        //MOV     r0, #0\n        //MCR     p15, 0, r0, c7, c5, 0      // invalidate I cache\n        //MCR     p15, 0, r0, c15, c5, 0     // invalidate D cache\n\n//----------------------------------------------------------------\n// TCM Configuration\n//----------------------------------------------------------------\n\n// Cortex-R8 optionally provides two Tightly-Coupled Memory (TCM) blocks (ITCM and DTCM)\n//    for fast access to code or data.\n// ITCM typically holds interrupt or exception code that must be accessed at high speed,\n//    without any potential delay resulting from a cache miss.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:6", "text": "//        // r0 now contains DTCM size in bits [5:2]\n//\n//        LDR r0, =Image$$DATA$$Base      // Set DTCM base address\n//        ORR r0, r0, #1                  // Enable it\n//        MCR p15, 0, r0, c9, c1, 0       // Write DTCM Region Register\n\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = 0x0000  Size = 32KB   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = 0x40000  Size = 128KB   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = 0x100000  Size = 64KB   Normal  Non-shared  Full access  Not Executable\n// Region 3: Vectors       Base = 0x0000  Size =  1KB   Normal  Non-shared  Full access  Executable\n// Region 4: Peripherals   Base = 0xB0000000   Limit = 0xBFFFFFC0  Device   Full access  Not Executable\n\n        // Import linker symbols to get region base addresses\n    .global  Image$$CODE$$Base\n    .global  Image$$DATA$$Base\n    .global  Image$$ARM_LIB_STACKHEAP$$Base\n\n        // Region 0 - Code\n        MOV     r1, #0\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$CODE$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_512K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  | (Full_Access  << 8)  |  Normal_nShared\n        BIC     r2, r2, #Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 1 - Data\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_512K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0   | (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_512K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:7", "text": "// Region 1 - Data\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_512K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0   | (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_512K << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 3 - Vectors\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 4 - Peripherals\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0xB0000000\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  | Device_nShared | Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:8", "text": "MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  | Device_nShared | Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP\n//----------------------------------------------------------------\n// Enable access to VFP by enabling access to Coprocessors 10 and 11.\n// Enables Full Access i.e. in both privileged and non privileged modes\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 2      // Read Coprocessor Access Control Register (CPACR)\n        ORR     r0, r0, #(0xF << 20)       // Enable access to CP 10 & 11\n        MCR     p15, 0, r0, c1, c0, 2      // Write Coprocessor Access Control Register (CPACR)\n        ISB\n\n//----------------------------------------------------------------\n// Switch on the VFP hardware\n//----------------------------------------------------------------\n\n        MOV     r0, #0x40000000\n        VMSR    FPEXC, r0                   // Write FPEXC register, EN bit set\n#endif\n\n\n\n  //\n  // SMP initialization\n  // -------------------\n  MRC     p15, 0, r0, c0, c0, 5     // Read CPU ID register\n  ANDS    r0, r0, #0x03             // Mask off, leaving the CPU ID field\n  BNE     secondaryCPUsInit\n\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        ORR     r0, r0, #(0x1  <<11)              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:9", "text": "//\n  // SMP initialization\n  // -------------------\n  MRC     p15, 0, r0, c0, c0, 5     // Read CPU ID register\n  ANDS    r0, r0, #0x03             // Mask off, leaving the CPU ID field\n  BNE     secondaryCPUsInit\n\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        ORR     r0, r0, #(0x1  <<11)              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n\n\n    .global     __main\n        B       __main\n\n    .size Reset_Handler, . - Reset_Handler\n\n\n// ------------------------------------------------------------\n// Initialization for SECONDARY CPUs\n// ------------------------------------------------------------\n\n  .global secondaryCPUsInit\n  .type secondaryCPUsInit, \"function\"\nsecondaryCPUsInit: cpsie   a\n   wfi\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // enable D Cache\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc\n\n    .size enable_caches, . - enable_caches\n\nmessage1:        .asciz \"Test1\\n\"\nmessage2:        .asciz \"Test2\\n\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:10", "text": "//----------------------------------------------------------------\n\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // enable D Cache\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc\n\n    .size enable_caches, . - enable_caches\n\nmessage1:        .asciz \"Test1\\n\"\nmessage2:        .asciz \"Test2\\n\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 361, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:6", "text": "//        // r0 now contains DTCM size in bits [5:2]\n//\n//        LDR r0, =Image$$DATA$$Base      // Set DTCM base address\n//        ORR r0, r0, #1                  // Enable it\n//        MCR p15, 0, r0, c9, c1, 0       // Write DTCM Region Register\n\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = 0x0000  Size = 32KB   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = 0x40000  Size = 128KB   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = 0x100000  Size = 64KB   Normal  Non-shared  Full access  Not Executable\n// Region 3: Vectors       Base = 0x0000  Size =  1KB   Normal  Non-shared  Full access  Executable\n// Region 4: Peripherals   Base = 0xB0000000   Limit = 0xBFFFFFC0  Device   Full access  Not Executable\n\n        // Import linker symbols to get region base addresses\n    .global  Image$$CODE$$Base\n    .global  Image$$DATA$$Base\n    .global  Image$$ARM_LIB_STACKHEAP$$Base\n\n        // Region 0 - Code\n        MOV     r1, #0\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$CODE$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  | (Full_Access  << 8)  |  Normal_nShared\n        BIC     r2, r2, #Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 1 - Data\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0   | (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:7", "text": "// Region 1 - Data\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0   | (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 3 - Vectors\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 4 - Peripherals\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0xB0000000\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x1  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  | Device_nShared | Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:8", "text": "MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  | Device_nShared | Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP\n//----------------------------------------------------------------\n// Enable access to VFP by enabling access to Coprocessors 10 and 11.\n// Enables Full Access i.e. in both privileged and non privileged modes\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 2      // Read Coprocessor Access Control Register (CPACR)\n        ORR     r0, r0, #(0xF << 20)       // Enable access to CP 10 & 11\n        MCR     p15, 0, r0, c1, c0, 2      // Write Coprocessor Access Control Register (CPACR)\n        ISB\n\n//----------------------------------------------------------------\n// Switch on the VFP hardware\n//----------------------------------------------------------------\n\n        MOV     r0, #0x40000000\n        VMSR    FPEXC, r0                   // Write FPEXC register, EN bit set\n#endif\n\n\n\n  //\n  // SMP initialization\n  // -------------------\n  MRC     p15, 0, r0, c0, c0, 5     // Read CPU ID register\n  ANDS    r0, r0, #0x03             // Mask off, leaving the CPU ID field\n  BNE     secondaryCPUsInit\n\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        //ORR     r0, r0, #(0x1  <<11)              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:9", "text": "//\n  // SMP initialization\n  // -------------------\n  MRC     p15, 0, r0, c0, c0, 5     // Read CPU ID register\n  ANDS    r0, r0, #0x03             // Mask off, leaving the CPU ID field\n  BNE     secondaryCPUsInit\n\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        //ORR     r0, r0, #(0x1  <<11)              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n        //MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        //ORR     r0, r0, #(0x1 << 12)        // enable I Cache\n        //ORR     r0, r0, #(0x1 << 2)         // enable D Cache\n        //MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        //ISB\n\n        ldr     r0, =0xB0000000\n        ldr     r1, =49\n        strb    r1, [r0]\n        ldr     r1, =10\n        strb    r1, [r0]\n\n        ldr     r0, =0xB0000000\n        ldr     r1, =50\n        strb    r1, [r0]\n        ldr     r1, =10\n        strb    r1, [r0]\n\n\n    .global     __main\n        B       __main\n\n    .size Reset_Handler, . - Reset_Handler\n\n\n// ------------------------------------------------------------\n// Initialization for SECONDARY CPUs\n// ------------------------------------------------------------\n\n  .global secondaryCPUsInit\n  .type secondaryCPUsInit, \"function\"\nsecondaryCPUsInit: cpsie   a\n   wfi\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n\n    .global enable_caches", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s:10", "text": "B       __main\n\n    .size Reset_Handler, . - Reset_Handler\n\n\n// ------------------------------------------------------------\n// Initialization for SECONDARY CPUs\n// ------------------------------------------------------------\n\n  .global secondaryCPUsInit\n  .type secondaryCPUsInit, \"function\"\nsecondaryCPUsInit: cpsie   a\n   wfi\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // enable D Cache\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc\n\n    .size enable_caches, . - enable_caches\n\nmessage1:        .asciz \"Test1\\n\"\nmessage2:        .asciz \"Test2\\n\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR5/Startup/AC6/startup.s", "line_start": 361, "line_end": 397}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n#include \"mem_ARMCM7.h\"\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      STACK_SIZE\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      HEAP_SIZE\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s:3", "text": "DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s:4", "text": "Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC5/startup_ARMCR8.s", "line_start": 121, "line_end": 168}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:2", "text": "#define AttrIndx6 0b110\n#define AttrIndx7 0b111\n\n//----------------------------------------------------------------\n\n// Define some values\n#define Mode_USR 0x10\n#define Mode_FIQ 0x11\n#define Mode_IRQ 0x12\n#define Mode_SVC 0x13\n#define Mode_MON 0x16\n#define Mode_ABT 0x17\n#define Mode_UND 0x1B\n#define Mode_SYS 0x1F\n#define Mode_HYP 0x1A\n#define I_Bit 0x80 // when I bit is set, IRQ is disabled\n#define F_Bit 0x40 // when F bit is set, FIQ is disabled\n\n\n// Initial Setup & Entry point\n//----------------------------------------------------------------\n\n    .eabi_attribute Tag_ABI_align8_preserved,1\n    .section  VECTORS,\"ax\"\n    .align 3\n\n    .global Reset_Handler\nReset_Handler:\n\n\n// Reset Handlers (EL1 and EL2)\n//----------------------------------------------------------------\n\nEL2_Reset_Handler:\n\n    .global  Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n    LDR SP, =Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n\n\n    //----------------------------------------------------------------\n    // Disable MPU and caches\n    //----------------------------------------------------------------\n\n    // Disable MPU and cache in case it was left enabled from an earlier run\n    // This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x05               // Disable MPU (M bit) and data cache (C bit)\n        BIC r0, r0, #0x1000             // Disable instruction cache (I bit)\n        DSB                             // Ensure all previous loads/stores have completed\n        MCR p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                             // Ensure subsequent insts execute wrt new MPU settings\n\n//----------------------------------------------------------------\n// Cache invalidation. However Cortex-R52 provides CFG signals to\n// invalidate cache automatically out of reset (CFGL1CACHEINVDISx)\n//----------------------------------------------------------------\n\n        DSB             // Complete all outstanding explicit memory operations", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:3", "text": "// Disable MPU and caches\n    //----------------------------------------------------------------\n\n    // Disable MPU and cache in case it was left enabled from an earlier run\n    // This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x05               // Disable MPU (M bit) and data cache (C bit)\n        BIC r0, r0, #0x1000             // Disable instruction cache (I bit)\n        DSB                             // Ensure all previous loads/stores have completed\n        MCR p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                             // Ensure subsequent insts execute wrt new MPU settings\n\n//----------------------------------------------------------------\n// Cache invalidation. However Cortex-R52 provides CFG signals to\n// invalidate cache automatically out of reset (CFGL1CACHEINVDISx)\n//----------------------------------------------------------------\n\n        DSB             // Complete all outstanding explicit memory operations\n\n        MOV r0, #0\n\n        MCR p15, 0, r0, c7, c5, 0       // Invalidate entire instruction cache\n\n        // Invalidate Data/Unified Caches\n\n        MRC     p15, 1, r0, c0, c0, 1      // Read CLIDR\n        ANDS    r3, r0, #0x07000000        // Extract coherency level\n        MOV     r3, r3, LSR #23            // Total cache levels << 1\n        BEQ     Finished                   // If 0, no need to clean\n\n        MOV     r10, #0                    // R10 holds current cache level << 1\nLoop1:  ADD     r2, r10, r10, LSR #1       // R2 holds cache \"Set\" position\n        MOV     r1, r0, LSR r2             // Bottom 3 bits are the Cache-type for this level\n        AND     r1, r1, #7                 // Isolate those lower 3 bits\n        CMP     r1, #2\n        BLT     Skip                       // No cache or only instruction cache at this level\n\n        MCR     p15, 2, r10, c0, c0, 0     // Write the Cache Size selection register\n        ISB                                // ISB to sync the change to the CacheSizeID reg\n        MRC     p15, 1, r1, c0, c0, 0      // Reads current Cache Size ID register\n        AND     r2, r1, #7                 // Extract the line length field\n        ADD     r2, r2, #4                 // Add 4 for the line length offset (log2 16 bytes)\n        LDR     r4, =0x3FF\n        ANDS    r4, r4, r1, LSR #3         // R4 is the max number on the way size (right aligned)\n        CLZ     r5, r4                     // R5 is the bit position of the way size increment\n        LDR     r7, =0x7FFF\n        ANDS    r7, r7, r1, LSR #13        // R7 is the max number of the index size (right aligned)\n\nLoop2:  MOV     r9, r4                     // R9 working copy of the max way size (right aligned)\n\n#ifdef __THUMB__\nLoop3:  LSL     r12, r9, r5\n        ORR     r11, r10, r12              // Factor in the Way number and cache number into R11\n        LSL     r12, r7, r2\n        ORR     r11, r11, r12              // Factor in the Set number\n#else\nLoop3:  ORR     r11, r10, r9, LSL r5       // Factor in the Way number and cache number into R11\n        ORR     r11, r11, r7, LSL r2       // Factor in the Set number\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:4", "text": "MRC     p15, 1, r1, c0, c0, 0      // Reads current Cache Size ID register\n        AND     r2, r1, #7                 // Extract the line length field\n        ADD     r2, r2, #4                 // Add 4 for the line length offset (log2 16 bytes)\n        LDR     r4, =0x3FF\n        ANDS    r4, r4, r1, LSR #3         // R4 is the max number on the way size (right aligned)\n        CLZ     r5, r4                     // R5 is the bit position of the way size increment\n        LDR     r7, =0x7FFF\n        ANDS    r7, r7, r1, LSR #13        // R7 is the max number of the index size (right aligned)\n\nLoop2:  MOV     r9, r4                     // R9 working copy of the max way size (right aligned)\n\n#ifdef __THUMB__\nLoop3:  LSL     r12, r9, r5\n        ORR     r11, r10, r12              // Factor in the Way number and cache number into R11\n        LSL     r12, r7, r2\n        ORR     r11, r11, r12              // Factor in the Set number\n#else\nLoop3:  ORR     r11, r10, r9, LSL r5       // Factor in the Way number and cache number into R11\n        ORR     r11, r11, r7, LSL r2       // Factor in the Set number\n#endif\n        MCR     p15, 0, r11, c7, c6, 2     // Invalidate by Set/Way\n        SUBS    r9, r9, #1                 // Decrement the Way number\n        BGE     Loop3\n        SUBS    r7, r7, #1                 // Decrement the Set number\n        BGE     Loop2\nSkip:   ADD     r10, r10, #2               // Increment the cache number\n        CMP     r3, r10\n        BGT     Loop1\n\nFinished:\n\n\n\n//----------------------------------------------------------------\n// TCM Configuration\n//----------------------------------------------------------------\n\n// Cortex-R52 optionally provides three Tightly-Coupled Memory (TCM) blocks (ATCM, BTCM and CTCM)\n//    for fast access to code or data.\n\n// The following illustrates basic TCM configuration, as the basis for exploration by the user\n\n#ifdef TCM\n\n        MRC p15, 0, r0, c0, c0, 2       // Read TCM Type Register\n        // r0 now contains TCM availability\n\n        MRC p15, 0, r0, c9, c1, 0       // Read ATCM Region Register\n        // r0 now contains ATCM size in bits [5:2]\n        LDR r0, =Image$$CODE$$Base      // Set ATCM base address\n        ORR r0, r0, #3                  // Enable it\n        MCR p15, 0, r0, c9, c1, 0       // Write ATCM Region Register\n\n        MRC p15, 0, r0, c9, c1, 1       // Read BTCM Region Register\n        // r0 now contains BTCM size in bits [5:2]\n        LDR r0, =Image$$DATA$$Base      // Set BTCM base address\n        ORR r0, r0, #3                  // Enable it\n        MCR p15, 0, r0, c9, c1, 1       // Write BTCM Region Register\n\n        MRC p15, 0, r0, c9, c1, 2       // Read CTCM Region Register", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:5", "text": "// The following illustrates basic TCM configuration, as the basis for exploration by the user\n\n#ifdef TCM\n\n        MRC p15, 0, r0, c0, c0, 2       // Read TCM Type Register\n        // r0 now contains TCM availability\n\n        MRC p15, 0, r0, c9, c1, 0       // Read ATCM Region Register\n        // r0 now contains ATCM size in bits [5:2]\n        LDR r0, =Image$$CODE$$Base      // Set ATCM base address\n        ORR r0, r0, #3                  // Enable it\n        MCR p15, 0, r0, c9, c1, 0       // Write ATCM Region Register\n\n        MRC p15, 0, r0, c9, c1, 1       // Read BTCM Region Register\n        // r0 now contains BTCM size in bits [5:2]\n        LDR r0, =Image$$DATA$$Base      // Set BTCM base address\n        ORR r0, r0, #3                  // Enable it\n        MCR p15, 0, r0, c9, c1, 1       // Write BTCM Region Register\n\n        MRC p15, 0, r0, c9, c1, 2       // Read CTCM Region Register\n        // r0 now contains CTCM size in bits [5:2]\n        LDR r0, =Image$$CTCM$$Base      // Set CTCM base address\n        ORR r0, r0, #1                  // Enable it\n        MCR p15, 0, r0, c9, c1, 2       // Write CTCM Region Register\n\n#endif\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = See scatter file  Limit = Based on usage   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = See scatter file  Limit = Based on usage   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = See scatter file  Limit = Based on usage   Normal  Non-shared  Full access  Not Executable\n// Region 3: Peripherals   Base = 0xB0000000        Limit = 0xBFFFFFC0       Device              Full access  Not Executable\n// Region 4: ATCM          Base = Configurable      Limit = Based on usage   Normal  Non-shared  Full access  Executable\n// Region 5: BTCM          Base = Configurable      Limit = Based on usage   Normal  Non-shared  Full access  Executable\n// Region 6: CTCM          Base = Configurable      Limit = Based on usage   Normal  Non-shared  Full access  Executable\n\n        LDR     r0, =64\n\n        // Region 0 - Code\nREG0:\n        LDR     r1, =Image$$CODE$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RO_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c8, 0                   // write PRBAR0\n        LDR     r1, =Image$$CODE$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c8, 1                   // write PRLAR0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:6", "text": "// Region 3: Peripherals   Base = 0xB0000000        Limit = 0xBFFFFFC0       Device              Full access  Not Executable\n// Region 4: ATCM          Base = Configurable      Limit = Based on usage   Normal  Non-shared  Full access  Executable\n// Region 5: BTCM          Base = Configurable      Limit = Based on usage   Normal  Non-shared  Full access  Executable\n// Region 6: CTCM          Base = Configurable      Limit = Based on usage   Normal  Non-shared  Full access  Executable\n\n        LDR     r0, =64\n\n        // Region 0 - Code\nREG0:\n        LDR     r1, =Image$$CODE$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RO_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c8, 0                   // write PRBAR0\n        LDR     r1, =Image$$CODE$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c8, 1                   // write PRLAR0\n\n        // Region 1 - Data\nREG1:\n        LDR     r1, =Image$$DATA$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c8, 4                   // write PRBAR1\n        LDR     r1, =Image$$DATA$$ZI$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c8, 5                   // write PRLAR1\n\n        // Region 2 - Stack-Heap\nREG2:\n        LDR     r1, =Image$$ARM_LIB_STACKHEAP$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 0                   // write PRBAR2\n        LDR     r1, =Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 1                   // write PRLAR2\n\n        // Region 3 - Peripherals\nREG3:\n        LDR     r1, =0xAA000000\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 4                   // write PRBAR3\n        LDR     r1, =0xBFFFFFC0\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 5                   // write PRLAR3\n\n#ifdef TCM", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:7", "text": "ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 1                   // write PRLAR2\n\n        // Region 3 - Peripherals\nREG3:\n        LDR     r1, =0xAA000000\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 4                   // write PRBAR3\n        LDR     r1, =0xBFFFFFC0\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c9, 5                   // write PRLAR3\n\n#ifdef TCM\n        // Region 4 - ATCM\n        LDR     r1, =Image$$ATCM$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c10, 0                  // write PRBAR4\n        LDR     r1, =Image$$ATCM$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx1<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c10, 1                  // write PRLAR4\n\n        // Region 5 - BTCM\n        LDR     r1, =Image$$BTCM$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c10, 4                  // write PRBAR5\n        LDR     r1, =Image$$BTCM$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c10, 5                  // write PRLAR5\n\n        // Region 6 - CTCM\n        LDR     r1, =Image$$CTCM$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c11, 0                  // write PRBAR6\n        LDR     r1, =Image$$CTCM$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c11, 1                  // write PRLAR6\n#endif\n\n\nother_mems_en:\n        // Enable PERIPHREGIONR (LLPP)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:8", "text": "LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c10, 5                  // write PRLAR5\n\n        // Region 6 - CTCM\n        LDR     r1, =Image$$CTCM$$Base\n        LDR     r2, =((Non_Shareable<<3) | (RW_Access<<1))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c11, 0                  // write PRBAR6\n        LDR     r1, =Image$$CTCM$$Limit\n        ADD     r1, r1, #63\n        BFC     r1, #0, #6                              // align Limit to 64bytes\n        LDR     r2, =((AttrIndx0<<1) | (ENable))\n        ORR     r1, r1, r2\n        MCR     p15, 0, r1, c6, c11, 1                  // write PRLAR6\n#endif\n\n\nother_mems_en:\n        // Enable PERIPHREGIONR (LLPP)\n        mrc     p15, 0, r1, c15, c0, 0   // PERIPHREGIONR\n        orr     r1, r1, #(0x1 << 1)      // Enable PERIPHREGIONR EL2\n        orr     r1, r1, #(0x1)           // Enable PERIPHREGIONR EL10\n        mcr     p15, 0, r1, c15, c0, 0   // PERIPHREGIONR\n\n//#ifdef __ARM_FP\n//----------------------------------------------------------------\n// Enable access to VFP by enabling access to Coprocessors 10 and 11.\n// Enables Full Access i.e. in both privileged and non privileged modes\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 2      // Read Coprocessor Access Control Register (CPACR)\n        ORR     r0, r0, #(0xF << 20)       // Enable access to CP 10 & 11\n        MCR     p15, 0, r0, c1, c0, 2      // Write Coprocessor Access Control Register (CPACR)\n        ISB\n\n//----------------------------------------------------------------\n// Switch on the VFP hardware\n//----------------------------------------------------------------\n\n        MOV     r0, #0x40000000\n        VMSR    FPEXC, r0                   // Write FPEXC register, EN bit set\n//#endif\n\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n//Check which CPU I am\n        MRC p15, 0, r0, c0, c0, 5       // Read MPIDR\n        ANDS r0, r0, 0xF\n        BEQ cpu0                        // If CPU0 then initialise C runtime", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:9", "text": "MOV     r0, #0x40000000\n        VMSR    FPEXC, r0                   // Write FPEXC register, EN bit set\n//#endif\n\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n//Check which CPU I am\n        MRC p15, 0, r0, c0, c0, 5       // Read MPIDR\n        ANDS r0, r0, 0xF\n        BEQ cpu0                        // If CPU0 then initialise C runtime\n        CMP r0, #1\n        BEQ loop_wfi                    // If CPU1 then jump to loop_wfi\n        CMP r0, #2\n        BEQ loop_wfi                    // If CPU2 then jump to loop_wfi\n        CMP r0, #3\n        BEQ loop_wfi                    // If CPU3 then jump to loop_wfi\nerror:\n        B error                         // else.. something is wrong\n\nloop_wfi:\n        DSB SY      // Clear all pending data accesses\n        WFI         // Go to sleep\n        B loop_wfi\n\n\ncpu0:\n\n    // Branch to __main\n    //------------------------\n    .global     __main\n        B      __main\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 4, r0, c1, c0, 0       // read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // Set I bit 12 to enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // Set C bit  2 to enable D Cache\n        MCR     p15, 4, r0, c1, c0, 0       // write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:10", "text": "B      __main\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 4, r0, c1, c0, 0       // read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // Set I bit 12 to enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // Set C bit  2 to enable D Cache\n        MCR     p15, 4, r0, c1, c0, 0       // write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc\n\n    .size enable_caches, . - enable_caches\n\n\n// Exception Vector Table & Handlers\n//----------------------------------------------------------------\n\nEL2_Vectors:\n\n    LDR PC, EL2_Reset_Addr\n    LDR PC, EL2_Undefined_Addr\n    LDR PC, EL2_HVC_Addr\n    LDR PC, EL2_Prefetch_Addr\n    LDR PC, EL2_Abort_Addr\n    LDR PC, EL2_HypModeEntry_Addr\n    LDR PC, EL2_IRQ_Addr\n    LDR PC, EL2_FIQ_Addr\n\n    EL2_Reset_Addr:         .word    EL2_Reset_Handler\n    EL2_Undefined_Addr:     .word    EL2_Undefined_Handler\n    EL2_HVC_Addr:           .word    EL2_HVC_Handler\n    EL2_Prefetch_Addr:      .word    EL2_Prefetch_Handler\n    EL2_Abort_Addr:         .word    EL2_Abort_Handler\n    EL2_HypModeEntry_Addr:  .word    EL2_HypModeEntry_Handler\n    EL2_IRQ_Addr:           .word    EL2_IRQ_Handler\n    EL2_FIQ_Addr:           .word    EL2_FIQ_Handler\n\n    EL2_Undefined_Handler:          B   EL2_Undefined_Handler\n    EL2_HVC_Handler:                B   EL2_HVC_Handler\n    EL2_Prefetch_Handler:           B   EL2_Prefetch_Handler\n    EL2_Abort_Handler:              B   EL2_Abort_Handler\n    EL2_HypModeEntry_Handler:       B   EL2_HypModeEntry_Handler\n    EL2_IRQ_Handler:                B   EL2_IRQ_Handler\n    EL2_FIQ_Handler:                B   EL2_FIQ_Handler\n\n\nEL1_Vectors:\n\n    LDR PC, EL1_Reset_Addr\n    LDR PC, EL1_Undefined_Addr\n    LDR PC, EL1_SVC_Addr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s:11", "text": "EL2_Prefetch_Addr:      .word    EL2_Prefetch_Handler\n    EL2_Abort_Addr:         .word    EL2_Abort_Handler\n    EL2_HypModeEntry_Addr:  .word    EL2_HypModeEntry_Handler\n    EL2_IRQ_Addr:           .word    EL2_IRQ_Handler\n    EL2_FIQ_Addr:           .word    EL2_FIQ_Handler\n\n    EL2_Undefined_Handler:          B   EL2_Undefined_Handler\n    EL2_HVC_Handler:                B   EL2_HVC_Handler\n    EL2_Prefetch_Handler:           B   EL2_Prefetch_Handler\n    EL2_Abort_Handler:              B   EL2_Abort_Handler\n    EL2_HypModeEntry_Handler:       B   EL2_HypModeEntry_Handler\n    EL2_IRQ_Handler:                B   EL2_IRQ_Handler\n    EL2_FIQ_Handler:                B   EL2_FIQ_Handler\n\n\nEL1_Vectors:\n\n    LDR PC, EL1_Reset_Addr\n    LDR PC, EL1_Undefined_Addr\n    LDR PC, EL1_SVC_Addr\n    LDR PC, EL1_Prefetch_Addr\n    LDR PC, EL1_Abort_Addr\n    LDR PC, EL1_Reserved\n    LDR PC, EL1_IRQ_Addr\n    LDR PC, EL1_FIQ_Addr\n\n    EL1_Reset_Addr:     .word    EL1_Reset_Handler\n    EL1_Undefined_Addr: .word    EL1_Undefined_Handler\n    EL1_SVC_Addr:       .word    EL1_SVC_Handler\n    EL1_Prefetch_Addr:  .word    EL1_Prefetch_Handler\n    EL1_Abort_Addr:     .word    EL1_Abort_Handler\n    EL1_Reserved_Addr:  .word    EL1_Reserved\n    EL1_IRQ_Addr:       .word    EL1_IRQ_Handler\n    EL1_FIQ_Addr:       .word    EL1_FIQ_Handler\n\n    EL1_Reset_Handler:              B   EL1_Reset_Handler\n    EL1_Undefined_Handler:          B   EL1_Undefined_Handler\n    EL1_SVC_Handler:                B   EL1_SVC_Handler\n    EL1_Prefetch_Handler:           B   EL1_Prefetch_Handler\n    EL1_Abort_Handler:              B   EL1_Abort_Handler\n    EL1_Reserved:                   B   EL1_Reserved\n    EL1_IRQ_Handler:                B   EL1_IRQ_Handler\n    EL1_FIQ_Handler:                B   EL1_FIQ_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "fe27d87751747a8fe07ef626d620eb3d62c29d2f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fe27d87751747a8fe07ef626d620eb3d62c29d2f/CMSIS/DSP/Platforms/IPSS/ARMCR52/Startup/AC6/startup.s", "line_start": 401, "line_end": 443}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:2", "text": "#define Region_8M   0b10110\n#define Region_16M  0b10111\n#define Region_32M  0b11000\n#define Region_64M  0b11001\n#define Region_128M 0b11010\n#define Region_256M 0b11011\n#define Region_512M 0b11100\n#define Region_1G   0b11101\n#define Region_2G   0b11110\n#define Region_4G   0b11111\n\n#define Region_Enable 0b1\n\n#define Execute_Never 0x1000 // Bit 12\n\n#define Normal_nShared 0x03 // Outer and Inner write-back, no write-allocate\n#define Device_nShared 0x10\n\n#define Full_Access 0b011\n#define Read_Only   0b110\n\n//----------------------------------------------------------------\n\n    .eabi_attribute Tag_ABI_align8_preserved,1\n\n    .section  VECTORS,\"ax\"\n    .align 3\n    .cfi_sections .debug_frame  // put stack frame info into .debug_frame instead of .eh_frame\n\n\n//----------------------------------------------------------------\n// Entry point for the Reset handler\n//----------------------------------------------------------------\n\n    .global Start\n\nStart:\n\n//----------------------------------------------------------------\n// Exception Vector Table\n//----------------------------------------------------------------\n// Note: LDR PC instructions are used here, though branch (B) instructions\n// could also be used, unless the exception handlers are >32MB away.\n\nVectors:\n        LDR PC, Reset_Addr\n        LDR PC, Undefined_Addr\n        LDR PC, SVC_Addr\n        LDR PC, Prefetch_Addr\n        LDR PC, Abort_Addr\n        B .                              // Reserved vector\n        LDR PC, IRQ_Addr\n        LDR PC, FIQ_Addr\n\n\n    .balign 4\nReset_Addr:     .word Reset_Handler\nUndefined_Addr: .word Undefined_Handler\nSVC_Addr:       .word SVC_Handler\nPrefetch_Addr:  .word Prefetch_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:3", "text": "//----------------------------------------------------------------\n// Note: LDR PC instructions are used here, though branch (B) instructions\n// could also be used, unless the exception handlers are >32MB away.\n\nVectors:\n        LDR PC, Reset_Addr\n        LDR PC, Undefined_Addr\n        LDR PC, SVC_Addr\n        LDR PC, Prefetch_Addr\n        LDR PC, Abort_Addr\n        B .                              // Reserved vector\n        LDR PC, IRQ_Addr\n        LDR PC, FIQ_Addr\n\n\n    .balign 4\nReset_Addr:     .word Reset_Handler\nUndefined_Addr: .word Undefined_Handler\nSVC_Addr:       .word SVC_Handler\nPrefetch_Addr:  .word Prefetch_Handler\nAbort_Addr:     .word Abort_Handler\nIRQ_Addr:       .word IRQ_Handler\nFIQ_Addr:       .word FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Exception Handlers\n//----------------------------------------------------------------\n\nUndefined_Handler:\n        B   Undefined_Handler\nSVC_Handler:\n        B   SVC_Handler\nPrefetch_Handler:\n        B   Prefetch_Handler\nAbort_Handler:\n        B   Abort_Handler\nIRQ_Handler:\n        B   IRQ_Handler\nFIQ_Handler:\n        B   FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Reset Handler\n//----------------------------------------------------------------\n\n    .global Reset_Handler\n    .type Reset_Handler, \"function\"\nReset_Handler:\n\n//----------------------------------------------------------------\n// Disable MPU and caches\n//----------------------------------------------------------------\n\n// Disable MPU and cache in case it was left enabled from an earlier run\n// This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x05               // Disable MPU (M bit) and data cache (C bit)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:4", "text": "B   FIQ_Handler\n\n\n//----------------------------------------------------------------\n// Reset Handler\n//----------------------------------------------------------------\n\n    .global Reset_Handler\n    .type Reset_Handler, \"function\"\nReset_Handler:\n\n//----------------------------------------------------------------\n// Disable MPU and caches\n//----------------------------------------------------------------\n\n// Disable MPU and cache in case it was left enabled from an earlier run\n// This does not need to be done from a cold reset\n\n        MRC p15, 0, r0, c1, c0, 0       // Read System Control Register\n        BIC r0, r0, #0x05               // Disable MPU (M bit) and data cache (C bit)\n        BIC r0, r0, #0x800              // Disable branch prediction (Z bit)\n        BIC r0, r0, #0x1000             // Disable instruction cache (I bit)\n        DSB                             // Ensure all previous loads/stores have completed\n        MCR p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                             // Ensure subsequent insts execute wrt new MPU settings\n\n\n//----------------------------------------------------------------\n// Initialize Supervisor Mode Stack using Linker symbol from scatter file.\n// Stacks must be 8 byte aligned.\n//----------------------------------------------------------------\n\n        .global  Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n        LDR SP, =Image$$ARM_LIB_STACKHEAP$$ZI$$Limit\n\n\n//----------------------------------------------------------------\n// Cache invalidation\n//----------------------------------------------------------------\n\n        DSB\n        MOV     r0, #0\n        MCR     p15, 0, r0, c7, c5, 0      // invalidate I cache\n        MCR     p15, 0, r0, c15, c5, 0     // invalidate D cache\n\n//----------------------------------------------------------------\n// TCM Configuration\n//----------------------------------------------------------------\n\n// Cortex-R8 optionally provides two Tightly-Coupled Memory (TCM) blocks (ITCM and DTCM)\n//    for fast access to code or data.\n// ITCM typically holds interrupt or exception code that must be accessed at high speed,\n//    without any potential delay resulting from a cache miss.\n// DTCM typically holds a block of data for intensive processing, such as audio or video data.\n\n// The following illustrates basic TCM configuration, as the basis for exploration by the user\n\n\n     .global  Image$$CODE$$Base\n     .global  Image$$DATA$$Base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:5", "text": "DSB\n        MOV     r0, #0\n        MCR     p15, 0, r0, c7, c5, 0      // invalidate I cache\n        MCR     p15, 0, r0, c15, c5, 0     // invalidate D cache\n\n//----------------------------------------------------------------\n// TCM Configuration\n//----------------------------------------------------------------\n\n// Cortex-R8 optionally provides two Tightly-Coupled Memory (TCM) blocks (ITCM and DTCM)\n//    for fast access to code or data.\n// ITCM typically holds interrupt or exception code that must be accessed at high speed,\n//    without any potential delay resulting from a cache miss.\n// DTCM typically holds a block of data for intensive processing, such as audio or video data.\n\n// The following illustrates basic TCM configuration, as the basis for exploration by the user\n\n\n     .global  Image$$CODE$$Base\n     .global  Image$$DATA$$Base\n\n        MRC p15, 0, r0, c0, c0, 2       // Read TCM Type Register\n        // r0 now contains ITCM & DTCM availability\n\n        MRC p15, 0, r0, c9, c1, 1       // Read ITCM Region Register\n        // r0 now contains ITCM size in bits [5:2]\n\n        LDR r0, =Image$$CODE$$Base      // Set ITCM base address\n        ORR r0, r0, #1                  // Enable it\n        MCR p15, 0, r0, c9, c1, 1       // Write ITCM Region Register\n\n        MRC p15, 0, r0, c9, c1, 0       // Read DTCM Region Register\n        // r0 now contains DTCM size in bits [5:2]\n\n        LDR r0, =Image$$DATA$$Base      // Set DTCM base address\n        ORR r0, r0, #1                  // Enable it\n        MCR p15, 0, r0, c9, c1, 0       // Write DTCM Region Register\n\n\n\n    MRC     p15, 0, r0, c1, c0, 1\n    TST     r0, #(1 << 6) //  SMP bit\n    ORREQ   r0, r0, #(1 << 6) //  Set SMP bit in aux control register\n    MCREQ   p15, 0, r0, c1, c0, 1 //  write Aux Control Register (ACTLR)\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = 0x0000  Size = 32KB   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = 0x40000  Size = 128KB   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = 0x100000  Size = 64KB   Normal  Non-shared  Full access  Not Executable\n// Region 3: Vectors       Base = 0x0000  Size =  1KB   Normal  Non-shared  Full access  Executable\n// Region 4: Peripherals   Base = 0xB0000000   Limit = 0xBFFFFFC0  Device   Full access  Not Executable", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:6", "text": "MRC     p15, 0, r0, c1, c0, 1\n    TST     r0, #(1 << 6) //  SMP bit\n    ORREQ   r0, r0, #(1 << 6) //  Set SMP bit in aux control register\n    MCREQ   p15, 0, r0, c1, c0, 1 //  write Aux Control Register (ACTLR)\n\n//----------------------------------------------------------------\n// MPU Configuration\n//----------------------------------------------------------------\n\n// Notes:\n// * Regions apply to both instruction and data accesses.\n// * Each region base address must be a multiple of its size\n// * Any address range not covered by an enabled region will abort\n// * The region at 0x0 over the Vector table is needed to support semihosting\n\n// Region 0: Code          Base = 0x0000  Size = 32KB   Normal  Non-shared  Read-only    Executable\n// Region 1: Data          Base = 0x40000  Size = 128KB   Normal  Non-shared  Full access  Not Executable\n// Region 2: Stack/Heap    Base = 0x100000  Size = 64KB   Normal  Non-shared  Full access  Not Executable\n// Region 3: Vectors       Base = 0x0000  Size =  1KB   Normal  Non-shared  Full access  Executable\n// Region 4: Peripherals   Base = 0xB0000000   Limit = 0xBFFFFFC0  Device   Full access  Not Executable\n\n        // Import linker symbols to get region base addresses\n    .global  Image$$CODE$$Base\n    .global  Image$$DATA$$Base\n    .global  Image$$ARM_LIB_STACKHEAP$$Base\n\n        // Region 0 - Code\n        MOV     r1, #0\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$CODE$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access  << 8)  |  Normal_nShared\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 1 - Data\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 3 - Vectors", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:7", "text": "ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$DATA$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 2 - Stack/Heap\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =Image$$ARM_LIB_STACKHEAP$$Base\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1M << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared  |  Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 3 - Vectors\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  |  Normal_nShared\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Region 4 - Peripherals\n        ADD     r1, r1, #1\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register\n        ISB                                 // Ensure subsequent insts execute wrt this region\n        LDR     r2, =0xB0000000\n        MCR     p15, 0, r2, c6, c1, 0       // Set region base address register\n        LDR     r2, =0x0  |  (Region_1K  << 1)  |  Region_Enable\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register\n        LDR     r2, =0x0  |  (Full_Access << 8)  | Device_nShared | Execute_Never\n        MCR     p15, 0, r2, c6, c1, 4       // Set region access control register\n\n        // Disable all higher priority regions (assumes unified regions, which is always true for Cortex-R8)\n        MRC     p15, 0, r0, c0, c0, 4       // Read MPU Type register (MPUIR)\n        LSR     r0, r0, #8\n        AND     r0, r0, #0xff               // r0 = Number of MPU regions (12, 16, 20, or 24 for Cortex-R8)\n        MOV     r2, #0                      // Value to write to disable region\nregion_loop:\n        ADD     r1, r1, #1\n        CMP     r0, r1\n        BLS     regions_done\n        MCR     p15, 0, r1, c6, c2, 0       // Set memory region number register (RGNR)\n        MCR     p15, 0, r2, c6, c1, 2       // Set region size & enable register (DRSR)\n        B       region_loop\nregions_done:\n\n\n#ifdef __ARM_FP\n//----------------------------------------------------------------\n// Enable access to VFP by enabling access to Coprocessors 10 and 11.\n// Enables Full Access i.e. in both privileged and non privileged modes", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s:9", "text": "BNE     secondaryCPUsInit\n\n//----------------------------------------------------------------\n// Enable MPU and branch to C library init\n// Leaving the caches disabled until after scatter loading.\n//----------------------------------------------------------------\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #0x01               // Set M bit to enable MPU\n        ORR     r0, r0, #0x800              // Set Z bit to enable branch prediction\n        DSB                                 // Ensure all previous loads/stores have completed\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB                                 // Ensure subsequent insts execute wrt new MPU settings\n\n    .global     __main\n        B       __main\n\n    .size Reset_Handler, . - Reset_Handler\n\n\n// ------------------------------------------------------------\n// Initialization for SECONDARY CPUs\n// ------------------------------------------------------------\n\n  .global secondaryCPUsInit\n  .type secondaryCPUsInit, \"function\"\nsecondaryCPUsInit:\n   wfi\n\n\n//----------------------------------------------------------------\n// Global Enable for Instruction and Data Caching\n//----------------------------------------------------------------\n\n    .global enable_caches\n    .type enable_caches, \"function\"\n    .cfi_startproc\nenable_caches:\n\n        MRC     p15, 0, r0, c1, c0, 0       // Read System Control Register\n        ORR     r0, r0, #(0x1 << 12)        // enable I Cache\n        ORR     r0, r0, #(0x1 << 2)         // enable D Cache\n        MCR     p15, 0, r0, c1, c0, 0       // Write System Control Register\n        ISB\n\n        BX    lr\n    .cfi_endproc\n\n    .size enable_caches, . - enable_caches", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "license": "Apache-2.0", "commit": "0e0449ac0f5610007552b554e40c38e017d32d09", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e0449ac0f5610007552b554e40c38e017d32d09/CMSIS/DSP/Platforms/IPSS/ARMCR8/Startup/AC6/startup.s", "line_start": 321, "line_end": 369}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n                IMPORT  |Image$$ARM_LIB_STACK$$ZI$$Limit|\n\n__Vectors       DCD     |Image$$ARM_LIB_STACK$$ZI$$Limit|    ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "f8d8ec84e3b7876e17fb0ec2b782226dfd5faebf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f8d8ec84e3b7876e17fb0ec2b782226dfd5faebf/CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s:2", "text": "DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n                IMPORT   |Image$$ARM_LIB_STACK$$ZI$$Base|\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =|Image$$ARM_LIB_STACK$$ZI$$Base|\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "f8d8ec84e3b7876e17fb0ec2b782226dfd5faebf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f8d8ec84e3b7876e17fb0ec2b782226dfd5faebf/CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s:3", "text": "BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "f8d8ec84e3b7876e17fb0ec2b782226dfd5faebf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f8d8ec84e3b7876e17fb0ec2b782226dfd5faebf/CMSIS/DSP/Platforms/MPS3/ARMCM33/Startup/AC6/startup_ARMCM33.s", "line_start": 81, "line_end": 125}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Platforms/NORMALFVP/ARMv81MML/Startup/GCC/startup_asm_ARMv81MML.S:1", "text": ".global Reset_Handler\n        .global __StackLimit\n        .global _ttywrch\n        .global _sys_exit\n        .syntax unified\n        .text\n        .thumb\n        .thumb_func\n        .align  2\n        .global  Reset_Handler\n\n\n        .type   _ttywrch, %function\n\n _ttywrch:\n        PUSH     {r3,lr}\n        MOV      r1,sp\n        STRB     r0,[sp,#0]\n        MOVS     r0,#3\n        BKPT     #0xab\n        POP      {r3,pc}\n        MOVS     r0,r0\n\n        .type   _sys_exit, %function\n\n_sys_exit:\n        LDR      r1,=0x20026\n        MOVS     r0,#0x18\n        BKPT     #0xab\nloop:   B        loop\n\n        .type   Reset_Handler, %function\n\nReset_Handler:\n\n\n\n                LDR      R0,=ResetC_Handler\n                BLX      R0\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Platforms/NORMALFVP/ARMv81MML/Startup/GCC/startup_asm_ARMv81MML.S", "license": "Apache-2.0", "commit": "1b9f91f485510f143052b4d0ac212670a0be6bd4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1b9f91f485510f143052b4d0ac212670a0be6bd4/CMSIS/DSP/Platforms/NORMALFVP/ARMv81MML/Startup/GCC/startup_asm_ARMv81MML.S", "line_start": 1, "line_end": 41}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:2", "text": "#define\tCODESECT\tswitch .text\n\t#define THUMB\n\t#define EXPORT\txdef\n\t#define PROC\t:\n\t#define LABEL\t:\n\t#define ENDP\n\t#define arm_bitreversal_32 _arm_bitreversal_32\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n    #define THUMB    .thumb\n    #define CODESECT .text\n    #define EXPORT   .global\n    #define PROC     : .asmfunc\n    #define LABEL    :\n    #define ENDP     .endasmfunc\n    #define END\n#elif defined ( __GNUC__ )     /* GCC */\n    #define THUMB .thumb\n    #define CODESECT .section .text\n    #define EXPORT .global\n    #define PROC :\n    #define LABEL :\n    #define ENDP\n    #define END\n\n    .syntax unified\n#endif\n\n\tCODESECT\n\tTHUMB\n\n;/**\n;  @brief         In-place bit reversal function.\n;  @param[in,out] pSrc        points to the in-place buffer of unknown 32-bit data type\n;  @param[in]     bitRevLen   bit reversal table length\n;  @param[in]     pBitRevTab  points to bit reversal table\n;  @return        none\n; */\n\tEXPORT arm_bitreversal_32\n\tEXPORT arm_bitreversal_16\n\n#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined (ARM_MATH_CM0_FAMILY)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "12955cd8dd3e4f475c2edfd9557fc984c56d127a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/12955cd8dd3e4f475c2edfd9557fc984c56d127a/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:3", "text": "#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined (ARM_MATH_CM0_FAMILY)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r6,#4]\n\tSTR      r5,[r6,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_16_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n    LSRS     r2,r2,#1\n    LSRS     r6,r6,#1\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\n#else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "12955cd8dd3e4f475c2edfd9557fc984c56d127a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/12955cd8dd3e4f475c2edfd9557fc984c56d127a/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:4", "text": "LSRS     r3,r3,#1\narm_bitreversal_16_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n    LSRS     r2,r2,#1\n    LSRS     r6,r6,#1\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\n#else\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tCMP      r3,#1\n\tIT       LS\n\tBXLS     lr\n\tPUSH     {r4-r9}\n\tADDS     r1,r2,#2\n\tLSRS     r3,r3,#2\narm_bitreversal_32_0 LABEL       ;/* loop unrolled by 2 */\n\tLDRH     r8,[r1,#4]\n\tLDRH     r9,[r1,#2]\n\tLDRH     r2,[r1,#0]\n\tLDRH     r12,[r1,#-2]\n\tADD      r8,r0,r8\n\tADD      r9,r0,r9\n\tADD      r2,r0,r2\n\tADD      r12,r0,r12\n\tLDR      r7,[r9,#0]\n\tLDR      r6,[r8,#0]\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r7,[r9,#4]\n\tLDR      r6,[r8,#4]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r12,#4]\n\tSTR      r6,[r9,#4]\n\tSTR      r7,[r8,#4]\n\tSTR      r5,[r12,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r9}\n\tBX       lr\n\tENDP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "12955cd8dd3e4f475c2edfd9557fc984c56d127a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/12955cd8dd3e4f475c2edfd9557fc984c56d127a/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:5", "text": "LDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r7,[r9,#4]\n\tLDR      r6,[r8,#4]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r12,#4]\n\tSTR      r6,[r9,#4]\n\tSTR      r7,[r8,#4]\n\tSTR      r5,[r12,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r9}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tCMP      r3,#1\n\tIT       LS\n\tBXLS     lr\n\tPUSH     {r4-r9}\n\tADDS     r1,r2,#2\n\tLSRS     r3,r3,#2\narm_bitreversal_16_0 LABEL       ;/* loop unrolled by 2 */\n\tLDRH     r8,[r1,#4]\n\tLDRH     r9,[r1,#2]\n\tLDRH     r2,[r1,#0]\n\tLDRH     r12,[r1,#-2]\n\tADD      r8,r0,r8,LSR #1\n\tADD      r9,r0,r9,LSR #1\n\tADD      r2,r0,r2,LSR #1\n\tADD      r12,r0,r12,LSR #1\n\tLDR      r7,[r9,#0]\n\tLDR      r6,[r8,#0]\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r9}\n\tBX       lr\n\tENDP\n\n#endif\n\n\tEND", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "12955cd8dd3e4f475c2edfd9557fc984c56d127a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/12955cd8dd3e4f475c2edfd9557fc984c56d127a/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 161, "line_end": 216}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:6", "text": "LDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r9}\n\tBX       lr\n\tENDP\n\n#endif\n\n\tEND", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "12955cd8dd3e4f475c2edfd9557fc984c56d127a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/12955cd8dd3e4f475c2edfd9557fc984c56d127a/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 201, "line_end": 216}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:2", "text": "#define\tCODESECT\tswitch .text\n\t#define THUMB\n\t#define EXPORT\txdef\n\t#define PROC\t:\n\t#define LABEL\t:\n\t#define ENDP\n\t#define arm_bitreversal_32 _arm_bitreversal_32\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n    #define THUMB    .thumb\n    #define CODESECT .text\n    #define EXPORT   .global\n    #define PROC     : .asmfunc\n    #define LABEL    :\n    #define ENDP     .endasmfunc\n    #define END\n#elif defined ( __GNUC__ )     /* GCC */\n    #define THUMB .thumb\n    #define CODESECT .section .text\n    #define EXPORT .global\n    #define PROC :\n    #define LABEL :\n    #define ENDP\n    #define END\n\n    .syntax unified\n#endif\n\n\tCODESECT\n\tTHUMB\n\n;/*\n;* @brief  In-place bit reversal function.\n;* @param[in, out] *pSrc        points to the in-place buffer of unknown 32-bit data type.\n;* @param[in]      bitRevLen    bit reversal table length\n;* @param[in]      *pBitRevTab  points to bit reversal table.\n;* @return none.\n;*/\n\tEXPORT arm_bitreversal_32\n\tEXPORT arm_bitreversal_16\n\n#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined (ARM_MATH_CM0_FAMILY)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "5913df817782f89e727ab249ea8a4ee4af4748f5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/5913df817782f89e727ab249ea8a4ee4af4748f5/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:2", "text": "#define\tCODESECT\tswitch .text\n\t#define THUMB\n\t#define EXPORT\txdef\n\t#define PROC\t:\n\t#define LABEL\t:\n\t#define ENDP\n\t#define arm_bitreversal_32 _arm_bitreversal_32\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n    #define THUMB    .thumb\n    #define CODESECT .text\n    #define EXPORT   .global\n    #define PROC     : .asmfunc\n    #define LABEL    :\n    #define ENDP     .endasmfunc\n    #define END\n#elif defined ( __GNUC__ )     /* GCC */\n    #define THUMB .thumb\n    #define CODESECT .section .text\n    #define EXPORT .global\n    #define PROC :\n    #define LABEL :\n    #define ENDP\n    #define END\n\n    .syntax unified\n#endif\n\n\tCODESECT\n\tTHUMB\n\n;/*\n;* @brief  In-place bit reversal function.\n;* @param[in, out] *pSrc        points to the in-place buffer of unknown 32-bit data type.\n;* @param[in]      bitRevLen    bit reversal table length\n;* @param[in]      *pBitRevTab  points to bit reversal table.\n;* @return none.\n;*/\n\tEXPORT arm_bitreversal_32\n\tEXPORT arm_bitreversal_16\n\n#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined(ARM_MATH_CM0) || defined(ARM_MATH_CM0PLUS) || defined(ARM_MATH_ARMV8MBL)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "ceee686adce328982210c457ff9056e2707125fc", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ceee686adce328982210c457ff9056e2707125fc/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:3", "text": "#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined(ARM_MATH_CM0) || defined(ARM_MATH_CM0PLUS) || defined(ARM_MATH_ARMV8MBL)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r6,#4]\n\tSTR      r5,[r6,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_16_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n    LSRS     r2,r2,#1\n    LSRS     r6,r6,#1\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\n#else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "ceee686adce328982210c457ff9056e2707125fc", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ceee686adce328982210c457ff9056e2707125fc/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:3", "text": "THUMB\n\n;/*\n;* @brief  In-place bit reversal function.\n;* @param[in, out] *pSrc        points to the in-place buffer of unknown 32-bit data type.\n;* @param[in]      bitRevLen    bit reversal table length\n;* @param[in]      *pBitRevTab  points to bit reversal table.\n;* @return none.\n;*/\n\tEXPORT arm_bitreversal_32\n\tEXPORT arm_bitreversal_16\n\n#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined(ARM_MATH_CM0) || defined(ARM_MATH_CM0PLUS) || defined(ARM_MATH_ARMV8MBL)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r6,#4]\n\tSTR      r5,[r6,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_16_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n    LSRS     r2,r2,#1\n    LSRS     r6,r6,#1\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "ec3081af4b42309566f1180dcb3f9db8508c7aa4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3081af4b42309566f1180dcb3f9db8508c7aa4/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:4", "text": "STR      r4,[r2,#4]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_16_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n    LSRS     r2,r2,#1\n    LSRS     r6,r6,#1\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\n#else\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tCMP      r3,#1\n\tIT       LS\n\tBXLS     lr\n\tPUSH     {r4-r9}\n\tADDS     r1,r2,#2\n\tLSRS     r3,r3,#2\narm_bitreversal_32_0 LABEL       ;/* loop unrolled by 2 */\n\tLDRH     r8,[r1,#4]\n\tLDRH     r9,[r1,#2]\n\tLDRH     r2,[r1,#0]\n\tLDRH     r12,[r1,#-2]\n\tADD      r8,r0,r8\n\tADD      r9,r0,r9\n\tADD      r2,r0,r2\n\tADD      r12,r0,r12\n\tLDR      r7,[r9,#0]\n\tLDR      r6,[r8,#0]\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r7,[r9,#4]\n\tLDR      r6,[r8,#4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "ec3081af4b42309566f1180dcb3f9db8508c7aa4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3081af4b42309566f1180dcb3f9db8508c7aa4/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:5", "text": "LSRS     r3,r3,#2\narm_bitreversal_32_0 LABEL       ;/* loop unrolled by 2 */\n\tLDRH     r8,[r1,#4]\n\tLDRH     r9,[r1,#2]\n\tLDRH     r2,[r1,#0]\n\tLDRH     r12,[r1,#-2]\n\tADD      r8,r0,r8\n\tADD      r9,r0,r9\n\tADD      r2,r0,r2\n\tADD      r12,r0,r12\n\tLDR      r7,[r9,#0]\n\tLDR      r6,[r8,#0]\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r7,[r9,#4]\n\tLDR      r6,[r8,#4]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r12,#4]\n\tSTR      r6,[r9,#4]\n\tSTR      r7,[r8,#4]\n\tSTR      r5,[r12,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r9}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tCMP      r3,#1\n\tIT       LS\n\tBXLS     lr\n\tPUSH     {r4-r9}\n\tADDS     r1,r2,#2\n\tLSRS     r3,r3,#2\narm_bitreversal_16_0 LABEL       ;/* loop unrolled by 2 */\n\tLDRH     r8,[r1,#4]\n\tLDRH     r9,[r1,#2]\n\tLDRH     r2,[r1,#0]\n\tLDRH     r12,[r1,#-2]\n\tADD      r8,r0,r8,LSR #1\n\tADD      r9,r0,r9,LSR #1\n\tADD      r2,r0,r2,LSR #1\n\tADD      r12,r0,r12,LSR #1\n\tLDR      r7,[r9,#0]\n\tLDR      r6,[r8,#0]\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "ec3081af4b42309566f1180dcb3f9db8508c7aa4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3081af4b42309566f1180dcb3f9db8508c7aa4/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S:6", "text": "LSRS     r3,r3,#2\narm_bitreversal_16_0 LABEL       ;/* loop unrolled by 2 */\n\tLDRH     r8,[r1,#4]\n\tLDRH     r9,[r1,#2]\n\tLDRH     r2,[r1,#0]\n\tLDRH     r12,[r1,#-2]\n\tADD      r8,r0,r8,LSR #1\n\tADD      r9,r0,r9,LSR #1\n\tADD      r2,r0,r2,LSR #1\n\tADD      r12,r0,r12,LSR #1\n\tLDR      r7,[r9,#0]\n\tLDR      r6,[r8,#0]\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r12,#0]\n\tSTR      r6,[r9,#0]\n\tSTR      r7,[r8,#0]\n\tSTR      r5,[r12,#0]\n\tSTR      r4,[r2,#0]\n\tADDS     r1,r1,#8\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_16_0\n\tPOP      {r4-r9}\n\tBX       lr\n\tENDP\n\n#endif\n\n\tEND", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "ec3081af4b42309566f1180dcb3f9db8508c7aa4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3081af4b42309566f1180dcb3f9db8508c7aa4/CMSIS/DSP/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 201, "line_end": 228}
{"id": "ARM-software/CMSIS_5:CMSIS/DSP_Lib/Source/TransformFunctions/arm_bitreversal2.S:3", "text": "THUMB\n\n;/*\n;* @brief  In-place bit reversal function.\n;* @param[in, out] *pSrc        points to the in-place buffer of unknown 32-bit data type.\n;* @param[in]      bitRevLen    bit reversal table length\n;* @param[in]      *pBitRevTab  points to bit reversal table.\n;* @return none.\n;*/\n\tEXPORT arm_bitreversal_32\n\tEXPORT arm_bitreversal_16\n\n#if   defined ( __CC_ARM )     /* Keil */\n#elif defined ( __IASMARM__ )  /* IAR */\n#elif defined ( __CSMC__ )\t   /* Cosmic */\n#elif defined ( __TI_ARM__ )   /* TI ARM */\n#elif defined ( __GNUC__ )     /* GCC */\n\t.type   arm_bitreversal_16, %function\n\t.type   arm_bitreversal_32, %function\n#endif\n\n#if defined(ARM_MATH_CM0) || defined(ARM_MATH_CM0PLUS)\n\narm_bitreversal_32 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_32_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6\n\tLDR      r5,[r2,#0]\n\tLDR      r4,[r6,#0]\n\tSTR      r5,[r6,#0]\n\tSTR      r4,[r2,#0]\n\tLDR      r5,[r2,#4]\n\tLDR      r4,[r6,#4]\n\tSTR      r5,[r6,#4]\n\tSTR      r4,[r2,#4]\n\tADDS     r1,r1,#4\n\tSUBS     r3,r3,#1\n\tBNE      arm_bitreversal_32_0\n\tPOP      {r4-r6}\n\tBX       lr\n\tENDP\n\narm_bitreversal_16 PROC\n\tADDS     r3,r1,#1\n\tPUSH     {r4-r6}\n\tADDS     r1,r2,#0\n\tLSRS     r3,r3,#1\narm_bitreversal_16_0 LABEL\n\tLDRH     r2,[r1,#2]\n\tLDRH     r6,[r1,#0]\n    LSRS     r2,r2,#1\n    LSRS     r6,r6,#1\n\tADD      r2,r0,r2\n\tADD      r6,r0,r6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/DSP_Lib/Source/TransformFunctions/arm_bitreversal2.S", "license": "Apache-2.0", "commit": "cc48df99596fe6430938858d5272100ba264d983", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cc48df99596fe6430938858d5272100ba264d983/CMSIS/DSP_Lib/Source/TransformFunctions/arm_bitreversal2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s:2", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s:4", "text": "; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s:5", "text": "EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s:6", "text": "CHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s", "line_start": 201, "line_end": 242}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00080000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s:2", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00080000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00004000\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00100000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s:2", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00100000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM7_SP/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00080000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM7_SP/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM7_SP/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:2", "text": "; Amount of memory (in bytes) allocated for Stack\n; Tailor this value to your application needs\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000200\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp               ; Top of Stack\n                DCD     Reset_Handler              ; Reset Handler\n                DCD     NMI_Handler                ; NMI Handler\n                DCD     HardFault_Handler          ; Hard Fault Handler\n                DCD     MemManage_Handler          ; MPU Fault Handler\n                DCD     BusFault_Handler           ; Bus Fault Handler\n                DCD     UsageFault_Handler         ; Usage Fault Handler\n                DCD     0                          ; Reserved\n                DCD     0                          ; Reserved\n                DCD     0                          ; Reserved\n                DCD     0                          ; Reserved\n                DCD     SVC_Handler                ; SVCall Handler\n                DCD     DebugMon_Handler           ; Debug Monitor Handler\n                DCD     0                          ; Reserved\n                DCD     PendSV_Handler             ; PendSV Handler\n                DCD     SysTick_Handler            ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WWDG_IRQHandler                   ; Window WatchDog\n                DCD     PVD_IRQHandler                    ; PVD through EXTI Line detection\n                DCD     TAMP_STAMP_IRQHandler             ; Tamper and TimeStamps through the EXTI line\n                DCD     RTC_WKUP_IRQHandler               ; RTC Wakeup through the EXTI line\n                DCD     FLASH_IRQHandler                  ; FLASH\n                DCD     RCC_IRQHandler                    ; RCC\n                DCD     EXTI0_IRQHandler                  ; EXTI Line0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:3", "text": "DCD     BusFault_Handler           ; Bus Fault Handler\n                DCD     UsageFault_Handler         ; Usage Fault Handler\n                DCD     0                          ; Reserved\n                DCD     0                          ; Reserved\n                DCD     0                          ; Reserved\n                DCD     0                          ; Reserved\n                DCD     SVC_Handler                ; SVCall Handler\n                DCD     DebugMon_Handler           ; Debug Monitor Handler\n                DCD     0                          ; Reserved\n                DCD     PendSV_Handler             ; PendSV Handler\n                DCD     SysTick_Handler            ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WWDG_IRQHandler                   ; Window WatchDog\n                DCD     PVD_IRQHandler                    ; PVD through EXTI Line detection\n                DCD     TAMP_STAMP_IRQHandler             ; Tamper and TimeStamps through the EXTI line\n                DCD     RTC_WKUP_IRQHandler               ; RTC Wakeup through the EXTI line\n                DCD     FLASH_IRQHandler                  ; FLASH\n                DCD     RCC_IRQHandler                    ; RCC\n                DCD     EXTI0_IRQHandler                  ; EXTI Line0\n                DCD     EXTI1_IRQHandler                  ; EXTI Line1\n                DCD     EXTI2_IRQHandler                  ; EXTI Line2\n                DCD     EXTI3_IRQHandler                  ; EXTI Line3\n                DCD     EXTI4_IRQHandler                  ; EXTI Line4\n                DCD     DMA1_Stream0_IRQHandler           ; DMA1 Stream 0\n                DCD     DMA1_Stream1_IRQHandler           ; DMA1 Stream 1\n                DCD     DMA1_Stream2_IRQHandler           ; DMA1 Stream 2\n                DCD     DMA1_Stream3_IRQHandler           ; DMA1 Stream 3\n                DCD     DMA1_Stream4_IRQHandler           ; DMA1 Stream 4\n                DCD     DMA1_Stream5_IRQHandler           ; DMA1 Stream 5\n                DCD     DMA1_Stream6_IRQHandler           ; DMA1 Stream 6\n                DCD     ADC_IRQHandler                    ; ADC1, ADC2 and ADC3s\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     EXTI9_5_IRQHandler                ; External Line[9:5]s\n                DCD     TIM1_BRK_TIM9_IRQHandler          ; TIM1 Break and TIM9\n                DCD     TIM1_UP_TIM10_IRQHandler          ; TIM1 Update and TIM10\n                DCD     TIM1_TRG_COM_TIM11_IRQHandler     ; TIM1 Trigger and Commutation and TIM11\n                DCD     TIM1_CC_IRQHandler                ; TIM1 Capture Compare\n                DCD     TIM2_IRQHandler                   ; TIM2\n                DCD     TIM3_IRQHandler                   ; TIM3\n                DCD     TIM4_IRQHandler                   ; TIM4\n                DCD     I2C1_EV_IRQHandler                ; I2C1 Event\n                DCD     I2C1_ER_IRQHandler                ; I2C1 Error\n                DCD     I2C2_EV_IRQHandler                ; I2C2 Event\n                DCD     I2C2_ER_IRQHandler                ; I2C2 Error\n                DCD     SPI1_IRQHandler                   ; SPI1\n                DCD     SPI2_IRQHandler                   ; SPI2\n                DCD     USART1_IRQHandler                 ; USART1\n                DCD     USART2_IRQHandler                 ; USART2\n                DCD     0                                 ; Reserved\n                DCD     EXTI15_10_IRQHandler              ; External Line[15:10]s\n                DCD     RTC_Alarm_IRQHandler              ; RTC Alarm (A and B) through EXTI Line\n                DCD     OTG_FS_WKUP_IRQHandler            ; USB OTG FS Wakeup through EXTI line\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:4", "text": "DCD     TIM1_CC_IRQHandler                ; TIM1 Capture Compare\n                DCD     TIM2_IRQHandler                   ; TIM2\n                DCD     TIM3_IRQHandler                   ; TIM3\n                DCD     TIM4_IRQHandler                   ; TIM4\n                DCD     I2C1_EV_IRQHandler                ; I2C1 Event\n                DCD     I2C1_ER_IRQHandler                ; I2C1 Error\n                DCD     I2C2_EV_IRQHandler                ; I2C2 Event\n                DCD     I2C2_ER_IRQHandler                ; I2C2 Error\n                DCD     SPI1_IRQHandler                   ; SPI1\n                DCD     SPI2_IRQHandler                   ; SPI2\n                DCD     USART1_IRQHandler                 ; USART1\n                DCD     USART2_IRQHandler                 ; USART2\n                DCD     0                                 ; Reserved\n                DCD     EXTI15_10_IRQHandler              ; External Line[15:10]s\n                DCD     RTC_Alarm_IRQHandler              ; RTC Alarm (A and B) through EXTI Line\n                DCD     OTG_FS_WKUP_IRQHandler            ; USB OTG FS Wakeup through EXTI line\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     DMA1_Stream7_IRQHandler           ; DMA1 Stream7\n                DCD     0                                 ; Reserved\n                DCD     SDIO_IRQHandler                   ; SDIO\n                DCD     TIM5_IRQHandler                   ; TIM5\n                DCD     SPI3_IRQHandler                   ; SPI3\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     DMA2_Stream0_IRQHandler           ; DMA2 Stream 0\n                DCD     DMA2_Stream1_IRQHandler           ; DMA2 Stream 1\n                DCD     DMA2_Stream2_IRQHandler           ; DMA2 Stream 2\n                DCD     DMA2_Stream3_IRQHandler           ; DMA2 Stream 3\n                DCD     DMA2_Stream4_IRQHandler           ; DMA2 Stream 4\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     OTG_FS_IRQHandler                 ; USB OTG FS\n                DCD     DMA2_Stream5_IRQHandler           ; DMA2 Stream 5\n                DCD     DMA2_Stream6_IRQHandler           ; DMA2 Stream 6\n                DCD     DMA2_Stream7_IRQHandler           ; DMA2 Stream 7\n                DCD     USART6_IRQHandler                 ; USART6\n                DCD     I2C3_EV_IRQHandler                ; I2C3 event\n                DCD     I2C3_ER_IRQHandler                ; I2C3 error\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     FPU_IRQHandler                    ; FPU\n                DCD     0                                 ; Reserved\n\t\t        DCD     0                                 ; Reserved\n\t\t        DCD     SPI4_IRQHandler                   ; SPI4\n\t\t\t\tDCD     SPI5_IRQHandler                   ; SPI5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:5", "text": "DCD     OTG_FS_IRQHandler                 ; USB OTG FS\n                DCD     DMA2_Stream5_IRQHandler           ; DMA2 Stream 5\n                DCD     DMA2_Stream6_IRQHandler           ; DMA2 Stream 6\n                DCD     DMA2_Stream7_IRQHandler           ; DMA2 Stream 7\n                DCD     USART6_IRQHandler                 ; USART6\n                DCD     I2C3_EV_IRQHandler                ; I2C3 event\n                DCD     I2C3_ER_IRQHandler                ; I2C3 error\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     0                                 ; Reserved\n                DCD     FPU_IRQHandler                    ; FPU\n                DCD     0                                 ; Reserved\n\t\t        DCD     0                                 ; Reserved\n\t\t        DCD     SPI4_IRQHandler                   ; SPI4\n\t\t\t\tDCD     SPI5_IRQHandler                   ; SPI5\n\n__Vectors_End\n\n__Vectors_Size  EQU  __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n; Reset handler\nReset_Handler    PROC\n                 EXPORT  Reset_Handler             [WEAK]\n        IMPORT  SystemInit\n        IMPORT  __main\n\n                 LDR     R0, =SystemInit\n                 BLX     R0\n                 LDR     R0, =__main\n                 BX      R0\n                 ENDP\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler                [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler          [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler          [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler           [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:6", "text": "NMI_Handler     PROC\n                EXPORT  NMI_Handler                [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler          [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler          [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler           [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler         [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler                [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler           [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler             [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler            [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WWDG_IRQHandler                   [WEAK]\n                EXPORT  PVD_IRQHandler                    [WEAK]\n                EXPORT  TAMP_STAMP_IRQHandler             [WEAK]\n                EXPORT  RTC_WKUP_IRQHandler               [WEAK]\n                EXPORT  FLASH_IRQHandler                  [WEAK]\n                EXPORT  RCC_IRQHandler                    [WEAK]\n                EXPORT  EXTI0_IRQHandler                  [WEAK]\n                EXPORT  EXTI1_IRQHandler                  [WEAK]\n                EXPORT  EXTI2_IRQHandler                  [WEAK]\n                EXPORT  EXTI3_IRQHandler                  [WEAK]\n                EXPORT  EXTI4_IRQHandler                  [WEAK]\n                EXPORT  DMA1_Stream0_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream1_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream2_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream3_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream4_IRQHandler           [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:7", "text": "ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WWDG_IRQHandler                   [WEAK]\n                EXPORT  PVD_IRQHandler                    [WEAK]\n                EXPORT  TAMP_STAMP_IRQHandler             [WEAK]\n                EXPORT  RTC_WKUP_IRQHandler               [WEAK]\n                EXPORT  FLASH_IRQHandler                  [WEAK]\n                EXPORT  RCC_IRQHandler                    [WEAK]\n                EXPORT  EXTI0_IRQHandler                  [WEAK]\n                EXPORT  EXTI1_IRQHandler                  [WEAK]\n                EXPORT  EXTI2_IRQHandler                  [WEAK]\n                EXPORT  EXTI3_IRQHandler                  [WEAK]\n                EXPORT  EXTI4_IRQHandler                  [WEAK]\n                EXPORT  DMA1_Stream0_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream1_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream2_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream3_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream4_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream5_IRQHandler           [WEAK]\n                EXPORT  DMA1_Stream6_IRQHandler           [WEAK]\n                EXPORT  ADC_IRQHandler                    [WEAK]\n                EXPORT  EXTI9_5_IRQHandler                [WEAK]\n                EXPORT  TIM1_BRK_TIM9_IRQHandler          [WEAK]\n                EXPORT  TIM1_UP_TIM10_IRQHandler          [WEAK]\n                EXPORT  TIM1_TRG_COM_TIM11_IRQHandler     [WEAK]\n                EXPORT  TIM1_CC_IRQHandler                [WEAK]\n                EXPORT  TIM2_IRQHandler                   [WEAK]\n                EXPORT  TIM3_IRQHandler                   [WEAK]\n                EXPORT  TIM4_IRQHandler                   [WEAK]\n                EXPORT  I2C1_EV_IRQHandler                [WEAK]\n                EXPORT  I2C1_ER_IRQHandler                [WEAK]\n                EXPORT  I2C2_EV_IRQHandler                [WEAK]\n                EXPORT  I2C2_ER_IRQHandler                [WEAK]\n                EXPORT  SPI1_IRQHandler                   [WEAK]\n                EXPORT  SPI2_IRQHandler                   [WEAK]\n                EXPORT  USART1_IRQHandler                 [WEAK]\n                EXPORT  USART2_IRQHandler                 [WEAK]\n                EXPORT  EXTI15_10_IRQHandler              [WEAK]\n                EXPORT  RTC_Alarm_IRQHandler              [WEAK]\n                EXPORT  OTG_FS_WKUP_IRQHandler            [WEAK]\n                EXPORT  DMA1_Stream7_IRQHandler           [WEAK]\n                EXPORT  SDIO_IRQHandler                   [WEAK]\n                EXPORT  TIM5_IRQHandler                   [WEAK]\n                EXPORT  SPI3_IRQHandler                   [WEAK]\n                EXPORT  DMA2_Stream0_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream1_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream2_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream3_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream4_IRQHandler           [WEAK]\n                EXPORT  OTG_FS_IRQHandler                 [WEAK]\n                EXPORT  DMA2_Stream5_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream6_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream7_IRQHandler           [WEAK]\n                EXPORT  USART6_IRQHandler                 [WEAK]\n                EXPORT  I2C3_EV_IRQHandler                [WEAK]\n                EXPORT  I2C3_ER_IRQHandler                [WEAK]\n                EXPORT  FPU_IRQHandler                    [WEAK]\n\t\t\t\tEXPORT  SPI4_IRQHandler                   [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:8", "text": "EXPORT  RTC_Alarm_IRQHandler              [WEAK]\n                EXPORT  OTG_FS_WKUP_IRQHandler            [WEAK]\n                EXPORT  DMA1_Stream7_IRQHandler           [WEAK]\n                EXPORT  SDIO_IRQHandler                   [WEAK]\n                EXPORT  TIM5_IRQHandler                   [WEAK]\n                EXPORT  SPI3_IRQHandler                   [WEAK]\n                EXPORT  DMA2_Stream0_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream1_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream2_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream3_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream4_IRQHandler           [WEAK]\n                EXPORT  OTG_FS_IRQHandler                 [WEAK]\n                EXPORT  DMA2_Stream5_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream6_IRQHandler           [WEAK]\n                EXPORT  DMA2_Stream7_IRQHandler           [WEAK]\n                EXPORT  USART6_IRQHandler                 [WEAK]\n                EXPORT  I2C3_EV_IRQHandler                [WEAK]\n                EXPORT  I2C3_ER_IRQHandler                [WEAK]\n                EXPORT  FPU_IRQHandler                    [WEAK]\n\t\t\t\tEXPORT  SPI4_IRQHandler                   [WEAK]\n                EXPORT  SPI5_IRQHandler                   [WEAK]\n\nWWDG_IRQHandler\nPVD_IRQHandler\nTAMP_STAMP_IRQHandler\nRTC_WKUP_IRQHandler\nFLASH_IRQHandler\nRCC_IRQHandler\nEXTI0_IRQHandler\nEXTI1_IRQHandler\nEXTI2_IRQHandler\nEXTI3_IRQHandler\nEXTI4_IRQHandler\nDMA1_Stream0_IRQHandler\nDMA1_Stream1_IRQHandler\nDMA1_Stream2_IRQHandler\nDMA1_Stream3_IRQHandler\nDMA1_Stream4_IRQHandler\nDMA1_Stream5_IRQHandler\nDMA1_Stream6_IRQHandler\nADC_IRQHandler\nEXTI9_5_IRQHandler\nTIM1_BRK_TIM9_IRQHandler\nTIM1_UP_TIM10_IRQHandler\nTIM1_TRG_COM_TIM11_IRQHandler\nTIM1_CC_IRQHandler\nTIM2_IRQHandler\nTIM3_IRQHandler\nTIM4_IRQHandler\nI2C1_EV_IRQHandler\nI2C1_ER_IRQHandler\nI2C2_EV_IRQHandler\nI2C2_ER_IRQHandler\nSPI1_IRQHandler\nSPI2_IRQHandler\nUSART1_IRQHandler\nUSART2_IRQHandler\nEXTI15_10_IRQHandler\nRTC_Alarm_IRQHandler\nOTG_FS_WKUP_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:9", "text": "ADC_IRQHandler\nEXTI9_5_IRQHandler\nTIM1_BRK_TIM9_IRQHandler\nTIM1_UP_TIM10_IRQHandler\nTIM1_TRG_COM_TIM11_IRQHandler\nTIM1_CC_IRQHandler\nTIM2_IRQHandler\nTIM3_IRQHandler\nTIM4_IRQHandler\nI2C1_EV_IRQHandler\nI2C1_ER_IRQHandler\nI2C2_EV_IRQHandler\nI2C2_ER_IRQHandler\nSPI1_IRQHandler\nSPI2_IRQHandler\nUSART1_IRQHandler\nUSART2_IRQHandler\nEXTI15_10_IRQHandler\nRTC_Alarm_IRQHandler\nOTG_FS_WKUP_IRQHandler\nDMA1_Stream7_IRQHandler\nSDIO_IRQHandler\nTIM5_IRQHandler\nSPI3_IRQHandler\nDMA2_Stream0_IRQHandler\nDMA2_Stream1_IRQHandler\nDMA2_Stream2_IRQHandler\nDMA2_Stream3_IRQHandler\nDMA2_Stream4_IRQHandler\nOTG_FS_IRQHandler\nDMA2_Stream5_IRQHandler\nDMA2_Stream6_IRQHandler\nDMA2_Stream7_IRQHandler\nUSART6_IRQHandler\nI2C3_EV_IRQHandler\nI2C3_ER_IRQHandler\nFPU_IRQHandler\nSPI4_IRQHandler\nSPI5_IRQHandler\n\n                B       .\n\n                ENDP\n\n                ALIGN\n\n;*******************************************************************************\n; User Stack and Heap initialization\n;*******************************************************************************\n                 IF      :DEF:__MICROLIB\n\n                 EXPORT  __initial_sp\n                 EXPORT  __heap_base\n                 EXPORT  __heap_limit\n\n                 ELSE\n\n                 IMPORT  __use_two_region_memory\n                 EXPORT  __user_initial_stackheap", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s:10", "text": "B       .\n\n                ENDP\n\n                ALIGN\n\n;*******************************************************************************\n; User Stack and Heap initialization\n;*******************************************************************************\n                 IF      :DEF:__MICROLIB\n\n                 EXPORT  __initial_sp\n                 EXPORT  __heap_base\n                 EXPORT  __heap_limit\n\n                 ELSE\n\n                 IMPORT  __use_two_region_memory\n                 EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap\n\n                 LDR     R0, =  Heap_Mem\n                 LDR     R1, =(Stack_Mem + Stack_Size)\n                 LDR     R2, = (Heap_Mem +  Heap_Size)\n                 LDR     R3, = Stack_Mem\n                 BX      LR\n\n                 ALIGN\n\n                 ENDIF\n\n                 END\n\n;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "license": "Apache-2.0", "commit": "952879764b304f56775e8196221783d9b5683a06", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/952879764b304f56775e8196221783d9b5683a06/CMSIS/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s", "line_start": 361, "line_end": 395}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:1", "text": ";/***********************************************************************\n; * $Id: startup_LPC18xx.s 6471 2011-02-16 17:13:35Z nxp27266 $\n; *\n; * Project: LPC18xx CMSIS Package\n; *\n; * Description: Cortex-M3 Core Device Startup File for the NXP LPC18xx\n; *              Device Series.\n; *\n; * Copyright(C) 2011, NXP Semiconductor\n; * All rights reserved.\n; *\n; *                                                      modified by KEIL\n; ***********************************************************************\n; * Software that is described herein is for illustrative purposes only\n; * which provides customers with programming information regarding the\n; * products. This software is supplied \"AS IS\" without any warranties.\n; * NXP Semiconductors assumes no responsibility or liability for the\n; * use of the software, conveys no license or title under any patent,\n; * copyright, or mask work right to the product. NXP Semiconductors\n; * reserves the right to make changes in the software without\n; * notification. NXP Semiconductors also make no representation or\n; * warranty that such application will be suitable for the specified\n; * use without further testing or modification.\n; **********************************************************************/\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000200\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n                PRESERVE8\n                THUMB\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n\nSign_Value      EQU     0x5A5A5A5A\n\n__Vectors       DCD     __initial_sp              ; 0 Top of Stack\n                DCD     Reset_Handler             ; 1 Reset Handler\n                DCD     NMI_Handler               ; 2 NMI Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:2", "text": "Heap_Size       EQU     0x00000200\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n                PRESERVE8\n                THUMB\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n\nSign_Value      EQU     0x5A5A5A5A\n\n__Vectors       DCD     __initial_sp              ; 0 Top of Stack\n                DCD     Reset_Handler             ; 1 Reset Handler\n                DCD     NMI_Handler               ; 2 NMI Handler\n                DCD     HardFault_Handler         ; 3 Hard Fault Handler\n                DCD     MemManage_Handler         ; 4 MPU Fault Handler\n                DCD     BusFault_Handler          ; 5 Bus Fault Handler\n                DCD     UsageFault_Handler        ; 6 Usage Fault Handler\n                DCD     Sign_Value                ; 7 Reserved\n                DCD     0                         ; 8 Reserved\n                DCD     0                         ; 9 Reserved\n                DCD     0                         ; 10 Reserved\n                DCD     SVC_Handler               ; 11 SVCall Handler\n                DCD     DebugMon_Handler          ; 12 Debug Monitor Handler\n                DCD     0                         ; 13 Reserved\n                DCD     PendSV_Handler            ; 14 PendSV Handler\n                DCD     SysTick_Handler           ; 15 SysTick Handler\n\n                ; External Interrupts\n                DCD     DAC_IRQHandler            ; 16 D/A Converter\n                DCD     0                         ; 17 Reserved\n                DCD     DMA_IRQHandler            ; 18 General Purpose DMA\n                DCD     0                         ; 19 Reserved\n                DCD     FLASHEEPROM_IRQHandler    ; 20 ORed flash bank A, flash bank B, EEPROM interrupt\n                DCD     ETH_IRQHandler            ; 21 Ethernet\n                DCD     SDIO_IRQHandler           ; 22 SD/MMC\n                DCD     LCD_IRQHandler            ; 23 LCD\n                DCD     USB0_IRQHandler           ; 24 USB0\n                DCD     USB1_IRQHandler           ; 25 USB1\n                DCD     SCT_IRQHandler            ; 26 State Configurable Timer\n                DCD     RIT_IRQHandler            ; 27 Repetitive Interrupt Timer\n                DCD     TIMER0_IRQHandler         ; 28 Timer0\n                DCD     TIMER1_IRQHandler         ; 29 Timer1\n                DCD     TIMER2_IRQHandler         ; 30 Timer2\n                DCD     TIMER3_IRQHandler         ; 31 Timer3\n                DCD     MCPWM_IRQHandler          ; 32 Motor Control PWM\n                DCD     ADC0_IRQHandler           ; 33 A/D Converter 0\n                DCD     I2C0_IRQHandler           ; 34 I2C0\n                DCD     I2C1_IRQHandler           ; 35 I2C1\n                DCD     0                         ; 36 Reserved\n                DCD     ADC1_IRQHandler           ; 37 A/D Converter 1\n                DCD     SSP0_IRQHandler           ; 38 SSP0\n                DCD     SSP1_IRQHandler           ; 39 SSP1\n                DCD     UART0_IRQHandler          ; 40 UART0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:3", "text": "DCD     ETH_IRQHandler            ; 21 Ethernet\n                DCD     SDIO_IRQHandler           ; 22 SD/MMC\n                DCD     LCD_IRQHandler            ; 23 LCD\n                DCD     USB0_IRQHandler           ; 24 USB0\n                DCD     USB1_IRQHandler           ; 25 USB1\n                DCD     SCT_IRQHandler            ; 26 State Configurable Timer\n                DCD     RIT_IRQHandler            ; 27 Repetitive Interrupt Timer\n                DCD     TIMER0_IRQHandler         ; 28 Timer0\n                DCD     TIMER1_IRQHandler         ; 29 Timer1\n                DCD     TIMER2_IRQHandler         ; 30 Timer2\n                DCD     TIMER3_IRQHandler         ; 31 Timer3\n                DCD     MCPWM_IRQHandler          ; 32 Motor Control PWM\n                DCD     ADC0_IRQHandler           ; 33 A/D Converter 0\n                DCD     I2C0_IRQHandler           ; 34 I2C0\n                DCD     I2C1_IRQHandler           ; 35 I2C1\n                DCD     0                         ; 36 Reserved\n                DCD     ADC1_IRQHandler           ; 37 A/D Converter 1\n                DCD     SSP0_IRQHandler           ; 38 SSP0\n                DCD     SSP1_IRQHandler           ; 39 SSP1\n                DCD     UART0_IRQHandler          ; 40 UART0\n                DCD     UART1_IRQHandler          ; 41 UART1\n                DCD     UART2_IRQHandler          ; 42 UART2\n                DCD     UART3_IRQHandler          ; 43 UART3\n                DCD     I2S0_IRQHandler           ; 44 I2S0\n                DCD     I2S1_IRQHandler           ; 45 I2S1\n                DCD     0                         ; 46 Reserved\n                DCD     0                         ; 47 Reserved\n                DCD     GPIO0_IRQHandler          ; 48 GPIO0\n                DCD     GPIO1_IRQHandler          ; 49 GPIO1\n                DCD     GPIO2_IRQHandler          ; 50 GPIO2\n                DCD     GPIO3_IRQHandler          ; 51 GPIO3\n                DCD     GPIO4_IRQHandler          ; 52 GPIO4\n                DCD     GPIO5_IRQHandler          ; 53 GPIO5\n                DCD     GPIO6_IRQHandler          ; 54 GPIO6\n                DCD     GPIO7_IRQHandler          ; 55 GPIO7\n                DCD     GINT0_IRQHandler          ; 56 GINT0\n                DCD     GINT1_IRQHandler          ; 57 GINT1\n                DCD     EVRT_IRQHandler           ; 58 Event Router\n                DCD     CAN1_IRQHandler           ; 59 C_CAN1\n                DCD     0                         ; 60 Reserved\n                DCD     0                         ; 61 Reserved\n                DCD     ATIMER_IRQHandler         ; 62 ATIMER\n                DCD     RTC_IRQHandler            ; 63 RTC\n                DCD     0                         ; 64 Reserved\n                DCD     WDT_IRQHandler            ; 65 WDT\n                DCD     0                         ; 66 Reserved\n                DCD     CAN0_IRQHandler           ; 67 C_CAN0\n                DCD     QEI_IRQHandler            ; 68 QEI\n\n\n;CRP address at offset 0x2FC relative to the BOOT Bank address\n                IF      :LNOT::DEF:NO_CRP\n                SPACE   (0x2FC - (. - __Vectors))\n;                EXPORT  CRP_Key\nCRP_Key         DCD     0xFFFFFFFF\n;                       0xFFFFFFFF => CRP Disabled\n;                       0x12345678 => CRP Level 1\n;                       0x87654321 => CRP Level 2\n;                       0x43218765 => CRP Level 3 (ARE YOU SURE?)\n;                       0x4E697370 => NO ISP      (ARE YOU SURE?)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:4", "text": "DCD     0                         ; 61 Reserved\n                DCD     ATIMER_IRQHandler         ; 62 ATIMER\n                DCD     RTC_IRQHandler            ; 63 RTC\n                DCD     0                         ; 64 Reserved\n                DCD     WDT_IRQHandler            ; 65 WDT\n                DCD     0                         ; 66 Reserved\n                DCD     CAN0_IRQHandler           ; 67 C_CAN0\n                DCD     QEI_IRQHandler            ; 68 QEI\n\n\n;CRP address at offset 0x2FC relative to the BOOT Bank address\n                IF      :LNOT::DEF:NO_CRP\n                SPACE   (0x2FC - (. - __Vectors))\n;                EXPORT  CRP_Key\nCRP_Key         DCD     0xFFFFFFFF\n;                       0xFFFFFFFF => CRP Disabled\n;                       0x12345678 => CRP Level 1\n;                       0x87654321 => CRP Level 2\n;                       0x43218765 => CRP Level 3 (ARE YOU SURE?)\n;                       0x4E697370 => NO ISP      (ARE YOU SURE?)\n                ENDIF\n\n                AREA    |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler           [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler             [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler       [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler       [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler        [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler      [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:5", "text": "B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler       [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler       [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler        [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler      [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler             [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler        [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler          [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler         [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  DAC_IRQHandler          [WEAK]\n                EXPORT  DMA_IRQHandler          [WEAK]\n                EXPORT  FLASHEEPROM_IRQHandler  [WEAK]\n                EXPORT  ETH_IRQHandler          [WEAK]\n                EXPORT  SDIO_IRQHandler         [WEAK]\n                EXPORT  LCD_IRQHandler          [WEAK]\n                EXPORT  USB0_IRQHandler         [WEAK]\n                EXPORT  USB1_IRQHandler         [WEAK]\n                EXPORT  SCT_IRQHandler          [WEAK]\n                EXPORT  RIT_IRQHandler          [WEAK]\n                EXPORT  TIMER0_IRQHandler       [WEAK]\n                EXPORT  TIMER1_IRQHandler       [WEAK]\n                EXPORT  TIMER2_IRQHandler       [WEAK]\n                EXPORT  TIMER3_IRQHandler       [WEAK]\n                EXPORT  MCPWM_IRQHandler        [WEAK]\n                EXPORT  ADC0_IRQHandler         [WEAK]\n                EXPORT  I2C0_IRQHandler         [WEAK]\n                EXPORT  I2C1_IRQHandler         [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:6", "text": "Default_Handler PROC\n\n                EXPORT  DAC_IRQHandler          [WEAK]\n                EXPORT  DMA_IRQHandler          [WEAK]\n                EXPORT  FLASHEEPROM_IRQHandler  [WEAK]\n                EXPORT  ETH_IRQHandler          [WEAK]\n                EXPORT  SDIO_IRQHandler         [WEAK]\n                EXPORT  LCD_IRQHandler          [WEAK]\n                EXPORT  USB0_IRQHandler         [WEAK]\n                EXPORT  USB1_IRQHandler         [WEAK]\n                EXPORT  SCT_IRQHandler          [WEAK]\n                EXPORT  RIT_IRQHandler          [WEAK]\n                EXPORT  TIMER0_IRQHandler       [WEAK]\n                EXPORT  TIMER1_IRQHandler       [WEAK]\n                EXPORT  TIMER2_IRQHandler       [WEAK]\n                EXPORT  TIMER3_IRQHandler       [WEAK]\n                EXPORT  MCPWM_IRQHandler        [WEAK]\n                EXPORT  ADC0_IRQHandler         [WEAK]\n                EXPORT  I2C0_IRQHandler         [WEAK]\n                EXPORT  I2C1_IRQHandler         [WEAK]\n                EXPORT  ADC1_IRQHandler         [WEAK]\n                EXPORT  SSP0_IRQHandler         [WEAK]\n                EXPORT  SSP1_IRQHandler         [WEAK]\n                EXPORT  UART0_IRQHandler        [WEAK]\n                EXPORT  UART1_IRQHandler        [WEAK]\n                EXPORT  UART2_IRQHandler        [WEAK]\n                EXPORT  UART3_IRQHandler        [WEAK]\n                EXPORT  I2S0_IRQHandler         [WEAK]\n                EXPORT  I2S1_IRQHandler         [WEAK]\n                EXPORT  GPIO0_IRQHandler        [WEAK]\n                EXPORT  GPIO1_IRQHandler        [WEAK]\n                EXPORT  GPIO2_IRQHandler        [WEAK]\n                EXPORT  GPIO3_IRQHandler        [WEAK]\n                EXPORT  GPIO4_IRQHandler        [WEAK]\n                EXPORT  GPIO5_IRQHandler        [WEAK]\n                EXPORT  GPIO6_IRQHandler        [WEAK]\n                EXPORT  GPIO7_IRQHandler        [WEAK]\n                EXPORT  GINT0_IRQHandler        [WEAK]\n                EXPORT  GINT1_IRQHandler        [WEAK]\n                EXPORT  EVRT_IRQHandler         [WEAK]\n                EXPORT  CAN1_IRQHandler         [WEAK]\n                EXPORT  ATIMER_IRQHandler       [WEAK]\n                EXPORT  RTC_IRQHandler          [WEAK]\n                EXPORT  WDT_IRQHandler          [WEAK]\n                EXPORT  CAN0_IRQHandler         [WEAK]\n                EXPORT  QEI_IRQHandler          [WEAK]\n\nDAC_IRQHandler\nDMA_IRQHandler\nFLASHEEPROM_IRQHandler\nETH_IRQHandler\nSDIO_IRQHandler\nLCD_IRQHandler\nUSB0_IRQHandler\nUSB1_IRQHandler\nSCT_IRQHandler\nRIT_IRQHandler\nTIMER0_IRQHandler\nTIMER1_IRQHandler\nTIMER2_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:7", "text": "EXPORT  CAN1_IRQHandler         [WEAK]\n                EXPORT  ATIMER_IRQHandler       [WEAK]\n                EXPORT  RTC_IRQHandler          [WEAK]\n                EXPORT  WDT_IRQHandler          [WEAK]\n                EXPORT  CAN0_IRQHandler         [WEAK]\n                EXPORT  QEI_IRQHandler          [WEAK]\n\nDAC_IRQHandler\nDMA_IRQHandler\nFLASHEEPROM_IRQHandler\nETH_IRQHandler\nSDIO_IRQHandler\nLCD_IRQHandler\nUSB0_IRQHandler\nUSB1_IRQHandler\nSCT_IRQHandler\nRIT_IRQHandler\nTIMER0_IRQHandler\nTIMER1_IRQHandler\nTIMER2_IRQHandler\nTIMER3_IRQHandler\nMCPWM_IRQHandler\nADC0_IRQHandler\nI2C0_IRQHandler\nI2C1_IRQHandler\nADC1_IRQHandler\nSSP0_IRQHandler\nSSP1_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nI2S0_IRQHandler\nI2S1_IRQHandler\nGPIO0_IRQHandler\nGPIO1_IRQHandler\nGPIO2_IRQHandler\nGPIO3_IRQHandler\nGPIO4_IRQHandler\nGPIO5_IRQHandler\nGPIO6_IRQHandler\nGPIO7_IRQHandler\nGINT0_IRQHandler\nGINT1_IRQHandler\nEVRT_IRQHandler\nCAN1_IRQHandler\nATIMER_IRQHandler\nRTC_IRQHandler\nWDT_IRQHandler\nCAN0_IRQHandler\nQEI_IRQHandler\n\n                B       .\n\n                ENDP\n\n                ALIGN\n\n; User Initial Stack & Heap", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s:8", "text": "GPIO6_IRQHandler\nGPIO7_IRQHandler\nGINT0_IRQHandler\nGINT1_IRQHandler\nEVRT_IRQHandler\nCAN1_IRQHandler\nATIMER_IRQHandler\nRTC_IRQHandler\nWDT_IRQHandler\nCAN0_IRQHandler\nQEI_IRQHandler\n\n                B       .\n\n                ENDP\n\n                ALIGN\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n__user_initial_stackheap\n\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/Pack/Example/Boards/Keil/MCB1800/Blinky/RTE/Device/LPC1857/startup_LPC18xx.s", "line_start": 281, "line_end": 324}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:2", "text": "/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n#       U32 rt_get_PSP (void);\n\n        .thumb_func\n        .type   rt_get_PSP, %function\n        .global rt_get_PSP\nrt_get_PSP:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:3", "text": ".thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_alloc_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:4", "text": "MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:5", "text": ".fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:6", "text": "MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:7", "text": "BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:8", "text": "SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSys_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:9", "text": "#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 321, "line_end": 360}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM0.S\"\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:2", "text": "/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n#       U32 rt_get_PSP (void);\n\n        .thumb_func\n        .type   rt_get_PSP, %function\n        .global rt_get_PSP\nrt_get_PSP:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:3", "text": "/* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_alloc_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:4", "text": "MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:5", "text": ".fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:7", "text": "CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.71\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM0.S\"\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *  - Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *  - Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *  - Neither the name of ARM  nor the names of its contributors may be used\n *    to endorse or promote products derived from this software without\n *    specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM0.S\"\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:2", "text": "/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n#       U32 rt_get_PSP (void);\n\n        .thumb_func\n        .type   rt_get_PSP, %function\n        .global rt_get_PSP\nrt_get_PSP:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:3", "text": "BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_alloc_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:4", "text": ".thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_alloc_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:5", "text": "LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:6", "text": "LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:7", "text": "MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:8", "text": ".cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSys_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:9", "text": "MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 321, "line_end": 370}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:10", "text": ".fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 361, "line_end": 370}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:5", "text": "LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:6", "text": "LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.new->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:7", "text": "MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s:8", "text": ".cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.new->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSys_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM0.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:2", "text": "/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n#       U32 rt_get_PSP (void);\n\n        .thumb_func\n        .type   rt_get_PSP, %function\n        .global rt_get_PSP\nrt_get_PSP:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:3", "text": ".thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:4", "text": "MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:5", "text": "#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:6", "text": "LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:7", "text": "#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:8", "text": "POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 281, "line_end": 335}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:9", "text": ".cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 321, "line_end": 335}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM3.S\"\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:5", "text": "/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:6", "text": "STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:7", "text": "#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:8", "text": "PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 281, "line_end": 336}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:9", "text": ".fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 321, "line_end": 336}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.71\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM3.S\"\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *  - Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *  - Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *  - Neither the name of ARM  nor the names of its contributors may be used\n *    to endorse or promote products derived from this software without\n *    specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM3.S\"\n        .syntax unified\n\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:3", "text": "BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:4", "text": ".global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:5", "text": "IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:6", "text": "CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:7", "text": "STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:8", "text": "STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:9", "text": "/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 321, "line_end": 345}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:5", "text": "IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:6", "text": "CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:7", "text": "STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s:8", "text": "STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM3.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.79\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .syntax unified\n\n        .equ    TCB_STACKF, 37\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:2", "text": "/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n#       U32 rt_get_PSP (void);\n\n        .thumb_func\n        .type   rt_get_PSP, %function\n        .global rt_get_PSP\nrt_get_PSP:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:3", "text": "/* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:4", "text": "BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:5", "text": "/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BLX     R12                     /* Call SVC Function */\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,#1                   /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:6", "text": "CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,#1                   /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_ContextRestore:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:7", "text": "POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:8", "text": "PendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:9", "text": "LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:10", "text": ".fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 361, "line_end": 389}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.79\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM4.S\"\n        .syntax unified\n\n        .equ    TCB_STACKF, 37\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:3", "text": "#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:4", "text": "IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:7", "text": "PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:8", "text": ".global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:9", "text": "LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.80\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM4.S\"\n        .syntax unified\n\n        .equ    TCB_STACKF, 37\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.79\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *  - Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *  - Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *  - Neither the name of ARM  nor the names of its contributors may be used\n *    to endorse or promote products derived from this software without\n *    specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *---------------------------------------------------------------------------*/\n\n        .file   \"HAL_CM4.S\"\n        .syntax unified\n\n        .equ    TCB_STACKF, 37\n        .equ    TCB_TSTACK, 40\n\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:2", "text": "/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        .thumb\n\n        .section \".text\"\n        .align  2\n\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n#       void rt_set_PSP (U32 stack);\n\n        .thumb_func\n        .type   rt_set_PSP, %function\n        .global rt_set_PSP\nrt_set_PSP:\n        .fnstart\n        .cantunwind\n\n        MSR     PSP,R0\n        BX      LR\n\n        .fnend\n        .size   rt_set_PSP, .-rt_set_PSP\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n#       U32 rt_get_PSP (void);\n\n        .thumb_func\n        .type   rt_get_PSP, %function\n        .global rt_get_PSP\nrt_get_PSP:\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:3", "text": "MRS     R0,PSP\n        BX      LR\n\n        .fnend\n        .size   rt_get_PSP, .-rt_get_PSP\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n#       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        .thumb_func\n        .type   os_set_env, %function\n        .global os_set_env\nos_set_env:\n        .fnstart\n        .cantunwind\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n        .fnend\n        .size   os_set_env, .-os_set_env\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n#      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:4", "text": ".type   _alloc_box, %function\n        .global _alloc_box\n_alloc_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _alloc_box, .-_alloc_box\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n#       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        .thumb_func\n        .type   _free_box, %function\n        .global _free_box\n_free_box:\n        .fnstart\n        .cantunwind\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:5", "text": "LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BLX     R12                     /* Call SVC Function */\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,#1                   /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:6", "text": "CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,#1                   /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_ContextRestore:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:7", "text": "CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:8", "text": "#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:9", "text": "STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:10", "text": ".global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function\n        .global OS_Tick_Handler\nOS_Tick_Handler:\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   OS_Tick_Handler, .-OS_Tick_Handler\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 361, "line_end": 399}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:5", "text": "LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n        .fnend\n        .size   _free_box, .-_free_box\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n#       void SVC_Handler (void);\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\nSVC_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SVC_Handler_Veneer\nSVC_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BLX     R12                     /* Call SVC Function */\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,#1                   /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:6", "text": "CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,#1                   /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_ContextRestore:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR\n        .endif\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:8", "text": "#       void PendSV_Handler (void);\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .global Sys_Switch\nPendSV_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global PendSV_Handler_Veneer\nPendSV_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        .ifdef  IFX_XMC4XXX\n        ITT     EQ\n        PUSHEQ  {LR}\n        POPEQ   {PC}\n        .else\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n        .endif\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s:9", "text": "STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        .ifdef  IFX_XMC4XXX\n        PUSH    {LR}\n        POP     {PC}\n        .else\n        BX      LR                      /* Return to Thread Mode */\n        .endif\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n#       void SysTick_Handler (void);\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\nSysTick_Handler:\n        .ifdef  IFX_XMC4XXX\n        .global SysTick_Handler_Veneer\nSysTick_Handler_Veneer:\n        .endif\n        .fnstart\n        .cantunwind\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n#       void OS_Tick_Handler (void);\n\n        .thumb_func\n        .type   OS_Tick_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/GCC/HAL_CM4.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/SVC_Table.S:1", "text": ";/*----------------------------------------------------------------------------\n; *      CMSIS-RTOS - RTX\n; *----------------------------------------------------------------------------\n; *      Name:    SVC_TABLE.S\n; *      Purpose: Pre-defined SVC Table for Cortex-M\n; *      Rev.:    V4.70\n; *----------------------------------------------------------------------------\n; *\n; * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *---------------------------------------------------------------------------*/\n\n\n        .file   \"SVC_Table.S\"\n\n\n        .section \".svc_table\"\n\n        .global  SVC_Table\nSVC_Table:\n/* Insert user SVC functions here. SVC 0 used by RTL Kernel. */\n#       .long   __SVC_1                 /* user SVC function */\nSVC_End:\n\n        .global  SVC_Count\nSVC_Count:\n        .long   (SVC_End-SVC_Table)/4\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/SVC_Table.S", "license": "Apache-2.0", "commit": "86a358cea81a77eb931208ecc5e245c34112420d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/86a358cea81a77eb931208ecc5e245c34112420d/CMSIS/RTOS/RTX/SRC/GCC/SVC_Table.S", "line_start": 1, "line_end": 47}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/GCC/SVC_Table.S:1", "text": ";/*----------------------------------------------------------------------------\n; *      CMSIS-RTOS - RTX\n; *----------------------------------------------------------------------------\n; *      Name:    SVC_TABLE.S\n; *      Purpose: Pre-defined SVC Table for Cortex-M\n; *      Rev.:    V4.71\n; *----------------------------------------------------------------------------\n; *\n; * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *---------------------------------------------------------------------------*/\n\n\n        .file   \"SVC_Table.S\"\n\n\n        .section \".svc_table\"\n\n        .global  SVC_Table\nSVC_Table:\n/* Insert user SVC functions here. SVC 0 used by RTL Kernel. */\n#       .long   __SVC_1                 /* user SVC function */\nSVC_End:\n\n        .global  SVC_Count\nSVC_Count:\n        .long   (SVC_End-SVC_Table)/4\n\n\n        .end\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/GCC/SVC_Table.S", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/GCC/SVC_Table.S", "line_start": 1, "line_end": 47}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM0.S\n\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:2", "text": "/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n;       U32 rt_get_PSP (void);\n\n        PUBLIC  rt_get_PSP\nrt_get_PSP:\n\n        MRS     R0,PSP\n        BX      LR\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n;       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:3", "text": "LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R3,=rt_alloc_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:4", "text": "_free_box:\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:5", "text": "LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:6", "text": "/*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:7", "text": "SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSys_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:8", "text": "SysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 281, "line_end": 303}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.71\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM0.S\n\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM0.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M0\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *  - Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *  - Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *  - Neither the name of ARM  nor the names of its contributors may be used\n *    to endorse or promote products derived from this software without\n *    specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM0.S\n\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:2", "text": "EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n;       U32 rt_get_PSP (void);\n\n        PUBLIC  rt_get_PSP\nrt_get_PSP:\n\n        MRS     R0,PSP\n        BX      LR\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n;       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:3", "text": ";       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        BNE     PrivilegedE\n        MOVS    R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\nPrivilegedE:\n        MOVS    R0,#0x02                /* Privileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R3,=rt_alloc_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedA\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedA\n        SVC     0\n        BX      LR\nPrivilegedA:\n        BX      R12\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:4", "text": "BX      R12\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:5", "text": "LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:6", "text": "MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:7", "text": "BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.next->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSys_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:8", "text": "MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 281, "line_end": 312}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:4", "text": "BX      R12\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R3,=rt_free_box\n        MOV     R12,R3\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        BNE     PrivilegedF\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        BEQ     PrivilegedF\n        SVC     0\n        BX      LR\nPrivilegedF:\n        BX      R12\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        SUBS    R1,R1,#2                /* Point to SVC Instruction */\n        LDRB    R1,[R1]                 /* Load SVC Number */\n        CMP     R1,#0\n        BNE     SVC_User                /* User SVC Number > 0 */\n\n        MOV     LR,R4\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:5", "text": "LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        MOV     R4,LR\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R3,PSP                  /* Read PSP */\n        STMIA   R3!,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        SUBS    R3,#8\n        CMP     R1,#0                   /* Runtask deleted? */\n        BEQ     SVC_Next\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.new->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:6", "text": "MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LSLS    R1,R1,#2\n        LDR     R4,[R4,R1]              /* Load SVC Function Address */\n        MOV     LR,R4\n\n        LDMIA   R0,{R0-R3,R4}           /* Read R0-R3,R12 from stack */\n        MOV     R12,R4\n        BLX     LR                      /* Call SVC Function */\n\n        MRS     R4,PSP                  /* Read PSP */\n        STMIA   R4!,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s:7", "text": "BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDMIA   R3!,{R1,R2}             /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit                /* no task switch */\n\n        SUBS    R3,#8\n\n        MRS     R0,PSP                  /* Read PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        STR     R0,[R1,#TCB_TSTACK]     /* Update os_tsk.run->tsk_stack */\n        STMIA   R0!,{R4-R7}             /* Save old context (R4-R7) */\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             /* Save old context (R8-R11) */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R0,[R2,#TCB_TSTACK]     /* os_tsk.new->tsk_stack */\n        ADDS    R0,R0,#16               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R8-R11) */\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  /* Write PSP */\n        SUBS    R0,R0,#32               /* Adjust Start Address */\n        LDMIA   R0!,{R4-R7}             /* Restore new Context (R4-R7) */\n\nSys_Exit:\n        MOVS    R0,#~0xFFFFFFFD         /* Set EXC_RETURN value */\n        MVNS    R0,R0\n        BX      R0                      /* RETI to Thread Mode, use PSP */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM0.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM3.S\n\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:2", "text": "/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n;       U32 rt_get_PSP (void);\n\n        PUBLIC  rt_get_PSP\nrt_get_PSP:\n\n        MRS     R0,PSP\n        BX      LR\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n;       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:3", "text": "LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:4", "text": "LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:5", "text": "POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:6", "text": "BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR                      /* Return to Thread Mode */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 201, "line_end": 256}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:7", "text": ";       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 241, "line_end": 256}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.71\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM3.S\n\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM3.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M3\n *      Rev.:    V4.70\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *  - Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *  - Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *  - Neither the name of ARM  nor the names of its contributors may be used\n *    to endorse or promote products derived from this software without\n *    specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM3.S\n\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:2", "text": "EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n;       U32 rt_get_PSP (void);\n\n        PUBLIC  rt_get_PSP\nrt_get_PSP:\n\n        MRS     R0,PSP\n        BX      LR\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n;       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:3", "text": ";       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:4", "text": ";       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:5", "text": "CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:6", "text": "POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR                      /* Return to Thread Mode */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:7", "text": "PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 241, "line_end": 265}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:4", "text": ";       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R12                     /* Call SVC Function */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:5", "text": "CMP     R1,R2\n        BEQ     SVC_Exit                /* no task switch */\n\n        CBZ     R1,SVC_Next             /* Runtask deleted? */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_Next:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s:6", "text": "POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        BL      rt_pop_req\n\nSys_Switch:\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        BEQ     Sys_Exit\n\n        MRS     R12,PSP                 /* Read PSP */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        MVN     LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        BX      LR                      /* Return to Thread Mode */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.79\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM4.S\n\n        #define TCB_STACKF 37\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:2", "text": "/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n;       U32 rt_get_PSP (void);\n\n        PUBLIC  rt_get_PSP\nrt_get_PSP:\n\n        MRS     R0,PSP\n        BX      LR\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n;       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:3", "text": "LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/\n\n;      void *_alloc_box (void *box_mem);\n       /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _alloc_box\n_alloc_box:\n\n        LDR     R12,=rt_alloc_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:4", "text": "MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BLX     R12                     /* Call SVC Function */\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,R0,#1                /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:5", "text": "TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,R0,#1                /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_ContextRestore:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:6", "text": "SVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:7", "text": "ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        BX      LR                      /* Return to Thread Mode */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 241, "line_end": 298}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:8", "text": "/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 281, "line_end": 298}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.80\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM4.S\n\n        #define TCB_STACKF 37\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "a1540cb4e2acabfe7a9fc4ee7d84524666674b96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a1540cb4e2acabfe7a9fc4ee7d84524666674b96/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:1", "text": "/*----------------------------------------------------------------------------\n *      CMSIS-RTOS  -  RTX\n *----------------------------------------------------------------------------\n *      Name:    HAL_CM4.S\n *      Purpose: Hardware Abstraction Layer for Cortex-M4\n *      Rev.:    V4.79\n *----------------------------------------------------------------------------\n *\n * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *  - Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *  - Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *  - Neither the name of ARM  nor the names of its contributors may be used\n *    to endorse or promote products derived from this software without\n *    specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *---------------------------------------------------------------------------*/\n\n        NAME    HAL_CM4.S\n\n        #define TCB_STACKF 37\n        #define TCB_TSTACK 40\n\n        EXTERN  os_flags\n        EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:2", "text": "EXTERN  os_tsk\n        EXTERN  rt_alloc_box\n        EXTERN  rt_free_box\n        EXTERN  rt_stk_check\n        EXTERN  rt_pop_req\n        EXTERN  rt_systick\n        EXTERN  os_tick_irqack\n        EXTERN  SVC_Table\n        EXTERN  SVC_Count\n\n/*----------------------------------------------------------------------------\n *      Functions\n *---------------------------------------------------------------------------*/\n\n        SECTION .text:CODE:NOROOT(2)\n        THUMB\n\n/*--------------------------- rt_set_PSP ------------------------------------*/\n\n;       void rt_set_PSP (U32 stack);\n\n        PUBLIC  rt_set_PSP\nrt_set_PSP:\n\n        MSR     PSP,R0\n        BX      LR\n\n\n/*--------------------------- rt_get_PSP ------------------------------------*/\n\n;       U32 rt_get_PSP (void);\n\n        PUBLIC  rt_get_PSP\nrt_get_PSP:\n\n        MRS     R0,PSP\n        BX      LR\n\n\n/*--------------------------- os_set_env ------------------------------------*/\n\n;       void os_set_env (void);\n        /* Switch to Unprivileged/Privileged Thread mode, use PSP. */\n\n        PUBLIC  os_set_env\nos_set_env:\n\n        MOV     R0,SP                   /* PSP = MSP */\n        MSR     PSP,R0\n        LDR     R0,=os_flags\n        LDRB    R0,[R0]\n        LSLS    R0,#31\n        ITE     NE\n        MOVNE   R0,#0x02                /* Privileged Thread mode, use PSP */\n        MOVEQ   R0,#0x03                /* Unprivileged Thread mode, use PSP */\n        MSR     CONTROL,R0\n        BX      LR\n\n\n/*--------------------------- _alloc_box ------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:4", "text": "/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BLX     R12                     /* Call SVC Function */\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,R0,#1                /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:5", "text": "LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,R0,#1                /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_ContextRestore:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:6", "text": "MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:7", "text": "LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.next */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.next */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.next->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        BX      LR                      /* Return to Thread Mode */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:8", "text": "PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch\n\n\n        END\n\n/*----------------------------------------------------------------------------\n * end of file\n *---------------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ae144c57b71fea4ce559d923b100531a5a3b1ab7", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ae144c57b71fea4ce559d923b100531a5a3b1ab7/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 281, "line_end": 307}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:4", "text": "/*--------------------------- _free_box -------------------------------------*/\n\n;       U32 _free_box (void *box_mem, void *box);\n        /* Function wrapper for Unprivileged/Privileged mode. */\n\n        PUBLIC  _free_box\n_free_box:\n\n        LDR     R12,=rt_free_box\n        MRS     R3,IPSR\n        LSLS    R3,#24\n        IT      NE\n        BXNE    R12\n        MRS     R3,CONTROL\n        LSLS    R3,#31\n        IT      EQ\n        BXEQ    R12\n        SVC     0\n        BX      LR\n\n\n/*-------------------------- SVC_Handler ------------------------------------*/\n\n;       void SVC_Handler (void);\n\n        PUBLIC  SVC_Handler\nSVC_Handler:\n\n        MRS     R0,PSP                  /* Read PSP */\n        LDR     R1,[R0,#24]             /* Read Saved PC from Stack */\n        LDRB    R1,[R1,#-2]             /* Load SVC Number */\n        CBNZ    R1,SVC_User\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BLX     R12                     /* Call SVC Function */\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        MRS     R12,PSP                 /* Read PSP */\n        STM     R12,{R0-R2}             /* Store return values */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,R0,#1                /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:5", "text": "LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        CBNZ    R1,SVC_ContextSave      /* Runtask not deleted? */\n\n        TST     LR,#0x10                /* is it extended frame? */\n        BNE     SVC_ContextRestore\n        LDR     R1,=0xE000EF34\n        LDR     R0,[R1]                 /* Load FPCCR */\n        BIC     R0,R0,#1                /* Clear LSPACT (Lazy state) */\n        STR     R0,[R1]                 /* Store FPCCR */\n        B       SVC_ContextRestore\n\nSVC_ContextSave:\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\nSVC_ContextRestore:\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:6", "text": "MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSVC_Exit:\n        BX      LR\n\n        /*------------------- User SVC ------------------------------*/\n\nSVC_User:\n        PUSH    {R4,LR}                 /* Save Registers */\n        LDR     R2,=SVC_Count\n        LDR     R2,[R2]\n        CMP     R1,R2\n        BHI     SVC_Done                /* Overflow */\n\n        LDR     R4,=SVC_Table-4\n        LDR     R4,[R4,R1,LSL #2]       /* Load SVC Function Address */\n\n        LDM     R0,{R0-R3,R12}          /* Read R0-R3,R12 from stack */\n        BLX     R4                      /* Call SVC Function */\n\n        MRS     R12,PSP\n        STM     R12,{R0-R3}             /* Function return values */\nSVC_Done:\n        POP     {R4,PC}                 /* RETI */\n\n\n/*-------------------------- PendSV_Handler ---------------------------------*/\n\n;       void PendSV_Handler (void);\n\n        PUBLIC  PendSV_Handler\nPendSV_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_pop_req\n\nSys_Switch:\n        POP     {R4,LR}                 /* Restore EXC_RETURN */\n\n        LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s:7", "text": "LDR     R3,=os_tsk\n        LDM     R3,{R1,R2}              /* os_tsk.run, os_tsk.new */\n        CMP     R1,R2\n        IT      EQ\n        BXEQ    LR                      /* RETI, no task switch */\n\n        MRS     R12,PSP                 /* Read PSP */\n        TST     LR,#0x10                /* is it extended frame? */\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         /* yes, stack also VFP hi-regs */\n        MOVEQ   R0,#0x01                /* os_tsk->stack_frame val */\n        MOVNE   R0,#0x00\n        STRB    R0,[R1,#TCB_STACKF]     /* os_tsk.run->stack_frame = val */\n        STMDB   R12!,{R4-R11}           /* Save Old context */\n        STR     R12,[R1,#TCB_TSTACK]    /* Update os_tsk.run->tsk_stack */\n\n        PUSH    {R2,R3}\n        BL      rt_stk_check            /* Check for Stack overflow */\n        POP     {R2,R3}\n\n        STR     R2,[R3]                 /* os_tsk.run = os_tsk.new */\n\n        LDR     R12,[R2,#TCB_TSTACK]    /* os_tsk.new->tsk_stack */\n        LDMIA   R12!,{R4-R11}           /* Restore New Context */\n        LDRB    R0,[R2,#TCB_STACKF]     /* Stack Frame */\n        CMP     R0,#0                   /* Basic/Extended Stack Frame */\n        ITEE    EQ\n        MVNEQ   LR,#~0xFFFFFFFD         /* set EXC_RETURN value */\n        MVNNE   LR,#~0xFFFFFFED\n        VLDMIANE R12!,{S16-S31}         /* restore VFP hi-registers */\n        MSR     PSP,R12                 /* Write PSP */\n\nSys_Exit:\n        BX      LR                      /* Return to Thread Mode */\n\n\n/*-------------------------- SysTick_Handler --------------------------------*/\n\n;       void SysTick_Handler (void);\n\n        PUBLIC  SysTick_Handler\nSysTick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      rt_systick\n        B       Sys_Switch\n\n\n/*-------------------------- OS_Tick_Handler --------------------------------*/\n\n;       void OS_Tick_Handler (void);\n\n        PUBLIC  OS_Tick_Handler\nOS_Tick_Handler:\n\n        PUSH    {R4,LR}                 /* Save EXC_RETURN */\n        BL      os_tick_irqack\n        BL      rt_systick\n        B       Sys_Switch", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "license": "Apache-2.0", "commit": "ba96a2c56e7a482fbab343c8560db9e73d5c08a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ba96a2c56e7a482fbab343c8560db9e73d5c08a6/CMSIS/RTOS/RTX/SRC/IAR/HAL_CM4.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s:2", "text": "; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s:3", "text": "DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN\n                DCD     LIN_IRQHandler            ; 18: LIN\n                DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n                DCD     0                         ; 20: Reserved\n                DCD     0                         ; 21: Reserved\n                DCD     0                         ; 22: Reserved\n                DCD     0                         ; 23: Reserved\n                DCD     0                         ; 24: Reserved\n                DCD     0                         ; 25: Reserved\n                DCD     0                         ; 26: Reserved\n                DCD     0                         ; 27: Reserved\n                DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n                DCD     0                         ; 29: Reserved - CPU FPGA\n                DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n                DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s:4", "text": "DCD     0                         ; 27: Reserved\n                DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n                DCD     0                         ; 29: Reserved - CPU FPGA\n                DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n                DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s:5", "text": "PendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s:6", "text": "MCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "line_start": 201, "line_end": 253}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s:7", "text": "LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/ARM/startup_ARMCM0.s", "line_start": 241, "line_end": 253}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device Series\n * @version  V1.08\n * @date     23. November 2012\n *\n * @note     Version CodeSourcery Sourcery G++ Lite (with CS3)\n *\n ******************************************************************************/\n/* Copyright (c) 2011 - 2012 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n/*\n// <h> Stack Configuration\n//   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Stack_Size, 0x00000400\n    .section \".stack\", \"w\"\n    .align  3\n    .globl  __cs3_stack_mem\n    .globl  __cs3_stack_size\n__cs3_stack_mem:\n    .if     Stack_Size\n    .space  Stack_Size\n    .endif\n    .size   __cs3_stack_mem,  . - __cs3_stack_mem\n    .set    __cs3_stack_size, . - __cs3_stack_mem", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s:2", "text": "/*\n// <h> Stack Configuration\n//   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Stack_Size, 0x00000400\n    .section \".stack\", \"w\"\n    .align  3\n    .globl  __cs3_stack_mem\n    .globl  __cs3_stack_size\n__cs3_stack_mem:\n    .if     Stack_Size\n    .space  Stack_Size\n    .endif\n    .size   __cs3_stack_mem,  . - __cs3_stack_mem\n    .set    __cs3_stack_size, . - __cs3_stack_mem\n\n\n/*\n// <h> Heap Configuration\n//   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Heap_Size,  0x00000C00\n    .section \".heap\", \"w\"\n    .align  3\n    .globl  __cs3_heap_start\n    .globl  __cs3_heap_end\n__cs3_heap_start:\n    .if     Heap_Size\n    .space  Heap_Size\n    .endif\n__cs3_heap_end:\n\n\n/* Vector Table */\n\n    .section \".cs3.interrupt_vector\"\n    .globl  __cs3_interrupt_vector_cortex_m\n    .type   __cs3_interrupt_vector_cortex_m, %object\n\n__cs3_interrupt_vector_cortex_m:\n    .long   __cs3_stack                 /* Top of Stack                 */\n    .long   __cs3_reset                 /* Reset Handler                */\n    .long   NMI_Handler                 /* NMI Handler                  */\n    .long   HardFault_Handler           /* Hard Fault Handler           */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   SVC_Handler                 /* SVCall Handler               */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   PendSV_Handler              /* PendSV Handler               */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s:3", "text": ".section \".cs3.interrupt_vector\"\n    .globl  __cs3_interrupt_vector_cortex_m\n    .type   __cs3_interrupt_vector_cortex_m, %object\n\n__cs3_interrupt_vector_cortex_m:\n    .long   __cs3_stack                 /* Top of Stack                 */\n    .long   __cs3_reset                 /* Reset Handler                */\n    .long   NMI_Handler                 /* NMI Handler                  */\n    .long   HardFault_Handler           /* Hard Fault Handler           */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   SVC_Handler                 /* SVCall Handler               */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   PendSV_Handler              /* PendSV Handler               */\n    .long   SysTick_Handler             /* SysTick Handler              */\n\n    /* External Interrupts */\n    .long    WDT_IRQHandler        /*  0:  Watchdog Timer            */\n    .long    RTC_IRQHandler        /*  1:  Real Time Clock           */\n    .long    TIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n    .long    TIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n    .long    MCIA_IRQHandler       /*  4:  MCIa                      */\n    .long    MCIB_IRQHandler       /*  5:  MCIb                      */\n    .long    UART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n    .long    UART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n    .long    UART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n    .long    UART4_IRQHandler      /*  9:  UART4 - not connected     */\n    .long    AACI_IRQHandler       /* 10: AACI / AC97                */\n    .long    CLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n    .long    ENET_IRQHandler       /* 12: Ethernet                   */\n    .long    USBDC_IRQHandler      /* 13: USB Device                 */\n    .long    USBHC_IRQHandler      /* 14: USB Host Controller        */\n    .long    CHLCD_IRQHandler      /* 15: Character LCD              */\n    .long    FLEXRAY_IRQHandler    /* 16: Flexray                    */\n    .long    CAN_IRQHandler        /* 17: CAN                        */\n    .long    LIN_IRQHandler        /* 18: LIN                        */\n    .long    I2C_IRQHandler        /* 19: I2C ADC/DAC                */\n    .long    0                     /* 20: Reserved                   */\n    .long    0                     /* 21: Reserved                   */\n    .long    0                     /* 22: Reserved                   */\n    .long    0                     /* 23: Reserved                   */\n    .long    0                     /* 24: Reserved                   */\n    .long    0                     /* 25: Reserved                   */\n    .long    0                     /* 26: Reserved                   */\n    .long    0                     /* 27: Reserved                   */\n    .long    CPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n    .long    0                     /* 29: Reserved - CPU FPGA        */\n    .long    UART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n    .long    SPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n    .size   __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m\n\n\n    .thumb", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s:4", "text": ".long    CAN_IRQHandler        /* 17: CAN                        */\n    .long    LIN_IRQHandler        /* 18: LIN                        */\n    .long    I2C_IRQHandler        /* 19: I2C ADC/DAC                */\n    .long    0                     /* 20: Reserved                   */\n    .long    0                     /* 21: Reserved                   */\n    .long    0                     /* 22: Reserved                   */\n    .long    0                     /* 23: Reserved                   */\n    .long    0                     /* 24: Reserved                   */\n    .long    0                     /* 25: Reserved                   */\n    .long    0                     /* 26: Reserved                   */\n    .long    0                     /* 27: Reserved                   */\n    .long    CPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n    .long    0                     /* 29: Reserved - CPU FPGA        */\n    .long    UART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n    .long    SPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n    .size   __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m\n\n\n    .thumb\n\n\n/* Reset Handler */\n\n    .section .cs3.reset,\"x\",%progbits\n    .thumb_func\n    .globl  __cs3_reset_cortex_m\n    .type   __cs3_reset_cortex_m, %function\n__cs3_reset_cortex_m:\n    .fnstart\n    LDR     R0, =SystemInit\n    BLX     R0\n    LDR     R0,=_start\n    BX      R0\n    .pool\n    .cantunwind\n    .fnend\n    .size   __cs3_reset_cortex_m,.-__cs3_reset_cortex_m\n\n    .section \".text\"\n\n/* Exception Handlers */\n\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\nNMI_Handler:\n    B       .\n    .size   NMI_Handler, . - NMI_Handler\n\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\nHardFault_Handler:\n    B       .\n    .size   HardFault_Handler, . - HardFault_Handler\n\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\nSVC_Handler:\n    B       .\n    .size   SVC_Handler, . - SVC_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s:5", "text": "/* Exception Handlers */\n\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\nNMI_Handler:\n    B       .\n    .size   NMI_Handler, . - NMI_Handler\n\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\nHardFault_Handler:\n    B       .\n    .size   HardFault_Handler, . - HardFault_Handler\n\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\nSVC_Handler:\n    B       .\n    .size   SVC_Handler, . - SVC_Handler\n\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\nPendSV_Handler:\n    B       .\n    .size   PendSV_Handler, . - PendSV_Handler\n\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\nSysTick_Handler:\n    B       .\n    .size   SysTick_Handler, . - SysTick_Handler\n\n\n/* IRQ Handlers */\n\n    .globl  Default_Handler\n    .type   Default_Handler, %function\nDefault_Handler:\n    B       .\n    .size   Default_Handler, . - Default_Handler\n\n    .macro  def_irq_handler handler\n    .weak   \\handler\n    .set    \\handler, Default_Handler\n    .endm\n\n    def_irq_handler    WDT_IRQHandler\n    def_irq_handler    RTC_IRQHandler\n    def_irq_handler    TIM0_IRQHandler\n    def_irq_handler    TIM2_IRQHandler\n    def_irq_handler    MCIA_IRQHandler\n    def_irq_handler    MCIB_IRQHandler\n    def_irq_handler    UART0_IRQHandler\n    def_irq_handler    UART1_IRQHandler\n    def_irq_handler    UART2_IRQHandler\n    def_irq_handler    UART3_IRQHandler\n    def_irq_handler    UART4_IRQHandler\n    def_irq_handler    AACI_IRQHandler\n    def_irq_handler    CLCD_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s:6", "text": ".size   Default_Handler, . - Default_Handler\n\n    .macro  def_irq_handler handler\n    .weak   \\handler\n    .set    \\handler, Default_Handler\n    .endm\n\n    def_irq_handler    WDT_IRQHandler\n    def_irq_handler    RTC_IRQHandler\n    def_irq_handler    TIM0_IRQHandler\n    def_irq_handler    TIM2_IRQHandler\n    def_irq_handler    MCIA_IRQHandler\n    def_irq_handler    MCIB_IRQHandler\n    def_irq_handler    UART0_IRQHandler\n    def_irq_handler    UART1_IRQHandler\n    def_irq_handler    UART2_IRQHandler\n    def_irq_handler    UART3_IRQHandler\n    def_irq_handler    UART4_IRQHandler\n    def_irq_handler    AACI_IRQHandler\n    def_irq_handler    CLCD_IRQHandler\n    def_irq_handler    ENET_IRQHandler\n    def_irq_handler    USBDC_IRQHandler\n    def_irq_handler    USBHC_IRQHandler\n    def_irq_handler    CHLCD_IRQHandler\n    def_irq_handler    FLEXRAY_IRQHandler\n    def_irq_handler    CAN_IRQHandler\n    def_irq_handler    LIN_IRQHandler\n    def_irq_handler    I2C_IRQHandler\n    def_irq_handler    CPU_CLCD_IRQHandler\n    def_irq_handler    SPI_IRQHandler\n\n    .end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/G++/startup_ARMCM0.s", "line_start": 201, "line_end": 232}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:1", "text": "/* File: startup_ARMCM0.S\n * Purpose: startup file for Cortex-M0 devices. Should use with\n *   GCC for ARM Embedded Processors\n * Version: V2.0\n * Date: 16 August 2013\n *\n */\n/* Copyright (c) 2011 - 2013 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:2", "text": "#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .isr_vector\n\t.align 2\n\t.globl\t__isr_vector\n__isr_vector:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:3", "text": ".long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */\n\t.long\tLIN_IRQHandler        /* 18: LIN                        */\n\t.long\tI2C_IRQHandler        /* 19: I2C ADC/DAC                */\n\t.long\t0                     /* 20: Reserved                   */\n\t.long\t0                     /* 21: Reserved                   */\n\t.long\t0                     /* 22: Reserved                   */\n\t.long\t0                     /* 23: Reserved                   */\n\t.long\t0                     /* 24: Reserved                   */\n\t.long\t0                     /* 25: Reserved                   */\n\t.long\t0                     /* 26: Reserved                   */\n\t.long\t0                     /* 27: Reserved                   */\n\t.long\tCPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n\t.long\t0                     /* 29: Reserved - CPU FPGA        */\n\t.long\tUART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n\t.long\tSPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n\t.size\t__isr_vector, . - __isr_vector\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t1\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:4", "text": ".long\tCPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n\t.long\t0                     /* 29: Reserved - CPU FPGA        */\n\t.long\tUART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n\t.long\tSPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n\t.size\t__isr_vector, . - __isr_vector\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t1\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr4, =__copy_table_start__\n\tldr\tr5, =__copy_table_end__\n\n.L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tblt\t.L_loop0_0_done\n\tldr\tr0, [r1, r3]\n\tstr\tr0, [r2, r3]\n\tb\t.L_loop0_0\n\n.L_loop0_0_done:\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:5", "text": ".L_loop0_0:\n\tsubs\tr3, #4\n\tblt\t.L_loop0_0_done\n\tldr\tr0, [r1, r3]\n\tstr\tr0, [r2, r3]\n\tb\t.L_loop0_0\n\n.L_loop0_0_done:\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n\tsubs\tr3, r2\n\tble\t.L_loop1_done\n\n.L_loop1:\n\tsubs\tr3, #4\n\tldr\tr0, [r1,r3]\n\tstr\tr0, [r2,r3]\n\tbgt\t.L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:6", "text": "*  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\tblt\t.L_loop2_0_done\n\tstr\tr0, [r1, r2]\n\tb\t.L_loop2_0\n.L_loop2_0_done:\n\n\tadds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n\n\tsubs\tr2, r1\n\tble\t.L_loop3_done\n\n.L_loop3:\n\tsubs\tr2, #4\n\tstr\tr0, [r1, r2]\n\tbgt\t.L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:7", "text": "*  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n\n\tsubs\tr2, r1\n\tble\t.L_loop3_done\n\n.L_loop3:\n\tsubs\tr2, #4\n\tstr\tr0, [r1, r2]\n\tbgt\t.L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S:8", "text": "/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler\n\tdef_irq_handler\tCPU_CLCD_IRQHandler\n\tdef_irq_handler\tSPI_IRQHandler\n\n\t.end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/GCC/startup_ARMCM0.S", "line_start": 281, "line_end": 320}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s:2", "text": "; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)\n        DCD     Reset_Handler\n\n        DCD     NMI_Handler\n        DCD     HardFault_Handler\n        DCD     0\n        DCD     0\n        DCD     0\n__vector_table_0x1c\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     0\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s:3", "text": "__vector_table_0x1c\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     0\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved\n        DCD     0                         ; 21: Reserved\n        DCD     0                         ; 22: Reserved\n        DCD     0                         ; 23: Reserved\n        DCD     0                         ; 24: Reserved\n        DCD     0                         ; 25: Reserved\n        DCD     0                         ; 26: Reserved\n        DCD     0                         ; 27: Reserved\n        DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n        DCD     0                         ; 29: Reserved - CPU FPGA\n        DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n        DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors       EQU   __vector_table\n__Vectors_Size  EQU   __Vectors_End - __Vectors\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;;\n;; Default interrupt handlers.\n;;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER(2)\nReset_Handler\n        LDR     R0, =SystemInit", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s:4", "text": "DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n        DCD     0                         ; 29: Reserved - CPU FPGA\n        DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n        DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors       EQU   __vector_table\n__Vectors_Size  EQU   __Vectors_End - __Vectors\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;;\n;; Default interrupt handlers.\n;;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER(1)\nHardFault_Handler\n        B HardFault_Handler\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER(1)\nSVC_Handler\n        B SVC_Handler\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nTIM0_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s:5", "text": "B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nAACI_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s:6", "text": "B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nLIN_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s:7", "text": "B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM0/IAR/startup_ARMCM0.s", "line_start": 241, "line_end": 283}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s:2", "text": "; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s:3", "text": "DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN\n                DCD     LIN_IRQHandler            ; 18: LIN\n                DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n                DCD     0                         ; 20: Reserved\n                DCD     0                         ; 21: Reserved\n                DCD     0                         ; 22: Reserved\n                DCD     0                         ; 23: Reserved\n                DCD     0                         ; 24: Reserved\n                DCD     0                         ; 25: Reserved\n                DCD     0                         ; 26: Reserved\n                DCD     0                         ; 27: Reserved\n                DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n                DCD     0                         ; 29: Reserved - CPU FPGA\n                DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n                DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s:4", "text": "DCD     0                         ; 27: Reserved\n                DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n                DCD     0                         ; 29: Reserved - CPU FPGA\n                DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n                DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s:5", "text": "ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s:6", "text": "EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s:7", "text": "ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/ARM/startup_ARMCM3.s", "line_start": 241, "line_end": 273}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device Series\n * @version  V1.08\n * @date     23. November 2012\n *\n * @note     Version CodeSourcery Sourcery G++ Lite (with CS3)\n *\n ******************************************************************************/\n/* Copyright (c) 2011 - 2012 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n/*\n// <h> Stack Configuration\n//   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Stack_Size, 0x00000400\n    .section \".stack\", \"w\"\n    .align  3\n    .globl  __cs3_stack_mem\n    .globl  __cs3_stack_size\n__cs3_stack_mem:\n    .if     Stack_Size\n    .space  Stack_Size\n    .endif\n    .size   __cs3_stack_mem,  . - __cs3_stack_mem\n    .set    __cs3_stack_size, . - __cs3_stack_mem", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:2", "text": "/*\n// <h> Stack Configuration\n//   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Stack_Size, 0x00000400\n    .section \".stack\", \"w\"\n    .align  3\n    .globl  __cs3_stack_mem\n    .globl  __cs3_stack_size\n__cs3_stack_mem:\n    .if     Stack_Size\n    .space  Stack_Size\n    .endif\n    .size   __cs3_stack_mem,  . - __cs3_stack_mem\n    .set    __cs3_stack_size, . - __cs3_stack_mem\n\n\n/*\n// <h> Heap Configuration\n//   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Heap_Size,  0x00000C00\n    .section \".heap\", \"w\"\n    .align  3\n    .globl  __cs3_heap_start\n    .globl  __cs3_heap_end\n__cs3_heap_start:\n    .if     Heap_Size\n    .space  Heap_Size\n    .endif\n__cs3_heap_end:\n\n\n/* Vector Table */\n\n    .section \".cs3.interrupt_vector\"\n    .globl  __cs3_interrupt_vector_cortex_m\n    .type   __cs3_interrupt_vector_cortex_m, %object\n\n__cs3_interrupt_vector_cortex_m:\n    .long   __cs3_stack                 /* Top of Stack                 */\n    .long   __cs3_reset                 /* Reset Handler                */\n    .long   NMI_Handler                 /* NMI Handler                  */\n    .long   HardFault_Handler           /* Hard Fault Handler           */\n    .long   MemManage_Handler           /* MPU Fault Handler            */\n    .long   BusFault_Handler            /* Bus Fault Handler            */\n    .long   UsageFault_Handler          /* Usage Fault Handler          */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   SVC_Handler                 /* SVCall Handler               */\n    .long   DebugMon_Handler            /* Debug Monitor Handler        */\n    .long   0                           /* Reserved                     */\n    .long   PendSV_Handler              /* PendSV Handler               */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:3", "text": ".section \".cs3.interrupt_vector\"\n    .globl  __cs3_interrupt_vector_cortex_m\n    .type   __cs3_interrupt_vector_cortex_m, %object\n\n__cs3_interrupt_vector_cortex_m:\n    .long   __cs3_stack                 /* Top of Stack                 */\n    .long   __cs3_reset                 /* Reset Handler                */\n    .long   NMI_Handler                 /* NMI Handler                  */\n    .long   HardFault_Handler           /* Hard Fault Handler           */\n    .long   MemManage_Handler           /* MPU Fault Handler            */\n    .long   BusFault_Handler            /* Bus Fault Handler            */\n    .long   UsageFault_Handler          /* Usage Fault Handler          */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   0                           /* Reserved                     */\n    .long   SVC_Handler                 /* SVCall Handler               */\n    .long   DebugMon_Handler            /* Debug Monitor Handler        */\n    .long   0                           /* Reserved                     */\n    .long   PendSV_Handler              /* PendSV Handler               */\n    .long   SysTick_Handler             /* SysTick Handler              */\n\n    /* External Interrupts */\n    .long    WDT_IRQHandler        /*  0:  Watchdog Timer            */\n    .long    RTC_IRQHandler        /*  1:  Real Time Clock           */\n    .long    TIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n    .long    TIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n    .long    MCIA_IRQHandler       /*  4:  MCIa                      */\n    .long    MCIB_IRQHandler       /*  5:  MCIb                      */\n    .long    UART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n    .long    UART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n    .long    UART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n    .long    UART4_IRQHandler      /*  9:  UART4 - not connected     */\n    .long    AACI_IRQHandler       /* 10: AACI / AC97                */\n    .long    CLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n    .long    ENET_IRQHandler       /* 12: Ethernet                   */\n    .long    USBDC_IRQHandler      /* 13: USB Device                 */\n    .long    USBHC_IRQHandler      /* 14: USB Host Controller        */\n    .long    CHLCD_IRQHandler      /* 15: Character LCD              */\n    .long    FLEXRAY_IRQHandler    /* 16: Flexray                    */\n    .long    CAN_IRQHandler        /* 17: CAN                        */\n    .long    LIN_IRQHandler        /* 18: LIN                        */\n    .long    I2C_IRQHandler        /* 19: I2C ADC/DAC                */\n    .long    0                     /* 20: Reserved                   */\n    .long    0                     /* 21: Reserved                   */\n    .long    0                     /* 22: Reserved                   */\n    .long    0                     /* 23: Reserved                   */\n    .long    0                     /* 24: Reserved                   */\n    .long    0                     /* 25: Reserved                   */\n    .long    0                     /* 26: Reserved                   */\n    .long    0                     /* 27: Reserved                   */\n    .long    CPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n    .long    0                     /* 29: Reserved - CPU FPGA        */\n    .long    UART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n    .long    SPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n    .size   __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m\n\n\n    .thumb", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:4", "text": ".long    CAN_IRQHandler        /* 17: CAN                        */\n    .long    LIN_IRQHandler        /* 18: LIN                        */\n    .long    I2C_IRQHandler        /* 19: I2C ADC/DAC                */\n    .long    0                     /* 20: Reserved                   */\n    .long    0                     /* 21: Reserved                   */\n    .long    0                     /* 22: Reserved                   */\n    .long    0                     /* 23: Reserved                   */\n    .long    0                     /* 24: Reserved                   */\n    .long    0                     /* 25: Reserved                   */\n    .long    0                     /* 26: Reserved                   */\n    .long    0                     /* 27: Reserved                   */\n    .long    CPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n    .long    0                     /* 29: Reserved - CPU FPGA        */\n    .long    UART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n    .long    SPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n    .size   __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m\n\n\n    .thumb\n\n\n/* Reset Handler */\n\n    .section .cs3.reset,\"x\",%progbits\n    .thumb_func\n    .globl  __cs3_reset_cortex_m\n    .type   __cs3_reset_cortex_m, %function\n__cs3_reset_cortex_m:\n    .fnstart\n    LDR     R0, =SystemInit\n    BLX     R0\n    LDR     R0,=_start\n    BX      R0\n    .pool\n    .cantunwind\n    .fnend\n    .size   __cs3_reset_cortex_m,.-__cs3_reset_cortex_m\n\n    .section \".text\"\n\n/* Exception Handlers */\n\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\nNMI_Handler:\n    B       .\n    .size   NMI_Handler, . - NMI_Handler\n\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\nHardFault_Handler:\n    B       .\n    .size   HardFault_Handler, . - HardFault_Handler\n\n    .weak   MemManage_Handler\n    .type   MemManage_Handler, %function\nMemManage_Handler:\n    B       .\n    .size   MemManage_Handler, . - MemManage_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:5", "text": "/* Exception Handlers */\n\n    .weak   NMI_Handler\n    .type   NMI_Handler, %function\nNMI_Handler:\n    B       .\n    .size   NMI_Handler, . - NMI_Handler\n\n    .weak   HardFault_Handler\n    .type   HardFault_Handler, %function\nHardFault_Handler:\n    B       .\n    .size   HardFault_Handler, . - HardFault_Handler\n\n    .weak   MemManage_Handler\n    .type   MemManage_Handler, %function\nMemManage_Handler:\n    B       .\n    .size   MemManage_Handler, . - MemManage_Handler\n\n    .weak   BusFault_Handler\n    .type   BusFault_Handler, %function\nBusFault_Handler:\n    B       .\n    .size   BusFault_Handler, . - BusFault_Handler\n\n    .weak   UsageFault_Handler\n    .type   UsageFault_Handler, %function\nUsageFault_Handler:\n    B       .\n    .size   UsageFault_Handler, . - UsageFault_Handler\n\n    .weak   SVC_Handler\n    .type   SVC_Handler, %function\nSVC_Handler:\n    B       .\n    .size   SVC_Handler, . - SVC_Handler\n\n    .weak   DebugMon_Handler\n    .type   DebugMon_Handler, %function\nDebugMon_Handler:\n    B       .\n    .size   DebugMon_Handler, . - DebugMon_Handler\n\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\nPendSV_Handler:\n    B       .\n    .size   PendSV_Handler, . - PendSV_Handler\n\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\nSysTick_Handler:\n    B       .\n    .size   SysTick_Handler, . - SysTick_Handler\n\n\n/* IRQ Handlers */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:6", "text": ".type   DebugMon_Handler, %function\nDebugMon_Handler:\n    B       .\n    .size   DebugMon_Handler, . - DebugMon_Handler\n\n    .weak   PendSV_Handler\n    .type   PendSV_Handler, %function\nPendSV_Handler:\n    B       .\n    .size   PendSV_Handler, . - PendSV_Handler\n\n    .weak   SysTick_Handler\n    .type   SysTick_Handler, %function\nSysTick_Handler:\n    B       .\n    .size   SysTick_Handler, . - SysTick_Handler\n\n\n/* IRQ Handlers */\n\n    .globl  Default_Handler\n    .type   Default_Handler, %function\nDefault_Handler:\n    B       .\n    .size   Default_Handler, . - Default_Handler\n\n    .macro  def_irq_handler handler\n    .weak   \\handler\n    .set    \\handler, Default_Handler\n    .endm\n\n    def_irq_handler    WDT_IRQHandler\n    def_irq_handler    RTC_IRQHandler\n    def_irq_handler    TIM0_IRQHandler\n    def_irq_handler    TIM2_IRQHandler\n    def_irq_handler    MCIA_IRQHandler\n    def_irq_handler    MCIB_IRQHandler\n    def_irq_handler    UART0_IRQHandler\n    def_irq_handler    UART1_IRQHandler\n    def_irq_handler    UART2_IRQHandler\n    def_irq_handler    UART3_IRQHandler\n    def_irq_handler    UART4_IRQHandler\n    def_irq_handler    AACI_IRQHandler\n    def_irq_handler    CLCD_IRQHandler\n    def_irq_handler    ENET_IRQHandler\n    def_irq_handler    USBDC_IRQHandler\n    def_irq_handler    USBHC_IRQHandler\n    def_irq_handler    CHLCD_IRQHandler\n    def_irq_handler    FLEXRAY_IRQHandler\n    def_irq_handler    CAN_IRQHandler\n    def_irq_handler    LIN_IRQHandler\n    def_irq_handler    I2C_IRQHandler\n    def_irq_handler    CPU_CLCD_IRQHandler\n    def_irq_handler    SPI_IRQHandler\n\n    .end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 201, "line_end": 256}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s:7", "text": "def_irq_handler    UART3_IRQHandler\n    def_irq_handler    UART4_IRQHandler\n    def_irq_handler    AACI_IRQHandler\n    def_irq_handler    CLCD_IRQHandler\n    def_irq_handler    ENET_IRQHandler\n    def_irq_handler    USBDC_IRQHandler\n    def_irq_handler    USBHC_IRQHandler\n    def_irq_handler    CHLCD_IRQHandler\n    def_irq_handler    FLEXRAY_IRQHandler\n    def_irq_handler    CAN_IRQHandler\n    def_irq_handler    LIN_IRQHandler\n    def_irq_handler    I2C_IRQHandler\n    def_irq_handler    CPU_CLCD_IRQHandler\n    def_irq_handler    SPI_IRQHandler\n\n    .end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/G++/startup_ARMCM3.s", "line_start": 241, "line_end": 256}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:1", "text": "/* File: startup_ARMCM3.S\n * Purpose: startup file for Cortex-M3 devices. Should use with\n *   GCC for ARM Embedded Processors\n * Version: V2.0\n * Date: 16 August 2013\n *\n */\n/* Copyright (c) 2011 - 2013 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:2", "text": "#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .isr_vector\n\t.align\t2\n\t.globl\t__isr_vector\n__isr_vector:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\tMemManage_Handler     /* MPU Fault Handler */\n\t.long\tBusFault_Handler      /* Bus Fault Handler */\n\t.long\tUsageFault_Handler    /* Usage Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\tDebugMon_Handler      /* Debug Monitor Handler */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:3", "text": ".long\tUsageFault_Handler    /* Usage Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\tDebugMon_Handler      /* Debug Monitor Handler */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */\n\t.long\tLIN_IRQHandler        /* 18: LIN                        */\n\t.long\tI2C_IRQHandler        /* 19: I2C ADC/DAC                */\n\t.long\t0                     /* 20: Reserved                   */\n\t.long\t0                     /* 21: Reserved                   */\n\t.long\t0                     /* 22: Reserved                   */\n\t.long\t0                     /* 23: Reserved                   */\n\t.long\t0                     /* 24: Reserved                   */\n\t.long\t0                     /* 25: Reserved                   */\n\t.long\t0                     /* 26: Reserved                   */\n\t.long\t0                     /* 27: Reserved                   */\n\t.long\tCPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n\t.long\t0                     /* 29: Reserved - CPU FPGA        */\n\t.long\tUART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n\t.long\tSPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n\t.size\t__isr_vector, . - __isr_vector\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t2\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:4", "text": ".long\tCPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n\t.long\t0                     /* 29: Reserved - CPU FPGA        */\n\t.long\tUART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n\t.long\tSPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n\t.size\t__isr_vector, . - __isr_vector\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t2\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr4, =__copy_table_start__\n\tldr\tr5, =__copy_table_end__\n\n.L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tittt\tge\n\tldrge\tr0, [r1, r3]\n\tstrge\tr0, [r2, r3]\n\tbge\t.L_loop0_0\n\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:5", "text": ".L_loop0_0:\n\tsubs\tr3, #4\n\tittt\tge\n\tldrge\tr0, [r1, r3]\n\tstrge\tr0, [r2, r3]\n\tbge\t.L_loop0_0\n\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n.L_loop1:\n\tcmp\tr2, r3\n\tittt\tlt\n\tldrlt\tr0, [r1], #4\n\tstrlt\tr0, [r2], #4\n\tblt\t.L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:6", "text": "*\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\titt\tge\n\tstrge\tr0, [r1, r2]\n\tbge\t.L_loop2_0\n\n\tadds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n.L_loop3:\n\tcmp\tr1, r2\n\titt\tlt\n\tstrlt\tr0, [r1], #4\n\tblt\t.L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:7", "text": "ldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n.L_loop3:\n\tcmp\tr1, r2\n\titt\tlt\n\tstrlt\tr0, [r1], #4\n\tblt\t.L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tMemManage_Handler\n\tdef_irq_handler\tBusFault_Handler\n\tdef_irq_handler\tUsageFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tDebugMon_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S:8", "text": "def_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tMemManage_Handler\n\tdef_irq_handler\tBusFault_Handler\n\tdef_irq_handler\tUsageFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tDebugMon_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler\n\tdef_irq_handler\tCPU_CLCD_IRQHandler\n\tdef_irq_handler\tSPI_IRQHandler\n\n\t.end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/GCC/startup_ARMCM3.S", "line_start": 281, "line_end": 314}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:2", "text": "; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)\n        DCD     Reset_Handler\n\n        DCD     NMI_Handler\n        DCD     HardFault_Handler\n        DCD     MemManage_Handler\n        DCD     BusFault_Handler\n        DCD     UsageFault_Handler\n__vector_table_0x1c\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     DebugMon_Handler\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:3", "text": "__vector_table_0x1c\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     DebugMon_Handler\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved\n        DCD     0                         ; 21: Reserved\n        DCD     0                         ; 22: Reserved\n        DCD     0                         ; 23: Reserved\n        DCD     0                         ; 24: Reserved\n        DCD     0                         ; 25: Reserved\n        DCD     0                         ; 26: Reserved\n        DCD     0                         ; 27: Reserved\n        DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n        DCD     0                         ; 29: Reserved - CPU FPGA\n        DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n        DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors       EQU   __vector_table\n__Vectors_Size  EQU   __Vectors_End - __Vectors\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;;\n;; Default interrupt handlers.\n;;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER(2)\nReset_Handler\n        LDR     R0, =SystemInit", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:4", "text": "DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n        DCD     0                         ; 29: Reserved - CPU FPGA\n        DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n        DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors       EQU   __vector_table\n__Vectors_Size  EQU   __Vectors_End - __Vectors\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;;\n;; Default interrupt handlers.\n;;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER(1)\nHardFault_Handler\n        B HardFault_Handler\n\n        PUBWEAK MemManage_Handler\n        SECTION .text:CODE:REORDER(1)\nMemManage_Handler\n        B MemManage_Handler\n\n        PUBWEAK BusFault_Handler\n        SECTION .text:CODE:REORDER(1)\nBusFault_Handler\n        B BusFault_Handler\n\n        PUBWEAK UsageFault_Handler\n        SECTION .text:CODE:REORDER(1)\nUsageFault_Handler\n        B UsageFault_Handler\n\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK DebugMon_Handler\n        SECTION .text:CODE:REORDER(1)\nDebugMon_Handler\n        B DebugMon_Handler\n\n        PUBWEAK PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:5", "text": "SECTION .text:CODE:REORDER(1)\nBusFault_Handler\n        B BusFault_Handler\n\n        PUBWEAK UsageFault_Handler\n        SECTION .text:CODE:REORDER(1)\nUsageFault_Handler\n        B UsageFault_Handler\n\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK DebugMon_Handler\n        SECTION .text:CODE:REORDER(1)\nDebugMon_Handler\n        B DebugMon_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:6", "text": "SECTION .text:CODE:REORDER(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:7", "text": "SECTION .text:CODE:REORDER(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s:8", "text": "SECTION .text:CODE:REORDER(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM3/IAR/startup_ARMCM3.s", "line_start": 281, "line_end": 305}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM4/G++/startup_ARMCM4.s:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device Series\n * @version  V1.08\n * @date     23. November 2012\n *\n * @note     Version CodeSourcery Sourcery G++ Lite (with CS3)\n *\n ******************************************************************************/\n/* Copyright (c) 2011 - 2012 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n/*\n//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n\n/*\n// <h> Stack Configuration\n//   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n// </h>\n*/\n\n    .equ    Stack_Size, 0x00000400\n    .section \".stack\", \"w\"\n    .align  3\n    .globl  __cs3_stack_mem\n    .globl  __cs3_stack_size\n__cs3_stack_mem:\n    .if     Stack_Size\n    .space  Stack_Size\n    .endif\n    .size   __cs3_stack_mem,  . - __cs3_stack_mem\n    .set    __cs3_stack_size, . - __cs3_stack_mem", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM4/G++/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM4/G++/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/RTX/Templates/CM4/GCC/startup_ARMCM4.S:1", "text": "/* File: startup_ARMCM4.S\n * Purpose: startup file for Cortex-M4 devices. Should use with\n *   GCC for ARM Embedded Processors\n * Version: V2.0\n * Date: 16 August 2013\n *\n */\n/* Copyright (c) 2011 - 2013 ARM LIMITED\n\n   All rights reserved.\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n   - Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   - Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in the\n     documentation and/or other materials provided with the distribution.\n   - Neither the name of ARM nor the names of its contributors may be used\n     to endorse or promote products derived from this software without\n     specific prior written permission.\n   *\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\n   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n   POSSIBILITY OF SUCH DAMAGE.\n   ---------------------------------------------------------------------------*/\n\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/RTX/Templates/CM4/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/024df1844c4b86fc5dfcaa7e674d589b0e3ed6f8/CMSIS/RTOS/RTX/Templates/CM4/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:1", "text": ";/*****************************************************************************\n; * @file:    startup_LPC177x_8x.s\n; * @purpose: CMSIS Cortex-M3 Core Device Startup File\n; *           for the NXP LPC177x_8x Device Series\n; * @version: V1.20\n; * @date:    07. October 2010\n; *------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n; *\n; * Copyright (C) 2010 ARM Limited. All rights reserved.\n; * ARM Limited (ARM) is supplying this software for use with Cortex-M3\n; * processor based microcontrollers.  This file can be freely distributed\n; * within development tools that are supporting such ARM based processors.\n; *\n; * THIS SOFTWARE IS PROVIDED \"AS IS\".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED\n; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF\n; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.\n; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR\n; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.\n; *\n; *****************************************************************************/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000200\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:2", "text": "__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ; 16: Watchdog Timer\n                DCD     TIMER0_IRQHandler         ; 17: Timer0\n                DCD     TIMER1_IRQHandler         ; 18: Timer1\n                DCD     TIMER2_IRQHandler         ; 19: Timer2\n                DCD     TIMER3_IRQHandler         ; 20: Timer3\n                DCD     UART0_IRQHandler          ; 21: UART0\n                DCD     UART1_IRQHandler          ; 22: UART1\n                DCD     UART2_IRQHandler          ; 23: UART2\n                DCD     UART3_IRQHandler          ; 24: UART3\n                DCD     PWM1_IRQHandler           ; 25: PWM1\n                DCD     I2C0_IRQHandler           ; 26: I2C0\n                DCD     I2C1_IRQHandler           ; 27: I2C1\n                DCD     I2C2_IRQHandler           ; 28: I2C2\n                DCD     SPIFI_IRQHandler          ; 29: SPIFI\n                DCD     SSP0_IRQHandler           ; 30: SSP0\n                DCD     SSP1_IRQHandler           ; 31: SSP1\n                DCD     PLL0_IRQHandler           ; 32: PLL0 Lock (Main PLL)\n                DCD     RTC_IRQHandler            ; 33: Real Time Clock\n                DCD     EINT0_IRQHandler          ; 34: External Interrupt 0\n                DCD     EINT1_IRQHandler          ; 35: External Interrupt 1\n                DCD     EINT2_IRQHandler          ; 36: External Interrupt 2\n                DCD     EINT3_IRQHandler          ; 37: External Interrupt 3\n                DCD     ADC_IRQHandler            ; 38: A/D Converter\n                DCD     BOD_IRQHandler            ; 39: Brown-Out Detect\n                DCD     USB_IRQHandler            ; 40: USB\n                DCD     CAN_IRQHandler            ; 41: CAN\n                DCD     DMA_IRQHandler            ; 42: General Purpose DMA\n                DCD     I2S_IRQHandler            ; 43: I2S", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:3", "text": "DCD     UART3_IRQHandler          ; 24: UART3\n                DCD     PWM1_IRQHandler           ; 25: PWM1\n                DCD     I2C0_IRQHandler           ; 26: I2C0\n                DCD     I2C1_IRQHandler           ; 27: I2C1\n                DCD     I2C2_IRQHandler           ; 28: I2C2\n                DCD     SPIFI_IRQHandler          ; 29: SPIFI\n                DCD     SSP0_IRQHandler           ; 30: SSP0\n                DCD     SSP1_IRQHandler           ; 31: SSP1\n                DCD     PLL0_IRQHandler           ; 32: PLL0 Lock (Main PLL)\n                DCD     RTC_IRQHandler            ; 33: Real Time Clock\n                DCD     EINT0_IRQHandler          ; 34: External Interrupt 0\n                DCD     EINT1_IRQHandler          ; 35: External Interrupt 1\n                DCD     EINT2_IRQHandler          ; 36: External Interrupt 2\n                DCD     EINT3_IRQHandler          ; 37: External Interrupt 3\n                DCD     ADC_IRQHandler            ; 38: A/D Converter\n                DCD     BOD_IRQHandler            ; 39: Brown-Out Detect\n                DCD     USB_IRQHandler            ; 40: USB\n                DCD     CAN_IRQHandler            ; 41: CAN\n                DCD     DMA_IRQHandler            ; 42: General Purpose DMA\n                DCD     I2S_IRQHandler            ; 43: I2S\n                DCD     ENET_IRQHandler           ; 44: Ethernet\n                DCD     MCI_IRQHandler            ; 45: SD/MMC card I/F\n                DCD     MCPWM_IRQHandler          ; 46: Motor Control PWM\n                DCD     QEI_IRQHandler            ; 47: Quadrature Encoder Interface\n                DCD     PLL1_IRQHandler           ; 48: PLL1 Lock (USB PLL)\n\t\t\t\tDCD\t\tUSBActivity_IRQHandler    ; 49: USB Activity interrupt to wakeup\n\t\t\t\tDCD\t\tCANActivity_IRQHandler    ; 50: CAN Activity interrupt to wakeup\n\t\t\t\tDCD\t\tUART4_IRQHandler          ; 51: UART4\n\t\t\t\tDCD\t\tSSP2_IRQHandler           ; 52: SSP2\n\t\t\t\tDCD\t\tLCD_IRQHandler            ; 53: LCD\n\t\t\t\tDCD\t\tGPIO_IRQHandler           ; 54: GPIO\n\t\t\t\tDCD\t\tPWM0_IRQHandler           ; 55: PWM0\n\t\t\t\tDCD\t\tEEPROM_IRQHandler         ; 56: EEPROM\n\n\n                IF      :LNOT::DEF:NO_CRP\n                AREA    |.ARM.__at_0x02FC|, CODE, READONLY\nCRP_Key         DCD     0xFFFFFFFF\n                ENDIF\n\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n\t\t\t\tIMPORT  SystemInit\n                IMPORT  __main\n\t\t\t\tLDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:4", "text": "AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n\t\t\t\tIMPORT  SystemInit\n                IMPORT  __main\n\t\t\t\tLDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:5", "text": "EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  TIMER0_IRQHandler         [WEAK]\n                EXPORT  TIMER1_IRQHandler         [WEAK]\n                EXPORT  TIMER2_IRQHandler         [WEAK]\n                EXPORT  TIMER3_IRQHandler         [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  PWM1_IRQHandler           [WEAK]\n                EXPORT  I2C0_IRQHandler           [WEAK]\n                EXPORT  I2C1_IRQHandler           [WEAK]\n                EXPORT  I2C2_IRQHandler           [WEAK]\n                EXPORT  SPIFI_IRQHandler          [WEAK]\n                EXPORT  SSP0_IRQHandler           [WEAK]\n                EXPORT  SSP1_IRQHandler           [WEAK]\n                EXPORT  PLL0_IRQHandler           [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  EINT0_IRQHandler          [WEAK]\n                EXPORT  EINT1_IRQHandler          [WEAK]\n                EXPORT  EINT2_IRQHandler          [WEAK]\n                EXPORT  EINT3_IRQHandler          [WEAK]\n                EXPORT  ADC_IRQHandler            [WEAK]\n                EXPORT  BOD_IRQHandler            [WEAK]\n                EXPORT  USB_IRQHandler            [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  DMA_IRQHandler            [WEAK]\n                EXPORT  I2S_IRQHandler            [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  MCI_IRQHandler            [WEAK]\n                EXPORT  MCPWM_IRQHandler          [WEAK]\n                EXPORT  QEI_IRQHandler            [WEAK]\n                EXPORT  PLL1_IRQHandler           [WEAK]\n\t\t\t\tEXPORT  USBActivity_IRQHandler    [WEAK]\n\t\t\t\tEXPORT  CANActivity_IRQHandler    [WEAK]\n\t\t\t\tEXPORT  UART4_IRQHandler          [WEAK]\n\t\t\t\tEXPORT  SSP2_IRQHandler           [WEAK]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:6", "text": "EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  EINT0_IRQHandler          [WEAK]\n                EXPORT  EINT1_IRQHandler          [WEAK]\n                EXPORT  EINT2_IRQHandler          [WEAK]\n                EXPORT  EINT3_IRQHandler          [WEAK]\n                EXPORT  ADC_IRQHandler            [WEAK]\n                EXPORT  BOD_IRQHandler            [WEAK]\n                EXPORT  USB_IRQHandler            [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  DMA_IRQHandler            [WEAK]\n                EXPORT  I2S_IRQHandler            [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  MCI_IRQHandler            [WEAK]\n                EXPORT  MCPWM_IRQHandler          [WEAK]\n                EXPORT  QEI_IRQHandler            [WEAK]\n                EXPORT  PLL1_IRQHandler           [WEAK]\n\t\t\t\tEXPORT  USBActivity_IRQHandler    [WEAK]\n\t\t\t\tEXPORT  CANActivity_IRQHandler    [WEAK]\n\t\t\t\tEXPORT  UART4_IRQHandler          [WEAK]\n\t\t\t\tEXPORT  SSP2_IRQHandler           [WEAK]\n\t\t\t\tEXPORT  LCD_IRQHandler            [WEAK]\n\t\t\t\tEXPORT  GPIO_IRQHandler           [WEAK]\n\t\t\t\tEXPORT  PWM0_IRQHandler           [WEAK]\n\t\t\t\tEXPORT  EEPROM_IRQHandler         [WEAK]\n\nWDT_IRQHandler\nTIMER0_IRQHandler\nTIMER1_IRQHandler\nTIMER2_IRQHandler\nTIMER3_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nPWM1_IRQHandler\nI2C0_IRQHandler\nI2C1_IRQHandler\nI2C2_IRQHandler\nSPIFI_IRQHandler\nSSP0_IRQHandler\nSSP1_IRQHandler\nPLL0_IRQHandler\nRTC_IRQHandler\nEINT0_IRQHandler\nEINT1_IRQHandler\nEINT2_IRQHandler\nEINT3_IRQHandler\nADC_IRQHandler\nBOD_IRQHandler\nUSB_IRQHandler\nCAN_IRQHandler\nDMA_IRQHandler\nI2S_IRQHandler\nENET_IRQHandler\nMCI_IRQHandler\nMCPWM_IRQHandler\nQEI_IRQHandler\nPLL1_IRQHandler\nUSBActivity_IRQHandler\nCANActivity_IRQHandler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:7", "text": "SSP1_IRQHandler\nPLL0_IRQHandler\nRTC_IRQHandler\nEINT0_IRQHandler\nEINT1_IRQHandler\nEINT2_IRQHandler\nEINT3_IRQHandler\nADC_IRQHandler\nBOD_IRQHandler\nUSB_IRQHandler\nCAN_IRQHandler\nDMA_IRQHandler\nI2S_IRQHandler\nENET_IRQHandler\nMCI_IRQHandler\nMCPWM_IRQHandler\nQEI_IRQHandler\nPLL1_IRQHandler\nUSBActivity_IRQHandler\nCANActivity_IRQHandler\nUART4_IRQHandler\nSSP2_IRQHandler\nLCD_IRQHandler\nGPIO_IRQHandler\nPWM0_IRQHandler\nEEPROM_IRQHandler\n\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n__user_initial_stackheap\n\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n\n                ALIGN\n\n                ENDIF", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS/Template/startup_LPC177x_8x.s:8", "text": "EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n__user_initial_stackheap\n\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS/Template/startup_LPC177x_8x.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS/Template/startup_LPC177x_8x.s", "line_start": 281, "line_end": 301}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv6-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:2", "text": "EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:3", "text": "BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            IF :DEF:RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:4", "text": "SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            IF :DEF:RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n\n            ENDIF\n\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CMP      R1,#0\n                 BEQ      SVC_ZoneSetup         ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_N  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_N\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:5", "text": "CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_N  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_N\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:6", "text": "LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 201, "line_end": 253}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:7", "text": "osFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 241, "line_end": 253}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:5", "text": "CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_N  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_N\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:6", "text": "LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 201, "line_end": 254}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:7", "text": "IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 241, "line_end": 254}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv6-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:RTX_STACK_CHECK\nRTX_STACK_CHECK EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            IF RTX_STACK_CHECK != 0\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            IF RTX_STACK_CHECK != 0\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n\n            ENDIF\n\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:4", "text": "SVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:5", "text": "BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 161, "line_end": 195}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            IF RTX_STACK_CHECK != 0\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv6-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:3", "text": "MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s:4", "text": "LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv6m.s", "line_start": 121, "line_end": 164}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\nTCB_ZONE_OFS    EQU      68                         ; osRtxThread_t.zone offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   SVC_Active\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nSVC_Active      DCB      0                          ; SVC Handler Active\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:2", "text": "PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   SVC_Active\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nSVC_Active      DCB      0                          ; SVC Handler Active\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:3", "text": "LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                ENDP\n\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:4", "text": "PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:5", "text": "POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:6", "text": "CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC Handler Active\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:7", "text": "LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC Handler Active\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC Handler Active\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:8", "text": "LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC Handler Active\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT  osZoneSetup_Callback\n            ENDIF\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:9", "text": "PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load stacked PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Store them to user stack\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:10", "text": "ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load stacked PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Store them to user stack\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n              ELSE\n                ORR     R2, R2, #2                  ; VFP state\n              ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R9, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R9, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:11", "text": "SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R9, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R9, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            IF :DEF:RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            ENDIF\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:12", "text": "LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 441, "line_end": 478}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:10", "text": "ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load stacked PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Store them to user stack\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n              ELSE\n                ORR     R2, R2, #2                  ; VFP state\n              ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:11", "text": "SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            IF :DEF:RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            ENDIF\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\nTCB_ZONE_OFS    EQU      68                         ; osRtxThread_t.zone offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:2", "text": "PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:3", "text": "CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                ENDP\n\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:4", "text": "MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:5", "text": "ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:6", "text": "CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:7", "text": "CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:8", "text": "CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT  osZoneSetup_Callback\n            ENDIF\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:9", "text": "LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load stacked PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Store them to user stack\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n              ELSE\n                ORR     R2, R2, #2                  ; VFP state\n              ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:10", "text": "BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n              ELSE\n                ORR     R2, R2, #2                  ; VFP state\n              ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            IF :DEF:RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:11", "text": "STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            IF :DEF:RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            ENDIF\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:12", "text": "IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 441, "line_end": 468}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:2", "text": "PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:3", "text": "BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                ENDP\n\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:4", "text": "MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:5", "text": "CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:6", "text": "IRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:7", "text": "BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:8", "text": "POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:9", "text": "CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n              ELSE\n                ORR     R2, R2, #2                  ; VFP state\n              ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:10", "text": "VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n              ELSE\n                ORR     R2, R2, #2                  ; VFP state\n              ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:11", "text": "LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 401, "line_end": 451}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s:12", "text": "LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7a.s", "line_start": 441, "line_end": 451}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       ({FPU}=\"FPv4-SP\") || ({FPU}=\"VFPv4_D16\") || ({FPU}=\"VFPv4_SP_D16\") || ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:2", "text": "EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:3", "text": "CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:4", "text": "STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              ENDIF\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              IF FPU_USED != 0\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                LDRSB    LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:5", "text": "STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              IF FPU_USED != 0\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                LDRSB    LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            IF :DEF:RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            ENDIF\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              IF FPU_USED != 0\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:6", "text": "ENDIF\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              IF FPU_USED != 0\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:7", "text": "PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 241, "line_end": 279}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:2", "text": "EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOV      R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:3", "text": "CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOV      R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUB      R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:4", "text": "STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              ENDIF\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                LDRB     LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:5", "text": "STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                LDRB     LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            IF :DEF:RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            ENDIF\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              IF FPU_USED != 0\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:6", "text": "ENDIF\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              IF FPU_USED != 0\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:RTX_STACK_CHECK\nRTX_STACK_CHECK EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv4-SP\") || ({FPU}=\"VFPv4_D16\") || ({FPU}=\"VFPv4_SP_D16\") || ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:2", "text": "FPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:3", "text": "POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF RTX_STACK_CHECK != 0\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              ENDIF\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:4", "text": "POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              ENDIF\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                LDRB     LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n            ENDIF\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n              IF FPU_USED != 0\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:5", "text": "IF FPU_USED != 0\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:6", "text": "POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 201, "line_end": 223}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:2", "text": "FPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "dd490bb233b7411fc62d79dbe1c67718201d507d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dd490bb233b7411fc62d79dbe1c67718201d507d/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:3", "text": "POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF RTX_STACK_CHECK != 0\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              ENDIF\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "dd490bb233b7411fc62d79dbe1c67718201d507d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dd490bb233b7411fc62d79dbe1c67718201d507d/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:RTX_STACK_CHECK\nRTX_STACK_CHECK EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv4-SP\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       ({FPU}=\"FPv4-SP\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextSwitch      ; Branch to context switch handling\n              ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:3", "text": "BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextSwitch      ; Branch to context switch handling\n              ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              ENDIF\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n              IF FPU_USED != 0\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ELSE\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s:4", "text": "SVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv7m.s", "line_start": 121, "line_end": 168}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n            IF :DEF:RTX_TZ_CONTEXT\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF :DEF:RTX_TZ_CONTEXT\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF :DEF:RTX_TZ_CONTEXT\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF :DEF:RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            ELSE\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_S\n            IF :DEF:RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "SVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_S\n            IF :DEF:RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R4,R0]             ; Load stack frame information\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n            IF DOMAIN_NS != 0\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 316}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF :DEF:RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            ELSE\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_S\n            IF DOMAIN_NS != 0\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "SVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_S\n            IF DOMAIN_NS != 0\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R4,R0]             ; Load stack frame information\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n            IF DOMAIN_NS != 0\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF :DEF:RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            ELSE\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_S\n            IF DOMAIN_NS != 0\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "STRB     R0,[R1]                ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            IF :DEF:RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            ENDIF\n\nSVC_ContextRestore_S\n            IF DOMAIN_NS != 0\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R4                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n            IF DOMAIN_NS != 0\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "PendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 324}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:RTX_STACK_CHECK\nRTX_STACK_CHECK EQU      0\n                ENDIF\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "osRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF RTX_STACK_CHECK != 0\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                B        SVC_ContextRestore     ; Branch to context restore handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "SVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              IF DOMAIN_NS != 0\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            ELSE\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n            IF DOMAIN_NS != 0\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 268}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "osRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF RTX_STACK_CHECK != 0\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                B        SVC_ContextRestore     ; Branch to context restore handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n            IF DOMAIN_NS != 0\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "SVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 218}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 218}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            ENDIF\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            IF DOMAIN_NS != 0\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n            IF :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "SVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n            IF :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n            IF DOMAIN_NS != 0\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n\nSys_ContextSave1\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave2       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave3\n                ENDIF\n\nSys_ContextSave2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "Sys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n\nSys_ContextSave1\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave2       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave3\n                ENDIF\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave3\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 335}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:9", "text": "MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 321, "line_end": 335}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "302d4fb1ab650618fccc22b26d1b3618b504968e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/302d4fb1ab650618fccc22b26d1b3618b504968e/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "Sys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 333}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:9", "text": "MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 321, "line_end": 333}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "0e45768d07151aa8e1e979abce95cd31374beb42", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e45768d07151aa8e1e979abce95cd31374beb42/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "SVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "SysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 313}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "SVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "SysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                LSLS     R7,R7,#25              ; Check domain of interrupted thread\n                BMI      Sys_ContextSave1       ; Branch if secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 312}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "SVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 304}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                LSLS     R7,R7,#25              ; Check domain of interrupted thread\n                BMI      Sys_ContextSave1       ; Branch if secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:8", "text": "MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 281, "line_end": 303}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "94d9f69fc5b01605b94627859ed1300d3f10374f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/94d9f69fc5b01605b94627859ed1300d3f10374f/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "SVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                LSLS     R7,R7,#25              ; Check domain of interrupted thread\n                BMI      Sys_ContextSave1       ; Branch if secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R1,R2}                ; Restore PSP and EXC_RETURN\n                STR      R0,[R1]                ; Store function return value\n                MOV      LR,R2                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d742a6dacb5f3bf7852f69d26174e2a53f313eb4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d742a6dacb5f3bf7852f69d26174e2a53f313eb4/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R1,R2}                ; Restore PSP and EXC_RETURN\n                STR      R0,[R1]                ; Store function return value\n                MOV      R0,R1                  ; Save PSP\n                MOV      LR,R2                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MOV      R0,LR                  ; Get EXC_RETURN\n                PUSH     {R0,R1,R2,R3}          ; Save registers\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0,R1,R2,R3}          ; Restore registers\n                MOV      LR,R0                  ; Set EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "LDM      R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MOV      R0,LR                  ; Get EXC_RETURN\n                PUSH     {R0,R1,R2,R3}          ; Save registers\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0,R1,R2,R3}          ; Restore registers\n                MOV      LR,R0                  ; Set EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "Sys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                ELSE\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 289}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R1,R2}                ; Restore PSP and EXC_RETURN\n                STR      R0,[R1]                ; Store function return value\n                MOV      R0,R1                  ; Save PSP\n                MOV      LR,R2                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:3", "text": "SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 0\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_Exit            ; Branch if there is no secure context\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R4,PC}                ; Exit from handler\n                ENDIF\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:4", "text": "LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_Exit            ; Branch if there is no secure context\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R4,PC}                ; Exit from handler\n                ENDIF\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:5", "text": "BL       os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MOV      R0,LR                  ; Get EXC_RETURN\n                PUSH     {R0,R1,R2,R3}          ; Save registers\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0,R1,R2,R3}          ; Restore registers\n                MOV      LR,R0                  ; Set EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:6", "text": "BPL      Sys_ContextSave1       ; Branch if non-secure\n                MOV      R0,LR                  ; Get EXC_RETURN\n                PUSH     {R0,R1,R2,R3}          ; Save registers\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0,R1,R2,R3}          ; Restore registers\n                MOV      LR,R0                  ; Set EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 0\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextExit     ; Branch if there is no secure context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:7", "text": "IF       __DOMAIN_NS = 0\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                ENDIF\n\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextExit     ; Branch if there is no secure context\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R4,PC}                ; Exit from handler\n                ENDIF\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 241, "line_end": 273}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Main Line Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__FPU_USED\n__FPU_USED      EQU      0\n                ENDIF\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv4-SP\") || ({FPU}=\"VFPv4_D16\") || ({FPU}=\"VFPv4_SP_D16\") || ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n            IF :DEF:RTX_TZ_CONTEXT\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF :DEF:RTX_TZ_CONTEXT\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              ENDIF\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              IF FPU_USED != 0\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDRSB    LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            IF :DEF:RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            ENDIF\n\n            IF :DEF:RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CMP      R0,#0\n                IT       NE                     ; If TrustZone memory allocated\n                BLNE     TZ_LoadContext_S       ;  Load secure context\n            ENDIF\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP\n                BXNE     LR                     ;  Exit from handler\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP\n                BXNE     LR                     ;  Exit from handler\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:8", "text": "PendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "e835d6fb6fa028106eb9a5fe51878aa9588a186a", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e835d6fb6fa028106eb9a5fe51878aa9588a186a/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 281, "line_end": 325}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF :DEF:RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            IF :DEF:RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            ENDIF\n\n            IF DOMAIN_NS != 0\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CMP      R0,#0\n                IT       NE                     ; If TrustZone memory allocated\n                BLNE     TZ_LoadContext_S       ;  Load secure context\n            ENDIF\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP\n                BXNE     LR                     ;  Exit from handler\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            IF :DEF:RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOV      R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUB      R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n            ENDIF\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "IF :DEF:RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              ENDIF\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            IF :DEF:RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            ENDIF\n\n            IF DOMAIN_NS != 0\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:8", "text": "ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n            IF :DEF:RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 281, "line_end": 326}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:RTX_STACK_CHECK\nRTX_STACK_CHECK EQU      0\n                ENDIF\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "I_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF RTX_STACK_CHECK != 0\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF RTX_STACK_CHECK != 0\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              IF FPU_USED != 0\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              ENDIF\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              IF FPU_USED != 0\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "ELSE\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ENDIF\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              ENDIF\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              ENDIF\n                STM      R12,{R4-R11}           ; Save R4..R11\n            ELSE\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            ENDIF\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "PendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 271}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "I_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF RTX_STACK_CHECK != 0\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              ELSE\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n            IF RTX_STACK_CHECK != 0\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              ENDIF\n\nSVC_ContextSaveSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextSwitch      ; Branch to context switch handling\n              ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextSwitch      ; Branch to context switch handling\n              ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "SVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 212}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dae8b25f194767363ac12a3007c2463374bc5b9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dae8b25f194767363ac12a3007c2463374bc5b9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 212}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            IF :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n            ENDIF\n            IF DOMAIN_NS != 0\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              IF FPU_USED != 0\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextSwitch      ; Branch to context switch handling\n              ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n              ENDIF\n\nSVC_ContextSave\n            IF DOMAIN_NS != 0\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            ENDIF\n\nSVC_ContextSave_NS\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            ENDIF\n\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n            IF :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n            ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "STMDB    R12!,{R4-R11}          ; Save R4..R11\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              ENDIF\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n            IF :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore\n            IF DOMAIN_NS != 0\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            ENDIF\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            IF DOMAIN_NS != 0\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            ENDIF\n\n              IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "IF FPU_USED != 0\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 222}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\nFPU_USED        EQU      1\n                ELSE\nFPU_USED        EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "SVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "SysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n\nSys_ContextSave1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave3       ; Branch if secure\n                ENDIF\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave3       ; Branch if secure\n                ENDIF\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:8", "text": "LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 281, "line_end": 308}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "SVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "SysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n\nSys_ContextSave1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave3       ; Branch if secure\n                ENDIF\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave3       ; Branch if secure\n                ENDIF\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:8", "text": "LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 281, "line_end": 308}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "302d4fb1ab650618fccc22b26d1b3618b504968e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/302d4fb1ab650618fccc22b26d1b3618b504968e/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "SysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:8", "text": "LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 281, "line_end": 306}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "0e45768d07151aa8e1e979abce95cd31374beb42", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e45768d07151aa8e1e979abce95cd31374beb42/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:DOMAIN_NS\nDOMAIN_NS       EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "Sys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 286}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "Sys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 286}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 277}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "94d9f69fc5b01605b94627859ed1300d3f10374f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/94d9f69fc5b01605b94627859ed1300d3f10374f/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                ENDIF\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\n                IF       ({FPU}=\"FPv5-SP\") || ({FPU}=\"FPv5_D16\")\n__FPU_USED      EQU      1\n                ELSE\n__FPU_USED      EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d742a6dacb5f3bf7852f69d26174e2a53f313eb4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d742a6dacb5f3bf7852f69d26174e2a53f313eb4/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "TCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                ENDIF\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "PendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BEQ      Sys_ContextSave1       ; Branch if non-secure\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BEQ      Sys_ContextSave1       ; Branch if non-secure\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 264}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                IF       :LNOT::DEF:__FPU_USED\n__FPU_USED      EQU      0\n                ENDIF\n\n                IF       :LNOT::DEF:__DOMAIN_NS\n__DOMAIN_NS     EQU      0\n                ENDIF\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      60                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:2", "text": "PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                ENDIF\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                IF       __FPU_USED = 1\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                ENDIF\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                ENDIF\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler      ; Call os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BEQ      Sys_ContextSave1       ; Branch if non-secure\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "BEQ      Sys_ContextSave1       ; Branch if non-secure\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:7", "text": "IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                ENDIF\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 241, "line_end": 262}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:3", "text": "TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                ELSE\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                ENDIF\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                ENDIF\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_Exit            ; Branch if there is no secure context\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R4,PC}                ; Exit from handler\n                ENDIF\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:4", "text": "CBZ      R0,SVC_Exit            ; Branch if there is no secure context\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R4,PC}                ; Exit from handler\n                ENDIF\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:5", "text": "ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler        ; Call os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n                ALIGN\n                ENDP\n\n\nSys_Context     PROC\n                EXPORT   Sys_Context\n                IMPORT   os_Info\n                IF       __DOMAIN_NS = 1\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                ENDIF\n\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                IF       __DOMAIN_NS = 1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BEQ      Sys_ContextSave1       ; Branch if non-secure\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                MRS      R0,PSP                 ; Get PSP\n                B        Sys_ContextSave2\n                ENDIF\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s:6", "text": "Sys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                ENDIF\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; os_Info.run: curr = next\n\nSys_ContextRestore\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                IF       __FPU_USED = 1\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                ENDIF\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                IF       __DOMAIN_NS = 1\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextExit     ; Branch if there is no secure context\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R4,PC}                ; Exit from handler\n                ENDIF\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "license": "Apache-2.0", "commit": "adef7a086b18e3c2a5cab4b9c01af703d1993967", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/adef7a086b18e3c2a5cab4b9c01af703d1993967/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s", "line_start": 201, "line_end": 246}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "IRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n                ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n                ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n                ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 458}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:12", "text": "ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 441, "line_end": 458}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:3", "text": "BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                ENDP\n\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:4", "text": "MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n                ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n                ENDIF\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n                ENDIF\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 453}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:12", "text": "STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 441, "line_end": 453}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:2", "text": "PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:3", "text": "CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                ENDP\n\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:4", "text": "MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                ADD     R2, R2, #1                  ; Increment IRQ nesting level\n                STR     R2, [R3]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]                    ; Load IRQ nest level\n                CMP     R2, #1\n                BNE     IRQ_Exit                    ; Nesting interrupts, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "IRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]                    ; Load IRQ nest level\n                CMP     R2, #1\n                BNE     IRQ_Exit                    ; Nesting interrupts, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending\n\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R4]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                B       osRtxContextSwitch", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                ENDIF\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                ENDIF\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                ENDIF\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:12", "text": "VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 441, "line_end": 469}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "IRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending\n\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R4]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                ENDIF\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                ENDIF\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                ENDIF\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 459}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:12", "text": "LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "815dfadcec8465a9185a51bb1566bc40e08b7752", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/815dfadcec8465a9185a51bb1566bc40e08b7752/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 441, "line_end": 459}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "IRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                ENDIF\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                ORR     R2, R2, #4                  ; NEON state\n                ELSE\n                ORR     R2, R2, #2                  ; VFP state\n                ENDIF\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                ENDIF\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                ENDIF\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 446}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "be23d592403e7b79f3d51e4e3b4e4d46df281421", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/be23d592403e7b79f3d51e4e3b4e4d46df281421/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "osRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 447}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:4", "text": "MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   ; Change to SVC mode\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and alignment dummy(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and alignment dummy(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "osRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 457}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:12", "text": "LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 441, "line_end": 457}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:2", "text": "AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:3", "text": "; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                ENDP\n\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  osRtxIrqGetId\n                IMPORT  osRtxIrqGetHandler\n                IMPORT  osRtxIrqSetEnd\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  osRtxIrqGetId\n                IMPORT  osRtxIrqGetHandler\n                IMPORT  osRtxIrqSetEnd\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     osRtxIrqGetId               ; Retrieve interrupt ID into R0\n                CMP     R0, #-1                     ; Check if interrupt valid\n                BEQ     IRQ_Exit                    ; Spurious interrupt if -1, exit IRQ\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     osRtxIrqGetHandler          ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   ; Change to SVC mode\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "PUSH    {R3, R4}                    ; Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqEnableTick\n                IMPORT  osRtxIrqDisableTick\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         ; Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         ; Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          ; Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          ; Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "osRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 443}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers (using GIC)\n; *\n; * -----------------------------------------------------------------------------\n; */\n\nICDABR0_OFFSET  EQU      0x00000300                 ; GICD: Active Bit Register 0 offset\nICDIPR0_OFFSET  EQU      0x00000400                 ; GICD: Interrupt Priority Register 0 offset\nICCIAR_OFFSET   EQU      0x0000000C                 ; GICI: Interrupt Acknowledge Register offset\nICCEOIR_OFFSET  EQU      0x00000010                 ; GICI: End of Interrupt Register offset\nICCHPIR_OFFSET  EQU      0x00000018                 ; GICI: Highest Pending Interrupt Register offset\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nI_T_RUN_OFS     EQU      28                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\nID0_Active      DCB      4                          ; Flag used to workaround GIC 390 errata 733075\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:2", "text": "TCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                AREA     |.data|, DATA, READWRITE\nID0_Active      DCB      4                          ; Flag used to workaround GIC 390 errata 733075\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:4", "text": "MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQTable\n                IMPORT  IRQCount\n                IMPORT  osRtxIrqHandler\n                IMPORT  irqRtxGicBase\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                ; Identify and acknowledge interrupt", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:5", "text": "POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler\n                IMPORT  IRQTable\n                IMPORT  IRQCount\n                IMPORT  osRtxIrqHandler\n                IMPORT  irqRtxGicBase\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                ; Identify and acknowledge interrupt\n                LDR     R1, =irqRtxGicBase;\n                LDR     R1, [R1, #4]\n                LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read GICI ICCHPIR to avoid GIC 390 errata 801120\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read GICI ICCIAR\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                ; Workaround GIC 390 errata 733075 - see GIC-390_Errata_Notice_v6.pdf dated 09-Jul-2014\n                ; The following workaround code is for a single-core system.  It would be different in a multi-core system.\n                ; If the ID is 0 or 0x3FE or 0x3FF, then the GIC CPU interface may be locked-up so unlock it, otherwise service the interrupt as normal\n                ; Special IDs 1020=0x3FC and 1021=0x3FD are reserved values in GICv1 and GICv2 so will not occur here\n                CMP     R0, #0\n                BEQ     IRQ_Unlock\n                MOV     R2, #0x3FE\n                CMP     R0, R2\n                BLT     IRQ_Normal\nIRQ_Unlock\n                ; Unlock the CPU interface with a dummy write to ICDIPR0\n                LDR     R2, =irqRtxGicBase\n                LDR     R2, [R2]\n                LDR     R3, [R2, #ICDIPR0_OFFSET]\n                STR     R3, [R2, #ICDIPR0_OFFSET]\n                DSB                                 ; Ensure the write completes before continuing\n\n                ; If the ID is 0 and it is active and has not been seen before, then service it as normal,\n                ; otherwise the interrupt should be treated as spurious and not serviced.\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; Not 0, so spurious\n                LDR     R3, [R2, #ICDABR0_OFFSET]   ; Get the interrupt state\n                TST     R3, #1\n                BEQ     IRQ_Exit                    ; Not active, so spurious\n                LDR     R2, =ID0_Active\n                LDRB    R3, [R2]\n                CMP     R3, #1\n                BEQ     IRQ_Exit                    ; Seen it before, so spurious\n\n                ; Record that ID0 has now been seen, then service it as normal\n                MOV     R3, #1\n                STRB    R3, [R2]\n                ; End of Workaround GIC 390 errata 733075", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:6", "text": "STR     R3, [R2, #ICDIPR0_OFFSET]\n                DSB                                 ; Ensure the write completes before continuing\n\n                ; If the ID is 0 and it is active and has not been seen before, then service it as normal,\n                ; otherwise the interrupt should be treated as spurious and not serviced.\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; Not 0, so spurious\n                LDR     R3, [R2, #ICDABR0_OFFSET]   ; Get the interrupt state\n                TST     R3, #1\n                BEQ     IRQ_Exit                    ; Not active, so spurious\n                LDR     R2, =ID0_Active\n                LDRB    R3, [R2]\n                CMP     R3, #1\n                BEQ     IRQ_Exit                    ; Seen it before, so spurious\n\n                ; Record that ID0 has now been seen, then service it as normal\n                MOV     R3, #1\n                STRB    R3, [R2]\n                ; End of Workaround GIC 390 errata 733075\n\nIRQ_Normal\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Check if IRQ ID is within range\n                MOV     R2, #0\n                BHS     IRQ_End                     ; Out of range, return as normal\n                LDR     R2, =IRQTable               ; Read IRQ handler address from IRQ table\n                LDR     R2, [R2, R0, LSL #2]\n                CMP     R2, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n                PUSH    {R0, R1}                    ; Store IRQ ID and GIC CPU Interface base address\n\n                CPS     #MODE_SVC                   ; Change to SVC mode\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R2, R3, R12, LR}           ; Store handler address(R2), stack adjustment(R3) and user R12, LR\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R2                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R2, R3, R12, LR}           ; Restore handler address(R2), stack adjustment(R3) and user R12, LR\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n                POP     {R0, R1}                    ; Restore IRQ ID and GIC CPU Interface base address\n                DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End\n                ; R0 =IRQ ID, R1 =GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =ID0_Active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\n\n                LDR     R3, =osRtxIrqHandler        ; Load osRtxIrqHandler function address", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "BLX     R2                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R2, R3, R12, LR}           ; Restore handler address(R2), stack adjustment(R3) and user R12, LR\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n                POP     {R0, R1}                    ; Restore IRQ ID and GIC CPU Interface base address\n                DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End\n                ; R0 =IRQ ID, R1 =GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =ID0_Active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\n\n                LDR     R3, =osRtxIrqHandler        ; Load osRtxIrqHandler function address\n                CMP     R2, R3                      ; If is the same ass current IRQ handler\n                BEQ     osRtxContextSwitch          ; Call context switcher\n\nIRQ_Exit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqLock\n                IMPORT  osRtxIrqUnlock\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                BLX     osRtxIrqUnlock              ; Enable RTX interrupt (timer, PendSV)\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:9", "text": "SVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:10", "text": "BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:11", "text": "osRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 401, "line_end": 424}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:7", "text": "BLX     R2                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R2, R3, R12, LR}           ; Restore handler address(R2), stack adjustment(R3) and user R12, LR\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n                POP     {R0, R1}                    ; Restore IRQ ID and GIC CPU Interface base address\n                DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End\n                ; R0 =IRQ ID, R1 =GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =ID0_Active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\n\n                LDR     R3, =osRtxIrqHandler        ; Load osRtxIrqHandler function address\n                CMP     R2, R3                      ; If is the same ass current IRQ handler\n                BEQ     osRtxContextSwitch          ; Call context switcher\n\nIRQ_Exit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n                ENDP\n\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqLock\n                IMPORT  osRtxIrqUnlock\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRNEH  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "ff9fa5b0c420d7a53dd3e484d4a9301adb47f050", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ff9fa5b0c420d7a53dd3e484d4a9301adb47f050/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s:8", "text": "MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRNEH  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                BLX     osRtxIrqUnlock              ; Enable RTX interrupt (timer, PendSV)\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n                ENDP\n\n\nosRtxContextSwitch\\\n                PROC\n                EXPORT  osRtxContextSwitch\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "license": "Apache-2.0", "commit": "ff9fa5b0c420d7a53dd3e484d4a9301adb47f050", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ff9fa5b0c420d7a53dd3e484d4a9301adb47f050/CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:3", "text": "SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:4", "text": "SVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 121, "line_end": 174}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:5", "text": "EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 161, "line_end": 174}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "0e45768d07151aa8e1e979abce95cd31374beb42", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e45768d07151aa8e1e979abce95cd31374beb42/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:3", "text": "MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:4", "text": "LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 121, "line_end": 164}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:3", "text": "SVC_ContextSwitch\n                SUBS     R3,R3,#8\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STMIA    R4!,{R0-R3}            ; Store function return values\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:4", "text": "POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 121, "line_end": 155}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:3", "text": "SVC_ContextSwitch\n                SUBS     R3,R3,#8\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STMIA    R4!,{R0-R3}            ; Store function return values\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:4", "text": "POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 121, "line_end": 155}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "7ed37ea20e5b47289b45de05ec458b48463ab396", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ed37ea20e5b47289b45de05ec458b48463ab396/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                MRS      R3,PSP                 ; Get PSP\n                STMIA    R3!,{R0-R1}            ; Store function return values\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                MRS      R3,PSP                 ; Get PSP\n                STMIA    R3!,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                MOVS     R0,#~0xFFFFFFFD        ; Set EXC_RETURN value\n                MVNS     R0,R0\n                BX       R0                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:3", "text": "SVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                MOVS     R0,#~0xFFFFFFFD        ; Set EXC_RETURN value\n                MVNS     R0,R0\n                BX       R0                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STMIA    R4!,{R0-R3}            ; Store function return values\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                BL       os_PendSV_Handler\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                BL       os_Tick_Handler\n                B        SVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:4", "text": "PendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                BL       os_PendSV_Handler\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                BL       os_Tick_Handler\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 121, "line_end": 145}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                MRS      R3,PSP                 ; Get PSP\n                STR      R0,[R3]                ; Store function return value\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                MRS      R3,PSP                 ; Get PSP\n                STR      R0,[R3]                ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDMIA    R3!,{R1,R2}            ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                MOVS     R0,#~0xFFFFFFFD        ; Set EXC_RETURN value\n                MVNS     R0,R0\n                BX       R0                     ; Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                PRESERVE8\n                THUMB\n\nI_T_RUN_OFS     EQU     28                      ; osInfo.thread.run offset\nTCB_SP_OFS      EQU     56                      ; TCB.SP offset\n\n                AREA    |.constdata|, DATA, READONLY\n                EXPORT  os_irq_cm\nos_irq_cm       DCB     0                       ; Non weak library reference\n\n                AREA    |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT  SVC_Handler\n                IMPORT  os_UserSVC_Table\n                IMPORT  os_Info\n\n                MRS     R0,PSP                  ; Get PSP\n                LDR     R1,[R0,#24]             ; Load saved PC from stack\n                SUBS    R1,R1,#2                ; Point to SVC instruction\n                LDRB    R1,[R1]                 ; Load SVC number\n                CMP     R1,#0\n                BNE     SVC_User                ; Branch if not SVC 0\n\n                LDMIA   R0,{R0-R3}              ; Load function parameters from stack\n                BLX     R7                      ; Call service function\n                MRS     R3,PSP                  ; Get PSP\n                STR     R0,[R3]                 ; Store function return value\n\nSVC_Context\n                LDR     R3,=os_Info+I_T_RUN_OFS ; Load address of os_Info.run\n                LDMIA   R3!,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP     R1,R2                   ; Check if thread switch is required", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:2", "text": "EXPORT  SVC_Handler\n                IMPORT  os_UserSVC_Table\n                IMPORT  os_Info\n\n                MRS     R0,PSP                  ; Get PSP\n                LDR     R1,[R0,#24]             ; Load saved PC from stack\n                SUBS    R1,R1,#2                ; Point to SVC instruction\n                LDRB    R1,[R1]                 ; Load SVC number\n                CMP     R1,#0\n                BNE     SVC_User                ; Branch if not SVC 0\n\n                LDMIA   R0,{R0-R3}              ; Load function parameters from stack\n                BLX     R7                      ; Call service function\n                MRS     R3,PSP                  ; Get PSP\n                STR     R0,[R3]                 ; Store function return value\n\nSVC_Context\n                LDR     R3,=os_Info+I_T_RUN_OFS ; Load address of os_Info.run\n                LDMIA   R3!,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP     R1,R2                   ; Check if thread switch is required\n                BEQ     SVC_Exit                ; Branch when threads are the same\n\n                SUBS    R3,R3,#8\n                CMP     R1,#0\n                BEQ     SVC_ContextSwitch       ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS     R0,PSP                  ; Get PSP\n                SUBS    R0,R0,#32               ; Adjust address\n                STR     R0,[R1,#TCB_SP_OFS]     ; Store SP\n                STMIA   R0!,{R4-R7}             ; Save R4..R7\n                MOV     R4,R8\n                MOV     R5,R9\n                MOV     R6,R10\n                MOV     R7,R11\n                STMIA   R0!,{R4-R7}             ; Save R8..R11\n\nSVC_ContextSwitch\n                STR     R2,[R3]                 ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR     R0,[R2,#TCB_SP_OFS]     ; Load SP\n                ADDS    R0,R0,#16               ; Adjust address\n                LDMIA   R0!,{R4-R7}             ; Restore R8..R11\n                MOV     R8,R4\n                MOV     R9,R5\n                MOV     R10,R6\n                MOV     R11,R7\n                MSR     PSP,R0                  ; Set PSP\n                SUBS    R0,R0,#32               ; Adjust address\n                LDMIA   R0!,{R4-R7}             ; Restore R4..R7\n\nSVC_Exit\n                MOVS    R0,#~0xFFFFFFFD         ; Set EXC_RETURN value\n                MVNS    R0,R0\n                BX      R0                      ; Exit from handler\n\nSVC_User\n                PUSH    {R4,LR}                 ; Save registers\n                LDR     R2,=os_UserSVC_Table    ; Load address of SVC table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:3", "text": "SVC_ContextRestore\n                LDR     R0,[R2,#TCB_SP_OFS]     ; Load SP\n                ADDS    R0,R0,#16               ; Adjust address\n                LDMIA   R0!,{R4-R7}             ; Restore R8..R11\n                MOV     R8,R4\n                MOV     R9,R5\n                MOV     R10,R6\n                MOV     R11,R7\n                MSR     PSP,R0                  ; Set PSP\n                SUBS    R0,R0,#32               ; Adjust address\n                LDMIA   R0!,{R4-R7}             ; Restore R4..R7\n\nSVC_Exit\n                MOVS    R0,#~0xFFFFFFFD         ; Set EXC_RETURN value\n                MVNS    R0,R0\n                BX      R0                      ; Exit from handler\n\nSVC_User\n                PUSH    {R4,LR}                 ; Save registers\n                LDR     R2,=os_UserSVC_Table    ; Load address of SVC table\n                LDR     R3,[R2]                 ; Load SVC maximum number\n                CMP     R1,R3                   ; Check SVC number range\n                BHI     SVC_Done                ; Branch if out of range\n\n                LSLS    R1,R1,#2\n                LDR     R4,[R2,R1]              ; Load address of SVC function\n\n                LDMIA   R0,{R0-R3}              ; Load function parameters from stack\n                BLX     R4                      ; Call service function\n                MRS     R4,PSP                  ; Get PSP\n                STMIA   R4!,{R0-R3}             ; Store function return values\n\nSVC_Done\n                POP     {R4,PC}                 ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler\n                IMPORT  os_PendSV_Handler\n\n                BL      os_PendSV_Handler\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler\n                IMPORT  os_Tick_Handler\n\n                BL      os_Tick_Handler\n                B       SVC_Context\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s:4", "text": "EXPORT  PendSV_Handler\n                IMPORT  os_PendSV_Handler\n\n                BL      os_PendSV_Handler\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler\n                IMPORT  os_Tick_Handler\n\n                BL      os_Tick_Handler\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s", "line_start": 121, "line_end": 142}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:3", "text": "IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:4", "text": "PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 121, "line_end": 146}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "0e45768d07151aa8e1e979abce95cd31374beb42", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e45768d07151aa8e1e979abce95cd31374beb42/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:3", "text": "LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 81, "line_end": 136}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:4", "text": "SysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 121, "line_end": 136}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:3", "text": "SVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 81, "line_end": 133}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:4", "text": "IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 121, "line_end": 133}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:3", "text": "SVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 81, "line_end": 133}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:4", "text": "IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 121, "line_end": 133}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "7ed37ea20e5b47289b45de05ec458b48463ab396", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ed37ea20e5b47289b45de05ec458b48463ab396/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                MRS      R12,PSP                ; Get PSP\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                MRS      R12,PSP                ; Get PSP\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:3", "text": "SVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                BL       os_PendSV_Handler\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                BL       os_Tick_Handler\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 81, "line_end": 127}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                MRS      R12,PSP                ; Get PSP\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "SVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                MRS      R12,PSP                ; Get PSP\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                PRESERVE8\n                THUMB\n\nI_T_RUN_OFS     EQU     28                      ; osInfo.thread.run offset\nTCB_SP_OFS      EQU     56                      ; TCB.SP offset\n\n                AREA    |.constdata|, DATA, READONLY\n                EXPORT  os_irq_cm\nos_irq_cm       DCB     0                       ; Non weak library reference\n\n                AREA    |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT  SVC_Handler\n                IMPORT  os_UserSVC_Table\n                IMPORT  os_Info\n\n                MRS     R0,PSP                  ; Get PSP\n                LDR     R1,[R0,#24]             ; Load saved PC from stack\n                LDRB    R1,[R1,#-2]             ; Load SVC number\n                CBNZ    R1,SVC_User             ; Branch if not SVC 0\n\n                LDM     R0,{R0-R3,R12}          ; Load function parameters and address from stack\n                BLX     R12                     ; Call service function\n                MRS     R12,PSP                 ; Get PSP\n                STR     R0,[R12]                ; Store function return value\n\nSVC_Context\n                LDR     R3,=os_Info+I_T_RUN_OFS ; Load address of os_Info.run\n                LDM     R3,{R1,R2}              ; Load os_Info.thread.run: curr & next\n                CMP     R1,R2                   ; Check if thread switch is required\n                BEQ     SVC_Exit                ; Branch when threads are the same", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:2", "text": "EXPORT  SVC_Handler\n                IMPORT  os_UserSVC_Table\n                IMPORT  os_Info\n\n                MRS     R0,PSP                  ; Get PSP\n                LDR     R1,[R0,#24]             ; Load saved PC from stack\n                LDRB    R1,[R1,#-2]             ; Load SVC number\n                CBNZ    R1,SVC_User             ; Branch if not SVC 0\n\n                LDM     R0,{R0-R3,R12}          ; Load function parameters and address from stack\n                BLX     R12                     ; Call service function\n                MRS     R12,PSP                 ; Get PSP\n                STR     R0,[R12]                ; Store function return value\n\nSVC_Context\n                LDR     R3,=os_Info+I_T_RUN_OFS ; Load address of os_Info.run\n                LDM     R3,{R1,R2}              ; Load os_Info.thread.run: curr & next\n                CMP     R1,R2                   ; Check if thread switch is required\n                BEQ     SVC_Exit                ; Branch when threads are the same\n\n                CBZ     R1,SVC_ContextSwitch    ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB   R12!,{R4-R11}           ; Save R4..R11\n                STR     R12,[R1,#TCB_SP_OFS]    ; Store SP\n\nSVC_ContextSwitch\n                STR     R2,[R3]                 ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR     R12,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA   R12!,{R4-R11}           ; Restore R4..R11\n                MSR     PSP,R12                 ; Set PSP\n\nSVC_Exit\n                MVN     LR,#~0xFFFFFFFD         ; Set EXC_RETURN value\n                BX      LR                      ; Exit from handler\n\nSVC_User\n                PUSH    {R4,LR}                 ; Save registers\n                LDR     R2,=os_UserSVC_Table    ; Load address of SVC table\n                LDR     R3,[R2]                 ; Load SVC maximum number\n                CMP     R1,R3                   ; Check SVC number range\n                BHI     SVC_Done                ; Branch if out of range\n\n                LDR     R4,[R2,R1,LSL #2]       ; Load address of SVC function\n\n                LDM     R0,{R0-R3}              ; Load function parameters from stack\n                BLX     R4                      ; Call service function\n                MRS     R12,PSP                 ; Get PSP\n                STM     R12,{R0-R3}             ; Store function return values\n\nSVC_Done\n                POP     {R4,PC}                 ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s:3", "text": "LDR     R2,=os_UserSVC_Table    ; Load address of SVC table\n                LDR     R3,[R2]                 ; Load SVC maximum number\n                CMP     R1,R3                   ; Check SVC number range\n                BHI     SVC_Done                ; Branch if out of range\n\n                LDR     R4,[R2,R1,LSL #2]       ; Load address of SVC function\n\n                LDM     R0,{R0-R3}              ; Load function parameters from stack\n                BLX     R4                      ; Call service function\n                MRS     R12,PSP                 ; Get PSP\n                STM     R12,{R0-R3}             ; Store function return values\n\nSVC_Done\n                POP     {R4,PC}                 ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler\n                IMPORT  os_PendSV_Handler\n\n                BL      os_PendSV_Handler\n                MRS     R12,PSP\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler\n                IMPORT  os_Tick_Handler\n\n                BL      os_Tick_Handler\n                MRS     R12,PSP\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s", "line_start": 81, "line_end": 124}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:2", "text": "AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:3", "text": "B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n                IF       :DEF:MPU_LOAD\n                PUSH     {R2,R3}                ; Save registers\n                MOV      R0,R2                  ; osRtxMpuLoad parameter\n                BL       osRtxMpuLoad           ; Load MPU for next thread\n                POP      {R2,R3}                ; Restore registers\n                ENDIF\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:4", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 121, "line_end": 162}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                IF       :DEF:MPU_LOAD\n                IMPORT   osRtxMpuLoad\n                ENDIF\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "0e45768d07151aa8e1e979abce95cd31374beb42", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0e45768d07151aa8e1e979abce95cd31374beb42/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:2", "text": "AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:3", "text": "STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:4", "text": "ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 121, "line_end": 152}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:2", "text": "AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:3", "text": "STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:4", "text": "EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 121, "line_end": 148}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:2", "text": "AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:3", "text": "STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=os_UserSVC_Table   ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:4", "text": "EXPORT   PendSV_Handler\n                IMPORT   os_PendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_PendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT   SysTick_Handler\n                IMPORT   os_Tick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       os_Tick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 121, "line_end": 148}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\nI_T_RUN_OFS     EQU      28                     ; osInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                THUMB\n\n\n                AREA     |.constdata|, DATA, READONLY\n                EXPORT   os_irq_cm\nos_irq_cm       DCB      0                      ; Non weak library reference\n\n\n                AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:2", "text": "AREA     |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT   SVC_Handler\n                IMPORT   os_UserSVC_Table\n                IMPORT   os_Info\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=os_Info+I_T_RUN_OFS; Load address of os_Info.run\n                LDM      R3,{R1,R2}             ; Load os_Info.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "ef8c22cfd5df9050b2a8368cc11ed06772d40613", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef8c22cfd5df9050b2a8368cc11ed06772d40613/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                PRESERVE8\n                THUMB\n\nI_T_RUN_OFS     EQU     28                      ; osInfo.thread.run offset\nTCB_SP_OFS      EQU     56                      ; TCB.SP offset\nTCB_SF_OFS      EQU     34                      ; TCB.stack_frame offset\n\n                AREA    |.constdata|, DATA, READONLY\n                EXPORT  os_irq_cm\nos_irq_cm       DCB     0                       ; Non weak library reference\n\n                AREA    |.text|, CODE, READONLY\n\n\nSVC_Handler     PROC\n                EXPORT  SVC_Handler\n                IMPORT  os_UserSVC_Table\n                IMPORT  os_Info\n\n                MRS     R0,PSP                  ; Get PSP\n                LDR     R1,[R0,#24]             ; Load saved PC from stack\n                LDRB    R1,[R1,#-2]             ; Load SVC number\n                CBNZ    R1,SVC_User             ; Branch if not SVC 0\n\n                PUSH    {R0,LR}                 ; Save PSP and EXC_RETURN\n                LDM     R0,{R0-R3,R12}          ; Load function parameters and address from stack\n                BLX     R12                     ; Call service function\n                POP     {R12,LR}                ; Restore PSP and EXC_RETURN\n                STR     R0,[R12]                ; Store function return value\n\nSVC_Context\n                LDR     R3,=os_Info+I_T_RUN_OFS ; Load address of os_Info.run\n                LDM     R3,{R1,R2}              ; Load os_Info.thread.run: curr & next\n                CMP     R1,R2                   ; Check if thread switch is required", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:2", "text": "SVC_Handler     PROC\n                EXPORT  SVC_Handler\n                IMPORT  os_UserSVC_Table\n                IMPORT  os_Info\n\n                MRS     R0,PSP                  ; Get PSP\n                LDR     R1,[R0,#24]             ; Load saved PC from stack\n                LDRB    R1,[R1,#-2]             ; Load SVC number\n                CBNZ    R1,SVC_User             ; Branch if not SVC 0\n\n                PUSH    {R0,LR}                 ; Save PSP and EXC_RETURN\n                LDM     R0,{R0-R3,R12}          ; Load function parameters and address from stack\n                BLX     R12                     ; Call service function\n                POP     {R12,LR}                ; Restore PSP and EXC_RETURN\n                STR     R0,[R12]                ; Store function return value\n\nSVC_Context\n                LDR     R3,=os_Info+I_T_RUN_OFS ; Load address of os_Info.run\n                LDM     R3,{R1,R2}              ; Load os_Info.thread.run: curr & next\n                CMP     R1,R2                   ; Check if thread switch is required\n                BEQ     SVC_Exit                ; Branch when threads are the same\n\n                CBNZ    R1,SVC_ContextSave      ; Branch if running thread is not deleted\n\n                TST     LR,#0x10                ; Check if extended stack frame\n                BNE     SVC_ContextSwitch\n                LDR     R1,=0xE000EF34          ; FPCCR Address\n                LDR     R0,[R1]                 ; Load FPCCR\n                BIC     R0,#1                   ; Clear LSPACT (Lazy state)\n                STR     R0,[R1]                 ; Store FPCCR\n                B       SVC_ContextSwitch\n\nSVC_ContextSave\n                TST     LR,#0x10                ; Check if extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                MOVEQ   R0,#1                   ;  Extended stack frame identifier\n                MOVNE   R0,#0                   ;  Basic stack frame identifier\n                STMDB   R12!,{R4-R11}           ; Save R4..R11\n                STR     R12,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB    R0, [R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR     R2,[R3]                 ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR     R12,[R2,#TCB_SP_OFS]    ; Load SP\n                LDRB    R0, [R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDMIA   R12!,{R4-R11}           ; Restore R4..R11\n                CMP     R0,#1                   ; Check if extended stack frame\n                VLDMIAEQ R12!,{S16-S31}         ;  Restore VFP S16..S31\n                MVNEQ   LR,#~0xFFFFFFED         ;  Set EXC_RETURN value\n                MVNNE   LR,#~0xFFFFFFFD\n                MSR     PSP,R12                 ; Set PSP\n\nSVC_Exit\n                BX      LR                      ; Exit from handler\n\nSVC_User\n                PUSH    {R4,LR}                 ; Save registers\n                LDR     R2,=os_UserSVC_Table    ; Load address of SVC table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:3", "text": "SVC_ContextSwitch\n                STR     R2,[R3]                 ; os_Info.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR     R12,[R2,#TCB_SP_OFS]    ; Load SP\n                LDRB    R0, [R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDMIA   R12!,{R4-R11}           ; Restore R4..R11\n                CMP     R0,#1                   ; Check if extended stack frame\n                VLDMIAEQ R12!,{S16-S31}         ;  Restore VFP S16..S31\n                MVNEQ   LR,#~0xFFFFFFED         ;  Set EXC_RETURN value\n                MVNNE   LR,#~0xFFFFFFFD\n                MSR     PSP,R12                 ; Set PSP\n\nSVC_Exit\n                BX      LR                      ; Exit from handler\n\nSVC_User\n                PUSH    {R4,LR}                 ; Save registers\n                LDR     R2,=os_UserSVC_Table    ; Load address of SVC table\n                LDR     R3,[R2]                 ; Load SVC maximum number\n                CMP     R1,R3                   ; Check SVC number range\n                BHI     SVC_Done                ; Branch if out of range\n\n                LDR     R4,[R2,R1,LSL #2]       ; Load address of SVC function\n\n                LDM     R0,{R0-R3}              ; Load function parameters from stack\n                BLX     R4                      ; Call service function\n                MRS     R12,PSP                 ; Get PSP\n                STM     R12,{R0-R3}             ; Store function return values\n\nSVC_Done\n                POP     {R4,PC}                 ; Return from handler\n\n                ALIGN\n                ENDP\n\n\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler\n                IMPORT  os_PendSV_Handler\n\n                PUSH    {R4,LR}                 ; Save EXC_RETURN\n                BL      os_PendSV_Handler\n                POP     {R4,LR}                 ; Restore EXC_RETURN\n                MRS     R12,PSP\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler\n                IMPORT  os_Tick_Handler\n\n                PUSH    {R4,LR}                 ; Save EXC_RETURN\n                BL      os_Tick_Handler\n                POP     {R4,LR}                 ; Restore EXC_RETURN\n                MRS     R12,PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s:4", "text": "IMPORT  os_PendSV_Handler\n\n                PUSH    {R4,LR}                 ; Save EXC_RETURN\n                BL      os_PendSV_Handler\n                POP     {R4,LR}                 ; Restore EXC_RETURN\n                MRS     R12,PSP\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler\n                IMPORT  os_Tick_Handler\n\n                PUSH    {R4,LR}                 ; Save EXC_RETURN\n                BL      os_Tick_Handler\n                POP     {R4,LR}                 ; Restore EXC_RETURN\n                MRS     R12,PSP\n                B       SVC_Context\n\n                ALIGN\n                ENDP\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s", "line_start": 121, "line_end": 147}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:1", "text": "/*\n * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv6-M Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        .equ     I_T_RUN_OFS,       20  // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,        56  // TCB.SP offset\n        .equ     TCB_ZONE_OFS,      68  // TCB.zone offset\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:2", "text": ".byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        subs     r1,r7,#0x01            // Clear T-bit of function address\n        lsls     r2,r1,#29              // Check if 8-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r7                  // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:3", "text": "mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cmp      r1,#0\n        beq      SVC_ContextRestore     // Branch if running thread is deleted\n\nSVC_ContextSave:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n\n    #ifdef RTX_STACK_CHECK\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n\n    #endif // RTX_STACK_CHECK\n\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:4", "text": "pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n\n    #endif // RTX_STACK_CHECK\n\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4\n    #ifdef RTX_EXECUTION_ZONE\n        movs     r3,#TCB_ZONE_OFS       // Get TCB.zone offset\n        ldrb     r0,[r2,r3]             // Load osRtxInfo.thread.run.next: zone\n        cmp      r1,#0\n        beq      SVC_ZoneSetup          // Branch if running thread is deleted\n        ldrb     r1,[r1,r3]             // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n        beq      SVC_ContextRestore_N   // Branch if zone has not changed\n\nSVC_ZoneSetup:\n        bl       osZoneSetup_Callback   // Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\nSVC_ContextRestore_N:\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\n        movs     r0,#2                  // Binary complement of 0xFFFFFFFD\n        mvns     r0,r0                  // Set EXC_RETURN value\n        bx       r0                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_Exit:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:5", "text": "ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\n        movs     r0,#2                  // Binary complement of 0xFFFFFFFD\n        mvns     r0,r0                  // Set EXC_RETURN value\n        bx       r0                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n\n        bx       r3                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:6", "text": ".size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 201, "line_end": 255}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:7", "text": ".type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 241, "line_end": 255}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:5", "text": "ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\n        movs     r0,#2                  // Binary complement of 0xFFFFFFFD\n        mvns     r0,r0                  // Set EXC_RETURN value\n        bx       r0                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:6", "text": ".fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 201, "line_end": 256}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:7", "text": ".thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 241, "line_end": 256}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:1", "text": "/*\n * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv6-M Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:2", "text": ".thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cmp      r1,#0\n        beq      SVC_ContextRestore     // Branch if running thread is deleted\n\nSVC_ContextSave:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n\n    #ifdef RTX_STACK_CHECK\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:3", "text": "str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cmp      r1,#0\n        beq      SVC_ContextRestore     // Branch if running thread is deleted\n\nSVC_ContextSave:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n\n    #ifdef RTX_STACK_CHECK\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n\n    #endif // RTX_STACK_CHECK\n\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n\nSVC_ContextRestore:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\n        movs     r0,#2                  // Binary complement of 0xFFFFFFFD\n        mvns     r0,r0                  // Set EXC_RETURN value\n        bx       r0                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_Exit:\n        bx       lr                     // Exit from handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:4", "text": "ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\n        movs     r0,#2                  // Binary complement of 0xFFFFFFFD\n        mvns     r0,r0                  // Set EXC_RETURN value\n        bx       r0                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:5", "text": ".thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 161, "line_end": 197}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:2", "text": ".thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        stmia    r2!,{r0-r1}            // Store function return values\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cmp      r1,#0\n        beq      SVC_ContextRestore     // Branch if running thread is deleted\n\nSVC_ContextSave:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n\n    #ifdef RTX_STACK_CHECK\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:1", "text": "/*\n * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv6-M Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:2", "text": ".eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        stmia    r2!,{r0-r1}            // Store function return values\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        cmp      r1,#0\n        beq      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:3", "text": "subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\n        movs     r0,#2                  // Binary complement of 0xFFFFFFFD\n        mvns     r0,r0                  // Set EXC_RETURN value\n        bx       r0                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:4", "text": "bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 121, "line_end": 173}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S:5", "text": "SysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv6m.S", "line_start": 161, "line_end": 173}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:1", "text": "/*\n * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv7-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n                .syntax  unified\n\n                #include \"rtx_def.h\"\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n                .equ   TCB_ZONE_OFS,    68          // osRtxThread_t.zone offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  SVC_Active\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nSVC_Active:\n                .byte    0                          // SVC Handler Active\nIRQ_PendSV:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:2", "text": ".equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n                .equ   TCB_ZONE_OFS,    68          // osRtxThread_t.zone offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  SVC_Active\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nSVC_Active:\n                .byte    0                          // SVC Handler Active\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                srsfd   sp!, #MODE_UND\n                push    {r0-r4, r12}                // Save APCS corruptible registers to UND mode stack\n\n                mrs     r0, spsr\n                tst     r0, #CPSR_BIT_T             // Check mode\n                moveq   r1, #4                      // R1 = 4 ARM mode\n                movne   r1, #2                      // R1 = 2 Thumb mode\n                sub     r0, lr, r1\n                ldreq   r0, [r0]                    // ARM mode - R0 points to offending instruction\n                beq     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                ldrh    r0, [r0]\n                mov     r2, #0x1C\n                cmp     r2, r0, lsr #11\n                bhs     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                ldrh    r2, [lr]\n                orr     r0, r2, r0, lsl #16\nUndef_Cont:\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:3", "text": "sub     r0, lr, r1\n                ldreq   r0, [r0]                    // ARM mode - R0 points to offending instruction\n                beq     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                ldrh    r0, [r0]\n                mov     r2, #0x1C\n                cmp     r2, r0, lsr #11\n                bhs     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                ldrh    r2, [lr]\n                orr     r0, r2, r0, lsl #16\nUndef_Cont:\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                bl      CUndefHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                ldr     lr, [sp, #24]               // Restore stacked LR and possibly adjust for retry\n                sub     lr, lr, r0\n                ldr     r0, [sp, #28]               // Restore stacked SPSR\n                msr     spsr_cxsf, r0\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                add     sp, sp, #8                  // Adjust SP for already-restored banked registers\n                movs    pc, lr\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 1       // IFSR\n                mrc     p15, 0, r1, c6, c0, 2       // IFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CPAbtHandler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:4", "text": ".type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 1       // IFSR\n                mrc     p15, 0, r1, c6, c0, 2       // IFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CPAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stack APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                sub     lr, lr, #8                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 0       // DFSR\n                mrc     p15, 0, r1, c6, c0, 0       // DFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CDAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:5", "text": "mrc     p15, 0, r1, c6, c0, 0       // DFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CDAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_SVC              // Save LR_irq and SPSR_irq on to the SVC stack\n                cps     #MODE_SVC                   // Change to SVC mode\n                push    {r0-r3, r12, lr}            // Save APCS corruptible registers\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                mov     r3, sp                      // Move SP into R3\n                and     r3, r3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r3                  // Adjust stack\n                push    {r3, r4}                    // Store stack adjustment(R3) and user data(R4)\n\n                blx     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                mov     r4, r0                      // Move interrupt ID to R4\n\n                blx     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                cmp     r0, #0                      // Check if handler address is 0\n                beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:6", "text": "push    {r3, r4}                    // Store stack adjustment(R3) and user data(R4)\n\n                blx     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                mov     r4, r0                      // Move interrupt ID to R4\n\n                blx     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                cmp     r0, #0                      // Check if handler address is 0\n                beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack\n\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                subs    r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor for interrupted code\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                srsfd   sp!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                push    {r12, lr}\n\n                mrs     r12, spsr                   // Load SPSR\n                tst     r12, #CPSR_BIT_T            // Thumb bit set?\n                ldrhne  r12, [lr,#-2]               // Thumb: load halfword\n                bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}                     // Push arguments to stack\n\n                ldr     r0, =SVC_Active\n                mov     r1, #1\n                strb    r1, [r0]                    // Set SVC Handler Active\n\n                ldr     r0, =IRQ_NestLevel", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:7", "text": "srsfd   sp!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                push    {r12, lr}\n\n                mrs     r12, spsr                   // Load SPSR\n                tst     r12, #CPSR_BIT_T            // Thumb bit set?\n                ldrhne  r12, [lr,#-2]               // Thumb: load halfword\n                bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}                     // Push arguments to stack\n\n                ldr     r0, =SVC_Active\n                mov     r1, #1\n                strb    r1, [r0]                    // Set SVC Handler Active\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_FuncCall                // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                ldm     sp, {r0-r3, r12}            // Reload R0-R3 and R12 from stack\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r12                         // Branch to SVC function\n                cpsid   i                           // Disable interrupts\n\n                str     r0, [sp]                    // Store function return value\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_ContextCheck            // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =SVC_Active\n                mov     r1, #0\n                strb    r1, [r0]                    // Clear SVC Handler Active\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:8", "text": "ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_ContextCheck            // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =SVC_Active\n                mov     r1, #0\n                strb    r1, [r0]                    // Clear SVC Handler Active\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range\n\n                ldr     r12,[r5,r12,lsl #2]         // Load SVC Function Address\n                blx     r12                         // Call SVC Function\n\nSVC_Done:\n                clrex                               // Clear exclusive monitor\n                pop     {r4, r5, r12, lr}\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                push    {lr}\n\n                // Check interrupt nesting level\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:9", "text": ".type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                push    {lr}\n\n                // Check interrupt nesting level\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                push    {r0-r2, r12}\n\n                cmp     r0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                beq     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                mov     lr, r0                      // Move &osRtxInfo.thread.run.curr to LR\n                mov     r0, sp                      // Move SP_svc into R0\n                add     r0, r0, #20                 // Adjust SP_svc to R0 of the basic frame\n                sub     sp, sp, #4\n                stm     sp, {sp}^                   // Save SP_usr to current stack\n                pop     {r1}                        // Pop SP_usr into R1\n\n                sub     r1, r1, #64                 // Adjust SP_usr to R4 of the basic frame\n                stmia   r1!, {r4-r11}               // Save R4-R11 to user stack\n                ldmia   r0!, {r4-r8}                // Load stacked R0-R3,R12 into R4-R8\n                stmia   r1!, {r4-r8}                // Store them to user stack\n                stm     r1, {lr}^                   // Store LR_usr directly\n                add     r1, r1, #4                  // Adjust user sp to PC\n                ldmib   r0!, {r5-r6}                // Load stacked PC, CPSR\n                stmia   r1!, {r5-r6}                // Store them to user stack\n\n                sub     r1, r1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:10", "text": "sub     r1, r1, #64                 // Adjust SP_usr to R4 of the basic frame\n                stmia   r1!, {r4-r11}               // Save R4-R11 to user stack\n                ldmia   r0!, {r4-r8}                // Load stacked R0-R3,R12 into R4-R8\n                stmia   r1!, {r4-r8}                // Store them to user stack\n                stm     r1, {lr}^                   // Store LR_usr directly\n                add     r1, r1, #4                  // Adjust user sp to PC\n                ldmib   r0!, {r5-r6}                // Load stacked PC, CPSR\n                stmia   r1!, {r5-r6}                // Store them to user stack\n\n                sub     r1, r1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                orr     r2, r2, #4                  // NEON state\n              #else\n                orr     r2, r2, #2                  // VFP state\n              #endif\n                strb    r2, [lr, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSaveSP:\n                str     r1, [lr, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                pop     {r8-r11}                    // Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                bne     osRtxContextRestore         // Skip post processing if not pending\n\n                mov     r4, sp                      // Move SP_svc into R4\n                and     r4, r4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r4                  // Adjust stack\n\n                // Disable OS Tick\n                ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r10]                   // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:11", "text": "ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                bne     osRtxContextRestore         // Skip post processing if not pending\n\n                mov     r4, sp                      // Move SP_svc into R4\n                and     r4, r4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r4                  // Adjust stack\n\n                // Disable OS Tick\n                ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r10]                   // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r9, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r9, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\n                add     sp, sp, r4                  // Restore stack adjustment\n\nosRtxContextRestore:\n            #ifdef RTX_EXECUTION_ZONE\n                ldrb    r0, [r9, #TCB_ZONE_OFS]     // Load osRtxInfo.thread.run.next: zone\n                cmp     r8, #0\n                beq     osRtxZoneSetup              // Branch if running thread is deleted\n                ldrb    r1, [r8, #TCB_ZONE_OFS]     // Load osRtxInfo.thread.run.curr: zone\n                cmp     r0, r1                      // Check if next:zone == curr:zone\n                beq     osRtxContextRestoreFrame    // Branch if zone has not changed\nosRtxZoneSetup:\n                bl      osZoneSetup_Callback        // Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame:\n                ldr     lr, [r9, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r9, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ands    r2, r2, #0x6                // Check stack frame for VFP context\n                mrc     p15, 0, r2, c1, c0, 2       // Read CPACR\n                andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:12", "text": "beq     osRtxContextRestoreFrame    // Branch if zone has not changed\nosRtxZoneSetup:\n                bl      osZoneSetup_Callback        // Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame:\n                ldr     lr, [r9, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r9, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ands    r2, r2, #0x6                // Check stack frame for VFP context\n                mrc     p15, 0, r2, c1, c0, 2       // Read CPACR\n                andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15\n                ldr     r2, [lr]\n                vmsr    fpscr, r2                   // Restore FPSCR\n                add     lr, lr, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestoreRegs:\n                ldmia   lr!, {r4-r11}               // Restore R4-R11\n                add     r12, lr, #32                // Adjust sp and save it into R12\n                push    {r12}                       // Push sp onto stack\n                ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12\n                stmib   sp!, {r0-r3, r12}           // Store them to SP_svc\n                ldm     lr, {lr}^                   // Restore LR_usr directly\n                ldmib   lr!, {r0-r1}                // Load user registers PC,CPSR\n                add     sp, sp, #4\n                stmib   sp!, {r0-r1}                // Store them to SP_svc\n                sub     sp, sp, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                pop     {pc}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 441, "line_end": 485}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:11", "text": "ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                bne     osRtxContextRestore         // Skip post processing if not pending\n\n                mov     r4, sp                      // Move SP_svc into R4\n                and     r4, r4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r4                  // Adjust stack\n\n                // Disable OS Tick\n                ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r10]                   // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\n                add     sp, sp, r4                  // Restore stack adjustment\n\nosRtxContextRestore:\n            #ifdef RTX_EXECUTION_ZONE\n                ldrb    r0, [r9, #TCB_ZONE_OFS]     // Load osRtxInfo.thread.run.next: zone\n                cmp     r8, #0\n                beq     osRtxZoneSetup              // Branch if running thread is deleted\n                ldrb    r1, [r8, #TCB_ZONE_OFS]     // Load osRtxInfo.thread.run.curr: zone\n                cmp     r0, r1                      // Check if next:zone == curr:zone\n                beq     osRtxContextRestoreFrame    // Branch if zone has not changed\nosRtxZoneSetup:\n                bl      osZoneSetup_Callback        // Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame:\n                ldr     lr, [r9, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r9, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ands    r2, r2, #0x6                // Check stack frame for VFP context\n                mrc     p15, 0, r2, c1, c0, 2       // Read CPACR\n                andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:1", "text": "/*\n * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv7-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n                .syntax  unified\n\n                #include \"rtx_def.h\"\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n                .equ   TCB_ZONE_OFS,    68          // osRtxThread_t.zone offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:2", "text": ".equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n                .equ   TCB_ZONE_OFS,    68          // osRtxThread_t.zone offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                srsfd   sp!, #MODE_UND\n                push    {r0-r4, r12}                // Save APCS corruptible registers to UND mode stack\n\n                mrs     r0, spsr\n                tst     r0, #CPSR_BIT_T             // Check mode\n                moveq   r1, #4                      // R1 = 4 ARM mode\n                movne   r1, #2                      // R1 = 2 Thumb mode\n                sub     r0, lr, r1\n                ldreq   r0, [r0]                    // ARM mode - R0 points to offending instruction\n                beq     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                ldrh    r0, [r0]\n                mov     r2, #0x1C\n                cmp     r2, r0, lsr #11\n                bhs     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                ldrh    r2, [lr]\n                orr     r0, r2, r0, lsl #16\nUndef_Cont:\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                bl      CUndefHandler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:3", "text": "// Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                ldrh    r0, [r0]\n                mov     r2, #0x1C\n                cmp     r2, r0, lsr #11\n                bhs     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                ldrh    r2, [lr]\n                orr     r0, r2, r0, lsl #16\nUndef_Cont:\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                bl      CUndefHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                ldr     lr, [sp, #24]               // Restore stacked LR and possibly adjust for retry\n                sub     lr, lr, r0\n                ldr     r0, [sp, #28]               // Restore stacked SPSR\n                msr     spsr_cxsf, r0\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                add     sp, sp, #8                  // Adjust SP for already-restored banked registers\n                movs    pc, lr\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 1       // IFSR\n                mrc     p15, 0, r1, c6, c0, 2       // IFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CPAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:4", "text": ".cantunwind\nPAbt_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 1       // IFSR\n                mrc     p15, 0, r1, c6, c0, 2       // IFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CPAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stack APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                sub     lr, lr, #8                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 0       // DFSR\n                mrc     p15, 0, r1, c6, c0, 0       // DFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CDAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:5", "text": "and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CDAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_SVC              // Save LR_irq and SPSR_irq on to the SVC stack\n                cps     #MODE_SVC                   // Change to SVC mode\n                push    {r0-r3, r12, lr}            // Save APCS corruptible registers\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                mov     r3, sp                      // Move SP into R3\n                and     r3, r3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r3                  // Adjust stack\n                push    {r3, r4}                    // Store stack adjustment(R3) and user data(R4)\n\n                blx     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                mov     r4, r0                      // Move interrupt ID to R4\n\n                blx     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                cmp     r0, #0                      // Check if handler address is 0\n                beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack\n\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:6", "text": "mov     r4, r0                      // Move interrupt ID to R4\n\n                blx     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                cmp     r0, #0                      // Check if handler address is 0\n                beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack\n\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                subs    r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor for interrupted code\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                srsfd   sp!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                push    {r12, lr}\n\n                mrs     r12, spsr                   // Load SPSR\n                tst     r12, #CPSR_BIT_T            // Thumb bit set?\n                ldrhne  r12, [lr,#-2]               // Thumb: load halfword\n                bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}                     // Push arguments to stack\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:7", "text": "mrs     r12, spsr                   // Load SPSR\n                tst     r12, #CPSR_BIT_T            // Thumb bit set?\n                ldrhne  r12, [lr,#-2]               // Thumb: load halfword\n                bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}                     // Push arguments to stack\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_FuncCall                // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                ldm     sp, {r0-r3, r12}            // Reload R0-R3 and R12 from stack\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r12                         // Branch to SVC function\n                cpsid   i                           // Disable interrupts\n\n                str     r0, [sp]                    // Store function return value\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_ContextCheck            // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range\n\n                ldr     r12,[r5,r12,lsl #2]         // Load SVC Function Address\n                blx     r12                         // Call SVC Function", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:8", "text": "bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range\n\n                ldr     r12,[r5,r12,lsl #2]         // Load SVC Function Address\n                blx     r12                         // Call SVC Function\n\nSVC_Done:\n                clrex                               // Clear exclusive monitor\n                pop     {r4, r5, r12, lr}\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                push    {lr}\n\n                // Check interrupt nesting level\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                push    {r0-r2, r12}\n\n                cmp     r0, #0                      // Is osRtxInfo.thread.run.curr == 0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:9", "text": "ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                push    {r0-r2, r12}\n\n                cmp     r0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                beq     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                mov     lr, r0                      // Move &osRtxInfo.thread.run.curr to LR\n                mov     r0, sp                      // Move SP_svc into R0\n                add     r0, r0, #20                 // Adjust SP_svc to R0 of the basic frame\n                sub     sp, sp, #4\n                stm     sp, {sp}^                   // Save SP_usr to current stack\n                pop     {r1}                        // Pop SP_usr into R1\n\n                sub     r1, r1, #64                 // Adjust SP_usr to R4 of the basic frame\n                stmia   r1!, {r4-r11}               // Save R4-R11 to user stack\n                ldmia   r0!, {r4-r8}                // Load stacked R0-R3,R12 into R4-R8\n                stmia   r1!, {r4-r8}                // Store them to user stack\n                stm     r1, {lr}^                   // Store LR_usr directly\n                add     r1, r1, #4                  // Adjust user sp to PC\n                ldmib   r0!, {r5-r6}                // Load stacked PC, CPSR\n                stmia   r1!, {r5-r6}                // Store them to user stack\n\n                sub     r1, r1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                orr     r2, r2, #4                  // NEON state\n              #else\n                orr     r2, r2, #2                  // VFP state", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:10", "text": "// Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                orr     r2, r2, #4                  // NEON state\n              #else\n                orr     r2, r2, #2                  // VFP state\n              #endif\n                strb    r2, [lr, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSaveSP:\n                str     r1, [lr, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                pop     {r8-r11}                    // Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                bne     osRtxContextRestore         // Skip post processing if not pending\n\n                mov     r4, sp                      // Move SP_svc into R4\n                and     r4, r4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r4                  // Adjust stack\n\n                // Disable OS Tick\n                ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r10]                   // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:11", "text": "mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r10]                   // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r10]                   // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\n                add     sp, sp, r4                  // Restore stack adjustment\n\nosRtxContextRestore:\n            #ifdef RTX_EXECUTION_ZONE\n                ldrb    r0, [r9, #TCB_ZONE_OFS]     // Load osRtxInfo.thread.run.next: zone\n                cmp     r8, #0\n                beq     osRtxZoneSetup              // Branch if running thread is deleted\n                ldrb    r1, [r8, #TCB_ZONE_OFS]     // Load osRtxInfo.thread.run.curr: zone\n                cmp     r0, r1                      // Check if next:zone == curr:zone\n                beq     osRtxContextRestoreFrame    // Branch if zone has not changed\nosRtxZoneSetup:\n                bl      osZoneSetup_Callback        // Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame:\n                ldr     lr, [r9, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r9, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ands    r2, r2, #0x6                // Check stack frame for VFP context\n                mrc     p15, 0, r2, c1, c0, 2       // Read CPACR\n                andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15\n                ldr     r2, [lr]\n                vmsr    fpscr, r2                   // Restore FPSCR\n                add     lr, lr, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestoreRegs:\n                ldmia   lr!, {r4-r11}               // Restore R4-R11\n                add     r12, lr, #32                // Adjust sp and save it into R12\n                push    {r12}                       // Push sp onto stack\n                ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:12", "text": "andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15\n                ldr     r2, [lr]\n                vmsr    fpscr, r2                   // Restore FPSCR\n                add     lr, lr, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestoreRegs:\n                ldmia   lr!, {r4-r11}               // Restore R4-R11\n                add     r12, lr, #32                // Adjust sp and save it into R12\n                push    {r12}                       // Push sp onto stack\n                ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12\n                stmib   sp!, {r0-r3, r12}           // Store them to SP_svc\n                ldm     lr, {lr}^                   // Restore LR_usr directly\n                ldmib   lr!, {r0-r1}                // Load user registers PC,CPSR\n                add     sp, sp, #4\n                stmib   sp!, {r0-r1}                // Store them to SP_svc\n                sub     sp, sp, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                pop     {pc}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 441, "line_end": 474}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:1", "text": "/*\n * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv7-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:2", "text": ".equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                srsfd   sp!, #MODE_UND\n                push    {r0-r4, r12}                // Save APCS corruptible registers to UND mode stack\n\n                mrs     r0, spsr\n                tst     r0, #CPSR_BIT_T             // Check mode\n                moveq   r1, #4                      // R1 = 4 ARM mode\n                movne   r1, #2                      // R1 = 2 Thumb mode\n                sub     r0, lr, r1\n                ldreq   r0, [r0]                    // ARM mode - R0 points to offending instruction\n                beq     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                ldrh    r0, [r0]\n                mov     r2, #0x1C\n                cmp     r2, r0, lsr #11\n                bhs     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                ldrh    r2, [lr]\n                orr     r0, r2, r0, lsl #16\nUndef_Cont:\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                bl      CUndefHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:3", "text": "mov     r2, #0x1C\n                cmp     r2, r0, lsr #11\n                bhs     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                ldrh    r2, [lr]\n                orr     r0, r2, r0, lsl #16\nUndef_Cont:\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                bl      CUndefHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                ldr     lr, [sp, #24]               // Restore stacked LR and possibly adjust for retry\n                sub     lr, lr, r0\n                ldr     r0, [sp, #28]               // Restore stacked SPSR\n                msr     spsr_cxsf, r0\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                add     sp, sp, #8                  // Adjust SP for already-restored banked registers\n                movs    pc, lr\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 1       // IFSR\n                mrc     p15, 0, r1, c6, c0, 2       // IFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CPAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stack APCS registers\n                rfefd   sp!                         // Return from exception", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:4", "text": "srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 1       // IFSR\n                mrc     p15, 0, r1, c6, c0, 2       // IFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CPAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stack APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                sub     lr, lr, #8                  // Pre-adjust LR\n                srsfd   sp!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                push    {r0-r4, r12}                // Save APCS corruptible registers to ABT mode stack\n                mrc     p15, 0, r0, c5, c0, 0       // DFSR\n                mrc     p15, 0, r1, c6, c0, 0       // DFAR\n\n                mov     r2, lr                      // Set LR to third argument\n\n                and     r12, sp, #4                 // Ensure stack is 8-byte aligned\n                sub     sp, sp, r12                 // Adjust stack\n                push    {r12, lr}                   // Store stack adjustment and dummy LR\n\n                bl      CDAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:5", "text": "bl      CDAbtHandler\n\n                pop     {r12, lr}                   // Get stack adjustment & discard dummy LR\n                add     sp, sp, r12                 // Unadjust stack\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r4, r12}                // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                sub     lr, lr, #4                  // Pre-adjust LR\n                srsfd   sp!, #MODE_SVC              // Save LR_irq and SPSR_irq on to the SVC stack\n                cps     #MODE_SVC                   // Change to SVC mode\n                push    {r0-r3, r12, lr}            // Save APCS corruptible registers\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                mov     r3, sp                      // Move SP into R3\n                and     r3, r3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r3                  // Adjust stack\n                push    {r3, r4}                    // Store stack adjustment(R3) and user data(R4)\n\n                blx     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                mov     r4, r0                      // Move interrupt ID to R4\n\n                blx     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                cmp     r0, #0                      // Check if handler address is 0\n                beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack\n\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                subs    r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:6", "text": "beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack\n\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                subs    r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor for interrupted code\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                srsfd   sp!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                push    {r12, lr}\n\n                mrs     r12, spsr                   // Load SPSR\n                tst     r12, #CPSR_BIT_T            // Thumb bit set?\n                ldrhne  r12, [lr,#-2]               // Thumb: load halfword\n                bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}                     // Push arguments to stack\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_FuncCall                // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:7", "text": "bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}                     // Push arguments to stack\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_FuncCall                // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                ldm     sp, {r0-r3, r12}            // Reload R0-R3 and R12 from stack\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r12                         // Branch to SVC function\n                cpsid   i                           // Disable interrupts\n\n                str     r0, [sp]                    // Store function return value\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_ContextCheck            // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range\n\n                ldr     r12,[r5,r12,lsl #2]         // Load SVC Function Address\n                blx     r12                         // Call SVC Function\n\nSVC_Done:\n                clrex                               // Clear exclusive monitor\n                pop     {r4, r5, r12, lr}", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:8", "text": "sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range\n\n                ldr     r12,[r5,r12,lsl #2]         // Load SVC Function Address\n                blx     r12                         // Call SVC Function\n\nSVC_Done:\n                clrex                               // Clear exclusive monitor\n                pop     {r4, r5, r12, lr}\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                push    {lr}\n\n                // Check interrupt nesting level\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                push    {r1-r3, r12}\n\n                cmp     r0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                beq     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                mov     lr, r0                      // Move &osRtxInfo.thread.run.curr to LR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:9", "text": "ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                push    {r1-r3, r12}\n\n                cmp     r0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                beq     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                mov     lr, r0                      // Move &osRtxInfo.thread.run.curr to LR\n                mov     r0, sp                      // Move SP_svc into R0\n                add     r0, r0, #20                 // Adjust SP_svc to R0 of the basic frame\n                sub     sp, sp, #4\n                stm     sp, {sp}^                   // Save SP_usr to current stack\n                pop     {r1}                        // Pop SP_usr into R1\n\n                sub     r1, r1, #64                 // Adjust SP_usr to R4 of the basic frame\n                stmia   r1!, {r4-r11}               // Save R4-R11 to user stack\n                ldmia   r0!, {r4-r8}                // Load stacked R0-R3,R12 into R4-R8\n                stmia   r1!, {r4-r8}                // Store them to user stack\n                stm     r1, {lr}^                   // Store LR_usr directly\n                add     r1, r1, #4                  // Adjust user sp to PC\n                ldmib   r0!, {r5-r6}                // Load current PC, CPSR\n                stmia   r1!, {r5-r6}                // Restore user PC and CPSR\n\n                sub     r1, r1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                orr     r2, r2, #4                  // NEON state\n              #else\n                orr     r2, r2, #2                  // VFP state\n              #endif\n                strb    r2, [lr, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSaveSP:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:10", "text": "cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                orr     r2, r2, #4                  // NEON state\n              #else\n                orr     r2, r2, #2                  // VFP state\n              #endif\n                strb    r2, [lr, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSaveSP:\n                str     r1, [lr, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                pop     {r8-r11}                    // Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                cmp     r10, #1                     // Compare PendSV value\n                bne     osRtxContextRestore         // Skip post processing if not pending\n\n                mov     r4, sp                      // Move SP_svc into R4\n                and     r4, r4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r4                  // Adjust stack\n\n                // Disable OS Tick\n                ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r9]                    // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r9]                    // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\n                add     sp, sp, r4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                ldr     lr, [r8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:11", "text": "strb    r6, [r9]                    // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r9]                    // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\n                add     sp, sp, r4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                ldr     lr, [r8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ands    r2, r2, #0x6                // Check stack frame for VFP context\n                mrc     p15, 0, r2, c1, c0, 2       // Read CPACR\n                andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15\n                ldr     r2, [lr]\n                vmsr    fpscr, r2                   // Restore FPSCR\n                add     lr, lr, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestoreRegs:\n                ldmia   lr!, {r4-r11}               // Restore R4-R11\n                add     r12, lr, #32                // Adjust sp and save it into R12\n                push    {r12}                       // Push sp onto stack\n                ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12\n                stmib   sp!, {r0-r3, r12}           // Store them to SP_svc\n                ldm     lr, {lr}^                   // Restore LR_usr directly\n                ldmib   lr!, {r0-r1}                // Load user registers PC,CPSR\n                add     sp, sp, #4\n                stmib   sp!, {r0-r1}                // Store them to SP_svc\n                sub     sp, sp, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                pop     {pc}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 401, "line_end": 457}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:12", "text": "ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12\n                stmib   sp!, {r0-r3, r12}           // Store them to SP_svc\n                ldm     lr, {lr}^                   // Restore LR_usr directly\n                ldmib   lr!, {r0-r1}                // Load user registers PC,CPSR\n                add     sp, sp, #4\n                stmib   sp!, {r0-r1}                // Store them to SP_svc\n                sub     sp, sp, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                pop     {pc}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 441, "line_end": 457}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:6", "text": "beq     IRQ_End                     // If 0, end interrupt and return\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r0                          // Call IRQ handler\n                cpsid   i                           // Disable interrupts\n\nIRQ_End:\n                mov     r0, r4                      // Move interrupt ID to R0\n                blx     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                pop     {r3, r4}                    // Restore stack adjustment(R3) and user data(R4)\n                add     sp, sp, r3                  // Unadjust stack\n\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                subs    r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor for interrupted code\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                srsfd   sp!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                push    {r12, lr}\n\n                mrs     r12, spsr                   // Load SPSR\n                tst     r12, #CPSR_BIT_T            // Thumb bit set?\n                ldrhne  r12, [lr,#-2]               // Thumb: load halfword\n                bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_FuncCall                // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:7", "text": "bicne   r12, r12, #0xFF00           //        extract SVC number\n                ldreq   r12, [lr,#-4]               // ARM:   load word\n                biceq   r12, r12, #0xFF000000       //        extract SVC number\n                cmp     r12, #0                     // Compare SVC number\n                bne     SVC_User                    // Branch if User SVC\n\n                push    {r0-r3}\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                add     r1, r1, #1                  // Increment IRQ nesting level\n                str     r1, [r0]\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_FuncCall                // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                pop     {r0-r3}\n\n                ldr     r12, [sp]                   // Reload R12 from stack\n\n                cpsie   i                           // Re-enable interrupts\n                blx     r12                         // Branch to SVC function\n                cpsid   i                           // Disable interrupts\n\n                sub     sp, sp, #4\n                stm     sp, {sp}^                   // Store SP_usr onto stack\n                pop     {r12}                       // Pop SP_usr into R12\n                sub     r12, r12, #16               // Adjust pointer to SP_usr\n                ldmdb   r12, {r2,r3}                // Load return values from SVC function\n                push    {r0-r3}                     // Push return values to stack\n\n                ldr     r0, =osRtxInfo\n                ldr     r1, [r0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                cmp     r1, #K_STATE_RUNNING        // Check osKernelRunning\n                blt     SVC_ContextCheck            // Continue if kernel is not running\n                ldr     r0, [r0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:8", "text": "blx     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                bl      osRtxContextSwitch          // Continue in context switcher\n\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]\n                sub     r1, r1, #1                  // Decrement IRQ nesting level\n                str     r1, [r0]\n\n                clrex                               // Clear exclusive monitor\n                pop     {r0-r3, r12, lr}            // Restore stacked APCS registers\n                rfefd   sp!                         // Return from exception\n\nSVC_User:\n                push    {r4, r5}\n                ldr     r5,=osRtxUserSVC            // Load address of SVC table\n                ldr     r4,[r5]                     // Load SVC maximum number\n                cmp     r12,r4                      // Check SVC number range\n                bhi     SVC_Done                    // Branch if out of range\n\n                ldr     r12,[r5,r12,lsl #2]         // Load SVC Function Address\n                blx     r12                         // Call SVC Function\n\nSVC_Done:\n                clrex                               // Clear exclusive monitor\n                pop     {r4, r5, r12, lr}\n                rfefd   sp!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                push    {lr}\n\n                // Check interrupt nesting level\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:9", "text": "// Check interrupt nesting level\n                ldr     r0, =IRQ_NestLevel\n                ldr     r1, [r0]                    // Load IRQ nest level\n                cmp     r1, #1\n                bne     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                ldr     r12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                ldm     r12, {r0, r1}               // Load osRtxInfo.thread.run: curr & next\n                ldr     r2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                ldrb    r3, [r2]                    // Load PendSV flag\n\n                cmp     r0, r1                      // Check if context switch is required\n                bne     osRtxContextCheck           // Not equal, check if context save required\n                cmp     r3, #1                      // Compare IRQ_PendSV value\n                bne     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                str     r1, [r12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                push    {r1-r3, r12}\n\n                cmp     r0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                beq     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                mov     lr, r0                      // Move &osRtxInfo.thread.run.curr to LR\n                mov     r0, sp                      // Move SP_svc into R0\n                add     r0, r0, #20                 // Adjust SP_svc to R0 of the basic frame\n                sub     sp, sp, #4\n                stm     sp, {sp}^                   // Save SP_usr to current stack\n                pop     {r1}                        // Pop SP_usr into R1\n\n                sub     r1, r1, #64                 // Adjust SP_usr to R4 of the basic frame\n                stmia   r1!, {r4-r11}               // Save R4-R11 to user stack\n                ldmia   r0!, {r4-r8}                // Load stacked R0-R3,R12 into R4-R8\n                stmia   r1!, {r4-r8}                // Store them to user stack\n                stm     r1, {lr}^                   // Store LR_usr directly\n                add     r1, r1, #4                  // Adjust user sp to PC\n                ldmib   r0!, {r5-r6}                // Load current PC, CPSR\n                stmia   r1!, {r5-r6}                // Restore user PC and CPSR\n\n                sub     r1, r1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:10", "text": "stmia   r1!, {r5-r6}                // Restore user PC and CPSR\n\n                sub     r1, r1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                mrc     p15, 0, r2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                and     r2, r2, #0x00F00000\n                cmp     r2, #0x00F00000\n                bne     osRtxContextSaveSP          // Continue, no VFP\n\n                vmrs    r2, fpscr\n                stmdb   r1!, {r2,r12}               // Push FPSCR, maintain 8-byte alignment\n\n                vstmdb  r1!, {d0-d15}               // Save D0-D15\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vstmdb  r1!, {d16-d31}              // Save D16-D31\n              #endif\n\n                ldrb    r2, [lr, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                orr     r2, r2, #4                  // NEON state\n              #else\n                orr     r2, r2, #2                  // VFP state\n              #endif\n                strb    r2, [lr, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSaveSP:\n                str     r1, [lr, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                pop     {r8-r11}                    // Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                cmp     r10, #1                     // Compare PendSV value\n                bne     osRtxContextRestore         // Skip post processing if not pending\n\n                mov     r4, sp                      // Move SP_svc into R4\n                and     r4, r4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                sub     sp, sp, r4                  // Adjust stack\n\n                // Disable OS Tick\n                ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r9]                    // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r9]                    // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:11", "text": "ldr     r5, =osRtxInfo              // Load address of osRtxInfo\n                ldr     r5, [r5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                mov     r0, r5                      // Set it as function parameter\n                blx     IRQ_Disable                 // Disable OS Tick interrupt\n                mov     r6, #0                      // Set PendSV clear value\n                b       osRtxPendCheck\nosRtxPendExec:\n                strb    r6, [r9]                    // Clear PendSV flag\n                cpsie   i                           // Re-enable interrupts\n                blx     osRtxPendSV_Handler         // Post process pending objects\n                cpsid   i                           // Disable interrupts\nosRtxPendCheck:\n                ldr     r8, [r11, #4]               // Load osRtxInfo.thread.run.next\n                str     r8, [r11]                   // Store run.next as run.curr\n                ldrb    r0, [r9]                    // Load PendSV flag\n                cmp     r0, #1                      // Compare PendSV value\n                beq     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                mov     r0, r5                      // Restore irqn as function parameter\n                blx     IRQ_Enable                  // Enable OS Tick interrupt\n\n                add     sp, sp, r4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                ldr     lr, [r8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                ldrb    r2, [r8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ands    r2, r2, #0x6                // Check stack frame for VFP context\n                mrc     p15, 0, r2, c1, c0, 2       // Read CPACR\n                andeq   r2, r2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                orrne   r2, r2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                mcr     p15, 0, r2, c1, c0, 2       // Write CPACR\n                beq     osRtxContextRestoreRegs     // No VFP\n                isb                                 // Sync if VFP was enabled\n              #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                vldmia  lr!, {d16-d31}              // Restore D16-D31\n              #endif\n                vldmia  lr!, {d0-d15}               // Restore D0-D15\n                ldr     r2, [lr]\n                vmsr    fpscr, r2                   // Restore FPSCR\n                add     lr, lr, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestoreRegs:\n                ldmia   lr!, {r4-r11}               // Restore R4-R11\n                add     r12, lr, #32                // Adjust sp and save it into R12\n                push    {r12}                       // Push sp onto stack\n                ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12\n                stmib   sp!, {r0-r3, r12}           // Store them to SP_svc\n                ldm     lr, {lr}^                   // Restore LR_usr directly\n                ldmib   lr!, {r0-r1}                // Load user registers PC,CPSR\n                add     sp, sp, #4\n                stmib   sp!, {r0-r1}                // Store them to SP_svc\n                sub     sp, sp, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                pop     {pc}                        // Return", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S:12", "text": "vmsr    fpscr, r2                   // Restore FPSCR\n                add     lr, lr, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestoreRegs:\n                ldmia   lr!, {r4-r11}               // Restore R4-R11\n                add     r12, lr, #32                // Adjust sp and save it into R12\n                push    {r12}                       // Push sp onto stack\n                ldm     sp, {sp}^                   // Restore SP_usr directly\n                add     sp, sp, #4                  // Adjust SP_svc\n                ldmia   lr!, {r0-r3, r12}           // Load user registers R0-R3,R12\n                stmib   sp!, {r0-r3, r12}           // Store them to SP_svc\n                ldm     lr, {lr}^                   // Restore LR_usr directly\n                ldmib   lr!, {r0-r1}                // Load user registers PC,CPSR\n                add     sp, sp, #4\n                stmib   sp!, {r0-r1}                // Store them to SP_svc\n                sub     sp, sp, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                pop     {pc}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7a.S", "line_start": 441, "line_end": 464}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:1", "text": "/*\n * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv7-M Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED, 1\n        #else\n        .equ     FPU_USED, 0\n        #endif\n\n        .equ     I_T_RUN_OFS,       20  // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,        56  // TCB.SP offset\n        .equ     TCB_SF_OFS,        34  // TCB.stack_frame offset\n        .equ     TCB_ZONE_OFS,      68  // TCB.zone offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:2", "text": ".equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:3", "text": "beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:4", "text": "ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n      .if (FPU_USED != 0)\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0)\n        ldrsb    lr, [r1,#TCB_SF_OFS]   // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n    #endif // RTX_STACK_CHECK", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:5", "text": "SVC_ContextSaveRegs:\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0)\n        ldrsb    lr, [r1,#TCB_SF_OFS]   // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n\nSVC_ZoneSetup:\n        it       ne                     // If zone has changed or running thread is deleted\n        blne     osZoneSetup_Callback   //  Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n      .if (FPU_USED != 0)\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:6", "text": ".else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:7", "text": ".fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 241, "line_end": 281}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:2", "text": ".equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        mov      r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        sub      r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:3", "text": "beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        mov      r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        sub      r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:4", "text": "ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        mov      r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n      .if (FPU_USED != 0)\n        ldrb     lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0)\n        ldrb     lr, [r1,#TCB_SF_OFS]   // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n    #endif // RTX_STACK_CHECK", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:5", "text": "SVC_ContextSaveRegs:\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0)\n        ldrb     lr, [r1,#TCB_SF_OFS]   // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n\nSVC_ZoneSetup:\n        it       ne                     // If zone has changed or running thread is deleted\n        blne     osZoneSetup_Callback   //  Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n      .if (FPU_USED != 0)\n        ldrb     r1,[r4,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:6", "text": "vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:7", "text": "b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 241, "line_end": 282}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:1", "text": "/*\n * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv7-M Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED, 1\n        #else\n        .equ     FPU_USED, 0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:2", "text": ".equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:3", "text": "ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0)\n        mov      r4,r1                  // Save osRtxInfo.thread.run.curr\n      .endif\n        mov      r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n      .if (FPU_USED != 0)\n        ldrb     lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0)\n        ldrb     lr, [r1,#TCB_SF_OFS]   // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:4", "text": "mov      r4,r1                  // Save osRtxInfo.thread.run.curr\n      .endif\n        mov      r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n      .if (FPU_USED != 0)\n        ldrb     lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0)\n        ldrb     lr, [r1,#TCB_SF_OFS]   // Load stack frame information\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n      .if (FPU_USED != 0)\n        ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:5", "text": "it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:6", "text": "mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 201, "line_end": 225}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:2", "text": ".equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:1", "text": "/*\n * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv7-M Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED, 1\n        #else\n        .equ     FPU_USED, 0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:2", "text": ".section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cbnz     R1,SVC_User            // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n      .if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextSwitch      // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextSwitch      // Branch to context switch handling\n      .else\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:3", "text": ".if (FPU_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextSwitch      // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextSwitch      // Branch to context switch handling\n      .else\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n      .endif\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n      .if (FPU_USED != 0)\n        ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .else\n        mvn      lr,#~0xFFFFFFFD        // Set EXC_RETURN value\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:4", "text": "SVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 121, "line_end": 178}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S:5", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv7m.S", "line_start": 161, "line_end": 178}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": "/*\n * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Baseline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        subs     r1,r7,#0x01            // Clear T-bit of function address\n        lsls     r2,r1,#29              // Check if 8-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r7                  // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "mov      r1,r7                  // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #ifdef RTX_TZ_CONTEXT\n        mov      r3,lr                  // Get EXC_RETURN\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r0-r3}                // Save registers\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r0-r3}                // Restore registers\n        mov      lr,r3                  // Set EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        strb     r3,[r1,r0]             // Store stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "mov      lr,r3                  // Set EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        strb     r3,[r1,r0]             // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n      #if (DOMAIN_NS != 0)\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r1,r0]             // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n        subs     r0,r0,#32              // Adjust address\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "#endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n        subs     r0,r0,#32              // Adjust address\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        strb     r3,[r1,r0]             // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4\n    #ifdef RTX_EXECUTION_ZONE\n        movs     r3,#TCB_ZONE_OFS       // Get TCB.zone offset\n        ldrb     r0,[r2,r3]             // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted\n        ldrb     r1,[r1,r3]             // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n        beq      SVC_ContextRestore_S   // Branch if zone has not changed\n\nSVC_ZoneSetup:\n        bl       osZoneSetup_Callback   // Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\nSVC_ContextRestore_S:\n    #ifdef RTX_TZ_CONTEXT\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r4,r0]             // Load stack frame information\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r4,r0]             // Load stack frame information\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n        adds     r0,r0,#16              // Adjust address\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n\n        bx       r3                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n\n        bx       r3                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "SysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 310}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": "/*\n * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Baseline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        subs     r1,r7,#0x01            // Clear T-bit of function address\n        lsls     r2,r1,#29              // Check if 8-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r7                  // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "SVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r7                  // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r0-r3}                // Save registers\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r0-r3}                // Restore registers\n        mov      lr,r3                  // Set EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r0-r3}                // Save registers\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r0-r3}                // Restore registers\n        mov      lr,r3                  // Set EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        strb     r3,[r1,r0]             // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n      #if (DOMAIN_NS != 0)\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r1,r0]             // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r1,r0]             // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n        subs     r0,r0,#32              // Adjust address\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        strb     r3,[r1,r0]             // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4\n    #ifdef RTX_EXECUTION_ZONE\n        movs     r3,#TCB_ZONE_OFS       // Get TCB.zone offset\n        ldrb     r0,[r2,r3]             // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted\n        ldrb     r1,[r1,r3]             // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n        beq      SVC_ContextRestore_S   // Branch if zone has not changed\n\nSVC_ZoneSetup:\n        bl       osZoneSetup_Callback   // Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\nSVC_ContextRestore_S:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r4,r0]             // Load stack frame information\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "#endif // RTX_EXECUTION_ZONE\n\nSVC_ContextRestore_S:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        movs     r0,#TCB_SF_OFS         // Get TCB.stack_frame offset\n        ldrsb    r3,[r4,r0]             // Load stack frame information\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n        adds     r0,r0,#16              // Adjust address\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n\n        bx       r3                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "SVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n\n        bx       r3                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": ".type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 314}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "SVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r7                  // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        mov      lr,r3                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        mov      r0,r1                  // osRtxInfo.thread.run.curr\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        strb     r3,[r0]                // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n      #if (DOMAIN_NS != 0)\n        mov      r0,r1                  // osRtxInfo.thread.run.curr\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "SVC_ContextSaveRegs:\n      #if (DOMAIN_NS != 0)\n        mov      r0,r1                  // osRtxInfo.thread.run.curr\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n        subs     r0,r0,#32              // Adjust address\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r0,lr                  // Get EXC_RETURN\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        strb     r0,[r1]                // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4\n    #ifdef RTX_EXECUTION_ZONE\n        movs     r3,#TCB_ZONE_OFS       // Get TCB.zone offset\n        ldrb     r0,[r2,r3]             // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted\n        ldrb     r1,[r1,r3]             // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n        beq      SVC_ContextRestore_S   // Branch if zone has not changed\n\nSVC_ZoneSetup:\n        bl       osZoneSetup_Callback   // Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\nSVC_ContextRestore_S:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        mov      r0,r4                  // osRtxInfo.thread.run.next\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        movs     r0,#0xFF\n        mvns     r0,r0                  // R0=0xFFFFFF00", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "SVC_ZoneSetup:\n        bl       osZoneSetup_Callback   // Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\nSVC_ContextRestore_S:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        mov      r0,r4                  // osRtxInfo.thread.run.next\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        movs     r0,#0xFF\n        mvns     r0,r0                  // R0=0xFFFFFF00\n        orrs     r3,r3,r0\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n        adds     r0,r0,#16              // Adjust address\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "SVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 322}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": "/*\n * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Baseline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "SVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r3,lr                  // Get EXC_RETURN\n        mov      r0,r1                  // osRtxInfo.thread.run.curr\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        strb     r3,[r0]                // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n      #if (DOMAIN_NS != 0)\n        mov      r0,r1                  // osRtxInfo.thread.run.curr\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cmp      r0,#0\n        bne      SVC_ContextSaveRegs    // Branch when stack check is ok\n\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        b        SVC_ContextRestore     // Branch to context restore handling\n\nSVC_ContextSaveRegs:\n      #if (DOMAIN_NS != 0)\n        mov      r0,r1                  // osRtxInfo.thread.run.curr\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r0,[r1,#TCB_SP_OFS]    // Load SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n    #else\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n        subs     r0,r0,#32              // Adjust address\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r0,lr                  // Get EXC_RETURN\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        strb     r0,[r1]                // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        mov      r0,r2                  // osRtxInfo.thread.run.next\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        movs     r0,#0xFF", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        strb     r0,[r1]                // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        mov      r0,r2                  // osRtxInfo.thread.run.next\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        movs     r0,#0xFF\n        mvns     r0,r0                  // R0=0xFFFFFF00\n        orrs     r3,r3,r0\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n        adds     r0,r0,#16              // Adjust address\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 266}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        stmia    r2!,{r0-r1}            // Store function return values\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": "/*\n * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Baseline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        stmia    r2!,{r0-r1}            // Store function return values\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n    #endif\n\nSVC_ContextSave_NS:\n        mrs      r0,psp                 // Get PSP\n    #if (DOMAIN_NS != 0)\n        mov      r3,lr                  // Get EXC_RETURN\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n        subs     r0,r0,#32              // Calculate SP: space for R4..R11\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n        subs     r0,r0,#32              // Adjust address\nSVC_ContextSaveSP:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        mov      r0,lr                  // Get EXC_RETURN\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        strb     r0,[r1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        mov      r0,r2                  // osRtxInfo.thread.run.next\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        movs     r0,#0xFF\n        mvns     r0,r0                  // R0=0xFFFFFF00", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        mov      r0,r2                  // osRtxInfo.thread.run.next\n        adds     r0,r0,#TCB_SF_OFS      // Adjust address\n        ldrb     r3,[r0]                // Load stack frame information\n        movs     r0,#0xFF\n        mvns     r0,r0                  // R0=0xFFFFFF00\n        orrs     r3,r3,r0\n        mov      lr,r3                  // Set EXC_RETURN\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n    #if (DOMAIN_NS != 0)\n        lsls     r3,r3,#25              // Check domain of interrupted thread\n        bmi      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n        adds     r0,r0,#16              // Adjust address\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 225}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": "/*\n * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Baseline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #ifdef   _RTE_\n        #include \"RTE_Components.h\"\n        #ifdef   RTE_CMSIS_RTOS2_RTX5_ARMV8M_NS\n        #define  DOMAIN_NS    1\n        #endif\n        #endif\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        mov      r0,lr\n        lsrs     r0,r0,#3               // Determine return stack from EXC_RETURN bit 2\n        bcc      SVC_MSP                // Branch if return stack is MSP\n        mrs      r0,psp                 // Get PSP\n\nSVC_Number:\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        subs     r1,r1,#2               // Point to SVC instruction\n        ldrb     r1,[r1]                // Load SVC number\n        cmp      r1,#0\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r7                     // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        stmia    r2!,{r0-r1}            // Store function return values\n        mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave1    // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n        #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "mov      lr,r3                  // Set EXC_RETURN\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        ldmia    r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      SVC_Exit               // Branch when threads are the same\n\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave1    // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n        #endif\n\nSVC_ContextSave1:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Calculate SP\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n\nSVC_ContextSave2:\n        mov      r0,lr                  // Get EXC_RETURN\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        strb     r0,[r1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore1 // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n        #endif\n\nSVC_ContextRestore1:\n        mov      r1,r2\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        ldrb     r0,[r1]                // Load stack frame information\n        movs     r1,#0xFF\n        mvns     r1,r1                  // R1=0xFFFFFF00\n        orrs     r0,r1\n        mov      lr,r0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "SVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore1 // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n        #endif\n\nSVC_ContextRestore1:\n        mov      r1,r2\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        ldrb     r0,[r1]                // Load stack frame information\n        movs     r1,#0xFF\n        mvns     r1,r1                  // R1=0xFFFFFF00\n        orrs     r0,r1\n        mov      lr,r0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        lsls     r0,r0,#25              // Check domain of interrupted thread\n        bpl      SVC_ContextRestore2    // Branch if non-secure\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        msr      psp,r0                 // Set PSP\n        bx       lr                     // Exit from handler\n        #else\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        #endif\n\nSVC_ContextRestore2:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "ldmia    r0!,{r4-r7}            // Restore R4..R7\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_MSP:\n        mrs      r0,msp                 // Get MSP\n        b        SVC_Number\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        lsls     r1,r1,#2\n        ldr      r3,[r2,r1]             // Load address of SVC function\n        mov      r12,r3\n        ldmia    r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r2,r3}                // Restore SP and EXC_RETURN\n        str      r0,[r2]                // Store function return value\n        mov      lr,r3                  // Set EXC_RETURN\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        Sys_Context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,r1}                // Restore EXC_RETURN\n        mov      lr,r1                  // Set EXC_RETURN\n        b        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        ldm      r3!,{r1,r2}            // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        beq      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,Sys_ContextSave1    // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n\nSys_ContextSave1:\n        mov      r0,lr                  // Get EXC_RETURN\n        lsls     r0,r0,#25              // Check domain of interrupted thread\n        bpl      Sys_ContextSave2       // Branch if non-secure\n        mrs      r0,psp                 // Get PSP\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        b        Sys_ContextSave3\n        #endif\n\nSys_ContextSave2:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Adjust address\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "cbz      r0,Sys_ContextSave1    // Branch if there is no secure context\n        push     {r1,r2,r3,r7}          // Save registers\n        mov      r7,lr                  // Get EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        mov      lr,r7                  // Set EXC_RETURN\n        pop      {r1,r2,r3,r7}          // Restore registers\n\nSys_ContextSave1:\n        mov      r0,lr                  // Get EXC_RETURN\n        lsls     r0,r0,#25              // Check domain of interrupted thread\n        bpl      Sys_ContextSave2       // Branch if non-secure\n        mrs      r0,psp                 // Get PSP\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        b        Sys_ContextSave3\n        #endif\n\nSys_ContextSave2:\n        mrs      r0,psp                 // Get PSP\n        subs     r0,r0,#32              // Adjust address\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        stmia    r0!,{r4-r7}            // Save R4..R7\n        mov      r4,r8\n        mov      r5,r9\n        mov      r6,r10\n        mov      r7,r11\n        stmia    r0!,{r4-r7}            // Save R8..R11\n\nSys_ContextSave3:\n        mov      r0,lr                  // Get EXC_RETURN\n        adds     r1,r1,#TCB_SF_OFS      // Adjust address\n        strb     r0,[r1]                // Store stack frame information\n\nSys_ContextSwitch:\n        subs     r3,r3,#8               // Adjust address\n        str      r2,[r3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,Sys_ContextRestore1 // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n        #endif\n\nSys_ContextRestore1:\n        mov      r1,r2\n        adds     r1,r1,#TCB_SF_OFS      // Adjust offset\n        ldrb     r0,[r1]                // Load stack frame information\n        movs     r1,#0xFF\n        mvns     r1,r1                  // R1=0xFFFFFF00\n        orrs     r0,r1\n        mov      lr,r0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        lsls     r0,r0,#25              // Check domain of interrupted thread\n        bpl      Sys_ContextRestore2    // Branch if non-secure\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        msr      psp,r0                 // Set PSP\n        bx       lr                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "push     {r2,r3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n        #endif\n\nSys_ContextRestore1:\n        mov      r1,r2\n        adds     r1,r1,#TCB_SF_OFS      // Adjust offset\n        ldrb     r0,[r1]                // Load stack frame information\n        movs     r1,#0xFF\n        mvns     r1,r1                  // R1=0xFFFFFF00\n        orrs     r0,r1\n        mov      lr,r0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        lsls     r0,r0,#25              // Check domain of interrupted thread\n        bpl      Sys_ContextRestore2    // Branch if non-secure\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        msr      psp,r0                 // Set PSP\n        bx       lr                     // Exit from handler\n        #else\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r0              // Set PSPLIM\n        #endif\n\nSys_ContextRestore2:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        adds     r0,r0,#16              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R8..R11\n        mov      r8,r4\n        mov      r9,r5\n        mov      r10,r6\n        mov      r11,r7\n        msr      psp,r0                 // Set PSP\n        subs     r0,r0,#32              // Adjust address\n        ldmia    r0!,{r4-r7}            // Restore R4..R7\n\nSys_ContextExit:\n        bx       lr                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 325}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        #endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        #endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "SVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        #endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        #else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        #endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n\nSys_ContextSave1:\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave2       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave3\n        #endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n\nSys_ContextSave1:\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave2       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave3\n        #endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave3:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        #endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        #endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        #else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        #endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 325}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS,   0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": "irqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n\nSys_ContextSave1:\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave2       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave3\n        .endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "Sys_ContextSave1:\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave2       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave3\n        .endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave3:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 318}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "302d4fb1ab650618fccc22b26d1b3618b504968e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/302d4fb1ab650618fccc22b26d1b3618b504968e/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 316}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.S\"\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 317}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.S\"\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.S\"\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.S\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": "BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        LSLS     R7,R7,#25              // Check domain of interrupted thread\n        BMI      Sys_ContextSave1       // Branch if secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "LSLS     R7,R7,#25              // Check domain of interrupted thread\n        BMI      Sys_ContextSave1       // Branch if secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 316}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.S\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore PSP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": ".if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 308}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        LSLS     R7,R7,#25              // Check domain of interrupted thread\n        BMI      Sys_ContextSave1       // Branch if secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:8", "text": "MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 281, "line_end": 307}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.S\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "200cd4bbd7445c5471e30659b75380b17e4e7a8d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/200cd4bbd7445c5471e30659b75380b17e4e7a8d/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "94d9f69fc5b01605b94627859ed1300d3f10374f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/94d9f69fc5b01605b94627859ed1300d3f10374f/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:2", "text": ".global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore PSP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:3", "text": ".if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:4", "text": "MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:5", "text": "LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:6", "text": "PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        LSLS     R7,R7,#25              // Check domain of interrupted thread\n        BMI      Sys_ContextSave1       // Branch if secure\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S:7", "text": "SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:2", "text": ".global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R1,R2}                // Restore PSP and EXC_RETURN\n        STR      R0,[R1]                // Store function return value\n        MOV      LR,R2                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,R7}          // Save registers\n        MOV      R7,LR                  // Get EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        MOV      LR,R7                  // Set EXC_RETURN\n        POP      {R1,R2,R3,R7}          // Restore registers\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "d742a6dacb5f3bf7852f69d26174e2a53f313eb4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d742a6dacb5f3bf7852f69d26174e2a53f313eb4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:2", "text": ".global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R1,R2}                // Restore PSP and EXC_RETURN\n        STR      R0,[R1]                // Store function return value\n        MOV      R0,R1                  // Save PSP\n        MOV      LR,R2                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:3", "text": "SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:4", "text": "BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:5", "text": ".size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MOV      R0,LR                  // Get EXC_RETURN\n        PUSH     {R0,R1,R2,R3}          // Save registers\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R0,R1,R2,R3}          // Restore registers\n        MOV      LR,R0                  // Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:6", "text": ".fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MOV      R0,LR                  // Get EXC_RETURN\n        PUSH     {R0,R1,R2,R3}          // Save registers\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R0,R1,R2,R3}          // Restore registers\n        MOV      LR,R0                  // Set EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:7", "text": "Sys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 241, "line_end": 294}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:8", "text": "MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 281, "line_end": 294}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n        .file    \"irq_armv8mbl.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:2", "text": ".section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R1,R2}                // Restore PSP and EXC_RETURN\n        STR      R0,[R1]                // Store function return value\n        MOV      R0,R1                  // Save PSP\n        MOV      LR,R2                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:3", "text": "SVC_ContextSave:\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:4", "text": "MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:5", "text": ".fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MOV      R0,LR                  // Get EXC_RETURN\n        PUSH     {R0,R1,R2,R3}          // Save registers\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R0,R1,R2,R3}          // Restore registers", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:6", "text": ".global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      Sys_ContextExit        // Branch when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        MOV      R0,LR                  // Get EXC_RETURN\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextSave1       // Branch if non-secure\n        MOV      R0,LR                  // Get EXC_RETURN\n        PUSH     {R0,R1,R2,R3}          // Save registers\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R0,R1,R2,R3}          // Restore registers\n        MOV      LR,R0                  // Set EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSys_ContextSave2:\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:7", "text": "STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 241, "line_end": 295}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:8", "text": "MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 281, "line_end": 295}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:3", "text": "SVC_ContextSave:\n        SUBS     R0,R0,#32              // Adjust PSP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\n        MOV      R0,LR                  // Get EXC_RETURN\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        STRB     R0,[R1]                // Store stack frame information\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust address\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      SVC_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n//      MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:4", "text": "MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n//      MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSVC_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s:7", "text": "STRB     R0,[R1]                // Store stack frame information\n\nSys_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        MOV      R1,R2\n        ADDS     R1,R1,#TCB_SF_OFS      // Adjust offset\n        LDRB     R0,[R1]                // Load stack frame information\n        MOVS     R1,#0xFF\n        MVNS     R1,R1                  // R1=0xFFFFFF00\n        ORRS     R0,R1\n        MOV      LR,R0                  // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        LSLS     R0,R0,#25              // Check domain of interrupted thread\n        BPL      Sys_ContextRestore2    // Branch if non-secure\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        MSR      PSP,R0                 // Set PSP\n        BX       LR                     // Exit from handler\n        .else\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n//      MSR      PSPLIM,R0              // Set PSPLIM\n        .endif\n\nSys_ContextRestore2:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.s", "line_start": 241, "line_end": 295}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": "#endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_TZ_CONTEXT\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #ifdef RTX_TZ_CONTEXT\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r12,lr}         // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldrsb    lr,[r1,#TCB_SF_OFS]    // Load stack frame information\n      #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n\nSVC_ZoneSetup:\n        it       ne                     // If zone has changed or running thread is deleted", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n\nSVC_ZoneSetup:\n        it       ne                     // If zone has changed or running thread is deleted\n        blne     osZoneSetup_Callback   //  Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\n    #ifdef RTX_TZ_CONTEXT\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cmp      r0,#0\n        it       ne                     // If TrustZone memory allocated\n        blne     TZ_LoadContext_S       //  Load secure context\n    #endif\n\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n        ldr      r1,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r1              // Set PSPLIM\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        itt      ne                     // If secure\n        msrne    psp,r0                 //  Set PSP\n        bxne     lr                     //  Exit from handler\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": ".if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:8", "text": "pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 281, "line_end": 324}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        movs     r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        subs     r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r12,lr}         // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        movs     r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldrsb    lr,[r1,#TCB_SF_OFS]    // Load stack frame information\n      #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n\nSVC_ZoneSetup:\n        it       ne                     // If zone has changed or running thread is deleted\n        blne     osZoneSetup_Callback   //  Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cmp      r0,#0\n        it       ne                     // If TrustZone memory allocated\n        blne     TZ_LoadContext_S       //  Load secure context\n    #endif\n\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n        ldr      r1,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r1              // Set PSPLIM\n        ldrsb    lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        itt      ne                     // If secure\n        msrne    psp,r0                 //  Set PSP\n        bxne     lr                     //  Exit from handler\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "itt      ne                     // If secure\n        msrne    psp,r0                 //  Set PSP\n        bxne     lr                     //  Exit from handler\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:8", "text": "PendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 281, "line_end": 328}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n        .equ     TCB_ZONE_OFS,68        // TCB.zone offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n        .equ     osRtxErrorSVC,           6 // Invalid SVC function called\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        mov      r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n    #ifdef RTX_SVC_PTR_CHECK\n\n        ldr      r12,[r0,#16]           // Load function address from stack\n        sub      r1,r12,#1              // Clear T-bit of function address\n        lsls     r2,r1,#30              // Check if 4-byte aligned\n        beq      SVC_PtrBoundsCheck     // Branch if address is aligned\n\nSVC_PtrInvalid:\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        mov      r0,#osRtxErrorSVC      // Parameter: code\n        mov      r1,r12                 // Parameter: object_id\n        bl       osRtxKernelErrorNotify // Call osRtxKernelErrorNotify\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        b        SVC_Context            // Branch to context handling\n\nSVC_PtrBoundsCheck:\n        ldr      r2,=Image$$RTX_SVC_VENEERS$$Base\n        ldr      r3,=Image$$RTX_SVC_VENEERS$$Length\n        sub      r2,r1,r2               // Subtract SVC table base address\n        cmp      r2,r3                  // Compare with SVC table boundaries\n        bhs      SVC_PtrInvalid         // Branch if address is out of bounds\n\n    #endif // RTX_SVC_PTR_CHECK\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r12,lr}         // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        mov      r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Assign osRtxInfo.thread.run.curr to R4\n      .endif\n        mov      r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n        movs     r1,#0                  // Simulate deleted running thread\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        ldrb     lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldrb     lr,[r1,#TCB_SF_OFS]    // Load stack frame information\n      #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n        movs     r4,r2                  // Assign osRtxInfo.thread.run.next to R4, clear Z flag\n    #ifdef RTX_EXECUTION_ZONE\n        ldrb     r0,[r2,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.next: zone\n        cbz      r1,SVC_ZoneSetup       // Branch if running thread is deleted (Z flag unchanged)\n        ldrb     r1,[r1,#TCB_ZONE_OFS]  // Load osRtxInfo.thread.run.curr: zone\n        cmp      r0,r1                  // Check if next:zone == curr:zone\n\nSVC_ZoneSetup:\n        it       ne                     // If zone has changed or running thread is deleted\n        blne     osZoneSetup_Callback   //  Setup zone for next thread\n    #endif // RTX_EXECUTION_ZONE\n\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r4,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        bl       TZ_LoadContext_S       // Load secure context\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r4,#TCB_SP_OFS]    // Load SP\n        ldr      r1,[r4,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r1              // Set PSPLIM\n        ldrb     r1,[r4,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:8", "text": ".cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n    #ifdef RTX_SAFETY_FEATURES\n\n        .thumb_func\n        .type    osFaultResume, %function\n        .global  osFaultResume\n        .fnstart\n        .cantunwind\nosFaultResume:\n\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size   osFaultResume, .-osFaultResume\n\n    #endif // RTX_SAFETY_FEATURES\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 281, "line_end": 329}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r12,lr}         // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\n        push     {r1,r2}                // Save osRtxInfo.thread.run: curr & next\n        mov      r0,r1                  // Parameter: osRtxInfo.thread.run.curr\n        bl       osRtxThreadStackCheck  // Check if thread stack is overrun\n        pop      {r1,r2}                // Restore osRtxInfo.thread.run: curr & next\n        cbnz     r0,SVC_ContextSaveRegs // Branch when stack check is ok\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        mov      r4,r1                  // Save osRtxInfo.thread.run.curr\n      .endif\n        mov      r0,#osRtxErrorStackOverflow // Parameter: r0=code, r1=object_id\n        bl       osRtxKernelErrorNotify      // Call osRtxKernelErrorNotify\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS   // Load address of osRtxInfo.thread.run\n        ldr      r2,[r3,#4]             // Load osRtxInfo.thread.run: next\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        ldrb     lr,[r4,#TCB_SF_OFS]    // Load stack frame information\n        b        SVC_FP_LazyState       // Branch to FP lazy state handling\n      .else\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .endif\n\nSVC_ContextSaveRegs:\n        ldrb     lr,[r1,#TCB_SF_OFS]    // Load stack frame information\n      #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": ".endif\n\nSVC_ContextSaveRegs:\n        ldrb     lr,[r1,#TCB_SF_OFS]    // Load stack frame information\n      #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestore     // Branch if secure\n      #endif\n        ldr      r12,[r1,#TCB_SP_OFS]   // Load SP\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmiaeq r12!,{s16-s31}         //  Save VFP S16..S31\n      .endif\n        stm      r12,{r4-r11}           // Save R4..R11\n    #else\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n    #endif // RTX_STACK_CHECK\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        ldr      r1,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r1              // Set PSPLIM\n        ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": "ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": ".type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 274}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .equ     osRtxErrorStackOverflow, 1 // Stack overflow\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\nSVC_FP_LazyState:\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextRestore     // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextRestore     // Branch to context restore handling\n      .else\n        cbz      r1,SVC_ContextRestore  // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r12,lr}         // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n    #ifdef RTX_STACK_CHECK\n        sub      r12,r12,#32            // Calculate SP: space for R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        subeq    r12,r12,#64            //  Additional space for S16..S31\n      .endif\n\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8-M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #include \"rtx_def.h\"\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .equ     FPCCR,     0xE000EF34  // FPCCR Address\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n        .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextSwitch      // Branch if not extended stack frame", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "cmp      r1,#0                  // Check SVC number\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.thread.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        bne      SVC_ContextSwitch      // Branch if not extended stack frame\n        ldr      r3,=FPCCR              // FPCCR Address\n        ldr      r0,[r3]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state preservation)\n        str      r0,[r3]                // Store FPCCR\n        b        SVC_ContextSwitch      // Branch to context switch handling\n      .else\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n      .endif\n\nSVC_ContextSave:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave_NS  // Branch if there is no secure context\n        push     {r1,r2,r12,lr}         // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r12,lr}         // Restore registers and EXC_RETURN\n    #endif\n\nSVC_ContextSave_NS:\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextSaveSP      // Branch if secure\n    #endif\n\n        stmdb    r12!,{r4-r11}          // Save R4..R11\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vstmdbeq r12!,{s16-s31}         //  Save VFP S16.S31\n      .endif\nSVC_ContextSaveSP:\n        str      r12,[r1,#TCB_SP_OFS]   // Store SP\n        strb     lr, [r1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n    #if (DOMAIN_NS != 0)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore_NS // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n    #endif\n\nSVC_ContextRestore_NS:\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        ldr      r1,[r2,#TCB_SM_OFS]    // Load stack memory base\n        msr      psplim,r1              // Set PSPLIM\n        ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        orn      lr,r1,#0xFF            // Set EXC_RETURN\n    #if (DOMAIN_NS != 0)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestoreSP   // Branch if secure\n    #endif\n\n      .if (FPU_USED != 0) || (MVE_USED != 0)\n        tst      lr,#0x10               // Determine stack frame from EXC_RETURN bit 4\n        it       eq                     // If extended stack frame\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n      .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestoreSP:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": "b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        mrs      r12,psp                // Save PSP to R12\n        b        SVC_Context            // Branch to context handling\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 224}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        #ifdef   _RTE_\n        #include \"RTE_Components.h\"\n        #ifdef   RTE_CMSIS_RTOS2_RTX5_ARMV8M_NS\n        #define  DOMAIN_NS    1\n        #endif\n        #endif\n\n        #ifndef  DOMAIN_NS\n        #define  DOMAIN_NS    0\n        #endif\n\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        tst      lr,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ite      eq\n        mrseq    r0,msp                 // Get MSP if return stack is MSP\n        mrsne    r0,psp                 // Get PSP if return stack is PSP\n\n        ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "ldr      r1,[r0,#24]            // Load saved PC from stack\n        ldrb     r1,[r1,#-2]            // Load SVC number\n        cmp      r1,#0\n        bne      SVC_User               // Branch if not SVC 0\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldm      r0,{r0-r3,r12}         // Load function parameters and address from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        stm      r12,{r0-r1}            // Store function return values\n\nSVC_Context:\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        cbnz     r1,SVC_ContextSave     // Branch if running thread is not deleted\n        tst      lr,#0x10               // Check if extended stack frame\n        bne      SVC_ContextSwitch\n        ldr      r1,=0xE000EF34         // FPCCR Address\n        ldr      r0,[r1]                // Load FPCCR\n        bic      r0,r0,#1               // Clear LSPACT (Lazy state)\n        str      r0,[r1]                // Store FPCCR\n        b        SVC_ContextSwitch\n        .else\n        cbz      r1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextSave1    // Branch if there is no secure context\n        push     {r1,r2,r3,lr}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r3,lr}          // Restore registers and EXC_RETURN\n        #endif\n\nSVC_ContextSave1:\n        mrs      r0,psp                 // Get PSP\n        stmdb    r0!,{r4-r11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vstmdbeq r0!,{s16-s31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        strb     lr,[r1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore1 // Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "SVC_ContextSave1:\n        mrs      r0,psp                 // Get PSP\n        stmdb    r0!,{r4-r11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vstmdbeq r0!,{s16-s31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        strb     lr,[r1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        str      r2,[r3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,SVC_ContextRestore1 // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n        #endif\n\nSVC_ContextRestore1:\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        msr      psplim,r0              // Set PSPLIM\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        orr      lr,r1,#0xFFFFFF00      // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      SVC_ContextRestore2    // Branch if secure\n        #endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n        .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n        .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        msr      psp,r0                 // Set PSP\n\nSVC_Exit:\n        bx       lr                     // Exit from handler\n\nSVC_User:\n        ldr      r2,=osRtxUserSVC       // Load address of SVC table\n        ldr      r3,[r2]                // Load SVC maximum number\n        cmp      r1,r3                  // Check SVC number range\n        bhi      SVC_Exit               // Branch if out of range\n\n        push     {r0,lr}                // Save SP and EXC_RETURN\n        ldr      r12,[r2,r1,lsl #2]     // Load address of SVC function\n        ldm      r0,{r0-r3}             // Load function parameters from stack\n        blx      r12                    // Call service function\n        pop      {r12,lr}               // Restore SP and EXC_RETURN\n        str      r0,[r12]               // Store function return value\n\n        bx       lr                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        b        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        b        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        push     {r0,lr}                // Save EXC_RETURN\n        bl       osRtxTick_Handler      // Call osRtxTick_Handler\n        pop      {r0,lr}                // Restore EXC_RETURN\n        b        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        ldr      r3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        ldm      r3,{r1,r2}             // Load osRtxInfo.thread.run: curr & next\n        cmp      r1,r2                  // Check if thread switch is required\n        it       eq\n        bxeq     lr                     // Exit when threads are the same\n\nSys_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      R0,Sys_ContextSave1    // Branch if there is no secure context\n        push     {r1,r2,r3,lr}          // Save registers and EXC_RETURN\n        bl       TZ_StoreContext_S      // Store secure context\n        pop      {r1,r2,r3,lr}          // Restore registers and EXC_RETURN\n\nSys_ContextSave1:\n        tst      lr,#0x40               // Check domain of interrupted thread\n        it       ne\n        mrsne    r0,psp                 // Get PSP\n        bne      Sys_ContextSave3       // Branch if secure\n        #endif\n\nSys_ContextSave2:\n        mrs      r0,psp                 // Get PSP\n        stmdb    r0!,{r4-r11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vstmdbeq r0!,{s16-s31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "pop      {r1,r2,r3,lr}          // Restore registers and EXC_RETURN\n\nSys_ContextSave1:\n        tst      lr,#0x40               // Check domain of interrupted thread\n        it       ne\n        mrsne    r0,psp                 // Get PSP\n        bne      Sys_ContextSave3       // Branch if secure\n        #endif\n\nSys_ContextSave2:\n        mrs      r0,psp                 // Get PSP\n        stmdb    r0!,{r4-r11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vstmdbeq r0!,{s16-s31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        str      r0,[r1,#TCB_SP_OFS]    // Store SP\n        strb     lr,[r1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        str      r2,[r3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        ldr      r0,[r2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        cbz      r0,Sys_ContextRestore1 // Branch if there is no secure context\n        push     {r2,r3}                // Save registers\n        bl       TZ_LoadContext_S       // Load secure context\n        pop      {r2,r3}                // Restore registers\n        #endif\n\nSys_ContextRestore1:\n        ldr      r0,[r2,#TCB_SM_OFS]    // Load stack memory base\n        ldrb     r1,[r2,#TCB_SF_OFS]    // Load stack frame information\n        msr      psplim,r0              // Set PSPLIM\n        ldr      r0,[r2,#TCB_SP_OFS]    // Load SP\n        orr      lr,r1,#0xFFFFFF00      // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      Sys_ContextRestore2    // Branch if secure\n        #endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n        .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        msr      psp,r0                 // Set PSP\n\nSys_ContextExit:\n        bx       lr                     // Exit from handler\n\n        .fnend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:8", "text": "#if      (DOMAIN_NS == 1)\n        tst      lr,#0x40               // Check domain of interrupted thread\n        bne      Sys_ContextRestore2    // Branch if secure\n        #endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        tst      lr,#0x10               // Check if extended stack frame\n        it       eq\n        vldmiaeq r0!,{s16-s31}          //  Restore VFP S16..S31\n        .endif\n        ldmia    r0!,{r4-r11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        msr      psp,r0                 // Set PSP\n\nSys_ContextExit:\n        bx       lr                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fb6a199fbfba849c093f16d7cd7ce2e6cc477ea4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 281, "line_end": 304}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        #endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "SVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        #endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        #endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n\nSys_ContextSave1:\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave3       // Branch if secure\n        #endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n\nSys_ContextSave1:\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave3       // Branch if secure\n        #endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        #if      (DOMAIN_NS == 1)\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        #endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        #if      (DOMAIN_NS == 1)\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        #endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:8", "text": "#if      (DOMAIN_NS == 1)\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        #endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "64710c9774b416e26403defd3d2e85aa784f61a6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/64710c9774b416e26403defd3d2e85aa784f61a6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 281, "line_end": 304}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS,   0\n        .endif\n\n        .ifndef  FPU_USED\n        #if (defined(__ARM_FP) && (__ARM_FP > 0))\n        .equ     FPU_USED,    1\n        #else\n        .equ     FPU_USED,    0\n        #endif\n        .endif\n\n        .ifndef  MVE_USED\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".ifndef  MVE_USED\n        #if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\n        .equ     MVE_USED,    1\n        #else\n        .equ     MVE_USED,    0\n        #endif\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": ".if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "SVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n\nSys_ContextSave1:\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave3       // Branch if secure\n        .endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave3       // Branch if secure\n        .endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:8", "text": "BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      (FPU_USED == 1) || (MVE_USED == 1)\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 281, "line_end": 301}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "SVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": "B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n\nSys_ContextSave1:\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave3       // Branch if secure\n        .endif\n\nSys_ContextSave2:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave3:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 289}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "302d4fb1ab650618fccc22b26d1b3618b504968e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/302d4fb1ab650618fccc22b26d1b3618b504968e/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": "B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave2       // Branch if secure\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "Sys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 287}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.S\"\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": "POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave2       // Branch if secure\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": ".endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 288}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2018 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.S\"\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.S\"\n        .syntax  unified\n\n        .ifndef  DOMAIN_NS\n        .equ     DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.S\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": "CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": "POP      {R0,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave2       // Branch if secure\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": ".endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 288}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": ".if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave2       // Branch if secure\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "Sys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 286}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.S\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "200cd4bbd7445c5471e30659b75380b17e4e7a8d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/200cd4bbd7445c5471e30659b75380b17e4e7a8d/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 64        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "94d9f69fc5b01605b94627859ed1300d3f10374f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/94d9f69fc5b01605b94627859ed1300d3f10374f/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:1", "text": "/*\n * Copyright (c) 2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:3", "text": ".if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        .endif\n\nSVC_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSVC_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:4", "text": "LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:5", "text": "LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:6", "text": ".fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        TST      LR,#0x40               // Check domain of interrupted thread\n        IT       NE\n        MRSNE    R0,PSP                 // Get PSP\n        BNE      Sys_ContextSave2       // Branch if secure\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S:7", "text": "Sys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S", "line_start": 241, "line_end": 286}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:1", "text": "/*\n * Copyright (c) 2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.s\"\n        .syntax  unified\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextSave1    // Branch if there is no secure context\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "d742a6dacb5f3bf7852f69d26174e2a53f313eb4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d742a6dacb5f3bf7852f69d26174e2a53f313eb4/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:2", "text": ".equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        .endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:3", "text": "CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        .endif\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:4", "text": "ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:5", "text": ".thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BEQ      Sys_ContextSave1       // Branch if non-secure\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:6", "text": "LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BEQ      Sys_ContextSave1       // Branch if non-secure\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:7", "text": "POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 241, "line_end": 273}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:1", "text": "/*\n * Copyright (c) 2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       ARMv8M Mainline Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_armv8mml.s\"\n        .syntax  unified\n\n        .ifndef  __FPU_USED\n        .equ     __FPU_USED,  0\n        .endif\n\n        .ifndef  __DOMAIN_NS\n        .equ     __DOMAIN_NS, 0\n        .endif\n\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SM_OFS,  48        // TCB.stack_mem offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:2", "text": ".equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n        .equ     TCB_TZM_OFS, 60        // TCB.tz_memory offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        .if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        .endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:3", "text": ".if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        .endif\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:4", "text": "LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:5", "text": ".thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler      // Call os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler        // Call os_Tick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        B        Sys_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .thumb_func\n        .type    Sys_Context, %function\n        .global  Sys_Context\n        .fnstart\n        .cantunwind\nSys_Context:\n\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BEQ      Sys_ContextSave1       // Branch if non-secure\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:6", "text": "LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BEQ      Sys_ContextSave1       // Branch if non-secure\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:7", "text": "BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "185841d898ada4a0995697ae74aa3c054edff9de", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/185841d898ada4a0995697ae74aa3c054edff9de/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 241, "line_end": 274}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:3", "text": ".if      __FPU_USED == 1\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n        .else\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n        .endif\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        .endif\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,SVC_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSVC_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n//      MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      SVC_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSVC_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:6", "text": "LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\nSys_ContextSave:\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BEQ      Sys_ContextSave1       // Branch if non-secure\n        LDR      R0,[R1,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        PUSH     {R1,R2,R3,LR}          // Save registers and EXC_RETURN\n        BL       TZ_StoreContext_S      // Store secure context\n        POP      {R1,R2,R3,LR}          // Restore registers and EXC_RETURN\n        MRS      R0,PSP                 // Get PSP\n        B        Sys_ContextSave2\n        .endif\n\nSys_ContextSave1:\n        MRS      R0,PSP                 // Get PSP\n        STMDB    R0!,{R4-R11}           // Save R4..R11\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R0!,{S16-S31}          //  Save VFP S16.S31\n        .endif\n\nSys_ContextSave2:\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STRB     LR,[R1,#TCB_SF_OFS]    // Store stack frame information\n\nSys_ContextSwitch:\n        STR      R2,[R3]                // os_Info.run: curr = next\n\nSys_ContextRestore:\n        .if      __DOMAIN_NS == 1\n        LDR      R0,[R2,#TCB_TZM_OFS]   // Load TrustZone memory identifier\n        CBZ      R0,Sys_ContextRestore1 // Branch if there is no secure context\n        PUSH     {R2,R3}                // Save registers\n        BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n//      MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s:7", "text": "BL       TZ_LoadContext_S       // Load secure context\n        POP      {R2,R3}                // Restore registers\n        .endif\n\nSys_ContextRestore1:\n        LDR      R0,[R2,#TCB_SM_OFS]    // Load stack memory base\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n//      MSR      PSPLIM,R0              // Set PSPLIM\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        .if      __DOMAIN_NS == 1\n        TST      LR,#0x40               // Check domain of interrupted thread\n        BNE      Sys_ContextRestore2    // Branch if secure\n        .endif\n\n        .if      __FPU_USED == 1\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        .endif\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n\nSys_ContextRestore2:\n        MSR      PSP,R0                 // Set PSP\n\nSys_ContextExit:\n        BX       LR                     // Exit from handler\n\n        .fnend\n        .size    Sys_Context, .-Sys_Context\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.s", "line_start": 241, "line_end": 274}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S:1", "text": ".equ     FPU_USED,    1\n        .equ     DOMAIN_NS,   1\n        .include \"../Source/GCC/irq_armv8mml.S\"\n        .end", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S:1", "text": ".equ     __FPU_USED,  1\n        .equ     DOMAIN_NS,   1\n        .include \"../Source/GCC/irq_armv8mml.S\"\n        .end", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S:1", "text": ".equ     __FPU_USED,  1\n        .equ     __DOMAIN_NS, 1\n        .include \"../Source/GCC/irq_armv8mml.S\"\n        .end", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S", "license": "Apache-2.0", "commit": "200cd4bbd7445c5471e30659b75380b17e4e7a8d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/200cd4bbd7445c5471e30659b75380b17e4e7a8d/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.S", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.s:1", "text": ".equ     __FPU_USED,  1\n        .equ     __DOMAIN_NS, 1\n        .include \"../Source/GCC/irq_armv8mml.s\"\n        .end", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.s", "license": "Apache-2.0", "commit": "014b554cf56ec7d3b3817d14c0f2da9d8c8c36be", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/014b554cf56ec7d3b3817d14c0f2da9d8c8c36be/CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml_fp_ns.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:2", "text": ".equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             // Check mode\n                MOVEQ   R1, #4                      // R1 = 4 ARM mode\n                MOVNE   R1, #2                      // R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    // ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:3", "text": "MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               // Restore stacked SPSR\n                MSR     SPSR_cxsf, R0\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                ADD     SP, SP, #8                  // Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:4", "text": "SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                SUB     LR, LR, #8                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       // DFSR\n                MRC     p15, 0, R1, c6, c0, 0       // DFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              // Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   // Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               // Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                CLREX                               // Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                PUSH    {LR}\n\n                // Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    // Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "// Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    // Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                MOV     LR, R0                      // Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      // Move SP_svc into R0\n                ADD     R0, R0, #20                 // Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R1}                        // Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               // Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                // Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                // Store them to user stack\n                STM     R1, {LR}^                   // Store LR_usr directly\n                ADD     R1, R1, #4                  // Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                // Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if defined(__ARM_NEON) && (__ARM_NEON == 1)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSave1:\n                STR     R1, [LR, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                POP     {R8-R11}                    // Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     // Compare PendSV value\n                BNE     osRtxContextRestore         // Skip post processing if not pending\n\n                MOV     R4, SP                      // Move SP_svc into R4\n                AND     R4, R4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  // Adjust stack\n\n                // Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                LDR     LR, [R8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Sync if VFP was enabled\n                #if defined(__ARM_NEON) && (__ARM_NEON == 1)\n                VLDMIA  LR!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     LR, LR, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestore1:\n                LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     LR, LR, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestore1:\n                LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7114cc64b460d6fe74d9f63481b1ccb7c086ce16", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7114cc64b460d6fe74d9f63481b1ccb7c086ce16/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 464}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "// Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    // Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                MOV     LR, R0                      // Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      // Move SP_svc into R0\n                ADD     R0, R0, #20                 // Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R1}                        // Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               // Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                // Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                // Store them to user stack\n                STM     R1, {LR}^                   // Store LR_usr directly\n                ADD     R1, R1, #4                  // Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                // Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if     __ARM_NEON == 1", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSave1:\n                STR     R1, [LR, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                POP     {R8-R11}                    // Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     // Compare PendSV value\n                BNE     osRtxContextRestore         // Skip post processing if not pending\n\n                MOV     R4, SP                      // Move SP_svc into R4\n                AND     R4, R4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  // Adjust stack\n\n                // Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                LDR     LR, [R8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Sync if VFP was enabled\n                #if     __ARM_NEON == 1\n                VLDMIA  LR!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     LR, LR, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestore1:\n                LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .file    \"irq_ca.S\"\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:2", "text": ".equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             // Check mode\n                MOVEQ   R1, #4                      // R1 = 4 ARM mode\n                MOVNE   R1, #2                      // R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    // ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:3", "text": "LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               // Restore stacked SPSR\n                MSR     SPSR_cxsf, R0\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                ADD     SP, SP, #8                  // Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:4", "text": "SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                SUB     LR, LR, #8                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       // DFSR\n                MRC     p15, 0, R1, c6, c0, 0       // DFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              // Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   // Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               // Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               // Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                CLREX                               // Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                PUSH    {LR}\n\n                // Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    // Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "PUSH    {LR}\n\n                // Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    // Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                MOV     LR, R0                      // Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      // Move SP_svc into R0\n                ADD     R0, R0, #20                 // Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R1}                        // Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               // Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                // Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                // Store them to user stack\n                STM     R1, {LR}^                   // Store LR_usr directly\n                ADD     R1, R1, #4                  // Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                // Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "LDMIB   R0!, {R5-R6}                // Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSave1:\n                STR     R1, [LR, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                POP     {R8-R11}                    // Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     // Compare PendSV value\n                BNE     osRtxContextRestore         // Skip post processing if not pending\n\n                MOV     R4, SP                      // Move SP_svc into R4\n                AND     R4, R4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  // Adjust stack\n\n                // Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "// Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                LDR     LR, [R8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Sync if VFP was enabled\n                #if     __ARM_NEON == 1\n                VLDMIA  LR!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     LR, LR, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestore1:\n                LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "LDR     R2, [LR]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     LR, LR, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestore1:\n                LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 465}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:3", "text": "LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               // Restore stacked SPSR\n                MSR     SPSR_cxsf, R0\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                ADD     SP, SP, #8                  // Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:4", "text": "SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                SUB     LR, LR, #8                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                CLREX                               // State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       // DFSR\n                MRC     p15, 0, R1, c6, c0, 0       // DFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              // Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   // Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                POP     {R0-R3}", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  // Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\nSVC_ContextCheck:\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "SVC_ContextCheck:\n                BL      osRtxContextSwitch          // Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  // Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                PUSH    {LR}\n\n                // Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    // Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            // Current deleted, skip context save", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "CMP     R1, #1\n                BNE     osRtxContextExit            // Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    // Load PendSV flag\n\n                CMP     R0, R1                      // Check if context switch is required\n                BNE     osRtxContextCheck           // Not equal, check if context save required\n                CMP     R3, #1                      // Compare IRQ_PendSV value\n                BNE     osRtxContextExit            // No post processing (and no context switch requested)\n\nosRtxContextCheck:\n                STR     R1, [R12]                   // Store run.next as run.curr\n                // R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            // Current deleted, skip context save\n\nosRtxContextSave:\n                MOV     LR, R0                      // Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      // Move SP_svc into R0\n                ADD     R0, R0, #20                 // Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R1}                        // Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               // Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                // Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                // Store them to user stack\n                STM     R1, {LR}^                   // Store LR_usr directly\n                ADD     R1, R1, #4                  // Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                // Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 // Adjust SP_usr to stacked R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "// Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R1!, {D16-D31}              // Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     // Load osRtxInfo.thread.run.curr frame info\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     // Store VFP/NEON state\n\nosRtxContextSave1:\n                STR     R1, [LR, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess:\n                // RTX IRQ post processing check\n                POP     {R8-R11}                    // Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     // Compare PendSV value\n                BNE     osRtxContextRestore         // Skip post processing if not pending\n\n                MOV     R4, SP                      // Move SP_svc into R4\n                AND     R4, R4, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  // Adjust stack\n\n                // Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  // Restore stack adjustment", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "MOV     R6, #0                      // Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec:\n                STRB    R6, [R9]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nosRtxPendCheck:\n                LDR     R8, [R11, #4]               // Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   // Store run.next as run.curr\n                LDRB    R0, [R9]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     osRtxPendExec               // Branch to PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  // Restore stack adjustment\n\nosRtxContextRestore:\n                LDR     LR, [R8, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         // VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Sync if VFP was enabled\n                #if     __ARM_NEON == 1\n                VLDMIA  LR!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     LR, LR, #8                  // Adjust sp pointer to R4\n\nosRtxContextRestore1:\n                LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "LDMIA   LR!, {R4-R11}               // Restore R4-R11\n                ADD     R12, LR, #32                // Adjust sp and save it into R12\n                PUSH    {R12}                       // Push sp onto stack\n                LDM     SP, {SP}^                   // Restore SP_usr directly\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           // Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           // Store them to SP_svc\n                LDM     LR, {LR}^                   // Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                // Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                // Store them to SP_svc\n                SUB     SP, SP, #32                 // Adjust SP_svc to stacked LR\n\nosRtxContextExit:\n                POP     {PC}                        // Return\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .file    \"irq_ca.S\"\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:2", "text": ".equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             // Check mode\n                MOVEQ   R1, #4                      // R1 = 4 ARM mode\n                MOVNE   R1, #2                      // R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    // ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:3", "text": "// Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               // Restore stacked SPSR\n                MSR     SPSR_cxsf, R0\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                ADD     SP, SP, #8                  // Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:4", "text": "SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                SUB     LR, LR, #8                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                CLREX                               // State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       // DFSR\n                MRC     p15, 0, R1, c6, c0, 0       // DFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              // Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   // Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                ADD     R2, R2, #1                  // Increment IRQ nesting level\n                STR     R2, [R3]\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]                    // Load IRQ nest level\n                CMP     R2, #1\n                BNE     IRQ_Exit                    // Nesting interrupts, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    // SVC active, exit from IRQ handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]                    // Load IRQ nest level\n                CMP     R2, #1\n                BNE     IRQ_Exit                    // Nesting interrupts, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    // SVC active, exit from IRQ handler\n\n                // RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BNE     IRQ_SwitchCheck             // Skip post processing if not pending\n\n                PUSH    {R5, R6}                    // Save user R5 and R6\n                // Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       IRQ_PendCheck\nIRQ_PendExec:\n                STRB    R6, [R4]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R4]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "IRQ_PendCheck:\n                LDRB    R0, [R4]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  // Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  // Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": ".size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\nSVC_ContextCheck:\n                ADD     R12, R12, #I_T_RUN_OFS      // Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "SVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                // R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R3}                        // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               // Save R4-R11 to user\n                POP     {R4-R8}                     // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                // Store them to user stack\n                STM     R3, {LR}^                   // Store LR_usr directly\n                ADD     R3, R3, #4                  // Adjust user sp to PC\n                POP     {R4-R6}                     // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R3!, {D16-D31}              // Save D16-D31", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "STMIA   R3!, {R4-R8}                // Store them to user stack\n                STM     R3, {LR}^                   // Store LR_usr directly\n                ADD     R3, R3, #4                  // Adjust user sp to PC\n                POP     {R4-R6}                     // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R3!, {D16-D31}              // Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     // Record VFP/NEON state\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                   // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if     __ARM_NEON == 1\n                VLDMIA  R3!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}               // Restore R4-R11\n                MOV     R12, R3                     // Move sp pointer to R12\n                ADD     R3, R3, #32                 // Adjust sp\n                PUSH    {R3}                        // Push sp onto stack\n                LDMIA   SP, {SP}^                   // Restore SP_usr\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               // Restore User R0-R3", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "ORRNE   R2, R2, #0x00F00000         // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if     __ARM_NEON == 1\n                VLDMIA  R3!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}               // Restore R4-R11\n                MOV     R12, R3                     // Move sp pointer to R12\n                ADD     R3, R3, #32                 // Adjust sp\n                PUSH    {R3}                        // Push sp onto stack\n                LDMIA   SP, {SP}^                   // Restore SP_usr\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               // Restore User R0-R3\n                LDR     LR, [R12, #12]              // Load SPSR into LR\n                MSR     SPSR_cxsf, LR               // Restore SPSR\n                ADD     R12, R12, #4                // Adjust pointer to LR\n                LDM     R12, {LR}^                  // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               // Restore LR\n                LDR     R12, [R12, #-4]             // Restore R12\n\n                MOVS    PC, LR                      // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 477}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              // Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   // Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    // Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    // Load IRQ nest level and\n                SUBS    R1, R1, #1                  // decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    // Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    // Load IRQ nest level and\n                SUBS    R1, R1, #1                  // decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    // Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    // SVC active, exit from IRQ handler\n\n                // RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BNE     IRQ_SwitchCheck             // Skip post processing if not pending\n\n                PUSH    {R5, R6}                    // Save user R5 and R6\n                // Disable OS Tick\n                LDR     R5, =osRtxInfo              // Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                MOV     R0, R5                      // Set it as function parameter\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\n                MOV     R6, #0                      // Set PendSV clear value\n                B       IRQ_PendCheck\nIRQ_PendExec:\n                STRB    R6, [R4]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R4]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R4]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n\n                // Re-enable OS Tick\n                MOV     R0, R5                      // Restore irqn as function parameter\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\nSVC_ContextCheck:\n                ADD     R12, R12, #I_T_RUN_OFS      // Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                // R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 // Equal, curr deleted, adjust current SP", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "SVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                // R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R3}                        // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               // Save R4-R11 to user\n                POP     {R4-R8}                     // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                // Store them to user stack\n                STM     R3, {LR}^                   // Store LR_usr directly\n                ADD     R3, R3, #4                  // Adjust user sp to PC\n                POP     {R4-R6}                     // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R3!, {D16-D31}              // Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     // Record VFP/NEON state\n\nosRtxContextSave1:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R3!, {D16-D31}              // Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     // Record VFP/NEON state\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                   // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if     __ARM_NEON == 1\n                VLDMIA  R3!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}               // Restore R4-R11\n                MOV     R12, R3                     // Move sp pointer to R12\n                ADD     R3, R3, #32                 // Adjust sp\n                PUSH    {R3}                        // Push sp onto stack\n                LDMIA   SP, {SP}^                   // Restore SP_usr\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               // Restore User R0-R3\n                LDR     LR, [R12, #12]              // Load SPSR into LR\n                MSR     SPSR_cxsf, LR               // Restore SPSR\n                ADD     R12, R12, #4                // Adjust pointer to LR\n                LDM     R12, {LR}^                  // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               // Restore LR\n                LDR     R12, [R12, #-4]             // Restore R12\n\n                MOVS    PC, LR                      // Return from exception\n\nosRtxContextExit:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}               // Restore R4-R11\n                MOV     R12, R3                     // Move sp pointer to R12\n                ADD     R3, R3, #32                 // Adjust sp\n                PUSH    {R3}                        // Push sp onto stack\n                LDMIA   SP, {SP}^                   // Restore SP_usr\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               // Restore User R0-R3\n                LDR     LR, [R12, #12]              // Load SPSR into LR\n                MSR     SPSR_cxsf, LR               // Restore SPSR\n                ADD     R12, R12, #4                // Adjust pointer to LR\n                LDM     R12, {LR}^                  // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               // Restore LR\n                LDR     R12, [R12, #-4]             // Restore R12\n\n                MOVS    PC, LR                      // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 467}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    // Load IRQ nest level and\n                SUBS    R1, R1, #1                  // decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    // Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             // Skip post processing when SVC active\n\n                // RTX IRQ post processing check\n                PUSH    {R5, R6}                    // Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec:\n                STRB    R6, [R5]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\nSVC_ContextCheck:\n                ADD     R12, R12, #I_T_RUN_OFS      // Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\nSVC_ContextCheck:\n                ADD     R12, R12, #I_T_RUN_OFS      // Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                // R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R3}                        // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               // Save R4-R11 to user\n                POP     {R4-R8}                     // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                // Store them to user stack\n                STM     R3, {LR}^                   // Store LR_usr directly\n                ADD     R3, R3, #4                  // Adjust user sp to PC", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "// R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                // R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R3}                        // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               // Save R4-R11 to user\n                POP     {R4-R8}                     // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                // Store them to user stack\n                STM     R3, {LR}^                   // Store LR_usr directly\n                ADD     R3, R3, #4                  // Adjust user sp to PC\n                POP     {R4-R6}                     // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               // Save D0-D15\n                #if     __ARM_NEON == 1\n                VSTMDB  R3!, {D16-D31}              // Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #if     __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     // Record VFP/NEON state\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                   // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     // Record VFP/NEON state\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                   // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP\n                ISB                                 // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if     __ARM_NEON == 1\n                VLDMIA  R3!, {D16-D31}              // Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               // Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   // Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}               // Restore R4-R11\n                MOV     R12, R3                     // Move sp pointer to R12\n                ADD     R3, R3, #32                 // Adjust sp\n                PUSH    {R3}                        // Push sp onto stack\n                LDMIA   SP, {SP}^                   // Restore SP_usr\n                ADD     SP, SP, #4                  // Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               // Restore User R0-R3\n                LDR     LR, [R12, #12]              // Load SPSR into LR\n                MSR     SPSR_cxsf, LR               // Restore SPSR\n                ADD     R12, R12, #4                // Adjust pointer to LR\n                LDM     R12, {LR}^                  // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               // Restore LR\n                LDR     R12, [R12, #-4]             // Restore R12\n\n                MOVS    PC, LR                      // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 454}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "LDM     R12, {LR}^                  // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               // Restore LR\n                LDR     R12, [R12, #-4]             // Restore R12\n\n                MOVS    PC, LR                      // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 454}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .file    \"irq_ca.S\"\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .file    \"irq_ca.S\"\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   K_STATE_RUNNING, 2           // osKernelState_t::osKernelRunning\n                .equ   I_K_STATE_OFS,   8           // osRtxInfo.kernel.state offset\n                .equ   I_TICK_IRQN_OFS, 16          // osRtxInfo.tick_irqn offset\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "d7783e47418cd396859ad818f5147fa4df927b11", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d7783e47418cd396859ad818f5147fa4df927b11/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "// R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                // R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   // Save SP_usr to current stack\n                POP     {R3}                        // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               // Save R4-R11 to user\n                POP     {R4-R8}                     // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                // Store them to user stack\n                STM     R3, {LR}^                   // Store LR_usr directly\n                ADD     R3, R3, #4                  // Adjust user sp to PC\n                POP     {R4-R6}                     // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               // Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               // Save D0-D15\n                #if __ARM_NEON == 1\n                VSTMDB  R3!, {D16-D31}              // Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #if __ARM_NEON == 1\n                ORR     R2, R2, #4                  // NEON state\n                #else\n                ORR     R2, R2, #2                  // VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     // Record VFP/NEON state\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]       // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                   // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       // Write CPACR\n                BEQ     osRtxContextRestore1        // No VFP", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "be23d592403e7b79f3d51e4e3b4e4d46df281421", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/be23d592403e7b79f3d51e4e3b4e4d46df281421/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\nSVC_ContextCheck:\n                ADD     R12, R12, #I_T_RUN_OFS      // Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                //  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "// R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                //  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC\n                POP     {R4-R6}                    // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}               // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1          // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR\n                BEQ     osRtxContextRestore1       // No VFP\n                ISB                                // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VLDMIA  R3!, {D16-D31}\n                #endif\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}              // Restore R4-R11\n                MOV     R12, R3                    // Move sp pointer to R12\n                ADD     R3, R3, #32                // Adjust sp\n                PUSH    {R3}                       // Push sp onto stack\n                LDMIA   SP, {SP}^                  // Restore SP_usr\n                ADD     SP, SP, #4                 // Adjust SP_svc\n                LDMIA   R12!, {R0-R3}              // Restore User R0-R3\n                LDR     LR, [R12, #12]             // Load SPSR into LR\n                MSR     SPSR_cxsf, LR              // Restore SPSR\n                ADD     R12, R12, #4               // Adjust pointer to LR\n                LDM     R12, {LR}^                 // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]              // Restore LR\n                LDR     R12, [R12, #-4]            // Restore R12\n\n                MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 455}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "ADD     R12, R12, #4               // Adjust pointer to LR\n                LDM     R12, {LR}^                 // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]              // Restore LR\n                LDR     R12, [R12, #-4]            // Restore R12\n\n                MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 455}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              // Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            // Retrieve interrupt ID into R0\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    // Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   // Change to SVC mode\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and alignment dummy(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                CPS     #MODE_IRQ                   // Change to IRQ mode\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   // Change to SVC mode\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and alignment dummy(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                CPS     #MODE_IRQ                   // Change to IRQ mode\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          // Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    // Load IRQ nest level and\n                SUBS    R1, R1, #1                  // decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    // Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             // Skip post processing when SVC active\n\n                // RTX IRQ post processing check\n                PUSH    {R5, R6}                    // Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec:\n                STRB    R6, [R5]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                LDR     R0, =SVC_Active\n                MOV     R1, #1", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_FuncCall                // Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  // Load OS Tick irqn\n                BLX     IRQ_Disable                 // Disable OS Tick interrupt\nSVC_FuncCall:\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "SVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   // Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        // Check osKernelRunning\n                BLT     SVC_ContextCheck            // Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] // Load OS Tick irqn\n                BLX     IRQ_Enable                  // Enable OS Tick interrupt\nSVC_ContextCheck:\n                ADD     R12, R12, #I_T_RUN_OFS      // Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                //  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                //  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC\n                POP     {R4-R6}                    // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}               // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1          // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "BNE     osRtxContextSave1          // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR\n                BEQ     osRtxContextRestore1       // No VFP\n                ISB                                // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VLDMIA  R3!, {D16-D31}\n                #endif\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}              // Restore R4-R11\n                MOV     R12, R3                    // Move sp pointer to R12\n                ADD     R3, R3, #32                // Adjust sp\n                PUSH    {R3}                       // Push sp onto stack\n                LDMIA   SP, {SP}^                  // Restore SP_usr\n                LDMIA   R12!, {R0-R3}              // Restore User R0-R3\n                LDR     LR, [R12, #12]             // Load SPSR into LR\n                MSR     SPSR_cxsf, LR              // Restore SPSR\n                ADD     R12, R12, #4               // Adjust pointer to LR\n                LDM     R12, {LR}^                 // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]              // Restore LR\n                LDR     R12, [R12, #-4]            // Restore R12\n\n                MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "osRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}              // Restore R4-R11\n                MOV     R12, R3                    // Move sp pointer to R12\n                ADD     R3, R3, #32                // Adjust sp\n                PUSH    {R3}                       // Push sp onto stack\n                LDMIA   SP, {SP}^                  // Restore SP_usr\n                LDMIA   R12!, {R0-R3}              // Restore User R0-R3\n                LDR     LR, [R12, #12]             // Load SPSR into LR\n                MSR     SPSR_cxsf, LR              // Restore SPSR\n                ADD     R12, R12, #4               // Adjust pointer to LR\n                LDM     R12, {LR}^                 // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]              // Restore LR\n                LDR     R12, [R12, #-4]            // Restore R12\n\n                MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 465}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .file    \"irq_ca.S\"\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"\n                .align   4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:2", "text": ".section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\n                .global  IRQ_PendSV\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             // Check mode\n                MOVEQ   R1, #4                      // R1 = 4 ARM mode\n                MOVNE   R1, #2                      // R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    // ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:3", "text": "MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               // Restore stacked SPSR\n                MSR     SPSR_cxsf, R0\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                ADD     SP, SP, #8                  // Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:4", "text": "PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                SUB     LR, LR, #8                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                CLREX                               // State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       // DFSR\n                MRC     p15, 0, R1, c6, c0, 0       // DFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              // Save LR_irq and SPRS_irq", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              // Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     osRtxIrqGetId               // Retrieve interrupt ID into R0\n                CMP     R0, #-1                     // Check if interrupt valid\n                BEQ     IRQ_Exit                    // Spurious interrupt if -1, exit IRQ\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    // Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     osRtxIrqGetHandler          // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   // Change to SVC mode\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                CPS     #MODE_IRQ                   // Change to IRQ mode\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CPS     #MODE_SVC                   // Change to SVC mode\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                CPS     #MODE_IRQ                   // Change to IRQ mode\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    // Load IRQ nest level and\n                SUBS    R1, R1, #1                  // decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    // Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             // Skip post processing when SVC active\n\n                // RTX IRQ post processing check\n                PUSH    {R5, R6}                    // Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec:\n                STRB    R6, [R5]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         // Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         // Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          // Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          // Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                //  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC\n                POP     {R4-R6}                    // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}               // Restore user PC and CPSR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "//  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC\n                POP     {R4-R6}                    // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}               // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1          // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR\n                BEQ     osRtxContextRestore1       // No VFP\n                ISB                                // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR\n                BEQ     osRtxContextRestore1       // No VFP\n                ISB                                // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VLDMIA  R3!, {D16-D31}\n                #endif\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}              // Restore R4-R11\n                MOV     R12, R3                    // Move sp pointer to R12\n                ADD     R3, R3, #32                // Adjust sp\n                PUSH    {R3}                       // Push sp onto stack\n                LDMIA   SP, {SP}^                  // Restore SP_usr\n                LDMIA   R12!, {R0-R3}              // Restore User R0-R3\n                LDR     LR, [R12, #12]             // Load SPSR into LR\n                MSR     SPSR_cxsf, LR              // Restore SPSR\n                ADD     R12, R12, #4               // Adjust pointer to LR\n                LDM     R12, {LR}^                 // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]              // Restore LR\n                LDR     R12, [R12, #-4]            // Restore R12\n\n                MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 451}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:12", "text": "MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8eb4e2b74f6480a32aaca8cbfa5ab4774ac0c964/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 441, "line_end": 451}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n                .file    \"irq_ca.S\"\n                .syntax  unified\n\n                .equ   MODE_FIQ,        0x11\n                .equ   MODE_IRQ,        0x12\n                .equ   MODE_SVC,        0x13\n                .equ   MODE_ABT,        0x17\n                .equ   MODE_UND,        0x1B\n\n                .equ   CPSR_BIT_T,      0x20\n\n                .equ   I_T_RUN_OFS,     20          // osRtxInfo.thread.run offset\n                .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n                .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n                .section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:2", "text": ".section \".rodata\"\n                .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n                .byte    0\n\n                .section \".data\"\nIRQ_NestLevel:\n                .word    0                          // IRQ nesting level counter\nIRQ_PendSV:\n                .byte    0                          // Pending SVC flag\nSVC_Active:\n                .byte    0                          // SVC handler execution active flag\n\n                .arm\n                .section \".text\"\n                .align   4\n\n\n                .type    Undef_Handler, %function\n                .global  Undef_Handler\n                .fnstart\n                .cantunwind\nUndef_Handler:\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             // Check mode\n                MOVEQ   R1, #4                      // R1 = 4 ARM mode\n                MOVNE   R1, #2                      // R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    // ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                // Thumb instruction\n                // Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:3", "text": "CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n                // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                LDR     LR, [SP, #24]               // Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               // Restore stacked SPSR\n                MSR     SPSR_cxsf, R0\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                ADD     SP, SP, #8                  // Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n                .fnend\n                .size    Undef_Handler, .-Undef_Handler\n\n\n                .type    PAbt_Handler, %function\n                .global  PAbt_Handler\n                .fnstart\n                .cantunwind\nPAbt_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:4", "text": "MRC     p15, 0, R0, c5, c0, 1       // IFSR\n                MRC     p15, 0, R1, c6, c0, 2       // IFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stack APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    PAbt_Handler, .-PAbt_Handler\n\n\n                .type    DAbt_Handler, %function\n                .global  DAbt_Handler\n                .fnstart\n                .cantunwind\nDAbt_Handler:\n                SUB     LR, LR, #8                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              // Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                // Save APCS corruptible registers to ABT mode stack\n                CLREX                               // State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       // DFSR\n                MRC     p15, 0, R1, c6, c0, 0       // DFAR\n\n                MOV     R2, LR                      // Set LR to third argument\n\n                AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 // Adjust stack\n                PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              // Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 // Unadjust stack\n\n                POP     {R0-R4, R12}                // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    DAbt_Handler, .-DAbt_Handler\n\n\n                .type    IRQ_Handler, %function\n                .global  IRQ_Handler\n                .fnstart\n                .cantunwind\nIRQ_Handler:\n\n                SUB     LR, LR, #4                  // Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              // Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and user data(R4)\n\n                BLX     osRtxIrqGetId               // Retrieve interrupt ID into R0\n                CMP     R0, #-1                     // Check if interrupt valid\n                BEQ     IRQ_Exit                    // Spurious interrupt if -1, exit IRQ\n                MOV     R4, R0                      // Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    // Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     osRtxIrqGetHandler          // Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      // Check if handler address is 0\n                BEQ     IRQ_End                     // If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   // Change to SVC mode\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                CPS     #MODE_IRQ                   // Change to IRQ mode\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "CPS     #MODE_SVC                   // Change to SVC mode\n\n                MOV     R3, SP                      // Move SP into R3\n                AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  // Adjust stack\n                PUSH    {R3, R4}                    // Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R0                          // Call IRQ handler\n                CPSID   i                           // Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                CPS     #MODE_IRQ                   // Change to IRQ mode\n\nIRQ_End:\n                MOV     R0, R4                      // Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    // Load IRQ nest level and\n                SUBS    R1, R1, #1                  // decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    // Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    // Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             // Skip post processing when SVC active\n\n                // RTX IRQ post processing check\n                PUSH    {R5, R6}                    // Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             // Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec:\n                STRB    R6, [R5]                    // Clear PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "CPSID   i                           // Disable interrupts\nIRQ_PendCheck:\n                LDRB    R0, [R5]                    // Load PendSV flag\n                CMP     R0, #1                      // Compare PendSV value\n                BEQ     IRQ_PendExec                // Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    // Restore user R5 and R6\n\nIRQ_SwitchCheck:\n                // RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit:\n                POP     {R3, R4}                    // Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  // Unadjust stack\n\n                POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n                RFEFD   SP!                         // Return from IRQ handler\n\n                .fnend\n                .size    IRQ_Handler, .-IRQ_Handler\n\n\n                .type    SVC_Handler, %function\n                .global  SVC_Handler\n                .fnstart\n                .cantunwind\nSVC_Handler:\n\n                SRSFD   SP!, #MODE_SVC              // Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   // Load SPSR\n                TST     R12, #CPSR_BIT_T            // Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         // Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "LDRHNE  R12, [LR,#-2]               // Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           //        extract SVC number\n                LDREQ   R12, [LR,#-4]               // ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       //        extract SVC number\n                CMP     R12, #0                     // Compare SVC number\n                BNE     SVC_User                    // Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         // Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    // Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   // Reload R12 from stack\n\n                CPSIE   i                           // Re-enable interrupts\n                BLX     R12                         // Branch to SVC function\n                CPSID   i                           // Disable interrupts\n\n                SUB     SP, SP, #4                  // Adjust SP\n                STM     SP, {SP}^                   // Store SP_usr onto stack\n                POP     {R12}                       // Pop SP_usr into R12\n                SUB     R12, R12, #16               // Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                // Load return values from SVC function\n                PUSH    {R0-R3}                     // Push return values to stack\n\n                PUSH    {R4, R5}                    // Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             // Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec:\n                STRB    R5, [R4]                    // Clear IRQ_PendSV flag\n                CPSIE   i                           // Re-enable interrupts\n                BLX     osRtxPendSV_Handler         // Post process pending objects\n                CPSID   i                           // Disable interrupts\nSVC_PendCheck:\n                LDRB    R0, [R4]                    // Load IRQ_PendSV flag\n                CMP     R0, #1                      // Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                // Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          // Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "POP     {R4, R5}                    // Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    // Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          // Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               // Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      // Check if context switch is required\n                BEQ     osRtxContextExit            // Exit if curr and next are equal\n                B       osRtxContextSwitch          // Continue in context switcher\n\nSVC_User:\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            // Load address of SVC table\n                LDR     R4,[R5]                     // Load SVC maximum number\n                CMP     R12,R4                      // Check SVC number range\n                BHI     SVC_Done                    // Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         // Load SVC Function Address\n                BLX     R12                         // Call SVC Function\n\nSVC_Done:\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         // Return from exception\n\n                .fnend\n                .size    SVC_Handler, .-SVC_Handler\n\n\n                .type    osRtxContextSwitch, %function\n                .global  osRtxContextSwitch\n                .fnstart\n                .cantunwind\nosRtxContextSwitch:\n\n                // R0  = osRtxInfo.thread.run.curr\n                // R1  = osRtxInfo.thread.run.next\n                //  R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC\n                POP     {R4-R6}                    // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}               // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                // Adjust user sp to R4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "CMP     R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                // Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                  // Save SP_usr to current stack\n                POP     {R3}                       // Pop SP_usr into R3\n\n                SUB     R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}              // Save R4-R11 to user\n                POP     {R4-R8}                    // Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}               // Store them to user stack\n                STM     R3, {LR}^                  // Store LR_usr directly\n                ADD     R3, R3, #4                 // Adjust user sp to PC\n                POP     {R4-R6}                    // Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}               // Restore user PC and CPSR\n\n                SUB     R3, R3, #64                // Adjust user sp to R4\n\n                // Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1          // Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR\n                BEQ     osRtxContextRestore1       // No VFP\n                ISB                                // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VLDMIA  R3!, {D16-D31}", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "STRB    R2, [R0, #TCB_SP_FRAME]\n                #endif\n\nosRtxContextSave1:\n                STR     R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n                STR     R1, [R12]                  // Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6               // Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2      // Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2      // Write CPACR\n                BEQ     osRtxContextRestore1       // No VFP\n                ISB                                // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n                VLDMIA  R3!, {D16-D31}\n                #endif\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1:\n                LDMIA   R3!, {R4-R11}              // Restore R4-R11\n                MOV     R12, R3                    // Move sp pointer to R12\n                ADD     R3, R3, #32                // Adjust sp\n                PUSH    {R3}                       // Push sp onto stack\n                LDMIA   SP, {SP}^                  // Restore SP_usr\n                LDMIA   R12!, {R0-R3}              // Restore User R0-R3\n                LDR     LR, [R12, #12]             // Load SPSR into LR\n                MSR     SPSR_cxsf, LR              // Restore SPSR\n                ADD     R12, R12, #4               // Adjust pointer to LR\n                LDM     R12, {LR}^                 // Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]              // Restore LR\n                LDR     R12, [R12, #-4]            // Restore R12\n\n                MOVS    PC, LR                     // Return from exception\n\nosRtxContextExit:\n                POP     {R0-R3, R12, LR}           // Restore stacked APCS registers\n                RFEFD   SP!                        // Return from exception\n\n                .fnend\n                .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n                .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 450}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-A Exception handlers (using GIC)\n *\n * -----------------------------------------------------------------------------\n */\n\n        .file    \"irq_ca.S\"\n        .syntax  unified\n\n        .equ   ICDABR0_OFFSET,  0x00000300  // GICD: Active Bit Register 0 offset\n        .equ   ICDIPR0_OFFSET,  0x00000400  // GICD: Interrupt Priority Register 0 offset\n        .equ   ICCIAR_OFFSET,   0x0000000C  // GICI: Interrupt Acknowledge Register offset\n        .equ   ICCEOIR_OFFSET,  0x00000010  // GICI: End of Interrupt Register offset\n        .equ   ICCHPIR_OFFSET,  0x00000018  // GICI: Highest Pending Interrupt Register offset\n\n        .equ   MODE_FIQ,        0x11\n        .equ   MODE_IRQ,        0x12\n        .equ   MODE_SVC,        0x13\n        .equ   MODE_ABT,        0x17\n        .equ   MODE_UND,        0x1B\n\n        .equ   CPSR_BIT_T,      0x20\n\n        .equ   I_T_RUN_OFS,     28          // osRtxInfo.thread.run offset\n        .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n        .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n        .section \".rodata\"\n        .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n       .section \".data\"\nID0_Active:\n        .byte    4                          // Flag used to workaround GIC 390 errata 733075\n\n        .arm\n        .section \".text\"\n        .align   4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:2", "text": ".equ   CPSR_BIT_T,      0x20\n\n        .equ   I_T_RUN_OFS,     28          // osRtxInfo.thread.run offset\n        .equ   TCB_SP_FRAME,    34          // osRtxThread_t.stack_frame offset\n        .equ   TCB_SP_OFS,      56          // osRtxThread_t.sp offset\n\n\n        .section \".rodata\"\n        .global  irqRtxLib                  // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n       .section \".data\"\nID0_Active:\n        .byte    4                          // Flag used to workaround GIC 390 errata 733075\n\n        .arm\n        .section \".text\"\n        .align   4\n\n\n        .type    Undef_Handler, %function\n        .global  Undef_Handler\n        .fnstart\n        .cantunwind\nUndef_Handler:\n\n        SRSFD   SP!, #MODE_UND\n        PUSH    {R0-R4, R12}                // Save APCS corruptible registers to UND mode stack\n\n        MRS     R0, SPSR\n        TST     R0, #CPSR_BIT_T             // Check mode\n        MOVEQ   R1, #4                      // R1 = 4 ARM mode\n        MOVNE   R1, #2                      // R1 = 2 Thumb mode\n        SUB     R0, LR, R1\n        LDREQ   R0, [R0]                    // ARM mode - R0 points to offending instruction\n        BEQ     Undef_Cont\n\n        // Thumb instruction\n        // Determine if it is a 32-bit Thumb instruction\n        LDRH    R0, [R0]\n        MOV     R2, #0x1C\n        CMP     R2, R0, LSR #11\n        BHS     Undef_Cont                  // 16-bit Thumb instruction\n\n        // 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n        LDRH    R2, [LR]\n        ORR     R0, R2, R0, LSL #16\nUndef_Cont:\n        MOV     R2, LR                      // Set LR to third argument\n\n        AND     R12, SP, #4                 // Ensure stack is 8-byte aligned\n        SUB     SP, SP, R12                 // Adjust stack\n        PUSH    {R12, LR}                   // Store stack adjustment and dummy LR\n\n        // R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n        BL      CUndefHandler\n\n        POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n        ADD     SP, SP, R12                 // Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:5", "text": "BL      CDAbtHandler\n\n        POP     {R12, LR}                   // Get stack adjustment & discard dummy LR\n        ADD     SP, SP, R12                 // Unadjust stack\n\n        POP     {R0-R4, R12}                // Restore stacked APCS registers\n        RFEFD   SP!                         // Return from exception\n\n        .fnend\n        .size    DAbt_Handler, .-DAbt_Handler\n\n\n        .type    IRQ_Handler, %function\n        .global  IRQ_Handler\n        .fnstart\n        .cantunwind\nIRQ_Handler:\n\n        SUB     LR, LR, #4                  // Pre-adjust LR\n        SRSFD   SP!, #MODE_IRQ              // Save LR_irq and SPRS_irq\n        PUSH    {R0-R3, R12, LR}            // Save APCS corruptible registers\n\n        // Identify and acknowledge interrupt\n        LDR     R1, =irqRtxGicBase;\n        LDR     R1, [R1, #4]\n        LDR     R0, [R1, #ICCHPIR_OFFSET]   // Dummy Read GICI ICCHPIR to avoid GIC 390 errata 801120\n        LDR     R0, [R1, #ICCIAR_OFFSET]    // Read GICI ICCIAR\n        DSB                                 // Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n        // Workaround GIC 390 errata 733075 - see GIC-390_Errata_Notice_v6.pdf dated 09-Jul-2014\n        // The following workaround code is for a single-core system.  It would be different in a multi-core system.\n        // If the ID is 0 or 0x3FE or 0x3FF, then the GIC CPU interface may be locked-up so unlock it, otherwise service the interrupt as normal\n        // Special IDs 1020=0x3FC and 1021=0x3FD are reserved values in GICv1 and GICv2 so will not occur here\n        CMP     R0, #0\n        BEQ     IRQ_Unlock\n        MOVW    R2, #0x3FE\n        CMP     R0, R2\n        BLT     IRQ_Normal\nIRQ_Unlock:\n        // Unlock the CPU interface with a dummy write to ICDIPR0\n        LDR     R2, =irqRtxGicBase\n        LDR     R2, [R2]\n        LDR     R3, [R2, #ICDIPR0_OFFSET]\n        STR     R3, [R2, #ICDIPR0_OFFSET]\n        DSB                                 // Ensure the write completes before continuing\n\n        // If the ID is 0 and it is active and has not been seen before, then service it as normal,\n        // otherwise the interrupt should be treated as spurious and not serviced.\n        CMP     R0, #0\n        BNE     IRQ_Exit                    // Not 0, so spurious\n        LDR     R3, [R2, #ICDABR0_OFFSET]   // Get the interrupt state\n        TST     R3, #1\n        BEQ     IRQ_Exit                    // Not active, so spurious\n        LDR     R2, =ID0_Active\n        LDRB    R3, [R2]\n        CMP     R3, #1\n        BEQ     IRQ_Exit                    // Seen it before, so spurious\n\n        // Record that ID0 has now been seen, then service it as normal", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:6", "text": "// Unlock the CPU interface with a dummy write to ICDIPR0\n        LDR     R2, =irqRtxGicBase\n        LDR     R2, [R2]\n        LDR     R3, [R2, #ICDIPR0_OFFSET]\n        STR     R3, [R2, #ICDIPR0_OFFSET]\n        DSB                                 // Ensure the write completes before continuing\n\n        // If the ID is 0 and it is active and has not been seen before, then service it as normal,\n        // otherwise the interrupt should be treated as spurious and not serviced.\n        CMP     R0, #0\n        BNE     IRQ_Exit                    // Not 0, so spurious\n        LDR     R3, [R2, #ICDABR0_OFFSET]   // Get the interrupt state\n        TST     R3, #1\n        BEQ     IRQ_Exit                    // Not active, so spurious\n        LDR     R2, =ID0_Active\n        LDRB    R3, [R2]\n        CMP     R3, #1\n        BEQ     IRQ_Exit                    // Seen it before, so spurious\n\n        // Record that ID0 has now been seen, then service it as normal\n        MOV     R3, #1\n        STRB    R3, [R2]\n        // End of Workaround GIC 390 errata 733075\n\nIRQ_Normal:\n        LDR     R2, =IRQCount               // Read number of entries in IRQ handler table\n        LDR     R2, [R2]\n        CMP     R0, R2                      // Check if IRQ ID is within range\n        MOV     R2, #0\n        BHS     IRQ_End                     // Out of range, return as normal\n        LDR     R2, =IRQTable               // Read IRQ handler address from IRQ table\n        LDR     R2, [R2, R0, LSL #2]\n        CMP     R2, #0                      // Check if handler address is 0\n        BEQ     IRQ_End                     // If 0, end interrupt and return\n        PUSH    {R0, R1}                    // Store IRQ ID and GIC CPU Interface base address\n\n        CPS     #MODE_SVC                   // Change to SVC mode\n\n        MOV     R3, SP                      // Move SP into R3\n        AND     R3, R3, #4                  // Get stack adjustment to ensure 8-byte alignment\n        SUB     SP, SP, R3                  // Adjust stack\n        PUSH    {R2, R3, R12, LR}           // Store handler address(R2), stack adjustment(R3) and user R12, LR\n\n        CPSIE   i                           // Re-enable interrupts\n        BLX     R2                          // Call IRQ handler\n        CPSID   i                           // Disable interrupts\n\n        POP     {R2, R3, R12, LR}           // Restore handler address(R2), stack adjustment(R3) and user R12, LR\n        ADD     SP, SP, R3                  // Unadjust stack\n\n        CPS     #MODE_IRQ                   // Change to IRQ mode\n        POP     {R0, R1}                    // Restore IRQ ID and GIC CPU Interface base address\n        DSB                                 // Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End:\n        // R0 =IRQ ID, R1 =GICI_BASE\n        // EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n        STR     R0, [R1, #ICCEOIR_OFFSET]   // Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n        // If it was ID0, clear the seen flag, otherwise return as normal\n        CMP     R0, #0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "SUB     SP, SP, R3                  // Adjust stack\n        PUSH    {R2, R3, R12, LR}           // Store handler address(R2), stack adjustment(R3) and user R12, LR\n\n        CPSIE   i                           // Re-enable interrupts\n        BLX     R2                          // Call IRQ handler\n        CPSID   i                           // Disable interrupts\n\n        POP     {R2, R3, R12, LR}           // Restore handler address(R2), stack adjustment(R3) and user R12, LR\n        ADD     SP, SP, R3                  // Unadjust stack\n\n        CPS     #MODE_IRQ                   // Change to IRQ mode\n        POP     {R0, R1}                    // Restore IRQ ID and GIC CPU Interface base address\n        DSB                                 // Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End:\n        // R0 =IRQ ID, R1 =GICI_BASE\n        // EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n        STR     R0, [R1, #ICCEOIR_OFFSET]   // Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n        // If it was ID0, clear the seen flag, otherwise return as normal\n        CMP     R0, #0\n        LDREQ   R1, =ID0_Active\n        STRBEQ  R0, [R1]                    // Clear the seen flag, using R0 (which is 0), to save loading another register\n\n        LDR     R3, =osRtxIrqHandler        // Load osRtxIrqHandler function address\n        CMP     R2, R3                      // If is the same ass current IRQ handler\n        BEQ     osRtxContextSwitch          // Call context switcher\n\nIRQ_Exit:\n        POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n        RFEFD   SP!                         // Return from IRQ handler\n\n        .fnend\n        .size    IRQ_Handler, .-IRQ_Handler\n\n\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        SRSFD    SP!, #MODE_SVC             // Store SPSR_svc and LR_svc onto SVC stack\n        PUSH     {R12, LR}\n\n        MRS      R12, SPSR                  // Load SPSR\n        TST      R12, #CPSR_BIT_T           // Thumb bit set?\n        LDRHNE   R12, [LR,#-2]              // Thumb: load halfword\n        BICNE    R12, R12, #0xFF00          //        extract SVC number\n        LDREQ    R12, [LR,#-4]              // ARM:   load word\n        BICEQ    R12, R12, #0xFF000000      //        extract SVC number\n        CMP      R12, #0                    // Compare SVC number\n        BNE      SVC_User                   // Branch if User SVC\n\n        PUSH     {R0-R3}\n        BLX      osRtxIrqLock               // Disable RTX interrupt (timer, PendSV)\n        POP      {R0-R3}\n\n        LDR      R12, [SP]                  // Reload R12 from stack\n\n        CPSIE    i                          // Re-enable interrupts", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "SRSFD    SP!, #MODE_SVC             // Store SPSR_svc and LR_svc onto SVC stack\n        PUSH     {R12, LR}\n\n        MRS      R12, SPSR                  // Load SPSR\n        TST      R12, #CPSR_BIT_T           // Thumb bit set?\n        LDRHNE   R12, [LR,#-2]              // Thumb: load halfword\n        BICNE    R12, R12, #0xFF00          //        extract SVC number\n        LDREQ    R12, [LR,#-4]              // ARM:   load word\n        BICEQ    R12, R12, #0xFF000000      //        extract SVC number\n        CMP      R12, #0                    // Compare SVC number\n        BNE      SVC_User                   // Branch if User SVC\n\n        PUSH     {R0-R3}\n        BLX      osRtxIrqLock               // Disable RTX interrupt (timer, PendSV)\n        POP      {R0-R3}\n\n        LDR      R12, [SP]                  // Reload R12 from stack\n\n        CPSIE    i                          // Re-enable interrupts\n        BLX      R12                        // Branch to SVC function\n        CPSID    i                          // Disable interrupts\n\n        SUB      SP, SP, #4                 // Adjust SP\n        STM      SP, {SP}^                  // Store SP_usr onto stack\n        POP      {R12}                      // Pop SP_usr into R12\n        SUB      R12, R12, #16              // Adjust pointer to SP_usr\n        LDMDB    R12, {R2,R3}               // Load return values from SVC function\n        PUSH     {R0-R3}                    // Push return values to stack\n\n        BLX      osRtxIrqUnlock             // Enable RTX interrupt (timer, PendSV)\n        B        osRtxContextSwitch         // Continue in context switcher\n\nSVC_User:\n        PUSH     {R4, R5}\n        LDR      R5,=osRtxUserSVC           // Load address of SVC table\n        LDR      R4,[R5]                    // Load SVC maximum number\n        CMP      R12,R4                     // Check SVC number range\n        BHI      SVC_Done                   // Branch if out of range\n\n        LDR      R12,[R5,R12,LSL #2]        // Load SVC Function Address\n        BLX      R12                        // Call SVC Function\n\nSVC_Done:\n        POP      {R4, R5, R12, LR}\n        RFEFD    SP!                        // Return from exception\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .type    osRtxContextSwitch, %function\n        .global  osRtxContextSwitch\n        .fnstart\n        .cantunwind\nosRtxContextSwitch:\n\n        LDR      R12,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R12, {R0, R1}              // Load osRtxInfo.thread.run: curr & next\n        CMP      R0, R1                     // Check if context switch is required", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "LDR      R12,[R5,R12,LSL #2]        // Load SVC Function Address\n        BLX      R12                        // Call SVC Function\n\nSVC_Done:\n        POP      {R4, R5, R12, LR}\n        RFEFD    SP!                        // Return from exception\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .type    osRtxContextSwitch, %function\n        .global  osRtxContextSwitch\n        .fnstart\n        .cantunwind\nosRtxContextSwitch:\n\n        LDR      R12,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R12, {R0, R1}              // Load osRtxInfo.thread.run: curr & next\n        CMP      R0, R1                     // Check if context switch is required\n        BEQ      osRtxContextExit           // Exit if curr and next are equal\n\n        CMP      R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n        ADDEQ    SP, SP, #32                // Equal, curr deleted, adjust current SP\n        BEQ      osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n        SUB      SP, SP, #4\n        STM      SP, {SP}^                  // Save SP_usr to current stack\n        POP      {R3}                       // Pop SP_usr into R3\n\n        SUB      R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n        STMIA    R3!, {R4-R11}              // Save R4-R11 to user\n        POP      {R4-R8}                    // Pop current R0-R12 into R4-R8\n        STMIA    R3!, {R4-R8}               // Store them to user stack\n        STM      R3, {LR}^                  // Store LR_usr directly\n        ADD      R3, R3, #4                 // Adjust user sp to PC\n        POP      {R4-R6}                    // Pop current LR, PC, CPSR\n        STMIA    R3!, {R5-R6}               // Restore user PC and CPSR\n\n        SUB      R3, R3, #64                // Adjust user sp to R4\n\n        // Check if VFP state need to be saved\n        MRC      p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n        AND      R2, R2, #0x00F00000\n        CMP      R2, #0x00F00000\n        BNE      osRtxContextSave1          // Continue, no VFP\n\n        VMRS     R2, FPSCR\n        STMDB    R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n        #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n        VSTMDB   R3!, {D0-D15}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n        ORR      R2, R2, #2\n        STRB     R2, [R0, #TCB_SP_FRAME]\n        #endif\n        #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n        VSTMDB   R3!, {D0-D15}\n        VSTMDB   R3!, {D16-D31}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "SUB      R3, R3, #64                // Adjust user sp to R4\n\n        // Check if VFP state need to be saved\n        MRC      p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n        AND      R2, R2, #0x00F00000\n        CMP      R2, #0x00F00000\n        BNE      osRtxContextSave1          // Continue, no VFP\n\n        VMRS     R2, FPSCR\n        STMDB    R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n        #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16\n        VSTMDB   R3!, {D0-D15}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n        ORR      R2, R2, #2\n        STRB     R2, [R0, #TCB_SP_FRAME]\n        #endif\n        #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n        VSTMDB   R3!, {D0-D15}\n        VSTMDB   R3!, {D16-D31}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n        ORR      R2, R2, #4\n        STRB     R2, [R0, #TCB_SP_FRAME]\n        #endif\n\nosRtxContextSave1:\n        STR      R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n        STR      R1, [R12]                  // Store run.next to run.curr\n        LDR      R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n        LDRB     R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n        ANDS     R2, R2, #0x6               // Check stack frame for VFP context\n        MRC      p15, 0, R2, c1, c0, 2      // Read CPACR\n        ANDEQ    R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n        ORRNE    R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n        MCR      p15, 0, R2, c1, c0, 2      // Write CPACR\n        BEQ      osRtxContextRestore1       // No VFP\n        ISB                                 // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n        #if TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32\n        VLDMIA   R3!, {D16-D31}\n        #endif\n        VLDMIA   R3!, {D0-D15}\n        LDR      R2, [R3]\n        VMSR     FPSCR, R2\n        ADD      R3, R3, #8\n\nosRtxContextRestore1:\n        LDMIA    R3!, {R4-R11}              // Restore R4-R11\n        MOV      R12, R3                    // Move sp pointer to R12\n        ADD      R3, R3, #32                // Adjust sp\n        PUSH     {R3}                       // Push sp onto stack\n        LDMIA    SP, {SP}^                  // Restore SP_usr\n        LDMIA    R12!, {R0-R3}              // Restore User R0-R3\n        LDR      LR, [R12, #12]             // Load SPSR into LR\n        MSR      SPSR_cxsf, LR              // Restore SPSR\n        ADD      R12, R12, #4               // Adjust pointer to LR\n        LDM      R12, {LR}^                 // Restore LR_usr directly into LR\n        LDR      LR, [R12, #4]              // Restore LR\n        LDR      R12, [R12, #-4]            // Restore R12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "VLDMIA   R3!, {D16-D31}\n        #endif\n        VLDMIA   R3!, {D0-D15}\n        LDR      R2, [R3]\n        VMSR     FPSCR, R2\n        ADD      R3, R3, #8\n\nosRtxContextRestore1:\n        LDMIA    R3!, {R4-R11}              // Restore R4-R11\n        MOV      R12, R3                    // Move sp pointer to R12\n        ADD      R3, R3, #32                // Adjust sp\n        PUSH     {R3}                       // Push sp onto stack\n        LDMIA    SP, {SP}^                  // Restore SP_usr\n        LDMIA    R12!, {R0-R3}              // Restore User R0-R3\n        LDR      LR, [R12, #12]             // Load SPSR into LR\n        MSR      SPSR_cxsf, LR              // Restore SPSR\n        ADD      R12, R12, #4               // Adjust pointer to LR\n        LDM      R12, {LR}^                 // Restore LR_usr directly into LR\n        LDR      LR, [R12, #4]              // Restore LR\n        LDR      R12, [R12, #-4]            // Restore R12\n\n        MOVS     PC, LR                     // Return from exception\n\nosRtxContextExit:\n        POP      {R0-R3, R12, LR}           // Restore stacked APCS registers\n        RFEFD    SP!                        // Return from exception\n\n        .fnend\n        .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n        .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "1183f2d0ad5ed67e827f23c677cf677d1f9a600b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1183f2d0ad5ed67e827f23c677cf677d1f9a600b/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 431}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:9", "text": "LDR      R12,[R5,R12,LSL #2]        // Load SVC Function Address\n        BLX      R12                        // Call SVC Function\n\nSVC_Done:\n        POP      {R4, R5, R12, LR}\n        RFEFD    SP!                        // Return from exception\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .type    osRtxContextSwitch, %function\n        .global  osRtxContextSwitch\n        .fnstart\n        .cantunwind\nosRtxContextSwitch:\n\n        LDR      R12,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R12, {R0, R1}              // Load osRtxInfo.thread.run: curr & next\n        CMP      R0, R1                     // Check if context switch is required\n        BEQ      osRtxContextExit           // Exit if curr and next are equal\n\n        CMP      R0, #0                     // Is osRtxInfo.thread.run.curr == 0\n        ADDEQ    SP, SP, #32                // Equal, curr deleted, adjust current SP\n        BEQ      osRtxContextRestore        // Restore context, run.curr = run.next;\n\nosRtxContextSave:\n        SUB      SP, SP, #4\n        STM      SP, {SP}^                  // Save SP_usr to current stack\n        POP      {R3}                       // Pop SP_usr into R3\n\n        SUB      R3, R3, #64                // Adjust user sp to end of basic frame (R4)\n        STMIA    R3!, {R4-R11}              // Save R4-R11 to user\n        POP      {R4-R8}                    // Pop current R0-R12 into R4-R8\n        STMIA    R3!, {R4-R8}               // Store them to user stack\n        STM      R3, {LR}^                  // Store LR_usr directly\n        ADD      R3, R3, #4                 // Adjust user sp to PC\n        POP      {R4-R6}                    // Pop current LR, PC, CPSR\n        STMIA    R3!, {R5-R6}               // Restore user PC and CPSR\n\n        SUB      R3, R3, #64                // Adjust user sp to R4\n\n        // Check if VFP state need to be saved\n        MRC      p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n        AND      R2, R2, #0x00F00000\n        CMP      R2, #0x00F00000\n        BNE      osRtxContextSave1          // Continue, no VFP\n\n        VMRS     R2, FPSCR\n        STMDB    R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n//        .if {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n        VSTMDB   R3!, {D0-D15}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n        ORR      R2, R2, #2\n        STRB     R2, [R0, #TCB_SP_FRAME]\n//        .endif\n//        .if {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n        VSTMDB   R3!, {D0-D15}\n        VSTMDB   R3!, {D16-D31}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:10", "text": "SUB      R3, R3, #64                // Adjust user sp to R4\n\n        // Check if VFP state need to be saved\n        MRC      p15, 0, R2, c1, c0, 2      // VFP/NEON access enabled? (CPACR)\n        AND      R2, R2, #0x00F00000\n        CMP      R2, #0x00F00000\n        BNE      osRtxContextSave1          // Continue, no VFP\n\n        VMRS     R2, FPSCR\n        STMDB    R3!, {R2,R12}              // Push FPSCR, maintain 8-byte alignment\n//        .if {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n        VSTMDB   R3!, {D0-D15}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that VFP/D16 state is stacked\n        ORR      R2, R2, #2\n        STRB     R2, [R0, #TCB_SP_FRAME]\n//        .endif\n//        .if {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n        VSTMDB   R3!, {D0-D15}\n        VSTMDB   R3!, {D16-D31}\n        LDRB     R2, [R0, #TCB_SP_FRAME]    // Record in TCB that NEON/D32 state is stacked\n        ORR      R2, R2, #4\n        STRB     R2, [R0, #TCB_SP_FRAME]\n//        .endif\n\nosRtxContextSave1:\n        STR      R3, [R0, #TCB_SP_OFS]      // Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore:\n        STR      R1, [R12]                  // Store run.next to run.curr\n        LDR      R3, [R1, #TCB_SP_OFS]      // Load next osRtxThread_t.sp\n        LDRB     R2, [R1, #TCB_SP_FRAME]    // Load next osRtxThread_t.stack_frame\n\n        ANDS     R2, R2, #0x6               // Check stack frame for VFP context\n        MRC      p15, 0, R2, c1, c0, 2      // Read CPACR\n        ANDEQ    R2, R2, #0xFF0FFFFF        // Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n        ORRNE    R2, R2, #0x00F00000        // Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n        MCR      p15, 0, R2, c1, c0, 2      // Write CPACR\n        BEQ      osRtxContextRestore1       // No VFP\n        ISB                                 // Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n//        .if {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n        VLDMIA   R3!, {D16-D31}\n//        .endif\n        VLDMIA   R3!, {D0-D15}\n        LDR      R2, [R3]\n        VMSR     FPSCR, R2\n        ADD      R3, R3, #8\n\nosRtxContextRestore1:\n        LDMIA    R3!, {R4-R11}              // Restore R4-R11\n        MOV      R12, R3                    // Move sp pointer to R12\n        ADD      R3, R3, #32                // Adjust sp\n        PUSH     {R3}                       // Push sp onto stack\n        LDMIA    SP, {SP}^                  // Restore SP_usr\n        LDMIA    R12!, {R0-R3}              // Restore User R0-R3\n        LDR      LR, [R12, #12]             // Load SPSR into LR\n        MSR      SPSR_cxsf, LR              // Restore SPSR\n        ADD      R12, R12, #4               // Adjust pointer to LR\n        LDM      R12, {LR}^                 // Restore LR_usr directly into LR\n        LDR      LR, [R12, #4]              // Restore LR\n        LDR      R12, [R12, #-4]            // Restore R12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:11", "text": "VLDMIA   R3!, {D16-D31}\n//        .endif\n        VLDMIA   R3!, {D0-D15}\n        LDR      R2, [R3]\n        VMSR     FPSCR, R2\n        ADD      R3, R3, #8\n\nosRtxContextRestore1:\n        LDMIA    R3!, {R4-R11}              // Restore R4-R11\n        MOV      R12, R3                    // Move sp pointer to R12\n        ADD      R3, R3, #32                // Adjust sp\n        PUSH     {R3}                       // Push sp onto stack\n        LDMIA    SP, {SP}^                  // Restore SP_usr\n        LDMIA    R12!, {R0-R3}              // Restore User R0-R3\n        LDR      LR, [R12, #12]             // Load SPSR into LR\n        MSR      SPSR_cxsf, LR              // Restore SPSR\n        ADD      R12, R12, #4               // Adjust pointer to LR\n        LDM      R12, {LR}^                 // Restore LR_usr directly into LR\n        LDR      LR, [R12, #4]              // Restore LR\n        LDR      R12, [R12, #-4]            // Restore R12\n\n        MOVS     PC, LR                     // Return from exception\n\nosRtxContextExit:\n        POP      {R0-R3, R12, LR}           // Restore stacked APCS registers\n        RFEFD    SP!                        // Return from exception\n\n        .fnend\n        .size    osRtxContextSwitch, .-osRtxContextSwitch\n\n        .end", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 401, "line_end": 431}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:7", "text": "SUB     SP, SP, R3                  // Adjust stack\n        PUSH    {R2, R3, R12, LR}           // Store handler address(R2), stack adjustment(R3) and user R12, LR\n\n        CPSIE   i                           // Re-enable interrupts\n        BLX     R2                          // Call IRQ handler\n        CPSID   i                           // Disable interrupts\n\n        POP     {R2, R3, R12, LR}           // Restore handler address(R2), stack adjustment(R3) and user R12, LR\n        ADD     SP, SP, R3                  // Unadjust stack\n\n        CPS     #MODE_IRQ                   // Change to IRQ mode\n        POP     {R0, R1}                    // Restore IRQ ID and GIC CPU Interface base address\n        DSB                                 // Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End:\n        // R0 =IRQ ID, R1 =GICI_BASE\n        // EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n        STR     R0, [R1, #ICCEOIR_OFFSET]   // Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n        // If it was ID0, clear the seen flag, otherwise return as normal\n        CMP     R0, #0\n        LDREQ   R1, =ID0_Active\n        STRBEQ  R0, [R1]                    // Clear the seen flag, using R0 (which is 0), to save loading another register\n\n        LDR     R3, =osRtxIrqHandler        // Load osRtxIrqHandler function address\n        CMP     R2, R3                      // If is the same ass current IRQ handler\n        BEQ     osRtxContextSwitch          // Call context switcher\n\nIRQ_Exit:\n        POP     {R0-R3, R12, LR}            // Restore stacked APCS registers\n        RFEFD   SP!                         // Return from IRQ handler\n\n        .fnend\n        .size    IRQ_Handler, .-IRQ_Handler\n\n\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        SRSFD    SP!, #MODE_SVC             // Store SPSR_svc and LR_svc onto SVC stack\n        PUSH     {R12, LR}\n\n        MRS      R12, SPSR                  // Load SPSR\n        TST      R12, #CPSR_BIT_T           // Thumb bit set?\n        LDRNEH   R12, [LR,#-2]              // Thumb: load halfword\n        BICNE    R12, R12, #0xFF00          //        extract SVC number\n        LDREQ    R12, [LR,#-4]              // ARM:   load word\n        BICEQ    R12, R12, #0xFF000000      //        extract SVC number\n        CMP      R12, #0                    // Compare SVC number\n        BNE      SVC_User                   // Branch if User SVC\n\n        PUSH     {R0-R3}\n        BLX      osRtxIrqLock               // Disable RTX interrupt (timer, PendSV)\n        POP      {R0-R3}\n\n        LDR      R12, [SP]                  // Reload R12 from stack\n\n        CPSIE    i                          // Re-enable interrupts", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "ff9fa5b0c420d7a53dd3e484d4a9301adb47f050", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ff9fa5b0c420d7a53dd3e484d4a9301adb47f050/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S:8", "text": "SRSFD    SP!, #MODE_SVC             // Store SPSR_svc and LR_svc onto SVC stack\n        PUSH     {R12, LR}\n\n        MRS      R12, SPSR                  // Load SPSR\n        TST      R12, #CPSR_BIT_T           // Thumb bit set?\n        LDRNEH   R12, [LR,#-2]              // Thumb: load halfword\n        BICNE    R12, R12, #0xFF00          //        extract SVC number\n        LDREQ    R12, [LR,#-4]              // ARM:   load word\n        BICEQ    R12, R12, #0xFF000000      //        extract SVC number\n        CMP      R12, #0                    // Compare SVC number\n        BNE      SVC_User                   // Branch if User SVC\n\n        PUSH     {R0-R3}\n        BLX      osRtxIrqLock               // Disable RTX interrupt (timer, PendSV)\n        POP      {R0-R3}\n\n        LDR      R12, [SP]                  // Reload R12 from stack\n\n        CPSIE    i                          // Re-enable interrupts\n        BLX      R12                        // Branch to SVC function\n        CPSID    i                          // Disable interrupts\n\n        SUB      SP, SP, #4                 // Adjust SP\n        STM      SP, {SP}^                  // Store SP_usr onto stack\n        POP      {R12}                      // Pop SP_usr into R12\n        SUB      R12, R12, #16              // Adjust pointer to SP_usr\n        LDMDB    R12, {R2,R3}               // Load return values from SVC function\n        PUSH     {R0-R3}                    // Push return values to stack\n\n        BLX      osRtxIrqUnlock             // Enable RTX interrupt (timer, PendSV)\n        B        osRtxContextSwitch         // Continue in context switcher\n\nSVC_User:\n        PUSH     {R4, R5}\n        LDR      R5,=osRtxUserSVC           // Load address of SVC table\n        LDR      R4,[R5]                    // Load SVC maximum number\n        CMP      R12,R4                     // Check SVC number range\n        BHI      SVC_Done                   // Branch if out of range\n\n        LDR      R12,[R5,R12,LSL #2]        // Load SVC Function Address\n        BLX      R12                        // Call SVC Function\n\nSVC_Done:\n        POP      {R4, R5, R12, LR}\n        RFEFD    SP!                        // Return from exception\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .type    osRtxContextSwitch, %function\n        .global  osRtxContextSwitch\n        .fnstart\n        .cantunwind\nosRtxContextSwitch:\n\n        LDR      R12,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R12, {R0, R1}              // Load osRtxInfo.thread.run: curr & next\n        CMP      R0, R1                     // Check if context switch is required", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "license": "Apache-2.0", "commit": "ff9fa5b0c420d7a53dd3e484d4a9301adb47f050", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ff9fa5b0c420d7a53dd3e484d4a9301adb47f050/CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:2", "text": ".thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CMP      R1,#0\n        BEQ      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:3", "text": "STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\n        MOVS     R0,#~0xFFFFFFFD\n        MVNS     R0,R0                  // Set EXC_RETURN value\n        BX       R0                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:4", "text": "PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 121, "line_end": 172}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:5", "text": "PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 161, "line_end": 172}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CMP      R1,#0\n        BEQ      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:3", "text": "SUBS     R0,R0,#32              // Calculate SP\n        STR      R0,[R1,#TCB_SP_OFS]    // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8               // Adjust address\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\n        MOVS     R0,#~0xFFFFFFFD\n        MVNS     R0,R0                  // Set EXC_RETURN value\n        BX       R0                     // Exit from handler\n\nSVC_MSP:\n        MRS      R0,MSP                 // Get MSP\n        B        SVC_Number\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:4", "text": "BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LSLS     R1,R1,#2\n        LDR      R3,[R2,R1]             // Load address of SVC function\n        MOV      R12,R3\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R2,R3}                // Restore SP and EXC_RETURN\n        STR      R0,[R2]                // Store function return value\n        MOV      LR,R3                  // Set EXC_RETURN\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 121, "line_end": 173}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:5", "text": "SysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 161, "line_end": 173}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MOV      R0,LR\n        LSRS     R0,R0,#3               // Determine return stack from EXC_RETURN bit 2\n        BCC      SVC_MSP                // Branch if return stack is MSP\n        MRS      R0,PSP                 // Get PSP\n\nSVC_Number:\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore PSP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDMIA    R3!,{R1,R2}            // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CMP      R1,#0\n        BEQ      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS];   // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:3", "text": "MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\n        MOVS     R0,#~0xFFFFFFFD\n        MVNS     R0,R0                  // Set EXC_RETURN value\n        BX       R0                     // Exit from handler\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STMIA    R4!,{R0-R3}            // Store function return values\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:4", "text": "STMIA    R4!,{R0-R3}            // Store function return values\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 121, "line_end": 164}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "200cd4bbd7445c5471e30659b75380b17e4e7a8d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/200cd4bbd7445c5471e30659b75380b17e4e7a8d/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        POP      {R2,R3}                // Restore PSP and EXC_RETURN\n        STMIA    R2!,{R0-R1}            // Store function return values\n        MOV      LR,R3                  // Set EXC_RETURN\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CMP      R1,#0\n        BEQ      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS];   // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:3", "text": "MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        SUBS     R3,R3,#8\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\n        MOVS     R0,#~0xFFFFFFFD\n        MVNS     R0,R0                  // Set EXC_RETURN value\n        BX       R0                     // Exit from handler\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STMIA    R4!,{R0-R3}            // Store function return values\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:4", "text": "STMIA    R4!,{R0-R3}            // Store function return values\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler\n        POP      {R0,R1}                // Restore EXC_RETURN\n        MOV      LR,R1                  // Set EXC_RETURN\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 121, "line_end": 164}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "license": "Apache-2.0", "commit": "7ed37ea20e5b47289b45de05ec458b48463ab396", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ed37ea20e5b47289b45de05ec458b48463ab396/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm0.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        MRS      R3,PSP                 // Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        MRS      R3,PSP                 // Get PSP\n        STMIA    R3!,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        SUBS     R3,R3,#8\n        CMP      R1,#0\n        BEQ      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS];   // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        MOVS     R0,#~0xFFFFFFFD        // Set EXC_RETURN value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:3", "text": "MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        MOVS     R0,#~0xFFFFFFFD        // Set EXC_RETURN value\n        MVNS     R0,R0\n        BX       R0                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LSLS     R1,R1,#2\n        LDR      R4,[R2,R1]             // Load address of SVC function\n\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STMIA    R4!,{R0-R3}            // Store function return values\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        BL       os_PendSV_Handler\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:4", "text": ".fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        BL       os_PendSV_Handler\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        BL       os_Tick_Handler\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 121, "line_end": 154}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        SUBS     R1,R1,#2               // Point to SVC instruction\n        LDRB     R1,[R1]                // Load SVC number\n        CMP      R1,#0\n        BNE      SVC_User               // Branch if not SVC 0\n\n        LDMIA    R0,{R0-R3}             // Load function parameters from stack\n        BLX      R7                     // Call service function\n        MRS      R3,PSP                 // Get PSP\n        STR      R0,[R3]                // Store function return value\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDMIA    R3!,{R1,R2}            // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        SUBS     R3,R3,#8\n        CMP      R1,#0\n        BEQ      SVC_ContextSwitch      // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS      R0,PSP                 // Get PSP\n        SUBS     R0,R0,#32              // Adjust address\n        STR      R0,[R1,#TCB_SP_OFS];   // Store SP\n        STMIA    R0!,{R4-R7}            // Save R4..R7\n        MOV      R4,R8\n        MOV      R5,R9\n        MOV      R6,R10\n        MOV      R7,R11\n        STMIA    R0!,{R4-R7}            // Save R8..R11\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ADDS     R0,R0,#16              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R8..R11\n        MOV      R8,R4\n        MOV      R9,R5\n        MOV      R10,R6\n        MOV      R11,R7\n        MSR      PSP,R0                 // Set PSP\n        SUBS     R0,R0,#32              // Adjust address\n        LDMIA    R0!,{R4-R7}            // Restore R4..R7\n\nSVC_Exit:\n        MOVS     R0,#~0xFFFFFFFD        // Set EXC_RETURN value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M0 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file   \"irq_cm0.s\"\n        .syntax unified\n\n        .equ    I_T_RUN_OFS, 28         // osInfo.thread.run offset\n        .equ    TCB_SP_OFS,  56         // TCB.SP offset\n\n        .section \".rodata\"\n        .global os_irq_cm               // Non weak library reference\nos_irq_cm:\n        .byte   0\n\n        .thumb\n        .section \".text\"\n        .align  2\n\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS     R0,PSP                  // Get PSP\n        LDR     R1,[R0,#24]             // Load saved PC from stack\n        SUBS    R1,R1,#2                // Point to SVC instruction\n        LDRB    R1,[R1]                 // Load SVC number\n        CMP     R1,#0\n        BNE     SVC_User                // Branch if not SVC 0\n\n        LDMIA   R0,{R0-R3}              // Load function parameters from stack\n        BLX     R7                      // Call service function\n        MRS     R3,PSP                  // Get PSP\n        STR     R0,[R3]                 // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:2", "text": ".thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS     R0,PSP                  // Get PSP\n        LDR     R1,[R0,#24]             // Load saved PC from stack\n        SUBS    R1,R1,#2                // Point to SVC instruction\n        LDRB    R1,[R1]                 // Load SVC number\n        CMP     R1,#0\n        BNE     SVC_User                // Branch if not SVC 0\n\n        LDMIA   R0,{R0-R3}              // Load function parameters from stack\n        BLX     R7                      // Call service function\n        MRS     R3,PSP                  // Get PSP\n        STR     R0,[R3]                 // Store function return value\n\nSVC_Context:\n        LDR     R3,=os_Info+I_T_RUN_OFS // Load address of os_Info.run\n        LDMIA   R3!,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP     R1,R2                   // Check if thread switch is required\n        BEQ     SVC_Exit                // Branch when threads are the same\n\n        SUBS    R3,R3,#8\n        CMP     R1,#0\n        BEQ     SVC_ContextSwitch       // Branch if running thread is deleted\n\nSVC_ContextSave:\n        MRS     R0,PSP                  // Get PSP\n        SUBS    R0,R0,#32               // Adjust address\n        STR     R0,[R1,#TCB_SP_OFS];    // Store SP\n        STMIA   R0!,{R4-R7}             // Save R4..R7\n        MOV     R4,R8\n        MOV     R5,R9\n        MOV     R6,R10\n        MOV     R7,R11\n        STMIA   R0!,{R4-R7}             // Save R8..R11\n\nSVC_ContextSwitch:\n        STR     R2,[R3]                 // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR     R0,[R2,#TCB_SP_OFS]     // Load SP\n        ADDS    R0,R0,#16               // Adjust address\n        LDMIA   R0!,{R4-R7}             // Restore R8..R11\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  // Set PSP\n        SUBS    R0,R0,#32               // Adjust address\n        LDMIA   R0!,{R4-R7}             // Restore R4..R7\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         // Set EXC_RETURN value\n        MVNS    R0,R0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:3", "text": "STMIA   R0!,{R4-R7}             // Save R8..R11\n\nSVC_ContextSwitch:\n        STR     R2,[R3]                 // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR     R0,[R2,#TCB_SP_OFS]     // Load SP\n        ADDS    R0,R0,#16               // Adjust address\n        LDMIA   R0!,{R4-R7}             // Restore R8..R11\n        MOV     R8,R4\n        MOV     R9,R5\n        MOV     R10,R6\n        MOV     R11,R7\n        MSR     PSP,R0                  // Set PSP\n        SUBS    R0,R0,#32               // Adjust address\n        LDMIA   R0!,{R4-R7}             // Restore R4..R7\n\nSVC_Exit:\n        MOVS    R0,#~0xFFFFFFFD         // Set EXC_RETURN value\n        MVNS    R0,R0\n        BX      R0                      // Exit from handler\n\nSVC_User:\n        PUSH    {R4,LR}                 // Save registers\n        LDR     R2,=os_UserSVC_Table    // Load address of SVC table\n        LDR     R3,[R2]                 // Load SVC maximum number\n        CMP     R1,R3                   // Check SVC number range\n        BHI     SVC_Done                // Branch if out of range\n\n        LSLS    R1,R1,#2\n        LDR     R4,[R2,R1]              // Load address of SVC function\n\n        LDMIA   R0,{R0-R3}              // Load function parameters from stack\n        BLX     R4                      // Call service function\n        MRS     R4,PSP                  // Get PSP\n        STMIA   R4!,{R0-R3}             // Store function return values\n\nSVC_Done:\n        POP     {R4,PC}                 // Return from handler\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        BL      os_PendSV_Handler\n        B       SVC_Context\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type   SysTick_Handler, %function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s:4", "text": ".fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        BL      os_PendSV_Handler\n        B       SVC_Context\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        BL      os_Tick_Handler\n        B       SVC_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s", "line_start": 121, "line_end": 153}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:2", "text": ".thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:3", "text": "SVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:4", "text": ".fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 121, "line_end": 143}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:3", "text": "SVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:4", "text": "B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 121, "line_end": 144}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:3", "text": "MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:4", "text": ".fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 121, "line_end": 142}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "200cd4bbd7445c5471e30659b75380b17e4e7a8d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/200cd4bbd7445c5471e30659b75380b17e4e7a8d/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:3", "text": "MSR      PSP,R0                 // Set PSP\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:4", "text": ".fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 121, "line_end": 142}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "license": "Apache-2.0", "commit": "7ed37ea20e5b47289b45de05ec458b48463ab396", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ed37ea20e5b47289b45de05ec458b48463ab396/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        MRS      R12,PSP                // Get PSP\n        STM      R12,{R0-R1}            // Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        MRS      R12,PSP                // Get PSP\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:3", "text": "SVC_Exit:\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        BL       os_PendSV_Handler\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        BL       os_Tick_Handler\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 81, "line_end": 136}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:4", "text": ".thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        BL       os_Tick_Handler\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 121, "line_end": 136}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm3.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        MRS      R12,PSP                // Get PSP\n        STR      R0,[R12]               // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        MRS      R12,PSP                // Get PSP\n        STR      R0,[R12]               // Store function return value\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        BEQ      SVC_Exit               // Branch when threads are the same\n\n        CBZ      R1,SVC_ContextSwitch   // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        MVN      LR,#~0xFFFFFFFD        // Set EXC_RETURN value\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP      {R4,PC}                // Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M3 Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file   \"irq_cm3.s\"\n        .syntax unified\n\n        .equ    I_T_RUN_OFS, 28         // osInfo.thread.run offset\n        .equ    TCB_SP_OFS,  56         // TCB.SP offset\n\n        .section \".rodata\"\n        .global os_irq_cm               // Non weak library reference\nos_irq_cm:\n        .byte   0\n\n        .thumb\n        .section \".text\"\n        .align  2\n\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS     R0,PSP                  // Get PSP\n        LDR     R1,[R0,#24]             // Load saved PC from stack\n        LDRB    R1,[R1,#-2]             // Load SVC number\n        CBNZ    R1,SVC_User             // Branch if not SVC 0\n\n        LDM     R0,{R0-R3,R12}          // Load function parameters and address from stack\n        BLX     R12                     // Call service function\n        MRS     R12,PSP                 // Get PSP\n        STR     R0,[R12]                // Store function return value\n\nSVC_Context:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:2", "text": ".thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS     R0,PSP                  // Get PSP\n        LDR     R1,[R0,#24]             // Load saved PC from stack\n        LDRB    R1,[R1,#-2]             // Load SVC number\n        CBNZ    R1,SVC_User             // Branch if not SVC 0\n\n        LDM     R0,{R0-R3,R12}          // Load function parameters and address from stack\n        BLX     R12                     // Call service function\n        MRS     R12,PSP                 // Get PSP\n        STR     R0,[R12]                // Store function return value\n\nSVC_Context:\n        LDR     R3,=os_Info+I_T_RUN_OFS // Load address of os_Info.run\n        LDM     R3,{R1,R2}              // Load os_Info.thread.run: curr & next\n        CMP     R1,R2                   // Check if thread switch is required\n        BEQ     SVC_Exit                // Branch when threads are the same\n\n        CBZ     R1,SVC_ContextSwitch    // Branch if running thread is deleted\n\nSVC_ContextSave:\n        STMDB   R12!,{R4-R11}           // Save R4..R11\n        STR     R12,[R1,#TCB_SP_OFS]    // Store SP\n\nSVC_ContextSwitch:\n        STR     R2,[R3]                 // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR     R12,[R2,#TCB_SP_OFS]    // Load SP\n        LDMIA   R12!,{R4-R11}           // Restore R4..R11\n        MSR     PSP,R12                 // Set PSP\n\nSVC_Exit:\n        MVN     LR,#~0xFFFFFFFD         // Set EXC_RETURN value\n        BX      LR                      // Exit from handler\n\nSVC_User:\n        PUSH    {R4,LR}                 // Save registers\n        LDR     R2,=os_UserSVC_Table    // Load address of SVC table\n        LDR     R3,[R2]                 // Load SVC maximum number\n        CMP     R1,R3                   // Check SVC number range\n        BHI     SVC_Done                // Branch if out of range\n\n        LDR     R4,[R2,R1,LSL #2]       // Load address of SVC function\n\n        LDM     R0,{R0-R3}              // Load function parameters from stack\n        BLX     R4                      // Call service function\n        MRS     R12,PSP                 // Get PSP\n        STM     R12,{R0-R3}             // Store function return values\n\nSVC_Done:\n        POP     {R4,PC}                 // Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:3", "text": "MVN     LR,#~0xFFFFFFFD         // Set EXC_RETURN value\n        BX      LR                      // Exit from handler\n\nSVC_User:\n        PUSH    {R4,LR}                 // Save registers\n        LDR     R2,=os_UserSVC_Table    // Load address of SVC table\n        LDR     R3,[R2]                 // Load SVC maximum number\n        CMP     R1,R3                   // Check SVC number range\n        BHI     SVC_Done                // Branch if out of range\n\n        LDR     R4,[R2,R1,LSL #2]       // Load address of SVC function\n\n        LDM     R0,{R0-R3}              // Load function parameters from stack\n        BLX     R4                      // Call service function\n        MRS     R12,PSP                 // Get PSP\n        STM     R12,{R0-R3}             // Store function return values\n\nSVC_Done:\n        POP     {R4,PC}                 // Return from handler\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        BL      os_PendSV_Handler\n        MRS     R12,PSP\n        B       SVC_Context\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        BL      os_Tick_Handler\n        MRS     R12,PSP\n        B       SVC_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 81, "line_end": 135}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s:4", "text": ".type   SysTick_Handler, %function\n        .global SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        BL      os_Tick_Handler\n        MRS     R12,PSP\n        B       SVC_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s", "line_start": 121, "line_end": 135}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:2", "text": ".align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:3", "text": "SVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:4", "text": ".fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "7ac08dc62b3b4af4291efdeab732f7d716e3e113", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/7ac08dc62b3b4af4291efdeab732f7d716e3e113/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:2", "text": ".section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,R0,#1               // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:3", "text": "B        SVC_ContextSwitch\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Exit               // Branch if out of range\n\n        PUSH     {R0,LR}                // Save SP and EXC_RETURN\n        LDR      R12,[R2,R1,LSL #2]     // Load address of SVC function\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore SP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\n        BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:4", "text": "BX       LR                     // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R0,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R0,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 121, "line_end": 161}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        TST      LR,#0x04               // Determine return stack from EXC_RETURN bit 2\n        ITE      EQ\n        MRSEQ    R0,MSP                 // Get MSP if return stack is MSP\n        MRSNE    R0,PSP                 // Get PSP if return stack is PSP\n\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 20        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:2", "text": ".section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=osRtxInfo+I_T_RUN_OFS // Load address of osRtxInfo.run\n        LDM      R3,{R1,R2}             // Load osRtxInfo.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:3", "text": "TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=osRtxUserSVC       // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP     {R4,PC}                 // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:4", "text": ".fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxPendSV_Handler    // Call osRtxPendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       osRtxTick_Handler      // Call osRtxTick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.S\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "200cd4bbd7445c5471e30659b75380b17e4e7a8d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/200cd4bbd7445c5471e30659b75380b17e4e7a8d/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osRtxInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  irqRtxLib              // Non weak library reference\nirqRtxLib:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "857ba8da820fe6b1d07df0a25d8b32a3ebf69d75", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/857ba8da820fe6b1d07df0a25d8b32a3ebf69d75/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:2", "text": ".section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STM      R12,{R0-R1}            // Store function return values\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:3", "text": "TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP\n\nSVC_Exit:\n        BX       LR                     // Exit from handler\n\nSVC_User:\n        PUSH     {R4,LR}                // Save registers\n        LDR      R2,=os_UserSVC_Table   // Load address of SVC table\n        LDR      R3,[R2]                // Load SVC maximum number\n        CMP      R1,R3                  // Check SVC number range\n        BHI      SVC_Done               // Branch if out of range\n\n        LDR      R4,[R2,R1,LSL #2]      // Load address of SVC function\n\n        LDM      R0,{R0-R3}             // Load function parameters from stack\n        BLX      R4                     // Call service function\n        MRS      R4,PSP                 // Get PSP\n        STR      R0,[R4]                // Store function return value\n\nSVC_Done:\n        POP     {R4,PC}                 // Return from handler\n\n        .fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S:4", "text": ".fnend\n        .size    SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type    PendSV_Handler, %function\n        .global  PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_PendSV_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type    SysTick_Handler, %function\n        .global  SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH     {R4,LR}                // Save EXC_RETURN\n        BL       os_Tick_Handler\n        POP      {R4,LR}                // Restore EXC_RETURN\n        MRS      R12,PSP\n        B        SVC_Context\n\n        .fnend\n        .size    SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file    \"irq_cm4f.s\"\n        .syntax  unified\n\n        .equ     I_T_RUN_OFS, 28        // osInfo.thread.run offset\n        .equ     TCB_SP_OFS,  56        // TCB.SP offset\n        .equ     TCB_SF_OFS,  34        // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global  os_irq_cm              // Non weak library reference\nos_irq_cm:\n        .byte    0\n\n\n        .thumb\n        .section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "license": "Apache-2.0", "commit": "fca81c11c6629c2f2443284337367e10ac78515c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/fca81c11c6629c2f2443284337367e10ac78515c/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s:2", "text": ".section \".text\"\n        .align   2\n\n\n        .thumb_func\n        .type    SVC_Handler, %function\n        .global  SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS      R0,PSP                 // Get PSP\n        LDR      R1,[R0,#24]            // Load saved PC from stack\n        LDRB     R1,[R1,#-2]            // Load SVC number\n        CBNZ     R1,SVC_User            // Branch if not SVC 0\n\n        PUSH     {R0,LR}                // Save PSP and EXC_RETURN\n        LDM      R0,{R0-R3,R12}         // Load function parameters and address from stack\n        BLX      R12                    // Call service function\n        POP      {R12,LR}               // Restore PSP and EXC_RETURN\n        STR      R0,[R12]               // Store function return value\n\nSVC_Context:\n        LDR      R3,=os_Info+I_T_RUN_OFS// Load address of os_Info.run\n        LDM      R3,{R1,R2}             // Load os_Info.thread.run: curr & next\n        CMP      R1,R2                  // Check if thread switch is required\n        IT       EQ\n        BXEQ     LR                     // Exit when threads are the same\n\n        CBNZ     R1,SVC_ContextSave     // Branch if running thread is not deleted\n        TST      LR,#0x10               // Check if extended stack frame\n        BNE      SVC_ContextSwitch\n        LDR      R1,=0xE000EF34         // FPCCR Address\n        LDR      R0,[R1]                // Load FPCCR\n        BIC      R0,#1                  // Clear LSPACT (Lazy state)\n        STR      R0,[R1]                // Store FPCCR\n        B        SVC_ContextSwitch\n\nSVC_ContextSave:\n        STMDB    R12!,{R4-R11}          // Save R4..R11\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n\n        STR      R12,[R1,#TCB_SP_OFS]   // Store SP\n        STRB     LR, [R1,#TCB_SF_OFS]   // Store stack frame information\n\nSVC_ContextSwitch:\n        STR      R2,[R3]                // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDRB     R1,[R2,#TCB_SF_OFS]    // Load stack frame information\n        LDR      R0,[R2,#TCB_SP_OFS]    // Load SP\n        ORR      LR,R1,#0xFFFFFF00      // Set EXC_RETURN\n\n        TST      LR,#0x10               // Check if extended stack frame\n        IT       EQ\n        VLDMIAEQ R0!,{S16-S31}          //  Restore VFP S16..S31\n        LDMIA    R0!,{R4-R11}           // Restore R4..R11\n        MSR      PSP,R0                 // Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "license": "Apache-2.0", "commit": "2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2a0fd6d22d4d697f302ca6e4ea246b5d8f29afb1/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s:1", "text": "/*\n * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * -----------------------------------------------------------------------------\n *\n * Project:     CMSIS-RTOS RTX\n * Title:       Cortex-M4F Exception handlers\n *\n * -----------------------------------------------------------------------------\n */\n\n\n        .file   \"irq_cm4f.s\"\n        .syntax unified\n\n        .equ    I_T_RUN_OFS, 28         // osInfo.thread.run offset\n        .equ    TCB_SP_OFS,  56         // TCB.SP offset\n        .equ    TCB_SF_OFS,  34         // TCB.stack_frame offset\n\n        .section \".rodata\"\n        .global os_irq_cm               // Non weak library reference\nos_irq_cm:\n        .byte   0\n\n        .thumb\n        .section \".text\"\n        .align  2\n\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS     R0,PSP                  // Get PSP\n        LDR     R1,[R0,#24]             // Load saved PC from stack\n        LDRB    R1,[R1,#-2]             // Load SVC number\n        CBNZ    R1,SVC_User             // Branch if not SVC 0\n\n        PUSH    {R0,LR}                 // Save PSP and EXC_RETURN\n        LDM     R0,{R0-R3,R12}          // Load function parameters and address from stack\n        BLX     R12                     // Call service function\n        POP     {R12,LR}                // Restore PSP and EXC_RETURN\n        STR     R0,[R12]                // Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s:2", "text": ".align  2\n\n\n        .thumb_func\n        .type   SVC_Handler, %function\n        .global SVC_Handler\n        .fnstart\n        .cantunwind\nSVC_Handler:\n\n        MRS     R0,PSP                  // Get PSP\n        LDR     R1,[R0,#24]             // Load saved PC from stack\n        LDRB    R1,[R1,#-2]             // Load SVC number\n        CBNZ    R1,SVC_User             // Branch if not SVC 0\n\n        PUSH    {R0,LR}                 // Save PSP and EXC_RETURN\n        LDM     R0,{R0-R3,R12}          // Load function parameters and address from stack\n        BLX     R12                     // Call service function\n        POP     {R12,LR}                // Restore PSP and EXC_RETURN\n        STR     R0,[R12]                // Store function return value\n\nSVC_Context:\n        LDR     R3,=os_Info+I_T_RUN_OFS // Load address of os_Info.run\n        LDM     R3,{R1,R2}              // Load os_Info.thread.run: curr & next\n        CMP     R1,R2                   // Check if thread switch is required\n        BEQ     SVC_Exit                // Branch when threads are the same\n\n        CBNZ    R1,SVC_ContextSave      // Branch if running thread is not deleted\n\n        TST     LR,#0x10                // Check if extended stack frame\n        BNE     SVC_ContextSwitch\n        LDR     R1,=0xE000EF34          // FPCCR Address\n        LDR     R0,[R1]                 // Load FPCCR\n        BIC     R0,#1                   // Clear LSPACT (Lazy state)\n        STR     R0,[R1]                 // Store FPCCR\n        B       SVC_ContextSwitch\n\nSVC_ContextSave:\n        TST     LR,#0x10                // Check if extended stack frame\n        ITTE    EQ\n        VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        MOVEQ   R0,#1                   //  Extended stack frame identifier\n        MOVNE   R0,#0                   //  Basic stack frame identifier\n        STMDB   R12!,{R4-R11}           // Save R4..R11\n        STR     R12,[R1,#TCB_SP_OFS]    // Store SP\n        STRB    R0, [R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR     R2,[R3]                 // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR     R12,[R2,#TCB_SP_OFS]    // Load SP\n        LDRB    R0, [R2,#TCB_SF_OFS]    // Load stack frame information\n        LDMIA   R12!,{R4-R11}           // Restore R4..R11\n        CMP     R0,#1                   // Check if extended stack frame\n        ITTE    EQ\n        VLDMIAEQ R12!,{S16-S31}         //  Restore VFP S16..S31\n        MVNEQ   LR,#~0xFFFFFFED         //  Set EXC_RETURN value\n        MVNNE   LR,#~0xFFFFFFFD\n        MSR     PSP,R12                 // Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s:3", "text": "VSTMDBEQ R12!,{S16-S31}         //  Save VFP S16.S31\n        MOVEQ   R0,#1                   //  Extended stack frame identifier\n        MOVNE   R0,#0                   //  Basic stack frame identifier\n        STMDB   R12!,{R4-R11}           // Save R4..R11\n        STR     R12,[R1,#TCB_SP_OFS]    // Store SP\n        STRB    R0, [R1,#TCB_SF_OFS]    // Store stack frame information\n\nSVC_ContextSwitch:\n        STR     R2,[R3]                 // os_Info.thread.run: curr = next\n\nSVC_ContextRestore:\n        LDR     R12,[R2,#TCB_SP_OFS]    // Load SP\n        LDRB    R0, [R2,#TCB_SF_OFS]    // Load stack frame information\n        LDMIA   R12!,{R4-R11}           // Restore R4..R11\n        CMP     R0,#1                   // Check if extended stack frame\n        ITTE    EQ\n        VLDMIAEQ R12!,{S16-S31}         //  Restore VFP S16..S31\n        MVNEQ   LR,#~0xFFFFFFED         //  Set EXC_RETURN value\n        MVNNE   LR,#~0xFFFFFFFD\n        MSR     PSP,R12                 // Set PSP\n\nSVC_Exit:\n        BX      LR                      // Exit from handler\n\nSVC_User:\n        PUSH    {R4,LR}                 // Save registers\n        LDR     R2,=os_UserSVC_Table    // Load address of SVC table\n        LDR     R3,[R2]                 // Load SVC maximum number\n        CMP     R1,R3                   // Check SVC number range\n        BHI     SVC_Done                // Branch if out of range\n\n        LDR     R4,[R2,R1,LSL #2]       // Load address of SVC function\n\n        LDM     R0,{R0-R3}              // Load function parameters from stack\n        BLX     R4                      // Call service function\n        MRS     R12,PSP                 // Get PSP\n        STM     R12,{R0-R3}             // Store function return values\n\nSVC_Done:\n        POP     {R4,PC}                 // Return from handler\n\n        .fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH    {R4,LR}                 // Save EXC_RETURN\n        BL      os_PendSV_Handler\n        POP     {R4,LR}                 // Restore EXC_RETURN\n        MRS     R12,PSP\n        B       SVC_Context\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s:4", "text": ".fnend\n        .size   SVC_Handler, .-SVC_Handler\n\n\n        .thumb_func\n        .type   PendSV_Handler, %function\n        .global PendSV_Handler\n        .fnstart\n        .cantunwind\nPendSV_Handler:\n\n        PUSH    {R4,LR}                 // Save EXC_RETURN\n        BL      os_PendSV_Handler\n        POP     {R4,LR}                 // Restore EXC_RETURN\n        MRS     R12,PSP\n        B       SVC_Context\n\n        .fnend\n        .size   PendSV_Handler, .-PendSV_Handler\n\n\n        .thumb_func\n        .type   SysTick_Handler, %function\n        .global SysTick_Handler\n        .fnstart\n        .cantunwind\nSysTick_Handler:\n\n        PUSH    {R4,LR}                 // Save EXC_RETURN\n        BL      os_Tick_Handler\n        POP     {R4,LR}                 // Restore EXC_RETURN\n        MRS     R12,PSP\n        B       SVC_Context\n\n        .fnend\n        .size   SysTick_Handler, .-SysTick_Handler\n\n\n        .end", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "license": "Apache-2.0", "commit": "4868c88b763f9923330359cec1e522555f093777", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4868c88b763f9923330359cec1e522555f093777/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s", "line_start": 121, "line_end": 160}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv6-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv6m.s\n\n\n                #include \"rtx_def.h\"\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:2", "text": "PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:3", "text": "#ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            #ifdef RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:4", "text": "CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            #ifdef RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n\n            #endif\n\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CMP      R1,#0\n                 BEQ      SVC_ZoneSetup         ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_N  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_N\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:5", "text": "MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CMP      R1,#0\n                 BEQ      SVC_ZoneSetup         ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_N  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_N\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:6", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 201, "line_end": 249}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:5", "text": "MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CMP      R1,#0\n                 BEQ      SVC_ZoneSetup         ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_N  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_N\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:6", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 201, "line_end": 250}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:7", "text": "B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 241, "line_end": 250}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv6-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv6m.s\n\n\n                #include \"rtx_def.h\"\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n\n                MOV      R0,LR", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:2", "text": "EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            #ifdef RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:3", "text": "LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            #ifdef RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n\n            #endif\n\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:4", "text": "STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#2                  ; Binary complement of 0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:5", "text": "BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 161, "line_end": 187}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s:2", "text": "EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CMP      R1,#0\n                BEQ      SVC_ContextRestore     ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n\n            #ifdef RTX_STACK_CHECK\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv6m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv7a.s\n\n\n                #include \"rtx_def.h\"\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\nTCB_ZONE_OFS    EQU      68                         ; osRtxThread_t.zone offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   SVC_Active\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:2", "text": "I_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\nTCB_ZONE_OFS    EQU      68                         ; osRtxThread_t.zone offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   SVC_Active\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nSVC_Active      DCB      0                          ; SVC Handler Active\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:3", "text": "BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:4", "text": "SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:5", "text": "ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:6", "text": "MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC Handler Active\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:7", "text": "MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC Handler Active\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC Handler Active\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:8", "text": "STRB    R1, [R0]                    ; Clear SVC Handler Active\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT  osZoneSetup_Callback\n            #endif\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:9", "text": "LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load stacked PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Store them to user stack\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n              #else\n                ORR     R2, R2, #2                  ; VFP state\n              #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:10", "text": "VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n              #else\n                ORR     R2, R2, #2                  ; VFP state\n              #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R9, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R9, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            #ifdef RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:11", "text": "CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R9, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R9, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            #ifdef RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:12", "text": "VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 441, "line_end": 465}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:10", "text": "VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n              #else\n                ORR     R2, R2, #2                  ; VFP state\n              #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            #ifdef RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:11", "text": "CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            #ifdef RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b336c4e85d4db8cc06bd0a2a3e48f8926a9c3caf/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv7a.s\n\n\n                #include \"rtx_def.h\"\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\nTCB_ZONE_OFS    EQU      68                         ; osRtxThread_t.zone offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:2", "text": "I_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\nTCB_ZONE_OFS    EQU      68                         ; osRtxThread_t.zone offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:3", "text": "; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:4", "text": "MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:5", "text": "CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:6", "text": "POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:7", "text": "STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT  osZoneSetup_Callback\n            #endif\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:8", "text": "CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT  osZoneSetup_Callback\n            #endif\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:9", "text": "; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R0-R2, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load stacked PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Store them to user stack\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n              #else\n                ORR     R2, R2, #2                  ; VFP state\n              #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:10", "text": "#ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n              #else\n                ORR     R2, R2, #2                  ; VFP state\n              #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = curr, R9 = next, R10 = &IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R10]                   ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R10]                   ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            #ifdef RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:11", "text": "; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n            #ifdef RTX_EXECUTION_ZONE\n                LDRB    R0, [R9, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.next: zone\n                CMP     R8, #0\n                BEQ     osRtxZoneSetup              ; Branch if running thread is deleted\n                LDRB    R1, [R8, #TCB_ZONE_OFS]     ; Load osRtxInfo.thread.run.curr: zone\n                CMP     R0, R1                      ; Check if next:zone == curr:zone\n                BEQ     osRtxContextRestoreFrame    ; Branch if zone has not changed\nosRtxZoneSetup\n                BL      osZoneSetup_Callback        ; Setup zone for next thread\n            #endif\n\nosRtxContextRestoreFrame\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 401, "line_end": 455}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:12", "text": "PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6a6c112c8b6283c2f954b37a4094701c2e607fa5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6a6c112c8b6283c2f954b37a4094701c2e607fa5/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 441, "line_end": 455}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_armv7a.s\n\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:2", "text": "TCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:3", "text": "CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:5", "text": "IRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:6", "text": "BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}                     ; Push arguments to stack\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:7", "text": "CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDM     SP, {R0-R3, R12}            ; Reload R0-R3 and R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                STR     R0, [SP]                    ; Store function return value\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:8", "text": "SVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:9", "text": "MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n              #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n              #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n              #else\n                ORR     R2, R2, #2                  ; VFP state\n              #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:10", "text": "osRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s:11", "text": "LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n              #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n              #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7a.s", "line_start": 401, "line_end": 435}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:1", "text": ";/*\n; * Copyright (c) 2013-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv7m.s\n\n\n                #include \"rtx_def.h\"\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:2", "text": "TCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:3", "text": "MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:4", "text": "LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if (FPU_USED != 0)\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              #endif\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if (FPU_USED != 0)\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if (FPU_USED != 0)\n                LDRSB    LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:5", "text": "#endif\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if (FPU_USED != 0)\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if (FPU_USED != 0)\n                LDRSB    LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            #ifdef RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              #if (FPU_USED != 0)\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #else\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:6", "text": "CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              #if (FPU_USED != 0)\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #else\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:7", "text": "IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 241, "line_end": 275}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:2", "text": "TCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOV      R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:3", "text": "MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOV      R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUB      R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:4", "text": "LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if (FPU_USED != 0)\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              #endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if (FPU_USED != 0)\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:5", "text": "#endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if (FPU_USED != 0)\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            #ifdef RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #else\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:6", "text": "CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #else\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:7", "text": "EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 241, "line_end": 276}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:1", "text": ";/*\n; * Copyright (c) 2013-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv7-M Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv7m.s\n\n\n                #include \"rtx_def.h\"\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:2", "text": "FPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:3", "text": "BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if (FPU_USED != 0)\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              #endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              #if (FPU_USED != 0)\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:4", "text": "BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if (FPU_USED != 0)\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              #endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              #if (FPU_USED != 0)\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     LR, [R1,#TCB_SF_OFS]   ; Load stack frame information\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n            #endif\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #else\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:5", "text": "LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n              #if (FPU_USED != 0)\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #else\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 161, "line_end": 215}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:6", "text": "B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 201, "line_end": 215}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:2", "text": "FPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s:3", "text": "BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if (FPU_USED != 0)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if (FPU_USED != 0)\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n              #endif\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if (FPU_USED != 0)\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              #endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              #if (FPU_USED != 0)\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv7m.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv8mbl.s\n\n\n                #include \"rtx_def.h\"\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:2", "text": "osRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #ifdef RTX_TZ_CONTEXT\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:3", "text": "SVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #ifdef RTX_TZ_CONTEXT\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:4", "text": "LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #ifdef RTX_TZ_CONTEXT\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:5", "text": "POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            #else\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_S\n            #ifdef RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:6", "text": "SVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_S\n            #ifdef RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R4,R0]             ; Load stack frame information\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n            #if (DOMAIN_NS != 0)\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:7", "text": "LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:8", "text": "SysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 281, "line_end": 307}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv8mbl.s\n\n\n                #include \"rtx_def.h\"\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:2", "text": "TCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:3", "text": "MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:4", "text": "STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R0-R3}                ; Save registers\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R0-R3}                ; Restore registers\n                MOV      LR,R3                  ; Set EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:5", "text": "PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R1,R0]             ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            #else\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_S", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:6", "text": "MOV      R3,LR                  ; Get EXC_RETURN\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                STRB     R3,[R1,R0]             ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_S\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOVS     R0,#TCB_SF_OFS         ; Get TCB.stack_frame offset\n                LDRSB    R3,[R4,R0]             ; Load stack frame information\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n            #if (DOMAIN_NS != 0)\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:7", "text": "MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n\n                BX       R3                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:8", "text": "BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 281, "line_end": 311}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:3", "text": "MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                SUBS     R1,R7,#0x01            ; Clear T-bit of function address\n                LSLS     R2,R1,#29              ; Check if 8-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R7                  ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                MOV      LR,R3                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:4", "text": "STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:5", "text": "STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            #else\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:6", "text": "SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4\n            #ifdef RTX_EXECUTION_ZONE\n                 MOVS     R3,#TCB_ZONE_OFS      ; Get TCB.zone offset\n                 LDRB     R0,[R2,R3]            ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted\n                 LDRB     R1,[R1,R3]            ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n                 BEQ      SVC_ContextRestore_S  ; Branch if zone has not changed\n\nSVC_ZoneSetup\n                 BL     osZoneSetup_Callback    ;  Setup zone for next thread\n            #endif\n\nSVC_ContextRestore_S\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R4                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n            #if (DOMAIN_NS != 0)\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:7", "text": "#if (DOMAIN_NS != 0)\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:8", "text": "BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 281, "line_end": 319}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv8mbl.s\n\n\n                #include \"rtx_def.h\"\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:2", "text": "osRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:3", "text": "BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:4", "text": "SVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                B        SVC_ContextRestore     ; Branch to context restore handling\n\nSVC_ContextSaveRegs\n              #if (DOMAIN_NS != 0)\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R0,[R1,#TCB_SP_OFS]    ; Load SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n            #else\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:5", "text": "MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n            #if (DOMAIN_NS != 0)\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:6", "text": "MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 201, "line_end": 259}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:7", "text": "PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 241, "line_end": 259}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:2", "text": "osRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:3", "text": "BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R3,LR                  ; Get EXC_RETURN\n                MOV      R0,R1                  ; osRtxInfo.thread.run.curr\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                STRB     R3,[R0]                ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CMP      R0,#0\n                BNE      SVC_ContextSaveRegs    ; Branch when stack check is ok\n\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:1", "text": "NAME    irq_armv8mbl.s\n                #define DOMAIN_NS 0\n                INCLUDE irq_armv8mbl_common.s\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:1", "text": "NAME    irq_armv8mbl.s\n                #define __DOMAIN_NS 0\n                INCLUDE irq_armv8mbl_common.s\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s:1", "text": "NAME irq_armv8mbl.s\n#define __DOMAIN_NS 0\n                INCLUDE  irq_armv8mbl_common.s\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl.s", "line_start": 1, "line_end": 5}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:2", "text": "SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n            #endif\n\nSVC_ContextSave_NS\n                MRS      R0,PSP                 ; Get PSP\n            #if (DOMAIN_NS != 0)\n                MOV      R3,LR                  ; Get EXC_RETURN\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n                SUBS     R0,R0,#32              ; Calculate SP: space for R4..R11\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n                SUBS     R0,R0,#32              ; Adjust address\nSVC_ContextSaveSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:4", "text": "STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                MOV      R0,R2                  ; osRtxInfo.thread.run.next\n                ADDS     R0,R0,#TCB_SF_OFS      ; Adjust address\n                LDRB     R3,[R0]                ; Load stack frame information\n                MOVS     R0,#0xFF\n                MVNS     R0,R0                  ; R0=0xFFFFFF00\n                ORRS     R3,R3,R0\n                MOV      LR,R3                  ; Set EXC_RETURN\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n            #if (DOMAIN_NS != 0)\n                LSLS     R3,R3,#25              ; Check domain of interrupted thread\n                BMI      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n                ADDS     R0,R0,#16              ; Adjust address\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:5", "text": "BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context            ; Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 161, "line_end": 205}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:2", "text": "SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:4", "text": "PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                #else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:5", "text": "SVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:6", "text": "POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n\nSys_ContextSave1\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave2       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave3\n                #endif\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave3\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:7", "text": "SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave3\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                #else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:8", "text": "MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                #else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 281, "line_end": 301}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "302d4fb1ab650618fccc22b26d1b3618b504968e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/302d4fb1ab650618fccc22b26d1b3618b504968e/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:6", "text": "POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                #endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:7", "text": "STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                #else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 241, "line_end": 299}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:8", "text": "#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 281, "line_end": 299}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef __DOMAIN_NS\n#define __DOMAIN_NS      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:2", "text": "SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:4", "text": "PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                #else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:5", "text": "SVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:6", "text": "POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                LSLS     R7,R7,#25              ; Check domain of interrupted thread\n                BMI      Sys_ContextSave1       ; Branch if secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n                #endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:7", "text": "MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n                #if     (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n                #else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 241, "line_end": 298}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:8", "text": "LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                #endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 281, "line_end": 298}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef __DOMAIN_NS\n#define __DOMAIN_NS 0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION   .text:CODE:NOROOT(2)\n\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                MOV      R0,LR", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:2", "text": "SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION   .text:CODE:NOROOT(2)\n\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n#endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:3", "text": "LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n#endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:4", "text": "CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n#endif\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:5", "text": "SVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:6", "text": "BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                LSLS     R7,R7,#25              ; Check domain of interrupted thread\n                BMI      Sys_ContextSave1       ; Branch if secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n#endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:7", "text": "STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n#endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 241, "line_end": 299}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Baseline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef __DOMAIN_NS\n#define __DOMAIN_NS 0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION   .text:CODE:NOROOT(2)\n\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                MRS      R0,PSP                 ; Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:2", "text": "SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION   .text:CODE:NOROOT(2)\n\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n#endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:3", "text": "SVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n#endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:4", "text": "SVC_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      SVC_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n#endif\n\nSVC_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:5", "text": "CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:6", "text": "IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                MOV      R0,LR                  ; Get EXC_RETURN\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextSave1       ; Branch if non-secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n#endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:7", "text": "MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n#endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 241, "line_end": 291}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:8", "text": "LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/05a741a2d3e02d4966dc2a8117cb6a2a8fb66e19/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 281, "line_end": 291}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:6", "text": "IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      Sys_ContextExit        ; Branch when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,R7}          ; Save registers\n                MOV      R7,LR                  ; Get EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                MOV      LR,R7                  ; Set EXC_RETURN\n                POP      {R1,R2,R3,R7}          ; Restore registers\n                LSLS     R7,R7,#25              ; Check domain of interrupted thread\n                BMI      Sys_ContextSave1       ; Branch if secure\n                MRS      R0,PSP                 ; Get PSP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                B        Sys_ContextSave2\n#endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSys_ContextSave2\n                MOV      R0,LR                  ; Get EXC_RETURN\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:7", "text": "ADDS     R1,R1,#TCB_SF_OFS      ; Adjust address\n                STRB     R0,[R1]                ; Store stack frame information\n\nSys_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                MOV      R1,R2\n                ADDS     R1,R1,#TCB_SF_OFS      ; Adjust offset\n                LDRB     R0,[R1]                ; Load stack frame information\n                MOVS     R1,#0xFF\n                MVNS     R1,R1                  ; R1=0xFFFFFF00\n                ORRS     R0,R1\n                MOV      LR,R0                  ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                LSLS     R0,R0,#25              ; Check domain of interrupted thread\n                BPL      Sys_ContextRestore2    ; Branch if non-secure\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                MSR      PSP,R0                 ; Set PSP\n                BX       LR                     ; Exit from handler\n#else\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R0              ; Set PSPLIM\n#endif\n\nSys_ContextRestore2\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 241, "line_end": 290}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s:8", "text": "MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s", "line_start": 281, "line_end": 290}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s:1", "text": "NAME    irq_armv8mbl_ns.s\n                #define DOMAIN_NS 1\n                INCLUDE irq_armv8mbl_common.s\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s:1", "text": "NAME    irq_armv8mbl_ns.s\n                #define __DOMAIN_NS 1\n                INCLUDE irq_armv8mbl_common.s\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s:1", "text": "NAME irq_armv8mbl_ns.s\n#define __DOMAIN_NS 1\n                INCLUDE  irq_armv8mbl_common.s\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_ns.s", "line_start": 1, "line_end": 5}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv8mml.s\n\n\n                #include \"rtx_def.h\"\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\n#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:2", "text": "MVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #ifdef RTX_TZ_CONTEXT\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:3", "text": "IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #ifdef RTX_TZ_CONTEXT\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:4", "text": "BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #ifdef RTX_TZ_CONTEXT\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:5", "text": "#endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              #endif\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRSB    LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:6", "text": "#endif\n\nSVC_ContextSaveRegs\n                LDRSB    LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            #ifdef RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n\n            #ifdef RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CMP      R0,#0\n                IT       NE                     ; If TrustZone memory allocated\n                BLNE     TZ_LoadContext_S       ;  Load secure context\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP\n                BXNE     LR                     ;  Exit from handler\n            #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:7", "text": "#ifdef RTX_TZ_CONTEXT\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CMP      R0,#0\n                IT       NE                     ; If TrustZone memory allocated\n                BLNE     TZ_LoadContext_S       ;  Load secure context\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP\n                BXNE     LR                     ;  Exit from handler\n            #endif\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:8", "text": "BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 281, "line_end": 324}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2023 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv8mml.s\n\n\n                #include \"rtx_def.h\"\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\n#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\nTCB_ZONE_OFS    EQU      68                     ; TCB.zone offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\nosRtxErrorSVC   EQU      6                      ; Invalid SVC function called\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:3", "text": "#endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOVS     R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:4", "text": "LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUBS     R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:5", "text": "CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              #endif\n                MOVS     R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRSB    LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:6", "text": "LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRSB    LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            #ifdef RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CMP      R0,#0\n                IT       NE                     ; If TrustZone memory allocated\n                BLNE     TZ_LoadContext_S       ;  Load secure context\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:7", "text": "SVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CMP      R0,#0\n                IT       NE                     ; If TrustZone memory allocated\n                BLNE     TZ_LoadContext_S       ;  Load secure context\n            #endif\n\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRSB    LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                ITT      NE                     ; If secure\n                MSRNE    PSP,R0                 ;  Set PSP\n                BXNE     LR                     ;  Exit from handler\n            #endif\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:8", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n            #ifdef RTX_SAFETY_FEATURES\n\nosFaultResume   PROC\n                EXPORT   osFaultResume\n\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n                ALIGN\n                ENDP\n\n            #endif\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "b430bb466285739ae1583224b89cf68176867344", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/b430bb466285739ae1583224b89cf68176867344/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 281, "line_end": 327}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:3", "text": "#endif\n            #ifdef RTX_SVC_PTR_CHECK\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Base|\n                IMPORT   |Image$$RTX_SVC_VENEERS$$Length|\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #ifdef RTX_EXECUTION_ZONE\n                IMPORT   osZoneSetup_Callback\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n            #ifdef RTX_SVC_PTR_CHECK\n\n                LDR      R12,[R0,#16]           ; Load function address from stack\n                SUB      R1,R12,#1              ; Clear T-bit of function address\n                LSLS     R2,R1,#30              ; Check if 4-byte aligned\n                BEQ      SVC_PtrBoundsCheck     ; Branch if address is aligned\n\nSVC_PtrInvalid\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                MOV      R0,#osRtxErrorSVC      ; Parameter: code\n                MOV      R1,R12                 ; Parameter: object_id\n                BL       osRtxKernelErrorNotify ; Call osRtxKernelErrorNotify\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                B        SVC_Context            ; Branch to context handling\n\nSVC_PtrBoundsCheck\n                LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUB      R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:4", "text": "LDR      R2,=|Image$$RTX_SVC_VENEERS$$Base|\n                LDR      R3,=|Image$$RTX_SVC_VENEERS$$Length|\n                SUB      R2,R1,R2               ; Subtract SVC table base address\n                CMP      R2,R3                  ; Compare with SVC table boundaries\n                BHS      SVC_PtrInvalid         ; Branch if address is out of bounds\n\n              #endif\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:5", "text": "CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                MOV      R4,R1                  ; Assign osRtxInfo.thread.run.curr to R4\n              #endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n                MOVS     R1,#0                  ; Simulate deleted running thread\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:6", "text": "LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n                 MOVS     R4,R2                 ; Assign osRtxInfo.thread.run.next to R4, clear Z flag\n            #ifdef RTX_EXECUTION_ZONE\n                 LDRB     R0,[R2,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.next: zone\n                 CBZ      R1,SVC_ZoneSetup      ; Branch if running thread is deleted (Z flag unchanged)\n                 LDRB     R1,[R1,#TCB_ZONE_OFS] ; Load osRtxInfo.thread.run.curr: zone\n                 CMP      R0,R1                 ; Check if next:zone == curr:zone\n\nSVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:7", "text": "SVC_ZoneSetup\n                 IT       NE                    ; If zone has changed or running thread is deleted\n                 BLNE     osZoneSetup_Callback  ;  Setup zone for next thread\n            #endif\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R4,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS ; Branch if there is no secure context\n                BL       TZ_LoadContext_S       ; Load secure context\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R4,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R4,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "744dcbf9908ae5c7994f8cb41ac9f1170f11777c", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/744dcbf9908ae5c7994f8cb41ac9f1170f11777c/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME     irq_armv8mml.s\n\n\n                #include \"rtx_def.h\"\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\n#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:3", "text": "IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:4", "text": "CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                SUBEQ    R12,R12,#64            ;  Additional space for S16..S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\n                PUSH     {R1,R2}                ; Save osRtxInfo.thread.run: curr & next\n                MOV      R0,R1                  ; Parameter: osRtxInfo.thread.run.curr\n                BL       osRtxThreadStackCheck  ; Check if thread stack is overrun\n                POP      {R1,R2}                ; Restore osRtxInfo.thread.run: curr & next\n                CBNZ     R0,SVC_ContextSaveRegs ; Branch when stack check is ok\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                MOV      R4,R1                  ; Save osRtxInfo.thread.run.curr\n              #endif\n                MOV      R0,#osRtxErrorStackOverflow ; Parameter: r0=code, r1=object_id\n                BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:5", "text": "BL       osRtxKernelErrorNotify      ; Call osRtxKernelErrorNotify\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS   ; Load address of osRtxInfo.thread.run\n                LDR      R2,[R3,#4]             ; Load osRtxInfo.thread.run: next\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                LDRB     LR,[R4,#TCB_SF_OFS]    ; Load stack frame information\n                B        SVC_FP_LazyState       ; Branch to FP lazy state handling\n              #else\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #endif\n\nSVC_ContextSaveRegs\n                LDRB     LR,[R1,#TCB_SF_OFS]    ; Load stack frame information\n              #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore     ; Branch if secure\n              #endif\n                LDR      R12,[R1,#TCB_SP_OFS]   ; Load SP\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMIAEQ R12!,{S16-S31}         ;  Save VFP S16..S31\n              #endif\n                STM      R12,{R4-R11}           ; Save R4..R11\n            #else\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              #endif\n\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n            #endif\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:6", "text": "CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:7", "text": "BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "6b8c7559606b4a1277c3ef10b3a6ac1738d01796", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6b8c7559606b4a1277c3ef10b3a6ac1738d01796/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 241, "line_end": 270}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:2", "text": "#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\nosRtxErrorStackOverflow\\\n                EQU      1                      ; Stack overflow\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #ifdef RTX_STACK_CHECK\n                IMPORT   osRtxThreadStackCheck\n                IMPORT   osRtxKernelErrorNotify\n            #endif\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:3", "text": "IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\nSVC_FP_LazyState\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextRestore     ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextRestore     ; Branch to context restore handling\n              #else\n                CBZ      R1,SVC_ContextRestore  ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n            #ifdef RTX_STACK_CHECK\n                SUB      R12,R12,#32            ; Calculate SP: space for R4..R11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "88f2b4fc1fb814dfc562b4555dc16640fd9537e2", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/88f2b4fc1fb814dfc562b4555dc16640fd9537e2/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:1", "text": "NAME    irq_armv8mml.s\n                #define DOMAIN_NS 0\n                INCLUDE irq_armv8mml_common.s\n                END", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:1", "text": "NAME    irq_armv8mml.s\n                #define __DOMAIN_NS 0\n                INCLUDE irq_armv8mml_common.s\n                END", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s:1", "text": "NAME     irq_armv8mml.s\n#define __DOMAIN_NS 0\n                INCLUDE  irq_armv8mml_common.s\n        END", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2021 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8-M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\n#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:2", "text": "#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\nFPCCR           EQU      0xE000EF34             ; FPCCR Address\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n            #if (DOMAIN_NS != 0)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n            #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0                  ; Check SVC number\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:3", "text": "BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.thread.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                BNE      SVC_ContextSwitch      ; Branch if not extended stack frame\n                LDR      R3,=FPCCR              ; FPCCR Address\n                LDR      R0,[R3]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state preservation)\n                STR      R0,[R3]                ; Store FPCCR\n                B        SVC_ContextSwitch      ; Branch to context switch handling\n              #else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n              #endif\n\nSVC_ContextSave\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave_NS  ; Branch if there is no secure context\n                PUSH     {R1,R2,R12,LR}         ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R12,LR}         ; Restore registers and EXC_RETURN\n            #endif\n\nSVC_ContextSave_NS\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              #endif\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:4", "text": "BNE      SVC_ContextSaveSP      ; Branch if secure\n            #endif\n\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n              #endif\nSVC_ContextSaveSP\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n            #if (DOMAIN_NS != 0)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore_NS; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n            #endif\n\nSVC_ContextRestore_NS\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDR      R1,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                MSR      PSPLIM,R1              ; Set PSPLIM\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                ORN      LR,R1,#0xFF            ; Set EXC_RETURN\n\n            #if (DOMAIN_NS != 0)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestoreSP   ; Branch if secure\n            #endif\n\n              #if ((FPU_USED != 0) || (MVE_USED != 0))\n                TST      LR,#0x10               ; Determine stack frame from EXC_RETURN bit 4\n                IT       EQ                     ; If extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n              #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestoreSP\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP                ; Save PSP to R12\n                B        SVC_Context            ; Branch to context handling", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "c1b641a09afd4e8e9e6d5b2cafe21caf38456999", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c1b641a09afd4e8e9e6d5b2cafe21caf38456999/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 206}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\nFPU_USED        EQU      1\n#else\nFPU_USED        EQU      0\n#endif\n\n#if (defined(__ARM_FEATURE_MVE) && (__ARM_FEATURE_MVE > 0))\nMVE_USED        EQU      1\n#else\nMVE_USED        EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:2", "text": "#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                #if    ((FPU_USED == 1) || (MVE_USED == 1))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:3", "text": "PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                #if    ((FPU_USED == 1) || (MVE_USED == 1))\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                #else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                #endif\n\nSVC_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if    ((FPU_USED == 1) || (MVE_USED == 1))\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:4", "text": "IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if    ((FPU_USED == 1) || (MVE_USED == 1))\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:6", "text": "Sys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n\nSys_ContextSave1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave3       ; Branch if secure\n                #endif\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if    ((FPU_USED == 1) || (MVE_USED == 1))\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:7", "text": "Sys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if    ((FPU_USED == 1) || (MVE_USED == 1))\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "1dd090bd1c6d196da96241420a40090bf09c0b13", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/1dd090bd1c6d196da96241420a40090bf09c0b13/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 241, "line_end": 280}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2020 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\n__FPU_USED      EQU      1\n#else\n__FPU_USED      EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                #if     (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                #else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                #if     (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                #else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                #endif\n\nSVC_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:4", "text": "STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n\nSys_ContextSave1\n                TST      LR,#0x40               ; Check domain of interrupted thread", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:6", "text": "IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n\nSys_ContextSave1\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave3       ; Branch if secure\n                #endif\n\nSys_ContextSave2\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSys_ContextSave3\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:7", "text": "Sys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "812b99b0dddf018b249565b0df918c8f6c8aae9b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/812b99b0dddf018b249565b0df918c8f6c8aae9b/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 241, "line_end": 274}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\n__FPU_USED      EQU      1\n#else\n__FPU_USED      EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "302d4fb1ab650618fccc22b26d1b3618b504968e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/302d4fb1ab650618fccc22b26d1b3618b504968e/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:6", "text": "IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                #endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:7", "text": "#if     (DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 241, "line_end": 272}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\n__FPU_USED      EQU      1\n#else\n__FPU_USED      EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef DOMAIN_NS\n#define DOMAIN_NS        0\n#endif\n\n#ifdef __ARMVFP__\n__FPU_USED      EQU      1\n#else\n__FPU_USED      EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n#ifndef __DOMAIN_NS\n#define __DOMAIN_NS      0\n#endif\n\n#ifdef __ARMVFP__\n__FPU_USED      EQU      1\n#else\n__FPU_USED      EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:2", "text": "TCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION  .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION  .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                #if     (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                #else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                #if     (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n                #else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n                #endif\n\nSVC_ContextSave\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                #endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:4", "text": "STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n                #if     (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:6", "text": "IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n                #endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n                #endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n                #endif\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n                #if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                #endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:7", "text": "#if     (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n                #endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                #if     (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n                #endif\n\n                #if     (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                #endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 241, "line_end": 272}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:1", "text": ";/*\n; * Copyright (c) 2016-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       ARMv8M Mainline Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n\n#ifndef __DOMAIN_NS\n#define __DOMAIN_NS 0\n#endif\n\n#ifdef __ARMVFP__\n__FPU_USED      EQU      1\n#else\n__FPU_USED      EQU      0\n#endif\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SM_OFS      EQU      48                     ; TCB.stack_mem offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION     .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION     .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:2", "text": "TCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION     .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION     .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n#if (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n#else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:3", "text": "SVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n#if (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n#else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n#endif\n\nSVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n#endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n#endif\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:4", "text": "STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n#endif\n\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n#endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "SVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:6", "text": "#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n#endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n#endif\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:7", "text": "Sys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n#endif\n\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n#endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 241, "line_end": 273}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:2", "text": "TCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\nTCB_TZM_OFS     EQU      64                     ; TCB.tz_memory offset\n\n\n                PRESERVE8\n\n\n                SECTION     .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                SECTION     .text:CODE:NOROOT(2)\n                THUMB\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n#if (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n#else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n#endif\n\nSVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:3", "text": "CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n#if (__FPU_USED == 1)\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,#1                  ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n#else\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n#endif\n\nSVC_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n#endif\n\nSVC_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n#endif\n\nSVC_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:4", "text": "SVC_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,SVC_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSVC_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      SVC_ContextRestore2    ; Branch if secure\n#endif\n\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n#endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSVC_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:5", "text": "LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                B        Sys_Context\n\n\n\nSys_Context\n                EXPORT   Sys_Context\n                IMPORT   osRtxInfo\n#if (__DOMAIN_NS == 1)\n                IMPORT   TZ_LoadContext_S\n                IMPORT   TZ_StoreContext_S\n#endif\n\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:6", "text": "LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\nSys_ContextSave\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R1,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextSave1    ; Branch if there is no secure context\n                PUSH     {R1,R2,R3,LR}          ; Save registers and EXC_RETURN\n                BL       TZ_StoreContext_S      ; Store secure context\n                POP      {R1,R2,R3,LR}          ; Restore registers and EXC_RETURN\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                IT       NE\n                MRSNE    R0,PSP                 ; Get PSP\n                BNE      Sys_ContextSave2       ; Branch if secure\n#endif\n\nSys_ContextSave1\n                MRS      R0,PSP                 ; Get PSP\n                STMDB    R0!,{R4-R11}           ; Save R4..R11\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                VSTMDBEQ R0!,{S16-S31}          ;  Save VFP S16.S31\n#endif\n\nSys_ContextSave2\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STRB     LR,[R1,#TCB_SF_OFS]    ; Store stack frame information\n\nSys_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.run: curr = next\n\nSys_ContextRestore\n#if (__DOMAIN_NS == 1)\n                LDR      R0,[R2,#TCB_TZM_OFS]   ; Load TrustZone memory identifier\n                CBZ      R0,Sys_ContextRestore1 ; Branch if there is no secure context\n                PUSH     {R2,R3}                ; Save registers\n                BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n#endif\n\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s:7", "text": "BL       TZ_LoadContext_S       ; Load secure context\n                POP      {R2,R3}                ; Restore registers\n#endif\n\nSys_ContextRestore1\n                LDR      R0,[R2,#TCB_SM_OFS]    ; Load stack memory base\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                MSR      PSPLIM,R0              ; Set PSPLIM\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n#if (__DOMAIN_NS == 1)\n                TST      LR,#0x40               ; Check domain of interrupted thread\n                BNE      Sys_ContextRestore2    ; Branch if secure\n#endif\n\n#if (__FPU_USED == 1)\n                TST      LR,#0x10               ; Check if extended stack frame\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n#endif\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n\nSys_ContextRestore2\n                MSR      PSP,R0                 ; Set PSP\n\nSys_ContextExit\n                BX       LR                     ; Exit from handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s", "line_start": 241, "line_end": 267}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s:1", "text": "NAME    irq_armv8mml_ns.s\n                #define DOMAIN_NS 1\n                INCLUDE irq_armv8mml_common.s\n                END", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s", "license": "Apache-2.0", "commit": "8bce76b03565359f31cd20ed86c2755ade2e22ea", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8bce76b03565359f31cd20ed86c2755ade2e22ea/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s:1", "text": "NAME    irq_armv8mml_ns.s\n                #define __DOMAIN_NS 1\n                INCLUDE irq_armv8mml_common.s\n                END", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s", "license": "Apache-2.0", "commit": "ec3326c61f84e4f52d28efb4a2cca8f21a83cb96", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec3326c61f84e4f52d28efb4a2cca8f21a83cb96/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s:1", "text": "NAME irq_armv8mml_ns.s\n#define __DOMAIN_NS 1\n                INCLUDE  irq_armv8mml_common.s\n        END", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s", "license": "Apache-2.0", "commit": "301d61af0a31f57fa276639bd63899e8e171ad88", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/301d61af0a31f57fa276639bd63899e8e171ad88/CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_ns.s", "line_start": 1, "line_end": 4}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:2", "text": "TCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:3", "text": "BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "IRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor for interrupted code\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                LDR     R0, =osRtxInfo", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                CLREX                               ; Clear exclusive monitor\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                CLREX                               ; Clear exclusive monitor\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n                #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "647a940cb2e7e64fe87b59bf037d1d05efd9d2d4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/647a940cb2e7e64fe87b59bf037d1d05efd9d2d4/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 441}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:3", "text": "BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPSR_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "LDR     R1, [R0]\n                SUBS    R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment IRQ nesting level\n                STR     R1, [R0]\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "SVC_FuncCall\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                LDR     R0, =osRtxInfo\n                LDR     R1, [R0, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R0, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\nSVC_ContextCheck\n                BL      osRtxContextSwitch          ; Continue in context switcher\n\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement IRQ nesting level\n                STR     R1, [R0]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n\n                PUSH    {LR}\n\n                ; Check interrupt nesting level\n                LDR     R0, =IRQ_NestLevel\n                LDR     R1, [R0]                    ; Load IRQ nest level\n                CMP     R1, #1\n                BNE     osRtxContextExit            ; Nesting interrupts, exit context switcher\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                LDR     R2, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R3, [R2]                    ; Load PendSV flag\n\n                CMP     R0, R1                      ; Check if context switch is required\n                BNE     osRtxContextCheck           ; Not equal, check if context save required\n                CMP     R3, #1                      ; Compare IRQ_PendSV value\n                BNE     osRtxContextExit            ; No post processing (and no context switch requested)\n\nosRtxContextCheck\n                STR     R1, [R12]                   ; Store run.next as run.curr\n                ; R0 = curr, R1 = next, R2 = &IRQ_PendSV, R3 = IRQ_PendSV, R12 = &osRtxInfo.thread.run\n                PUSH    {R1-R3, R12}\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                BEQ     osRtxPostProcess            ; Current deleted, skip context save\n\nosRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "osRtxContextSave\n                MOV     LR, R0                      ; Move &osRtxInfo.thread.run.curr to LR\n                MOV     R0, SP                      ; Move SP_svc into R0\n                ADD     R0, R0, #20                 ; Adjust SP_svc to R0 of the basic frame\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R1}                        ; Pop SP_usr into R1\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to R4 of the basic frame\n                STMIA   R1!, {R4-R11}               ; Save R4-R11 to user stack\n                LDMIA   R0!, {R4-R8}                ; Load stacked R0-R3,R12 into R4-R8\n                STMIA   R1!, {R4-R8}                ; Store them to user stack\n                STM     R1, {LR}^                   ; Store LR_usr directly\n                ADD     R1, R1, #4                  ; Adjust user sp to PC\n                LDMIB   R0!, {R5-R6}                ; Load current PC, CPSR\n                STMIA   R1!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R1, R1, #64                 ; Adjust SP_usr to stacked R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R1!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R1!, {D0-D15}               ; Save D0-D15\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R1!, {D16-D31}              ; Save D16-D31\n                #endif\n\n                LDRB    R2, [LR, #TCB_SP_FRAME]     ; Load osRtxInfo.thread.run.curr frame info\n                #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [LR, #TCB_SP_FRAME]     ; Store VFP/NEON state\n\nosRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "osRtxContextSave1\n                STR     R1, [LR, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxPostProcess\n                ; RTX IRQ post processing check\n                POP     {R8-R11}                    ; Pop R8 = run.next, R9 = &IRQ_PendSV, R10 = IRQ_PendSV, R11 = &osRtxInfo.thread.run\n                CMP     R10, #1                     ; Compare PendSV value\n                BNE     osRtxContextRestore         ; Skip post processing if not pending\n\n                MOV     R4, SP                      ; Move SP_svc into R4\n                AND     R4, R4, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R4                  ; Adjust stack\n\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       osRtxPendCheck\nosRtxPendExec\n                STRB    R6, [R9]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nosRtxPendCheck\n                LDR     R8, [R11, #4]               ; Load osRtxInfo.thread.run.next\n                STR     R8, [R11]                   ; Store run.next as run.curr\n                LDRB    R0, [R9]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     osRtxPendExec               ; Branch to PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n\n                ADD     SP, SP, R4                  ; Restore stack adjustment\n\nosRtxContextRestore\n                LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "LDR     LR, [R8, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R8, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; VFP/NEON state not stacked, disable VFP/NEON\n                ORRNE   R2, R2, #0x00F00000         ; VFP/NEON state is stacked, enable VFP/NEON\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Sync if VFP was enabled\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  LR!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  LR!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [LR]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     LR, LR, #8                  ; Adjust sp pointer to R4\n\nosRtxContextRestore1\n                LDMIA   LR!, {R4-R11}               ; Restore R4-R11\n                ADD     R12, LR, #32                ; Adjust sp and save it into R12\n                PUSH    {R12}                       ; Push sp onto stack\n                LDM     SP, {SP}^                   ; Restore SP_usr directly\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   LR!, {R0-R3, R12}           ; Load user registers R0-R3,R12\n                STMIB   SP!, {R0-R3, R12}           ; Store them to SP_svc\n                LDM     LR, {LR}^                   ; Restore LR_usr directly\n                LDMIB   LR!, {R0-R1}                ; Load user registers PC,CPSR\n                ADD     SP, SP, #4\n                STMIB   SP!, {R0-R1}                ; Store them to SP_svc\n                SUB     SP, SP, #32                 ; Adjust SP_svc to stacked LR\n\nosRtxContextExit\n                POP     {PC}                        ; Return\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d062bec84dfa389b52c0ffb2a1f9e03e79bc3217", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d062bec84dfa389b52c0ffb2a1f9e03e79bc3217/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 436}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:2", "text": "TCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:3", "text": "CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                ADD     R2, R2, #1                  ; Increment IRQ nesting level\n                STR     R2, [R3]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                ADD     R2, R2, #1                  ; Increment IRQ nesting level\n                STR     R2, [R3]\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]                    ; Load IRQ nest level\n                CMP     R2, #1\n                BNE     IRQ_Exit                    ; Nesting interrupts, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending\n\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       IRQ_PendCheck", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending\n\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R4]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                LDR     R3, =IRQ_NestLevel\n                LDR     R2, [R3]\n                SUBS    R2, R2, #1                  ; Decrement IRQ nesting level\n                STR     R2, [R3]\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "#ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 452}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:12", "text": "ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "0b7a4a9f170f6693db98c1fab15318ec7fd28510", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b7a4a9f170f6693db98c1fab15318ec7fd28510/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 441, "line_end": 452}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending\n\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; SVC active, exit from IRQ handler\n\n                ; RTX IRQ post processing check\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BNE     IRQ_SwitchCheck             ; Skip post processing if not pending\n\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                ; Disable OS Tick\n                LDR     R5, =osRtxInfo              ; Load address of osRtxInfo\n                LDR     R5, [R5, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                MOV     R0, R5                      ; Set it as function parameter\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\n                MOV     R6, #0                      ; Set PendSV clear value\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R4]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R4]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n\n                ; Re-enable OS Tick\n                MOV     R0, R5                      ; Restore irqn as function parameter\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "osRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "osRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "184017eafa24708065d494d76a4b27c93114697b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/184017eafa24708065d494d76a4b27c93114697b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 442}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "SVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "SVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #ifdef  __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #ifdef  __ARM_ADVANCED_SIMD__\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 429}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "d7783e47418cd396859ad818f5147fa4df927b11", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d7783e47418cd396859ad818f5147fa4df927b11/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "SVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                #ifdef __ARM_ADVANCED_SIMD__\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #ifdef __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "be23d592403e7b79f3d51e4e3b4e4d46df281421", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/be23d592403e7b79f3d51e4e3b4e4d46df281421/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n\n                VSTMDB  R3!, {D0-D15}               ; Save D0-D15\n                #ifdef __ARM_ADVANCED_SIMD__\n                VSTMDB  R3!, {D16-D31}              ; Save D16-D31\n                #endif\n                LDRB    R2, [R0, #TCB_SP_FRAME]\n                #ifdef __ARM_ADVANCED_SIMD__\n                ORR     R2, R2, #4                  ; NEON state\n                #else\n                ORR     R2, R2, #2                  ; VFP state\n                #endif\n                STRB    R2, [R0, #TCB_SP_FRAME]     ; Record VFP/NEON state\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                #ifdef __ARM_ADVANCED_SIMD__\n                VLDMIA  R3!, {D16-D31}              ; Restore D16-D31\n                #endif\n                VLDMIA  R3!, {D0-D15}               ; Restore D0-D15\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2                   ; Restore FPSCR\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "be23d592403e7b79f3d51e4e3b4e4d46df281421", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/be23d592403e7b79f3d51e4e3b4e4d46df281421/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "SVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n#if (TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16)\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n#endif\n#if (TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32)\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "ef5531995284d460b7aa47c05d33daddf45db679", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef5531995284d460b7aa47c05d33daddf45db679/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n#if (TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 16)\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n#endif\n#if (TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32)\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n#endif\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n#if (TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32)\n                VLDMIA  R3!, {D16-D31}\n#endif\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "ef5531995284d460b7aa47c05d33daddf45db679", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef5531995284d460b7aa47c05d33daddf45db679/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "#if (TARGET_FEATURE_EXTENSION_REGISTER_COUNT == 32)\n                VLDMIA  R3!, {D16-D31}\n#endif\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "ef5531995284d460b7aa47c05d33daddf45db679", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ef5531995284d460b7aa47c05d33daddf45db679/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 430}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nK_STATE_RUNNING EQU      2                          ; osKernelState_t::osKernelRunning\nI_K_STATE_OFS   EQU      8                          ; osRtxInfo.kernel.state offset\nI_TICK_IRQN_OFS EQU      16                         ; osRtxInfo.tick_irqn offset\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:2", "text": "TCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:3", "text": "MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "IRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_SVC              ; Save LR_irq and SPRS_irq on to the SVC stack\n                CPS     #MODE_SVC                   ; Change to SVC mode\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n\n                LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                ADD     SP, SP, #4                  ; Adjust SP_svc\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "9687df31663ee71eca3f6e49816ee59be6683035", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9687df31663ee71eca3f6e49816ee59be6683035/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 431}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "IRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  IRQ_GetActiveIRQ\n                IMPORT  IRQ_GetHandler\n                IMPORT  IRQ_EndOfInterrupt\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     IRQ_GetActiveIRQ            ; Retrieve interrupt ID into R0\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     IRQ_GetHandler              ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   ; Change to SVC mode\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and alignment dummy(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     IRQ_EndOfInterrupt          ; Signal end of interrupt\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  IRQ_Disable\n                IMPORT  IRQ_Enable\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n\n                LDR     R3, =osRtxInfo\n                LDR     R1, [R3, #I_K_STATE_OFS]    ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_FuncCall                ; Continue if kernel is not running\n                LDR     R0, [R3, #I_TICK_IRQN_OFS]  ; Load OS Tick irqn\n                BLX     IRQ_Disable                 ; Disable OS Tick interrupt\nSVC_FuncCall\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "LDR     R12, =osRtxInfo\n                LDR     R1, [R12, #I_K_STATE_OFS]   ; Load RTX5 kernel state\n                CMP     R1, #K_STATE_RUNNING        ; Check osKernelRunning\n                BLT     SVC_ContextCheck            ; Continue if kernel is not running\n                LDR     R0, [R12, #I_TICK_IRQN_OFS] ; Load OS Tick irqn\n                BLX     IRQ_Enable                  ; Enable OS Tick interrupt\nSVC_ContextCheck\n                ADD     R12, R12, #I_T_RUN_OFS      ; Load address of osRtxInfo.thread.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "osRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "77391f38580b3adb38b650c1eba9fa02d91f811b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/77391f38580b3adb38b650c1eba9fa02d91f811b/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 441}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nI_T_RUN_OFS     EQU      20                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:2", "text": "PRESERVE8\n                ARM\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\n                EXPORT   IRQ_PendSV\nIRQ_NestLevel   DCD      0                          ; IRQ nesting level counter\nIRQ_PendSV      DCB      0                          ; Pending SVC flag\nSVC_Active      DCB      0                          ; SVC handler execution active flag\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:3", "text": "; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                LDR     LR, [SP, #24]               ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]               ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                ADD     SP, SP, #8                  ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n\n\nPAbt_Handler\n                EXPORT  PAbt_Handler\n                IMPORT  CPAbtHandler\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1       ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2       ; IFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  osRtxInfo\n                IMPORT  osRtxIrqGetId\n                IMPORT  osRtxIrqGetHandler\n                IMPORT  osRtxIrqSetEnd\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     osRtxIrqGetId               ; Retrieve interrupt ID into R0\n                CMP     R0, #-1                     ; Check if interrupt valid\n                BEQ     IRQ_Exit                    ; Spurious interrupt if -1, exit IRQ\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "IMPORT  osRtxIrqGetId\n                IMPORT  osRtxIrqGetHandler\n                IMPORT  osRtxIrqSetEnd\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and user data(R4)\n\n                BLX     osRtxIrqGetId               ; Retrieve interrupt ID into R0\n                CMP     R0, #-1                     ; Check if interrupt valid\n                BEQ     IRQ_Exit                    ; Spurious interrupt if -1, exit IRQ\n                MOV     R4, R0                      ; Move interrupt ID to R4\n\n                LDR     R1, =IRQ_NestLevel\n                LDR     R3, [R1]                    ; Load IRQ nest level and increment it\n                ADD     R3, R3, #1\n                STR     R3, [R1]\n\n                BLX     osRtxIrqGetHandler          ; Retrieve interrupt handler address for current ID\n                CMP     R0, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n\n                CPS     #MODE_SVC                   ; Change to SVC mode\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R3, R4}                    ; Store stack adjustment(R3) and alignment dummy(R4)\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R0                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R3, R4}\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "CPS     #MODE_IRQ                   ; Change to IRQ mode\n\nIRQ_End\n                MOV     R0, R4                      ; Move interrupt ID to R0\n                BLX     osRtxIrqSetEnd\n\n                LDR     R2, =IRQ_NestLevel\n                LDR     R1, [R2]                    ; Load IRQ nest level and\n                SUBS    R1, R1, #1                  ; decrement it\n                STR     R1, [R2]\n                BNE     IRQ_Exit                    ; Not zero, exit from IRQ handler\n\n                LDR     R0, =SVC_Active\n                LDRB    R0, [R0]                    ; Load SVC_Active flag\n                CMP     R0, #0\n                BNE     IRQ_SwitchCheck             ; Skip post processing when SVC active\n\n                ; RTX IRQ post processing check\n                PUSH    {R5, R6}                    ; Save user R5 and R6\n                MOV     R6, #0\n                LDR     R5, =IRQ_PendSV             ; Load address of IRQ_PendSV flag\n                B       IRQ_PendCheck\nIRQ_PendExec\n                STRB    R6, [R5]                    ; Clear PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nIRQ_PendCheck\n                LDRB    R0, [R5]                    ; Load PendSV flag\n                CMP     R0, #1                      ; Compare PendSV value\n                BEQ     IRQ_PendExec                ; Branch to IRQ_PendExec if PendSV is set\n                POP     {R5, R6}                    ; Restore user R5 and R6\n\nIRQ_SwitchCheck\n                ; RTX IRQ context switch check\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     IRQ_Exit\n\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqEnableTick\n                IMPORT  osRtxIrqDisableTick\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n                B       osRtxContextSwitch\n\nIRQ_Exit\n                POP     {R3, R4}                    ; Restore stack adjustment(R3) and user data(R4)\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqEnableTick\n                IMPORT  osRtxIrqDisableTick\n                IMPORT  osRtxPendSV_Handler\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqDisableTick         ; Disable System Timer interrupt\n                LDR     R0, =SVC_Active\n                MOV     R1, #1\n                STRB    R1, [R0]                    ; Set SVC_Active flag\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                PUSH    {R4, R5}                    ; Save R4 and R5\n                MOV     R5, #0\n                LDR     R4, =IRQ_PendSV             ; Load address of IRQ_PendSV\n                B       SVC_PendCheck\nSVC_PendExec\n                STRB    R5, [R4]                    ; Clear IRQ_PendSV flag\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     osRtxPendSV_Handler         ; Post process pending objects\n                CPSID   i                           ; Disable interrupts\nSVC_PendCheck\n                LDRB    R0, [R4]                    ; Load IRQ_PendSV flag\n                CMP     R0, #1                      ; Compare IRQ_PendSV value\n                BEQ     SVC_PendExec                ; Branch to SVC_PendExec if IRQ_PendSV is set\n                POP     {R4, R5}                    ; Restore R4 and R5\n\n                LDR     R0, =SVC_Active\n                MOV     R1, #0\n                STRB    R1, [R0]                    ; Clear SVC_Active flag\n                BLX     osRtxIrqEnableTick          ; Enable System Timer interrupt\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                ; R0  = osRtxInfo.thread.run.curr\n                ; R1  = osRtxInfo.thread.run.next\n                ; R12 = &osRtxInfo.thread.run\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:11", "text": "ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 401, "line_end": 427}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-A Exception handlers (using GIC)\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n                NAME     irq_ca.s\n\nICDABR0_OFFSET  EQU      0x00000300                 ; GICD: Active Bit Register 0 offset\nICDIPR0_OFFSET  EQU      0x00000400                 ; GICD: Interrupt Priority Register 0 offset\nICCIAR_OFFSET   EQU      0x0000000C                 ; GICI: Interrupt Acknowledge Register offset\nICCEOIR_OFFSET  EQU      0x00000010                 ; GICI: End of Interrupt Register offset\nICCHPIR_OFFSET  EQU      0x00000018                 ; GICI: Highest Pending Interrupt Register offset\n\nMODE_FIQ        EQU      0x11\nMODE_IRQ        EQU      0x12\nMODE_SVC        EQU      0x13\nMODE_ABT        EQU      0x17\nMODE_UND        EQU      0x1B\n\nCPSR_BIT_T      EQU      0x20\n\nI_T_RUN_OFS     EQU      28                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\nID0_Active      DCB      4                          ; Flag used to workaround GIC 390 errata 733075\n\n\n                SECTION .text:CODE:NOROOT(2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:2", "text": "I_T_RUN_OFS     EQU      28                         ; osRtxInfo.thread.run offset\nTCB_SP_FRAME    EQU      34                         ; osRtxThread_t.stack_frame offset\nTCB_SP_OFS      EQU      56                         ; osRtxThread_t.sp offset\n\n\n                PRESERVE8\n                ARM\n\n\n                SECTION .rodata:DATA:NOROOT(2)\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                          ; Non weak library reference\n\n\n                SECTION .data:DATA:NOROOT(2)\nID0_Active      DCB      4                          ; Flag used to workaround GIC 390 errata 733075\n\n\n                SECTION .text:CODE:NOROOT(2)\n\n\nUndef_Handler\n                EXPORT  Undef_Handler\n                IMPORT  CUndefHandler\n\n                SRSFD   SP!, #MODE_UND\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #CPSR_BIT_T             ; Check mode\n                MOVEQ   R1, #4                      ; R1 = 4 ARM mode\n                MOVNE   R1, #2                      ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                    ; ARM mode - R0 points to offending instruction\n                BEQ     Undef_Cont\n\n                ; Thumb instruction\n                ; Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1C\n                CMP     R2, R0, LSR #11\n                BHS     Undef_Cont                  ; 16-bit Thumb instruction\n\n                ; 32-bit Thumb instruction. Unaligned - reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nUndef_Cont\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                ; R0 =Offending instruction, R1 =2(Thumb) or =4(ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:4", "text": "AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stack APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nDAbt_Handler\n                EXPORT  DAbt_Handler\n                IMPORT  CDAbtHandler\n\n                SUB     LR, LR, #8                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_ABT              ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}                ; Save APCS corruptible registers to ABT mode stack\n                CLREX                               ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0       ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0       ; DFAR\n\n                MOV     R2, LR                      ; Set LR to third argument\n\n                AND     R12, SP, #4                 ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12                 ; Adjust stack\n                PUSH    {R12, LR}                   ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                   ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12                 ; Unadjust stack\n\n                POP     {R0-R4, R12}                ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n\nIRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQTable\n                IMPORT  IRQCount\n                IMPORT  osRtxIrqHandler\n                IMPORT  irqRtxGicBase\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                ; Identify and acknowledge interrupt\n                LDR     R1, =irqRtxGicBase;\n                LDR     R1, [R1, #4]\n                LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read GICI ICCHPIR to avoid GIC 390 errata 801120\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read GICI ICCIAR\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                ; Workaround GIC 390 errata 733075 - see GIC-390_Errata_Notice_v6.pdf dated 09-Jul-2014\n                ; The following workaround code is for a single-core system.  It would be different in a multi-core system.", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:5", "text": "IRQ_Handler\n                EXPORT  IRQ_Handler\n                IMPORT  IRQTable\n                IMPORT  IRQCount\n                IMPORT  osRtxIrqHandler\n                IMPORT  irqRtxGicBase\n\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #MODE_IRQ              ; Save LR_irq and SPRS_irq\n                PUSH    {R0-R3, R12, LR}            ; Save APCS corruptible registers\n\n                ; Identify and acknowledge interrupt\n                LDR     R1, =irqRtxGicBase;\n                LDR     R1, [R1, #4]\n                LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read GICI ICCHPIR to avoid GIC 390 errata 801120\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read GICI ICCIAR\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                ; Workaround GIC 390 errata 733075 - see GIC-390_Errata_Notice_v6.pdf dated 09-Jul-2014\n                ; The following workaround code is for a single-core system.  It would be different in a multi-core system.\n                ; If the ID is 0 or 0x3FE or 0x3FF, then the GIC CPU interface may be locked-up so unlock it, otherwise service the interrupt as normal\n                ; Special IDs 1020=0x3FC and 1021=0x3FD are reserved values in GICv1 and GICv2 so will not occur here\n                CMP     R0, #0\n                BEQ     IRQ_Unlock\n                MOV     R2, #0x3FE\n                CMP     R0, R2\n                BLT     IRQ_Normal\nIRQ_Unlock\n                ; Unlock the CPU interface with a dummy write to ICDIPR0\n                LDR     R2, =irqRtxGicBase\n                LDR     R2, [R2]\n                LDR     R3, [R2, #ICDIPR0_OFFSET]\n                STR     R3, [R2, #ICDIPR0_OFFSET]\n                DSB                                 ; Ensure the write completes before continuing\n\n                ; If the ID is 0 and it is active and has not been seen before, then service it as normal,\n                ; otherwise the interrupt should be treated as spurious and not serviced.\n                CMP     R0, #0\n                BNE     IRQ_Exit                    ; Not 0, so spurious\n                LDR     R3, [R2, #ICDABR0_OFFSET]   ; Get the interrupt state\n                TST     R3, #1\n                BEQ     IRQ_Exit                    ; Not active, so spurious\n                LDR     R2, =ID0_Active\n                LDRB    R3, [R2]\n                CMP     R3, #1\n                BEQ     IRQ_Exit                    ; Seen it before, so spurious\n\n                ; Record that ID0 has now been seen, then service it as normal\n                MOV     R3, #1\n                STRB    R3, [R2]\n                ; End of Workaround GIC 390 errata 733075\n\nIRQ_Normal\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Check if IRQ ID is within range\n                MOV     R2, #0\n                BHS     IRQ_End                     ; Out of range, return as normal\n                LDR     R2, =IRQTable               ; Read IRQ handler address from IRQ table\n                LDR     R2, [R2, R0, LSL #2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:6", "text": "TST     R3, #1\n                BEQ     IRQ_Exit                    ; Not active, so spurious\n                LDR     R2, =ID0_Active\n                LDRB    R3, [R2]\n                CMP     R3, #1\n                BEQ     IRQ_Exit                    ; Seen it before, so spurious\n\n                ; Record that ID0 has now been seen, then service it as normal\n                MOV     R3, #1\n                STRB    R3, [R2]\n                ; End of Workaround GIC 390 errata 733075\n\nIRQ_Normal\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Check if IRQ ID is within range\n                MOV     R2, #0\n                BHS     IRQ_End                     ; Out of range, return as normal\n                LDR     R2, =IRQTable               ; Read IRQ handler address from IRQ table\n                LDR     R2, [R2, R0, LSL #2]\n                CMP     R2, #0                      ; Check if handler address is 0\n                BEQ     IRQ_End                     ; If 0, end interrupt and return\n                PUSH    {R0, R1}                    ; Store IRQ ID and GIC CPU Interface base address\n\n                CPS     #MODE_SVC                   ; Change to SVC mode\n\n                MOV     R3, SP                      ; Move SP into R3\n                AND     R3, R3, #4                  ; Get stack adjustment to ensure 8-byte alignment\n                SUB     SP, SP, R3                  ; Adjust stack\n                PUSH    {R2, R3, R12, LR}           ; Store handler address(R2), stack adjustment(R3) and user R12, LR\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R2                          ; Call IRQ handler\n                CPSID   i                           ; Disable interrupts\n\n                POP     {R2, R3, R12, LR}           ; Restore handler address(R2), stack adjustment(R3) and user R12, LR\n                ADD     SP, SP, R3                  ; Unadjust stack\n\n                CPS     #MODE_IRQ                   ; Change to IRQ mode\n                POP     {R0, R1}                    ; Restore IRQ ID and GIC CPU Interface base address\n                DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End\n                ; R0 =IRQ ID, R1 =GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =ID0_Active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\n\n                LDR     R3, =osRtxIrqHandler        ; Load osRtxIrqHandler function address\n                CMP     R2, R3                      ; If is the same ass current IRQ handler\n                BEQ     osRtxContextSwitch          ; Call context switcher\n\nIRQ_Exit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End\n                ; R0 =IRQ ID, R1 =GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =ID0_Active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\n\n                LDR     R3, =osRtxIrqHandler        ; Load osRtxIrqHandler function address\n                CMP     R2, R3                      ; If is the same ass current IRQ handler\n                BEQ     osRtxContextSwitch          ; Call context switcher\n\nIRQ_Exit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqLock\n                IMPORT  osRtxIrqUnlock\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRHNE  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                BLX     osRtxIrqUnlock              ; Enable RTX interrupt (timer, PendSV)\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:8", "text": "BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                BLX     osRtxIrqUnlock              ; Enable RTX interrupt (timer, PendSV)\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User\n                PUSH    {R4, R5}\n                LDR     R5,=osRtxUserSVC            ; Load address of SVC table\n                LDR     R4,[R5]                     ; Load SVC maximum number\n                CMP     R12,R4                      ; Check SVC number range\n                BHI     SVC_Done                    ; Branch if out of range\n\n                LDR     R12,[R5,R12,LSL #2]         ; Load SVC Function Address\n                BLX     R12                         ; Call SVC Function\n\nSVC_Done\n                POP     {R4, R5, R12, LR}\n                RFEFD   SP!                         ; Return from exception\n\n\nosRtxContextSwitch\n                EXPORT  osRtxContextSwitch\n\n                LDR     R12, =osRtxInfo+I_T_RUN_OFS ; Load address of osRtxInfo.run\n                LDM     R12, {R0, R1}               ; Load osRtxInfo.thread.run: curr & next\n                CMP     R0, R1                      ; Check if context switch is required\n                BEQ     osRtxContextExit            ; Exit if curr and next are equal\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:9", "text": "BEQ     osRtxContextExit            ; Exit if curr and next are equal\n\n                CMP     R0, #0                      ; Is osRtxInfo.thread.run.curr == 0\n                ADDEQ   SP, SP, #32                 ; Equal, curr deleted, adjust current SP\n                BEQ     osRtxContextRestore         ; Restore context, run.curr = run.next;\n\nosRtxContextSave\n                SUB     SP, SP, #4\n                STM     SP, {SP}^                   ; Save SP_usr to current stack\n                POP     {R3}                        ; Pop SP_usr into R3\n\n                SUB     R3, R3, #64                 ; Adjust user sp to end of basic frame (R4)\n                STMIA   R3!, {R4-R11}               ; Save R4-R11 to user\n                POP     {R4-R8}                     ; Pop current R0-R12 into R4-R8\n                STMIA   R3!, {R4-R8}                ; Store them to user stack\n                STM     R3, {LR}^                   ; Store LR_usr directly\n                ADD     R3, R3, #4                  ; Adjust user sp to PC\n                POP     {R4-R6}                     ; Pop current LR, PC, CPSR\n                STMIA   R3!, {R5-R6}                ; Restore user PC and CPSR\n\n                SUB     R3, R3, #64                 ; Adjust user sp to R4\n\n                ; Check if VFP state need to be saved\n                MRC     p15, 0, R2, c1, c0, 2       ; VFP/NEON access enabled? (CPACR)\n                AND     R2, R2, #0x00F00000\n                CMP     R2, #0x00F00000\n                BNE     osRtxContextSave1           ; Continue, no VFP\n\n                VMRS    R2, FPSCR\n                STMDB   R3!, {R2,R12}               ; Push FPSCR, maintain 8-byte alignment\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 16\n                VSTMDB  R3!, {D0-D15}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that VFP/D16 state is stacked\n                ORR     R2, R2, #2\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VSTMDB  R3!, {D0-D15}\n                VSTMDB  R3!, {D16-D31}\n                LDRB    R2, [R0, #TCB_SP_FRAME]     ; Record in TCB that NEON/D32 state is stacked\n                ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:10", "text": "ORR     R2, R2, #4\n                STRB    R2, [R0, #TCB_SP_FRAME]\n                ENDIF\n\nosRtxContextSave1\n                STR     R3, [R0, #TCB_SP_OFS]       ; Store user sp to osRtxInfo.thread.run.curr\n\nosRtxContextRestore\n                STR     R1, [R12]                   ; Store run.next to run.curr\n                LDR     R3, [R1, #TCB_SP_OFS]       ; Load next osRtxThread_t.sp\n                LDRB    R2, [R1, #TCB_SP_FRAME]     ; Load next osRtxThread_t.stack_frame\n\n                ANDS    R2, R2, #0x6                ; Check stack frame for VFP context\n                MRC     p15, 0, R2, c1, c0, 2       ; Read CPACR\n                ANDEQ   R2, R2, #0xFF0FFFFF         ; Disable VFP/NEON access if incoming task does not have stacked VFP/NEON state\n                ORRNE   R2, R2, #0x00F00000         ; Enable VFP/NEON access if incoming task does have stacked VFP/NEON state\n                MCR     p15, 0, R2, c1, c0, 2       ; Write CPACR\n                BEQ     osRtxContextRestore1        ; No VFP\n                ISB                                 ; Only sync if we enabled VFP, otherwise we will context switch before next VFP instruction anyway\n                IF {TARGET_FEATURE_EXTENSION_REGISTER_COUNT} == 32\n                VLDMIA  R3!, {D16-D31}\n                ENDIF\n                VLDMIA  R3!, {D0-D15}\n                LDR     R2, [R3]\n                VMSR    FPSCR, R2\n                ADD     R3, R3, #8\n\nosRtxContextRestore1\n                LDMIA   R3!, {R4-R11}               ; Restore R4-R11\n                MOV     R12, R3                     ; Move sp pointer to R12\n                ADD     R3, R3, #32                 ; Adjust sp\n                PUSH    {R3}                        ; Push sp onto stack\n                LDMIA   SP, {SP}^                   ; Restore SP_usr\n                LDMIA   R12!, {R0-R3}               ; Restore User R0-R3\n                LDR     LR, [R12, #12]              ; Load SPSR into LR\n                MSR     SPSR_CXSF, LR               ; Restore SPSR\n                ADD     R12, R12, #4                ; Adjust pointer to LR\n                LDM     R12, {LR}^                  ; Restore LR_usr directly into LR\n                LDR     LR, [R12, #4]               ; Restore LR\n                LDR     R12, [R12, #-4]             ; Restore R12\n\n                MOVS    PC, LR                      ; Return from exception\n\nosRtxContextExit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n\n                END", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "f6a9d805f884b697ea308923fb51122f0b1bbfa6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f6a9d805f884b697ea308923fb51122f0b1bbfa6/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 361, "line_end": 408}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s:7", "text": "DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nIRQ_End\n                ; R0 =IRQ ID, R1 =GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =ID0_Active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\n\n                LDR     R3, =osRtxIrqHandler        ; Load osRtxIrqHandler function address\n                CMP     R2, R3                      ; If is the same ass current IRQ handler\n                BEQ     osRtxContextSwitch          ; Call context switcher\n\nIRQ_Exit\n                POP     {R0-R3, R12, LR}            ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from IRQ handler\n\n\nSVC_Handler\n                EXPORT  SVC_Handler\n                IMPORT  osRtxIrqLock\n                IMPORT  osRtxIrqUnlock\n                IMPORT  osRtxUserSVC\n                IMPORT  osRtxInfo\n\n                SRSFD   SP!, #MODE_SVC              ; Store SPSR_svc and LR_svc onto SVC stack\n                PUSH    {R12, LR}\n\n                MRS     R12, SPSR                   ; Load SPSR\n                TST     R12, #CPSR_BIT_T            ; Thumb bit set?\n                LDRNEH  R12, [LR,#-2]               ; Thumb: load halfword\n                BICNE   R12, R12, #0xFF00           ;        extract SVC number\n                LDREQ   R12, [LR,#-4]               ; ARM:   load word\n                BICEQ   R12, R12, #0xFF000000       ;        extract SVC number\n                CMP     R12, #0                     ; Compare SVC number\n                BNE     SVC_User                    ; Branch if User SVC\n\n                PUSH    {R0-R3}\n                BLX     osRtxIrqLock                ; Disable RTX interrupt (timer, PendSV)\n                POP     {R0-R3}\n\n                LDR     R12, [SP]                   ; Reload R12 from stack\n\n                CPSIE   i                           ; Re-enable interrupts\n                BLX     R12                         ; Branch to SVC function\n                CPSID   i                           ; Disable interrupts\n\n                SUB     SP, SP, #4                  ; Adjust SP\n                STM     SP, {SP}^                   ; Store SP_usr onto stack\n                POP     {R12}                       ; Pop SP_usr into R12\n                SUB     R12, R12, #16               ; Adjust pointer to SP_usr\n                LDMDB   R12, {R2,R3}                ; Load return values from SVC function\n                PUSH    {R0-R3}                     ; Push return values to stack\n\n                BLX     osRtxIrqUnlock              ; Enable RTX interrupt (timer, PendSV)\n                B       osRtxContextSwitch          ; Continue in context switcher\n\nSVC_User", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "license": "Apache-2.0", "commit": "ff9fa5b0c420d7a53dd3e484d4a9301adb47f050", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ff9fa5b0c420d7a53dd3e484d4a9301adb47f050/CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm0.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:2", "text": "THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:3", "text": "SUBS     R0,R0,#32              ; Calculate SP\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8               ; Adjust address\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_MSP\n                MRS      R0,MSP                 ; Get MSP\n                B        SVC_Number\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:4", "text": "BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LSLS     R1,R1,#2\n                LDR      R3,[R2,R1]             ; Load address of SVC function\n                MOV      R12,R3\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R2,R3}                ; Restore SP and EXC_RETURN\n                STR      R0,[R2]                ; Store function return value\n                MOV      LR,R3                  ; Set EXC_RETURN\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 121, "line_end": 158}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm0.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm0.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MOV      R0,LR\n                LSRS     R0,R0,#3               ; Determine return stack from EXC_RETURN bit 2\n                BCC      SVC_MSP                ; Branch if return stack is MSP\n                MRS      R0,PSP                 ; Get PSP\n\nSVC_Number\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm0.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:2", "text": "THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function\n                POP      {R2,R3}                ; Restore PSP and EXC_RETURN\n                STMIA    R2!,{R0-R1}            ; Store function return values\n                MOV      LR,R3                  ; Set EXC_RETURN\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDMIA    R3!,{R1,R2}            ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                BEQ      SVC_Exit               ; Branch when threads are the same\n\n                CMP      R1,#0\n                BEQ      SVC_ContextSwitch      ; Branch if running thread is deleted\n\nSVC_ContextSave\n                MRS      R0,PSP                 ; Get PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                STR      R0,[R1,#TCB_SP_OFS]    ; Store SP\n                STMIA    R0!,{R4-R7}            ; Save R4..R7\n                MOV      R4,R8\n                MOV      R5,R9\n                MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:3", "text": "MOV      R6,R10\n                MOV      R7,R11\n                STMIA    R0!,{R4-R7}            ; Save R8..R11\n\nSVC_ContextSwitch\n                SUBS     R3,R3,#8\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ADDS     R0,R0,#16              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R8..R11\n                MOV      R8,R4\n                MOV      R9,R5\n                MOV      R10,R6\n                MOV      R11,R7\n                MSR      PSP,R0                 ; Set PSP\n                SUBS     R0,R0,#32              ; Adjust address\n                LDMIA    R0!,{R4-R7}            ; Restore R4..R7\n\n                MOVS     R0,#~0xFFFFFFFD\n                MVNS     R0,R0                  ; Set EXC_RETURN value\n                BX       R0                     ; Exit from handler\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LSLS     R1,R1,#2\n                LDR      R4,[R2,R1]             ; Load address of SVC function\n\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STMIA    R4!,{R0-R3}            ; Store function return values\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:4", "text": "STMIA    R4!,{R0-R3}            ; Store function return values\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,R1}                ; Restore EXC_RETURN\n                MOV      LR,R1                  ; Set EXC_RETURN\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 121, "line_end": 149}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm0.s\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M0 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm0.s\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                SUBS     R1,R1,#2               ; Point to SVC instruction\n                LDRB     R1,[R1]                ; Load SVC number\n                CMP      R1,#0\n                BNE      SVC_User               ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDMIA    R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R7                     ; Call service function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "license": "Apache-2.0", "commit": "aa140af1d4e33dc194b4a271a4a725bb20c0bbd0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/aa140af1d4e33dc194b4a271a4a725bb20c0bbd0/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm3.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:2", "text": "THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:3", "text": "SVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 81, "line_end": 130}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:4", "text": "IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 121, "line_end": 130}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm3.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm3.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm3.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:2", "text": "THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBZ      R1,SVC_ContextSwitch   ; Branch if running thread is deleted\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:3", "text": "MSR      PSP,R0                 ; Set PSP\n\n                MVN      LR,#~0xFFFFFFFD        ; Set EXC_RETURN value\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 81, "line_end": 128}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm3.s\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M3 Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm3.s\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "license": "Apache-2.0", "commit": "aa140af1d4e33dc194b4a271a4a725bb20c0bbd0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/aa140af1d4e33dc194b4a271a4a725bb20c0bbd0/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm4f.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:2", "text": "THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:3", "text": "B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Exit               ; Branch if out of range\n\n                PUSH     {R0,LR}                ; Save SP and EXC_RETURN\n                LDR      R12,[R2,R1,LSL #2]     ; Load address of SVC function\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore SP and EXC_RETURN\n                STR      R0,[R12]               ; Store function return value\n\n                BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:4", "text": "BX       LR                     ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R0,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R0,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "eafbf8844e213b020ea1d9f0b587caccc4c5f5b6", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/eafbf8844e213b020ea1d9f0b587caccc4c5f5b6/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 121, "line_end": 146}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2018 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm4f.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "cd44e6f4d17c313556c3afccf0af30df83e6ac24", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cd44e6f4d17c313556c3afccf0af30df83e6ac24/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm4f.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                TST      LR,#0x04               ; Determine return stack from EXC_RETURN bit 2\n                ITE      EQ\n                MRSEQ    R0,MSP                 ; Get MSP if return stack is MSP\n                MRSNE    R0,PSP                 ; Get PSP if return stack is PSP\n\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "d05a7dc7e9fcf0e013b4494cde905ae5f8065a59", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/d05a7dc7e9fcf0e013b4494cde905ae5f8065a59/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm4f.s\n\n\nI_T_RUN_OFS     EQU      20                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:2", "text": "THUMB\n                SECTION .text:CODE:NOROOT(2)\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values\n\nSVC_Context\n                LDR      R3,=osRtxInfo+I_T_RUN_OFS; Load address of osRtxInfo.run\n                LDM      R3,{R1,R2}             ; Load osRtxInfo.thread.run: curr & next\n                CMP      R1,R2                  ; Check if thread switch is required\n                IT       EQ\n                BXEQ     LR                     ; Exit when threads are the same\n\n                CBNZ     R1,SVC_ContextSave     ; Branch if running thread is not deleted\n                TST      LR,#0x10               ; Check if extended stack frame\n                BNE      SVC_ContextSwitch\n                LDR      R1,=0xE000EF34         ; FPCCR Address\n                LDR      R0,[R1]                ; Load FPCCR\n                BIC      R0,R0,#1               ; Clear LSPACT (Lazy state)\n                STR      R0,[R1]                ; Store FPCCR\n                B        SVC_ContextSwitch\n\nSVC_ContextSave\n                STMDB    R12!,{R4-R11}          ; Save R4..R11\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:3", "text": "IT       EQ\n                VSTMDBEQ R12!,{S16-S31}         ;  Save VFP S16.S31\n\n                STR      R12,[R1,#TCB_SP_OFS]   ; Store SP\n                STRB     LR, [R1,#TCB_SF_OFS]   ; Store stack frame information\n\nSVC_ContextSwitch\n                STR      R2,[R3]                ; osRtxInfo.thread.run: curr = next\n\nSVC_ContextRestore\n                LDRB     R1,[R2,#TCB_SF_OFS]    ; Load stack frame information\n                LDR      R0,[R2,#TCB_SP_OFS]    ; Load SP\n                ORR      LR,R1,#0xFFFFFF00      ; Set EXC_RETURN\n\n                TST      LR,#0x10               ; Check if extended stack frame\n                IT       EQ\n                VLDMIAEQ R0!,{S16-S31}          ;  Restore VFP S16..S31\n                LDMIA    R0!,{R4-R11}           ; Restore R4..R11\n                MSR      PSP,R0                 ; Set PSP\n\nSVC_Exit\n                BX       LR                     ; Exit from handler\n\nSVC_User\n                PUSH     {R4,LR}                ; Save registers\n                LDR      R2,=osRtxUserSVC       ; Load address of SVC table\n                LDR      R3,[R2]                ; Load SVC maximum number\n                CMP      R1,R3                  ; Check SVC number range\n                BHI      SVC_Done               ; Branch if out of range\n\n                LDR      R4,[R2,R1,LSL #2]      ; Load address of SVC function\n\n                LDM      R0,{R0-R3}             ; Load function parameters from stack\n                BLX      R4                     ; Call service function\n                MRS      R4,PSP                 ; Get PSP\n                STR      R0,[R4]                ; Store function return value\n\nSVC_Done\n                POP      {R4,PC}                ; Return from handler\n\n\nPendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:4", "text": "PendSV_Handler\n                EXPORT   PendSV_Handler\n                IMPORT   osRtxPendSV_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxPendSV_Handler    ; Call osRtxPendSV_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\nSysTick_Handler\n                EXPORT   SysTick_Handler\n                IMPORT   osRtxTick_Handler\n\n                PUSH     {R4,LR}                ; Save EXC_RETURN\n                BL       osRtxTick_Handler      ; Call osRtxTick_Handler\n                POP      {R4,LR}                ; Restore EXC_RETURN\n                MRS      R12,PSP\n                B        SVC_Context\n\n\n                END", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/dcfd432d8d8c6ac900128d6aa55c4dcbf06f9147/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 121, "line_end": 144}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm4f.s\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d84c8d75e24e5d1c5cb92d9cecbf7c29c51f7b0/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s:1", "text": ";/*\n; * Copyright (c) 2013-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; *\n; * -----------------------------------------------------------------------------\n; *\n; * Project:     CMSIS-RTOS RTX\n; * Title:       Cortex-M4F Exception handlers\n; *\n; * -----------------------------------------------------------------------------\n; */\n\n\n                NAME    irq_cm4f.s\n\n\nI_T_RUN_OFS     EQU      28                     ; osRtxInfo.thread.run offset\nTCB_SP_OFS      EQU      56                     ; TCB.SP offset\nTCB_SF_OFS      EQU      34                     ; TCB.stack_frame offset\n\n\n                PRESERVE8\n                SECTION .rodata:DATA:NOROOT(2)\n\n\n                EXPORT   irqRtxLib\nirqRtxLib       DCB      0                      ; Non weak library reference\n\n\n                THUMB\n                SECTION .text:CODE:NOROOT(2)\n\nSVC_Handler\n                EXPORT   SVC_Handler\n                IMPORT   osRtxUserSVC\n                IMPORT   osRtxInfo\n\n                MRS      R0,PSP                 ; Get PSP\n                LDR      R1,[R0,#24]            ; Load saved PC from stack\n                LDRB     R1,[R1,#-2]            ; Load SVC number\n                CBNZ     R1,SVC_User            ; Branch if not SVC 0\n\n                PUSH     {R0,LR}                ; Save PSP and EXC_RETURN\n                LDM      R0,{R0-R3,R12}         ; Load function parameters and address from stack\n                BLX      R12                    ; Call service function\n                POP      {R12,LR}               ; Restore PSP and EXC_RETURN\n                STM      R12,{R0-R1}            ; Store function return values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "license": "Apache-2.0", "commit": "aa140af1d4e33dc194b4a271a4a725bb20c0bbd0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/aa140af1d4e33dc194b4a271a4a725bb20c0bbd0/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCA7.s\n; * @brief    CMSIS Core Device Startup File for ARM Cortex-A7 Device Series\n; * @version  V1.00\n; * @date     22 Feb 2017\n; *\n; * @note\n; *\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n;   *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\nGICC_OFFSET     EQU     0x2000\nICCIAR_OFFSET   EQU     0x000C\nICCEOIR_OFFSET  EQU     0x0010\n\nMode_USR        EQU     0x10\nMode_FIQ        EQU     0x11\nMode_IRQ        EQU     0x12\nMode_SVC        EQU     0x13\nMode_ABT        EQU     0x17\nMode_UND        EQU     0x1B\nMode_SYS        EQU     0x1F\n\nI_Bit           EQU     0x80            ; when I bit is set, IRQ is disabled\nF_Bit           EQU     0x40            ; when F bit is set, FIQ is disabled\nT_Bit           EQU     0x20            ; when T bit is set, core is in Thumb state\n\nSect_Normal     EQU     0x00005c06 ;outer & inner wb/wa, non-shareable, executable, rw, domain 0, base addr 0\nSect_Normal_Cod EQU     0x0000dc06 ;outer & inner wb/wa, non-shareable, executable, ro, domain 0, base addr 0\nSect_Normal_RO  EQU     0x0000dc16 ;as Sect_Normal_Cod, but not executable\nSect_Normal_RW  EQU     0x00005c16 ;as Sect_Normal_Cod, but writeable and not executable\nSect_SO         EQU     0x00000c12 ;strongly-ordered (therefore shareable), not executable, rw, domain 0, base addr 0\nSect_Device_RO  EQU     0x00008c12 ;device, non-shareable, non-executable, ro, domain 0, base addr 0\nSect_Device_RW  EQU     0x00000c12 ;as Sect_Device_RO, but writeable\nSect_Fault      EQU     0x00000000 ;this translation will fault (the bottom 2 bits are important, the rest are ignored)\n\nRAM_BASE        EQU     0x80000000\nVRAM_BASE       EQU     0x18000000\nSRAM_BASE       EQU     0x2e000000\nETHERNET        EQU     0x1a000000\nCS3_PERIPHERAL_BASE EQU 0x1c000000", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:2", "text": "Mode_SYS        EQU     0x1F\n\nI_Bit           EQU     0x80            ; when I bit is set, IRQ is disabled\nF_Bit           EQU     0x40            ; when F bit is set, FIQ is disabled\nT_Bit           EQU     0x20            ; when T bit is set, core is in Thumb state\n\nSect_Normal     EQU     0x00005c06 ;outer & inner wb/wa, non-shareable, executable, rw, domain 0, base addr 0\nSect_Normal_Cod EQU     0x0000dc06 ;outer & inner wb/wa, non-shareable, executable, ro, domain 0, base addr 0\nSect_Normal_RO  EQU     0x0000dc16 ;as Sect_Normal_Cod, but not executable\nSect_Normal_RW  EQU     0x00005c16 ;as Sect_Normal_Cod, but writeable and not executable\nSect_SO         EQU     0x00000c12 ;strongly-ordered (therefore shareable), not executable, rw, domain 0, base addr 0\nSect_Device_RO  EQU     0x00008c12 ;device, non-shareable, non-executable, ro, domain 0, base addr 0\nSect_Device_RW  EQU     0x00000c12 ;as Sect_Device_RO, but writeable\nSect_Fault      EQU     0x00000000 ;this translation will fault (the bottom 2 bits are important, the rest are ignored)\n\nRAM_BASE        EQU     0x80000000\nVRAM_BASE       EQU     0x18000000\nSRAM_BASE       EQU     0x2e000000\nETHERNET        EQU     0x1a000000\nCS3_PERIPHERAL_BASE EQU 0x1c000000\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes, per mode) <0x0-0xFFFFFFFF:8>\n; </h>\n\nUND_Stack_Size  EQU     0x00000100\nSVC_Stack_Size  EQU     0x00000100\nABT_Stack_Size  EQU     0x00000100\nFIQ_Stack_Size  EQU     0x00000000\nIRQ_Stack_Size  EQU     0x00000100\nUSR_Stack_Size  EQU     0x00000100\n\nISR_Stack_Size  EQU     (UND_Stack_Size + SVC_Stack_Size + ABT_Stack_Size + \\\n                         FIQ_Stack_Size + IRQ_Stack_Size)\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   USR_Stack_Size\n__initial_sp    SPACE   ISR_Stack_Size\n\nStack_Top\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                ARM\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:3", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                ARM\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, CODE, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       LDR     PC, Reset_Addr            ; Address of Reset Handler\n                LDR     PC, Undef_Addr            ; Address of Undef Handler\n                LDR     PC, SVC_Addr              ; Address of SVC Handler\n                LDR     PC, PAbt_Addr             ; Address of Prefetch Abort Handler\n                LDR     PC, DAbt_Addr             ; Address of Data Abort Handler\n                NOP                               ; Reserved Vector\n                LDR     PC, IRQ_Addr              ; Address of IRQ Handler\n                LDR     PC, FIQ_Addr              ; Address of FIQ Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\nReset_Addr      DCD     Reset_Handler\nUndef_Addr      DCD     Undef_Handler\nSVC_Addr        DCD     SVC_Handler\nPAbt_Addr       DCD     PAbt_Handler\nDAbt_Addr       DCD     DAbt_Handler\nIRQ_Addr        DCD     IRQ_Handler\nFIQ_Addr        DCD     FIQ_Handler\n\n                AREA    |.text|, CODE, READONLY\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\n                ; Put any cores other than 0 to sleep\n                MRC     p15, 0, R0, c0, c0, 5     ; Read MPIDR\n                ANDS    R0, R0, #3\ngoToSleep\n                WFINE\n                BNE     goToSleep\n\n                MRC     p15, 0, R0, c1, c0, 0       ; Read CP15 System Control register", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:4", "text": "PAbt_Addr       DCD     PAbt_Handler\nDAbt_Addr       DCD     DAbt_Handler\nIRQ_Addr        DCD     IRQ_Handler\nFIQ_Addr        DCD     FIQ_Handler\n\n                AREA    |.text|, CODE, READONLY\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\n                ; Put any cores other than 0 to sleep\n                MRC     p15, 0, R0, c0, c0, 5     ; Read MPIDR\n                ANDS    R0, R0, #3\ngoToSleep\n                WFINE\n                BNE     goToSleep\n\n                MRC     p15, 0, R0, c1, c0, 0       ; Read CP15 System Control register\n                BIC     R0, R0, #(0x1 << 12)        ; Clear I bit 12 to disable I Cache\n                BIC     R0, R0, #(0x1 <<  2)        ; Clear C bit  2 to disable D Cache\n                BIC     R0, R0, #0x1                ; Clear M bit  0 to disable MMU\n                BIC     R0, R0, #(0x1 << 11)        ; Clear Z bit 11 to disable branch prediction\n                BIC     R0, R0, #(0x1 << 13)        ; Clear V bit 13 to disable hivecs\n                MCR     p15, 0, R0, c1, c0, 0       ; Write value back to CP15 System Control register\n                ISB\n\n; ACTLR.SMP bit must be set before the caches and MMU are enabled,\n; or any cache and TLB maintenance operations are performed, even for \"AMP\" CPUs\n                MRC     p15, 0, r0, c1, c0, 1       ; Read CP15 Auxiliary Control Register\n                ORR     r0, r0, #(1 <<  6)          ; Set ACTLR.SMP bit\n                ORR     r0, r0, #(1 << 13)          ; Set L1PCTL L1 Data prefetch control to 0b11\n                ORR     r0, r0, #(1 << 14)          ;  3 outstanding pre-fetches permitted, this is the reset value\n                MCR     p15, 0, r0, c1, c0, 1       ; Write CP15 Auxiliary Control Register\n\n; Set Vector Base Address Register (VBAR) to point to this application's vector table\n                LDR     R0, =__Vectors\n                MCR     p15, 0, R0, c12, c0, 0\n\n;  Setup Stack for each exceptional mode\n                LDR     R0, =Stack_Top\n\n;  Enter Undefined Instruction Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_UND:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #UND_Stack_Size\n\n;  Enter Abort Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_ABT:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #ABT_Stack_Size\n\n;  Enter FIQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_FIQ:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #FIQ_Stack_Size\n\n;  Enter IRQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_IRQ:OR:I_Bit:OR:F_Bit", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:5", "text": ";  Setup Stack for each exceptional mode\n                LDR     R0, =Stack_Top\n\n;  Enter Undefined Instruction Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_UND:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #UND_Stack_Size\n\n;  Enter Abort Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_ABT:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #ABT_Stack_Size\n\n;  Enter FIQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_FIQ:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #FIQ_Stack_Size\n\n;  Enter IRQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_IRQ:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #IRQ_Stack_Size\n\n;  Enter Supervisor Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_SVC:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n\n;  Enter System Mode to complete initialization and enter kernel\n                MSR     CPSR_C, #Mode_SYS:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n\n                IMPORT  MMU_CreateTranslationTable\n                BL      MMU_CreateTranslationTable\n\n                MOV     r0, #0x0\n                MCR     p15, 0, r0, c8, c7, 0     ; TLBIALL - Invalidate entire Unified TLB\n                MCR     p15, 0, r0, c7, c5, 6     ; BPIALL  - Invalidate entire branch predictor array\n                DSB\n                ISB\n                MCR     p15, 0, r0, c7, c5, 0     ; ICIALLU - Invalidate instruction cache and flush branch target cache\n                DSB\n                ISB\n\n;  Invalidate data cache\n                MOV     r0, #0x0                  ; 0 = invalidate data cache, 1 = clean data cache.\n\n                MRC     p15, 1, R6, c0, c0, 1     ; Read CLIDR\n                ANDS    R3, R6, #0x07000000       ; Extract coherency level\n                MOV     R3, R3, LSR #23           ; Total cache levels << 1\n                BEQ     Finished                  ; If 0, no need to clean\n\n                MOV     R10, #0                   ; R10 holds current cache level << 1\nLoop1           ADD     R2, R10, R10, LSR #1      ; R2 holds cache \"Set\" position\n                MOV     R1, R6, LSR R2            ; Bottom 3 bits are the Cache-type for this level\n                AND     R1, R1, #7                ; Isolate those lower 3 bits\n                CMP     R1, #2\n                BLT     Skip                      ; No cache or only instruction cache at this level\n\n                MCR     p15, 2, R10, c0, c0, 0    ; Write the Cache Size selection register\n                ISB                               ; ISB to sync the change to the CacheSizeID reg", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:6", "text": "DSB\n                ISB\n\n;  Invalidate data cache\n                MOV     r0, #0x0                  ; 0 = invalidate data cache, 1 = clean data cache.\n\n                MRC     p15, 1, R6, c0, c0, 1     ; Read CLIDR\n                ANDS    R3, R6, #0x07000000       ; Extract coherency level\n                MOV     R3, R3, LSR #23           ; Total cache levels << 1\n                BEQ     Finished                  ; If 0, no need to clean\n\n                MOV     R10, #0                   ; R10 holds current cache level << 1\nLoop1           ADD     R2, R10, R10, LSR #1      ; R2 holds cache \"Set\" position\n                MOV     R1, R6, LSR R2            ; Bottom 3 bits are the Cache-type for this level\n                AND     R1, R1, #7                ; Isolate those lower 3 bits\n                CMP     R1, #2\n                BLT     Skip                      ; No cache or only instruction cache at this level\n\n                MCR     p15, 2, R10, c0, c0, 0    ; Write the Cache Size selection register\n                ISB                               ; ISB to sync the change to the CacheSizeID reg\n                MRC     p15, 1, R1, c0, c0, 0     ; Reads current Cache Size ID register\n                AND     R2, R1, #7                ; Extract the line length field\n                ADD     R2, R2, #4                ; Add 4 for the line length offset (log2 16 bytes)\n                LDR     R4, =0x3FF\n                ANDS    R4, R4, R1, LSR #3        ; R4 is the max number on the way size (right aligned)\n                CLZ     R5, R4                    ; R5 is the bit position of the way size increment\n                LDR     R7, =0x7FFF\n                ANDS    R7, R7, R1, LSR #13       ; R7 is the max number of the index size (right aligned)\n\nLoop2           MOV     R9, R4                    ; R9 working copy of the max way size (right aligned)\n\nLoop3           ORR     R11, R10, R9, LSL R5      ; Factor in the Way number and cache number into R11\n                ORR     R11, R11, R7, LSL R2      ; Factor in the Set number\n                CMP     R0, #0\n                BNE     Dccsw\n                MCR     p15, 0, R11, c7, c6, 2    ; DCISW. Invalidate by Set/Way\n                B       cont\nDccsw           CMP     R0, #1\n                BNE     Dccisw\n                MCR     p15, 0, R11, c7, c10, 2   ; DCCSW. Clean by Set/Way\n                B       cont\nDccisw          MCR     p15, 0, R11, c7, c14, 2   ; DCCISW. Clean and Invalidate by Set/Way\ncont            SUBS    R9, R9, #1                ; Decrement the Way number\n                BGE     Loop3\n                SUBS    R7, R7, #1                ; Decrement the Set number\n                BGE     Loop2\nSkip            ADD     R10, R10, #2              ; Increment the cache number\n                CMP     R3, R10\n                BGT     Loop1\nFinished\n                DSB\n\n;  Enable MMU, but leave caches disabled (they will be enabled later)\n                MRC     p15, 0, r0, c1, c0, 0     ; Read CP15 System Control register\n                ORR     r0, r0, #(0x1 << 29)      ; Set AFE bit 29 to enable simplified access permissions model\n                BIC     r0, r0, #(0x1 << 28)      ; Clear TRE bit 28 to disable TEX remap\n                BIC     r0, r0, #(0x1 << 12)      ; Clear I bit 12 to disable I Cache\n                BIC     r0, r0, #(0x1 <<  2)      ; Clear C bit  2 to disable D Cache\n                BIC     r0, r0, #(0x1 <<  1)      ; Clear A bit  1 to disable strict alignment fault checking\n                ORR     r0, r0, #0x1              ; Set M bit 0 to enable MMU", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:7", "text": "B       cont\nDccisw          MCR     p15, 0, R11, c7, c14, 2   ; DCCISW. Clean and Invalidate by Set/Way\ncont            SUBS    R9, R9, #1                ; Decrement the Way number\n                BGE     Loop3\n                SUBS    R7, R7, #1                ; Decrement the Set number\n                BGE     Loop2\nSkip            ADD     R10, R10, #2              ; Increment the cache number\n                CMP     R3, R10\n                BGT     Loop1\nFinished\n                DSB\n\n;  Enable MMU, but leave caches disabled (they will be enabled later)\n                MRC     p15, 0, r0, c1, c0, 0     ; Read CP15 System Control register\n                ORR     r0, r0, #(0x1 << 29)      ; Set AFE bit 29 to enable simplified access permissions model\n                BIC     r0, r0, #(0x1 << 28)      ; Clear TRE bit 28 to disable TEX remap\n                BIC     r0, r0, #(0x1 << 12)      ; Clear I bit 12 to disable I Cache\n                BIC     r0, r0, #(0x1 <<  2)      ; Clear C bit  2 to disable D Cache\n                BIC     r0, r0, #(0x1 <<  1)      ; Clear A bit  1 to disable strict alignment fault checking\n                ORR     r0, r0, #0x1              ; Set M bit 0 to enable MMU\n                MCR     p15, 0, r0, c1, c0, 0     ; Write CP15 System Control register\n\n;  USR/SYS stack pointer will be set during kernel init\n\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BLX     R0\n\n                ENDP\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler             [WEAK]\n                IMPORT  CUndefHandler\n                SRSFD   SP!, #Mode_UND\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #T_Bit                ; Check mode\n                MOVEQ   R1, #4                    ; R1 = 4 ARM mode\n                MOVNE   R1, #2                    ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                  ; ARM mode - R0 points to offending instruction\n                BEQ     undef_cont\n\n                ;Thumb instruction\n                ;Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1c\n                CMP     R2, R0, LSR #11\n                BHS     undef_cont                ;16-bit Thumb instruction\n\n                ;32-bit Thumb instruction. Unaligned - we need to reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nundef_cont\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:8", "text": "MOVEQ   R1, #4                    ; R1 = 4 ARM mode\n                MOVNE   R1, #2                    ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                  ; ARM mode - R0 points to offending instruction\n                BEQ     undef_cont\n\n                ;Thumb instruction\n                ;Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1c\n                CMP     R2, R0, LSR #11\n                BHS     undef_cont                ;16-bit Thumb instruction\n\n                ;32-bit Thumb instruction. Unaligned - we need to reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nundef_cont\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                ;R0 Offending instruction\n                ;R1 =2 (Thumb) or =4 (ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                LDR     LR, [SP, #24]             ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]             ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}              ; Restore stacked APCS registers\n                ADD     SP, SP, #8                ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n                ENDP\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler              [WEAK]\n                IMPORT  CPAbtHandler\n                SUB     LR, LR, #4                ; Pre-adjust LR\n                SRSFD   SP!, #Mode_ABT            ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1     ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2     ; IFAR\n\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:9", "text": "PROC\n                EXPORT  PAbt_Handler              [WEAK]\n                IMPORT  CPAbtHandler\n                SUB     LR, LR, #4                ; Pre-adjust LR\n                SRSFD   SP!, #Mode_ABT            ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1     ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2     ; IFAR\n\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                POP     {R0-R4, R12}              ; Restore stack APCS registers\n                RFEFD   SP!                       ; Return from exception\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler              [WEAK]\n                IMPORT  CDAbtHandler\n                SUB     LR, LR, #8                ; Pre-adjust LR\n                SRSFD   SP!, #Mode_ABT            ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to ABT mode stack\n                CLREX                             ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0     ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0     ; DFAR\n\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                POP     {R0-R4, R12}              ; Restore stacked APCS registers\n                RFEFD   SP!                       ; Return from exception\n                ENDP\n\nFIQ_Handler\\\n                PROC\n                EXPORT  FIQ_Handler               [WEAK]\n                B       .\n                ENDP\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler               [WEAK]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:10", "text": "PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                POP     {R0-R4, R12}              ; Restore stacked APCS registers\n                RFEFD   SP!                       ; Return from exception\n                ENDP\n\nFIQ_Handler\\\n                PROC\n                EXPORT  FIQ_Handler               [WEAK]\n                B       .\n                ENDP\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler                [WEAK]\n                IMPORT  IRQCount\n                IMPORT  IRQTable\n                IMPORT  IRQNestLevel                ; Flag indicates whether inside an ISR, and the depth of nesting.  0 = not in ISR.\n\n\n                ;prologue\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #Mode_SVC              ; Save LR_IRQ and SPRS_IRQ to SVC mode stack\n                CPS     #Mode_SVC                   ; Switch to SVC mode, to avoid a nested interrupt corrupting LR on a BL\n                PUSH    {R0-R3, R12}                ; Save remaining APCS corruptible registers to SVC stack\n\n                AND     R1, SP, #4                  ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R1                  ; Adjust stack\n                PUSH    {R1, LR}                    ; Store stack adjustment and LR_SVC to SVC stack\n\n                LDR     R0, =IRQNestLevel           ; Get address of nesting counter\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment nesting counter\n                STR     R1, [R0]\n\n                ;identify and acknowledge interrupt\n                MRC     p15, 4, R1, c15, c0, 0      ; Read CBAR\n                ADD     R1, R1, #GICC_OFFSET        ; Add GICC offset\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read ICCIAR (GIC CPU Interface register)\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Is there a handler for this IRQ?\n                BHS     end_int                     ; No handler, so return as normal\n                LDR     R2, =IRQTable               ; Get address of handler\n                LDR     R2, [R2, R0, LSL #2]\n                CMP     R2, #0                      ; Clean up and return if handler address is 0\n                BEQ     end_int", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s:11", "text": "LDR     R0, =IRQNestLevel           ; Get address of nesting counter\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment nesting counter\n                STR     R1, [R0]\n\n                ;identify and acknowledge interrupt\n                MRC     p15, 4, R1, c15, c0, 0      ; Read CBAR\n                ADD     R1, R1, #GICC_OFFSET        ; Add GICC offset\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read ICCIAR (GIC CPU Interface register)\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Is there a handler for this IRQ?\n                BHS     end_int                     ; No handler, so return as normal\n                LDR     R2, =IRQTable               ; Get address of handler\n                LDR     R2, [R2, R0, LSL #2]\n                CMP     R2, #0                      ; Clean up and return if handler address is 0\n                BEQ     end_int\n                PUSH    {R0,R1}\n\n                CPSIE   i                           ; Now safe to re-enable interrupts\n                BLX     R2                          ; Call handler. R0 = IRQ number. Beware calls to PendSV_Handler and OS_Tick_Handler do not return this way\n                CPSID   i                           ; Disable interrupts again\n\n                POP     {R0,R1}\n                DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nend_int\n                ; R0 still contains the interrupt ID\n                ; R1 still contains GICI_BASE\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\nret_irq\n                ;epilogue\n                LDR     R0, =IRQNestLevel           ; Get address of nesting counter\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement nesting counter\n                STR     R1, [R0]\n\n                POP     {R1, LR}                    ; Get stack adjustment and restore LR_SVC\n                ADD     SP, SP, R1                  ; Unadjust stack\n\n                POP     {R0-R3,R12}                 ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA7/Source/ARM/startup_ARMCA7.s", "line_start": 401, "line_end": 447}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:1", "text": ";/******************************************************************************\n; * @file     startup_ARMCA9.s\n; * @brief    CMSIS Core Device Startup File for ARM Cortex-A9 Device Series\n; * @version  V1.00\n; * @date     22 Feb 2017\n; *\n; * @note\n; *\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\nGICI_BASE       EQU     0x2C000100\nICCIAR_OFFSET   EQU     0x0000000C\nICCEOIR_OFFSET  EQU     0x00000010\nICCHPIR_OFFSET  EQU     0x00000018\n\nGICD_BASE       EQU     0x2C001000\nICDABR0_OFFSET  EQU     0x00000300\nICDIPR0_OFFSET  EQU     0x00000400\n\nMode_USR        EQU     0x10\nMode_FIQ        EQU     0x11\nMode_IRQ        EQU     0x12\nMode_SVC        EQU     0x13\nMode_ABT        EQU     0x17\nMode_UND        EQU     0x1B\nMode_SYS        EQU     0x1F\n\nI_Bit           EQU     0x80            ; when I bit is set, IRQ is disabled\nF_Bit           EQU     0x40            ; when F bit is set, FIQ is disabled\nT_Bit           EQU     0x20            ; when T bit is set, core is in Thumb state\n\nSect_Normal     EQU     0x00005c06 ;outer & inner wb/wa, non-shareable, executable, rw, domain 0, base addr 0\nSect_Normal_Cod EQU     0x0000dc06 ;outer & inner wb/wa, non-shareable, executable, ro, domain 0, base addr 0\nSect_Normal_RO  EQU     0x0000dc16 ;as Sect_Normal_Cod, but not executable\nSect_Normal_RW  EQU     0x00005c16 ;as Sect_Normal_Cod, but writeable and not executable\nSect_SO         EQU     0x00000c12 ;strongly-ordered (therefore shareable), not executable, rw, domain 0, base addr 0\nSect_Device_RO  EQU     0x00008c12 ;device, non-shareable, non-executable, ro, domain 0, base addr 0\nSect_Device_RW  EQU     0x00000c12 ;as Sect_Device_RO, but writeable\nSect_Fault      EQU     0x00000000 ;this translation will fault (the bottom 2 bits are important, the rest are ignored)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:2", "text": "Mode_FIQ        EQU     0x11\nMode_IRQ        EQU     0x12\nMode_SVC        EQU     0x13\nMode_ABT        EQU     0x17\nMode_UND        EQU     0x1B\nMode_SYS        EQU     0x1F\n\nI_Bit           EQU     0x80            ; when I bit is set, IRQ is disabled\nF_Bit           EQU     0x40            ; when F bit is set, FIQ is disabled\nT_Bit           EQU     0x20            ; when T bit is set, core is in Thumb state\n\nSect_Normal     EQU     0x00005c06 ;outer & inner wb/wa, non-shareable, executable, rw, domain 0, base addr 0\nSect_Normal_Cod EQU     0x0000dc06 ;outer & inner wb/wa, non-shareable, executable, ro, domain 0, base addr 0\nSect_Normal_RO  EQU     0x0000dc16 ;as Sect_Normal_Cod, but not executable\nSect_Normal_RW  EQU     0x00005c16 ;as Sect_Normal_Cod, but writeable and not executable\nSect_SO         EQU     0x00000c12 ;strongly-ordered (therefore shareable), not executable, rw, domain 0, base addr 0\nSect_Device_RO  EQU     0x00008c12 ;device, non-shareable, non-executable, ro, domain 0, base addr 0\nSect_Device_RW  EQU     0x00000c12 ;as Sect_Device_RO, but writeable\nSect_Fault      EQU     0x00000000 ;this translation will fault (the bottom 2 bits are important, the rest are ignored)\n\nRAM_BASE        EQU     0x80000000\nVRAM_BASE       EQU     0x18000000\nSRAM_BASE       EQU     0x2e000000\nETHERNET        EQU     0x1a000000\nCS3_PERIPHERAL_BASE EQU 0x1c000000\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes, per mode) <0x0-0xFFFFFFFF:8>\n; </h>\n\nUND_Stack_Size  EQU     0x00000100\nSVC_Stack_Size  EQU     0x00000100\nABT_Stack_Size  EQU     0x00000100\nFIQ_Stack_Size  EQU     0x00000000\nIRQ_Stack_Size  EQU     0x00000100\nUSR_Stack_Size  EQU     0x00000100\n\nISR_Stack_Size  EQU     (UND_Stack_Size + SVC_Stack_Size + ABT_Stack_Size + \\\n                         FIQ_Stack_Size + IRQ_Stack_Size)\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   USR_Stack_Size\n__initial_sp    SPACE   ISR_Stack_Size\n\nStack_Top\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:3", "text": "AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   USR_Stack_Size\n__initial_sp    SPACE   ISR_Stack_Size\n\nStack_Top\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000000\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                ARM\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, CODE, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       LDR     PC, Reset_Addr            ; Address of Reset Handler\n                LDR     PC, Undef_Addr            ; Address of Undef Handler\n                LDR     PC, SVC_Addr              ; Address of SVC Handler\n                LDR     PC, PAbt_Addr             ; Address of Prefetch Abort Handler\n                LDR     PC, DAbt_Addr             ; Address of Data Abort Handler\n                NOP                               ; Reserved Vector\n                LDR     PC, IRQ_Addr              ; Address of IRQ Handler\n                LDR     PC, FIQ_Addr              ; Address of FIQ Handler\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\nReset_Addr      DCD     Reset_Handler\nUndef_Addr      DCD     Undef_Handler\nSVC_Addr        DCD     SVC_Handler\nPAbt_Addr       DCD     PAbt_Handler\nDAbt_Addr       DCD     DAbt_Handler\nIRQ_Addr        DCD     IRQ_Handler\nFIQ_Addr        DCD     FIQ_Handler\n\n                AREA    |.text|, CODE, READONLY\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\n                ; Put any cores other than 0 to sleep\n                MRC     p15, 0, R0, c0, c0, 5     ; Read MPIDR\n                ANDS    R0, R0, #3", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:4", "text": "__Vectors_Size  EQU     __Vectors_End - __Vectors\n\nReset_Addr      DCD     Reset_Handler\nUndef_Addr      DCD     Undef_Handler\nSVC_Addr        DCD     SVC_Handler\nPAbt_Addr       DCD     PAbt_Handler\nDAbt_Addr       DCD     DAbt_Handler\nIRQ_Addr        DCD     IRQ_Handler\nFIQ_Addr        DCD     FIQ_Handler\n\n                AREA    |.text|, CODE, READONLY\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\n                ; Put any cores other than 0 to sleep\n                MRC     p15, 0, R0, c0, c0, 5     ; Read MPIDR\n                ANDS    R0, R0, #3\ngoToSleep\n                WFINE\n                BNE     goToSleep\n\n                MRC     p15, 0, R0, c1, c0, 0       ; Read CP15 System Control register\n                BIC     R0, R0, #(0x1 << 12)        ; Clear I bit 12 to disable I Cache\n                BIC     R0, R0, #(0x1 <<  2)        ; Clear C bit  2 to disable D Cache\n                BIC     R0, R0, #0x1                ; Clear M bit  0 to disable MMU\n                BIC     R0, R0, #(0x1 << 11)        ; Clear Z bit 11 to disable branch prediction\n                BIC     R0, R0, #(0x1 << 13)        ; Clear V bit 13 to disable hivecs\n                MCR     p15, 0, R0, c1, c0, 0       ; Write value back to CP15 System Control register\n                ISB\n\n; Configure ACTLR\n                MRC     p15, 0, r0, c1, c0, 1       ; Read CP15 Auxiliary Control Register\n                ORR     r0, r0, #(1 <<  1)          ; Enable L2 prefetch hint (UNK/WI since r4p1)\n                MCR     p15, 0, r0, c1, c0, 1       ; Write CP15 Auxiliary Control Register\n\n; Set Vector Base Address Register (VBAR) to point to this application's vector table\n                LDR     R0, =__Vectors\n                MCR     p15, 0, R0, c12, c0, 0\n\n;  Setup Stack for each exceptional mode\n                LDR     R0, =Stack_Top\n\n;  Enter Undefined Instruction Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_UND:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #UND_Stack_Size\n\n;  Enter Abort Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_ABT:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #ABT_Stack_Size\n\n;  Enter FIQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_FIQ:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #FIQ_Stack_Size", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:5", "text": "MCR     p15, 0, R0, c12, c0, 0\n\n;  Setup Stack for each exceptional mode\n                LDR     R0, =Stack_Top\n\n;  Enter Undefined Instruction Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_UND:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #UND_Stack_Size\n\n;  Enter Abort Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_ABT:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #ABT_Stack_Size\n\n;  Enter FIQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_FIQ:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #FIQ_Stack_Size\n\n;  Enter IRQ Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_IRQ:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n                SUB     R0, R0, #IRQ_Stack_Size\n\n;  Enter Supervisor Mode and set its Stack Pointer\n                MSR     CPSR_C, #Mode_SVC:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n\n;  Enter System Mode to complete initialization and enter kernel\n                MSR     CPSR_C, #Mode_SYS:OR:I_Bit:OR:F_Bit\n                MOV     SP, R0\n\n                IMPORT  MMU_CreateTranslationTable\n                BL      MMU_CreateTranslationTable\n\n                MOV     r0, #0x0\n                MCR     p15, 0, r0, c8, c7, 0     ; TLBIALL - Invalidate entire Unified TLB\n                MCR     p15, 0, r0, c7, c5, 6     ; BPIALL  - Invalidate entire branch predictor array\n                DSB\n                ISB\n                MCR     p15, 0, r0, c7, c5, 0     ; ICIALLU - Invalidate instruction cache and flush branch target cache\n                DSB\n                ISB\n\n;  Invalidate data cache\n                MOV     r0, #0x0                  ; 0 = invalidate data cache, 1 = clean data cache.\n\n                MRC     p15, 1, R6, c0, c0, 1     ; Read CLIDR\n                ANDS    R3, R6, #0x07000000       ; Extract coherency level\n                MOV     R3, R3, LSR #23           ; Total cache levels << 1\n                BEQ     Finished                  ; If 0, no need to clean\n\n                MOV     R10, #0                   ; R10 holds current cache level << 1\nLoop1           ADD     R2, R10, R10, LSR #1      ; R2 holds cache \"Set\" position\n                MOV     R1, R6, LSR R2            ; Bottom 3 bits are the Cache-type for this level\n                AND     R1, R1, #7                ; Isolate those lower 3 bits\n                CMP     R1, #2\n                BLT     Skip                      ; No cache or only instruction cache at this level", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:6", "text": "ISB\n                MCR     p15, 0, r0, c7, c5, 0     ; ICIALLU - Invalidate instruction cache and flush branch target cache\n                DSB\n                ISB\n\n;  Invalidate data cache\n                MOV     r0, #0x0                  ; 0 = invalidate data cache, 1 = clean data cache.\n\n                MRC     p15, 1, R6, c0, c0, 1     ; Read CLIDR\n                ANDS    R3, R6, #0x07000000       ; Extract coherency level\n                MOV     R3, R3, LSR #23           ; Total cache levels << 1\n                BEQ     Finished                  ; If 0, no need to clean\n\n                MOV     R10, #0                   ; R10 holds current cache level << 1\nLoop1           ADD     R2, R10, R10, LSR #1      ; R2 holds cache \"Set\" position\n                MOV     R1, R6, LSR R2            ; Bottom 3 bits are the Cache-type for this level\n                AND     R1, R1, #7                ; Isolate those lower 3 bits\n                CMP     R1, #2\n                BLT     Skip                      ; No cache or only instruction cache at this level\n\n                MCR     p15, 2, R10, c0, c0, 0    ; Write the Cache Size selection register\n                ISB                               ; ISB to sync the change to the CacheSizeID reg\n                MRC     p15, 1, R1, c0, c0, 0     ; Reads current Cache Size ID register\n                AND     R2, R1, #7                ; Extract the line length field\n                ADD     R2, R2, #4                ; Add 4 for the line length offset (log2 16 bytes)\n                LDR     R4, =0x3FF\n                ANDS    R4, R4, R1, LSR #3        ; R4 is the max number on the way size (right aligned)\n                CLZ     R5, R4                    ; R5 is the bit position of the way size increment\n                LDR     R7, =0x7FFF\n                ANDS    R7, R7, R1, LSR #13       ; R7 is the max number of the index size (right aligned)\n\nLoop2           MOV     R9, R4                    ; R9 working copy of the max way size (right aligned)\n\nLoop3           ORR     R11, R10, R9, LSL R5      ; Factor in the Way number and cache number into R11\n                ORR     R11, R11, R7, LSL R2      ; Factor in the Set number\n                CMP     R0, #0\n                BNE     Dccsw\n                MCR     p15, 0, R11, c7, c6, 2    ; DCISW. Invalidate by Set/Way\n                B       cont\nDccsw           CMP     R0, #1\n                BNE     Dccisw\n                MCR     p15, 0, R11, c7, c10, 2   ; DCCSW. Clean by Set/Way\n                B       cont\nDccisw          MCR     p15, 0, R11, c7, c14, 2   ; DCCISW. Clean and Invalidate by Set/Way\ncont            SUBS    R9, R9, #1                ; Decrement the Way number\n                BGE     Loop3\n                SUBS    R7, R7, #1                ; Decrement the Set number\n                BGE     Loop2\nSkip            ADD     R10, R10, #2              ; Increment the cache number\n                CMP     R3, R10\n                BGT     Loop1\nFinished\n                DSB\n\n;  Enable MMU, but leave caches disabled (they will be enabled later)\n                MRC     p15, 0, r0, c1, c0, 0     ; Read CP15 System Control register\n                ORR     r0, r0, #(0x1 << 29)      ; Set AFE bit 29 to enable simplified access permissions model\n                BIC     r0, r0, #(0x1 << 28)      ; Clear TRE bit 28 to disable TEX remap\n                BIC     r0, r0, #(0x1 << 12)      ; Clear I bit 12 to disable I Cache\n                BIC     r0, r0, #(0x1 <<  2)      ; Clear C bit  2 to disable D Cache", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:7", "text": "BNE     Dccisw\n                MCR     p15, 0, R11, c7, c10, 2   ; DCCSW. Clean by Set/Way\n                B       cont\nDccisw          MCR     p15, 0, R11, c7, c14, 2   ; DCCISW. Clean and Invalidate by Set/Way\ncont            SUBS    R9, R9, #1                ; Decrement the Way number\n                BGE     Loop3\n                SUBS    R7, R7, #1                ; Decrement the Set number\n                BGE     Loop2\nSkip            ADD     R10, R10, #2              ; Increment the cache number\n                CMP     R3, R10\n                BGT     Loop1\nFinished\n                DSB\n\n;  Enable MMU, but leave caches disabled (they will be enabled later)\n                MRC     p15, 0, r0, c1, c0, 0     ; Read CP15 System Control register\n                ORR     r0, r0, #(0x1 << 29)      ; Set AFE bit 29 to enable simplified access permissions model\n                BIC     r0, r0, #(0x1 << 28)      ; Clear TRE bit 28 to disable TEX remap\n                BIC     r0, r0, #(0x1 << 12)      ; Clear I bit 12 to disable I Cache\n                BIC     r0, r0, #(0x1 <<  2)      ; Clear C bit  2 to disable D Cache\n                BIC     r0, r0, #(0x1 <<  1)      ; Clear A bit  1 to disable strict alignment fault checking\n                ORR     r0, r0, #0x1              ; Set M bit 0 to enable MMU\n                MCR     p15, 0, r0, c1, c0, 0     ; Write CP15 System Control register\n\n;  USR/SYS stack pointer will be set during kernel init\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BLX     R0\n\n                ENDP\n\nUndef_Handler\\\n                PROC\n                EXPORT  Undef_Handler             [WEAK]\n                IMPORT  CUndefHandler\n                SRSFD   SP!, #Mode_UND\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to UND mode stack\n\n                MRS     R0, SPSR\n                TST     R0, #T_Bit                ; Check mode\n                MOVEQ   R1, #4                    ; R1 = 4 ARM mode\n                MOVNE   R1, #2                    ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                  ; ARM mode - R0 points to offending instruction\n                BEQ     undef_cont\n\n                ;Thumb instruction\n                ;Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1c\n                CMP     R2, R0, LSR #11\n                BHS     undef_cont                ;16-bit Thumb instruction\n\n                ;32-bit Thumb instruction. Unaligned - we need to reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nundef_cont\n                MOV     R2, LR                    ; Set LR to third argument", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:8", "text": "TST     R0, #T_Bit                ; Check mode\n                MOVEQ   R1, #4                    ; R1 = 4 ARM mode\n                MOVNE   R1, #2                    ; R1 = 2 Thumb mode\n                SUB     R0, LR, R1\n                LDREQ   R0, [R0]                  ; ARM mode - R0 points to offending instruction\n                BEQ     undef_cont\n\n                ;Thumb instruction\n                ;Determine if it is a 32-bit Thumb instruction\n                LDRH    R0, [R0]\n                MOV     R2, #0x1c\n                CMP     R2, R0, LSR #11\n                BHS     undef_cont                ;16-bit Thumb instruction\n\n                ;32-bit Thumb instruction. Unaligned - we need to reconstruct the offending instruction\n                LDRH    R2, [LR]\n                ORR     R0, R2, R0, LSL #16\nundef_cont\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                ;R0 Offending instruction\n                ;R1 =2 (Thumb) or =4 (ARM)\n                BL      CUndefHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                LDR     LR, [SP, #24]             ; Restore stacked LR and possibly adjust for retry\n                SUB     LR, LR, R0\n                LDR     R0, [SP, #28]             ; Restore stacked SPSR\n                MSR     SPSR_CXSF, R0\n                POP     {R0-R4, R12}              ; Restore stacked APCS registers\n                ADD     SP, SP, #8                ; Adjust SP for already-restored banked registers\n                MOVS    PC, LR\n                ENDP\n\nPAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler              [WEAK]\n                IMPORT  CPAbtHandler\n                SUB     LR, LR, #4                ; Pre-adjust LR\n                SRSFD   SP!, #Mode_ABT            ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1     ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2     ; IFAR\n\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 281, "line_end": 340}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:9", "text": "PAbt_Handler\\\n                PROC\n                EXPORT  PAbt_Handler              [WEAK]\n                IMPORT  CPAbtHandler\n                SUB     LR, LR, #4                ; Pre-adjust LR\n                SRSFD   SP!, #Mode_ABT            ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to ABT mode stack\n                MRC     p15, 0, R0, c5, c0, 1     ; IFSR\n                MRC     p15, 0, R1, c6, c0, 2     ; IFAR\n\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CPAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                POP     {R0-R4, R12}              ; Restore stack APCS registers\n                RFEFD   SP!                       ; Return from exception\n                ENDP\n\n\nDAbt_Handler\\\n                PROC\n                EXPORT  DAbt_Handler              [WEAK]\n                IMPORT  CDAbtHandler\n                SUB     LR, LR, #8                ; Pre-adjust LR\n                SRSFD   SP!, #Mode_ABT            ; Save LR and SPRS to ABT mode stack\n                PUSH    {R0-R4, R12}              ; Save APCS corruptible registers to ABT mode stack\n                CLREX                             ; State of exclusive monitors unknown after taken data abort\n                MRC     p15, 0, R0, c5, c0, 0     ; DFSR\n                MRC     p15, 0, R1, c6, c0, 0     ; DFAR\n\n                MOV     R2, LR                    ; Set LR to third argument\n\n                AND     R12, SP, #4               ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                POP     {R0-R4, R12}              ; Restore stacked APCS registers\n                RFEFD   SP!                       ; Return from exception\n                ENDP\n\nFIQ_Handler\\\n                PROC\n                EXPORT  FIQ_Handler               [WEAK]\n                ;; An FIQ might occur between the dummy read and the real read of the GIC in IRQ_Handler,\n                ;; so if a real FIQ Handler is implemented, this will be needed before returning:\n                ;; LDR     R1, =GICI_BASE\n                ;; LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read ICCHPIR (GIC CPU Interface register) to avoid GIC 390 errata 801120\n                B       .", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 321, "line_end": 380}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:10", "text": "SUB     SP, SP, R12               ; Adjust stack\n                PUSH    {R12, LR}                 ; Store stack adjustment and dummy LR\n\n                BL      CDAbtHandler\n\n                POP     {R12, LR}                 ; Get stack adjustment & discard dummy LR\n                ADD     SP, SP, R12               ; Unadjust stack\n\n                POP     {R0-R4, R12}              ; Restore stacked APCS registers\n                RFEFD   SP!                       ; Return from exception\n                ENDP\n\nFIQ_Handler\\\n                PROC\n                EXPORT  FIQ_Handler               [WEAK]\n                ;; An FIQ might occur between the dummy read and the real read of the GIC in IRQ_Handler,\n                ;; so if a real FIQ Handler is implemented, this will be needed before returning:\n                ;; LDR     R1, =GICI_BASE\n                ;; LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read ICCHPIR (GIC CPU Interface register) to avoid GIC 390 errata 801120\n                B       .\n                ENDP\n\nSVC_Handler\\\n                PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\n\nIRQ_Handler\\\n                PROC\n                EXPORT  IRQ_Handler                [WEAK]\n                IMPORT  IRQCount\n                IMPORT  IRQTable\n                IMPORT  IRQNestLevel                ; Flag indicates whether inside an ISR, and the depth of nesting.  0 = not in ISR.\n                IMPORT  seen_id0_active             ; Flag used to workaround GIC 390 errata 733075\n\n                ;prologue\n                SUB     LR, LR, #4                  ; Pre-adjust LR\n                SRSFD   SP!, #Mode_SVC              ; Save LR_IRQ and SPRS_IRQ to SVC mode stack\n                CPS     #Mode_SVC                   ; Switch to SVC mode, to avoid a nested interrupt corrupting LR on a BL\n                PUSH    {R0-R3, R12}                ; Save remaining APCS corruptible registers to SVC stack\n\n                AND     R1, SP, #4                  ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R1                  ; Adjust stack\n                PUSH    {R1, LR}                    ; Store stack adjustment and LR_SVC to SVC stack\n\n                LDR     R0, =IRQNestLevel           ; Get address of nesting counter\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment nesting counter\n                STR     R1, [R0]\n\n                ;identify and acknowledge interrupt\n                LDR     R1, =GICI_BASE\n                LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read ICCHPIR (GIC CPU Interface register) to avoid GIC 390 errata 801120\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read ICCIAR (GIC CPU Interface register)\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                ; Workaround GIC 390 errata 733075 - see GIC-390_Errata_Notice_v6.pdf dated 09-Jul-2014\n                ; The following workaround code is for a single-core system.  It would be different in a multi-core system.\n                ; If the ID is 0 or 0x3FE or 0x3FF, then the GIC CPU interface may be locked-up so unlock it, otherwise service the interrupt as normal", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 361, "line_end": 420}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:11", "text": "PUSH    {R0-R3, R12}                ; Save remaining APCS corruptible registers to SVC stack\n\n                AND     R1, SP, #4                  ; Ensure stack is 8-byte aligned\n                SUB     SP, SP, R1                  ; Adjust stack\n                PUSH    {R1, LR}                    ; Store stack adjustment and LR_SVC to SVC stack\n\n                LDR     R0, =IRQNestLevel           ; Get address of nesting counter\n                LDR     R1, [R0]\n                ADD     R1, R1, #1                  ; Increment nesting counter\n                STR     R1, [R0]\n\n                ;identify and acknowledge interrupt\n                LDR     R1, =GICI_BASE\n                LDR     R0, [R1, #ICCHPIR_OFFSET]   ; Dummy Read ICCHPIR (GIC CPU Interface register) to avoid GIC 390 errata 801120\n                LDR     R0, [R1, #ICCIAR_OFFSET]    ; Read ICCIAR (GIC CPU Interface register)\n                DSB                                 ; Ensure that interrupt acknowledge completes before re-enabling interrupts\n\n                ; Workaround GIC 390 errata 733075 - see GIC-390_Errata_Notice_v6.pdf dated 09-Jul-2014\n                ; The following workaround code is for a single-core system.  It would be different in a multi-core system.\n                ; If the ID is 0 or 0x3FE or 0x3FF, then the GIC CPU interface may be locked-up so unlock it, otherwise service the interrupt as normal\n                ; Special IDs 1020=0x3FC and 1021=0x3FD are reserved values in GICv1 and GICv2 so will not occur here\n                CMP     R0, #0\n                BEQ     unlock\n                MOV     R2, #0x3FE\n                CMP     R0, R2\n                BLT     normal\nunlock\n                ; Unlock the CPU interface with a dummy write to ICDIPR0\n                LDR     R2, =GICD_BASE\n                LDR     R3, [R2, #ICDIPR0_OFFSET]\n                STR     R3, [R2, #ICDIPR0_OFFSET]\n                DSB                                 ; Ensure the write completes before continuing\n\n                ; If the ID is 0 and it is active and has not been seen before, then service it as normal,\n                ; otherwise the interrupt should be treated as spurious and not serviced.\n                CMP     R0, #0\n                BNE     ret_irq                     ; Not 0, so spurious\n                LDR     R3, [R2, #ICDABR0_OFFSET]   ; Get the interrupt state\n                TST     R3, #1\n                BEQ     ret_irq                     ; Not active, so spurious\n                LDR     R2, =seen_id0_active\n                LDRB    R3, [R2]\n                CMP     R3, #1\n                BEQ     ret_irq                     ; Seen it before, so spurious\n\n                ; Record that ID0 has now been seen, then service it as normal\n                MOV     R3, #1\n                STRB    R3, [R2]\n                ; End of Workaround GIC 390 errata 733075\n\nnormal\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Is there a handler for this IRQ?\n                BHS     end_int                     ; No handler, so return as normal\n                LDR     R2, =IRQTable               ; Get address of handler\n                LDR     R2, [R2, R0, LSL #2]\n                CMP     R2, #0                      ; Clean up and return if handler address is 0\n                BEQ     end_int\n                PUSH    {R0,R1}", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 401, "line_end": 460}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:12", "text": "LDR     R2, =seen_id0_active\n                LDRB    R3, [R2]\n                CMP     R3, #1\n                BEQ     ret_irq                     ; Seen it before, so spurious\n\n                ; Record that ID0 has now been seen, then service it as normal\n                MOV     R3, #1\n                STRB    R3, [R2]\n                ; End of Workaround GIC 390 errata 733075\n\nnormal\n                LDR     R2, =IRQCount               ; Read number of entries in IRQ handler table\n                LDR     R2, [R2]\n                CMP     R0, R2                      ; Is there a handler for this IRQ?\n                BHS     end_int                     ; No handler, so return as normal\n                LDR     R2, =IRQTable               ; Get address of handler\n                LDR     R2, [R2, R0, LSL #2]\n                CMP     R2, #0                      ; Clean up and return if handler address is 0\n                BEQ     end_int\n                PUSH    {R0,R1}\n\n                CPSIE   i                           ; Now safe to re-enable interrupts\n                BLX     R2                          ; Call handler. R0 = IRQ number. Beware calls to PendSV_Handler and OS_Tick_Handler do not return this way\n                CPSID   i                           ; Disable interrupts again\n\n                POP     {R0,R1}\n                DSB                                 ; Ensure that interrupt source is cleared before signalling End Of Interrupt\nend_int\n                ; R0 still contains the interrupt ID\n                ; R1 still contains GICI_BASE\n                ; EOI does not need to be written for IDs 1020 to 1023 (0x3FC to 0x3FF)\n                STR     R0, [R1, #ICCEOIR_OFFSET]   ; Normal end-of-interrupt write to EOIR (GIC CPU Interface register) to clear the active bit\n\n                ; If it was ID0, clear the seen flag, otherwise return as normal\n                CMP     R0, #0\n                LDREQ   R1, =seen_id0_active\n                STRBEQ  R0, [R1]                    ; Clear the seen flag, using R0 (which is 0), to save loading another register\nret_irq\n                ;epilogue\n                LDR     R0, =IRQNestLevel           ; Get address of nesting counter\n                LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement nesting counter\n                STR     R1, [R0]\n\n                POP     {R1, LR}                    ; Get stack adjustment and restore LR_SVC\n                ADD     SP, SP, R1                  ; Unadjust stack\n\n                POP     {R0-R3,R12}                 ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 441, "line_end": 492}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s:13", "text": "LDR     R1, [R0]\n                SUB     R1, R1, #1                  ; Decrement nesting counter\n                STR     R1, [R0]\n\n                POP     {R1, LR}                    ; Get stack adjustment and restore LR_SVC\n                ADD     SP, SP, R1                  ; Unadjust stack\n\n                POP     {R0-R3,R12}                 ; Restore stacked APCS registers\n                RFEFD   SP!                         ; Return from exception\n                ENDP\n\n                END", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0d4e4992ba6fe5db14ef7ce4dd4994e3d5347be3/Device/ARM/ARMCA9/Source/ARM/startup_ARMCA9.s", "line_start": 481, "line_end": 492}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s:1", "text": "/******************************************************************************\n * @file     startup_ARMCA9.s\n * @brief    CMSIS Device System Source File for ARM Cortex-A9 Device Series\n * @version  V1.00\n * @date     22 Feb 2017\n *\n * @note\n *\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\tMODULE\t?startup_ARMCA9\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Handler\n *----------------------------------------------------------------------------*/\n\tPUBWEAK\tUndef_Handler\n\tPUBWEAK SVC_Handler\n\tPUBWEAK PAbt_Handler\n\tPUBWEAK DAbt_Handler\n\tPUBWEAK IRQ_Handler\n\tPUBWEAK FIQ_Handler\n\n/*----------------------------------------------------------------------------\n  Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n\tsection\tRESET:CODE(4)\n\nVectors:\n\tLDR    PC, =Reset_Handler\n\tLDR    PC, =Undef_Handler\n\tLDR    PC, =SVC_Handler\n\tLDR    PC, =PAbt_Handler\n\tLDR    PC, =DAbt_Handler\n\tNOP\n\tLDR    PC, =IRQ_Handler\n\tLDR    PC, =FIQ_Handler\n\n\n\tsection .text:CODE:NOROOT(4)\n\n/*----------------------------------------------------------------------------\n  Reset Handler called on controller reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "c002aa9f0976d1692621e4683f50ba5c456fe6a4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c002aa9f0976d1692621e4683f50ba5c456fe6a4/Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s:2", "text": "Exception / Interrupt Vector Table\n *----------------------------------------------------------------------------*/\n\n\tsection\tRESET:CODE(4)\n\nVectors:\n\tLDR    PC, =Reset_Handler\n\tLDR    PC, =Undef_Handler\n\tLDR    PC, =SVC_Handler\n\tLDR    PC, =PAbt_Handler\n\tLDR    PC, =DAbt_Handler\n\tNOP\n\tLDR    PC, =IRQ_Handler\n\tLDR    PC, =FIQ_Handler\n\n\n\tsection .text:CODE:NOROOT(4)\n\n/*----------------------------------------------------------------------------\n  Reset Handler called on controller reset\n\t*----------------------------------------------------------------------------*/\n\tEXTERN\tSystemInit\n\tEXTERN\t__main\n\tEXTERN\tImage$$FIQ_STACK$$ZI$$Limit\n\tEXTERN\tImage$$IRQ_STACK$$ZI$$Limit\n\tEXTERN\tImage$$SVC_STACK$$ZI$$Limit\n\tEXTERN\tImage$$ABT_STACK$$ZI$$Limit\n\tEXTERN\tImage$$UND_STACK$$ZI$$Limit\n\tEXTERN\tImage$$ARM_LIB_STACK$$ZI$$Limit\n\nReset_Handler:\n\n\t// Mask interrupts\n\tCPSID   if\n\n\t// Put any cores other than 0 to sleep\n\tMRC     p15, 0, R0, c0, c0, 5\n\tANDS    R0, R0, #3\ngoToSleep:\n\tWFINE\n\tBNE     goToSleep\n\n\t// Reset SCTLR Settings\n\tMRC     p15, 0, R0, c1, c0, 0 // Read CP15 System Control register\n\tBIC     R0, R0, #(0x1 << 12) // Clear I bit 12 to disable I Cache\n\tBIC     R0, R0, #(0x1 <<  2) // Clear C bit  2 to disable D Cache\n\tBIC     R0, R0, #0x1\t     // Clear M bit  0 to disable MMU\n\tBIC     R0, R0, #(0x1 << 11) // Clear Z bit 11 to disable branch prediction\n\tBIC     R0, R0, #(0x1 << 13) // Clear V bit 13 to disable hivecs\n\tMCR     p15, 0, R0, c1, c0, 0 // Write value back to CP15 System Control register\n\tISB\n\n\t// Configure ACTLR\n\tMRC     p15, 0, r0, c1, c0, 1 // Read CP15 Auxiliary Control Register\n\tORR     r0, r0, #(1 <<  1) // Enable L2 prefetch hint (UNK/WI since r4p1)\n\tMCR     p15, 0, r0, c1, c0, 1 // Write CP15 Auxiliary Control Register\n\n\t// Set Vector Base Address Register (VBAR) to point to this application's vector table\n\tLDR    R0, =Vectors\n\tMCR    p15, 0, R0, c12, c0, 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "c002aa9f0976d1692621e4683f50ba5c456fe6a4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c002aa9f0976d1692621e4683f50ba5c456fe6a4/Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s:3", "text": "BNE     goToSleep\n\n\t// Reset SCTLR Settings\n\tMRC     p15, 0, R0, c1, c0, 0 // Read CP15 System Control register\n\tBIC     R0, R0, #(0x1 << 12) // Clear I bit 12 to disable I Cache\n\tBIC     R0, R0, #(0x1 <<  2) // Clear C bit  2 to disable D Cache\n\tBIC     R0, R0, #0x1\t     // Clear M bit  0 to disable MMU\n\tBIC     R0, R0, #(0x1 << 11) // Clear Z bit 11 to disable branch prediction\n\tBIC     R0, R0, #(0x1 << 13) // Clear V bit 13 to disable hivecs\n\tMCR     p15, 0, R0, c1, c0, 0 // Write value back to CP15 System Control register\n\tISB\n\n\t// Configure ACTLR\n\tMRC     p15, 0, r0, c1, c0, 1 // Read CP15 Auxiliary Control Register\n\tORR     r0, r0, #(1 <<  1) // Enable L2 prefetch hint (UNK/WI since r4p1)\n\tMCR     p15, 0, r0, c1, c0, 1 // Write CP15 Auxiliary Control Register\n\n\t// Set Vector Base Address Register (VBAR) to point to this application's vector table\n\tLDR    R0, =Vectors\n\tMCR    p15, 0, R0, c12, c0, 0\n\n\t// Setup Stack for each exception mode\n\tCPS    #0x11\n\tLDR    SP, =Image$$FIQ_STACK$$ZI$$Limit\n\tCPS    #0x12\n\tLDR    SP, =Image$$IRQ_STACK$$ZI$$Limit\n\tCPS    #0x13\n\tLDR    SP, =Image$$SVC_STACK$$ZI$$Limit\n\tCPS    #0x17\n\tLDR    SP, =Image$$ABT_STACK$$ZI$$Limit\n\tCPS    #0x1B\n\tLDR    SP, =Image$$UND_STACK$$ZI$$Limit\n\tCPS    #0x1F\n\tLDR    SP, =Image$$ARM_LIB_STACK$$ZI$$Limit\n\n\t// Call SystemInit\n\tBL     SystemInit\n\n\t// Unmask interrupts\n\tCPSIE  if\n\n\t// Call __main\n\tBL     __main\n\n/*----------------------------------------------------------------------------\n  Default Handler for Exceptions / Interrupts\n *----------------------------------------------------------------------------*/\nUndef_Handler:\nSVC_Handler:\nPAbt_Handler:\nDAbt_Handler:\nIRQ_Handler:\nFIQ_Handler:\nDefault_Handler:\n\tB\t.\n\n\tEND", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "c002aa9f0976d1692621e4683f50ba5c456fe6a4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c002aa9f0976d1692621e4683f50ba5c456fe6a4/Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "line_start": 81, "line_end": 137}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s:4", "text": "// Call __main\n\tBL     __main\n\n/*----------------------------------------------------------------------------\n  Default Handler for Exceptions / Interrupts\n *----------------------------------------------------------------------------*/\nUndef_Handler:\nSVC_Handler:\nPAbt_Handler:\nDAbt_Handler:\nIRQ_Handler:\nFIQ_Handler:\nDefault_Handler:\n\tB\t.\n\n\tEND", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "license": "Apache-2.0", "commit": "c002aa9f0976d1692621e4683f50ba5c456fe6a4", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c002aa9f0976d1692621e4683f50ba5c456fe6a4/Device/ARM/ARMCA9/Source/IAR/startup_ARMCA9.s", "line_start": 121, "line_end": 137}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; Define explicit HardFault exception handler\n; Do not use the default macro because the macro\n; leads to weired debug information.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:4", "text": "ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 121, "line_end": 169}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:4", "text": "$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 121, "line_end": 163}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:2", "text": ".section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3\n__heap_base:\n                .space   Heap_Size\n                .size    __heap_base, . - __heap_base\n__heap_limit:\n                .size    __heap_limit, . - __heap_limit\n                .endif\n\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __initial_sp                       /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:3", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:4", "text": "bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:5", "text": "Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 161, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:4", "text": "bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:5", "text": "Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 161, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM0/Source/ARM/startup_ARMCM0_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:4", "text": "b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:4", "text": "b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 121, "line_end": 169}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:2", "text": ".section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap\n                .align   3\n\t            .globl   __HeapBase\n\t            .globl   __HeapLimit\n__HeapBase:\n                .space   Heap_Size\n                .size    __HeapBase, . - __HeapBase\n__HeapLimit:\n                .size    __HeapLimit, . - __HeapLimit\n                .endif\n\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:4", "text": "Reset_Handler:\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n                subs     r3, r2\n                ble      .L_loop1_done", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:5", "text": "b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n                subs     r3, r2\n                ble      .L_loop1_done\n\n.L_loop1:\n                subs     r3, #4\n                ldr      r0, [r1,r3]\n                str      r0, [r2,r3]\n                bgt      .L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:6", "text": "/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n                subs     r2, r1\n                ble      .L_loop3_done\n\n.L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:7", "text": "subs     r2, r1\n                ble      .L_loop3_done\n\n.L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 241, "line_end": 296}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:8", "text": "Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 281, "line_end": 296}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:2", "text": "__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .vectors\n\t.align 2\n\t.globl\t__Vectors\n__Vectors:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:3", "text": "/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */\n\t.long\tLIN_IRQHandler        /* 18: LIN                        */\n\t.long\tI2C_IRQHandler        /* 19: I2C ADC/DAC                */\n\t.long\t0                     /* 20: Reserved                   */\n\t.long\t0                     /* 21: Reserved                   */\n\t.long\t0                     /* 22: Reserved                   */\n\t.long\t0                     /* 23: Reserved                   */\n\t.long\t0                     /* 24: Reserved                   */\n\t.long\t0                     /* 25: Reserved                   */\n\t.long\t0                     /* 26: Reserved                   */\n\t.long\t0                     /* 27: Reserved                   */\n\t.long\tCPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n\t.long\t0                     /* 29: Reserved - CPU FPGA        */\n\t.long\tUART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n\t.long\tSPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n\t.size\t__Vectors, . - __Vectors\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t1\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:4", "text": ".align\t1\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr4, =__copy_table_start__\n\tldr\tr5, =__copy_table_end__\n\n.L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tblt\t.L_loop0_0_done\n\tldr\tr0, [r1, r3]\n\tstr\tr0, [r2, r3]\n\tb\t.L_loop0_0\n\n.L_loop0_0_done:\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n\tsubs\tr3, r2\n\tble\t.L_loop1_done", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:5", "text": "b\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n\tsubs\tr3, r2\n\tble\t.L_loop1_done\n\n.L_loop1:\n\tsubs\tr3, #4\n\tldr\tr0, [r1,r3]\n\tstr\tr0, [r2,r3]\n\tbgt\t.L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\tblt\t.L_loop2_0_done", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:6", "text": "/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\tblt\t.L_loop2_0_done\n\tstr\tr0, [r1, r2]\n\tb\t.L_loop2_0\n.L_loop2_0_done:\n\n\tadds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n\n\tsubs\tr2, r1\n\tble\t.L_loop3_done\n\n.L_loop3:\n\tsubs\tr2, #4\n\tstr\tr0, [r1, r2]\n\tbgt\t.L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:7", "text": "subs\tr2, r1\n\tble\t.L_loop3_done\n\n.L_loop3:\n\tsubs\tr2, #4\n\tstr\tr0, [r1, r2]\n\tbgt\t.L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:8", "text": "def_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler\n\tdef_irq_handler\tCPU_CLCD_IRQHandler\n\tdef_irq_handler\tSPI_IRQHandler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 281, "line_end": 310}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM0/Source/GCC/startup_ARMCM0.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    ( 22)                                ; Interrupts 10 .. 31 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM0/Source/IAR/startup_ARMCM0.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM0plus/Source/ARM/startup_ARMCM0plus_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0plus Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0plus Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0plus Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M0plus Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM0plus.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM0plus Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM0plus/Source/GCC/startup_ARMCM0plus.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/IAR/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/IAR/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM0plus/Source/IAR/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM0plus/Source/IAR/startup_ARMCM0plus.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM0plus.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM0plus Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM0plus/Source/IAR/startup_ARMCM0plus.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM0plus/Source/IAR/startup_ARMCM0plus.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V5.3.1\n; * @date     20. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s:4", "text": "$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1.s", "line_start": 121, "line_end": 159}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM1 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM1 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM1 Device\n * @version  V5.3.1\n * @date     20. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S:4", "text": "bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "line_start": 121, "line_end": 176}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S:5", "text": "Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6.S", "line_start": 161, "line_end": 176}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM1 Device\n * @version  V5.3.1\n * @date     20. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S:2", "text": ".long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S:3", "text": ".fnstart\n                .cantunwind\nReset_Handler:\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_ac6_sct.S", "line_start": 81, "line_end": 131}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V5.3.1\n; * @date     20. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s:2", "text": "DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s:3", "text": "LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/ARM/startup_ARMCM1_sct.s", "line_start": 81, "line_end": 123}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M1 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M1 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M1 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M1 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM1 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM1.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM1 Device\n * @version  V5.3.1\n * @date     20. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:4", "text": "Reset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n                subs     r3, r2\n                ble      .L_loop1_done\n\n.L_loop1:\n                subs     r3, #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:5", "text": ".L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n                subs     r3, r2\n                ble      .L_loop1_done\n\n.L_loop1:\n                subs     r3, #4\n                ldr      r0, [r1,r3]\n                str      r0, [r2,r3]\n                bgt      .L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:6", "text": "* Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n                subs     r2, r1\n                ble      .L_loop3_done\n\n.L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S:7", "text": ".L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/GCC/startup_ARMCM1.S", "line_start": 241, "line_end": 295}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/IAR/startup_ARMCM1.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V1.0.0\n; * @date     20. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/IAR/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM1/Source/IAR/startup_ARMCM1.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM1/Source/IAR/startup_ARMCM1.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM1.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM1 Device\n; * @version  V5.3.1\n; * @date     20. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM1/Source/IAR/startup_ARMCM1.s", "license": "Apache-2.0", "commit": "a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/a3a6af2a9cdd4ef92ac68a0217c4bcf67938d75e/Device/ARM/ARMCM1/Source/IAR/startup_ARMCM1.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M23 Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                bl       SystemInit\n\n                bl       __main", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S:3", "text": ".globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                bl       SystemInit\n\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S:4", "text": ".fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "line_start": 121, "line_end": 155}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M23 Device\n * @version  V1.1.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; The default macro is not used for HardFault_Handler\n; because this results in a poor debug illusion.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:4", "text": "EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 121, "line_end": 171}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:5", "text": "IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 161, "line_end": 171}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; Define explicit HardFault exception handler\n; Do not use the default macro because the macro\n; leads to weired debug information.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:4", "text": "HardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 121, "line_end": 172}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:4", "text": "; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 121, "line_end": 166}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device Series\n; * @version  V5.1\n; * @date     31. July 2017\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:3", "text": "; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN\n                DCD     LIN_IRQHandler            ; 18: LIN\n                DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n                DCD     0                         ; 20: Reserved\n                DCD     0                         ; 21: Reserved\n                DCD     0                         ; 22: Reserved\n                DCD     0                         ; 23: Reserved\n                DCD     0                         ; 24: Reserved\n                DCD     0                         ; 25: Reserved\n                DCD     0                         ; 26: Reserved\n                DCD     0                         ; 27: Reserved\n                DCD     CPU_CLCD_IRQHandler       ; 28: Reserved - CPU FPGA CLCD\n                DCD     0                         ; 29: Reserved - CPU FPGA\n                DCD     UART3_IRQHandler          ; 30: UART3    - CPU FPGA\n                DCD     SPI_IRQHandler            ; 31: SPI Touchscreen - CPU FPGA\n__Vectors_End\n\n__Vectors_Size  EQU     __Vectors_End - __Vectors\n\n                AREA    |.text|, CODE, READONLY\n\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\t\t\t\tLDR\t\tR0, =Stack_Mem\n\t\t\t\tMSR\t\tMSPLIM, R0\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:4", "text": "; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\t\t\t\tLDR\t\tR0, =Stack_Mem\n\t\t\t\tMSR\t\tMSPLIM, R0\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:5", "text": "Default_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:6", "text": "USBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                EXPORT  __user_setup_stackheap\n\n__user_setup_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 201, "line_end": 243}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:3", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =__stack_limit\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:4", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:5", "text": "Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 161, "line_end": 183}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:4", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:5", "text": "Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 161, "line_end": 183}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:4", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 121, "line_end": 179}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S:5", "text": "Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6.S", "line_start": 161, "line_end": 179}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S:2", "text": ".long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$base     /* Linker symbol from scatter file */\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S:3", "text": ".globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_ac6_sct.S", "line_start": 81, "line_end": 135}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s:2", "text": "DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Base||  ; Linker symbol from scatter file\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =||Image$$ARM_LIB_STACK$$ZI$$Base||\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s:3", "text": "IMPORT   __main\n\n                LDR      R0, =||Image$$ARM_LIB_STACK$$ZI$$Base||\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/ARM/startup_ARMCM23_sct.s", "line_start": 81, "line_end": 127}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M23 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": ".globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsls     r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:4", "text": ".L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsls     r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:5", "text": ".size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 161, "line_end": 200}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M23 Device\n * @version  V2.2.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M23 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:4", "text": "str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:5", "text": ".set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 161, "line_end": 184}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M23 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:4", "text": ".L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:4", "text": ".L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:5", "text": ".endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 161, "line_end": 183}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M23 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:4", "text": ".L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 121, "line_end": 172}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:5", "text": "Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 161, "line_end": 172}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:4", "text": "Reset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:5", "text": ".L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n                subs     r3, r2\n                ble      .L_loop1_done\n\n.L_loop1:\n                subs     r3, #4\n                ldr      r0, [r1,r3]\n                str      r0, [r2,r3]\n                bgt      .L_loop1\n\n.L_loop1_done:\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:6", "text": "* Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n                subs     r2, r1\n                ble      .L_loop3_done\n\n.L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:7", "text": "ldr      r2, =__bss_end__\n\n                movs     r0, 0\n                subs     r2, r1\n                ble      .L_loop3_done\n\n.L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 241, "line_end": 299}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:8", "text": "Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 281, "line_end": 299}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:6", "text": "* Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n                subs     r2, r1\n                ble      .L_loop3_done\n\n.L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:7", "text": ".L_loop3:\n                subs     r2, #4\n                str      r0, [r1, r2]\n                bgt      .L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 241, "line_end": 298}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:8", "text": "Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 281, "line_end": 298}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device Series\n * @version  V5.00\n * @date     21. October 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM23.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM23 Device Series\n * @version  V5.00\n * @date     21. October 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "license": "Apache-2.0", "commit": "4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610/Device/ARM/ARMCM23/Source/GCC/startup_ARMCM23.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                #define __INITIAL_SP     sfe(CSTACK)\n                #define __STACK_LIMIT    sfb(CSTACK)\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                SECTION STACKSEAL:DATA:NOROOT(3)\n                #define __STACK_SEAL     sfb(STACKSEAL)\n                #endif\n\n                DATA\n\n__vector_table\n                DCD      __INITIAL_SP                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:3", "text": "DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:4", "text": "str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nSVC_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler\nInterrupt8_Handler\nInterrupt9_Handler\nDefault_Handler\n                B        .\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 121, "line_end": 168}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:3", "text": "DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nSVC_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM23.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM23 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "license": "Apache-2.0", "commit": "4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610/Device/ARM/ARMCM23/Source/IAR/startup_ARMCM23.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVC Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; The default macro is not used for HardFault_Handler\n; because this results in a poor debug illusion.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:4", "text": "; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 121, "line_end": 172}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:5", "text": "IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 161, "line_end": 172}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; Define explicit HardFault exception handler\n; Do not use the default macro because the macro\n; leads to weired debug information.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:4", "text": "ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 121, "line_end": 173}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:4", "text": "$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 121, "line_end": 167}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:2", "text": ".section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3\n__heap_base:\n                .space   Heap_Size\n                .size    __heap_base, . - __heap_base\n__heap_limit:\n                .size    __heap_limit, . - __heap_limit\n                .endif\n\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __initial_sp                       /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:3", "text": ".long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:4", "text": "bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:5", "text": "Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 161, "line_end": 184}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:4", "text": "bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:5", "text": "Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 161, "line_end": 184}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:4", "text": "bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S:5", "text": "Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6.S", "line_start": 161, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S:2", "text": ".long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S:3", "text": ".fnstart\n                .cantunwind\nReset_Handler:\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_ac6_sct.S", "line_start": 81, "line_end": 135}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s:2", "text": "DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (214 * 4)                           ; Interrupts 10 .. 224 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s:3", "text": "LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/ARM/startup_ARMCM3_sct.s", "line_start": 81, "line_end": 127}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M3 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsls     r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:4", "text": ".L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:5", "text": "Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 161, "line_end": 182}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M3 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M3 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M3 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:4", "text": "bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:5", "text": "Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 161, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:4", "text": "bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:5", "text": "Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 161, "line_end": 181}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M3 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:2", "text": ".section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap\n                .align   3\n\t            .globl   __HeapBase\n\t            .globl   __HeapLimit\n__HeapBase:\n                .space   Heap_Size\n                .size    __HeapBase, . - __HeapBase\n__HeapLimit:\n                .size    __HeapLimit, . - __HeapLimit\n                .endif\n\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:4", "text": "Reset_Handler:\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:\n                cmp      r2, r3\n                ittt     lt\n                ldrlt    r0, [r1], #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:5", "text": ".L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:\n                cmp      r2, r3\n                ittt     lt\n                ldrlt    r0, [r1], #4\n                strlt    r0, [r2], #4\n                blt      .L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:6", "text": "*   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n.L_loop3:\n                cmp      r1, r2\n                itt      lt\n                strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:8", "text": "Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 281, "line_end": 291}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:6", "text": "ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n.L_loop3:\n                cmp      r1, r2\n                itt      lt\n                strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:2", "text": "__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .vectors\n\t.align\t2\n\t.globl\t__Vectors\n__Vectors:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\tMemManage_Handler     /* MPU Fault Handler */\n\t.long\tBusFault_Handler      /* Bus Fault Handler */\n\t.long\tUsageFault_Handler    /* Usage Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\tDebugMon_Handler      /* Debug Monitor Handler */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:3", "text": "/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */\n\t.long\tLIN_IRQHandler        /* 18: LIN                        */\n\t.long\tI2C_IRQHandler        /* 19: I2C ADC/DAC                */\n\t.long\t0                     /* 20: Reserved                   */\n\t.long\t0                     /* 21: Reserved                   */\n\t.long\t0                     /* 22: Reserved                   */\n\t.long\t0                     /* 23: Reserved                   */\n\t.long\t0                     /* 24: Reserved                   */\n\t.long\t0                     /* 25: Reserved                   */\n\t.long\t0                     /* 26: Reserved                   */\n\t.long\t0                     /* 27: Reserved                   */\n\t.long\tCPU_CLCD_IRQHandler   /* 28: Reserved - CPU FPGA CLCD   */\n\t.long\t0                     /* 29: Reserved - CPU FPGA        */\n\t.long\tUART3_IRQHandler      /* 30: UART3    - CPU FPGA        */\n\t.long\tSPI_IRQHandler        /* 31: SPI Touchscreen - CPU FPGA */\n\n\t.size\t__Vectors, . - __Vectors\n\n\t.text\n\t.thumb\n\t.thumb_func\n\t.align\t2\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:4", "text": ".align\t2\n\t.globl\tReset_Handler\n\t.type\tReset_Handler, %function\nReset_Handler:\n/*  Firstly it copies data from read only memory to RAM. There are two schemes\n *  to copy. One can copy more than one sections. Another can only copy\n *  one section.  The former scheme needs more instructions and read-only\n *  data to implement than the latter.\n *  Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.  */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of triplets, each of which specify:\n *    offset 0: LMA of start of a section to copy from\n *    offset 4: VMA of start of a section to copy to\n *    offset 8: size of the section to copy. Must be multiply of 4\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr4, =__copy_table_start__\n\tldr\tr5, =__copy_table_end__\n\n.L_loop0:\n\tcmp\tr4, r5\n\tbge\t.L_loop0_done\n\tldr\tr1, [r4]\n\tldr\tr2, [r4, #4]\n\tldr\tr3, [r4, #8]\n\n.L_loop0_0:\n\tsubs\tr3, #4\n\tittt\tge\n\tldrge\tr0, [r1, r3]\n\tstrge\tr0, [r2, r3]\n\tbge\t.L_loop0_0\n\n\tadds\tr4, #12\n\tb\t.L_loop0\n\n.L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n.L_loop1:\n\tcmp\tr2, r3\n\tittt\tlt\n\tldrlt\tr0, [r1], #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:5", "text": ".L_loop0_done:\n#else\n/*  Single section scheme.\n *\n *  The ranges of copy from/to are specified by following symbols\n *    __etext: LMA of start of the section to copy from. Usually end of text\n *    __data_start__: VMA of start of the section to copy to\n *    __data_end__: VMA of end of the section to copy to\n *\n *  All addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__etext\n\tldr\tr2, =__data_start__\n\tldr\tr3, =__data_end__\n\n.L_loop1:\n\tcmp\tr2, r3\n\tittt\tlt\n\tldrlt\tr0, [r1], #4\n\tstrlt\tr0, [r2], #4\n\tblt\t.L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/*  This part of work usually is done in C library startup code. Otherwise,\n *  define this macro to enable it in this startup.\n *\n *  There are two schemes too. One can clear multiple BSS sections. Another\n *  can only clear one section. The former is more size expensive than the\n *  latter.\n *\n *  Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n *  Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/*  Multiple sections scheme.\n *\n *  Between symbol address __copy_table_start__ and __copy_table_end__,\n *  there are array of tuples specifying:\n *    offset 0: Start of a BSS section\n *    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\titt\tge\n\tstrge\tr0, [r1, r2]\n\tbge\t.L_loop2_0\n\n\tadds\tr3, #8\n\tb\t.L_loop2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:6", "text": "*    offset 4: Size of this BSS section. Must be multiply of 4\n */\n\tldr\tr3, =__zero_table_start__\n\tldr\tr4, =__zero_table_end__\n\n.L_loop2:\n\tcmp\tr3, r4\n\tbge\t.L_loop2_done\n\tldr\tr1, [r3]\n\tldr\tr2, [r3, #4]\n\tmovs\tr0, 0\n\n.L_loop2_0:\n\tsubs\tr2, #4\n\titt\tge\n\tstrge\tr0, [r1, r2]\n\tbge\t.L_loop2_0\n\n\tadds\tr3, #8\n\tb\t.L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/*  Single BSS section scheme.\n *\n *  The BSS section is specified by following symbols\n *    __bss_start__: start of the BSS section.\n *    __bss_end__: end of the BSS section.\n *\n *  Both addresses must be aligned to 4 bytes boundary.\n */\n\tldr\tr1, =__bss_start__\n\tldr\tr2, =__bss_end__\n\n\tmovs\tr0, 0\n.L_loop3:\n\tcmp\tr1, r2\n\titt\tlt\n\tstrlt\tr0, [r1], #4\n\tblt\t.L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:7", "text": "#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tMemManage_Handler\n\tdef_irq_handler\tBusFault_Handler\n\tdef_irq_handler\tUsageFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tDebugMon_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:8", "text": "def_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler\n\tdef_irq_handler\tCPU_CLCD_IRQHandler\n\tdef_irq_handler\tSPI_IRQHandler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 281, "line_end": 304}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM3.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM3 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM3/Source/GCC/startup_ARMCM3.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVC Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s:3", "text": "DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK MemManage_Handler\n                PUBWEAK BusFault_Handler\n                PUBWEAK UsageFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK DebugMon_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nMemManage_Handler\nBusFault_Handler\nUsageFault_Handler\nSVC_Handler\nDebugMon_Handler\nPendSV_Handler\nSysTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s:4", "text": "PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nMemManage_Handler\nBusFault_Handler\nUsageFault_Handler\nSVC_Handler\nDebugMon_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler\nInterrupt8_Handler\nInterrupt9_Handler\nDefault_Handler\n                B        .\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "line_start": 121, "line_end": 155}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (214)                                ; Interrupts 10 .. 224 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM3.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM3 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM3/Source/IAR/startup_ARMCM3.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M33 Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                bl       __main", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S:3", "text": ".globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S:4", "text": "Default_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "line_start": 121, "line_end": 159}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M33 Device\n * @version  V1.1.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "f9d4b2adad74bc44aaaf4c705594f3550edd0ad1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f9d4b2adad74bc44aaaf4c705594f3550edd0ad1/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; The default macro is not used for HardFault_Handler\n; because this results in a poor debug illusion.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:4", "text": "EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 121, "line_end": 176}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:5", "text": "; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 161, "line_end": 176}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; Define explicit HardFault exception handler\n; Do not use the default macro because the macro\n; leads to weired debug information.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:4", "text": "HardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 121, "line_end": 177}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:5", "text": "ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 161, "line_end": 177}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device Series\n; * @version  V5.1\n; * @date     31. July 2017\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:4", "text": "; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n\t\t\t\tLDR\t\tR0, =Stack_Mem\n\t\t\t\tMSR\t\tMSPLIM, R0\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSecureFault_Handler\\\n                PROC\n                EXPORT  SecureFault_Handler       [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:5", "text": "B       .\n                ENDP\nSecureFault_Handler\\\n                PROC\n                EXPORT  SecureFault_Handler       [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:6", "text": "EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                EXPORT  __user_setup_stackheap\n\n__user_setup_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:7", "text": "; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                EXPORT  __user_setup_stackheap\n\n__user_setup_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 241, "line_end": 268}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:2", "text": ".section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3\n__heap_base:\n                .space   Heap_Size\n                .size    __heap_base, . - __heap_base\n__heap_limit:\n                .size    __heap_limit, . - __heap_limit\n                .endif\n\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __initial_sp                       /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:3", "text": ".long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =__stack_limit\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:4", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:5", "text": "Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n#ifndef  __MICROLIB\n                .global  __use_two_region_memory\n#endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 161, "line_end": 188}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:4", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:5", "text": "Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .ifndef  __MICROLIB\n                .global  __use_two_region_memory\n                .endif\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 161, "line_end": 188}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM33/Source/ARM/startup_ARMCM33_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M33 Device\n * @version  V2.3.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": ".globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsls     r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsls     r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:5", "text": ".type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 161, "line_end": 202}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M33 Device\n * @version  V2.2.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": ".globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M33 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:2", "text": ".long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n/* CMSIS System Initialization */\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": "/* CMSIS System Initialization */\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:5", "text": "/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 161, "line_end": 187}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M33 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:2", "text": ".long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n/* CMSIS System Initialization */\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": "/* CMSIS System Initialization */\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": "/* CMSIS System Initialization */\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M33 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": "/* CMSIS System Initialization */\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 175}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:5", "text": "Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 161, "line_end": 175}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:2", "text": ".section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap\n                .align   3\n\t            .globl   __HeapBase\n\t            .globl   __HeapLimit\n__HeapBase:\n                .space   Heap_Size\n                .size    __HeapBase, . - __HeapBase\n__HeapLimit:\n                .size    __HeapLimit, . - __HeapLimit\n                .endif\n\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n/* CMSIS System Initialization */\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:4", "text": "Reset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n/* CMSIS System Initialization */\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:5", "text": "bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:\n                cmp      r2, r3\n                ittt     lt\n                ldrlt    r0, [r1], #4\n                strlt    r0, [r2], #4\n                blt      .L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:6", "text": "*\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n.L_loop3:\n                cmp      r1, r2\n                itt      lt\n                strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:7", "text": "itt      lt\n                strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 241, "line_end": 296}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device Series\n * @version  V5.00\n * @date     21. October 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:2", "text": "__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .vectors\n\t.align 2\n\t.globl\t__Vectors\n__Vectors:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\tMemManage_Handler     /* MPU Fault Handler */\n\t.long\tBusFault_Handler      /* Bus Fault Handler */\n\t.long\tUsageFault_Handler    /* Usage Fault Handler */\n    .long   SecureFault_Handler   /* Secure Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\tDebugMon_Handler      /* Debug Monitor Handler */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:7", "text": "#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tMemManage_Handler\n\tdef_irq_handler\tBusFault_Handler\n\tdef_irq_handler\tUsageFault_Handler\n\tdef_irq_handler\tSecureFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tDebugMon_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:8", "text": "def_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler\n\tdef_irq_handler\tCPU_CLCD_IRQHandler\n\tdef_irq_handler\tSPI_IRQHandler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 281, "line_end": 305}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM33.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM33 Device Series\n * @version  V5.00\n * @date     21. October 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "license": "Apache-2.0", "commit": "4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610/Device/ARM/ARMCM33/Source/GCC/startup_ARMCM33.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                #define __INITIAL_SP     sfe(CSTACK)\n                #define __STACK_LIMIT    sfb(CSTACK)\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                SECTION STACKSEAL:DATA:NOROOT(3)\n                #define __STACK_SEAL     sfb(STACKSEAL)\n                #endif\n\n                DATA\n\n__vector_table\n                DCD      __INITIAL_SP                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n__vector_table_0x1c\n                DCD      SecureFault_Handler                 ;  -9 Security Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:3", "text": "DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK MemManage_Handler\n                PUBWEAK BusFault_Handler\n                PUBWEAK UsageFault_Handler\n                PUBWEAK SecureFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK DebugMon_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:4", "text": "strd     r1,r1,[r0,#0]\n                #endif\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK MemManage_Handler\n                PUBWEAK BusFault_Handler\n                PUBWEAK UsageFault_Handler\n                PUBWEAK SecureFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK DebugMon_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nMemManage_Handler\nBusFault_Handler\nUsageFault_Handler\nSecureFault_Handler\nSVC_Handler\nDebugMon_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler\nInterrupt8_Handler\nInterrupt9_Handler\nDefault_Handler\n                B        .\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 121, "line_end": 177}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:5", "text": "SysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler\nInterrupt8_Handler\nInterrupt9_Handler\nDefault_Handler\n                B        .\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 161, "line_end": 177}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n__vector_table_0x1c\n                DCD      SecureFault_Handler                 ;  -9 Security Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM33.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM33 Device Series\n; * @version  V5.00\n; * @date     21. October 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "license": "Apache-2.0", "commit": "4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/4a4e39cedc1ae9fd60f4e3b96e95a058a4ab7610/Device/ARM/ARMCM33/Source/IAR/startup_ARMCM33.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for Cortex-M33 Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM33.S\n * @brief    CMSIS Core Device Startup File for Cortex-M33 Device\n * @version  V1.1.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "f9d4b2adad74bc44aaaf4c705594f3550edd0ad1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f9d4b2adad74bc44aaaf4c705594f3550edd0ad1/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V5.5.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V5.5.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V5.4.1\n; * @date     03. September 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s:4", "text": "; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P.s", "line_start": 121, "line_end": 167}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM35P Device\n * @version  V5.5.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM35P Device\n * @version  V5.5.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM35P Device\n * @version  V5.4.1\n * @date     03. September 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S:4", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S:5", "text": "Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n/* User setup Stack & Heap */\n\n                .global  __stack_limit\n                .global  __initial_sp\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .global  __heap_base\n                .global  __heap_limit\n                .endif\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6.S", "line_start": 161, "line_end": 184}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM35P Device\n * @version  V5.4.1\n * @date     03. September 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S:2", "text": ".long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S:3", "text": ".fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "line_start": 81, "line_end": 139}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S:4", "text": "Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_ac6_sct.S", "line_start": 121, "line_end": 139}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V5.4.1\n; * @date     03. September 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s:2", "text": "DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Base||  ; Linker symbol from scatter file\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =||Image$$ARM_LIB_STACK$$ZI$$Base||\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s:3", "text": "IMPORT   __main\n\n                LDR      R0, =||Image$$ARM_LIB_STACK$$ZI$$Base||\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "line_start": 81, "line_end": 132}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s:4", "text": "Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/ARM/startup_ARMCM35P_sct.s", "line_start": 121, "line_end": 132}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M35P Device\n * @version  V1.3.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/******************************************************************************\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS-Core Device Startup File for Cortex-M35P Device\n * @version  V1.2.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M35P Device\n * @version  V1.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:2", "text": ".long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsl      r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:4", "text": "adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M35P Device\n * @version  V1.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:2", "text": ".long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:4", "text": "b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:5", "text": "Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 161, "line_end": 184}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M35P Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:4", "text": "b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* Define explicit HardFault exception handler\n * Do not use the default macro because the macro\n * leads to weired debug information.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "2acec48834ae1e86a884ef39320a3b92115204a8", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2acec48834ae1e86a884ef39320a3b92115204a8/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M35P Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:3", "text": "bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:4", "text": "b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 121, "line_end": 174}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:5", "text": "Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 161, "line_end": 174}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM35P Device\n * @version  V1.0.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:4", "text": "Reset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:5", "text": "adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:\n                cmp      r2, r3\n                ittt     lt\n                ldrlt    r0, [r1], #4\n                strlt    r0, [r2], #4\n                blt      .L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:6", "text": "* Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n.L_loop3:\n                cmp      r1, r2\n                itt      lt\n                strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:7", "text": "strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 241, "line_end": 295}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM35P.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM35P Device\n * @version  V5.4.1\n * @date     03. September 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:4", "text": "Reset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                ittt     ge\n                ldrge    r0, [r1, r3]\n                strge    r0, [r2, r3]\n                bge      .L_loop0_0\n\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:\n                cmp      r2, r3\n                ittt     lt\n                ldrlt    r0, [r1], #4\n                strlt    r0, [r2], #4\n                blt      .L_loop1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:5", "text": "#else\n/* Single section scheme.\n *\n * The ranges of copy from/to are specified by following symbols\n *   __etext: LMA of start of the section to copy from. Usually end of text\n *   __data_start__: VMA of start of the section to copy to\n *   __data_end__: VMA of end of the section to copy to\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__etext\n                ldr      r2, =__data_start__\n                ldr      r3, =__data_end__\n\n.L_loop1:\n                cmp      r2, r3\n                ittt     lt\n                ldrlt    r0, [r1], #4\n                strlt    r0, [r2], #4\n                blt      .L_loop1\n#endif /*__STARTUP_COPY_MULTIPLE */\n\n/* This part of work usually is done in C library startup code.\n * Otherwise, define this macro to enable it in this startup.\n *\n * There are two schemes too.\n * One can clear multiple BSS sections. Another can only clear one section.\n * The former is more size expensive than the latter.\n *\n * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former.\n * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later.\n */\n#ifdef __STARTUP_CLEAR_BSS_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of tuples specifying:\n *   offset 0: Start of a BSS section\n *   offset 4: Size of this BSS section. Must be multiply of 4\n */\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:6", "text": "ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]\n                ldr      r2, [r3, #4]\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4\n                itt      ge\n                strge    r0, [r1, r2]\n                bge      .L_loop2_0\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n#elif defined (__STARTUP_CLEAR_BSS)\n/* Single BSS section scheme.\n *\n * The BSS section is specified by following symbols\n *   __bss_start__: start of the BSS section.\n *   __bss_end__: end of the BSS section.\n *\n * Both addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r1, =__bss_start__\n                ldr      r2, =__bss_end__\n\n                movs     r0, 0\n.L_loop3:\n                cmp      r1, r2\n                itt      lt\n                strlt    r0, [r1], #4\n                blt      .L_loop3\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S:7", "text": "msr      msplim, r0\n\n                bl       SystemInit\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/GCC/startup_ARMCM35P.S", "line_start": 241, "line_end": 294}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/IAR/startup_ARMCM35P.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V2.0.0\n; * @date     03. September 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/IAR/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMCM35P/Source/IAR/startup_ARMCM35P.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM35P/Source/IAR/startup_ARMCM35P.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM35P.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM35P Device\n; * @version  V5.4.1\n; * @date     03. September 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM35P/Source/IAR/startup_ARMCM35P.s", "license": "Apache-2.0", "commit": "ec9419cd6a05971b8f0fa910e209049448b744ce", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ec9419cd6a05971b8f0fa910e209049448b744ce/Device/ARM/ARMCM35P/Source/IAR/startup_ARMCM35P.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM4/Source/ARM/startup_ARMCM4_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M4 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M4 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M4 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M4 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M4 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM4.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM4 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM4/Source/GCC/startup_ARMCM4.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/IAR/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/IAR/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM4/Source/IAR/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM4/Source/IAR/startup_ARMCM4.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM4.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM4 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM4/Source/IAR/startup_ARMCM4.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM4/Source/IAR/startup_ARMCM4.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMCM7/Source/ARM/startup_ARMCM7_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M7 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M7 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M7 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS-Core(M) Device Startup File for Cortex-M7 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7e-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7e-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMCM7.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMCM7 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM7/Source/GCC/startup_ARMCM7.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/IAR/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/IAR/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMCM7/Source/IAR/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMCM7/Source/IAR/startup_ARMCM7.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMCM7.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMCM7 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMCM7/Source/IAR/startup_ARMCM7.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMCM7/Source/IAR/startup_ARMCM7.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVC Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    ( 22 * 4)                           ; Interrupts 10 .. 31 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; The default macro is not used for HardFault_Handler\n; because this results in a poor debug illusion.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:4", "text": "; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 121, "line_end": 168}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC000 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC000/Source/ARM/startup_ARMSC000_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS-Core(M) Device Startup File for SC000 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   ( 22 * 4)                          /* Interrupts 10 .. 31 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:3", "text": "ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsls     r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:\n                adds     r4, #12\n                b        .L_loop0\n\n.L_loop0_done:\n\n                ldr      r3, =__zero_table_start__\n                ldr      r4, =__zero_table_end__\n\n.L_loop2:\n                cmp      r3, r4\n                bge      .L_loop2_done\n                ldr      r1, [r3]                /* destination address */\n                ldr      r2, [r3, #4]            /* word count */\n                lsls     r2, r2, #2              /* byte count */\n                movs     r0, 0\n\n.L_loop2_0:\n                subs     r2, #4                  /* decrement byte count */\n                blt      .L_loop2_0_done\n                str      r0, [r1, r2]\n                b        .L_loop2_0\n.L_loop2_0_done:\n\n                adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:4", "text": "adds     r3, #8\n                b        .L_loop2\n.L_loop2_done:\n\n                bl       _start\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n/* The default macro is not used for HardFault_Handler\n * because this results in a poor debug illusion.\n */\n                .thumb_func\n                .type    HardFault_Handler, %function\n                .weak    HardFault_Handler\n                .fnstart\nHardFault_Handler:\n                b        .\n                .fnend\n                .size    HardFault_Handler, . - HardFault_Handler\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:5", "text": "/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 161, "line_end": 181}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS-Core(M) Device Startup File for SC000 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS-Core(M) Device Startup File for SC000 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS-Core(M) Device Startup File for SC000 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.S\n * @brief    CMSIS-Core(M) Device Startup File for SC000 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv6-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv6-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC000.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC000 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMSC000/Source/GCC/startup_ARMSC000.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           for ARMSC000 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVC Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    ( 22)                                ; Interrupts 10 .. 31 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:3", "text": "DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    ( 22)                                ; Interrupts 10 .. 31 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nSVC_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:4", "text": "PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nSVC_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler\nInterrupt8_Handler\nInterrupt9_Handler\nDefault_Handler\n                B        .\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 121, "line_end": 147}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           for ARMSC000 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           for ARMSC000 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC000.s\n; * @brief    CMSIS Core Device Startup File for\n; *           for ARMSC000 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMSC000/Source/IAR/startup_ARMSC000.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC300/Source/ARM/startup_ARMSC300_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS-Core(M) Device Startup File for SC300 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS-Core(M) Device Startup File for SC300 Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS-Core(M) Device Startup File for SC300 Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS-Core(M) Device Startup File for SC300 Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS-Core(M) Device Startup File for SC300 Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv7-m\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv7-m\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMSC300.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMSC300 Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMSC300/Source/GCC/startup_ARMSC300.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMSC300 Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           for ARMSC300 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMSC300.s\n; * @brief    CMSIS Core Device Startup File for\n; *           for ARMSC300 Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMSC300/Source/IAR/startup_ARMSC300.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv81MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv81MML Device Series\n; * @version  V1.0.0\n; * @date     15. March 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "48b8de320d841446f400f94ed6fc7578a3d1525f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/48b8de320d841446f400f94ed6fc7578a3d1525f/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "48b8de320d841446f400f94ed6fc7578a3d1525f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/48b8de320d841446f400f94ed6fc7578a3d1525f/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:4", "text": "; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n                ALIGN\n\n\n; User setup Stack & Heap\n\n                IF       :LNOT::DEF:__MICROLIB\n                IMPORT   __use_two_region_memory\n                ENDIF\n\n                EXPORT   __stack_limit\n                EXPORT   __initial_sp\n                IF       Heap_Size != 0                      ; Heap is provided\n                EXPORT   __heap_base\n                EXPORT   __heap_limit\n                ENDIF\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "48b8de320d841446f400f94ed6fc7578a3d1525f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/48b8de320d841446f400f94ed6fc7578a3d1525f/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 121, "line_end": 171}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv81MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv81MML Device Series\n; * @version  V1.0.0\n; * @date     25. February 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:2", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     MemManage_Handler         ; MPU Fault Handler\n                DCD     BusFault_Handler          ; Bus Fault Handler\n                DCD     UsageFault_Handler        ; Usage Fault Handler\n                DCD     SecureFault_Handler       ; Secure Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     DebugMon_Handler          ; Debug Monitor Handler\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:4", "text": "; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nMemManage_Handler\\\n                PROC\n                EXPORT  MemManage_Handler         [WEAK]\n                B       .\n                ENDP\nBusFault_Handler\\\n                PROC\n                EXPORT  BusFault_Handler          [WEAK]\n                B       .\n                ENDP\nUsageFault_Handler\\\n                PROC\n                EXPORT  UsageFault_Handler        [WEAK]\n                B       .\n                ENDP\nSecureFault_Handler\\\n                PROC\n                EXPORT  SecureFault_Handler       [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:5", "text": "SecureFault_Handler\\\n                PROC\n                EXPORT  SecureFault_Handler       [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nDebugMon_Handler\\\n                PROC\n                EXPORT  DebugMon_Handler          [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:6", "text": "EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s:7", "text": "; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/ARM/startup_ARMv81MML.s", "line_start": 241, "line_end": 267}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/GCC/startup_ARMv81MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv81MML.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv81MML Device\n * @version  V1.0.0\n * @date     25. February 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8.1-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n                .globl   __StackTop\n                .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/GCC/startup_ARMv81MML.S", "license": "Apache-2.0", "commit": "48b8de320d841446f400f94ed6fc7578a3d1525f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/48b8de320d841446f400f94ed6fc7578a3d1525f/Device/ARM/ARMv81MML/Source/GCC/startup_ARMv81MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv81MML/Source/IAR/startup_ARMv81MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv81MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv81MML Device\n; * @version  V1.0.0\n; * @date     25. Ferbruary 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv81MML/Source/IAR/startup_ARMv81MML.s", "license": "Apache-2.0", "commit": "c52cd62baa852cfaef25f24035e24b2abc1b3196", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c52cd62baa852cfaef25f24035e24b2abc1b3196/Device/ARM/ARMv81MML/Source/IAR/startup_ARMv81MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MBL Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                bl       SystemInit\n\n                bl       __main", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MBL Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "8be93b9e318bf5412d167b33a00cd38f9732062e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8be93b9e318bf5412d167b33a00cd38f9732062e/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MBL Device\n * @version  V1.1.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:2", "text": ";<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      __initial_sp                        ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n; The default macro is not used for HardFault_Handler\n; because this results in a poor debug illusion.\nHardFault_Handler PROC\n                EXPORT   HardFault_Handler         [WEAK]\n                B        .\n                ENDP\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  SVC_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:3", "text": "DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =__stack_limit\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .\n                ENDP\n                MEND\n\n\n; Default exception/interrupt handler\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.00\n; * @date     25. April 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "41401c724379bbea70285f4817ec07c89a0e6fb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/41401c724379bbea70285f4817ec07c89a0e6fb1/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.1\n; * @date     31. July 2017\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.00\n; * @date     25. April 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "6ba928f51cdfede0cae9378123a82cd50f3b5919", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6ba928f51cdfede0cae9378123a82cd50f3b5919/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:2", "text": "; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY\n                EXPORT  __Vectors\n                EXPORT  __Vectors_End\n                EXPORT  __Vectors_Size\n\n__Vectors       DCD     __initial_sp              ; Top of Stack\n                DCD     Reset_Handler             ; Reset Handler\n                DCD     NMI_Handler               ; NMI Handler\n                DCD     HardFault_Handler         ; Hard Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SecureFault_Handler       ; Secure Fault Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     SVC_Handler               ; SVCall Handler\n                DCD     0                         ; Reserved\n                DCD     0                         ; Reserved\n                DCD     PendSV_Handler            ; PendSV Handler\n                DCD     SysTick_Handler           ; SysTick Handler\n\n                ; External Interrupts\n                DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n                DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n                DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n                DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n                DCD     MCIA_IRQHandler           ;  4:  MCIa\n                DCD     MCIB_IRQHandler           ;  5:  MCIb\n                DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n                DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n                DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n                DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n                DCD     AACI_IRQHandler           ; 10: AACI / AC97\n                DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n                DCD     ENET_IRQHandler           ; 12: Ethernet\n                DCD     USBDC_IRQHandler          ; 13: USB Device\n                DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n                DCD     CHLCD_IRQHandler          ; 15: Character LCD\n                DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n                DCD     CAN_IRQHandler            ; 17: CAN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:4", "text": "; Reset Handler\n\nReset_Handler   PROC\n                EXPORT  Reset_Handler             [WEAK]\n                IMPORT  SystemInit\n                IMPORT  __main\n                LDR     R0, =SystemInit\n                BLX     R0\n                LDR     R0, =__main\n                BX      R0\n                ENDP\n\n\n; Dummy Exception Handlers (infinite loops which can be modified)\n\nNMI_Handler     PROC\n                EXPORT  NMI_Handler               [WEAK]\n                B       .\n                ENDP\nHardFault_Handler\\\n                PROC\n                EXPORT  HardFault_Handler         [WEAK]\n                B       .\n                ENDP\nSecureFault_Handler\\\n                PROC\n                EXPORT  SecureFault_Handler       [WEAK]\n                B       .\n                ENDP\nSVC_Handler     PROC\n                EXPORT  SVC_Handler               [WEAK]\n                B       .\n                ENDP\nPendSV_Handler  PROC\n                EXPORT  PendSV_Handler            [WEAK]\n                B       .\n                ENDP\nSysTick_Handler PROC\n                EXPORT  SysTick_Handler           [WEAK]\n                B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:5", "text": "B       .\n                ENDP\n\nDefault_Handler PROC\n\n                EXPORT  WDT_IRQHandler            [WEAK]\n                EXPORT  RTC_IRQHandler            [WEAK]\n                EXPORT  TIM0_IRQHandler           [WEAK]\n                EXPORT  TIM2_IRQHandler           [WEAK]\n                EXPORT  MCIA_IRQHandler           [WEAK]\n                EXPORT  MCIB_IRQHandler           [WEAK]\n                EXPORT  UART0_IRQHandler          [WEAK]\n                EXPORT  UART1_IRQHandler          [WEAK]\n                EXPORT  UART2_IRQHandler          [WEAK]\n                EXPORT  UART3_IRQHandler          [WEAK]\n                EXPORT  UART4_IRQHandler          [WEAK]\n                EXPORT  AACI_IRQHandler           [WEAK]\n                EXPORT  CLCD_IRQHandler           [WEAK]\n                EXPORT  ENET_IRQHandler           [WEAK]\n                EXPORT  USBDC_IRQHandler          [WEAK]\n                EXPORT  USBHC_IRQHandler          [WEAK]\n                EXPORT  CHLCD_IRQHandler          [WEAK]\n                EXPORT  FLEXRAY_IRQHandler        [WEAK]\n                EXPORT  CAN_IRQHandler            [WEAK]\n                EXPORT  LIN_IRQHandler            [WEAK]\n                EXPORT  I2C_IRQHandler            [WEAK]\n                EXPORT  CPU_CLCD_IRQHandler       [WEAK]\n                EXPORT  SPI_IRQHandler            [WEAK]\n\nWDT_IRQHandler\nRTC_IRQHandler\nTIM0_IRQHandler\nTIM2_IRQHandler\nMCIA_IRQHandler\nMCIB_IRQHandler\nUART0_IRQHandler\nUART1_IRQHandler\nUART2_IRQHandler\nUART3_IRQHandler\nUART4_IRQHandler\nAACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s:6", "text": "AACI_IRQHandler\nCLCD_IRQHandler\nENET_IRQHandler\nUSBDC_IRQHandler\nUSBHC_IRQHandler\nCHLCD_IRQHandler\nFLEXRAY_IRQHandler\nCAN_IRQHandler\nLIN_IRQHandler\nI2C_IRQHandler\nCPU_CLCD_IRQHandler\nSPI_IRQHandler\n                B       .\n\n                ENDP\n\n\n                ALIGN\n\n\n; User Initial Stack & Heap\n\n                IF      :DEF:__MICROLIB\n\n                EXPORT  __initial_sp\n                EXPORT  __heap_base\n                EXPORT  __heap_limit\n\n                ELSE\n\n                IMPORT  __use_two_region_memory\n                EXPORT  __user_initial_stackheap\n\n__user_initial_stackheap PROC\n                LDR     R0, =  Heap_Mem\n                LDR     R1, =(Stack_Mem + Stack_Size)\n                LDR     R2, = (Heap_Mem +  Heap_Size)\n                LDR     R3, = Stack_Mem\n                BX      LR\n                ENDP\n\n                ALIGN\n\n                ENDIF\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL.s", "line_start": 201, "line_end": 247}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S:3", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =__stack_limit\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6_sct.S:2", "text": ".long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$base     /* Linker symbol from scatter file */\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_ac6_sct.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_sct.s:2", "text": "DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                SPACE    (470 * 4)                           ; Interrupts 10 .. 480 are left out\n__Vectors_End\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                AREA     |.text|, CODE, READONLY\n\n; Reset Handler\n\nReset_Handler   PROC\n                EXPORT   Reset_Handler             [WEAK]\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Base||  ; Linker symbol from scatter file\n                IMPORT   SystemInit\n                IMPORT   __main\n\n                LDR      R0, =||Image$$ARM_LIB_STACK$$ZI$$Base||\n                MSR      MSPLIM, R0                          ; Non-secure version of MSPLIM is RAZ/WI\n\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__main\n                BX       R0\n                ENDP\n\n\n; Macro to define default exception/interrupt handlers.\n; Default handler are weak symbols with an endless loop.\n; They can be overwritten by real handlers.\n                MACRO\n                Set_Default_Handler  $Handler_Name\n$Handler_Name   PROC\n                EXPORT   $Handler_Name             [WEAK]\n                B        .", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/ARM/startup_ARMv8MBL_sct.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MBL Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (214 * 4)                          /* Interrupts 10 .. 224 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                str      r1,[r0,#0]\n                str      r1,[r0,#4]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MBL Device\n * @version  V2.2.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MBL Device\n * @version  V2.2.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core(M) Device Startup File for ARMv8MBL Device\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]                /* source address */\n                ldr      r2, [r4, #4]            /* destination address */\n                ldr      r3, [r4, #8]            /* word count */\n                lsl      r3, r3, #2              /* byte count */\n\n.L_loop0_0:\n                subs     r3, #4                  /* decrement byte count */\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core(M) Device Startup File for ARMv8MBL Device\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:2", "text": ".long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__\n\n.L_loop0:\n                cmp      r4, r5\n                bge      .L_loop0_done\n                ldr      r1, [r4]\n                ldr      r2, [r4, #4]\n                ldr      r3, [r4, #8]\n\n.L_loop0_0:\n                subs     r3, #4\n                blt      .L_loop0_0_done\n                ldr      r0, [r1, r3]\n                str      r0, [r2, r3]\n                b        .L_loop0_0\n\n.L_loop0_0_done:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS-Core(M) Device Startup File for ARMv8MBL Device\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__StackLimit\n                msr      msplim, r0\n\n                bl       SystemInit\n\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.base\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:3", "text": ".long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n/* Firstly it copies data from read only memory to RAM.\n * There are two schemes to copy. One can copy more than one sections.\n * Another can copy only one section. The former scheme needs more\n * instructions and read-only data to implement than the latter.\n * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes.\n */\n\n#ifdef __STARTUP_COPY_MULTIPLE\n/* Multiple sections scheme.\n *\n * Between symbol address __copy_table_start__ and __copy_table_end__,\n * there are array of triplets, each of which specify:\n *   offset 0: LMA of start of a section to copy from\n *   offset 4: VMA of start of a section to copy to\n *   offset 8: size of the section to copy. Must be multiply of 4\n *\n * All addresses must be aligned to 4 bytes boundary.\n */\n                ldr      r4, =__copy_table_start__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device Series\n * @version  V5.00\n * @date     25. April 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device Series\n * @version  V5.00\n * @date     25. April 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "6ba928f51cdfede0cae9378123a82cd50f3b5919", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6ba928f51cdfede0cae9378123a82cd50f3b5919/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MBL.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MBL Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv6-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:2", "text": "__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit\n\n\t.section .vectors\n\t.align 2\n\t.globl\t__Vectors\n__Vectors:\n\t.long\t__StackTop            /* Top of Stack */\n\t.long\tReset_Handler         /* Reset Handler */\n\t.long\tNMI_Handler           /* NMI Handler */\n\t.long\tHardFault_Handler     /* Hard Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n    .long   SecureFault_Handler   /* Secure Fault Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tSVC_Handler           /* SVCall Handler */\n\t.long\t0                     /* Reserved */\n\t.long\t0                     /* Reserved */\n\t.long\tPendSV_Handler        /* PendSV Handler */\n\t.long\tSysTick_Handler       /* SysTick Handler */\n\n\t/* External interrupts */\n\t.long\tWDT_IRQHandler        /*  0:  Watchdog Timer            */\n\t.long\tRTC_IRQHandler        /*  1:  Real Time Clock           */\n\t.long\tTIM0_IRQHandler       /*  2:  Timer0 / Timer1           */\n\t.long\tTIM2_IRQHandler       /*  3:  Timer2 / Timer3           */\n\t.long\tMCIA_IRQHandler       /*  4:  MCIa                      */\n\t.long\tMCIB_IRQHandler       /*  5:  MCIb                      */\n\t.long\tUART0_IRQHandler      /*  6:  UART0 - DUT FPGA          */\n\t.long\tUART1_IRQHandler      /*  7:  UART1 - DUT FPGA          */\n\t.long\tUART2_IRQHandler      /*  8:  UART2 - DUT FPGA          */\n\t.long\tUART4_IRQHandler      /*  9:  UART4 - not connected     */\n\t.long\tAACI_IRQHandler       /* 10: AACI / AC97                */\n\t.long\tCLCD_IRQHandler       /* 11: CLCD Combined Interrupt    */\n\t.long\tENET_IRQHandler       /* 12: Ethernet                   */\n\t.long\tUSBDC_IRQHandler      /* 13: USB Device                 */\n\t.long\tUSBHC_IRQHandler      /* 14: USB Host Controller        */\n\t.long\tCHLCD_IRQHandler      /* 15: Character LCD              */\n\t.long\tFLEXRAY_IRQHandler    /* 16: Flexray                    */\n\t.long\tCAN_IRQHandler        /* 17: CAN                        */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:7", "text": "subs\tr2, r1\n\tble\t.L_loop3_done\n\n.L_loop3:\n\tsubs\tr2, #4\n\tstr\tr0, [r1, r2]\n\tbgt\t.L_loop3\n.L_loop3_done:\n#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */\n\n#ifndef __NO_SYSTEM_INIT\n\tbl\tSystemInit\n#endif\n\n#ifndef __START\n#define __START _start\n#endif\n\tbl\t__START\n\n\t.pool\n\t.size\tReset_Handler, . - Reset_Handler\n\n\t.align\t1\n\t.thumb_func\n\t.weak\tDefault_Handler\n\t.type\tDefault_Handler, %function\nDefault_Handler:\n\tb\t.\n\t.size\tDefault_Handler, . - Default_Handler\n\n/*    Macro to define default handlers. Default handler\n *    will be weak symbol and just dead loops. They can be\n *    overwritten by other handlers */\n\t.macro\tdef_irq_handler\thandler_name\n\t.weak\t\\handler_name\n\t.set\t\\handler_name, Default_Handler\n\t.endm\n\n\tdef_irq_handler\tNMI_Handler\n\tdef_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSecureFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S:8", "text": "def_irq_handler\tHardFault_Handler\n\tdef_irq_handler\tSecureFault_Handler\n\tdef_irq_handler\tSVC_Handler\n\tdef_irq_handler\tPendSV_Handler\n\tdef_irq_handler\tSysTick_Handler\n\n\tdef_irq_handler\tWDT_IRQHandler\n\tdef_irq_handler\tRTC_IRQHandler\n\tdef_irq_handler\tTIM0_IRQHandler\n\tdef_irq_handler\tTIM2_IRQHandler\n\tdef_irq_handler\tMCIA_IRQHandler\n\tdef_irq_handler\tMCIB_IRQHandler\n\tdef_irq_handler\tUART0_IRQHandler\n\tdef_irq_handler\tUART1_IRQHandler\n\tdef_irq_handler\tUART2_IRQHandler\n\tdef_irq_handler\tUART3_IRQHandler\n\tdef_irq_handler\tUART4_IRQHandler\n\tdef_irq_handler\tAACI_IRQHandler\n\tdef_irq_handler\tCLCD_IRQHandler\n\tdef_irq_handler\tENET_IRQHandler\n\tdef_irq_handler\tUSBDC_IRQHandler\n\tdef_irq_handler\tUSBHC_IRQHandler\n\tdef_irq_handler\tCHLCD_IRQHandler\n\tdef_irq_handler\tFLEXRAY_IRQHandler\n\tdef_irq_handler\tCAN_IRQHandler\n\tdef_irq_handler\tLIN_IRQHandler\n\tdef_irq_handler\tI2C_IRQHandler\n\tdef_irq_handler\tCPU_CLCD_IRQHandler\n\tdef_irq_handler\tSPI_IRQHandler\n\n\t.end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/GCC/startup_ARMv8MBL.S", "line_start": 281, "line_end": 311}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVC Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:3", "text": "DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nSVC_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n__vector_table_0x1c\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.00\n; * @date     25. April 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.00\n; * @date     25. April 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "6ba928f51cdfede0cae9378123a82cd50f3b5919", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6ba928f51cdfede0cae9378123a82cd50f3b5919/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MBL.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MBL Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:2", "text": "MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)\n        DCD     Reset_Handler\n\n        DCD     NMI_Handler\n        DCD     HardFault_Handler\n        DCD     0\n        DCD     0\n        DCD     0\n__vector_table_0x1c\n        DCD     SecureFault_Handler\n        DCD     0\n        DCD     0\n        DCD     0\n        DCD     SVC_Handler\n        DCD     0\n        DCD     0\n        DCD     PendSV_Handler\n        DCD     SysTick_Handler\n\n        ; External Interrupts\n        DCD     WDT_IRQHandler            ;  0:  Watchdog Timer\n        DCD     RTC_IRQHandler            ;  1:  Real Time Clock\n        DCD     TIM0_IRQHandler           ;  2:  Timer0 / Timer1\n        DCD     TIM2_IRQHandler           ;  3:  Timer2 / Timer3\n        DCD     MCIA_IRQHandler           ;  4:  MCIa\n        DCD     MCIB_IRQHandler           ;  5:  MCIb\n        DCD     UART0_IRQHandler          ;  6:  UART0 - DUT FPGA\n        DCD     UART1_IRQHandler          ;  7:  UART1 - DUT FPGA\n        DCD     UART2_IRQHandler          ;  8:  UART2 - DUT FPGA\n        DCD     UART4_IRQHandler          ;  9:  UART4 - not connected\n        DCD     AACI_IRQHandler           ; 10: AACI / AC97\n        DCD     CLCD_IRQHandler           ; 11: CLCD Combined Interrupt\n        DCD     ENET_IRQHandler           ; 12: Ethernet\n        DCD     USBDC_IRQHandler          ; 13: USB Device\n        DCD     USBHC_IRQHandler          ; 14: USB Host Controller\n        DCD     CHLCD_IRQHandler          ; 15: Character LCD\n        DCD     FLEXRAY_IRQHandler        ; 16: Flexray\n        DCD     CAN_IRQHandler            ; 17: CAN\n        DCD     LIN_IRQHandler            ; 18: LIN\n        DCD     I2C_IRQHandler            ; 19: I2C ADC/DAC\n        DCD     0                         ; 20: Reserved", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:4", "text": ";;\n        THUMB\n\n        PUBWEAK Reset_Handler\n        SECTION .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n        LDR     R0, =SystemInit\n        BLX     R0\n        LDR     R0, =__iar_program_start\n        BX      R0\n\n        PUBWEAK NMI_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\n        B NMI_Handler\n\n        PUBWEAK HardFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nHardFault_Handler\n        B HardFault_Handler\n\n        PUBWEAK SecureFault_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSecureFault_Handler\n        B SecureFault_Handler\n\n        PUBWEAK SVC_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSVC_Handler\n        B SVC_Handler\n\n        PUBWEAK PendSV_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nPendSV_Handler\n        B PendSV_Handler\n\n        PUBWEAK SysTick_Handler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSysTick_Handler\n        B SysTick_Handler\n\n        PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 121, "line_end": 180}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:5", "text": "PUBWEAK WDT_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nWDT_IRQHandler\n        B WDT_IRQHandler\n\n        PUBWEAK RTC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nRTC_IRQHandler\n        B RTC_IRQHandler\n\n        PUBWEAK TIM0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM0_IRQHandler\n        B TIM0_IRQHandler\n\n        PUBWEAK TIM2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nTIM2_IRQHandler\n        B TIM2_IRQHandler\n\n        PUBWEAK MCIA_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIA_IRQHandler\n        B MCIA_IRQHandler\n\n        PUBWEAK MCIB_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nMCIB_IRQHandler\n        B MCIB_IRQHandler\n\n        PUBWEAK UART0_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART0_IRQHandler\n        B UART0_IRQHandler\n\n        PUBWEAK UART1_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART1_IRQHandler\n        B UART1_IRQHandler\n\n        PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 161, "line_end": 220}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:6", "text": "PUBWEAK UART2_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART2_IRQHandler\n        B UART2_IRQHandler\n\n        PUBWEAK UART4_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART4_IRQHandler\n        B UART4_IRQHandler\n\n        PUBWEAK AACI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nAACI_IRQHandler\n        B AACI_IRQHandler\n\n        PUBWEAK CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCLCD_IRQHandler\n        B CLCD_IRQHandler\n\n        PUBWEAK ENET_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nENET_IRQHandler\n        B ENET_IRQHandler\n\n        PUBWEAK USBDC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBDC_IRQHandler\n        B USBDC_IRQHandler\n\n        PUBWEAK USBHC_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUSBHC_IRQHandler\n        B USBHC_IRQHandler\n\n        PUBWEAK CHLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCHLCD_IRQHandler\n        B CHLCD_IRQHandler\n\n        PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 201, "line_end": 260}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s:7", "text": "PUBWEAK FLEXRAY_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nFLEXRAY_IRQHandler\n        B FLEXRAY_IRQHandler\n\n        PUBWEAK CAN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCAN_IRQHandler\n        B CAN_IRQHandler\n\n        PUBWEAK LIN_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nLIN_IRQHandler\n        B LIN_IRQHandler\n\n        PUBWEAK I2C_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nI2C_IRQHandler\n        B I2C_IRQHandler\n\n        PUBWEAK CPU_CLCD_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nCPU_CLCD_IRQHandler\n        B CPU_CLCD_IRQHandler\n\n        PUBWEAK UART3_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nUART3_IRQHandler\n        B UART3_IRQHandler\n\n        PUBWEAK SPI_IRQHandler\n        SECTION .text:CODE:REORDER:NOROOT(1)\nSPI_IRQHandler\n        B SPI_IRQHandler\n\n        END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MBL/Source/IAR/startup_ARMv8MBL.s", "line_start": 241, "line_end": 277}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core Device Startup File for Cortex-ARMv8MML Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                bl       __main", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core Device Startup File for Cortex-ARMv8MML Device\n * @version  V2.0.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "8be93b9e318bf5412d167b33a00cd38f9732062e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/8be93b9e318bf5412d167b33a00cd38f9732062e/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core Device Startup File for Cortex-ARMv8MML Device\n * @version  V1.1.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     Image$$ARM_LIB_STACK$$ZI$$Limit\n                #define __STACK_LIMIT    Image$$ARM_LIB_STACK$$ZI$$Base\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     Image$$STACKSEAL$$ZI$$Base\n                #endif\n\n                .section RESET\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "f9d4b2adad74bc44aaaf4c705594f3550edd0ad1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f9d4b2adad74bc44aaaf4c705594f3550edd0ad1/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V1.0.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "0b737069b693bfbef7a9fdebd1c80a659234471f", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/0b737069b693bfbef7a9fdebd1c80a659234471f/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V5.4.1\n; * @date     23. July 2019\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V5.4.0\n; * @date     12. December 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n\n\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nStack_Size      EQU      0x00000400\n\n                AREA     STACK, NOINIT, READWRITE, ALIGN=3\n__stack_limit\nStack_Mem       SPACE    Stack_Size\n__initial_sp\n\n\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n\nHeap_Size       EQU      0x00000C00\n\n                IF       Heap_Size != 0                      ; Heap is provided\n                AREA     HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE    Heap_Size\n__heap_limit\n                ENDIF\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "41401c724379bbea70285f4817ec07c89a0e6fb1", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/41401c724379bbea70285f4817ec07c89a0e6fb1/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device Series\n; * @version  V5.1\n; * @date     31. July 2017\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2017 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "ca0a3ffc73c5f0e228c9232a60c9ff2127504a79", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/ca0a3ffc73c5f0e228c9232a60c9ff2127504a79/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device Series\n; * @version  V5.00\n; * @date     02. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n;*/\n\n\n; <h> Stack Configuration\n;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nStack_Size      EQU     0x00000400\n\n                AREA    STACK, NOINIT, READWRITE, ALIGN=3\nStack_Mem       SPACE   Stack_Size\n__initial_sp\n\n\n; <h> Heap Configuration\n;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n; </h>\n\nHeap_Size       EQU     0x00000C00\n\n                AREA    HEAP, NOINIT, READWRITE, ALIGN=3\n__heap_base\nHeap_Mem        SPACE   Heap_Size\n__heap_limit\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA    RESET, DATA, READONLY", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device\n * @version  V5.4.0\n * @date     14. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S", "license": "Apache-2.0", "commit": "c2eab038fa6768097b310926d802fd8590c2f8d3", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/c2eab038fa6768097b310926d802fd8590c2f8d3/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device\n * @version  V5.4.0\n * @date     12. December 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S", "license": "Apache-2.0", "commit": "605e4d6cb99920f50afe81e1109476d7c2b728c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/605e4d6cb99920f50afe81e1109476d7c2b728c5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section STACK, \"w\",%nobits\n                .align   3\n__stack_limit:\n                .space   Stack_Size\n                .size    __stack_limit, . - __stack_limit\n__initial_sp:\n                .size    __initial_sp, . - __initial_sp\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section HEAP, \"w\",%nobits\n                .align   3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML_sct.S\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .eabi_attribute Tag_ABI_align_preserved, 1\n\n\n                .section RESET\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$Limit    /* Linker symbol from scatter file */\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    Image$$ARM_LIB_STACK$$ZI$$Limit    /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S:2", "text": ".long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n                .globl   Image$$ARM_LIB_STACK$$ZI$$base     /* Linker symbol from scatter file */\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S:3", "text": ".globl   Reset_Handler\n                .fnstart\n                .cantunwind\nReset_Handler:\n                ldr      r0, =Image$$ARM_LIB_STACK$$ZI$$base\n                msr      msplim, r0\n\n                bl       SystemInit\n                bl       __main\n\n                .fnend\n                .size    Reset_Handler, . - Reset_Handler\n\n\n                .thumb_func\n                .type    Default_Handler, %function\n                .weak    Default_Handler\n                .fnstart\n                .cantunwind\nDefault_Handler:\n                b        .\n                .fnend\n                .size    Default_Handler, . - Default_Handler\n\n/* Macro to define default exception/interrupt handlers.\n * Default handler are weak symbols with an endless loop.\n * They can be overwritten by real handlers.\n */\n                .macro   Set_Default_Handler  Handler_Name\n                .weak    \\Handler_Name\n                .set     \\Handler_Name, Default_Handler\n                .endm\n\n\n/* Default exception/interrupt handler */\n\n                Set_Default_Handler  NMI_Handler\n                Set_Default_Handler  HardFault_Handler\n                Set_Default_Handler  MemManage_Handler\n                Set_Default_Handler  BusFault_Handler\n                Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S:4", "text": "Set_Default_Handler  UsageFault_Handler\n                Set_Default_Handler  SecureFault_Handler\n                Set_Default_Handler  SVC_Handler\n                Set_Default_Handler  DebugMon_Handler\n                Set_Default_Handler  PendSV_Handler\n                Set_Default_Handler  SysTick_Handler\n\n                Set_Default_Handler  Interrupt0_Handler\n                Set_Default_Handler  Interrupt1_Handler\n                Set_Default_Handler  Interrupt2_Handler\n                Set_Default_Handler  Interrupt3_Handler\n                Set_Default_Handler  Interrupt4_Handler\n                Set_Default_Handler  Interrupt5_Handler\n                Set_Default_Handler  Interrupt6_Handler\n                Set_Default_Handler  Interrupt7_Handler\n                Set_Default_Handler  Interrupt8_Handler\n                Set_Default_Handler  Interrupt9_Handler\n\n\n                .end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_ac6_sct.S", "line_start": 121, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_sct.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML_sct.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n\n                PRESERVE8\n                THUMB\n\n\n; Vector Table Mapped to Address 0 at Reset\n\n                AREA     RESET, DATA, READONLY\n                IMPORT   ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ; Linker symbol from scatter file\n                EXPORT   __Vectors\n                EXPORT   __Vectors_End\n                EXPORT   __Vectors_Size\n\n__Vectors       DCD      ||Image$$ARM_LIB_STACK$$ZI$$Limit|| ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n                DCD      SecureFault_Handler                 ;  -9 Secure Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVCall Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_sct.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/ARM/startup_ARMv8MML_sct.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MML evice\n * @version  V2.3.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:2", "text": ".long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVC Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */\n                .long    Interrupt9_Handler                 /*   9 Interrupt 9 */\n\n                .space   (470 * 4)                          /* Interrupts 10 .. 480 are left out */\n__Vectors_End:\n                .equ     __Vectors_Size, __Vectors_End - __Vectors\n                .size    __Vectors, . - __Vectors\n\n\n                .thumb\n                .section .text\n                .align   2\n\n                .thumb_func\n                .type    Reset_Handler, %function\n                .globl   Reset_Handler\n                .fnstart\nReset_Handler:\n                ldr      r0, =__INITIAL_SP\n                msr      psp, r0\n\n                ldr      r0, =__STACK_LIMIT\n                msr      msplim, r0\n                msr      psplim, r0\n\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                ldr      r0, =__STACK_SEAL\n                ldr      r1, =0xFEF5EDA5U\n                strd     r1,r1,[r0,#0]\n                #endif\n\n                bl       SystemInit\n\n                ldr      r4, =__copy_table_start__\n                ldr      r5, =__copy_table_end__", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MML evice\n * @version  V2.3.0\n * @date     26. May 2021\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2021 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "3329b0d080d1584b9715efe25df6da58574406c9", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3329b0d080d1584b9715efe25df6da58574406c9/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/******************************************************************************\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core Device Startup File for ARMv8MML evice\n * @version  V2.2.0\n * @date     16. December 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                #define __INITIAL_SP     __StackTop\n                #define __STACK_LIMIT    __StackLimit\n                #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)\n                #define __STACK_SEAL     __StackSeal\n                #endif\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __INITIAL_SP                       /*     Initial Stack Pointer */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "09825bcfe7659e019308e92f6b6cba3a11e66285", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/09825bcfe7659e019308e92f6b6cba3a11e66285/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core(M) Device Startup File for ARMv8MML evice\n * @version  V2.1.0\n * @date     04. August 2020\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2020 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "cfa0772eebd14396c77c6701c93f2deb68dbda80", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/cfa0772eebd14396c77c6701c93f2deb68dbda80/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core(M) Device Startup File for ARMv8MML evice\n * @version  V2.0.1\n * @date     23. July 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "3ee1602c59586bb85b14c74947acef9fd0ec2e6d", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/3ee1602c59586bb85b14c74947acef9fd0ec2e6d/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.S\n * @brief    CMSIS-Core(M) Device Startup File for ARMv8MML evice\n * @version  V2.0.0\n * @date     20. May 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n                .section .vectors\n                .align   2\n                .globl   __Vectors\n                .globl   __Vectors_End\n                .globl   __Vectors_Size\n__Vectors:\n                .long    __StackTop                         /*     Top of Stack */\n                .long    Reset_Handler                      /*     Reset Handler */\n                .long    NMI_Handler                        /* -14 NMI Handler */\n                .long    HardFault_Handler                  /* -13 Hard Fault Handler */\n                .long    MemManage_Handler                  /* -12 MPU Fault Handler */\n                .long    BusFault_Handler                   /* -11 Bus Fault Handler */\n                .long    UsageFault_Handler                 /* -10 Usage Fault Handler */\n                .long    SecureFault_Handler                /*  -9 Secure Fault Handler */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    0                                  /*     Reserved */\n                .long    SVC_Handler                        /*  -5 SVCall Handler */\n                .long    DebugMon_Handler                   /*  -4 Debug Monitor Handler */\n                .long    0                                  /*     Reserved */\n                .long    PendSV_Handler                     /*  -2 PendSV Handler */\n                .long    SysTick_Handler                    /*  -1 SysTick Handler */\n\n                /* Interrupts */\n                .long    Interrupt0_Handler                 /*   0 Interrupt 0 */\n                .long    Interrupt1_Handler                 /*   1 Interrupt 1 */\n                .long    Interrupt2_Handler                 /*   2 Interrupt 2 */\n                .long    Interrupt3_Handler                 /*   3 Interrupt 3 */\n                .long    Interrupt4_Handler                 /*   4 Interrupt 4 */\n                .long    Interrupt5_Handler                 /*   5 Interrupt 5 */\n                .long    Interrupt6_Handler                 /*   6 Interrupt 6 */\n                .long    Interrupt7_Handler                 /*   7 Interrupt 7 */\n                .long    Interrupt8_Handler                 /*   8 Interrupt 8 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "6d82db6486585a6b15ca262b6f09b80a087afd81", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/6d82db6486585a6b15ca262b6f09b80a087afd81/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device\n * @version  V1.1.0\n * @date     23. January 2019\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2019 Arm Limited. All rights reserved\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "e3ed488a97de6aba6a4f677e7eec8744bc73ad2b", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/e3ed488a97de6aba6a4f677e7eec8744bc73ad2b/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device\n * @version  V5.3.1\n * @date     09. July 2018\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------\n*/\n\n                .syntax  unified\n                .arch    armv8-m.main\n\n\n/*\n;<h> Stack Configuration\n;  <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Stack_Size, 0x00000400\n\n                .section .stack\n                .align   3\n\t            .globl   __StackTop\n\t            .globl   __StackLimit\n__StackLimit:\n                .space   Stack_Size\n                .size    __StackLimit, . - __StackLimit\n__StackTop:\n                .size    __StackTop, . - __StackTop\n\n\n/*\n;<h> Heap Configuration\n;  <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>\n;</h>\n*/\n                .equ     Heap_Size, 0x00000C00\n\n                .if      Heap_Size != 0                     /* Heap is provided */\n                .section .heap", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "2f440b6f02b035e2f033ee979b397a13c6b3092e", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/2f440b6f02b035e2f033ee979b397a13c6b3092e/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S:1", "text": "/**************************************************************************//**\n * @file     startup_ARMv8MML.s\n * @brief    CMSIS Core Device Startup File for\n *           ARMv8MML Device Series\n * @version  V5.00\n * @date     02. March 2016\n ******************************************************************************/\n/*\n * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the License); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\t.syntax\tunified\n\t.arch\tarmv7-m\n\n\t.section .stack\n\t.align\t3\n#ifdef __STACK_SIZE\n\t.equ\tStack_Size, __STACK_SIZE\n#else\n\t.equ\tStack_Size, 0x00000400\n#endif\n\t.globl\t__StackTop\n\t.globl\t__StackLimit\n__StackLimit:\n\t.space\tStack_Size\n\t.size\t__StackLimit, . - __StackLimit\n__StackTop:\n\t.size\t__StackTop, . - __StackTop\n\n\t.section .heap\n\t.align\t3\n#ifdef __HEAP_SIZE\n\t.equ\tHeap_Size, __HEAP_SIZE\n#else\n\t.equ\tHeap_Size, 0x00000C00\n#endif\n\t.globl\t__HeapBase\n\t.globl\t__HeapLimit\n__HeapBase:\n\t.if\tHeap_Size\n\t.space\tHeap_Size\n\t.endif\n\t.size\t__HeapBase, . - __HeapBase\n__HeapLimit:\n\t.size\t__HeapLimit, . - __HeapLimit", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MML/Source/GCC/startup_ARMv8MML.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V1.0.0\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:2", "text": "MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack\n                DCD      Reset_Handler                       ;     Reset Handler\n                DCD      NMI_Handler                         ; -14 NMI Handler\n                DCD      HardFault_Handler                   ; -13 Hard Fault Handler\n                DCD      MemManage_Handler                   ; -12 MPU Fault Handler\n                DCD      BusFault_Handler                    ; -11 Bus Fault Handler\n                DCD      UsageFault_Handler                  ; -10 Usage Fault Handler\n__vector_table_0x1c\n                DCD      SecureFault_Handler                 ;  -9 Security Fault Handler\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      0                                   ;     Reserved\n                DCD      SVC_Handler                         ;  -5 SVC Handler\n                DCD      DebugMon_Handler                    ;  -4 Debug Monitor Handler\n                DCD      0                                   ;     Reserved\n                DCD      PendSV_Handler                      ;  -2 PendSV Handler\n                DCD      SysTick_Handler                     ;  -1 SysTick Handler\n\n                ; Interrupts\n                DCD      Interrupt0_Handler                  ;   0 Interrupt 0\n                DCD      Interrupt1_Handler                  ;   1 Interrupt 1\n                DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 41, "line_end": 100}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:3", "text": "DCD      Interrupt2_Handler                  ;   2 Interrupt 2\n                DCD      Interrupt3_Handler                  ;   3 Interrupt 3\n                DCD      Interrupt4_Handler                  ;   4 Interrupt 4\n                DCD      Interrupt5_Handler                  ;   5 Interrupt 5\n                DCD      Interrupt6_Handler                  ;   6 Interrupt 6\n                DCD      Interrupt7_Handler                  ;   7 Interrupt 7\n                DCD      Interrupt8_Handler                  ;   8 Interrupt 8\n                DCD      Interrupt9_Handler                  ;   9 Interrupt 9\n\n                DS32    (470)                                ; Interrupts 10 .. 480 are left out\n__Vectors_End\n\n__Vectors       EQU      __vector_table\n__Vectors_Size  EQU      __Vectors_End - __Vectors\n\n\n                THUMB\n\n; Reset Handler\n\n                PUBWEAK  Reset_Handler\n                SECTION  .text:CODE:REORDER:NOROOT(2)\nReset_Handler\n                LDR      R0, =SystemInit\n                BLX      R0\n                LDR      R0, =__iar_program_start\n                BX       R0\n\n\n                PUBWEAK NMI_Handler\n                PUBWEAK HardFault_Handler\n                PUBWEAK MemManage_Handler\n                PUBWEAK BusFault_Handler\n                PUBWEAK UsageFault_Handler\n                PUBWEAK SecureFault_Handler\n                PUBWEAK SVC_Handler\n                PUBWEAK DebugMon_Handler\n                PUBWEAK PendSV_Handler\n                PUBWEAK SysTick_Handler\n\n                PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nMemManage_Handler\nBusFault_Handler\nUsageFault_Handler\nSecureFault_Handler\nSVC_Handler\nDebugMon_Handler\nPendSV_Handler", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 81, "line_end": 140}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:4", "text": "PUBWEAK Interrupt0_Handler\n                PUBWEAK Interrupt1_Handler\n                PUBWEAK Interrupt2_Handler\n                PUBWEAK Interrupt3_Handler\n                PUBWEAK Interrupt4_Handler\n                PUBWEAK Interrupt5_Handler\n                PUBWEAK Interrupt6_Handler\n                PUBWEAK Interrupt7_Handler\n                PUBWEAK Interrupt8_Handler\n                PUBWEAK Interrupt9_Handler\n                SECTION .text:CODE:REORDER:NOROOT(1)\nNMI_Handler\nHardFault_Handler\nMemManage_Handler\nBusFault_Handler\nUsageFault_Handler\nSecureFault_Handler\nSVC_Handler\nDebugMon_Handler\nPendSV_Handler\nSysTick_Handler\n\nInterrupt0_Handler\nInterrupt1_Handler\nInterrupt2_Handler\nInterrupt3_Handler\nInterrupt4_Handler\nInterrupt5_Handler\nInterrupt6_Handler\nInterrupt7_Handler\nInterrupt8_Handler\nInterrupt9_Handler\nDefault_Handler\n                B        .\n\n\n                END", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "55b19837f5703e418ca37894d5745b1dc05e4c91", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/55b19837f5703e418ca37894d5745b1dc05e4c91/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 121, "line_end": 157}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device\n; * @version  V5.3.1\n; * @date     09. July 2018\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n                MODULE   ?cstartup\n\n                ;; Forward declaration of sections.\n                SECTION  CSTACK:DATA:NOROOT(3)\n\n                SECTION  .intvec:CODE:NOROOT(2)\n\n                EXTERN   __iar_program_start\n                EXTERN   SystemInit\n                PUBLIC   __vector_table\n                PUBLIC   __vector_table_0x1c\n                PUBLIC   __Vectors\n                PUBLIC   __Vectors_End\n                PUBLIC   __Vectors_Size\n\n                DATA\n\n__vector_table\n                DCD      sfe(CSTACK)                         ;     Top of Stack", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/9d12a19aaaccd07e943f5a5cf30cdca5bf8200d5/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "465bd439032f819b542b3589e4ccf9605583c7c5", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/465bd439032f819b542b3589e4ccf9605583c7c5/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/CMSIS_5:Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s:1", "text": ";/**************************************************************************//**\n; * @file     startup_ARMv8MML.s\n; * @brief    CMSIS Core Device Startup File for\n; *           ARMv8MML Device Series\n; * @version  V5.00\n; * @date     08. March 2016\n; ******************************************************************************/\n;/*\n; * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\n; *\n; * SPDX-License-Identifier: Apache-2.0\n; *\n; * Licensed under the Apache License, Version 2.0 (the License); you may\n; * not use this file except in compliance with the License.\n; * You may obtain a copy of the License at\n; *\n; * http://www.apache.org/licenses/LICENSE-2.0\n; *\n; * Unless required by applicable law or agreed to in writing, software\n; * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n; * See the License for the specific language governing permissions and\n; * limitations under the License.\n; */\n\n;\n; The modules in this file are included in the libraries, and may be replaced\n; by any user-defined modules that define the PUBLIC symbol _program_start or\n; a user defined start symbol.\n; To override the cstartup defined in the library, simply add your modified\n; version to the workbench project.\n;\n; The vector table is normally located at address 0.\n; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.\n; The name \"__vector_table\" has special meaning for C-SPY:\n; it is where the SP start value is found, and the NVIC vector\n; table register (VTOR) is initialized to this address if != 0.\n;\n; Cortex-M version\n;\n\n        MODULE  ?cstartup\n\n        ;; Forward declaration of sections.\n        SECTION CSTACK:DATA:NOROOT(3)\n\n        SECTION .intvec:CODE:NOROOT(2)\n\n        EXTERN  __iar_program_start\n        EXTERN  SystemInit\n        PUBLIC  __vector_table\n        PUBLIC  __vector_table_0x1c\n        PUBLIC  __Vectors\n        PUBLIC  __Vectors_End\n        PUBLIC  __Vectors_Size\n\n        DATA\n\n__vector_table\n        DCD     sfe(CSTACK)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/CMSIS_5", "path": "Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "license": "Apache-2.0", "commit": "f23653f3d8d883c90ab960d9a3f7484cd951acf0", "source_host": "github", "category": "embedded", "source_url": "https://github.com/ARM-software/CMSIS_5/blob/f23653f3d8d883c90ab960d9a3f7484cd951acf0/Device/ARM/ARMv8MML/Source/IAR/startup_ARMv8MML.s", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_eq.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x == y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BEQ     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_eq\n  .type arm_fp_dcmp_bool_eq,%function\narm_fp_dcmp_bool_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_eq, .-arm_fp_dcmp_bool_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_bool_eq.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_eq.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a == b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  BEQ     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_eq\n  .type arm_fp_dcmp_bool_eq,%function\narm_fp_dcmp_bool_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_eq, .-arm_fp_dcmp_bool_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_eq.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_bool_eq.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_ge.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x >= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BHS     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_ge\n  .type arm_fp_dcmp_bool_ge,%function\narm_fp_dcmp_bool_ge:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_ge, .-arm_fp_dcmp_bool_ge", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_ge.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_bool_ge.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_ge.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a >= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  BHS     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_ge\n  .type arm_fp_dcmp_bool_ge,%function\narm_fp_dcmp_bool_ge:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_ge, .-arm_fp_dcmp_bool_ge", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_ge.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_bool_ge.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_gt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x > y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BHI     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_gt\n  .type arm_fp_dcmp_bool_gt,%function\narm_fp_dcmp_bool_gt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_gt, .-arm_fp_dcmp_bool_gt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_gt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_bool_gt.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_gt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a > b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  BHI     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_gt\n  .type arm_fp_dcmp_bool_gt,%function\narm_fp_dcmp_bool_gt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_gt, .-arm_fp_dcmp_bool_gt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_gt.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_bool_gt.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_le.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x <= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BLS     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_le\n  .type arm_fp_dcmp_bool_le,%function\narm_fp_dcmp_bool_le:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_le, .-arm_fp_dcmp_bool_le", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_le.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_bool_le.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_le.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a <= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  BLS     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_le\n  .type arm_fp_dcmp_bool_le,%function\narm_fp_dcmp_bool_le:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_le, .-arm_fp_dcmp_bool_le", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_le.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_bool_le.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_lt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x < y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BLO     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_lt\n  .type arm_fp_dcmp_bool_lt,%function\narm_fp_dcmp_bool_lt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_lt, .-arm_fp_dcmp_bool_lt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_lt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_bool_lt.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_lt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a < b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  BLO     0f\n  MOVS    r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS    r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_lt\n  .type arm_fp_dcmp_bool_lt,%function\narm_fp_dcmp_bool_lt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_bool_lt, .-arm_fp_dcmp_bool_lt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_lt.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_bool_lt.S", "line_start": 1, "line_end": 37}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_un.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x and y are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\n  .globl arm_fp_dcmp_bool_un\n  .type arm_fp_dcmp_bool_un,%function\narm_fp_dcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in dcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  //\n  // We do this by shifting the high word of each input left to get rid of the\n  // sign bit, shifting a bit in at the bottom which is 1 if any bit is set in\n  // the low word. Then we check if the result is _greater_ than 0xFFE00000\n  // (but not equal), via adding 0x00200000 to it and testing for the HI\n  // condition (carry flag set, but Z clear).\n  //\n  // Once we've done that transformation to the first input xh:xl, we\n  // free up xl to contain our constant 0x00200000, so there's no need\n  // to push any registers.\n  CMP     xl, #1                // set C if xl is nonzero\n  ADCS    xh, xh, xh            // shift xh left, bringing in the C bit\n  MOVS    xl, #1                // now xl is free, make the test constant\n  LSLS    xl, xl, #21           //   by shifting 1 left to make 0x00200000\n  CMN     xh, xl                // HI if x is a NaN\n  BHI     dcmp_NaN\n  CMP     yl, #1                // set C if yl is nonzero\n  ADCS    yh, yh, yh            // shift yh left, bringing in the C bit\n  CMN     yh, xl                // HI if y is a NaN\n  BHI     dcmp_NaN\n\n  MOVS    r0, #0\n  BX      lr\n\ndcmp_NaN:\n  MOVS    r0, #1\n  BX      lr\n\n  .size arm_fp_dcmp_bool_un, .-arm_fp_dcmp_bool_un", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_un.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_bool_un.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_bool_un.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a and b are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\n  .globl arm_fp_dcmp_bool_un\n  .type arm_fp_dcmp_bool_un,%function\narm_fp_dcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in dcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  //\n  // We do this by shifting the high word of each input left to get rid of the\n  // sign bit, shifting a bit in at the bottom which is 1 if any bit is set in\n  // the low word. Then we check if the result is _greater_ than 0xFFE00000\n  // (but not equal), via adding 0x00200000 to it and testing for the HI\n  // condition (carry flag set, but Z clear).\n  //\n  // Once we've done that transformation to the first input ah:al, we\n  // free up al to contain our constant 0x00200000, so there's no need\n  // to push any registers.\n  CMP     al, #1                // set C if al is nonzero\n  ADCS    ah, ah, ah            // shift ah left, bringing in the C bit\n  MOVS    al, #1                // now al is free, make the test constant\n  LSLS    al, al, #21           //   by shifting 1 left to make 0x00200000\n  CMN     ah, al                // HI if a is a NaN\n  BHI     dcmp_NaN\n  CMP     bl, #1                // set C if bl is nonzero\n  ADCS    bh, bh, bh            // shift bh left, bringing in the C bit\n  CMN     bh, al                // HI if b is a NaN\n  BHI     dcmp_NaN\n\n  MOVS    r0, #0\n  BX      lr\n\ndcmp_NaN:\n  MOVS    r0, #1\n  BX      lr\n\n  .size arm_fp_dcmp_bool_un, .-arm_fp_dcmp_bool_un", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_bool_un.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_bool_un.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_flags.S:1", "text": "// Double-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_dcmp_flags\n  .type arm_fp_dcmp_flags,%function\narm_fp_dcmp_flags:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOVS    r0, #1\n  CMP     r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_flags, .-arm_fp_dcmp_flags", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_flags.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_flags.S", "line_start": 1, "line_end": 32}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_flags.S:1", "text": "// Double-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_dcmp_flags\n  .type arm_fp_dcmp_flags,%function\narm_fp_dcmp_flags:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOVS    r0, #1\n  CMP     r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_flags, .-arm_fp_dcmp_flags", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_flags.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_flags.S", "line_start": 1, "line_end": 32}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_flags_eq.S:1", "text": "// Double-precision comparison, returning EQ / NE in the flags.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_dcmp_flags_eq\n  .type arm_fp_dcmp_flags_eq,%function\narm_fp_dcmp_flags_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #1   // the value in r0 is unimportant; this just sets Z=0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_flags_eq, .-arm_fp_dcmp_flags_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_flags_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_flags_eq.S", "line_start": 1, "line_end": 29}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_flags_eq.S:1", "text": "// Double-precision comparison, returning EQ / NE in the flags.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_dcmp_flags_eq\n  .type arm_fp_dcmp_flags_eq,%function\narm_fp_dcmp_flags_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS    r0, #1   // the value in r0 is unimportant; this just sets Z=0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_flags_eq, .-arm_fp_dcmp_flags_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_flags_eq.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_flags_eq.S", "line_start": 1, "line_end": 29}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_flags_rev.S:1", "text": "// Double-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req yh\nop0l .req yl\nop1h .req xh\nop1l .req xl\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_dcmp_flags_rev\n  .type arm_fp_dcmp_flags_rev,%function\narm_fp_dcmp_flags_rev:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOVS    r0, #1\n  CMP     r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_flags_rev, .-arm_fp_dcmp_flags_rev", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_flags_rev.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_flags_rev.S", "line_start": 1, "line_end": 33}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_flags_rev.S:1", "text": "// Double-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req bh\nop0l .req bl\nop1h .req ah\nop1l .req al\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_dcmp_flags_rev\n  .type arm_fp_dcmp_flags_rev,%function\narm_fp_dcmp_flags_rev:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOVS    r0, #1\n  CMP     r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_flags_rev, .-arm_fp_dcmp_flags_rev", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_flags_rev.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/armv6-m/dcmp_flags_rev.S", "line_start": 1, "line_end": 33}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_gnu_cmp.S:1", "text": "// Double-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpdf2: it's a three-way compare\n// which returns <0 if x<y, 0 if x==y, and >0 if x>y. If the result is\n// unordered (i.e. x or y or both is NaN) then it returns >0.\n//\n// This also makes it suitable for use as all of __eqdf2, __nedf2, __ltdf2 or\n// __ledf2.\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BHI 0f\n  BLO 1f\n  MOVS r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS r0, #1\n  POP     {r4,r5,r6,pc}\n1:\n  MOVS r0, #1\n  RSBS r0, r0, #0\n  POP     {r4,r5,r6,pc}\n.endm\n\n  .globl arm_fp_dcmp_gnu_cmp\n  .type arm_fp_dcmp_gnu_cmp,%function\narm_fp_dcmp_gnu_cmp:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  MOVS r0, #1\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_gnu_cmp, .-arm_fp_dcmp_gnu_cmp", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_gnu_cmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_gnu_cmp.S", "line_start": 1, "line_end": 49}
{"id": "ARM-software/optimized-routines:fp/armv6-m/dcmp_gnu_rcmp.S:1", "text": "// Double-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpdf2, except for its NaN\n// handling. It's a three-way compare which returns <0 if x<y, 0 if x==y, and\n// >0 if x>y. If the result is unordered (i.e. x or y or both is NaN) then it\n// returns <0, where __cmpdf2 would return >0.\n//\n// This also makes it suitable for use as __gtdf2 or __gedf2 (or __eqdf2 or\n// __nedf2).\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  BHI 0f\n  BLO 1f\n  MOVS r0, #0\n  // This macro is always called immediately before returning from the\n  // function, so it's safe to use the same return instruction here, instead of\n  // wasting time branching forward to the end of the macro.\n  POP     {r4,r5,r6,pc}\n0:\n  MOVS r0, #1\n  POP     {r4,r5,r6,pc}\n1:\n  MOVS r0, #1\n  RSBS r0, r0, #0\n  POP     {r4,r5,r6,pc}\n.endm\n\n  .globl arm_fp_dcmp_gnu_rcmp\n  .type arm_fp_dcmp_gnu_rcmp,%function\narm_fp_dcmp_gnu_rcmp:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  MOVS r0, #1\n  RSBS r0, r0, #0\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_dcmp_gnu_rcmp, .-arm_fp_dcmp_gnu_rcmp", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/dcmp_gnu_rcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/dcmp_gnu_rcmp.S", "line_start": 1, "line_end": 51}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:1", "text": "// Single-precision addition and subtraction.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n// General structure of this code:\n//\n// There are three actual entry points here, for addition, subtraction and\n// reversed subtraction (just taking the operands the other way round, so that\n// it returns y-x instead of x-y). But the first thing the functions do (after\n// checking for NaNs) is to sort out whether the magnitudes of the two inputs\n// are being added (x+y with like signs, or x-y with different signs), or\n// subtracted. So fadd jumps across into the middle of fsub if it sees that the\n// signs are different, and vice versa. Then the main code path in fadd handles\n// magnitude addition, and the one in fsub handles magnitude subtraction.\n//\n// NaNs are checked first, so that an input NaN can be propagated exactly,\n// including its sign bit. After ruling out that case, it's safe to flip the\n// sign of one of the inputs, so that during the cross-calls, x - y can be\n// rewritten as x + (-y) and vice versa.\n\n  .globl arm_fp_fadd\n  .type arm_fp_fadd,%function\narm_fp_fadd:\n  PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31  // all cross-branches will expect to have r5==0x80000000\n\n  // Extract the exponents into r2 and r3. In the process, test for all\n  // uncommon values (infinities, NaNs, denormals and zeroes) and branch out of\n  // line if any are found.\n  //\n  // Uncommon operands with exponent 0xFF (NaNs and infinities) \"win\" over\n  // those with exponent 0 (zeroes and denormals), in the sense that if there's\n  // one of each, the 0xFF one determines the result. But we check for exponent\n  // 0 first, because that way we get it as a by-product of extracting the\n  // exponents in the first place without needing a separate compare\n  // instruction. So the zero/denorm handler will have to finish up the NaN\n  // check as its first task.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r2, r2, #24\n  BEQ     fadd_zerodenorm_x\n  LSRS    r3, r3, #24\n  BEQ     fadd_zerodenorm_y\n  CMP     r2, #255\n  BEQ     fadd_naninf\n  CMP     r3, #255\n  BEQ     fadd_naninf\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub\n  // (via a trampoline that negates y).\n  MOVS    r4, r0\n  EORS    r4, r4, r1         // set N if signs are unequal", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:2", "text": "// 0 first, because that way we get it as a by-product of extracting the\n  // exponents in the first place without needing a separate compare\n  // instruction. So the zero/denorm handler will have to finish up the NaN\n  // check as its first task.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r2, r2, #24\n  BEQ     fadd_zerodenorm_x\n  LSRS    r3, r3, #24\n  BEQ     fadd_zerodenorm_y\n  CMP     r2, #255\n  BEQ     fadd_naninf\n  CMP     r3, #255\n  BEQ     fadd_naninf\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub\n  // (via a trampoline that negates y).\n  MOVS    r4, r0\n  EORS    r4, r4, r1         // set N if signs are unequal\n  BMI     fadd_sub\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that x >= y.\n  SUBS    r4, r0, r1\n  BHS     fadd_swapped\n  SUBS    r0, r0, r4\n  ADDS    r1, r1, r4\n  // We must also swap the pre-extracted exponents here.\n  EORS    r2, r2, r3\n  EORS    r3, r3, r2\n  EORS    r2, r2, r3\nfadd_swapped:\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift y's\n  // mantissa right to add it to x's.\n  LSRS    r6, r0, #23\n  SUBS    r3, r2, r3\n\n  // Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit. We put y's extracted mantissa in a different register\n  // (r4), because we'll want to keep the original y for use in fadd_check_rte.\n  LSLS    r0, r0, #8\n  LSLS    r4, r1, #8\n  ORRS    r0, r0, r5\n  ORRS    r4, r4, r5\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r4 = mantissa of smaller operand (in high 24 bits);\n  //   r1 = original (or nearly so) smaller operand;\n  //   r6 = result sign and exponent (in low 9 bits);\n  //   r2 = exponent of x", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:3", "text": "// Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit. We put y's extracted mantissa in a different register\n  // (r4), because we'll want to keep the original y for use in fadd_check_rte.\n  LSLS    r0, r0, #8\n  LSLS    r4, r1, #8\n  ORRS    r0, r0, r5\n  ORRS    r4, r4, r5\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r4 = mantissa of smaller operand (in high 24 bits);\n  //   r1 = original (or nearly so) smaller operand;\n  //   r6 = result sign and exponent (in low 9 bits);\n  //   r2 = exponent of x\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r4) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n  LSRS    r4, r4, r3\n  ADDS    r5, r0, r4\n\n  // If that addition carried off the top of r5, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,\n  // because there we must check for overflow. We'll return to the label below\n  // if no overflow.\n  BCS     fadd_carry\nfadd_renormed:\n  // Now we have the output mantissa in r5, with the leading bit at position\n  // 31. The precise sum may be slightly more than that, if r4 != (y << r3).\n  //\n  // Shift the mantissa down to its final position, and use the carry flag (bit\n  // shifted off the bottom) to see if we need to round.\n  LSRS    r0, r5, #8\n  BCC     fadd_rounded\n\n  // If we fall through to here, then we need to round up, and also check if we\n  // need to round to even. This occurs if all the bits of y's mantissa shifted\n  // off the bottom are zero except for the round bit.\n  //\n  // Some of those bits are in r5 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  ADDS    r0, r0, #1          // simple round up\n  LSLS    r5, r5, #(32-7)     // check top 7 bits\n  BEQ     fadd_check_rte      // if those are zero, go to full RTE check\nfadd_rounded:\n  // Put the sign+exponent back on. The leading bit of the mantissa increments\n  // the exponent field unwantedly, so we must decrement r6 first to compensate\n  // for that.\n  SUBS    r6, r6, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:4", "text": "// Shift the mantissa down to its final position, and use the carry flag (bit\n  // shifted off the bottom) to see if we need to round.\n  LSRS    r0, r5, #8\n  BCC     fadd_rounded\n\n  // If we fall through to here, then we need to round up, and also check if we\n  // need to round to even. This occurs if all the bits of y's mantissa shifted\n  // off the bottom are zero except for the round bit.\n  //\n  // Some of those bits are in r5 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  ADDS    r0, r0, #1          // simple round up\n  LSLS    r5, r5, #(32-7)     // check top 7 bits\n  BEQ     fadd_check_rte      // if those are zero, go to full RTE check\nfadd_rounded:\n  // Put the sign+exponent back on. The leading bit of the mantissa increments\n  // the exponent field unwantedly, so we must decrement r6 first to compensate\n  // for that.\n  SUBS    r6, r6, #1\n  LSLS    r6, r6, #23\n  ADDS    r0, r0, r6\n  // If we haven't overflowed, it's now safe to return.\n  CMP     r2, #255\n  BGE     fadd_overflow\n  POP     {r4,r5,r6,pc}\n\nfadd_overflow:\n  // We have overflow, so we need to return an infinity of the correct sign. r0\n  // already has the correct sign and exponent, so all we need to do is clear\n  // its mantissa.\n  LSRS    r0, r0, #23\n  LSLS    r0, r0, #23\n  POP     {r4,r5,r6,pc}\n\nfadd_sub:\n  // We come here when fadd discovered it needed to subtract. Negate the second\n  // operand and cross-jump into fsub.\n  //\n  // The cross-jump is done using BL, for greater branch range. That clobbers\n  // lr, but that's OK, we weren't keeping anything in it at this point.\n  EORS    r1, r1, r5\n  BL      fsub_magnitude\n\nfadd_carry:\n  // We come here if we carried a 1 bit off the top of r5 where we computed the\n  // sum's mantissa. Shift back down by one and put a 1 bit in at the top.\n  //\n  // That would be easy with the RRX instruction from general AArch32, but we\n  // don't have that here. Instead we OR in a 1 at the bottom, and move it to\n  // the top by rotating right.\n  //\n  // A danger of shifting r5 down by a bit is that we lose the bit at the very\n  // bottom, which might be important if it's the only nonzero bit below the\n  // output mantissa, because then it determines whether we do RTE or not.\n  // Fortunately, another copy of the same bit is still at the bottom of r4\n  // (the shifted version of y's mantissa which we added to x's to make the\n  // version of r5 _before_ we shifted it down). So the full RTE check will\n  // have to remember to check that bit.\n  MOVS    r0, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:7", "text": "// all the bits below _that_. So y's leading 1 must be at least as high up as\n  // the round bit, and therefore, isn't one of the bits we currently need to\n  // check.\n  LSLS    r1, r1, #2\n\n  // Now if all those bits are zero, we're rounding to even. If _not_, we're\n  // finished rounding, so go back to fadd_rounded to continue the main code\n  // path.\n  BNE     fadd_rounded\n\n  // Clear the low bit of the output (rounding to even) and go back to the main\n  // code path.\n  MOVS    r4, #1\n  BICS    r0, r0, r4\n  B       fadd_rounded\n\nfadd_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  //\n  // On entry, we know r5 = 0x80000000 from the initial uncommon check. Also,\n  // we already extracted the exponents of x and y into r2 and r3.\n  ASRS    r4, r5, #7    // so r4 = 0xFF000000\n  LSLS    r6, r0, #1    // r6 > r4 iff x is NaN\n  CMP     r6, r4\n  BHI     fadd_nan\n  LSLS    r6, r1, #1    // r6 > r4 iff y is NaN\n  CMP     r6, r4\n  BHI     fadd_nan\n\n  // No NaNs, so we have at least one infinity. Almost all additions involving\n  // an infinity return the input infinity unchanged. The only exception is if\n  // there are two infinities that have opposite signs (which can happen even\n  // inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  CMP     r2, r3        // at least one exponent is 0xFF, so if EQ, both are\n  BEQ     fadd_infinf   //   and therefore we're adding infinity to infinity\n\n  // With one infinity, we just find which register it's in, and return it.\n  CMP     r2, #255\n  BEQ     fadd_ret_exact  // just return x\nfadd_retb: // we reuse this code in the denormal handler\n  MOVS    r0, r1          // otherwise, return y\nfadd_ret_exact:\n  POP     {r4,r5,r6,pc}\n\nfadd_infinf:\n  // With two infinities, we must check their relative sign. If they're the\n  // same sign, we have no problem.\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BPL     fadd_ret_exact  // identical infinities, so just return one\n\n  // But if we're adding two infinities of opposite sign, make a default quiet\n  // NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfadd_nan:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:8", "text": "CMP     r2, #255\n  BEQ     fadd_ret_exact  // just return x\nfadd_retb: // we reuse this code in the denormal handler\n  MOVS    r0, r1          // otherwise, return y\nfadd_ret_exact:\n  POP     {r4,r5,r6,pc}\n\nfadd_infinf:\n  // With two infinities, we must check their relative sign. If they're the\n  // same sign, we have no problem.\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BPL     fadd_ret_exact  // identical infinities, so just return one\n\n  // But if we're adding two infinities of opposite sign, make a default quiet\n  // NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfadd_nan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\nfadd_zerodenorm_x:\n  // We come here if we found x was 0 or a denormal. We haven't set up r3 as\n  // the exponent of y yet.\n  LSRS    r3, r3, #24\n\n  // Also, we checked for zero/denorm before checking for infinities and NaNs.\n  // We know x isn't an infinity or NaN, but we must check y.\n  CMP     r3, #255\n  BEQ     fadd_naninf\n\n  // Fall through to the next section. This repeats a pointless check for x\n  // being NaN or infinity, but it would cost more cycles to branch round it.\n\nfadd_zerodenorm_y:\n  // We come here if we found y was 0 or a denormal, but also by falling\n  // through from above. So we may not yet have checked x for infinity/NaN. But\n  // we have checked that y isn't.\n  CMP     r2, #255\n  BEQ     fadd_naninf\n\n  // Now at least one of x,y is zero or denormal, and neither is infinite or\n  // NaN. We haven't yet checked the signs and cross-jumped to fsub, but we can\n  // handle all the zero cases without having to:\n  //\n  //  - if x = -y (including both being zero), return 0 of the appropriate sign\n  //  - if x = 0, return y (including the case of same-signed zeroes)\n  //  - if y = 0, return x\n  SUBS    r6, r0, r1     // are x and y equal\n  CMP     r6, r5         //   except for opposite sign bits? (r5 = 0x80000000)\n  BEQ     fadd_diffsame\n  LSLS    r6, r1, #1     // is y zero?\n  BEQ     fadd_ret_exact // if so, return x\n  LSLS    r6, r0, #1     // is x zero?\n  BEQ     fadd_retb      // if so, return y\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:9", "text": "CMP     r2, #255\n  BEQ     fadd_naninf\n\n  // Now at least one of x,y is zero or denormal, and neither is infinite or\n  // NaN. We haven't yet checked the signs and cross-jumped to fsub, but we can\n  // handle all the zero cases without having to:\n  //\n  //  - if x = -y (including both being zero), return 0 of the appropriate sign\n  //  - if x = 0, return y (including the case of same-signed zeroes)\n  //  - if y = 0, return x\n  SUBS    r6, r0, r1     // are x and y equal\n  CMP     r6, r5         //   except for opposite sign bits? (r5 = 0x80000000)\n  BEQ     fadd_diffsame\n  LSLS    r6, r1, #1     // is y zero?\n  BEQ     fadd_ret_exact // if so, return x\n  LSLS    r6, r0, #1     // is x zero?\n  BEQ     fadd_retb      // if so, return y\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't\n  // want to handle both signs at once, so check the signs and cross-branch\n  // into fsub if they're different.\n  MOVS    r6, r1\n  EORS    r6, r6, r0\n  BPL     fadd_denorm\n  EORS    r1, r1, r5\n  BL      fsub_denorm\nfadd_denorm:\n  // Sort the operands into magnitude order. Now we know they have the same\n  // sign, unsigned comparison is good enough for that.\n  SUBS    r6, r0, r1\n  BHS     0f\n  SUBS    r0, r0, r6\n  ADDS    r1, r1, r6\n0:\n\n  // We know one exponent is 0, so check if the other is too. We do this by\n  // adding the two exponents together, achieving two things in one\n  // instruction: it gets the nonzero exponent (if any) into r2 (saving us\n  // swapping r2 with r3 in the sorting step above), and it sets Z if both were\n  // zero.\n  ADDS    r2, r2, r3\n  BEQ     fadd_denorm2\n\n  // Now exactly one operand is denormal, and it's y. We must go back to\n  // fadd_doadd with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of x\n  LSLS    r4, r1, #8   // r4 == mantissa of y, with leading bit clear\n  LSLS    r0, r0, #8\n  ORRS    r0, r0, r5   // set high bit on mantissa of x\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fadd_doadd\n\nfadd_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfadd_denorm2:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:10", "text": "// zero.\n  ADDS    r2, r2, r3\n  BEQ     fadd_denorm2\n\n  // Now exactly one operand is denormal, and it's y. We must go back to\n  // fadd_doadd with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of x\n  LSLS    r4, r1, #8   // r4 == mantissa of y, with leading bit clear\n  LSLS    r0, r0, #8\n  ORRS    r0, r0, r5   // set high bit on mantissa of x\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fadd_doadd\n\nfadd_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfadd_denorm2:\n  // Here, x,y are both denormal, and we know we're doing magnitude addition.\n  // So we can add the mantissas like ordinary integers, and if they carry into\n  // the exponent, that's still the correct answer. But we have to avoid adding\n  // two copies of the sign bit, so we clear that from y first.\n  BICS    r1, r1, r5  // clear sign bit of y\n  ADDS    r0, r0, r1  // add mantissas\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute y-x, where x is in r0 and y in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they\n  // saved. So instead, on the fast path, we redo the sign check our own way\n  // and branch to fadd_magnitude or fsub_magnitude.\n\n  PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31 // all cross-branches will expect to have r5 = 0x80000000\n\n  // Extract the exponents and test for uncommon values. Note that we do the\n  // zero/denormal tests the opposite way round from fsub, because we swap the\n  // operands before branching to the corresponding fsub code, so this way our\n  // first branch will enter fsub with the first of _its_ operands checked.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r3, r3, #24\n  BEQ     frsb_zerodenorm_y\n  LSRS    r2, r2, #24\n  BEQ     frsb_zerodenorm_x\n  CMP     r2, #255\n  BEQ     frsb_naninf\n  CMP     r3, #255\n  BEQ     frsb_naninf", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:11", "text": "PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31 // all cross-branches will expect to have r5 = 0x80000000\n\n  // Extract the exponents and test for uncommon values. Note that we do the\n  // zero/denormal tests the opposite way round from fsub, because we swap the\n  // operands before branching to the corresponding fsub code, so this way our\n  // first branch will enter fsub with the first of _its_ operands checked.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r3, r3, #24\n  BEQ     frsb_zerodenorm_y\n  LSRS    r2, r2, #24\n  BEQ     frsb_zerodenorm_x\n  CMP     r2, #255\n  BEQ     frsb_naninf\n  CMP     r3, #255\n  BEQ     frsb_naninf\n\n  // Decide which of fadd_magnitude and fsub_magnitude to branch to, and do so.\n  EORS    r0, r0, r5\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BPL     frsb_add\n  EORS    r1, r1, r5\n  BL      fsub_magnitude\nfrsb_add:\n  BL      fadd_magnitude\n\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\nfrsb_zerodenorm_y:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_zerodenorm_x  // we just swapped x and y, so now x is 0/denorm\nfrsb_zerodenorm_x:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_zerodenorm_y  // similarly, now we know y is\nfrsb_naninf:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_naninf\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  PUSH {r4,r5,r6,lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:12", "text": "frsb_zerodenorm_x:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_zerodenorm_y  // similarly, now we know y is\nfrsb_naninf:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_naninf\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31\n\n  // Extract the exponents into r2 and r3 and test for all uncommon values,\n  // similarly to fadd.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r2, r2, #24\n  BEQ     fsub_zerodenorm_x\n  LSRS    r3, r3, #24\n  BEQ     fsub_zerodenorm_y\n  CMP     r2, #255\n  BEQ     fsub_naninf\n  CMP     r3, #255\n  BEQ     fsub_naninf\n\n  // Check the signs, and if they're unequal, cross-jump into fadd to do\n  // magnitude addition. (Now we've excluded NaNs, it's safe to flip the sign\n  // of y.)\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_add\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that x >= y. However, if they are swapped, we must also negate\n  // both of them, since A - B = (-B) - (-A).\n  SUBS    r4, r0, r1\n  BHS     fsub_swapped\n  EORS    r4, r4, r5\n  SUBS    r0, r0, r4\n  ADDS    r1, r1, r4\n  // We must also swap the pre-extracted exponents here.\n  EORS    r2, r2, r3\n  EORS    r3, r3, r2\n  EORS    r2, r2, r3\nfsub_swapped:\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:13", "text": "MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_add\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that x >= y. However, if they are swapped, we must also negate\n  // both of them, since A - B = (-B) - (-A).\n  SUBS    r4, r0, r1\n  BHS     fsub_swapped\n  EORS    r4, r4, r5\n  SUBS    r0, r0, r4\n  ADDS    r1, r1, r4\n  // We must also swap the pre-extracted exponents here.\n  EORS    r2, r2, r3\n  EORS    r3, r3, r2\n  EORS    r2, r2, r3\nfsub_swapped:\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  LSRS    r6, r0, #23\n  SUBS    r3, r2, r3\n\n  // Shift the mantissas up to the top of the words. In the process we put y's\n  // shifted mantissa into a separate register, keeping the original for later\n  // reference. Also, although we set the leading bit of y, we _clear_ the\n  // leading bit of x, which is just as quick and saves us having to decrement\n  // the output exponent later to compensate.\n  LSLS    r0, r0, #8\n  LSLS    r4, r1, #8\n  BICS    r0, r0, r5\n  ORRS    r4, r4, r5\n\nfsub_dosub: // we may come back here after sorting out denorms\n\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in top 24 bits, with high bit clear)\n  //   r4 = mantissa of smaller operand (in top 24 bits, with high bit set)\n  //   r1 = original smaller operand (up to maybe a sign flip)\n  //   r6 = result sign/exponent (in low 9 bits)\n  //   r2 = plain result exponent (in low 8 bits, i.e. r6 & 0xFF)\n  //   r3 = exponent difference.\n  //\n  // Begin calculating the output mantissa by shifting y's mantissa right and\n  // subtracting. This may leave the mantissa too large by one, if the bits\n  // shifted out of y are nonzero. We correct this during rounding if\n  // necessary.\n  LSRS    r4, r4, r3\n  SUBS    r5, r0, r4\n\n  // This may have cleared the high bit of the output mantissa, in which case\n  // we must renormalise. Our strategy is to split into three code paths, on\n  // two of which an awkward case is known not to arise:\n  //  * no need to renormalise at all => underflow can't happen\n  //  * shift up by exactly 1 bit\n  //  * shift up by more than 1 bit => rounding can't happen (result is exact)\n  //\n  // First branch out of line for the first case, which we can detect because", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:14", "text": "//   r1 = original smaller operand (up to maybe a sign flip)\n  //   r6 = result sign/exponent (in low 9 bits)\n  //   r2 = plain result exponent (in low 8 bits, i.e. r6 & 0xFF)\n  //   r3 = exponent difference.\n  //\n  // Begin calculating the output mantissa by shifting y's mantissa right and\n  // subtracting. This may leave the mantissa too large by one, if the bits\n  // shifted out of y are nonzero. We correct this during rounding if\n  // necessary.\n  LSRS    r4, r4, r3\n  SUBS    r5, r0, r4\n\n  // This may have cleared the high bit of the output mantissa, in which case\n  // we must renormalise. Our strategy is to split into three code paths, on\n  // two of which an awkward case is known not to arise:\n  //  * no need to renormalise at all => underflow can't happen\n  //  * shift up by exactly 1 bit\n  //  * shift up by more than 1 bit => rounding can't happen (result is exact)\n  //\n  // First branch out of line for the first case, which we can detect because\n  // the N flag tells us whether the top mantissa bit is still set.\n  BPL     fsub_renormed\n\n  // Renormalise by one bit, and check the new top bit to see if we need to\n  // renormalise by more than that.\n  LSLS    r5, r5, #1\n  BPL     fsub_renorm_big // if new top bit still clear, renormalise by more\n  // Decrement both exponent registers (r6 with the sign, r2 without). We\n  // decrement r6 by 2 instead of 1, because now the output mantissa has the\n  // top bit set, so we must compensate when we put the sign and exponent back\n  // on.\n  //\n  // The extra decrement of r6 might carry into the sign bit. This doesn't\n  // matter on the fast path, because the leading bit in the mantissa will undo\n  // it. But we need to account for it in the underflow handler for this path.\n  SUBS    r6, r6, #2\n  SUBS    r2, r2, #1\n  // The decrement of the pure exponent value also doubles as a check for\n  // underflow, because we underflowed precisely if the exponent went to 0.\n  BEQ     fsub_underflow_1\nfsub_renormed:\n  // Now we have the output mantissa in r5. It may or may not have the high bit\n  // set, depending on which branch of the code we've come through. But r6 has\n  // been adjusted appropriately, so that we can make a basically right output\n  // value (before rounding) by adding r6 << 23 to r5 >> 8.\n  //\n  // If any nonzero bits were shifted off the bottom of y, then the true value\n  // of the output mantissa might be slightly _less_ than the value in r5.\n  // However the maximum difference is about 2^{-7} ULP relative to the final\n  // result (because it's at most one ULP of the 32-bit output mantissa in r5).\n  // So it doesn't affect the result in round-to-nearest mode unless it puts us\n  // just below a rounding boundary, which means we can ignore it until the\n  // full round-to-even check.\n  LSLS    r6, r6, #23  // prepare sign and exponent\n  LSRS    r0, r5, #8   // shift down, and put the round bit into C\n  BCS     fsub_round   // diverge based on round bit\n  // If the round bit shifted off the bottom of r5 was clear, then we're not\n  // rounding up, so we can make the output value and finish immediately.\n  ADDS    r0, r0, r6   // reconstitute output value without rounding\n  POP     {r4,r5,r6,pc}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:15", "text": "fsub_renormed:\n  // Now we have the output mantissa in r5. It may or may not have the high bit\n  // set, depending on which branch of the code we've come through. But r6 has\n  // been adjusted appropriately, so that we can make a basically right output\n  // value (before rounding) by adding r6 << 23 to r5 >> 8.\n  //\n  // If any nonzero bits were shifted off the bottom of y, then the true value\n  // of the output mantissa might be slightly _less_ than the value in r5.\n  // However the maximum difference is about 2^{-7} ULP relative to the final\n  // result (because it's at most one ULP of the 32-bit output mantissa in r5).\n  // So it doesn't affect the result in round-to-nearest mode unless it puts us\n  // just below a rounding boundary, which means we can ignore it until the\n  // full round-to-even check.\n  LSLS    r6, r6, #23  // prepare sign and exponent\n  LSRS    r0, r5, #8   // shift down, and put the round bit into C\n  BCS     fsub_round   // diverge based on round bit\n  // If the round bit shifted off the bottom of r5 was clear, then we're not\n  // rounding up, so we can make the output value and finish immediately.\n  ADDS    r0, r0, r6   // reconstitute output value without rounding\n  POP     {r4,r5,r6,pc}\nfsub_round:\n  // Otherwise, we're rounding, in three stages. First round up; then cheaply\n  // check the low bits of r5 (the 32-bit version of the mantissa) so that we\n  // can rule out round-to-even if any of those is nonzero; finally, in as few\n  // cases as possible, check the rest of y's mantissa to check for RTE fully.\n  ADCS    r0, r0, r6      // reconstitute output value while rounding up\n  LSLS    r5, r5, #(32-7) // check first 7 guard bits\n  BEQ     fsub_check_rte  // if the're all 0, do the full check for RTE\n  POP     {r4,r5,r6,pc}   // otherwise we're done\n\nfsub_add:\n  // Trampoline to cross-jump to fadd, because a 16-bit branch won't reach that\n  // far. Also a convenient place to flip y's sign, so we only have to do it\n  // once.\n  EORS    r1, r1, r5      // we know r5 = 0x80000000\n  BL      fadd_magnitude  // clobbers lr, which doesn't matter\n\nfsub_check_rte:\n  // Full check for round-to-even, in the same style as fadd_check_rte: r4\n  // still contains the version of y's mantissa that we shifted down before\n  // subtracting from x, and r1 contains the original version of that mantissa.\n  // So if we shift r4 back up again and XOR it with r1, we clear all the bits\n  // that we've already checked, and leave only the ones we haven't. The only\n  // exception is the leading mantissa bit, which is implicit in r1, but this\n  // can never affect round-to-even, because if we rounded at all then the\n  // round bit must have come from y, so the leading bit of y is at the round\n  // bit or above, hence not one of the bits we're checking for RTE.\n  LSLS    r4, r4, r3  // undo the shift of y's mantissa\n  LSLS    r1, r1, #8  // shift y's original mantissa back to the same place\n  EORS    r1, r1, r4  // find any differences\n  LSLS    r1, r1, #1  // but ignore the leading mantissa bit\n  BEQ     fsub_rte    // if all bits now clear, we're rounding to even\n\n  // If we're not RTEing, we must undo the simplistic rounding we've already\n  // done. (We incremented the result based on the belief that the shifted-off\n  // data started 0x80xxx, but it turns out that xxx is slightly negative, so\n  // actually we had 0x7Fyyy.)\n  SUBS    r0, r0, #1\n  POP     {r4,r5,r6,pc}\nfsub_rte:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 561, "line_end": 620}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:16", "text": "// subtracting from x, and r1 contains the original version of that mantissa.\n  // So if we shift r4 back up again and XOR it with r1, we clear all the bits\n  // that we've already checked, and leave only the ones we haven't. The only\n  // exception is the leading mantissa bit, which is implicit in r1, but this\n  // can never affect round-to-even, because if we rounded at all then the\n  // round bit must have come from y, so the leading bit of y is at the round\n  // bit or above, hence not one of the bits we're checking for RTE.\n  LSLS    r4, r4, r3  // undo the shift of y's mantissa\n  LSLS    r1, r1, #8  // shift y's original mantissa back to the same place\n  EORS    r1, r1, r4  // find any differences\n  LSLS    r1, r1, #1  // but ignore the leading mantissa bit\n  BEQ     fsub_rte    // if all bits now clear, we're rounding to even\n\n  // If we're not RTEing, we must undo the simplistic rounding we've already\n  // done. (We incremented the result based on the belief that the shifted-off\n  // data started 0x80xxx, but it turns out that xxx is slightly negative, so\n  // actually we had 0x7Fyyy.)\n  SUBS    r0, r0, #1\n  POP     {r4,r5,r6,pc}\nfsub_rte:\n  // Actually round to even, by clearing the low bit of the output.\n  MOVS    r4, #1\n  BICS    r0, r0, r4\n  POP     {r4,r5,r6,pc}\n\nfsub_renorm_big:\n  // Now we know that we must renormalise by at least 2 bits, which may also\n  // give a denormal or zero result.\n  //\n  // This means no rounding can possibly be needed: if the subtraction cleared\n  // the top two bits of the mantissa, it means we computed A-B and found it\n  // was less than A/2, so B > A/2, so the exponent difference was at most 1.\n  // Hence the result mantissa fits in 24 bits even before renormalisation, and\n  // the top bit is clear, so it fits in 23 bits, i.e. it is exact.\n\n  // Detect an actual zero result, and go and return it.\n  BEQ     fsub_diffsame\n\n  // Renormalise by binary search. (16-bit Thumb has no CLZ instruction.) We'll\n  // accumulate the total exponent adjustment in r0. It starts at 1 rather than\n  // 0, because we've shifted the mantissa left by one bit already.\n  MOVS    r0, #1\n\n  // If the top 16 bits of r5 are clear, shift up by 16 and adjust r0 to match.\n  LSRS    r3, r5, #(32-16)\n  BNE     0f\n  LSLS    r5, r5, #16\n  ADDS    r0, r0, #16\n0:\n  // Same for 8 bits\n  LSRS    r3, r5, #(32-8)\n  BNE     0f\n  LSLS    r5, r5, #8\n  ADDS    r0, r0, #8\n0:\n  // 4 bits\n  LSRS    r3, r5, #(32-4)\n  BNE     0f\n  LSLS    r5, r5, #4\n  ADDS    r0, r0, #4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 601, "line_end": 660}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:17", "text": "// 0, because we've shifted the mantissa left by one bit already.\n  MOVS    r0, #1\n\n  // If the top 16 bits of r5 are clear, shift up by 16 and adjust r0 to match.\n  LSRS    r3, r5, #(32-16)\n  BNE     0f\n  LSLS    r5, r5, #16\n  ADDS    r0, r0, #16\n0:\n  // Same for 8 bits\n  LSRS    r3, r5, #(32-8)\n  BNE     0f\n  LSLS    r5, r5, #8\n  ADDS    r0, r0, #8\n0:\n  // 4 bits\n  LSRS    r3, r5, #(32-4)\n  BNE     0f\n  LSLS    r5, r5, #4\n  ADDS    r0, r0, #4\n0:\n  // 2 bits\n  LSRS    r3, r5, #(32-2)\n  BNE     0f\n  LSLS    r5, r5, #2\n  ADDS    r0, r0, #2\n0:\n  // 1 bit\n  LSRS    r3, r5, #(32-1)\n  BNE     0f\n  LSLS    r5, r5, #1\n  ADDS    r0, r0, #1\n0:\n\n  // Update our two copies of the exponent (with sign in r6, without in r2).\n  SUBS    r6, r6, r0\n  SUBS    r2, r2, r0\n  // Shift the mantissa and exponent into the right places to combine them.\n  LSLS    r4, r5, #1              // clear leading bit of mantissa\n  LSRS    r0, r4, #9              // and shift it down\n  LSLS    r4, r6, #23             // shift sign and exponent up\n  ADDS    r0, r0, r4              // put them together\n  // Check for underflow, which occurs if the output exponent is less than 1\n  // (including having gone negative).\n  CMP     r2, #1\n  BLT     fsub_underflow_2\n  POP     {r4,r5,r6,pc}\n\nfsub_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfsub_underflow_1:\n  // We come here if renormalising by one bit reduced the output exponent to\n  // zero. In other words, the output value in x is denormal (hence exact) and\n  // wants shifting down by exactly 9 bits (8 bits of exponent plus the bit we\n  // already shifted it by), and then the sign bit putting back on.\n  //", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 641, "line_end": 700}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:18", "text": "LSLS    r4, r6, #23             // shift sign and exponent up\n  ADDS    r0, r0, r4              // put them together\n  // Check for underflow, which occurs if the output exponent is less than 1\n  // (including having gone negative).\n  CMP     r2, #1\n  BLT     fsub_underflow_2\n  POP     {r4,r5,r6,pc}\n\nfsub_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfsub_underflow_1:\n  // We come here if renormalising by one bit reduced the output exponent to\n  // zero. In other words, the output value in x is denormal (hence exact) and\n  // wants shifting down by exactly 9 bits (8 bits of exponent plus the bit we\n  // already shifted it by), and then the sign bit putting back on.\n  //\n  // Also, before we get the sign bit from r6, we must add 1 to it, because of\n  // the possibility that decrementing it carried into the sign bit.\n  ADDS    r6, r6, #1    // undo potential sign-flipping carry\n  LSRS    r6, r6, #8    // isolate the sign bit\n  LSLS    r6, r6, #31   // and shift it up to the top\n  LSRS    r0, r5, #9    // construct the output mantissa\n  ORRS    r0, r0, r6    // and combine with the sign bit\n  POP     {r4,r5,r6,pc}\n\nfsub_underflow_2:\n  // We come here if multi-bit renormalisation found a denormal. The mantissa\n  // has its leading bit set at the top of r5, so it needs shifting down 8 bits\n  // to where it would be in a normalised number, and then further: if the\n  // output exponent is 0 (meaning the exponent just below a normalised number)\n  // then we shift one extra bit, if it's -1 then we shift two extra bits, and\n  // so on. So in total we shift down by 8 + (1 - exp) = 9 - exp.\n  RSBS    r4, r6, #0\n  ADDS    r4, r4, #9\n  LSRS    r5, r5, r4    // shift mantissa into place\n\n  // Extract the sign bit from r6 and combine it with that denormal. r6 could\n  // be 0 or could be negative, so we must add enough to it to make it reliably\n  // positive. Any offset that works is fine; we'll use 0xc0, which is the\n  // offset used by IEEE 754:1985 underflow intermediate values.\n  ADDS    r6, r6, #0xc0 // rebias to correct sign bit\n  LSRS    r6, r6, #8    // isolate the sign bit\n  LSLS    r0, r6, #31   // and shift it up to the top\n  ADDS    r0, r0, r5    // combine with the denormalised mantissa\n  POP     {r4,r5,r6,pc}\n\nfsub_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  // We come here if at least one of x,y is a NaN or infinity.\n  // Their exponents are reliably always in r2 and r3\n  // respectively.\n  ASRS    r4, r5, #7    // so r4 = 0xFF000000\n  LSLS    r6, r0, #1    // r6 > r4 iff x is NaN\n  CMP     r6, r4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 681, "line_end": 740}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:19", "text": "// Extract the sign bit from r6 and combine it with that denormal. r6 could\n  // be 0 or could be negative, so we must add enough to it to make it reliably\n  // positive. Any offset that works is fine; we'll use 0xc0, which is the\n  // offset used by IEEE 754:1985 underflow intermediate values.\n  ADDS    r6, r6, #0xc0 // rebias to correct sign bit\n  LSRS    r6, r6, #8    // isolate the sign bit\n  LSLS    r0, r6, #31   // and shift it up to the top\n  ADDS    r0, r0, r5    // combine with the denormalised mantissa\n  POP     {r4,r5,r6,pc}\n\nfsub_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  // We come here if at least one of x,y is a NaN or infinity.\n  // Their exponents are reliably always in r2 and r3\n  // respectively.\n  ASRS    r4, r5, #7    // so r4 = 0xFF000000\n  LSLS    r6, r0, #1    // r6 > r4 iff x is NaN\n  CMP     r6, r4\n  BHI     fsub_nan\n  LSLS    r6, r1, #1    // r6 > r4 iff y is NaN\n  CMP     r6, r4\n  BHI     fsub_nan\n\n  // No NaNs, so we have at least one infinity. Almost all additions involving\n  // an infinity return the input infinity unchanged. The only exception is\n  // subtracting two infinities that have the same sign, where we return NaN.\n  CMP     r2, r3        // at least one exponent is 0xFF, so if EQ, both are\n  BEQ     fsub_infinf\n\n  // If x is infinite and y is finite, return x.\n  CMP     r2, #255\n  BEQ     fsub_ret_exact\nfsub_retminusy:\n  // If x is finite and y is infinite, return -y.\n  MOVS    r0, r1\n  EORS    r0, r0, r5    // negate y\nfsub_retx:\nfsub_ret_exact:\n  POP     {r4,r5,r6,pc}\nfsub_infinf:\n  // With two infinities, we must check their relative sign. If they have\n  // opposite sign, we just return x (which is the one with the same sign as\n  // the output).\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_ret_exact\n\n  // But if we're subtracting two infinities of the same sign, make a default\n  // quiet NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfsub_nan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\nfsub_zerodenorm_x:\n  // We come here if we found x was 0 or a denormal. We haven't set up r3 as", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 721, "line_end": 780}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:20", "text": "POP     {r4,r5,r6,pc}\nfsub_infinf:\n  // With two infinities, we must check their relative sign. If they have\n  // opposite sign, we just return x (which is the one with the same sign as\n  // the output).\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_ret_exact\n\n  // But if we're subtracting two infinities of the same sign, make a default\n  // quiet NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfsub_nan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\nfsub_zerodenorm_x:\n  // We come here if we found x was 0 or a denormal. We haven't set up r3 as\n  // the exponent of y yet.\n  LSRS    r3, r3, #24\n\n  // Also, we checked for zero/denorm before checking for infinities and NaNs.\n  // We know x isn't an infinity or NaN, but we must check y.\n  CMP     r3, #255\n  BEQ     fsub_naninf\n\n  // Fall through to the next section. This repeats a pointless check for x\n  // being NaN or infinity, but it would cost more cycles to branch round it.\n\nfsub_zerodenorm_y:\n  // We come here if we found y was 0 or a denormal, but also by falling\n  // through from above. So we may not yet have checked x for infinity/NaN. But\n  // we have checked that y isn't.\n  CMP     r2, #255\n  BEQ     fsub_naninf\n\n  // Now at least one of x,y is zero or denormal, and neither is infinite or\n  // NaN. We haven't yet checked the signs and cross-jumped to fsub, but we can\n  // handle all the zero cases without having to:\n  //\n  //  - if x = -y (including both being zero), return 0 of the appropriate sign\n  //  - if y = 0, return x (including the case of oppositely signed zeroes)\n  //  - if x = 0 and y != 0, return -y\n  CMP     r0, r1         // are x and y equal?\n  BEQ     fsub_diffsame\n  LSLS    r6, r1, #1     // is y zero?\n  BEQ     fsub_retx      // if so, return x\n  LSLS    r6, r0, #1     // is x zero?\n  BEQ     fsub_retminusy // if so, return -y\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't\n  // want to handle both signs at once, so check the signs and cross-branch\n  // into fadd if they're different.\n  MOVS    r6, r1\n  EORS    r6, r6, r0\n  BPL     fsub_denorm\n  EORS    r1, r1, r5", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 761, "line_end": 820}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:21", "text": "// handle all the zero cases without having to:\n  //\n  //  - if x = -y (including both being zero), return 0 of the appropriate sign\n  //  - if y = 0, return x (including the case of oppositely signed zeroes)\n  //  - if x = 0 and y != 0, return -y\n  CMP     r0, r1         // are x and y equal?\n  BEQ     fsub_diffsame\n  LSLS    r6, r1, #1     // is y zero?\n  BEQ     fsub_retx      // if so, return x\n  LSLS    r6, r0, #1     // is x zero?\n  BEQ     fsub_retminusy // if so, return -y\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't\n  // want to handle both signs at once, so check the signs and cross-branch\n  // into fadd if they're different.\n  MOVS    r6, r1\n  EORS    r6, r6, r0\n  BPL     fsub_denorm\n  EORS    r1, r1, r5\n  BL      fadd_denorm\nfsub_denorm:\n  // Sort the operands into magnitude order. Now we know they have the same\n  // sign, unsigned comparison is good enough for that.\n  SUBS    r6, r0, r1\n  BHS     0f\n  EORS    r6, r6, r5              // flip the signs in the process\n  SUBS    r0, r0, r6\n  ADDS    r1, r1, r6\n0:\n\n  // We know one exponent is 0, so check if the other is too. We do this by\n  // adding the two exponents together, achieving two things in one\n  // instruction: it gets the nonzero exponent (if any) into r2 (saving us\n  // swapping r2 with r3 in the sorting step above), and it sets Z if both were\n  // zero.\n  ADDS    r2, r2, r3\n  BEQ     fsub_denorm2\n\n  // Now exactly one operand is denormal, and it's y. We must go back to\n  // fsub_dosub with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of x\n  LSLS    r4, r1, #8   // r4 == mantissa of y, with leading bit clear\n  LSLS    r0, r0, #8\n  BICS    r0, r0, r5   // clear high bit on mantissa of x\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fsub_dosub\n\nfsub_denorm2:\n  // Here, x,y are both denormal, and we know we're doing magnitude addition.\n  // So we can subtract the mantissas like ordinary integers. But we have to\n  // avoid subtracting y's sign bit from x's.\n  BICS    r1, r1, r5  // clear sign bit of y\n  SUBS    r0, r0, r1  // subtract mantissas\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 801, "line_end": 857}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:22", "text": "// fsub_dosub with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of x\n  LSLS    r4, r1, #8   // r4 == mantissa of y, with leading bit clear\n  LSLS    r0, r0, #8\n  BICS    r0, r0, r5   // clear high bit on mantissa of x\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fsub_dosub\n\nfsub_denorm2:\n  // Here, x,y are both denormal, and we know we're doing magnitude addition.\n  // So we can subtract the mantissas like ordinary integers. But we have to\n  // avoid subtracting y's sign bit from x's.\n  BICS    r1, r1, r5  // clear sign bit of y\n  SUBS    r0, r0, r1  // subtract mantissas\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/faddsub.S", "line_start": 841, "line_end": 857}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:1", "text": "// Single-precision addition and subtraction.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n// General structure of this code:\n//\n// There are three actual entry points here, for addition, subtraction and\n// reversed subtraction (just taking the operands the other way round, so that\n// it returns b-a instead of a-b). But the first thing the functions do (after\n// checking for NaNs) is to sort out whether the magnitudes of the two inputs\n// are being added (a+b with like signs, or a-b with different signs), or\n// subtracted. So fadd jumps across into the middle of fsub if it sees that the\n// signs are different, and vice versa. Then the main code path in fadd handles\n// magnitude addition, and the one in fsub handles magnitude subtraction.\n//\n// NaNs are checked first, so that an input NaN can be propagated exactly,\n// including its sign bit. After ruling out that case, it's safe to flip the\n// sign of one of the inputs, so that during the cross-calls, a - b can be\n// rewritten as a + (-b) and vice versa.\n\n  .globl arm_fp_fadd\n  .type arm_fp_fadd,%function\narm_fp_fadd:\n  PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31  // all cross-branches will expect to have r5==0x80000000\n\n  // Extract the exponents into r2 and r3. In the process, test for all\n  // uncommon values (infinities, NaNs, denormals and zeroes) and branch out of\n  // line if any are found.\n  //\n  // Uncommon operands with exponent 0xFF (NaNs and infinities) \"win\" over\n  // those with exponent 0 (zeroes and denormals), in the sense that if there's\n  // one of each, the 0xFF one determines the result. But we check for exponent\n  // 0 first, because that way we get it as a by-product of extracting the\n  // exponents in the first place without needing a separate compare\n  // instruction. So the zero/denorm handler will have to finish up the NaN\n  // check as its first task.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r2, r2, #24\n  BEQ     fadd_zerodenorm_a\n  LSRS    r3, r3, #24\n  BEQ     fadd_zerodenorm_b\n  CMP     r2, #255\n  BEQ     fadd_naninf\n  CMP     r3, #255\n  BEQ     fadd_naninf\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub\n  // (via a trampoline that negates b).\n  MOVS    r4, r0\n  EORS    r4, r4, r1         // set N if signs are unequal", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:2", "text": "// 0 first, because that way we get it as a by-product of extracting the\n  // exponents in the first place without needing a separate compare\n  // instruction. So the zero/denorm handler will have to finish up the NaN\n  // check as its first task.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r2, r2, #24\n  BEQ     fadd_zerodenorm_a\n  LSRS    r3, r3, #24\n  BEQ     fadd_zerodenorm_b\n  CMP     r2, #255\n  BEQ     fadd_naninf\n  CMP     r3, #255\n  BEQ     fadd_naninf\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub\n  // (via a trampoline that negates b).\n  MOVS    r4, r0\n  EORS    r4, r4, r1         // set N if signs are unequal\n  BMI     fadd_sub\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that a >= b.\n  SUBS    r4, r0, r1\n  BHS     fadd_swapped\n  SUBS    r0, r0, r4\n  ADDS    r1, r1, r4\n  // We must also swap the pre-extracted exponents here.\n  EORS    r2, r2, r3\n  EORS    r3, r3, r2\n  EORS    r2, r2, r3\nfadd_swapped:\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift b's\n  // mantissa right to add it to a's.\n  LSRS    r6, r0, #23\n  SUBS    r3, r2, r3\n\n  // Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit. We put b's extracted mantissa in a different register\n  // (r4), because we'll want to keep the original b for use in fadd_check_rte.\n  LSLS    r0, r0, #8\n  LSLS    r4, r1, #8\n  ORRS    r0, r0, r5\n  ORRS    r4, r4, r5\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r4 = mantissa of smaller operand (in high 24 bits);\n  //   r1 = original (or nearly so) smaller operand;\n  //   r6 = result sign and exponent (in low 9 bits);\n  //   r2 = exponent of a", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:3", "text": "// Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit. We put b's extracted mantissa in a different register\n  // (r4), because we'll want to keep the original b for use in fadd_check_rte.\n  LSLS    r0, r0, #8\n  LSLS    r4, r1, #8\n  ORRS    r0, r0, r5\n  ORRS    r4, r4, r5\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r4 = mantissa of smaller operand (in high 24 bits);\n  //   r1 = original (or nearly so) smaller operand;\n  //   r6 = result sign and exponent (in low 9 bits);\n  //   r2 = exponent of a\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r4) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n  LSRS    r4, r4, r3\n  ADDS    r5, r0, r4\n\n  // If that addition carried off the top of r5, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,\n  // because there we must check for overflow. We'll return to the label below\n  // if no overflow.\n  BCS     fadd_carry\nfadd_renormed:\n  // Now we have the output mantissa in r5, with the leading bit at position\n  // 31. The precise sum may be slightly more than that, if r4 != (b << r3).\n  //\n  // Shift the mantissa down to its final position, and use the carry flag (bit\n  // shifted off the bottom) to see if we need to round.\n  LSRS    r0, r5, #8\n  BCC     fadd_rounded\n\n  // If we fall through to here, then we need to round up, and also check if we\n  // need to round to even. This occurs if all the bits of b's mantissa shifted\n  // off the bottom are zero except for the round bit.\n  //\n  // Some of those bits are in r5 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  ADDS    r0, r0, #1          // simple round up\n  LSLS    r5, r5, #(32-7)     // check top 7 bits\n  BEQ     fadd_check_rte      // if those are zero, go to full RTE check\nfadd_rounded:\n  // Put the sign+exponent back on. The leading bit of the mantissa increments\n  // the exponent field unwantedly, so we must decrement r6 first to compensate\n  // for that.\n  SUBS    r6, r6, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:4", "text": "// Shift the mantissa down to its final position, and use the carry flag (bit\n  // shifted off the bottom) to see if we need to round.\n  LSRS    r0, r5, #8\n  BCC     fadd_rounded\n\n  // If we fall through to here, then we need to round up, and also check if we\n  // need to round to even. This occurs if all the bits of b's mantissa shifted\n  // off the bottom are zero except for the round bit.\n  //\n  // Some of those bits are in r5 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  ADDS    r0, r0, #1          // simple round up\n  LSLS    r5, r5, #(32-7)     // check top 7 bits\n  BEQ     fadd_check_rte      // if those are zero, go to full RTE check\nfadd_rounded:\n  // Put the sign+exponent back on. The leading bit of the mantissa increments\n  // the exponent field unwantedly, so we must decrement r6 first to compensate\n  // for that.\n  SUBS    r6, r6, #1\n  LSLS    r6, r6, #23\n  ADDS    r0, r0, r6\n  // If we haven't overflowed, it's now safe to return.\n  CMP     r2, #255\n  BGE     fadd_overflow\n  POP     {r4,r5,r6,pc}\n\nfadd_overflow:\n  // We have overflow, so we need to return an infinity of the correct sign. r0\n  // already has the correct sign and exponent, so all we need to do is clear\n  // its mantissa.\n  LSRS    r0, r0, #23\n  LSLS    r0, r0, #23\n  POP     {r4,r5,r6,pc}\n\nfadd_sub:\n  // We come here when fadd discovered it needed to subtract. Negate the second\n  // operand and cross-jump into fsub.\n  //\n  // The cross-jump is done using BL, for greater branch range. That clobbers\n  // lr, but that's OK, we weren't keeping anything in it at this point.\n  EORS    r1, r1, r5\n  BL      fsub_magnitude\n\nfadd_carry:\n  // We come here if we carried a 1 bit off the top of r5 where we computed the\n  // sum's mantissa. Shift back down by one and put a 1 bit in at the top.\n  //\n  // That would be easy with the RRX instruction from general AArch32, but we\n  // don't have that here. Instead we OR in a 1 at the bottom, and move it to\n  // the top by rotating right.\n  //\n  // A danger of shifting r5 down by a bit is that we lose the bit at the very\n  // bottom, which might be important if it's the only nonzero bit below the\n  // output mantissa, because then it determines whether we do RTE or not.\n  // Fortunately, another copy of the same bit is still at the bottom of r4\n  // (the shifted version of b's mantissa which we added to a's to make the\n  // version of r5 _before_ we shifted it down). So the full RTE check will\n  // have to remember to check that bit.\n  MOVS    r0, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:7", "text": "// all the bits below _that_. So b's leading 1 must be at least as high up as\n  // the round bit, and therefore, isn't one of the bits we currently need to\n  // check.\n  LSLS    r1, r1, #2\n\n  // Now if all those bits are zero, we're rounding to even. If _not_, we're\n  // finished rounding, so go back to fadd_rounded to continue the main code\n  // path.\n  BNE     fadd_rounded\n\n  // Clear the low bit of the output (rounding to even) and go back to the main\n  // code path.\n  MOVS    r4, #1\n  BICS    r0, r0, r4\n  B       fadd_rounded\n\nfadd_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  //\n  // On entry, we know r5 = 0x80000000 from the initial uncommon check. Also,\n  // we already extracted the exponents of a and b into r2 and r3.\n  ASRS    r4, r5, #7    // so r4 = 0xFF000000\n  LSLS    r6, r0, #1    // r6 > r4 iff a is NaN\n  CMP     r6, r4\n  BHI     fadd_nan\n  LSLS    r6, r1, #1    // r6 > r4 iff b is NaN\n  CMP     r6, r4\n  BHI     fadd_nan\n\n  // No NaNs, so we have at least one infinity. Almost all additions involving\n  // an infinity return the input infinity unchanged. The only exception is if\n  // there are two infinities that have opposite signs (which can happen even\n  // inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  CMP     r2, r3        // at least one exponent is 0xFF, so if EQ, both are\n  BEQ     fadd_infinf   //   and therefore we're adding infinity to infinity\n\n  // With one infinity, we just find which register it's in, and return it.\n  CMP     r2, #255\n  BEQ     fadd_ret_exact  // just return a\nfadd_retb: // we reuse this code in the denormal handler\n  MOVS    r0, r1          // otherwise, return b\nfadd_ret_exact:\n  POP     {r4,r5,r6,pc}\n\nfadd_infinf:\n  // With two infinities, we must check their relative sign. If they're the\n  // same sign, we have no problem.\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BPL     fadd_ret_exact  // identical infinities, so just return one\n\n  // But if we're adding two infinities of opposite sign, make a default quiet\n  // NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfadd_nan:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:8", "text": "CMP     r2, #255\n  BEQ     fadd_ret_exact  // just return a\nfadd_retb: // we reuse this code in the denormal handler\n  MOVS    r0, r1          // otherwise, return b\nfadd_ret_exact:\n  POP     {r4,r5,r6,pc}\n\nfadd_infinf:\n  // With two infinities, we must check their relative sign. If they're the\n  // same sign, we have no problem.\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BPL     fadd_ret_exact  // identical infinities, so just return one\n\n  // But if we're adding two infinities of opposite sign, make a default quiet\n  // NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfadd_nan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\nfadd_zerodenorm_a:\n  // We come here if we found a was 0 or a denormal. We haven't set up r3 as\n  // the exponent of b yet.\n  LSRS    r3, r3, #24\n\n  // Also, we checked for zero/denorm before checking for infinities and NaNs.\n  // We know a isn't an infinity or NaN, but we must check b.\n  CMP     r3, #255\n  BEQ     fadd_naninf\n\n  // Fall through to the next section. This repeats a pointless check for a\n  // being NaN or infinity, but it would cost more cycles to branch round it.\n\nfadd_zerodenorm_b:\n  // We come here if we found b was 0 or a denormal, but also by falling\n  // through from above. So we may not yet have checked a for infinity/NaN. But\n  // we have checked that b isn't.\n  CMP     r2, #255\n  BEQ     fadd_naninf\n\n  // Now at least one of a,b is zero or denormal, and neither is infinite or\n  // NaN. We haven't yet checked the signs and cross-jumped to fsub, but we can\n  // handle all the zero cases without having to:\n  //\n  //  - if a = -b (including both being zero), return 0 of the appropriate sign\n  //  - if a = 0, return b (including the case of same-signed zeroes)\n  //  - if b = 0, return a\n  SUBS    r6, r0, r1     // are a and b equal\n  CMP     r6, r5         //   except for opposite sign bits? (r5 = 0x80000000)\n  BEQ     fadd_diffsame\n  LSLS    r6, r1, #1     // is b zero?\n  BEQ     fadd_ret_exact // if so, return a\n  LSLS    r6, r0, #1     // is a zero?\n  BEQ     fadd_retb      // if so, return b\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:9", "text": "CMP     r2, #255\n  BEQ     fadd_naninf\n\n  // Now at least one of a,b is zero or denormal, and neither is infinite or\n  // NaN. We haven't yet checked the signs and cross-jumped to fsub, but we can\n  // handle all the zero cases without having to:\n  //\n  //  - if a = -b (including both being zero), return 0 of the appropriate sign\n  //  - if a = 0, return b (including the case of same-signed zeroes)\n  //  - if b = 0, return a\n  SUBS    r6, r0, r1     // are a and b equal\n  CMP     r6, r5         //   except for opposite sign bits? (r5 = 0x80000000)\n  BEQ     fadd_diffsame\n  LSLS    r6, r1, #1     // is b zero?\n  BEQ     fadd_ret_exact // if so, return a\n  LSLS    r6, r0, #1     // is a zero?\n  BEQ     fadd_retb      // if so, return b\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't\n  // want to handle both signs at once, so check the signs and cross-branch\n  // into fsub if they're different.\n  MOVS    r6, r1\n  EORS    r6, r6, r0\n  BPL     fadd_denorm\n  EORS    r1, r1, r5\n  BL      fsub_denorm\nfadd_denorm:\n  // Sort the operands into magnitude order. Now we know they have the same\n  // sign, unsigned comparison is good enough for that.\n  SUBS    r6, r0, r1\n  BHS     0f\n  SUBS    r0, r0, r6\n  ADDS    r1, r1, r6\n0:\n\n  // We know one exponent is 0, so check if the other is too. We do this by\n  // adding the two exponents together, achieving two things in one\n  // instruction: it gets the nonzero exponent (if any) into r2 (saving us\n  // swapping r2 with r3 in the sorting step above), and it sets Z if both were\n  // zero.\n  ADDS    r2, r2, r3\n  BEQ     fadd_denorm2\n\n  // Now exactly one operand is denormal, and it's b. We must go back to\n  // fadd_doadd with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of a\n  LSLS    r4, r1, #8   // r4 == mantissa of b, with leading bit clear\n  LSLS    r0, r0, #8\n  ORRS    r0, r0, r5   // set high bit on mantissa of a\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fadd_doadd\n\nfadd_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfadd_denorm2:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:10", "text": "// zero.\n  ADDS    r2, r2, r3\n  BEQ     fadd_denorm2\n\n  // Now exactly one operand is denormal, and it's b. We must go back to\n  // fadd_doadd with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of a\n  LSLS    r4, r1, #8   // r4 == mantissa of b, with leading bit clear\n  LSLS    r0, r0, #8\n  ORRS    r0, r0, r5   // set high bit on mantissa of a\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fadd_doadd\n\nfadd_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfadd_denorm2:\n  // Here, a,b are both denormal, and we know we're doing magnitude addition.\n  // So we can add the mantissas like ordinary integers, and if they carry into\n  // the exponent, that's still the correct answer. But we have to avoid adding\n  // two copies of the sign bit, so we clear that from b first.\n  BICS    r1, r1, r5  // clear sign bit of b\n  ADDS    r0, r0, r1  // add mantissas\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute b-a, where a is in r0 and b in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they\n  // saved. So instead, on the fast path, we redo the sign check our own way\n  // and branch to fadd_magnitude or fsub_magnitude.\n\n  PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31 // all cross-branches will expect to have r5 = 0x80000000\n\n  // Extract the exponents and test for uncommon values. Note that we do the\n  // zero/denormal tests the opposite way round from fsub, because we swap the\n  // operands before branching to the corresponding fsub code, so this way our\n  // first branch will enter fsub with the first of _its_ operands checked.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r3, r3, #24\n  BEQ     frsb_zerodenorm_b\n  LSRS    r2, r2, #24\n  BEQ     frsb_zerodenorm_a\n  CMP     r2, #255\n  BEQ     frsb_naninf\n  CMP     r3, #255\n  BEQ     frsb_naninf", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:11", "text": "PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31 // all cross-branches will expect to have r5 = 0x80000000\n\n  // Extract the exponents and test for uncommon values. Note that we do the\n  // zero/denormal tests the opposite way round from fsub, because we swap the\n  // operands before branching to the corresponding fsub code, so this way our\n  // first branch will enter fsub with the first of _its_ operands checked.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r3, r3, #24\n  BEQ     frsb_zerodenorm_b\n  LSRS    r2, r2, #24\n  BEQ     frsb_zerodenorm_a\n  CMP     r2, #255\n  BEQ     frsb_naninf\n  CMP     r3, #255\n  BEQ     frsb_naninf\n\n  // Decide which of fadd_magnitude and fsub_magnitude to branch to, and do so.\n  EORS    r0, r0, r5\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BPL     frsb_add\n  EORS    r1, r1, r5\n  BL      fsub_magnitude\nfrsb_add:\n  BL      fadd_magnitude\n\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\nfrsb_zerodenorm_b:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_zerodenorm_a  // we just swapped a and b, so now a is 0/denorm\nfrsb_zerodenorm_a:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_zerodenorm_b  // similarly, now we know b is\nfrsb_naninf:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_naninf\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  PUSH {r4,r5,r6,lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:12", "text": "frsb_zerodenorm_a:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_zerodenorm_b  // similarly, now we know b is\nfrsb_naninf:\n  PUSH    {r0,r2}\n  PUSH    {r1,r3}\n  POP     {r0,r2}\n  POP     {r1,r3}\n  BL      fsub_naninf\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  PUSH {r4,r5,r6,lr}\n\n  MOVS    r5, #1\n  LSLS    r5, r5, #31\n\n  // Extract the exponents into r2 and r3 and test for all uncommon values,\n  // similarly to fadd.\n  LSLS    r2, r0, #1\n  LSLS    r3, r1, #1\n  LSRS    r2, r2, #24\n  BEQ     fsub_zerodenorm_a\n  LSRS    r3, r3, #24\n  BEQ     fsub_zerodenorm_b\n  CMP     r2, #255\n  BEQ     fsub_naninf\n  CMP     r3, #255\n  BEQ     fsub_naninf\n\n  // Check the signs, and if they're unequal, cross-jump into fadd to do\n  // magnitude addition. (Now we've excluded NaNs, it's safe to flip the sign\n  // of b.)\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_add\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that a >= b. However, if they are swapped, we must also negate\n  // both of them, since A - B = (-B) - (-A).\n  SUBS    r4, r0, r1\n  BHS     fsub_swapped\n  EORS    r4, r4, r5\n  SUBS    r0, r0, r4\n  ADDS    r1, r1, r4\n  // We must also swap the pre-extracted exponents here.\n  EORS    r2, r2, r3\n  EORS    r3, r3, r2\n  EORS    r2, r2, r3\nfsub_swapped:\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:13", "text": "MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_add\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that a >= b. However, if they are swapped, we must also negate\n  // both of them, since A - B = (-B) - (-A).\n  SUBS    r4, r0, r1\n  BHS     fsub_swapped\n  EORS    r4, r4, r5\n  SUBS    r0, r0, r4\n  ADDS    r1, r1, r4\n  // We must also swap the pre-extracted exponents here.\n  EORS    r2, r2, r3\n  EORS    r3, r3, r2\n  EORS    r2, r2, r3\nfsub_swapped:\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  LSRS    r6, r0, #23\n  SUBS    r3, r2, r3\n\n  // Shift the mantissas up to the top of the words. In the process we put b's\n  // shifted mantissa into a separate register, keeping the original for later\n  // reference. Also, although we set the leading bit of b, we _clear_ the\n  // leading bit of a, which is just as quick and saves us having to decrement\n  // the output exponent later to compensate.\n  LSLS    r0, r0, #8\n  LSLS    r4, r1, #8\n  BICS    r0, r0, r5\n  ORRS    r4, r4, r5\n\nfsub_dosub: // we may come back here after sorting out denorms\n\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in top 24 bits, with high bit clear)\n  //   r4 = mantissa of smaller operand (in top 24 bits, with high bit set)\n  //   r1 = original smaller operand (up to maybe a sign flip)\n  //   r6 = result sign/exponent (in low 9 bits)\n  //   r2 = plain result exponent (in low 8 bits, i.e. r6 & 0xFF)\n  //   r3 = exponent difference.\n  //\n  // Begin calculating the output mantissa by shifting b's mantissa right and\n  // subtracting. This may leave the mantissa too large by one, if the bits\n  // shifted out of b are nonzero. We correct this during rounding if\n  // necessary.\n  LSRS    r4, r4, r3\n  SUBS    r5, r0, r4\n\n  // This may have cleared the high bit of the output mantissa, in which case\n  // we must renormalise. Our strategy is to split into three code paths, on\n  // two of which an awkward case is known not to arise:\n  //  * no need to renormalise at all => underflow can't happen\n  //  * shift up by exactly 1 bit\n  //  * shift up by more than 1 bit => rounding can't happen (result is exact)\n  //\n  // First branch out of line for the first case, which we can detect because", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:14", "text": "//   r1 = original smaller operand (up to maybe a sign flip)\n  //   r6 = result sign/exponent (in low 9 bits)\n  //   r2 = plain result exponent (in low 8 bits, i.e. r6 & 0xFF)\n  //   r3 = exponent difference.\n  //\n  // Begin calculating the output mantissa by shifting b's mantissa right and\n  // subtracting. This may leave the mantissa too large by one, if the bits\n  // shifted out of b are nonzero. We correct this during rounding if\n  // necessary.\n  LSRS    r4, r4, r3\n  SUBS    r5, r0, r4\n\n  // This may have cleared the high bit of the output mantissa, in which case\n  // we must renormalise. Our strategy is to split into three code paths, on\n  // two of which an awkward case is known not to arise:\n  //  * no need to renormalise at all => underflow can't happen\n  //  * shift up by exactly 1 bit\n  //  * shift up by more than 1 bit => rounding can't happen (result is exact)\n  //\n  // First branch out of line for the first case, which we can detect because\n  // the N flag tells us whether the top mantissa bit is still set.\n  BPL     fsub_renormed\n\n  // Renormalise by one bit, and check the new top bit to see if we need to\n  // renormalise by more than that.\n  LSLS    r5, r5, #1\n  BPL     fsub_renorm_big // if new top bit still clear, renormalise by more\n  // Decrement both exponent registers (r6 with the sign, r2 without). We\n  // decrement r6 by 2 instead of 1, because now the output mantissa has the\n  // top bit set, so we must compensate when we put the sign and exponent back\n  // on.\n  //\n  // The extra decrement of r6 might carry into the sign bit. This doesn't\n  // matter on the fast path, because the leading bit in the mantissa will undo\n  // it. But we need to account for it in the underflow handler for this path.\n  SUBS    r6, r6, #2\n  SUBS    r2, r2, #1\n  // The decrement of the pure exponent value also doubles as a check for\n  // underflow, because we underflowed precisely if the exponent went to 0.\n  BEQ     fsub_underflow_1\nfsub_renormed:\n  // Now we have the output mantissa in r5. It may or may not have the high bit\n  // set, depending on which branch of the code we've come through. But r6 has\n  // been adjusted appropriately, so that we can make a basically right output\n  // value (before rounding) by adding r6 << 23 to r5 >> 8.\n  //\n  // If any nonzero bits were shifted off the bottom of b, then the true value\n  // of the output mantissa might be slightly _less_ than the value in r5.\n  // However the maximum difference is about 2^{-7} ULP relative to the final\n  // result (because it's at most one ULP of the 32-bit output mantissa in r5).\n  // So it doesn't affect the result in round-to-nearest mode unless it puts us\n  // just below a rounding boundary, which means we can ignore it until the\n  // full round-to-even check.\n  LSLS    r6, r6, #23  // prepare sign and exponent\n  LSRS    r0, r5, #8   // shift down, and put the round bit into C\n  BCS     fsub_round   // diverge based on round bit\n  // If the round bit shifted off the bottom of r5 was clear, then we're not\n  // rounding up, so we can make the output value and finish immediately.\n  ADDS    r0, r0, r6   // reconstitute output value without rounding\n  POP     {r4,r5,r6,pc}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:15", "text": "fsub_renormed:\n  // Now we have the output mantissa in r5. It may or may not have the high bit\n  // set, depending on which branch of the code we've come through. But r6 has\n  // been adjusted appropriately, so that we can make a basically right output\n  // value (before rounding) by adding r6 << 23 to r5 >> 8.\n  //\n  // If any nonzero bits were shifted off the bottom of b, then the true value\n  // of the output mantissa might be slightly _less_ than the value in r5.\n  // However the maximum difference is about 2^{-7} ULP relative to the final\n  // result (because it's at most one ULP of the 32-bit output mantissa in r5).\n  // So it doesn't affect the result in round-to-nearest mode unless it puts us\n  // just below a rounding boundary, which means we can ignore it until the\n  // full round-to-even check.\n  LSLS    r6, r6, #23  // prepare sign and exponent\n  LSRS    r0, r5, #8   // shift down, and put the round bit into C\n  BCS     fsub_round   // diverge based on round bit\n  // If the round bit shifted off the bottom of r5 was clear, then we're not\n  // rounding up, so we can make the output value and finish immediately.\n  ADDS    r0, r0, r6   // reconstitute output value without rounding\n  POP     {r4,r5,r6,pc}\nfsub_round:\n  // Otherwise, we're rounding, in three stages. First round up; then cheaply\n  // check the low bits of r5 (the 32-bit version of the mantissa) so that we\n  // can rule out round-to-even if any of those is nonzero; finally, in as few\n  // cases as possible, check the rest of b's mantissa to check for RTE fully.\n  ADCS    r0, r0, r6      // reconstitute output value while rounding up\n  LSLS    r5, r5, #(32-7) // check first 7 guard bits\n  BEQ     fsub_check_rte  // if the're all 0, do the full check for RTE\n  POP     {r4,r5,r6,pc}   // otherwise we're done\n\nfsub_add:\n  // Trampoline to cross-jump to fadd, because a 16-bit branch won't reach that\n  // far. Also a convenient place to flip b's sign, so we only have to do it\n  // once.\n  EORS    r1, r1, r5      // we know r5 = 0x80000000\n  BL      fadd_magnitude  // clobbers lr, which doesn't matter\n\nfsub_check_rte:\n  // Full check for round-to-even, in the same style as fadd_check_rte: r4\n  // still contains the version of b's mantissa that we shifted down before\n  // subtracting from a, and r1 contains the original version of that mantissa.\n  // So if we shift r4 back up again and XOR it with r1, we clear all the bits\n  // that we've already checked, and leave only the ones we haven't. The only\n  // exception is the leading mantissa bit, which is implicit in r1, but this\n  // can never affect round-to-even, because if we rounded at all then the\n  // round bit must have come from b, so the leading bit of b is at the round\n  // bit or above, hence not one of the bits we're checking for RTE.\n  LSLS    r4, r4, r3  // undo the shift of b's mantissa\n  LSLS    r1, r1, #8  // shift b's original mantissa back to the same place\n  EORS    r1, r1, r4  // find any differences\n  LSLS    r1, r1, #1  // but ignore the leading mantissa bit\n  BEQ     fsub_rte    // if all bits now clear, we're rounding to even\n\n  // If we're not RTEing, we must undo the simplistic rounding we've already\n  // done. (We incremented the result based on the belief that the shifted-off\n  // data started 0x80xxx, but it turns out that xxx is slightly negative, so\n  // actually we had 0x7Fyyy.)\n  SUBS    r0, r0, #1\n  POP     {r4,r5,r6,pc}\nfsub_rte:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 561, "line_end": 620}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:16", "text": "// subtracting from a, and r1 contains the original version of that mantissa.\n  // So if we shift r4 back up again and XOR it with r1, we clear all the bits\n  // that we've already checked, and leave only the ones we haven't. The only\n  // exception is the leading mantissa bit, which is implicit in r1, but this\n  // can never affect round-to-even, because if we rounded at all then the\n  // round bit must have come from b, so the leading bit of b is at the round\n  // bit or above, hence not one of the bits we're checking for RTE.\n  LSLS    r4, r4, r3  // undo the shift of b's mantissa\n  LSLS    r1, r1, #8  // shift b's original mantissa back to the same place\n  EORS    r1, r1, r4  // find any differences\n  LSLS    r1, r1, #1  // but ignore the leading mantissa bit\n  BEQ     fsub_rte    // if all bits now clear, we're rounding to even\n\n  // If we're not RTEing, we must undo the simplistic rounding we've already\n  // done. (We incremented the result based on the belief that the shifted-off\n  // data started 0x80xxx, but it turns out that xxx is slightly negative, so\n  // actually we had 0x7Fyyy.)\n  SUBS    r0, r0, #1\n  POP     {r4,r5,r6,pc}\nfsub_rte:\n  // Actually round to even, by clearing the low bit of the output.\n  MOVS    r4, #1\n  BICS    r0, r0, r4\n  POP     {r4,r5,r6,pc}\n\nfsub_renorm_big:\n  // Now we know that we must renormalise by at least 2 bits, which may also\n  // give a denormal or zero result.\n  //\n  // This means no rounding can possibly be needed: if the subtraction cleared\n  // the top two bits of the mantissa, it means we computed A-B and found it\n  // was less than A/2, so B > A/2, so the exponent difference was at most 1.\n  // Hence the result mantissa fits in 24 bits even before renormalisation, and\n  // the top bit is clear, so it fits in 23 bits, i.e. it is exact.\n\n  // Detect an actual zero result, and go and return it.\n  BEQ     fsub_diffsame\n\n  // Renormalise by binary search. (16-bit Thumb has no CLZ instruction.) We'll\n  // accumulate the total exponent adjustment in r0. It starts at 1 rather than\n  // 0, because we've shifted the mantissa left by one bit already.\n  MOVS    r0, #1\n\n  // If the top 16 bits of r5 are clear, shift up by 16 and adjust r0 to match.\n  LSRS    r3, r5, #(32-16)\n  BNE     0f\n  LSLS    r5, r5, #16\n  ADDS    r0, r0, #16\n0:\n  // Same for 8 bits\n  LSRS    r3, r5, #(32-8)\n  BNE     0f\n  LSLS    r5, r5, #8\n  ADDS    r0, r0, #8\n0:\n  // 4 bits\n  LSRS    r3, r5, #(32-4)\n  BNE     0f\n  LSLS    r5, r5, #4\n  ADDS    r0, r0, #4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 601, "line_end": 660}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:17", "text": "// 0, because we've shifted the mantissa left by one bit already.\n  MOVS    r0, #1\n\n  // If the top 16 bits of r5 are clear, shift up by 16 and adjust r0 to match.\n  LSRS    r3, r5, #(32-16)\n  BNE     0f\n  LSLS    r5, r5, #16\n  ADDS    r0, r0, #16\n0:\n  // Same for 8 bits\n  LSRS    r3, r5, #(32-8)\n  BNE     0f\n  LSLS    r5, r5, #8\n  ADDS    r0, r0, #8\n0:\n  // 4 bits\n  LSRS    r3, r5, #(32-4)\n  BNE     0f\n  LSLS    r5, r5, #4\n  ADDS    r0, r0, #4\n0:\n  // 2 bits\n  LSRS    r3, r5, #(32-2)\n  BNE     0f\n  LSLS    r5, r5, #2\n  ADDS    r0, r0, #2\n0:\n  // 1 bit\n  LSRS    r3, r5, #(32-1)\n  BNE     0f\n  LSLS    r5, r5, #1\n  ADDS    r0, r0, #1\n0:\n\n  // Update our two copies of the exponent (with sign in r6, without in r2).\n  SUBS    r6, r6, r0\n  SUBS    r2, r2, r0\n  // Shift the mantissa and exponent into the right places to combine them.\n  LSLS    r4, r5, #1              // clear leading bit of mantissa\n  LSRS    r0, r4, #9              // and shift it down\n  LSLS    r4, r6, #23             // shift sign and exponent up\n  ADDS    r0, r0, r4              // put them together\n  // Check for underflow, which occurs if the output exponent is less than 1\n  // (including having gone negative).\n  CMP     r2, #1\n  BLT     fsub_underflow_2\n  POP     {r4,r5,r6,pc}\n\nfsub_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfsub_underflow_1:\n  // We come here if renormalising by one bit reduced the output exponent to\n  // zero. In other words, the output value in a is denormal (hence exact) and\n  // wants shifting down by exactly 9 bits (8 bits of exponent plus the bit we\n  // already shifted it by), and then the sign bit putting back on.\n  //", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 641, "line_end": 700}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:18", "text": "LSLS    r4, r6, #23             // shift sign and exponent up\n  ADDS    r0, r0, r4              // put them together\n  // Check for underflow, which occurs if the output exponent is less than 1\n  // (including having gone negative).\n  CMP     r2, #1\n  BLT     fsub_underflow_2\n  POP     {r4,r5,r6,pc}\n\nfsub_diffsame:\n  // Here we only support round-to-nearest mode, so the difference of two\n  // identical things always returns +0.\n  MOVS    r0, #0\n  POP     {r4,r5,r6,pc}\n\nfsub_underflow_1:\n  // We come here if renormalising by one bit reduced the output exponent to\n  // zero. In other words, the output value in a is denormal (hence exact) and\n  // wants shifting down by exactly 9 bits (8 bits of exponent plus the bit we\n  // already shifted it by), and then the sign bit putting back on.\n  //\n  // Also, before we get the sign bit from r6, we must add 1 to it, because of\n  // the possibility that decrementing it carried into the sign bit.\n  ADDS    r6, r6, #1    // undo potential sign-flipping carry\n  LSRS    r6, r6, #8    // isolate the sign bit\n  LSLS    r6, r6, #31   // and shift it up to the top\n  LSRS    r0, r5, #9    // construct the output mantissa\n  ORRS    r0, r0, r6    // and combine with the sign bit\n  POP     {r4,r5,r6,pc}\n\nfsub_underflow_2:\n  // We come here if multi-bit renormalisation found a denormal. The mantissa\n  // has its leading bit set at the top of r5, so it needs shifting down 8 bits\n  // to where it would be in a normalised number, and then further: if the\n  // output exponent is 0 (meaning the exponent just below a normalised number)\n  // then we shift one extra bit, if it's -1 then we shift two extra bits, and\n  // so on. So in total we shift down by 8 + (1 - exp) = 9 - exp.\n  RSBS    r4, r6, #0\n  ADDS    r4, r4, #9\n  LSRS    r5, r5, r4    // shift mantissa into place\n\n  // Extract the sign bit from r6 and combine it with that denormal. r6 could\n  // be 0 or could be negative, so we must add enough to it to make it reliably\n  // positive. Any offset that works is fine; we'll use 0xc0, which is the\n  // offset used by IEEE 754:1985 underflow intermediate values.\n  ADDS    r6, r6, #0xc0 // rebias to correct sign bit\n  LSRS    r6, r6, #8    // isolate the sign bit\n  LSLS    r0, r6, #31   // and shift it up to the top\n  ADDS    r0, r0, r5    // combine with the denormalised mantissa\n  POP     {r4,r5,r6,pc}\n\nfsub_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  // We come here if at least one of a,b is a NaN or infinity.\n  // Their exponents are reliably always in r2 and r3\n  // respectively.\n  ASRS    r4, r5, #7    // so r4 = 0xFF000000\n  LSLS    r6, r0, #1    // r6 > r4 iff a is NaN\n  CMP     r6, r4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 681, "line_end": 740}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:19", "text": "// Extract the sign bit from r6 and combine it with that denormal. r6 could\n  // be 0 or could be negative, so we must add enough to it to make it reliably\n  // positive. Any offset that works is fine; we'll use 0xc0, which is the\n  // offset used by IEEE 754:1985 underflow intermediate values.\n  ADDS    r6, r6, #0xc0 // rebias to correct sign bit\n  LSRS    r6, r6, #8    // isolate the sign bit\n  LSLS    r0, r6, #31   // and shift it up to the top\n  ADDS    r0, r0, r5    // combine with the denormalised mantissa\n  POP     {r4,r5,r6,pc}\n\nfsub_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  // We come here if at least one of a,b is a NaN or infinity.\n  // Their exponents are reliably always in r2 and r3\n  // respectively.\n  ASRS    r4, r5, #7    // so r4 = 0xFF000000\n  LSLS    r6, r0, #1    // r6 > r4 iff a is NaN\n  CMP     r6, r4\n  BHI     fsub_nan\n  LSLS    r6, r1, #1    // r6 > r4 iff b is NaN\n  CMP     r6, r4\n  BHI     fsub_nan\n\n  // No NaNs, so we have at least one infinity. Almost all additions involving\n  // an infinity return the input infinity unchanged. The only exception is\n  // subtracting two infinities that have the same sign, where we return NaN.\n  CMP     r2, r3        // at least one exponent is 0xFF, so if EQ, both are\n  BEQ     fsub_infinf\n\n  // If a is infinite and b is finite, return a.\n  CMP     r2, #255\n  BEQ     fsub_ret_exact\nfsub_retminusb:\n  // If a is finite and b is infinite, return -b.\n  MOVS    r0, r1\n  EORS    r0, r0, r5    // negate b\nfsub_reta:\nfsub_ret_exact:\n  POP     {r4,r5,r6,pc}\nfsub_infinf:\n  // With two infinities, we must check their relative sign. If they have\n  // opposite sign, we just return a (which is the one with the same sign as\n  // the output).\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_ret_exact\n\n  // But if we're subtracting two infinities of the same sign, make a default\n  // quiet NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfsub_nan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\nfsub_zerodenorm_a:\n  // We come here if we found a was 0 or a denormal. We haven't set up r3 as", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 721, "line_end": 780}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:20", "text": "POP     {r4,r5,r6,pc}\nfsub_infinf:\n  // With two infinities, we must check their relative sign. If they have\n  // opposite sign, we just return a (which is the one with the same sign as\n  // the output).\n  MOVS    r4, r0\n  EORS    r4, r4, r1\n  BMI     fsub_ret_exact\n\n  // But if we're subtracting two infinities of the same sign, make a default\n  // quiet NaN and return that.\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\nfsub_nan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\nfsub_zerodenorm_a:\n  // We come here if we found a was 0 or a denormal. We haven't set up r3 as\n  // the exponent of b yet.\n  LSRS    r3, r3, #24\n\n  // Also, we checked for zero/denorm before checking for infinities and NaNs.\n  // We know a isn't an infinity or NaN, but we must check b.\n  CMP     r3, #255\n  BEQ     fsub_naninf\n\n  // Fall through to the next section. This repeats a pointless check for a\n  // being NaN or infinity, but it would cost more cycles to branch round it.\n\nfsub_zerodenorm_b:\n  // We come here if we found b was 0 or a denormal, but also by falling\n  // through from above. So we may not yet have checked a for infinity/NaN. But\n  // we have checked that b isn't.\n  CMP     r2, #255\n  BEQ     fsub_naninf\n\n  // Now at least one of a,b is zero or denormal, and neither is infinite or\n  // NaN. We haven't yet checked the signs and cross-jumped to fsub, but we can\n  // handle all the zero cases without having to:\n  //\n  //  - if a = -b (including both being zero), return 0 of the appropriate sign\n  //  - if b = 0, return a (including the case of oppositely signed zeroes)\n  //  - if a = 0 and b != 0, return -b\n  CMP     r0, r1         // are a and b equal?\n  BEQ     fsub_diffsame\n  LSLS    r6, r1, #1     // is b zero?\n  BEQ     fsub_reta      // if so, return a\n  LSLS    r6, r0, #1     // is a zero?\n  BEQ     fsub_retminusb // if so, return -b\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't\n  // want to handle both signs at once, so check the signs and cross-branch\n  // into fadd if they're different.\n  MOVS    r6, r1\n  EORS    r6, r6, r0\n  BPL     fsub_denorm\n  EORS    r1, r1, r5", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 761, "line_end": 820}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:21", "text": "// handle all the zero cases without having to:\n  //\n  //  - if a = -b (including both being zero), return 0 of the appropriate sign\n  //  - if b = 0, return a (including the case of oppositely signed zeroes)\n  //  - if a = 0 and b != 0, return -b\n  CMP     r0, r1         // are a and b equal?\n  BEQ     fsub_diffsame\n  LSLS    r6, r1, #1     // is b zero?\n  BEQ     fsub_reta      // if so, return a\n  LSLS    r6, r0, #1     // is a zero?\n  BEQ     fsub_retminusb // if so, return -b\n\n  // Now we've dealt with all the possibilities involving zeroes, so we have\n  // either one denormal or two denormals. These cases are harder, and we don't\n  // want to handle both signs at once, so check the signs and cross-branch\n  // into fadd if they're different.\n  MOVS    r6, r1\n  EORS    r6, r6, r0\n  BPL     fsub_denorm\n  EORS    r1, r1, r5\n  BL      fadd_denorm\nfsub_denorm:\n  // Sort the operands into magnitude order. Now we know they have the same\n  // sign, unsigned comparison is good enough for that.\n  SUBS    r6, r0, r1\n  BHS     0f\n  EORS    r6, r6, r5              // flip the signs in the process\n  SUBS    r0, r0, r6\n  ADDS    r1, r1, r6\n0:\n\n  // We know one exponent is 0, so check if the other is too. We do this by\n  // adding the two exponents together, achieving two things in one\n  // instruction: it gets the nonzero exponent (if any) into r2 (saving us\n  // swapping r2 with r3 in the sorting step above), and it sets Z if both were\n  // zero.\n  ADDS    r2, r2, r3\n  BEQ     fsub_denorm2\n\n  // Now exactly one operand is denormal, and it's b. We must go back to\n  // fsub_dosub with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of a\n  LSLS    r4, r1, #8   // r4 == mantissa of b, with leading bit clear\n  LSLS    r0, r0, #8\n  BICS    r0, r0, r5   // clear high bit on mantissa of a\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fsub_dosub\n\nfsub_denorm2:\n  // Here, a,b are both denormal, and we know we're doing magnitude addition.\n  // So we can subtract the mantissas like ordinary integers. But we have to\n  // avoid subtracting b's sign bit from a's.\n  BICS    r1, r1, r5  // clear sign bit of b\n  SUBS    r0, r0, r1  // subtract mantissas\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 801, "line_end": 857}
{"id": "ARM-software/optimized-routines:fp/armv6-m/faddsub.S:22", "text": "// fsub_dosub with all the registers appropriately set up.\n  LSRS    r6, r0, #23  // r6 == sign and exponent of a\n  LSLS    r4, r1, #8   // r4 == mantissa of b, with leading bit clear\n  LSLS    r0, r0, #8\n  BICS    r0, r0, r5   // clear high bit on mantissa of a\n  SUBS    r3, r2, #1   // denormals are shifted as if they had exponent 1\n  B       fsub_dosub\n\nfsub_denorm2:\n  // Here, a,b are both denormal, and we know we're doing magnitude addition.\n  // So we can subtract the mantissas like ordinary integers. But we have to\n  // avoid subtracting b's sign bit from a's.\n  BICS    r1, r1, r5  // clear sign bit of b\n  SUBS    r0, r0, r1  // subtract mantissas\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/armv6-m/faddsub.S", "line_start": 841, "line_end": 857}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_eq.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x == y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BEQ 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_eq\n  .type arm_fp_fcmp_bool_eq,%function\narm_fp_fcmp_bool_eq:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_eq, .-arm_fp_fcmp_bool_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_bool_eq.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_eq.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a == b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BEQ 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_eq\n  .type arm_fp_fcmp_bool_eq,%function\narm_fp_fcmp_bool_eq:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_eq, .-arm_fp_fcmp_bool_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_eq.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_bool_eq.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_ge.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x >= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BHS 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_ge\n  .type arm_fp_fcmp_bool_ge,%function\narm_fp_fcmp_bool_ge:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_ge, .-arm_fp_fcmp_bool_ge", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_ge.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_bool_ge.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_ge.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a >= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BHS 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_ge\n  .type arm_fp_fcmp_bool_ge,%function\narm_fp_fcmp_bool_ge:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_ge, .-arm_fp_fcmp_bool_ge", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_ge.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_bool_ge.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_gt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x > y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BHI 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_gt\n  .type arm_fp_fcmp_bool_gt,%function\narm_fp_fcmp_bool_gt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_gt, .-arm_fp_fcmp_bool_gt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_gt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_bool_gt.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_gt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a > b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BHI 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_gt\n  .type arm_fp_fcmp_bool_gt,%function\narm_fp_fcmp_bool_gt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_gt, .-arm_fp_fcmp_bool_gt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_gt.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_bool_gt.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_le.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x <= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BLS 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_le\n  .type arm_fp_fcmp_bool_le,%function\narm_fp_fcmp_bool_le:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_le, .-arm_fp_fcmp_bool_le", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_le.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_bool_le.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_le.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a <= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BLS 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_le\n  .type arm_fp_fcmp_bool_le,%function\narm_fp_fcmp_bool_le:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_le, .-arm_fp_fcmp_bool_le", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_le.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_bool_le.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_lt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x < y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BLO 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_lt\n  .type arm_fp_fcmp_bool_lt,%function\narm_fp_fcmp_bool_lt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_lt, .-arm_fp_fcmp_bool_lt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_lt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_bool_lt.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_lt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a < b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BLO 0f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_bool_lt\n  .type arm_fp_fcmp_bool_lt,%function\narm_fp_fcmp_bool_lt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_lt, .-arm_fp_fcmp_bool_lt", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_lt.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_bool_lt.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_un.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x and y are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fcmp_bool_un\n  .type arm_fp_fcmp_bool_un,%function\narm_fp_fcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in fcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  MOVS    r2, #0xFF\n  LSLS    r2, r2, #24\n  LSLS    r3, r0, #1\n  CMP     r3, r2\n  BHI     fcmp_NaN\n  LSLS    r3, r1, #1\n  CMP     r3, r2\n  BHI     fcmp_NaN\n\n  // If HS, then we have no NaNs and return false.\n  MOVS    r0, #0\n  BX      lr\n\n  // Otherwise, we have at least one NaN, and return true.\nfcmp_NaN:\n  MOVS    r0, #1\n  BX      lr\n\n  .size arm_fp_fcmp_bool_un, .-arm_fp_fcmp_bool_un", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_un.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_bool_un.S", "line_start": 1, "line_end": 38}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_bool_un.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a and b are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fcmp_bool_un\n  .type arm_fp_fcmp_bool_un,%function\narm_fp_fcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in fcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  MOVS    r2, #0xFF\n  LSLS    r2, r2, #24\n  LSLS    r3, r0, #1\n  CMP     r3, r2\n  BHI     fcmp_NaN\n  LSLS    r3, r1, #1\n  CMP     r3, r2\n  BHI     fcmp_NaN\n\n  // If HS, then we have no NaNs and return false.\n  MOVS    r0, #0\n  BX      lr\n\n  // Otherwise, we have at least one NaN, and return true.\nfcmp_NaN:\n  MOVS    r0, #1\n  BX      lr\n\n  .size arm_fp_fcmp_bool_un, .-arm_fp_fcmp_bool_un", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_bool_un.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_bool_un.S", "line_start": 1, "line_end": 38}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_flags.S:1", "text": "// Single-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags\n  .type arm_fp_fcmp_flags,%function\narm_fp_fcmp_flags:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOVS r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags, .-arm_fp_fcmp_flags", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_flags.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_flags.S", "line_start": 1, "line_end": 28}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_flags.S:1", "text": "// Single-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags\n  .type arm_fp_fcmp_flags,%function\narm_fp_fcmp_flags:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOVS r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags, .-arm_fp_fcmp_flags", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_flags.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_flags.S", "line_start": 1, "line_end": 28}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_flags_eq.S:1", "text": "// Single-precision comparison, returning EQ / NE in the flags.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags_eq\n  .type arm_fp_fcmp_flags_eq,%function\narm_fp_fcmp_flags_eq:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #1   // the value in r0 is unimportant; this just sets Z=0\n  BX lr\n\n  .size arm_fp_fcmp_flags_eq, .-arm_fp_fcmp_flags_eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_flags_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_flags_eq.S", "line_start": 1, "line_end": 25}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_flags_rev.S:1", "text": "// Single-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r1\nop1 .req r0\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags_rev\n  .type arm_fp_fcmp_flags_rev,%function\narm_fp_fcmp_flags_rev:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOVS r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags_rev, .-arm_fp_fcmp_flags_rev", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_flags_rev.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_flags_rev.S", "line_start": 1, "line_end": 29}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_flags_rev.S:1", "text": "// Single-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r1\nop1 .req r0\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags_rev\n  .type arm_fp_fcmp_flags_rev,%function\narm_fp_fcmp_flags_rev:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOVS r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags_rev, .-arm_fp_fcmp_flags_rev", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_flags_rev.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/armv6-m/fcmp_flags_rev.S", "line_start": 1, "line_end": 29}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_gnu_cmp.S:1", "text": "// Single-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpsf2: it's a three-way compare\n// which returns <0 if x<y, 0 if x==y, and >0 if x>y. If the result is\n// unordered (i.e. x or y or both is NaN) then it returns >0.\n//\n// This also makes it suitable for use as all of __eqsf2, __nesf2, __ltsf2 or\n// __lesf2.\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BHI 0f\n  BLO 1f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n1:\n  MOVS r0, #1\n  RSBS r0, r0, #0\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_gnu_cmp\n  .type arm_fp_fcmp_gnu_cmp,%function\narm_fp_fcmp_gnu_cmp:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  MOVS r0, #1\n  BX lr\n\n  .size arm_fp_fcmp_gnu_cmp, .-arm_fp_fcmp_gnu_cmp", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_gnu_cmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_gnu_cmp.S", "line_start": 1, "line_end": 42}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fcmp_gnu_rcmp.S:1", "text": "// Single-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpsf2, except for its NaN\n// handling. It's a three-way compare which returns <0 if x<y, 0 if x==y, and\n// >0 if x>y. If the result is unordered (i.e. x or y or both is NaN) then it\n// returns <0, where __cmpsf2 would return >0.\n//\n// This also makes it suitable for use as __gtsf2 or __gesf2 (or __eqsf2 or\n// __nesf2).\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  BHI 0f\n  BLO 1f\n  MOVS r0, #0\n  BX lr\n0:\n  MOVS r0, #1\n  BX lr\n1:\n  MOVS r0, #1\n  RSBS r0, r0, #0\n  BX lr\n.endm\n\n  .globl arm_fp_fcmp_gnu_rcmp\n  .type arm_fp_fcmp_gnu_rcmp,%function\narm_fp_fcmp_gnu_rcmp:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  MOVS r0, #1\n  RSBS r0, r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_gnu_rcmp, .-arm_fp_fcmp_gnu_rcmp", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fcmp_gnu_rcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fcmp_gnu_rcmp.S", "line_start": 1, "line_end": 44}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:1", "text": "// Single-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .thumb\n  .p2align 2\n\n  .globl arm_fp_fmul\n  .type arm_fp_fmul,%function\narm_fp_fmul:\n  PUSH {r4,r5,r6,lr}\n\n  // Get exponents of the inputs, and check for uncommon values. In the process\n  // of this we also compute the sign, because it's marginally quicker that\n  // way.\n  LSLS    r2, r0, #1\n  ADCS    r4, r4, r4    // set r4[0] to sign bit of x\n  LSLS    r3, r1, #1\n  ADCS    r4, r4, r3    // set r4[0] to the output sign\n  LSRS    r2, r2, #24\n  BEQ     zerodenorm0   // still do the next LSRS\n  LSRS    r3, r3, #24\n  BEQ     zerodenorm\n  CMP     r2, #255\n  BEQ     naninf\n  CMP     r3, #255\n  BEQ     naninf\n  // Compute the output exponent. We'll be generating our product _without_ the\n  // leading bit, so we subtract 0x7f rather than 0x80.\n  ADDS    r2, r2, r3\n  SUBS    r2, r2, #0x7f\n  // Blank off everything above the mantissas.\n  LSLS    r0, r0, #9\n  LSLS    r1, r1, #9\nnormalised: // we may come back here from zerodenorm\n  LSRS    r0, r0, #9\n  LSRS    r1, r1, #9\n  // Multiply. r0 and r1 are the mantissas of the inputs but without their\n  // leading bits, so the product we want in principle is P=(r0+2^23)(r1+2^23).\n  // P is at most (2^24-1)^2 < 2^48, so it fits in a word and a half.\n  //\n  // The technique below will actually compute P - 2^46, by not adding on the\n  // term where the two 2^23 are multiplied. The 48-bit result will be\n  // delivered in two output registers, one containing its bottom 32 bits and\n  // the other containing the top 32, so they overlap in the middle 16 bits.\n  // This is done using only two multiply instructions and some bookkeeping.\n  //\n  // In the comments I'll write X and Y for the original input mantissas (again\n  // without their leading bits). I'll also decompose them as X = xh + xl and\n  // Y = yh + yl, where xl and yl are in the range 0..2^8-1 and xh,yh are\n  // multiples of 2^8.\n  ADDS    r5, r0, r1\n  LSLS    r5, r5, #7    // r5 = (X+Y) << 7\n  MOVS    r6, r0\n  MULS    r6, r1, r6    // r6 is congruent mod 2^32 to X*Y\n  LSRS    r0, r0, #8\n  LSRS    r1, r1, #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:2", "text": "// Multiply. r0 and r1 are the mantissas of the inputs but without their\n  // leading bits, so the product we want in principle is P=(r0+2^23)(r1+2^23).\n  // P is at most (2^24-1)^2 < 2^48, so it fits in a word and a half.\n  //\n  // The technique below will actually compute P - 2^46, by not adding on the\n  // term where the two 2^23 are multiplied. The 48-bit result will be\n  // delivered in two output registers, one containing its bottom 32 bits and\n  // the other containing the top 32, so they overlap in the middle 16 bits.\n  // This is done using only two multiply instructions and some bookkeeping.\n  //\n  // In the comments I'll write X and Y for the original input mantissas (again\n  // without their leading bits). I'll also decompose them as X = xh + xl and\n  // Y = yh + yl, where xl and yl are in the range 0..2^8-1 and xh,yh are\n  // multiples of 2^8.\n  ADDS    r5, r0, r1\n  LSLS    r5, r5, #7    // r5 = (X+Y) << 7\n  MOVS    r6, r0\n  MULS    r6, r1, r6    // r6 is congruent mod 2^32 to X*Y\n  LSRS    r0, r0, #8\n  LSRS    r1, r1, #8\n  MULS    r0, r1, r0\n  LSLS    r1, r0, #16   // r1 is congruent mod 2^32 to xh*yh\n  SUBS    r3, r6, r1    // now r3 is congruent mod 2^32 to\n                        //   (X*Y) - (xh*yh) = xh*yl + xl*yh + xl*yl\n                        //   and hence, since that is at most 0xfeff0001,\n                        //   is _exactly_ equal to that\n  ADDS    r0, r0, r5    // r0 is now (xh*yh + (X+Y)<<23) >> 16\n  LSRS    r1, r3, #16   // r1 is the top 16 bits of r3, i.e.\n                        //   (xh*yl + xl*yh + xl*yl) >> 16\n  ADDS    r3, r0, r1    // now r3 equals\n                        //   (xh*yh + xh*yl + xl*yh + xl*yl + (X+Y)<<23) >> 16\n                        //   i.e. (X*Y + (X+Y)<<23) >> 16,\n                        //   i.e. (the right answer) >> 16.\n                        // Meanwhile, r6 is exactly the bottom 32 bits of the\n                        // right answer.\n  // Renormalise if necessary.\n  LSRS    r1, r3, #30\n  BEQ     norenorm\n  // Here we have to do something fiddly. Renormalisation would be a trivial\n  // job if we had the leading mantissa bit - just note that it's one bit\n  // position above where it should be, and shift right by one. But without\n  // that bit, we currently have (2x - 2^30), and we want (x - 2^30); just\n  // shifting right would of course give us (x - 2^29), so we must subtract an\n  // extra 2^29 to fix this up.\n  LSRS    r3, r3, #1\n  MOVS    r1, #1\n  LSLS    r1, r1, #29\n  SUBS    r3, r3, r1\n  ADDS    r2, r2, #1\nnorenorm:\n  // Round and shift down to the right bit position.\n  LSRS    r0, r3, #7    // round bit goes into the carry flag\n  BCC     rounded\n  ADDS    r0, r0, #1\n  // In the round-up branch, we must also check if we have to round to even, by\n  // testing all the bits below the round bit. We will normally not expect to,\n  // so we do RTE by branching out of line and back again to avoid spending a\n  // branch in the common case.\n  LSLS    r5, r3, #32-7+1  // check the bits shifted out of r3 above\n  BNE     rounded          // if any is nonzero, we're not rounding to even", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fmul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:3", "text": "// position above where it should be, and shift right by one. But without\n  // that bit, we currently have (2x - 2^30), and we want (x - 2^30); just\n  // shifting right would of course give us (x - 2^29), so we must subtract an\n  // extra 2^29 to fix this up.\n  LSRS    r3, r3, #1\n  MOVS    r1, #1\n  LSLS    r1, r1, #29\n  SUBS    r3, r3, r1\n  ADDS    r2, r2, #1\nnorenorm:\n  // Round and shift down to the right bit position.\n  LSRS    r0, r3, #7    // round bit goes into the carry flag\n  BCC     rounded\n  ADDS    r0, r0, #1\n  // In the round-up branch, we must also check if we have to round to even, by\n  // testing all the bits below the round bit. We will normally not expect to,\n  // so we do RTE by branching out of line and back again to avoid spending a\n  // branch in the common case.\n  LSLS    r5, r3, #32-7+1  // check the bits shifted out of r3 above\n  BNE     rounded          // if any is nonzero, we're not rounding to even\n  LSLS    r5, r6, #15      // check the bottom 17 bits of the low-order 32\n                           //   (enough to overlap r3 even if we renormalised)\n  BEQ     rte              // if any is nonzero, fall through, else RTE\nrounded:\n  // Put on the sign and exponent, check for underflow and overflow, and\n  // return.\n  //\n  // Underflow occurs iff r2 (the output exponent) <= 0. Overflow occurs if\n  // it's >= 0xFF. (Also if it's 0xFE and we rounded up to overflow, but since\n  // this code doesn't report exceptions, we can ignore this case because it'll\n  // happen to return the right answer regardless). So we handle most of this\n  // via an unsigned comparison against 0xFF, which leaves the one case of a\n  // zero exponent that we have to filter separately by testing the Z flag\n  // after we shift the exponent back up into place.\n  CMP     r2, #0xFF    // check for most over/underflows\n  BHS     outflow      // ... and branch out of line for them\n  LSLS    r5, r2, #23  // shift the exponent into its output location\n  BEQ     outflow      // ... and branch again if it was 0\n  LSLS    r4, r4, #31  // shift the output sign into place\n  ORRS    r0, r0, r4   // and OR it in to the output\n  ADDS    r0, r0, r5   // OR in the mantissa\n  POP     {r4,r5,r6,pc} // and return\n\nrte:\n  // Out-of-line handler for the round-to-even case. Clear the low mantissa bit\n  // and go back to the post-rounding code.\n  MOVS    r5, #1\n  BICS    r0, r0, r5\n  B       rounded\n\noutflow:\n  CMP     r2, #0\n  BGT     overflow\n  // To handle underflow, we construct an intermediate value in the IEEE 754\n  // style (using our existing full-length mantissa, and bias the exponent by\n  // +0xC0), and indicate whether that intermediate was rounded up, down or not\n  // at all. Then call the helper function __funder, which will denormalise and\n  // re-round correctly.\n  LSLS    r1, r0, #7    // shift up the post-rounding mantissa\n  SUBS    r1, r3, r1    //   and subtract it from the pre-rounding version", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fmul.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:4", "text": "ADDS    r0, r0, r5   // OR in the mantissa\n  POP     {r4,r5,r6,pc} // and return\n\nrte:\n  // Out-of-line handler for the round-to-even case. Clear the low mantissa bit\n  // and go back to the post-rounding code.\n  MOVS    r5, #1\n  BICS    r0, r0, r5\n  B       rounded\n\noutflow:\n  CMP     r2, #0\n  BGT     overflow\n  // To handle underflow, we construct an intermediate value in the IEEE 754\n  // style (using our existing full-length mantissa, and bias the exponent by\n  // +0xC0), and indicate whether that intermediate was rounded up, down or not\n  // at all. Then call the helper function __funder, which will denormalise and\n  // re-round correctly.\n  LSLS    r1, r0, #7    // shift up the post-rounding mantissa\n  SUBS    r1, r3, r1    //   and subtract it from the pre-rounding version\n  LSLS    r6, r6, #15\n  CMP     r6, #1        // if the rest of the low bits are nonzero\n  ADCS    r1, r1, r1    //   then set an extra bit at the bottom\n\n  LSLS    r4, r4, #31\n  ORRS    r0, r0, r4    // put on the sign\n  ADDS    r2, r2, #192  // bias the exponent\n  LSLS    r3, r2, #23\n  ADDS    r0, r0, r3    // put on the biased exponent\n\n  BL      __funder\n  POP     {r4,r5,r6,pc}\n\noverflow:\n  // Handle overflow by returning an infinity of the correct sign.\n  LSLS    r4, r4, #8    // move the sign up to bit 8\n  MOVS    r0, #0xff\n  ORRS    r0, r0, r4    // fill in an exponent just below it\n  LSLS    r0, r0, #23   // and shift those 9 bits up to the top of the word\n  POP     {r4,r5,r6,pc}\n\n  // We come here if there's at least one zero or denormal. On the fast path\n  // above, it was convenient to check these before checking NaNs and\n  // infinities, but NaNs take precedence, so now we're off the fast path, we\n  // must still check for those.\n  //\n  // At the main entry point 'zerodenorm' we want r2 and r3 to be the two input\n  // exponents. So if we branched after shifting-and-checking r2, we come to\n  // this earlier entry point 'zerodenorm0' so that we still shift r3.\nzerodenorm0:\n  LSRS    r3, r3, #24\nzerodenorm:\n  CMP     r2, #255\n  BEQ     naninf\n  CMP     r3, #255\n  BEQ     naninf\n  // Now we know we have at least one zero or denormal, and no NaN or infinity.\n  // Check if either input is actually zero. We've ruled out 0 * infinity by\n  // this point, so any zero input means we return zero of the correct sign.\n  LSLS    r6, r0, #1        // is one input zero?", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fmul.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:5", "text": "// We come here if there's at least one zero or denormal. On the fast path\n  // above, it was convenient to check these before checking NaNs and\n  // infinities, but NaNs take precedence, so now we're off the fast path, we\n  // must still check for those.\n  //\n  // At the main entry point 'zerodenorm' we want r2 and r3 to be the two input\n  // exponents. So if we branched after shifting-and-checking r2, we come to\n  // this earlier entry point 'zerodenorm0' so that we still shift r3.\nzerodenorm0:\n  LSRS    r3, r3, #24\nzerodenorm:\n  CMP     r2, #255\n  BEQ     naninf\n  CMP     r3, #255\n  BEQ     naninf\n  // Now we know we have at least one zero or denormal, and no NaN or infinity.\n  // Check if either input is actually zero. We've ruled out 0 * infinity by\n  // this point, so any zero input means we return zero of the correct sign.\n  LSLS    r6, r0, #1        // is one input zero?\n  BEQ     zero              // yes, go and return zero\n  LSLS    r6, r1, #1        // is the other one zero?\n  BNE     denorm            // if not, one must have been a denormal\nzero:\n  LSLS    r0, r4, #31    // shift up the output sign to make the return value\n  POP     {r4,r5,r6,pc}\n\n  // Handle denormals via the helper function __fnorm2, which will break both\n  // inputs up into mantissa and exponent, renormalising and generating a\n  // negative exponent if necessary.\ndenorm:\n  PUSH    {r0,r1,r2,r3}\n  MOV     r0, sp\n  BL      __fnorm2\n  POP     {r0,r1,r2,r3}\n  // Convert __fnorm2's return values into the right form to rejoin the main\n  // code path.\n  LSLS    r0, r0, #1\n  LSLS    r1, r1, #1\n  ADDS    r2, r2, r3\n  SUBS    r2, r2, #0x7f\n  B       normalised\n\n  // We come here if at least one input is a NaN or infinity. There may still\n  // be zeroes (or denormals, though they make no difference at this stage).\nnaninf:\n  MOVS    r6, #0xff\n  LSLS    r6, r6, #24\n  LSLS    r5, r0, #1\n  CMP     r5, r6\n  BHI     nan              // first operand is a NaN\n  LSLS    r5, r1, #1\n  CMP     r5, r6\n  BHI     nan              // second operand is a NaN\n\n  // We know we have at least one infinity, and no NaNs. We might also have a\n  // zero, in which case we return the default quiet NaN.\n  LSLS    r6, r0, #1\n  BEQ     infzero          // if r0 is a zero, r1 must be inf\n  LSLS    r6, r1, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fmul.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:6", "text": "SUBS    r2, r2, #0x7f\n  B       normalised\n\n  // We come here if at least one input is a NaN or infinity. There may still\n  // be zeroes (or denormals, though they make no difference at this stage).\nnaninf:\n  MOVS    r6, #0xff\n  LSLS    r6, r6, #24\n  LSLS    r5, r0, #1\n  CMP     r5, r6\n  BHI     nan              // first operand is a NaN\n  LSLS    r5, r1, #1\n  CMP     r5, r6\n  BHI     nan              // second operand is a NaN\n\n  // We know we have at least one infinity, and no NaNs. We might also have a\n  // zero, in which case we return the default quiet NaN.\n  LSLS    r6, r0, #1\n  BEQ     infzero          // if r0 is a zero, r1 must be inf\n  LSLS    r6, r1, #1\n  BEQ     infzero          // if r1 is a zero, r0 must be inf\n  // Otherwise we have infinity * infinity, or infinity * finite. Just return\n  // an appropriately signed infinity.\n  B       overflow         // reuse the code there\n\n  // We come here if at least one input is a NaN. Hand off to __fnan2, which\n  // propagates an appropriate NaN to the output, dealing with the special\n  // cases of signalling/quiet NaNs.\nnan:\n  BL      __fnan2\n  POP     {r4,r5,r6,pc}\n\n  // Return a quiet NaN as the result of infinity * zero.\ninfzero:\n  LDR     r0, =0x7fc00000\n  POP     {r4,r5,r6,pc}\n\n  .size arm_fp_fmul, .-arm_fp_fmul", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/armv6-m/fmul.S", "line_start": 201, "line_end": 238}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:1", "text": "// Single-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .thumb\n  .p2align 2\n\n  .globl arm_fp_fmul\n  .type arm_fp_fmul,%function\narm_fp_fmul:\n  PUSH {r4,r5,r6,lr}\n\n  // Get exponents of the inputs, and check for uncommon values. In the process\n  // of this we also compute the sign, because it's marginally quicker that\n  // way.\n  LSLS    r2, r0, #1\n  ADCS    r4, r4, r4    // set r4[0] to sign bit of a\n  LSLS    r3, r1, #1\n  ADCS    r4, r4, r3    // set r4[0] to the output sign\n  LSRS    r2, r2, #24\n  BEQ     zerodenorm0   // still do the next LSRS\n  LSRS    r3, r3, #24\n  BEQ     zerodenorm\n  CMP     r2, #255\n  BEQ     naninf\n  CMP     r3, #255\n  BEQ     naninf\n  // Compute the output exponent. We'll be generating our product _without_ the\n  // leading bit, so we subtract 0x7f rather than 0x80.\n  ADDS    r2, r2, r3\n  SUBS    r2, r2, #0x7f\n  // Blank off everything above the mantissas.\n  LSLS    r0, r0, #9\n  LSLS    r1, r1, #9\nnormalised: // we may come back here from zerodenorm\n  LSRS    r0, r0, #9\n  LSRS    r1, r1, #9\n  // Multiply. r0 and r1 are the mantissas of the inputs but without their\n  // leading bits, so the product we want in principle is P=(r0+2^23)(r1+2^23).\n  // P is at most (2^24-1)^2 < 2^48, so it fits in a word and a half.\n  //\n  // The technique below will actually compute P - 2^46, by not adding on the\n  // term where the two 2^23 are multiplied. The 48-bit result will be\n  // delivered in two output registers, one containing its bottom 32 bits and\n  // the other containing the top 32, so they overlap in the middle 16 bits.\n  // This is done using only two multiply instructions and some bookkeeping.\n  //\n  // In the comments I'll write A and B for the original input mantissas (again\n  // without their leading bits). I'll also decompose them as A = ah + al and\n  // B = bh + bl, where al and bl are in the range 0..2^8-1 and ah,bh are\n  // multiples of 2^8.\n  ADDS    r5, r0, r1\n  LSLS    r5, r5, #7    // r5 = (A+B) << 7\n  MOVS    r6, r0\n  MULS    r6, r1, r6    // r6 is congruent mod 2^32 to A*B\n  LSRS    r0, r0, #8\n  LSRS    r1, r1, #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "589b241332174e8eefe016d20398c2f149ff7fd7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/589b241332174e8eefe016d20398c2f149ff7fd7/fp/armv6-m/fmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/armv6-m/fmul.S:2", "text": "// Multiply. r0 and r1 are the mantissas of the inputs but without their\n  // leading bits, so the product we want in principle is P=(r0+2^23)(r1+2^23).\n  // P is at most (2^24-1)^2 < 2^48, so it fits in a word and a half.\n  //\n  // The technique below will actually compute P - 2^46, by not adding on the\n  // term where the two 2^23 are multiplied. The 48-bit result will be\n  // delivered in two output registers, one containing its bottom 32 bits and\n  // the other containing the top 32, so they overlap in the middle 16 bits.\n  // This is done using only two multiply instructions and some bookkeeping.\n  //\n  // In the comments I'll write A and B for the original input mantissas (again\n  // without their leading bits). I'll also decompose them as A = ah + al and\n  // B = bh + bl, where al and bl are in the range 0..2^8-1 and ah,bh are\n  // multiples of 2^8.\n  ADDS    r5, r0, r1\n  LSLS    r5, r5, #7    // r5 = (A+B) << 7\n  MOVS    r6, r0\n  MULS    r6, r1, r6    // r6 is congruent mod 2^32 to A*B\n  LSRS    r0, r0, #8\n  LSRS    r1, r1, #8\n  MULS    r0, r1, r0\n  LSLS    r1, r0, #16   // r1 is congruent mod 2^32 to ah*bh\n  SUBS    r3, r6, r1    // now r3 is congruent mod 2^32 to\n                        //   (A*B) - (ah*bh) = ah*bl + al*bh + al*bl\n                        //   and hence, since that is at most 0xfeff0001,\n                        //   is _exactly_ equal to that\n  ADDS    r0, r0, r5    // r0 is now (ah*bh + (A+B)<<23) >> 16\n  LSRS    r1, r3, #16   // r1 is the top 16 bits of r3, i.e.\n                        //   (ah*bl + al*bh + al*bl) >> 16\n  ADDS    r3, r0, r1    // now r3 equals\n                        //   (ah*bh + ah*bl + al*bh + al*bl + (A+B)<<23) >> 16\n                        //   i.e. (A*B + (A+B)<<23) >> 16,\n                        //   i.e. (the right answer) >> 16.\n                        // Meanwhile, r6 is exactly the bottom 32 bits of the\n                        // right answer.\n  // Renormalise if necessary.\n  LSRS    r1, r3, #30\n  BEQ     norenorm\n  // Here we have to do something fiddly. Renormalisation would be a trivial\n  // job if we had the leading mantissa bit - just note that it's one bit\n  // position above where it should be, and shift right by one. But without\n  // that bit, we currently have (2x - 2^30), and we want (x - 2^30); just\n  // shifting right would of course give us (x - 2^29), so we must subtract an\n  // extra 2^29 to fix this up.\n  LSRS    r3, r3, #1\n  MOVS    r1, #1\n  LSLS    r1, r1, #29\n  SUBS    r3, r3, r1\n  ADDS    r2, r2, #1\nnorenorm:\n  // Round and shift down to the right bit position.\n  LSRS    r0, r3, #7    // round bit goes into the carry flag\n  BCC     rounded\n  ADDS    r0, r0, #1\n  // In the round-up branch, we must also check if we have to round to even, by\n  // testing all the bits below the round bit. We will normally not expect to,\n  // so we do RTE by branching out of line and back again to avoid spending a\n  // branch in the common case.\n  LSLS    r5, r3, #32-7+1  // check the bits shifted out of r3 above\n  BNE     rounded          // if any is nonzero, we're not rounding to even", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/armv6-m/fmul.S", "license": "MIT", "commit": "589b241332174e8eefe016d20398c2f149ff7fd7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/589b241332174e8eefe016d20398c2f149ff7fd7/fp/armv6-m/fmul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:1", "text": "// Double-precision to single-precision conversion.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_d2f\n  .type arm_fp_d2f,%function\narm_fp_d2f:\n\n  // Start with the fast path, dealing with input values that give a normalized\n  // single-precision output. We handle these as quickly as possible in\n  // straight-line code, and branch out of line to a single 'handle everything\n  // else' label which will have to figure out what kind of unusual thing has\n  // happened.\n\n  // Split xh into the sign bit (in r3) and everything else (r2), so that we\n  // can change the width of the exponent field and then put the sign back on\n  // later.\n  BIC     r2, xh, #0x80000000\n  AND     r3, xh, #0x80000000\n\n  // Rebias the exponent, still in its double-precision location, to account\n  // for the difference between double- and single-precision exponents.\n  SUB     r2, r2, #(0x3ff-0x7f) << 20\n\n  // If the exponent field is now 0 or less, we have an underflow or an exact\n  // zero. If it's 0xFF or more, we have an overflow, or a NaN or infinity as\n  // input. Detect all of those in a combined test, and branch out of line.\n  CMP     r2, #0x00100000       // LO if output too small\n  RSBSHS  r12, r2, #0x0ff00000  // otherwise, set LS if output too large\n  BLS     d2f_uncommon          // so now LS means one or the other happened\n\n  // We've disposed of all the uncommon cases, so we know we're returning a\n  // normalized float, but we might still need to round it. Shift the round bit\n  // into the C flag, also setting Z if everything below that is zero.\n  LSLS    r12, xl, #4\n\n  // Put the result back together, by recombining the sign (in r3) with the\n  // exponent and top of the mantissa (in r2, needing to be shifted left 3\n  // bits), plus the top 3 bits of xl. The last of those is put on with an ADC\n  // instruction, which also rounds up if the bit we just shifted into C was\n  // set.\n  ORR     r2, r3, r2, LSL #3    // sign + exponent + most of mantissa\n  ADC     r0, r2, xl, LSR #29   // low 3 bits of mantissa + maybe round up\n\n  // If C=1 and Z=1, we need to round to even. Otherwise we're finished. So we\n  // conditionally return based on one of those flags, then clear the low\n  // output bit based on the other.\n  //\n  // Which way round? On the assumption that input mantissas are roughly\n  // uniformly distributed, _almost all_ input doubles will contain a 1 bit\n  // somewhere in the bottom 28 bits, so we return early in the vast majority\n  // of cases by testing Z first. If we tested C first, we'd expect to return\n  // early only half the time, costing two extra instructions half the time", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:3", "text": "// we do is test if the input is zero, and if so, return the same sign of\n  // zero by simply using xh as the return value.\n  ORRS    r12, xl, xh, LSL #1   // are all bits of xh:xl 0 except the sign bit?\n\n#ifndef __BIG_ENDIAN__\n  // In little-endian, xh (containing the desired sign bit) and r0 (the output\n  // register) aren't the same. This instruction can be skipped in big-endian,\n  // where the correct output value is already in r0.\n  MOVEQ   r0, xh\n#endif\n  BXEQ    lr\n\n  // Separate the remaining cases into three types: too small (underflow,\n  // whether or not the input was a denormal), too big (overflow or input\n  // infinity, which we treat the same in the absence of FP exceptions), and\n  // NaN.\n  //\n  // At this stage r2 contains the output exponent, rebiased to its\n  // single-precision value, but at bit 20 (that is, still in the\n  // double-precision position). Detect underflow by doing a signed comparison\n  // against the minimum normalized single-precision exponent.\n  CMP     r2, #0x00100000\n  BLT     d2f_underflow\n\n  // Now figure out whether we had a NaN as input, by shifting xh left by a bit\n  // (discarding the sign) and setting the new low bit if xl != 0. This gives a\n  // value which is greater than 0xFFE00000 (in an unsigned comparison) for\n  // precisely NaN inputs.\n  CMP     xl, #1                // set C if xl != 0\n  ADC     r12, xh, xh           // shift that in to the bottom of xh\n  CMN     r12, #0x00200000      // is the result > 0xFFE00000?\n  BHI     d2f_nan               // if so, go and handle a NaN\n\n  // If we're still here, we have a finite overflow, or an input infinity. We\n  // don't have to figure out which: we return an infinity of the appropriate\n  // sign in both cases. So keep just the sign of xh, and make an infinity out\n  // of the rest of the bits.\n  MVN     r0, xh, LSR #31       // shift sign bit down to bit 0 and flip it\n  MVN     r0, r0, LSL #8        // flip it back, putting 8 set bits below it\n  LSL     r0, r0, #23           // and shift those 9 bits back up to the top\n  BX      lr\n\nd2f_nan:\n  // We have a double-precision NaN input. The Arm NaN handling rules say that\n  // we make the output single-precision NaN by keeping the sign and as much of\n  // the mantissa as possible (starting from the top bit). But we also set the\n  // top bit of the mantissa, which makes the output NaN quiet even if the\n  // input one was signaling.\n  //\n  // So this code looks a bit like a miniature version of the fast path: we\n  // keep the bottom 8 bits of the exponent in xh as the output exponent (we\n  // know it's all 1s, which is what we want), plus all the mantissa bits below\n  // it; shift all of that 3 bits left and recombine with the sign; then\n  // combine with the top 3 bits of xl. Finally, set the top mantissa bit.\n  BIC     r2, xh, #0xF0000000   // everything from xh we want to shift left\n  ORR     r0, r3, xl, LSR #29   // combine sign with low 3 output mantissa bits\n  ORR     r0, r0, r2, LSL #3    // combine that with the shifted-up value in r2\n  ORR     r0, r0, #0x00400000   // set the top mantissa bit to make it a QNaN\n  BX      lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2f.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:4", "text": "BX      lr\n\nd2f_nan:\n  // We have a double-precision NaN input. The Arm NaN handling rules say that\n  // we make the output single-precision NaN by keeping the sign and as much of\n  // the mantissa as possible (starting from the top bit). But we also set the\n  // top bit of the mantissa, which makes the output NaN quiet even if the\n  // input one was signaling.\n  //\n  // So this code looks a bit like a miniature version of the fast path: we\n  // keep the bottom 8 bits of the exponent in xh as the output exponent (we\n  // know it's all 1s, which is what we want), plus all the mantissa bits below\n  // it; shift all of that 3 bits left and recombine with the sign; then\n  // combine with the top 3 bits of xl. Finally, set the top mantissa bit.\n  BIC     r2, xh, #0xF0000000   // everything from xh we want to shift left\n  ORR     r0, r3, xl, LSR #29   // combine sign with low 3 output mantissa bits\n  ORR     r0, r0, r2, LSL #3    // combine that with the shifted-up value in r2\n  ORR     r0, r0, #0x00400000   // set the top mantissa bit to make it a QNaN\n  BX      lr\n\nd2f_underflow:\n  // We have an input value small enough to underflow. The basic strategy is to\n  // leave __funder to deal with the details.\n  //\n  // Normally __funder expects to get a value that's already been rounded, and\n  // will re-round it, for which it also needs to know which way the value has\n  // been rounded already. In this case we haven't rounded _yet_. Rather than\n  // carefully rounding to nearest, it's easier to just make the __funder input\n  // value by truncating the mantissa (i.e. round towards zero), and set the\n  // rounding direction accordingly.\n\n  // Rebias the exponent (again) to make an IEEE 754 underflow intermediate. If\n  // this still doesn't make r2 positive, then the result is so small that it\n  // will underflow to 0 anyway, so it doesn't really matter what exponent we\n  // do provide - we just clear the top 8 bits of r2 to ensure the sign is\n  // right and the exponent is _something_ small.\n  ADDS    r2, r2, #0x0c000000   // exponent bias (still shifted down 3 bits)\n  BICMI   r2, r2, #0xff000000   // handle exponent still being negative\n\n  // Test the bits we're going to shift off the mantissa, to see if any are\n  // zero. This will determine the rounding direction we pass to __funder,\n  // because although we never round _up_ on this path, we must still tell it\n  // whether the value we pass it was rounded down or was already exact.\n  LSLS    r12, xl, #3           // set Z if the intermediate value is exact\n\n  // Put together the intermediate value to pass to __funder.\n  ORR     r2, r3, r2, LSL #3    // sign + exponent + most of mantissa\n  ORR     r0, r2, xl, LSR #29   // combine with top 3 bits of xl\n\n  // Set the rounding direction flag based on the test above.\n  MOVEQ   r1, #0                // intermediate is exact\n  MOVNE   r1, #1                // intermediate is too small (we didn't round)\n\n  // And tailcall __funder to do the rest of the job.\n  B       __funder\n\n  .size arm_fp_d2f, .-arm_fp_d2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2f.S", "line_start": 121, "line_end": 177}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:5", "text": "// zero. This will determine the rounding direction we pass to __funder,\n  // because although we never round _up_ on this path, we must still tell it\n  // whether the value we pass it was rounded down or was already exact.\n  LSLS    r12, xl, #3           // set Z if the intermediate value is exact\n\n  // Put together the intermediate value to pass to __funder.\n  ORR     r2, r3, r2, LSL #3    // sign + exponent + most of mantissa\n  ORR     r0, r2, xl, LSR #29   // combine with top 3 bits of xl\n\n  // Set the rounding direction flag based on the test above.\n  MOVEQ   r1, #0                // intermediate is exact\n  MOVNE   r1, #1                // intermediate is too small (we didn't round)\n\n  // And tailcall __funder to do the rest of the job.\n  B       __funder\n\n  .size arm_fp_d2f, .-arm_fp_d2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2f.S", "line_start": 161, "line_end": 177}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:1", "text": "// Double-precision to single-precision conversion.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_d2f\n  .type arm_fp_d2f,%function\narm_fp_d2f:\n\n  // Start with the fast path, dealing with input values that give a normalized\n  // single-precision output. We handle these as quickly as possible in\n  // straight-line code, and branch out of line to a single 'handle everything\n  // else' label which will have to figure out what kind of unusual thing has\n  // happened.\n\n  // Split ah into the sign bit (in r3) and everything else (r2), so that we\n  // can change the width of the exponent field and then put the sign back on\n  // later.\n  BIC     r2, ah, #0x80000000\n  AND     r3, ah, #0x80000000\n\n  // Rebias the exponent, still in its double-precision location, to account\n  // for the difference between double- and single-precision exponents.\n  SUB     r2, r2, #(0x3ff-0x7f) << 20\n\n  // If the exponent field is now 0 or less, we have an underflow or an exact\n  // zero. If it's 0xFF or more, we have an overflow, or a NaN or infinity as\n  // input. Detect all of those in a combined test, and branch out of line.\n  CMP     r2, #0x00100000       // LO if output too small\n  RSBSHS  r12, r2, #0x0ff00000  // otherwise, set LS if output too large\n  BLS     d2f_uncommon          // so now LS means one or the other happened\n\n  // We've disposed of all the uncommon cases, so we know we're returning a\n  // normalized float, but we might still need to round it. Shift the round bit\n  // into the C flag, also setting Z if everything below that is zero.\n  LSLS    r12, al, #4\n\n  // Put the result back together, by recombining the sign (in r3) with the\n  // exponent and top of the mantissa (in r2, needing to be shifted left 3\n  // bits), plus the top 3 bits of al. The last of those is put on with an ADC\n  // instruction, which also rounds up if the bit we just shifted into C was\n  // set.\n  ORR     r2, r3, r2, LSL #3    // sign + exponent + most of mantissa\n  ADC     r0, r2, al, LSR #29   // low 3 bits of mantissa + maybe round up\n\n  // If C=1 and Z=1, we need to round to even. Otherwise we're finished. So we\n  // conditionally return based on one of those flags, then clear the low\n  // output bit based on the other.\n  //\n  // Which way round? On the assumption that input mantissas are roughly\n  // uniformly distributed, _almost all_ input doubles will contain a 1 bit\n  // somewhere in the bottom 28 bits, so we return early in the vast majority\n  // of cases by testing Z first. If we tested C first, we'd expect to return\n  // early only half the time, costing two extra instructions half the time", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "6501935a591986237072913ee3cfed08e72951c9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6501935a591986237072913ee3cfed08e72951c9/fp/at32/d2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:3", "text": "// we do is test if the input is zero, and if so, return the same sign of\n  // zero by simply using ah as the return value.\n  ORRS    r12, al, ah, LSL #1   // are all bits of ah:al 0 except the sign bit?\n\n#ifndef __BIG_ENDIAN__\n  // In little-endian, ah (containing the desired sign bit) and r0 (the output\n  // register) aren't the same. This instruction can be skipped in big-endian,\n  // where the correct output value is already in r0.\n  MOVEQ   r0, ah\n#endif\n  BXEQ    lr\n\n  // Separate the remaining cases into three types: too small (underflow,\n  // whether or not the input was a denormal), too big (overflow or input\n  // infinity, which we treat the same in the absence of FP exceptions), and\n  // NaN.\n  //\n  // At this stage r2 contains the output exponent, rebiased to its\n  // single-precision value, but at bit 20 (that is, still in the\n  // double-precision position). Detect underflow by doing a signed comparison\n  // against the minimum normalized single-precision exponent.\n  CMP     r2, #0x00100000\n  BLT     d2f_underflow\n\n  // Now figure out whether we had a NaN as input, by shifting ah left by a bit\n  // (discarding the sign) and setting the new low bit if al != 0. This gives a\n  // value which is greater than 0xFFE00000 (in an unsigned comparison) for\n  // precisely NaN inputs.\n  CMP     al, #1                // set C if al != 0\n  ADC     r12, ah, ah           // shift that in to the bottom of ah\n  CMN     r12, #0x00200000      // is the result > 0xFFE00000?\n  BHI     d2f_nan               // if so, go and handle a NaN\n\n  // If we're still here, we have a finite overflow, or an input infinity. We\n  // don't have to figure out which: we return an infinity of the appropriate\n  // sign in both cases. So keep just the sign of ah, and make an infinity out\n  // of the rest of the bits.\n  MVN     r0, ah, LSR #31       // shift sign bit down to bit 0 and flip it\n  MVN     r0, r0, LSL #8        // flip it back, putting 8 set bits below it\n  LSL     r0, r0, #23           // and shift those 9 bits back up to the top\n  BX      lr\n\nd2f_nan:\n  // We have a double-precision NaN input. The Arm NaN handling rules say that\n  // we make the output single-precision NaN by keeping the sign and as much of\n  // the mantissa as possible (starting from the top bit). But we also set the\n  // top bit of the mantissa, which makes the output NaN quiet even if the\n  // input one was signaling.\n  //\n  // So this code looks a bit like a miniature version of the fast path: we\n  // keep the bottom 8 bits of the exponent in ah as the output exponent (we\n  // know it's all 1s, which is what we want), plus all the mantissa bits below\n  // it; shift all of that 3 bits left and recombine with the sign; then\n  // combine with the top 3 bits of al. Finally, set the top mantissa bit.\n  BIC     r2, ah, #0xF0000000   // everything from ah we want to shift left\n  ORR     r0, r3, al, LSR #29   // combine sign with low 3 output mantissa bits\n  ORR     r0, r0, r2, LSL #3    // combine that with the shifted-up value in r2\n  ORR     r0, r0, #0x00400000   // set the top mantissa bit to make it a QNaN\n  BX      lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "6501935a591986237072913ee3cfed08e72951c9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6501935a591986237072913ee3cfed08e72951c9/fp/at32/d2f.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:4", "text": "BX      lr\n\nd2f_nan:\n  // We have a double-precision NaN input. The Arm NaN handling rules say that\n  // we make the output single-precision NaN by keeping the sign and as much of\n  // the mantissa as possible (starting from the top bit). But we also set the\n  // top bit of the mantissa, which makes the output NaN quiet even if the\n  // input one was signaling.\n  //\n  // So this code looks a bit like a miniature version of the fast path: we\n  // keep the bottom 8 bits of the exponent in ah as the output exponent (we\n  // know it's all 1s, which is what we want), plus all the mantissa bits below\n  // it; shift all of that 3 bits left and recombine with the sign; then\n  // combine with the top 3 bits of al. Finally, set the top mantissa bit.\n  BIC     r2, ah, #0xF0000000   // everything from ah we want to shift left\n  ORR     r0, r3, al, LSR #29   // combine sign with low 3 output mantissa bits\n  ORR     r0, r0, r2, LSL #3    // combine that with the shifted-up value in r2\n  ORR     r0, r0, #0x00400000   // set the top mantissa bit to make it a QNaN\n  BX      lr\n\nd2f_underflow:\n  // We have an input value small enough to underflow. The basic strategy is to\n  // leave __funder to deal with the details.\n  //\n  // Normally __funder expects to get a value that's already been rounded, and\n  // will re-round it, for which it also needs to know which way the value has\n  // been rounded already. In this case we haven't rounded _yet_. Rather than\n  // carefully rounding to nearest, it's easier to just make the __funder input\n  // value by truncating the mantissa (i.e. round towards zero), and set the\n  // rounding direction accordingly.\n\n  // Rebias the exponent (again) to make an IEEE 754 underflow intermediate. If\n  // this still doesn't make r2 positive, then the result is so small that it\n  // will underflow to 0 anyway, so it doesn't really matter what exponent we\n  // do provide - we just clear the top 8 bits of r2 to ensure the sign is\n  // right and the exponent is _something_ small.\n  ADDS    r2, r2, #0x0c000000   // exponent bias (still shifted down 3 bits)\n  BICMI   r2, r2, #0xff000000   // handle exponent still being negative\n\n  // Test the bits we're going to shift off the mantissa, to see if any are\n  // zero. This will determine the rounding direction we pass to __funder,\n  // because although we never round _up_ on this path, we must still tell it\n  // whether the value we pass it was rounded down or was already exact.\n  LSLS    r12, al, #3           // set Z if the intermediate value is exact\n\n  // Put together the intermediate value to pass to __funder.\n  ORR     r2, r3, r2, LSL #3    // sign + exponent + most of mantissa\n  ORR     r0, r2, al, LSR #29   // combine with top 3 bits of al\n\n  // Set the rounding direction flag based on the test above.\n  MOVEQ   r1, #0                // intermediate is exact\n  MOVNE   r1, #1                // intermediate is too small (we didn't round)\n\n  // And tailcall __funder to do the rest of the job.\n  B       __funder\n\n  .size arm_fp_d2f, .-arm_fp_d2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "6501935a591986237072913ee3cfed08e72951c9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6501935a591986237072913ee3cfed08e72951c9/fp/at32/d2f.S", "line_start": 121, "line_end": 177}
{"id": "ARM-software/optimized-routines:fp/at32/d2f.S:5", "text": "// zero. This will determine the rounding direction we pass to __funder,\n  // because although we never round _up_ on this path, we must still tell it\n  // whether the value we pass it was rounded down or was already exact.\n  LSLS    r12, al, #3           // set Z if the intermediate value is exact\n\n  // Put together the intermediate value to pass to __funder.\n  ORR     r2, r3, r2, LSL #3    // sign + exponent + most of mantissa\n  ORR     r0, r2, al, LSR #29   // combine with top 3 bits of al\n\n  // Set the rounding direction flag based on the test above.\n  MOVEQ   r1, #0                // intermediate is exact\n  MOVNE   r1, #1                // intermediate is too small (we didn't round)\n\n  // And tailcall __funder to do the rest of the job.\n  B       __funder\n\n  .size arm_fp_d2f, .-arm_fp_d2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2f.S", "license": "MIT", "commit": "6501935a591986237072913ee3cfed08e72951c9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6501935a591986237072913ee3cfed08e72951c9/fp/at32/d2f.S", "line_start": 161, "line_end": 177}
{"id": "ARM-software/optimized-routines:fp/at32/d2iz.S:1", "text": "// Double-precision float to int32 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_d2iz\n  .type arm_fp_d2iz,%function\narm_fp_d2iz:\n\n  // The fast path: deliver an answer as quickly as possible for cases that\n  // don't overflow or involve a NaN, and branch out of line to handle\n  // everything else more slowly.\n  //\n  // The basic idea is to make a bare version of the top 32 bits of the\n  // mantissa, with its leading 1 bit explicit at the top of the word, and\n  // shift it right by an amount derived from the exponent.\n\n  // Separate out the exponent of the input.\n  LSLS    r3, xh, #1            // everything but the sign bit\n  LSRS    r3, r3, #21           // just the exponent\n\n  // Convert the exponent into a right shift count. This involves subtracting\n  // from 0x41e (which is the exponent of 2^31, so the largest that doesn't\n  // overflow). We can't do that in one instruction, so do it in two.\n  SUB     r3, r3, #0x400\n  RSBS    r3, r3, #0x1e\n\n  // That RSB instruction also set the flags, which tell us whether the shift\n  // count went below zero: we subtracted an adjusted input exponent from 0x1e,\n  // so the LE condition is met if 0x1e ≤ that adjusted exponent, i.e. if the\n  // shift count is negative or zero, i.e. if the input float has absolute\n  // value at least 2^31.\n  //\n  // Now check if the shift count exceeds 0xFF, so that the AArch32 shift\n  // semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGT  r12, r3, #0x100       // also set LE if shift count ≥ 0x100\n  BLE     d2iz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa. We do this in\n  // such a way that the initial ORRS also sets the N flag based on the sign\n  // bit in xh, so that we can use that for a conditional negation later.\n  ORRS    r2, xh, #1 << 20      // put on the leading 1 and test sign\n  LSL     r2, r2, #11           // shift mantissa part of xh up to top of word\n  ORR     r2, r2, xl, LSR #21   // the top 11 mantissa bits from xl\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process, and negate the result if the input was\n  // negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2iz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2iz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/d2iz.S:2", "text": "// semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGT  r12, r3, #0x100       // also set LE if shift count ≥ 0x100\n  BLE     d2iz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa. We do this in\n  // such a way that the initial ORRS also sets the N flag based on the sign\n  // bit in xh, so that we can use that for a conditional negation later.\n  ORRS    r2, xh, #1 << 20      // put on the leading 1 and test sign\n  LSL     r2, r2, #11           // shift mantissa part of xh up to top of word\n  ORR     r2, r2, xl, LSR #21   // the top 11 mantissa bits from xl\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process, and negate the result if the input was\n  // negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result\n  RSBMI   r0, r0, #0            // negate it if input < 0\n  BX      lr                    // and return\n\nd2iz_uncommon:\n  // We come here if the exponent field of the number is either too large or\n  // too small, so that the number is one of\n  //  - a NaN\n  //  - an infinity\n  //  - a finite number of absolute value at least 2^31\n  //  - a finite nonzero number small enough to underflow to zero (and so small\n  //    that the shift instruction in the fast path couldn't handle it)\n  //  - zero.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffff. For out-of-range negative values, we return the\n  // minimum negative signed integer 0x80000000. For everything else - NaNs,\n  // underflows and true zero inputs - we return zero.\n  //\n  // (Not _every_ out-of-range finite number is actually an invalid input. The\n  // exact value -2^31 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return 0x80000000 with\n  // no exception, while raising an Invalid Operation exception for everything\n  // else. But since we don't support exceptions, we don't have to tell the\n  // difference here: -2^31 and negative overflows both return 0x80000000, and\n  // it doesn't matter that one is the right answer and the other a best-effort\n  // error response.)\n\n  // Check for a too-large shift count (too-small exponent) first, because that\n  // includes the case of an exact zero, which is probably one of the more\n  // common inputs and should be handled fast if we can.\n  CMP     r3, #0xFF\n  MOVGT   r0, #0\n  BXGT    lr\n\n  // Now check for NaNs.\n  LSLS    r2, xh, #1              // shift exponent of x to top of word\n  CMN     r2, #1 << 21            // set HI if xh proves it's a NaN by itself\n  CMPEQ   xl, #0                  // now HI is set if it's a NaN\n  BHI     d2iz_nan", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2iz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2iz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2iz.S:3", "text": "// exceptions, we'd have to detect that one case and return 0x80000000 with\n  // no exception, while raising an Invalid Operation exception for everything\n  // else. But since we don't support exceptions, we don't have to tell the\n  // difference here: -2^31 and negative overflows both return 0x80000000, and\n  // it doesn't matter that one is the right answer and the other a best-effort\n  // error response.)\n\n  // Check for a too-large shift count (too-small exponent) first, because that\n  // includes the case of an exact zero, which is probably one of the more\n  // common inputs and should be handled fast if we can.\n  CMP     r3, #0xFF\n  MOVGT   r0, #0\n  BXGT    lr\n\n  // Now check for NaNs.\n  LSLS    r2, xh, #1              // shift exponent of x to top of word\n  CMN     r2, #1 << 21            // set HI if xh proves it's a NaN by itself\n  CMPEQ   xl, #0                  // now HI is set if it's a NaN\n  BHI     d2iz_nan\n\n  // The remaining case is a too-large exponent. Return either INT_MAX or\n  // INT_MIN depending on sign.\n  MOV     r2, #0x7FFFFFFF         // start with INT_MAX\n  EOR     r0, r2, xh, ASR #31     // flip all its bits if xh bit 31 is set\n  BX      lr\n\nd2iz_nan:\n  // Out-of-line path that returns zero for NaN inputs.\n  MOV     r0, #0\n  BX      lr\n\n  .size arm_fp_d2iz, .-arm_fp_d2iz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2iz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2iz.S", "line_start": 81, "line_end": 112}
{"id": "ARM-software/optimized-routines:fp/at32/d2iz.S:1", "text": "// Double-precision float to int32 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_d2iz\n  .type arm_fp_d2iz,%function\narm_fp_d2iz:\n\n  // The fast path: deliver an answer as quickly as possible for cases that\n  // don't overflow or involve a NaN, and branch out of line to handle\n  // everything else more slowly.\n  //\n  // The basic idea is to make a bare version of the top 32 bits of the\n  // mantissa, with its leading 1 bit explicit at the top of the word, and\n  // shift it right by an amount derived from the exponent.\n\n  // Separate out the exponent of the input.\n  LSLS    r3, ah, #1            // everything but the sign bit\n  LSRS    r3, r3, #21           // just the exponent\n\n  // Convert the exponent into a right shift count. This involves subtracting\n  // from 0x41e (which is the exponent of 2^31, so the largest that doesn't\n  // overflow). We can't do that in one instruction, so do it in two.\n  SUB     r3, r3, #0x400\n  RSBS    r3, r3, #0x1e\n\n  // That RSB instruction also set the flags, which tell us whether the shift\n  // count went below zero: we subtracted an adjusted input exponent from 0x1e,\n  // so the LE condition is met if 0x1e ≤ that adjusted exponent, i.e. if the\n  // shift count is negative or zero, i.e. if the input float has absolute\n  // value at least 2^31.\n  //\n  // Now check if the shift count exceeds 0xFF, so that the AArch32 shift\n  // semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGT  r12, r3, #0x100       // also set LE if shift count ≥ 0x100\n  BLE     d2iz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa. We do this in\n  // such a way that the initial ORRS also sets the N flag based on the sign\n  // bit in ah, so that we can use that for a conditional negation later.\n  ORRS    r2, ah, #1 << 20      // put on the leading 1 and test sign\n  LSL     r2, r2, #11           // shift mantissa part of ah up to top of word\n  ORR     r2, r2, al, LSR #21   // the top 11 mantissa bits from al\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process, and negate the result if the input was\n  // negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2iz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2iz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/d2iz.S:2", "text": "// semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGT  r12, r3, #0x100       // also set LE if shift count ≥ 0x100\n  BLE     d2iz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa. We do this in\n  // such a way that the initial ORRS also sets the N flag based on the sign\n  // bit in ah, so that we can use that for a conditional negation later.\n  ORRS    r2, ah, #1 << 20      // put on the leading 1 and test sign\n  LSL     r2, r2, #11           // shift mantissa part of ah up to top of word\n  ORR     r2, r2, al, LSR #21   // the top 11 mantissa bits from al\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process, and negate the result if the input was\n  // negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result\n  RSBMI   r0, r0, #0            // negate it if input < 0\n  BX      lr                    // and return\n\nd2iz_uncommon:\n  // We come here if the exponent field of the number is either too large or\n  // too small, so that the number is one of\n  //  - a NaN\n  //  - an infinity\n  //  - a finite number of absolute value at least 2^31\n  //  - a finite nonzero number small enough to underflow to zero (and so small\n  //    that the shift instruction in the fast path couldn't handle it)\n  //  - zero.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffff. For out-of-range negative values, we return the\n  // minimum negative signed integer 0x80000000. For everything else - NaNs,\n  // underflows and true zero inputs - we return zero.\n  //\n  // (Not _every_ out-of-range finite number is actually an invalid input. The\n  // exact value -2^31 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return 0x80000000 with\n  // no exception, while raising an Invalid Operation exception for everything\n  // else. But since we don't support exceptions, we don't have to tell the\n  // difference here: -2^31 and negative overflows both return 0x80000000, and\n  // it doesn't matter that one is the right answer and the other a best-effort\n  // error response.)\n\n  // Check for a too-large shift count (too-small exponent) first, because that\n  // includes the case of an exact zero, which is probably one of the more\n  // common inputs and should be handled fast if we can.\n  CMP     r3, #0xFF\n  MOVGT   r0, #0\n  BXGT    lr\n\n  // Now check for NaNs.\n  LSLS    r2, ah, #1              // shift exponent of a to top of word\n  CMN     r2, #1 << 21            // set HI if ah proves it's a NaN by itself\n  CMPEQ   al, #0                  // now HI is set if it's a NaN\n  BHI     d2iz_nan", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2iz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2iz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2iz.S:3", "text": "// exceptions, we'd have to detect that one case and return 0x80000000 with\n  // no exception, while raising an Invalid Operation exception for everything\n  // else. But since we don't support exceptions, we don't have to tell the\n  // difference here: -2^31 and negative overflows both return 0x80000000, and\n  // it doesn't matter that one is the right answer and the other a best-effort\n  // error response.)\n\n  // Check for a too-large shift count (too-small exponent) first, because that\n  // includes the case of an exact zero, which is probably one of the more\n  // common inputs and should be handled fast if we can.\n  CMP     r3, #0xFF\n  MOVGT   r0, #0\n  BXGT    lr\n\n  // Now check for NaNs.\n  LSLS    r2, ah, #1              // shift exponent of a to top of word\n  CMN     r2, #1 << 21            // set HI if ah proves it's a NaN by itself\n  CMPEQ   al, #0                  // now HI is set if it's a NaN\n  BHI     d2iz_nan\n\n  // The remaining case is a too-large exponent. Return either INT_MAX or\n  // INT_MIN depending on sign.\n  MOV     r2, #0x7FFFFFFF         // start with INT_MAX\n  EOR     r0, r2, ah, ASR #31     // flip all its bits if ah bit 31 is set\n  BX      lr\n\nd2iz_nan:\n  // Out-of-line path that returns zero for NaN inputs.\n  MOV     r0, #0\n  BX      lr\n\n  .size arm_fp_d2iz, .-arm_fp_d2iz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2iz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2iz.S", "line_start": 81, "line_end": 112}
{"id": "ARM-software/optimized-routines:fp/at32/d2lz.S:3", "text": "// Make the top word of the result, which is the easy part: it's a\n  // shifted-right version of the top word of the mantissa, which will be zero\n  // if the shift count is 32 or more.\n  LSRS    xh, r3, r2\n\n  // Make the bottom word of the result. If the shift count is less than 32,\n  // this will be (ml >> n) | (mh << (32-n)), where 'mh' and 'ml' denote the\n  // high and low words of the mantissa (in r3 and r12 respectively). Otherwise\n  // the whole high output word is zero, and the low mantissa word contributes\n  // nothing to the output, so we just need mh >> (n-32).\n  LSR     xl, r12, r2           // start by setting it to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   xl, xl, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   xl, xl, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   xl, r3, r2            // replace xl with mh >> (n-32)\n\n  // We're done: the result is already rounded towards zero.\n  BX      lr\n\nd2lz_neg:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3 and r12, and the exponent in the bottom 11 bits of r2 with all 1s\n  // above it (because it was shifted down via ASR and the sign bit was set).\n  // In other words, r2 = exponent - 0x800.\n\n  // Convert the exponent into a shift count, exactly as on the positive path\n  // except that the initial subtraction of 0x340 is adjusted to cancel out the\n  // offset of 0x800 in r2, so that it becomes an addition.\n  ADD     r2, r2, #0x800-0x340  // first stage: r2 is negative for underflow\n  BIC     r2, r2, r2, ASR #31   // if so, saturate by clearing all bits of r2\n  RSBS    r2, r2, #0xfe         // second step: r2 is now the right shift count\n  BLE     d2lz_invalid          // if it was negative or zero, overflow\n\n  // Shift the mantissa down to create the absolute value of the result in\n  // xh:xl, exactly as on the positive path above.\n  LSRS    xh, r3, r2            // make high word of mantissa\n  LSR     xl, r12, r2           // initially set low word to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   xl, xl, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   xl, xl, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   xl, r3, r2            // and replace xl with mh >> that\n\n  // All of that was almost exactly the same as the positive code path, but now\n  // we must negate the answer before returning it.\n  RSBS    xl, xl, #0            // negate low word, setting carry flag", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2lz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2lz.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/d2lz.S:4", "text": "// Shift the mantissa down to create the absolute value of the result in\n  // xh:xl, exactly as on the positive path above.\n  LSRS    xh, r3, r2            // make high word of mantissa\n  LSR     xl, r12, r2           // initially set low word to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   xl, xl, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   xl, xl, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   xl, r3, r2            // and replace xl with mh >> that\n\n  // All of that was almost exactly the same as the positive code path, but now\n  // we must negate the answer before returning it.\n  RSBS    xl, xl, #0            // negate low word, setting carry flag\n#if !__thumb__\n  RSC     xh, xh, #0            // negate high word\n#else\n  // Thumb has no RSC, so substitute MVN + ADC.\n  MVN     xh, xh\n  ADC     xh, xh, #0\n#endif\n\n  // We're done.\n  BX      lr\n\nd2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n\n  // Check for NaNs and branch out of line.\n  CMP     xl, #1                  // set C if any bit of xl is nonzero\n  ADC     r2, xh, xh              // shift that bit into xh, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2lz_nan\n\n  // The remaining case is a too-large exponent. Return either INT_MAX or\n  // INT_MIN depending on sign, using the fact that (xh ASR 31) is 0 for a\n  // positive input or 0xFFFFFFFF for a negative input, so it's exactly the\n  // bitwise inverse of the correct low word of the output.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2lz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2lz.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/d2lz.S:5", "text": "//\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n\n  // Check for NaNs and branch out of line.\n  CMP     xl, #1                  // set C if any bit of xl is nonzero\n  ADC     r2, xh, xh              // shift that bit into xh, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2lz_nan\n\n  // The remaining case is a too-large exponent. Return either INT_MAX or\n  // INT_MIN depending on sign, using the fact that (xh ASR 31) is 0 for a\n  // positive input or 0xFFFFFFFF for a negative input, so it's exactly the\n  // bitwise inverse of the correct low word of the output.\n  MVN     xl, xh, ASR #31         // make the low word of the output\n  EOR     xh, xl, #0x80000000     // make the high word by flipping sign bit\n  BX      lr\n\nd2lz_nan:\n  // Return zero, for use when the input was a NaN.\n  MOVS    xh, #0\n  MOVS    xl, #0\n  BX      lr\n\n  .size arm_fp_d2lz, .-arm_fp_d2lz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2lz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2lz.S", "line_start": 161, "line_end": 191}
{"id": "ARM-software/optimized-routines:fp/at32/d2lz.S:3", "text": "// Make the top word of the result, which is the easy part: it's a\n  // shifted-right version of the top word of the mantissa, which will be zero\n  // if the shift count is 32 or more.\n  LSRS    ah, r3, r2\n\n  // Make the bottom word of the result. If the shift count is less than 32,\n  // this will be (ml >> n) | (mh << (32-n)), where 'mh' and 'ml' denote the\n  // high and low words of the mantissa (in r3 and r12 respectively). Otherwise\n  // the whole high output word is zero, and the low mantissa word contributes\n  // nothing to the output, so we just need mh >> (n-32).\n  LSR     al, r12, r2           // start by setting it to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   al, al, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   al, al, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   al, r3, r2            // replace al with mh >> (n-32)\n\n  // We're done: the result is already rounded towards zero.\n  BX      lr\n\nd2lz_neg:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3 and r12, and the exponent in the bottom 11 bits of r2 with all 1s\n  // above it (because it was shifted down via ASR and the sign bit was set).\n  // In other words, r2 = exponent - 0x800.\n\n  // Convert the exponent into a shift count, exactly as on the positive path\n  // except that the initial subtraction of 0x340 is adjusted to cancel out the\n  // offset of 0x800 in r2, so that it becomes an addition.\n  ADD     r2, r2, #0x800-0x340  // first stage: r2 is negative for underflow\n  BIC     r2, r2, r2, ASR #31   // if so, saturate by clearing all bits of r2\n  RSBS    r2, r2, #0xfe         // second step: r2 is now the right shift count\n  BLE     d2lz_invalid          // if it was negative or zero, overflow\n\n  // Shift the mantissa down to create the absolute value of the result in\n  // ah:al, exactly as on the positive path above.\n  LSRS    ah, r3, r2            // make high word of mantissa\n  LSR     al, r12, r2           // initially set low word to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   al, al, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   al, al, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   al, r3, r2            // and replace al with mh >> that\n\n  // All of that was almost exactly the same as the positive code path, but now\n  // we must negate the answer before returning it.\n  RSBS    al, al, #0            // negate low word, setting carry flag", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2lz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2lz.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/d2lz.S:4", "text": "// Shift the mantissa down to create the absolute value of the result in\n  // ah:al, exactly as on the positive path above.\n  LSRS    ah, r3, r2            // make high word of mantissa\n  LSR     al, r12, r2           // initially set low word to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   al, al, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   al, al, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   al, r3, r2            // and replace al with mh >> that\n\n  // All of that was almost exactly the same as the positive code path, but now\n  // we must negate the answer before returning it.\n  RSBS    al, al, #0            // negate low word, setting carry flag\n#if !__thumb__\n  RSC     ah, ah, #0            // negate high word\n#else\n  // Thumb has no RSC, so substitute MVN + ADC.\n  MVN     ah, ah\n  ADC     ah, ah, #0\n#endif\n\n  // We're done.\n  BX      lr\n\nd2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n\n  // Check for NaNs and branch out of line.\n  CMP     al, #1                  // set C if any bit of al is nonzero\n  ADC     r2, ah, ah              // shift that bit into ah, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2lz_nan\n\n  // The remaining case is a too-large exponent. Return either INT_MAX or\n  // INT_MIN depending on sign, using the fact that (ah ASR 31) is 0 for a\n  // positive input or 0xFFFFFFFF for a negative input, so it's exactly the\n  // bitwise inverse of the correct low word of the output.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2lz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2lz.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/d2lz.S:5", "text": "//\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n\n  // Check for NaNs and branch out of line.\n  CMP     al, #1                  // set C if any bit of al is nonzero\n  ADC     r2, ah, ah              // shift that bit into ah, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2lz_nan\n\n  // The remaining case is a too-large exponent. Return either INT_MAX or\n  // INT_MIN depending on sign, using the fact that (ah ASR 31) is 0 for a\n  // positive input or 0xFFFFFFFF for a negative input, so it's exactly the\n  // bitwise inverse of the correct low word of the output.\n  MVN     al, ah, ASR #31         // make the low word of the output\n  EOR     ah, al, #0x80000000     // make the high word by flipping sign bit\n  BX      lr\n\nd2lz_nan:\n  // Return zero, for use when the input was a NaN.\n  MOVS    ah, #0\n  MOVS    al, #0\n  BX      lr\n\n  .size arm_fp_d2lz, .-arm_fp_d2lz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2lz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2lz.S", "line_start": 161, "line_end": 191}
{"id": "ARM-software/optimized-routines:fp/at32/d2uiz.S:1", "text": "// Double-precision float to uint32 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_d2uiz\n  .type arm_fp_d2uiz,%function\narm_fp_d2uiz:\n\n  // The fast path: deliver an answer as quickly as possible for positive\n  // inputs that don't overflow, and branch out of line to handle everything\n  // else (negative numbers, overflows and NaNs) more slowly.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  LSRS    r3, xh, #20           // exponent, or >=0x800 if input is negative\n\n  // Convert the exponent into a right shift count. This involves subtracting\n  // from 0x41e (which is the exponent of 2^31, so the largest that doesn't\n  // overflow). We can't do that in one instruction, so do it in two.\n  SUB     r3, r3, #0x400\n  RSBS    r3, r3, #0x1e\n\n  // That RSB instruction also set the flags, which tell us whether the shift\n  // count went below zero: we subtracted an adjusted input exponent from 0x1e,\n  // so the LT condition is met if 0x1e < that adjusted exponent, i.e. if the\n  // shift count is negative, i.e. if the input float has absolute value at\n  // least 2^32.\n  //\n  // We didn't bother removing the sign bit when we shifted right to get the\n  // exponent. So negative numbers will be treated the same as overlarge\n  // positive numbers and NaNs, i.e. will branch out of line, and we can sort\n  // out which is which later.\n  //\n  // Now check if the shift count exceeds 0xFF, so that the AArch32 shift\n  // semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGE  r12, r3, #0xFF        // also set LT if shift count > 0xFF\n  BLT     d2uiz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa.\n  ORR     r2, xh, #1 << 20      // put on the leading 1\n  LSLS    r2, r2, #11           // shift mantissa part of xh up to top of word\n  ORR     r2, r2, xl, LSR #21   // the top 11 mantissa bits from xl\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSRS    r0, r2, r3            // construct the rounded-down result", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2uiz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2uiz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/d2uiz.S:2", "text": "// out which is which later.\n  //\n  // Now check if the shift count exceeds 0xFF, so that the AArch32 shift\n  // semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGE  r12, r3, #0xFF        // also set LT if shift count > 0xFF\n  BLT     d2uiz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa.\n  ORR     r2, xh, #1 << 20      // put on the leading 1\n  LSLS    r2, r2, #11           // shift mantissa part of xh up to top of word\n  ORR     r2, r2, xl, LSR #21   // the top 11 mantissa bits from xl\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSRS    r0, r2, r3            // construct the rounded-down result\n  BX      lr                    // and return\n\nd2uiz_uncommon:\n  // We come here if the exponent field of the number is either too large or\n  // too small, or if the sign bit is set, so that the number is one of\n  //  - a NaN\n  //  - an infinity\n  //  - a positive finite number of absolute value at least 2^31\n  //  - a positive finite nonzero number small enough to underflow to zero (and\n  //    so small that the shift instruction in the fast path couldn't handle\n  //    it)\n  //  - zero\n  //  - any negative number at all.\n\n  // Check for a too-large shift count (too-small exponent) first, because that\n  // includes the case of an exact zero, which is probably one of the more\n  // common inputs and should be handled fast if we can.\n  CMP     r3, #0xFF\n  MOVGT   r0, #0\n  BXGT    lr\n\n  // Next test the sign bit. Branch out of line for positive values, again on\n  // the theory that reasonably sensible negative values (like -0.5) are more\n  // likely than any of the remaining positive cases.\n  TST     xh, xh\n  BPL     d2uiz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nd2uiz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\nd2uiz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2uiz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2uiz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2uiz.S:3", "text": "// Next test the sign bit. Branch out of line for positive values, again on\n  // the theory that reasonably sensible negative values (like -0.5) are more\n  // likely than any of the remaining positive cases.\n  TST     xh, xh\n  BPL     d2uiz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nd2uiz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\nd2uiz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  LSLS    r2, xh, #1              // shift exponent of x to top of word\n  CMN     r2, #1 << 21            // set HI if xh proves it's a NaN by itself\n  CMPEQ   xl, #0                  // now HI is set if it's a NaN\n  BHI     d2uiz_return_zero\n  MOV     r0, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_d2uiz, .-arm_fp_d2uiz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2uiz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2uiz.S", "line_start": 81, "line_end": 109}
{"id": "ARM-software/optimized-routines:fp/at32/d2uiz.S:1", "text": "// Double-precision float to uint32 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_d2uiz\n  .type arm_fp_d2uiz,%function\narm_fp_d2uiz:\n\n  // The fast path: deliver an answer as quickly as possible for positive\n  // inputs that don't overflow, and branch out of line to handle everything\n  // else (negative numbers, overflows and NaNs) more slowly.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  LSRS    r3, ah, #20           // exponent, or >=0x800 if input is negative\n\n  // Convert the exponent into a right shift count. This involves subtracting\n  // from 0x41e (which is the exponent of 2^31, so the largest that doesn't\n  // overflow). We can't do that in one instruction, so do it in two.\n  SUB     r3, r3, #0x400\n  RSBS    r3, r3, #0x1e\n\n  // That RSB instruction also set the flags, which tell us whether the shift\n  // count went below zero: we subtracted an adjusted input exponent from 0x1e,\n  // so the LT condition is met if 0x1e < that adjusted exponent, i.e. if the\n  // shift count is negative, i.e. if the input float has absolute value at\n  // least 2^32.\n  //\n  // We didn't bother removing the sign bit when we shifted right to get the\n  // exponent. So negative numbers will be treated the same as overlarge\n  // positive numbers and NaNs, i.e. will branch out of line, and we can sort\n  // out which is which later.\n  //\n  // Now check if the shift count exceeds 0xFF, so that the AArch32 shift\n  // semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGE  r12, r3, #0xFF        // also set LT if shift count > 0xFF\n  BLT     d2uiz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa.\n  ORR     r2, ah, #1 << 20      // put on the leading 1\n  LSLS    r2, r2, #11           // shift mantissa part of ah up to top of word\n  ORR     r2, r2, al, LSR #21   // the top 11 mantissa bits from al\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSRS    r0, r2, r3            // construct the rounded-down result", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2uiz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2uiz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/d2uiz.S:2", "text": "// out which is which later.\n  //\n  // Now check if the shift count exceeds 0xFF, so that the AArch32 shift\n  // semantics would reduce it mod 0x100. We can do that in a way that also\n  // sets the GT condition, saving an instruction on the fast path at the cost\n  // of having to re-test which condition happened once we branch out of line.\n  RSBSGE  r12, r3, #0xFF        // also set LT if shift count > 0xFF\n  BLT     d2uiz_uncommon\n\n  // Construct a word containing the top 32 bits of the mantissa.\n  ORR     r2, ah, #1 << 20      // put on the leading 1\n  LSLS    r2, r2, #11           // shift mantissa part of ah up to top of word\n  ORR     r2, r2, al, LSR #21   // the top 11 mantissa bits from al\n\n  // Now shift the mantissa down to its output position, moving it into the\n  // output register r0 in the process.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSRS    r0, r2, r3            // construct the rounded-down result\n  BX      lr                    // and return\n\nd2uiz_uncommon:\n  // We come here if the exponent field of the number is either too large or\n  // too small, or if the sign bit is set, so that the number is one of\n  //  - a NaN\n  //  - an infinity\n  //  - a positive finite number of absolute value at least 2^31\n  //  - a positive finite nonzero number small enough to underflow to zero (and\n  //    so small that the shift instruction in the fast path couldn't handle\n  //    it)\n  //  - zero\n  //  - any negative number at all.\n\n  // Check for a too-large shift count (too-small exponent) first, because that\n  // includes the case of an exact zero, which is probably one of the more\n  // common inputs and should be handled fast if we can.\n  CMP     r3, #0xFF\n  MOVGT   r0, #0\n  BXGT    lr\n\n  // Next test the sign bit. Branch out of line for positive values, again on\n  // the theory that reasonably sensible negative values (like -0.5) are more\n  // likely than any of the remaining positive cases.\n  TST     ah, ah\n  BPL     d2uiz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nd2uiz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\nd2uiz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2uiz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2uiz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2uiz.S:3", "text": "// Next test the sign bit. Branch out of line for positive values, again on\n  // the theory that reasonably sensible negative values (like -0.5) are more\n  // likely than any of the remaining positive cases.\n  TST     ah, ah\n  BPL     d2uiz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nd2uiz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\nd2uiz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  LSLS    r2, ah, #1              // shift exponent of a to top of word\n  CMN     r2, #1 << 21            // set HI if ah proves it's a NaN by itself\n  CMPEQ   al, #0                  // now HI is set if it's a NaN\n  BHI     d2uiz_return_zero\n  MOV     r0, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_d2uiz, .-arm_fp_d2uiz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2uiz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2uiz.S", "line_start": 81, "line_end": 109}
{"id": "ARM-software/optimized-routines:fp/at32/d2ulz.S:2", "text": "ORR     r3, r3, xl, LSR #21   // combine with bits from bottom word\n  ORR     r3, r3, #1<<31        // set the leading bit\n  LSL     r12, xl, #11          // shift bottom word left\n\n  // Convert the mantissa into a right shift count, indicating how many bits we\n  // want to shift the 64-bit mantissa in r3:r12 right by.\n  //\n  // If that's negative, that means the input is too big, or the exponent is\n  // 0x7FF (so we might have a NaN), or the value in r2 was 0x800 or more\n  // because the input was negative, so branch out of line again.\n  //\n  // Another possibility is that if the number is very small, the right shift\n  // count might not fit in a byte, in which case the AArch32 shift semantics\n  // might do the wrong thing, since they only look at the low byte.\n  //\n  // To spot this efficiently, we do the conversion in two steps, arranged so\n  // that the first step detects massive underflow and the second detects\n  // overflow. We needed two steps anyway, because we need to subtract the\n  // input exponent from 0x43e (the exponent of input numbers between 2^63 and\n  // 2^64), and that value doesn't fit in an immediate field. So the first step\n  // subtracts 0x340, which makes r2 become negative if the exponent is very\n  // small; then the second step subtracts from 0xfe, giving 0xfe-(exp-0x340))\n  // = 0x43e-exp.\n  //\n  // The input is tiny if r2 is negative after the first subtraction. In that\n  // situation we set r2 to 0 before the second step, treating all exponents\n  // smaller than 0x340 as if they had been 0x340. We do this by ASR+BIC, which\n  // avoids needing an IT instruction in Thumb.\n  SUB     r2, r2, #0x340        // first stage: r2 is negative for underflow\n  BIC     r2, r2, r2, ASR #31   // if so, saturate by clearing all bits of r2\n  RSBS    r2, r2, #0xfe         // second step: r2 is now the right shift count\n  BLT     d2ulz_uncommon        // if it was negative, overflow\n\n  // Make the top word of the result, which is the easy part: it's a\n  // shifted-right version of the top word of the mantissa, which will be zero\n  // if the shift count is 32 or more.\n  LSRS    xh, r3, r2\n\n  // Make the bottom word of the result. If the shift count is less than 32,\n  // this will be (ml >> n) | (mh << (32-n)), where 'mh' and 'ml' denote the\n  // high and low words of the mantissa (in r3 and r12 respectively). Otherwise\n  // the whole high output word is zero, and the low mantissa word contributes\n  // nothing to the output, so we just need mh >> (n-32).\n  LSR     xl, r12, r2           // start by setting it to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   xl, xl, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   xl, xl, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   xl, r3, r2            // replace xl with mh >> (n-32)\n\n  // We're done: the result is already rounded towards zero.\n  BX      lr\n\nd2ulz_uncommon:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2ulz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2ulz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2ulz.S:3", "text": "// high and low words of the mantissa (in r3 and r12 respectively). Otherwise\n  // the whole high output word is zero, and the low mantissa word contributes\n  // nothing to the output, so we just need mh >> (n-32).\n  LSR     xl, r12, r2           // start by setting it to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   xl, xl, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   xl, xl, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   xl, r3, r2            // replace xl with mh >> (n-32)\n\n  // We're done: the result is already rounded towards zero.\n  BX      lr\n\nd2ulz_uncommon:\n  // We come here if the exponent field of the number is either too large or\n  // too small, or if the sign bit is set, so that the number is one of\n  //  - a NaN\n  //  - an infinity\n  //  - a positive finite number of absolute value at least 2^31\n  //  - any negative number at all.\n\n  // Test the sign bit first, and branch out of line for positive values, on\n  // the theory that reasonably sensible negative values (like -0.5) are more\n  // likely than the overflow, infinity or NaN cases, and want to be handled as\n  // quickly as possible.\n  TST     xh, xh\n  BPL     d2ulz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nd2ulz_return_zero:\n  MOVS    xh, #0\n  MOVS    xl, #0\n  BX      lr\n\nd2ulz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  CMP     xl, #1                  // set C if any bit of xl is nonzero\n  ADC     r2, xh, xh              // shift that bit into xh, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2ulz_return_zero       // so we go back to the case above\n\n  MOV     xh, #0xFFFFFFFF\n  MOV     xl, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_d2ulz, .-arm_fp_d2ulz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2ulz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2ulz.S", "line_start": 81, "line_end": 139}
{"id": "ARM-software/optimized-routines:fp/at32/d2ulz.S:4", "text": "// would raise the IEEE Invalid Operation exception.\nd2ulz_return_zero:\n  MOVS    xh, #0\n  MOVS    xl, #0\n  BX      lr\n\nd2ulz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  CMP     xl, #1                  // set C if any bit of xl is nonzero\n  ADC     r2, xh, xh              // shift that bit into xh, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2ulz_return_zero       // so we go back to the case above\n\n  MOV     xh, #0xFFFFFFFF\n  MOV     xl, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_d2ulz, .-arm_fp_d2ulz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2ulz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/d2ulz.S", "line_start": 121, "line_end": 139}
{"id": "ARM-software/optimized-routines:fp/at32/d2ulz.S:2", "text": "ORR     r3, r3, al, LSR #21   // combine with bits from bottom word\n  ORR     r3, r3, #1<<31        // set the leading bit\n  LSL     r12, al, #11          // shift bottom word left\n\n  // Convert the mantissa into a right shift count, indicating how many bits we\n  // want to shift the 64-bit mantissa in r3:r12 right by.\n  //\n  // If that's negative, that means the input is too big, or the exponent is\n  // 0x7FF (so we might have a NaN), or the value in r2 was 0x800 or more\n  // because the input was negative, so branch out of line again.\n  //\n  // Another possibility is that if the number is very small, the right shift\n  // count might not fit in a byte, in which case the AArch32 shift semantics\n  // might do the wrong thing, since they only look at the low byte.\n  //\n  // To spot this efficiently, we do the conversion in two steps, arranged so\n  // that the first step detects massive underflow and the second detects\n  // overflow. We needed two steps anyway, because we need to subtract the\n  // input exponent from 0x43e (the exponent of input numbers between 2^63 and\n  // 2^64), and that value doesn't fit in an immediate field. So the first step\n  // subtracts 0x340, which makes r2 become negative if the exponent is very\n  // small; then the second step subtracts from 0xfe, giving 0xfe-(exp-0x340))\n  // = 0x43e-exp.\n  //\n  // The input is tiny if r2 is negative after the first subtraction. In that\n  // situation we set r2 to 0 before the second step, treating all exponents\n  // smaller than 0x340 as if they had been 0x340. We do this by ASR+BIC, which\n  // avoids needing an IT instruction in Thumb.\n  SUB     r2, r2, #0x340        // first stage: r2 is negative for underflow\n  BIC     r2, r2, r2, ASR #31   // if so, saturate by clearing all bits of r2\n  RSBS    r2, r2, #0xfe         // second step: r2 is now the right shift count\n  BLT     d2ulz_uncommon        // if it was negative, overflow\n\n  // Make the top word of the result, which is the easy part: it's a\n  // shifted-right version of the top word of the mantissa, which will be zero\n  // if the shift count is 32 or more.\n  LSRS    ah, r3, r2\n\n  // Make the bottom word of the result. If the shift count is less than 32,\n  // this will be (ml >> n) | (mh << (32-n)), where 'mh' and 'ml' denote the\n  // high and low words of the mantissa (in r3 and r12 respectively). Otherwise\n  // the whole high output word is zero, and the low mantissa word contributes\n  // nothing to the output, so we just need mh >> (n-32).\n  LSR     al, r12, r2           // start by setting it to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   al, al, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   al, al, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   al, r3, r2            // replace al with mh >> (n-32)\n\n  // We're done: the result is already rounded towards zero.\n  BX      lr\n\nd2ulz_uncommon:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2ulz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2ulz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/d2ulz.S:3", "text": "// high and low words of the mantissa (in r3 and r12 respectively). Otherwise\n  // the whole high output word is zero, and the low mantissa word contributes\n  // nothing to the output, so we just need mh >> (n-32).\n  LSR     al, r12, r2           // start by setting it to ml >> n\n  RSBS    r2, r2, #32           // compute 32-n, and find which case we're in\n#if !__thumb__\n  ORRHI   al, al, r3, LSL r2    // shift count < 32, so OR in ml << (32-n)\n#else\n  // In Thumb we must separate the register-controlled shift and the OR into\n  // two instructions.\n  LSLHI   r3, r3, r2\n  ORRHI   al, al, r3\n#endif\n  RSBLS   r2, r2, #0            // shift count > 32, so compute n-32\n  LSRLS   al, r3, r2            // replace al with mh >> (n-32)\n\n  // We're done: the result is already rounded towards zero.\n  BX      lr\n\nd2ulz_uncommon:\n  // We come here if the exponent field of the number is either too large or\n  // too small, or if the sign bit is set, so that the number is one of\n  //  - a NaN\n  //  - an infinity\n  //  - a positive finite number of absolute value at least 2^31\n  //  - any negative number at all.\n\n  // Test the sign bit first, and branch out of line for positive values, on\n  // the theory that reasonably sensible negative values (like -0.5) are more\n  // likely than the overflow, infinity or NaN cases, and want to be handled as\n  // quickly as possible.\n  TST     ah, ah\n  BPL     d2ulz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nd2ulz_return_zero:\n  MOVS    ah, #0\n  MOVS    al, #0\n  BX      lr\n\nd2ulz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  CMP     al, #1                  // set C if any bit of al is nonzero\n  ADC     r2, ah, ah              // shift that bit into ah, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2ulz_return_zero       // so we go back to the case above\n\n  MOV     ah, #0xFFFFFFFF\n  MOV     al, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_d2ulz, .-arm_fp_d2ulz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2ulz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2ulz.S", "line_start": 81, "line_end": 139}
{"id": "ARM-software/optimized-routines:fp/at32/d2ulz.S:4", "text": "// would raise the IEEE Invalid Operation exception.\nd2ulz_return_zero:\n  MOVS    ah, #0\n  MOVS    al, #0\n  BX      lr\n\nd2ulz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  CMP     al, #1                  // set C if any bit of al is nonzero\n  ADC     r2, ah, ah              // shift that bit into ah, discarding sign\n  CMN     r2, #1 << 21            // then greater than 0xFFE00000 means NaN\n  BHI     d2ulz_return_zero       // so we go back to the case above\n\n  MOV     ah, #0xFFFFFFFF\n  MOV     al, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_d2ulz, .-arm_fp_d2ulz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/d2ulz.S", "license": "MIT", "commit": "1590e2c45479900cab4450d7b7e543072a0f1e12", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1590e2c45479900cab4450d7b7e543072a0f1e12/fp/at32/d2ulz.S", "line_start": 121, "line_end": 139}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_eq.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x == y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVEQ r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #0\n.endm\n\n  .globl arm_fp_dcmp_bool_eq\n  .type arm_fp_dcmp_bool_eq,%function\narm_fp_dcmp_bool_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_eq, .-arm_fp_dcmp_bool_eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_bool_eq.S", "line_start": 1, "line_end": 34}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_eq.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a == b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVEQ r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #0\n.endm\n\n  .globl arm_fp_dcmp_bool_eq\n  .type arm_fp_dcmp_bool_eq,%function\narm_fp_dcmp_bool_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_eq, .-arm_fp_dcmp_bool_eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_eq.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_bool_eq.S", "line_start": 1, "line_end": 34}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_ge.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x >= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHS r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #0\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_ge\n  .type arm_fp_dcmp_bool_ge,%function\narm_fp_dcmp_bool_ge:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_ge, .-arm_fp_dcmp_bool_ge", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_ge.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_bool_ge.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_ge.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a >= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHS r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #0\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_ge\n  .type arm_fp_dcmp_bool_ge,%function\narm_fp_dcmp_bool_ge:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_ge, .-arm_fp_dcmp_bool_ge", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_ge.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_bool_ge.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_gt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x > y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #0\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_gt\n  .type arm_fp_dcmp_bool_gt,%function\narm_fp_dcmp_bool_gt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_gt, .-arm_fp_dcmp_bool_gt", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_gt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_bool_gt.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_gt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a > b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #0\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_dcmp_bool_gt\n  .type arm_fp_dcmp_bool_gt,%function\narm_fp_dcmp_bool_gt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_gt, .-arm_fp_dcmp_bool_gt", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_gt.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_bool_gt.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_le.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x <= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLS r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #1\n  MOVHI r0, #0\n.endm\n\n  .globl arm_fp_dcmp_bool_le\n  .type arm_fp_dcmp_bool_le,%function\narm_fp_dcmp_bool_le:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_le, .-arm_fp_dcmp_bool_le", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_le.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_bool_le.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_le.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a <= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLS r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #1\n  MOVHI r0, #0\n.endm\n\n  .globl arm_fp_dcmp_bool_le\n  .type arm_fp_dcmp_bool_le,%function\narm_fp_dcmp_bool_le:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_le, .-arm_fp_dcmp_bool_le", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_le.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_bool_le.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_lt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x < y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLO r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #1\n  MOVHI r0, #0\n.endm\n\n  .globl arm_fp_dcmp_bool_lt\n  .type arm_fp_dcmp_bool_lt,%function\narm_fp_dcmp_bool_lt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_lt, .-arm_fp_dcmp_bool_lt", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_lt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_bool_lt.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_lt.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a < b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLO r0, #1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #1\n  MOVHI r0, #0\n.endm\n\n  .globl arm_fp_dcmp_bool_lt\n  .type arm_fp_dcmp_bool_lt,%function\narm_fp_dcmp_bool_lt:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_bool_lt, .-arm_fp_dcmp_bool_lt", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_lt.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_bool_lt.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_un.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if x and y are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\n  .globl arm_fp_dcmp_bool_un\n  .type arm_fp_dcmp_bool_un,%function\narm_fp_dcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in dcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  //\n  // We do this by shifting the high word of each input left to get rid of the\n  // sign bit, shifting a bit in at the bottom which is 1 if any bit is set in\n  // the low word. Then we check if the result is _greater_ than 0xFFE00000\n  // (but not equal), via adding 0x00200000 to it and testing for the HI\n  // condition (carry flag set, but Z clear).\n  //\n  // Once we've done that transformation to the first input xh:xl, we\n  // free up xl to contain our constant 0x00200000, so there's no need\n  // to push any registers.\n  CMP     xl, #1                // set C if xl is nonzero\n  ADC     xh, xh, xh            // shift xh left, bringing in the C bit\n  CMP     yl, #1                // set C if yl is nonzero\n  ADC     yh, yh, yh            // shift yh left, bringing in the C bit\n  CMN     xh, #1 << 21          // if HI, then x is a NaN\n  CMNLS   yh, #1 << 21          // if not HI, then do the same check for y\n\n  // If LS, then we have no NaNs and return false. We do this as quickly as we\n  // can (not stopping to take two instructions setting up r0 for both\n  // possibilities), on the assumption that NaNs are rare and we want to\n  // optimize for the non-NaN path.\n  MOVLS   r0, #0\n  BXLS    lr\n\n  // Otherwise, we have at least one NaN, and return true.\n  MOV     r0, #1\n  BX      lr\n\n  .size arm_fp_dcmp_bool_un, .-arm_fp_dcmp_bool_un", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_un.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_bool_un.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_bool_un.S:1", "text": "// Double-precision comparison, returning a boolean in r0, true if a and b are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\n  .globl arm_fp_dcmp_bool_un\n  .type arm_fp_dcmp_bool_un,%function\narm_fp_dcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in dcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  //\n  // We do this by shifting the high word of each input left to get rid of the\n  // sign bit, shifting a bit in at the bottom which is 1 if any bit is set in\n  // the low word. Then we check if the result is _greater_ than 0xFFE00000\n  // (but not equal), via adding 0x00200000 to it and testing for the HI\n  // condition (carry flag set, but Z clear).\n  //\n  // Once we've done that transformation to the first input ah:al, we\n  // free up al to contain our constant 0x00200000, so there's no need\n  // to push any registers.\n  CMP     al, #1                // set C if al is nonzero\n  ADC     ah, ah, ah            // shift ah left, bringing in the C bit\n  CMP     bl, #1                // set C if bl is nonzero\n  ADC     bh, bh, bh            // shift bh left, bringing in the C bit\n  CMN     ah, #1 << 21          // if HI, then a is a NaN\n  CMNLS   bh, #1 << 21          // if not HI, then do the same check for b\n\n  // If LS, then we have no NaNs and return false. We do this as quickly as we\n  // can (not stopping to take two instructions setting up r0 for both\n  // possibilities), on the assumption that NaNs are rare and we want to\n  // optimize for the non-NaN path.\n  MOVLS   r0, #0\n  BXLS    lr\n\n  // Otherwise, we have at least one NaN, and return true.\n  MOV     r0, #1\n  BX      lr\n\n  .size arm_fp_dcmp_bool_un, .-arm_fp_dcmp_bool_un", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_bool_un.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_bool_un.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_flags.S:1", "text": "// Double-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n.endm\n.macro SetReturnRegisterNE\n.endm\n\n  .globl arm_fp_dcmp_flags\n  .type arm_fp_dcmp_flags,%function\narm_fp_dcmp_flags:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_flags, .-arm_fp_dcmp_flags", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_flags.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_flags.S", "line_start": 1, "line_end": 34}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_flags.S:1", "text": "// Double-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n.endm\n.macro SetReturnRegisterNE\n.endm\n\n  .globl arm_fp_dcmp_flags\n  .type arm_fp_dcmp_flags,%function\narm_fp_dcmp_flags:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_flags, .-arm_fp_dcmp_flags", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_flags.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_flags.S", "line_start": 1, "line_end": 34}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_flags_eq.S:1", "text": "// Double-precision comparison, returning EQ / NE in the flags.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n.endm\n.macro SetReturnRegisterNE\n.endm\n\n  .globl arm_fp_dcmp_flags_eq\n  .type arm_fp_dcmp_flags_eq,%function\narm_fp_dcmp_flags_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #1   // the value in r0 is unimportant; this just sets Z=0\n  BX lr\n\n  .size arm_fp_dcmp_flags_eq, .-arm_fp_dcmp_flags_eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_flags_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_flags_eq.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_flags_eq.S:1", "text": "// Double-precision comparison, returning EQ / NE in the flags.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req ah\nop0l .req al\nop1h .req bh\nop1l .req bl\n.macro SetReturnRegister\n.endm\n.macro SetReturnRegisterNE\n.endm\n\n  .globl arm_fp_dcmp_flags_eq\n  .type arm_fp_dcmp_flags_eq,%function\narm_fp_dcmp_flags_eq:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOVS r0, #1   // the value in r0 is unimportant; this just sets Z=0\n  BX lr\n\n  .size arm_fp_dcmp_flags_eq, .-arm_fp_dcmp_flags_eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_flags_eq.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_flags_eq.S", "line_start": 1, "line_end": 31}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_flags_rev.S:1", "text": "// Double-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req yh\nop0l .req yl\nop1h .req xh\nop1l .req xl\n.macro SetReturnRegister\n.endm\n.macro SetReturnRegisterNE\n.endm\n\n  .globl arm_fp_dcmp_flags_rev\n  .type arm_fp_dcmp_flags_rev,%function\narm_fp_dcmp_flags_rev:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_flags_rev, .-arm_fp_dcmp_flags_rev", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_flags_rev.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_flags_rev.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_flags_rev.S:1", "text": "// Double-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req bh\nop0l .req bl\nop1h .req ah\nop1l .req al\n.macro SetReturnRegister\n.endm\n.macro SetReturnRegisterNE\n.endm\n\n  .globl arm_fp_dcmp_flags_rev\n  .type arm_fp_dcmp_flags_rev,%function\narm_fp_dcmp_flags_rev:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_dcmp_flags_rev, .-arm_fp_dcmp_flags_rev", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_flags_rev.S", "license": "MIT", "commit": "072ac4518e2928d8a92abc527e27df9f4184de94", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/072ac4518e2928d8a92abc527e27df9f4184de94/fp/at32/dcmp_flags_rev.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_gnu_cmp.S:1", "text": "// Double-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpdf2: it's a three-way compare\n// which returns <0 if x<y, 0 if x==y, and >0 if x>y. If the result is\n// unordered (i.e. x or y or both is NaN) then it returns >0.\n//\n// This also makes it suitable for use as all of __eqdf2, __nedf2, __ltdf2 or\n// __ledf2.\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n  MOVLO r0, #-1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #-1\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_dcmp_gnu_cmp\n  .type arm_fp_dcmp_gnu_cmp,%function\narm_fp_dcmp_gnu_cmp:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  MOV r0, #+1\n  BX lr\n\n  .size arm_fp_dcmp_gnu_cmp, .-arm_fp_dcmp_gnu_cmp", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_gnu_cmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_gnu_cmp.S", "line_start": 1, "line_end": 42}
{"id": "ARM-software/optimized-routines:fp/at32/dcmp_gnu_rcmp.S:1", "text": "// Double-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpdf2, except for its NaN\n// handling. It's a three-way compare which returns <0 if x<y, 0 if x==y, and\n// >0 if x>y. If the result is unordered (i.e. x or y or both is NaN) then it\n// returns <0, where __cmpdf2 would return >0.\n//\n// This also makes it suitable for use as __gtdf2 or __gedf2 (or __eqdf2 or\n// __nedf2.\n\n  .syntax unified\n  .text\n  .p2align 2\n\n#include \"endian.h\"\n\nop0h .req xh\nop0l .req xl\nop1h .req yh\nop1l .req yl\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n  MOVLO r0, #-1\n.endm\n.macro SetReturnRegisterNE\n  MOVNE r0, #-1\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_dcmp_gnu_rcmp\n  .type arm_fp_dcmp_gnu_rcmp,%function\narm_fp_dcmp_gnu_rcmp:\n  #include \"dcmp.h\"\n\ndcmp_NaN:\n  MOV r0, #-1\n  BX lr\n\n  .size arm_fp_dcmp_gnu_rcmp, .-arm_fp_dcmp_gnu_rcmp", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dcmp_gnu_rcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dcmp_gnu_rcmp.S", "line_start": 1, "line_end": 43}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:2", "text": ".text\n  .p2align 2\n\n  .globl arm_fp_ddiv\n  .type arm_fp_ddiv,%function\narm_fp_ddiv:\n\n  PUSH    {r4,r5,r6,r7,r8,lr}\n\n  // Check if either input exponent 7FF (infinity or NaN), and if so, branch\n  // out of line.\n  LDR     r12, =0x07FF0000        // mask for exponent cold storage\n  BICS    r4, r12, xh, LSR #4     // test for Infs or NaNs\n  BICSNE  r4, r12, yh, LSR #4\n  BEQ     ddiv_naninf\n\n  // Extract the exponents of the input values x and y into bits 16..26 of r14\n  // and r5 respectively, and in the process, check if either exponent is zero\n  // (so that one or both inputs are 0 or denormal). In order to combine the\n  // two tests, the second ANDS is performed conditionally, so that if x's\n  // exponent is zero then the out-of-line code at ddiv_zerodenorm might find\n  // y's exponent hasn't been set up yet.\n  //\n  // We also calculate the sign of the result, which will be needed whether or\n  // not we branch. This is saved in the low bit of r4.\n  ANDS    r4, r12, xh, LSR #4     // get exponent of x, setting Z if it's 0\n  ANDSNE  r5, r12, yh, LSR #4     // if not, extract and test exponent of y\n  EOR     r6, xh, yh              // XOR the input signs to get the result sign\n  ORR     r4, r4, r6, LSR #31     // save it in the low bit of r4\n  BEQ     ddiv_zerodenorm         // branch out of line for zeroes or denormals\n\n  // Calculate the initial exponent of the result, by subtracting the two input\n  // exponents and adjusting for the IEEE exponent bias. This value may have to\n  // be adjusted by 1 later, depending on the quotient of the mantissas.\n  //\n  // If we branched to ddiv_zerodenorm above, and it found denormals but no\n  // zeroes, it may branch back here after renormalising them. We expect the\n  // out-of-line code to have left the exponent difference in the top half of\n  // r4 (still with the output sign in the low bit), but not yet to have\n  // applied the bias. So it branches back in immediately after the SUB.\n  //\n  // The exponent bias we want is either 0x3fe or 0x3ff, depending on whether\n  // we have to shift the output mantissa by 1 below. Neither of those values\n  // fits in the immediate field of an ADD instruction, so we must use two\n  // instructions.\n  SUB     r4, r4, r5\nddiv_normalised: // denormal handler will come back to here\n  ADD     r4, r4, #0x03FC0000     // add the 8 high bits of the bias 0x3FE\n  ADD     r4, r4, #0x00020000     // add the remaining bit of the bias\n\n  // Shift both mantissas up to the top of their 64-bit register pair, and OR\n  // in the leading 1 bit, which will occupy the high bit of the high word in\n  // each case.\n  MOV     r5, #1<<31              // high bit for ORing in to both mantissas\n  ORR     xh, r5, xh, LSL #11     // shift up xh and OR in the high bit\n  ORR     yh, r5, yh, LSL #11     // same for yh\n  ORR     xh, xh, xl, LSR #21     // OR in the bits shifted out of xl into xh\n  ORR     yh, yh, yl, LSR #21     // same for yl and yh\n  LSL     xl, xl, #11             // shift up the rest of xl\n  LSL     yl, yl, #11             // same for yl", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:3", "text": "//\n  // The exponent bias we want is either 0x3fe or 0x3ff, depending on whether\n  // we have to shift the output mantissa by 1 below. Neither of those values\n  // fits in the immediate field of an ADD instruction, so we must use two\n  // instructions.\n  SUB     r4, r4, r5\nddiv_normalised: // denormal handler will come back to here\n  ADD     r4, r4, #0x03FC0000     // add the 8 high bits of the bias 0x3FE\n  ADD     r4, r4, #0x00020000     // add the remaining bit of the bias\n\n  // Shift both mantissas up to the top of their 64-bit register pair, and OR\n  // in the leading 1 bit, which will occupy the high bit of the high word in\n  // each case.\n  MOV     r5, #1<<31              // high bit for ORing in to both mantissas\n  ORR     xh, r5, xh, LSL #11     // shift up xh and OR in the high bit\n  ORR     yh, r5, yh, LSL #11     // same for yh\n  ORR     xh, xh, xl, LSR #21     // OR in the bits shifted out of xl into xh\n  ORR     yh, yh, yl, LSR #21     // same for yl and yh\n  LSL     xl, xl, #11             // shift up the rest of xl\n  LSL     yl, yl, #11             // same for yl\n\n  // Check if the two mantissas are exactly equal, so that the quotient is\n  // exactly a power of 2. If so, branch out of line to handle that case\n  // specially.\n  //\n  // This guarantees that when we examine the approximate quotient afterwards,\n  // we can't be confused about whether it needs to be renormalised, which\n  // would otherwise cost just as much effort as this check. Our reciprocal\n  // approximation is always an underestimate (that's in the nature of this\n  // particular Newton-Raphson iteration), so if x < y (meaning the mantissas\n  // rather than the whole floats) then even the true quotient will be less\n  // than 1, and the approximation even more so. On the other hand, if x > y,\n  // then the true quotient will be enough greater than 1 that even the largest\n  // possible error in the approximation can't make it look like less than 1.\n  //\n  // (Proof: regard x,y as normalised to the range [1,2). If x > y, then we\n  // have x ≥ y+ε, where ε is the machine epsilon. So x/y ≥ 1+ε/y > 1+ε/2. And\n  // the bound on the approximation error, given below, is far less than ε/2.)\n  CMP     xh, yh\n  CMPEQ   xl, yl\n  BEQ     ddiv_result_is_power_of_2\n\n  // Now we begin the actual calculation of the reciprocal approximation, so we\n  // start issuing debug statements to print out the inputs, intermediate\n  // results, and outputs.\n  //\n  // We begin with our two input mantissas stored in xh:xl and yh:yl, each with\n  // its leading 1 explicit and shifted up to the top of the word. So they can\n  // be regarded as 64-bit integers with the high bit set and the bottom 11\n  // bits clear.\n  //\n  // The first diagnostics print the two mantissas in that integer form. This\n  // is the form you'd also use to feed them to 'ddiv-prove.py --eval' to\n  // confirm that the Python implementation of this algorithm does the same\n  // thing.\n  debug64 \"x = 0x%016llX\\n\", xh, xl\n  debug64 \"y = 0x%016llX\\n\", yh, yl\n\n  // Obtain an 8-bit reciprocal approximation by using the topmost 8 bits of y\n  // as a lookup table. The top bit of y is always set, so there are only 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:4", "text": "BEQ     ddiv_result_is_power_of_2\n\n  // Now we begin the actual calculation of the reciprocal approximation, so we\n  // start issuing debug statements to print out the inputs, intermediate\n  // results, and outputs.\n  //\n  // We begin with our two input mantissas stored in xh:xl and yh:yl, each with\n  // its leading 1 explicit and shifted up to the top of the word. So they can\n  // be regarded as 64-bit integers with the high bit set and the bottom 11\n  // bits clear.\n  //\n  // The first diagnostics print the two mantissas in that integer form. This\n  // is the form you'd also use to feed them to 'ddiv-prove.py --eval' to\n  // confirm that the Python implementation of this algorithm does the same\n  // thing.\n  debug64 \"x = 0x%016llX\\n\", xh, xl\n  debug64 \"y = 0x%016llX\\n\", yh, yl\n\n  // Obtain an 8-bit reciprocal approximation by using the topmost 8 bits of y\n  // as a lookup table. The top bit of y is always set, so there are only 128\n  // lookup table entries, not 256. The 8-bit value we load also has its top\n  // bit set.\n  LSR     r5, yh, #24           // r5 is the table index plus 0x80\n  ADR     r6, reciptbl-128      // so subtract 0x80 from the table address\n  LDRB    r6, [r6, r5]          // and load the approximation into r6\n  debug32 \"recip08 = %02X\\n\", r6\n\n  // First Newton-Raphson iteration, which expands that 8-bit approximation to\n  // a 17-bit one, again with its top bit set. We use the top 16 bits of y for\n  // this, so that we can fit the multiplications into ordinary MUL rather than\n  // UMULL.\n  //\n  // The Newton-Raphson formula to turn an approximation r ≈ 1/y into a better\n  // one is r → r(2-yr). In this case we're scaling up to integers (informal\n  // fixed point), so the 2 becomes 2^24.\n  LSR     r5, yh, #16           // get top halfword of y\n  MUL     r7, r6, r5            // multiply it by the input value r\n  RSB     r7, r7, #1<<24        // subtract from 2 (scaled up appropriately)\n  MUL     r7, r6, r7            // multiply again to make r(2-yr)\n  LSR     r7, r7, #14           // shift down to keep only 17 bits of it\n  debug32 \"recip16 = %04X\\n\", r7\n\n  // Second iteration, expanding into a 32-bit reciprocal, using the top 31\n  // bits of y (i.e. yh shifted by 1). The first multiplication (making yr) is\n  // 32x32 → 64 bits, so we use a single UMULL; the second one making r(2-yr)\n  // is 32x64, which we do with a UMULL by the bottom half of yr and then MLA\n  // by the top half, so we only keep the low 64 bits of the full answer.\n  //\n  // The subtraction from 2 (again scaled up, this time to 2^48) is done by\n  // RSBS+RSC, interleaved with the multiplications so as to use a delay slot\n  // on CPUs that have one.\n  LSR     r12, yh, #1\n  UMULL   r6, r8, r7, r12       // r8:r6 = yr\n  RSBS    r6, r6, #0            // low half of subtraction from 2\n  UMULL   r12, lr, r7, r6       // multiply r by the low half of 2-yr\n#if !__thumb__\n  RSC     r8, r8, #1<<16        // high half of subtraction from 2\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     r8, r8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:5", "text": "debug32 \"recip16 = %04X\\n\", r7\n\n  // Second iteration, expanding into a 32-bit reciprocal, using the top 31\n  // bits of y (i.e. yh shifted by 1). The first multiplication (making yr) is\n  // 32x32 → 64 bits, so we use a single UMULL; the second one making r(2-yr)\n  // is 32x64, which we do with a UMULL by the bottom half of yr and then MLA\n  // by the top half, so we only keep the low 64 bits of the full answer.\n  //\n  // The subtraction from 2 (again scaled up, this time to 2^48) is done by\n  // RSBS+RSC, interleaved with the multiplications so as to use a delay slot\n  // on CPUs that have one.\n  LSR     r12, yh, #1\n  UMULL   r6, r8, r7, r12       // r8:r6 = yr\n  RSBS    r6, r6, #0            // low half of subtraction from 2\n  UMULL   r12, lr, r7, r6       // multiply r by the low half of 2-yr\n#if !__thumb__\n  RSC     r8, r8, #1<<16        // high half of subtraction from 2\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     r8, r8\n  ADC     r8, r8, #1<<16\n#endif\n  MLA     r6, r7, r8, lr        // multiply r by the high half of 2-yr\n  debug32 \"recip32 = %08X\\n\", r6\n\n  // Third iteration, expanding into a 64-bit reciprocal, with the leading bit\n  // expected to end up in bit 60. Now the first multiplication to make yr is\n  // 32x64 → 96 bits, so we put the product in three registers lr:r12:r8.\n  // However, we're going to discard the low word r8 completely, because it\n  // makes negligible difference. So we'll treat the output yr as 64-bit.\n  UMULL   r8, r12, r6, yl       // multiply r by bottom half of y\n  MOV     lr, #0                // initialize high word to 0\n  UMLAL   r12, lr, r6, yh       // multiply r by top half of y\n  // Subtract from a power of 2, as usual. But in this case the power of 2\n  // we're subtracting from is 2^64, which is just off the top of the 64-bit\n  // value in lr:r12. So in fact we're just negating the whole thing!\n  //\n  // To preserve the invariant that the approximation error is always negative,\n  // we negate via one's complement rather than two's. (This would only make a\n  // difference if r8 had happened to be exactly 0. That in turn can occur when\n  // yl=0, so one of the test cases in ddiv-diagnostics.c deliberately uses\n  // such a value, so that the intermediate results can be checked against the\n  // reference Python.)\n  MVN     r12, r12\n  MVN     lr, lr\n  // Now lr:r12:r8 contains 2-yr. We discard the low word r8 to reduce that to\n  // 64 bits, and do another 32x64 → 96 bit multiplication.\n  UMULL   r5, r8, r6, r12      // multiply r by bottom half of 2-yr\n  MOV     r7, #0               // initialize high word to 0\n  UMLAL   r8, r7, r6, lr       // multiply r by top half of 2-yr\n  debug64 \"recip64 = %016llX\\n\", r7, r8\n\n  // That's the Newton-Raphson iteration done: we have a 64-bit approximation\n  // to 1/y. Multiply it by x to get the full approximate quotient.\n  //\n  // In principle, this would be a 64x64 → 128 bit multiplication, involving\n  // four long multiply instructions. But we only need the top 64 bits, and\n  // we're already prepared to tolerate some error in the calculations, so we\n  // cut corners: don't multiply the two low words together at all, and we\n  // discard the bottom half of each of the (low * high) partial products", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:6", "text": "// yl=0, so one of the test cases in ddiv-diagnostics.c deliberately uses\n  // such a value, so that the intermediate results can be checked against the\n  // reference Python.)\n  MVN     r12, r12\n  MVN     lr, lr\n  // Now lr:r12:r8 contains 2-yr. We discard the low word r8 to reduce that to\n  // 64 bits, and do another 32x64 → 96 bit multiplication.\n  UMULL   r5, r8, r6, r12      // multiply r by bottom half of 2-yr\n  MOV     r7, #0               // initialize high word to 0\n  UMLAL   r8, r7, r6, lr       // multiply r by top half of 2-yr\n  debug64 \"recip64 = %016llX\\n\", r7, r8\n\n  // That's the Newton-Raphson iteration done: we have a 64-bit approximation\n  // to 1/y. Multiply it by x to get the full approximate quotient.\n  //\n  // In principle, this would be a 64x64 → 128 bit multiplication, involving\n  // four long multiply instructions. But we only need the top 64 bits, and\n  // we're already prepared to tolerate some error in the calculations, so we\n  // cut corners: don't multiply the two low words together at all, and we\n  // discard the bottom half of each of the (low * high) partial products\n  // without bothering to propagate carries out of it.\n  //\n  // (All of these shortcuts are faithfully mimicked in the Python reference\n  // implementation which generates Gappa input, so they're all accounted for\n  // in the error analysis.)\n#if __ARM_FEATURE_DSP\n  UMULL   r12, r6, xh, r8      // r6 = high word of x * low word of 1/y\n  UMULL   r12, r5, xl, r7      // r5 = low word of x * high word of 1/y\n  UMAAL   r6, r5, xh, r7       // add those to the product of both high words\n#else\n  // Alternative instruction sequence using UMLAL, if UMAAL isn't available\n  UMULL   r12, r6, xh, r8      // r6 = high word of x * low word of 1/y\n  UMULL   r12, lr, xl, r7      // lr = low word of x * high word of 1/y\n  ADDS    r6, r6, lr           // add those together\n  MOV     r5, #0               // set r5 to the carry out of that addition\n  ADC     r5, r5, #0\n  UMLAL   r6, r5, xh, r7       // add that to the product of both high words\n#endif\n  // Now r5:r6 is the completed approximate quotient, with its leading bit at\n  // position either 61 or 62.\n  debug64 \"quot = %016llX\\n\", r5, r6\n\n  // Normalize so that the leading bit is always in bit 60, by shifting left if\n  // it isn't there already, and adjusting the output exponent by 1 to\n  // compensate.\n  //\n  // We do the test in a slightly tricky way, by arranging to set the V flag if\n  // the leading bit is in bit 60. This allows us to do the left shift under\n  // the VC condition, which is convenient because the LSLS instruction that\n  // shifts the low word left moves the top bit into the C flag without\n  // affecting V.\n  //\n  // We also save the value written into lr by the initial ADDS instruction,\n  // because that contains enough information to tell us whether we\n  // renormalised here. The correction path for quotients too close to a\n  // rounding boundary will need to recover that information.\n  ADDS    lr, r5, #0x40000000  // set V flag if bit 62 of high word set\n  SUBVC   r4, r4, #1<<16       // if not, correct the exponent by 1,\n  LSLSVC  r6, r6, #1           // shift the low word of the quotient left\n  ADCVC   r5, r5, r5           // and shift its top bit into the high word", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:9", "text": "// (it's off by 1 so that the leading mantissa bit will increment it), so we\n  // test by an ASR#31 (copying the top bit of r4 into all of it) and negating.\n  // That way, the output value is zero on underflow, matching the flags from\n  // the other check.\n  SUB     r6, r6, #(1<<9)-64\n  TST     r6, #0x3C0              // now EQ means we must go to the slow path\n  MVNSNE  r12, r4, ASR #31        // also set EQ if underflow has happened\n  BEQ     ddiv_correction         // branch out of line to do the hard bit\n\n  // If we do go to ddiv_correction, it branches back here after the correction\n  // code has finished. Either way, we expect that r5:r7 is the result\n  // mantissa, with the top bit set, already in the correct position in the\n  // word, and already rounded to nearest.\nddiv_corrected:\n  // Recombine the output mantissa with the sign and exponent.\n  ADD     xh, r5, r4, LSL #31     // add sign bit to top word of mantissa\n  BIC     r12, r4, #1             // isolate exponent in top half of r4\n  ADD     xh, xh, r12, LSL #4     // add exponent to make the final high word\n  MOV     xl, r7                  // move low word into the right register\n\n  // If there's no overflow or underflow, we're done.\n  //\n  // We _identified_ underflow above when we went to the slow path, but having\n  // done that, the slow path came back here, so we must check for it again.\n  // (The only purpose of the detour was to obtain accurate information about\n  // whether the quotient is exact, or needed rounding.)\n  //\n  // The output exponent, offset downwards by 1, is in the top half of r4. If\n  // it's negative, there's an underflow; if it's too large, there's an\n  // overflow. We do an approximate test for both at once via an unsigned\n  // comparison against 0x7f0, using r12 (the register in which we already\n  // cleared the sign bit stored at the bottom). This identifies _most_ normal\n  // outputs as quickly as possible.\n  //\n  // 0x7f0 isn't the maximum possible known-safe exponent, but it's the largest\n  // one that fits in the immediate field of CMP. We deal with the remaining\n  // cases in the next few instructions.\n  CMP     r12, #0x7f0 << 16\n  POPLS   {r4,r5,r6,r7,r8,pc}\n\n  // Now check the remaining cases more carefully.\n  //\n  // If r12 < 0 then we definitely have underflow. We detect overflow precisely\n  // by seeing if the _final_ output exponent (in the output register xh) is\n  // 0x7ff or more, by incrementing it and seeing if the sign is opposite from\n  // the intended output sign.\n  ADD     lr, xh, #1<<20          // increment the output exponent field\n  TEQ     lr, r4, LSL #31         // set N if the sign now doesn't match r4[0]\n  TSTPL   r12, r12                // otherwise, set N if underflow\n  POPPL   {r4,r5,r6,r7,r8,pc}     // if neither, we've finished\n\n  // If we still haven't returned, we really do have overflow or underflow, and\n  // the sign of r12 tells us which.\n  TST     r12, r12\n  BMI     ddiv_underflow\n  // For overflow, correct the sign by biasing the exponent downward, and go to\n  // code that constructs an infinite return value (shared with the\n  // division-by-zero handler).\n  SUB     xh, xh, #0x60000000\n  POP     {r4,r5,r6,r7,r8,lr}     // ddiv_retinf expects no regs on the stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:10", "text": "// Now check the remaining cases more carefully.\n  //\n  // If r12 < 0 then we definitely have underflow. We detect overflow precisely\n  // by seeing if the _final_ output exponent (in the output register xh) is\n  // 0x7ff or more, by incrementing it and seeing if the sign is opposite from\n  // the intended output sign.\n  ADD     lr, xh, #1<<20          // increment the output exponent field\n  TEQ     lr, r4, LSL #31         // set N if the sign now doesn't match r4[0]\n  TSTPL   r12, r12                // otherwise, set N if underflow\n  POPPL   {r4,r5,r6,r7,r8,pc}     // if neither, we've finished\n\n  // If we still haven't returned, we really do have overflow or underflow, and\n  // the sign of r12 tells us which.\n  TST     r12, r12\n  BMI     ddiv_underflow\n  // For overflow, correct the sign by biasing the exponent downward, and go to\n  // code that constructs an infinite return value (shared with the\n  // division-by-zero handler).\n  SUB     xh, xh, #0x60000000\n  POP     {r4,r5,r6,r7,r8,lr}     // ddiv_retinf expects no regs on the stack\n  B       ddiv_retinf\n\nddiv_correction:\n  // The slow path, entered if the approximate quotient was too close to a\n  // rounding boundary to trust, and also if there's a chance of underflow (so\n  // that we can reliably determine the rounding direction, including whether\n  // the quotient was exact).\n  //\n  // Regarding the input mantissas x,y and our approximate quotient q as\n  // integers in [2^52,2^53), the quotient is an approximation to either\n  // x*2^52/y or x*2^53/y, depending on which of x,y was larger. We know that q\n  // is less than the true value of that quotient by at most a small fraction\n  // of a ULP. So the correct rounded quotient is either equal to q or to q+1,\n  // and we can decide which by multiplying back up by y: we want q - x*2^k/y\n  // to be in the range (-1/2,+1/2) (where k = 52 or 53), which is equivalent\n  // to asking if qy - x*2^k is in the range (-y/2,+y/2).\n  //\n  // That's a calculation we can do in integers using only addition and\n  // multiplication. And we know that if q itself doesn't have that property\n  // then q+1 will.\n\n  // The mantissa of y is currently right at the top of the word, which means\n  // that if the result of our check is greater than it, it will overflow. So\n  // we must start by shifting y downward. We'll put it back at the bottom of\n  // the word, where it was in the input float.\n  LSR     yl, yl, #11             // shift yl right\n  ORR     yl, yl, yh, LSL #21     // OR in the bits shifted out of yh\n  LSR     yh, yh, #11             // shift yh right\n\n  // Compute the integer qy-x. Because q is already very close to the right\n  // quotient, we expect this to be an integer at most twice the size of y,\n  // which easily fits in 64 bits. So we don't need to compute the full 128-bit\n  // product: the low 64 bits are enough.\n  UMULL   r8, r6, r7, yl          // 64-bit product of the low words\n  MLA     r6, r7, yh, r6          //   + (high word of y) * (low word of q)\n  MLA     r6, r5, yl, r6          //   + (high word of q) * (low word of y)\n\n  // Now we must subtract either x << 53 or x << 52. This will only affect the\n  // high word of the product we've just computed. Also the mantissa of x is\n  // already shifted left by 11. So we shift xl left by either (52-32-11) or", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:11", "text": "// The mantissa of y is currently right at the top of the word, which means\n  // that if the result of our check is greater than it, it will overflow. So\n  // we must start by shifting y downward. We'll put it back at the bottom of\n  // the word, where it was in the input float.\n  LSR     yl, yl, #11             // shift yl right\n  ORR     yl, yl, yh, LSL #21     // OR in the bits shifted out of yh\n  LSR     yh, yh, #11             // shift yh right\n\n  // Compute the integer qy-x. Because q is already very close to the right\n  // quotient, we expect this to be an integer at most twice the size of y,\n  // which easily fits in 64 bits. So we don't need to compute the full 128-bit\n  // product: the low 64 bits are enough.\n  UMULL   r8, r6, r7, yl          // 64-bit product of the low words\n  MLA     r6, r7, yh, r6          //   + (high word of y) * (low word of q)\n  MLA     r6, r5, yl, r6          //   + (high word of q) * (low word of y)\n\n  // Now we must subtract either x << 53 or x << 52. This will only affect the\n  // high word of the product we've just computed. Also the mantissa of x is\n  // already shifted left by 11. So we shift xl left by either (52-32-11) or\n  // (53-32-11), i.e. by 9 or by 10, and subtract from the high word of the\n  // product.\n  //\n  // To decide which, we consult the value left in lr by the original test for\n  // renormalization, which added 0x40000000 to the high word of the initial\n  // approximate quotient 'quot'. If that had bit 62 set (so no renormalization\n  // needed) then the addition carried into the sign bit; otherwise it didn't.\n  // So lr is positive if and only if we need to shift xl left by an extra bit.\n  TST     lr, lr                  // did we renormalize?\n  SUBPL   r6, r6, xl, LSL #10     // if so, subtract x<<53 from q*y\n  SUBMI   r6, r6, xl, LSL #9      // if not, subtract x<<52\n\n  // Now r6:r8 contains the residual value r = qy - x*2^k as described above.\n  // If this is between -y/2 and +y/2 then q is already the correctly rounded\n  // quotient. Otherwise, the correct quotient is q+1, so the value in r6:r8\n  // will be too small (incrementing q would add y to it). So we need to check\n  // whether r < -y/2, or equivalently whether 2r < -y (avoiding having to\n  // worry about what happens when we halve y if it's odd).\n  //\n  // As mentioned above, division can't give an exact halfway case, so we don't\n  // need to worry about the case r = y/2.\n  ADDS    r8, r8, r8              // multiply the residual by 2\n  ADC     r6, r6, r6\n  ADDS    lr, r8, yl              // add y to it, discarding the result\n  ADCS    lr, r6, yh\n  BPL     ddiv_corrected          // if the answer is positive, we're OK\n\n  // If we didn't take that branch, then the approximate quotient is too small\n  // by 1, so we must increment it. But also, we adjust the residual in r6:r8\n  // to match. That residual is unused by the main epilogue code, but we also\n  // came here for any underflowing value, and the underflow handler will need\n  // the exact residual to determine the rounding direction.\n  //\n  // (We could re-test whether underflow had happened and use that to skip the\n  // update of r6:r8, but the test would cost as much effort as it saved!)\n  ADDS    r7, r7, #1              // increment the output quotient\n  ADCS    r5, r5, #0\n  ADDS    r8, r8, yl              // repeat the addition of y to the residual,\n  ADCS    r6, r6, yh              //   this time keeping the result in r6:r8\n  B       ddiv_corrected          // finally we can rejoin the main code", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:12", "text": "// need to worry about the case r = y/2.\n  ADDS    r8, r8, r8              // multiply the residual by 2\n  ADC     r6, r6, r6\n  ADDS    lr, r8, yl              // add y to it, discarding the result\n  ADCS    lr, r6, yh\n  BPL     ddiv_corrected          // if the answer is positive, we're OK\n\n  // If we didn't take that branch, then the approximate quotient is too small\n  // by 1, so we must increment it. But also, we adjust the residual in r6:r8\n  // to match. That residual is unused by the main epilogue code, but we also\n  // came here for any underflowing value, and the underflow handler will need\n  // the exact residual to determine the rounding direction.\n  //\n  // (We could re-test whether underflow had happened and use that to skip the\n  // update of r6:r8, but the test would cost as much effort as it saved!)\n  ADDS    r7, r7, #1              // increment the output quotient\n  ADCS    r5, r5, #0\n  ADDS    r8, r8, yl              // repeat the addition of y to the residual,\n  ADCS    r6, r6, yh              //   this time keeping the result in r6:r8\n  B       ddiv_corrected          // finally we can rejoin the main code\n\nddiv_result_is_power_of_2:\n  // The special-case handler for the two input mantissas being equal, so that\n  // the result is an exact power of two. We set up all the output registers to\n  // the way the main code would have done it, and jump straight to\n  // ddiv_corrected. This includes setting r6:r8 to the 'residual' value\n  // computed by the slow path, in case this power-of-2 output is also an\n  // underflow, which will depend on those registers.\n  MOV     r5, #0x00100000         // high word of quotient mantissa = 1<<20\n  MOV     r7, #0                  // low word of quotient mantissa = 0\n  MOV     r6, #0                  // high word of residual = 0\n  MOV     r8, #0                  // low word of residual = 0\n  B       ddiv_corrected\n\nddiv_underflow:\n  // We come here to handle underflow. The output double, constructed naïvely\n  // from the out-of-range exponent, is in xh:xl. We expect in this situation\n  // that we've _always_ come via either the ddiv_correction slow path or the\n  // ddiv_result_is_power_of_2 special case, both of which will have set up a\n  // residual value in r6:r8 equal to q*y - x*2^k (for appropriate k). This\n  // value is positive if the quotient is slightly above the true value (i.e.\n  // was rounded up), or negative if the quotient was rounded down. But we must\n  // also distinguish the third case of the residual being exactly zero.\n  ADD     xh, xh, #0x60000000     // apply IEEE 754 exponent bias for __dunder\n  ORRS    r12, r6, r8             // set r12=0 and Z=1 if quotient was exact\n  MOVNE   r12, #1                 // otherwise, set r12 = +1\n  ORRNE   r12, r12, r6, ASR #31   // and change to -1 if residual is negative\n  POP     {r4,r5,r6,r7,r8,lr}     // pop all locally saved registers\n  B       __dunder                // and tailcall __dunder to finish\n\nddiv_zerodenorm:\n  // We come here if either input had exponent 0, so there's at least one zero\n  // or denormal. However, we know there are no infinities or NaNs, because\n  // those were checked first and will have gone to ddiv_naninf below.\n  //\n  // First we must repeat the instruction which extracted the exponent of y\n  // into r5, this time unconditionally, in case the setup code didn't do it.\n  AND     r5, r12, yh, LSR #4\n\n  // If either or both input is actually zero, the answer is easy.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:13", "text": "// value is positive if the quotient is slightly above the true value (i.e.\n  // was rounded up), or negative if the quotient was rounded down. But we must\n  // also distinguish the third case of the residual being exactly zero.\n  ADD     xh, xh, #0x60000000     // apply IEEE 754 exponent bias for __dunder\n  ORRS    r12, r6, r8             // set r12=0 and Z=1 if quotient was exact\n  MOVNE   r12, #1                 // otherwise, set r12 = +1\n  ORRNE   r12, r12, r6, ASR #31   // and change to -1 if residual is negative\n  POP     {r4,r5,r6,r7,r8,lr}     // pop all locally saved registers\n  B       __dunder                // and tailcall __dunder to finish\n\nddiv_zerodenorm:\n  // We come here if either input had exponent 0, so there's at least one zero\n  // or denormal. However, we know there are no infinities or NaNs, because\n  // those were checked first and will have gone to ddiv_naninf below.\n  //\n  // First we must repeat the instruction which extracted the exponent of y\n  // into r5, this time unconditionally, in case the setup code didn't do it.\n  AND     r5, r12, yh, LSR #4\n\n  // If either or both input is actually zero, the answer is easy.\n  ORRS    lr, xl, xh, LSL #1    // is x zero?\n  BEQ     ddiv_xzero\n  ORRS    lr, yl, yh, LSL #1    // is y zero?\n  BEQ     ddiv_divbyzero\n\n  // Otherwise, delegate to __dnorm2 to handle denormals, converting them into\n  // a normalised mantissa and an out-of-range exponent. __dnorm2 expects the\n  // exponents at the bottom of their words instead of half way up, so shift\n  // down first.\n  LSR     r4, r4, #16\n  LSR     r5, r5, #16\n  PUSH    {r0, r1, r2, r3, r4, r5} // create a 'struct dnorm2' on the stack\n  MOV     r0, sp                   // pass it by address\n  BL      __dnorm2\n  POP     {r0, r1, r2, r3, r4, r5}\n\n  // Rejoin the main code, with the exponent difference in the top half of r4,\n  // and the output sign in the low bit of r4. (The original setup code did the\n  // latter, but we clobbered it while setting up for __dnorm2.)\n  SUBS    r4, r4, r5               // exponent difference, at the bottom of r4\n  LSLS    r4, r4, #16              // move it up to the right place\n  ORR     r4, r4, r6, LSR #31      // recover output sign from top bit of r6\n  B       ddiv_normalised          // rejoin the main code\n\nddiv_xzero:\n  // We come here if x=0. We return 0 (of the right sign) if y is not 0, and\n  // the default quiet NaN if both inputs are zero.\n  ORRS    lr, yl, yh, LSL #1       // is y zero?\n  BEQ     ddiv_ivo_pop             // if so, pop registers and return a NaN\n  // We know xl=0 already, so we only need to reset xh to contain the right\n  // output sign. The setup code left that in the high bit of r6.\n  AND     xh, r6, #0x80000000\n  POP     {r4,r5,r6,r7,r8,pc}\n\nddiv_divbyzero:\n  // We come here if y=0, but x is not 0 (or we'd have gone to ddiv_xzero above\n  // instead). So we're dividing a nonzero number by zero, and must return\n  // infinity.\n  POP     {r4,r5,r6,r7,r8,lr}\n  EOR     xh, xh, yh               // combine signs to get result sign", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:14", "text": "LSLS    r4, r4, #16              // move it up to the right place\n  ORR     r4, r4, r6, LSR #31      // recover output sign from top bit of r6\n  B       ddiv_normalised          // rejoin the main code\n\nddiv_xzero:\n  // We come here if x=0. We return 0 (of the right sign) if y is not 0, and\n  // the default quiet NaN if both inputs are zero.\n  ORRS    lr, yl, yh, LSL #1       // is y zero?\n  BEQ     ddiv_ivo_pop             // if so, pop registers and return a NaN\n  // We know xl=0 already, so we only need to reset xh to contain the right\n  // output sign. The setup code left that in the high bit of r6.\n  AND     xh, r6, #0x80000000\n  POP     {r4,r5,r6,r7,r8,pc}\n\nddiv_divbyzero:\n  // We come here if y=0, but x is not 0 (or we'd have gone to ddiv_xzero above\n  // instead). So we're dividing a nonzero number by zero, and must return\n  // infinity.\n  POP     {r4,r5,r6,r7,r8,lr}\n  EOR     xh, xh, yh               // combine signs to get result sign\n  B       ddiv_retinf\n\nddiv_naninf:\n  // We come here knowing that at least one operand is either NaN or infinity.\n  // If there's a NaN, we can tailcall __dnan2 to do the right thing. Pop our\n  // stacked registers first: we won't need that much spare space any more, and\n  // it makes the tailcall easier if we've already done it.\n  POP     {r4,r5,r6,r7,r8,lr}\n\n  // A number is a NaN if its exponent is 0x7ff and at least one bit below that\n  // is set. The CMP + ADC pair here converts the two words xh:xl into a single\n  // word containing xh shifted up by one (throwing away the sign bit which\n  // makes no difference), with its low bit set if xl was nonzero. So if that\n  // is strictly greater than 0xffe00000, then x was a NaN.\n  CMP     xl, #1\n  ADC     r12, xh, xh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n  // Now check y in the same way.\n  CMP     yl, #1\n  ADC     r12, yh, yh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n\n  // Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // both operands are infinity then we have inf / inf = invalid operation and\n  // must return a NaN. We detect this by XORing the inputs' exponent fields:\n  // knowing one of them is 7FF, they XOR to zero iff the other one is too.\n  EORS    r12, xh, yh              // XOR entire top words of the inputs\n  LSL     r12, r12, #1             // shift left to discard the sign bit\n  LSRS    r12, r12, #21            // shift right again to discard mantissas\n  BEQ     ddiv_ivo                 // if what's left is 0, we have inf / inf\n\n  // Otherwise, there's exactly one infinity, so our answers are easy, but\n  // depend on which operand it is:\n  //   infinity / anything = infinity\n  //   anything / infinity = 0\n  //\n  // Determine if x is the infinity, by bitwise inverting the whole word and\n  // then shifting left and right to isolate its exponent bits.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:15", "text": "ADC     r12, yh, yh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n\n  // Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // both operands are infinity then we have inf / inf = invalid operation and\n  // must return a NaN. We detect this by XORing the inputs' exponent fields:\n  // knowing one of them is 7FF, they XOR to zero iff the other one is too.\n  EORS    r12, xh, yh              // XOR entire top words of the inputs\n  LSL     r12, r12, #1             // shift left to discard the sign bit\n  LSRS    r12, r12, #21            // shift right again to discard mantissas\n  BEQ     ddiv_ivo                 // if what's left is 0, we have inf / inf\n\n  // Otherwise, there's exactly one infinity, so our answers are easy, but\n  // depend on which operand it is:\n  //   infinity / anything = infinity\n  //   anything / infinity = 0\n  //\n  // Determine if x is the infinity, by bitwise inverting the whole word and\n  // then shifting left and right to isolate its exponent bits.\n  MVN     r12, xh, LSL #1          // invert x, shift left to discard sign\n  LSRS    r12, r12, #21            //   and shift right to discard mantissa\n  EOR     xh, xh, yh               // calculate the output sign bit\n  BEQ     ddiv_retinf              // if x = inf, return infinity of that sign\n  MOV     xl, #0                   // otherwise clear all bits of x\n  AND     xh, xh, #0x80000000      //   other than the sign bit\n  BX      lr                       //   and return zero of the same sign\nddiv_retinf:\n  // Construct and return an infinity in xh:xl, with whatever sign bit is\n  // already in the top bit of xh.\n  MOV     xl, #0                   // clear low word\n  MVN     xh, xh, LSR #31          // shift xh[31] down to bit 0, inverted\n  MVN     xh, xh, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     xh, xh, #20              // shift back up to the top\n  BX      lr\n\n  // Code to construct and return the default quiet NaN, for the cases inf/inf\n  // and 0/0. We provide two entry labels, one for callers who still need to\n  // pop all the registers this function pushed, and one for callers who have\n  // done that already.\nddiv_ivo_pop:\n  POP     {r4,r5,r6,r7,r8,lr}\nddiv_ivo:\n  MOVW    xh, 0x7ff8\n  LSLS    xh, xh, #16\n  MOV     xl, #0\n  BX      lr\n\n  // Table of approximate reciprocals, generated by running\n  //\n  // fp/aux/ddiv-prove.py --print-table\n  //\n  // which calculates the table entries using the same code that provides them\n  // to the Gappa error analysis proof.\nreciptbl:\n  .byte 0xFF,0xFD,0xFB,0xF9,0xF7,0xF5,0xF4,0xF2\n  .byte 0xF0,0xEE,0xED,0xEB,0xE9,0xE8,0xE6,0xE4\n  .byte 0xE3,0xE1,0xE0,0xDE,0xDD,0xDB,0xDA,0xD8\n  .byte 0xD7,0xD5,0xD4,0xD3,0xD1,0xD0,0xCF,0xCD\n  .byte 0xCC,0xCB,0xCA,0xC8,0xC7,0xC6,0xC5,0xC4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 561, "line_end": 620}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:16", "text": "ddiv_ivo_pop:\n  POP     {r4,r5,r6,r7,r8,lr}\nddiv_ivo:\n  MOVW    xh, 0x7ff8\n  LSLS    xh, xh, #16\n  MOV     xl, #0\n  BX      lr\n\n  // Table of approximate reciprocals, generated by running\n  //\n  // fp/aux/ddiv-prove.py --print-table\n  //\n  // which calculates the table entries using the same code that provides them\n  // to the Gappa error analysis proof.\nreciptbl:\n  .byte 0xFF,0xFD,0xFB,0xF9,0xF7,0xF5,0xF4,0xF2\n  .byte 0xF0,0xEE,0xED,0xEB,0xE9,0xE8,0xE6,0xE4\n  .byte 0xE3,0xE1,0xE0,0xDE,0xDD,0xDB,0xDA,0xD8\n  .byte 0xD7,0xD5,0xD4,0xD3,0xD1,0xD0,0xCF,0xCD\n  .byte 0xCC,0xCB,0xCA,0xC8,0xC7,0xC6,0xC5,0xC4\n  .byte 0xC2,0xC1,0xC0,0xBF,0xBE,0xBD,0xBC,0xBB\n  .byte 0xBA,0xB9,0xB8,0xB7,0xB6,0xB5,0xB4,0xB3\n  .byte 0xB2,0xB1,0xB0,0xAF,0xAE,0xAD,0xAC,0xAB\n  .byte 0xAA,0xA9,0xA8,0xA8,0xA7,0xA6,0xA5,0xA4\n  .byte 0xA3,0xA3,0xA2,0xA1,0xA0,0x9F,0x9F,0x9E\n  .byte 0x9D,0x9C,0x9C,0x9B,0x9A,0x99,0x99,0x98\n  .byte 0x97,0x97,0x96,0x95,0x95,0x94,0x93,0x93\n  .byte 0x92,0x91,0x91,0x90,0x8F,0x8F,0x8E,0x8E\n  .byte 0x8D,0x8C,0x8C,0x8B,0x8B,0x8A,0x89,0x89\n  .byte 0x88,0x88,0x87,0x87,0x86,0x85,0x85,0x84\n  .byte 0x84,0x83,0x83,0x82,0x82,0x81,0x81,0x80\n\n  .size arm_fp_ddiv, .-arm_fp_ddiv", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ddiv.S", "line_start": 601, "line_end": 633}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:4", "text": "BEQ     ddiv_result_is_power_of_2\n\n  // Now we begin the actual calculation of the reciprocal approximation, so we\n  // start issuing debug statements to print out the inputs, intermediate\n  // results, and outputs.\n  //\n  // We begin with our two input mantissas stored in xh:xl and yh:yl, each with\n  // its leading 1 explicit and shifted up to the top of the word. So they can\n  // be regarded as 64-bit integers with the high bit set and the bottom 11\n  // bits clear.\n  //\n  // The first diagnostics print the two mantissas in that integer form. This\n  // is the form you'd also use to feed them to 'ddiv-prove.py --eval' to\n  // confirm that the Python implementation of this algorithm does the same\n  // thing.\n  debug64 \"x = 0x%016llX\\n\", xh, xl\n  debug64 \"y = 0x%016llX\\n\", yh, yl\n\n  // Obtain an 8-bit reciprocal approximation by using the topmost 8 bits of y\n  // as a lookup table. The top bit of y is always set, so there are only 128\n  // lookup table entries, not 256. The 8-bit value we load also has its top\n  // bit set.\n  LSR     r5, yh, #24           // r5 is the table index plus 0x80\n  ADR.W   r6, reciptbl-128      // so subtract 0x80 from the table address\n  LDRB    r6, [r6, r5]          // and load the approximation into r6\n  debug32 \"recip08 = %02X\\n\", r6\n\n  // First Newton-Raphson iteration, which expands that 8-bit approximation to\n  // a 17-bit one, again with its top bit set. We use the top 16 bits of y for\n  // this, so that we can fit the multiplications into ordinary MUL rather than\n  // UMULL.\n  //\n  // The Newton-Raphson formula to turn an approximation r ≈ 1/y into a better\n  // one is r → r(2-yr). In this case we're scaling up to integers (informal\n  // fixed point), so the 2 becomes 2^24.\n  LSR     r5, yh, #16           // get top halfword of y\n  MUL     r7, r6, r5            // multiply it by the input value r\n  RSB     r7, r7, #1<<24        // subtract from 2 (scaled up appropriately)\n  MUL     r7, r6, r7            // multiply again to make r(2-yr)\n  LSR     r7, r7, #14           // shift down to keep only 17 bits of it\n  debug32 \"recip16 = %04X\\n\", r7\n\n  // Second iteration, expanding into a 32-bit reciprocal, using the top 31\n  // bits of y (i.e. yh shifted by 1). The first multiplication (making yr) is\n  // 32x32 → 64 bits, so we use a single UMULL; the second one making r(2-yr)\n  // is 32x64, which we do with a UMULL by the bottom half of yr and then MLA\n  // by the top half, so we only keep the low 64 bits of the full answer.\n  //\n  // The subtraction from 2 (again scaled up, this time to 2^48) is done by\n  // RSBS+RSC, interleaved with the multiplications so as to use a delay slot\n  // on CPUs that have one.\n  LSR     r12, yh, #1\n  UMULL   r6, r8, r7, r12       // r8:r6 = yr\n  RSBS    r6, r6, #0            // low half of subtraction from 2\n  UMULL   r12, lr, r7, r6       // multiply r by the low half of 2-yr\n#if !__thumb__\n  RSC     r8, r8, #1<<16        // high half of subtraction from 2\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     r8, r8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/ddiv.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:2", "text": ".text\n  .p2align 2\n\n  .globl arm_fp_ddiv\n  .type arm_fp_ddiv,%function\narm_fp_ddiv:\n\n  PUSH    {r4,r5,r6,r7,r8,lr}\n\n  // Check if either input exponent 7FF (infinity or NaN), and if so, branch\n  // out of line.\n  LDR     r12, =0x07FF0000        // mask for exponent cold storage\n  BICS    r4, r12, ah, LSR #4     // test for Infs or NaNs\n  BICSNE  r4, r12, bh, LSR #4\n  BEQ     ddiv_naninf\n\n  // Extract the exponents of the input values a and b into bits 16..26 of r14\n  // and r5 respectively, and in the process, check if either exponent is zero\n  // (so that one or both inputs are 0 or denormal). In order to combine the\n  // two tests, the second ANDS is performed conditionally, so that if a's\n  // exponent is zero then the out-of-line code at ddiv_zerodenorm might find\n  // b's exponent hasn't been set up yet.\n  //\n  // We also calculate the sign of the result, which will be needed whether or\n  // not we branch. This is saved in the low bit of r4.\n  ANDS    r4, r12, ah, LSR #4     // get exponent of a, setting Z if it's 0\n  ANDSNE  r5, r12, bh, LSR #4     // if not, extract and test exponent of b\n  EOR     r6, ah, bh              // XOR the input signs to get the result sign\n  ORR     r4, r4, r6, LSR #31     // save it in the low bit of r4\n  BEQ     ddiv_zerodenorm         // branch out of line for zeroes or denormals\n\n  // Calculate the initial exponent of the result, by subtracting the two input\n  // exponents and adjusting for the IEEE exponent bias. This value may have to\n  // be adjusted by 1 later, depending on the quotient of the mantissas.\n  //\n  // If we branched to ddiv_zerodenorm above, and it found denormals but no\n  // zeroes, it may branch back here after renormalising them. We expect the\n  // out-of-line code to have left the exponent difference in the top half of\n  // r4 (still with the output sign in the low bit), but not yet to have\n  // applied the bias. So it branches back in immediately after the SUB.\n  //\n  // The exponent bias we want is either 0x3fe or 0x3ff, depending on whether\n  // we have to shift the output mantissa by 1 below. Neither of those values\n  // fits in the immediate field of an ADD instruction, so we must use two\n  // instructions.\n  SUB     r4, r4, r5\nddiv_normalised: // denormal handler will come back to here\n  ADD     r4, r4, #0x03FC0000     // add the 8 high bits of the bias 0x3FE\n  ADD     r4, r4, #0x00020000     // add the remaining bit of the bias\n\n  // Shift both mantissas up to the top of their 64-bit register pair, and OR\n  // in the leading 1 bit, which will occupy the high bit of the high word in\n  // each case.\n  MOV     r5, #1<<31              // high bit for ORing in to both mantissas\n  ORR     ah, r5, ah, LSL #11     // shift up ah and OR in the high bit\n  ORR     bh, r5, bh, LSL #11     // same for bh\n  ORR     ah, ah, al, LSR #21     // OR in the bits shifted out of al into ah\n  ORR     bh, bh, bl, LSR #21     // same for bl and bh\n  LSL     al, al, #11             // shift up the rest of al\n  LSL     bl, bl, #11             // same for bl", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:3", "text": "//\n  // The exponent bias we want is either 0x3fe or 0x3ff, depending on whether\n  // we have to shift the output mantissa by 1 below. Neither of those values\n  // fits in the immediate field of an ADD instruction, so we must use two\n  // instructions.\n  SUB     r4, r4, r5\nddiv_normalised: // denormal handler will come back to here\n  ADD     r4, r4, #0x03FC0000     // add the 8 high bits of the bias 0x3FE\n  ADD     r4, r4, #0x00020000     // add the remaining bit of the bias\n\n  // Shift both mantissas up to the top of their 64-bit register pair, and OR\n  // in the leading 1 bit, which will occupy the high bit of the high word in\n  // each case.\n  MOV     r5, #1<<31              // high bit for ORing in to both mantissas\n  ORR     ah, r5, ah, LSL #11     // shift up ah and OR in the high bit\n  ORR     bh, r5, bh, LSL #11     // same for bh\n  ORR     ah, ah, al, LSR #21     // OR in the bits shifted out of al into ah\n  ORR     bh, bh, bl, LSR #21     // same for bl and bh\n  LSL     al, al, #11             // shift up the rest of al\n  LSL     bl, bl, #11             // same for bl\n\n  // Check if the two mantissas are exactly equal, so that the quotient is\n  // exactly a power of 2. If so, branch out of line to handle that case\n  // specially.\n  //\n  // This guarantees that when we examine the approximate quotient afterwards,\n  // we can't be confused about whether it needs to be renormalised, which\n  // would otherwise cost just as much effort as this check. Our reciprocal\n  // approximation is always an underestimate (that's in the nature of this\n  // particular Newton-Raphson iteration), so if a < b (meaning the mantissas\n  // rather than the whole floats) then even the true quotient will be less\n  // than 1, and the approximation even more so. On the other hand, if a > b,\n  // then the true quotient will be enough greater than 1 that even the largest\n  // possible error in the approximation can't make it look like less than 1.\n  //\n  // (Proof: regard a,b as normalised to the range [1,2). If a > b, then we\n  // have a ≥ b+ε, where ε is the machine epsilon. So a/b ≥ 1+ε/b > 1+ε/2. And\n  // the bound on the approximation error, given below, is far less than ε/2.)\n  CMP     ah, bh\n  CMPEQ   al, bl\n  BEQ     ddiv_result_is_power_of_2\n\n  // Now we begin the actual calculation of the reciprocal approximation, so we\n  // start issuing debug statements to print out the inputs, intermediate\n  // results, and outputs.\n  //\n  // We begin with our two input mantissas stored in ah:al and bh:bl, each with\n  // its leading 1 explicit and shifted up to the top of the word. So they can\n  // be regarded as 64-bit integers with the high bit set and the bottom 11\n  // bits clear.\n  //\n  // The first diagnostics print the two mantissas in that integer form. This\n  // is the form you'd also use to feed them to 'ddiv-prove.py --eval' to\n  // confirm that the Python implementation of this algorithm does the same\n  // thing.\n  debug64 \"a = 0x%016llX\\n\", ah, al\n  debug64 \"b = 0x%016llX\\n\", bh, bl\n\n  // Obtain an 8-bit reciprocal approximation by using the topmost 8 bits of b\n  // as a lookup table. The top bit of b is always set, so there are only 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:4", "text": "BEQ     ddiv_result_is_power_of_2\n\n  // Now we begin the actual calculation of the reciprocal approximation, so we\n  // start issuing debug statements to print out the inputs, intermediate\n  // results, and outputs.\n  //\n  // We begin with our two input mantissas stored in ah:al and bh:bl, each with\n  // its leading 1 explicit and shifted up to the top of the word. So they can\n  // be regarded as 64-bit integers with the high bit set and the bottom 11\n  // bits clear.\n  //\n  // The first diagnostics print the two mantissas in that integer form. This\n  // is the form you'd also use to feed them to 'ddiv-prove.py --eval' to\n  // confirm that the Python implementation of this algorithm does the same\n  // thing.\n  debug64 \"a = 0x%016llX\\n\", ah, al\n  debug64 \"b = 0x%016llX\\n\", bh, bl\n\n  // Obtain an 8-bit reciprocal approximation by using the topmost 8 bits of b\n  // as a lookup table. The top bit of b is always set, so there are only 128\n  // lookup table entries, not 256. The 8-bit value we load also has its top\n  // bit set.\n  LSR     r5, bh, #24           // r5 is the table index plus 0x80\n  ADR.W   r6, reciptbl-128      // so subtract 0x80 from the table address\n  LDRB    r6, [r6, r5]          // and load the approximation into r6\n  debug32 \"recip08 = %02X\\n\", r6\n\n  // First Newton-Raphson iteration, which expands that 8-bit approximation to\n  // a 17-bit one, again with its top bit set. We use the top 16 bits of b for\n  // this, so that we can fit the multiplications into ordinary MUL rather than\n  // UMULL.\n  //\n  // The Newton-Raphson formula to turn an approximation x ≈ 1/b into a better\n  // one is x → x(2-bx). In this case we're scaling up to integers (informal\n  // fixed point), so the 2 becomes 2^24.\n  LSR     r5, bh, #16           // get top halfword of b\n  MUL     r7, r6, r5            // multiply it by the input value x\n  RSB     r7, r7, #1<<24        // subtract from 2 (scaled up appropriately)\n  MUL     r7, r6, r7            // multiply again to make x(2-bx)\n  LSR     r7, r7, #14           // shift down to keep only 17 bits of it\n  debug32 \"recip16 = %04X\\n\", r7\n\n  // Second iteration, expanding into a 32-bit reciprocal, using the top 31\n  // bits of b (i.e. bh shifted by 1). The first multiplication (making bx) is\n  // 32x32 → 64 bits, so we use a single UMULL; the second one making x(2-bx)\n  // is 32x64, which we do with a UMULL by the bottom half of bx and then MLA\n  // by the top half, so we only keep the low 64 bits of the full answer.\n  //\n  // The subtraction from 2 (again scaled up, this time to 2^48) is done by\n  // RSBS+RSC, interleaved with the multiplications so as to use a delay slot\n  // on CPUs that have one.\n  LSR     r12, bh, #1\n  UMULL   r6, r8, r7, r12       // r8:r6 = bx\n  RSBS    r6, r6, #0            // low half of subtraction from 2\n  UMULL   r12, lr, r7, r6       // multiply x by the low half of 2-bx\n#if !__thumb__\n  RSC     r8, r8, #1<<16        // high half of subtraction from 2\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     r8, r8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:5", "text": "debug32 \"recip16 = %04X\\n\", r7\n\n  // Second iteration, expanding into a 32-bit reciprocal, using the top 31\n  // bits of b (i.e. bh shifted by 1). The first multiplication (making bx) is\n  // 32x32 → 64 bits, so we use a single UMULL; the second one making x(2-bx)\n  // is 32x64, which we do with a UMULL by the bottom half of bx and then MLA\n  // by the top half, so we only keep the low 64 bits of the full answer.\n  //\n  // The subtraction from 2 (again scaled up, this time to 2^48) is done by\n  // RSBS+RSC, interleaved with the multiplications so as to use a delay slot\n  // on CPUs that have one.\n  LSR     r12, bh, #1\n  UMULL   r6, r8, r7, r12       // r8:r6 = bx\n  RSBS    r6, r6, #0            // low half of subtraction from 2\n  UMULL   r12, lr, r7, r6       // multiply x by the low half of 2-bx\n#if !__thumb__\n  RSC     r8, r8, #1<<16        // high half of subtraction from 2\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     r8, r8\n  ADC     r8, r8, #1<<16\n#endif\n  MLA     r6, r7, r8, lr        // multiply x by the high half of 2-bx\n  debug32 \"recip32 = %08X\\n\", r6\n\n  // Third iteration, expanding into a 64-bit reciprocal, with the leading bit\n  // expected to end up in bit 60. Now the first multiplication to make bx is\n  // 32x64 → 96 bits, so we put the product in three registers lr:r12:r8.\n  // However, we're going to discard the low word r8 completely, because it\n  // makes negligible difference. So we'll treat the output bx as 64-bit.\n  UMULL   r8, r12, r6, bl       // multiply x by bottom half of b\n  MOV     lr, #0                // initialize high word to 0\n  UMLAL   r12, lr, r6, bh       // multiply x by top half of b\n  // Subtract from a power of 2, as usual. But in this case the power of 2\n  // we're subtracting from is 2^64, which is just off the top of the 64-bit\n  // value in lr:r12. So in fact we're just negating the whole thing!\n  //\n  // To preserve the invariant that the approximation error is always negative,\n  // we negate via one's complement rather than two's. (This would only make a\n  // difference if r8 had happened to be exactly 0. That in turn can occur when\n  // bl=0, so one of the test cases in ddiv-diagnostics.c deliberately uses\n  // such a value, so that the intermediate results can be checked against the\n  // reference Python.)\n  MVN     r12, r12\n  MVN     lr, lr\n  // Now lr:r12:r8 contains 2-bx. We discard the low word r8 to reduce that to\n  // 64 bits, and do another 32x64 → 96 bit multiplication.\n  UMULL   r5, r8, r6, r12      // multiply x by bottom half of 2-bx\n  MOV     r7, #0               // initialize high word to 0\n  UMLAL   r8, r7, r6, lr       // multiply x by top half of 2-bx\n  debug64 \"recip64 = %016llX\\n\", r7, r8\n\n  // That's the Newton-Raphson iteration done: we have a 64-bit approximation\n  // to 1/b. Multiply it by a to get the full approximate quotient.\n  //\n  // In principle, this would be a 64x64 → 128 bit multiplication, involving\n  // four long multiply instructions. But we only need the top 64 bits, and\n  // we're already prepared to tolerate some error in the calculations, so we\n  // cut corners: don't multiply the two low words together at all, and we\n  // discard the bottom half of each of the (low * high) partial products", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:6", "text": "// bl=0, so one of the test cases in ddiv-diagnostics.c deliberately uses\n  // such a value, so that the intermediate results can be checked against the\n  // reference Python.)\n  MVN     r12, r12\n  MVN     lr, lr\n  // Now lr:r12:r8 contains 2-bx. We discard the low word r8 to reduce that to\n  // 64 bits, and do another 32x64 → 96 bit multiplication.\n  UMULL   r5, r8, r6, r12      // multiply x by bottom half of 2-bx\n  MOV     r7, #0               // initialize high word to 0\n  UMLAL   r8, r7, r6, lr       // multiply x by top half of 2-bx\n  debug64 \"recip64 = %016llX\\n\", r7, r8\n\n  // That's the Newton-Raphson iteration done: we have a 64-bit approximation\n  // to 1/b. Multiply it by a to get the full approximate quotient.\n  //\n  // In principle, this would be a 64x64 → 128 bit multiplication, involving\n  // four long multiply instructions. But we only need the top 64 bits, and\n  // we're already prepared to tolerate some error in the calculations, so we\n  // cut corners: don't multiply the two low words together at all, and we\n  // discard the bottom half of each of the (low * high) partial products\n  // without bothering to propagate carries out of it.\n  //\n  // (All of these shortcuts are faithfully mimicked in the Python reference\n  // implementation which generates Gappa input, so they're all accounted for\n  // in the error analysis.)\n#if __ARM_FEATURE_DSP\n  UMULL   r12, r6, ah, r8      // r6 = high word of a * low word of 1/b\n  UMULL   r12, r5, al, r7      // r5 = low word of a * high word of 1/b\n  UMAAL   r6, r5, ah, r7       // add those to the product of both high words\n#else\n  // Alternative instruction sequence using UMLAL, if UMAAL isn't available\n  UMULL   r12, r6, ah, r8      // r6 = high word of a * low word of 1/b\n  UMULL   r12, lr, al, r7      // lr = low word of a * high word of 1/b\n  ADDS    r6, r6, lr           // add those together\n  MOV     r5, #0               // set r5 to the carry out of that addition\n  ADC     r5, r5, #0\n  UMLAL   r6, r5, ah, r7       // add that to the product of both high words\n#endif\n  // Now r5:r6 is the completed approximate quotient, with its leading bit at\n  // position either 61 or 62.\n  debug64 \"quot = %016llX\\n\", r5, r6\n\n  // Normalize so that the leading bit is always in bit 60, by shifting left if\n  // it isn't there already, and adjusting the output exponent by 1 to\n  // compensate.\n  //\n  // We do the test in a slightly tricky way, by arranging to set the V flag if\n  // the leading bit is in bit 60. This allows us to do the left shift under\n  // the VC condition, which is convenient because the LSLS instruction that\n  // shifts the low word left moves the top bit into the C flag without\n  // affecting V.\n  //\n  // We also save the value written into lr by the initial ADDS instruction,\n  // because that contains enough information to tell us whether we\n  // renormalised here. The correction path for quotients too close to a\n  // rounding boundary will need to recover that information.\n  ADDS    lr, r5, #0x40000000  // set V flag if bit 62 of high word set\n  SUBVC   r4, r4, #1<<16       // if not, correct the exponent by 1,\n  LSLSVC  r6, r6, #1           // shift the low word of the quotient left\n  ADCVC   r5, r5, r5           // and shift its top bit into the high word", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:9", "text": "// (it's off by 1 so that the leading mantissa bit will increment it), so we\n  // test by an ASR#31 (copying the top bit of r4 into all of it) and negating.\n  // That way, the output value is zero on underflow, matching the flags from\n  // the other check.\n  SUB     r6, r6, #(1<<9)-64\n  TST     r6, #0x3C0              // now EQ means we must go to the slow path\n  MVNSNE  r12, r4, ASR #31        // also set EQ if underflow has happened\n  BEQ     ddiv_correction         // branch out of line to do the hard bit\n\n  // If we do go to ddiv_correction, it branches back here after the correction\n  // code has finished. Either way, we expect that r5:r7 is the result\n  // mantissa, with the top bit set, already in the correct position in the\n  // word, and already rounded to nearest.\nddiv_corrected:\n  // Recombine the output mantissa with the sign and exponent.\n  ADD     ah, r5, r4, LSL #31     // add sign bit to top word of mantissa\n  BIC     r12, r4, #1             // isolate exponent in top half of r4\n  ADD     ah, ah, r12, LSL #4     // add exponent to make the final high word\n  MOV     al, r7                  // move low word into the right register\n\n  // If there's no overflow or underflow, we're done.\n  //\n  // We _identified_ underflow above when we went to the slow path, but having\n  // done that, the slow path came back here, so we must check for it again.\n  // (The only purpose of the detour was to obtain accurate information about\n  // whether the quotient is exact, or needed rounding.)\n  //\n  // The output exponent, offset downwards by 1, is in the top half of r4. If\n  // it's negative, there's an underflow; if it's too large, there's an\n  // overflow. We do an approximate test for both at once via an unsigned\n  // comparison against 0x7f0, using r12 (the register in which we already\n  // cleared the sign bit stored at the bottom). This identifies _most_ normal\n  // outputs as quickly as possible.\n  //\n  // 0x7f0 isn't the maximum possible known-safe exponent, but it's the largest\n  // one that fits in the immediate field of CMP. We deal with the remaining\n  // cases in the next few instructions.\n  CMP     r12, #0x7f0 << 16\n  POPLS   {r4,r5,r6,r7,r8,pc}\n\n  // Now check the remaining cases more carefully.\n  //\n  // If r12 < 0 then we definitely have underflow. We detect overflow precisely\n  // by seeing if the _final_ output exponent (in the output register ah) is\n  // 0x7ff or more, by incrementing it and seeing if the sign is opposite from\n  // the intended output sign.\n  ADD     lr, ah, #1<<20          // increment the output exponent field\n  TEQ     lr, r4, LSL #31         // set N if the sign now doesn't match r4[0]\n  TSTPL   r12, r12                // otherwise, set N if underflow\n  POPPL   {r4,r5,r6,r7,r8,pc}     // if neither, we've finished\n\n  // If we still haven't returned, we really do have overflow or underflow, and\n  // the sign of r12 tells us which.\n  TST     r12, r12\n  BMI     ddiv_underflow\n  // For overflow, correct the sign by biasing the exponent downward, and go to\n  // code that constructs an infinite return value (shared with the\n  // division-by-zero handler).\n  SUB     ah, ah, #0x60000000\n  POP     {r4,r5,r6,r7,r8,lr}     // ddiv_retinf expects no regs on the stack", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:10", "text": "// Now check the remaining cases more carefully.\n  //\n  // If r12 < 0 then we definitely have underflow. We detect overflow precisely\n  // by seeing if the _final_ output exponent (in the output register ah) is\n  // 0x7ff or more, by incrementing it and seeing if the sign is opposite from\n  // the intended output sign.\n  ADD     lr, ah, #1<<20          // increment the output exponent field\n  TEQ     lr, r4, LSL #31         // set N if the sign now doesn't match r4[0]\n  TSTPL   r12, r12                // otherwise, set N if underflow\n  POPPL   {r4,r5,r6,r7,r8,pc}     // if neither, we've finished\n\n  // If we still haven't returned, we really do have overflow or underflow, and\n  // the sign of r12 tells us which.\n  TST     r12, r12\n  BMI     ddiv_underflow\n  // For overflow, correct the sign by biasing the exponent downward, and go to\n  // code that constructs an infinite return value (shared with the\n  // division-by-zero handler).\n  SUB     ah, ah, #0x60000000\n  POP     {r4,r5,r6,r7,r8,lr}     // ddiv_retinf expects no regs on the stack\n  B       ddiv_retinf\n\nddiv_correction:\n  // The slow path, entered if the approximate quotient was too close to a\n  // rounding boundary to trust, and also if there's a chance of underflow (so\n  // that we can reliably determine the rounding direction, including whether\n  // the quotient was exact).\n  //\n  // Regarding the input mantissas a,b and our approximate quotient q as\n  // integers in [2^52,2^53), the quotient is an approximation to either\n  // a*2^52/b or a*2^53/b, depending on which of a,b was larger. We know that q\n  // is less than the true value of that quotient by at most a small fraction\n  // of a ULP. So the correct rounded quotient is either equal to q or to q+1,\n  // and we can decide which by multiplying back up by b: we want q - a*2^k/b\n  // to be in the range (-1/2,+1/2) (where k = 52 or 53), which is equivalent\n  // to asking if qb - a*2^k is in the range (-b/2,+b/2).\n  //\n  // That's a calculation we can do in integers using only addition and\n  // multiplication. And we know that if q itself doesn't have that property\n  // then q+1 will.\n\n  // The mantissa of b is currently right at the top of the word, which means\n  // that if the result of our check is greater than it, it will overflow. So\n  // we must start by shifting b downward. We'll put it back at the bottom of\n  // the word, where it was in the input float.\n  LSR     bl, bl, #11             // shift bl right\n  ORR     bl, bl, bh, LSL #21     // OR in the bits shifted out of bh\n  LSR     bh, bh, #11             // shift bh right\n\n  // Compute the integer qb-a. Because q is already very close to the right\n  // quotient, we expect this to be an integer at most twice the size of b,\n  // which easily fits in 64 bits. So we don't need to compute the full 128-bit\n  // product: the low 64 bits are enough.\n  UMULL   r8, r6, r7, bl          // 64-bit product of the low words\n  MLA     r6, r7, bh, r6          //   + (high word of b) * (low word of q)\n  MLA     r6, r5, bl, r6          //   + (high word of q) * (low word of b)\n\n  // Now we must subtract either a << 53 or a << 52. This will only affect the\n  // high word of the product we've just computed. Also the mantissa of a is\n  // already shifted left by 11. So we shift al left by either (52-32-11) or", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:11", "text": "// The mantissa of b is currently right at the top of the word, which means\n  // that if the result of our check is greater than it, it will overflow. So\n  // we must start by shifting b downward. We'll put it back at the bottom of\n  // the word, where it was in the input float.\n  LSR     bl, bl, #11             // shift bl right\n  ORR     bl, bl, bh, LSL #21     // OR in the bits shifted out of bh\n  LSR     bh, bh, #11             // shift bh right\n\n  // Compute the integer qb-a. Because q is already very close to the right\n  // quotient, we expect this to be an integer at most twice the size of b,\n  // which easily fits in 64 bits. So we don't need to compute the full 128-bit\n  // product: the low 64 bits are enough.\n  UMULL   r8, r6, r7, bl          // 64-bit product of the low words\n  MLA     r6, r7, bh, r6          //   + (high word of b) * (low word of q)\n  MLA     r6, r5, bl, r6          //   + (high word of q) * (low word of b)\n\n  // Now we must subtract either a << 53 or a << 52. This will only affect the\n  // high word of the product we've just computed. Also the mantissa of a is\n  // already shifted left by 11. So we shift al left by either (52-32-11) or\n  // (53-32-11), i.e. by 9 or by 10, and subtract from the high word of the\n  // product.\n  //\n  // To decide which, we consult the value left in lr by the original test for\n  // renormalization, which added 0x40000000 to the high word of the initial\n  // approximate quotient 'quot'. If that had bit 62 set (so no renormalization\n  // needed) then the addition carried into the sign bit; otherwise it didn't.\n  // So lr is positive if and only if we need to shift al left by an extra bit.\n  TST     lr, lr                  // did we renormalize?\n  SUBPL   r6, r6, al, LSL #10     // if so, subtract a<<53 from q*b\n  SUBMI   r6, r6, al, LSL #9      // if not, subtract a<<52\n\n  // Now r6:r8 contains the residual value r = qb - a*2^k as described above.\n  // If this is between -b/2 and +b/2 then q is already the correctly rounded\n  // quotient. Otherwise, the correct quotient is q+1, so the value in r6:r8\n  // will be too small (incrementing q would add b to it). So we need to check\n  // whether r < -b/2, or equivalently whether 2r < -b (avoiding having to\n  // worry about what happens when we halve b if it's odd).\n  //\n  // As mentioned above, division can't give an exact halfway case, so we don't\n  // need to worry about the case r = b/2.\n  ADDS    r8, r8, r8              // multiply the residual by 2\n  ADC     r6, r6, r6\n  ADDS    lr, r8, bl              // add b to it, discarding the result\n  ADCS    lr, r6, bh\n  BPL     ddiv_corrected          // if the answer is positive, we're OK\n\n  // If we didn't take that branch, then the approximate quotient is too small\n  // by 1, so we must increment it. But also, we adjust the residual in r6:r8\n  // to match. That residual is unused by the main epilogue code, but we also\n  // came here for any underflowing value, and the underflow handler will need\n  // the exact residual to determine the rounding direction.\n  //\n  // (We could re-test whether underflow had happened and use that to skip the\n  // update of r6:r8, but the test would cost as much effort as it saved!)\n  ADDS    r7, r7, #1              // increment the output quotient\n  ADCS    r5, r5, #0\n  ADDS    r8, r8, bl              // repeat the addition of b to the residual,\n  ADCS    r6, r6, bh              //   this time keeping the result in r6:r8\n  B       ddiv_corrected          // finally we can rejoin the main code", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:12", "text": "// need to worry about the case r = b/2.\n  ADDS    r8, r8, r8              // multiply the residual by 2\n  ADC     r6, r6, r6\n  ADDS    lr, r8, bl              // add b to it, discarding the result\n  ADCS    lr, r6, bh\n  BPL     ddiv_corrected          // if the answer is positive, we're OK\n\n  // If we didn't take that branch, then the approximate quotient is too small\n  // by 1, so we must increment it. But also, we adjust the residual in r6:r8\n  // to match. That residual is unused by the main epilogue code, but we also\n  // came here for any underflowing value, and the underflow handler will need\n  // the exact residual to determine the rounding direction.\n  //\n  // (We could re-test whether underflow had happened and use that to skip the\n  // update of r6:r8, but the test would cost as much effort as it saved!)\n  ADDS    r7, r7, #1              // increment the output quotient\n  ADCS    r5, r5, #0\n  ADDS    r8, r8, bl              // repeat the addition of b to the residual,\n  ADCS    r6, r6, bh              //   this time keeping the result in r6:r8\n  B       ddiv_corrected          // finally we can rejoin the main code\n\nddiv_result_is_power_of_2:\n  // The special-case handler for the two input mantissas being equal, so that\n  // the result is an exact power of two. We set up all the output registers to\n  // the way the main code would have done it, and jump straight to\n  // ddiv_corrected. This includes setting r6:r8 to the 'residual' value\n  // computed by the slow path, in case this power-of-2 output is also an\n  // underflow, which will depend on those registers.\n  MOV     r5, #0x00100000         // high word of quotient mantissa = 1<<20\n  MOV     r7, #0                  // low word of quotient mantissa = 0\n  MOV     r6, #0                  // high word of residual = 0\n  MOV     r8, #0                  // low word of residual = 0\n  B       ddiv_corrected\n\nddiv_underflow:\n  // We come here to handle underflow. The output double, constructed naïvely\n  // from the out-of-range exponent, is in ah:al. We expect in this situation\n  // that we've _always_ come via either the ddiv_correction slow path or the\n  // ddiv_result_is_power_of_2 special case, both of which will have set up a\n  // residual value in r6:r8 equal to q*b - a*2^k (for appropriate k). This\n  // value is positive if the quotient is slightly above the true value (i.e.\n  // was rounded up), or negative if the quotient was rounded down. But we must\n  // also distinguish the third case of the residual being exactly zero.\n  ADD     ah, ah, #0x60000000     // apply IEEE 754 exponent bias for __dunder\n  ORRS    r12, r6, r8             // set r12=0 and Z=1 if quotient was exact\n  MOVNE   r12, #1                 // otherwise, set r12 = +1\n  ORRNE   r12, r12, r6, ASR #31   // and change to -1 if residual is negative\n  POP     {r4,r5,r6,r7,r8,lr}     // pop all locally saved registers\n  B       __dunder                // and tailcall __dunder to finish\n\nddiv_zerodenorm:\n  // We come here if either input had exponent 0, so there's at least one zero\n  // or denormal. However, we know there are no infinities or NaNs, because\n  // those were checked first and will have gone to ddiv_naninf below.\n  //\n  // First we must repeat the instruction which extracted the exponent of b\n  // into r5, this time unconditionally, in case the setup code didn't do it.\n  AND     r5, r12, bh, LSR #4\n\n  // If either or both input is actually zero, the answer is easy.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:13", "text": "// value is positive if the quotient is slightly above the true value (i.e.\n  // was rounded up), or negative if the quotient was rounded down. But we must\n  // also distinguish the third case of the residual being exactly zero.\n  ADD     ah, ah, #0x60000000     // apply IEEE 754 exponent bias for __dunder\n  ORRS    r12, r6, r8             // set r12=0 and Z=1 if quotient was exact\n  MOVNE   r12, #1                 // otherwise, set r12 = +1\n  ORRNE   r12, r12, r6, ASR #31   // and change to -1 if residual is negative\n  POP     {r4,r5,r6,r7,r8,lr}     // pop all locally saved registers\n  B       __dunder                // and tailcall __dunder to finish\n\nddiv_zerodenorm:\n  // We come here if either input had exponent 0, so there's at least one zero\n  // or denormal. However, we know there are no infinities or NaNs, because\n  // those were checked first and will have gone to ddiv_naninf below.\n  //\n  // First we must repeat the instruction which extracted the exponent of b\n  // into r5, this time unconditionally, in case the setup code didn't do it.\n  AND     r5, r12, bh, LSR #4\n\n  // If either or both input is actually zero, the answer is easy.\n  ORRS    lr, al, ah, LSL #1    // is a zero?\n  BEQ     ddiv_azero\n  ORRS    lr, bl, bh, LSL #1    // is b zero?\n  BEQ     ddiv_divbyzero\n\n  // Otherwise, delegate to __dnorm2 to handle denormals, converting them into\n  // a normalised mantissa and an out-of-range exponent. __dnorm2 expects the\n  // exponents at the bottom of their words instead of half way up, so shift\n  // down first.\n  LSR     r4, r4, #16\n  LSR     r5, r5, #16\n  PUSH    {r0, r1, r2, r3, r4, r5} // create a 'struct dnorm2' on the stack\n  MOV     r0, sp                   // pass it by address\n  BL      __dnorm2\n  POP     {r0, r1, r2, r3, r4, r5}\n\n  // Rejoin the main code, with the exponent difference in the top half of r4,\n  // and the output sign in the low bit of r4. (The original setup code did the\n  // latter, but we clobbered it while setting up for __dnorm2.)\n  SUBS    r4, r4, r5               // exponent difference, at the bottom of r4\n  LSLS    r4, r4, #16              // move it up to the right place\n  ORR     r4, r4, r6, LSR #31      // recover output sign from top bit of r6\n  B       ddiv_normalised          // rejoin the main code\n\nddiv_azero:\n  // We come here if a=0. We return 0 (of the right sign) if b is not 0, and\n  // the default quiet NaN if both inputs are zero.\n  ORRS    lr, bl, bh, LSL #1       // is b zero?\n  BEQ     ddiv_ivo_pop             // if so, pop registers and return a NaN\n  // We know al=0 already, so we only need to reset ah to contain the right\n  // output sign. The setup code left that in the high bit of r6.\n  AND     ah, r6, #0x80000000\n  POP     {r4,r5,r6,r7,r8,pc}\n\nddiv_divbyzero:\n  // We come here if b=0, but a is not 0 (or we'd have gone to ddiv_azero above\n  // instead). So we're dividing a nonzero number by zero, and must return\n  // infinity.\n  POP     {r4,r5,r6,r7,r8,lr}\n  EOR     ah, ah, bh               // combine signs to get result sign", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:14", "text": "LSLS    r4, r4, #16              // move it up to the right place\n  ORR     r4, r4, r6, LSR #31      // recover output sign from top bit of r6\n  B       ddiv_normalised          // rejoin the main code\n\nddiv_azero:\n  // We come here if a=0. We return 0 (of the right sign) if b is not 0, and\n  // the default quiet NaN if both inputs are zero.\n  ORRS    lr, bl, bh, LSL #1       // is b zero?\n  BEQ     ddiv_ivo_pop             // if so, pop registers and return a NaN\n  // We know al=0 already, so we only need to reset ah to contain the right\n  // output sign. The setup code left that in the high bit of r6.\n  AND     ah, r6, #0x80000000\n  POP     {r4,r5,r6,r7,r8,pc}\n\nddiv_divbyzero:\n  // We come here if b=0, but a is not 0 (or we'd have gone to ddiv_azero above\n  // instead). So we're dividing a nonzero number by zero, and must return\n  // infinity.\n  POP     {r4,r5,r6,r7,r8,lr}\n  EOR     ah, ah, bh               // combine signs to get result sign\n  B       ddiv_retinf\n\nddiv_naninf:\n  // We come here knowing that at least one operand is either NaN or infinity.\n  // If there's a NaN, we can tailcall __dnan2 to do the right thing. Pop our\n  // stacked registers first: we won't need that much spare space any more, and\n  // it makes the tailcall easier if we've already done it.\n  POP     {r4,r5,r6,r7,r8,lr}\n\n  // A number is a NaN if its exponent is 0x7ff and at least one bit below that\n  // is set. The CMP + ADC pair here converts the two words ah:al into a single\n  // word containing ah shifted up by one (throwing away the sign bit which\n  // makes no difference), with its low bit set if al was nonzero. So if that\n  // is strictly greater than 0xffe00000, then a was a NaN.\n  CMP     al, #1\n  ADC     r12, ah, ah\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n  // Now check b in the same way.\n  CMP     bl, #1\n  ADC     r12, bh, bh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n\n  // Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // both operands are infinity then we have inf / inf = invalid operation and\n  // must return a NaN. We detect this by XORing the inputs' exponent fields:\n  // knowing one of them is 7FF, they XOR to zero iff the other one is too.\n  EORS    r12, ah, bh              // XOR entire top words of the inputs\n  LSL     r12, r12, #1             // shift left to discard the sign bit\n  LSRS    r12, r12, #21            // shift right again to discard mantissas\n  BEQ     ddiv_ivo                 // if what's left is 0, we have inf / inf\n\n  // Otherwise, there's exactly one infinity, so our answers are easy, but\n  // depend on which operand it is:\n  //   infinity / anything = infinity\n  //   anything / infinity = 0\n  //\n  // Determine if a is the infinity, by bitwise inverting the whole word and\n  // then shifting left and right to isolate its exponent bits.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:15", "text": "ADC     r12, bh, bh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n\n  // Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // both operands are infinity then we have inf / inf = invalid operation and\n  // must return a NaN. We detect this by XORing the inputs' exponent fields:\n  // knowing one of them is 7FF, they XOR to zero iff the other one is too.\n  EORS    r12, ah, bh              // XOR entire top words of the inputs\n  LSL     r12, r12, #1             // shift left to discard the sign bit\n  LSRS    r12, r12, #21            // shift right again to discard mantissas\n  BEQ     ddiv_ivo                 // if what's left is 0, we have inf / inf\n\n  // Otherwise, there's exactly one infinity, so our answers are easy, but\n  // depend on which operand it is:\n  //   infinity / anything = infinity\n  //   anything / infinity = 0\n  //\n  // Determine if a is the infinity, by bitwise inverting the whole word and\n  // then shifting left and right to isolate its exponent bits.\n  MVN     r12, ah, LSL #1          // invert a, shift left to discard sign\n  LSRS    r12, r12, #21            //   and shift right to discard mantissa\n  EOR     ah, ah, bh               // calculate the output sign bit\n  BEQ     ddiv_retinf              // if a = inf, return infinity of that sign\n  MOV     al, #0                   // otherwise clear all bits of a\n  AND     ah, ah, #0x80000000      //   other than the sign bit\n  BX      lr                       //   and return zero of the same sign\nddiv_retinf:\n  // Construct and return an infinity in ah:al, with whatever sign bit is\n  // already in the top bit of ah.\n  MOV     al, #0                   // clear low word\n  MVN     ah, ah, LSR #31          // shift ah[31] down to bit 0, inverted\n  MVN     ah, ah, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     ah, ah, #20              // shift back up to the top\n  BX      lr\n\n  // Code to construct and return the default quiet NaN, for the cases inf/inf\n  // and 0/0. We provide two entry labels, one for callers who still need to\n  // pop all the registers this function pushed, and one for callers who have\n  // done that already.\nddiv_ivo_pop:\n  POP     {r4,r5,r6,r7,r8,lr}\nddiv_ivo:\n  MOVW    ah, 0x7ff8\n  LSLS    ah, ah, #16\n  MOV     al, #0\n  BX      lr\n\n  // Table of approximate reciprocals, generated by running\n  //\n  // fp/aux/ddiv-prove.py --print-table\n  //\n  // which calculates the table entries using the same code that provides them\n  // to the Gappa error analysis proof.\nreciptbl:\n  .byte 0xFF,0xFD,0xFB,0xF9,0xF7,0xF5,0xF4,0xF2\n  .byte 0xF0,0xEE,0xED,0xEB,0xE9,0xE8,0xE6,0xE4\n  .byte 0xE3,0xE1,0xE0,0xDE,0xDD,0xDB,0xDA,0xD8\n  .byte 0xD7,0xD5,0xD4,0xD3,0xD1,0xD0,0xCF,0xCD\n  .byte 0xCC,0xCB,0xCA,0xC8,0xC7,0xC6,0xC5,0xC4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 561, "line_end": 620}
{"id": "ARM-software/optimized-routines:fp/at32/ddiv.S:16", "text": "ddiv_ivo_pop:\n  POP     {r4,r5,r6,r7,r8,lr}\nddiv_ivo:\n  MOVW    ah, 0x7ff8\n  LSLS    ah, ah, #16\n  MOV     al, #0\n  BX      lr\n\n  // Table of approximate reciprocals, generated by running\n  //\n  // fp/aux/ddiv-prove.py --print-table\n  //\n  // which calculates the table entries using the same code that provides them\n  // to the Gappa error analysis proof.\nreciptbl:\n  .byte 0xFF,0xFD,0xFB,0xF9,0xF7,0xF5,0xF4,0xF2\n  .byte 0xF0,0xEE,0xED,0xEB,0xE9,0xE8,0xE6,0xE4\n  .byte 0xE3,0xE1,0xE0,0xDE,0xDD,0xDB,0xDA,0xD8\n  .byte 0xD7,0xD5,0xD4,0xD3,0xD1,0xD0,0xCF,0xCD\n  .byte 0xCC,0xCB,0xCA,0xC8,0xC7,0xC6,0xC5,0xC4\n  .byte 0xC2,0xC1,0xC0,0xBF,0xBE,0xBD,0xBC,0xBB\n  .byte 0xBA,0xB9,0xB8,0xB7,0xB6,0xB5,0xB4,0xB3\n  .byte 0xB2,0xB1,0xB0,0xAF,0xAE,0xAD,0xAC,0xAB\n  .byte 0xAA,0xA9,0xA8,0xA8,0xA7,0xA6,0xA5,0xA4\n  .byte 0xA3,0xA3,0xA2,0xA1,0xA0,0x9F,0x9F,0x9E\n  .byte 0x9D,0x9C,0x9C,0x9B,0x9A,0x99,0x99,0x98\n  .byte 0x97,0x97,0x96,0x95,0x95,0x94,0x93,0x93\n  .byte 0x92,0x91,0x91,0x90,0x8F,0x8F,0x8E,0x8E\n  .byte 0x8D,0x8C,0x8C,0x8B,0x8B,0x8A,0x89,0x89\n  .byte 0x88,0x88,0x87,0x87,0x86,0x85,0x85,0x84\n  .byte 0x84,0x83,0x83,0x82,0x82,0x81,0x81,0x80\n\n  .size arm_fp_ddiv, .-arm_fp_ddiv", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ddiv.S", "license": "MIT", "commit": "2097059fad5768825e157ea2e8b7dd0ec6a3b374", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2097059fad5768825e157ea2e8b7dd0ec6a3b374/fp/at32/ddiv.S", "line_start": 601, "line_end": 633}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:1", "text": "// Double-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_dmul\n  .type arm_fp_dmul,%function\narm_fp_dmul:\n\n  PUSH    {r4,r5,r6,lr}\n\n  // Check if either input exponent is 000 or 7FF (i.e. not a normalized\n  // number), and if so, branch out of line. If we don't branch out of line,\n  // then we've also extracted the exponents of the input values x and y into\n  // bits 16..26 of r14 and r5 respectively. But if we do, then that hasn't\n  // necessarily been done (because the second AND might have been skipped).\n  LDR     r12, =0x07FF0000\n  ANDS    r14, r12, xh, LSR #4 // sets Z if exponent of x is 0\n  ANDSNE  r5, r12, yh, LSR #4  // otherwise, sets Z if exponent of y is 0\n  TEQNE   r14, r12             // otherwise, sets Z if exponent of x is 7FF\n  TEQNE   r5, r12              // otherwise, sets Z if exponent of y is 7FF\n  BEQ     dmul_uncommon        // branch out of line to handle inf/NaN/0/denorm\n\n  // Calculate the sign of the result, and put it in an unused bit of r14.\n  EOR     r4, xh, yh           // XOR the input signs to get the result sign\n  ORR     r14, r14, r4, LSR #31 // save it in the low bit of r14\n\n  // Clear the exponent and sign bits from the top word of each mantissa, and\n  // set the leading mantissa bit in each one, so that they're in the right\n  // form to be multiplied.\n  BIC     xh, xh, r12, LSL #5     // r12 = 0x07FF0000, so r12 << 5 = 0xFF800000\n  BIC     yh, yh, r12, LSL #5\n  ORR     xh, xh, #1<<20\n  ORR     yh, yh, #1<<20\n\n  // Now we're ready to multiply mantissas. This is also the place we'll come\n  // back to after decoding denormal inputs. The denormal decoding will also\n  // have to set up the same register contents:\n  //  - fractions in xh/xl and yh/yl, with leading bits at bit 20 of xh/yh\n  //  - exponents in r14 and r5, starting at bit 16\n  //  - output sign in r14 bit 0\ndmul_mul:\n\n  // Multiply the two mantissas as if they were full 64-bit words, delivering a\n  // 128-bit output in four registers. We provide three different ways to do\n  // this, using different instructions.\n  //\n  // Interleaved with the multiplication code, we also compute the output\n  // exponent by adding the input exponents and rebiasing. This takes two\n  // instructions. We schedule each one after a multiplication, to use a delay\n  // slot from the multiplication on CPUs where there is one.\n  //\n  // We add r5 to r14, so that the output exponent is in the top half of r14,\n  // and r5 is freed up to be used in the multiplication.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:3", "text": "UMULL   r12, r5, xl, yl\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  UMAAL   r6, r5, xl, yh\n  UMAAL   r5, r4, xh, yh\n#elif ARM_FP_DMUL_USE_UMLAL\n  // The UMLAL instruction computes a 64-bit product and adds a 64-bit value to\n  // it. But it doesn't write to the carry flag, so you can't tell if the\n  // addition wrapped. Therefore you have to use it in a way that means the\n  // addition never wraps. Here we do three of the four multiplications (xl*yl,\n  // xl*yh, xh*yh) in a chain, using UMLAL for the top two, in each case with\n  // the 64-bit accumulator consisting of the top half of the previous\n  // multiplication, and a high word set to zero before the UMLAL instruction.\n  //\n  // On Cortex-M3, this is not a win over just using UMULL and doing the\n  // additions by hand, because UMLAL takes two cycles longer than UMULL, and\n  // it also costs a cycle to initialise each of the two high accumulator words\n  // to zero. If the high word of the addend were not zero then those two\n  // cycles would be doing something useful, but as it is, they're wasted time.\n  //\n  // CPUs later than Cortex-M3 - in particular, Cortex-M4 - will do both UMLAL\n  // and UMULL much faster, so that this code is a win over the plain UMULL\n  // code below. But those CPUs typically have UMAAL anyway and will use the\n  // even faster version of the code above. So this code is provided in case\n  // it's useful, but won't be enabled unless you manually #define\n  // ARM_FP_DMUL_USE_UMLAL.\n  UMULL   r12, r6, xl, yl\n  ADD     r14, r14, r5             // add exponents, freeing up r5\n  MOVS    r5, #0\n  UMLAL   r6, r5, xl, yh\n  MOVS    r4, #0\n  UMLAL   r5, r4, xh, yh\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  UMULL   xl, yh, xh, yl\n  ADDS    r6, r6, xl\n  ADCS    r5, r5, yh\n  ADC     r4, r4, #0\n#else\n  // Simplest approach, using plain UMULL to compute each 64-bit product, and\n  // separate ADD and ADC instructions to do the additions. On Cortex-M3 this\n  // wins over the UMLAL approach: it's one instruction longer, but three\n  // cycles quicker, since each use of UMLAL in the above version costs 2\n  // cycles.\n  UMULL   r4, r12, xh, yl\n  ADD     r14, r14, r5             // add exponents, freeing up r5\n  UMULL   r6, r5, xl, yh\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  ADDS    r6, r6, r4\n  ADCS    r5, r5, r12              // carry from here is used below\n\n  UMULL   r4, r12, xh, yh          // r12:r4 is top part\n  ADC     yh, r12, #0              // get carry from above addition\n  UMULL   r12, xh, xl, yl          // xh:r12 is bottom part\n\n  ADDS    r6, r6, xh\n  ADCS    r5, r5, r4\n  ADCS    r4, yh, #0\n#endif\n\n  // Now the full 128-bit product of the two mantissas occupies the four\n  // registers r4,r5,r6,r12 (in order from MSW to LSW). Since each input", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:4", "text": "// cycles quicker, since each use of UMLAL in the above version costs 2\n  // cycles.\n  UMULL   r4, r12, xh, yl\n  ADD     r14, r14, r5             // add exponents, freeing up r5\n  UMULL   r6, r5, xl, yh\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  ADDS    r6, r6, r4\n  ADCS    r5, r5, r12              // carry from here is used below\n\n  UMULL   r4, r12, xh, yh          // r12:r4 is top part\n  ADC     yh, r12, #0              // get carry from above addition\n  UMULL   r12, xh, xl, yl          // xh:r12 is bottom part\n\n  ADDS    r6, r6, xh\n  ADCS    r5, r5, r4\n  ADCS    r4, yh, #0\n#endif\n\n  // Now the full 128-bit product of the two mantissas occupies the four\n  // registers r4,r5,r6,r12 (in order from MSW to LSW). Since each input\n  // mantissa was in the range [2^52,2^53), the product is in the range\n  // [2^104,2^106), which means that the lowest-order word r12 is a long way\n  // below the round bit, so that it can only affect cases so close to a\n  // rounding boundary that you need to know if it's nonzero to tell whether\n  // you're rounding to even. Start by freeing up that register, ensuring the\n  // low bit of r6 is set if anything in r12 was nonzero.\n  TST     r12, r12\n  ORRNE   r6, r6, #1\n\n  // Now we can regard the result as a 96-bit value in r4,r5,r6, with its\n  // leading bit in either bit 8 or 9 of r4. To move that bit up to its final\n  // position in bit 20, we must shift the whole thing left by either 11 or 12\n  // bits. Find out which.\n  TST     r4, #0x200               // is bit 9 set?\n  BNE     dmul_shift11             // if so, only shift by 11 bits\n\n  // In this branch, we're shifting left by 12 bits. Put the shifted result\n  // back into the output registers xh,xl, and the bits lower than the bottom\n  // mantissa bit into r4.\n  LSLS    xh, r4, #12              // shift each input reg left 12\n  LSLS    xl, r5, #12\n  LSLS    r4, r6, #12\n  ORR     xh, xh, r5, LSR #20      // and the top two right by 32-12\n  ORR     xl, xl, r6, LSR #20\n\n  B       dmul_shifted\n\ndmul_shift11:\n  // In this branch, we're shifting left by 11 bits instead of 12, and we must\n  // adjust the exponent by 1 to compensate.\n  LSLS    xh, r4, #11              // shift each input reg left 11\n  LSLS    xl, r5, #11\n  LSLS    r4, r6, #11\n  ORR     xh, xh, r5, LSR #21      // and the top two right by 32-11\n  ORR     xl, xl, r6, LSR #21\n  ADD     r14, r14, #0x10000       // adjust the exponent\n\ndmul_shifted:\n  // We've reconverged after shifting the mantissa, so that now the leading 1\n  // bit of the mantissa is in bit 20 of xh, and r4 contains the bits lower", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:5", "text": "LSLS    xl, r5, #12\n  LSLS    r4, r6, #12\n  ORR     xh, xh, r5, LSR #20      // and the top two right by 32-12\n  ORR     xl, xl, r6, LSR #20\n\n  B       dmul_shifted\n\ndmul_shift11:\n  // In this branch, we're shifting left by 11 bits instead of 12, and we must\n  // adjust the exponent by 1 to compensate.\n  LSLS    xh, r4, #11              // shift each input reg left 11\n  LSLS    xl, r5, #11\n  LSLS    r4, r6, #11\n  ORR     xh, xh, r5, LSR #21      // and the top two right by 32-11\n  ORR     xl, xl, r6, LSR #21\n  ADD     r14, r14, #0x10000       // adjust the exponent\n\ndmul_shifted:\n  // We've reconverged after shifting the mantissa, so that now the leading 1\n  // bit of the mantissa is in bit 20 of xh, and r4 contains the bits lower\n  // than the bottom of xl.\n\n  // Recombine the sign and exponent into the high bits of xh. If the exponent\n  // is over- or underflowed, this may not give a valid FP result, but because\n  // everything is put on by addition, it will be right \"mod 2^64\" so that we\n  // can bias the exponent back into range for underflow handling and that will\n  // recover the right sign.\n  //\n  // r14 still has the output sign in its low bit. To extract just the exponent\n  // for adding to xh, we could use BIC to clear that bit, or shift the value\n  // right. We do the latter, which saves a copy of the pre-rounding exponent\n  // in yl, to use later for overflow detection. The shift is ASR, so that if\n  // the exponent is negative due to underflow, it stays negative.\n  ASR     yl, r14, #16             // isolate the exponent\n  ADD     xh, xh, yl, LSL #20      // shift it back up to add to xh\n  ADD     xh, xh, r14, LSL #31     // then add the sign\n\n  // If we have to handle an underflow, we'll need enough information to\n  // reconstruct the rounding direction. Our strategy is\n  //\n  //  - save the LSW of the output before rounding: if that differs from the\n  //    LSW after rounding then we rounded up\n  //  - save the round word r4: if that is zero then we didn't round at all.\n  //\n  // We're going to branch past the rounding code for a quicker exit in the\n  // case where we're exact. In that case we don't need to save the output LSW\n  // at all, because the zero round word will override whatever it would have\n  // been anyway.\n  MOVS    r6, r4                   // unconditionally save round word\n  BEQ     dmul_rounded             // branch past rounding code if exact\n  MOV     r5, xl                   // and if not, save output LSW too\n\n  // Rounding: we shift r4 left to put the round bit into the carry flag so\n  // that ADCS+ADC will conditionally increment the mantissa. But before we do\n  // the additions, we also check the Z flag, which tells us whether the\n  // remaining 31 bits are all zero. If so, we're either in the round-to-even\n  // (RTE) halfway case, or the exact case - but the exact case never came\n  // through this code at all, so it must be RTE.\n  //\n  // If those 31 bits _aren't_ all zero, we clear the top bit of r4, leaving it", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:6", "text": "//  - save the LSW of the output before rounding: if that differs from the\n  //    LSW after rounding then we rounded up\n  //  - save the round word r4: if that is zero then we didn't round at all.\n  //\n  // We're going to branch past the rounding code for a quicker exit in the\n  // case where we're exact. In that case we don't need to save the output LSW\n  // at all, because the zero round word will override whatever it would have\n  // been anyway.\n  MOVS    r6, r4                   // unconditionally save round word\n  BEQ     dmul_rounded             // branch past rounding code if exact\n  MOV     r5, xl                   // and if not, save output LSW too\n\n  // Rounding: we shift r4 left to put the round bit into the carry flag so\n  // that ADCS+ADC will conditionally increment the mantissa. But before we do\n  // the additions, we also check the Z flag, which tells us whether the\n  // remaining 31 bits are all zero. If so, we're either in the round-to-even\n  // (RTE) halfway case, or the exact case - but the exact case never came\n  // through this code at all, so it must be RTE.\n  //\n  // If those 31 bits _aren't_ all zero, we clear the top bit of r4, leaving it\n  // set only in the round-to-even case. Then (r4 >> 31) can be used to clear\n  // the low bit to perform RTE.\n  LSLS    r12, r4, #1              // test round word\n  BICNE   r4, r4, #0x80000000      // make top bit of r4 into the RTE bit\n  ADCS    xl, xl, #0               // conditionally increment the mantissa\n  ADC     xh, xh, #0               // ... and carry into its high word\n  BIC     xl, xl, r4, LSR #31      // round to even if r4[31] != 0\n\ndmul_rounded:\n  // Now we've rounded the output. The last thing we must do is check for\n  // overflow and underflow: if neither has happened, we can return.\n  //\n  // yl contains the pre-rounding output exponent minus 1 (so that the leading\n  // mantissa bit incremented it to the right output value). If this is in the\n  // range [0,0x7fd] then the leading bit would have incremented it to\n  // [1,0x7fe], which are non-overflowed output exponents. So an unsigned check\n  // if yl >= 0x7fe detects both overflow and underflow at once.\n  MOVW    r12, #0x7FE\n  CMP     yl, r12\n  POPLO   {r4,r5,r6,pc}\n\n  // We have either an underflow or an overflow. We can tell which it is by\n  // doing a _signed_ comparison of yl with the same value again - and since we\n  // only just did the CMP instruction, we can reuse the same flags.\n  BGE     dmul_overflow\n\n  // Now we're dealing with an underflow. Set r2 to the rounding direction, by\n  // first checking xl against r5 (where we saved its pre-rounding value) to\n  // see if we rounded up or down, and then overriding that by checking r6\n  // (where we saved the round word) to see if we didn't round at all. In the\n  // latter case the comparison against r5 will deliver nonsense, but then we\n  // overwrite it, so it doesn't matter.\n  CMP     xl, r5                   // did we modify the LSW, i.e. round up?\n  MOVNE   r2, #-1                  // if so, the true value is a bit smaller\n  MOVEQ   r2, #+1                  // else it's a bit bigger\n  CMP     r6, #0                   // except maybe we didn't round at all\n  MOVEQ   r2, #0                   // in which case the true value is exact.\n\n  // Add the IEEE 754 exponent bias, and tail-call __dunder to handle the rest\n  // of the job.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:7", "text": "// We have either an underflow or an overflow. We can tell which it is by\n  // doing a _signed_ comparison of yl with the same value again - and since we\n  // only just did the CMP instruction, we can reuse the same flags.\n  BGE     dmul_overflow\n\n  // Now we're dealing with an underflow. Set r2 to the rounding direction, by\n  // first checking xl against r5 (where we saved its pre-rounding value) to\n  // see if we rounded up or down, and then overriding that by checking r6\n  // (where we saved the round word) to see if we didn't round at all. In the\n  // latter case the comparison against r5 will deliver nonsense, but then we\n  // overwrite it, so it doesn't matter.\n  CMP     xl, r5                   // did we modify the LSW, i.e. round up?\n  MOVNE   r2, #-1                  // if so, the true value is a bit smaller\n  MOVEQ   r2, #+1                  // else it's a bit bigger\n  CMP     r6, #0                   // except maybe we didn't round at all\n  MOVEQ   r2, #0                   // in which case the true value is exact.\n\n  // Add the IEEE 754 exponent bias, and tail-call __dunder to handle the rest\n  // of the job.\n  ADD     xh, xh, #0x60000000\n  POP     {r4,r5,r6,lr}\n  B       __dunder\n\ndmul_overflow:\n  // Here, we overflowed, so we must return an infinity of the correct sign.\n  // Rebias the exponent, which corrects the sign bit.\n  SUB     xh, xh, #0x60000000\n\n  // And pop our scratch registers before falling through into dmul_retinf.\n  POP     {r4,r5,r6,lr}\n\ndmul_retinf:\n  // This is entered from the overflow handler and also from cases with\n  // infinite inputs. It constructs an infinity, with sign bit equal to the\n  // high bit of xh.\n  //\n  // On entry to here, we expect not to have a stack frame any more, because\n  // one of our callers will have popped it already in order to conditionally\n  // tailcall __dnan2.\n  MOV     xl, #0                   // clear low word\n  MVN     xh, xh, LSR #31          // shift xh[31] down to bit 0, inverted\n  MVN     xh, xh, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     xh, xh, #20              // shift back up to the top\n  BX      lr\n\ndmul_uncommon:\n  // We come here from the entry point, if any input had exponent 0 or 0x7ff.\n  // First we must repeat the instruction from the entry point that sets up r5\n  // with the exponent of y, this time unconditionally, so we know we have both\n  // exponents in the top halves of r14 and r5.\n  AND     r5, r12, yh, LSR #4\n\n  // Check if either exponent is 0x7ff, by comparing against the value left in\n  // r12 by the entry point. If so, branch away to handle NaNs and infinities.\n  TEQ     r14, r12\n  TEQNE   r5, r12\n  BEQ     dmul_naninf\n\n  // If we didn't branch, we're dealing with finite numbers, including a zero", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:8", "text": "MOV     xl, #0                   // clear low word\n  MVN     xh, xh, LSR #31          // shift xh[31] down to bit 0, inverted\n  MVN     xh, xh, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     xh, xh, #20              // shift back up to the top\n  BX      lr\n\ndmul_uncommon:\n  // We come here from the entry point, if any input had exponent 0 or 0x7ff.\n  // First we must repeat the instruction from the entry point that sets up r5\n  // with the exponent of y, this time unconditionally, so we know we have both\n  // exponents in the top halves of r14 and r5.\n  AND     r5, r12, yh, LSR #4\n\n  // Check if either exponent is 0x7ff, by comparing against the value left in\n  // r12 by the entry point. If so, branch away to handle NaNs and infinities.\n  TEQ     r14, r12\n  TEQNE   r5, r12\n  BEQ     dmul_naninf\n\n  // If we didn't branch, we're dealing with finite numbers, including a zero\n  // or a denormal or both.\n  //\n  // First save the output sign.\n  EOR     r6, xh, yh\n\n  // Handle zeroes first, because if there's a zero we don't have to worry\n  // about denormals at all.\n  ORRS    r4, xl, xh, LSL #1      // is x zero?\n  ORRSNE  r4, yl, yh, LSL #1      // or is y zero?\n  BEQ     dmul_retzero            // Return zero if so\n\n  // Otherwise, delegate to __dnorm2 to handle denormals, converting them into\n  // a normalised mantissa and an out-of-range exponent. __dnorm2 expects the\n  // exponents at the bottom of their words instead of half way up, so shift\n  // down first, and back up again afterwards.\n  //\n  // This call clobbers r12, because we didn't bother to save it on the stack.\n  // That's fine, because we don't need the constant in it any more. When we go\n  // back to dmul_mul, that will use it as a scratch register.\n  LSR     r4, r14, #16\n  LSR     r5, r5, #16\n  PUSH    {r0, r1, r2, r3, r4, r5} // create a 'struct dnorm2' on the stack\n  MOV     r0, sp                   // pass it by address\n  BL      __dnorm2\n  POP     {r0, r1, r2, r3, r4, r5}\n  LSL     r14, r4, #16\n  LSLS    r5, r5, #16\n\n  // Put the output sign at the bottom of r14, the same place the fast path\n  // would have left it. Then rejoin the fast path.\n  ORR     r14, r14, r6, LSR #31\n  B       dmul_mul\n\ndmul_retzero:\n  // Return an exact zero, with sign bit from the high bit of r6.\n  MOV     xl, #0                  // low word is 0\n  ANDS    xh, r6, #0x80000000     // high word is 0 except for the sign\n  POP     {r4,r5,r6,pc}\n\ndmul_naninf:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:9", "text": "LSR     r5, r5, #16\n  PUSH    {r0, r1, r2, r3, r4, r5} // create a 'struct dnorm2' on the stack\n  MOV     r0, sp                   // pass it by address\n  BL      __dnorm2\n  POP     {r0, r1, r2, r3, r4, r5}\n  LSL     r14, r4, #16\n  LSLS    r5, r5, #16\n\n  // Put the output sign at the bottom of r14, the same place the fast path\n  // would have left it. Then rejoin the fast path.\n  ORR     r14, r14, r6, LSR #31\n  B       dmul_mul\n\ndmul_retzero:\n  // Return an exact zero, with sign bit from the high bit of r6.\n  MOV     xl, #0                  // low word is 0\n  ANDS    xh, r6, #0x80000000     // high word is 0 except for the sign\n  POP     {r4,r5,r6,pc}\n\ndmul_naninf:\n  // We come here knowing that at least one operand is either NaN or infinity.\n  // If there's a NaN, we can tailcall __dnan2 to do the right thing. Pop our\n  // stacked registers first: we won't need that much spare space any more, and\n  // it makes the tailcall easier if we've already done it.\n  POP     {r4,r5,r6,lr}\n\n  // A number is a NaN if its exponent is 0x7ff and at least one bit below that\n  // is set. The CMP + ADC pair here converts the two words xh:xl into a single\n  // word containing xh shifted up by one (throwing away the sign bit which\n  // makes no difference), with its low bit set if xl was nonzero. So if that\n  // is strictly greater than 0xffe00000, then x was a NaN.\n  CMP     xl, #1\n  ADC     r12, xh, xh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n  // Now check y in the same way.\n  CMP     yl, #1\n  ADC     r12, yh, yh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n\n  // Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // either operand is zero then we have inf * 0 = invalid operation and must\n  // return a NaN.\n  ORRS    r12, xl, xh, LSL #1     // are all bits of x zero except the sign?\n  BEQ     dmul_retnan             // if so, x == 0, so y == inf\n  ORRS    r12, yl, yh, LSL #1     // same check the other way round\n  BEQ     dmul_retnan\n\n  // If we have an infinity and no NaN, then we just return an infinity of the\n  // correct sign.\n  EOR     xh, xh, yh\n  B       dmul_retinf\n\ndmul_retnan:\n  // Return the default NaN, in the case where the inputs were 0 and infinity.\n  MOVW    xh, 0x7ff8\n  LSLS    xh, xh, #16\n  MOV     xl, #0\n  BX      lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:10", "text": "// Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // either operand is zero then we have inf * 0 = invalid operation and must\n  // return a NaN.\n  ORRS    r12, xl, xh, LSL #1     // are all bits of x zero except the sign?\n  BEQ     dmul_retnan             // if so, x == 0, so y == inf\n  ORRS    r12, yl, yh, LSL #1     // same check the other way round\n  BEQ     dmul_retnan\n\n  // If we have an infinity and no NaN, then we just return an infinity of the\n  // correct sign.\n  EOR     xh, xh, yh\n  B       dmul_retinf\n\ndmul_retnan:\n  // Return the default NaN, in the case where the inputs were 0 and infinity.\n  MOVW    xh, 0x7ff8\n  LSLS    xh, xh, #16\n  MOV     xl, #0\n  BX      lr\n\n  .size arm_fp_dmul, .-arm_fp_dmul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/dmul.S", "line_start": 361, "line_end": 382}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:1", "text": "// Double-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_dmul\n  .type arm_fp_dmul,%function\narm_fp_dmul:\n\n  PUSH    {r4,r5,r6,lr}\n\n  // Check if either input exponent is 000 or 7FF (i.e. not a normalized\n  // number), and if so, branch out of line. If we don't branch out of line,\n  // then we've also extracted the exponents of the input values x and y into\n  // bits 16..26 of r14 and r5 respectively. But if we do, then that hasn't\n  // necessarily been done (because the second AND might have been skipped).\n  LDR     r12, =0x07FF0000\n  ANDS    r14, r12, xh, LSR #4 // sets Z if exponent of x is 0\n  ANDSNE  r5, r12, yh, LSR #4  // otherwise, sets Z if exponent of y is 0\n  TEQNE   r14, r12             // otherwise, sets Z if exponent of x is 7FF\n  TEQNE   r5, r12              // otherwise, sets Z if exponent of y is 7FF\n  BEQ.W   dmul_uncommon        // branch out of line to handle inf/NaN/0/denorm\n\n  // Calculate the sign of the result, and put it in an unused bit of r14.\n  EOR     r4, xh, yh           // XOR the input signs to get the result sign\n  ORR     r14, r14, r4, LSR #31 // save it in the low bit of r14\n\n  // Clear the exponent and sign bits from the top word of each mantissa, and\n  // set the leading mantissa bit in each one, so that they're in the right\n  // form to be multiplied.\n  BIC     xh, xh, r12, LSL #5     // r12 = 0x07FF0000, so r12 << 5 = 0xFF800000\n  BIC     yh, yh, r12, LSL #5\n  ORR     xh, xh, #1<<20\n  ORR     yh, yh, #1<<20\n\n  // Now we're ready to multiply mantissas. This is also the place we'll come\n  // back to after decoding denormal inputs. The denormal decoding will also\n  // have to set up the same register contents:\n  //  - fractions in xh/xl and yh/yl, with leading bits at bit 20 of xh/yh\n  //  - exponents in r14 and r5, starting at bit 16\n  //  - output sign in r14 bit 0\ndmul_mul:\n\n  // Multiply the two mantissas as if they were full 64-bit words, delivering a\n  // 128-bit output in four registers. We provide three different ways to do\n  // this, using different instructions.\n  //\n  // Interleaved with the multiplication code, we also compute the output\n  // exponent by adding the input exponents and rebiasing. This takes two\n  // instructions. We schedule each one after a multiplication, to use a delay\n  // slot from the multiplication on CPUs where there is one.\n  //\n  // We add r5 to r14, so that the output exponent is in the top half of r14,\n  // and r5 is freed up to be used in the multiplication.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/dmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:7", "text": "// We have either an underflow or an overflow. We can tell which it is by\n  // doing a _signed_ comparison of yl with the same value again - and since we\n  // only just did the CMP instruction, we can reuse the same flags.\n  BGE     dmul_overflow\n\n  // Now we're dealing with an underflow. Set r2 to the rounding direction, by\n  // first checking xl against r5 (where we saved its pre-rounding value) to\n  // see if we rounded up or down, and then overriding that by checking r6\n  // (where we saved the round word) to see if we didn't round at all. In the\n  // latter case the comparison against r5 will deliver nonsense, but then we\n  // overwrite it, so it doesn't matter.\n  CMP     xl, r5                   // did we modify the LSW, i.e. round up?\n  MOVNE   r2, #-1                  // if so, the true value is a bit smaller\n  MOVEQ   r2, #+1                  // else it's a bit bigger\n  CMP     r6, #0                   // except maybe we didn't round at all\n  MOVEQ   r2, #0                   // in which case the true value is exact.\n\n  // Add the IEEE 754 exponent bias, and tail-call __dunder to handle the rest\n  // of the job.\n  ADD     xh, xh, #0x60000000\n  POP     {r4,r5,r6,lr}\n  B.W     __dunder\n\ndmul_overflow:\n  // Here, we overflowed, so we must return an infinity of the correct sign.\n  // Rebias the exponent, which corrects the sign bit.\n  SUB     xh, xh, #0x60000000\n\n  // And pop our scratch registers before falling through into dmul_retinf.\n  POP     {r4,r5,r6,lr}\n\ndmul_retinf:\n  // This is entered from the overflow handler and also from cases with\n  // infinite inputs. It constructs an infinity, with sign bit equal to the\n  // high bit of xh.\n  //\n  // On entry to here, we expect not to have a stack frame any more, because\n  // one of our callers will have popped it already in order to conditionally\n  // tailcall __dnan2.\n  MOV     xl, #0                   // clear low word\n  MVN     xh, xh, LSR #31          // shift xh[31] down to bit 0, inverted\n  MVN     xh, xh, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     xh, xh, #20              // shift back up to the top\n  BX      lr\n\ndmul_uncommon:\n  // We come here from the entry point, if any input had exponent 0 or 0x7ff.\n  // First we must repeat the instruction from the entry point that sets up r5\n  // with the exponent of y, this time unconditionally, so we know we have both\n  // exponents in the top halves of r14 and r5.\n  AND     r5, r12, yh, LSR #4\n\n  // Check if either exponent is 0x7ff, by comparing against the value left in\n  // r12 by the entry point. If so, branch away to handle NaNs and infinities.\n  TEQ     r14, r12\n  TEQNE   r5, r12\n  BEQ     dmul_naninf\n\n  // If we didn't branch, we're dealing with finite numbers, including a zero", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/dmul.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:1", "text": "// Double-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_dmul\n  .type arm_fp_dmul,%function\narm_fp_dmul:\n\n  PUSH    {r4,r5,r6,lr}\n\n  // Check if either input exponent is 000 or 7FF (i.e. not a normalized\n  // number), and if so, branch out of line. If we don't branch out of line,\n  // then we've also extracted the exponents of the input values a and b into\n  // bits 16..26 of r14 and r5 respectively. But if we do, then that hasn't\n  // necessarily been done (because the second AND might have been skipped).\n  LDR     r12, =0x07FF0000\n  ANDS    r14, r12, ah, LSR #4 // sets Z if exponent of a is 0\n  ANDSNE  r5, r12, bh, LSR #4  // otherwise, sets Z if exponent of b is 0\n  TEQNE   r14, r12             // otherwise, sets Z if exponent of a is 7FF\n  TEQNE   r5, r12              // otherwise, sets Z if exponent of b is 7FF\n  BEQ.W   dmul_uncommon        // branch out of line to handle inf/NaN/0/denorm\n\n  // Calculate the sign of the result, and put it in an unused bit of r14.\n  EOR     r4, ah, bh           // XOR the input signs to get the result sign\n  ORR     r14, r14, r4, LSR #31 // save it in the low bit of r14\n\n  // Clear the exponent and sign bits from the top word of each mantissa, and\n  // set the leading mantissa bit in each one, so that they're in the right\n  // form to be multiplied.\n  BIC     ah, ah, r12, LSL #5     // r12 = 0x07FF0000, so r12 << 5 = 0xFF800000\n  BIC     bh, bh, r12, LSL #5\n  ORR     ah, ah, #1<<20\n  ORR     bh, bh, #1<<20\n\n  // Now we're ready to multiply mantissas. This is also the place we'll come\n  // back to after decoding denormal inputs. The denormal decoding will also\n  // have to set up the same register contents:\n  //  - fractions in ah/al and bh/bl, with leading bits at bit 20 of ah/bh\n  //  - exponents in r14 and r5, starting at bit 16\n  //  - output sign in r14 bit 0\ndmul_mul:\n\n  // Multiply the two mantissas as if they were full 64-bit words, delivering a\n  // 128-bit output in four registers. We provide three different ways to do\n  // this, using different instructions.\n  //\n  // Interleaved with the multiplication code, we also compute the output\n  // exponent by adding the input exponents and rebiasing. This takes two\n  // instructions. We schedule each one after a multiplication, to use a delay\n  // slot from the multiplication on CPUs where there is one.\n  //\n  // We add r5 to r14, so that the output exponent is in the top half of r14,\n  // and r5 is freed up to be used in the multiplication.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:3", "text": "UMULL   r12, r5, al, bl\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  UMAAL   r6, r5, al, bh\n  UMAAL   r5, r4, ah, bh\n#elif ARM_FP_DMUL_USE_UMLAL\n  // The UMLAL instruction computes a 64-bit product and adds a 64-bit value to\n  // it. But it doesn't write to the carry flag, so you can't tell if the\n  // addition wrapped. Therefore you have to use it in a way that means the\n  // addition never wraps. Here we do three of the four multiplications (al*bl,\n  // al*bh, ah*bh) in a chain, using UMLAL for the top two, in each case with\n  // the 64-bit accumulator consisting of the top half of the previous\n  // multiplication, and a high word set to zero before the UMLAL instruction.\n  //\n  // On Cortex-M3, this is not a win over just using UMULL and doing the\n  // additions by hand, because UMLAL takes two cycles longer than UMULL, and\n  // it also costs a cycle to initialise each of the two high accumulator words\n  // to zero. If the high word of the addend were not zero then those two\n  // cycles would be doing something useful, but as it is, they're wasted time.\n  //\n  // CPUs later than Cortex-M3 - in particular, Cortex-M4 - will do both UMLAL\n  // and UMULL much faster, so that this code is a win over the plain UMULL\n  // code below. But those CPUs typically have UMAAL anyway and will use the\n  // even faster version of the code above. So this code is provided in case\n  // it's useful, but won't be enabled unless you manually #define\n  // ARM_FP_DMUL_USE_UMLAL.\n  UMULL   r12, r6, al, bl\n  ADD     r14, r14, r5             // add exponents, freeing up r5\n  MOVS    r5, #0\n  UMLAL   r6, r5, al, bh\n  MOVS    r4, #0\n  UMLAL   r5, r4, ah, bh\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  UMULL   al, bh, ah, bl\n  ADDS    r6, r6, al\n  ADCS    r5, r5, bh\n  ADC     r4, r4, #0\n#else\n  // Simplest approach, using plain UMULL to compute each 64-bit product, and\n  // separate ADD and ADC instructions to do the additions. On Cortex-M3 this\n  // wins over the UMLAL approach: it's one instruction longer, but three\n  // cycles quicker, since each use of UMLAL in the above version costs 2\n  // cycles.\n  UMULL   r4, r12, ah, bl\n  ADD     r14, r14, r5             // add exponents, freeing up r5\n  UMULL   r6, r5, al, bh\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  ADDS    r6, r6, r4\n  ADCS    r5, r5, r12              // carry from here is used below\n\n  UMULL   r4, r12, ah, bh          // r12:r4 is top part\n  ADC     bh, r12, #0              // get carry from above addition\n  UMULL   r12, ah, al, bl          // ah:r12 is bottom part\n\n  ADDS    r6, r6, ah\n  ADCS    r5, r5, r4\n  ADCS    r4, bh, #0\n#endif\n\n  // Now the full 128-bit product of the two mantissas occupies the four\n  // registers r4,r5,r6,r12 (in order from MSW to LSW). Since each input", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:4", "text": "// cycles quicker, since each use of UMLAL in the above version costs 2\n  // cycles.\n  UMULL   r4, r12, ah, bl\n  ADD     r14, r14, r5             // add exponents, freeing up r5\n  UMULL   r6, r5, al, bh\n  SUB     r14, r14, #0x4000000     // initial rebiasing of exponent\n  ADDS    r6, r6, r4\n  ADCS    r5, r5, r12              // carry from here is used below\n\n  UMULL   r4, r12, ah, bh          // r12:r4 is top part\n  ADC     bh, r12, #0              // get carry from above addition\n  UMULL   r12, ah, al, bl          // ah:r12 is bottom part\n\n  ADDS    r6, r6, ah\n  ADCS    r5, r5, r4\n  ADCS    r4, bh, #0\n#endif\n\n  // Now the full 128-bit product of the two mantissas occupies the four\n  // registers r4,r5,r6,r12 (in order from MSW to LSW). Since each input\n  // mantissa was in the range [2^52,2^53), the product is in the range\n  // [2^104,2^106), which means that the lowest-order word r12 is a long way\n  // below the round bit, so that it can only affect cases so close to a\n  // rounding boundary that you need to know if it's nonzero to tell whether\n  // you're rounding to even. Start by freeing up that register, ensuring the\n  // low bit of r6 is set if anything in r12 was nonzero.\n  TST     r12, r12\n  ORRNE   r6, r6, #1\n\n  // Now we can regard the result as a 96-bit value in r4,r5,r6, with its\n  // leading bit in either bit 8 or 9 of r4. To move that bit up to its final\n  // position in bit 20, we must shift the whole thing left by either 11 or 12\n  // bits. Find out which.\n  TST     r4, #0x200               // is bit 9 set?\n  BNE     dmul_shift11             // if so, only shift by 11 bits\n\n  // In this branch, we're shifting left by 12 bits. Put the shifted result\n  // back into the output registers ah,al, and the bits lower than the bottom\n  // mantissa bit into r4.\n  LSLS    ah, r4, #12              // shift each input reg left 12\n  LSLS    al, r5, #12\n  LSLS    r4, r6, #12\n  ORR     ah, ah, r5, LSR #20      // and the top two right by 32-12\n  ORR     al, al, r6, LSR #20\n\n  B       dmul_shifted\n\ndmul_shift11:\n  // In this branch, we're shifting left by 11 bits instead of 12, and we must\n  // adjust the exponent by 1 to compensate.\n  LSLS    ah, r4, #11              // shift each input reg left 11\n  LSLS    al, r5, #11\n  LSLS    r4, r6, #11\n  ORR     ah, ah, r5, LSR #21      // and the top two right by 32-11\n  ORR     al, al, r6, LSR #21\n  ADD     r14, r14, #0x10000       // adjust the exponent\n\ndmul_shifted:\n  // We've reconverged after shifting the mantissa, so that now the leading 1\n  // bit of the mantissa is in bit 20 of ah, and r4 contains the bits lower", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:5", "text": "LSLS    al, r5, #12\n  LSLS    r4, r6, #12\n  ORR     ah, ah, r5, LSR #20      // and the top two right by 32-12\n  ORR     al, al, r6, LSR #20\n\n  B       dmul_shifted\n\ndmul_shift11:\n  // In this branch, we're shifting left by 11 bits instead of 12, and we must\n  // adjust the exponent by 1 to compensate.\n  LSLS    ah, r4, #11              // shift each input reg left 11\n  LSLS    al, r5, #11\n  LSLS    r4, r6, #11\n  ORR     ah, ah, r5, LSR #21      // and the top two right by 32-11\n  ORR     al, al, r6, LSR #21\n  ADD     r14, r14, #0x10000       // adjust the exponent\n\ndmul_shifted:\n  // We've reconverged after shifting the mantissa, so that now the leading 1\n  // bit of the mantissa is in bit 20 of ah, and r4 contains the bits lower\n  // than the bottom of al.\n\n  // Recombine the sign and exponent into the high bits of ah. If the exponent\n  // is over- or underflowed, this may not give a valid FP result, but because\n  // everything is put on by addition, it will be right \"mod 2^64\" so that we\n  // can bias the exponent back into range for underflow handling and that will\n  // recover the right sign.\n  //\n  // r14 still has the output sign in its low bit. To extract just the exponent\n  // for adding to ah, we could use BIC to clear that bit, or shift the value\n  // right. We do the latter, which saves a copy of the pre-rounding exponent\n  // in bl, to use later for overflow detection. The shift is ASR, so that if\n  // the exponent is negative due to underflow, it stays negative.\n  ASR     bl, r14, #16             // isolate the exponent\n  ADD     ah, ah, bl, LSL #20      // shift it back up to add to ah\n  ADD     ah, ah, r14, LSL #31     // then add the sign\n\n  // If we have to handle an underflow, we'll need enough information to\n  // reconstruct the rounding direction. Our strategy is\n  //\n  //  - save the LSW of the output before rounding: if that differs from the\n  //    LSW after rounding then we rounded up\n  //  - save the round word r4: if that is zero then we didn't round at all.\n  //\n  // We're going to branch past the rounding code for a quicker exit in the\n  // case where we're exact. In that case we don't need to save the output LSW\n  // at all, because the zero round word will override whatever it would have\n  // been anyway.\n  MOVS    r6, r4                   // unconditionally save round word\n  BEQ     dmul_rounded             // branch past rounding code if exact\n  MOV     r5, al                   // and if not, save output LSW too\n\n  // Rounding: we shift r4 left to put the round bit into the carry flag so\n  // that ADCS+ADC will conditionally increment the mantissa. But before we do\n  // the additions, we also check the Z flag, which tells us whether the\n  // remaining 31 bits are all zero. If so, we're either in the round-to-even\n  // (RTE) halfway case, or the exact case - but the exact case never came\n  // through this code at all, so it must be RTE.\n  //\n  // If those 31 bits _aren't_ all zero, we clear the top bit of r4, leaving it", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:6", "text": "//  - save the LSW of the output before rounding: if that differs from the\n  //    LSW after rounding then we rounded up\n  //  - save the round word r4: if that is zero then we didn't round at all.\n  //\n  // We're going to branch past the rounding code for a quicker exit in the\n  // case where we're exact. In that case we don't need to save the output LSW\n  // at all, because the zero round word will override whatever it would have\n  // been anyway.\n  MOVS    r6, r4                   // unconditionally save round word\n  BEQ     dmul_rounded             // branch past rounding code if exact\n  MOV     r5, al                   // and if not, save output LSW too\n\n  // Rounding: we shift r4 left to put the round bit into the carry flag so\n  // that ADCS+ADC will conditionally increment the mantissa. But before we do\n  // the additions, we also check the Z flag, which tells us whether the\n  // remaining 31 bits are all zero. If so, we're either in the round-to-even\n  // (RTE) halfway case, or the exact case - but the exact case never came\n  // through this code at all, so it must be RTE.\n  //\n  // If those 31 bits _aren't_ all zero, we clear the top bit of r4, leaving it\n  // set only in the round-to-even case. Then (r4 >> 31) can be used to clear\n  // the low bit to perform RTE.\n  LSLS    r12, r4, #1              // test round word\n  BICNE   r4, r4, #0x80000000      // make top bit of r4 into the RTE bit\n  ADCS    al, al, #0               // conditionally increment the mantissa\n  ADC     ah, ah, #0               // ... and carry into its high word\n  BIC     al, al, r4, LSR #31      // round to even if r4[31] != 0\n\ndmul_rounded:\n  // Now we've rounded the output. The last thing we must do is check for\n  // overflow and underflow: if neither has happened, we can return.\n  //\n  // bl contains the pre-rounding output exponent minus 1 (so that the leading\n  // mantissa bit incremented it to the right output value). If this is in the\n  // range [0,0x7fd] then the leading bit would have incremented it to\n  // [1,0x7fe], which are non-overflowed output exponents. So an unsigned check\n  // if bl >= 0x7fe detects both overflow and underflow at once.\n  MOVW    r12, #0x7FE\n  CMP     bl, r12\n  POPLO   {r4,r5,r6,pc}\n\n  // We have either an underflow or an overflow. We can tell which it is by\n  // doing a _signed_ comparison of bl with the same value again - and since we\n  // only just did the CMP instruction, we can reuse the same flags.\n  BGE     dmul_overflow\n\n  // Now we're dealing with an underflow. Set r2 to the rounding direction, by\n  // first checking al against r5 (where we saved its pre-rounding value) to\n  // see if we rounded up or down, and then overriding that by checking r6\n  // (where we saved the round word) to see if we didn't round at all. In the\n  // latter case the comparison against r5 will deliver nonsense, but then we\n  // overwrite it, so it doesn't matter.\n  CMP     al, r5                   // did we modify the LSW, i.e. round up?\n  MOVNE   r2, #-1                  // if so, the true value is a bit smaller\n  MOVEQ   r2, #+1                  // else it's a bit bigger\n  CMP     r6, #0                   // except maybe we didn't round at all\n  MOVEQ   r2, #0                   // in which case the true value is exact.\n\n  // Add the IEEE 754 exponent bias, and tail-call __dunder to handle the rest\n  // of the job.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:7", "text": "// We have either an underflow or an overflow. We can tell which it is by\n  // doing a _signed_ comparison of bl with the same value again - and since we\n  // only just did the CMP instruction, we can reuse the same flags.\n  BGE     dmul_overflow\n\n  // Now we're dealing with an underflow. Set r2 to the rounding direction, by\n  // first checking al against r5 (where we saved its pre-rounding value) to\n  // see if we rounded up or down, and then overriding that by checking r6\n  // (where we saved the round word) to see if we didn't round at all. In the\n  // latter case the comparison against r5 will deliver nonsense, but then we\n  // overwrite it, so it doesn't matter.\n  CMP     al, r5                   // did we modify the LSW, i.e. round up?\n  MOVNE   r2, #-1                  // if so, the true value is a bit smaller\n  MOVEQ   r2, #+1                  // else it's a bit bigger\n  CMP     r6, #0                   // except maybe we didn't round at all\n  MOVEQ   r2, #0                   // in which case the true value is exact.\n\n  // Add the IEEE 754 exponent bias, and tail-call __dunder to handle the rest\n  // of the job.\n  ADD     ah, ah, #0x60000000\n  POP     {r4,r5,r6,lr}\n  B.W     __dunder\n\ndmul_overflow:\n  // Here, we overflowed, so we must return an infinity of the correct sign.\n  // Rebias the exponent, which corrects the sign bit.\n  SUB     ah, ah, #0x60000000\n\n  // And pop our scratch registers before falling through into dmul_retinf.\n  POP     {r4,r5,r6,lr}\n\ndmul_retinf:\n  // This is entered from the overflow handler and also from cases with\n  // infinite inputs. It constructs an infinity, with sign bit equal to the\n  // high bit of ah.\n  //\n  // On entry to here, we expect not to have a stack frame any more, because\n  // one of our callers will have popped it already in order to conditionally\n  // tailcall __dnan2.\n  MOV     al, #0                   // clear low word\n  MVN     ah, ah, LSR #31          // shift ah[31] down to bit 0, inverted\n  MVN     ah, ah, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     ah, ah, #20              // shift back up to the top\n  BX      lr\n\ndmul_uncommon:\n  // We come here from the entry point, if any input had exponent 0 or 0x7ff.\n  // First we must repeat the instruction from the entry point that sets up r5\n  // with the exponent of b, this time unconditionally, so we know we have both\n  // exponents in the top halves of r14 and r5.\n  AND     r5, r12, bh, LSR #4\n\n  // Check if either exponent is 0x7ff, by comparing against the value left in\n  // r12 by the entry point. If so, branch away to handle NaNs and infinities.\n  TEQ     r14, r12\n  TEQNE   r5, r12\n  BEQ     dmul_naninf\n\n  // If we didn't branch, we're dealing with finite numbers, including a zero", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:8", "text": "MOV     al, #0                   // clear low word\n  MVN     ah, ah, LSR #31          // shift ah[31] down to bit 0, inverted\n  MVN     ah, ah, LSL #11          // uninvert, and put exponent 0x7ff below it\n  LSL     ah, ah, #20              // shift back up to the top\n  BX      lr\n\ndmul_uncommon:\n  // We come here from the entry point, if any input had exponent 0 or 0x7ff.\n  // First we must repeat the instruction from the entry point that sets up r5\n  // with the exponent of b, this time unconditionally, so we know we have both\n  // exponents in the top halves of r14 and r5.\n  AND     r5, r12, bh, LSR #4\n\n  // Check if either exponent is 0x7ff, by comparing against the value left in\n  // r12 by the entry point. If so, branch away to handle NaNs and infinities.\n  TEQ     r14, r12\n  TEQNE   r5, r12\n  BEQ     dmul_naninf\n\n  // If we didn't branch, we're dealing with finite numbers, including a zero\n  // or a denormal or both.\n  //\n  // First save the output sign.\n  EOR     r6, ah, bh\n\n  // Handle zeroes first, because if there's a zero we don't have to worry\n  // about denormals at all.\n  ORRS    r4, al, ah, LSL #1      // is a zero?\n  ORRSNE  r4, bl, bh, LSL #1      // or is b zero?\n  BEQ     dmul_retzero            // Return zero if so\n\n  // Otherwise, delegate to __dnorm2 to handle denormals, converting them into\n  // a normalised mantissa and an out-of-range exponent. __dnorm2 expects the\n  // exponents at the bottom of their words instead of half way up, so shift\n  // down first, and back up again afterwards.\n  //\n  // This call clobbers r12, because we didn't bother to save it on the stack.\n  // That's fine, because we don't need the constant in it any more. When we go\n  // back to dmul_mul, that will use it as a scratch register.\n  LSR     r4, r14, #16\n  LSR     r5, r5, #16\n  PUSH    {r0, r1, r2, r3, r4, r5} // create a 'struct dnorm2' on the stack\n  MOV     r0, sp                   // pass it by address\n  BL      __dnorm2\n  POP     {r0, r1, r2, r3, r4, r5}\n  LSL     r14, r4, #16\n  LSLS    r5, r5, #16\n\n  // Put the output sign at the bottom of r14, the same place the fast path\n  // would have left it. Then rejoin the fast path.\n  ORR     r14, r14, r6, LSR #31\n  B       dmul_mul\n\ndmul_retzero:\n  // Return an exact zero, with sign bit from the high bit of r6.\n  MOV     al, #0                  // low word is 0\n  ANDS    ah, r6, #0x80000000     // high word is 0 except for the sign\n  POP     {r4,r5,r6,pc}\n\ndmul_naninf:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:9", "text": "LSR     r5, r5, #16\n  PUSH    {r0, r1, r2, r3, r4, r5} // create a 'struct dnorm2' on the stack\n  MOV     r0, sp                   // pass it by address\n  BL      __dnorm2\n  POP     {r0, r1, r2, r3, r4, r5}\n  LSL     r14, r4, #16\n  LSLS    r5, r5, #16\n\n  // Put the output sign at the bottom of r14, the same place the fast path\n  // would have left it. Then rejoin the fast path.\n  ORR     r14, r14, r6, LSR #31\n  B       dmul_mul\n\ndmul_retzero:\n  // Return an exact zero, with sign bit from the high bit of r6.\n  MOV     al, #0                  // low word is 0\n  ANDS    ah, r6, #0x80000000     // high word is 0 except for the sign\n  POP     {r4,r5,r6,pc}\n\ndmul_naninf:\n  // We come here knowing that at least one operand is either NaN or infinity.\n  // If there's a NaN, we can tailcall __dnan2 to do the right thing. Pop our\n  // stacked registers first: we won't need that much spare space any more, and\n  // it makes the tailcall easier if we've already done it.\n  POP     {r4,r5,r6,lr}\n\n  // A number is a NaN if its exponent is 0x7ff and at least one bit below that\n  // is set. The CMP + ADC pair here converts the two words ah:al into a single\n  // word containing ah shifted up by one (throwing away the sign bit which\n  // makes no difference), with its low bit set if al was nonzero. So if that\n  // is strictly greater than 0xffe00000, then a was a NaN.\n  CMP     al, #1\n  ADC     r12, ah, ah\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n  // Now check b in the same way.\n  CMP     bl, #1\n  ADC     r12, bh, bh\n  CMP     r12, #0xFFE00000\n  BHI     __dnan2\n\n  // Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // either operand is zero then we have inf * 0 = invalid operation and must\n  // return a NaN.\n  ORRS    r12, al, ah, LSL #1     // are all bits of a zero except the sign?\n  BEQ     dmul_retnan             // if so, a == 0, so b == inf\n  ORRS    r12, bl, bh, LSL #1     // same check the other way round\n  BEQ     dmul_retnan\n\n  // If we have an infinity and no NaN, then we just return an infinity of the\n  // correct sign.\n  EOR     ah, ah, bh\n  B       dmul_retinf\n\ndmul_retnan:\n  // Return the default NaN, in the case where the inputs were 0 and infinity.\n  MOVW    ah, 0x7ff8\n  LSLS    ah, ah, #16\n  MOV     al, #0\n  BX      lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/dmul.S:10", "text": "// Now we know there are no NaNs. Therefore there's at least one infinity. If\n  // either operand is zero then we have inf * 0 = invalid operation and must\n  // return a NaN.\n  ORRS    r12, al, ah, LSL #1     // are all bits of a zero except the sign?\n  BEQ     dmul_retnan             // if so, a == 0, so b == inf\n  ORRS    r12, bl, bh, LSL #1     // same check the other way round\n  BEQ     dmul_retnan\n\n  // If we have an infinity and no NaN, then we just return an infinity of the\n  // correct sign.\n  EOR     ah, ah, bh\n  B       dmul_retinf\n\ndmul_retnan:\n  // Return the default NaN, in the case where the inputs were 0 and infinity.\n  MOVW    ah, 0x7ff8\n  LSLS    ah, ah, #16\n  MOV     al, #0\n  BX      lr\n\n  .size arm_fp_dmul, .-arm_fp_dmul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/dmul.S", "license": "MIT", "commit": "0f833af7a93997b7c3df81da8296d80959943b25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0f833af7a93997b7c3df81da8296d80959943b25/fp/at32/dmul.S", "line_start": 361, "line_end": 382}
{"id": "ARM-software/optimized-routines:fp/at32/f2iz.S:1", "text": "// Single-precision float to int32 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_f2iz\n  .type arm_fp_f2iz,%function\narm_fp_f2iz:\n\n  // The fast path: deliver an answer as quickly as possible for cases that\n  // don't overflow or involve a NaN, and branch out of line to handle\n  // everything else more slowly.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  LSLS    r1, r0, #1            // r1 = everything but the sign bit\n  LSRS    r2, r1, #24           // r2 = just the exponent\n  RSBS    r3, r2, #31 + 0x7f    // r3 = how much to shift the mantissa right\n\n  // If the shift count is negative, that means the input is too big, or else\n  // the exponent is 0xFF (so we might have a NaN). Branch out of line to\n  // handle both cases.\n  BLS     f2iz_invalid\n\n  // OR the leading 1 into the mantissa and shift it up to the top of the word.\n  //\n  // We do it in _that_ order, because that way, the OR operates on the\n  // original r0 and doesn't touch the top bit. So if we make it set the flags\n  // too, it also tests the sign of the input, leaving the result in the N\n  // flag, saving us a separate sign test instruction.\n  ORRS    r2, r0, #1 << 23      // put on the leading 1 and test sign\n  LSL     r2, r2, #8            // shift mantissa up to top of word\n\n  // Now shift the mantissa down to its output position, and negate the result\n  // if the input was negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result\n  RSBMI   r0, r0, #0            // negate it if input < 0\n  BX      lr                    // and return\n\nf2iz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^31.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffff. For out-of-range negative values, we return the\n  // minimum negative signed integer 0x80000000. For NaNs, we return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^31 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return 0x80000000 with", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2iz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2iz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/f2iz.S:2", "text": "// if the input was negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result\n  RSBMI   r0, r0, #0            // negate it if input < 0\n  BX      lr                    // and return\n\nf2iz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^31.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffff. For out-of-range negative values, we return the\n  // minimum negative signed integer 0x80000000. For NaNs, we return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^31 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return 0x80000000 with\n  // no exception, while raising an Invalid Operation exception for everything\n  // else. But since we don't support exceptions, we don't have to tell the\n  // difference here: -2^31 and negative overflows both return 0x80000000, and\n  // it doesn't matter that one is the right answer and the other a best-effort\n  // error response.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1         // 0xFF000000 < (input << 1) means a NaN\n  BLO     f2iz_return_zero       // so branch out of line to return zero\n  MOV     r2, #0x7FFFFFFF        // set up to return INT_MAX\n  EOR     r0, r2, r0, ASR #31    // turn it into INT_MIN if input was negative\n  BX      lr\n\nf2iz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\n  .size arm_fp_f2iz, .-arm_fp_f2iz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2iz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2iz.S", "line_start": 41, "line_end": 77}
{"id": "ARM-software/optimized-routines:fp/at32/f2iz.S:2", "text": "// if the input was negative.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSR     r0, r2, r3            // construct the rounded-down result\n  RSBMI   r0, r0, #0            // negate it if input < 0\n  BX      lr                    // and return\n\nf2iz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^31.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffff. For out-of-range negative values, we return the\n  // minimum negative signed integer 0x80000000. For NaNs, we return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^31 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return 0x80000000 with\n  // no exception, while raising an Invalid Operation exception for everything\n  // else. But since we don't support exceptions, we don't have to tell the\n  // difference here: -2^31 and negative overflows both return 0x80000000, and\n  // it doesn't matter that one is the right answer and the other a best-effort\n  // error response.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1         // 0xFF000000 < (input << 1) means a NaN\n  BLO     f2iz_return_zero    // so branch out of line to return zero\n  MOV     r2, #0x7FFFFFFF        // set up to return INT_MAX\n  EOR     r0, r2, r0, ASR #31    // turn it into INT_MIN if input was negative\n  BX      lr\n\nf2iz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\n  .size arm_fp_f2iz, .-arm_fp_f2iz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2iz.S", "license": "MIT", "commit": "eee9374c543d2106653ee7021024248bdc2dc773", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/eee9374c543d2106653ee7021024248bdc2dc773/fp/at32/f2iz.S", "line_start": 41, "line_end": 77}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:1", "text": "// Single-precision float to int64 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_f2lz\n  .type arm_fp_f2lz,%function\narm_fp_f2lz:\n\n  // The fast path: deliver an answer as quickly as possible for positive cases\n  // that don't overflow, and branch out of line to handle everything else more\n  // slowly, including negative numbers, overflows, and NaNs.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  // Shift the exponent down to the bottom of the word. Using ASR here in place\n  // of LSR means the sign bit keeps its original value, and therefore as a\n  // side effect the N flag will tell us whether the input was negative. On the\n  // positive path the output is the same anyway.\n  ASRS    r2, r0, #23\n\n  // Shift the mantissa to the top of the word, and put on the leading 1 bit.\n  MOV     r3, r0, LSL #8\n  ORRNE   r3, r3, #1 << 31\n\n  // If the value was negative, branch out of line to handle that.\n  BMI     f2lz_negative\n\n  // Convert the mantissa into a shift count. If that's negative or zero, that\n  // means the input is too big, or the exponent is 0xFF (so we might have a\n  // NaN), so branch out of line again.\n  RSBS    r2, r2, #63 + 0x7f\n  BLS     f2lz_invalid\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     xh, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   xl, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   xl, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2lz_negative:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3, and the exponent in the bottom 8 bits of r2 with all 1s above it\n  // (because it was shifted down via ASR and the sign bit was set).", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2lz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:2", "text": "BLS     f2lz_invalid\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     xh, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   xl, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   xl, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2lz_negative:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3, and the exponent in the bottom 8 bits of r2 with all 1s above it\n  // (because it was shifted down via ASR and the sign bit was set).\n\n  // Start by clearing the top 24 bits of r2, left set by the ASR above,\n  // leaving just the bare exponent.\n  AND     r2, r2, #0xff\n\n  // Now do exactly the same processing as on the positive path.\n  RSBS    r2, r2, #63 + 0x7f   // make the shift count\n  BLS     f2lz_invalid         // branch out of line if shift count < 0\n  MOV     xh, r3, LSR r2       // top word of result\n  SUBS    r12, r2, #32         // right-shift required for bottom word\n  MOVHS   xl, r3, LSR r12      // bottom word, if shift count >= 0\n  RSBLO   r12, r2, #32         // otherwise, turn into a left-shift count\n  MOVLO   xl, r3, LSL r12      // bottom word, if it needed a left shift\n\n  // Finally, negate the answer.\n  RSBS    xl, xl, #0           // negate bottom word\n#if !__thumb__\n  RSC     xh, xh, #0           // negate top word\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     xh, xh\n  ADC     xh, xh, #0\n#endif\n\n  BX      lr\n\nf2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2lz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:3", "text": "ADC     xh, xh, #0\n#endif\n\n  BX      lr\n\nf2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1         // 0xFF000000 < (input << 1) means a NaN\n  BLO     f2lz_return_zero       // so branch out of line to return zero\n  MOV     r2, #0x7FFFFFFF        // set up to return INT_MAX\n  EOR     xh, r2, r0, ASR #31    // flip top half to 80000000 if input < 0\n  MVN     xl, r0, ASR #31        // and bottom half is FFFFFFFF or 00000000\n  BX      lr\n\nf2lz_return_zero:\n  MOV     xl, #0\n  MOV     xh, #0\n  BX      lr\n\n  .size arm_fp_f2lz, .-arm_fp_f2lz", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2lz.S", "line_start": 81, "line_end": 117}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:1", "text": "// Single-precision float to int64 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_f2lz\n  .type arm_fp_f2lz,%function\narm_fp_f2lz:\n\n  // The fast path: deliver an answer as quickly as possible for positive cases\n  // that don't overflow, and branch out of line to handle everything else more\n  // slowly, including negative numbers, overflows, and NaNs.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  // Shift the exponent down to the bottom of the word. Using ASR here in place\n  // of LSR means the sign bit keeps its original value, and therefore as a\n  // side effect the N flag will tell us whether the input was negative. On the\n  // positive path the output is the same anyway.\n  ASRS    r2, r0, #23\n\n  // Shift the mantissa to the top of the word, and put on the leading 1 bit.\n  MOV     r3, r0, LSL #8\n  ORRNE   r3, r3, #1 << 31\n\n  // If the value was negative, branch out of line to handle that.\n  BMI     f2lz_negative\n\n  // Convert the mantissa into a shift count. If that's negative or zero, that\n  // means the input is too big, or the exponent is 0xFF (so we might have a\n  // NaN), so branch out of line again.\n  RSBS    r2, r2, #63 + 0x7f\n  BLS     f2lz_invalid\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     ah, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   al, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   al, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2lz_negative:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3, and the exponent in the bottom 8 bits of r2 with all 1s above it\n  // (because it was shifted down via ASR and the sign bit was set).", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "f5486466b6a66ff76effbb382bedb375da91fd27", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f5486466b6a66ff76effbb382bedb375da91fd27/fp/at32/f2lz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:2", "text": "BLS     f2lz_invalid\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     ah, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   al, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   al, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2lz_negative:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3, and the exponent in the bottom 8 bits of r2 with all 1s above it\n  // (because it was shifted down via ASR and the sign bit was set).\n\n  // Start by clearing the top 24 bits of r2, left set by the ASR above,\n  // leaving just the bare exponent.\n  AND     r2, r2, #0xff\n\n  // Now do exactly the same processing as on the positive path.\n  RSBS    r2, r2, #63 + 0x7f   // make the shift count\n  BLS     f2lz_invalid      // branch out of line if shift count < 0\n  MOV     ah, r3, LSR r2       // top word of result\n  SUBS    r12, r2, #32         // right-shift required for bottom word\n  MOVHS   al, r3, LSR r12      // bottom word, if shift count >= 0\n  RSBLO   r12, r2, #32         // otherwise, turn into a left-shift count\n  MOVLO   al, r3, LSL r12      // bottom word, if it needed a left shift\n\n  // Finally, negate the answer.\n  RSBS    al, al, #0           // negate bottom word\n#if !__thumb__\n  RSC     ah, ah, #0           // negate top word\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     ah, ah\n  ADC     ah, ah, #0\n#endif\n\n  BX      lr\n\nf2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "f5486466b6a66ff76effbb382bedb375da91fd27", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f5486466b6a66ff76effbb382bedb375da91fd27/fp/at32/f2lz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:3", "text": "ADC     ah, ah, #0\n#endif\n\n  BX      lr\n\nf2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1         // 0xFF000000 < (input << 1) means a NaN\n  BLO     f2lz_return_zero    // so branch out of line to return zero\n  MOV     r2, #0x7FFFFFFF        // set up to return INT_MAX\n  EOR     ah, r2, r0, ASR #31    // flip top half to 80000000 if input < 0\n  MVN     al, r0, ASR #31        // and bottom half is FFFFFFFF or 00000000\n  BX      lr\n\nf2lz_return_zero:\n  MOV     al, #0\n  MOV     ah, #0\n  BX      lr\n\n  .size arm_fp_f2lz, .-arm_fp_f2lz", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "f5486466b6a66ff76effbb382bedb375da91fd27", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f5486466b6a66ff76effbb382bedb375da91fd27/fp/at32/f2lz.S", "line_start": 81, "line_end": 117}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:2", "text": "BLS     f2lz_invalid\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     ah, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   al, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   al, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2lz_negative:\n  // Handle negative numbers. We come here with the mantissa already prepared\n  // in r3, and the exponent in the bottom 8 bits of r2 with all 1s above it\n  // (because it was shifted down via ASR and the sign bit was set).\n\n  // Start by clearing the top 24 bits of r2, left set by the ASR above,\n  // leaving just the bare exponent.\n  AND     r2, r2, #0xff\n\n  // Now do exactly the same processing as on the positive path.\n  RSBS    r2, r2, #63 + 0x7f   // make the shift count\n  BLS     f2lz_invalid      // branch out of line if shift count < 0\n  MOV     ah, r3, LSR r2       // top word of result\n  SUBS    r12, r2, #32         // right-shift required for bottom word\n  MOVHS   al, r3, LSR r12      // bottom word, if shift count >= 0\n  RSBLO   r12, r2, #32         // otherwise, turn into a left-shift count\n  MOVLO   al, r3, LSL r12      // bottom word, if it needed a left shift\n\n  // Finally, negate the answer.\n  RSBS    al, al, #0           // negate bottom word\n#if !__thumb__\n  RSC     ah, ah, #0           // negate top word\n#else\n  // Thumb has no RSC, so simulate it by handling the carry flag afterwards\n  RSB     ah, ah, #0\n  SUBCC   ah, ah, #1\n#endif\n\n  BX      lr\n\nf2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "eee9374c543d2106653ee7021024248bdc2dc773", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/eee9374c543d2106653ee7021024248bdc2dc773/fp/at32/f2lz.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/f2lz.S:3", "text": "SUBCC   ah, ah, #1\n#endif\n\n  BX      lr\n\nf2lz_invalid:\n  // We come here if the exponent field of the number is large enough that it's\n  // either a NaN or infinity, or a finite number of absolute value at least\n  // 2^63.\n  //\n  // For out-of-range positive values, we return the maximum positive signed\n  // integer 0x7fffffffffffffff. For out-of-range negative values, we return\n  // the minimum negative signed integer 0x8000000000000000. For NaNs, we\n  // return zero.\n  //\n  // Not _every_ number of this kind is actually an invalid input. The exact\n  // value -2^63 is perfectly valid. If this implementation supported FP\n  // exceptions, we'd have to detect that one case and return\n  // 0x8000000000000000 with no exception, while raising an Invalid Operation\n  // exception for everything else. But since we don't support exceptions, we\n  // don't have to tell the difference here: -2^63 and negative overflows both\n  // return 0x8000000000000000, and it doesn't matter that one is the right\n  // answer and the other a best-effort error response.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1         // 0xFF000000 < (input << 1) means a NaN\n  BLO     f2lz_return_zero    // so branch out of line to return zero\n  MOV     r2, #0x7FFFFFFF        // set up to return INT_MAX\n  EOR     ah, r2, r0, ASR #31    // flip top half to 80000000 if input < 0\n  MVN     al, r0, ASR #31        // and bottom half is FFFFFFFF or 00000000\n  BX      lr\n\nf2lz_return_zero:\n  MOV     al, #0\n  MOV     ah, #0\n  BX      lr\n\n  .size arm_fp_f2lz, .-arm_fp_f2lz", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2lz.S", "license": "MIT", "commit": "eee9374c543d2106653ee7021024248bdc2dc773", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/eee9374c543d2106653ee7021024248bdc2dc773/fp/at32/f2lz.S", "line_start": 81, "line_end": 117}
{"id": "ARM-software/optimized-routines:fp/at32/f2uiz.S:1", "text": "// Single-precision float to uint32 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_f2uiz\n  .type arm_fp_f2uiz,%function\narm_fp_f2uiz:\n\n  // The fast path: deliver an answer as quickly as possible for positive\n  // inputs that don't overflow, and branch out of line to handle everything\n  // else (negative numbers, overflows and NaNs) more slowly.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  LSRS    r1, r0, #23           // r1 = exponent, or >=256 if input is negative\n  RSBS    r2, r1, #31 + 0x7f    // r2 = how much to shift the mantissa right\n\n  // If the shift count is negative, that means the input is too big, or the\n  // exponent is 0xFF (so we might have a NaN), or the sign bit was set (so the\n  // input is negative). Branch out of line to handle all those cases.\n  BLT     f2uiz_uncommon      // negative, infinite or NaN\n\n  // Shift the mantissa up to the top of the word, OR in the leading 1, and\n  // then shift it back down to make the result.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  LSL     r3, r0, #8            // shift mantissa up\n  ORR     r3, r3, #0x80000000   // add leading 1\n  MOV     r0, r3, LSR r2        // shift down again\n  BX      lr\n\nf2uiz_uncommon:\n  // We come here for positive overflows, positive infinity, NaNs, and anything\n  // with the sign bit set.\n  //\n  // Start by testing the sign bit. Branch out of line for positive values.\n  TST     r0, r0\n  BPL     f2uiz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nf2uiz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\nf2uiz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2uiz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2uiz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/f2uiz.S:2", "text": "// We come here for positive overflows, positive infinity, NaNs, and anything\n  // with the sign bit set.\n  //\n  // Start by testing the sign bit. Branch out of line for positive values.\n  TST     r0, r0\n  BPL     f2uiz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nf2uiz_return_zero:\n  MOV     r0, #0\n  BX      lr\n\nf2uiz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1\n  BLO     f2uiz_return_zero\n  MOV     r0, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_f2uiz, .-arm_fp_f2uiz", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2uiz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2uiz.S", "line_start": 41, "line_end": 68}
{"id": "ARM-software/optimized-routines:fp/at32/f2ulz.S:1", "text": "// Single-precision float to uint64 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_f2ulz\n  .type arm_fp_f2ulz,%function\narm_fp_f2ulz:\n\n  // The fast path: deliver an answer as quickly as possible for positive\n  // inputs that don't overflow, and branch out of line to handle everything\n  // else (negative numbers, overflows and NaNs) more slowly.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  // Shift the exponent down to the bottom of the word.\n  LSRS    r2, r0, #23           // r2 = exponent, or >=256 if input is negative\n  RSBS    r2, r2, #63 + 0x7f    // r2 = how much to shift the mantissa right\n\n  // If the shift count is negative, that means the input is too big, or the\n  // exponent is 0xFF (so we might have a NaN), or the sign bit was set (so the\n  // input is negative). Branch out of line to handle all those cases.\n  BLO     f2ulz_uncommon\n\n  // Shift the mantissa to the top of the word, and put on the leading 1 bit.\n  LSL     r3, r0, #8\n  ORR     r3, r3, #0x80000000\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     xh, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   xl, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   xl, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2ulz_uncommon:\n  // We come here for positive overflows, positive infinity, NaNs, and anything\n  // with the sign bit set.\n  //\n  // Start by testing the sign bit. Branch out of line for positive values.\n  TST     r0, r0\n  BPL     f2ulz_positive_invalid", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2ulz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2ulz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/f2ulz.S:2", "text": "// Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   xl, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   xl, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2ulz_uncommon:\n  // We come here for positive overflows, positive infinity, NaNs, and anything\n  // with the sign bit set.\n  //\n  // Start by testing the sign bit. Branch out of line for positive values.\n  TST     r0, r0\n  BPL     f2ulz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nf2ulz_return_zero:\n  MOV     xl, #0\n  MOV     xh, #0\n  BX      lr\n\nf2ulz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1\n  BLO     f2ulz_return_zero\n  MOV     xl, #0xFFFFFFFF\n  MOV     xh, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_f2ulz, .-arm_fp_f2ulz", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2ulz.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/f2ulz.S", "line_start": 41, "line_end": 83}
{"id": "ARM-software/optimized-routines:fp/at32/f2ulz.S:1", "text": "// Single-precision float to uint64 conversion, rounded towards zero.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_f2ulz\n  .type arm_fp_f2ulz,%function\narm_fp_f2ulz:\n\n  // The fast path: deliver an answer as quickly as possible for positive\n  // inputs that don't overflow, and branch out of line to handle everything\n  // else (negative numbers, overflows and NaNs) more slowly.\n  //\n  // The basic idea is to make a bare version of the mantissa, with its leading\n  // 1 bit explicit at the top of the word, and shift it right by an amount\n  // derived from the exponent.\n\n  // Shift the exponent down to the bottom of the word.\n  LSRS    r2, r0, #23           // r2 = exponent, or >=256 if input is negative\n  RSBS    r2, r2, #63 + 0x7f    // r2 = how much to shift the mantissa right\n\n  // If the shift count is negative, that means the input is too big, or the\n  // exponent is 0xFF (so we might have a NaN), or the sign bit was set (so the\n  // input is negative). Branch out of line to handle all those cases.\n  BLO     f2ulz_uncommon\n\n  // Shift the mantissa to the top of the word, and put on the leading 1 bit.\n  LSL     r3, r0, #8\n  ORR     r3, r3, #0x80000000\n\n  // Make the top word of the result, which is the easy part: if the shift\n  // count is too big, nothing goes wrong, we just end up with whatever part of\n  // the mantissa remained in this word.\n  MOV     ah, r3, LSR r2\n\n  // Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   al, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   al, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2ulz_uncommon:\n  // We come here for positive overflows, positive infinity, NaNs, and anything\n  // with the sign bit set.\n  //\n  // Start by testing the sign bit. Branch out of line for positive values.\n  TST     r0, r0\n  BPL     f2ulz_positive_invalid", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2ulz.S", "license": "MIT", "commit": "eee9374c543d2106653ee7021024248bdc2dc773", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/eee9374c543d2106653ee7021024248bdc2dc773/fp/at32/f2ulz.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/f2ulz.S:2", "text": "// Make the bottom word of the result. This might involve shifting the\n  // mantissa either left or right, depending on the exponent.\n  //\n  // We're rounding towards zero, so bits shifted off the bottom can just be\n  // ignored.\n  SUBS    r12, r2, #32          // r12 = how far to shift mantissa down\n  MOVHS   al, r3, LSR r12       // if that's positive, just do it\n  RSBLO   r12, r12, #0          // otherwise, negate it\n  MOVLO   al, r3, LSL r12       // and shift left by that much instead\n  BX      lr\n\nf2ulz_uncommon:\n  // We come here for positive overflows, positive infinity, NaNs, and anything\n  // with the sign bit set.\n  //\n  // Start by testing the sign bit. Branch out of line for positive values.\n  TST     r0, r0\n  BPL     f2ulz_positive_invalid\n\n  // Now we have either a negative finite value, -inf, or a NaN (with the sign\n  // bit set). Conveniently, _all_ of those just return 0, so we don't have to\n  // bother checking which.\n  //\n  // If we were reporting exceptions, then inputs in the range (-1,0] would\n  // _legally_ return 0 (after rounding toward zero), whereas -1 and below\n  // would raise the IEEE Invalid Operation exception.\nf2ulz_return_zero:\n  MOV     al, #0\n  MOV     ah, #0\n  BX      lr\n\nf2ulz_positive_invalid:\n  // Here we have a positive value causing an invalid operation exception. If\n  // it's a NaN, we return zero; otherwise we return UINT_MAX.\n  MOV     r1, #0xFF000000\n  CMP     r1, r0, LSL #1\n  BLO     f2ulz_return_zero\n  MOV     al, #0xFFFFFFFF\n  MOV     ah, #0xFFFFFFFF\n  BX      lr\n\n  .size arm_fp_f2ulz, .-arm_fp_f2ulz", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/f2ulz.S", "license": "MIT", "commit": "eee9374c543d2106653ee7021024248bdc2dc773", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/eee9374c543d2106653ee7021024248bdc2dc773/fp/at32/f2ulz.S", "line_start": 41, "line_end": 83}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:1", "text": "// Single-precision addition and subtraction.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n// General structure of this code:\n//\n// There are three actual entry points here, for addition, subtraction and\n// reversed subtraction (just taking the operands the other way round, so that\n// it returns y-x instead of x-y). But the first thing the functions do (after\n// checking for NaNs) is to sort out whether the magnitudes of the two inputs\n// are being added (x+y with like signs, or x-y with different signs), or\n// subtracted. So fadd jumps across into the middle of fsub if it sees that the\n// signs are different, and vice versa. Then the main code path in fadd handles\n// magnitude addition, and the one in fsub handles magnitude subtraction.\n//\n// NaNs are checked first, so that an input NaN can be propagated exactly,\n// including its sign bit. After ruling out that case, it's safe to flip the\n// sign of one of the inputs, so that during the cross-calls, x - y can be\n// rewritten as x + (-y) and vice versa.\n\n  .globl arm_fp_fadd\n  .type arm_fp_fadd,%function\narm_fp_fadd:\n  // Test for all uncommon values at once: infinities, NaNs, denormals and\n  // zeroes. Branch out of line if any are found. We do this by XORing each\n  // input with itself shifted left by a bit, which means that exponents 00 and\n  // FF will both end up with seven zero bits at the top.\n  EOR     r2, r0, r0, LSL #1   // combine x with itself shifted\n  EOR     r3, r1, r1, LSL #1   // same for y\n  TST     r2, #0x7F000000      // is x uncommon?\n  TSTNE   r3, #0x7F000000      // if not, is y uncommon?\n  BEQ     fadd_uncommon        // if either, branch out of line\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub.\n  TEQ     r0, r1               // set N if signs are unequal\n  EORMI   r1, r1, #1 << 31     // if so, flip the sign of y\n  BMI     fsub_magnitude       // and go to magnitude subtraction\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that x >= y.\n  SUBS    r2, r0, r1           // compare inputs, also keeping x-y\n  SUBLO   r0, r0, r2           // if x<y then turn x into y, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn y into x\n\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift y's\n  // mantissa right to add it to x's.\n  //\n  // The shifted-right values will include the sign bits as well as the\n  // exponents, but that's OK, in this branch the two sign bits are the same,\n  // so they'll cancel when subtracted.\n  //", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:2", "text": "TEQ     r0, r1               // set N if signs are unequal\n  EORMI   r1, r1, #1 << 31     // if so, flip the sign of y\n  BMI     fsub_magnitude       // and go to magnitude subtraction\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that x >= y.\n  SUBS    r2, r0, r1           // compare inputs, also keeping x-y\n  SUBLO   r0, r0, r2           // if x<y then turn x into y, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn y into x\n\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift y's\n  // mantissa right to add it to x's.\n  //\n  // The shifted-right values will include the sign bits as well as the\n  // exponents, but that's OK, in this branch the two sign bits are the same,\n  // so they'll cancel when subtracted.\n  //\n  // The exponent difference can be as large as 0xFE (maximum exponent minus\n  // minimum), which still fits in 8 bits, so shifting right by that amount is\n  // well defined in AArch32.\n  MOV     r2, r0, LSR #23\n  SUB     r3, r2, r1, LSR #23\n\n  // Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit.\n  MOV     r12, #1 << 31        // the leading 1 by itself\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r1 = mantissa of smaller operand (in high 24 bits);\n  //   r2 = result sign and exponent (in low 9 bits);\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r1) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n#if !__thumb__\n  ADDS    r12, r0, r1, LSR r3  // CS if x >= 2.0\n#else\n  // Thumb can't fold a register-controlled shift into an add, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  ADDS    r12, r0, r12\n#endif\n\n  // If that addition carried off the top of r12, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:3", "text": "//   r2 = result sign and exponent (in low 9 bits);\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r1) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n#if !__thumb__\n  ADDS    r12, r0, r1, LSR r3  // CS if x >= 2.0\n#else\n  // Thumb can't fold a register-controlled shift into an add, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  ADDS    r12, r0, r12\n#endif\n\n  // If that addition carried off the top of r12, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,\n  // because there we must check for overflow.\n  BCS     fadd_carry\n\n  // Here, on the non-carrying path, we don't need to check for overflow at\n  // all. If there is an overflow it can only be due to rounding up, so the\n  // overflowed mantissa will be all zeroes, so the naively generated output\n  // will look like the correct infinity anyway.\n  //\n  // We shift the mantissa down to its final position, and recombine it with\n  // the sign + exponent (in r2) via addition. We keep the bit shifted off the\n  // bottom of the mantissa in C, and then use ADC for the recombination, which\n  // causes us to round up if that bit was set without needing an extra\n  // instruction. But the leading bit of the mantissa increments the exponent\n  // field unwantedly, so we must decrement r2 first to compensate for that.\n  SUB     r2, r2, #1\n  MOVS    r0, r12, LSR #8\n  ADC     r0, r0, r2, LSL #23\n\n  // If we _didn't_ round up, then we're done.\n  BXCC    lr\n\n  // But if we did round up, then we must also check if we need to round to\n  // even. This occurs if all the bits of y's mantissa shifted off the bottom\n  // are zero except for the round bit.\n  //\n  // Some of those bits are in r12 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  TST     r12, #127\n  BXNE    lr\n\n  // Failing that, we have to go back to the original mantissa of y (still in\n  // r1) and work out exactly how many bits of it to check.\n  RSB     r3, r3, #32  // opposite of the amount we shifted y right by\n  LSLS    r1, r1, r3   // shift y left by that amount instead\n\n  // Now if Z is set, we do round to even, which works by just clearing the low\n  // bit of the output mantissa. This undoes the round-up if we rounded up to\n  // an odd mantissa, and otherwise, makes no difference.\n  BICEQ   r0, r0, #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:4", "text": "// But if we did round up, then we must also check if we need to round to\n  // even. This occurs if all the bits of y's mantissa shifted off the bottom\n  // are zero except for the round bit.\n  //\n  // Some of those bits are in r12 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  TST     r12, #127\n  BXNE    lr\n\n  // Failing that, we have to go back to the original mantissa of y (still in\n  // r1) and work out exactly how many bits of it to check.\n  RSB     r3, r3, #32  // opposite of the amount we shifted y right by\n  LSLS    r1, r1, r3   // shift y left by that amount instead\n\n  // Now if Z is set, we do round to even, which works by just clearing the low\n  // bit of the output mantissa. This undoes the round-up if we rounded up to\n  // an odd mantissa, and otherwise, makes no difference.\n  BICEQ   r0, r0, #1\n\n  // And now we're done.\n  BX      lr\n\nfadd_carry:\n  // This is the separate code path in which adding the mantissas together\n  // caused a carry off the top of the word, so that the exponent of the output\n  // incremented (even before rounding). Start by shifting the carry bit back\n  // in.\n  RRX     r0, r12\n\n  // Now recombine the sign and exponent, and do the basic rounding (apart from\n  // round to even), in the same way as the non-carrying code path above.\n  // However this time we don't decrement r2, because we want our exponent to\n  // come out bigger by 1 than in the other code path.\n  MOVS    r0, r0, LSR #8       // shift mantissa down to the right position\n  ADC     r0, r0, r2, LSL #23  // recombine with sign+exponent, and round\n\n  // Note that the mantissa cannot have overflowed during rounding: if it has\n  // all bits 1 before rounding, both operands must also have had all mantissa\n  // bits 1, and the same exponent - which implies the round bit was 0.\n  //\n  // So we definitely have the correct output exponent. There are two problems\n  // left: we might need to round to even, and we might have overflowed.\n\n  // First, do the cheap check that _usually_ rules out round-to-even. We only\n  // do this if C is set (i.e. if we rounded up), and we end up with Z=0 if no\n  // RTE. This relies on also having Z=0 already, in the case where we _didn't_\n  // round up - and that must be true because the last time we set the flags it\n  // was by shifting down the output mantissa, and that will always have had\n  // its leading bit set.\n  TSTCS   r12, #255       // test one more bit than on the no-carry path\n\n  // Now if Z=1 then we need to do the full check for RTE. But first, prepare a\n  // version of the output value shifted left by 1 where it's convenient to\n  // check its exponent for overflow. (We couldn't do that until we'd finished\n  // with r12 by testing it in the previous instruction.)\n  MOV     r12, r0, LSL #1\n\n  // Now, if we need to check for RTE, go off and do it.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:5", "text": "// bits 1, and the same exponent - which implies the round bit was 0.\n  //\n  // So we definitely have the correct output exponent. There are two problems\n  // left: we might need to round to even, and we might have overflowed.\n\n  // First, do the cheap check that _usually_ rules out round-to-even. We only\n  // do this if C is set (i.e. if we rounded up), and we end up with Z=0 if no\n  // RTE. This relies on also having Z=0 already, in the case where we _didn't_\n  // round up - and that must be true because the last time we set the flags it\n  // was by shifting down the output mantissa, and that will always have had\n  // its leading bit set.\n  TSTCS   r12, #255       // test one more bit than on the no-carry path\n\n  // Now if Z=1 then we need to do the full check for RTE. But first, prepare a\n  // version of the output value shifted left by 1 where it's convenient to\n  // check its exponent for overflow. (We couldn't do that until we'd finished\n  // with r12 by testing it in the previous instruction.)\n  MOV     r12, r0, LSL #1\n\n  // Now, if we need to check for RTE, go off and do it.\n  BEQ     fadd_roundeven_ovf\n\n  // Otherwise, we still need to check for overflow.\n  CMP     r12, #0xff000000  // if r12 >= this, the exponent has overflowed\n  BXLO    lr                // so if not, we can leave\n  B       fadd_ovf          // but if so, go and handle overflow\n\nfadd_roundeven_ovf:\n  // We came here if we detected a need to do the full check for RTE. But we\n  // may _also_ have overflowed, and just not have noticed yet.\n\n  // Same round-to-even check as in the non-carry case above.\n  RSB     r3, r3, #32  // opposite of the amount we shifted y right by\n  LSLS    r1, r1, r3   // shift y left by that amount instead\n  BICEQ   r0, r0, #1   // and if the remaining bits are all 0, round to even\n\n  // Now check for overflow, and if none, we're done.\n  CMP     r12, #0xff000000  // if r12 >= this, the exponent has overflowed\n  BXLO    lr                // so if not, we can leave\n\n  // If we get here, we have definitely overflowed. Moreover, the exponent\n  // field of the number is exactly 0xff. So all we have to do is clear the\n  // mantissa, to make it into an infinity of the output sign.\nfadd_ovf:\n  BFC     r0, #0, #23\n  BX      lr\n\nfadd_uncommon:\n  // We come here if the entry-point check says that at least one of x and y\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fadd_naninf", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:6", "text": "// If we get here, we have definitely overflowed. Moreover, the exponent\n  // field of the number is exactly 0xff. So all we have to do is clear the\n  // mantissa, to make it into an infinity of the output sign.\nfadd_ovf:\n  BFC     r0, #0, #23\n  BX      lr\n\nfadd_uncommon:\n  // We come here if the entry-point check says that at least one of x and y\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fadd_naninf\n\n  // Now we know both inputs are finite, but there may be denormals or zeroes.\n  // So it's safe to do the same sign check and cross-jump as we did on the\n  // fast path.\n  TEQ     r0, r1             // opposite signs?\n  EORMI   r1, r1, #1 << 31   // if so, negate the second operand\n  BMI     fsub_zerodenorm    // and cross-jump to the fsub version of this code\nfadd_zerodenorm:\n  // Now we know x and y have the same sign, and at least one of them is zero\n  // or denormal. If there aren't any zeroes, we'll end up rejoining the fast\n  // path, so we must set up all the same registers, and do our checks for zero\n  // in line with that.\n  //\n  // Start by exactly repeating the initial fast-path setup code: sort into\n  // magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1           // compare inputs, also keeping x-y\n  SUBLO   r0, r0, r2           // if x<y then turn x into y, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn y into x\n  MOV     r2, r0, LSR #23      // get exponent of x (the sign bit will cancel)\n  SUB     r3, r2, r1, LSR #23  // subtract exponent of y to get shift count\n\n  // Shift y's mantissa up to the top of r1. We know y has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on y's mantissa; also, if r1 becomes\n  // zero, then we know we have an addition to 0, and otherwise, we know both\n  // inputs are nonzero.\n  MOVS    r1, r1, LSL #8       // is y zero?\n  BXEQ    lr                   // if so, just return x\n\n  // Now we know there aren't any zeroes, and that y is a denormal. x might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of x to the top of r0\n  TST     r2, #255             // is x's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of x,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n  BNE     fadd_doadd           //  and go back to mainstream\n\n  // If both operands are denormals, addition becomes trivial: denormals and\n  // the smallest exponent of normalised numbers both multiply the mantissa by\n  // the same power of 2, so we can just add the mantissas together and put the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:7", "text": "// Shift y's mantissa up to the top of r1. We know y has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on y's mantissa; also, if r1 becomes\n  // zero, then we know we have an addition to 0, and otherwise, we know both\n  // inputs are nonzero.\n  MOVS    r1, r1, LSL #8       // is y zero?\n  BXEQ    lr                   // if so, just return x\n\n  // Now we know there aren't any zeroes, and that y is a denormal. x might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of x to the top of r0\n  TST     r2, #255             // is x's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of x,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n  BNE     fadd_doadd           //  and go back to mainstream\n\n  // If both operands are denormals, addition becomes trivial: denormals and\n  // the smallest exponent of normalised numbers both multiply the mantissa by\n  // the same power of 2, so we can just add the mantissas together and put the\n  // output sign back on.\n  ADD     r0, r0, r1           // make the output mantissa\n  MOV     r0, r0, LSR #8       // shift it into position\n  ORR     r0, r0, r2, LSL #23  // put the sign back at the top\n  BX      lr                   // done!\n\nfadd_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\nfadd_inf:\n  // No NaNs, so we have at least one infinity. Almost all additions involving\n  // an infinity return the input infinity unchanged. The only exception is if\n  // there are two infinities that have opposite signs (which can happen even\n  // inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  EOR     r2, r0, r1               // see how the two inputs differ\n  CMP     r2, #0x80000000          // +inf + -inf?\n  SUBEQ   r0, r2, #0x00400000      // if so, make the default output QNaN\n  BXEQ    lr                       // and return it\n  CMP     r12, r0, LSL #1          // otherwise, is r0 the infinity?\n  MOVNE   r0, r1                   // no, so it's r1\n  BX      lr                       // return the infinite input unchanged\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute y-x, where x is in r0 and y in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:8", "text": "// inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  EOR     r2, r0, r1               // see how the two inputs differ\n  CMP     r2, #0x80000000          // +inf + -inf?\n  SUBEQ   r0, r2, #0x00400000      // if so, make the default output QNaN\n  BXEQ    lr                       // and return it\n  CMP     r12, r0, LSL #1          // otherwise, is r0 the infinity?\n  MOVNE   r0, r1                   // no, so it's r1\n  BX      lr                       // return the infinite input unchanged\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute y-x, where x is in r0 and y in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they\n  // saved. So instead, on the fast path, we redo the sign check our own way\n  // and branch to fadd_magnitude or fsub_magnitude.\n\n  // First rule out denormals and zeroes, using the same test as fadd and fsub.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000\n  TSTNE   r3, #0x7F000000\n  BEQ     frsb_uncommon\n\n  // Now we know we only have finite inputs, it's safe to implement the\n  // reversal of the operand order by flipping signs. (Preserving the sign of\n  // an input NaN was the only case where that wasn't right.)\n\n  EOR     r0, r0, #1 << 31  // flip sign of the operand we're subtracting\n  TEQ     r0, r1            // are the signs now the same?\n  BPL     fadd_magnitude    // if so, we're doing magnitude addition\n  EOR     r1, r1, #1 << 31  // otherwise, flip the other sign too\n  B       fsub_magnitude    // and we're doing magnitude subtraction\n\nfrsb_uncommon:\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\n  EOR     r0, r0, r1\n  EOR     r1, r1, r0\n  EOR     r0, r0, r1\n  B       fsub_uncommon\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  //\n  // Start by testing for uncommon operands in the usual way.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:9", "text": "frsb_uncommon:\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\n  EOR     r0, r0, r1\n  EOR     r1, r1, r0\n  EOR     r0, r0, r1\n  B       fsub_uncommon\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  //\n  // Start by testing for uncommon operands in the usual way.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000\n  TSTNE   r3, #0x7F000000\n  BEQ     fsub_uncommon\n\n  // Check the signs, and if they're unequal, cross-jump into fadd to do\n  // magnitude addition. (Now we've excluded NaNs, it's safe to flip the sign\n  // of y.)\n  TEQ     r0, r1\n  EORMI   r1, r1, #1 << 31\n  BMI     fadd_magnitude\n\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that x >= y. However, if they are swapped, we must also negate\n  // both of them, since x - y = (-y) - (-x).\n  SUBS    r2, r0, r1            // LO if we must swap the operands\n#if !__thumb__\n  // Conditional on LO, swap the operands, by adding/subtracting the difference\n  // between them that we just wrote into r2. Negate them both in the process\n  // by flipping the high bit of r2 first.\n  EORLO   r2, r2, #1 << 31\n  SUBLO   r0, r0, r2\n  ADDLO   r1, r1, r2\n#else\n  // In Thumb, conditionally branch round these three instructions, instead of\n  // conditionally executing them with an ITTT LO. Rationale: on the simpler\n  // Thumb-only cores such as Cortex-M3, a branch only takes two cycles and an\n  // IT costs one, so this saves two cycles in the untaken case and doesn't\n  // impact the taken case at all.\n  BHS     0f\n  EOR     r2, r2, #1 << 31\n  SUB     r0, r0, r2\n  ADD     r1, r1, r2\n0:\n#endif\n\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:10", "text": "EORLO   r2, r2, #1 << 31\n  SUBLO   r0, r0, r2\n  ADDLO   r1, r1, r2\n#else\n  // In Thumb, conditionally branch round these three instructions, instead of\n  // conditionally executing them with an ITTT LO. Rationale: on the simpler\n  // Thumb-only cores such as Cortex-M3, a branch only takes two cycles and an\n  // IT costs one, so this saves two cycles in the untaken case and doesn't\n  // impact the taken case at all.\n  BHS     0f\n  EOR     r2, r2, #1 << 31\n  SUB     r0, r0, r2\n  ADD     r1, r1, r2\n0:\n#endif\n\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift the mantissas up to the top of the words, and OR in the leading 1\n  // for each.\n  MOV     r12, #1 << 31\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\nfsub_dosub:\n  // Here we perform the actual subtraction. We either fell through from the\n  // code above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r1 = mantissa of smaller operand (in high 24 bits);\n  //   r2 = result sign/exponent (in low 9 bits)\n  //   r3 = exponent difference.\n  //\n  // Begin calculating the output mantissa by shifting y's mantissa right and\n  // subtracting. This may leave the mantissa too large by one, if the bits\n  // shifted out of y are nonzero. We correct this during rounding if\n  // necessary.\n#if !__thumb__\n  SUBS    r12, r0, r1, LSR r3    // MI if high bit set\n#else\n  // Thumb can't fold a register-controlled shift into a sub, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  SUBS    r12, r0, r12\n#endif\n\n  // This may have cleared the high bit of the output mantissa, in which case\n  // we must renormalise. Our strategy is to split into three code paths, on\n  // two of which an awkward case is known not to arise:\n  //  * no need to renormalise at all => underflow can't happen\n  //  * shift up by exactly 1 bit\n  //  * shift up by more than 1 bit => rounding can't happen (result is exact)\n  //\n  // First branch out of line for the first case, which we can detect because", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:12", "text": "#endif\n  // After all that, N is clear if we still haven't set the top mantissa bit,\n  // either because we shifted up by a bit and it didn't help, or (in Arm state\n  // only) because we detected underflow and didn't do the shift at all.\n  //\n  // The case of 'haven't yet done the shift' is reliably indicated by the Z\n  // flag being set, because if we did do the shift, it will always have\n  // cleared Z.\n  BPL     fsub_renorm_orunder\n\n  // If we get here, we've renormalised by one bit (and have already shifted\n  // the mantissa up), and we also know there's no underflow.\n  //\n  // Recombine the sign+exponent with the fraction. We must also decrement the\n  // exponent, to account for the one-bit renormalisation. We do that by using\n  // ASR to shift the mantissa right: its top bit is currently set, so the ASR\n  // effectively puts -1 in the bits that are being added to the exponent.\n  MOVS    r0, r0, ASR #8  // also sets C if we need to round up\n  ADC     r0, r0, r2, LSL #23 // recombine, and also do basic rounding\n\n  // If C was not set, then we've rounded down. Therefore, no need to round to\n  // even, and also, no need to compensate for having shifted nonzero bits out\n  // of the subtrahend. We can just return.\n  BXCC    lr\n\n  // If any bit shifted out of the 32-bit output mantissa is nonzero, then we\n  // can also return, because we know we're rounding _up_ (and not to even),\n  // and again, bits shifted out of the subtrahend don't matter because their\n  // combined loss can't exceed the gain from one of these guard bits.\n  TST     r12, #0x3F\n  BXNE    lr\n\n  // Otherwise, we must do the full check for round to even.\n  B       fsub_roundeven\n\nfsub_renorm_0:\n  // We come here if no renormalisation is necessary, and therefore also no\n  // underflow can happen.\n  //\n  // Since the leading bit is set, we need to decrement the exponent, to\n  // account for the leading bit adding 1 to it when we recombine.\n  MOVS    r0, r12, LSR #8  // also sets C if we need to round up\n  SUB     r2, r2, #1       // adjust exponent\n  ADC     r0, r0, r2, LSL #23 // recombine, and also do basic rounding\n\n  // As in the 1-bit case above, if we didn't round up just now then we're\n  // done, and if any bit shifted out of r12 just now was nonzero then we're\n  // also done.\n  BXCC    lr               // rounding down, done\n  TST     r12, #0x7F\n  BXNE    lr               // nonzero guard bit, rounding up, done\n\n  // Otherwise, fall through to the full check for round to even.\nfsub_roundeven:\n  // Same round-to-even check as in the fadd cases: find all the bits we\n  // shifted out of y's mantissa and see if any are zero.\n  RSB     r3, r3, #32\n  LSLS    r1, r1, r3       // set Z if we're rounding to even\n\n  // Unlike the addition case, if we aren't rounding to even then the result is", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:13", "text": "// account for the leading bit adding 1 to it when we recombine.\n  MOVS    r0, r12, LSR #8  // also sets C if we need to round up\n  SUB     r2, r2, #1       // adjust exponent\n  ADC     r0, r0, r2, LSL #23 // recombine, and also do basic rounding\n\n  // As in the 1-bit case above, if we didn't round up just now then we're\n  // done, and if any bit shifted out of r12 just now was nonzero then we're\n  // also done.\n  BXCC    lr               // rounding down, done\n  TST     r12, #0x7F\n  BXNE    lr               // nonzero guard bit, rounding up, done\n\n  // Otherwise, fall through to the full check for round to even.\nfsub_roundeven:\n  // Same round-to-even check as in the fadd cases: find all the bits we\n  // shifted out of y's mantissa and see if any are zero.\n  RSB     r3, r3, #32\n  LSLS    r1, r1, r3       // set Z if we're rounding to even\n\n  // Unlike the addition case, if we aren't rounding to even then the result is\n  // currently too _big_: the top 32 bits of the output mantissa looked as if\n  // they were on a rounding boundary, but those nonzero bits shifted off the\n  // bottom of the mantissa make the true value slightly smaller than it\n  // looked, so in fact we're just _below_ a rounding boundary. But we've\n  // already rounded it up! So in the non-RTE case we must decrement the\n  // output value.\n  SUBNE   r0, r0, #1       // no RTE, so undo round up\n  BICEQ   r0, r0, #1       // yes RTE, so clear low bit of output\n  BX      lr\n\nfsub_renorm_orunder:\n  // We come here if _either_ of these is true:\n  //\n  //  1. we've shifted the output mantissa left by one bit already but its top\n  //     bit is still 0, so we must renormalise by more than 1 bit (and this\n  //     may cause an underflow that we haven't detected yet)\n  //\n  //  2. (Arm only) we have detected an underflow already, not yet shifted the\n  //     output mantissa at all, and haven't yet branched to fsub_underflow.\n\n  // Get the output sign bit by itself in r3. This is needed by the code below,\n  // and also used by fsub_underflow, so if we compute it before the (Arm-only)\n  // branch to fsub_underflow then it doesn't have to be duplicated there.\n  MOV     r3, r2, LSR #8   // r3 now has just the output sign, in bit 0\n\n#if !__thumb__\n  // Arm state: we did a combined check for cases 1 and 2 above, so this is\n  // where we separate them and go off to handle underflow in case 2. As stated\n  // above, the Z flag indicates an already-detected underflow.\n  BEQ     fsub_underflow\n#endif\n\n  // Now we know that we must renormalise by at least 2 bits, which may also\n  // give a denormal or zero result.\n  //\n  // This means no rounding can possibly be needed: if the subtraction cleared\n  // the top two bits of the mantissa, it means we computed A-B and found it\n  // was less than A/2, so B > A/2, so the exponent difference was at most 1.\n  // Hence the result mantissa fits in 24 bits even before renormalisation, and\n  // the top bit is clear, so it fits in 23 bits, i.e. it is exact.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:15", "text": "// final position (assuming the output is still a normalised number).\n  CLZ     r12, r0          // compute the shift / exponent adjustment\n  SUB     r2, r2, r12      // adjust exponent\n  LSL     r0, r0, r12      // shift mantissa up to the top of the word\n  LSR     r0, r0, #8       // and then down to its final position\n\n  // Check for underflow. This occurs precisely when the adjustment to the\n  // exponent in the bottom 8 bits of r2 carried into its sign bit (because at\n  // the moment the value in r2 is one lower than the true output exponent, so\n  // that adding the leading 1 bit in the mantissa will increment it back to\n  // the correct value). So we can check the sign bit in r2 against the copy of\n  // it we saved in r3 earlier. If no underflow, then we can just recombine the\n  // sign and exponent with the mantissa (no rounding is needed on this branch)\n  // and return.\n  TEQ     r3, r2, LSR #8      // Exponent underflow?\n  ADDEQ   r0, r0, r2, LSL #23 // if so, trivially put the output back together\n  BXEQ    lr                  // and return\n\n  // Now we _have_ underflowed, and the out-of-range exponent stored in the low\n  // 8 bits of r2 tell us by how much: if it's -n, then we need to shift the\n  // normalised mantissa down by n bits. So to make the output denormal, all we\n  // have to do is to shift the mantissa down and recombine it with the\n  // original sign in r3.\n  //\n  // Bit 8 of r2 contains a corrupted version of the sign bit, but we can\n  // safely ignore that, because the semantics of AArch32 register-controlled\n  // shift instructions are that only the low 8 bits of the shift-count\n  // register are examined. So that sign bit is too high up to affect what\n  // happens.\n\n  RSB     r2, r2, #0           // r2 is now the shift count\nfsub_do_underflow:             // we can also come here from below\n  MOV     r0, r0, LSR r2       // shift the mantissa down\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_underflow:\n  // We come here if we detected underflow in the 'renormalise by 1 bit' case.\n  // So the input exponent must have been 1, and we shift the mantissa by only\n  // one bit. The only question is whether we put the output sign on: if the\n  // result is actually zero, we don't need to, because a subtraction giving a\n  // zero output always gives +0 (as mentioned above).\n  MOVS    r0, r12, LSR #8         // Denormalise and check if result is zero\n  BXEQ    lr                      // Return +0 if result is zero\n#if __thumb__\n  // Get the output sign in r3. In Arm this was already done just after start\n  // of fsub_renorm_orunder, which all underflows went through. But in Thumb we\n  // might have come straight here without setting up r3.\n  MOV     r3, r2, LSR #8\n#endif\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_uncommon:\n  // We come here if the entry-point check says that at least one of x and y\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 561, "line_end": 620}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:16", "text": "// result is actually zero, we don't need to, because a subtraction giving a\n  // zero output always gives +0 (as mentioned above).\n  MOVS    r0, r12, LSR #8         // Denormalise and check if result is zero\n  BXEQ    lr                      // Return +0 if result is zero\n#if __thumb__\n  // Get the output sign in r3. In Arm this was already done just after start\n  // of fsub_renorm_orunder, which all underflows went through. But in Thumb we\n  // might have come straight here without setting up r3.\n  MOV     r3, r2, LSR #8\n#endif\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_uncommon:\n  // We come here if the entry-point check says that at least one of x and y\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fsub_naninf\n\n  // Now we know both inputs are finite, but there may be denormals or zeroes.\n  // So it's safe to do the same sign check and cross-jump as we did on the\n  // fast path.\n  TEQ     r0, r1             // opposite signs?\n  EORMI   r1, r1, #1 << 31   // if so, negate the second operand\n  BMI     fadd_zerodenorm    // and cross-jump to the fadd version of this code\n\nfsub_zerodenorm:\n  // Now we know x and y have the same sign, and at least one of them is zero\n  // or denormal. If there aren't any zeroes, we'll end up rejoining the fast\n  // path, so we must set up all the same registers, and do our checks for zero\n  // in line with that.\n  //\n  // Start by exactly repeating the initial fast-path setup code: sort into\n  // magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1         // compare inputs, also keeping x-y\n  EORLO   r2, r2, #1 << 31   // if misordered, flip high bit of difference\n  SUBLO   r0, r0, r2         // and use that to swap and sign-flip\n  ADDLO   r1, r1, r2         //   the two inputs\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift y's mantissa up to the top of r1. We know y has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on y's mantissa; also, if r1 becomes\n  // zero, then we know we're subtracting 0 from x.\n  MOVS    r1, r1, LSL #8\n  BEQ     fsub_yzero\n\n  // Now we know there aren't any zeroes, and that y is a denormal. x might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of x to the top of r0\n  TST     r2, #255             // is x's exponent 0? If so, it's denormal", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 601, "line_end": 660}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:17", "text": "// magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1         // compare inputs, also keeping x-y\n  EORLO   r2, r2, #1 << 31   // if misordered, flip high bit of difference\n  SUBLO   r0, r0, r2         // and use that to swap and sign-flip\n  ADDLO   r1, r1, r2         //   the two inputs\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift y's mantissa up to the top of r1. We know y has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on y's mantissa; also, if r1 becomes\n  // zero, then we know we're subtracting 0 from x.\n  MOVS    r1, r1, LSL #8\n  BEQ     fsub_yzero\n\n  // Now we know there aren't any zeroes, and that y is a denormal. x might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of x to the top of r0\n  TST     r2, #255             // is x's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of x,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n\n  B       fsub_dosub\n\nfsub_yzero:\n  // Here, we know y = 0, so we're subtracting 0 from x. For most values of x,\n  // we return x unchanged: subtracting 0 makes no difference. But if x is\n  // _also_ 0 then we must return +0, rather than whatever x's sign of zero is.\n  // (Because +0 is always the sign of zero you return when subtracting a\n  // number from itself).\n  MOVS    r12, r0, LSL #1      // test if x = 0 (bottom 31 bits all zero)\n  MOVEQ   r0, #0               // if so, replace x with +0\n  BX      lr\n\nfsub_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // Otherwise, we have no NaNs and at least one infinity, so we're returning\n  // either infinity, or NaN for an (inf-inf) subtraction. We can safely handle\n  // all these cases by flipping the sign of y and going to fadd_inf.\n  EOR     r1, r1, #0x80000000\n  B       fadd_inf\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 641, "line_end": 692}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:18", "text": "CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // Otherwise, we have no NaNs and at least one infinity, so we're returning\n  // either infinity, or NaN for an (inf-inf) subtraction. We can safely handle\n  // all these cases by flipping the sign of y and going to fadd_inf.\n  EOR     r1, r1, #0x80000000\n  B       fadd_inf\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/faddsub.S", "line_start": 681, "line_end": 692}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:1", "text": "// Single-precision addition and subtraction.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n// General structure of this code:\n//\n// There are three actual entry points here, for addition, subtraction and\n// reversed subtraction (just taking the operands the other way round, so that\n// it returns y-x instead of x-y). But the first thing the functions do (after\n// checking for NaNs) is to sort out whether the magnitudes of the two inputs\n// are being added (x+y with like signs, or x-y with different signs), or\n// subtracted. So fadd jumps across into the middle of fsub if it sees that the\n// signs are different, and vice versa. Then the main code path in fadd handles\n// magnitude addition, and the one in fsub handles magnitude subtraction.\n//\n// NaNs are checked first, so that an input NaN can be propagated exactly,\n// including its sign bit. After ruling out that case, it's safe to flip the\n// sign of one of the inputs, so that during the cross-calls, x - y can be\n// rewritten as x + (-y) and vice versa.\n\n  .globl arm_fp_fadd\n  .type arm_fp_fadd,%function\narm_fp_fadd:\n  // Test for all uncommon values at once: infinities, NaNs, denormals and\n  // zeroes. Branch out of line if any are found. We do this by XORing each\n  // input with itself shifted left by a bit, which means that exponents 00 and\n  // FF will both end up with seven zero bits at the top.\n  EOR     r2, r0, r0, LSL #1   // combine x with itself shifted\n  EOR     r3, r1, r1, LSL #1   // same for y\n  TST     r2, #0x7F000000      // is x uncommon?\n  TSTNE   r3, #0x7F000000      // if not, is y uncommon?\n  BEQ.W   fadd_uncommon        // if either, branch out of line\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub.\n  TEQ     r0, r1               // set N if signs are unequal\n  EORMI   r1, r1, #1 << 31     // if so, flip the sign of y\n  BMI.W   fsub_magnitude       // and go to magnitude subtraction\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that x >= y.\n  SUBS    r2, r0, r1           // compare inputs, also keeping x-y\n  SUBLO   r0, r0, r2           // if x<y then turn x into y, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn y into x\n\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift y's\n  // mantissa right to add it to x's.\n  //\n  // The shifted-right values will include the sign bits as well as the\n  // exponents, but that's OK, in this branch the two sign bits are the same,\n  // so they'll cancel when subtracted.\n  //", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/faddsub.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:2", "text": "TEQ     r0, r1               // set N if signs are unequal\n  EORMI   r1, r1, #1 << 31     // if so, flip the sign of y\n  BMI.W   fsub_magnitude       // and go to magnitude subtraction\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that x >= y.\n  SUBS    r2, r0, r1           // compare inputs, also keeping x-y\n  SUBLO   r0, r0, r2           // if x<y then turn x into y, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn y into x\n\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift y's\n  // mantissa right to add it to x's.\n  //\n  // The shifted-right values will include the sign bits as well as the\n  // exponents, but that's OK, in this branch the two sign bits are the same,\n  // so they'll cancel when subtracted.\n  //\n  // The exponent difference can be as large as 0xFE (maximum exponent minus\n  // minimum), which still fits in 8 bits, so shifting right by that amount is\n  // well defined in AArch32.\n  MOV     r2, r0, LSR #23\n  SUB     r3, r2, r1, LSR #23\n\n  // Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit.\n  MOV     r12, #1 << 31        // the leading 1 by itself\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r1 = mantissa of smaller operand (in high 24 bits);\n  //   r2 = result sign and exponent (in low 9 bits);\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r1) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n#if !__thumb__\n  ADDS    r12, r0, r1, LSR r3  // CS if x >= 2.0\n#else\n  // Thumb can't fold a register-controlled shift into an add, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  ADDS    r12, r0, r12\n#endif\n\n  // If that addition carried off the top of r12, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/faddsub.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:6", "text": "// If we get here, we have definitely overflowed. Moreover, the exponent\n  // field of the number is exactly 0xff. So all we have to do is clear the\n  // mantissa, to make it into an infinity of the output sign.\nfadd_ovf:\n  BFC     r0, #0, #23\n  BX      lr\n\nfadd_uncommon:\n  // We come here if the entry-point check says that at least one of x and y\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fadd_naninf\n\n  // Now we know both inputs are finite, but there may be denormals or zeroes.\n  // So it's safe to do the same sign check and cross-jump as we did on the\n  // fast path.\n  TEQ     r0, r1             // opposite signs?\n  EORMI   r1, r1, #1 << 31   // if so, negate the second operand\n  BMI.W   fsub_zerodenorm    // and cross-jump to the fsub version of this code\nfadd_zerodenorm:\n  // Now we know x and y have the same sign, and at least one of them is zero\n  // or denormal. If there aren't any zeroes, we'll end up rejoining the fast\n  // path, so we must set up all the same registers, and do our checks for zero\n  // in line with that.\n  //\n  // Start by exactly repeating the initial fast-path setup code: sort into\n  // magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1           // compare inputs, also keeping x-y\n  SUBLO   r0, r0, r2           // if x<y then turn x into y, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn y into x\n  MOV     r2, r0, LSR #23      // get exponent of x (the sign bit will cancel)\n  SUB     r3, r2, r1, LSR #23  // subtract exponent of y to get shift count\n\n  // Shift y's mantissa up to the top of r1. We know y has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on y's mantissa; also, if r1 becomes\n  // zero, then we know we have an addition to 0, and otherwise, we know both\n  // inputs are nonzero.\n  MOVS    r1, r1, LSL #8       // is y zero?\n  BXEQ    lr                   // if so, just return x\n\n  // Now we know there aren't any zeroes, and that y is a denormal. x might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of x to the top of r0\n  TST     r2, #255             // is x's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of x,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n  BNE     fadd_doadd           //  and go back to mainstream\n\n  // If both operands are denormals, addition becomes trivial: denormals and\n  // the smallest exponent of normalised numbers both multiply the mantissa by\n  // the same power of 2, so we can just add the mantissas together and put the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/faddsub.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:8", "text": "// inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  EOR     r2, r0, r1               // see how the two inputs differ\n  CMP     r2, #0x80000000          // +inf + -inf?\n  SUBEQ   r0, r2, #0x00400000      // if so, make the default output QNaN\n  BXEQ    lr                       // and return it\n  CMP     r12, r0, LSL #1          // otherwise, is r0 the infinity?\n  MOVNE   r0, r1                   // no, so it's r1\n  BX      lr                       // return the infinite input unchanged\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute y-x, where x is in r0 and y in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they\n  // saved. So instead, on the fast path, we redo the sign check our own way\n  // and branch to fadd_magnitude or fsub_magnitude.\n\n  // First rule out denormals and zeroes, using the same test as fadd and fsub.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000\n  TSTNE   r3, #0x7F000000\n  BEQ.W   frsb_uncommon\n\n  // Now we know we only have finite inputs, it's safe to implement the\n  // reversal of the operand order by flipping signs. (Preserving the sign of\n  // an input NaN was the only case where that wasn't right.)\n\n  EOR     r0, r0, #1 << 31  // flip sign of the operand we're subtracting\n  TEQ     r0, r1            // are the signs now the same?\n  BPL.W   fadd_magnitude    // if so, we're doing magnitude addition\n  EOR     r1, r1, #1 << 31  // otherwise, flip the other sign too\n  B.W     fsub_magnitude    // and we're doing magnitude subtraction\n\nfrsb_uncommon:\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\n  EOR     r0, r0, r1\n  EOR     r1, r1, r0\n  EOR     r0, r0, r1\n  B.W     fsub_uncommon\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  //\n  // Start by testing for uncommon operands in the usual way.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/faddsub.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:9", "text": "frsb_uncommon:\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\n  EOR     r0, r0, r1\n  EOR     r1, r1, r0\n  EOR     r0, r0, r1\n  B.W     fsub_uncommon\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  //\n  // Start by testing for uncommon operands in the usual way.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000\n  TSTNE   r3, #0x7F000000\n  BEQ.W   fsub_uncommon\n\n  // Check the signs, and if they're unequal, cross-jump into fadd to do\n  // magnitude addition. (Now we've excluded NaNs, it's safe to flip the sign\n  // of y.)\n  TEQ     r0, r1\n  EORMI   r1, r1, #1 << 31\n  BMI.W   fadd_magnitude\n\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that x >= y. However, if they are swapped, we must also negate\n  // both of them, since x - y = (-y) - (-x).\n  SUBS    r2, r0, r1            // LO if we must swap the operands\n#if !__thumb__\n  // Conditional on LO, swap the operands, by adding/subtracting the difference\n  // between them that we just wrote into r2. Negate them both in the process\n  // by flipping the high bit of r2 first.\n  EORLO   r2, r2, #1 << 31\n  SUBLO   r0, r0, r2\n  ADDLO   r1, r1, r2\n#else\n  // In Thumb, conditionally branch round these three instructions, instead of\n  // conditionally executing them with an ITTT LO. Rationale: on the simpler\n  // Thumb-only cores such as Cortex-M3, a branch only takes two cycles and an\n  // IT costs one, so this saves two cycles in the untaken case and doesn't\n  // impact the taken case at all.\n  BHS     0f\n  EOR     r2, r2, #1 << 31\n  SUB     r0, r0, r2\n  ADD     r1, r1, r2\n0:\n#endif\n\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/faddsub.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:16", "text": "// result is actually zero, we don't need to, because a subtraction giving a\n  // zero output always gives +0 (as mentioned above).\n  MOVS    r0, r12, LSR #8         // Denormalise and check if result is zero\n  BXEQ    lr                      // Return +0 if result is zero\n#if __thumb__\n  // Get the output sign in r3. In Arm this was already done just after start\n  // of fsub_renorm_orunder, which all underflows went through. But in Thumb we\n  // might have come straight here without setting up r3.\n  MOV     r3, r2, LSR #8\n#endif\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_uncommon:\n  // We come here if the entry-point check says that at least one of x and y\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fsub_naninf\n\n  // Now we know both inputs are finite, but there may be denormals or zeroes.\n  // So it's safe to do the same sign check and cross-jump as we did on the\n  // fast path.\n  TEQ     r0, r1             // opposite signs?\n  EORMI   r1, r1, #1 << 31   // if so, negate the second operand\n  BMI.W   fadd_zerodenorm    // and cross-jump to the fadd version of this code\n\nfsub_zerodenorm:\n  // Now we know x and y have the same sign, and at least one of them is zero\n  // or denormal. If there aren't any zeroes, we'll end up rejoining the fast\n  // path, so we must set up all the same registers, and do our checks for zero\n  // in line with that.\n  //\n  // Start by exactly repeating the initial fast-path setup code: sort into\n  // magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1         // compare inputs, also keeping x-y\n  EORLO   r2, r2, #1 << 31   // if misordered, flip high bit of difference\n  SUBLO   r0, r0, r2         // and use that to swap and sign-flip\n  ADDLO   r1, r1, r2         //   the two inputs\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift y's mantissa up to the top of r1. We know y has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on y's mantissa; also, if r1 becomes\n  // zero, then we know we're subtracting 0 from x.\n  MOVS    r1, r1, LSL #8\n  BEQ     fsub_yzero\n\n  // Now we know there aren't any zeroes, and that y is a denormal. x might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of x to the top of r0\n  TST     r2, #255             // is x's exponent 0? If so, it's denormal", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/faddsub.S", "line_start": 601, "line_end": 660}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:1", "text": "// Single-precision addition and subtraction.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n// General structure of this code:\n//\n// There are three actual entry points here, for addition, subtraction and\n// reversed subtraction (just taking the operands the other way round, so that\n// it returns b-a instead of a-b). But the first thing the functions do (after\n// checking for NaNs) is to sort out whether the magnitudes of the two inputs\n// are being added (a+b with like signs, or a-b with different signs), or\n// subtracted. So fadd jumps across into the middle of fsub if it sees that the\n// signs are different, and vice versa. Then the main code path in fadd handles\n// magnitude addition, and the one in fsub handles magnitude subtraction.\n//\n// NaNs are checked first, so that an input NaN can be propagated exactly,\n// including its sign bit. After ruling out that case, it's safe to flip the\n// sign of one of the inputs, so that during the cross-calls, a - b can be\n// rewritten as a + (-b) and vice versa.\n\n  .globl arm_fp_fadd\n  .type arm_fp_fadd,%function\narm_fp_fadd:\n  // Test for all uncommon values at once: infinities, NaNs, denormals and\n  // zeroes. Branch out of line if any are found. We do this by XORing each\n  // input with itself shifted left by a bit, which means that exponents 00 and\n  // FF will both end up with seven zero bits at the top.\n  EOR     r2, r0, r0, LSL #1   // combine a with itself shifted\n  EOR     r3, r1, r1, LSL #1   // same for b\n  TST     r2, #0x7F000000      // is a uncommon?\n  TSTNE   r3, #0x7F000000      // if not, is b uncommon?\n  BEQ.W   fadd_uncommon        // if either, branch out of line\n\n  // Now we have two normalised numbers. If their signs are opposite, we should\n  // be subtracting their magnitudes rather than adding, so cross-jump to fsub.\n  TEQ     r0, r1               // set N if signs are unequal\n  EORMI   r1, r1, #1 << 31     // if so, flip the sign of b\n  BMI.W   fsub_magnitude       // and go to magnitude subtraction\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that a >= b.\n  SUBS    r2, r0, r1           // compare inputs, also keeping a-b\n  SUBLO   r0, r0, r2           // if a<b then turn a into b, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn b into a\n\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift b's\n  // mantissa right to add it to a's.\n  //\n  // The shifted-right values will include the sign bits as well as the\n  // exponents, but that's OK, in this branch the two sign bits are the same,\n  // so they'll cancel when subtracted.\n  //", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:2", "text": "TEQ     r0, r1               // set N if signs are unequal\n  EORMI   r1, r1, #1 << 31     // if so, flip the sign of b\n  BMI.W   fsub_magnitude       // and go to magnitude subtraction\nfadd_magnitude:\n  // If we get here, we're adding operands with equal signs (i.e. a magnitude\n  // addition). First thing to do is put the operands in magnitude order, so\n  // that a >= b.\n  SUBS    r2, r0, r1           // compare inputs, also keeping a-b\n  SUBLO   r0, r0, r2           // if a<b then turn a into b, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn b into a\n\n  // Keep the sign and exponent of the larger input, to use as the sign and\n  // exponent of the output (up to carries and overflows). Also calculate the\n  // exponent difference, which tells us how far we'll need to shift b's\n  // mantissa right to add it to a's.\n  //\n  // The shifted-right values will include the sign bits as well as the\n  // exponents, but that's OK, in this branch the two sign bits are the same,\n  // so they'll cancel when subtracted.\n  //\n  // The exponent difference can be as large as 0xFE (maximum exponent minus\n  // minimum), which still fits in 8 bits, so shifting right by that amount is\n  // well defined in AArch32.\n  MOV     r2, r0, LSR #23\n  SUB     r3, r2, r1, LSR #23\n\n  // Extract both mantissas, moved up to the top of the word, with the leading\n  // 1 made explicit.\n  MOV     r12, #1 << 31        // the leading 1 by itself\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\nfadd_doadd:\n  // Here we perform the actual addition. We either fell through from the code\n  // above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r1 = mantissa of smaller operand (in high 24 bits);\n  //   r2 = result sign and exponent (in low 9 bits);\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r1) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n#if !__thumb__\n  ADDS    r12, r0, r1, LSR r3  // CS if a >= 2.0\n#else\n  // Thumb can't fold a register-controlled shift into an add, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  ADDS    r12, r0, r12\n#endif\n\n  // If that addition carried off the top of r12, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:3", "text": "//   r2 = result sign and exponent (in low 9 bits);\n  //   r3 = exponent difference.\n  //\n  // For normal inputs, the mantissa registers (r0,r1) will have the top bit\n  // set. Denormals will leave that bit clear, treating the number as\n  // 0.[mantissa] x 2^(fixed exponent) instead of renormalising to 1.[mantissa]\n  // x 2^(variable exponent) as a multiplication would want.\n\n  // Actually shift the smaller mantissa downwards and add them together.\n#if !__thumb__\n  ADDS    r12, r0, r1, LSR r3  // CS if a >= 2.0\n#else\n  // Thumb can't fold a register-controlled shift into an add, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  ADDS    r12, r0, r12\n#endif\n\n  // If that addition carried off the top of r12, then the number has increased\n  // its exponent. Diverge into a completely separate code path for that case,\n  // because there we must check for overflow.\n  BCS     fadd_carry\n\n  // Here, on the non-carrying path, we don't need to check for overflow at\n  // all. If there is an overflow it can only be due to rounding up, so the\n  // overflowed mantissa will be all zeroes, so the naively generated output\n  // will look like the correct infinity anyway.\n  //\n  // We shift the mantissa down to its final position, and recombine it with\n  // the sign + exponent (in r2) via addition. We keep the bit shifted off the\n  // bottom of the mantissa in C, and then use ADC for the recombination, which\n  // causes us to round up if that bit was set without needing an extra\n  // instruction. But the leading bit of the mantissa increments the exponent\n  // field unwantedly, so we must decrement r2 first to compensate for that.\n  SUB     r2, r2, #1\n  MOVS    r0, r12, LSR #8\n  ADC     r0, r0, r2, LSL #23\n\n  // If we _didn't_ round up, then we're done.\n  BXCC    lr\n\n  // But if we did round up, then we must also check if we need to round to\n  // even. This occurs if all the bits of b's mantissa shifted off the bottom\n  // are zero except for the round bit.\n  //\n  // Some of those bits are in r12 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  TST     r12, #127\n  BXNE    lr\n\n  // Failing that, we have to go back to the original mantissa of b (still in\n  // r1) and work out exactly how many bits of it to check.\n  RSB     r3, r3, #32  // opposite of the amount we shifted b right by\n  LSLS    r1, r1, r3   // shift b left by that amount instead\n\n  // Now if Z is set, we do round to even, which works by just clearing the low\n  // bit of the output mantissa. This undoes the round-up if we rounded up to\n  // an odd mantissa, and otherwise, makes no difference.\n  BICEQ   r0, r0, #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:4", "text": "// But if we did round up, then we must also check if we need to round to\n  // even. This occurs if all the bits of b's mantissa shifted off the bottom\n  // are zero except for the round bit.\n  //\n  // Some of those bits are in r12 (the 32-bit version of the sum's mantissa).\n  // It's cheap to check those, and should exclude _most_ cases where\n  // round-to-even isn't needed.\n  TST     r12, #127\n  BXNE    lr\n\n  // Failing that, we have to go back to the original mantissa of b (still in\n  // r1) and work out exactly how many bits of it to check.\n  RSB     r3, r3, #32  // opposite of the amount we shifted b right by\n  LSLS    r1, r1, r3   // shift b left by that amount instead\n\n  // Now if Z is set, we do round to even, which works by just clearing the low\n  // bit of the output mantissa. This undoes the round-up if we rounded up to\n  // an odd mantissa, and otherwise, makes no difference.\n  BICEQ   r0, r0, #1\n\n  // And now we're done.\n  BX      lr\n\nfadd_carry:\n  // This is the separate code path in which adding the mantissas together\n  // caused a carry off the top of the word, so that the exponent of the output\n  // incremented (even before rounding). Start by shifting the carry bit back\n  // in.\n  RRX     r0, r12\n\n  // Now recombine the sign and exponent, and do the basic rounding (apart from\n  // round to even), in the same way as the non-carrying code path above.\n  // However this time we don't decrement r2, because we want our exponent to\n  // come out bigger by 1 than in the other code path.\n  MOVS    r0, r0, LSR #8       // shift mantissa down to the right position\n  ADC     r0, r0, r2, LSL #23  // recombine with sign+exponent, and round\n\n  // Note that the mantissa cannot have overflowed during rounding: if it has\n  // all bits 1 before rounding, both operands must also have had all mantissa\n  // bits 1, and the same exponent - which implies the round bit was 0.\n  //\n  // So we definitely have the correct output exponent. There are two problems\n  // left: we might need to round to even, and we might have overflowed.\n\n  // First, do the cheap check that _usually_ rules out round-to-even. We only\n  // do this if C is set (i.e. if we rounded up), and we end up with Z=0 if no\n  // RTE. This relies on also having Z=0 already, in the case where we _didn't_\n  // round up - and that must be true because the last time we set the flags it\n  // was by shifting down the output mantissa, and that will always have had\n  // its leading bit set.\n  TSTCS   r12, #255       // test one more bit than on the no-carry path\n\n  // Now if Z=1 then we need to do the full check for RTE. But first, prepare a\n  // version of the output value shifted left by 1 where it's convenient to\n  // check its exponent for overflow. (We couldn't do that until we'd finished\n  // with r12 by testing it in the previous instruction.)\n  MOV     r12, r0, LSL #1\n\n  // Now, if we need to check for RTE, go off and do it.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:5", "text": "// bits 1, and the same exponent - which implies the round bit was 0.\n  //\n  // So we definitely have the correct output exponent. There are two problems\n  // left: we might need to round to even, and we might have overflowed.\n\n  // First, do the cheap check that _usually_ rules out round-to-even. We only\n  // do this if C is set (i.e. if we rounded up), and we end up with Z=0 if no\n  // RTE. This relies on also having Z=0 already, in the case where we _didn't_\n  // round up - and that must be true because the last time we set the flags it\n  // was by shifting down the output mantissa, and that will always have had\n  // its leading bit set.\n  TSTCS   r12, #255       // test one more bit than on the no-carry path\n\n  // Now if Z=1 then we need to do the full check for RTE. But first, prepare a\n  // version of the output value shifted left by 1 where it's convenient to\n  // check its exponent for overflow. (We couldn't do that until we'd finished\n  // with r12 by testing it in the previous instruction.)\n  MOV     r12, r0, LSL #1\n\n  // Now, if we need to check for RTE, go off and do it.\n  BEQ     fadd_roundeven_ovf\n\n  // Otherwise, we still need to check for overflow.\n  CMP     r12, #0xff000000  // if r12 >= this, the exponent has overflowed\n  BXLO    lr                // so if not, we can leave\n  B       fadd_ovf          // but if so, go and handle overflow\n\nfadd_roundeven_ovf:\n  // We came here if we detected a need to do the full check for RTE. But we\n  // may _also_ have overflowed, and just not have noticed yet.\n\n  // Same round-to-even check as in the non-carry case above.\n  RSB     r3, r3, #32  // opposite of the amount we shifted b right by\n  LSLS    r1, r1, r3   // shift b left by that amount instead\n  BICEQ   r0, r0, #1   // and if the remaining bits are all 0, round to even\n\n  // Now check for overflow, and if none, we're done.\n  CMP     r12, #0xff000000  // if r12 >= this, the exponent has overflowed\n  BXLO    lr                // so if not, we can leave\n\n  // If we get here, we have definitely overflowed. Moreover, the exponent\n  // field of the number is exactly 0xff. So all we have to do is clear the\n  // mantissa, to make it into an infinity of the output sign.\nfadd_ovf:\n  BFC     r0, #0, #23\n  BX      lr\n\nfadd_uncommon:\n  // We come here if the entry-point check says that at least one of a and b\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fadd_naninf", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:6", "text": "// If we get here, we have definitely overflowed. Moreover, the exponent\n  // field of the number is exactly 0xff. So all we have to do is clear the\n  // mantissa, to make it into an infinity of the output sign.\nfadd_ovf:\n  BFC     r0, #0, #23\n  BX      lr\n\nfadd_uncommon:\n  // We come here if the entry-point check says that at least one of a and b\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fadd_naninf\n\n  // Now we know both inputs are finite, but there may be denormals or zeroes.\n  // So it's safe to do the same sign check and cross-jump as we did on the\n  // fast path.\n  TEQ     r0, r1             // opposite signs?\n  EORMI   r1, r1, #1 << 31   // if so, negate the second operand\n  BMI.W   fsub_zerodenorm    // and cross-jump to the fsub version of this code\nfadd_zerodenorm:\n  // Now we know a and b have the same sign, and at least one of them is zero\n  // or denormal. If there aren't any zeroes, we'll end up rejoining the fast\n  // path, so we must set up all the same registers, and do our checks for zero\n  // in line with that.\n  //\n  // Start by exactly repeating the initial fast-path setup code: sort into\n  // magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1           // compare inputs, also keeping a-b\n  SUBLO   r0, r0, r2           // if a<b then turn a into b, using value in r2\n  ADDLO   r1, r1, r2           // and similarly turn b into a\n  MOV     r2, r0, LSR #23      // get exponent of a (the sign bit will cancel)\n  SUB     r3, r2, r1, LSR #23  // subtract exponent of b to get shift count\n\n  // Shift b's mantissa up to the top of r1. We know b has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on b's mantissa; also, if r1 becomes\n  // zero, then we know we have an addition to 0, and otherwise, we know both\n  // inputs are nonzero.\n  MOVS    r1, r1, LSL #8       // is b zero?\n  BXEQ    lr                   // if so, just return a\n\n  // Now we know there aren't any zeroes, and that b is a denormal. a might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of a to the top of r0\n  TST     r2, #255             // is a's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of a,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n  BNE     fadd_doadd           //  and go back to mainstream\n\n  // If both operands are denormals, addition becomes trivial: denormals and\n  // the smallest exponent of normalised numbers both multiply the mantissa by\n  // the same power of 2, so we can just add the mantissas together and put the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:7", "text": "// Shift b's mantissa up to the top of r1. We know b has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on b's mantissa; also, if r1 becomes\n  // zero, then we know we have an addition to 0, and otherwise, we know both\n  // inputs are nonzero.\n  MOVS    r1, r1, LSL #8       // is b zero?\n  BXEQ    lr                   // if so, just return a\n\n  // Now we know there aren't any zeroes, and that b is a denormal. a might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of a to the top of r0\n  TST     r2, #255             // is a's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of a,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n  BNE     fadd_doadd           //  and go back to mainstream\n\n  // If both operands are denormals, addition becomes trivial: denormals and\n  // the smallest exponent of normalised numbers both multiply the mantissa by\n  // the same power of 2, so we can just add the mantissas together and put the\n  // output sign back on.\n  ADD     r0, r0, r1           // make the output mantissa\n  MOV     r0, r0, LSR #8       // shift it into position\n  ORR     r0, r0, r2, LSL #23  // put the sign back at the top\n  BX      lr                   // done!\n\nfadd_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\nfadd_inf:\n  // No NaNs, so we have at least one infinity. Almost all additions involving\n  // an infinity return the input infinity unchanged. The only exception is if\n  // there are two infinities that have opposite signs (which can happen even\n  // inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  EOR     r2, r0, r1               // see how the two inputs differ\n  CMP     r2, #0x80000000          // +inf + -inf?\n  SUBEQ   r0, r2, #0x00400000      // if so, make the default output QNaN\n  BXEQ    lr                       // and return it\n  CMP     r12, r0, LSL #1          // otherwise, is r0 the infinity?\n  MOVNE   r0, r1                   // no, so it's r1\n  BX      lr                       // return the infinite input unchanged\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute b-a, where a is in r0 and b in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:8", "text": "// inf fadd, since on this code path we haven't cross-jumped into fsub),\n  // where we return NaN.\n  EOR     r2, r0, r1               // see how the two inputs differ\n  CMP     r2, #0x80000000          // +inf + -inf?\n  SUBEQ   r0, r2, #0x00400000      // if so, make the default output QNaN\n  BXEQ    lr                       // and return it\n  CMP     r12, r0, LSL #1          // otherwise, is r0 the infinity?\n  MOVNE   r0, r1                   // no, so it's r1\n  BX      lr                       // return the infinite input unchanged\n\n  .size arm_fp_fadd, .-arm_fp_fadd\n\n  .globl arm_fp_frsub\n  .type arm_fp_frsub,%function\narm_fp_frsub:\n  // Reversed subtraction, that is, compute b-a, where a is in r0 and b in r1.\n  //\n  // We could implement this by simply swapping r0 with r1. But the point of\n  // having a reversed-subtract in the first place is to avoid the caller\n  // having to do that, so if we do it ourselves, it wastes all the time they\n  // saved. So instead, on the fast path, we redo the sign check our own way\n  // and branch to fadd_magnitude or fsub_magnitude.\n\n  // First rule out denormals and zeroes, using the same test as fadd and fsub.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000\n  TSTNE   r3, #0x7F000000\n  BEQ.W   frsb_uncommon\n\n  // Now we know we only have finite inputs, it's safe to implement the\n  // reversal of the operand order by flipping signs. (Preserving the sign of\n  // an input NaN was the only case where that wasn't right.)\n\n  EOR     r0, r0, #1 << 31  // flip sign of the operand we're subtracting\n  TEQ     r0, r1            // are the signs now the same?\n  BPL.W   fadd_magnitude    // if so, we're doing magnitude addition\n  EOR     r1, r1, #1 << 31  // otherwise, flip the other sign too\n  B.W     fsub_magnitude    // and we're doing magnitude subtraction\n\nfrsb_uncommon:\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\n  EOR     r0, r0, r1\n  EOR     r1, r1, r0\n  EOR     r0, r0, r1\n  B.W     fsub_uncommon\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  //\n  // Start by testing for uncommon operands in the usual way.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:9", "text": "frsb_uncommon:\n  // Any uncommon operands to frsub are handled by just swapping the two\n  // operands and going to fsub's handler. We're off the main fast path now, so\n  // there's no need to try to optimise it any harder.\n  EOR     r0, r0, r1\n  EOR     r1, r1, r0\n  EOR     r0, r0, r1\n  B.W     fsub_uncommon\n\n  .size arm_fp_frsub, .-arm_fp_frsub\n\n  .globl arm_fp_fsub\n  .type arm_fp_fsub,%function\narm_fp_fsub:\n  // Main entry point for subtraction.\n  //\n  // Start by testing for uncommon operands in the usual way.\n  EOR     r2, r0, r0, LSL #1\n  EOR     r3, r1, r1, LSL #1\n  TST     r2, #0x7F000000\n  TSTNE   r3, #0x7F000000\n  BEQ.W   fsub_uncommon\n\n  // Check the signs, and if they're unequal, cross-jump into fadd to do\n  // magnitude addition. (Now we've excluded NaNs, it's safe to flip the sign\n  // of b.)\n  TEQ     r0, r1\n  EORMI   r1, r1, #1 << 31\n  BMI.W   fadd_magnitude\n\nfsub_magnitude:\n  // If we get here, we're subtracting operands with equal signs (i.e. a\n  // magnitude subtraction). First thing to do is put operands in magnitude\n  // order, so that a >= b. However, if they are swapped, we must also negate\n  // both of them, since A - B = (-B) - (-A).\n  SUBS    r2, r0, r1            // LO if we must swap the operands\n#if !__thumb__\n  // Conditional on LO, swap the operands, by adding/subtracting the difference\n  // between them that we just wrote into r2. Negate them both in the process\n  // by flipping the high bit of r2 first.\n  EORLO   r2, r2, #1 << 31\n  SUBLO   r0, r0, r2\n  ADDLO   r1, r1, r2\n#else\n  // In Thumb, conditionally branch round these three instructions, instead of\n  // conditionally executing them with an ITTT LO. Rationale: on the simpler\n  // Thumb-only cores such as Cortex-M3, a branch only takes two cycles and an\n  // IT costs one, so this saves two cycles in the untaken case and doesn't\n  // impact the taken case at all.\n  BHS     0f\n  EOR     r2, r2, #1 << 31\n  SUB     r0, r0, r2\n  ADD     r1, r1, r2\n0:\n#endif\n\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:10", "text": "EORLO   r2, r2, #1 << 31\n  SUBLO   r0, r0, r2\n  ADDLO   r1, r1, r2\n#else\n  // In Thumb, conditionally branch round these three instructions, instead of\n  // conditionally executing them with an ITTT LO. Rationale: on the simpler\n  // Thumb-only cores such as Cortex-M3, a branch only takes two cycles and an\n  // IT costs one, so this saves two cycles in the untaken case and doesn't\n  // impact the taken case at all.\n  BHS     0f\n  EOR     r2, r2, #1 << 31\n  SUB     r0, r0, r2\n  ADD     r1, r1, r2\n0:\n#endif\n\n  // Save the sign and exponent of the larger operand to use for the result (up\n  // to renormalisation), and calculate the exponent difference for shifting\n  // one mantissa relative to the other.\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift the mantissas up to the top of the words, and OR in the leading 1\n  // for each.\n  MOV     r12, #1 << 31\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\nfsub_dosub:\n  // Here we perform the actual subtraction. We either fell through from the\n  // code above, or jumped back to here after handling an input denormal.\n  //\n  // We get here with:\n  //   Operands known to be numeric rather than zero/infinity/NaN;\n  //   r0 = mantissa of larger operand (in high 24 bits);\n  //   r1 = mantissa of smaller operand (in high 24 bits);\n  //   r2 = result sign/exponent (in low 9 bits)\n  //   r3 = exponent difference.\n  //\n  // Begin calculating the output mantissa by shifting b's mantissa right and\n  // subtracting. This may leave the mantissa too large by one, if the bits\n  // shifted out of b are nonzero. We correct this during rounding if\n  // necessary.\n#if !__thumb__\n  SUBS    r12, r0, r1, LSR r3    // MI if high bit set\n#else\n  // Thumb can't fold a register-controlled shift into a sub, so we must use\n  // two separate instructions.\n  LSR     r12, r1, r3\n  SUBS    r12, r0, r12\n#endif\n\n  // This may have cleared the high bit of the output mantissa, in which case\n  // we must renormalise. Our strategy is to split into three code paths, on\n  // two of which an awkward case is known not to arise:\n  //  * no need to renormalise at all => underflow can't happen\n  //  * shift up by exactly 1 bit\n  //  * shift up by more than 1 bit => rounding can't happen (result is exact)\n  //\n  // First branch out of line for the first case, which we can detect because", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:12", "text": "#endif\n  // After all that, N is clear if we still haven't set the top mantissa bit,\n  // either because we shifted up by a bit and it didn't help, or (in Arm state\n  // only) because we detected underflow and didn't do the shift at all.\n  //\n  // The case of 'haven't yet done the shift' is reliably indicated by the Z\n  // flag being set, because if we did do the shift, it will always have\n  // cleared Z.\n  BPL     fsub_renorm_orunder\n\n  // If we get here, we've renormalised by one bit (and have already shifted\n  // the mantissa up), and we also know there's no underflow.\n  //\n  // Recombine the sign+exponent with the fraction. We must also decrement the\n  // exponent, to account for the one-bit renormalisation. We do that by using\n  // ASR to shift the mantissa right: its top bit is currently set, so the ASR\n  // effectively puts -1 in the bits that are being added to the exponent.\n  MOVS    r0, r0, ASR #8  // also sets C if we need to round up\n  ADC     r0, r0, r2, LSL #23 // recombine, and also do basic rounding\n\n  // If C was not set, then we've rounded down. Therefore, no need to round to\n  // even, and also, no need to compensate for having shifted nonzero bits out\n  // of the subtrahend. We can just return.\n  BXCC    lr\n\n  // If any bit shifted out of the 32-bit output mantissa is nonzero, then we\n  // can also return, because we know we're rounding _up_ (and not to even),\n  // and again, bits shifted out of the subtrahend don't matter because their\n  // combined loss can't exceed the gain from one of these guard bits.\n  TST     r12, #0x3F\n  BXNE    lr\n\n  // Otherwise, we must do the full check for round to even.\n  B       fsub_roundeven\n\nfsub_renorm_0:\n  // We come here if no renormalisation is necessary, and therefore also no\n  // underflow can happen.\n  //\n  // Since the leading bit is set, we need to decrement the exponent, to\n  // account for the leading bit adding 1 to it when we recombine.\n  MOVS    r0, r12, LSR #8  // also sets C if we need to round up\n  SUB     r2, r2, #1       // adjust exponent\n  ADC     r0, r0, r2, LSL #23 // recombine, and also do basic rounding\n\n  // As in the 1-bit case above, if we didn't round up just now then we're\n  // done, and if any bit shifted out of r12 just now was nonzero then we're\n  // also done.\n  BXCC    lr               // rounding down, done\n  TST     r12, #0x7F\n  BXNE    lr               // nonzero guard bit, rounding up, done\n\n  // Otherwise, fall through to the full check for round to even.\nfsub_roundeven:\n  // Same round-to-even check as in the fadd cases: find all the bits we\n  // shifted out of b's mantissa and see if any are zero.\n  RSB     r3, r3, #32\n  LSLS    r1, r1, r3       // set Z if we're rounding to even\n\n  // Unlike the addition case, if we aren't rounding to even then the result is", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:13", "text": "// account for the leading bit adding 1 to it when we recombine.\n  MOVS    r0, r12, LSR #8  // also sets C if we need to round up\n  SUB     r2, r2, #1       // adjust exponent\n  ADC     r0, r0, r2, LSL #23 // recombine, and also do basic rounding\n\n  // As in the 1-bit case above, if we didn't round up just now then we're\n  // done, and if any bit shifted out of r12 just now was nonzero then we're\n  // also done.\n  BXCC    lr               // rounding down, done\n  TST     r12, #0x7F\n  BXNE    lr               // nonzero guard bit, rounding up, done\n\n  // Otherwise, fall through to the full check for round to even.\nfsub_roundeven:\n  // Same round-to-even check as in the fadd cases: find all the bits we\n  // shifted out of b's mantissa and see if any are zero.\n  RSB     r3, r3, #32\n  LSLS    r1, r1, r3       // set Z if we're rounding to even\n\n  // Unlike the addition case, if we aren't rounding to even then the result is\n  // currently too _big_: the top 32 bits of the output mantissa looked as if\n  // they were on a rounding boundary, but those nonzero bits shifted off the\n  // bottom of the mantissa make the true value slightly smaller than it\n  // looked, so in fact we're just _below_ a rounding boundary. But we've\n  // already rounded it up! So in the non-RTE case we must decrement the\n  // output value.\n  SUBNE   r0, r0, #1       // no RTE, so undo round up\n  BICEQ   r0, r0, #1       // yes RTE, so clear low bit of output\n  BX      lr\n\nfsub_renorm_orunder:\n  // We come here if _either_ of these is true:\n  //\n  //  1. we've shifted the output mantissa left by one bit already but its top\n  //     bit is still 0, so we must renormalise by more than 1 bit (and this\n  //     may cause an underflow that we haven't detected yet)\n  //\n  //  2. (Arm only) we have detected an underflow already, not yet shifted the\n  //     output mantissa at all, and haven't yet branched to fsub_underflow.\n\n  // Get the output sign bit by itself in r3. This is needed by the code below,\n  // and also used by fsub_underflow, so if we compute it before the (Arm-only)\n  // branch to fsub_underflow then it doesn't have to be duplicated there.\n  MOV     r3, r2, LSR #8   // r3 now has just the output sign, in bit 0\n\n#if !__thumb__\n  // Arm state: we did a combined check for cases 1 and 2 above, so this is\n  // where we separate them and go off to handle underflow in case 2. As stated\n  // above, the Z flag indicates an already-detected underflow.\n  BEQ     fsub_underflow\n#endif\n\n  // Now we know that we must renormalise by at least 2 bits, which may also\n  // give a denormal or zero result.\n  //\n  // This means no rounding can possibly be needed: if the subtraction cleared\n  // the top two bits of the mantissa, it means we computed A-B and found it\n  // was less than A/2, so B > A/2, so the exponent difference was at most 1.\n  // Hence the result mantissa fits in 24 bits even before renormalisation, and\n  // the top bit is clear, so it fits in 23 bits, i.e. it is exact.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:15", "text": "// final position (assuming the output is still a normalised number).\n  CLZ     r12, r0          // compute the shift / exponent adjustment\n  SUB     r2, r2, r12      // adjust exponent\n  LSL     r0, r0, r12      // shift mantissa up to the top of the word\n  LSR     r0, r0, #8       // and then down to its final position\n\n  // Check for underflow. This occurs precisely when the adjustment to the\n  // exponent in the bottom 8 bits of r2 carried into its sign bit (because at\n  // the moment the value in r2 is one lower than the true output exponent, so\n  // that adding the leading 1 bit in the mantissa will increment it back to\n  // the correct value). So we can check the sign bit in r2 against the copy of\n  // it we saved in r3 earlier. If no underflow, then we can just recombine the\n  // sign and exponent with the mantissa (no rounding is needed on this branch)\n  // and return.\n  TEQ     r3, r2, LSR #8      // Exponent underflow?\n  ADDEQ   r0, r0, r2, LSL #23 // if so, trivially put the output back together\n  BXEQ    lr                  // and return\n\n  // Now we _have_ underflowed, and the out-of-range exponent stored in the low\n  // 8 bits of r2 tell us by how much: if it's -n, then we need to shift the\n  // normalised mantissa down by n bits. So to make the output denormal, all we\n  // have to do is to shift the mantissa down and recombine it with the\n  // original sign in r3.\n  //\n  // Bit 8 of r2 contains a corrupted version of the sign bit, but we can\n  // safely ignore that, because the semantics of AArch32 register-controlled\n  // shift instructions are that only the low 8 bits of the shift-count\n  // register are examined. So that sign bit is too high up to affect what\n  // happens.\n\n  RSB     r2, r2, #0           // r2 is now the shift count\nfsub_do_underflow:             // we can also come here from below\n  MOV     r0, r0, LSR r2       // shift the mantissa down\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_underflow:\n  // We come here if we detected underflow in the 'renormalise by 1 bit' case.\n  // So the input exponent must have been 1, and we shift the mantissa by only\n  // one bit. The only question is whether we put the output sign on: if the\n  // result is actually zero, we don't need to, because a subtraction giving a\n  // zero output always gives +0 (as mentioned above).\n  MOVS    r0, r12, LSR #8         // Denormalise and check if result is zero\n  BXEQ    lr                      // Return +0 if result is zero\n#if __thumb__\n  // Get the output sign in r3. In Arm this was already done just after start\n  // of fsub_renorm_orunder, which all underflows went through. But in Thumb we\n  // might have come straight here without setting up r3.\n  MOV     r3, r2, LSR #8\n#endif\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_uncommon:\n  // We come here if the entry-point check says that at least one of a and b\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 561, "line_end": 620}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:16", "text": "// result is actually zero, we don't need to, because a subtraction giving a\n  // zero output always gives +0 (as mentioned above).\n  MOVS    r0, r12, LSR #8         // Denormalise and check if result is zero\n  BXEQ    lr                      // Return +0 if result is zero\n#if __thumb__\n  // Get the output sign in r3. In Arm this was already done just after start\n  // of fsub_renorm_orunder, which all underflows went through. But in Thumb we\n  // might have come straight here without setting up r3.\n  MOV     r3, r2, LSR #8\n#endif\n  ORR     r0, r0, r3, LSL #31  // put the sign back on\n  BX      lr                   // and return\n\nfsub_uncommon:\n  // We come here if the entry-point check says that at least one of a and b\n  // has an uncommon (FF or 00) exponent. So we have at least one NaN,\n  // infinity, denormal or zero, but we don't know which, or which operand it's\n  // in. And we could have any combination of those types of input, in _both_\n  // operands.\n\n  // Detect FF exponents (NaNs or infinities) and branch again for those.\n  MOV     r12, #0xFF000000\n  BICS    r2, r12, r0, LSL #1\n  BICSNE  r2, r12, r1, LSL #1\n  BEQ     fsub_naninf\n\n  // Now we know both inputs are finite, but there may be denormals or zeroes.\n  // So it's safe to do the same sign check and cross-jump as we did on the\n  // fast path.\n  TEQ     r0, r1             // opposite signs?\n  EORMI   r1, r1, #1 << 31   // if so, negate the second operand\n  BMI.W   fadd_zerodenorm    // and cross-jump to the fadd version of this code\n\nfsub_zerodenorm:\n  // Now we know a and b have the same sign, and at least one of them is zero\n  // or denormal. If there aren't any zeroes, we'll end up rejoining the fast\n  // path, so we must set up all the same registers, and do our checks for zero\n  // in line with that.\n  //\n  // Start by exactly repeating the initial fast-path setup code: sort into\n  // magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1         // compare inputs, also keeping a-b\n  EORLO   r2, r2, #1 << 31   // if misordered, flip high bit of difference\n  SUBLO   r0, r0, r2         // and use that to swap and sign-flip\n  ADDLO   r1, r1, r2         //   the two inputs\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift b's mantissa up to the top of r1. We know b has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on b's mantissa; also, if r1 becomes\n  // zero, then we know we're subtracting 0 from a.\n  MOVS    r1, r1, LSL #8\n  BEQ     fsub_bzero\n\n  // Now we know there aren't any zeroes, and that b is a denormal. a might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of a to the top of r0\n  TST     r2, #255             // is a's exponent 0? If so, it's denormal", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 601, "line_end": 660}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:17", "text": "// magnitude order, get the output sign+exponent and the exponent shift.\n  SUBS    r2, r0, r1         // compare inputs, also keeping a-b\n  EORLO   r2, r2, #1 << 31   // if misordered, flip high bit of difference\n  SUBLO   r0, r0, r2         // and use that to swap and sign-flip\n  ADDLO   r1, r1, r2         //   the two inputs\n  MOV     r2, r0, LSR #23      // r2 = sign<<8 + exponent\n  SUB     r3, r2, r1, LSR #23  // shift = 0..254 (sign bits cancel)\n\n  // Shift b's mantissa up to the top of r1. We know b has exponent 0 (at least\n  // one of the inputs does, and we've sorted them by now). So we definitely\n  // don't need to set the leading bit on b's mantissa; also, if r1 becomes\n  // zero, then we know we're subtracting 0 from a.\n  MOVS    r1, r1, LSL #8\n  BEQ     fsub_bzero\n\n  // Now we know there aren't any zeroes, and that b is a denormal. a might or\n  // might not be a denormal, so we must check that and decide whether to set\n  // its top mantissa bit.\n  MOV     r0, r0, LSL #8       // shift mantissa of a to the top of r0\n  TST     r2, #255             // is a's exponent 0? If so, it's denormal\n  ORRNE   r0, r0, #1 << 31     // if not, set leading bit of a,\n  SUBNE   r3, r3, #1           //   adjust exponent difference,\n\n  B       fsub_dosub\n\nfsub_bzero:\n  // Here, we know b = 0, so we're subtracting 0 from a. For most values of a,\n  // we return a unchanged: subtracting 0 makes no difference. But if a is\n  // _also_ 0 then we must return +0, rather than whatever a's sign of zero is.\n  // (Because +0 is always the sign of zero you return when subtracting a\n  // number from itself).\n  MOVS    r12, r0, LSL #1      // test if a = 0 (bottom 31 bits all zero)\n  MOVEQ   r0, #0               // if so, replace a with +0\n  BX      lr\n\nfsub_naninf:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // Otherwise, we have no NaNs and at least one infinity, so we're returning\n  // either infinity, or NaN for an (inf-inf) subtraction. We can safely handle\n  // all these cases by flipping the sign of b and going to fadd_inf.\n  EOR     r1, r1, #0x80000000\n  B       fadd_inf\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 641, "line_end": 692}
{"id": "ARM-software/optimized-routines:fp/at32/faddsub.S:18", "text": "CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // Otherwise, we have no NaNs and at least one infinity, so we're returning\n  // either infinity, or NaN for an (inf-inf) subtraction. We can safely handle\n  // all these cases by flipping the sign of b and going to fadd_inf.\n  EOR     r1, r1, #0x80000000\n  B       fadd_inf\n\n  .size arm_fp_fsub, .-arm_fp_fsub", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/faddsub.S", "license": "MIT", "commit": "524e6b60c49dacfda85d99350a6d9aaa792019b2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/524e6b60c49dacfda85d99350a6d9aaa792019b2/fp/at32/faddsub.S", "line_start": 681, "line_end": 692}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_eq.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x == y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVEQ r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_eq\n  .type arm_fp_fcmp_bool_eq,%function\narm_fp_fcmp_bool_eq:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_eq, .-arm_fp_fcmp_bool_eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_eq.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_bool_eq.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_eq.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a == b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVEQ r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_eq\n  .type arm_fp_fcmp_bool_eq,%function\narm_fp_fcmp_bool_eq:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_eq, .-arm_fp_fcmp_bool_eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_eq.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_bool_eq.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_ge.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x >= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHS r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_ge\n  .type arm_fp_fcmp_bool_ge,%function\narm_fp_fcmp_bool_ge:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_ge, .-arm_fp_fcmp_bool_ge", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_ge.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_bool_ge.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_ge.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a >= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHS r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_ge\n  .type arm_fp_fcmp_bool_ge,%function\narm_fp_fcmp_bool_ge:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_ge, .-arm_fp_fcmp_bool_ge", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_ge.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_bool_ge.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_gt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x > y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_gt\n  .type arm_fp_fcmp_bool_gt,%function\narm_fp_fcmp_bool_gt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_gt, .-arm_fp_fcmp_bool_gt", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_gt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_bool_gt.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_gt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a > b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_gt\n  .type arm_fp_fcmp_bool_gt,%function\narm_fp_fcmp_bool_gt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_gt, .-arm_fp_fcmp_bool_gt", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_gt.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_bool_gt.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_le.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x <= y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLS r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_le\n  .type arm_fp_fcmp_bool_le,%function\narm_fp_fcmp_bool_le:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_le, .-arm_fp_fcmp_bool_le", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_le.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_bool_le.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_le.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a <= b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLS r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_le\n  .type arm_fp_fcmp_bool_le,%function\narm_fp_fcmp_bool_le:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_le, .-arm_fp_fcmp_bool_le", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_le.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_bool_le.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_lt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x < y.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLO r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_lt\n  .type arm_fp_fcmp_bool_lt,%function\narm_fp_fcmp_bool_lt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_lt, .-arm_fp_fcmp_bool_lt", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_lt.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_bool_lt.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_lt.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a < b.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVLO r0, #1\n.endm\n\n  .globl arm_fp_fcmp_bool_lt\n  .type arm_fp_fcmp_bool_lt,%function\narm_fp_fcmp_bool_lt:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is false.\n  MOV r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_bool_lt, .-arm_fp_fcmp_bool_lt", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_lt.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_bool_lt.S", "line_start": 1, "line_end": 27}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_un.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if x and y are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fcmp_bool_un\n  .type arm_fp_fcmp_bool_un,%function\narm_fp_fcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in fcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  MOV     r12, #0xFF << 24\n  CMP     r12, r0, LSL #1    // if LO, then r12 < (r0 << 1), so r0 is a NaN\n  CMPHS   r12, r1, LSL #1    // if not LO, then do the same check for r1\n\n  // If HS, then we have no NaNs and return false. We do this as quickly as we\n  // can (not stopping to take two instructions setting up r0 for both\n  // possibilities), on the assumption that NaNs are rare and we want to\n  // optimize for the non-NaN path.\n  MOVHS   r0, #0\n  BXHS    lr\n\n  // Otherwise, we have at least one NaN, and return true.\n  MOV     r0, #1\n  BX      lr\n\n  .size arm_fp_fcmp_bool_un, .-arm_fp_fcmp_bool_un", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_un.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_bool_un.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_bool_un.S:1", "text": "// Single-precision comparison, returning a boolean in r0, true if a and b are\n// 'unordered', i.e. one or both of them is a NaN.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fcmp_bool_un\n  .type arm_fp_fcmp_bool_un,%function\narm_fp_fcmp_bool_un:\n\n  // This function isn't based on the general-purpose code in fcmp.h, because\n  // it's more effort than needed. Here we just need to identify whether or not\n  // there's at least one NaN in the inputs. There's no need to vary that check\n  // based on the sign bit, so we might as well just do the NaN test as quickly\n  // as possible.\n  MOV     r12, #0xFF << 24\n  CMP     r12, r0, LSL #1    // if LO, then r12 < (r0 << 1), so r0 is a NaN\n  CMPHS   r12, r1, LSL #1    // if not LO, then do the same check for r1\n\n  // If HS, then we have no NaNs and return false. We do this as quickly as we\n  // can (not stopping to take two instructions setting up r0 for both\n  // possibilities), on the assumption that NaNs are rare and we want to\n  // optimize for the non-NaN path.\n  MOVHS   r0, #0\n  BXHS    lr\n\n  // Otherwise, we have at least one NaN, and return true.\n  MOV     r0, #1\n  BX      lr\n\n  .size arm_fp_fcmp_bool_un, .-arm_fp_fcmp_bool_un", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_bool_un.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_bool_un.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_flags.S:1", "text": "// Single-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags\n  .type arm_fp_fcmp_flags,%function\narm_fp_fcmp_flags:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags, .-arm_fp_fcmp_flags", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_flags.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_flags.S", "line_start": 1, "line_end": 28}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_flags.S:1", "text": "// Single-precision comparison, returning LO / EQ / HI in the flags, with the\n// 'unordered result' case also returning HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags\n  .type arm_fp_fcmp_flags,%function\narm_fp_fcmp_flags:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags, .-arm_fp_fcmp_flags", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_flags.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_flags.S", "line_start": 1, "line_end": 28}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_flags_rev.S:1", "text": "// Single-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r1\nop1 .req r0\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags_rev\n  .type arm_fp_fcmp_flags_rev,%function\narm_fp_fcmp_flags_rev:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if x > y, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags_rev, .-arm_fp_fcmp_flags_rev", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_flags_rev.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_flags_rev.S", "line_start": 1, "line_end": 29}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_flags_rev.S:1", "text": "// Single-precision comparison, with the input operands reversed, returning\n// LO / EQ / HI in the flags, with the 'unordered result' case also returning\n// HI.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r1\nop1 .req r0\n.macro SetReturnRegister\n.endm\n\n  .globl arm_fp_fcmp_flags_rev\n  .type arm_fp_fcmp_flags_rev,%function\narm_fp_fcmp_flags_rev:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  // If any NaN is involved, the return value for this comparison is\n  // to set the flags as if a > b, so that the HI condition will return true.\n  MOV r0, #1\n  CMP r0, #0\n  BX lr\n\n  .size arm_fp_fcmp_flags_rev, .-arm_fp_fcmp_flags_rev", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_flags_rev.S", "license": "MIT", "commit": "bcaea29420a00e43268d12a80b2582c79624e469", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bcaea29420a00e43268d12a80b2582c79624e469/fp/at32/fcmp_flags_rev.S", "line_start": 1, "line_end": 29}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_gnu_cmp.S:1", "text": "// Single-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpsf2: it's a three-way compare\n// which returns <0 if x<y, 0 if x==y, and >0 if x>y. If the result is\n// unordered (i.e. x or y or both is NaN) then it returns >0.\n//\n// This also makes it suitable for use as all of __eqsf2, __nesf2, __ltsf2 or\n// __lesf2.\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n  MOVLO r0, #-1\n.endm\n\n  .globl arm_fp_fcmp_gnu_cmp\n  .type arm_fp_fcmp_gnu_cmp,%function\narm_fp_fcmp_gnu_cmp:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  MOV r0, #+1\n  BX lr\n\n  .size arm_fp_fcmp_gnu_cmp, .-arm_fp_fcmp_gnu_cmp", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_gnu_cmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_gnu_cmp.S", "line_start": 1, "line_end": 34}
{"id": "ARM-software/optimized-routines:fp/at32/fcmp_gnu_rcmp.S:1", "text": "// Single-precision comparison, returning a 3-way comparison result.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n// This function has the semantics of GNU __cmpsf2, except for its NaN\n// handling. It's a three-way compare which returns <0 if x<y, 0 if x==y, and\n// >0 if x>y. If the result is unordered (i.e. x or y or both is NaN) then it\n// returns <0, where __cmpsf2 would return >0.\n//\n// This also makes it suitable for use as __gtsf2 or __gesf2 (or __eqsf2 or\n// __nesf2.\n\n  .syntax unified\n  .text\n  .p2align 2\n\nop0 .req r0\nop1 .req r1\n.macro SetReturnRegister\n  MOV r0, #0\n  MOVHI r0, #1\n  MOVLO r0, #-1\n.endm\n\n  .globl arm_fp_fcmp_gnu_rcmp\n  .type arm_fp_fcmp_gnu_rcmp,%function\narm_fp_fcmp_gnu_rcmp:\n  #include \"fcmp.h\"\n\nfcmp_NaN:\n  MOV r0, #-1\n  BX lr\n\n  .size arm_fp_fcmp_gnu_rcmp, .-arm_fp_fcmp_gnu_rcmp", "arch": "x86_64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fcmp_gnu_rcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fcmp_gnu_rcmp.S", "line_start": 1, "line_end": 35}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:1", "text": "// Single-precision division.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fdiv\n  .type arm_fp_fdiv,%function\narm_fp_fdiv:\n  // Extract the exponents of the inputs into r2 and r3, occupying bits 16-23\n  // of each register so that there will be space lower down to store extra\n  // data without exponent arithmetic carrying into it. In the process, check\n  // both exponents for 00 or FF and branch out of line to handle all the\n  // uncommon types of value (infinity, NaN, zero, denormals).\n  //\n  // Chaining conditional instructions like this means that the second\n  // instruction (setting up r3) might not be executed at all, so fdiv_uncommon\n  // will have to redo it just in case. That saves an instruction here,\n  // executed for _all_ inputs, and moves it to the uncommon path run for only\n  // some inputs.\n  MOV     r12, #0xFF0000\n  ANDS    r2, r12, r0, LSR #7   // r2 has exponent of numerator. (Is it 0?)\n  ANDSNE  r3, r12, r1, LSR #7   // r3 has exponent of denominator. (Is it 0?)\n  TEQNE   r2, r12               // if neither was 0, is one FF?\n  TEQNE   r3, r12               // or the other?\n  BEQ     fdiv_uncommon         // branch out of line if any answer was yes\n\n  // Calculate the output sign, which is always just the XOR of the input\n  // signs. Store it in bit 8 of r2, below the numerator exponent.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Isolate the mantissas of both values, by setting bit 23 of each one and\n  // clearing the 8 bits above that.\n  //\n  // In the process, swap the register allocations (which doesn't cost extra\n  // instructions if we do it as part of this manipulation). We want the\n  // numerator not to be in r0, because r0 is where we'll build up the quotient\n  // while subtracting things from the numerator.\n  ORR     r12, r0, #1 << 23\n  ORR     r0, r1, #1 << 23\n  BIC     r1, r12, #0xFF000000\n  BIC     r0, r0, #0xFF000000\n\nfdiv_div:\n  // Start of the main division. We get here knowing that:\n  //\n  //   r0 = mantissa of denominator, with the leading 1 at bit 23\n  //   r1 = mantissa of numerator, similarly\n  //   r2 = (exponent of numerator << 16) + (result sign << 8)\n  //   r3 = (exponent of denominator << 16)\n\n  PUSH    {r14}                 // we'll need an extra register\n\n  // Calculate the initial result exponent by just subtracting the two input\n  // exponents. This doesn't affect the sign bit lower down in r2.\n  SUB     r2, r2, r3", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:5", "text": "// less than 0x10000 (even in the case of the min mantissa, where the true\n  // value would be _exactly_ 0x10000), which eliminates a case of integer\n  // overflow.\n  //\n  // All of these properties of the reciprocal approximation are checked by\n  // exhaustively iterating over all 2^23 possible input mantissas. (The nice\n  // thing about doing this in single rather than double precision!)\n  //\n  // Now we extract most of the quotient by two steps of long division, using\n  // the reciprocal estimate to identify a multiple of the denominator to\n  // subtract from the numerator. To avoid integer overflow, the numerator\n  // mantissa is shifted down 8 bits so that it's less than 0x10000. After we\n  // calculate an approximate quotient, we shift the numerator left and\n  // subtract that multiple of the denominator, moving the next portion of the\n  // numerator into range for the next iteration.\n\n  // First iteration of long division. We shift the numerator left 11 bits, and\n  // since the quotient approximation is scaled by 2^31, we must shift that\n  // right by 20 to make the right product to subtract from the numerator.\n  MOV     r12, r1, LSR #8       // shift the numerator down\n  MUL     r12, r14, r12         // make the quotient approximation\n  MOV     r1, r1, LSL #11       // shift numerator left, ready for subtraction\n  MOV     r3, r12, LSR #20      // make first 12-bit block of quotient bits\n  MLS     r1, r0, r3, r1        // subtract that multiple of den from num\n\n  ADD     r2, r2, #0x7D0000     //   exponent setup [#3] in the MLS delay slot\n\n  // Second iteration of long division. Differences from the first step: this\n  // time we shift the numerator 12 bits instead of 11, so that the total of\n  // both steps is 23 bits, i.e. we've shifted up by exactly the full width of\n  // the output mantissa. Also, the block of output quotient bits is left in a\n  // different register: it was in r3 the first time, and this time it's in\n  // r12, so that we still have both available at the end of the process.\n  MOV     r12, r1, LSR #8       // shift the numerator down\n  MUL     r12, r14, r12         // make the quotient approximation\n  MOV     r1, r1, LSL #12       // shift numerator left, ready for subtraction\n  MOV     r12, r12, LSR #19     // make second 11-bit block of quotient\n  MLS     r1, r0, r12, r1       // subtract that multiple of den from num\n\n  ADC     r2, r2, r2, ASR #16   //   exponent setup [#4] in the MLS delay slot\n\n  // Now r1 contains the original numerator, shifted left 23, minus _some_\n  // multiple of the original denominator (which is still in r0). The bounds on\n  // the error in the above steps should make the error at most 1: that is, we\n  // may have to subtract the denominator one more time to make r1 < r0, and\n  // increment the quotient by one more.\n  //\n  // Our quotient is still in two pieces, computed separately in the above long\n  // division steps. We fold the final increment into the same instruction that\n  // recombines them, by doing the comparison in such a way that it sets the\n  // carry flag if the increment is needed.\n\n  CMP     r1, r0                // Set carry flag if num >= den\n  SUBHS   r1, r1, r0            // If so, subtract den from num\n  ADC     r3, r12, r3, LSL #12  // Recombine quotient halves, plus optional +1\n\n  // We've finished with r14 as a temporary register, so we can unstack it now.\n  POP     {r14}\n\n  // Now r3 contains the _rounded-down_ output quotient, and r1 contains the", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:8", "text": "CMP     r2, #0xFC0000\n  BXLO    lr\n\n  // The same comparison will have set the N and V flags to reflect the result\n  // of comparing r2 with 0xFC0000 as a _signed_ integer. That reliably\n  // distinguishes potential underflow (r2 is negative) from potential overflow\n  // (r2 is positive and at least 0xFC0000)\n  BGE     fdiv_overflow\n\n  // Here we might or might not have underflow (but we know we don't have\n  // overflow). To check more carefully, we look at the _bottom_ half of r2,\n  // which contains the exponent after the first adjustment (for num >= denom),\n  // That is, it's still off by 1 (compensating for the leading quotient bit),\n  // and is also before rounding.\n  //\n  // We neglect the effect of rounding: division results that are tiny (less\n  // than the smallest normalised number) before rounding, but then round up to\n  // the smallest normal number, are an acceptable edge case to handle slowly.\n  // We pass those to __funder without worrying about them.\n  //\n  // So we want to check whether the bottom half of r2 was negative. It would\n  // be nice to check bits 8-15 of it, but unfortunately, it's already been\n  // combined with the sign (at bit 8), so those bits don't tell us anything\n  // useful. Instead we look at the top 4 bits of the exponent field, i.e. the\n  // 0xF0 bits. The largest _non_-overflowing exponent that might reach here is\n  // less than 3, so it doesn't reach those bits; the smallest possible\n  // underflow, obtained by dividing the smallest denormal by the largest\n  // finite number, is -151 (before the leading bit increments it), which will\n  // set the low 8 bits of r2 to 0x69. That is, the 0xF0 nibble of r2 will be\n  // 0x60 or greater for a (pre-rounding) underflow, and zero for a\n  // non-underflow.\n\n  TST     r2, #0xF0\n  BXEQ    lr                    // no underflow after all; return\n\n  // Rebias the exponent for __funder, which also corrects the sign bit.\n  ADD     r0, r0, #192 << 23\n  // Tell __funder whether the true value is greater or less than the number in\n  // r0. This is obtained from the sign of the remainder (still in r1), with\n  // the only problem being that it's currently reversed. So negate r1 (leaving\n  // 0 at 0 to indicate exactness).\n  RSBS    r1, r1, #0\n  B     __funder\n\nfdiv_overflow:\n  // Here we might or might not have overflow (but we know we don't have\n  // underflow). We must check whether we really have overflowed.\n  //\n  // For this it's easiest to check the exponent field in the actual output\n  // value in r0, after _all_ the adjustments have been completed. The largest\n  // overflowed exponent is 0x193, and the smallest exponent that can reach\n  // this is 0xFD (we checked against 0xFC above, but then the leading quotient\n  // bit incremented it). So it's enough to shift the output left by one\n  // (moving the exponent field to the top), increment it once more (so that\n  // the smallest overflowed exponent 0xFF wraps round to 0), and then compare\n  // against 0xFE000000 as an unsigned integer.\n  MOV     r12, r0, LSL #1\n  ADD     r12, r12, #1 << 24\n  CMP     r12, #0xFE << 24      // Check for exp = 253 or 254\n  BXHS    lr", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:9", "text": "// 0 at 0 to indicate exactness).\n  RSBS    r1, r1, #0\n  B     __funder\n\nfdiv_overflow:\n  // Here we might or might not have overflow (but we know we don't have\n  // underflow). We must check whether we really have overflowed.\n  //\n  // For this it's easiest to check the exponent field in the actual output\n  // value in r0, after _all_ the adjustments have been completed. The largest\n  // overflowed exponent is 0x193, and the smallest exponent that can reach\n  // this is 0xFD (we checked against 0xFC above, but then the leading quotient\n  // bit incremented it). So it's enough to shift the output left by one\n  // (moving the exponent field to the top), increment it once more (so that\n  // the smallest overflowed exponent 0xFF wraps round to 0), and then compare\n  // against 0xFE000000 as an unsigned integer.\n  MOV     r12, r0, LSL #1\n  ADD     r12, r12, #1 << 24\n  CMP     r12, #0xFE << 24      // Check for exp = 253 or 254\n  BXHS    lr\n  // We have actual overflow. Rebias r0 to bring the exponent back into range,\n  // which ensures its sign is correct. Then make an infinity of that sign to\n  // return.\n  SUBS    r0, r0, #0xC0 << 23\n  MOVS    r12, #0xFF            // exponent of infinity\n  ORRS    r12, r12, r0, LSR #23 // exponent and sign at bottom of r12\n  MOVS    r0, r12, LSL #23      // shift it up to the top of r0 to return\n  BX      lr\n\nfdiv_uncommon:\n  // We come here from the start of the function if either input is an uncommon\n  // value: zero, denormal, infinity or NaN.\n  //\n  // We arrive here with r12 = 0xFF000000, and r2 containing the exponent of x\n  // in bits 16..23. But r3 doesn't necessarily contain the exponent of y,\n  // because the instruction that set it up was conditional. So first we\n  // unconditionally repeat it.\n  AND     r3, r12, r1, LSR #7\n\n  // In all cases not involving a NaN as output, the sign of the output is made\n  // in the same way as for finite numbers, as the XOR of the input signs. So\n  // repeat the sign setup from the main branch.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Detect infinities and NaNs, by checking if either of r2 or r3 is at least\n  // 0xFF0000.\n  CMP     r2, #0xFF0000\n  CMPLO   r3, #0xFF0000\n  BHS     fdiv_inf_NaN\n\n  // Now we know there are no infinities or NaNs, but there's at least one zero\n  // or denormal.\n  MOVS    r12, r1, LSL #1       // is y zero?\n  BEQ     fdiv_divbyzero        // if so, go and handle division by zero\n  MOVS    r12, r0, LSL #1       // is x zero? (now we know that y is not)\n  MOVEQ   r0, r2, LSL #23       // if so, 0/nonzero is just 0 (of right sign)\n  BXEQ    lr\n\n  // Now we've eliminated zeroes as well, leaving only denormals: either x or", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:10", "text": "// in the same way as for finite numbers, as the XOR of the input signs. So\n  // repeat the sign setup from the main branch.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Detect infinities and NaNs, by checking if either of r2 or r3 is at least\n  // 0xFF0000.\n  CMP     r2, #0xFF0000\n  CMPLO   r3, #0xFF0000\n  BHS     fdiv_inf_NaN\n\n  // Now we know there are no infinities or NaNs, but there's at least one zero\n  // or denormal.\n  MOVS    r12, r1, LSL #1       // is y zero?\n  BEQ     fdiv_divbyzero        // if so, go and handle division by zero\n  MOVS    r12, r0, LSL #1       // is x zero? (now we know that y is not)\n  MOVEQ   r0, r2, LSL #23       // if so, 0/nonzero is just 0 (of right sign)\n  BXEQ    lr\n\n  // Now we've eliminated zeroes as well, leaving only denormals: either x or\n  // y, or both, is a denormal. Call __fnorm2 to convert both into a normalised\n  // mantissa and a (potentially small) exponent.\n  AND     r12, r2, #0x100       // save the result sign from r2\n  LSR     r2, #16               // shift extracted exponents down to bit 0\n  LSR     r3, #16               // where __fnorm2 will expect them\n  PUSH    {r0, r1, r2, r3, r12, lr}\n  MOV     r0, sp                // tell __fnorm2 where to find its data\n  BL      __fnorm2\n  POP     {r0, r1, r2, r3, r12, lr}\n  LSL     r3, #16               // shift exponents back up to bit 16\n  ORR     r2, r12, r2, LSL #16  // and put the result sign back in r2\n\n  // Now rejoin the main code path, having finished the setup it will expect:\n  // swap x and y, and shift the fractions back down to the low 24 bits.\n  MOV     r12, r0, LSR #8\n  MOV     r0, r1, LSR #8\n  MOV     r1, r12\n  B       fdiv_div\n\nfdiv_inf_NaN:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 to propagate a NaN from the\n  // input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1       // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // No NaNs, so we have three options: inf/inf = NaN, inf/finite = inf, and\n  // finite/inf = 0.\n\n  // If both operands are infinity, we return a NaN. Since we know at\n  // least _one_ is infinity, we can test this by checking if they're\n  // equal apart from the sign bits.\n  EOR     r3, r0, r1\n  LSLS    r3, #1                // were all bits of XOR zero other than top?\n  BEQ     fdiv_invalid          // if so, both operands are infinity\n\n  // See if x is infinite", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:11", "text": "// We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 to propagate a NaN from the\n  // input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1       // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // No NaNs, so we have three options: inf/inf = NaN, inf/finite = inf, and\n  // finite/inf = 0.\n\n  // If both operands are infinity, we return a NaN. Since we know at\n  // least _one_ is infinity, we can test this by checking if they're\n  // equal apart from the sign bits.\n  EOR     r3, r0, r1\n  LSLS    r3, #1                // were all bits of XOR zero other than top?\n  BEQ     fdiv_invalid          // if so, both operands are infinity\n\n  // See if x is infinite\n  CMP     r12, r0, LSL #1       // (r0 << 1) == 0xFF000000?\n  BEQ     fdiv_infret           // if so, infinity/finite = infinity\n\n  // y is infinite and x is not, so we return a zero of the\n  // combined sign.\n  EOR     r0, r0, r1            // calculate the right sign\n  AND     r0, r0, #0x80000000   // throw away everything else\n  BX      lr\n\nfdiv_divbyzero:\n  // Here, we know y is zero. But we don't know if x is zero or nonzero. So we\n  // might be calculating 0/0 (invalid operation, generating a NaN), or\n  // nonzero/0 (the IEEE \"division by zero\" exception, generating infinity).\n  MOVS    r12, r0, LSL #1       // is x zero too?\n  BEQ     fdiv_invalid          // if so, go and return a NaN\n\nfdiv_infret:\n  // Here, we're either dividing infinity by a finite number, or dividing a\n  // nonzero number by 0. (Or both, if we're dividing infinity by 0.) In all\n  // these cases we return infinity with the sign from r2.\n  //\n  // If we were implementing IEEE exceptions, we'd have to separate these\n  // cases: infinity / finite is not an _exception_, it just returns infinity,\n  // whereas (finite and nonzero) / 0 is a division-by-zero exception. But here\n  // we're not implementing exceptions, so we can treat all three cases the\n  // same.\n  //\n  // r2 contains the output sign in bit 8, which is a convenient place to find\n  // it when making an infinity, because we can fill in the 8 exponent bits\n  // below that and then shift it left.\n  ORR     r2, r2, #0xff         // sign + maximum exponent\n  LSL     r0, r2, #23           // shift up to the top\n  BX      lr\n\nfdiv_invalid:\n  // Return the default NaN, from an invalid operation (either dividing\n  // infinity by infinity, or 0 by 0).\n  LDR     r0, =0x7FC00000\n  BX      lr", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:13", "text": "// maximum possible error _after_ the approximation is improved by the\n// Newton-Raphson step. In the example above, we end up with FA.\n//\n// The Python code below will regenerate the table, complete with the per-entry\n// comments.\n\n/*\n\nfor prefix in range(64, 128):\n    best = None\n\n    # Max and min 23-bit mantissas with this 7-bit prefix\n    mmin, mmax = prefix * 2**17, (prefix + 1) * 2**17 - 1\n\n    # Max and min table entry corresponding to the reciprocal of something in\n    # that range of mantissas: round up the reciprocal of mmax, and round down\n    # the reciprocal of mmin. Also clamp to the range [0x80,0xff], because\n    # 0x100 can't be used as a table entry due to not fitting in a byte, even\n    # though it's the exact reciprocal of the overall-smallest mantissa\n    # 0x800000.\n    gmin = max(128, (2**31 + mmin - 1) // mmax)\n    gmax = min(255, 2**31 // mmin)\n\n    # For each of those table entries, compute the result of starting from that\n    # value and doing a Newton-Raphson iteration, with the mantissa at each end\n    # of the mantissa interval. One of these will be the worst possible error.\n    # Choose the table entry whose worst error is as small as possible.\n    #\n    # (To find the extreme values of a more general function on an interval,\n    # you must consider its values not only at the interval endpoints but also\n    # any turning points within the interval. Here, the function has only one\n    # turning point, and by construction it takes value 0 there, so we needn't\n    # worry.)\n    g = max(\n        range(gmin, gmax + 1),\n        key=lambda g: min(\n            (g * (2**32 - d * g) / 2**23 - 2**39 / d) for d in [mmin, mmax]\n        ),\n    )\n\n    print(f\"  .byte 0x{g:02x}  // input [0x{mmin:06x},0x{mmax:06x}]\"\n          f\", candidate outputs [0x{gmin:02x},0x{gmax:02x}]\"\n    )\n\n*/\n\n  .p2align 2  // make sure we start on a 32-bit boundary, even in Thumb\nfdiv_tab:\n  .byte 0xfe  // input [0x800000,0x81ffff], candidate outputs [0xfd,0xff]\n  .byte 0xfa  // input [0x820000,0x83ffff], candidate outputs [0xf9,0xfc]\n  .byte 0xf6  // input [0x840000,0x85ffff], candidate outputs [0xf5,0xf8]\n  .byte 0xf3  // input [0x860000,0x87ffff], candidate outputs [0xf1,0xf4]\n  .byte 0xef  // input [0x880000,0x89ffff], candidate outputs [0xee,0xf0]\n  .byte 0xec  // input [0x8a0000,0x8bffff], candidate outputs [0xeb,0xed]\n  .byte 0xe8  // input [0x8c0000,0x8dffff], candidate outputs [0xe7,0xea]\n  .byte 0xe5  // input [0x8e0000,0x8fffff], candidate outputs [0xe4,0xe6]\n  .byte 0xe2  // input [0x900000,0x91ffff], candidate outputs [0xe1,0xe3]\n  .byte 0xdf  // input [0x920000,0x93ffff], candidate outputs [0xde,0xe0]\n  .byte 0xdc  // input [0x940000,0x95ffff], candidate outputs [0xdb,0xdd]\n  .byte 0xd9  // input [0x960000,0x97ffff], candidate outputs [0xd8,0xda]", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:14", "text": "print(f\"  .byte 0x{g:02x}  // input [0x{mmin:06x},0x{mmax:06x}]\"\n          f\", candidate outputs [0x{gmin:02x},0x{gmax:02x}]\"\n    )\n\n*/\n\n  .p2align 2  // make sure we start on a 32-bit boundary, even in Thumb\nfdiv_tab:\n  .byte 0xfe  // input [0x800000,0x81ffff], candidate outputs [0xfd,0xff]\n  .byte 0xfa  // input [0x820000,0x83ffff], candidate outputs [0xf9,0xfc]\n  .byte 0xf6  // input [0x840000,0x85ffff], candidate outputs [0xf5,0xf8]\n  .byte 0xf3  // input [0x860000,0x87ffff], candidate outputs [0xf1,0xf4]\n  .byte 0xef  // input [0x880000,0x89ffff], candidate outputs [0xee,0xf0]\n  .byte 0xec  // input [0x8a0000,0x8bffff], candidate outputs [0xeb,0xed]\n  .byte 0xe8  // input [0x8c0000,0x8dffff], candidate outputs [0xe7,0xea]\n  .byte 0xe5  // input [0x8e0000,0x8fffff], candidate outputs [0xe4,0xe6]\n  .byte 0xe2  // input [0x900000,0x91ffff], candidate outputs [0xe1,0xe3]\n  .byte 0xdf  // input [0x920000,0x93ffff], candidate outputs [0xde,0xe0]\n  .byte 0xdc  // input [0x940000,0x95ffff], candidate outputs [0xdb,0xdd]\n  .byte 0xd9  // input [0x960000,0x97ffff], candidate outputs [0xd8,0xda]\n  .byte 0xd6  // input [0x980000,0x99ffff], candidate outputs [0xd5,0xd7]\n  .byte 0xd3  // input [0x9a0000,0x9bffff], candidate outputs [0xd3,0xd4]\n  .byte 0xd1  // input [0x9c0000,0x9dffff], candidate outputs [0xd0,0xd2]\n  .byte 0xce  // input [0x9e0000,0x9fffff], candidate outputs [0xcd,0xcf]\n  .byte 0xcc  // input [0xa00000,0xa1ffff], candidate outputs [0xcb,0xcc]\n  .byte 0xc9  // input [0xa20000,0xa3ffff], candidate outputs [0xc8,0xca]\n  .byte 0xc7  // input [0xa40000,0xa5ffff], candidate outputs [0xc6,0xc7]\n  .byte 0xc4  // input [0xa60000,0xa7ffff], candidate outputs [0xc4,0xc5]\n  .byte 0xc2  // input [0xa80000,0xa9ffff], candidate outputs [0xc1,0xc3]\n  .byte 0xc0  // input [0xaa0000,0xabffff], candidate outputs [0xbf,0xc0]\n  .byte 0xbd  // input [0xac0000,0xadffff], candidate outputs [0xbd,0xbe]\n  .byte 0xbb  // input [0xae0000,0xafffff], candidate outputs [0xbb,0xbc]\n  .byte 0xb9  // input [0xb00000,0xb1ffff], candidate outputs [0xb9,0xba]\n  .byte 0xb7  // input [0xb20000,0xb3ffff], candidate outputs [0xb7,0xb8]\n  .byte 0xb5  // input [0xb40000,0xb5ffff], candidate outputs [0xb5,0xb6]\n  .byte 0xb3  // input [0xb60000,0xb7ffff], candidate outputs [0xb3,0xb4]\n  .byte 0xb1  // input [0xb80000,0xb9ffff], candidate outputs [0xb1,0xb2]\n  .byte 0xaf  // input [0xba0000,0xbbffff], candidate outputs [0xaf,0xb0]\n  .byte 0xad  // input [0xbc0000,0xbdffff], candidate outputs [0xad,0xae]\n  .byte 0xac  // input [0xbe0000,0xbfffff], candidate outputs [0xab,0xac]\n  .byte 0xaa  // input [0xc00000,0xc1ffff], candidate outputs [0xa9,0xaa]\n  .byte 0xa8  // input [0xc20000,0xc3ffff], candidate outputs [0xa8,0xa8]\n  .byte 0xa6  // input [0xc40000,0xc5ffff], candidate outputs [0xa6,0xa7]\n  .byte 0xa5  // input [0xc60000,0xc7ffff], candidate outputs [0xa4,0xa5]\n  .byte 0xa3  // input [0xc80000,0xc9ffff], candidate outputs [0xa3,0xa3]\n  .byte 0xa1  // input [0xca0000,0xcbffff], candidate outputs [0xa1,0xa2]\n  .byte 0xa0  // input [0xcc0000,0xcdffff], candidate outputs [0xa0,0xa0]\n  .byte 0x9e  // input [0xce0000,0xcfffff], candidate outputs [0x9e,0x9f]\n  .byte 0x9d  // input [0xd00000,0xd1ffff], candidate outputs [0x9d,0x9d]\n  .byte 0x9b  // input [0xd20000,0xd3ffff], candidate outputs [0x9b,0x9c]\n  .byte 0x9a  // input [0xd40000,0xd5ffff], candidate outputs [0x9a,0x9a]\n  .byte 0x98  // input [0xd60000,0xd7ffff], candidate outputs [0x98,0x99]\n  .byte 0x97  // input [0xd80000,0xd9ffff], candidate outputs [0x97,0x97]\n  .byte 0x96  // input [0xda0000,0xdbffff], candidate outputs [0x95,0x96]\n  .byte 0x94  // input [0xdc0000,0xddffff], candidate outputs [0x94,0x94]\n  .byte 0x93  // input [0xde0000,0xdfffff], candidate outputs [0x93,0x93]\n  .byte 0x92  // input [0xe00000,0xe1ffff], candidate outputs [0x91,0x92]\n  .byte 0x90  // input [0xe20000,0xe3ffff], candidate outputs [0x90,0x90]\n  .byte 0x8f  // input [0xe40000,0xe5ffff], candidate outputs [0x8f,0x8f]\n  .byte 0x8e  // input [0xe60000,0xe7ffff], candidate outputs [0x8e,0x8e]", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:15", "text": ".byte 0xaa  // input [0xc00000,0xc1ffff], candidate outputs [0xa9,0xaa]\n  .byte 0xa8  // input [0xc20000,0xc3ffff], candidate outputs [0xa8,0xa8]\n  .byte 0xa6  // input [0xc40000,0xc5ffff], candidate outputs [0xa6,0xa7]\n  .byte 0xa5  // input [0xc60000,0xc7ffff], candidate outputs [0xa4,0xa5]\n  .byte 0xa3  // input [0xc80000,0xc9ffff], candidate outputs [0xa3,0xa3]\n  .byte 0xa1  // input [0xca0000,0xcbffff], candidate outputs [0xa1,0xa2]\n  .byte 0xa0  // input [0xcc0000,0xcdffff], candidate outputs [0xa0,0xa0]\n  .byte 0x9e  // input [0xce0000,0xcfffff], candidate outputs [0x9e,0x9f]\n  .byte 0x9d  // input [0xd00000,0xd1ffff], candidate outputs [0x9d,0x9d]\n  .byte 0x9b  // input [0xd20000,0xd3ffff], candidate outputs [0x9b,0x9c]\n  .byte 0x9a  // input [0xd40000,0xd5ffff], candidate outputs [0x9a,0x9a]\n  .byte 0x98  // input [0xd60000,0xd7ffff], candidate outputs [0x98,0x99]\n  .byte 0x97  // input [0xd80000,0xd9ffff], candidate outputs [0x97,0x97]\n  .byte 0x96  // input [0xda0000,0xdbffff], candidate outputs [0x95,0x96]\n  .byte 0x94  // input [0xdc0000,0xddffff], candidate outputs [0x94,0x94]\n  .byte 0x93  // input [0xde0000,0xdfffff], candidate outputs [0x93,0x93]\n  .byte 0x92  // input [0xe00000,0xe1ffff], candidate outputs [0x91,0x92]\n  .byte 0x90  // input [0xe20000,0xe3ffff], candidate outputs [0x90,0x90]\n  .byte 0x8f  // input [0xe40000,0xe5ffff], candidate outputs [0x8f,0x8f]\n  .byte 0x8e  // input [0xe60000,0xe7ffff], candidate outputs [0x8e,0x8e]\n  .byte 0x8d  // input [0xe80000,0xe9ffff], candidate outputs [0x8d,0x8d]\n  .byte 0x8b  // input [0xea0000,0xebffff], candidate outputs [0x8b,0x8c]\n  .byte 0x8a  // input [0xec0000,0xedffff], candidate outputs [0x8a,0x8a]\n  .byte 0x89  // input [0xee0000,0xefffff], candidate outputs [0x89,0x89]\n  .byte 0x88  // input [0xf00000,0xf1ffff], candidate outputs [0x88,0x88]\n  .byte 0x87  // input [0xf20000,0xf3ffff], candidate outputs [0x87,0x87]\n  .byte 0x86  // input [0xf40000,0xf5ffff], candidate outputs [0x86,0x86]\n  .byte 0x85  // input [0xf60000,0xf7ffff], candidate outputs [0x85,0x85]\n  .byte 0x84  // input [0xf80000,0xf9ffff], candidate outputs [0x84,0x84]\n  .byte 0x83  // input [0xfa0000,0xfbffff], candidate outputs [0x83,0x83]\n  .byte 0x82  // input [0xfc0000,0xfdffff], candidate outputs [0x82,0x82]\n  .byte 0x81  // input [0xfe0000,0xffffff], candidate outputs [0x80,0x81]\n\n  .size arm_fp_fdiv, .-arm_fp_fdiv", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fdiv.S", "line_start": 561, "line_end": 594}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:1", "text": "// Single-precision division.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fdiv\n  .type arm_fp_fdiv,%function\narm_fp_fdiv:\n  // Extract the exponents of the inputs into r2 and r3, occupying bits 16-23\n  // of each register so that there will be space lower down to store extra\n  // data without exponent arithmetic carrying into it. In the process, check\n  // both exponents for 00 or FF and branch out of line to handle all the\n  // uncommon types of value (infinity, NaN, zero, denormals).\n  //\n  // Chaining conditional instructions like this means that the second\n  // instruction (setting up r3) might not be executed at all, so fdiv_uncommon\n  // will have to redo it just in case. That saves an instruction here,\n  // executed for _all_ inputs, and moves it to the uncommon path run for only\n  // some inputs.\n  MOV     r12, #0xFF0000\n  ANDS    r2, r12, r0, LSR #7   // r2 has exponent of numerator. (Is it 0?)\n  ANDSNE  r3, r12, r1, LSR #7   // r3 has exponent of denominator. (Is it 0?)\n  TEQNE   r2, r12               // if neither was 0, is one FF?\n  TEQNE   r3, r12               // or the other?\n  BEQ.W   fdiv_uncommon         // branch out of line if any answer was yes\n\n  // Calculate the output sign, which is always just the XOR of the input\n  // signs. Store it in bit 8 of r2, below the numerator exponent.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Isolate the mantissas of both values, by setting bit 23 of each one and\n  // clearing the 8 bits above that.\n  //\n  // In the process, swap the register allocations (which doesn't cost extra\n  // instructions if we do it as part of this manipulation). We want the\n  // numerator not to be in r0, because r0 is where we'll build up the quotient\n  // while subtracting things from the numerator.\n  ORR     r12, r0, #1 << 23\n  ORR     r0, r1, #1 << 23\n  BIC     r1, r12, #0xFF000000\n  BIC     r0, r0, #0xFF000000\n\nfdiv_div:\n  // Start of the main division. We get here knowing that:\n  //\n  //   r0 = mantissa of denominator, with the leading 1 at bit 23\n  //   r1 = mantissa of numerator, similarly\n  //   r2 = (exponent of numerator << 16) + (result sign << 8)\n  //   r3 = (exponent of denominator << 16)\n\n  PUSH    {r14}                 // we'll need an extra register\n\n  // Calculate the initial result exponent by just subtracting the two input\n  // exponents. This doesn't affect the sign bit lower down in r2.\n  SUB     r2, r2, r3", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/fdiv.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:8", "text": "CMP     r2, #0xFC0000\n  BXLO    lr\n\n  // The same comparison will have set the N and V flags to reflect the result\n  // of comparing r2 with 0xFC0000 as a _signed_ integer. That reliably\n  // distinguishes potential underflow (r2 is negative) from potential overflow\n  // (r2 is positive and at least 0xFC0000)\n  BGE     fdiv_overflow\n\n  // Here we might or might not have underflow (but we know we don't have\n  // overflow). To check more carefully, we look at the _bottom_ half of r2,\n  // which contains the exponent after the first adjustment (for num >= denom),\n  // That is, it's still off by 1 (compensating for the leading quotient bit),\n  // and is also before rounding.\n  //\n  // We neglect the effect of rounding: division results that are tiny (less\n  // than the smallest normalised number) before rounding, but then round up to\n  // the smallest normal number, are an acceptable edge case to handle slowly.\n  // We pass those to __funder without worrying about them.\n  //\n  // So we want to check whether the bottom half of r2 was negative. It would\n  // be nice to check bits 8-15 of it, but unfortunately, it's already been\n  // combined with the sign (at bit 8), so those bits don't tell us anything\n  // useful. Instead we look at the top 4 bits of the exponent field, i.e. the\n  // 0xF0 bits. The largest _non_-overflowing exponent that might reach here is\n  // less than 3, so it doesn't reach those bits; the smallest possible\n  // underflow, obtained by dividing the smallest denormal by the largest\n  // finite number, is -151 (before the leading bit increments it), which will\n  // set the low 8 bits of r2 to 0x69. That is, the 0xF0 nibble of r2 will be\n  // 0x60 or greater for a (pre-rounding) underflow, and zero for a\n  // non-underflow.\n\n  TST     r2, #0xF0\n  BXEQ    lr                    // no underflow after all; return\n\n  // Rebias the exponent for __funder, which also corrects the sign bit.\n  ADD     r0, r0, #192 << 23\n  // Tell __funder whether the true value is greater or less than the number in\n  // r0. This is obtained from the sign of the remainder (still in r1), with\n  // the only problem being that it's currently reversed. So negate r1 (leaving\n  // 0 at 0 to indicate exactness).\n  RSBS    r1, r1, #0\n  B.W   __funder\n\nfdiv_overflow:\n  // Here we might or might not have overflow (but we know we don't have\n  // underflow). We must check whether we really have overflowed.\n  //\n  // For this it's easiest to check the exponent field in the actual output\n  // value in r0, after _all_ the adjustments have been completed. The largest\n  // overflowed exponent is 0x193, and the smallest exponent that can reach\n  // this is 0xFD (we checked against 0xFC above, but then the leading quotient\n  // bit incremented it). So it's enough to shift the output left by one\n  // (moving the exponent field to the top), increment it once more (so that\n  // the smallest overflowed exponent 0xFF wraps round to 0), and then compare\n  // against 0xFE000000 as an unsigned integer.\n  MOV     r12, r0, LSL #1\n  ADD     r12, r12, #1 << 24\n  CMP     r12, #0xFE << 24      // Check for exp = 253 or 254\n  BXHS    lr", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/fdiv.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:9", "text": "// 0 at 0 to indicate exactness).\n  RSBS    r1, r1, #0\n  B.W   __funder\n\nfdiv_overflow:\n  // Here we might or might not have overflow (but we know we don't have\n  // underflow). We must check whether we really have overflowed.\n  //\n  // For this it's easiest to check the exponent field in the actual output\n  // value in r0, after _all_ the adjustments have been completed. The largest\n  // overflowed exponent is 0x193, and the smallest exponent that can reach\n  // this is 0xFD (we checked against 0xFC above, but then the leading quotient\n  // bit incremented it). So it's enough to shift the output left by one\n  // (moving the exponent field to the top), increment it once more (so that\n  // the smallest overflowed exponent 0xFF wraps round to 0), and then compare\n  // against 0xFE000000 as an unsigned integer.\n  MOV     r12, r0, LSL #1\n  ADD     r12, r12, #1 << 24\n  CMP     r12, #0xFE << 24      // Check for exp = 253 or 254\n  BXHS    lr\n  // We have actual overflow. Rebias r0 to bring the exponent back into range,\n  // which ensures its sign is correct. Then make an infinity of that sign to\n  // return.\n  SUBS    r0, r0, #0xC0 << 23\n  MOVS    r12, #0xFF            // exponent of infinity\n  ORRS    r12, r12, r0, LSR #23 // exponent and sign at bottom of r12\n  MOVS    r0, r12, LSL #23      // shift it up to the top of r0 to return\n  BX      lr\n\nfdiv_uncommon:\n  // We come here from the start of the function if either input is an uncommon\n  // value: zero, denormal, infinity or NaN.\n  //\n  // We arrive here with r12 = 0xFF000000, and r2 containing the exponent of x\n  // in bits 16..23. But r3 doesn't necessarily contain the exponent of y,\n  // because the instruction that set it up was conditional. So first we\n  // unconditionally repeat it.\n  AND     r3, r12, r1, LSR #7\n\n  // In all cases not involving a NaN as output, the sign of the output is made\n  // in the same way as for finite numbers, as the XOR of the input signs. So\n  // repeat the sign setup from the main branch.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Detect infinities and NaNs, by checking if either of r2 or r3 is at least\n  // 0xFF0000.\n  CMP     r2, #0xFF0000\n  CMPLO   r3, #0xFF0000\n  BHS     fdiv_inf_NaN\n\n  // Now we know there are no infinities or NaNs, but there's at least one zero\n  // or denormal.\n  MOVS    r12, r1, LSL #1       // is y zero?\n  BEQ     fdiv_divbyzero        // if so, go and handle division by zero\n  MOVS    r12, r0, LSL #1       // is x zero? (now we know that y is not)\n  MOVEQ   r0, r2, LSL #23       // if so, 0/nonzero is just 0 (of right sign)\n  BXEQ    lr\n\n  // Now we've eliminated zeroes as well, leaving only denormals: either x or", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/fdiv.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:9", "text": "// 0 at 0 to indicate exactness).\n  RSBS    r1, r1, #0\n  B.W   __funder\n\nfdiv_overflow:\n  // Here we might or might not have overflow (but we know we don't have\n  // underflow). We must check whether we really have overflowed.\n  //\n  // For this it's easiest to check the exponent field in the actual output\n  // value in r0, after _all_ the adjustments have been completed. The largest\n  // overflowed exponent is 0x193, and the smallest exponent that can reach\n  // this is 0xFD (we checked against 0xFC above, but then the leading quotient\n  // bit incremented it). So it's enough to shift the output left by one\n  // (moving the exponent field to the top), increment it once more (so that\n  // the smallest overflowed exponent 0xFF wraps round to 0), and then compare\n  // against 0xFE000000 as an unsigned integer.\n  MOV     r12, r0, LSL #1\n  ADD     r12, r12, #1 << 24\n  CMP     r12, #0xFE << 24      // Check for exp = 253 or 254\n  BXHS    lr\n  // We have actual overflow. Rebias r0 to bring the exponent back into range,\n  // which ensures its sign is correct. Then make an infinity of that sign to\n  // return.\n  SUBS    r0, r0, #0xC0 << 23\n  MOVS    r12, #0xFF            // exponent of infinity\n  ORRS    r12, r12, r0, LSR #23 // exponent and sign at bottom of r12\n  MOVS    r0, r12, LSL #23      // shift it up to the top of r0 to return\n  BX      lr\n\nfdiv_uncommon:\n  // We come here from the start of the function if either input is an uncommon\n  // value: zero, denormal, infinity or NaN.\n  //\n  // We arrive here with r12 = 0xFF000000, and r2 containing the exponent of a\n  // in bits 16..23. But r3 doesn't necessarily contain the exponent of b,\n  // because the instruction that set it up was conditional. So first we\n  // unconditionally repeat it.\n  AND     r3, r12, r1, LSR #7\n\n  // In all cases not involving a NaN as output, the sign of the output is made\n  // in the same way as for finite numbers, as the XOR of the input signs. So\n  // repeat the sign setup from the main branch.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Detect infinities and NaNs, by checking if either of r2 or r3 is at least\n  // 0xFF0000.\n  CMP     r2, #0xFF0000\n  CMPLO   r3, #0xFF0000\n  BHS     fdiv_inf_NaN\n\n  // Now we know there are no infinities or NaNs, but there's at least one zero\n  // or denormal.\n  MOVS    r12, r1, LSL #1       // is b zero?\n  BEQ     fdiv_divbyzero        // if so, go and handle division by zero\n  MOVS    r12, r0, LSL #1       // is a zero? (now we know that b is not)\n  MOVEQ   r0, r2, LSL #23       // if so, 0/nonzero is just 0 (of right sign)\n  BXEQ    lr\n\n  // Now we've eliminated zeroes as well, leaving only denormals: either a or", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "cc410ffd9f1f00b797c5c944c145f0e43d48705d", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cc410ffd9f1f00b797c5c944c145f0e43d48705d/fp/at32/fdiv.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:10", "text": "// in the same way as for finite numbers, as the XOR of the input signs. So\n  // repeat the sign setup from the main branch.\n  TEQ     r0, r1                // is the output sign bit 1?\n  ORRMI   r2, r2, #0x100        // if so, set bit 8 of r2\n\n  // Detect infinities and NaNs, by checking if either of r2 or r3 is at least\n  // 0xFF0000.\n  CMP     r2, #0xFF0000\n  CMPLO   r3, #0xFF0000\n  BHS     fdiv_inf_NaN\n\n  // Now we know there are no infinities or NaNs, but there's at least one zero\n  // or denormal.\n  MOVS    r12, r1, LSL #1       // is b zero?\n  BEQ     fdiv_divbyzero        // if so, go and handle division by zero\n  MOVS    r12, r0, LSL #1       // is a zero? (now we know that b is not)\n  MOVEQ   r0, r2, LSL #23       // if so, 0/nonzero is just 0 (of right sign)\n  BXEQ    lr\n\n  // Now we've eliminated zeroes as well, leaving only denormals: either a or\n  // b, or both, is a denormal. Call __fnorm2 to convert both into a normalised\n  // mantissa and a (potentially small) exponent.\n  AND     r12, r2, #0x100       // save the result sign from r2\n  LSR     r2, #16               // shift extracted exponents down to bit 0\n  LSR     r3, #16               // where __fnorm2 will expect them\n  PUSH    {r0, r1, r2, r3, r12, lr}\n  MOV     r0, sp                // tell __fnorm2 where to find its data\n  BL      __fnorm2\n  POP     {r0, r1, r2, r3, r12, lr}\n  LSL     r3, #16               // shift exponents back up to bit 16\n  ORR     r2, r12, r2, LSL #16  // and put the result sign back in r2\n\n  // Now rejoin the main code path, having finished the setup it will expect:\n  // swap a and b, and shift the fractions back down to the low 24 bits.\n  MOV     r12, r0, LSR #8\n  MOV     r0, r1, LSR #8\n  MOV     r1, r12\n  B       fdiv_div\n\nfdiv_inf_NaN:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 to propagate a NaN from the\n  // input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1       // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // No NaNs, so we have three options: inf/inf = NaN, inf/finite = inf, and\n  // finite/inf = 0.\n\n  // If both operands are infinity, we return a NaN. Since we know at\n  // least _one_ is infinity, we can test this by checking if they're\n  // equal apart from the sign bits.\n  EOR     r3, r0, r1\n  LSLS    r3, #1                // were all bits of XOR zero other than top?\n  BEQ     fdiv_invalid          // if so, both operands are infinity\n\n  // See if a is infinite", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "cc410ffd9f1f00b797c5c944c145f0e43d48705d", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cc410ffd9f1f00b797c5c944c145f0e43d48705d/fp/at32/fdiv.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:fp/at32/fdiv.S:11", "text": "// We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 to propagate a NaN from the\n  // input.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1       // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // No NaNs, so we have three options: inf/inf = NaN, inf/finite = inf, and\n  // finite/inf = 0.\n\n  // If both operands are infinity, we return a NaN. Since we know at\n  // least _one_ is infinity, we can test this by checking if they're\n  // equal apart from the sign bits.\n  EOR     r3, r0, r1\n  LSLS    r3, #1                // were all bits of XOR zero other than top?\n  BEQ     fdiv_invalid          // if so, both operands are infinity\n\n  // See if a is infinite\n  CMP     r12, r0, LSL #1       // (r0 << 1) == 0xFF000000?\n  BEQ     fdiv_infret           // if so, infinity/finite = infinity\n\n  // b is infinite and a is not, so we return a zero of the\n  // combined sign.\n  EOR     r0, r0, r1            // calculate the right sign\n  AND     r0, r0, #0x80000000   // throw away everything else\n  BX      lr\n\nfdiv_divbyzero:\n  // Here, we know b is zero. But we don't know if a is zero or nonzero. So we\n  // might be calculating 0/0 (invalid operation, generating a NaN), or\n  // nonzero/0 (the IEEE \"division by zero\" exception, generating infinity).\n  MOVS    r12, r0, LSL #1       // is a zero too?\n  BEQ     fdiv_invalid          // if so, go and return a NaN\n\nfdiv_infret:\n  // Here, we're either dividing infinity by a finite number, or dividing a\n  // nonzero number by 0. (Or both, if we're dividing infinity by 0.) In all\n  // these cases we return infinity with the sign from r2.\n  //\n  // If we were implementing IEEE exceptions, we'd have to separate these\n  // cases: infinity / finite is not an _exception_, it just returns infinity,\n  // whereas (finite and nonzero) / 0 is a division-by-zero exception. But here\n  // we're not implementing exceptions, so we can treat all three cases the\n  // same.\n  //\n  // r2 contains the output sign in bit 8, which is a convenient place to find\n  // it when making an infinity, because we can fill in the 8 exponent bits\n  // below that and then shift it left.\n  ORR     r2, r2, #0xff         // sign + maximum exponent\n  LSL     r0, r2, #23           // shift up to the top\n  BX      lr\n\nfdiv_invalid:\n  // Return the default NaN, from an invalid operation (either dividing\n  // infinity by infinity, or 0 by 0).\n  LDR     r0, =0x7FC00000\n  BX      lr", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fdiv.S", "license": "MIT", "commit": "cc410ffd9f1f00b797c5c944c145f0e43d48705d", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cc410ffd9f1f00b797c5c944c145f0e43d48705d/fp/at32/fdiv.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:1", "text": "// Single-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fmul\n  .type arm_fp_fmul,%function\narm_fp_fmul:\n\n  // Check if either input exponent is 00 or FF (i.e. not a normalized number),\n  // and if so, branch out of line. If we don't branch out of line, then we've\n  // also extracted the exponents of the input values r0/r1 into bits 16..23 of\n  // r2/r3. But if we do, then that hasn't necessarily been done (because the\n  // second AND might have been skipped).\n  MOV     r12, #0xFF0000\n  ANDS    r2, r12, r0, LSR #7  // sets Z if exponent of x is 0\n  ANDSNE  r3, r12, r1, LSR #7  // otherwise, sets Z if exponent of y is 0\n  TEQNE   r2, r12              // otherwise, sets Z if exponent of x is FF\n  TEQNE   r3, r12              // otherwise, sets Z if exponent of y is FF\n  BEQ     fmul_uncommon        // branch out of line to handle inf/NaN/0/denorm\n\n  // Calculate the sign of the result, and put it in an unused bit of r2.\n  TEQ     r0, r1               // sets N to the XOR of x and y's sign bits\n  ORRMI   r2, r2, #0x100       // if N set, set bit 8 of r2\n\n  // Move the input mantissas to the high end of r0/r1, each with its leading\n  // bit set explicitly, so that they're in the right form to be multiplied.\n  MOV     r12, #0x80000000\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\n  // Now we're ready to multiply mantissas. This is also the place we'll come\n  // back to after decoding denormal inputs. The denormal decoding will also\n  // have to set up the same register contents:\n  //  - decoded fractions at the top of r0 and r1\n  //  - exponents in r2 and r3, starting at bit 16\n  //  - output sign in r2 bit 8\nfmul_mul:\n\n  // Here we multiply the mantissas, and compute the output exponent by adding\n  // the input exponents and rebiasing. These operations are interleaved to\n  // use a delay slot.\n  //\n  // The exponent is rebiased by subtracting 0x80, rather than the 0x7F you'd\n  // expect. That compensates for the leading bit of the mantissa overlapping\n  // it, when we recombine the exponent and mantissa by addition.\n  ADD     r2, r2, r3           // r2 has sum of exponents, freeing up r3\n  UMULL   r1, r3, r0, r1       // r3:r1 has the double-width product\n  SUB     r2, r2, #(0x80 << 16) // rebias the summed exponent\n\n  // Compress the double-word product into just the high-order word r3, by\n  // setting its bit 0 if any bit of the low-order word is nonzero. This\n  // changes the represented value, but not by nearly enough to affect\n  // rounding, because rounding only depends on the bit below the last output\n  // bit, and the general question of whether _any_ nonzero bit exists below\n  // that.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:5", "text": "// First, Thumb-specific compensation code. The Arm branch of the #if above\n  // will have set Z=0 to indicate round to even, but the Thumb branch didn't\n  // leave any unambiguous indicator of RTE, so we must retest by checking all\n  // the bits shifted off the bottom of the mantissa to see if they're exactly\n  // the half-way value.\n  LSL     r12, r3, #24           // r12 = round bit and everything below\n  CMP     r12, #0x80000000       // set Z if that is exactly 0x80000000\n#endif\n\n  // Now Z is clear iff we have already rounded up and now must replace that\n  // with rounding to even, which is done by just clearing the low bit of the\n  // mantissa.\n  BICEQ   r0, r0, #1\n\n  // Redo the over/underflow check (the same way as in both branches above),\n  // and if it doesn't report a danger, we can return the rounded-to-even\n  // answer.\n  CMP     r2, #0xFC0000         // check for over/underflow\n  BXCC    lr                    // and return if none.\n\n  // Now we only have overflow and underflow left to handle. First, find out\n  // which we're looking at. This is easy by testing the top bit of r2, but\n  // even easier by using the fact that the possible positive and negative\n  // values of r2 are widely enough separated that the 0xFC0000 subtracted by\n  // the CMP above won't have made any difference. So the N flag output from\n  // that comparison _already_ tells us which condition we have: if N is set we\n  // have underflow, and if N is clear, overflow.\n  BPL     fmul_overflow\n\n  // Here we're handling underflow.\n\n  // Add the IEEE 754:1985 exponent bias which __funder will expect. This also\n  // brings the exponent back into a range where it can't possibly have carried\n  // into the sign bit, so the output sign will now be right.\n  ADD     r0, r0, #(0xC0 << 23)\n\n  // Determine whether we rounded up, down or not at all.\n  LSLS    r2, r3, #1              // input mantissa, without its leading 1\n  SUBS    r1, r2, r0, LSL #9      // subtract the output mantissa (likewise)\n\n  // And let __funder handle the rest.\n  B     __funder\n\nfmul_overflow:\n  // We come here to handle overflow, but it's not guaranteed that an overflow\n  // has actually happened: our check on the fast path erred on the side of\n  // caution, by catching any output exponent that _could_ cause an overflow.\n  // So first check whether this really is an overflow, by extracting the\n  // output exponent. Exponent 0xFF, or anything that wrapped round to having\n  // the high bit clear, are overflows; 0xFE down to 0xFC are not overflows.\n  //\n  // The value in r0 is correct to return, if there's no overflow.\n  ADD     r12, r0, #(1 << 23)     // add 1 to the exponent so 0xFF wraps to 0\n  MOVS    r12, r12, LSL #1        // test the top bit of the modified value\n  BXMI    lr                      // if top bit is still 1, not an overflow\n\n  // This is an overflow, so we need to replace it with an appropriately signed\n  // infinity. First we correct the sign by applying a downward bias to the\n  // exponent (the one suggested in IEEE 754:1985, which was chosen to bring\n  // all possible overflowed results back into range).", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fmul.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:6", "text": "// And let __funder handle the rest.\n  B     __funder\n\nfmul_overflow:\n  // We come here to handle overflow, but it's not guaranteed that an overflow\n  // has actually happened: our check on the fast path erred on the side of\n  // caution, by catching any output exponent that _could_ cause an overflow.\n  // So first check whether this really is an overflow, by extracting the\n  // output exponent. Exponent 0xFF, or anything that wrapped round to having\n  // the high bit clear, are overflows; 0xFE down to 0xFC are not overflows.\n  //\n  // The value in r0 is correct to return, if there's no overflow.\n  ADD     r12, r0, #(1 << 23)     // add 1 to the exponent so 0xFF wraps to 0\n  MOVS    r12, r12, LSL #1        // test the top bit of the modified value\n  BXMI    lr                      // if top bit is still 1, not an overflow\n\n  // This is an overflow, so we need to replace it with an appropriately signed\n  // infinity. First we correct the sign by applying a downward bias to the\n  // exponent (the one suggested in IEEE 754:1985, which was chosen to bring\n  // all possible overflowed results back into range).\n  SUBS    r0, r0, #(0xC0 << 23)\n\n  // Now the sign bit of r0 is correct. Replace everything else with the\n  // encoding of an infinity.\n  MOV     r1, #0xFF\n  AND     r0, r0, #0x80000000\n  ORR     r0, r0, r1, LSL #23\n  BX      lr\n\nfmul_uncommon:\n  // Handle zeros, denorms, infinities and NaNs. We arrive here knowing that\n  // we've at least done the first _two_ instructions from the entry point,\n  // even if all the rest were skipped. So r2 contains the sign and exponent of\n  // x in bits 16..23, and r12 = 0xFF << 16.\n  //\n  // So, first repeat some instructions from the prologue, which were either\n  // conditionally skipped in the sequence leading to the branch, or skipped\n  // because they happened after the branch.\n  AND     r3, r12, r1, LSR #7  // get exponent of y in r3 bits 16..23\n  TEQ     r0, r1               // calculate the sign of the result\n  ORRMI   r2, r2, #0x100       // and put it in bit 8 of r2 as before\n\n  // Check for infinities and NaNs, by testing each of r2,r3 to see if it's at\n  // least 0xFF0000 (hence the exponent field is equal to 0xFF).\n  CMP     r2, r12\n  CMPLO   r3, r12\n  BHS     fmul_inf_NaN\n\n  // If we didn't take that branch, then we have only finite numbers, but at\n  // least one is denormal or zero. A zero makes the result easy (and also is a\n  // more likely input than a denormal), so check those first, as fast as\n  // possible.\n  MOVS    r12, r0, LSL #1          // Z set if x == 0\n  MOVSNE  r12, r1, LSL #1          // now Z set if either input is 0\n  MOVEQ   r0, r2, LSL #23          // in either case, make 0 of the output sign\n  BXEQ    lr                       // and return it\n\n  // Now we know we only have denormals to deal with. Call __fnorm2 to sort\n  // them out, and rejoin the main code path above.\n  AND     r12, r2, #0x100          // save the result sign from r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fmul.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:7", "text": "ORRMI   r2, r2, #0x100       // and put it in bit 8 of r2 as before\n\n  // Check for infinities and NaNs, by testing each of r2,r3 to see if it's at\n  // least 0xFF0000 (hence the exponent field is equal to 0xFF).\n  CMP     r2, r12\n  CMPLO   r3, r12\n  BHS     fmul_inf_NaN\n\n  // If we didn't take that branch, then we have only finite numbers, but at\n  // least one is denormal or zero. A zero makes the result easy (and also is a\n  // more likely input than a denormal), so check those first, as fast as\n  // possible.\n  MOVS    r12, r0, LSL #1          // Z set if x == 0\n  MOVSNE  r12, r1, LSL #1          // now Z set if either input is 0\n  MOVEQ   r0, r2, LSL #23          // in either case, make 0 of the output sign\n  BXEQ    lr                       // and return it\n\n  // Now we know we only have denormals to deal with. Call __fnorm2 to sort\n  // them out, and rejoin the main code path above.\n  AND     r12, r2, #0x100          // save the result sign from r2\n  LSR     r2, #16                  // shift extracted exponents down to bit 0\n  LSR     r3, #16                  // where __fnorm2 will expect them\n  PUSH    {r0, r1, r2, r3, r12, lr}\n  MOV     r0, sp                   // tell __fnorm2 where to find its data\n  BL      __fnorm2\n  POP     {r0, r1, r2, r3, r12, lr}\n  LSL     r3, #16                  // shift exponents back up to bit 16\n  ORR     r2, r12, r2, LSL #16     // and put the result sign back in r2\n  B       fmul_mul\n\nfmul_inf_NaN:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input; otherwise any multiplication involving infinity returns\n  // infinity, unless it's infinity * 0 which is an invalid operation and\n  // returns NaN again.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // NaNs are dealt with, so now we have at least one infinity. Check if the\n  // other operand is 0. This is conveniently done by XORing the two: because\n  // we know that the low 31 bits of one operand are exactly 0x7F800000, we can\n  // test if the low 31 bits of the other one are all 0 by checking whether the\n  // low 31 bits of (x XOR y) equal 0x7F800000.\n  EOR     r3, r0, r1\n  CMP     r12, r3, LSL #1          // if inf * 0, this sets Z\n  LSR     r0, r12, #1              // set up return value of +infinity\n  ORRNE   r0, r0, r2, LSL #23      // if not inf * 0, put on the output sign\n  ORREQ   r0, r0, #0x400000        // otherwise, set the 'quiet NaN' bit\n  BX      lr                       // and return\n\n  .size arm_fp_fmul, .-arm_fp_fmul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fmul.S", "line_start": 241, "line_end": 295}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:8", "text": "BLO     __fnan2\n\n  // NaNs are dealt with, so now we have at least one infinity. Check if the\n  // other operand is 0. This is conveniently done by XORing the two: because\n  // we know that the low 31 bits of one operand are exactly 0x7F800000, we can\n  // test if the low 31 bits of the other one are all 0 by checking whether the\n  // low 31 bits of (x XOR y) equal 0x7F800000.\n  EOR     r3, r0, r1\n  CMP     r12, r3, LSL #1          // if inf * 0, this sets Z\n  LSR     r0, r12, #1              // set up return value of +infinity\n  ORRNE   r0, r0, r2, LSL #23      // if not inf * 0, put on the output sign\n  ORREQ   r0, r0, #0x400000        // otherwise, set the 'quiet NaN' bit\n  BX      lr                       // and return\n\n  .size arm_fp_fmul, .-arm_fp_fmul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/fmul.S", "line_start": 281, "line_end": 295}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:1", "text": "// Single-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fmul\n  .type arm_fp_fmul,%function\narm_fp_fmul:\n\n  // Check if either input exponent is 00 or FF (i.e. not a normalized number),\n  // and if so, branch out of line. If we don't branch out of line, then we've\n  // also extracted the exponents of the input values r0/r1 into bits 16..23 of\n  // r2/r3. But if we do, then that hasn't necessarily been done (because the\n  // second AND might have been skipped).\n  MOV     r12, #0xFF0000\n  ANDS    r2, r12, r0, LSR #7  // sets Z if exponent of x is 0\n  ANDSNE  r3, r12, r1, LSR #7  // otherwise, sets Z if exponent of y is 0\n  TEQNE   r2, r12              // otherwise, sets Z if exponent of x is FF\n  TEQNE   r3, r12              // otherwise, sets Z if exponent of y is FF\n  BEQ.W   fmul_uncommon        // branch out of line to handle inf/NaN/0/denorm\n\n  // Calculate the sign of the result, and put it in an unused bit of r2.\n  TEQ     r0, r1               // sets N to the XOR of x and y's sign bits\n  ORRMI   r2, r2, #0x100       // if N set, set bit 8 of r2\n\n  // Move the input mantissas to the high end of r0/r1, each with its leading\n  // bit set explicitly, so that they're in the right form to be multiplied.\n  MOV     r12, #0x80000000\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\n  // Now we're ready to multiply mantissas. This is also the place we'll come\n  // back to after decoding denormal inputs. The denormal decoding will also\n  // have to set up the same register contents:\n  //  - decoded fractions at the top of r0 and r1\n  //  - exponents in r2 and r3, starting at bit 16\n  //  - output sign in r2 bit 8\nfmul_mul:\n\n  // Here we multiply the mantissas, and compute the output exponent by adding\n  // the input exponents and rebiasing. These operations are interleaved to\n  // use a delay slot.\n  //\n  // The exponent is rebiased by subtracting 0x80, rather than the 0x7F you'd\n  // expect. That compensates for the leading bit of the mantissa overlapping\n  // it, when we recombine the exponent and mantissa by addition.\n  ADD     r2, r2, r3           // r2 has sum of exponents, freeing up r3\n  UMULL   r1, r3, r0, r1       // r3:r1 has the double-width product\n  SUB     r2, r2, #(0x80 << 16) // rebias the summed exponent\n\n  // Compress the double-word product into just the high-order word r3, by\n  // setting its bit 0 if any bit of the low-order word is nonzero. This\n  // changes the represented value, but not by nearly enough to affect\n  // rounding, because rounding only depends on the bit below the last output\n  // bit, and the general question of whether _any_ nonzero bit exists below\n  // that.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/fmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:5", "text": "// First, Thumb-specific compensation code. The Arm branch of the #if above\n  // will have set Z=0 to indicate round to even, but the Thumb branch didn't\n  // leave any unambiguous indicator of RTE, so we must retest by checking all\n  // the bits shifted off the bottom of the mantissa to see if they're exactly\n  // the half-way value.\n  LSL     r12, r3, #24           // r12 = round bit and everything below\n  CMP     r12, #0x80000000       // set Z if that is exactly 0x80000000\n#endif\n\n  // Now Z is clear iff we have already rounded up and now must replace that\n  // with rounding to even, which is done by just clearing the low bit of the\n  // mantissa.\n  BICEQ   r0, r0, #1\n\n  // Redo the over/underflow check (the same way as in both branches above),\n  // and if it doesn't report a danger, we can return the rounded-to-even\n  // answer.\n  CMP     r2, #0xFC0000         // check for over/underflow\n  BXCC    lr                    // and return if none.\n\n  // Now we only have overflow and underflow left to handle. First, find out\n  // which we're looking at. This is easy by testing the top bit of r2, but\n  // even easier by using the fact that the possible positive and negative\n  // values of r2 are widely enough separated that the 0xFC0000 subtracted by\n  // the CMP above won't have made any difference. So the N flag output from\n  // that comparison _already_ tells us which condition we have: if N is set we\n  // have underflow, and if N is clear, overflow.\n  BPL     fmul_overflow\n\n  // Here we're handling underflow.\n\n  // Add the IEEE 754:1985 exponent bias which __funder will expect. This also\n  // brings the exponent back into a range where it can't possibly have carried\n  // into the sign bit, so the output sign will now be right.\n  ADD     r0, r0, #(0xC0 << 23)\n\n  // Determine whether we rounded up, down or not at all.\n  LSLS    r2, r3, #1              // input mantissa, without its leading 1\n  SUBS    r1, r2, r0, LSL #9      // subtract the output mantissa (likewise)\n\n  // And let __funder handle the rest.\n  B.W   __funder\n\nfmul_overflow:\n  // We come here to handle overflow, but it's not guaranteed that an overflow\n  // has actually happened: our check on the fast path erred on the side of\n  // caution, by catching any output exponent that _could_ cause an overflow.\n  // So first check whether this really is an overflow, by extracting the\n  // output exponent. Exponent 0xFF, or anything that wrapped round to having\n  // the high bit clear, are overflows; 0xFE down to 0xFC are not overflows.\n  //\n  // The value in r0 is correct to return, if there's no overflow.\n  ADD     r12, r0, #(1 << 23)     // add 1 to the exponent so 0xFF wraps to 0\n  MOVS    r12, r12, LSL #1        // test the top bit of the modified value\n  BXMI    lr                      // if top bit is still 1, not an overflow\n\n  // This is an overflow, so we need to replace it with an appropriately signed\n  // infinity. First we correct the sign by applying a downward bias to the\n  // exponent (the one suggested in IEEE 754:1985, which was chosen to bring\n  // all possible overflowed results back into range).", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/fmul.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:6", "text": "// And let __funder handle the rest.\n  B.W   __funder\n\nfmul_overflow:\n  // We come here to handle overflow, but it's not guaranteed that an overflow\n  // has actually happened: our check on the fast path erred on the side of\n  // caution, by catching any output exponent that _could_ cause an overflow.\n  // So first check whether this really is an overflow, by extracting the\n  // output exponent. Exponent 0xFF, or anything that wrapped round to having\n  // the high bit clear, are overflows; 0xFE down to 0xFC are not overflows.\n  //\n  // The value in r0 is correct to return, if there's no overflow.\n  ADD     r12, r0, #(1 << 23)     // add 1 to the exponent so 0xFF wraps to 0\n  MOVS    r12, r12, LSL #1        // test the top bit of the modified value\n  BXMI    lr                      // if top bit is still 1, not an overflow\n\n  // This is an overflow, so we need to replace it with an appropriately signed\n  // infinity. First we correct the sign by applying a downward bias to the\n  // exponent (the one suggested in IEEE 754:1985, which was chosen to bring\n  // all possible overflowed results back into range).\n  SUBS    r0, r0, #(0xC0 << 23)\n\n  // Now the sign bit of r0 is correct. Replace everything else with the\n  // encoding of an infinity.\n  MOV     r1, #0xFF\n  AND     r0, r0, #0x80000000\n  ORR     r0, r0, r1, LSL #23\n  BX      lr\n\nfmul_uncommon:\n  // Handle zeros, denorms, infinities and NaNs. We arrive here knowing that\n  // we've at least done the first _two_ instructions from the entry point,\n  // even if all the rest were skipped. So r2 contains the sign and exponent of\n  // x in bits 16..23, and r12 = 0xFF << 16.\n  //\n  // So, first repeat some instructions from the prologue, which were either\n  // conditionally skipped in the sequence leading to the branch, or skipped\n  // because they happened after the branch.\n  AND     r3, r12, r1, LSR #7  // get exponent of y in r3 bits 16..23\n  TEQ     r0, r1               // calculate the sign of the result\n  ORRMI   r2, r2, #0x100       // and put it in bit 8 of r2 as before\n\n  // Check for infinities and NaNs, by testing each of r2,r3 to see if it's at\n  // least 0xFF0000 (hence the exponent field is equal to 0xFF).\n  CMP     r2, r12\n  CMPLO   r3, r12\n  BHS     fmul_inf_NaN\n\n  // If we didn't take that branch, then we have only finite numbers, but at\n  // least one is denormal or zero. A zero makes the result easy (and also is a\n  // more likely input than a denormal), so check those first, as fast as\n  // possible.\n  MOVS    r12, r0, LSL #1          // Z set if x == 0\n  MOVSNE  r12, r1, LSL #1          // now Z set if either input is 0\n  MOVEQ   r0, r2, LSL #23          // in either case, make 0 of the output sign\n  BXEQ    lr                       // and return it\n\n  // Now we know we only have denormals to deal with. Call __fnorm2 to sort\n  // them out, and rejoin the main code path above.\n  AND     r12, r2, #0x100          // save the result sign from r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "bf3e44c3784dd3e18d3d5232e13b4d81f232310b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf3e44c3784dd3e18d3d5232e13b4d81f232310b/fp/at32/fmul.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:1", "text": "// Single-precision multiplication.\n//\n// Copyright (c) 2009,2010,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_fmul\n  .type arm_fp_fmul,%function\narm_fp_fmul:\n\n  // Check if either input exponent is 00 or FF (i.e. not a normalized number),\n  // and if so, branch out of line. If we don't branch out of line, then we've\n  // also extracted the exponents of the input values r0/r1 into bits 16..23 of\n  // r2/r3. But if we do, then that hasn't necessarily been done (because the\n  // second AND might have been skipped).\n  MOV     r12, #0xFF0000\n  ANDS    r2, r12, r0, LSR #7  // sets Z if exponent of a is 0\n  ANDSNE  r3, r12, r1, LSR #7  // otherwise, sets Z if exponent of b is 0\n  TEQNE   r2, r12              // otherwise, sets Z if exponent of a is FF\n  TEQNE   r3, r12              // otherwise, sets Z if exponent of b is FF\n  BEQ.W   fmul_uncommon        // branch out of line to handle inf/NaN/0/denorm\n\n  // Calculate the sign of the result, and put it in an unused bit of r2.\n  TEQ     r0, r1               // sets N to the XOR of a and b's sign bits\n  ORRMI   r2, r2, #0x100       // if N set, set bit 8 of r2\n\n  // Move the input mantissas to the high end of r0/r1, each with its leading\n  // bit set explicitly, so that they're in the right form to be multiplied.\n  MOV     r12, #0x80000000\n  ORR     r0, r12, r0, LSL #8\n  ORR     r1, r12, r1, LSL #8\n\n  // Now we're ready to multiply mantissas. This is also the place we'll come\n  // back to after decoding denormal inputs. The denormal decoding will also\n  // have to set up the same register contents:\n  //  - decoded fractions at the top of r0 and r1\n  //  - exponents in r2 and r3, starting at bit 16\n  //  - output sign in r2 bit 8\nfmul_mul:\n\n  // Here we multiply the mantissas, and compute the output exponent by adding\n  // the input exponents and rebiasing. These operations are interleaved to\n  // use a delay slot.\n  //\n  // The exponent is rebiased by subtracting 0x80, rather than the 0x7F you'd\n  // expect. That compensates for the leading bit of the mantissa overlapping\n  // it, when we recombine the exponent and mantissa by addition.\n  ADD     r2, r2, r3           // r2 has sum of exponents, freeing up r3\n  UMULL   r1, r3, r0, r1       // r3:r1 has the double-width product\n  SUB     r2, r2, #(0x80 << 16) // rebias the summed exponent\n\n  // Compress the double-word product into just the high-order word r3, by\n  // setting its bit 0 if any bit of the low-order word is nonzero. This\n  // changes the represented value, but not by nearly enough to affect\n  // rounding, because rounding only depends on the bit below the last output\n  // bit, and the general question of whether _any_ nonzero bit exists below\n  // that.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "850309be878e7d15d064ea7d5589bb0266499288", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/850309be878e7d15d064ea7d5589bb0266499288/fp/at32/fmul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:6", "text": "// And let __funder handle the rest.\n  B.W   __funder\n\nfmul_overflow:\n  // We come here to handle overflow, but it's not guaranteed that an overflow\n  // has actually happened: our check on the fast path erred on the side of\n  // caution, by catching any output exponent that _could_ cause an overflow.\n  // So first check whether this really is an overflow, by extracting the\n  // output exponent. Exponent 0xFF, or anything that wrapped round to having\n  // the high bit clear, are overflows; 0xFE down to 0xFC are not overflows.\n  //\n  // The value in r0 is correct to return, if there's no overflow.\n  ADD     r12, r0, #(1 << 23)     // add 1 to the exponent so 0xFF wraps to 0\n  MOVS    r12, r12, LSL #1        // test the top bit of the modified value\n  BXMI    lr                      // if top bit is still 1, not an overflow\n\n  // This is an overflow, so we need to replace it with an appropriately signed\n  // infinity. First we correct the sign by applying a downward bias to the\n  // exponent (the one suggested in IEEE 754:1985, which was chosen to bring\n  // all possible overflowed results back into range).\n  SUBS    r0, r0, #(0xC0 << 23)\n\n  // Now the sign bit of r0 is correct. Replace everything else with the\n  // encoding of an infinity.\n  MOV     r1, #0xFF\n  AND     r0, r0, #0x80000000\n  ORR     r0, r0, r1, LSL #23\n  BX      lr\n\nfmul_uncommon:\n  // Handle zeros, denorms, infinities and NaNs. We arrive here knowing that\n  // we've at least done the first _two_ instructions from the entry point,\n  // even if all the rest were skipped. So r2 contains the sign and exponent of\n  // a in bits 16..23, and r12 = 0xFF << 16.\n  //\n  // So, first repeat some instructions from the prologue, which were either\n  // conditionally skipped in the sequence leading to the branch, or skipped\n  // because they happened after the branch.\n  AND     r3, r12, r1, LSR #7  // get exponent of b in r3 bits 16..23\n  TEQ     r0, r1               // calculate the sign of the result\n  ORRMI   r2, r2, #0x100       // and put it in bit 8 of r2 as before\n\n  // Check for infinities and NaNs, by testing each of r2,r3 to see if it's at\n  // least 0xFF0000 (hence the exponent field is equal to 0xFF).\n  CMP     r2, r12\n  CMPLO   r3, r12\n  BHS     fmul_inf_NaN\n\n  // If we didn't take that branch, then we have only finite numbers, but at\n  // least one is denormal or zero. A zero makes the result easy (and also is a\n  // more likely input than a denormal), so check those first, as fast as\n  // possible.\n  MOVS    r12, r0, LSL #1          // Z set if a == 0\n  MOVSNE  r12, r1, LSL #1          // now Z set if either input is 0\n  MOVEQ   r0, r2, LSL #23          // in either case, make 0 of the output sign\n  BXEQ    lr                       // and return it\n\n  // Now we know we only have denormals to deal with. Call __fnorm2 to sort\n  // them out, and rejoin the main code path above.\n  AND     r12, r2, #0x100          // save the result sign from r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "850309be878e7d15d064ea7d5589bb0266499288", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/850309be878e7d15d064ea7d5589bb0266499288/fp/at32/fmul.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:7", "text": "ORRMI   r2, r2, #0x100       // and put it in bit 8 of r2 as before\n\n  // Check for infinities and NaNs, by testing each of r2,r3 to see if it's at\n  // least 0xFF0000 (hence the exponent field is equal to 0xFF).\n  CMP     r2, r12\n  CMPLO   r3, r12\n  BHS     fmul_inf_NaN\n\n  // If we didn't take that branch, then we have only finite numbers, but at\n  // least one is denormal or zero. A zero makes the result easy (and also is a\n  // more likely input than a denormal), so check those first, as fast as\n  // possible.\n  MOVS    r12, r0, LSL #1          // Z set if a == 0\n  MOVSNE  r12, r1, LSL #1          // now Z set if either input is 0\n  MOVEQ   r0, r2, LSL #23          // in either case, make 0 of the output sign\n  BXEQ    lr                       // and return it\n\n  // Now we know we only have denormals to deal with. Call __fnorm2 to sort\n  // them out, and rejoin the main code path above.\n  AND     r12, r2, #0x100          // save the result sign from r2\n  LSR     r2, #16                  // shift extracted exponents down to bit 0\n  LSR     r3, #16                  // where __fnorm2 will expect them\n  PUSH    {r0, r1, r2, r3, r12, lr}\n  MOV     r0, sp                   // tell __fnorm2 where to find its data\n  BL      __fnorm2\n  POP     {r0, r1, r2, r3, r12, lr}\n  LSL     r3, #16                  // shift exponents back up to bit 16\n  ORR     r2, r12, r2, LSL #16     // and put the result sign back in r2\n  B       fmul_mul\n\nfmul_inf_NaN:\n  // We come here if at least one input is a NaN or infinity. If either or both\n  // inputs are NaN then we hand off to __fnan2 which will propagate a NaN from\n  // the input; otherwise any multiplication involving infinity returns\n  // infinity, unless it's infinity * 0 which is an invalid operation and\n  // returns NaN again.\n  MOV     r12, #0xFF000000\n  CMP     r12, r0, LSL #1          // if (r0 << 1) > 0xFF000000, r0 is a NaN\n  BLO     __fnan2\n  CMP     r12, r1, LSL #1\n  BLO     __fnan2\n\n  // NaNs are dealt with, so now we have at least one infinity. Check if the\n  // other operand is 0. This is conveniently done by XORing the two: because\n  // we know that the low 31 bits of one operand are exactly 0x7F800000, we can\n  // test if the low 31 bits of the other one are all 0 by checking whether the\n  // low 31 bits of (a XOR b) equal 0x7F800000.\n  EOR     r3, r0, r1\n  CMP     r12, r3, LSL #1          // if inf * 0, this sets Z\n  LSR     r0, r12, #1              // set up return value of +infinity\n  ORRNE   r0, r0, r2, LSL #23      // if not inf * 0, put on the output sign\n  ORREQ   r0, r0, #0x400000        // otherwise, set the 'quiet NaN' bit\n  BX      lr                       // and return\n\n  .size arm_fp_fmul, .-arm_fp_fmul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "850309be878e7d15d064ea7d5589bb0266499288", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/850309be878e7d15d064ea7d5589bb0266499288/fp/at32/fmul.S", "line_start": 241, "line_end": 295}
{"id": "ARM-software/optimized-routines:fp/at32/fmul.S:8", "text": "BLO     __fnan2\n\n  // NaNs are dealt with, so now we have at least one infinity. Check if the\n  // other operand is 0. This is conveniently done by XORing the two: because\n  // we know that the low 31 bits of one operand are exactly 0x7F800000, we can\n  // test if the low 31 bits of the other one are all 0 by checking whether the\n  // low 31 bits of (a XOR b) equal 0x7F800000.\n  EOR     r3, r0, r1\n  CMP     r12, r3, LSL #1          // if inf * 0, this sets Z\n  LSR     r0, r12, #1              // set up return value of +infinity\n  ORRNE   r0, r0, r2, LSL #23      // if not inf * 0, put on the output sign\n  ORREQ   r0, r0, #0x400000        // otherwise, set the 'quiet NaN' bit\n  BX      lr                       // and return\n\n  .size arm_fp_fmul, .-arm_fp_fmul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/fmul.S", "license": "MIT", "commit": "850309be878e7d15d064ea7d5589bb0266499288", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/850309be878e7d15d064ea7d5589bb0266499288/fp/at32/fmul.S", "line_start": 281, "line_end": 295}
{"id": "ARM-software/optimized-routines:fp/at32/i2d.S:1", "text": "// Double-precision conversion from signed 32-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_i2d\n  .type arm_fp_i2d,%function\narm_fp_i2d:\n\n  // Start by separating the input into its sign and its absolute value.\n  ANDS    r2, r0, #0x80000000   // get sign\n  RSBMI   r0, r0, #0            // negate input if it was negative\n\n  // Shift the leading bit of the input to the top of xh. In the\n  // process, we detect a zero input, and branch out of line for it.\n  CLZ     r3, r0\n  LSLS    xh, r0, r3\n  BEQ     i2d_zero\n\n  // Use the shift count in r3 to calculate the output exponent, and combine it\n  // with the sign bit in r2.\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  //\n  // (For a signed integer, the only possible value in that range would be\n  // 2^31, obtained as the absolute value of an original input of -2^31.)\n  RSB     r3, r3, #0x1d         // 0x1d minus shift count\n  ADD     r3, r3, #0x400        // 0x41d minus shift count\n  ADD     r2, r2, r3, LSL #20   // r2 is now sign+exponent\n\n  // Shift the mantissa left and right to get the parts that go in xl and xh,\n  // and combine with the sign and exponent we just computed.\n  LSL     xl, xh, #21           // low bits of mantissa\n  ADD     xh, r2, xh, LSR #11   // high bits of mantissa + sign + exponent\n  BX      lr\n\ni2d_zero:\n  // We come here if the input was zero. We've just set xh to 0, so we\n  // only need to set xl to 0 too and return.\n  MOV     xl, #0\n  BX      lr\n\n  .size arm_fp_i2d, .-arm_fp_i2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/i2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/i2d.S", "line_start": 1, "line_end": 52}
{"id": "ARM-software/optimized-routines:fp/at32/i2d.S:1", "text": "// Double-precision conversion from signed 32-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_i2d\n  .type arm_fp_i2d,%function\narm_fp_i2d:\n\n  // Start by separating the input into its sign and its absolute value.\n  ANDS    r2, r0, #0x80000000   // get sign\n  RSBMI   r0, r0, #0            // negate input if it was negative\n\n  // Shift the leading bit of the input to the top of ah. In the\n  // process, we detect a zero input, and branch out of line for it.\n  CLZ     r3, r0\n  LSLS    ah, r0, r3\n  BEQ     i2d_zero\n\n  // Use the shift count in r3 to calculate the output exponent, and combine it\n  // with the sign bit in r2.\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  //\n  // (For a signed integer, the only possible value in that range would be\n  // 2^31, obtained as the absolute value of an original input of -2^31.)\n  RSB     r3, r3, #0x1d         // 0x1d minus shift count\n  ADD     r3, r3, #0x400        // 0x41d minus shift count\n  ADD     r2, r2, r3, LSL #20   // r2 is now sign+exponent\n\n  // Shift the mantissa left and right to get the parts that go in al and ah,\n  // and combine with the sign and exponent we just computed.\n  LSL     al, ah, #21           // low bits of mantissa\n  ADD     ah, r2, ah, LSR #11   // high bits of mantissa + sign + exponent\n  BX      lr\n\ni2d_zero:\n  // We come here if the input was zero. We've just set ah to 0, so we\n  // only need to set al to 0 too and return.\n  MOV     al, #0\n  BX      lr\n\n  .size arm_fp_i2d, .-arm_fp_i2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/i2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/i2d.S", "line_start": 1, "line_end": 52}
{"id": "ARM-software/optimized-routines:fp/at32/i2f.S:1", "text": "// Single-precision conversion from signed 32-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_i2f\n  .type arm_fp_i2f,%function\narm_fp_i2f:\n\n  // Isolate the input integer's sign bit in r1, and if the input is negative,\n  // negate it.\n  ANDS    r1, r0, #0x80000000\n  RSBMI   r0, r0, #0\n\n  // Find the highest set bit of the input, and shift it up to the top bit. r3\n  // contains the amount we shifted by, and r2 the shifted value.\n  CLZ     r3, r0\n  LSLS    r2, r0, r3\n\n  // Convert the shift distance into the exponent of the output float. The\n  // exponent for an integer with bit 31 set should be 0x7f (the IEEE exponent\n  // bias) plus 31, which is 0x9e. Here we reduce that by 1, because when we\n  // add the mantissa to it, the leading mantissa bit will increment it.\n  RSB     r3, r3, #0x9d\n\n  // A side effect of the LSLS above was to set the Z flag if the input integer\n  // was actually zero. In that situation, we can just return immediately,\n  // because r0 still _contains_ the input integer, which has the same\n  // representation as the floating-point +0 that we should return.\n#if !__thumb__\n  BXEQ    lr\n#else\n  // In Thumb, we do the conditional return by branching to a return\n  // instruction later in the function. This costs more time in the case where\n  // the return is taken, but saves an IT in the case where it's not, and we\n  // assume that nonzero integers are converted to FP more often than zero is.\n  // (This also improves the _worst-case_ running time, because the nonzero\n  // code path is the limiting factor.)\n  BEQ     i2f_return\n#endif\n\n  // Shift the exponent up to its final bit position, and combine it with the\n  // sign.\n  ORRS    r1, r1, r3, LSL #23\n\n  // Recombine the mantissa with the sign+exponent, and round. This is done\n  // differently between Arm and Thumb.\n#if !__thumb__\n  // Arm rounding sequence: shift the round bit off the top of r2 into C, and\n  // simultaneously set Z if the lower-down bits are all zero.\n  LSLS    r3, r2, #25\n  // Recombine mantissa with sign+exponent, using ADC so that this also adds 1\n  // if we're rounding up.\n  ADC     r0, r1, r2, LSR #8\n  // If C was clear, we can't possibly need to round to even, so return.\n  BXCC    lr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/i2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/i2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/i2f.S:2", "text": "// (This also improves the _worst-case_ running time, because the nonzero\n  // code path is the limiting factor.)\n  BEQ     i2f_return\n#endif\n\n  // Shift the exponent up to its final bit position, and combine it with the\n  // sign.\n  ORRS    r1, r1, r3, LSL #23\n\n  // Recombine the mantissa with the sign+exponent, and round. This is done\n  // differently between Arm and Thumb.\n#if !__thumb__\n  // Arm rounding sequence: shift the round bit off the top of r2 into C, and\n  // simultaneously set Z if the lower-down bits are all zero.\n  LSLS    r3, r2, #25\n  // Recombine mantissa with sign+exponent, using ADC so that this also adds 1\n  // if we're rounding up.\n  ADC     r0, r1, r2, LSR #8\n  // If C was clear, we can't possibly need to round to even, so return.\n  BXCC    lr\n  // Now we've definitely rounded up, and if Z is set, round to even.\n  BICEQ   r0, r0, #1\n  BX      lr\n#else\n  // Thumb rounding sequence: we do things in a slightly different order, by\n  // recombining first with plain ADD, and _then_ testing the round bit. On\n  // simple M-profile CPUs like Cortex-M3, this avoids the IT instruction\n  // (inserted before BXCC lr) costing a cycle, because it immediately follows\n  // a 16-bit LSLS instruction, so the CPU had already fetched it.\n  //\n  // So we save a cycle in the case where we don't round up, at the cost of a\n  // cycle in the case where we do (requiring a separate ADD instruction after\n  // the BXCC lr isn't taken). We expect that this is a good trade, on the\n  // theory that _most_ integers converted into floating point are not large\n  // enough to need rounding at all, so all the exact cases _and_ half the\n  // inexact ones will benefit from the saving.\n  ADD     r0, r1, r2, LSR #8    // r0 is now sign+exp+mant, unrounded\n#if __thumb__\n  LSLS.N  r3, r2, #25           // .N to make sure it's assembled as 16-bit\n#else\n  LSLS    r3, r2, #25           // GNU assembler treats .N as an error in Arm\n#endif\n  BXCC    lr\n  // Now if we didn't take the return, we must definitely round up, and\n  // conditionally round to even.\n  ADD     r0, r0, #1\n  BICEQ   r0, r0, #1\ni2f_return:                     // label we branch to from the 0 case above\n  BX      lr\n#endif\n\n  .size arm_fp_i2f, .-arm_fp_i2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/i2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/i2f.S", "line_start": 41, "line_end": 92}
{"id": "ARM-software/optimized-routines:fp/at32/i2f.S:3", "text": "LSLS    r3, r2, #25           // GNU assembler treats .N as an error in Arm\n#endif\n  BXCC    lr\n  // Now if we didn't take the return, we must definitely round up, and\n  // conditionally round to even.\n  ADD     r0, r0, #1\n  BICEQ   r0, r0, #1\ni2f_return:                     // label we branch to from the 0 case above\n  BX      lr\n#endif\n\n  .size arm_fp_i2f, .-arm_fp_i2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/i2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/i2f.S", "line_start": 81, "line_end": 92}
{"id": "ARM-software/optimized-routines:fp/at32/i2f.S:2", "text": "// (This also improves the _worst-case_ running time, because the nonzero\n  // code path is the limiting factor.)\n  BEQ     i2f_return\n#endif\n\n  // Shift the exponent up to its final bit position, and combine it with the\n  // sign.\n  ORRS    r1, r1, r3, LSL #23\n\n  // Recombine the mantissa with the sign+exponent, and round. This is done\n  // differently between Arm and Thumb.\n#if !__thumb__\n  // Arm rounding sequence: shift the round bit off the top of r2 into C, and\n  // simultaneously set Z if the lower-down bits are all zero.\n  LSLS    r3, r2, #25\n  // Recombine mantissa with sign+exponent, using ADC so that this also adds 1\n  // if we're rounding up.\n  ADC     r0, r1, r2, LSR #8\n  // If C was clear, we can't possibly need to round to even, so return.\n  BXCC    lr\n  // Now we've definitely rounded up, and if Z is set, round to even.\n  BICEQ   r0, r0, #1\n  BX      lr\n#else\n  // Thumb rounding sequence: we do things in a slightly different order, by\n  // recombining first with plain ADD, and _then_ testing the round bit. On\n  // simple M-profile CPUs like Cortex-M3, this avoids the IT instruction\n  // (inserted before BXCC lr) costing a cycle, because it immediately follows\n  // a 16-bit LSLS instruction, so the CPU had already fetched it.\n  //\n  // So we save a cycle in the case where we don't round up, at the cost of a\n  // cycle in the case where we do (requiring a separate ADD instruction after\n  // the BXCC lr isn't taken). We expect that this is a good trade, on the\n  // theory that _most_ integers converted into floating point are not large\n  // enough to need rounding at all, so all the exact cases _and_ half the\n  // inexact ones will benefit from the saving.\n  ADD     r0, r1, r2, LSR #8    // r0 is now sign+exp+mant, unrounded\n  LSLS.N  r3, r2, #25           // .N to make sure it's assembled as 16-bit\n  BXCC    lr\n  // Now if we didn't take the return, we must definitely round up, and\n  // conditionally round to even.\n  ADD     r0, r0, #1\n  BICEQ   r0, r0, #1\ni2f_return:                     // label we branch to from the 0 case above\n  BX      lr\n#endif\n\n  .size arm_fp_i2f, .-arm_fp_i2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/i2f.S", "license": "MIT", "commit": "6b2ca8ac033ddbdfb01aed791d06d5a7c8dafc14", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6b2ca8ac033ddbdfb01aed791d06d5a7c8dafc14/fp/at32/i2f.S", "line_start": 41, "line_end": 88}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:1", "text": "// Double-precision conversion from signed 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_l2d\n  .type arm_fp_l2d,%function\narm_fp_l2d:\n\n  // Start by finding out the sign of the input. This instruction sets up r2 to\n  // be 0xFFFFFFFF for a _positive_ number, and 0 for a negative number.\n  MVNS    r2, xh, ASR #31\n\n  // Now take the absolute value, by negating the input if it was negative\n  // (which we can tell from the flags set by that MVNS).\n  //\n  // Because r2 = 0 in the case where we need to negate, we can do the negation\n  // using SUB/SBC instead of the more obvious RSB/RSC, which saves having to\n  // use an extra instruction in Thumb to work around RSC not being available.\n  BNE     0f                    // if positive, branch round the negation\n  SUBS    xl, r2, xl\n  SBC     xh, r2, xh\n0:\n\n  // Now we just need to convert a positive integer to double, and combine it\n  // with the sign in r2.\n  //\n  // There are essentially three cases we need to separate. The leading bit of\n  // the integer is either in xh or xl; if it's in xh, it makes a difference\n  // whether it's above bit 20, because that's the case where we must shift\n  // right and potentially round.\n  //\n  // Start by assuming the high word is nonzero; if we're wrong, we'll find out\n  // in a few instructions' time and be able to try again. So we find the\n  // position of the leading bit in xh, and turn it into a left-shift count\n  // that will move the leading bit up to where it belongs in the output\n  // double.\n  CLZ     r3, xh\n  SUBS    r3, r3, #11\n\n  // If that left-shift count is negative, we're going to have to shift the\n  // mantissa right instead of left, and maybe round it. Branch out of line for\n  // the code that handles that case.\n  BLO     l2d_shiftdown\n\n  // Shift xh left to bring the top word of the mantissa to the right place. By\n  // making this shift set the flags, we detect if xh was zero.\n  //\n  // We branch out of line if it _wasn't_ zero, on the theory that small input\n  // integers are likely to occur more often than large ones, so the small case\n  // should be the faster path. This is a bit of a compromise between large and\n  // small integer performance: if we wanted to prioritise small inputs above\n  // all else, we could have tested if xh=0 to begin with - but that would cost\n  // an extra instruction on the large-integer path, because it repeats work", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2d.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:3", "text": "// Now xl contains the output mantissa, with the leading bit at the top. We\n  // must shift that up another 21 bits, and recombine it with an exponent\n  // derived from r3 (telling us how far we've already shifted up), and the\n  // sign derived from r2.\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  //\n  // But also, r2 is 0 for a negative number and -1 for a positive number. So\n  // we _set_ the sign bit on the output, by calculating the sign+exponent\n  // fields together as 0xc1d minus r3; then we shift r2 left and subtract it,\n  // which decrements the sign bit from 1 back to 0 if the number was positive\n  // (hence r2 had all bits set).\n  RSB     r3, r3, #0x1d           // 0x1d minus shift count\n  ADD     r3, r3, #0xc00          // 0xc1d minus shift count\n  SUB     r3, r3, r2, LSL #11     // combine with the sign\n  LSR     r2, xh, #11             // make top word of mantissa\n  LSL     xl, xh, #21             // make bottom word of mantissa\n  ADD     xh, r2, r3, LSL #20     // combine top of mantissa with sign+exp\n  BX      lr\n\nl2d_highword:\n  // This is the branch for numbers big enough that xh != 0, but not big enough\n  // to need to shift downwards and round.\n  //\n  // r3 is the distance that we've already shifted xh left by. We'll need to\n  // shift xl left by the same amount, and we'll also need to shift xl right by\n  // 32 minus that, to put some of its bits at the bottom of xh. Start by\n  // working out the rightward shift distance, and make the full top word of\n  // the mantissa.\n  RSB     r12, r3, #32\n#if !__thumb__\n  ORR     xh, xh, xl, LSR r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSR     r12, xl, r12\n  ORR     xh, xh, r12\n#endif\n  // Shift xl left as well, so that xh:xl are now the full output mantissa,\n  // with its leading bit in bit 20 of xh.\n  LSLS    xl, xl, r3\n\n  // Calculate the sign and exponent, and recombine them with the mantissa.\n  // This is exactly the same method as above, except that the exponent is\n  // different, because this time r3 stores the offset between the original\n  // leading bit position and bit 20 of the mantissa, so that it's zero if the\n  // input is in the range [2^52,2^53), which would make the output exponent\n  // 0x433, or 0x432 after compensating for the leading mantissa bit.\n  RSB     r3, r3, #0x32           // 0x32 minus shift count\n  ADD     r3, r3, #0xc00          // 0xc32 minus shift count\n  SUB     r3, r3, r2, LSL #11     // combine with the sign\n  ADD     xh, xh, r3, LSL #20     // and with the top word of the mantissa\n  BX      lr\n\nl2d_shiftdown:\n  // This is the branch for numbers so big that the mantissa has to be shifted\n  // _right_, so that some of the mantissa is shifted off the bottom and the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2d.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:4", "text": "#endif\n  // Shift xl left as well, so that xh:xl are now the full output mantissa,\n  // with its leading bit in bit 20 of xh.\n  LSLS    xl, xl, r3\n\n  // Calculate the sign and exponent, and recombine them with the mantissa.\n  // This is exactly the same method as above, except that the exponent is\n  // different, because this time r3 stores the offset between the original\n  // leading bit position and bit 20 of the mantissa, so that it's zero if the\n  // input is in the range [2^52,2^53), which would make the output exponent\n  // 0x433, or 0x432 after compensating for the leading mantissa bit.\n  RSB     r3, r3, #0x32           // 0x32 minus shift count\n  ADD     r3, r3, #0xc00          // 0xc32 minus shift count\n  SUB     r3, r3, r2, LSL #11     // combine with the sign\n  ADD     xh, xh, r3, LSL #20     // and with the top word of the mantissa\n  BX      lr\n\nl2d_shiftdown:\n  // This is the branch for numbers so big that the mantissa has to be shifted\n  // _right_, so that some of the mantissa is shifted off the bottom and the\n  // number has to be rounded.\n  //\n  // r3 contains the shift count, but it's currently negative (it was\n  // calculated as a left shift). So it's in a good state to use for\n  // calculating the output exponent, and therefore we do that first, while\n  // it's convenient.\n  RSB     r12, r3, #0x32          // 0x32 minus shift count\n  ADD     r12, r12, #0xc00        // 0xc32 minus shift count\n  SUB     r2, r12, r2, LSL #11    // combine with the sign\n\n  // Shift the mantissa down to the right position, capturing the bits shifted\n  // off the bottom at the top of r3. We'll need to temporarily push a couple\n  // of extra registers for this part, because we need to calculate how far to\n  // shift xh and xl right, but also how far to shift them left to get the bits\n  // shifted out of each one.\n  PUSH    {r4,lr}\n  RSB     r4, r3, #0              // r4 = right-shift count\n  RSB     lr, r4, #32             // lr = left-shift count\n  LSL     r12, xh, lr             // r12 = bits shifted out of xh\n  LSR     xh, xh, r4              // shift xh right to make its final value\n  LSL     r3, xl, lr              // r3 = bits shifted out of xl\n#if !__thumb__\n  ORRS    xl, r12, xl, LSR r4     // shift xl right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    xl, xl, r4\n  ORR     xl, xl, r12\n#endif\n  POP     {r4,lr}\n\n  // Now xh:xl contains the unrounded output mantissa; r2 contains its sign and\n  // exponent; and r3 contains the bits shifted off the bottom. Also, the\n  // single flag-setting shift in the sequence above was the one that shifted\n  // xl right, so the carry flag contains the bit just off the bottom, i.e. the\n  // bit that tells us whether we need to round up.\n  //\n  // Recombine the mantissa with the sign and exponent, and then if C is clear,\n  // we don't need to round up, and can return.\n  ADD     xh, xh, r2, LSL #20     // put back the sign+exponent", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2d.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:5", "text": "LSL     r3, xl, lr              // r3 = bits shifted out of xl\n#if !__thumb__\n  ORRS    xl, r12, xl, LSR r4     // shift xl right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    xl, xl, r4\n  ORR     xl, xl, r12\n#endif\n  POP     {r4,lr}\n\n  // Now xh:xl contains the unrounded output mantissa; r2 contains its sign and\n  // exponent; and r3 contains the bits shifted off the bottom. Also, the\n  // single flag-setting shift in the sequence above was the one that shifted\n  // xl right, so the carry flag contains the bit just off the bottom, i.e. the\n  // bit that tells us whether we need to round up.\n  //\n  // Recombine the mantissa with the sign and exponent, and then if C is clear,\n  // we don't need to round up, and can return.\n  ADD     xh, xh, r2, LSL #20     // put back the sign+exponent\n  BXCC    lr                      // return if we don't have to round\n\n  // We're rounding up, and we may also need to round to even.\n  ADDS    xl, xl, #1              // increment the mantissa to round up\n  ADC     xh, xh, #0              //   and propagate a carry if any\n  LSLS    r3, r3, #1              // set Z if we had an exact halfway case\n  BICEQ   xl, xl, #1              //   and round back to even if so\n  BX      lr\n\n  .size arm_fp_l2d, .-arm_fp_l2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2d.S", "line_start": 161, "line_end": 190}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:1", "text": "// Double-precision conversion from signed 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_l2d\n  .type arm_fp_l2d,%function\narm_fp_l2d:\n\n  // Start by finding out the sign of the input. This instruction sets up r2 to\n  // be 0xFFFFFFFF for a _positive_ number, and 0 for a negative number.\n  MVNS    r2, ah, ASR #31\n\n  // Now take the absolute value, by negating the input if it was negative\n  // (which we can tell from the flags set by that MVNS).\n  //\n  // Because r2 = 0 in the case where we need to negate, we can do the negation\n  // using SUB/SBC instead of the more obvious RSB/RSC, which saves having to\n  // use an extra instruction in Thumb to work around RSC not being available.\n  BNE     0f                    // if positive, branch round the negation\n  SUBS    al, r2, al\n  SBC     ah, r2, ah\n0:\n\n  // Now we just need to convert a positive integer to double, and combine it\n  // with the sign in r2.\n  //\n  // There are essentially three cases we need to separate. The leading bit of\n  // the integer is either in ah or al; if it's in ah, it makes a difference\n  // whether it's above bit 20, because that's the case where we must shift\n  // right and potentially round.\n  //\n  // Start by assuming the high word is nonzero; if we're wrong, we'll find out\n  // in a few instructions' time and be able to try again. So we find the\n  // position of the leading bit in ah, and turn it into a left-shift count\n  // that will move the leading bit up to where it belongs in the output\n  // double.\n  CLZ     r3, ah\n  SUBS    r3, r3, #11\n\n  // If that left-shift count is negative, we're going to have to shift the\n  // mantissa right instead of left, and maybe round it. Branch out of line for\n  // the code that handles that case.\n  BLO     l2d_shiftdown\n\n  // Shift ah left to bring the top word of the mantissa to the right place. By\n  // making this shift set the flags, we detect if ah was zero.\n  //\n  // We branch out of line if it _wasn't_ zero, on the theory that small input\n  // integers are likely to occur more often than large ones, so the small case\n  // should be the faster path. This is a bit of a compromise between large and\n  // small integer performance: if we wanted to prioritise small inputs above\n  // all else, we could have tested if ah=0 to begin with - but that would cost\n  // an extra instruction on the large-integer path, because it repeats work", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/l2d.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:3", "text": "// Now al contains the output mantissa, with the leading bit at the top. We\n  // must shift that up another 21 bits, and recombine it with an exponent\n  // derived from r3 (telling us how far we've already shifted up), and the\n  // sign derived from r2.\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  //\n  // But also, r2 is 0 for a negative number and -1 for a positive number. So\n  // we _set_ the sign bit on the output, by calculating the sign+exponent\n  // fields together as 0xc1d minus r3; then we shift r2 left and subtract it,\n  // which decrements the sign bit from 1 back to 0 if the number was positive\n  // (hence r2 had all bits set).\n  RSB     r3, r3, #0x1d           // 0x1d minus shift count\n  ADD     r3, r3, #0xc00          // 0xc1d minus shift count\n  SUB     r3, r3, r2, LSL #11     // combine with the sign\n  LSR     r2, ah, #11             // make top word of mantissa\n  LSL     al, ah, #21             // make bottom word of mantissa\n  ADD     ah, r2, r3, LSL #20     // combine top of mantissa with sign+exp\n  BX      lr\n\nl2d_highword:\n  // This is the branch for numbers big enough that ah != 0, but not big enough\n  // to need to shift downwards and round.\n  //\n  // r3 is the distance that we've already shifted ah left by. We'll need to\n  // shift al left by the same amount, and we'll also need to shift al right by\n  // 32 minus that, to put some of its bits at the bottom of ah. Start by\n  // working out the rightward shift distance, and make the full top word of\n  // the mantissa.\n  RSB     r12, r3, #32\n#if !__thumb__\n  ORR     ah, ah, al, LSR r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSR     r12, al, r12\n  ORR     ah, ah, r12\n#endif\n  // Shift al left as well, so that ah:al are now the full output mantissa,\n  // with its leading bit in bit 20 of ah.\n  LSLS    al, al, r3\n\n  // Calculate the sign and exponent, and recombine them with the mantissa.\n  // This is exactly the same method as above, except that the exponent is\n  // different, because this time r3 stores the offset between the original\n  // leading bit position and bit 20 of the mantissa, so that it's zero if the\n  // input is in the range [2^52,2^53), which would make the output exponent\n  // 0x433, or 0x432 after compensating for the leading mantissa bit.\n  RSB     r3, r3, #0x32           // 0x32 minus shift count\n  ADD     r3, r3, #0xc00          // 0xc32 minus shift count\n  SUB     r3, r3, r2, LSL #11     // combine with the sign\n  ADD     ah, ah, r3, LSL #20     // and with the top word of the mantissa\n  BX      lr\n\nl2d_shiftdown:\n  // This is the branch for numbers so big that the mantissa has to be shifted\n  // _right_, so that some of the mantissa is shifted off the bottom and the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/l2d.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:4", "text": "#endif\n  // Shift al left as well, so that ah:al are now the full output mantissa,\n  // with its leading bit in bit 20 of ah.\n  LSLS    al, al, r3\n\n  // Calculate the sign and exponent, and recombine them with the mantissa.\n  // This is exactly the same method as above, except that the exponent is\n  // different, because this time r3 stores the offset between the original\n  // leading bit position and bit 20 of the mantissa, so that it's zero if the\n  // input is in the range [2^52,2^53), which would make the output exponent\n  // 0x433, or 0x432 after compensating for the leading mantissa bit.\n  RSB     r3, r3, #0x32           // 0x32 minus shift count\n  ADD     r3, r3, #0xc00          // 0xc32 minus shift count\n  SUB     r3, r3, r2, LSL #11     // combine with the sign\n  ADD     ah, ah, r3, LSL #20     // and with the top word of the mantissa\n  BX      lr\n\nl2d_shiftdown:\n  // This is the branch for numbers so big that the mantissa has to be shifted\n  // _right_, so that some of the mantissa is shifted off the bottom and the\n  // number has to be rounded.\n  //\n  // r3 contains the shift count, but it's currently negative (it was\n  // calculated as a left shift). So it's in a good state to use for\n  // calculating the output exponent, and therefore we do that first, while\n  // it's convenient.\n  RSB     r12, r3, #0x32          // 0x32 minus shift count\n  ADD     r12, r12, #0xc00        // 0xc32 minus shift count\n  SUB     r2, r12, r2, LSL #11    // combine with the sign\n\n  // Shift the mantissa down to the right position, capturing the bits shifted\n  // off the bottom at the top of r3. We'll need to temporarily push a couple\n  // of extra registers for this part, because we need to calculate how far to\n  // shift ah and al right, but also how far to shift them left to get the bits\n  // shifted out of each one.\n  PUSH    {r4,lr}\n  RSB     r4, r3, #0              // r4 = right-shift count\n  RSB     lr, r4, #32             // lr = left-shift count\n  LSL     r12, ah, lr             // r12 = bits shifted out of ah\n  LSR     ah, ah, r4              // shift ah right to make its final value\n  LSL     r3, al, lr              // r3 = bits shifted out of al\n#if !__thumb__\n  ORRS    al, r12, al, LSR r4     // shift al right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    al, al, r4\n  ORR     al, al, r12\n#endif\n  POP     {r4,lr}\n\n  // Now ah:al contains the unrounded output mantissa; r2 contains its sign and\n  // exponent; and r3 contains the bits shifted off the bottom. Also, the\n  // single flag-setting shift in the sequence above was the one that shifted\n  // al right, so the carry flag contains the bit just off the bottom, i.e. the\n  // bit that tells us whether we need to round up.\n  //\n  // Recombine the mantissa with the sign and exponent, and then if C is clear,\n  // we don't need to round up, and can return.\n  ADD     ah, ah, r2, LSL #20     // put back the sign+exponent", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/l2d.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:fp/at32/l2d.S:5", "text": "LSL     r3, al, lr              // r3 = bits shifted out of al\n#if !__thumb__\n  ORRS    al, r12, al, LSR r4     // shift al right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    al, al, r4\n  ORR     al, al, r12\n#endif\n  POP     {r4,lr}\n\n  // Now ah:al contains the unrounded output mantissa; r2 contains its sign and\n  // exponent; and r3 contains the bits shifted off the bottom. Also, the\n  // single flag-setting shift in the sequence above was the one that shifted\n  // al right, so the carry flag contains the bit just off the bottom, i.e. the\n  // bit that tells us whether we need to round up.\n  //\n  // Recombine the mantissa with the sign and exponent, and then if C is clear,\n  // we don't need to round up, and can return.\n  ADD     ah, ah, r2, LSL #20     // put back the sign+exponent\n  BXCC    lr                      // return if we don't have to round\n\n  // We're rounding up, and we may also need to round to even.\n  ADDS    al, al, #1              // increment the mantissa to round up\n  ADC     ah, ah, #0              //   and propagate a carry if any\n  LSLS    r3, r3, #1              // set Z if we had an exact halfway case\n  BICEQ   al, al, #1              //   and round back to even if so\n  BX      lr\n\n  .size arm_fp_l2d, .-arm_fp_l2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/l2d.S", "line_start": 161, "line_end": 190}
{"id": "ARM-software/optimized-routines:fp/at32/l2f.S:1", "text": "// Single-precision conversion from signed and unsigned 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_l2f\n  .type arm_fp_l2f,%function\narm_fp_l2f:\n\n  // Isolate the input integer's sign bit in r2, and if the input is negative,\n  // negate it.\n  ANDS    r2, xh, #0x80000000\n  BPL     0f                    // if positive, skip the negation\n  RSBS    xl, xl, #0\n#if !__thumb__\n  RSC     xh, xh, #0\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     xh, xh\n  ADC     xh, xh, #0\n#endif\n0:\n\n  // Combine the sign in r2 with the FP exponent of 1. So r2 now holds the\n  // single-precision encoding of +1 or -1 as appropriate.\n  ORR     r2, r2, #0x3f800000\n\n  // Now we have a positive 64-bit integer in xh,xl, and a starting sign +\n  // exponent in r2.\n  //\n  // We also come here from the unsigned-integer conversion function below, so\n  // we must handle xh,xl having any possible values at all, even 2^63 or\n  // greater.\nl2f_normalise:\n\n  // Add 30 to the exponent in r2, so that it holds +2^30 or -2^30. The idea is\n  // that after we normalise the input integer into a FP mantissa with the\n  // topmost 1 in bit 23, adding that will increment by one more, so that this\n  // exponent will be correct if the input has its high bit in bit 31. We'll\n  // decrease the exponent if CLZ returns a positive value, and increment it by\n  // 32 if the high word is used.\n  //\n  // You might ask why we didn't set up r2 to have this value in the first\n  // place, by ORRing the sign bit with 0x4e800000 instead of 0x3f800000. The\n  // answer is because 0x4e800000 can't be represented in the immediate field\n  // of an AArch32 data-processing instruction, so we can't avoid using two\n  // instructions.\n  ADD     r2, r2, #30 << 23\n\n  // Start setting up r3 to be the exponent adjustment, and set xh to be the\n  // highest _nonzero_ word of the input. If xh = 0, set r3 = 0 and copy xl\n  // (the only nonzero input word) into xh; if xh != 0, set r3 = 32.\n  MOVS    r3, xh                // sets r3=0 if xh=0, testing at the same time\n  MOVNE   r3, #32               // if that didn't happen, set r3=32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/l2f.S:4", "text": "// last use of xh, but we still need xl later. So in little-endian mode,\n  // where xl _is_ r0, we must spend an extra instruction on saving it.\n  MOV     r12, xl\n#endif\n\n  // Recombine the mantissa (shifted down to the right position) with the sign\n  // and exponent in r2. Using ADC also rounds up if C is set.\n  ADC     r0, r2, xh, LSR #8\n\n  // If C was clear, we didn't round up, so we don't need to undo that by\n  // rounding to even. And if Z was clear, we're not rounding to even anyway.\n  // So in either case, we're done.\n  BXCC    lr\n  BXNE    lr\n\n  // The slow path: nothing in the top 32 bits of the mantissa ruled out having\n  // to round to even. Now we must check the rest of the mantissa bits in xl.\n  //\n  // This RSB instruction converts the previous exponent adjustment value (-31\n  // for smallest integer, +32 for largest) into a value from 0 (_largest_\n  // integer) to 63 (smallest). So if the integer occupied n bits of xh, then\n  // 32-n bits of xl ended up in the initial mantissa word, so shifting xl left\n  // by 32-n will catch precisely the bits of xl that didn't. And if the\n  // integer was entirely in xl, then this shift count will be >=32, so the\n  // left shift will throw away all of xl.\n  RSB     r3, r3, #32\n\n  // Shift xl to include just the shifted-off bits, setting Z if they're all\n  // zero. Then we know whether to round to even by clearing bit 0 of the\n  // output.\n#ifdef __BIG_ENDIAN__\n  LSLS    r12, xl, r3           // the low word is still in xl itself\n#else\n  LSLS    r12, r12, r3          // we moved it into r12 earlier\n#endif\n  BICEQ   r0, r0, #1\n\n  // And whether we did that or not, we're finished.\n  BX      lr\n\n  .size arm_fp_l2f, .-arm_fp_l2f\n\n  .globl arm_fp_ul2f\n  .type arm_fp_ul2f,%function\narm_fp_ul2f:\n  // Jump to l2f_normalise above, without negating the input, and having set up\n  // r2 unconditionally to indicate that a positive output is wanted.\n  MOV     r2, #0x3f800000\n  B       l2f_normalise\n\n  .size arm_fp_ul2f, .-arm_fp_ul2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2f.S", "line_start": 121, "line_end": 171}
{"id": "ARM-software/optimized-routines:fp/at32/l2f.S:5", "text": ".size arm_fp_l2f, .-arm_fp_l2f\n\n  .globl arm_fp_ul2f\n  .type arm_fp_ul2f,%function\narm_fp_ul2f:\n  // Jump to l2f_normalise above, without negating the input, and having set up\n  // r2 unconditionally to indicate that a positive output is wanted.\n  MOV     r2, #0x3f800000\n  B       l2f_normalise\n\n  .size arm_fp_ul2f, .-arm_fp_ul2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/l2f.S", "line_start": 161, "line_end": 171}
{"id": "ARM-software/optimized-routines:fp/at32/l2f.S:1", "text": "// Single-precision conversion from signed and unsigned 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_l2f\n  .type arm_fp_l2f,%function\narm_fp_l2f:\n\n  // Isolate the input integer's sign bit in r2, and if the input is negative,\n  // negate it.\n  ANDS    r2, ah, #0x80000000\n  BPL     0f                    // if positive, skip the negation\n  RSBS    al, al, #0\n#if !__thumb__\n  RSC     ah, ah, #0\n#else\n  // Thumb has no RSC, so simulate it by bitwise inversion and then ADC\n  MVN     ah, ah\n  ADC     ah, ah, #0\n#endif\n0:\n\n  // Combine the sign in r2 with the FP exponent of 1. So r2 now holds the\n  // single-precision encoding of +1 or -1 as appropriate.\n  ORR     r2, r2, #0x3f800000\n\n  // Now we have a positive 64-bit integer in ah,al, and a starting sign +\n  // exponent in r2.\n  //\n  // We also come here from the unsigned-integer conversion function below, so\n  // we must handle ah,al having any possible values at all, even 2^63 or\n  // greater.\nl2f_normalise:\n\n  // Add 30 to the exponent in r2, so that it holds +2^30 or -2^30. The idea is\n  // that after we normalise the input integer into a FP mantissa with the\n  // topmost 1 in bit 23, adding that will increment by one more, so that this\n  // exponent will be correct if the input has its high bit in bit 31. We'll\n  // decrease the exponent if CLZ returns a positive value, and increment it by\n  // 32 if the high word is used.\n  //\n  // You might ask why we didn't set up r2 to have this value in the first\n  // place, by ORRing the sign bit with 0x4e800000 instead of 0x3f800000. The\n  // answer is because 0x4e800000 can't be represented in the immediate field\n  // of an AArch32 data-processing instruction, so we can't avoid using two\n  // instructions.\n  ADD     r2, r2, #30 << 23\n\n  // Start setting up r3 to be the exponent adjustment, and set ah to be the\n  // highest _nonzero_ word of the input. If ah = 0, set r3 = 0 and copy al\n  // (the only nonzero input word) into ah; if ah != 0, set r3 = 32.\n  MOVS    r3, ah                // sets r3=0 if ah=0, testing at the same time\n  MOVNE   r3, #32               // if that didn't happen, set r3=32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2f.S", "license": "MIT", "commit": "f5486466b6a66ff76effbb382bedb375da91fd27", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f5486466b6a66ff76effbb382bedb375da91fd27/fp/at32/l2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/l2f.S:4", "text": "// last use of ah, but we still need al later. So in little-endian mode,\n  // where al _is_ r0, we must spend an extra instruction on saving it.\n  MOV     r12, al\n#endif\n\n  // Recombine the mantissa (shifted down to the right position) with the sign\n  // and exponent in r2. Using ADC also rounds up if C is set.\n  ADC     r0, r2, ah, LSR #8\n\n  // If C was clear, we didn't round up, so we don't need to undo that by\n  // rounding to even. And if Z was clear, we're not rounding to even anyway.\n  // So in either case, we're done.\n  BXCC    lr\n  BXNE    lr\n\n  // The slow path: nothing in the top 32 bits of the mantissa ruled out having\n  // to round to even. Now we must check the rest of the mantissa bits in al.\n  //\n  // This RSB instruction converts the previous exponent adjustment value (-31\n  // for smallest integer, +32 for largest) into a value from 0 (_largest_\n  // integer) to 63 (smallest). So if the integer occupied n bits of ah, then\n  // 32-n bits of al ended up in the initial mantissa word, so shifting al left\n  // by 32-n will catch precisely the bits of al that didn't. And if the\n  // integer was entirely in al, then this shift count will be >=32, so the\n  // left shift will throw away all of al.\n  RSB     r3, r3, #32\n\n  // Shift al to include just the shifted-off bits, setting Z if they're all\n  // zero. Then we know whether to round to even by clearing bit 0 of the\n  // output.\n#ifdef __BIG_ENDIAN__\n  LSLS    r12, al, r3           // the low word is still in al itself\n#else\n  LSLS    r12, r12, r3          // we moved it into r12 earlier\n#endif\n  BICEQ   r0, r0, #1\n\n  // And whether we did that or not, we're finished.\n  BX      lr\n\n  .size arm_fp_l2f, .-arm_fp_l2f\n\n  .globl arm_fp_ul2f\n  .type arm_fp_ul2f,%function\narm_fp_ul2f:\n  // Jump to l2f_normalise above, without negating the input, and having set up\n  // r2 unconditionally to indicate that a positive output is wanted.\n  MOV     r2, #0x3f800000\n  B       l2f_normalise\n\n  .size arm_fp_ul2f, .-arm_fp_ul2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2f.S", "license": "MIT", "commit": "f5486466b6a66ff76effbb382bedb375da91fd27", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f5486466b6a66ff76effbb382bedb375da91fd27/fp/at32/l2f.S", "line_start": 121, "line_end": 171}
{"id": "ARM-software/optimized-routines:fp/at32/l2f.S:1", "text": "// Single-precision conversion from signed and unsigned 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_l2f\n  .type arm_fp_l2f,%function\narm_fp_l2f:\n\n  // Isolate the input integer's sign bit in r2, and if the input is negative,\n  // negate it.\n  ANDS    r2, ah, #0x80000000\n  BPL     0f                    // if positive, skip the negation\n  RSBS    al, al, #0\n#if !__thumb__\n  RSC     ah, ah, #0\n#else\n  // Thumb has no RSC, so simulate it by handling the carry flag afterwards\n  RSB     ah, ah, #0\n  SUBCC   ah, ah, #1\n#endif\n0:\n\n  // Combine the sign in r2 with the FP exponent of 1. So r2 now holds the\n  // single-precision encoding of +1 or -1 as appropriate.\n  ORR     r2, r2, #0x3f800000\n\n  // Now we have a positive 64-bit integer in ah,al, and a starting sign +\n  // exponent in r2.\n  //\n  // We also come here from the unsigned-integer conversion function below, so\n  // we must handle ah,al having any possible values at all, even 2^63 or\n  // greater.\nl2f_normalise:\n\n  // Add 30 to the exponent in r2, so that it holds +2^30 or -2^30. The idea is\n  // that after we normalise the input integer into a FP mantissa with the\n  // topmost 1 in bit 23, adding that will increment by one more, so that this\n  // exponent will be correct if the input has its high bit in bit 31. We'll\n  // decrease the exponent if CLZ returns a positive value, and increment it by\n  // 32 if the high word is used.\n  //\n  // You might ask why we didn't set up r2 to have this value in the first\n  // place, by ORRing the sign bit with 0x4e800000 instead of 0x3f800000. The\n  // answer is because 0x4e800000 can't be represented in the immediate field\n  // of an AArch32 data-processing instruction, so we can't avoid using two\n  // instructions.\n  ADD     r2, r2, #30 << 23\n\n  // Start setting up r3 to be the exponent adjustment, and set ah to be the\n  // highest _nonzero_ word of the input. If ah = 0, set r3 = 0 and copy al\n  // (the only nonzero input word) into ah; if ah != 0, set r3 = 32.\n  MOVS    r3, ah                // sets r3=0 if ah=0, testing at the same time\n  MOVNE   r3, #32               // if that didn't happen, set r3=32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/l2f.S", "license": "MIT", "commit": "6b2ca8ac033ddbdfb01aed791d06d5a7c8dafc14", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6b2ca8ac033ddbdfb01aed791d06d5a7c8dafc14/fp/at32/l2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/ui2d.S:1", "text": "// Double-precision conversion from unsigned 32-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_ui2d\n  .type arm_fp_ui2d,%function\narm_fp_ui2d:\n\n  // Shift the leading bit of the input to the top of xh. In the\n  // process, we detect a zero input, and branch out of line for it.\n  CLZ     r3, r0\n  LSLS    xh, r0, r3\n  BEQ     ui2d_zero\n\n  // Use the shift count in r3 to calculate the output exponent.\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  RSB     r3, r3, #0x1d         // 0x1d minus shift count\n  ADD     r3, r3, #0x400        // 0x41d minus shift count\n  LSL     r2, r3, #20           // r2 is now shifted exponent\n\n  // Shift the mantissa left and right to get the parts that go in xl and xh,\n  // and combine with the exponent we just computed.\n  LSL     xl, xh, #21           // low bits of mantissa\n  ADD     xh, r2, xh, LSR #11   // high bits of mantissa + exponent\n  BX      lr\n\nui2d_zero:\n  // We come here if the input was zero. We've just set xh to 0, so we\n  // only need to set xl to 0 too and return.\n  MOV     xl, #0\n  BX      lr\n\n  .size arm_fp_ui2d, .-arm_fp_ui2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ui2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ui2d.S", "line_start": 1, "line_end": 44}
{"id": "ARM-software/optimized-routines:fp/at32/ui2d.S:1", "text": "// Double-precision conversion from unsigned 32-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_ui2d\n  .type arm_fp_ui2d,%function\narm_fp_ui2d:\n\n  // Shift the leading bit of the input to the top of ah. In the\n  // process, we detect a zero input, and branch out of line for it.\n  CLZ     r3, r0\n  LSLS    ah, r0, r3\n  BEQ     ui2d_zero\n\n  // Use the shift count in r3 to calculate the output exponent.\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  RSB     r3, r3, #0x1d         // 0x1d minus shift count\n  ADD     r3, r3, #0x400        // 0x41d minus shift count\n  LSL     r2, r3, #20           // r2 is now shifted exponent\n\n  // Shift the mantissa left and right to get the parts that go in al and ah,\n  // and combine with the exponent we just computed.\n  LSL     al, ah, #21           // low bits of mantissa\n  ADD     ah, r2, ah, LSR #11   // high bits of mantissa + exponent\n  BX      lr\n\nui2d_zero:\n  // We come here if the input was zero. We've just set ah to 0, so we\n  // only need to set al to 0 too and return.\n  MOV     al, #0\n  BX      lr\n\n  .size arm_fp_ui2d, .-arm_fp_ui2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ui2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/ui2d.S", "line_start": 1, "line_end": 44}
{"id": "ARM-software/optimized-routines:fp/at32/ui2f.S:1", "text": "// Single-precision conversion from unsigned 32-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_ui2f\n  .type arm_fp_ui2f,%function\narm_fp_ui2f:\n\n  // Find the highest set bit of the input, and shift it up to the top bit. r3\n  // contains the amount we shifted by, and r2 the shifted value.\n  CLZ     r3, r0\n  LSLS    r2, r0, r3\n\n  // Convert the shift distance into the exponent of the output float. The\n  // exponent for an integer with bit 31 set should be 0x7f (the IEEE exponent\n  // bias) plus 31, which is 0x9e. Here we reduce that by 1, because when we\n  // add the mantissa to it, the leading mantissa bit will increment it.\n  RSB     r3, r3, #0x9d\n\n  // A side effect of the LSLS above was to set the Z flag if the input integer\n  // was actually zero. In that situation, we can just return immediately,\n  // because r0 still _contains_ the input integer, which has the same\n  // representation as the floating-point +0 that we should return.\n#if !__thumb__\n  BXEQ    lr\n#else\n  // In Thumb, we do the conditional return by branching to a return\n  // instruction later in the function. This costs more time in the case where\n  // the return is taken, but saves an IT in the case where it's not, and we\n  // assume that nonzero integers are converted to FP more often than zero is.\n  // (This also improves the _worst-case_ running time, because the nonzero\n  // code path is the limiting factor.)\n  BEQ     ui2f_return\n#endif\n\n  // Shift the exponent up to its final bit position.\n  LSLS    r1, r3, #23\n\n  // Recombine the mantissa with the exponent, and round. This is done\n  // differently between Arm and Thumb.\n#if !__thumb__\n  // Arm rounding sequence: shift the round bit off the top of r2 into C, and\n  // simultaneously set Z if the lower-down bits are all zero.\n  LSLS    r3, r2, #25\n  // Recombine mantissa with exponent, using ADC so that this also adds 1 if\n  // we're rounding up.\n  ADC     r0, r1, r2, LSR #8\n  // If C was clear, we can't possibly need to round to even, so return.\n  BXCC    lr\n  // Now we've definitely rounded up, and if Z is set, round to even.\n  BICEQ   r0, r0, #1\n  BX      lr\n#else\n  // Thumb rounding sequence: we do things in a slightly different order, by\n  // recombining first with plain ADD, and _then_ testing the round bit. On", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ui2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ui2f.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/ui2f.S:2", "text": "// Shift the exponent up to its final bit position.\n  LSLS    r1, r3, #23\n\n  // Recombine the mantissa with the exponent, and round. This is done\n  // differently between Arm and Thumb.\n#if !__thumb__\n  // Arm rounding sequence: shift the round bit off the top of r2 into C, and\n  // simultaneously set Z if the lower-down bits are all zero.\n  LSLS    r3, r2, #25\n  // Recombine mantissa with exponent, using ADC so that this also adds 1 if\n  // we're rounding up.\n  ADC     r0, r1, r2, LSR #8\n  // If C was clear, we can't possibly need to round to even, so return.\n  BXCC    lr\n  // Now we've definitely rounded up, and if Z is set, round to even.\n  BICEQ   r0, r0, #1\n  BX      lr\n#else\n  // Thumb rounding sequence: we do things in a slightly different order, by\n  // recombining first with plain ADD, and _then_ testing the round bit. On\n  // simple M-profile CPUs like Cortex-M3, this avoids the IT instruction\n  // (inserted before BXCC lr) costing a cycle, because it immediately follows\n  // a 16-bit LSLS instruction, so the CPU had already fetched it.\n  //\n  // So we save a cycle in the case where we don't round up, at the cost of a\n  // cycle in the case where we do (requiring a separate ADD instruction after\n  // the BXCC lr isn't taken). We expect that this is a good trade, on the\n  // theory that _most_ integers converted into floating point are not large\n  // enough to need rounding at all, so all the exact cases _and_ half the\n  // inexact ones will benefit from the saving.\n  ADD     r0, r1, r2, LSR #8    // r0 is now exp+mant, unrounded\n  LSLS.N  r3, r2, #25           // .N to make sure it's assembled as 16-bit\n  BXCC    lr\n  // Now if we didn't take the return, we must definitely round up, and\n  // conditionally round to even.\n  ADD     r0, r0, #1\n  BICEQ   r0, r0, #1\nui2f_return:                    // label we branch to from the 0 case above\n  BX      lr\n#endif\n\n  .size arm_fp_ui2f, .-arm_fp_ui2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ui2f.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ui2f.S", "line_start": 41, "line_end": 82}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:1", "text": "// Double-precision conversion from unsigned 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_ul2d\n  .type arm_fp_ul2d,%function\narm_fp_ul2d:\n\n  // There are essentially three cases we need to separate. The leading bit of\n  // the integer is either in xh or xl; if it's in xh, it makes a difference\n  // whether it's above bit 20, because that's the case where we must shift\n  // right and potentially round.\n  //\n  // Start by assuming the high word is nonzero; if we're wrong, we'll find out\n  // in a few instructions' time and be able to try again. So we find the\n  // position of the leading bit in xh, and turn it into a left-shift count\n  // that will move the leading bit up to where it belongs in the output\n  // double.\n  CLZ     r3, xh\n  SUBS    r3, r3, #11\n\n  // If that left-shift count is negative, we're going to have to shift the\n  // mantissa right instead of left, and maybe round it. Branch out of line for\n  // the code that handles that case.\n  BLO     ul2d_shiftdown\n\n  // Shift xh left to bring the top word of the mantissa to the right place. By\n  // making this shift set the flags, we detect if xh was zero.\n  //\n  // We branch out of line if it _wasn't_ zero, on the theory that small input\n  // integers are likely to occur more often than large ones, so the small case\n  // should be the faster path. This is a bit of a compromise between large and\n  // small integer performance: if we wanted to prioritise small inputs above\n  // all else, we could have tested if xh=0 to begin with - but that would cost\n  // an extra instruction on the large-integer path, because it repeats work\n  // that this instruction can do in passing.\n  LSLS    xh, xh, r3\n  BNE     ul2d_highword\n\n  // Now we've found out that xh=0, we need to repeat the CLZ instruction on\n  // xl. The simplest thing is to shift xl up by a variable distance to put its\n  // leading bit at the top; then we can do immediate shifts to move it up\n  // further to the top of the double-precision mantissa. (Otherwise you'd have\n  // to make a second shift count by subtracting from 32, using more registers\n  // and requiring more register-controlled shifts, especially awkward in\n  // Thumb.)\n  //\n  // There may not _be_ a leading bit in xl at all (just as there turned out\n  // not to have been one in xh, if we're on this path). In that case the input\n  // integer was 0, and so we should return double-precision 0, which\n  // conveniently has the same representation (xh=xl=0 already).\n  CLZ     r3, xl                  // decide how far to shift up\n  LSLS    xh, xl, r3              // do the shift, also checking if xl = 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ul2d.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:2", "text": "// all else, we could have tested if xh=0 to begin with - but that would cost\n  // an extra instruction on the large-integer path, because it repeats work\n  // that this instruction can do in passing.\n  LSLS    xh, xh, r3\n  BNE     ul2d_highword\n\n  // Now we've found out that xh=0, we need to repeat the CLZ instruction on\n  // xl. The simplest thing is to shift xl up by a variable distance to put its\n  // leading bit at the top; then we can do immediate shifts to move it up\n  // further to the top of the double-precision mantissa. (Otherwise you'd have\n  // to make a second shift count by subtracting from 32, using more registers\n  // and requiring more register-controlled shifts, especially awkward in\n  // Thumb.)\n  //\n  // There may not _be_ a leading bit in xl at all (just as there turned out\n  // not to have been one in xh, if we're on this path). In that case the input\n  // integer was 0, and so we should return double-precision 0, which\n  // conveniently has the same representation (xh=xl=0 already).\n  CLZ     r3, xl                  // decide how far to shift up\n  LSLS    xh, xl, r3              // do the shift, also checking if xl = 0\n  BXEQ    lr                      // if xl = 0, return zero immediately\n\n  // Now xl contains the output mantissa, with the leading bit at the top. We\n  // must shift that up another 21 bits, and recombine it with an exponent\n  // derived from r3 (telling us how far we've already shifted up).\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  RSB     r3, r3, #0x1d           // 0x1d minus shift count\n  ADD     r3, r3, #0x400          // 0x41d minus shift count\n  LSR     r2, xh, #11             // make top word of mantissa\n  LSL     xl, xh, #21             // make bottom word of mantissa\n  ADD     xh, r2, r3, LSL #20     // and combine it with exponent\n  BX      lr\n\nul2d_highword:\n  // This is the branch for numbers big enough that xh != 0, but not big enough\n  // to need to shift downwards and round.\n  //\n  // r3 is the distance that we've already shifted xh left by. We'll need to\n  // shift xl left by the same amount, and we'll also need to shift xl right by\n  // 32 minus that, to put some of its bits at the bottom of xh.\n  RSB     r12, r3, #32\n#if !__thumb__\n  ORR     xh, xh, xl, LSR r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSR     r12, xl, r12\n  ORR     xh, xh, r12\n#endif\n  // Shift xl left as well, so that xh:xl are now the full output mantissa,\n  // with its leading bit in bit 20 of xh.\n  LSLS    xl, xl, r3\n\n  // Calculate the exponent, and recombine it with the mantissa. This is\n  // exactly the same method as above, except that the exponent is different,\n  // because this time r3 stores the offset between the original leading bit", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ul2d.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:3", "text": "//\n  // r3 is the distance that we've already shifted xh left by. We'll need to\n  // shift xl left by the same amount, and we'll also need to shift xl right by\n  // 32 minus that, to put some of its bits at the bottom of xh.\n  RSB     r12, r3, #32\n#if !__thumb__\n  ORR     xh, xh, xl, LSR r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSR     r12, xl, r12\n  ORR     xh, xh, r12\n#endif\n  // Shift xl left as well, so that xh:xl are now the full output mantissa,\n  // with its leading bit in bit 20 of xh.\n  LSLS    xl, xl, r3\n\n  // Calculate the exponent, and recombine it with the mantissa. This is\n  // exactly the same method as above, except that the exponent is different,\n  // because this time r3 stores the offset between the original leading bit\n  // position and bit 20 of the mantissa, so that it's zero if the input is in\n  // the range [2^52,2^53), which would make the output exponent 0x433, or\n  // 0x432 after compensating for the leading mantissa bit.\n  RSB     r3, r3, #0x32           // 0x32 minus shift count\n  ADD     r3, r3, #0x400          // 0x432 minus shift count\n  ADD     xh, xh, r3, LSL #20     // combine with the top word of the mantissa\n  BX      lr\n\nul2d_shiftdown:\n  // This is the branch for numbers so big that the mantissa has to be shifted\n  // _right_, so that some of the mantissa is shifted off the bottom and the\n  // number has to be rounded.\n  //\n  // r3 contains the shift count, but it's currently negative (it was\n  // calculated as a left shift). So it's in a good state to use for\n  // calculating the output exponent, and therefore we do that first, while\n  // it's convenient.\n  RSB     r2, r3, #0x32           // 0x32 minus shift count\n  ADD     r2, r2, #0x400          // 0x432 minus shift count\n\n  // Shift the mantissa down to the right position, capturing the bits shifted\n  // off the bottom at the top of r3. We'll need to temporarily push a couple\n  // of extra registers for this part, because we need to calculate how far to\n  // shift xh and xl right, but also how far to shift them left to get the bits\n  // shifted out of each one.\n  PUSH    {r4,lr}\n  RSB     r4, r3, #0              // r4 = right-shift count\n  RSB     lr, r4, #32             // lr = left-shift count\n  LSL     r12, xh, lr             // r12 = bits shifted out of xh\n  LSR     xh, xh, r4              // shift xh right to make its final value\n  LSL     r3, xl, lr              // r3 = bits shifted out of xl\n#if !__thumb__\n  ORRS    xl, r12, xl, LSR r4     // shift xl right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    xl, xl, r4\n  ORR     xl, xl, r12\n#endif\n  POP     {r4,lr}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ul2d.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:4", "text": "// Shift the mantissa down to the right position, capturing the bits shifted\n  // off the bottom at the top of r3. We'll need to temporarily push a couple\n  // of extra registers for this part, because we need to calculate how far to\n  // shift xh and xl right, but also how far to shift them left to get the bits\n  // shifted out of each one.\n  PUSH    {r4,lr}\n  RSB     r4, r3, #0              // r4 = right-shift count\n  RSB     lr, r4, #32             // lr = left-shift count\n  LSL     r12, xh, lr             // r12 = bits shifted out of xh\n  LSR     xh, xh, r4              // shift xh right to make its final value\n  LSL     r3, xl, lr              // r3 = bits shifted out of xl\n#if !__thumb__\n  ORRS    xl, r12, xl, LSR r4     // shift xl right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    xl, xl, r4\n  ORR     xl, xl, r12\n#endif\n  POP     {r4,lr}\n\n  // Now xh:xl contains the unrounded output mantissa; r2 contains its\n  // exponent; and r3 contains the bits shifted off the bottom. Also, the\n  // single flag-setting shift in the sequence above was the one that shifted\n  // xl right, so the carry flag contains the bit just off the bottom, i.e. the\n  // bit that tells us whether we need to round up.\n  //\n  // Recombine the mantissa with the exponent, and then if C is clear, we don't\n  // need to round up, and can return.\n  ADD     xh, xh, r2, LSL #20     // put back the exponent\n  BXCC    lr                      // return if we don't have to round\n\n  // We're rounding up, and we may also need to round to even.\n  ADDS    xl, xl, #1              // increment the mantissa to round up\n  ADC     xh, xh, #0              //   and propagate a carry if any\n  LSLS    r3, r3, #1              // set Z if we had an exact halfway case\n  BICEQ   xl, xl, #1              //   and round back to even if so\n  BX      lr\n\n  .size arm_fp_ul2d, .-arm_fp_ul2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/fp/at32/ul2d.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:1", "text": "// Double-precision conversion from unsigned 64-bit integers.\n//\n// Copyright (c) 1994-1998,2025, Arm Limited.\n// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n\n#include \"endian.h\"\n\n  .syntax unified\n  .text\n  .p2align 2\n\n  .globl arm_fp_ul2d\n  .type arm_fp_ul2d,%function\narm_fp_ul2d:\n\n  // There are essentially three cases we need to separate. The leading bit of\n  // the integer is either in ah or al; if it's in ah, it makes a difference\n  // whether it's above bit 20, because that's the case where we must shift\n  // right and potentially round.\n  //\n  // Start by assuming the high word is nonzero; if we're wrong, we'll find out\n  // in a few instructions' time and be able to try again. So we find the\n  // position of the leading bit in ah, and turn it into a left-shift count\n  // that will move the leading bit up to where it belongs in the output\n  // double.\n  CLZ     r3, ah\n  SUBS    r3, r3, #11\n\n  // If that left-shift count is negative, we're going to have to shift the\n  // mantissa right instead of left, and maybe round it. Branch out of line for\n  // the code that handles that case.\n  BLO     ul2d_shiftdown\n\n  // Shift ah left to bring the top word of the mantissa to the right place. By\n  // making this shift set the flags, we detect if ah was zero.\n  //\n  // We branch out of line if it _wasn't_ zero, on the theory that small input\n  // integers are likely to occur more often than large ones, so the small case\n  // should be the faster path. This is a bit of a compromise between large and\n  // small integer performance: if we wanted to prioritise small inputs above\n  // all else, we could have tested if ah=0 to begin with - but that would cost\n  // an extra instruction on the large-integer path, because it repeats work\n  // that this instruction can do in passing.\n  LSLS    ah, ah, r3\n  BNE     ul2d_highword\n\n  // Now we've found out that ah=0, we need to repeat the CLZ instruction on\n  // al. The simplest thing is to shift al up by a variable distance to put its\n  // leading bit at the top; then we can do immediate shifts to move it up\n  // further to the top of the double-precision mantissa. (Otherwise you'd have\n  // to make a second shift count by subtracting from 32, using more registers\n  // and requiring more register-controlled shifts, especially awkward in\n  // Thumb.)\n  //\n  // There may not _be_ a leading bit in al at all (just as there turned out\n  // not to have been one in ah, if we're on this path). In that case the input\n  // integer was 0, and so we should return double-precision 0, which\n  // conveniently has the same representation (ah=al=0 already).\n  CLZ     r3, al                  // decide how far to shift up\n  LSLS    ah, al, r3              // do the shift, also checking if al = 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/ul2d.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:2", "text": "// all else, we could have tested if ah=0 to begin with - but that would cost\n  // an extra instruction on the large-integer path, because it repeats work\n  // that this instruction can do in passing.\n  LSLS    ah, ah, r3\n  BNE     ul2d_highword\n\n  // Now we've found out that ah=0, we need to repeat the CLZ instruction on\n  // al. The simplest thing is to shift al up by a variable distance to put its\n  // leading bit at the top; then we can do immediate shifts to move it up\n  // further to the top of the double-precision mantissa. (Otherwise you'd have\n  // to make a second shift count by subtracting from 32, using more registers\n  // and requiring more register-controlled shifts, especially awkward in\n  // Thumb.)\n  //\n  // There may not _be_ a leading bit in al at all (just as there turned out\n  // not to have been one in ah, if we're on this path). In that case the input\n  // integer was 0, and so we should return double-precision 0, which\n  // conveniently has the same representation (ah=al=0 already).\n  CLZ     r3, al                  // decide how far to shift up\n  LSLS    ah, al, r3              // do the shift, also checking if al = 0\n  BXEQ    lr                      // if al = 0, return zero immediately\n\n  // Now al contains the output mantissa, with the leading bit at the top. We\n  // must shift that up another 21 bits, and recombine it with an exponent\n  // derived from r3 (telling us how far we've already shifted up).\n  //\n  // If r3=0 then the input value was in the range [2^31,2^32), so its exponent\n  // in double precision should be 0x41e. We want to reduce that by 1 so that\n  // the leading bit of the mantissa will increment it when we add it in. So\n  // the exponent should be 0x41d minus r3.\n  RSB     r3, r3, #0x1d           // 0x1d minus shift count\n  ADD     r3, r3, #0x400          // 0x41d minus shift count\n  LSR     r2, ah, #11             // make top word of mantissa\n  LSL     al, ah, #21             // make bottom word of mantissa\n  ADD     ah, r2, r3, LSL #20     // and combine it with exponent\n  BX      lr\n\nul2d_highword:\n  // This is the branch for numbers big enough that ah != 0, but not big enough\n  // to need to shift downwards and round.\n  //\n  // r3 is the distance that we've already shifted ah left by. We'll need to\n  // shift al left by the same amount, and we'll also need to shift al right by\n  // 32 minus that, to put some of its bits at the bottom of ah.\n  RSB     r12, r3, #32\n#if !__thumb__\n  ORR     ah, ah, al, LSR r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSR     r12, al, r12\n  ORR     ah, ah, r12\n#endif\n  // Shift al left as well, so that ah:al are now the full output mantissa,\n  // with its leading bit in bit 20 of ah.\n  LSLS    al, al, r3\n\n  // Calculate the exponent, and recombine it with the mantissa. This is\n  // exactly the same method as above, except that the exponent is different,\n  // because this time r3 stores the offset between the original leading bit", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/ul2d.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:3", "text": "//\n  // r3 is the distance that we've already shifted ah left by. We'll need to\n  // shift al left by the same amount, and we'll also need to shift al right by\n  // 32 minus that, to put some of its bits at the bottom of ah.\n  RSB     r12, r3, #32\n#if !__thumb__\n  ORR     ah, ah, al, LSR r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSR     r12, al, r12\n  ORR     ah, ah, r12\n#endif\n  // Shift al left as well, so that ah:al are now the full output mantissa,\n  // with its leading bit in bit 20 of ah.\n  LSLS    al, al, r3\n\n  // Calculate the exponent, and recombine it with the mantissa. This is\n  // exactly the same method as above, except that the exponent is different,\n  // because this time r3 stores the offset between the original leading bit\n  // position and bit 20 of the mantissa, so that it's zero if the input is in\n  // the range [2^52,2^53), which would make the output exponent 0x433, or\n  // 0x432 after compensating for the leading mantissa bit.\n  RSB     r3, r3, #0x32           // 0x32 minus shift count\n  ADD     r3, r3, #0x400          // 0x432 minus shift count\n  ADD     ah, ah, r3, LSL #20     // combine with the top word of the mantissa\n  BX      lr\n\nul2d_shiftdown:\n  // This is the branch for numbers so big that the mantissa has to be shifted\n  // _right_, so that some of the mantissa is shifted off the bottom and the\n  // number has to be rounded.\n  //\n  // r3 contains the shift count, but it's currently negative (it was\n  // calculated as a left shift). So it's in a good state to use for\n  // calculating the output exponent, and therefore we do that first, while\n  // it's convenient.\n  RSB     r2, r3, #0x32           // 0x32 minus shift count\n  ADD     r2, r2, #0x400          // 0x432 minus shift count\n\n  // Shift the mantissa down to the right position, capturing the bits shifted\n  // off the bottom at the top of r3. We'll need to temporarily push a couple\n  // of extra registers for this part, because we need to calculate how far to\n  // shift ah and al right, but also how far to shift them left to get the bits\n  // shifted out of each one.\n  PUSH    {r4,lr}\n  RSB     r4, r3, #0              // r4 = right-shift count\n  RSB     lr, r4, #32             // lr = left-shift count\n  LSL     r12, ah, lr             // r12 = bits shifted out of ah\n  LSR     ah, ah, r4              // shift ah right to make its final value\n  LSL     r3, al, lr              // r3 = bits shifted out of al\n#if !__thumb__\n  ORRS    al, r12, al, LSR r4     // shift al right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    al, al, r4\n  ORR     al, al, r12\n#endif\n  POP     {r4,lr}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/ul2d.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:fp/at32/ul2d.S:4", "text": "// Shift the mantissa down to the right position, capturing the bits shifted\n  // off the bottom at the top of r3. We'll need to temporarily push a couple\n  // of extra registers for this part, because we need to calculate how far to\n  // shift ah and al right, but also how far to shift them left to get the bits\n  // shifted out of each one.\n  PUSH    {r4,lr}\n  RSB     r4, r3, #0              // r4 = right-shift count\n  RSB     lr, r4, #32             // lr = left-shift count\n  LSL     r12, ah, lr             // r12 = bits shifted out of ah\n  LSR     ah, ah, r4              // shift ah right to make its final value\n  LSL     r3, al, lr              // r3 = bits shifted out of al\n#if !__thumb__\n  ORRS    al, r12, al, LSR r4     // shift al right and combine with r12\n#else\n  // In Thumb we have to do the register-controlled shift and the OR in\n  // separate instructions.\n  LSRS    al, al, r4\n  ORR     al, al, r12\n#endif\n  POP     {r4,lr}\n\n  // Now ah:al contains the unrounded output mantissa; r2 contains its\n  // exponent; and r3 contains the bits shifted off the bottom. Also, the\n  // single flag-setting shift in the sequence above was the one that shifted\n  // al right, so the carry flag contains the bit just off the bottom, i.e. the\n  // bit that tells us whether we need to round up.\n  //\n  // Recombine the mantissa with the exponent, and then if C is clear, we don't\n  // need to round up, and can return.\n  ADD     ah, ah, r2, LSL #20     // put back the exponent\n  BXCC    lr                      // return if we don't have to round\n\n  // We're rounding up, and we may also need to round to even.\n  ADDS    al, al, #1              // increment the mantissa to round up\n  ADC     ah, ah, #0              //   and propagate a carry if any\n  LSLS    r3, r3, #1              // set Z if we had an exact halfway case\n  BICEQ   al, al, #1              //   and round back to even if so\n  BX      lr\n\n  .size arm_fp_ul2d, .-arm_fp_ul2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "fp/at32/ul2d.S", "license": "MIT", "commit": "a37f3b08989bcbaf2ca688c54c172a486de42133", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a37f3b08989bcbaf2ca688c54c172a486de42133/fp/at32/ul2d.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:1", "text": "/*\n * __mtag_tag_region - tag memory\n *\n * Copyright (c) 2021-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_region)\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */\nL(set_long):\n\tcmp\tcount, 160\n\tb.lo\tL(no_zva)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/__mtag_tag_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:2", "text": "stg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */\nL(set_long):\n\tcmp\tcount, 160\n\tb.lo\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tgva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tst2g\tdstin, [dst, 32]\n\tst2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/__mtag_tag_region.S", "line_start": 41, "line_end": 97}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:3", "text": "st2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tst2g\tdstin, [dst, 32]\n\tst2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/__mtag_tag_region.S", "line_start": 81, "line_end": 97}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:1", "text": "/*\n * __mtag_tag_region - tag memory\n *\n * Copyright (c) 2021-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/__mtag_tag_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:2", "text": "lsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */\nL(set_long):\n\tcmp\tcount, 160\n\tb.lo\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tgva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tst2g\tdstin, [dst, 32]\n\tst2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/__mtag_tag_region.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:3", "text": "subs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tst2g\tdstin, [dst, 32]\n\tst2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tst2g\tdstin, [dstend, -64]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/__mtag_tag_region.S", "line_start": 81, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:1", "text": "/*\n * __mtag_tag_region - tag memory\n *\n * Copyright (c) 2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/__mtag_tag_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:1", "text": "/*\n * __mtag_tag_region - tag memory\n *\n * Copyright (c) 2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/__mtag_tag_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_region.S:1", "text": "/*\n * __mtag_tag_region - tag memory\n *\n * Copyright (c) 2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstg\tdstin, [dstin]\n\tstg\tdstin, [tmp]\n\tstg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tst2g\tdstin, [dstin]\n\tst2g\tdstin, [dstin, 32]\n\tst2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_region.S", "license": "MIT", "commit": "f8d6aecefff23e1d5c4f8df128b545db43a49a00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f8d6aecefff23e1d5c4f8df128b545db43a49a00/string/aarch64/__mtag_tag_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:1", "text": "/*\n * __mtag_tag_zero_region - tag memory and fill it with zero bytes\n *\n * Copyright (c) 2021-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_zero_region)\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */\nL(set_long):\n\tcmp\tcount, 160\n\tb.lo\tL(no_zva)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/__mtag_tag_zero_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:2", "text": "stzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */\nL(set_long):\n\tcmp\tcount, 160\n\tb.lo\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tgzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tstz2g\tdstin, [dst, 32]\n\tstz2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_zero_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/__mtag_tag_zero_region.S", "line_start": 41, "line_end": 97}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:3", "text": "stz2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tstz2g\tdstin, [dst, 32]\n\tstz2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_zero_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/__mtag_tag_zero_region.S", "line_start": 81, "line_end": 97}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:1", "text": "/*\n * __mtag_tag_zero_region - tag memory and fill it with zero bytes\n *\n * Copyright (c) 2021-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_zero_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/__mtag_tag_zero_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:2", "text": "lsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */\nL(set_long):\n\tcmp\tcount, 160\n\tb.lo\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tgzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tstz2g\tdstin, [dst, 32]\n\tstz2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_zero_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/__mtag_tag_zero_region.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:3", "text": "subs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tdst, dstin, 32\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64\t/* Adjust count for loop.  */\nL(no_zva_loop):\n\tstz2g\tdstin, [dst, 32]\n\tstz2g\tdstin, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstz2g\tdstin, [dstend, -64]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\nEND (__mtag_tag_zero_region)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/__mtag_tag_zero_region.S", "line_start": 81, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:1", "text": "/*\n * __mtag_tag_zero_region - tag memory and fill it with zero bytes\n *\n * Copyright (c) 2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_zero_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/__mtag_tag_zero_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:1", "text": "/*\n * __mtag_tag_zero_region - tag memory and fill it with zero bytes\n *\n * Copyright (c) 2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_zero_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/__mtag_tag_zero_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/__mtag_tag_zero_region.S:1", "text": "/*\n * __mtag_tag_zero_region - tag memory and fill it with zero bytes\n *\n * Copyright (c) 2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, MTE, LP64 ABI.\n *\n * Interface contract:\n * Address is 16 byte aligned and size is multiple of 16.\n * Returns the passed pointer.\n * The memory region may remain untagged if tagging is not enabled.\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_MEMORY_TAGGING\n\n#define dstin\tx0\n#define count\tx1\n#define dst\tx2\n#define dstend\tx3\n#define tmp\tx4\n#define zva_val\tx4\n\nENTRY (__mtag_tag_zero_region)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\n\ttbnz\tcount, 6, L(set96)\n\n\t/* Set 0, 16, 32, or 48 bytes.  */\n\tlsr\ttmp, count, 5\n\tadd\ttmp, dstin, tmp, lsl 4\n\tcbz     count, L(end)\n\tstzg\tdstin, [dstin]\n\tstzg\tdstin, [tmp]\n\tstzg\tdstin, [dstend, -16]\nL(end):\n\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstz2g\tdstin, [dstin]\n\tstz2g\tdstin, [dstin, 32]\n\tstz2g\tdstin, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Size is > 96 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/__mtag_tag_zero_region.S", "license": "MIT", "commit": "fcad5b82714f408d1c83bfdeb50578c6ca1ab20b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fcad5b82714f408d1c83bfdeb50578c6ca1ab20b/string/aarch64/__mtag_tag_zero_region.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\nEND (__memchr_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/memchr-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/memcmp-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/memcmp-sve.S", "line_start": 1, "line_end": 46}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strchr-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strchr-sve.S:2", "text": "orrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\nEND (FUNC)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strchr-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strchr-sve.S", "line_start": 41, "line_end": 67}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strcmp-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strcmp-sve.S", "line_start": 1, "line_end": 55}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strcpy-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strcpy-sve.S:2", "text": "/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\nEND (FUNC)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strcpy-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strcpy-sve.S", "line_start": 41, "line_end": 67}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strlen-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strlen-sve.S", "line_start": 1, "line_end": 52}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strncmp-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strncmp-sve.S:2", "text": "/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\nEND (__strncmp_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strncmp-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strncmp-sve.S", "line_start": 41, "line_end": 64}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strnlen-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strnlen-sve.S:2", "text": "ldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x1\n\tret\n\nEND (__strnlen_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strnlen-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strnlen-sve.S", "line_start": 41, "line_end": 70}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strrchr-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/experimental/strrchr-sve.S:2", "text": "mov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\nEND (__strrchr_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/experimental/strrchr-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/experimental/strrchr-sve.S", "line_start": 41, "line_end": 81}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tcmp\tcntin, synd, lsr 2\n\tadd\tresult, srcin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:2", "text": "ENTRY (__memchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tcmp\tcntin, synd, lsr 2\n\tadd\tresult, srcin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\n\t.p2align 3\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 17\n\tsubs\tcntrem, cntin, tmp\n\tb.lo\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\ttbz\tcntrem, 4, L(loop32_2)\n\tsub\tsrc, src, 16\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tsubs\tcntrem, cntrem, 32\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tcntrem, src, srcin\n\tfmov\tsynd, dend\n\tsub\tcntrem, cntin, cntrem\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "cmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tsubs\tcntrem, cntrem, 32\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tcntrem, src, srcin\n\tfmov\tsynd, dend\n\tsub\tcntrem, cntin, cntrem\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 107}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tcmp\tcntin, synd, lsr 2\n\tadd\tresult, srcin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:2", "text": "ENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tcmp\tcntin, synd, lsr 2\n\tadd\tresult, srcin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\n\t.p2align 3\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 17\n\tsubs\tcntrem, cntin, tmp\n\tb.lo\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\ttbz\tcntrem, 4, L(loop32_2)\n\tsub\tsrc, src, 16\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tsubs\tcntrem, cntrem, 32\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tcntrem, src, srcin\n\tfmov\tsynd, dend\n\tsub\tcntrem, cntin, cntrem\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "L(loop32_2):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tsubs\tcntrem, cntrem, 32\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tcntrem, src, srcin\n\tfmov\tsynd, dend\n\tsub\tcntrem, cntin, cntrem\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 109}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tcmp\tcntin, synd, lsr 2\n\tadd\tresult, srcin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tcmp\tcntin, synd, lsr 2\n\tadd\tresult, srcin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "43c24ad1c17de4b9d084f61ab8361d3736f2e527", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/43c24ad1c17de4b9d084f61ab8361d3736f2e527/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tadd\tresult, srcin, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:2", "text": "ENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tadd\tresult, srcin, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 16\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin\n\tsub\tcntrem, tmp, src\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/memchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "L(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin\n\tsub\tcntrem, tmp, src\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 107}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define wtmp\t\tw7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vrepmask\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:2", "text": "requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tadd\tresult, srcin, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 16\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "L(loop32):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin\n\tsub\tcntrem, tmp, src\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 115}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define wtmp\t\tw7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vrepmask\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define wtmp\t\tw7\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vrepmask\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:2", "text": "requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tadd\tresult, srcin, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 16\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin\n\tsub\tcntrem, tmp, src\n#ifndef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "cmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin\n\tsub\tcntrem, tmp, src\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 113}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "cmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, 16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tadd\ttmp, srcin, cntin\n\tsub\tcntrem, tmp, src\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tcmp\tcntrem, synd, lsr 2\n\tadd\tresult, src, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memchr_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "cbbc59656a7d3e8a949142bf2ed75a4fefc66bac", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbbc59656a7d3e8a949142bf2ed75a4fefc66bac/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 115}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:2", "text": "* For each 16-byte chunk we calculate a 64-bit syndrome value, with four bits\n * per byte. For each tuple, bit 0 is set if the relevant byte matched the\n * requested character and bit 1, 2, 3 are not used (faster than using a lower\n * bit syndrome). Since the bits in the syndrome reflect exactly the order in\n * which things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\nENTRY (__memchr_aarch64_mte)\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, L(zero_length)\n\t/*\n\t * Magic constant 0x10011001 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 16-byte chunks */\n\tbic\tsrc, srcin, #15\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #15\n\tand\tcntrem, cntin, #15\n\tb.eq\tL(aligned_start)\n\n\t/*\n\t * Input string is not 16-byte aligned. We calculate the syndrome\n\t * value for the aligned 16 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata.16b}, [src], #16\n\tsub\ttmp, soff, #16\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tlsl\ttmp, soff, #2\n\tmov\ttmp2, #~0\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp, tmp2, tmp\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*4 lower bits */\n\tand\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(aligned_start:)\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntin, #15\n\ttbnz\ttmp, 4, L(loop32_2)\n\nL(loop32):\n\tld1\t{vdata.16b}, [src], #16\n\tsubs\tcntin, cntin, #16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\tcbnz\tsynd, L(end)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:3", "text": "mov\tsynd, vend.d[0]\n\t/* Clear the soff*4 lower bits */\n\tand\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(aligned_start:)\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntin, #15\n\ttbnz\ttmp, 4, L(loop32_2)\n\nL(loop32):\n\tld1\t{vdata.16b}, [src], #16\n\tsubs\tcntin, cntin, #16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tld1\t{vdata.16b}, [src], #16\n\tsubs\tcntin, cntin, #16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* We haven't found the character, loop with 32 byte chunks */\n\tcbz\tsynd, L(loop32)\n\nL(end):\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hs\tL(tail)\n\nL(masklast):\n\t/* Clear the (16 - ((cntrem + soff) % 16)) * 4 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #15\n\tsub\ttmp, tmp, #16\n\tneg\ttmp, tmp, lsl #2\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #16\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #2\n\t/* Select result or NULL */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memchr-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:4", "text": "/* Clear the (16 - ((cntrem + soff) % 16)) * 4 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #15\n\tsub\ttmp, tmp, #16\n\tneg\ttmp, tmp, lsl #2\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #16\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #2\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0\n\tret\n\nEND (__memchr_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memchr-mte.S", "line_start": 121, "line_end": 150}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-mte.S:4", "text": "/* Clear the (16 - ((cntrem + soff) % 16)) * 4 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #15\n\tsub\ttmp, tmp, #16\n\tneg\ttmp, tmp, lsl #2\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #16\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #2\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0\n\tret\n\nEND (__memchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-mte.S", "license": "MIT", "commit": "72b1035135ef08b9aed453c8182659594b2578ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/72b1035135ef08b9aed453c8182659594b2578ec/string/aarch64/memchr-mte.S", "line_start": 121, "line_end": 148}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\nEND (__memchr_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:2", "text": "add\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\nEND (__memchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memchr-sve.S", "line_start": 41, "line_end": 61}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:2", "text": "/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\nEND (__memchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr-sve.S", "line_start": 41, "line_end": 63}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memchr_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN(__memchr_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\n\t.p2align 4\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:2", "text": "b.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\nEND (__memchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3/string/aarch64/memchr-sve.S", "line_start": 41, "line_end": 66}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN(__memchr_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\tnop\n\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN(__memchr_aarch64_sve, 4)\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\tnop\n\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:2", "text": "/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\nEND (__memchr_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memchr-sve.S", "line_start": 41, "line_end": 66}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__memchr_aarch64_sve\n\t.type\t__memchr_aarch64_sve, %function\n\t.p2align 4\n__memchr_aarch64_sve:\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\tnop\n\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:2", "text": "decb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\n\t.size\t__memchr_aarch64_sve, . - __memchr_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/memchr-sve.S", "line_start": 41, "line_end": 64}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:1", "text": "/*\n * memchr - find a character in a memory zone\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__memchr_aarch64_sve\n\t.type\t__memchr_aarch64_sve, %function\n\t.p2align 4\n__memchr_aarch64_sve:\n\tdup\tz1.b, w1\t\t\t/* duplicate c to a vector */\n\tsetffr\t\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t\t/* initialize off */\n\tnop\n\n0:\twhilelo\tp1.b, x3, x2\t\t\t/* make sure off < max */\n\tb.none\t9f\n\n\t/* Read a vector's worth of bytes, bounded by max,\n\t   stopping on first fault.  */\n\tldff1b\tz0.b, p1/z, [x0, x3]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector bounded by max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx3\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tb.none\t0b\n\tdecb\tx3\t\t\t\t/* undo speculate */\n\n\t/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "10c7a2dbfcbb1334a2789a9a7dce1cad076c4742", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/10c7a2dbfcbb1334a2789a9a7dce1cad076c4742/string/aarch64/memchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr-sve.S:2", "text": "/* Found C.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find the first c */\n\tadd\tx0, x0, x3\t\t/* form partial pointer */\n\tincp\tx0, p2.b\t\t/* form final pointer to c */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\n\tb.any\t1b\n\n\t/* No C found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx3, p0.b\n\tb\t0b\n\n\t/* Found end of count.  */\n9:\tmov\tx0, 0\t\t\t/* return null */\n\tret\n\n\t.size\t__memchr_aarch64_sve, . - __memchr_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr-sve.S", "license": "MIT", "commit": "10c7a2dbfcbb1334a2789a9a7dce1cad076c4742", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/10c7a2dbfcbb1334a2789a9a7dce1cad076c4742/string/aarch64/memchr-sve.S", "line_start": 41, "line_end": 62}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:2", "text": "* For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits\n * per byte. For each tuple, bit 0 is set if the relevant byte matched the\n * requested character and bit 1 is not used (faster than using a 32bit\n * syndrome). Since the bits in the syndrome reflect exactly the order in which\n * things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\nENTRY (__memchr_aarch64)\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, L(zero_length)\n\t/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\tL(loop)\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsub\ttmp, soff, #32\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\tL(end)\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "mov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\tL(end)\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, L(loop)\n\nL(end):\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hs\tL(tail)\n\nL(masklast):\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:4", "text": "lsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0\n\tret\n\nEND (__memchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memchr.S", "line_start": 121, "line_end": 143}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:2", "text": "* For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits\n * per byte. For each tuple, bit 0 is set if the relevant byte matched the\n * requested character and bit 1 is not used (faster than using a 32bit\n * syndrome). Since the bits in the syndrome reflect exactly the order in which\n * things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\nENTRY (__memchr_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, L(zero_length)\n\t/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\tL(loop)\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsub\ttmp, soff, #32\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\tL(end)\n\t/* Use a fast check for the termination condition */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "addp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\tL(end)\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, L(loop)\n\nL(end):\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hs\tL(tail)\n\nL(masklast):\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:4", "text": "sub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0\n\tret\n\nEND (__memchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memchr.S", "line_start": 121, "line_end": 145}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:4", "text": "lsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0\n\tret\n\nEND (__memchr_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memchr.S", "line_start": 121, "line_end": 145}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "mov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\tL(masklast)\n\t/* Have we found something already? */\n\tcbnz\tsynd, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\tL(end)\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, L(loop)\n\nL(end):\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hi\tL(tail)\n\nL(masklast):\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\nL(tail):\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\nL(zero_length):\n\tmov\tresult, #0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:2", "text": "* For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits\n * per byte. For each tuple, bit 0 is set if the relevant byte matched the\n * requested character and bit 1 is not used (faster than using a 32bit\n * syndrome). Since the bits in the syndrome reflect exactly the order in which\n * things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\nENTRY (__memchr_aarch64)\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, .Lzero_length\n\t/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\t.Lloop\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsub\ttmp, soff, #32\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\t.Lend\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "mov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\t.Lend\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, .Lloop\n\n.Lend:\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hi\t.Ltail\n\n.Lmasklast:\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\n.Ltail:\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\n.Lzero_length:\n\tmov\tresult, #0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:4", "text": "lsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\n.Ltail:\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\n.Lzero_length:\n\tmov\tresult, #0\n\tret\n\nEND (__memchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memchr.S", "line_start": 121, "line_end": 143}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:2", "text": "* requested character and bit 1 is not used (faster than using a 32bit\n * syndrome). Since the bits in the syndrome reflect exactly the order in which\n * things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memchr_aarch64\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, .Lzero_length\n\t/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\t.Lloop\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsub\ttmp, soff, #32\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "cmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\t.Lend\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, .Lloop\n\n.Lend:\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hi\t.Ltail\n\n.Lmasklast:\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\n.Ltail:\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:4", "text": ".Lmasklast:\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\n.Ltail:\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\n.Lzero_length:\n\tmov\tresult, #0\n\tret\n\n\t.size\t__memchr_aarch64, . - __memchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/memchr.S", "line_start": 121, "line_end": 149}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:2", "text": "* requested character and bit 1 is not used (faster than using a 32bit\n * syndrome). Since the bits in the syndrome reflect exactly the order in which\n * things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memchr_aarch64\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, .Lzero_length\n\t/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\t.Lloop\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsub\ttmp, soff, #32\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.2d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "cmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.2d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\t.Lend\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.2d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, .Lloop\n\n.Lend:\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.2d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hi\t.Ltail\n\n.Lmasklast:\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\n.Ltail:\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:2", "text": "#define result\t\tx0\n\n#define src\t\tx3\n#define\ttmp\t\tx4\n#define wtmp2\t\tw5\n#define synd\t\tx6\n#define soff\t\tx9\n#define cntrem\t\tx10\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_chr1\tv3\n#define vhas_chr2\tv4\n#define vrepmask\tv5\n#define vend\t\tv6\n\n/*\n * Core algorithm:\n *\n * For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits\n * per byte. For each tuple, bit 0 is set if the relevant byte matched the\n * requested character and bit 1 is not used (faster than using a 32bit\n * syndrome). Since the bits in the syndrome reflect exactly the order in which\n * things occur in the original string, counting trailing zeros allows to\n * identify exactly which byte has matched.\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memchr_aarch64\n\t/* Do not dereference srcin if no bytes to compare.  */\n\tcbz\tcntin, .Lzero_length\n\t/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\t.Lloop\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b/string/aarch64/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:3", "text": "/*\n\t * Magic constant 0x40100401 allows us to identify which lane matches\n\t * the requested byte.\n\t */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\t/* Work with aligned 32-byte chunks */\n\tbic\tsrc, srcin, #31\n\tdup\tvrepmask.4s, wtmp2\n\tands\tsoff, srcin, #31\n\tand\tcntrem, cntin, #31\n\tb.eq\t.Lloop\n\n\t/*\n\t * Input string is not 32-byte aligned. We calculate the syndrome\n\t * value for the aligned 32 bytes block containing the first bytes\n\t * and mask the irrelevant part.\n\t */\n\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsub\ttmp, soff, #32\n\tadds\tcntin, cntin, tmp\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.2d[0]\n\t/* Clear the soff*2 lower bits */\n\tlsl\ttmp, soff, #1\n\tlsr\tsynd, synd, tmp\n\tlsl\tsynd, synd, tmp\n\t/* The first block can also be the last */\n\tb.ls\t.Lmasklast\n\t/* Have we found something already? */\n\tcbnz\tsynd, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\t.Lend\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.2d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, .Lloop\n\n.Lend:\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.2d[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b/string/aarch64/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:4", "text": "ld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tsubs\tcntin, cntin, #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* If we're out of data we finish regardless of the result */\n\tb.ls\t.Lend\n\t/* Use a fast check for the termination condition */\n\torr\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend.2d, vend.2d, vend.2d\n\tmov\tsynd, vend.2d[0]\n\t/* We're not out of data, loop if we haven't found the character */\n\tcbz\tsynd, .Lloop\n\n.Lend:\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr1.16b, vhas_chr2.16b\t\t/* 256->128 */\n\taddp\tvend.16b, vend.16b, vend.16b\t\t\t/* 128->64 */\n\tmov\tsynd, vend.2d[0]\n\t/* Only do the clear for the last possible block */\n\tb.hi\t.Ltail\n\n.Lmasklast:\n\t/* Clear the (32 - ((cntrem + soff) % 32)) * 2 upper bits */\n\tadd\ttmp, cntrem, soff\n\tand\ttmp, tmp, #31\n\tsub\ttmp, tmp, #32\n\tneg\ttmp, tmp, lsl #1\n\tlsl\tsynd, synd, tmp\n\tlsr\tsynd, synd, tmp\n\n.Ltail:\n\t/* Count the trailing zeros using bit reversing */\n\trbit\tsynd, synd\n\t/* Compensate the last post-increment */\n\tsub\tsrc, src, #32\n\t/* Check that we have found a character */\n\tcmp\tsynd, #0\n\t/* And count the leading zeros */\n\tclz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\n.Lzero_length:\n\tmov\tresult, #0\n\tret\n\n\t.size\t__memchr_aarch64, . - __memchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b/string/aarch64/memchr.S", "line_start": 121, "line_end": 172}
{"id": "ARM-software/optimized-routines:string/aarch64/memchr.S:5", "text": "clz\tsynd, synd\n\t/* Compute the potential result */\n\tadd\tresult, src, synd, lsr #1\n\t/* Select result or NULL */\n\tcsel\tresult, xzr, result, eq\n\tret\n\n.Lzero_length:\n\tmov\tresult, #0\n\tret\n\n\t.size\t__memchr_aarch64, . - __memchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memchr.S", "license": "MIT", "commit": "b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b57e78636ea9e3f3d229cef9b2dd5e8d80cf851b/string/aarch64/memchr.S", "line_start": 161, "line_end": 172}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 47}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__memcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__memcmp_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 53}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__memcmp_aarch64_sve, 4)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__memcmp_aarch64_sve, 4)\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\nEND (__memcmp_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 52}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__memcmp_aarch64_sve\n\t.type\t__memcmp_aarch64_sve, %function\n\t.p2align 4\n__memcmp_aarch64_sve:\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\n\t.size\t__memcmp_aarch64_sve, . - __memcmp_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 50}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp-sve.S:1", "text": "/*\n * memcmp - compare memory\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__memcmp_aarch64_sve\n\t.type\t__memcmp_aarch64_sve, %function\n\t.p2align 4\n__memcmp_aarch64_sve:\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tld1b\tz0.b, p0/z, [x0, x3]\t/* read vectors bounded by max.  */\n\tld1b\tz1.b, p0/z, [x1, x3]\n\n\t/* Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\n\tcmpne\tp1.b, p0/z, z0.b, z1.b\t/* while no inequalities */\n\tb.none\t0b\n\n\t/* Found inequality.  */\n1:\tbrkb\tp1.b, p0/z, p1.b\t/* find first such */\n\tlasta\tw0, p1, z0.b\t\t/* extract each byte */\n\tlasta\tw1, p1, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equality */\n\tret\n\n\t.size\t__memcmp_aarch64_sve, . - __memcmp_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp-sve.S", "license": "MIT", "commit": "fe7ca84adb9f1119734995bf2415373ed3970757", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fe7ca84adb9f1119734995bf2415373ed3970757/string/aarch64/memcmp-sve.S", "line_start": 1, "line_end": 48}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n */\n\n#include \"asmdefs.h\"\n\n#define src1\tx0\n#define src2\tx1\n#define limit\tx2\n#define result\tw0\n\n#define data1\tx3\n#define data1w\tw3\n#define data2\tx4\n#define data2w\tw4\n#define data3\tx5\n#define data3w\tw5\n#define data4\tx6\n#define data4w\tw6\n#define tmp\tx6\n#define src1end\tx7\n#define src2end\tx8\n\n\nENTRY (__memcmp_aarch64)\n\tcmp\tlimit, 16\n\tb.lo\tL(less16)\n\tldp\tdata1, data3, [src1]\n\tldp\tdata2, data4, [src2]\n\tccmp\tdata1, data2, 0, ne\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16\n\tb.ls\tL(last_bytes)\n\n\tldp\tdata1, data3, [src1, 32]\n\tldp\tdata2, data4, [src2, 32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:2", "text": "add\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16\n\tb.ls\tL(last_bytes)\n\n\tldp\tdata1, data3, [src1, 32]\n\tldp\tdata2, data4, [src2, 32]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tadd\tsrc1, src1, 32\n\tadd\tsrc2, src2, 32\nL(last64):\n\tsubs\tlimit, limit, 32\n\tb.hi\tL(loop32)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tldp\tdata1, data3, [src1end, -16]\n\tldp\tdata2, data4, [src2end, -16]\nL(return2):\n\tcmp\tdata1, data2\n\tcsel\tdata1, data1, data3, ne\n\tcsel\tdata2, data2, data4, ne\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\nL(less16):\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\ttbz\tlimit, 3, L(less8)\n\tldr\tdata1, [src1]\n\tldr\tdata2, [src2]\n\tldr\tdata3, [src1end, -8]\n\tldr\tdata4, [src2end, -8]\n\tb\tL(return2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": "#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\nL(less16):\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\ttbz\tlimit, 3, L(less8)\n\tldr\tdata1, [src1]\n\tldr\tdata2, [src2]\n\tldr\tdata3, [src1end, -8]\n\tldr\tdata4, [src2end, -8]\n\tb\tL(return2)\n\n\t.p2align 4\nL(less8):\n\ttbz\tlimit, 2, L(less4)\n\tldr\tdata1w, [src1]\n\tldr\tdata2w, [src2]\n\tldr\tdata3w, [src1end, -4]\n\tldr\tdata4w, [src2end, -4]\n\tb\tL(return2)\n\nL(less4):\n\ttbz\tlimit, 1, L(less2)\n\tldrh\tdata1w, [src1]\n\tldrh\tdata2w, [src2]\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\nL(less2):\n\tmov\tresult, 0\n\ttbz\tlimit, 0, L(return_zero)\n\tldrb\tdata1w, [src1end, -1]\n\tldrb\tdata2w, [src2end, -1]\n\tsub\tresult, data1w, data2w\nL(return_zero):\n\tret\n\nL(loop_align):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\t/* Align src2 and adjust src1, src2 and limit.  */\n\tand\ttmp, src2, 15\n\tsub\ttmp, tmp, 16\n\tsub\tsrc2, src2, tmp\n\tadd\tlimit, limit, tmp\n\tsub\tsrc1, src1, tmp\n\tsub\tlimit, limit, 64 + 16\n\n\t.p2align 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "sub\tresult, data1w, data2w\nL(return_zero):\n\tret\n\nL(loop_align):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\t/* Align src2 and adjust src1, src2 and limit.  */\n\tand\ttmp, src2, 15\n\tsub\ttmp, tmp, 16\n\tsub\tsrc2, src2, tmp\n\tadd\tlimit, limit, tmp\n\tsub\tsrc1, src1, tmp\n\tsub\tlimit, limit, 64 + 16\n\n\t.p2align 4\nL(loop64):\n\tldr\tq0, [src1, 16]\n\tldr\tq1, [src2, 16]\n\tsubs\tlimit, limit, 64\n\tldr\tq2, [src1, 32]\n\tldr\tq3, [src2, 32]\n\teor\tv0.16b, v0.16b, v1.16b\n\teor\tv1.16b, v2.16b, v3.16b\n\tldr\tq2, [src1, 48]\n\tldr\tq3, [src2, 48]\n\tumaxp\tv0.16b, v0.16b, v1.16b\n\tldr\tq4, [src1, 64]!\n\tldr\tq5, [src2, 64]!\n\teor\tv1.16b, v2.16b, v3.16b\n\teor\tv2.16b, v4.16b, v5.16b\n\tumaxp\tv1.16b, v1.16b, v2.16b\n\tumaxp\tv0.16b, v0.16b, v1.16b\n\tumaxp\tv0.16b, v0.16b, v0.16b\n\tfmov\ttmp, d0\n\tccmp\ttmp, 0, 0, hi\n\tb.eq\tL(loop64)\n\n\t/* If equal, process last 1-64 bytes using scalar loop.  */\n\tadd\tlimit, limit, 64 + 16\n\tcbz\ttmp, L(last64)\n\n\t/* Determine the 8-byte aligned offset of the first difference.  */\n#ifdef __AARCH64EB__\n\trev16\ttmp, tmp\n#endif\n\trev\ttmp, tmp\n\tclz\ttmp, tmp\n\tbic\ttmp, tmp, 7\n\tsub\ttmp, tmp, 48\n\tldr\tdata1, [src1, tmp]\n\tldr\tdata2, [src2, tmp]\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:5", "text": "b.eq\tL(loop64)\n\n\t/* If equal, process last 1-64 bytes using scalar loop.  */\n\tadd\tlimit, limit, 64 + 16\n\tcbz\ttmp, L(last64)\n\n\t/* Determine the 8-byte aligned offset of the first difference.  */\n#ifdef __AARCH64EB__\n\trev16\ttmp, tmp\n#endif\n\trev\ttmp, tmp\n\tclz\ttmp, tmp\n\tbic\ttmp, tmp, 7\n\tsub\ttmp, tmp, 48\n\tldr\tdata1, [src1, tmp]\n\tldr\tdata2, [src2, tmp]\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tmov\tresult, 1\n\tcmp\tdata1, data2\n\tcneg\tresult, result, lo\n\tret\n\nEND (__memcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcmp.S", "line_start": 161, "line_end": 186}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n */\n\n#include \"asmdefs.h\"\n\n#define src1\tx0\n#define src2\tx1\n#define limit\tx2\n#define result\tw0\n\n#define data1\tx3\n#define data1w\tw3\n#define data2\tx4\n#define data2w\tw4\n#define data3\tx5\n#define data3w\tw5\n#define data4\tx6\n#define data4w\tw6\n#define tmp\tx6\n#define src1end\tx7\n#define src2end\tx8\n\n\nENTRY (__memcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tlimit, 16\n\tb.lo\tL(less16)\n\tldp\tdata1, data3, [src1]\n\tldp\tdata2, data4, [src2]\n\tccmp\tdata1, data2, 0, ne\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:2", "text": "ccmp\tdata1, data2, 0, ne\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16\n\tb.ls\tL(last_bytes)\n\n\tldp\tdata1, data3, [src1, 32]\n\tldp\tdata2, data4, [src2, 32]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tadd\tsrc1, src1, 32\n\tadd\tsrc2, src2, 32\nL(last64):\n\tsubs\tlimit, limit, 32\n\tb.hi\tL(loop32)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tldp\tdata1, data3, [src1end, -16]\n\tldp\tdata2, data4, [src2end, -16]\nL(return2):\n\tcmp\tdata1, data2\n\tcsel\tdata1, data1, data3, ne\n\tcsel\tdata2, data2, data4, ne\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\nL(less16):\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\ttbz\tlimit, 3, L(less8)\n\tldr\tdata1, [src1]\n\tldr\tdata2, [src2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": "csel\tdata2, data2, data4, ne\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\nL(less16):\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\ttbz\tlimit, 3, L(less8)\n\tldr\tdata1, [src1]\n\tldr\tdata2, [src2]\n\tldr\tdata3, [src1end, -8]\n\tldr\tdata4, [src2end, -8]\n\tb\tL(return2)\n\n\t.p2align 4\nL(less8):\n\ttbz\tlimit, 2, L(less4)\n\tldr\tdata1w, [src1]\n\tldr\tdata2w, [src2]\n\tldr\tdata3w, [src1end, -4]\n\tldr\tdata4w, [src2end, -4]\n\tb\tL(return2)\n\nL(less4):\n\ttbz\tlimit, 1, L(less2)\n\tldrh\tdata1w, [src1]\n\tldrh\tdata2w, [src2]\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\nL(less2):\n\tmov\tresult, 0\n\ttbz\tlimit, 0, L(return_zero)\n\tldrb\tdata1w, [src1end, -1]\n\tldrb\tdata2w, [src2end, -1]\n\tsub\tresult, data1w, data2w\nL(return_zero):\n\tret\n\nL(loop_align):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\t/* Align src2 and adjust src1, src2 and limit.  */\n\tand\ttmp, src2, 15\n\tsub\ttmp, tmp, 16\n\tsub\tsrc2, src2, tmp\n\tadd\tlimit, limit, tmp", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "mov\tresult, 0\n\ttbz\tlimit, 0, L(return_zero)\n\tldrb\tdata1w, [src1end, -1]\n\tldrb\tdata2w, [src2end, -1]\n\tsub\tresult, data1w, data2w\nL(return_zero):\n\tret\n\nL(loop_align):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\t/* Align src2 and adjust src1, src2 and limit.  */\n\tand\ttmp, src2, 15\n\tsub\ttmp, tmp, 16\n\tsub\tsrc2, src2, tmp\n\tadd\tlimit, limit, tmp\n\tsub\tsrc1, src1, tmp\n\tsub\tlimit, limit, 64 + 16\n\n\t.p2align 4\nL(loop64):\n\tldr\tq0, [src1, 16]\n\tldr\tq1, [src2, 16]\n\tsubs\tlimit, limit, 64\n\tldr\tq2, [src1, 32]\n\tldr\tq3, [src2, 32]\n\teor\tv0.16b, v0.16b, v1.16b\n\teor\tv1.16b, v2.16b, v3.16b\n\tldr\tq2, [src1, 48]\n\tldr\tq3, [src2, 48]\n\tumaxp\tv0.16b, v0.16b, v1.16b\n\tldr\tq4, [src1, 64]!\n\tldr\tq5, [src2, 64]!\n\teor\tv1.16b, v2.16b, v3.16b\n\teor\tv2.16b, v4.16b, v5.16b\n\tumaxp\tv1.16b, v1.16b, v2.16b\n\tumaxp\tv0.16b, v0.16b, v1.16b\n\tumaxp\tv0.16b, v0.16b, v0.16b\n\tfmov\ttmp, d0\n\tccmp\ttmp, 0, 0, hi\n\tb.eq\tL(loop64)\n\n\t/* If equal, process last 1-64 bytes using scalar loop.  */\n\tadd\tlimit, limit, 64 + 16\n\tcbz\ttmp, L(last64)\n\n\t/* Determine the 8-byte aligned offset of the first difference.  */\n#ifdef __AARCH64EB__\n\trev16\ttmp, tmp\n#endif\n\trev\ttmp, tmp\n\tclz\ttmp, tmp\n\tbic\ttmp, tmp, 7\n\tsub\ttmp, tmp, 48\n\tldr\tdata1, [src1, tmp]\n\tldr\tdata2, [src2, tmp]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:5", "text": "umaxp\tv0.16b, v0.16b, v1.16b\n\tumaxp\tv0.16b, v0.16b, v0.16b\n\tfmov\ttmp, d0\n\tccmp\ttmp, 0, 0, hi\n\tb.eq\tL(loop64)\n\n\t/* If equal, process last 1-64 bytes using scalar loop.  */\n\tadd\tlimit, limit, 64 + 16\n\tcbz\ttmp, L(last64)\n\n\t/* Determine the 8-byte aligned offset of the first difference.  */\n#ifdef __AARCH64EB__\n\trev16\ttmp, tmp\n#endif\n\trev\ttmp, tmp\n\tclz\ttmp, tmp\n\tbic\ttmp, tmp, 7\n\tsub\ttmp, tmp, 48\n\tldr\tdata1, [src1, tmp]\n\tldr\tdata2, [src2, tmp]\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tmov\tresult, 1\n\tcmp\tdata1, data2\n\tcneg\tresult, result, lo\n\tret\n\nEND (__memcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcmp.S", "line_start": 161, "line_end": 190}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n */\n\n#include \"asmdefs.h\"\n\n#define src1\tx0\n#define src2\tx1\n#define limit\tx2\n#define result\tw0\n\n#define data1\tx3\n#define data1w\tw3\n#define data2\tx4\n#define data2w\tw4\n#define data3\tx5\n#define data3w\tw5\n#define data4\tx6\n#define data4w\tw6\n#define tmp\tx6\n#define src1end\tx7\n#define src2end\tx8\n\n\nENTRY (__memcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tlimit, 16\n\tb.lo\tL(less16)\n\tldp\tdata1, data3, [src1]\n\tldp\tdata2, data4, [src2]\n\tccmp\tdata1, data2, 0, ne\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n */\n\n#include \"../asmdefs.h\"\n\n#define src1\tx0\n#define src2\tx1\n#define limit\tx2\n#define result\tw0\n\n#define data1\tx3\n#define data1w\tw3\n#define data2\tx4\n#define data2w\tw4\n#define data3\tx5\n#define data3w\tw5\n#define data4\tx6\n#define data4w\tw6\n#define tmp\tx6\n#define src1end\tx7\n#define src2end\tx8\n\n\nENTRY (__memcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tlimit, 16\n\tb.lo\tL(less16)\n\tldp\tdata1, data3, [src1]\n\tldp\tdata2, data4, [src2]\n\tccmp\tdata1, data2, 0, ne\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n */\n\n#include \"../asmdefs.h\"\n\n#define src1\tx0\n#define src2\tx1\n#define limit\tx2\n#define result\tw0\n\n#define data1\tx3\n#define data1w\tw3\n#define data2\tx4\n#define data2w\tw4\n#define data3\tx5\n#define data3w\tw5\n#define data4\tx6\n#define data4w\tw6\n#define tmp\tx6\n#define src1end\tx7\n#define src2end\tx8\n\n\nENTRY (__memcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tlimit, 16\n\tb.lo\tL(less16)\n\tldp\tdata1, data3, [src1]\n\tldp\tdata2, data4, [src2]\n\tccmp\tdata1, data2, 0, ne\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\n\tadd\tsrc1end, src1, limit\n\tadd\tsrc2end, src2, limit\n\tcmp\tlimit, 32\n\tb.ls\tL(last_bytes)\n\tcmp\tlimit, 160\n\tb.hs\tL(loop_align)\n\tsub\tlimit, limit, 32\n\n\t.p2align 4\nL(loop32):\n\tldp\tdata1, data3, [src1, 16]\n\tldp\tdata2, data4, [src2, 16]\n\tcmp\tdata1, data2\n\tccmp\tdata3, data4, 0, eq\n\tb.ne\tL(return2)\n\tcmp\tlimit, 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "7a9fd1603e1179b044406fb9b6cc5770d736cde7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7a9fd1603e1179b044406fb9b6cc5770d736cde7/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n */\n\n#include \"../asmdefs.h\"\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tw0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data1h\t\tx4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define data2h\t\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n\nENTRY (__memcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsubs\tlimit, limit, 8\n\tb.lo\tL(less8)\n\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:2", "text": "subs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we\n\t   try to align, so limit it only to strings larger than 128 bytes.  */\n\tcmp\tlimit, 96\n\tb.ls\tL(loop16)\n\n\t/* Align src1 and adjust src2 with bytes not yet done.  */\n\tand\ttmp1, src1, 15\n\tadd\tlimit, limit, tmp1\n\tsub\tsrc1, src1, tmp1\n\tsub\tsrc2, src2, tmp1\n\n\t/* Loop performing 16 bytes per iteration using aligned src1.\n\t   Limit is pre-decremented by 16 and must be larger than zero.\n\t   Exit if <= 16 bytes left to do or if the data is not equal.  */\n\t.p2align 4\nL(loop16):\n\tldp\tdata1, data1h, [src1], 16\n\tldp\tdata2, data2h, [src2], 16\n\tsubs\tlimit, limit, 16\n\tccmp\tdata1, data2, 0, hi\n\tccmp\tdata1h, data2h, 0, eq\n\tb.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": "b.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp     data1, data2\nL(ret_eq):\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\n\t/* Compare up to 8 bytes.  Limit is [-8..-1].  */\nL(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\nEND (__memcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memcmp.S", "line_start": 81, "line_end": 136}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "cmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\nEND (__memcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memcmp.S", "line_start": 121, "line_end": 136}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n */\n\n#include \"../asmdefs.h\"\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tw0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data1h\t\tx4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define data2h\t\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n\nENTRY (__memcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsubs\tlimit, limit, 8\n\tb.lo\tL(less8)\n\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n */\n\n#include \"../asmdefs.h\"\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tw0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data1h\t\tx4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define data2h\t\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n\nENTRY (__memcmp_aarch64)\n\tsubs\tlimit, limit, 8\n\tb.lo\tL(less8)\n\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we\n\t   try to align, so limit it only to strings larger than 128 bytes.  */\n\tcmp\tlimit, 96\n\tb.ls\tL(loop16)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:2", "text": "ldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we\n\t   try to align, so limit it only to strings larger than 128 bytes.  */\n\tcmp\tlimit, 96\n\tb.ls\tL(loop16)\n\n\t/* Align src1 and adjust src2 with bytes not yet done.  */\n\tand\ttmp1, src1, 15\n\tadd\tlimit, limit, tmp1\n\tsub\tsrc1, src1, tmp1\n\tsub\tsrc2, src2, tmp1\n\n\t/* Loop performing 16 bytes per iteration using aligned src1.\n\t   Limit is pre-decremented by 16 and must be larger than zero.\n\t   Exit if <= 16 bytes left to do or if the data is not equal.  */\n\t.p2align 4\nL(loop16):\n\tldp\tdata1, data1h, [src1], 16\n\tldp\tdata2, data2h, [src2], 16\n\tsubs\tlimit, limit, 16\n\tccmp\tdata1, data2, 0, hi\n\tccmp\tdata1h, data2h, 0, eq\n\tb.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": "bne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp     data1, data2\nL(ret_eq):\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\n\t/* Compare up to 8 bytes.  Limit is [-8..-1].  */\nL(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\nEND (__memcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcmp.S", "line_start": 81, "line_end": 133}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "L(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\nEND (__memcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcmp.S", "line_start": 121, "line_end": 133}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": "bne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp     data1, data2\nL(ret_eq):\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\n\t/* Compare up to 8 bytes.  Limit is [-8..-1].  */\nL(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\nEND (__memcmp_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memcmp.S", "line_start": 81, "line_end": 135}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "L(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\nEND (__memcmp_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memcmp.S", "line_start": 121, "line_end": 135}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n */\n\n#define L(l) .L ## l\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tw0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data1h\t\tx4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define data2h\t\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n\n        .macro def_fn f p2align=0\n        .text\n        .p2align \\p2align\n        .global \\f\n        .type \\f, %function\n\\f:\n        .endm\n\ndef_fn __memcmp_aarch64 p2align=6\n\tsubs\tlimit, limit, 8\n\tb.lo\tL(less8)\n\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "453cc0f4dcf7d679dc39c7971118969f0af218aa", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/453cc0f4dcf7d679dc39c7971118969f0af218aa/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:2", "text": "ldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we\n\t   try to align, so limit it only to strings larger than 128 bytes.  */\n\tcmp\tlimit, 96\n\tb.ls\tL(loop16)\n\n\t/* Align src1 and adjust src2 with bytes not yet done.  */\n\tand\ttmp1, src1, 15\n\tadd\tlimit, limit, tmp1\n\tsub\tsrc1, src1, tmp1\n\tsub\tsrc2, src2, tmp1\n\n\t/* Loop performing 16 bytes per iteration using aligned src1.\n\t   Limit is pre-decremented by 16 and must be larger than zero.\n\t   Exit if <= 16 bytes left to do or if the data is not equal.  */\n\t.p2align 4\nL(loop16):\n\tldp\tdata1, data1h, [src1], 16\n\tldp\tdata2, data2h, [src2], 16\n\tsubs\tlimit, limit, 16\n\tccmp\tdata1, data2, 0, hi\n\tccmp\tdata1h, data2h, 0, eq\n\tb.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "453cc0f4dcf7d679dc39c7971118969f0af218aa", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/453cc0f4dcf7d679dc39c7971118969f0af218aa/string/aarch64/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": "ldp\tdata1, data1h, [src1], 16\n\tldp\tdata2, data2h, [src2], 16\n\tsubs\tlimit, limit, 16\n\tccmp\tdata1, data2, 0, hi\n\tccmp\tdata1h, data2h, 0, eq\n\tb.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp     data1, data2\nL(ret_eq):\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\n\t/* Compare up to 8 bytes.  Limit is [-8..-1].  */\nL(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "453cc0f4dcf7d679dc39c7971118969f0af218aa", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/453cc0f4dcf7d679dc39c7971118969f0af218aa/string/aarch64/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "L(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\n\t.size __memcmp_aarch64, . - __memcmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "453cc0f4dcf7d679dc39c7971118969f0af218aa", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/453cc0f4dcf7d679dc39c7971118969f0af218aa/string/aarch64/memcmp.S", "line_start": 121, "line_end": 141}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:1", "text": "/* memcmp - compare memory\n\n   Copyright (c) 2013, 2018 Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/*\n * Copyright (c) 2017 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "bc49c9f084c1885a2005ba54df5432f1b1c3a413", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bc49c9f084c1885a2005ba54df5432f1b1c3a413/string/aarch64/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:2", "text": "* 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n */\n\n#define L(l) .L ## l\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tw0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data1h\t\tx4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define data2h\t\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n\n        .macro def_fn f p2align=0\n        .text\n        .p2align \\p2align\n        .global \\f\n        .type \\f, %function\n\\f:\n        .endm\n\ndef_fn __memcmp_aarch64 p2align=6\n\tsubs\tlimit, limit, 8\n\tb.lo\tL(less8)\n\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "bc49c9f084c1885a2005ba54df5432f1b1c3a413", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bc49c9f084c1885a2005ba54df5432f1b1c3a413/string/aarch64/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:3", "text": ".text\n        .p2align \\p2align\n        .global \\f\n        .type \\f, %function\n\\f:\n        .endm\n\ndef_fn __memcmp_aarch64 p2align=6\n\tsubs\tlimit, limit, 8\n\tb.lo\tL(less8)\n\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tb.ne\tL(return)\n\n\tsubs\tlimit, limit, 8\n\tb.gt\tL(more16)\n\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tb\tL(return)\n\nL(more16):\n\tldr\tdata1, [src1], 8\n\tldr\tdata2, [src2], 8\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Jump directly to comparing the last 16 bytes for 32 byte (or less)\n\t   strings.  */\n\tsubs\tlimit, limit, 16\n\tb.ls\tL(last_bytes)\n\n\t/* We overlap loads between 0-32 bytes at either side of SRC1 when we\n\t   try to align, so limit it only to strings larger than 128 bytes.  */\n\tcmp\tlimit, 96\n\tb.ls\tL(loop16)\n\n\t/* Align src1 and adjust src2 with bytes not yet done.  */\n\tand\ttmp1, src1, 15\n\tadd\tlimit, limit, tmp1\n\tsub\tsrc1, src1, tmp1\n\tsub\tsrc2, src2, tmp1\n\n\t/* Loop performing 16 bytes per iteration using aligned src1.\n\t   Limit is pre-decremented by 16 and must be larger than zero.\n\t   Exit if <= 16 bytes left to do or if the data is not equal.  */\n\t.p2align 4\nL(loop16):\n\tldp\tdata1, data1h, [src1], 16\n\tldp\tdata2, data2h, [src2], 16\n\tsubs\tlimit, limit, 16\n\tccmp\tdata1, data2, 0, hi\n\tccmp\tdata1h, data2h, 0, eq\n\tb.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "bc49c9f084c1885a2005ba54df5432f1b1c3a413", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bc49c9f084c1885a2005ba54df5432f1b1c3a413/string/aarch64/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:4", "text": "and\ttmp1, src1, 15\n\tadd\tlimit, limit, tmp1\n\tsub\tsrc1, src1, tmp1\n\tsub\tsrc2, src2, tmp1\n\n\t/* Loop performing 16 bytes per iteration using aligned src1.\n\t   Limit is pre-decremented by 16 and must be larger than zero.\n\t   Exit if <= 16 bytes left to do or if the data is not equal.  */\n\t.p2align 4\nL(loop16):\n\tldp\tdata1, data1h, [src1], 16\n\tldp\tdata2, data2h, [src2], 16\n\tsubs\tlimit, limit, 16\n\tccmp\tdata1, data2, 0, hi\n\tccmp\tdata1h, data2h, 0, eq\n\tb.eq\tL(loop16)\n\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\tbne\tL(return)\n\n\t/* Compare last 1-16 bytes using unaligned access.  */\nL(last_bytes):\n\tadd\tsrc1, src1, limit\n\tadd\tsrc2, src2, limit\n\tldp\tdata1, data1h, [src1]\n\tldp\tdata2, data2h, [src2]\n\tcmp     data1, data2\n\tbne\tL(return)\n\tmov\tdata1, data1h\n\tmov\tdata2, data2h\n\tcmp\tdata1, data2\n\n\t/* Compare data bytes and set return value to 0, -1 or 1.  */\nL(return):\n#ifndef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tcmp     data1, data2\nL(ret_eq):\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\n\t/* Compare up to 8 bytes.  Limit is [-8..-1].  */\nL(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "bc49c9f084c1885a2005ba54df5432f1b1c3a413", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bc49c9f084c1885a2005ba54df5432f1b1c3a413/string/aarch64/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcmp.S:5", "text": "rev\tdata2, data2\n#endif\n\tcmp     data1, data2\nL(ret_eq):\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n\n\t.p2align 4\n\t/* Compare up to 8 bytes.  Limit is [-8..-1].  */\nL(less8):\n\tadds\tlimit, limit, 4\n\tb.lo\tL(less4)\n\tldr\tdata1w, [src1], 4\n\tldr\tdata2w, [src2], 4\n\tcmp\tdata1w, data2w\n\tb.ne\tL(return)\n\tsub\tlimit, limit, 4\nL(less4):\n\tadds\tlimit, limit, 4\n\tbeq\tL(ret_eq)\nL(byte_loop):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tsubs\tlimit, limit, 1\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\n\tsub\tresult, data1w, data2w\n\tret\n\n\t.size __memcmp_aarch64, . - __memcmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcmp.S", "license": "MIT", "commit": "bc49c9f084c1885a2005ba54df5432f1b1c3a413", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bc49c9f084c1885a2005ba54df5432f1b1c3a413/string/aarch64/memcmp.S", "line_start": 161, "line_end": 191}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tadd\tsrcend, src, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:2", "text": "from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tadd\tsrcend, src, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\tnop\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldr\tA_q, [src]\n\tldr\tB_q, [srcend, -16]\n\tstr\tA_q, [dstin]\n\tstr\tB_q, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-advsimd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:3", "text": "ret\n\n\t.p2align 4\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 3\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-advsimd.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:4", "text": "ldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 3\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\tnop\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-advsimd.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:5", "text": "ldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\tnop\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-advsimd.S", "line_start": 161, "line_end": 208}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "c0137013d868422fce51de5e5a2af567ff784b7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c0137013d868422fce51de5e5a2af567ff784b7e/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:2", "text": "from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\tnop\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldr\tA_q, [src]\n\tldr\tB_q, [srcend, -16]\n\tstr\tA_q, [dstin]\n\tstr\tB_q, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "c0137013d868422fce51de5e5a2af567ff784b7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c0137013d868422fce51de5e5a2af567ff784b7e/string/aarch64/memcpy-advsimd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:3", "text": "b.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 3\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "c0137013d868422fce51de5e5a2af567ff784b7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c0137013d868422fce51de5e5a2af567ff784b7e/string/aarch64/memcpy-advsimd.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:4", "text": "lsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 3\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\tnop\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "c0137013d868422fce51de5e5a2af567ff784b7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c0137013d868422fce51de5e5a2af567ff784b7e/string/aarch64/memcpy-advsimd.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:5", "text": "/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\tnop\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "c0137013d868422fce51de5e5a2af567ff784b7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c0137013d868422fce51de5e5a2af567ff784b7e/string/aarch64/memcpy-advsimd.S", "line_start": 161, "line_end": 211}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:6", "text": "/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "c0137013d868422fce51de5e5a2af567ff784b7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c0137013d868422fce51de5e5a2af567ff784b7e/string/aarch64/memcpy-advsimd.S", "line_start": 201, "line_end": 211}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "1b626091872138151a671fd38804c292a8399810", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1b626091872138151a671fd38804c292a8399810/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:2", "text": "from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldr\tA_q, [src]\n\tldr\tB_q, [srcend, -16]\n\tstr\tA_q, [dstin]\n\tstr\tB_q, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy-advsimd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:3", "text": "ret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy-advsimd.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:4", "text": "cmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy-advsimd.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:5", "text": "ldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy-advsimd.S", "line_start": 161, "line_end": 205}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "cf3b6b370f3d12e8da59d93af4dcc5d68aa291db", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cf3b6b370f3d12e8da59d93af4dcc5d68aa291db/string/aarch64/memcpy-advsimd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:2", "text": "from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_simd)\nENTRY (__memcpy_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldr\tA_q, [src]\n\tldr\tB_q, [srcend, -16]\n\tstr\tA_q, [dstin]\n\tstr\tB_q, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "cf3b6b370f3d12e8da59d93af4dcc5d68aa291db", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cf3b6b370f3d12e8da59d93af4dcc5d68aa291db/string/aarch64/memcpy-advsimd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:3", "text": "/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "cf3b6b370f3d12e8da59d93af4dcc5d68aa291db", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cf3b6b370f3d12e8da59d93af4dcc5d68aa291db/string/aarch64/memcpy-advsimd.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:4", "text": "stp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "cf3b6b370f3d12e8da59d93af4dcc5d68aa291db", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cf3b6b370f3d12e8da59d93af4dcc5d68aa291db/string/aarch64/memcpy-advsimd.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:5", "text": "stp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "cf3b6b370f3d12e8da59d93af4dcc5d68aa291db", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cf3b6b370f3d12e8da59d93af4dcc5d68aa291db/string/aarch64/memcpy-advsimd.S", "line_start": 161, "line_end": 202}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:5", "text": "stp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstp\tC_q, D_q, [dstend, -64]\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsub\tdstend, dstend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcpy-advsimd.S", "line_start": 161, "line_end": 201}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-advsimd.S:5", "text": "stp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(copy0)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstp\tC_q, D_q, [dstend, -64]\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsub\tdstend, dstend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-advsimd.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memcpy-advsimd.S", "line_start": 161, "line_end": 203}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-mops.S:1", "text": "/*\n * memcpy using MOPS extension.\n *\n * Copyright (c) 2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\nENTRY (__memcpy_aarch64_mops)\n\tmov\tx3, x0\n\t.inst\t0x19010443\t/* cpyfp   [x3]!, [x1]!, x2!  */\n\t.inst\t0x19410443\t/* cpyfm   [x3]!, [x1]!, x2!  */\n\t.inst\t0x19810443\t/* cpyfe   [x3]!, [x1]!, x2!  */\n\tret\n\nEND (__memcpy_aarch64_mops)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-mops.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-mops.S", "line_start": 1, "line_end": 17}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-mops.S:1", "text": "/*\n * memcpy using MOPS extension.\n *\n * Copyright (c) 2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\nENTRY (__memcpy_aarch64_mops)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tmov\tx3, x0\n\t.inst\t0x19010443\t/* cpyfp   [x3]!, [x1]!, x2!  */\n\t.inst\t0x19410443\t/* cpyfm   [x3]!, [x1]!, x2!  */\n\t.inst\t0x19810443\t/* cpyfe   [x3]!, [x1]!, x2!  */\n\tret\n\nEND (__memcpy_aarch64_mops)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-mops.S", "license": "MIT", "commit": "6fb4d63b8f1f5ecd555e1155780586b2b4271696", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6fb4d63b8f1f5ecd555e1155780586b2b4271696/string/aarch64/memcpy-mops.S", "line_start": 1, "line_end": 21}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:2", "text": "Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz1.b, p1, [dstin, 1, mul vl]\n\tret\n\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:3", "text": "cmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-sve.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:4", "text": "/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy-sve.S", "line_start": 121, "line_end": 169}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#if HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:2", "text": "SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz1.b, p1, [dstin, 1, mul vl]\n\tret\n\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memcpy-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:3", "text": "L(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memcpy-sve.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:4", "text": "subs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memcpy-sve.S", "line_start": 121, "line_end": 173}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:5", "text": "L(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memcpy-sve.S", "line_start": 161, "line_end": 173}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#if HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:2", "text": "SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz1.b, p1, [dstin, 1, mul vl]\n\tret\n\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memcpy-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:3", "text": "stp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memcpy-sve.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:4", "text": "stp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memcpy-sve.S", "line_start": 121, "line_end": 177}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:5", "text": "subs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memcpy-sve.S", "line_start": 161, "line_end": 177}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#ifdef HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#ifdef HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcntb\tvlen", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "92864946def299cab01582672cb7510b2e996101", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/92864946def299cab01582672cb7510b2e996101/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#ifdef HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "cd28f3c4253257027f9834eb7b17db047346a267", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cd28f3c4253257027f9834eb7b17db047346a267/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:2", "text": "SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count\n\tcntb\tvlen\n\ttbnz\tvlen, 4, L(vlen128)\n\tld1b\tz0.b, p0/z, [src]\n\tst1b\tz0.b, p0, [dstin]\n\tret\n\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "cd28f3c4253257027f9834eb7b17db047346a267", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cd28f3c4253257027f9834eb7b17db047346a267/string/aarch64/memcpy-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:3", "text": "/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\nL(vlen128):\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "cd28f3c4253257027f9834eb7b17db047346a267", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cd28f3c4253257027f9834eb7b17db047346a267/string/aarch64/memcpy-sve.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:4", "text": "add\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\nL(vlen128):\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz1.b, p1, [dstin, 1, mul vl]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "cd28f3c4253257027f9834eb7b17db047346a267", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cd28f3c4253257027f9834eb7b17db047346a267/string/aarch64/memcpy-sve.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:5", "text": "str\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "cd28f3c4253257027f9834eb7b17db047346a267", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cd28f3c4253257027f9834eb7b17db047346a267/string/aarch64/memcpy-sve.S", "line_start": 161, "line_end": 183}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#if __ARM_FEATURE_SVE\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:2", "text": "Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\twhilelo p0.b, xzr, count\n\tcntb\tvlen\n\ttbnz\tvlen, 4, L(vlen128)\n\tld1b\tz0.b, p0/z, [src]\n\tst1b\tz0.b, p0, [dstin]\n\tret\n\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tldp\tA_q, B_q, [src]\n\tldp\tC_q, D_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_q, B_q, [dstin]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:3", "text": "L(copy128):\n\tldp\tE_q, F_q, [src, 32]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_q, H_q, [srcend, -64]\n\tstp\tG_q, H_q, [dstend, -64]\nL(copy96):\n\tstp\tA_q, B_q, [dstin]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tC_q, D_q, [dstend, -32]\n\tret\n\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align src to 16-byte alignment.  */\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_q, B_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldp\tC_q, D_q, [src, 48]\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\nL(loop64):\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [src, 80]\n\tstp\tC_q, D_q, [dst, 48]\n\tldp\tC_q, D_q, [src, 112]\n\tadd\tsrc, src, 64\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\nL(vlen128):\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz1.b, p1, [dstin, 1, mul vl]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy-sve.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:4", "text": "subs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_q, F_q, [srcend, -64]\n\tstp\tA_q, B_q, [dst, 16]\n\tldp\tA_q, B_q, [srcend, -32]\n\tstp\tC_q, D_q, [dst, 48]\n\tstp\tE_q, F_q, [dstend, -64]\n\tstp\tA_q, B_q, [dstend, -32]\n\tret\n\nL(vlen128):\n\twhilelo p1.b, vlen, count\n\tld1b\tz0.b, p0/z, [src, 0, mul vl]\n\tld1b\tz1.b, p1/z, [src, 1, mul vl]\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz1.b, p1, [dstin, 1, mul vl]\n\tret\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align srcend to 16-byte alignment.  */\nL(copy_long_backwards):\n\tcbz\ttmp1, L(return)\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tbic\tsrcend, srcend, 15\n\tsub\tcount, count, tmp1\n\tldp\tA_q, B_q, [srcend, -32]\n\tstr\tD_q, [dstend, -16]\n\tldp\tC_q, D_q, [srcend, -64]\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstr\tB_q, [dstend, -16]\n\tstr\tA_q, [dstend, -32]\n\tldp\tA_q, B_q, [srcend, -96]\n\tstr\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy-sve.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:5", "text": "str\tD_q, [dstend, -48]\n\tstr\tC_q, [dstend, -64]!\n\tldp\tC_q, D_q, [srcend, -128]\n\tsub\tsrcend, srcend, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tE_q, F_q, [src, 32]\n\tstp\tA_q, B_q, [dstend, -32]\n\tldp\tA_q, B_q, [src]\n\tstp\tC_q, D_q, [dstend, -64]\n\tstp\tE_q, F_q, [dstin, 32]\n\tstp\tA_q, B_q, [dstin]\nL(return):\n\tret\n\nEND (__memcpy_aarch64_sve)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy-sve.S", "line_start": 161, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#if __ARM_FEATURE_SVE\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy-sve.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#if __ARM_FEATURE_SVE\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define tmp1\tx6\n#define vlen\tx6\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n   SVE vectors are used to speedup small copies.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64_sve)\nENTRY (__memcpy_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy-sve.S", "license": "MIT", "commit": "8c107a34bb96a4c4a7de4ee6de210b30dbb6e45f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8c107a34bb96a4c4a7de4ee6de210b30dbb6e45f/string/aarch64/memcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldp\tA_l, A_h, [src]\n\tldp\tD_l, D_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "ret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tldp\tD_l, D_h, [srcend, -16]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\nL(copy96):\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": ".p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\nL(copy96):\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcbz\ttmp1, L(copy0)\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align dst to 16-byte alignment.  */\n\n\tldp\tD_l, D_h, [src]\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "ldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align dst to 16-byte alignment.  */\nL(copy_long_backwards):\n\tldp\tD_l, D_h, [srcend, -16]\n\tand\ttmp1, dstend, 15\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:6", "text": "sub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tG_l, G_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tG_l, G_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n\tret\n\nEND (__memcpy_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memcpy.S", "line_start": 201, "line_end": 239}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldp\tA_l, A_h, [src]\n\tldp\tD_l, D_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "ldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tldp\tD_l, D_h, [srcend, -16]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\nL(copy96):\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tC_l, C_h, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": "stp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\nL(copy96):\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcbz\ttmp1, L(copy0)\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align dst to 16-byte alignment.  */\n\n\tldp\tD_l, D_h, [src]\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "stp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\n\t/* Large backwards copy for overlapping copies.\n\t   Copy 16 bytes and then align dst to 16-byte alignment.  */\nL(copy_long_backwards):\n\tldp\tD_l, D_h, [srcend, -16]\n\tand\ttmp1, dstend, 15\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:6", "text": "ldp\tD_l, D_h, [srcend, -16]\n\tand\ttmp1, dstend, 15\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tG_l, G_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tG_l, G_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n\tret\n\nEND (__memcpy_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memcpy.S", "line_start": 201, "line_end": 242}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY_ALIAS (__memmove_aarch64)\nENTRY (__memcpy_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:6", "text": "sub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last iteration and copy 64 bytes from the start.  */\nL(copy64_from_start):\n\tldp\tG_l, G_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tG_l, G_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n\tret\n\nEND (__memcpy_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memcpy.S", "line_start": 201, "line_end": 241}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY (__memcpy_aarch64)\nENTRY_ALIAS (__memmove_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "718e742f3d05326de63c844c080948cc79dff701", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/718e742f3d05326de63c844c080948cc79dff701/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY (__memcpy_aarch64)\nENTRY_ALIAS (__memmove_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldp\tA_l, A_h, [src]\n\tldp\tD_l, D_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "718e742f3d05326de63c844c080948cc79dff701", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/718e742f3d05326de63c844c080948cc79dff701/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_lw\tw10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY (__memcpy_aarch64)\nENTRY_ALIAS (__memmove_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp     count, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "4c175c8b8e124961beb22b8f034fe16e8d3798d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4c175c8b8e124961beb22b8f034fe16e8d3798d0/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define tmp1\tx14\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The destination pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY (__memcpy_aarch64)\nENTRY_ALIAS (__memmove_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp     count, 128\n\tb.hi    L(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldp\tA_l, A_h, [src]\n\tldp\tD_l, D_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "4c175c8b8e124961beb22b8f034fe16e8d3798d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4c175c8b8e124961beb22b8f034fe16e8d3798d0/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "ret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):\n\tret\n\n\t.p2align 4\n\t/* Medium copies: 33..128 bytes.  */\nL(copy32_128):\n\tldp     A_l, A_h, [src]\n\tldp     B_l, B_h, [src, 16]\n\tldp     C_l, C_h, [srcend, -32]\n\tldp     D_l, D_h, [srcend, -16]\n\tcmp     count, 64\n\tb.hi    L(copy128)\n\tstp     A_l, A_h, [dstin]\n\tstp     B_l, B_h, [dstin, 16]\n\tstp     C_l, C_h, [dstend, -32]\n\tstp     D_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp     G_l, G_h, [dstend, -64]\n\tstp     H_l, H_h, [dstend, -48]\nL(copy96):\n\tstp\tA_l, A_h, [dstin]\n\tstp     B_l, B_h, [dstin, 16]\n\tstp     E_l, E_h, [dstin, 32]\n\tstp     F_l, F_h, [dstin, 48]\n\tstp     C_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "4c175c8b8e124961beb22b8f034fe16e8d3798d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4c175c8b8e124961beb22b8f034fe16e8d3798d0/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": ".p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tcmp\tcount, 96\n\tb.ls\tL(copy96)\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp     G_l, G_h, [dstend, -64]\n\tstp     H_l, H_h, [dstend, -48]\nL(copy96):\n\tstp\tA_l, A_h, [dstin]\n\tstp     B_l, B_h, [dstin, 16]\n\tstp     E_l, E_h, [dstin, 32]\n\tstp     F_l, F_h, [dstin, 48]\n\tstp     C_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Copy more than 128 bytes.  */\nL(copy_long):\n\t/* Use backwards copy if there is an overlap.  */\n\tsub\ttmp1, dstin, src\n\tcbz\ttmp1, L(copy0)\n\tcmp\ttmp1, count\n\tb.lo\tL(copy_long_backwards)\n\n\t/* Copy 16 bytes and then align dst to 16-byte alignment.  */\n\n\tldp\tD_l, D_h, [src]\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last iteration and copy 64 bytes from the end.  */\nL(copy64_from_end):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "4c175c8b8e124961beb22b8f034fe16e8d3798d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4c175c8b8e124961beb22b8f034fe16e8d3798d0/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define tmp1\tx14\n\n/* This implementation of memcpy correctly handles overlaps, therefore\n   __memmove_aarch64 aliases to __memcpy_aarch64. By moving the src and\n   dst buffer overlap check from the start of memmove code to the\n   beginning of large copy code, the overhead of combining memcpy\n   and memmove implementations is negligible.\n\n   Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..128 bytes which are fully unrolled, and large\n   copies (moves).\n\n   Large forward moves align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n\n   Large backward moves align dstend and use an unrolled loop processing\n   64 bytes per iteration.\n*/\n\nENTRY (__memcpy_aarch64)\nENTRY_ALIAS (__memmove_aarch64)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16\n\tb.ls\tL(copy16)\n\tcmp\tcount, 128\n\tb.hi\tL(move_long)\n\n\t/* Medium copies: 17..128 bytes.  */\n\tldp\tA_l, A_h, [src]\n\tldp\tD_l, D_h, [srcend, -16]\n\tcmp\tcount, 32\n\tb.hi\tL(copy33_128)\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16):\n\t/* 8-15 bytes.  */\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t.p2align 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "/* 8-15 bytes.  */\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t.p2align 4\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tA_hw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 33..128 bytes.  */\nL(copy33_128):\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy65_128)\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy65_128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tG_l, G_h, [dstend, -64]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": "stp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy65_128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\n\tret\n\n\t.p2align 4\n\t/* Move more than 128 bytes.  */\nL(move_long):\n\tsub\ttmp1, dstin, src\t/* Overlap check.  */\n\tcbz\ttmp1, L(copy0)\n\tcmp\ttmp1, count\n\tb.lo\tL(move_long_backwards)\n\n\t/* Align dst to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\tldp\tD_l, D_h, [src]\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "add\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end)\n\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\nL(copy64_from_end):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\nL(copy0):\n\tret\n\n\t.p2align 4\n\n\t/* Move more than 128 bytes where src and dst buffers overlap\n\t   and dst > src.\n\n     Align dstend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\nL(move_long_backwards):\n\tldp\tD_l, D_h, [srcend, -16]\n\tand\ttmp1, dstend, 15\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:6", "text": ".p2align 4\n\n\t/* Move more than 128 bytes where src and dst buffers overlap\n\t   and dst > src.\n\n     Align dstend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\nL(move_long_backwards):\n\tldp\tD_l, D_h, [srcend, -16]\n\tand\ttmp1, dstend, 15\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start)\n\nL(loop64_backwards):\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\nL(copy64_from_start):\n\tldp\tG_l, G_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tG_l, G_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n\tret\n\nEND (__memcpy_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy.S", "line_start": 201, "line_end": 255}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:7", "text": "ldp\tG_l, G_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tG_l, G_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n\tret\n\nEND (__memcpy_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy.S", "line_start": 241, "line_end": 255}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define A_hw\tw7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n/* Copies are split into 3 main cases: small copies of up to 32 bytes,\n   medium copies of 33..128 bytes which are fully unrolled. Large copies\n   of more than 128 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   In order to share code with memmove, small and medium copies read all\n   data before writing, allowing any kind of overlap. So small, medium\n   and large backwards memmoves are handled by falling through into memcpy.\n   Overlapping large forward memmoves use a loop that copies backwards.\n*/\n\nENTRY (__memcpy_aarch64)\n\tprfm\tPLDL1KEEP, [src]\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 32\n\tb.ls\tL(copy32)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "015c9519c1b230f0619dc34251c574871b989a52", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/015c9519c1b230f0619dc34251c574871b989a52/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define tmp1\tx14\n\n/* Copies are split into 3 main cases: small copies of up to 32 bytes,\n   medium copies of 33..128 bytes which are fully unrolled. Large copies\n   of more than 128 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   In order to share code with memmove, small and medium copies read all\n   data before writing, allowing any kind of overlap. So small, medium\n   and large backwards memmoves are handled by falling through into memcpy.\n   Overlapping large forward memmoves use a loop that copies backwards.\n*/\n\nENTRY (__memcpy_aarch64)\n\tprfm\tPLDL1KEEP, [src]\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 32\n\tb.ls\tL(copy32)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\n\t/* Medium copies: 33..128 bytes.  */\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tldp\tD_l, D_h, [srcend, -16]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..32 bytes.  */\nL(copy32):\n\t/* 16-32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\t1f\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstend, -16]\n\tret\n\t.p2align 4\n1:\n\t/* 8-15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "015c9519c1b230f0619dc34251c574871b989a52", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/015c9519c1b230f0619dc34251c574871b989a52/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "ldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstend, -16]\n\tret\n\t.p2align 4\n1:\n\t/* 8-15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tA_hw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  Copy 64 bytes from the start and\n\t   64 bytes from the end.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "015c9519c1b230f0619dc34251c574871b989a52", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/015c9519c1b230f0619dc34251c574871b989a52/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": "L(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long):\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tldp\tD_l, D_h, [src]\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(last64)\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\nL(last64):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "015c9519c1b230f0619dc34251c574871b989a52", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/015c9519c1b230f0619dc34251c574871b989a52/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "ldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\nL(last64):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\nEND (__memcpy_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "015c9519c1b230f0619dc34251c574871b989a52", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/015c9519c1b230f0619dc34251c574871b989a52/string/aarch64/memcpy.S", "line_start": 161, "line_end": 185}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define A_hw\tw7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tx14\n#define E_h\tx15\n#define F_l\tx16\n#define F_h\tx17\n#define G_l\tcount\n#define G_h\tdst\n#define H_l\tsrc\n#define H_h\tsrcend\n#define tmp1\tx14\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Copies are split into 3 main cases: small copies of up to 32 bytes,\n   medium copies of 33..128 bytes which are fully unrolled. Large copies\n   of more than 128 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   In order to share code with memmove, small and medium copies read all\n   data before writing, allowing any kind of overlap. So small, medium\n   and large backwards memmoves are handled by falling through into memcpy.\n   Overlapping large forward memmoves use a loop that copies backwards.\n*/", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "fec28a72e9dd4b740b85269f5a2668ca86ea7834", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fec28a72e9dd4b740b85269f5a2668ca86ea7834/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Copies are split into 3 main cases: small copies of up to 32 bytes,\n   medium copies of 33..128 bytes which are fully unrolled. Large copies\n   of more than 128 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   In order to share code with memmove, small and medium copies read all\n   data before writing, allowing any kind of overlap. So small, medium\n   and large backwards memmoves are handled by falling through into memcpy.\n   Overlapping large forward memmoves use a loop that copies backwards.\n*/\n\ndef_fn __memcpy_aarch64 p2align=6\n\tprfm\tPLDL1KEEP, [src]\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 32\n\tb.ls\tL(copy32)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\n\t/* Medium copies: 33..128 bytes.  */\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tldp\tD_l, D_h, [srcend, -16]\n\tcmp\tcount, 64\n\tb.hi\tL(copy128)\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..32 bytes.  */\nL(copy32):\n\t/* 16-32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\t1f\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstend, -16]\n\tret\n\t.p2align 4\n1:\n\t/* 8-15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "fec28a72e9dd4b740b85269f5a2668ca86ea7834", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fec28a72e9dd4b740b85269f5a2668ca86ea7834/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "ret\n\n\t.p2align 4\n\t/* Small copies: 0..32 bytes.  */\nL(copy32):\n\t/* 16-32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\t1f\n\tldp\tA_l, A_h, [src]\n\tldp\tB_l, B_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstend, -16]\n\tret\n\t.p2align 4\n1:\n\t/* 8-15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tA_hw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  Copy 64 bytes from the start and\n\t   64 bytes from the end.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\n\tstp\tC_l, C_h, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "fec28a72e9dd4b740b85269f5a2668ca86ea7834", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fec28a72e9dd4b740b85269f5a2668ca86ea7834/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": "strb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  Copy 64 bytes from the start and\n\t   64 bytes from the end.  */\nL(copy128):\n\tldp\tE_l, E_h, [src, 32]\n\tldp\tF_l, F_h, [src, 48]\n\tldp\tG_l, G_h, [srcend, -64]\n\tldp\tH_l, H_h, [srcend, -48]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tE_l, E_h, [dstin, 32]\n\tstp\tF_l, F_h, [dstin, 48]\n\tstp\tG_l, G_h, [dstend, -64]\n\tstp\tH_l, H_h, [dstend, -48]\n\tstp\tC_l, C_h, [dstend, -32]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long):\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tldp\tD_l, D_h, [src]\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(last64)\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\nL(last64):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "fec28a72e9dd4b740b85269f5a2668ca86ea7834", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fec28a72e9dd4b740b85269f5a2668ca86ea7834/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "subs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(last64)\nL(loop64):\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\nL(last64):\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\n\t.size\t__memcpy_aarch64, . - __memcpy_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "fec28a72e9dd4b740b85269f5a2668ca86ea7834", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fec28a72e9dd4b740b85269f5a2668ca86ea7834/string/aarch64/memcpy.S", "line_start": 161, "line_end": 193}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2012, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define A_hw\tw7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tsrc\n#define E_h\tcount\n#define F_l\tsrcend\n#define F_h\tdst\n#define tmp1\tx9\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..96 bytes which are fully unrolled. Large copies\n   of more than 96 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   Small and medium copies read all data before writing, allowing any\n   kind of overlap, and memmove tailcalls memcpy for these cases as\n   well as non-overlapping copies.\n*/\n\ndef_fn __memcpy_aarch64 p2align=6\n\tprfm\tPLDL1KEEP, [src]\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "16e59b75a5915f7e21d04f8aefc0dd788f94efd1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/16e59b75a5915f7e21d04f8aefc0dd788f94efd1/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": ".p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..96 bytes which are fully unrolled. Large copies\n   of more than 96 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   Small and medium copies read all data before writing, allowing any\n   kind of overlap, and memmove tailcalls memcpy for these cases as\n   well as non-overlapping copies.\n*/\n\ndef_fn __memcpy_aarch64 p2align=6\n\tprfm\tPLDL1KEEP, [src]\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16\n\tb.ls\tL(copy16)\n\tcmp\tcount, 96\n\tb.hi\tL(copy_long)\n\n\t/* Medium copies: 17..96 bytes.  */\n\tsub\ttmp1, count, 1\n\tldp\tA_l, A_h, [src]\n\ttbnz\ttmp1, 6, L(copy96)\n\tldp\tD_l, D_h, [srcend, -16]\n\ttbz\ttmp1, 5, 1f\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n1:\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16):\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "16e59b75a5915f7e21d04f8aefc0dd788f94efd1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/16e59b75a5915f7e21d04f8aefc0dd788f94efd1/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "/* Small copies: 0..16 bytes.  */\nL(copy16):\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tA_hw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 64..96 bytes.  Copy 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(copy96):\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [src, 32]\n\tldp\tD_l, D_h, [src, 48]\n\tldp\tE_l, E_h, [srcend, -32]\n\tldp\tF_l, F_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin, 32]\n\tstp\tD_l, D_h, [dstin, 48]\n\tstp\tE_l, E_h, [dstend, -32]\n\tstp\tF_l, F_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long):\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tldp\tD_l, D_h, [src]\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "16e59b75a5915f7e21d04f8aefc0dd788f94efd1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/16e59b75a5915f7e21d04f8aefc0dd788f94efd1/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": "stp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin, 32]\n\tstp\tD_l, D_h, [dstin, 48]\n\tstp\tE_l, E_h, [dstend, -32]\n\tstp\tF_l, F_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long):\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tldp\tD_l, D_h, [src]\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\t2f\n1:\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\n\t.size\t__memcpy_aarch64, . - __memcpy_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "16e59b75a5915f7e21d04f8aefc0dd788f94efd1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/16e59b75a5915f7e21d04f8aefc0dd788f94efd1/string/aarch64/memcpy.S", "line_start": 121, "line_end": 178}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\n\t.size\t__memcpy_aarch64, . - __memcpy_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "16e59b75a5915f7e21d04f8aefc0dd788f94efd1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/16e59b75a5915f7e21d04f8aefc0dd788f94efd1/string/aarch64/memcpy.S", "line_start": 161, "line_end": 178}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:1", "text": "/* Copyright (c) 2012, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/*\n * Copyright (c) 2015 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "7649da3fa2f41e85f2fc6e1401e37457022281dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7649da3fa2f41e85f2fc6e1401e37457022281dd/string/aarch64/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:2", "text": "*    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define A_hw\tw7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_l\tx10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tsrc\n#define E_h\tcount\n#define F_l\tsrcend\n#define F_h\tdst\n#define tmp1\tx9\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..96 bytes which are fully unrolled. Large copies\n   of more than 96 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   Small and medium copies read all data before writing, allowing any\n   kind of overlap, and memmove tailcalls memcpy for these cases as\n   well as non-overlapping copies.", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "7649da3fa2f41e85f2fc6e1401e37457022281dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7649da3fa2f41e85f2fc6e1401e37457022281dd/string/aarch64/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:3", "text": "#define F_h\tdst\n#define tmp1\tx9\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..96 bytes which are fully unrolled. Large copies\n   of more than 96 bytes align the destination and use an unrolled loop\n   processing 64 bytes per iteration.\n   Small and medium copies read all data before writing, allowing any\n   kind of overlap, and memmove tailcalls memcpy for these cases as\n   well as non-overlapping copies.\n*/\n\ndef_fn __memcpy_aarch64 p2align=6\n\tprfm\tPLDL1KEEP, [src]\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16\n\tb.ls\tL(copy16)\n\tcmp\tcount, 96\n\tb.hi\tL(copy_long)\n\n\t/* Medium copies: 17..96 bytes.  */\n\tsub\ttmp1, count, 1\n\tldp\tA_l, A_h, [src]\n\ttbnz\ttmp1, 6, L(copy96)\n\tldp\tD_l, D_h, [srcend, -16]\n\ttbz\ttmp1, 5, 1f\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [srcend, -32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstend, -32]\n1:\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16):\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "7649da3fa2f41e85f2fc6e1401e37457022281dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7649da3fa2f41e85f2fc6e1401e37457022281dd/string/aarch64/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:4", "text": "stp\tC_l, C_h, [dstend, -32]\n1:\n\tstp\tA_l, A_h, [dstin]\n\tstp\tD_l, D_h, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16):\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\t.p2align 4\n1:\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tA_hw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 64..96 bytes.  Copy 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(copy96):\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [src, 32]\n\tldp\tD_l, D_h, [src, 48]\n\tldp\tE_l, E_h, [srcend, -32]\n\tldp\tF_l, F_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin, 32]\n\tstp\tD_l, D_h, [dstin, 48]\n\tstp\tE_l, E_h, [dstend, -32]\n\tstp\tF_l, F_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "7649da3fa2f41e85f2fc6e1401e37457022281dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7649da3fa2f41e85f2fc6e1401e37457022281dd/string/aarch64/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:5", "text": "32 bytes from the end.  */\nL(copy96):\n\tldp\tB_l, B_h, [src, 16]\n\tldp\tC_l, C_h, [src, 32]\n\tldp\tD_l, D_h, [src, 48]\n\tldp\tE_l, E_h, [srcend, -32]\n\tldp\tF_l, F_h, [srcend, -16]\n\tstp\tA_l, A_h, [dstin]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin, 32]\n\tstp\tD_l, D_h, [dstin, 48]\n\tstp\tE_l, E_h, [dstend, -32]\n\tstp\tF_l, F_h, [dstend, -16]\n\tret\n\n\t/* Align DST to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long):\n\tand\ttmp1, dstin, 15\n\tbic\tdst, dstin, 15\n\tldp\tD_l, D_h, [src]\n\tsub\tsrc, src, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tD_l, D_h, [dstin]\n\tldp\tB_l, B_h, [src, 32]\n\tldp\tC_l, C_h, [src, 48]\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\t2f\n1:\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [src, 16]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [src, 32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "7649da3fa2f41e85f2fc6e1401e37457022281dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7649da3fa2f41e85f2fc6e1401e37457022281dd/string/aarch64/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy.S:6", "text": "ldp\tC_l, C_h, [src, 48]\n\tstp\tD_l, D_h, [dst, 64]!\n\tldp\tD_l, D_h, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [srcend, -64]\n\tstp\tA_l, A_h, [dst, 16]\n\tldp\tA_l, A_h, [srcend, -48]\n\tstp\tB_l, B_h, [dst, 32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dst, 48]\n\tldp\tC_l, C_h, [srcend, -16]\n\tstp\tD_l, D_h, [dst, 64]\n\tstp\tE_l, E_h, [dstend, -64]\n\tstp\tA_l, A_h, [dstend, -48]\n\tstp\tB_l, B_h, [dstend, -32]\n\tstp\tC_l, C_h, [dstend, -16]\n\tret\n\n\t.size\t__memcpy_aarch64, . - __memcpy_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy.S", "license": "MIT", "commit": "7649da3fa2f41e85f2fc6e1401e37457022281dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7649da3fa2f41e85f2fc6e1401e37457022281dd/string/aarch64/memcpy.S", "line_start": 201, "line_end": 225}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2019-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_l\tx6\n#define A_lw\tw6\n#define A_h\tx7\n#define B_l\tx8\n#define B_lw\tw8\n#define B_h\tx9\n#define C_lw\tw10\n#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation handles overlaps and supports both memcpy and memmove\n   from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY (__memcpy_aarch64_simd)\nENTRY_ALIAS (__memmove_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "1f931789af1de083166923cf490a02e721e79daf", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1f931789af1de083166923cf490a02e721e79daf/string/aarch64/memcpy_simd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:2", "text": "from a single entry point.  It uses unaligned accesses and branchless\n   sequences to keep the code small, simple and improve performance.\n\n   Copies are split into 3 main cases: small copies of up to 32 bytes, medium\n   copies of up to 128 bytes, and large copies.  The overhead of the overlap\n   check is negligible since it is only required for large copies.\n\n   Large copies use a software pipelined loop processing 64 bytes per iteration.\n   The source pointer is 16-byte aligned to minimize unaligned accesses.\n   The loop tail is handled by always copying 64 bytes from the end.\n*/\n\nENTRY (__memcpy_aarch64_simd)\nENTRY_ALIAS (__memmove_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long)\n\tcmp\tcount, 32\n\tb.hi\tL(copy32_128)\n\n\t/* Small copies: 0..32 bytes.  */\n\tcmp\tcount, 16\n\tb.lo\tL(copy16)\n\tldr\tA_q, [src]\n\tldr\tB_q, [srcend, -16]\n\tstr\tA_q, [dstin]\n\tstr\tB_q, [dstend, -16]\n\tret\n\n\t/* Copy 8-15 bytes.  */\nL(copy16):\n\ttbz\tcount, 3, L(copy8)\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 3\n\t/* Copy 4-7 bytes.  */\nL(copy8):\n\ttbz\tcount, 2, L(copy4)\n\tldr\tA_lw, [src]\n\tldr\tB_lw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tB_lw, [dstend, -4]\n\tret\n\n\t/* Copy 0..3 bytes using a branchless sequence.  */\nL(copy4):\n\tcbz\tcount, L(copy0)\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tC_lw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tC_lw, [dstend, -1]\nL(copy0):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "1f931789af1de083166923cf490a02e721e79daf", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1f931789af1de083166923cf490a02e721e79daf/string/aarch64/memcpy_simd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:2", "text": "#define tmp1\tx14\n\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* This implementation of memcpy correctly handles overlaps, therefore\n   __memmove_aarch64_simd aliases to __memcpy_aarch64_simd. By moving the\n   src and dst buffer overlap check from the start of memmove code to the\n   beginning of large copy code, the overhead of combining memcpy\n   and memmove implementations is negligible.\n\n   Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..128 bytes which are fully unrolled, and large\n   copies (moves).\n\n   Large forward moves align the source and use an unrolled loop\n   processing 64 bytes per iteration.\n\n   Large backward moves align srcend and use an unrolled loop processing\n   64 bytes per iteration.\n*/\n\nENTRY (__memcpy_aarch64_simd)\nENTRY_ALIAS (__memmove_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16\n\tb.ls\tL(copy16_simd)\n\tcmp\tcount, 128\n\tb.hi\tL(move_long_simd)\n\n\t/* Medium copies: 17..128 bytes.  */\n\tldr\tA_q, [src]\n\tldr\tD_q, [srcend, -16]\n\tcmp\tcount, 32\n\tb.hi\tL(copy33_128_simd)\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16_simd):\n\t/* 8-15 bytes.  */\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 4\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy_simd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:3", "text": "cmp\tcount, 32\n\tb.hi\tL(copy33_128_simd)\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16_simd):\n\t/* 8-15 bytes.  */\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_l, [src]\n\tldr\tA_h, [srcend, -8]\n\tstr\tA_l, [dstin]\n\tstr\tA_h, [dstend, -8]\n\tret\n\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_lw, [src]\n\tldr\tA_hw, [srcend, -4]\n\tstr\tA_lw, [dstin]\n\tstr\tA_hw, [dstend, -4]\n\tret\n\n\t.p2align 4\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_lw, [src]\n\tldrb\tA_hw, [srcend, -1]\n\tldrb\tB_lw, [src, tmp1]\n\tstrb\tA_lw, [dstin]\n\tstrb\tB_lw, [dstin, tmp1]\n\tstrb\tA_hw, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 33..128 bytes.  */\nL(copy33_128_simd):\n\tldr\tB_q, [src, 16]\n\tldr\tC_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy65_128_simd)\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tstr\tB_q, [dstin, 16]\n\tstr\tC_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy65_128_simd):\n\tldr\tE_q, [src, 32]\n\tldr\tF_q, [src, 48]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy_simd.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:4", "text": "2:\tret\n\n\t.p2align 4\n\t/* Copy 33..128 bytes.  */\nL(copy33_128_simd):\n\tldr\tB_q, [src, 16]\n\tldr\tC_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy65_128_simd)\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tstr\tB_q, [dstin, 16]\n\tstr\tC_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy65_128_simd):\n\tldr\tE_q, [src, 32]\n\tldr\tF_q, [src, 48]\n\tldr\tG_q, [srcend, -64]\n\tldr\tH_q, [srcend, -48]\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tstr\tB_q, [dstin, 16]\n\tstr\tC_q, [dstend, -32]\n\tstr\tE_q, [dstin, 32]\n\tstr\tF_q, [dstin, 48]\n\tstr\tG_q, [dstend, -64]\n\tstr\tH_q, [dstend, -48]\n\tret\n\n\t.p2align 4\n\t/* Move more than 128 bytes.  */\nL(move_long_simd):\n\tsub\ttmp1, dstin, src\t/* Overlap check.  */\n\tcbz\ttmp1, L(copy0_simd)\n\tcmp\ttmp1, count\n\tb.lo\tL(move_long_backwards_simd)\n\n\t/* Align src to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldr\tA_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldr\tB_q, [src, 32]\n\tldr\tC_q, [src, 48]\n\tldr\tD_q, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end_simd)\n\nL(loop64_simd):\n\tstr\tA_q, [dst, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy_simd.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:5", "text": "/* Align src to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldr\tA_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldr\tB_q, [src, 32]\n\tldr\tC_q, [src, 48]\n\tldr\tD_q, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\tL(copy64_from_end_simd)\n\nL(loop64_simd):\n\tstr\tA_q, [dst, 16]\n\tldr\tA_q, [src, 16]\n\tstr\tB_q, [dst, 32]\n\tldr\tB_q, [src, 32]\n\tstr\tC_q, [dst, 48]\n\tldr\tC_q, [src, 48]\n\tstr\tD_q, [dst, 64]!\n\tldr\tD_q, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_simd)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\nL(copy64_from_end_simd):\n\tldr\tE_q, [srcend, -64]\n\tstr\tA_q, [dst, 16]\n\tldr\tA_q, [srcend, -48]\n\tstr\tB_q, [dst, 32]\n\tldr\tB_q, [srcend, -32]\n\tstr\tC_q, [dst, 48]\n\tldr\tC_q, [srcend, -16]\n\tstr\tD_q, [dst, 64]\n\tstr\tE_q, [dstend, -64]\n\tstr\tA_q, [dstend, -48]\n\tstr\tB_q, [dstend, -32]\n\tstr\tC_q, [dstend, -16]\n\nL(copy0_simd):\n\tret\n\n\t.p2align 4\n\n\t/* Move more than 128 bytes where src and dst buffers overlap\n\t   and dst > src.\n\n     Align srcend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy_simd.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:6", "text": "ldr\tC_q, [srcend, -16]\n\tstr\tD_q, [dst, 64]\n\tstr\tE_q, [dstend, -64]\n\tstr\tA_q, [dstend, -48]\n\tstr\tB_q, [dstend, -32]\n\tstr\tC_q, [dstend, -16]\n\nL(copy0_simd):\n\tret\n\n\t.p2align 4\n\n\t/* Move more than 128 bytes where src and dst buffers overlap\n\t   and dst > src.\n\n     Align srcend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\nL(move_long_backwards_simd):\n\tldr\tD_q, [srcend, -16]\n\tand\ttmp1, srcend, 15\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldr\tA_q, [srcend, -16]\n\tstr\tD_q, [dstend, -16]\n\tldr\tB_q, [srcend, -32]\n\tldr\tC_q, [srcend, -48]\n\tldr\tD_q, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\tL(copy64_from_start_simd)\n\nL(loop64_backwards_simd):\n\tstr\tA_q, [dstend, -16]\n\tldr\tA_q, [srcend, -16]\n\tstr\tB_q, [dstend, -32]\n\tldr\tB_q, [srcend, -32]\n\tstr\tC_q, [dstend, -48]\n\tldr\tC_q, [srcend, -48]\n\tstr\tD_q, [dstend, -64]!\n\tldr\tD_q, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards_simd)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\nL(copy64_from_start_simd):\n\tldr\tG_q, [src, 48]\n\tstr\tA_q, [dstend, -16]\n\tldr\tA_q, [src, 32]\n\tstr\tB_q, [dstend, -32]\n\tldr\tB_q, [src, 16]\n\tstr\tC_q, [dstend, -48]\n\tldr\tC_q, [src]\n\tstr\tD_q, [dstend, -64]\n\tstr\tG_q, [dstin, 48]\n\tstr\tA_q, [dstin, 32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy_simd.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:7", "text": "ldr\tC_q, [srcend, -48]\n\tstr\tD_q, [dstend, -64]!\n\tldr\tD_q, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(loop64_backwards_simd)\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\nL(copy64_from_start_simd):\n\tldr\tG_q, [src, 48]\n\tstr\tA_q, [dstend, -16]\n\tldr\tA_q, [src, 32]\n\tstr\tB_q, [dstend, -32]\n\tldr\tB_q, [src, 16]\n\tstr\tC_q, [dstend, -48]\n\tldr\tC_q, [src]\n\tstr\tD_q, [dstend, -64]\n\tstr\tG_q, [dstin, 48]\n\tstr\tA_q, [dstin, 32]\n\tstr\tB_q, [dstin, 16]\n\tstr\tC_q, [dstin]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "3377796fe24ff1d5396609205426402678208eb1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3377796fe24ff1d5396609205426402678208eb1/string/aarch64/memcpy_simd.S", "line_start": 241, "line_end": 265}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:1", "text": "/*\n * memcpy version using SIMD registers\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define dst\tx3\n#define srcend\tx4\n#define dstend\tx5\n#define A_x\tx6\n#define B_x\tx7\n#define A_w\tw6\n#define B_w\tw7\n#define C_w\tw8\n#define tmp1\tx14\n#define A_q\tq0\n#define B_q\tq1\n#define C_q\tq2\n#define D_q\tq3\n#define E_q\tq4\n#define F_q\tq5\n#define G_q\tq6\n#define H_q\tq7\n\n/* Copies are split into 3 main cases: small copies of up to 16 bytes,\n   medium copies of 17..128 bytes which are fully unrolled. Large copies\n   of more than 128 bytes align the source and use an unrolled loop\n   processing 64 bytes per iteration.\n*/\n\nENTRY (__memcpy_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16\n\tb.ls\tL(copy16)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long_simd)\n\n\t/* Medium copies: 17..128 bytes.  */\n\tldr\tA_q, [src]\n\tldr\tD_q, [srcend, -16]\n\tcmp\tcount, 32\n\tb.hi\tL(copy33_128)\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tret\n\n\t.p2align 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3/string/aarch64/memcpy_simd.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:2", "text": "*/\n\nENTRY (__memcpy_aarch64_simd)\n\tadd\tsrcend, src, count\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 16\n\tb.ls\tL(copy16)\n\tcmp\tcount, 128\n\tb.hi\tL(copy_long_simd)\n\n\t/* Medium copies: 17..128 bytes.  */\n\tldr\tA_q, [src]\n\tldr\tD_q, [srcend, -16]\n\tcmp\tcount, 32\n\tb.hi\tL(copy33_128)\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Small copies: 0..16 bytes.  */\nL(copy16):\n\t/* 8-16 bytes.  */\n\tcmp\tcount, 8\n\tb.lo\t1f\n\tldr\tA_x, [src]\n\tldr\tB_x, [srcend, -8]\n\tstr\tA_x, [dstin]\n\tstr\tB_x, [dstend, -8]\n\tret\n\n\t.p2align 4\n1:\n\t/* 4-7 bytes.  */\n\ttbz\tcount, 2, 1f\n\tldr\tA_w, [src]\n\tldr\tB_w, [srcend, -4]\n\tstr\tA_w, [dstin]\n\tstr\tB_w, [dstend, -4]\n\tret\n\n\t.p2align 4\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_w, [src]\n\tldrb\tB_w, [srcend, -1]\n\tldrb\tC_w, [src, tmp1]\n\tstrb\tA_w, [dstin]\n\tstrb\tC_w, [dstin, tmp1]\n\tstrb\tB_w, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 33..128 bytes.  */\nL(copy33_128):\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3/string/aarch64/memcpy_simd.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:3", "text": ".p2align 4\n\t/* Copy 0..3 bytes.  Use a branchless sequence that copies the same\n\t   byte 3 times if count==1, or the 2nd byte twice if count==2.  */\n1:\n\tcbz\tcount, 2f\n\tlsr\ttmp1, count, 1\n\tldrb\tA_w, [src]\n\tldrb\tB_w, [srcend, -1]\n\tldrb\tC_w, [src, tmp1]\n\tstrb\tA_w, [dstin]\n\tstrb\tC_w, [dstin, tmp1]\n\tstrb\tB_w, [dstend, -1]\n2:\tret\n\n\t.p2align 4\n\t/* Copy 33..128 bytes.  */\nL(copy33_128):\n\tstr\tA_q, [dstin]\n\tstr\tD_q, [dstend, -16]\n\tldr\tB_q, [src, 16]\n\tldr\tC_q, [srcend, -32]\n\tcmp\tcount, 64\n\tb.hi\tL(copy65_128)\n\tstr\tB_q, [dstin, 16]\n\tstr\tC_q, [dstend, -32]\n\tret\n\n\t.p2align 4\n\t/* Copy 65..128 bytes.  */\nL(copy65_128):\n\tldr\tE_q, [src, 32]\n\tldr\tF_q, [src, 48]\n\tstr\tB_q, [dstin, 16]\n\tstr\tC_q, [dstend, -32]\n\tldr\tG_q, [srcend, -64]\n\tldr\tH_q, [srcend, -48]\n\tstr\tE_q, [dstin, 32]\n\tstr\tF_q, [dstin, 48]\n\tstr\tG_q, [dstend, -64]\n\tstr\tH_q, [dstend, -48]\n\tret\n\n\t/* Align SRC to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long_simd):\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldr\tA_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldr\tB_q, [src, 32]\n\tldr\tC_q, [src, 48]\n\tldr\tD_q, [src, 64]!", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3/string/aarch64/memcpy_simd.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:4", "text": "str\tH_q, [dstend, -48]\n\tret\n\n\t/* Align SRC to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.  There are at least 128 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.  The loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\t.p2align 4\nL(copy_long_simd):\n\tldr\tD_q, [src]\n\tand\ttmp1, src, 15\n\tbic\tsrc, src, 15\n\tsub\tdst, dstin, tmp1\n\tadd\tcount, count, tmp1\t/* Count is now 16 too large.  */\n\tldr\tA_q, [src, 16]\n\tstr\tD_q, [dstin]\n\tldr\tB_q, [src, 32]\n\tldr\tC_q, [src, 48]\n\tldr\tD_q, [src, 64]!\n\tsubs\tcount, count, 128 + 16\t/* Test and readjust count.  */\n\tb.ls\t2f\n\n1:\n\tstr\tA_q, [dst, 16]\n\tldr\tA_q, [src, 16]\n\tstr\tB_q, [dst, 32]\n\tldr\tB_q, [src, 32]\n\tstr\tC_q, [dst, 48]\n\tldr\tC_q, [src, 48]\n\tstr\tD_q, [dst, 64]!\n\tldr\tD_q, [src, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.  The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the end even if\n\t   there is just 1 byte left.  */\n2:\n\tldr\tE_q, [srcend, -64]\n\tstr\tA_q, [dst, 16]\n\tldr\tA_q, [srcend, -48]\n\tstr\tB_q, [dst, 32]\n\tldr\tB_q, [srcend, -32]\n\tstr\tC_q, [dst, 48]\n\tldr\tC_q, [srcend, -16]\n\tstr\tD_q, [dst, 64]\n\tstr\tE_q, [dstend, -64]\n\tstr\tA_q, [dstend, -48]\n\tstr\tB_q, [dstend, -32]\n\tstr\tC_q, [dstend, -16]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3/string/aarch64/memcpy_simd.S", "line_start": 121, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/aarch64/memcpy_simd.S:5", "text": "str\tA_q, [dst, 16]\n\tldr\tA_q, [srcend, -48]\n\tstr\tB_q, [dst, 32]\n\tldr\tB_q, [srcend, -32]\n\tstr\tC_q, [dst, 48]\n\tldr\tC_q, [srcend, -16]\n\tstr\tD_q, [dst, 64]\n\tstr\tE_q, [dstend, -64]\n\tstr\tA_q, [dstend, -48]\n\tstr\tB_q, [dstend, -32]\n\tstr\tC_q, [dstend, -16]\n\tret\n\nEND (__memcpy_aarch64_simd)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memcpy_simd.S", "license": "MIT", "commit": "6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d3ae5fc1a64ec195f22a48bc51658cff7cf1cb3/string/aarch64/memcpy_simd.S", "line_start": 161, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove-mops.S:1", "text": "/*\n * memmove using MOPS extension.\n *\n * Copyright (c) 2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\nENTRY (__memmove_aarch64_mops)\n\tmov\tx3, x0\n\t.inst\t0x1d010443\t/* cpyp    [x3]!, [x1]!, x2!  */\n\t.inst\t0x1d410443\t/* cpym    [x3]!, [x1]!, x2!  */\n\t.inst\t0x1d810443\t/* cpye    [x3]!, [x1]!, x2!  */\n\tret\n\nEND (__memmove_aarch64_mops)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove-mops.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memmove-mops.S", "line_start": 1, "line_end": 17}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove-mops.S:1", "text": "/*\n * memmove using MOPS extension.\n *\n * Copyright (c) 2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\nENTRY (__memmove_aarch64_mops)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\n\tmov\tx3, x0\n\t.inst\t0x1d010443\t/* cpyp    [x3]!, [x1]!, x2!  */\n\t.inst\t0x1d410443\t/* cpym    [x3]!, [x1]!, x2!  */\n\t.inst\t0x1d810443\t/* cpye    [x3]!, [x1]!, x2!  */\n\tret\n\nEND (__memmove_aarch64_mops)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove-mops.S", "license": "MIT", "commit": "6fb4d63b8f1f5ecd555e1155780586b2b4271696", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6fb4d63b8f1f5ecd555e1155780586b2b4271696/string/aarch64/memmove-mops.S", "line_start": 1, "line_end": 21}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:1", "text": "/*\n * memmove - copy memory area\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Parameters and result.  */\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define srcend\tx3\n#define dstend\tx4\n#define tmp1\tx5\n#define A_l\tx6\n#define A_h\tx7\n#define B_l\tx8\n#define B_h\tx9\n#define C_l\tx10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tcount\n#define E_h\ttmp1\n\n/* All memmoves up to 96 bytes are done by memcpy as it supports overlaps.\n   Larger backwards copies are also handled by memcpy. The only remaining\n   case is forward large copies.  The destination is aligned, and an\n   unrolled loop processes 64 bytes per iteration.\n*/\n\ndef_fn __memmove_aarch64, 6\n\tsub\ttmp1, dstin, src\n\tcmp\tcount, 96\n\tccmp\ttmp1, count, 2, hi\n\tb.hs\t__memcpy_aarch64\n\n\tcbz\ttmp1, 3f\n\tadd\tdstend, dstin, count\n\tadd\tsrcend, src, count\n\n\t/* Align dstend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\tand\ttmp1, dstend, 15", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "e908e6fe036fd82f6f721a5ec1e39f69adc9accd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e908e6fe036fd82f6f721a5ec1e39f69adc9accd/string/aarch64/memmove.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:2", "text": "case is forward large copies.  The destination is aligned, and an\n   unrolled loop processes 64 bytes per iteration.\n*/\n\ndef_fn __memmove_aarch64, 6\n\tsub\ttmp1, dstin, src\n\tcmp\tcount, 96\n\tccmp\ttmp1, count, 2, hi\n\tb.hs\t__memcpy_aarch64\n\n\tcbz\ttmp1, 3f\n\tadd\tdstend, dstin, count\n\tadd\tsrcend, src, count\n\n\t/* Align dstend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\tand\ttmp1, dstend, 15\n\tldp\tD_l, D_h, [srcend, -16]\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\t2f\n\tnop\n1:\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tE_l, E_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "e908e6fe036fd82f6f721a5ec1e39f69adc9accd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e908e6fe036fd82f6f721a5ec1e39f69adc9accd/string/aarch64/memmove.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:3", "text": "ldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tE_l, E_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n3:\tret\n\n\t.size\t__memmove_aarch64, . - __memmove_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "e908e6fe036fd82f6f721a5ec1e39f69adc9accd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e908e6fe036fd82f6f721a5ec1e39f69adc9accd/string/aarch64/memmove.S", "line_start": 81, "line_end": 103}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:1", "text": "/* Copyright (c) 2013, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/*\n * Copyright (c) 2015 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n */\n\n\t.macro def_fn f p2align=0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "fd326f90617f11f528909f8d1aa44f67bd743c84", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fd326f90617f11f528909f8d1aa44f67bd743c84/string/aarch64/memmove.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:2", "text": "*    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Parameters and result.  */\n#define dstin\tx0\n#define src\tx1\n#define count\tx2\n#define srcend\tx3\n#define dstend\tx4\n#define tmp1\tx5\n#define A_l\tx6\n#define A_h\tx7\n#define B_l\tx8\n#define B_h\tx9\n#define C_l\tx10\n#define C_h\tx11\n#define D_l\tx12\n#define D_h\tx13\n#define E_l\tcount\n#define E_h\ttmp1\n\n/* All memmoves up to 96 bytes are done by memcpy as it supports overlaps.\n   Larger backwards copies are also handled by memcpy. The only remaining\n   case is forward large copies.  The destination is aligned, and an\n   unrolled loop processes 64 bytes per iteration.\n*/\n\ndef_fn __memmove_aarch64, 6\n\tsub\ttmp1, dstin, src\n\tcmp\tcount, 96\n\tccmp\ttmp1, count, 2, hi\n\tb.hs\t__memcpy_aarch64\n\n\tcbz\ttmp1, 3f\n\tadd\tdstend, dstin, count\n\tadd\tsrcend, src, count", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "fd326f90617f11f528909f8d1aa44f67bd743c84", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fd326f90617f11f528909f8d1aa44f67bd743c84/string/aarch64/memmove.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:3", "text": "#define D_l\tx12\n#define D_h\tx13\n#define E_l\tcount\n#define E_h\ttmp1\n\n/* All memmoves up to 96 bytes are done by memcpy as it supports overlaps.\n   Larger backwards copies are also handled by memcpy. The only remaining\n   case is forward large copies.  The destination is aligned, and an\n   unrolled loop processes 64 bytes per iteration.\n*/\n\ndef_fn __memmove_aarch64, 6\n\tsub\ttmp1, dstin, src\n\tcmp\tcount, 96\n\tccmp\ttmp1, count, 2, hi\n\tb.hs\t__memcpy_aarch64\n\n\tcbz\ttmp1, 3f\n\tadd\tdstend, dstin, count\n\tadd\tsrcend, src, count\n\n\t/* Align dstend to 16 byte alignment so that we don't cross cache line\n\t   boundaries on both loads and stores.\t There are at least 96 bytes\n\t   to copy, so copy 16 bytes unaligned and then align.\tThe loop\n\t   copies 64 bytes per iteration and prefetches one iteration ahead.  */\n\n\tand\ttmp1, dstend, 15\n\tldp\tD_l, D_h, [srcend, -16]\n\tsub\tsrcend, srcend, tmp1\n\tsub\tcount, count, tmp1\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tD_l, D_h, [dstend, -16]\n\tldp\tB_l, B_h, [srcend, -32]\n\tldp\tC_l, C_h, [srcend, -48]\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsub\tdstend, dstend, tmp1\n\tsubs\tcount, count, 128\n\tb.ls\t2f\n\tnop\n1:\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "fd326f90617f11f528909f8d1aa44f67bd743c84", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fd326f90617f11f528909f8d1aa44f67bd743c84/string/aarch64/memmove.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memmove.S:4", "text": "stp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [srcend, -16]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [srcend, -32]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [srcend, -48]\n\tstp\tD_l, D_h, [dstend, -64]!\n\tldp\tD_l, D_h, [srcend, -64]!\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\n\t/* Write the last full set of 64 bytes.\t The remainder is at most 64\n\t   bytes, so it is safe to always copy 64 bytes from the start even if\n\t   there is just 1 byte left.  */\n2:\n\tldp\tE_l, E_h, [src, 48]\n\tstp\tA_l, A_h, [dstend, -16]\n\tldp\tA_l, A_h, [src, 32]\n\tstp\tB_l, B_h, [dstend, -32]\n\tldp\tB_l, B_h, [src, 16]\n\tstp\tC_l, C_h, [dstend, -48]\n\tldp\tC_l, C_h, [src]\n\tstp\tD_l, D_h, [dstend, -64]\n\tstp\tE_l, E_h, [dstin, 48]\n\tstp\tA_l, A_h, [dstin, 32]\n\tstp\tB_l, B_h, [dstin, 16]\n\tstp\tC_l, C_h, [dstin]\n3:\tret\n\n\t.size\t__memmove_aarch64, . - __memmove_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memmove.S", "license": "MIT", "commit": "fd326f90617f11f528909f8d1aa44f67bd743c84", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fd326f90617f11f528909f8d1aa44f67bd743c84/string/aarch64/memmove.S", "line_start": 121, "line_end": 150}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:2", "text": "which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\n\tnop\nL(start_loop):\n\tsubs\tcntrem, src, srcin\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tsub\tcntrem, cntrem, 1\n\ttbz\tcntrem, 4, L(loop32_2)\n\tadd\tsrc, src, 16\n\n\t.p2align 5\nL(loop32):\n\tldr\tqdata, [src, -32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tsub\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:3", "text": "L(loop32_2):\n\tldr\tqdata, [src, -16]\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tsub\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin\n\tcsel\tresult, tmp, xzr, hs\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memrchr.S", "line_start": 81, "line_end": 110}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:2", "text": "which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\n\tnop\nL(start_loop):\n\tsubs\tcntrem, src, srcin\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tsub\tcntrem, cntrem, 1\n\ttbz\tcntrem, 4, L(loop32_2)\n\tadd\tsrc, src, 16\n\n\t.p2align 5\nL(loop32):\n\tldr\tqdata, [src, -32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tsub\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:3", "text": "cbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tsub\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin\n\tcsel\tresult, tmp, xzr, hs\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memrchr.S", "line_start": 81, "line_end": 111}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "a1547d148400deffeaab1cd484638ec03a519682", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a1547d148400deffeaab1cd484638ec03a519682/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:2", "text": "which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tshrn\tvend.8b, vhas_chr.8h, 4            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(start_loop):\n\tsub\ttmp, end, src\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, -16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/memrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:3", "text": "L(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin\n\tcsel\tresult, tmp, xzr, hs\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/memrchr.S", "line_start": 81, "line_end": 108}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define wtmp\t\tw7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vrepmask\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:2", "text": "For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(start_loop):\n\tsub\ttmp, end, src\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, -16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:3", "text": ".p2align 4\nL(loop32):\n\tldr\tqdata, [src, -16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin\n\tcsel\tresult, tmp, xzr, hs\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memrchr.S", "line_start": 81, "line_end": 116}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define wtmp\t\tw7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vrepmask\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tPTR_ARG (0)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:1", "text": "/*\n * memrchr - find last character in a memory zone.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define cntin\t\tx2\n#define result\t\tx0\n\n#define src\t\tx3\n#define cntrem\t\tx4\n#define synd\t\tx5\n#define shift\t\tx6\n#define\ttmp\t\tx7\n#define wtmp\t\tw7\n#define end\t\tx8\n#define endm1\t\tx9\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_chr\tv2\n#define vrepmask\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:2", "text": "For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__memrchr_aarch64)\n\tadd\tend, srcin, cntin\n\tsub\tendm1, end, 1\n\tbic\tsrc, endm1, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tneg\tshift, end, lsl 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b            /* 128->64 */\n\tfmov\tsynd, dend\n\tlsl\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\n\n\tclz\tsynd, synd\n\tsub\tresult, endm1, synd, lsr 2\n\tcmp\tcntin, synd, lsr 2\n\tcsel\tresult, result, xzr, hi\n\tret\n\nL(start_loop):\n\tsub\ttmp, end, src\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 4\nL(loop32):\n\tldr\tqdata, [src, -16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:3", "text": "L(loop32):\n\tldr\tqdata, [src, -16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin\n\tcsel\tresult, tmp, xzr, hs\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memrchr.S", "line_start": 81, "line_end": 115}
{"id": "ARM-software/optimized-routines:string/aarch64/memrchr.S:3", "text": "L(loop32):\n\tldr\tqdata, [src, -16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\n\nL(loop32_2):\n\tldr\tqdata, [src, -16]!\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\n\tadd\ttmp, src, 15\n#ifdef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tsub\ttmp, tmp, synd, lsr 2\n\tcmp\ttmp, srcin\n\tcsel\tresult, tmp, xzr, hs\n\tret\n\nL(nomatch):\n\tmov\tresult, 0\n\tret\n\nEND (__memrchr_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memrchr.S", "license": "MIT", "commit": "ad3f8defff6ec560994d469d656ef2ec6804c22f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ad3f8defff6ec560994d469d656ef2ec6804c22f/string/aarch64/memrchr.S", "line_start": 81, "line_end": 117}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-mops.S:1", "text": "/*\n * memset using MOPS extension.\n *\n * Copyright (c) 2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\nENTRY (__memset_aarch64_mops)\n\tmov     x3, x0\n\t.inst   0x19c10443\t/* setp    [x3]!, x2!, x1  */\n\t.inst   0x19c14443\t/* setm    [x3]!, x2!, x1  */\n\t.inst   0x19c18443\t/* sete    [x3]!, x2!, x1  */\n\tret\n\nEND (__memset_aarch64_mops)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-mops.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset-mops.S", "line_start": 1, "line_end": 17}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-mops.S:1", "text": "/*\n * memset using MOPS extension.\n *\n * Copyright (c) 2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\nENTRY (__memset_aarch64_mops)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tmov     x3, x0\n\t.inst   0x19c10443\t/* setp    [x3]!, x2!, x1  */\n\t.inst   0x19c14443\t/* setm    [x3]!, x2!, x1  */\n\t.inst   0x19c18443\t/* sete    [x3]!, x2!, x1  */\n\tret\n\nEND (__memset_aarch64_mops)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-mops.S", "license": "MIT", "commit": "6fb4d63b8f1f5ecd555e1155780586b2b4271696", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6fb4d63b8f1f5ecd555e1155780586b2b4271696/string/aarch64/memset-mops.S", "line_start": 1, "line_end": 20}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2024-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define vlen\tx5\n#define off\tx3\n#define dstend2 x5\n\nENTRY (__memset_aarch64_sve)\n\tdup\tv0.16B, valw\n\tcmp\tcount, 16\n\tb.lo\tL(set_16)\n\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 64\n\tb.hi\tL(set_128)\n\n\t/* Set 16..64 bytes.  */\n\tmov\toff, 48\n\tand\toff, off, count, lsr 1\n\tsub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\nL(set_16):\n\twhilelo p0.b, xzr, count\n\tst1b\tz0.b, p0, [dstin]\n\tret\n\n\t.p2align 4\nL(set_128):\n\tbic\tdst, dstin, 15\n\tcmp\tcount, 128\n\tb.hi\tL(set_long)\n\tstp\tq0, q0, [dstin]\n\tstp\tq0, q0, [dstin, 32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:2", "text": "sub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\nL(set_16):\n\twhilelo p0.b, xzr, count\n\tst1b\tz0.b, p0, [dstin]\n\tret\n\n\t.p2align 4\nL(set_128):\n\tbic\tdst, dstin, 15\n\tcmp\tcount, 128\n\tb.hi\tL(set_long)\n\tstp\tq0, q0, [dstin]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tcmp\tcount, 256\n\tb.lo\tL(no_zva)\n\ttst\tvalw, 255\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dstin]\n\tstr\tq0, [dst, 16]\n\tbic\tdst, dstin, 31\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\tsub\tx8, dstend, 1\t\t/* Write last bytes before ZVA loop.  */\n\tbic\tx8, x8, 15\n\tstp\tq0, q0, [x8, -48]\n\tstr\tq0, [x8, -16]\n\tstr\tq0, [dstend, -16]\n\n\t.p2align 4\nL(zva64_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva64_loop)\n\tret\n\nL(no_zva):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:3", "text": "stp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\tsub\tx8, dstend, 1\t\t/* Write last bytes before ZVA loop.  */\n\tbic\tx8, x8, 15\n\tstp\tq0, q0, [x8, -48]\n\tstr\tq0, [x8, -16]\n\tstr\tq0, [dstend, -16]\n\n\t.p2align 4\nL(zva64_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva64_loop)\n\tret\n\nL(no_zva):\n\tstr\tq0, [dstin]\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 16]\n\tstp\tq0, q0, [dst, 48]\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset-sve.S", "line_start": 81, "line_end": 114}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2024-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define vlen\tx5\n#define off\tx3\n#define dstend2 x5\n\nENTRY (__memset_aarch64_sve)\n\tdup\tv0.16B, valw\n\tcmp\tcount, 16\n\tb.lo\tL(set_16)\n\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 64\n\tb.hs\tL(set_128)\n\n\t/* Set 16..63 bytes.  */\n\tmov\toff, 16\n\tand\toff, off, count, lsr 1\n\tsub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\nL(set_16):\n\twhilelo p0.b, xzr, count\n\tst1b\tz0.b, p0, [dstin]\n\tret\n\n\t.p2align 4\nL(set_128):\n\tbic\tdst, dstin, 15\n\tcmp\tcount, 128\n\tb.hi\tL(set_long)\n\tstp\tq0, q0, [dstin]\n\tstp\tq0, q0, [dstin, 32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "a365caa33793b45ddb5e2dc3433d699bdc6defa5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a365caa33793b45ddb5e2dc3433d699bdc6defa5/string/aarch64/memset-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define vlen\tx5\n\nENTRY (__memset_aarch64_sve)\n\tdup\tz0.b, valw\n\tcmp\tcount, 128\n\tb.hs\tL(set_long)\n\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(set_medium)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz0.b, p1, [dstin, 1, mul vl]\n\tret\n\nL(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tadd\tdstend, dstin, count\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "71e36403858ab3ff743fcde336fb31890e57af7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/71e36403858ab3ff743fcde336fb31890e57af7e/string/aarch64/memset-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:2", "text": "L(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tadd\tdstend, dstin, count\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, hs\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "71e36403858ab3ff743fcde336fb31890e57af7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/71e36403858ab3ff743fcde336fb31890e57af7e/string/aarch64/memset-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:3", "text": "dc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "71e36403858ab3ff743fcde336fb31890e57af7e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/71e36403858ab3ff743fcde336fb31890e57af7e/string/aarch64/memset-sve.S", "line_start": 81, "line_end": 101}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#if HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define vlen\tx5\n\nENTRY (__memset_aarch64_sve)\n\tdup\tz0.b, valw\n\tcmp\tcount, 128\n\tb.hs\tL(set_long)\n\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(set_medium)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz0.b, p1, [dstin, 1, mul vl]\n\tret\n\nL(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tadd\tdstend, dstin, count", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memset-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:2", "text": "st1b\tz0.b, p1, [dstin, 1, mul vl]\n\tret\n\nL(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tadd\tdstend, dstin, count\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, hs\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memset-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:3", "text": "L(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memset-sve.S", "line_start": 81, "line_end": 105}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#if HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define vlen\tx5\n\nENTRY (__memset_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tz0.b, valw\n\tcmp\tcount, 128\n\tb.hs\tL(set_long)\n\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(set_medium)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz0.b, p1, [dstin, 1, mul vl]\n\tret\n\nL(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memset-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:2", "text": "whilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz0.b, p1, [dstin, 1, mul vl]\n\tret\n\nL(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tadd\tdstend, dstin, count\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, hs\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memset-sve.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:3", "text": "sub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "a135ce29a3d8454d6cefc2e96e9fad0cd1877784", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a135ce29a3d8454d6cefc2e96e9fad0cd1877784/string/aarch64/memset-sve.S", "line_start": 81, "line_end": 108}
{"id": "ARM-software/optimized-routines:string/aarch64/memset-sve.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, SVE, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#ifdef HAVE_SVE\n\n.arch armv8-a+sve\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define vlen\tx5\n\nENTRY (__memset_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tz0.b, valw\n\tcmp\tcount, 128\n\tb.hs\tL(set_long)\n\n\tcntb\tvlen\n\tcmp\tcount, vlen, lsl 1\n\tb.hi\tL(set_medium)\n\n\twhilelo p0.b, xzr, count\n\twhilelo p1.b, vlen, count\n\tst1b\tz0.b, p0, [dstin, 0, mul vl]\n\tst1b\tz0.b, p1, [dstin, 1, mul vl]\n\tret\n\nL(set_medium):\n\tadd\tdstend, dstin, count\n\tstp\tq0, q0, [dstin]\n\ttbnz\tcount, 6, L(set128)\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set128):\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset-sve.S", "license": "MIT", "commit": "f0d6b488fb39ed23e222c580b7e0eac0ba7f5ee6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f0d6b488fb39ed23e222c580b7e0eac0ba7f5ee6/string/aarch64/memset-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define off\tx3\n#define dstend2\tx5\n\nENTRY (__memset_aarch64)\n\tdup\tv0.16B, valw\n\tcmp\tcount, 16\n\tb.lo\tL(set_small)\n\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 64\n\tb.hi\tL(set_128)\n\n\t/* Set 16..64 bytes.  */\n\tmov\toff, 48\n\tand\toff, off, count, lsr 1\n\tsub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Set 0..15 bytes.  */\nL(set_small):\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 4\n\tb.lo\t2f\n\tlsr\toff, count, 3\n\tsub\tdstend2, dstend, off, lsl 2\n\tstr\ts0, [dstin]\n\tstr\ts0, [dstin, off, lsl 2]\n\tstr\ts0, [dstend2, -4]\n\tstr\ts0, [dstend, -4]\n\tret\n\n\t/* Set 0..3 bytes.  */\n2:\tcbz\tcount, 3f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "str\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Set 0..15 bytes.  */\nL(set_small):\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 4\n\tb.lo\t2f\n\tlsr\toff, count, 3\n\tsub\tdstend2, dstend, off, lsl 2\n\tstr\ts0, [dstin]\n\tstr\ts0, [dstin, off, lsl 2]\n\tstr\ts0, [dstend2, -4]\n\tstr\ts0, [dstend, -4]\n\tret\n\n\t/* Set 0..3 bytes.  */\n2:\tcbz\tcount, 3f\n\tlsr\toff, count, 1\n\tstrb\tvalw, [dstin]\n\tstrb\tvalw, [dstin, off]\n\tstrb\tvalw, [dstend, -1]\n3:\tret\n\n\t.p2align 4\nL(set_128):\n\tbic\tdst, dstin, 15\n\tcmp\tcount, 128\n\tb.hi\tL(set_long)\n\tstp\tq0, q0, [dstin]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tstr\tq0, [dstin]\n\tstr\tq0, [dst, 16]\n\ttst\tvalw, 255\n\tb.ne\tL(no_zva)\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 64 + 64\t/* Adjust count and bias for loop.  */\n\n\t/* Write last bytes before ZVA loop.  */\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\n\t.p2align 4\nL(zva64_loop):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "str\tq0, [dst, 16]\n\ttst\tvalw, 255\n\tb.ne\tL(no_zva)\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 64 + 64\t/* Adjust count and bias for loop.  */\n\n\t/* Write last bytes before ZVA loop.  */\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\n\t.p2align 4\nL(zva64_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva64_loop)\n\tret\n\n\t.p2align 3\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 32 too large.  */\n\tsub\tcount, count, 64 + 32\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/memset.S", "line_start": 81, "line_end": 121}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define off\tx3\n#define dstend2\tx5\n\nENTRY (__memset_aarch64)\n\tdup\tv0.16B, valw\n\tcmp\tcount, 16\n\tb.lo\tL(set_small)\n\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 64\n\tb.hs\tL(set_128)\n\n\t/* Set 16..63 bytes.  */\n\tmov\toff, 16\n\tand\toff, off, count, lsr 1\n\tsub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Set 0..15 bytes.  */\nL(set_small):\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 4\n\tb.lo\t2f\n\tlsr\toff, count, 3\n\tsub\tdstend2, dstend, off, lsl 2\n\tstr\ts0, [dstin]\n\tstr\ts0, [dstin, off, lsl 2]\n\tstr\ts0, [dstend2, -4]\n\tstr\ts0, [dstend, -4]\n\tret\n\n\t/* Set 0..3 bytes.  */\n2:\tcbz\tcount, 3f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2024, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n#define off\tx3\n#define dstend2\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\tdup\tv0.16B, valw\n\tcmp\tcount, 16\n\tb.lo\tL(set_small)\n\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 64\n\tb.hs\tL(set_128)\n\n\t/* Set 16..63 bytes.  */\n\tmov\toff, 16\n\tand\toff, off, count, lsr 1\n\tsub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Set 0..15 bytes.  */\nL(set_small):\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 4\n\tb.lo\t2f\n\tlsr\toff, count, 3\n\tsub\tdstend2, dstend, off, lsl 2\n\tstr\ts0, [dstin]\n\tstr\ts0, [dstin, off, lsl 2]\n\tstr\ts0, [dstend2, -4]\n\tstr\ts0, [dstend, -4]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "700776a47581f08ec8ed7880ab33f3d5517ab563", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/700776a47581f08ec8ed7880ab33f3d5517ab563/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "str\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Set 0..15 bytes.  */\nL(set_small):\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 4\n\tb.lo\t2f\n\tlsr\toff, count, 3\n\tsub\tdstend2, dstend, off, lsl 2\n\tstr\ts0, [dstin]\n\tstr\ts0, [dstin, off, lsl 2]\n\tstr\ts0, [dstend2, -4]\n\tstr\ts0, [dstend, -4]\n\tret\n\n\t/* Set 0..3 bytes.  */\n2:\tcbz\tcount, 3f\n\tlsr\toff, count, 1\n\tstrb\tvalw, [dstin]\n\tstrb\tvalw, [dstin, off]\n\tstrb\tvalw, [dstend, -1]\n3:\tret\n\n\t.p2align 4\nL(set_128):\n\tbic\tdst, dstin, 15\n\tcmp\tcount, 128\n\tb.hi\tL(set_long)\n\tstp\tq0, q0, [dstin]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tstr\tq0, [dstin]\n\tstr\tq0, [dst, 16]\n\ttst\tvalw, 255\n\tb.ne\tL(no_zva)\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 64 + 64\t/* Adjust count and bias for loop.  */\n\n\t/* Write last bytes before ZVA loop.  */\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "700776a47581f08ec8ed7880ab33f3d5517ab563", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/700776a47581f08ec8ed7880ab33f3d5517ab563/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "L(set_long):\n\tstr\tq0, [dstin]\n\tstr\tq0, [dst, 16]\n\ttst\tvalw, 255\n\tb.ne\tL(no_zva)\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 64 + 64\t/* Adjust count and bias for loop.  */\n\n\t/* Write last bytes before ZVA loop.  */\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\n\t.p2align 4\nL(zva64_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva64_loop)\n\tret\n\n\t.p2align 3\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 32 too large.  */\n\tsub\tcount, count, 64 + 32\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "700776a47581f08ec8ed7880ab33f3d5517ab563", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/700776a47581f08ec8ed7880ab33f3d5517ab563/string/aarch64/memset.S", "line_start": 81, "line_end": 123}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "sub\tdstend2, dstend, off\n\tstr\tq0, [dstin]\n\tstr\tq0, [dstin, off]\n\tstr\tq0, [dstend2, -16]\n\tstr\tq0, [dstend, -16]\n\tret\n\n\t.p2align 4\n\t/* Set 0..15 bytes.  */\nL(set_small):\n\tadd\tdstend, dstin, count\n\tcmp\tcount, 4\n\tb.lo\t2f\n\tlsr\toff, count, 3\n\tsub\tdstend2, dstend, off, lsl 2\n\tstr\ts0, [dstin]\n\tstr\ts0, [dstin, off, lsl 2]\n\tstr\ts0, [dstend2, -4]\n\tstr\ts0, [dstend, -4]\n\tret\n\t/* Set 0..3 bytes.  */\n2:\tcbz\tcount, 3f\n\tlsr\toff, count, 1\n\tstrb\tvalw, [dstin]\n\tstrb\tvalw, [dstin, off]\n\tstrb\tvalw, [dstend, -1]\n3:\tret\n\n\t.p2align 4\nL(set_128):\n\tbic\tdst, dstin, 15\n\tcmp\tcount, 128\n\tb.hi\tL(set_long)\n\tstp\tq0, q0, [dstin]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tstr\tq0, [dstin]\n\tand\tvalw, valw, 255\n\tstr\tq0, [dst, 16]\n\tcbnz\tvalw, L(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 64 + 64\t/* Adjust count and bias for loop.  */\n\n\t/* Write last bytes before ZVA loop.  */\n\tstp\tq0, q0, [dstend, -64]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "9190f2f6d834efb06c00d52a7b5f1d57414f5978", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9190f2f6d834efb06c00d52a7b5f1d57414f5978/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "L(set_long):\n\tstr\tq0, [dstin]\n\tand\tvalw, valw, 255\n\tstr\tq0, [dst, 16]\n\tcbnz\tvalw, L(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dstin, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 64 + 64\t/* Adjust count and bias for loop.  */\n\n\t/* Write last bytes before ZVA loop.  */\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tret\n\n\t.p2align 3\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 32 too large.  */\n\tsub\tcount, count, 64 + 32\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "9190f2f6d834efb06c00d52a7b5f1d57414f5978", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9190f2f6d834efb06c00d52a7b5f1d57414f5978/string/aarch64/memset.S", "line_start": 81, "line_end": 124}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\t.p2align 4\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "ret\n\t.p2align 4\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 160\n\tccmp\tvalw, 0, 0, hs\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/memset.S", "line_start": 81, "line_end": 116}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\t.p2align 4\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\t.p2align 4\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\t.p2align 4\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\t.p2align 4\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (2)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "ret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 160\n\tccmp\tvalw, 0, 0, hs\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD, unaligned accesses.\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define zva_val\tx5\n\nENTRY (__memset_aarch64)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 4\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 160\n\tccmp\tvalw, 0, 0, hs\n\tb.ne\tL(no_zva)\n\n#ifndef SKIP_ZVA_CHECK\n\tmrs\tzva_val, dczid_el0\n\tand\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "and\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/memset.S", "line_start": 81, "line_end": 114}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "and\tzva_val, zva_val, 31\n\tcmp\tzva_val, 4\t\t/* ZVA size is 64 bytes.  */\n\tb.ne\tL(no_zva)\n#endif\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tsub\tcount, dstend, dst\t/* Count is now 64 too large.  */\n\tsub\tcount, count, 128\t/* Adjust count and bias for loop.  */\n\n\t.p2align 4\nL(zva_loop):\n\tadd\tdst, dst, 64\n\tdc\tzva, dst\n\tsubs\tcount, count, 64\n\tb.hi\tL(zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tsub\tdst, dst, 16\t\t/* Dst is biased by -32.  */\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\nL(no_zva_loop):\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]!\n\tsubs\tcount, count, 64\n\tb.hi\tL(no_zva_loop)\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nEND (__memset_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/memset.S", "line_start": 81, "line_end": 116}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n *\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define tmp1\tx5\n#define tmp1w\tw5\n#define tmp2\tx6\n#define tmp2w\tw6\n#define zva_len x7\n#define zva_lenw w7\n\nENTRY (__memset_aarch64)\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "tbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\n\tnop\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, cs\n\tb.eq\tL(try_zva)\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tadd\tdst, dst, 16\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\nL(tail64):\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(try_zva):\n\tmrs\ttmp1, dczid_el0\n\ttbnz\ttmp1w, 4, L(no_zva)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "cmp\tcount, 256\n\tccmp\tvalw, 0, 0, cs\n\tb.eq\tL(try_zva)\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tadd\tdst, dst, 16\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\nL(tail64):\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(try_zva):\n\tmrs\ttmp1, dczid_el0\n\ttbnz\ttmp1w, 4, L(no_zva)\n\tand\ttmp1w, tmp1w, 15\n\tcmp\ttmp1w, 4\t/* ZVA size is 64 bytes.  */\n\tb.ne\t L(zva_128)\n\n\t/* Write the first and last 64 byte aligned block using stp rather\n\t   than using DC ZVA.  This is faster on some cores.\n\t */\nL(zva_64):\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+64+64\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n\tnop\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\tstp\tq0, q0, [dst, 0]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(zva_128):\n\tcmp\ttmp1w, 5\t/* ZVA size is 128 bytes.  */\n\tb.ne\tL(zva_other)\n\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tbic\tdst, dst, 127\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+128\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memset.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:4", "text": "b.hi\t1b\n\tstp\tq0, q0, [dst, 0]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(zva_128):\n\tcmp\ttmp1w, 5\t/* ZVA size is 128 bytes.  */\n\tb.ne\tL(zva_other)\n\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tbic\tdst, dst, 127\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+128\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 128\n\tsubs\tcount, count, 128\n\tb.hi\t1b\n\tstp\tq0, q0, [dstend, -128]\n\tstp\tq0, q0, [dstend, -96]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(zva_other):\n\tmov\ttmp2w, 4\n\tlsl\tzva_lenw, tmp2w, tmp1w\n\tadd\ttmp1, zva_len, 64\t/* Max alignment bytes written.\t */\n\tcmp\tcount, tmp1\n\tblo\tL(no_zva)\n\n\tsub\ttmp2, zva_len, 1\n\tadd\ttmp1, dst, zva_len\n\tadd\tdst, dst, 16\n\tsubs\tcount, tmp1, dst\t/* Actual alignment bytes to write.  */\n\tbic\ttmp1, tmp1, tmp2\t/* Aligned dc zva start address.  */\n\tbeq\t2f\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tmov\tdst, tmp1\n\tsub\tcount, dstend, tmp1\t/* Remaining bytes to write.  */\n\tsubs\tcount, count, zva_len\n\tb.lo\t4f\n3:\tdc\tzva, dst\n\tadd\tdst, dst, zva_len\n\tsubs\tcount, count, zva_len\n\tb.hs\t3b\n4:\tadd\tcount, count, zva_len\n\tb\tL(tail64)\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memset.S", "line_start": 121, "line_end": 179}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:5", "text": "subs\tcount, tmp1, dst\t/* Actual alignment bytes to write.  */\n\tbic\ttmp1, tmp1, tmp2\t/* Aligned dc zva start address.  */\n\tbeq\t2f\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tmov\tdst, tmp1\n\tsub\tcount, dstend, tmp1\t/* Remaining bytes to write.  */\n\tsubs\tcount, count, zva_len\n\tb.lo\t4f\n3:\tdc\tzva, dst\n\tadd\tdst, dst, zva_len\n\tsubs\tcount, count, zva_len\n\tb.hs\t3b\n4:\tadd\tcount, count, zva_len\n\tb\tL(tail64)\n\nEND (__memset_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/memset.S", "line_start": 161, "line_end": 179}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/*\n * memset - fill memory with a constant byte\n *\n * Copyright (c) 2012, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n *\n */\n\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define tmp1\tx5\n#define tmp1w\tw5\n#define tmp2\tx6\n#define tmp2w\tw6\n#define zva_len x7\n#define zva_lenw w7\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memset_aarch64 p2align=6\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "f6aac11682b27123bba95866f785d3d90042689c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f6aac11682b27123bba95866f785d3d90042689c/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "add\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\n\tnop\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, cs\n\tb.eq\tL(try_zva)\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tadd\tdst, dst, 16\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\nL(tail64):\n\tsubs\tcount, count, 64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "f6aac11682b27123bba95866f785d3d90042689c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f6aac11682b27123bba95866f785d3d90042689c/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": "stp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\n\tnop\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, cs\n\tb.eq\tL(try_zva)\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tadd\tdst, dst, 16\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\nL(tail64):\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(try_zva):\n\tmrs\ttmp1, dczid_el0\n\ttbnz\ttmp1w, 4, L(no_zva)\n\tand\ttmp1w, tmp1w, 15\n\tcmp\ttmp1w, 4\t/* ZVA size is 64 bytes.  */\n\tb.ne\t L(zva_128)\n\n\t/* Write the first and last 64 byte aligned block using stp rather\n\t   than using DC ZVA.  This is faster on some cores.\n\t */\nL(zva_64):\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+64+64\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n\tnop\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\tstp\tq0, q0, [dst, 0]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(zva_128):\n\tcmp\ttmp1w, 5\t/* ZVA size is 128 bytes.  */\n\tb.ne\tL(zva_other)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "f6aac11682b27123bba95866f785d3d90042689c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f6aac11682b27123bba95866f785d3d90042689c/string/aarch64/memset.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:4", "text": "stp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+64+64\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n\tnop\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\tstp\tq0, q0, [dst, 0]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(zva_128):\n\tcmp\ttmp1w, 5\t/* ZVA size is 128 bytes.  */\n\tb.ne\tL(zva_other)\n\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tbic\tdst, dst, 127\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+128\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 128\n\tsubs\tcount, count, 128\n\tb.hi\t1b\n\tstp\tq0, q0, [dstend, -128]\n\tstp\tq0, q0, [dstend, -96]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(zva_other):\n\tmov\ttmp2w, 4\n\tlsl\tzva_lenw, tmp2w, tmp1w\n\tadd\ttmp1, zva_len, 64\t/* Max alignment bytes written.\t */\n\tcmp\tcount, tmp1\n\tblo\tL(no_zva)\n\n\tsub\ttmp2, zva_len, 1\n\tadd\ttmp1, dst, zva_len\n\tadd\tdst, dst, 16\n\tsubs\tcount, tmp1, dst\t/* Actual alignment bytes to write.  */\n\tbic\ttmp1, tmp1, tmp2\t/* Aligned dc zva start address.  */\n\tbeq\t2f\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tmov\tdst, tmp1\n\tsub\tcount, dstend, tmp1\t/* Remaining bytes to write.  */\n\tsubs\tcount, count, zva_len\n\tb.lo\t4f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "f6aac11682b27123bba95866f785d3d90042689c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f6aac11682b27123bba95866f785d3d90042689c/string/aarch64/memset.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:5", "text": "mov\ttmp2w, 4\n\tlsl\tzva_lenw, tmp2w, tmp1w\n\tadd\ttmp1, zva_len, 64\t/* Max alignment bytes written.\t */\n\tcmp\tcount, tmp1\n\tblo\tL(no_zva)\n\n\tsub\ttmp2, zva_len, 1\n\tadd\ttmp1, dst, zva_len\n\tadd\tdst, dst, 16\n\tsubs\tcount, tmp1, dst\t/* Actual alignment bytes to write.  */\n\tbic\ttmp1, tmp1, tmp2\t/* Aligned dc zva start address.  */\n\tbeq\t2f\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tmov\tdst, tmp1\n\tsub\tcount, dstend, tmp1\t/* Remaining bytes to write.  */\n\tsubs\tcount, count, zva_len\n\tb.lo\t4f\n3:\tdc\tzva, dst\n\tadd\tdst, dst, zva_len\n\tsubs\tcount, count, zva_len\n\tb.hs\t3b\n4:\tadd\tcount, count, zva_len\n\tb\tL(tail64)\n\n\t.size\t__memset_aarch64, . - __memset_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "f6aac11682b27123bba95866f785d3d90042689c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f6aac11682b27123bba95866f785d3d90042689c/string/aarch64/memset.S", "line_start": 161, "line_end": 188}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:1", "text": "/* Copyright (c) 2012, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/*\n * Copyright (c) 2015 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n *\n */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "cbfb9c72d4bed2ab30ad61742d47da38826fe589", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbfb9c72d4bed2ab30ad61742d47da38826fe589/string/aarch64/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:2", "text": "*    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses\n *\n */\n\n\n#define dstin\tx0\n#define val\tx1\n#define valw\tw1\n#define count\tx2\n#define dst\tx3\n#define dstend\tx4\n#define tmp1\tx5\n#define tmp1w\tw5\n#define tmp2\tx6\n#define tmp2w\tw6\n#define zva_len x7\n#define zva_lenw w7\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memset_aarch64 p2align=6\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "cbfb9c72d4bed2ab30ad61742d47da38826fe589", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbfb9c72d4bed2ab30ad61742d47da38826fe589/string/aarch64/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:3", "text": ".type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memset_aarch64 p2align=6\n\n\tdup\tv0.16B, valw\n\tadd\tdstend, dstin, count\n\n\tcmp\tcount, 96\n\tb.hi\tL(set_long)\n\tcmp\tcount, 16\n\tb.hs\tL(set_medium)\n\tmov\tval, v0.D[0]\n\n\t/* Set 0..15 bytes.  */\n\ttbz\tcount, 3, 1f\n\tstr\tval, [dstin]\n\tstr\tval, [dstend, -8]\n\tret\n\tnop\n1:\ttbz\tcount, 2, 2f\n\tstr\tvalw, [dstin]\n\tstr\tvalw, [dstend, -4]\n\tret\n2:\tcbz\tcount, 3f\n\tstrb\tvalw, [dstin]\n\ttbz\tcount, 1, 3f\n\tstrh\tvalw, [dstend, -2]\n3:\tret\n\n\t/* Set 17..96 bytes.  */\nL(set_medium):\n\tstr\tq0, [dstin]\n\ttbnz\tcount, 6, L(set96)\n\tstr\tq0, [dstend, -16]\n\ttbz\tcount, 5, 1f\n\tstr\tq0, [dstin, 16]\n\tstr\tq0, [dstend, -32]\n1:\tret\n\n\t.p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\n\tnop\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, cs\n\tb.eq\tL(try_zva)\nL(no_zva):", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "cbfb9c72d4bed2ab30ad61742d47da38826fe589", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbfb9c72d4bed2ab30ad61742d47da38826fe589/string/aarch64/memset.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:4", "text": ".p2align 4\n\t/* Set 64..96 bytes.  Write 64 bytes from the start and\n\t   32 bytes from the end.  */\nL(set96):\n\tstr\tq0, [dstin, 16]\n\tstp\tq0, q0, [dstin, 32]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\n\tnop\nL(set_long):\n\tand\tvalw, valw, 255\n\tbic\tdst, dstin, 15\n\tstr\tq0, [dstin]\n\tcmp\tcount, 256\n\tccmp\tvalw, 0, 0, cs\n\tb.eq\tL(try_zva)\nL(no_zva):\n\tsub\tcount, dstend, dst\t/* Count is 16 too large.  */\n\tadd\tdst, dst, 16\n\tsub\tcount, count, 64 + 16\t/* Adjust count and bias for loop.  */\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\nL(tail64):\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(try_zva):\n\tmrs\ttmp1, dczid_el0\n\ttbnz\ttmp1w, 4, L(no_zva)\n\tand\ttmp1w, tmp1w, 15\n\tcmp\ttmp1w, 4\t/* ZVA size is 64 bytes.  */\n\tb.ne\t L(zva_128)\n\n\t/* Write the first and last 64 byte aligned block using stp rather\n\t   than using DC ZVA.  This is faster on some cores.\n\t */\nL(zva_64):\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+64+64\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n\tnop\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\tstp\tq0, q0, [dst, 0]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dstend, -64]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "cbfb9c72d4bed2ab30ad61742d47da38826fe589", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbfb9c72d4bed2ab30ad61742d47da38826fe589/string/aarch64/memset.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:5", "text": "/* Write the first and last 64 byte aligned block using stp rather\n\t   than using DC ZVA.  This is faster on some cores.\n\t */\nL(zva_64):\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tbic\tdst, dst, 63\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+64+64\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n\tnop\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 64\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n\tstp\tq0, q0, [dst, 0]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\n\t.p2align 3\nL(zva_128):\n\tcmp\ttmp1w, 5\t/* ZVA size is 128 bytes.  */\n\tb.ne\tL(zva_other)\n\n\tstr\tq0, [dst, 16]\n\tstp\tq0, q0, [dst, 32]\n\tstp\tq0, q0, [dst, 64]\n\tstp\tq0, q0, [dst, 96]\n\tbic\tdst, dst, 127\n\tsub\tcount, dstend, dst\t/* Count is now 128 too large.\t*/\n\tsub\tcount, count, 128+128\t/* Adjust count and bias for loop.  */\n\tadd\tdst, dst, 128\n1:\tdc\tzva, dst\n\tadd\tdst, dst, 128\n\tsubs\tcount, count, 128\n\tb.hi\t1b\n\tstp\tq0, q0, [dstend, -128]\n\tstp\tq0, q0, [dstend, -96]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(zva_other):\n\tmov\ttmp2w, 4\n\tlsl\tzva_lenw, tmp2w, tmp1w\n\tadd\ttmp1, zva_len, 64\t/* Max alignment bytes written.\t */\n\tcmp\tcount, tmp1\n\tblo\tL(no_zva)\n\n\tsub\ttmp2, zva_len, 1\n\tadd\ttmp1, dst, zva_len\n\tadd\tdst, dst, 16\n\tsubs\tcount, tmp1, dst\t/* Actual alignment bytes to write.  */\n\tbic\ttmp1, tmp1, tmp2\t/* Aligned dc zva start address.  */\n\tbeq\t2f\n1:\tstp\tq0, q0, [dst], 64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "cbfb9c72d4bed2ab30ad61742d47da38826fe589", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbfb9c72d4bed2ab30ad61742d47da38826fe589/string/aarch64/memset.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/memset.S:6", "text": "stp\tq0, q0, [dstend, -128]\n\tstp\tq0, q0, [dstend, -96]\n\tstp\tq0, q0, [dstend, -64]\n\tstp\tq0, q0, [dstend, -32]\n\tret\n\nL(zva_other):\n\tmov\ttmp2w, 4\n\tlsl\tzva_lenw, tmp2w, tmp1w\n\tadd\ttmp1, zva_len, 64\t/* Max alignment bytes written.\t */\n\tcmp\tcount, tmp1\n\tblo\tL(no_zva)\n\n\tsub\ttmp2, zva_len, 1\n\tadd\ttmp1, dst, zva_len\n\tadd\tdst, dst, 16\n\tsubs\tcount, tmp1, dst\t/* Actual alignment bytes to write.  */\n\tbic\ttmp1, tmp1, tmp2\t/* Aligned dc zva start address.  */\n\tbeq\t2f\n1:\tstp\tq0, q0, [dst], 64\n\tstp\tq0, q0, [dst, -32]\n\tsubs\tcount, count, 64\n\tb.hi\t1b\n2:\tmov\tdst, tmp1\n\tsub\tcount, dstend, tmp1\t/* Remaining bytes to write.  */\n\tsubs\tcount, count, zva_len\n\tb.lo\t4f\n3:\tdc\tzva, dst\n\tadd\tdst, dst, zva_len\n\tsubs\tcount, count, zva_len\n\tb.hs\t3b\n4:\tadd\tcount, count, zva_len\n\tb\tL(tail64)\n\n\t.size\t__memset_aarch64, . - __memset_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/memset.S", "license": "MIT", "commit": "cbfb9c72d4bed2ab30ad61742d47da38826fe589", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/cbfb9c72d4bed2ab30ad61742d47da38826fe589/string/aarch64/memset.S", "line_start": 201, "line_end": 235}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. Bits 0-1 are set if the relevant byte matched the requested\n   character, bits 2-3 are set if the byte is NUL or matched. Count trailing\n   zeroes gives the position of the matching byte if it is a multiple of 4.\n   If it is not a multiple of 4, there was no match.  */\n\nENTRY (__strchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmovi\tvrepmask.16b, 0x33\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, srcin, tmp1, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "ENTRY (__strchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmovi\tvrepmask.16b, 0x33\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, srcin, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbnz\ttmp1, L(end)\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\tsub\tsrc, src, 16\nL(end):\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tadd\tsrc, src, 16\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is a multiple of 4 if the target character was found.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 99}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tadd\tsrc, src, 16\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is a multiple of 4 if the target character was found.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 99}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. Bits 0-1 are set if the relevant byte matched the requested\n   character, bits 2-3 are set if the byte is NUL or matched. Count trailing\n   zeroes gives the position of the matching byte if it is a multiple of 4.\n   If it is not a multiple of 4, there was no match.  */\n\nENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmovi\tvrepmask.16b, 0x33\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "ENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmovi\tvrepmask.16b, 0x33\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, srcin, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbnz\ttmp1, L(end)\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\tsub\tsrc, src, 16\nL(end):\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tadd\tsrc, src, 16\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is a multiple of 4 if the target character was found.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. Bits 0-1 are set if the relevant byte matched the requested\n   character, bits 2-3 are set if the byte is NUL or matched. Count trailing\n   zeroes gives the position of the matching byte if it is a multiple of 4.\n   If it is not a multiple of 4, there was no match.  */\n\nENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmovi\tvrepmask.16b, 0x33\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. Bits 0-1 are set if the relevant byte matched the requested\n   character, bits 2-3 are set if the byte is NUL or matched. Count trailing\n   zeroes gives the position of the matching byte if it is a multiple of 4.\n   If it is not a multiple of 4, there was no match.  */\n\nENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmovi\tvrepmask.16b, 0x33\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "864fc0254172a47c9ea36e12cd27511108902813", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/864fc0254172a47c9ea36e12cd27511108902813/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define wtmp2\t\tw3\n#define tmp3\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv6\n#define dend\t\td6\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-1 are set if the relevant byte matched the\n   requested character, bits 2-3 are set if the byte is NUL (or matched), and\n   bits 4-7 are not used and must be zero if none of bits 0-3 are set). Odd\n   bytes set bits 4-7 so that adjacent bytes can be merged. Since the bits\n   in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "bytes set bits 4-7 so that adjacent bytes can be merged. Since the bits\n   in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp3\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, srcin, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "fmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 104}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define wtmp2\t\tw3\n#define tmp3\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv6\n#define dend\t\td6\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-1 are set if the relevant byte matched the\n   requested character, bits 2-3 are set if the byte is NUL (or matched), and\n   bits 4-7 are not used and must be zero if none of bits 0-3 are set). Odd\n   bytes set bits 4-7 so that adjacent bytes can be merged. Since the bits\n   in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define wtmp2\t\tw3\n#define tmp3\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv6\n#define dend\t\td6\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-1 are set if the relevant byte matched the\n   requested character, bits 2-3 are set if the byte is NUL (or matched), and\n   bits 4-7 are not used and must be zero if none of bits 0-3 are set). Odd\n   bytes set bits 4-7 so that adjacent bytes can be merged. Since the bits\n   in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "bytes set bits 4-7 so that adjacent bytes can be merged. Since the bits\n   in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp3\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, srcin, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "cbz\ttmp1, L(loop)\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 103}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "cbz\ttmp1, L(loop)\n\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "7bb8464fd27e08fb9540589581644b53d876fe00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7bb8464fd27e08fb9540589581644b53d876fe00/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 105}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define wtmp2\t\tw3\n#define tmp3\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv6\n#define dend\t\td6\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-1 are set if the relevant byte matched the\n   requested character, bits 2-3 are set if the byte is NUL (or matched), and\n   bits 4-7 are not used and must be zero if none of bits 0-3 are set). Odd\n   bytes set bits 4-7 so that adjacent bytes can be merged. Since the bits\n   in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY(__strchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY(__strchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\twtmp2, 0x3003\n\tdup\tvrepmask.8h, wtmp2\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp2, 0xf00f\n\tdup\tvrepmask2.8h, wtmp2\n\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\tlsl\ttmp3, srcin, 2\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp3\n\tcbz\ttmp1, L(loop1)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, srcin, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nL(loop1):\n\tadd\tsrc, src, 16\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tsub\tsrc, src, 16\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND(__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "umaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tsub\tsrc, src, 16\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND(__strchr_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 102}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "umaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tsub\tsrc, src, 16\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\t/* Tmp1 is an even multiple of 2 if the target character was\n\t   found first. Otherwise we've found the end of string.  */\n\ttst\ttmp1, 2\n\tadd\tresult, src, tmp1, lsr 2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND(__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "7aeabda56a8d93c5b1c3cd74b66ca5fe3e75d66a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7aeabda56a8d93c5b1c3cd74b66ca5fe3e75d66a/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask_0\tv4\n#define vrepmask_c\tv5\n#define vend\t\tv6\n\n#define L(l) .L ## l\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set if\n   the relevant byte matched the requested character; bit 1 is set\n   if the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL) and bits 2 and 3\n   are not used.\n   Since the bits in the syndrome reflect exactly the order in which\n   things occur in the original string a count_trailing_zeros()\n   operation will identify exactly which byte is causing the termination,\n   and why. */\n\n/* Locals and temporaries. */\n\nENTRY(__strchr_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x20022002 used\n\t   similarly for NUL termination. */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "6d09ce9f98d067f7509dc89109ffa58aa56cb2dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d09ce9f98d067f7509dc89109ffa58aa56cb2dd/string/aarch64/strchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set if\n   the relevant byte matched the requested character; bit 1 is set\n   if the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL) and bits 2 and 3\n   are not used.\n   Since the bits in the syndrome reflect exactly the order in which\n   things occur in the original string a count_trailing_zeros()\n   operation will identify exactly which byte is causing the termination,\n   and why. */\n\n/* Locals and temporaries. */\n\nENTRY(__strchr_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x20022002 used\n\t   similarly for NUL termination. */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #15\t\t/* Work with aligned 16-byte chunks. */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #15\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(loop)\n\n\t/* Input string is not 16-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\tlsl\ttmp1, tmp1, #2\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\tmov\ttmp3, #~0\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tlsl\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend.d[0]\n\tands\ttmp1, tmp3, tmp1\t/* Mask padding bits. */\n\tb.ne\tL(tail)\n\nL(loop):\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbnz\ttmp1, L(end)\n\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "6d09ce9f98d067f7509dc89109ffa58aa56cb2dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d09ce9f98d067f7509dc89109ffa58aa56cb2dd/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "mov\ttmp3, vend.d[0]\n\tands\ttmp1, tmp3, tmp1\t/* Mask padding bits. */\n\tb.ne\tL(tail)\n\nL(loop):\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbnz\ttmp1, L(end)\n\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbz\ttmp1, L(loop)\n\nL(end):\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\n\tmov\ttmp1, vend.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #16\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target character was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND(__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "6d09ce9f98d067f7509dc89109ffa58aa56cb2dd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6d09ce9f98d067f7509dc89109ffa58aa56cb2dd/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 127}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:2", "text": "four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set if\n   the relevant byte matched the requested character; bit 1 is set\n   if the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL) and bits 2 and 3\n   are not used.\n   Since the bits in the syndrome reflect exactly the order in which\n   things occur in the original string a count_trailing_zeros()\n   operation will identify exactly which byte is causing the termination,\n   and why. */\n\n/* Locals and temporaries. */\n\nENTRY(__strchr_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x20022002 used\n\t   similarly for NUL termination. */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #15\t\t/* Work with aligned 16-byte chunks. */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #15\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(loop)\n\n\t/* Input string is not 16-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tldr\tqdata, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\tlsl\ttmp1, tmp1, #2\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\tmov\ttmp3, #~0\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tlsl\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend.d[0]\n\tands\ttmp1, tmp3, tmp1\t/* Mask padding bits. */\n\tb.ne\tL(tail)\n\nL(loop):\n\tldr\tqdata, [src], #32\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbnz\ttmp1, L(end)\n\n\tldr\tqdata, [src, #-16]\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "c8e72e8a173184de0f495c0fc58d4ca0a78391a3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c8e72e8a173184de0f495c0fc58d4ca0a78391a3/string/aarch64/strchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:3", "text": "mov\ttmp3, vend.d[0]\n\tands\ttmp1, tmp3, tmp1\t/* Mask padding bits. */\n\tb.ne\tL(tail)\n\nL(loop):\n\tldr\tqdata, [src], #32\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbnz\ttmp1, L(end)\n\n\tldr\tqdata, [src, #-16]\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Adjust src for next two subtractions. */\n\tadd\tsrc, src, #16\nL(end):\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\tsub\tsrc, src, #16\n\torr\tvend.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\n\tmov\ttmp1, vend.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #16\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target character was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND(__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "c8e72e8a173184de0f495c0fc58d4ca0a78391a3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c8e72e8a173184de0f495c0fc58d4ca0a78391a3/string/aarch64/strchr-mte.S", "line_start": 81, "line_end": 130}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-mte.S:4", "text": "sub\tsrc, src, #16\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target character was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #2\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND(__strchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-mte.S", "license": "MIT", "commit": "c8e72e8a173184de0f495c0fc58d4ca0a78391a3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c8e72e8a173184de0f495c0fc58d4ca0a78391a3/string/aarch64/strchr-mte.S", "line_start": 121, "line_end": 130}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "b.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 68}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "orrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 69}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY_ALIGN (FUNC, 4)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "incb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 72}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\nENTRY_ALIGN (FUNC, 4)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "cmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 71}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "cmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\nEND (FUNC)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 73}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\n\t.globl\tFUNC\n\t.type\tFUNC, %function\n\t.p2align 4\nFUNC:\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "incb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\n\t.size\tFUNC, . - FUNC\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 71}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.  */\n#ifdef BUILD_STRCHRNUL\n#define FUNC  __strchrnul_aarch64_sve\n#else\n#define FUNC  __strchr_aarch64_sve\n#endif\n\n\t.globl\tFUNC\n\t.type\tFUNC, %function\n\t.p2align 4\nFUNC:\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0\t\t\t\t/* speculate increment */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "fbe165cbc1e6695bedfa6b981422e618dc157959", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fbe165cbc1e6695bedfa6b981422e618dc157959/string/aarch64/strchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve.S:2", "text": "cmpeq\tp2.b, p1/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p1/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.none\t0b\n\tdecb\tx0\t\t\t\t/* undo speculate */\n\n\t/* Found C or 0.  */\n1:\tbrka\tp4.b, p1/z, p4.b\t/* find first such */\n\tsub\tx0, x0, 1\t\t/* adjust pointer for that byte */\n\tincp\tx0, p4.b\n#ifndef BUILD_STRCHRNUL\n\tptest\tp4, p2.b\t\t/* was first in c? */\n\tcsel\tx0, xzr, x0, none\t/* if there was no c, return null */\n#endif\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparision only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t\t/* search for c */\n\tcmpeq\tp3.b, p0/z, z0.b, 0\t\t/* search for 0 */\n\torrs\tp4.b, p0/z, p2.b, p3.b\t\t/* c | 0 */\n\tb.any\t1b\n\n\t/* No C or 0 found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx0, p0.b\n\tb\t0b\n\n\t.size\tFUNC, . - FUNC", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve.S", "license": "MIT", "commit": "fbe165cbc1e6695bedfa6b981422e618dc157959", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fbe165cbc1e6695bedfa6b981422e618dc157959/string/aarch64/strchr-sve.S", "line_start": 41, "line_end": 69}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve2.S:1", "text": "/*\n * strchr/strchrnul - find a character in a string\n *\n * Copyright (c) 2026, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n.arch armv9-a+sve2\n\n/* Assumptions:\n *\n * AArch64\n * SVE2 Available.\n */\n\n// To build as strchrnul, define BUILD_STRCHRNUL before compiling this file.\n#if defined (BUILD_STRCHRNUL)\n#define FUNC  __strchrnul_aarch64_sve2\n#else\n#define FUNC  __strchr_aarch64_sve2\n#endif\n\n#define srcin\t\tx0\t\t// const char* src.\n#define chrin\t\tw1\t\t// int chr.\n#define result\t\tx0\t\t// Return.\n\n#define\tvlalign\t\tx2\t\t// Alignment mask.\n#define\tsrc\t\tx3\t\t// Current data pointer.\n#define\tsrcincopy\tx4\t\t// Copy of src pointer.\n\n#define zdata\t\tz0\t\t// Data.\n#define zchr_nul\tz1\t\t// chr and null data for search.\n#define zchr\t\tz2\t\t// chr data for search.\n\n#define pall\t\tp0\t\t// All active predicate.\n#define pchr_nul\tp1\t\t// chr and null search result.\n#define pchr\t\tp2\t\t// chr search result.\n#define p1stchunk\tp3\t\t// Mask for first chunk.\n#define pfirst\t\tp4\t\t// First found.\n\nENTRY (FUNC)\n\tdup\tzchr.b, chrin\t\t// Initialize chr data for search.\n\tand\tchrin, chrin, #0xff\t// Set zeros after first byte.\n\tdup\tzchr_nul.h, chrin\t// Initialize chr and null for search.\n\n\tmov\tvlalign, #-1\t\t// Create alignment mask based on VL.\n\tincb\tvlalign\n\n\tmov\tsrcincopy, srcin\t// Copy srcin pointer\n\tbic\tsrc, srcin, vlalign\t// Align src to VL.\n\tptrue\tpall.b\t\t\t// Initialize all active.\n\n\t.p2align 4\nL(loop):\n\tld1b\t{zdata.b}, pall/z, [src]\t// Read\tnext chunk.\n\tmatch\tpchr_nul.b, pall/z, zdata.b, zchr_nul.b\t// Find chr or null.\n\tb.any\tL(loop_end)\t// If chr or null are found, move to end.\nL(loop2):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve2.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr-sve2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr-sve2.S:2", "text": "#define pfirst\t\tp4\t\t// First found.\n\nENTRY (FUNC)\n\tdup\tzchr.b, chrin\t\t// Initialize chr data for search.\n\tand\tchrin, chrin, #0xff\t// Set zeros after first byte.\n\tdup\tzchr_nul.h, chrin\t// Initialize chr and null for search.\n\n\tmov\tvlalign, #-1\t\t// Create alignment mask based on VL.\n\tincb\tvlalign\n\n\tmov\tsrcincopy, srcin\t// Copy srcin pointer\n\tbic\tsrc, srcin, vlalign\t// Align src to VL.\n\tptrue\tpall.b\t\t\t// Initialize all active.\n\n\t.p2align 4\nL(loop):\n\tld1b\t{zdata.b}, pall/z, [src]\t// Read\tnext chunk.\n\tmatch\tpchr_nul.b, pall/z, zdata.b, zchr_nul.b\t// Find chr or null.\n\tb.any\tL(loop_end)\t// If chr or null are found, move to end.\nL(loop2):\n\tld1b\t{zdata.b}, pall/z, [src, #1, mul vl]\t// Read\tnext chunk.\n\tincb\tsrc, all, mul #2\t// Increment by 2xVL.\n\tmatch\tpchr_nul.b, pall/z, zdata.b, zchr_nul.b\t// Find chr or null.\n\tb.none\tL(loop)\t\t// If chr or null are not found, repeat loop.\n\n\tdecb\tsrc\t\t\t// Decrement by VL.\nL(loop_end):\n\tmov\tresult, src\t\t// Copy current pointer to result.\n\tbrkb\tpfirst.b, pall/z, pchr_nul.b\t// Find first element.\n\tincp\tresult, pfirst.b\t// Increment result by element index.\n\tcmp\tresult, srcincopy\t// Is result before srcin?\n\tb.lo\tL(first_chunk)\t// If yes, first chunk should be handled.\n#if !defined (BUILD_STRCHRNUL)\n\tmatch\tpchr.b, pchr_nul/z, zdata.b, zchr.b\t// Find only chr.\n\tcsel\tresult, result, xzr, first\t// If it is not, return null.\n#endif\n\tret\n\n\t.p2align 4\nL(first_chunk):\n\twhilelo\tp1stchunk.b, src, srcincopy\t// Mask for first chunk.\n\t// Apply first chunk mask.\n\tbics\tpchr_nul.b, pall/z, pchr_nul.b, p1stchunk.b\n\tb.any\tL(loop_end)\t// If chr or null are found, move to end.\n\tb\tL(loop2)\t// If not, proceed search in loop\n\nEND (FUNC)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr-sve2.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr-sve2.S", "line_start": 41, "line_end": 87}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tbif\tvhas_nul1.16b, vhas_chr1.16b, vrepmask_0.16b\n\tbif\tvhas_nul2.16b, vhas_chr2.16b, vrepmask_0.16b\n\tand\tvend1.16b, vhas_nul1.16b, vrepmask_c.16b\n\tand\tvend2.16b, vhas_nul2.16b, vrepmask_c.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "addp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tbif\tvhas_nul1.16b, vhas_chr1.16b, vrepmask_0.16b\n\tbif\tvhas_nul2.16b, vhas_chr2.16b, vrepmask_0.16b\n\tand\tvend1.16b, vhas_nul1.16b, vrepmask_c.16b\n\tand\tvend2.16b, vhas_nul2.16b, vrepmask_c.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchr.S", "line_start": 81, "line_end": 124}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tbif\tvhas_nul1.16b, vhas_chr1.16b, vrepmask_0.16b\n\tbif\tvhas_nul2.16b, vhas_chr2.16b, vrepmask_0.16b\n\tand\tvend1.16b, vhas_nul1.16b, vrepmask_c.16b\n\tand\tvend2.16b, vhas_nul2.16b, vrepmask_c.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "lsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tbif\tvhas_nul1.16b, vhas_chr1.16b, vrepmask_0.16b\n\tbif\tvhas_nul2.16b, vhas_chr2.16b, vrepmask_0.16b\n\tand\tvend1.16b, vhas_nul1.16b, vrepmask_c.16b\n\tand\tvend2.16b, vhas_nul2.16b, vrepmask_c.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchr.S", "line_start": 81, "line_end": 125}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\t/* Magic constant 0xc0300c03 to allow us to identify which lane\n\t   matches the requested byte.  Even bits are set if the character\n\t   matches, odd bits if either the char is NUL or matches.  */\n\tmov\twtmp2, 0x0c03\n\tmovk\twtmp2, 0xc030, lsl 16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "addp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tbif\tvhas_nul1.16b, vhas_chr1.16b, vrepmask_0.16b\n\tbif\tvhas_nul2.16b, vhas_chr2.16b, vrepmask_0.16b\n\tand\tvend1.16b, vhas_nul1.16b, vrepmask_c.16b\n\tand\tvend2.16b, vhas_nul2.16b, vrepmask_c.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchr.S", "line_start": 81, "line_end": 126}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "orr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vend1.16b, vend2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strchr.S", "line_start": 81, "line_end": 131}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:4", "text": "/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strchr.S", "line_start": 121, "line_end": 131}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "orr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vend1.16b, vend2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\nEND (__strchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strchr.S", "line_start": 81, "line_end": 131}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n * strchr - find a character in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchr_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchr_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "cmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vend1.16b, vend2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.size\t__strchr_aarch64, . - __strchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchr.S", "line_start": 81, "line_end": 137}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:4", "text": "addp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.size\t__strchr_aarch64, . - __strchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchr.S", "line_start": 121, "line_end": 137}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchr_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.2d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "cmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.2d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vend1.16b, vend2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.2d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.2d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.size\t__strchr_aarch64, . - __strchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strchr.S", "line_start": 81, "line_end": 137}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:4", "text": "addp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.2d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.size\t__strchr_aarch64, . - __strchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strchr.S", "line_start": 121, "line_end": 137}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:1", "text": "/*\n   strchr - find a character in a string\n\n   Copyright (c) 2014, ARM Limited\n   All rights Reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the company nor the names of its contributors\n         may be used to endorse or promote products derived from this\n         software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "b6b6ee093032002dfd4e70c28a48316da965ba25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b6b6ee093032002dfd4e70c28a48316da965ba25/string/aarch64/strchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:2", "text": "#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchr_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "b6b6ee093032002dfd4e70c28a48316da965ba25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b6b6ee093032002dfd4e70c28a48316da965ba25/string/aarch64/strchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:3", "text": "def_fn __strchr_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.2d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vend1.16b, vend2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.2d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "b6b6ee093032002dfd4e70c28a48316da965ba25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b6b6ee093032002dfd4e70c28a48316da965ba25/string/aarch64/strchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strchr.S:4", "text": "ld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vend1.16b, vend2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.2d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvend2.16b, vhas_nul2.16b, vhas_chr2.16b\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend2.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.2d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\t/* Tmp1 is even if the target charager was found first.  Otherwise\n\t   we've found the end of string and we weren't looking for NUL.  */\n\ttst\ttmp1, #1\n\tadd\tresult, src, tmp1, lsr #1\n\tcsel\tresult, result, xzr, eq\n\tret\n\n\t.size\t__strchr_aarch64, . - __strchr_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchr.S", "license": "MIT", "commit": "b6b6ee093032002dfd4e70c28a48316da965ba25", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b6b6ee093032002dfd4e70c28a48316da965ba25/string/aarch64/strchr.S", "line_start": 121, "line_end": 159}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "bic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbnz\ttmp1, L(end)\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\tsub\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tadd\tsrc, src, 16\n\tfmov\ttmp1, dend\n#ifndef __AARCH64EB__\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 83}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "PTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbnz\ttmp1, L(end)\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\tsub\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tadd\tsrc, src, 16\n\tfmov\ttmp1, dend\n#ifndef __AARCH64EB__\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 84}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "87e99142bf8273215f58e4770fd7247e4b6e401b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/87e99142bf8273215f58e4770fd7247e4b6e401b/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vend\t\tv4\n#define dend\t\td4\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "PTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#ifndef __AARCH64EB__\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 76}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n#define tmp2w\t\tw3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#ifndef __AARCH64EB__\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 83}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n#define tmp2w\t\tw3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n#define tmp2w\t\tw3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define qdata\t\tq1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#ifndef __AARCH64EB__\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 82}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\t.p2align 4\nL(loop):\n\tldr\tqdata, [src, 16]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n#ifndef __AARCH64EB__\n\trbit\ttmp1, tmp1\n#endif\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "fa69d42a8c196b3fa4c492fe4950fe4e39976a8c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fa69d42a8c196b3fa4c492fe4950fe4e39976a8c/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 84}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp1\t\tx1\n#define tmp2\t\tx3\n#define tmp2w\t\tw3\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop1)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "ENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop1)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\tnop\n\tnop\nL(loop1):\n\tadd\tsrc, src, 16\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tsub\tsrc, src, 16\n\tbic\tvhas_chr.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 87}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "ENTRY (__strchrnul_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tld1\t{vdata.16b}, [src]\n\tmov\ttmp2w, 0xf00f\n\tdup\tvrepmask.8h, tmp2w\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tlsl\ttmp2, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\tlsr\ttmp1, tmp1, tmp2\t/* Mask padding bits.  */\n\tcbz\ttmp1, L(loop1)\n\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, srcin, tmp1, lsr 2\n\tret\n\n\tnop\n\tnop\nL(loop1):\n\tadd\tsrc, src, 16\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_chr.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\n\tfmov\ttmp1, dend\n\tcbz\ttmp1, L(loop)\n\n\tsub\tsrc, src, 16\n\tbic\tvhas_chr.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\ttmp1, dend\n\trbit\ttmp1, tmp1\n\tclz\ttmp1, tmp1\n\tadd\tresult, src, tmp1, lsr 2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "878eb93ffff971a775cb3a23b333db73441f51e6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/878eb93ffff971a775cb3a23b333db73441f51e6/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 85}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define qdata\t\tq1\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask_c\tv5\n#define vend\t\tv6\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with four bits\n   per byte. For each tuple, bit 0 is set if the relevant byte matched the\n   requested character or NUL and bit 1, 2, 3 are not used (faster than using\n   a lower bit syndrome). Since the bits in the syndrome reflect exactly the\n   order in which things occur in the original string, counting trailing zeros\n   allows to identify exactly which byte has matched.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #15\t\t/* Work with aligned 16-byte chunks. */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #15\n\tb.eq\tL(loop)\n\n\t/* Input string is not 16-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "563b710ddc13810bd89fc17f057f4f7f8479e744", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/563b710ddc13810bd89fc17f057f4f7f8479e744/string/aarch64/strchrnul-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:2", "text": "order in which things occur in the original string, counting trailing zeros\n   allows to identify exactly which byte has matched.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #15\t\t/* Work with aligned 16-byte chunks. */\n\tdup\tvrepmask_c.4s, wtmp2\n\tands\ttmp1, srcin, #15\n\tb.eq\tL(loop)\n\n\t/* Input string is not 16-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tlsl\ttmp1, tmp1, #2\n\torr\tvhas_chr.16b, vhas_nul.16b, vhas_chr.16b\n\tmov\ttmp3, #~0\n\tand\tvend.16b, vhas_chr.16b, vrepmask_c.16b\n\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\tlsl\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend.d[0]\n\tands\ttmp1, tmp3, tmp1\t/* Mask padding bits.  */\n\tb.ne\tL(tail)\n\nL(loop):\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvend.16b, vhas_chr.16b, vrepmask_c.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\n\tmov\ttmp1, vend.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #16\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\tadd\tresult, src, tmp1, lsr #2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "563b710ddc13810bd89fc17f057f4f7f8479e744", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/563b710ddc13810bd89fc17f057f4f7f8479e744/string/aarch64/strchrnul-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul-mte.S:3", "text": "orr\tvhas_chr.16b, vhas_nul.16b, vhas_chr.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tmov\ttmp1, vend.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found, let's calculate the syndrome value */\n\tand\tvend.16b, vhas_chr.16b, vrepmask_c.16b\n\taddp\tvend.16b, vend.16b, vend.16b\t\t/* 128->64 */\n\n\tmov\ttmp1, vend.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #16\n\tclz\ttmp1, tmp1\t/* And counting the leading zeros.  */\n\tadd\tresult, src, tmp1, lsr #2\n\tret\n\nEND (__strchrnul_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul-mte.S", "license": "MIT", "commit": "563b710ddc13810bd89fc17f057f4f7f8479e744", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/563b710ddc13810bd89fc17f057f4f7f8479e744/string/aarch64/strchrnul-mte.S", "line_start": 81, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": ".p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\nEND (__strchrnul_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 112}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": "cbnz\ttmp1, L(tail)\n\n\t.p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\nEND (__strchrnul_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 113}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": ".p2align 4\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tcmhs\tvhas_nul1.16b, vhas_chr1.16b, vdata1.16b\n\tcmhs\tvhas_nul2.16b, vhas_chr2.16b, vdata2.16b\n\torr\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\n\tumaxp\tvend1.16b, vend1.16b, vend1.16b\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_nul1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_nul2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\nEND (__strchrnul_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 114}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\tL(loop)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\torr\tvhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b\n\torr\tvhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": "bic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, L(tail)\n\nL(loop):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, L(loop)\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\nL(tail):\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\nEND (__strchrnul_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 116}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\nENTRY (__strchrnul_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\torr\tvhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b\n\torr\tvhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": "bic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\nEND (__strchrnul_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 116}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n * strchrnul - find a character or nul in a string\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchrnul_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchrnul_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\torr\tvhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b\n\torr\tvhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": "addp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\n\t.size\t__strchrnul_aarch64, . - __strchrnul_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "4f4e530b2fda475a37e583bc113ad2fd3e83dc7f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4f4e530b2fda475a37e583bc113ad2fd3e83dc7f/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 122}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchrnul_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\torr\tvhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b\n\torr\tvhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.2d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": "addp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.2d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.2d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.2d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\n\t.size\t__strchrnul_aarch64, . - __strchrnul_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 122}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:1", "text": "/*\n   strchrnul - find a character or nul in a string\n\n   Copyright (c) 2014, ARM Limited\n   All rights Reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the company nor the names of its contributors\n         may be used to endorse or promote products derived from this\n         software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "d35239cd90fa6092f110fcf840c8337d321ed289", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d35239cd90fa6092f110fcf840c8337d321ed289/string/aarch64/strchrnul.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:2", "text": "#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask\tv7\n#define vend1\t\tv16\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character or nul.  Since the\n   bits in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination.  */\n\n/* Locals and temporaries.  */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __strchrnul_aarch64\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the termination condition.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\torr\tvhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b\n\torr\tvhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "d35239cd90fa6092f110fcf840c8337d321ed289", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d35239cd90fa6092f110fcf840c8337d321ed289/string/aarch64/strchrnul.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:3", "text": "movk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask.4s, wtmp2\n\tands\ttmp1, srcin, #31\n\tb.eq\t.Lloop\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\torr\tvhas_chr1.16b, vhas_chr1.16b, vhas_nul1.16b\n\torr\tvhas_chr2.16b, vhas_chr2.16b, vhas_nul2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\tlsl\ttmp1, tmp1, #1\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\tmov\ttmp3, #~0\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\tlsr\ttmp1, tmp3, tmp1\n\n\tmov\ttmp3, vend1.2d[0]\n\tbic\ttmp1, tmp3, tmp1\t// Mask padding bits.\n\tcbnz\ttmp1, .Ltail\n\n.Lloop:\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\t/* Use a fast check for the termination condition.  */\n\torr\tvhas_chr1.16b, vhas_nul1.16b, vhas_chr1.16b\n\torr\tvhas_chr2.16b, vhas_nul2.16b, vhas_chr2.16b\n\torr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.2d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.2d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "d35239cd90fa6092f110fcf840c8337d321ed289", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d35239cd90fa6092f110fcf840c8337d321ed289/string/aarch64/strchrnul.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strchrnul.S:4", "text": "orr\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\n\taddp\tvend1.2d, vend1.2d, vend1.2d\n\tmov\ttmp1, vend1.2d[0]\n\tcbz\ttmp1, .Lloop\n\n\t/* Termination condition found.  Now need to establish exactly why\n\t   we terminated.  */\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask.16b\n\taddp\tvend1.16b, vhas_chr1.16b, vhas_chr2.16b\t\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t\t// 128->64\n\n\tmov\ttmp1, vend1.2d[0]\n.Ltail:\n\t/* Count the trailing zeros, by bit reversing...  */\n\trbit\ttmp1, tmp1\n\t/* Re-bias source.  */\n\tsub\tsrc, src, #32\n\tclz\ttmp1, tmp1\t/* ... and counting the leading zeros.  */\n\t/* tmp1 is twice the offset into the fragment.  */\n\tadd\tresult, src, tmp1, lsr #1\n\tret\n\n\t.size\t__strchrnul_aarch64, . - __strchrnul_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strchrnul.S", "license": "MIT", "commit": "d35239cd90fa6092f110fcf840c8337d321ed289", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d35239cd90fa6092f110fcf840c8337d321ed289/string/aarch64/strchrnul.S", "line_start": 121, "line_end": 144}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define off1\t\tx5\n#define syndrome\tx6\n#define tmp\t\tx6\n#define data3\t\tx7\n#define zeroones\tx8\n#define shift\t\tx9\n#define off2\t\tx10\n\n/* On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.  */\n#ifdef __AARCH64EB__\n# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64_mte)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:2", "text": "# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64_mte)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)\n\tcbnz\ttmp, L(mutual_align)\n\n\t.p2align 4\n\nL(loop_aligned):\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\nL(start_realigned):\n#ifdef __AARCH64EB__\n\trev\ttmp, data1\n\tsub\thas_nul, tmp, zeroones\n\torr\ttmp, tmp, REP8_7f\n#else\n\tsub\thas_nul, data1, zeroones\n\torr\ttmp, data1, REP8_7f\n#endif\n\tbics\thas_nul, has_nul, tmp\t/* Non-zero if NUL terminator.  */\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_aligned)\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:5", "text": "ccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tlsl\ttmp, has_nul, shift\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tneg\tshift, shift\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp-mte.S", "line_start": 161, "line_end": 188}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define off1\t\tx5\n#define syndrome\tx6\n#define tmp\t\tx6\n#define data3\t\tx7\n#define zeroones\tx8\n#define shift\t\tx9\n#define off2\t\tx10\n\n/* On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.  */\n#ifdef __AARCH64EB__\n# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64_mte)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)\n\tcbnz\ttmp, L(mutual_align)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "f08b12e8085b6d0db039198e08af3898bb6e8598", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f08b12e8085b6d0db039198e08af3898bb6e8598/string/aarch64/strcmp-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:2", "text": "# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64_mte)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)\n\tcbnz\ttmp, L(mutual_align)\n\n\t.p2align 4\n\nL(loop_aligned):\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\nL(start_realigned):\n#ifdef __AARCH64EB__\n\trev\ttmp, data1\n\tsub\thas_nul, tmp, zeroones\n\torr\ttmp, tmp, REP8_7f\n#else\n\tsub\thas_nul, data1, zeroones\n\torr\ttmp, data1, REP8_7f\n#endif\n\tbics\thas_nul, has_nul, tmp\t/* Non-zero if NUL terminator.  */\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_aligned)\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56\n\tsub\tresult, data1, data2, lsr 56\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "f08b12e8085b6d0db039198e08af3898bb6e8598", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f08b12e8085b6d0db039198e08af3898bb6e8598/string/aarch64/strcmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:5", "text": "lsl\ttmp, has_nul, shift\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tneg\tshift, shift\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "f08b12e8085b6d0db039198e08af3898bb6e8598", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f08b12e8085b6d0db039198e08af3898bb6e8598/string/aarch64/strcmp-mte.S", "line_start": 161, "line_end": 186}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:3", "text": "eor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56\n\tsub\tresult, data1, data2, lsr 56\n\tret\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.  */\n\tbic\tsrc1, src1, 7\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\n\tneg\tshift, src2, lsl 3\t/* Bits to alignment -64.  */\n\tmov\ttmp, -1\n\tLS_FW\ttmp, tmp, shift\n\torr\tdata1, data1, tmp\n\torr\tdata2, data2, tmp\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond the end of SRC2.  */\n\tcbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tlsl\tshift, src2, 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tbic\thas_nul, has_nul, tmp\n\tlsr\ttmp, has_nul, shift\n\tcbnz\ttmp, L(tail)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "304137d841407370a5b7f22fde75300102a9a033", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/304137d841407370a5b7f22fde75300102a9a033/string/aarch64/strcmp-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:4", "text": "ldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tlsl\tshift, src2, 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tbic\thas_nul, has_nul, tmp\n\tlsr\ttmp, has_nul, shift\n\tcbnz\ttmp, L(tail)\n\n\tsub\toff1, src2, src1\n\n\t.p2align 4\n\nL(loop_unaligned):\n\tldr\tdata3, [src1, off1]\n\tldr\tdata2, [src1, off2]\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tldr\tdata1, [src1], 8\n\tbics\thas_nul, has_nul, tmp\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tneg\ttmp, shift\n\tlsl\ttmp, has_nul, tmp\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "304137d841407370a5b7f22fde75300102a9a033", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/304137d841407370a5b7f22fde75300102a9a033/string/aarch64/strcmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:5", "text": "#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\n\nEND (__strcmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "304137d841407370a5b7f22fde75300102a9a033", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/304137d841407370a5b7f22fde75300102a9a033/string/aarch64/strcmp-mte.S", "line_start": 161, "line_end": 184}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:3", "text": "eor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56\n\tsub\tresult, data1, data2, lsr 56\n\tret\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\n\t.p2align 4\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.  */\n\tbic\tsrc1, src1, 7\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\n\tneg\tshift, src2, lsl 3\t/* Bits to alignment -64.  */\n\tLS_FW\ttmp, zeroones, shift\n\torr\tdata1, data1, tmp\n\torr\tdata2, data2, tmp\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond the end of SRC2.  */\n\tcbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tlsl\tshift, src2, 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "27bb6b2b4280648527c057a275ae001cbc76dc4b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/27bb6b2b4280648527c057a275ae001cbc76dc4b/string/aarch64/strcmp-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:4", "text": ".p2align 4\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond the end of SRC2.  */\n\tcbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tlsl\tshift, src2, 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tbics\thas_nul, has_nul, tmp\n\tb.ne\tL(tail)\n\n\tsub\toff1, src2, src1\n\n\t.p2align 4\n\nL(loop_unaligned):\n\tldr\tdata3, [src1, off1]\n\tldr\tdata2, [src1, off2]\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tldr\tdata1, [src1], 8\n\tbics\thas_nul, has_nul, tmp\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tneg\ttmp, shift\n\tlsl\ttmp, has_nul, tmp\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "27bb6b2b4280648527c057a275ae001cbc76dc4b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/27bb6b2b4280648527c057a275ae001cbc76dc4b/string/aarch64/strcmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:5", "text": "bics\thas_nul, has_nul, tmp\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tneg\ttmp, shift\n\tlsl\ttmp, has_nul, tmp\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nEND (__strcmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "27bb6b2b4280648527c057a275ae001cbc76dc4b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/27bb6b2b4280648527c057a275ae001cbc76dc4b/string/aarch64/strcmp-mte.S", "line_start": 161, "line_end": 185}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:2", "text": "On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nENTRY (__strcmp_aarch64_mte)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(end):\n#ifdef __AARCH64EB__\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:3", "text": "/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(end_quick):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n#endif\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n#ifndef __AARCH64EB__\n\trev\tdata2, data2\n#endif\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:4", "text": "#ifndef __AARCH64EB__\n\trev\tdata2, data2\n#endif\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c\n\n\t   The bytes with \"0\" are eliminated from the syndrome via mask. */\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\n\t/* Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:5", "text": "L(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\n\t/* Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):\n\t/* Calculate offset from 8 byte alignment to string start in bits. No\n\t   need to mask offset since shifts are ignoring upper bits. */\n\tlsl\toffset, src2, #3\n\tbic\tsrc2, src2, #0xf\n\tmov\tmask, -1\n\tneg\tneg_offset, offset\n\tldr\tdata1, [src1], #8\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsub\thas_nul, data1, zeroones\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\torr\ttmp3, data1, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\tsyndrome, diff, has_nul\n\tcbnz\tsyndrome, L(end)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp-mte.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:6", "text": "bic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\tsyndrome, diff, has_nul\n\tcbnz\tsyndrome, L(end)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\torr\tsyndrome, diff, has_nul\n\tbics\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tb.ne\tL(end_quick)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tands\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tb.ne\tL(end_quick)\n\n\tldr\tdata1, [src1], #8\n\tb\tL(loop_misaligned)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp-mte.S", "line_start": 201, "line_end": 244}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-mte.S:6", "text": "bic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\tsyndrome, diff, has_nul\n\tcbnz\tsyndrome, L(end)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\torr\tsyndrome, diff, has_nul\n\tbics\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tb.ne\tL(end_quick)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tands\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tb.ne\tL(end_quick)\n\n\tldr\tdata1, [src1], #8\n\tb\tL(loop_misaligned)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-mte.S", "license": "MIT", "commit": "9ebd961562537fc5743eb3fc497f3ff558892237", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9ebd961562537fc5743eb3fc497f3ff558892237/string/aarch64/strcmp-mte.S", "line_start": 201, "line_end": 246}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 56}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 58}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 58}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 58}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 58}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strcmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 58}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strcmp_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:2", "text": "/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3/string/aarch64/strcmp-sve.S", "line_start": 41, "line_end": 61}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strcmp_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strcmp_aarch64_sve, 4)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 59}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:2", "text": "1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\nEND (__strcmp_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strcmp-sve.S", "line_start": 41, "line_end": 61}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strcmp_aarch64_sve\n\t.type\t__strcmp_aarch64_sve, %function\n\t.p2align 4\n__strcmp_aarch64_sve:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\n\t.size\t__strcmp_aarch64_sve, . - __strcmp_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 59}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp-sve.S:1", "text": "/*\n * __strcmp_aarch64_sve - compare two strings\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strcmp_aarch64_sve\n\t.type\t__strcmp_aarch64_sve, %function\n\t.p2align 4\n__strcmp_aarch64_sve:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, x2]\n\tldff1b\tz1.b, p1/z, [x1, x2]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx2, all\t\t\t/* skip bytes for next round */\n\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp3.b, p1/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p1/z, p2.b, p3.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p1/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tincp\tx2, p0.b\t\t/* skip bytes for next round */\n\tsetffr\t\t\t\t/* re-init FFR for next round */\n\tcmpeq\tp2.b, p0/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p0/z, z0.b, 0\n\tnands\tp2.b, p0/z, p2.b, p3.b\n\tb.none\t0b\n\tb\t1b\n\n\t.size\t__strcmp_aarch64_sve, . - __strcmp_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp-sve.S", "license": "MIT", "commit": "0fed5b1d70242ee4ae57acc95cff42bef3ce8fa7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0fed5b1d70242ee4ae57acc95cff42bef3ce8fa7/string/aarch64/strcmp-sve.S", "line_start": 1, "line_end": 57}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define off1\t\tx5\n#define syndrome\tx6\n#define tmp\t\tx6\n#define data3\t\tx7\n#define zeroones\tx8\n#define shift\t\tx9\n#define off2\t\tx10\n\n/* On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.  */\n#ifdef __AARCH64EB__\n# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)\n\tcbnz\ttmp, L(mutual_align)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:2", "text": "# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)\n\tcbnz\ttmp, L(mutual_align)\n\n\t.p2align 4\n\nL(loop_aligned):\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\nL(start_realigned):\n#ifdef __AARCH64EB__\n\trev\ttmp, data1\n\tsub\thas_nul, tmp, zeroones\n\torr\ttmp, tmp, REP8_7f\n#else\n\tsub\thas_nul, data1, zeroones\n\torr\ttmp, data1, REP8_7f\n#endif\n\tbics\thas_nul, has_nul, tmp\t/* Non-zero if NUL terminator.  */\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_aligned)\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56\n\tsub\tresult, data1, data2, lsr 56\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:3", "text": "eor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56\n\tsub\tresult, data1, data2, lsr 56\n\tret\n\n\t.p2align 4\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.  */\n\tbic\tsrc1, src1, 7\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\n\tneg\tshift, src2, lsl 3\t/* Bits to alignment -64.  */\n\tmov\ttmp, -1\n\tLS_FW\ttmp, tmp, shift\n\torr\tdata1, data1, tmp\n\torr\tdata2, data2, tmp\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond the end of SRC2.  */\n\tcbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tneg\tshift, src2, lsl 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tlsr\ttmp, zeroones, shift\n\torr\tdata3, data3, tmp\n\tsub\thas_nul, data3, zeroones", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "cbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tneg\tshift, src2, lsl 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tlsr\ttmp, zeroones, shift\n\torr\tdata3, data3, tmp\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tbics\thas_nul, has_nul, tmp\n\tb.ne\tL(tail)\n\n\tsub\toff1, src2, src1\n\n\t.p2align 4\n\nL(loop_unaligned):\n\tldr\tdata3, [src1, off1]\n\tldr\tdata2, [src1, off2]\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tldr\tdata1, [src1], 8\n\tbics\thas_nul, has_nul, tmp\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tlsl\ttmp, has_nul, shift\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tneg\tshift, shift\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "lsl\ttmp, has_nul, shift\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tneg\tshift, shift\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcmp.S", "line_start": 161, "line_end": 186}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define off1\t\tx5\n#define syndrome\tx6\n#define tmp\t\tx6\n#define data3\t\tx7\n#define zeroones\tx8\n#define shift\t\tx9\n#define off2\t\tx10\n\n/* On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.  */\n#ifdef __AARCH64EB__\n# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:2", "text": "# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)\n\tcbnz\ttmp, L(mutual_align)\n\n\t.p2align 4\n\nL(loop_aligned):\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\nL(start_realigned):\n#ifdef __AARCH64EB__\n\trev\ttmp, data1\n\tsub\thas_nul, tmp, zeroones\n\torr\ttmp, tmp, REP8_7f\n#else\n\tsub\thas_nul, data1, zeroones\n\torr\ttmp, data1, REP8_7f\n#endif\n\tbics\thas_nul, has_nul, tmp\t/* Non-zero if NUL terminator.  */\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_aligned)\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:3", "text": "rev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\nL(end):\n#ifndef __AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tclz\tshift, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, shift\n\tlsl\tdata2, data2, shift\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, 56\n\tsub\tresult, data1, data2, lsr 56\n\tret\n\n\t.p2align 4\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.  */\n\tbic\tsrc1, src1, 7\n\tldr\tdata2, [src1, off2]\n\tldr\tdata1, [src1], 8\n\tneg\tshift, src2, lsl 3\t/* Bits to alignment -64.  */\n\tmov\ttmp, -1\n\tLS_FW\ttmp, tmp, shift\n\torr\tdata1, data1, tmp\n\torr\tdata2, data2, tmp\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond the end of SRC2.  */\n\tcbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tneg\tshift, src2, lsl 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tlsr\ttmp, zeroones, shift", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond the end of SRC2.  */\n\tcbz\ttmp, L(src1_aligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], 1\n\tldrb\tdata2w, [src2], 1\n\tcmp\tdata1w, 0\n\tccmp\tdata1w, data2w, 0, ne\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, 7\n\tb.ne\tL(do_misaligned)\n\nL(src1_aligned):\n\tneg\tshift, src2, lsl 3\n\tbic\tsrc2, src2, 7\n\tldr\tdata3, [src2], 8\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tlsr\ttmp, zeroones, shift\n\torr\tdata3, data3, tmp\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tbics\thas_nul, has_nul, tmp\n\tb.ne\tL(tail)\n\n\tsub\toff1, src2, src1\n\n\t.p2align 4\n\nL(loop_unaligned):\n\tldr\tdata3, [src1, off1]\n\tldr\tdata2, [src1, off2]\n#ifdef __AARCH64EB__\n\trev\tdata3, data3\n#endif\n\tsub\thas_nul, data3, zeroones\n\torr\ttmp, data3, REP8_7f\n\tldr\tdata1, [src1], 8\n\tbics\thas_nul, has_nul, tmp\n\tccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tlsl\ttmp, has_nul, shift\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tneg\tshift, shift\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "ccmp\tdata1, data2, 0, eq\n\tb.eq\tL(loop_unaligned)\n\n\tlsl\ttmp, has_nul, shift\n#ifdef __AARCH64EB__\n\trev\ttmp, tmp\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, tmp\n\tcbnz\tsyndrome, L(end)\nL(tail):\n\tldr\tdata1, [src1]\n\tneg\tshift, shift\n\tlsr\tdata2, data3, shift\n\tlsr\thas_nul, has_nul, shift\n#ifdef __AARCH64EB__\n\trev     data2, data2\n\trev\thas_nul, has_nul\n#endif\n\teor\tdiff, data1, data2\n\torr\tsyndrome, diff, has_nul\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcmp.S", "line_start": 161, "line_end": 188}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define off1\t\tx5\n#define syndrome\tx6\n#define tmp\t\tx6\n#define data3\t\tx7\n#define zeroones\tx8\n#define shift\t\tx9\n#define off2\t\tx10\n\n/* On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.  */\n#ifdef __AARCH64EB__\n# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define off1\t\tx5\n#define syndrome\tx6\n#define tmp\t\tx6\n#define data3\t\tx7\n#define zeroones\tx8\n#define shift\t\tx9\n#define off2\t\tx10\n\n/* On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.  */\n#ifdef __AARCH64EB__\n# define LS_FW lsl\n#else\n# define LS_FW lsr\n#endif\n\n/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n   can be done in parallel across the entire word.\n   Since carry propagation makes 0x1 bytes before a NUL byte appear\n   NUL too in big-endian, byte-reverse the data before the NUL check.  */\n\n\nENTRY (__strcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsub\toff2, src2, src1\n\tmov\tzeroones, REP8_01\n\tand\ttmp, src1, 7\n\ttst\toff2, 7\n\tb.ne\tL(misaligned8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "7b91c3cdb12b023004cb4dda30a1aa3424329ce6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7b91c3cdb12b023004cb4dda30a1aa3424329ce6/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define syndrome\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n#define tmp3\t\tx9\n#define zeroones\tx10\n#define pos\t\tx11\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nENTRY (__strcmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:2", "text": "PTR_ARG (1)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(end):\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:3", "text": "/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that preceed the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "ldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\nL(loop_misaligned):\n\t/* Test if we are within the last dword of the end of a 4K page.  If\n\t   yes then jump back to the misaligned loop to copy a byte at a time.  */\n\tand\ttmp1, src2, #0xff8\n\teor\ttmp1, tmp1, #0xff8\n\tcbz\ttmp1, L(do_misaligned)\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp.S", "line_start": 121, "line_end": 172}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "orr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcmp.S", "line_start": 161, "line_end": 172}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define syndrome\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n#define tmp3\t\tx9\n#define zeroones\tx10\n#define pos\t\tx11\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nENTRY (__strcmp_aarch64)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:2", "text": "mov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(end):\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:3", "text": "bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that preceed the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "ldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\nL(loop_misaligned):\n\t/* Test if we are within the last dword of the end of a 4K page.  If\n\t   yes then jump back to the misaligned loop to copy a byte at a time.  */\n\tand\ttmp1, src2, #0xff8\n\teor\ttmp1, tmp1, #0xff8\n\tcbz\ttmp1, L(do_misaligned)\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp.S", "line_start": 121, "line_end": 170}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "bic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcmp.S", "line_start": 161, "line_end": 170}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "ldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\nL(loop_misaligned):\n\t/* Test if we are within the last dword of the end of a 4K page.  If\n\t   yes then jump back to the misaligned loop to copy a byte at a time.  */\n\tand\ttmp1, src2, #0xff8\n\teor\ttmp1, tmp1, #0xff8\n\tcbz\ttmp1, L(do_misaligned)\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "9ebd961562537fc5743eb3fc497f3ff558892237", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9ebd961562537fc5743eb3fc497f3ff558892237/string/aarch64/strcmp.S", "line_start": 121, "line_end": 172}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "bic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\nEND (__strcmp_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "9ebd961562537fc5743eb3fc497f3ff558892237", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9ebd961562537fc5743eb3fc497f3ff558892237/string/aarch64/strcmp.S", "line_start": 161, "line_end": 172}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define syndrome\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n#define tmp3\t\tx9\n#define zeroones\tx10\n#define pos\t\tx11\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nENTRY (__strcmp_aarch64)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/*\n * strcmp - compare two strings\n *\n * Copyright (c) 2012, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#define L(label) .L ## label\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define syndrome\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n#define tmp3\t\tx9\n#define zeroones\tx10\n#define pos\t\tx11\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\ndef_fn __strcmp_aarch64 p2align=6\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "f319fd97e1d9e7b36b44c86c60df5ce48b7267f9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f319fd97e1d9e7b36b44c86c60df5ce48b7267f9/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:2", "text": "#define tmp2\t\tx8\n#define tmp3\t\tx9\n#define zeroones\tx10\n#define pos\t\tx11\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\ndef_fn __strcmp_aarch64 p2align=6\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(end):\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "f319fd97e1d9e7b36b44c86c60df5ce48b7267f9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f319fd97e1d9e7b36b44c86c60df5ce48b7267f9/string/aarch64/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:3", "text": "/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that preceed the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "f319fd97e1d9e7b36b44c86c60df5ce48b7267f9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f319fd97e1d9e7b36b44c86c60df5ce48b7267f9/string/aarch64/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that preceed the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\nL(loop_misaligned):\n\t/* Test if we are within the last dword of the end of a 4K page.  If\n\t   yes then jump back to the misaligned loop to copy a byte at a time.  */\n\tand\ttmp1, src2, #0xff8\n\teor\ttmp1, tmp1, #0xff8\n\tcbz\ttmp1, L(do_misaligned)\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t.size   __strcmp_aarch64, .-__strcmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "f319fd97e1d9e7b36b44c86c60df5ce48b7267f9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f319fd97e1d9e7b36b44c86c60df5ce48b7267f9/string/aarch64/strcmp.S", "line_start": 121, "line_end": 177}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "eor\ttmp1, tmp1, #0xff8\n\tcbz\ttmp1, L(do_misaligned)\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t.size   __strcmp_aarch64, .-__strcmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "f319fd97e1d9e7b36b44c86c60df5ce48b7267f9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f319fd97e1d9e7b36b44c86c60df5ce48b7267f9/string/aarch64/strcmp.S", "line_start": 161, "line_end": 177}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:1", "text": "/* Copyright (c) 2012, 2018, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#define L(label) .L ## label\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define syndrome\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "5c7d246cb164e674b9345dc49ec8717432064bd8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c7d246cb164e674b9345dc49ec8717432064bd8/string/aarch64/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:2", "text": "#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx2\n#define data1w\t\tw2\n#define data2\t\tx3\n#define data2w\t\tw3\n#define has_nul\t\tx4\n#define diff\t\tx5\n#define syndrome\tx6\n#define tmp1\t\tx7\n#define tmp2\t\tx8\n#define tmp3\t\tx9\n#define zeroones\tx10\n#define pos\t\tx11\n\n\t/* Start of performance-critical section  -- one 64B cache line.  */\ndef_fn __strcmp_aarch64 p2align=6\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tb.ne\tL(misaligned8)\n\tands\ttmp1, src1, #7\n\tb.ne\tL(mutual_align)\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(end):\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "5c7d246cb164e674b9345dc49ec8717432064bd8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c7d246cb164e674b9345dc49ec8717432064bd8/string/aarch64/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:3", "text": "orr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(end):\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "5c7d246cb164e674b9345dc49ec8717432064bd8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c7d246cb164e674b9345dc49ec8717432064bd8/string/aarch64/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:4", "text": "orr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that preceed the start point.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp1, tmp1, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tldr\tdata1, [src1], #8\n\tneg\ttmp1, tmp1\t\t/* Bits to alignment -64.  */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\nL(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\nL(loop_misaligned):\n\t/* Test if we are within the last dword of the end of a 4K page.  If\n\t   yes then jump back to the misaligned loop to copy a byte at a time.  */\n\tand\ttmp1, src2, #0xff8\n\teor\ttmp1, tmp1, #0xff8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "5c7d246cb164e674b9345dc49ec8717432064bd8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c7d246cb164e674b9345dc49ec8717432064bd8/string/aarch64/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcmp.S:5", "text": "L(misaligned8):\n\t/* Align SRC1 to 8 bytes and then compare 8 bytes at a time, always\n\t   checking to make sure that we don't access beyond page boundary in\n\t   SRC2.  */\n\ttst\tsrc1, #7\n\tb.eq\tL(loop_misaligned)\nL(do_misaligned):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\ttst\tsrc1, #7\n\tb.ne\tL(do_misaligned)\n\nL(loop_misaligned):\n\t/* Test if we are within the last dword of the end of a 4K page.  If\n\t   yes then jump back to the misaligned loop to copy a byte at a time.  */\n\tand\ttmp1, src2, #0xff8\n\teor\ttmp1, tmp1, #0xff8\n\tcbz\ttmp1, L(do_misaligned)\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbic\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\torr\tsyndrome, diff, has_nul\n\tcbz\tsyndrome, L(loop_misaligned)\n\tb\tL(end)\n\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t.size   __strcmp_aarch64, .-__strcmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcmp.S", "license": "MIT", "commit": "5c7d246cb164e674b9345dc49ec8717432064bd8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c7d246cb164e674b9345dc49ec8717432064bd8/string/aarch64/strcmp.S", "line_start": 161, "line_end": 196}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-mte.S:2", "text": "# define STRCPY __stpcpy_aarch64_mte\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64_mte\n# define IFSTPCPY(X,...)\n#endif\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbnz\tsynd, L(tail)\n\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(start_loop)\n\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcpy-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-mte.S:2", "text": "# define STRCPY __stpcpy_aarch64_mte\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64_mte\n# define IFSTPCPY(X,...)\n#endif\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbnz\tsynd, L(tail)\n\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(start_loop)\n\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4\nL(less16):\n\ttbz\tlen, 3, L(less8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-mte.S", "license": "MIT", "commit": "0c9a5f3ef64fc801eb6d28971659867284c3000b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0c9a5f3ef64fc801eb6d28971659867284c3000b/string/aarch64/strcpy-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-mte.S:3", "text": "clz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(less8):\n\tsubs\ttmp, len, 3\n\tb.lo\tL(less4)\n\tldr\tdataw1, [srcin]\n\tldr\tdataw2, [srcin, tmp]\n\tstr\tdataw1, [dstin]\n\tstr\tdataw2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(less4):\n\tcbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\tlen, src, srcin\n\tldr\tdataq2, [srcin]\n\tadd\tdst, dstin, len\n\tstr\tdataq2, [dstin]\n\n\t.p2align 5\nL(loop):\n\tstr\tdataq, [dst], 16\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-mte.S", "license": "MIT", "commit": "0c9a5f3ef64fc801eb6d28971659867284c3000b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0c9a5f3ef64fc801eb6d28971659867284c3000b/string/aarch64/strcpy-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-mte.S:4", "text": "cbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\tlen, src, srcin\n\tldr\tdataq2, [srcin]\n\tadd\tdst, dstin, len\n\tstr\tdataq2, [dstin]\n\n\t.p2align 5\nL(loop):\n\tstr\tdataq, [dst], 16\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\tsub\ttmp, len, 15\n\tldr\tdataq, [src, tmp]\n\tstr\tdataq, [dst, tmp]\n\tIFSTPCPY (add result, dst, len)\n\tret\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-mte.S", "license": "MIT", "commit": "0c9a5f3ef64fc801eb6d28971659867284c3000b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0c9a5f3ef64fc801eb6d28971659867284c3000b/string/aarch64/strcpy-mte.S", "line_start": 121, "line_end": 159}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "st1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 68}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 70}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY (FUNC)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY_ALIGN (FUNC, 4)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 73}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\nENTRY_ALIGN (FUNC, 4)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "b.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\nEND (FUNC)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 71}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "b.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\nEND (FUNC)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 73}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\n\t.globl\tFUNC\n\t.type\tFUNC, %function\n\t.p2align 4\nFUNC:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "cmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\n\t.size\tFUNC, . - FUNC\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 71}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.  */\n#ifdef BUILD_STPCPY\n#define FUNC  __stpcpy_aarch64_sve\n#else\n#define FUNC  __strcpy_aarch64_sve\n#endif\n\n\t.globl\tFUNC\n\t.type\tFUNC, %function\n\t.p2align 4\nFUNC:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp2.b, all\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* initialize offset */\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x1, x2]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contexts of FFR beyond the branch.  */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "59b123bccae9e5373e01db8273a779bc87733efe", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/59b123bccae9e5373e01db8273a779bc87733efe/string/aarch64/strcpy-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy-sve.S:2", "text": "b.any\t2f\n\n\t/* No zero found.  Store the whole vector and loop.  */\n\tst1b\tz0.b, p2, [x0, x2]\n\tincb\tx2, all\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n1:\tcmpeq\tp1.b, p0/z, z0.b, 0\t/* search for zeros */\n\tb.any\t2f\n\n\t/* No zero found.  Store the valid portion of the vector and loop.  */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tst1b\tz0.b, p0, [x0, x2]\n\tincp\tx2, p0.b\n\tb\t0b\n\n\t/* Zero found.  Crop the vector to the found zero and finish.  */\n2:\tbrka\tp0.b, p2/z, p1.b\n\tst1b\tz0.b, p0, [x0, x2]\n#ifdef BUILD_STPCPY\n\tadd\tx0, x0, x2\n\tsub\tx0, x0, 1\n\tincp\tx0, p0.b\n#endif\n\tret\n\n\t.size\tFUNC, . - FUNC", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy-sve.S", "license": "MIT", "commit": "59b123bccae9e5373e01db8273a779bc87733efe", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/59b123bccae9e5373e01db8273a779bc87733efe/string/aarch64/strcpy-sve.S", "line_start": 41, "line_end": 69}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2020-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\t\tx0\n#define srcin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define dst\t\tx3\n#define len\t\tx4\n#define synd\t\tx4\n#define\ttmp\t\tx5\n#define shift\t\tx5\n#define data1\t\tx6\n#define dataw1\t\tw6\n#define data2\t\tx7\n#define dataw2\t\tw7\n\n#define dataq\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n#define dataq2\t\tq1\n\n#ifdef BUILD_STPCPY\n# define STRCPY __stpcpy_aarch64\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbnz\tsynd, L(tail)\n\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(start_loop)\n\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(less8):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "str\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(less8):\n\tsubs\ttmp, len, 3\n\tb.lo\tL(less4)\n\tldr\tdataw1, [srcin]\n\tldr\tdataw2, [srcin, tmp]\n\tstr\tdataw1, [dstin]\n\tstr\tdataw2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(less4):\n\tcbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\ttmp, srcin, dstin\n\tldr\tdataq2, [srcin]\n\tsub\tdst, src, tmp\n\tstr\tdataq2, [dstin]\nL(loop):\n\tstr\tdataq, [dst], 32\n\tldr\tdataq, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loopend)\n\tstr\tdataq, [dst, -16]\n\tldr\tdataq, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tdst, dst, 16\nL(loopend):\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "sub\ttmp, srcin, dstin\n\tldr\tdataq2, [srcin]\n\tsub\tdst, src, tmp\n\tstr\tdataq2, [dstin]\nL(loop):\n\tstr\tdataq, [dst], 32\n\tldr\tdataq, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loopend)\n\tstr\tdataq, [dst, -16]\n\tldr\tdataq, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tdst, dst, 16\nL(loopend):\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tsub\tdst, dst, 31\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\tadd\tdst, dst, len\n\tldr\tdataq, [dst, tmp]\n\tstr\tdataq, [dst]\n\tIFSTPCPY (add result, dst, 15)\n\tret\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strcpy.S", "line_start": 121, "line_end": 154}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2020-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\t\tx0\n#define srcin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define dst\t\tx3\n#define len\t\tx4\n#define synd\t\tx4\n#define\ttmp\t\tx5\n#define shift\t\tx5\n#define data1\t\tx6\n#define dataw1\t\tw6\n#define data2\t\tx7\n#define dataw2\t\tw7\n\n#define dataq\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n#define dataq2\t\tq1\n\n#ifdef BUILD_STPCPY\n# define STRCPY __stpcpy_aarch64\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbnz\tsynd, L(tail)\n\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(start_loop)\n\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "ldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(less8):\n\tsubs\ttmp, len, 3\n\tb.lo\tL(less4)\n\tldr\tdataw1, [srcin]\n\tldr\tdataw2, [srcin, tmp]\n\tstr\tdataw1, [dstin]\n\tstr\tdataw2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(less4):\n\tcbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\ttmp, srcin, dstin\n\tldr\tdataq2, [srcin]\n\tsub\tdst, src, tmp\n\tstr\tdataq2, [dstin]\nL(loop):\n\tstr\tdataq, [dst], 32\n\tldr\tdataq, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loopend)\n\tstr\tdataq, [dst, -16]\n\tldr\tdataq, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tdst, dst, 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": ".p2align 4\nL(start_loop):\n\tsub\ttmp, srcin, dstin\n\tldr\tdataq2, [srcin]\n\tsub\tdst, src, tmp\n\tstr\tdataq2, [dstin]\nL(loop):\n\tstr\tdataq, [dst], 32\n\tldr\tdataq, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loopend)\n\tstr\tdataq, [dst, -16]\n\tldr\tdataq, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tdst, dst, 16\nL(loopend):\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tsub\tdst, dst, 31\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\tadd\tdst, dst, len\n\tldr\tdataq, [dst, tmp]\n\tstr\tdataq, [dst]\n\tIFSTPCPY (add result, dst, 15)\n\tret\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strcpy.S", "line_start": 121, "line_end": 156}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define dstin\t\tx0\n#define srcin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define dst\t\tx3\n#define len\t\tx4\n#define synd\t\tx4\n#define\ttmp\t\tx5\n#define shift\t\tx5\n#define data1\t\tx6\n#define dataw1\t\tw6\n#define data2\t\tx7\n#define dataw2\t\tw7\n\n#define dataq\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n#define dataq2\t\tq1\n\n#ifdef BUILD_STPCPY\n# define STRCPY __stpcpy_aarch64\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "7c1d7a24c9e2ea5ba846a6311d24df2eb0154ea0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7c1d7a24c9e2ea5ba846a6311d24df2eb0154ea0/string/aarch64/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbnz\tsynd, L(tail)\n\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(start_loop)\n\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "ldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(less8):\n\tsubs\ttmp, len, 3\n\tb.lo\tL(less4)\n\tldr\tdataw1, [srcin]\n\tldr\tdataw2, [srcin, tmp]\n\tstr\tdataw1, [dstin]\n\tstr\tdataw2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(less4):\n\tcbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\tlen, src, srcin\n\tldr\tdataq2, [srcin]\n\tadd\tdst, dstin, len\n\tstr\tdataq2, [dstin]\n\n\t.p2align 5\nL(loop):\n\tstr\tdataq, [dst], 16\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "IFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\tlen, src, srcin\n\tldr\tdataq2, [srcin]\n\tadd\tdst, dstin, len\n\tstr\tdataq2, [dstin]\n\n\t.p2align 5\nL(loop):\n\tstr\tdataq, [dst], 16\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\tsub\ttmp, len, 15\n\tldr\tdataq, [src, tmp]\n\tstr\tdataq, [dst, tmp]\n\tIFSTPCPY (add result, dst, len)\n\tret\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strcpy.S", "line_start": 121, "line_end": 153}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define dstin\t\tx0\n#define srcin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define dst\t\tx3\n#define len\t\tx4\n#define synd\t\tx4\n#define\ttmp\t\tx5\n#define shift\t\tx5\n#define data1\t\tx6\n#define dataw1\t\tw6\n#define data2\t\tx7\n#define dataw2\t\tw7\n\n#define dataq\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n#define dataq2\t\tq1\n\n#ifdef BUILD_STPCPY\n# define STRCPY __stpcpy_aarch64\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/*\n   Core algorithm:\n   For each 16-byte chunk we calculate a 64-bit nibble mask value with four bits\n   per byte. We take 4 bits of every comparison byte with shift right and narrow\n   by 4 instruction. Since the bits in the nibble mask reflect the order in\n   which things occur in the original string, counting leading zeros identifies\n   exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "# define STRCPY __stpcpy_aarch64\n# define IFSTPCPY(X,...) X,__VA_ARGS__\n#else\n# define STRCPY __strcpy_aarch64\n# define IFSTPCPY(X,...)\n#endif\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbnz\tsynd, L(tail)\n\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(start_loop)\n\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "#endif\n\tsub\ttmp, src, srcin\n\tclz\tlen, synd\n\tadd\tlen, tmp, len, lsr 2\n\ttbz\tlen, 4, L(less16)\n\tsub\ttmp, len, 15\n\tldr\tdataq, [srcin]\n\tldr\tdataq2, [srcin, tmp]\n\tstr\tdataq, [dstin]\n\tstr\tdataq2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4,,8\nL(tail):\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\n\t.p2align 4\nL(less16):\n\ttbz\tlen, 3, L(less8)\n\tsub\ttmp, len, 7\n\tldr\tdata1, [srcin]\n\tldr\tdata2, [srcin, tmp]\n\tstr\tdata1, [dstin]\n\tstr\tdata2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(less8):\n\tsubs\ttmp, len, 3\n\tb.lo\tL(less4)\n\tldr\tdataw1, [srcin]\n\tldr\tdataw2, [srcin, tmp]\n\tstr\tdataw1, [dstin]\n\tstr\tdataw2, [dstin, tmp]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\nL(less4):\n\tcbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\tlen, src, srcin\n\tldr\tdataq2, [srcin]\n\tadd\tdst, dstin, len\n\tstr\tdataq2, [dstin]\n\n\t.p2align 5\nL(loop):\n\tstr\tdataq, [dst], 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "L(less4):\n\tcbz\tlen, L(zerobyte)\n\tldrh\tdataw1, [srcin]\n\tstrh\tdataw1, [dstin]\nL(zerobyte):\n\tstrb\twzr, [dstin, len]\n\tIFSTPCPY (add result, dstin, len)\n\tret\n\n\t.p2align 4\nL(start_loop):\n\tsub\tlen, src, srcin\n\tldr\tdataq2, [srcin]\n\tadd\tdst, dstin, len\n\tstr\tdataq2, [dstin]\n\n\t.p2align 5\nL(loop):\n\tstr\tdataq, [dst], 16\n\tldr\tdataq, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tlen, synd\n\tlsr\tlen, len, 2\n\tsub\ttmp, len, 15\n\tldr\tdataq, [src, tmp]\n\tstr\tdataq, [dst, tmp]\n\tIFSTPCPY (add result, dst, len)\n\tret\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strcpy.S", "line_start": 121, "line_end": 161}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "#define pos\t\tx15\n#define len\t\tx16\n#define to_align\tx17\n\n#ifdef BUILD_STPCPY\n#define STRCPY __stpcpy_aarch64\n#else\n#define STRCPY __strcpy_aarch64\n#endif\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t/* AArch64 systems have a minimum page size of 4k.  We can do a quick\n\t   page size check for crossing this boundary on entry and if we\n\t   do not, then we can short-circuit much of the entry code.  We\n\t   expect early page-crossing strings to be rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), so the branch should be quite\n\t   predictable, even with random strings.\n\n\t   We don't bother checking for larger page sizes, the cost of setting\n\t   up the correct page size is just not worth the extra gain from\n\t   a small reduction in the cases taking the slow path.  Note that\n\t   we only care about whether the first fetch, which may be\n\t   misaligned, crosses a page boundary - after that we move to aligned\n\t   fetches for the remainder of the string.  */\n\n#ifdef STRCPY_TEST_PAGE_CROSS\n\t/* Make everything that isn't Qword aligned look like a page cross.  */\n#define MIN_PAGE_P2 4\n#else\n#define MIN_PAGE_P2 12\n#endif\n\n#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)\n\nENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "ENTRY (STRCPY)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will\n\t   always take the fast path.  */\n\tb.gt\tL(page_cross)\n\nL(page_cross_ok):\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* Because we expect the end to be found within 16 characters\n\t   (profiling shows this is the most common case), it's worth\n\t   swapping the bytes now to save having to recalculate the\n\t   termination syndrome later.  We preserve data1 and data2\n\t   so that we can re-use the values later on.  */\n\trev\ttmp2, data1\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\tL(fp_le8)\n\trev\ttmp4, data2\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\tL(fp_le8)\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\tL(bulk_entry)\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\nL(fp_gt8):\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "orr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\tL(fp_le8)\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\tL(bulk_entry)\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\nL(fp_gt8):\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__\n\tlsr\tdata2, data2, pos\n#else\n\tlsl\tdata2, data2, pos\n#endif\n\tstr\tdata2, [dst, #1]\n\tstr\tdata1, [dstin]\n#ifdef BUILD_STPCPY\n\tadd\tdstin, dst, #8\n#endif\n\tret\n\nL(fp_le8):\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsubs\ttmp2, pos, #24\t\t\t/* Pos in bits. */\n\tb.lt\tL(fp_lt4)\n#ifdef __AARCH64EB__\n\tmov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\nL(fp_lt4):\n\tcbz\tpos, L(fp_lt2)\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:5", "text": "mov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\nL(fp_lt4):\n\tcbz\tpos, L(fp_lt2)\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */\nL(fp_lt2):\n\t/* Null-terminated string.  Last character must be zero!  */\n\tstrb\twzr, [dst]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n\n\t.p2align 6\n\t/* Aligning here ensures that the entry code and main loop all lies\n\t   within one 64-byte cache line.  */\nL(bulk_entry):\n\tsub\tto_align, to_align, #16\n\tstp\tdata1, data2, [dstin]\n\tsub\tsrc, srcin, to_align\n\tsub\tdst, dstin, to_align\n\tb\tL(entry_no_page_cross)\n\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\nL(main_loop):\n\tstp\tdata1, data2, [dst], #16\nL(entry_no_page_cross):\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\tL(main_loop)\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:6", "text": "/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\nL(main_loop):\n\tstp\tdata1, data2, [dst], #16\nL(entry_no_page_cross):\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\tL(main_loop)\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, ne\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, ne\n#endif\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\ttmp1, pos, #72\n\tadd\tpos, pos, #8\n\tcsel\tpos, pos, tmp1, ne\n\tadd\tsrc, src, pos, lsr #3\n\tadd\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:7", "text": "add\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\tcmp\tto_align, #8\n\tcsinv\tdata1, data1, xzr, lt\n\tcsel\tdata2, data2, data2a, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\tL(page_cross_ok)\n\t/* We now need to make data1 and data2 look like they've been\n\t   loaded directly from srcin.  Do a rotate on the 128-bit value.  */\n\tlsl\ttmp1, to_align, #3\t/* Bytes->bits.  */\n\tneg\ttmp2, to_align, lsl #3\n#ifdef __AARCH64EB__\n\tlsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:8", "text": "lsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, L(fp_le8)\n\tbic\thas_nul2, tmp3, tmp4\n\tb\tL(fp_gt8)\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strcpy.S", "line_start": 281, "line_end": 310}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "#define pos\t\tx15\n#define len\t\tx16\n#define to_align\tx17\n\n#ifdef BUILD_STPCPY\n#define STRCPY __stpcpy_aarch64\n#else\n#define STRCPY __strcpy_aarch64\n#endif\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t/* AArch64 systems have a minimum page size of 4k.  We can do a quick\n\t   page size check for crossing this boundary on entry and if we\n\t   do not, then we can short-circuit much of the entry code.  We\n\t   expect early page-crossing strings to be rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), so the branch should be quite\n\t   predictable, even with random strings.\n\n\t   We don't bother checking for larger page sizes, the cost of setting\n\t   up the correct page size is just not worth the extra gain from\n\t   a small reduction in the cases taking the slow path.  Note that\n\t   we only care about whether the first fetch, which may be\n\t   misaligned, crosses a page boundary - after that we move to aligned\n\t   fetches for the remainder of the string.  */\n\n#ifdef STRCPY_TEST_PAGE_CROSS\n\t/* Make everything that isn't Qword aligned look like a page cross.  */\n#define MIN_PAGE_P2 4\n#else\n#define MIN_PAGE_P2 12\n#endif\n\n#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)\n\nENTRY (STRCPY)\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "ENTRY (STRCPY)\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will\n\t   always take the fast path.  */\n\tb.gt\tL(page_cross)\n\nL(page_cross_ok):\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* Because we expect the end to be found within 16 characters\n\t   (profiling shows this is the most common case), it's worth\n\t   swapping the bytes now to save having to recalculate the\n\t   termination syndrome later.  We preserve data1 and data2\n\t   so that we can re-use the values later on.  */\n\trev\ttmp2, data1\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\tL(fp_le8)\n\trev\ttmp4, data2\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\tL(fp_le8)\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\tL(bulk_entry)\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\nL(fp_gt8):\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "sub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\tL(fp_le8)\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\tL(bulk_entry)\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\nL(fp_gt8):\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__\n\tlsr\tdata2, data2, pos\n#else\n\tlsl\tdata2, data2, pos\n#endif\n\tstr\tdata2, [dst, #1]\n\tstr\tdata1, [dstin]\n#ifdef BUILD_STPCPY\n\tadd\tdstin, dst, #8\n#endif\n\tret\n\nL(fp_le8):\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsubs\ttmp2, pos, #24\t\t\t/* Pos in bits. */\n\tb.lt\tL(fp_lt4)\n#ifdef __AARCH64EB__\n\tmov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\nL(fp_lt4):\n\tcbz\tpos, L(fp_lt2)\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:5", "text": "lsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\nL(fp_lt4):\n\tcbz\tpos, L(fp_lt2)\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */\nL(fp_lt2):\n\t/* Null-terminated string.  Last character must be zero!  */\n\tstrb\twzr, [dst]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n\n\t.p2align 6\n\t/* Aligning here ensures that the entry code and main loop all lies\n\t   within one 64-byte cache line.  */\nL(bulk_entry):\n\tsub\tto_align, to_align, #16\n\tstp\tdata1, data2, [dstin]\n\tsub\tsrc, srcin, to_align\n\tsub\tdst, dstin, to_align\n\tb\tL(entry_no_page_cross)\n\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\nL(main_loop):\n\tstp\tdata1, data2, [dst], #16\nL(entry_no_page_cross):\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\tL(main_loop)\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:6", "text": "especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\nL(main_loop):\n\tstp\tdata1, data2, [dst], #16\nL(entry_no_page_cross):\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\tL(main_loop)\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, ne\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, ne\n#endif\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\ttmp1, pos, #72\n\tadd\tpos, pos, #8\n\tcsel\tpos, pos, tmp1, ne\n\tadd\tsrc, src, pos, lsr #3\n\tadd\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:7", "text": "stp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\tcmp\tto_align, #8\n\tcsinv\tdata1, data1, xzr, lt\n\tcsel\tdata2, data2, data2a, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\tL(page_cross_ok)\n\t/* We now need to make data1 and data2 look like they've been\n\t   loaded directly from srcin.  Do a rotate on the 128-bit value.  */\n\tlsl\ttmp1, to_align, #3\t/* Bytes->bits.  */\n\tneg\ttmp2, to_align, lsl #3\n#ifdef __AARCH64EB__\n\tlsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:8", "text": "lsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, L(fp_le8)\n\tbic\thas_nul2, tmp3, tmp4\n\tb\tL(fp_gt8)\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strcpy.S", "line_start": 281, "line_end": 308}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:8", "text": "lsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, L(fp_le8)\n\tbic\thas_nul2, tmp3, tmp4\n\tb\tL(fp_gt8)\n\nEND (STRCPY)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strcpy.S", "line_start": 281, "line_end": 310}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "ENTRY (STRCPY)\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will\n\t   always take the fast path.  */\n\tb.gt\t.Lpage_cross\n\n.Lpage_cross_ok:\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* Because we expect the end to be found within 16 characters\n\t   (profiling shows this is the most common case), it's worth\n\t   swapping the bytes now to save having to recalculate the\n\t   termination syndrome later.  We preserve data1 and data2\n\t   so that we can re-use the values later on.  */\n\trev\ttmp2, data1\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\trev\ttmp4, data2\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\t.Lbulk_entry\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\n.Lfp_gt8:\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "sub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\t.Lbulk_entry\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\n.Lfp_gt8:\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__\n\tlsr\tdata2, data2, pos\n#else\n\tlsl\tdata2, data2, pos\n#endif\n\tstr\tdata2, [dst, #1]\n\tstr\tdata1, [dstin]\n#ifdef BUILD_STPCPY\n\tadd\tdstin, dst, #8\n#endif\n\tret\n\n.Lfp_le8:\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsubs\ttmp2, pos, #24\t\t\t/* Pos in bits. */\n\tb.lt\t.Lfp_lt4\n#ifdef __AARCH64EB__\n\tmov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n.Lfp_lt4:\n\tcbz\tpos, .Lfp_lt2\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:5", "text": "lsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n.Lfp_lt4:\n\tcbz\tpos, .Lfp_lt2\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */\n.Lfp_lt2:\n\t/* Null-terminated string.  Last character must be zero!  */\n\tstrb\twzr, [dst]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n\n\t.p2align 6\n\t/* Aligning here ensures that the entry code and main loop all lies\n\t   within one 64-byte cache line.  */\n.Lbulk_entry:\n\tsub\tto_align, to_align, #16\n\tstp\tdata1, data2, [dstin]\n\tsub\tsrc, srcin, to_align\n\tsub\tdst, dstin, to_align\n\tb\t.Lentry_no_page_cross\n\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n.Lmain_loop:\n\tstp\tdata1, data2, [dst], #16\n.Lentry_no_page_cross:\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lmain_loop\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:6", "text": "especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n.Lmain_loop:\n\tstp\tdata1, data2, [dst], #16\n.Lentry_no_page_cross:\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lmain_loop\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, ne\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, ne\n#endif\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\ttmp1, pos, #72\n\tadd\tpos, pos, #8\n\tcsel\tpos, pos, tmp1, ne\n\tadd\tsrc, src, pos, lsr #3\n\tadd\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\n.Lpage_cross:\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:7", "text": "stp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\n.Lpage_cross:\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\tcmp\tto_align, #8\n\tcsinv\tdata1, data1, xzr, lt\n\tcsel\tdata2, data2, data2a, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lpage_cross_ok\n\t/* We now need to make data1 and data2 look like they've been\n\t   loaded directly from srcin.  Do a rotate on the 128-bit value.  */\n\tlsl\ttmp1, to_align, #3\t/* Bytes->bits.  */\n\tneg\ttmp2, to_align, lsl #3\n#ifdef __AARCH64EB__\n\tlsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:8", "text": "lsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, .Lfp_le8\n\tbic\thas_nul2, tmp3, tmp4\n\tb\t.Lfp_gt8\n\nEND (STRCPY)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strcpy.S", "line_start": 281, "line_end": 308}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:1", "text": "/*\n * strcpy/stpcpy - copy a string returning pointer to start/end.\n *\n * Copyright (c) 2013-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses, min page size 4k.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.\n\n   To test the page crossing code path more thoroughly, compile with\n   -DSTRCPY_TEST_PAGE_CROSS - this will force all copies through the slower\n   entry path.  This option is not intended for production use.  */\n\n/* Arguments and results.  */\n#define dstin\t\tx0\n#define srcin\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define dst\t\tx3\n#define data1\t\tx4\n#define data1w\t\tw4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define data1a\t\tx13\n#define data2a\t\tx14\n#define pos\t\tx15\n#define len\t\tx16\n#define to_align\tx17\n\n#ifdef BUILD_STPCPY\n#define STRCPY __stpcpy_aarch64\n#else\n#define STRCPY __strcpy_aarch64\n#endif\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "#define to_align\tx17\n\n#ifdef BUILD_STPCPY\n#define STRCPY __stpcpy_aarch64\n#else\n#define STRCPY __strcpy_aarch64\n#endif\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t/* AArch64 systems have a minimum page size of 4k.  We can do a quick\n\t   page size check for crossing this boundary on entry and if we\n\t   do not, then we can short-circuit much of the entry code.  We\n\t   expect early page-crossing strings to be rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), so the branch should be quite\n\t   predictable, even with random strings.\n\n\t   We don't bother checking for larger page sizes, the cost of setting\n\t   up the correct page size is just not worth the extra gain from\n\t   a small reduction in the cases taking the slow path.  Note that\n\t   we only care about whether the first fetch, which may be\n\t   misaligned, crosses a page boundary - after that we move to aligned\n\t   fetches for the remainder of the string.  */\n\n#ifdef STRCPY_TEST_PAGE_CROSS\n\t/* Make everything that isn't Qword aligned look like a page cross.  */\n#define MIN_PAGE_P2 4\n#else\n#define MIN_PAGE_P2 12\n#endif\n\n#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)\n\ndef_fn STRCPY p2align=6\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "#define MIN_PAGE_P2 4\n#else\n#define MIN_PAGE_P2 12\n#endif\n\n#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)\n\ndef_fn STRCPY p2align=6\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will\n\t   always take the fast path.  */\n\tb.gt\t.Lpage_cross\n\n.Lpage_cross_ok:\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* Because we expect the end to be found within 16 characters\n\t   (profiling shows this is the most common case), it's worth\n\t   swapping the bytes now to save having to recalculate the\n\t   termination syndrome later.  We preserve data1 and data2\n\t   so that we can re-use the values later on.  */\n\trev\ttmp2, data1\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\trev\ttmp4, data2\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\t.Lbulk_entry\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\n.Lfp_gt8:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "bics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\trev\ttmp4, data2\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\t.Lbulk_entry\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\n.Lfp_gt8:\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__\n\tlsr\tdata2, data2, pos\n#else\n\tlsl\tdata2, data2, pos\n#endif\n\tstr\tdata2, [dst, #1]\n\tstr\tdata1, [dstin]\n#ifdef BUILD_STPCPY\n\tadd\tdstin, dst, #8\n#endif\n\tret\n\n.Lfp_le8:\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsubs\ttmp2, pos, #24\t\t\t/* Pos in bits. */\n\tb.lt\t.Lfp_lt4\n#ifdef __AARCH64EB__\n\tmov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n.Lfp_lt4:\n\tcbz\tpos, .Lfp_lt2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:5", "text": "add\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsubs\ttmp2, pos, #24\t\t\t/* Pos in bits. */\n\tb.lt\t.Lfp_lt4\n#ifdef __AARCH64EB__\n\tmov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n.Lfp_lt4:\n\tcbz\tpos, .Lfp_lt2\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */\n.Lfp_lt2:\n\t/* Null-terminated string.  Last character must be zero!  */\n\tstrb\twzr, [dst]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n\n\t.p2align 6\n\t/* Aligning here ensures that the entry code and main loop all lies\n\t   within one 64-byte cache line.  */\n.Lbulk_entry:\n\tsub\tto_align, to_align, #16\n\tstp\tdata1, data2, [dstin]\n\tsub\tsrc, srcin, to_align\n\tsub\tdst, dstin, to_align\n\tb\t.Lentry_no_page_cross\n\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n.Lmain_loop:\n\tstp\tdata1, data2, [dst], #16\n.Lentry_no_page_cross:\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lmain_loop", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:6", "text": "sub\tsrc, srcin, to_align\n\tsub\tdst, dstin, to_align\n\tb\t.Lentry_no_page_cross\n\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n.Lmain_loop:\n\tstp\tdata1, data2, [dst], #16\n.Lentry_no_page_cross:\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lmain_loop\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, ne\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, ne\n#endif\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\ttmp1, pos, #72\n\tadd\tpos, pos, #8\n\tcsel\tpos, pos, tmp1, ne\n\tadd\tsrc, src, pos, lsr #3\n\tadd\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\n.Lpage_cross:\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:7", "text": "add\ttmp1, pos, #72\n\tadd\tpos, pos, #8\n\tcsel\tpos, pos, tmp1, ne\n\tadd\tsrc, src, pos, lsr #3\n\tadd\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\n.Lpage_cross:\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\tcmp\tto_align, #8\n\tcsinv\tdata1, data1, xzr, lt\n\tcsel\tdata2, data2, data2a, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lpage_cross_ok\n\t/* We now need to make data1 and data2 look like they've been\n\t   loaded directly from srcin.  Do a rotate on the 128-bit value.  */\n\tlsl\ttmp1, to_align, #3\t/* Bytes->bits.  */\n\tneg\ttmp2, to_align, lsl #3\n#ifdef __AARCH64EB__\n\tlsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:8", "text": "loaded directly from srcin.  Do a rotate on the 128-bit value.  */\n\tlsl\ttmp1, to_align, #3\t/* Bytes->bits.  */\n\tneg\ttmp2, to_align, lsl #3\n#ifdef __AARCH64EB__\n\tlsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, .Lfp_le8\n\tbic\thas_nul2, tmp3, tmp4\n\tb\t.Lfp_gt8\n\n\t.size\tSTRCPY, . - STRCPY", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/aarch64/strcpy.S", "line_start": 281, "line_end": 314}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:1", "text": "/*\n   strcpy/stpcpy - copy a string returning pointer to start/end.\n\n   Copyright (c) 2013, 2014, 2015 ARM Ltd.\n   All Rights Reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the company nor the names of its contributors\n         may be used to endorse or promote products derived from this\n         software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses, min page size 4k.\n */\n\n/* To build as stpcpy, define BUILD_STPCPY before compiling this file.\n\n   To test the page crossing code path more thoroughly, compile with\n   -DSTRCPY_TEST_PAGE_CROSS - this will force all copies through the slower\n   entry path.  This option is not intended for production use.  */\n\n/* Arguments and results.  */\n#define dstin\t\tx0\n#define srcin\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define dst\t\tx3\n#define data1\t\tx4\n#define data1w\t\tw4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define data1a\t\tx13\n#define data2a\t\tx14", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:2", "text": "/* Arguments and results.  */\n#define dstin\t\tx0\n#define srcin\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define dst\t\tx3\n#define data1\t\tx4\n#define data1w\t\tw4\n#define data2\t\tx5\n#define data2w\t\tw5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define data1a\t\tx13\n#define data2a\t\tx14\n#define pos\t\tx15\n#define len\t\tx16\n#define to_align\tx17\n\n#ifdef BUILD_STPCPY\n#define STRCPY __stpcpy_aarch64\n#else\n#define STRCPY __strcpy_aarch64\n#endif\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t/* AArch64 systems have a minimum page size of 4k.  We can do a quick\n\t   page size check for crossing this boundary on entry and if we\n\t   do not, then we can short-circuit much of the entry code.  We\n\t   expect early page-crossing strings to be rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), so the branch should be quite\n\t   predictable, even with random strings.\n\n\t   We don't bother checking for larger page sizes, the cost of setting\n\t   up the correct page size is just not worth the extra gain from\n\t   a small reduction in the cases taking the slow path.  Note that\n\t   we only care about whether the first fetch, which may be\n\t   misaligned, crosses a page boundary - after that we move to aligned\n\t   fetches for the remainder of the string.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:3", "text": "can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t/* AArch64 systems have a minimum page size of 4k.  We can do a quick\n\t   page size check for crossing this boundary on entry and if we\n\t   do not, then we can short-circuit much of the entry code.  We\n\t   expect early page-crossing strings to be rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), so the branch should be quite\n\t   predictable, even with random strings.\n\n\t   We don't bother checking for larger page sizes, the cost of setting\n\t   up the correct page size is just not worth the extra gain from\n\t   a small reduction in the cases taking the slow path.  Note that\n\t   we only care about whether the first fetch, which may be\n\t   misaligned, crosses a page boundary - after that we move to aligned\n\t   fetches for the remainder of the string.  */\n\n#ifdef STRCPY_TEST_PAGE_CROSS\n\t/* Make everything that isn't Qword aligned look like a page cross.  */\n#define MIN_PAGE_P2 4\n#else\n#define MIN_PAGE_P2 12\n#endif\n\n#define MIN_PAGE_SIZE (1 << MIN_PAGE_P2)\n\ndef_fn STRCPY p2align=6\n\t/* For moderately short strings, the fastest way to do the copy is to\n\t   calculate the length of the string in the same way as strlen, then\n\t   essentially do a memcpy of the result.  This avoids the need for\n\t   multiple byte copies and further means that by the time we\n\t   reach the bulk copy loop we know we can always use DWord\n\t   accesses.  We expect __strcpy_aarch64 to rarely be called repeatedly\n\t   with the same source string, so branch prediction is likely to\n\t   always be difficult - we mitigate against this by preferring\n\t   conditional select operations over branches whenever this is\n\t   feasible.  */\n\tand\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will\n\t   always take the fast path.  */\n\tb.gt\t.Lpage_cross\n\n.Lpage_cross_ok:\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* Because we expect the end to be found within 16 characters\n\t   (profiling shows this is the most common case), it's worth\n\t   swapping the bytes now to save having to recalculate the\n\t   termination syndrome later.  We preserve data1 and data2\n\t   so that we can re-use the values later on.  */\n\trev\ttmp2, data1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:4", "text": "and\ttmp2, srcin, #(MIN_PAGE_SIZE - 1)\n\tmov\tzeroones, #REP8_01\n\tand\tto_align, srcin, #15\n\tcmp\ttmp2, #(MIN_PAGE_SIZE - 16)\n\tneg\ttmp1, to_align\n\t/* The first fetch will straddle a (possible) page boundary iff\n\t   srcin + 15 causes bit[MIN_PAGE_P2] to change value.  A 16-byte\n\t   aligned string will never fail the page align check, so will\n\t   always take the fast path.  */\n\tb.gt\t.Lpage_cross\n\n.Lpage_cross_ok:\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* Because we expect the end to be found within 16 characters\n\t   (profiling shows this is the most common case), it's worth\n\t   swapping the bytes now to save having to recalculate the\n\t   termination syndrome later.  We preserve data1 and data2\n\t   so that we can re-use the values later on.  */\n\trev\ttmp2, data1\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\trev\ttmp4, data2\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tb.ne\t.Lfp_le8\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbics\thas_nul2, tmp3, tmp4\n\tb.eq\t.Lbulk_entry\n\n\t/* The string is short (<=16 bytes).  We don't know exactly how\n\t   short though, yet.  Work out the exact length so that we can\n\t   quickly select the optimal copy strategy.  */\n.Lfp_gt8:\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__\n\tlsr\tdata2, data2, pos\n#else\n\tlsl\tdata2, data2, pos\n#endif\n\tstr\tdata2, [dst, #1]\n\tstr\tdata1, [dstin]\n#ifdef BUILD_STPCPY\n\tadd\tdstin, dst, #8\n#endif\n\tret\n\n.Lfp_le8:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:5", "text": "quickly select the optimal copy strategy.  */\n.Lfp_gt8:\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tmov\ttmp2, #56\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsub\tpos, tmp2, pos\n#ifdef __AARCH64EB__\n\tlsr\tdata2, data2, pos\n#else\n\tlsl\tdata2, data2, pos\n#endif\n\tstr\tdata2, [dst, #1]\n\tstr\tdata1, [dstin]\n#ifdef BUILD_STPCPY\n\tadd\tdstin, dst, #8\n#endif\n\tret\n\n.Lfp_le8:\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\tdst, dstin, pos, lsr #3\t\t/* Bits to bytes.  */\n\tsubs\ttmp2, pos, #24\t\t\t/* Pos in bits. */\n\tb.lt\t.Lfp_lt4\n#ifdef __AARCH64EB__\n\tmov\ttmp2, #56\n\tsub\tpos, tmp2, pos\n\tlsr\tdata2, data1, pos\n\tlsr\tdata1, data1, #32\n#else\n\tlsr\tdata2, data1, tmp2\n#endif\n\t/* 4->7 bytes to copy.  */\n\tstr\tdata2w, [dst, #-3]\n\tstr\tdata1w, [dstin]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n.Lfp_lt4:\n\tcbz\tpos, .Lfp_lt2\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */\n.Lfp_lt2:\n\t/* Null-terminated string.  Last character must be zero!  */\n\tstrb\twzr, [dst]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n\n\t.p2align 6\n\t/* Aligning here ensures that the entry code and main loop all lies\n\t   within one 64-byte cache line.  */\n.Lbulk_entry:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:6", "text": ".Lfp_lt4:\n\tcbz\tpos, .Lfp_lt2\n\t/* 2->3 bytes to copy.  */\n#ifdef __AARCH64EB__\n\tlsr\tdata1, data1, #48\n#endif\n\tstrh\tdata1w, [dstin]\n\t/* Fall-through, one byte (max) to go.  */\n.Lfp_lt2:\n\t/* Null-terminated string.  Last character must be zero!  */\n\tstrb\twzr, [dst]\n#ifdef BUILD_STPCPY\n\tmov\tdstin, dst\n#endif\n\tret\n\n\t.p2align 6\n\t/* Aligning here ensures that the entry code and main loop all lies\n\t   within one 64-byte cache line.  */\n.Lbulk_entry:\n\tsub\tto_align, to_align, #16\n\tstp\tdata1, data2, [dstin]\n\tsub\tsrc, srcin, to_align\n\tsub\tdst, dstin, to_align\n\tb\t.Lentry_no_page_cross\n\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n.Lmain_loop:\n\tstp\tdata1, data2, [dst], #16\n.Lentry_no_page_cross:\n\tldp\tdata1, data2, [src], #16\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lmain_loop\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, ne\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, ne\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:7", "text": "ccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lmain_loop\n\n\t/* Since we know we are copying at least 16 bytes, the fastest way\n\t   to deal with the tail is to determine the location of the\n\t   trailing NUL, then (re)copy the 16 bytes leading up to that.  */\n\tcmp\thas_nul1, #0\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, ne\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, ne\n#endif\n\trev\thas_nul1, has_nul1\n\tclz\tpos, has_nul1\n\tadd\ttmp1, pos, #72\n\tadd\tpos, pos, #8\n\tcsel\tpos, pos, tmp1, ne\n\tadd\tsrc, src, pos, lsr #3\n\tadd\tdst, dst, pos, lsr #3\n\tldp\tdata1, data2, [src, #-32]\n\tstp\tdata1, data2, [dst, #-16]\n#ifdef BUILD_STPCPY\n\tsub\tdstin, dst, #1\n#endif\n\tret\n\n.Lpage_cross:\n\tbic\tsrc, srcin, #15\n\t/* Start by loading two words at [srcin & ~15], then forcing the\n\t   bytes that precede srcin to 0xff.  This means they never look\n\t   like termination bytes.  */\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\tcmp\tto_align, #8\n\tcsinv\tdata1, data1, xzr, lt\n\tcsel\tdata2, data2, data2a, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:8", "text": "lsl\ttmp1, tmp1, #3\t/* Bytes beyond alignment -> bits.  */\n\ttst\tto_align, #7\n\tcsetm\ttmp2, ne\n#ifdef __AARCH64EB__\n\tlsl\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\tlsr\ttmp2, tmp2, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\tcmp\tto_align, #8\n\tcsinv\tdata1, data1, xzr, lt\n\tcsel\tdata2, data2, data2a, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbics\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul1, #0, #0, eq\t/* NZCV = 0000  */\n\tb.eq\t.Lpage_cross_ok\n\t/* We now need to make data1 and data2 look like they've been\n\t   loaded directly from srcin.  Do a rotate on the 128-bit value.  */\n\tlsl\ttmp1, to_align, #3\t/* Bytes->bits.  */\n\tneg\ttmp2, to_align, lsl #3\n#ifdef __AARCH64EB__\n\tlsl\tdata1a, data1, tmp1\n\tlsr\ttmp4, data2, tmp2\n\tlsl\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\trev\ttmp2, data1\n\trev\ttmp4, data2\n\tsub\ttmp1, tmp2, zeroones\n\torr\ttmp2, tmp2, #REP8_7f\n\tsub\ttmp3, tmp4, zeroones\n\torr\ttmp4, tmp4, #REP8_7f\n#else\n\tlsr\tdata1a, data1, tmp1\n\tlsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, .Lfp_le8\n\tbic\thas_nul2, tmp3, tmp4\n\tb\t.Lfp_gt8\n\n\t.size\tSTRCPY, . - STRCPY", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 281, "line_end": 336}
{"id": "ARM-software/optimized-routines:string/aarch64/strcpy.S:9", "text": "lsl\ttmp4, data2, tmp2\n\tlsr\tdata2, data2, tmp1\n\torr\ttmp4, tmp4, data1a\n\tcmp\tto_align, #8\n\tcsel\tdata1, tmp4, data2, lt\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n#endif\n\tbic\thas_nul1, tmp1, tmp2\n\tcbnz\thas_nul1, .Lfp_le8\n\tbic\thas_nul2, tmp3, tmp4\n\tb\t.Lfp_gt8\n\n\t.size\tSTRCPY, . - STRCPY", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strcpy.S", "license": "MIT", "commit": "58837ab6c29416b99a1287a4c6f3de91959bc7a9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/58837ab6c29416b99a1287a4c6f3de91959bc7a9/string/aarch64/strcpy.S", "line_start": 321, "line_end": 336}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/* Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strlen_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(next16)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\nL(next16):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tsrc, src, 16\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\tresult, src, srcin", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "fmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(next16)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\nL(next16):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tsrc, src, 16\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\tresult, src, srcin\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\taddhn\tvend.8b, vhas_nul.8h, vhas_nul.8h\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop_end)\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\taddhn\tvend.8b, vhas_nul.8h, vhas_nul.8h\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tsrc, src, 16\nL(loop_end):\n\tsub\tresult, shift, src, lsl 2\t/* (srcin - src) << 2.  */\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n\tsub\tresult, result, 3\n#endif\n\tclz\ttmp, synd\n\tsub\tresult, tmp, result\n\tlsr\tresult, result, 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 89}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/* Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(next16)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\nL(next16):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tsrc, src, 16\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "f8af395b5ed70b0b4a282d2f17f50e23010b44a5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f8af395b5ed70b0b4a282d2f17f50e23010b44a5/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "shrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(next16)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\nL(next16):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tsrc, src, 16\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tsub\tresult, src, srcin\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\taddhn\tvend.8b, vhas_nul.8h, vhas_nul.8h\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop_end)\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\taddhn\tvend.8b, vhas_nul.8h, vhas_nul.8h\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tadd\tsrc, src, 16\nL(loop_end):\n\tsub\tresult, shift, src, lsl 2\t/* (srcin - src) << 2.  */\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n\tsub\tresult, result, 3\n#endif\n\tclz\ttmp, synd\n\tsub\tresult, tmp, result\n\tlsr\tresult, result, 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "f8af395b5ed70b0b4a282d2f17f50e23010b44a5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f8af395b5ed70b0b4a282d2f17f50e23010b44a5/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 90}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:3", "text": "#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n\tsub\tresult, result, 3\n#endif\n\tclz\ttmp, synd\n\tsub\tresult, tmp, result\n\tlsr\tresult, result, 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "f8af395b5ed70b0b4a282d2f17f50e23010b44a5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f8af395b5ed70b0b4a282d2f17f50e23010b44a5/string/aarch64/strlen-mte.S", "line_start": 81, "line_end": 90}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/* Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop_end)\n\tldr\tdata, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "shrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop_end)\n\tldr\tdata, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\tsub\tsrc, src, 16\nL(loop_end):\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tadd\tresult, result, 16\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 76}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/* Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop_end)\n\tldr\tdata, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/* Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop_end)\n\tldr\tdata, [src, 32]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "f890e426fd2607c78b39c04a795c0e486541a108", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f890e426fd2607c78b39c04a795c0e486541a108/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "bic\tsrc, srcin, 15\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tshrn\tvend.8b, vhas_nul.8h, 4\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "2be383412b3c5470d8d45f49d73f4a7c503022a2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2be383412b3c5470d8d45f49d73f4a7c503022a2/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 73}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vrepmask\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "ENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 79}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vrepmask\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strlen_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define result\t\tx0\n\n#define src\t\tx1\n#define\tsynd\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define shift\t\tx4\n\n#define data\t\tq0\n#define vdata\t\tv0\n#define vhas_nul\tv1\n#define vrepmask\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/* Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strlen_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "ENTRY (__strlen_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\nEND (__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 78}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "ENTRY (__strlen_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tld1\t{vdata.16b}, [src]\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tresult, synd\n\tlsr\tresult, result, 2\n\tret\n\n\t.p2align 5\nL(loop):\n\tldr\tdata, [src, 16]!\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tresult, result, tmp, lsr 2\n\tret\n\nEND (__strlen_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "2fdbac97219956490345d0d278175ffc147a05b7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/2fdbac97219956490345d0d278175ffc147a05b7/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 80}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2013-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n\n/* Locals and temporaries.  */\n#define src\t\tx1\n#define data1\t\tx2\n#define data2\t\tx3\n#define has_nul1\tx4\n#define has_nul2\tx5\n#define tmp1\t\tx4\n#define tmp2\t\tx5\n#define tmp3\t\tx6\n#define tmp4\t\tx7\n#define zeroones\tx8\n#define offset\t\tx9\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word. A faster check\n\t   (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives\n\t   false hits for characters 129..255.\t*/\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n\t/* This implementation is compatible with Memory Tagging. All loads\n\t   are 16 bytes in size and 16 bytes aligned. This also avoids the\n\t   need for page boundary checks. This implementation is correct\n\t   even without Memory Tagging, but other implementations could be\n\t   more beneficial if Memory Tagging is not enabled.\n\n\t   First load is aligned down and can contain bytes that are located\n\t   before the string. This is handled by modifying the \"zeroones\"\n\t   mask. The bytes that need to be ignored are set to zero.\n\t   If the string is aligned in such a way that 8 or more bytes from\n\t   the first load should be ignored, there is a special case\n\t   (skip_first_8_bytes) which only compares the second 8 bytes.\n\n\t   If there is a NUL byte in the first load, we calculate the length\n\t   from the 2 8-byte words using conditional select to reduce branch\n\t   mispredictions.\n\n\t   If the string is longer than 16 bytes, we check 32 bytes per\n\t   iteration using the fast NUL check (main_loop). If we encounter\n\t   non-ASCII characters, we fallback to a second loop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:2", "text": "/* This implementation is compatible with Memory Tagging. All loads\n\t   are 16 bytes in size and 16 bytes aligned. This also avoids the\n\t   need for page boundary checks. This implementation is correct\n\t   even without Memory Tagging, but other implementations could be\n\t   more beneficial if Memory Tagging is not enabled.\n\n\t   First load is aligned down and can contain bytes that are located\n\t   before the string. This is handled by modifying the \"zeroones\"\n\t   mask. The bytes that need to be ignored are set to zero.\n\t   If the string is aligned in such a way that 8 or more bytes from\n\t   the first load should be ignored, there is a special case\n\t   (skip_first_8_bytes) which only compares the second 8 bytes.\n\n\t   If there is a NUL byte in the first load, we calculate the length\n\t   from the 2 8-byte words using conditional select to reduce branch\n\t   mispredictions.\n\n\t   If the string is longer than 16 bytes, we check 32 bytes per\n\t   iteration using the fast NUL check (main_loop). If we encounter\n\t   non-ASCII characters, we fallback to a second loop\n\t   (nonascii_loop) using the full NUL check.  */\n\nENTRY(__strlen_aarch64_mte)\n\tbic\tsrc, srcin, 15\t/* Align down to 16 bytes.  */\n\tmov\tzeroones, REP8_01\n\t/* (offset & 63) holds number of bits to ignore in a register.*/\n\tlsl\toffset, srcin, 3\n\tldp\tdata1, data2, [src], -16\n\tlsl\ttmp1, zeroones, offset\t/* Shift (offset & 63).  */\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   e.g. 0x0100 - 0x0101 = 0xffff, so 0x01 will be mistaken for NUL.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\ttbnz\tsrcin, 3, L(skip_first_8_bytes)\n\tsub\ttmp1, data1, tmp1\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\t/* If comparison happens, C flag is always set. */\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tand\ttmp2, srcin, 7\t/* Bytes to ignore. */\n\trev\thas_nul1, has_nul1\n\tneg\ttmp2, tmp2\n\tclz\ttmp1, has_nul1\t/* Count bits before NUL. */\n\t/* Add 8 if NUL byte is not in first register. */\n\tadd\ttmp3, tmp2, 8\n\tcsel\tlen, tmp2, tmp3, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:3", "text": "orr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\t/* If comparison happens, C flag is always set. */\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tand\ttmp2, srcin, 7\t/* Bytes to ignore. */\n\trev\thas_nul1, has_nul1\n\tneg\ttmp2, tmp2\n\tclz\ttmp1, has_nul1\t/* Count bits before NUL. */\n\t/* Add 8 if NUL byte is not in first register. */\n\tadd\ttmp3, tmp2, 8\n\tcsel\tlen, tmp2, tmp3, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(skip_first_8_bytes):\n\tsub\ttmp1, data2, tmp1\n\torr\ttmp2, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbeq\tL(main_loop)\n\n\trev\thas_nul1, has_nul1\n\tlsl\ttmp1, has_nul1, offset\t/* Ignore bytes before string. */\n\tclz\ttmp1, tmp1\t/* Count bits before NUL. */\n\tlsr\tlen, tmp1, 3\n\tret\n\n\t/* The inner loop processes 32 bytes per iteration and uses the fast\n\t   NUL check.  If we encounter non-ASCII characters, use a second\n\t   loop with the accurate NUL check.  */\n\t.p2align 4\nL(main_loop):\n\tldp\tdata1, data2, [src, 32]!\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:4", "text": "sub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, cc\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n#endif\n\tsub\tlen, src, srcin\n\trev\thas_nul1, has_nul1\n\tadd\ttmp2, len, 8\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, len, tmp2, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:5", "text": "add\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\nEND(__strlen_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen-mte.S", "line_start": 161, "line_end": 187}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-mte.S:5", "text": "add\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\nEND(__strlen_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-mte.S", "license": "MIT", "commit": "02cfc9cc9a06eca291d4c4b15887381bf4e88c4b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/02cfc9cc9a06eca291d4c4b15887381bf4e88c4b/string/aarch64/strlen-mte.S", "line_start": 161, "line_end": 185}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 53}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 54}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 54}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 54}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 54}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strlen_aarch64_sve)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 54}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strlen_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n\t.p2align 4\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bf7f25b1758fc9c6bc42a20bd690a5d64b27ccf3/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 57}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strlen_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\tnop\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 58}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strlen_aarch64_sve, 4)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\tnop\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 57}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strlen_aarch64_sve, 4)\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\tnop\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\nEND (__strlen_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 59}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strlen_aarch64_sve\n\t.type\t__strlen_aarch64_sve, %function\n\t.p2align 4\n__strlen_aarch64_sve:\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\tnop\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\n\t.size\t__strlen_aarch64_sve, . - __strlen_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 57}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen-sve.S:1", "text": "/*\n * __strlen_aarch64_sve - compute the length of a string\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strlen_aarch64_sve\n\t.type\t__strlen_aarch64_sve, %function\n\t.p2align 4\n__strlen_aarch64_sve:\n\tsetffr\t\t\t/* initialize FFR */\n\tptrue\tp2.b\t\t/* all ones; loop invariant */\n\tmov\tx1, 0\t\t/* initialize length */\n\tnop\n\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p2/z, [x0, x1]\n\tnop\n\trdffrs\tp0.b, p2/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx1, all\t\t\t/* speculate increment */\n\tcmpeq\tp1.b, p2/z, z0.b, 0\t/* loop if no zeros */\n\tb.none\t0b\n\tdecb\tx1, all\t\t\t/* undo speculate */\n\n\t/* Zero found.  Select the bytes before the first and count them.  */\n1:\tbrkb\tp0.b, p2/z, p1.b\n\tincp\tx1, p0.b\n\tmov\tx0, x1\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp1.b, p0/z, z0.b, 0\n\tb.any\t1b\n\n\t/* No zero found.  Re-init FFR, increment, and loop.  */\n\tsetffr\n\tincp\tx1, p0.b\n\tb\t0b\n\n\t.size\t__strlen_aarch64_sve, . - __strlen_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen-sve.S", "license": "MIT", "commit": "9ecd13a59a6a32800658b334a076ca33fdae5be8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9ecd13a59a6a32800658b334a076ca33fdae5be8/string/aarch64/strlen-sve.S", "line_start": 1, "line_end": 55}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": "/* For the first 32 bytes, NUL detection works on the principle that\n   (X - 1) & (~X) & 0x80 (=> (X - 1) & ~(X | 0x7f)) is non-zero if a\n   byte is zero, and can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.  */\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 32\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n/* Core algorithm:\n\n   Since strings are short on average, we check the first 32 bytes of the\n   string for a NUL character without aligning the string.  In order to use\n   unaligned loads safely we must do a page cross check first.\n\n   If there is a NUL byte we calculate the length from the 2 8-byte words\n   using conditional select to reduce branch mispredictions (it is unlikely\n   strlen will be repeatedly called on strings with the same length).\n\n   If the string is longer than 32 bytes, align src so we don't need further\n   page cross checks, and process 32 bytes per iteration using a fast SIMD\n   loop.\n\n   If the page cross check fails, we read 32 bytes from an aligned address,\n   and ignore any characters before the string.  If it contains a NUL\n   character, return the length, if not, continue in the main loop.  */\n\nENTRY (__strlen_aarch64)\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tcmp\ttmp1, MIN_PAGE_SIZE - 32\n\tb.hi\tL(page_cross)\n\n\t/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(bytes16_31)\n\n\t/* Find the exact offset of the first NUL byte in the first 16 bytes\n\t   from the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tclz\ttmp1, has_nul1\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* Look for a NUL byte at offset 16..31 in the string.  */\nL(bytes16_31):\n\tldp\tdata1, data2, [srcin, 16]\n#ifdef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\tnop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "orr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\tnop\nL(loop_entry):\n\tbic\tsrc, srcin, 31\n\n\t.p2align 5\nL(loop):\n\tldp\tdataq1, dataq2, [src, 32]!\n\tuminp\tmaskv.16b, datav1.16b, datav2.16b\n\tuminp\tmaskv.16b, maskv.16b, maskv.16b\n\tcmeq\tmaskv.8b, maskv.8b, 0\n\tfmov\tsynd, maskd\n\tcbz\tsynd, L(loop)\n\n\t/* Low 32 bits of synd are non-zero if a NUL was found in datav1.  */\n\tcmeq\tmaskv.16b, datav1.16b, 0\n\tsub\tlen, src, srcin\n\tcbnz\tsyndw, 1f\n\tcmeq\tmaskv.16b, datav2.16b, 0\n\tadd\tlen, len, 16\n1:\n\t/* Generate a bitmask and compute correct byte offset.  */\n\tshrn\tmaskv.8b, maskv.8h, 4\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16\n\tld1\t{datav1.16b, datav2.16b}, [src]\n\tdup\tmaskv.4s, tmpw\n\tcmeq\tdatav1.16b, datav1.16b, 0\n\tcmeq\tdatav2.16b, datav2.16b, 0\n\tand\tdatav1.16b, datav1.16b, maskv.16b\n\tand\tdatav2.16b, datav2.16b, maskv.16b\n\taddp\tmaskv.16b, datav1.16b, datav2.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "shrn\tmaskv.8b, maskv.8h, 4\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16\n\tld1\t{datav1.16b, datav2.16b}, [src]\n\tdup\tmaskv.4s, tmpw\n\tcmeq\tdatav1.16b, datav1.16b, 0\n\tcmeq\tdatav2.16b, datav2.16b, 0\n\tand\tdatav1.16b, datav1.16b, maskv.16b\n\tand\tdatav2.16b, datav2.16b, maskv.16b\n\taddp\tmaskv.16b, datav1.16b, datav2.16b\n\taddp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n\tlsl\tshift, srcin, 1\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 1\n\tret\n\nEND (__strlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strlen.S", "line_start": 161, "line_end": 192}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": "/* For the first 32 bytes, NUL detection works on the principle that\n   (X - 1) & (~X) & 0x80 (=> (X - 1) & ~(X | 0x7f)) is non-zero if a\n   byte is zero, and can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.  */\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 32\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n/* Core algorithm:\n\n   Since strings are short on average, we check the first 32 bytes of the\n   string for a NUL character without aligning the string.  In order to use\n   unaligned loads safely we must do a page cross check first.\n\n   If there is a NUL byte we calculate the length from the 2 8-byte words\n   using conditional select to reduce branch mispredictions (it is unlikely\n   strlen will be repeatedly called on strings with the same length).\n\n   If the string is longer than 32 bytes, align src so we don't need further\n   page cross checks, and process 32 bytes per iteration using a fast SIMD\n   loop.\n\n   If the page cross check fails, we read 32 bytes from an aligned address,\n   and ignore any characters before the string.  If it contains a NUL\n   character, return the length, if not, continue in the main loop.  */\n\nENTRY (__strlen_aarch64)\n\tPTR_ARG (0)\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tcmp\ttmp1, MIN_PAGE_SIZE - 32\n\tb.hi\tL(page_cross)\n\n\t/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "b.hi\tL(page_cross)\n\n\t/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(bytes16_31)\n\n\t/* Find the exact offset of the first NUL byte in the first 16 bytes\n\t   from the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tclz\ttmp1, has_nul1\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* Look for a NUL byte at offset 16..31 in the string.  */\nL(bytes16_31):\n\tldp\tdata1, data2, [srcin, 16]\n#ifdef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "sub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\tnop\nL(loop_entry):\n\tbic\tsrc, srcin, 31\n\n\t.p2align 5\nL(loop):\n\tldp\tdataq1, dataq2, [src, 32]!\n\tuminp\tmaskv.16b, datav1.16b, datav2.16b\n\tuminp\tmaskv.16b, maskv.16b, maskv.16b\n\tcmeq\tmaskv.8b, maskv.8b, 0\n\tfmov\tsynd, maskd\n\tcbz\tsynd, L(loop)\n\n\t/* Low 32 bits of synd are non-zero if a NUL was found in datav1.  */\n\tcmeq\tmaskv.16b, datav1.16b, 0\n\tsub\tlen, src, srcin\n\tcbnz\tsyndw, 1f\n\tcmeq\tmaskv.16b, datav2.16b, 0\n\tadd\tlen, len, 16\n1:\n\t/* Generate a bitmask and compute correct byte offset.  */\n\tshrn\tmaskv.8b, maskv.8h, 4\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16\n\tld1\t{datav1.16b, datav2.16b}, [src]\n\tdup\tmaskv.4s, tmpw\n\tcmeq\tdatav1.16b, datav1.16b, 0\n\tcmeq\tdatav2.16b, datav2.16b, 0\n\tand\tdatav1.16b, datav1.16b, maskv.16b\n\tand\tdatav2.16b, datav2.16b, maskv.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "/* Generate a bitmask and compute correct byte offset.  */\n\tshrn\tmaskv.8b, maskv.8h, 4\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16\n\tld1\t{datav1.16b, datav2.16b}, [src]\n\tdup\tmaskv.4s, tmpw\n\tcmeq\tdatav1.16b, datav1.16b, 0\n\tcmeq\tdatav2.16b, datav2.16b, 0\n\tand\tdatav1.16b, datav1.16b, maskv.16b\n\tand\tdatav2.16b, datav2.16b, maskv.16b\n\taddp\tmaskv.16b, datav1.16b, datav2.16b\n\taddp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n\tlsl\tshift, srcin, 1\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 1\n\tret\n\nEND (__strlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strlen.S", "line_start": 161, "line_end": 193}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": "/* For the first 32 bytes, NUL detection works on the principle that\n   (X - 1) & (~X) & 0x80 (=> (X - 1) & ~(X | 0x7f)) is non-zero if a\n   byte is zero, and can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.  */\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 32\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n/* Core algorithm:\n\n   Since strings are short on average, we check the first 32 bytes of the\n   string for a NUL character without aligning the string.  In order to use\n   unaligned loads safely we must do a page cross check first.\n\n   If there is a NUL byte we calculate the length from the 2 8-byte words\n   using conditional select to reduce branch mispredictions (it is unlikely\n   strlen will be repeatedly called on strings with the same length).\n\n   If the string is longer than 32 bytes, align src so we don't need further\n   page cross checks, and process 32 bytes per iteration using a fast SIMD\n   loop.\n\n   If the page cross check fails, we read 32 bytes from an aligned address,\n   and ignore any characters before the string.  If it contains a NUL\n   character, return the length, if not, continue in the main loop.  */\n\nENTRY (__strlen_aarch64)\n\tPTR_ARG (0)\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tcmp\ttmp1, MIN_PAGE_SIZE - 32\n\tb.hi\tL(page_cross)\n\n\t/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(bytes16_31)\n\n\t/* Find the exact offset of the first NUL byte in the first 16 bytes\n\t   from the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tclz\ttmp1, has_nul1\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t.p2align 3\n\t/* Look for a NUL byte at offset 16..31 in the string.  */\nL(bytes16_31):\n\tldp\tdata1, data2, [srcin, 16]\n#ifdef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "sub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(loop_entry):\n\tbic\tsrc, srcin, 31\n\n\t.p2align 5\nL(loop):\n\tldp\tdataq1, dataq2, [src, 32]!\n\tuminp\tmaskv.16b, datav1.16b, datav2.16b\n\tuminp\tmaskv.16b, maskv.16b, maskv.16b\n\tcmeq\tmaskv.8b, maskv.8b, 0\n\tfmov\tsynd, maskd\n\tcbz\tsynd, L(loop)\n\n\t/* Low 32 bits of synd are non-zero if a NUL was found in datav1.  */\n\tcmeq\tmaskv.16b, datav1.16b, 0\n\tsub\tlen, src, srcin\n\ttst\tsynd, 0xffffffff\n\tb.ne\t1f\n\tcmeq\tmaskv.16b, datav2.16b, 0\n\tadd\tlen, len, 16\n1:\n\t/* Generate a bitmask and compute correct byte offset.  */\n#ifdef __AARCH64EB__\n\tbic\tmaskv.8h, 0xf0\n#else\n\tbic\tmaskv.8h, 0x0f, lsl 8\n#endif\n\tumaxp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\n        .p2align 4\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "/* Generate a bitmask and compute correct byte offset.  */\n#ifdef __AARCH64EB__\n\tbic\tmaskv.8h, 0xf0\n#else\n\tbic\tmaskv.8h, 0x0f, lsl 8\n#endif\n\tumaxp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\n        .p2align 4\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16\n\tld1\t{datav1.16b, datav2.16b}, [src]\n\tdup\tmaskv.4s, tmpw\n\tcmeq\tdatav1.16b, datav1.16b, 0\n\tcmeq\tdatav2.16b, datav2.16b, 0\n\tand\tdatav1.16b, datav1.16b, maskv.16b\n\tand\tdatav2.16b, datav2.16b, maskv.16b\n\taddp\tmaskv.16b, datav1.16b, datav2.16b\n\taddp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n\tlsl\tshift, srcin, 1\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 1\n\tret\n\nEND (__strlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strlen.S", "line_start": 161, "line_end": 200}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": "/* For the first 32 bytes, NUL detection works on the principle that\n   (X - 1) & (~X) & 0x80 (=> (X - 1) & ~(X | 0x7f)) is non-zero if a\n   byte is zero, and can be done in parallel across the entire word.  */\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.  */\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 32\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n/* Core algorithm:\n\n   Since strings are short on average, we check the first 32 bytes of the\n   string for a NUL character without aligning the string.  In order to use\n   unaligned loads safely we must do a page cross check first.\n\n   If there is a NUL byte we calculate the length from the 2 8-byte words\n   using conditional select to reduce branch mispredictions (it is unlikely\n   strlen will be repeatedly called on strings with the same length).\n\n   If the string is longer than 32 bytes, align src so we don't need further\n   page cross checks, and process 32 bytes per iteration using a fast SIMD\n   loop.\n\n   If the page cross check fails, we read 32 bytes from an aligned address,\n   and ignore any characters before the string.  If it contains a NUL\n   character, return the length, if not, continue in the main loop.  */\n\nENTRY (__strlen_aarch64)\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tcmp\ttmp1, MIN_PAGE_SIZE - 32\n\tb.hi\tL(page_cross)\n\n\t/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(bytes16_31)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "224cb5f67b71757b99fe1e10b5a437c17a1d733c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/224cb5f67b71757b99fe1e10b5a437c17a1d733c/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "/* Look for a NUL byte in the first 16 bytes.  */\n\tldp\tdata1, data2, [srcin]\n\tmov\tzeroones, REP8_01\n\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(bytes16_31)\n\n\t/* Find the exact offset of the first NUL byte in the first 16 bytes\n\t   from the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tclz\ttmp1, has_nul1\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t.p2align 3\n\t/* Look for a NUL byte at offset 16..31 in the string.  */\nL(bytes16_31):\n\tldp\tdata1, data2, [srcin, 16]\n#ifdef __AARCH64EB__\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(loop_entry):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "224cb5f67b71757b99fe1e10b5a437c17a1d733c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/224cb5f67b71757b99fe1e10b5a437c17a1d733c/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "orr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tb.eq\tL(loop_entry)\n\n\t/* Find the exact offset of the first NUL byte at offset 16..31 from\n\t   the string start.  Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 24\n\trev\thas_nul1, has_nul1\n\tmov\ttmp3, 16\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, tmp3, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(loop_entry):\n\tbic\tsrc, srcin, 31\n\n\t.p2align 5\nL(loop):\n\tldp\tdataq1, dataq2, [src, 32]!\n\tuminp\tmaskv.16b, datav1.16b, datav2.16b\n\tuminp\tmaskv.16b, maskv.16b, maskv.16b\n\tcmeq\tmaskv.8b, maskv.8b, 0\n\tfmov\tsynd, maskd\n\tcbz\tsynd, L(loop)\n\n\t/* Low 32 bits of synd are non-zero if a NUL was found in datav1.  */\n\tcmeq\tmaskv.16b, datav1.16b, 0\n\tsub\tlen, src, srcin\n\ttst\tsynd, 0xffffffff\n\tb.ne\t1f\n\tcmeq\tmaskv.16b, datav2.16b, 0\n\tadd\tlen, len, 16\n1:\n\t/* Generate a bitmask and compute correct byte offset.  */\n#ifdef __AARCH64EB__\n\tbic\tmaskv.8h, 0xf0\n#else\n\tbic\tmaskv.8h, 0x0f, lsl 8\n#endif\n\tumaxp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\n        .p2align 4\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "224cb5f67b71757b99fe1e10b5a437c17a1d733c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/224cb5f67b71757b99fe1e10b5a437c17a1d733c/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "#ifdef __AARCH64EB__\n\tbic\tmaskv.8h, 0xf0\n#else\n\tbic\tmaskv.8h, 0x0f, lsl 8\n#endif\n\tumaxp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\ttmp, synd\n\tadd\tlen, len, tmp, lsr 2\n\tret\n\n        .p2align 4\n\nL(page_cross):\n\tbic\tsrc, srcin, 31\n\tmov\ttmpw, 0x0c03\n\tmovk\ttmpw, 0xc030, lsl 16\n\tld1\t{datav1.16b, datav2.16b}, [src]\n\tdup\tmaskv.4s, tmpw\n\tcmeq\tdatav1.16b, datav1.16b, 0\n\tcmeq\tdatav2.16b, datav2.16b, 0\n\tand\tdatav1.16b, datav1.16b, maskv.16b\n\tand\tdatav2.16b, datav2.16b, maskv.16b\n\taddp\tmaskv.16b, datav1.16b, datav2.16b\n\taddp\tmaskv.16b, maskv.16b, maskv.16b\n\tfmov\tsynd, maskd\n\tlsl\tshift, srcin, 1\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(loop)\n\n\trbit\tsynd, synd\n\tclz\tlen, synd\n\tlsr\tlen, len, 1\n\tret\n\nEND (__strlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "224cb5f67b71757b99fe1e10b5a437c17a1d733c", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/224cb5f67b71757b99fe1e10b5a437c17a1d733c/string/aarch64/strlen.S", "line_start": 161, "line_end": 199}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses, min page size 4k.\n */\n\n#include \"../asmdefs.h\"\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.\t */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n\n/* Locals and temporaries.  */\n#define src\t\tx1\n#define data1\t\tx2\n#define data2\t\tx3\n#define has_nul1\tx4\n#define has_nul2\tx5\n#define tmp1\t\tx4\n#define tmp2\t\tx5\n#define tmp3\t\tx6\n#define tmp4\t\tx7\n#define zeroones\tx8\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word. A faster check\n\t   (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives\n\t   false hits for characters 129..255.\t*/\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 15\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n\t/* Since strings are short on average, we check the first 16 bytes\n\t   of the string for a NUL character.  In order to do an unaligned ldp\n\t   safely we have to do a page cross check first.  If there is a NUL\n\t   byte we calculate the length from the 2 8-byte words using\n\t   conditional select to reduce branch mispredictions (it is unlikely\n\t   __strlen_aarch64 will be repeatedly called on strings with the same length).\n\n\t   If the string is longer than 16 bytes, we align src so don't need\n\t   further page cross checks, and process 32 bytes per iteration\n\t   using the fast NUL check.  If we encounter non-ASCII characters,", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": "#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 15\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n\t/* Since strings are short on average, we check the first 16 bytes\n\t   of the string for a NUL character.  In order to do an unaligned ldp\n\t   safely we have to do a page cross check first.  If there is a NUL\n\t   byte we calculate the length from the 2 8-byte words using\n\t   conditional select to reduce branch mispredictions (it is unlikely\n\t   __strlen_aarch64 will be repeatedly called on strings with the same length).\n\n\t   If the string is longer than 16 bytes, we align src so don't need\n\t   further page cross checks, and process 32 bytes per iteration\n\t   using the fast NUL check.  If we encounter non-ASCII characters,\n\t   fallback to a second loop using the full NUL check.\n\n\t   If the page cross check fails, we read 16 bytes from an aligned\n\t   address, remove any characters before the string, and continue\n\t   in the main loop using aligned loads.  Since strings crossing a\n\t   page in the first 16 bytes are rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), this case does not need to be optimized.\n\n\t   AArch64 systems have a minimum page size of 4k.  We don't bother\n\t   checking for larger page sizes - the cost of setting up the correct\n\t   page size is just not worth the extra gain from a small reduction in\n\t   the cases taking the slow path.  Note that we only care about\n\t   whether the first fetch, which may be misaligned, crosses a page\n\t   boundary.  */\n\nENTRY (__strlen_aarch64)\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tmov\tzeroones, REP8_01\n\tcmp\ttmp1, MIN_PAGE_SIZE - 16\n\tb.gt\tL(page_cross)\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop_entry)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "ldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop_entry)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* The inner loop processes 32 bytes per iteration and uses the fast\n\t   NUL check.  If we encounter non-ASCII characters, use a second\n\t   loop with the accurate NUL check.  */\n\t.p2align 4\nL(main_loop_entry):\n\tbic\tsrc, srcin, 15\n\tsub\tsrc, src, 16\nL(main_loop):\n\tldp\tdata1, data2, [src, 32]!\nL(page_cross_entry):\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "tst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, cc\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n#endif\n\tsub\tlen, src, srcin\n\trev\thas_nul1, has_nul1\n\tadd\ttmp2, len, 8\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, len, tmp2, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "L(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\n\t/* Load 16 bytes from [srcin & ~15] and force the bytes that precede\n\t   srcin to 0x7f, so we ignore any NUL bytes before the string.\n\t   Then continue in the aligned loop.  */\nL(page_cross):\n\tbic\tsrc, srcin, 15\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, srcin, 3\n\tmov\ttmp4, -1\n#ifdef __AARCH64EB__\n\t/* Big-endian.\tEarly bytes are at MSB.\t */\n\tlsr\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsl\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\ttmp1, tmp1, REP8_80\n\torn\tdata1, data1, tmp1\n\torn\ttmp2, data2, tmp1\n\ttst\tsrcin, 8\n\tcsel\tdata1, data1, tmp4, eq\n\tcsel\tdata2, data2, tmp2, eq\n\tb\tL(page_cross_entry)\n\nEND (__strlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strlen.S", "line_start": 161, "line_end": 206}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "L(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\n\t/* Load 16 bytes from [srcin & ~15] and force the bytes that precede\n\t   srcin to 0x7f, so we ignore any NUL bytes before the string.\n\t   Then continue in the aligned loop.  */\nL(page_cross):\n\tbic\tsrc, srcin, 15\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, srcin, 3\n\tmov\ttmp4, -1\n#ifdef __AARCH64EB__\n\t/* Big-endian.\tEarly bytes are at MSB.\t */\n\tlsr\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsl\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\ttmp1, tmp1, REP8_80\n\torn\tdata1, data1, tmp1\n\torn\ttmp2, data2, tmp1\n\ttst\tsrcin, 8\n\tcsel\tdata1, data1, tmp4, eq\n\tcsel\tdata2, data2, tmp2, eq\n\tb\tL(page_cross_entry)\n\nEND (__strlen_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strlen.S", "line_start": 161, "line_end": 208}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "ldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop_entry)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* The inner loop processes 32 bytes per iteration and uses the fast\n\t   NUL check.  If we encounter non-ASCII characters, use a second\n\t   loop with the accurate NUL check.  */\n\t.p2align 4\nL(main_loop_entry):\n\tbic\tsrc, srcin, 15\n\tsub\tsrc, src, 16\nL(main_loop):\n\tldp\tdata1, data2, [src, 32]!\n.Lpage_cross_entry:\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses, min page size 4k.\n */\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.\t */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n\n/* Locals and temporaries.  */\n#define src\t\tx1\n#define data1\t\tx2\n#define data2\t\tx3\n#define has_nul1\tx4\n#define has_nul2\tx5\n#define tmp1\t\tx4\n#define tmp2\t\tx5\n#define tmp3\t\tx6\n#define tmp4\t\tx7\n#define zeroones\tx8\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word. A faster check\n\t   (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives\n\t   false hits for characters 129..255.\t*/\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 15\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n\t/* Since strings are short on average, we check the first 16 bytes\n\t   of the string for a NUL character.  In order to do an unaligned ldp", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "674605d857bc12df394fd49dcaacc444a056cc00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/674605d857bc12df394fd49dcaacc444a056cc00/string/aarch64/strlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": ".endm\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word. A faster check\n\t   (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives\n\t   false hits for characters 129..255.\t*/\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 15\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n\t/* Since strings are short on average, we check the first 16 bytes\n\t   of the string for a NUL character.  In order to do an unaligned ldp\n\t   safely we have to do a page cross check first.  If there is a NUL\n\t   byte we calculate the length from the 2 8-byte words using\n\t   conditional select to reduce branch mispredictions (it is unlikely\n\t   __strlen_aarch64 will be repeatedly called on strings with the same length).\n\n\t   If the string is longer than 16 bytes, we align src so don't need\n\t   further page cross checks, and process 32 bytes per iteration\n\t   using the fast NUL check.  If we encounter non-ASCII characters,\n\t   fallback to a second loop using the full NUL check.\n\n\t   If the page cross check fails, we read 16 bytes from an aligned\n\t   address, remove any characters before the string, and continue\n\t   in the main loop using aligned loads.  Since strings crossing a\n\t   page in the first 16 bytes are rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), this case does not need to be optimized.\n\n\t   AArch64 systems have a minimum page size of 4k.  We don't bother\n\t   checking for larger page sizes - the cost of setting up the correct\n\t   page size is just not worth the extra gain from a small reduction in\n\t   the cases taking the slow path.  Note that we only care about\n\t   whether the first fetch, which may be misaligned, crosses a page\n\t   boundary.  */\n\ndef_fn __strlen_aarch64 p2align=6\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tmov\tzeroones, REP8_01\n\tcmp\ttmp1, MIN_PAGE_SIZE - 16\n\tb.gt\tL(page_cross)\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "674605d857bc12df394fd49dcaacc444a056cc00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/674605d857bc12df394fd49dcaacc444a056cc00/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "whether the first fetch, which may be misaligned, crosses a page\n\t   boundary.  */\n\ndef_fn __strlen_aarch64 p2align=6\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tmov\tzeroones, REP8_01\n\tcmp\ttmp1, MIN_PAGE_SIZE - 16\n\tb.gt\tL(page_cross)\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop_entry)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* The inner loop processes 32 bytes per iteration and uses the fast\n\t   NUL check.  If we encounter non-ASCII characters, use a second\n\t   loop with the accurate NUL check.  */\n\t.p2align 4\nL(main_loop_entry):\n\tbic\tsrc, srcin, 15\n\tsub\tsrc, src, 16\nL(main_loop):\n\tldp\tdata1, data2, [src, 32]!\n.Lpage_cross_entry:\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "674605d857bc12df394fd49dcaacc444a056cc00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/674605d857bc12df394fd49dcaacc444a056cc00/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "bic\tsrc, srcin, 15\n\tsub\tsrc, src, 16\nL(main_loop):\n\tldp\tdata1, data2, [src, 32]!\n.Lpage_cross_entry:\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, cc\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n#endif\n\tsub\tlen, src, srcin\n\trev\thas_nul1, has_nul1\n\tadd\ttmp2, len, 8\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, len, tmp2, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "674605d857bc12df394fd49dcaacc444a056cc00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/674605d857bc12df394fd49dcaacc444a056cc00/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "#endif\n\tsub\tlen, src, srcin\n\trev\thas_nul1, has_nul1\n\tadd\ttmp2, len, 8\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, len, tmp2, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\n\t/* Load 16 bytes from [srcin & ~15] and force the bytes that precede\n\t   srcin to 0x7f, so we ignore any NUL bytes before the string.\n\t   Then continue in the aligned loop.  */\nL(page_cross):\n\tbic\tsrc, srcin, 15\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, srcin, 3\n\tmov\ttmp4, -1\n#ifdef __AARCH64EB__\n\t/* Big-endian.\tEarly bytes are at MSB.\t */\n\tlsr\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsl\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\ttmp1, tmp1, REP8_80\n\torn\tdata1, data1, tmp1\n\torn\ttmp2, data2, tmp1\n\ttst\tsrcin, 8\n\tcsel\tdata1, data1, tmp4, eq\n\tcsel\tdata2, data2, tmp2, eq\n\tb\tL(page_cross_entry)\n\n\t.size\t__strlen_aarch64, . - __strlen_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "674605d857bc12df394fd49dcaacc444a056cc00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/674605d857bc12df394fd49dcaacc444a056cc00/string/aarch64/strlen.S", "line_start": 161, "line_end": 214}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:6", "text": "lsr\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsl\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\ttmp1, tmp1, REP8_80\n\torn\tdata1, data1, tmp1\n\torn\ttmp2, data2, tmp1\n\ttst\tsrcin, 8\n\tcsel\tdata1, data1, tmp4, eq\n\tcsel\tdata2, data2, tmp2, eq\n\tb\tL(page_cross_entry)\n\n\t.size\t__strlen_aarch64, . - __strlen_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "674605d857bc12df394fd49dcaacc444a056cc00", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/674605d857bc12df394fd49dcaacc444a056cc00/string/aarch64/strlen.S", "line_start": 201, "line_end": 214}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:1", "text": "/* Copyright (c) 2013-2015, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n\t notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n\t notice, this list of conditions and the following disclaimer in the\n\t documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n\t names of its contributors may be used to endorse or promote products\n\t derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, unaligned accesses, min page size 4k.\n */\n\n/* To test the page crossing code path more thoroughly, compile with\n   -DTEST_PAGE_CROSS - this will force all calls through the slower\n   entry path.  This option is not intended for production use.\t */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n\n/* Locals and temporaries.  */\n#define src\t\tx1\n#define data1\t\tx2\n#define data2\t\tx3\n#define has_nul1\tx4\n#define has_nul2\tx5\n#define tmp1\t\tx4\n#define tmp2\t\tx5\n#define tmp3\t\tx6\n#define tmp4\t\tx7\n#define zeroones\tx8\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "235623c59c8e4d5ee06e296a13728fca929fc6a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/235623c59c8e4d5ee06e296a13728fca929fc6a7/string/aarch64/strlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:2", "text": "#define src\t\tx1\n#define data1\t\tx2\n#define data2\t\tx3\n#define has_nul1\tx4\n#define has_nul2\tx5\n#define tmp1\t\tx4\n#define tmp2\t\tx5\n#define tmp3\t\tx6\n#define tmp4\t\tx7\n#define zeroones\tx8\n\n#define L(l) .L ## l\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word. A faster check\n\t   (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives\n\t   false hits for characters 129..255.\t*/\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n#ifdef TEST_PAGE_CROSS\n# define MIN_PAGE_SIZE 15\n#else\n# define MIN_PAGE_SIZE 4096\n#endif\n\n\t/* Since strings are short on average, we check the first 16 bytes\n\t   of the string for a NUL character.  In order to do an unaligned ldp\n\t   safely we have to do a page cross check first.  If there is a NUL\n\t   byte we calculate the length from the 2 8-byte words using\n\t   conditional select to reduce branch mispredictions (it is unlikely\n\t   __strlen_aarch64 will be repeatedly called on strings with the same length).\n\n\t   If the string is longer than 16 bytes, we align src so don't need\n\t   further page cross checks, and process 32 bytes per iteration\n\t   using the fast NUL check.  If we encounter non-ASCII characters,\n\t   fallback to a second loop using the full NUL check.\n\n\t   If the page cross check fails, we read 16 bytes from an aligned\n\t   address, remove any characters before the string, and continue\n\t   in the main loop using aligned loads.  Since strings crossing a\n\t   page in the first 16 bytes are rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), this case does not need to be optimized.\n\n\t   AArch64 systems have a minimum page size of 4k.  We don't bother\n\t   checking for larger page sizes - the cost of setting up the correct\n\t   page size is just not worth the extra gain from a small reduction in\n\t   the cases taking the slow path.  Note that we only care about\n\t   whether the first fetch, which may be misaligned, crosses a page", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "235623c59c8e4d5ee06e296a13728fca929fc6a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/235623c59c8e4d5ee06e296a13728fca929fc6a7/string/aarch64/strlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:3", "text": "byte we calculate the length from the 2 8-byte words using\n\t   conditional select to reduce branch mispredictions (it is unlikely\n\t   __strlen_aarch64 will be repeatedly called on strings with the same length).\n\n\t   If the string is longer than 16 bytes, we align src so don't need\n\t   further page cross checks, and process 32 bytes per iteration\n\t   using the fast NUL check.  If we encounter non-ASCII characters,\n\t   fallback to a second loop using the full NUL check.\n\n\t   If the page cross check fails, we read 16 bytes from an aligned\n\t   address, remove any characters before the string, and continue\n\t   in the main loop using aligned loads.  Since strings crossing a\n\t   page in the first 16 bytes are rare (probability of\n\t   16/MIN_PAGE_SIZE ~= 0.4%), this case does not need to be optimized.\n\n\t   AArch64 systems have a minimum page size of 4k.  We don't bother\n\t   checking for larger page sizes - the cost of setting up the correct\n\t   page size is just not worth the extra gain from a small reduction in\n\t   the cases taking the slow path.  Note that we only care about\n\t   whether the first fetch, which may be misaligned, crosses a page\n\t   boundary.  */\n\ndef_fn __strlen_aarch64 p2align=6\n\tand\ttmp1, srcin, MIN_PAGE_SIZE - 1\n\tmov\tzeroones, REP8_01\n\tcmp\ttmp1, MIN_PAGE_SIZE - 16\n\tb.gt\tL(page_cross)\n\tldp\tdata1, data2, [srcin]\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.\n\t   Since we expect strings to be small and early-exit,\n\t   byte-swap the data now so has_null1/2 will be correct.  */\n\trev\tdata1, data1\n\trev\tdata2, data2\n#endif\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop_entry)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* The inner loop processes 32 bytes per iteration and uses the fast\n\t   NUL check.  If we encounter non-ASCII characters, use a second\n\t   loop with the accurate NUL check.  */\n\t.p2align 4\nL(main_loop_entry):\n\tbic\tsrc, srcin, 15", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "235623c59c8e4d5ee06e296a13728fca929fc6a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/235623c59c8e4d5ee06e296a13728fca929fc6a7/string/aarch64/strlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:4", "text": "bics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(main_loop_entry)\n\n\t/* Enter with C = has_nul1 == 0.  */\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n\tmov\tlen, 8\n\trev\thas_nul1, has_nul1\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, xzr, len, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\n\t/* The inner loop processes 32 bytes per iteration and uses the fast\n\t   NUL check.  If we encounter non-ASCII characters, use a second\n\t   loop with the accurate NUL check.  */\n\t.p2align 4\nL(main_loop_entry):\n\tbic\tsrc, srcin, 15\n\tsub\tsrc, src, 16\nL(main_loop):\n\tldp\tdata1, data2, [src, 32]!\n.Lpage_cross_entry:\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbne\t1f\n\tldp\tdata1, data2, [src, 16]\n\tsub\ttmp1, data1, zeroones\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp2, tmp1, tmp3\n\ttst\ttmp2, zeroones, lsl 7\n\tbeq\tL(main_loop)\n\tadd\tsrc, src, 16\n1:\n\t/* The fast check failed, so do the slower, accurate NUL check.\t */\n\torr\ttmp2, data1, REP8_7f\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, cc\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "235623c59c8e4d5ee06e296a13728fca929fc6a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/235623c59c8e4d5ee06e296a13728fca929fc6a7/string/aarch64/strlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:5", "text": "bics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\n\t/* Enter with C = has_nul1 == 0.  */\nL(tail):\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul1/2 directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\tcsel\tdata1, data1, data2, cc\n\trev\tdata1, data1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n#else\n\tcsel\thas_nul1, has_nul1, has_nul2, cc\n#endif\n\tsub\tlen, src, srcin\n\trev\thas_nul1, has_nul1\n\tadd\ttmp2, len, 8\n\tclz\ttmp1, has_nul1\n\tcsel\tlen, len, tmp2, cc\n\tadd\tlen, len, tmp1, lsr 3\n\tret\n\nL(nonascii_loop):\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbne\tL(tail)\n\tldp\tdata1, data2, [src, 16]!\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\n\t/* Load 16 bytes from [srcin & ~15] and force the bytes that precede\n\t   srcin to 0x7f, so we ignore any NUL bytes before the string.\n\t   Then continue in the aligned loop.  */\nL(page_cross):\n\tbic\tsrc, srcin, 15\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, srcin, 3\n\tmov\ttmp4, -1\n#ifdef __AARCH64EB__\n\t/* Big-endian.\tEarly bytes are at MSB.\t */\n\tlsr\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "235623c59c8e4d5ee06e296a13728fca929fc6a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/235623c59c8e4d5ee06e296a13728fca929fc6a7/string/aarch64/strlen.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strlen.S:6", "text": "orr\ttmp2, data1, REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, REP8_7f\n\tbics\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tccmp\thas_nul2, 0, 0, eq\n\tbeq\tL(nonascii_loop)\n\tb\tL(tail)\n\n\t/* Load 16 bytes from [srcin & ~15] and force the bytes that precede\n\t   srcin to 0x7f, so we ignore any NUL bytes before the string.\n\t   Then continue in the aligned loop.  */\nL(page_cross):\n\tbic\tsrc, srcin, 15\n\tldp\tdata1, data2, [src]\n\tlsl\ttmp1, srcin, 3\n\tmov\ttmp4, -1\n#ifdef __AARCH64EB__\n\t/* Big-endian.\tEarly bytes are at MSB.\t */\n\tlsr\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsl\ttmp1, tmp4, tmp1\t/* Shift (tmp1 & 63).  */\n#endif\n\torr\ttmp1, tmp1, REP8_80\n\torn\tdata1, data1, tmp1\n\torn\ttmp2, data2, tmp1\n\ttst\tsrcin, 8\n\tcsel\tdata1, data1, tmp4, eq\n\tcsel\tdata2, data2, tmp2, eq\n\tb\tL(page_cross_entry)\n\n\t.size\t__strlen_aarch64, . - __strlen_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strlen.S", "license": "MIT", "commit": "235623c59c8e4d5ee06e296a13728fca929fc6a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/235623c59c8e4d5ee06e296a13728fca929fc6a7/string/aarch64/strlen.S", "line_start": 201, "line_end": 233}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:2", "text": "#define neg_offset\tx15\n\n/* Define endian dependent shift operations.\n   On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\nENTRY (__strncmp_aarch64_mte)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t.p2align 4\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:3", "text": "bics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tcsel result, result, xzr, hi\n\tret\n#else\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit, #63, L(not_limit)\n\tadd\ttmp1, limit, 8\n\tcbz\tlimit, L(not_limit)\n\n\tlsl\tlimit, tmp1, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n\tlsr\tmask, mask, limit\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:4", "text": "L(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\nL(end_quick):\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:5", "text": "overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tcbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:6", "text": "L(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c\n\n\t   The bytes with \"0\" are eliminated from the syndrome via mask.\n\n\t   Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):\n\t/* Calculate offset from 8 byte alignment to string start in bits. No\n\t   need to mask offset since shifts are ignoring upper bits. */\n\tlsl\toffset, src2, #3\n\tbic\tsrc2, src2, #0xf\n\tmov\tmask, -1\n\tneg\tneg_offset, offset\n\tldr\tdata1, [src1], #8\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\tand\tneg_offset, neg_offset, #63\t/* Need actual value for cmp later. */\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:7", "text": "L(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\tcmp\tlimit, neg_offset, lsr #3\n\torr\tsyndrome, diff, has_nul\n\tbic\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:8", "text": "/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-mte.S", "line_start": 281, "line_end": 306}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:2", "text": "#define neg_offset\tx15\n\n/* Define endian dependent shift operations.\n   On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\n\t.text\nENTRY (__strncmp_aarch64_mte)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t.p2align 4\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:8", "text": "cbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp-mte.S", "line_start": 281, "line_end": 307}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:2", "text": "#define neg_offset\tx15\n\n/* Define endian dependent shift operations.\n   On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\n\t.text\n\t.p2align 6\n\t.rep 9\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64_mte, 0)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:3", "text": "subs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tcsel result, result, xzr, hi\n\tret\n#else\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit, #63, L(not_limit)\n\tadd\ttmp1, limit, 8\n\tcbz\tlimit, L(not_limit)\n\n\tlsl\tlimit, tmp1, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n\tlsr\tmask, mask, limit\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:4", "text": "bic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\nL(end_quick):\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:5", "text": "L(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tcbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:6", "text": "cbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c\n\n\t   The bytes with \"0\" are eliminated from the syndrome via mask.\n\n\t   Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):\n\t/* Calculate offset from 8 byte alignment to string start in bits. No\n\t   need to mask offset since shifts are ignoring upper bits. */\n\tlsl\toffset, src2, #3\n\tbic\tsrc2, src2, #0xf\n\tmov\tmask, -1\n\tneg\tneg_offset, offset\n\tldr\tdata1, [src1], #8\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\tand\tneg_offset, neg_offset, #63\t/* Need actual value for cmp later. */\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:7", "text": "ldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\tand\tneg_offset, neg_offset, #63\t/* Need actual value for cmp later. */\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\tcmp\tlimit, neg_offset, lsr #3\n\torr\tsyndrome, diff, has_nul\n\tbic\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:8", "text": "cmp\tlimit, neg_offset, lsr #3\n\torr\tsyndrome, diff, has_nul\n\tbic\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-mte.S", "line_start": 281, "line_end": 311}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:2", "text": "#define neg_offset\tx15\n\n/* Define endian dependent shift operations.\n   On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\n\t.text\n\t.p2align 6\n\t.rep 9\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64_mte, 0)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:3", "text": "eor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tcsel result, result, xzr, hi\n\tret\n#else\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit, #63, L(not_limit)\n\tadd\ttmp1, limit, 8\n\tcbz\tlimit, L(not_limit)\n\n\tlsl\tlimit, tmp1, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n\tlsr\tmask, mask, limit\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:4", "text": "orr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\nL(end_quick):\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:5", "text": "the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tcbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:6", "text": "and\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c\n\n\t   The bytes with \"0\" are eliminated from the syndrome via mask.\n\n\t   Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):\n\t/* Calculate offset from 8 byte alignment to string start in bits. No\n\t   need to mask offset since shifts are ignoring upper bits. */\n\tlsl\toffset, src2, #3\n\tbic\tsrc2, src2, #0xf\n\tmov\tmask, -1\n\tneg\tneg_offset, offset\n\tldr\tdata1, [src1], #8\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\tand\tneg_offset, neg_offset, #63\t/* Need actual value for cmp later. */\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:7", "text": "/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\tcmp\tlimit, neg_offset, lsr #3\n\torr\tsyndrome, diff, has_nul\n\tbic\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:8", "text": "csinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d4f3f7f04e4234adf4c9eb2aaeedc4e1fefc8763/string/aarch64/strncmp-mte.S", "line_start": 281, "line_end": 308}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:4", "text": "orr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\nL(end_quick):\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tand\tcount, count, #0x3f\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp-mte.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:5", "text": "the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tand\tcount, count, #0x3f\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tcbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp-mte.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-mte.S:8", "text": "csinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-mte.S", "license": "MIT", "commit": "1de12a678fc768145c33a107c7bacb8b60f89490", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1de12a678fc768145c33a107c7bacb8b60f89490/string/aarch64/strncmp-mte.S", "line_start": 281, "line_end": 310}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:2", "text": "1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\nEND (__strncmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strncmp-sve.S", "line_start": 41, "line_end": 65}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:2", "text": "b.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\nEND (__strncmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strncmp-sve.S", "line_start": 41, "line_end": 68}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strncmp_aarch64_sve)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strncmp_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:2", "text": "cmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\nEND (__strncmp_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp-sve.S", "line_start": 41, "line_end": 71}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strncmp_aarch64_sve, 4)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:2", "text": "b.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\nEND (__strncmp_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strncmp-sve.S", "line_start": 41, "line_end": 70}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strncmp_aarch64_sve\n\t.type\t__strncmp_aarch64_sve, %function\n\t.p2align 4\n__strncmp_aarch64_sve:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:2", "text": "nands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\n\t.size\t__strncmp_aarch64_sve, . - __strncmp_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strncmp-sve.S", "line_start": 41, "line_end": 68}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:1", "text": "/*\n * strncmp - compare two strings with limit\n *\n * Copyright (c) 2018, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strncmp_aarch64_sve\n\t.type\t__strncmp_aarch64_sve, %function\n\t.p2align 4\n__strncmp_aarch64_sve:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx3, 0\t\t\t/* initialize off */\n\n0:\twhilelo\tp0.b, x3, x2\t\t/* while off < max */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x3]\n\tldff1b\tz1.b, p0/z, [x1, x3]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Increment for a whole vector, even if we've only read a partial.\n\t   This is significantly cheaper than INCP, and since OFF is not\n\t   used after the loop it is ok to increment OFF past MAX.  */\n\tincb\tx3\n\tcmpeq\tp1.b, p0/z, z0.b, z1.b\t/* compare strings */\n\tcmpne\tp2.b, p0/z, z0.b, 0\t/* search for ~zero */\n\tnands\tp2.b, p0/z, p1.b, p2.b\t/* ~(eq & ~zero) -> ne | zero */\n\tb.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "439687aefed417b4d22206c390d1056e2eb3d93f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/439687aefed417b4d22206c390d1056e2eb3d93f/string/aarch64/strncmp-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp-sve.S:2", "text": "b.none\t0b\n\n\t/* Found end-of-string or inequality.  */\n1:\tbrkb\tp2.b, p0/z, p2.b\t/* find first such */\n\tlasta\tw0, p2, z0.b\t\t/* extract each char */\n\tlasta\tw1, p2, z1.b\n\tsub\tx0, x0, x1\t\t/* return comparison */\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, z1.b\t/* compare strings, as above */\n\tcmpne\tp3.b, p1/z, z0.b, 0\n\tnands\tp2.b, p1/z, p2.b, p3.b\n\tb.any\t1b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx3, p1.b\n\tb\t0b\n\n\t/* Found end-of-count.  */\n9:\tmov\tx0, 0\t\t\t/* return equal */\n\tret\n\n\t.size\t__strncmp_aarch64_sve, . - __strncmp_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp-sve.S", "license": "MIT", "commit": "439687aefed417b4d22206c390d1056e2eb3d93f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/439687aefed417b4d22206c390d1056e2eb3d93f/string/aarch64/strncmp-sve.S", "line_start": 41, "line_end": 66}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define offset\t\tpos\n#define neg_offset\tx15\n\n/* Define endian dependent shift operations.\n   On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\nENTRY (__strncmp_aarch64)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t.p2align 4\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "b.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tcsel result, result, xzr, hi\n\tret\n#else\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit, #63, L(not_limit)\n\tadd\ttmp1, limit, 8\n\tcbz\tlimit, L(not_limit)\n\n\tlsl\tlimit, tmp1, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n\tlsr\tmask, mask, limit\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\nL(end_quick):\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "bic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tcbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "ldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c\n\n\t   The bytes with \"0\" are eliminated from the syndrome via mask.\n\n\t   Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):\n\t/* Calculate offset from 8 byte alignment to string start in bits. No\n\t   need to mask offset since shifts are ignoring upper bits. */\n\tlsl\toffset, src2, #3\n\tbic\tsrc2, src2, #0xf\n\tmov\tmask, -1\n\tneg\tneg_offset, offset\n\tldr\tdata1, [src1], #8\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\tand\tneg_offset, neg_offset, #63\t/* Need actual value for cmp later. */\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\tcmp\tlimit, neg_offset, lsr #3\n\torr\tsyndrome, diff, has_nul\n\tbic\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:8", "text": "ldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strncmp.S", "line_start": 281, "line_end": 304}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define offset\t\tpos\n#define neg_offset\tx15\n\n/* Define endian dependent shift operations.\n   On big-endian early bytes are at MSB and on little-endian LSB.\n   LS_FW means shifting towards early bytes.\n   LS_BK means shifting towards later bytes.\n   */\n#ifdef __AARCH64EB__\n#define LS_FW lsl\n#define LS_BK lsr\n#else\n#define LS_FW lsr\n#define LS_BK lsl\n#endif\n\nENTRY (__strncmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t.p2align 4\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit, limit, #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "csinv\tendloop, diff, xzr, hi\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\nL(full_check):\n#ifndef __AARCH64EB__\n\torr\tsyndrome, diff, has_nul\n\tadd\tlimit, limit, 8\t/* Rewind limit to before last subs. */\nL(syndrome_check):\n\t/* Limit was reached. Check if the NUL byte or the difference\n\t   is before the limit. */\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tcmp\tlimit, pos, lsr #3\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tcsel result, result, xzr, hi\n\tret\n#else\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit, #63, L(not_limit)\n\tadd\ttmp1, limit, 8\n\tcbz\tlimit, L(not_limit)\n\n\tlsl\tlimit, tmp1, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n\tlsr\tmask, mask, limit\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "L(not_limit):\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The most-significant-non-zero bit of the syndrome marks either the\n\t   first bit that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\nL(end_quick):\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tLS_FW\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n\t/* Adjust the limit and ensure it doesn't overflow.  */\n\tadds\tlimit, limit, count\n\tcsinv\tlimit, limit, xzr, lo\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tcbz\tcount, L(src1_aligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "sub\tlimit, limit, count\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\n\t/* The following diagram explains the comparison of misaligned strings.\n\t   The bytes are shown in natural order. For little-endian, it is\n\t   reversed in the registers. The \"x\" bytes are before the string.\n\t   The \"|\" separates data that is loaded at one time.\n\t   src1     | a a a a a a a a | b b b c c c c c | . . .\n\t   src2     | x x x x x a a a   a a a a a b b b | c c c c c . . .\n\n\t   After shifting in each step, the data looks like this:\n\t                STEP_A              STEP_B              STEP_C\n\t   data1    a a a a a a a a     b b b c c c c c     b b b c c c c c\n\t   data2    a a a a a a a a     b b b 0 0 0 0 0     0 0 0 c c c c c\n\n\t   The bytes with \"0\" are eliminated from the syndrome via mask.\n\n\t   Align SRC2 down to 16 bytes. This way we can read 16 bytes at a\n\t   time from SRC2. The comparison happens in 3 steps. After each step\n\t   the loop can exit, or read from SRC1 or SRC2. */\nL(src1_aligned):\n\t/* Calculate offset from 8 byte alignment to string start in bits. No\n\t   need to mask offset since shifts are ignoring upper bits. */\n\tlsl\toffset, src2, #3\n\tbic\tsrc2, src2, #0xf\n\tmov\tmask, -1\n\tneg\tneg_offset, offset\n\tldr\tdata1, [src1], #8\n\tldp\ttmp1, tmp2, [src2], #16\n\tLS_BK\tmask, mask, neg_offset\n\tand\tneg_offset, neg_offset, #63\t/* Need actual value for cmp later. */\n\t/* Skip the first compare if data in tmp1 is irrelevant. */\n\ttbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "tbnz\toffset, 6, L(misaligned_mid_loop)\n\nL(loop_misaligned):\n\t/* STEP_A: Compare full 8 bytes when there is enough data from SRC2.*/\n\tLS_FW\tdata2, tmp1, offset\n\tLS_BK\ttmp1, tmp2, neg_offset\n\tsubs\tlimit, limit, #8\n\torr\tdata2, data2, tmp1\t/* 8 bytes from SRC2 combined from two regs.*/\n\tsub\thas_nul, data1, zeroones\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\torr\ttmp3, data1, #REP8_7f\n\tcsinv\tendloop, diff, xzr, hi\t/* If limit, set to all ones. */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL byte found in SRC1. */\n\torr\ttmp3, endloop, has_nul\n\tcbnz\ttmp3, L(full_check)\n\n\tldr\tdata1, [src1], #8\nL(misaligned_mid_loop):\n\t/* STEP_B: Compare first part of data1 to second part of tmp2. */\n\tLS_FW\tdata2, tmp2, offset\n#ifdef __AARCH64EB__\n\t/* For big-endian we do a byte reverse to avoid carry-propagation\n\tproblem described above. This way we can reuse the has_nul in the\n\tnext step and also use syndrome value trick at the end. */\n\trev\ttmp3, data1\n\t#define data1_fixed tmp3\n#else\n\t#define data1_fixed data1\n#endif\n\tsub\thas_nul, data1_fixed, zeroones\n\torr\ttmp3, data1_fixed, #REP8_7f\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\tbic\thas_nul, has_nul, tmp3\t/* Non-zero if NUL terminator.  */\n#ifdef __AARCH64EB__\n\trev\thas_nul, has_nul\n#endif\n\tcmp\tlimit, neg_offset, lsr #3\n\torr\tsyndrome, diff, has_nul\n\tbic\tsyndrome, syndrome, mask\t/* Ignore later bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:8", "text": "cbnz\ttmp3, L(syndrome_check)\n\n\t/* STEP_C: Compare second part of data1 to first part of tmp1. */\n\tldp\ttmp1, tmp2, [src2], #16\n\tcmp\tlimit, #8\n\tLS_BK\tdata2, tmp1, neg_offset\n\teor\tdiff, data2, data1\t/* Non-zero if differences found.  */\n\torr\tsyndrome, diff, has_nul\n\tand\tsyndrome, syndrome, mask\t/* Ignore earlier bytes. */\n\tcsinv\ttmp3, syndrome, xzr, hi\t/* If limit, set to all ones. */\n\tcbnz\ttmp3, L(syndrome_check)\n\n\tldr\tdata1, [src1], #8\n\tsub\tlimit, limit, #8\n\tb\tL(loop_misaligned)\n\n#ifdef\t__AARCH64EB__\nL(syndrome_check):\n\tclz\tpos, syndrome\n\tcmp\tpos, limit, lsl #3\n\tb.lo\tL(end_quick)\n#endif\n\nL(ret0):\n\tmov\tresult, #0\n\tret\nEND(__strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strncmp.S", "line_start": 281, "line_end": 307}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\nENTRY (__strncmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define count\t\tmask\n\nENTRY (__strncmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t.p2align 4\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, L(not_limit)\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "b.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "sub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "neg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\tL(done_loop)\nL(loop_misaligned):\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, L(page_end_loop)\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\tL(loop_misaligned)\n\nL(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 201, "line_end": 259}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "and\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strncmp.S", "line_start": 241, "line_end": 259}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\nENTRY (__strncmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\nENTRY (__strncmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define count\t\tmask\n\n\t.text\nENTRY (__strncmp_aarch64)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t.p2align 4\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of main loop */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, L(not_limit)\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "ands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)\n\n\t.p2align 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "mov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)\n\n\t.p2align 4\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "cbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\tL(done_loop)\nL(loop_misaligned):\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, L(page_end_loop)\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\tL(loop_misaligned)\n\nL(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "6695ad5da06a6fbdefffda647f192a784a275315", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6695ad5da06a6fbdefffda647f192a784a275315/string/aarch64/strncmp.S", "line_start": 241, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 6\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 6\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tPTR_ARG (0)\n\tPTR_ARG (1)\n\tSIZE_ARG (2)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, L(not_limit)\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, L(not_limit)\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "bic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\tL(done_loop)\nL(loop_misaligned):\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, L(page_end_loop)\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\tL(loop_misaligned)\n\nL(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "subs\tlimit_wd, limit_wd, #1\n\tb.pl\tL(loop_misaligned)\n\nL(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strncmp.S", "line_start": 241, "line_end": 264}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 6\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 6\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, L(not_limit)\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\nL(mutual_align):\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "ldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\tL(start_realigned)\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\nL(misaligned8):\n\tcmp\tlimit, #16\n\tb.hs\tL(try_misaligned_words)\n\nL(byte_loop):\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\tL(byte_loop)\nL(done):\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\nL(try_misaligned_words):\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "lsr\tlimit_wd, limit, #3\n\tcbz\tcount, L(do_misaligned)\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\nL(page_end_loop):\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\tL(done)\n\tsubs\tcount, count, #1\n\tb.hi\tL(page_end_loop)\n\nL(do_misaligned):\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\tL(done_loop)\nL(loop_misaligned):\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, L(page_end_loop)\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\tL(loop_misaligned)\n\nL(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "L(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strncmp.S", "line_start": 241, "line_end": 261}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "L(done_loop):\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, L(not_limit)\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\tL(not_limit)\n\nL(ret0):\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strncmp.S", "line_start": 241, "line_end": 263}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tcbz\tlimit, L(ret0)\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\tL(misaligned8)\n\tcbnz\tcount, L(mutual_align)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\nL(loop_aligned):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned):\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\tL(loop_aligned)\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, L(not_limit)\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\tL(not_limit)\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\nL(not_limit):\n\torr\tsyndrome, diff, has_nul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tcbz\tlimit, .Lret0\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\t.Lmisaligned8\n\tcbnz\tcount, .Lmutual_align\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\nENTRY_ALIGN (__strncmp_aarch64, 0)\n\tcbz\tlimit, .Lret0\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\t.Lmisaligned8\n\tcbnz\tcount, .Lmutual_align\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\n.Lloop_aligned:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned:\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\t.Lloop_aligned\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, .Lnot_limit\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\t.Lnot_limit\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\n.Lnot_limit:\n\torr\tsyndrome, diff, has_nul", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\t.Lnot_limit\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\n.Lnot_limit:\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\n.Lmutual_align:\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\t.Lstart_realigned", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "ldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\t.Lstart_realigned\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\n.Lmisaligned8:\n\tcmp\tlimit, #16\n\tb.hs\t.Ltry_misaligned_words\n\n.Lbyte_loop:\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\t.Lbyte_loop\n.Ldone:\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\n.Ltry_misaligned_words:\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, .Ldo_misaligned\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\n.Lpage_end_loop:\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\t.Ldone\n\tsubs\tcount, count, #1\n\tb.hi\t.Lpage_end_loop\n\n.Ldo_misaligned:\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "lsr\tlimit_wd, limit, #3\n\tcbz\tcount, .Ldo_misaligned\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\n.Lpage_end_loop:\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\t.Ldone\n\tsubs\tcount, count, #1\n\tb.hi\t.Lpage_end_loop\n\n.Ldo_misaligned:\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\t.Ldone_loop\n.Lloop_misaligned:\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, .Lpage_end_loop\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\t.Lloop_misaligned\n\n.Ldone_loop:\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, .Lnot_limit\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\n.Lret0:\n\tmov\tresult, #0\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": ".Ldone_loop:\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, .Lnot_limit\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\n.Lret0:\n\tmov\tresult, #0\n\tret\n\nEND ( __strncmp_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strncmp.S", "line_start": 241, "line_end": 261}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/*\n * strncmp - compare two strings\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\ndef_fn __strncmp_aarch64\n\tcbz\tlimit, .Lret0\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\t.Lmisaligned8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\ndef_fn __strncmp_aarch64\n\tcbz\tlimit, .Lret0\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\t.Lmisaligned8\n\tcbnz\tcount, .Lmutual_align\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\n.Lloop_aligned:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned:\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\t.Lloop_aligned\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, .Lnot_limit\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\t.Lnot_limit\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "b.eq\t.Lloop_aligned\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, .Lnot_limit\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\t.Lnot_limit\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\n.Lnot_limit:\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "sub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\n.Lmutual_align:\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\t.Lstart_realigned\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\n.Lmisaligned8:\n\tcmp\tlimit, #16\n\tb.hs\t.Ltry_misaligned_words\n\n.Lbyte_loop:\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\t.Lbyte_loop\n.Ldone:\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\n.Ltry_misaligned_words:\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, .Ldo_misaligned\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\n.Lpage_end_loop:\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\t.Ldone", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": ".Ldone:\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\n.Ltry_misaligned_words:\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, .Ldo_misaligned\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\n.Lpage_end_loop:\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\t.Ldone\n\tsubs\tcount, count, #1\n\tb.hi\t.Lpage_end_loop\n\n.Ldo_misaligned:\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\t.Ldone_loop\n.Lloop_misaligned:\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, .Lpage_end_loop\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\t.Lloop_misaligned\n\n.Ldone_loop:\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, .Lnot_limit\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "bics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\t.Lloop_misaligned\n\n.Ldone_loop:\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, .Lnot_limit\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\n.Lret0:\n\tmov\tresult, #0\n\tret\n\t.size __strncmp_aarch64, . - __strncmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "655c205df74c41fb5a74fd6b1c109e00e555ccfb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/655c205df74c41fb5a74fd6b1c109e00e555ccfb/string/aarch64/strncmp.S", "line_start": 241, "line_end": 266}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:1", "text": "/* Copyright (c) 2013, 2018, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:2", "text": "#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n/* Parameters and result.  */\n#define src1\t\tx0\n#define src2\t\tx1\n#define limit\t\tx2\n#define result\t\tx0\n\n/* Internal variables.  */\n#define data1\t\tx3\n#define data1w\t\tw3\n#define data2\t\tx4\n#define data2w\t\tw4\n#define has_nul\t\tx5\n#define diff\t\tx6\n#define syndrome\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define zeroones\tx11\n#define pos\t\tx12\n#define limit_wd\tx13\n#define mask\t\tx14\n#define endloop\t\tx15\n#define count\t\tmask\n\n\t.text\n\t.p2align 6\n\t.rep 7\n\tnop\t/* Pad so that the loop below fits a cache line.  */\n\t.endr\ndef_fn __strncmp_aarch64\n\tcbz\tlimit, .Lret0\n\teor\ttmp1, src1, src2\n\tmov\tzeroones, #REP8_01\n\ttst\ttmp1, #7\n\tand\tcount, src1, #7\n\tb.ne\t.Lmisaligned8\n\tcbnz\tcount, .Lmutual_align\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\n.Lloop_aligned:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned:\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\t.Lloop_aligned", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:3", "text": "/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #3\t/* Convert to Dwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* Start of performance-critical section  -- one 64B cache line.  */\n.Lloop_aligned:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned:\n\tsubs\tlimit_wd, limit_wd, #1\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tcsinv\tendloop, diff, xzr, pl\t/* Last Dword or differences.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tendloop, #0, #0, eq\n\tb.eq\t.Lloop_aligned\n\t/* End of performance-critical section  -- one 64B cache line.  */\n\n\t/* Not reached the limit, must have found the end or a diff.  */\n\ttbz\tlimit_wd, #63, .Lnot_limit\n\n\t/* Limit % 8 == 0 => all bytes significant.  */\n\tands\tlimit, limit, #7\n\tb.eq\t.Lnot_limit\n\n\tlsl\tlimit, limit, #3\t/* Bits -> bytes.  */\n\tmov\tmask, #~0\n#ifdef __AARCH64EB__\n\tlsr\tmask, mask, limit\n#else\n\tlsl\tmask, mask, limit\n#endif\n\tbic\tdata1, data1, mask\n\tbic\tdata2, data2, mask\n\n\t/* Make sure that the NUL byte is marked in the syndrome.  */\n\torr\thas_nul, has_nul, mask\n\n.Lnot_limit:\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:4", "text": "orr\thas_nul, has_nul, mask\n\n.Lnot_limit:\n\torr\tsyndrome, diff, has_nul\n\n#ifndef\t__AARCH64EB__\n\trev\tsyndrome, syndrome\n\trev\tdata1, data1\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tclz\tpos, syndrome\n\trev\tdata2, data2\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#else\n\t/* For big-endian we cannot use the trick with the syndrome value\n\t   as carry-propagation can corrupt the upper bits if the trailing\n\t   bytes in the string contain 0x01.  */\n\t/* However, if there is no NUL byte in the dword, we can generate\n\t   the result directly.  We can't just subtract the bytes as the\n\t   MSB might be significant.  */\n\tcbnz\thas_nul, 1f\n\tcmp\tdata1, data2\n\tcset\tresult, ne\n\tcneg\tresult, result, lo\n\tret\n1:\n\t/* Re-compute the NUL-byte detection, using a byte-reversed value.  */\n\trev\ttmp3, data1\n\tsub\ttmp1, tmp3, zeroones\n\torr\ttmp2, tmp3, #REP8_7f\n\tbic\thas_nul, tmp1, tmp2\n\trev\thas_nul, has_nul\n\torr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\n.Lmutual_align:\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:5", "text": "orr\tsyndrome, diff, has_nul\n\tclz\tpos, syndrome\n\t/* The MS-non-zero bit of the syndrome marks either the first bit\n\t   that is different, or the top bit of the first zero byte.\n\t   Shifting left now will bring the critical information into the\n\t   top bits.  */\n\tlsl\tdata1, data1, pos\n\tlsl\tdata2, data2, pos\n\t/* But we need to zero-extend (char is unsigned) the value and then\n\t   perform a signed 32-bit subtraction.  */\n\tlsr\tdata1, data1, #56\n\tsub\tresult, data1, data2, lsr #56\n\tret\n#endif\n\n.Lmutual_align:\n\t/* Sources are mutually aligned, but are not currently at an\n\t   alignment boundary.  Round down the addresses and then mask off\n\t   the bytes that precede the start point.\n\t   We also need to adjust the limit calculations, but without\n\t   overflowing if the limit is near ULONG_MAX.  */\n\tbic\tsrc1, src1, #7\n\tbic\tsrc2, src2, #7\n\tldr\tdata1, [src1], #8\n\tneg\ttmp3, count, lsl #3\t/* 64 - bits(bytes beyond align). */\n\tldr\tdata2, [src2], #8\n\tmov\ttmp2, #~0\n\tsub\tlimit_wd, limit, #1\t/* limit != 0, so no underflow.  */\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp3\t/* Shift (count & 63).  */\n#endif\n\tand\ttmp3, limit_wd, #7\n\tlsr\tlimit_wd, limit_wd, #3\n\t/* Adjust the limit. Only low 3 bits used, so overflow irrelevant.  */\n\tadd\tlimit, limit, count\n\tadd\ttmp3, tmp3, count\n\torr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\t.Lstart_realigned\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\n.Lmisaligned8:\n\tcmp\tlimit, #16\n\tb.hs\t.Ltry_misaligned_words\n\n.Lbyte_loop:\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\t.Lbyte_loop\n.Ldone:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:6", "text": "orr\tdata1, data1, tmp2\n\torr\tdata2, data2, tmp2\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #3\n\tb\t.Lstart_realigned\n\n\t.p2align 6\n\t/* Don't bother with dwords for up to 16 bytes.  */\n.Lmisaligned8:\n\tcmp\tlimit, #16\n\tb.hs\t.Ltry_misaligned_words\n\n.Lbyte_loop:\n\t/* Perhaps we can do better than this.  */\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tsubs\tlimit, limit, #1\n\tccmp\tdata1w, #1, #0, hi\t/* NZCV = 0b0000.  */\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.eq\t.Lbyte_loop\n.Ldone:\n\tsub\tresult, data1, data2\n\tret\n\t/* Align the SRC1 to a dword by doing a bytewise compare and then do\n\t   the dword loop.  */\n.Ltry_misaligned_words:\n\tlsr\tlimit_wd, limit, #3\n\tcbz\tcount, .Ldo_misaligned\n\n\tneg\tcount, count\n\tand\tcount, count, #7\n\tsub\tlimit, limit, count\n\tlsr\tlimit_wd, limit, #3\n\n.Lpage_end_loop:\n\tldrb\tdata1w, [src1], #1\n\tldrb\tdata2w, [src2], #1\n\tcmp\tdata1w, #1\n\tccmp\tdata1w, data2w, #0, cs\t/* NZCV = 0b0000.  */\n\tb.ne\t.Ldone\n\tsubs\tcount, count, #1\n\tb.hi\t.Lpage_end_loop\n\n.Ldo_misaligned:\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\t.Ldone_loop\n.Lloop_misaligned:\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, .Lpage_end_loop\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/aarch64/strncmp.S:7", "text": "b.hi\t.Lpage_end_loop\n\n.Ldo_misaligned:\n\t/* Prepare ourselves for the next page crossing.  Unlike the aligned\n\t   loop, we fetch 1 less dword because we risk crossing bounds on\n\t   SRC2.  */\n\tmov\tcount, #8\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.lo\t.Ldone_loop\n.Lloop_misaligned:\n\tand\ttmp2, src2, #0xff8\n\teor\ttmp2, tmp2, #0xff8\n\tcbz\ttmp2, .Lpage_end_loop\n\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\tsubs\tlimit_wd, limit_wd, #1\n\tb.pl\t.Lloop_misaligned\n\n.Ldone_loop:\n\t/* We found a difference or a NULL before the limit was reached.  */\n\tand\tlimit, limit, #7\n\tcbz\tlimit, .Lnot_limit\n\t/* Read the last word.  */\n\tsub\tsrc1, src1, 8\n\tsub\tsrc2, src2, 8\n\tldr\tdata1, [src1, limit]\n\tldr\tdata2, [src2, limit]\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\teor\tdiff, data1, data2\t/* Non-zero if differences found.  */\n\tbics\thas_nul, tmp1, tmp2\t/* Non-zero if NUL terminator.  */\n\tccmp\tdiff, #0, #0, eq\n\tb.ne\t.Lnot_limit\n\n.Lret0:\n\tmov\tresult, #0\n\tret\n\t.size __strncmp_aarch64, . - __strncmp_aarch64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strncmp.S", "license": "MIT", "commit": "23b9fc5bf8ae72e5f96571daf611f7b585ca3e82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/23b9fc5bf8ae72e5f96571daf611f7b585ca3e82/string/aarch64/strncmp.S", "line_start": 241, "line_end": 285}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "rdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x1\n\tret\n\nEND (__strnlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 71}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "ldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x1\n\tret\n\nEND (__strnlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 73}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strnlen_aarch64_sve)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strnlen_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "e2d37ddacb8ccaa95bad904c2be29eee737e7f82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e2d37ddacb8ccaa95bad904c2be29eee737e7f82/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x1\n\tret\n\nEND (__strnlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "e2d37ddacb8ccaa95bad904c2be29eee737e7f82", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e2d37ddacb8ccaa95bad904c2be29eee737e7f82/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 76}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x2\n\tret\n\nEND (__strnlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 76}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strnlen_aarch64_sve, 4)\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "b.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x2\n\tret\n\nEND (__strnlen_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 74}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "b.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x2\n\tret\n\nEND (__strnlen_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 76}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strnlen_aarch64_sve\n\t.type\t__strnlen_aarch64_sve, %function\n\t.p2align 4\n__strnlen_aarch64_sve:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x2\n\tret\n\n\t.size\t__strnlen_aarch64_sve, . - __strnlen_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 74}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strnlen_aarch64_sve\n\t.type\t__strnlen_aarch64_sve, %function\n\t.p2align 4\n__strnlen_aarch64_sve:\n\tsetffr\t\t\t\t/* initialize FFR */\n\tmov\tx2, 0\t\t\t/* initialize len */\n\tb\t1f\n\n\t.p2align 4\n\t/* We have off + vl <= max, and so may read the whole vector.  */\n0:\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\tb.any\t8f\n\tincb\tx2\n\n1:\twhilelo\tp0.b, x2, x1\n\tb.last\t0b\n\n\t/* We have off + vl < max.  Test for off == max before proceeding.  */\n\tb.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "355403c3bd5ef7eb1ea1a43f3b216a90a4c975bf", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/355403c3bd5ef7eb1ea1a43f3b216a90a4c975bf/string/aarch64/strnlen-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen-sve.S:2", "text": "b.none\t9f\n\n\tldff1b\tz0.b, p0/z, [x0, x2]\n\trdffrs\tp1.b, p0/z\n\tb.nlast\t2f\n\n\t/* First fault did not fail: the vector up to max is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.\n\t   Compare for end-of-string, but there are no more bytes.  */\n\tcmpeq\tp2.b, p0/z, z0.b, 0\n\n\t/* Found end-of-string or zero.  */\n8:\tbrkb\tp2.b, p0/z, p2.b\n\tmov\tx0, x2\n\tincp\tx0, p2.b\n\tret\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparison only on the valid bytes.  */\n2:\tcmpeq\tp2.b, p1/z, z0.b, 0\n\tb.any\t8b\n\n\t/* No inequality or zero found.  Re-init FFR, incr and loop.  */\n\tsetffr\n\tincp\tx2, p1.b\n\tb\t1b\n\n\t/* End of count.  Return max.  */\n9:\tmov\tx0, x2\n\tret\n\n\t.size\t__strnlen_aarch64_sve, . - __strnlen_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen-sve.S", "license": "MIT", "commit": "355403c3bd5ef7eb1ea1a43f3b216a90a4c975bf", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/355403c3bd5ef7eb1ea1a43f3b216a90a4c975bf/string/aarch64/strnlen-sve.S", "line_start": 41, "line_end": 72}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/*\n   Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strnlen_aarch64)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret\n\nL(start_loop):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "ld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 17\n\tsubs\tcntrem, cntin, tmp\n\tb.lo\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\ttbz\tcntrem, 4, L(loop32_2)\n\tsub\tsrc, src, 16\n\t.p2align 5\nL(loop32):\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\nL(loop32_2):\n\tldr\tqdata, [src, 16]\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strnlen.S", "line_start": 41, "line_end": 99}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "umaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strnlen.S", "line_start": 81, "line_end": 99}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/*\n   Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strnlen_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "bic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tadd\ttmp, tmp, 17\n\tsubs\tcntrem, cntin, tmp\n\tb.lo\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\ttbz\tcntrem, 4, L(loop32_2)\n\tsub\tsrc, src, 16\n\t.p2align 5\nL(loop32):\n\tldr\tqdata, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\nL(loop32_2):\n\tldr\tqdata, [src, 16]\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "cmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.lo\tL(end_2)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\nL(end_2):\n\tadd\tsrc, src, 16\nL(end):\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tsub\tresult, src, srcin\n\tfmov\tsynd, dend\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strnlen.S", "line_start": 81, "line_end": 101}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/*\n   Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strnlen_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vend\t\tv2\n#define dend\t\td2\n\n/*\n   Core algorithm:\n   Process the string in 16-byte aligned chunks. Compute a 64-bit mask with\n   four bits per byte using the shrn instruction. A count trailing zeros then\n   identifies the first zero byte.  */\n\nENTRY (__strnlen_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tbic\tsrc, srcin, 15\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tshrn\tvend.8b, vhas_chr.8h, 4\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "5de06730073d93487fdda678db08e9e2cafe93bb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5de06730073d93487fdda678db08e9e2cafe93bb/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define wtmp\t\tw4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vrepmask\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strnlen_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src], 16\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strnlen_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src], 16\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 5\nL(loop32):\n\tldr\tqdata, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\nL(loop32_2):\n\tldr\tqdata, [src], 16\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\n\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tsub\tsrc, src, 16\n\tmov\tsynd, vend.d[0]\n\tsub\tresult, src, srcin\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "fmov\tsynd, dend\n\tcbnz\tsynd, L(end)\nL(loop32_2):\n\tldr\tqdata, [src], 16\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\n\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tsub\tsrc, src, 16\n\tmov\tsynd, vend.d[0]\n\tsub\tresult, src, srcin\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strnlen.S", "line_start": 81, "line_end": 111}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define wtmp\t\tw4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vrepmask\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strnlen_aarch64)\n\tPTR_ARG (0)\n\tSIZE_ARG (1)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src], 16\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define cntin\t\tx1\n#define result\t\tx0\n\n#define src\t\tx2\n#define synd\t\tx3\n#define\tshift\t\tx4\n#define wtmp\t\tw4\n#define tmp\t\tx4\n#define cntrem\t\tx5\n\n#define qdata\t\tq0\n#define vdata\t\tv0\n#define vhas_chr\tv1\n#define vrepmask\tv2\n#define vend\t\tv3\n#define dend\t\td3\n\n/*\n   Core algorithm:\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value with four bits\n   per byte. For even bytes, bits 0-3 are set if the relevant byte matched the\n   requested character or the byte is NUL. Bits 4-7 must be zero. Bits 4-7 are\n   set likewise for odd bytes so that adjacent bytes can be merged. Since the\n   bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strnlen_aarch64)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src], 16\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "bits in the syndrome reflect the order in which things occur in the original\n   string, counting trailing zeros identifies exactly which byte matched.  */\n\nENTRY (__strnlen_aarch64)\n\tbic\tsrc, srcin, 15\n\tmov\twtmp, 0xf00f\n\tcbz\tcntin, L(nomatch)\n\tld1\t{vdata.16b}, [src], 16\n\tdup\tvrepmask.8h, wtmp\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tlsl\tshift, srcin, 2\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tcbz\tsynd, L(start_loop)\nL(finish):\n\trbit\tsynd, synd\n\tclz\tsynd, synd\n\tlsr\tresult, synd, 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(start_loop):\n\tsub\ttmp, src, srcin\n\tsubs\tcntrem, cntin, tmp\n\tb.ls\tL(nomatch)\n\n\t/* Make sure that it won't overread by a 16-byte chunk */\n\tadd\ttmp, cntrem, 15\n\ttbnz\ttmp, 4, L(loop32_2)\n\n\t.p2align 5\nL(loop32):\n\tldr\tqdata, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(end)\nL(loop32_2):\n\tldr\tqdata, [src], 16\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\n\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tsub\tsrc, src, 16\n\tmov\tsynd, vend.d[0]\n\tsub\tresult, src, srcin\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "L(loop32_2):\n\tldr\tqdata, [src], 16\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\n\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tsub\tsrc, src, 16\n\tmov\tsynd, vend.d[0]\n\tsub\tresult, src, srcin\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strnlen.S", "line_start": 81, "line_end": 109}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "L(loop32_2):\n\tldr\tqdata, [src], 16\n\tsubs\tcntrem, cntrem, 32\n\tcmeq\tvhas_chr.16b, vdata.16b, 0\n\tb.ls\tL(end)\n\tumaxp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop32)\n\nL(end):\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask.16b\n\taddp\tvend.16b, vhas_chr.16b, vhas_chr.16b\t\t/* 128->64 */\n\tsub\tsrc, src, 16\n\tmov\tsynd, vend.d[0]\n\tsub\tresult, src, srcin\n#ifndef __AARCH64EB__\n\trbit\tsynd, synd\n#endif\n\tclz\tsynd, synd\n\tadd\tresult, result, synd, lsr 2\n\tcmp\tcntin, result\n\tcsel\tresult, cntin, result, ls\n\tret\n\nL(nomatch):\n\tmov\tresult, cntin\n\tret\n\nEND (__strnlen_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "6b23ea83a64195e0c22f159c138a912cd2818f30", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6b23ea83a64195e0c22f159c138a912cd2818f30/string/aarch64/strnlen.S", "line_start": 81, "line_end": 111}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n#define limit\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define data1\t\tx3\n#define data2\t\tx4\n#define data2a\t\tx5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define pos\t\tx13\n#define limit_wd\tx14\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t.text\n\t.p2align\t6\nL(start):\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 6\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\nL(hit_limit):\n\tmov\tlen, limit\n\tret\n\nENTRY_ALIGN (__strnlen_aarch64, 0)\n\tcbz\tlimit, L(hit_limit)\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\tL(misaligned)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "L(start):\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 6\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\nL(hit_limit):\n\tmov\tlen, limit\n\tret\n\nENTRY_ALIGN (__strnlen_aarch64, 0)\n\tcbz\tlimit, L(hit_limit)\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\tL(misaligned)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n\n\t/* Start of critial section -- keep to one 64Byte cache line.  */\nL(loop):\n\tldp\tdata1, data2, [src], #16\nL(realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tsubs\tlimit_wd, limit_wd, #1\n\torr\ttmp1, has_nul1, has_nul2\n\tccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\tL(loop)\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, L(hit_limit)\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, L(nul_in_data2)\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\nL(nul_in_data2):\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "ccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\tL(loop)\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, L(hit_limit)\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, L(nul_in_data2)\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\nL(nul_in_data2):\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\trev\tdata2, data2\n\tsub\ttmp1, data2, zeroones\n\torr\ttmp2, data2, #REP8_7f\n\tbic\thas_nul2, tmp1, tmp2\n#endif\n\tsub\tlen, len, #8\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tadd\tlen, len, pos, lsr #3\t\t/* Bits to bytes.  */\n\tcmp\tlen, limit\n\tcsel\tlen, len, limit, ls\t\t/* Return the lower value.  */\n\tret\n\nL(misaligned):\n\t/* Deal with a partial first word.\n\t   We're doing two things in parallel here;\n\t   1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strnlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:4", "text": "1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#endif\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #4\n\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\n\tcsinv\tdata1, data1, xzr, le\n\tcsel\tdata2, data2, data2a, le\n\tb\tL(realigned)\n\nEND (__strnlen_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strnlen.S", "line_start": 121, "line_end": 157}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n#define limit\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define data1\t\tx3\n#define data2\t\tx4\n#define data2a\t\tx5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define pos\t\tx13\n#define limit_wd\tx14\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t.text\n\t.p2align\t6\nL(start):\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\nL(hit_limit):\n\tmov\tlen, limit\n\tret\n\nENTRY_ALIGN (__strnlen_aarch64, 0)\n\tcbz\tlimit, L(hit_limit)\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\tL(misaligned)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "L(start):\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\nL(hit_limit):\n\tmov\tlen, limit\n\tret\n\nENTRY_ALIGN (__strnlen_aarch64, 0)\n\tcbz\tlimit, L(hit_limit)\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\tL(misaligned)\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n\n\t/* Start of critial section -- keep to one 64Byte cache line.  */\nL(loop):\n\tldp\tdata1, data2, [src], #16\nL(realigned):\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tsubs\tlimit_wd, limit_wd, #1\n\torr\ttmp1, has_nul1, has_nul2\n\tccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\tL(loop)\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, L(hit_limit)\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, L(nul_in_data2)\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\nL(nul_in_data2):\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:4", "text": "1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#endif\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #4\n\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\n\tcsinv\tdata1, data1, xzr, le\n\tcsel\tdata2, data2, data2a, le\n\tb\tL(realigned)\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/aarch64/strnlen.S", "line_start": 121, "line_end": 155}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n#define limit\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define data1\t\tx3\n#define data2\t\tx4\n#define data2a\t\tx5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define pos\t\tx13\n#define limit_wd\tx14\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t.text\n\t.p2align\t6\n.Lstart:\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\n.Lhit_limit:\n\tmov\tlen, limit\n\tret\n\nENTRY_ALIGN (__strnlen_aarch64, 0)\n\tcbz\tlimit, .Lhit_limit\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\t.Lmisaligned\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": ".Lstart:\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\n.Lhit_limit:\n\tmov\tlen, limit\n\tret\n\nENTRY_ALIGN (__strnlen_aarch64, 0)\n\tcbz\tlimit, .Lhit_limit\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\t.Lmisaligned\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n\n\t/* Start of critial section -- keep to one 64Byte cache line.  */\n.Lloop:\n\tldp\tdata1, data2, [src], #16\n.Lrealigned:\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tsubs\tlimit_wd, limit_wd, #1\n\torr\ttmp1, has_nul1, has_nul2\n\tccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\t.Lloop\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, .Lhit_limit\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, .Lnul_in_data2\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\n.Lnul_in_data2:\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "ccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\t.Lloop\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, .Lhit_limit\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, .Lnul_in_data2\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\n.Lnul_in_data2:\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\trev\tdata2, data2\n\tsub\ttmp1, data2, zeroones\n\torr\ttmp2, data2, #REP8_7f\n\tbic\thas_nul2, tmp1, tmp2\n#endif\n\tsub\tlen, len, #8\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tadd\tlen, len, pos, lsr #3\t\t/* Bits to bytes.  */\n\tcmp\tlen, limit\n\tcsel\tlen, len, limit, ls\t\t/* Return the lower value.  */\n\tret\n\n.Lmisaligned:\n\t/* Deal with a partial first word.\n\t   We're doing two things in parallel here;\n\t   1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strnlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:4", "text": "1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#endif\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #4\n\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\n\tcsinv\tdata1, data1, xzr, le\n\tcsel\tdata2, data2, data2a, le\n\tb\t.Lrealigned\n\nEND (__strnlen_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/aarch64/strnlen.S", "line_start": 121, "line_end": 155}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/*\n * strnlen - calculate the length of a string with limit.\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n#define limit\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define data1\t\tx3\n#define data2\t\tx4\n#define data2a\t\tx5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define pos\t\tx13\n#define limit_wd\tx14\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t.text\n\t.p2align\t6\n.Lstart:\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\n.Lhit_limit:\n\tmov\tlen, limit\n\tret\n\ndef_fn __strnlen_aarch64\n\tcbz\tlimit, .Lhit_limit\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "0560ff3a9b575ca06f265d7406921c4d72cd8694", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0560ff3a9b575ca06f265d7406921c4d72cd8694/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t.text\n\t.p2align\t6\n.Lstart:\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\n.Lhit_limit:\n\tmov\tlen, limit\n\tret\n\ndef_fn __strnlen_aarch64\n\tcbz\tlimit, .Lhit_limit\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\t.Lmisaligned\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n\n\t/* Start of critial section -- keep to one 64Byte cache line.  */\n.Lloop:\n\tldp\tdata1, data2, [src], #16\n.Lrealigned:\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tsubs\tlimit_wd, limit_wd, #1\n\torr\ttmp1, has_nul1, has_nul2\n\tccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\t.Lloop\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, .Lhit_limit\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, .Lnul_in_data2\n#ifdef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "0560ff3a9b575ca06f265d7406921c4d72cd8694", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0560ff3a9b575ca06f265d7406921c4d72cd8694/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "sub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tsubs\tlimit_wd, limit_wd, #1\n\torr\ttmp1, has_nul1, has_nul2\n\tccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\t.Lloop\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, .Lhit_limit\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, .Lnul_in_data2\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\n.Lnul_in_data2:\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\trev\tdata2, data2\n\tsub\ttmp1, data2, zeroones\n\torr\ttmp2, data2, #REP8_7f\n\tbic\thas_nul2, tmp1, tmp2\n#endif\n\tsub\tlen, len, #8\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tadd\tlen, len, pos, lsr #3\t\t/* Bits to bytes.  */\n\tcmp\tlen, limit\n\tcsel\tlen, len, limit, ls\t\t/* Return the lower value.  */\n\tret\n\n.Lmisaligned:\n\t/* Deal with a partial first word.\n\t   We're doing two things in parallel here;\n\t   1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "0560ff3a9b575ca06f265d7406921c4d72cd8694", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0560ff3a9b575ca06f265d7406921c4d72cd8694/string/aarch64/strnlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:4", "text": "csel\tlen, len, limit, ls\t\t/* Return the lower value.  */\n\tret\n\n.Lmisaligned:\n\t/* Deal with a partial first word.\n\t   We're doing two things in parallel here;\n\t   1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#endif\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #4\n\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\n\tcsinv\tdata1, data1, xzr, le\n\tcsel\tdata2, data2, data2a, le\n\tb\t.Lrealigned\n\t.size\t__strnlen_aarch64, . - .Lstart\t/* Include pre-padding in size.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "0560ff3a9b575ca06f265d7406921c4d72cd8694", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0560ff3a9b575ca06f265d7406921c4d72cd8694/string/aarch64/strnlen.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:1", "text": "/* strnlen - calculate the length of a string with limit.\n\n   Copyright (c) 2013, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions are met:\n       * Redistributions of source code must retain the above copyright\n         notice, this list of conditions and the following disclaimer.\n       * Redistributions in binary form must reproduce the above copyright\n         notice, this list of conditions and the following disclaimer in the\n         documentation and/or other materials provided with the distribution.\n       * Neither the name of the Linaro nor the\n         names of its contributors may be used to endorse or promote products\n         derived from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n */\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define len\t\tx0\n#define limit\t\tx1\n\n/* Locals and temporaries.  */\n#define src\t\tx2\n#define data1\t\tx3\n#define data2\t\tx4\n#define data2a\t\tx5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define pos\t\tx13\n#define limit_wd\tx14\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "981b3fe6fb976cd50456f9e0dba729618b505c85", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/981b3fe6fb976cd50456f9e0dba729618b505c85/string/aarch64/strnlen.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:2", "text": "#define data1\t\tx3\n#define data2\t\tx4\n#define data2a\t\tx5\n#define has_nul1\tx6\n#define has_nul2\tx7\n#define tmp1\t\tx8\n#define tmp2\t\tx9\n#define tmp3\t\tx10\n#define tmp4\t\tx11\n#define zeroones\tx12\n#define pos\t\tx13\n#define limit_wd\tx14\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#define REP8_01 0x0101010101010101\n#define REP8_7f 0x7f7f7f7f7f7f7f7f\n#define REP8_80 0x8080808080808080\n\n\t.text\n\t.p2align\t6\n.Lstart:\n\t/* Pre-pad to ensure critical loop begins an icache line.  */\n\t.rep 7\n\tnop\n\t.endr\n\t/* Put this code here to avoid wasting more space with pre-padding.  */\n.Lhit_limit:\n\tmov\tlen, limit\n\tret\n\ndef_fn __strnlen_aarch64\n\tcbz\tlimit, .Lhit_limit\n\tmov\tzeroones, #REP8_01\n\tbic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\t.Lmisaligned\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n\n\t/* Start of critial section -- keep to one 64Byte cache line.  */\n.Lloop:\n\tldp\tdata1, data2, [src], #16\n.Lrealigned:\n\tsub\ttmp1, data1, zeroones", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "981b3fe6fb976cd50456f9e0dba729618b505c85", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/981b3fe6fb976cd50456f9e0dba729618b505c85/string/aarch64/strnlen.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:3", "text": "bic\tsrc, srcin, #15\n\tands\ttmp1, srcin, #15\n\tb.ne\t.Lmisaligned\n\t/* Calculate the number of full and partial words -1.  */\n\tsub\tlimit_wd, limit, #1\t/* Limit != 0, so no underflow.  */\n\tlsr\tlimit_wd, limit_wd, #4\t/* Convert to Qwords.  */\n\n\t/* NUL detection works on the principle that (X - 1) & (~X) & 0x80\n\t   (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and\n\t   can be done in parallel across the entire word.  */\n\t/* The inner loop deals with two Dwords at a time.  This has a\n\t   slightly higher start-up cost, but we should win quite quickly,\n\t   especially on cores with a high number of issue slots per\n\t   cycle, as we get much better parallelism out of the operations.  */\n\n\t/* Start of critial section -- keep to one 64Byte cache line.  */\n.Lloop:\n\tldp\tdata1, data2, [src], #16\n.Lrealigned:\n\tsub\ttmp1, data1, zeroones\n\torr\ttmp2, data1, #REP8_7f\n\tsub\ttmp3, data2, zeroones\n\torr\ttmp4, data2, #REP8_7f\n\tbic\thas_nul1, tmp1, tmp2\n\tbic\thas_nul2, tmp3, tmp4\n\tsubs\tlimit_wd, limit_wd, #1\n\torr\ttmp1, has_nul1, has_nul2\n\tccmp\ttmp1, #0, #0, pl\t/* NZCV = 0000  */\n\tb.eq\t.Lloop\n\t/* End of critical section -- keep to one 64Byte cache line.  */\n\n\torr\ttmp1, has_nul1, has_nul2\n\tcbz\ttmp1, .Lhit_limit\t/* No null in final Qword.  */\n\n\t/* We know there's a null in the final Qword.  The easiest thing\n\t   to do now is work out the length of the string and return\n\t   MIN (len, limit).  */\n\n\tsub\tlen, src, srcin\n\tcbz\thas_nul1, .Lnul_in_data2\n#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\n.Lnul_in_data2:\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\trev\tdata2, data2\n\tsub\ttmp1, data2, zeroones\n\torr\ttmp2, data2, #REP8_7f\n\tbic\thas_nul2, tmp1, tmp2\n#endif\n\tsub\tlen, len, #8\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tadd\tlen, len, pos, lsr #3\t\t/* Bits to bytes.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "981b3fe6fb976cd50456f9e0dba729618b505c85", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/981b3fe6fb976cd50456f9e0dba729618b505c85/string/aarch64/strnlen.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:4", "text": "#ifdef __AARCH64EB__\n\tmov\tdata2, data1\n#endif\n\tsub\tlen, len, #8\n\tmov\thas_nul2, has_nul1\n.Lnul_in_data2:\n#ifdef __AARCH64EB__\n\t/* For big-endian, carry propagation (if the final byte in the\n\t   string is 0x01) means we cannot use has_nul directly.  The\n\t   easiest way to get the correct byte is to byte-swap the data\n\t   and calculate the syndrome a second time.  */\n\trev\tdata2, data2\n\tsub\ttmp1, data2, zeroones\n\torr\ttmp2, data2, #REP8_7f\n\tbic\thas_nul2, tmp1, tmp2\n#endif\n\tsub\tlen, len, #8\n\trev\thas_nul2, has_nul2\n\tclz\tpos, has_nul2\n\tadd\tlen, len, pos, lsr #3\t\t/* Bits to bytes.  */\n\tcmp\tlen, limit\n\tcsel\tlen, len, limit, ls\t\t/* Return the lower value.  */\n\tret\n\n.Lmisaligned:\n\t/* Deal with a partial first word.\n\t   We're doing two things in parallel here;\n\t   1) Calculate the number of words (but avoiding overflow if\n\t      limit is near ULONG_MAX) - to do this we need to work out\n\t      limit + tmp1 - 1 as a 65-bit value before shifting it;\n\t   2) Load and mask the initial data words - we force the bytes\n\t      before the ones we are interested in to 0xff - this ensures\n\t      early bytes will not hit any zero detection.  */\n\tsub\tlimit_wd, limit, #1\n\tneg\ttmp4, tmp1\n\tcmp\ttmp1, #8\n\n\tand\ttmp3, limit_wd, #15\n\tlsr\tlimit_wd, limit_wd, #4\n\tmov\ttmp2, #~0\n\n\tldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#endif\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #4\n\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\n\tcsinv\tdata1, data1, xzr, le\n\tcsel\tdata2, data2, data2a, le\n\tb\t.Lrealigned", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "981b3fe6fb976cd50456f9e0dba729618b505c85", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/981b3fe6fb976cd50456f9e0dba729618b505c85/string/aarch64/strnlen.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/aarch64/strnlen.S:5", "text": "ldp\tdata1, data2, [src], #16\n\tlsl\ttmp4, tmp4, #3\t\t/* Bytes beyond alignment -> bits.  */\n\tadd\ttmp3, tmp3, tmp1\n\n#ifdef __AARCH64EB__\n\t/* Big-endian.  Early bytes are at MSB.  */\n\tlsl\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#else\n\t/* Little-endian.  Early bytes are at LSB.  */\n\tlsr\ttmp2, tmp2, tmp4\t/* Shift (tmp1 & 63).  */\n#endif\n\tadd\tlimit_wd, limit_wd, tmp3, lsr #4\n\n\torr\tdata1, data1, tmp2\n\torr\tdata2a, data2, tmp2\n\n\tcsinv\tdata1, data1, xzr, le\n\tcsel\tdata2, data2, data2a, le\n\tb\t.Lrealigned\n\t.size\t__strnlen_aarch64, . - .Lstart\t/* Include pre-padding in size.  */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strnlen.S", "license": "MIT", "commit": "981b3fe6fb976cd50456f9e0dba729618b505c85", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/981b3fe6fb976cd50456f9e0dba729618b505c85/string/aarch64/strnlen.S", "line_start": 161, "line_end": 181}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmovi\tvrepmask.16b, 0x33\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2_start)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:2", "text": "the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmovi\tvrepmask.16b, 0x33\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2_start)\n\n\t.p2align 4\nL(loop1):\n\tldr\tq1, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop1_end)\n\tldr\tq1, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop1)\n\tsub\tsrc, src, 16\nL(loop1_end):\n\tadd\tsrc, src, 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\trbit\tsynd, synd\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n#endif\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2_start)\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tadd\tresult, src, 15\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:3", "text": "shrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\trbit\tsynd, synd\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n#endif\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2_start)\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tadd\tresult, src, 15\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret\n\n\t.p2align 4\n\tnop\n\tnop\nL(loop2_start):\n\tadd\tsrc, src, 16\n\tbic\tvrepmask.8h, 0xf0\n\nL(loop2):\n\tcmp\tsynd, 0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tchr_match, synd, chr_match, ne\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\ttst\tsynd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tand\tnul_match, synd, 0xcccccccccccccccc\n\tsub\tnul_match, nul_match, 1\n\tand\ttmp, synd, 0x3333333333333333\n\tands\ttmp, tmp, nul_match\n\tcsel\tchr_match, tmp, chr_match, ne\n\tcsel\tsrc_match, src, src_match, ne\n\tsub\tsrc_match, src_match, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, src_match, tmp, lsr 2\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr-mte.S", "line_start": 81, "line_end": 135}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:4", "text": "bic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tand\tnul_match, synd, 0xcccccccccccccccc\n\tsub\tnul_match, nul_match, 1\n\tand\ttmp, synd, 0x3333333333333333\n\tands\ttmp, tmp, nul_match\n\tcsel\tchr_match, tmp, chr_match, ne\n\tcsel\tsrc_match, src, src_match, ne\n\tsub\tsrc_match, src_match, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, src_match, tmp, lsr 2\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr-mte.S", "line_start": 121, "line_end": 135}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020-2023, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmovi\tvrepmask.16b, 0x33\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2_start)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:2", "text": "the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmovi\tvrepmask.16b, 0x33\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2_start)\n\n\t.p2align 4\nL(loop1):\n\tldr\tq1, [src, 16]\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbnz\tsynd, L(loop1_end)\n\tldr\tq1, [src, 32]!\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop1)\n\tsub\tsrc, src, 16\nL(loop1_end):\n\tadd\tsrc, src, 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n#ifdef __AARCH64EB__\n\tbif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\trbit\tsynd, synd\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n#endif\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2_start)\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tadd\tresult, src, 15\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:3", "text": "bif\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n\trbit\tsynd, synd\n#else\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tfmov\tsynd, dend\n#endif\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2_start)\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tadd\tresult, src, 15\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret\n\n\t.p2align 4\n\tnop\n\tnop\nL(loop2_start):\n\tadd\tsrc, src, 16\n\tbic\tvrepmask.8h, 0xf0\n\nL(loop2):\n\tcmp\tsynd, 0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tchr_match, synd, chr_match, ne\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\ttst\tsynd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tand\tnul_match, synd, 0xcccccccccccccccc\n\tsub\tnul_match, nul_match, 1\n\tand\ttmp, synd, 0x3333333333333333\n\tands\ttmp, tmp, nul_match\n\tcsel\tchr_match, tmp, chr_match, ne\n\tcsel\tsrc_match, src, src_match, ne\n\tsub\tsrc_match, src_match, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, src_match, tmp, lsr 2\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr-mte.S", "line_start": 81, "line_end": 136}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmovi\tvrepmask.16b, 0x33\n\tld1\t{vdata.16b}, [src]\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tshrn\tvend.8b, vhas_nul.8h, 4\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2_start)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "10589b2c95e4d482f09ac6a705918fdc32c8421a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/10589b2c95e4d482f09ac6a705918fdc32c8421a/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0x3003\n\tdup\tvrepmask.8h, wtmp\n\ttst\tsrcin, 15\n\tbeq\tL(loop1)\n\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask2.8h, wtmp\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:2", "text": "four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0x3003\n\tdup\tvrepmask.8h, wtmp\n\ttst\tsrcin, 15\n\tbeq\tL(loop1)\n\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask2.8h, wtmp\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2)\n\n\t.p2align 5\nL(loop1):\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop1)\n\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tsub\tresult, src, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret\n\n\t.p2align 4\nL(loop2):\n\tcmp\tsynd, 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strrchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:3", "text": "bit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tsub\tresult, src, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret\n\n\t.p2align 4\nL(loop2):\n\tcmp\tsynd, 0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tchr_match, synd, chr_match, ne\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\ttst\tsynd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tand\tnul_match, synd, 0xcccccccccccccccc\n\tsub\tnul_match, nul_match, 1\n\tand\ttmp, synd, 0x3333333333333333\n\tands\ttmp, tmp, nul_match\n\tcsel\tchr_match, tmp, chr_match, ne\n\tcsel\tsrc_match, src, src_match, ne\n\tsub\tsrc_match, src_match, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, src_match, tmp, lsr 2\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strrchr-mte.S", "line_start": 81, "line_end": 126}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0x3003\n\tdup\tvrepmask.8h, wtmp\n\ttst\tsrcin, 15\n\tbeq\tL(loop1)\n\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask2.8h, wtmp\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tPTR_ARG (0)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0x3003\n\tdup\tvrepmask.8h, wtmp\n\ttst\tsrcin, 15\n\tbeq\tL(loop1)\n\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask2.8h, wtmp\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64, Advanced SIMD.\n * MTE compatible.\n */\n\n#include \"../asmdefs.h\"\n\n#define srcin\t\tx0\n#define chrin\t\tw1\n#define result\t\tx0\n\n#define src\t\tx2\n#define tmp\t\tx3\n#define wtmp\t\tw3\n#define synd\t\tx3\n#define shift\t\tx4\n#define src_match\tx4\n#define nul_match\tx5\n#define chr_match\tx6\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask\tv4\n#define vrepmask2\tv5\n#define vend\t\tv5\n#define dend\t\td5\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0x3003\n\tdup\tvrepmask.8h, wtmp\n\ttst\tsrcin, 15\n\tbeq\tL(loop1)\n\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask2.8h, wtmp\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "a99a1a9615b953b59e98fa22d780087a34a7e22b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a99a1a9615b953b59e98fa22d780087a34a7e22b/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:2", "text": "four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bits 0-1 are set if\n   the relevant byte matched the requested character; bits 2-3 are set\n   if the relevant byte matched the NUL end of string.  */\n\nENTRY (__strrchr_aarch64_mte)\n\tbic\tsrc, srcin, 15\n\tdup\tvrepchr.16b, chrin\n\tmov\twtmp, 0x3003\n\tdup\tvrepmask.8h, wtmp\n\ttst\tsrcin, 15\n\tbeq\tL(loop1)\n\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tmov\twtmp, 0xf00f\n\tdup\tvrepmask2.8h, wtmp\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask2.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tlsl\tshift, srcin, 2\n\tfmov\tsynd, dend\n\tlsr\tsynd, synd, shift\n\tlsl\tsynd, synd, shift\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbne\tL(tail)\n\tcbnz\tsynd, L(loop2)\n\n\t.p2align 5\nL(loop1):\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tcmhs\tvhas_nul.16b, vhas_chr.16b, vdata.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tcbz\tsynd, L(loop1)\n\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tsub\tresult, src, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret\n\n\t.p2align 4\nL(loop2):\n\tcmp\tsynd, 0\n\tcsel\tsrc_match, src, src_match, ne", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "a99a1a9615b953b59e98fa22d780087a34a7e22b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a99a1a9615b953b59e98fa22d780087a34a7e22b/string/aarch64/strrchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:3", "text": "bic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tands\tnul_match, synd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\nL(tail):\n\tsub\tnul_match, nul_match, 1\n\tand\tchr_match, synd, 0x3333333333333333\n\tands\tchr_match, chr_match, nul_match\n\tsub\tresult, src, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, result, tmp, lsr 2\n\tcsel\tresult, result, xzr, ne\n\tret\n\n\t.p2align 4\nL(loop2):\n\tcmp\tsynd, 0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tchr_match, synd, chr_match, ne\n\tld1\t{vdata.16b}, [src], 16\n\tcmeq\tvhas_nul.16b, vdata.16b, 0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tbit\tvhas_nul.16b, vhas_chr.16b, vrepmask.16b\n\tumaxp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\ttst\tsynd, 0xcccccccccccccccc\n\tbeq\tL(loop2)\n\n\tbic\tvhas_nul.8h, 0x0f, lsl 8\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\n\tfmov\tsynd, dend\n\tand\tnul_match, synd, 0xcccccccccccccccc\n\tsub\tnul_match, nul_match, 1\n\tand\ttmp, synd, 0x3333333333333333\n\tands\ttmp, tmp, nul_match\n\tcsel\tchr_match, tmp, chr_match, ne\n\tcsel\tsrc_match, src, src_match, ne\n\tsub\tsrc_match, src_match, 1\n\tclz\ttmp, chr_match\n\tsub\tresult, src_match, tmp, lsr 2\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "a99a1a9615b953b59e98fa22d780087a34a7e22b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/a99a1a9615b953b59e98fa22d780087a34a7e22b/string/aarch64/strrchr-mte.S", "line_start": 81, "line_end": 125}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata\t\tv1\n#define vhas_nul\tv2\n#define vhas_chr\tv3\n#define vrepmask_0\tv4\n#define vrepmask_c\tv16\n#define vend\t\tv17\n\n/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set if\n   the relevant byte matched the requested character; bit 1 is set\n   if the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL) and bits 2 and 3\n   are not used.\n   Since the bits in the syndrome reflect exactly the order in which\n   things occur in the original string a count_trailing_zeros()\n   operation will identify exactly which byte is causing the termination,\n   and why. */\n\nENTRY (__strrchr_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x20022002 used\n\t   similarly for NUL termination. */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr-mte.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:2", "text": "/* Core algorithm.\n\n   For each 16-byte chunk we calculate a 64-bit syndrome value, with\n   four bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set if\n   the relevant byte matched the requested character; bit 1 is set\n   if the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL) and bits 2 and 3\n   are not used.\n   Since the bits in the syndrome reflect exactly the order in which\n   things occur in the original string a count_trailing_zeros()\n   operation will identify exactly which byte is causing the termination,\n   and why. */\n\nENTRY (__strrchr_aarch64_mte)\n\t/* Magic constant 0x10011001 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x20022002 used\n\t   similarly for NUL termination. */\n\tmov\twtmp2, #0x1001\n\tmovk\twtmp2, #0x1001, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #15\t\t/* Work with aligned 16-byte chunks. */\n\tdup\tvrepmask_c.4s, wtmp2\n\tmov\tsrc_offset, #0\n\tands\ttmp1, srcin, #15\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(aligned)\n\n\t/* Input string is not 16-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata.16b}, [src], #16\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\taddp\tvhas_nul.16b, vhas_nul.16b, vhas_nul.16b\t// 128->64\n\taddp\tvhas_chr.16b, vhas_chr.16b, vhas_chr.16b\t// 128->64\n\tmov\tnul_match, vhas_nul.d[0]\n\tlsl\ttmp1, tmp1, #2\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr.d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t// 128->64\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr-mte.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:3", "text": "mov\tnul_match, vhas_nul.d[0]\n\tlsl\ttmp1, tmp1, #2\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr.d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t// 128->64\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\taddp\tvhas_chr.16b, vhas_chr.16b, vhas_chr.16b\t// 128->64\n\tmov\tnul_match, vend.d[0]\n\tmov\tchr_match, vhas_chr.d[0]\n\tcbz\tnul_match, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\taddp\tvhas_nul.16b, vhas_nul.16b, vhas_nul.16b\n\tmov\tnul_match, vhas_nul.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #2\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr-mte.S", "line_start": 81, "line_end": 132}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:4", "text": "/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #2\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64_mte)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr-mte.S", "line_start": 121, "line_end": 132}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:3", "text": "mov\tnul_match, vhas_nul.d[0]\n\tlsl\ttmp1, tmp1, #2\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr.d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata.16b}, [src], #16\n\tcmeq\tvhas_nul.16b, vdata.16b, #0\n\tcmeq\tvhas_chr.16b, vdata.16b, vrepchr.16b\n\taddp\tvend.16b, vhas_nul.16b, vhas_nul.16b\t// 128->64\n\tand\tvhas_chr.16b, vhas_chr.16b, vrepmask_c.16b\n\taddp\tvhas_chr.16b, vhas_chr.16b, vhas_chr.16b\t// 128->64\n\tmov\tnul_match, vend.d[0]\n\tmov\tchr_match, vhas_chr.d[0]\n\tcbz\tnul_match, L(loop)\n\n\tand\tvhas_nul.16b, vhas_nul.16b, vrepmask_0.16b\n\taddp\tvhas_nul.16b, vhas_nul.16b, vhas_nul.16b\n\tmov\tnul_match, vhas_nul.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #2\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strrchr-mte.S", "line_start": 81, "line_end": 134}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-mte.S:4", "text": "/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #2\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64_mte)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-mte.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strrchr-mte.S", "line_start": 121, "line_end": 134}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "b\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\nEND (__strrchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "41e5ae54ce6eac3411cd7c51eb40068fbf187601", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/41e5ae54ce6eac3411cd7c51eb40068fbf187601/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 82}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "mov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\nEND (__strrchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 83}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\nENTRY (__strrchr_aarch64_sve)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strrchr_aarch64_sve, 4)\n\tPTR_ARG (0)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "b.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\nEND (__strrchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 86}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\nENTRY_ALIGN (__strrchr_aarch64_sve, 4)\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "mov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\nEND (__strrchr_aarch64_sve)\n\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 85}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "mov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\nEND (__strrchr_aarch64_sve)\n\n#endif\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 87}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_FEATURE_SVE\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strrchr_aarch64_sve\n\t.type\t__strrchr_aarch64_sve, %function\n\t.p2align 4\n__strrchr_aarch64_sve:\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "b.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\n\t.size\t__strrchr_aarch64_sve, . - __strrchr_aarch64_sve\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 85}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:1", "text": "/*\n * strrchr - find the last of a character in a string\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * SVE Available.\n */\n\n\t.arch\tarmv8-a+sve\n\t.text\n\n\t.globl\t__strrchr_aarch64_sve\n\t.type\t__strrchr_aarch64_sve, %function\n\t.p2align 4\n__strrchr_aarch64_sve:\n\tdup\tz1.b, w1\t\t/* replicate byte across vector */\n\tsetffr\t\t\t\t/* initialize FFR */\n\tptrue\tp1.b\t\t\t/* all ones; loop invariant */\n\tmov\tx2, 0\t\t\t/* no match found so far */\n\tpfalse\tp2.b\n\n\t.p2align 4\n\t/* Read a vector's worth of bytes, stopping on first fault.  */\n0:\tldff1b\tz0.b, p1/z, [x0, xzr]\n\trdffrs\tp0.b, p1/z\n\tb.nlast\t1f\n\n\t/* First fault did not fail: the whole vector is valid.\n\t   Avoid depending on the contents of FFR beyond the branch.  */\n\tincb\tx0, all\t\t\t/* skip bytes this round */\n\tcmpeq\tp3.b, p1/z, z0.b, 0\t/* search for 0 */\n\tb.any\t3f\n\n\tcmpeq\tp3.b, p1/z, z0.b, z1.b\t/* search for c; no eos */\n\tb.none\t0b\n\n\tmov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "24b2750f455084affc265ca2d50d7558dd3bc5a8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/24b2750f455084affc265ca2d50d7558dd3bc5a8/string/aarch64/strrchr-sve.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr-sve.S:2", "text": "mov\tx2, x0\t\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* First fault failed: only some of the vector is valid.\n\t   Perform the comparisions only on the valid bytes.  */\n1:\tcmpeq\tp3.b, p0/z, z0.b, 0\t/* search for 0 */\n\tb.any\t2f\n\n\tcmpeq\tp3.b, p0/z, z0.b, z1.b\t/* search for c; no eos */\n\tmov\tx3, x0\n\tincp\tx0, p0.b\t\t/* skip bytes this round */\n\tsetffr\t\t\t\t/* re-init FFR */\n\tb.none\t0b\n\n\taddvl\tx2, x3, 1\t\t/* save advanced base */\n\tmov\tp2.b, p3.b\t\t/* save current search */\n\tb\t0b\n\n\t/* Found end-of-string.  */\n2:\tincb\tx0, all\t\t\t/* advance base */\n3:\tbrka\tp3.b, p1/z, p3.b\t/* mask after first 0 */\n\tcmpeq\tp3.b, p3/z, z0.b, z1.b\t/* search for c not after eos */\n\tb.any\t4f\n\n\t/* No C within last vector.  Did we have one before?  */\n\tcbz\tx2, 5f\n\tmov\tx0, x2\t\t\t/* restore advanced base */\n\tmov\tp3.b, p2.b\t\t/* restore saved search */\n\n\t/* Find the *last* match in the predicate.  This is slightly\n\t   more complicated than finding the first match.  */\n4:\trev\tp3.b, p3.b\t\t/* reverse the bits */\n\tbrka\tp3.b, p1/z, p3.b\t/* find position of last match */\n\tdecp\tx0, p3.b\t\t/* retard pointer to last match */\n\tret\n\n\t/* No C whatsoever.  Return NULL.  */\n5:\tmov\tx0, 0\n\tret\n\n\t.size\t__strrchr_aarch64_sve, . - __strrchr_aarch64_sve", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr-sve.S", "license": "MIT", "commit": "24b2750f455084affc265ca2d50d7558dd3bc5a8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/24b2750f455084affc265ca2d50d7558dd3bc5a8/string/aarch64/strrchr-sve.S", "line_start": 41, "line_end": 83}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:2", "text": "#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tmov\tsrc_offset, #0\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(aligned)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\t\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tlsr\ttmp3, const_m1, tmp1\n\tmov\tchr_match, vend1.d[1]\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\n\t.p2align 4\nL(loop):\n\tcmp\tchr_match, #0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:3", "text": "and\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\t\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tlsr\ttmp3, const_m1, tmp1\n\tmov\tchr_match, vend1.d[1]\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\n\t.p2align 4\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tuminp\tvend1.16b, vdata1.16b, vdata2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\tcmeq\tvend1.16b, vend1.16b, 0\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vhas_chr1.16b\t\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tmov\tchr_match, vend1.d[1]\n\tcbz\tnul_match, L(loop)\n\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:4", "text": "addp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/aarch64/strrchr.S", "line_start": 121, "line_end": 147}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:2", "text": "#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tmov\tsrc_offset, #0\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(aligned)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\t\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tlsr\ttmp3, const_m1, tmp1\n\tmov\tchr_match, vend1.d[1]\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\n\t.p2align 4\nL(loop):", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:3", "text": "cmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vhas_nul1.16b, vhas_chr1.16b\t\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tlsr\ttmp3, const_m1, tmp1\n\tmov\tchr_match, vend1.d[1]\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\n\t.p2align 4\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tuminp\tvend1.16b, vdata1.16b, vdata2.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\tcmeq\tvend1.16b, vend1.16b, 0\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vhas_chr1.16b\t\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tmov\tchr_match, vend1.d[1]\n\tcbz\tnul_match, L(loop)\n\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:4", "text": "and\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "1eb5d7c2ded0691a48e3982211be200f67217019", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1eb5d7c2ded0691a48e3982211be200f67217019/string/aarch64/strrchr.S", "line_start": 121, "line_end": 148}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/aarch64/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/aarch64/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\tPTR_ARG (0)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "afd6244a1f8d92299967d3d50e6f6a1466da413f", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/afd6244a1f8d92299967d3d50e6f6a1466da413f/string/aarch64/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:1", "text": "/*\n * strrchr - find last position of a character in a string.\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Assumptions:\n *\n * ARMv8-a, AArch64\n * Neon Available.\n */\n\n#include \"../asmdefs.h\"\n\n/* Arguments and results.  */\n#define srcin\t\tx0\n#define chrin\t\tw1\n\n#define result\t\tx0\n\n#define src\t\tx2\n#define\ttmp1\t\tx3\n#define wtmp2\t\tw4\n#define tmp3\t\tx5\n#define src_match\tx6\n#define src_offset\tx7\n#define const_m1\tx8\n#define tmp4\t\tx9\n#define nul_match\tx10\n#define chr_match\tx11\n\n#define vrepchr\t\tv0\n#define vdata1\t\tv1\n#define vdata2\t\tv2\n#define vhas_nul1\tv3\n#define vhas_nul2\tv4\n#define vhas_chr1\tv5\n#define vhas_chr2\tv6\n#define vrepmask_0\tv7\n#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "98e4d6a5c13c8e542c56f26dc48171205d3923b3", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/98e4d6a5c13c8e542c56f26dc48171205d3923b3/string/aarch64/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:4", "text": "addp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64)\n\nEND_FILE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "232e3c08c9eb9aba822510bae57f920351b1eb40", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/232e3c08c9eb9aba822510bae57f920351b1eb40/string/aarch64/strrchr.S", "line_start": 121, "line_end": 149}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:2", "text": "#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tmov\tsrc_offset, #0\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(aligned)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\t// 128->64\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr1.16b\t// 128->64\n\tmov\tnul_match, vhas_nul1.d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr1.d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "0aed5ab8a8d7fef22c7a7c8dc0f95c72bfa2be47", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0aed5ab8a8d7fef22c7a7c8dc0f95c72bfa2be47/string/aarch64/strrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:3", "text": "and\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\t// 128->64\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr1.16b\t// 128->64\n\tmov\tnul_match, vhas_nul1.d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr1.d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\taddp\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t// 128->64\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr1.16b\t// 128->64\n\tmov\tnul_match, vend1.d[0]\n\tmov\tchr_match, vhas_chr1.d[0]\n\tcbz\tnul_match, L(loop)\n\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "0aed5ab8a8d7fef22c7a7c8dc0f95c72bfa2be47", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/0aed5ab8a8d7fef22c7a7c8dc0f95c72bfa2be47/string/aarch64/strrchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:2", "text": "#define vrepmask_c\tv16\n#define vend1\t\tv17\n#define vend2\t\tv18\n\n/* Core algorithm.\n\n   For each 32-byte hunk we calculate a 64-bit syndrome value, with\n   two bits per byte (LSB is always in bits 0 and 1, for both big\n   and little-endian systems).  For each tuple, bit 0 is set iff\n   the relevant byte matched the requested character; bit 1 is set\n   iff the relevant byte matched the NUL end of string (we trigger\n   off bit0 for the special case of looking for NUL).  Since the bits\n   in the syndrome reflect exactly the order in which things occur\n   in the original string a count_trailing_zeros() operation will\n   identify exactly which byte is causing the termination, and why.  */\n\nENTRY (__strrchr_aarch64)\n\t/* Magic constant 0x40100401 to allow us to identify which lane\n\t   matches the requested byte.  Magic constant 0x80200802 used\n\t   similarly for NUL termination.  */\n\tmov\twtmp2, #0x0401\n\tmovk\twtmp2, #0x4010, lsl #16\n\tdup\tvrepchr.16b, chrin\n\tbic\tsrc, srcin, #31\t\t/* Work with aligned 32-byte hunks.  */\n\tdup\tvrepmask_c.4s, wtmp2\n\tmov\tsrc_offset, #0\n\tands\ttmp1, srcin, #31\n\tadd\tvrepmask_0.4s, vrepmask_c.4s, vrepmask_c.4s /* equiv: lsl #1 */\n\tb.eq\tL(aligned)\n\n\t/* Input string is not 32-byte aligned.  Rather than forcing\n\t   the padding bytes to a safe value, we calculate the syndrome\n\t   for all the bytes, but then mask off those bits of the\n\t   syndrome that are related to the padding.  */\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tneg\ttmp1, tmp1\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\t// 128->64\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr1.16b\t// 128->64\n\tmov\tnul_match, vhas_nul1.2d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr1.2d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "bbd64ec1e971c58e4917359cf9920da11bb31d6a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bbd64ec1e971c58e4917359cf9920da11bb31d6a/string/aarch64/strrchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:3", "text": "and\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\t// 128->64\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr1.16b\t// 128->64\n\tmov\tnul_match, vhas_nul1.2d[0]\n\tlsl\ttmp1, tmp1, #1\n\tmov\tconst_m1, #~0\n\tmov\tchr_match, vhas_chr1.2d[0]\n\tlsr\ttmp3, const_m1, tmp1\n\n\tbic\tnul_match, nul_match, tmp3\t// Mask padding bits.\n\tbic\tchr_match, chr_match, tmp3\t// Mask padding bits.\n\tcbnz\tnul_match, L(tail)\n\nL(loop):\n\tcmp\tchr_match, #0\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\nL(aligned):\n\tld1\t{vdata1.16b, vdata2.16b}, [src], #32\n\tcmeq\tvhas_nul1.16b, vdata1.16b, #0\n\tcmeq\tvhas_chr1.16b, vdata1.16b, vrepchr.16b\n\tcmeq\tvhas_nul2.16b, vdata2.16b, #0\n\tcmeq\tvhas_chr2.16b, vdata2.16b, vrepchr.16b\n\taddp\tvend1.16b, vhas_nul1.16b, vhas_nul2.16b\t// 256->128\n\tand\tvhas_chr1.16b, vhas_chr1.16b, vrepmask_c.16b\n\tand\tvhas_chr2.16b, vhas_chr2.16b, vrepmask_c.16b\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr2.16b\t// 256->128\n\taddp\tvend1.16b, vend1.16b, vend1.16b\t// 128->64\n\taddp\tvhas_chr1.16b, vhas_chr1.16b, vhas_chr1.16b\t// 128->64\n\tmov\tnul_match, vend1.2d[0]\n\tmov\tchr_match, vhas_chr1.2d[0]\n\tcbz\tnul_match, L(loop)\n\n\tand\tvhas_nul1.16b, vhas_nul1.16b, vrepmask_0.16b\n\tand\tvhas_nul2.16b, vhas_nul2.16b, vrepmask_0.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.2d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "bbd64ec1e971c58e4917359cf9920da11bb31d6a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bbd64ec1e971c58e4917359cf9920da11bb31d6a/string/aarch64/strrchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/aarch64/strrchr.S:4", "text": "addp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul2.16b\n\taddp\tvhas_nul1.16b, vhas_nul1.16b, vhas_nul1.16b\n\tmov\tnul_match, vhas_nul1.2d[0]\n\nL(tail):\n\t/* Work out exactly where the string ends.  */\n\tsub\ttmp4, nul_match, #1\n\teor\ttmp4, tmp4, nul_match\n\tands\tchr_match, chr_match, tmp4\n\t/* And pick the values corresponding to the last match.  */\n\tcsel\tsrc_match, src, src_match, ne\n\tcsel\tsrc_offset, chr_match, src_offset, ne\n\n\t/* Count down from the top of the syndrome to find the last match.  */\n\tclz\ttmp3, src_offset\n\t/* Src_match points beyond the word containing the match, so we can\n\t   simply subtract half the bit-offset into the syndrome.  Because\n\t   we are counting down, we need to go back one more character.  */\n\tadd\ttmp3, tmp3, #2\n\tsub\tresult, src_match, tmp3, lsr #1\n\t/* But if the syndrome shows no match was found, then return NULL.  */\n\tcmp\tsrc_offset, #0\n\tcsel\tresult, result, xzr, ne\n\n\tret\n\nEND (__strrchr_aarch64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/aarch64/strrchr.S", "license": "MIT", "commit": "bbd64ec1e971c58e4917359cf9920da11bb31d6a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bbd64ec1e971c58e4917359cf9920da11bb31d6a/string/aarch64/strrchr.S", "line_start": 121, "line_end": 147}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'M'\n    /* keep config inherited from -march= */\n#else\n\t.arch armv7-a\n#endif\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n#include \"asmdefs.h\"\n\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tprologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tprologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_rel_offset 4, 0\n\t.cfi_rel_offset 5, 4\n\t.cfi_rel_offset 6, 8\n\t.cfi_rel_offset 7, 12\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": "orr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\t.cfi_remember_state\n\tmovs\tr0,#0\t\t@ not found\n\tepilogue\n\n50:\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tsubs\tr0,r0,#1\t@ found\n\tepilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\t.cfi_restore_state\t@ Standard post-prologue state\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_rel_offset\t4, 0\n\t.cfi_rel_offset 5, 4\n\t.cfi_rel_offset 6, 8\n\t.cfi_rel_offset 7, 12\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "epilogue\n\n50:\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tsubs\tr0,r0,#1\t@ found\n\tepilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\t.cfi_restore_state\t@ Standard post-prologue state\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_rel_offset\t4, 0\n\t.cfi_rel_offset 5, 4\n\t.cfi_rel_offset 6, 8\n\t.cfi_rel_offset 7, 12\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tsubs\tr0,r0,#1\n\tepilogue\n\t.cfi_endproc\n\t.cantunwind\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memchr.S", "line_start": 121, "line_end": 168}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'M'\n    /* keep config inherited from -march= */\n#else\n\t.arch armv7-a\n#endif\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n#include \"asmdefs.h\"\n\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tprologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "7d205b8787a4462d6e605ee826edf2666f899a34", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7d205b8787a4462d6e605ee826edf2666f899a34/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": "orr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\t.cfi_remember_state\n\tmovs\tr0,#0\t\t@ not found\n\tepilogue\n\n50:\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tsubs\tr0,r0,#1\t@ found\n\tepilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\t.cfi_restore_state\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "epilogue\n\n50:\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tsubs\tr0,r0,#1\t@ found\n\tepilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\t.cfi_restore_state\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tsubs\tr0,r0,#1\n\tepilogue\n\t.cfi_endproc\n\t.cantunwind\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/memchr.S", "line_start": 121, "line_end": 163}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'M'\n    /* keep config inherited from -march= */\n#else\n\t.arch armv7-a\n#endif\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n#include \"../asmdefs.h\"\n\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tprologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "7780a64c543c43360f603ce81173ac530389fac6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7780a64c543c43360f603ce81173ac530389fac6/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'M'\n    /* keep config inherited from -march= */\n#else\n\t.arch armv7-a\n#endif\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n#include \"../pacbti.h\"\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tprologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tprologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_offset 4, -(16+PAC_CFI_ADJ)\n\t.cfi_offset 5, -(12+PAC_CFI_ADJ)\n\t.cfi_offset 6, -(8+PAC_CFI_ADJ)\n\t.cfi_offset 7, -(4+PAC_CFI_ADJ)\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": "orr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tepilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tepilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "50:\n\tsubs\tr0,r0,#1\t@ found\n\tepilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tsubs\tr0,r0,#1\n\tepilogue 4 7\n\t.cfi_endproc\n\t.cantunwind\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/memchr.S", "line_start": 121, "line_end": 153}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'M'\n    /* keep config inherited from -march= */\n#else\n\t.arch armv7-a\n#endif\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n#include \"../pacbti.h\"\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tpacbti_prologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tpacbti_prologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\t.cfi_adjust_cfa_offset 16\n#if HAVE_PAC_LEAF\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /*  HAVE_PAC_LEAF */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": ".cfi_offset 7, -8\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /*  HAVE_PAC_LEAF */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "eor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tsubs\tr0,r0,#1\n#if HAVE_PAC_LEAF\n\tpop\t{r4,r5,r6,r7,ip}\n\t.cfi_restore 143\n#else\n\tpop\t{r4,r5,r6,r7}\n#endif /* HAVE_PAC_LEAF */\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_def_cfa_offset 0\n#if HAVE_PAC_LEAF\n\taut ip, lr, sp\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\t.cfi_endproc\n\t.cantunwind\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/memchr.S", "line_start": 121, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:5", "text": ".cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_def_cfa_offset 0\n#if HAVE_PAC_LEAF\n\taut ip, lr, sp\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\t.cfi_endproc\n\t.cantunwind\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/memchr.S", "line_start": 161, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tpacbti_prologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\t.save   {r4-r7}\n\t.cfi_adjust_cfa_offset 16\n#if HAVE_PAC_LEAF\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /*  HAVE_PAC_LEAF */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": ".cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /*  HAVE_PAC_LEAF */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "subs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tsubs\tr0,r0,#1\n#if HAVE_PAC_LEAF\n\tpop\t{r4,r5,r6,r7,ip}\n\t.cfi_restore 143\n#else\n\tpop\t{r4,r5,r6,r7}\n#endif /* HAVE_PAC_LEAF */\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_def_cfa_offset 0\n#if HAVE_PAC_LEAF\n\taut ip, lr, sp\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\t.cfi_endproc\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e/string/arm/memchr.S", "line_start": 121, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:5", "text": "#endif /* HAVE_PAC_LEAF */\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_def_cfa_offset 0\n#if HAVE_PAC_LEAF\n\taut ip, lr, sp\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\t.cfi_endproc\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e/string/arm/memchr.S", "line_start": 161, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n#if __ARM_ARCH_8M_MAIN__\n    /* keep config inherited from -march= */\n#else\n\t.arch armv7-a\n#endif\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n#include \"../pacbti.h\"\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tpacbti_prologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tpacbti_prologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\t.save   {r4-r7}\n\t.cfi_adjust_cfa_offset 16\n#ifdef __ARM_FEATURE_PAC_DEFAULT\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /*  __ARM_FEATURE_PAC_DEFAULT */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "9776149753ec2d217ecd52c1786ac73548fed8d8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9776149753ec2d217ecd52c1786ac73548fed8d8/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": ".cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /*  __ARM_FEATURE_PAC_DEFAULT */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "9776149753ec2d217ecd52c1786ac73548fed8d8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9776149753ec2d217ecd52c1786ac73548fed8d8/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "subs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tsubs\tr0,r0,#1\n#if __ARM_FEATURE_PAC_DEFAULT\n\tpop\t{r4,r5,r6,r7,ip}\n\t.cfi_restore 143\n#else\n\tpop\t{r4,r5,r6,r7}\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_def_cfa_offset 0\n#if __ARM_FEATURE_PAC_DEFAULT\n\taut ip, lr, sp\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tbx lr\n\t.cfi_endproc\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "9776149753ec2d217ecd52c1786ac73548fed8d8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9776149753ec2d217ecd52c1786ac73548fed8d8/string/arm/memchr.S", "line_start": 121, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:5", "text": "#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_def_cfa_offset 0\n#if __ARM_FEATURE_PAC_DEFAULT\n\taut ip, lr, sp\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tbx lr\n\t.cfi_endproc\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "9776149753ec2d217ecd52c1786ac73548fed8d8", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/9776149753ec2d217ecd52c1786ac73548fed8d8/string/arm/memchr.S", "line_start": 161, "line_end": 174}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n\t.fnstart\n\t.cfi_startproc\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tpacbti_prologue\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\t.save   {r4-r7}\n\t.cfi_adjust_cfa_offset 16\n#ifdef __ARM_FEATURE_PAC_DEFAULT\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -12\n\t.cfi_offset 6, -16\n\t.cfi_offset 7, -20\n#else\n\t.cfi_offset 4, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -16\n#endif /*  __ARM_FEATURE_PAC_DEFAULT */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "8bf2238fc0571d673b593c1ec2f72f4179a8ec79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8bf2238fc0571d673b593c1ec2f72f4179a8ec79/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": ".cfi_offset 6, -16\n\t.cfi_offset 7, -20\n#else\n\t.cfi_offset 4, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -16\n#endif /*  __ARM_FEATURE_PAC_DEFAULT */\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "8bf2238fc0571d673b593c1ec2f72f4179a8ec79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8bf2238fc0571d673b593c1ec2f72f4179a8ec79/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "subs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tpacbti_epilogue\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tpacbti_epilogue\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\t.cfi_restore 7\n\t.cfi_restore 6\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tsubs\tr0,r0,#1\n\tpacbti_epilogue\n\t.cfi_endproc\n\t.fnend\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "8bf2238fc0571d673b593c1ec2f72f4179a8ec79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8bf2238fc0571d673b593c1ec2f72f4179a8ec79/string/arm/memchr.S", "line_start": 121, "line_end": 166}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": ".type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": "sel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tbx\tlr\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tbx\tlr\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\tsubs\tr0,r0,#1\n\tbx\tlr\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/memchr.S", "line_start": 81, "line_end": 132}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "ittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\tsubs\tr0,r0,#1\n\tbx\tlr\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/memchr.S", "line_start": 121, "line_end": 132}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/*\n * memchr - scan memory for a character\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.text\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "bb3c10910646d90c66e014ccce6cd30f2900ba79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bb3c10910646d90c66e014ccce6cd30f2900ba79/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": ".global __memchr_arm\n\t.type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "bb3c10910646d90c66e014ccce6cd30f2900ba79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bb3c10910646d90c66e014ccce6cd30f2900ba79/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": "uadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tbx\tlr\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tbx\tlr\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\tsubs\tr0,r0,#1\n\tbx\tlr\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "bb3c10910646d90c66e014ccce6cd30f2900ba79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bb3c10910646d90c66e014ccce6cd30f2900ba79/string/arm/memchr.S", "line_start": 81, "line_end": 133}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "tst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\tsubs\tr0,r0,#1\n\tbx\tlr\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "bb3c10910646d90c66e014ccce6cd30f2900ba79", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/bb3c10910646d90c66e014ccce6cd30f2900ba79/string/arm/memchr.S", "line_start": 121, "line_end": 133}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:1", "text": "/* Copyright (c) 2010-2011, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions\n   are met:\n\n      * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n\n      * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n\n      * Neither the name of Linaro Limited nor the names of its\n      contributors may be used to endorse or promote products derived\n      from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This __memchr_arm routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.   It has a fast past for short sizes, and has\n   an optimised path for large data sets; the worst case is finding the\n   match early in a large data set.\n\n */\n\n@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.text\n\t.thumb", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "f658ccad26aeff6e1f1f7d3064052b4d328f9852", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f658ccad26aeff6e1f1f7d3064052b4d328f9852/string/arm/memchr.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:2", "text": "@ 2011-02-07 david.gilbert@linaro.org\n@    Extracted from local git a5b438d861\n@ 2011-07-14 david.gilbert@linaro.org\n@    Import endianness fix from local git ea786f1b\n@ 2011-12-07 david.gilbert@linaro.org\n@    Removed unneeded cbz from align loop\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.text\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memchr_arm\n\t.type __memchr_arm,%function\n__memchr_arm:\n\t@ r0 = start of memory to scan\n\t@ r1 = character to look for\n\t@ r2 = length\n\t@ returns r0 = pointer to character or NULL if not found\n\tand\tr1,r1,#0xff\t@ Don't think we can trust the caller to actually pass a char\n\n\tcmp\tr2,#16\t\t@ If it's short don't bother with anything clever\n\tblt\t20f\n\n\ttst\tr0, #7\t\t@ If it's already aligned skip the next bit\n\tbeq\t10f\n\n\t@ Work up to an aligned point\n5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "f658ccad26aeff6e1f1f7d3064052b4d328f9852", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f658ccad26aeff6e1f1f7d3064052b4d328f9852/string/arm/memchr.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:3", "text": "5:\n\tldrb\tr3, [r0],#1\n\tsubs\tr2, r2, #1\n\tcmp\tr3, r1\n\tbeq\t50f\t\t@ If it matches exit found\n\ttst\tr0, #7\n\tbne\t5b\t\t@ If not aligned yet then do next byte\n\n10:\n\t@ At this point, we are aligned, we know we have at least 8 bytes to work with\n\tpush\t{r4,r5,r6,r7}\n\torr\tr1, r1, r1, lsl #8\t@ expand the match word across to all bytes\n\torr\tr1, r1, r1, lsl #16\n\tbic\tr4, r2, #7\t@ Number of double words to work with\n\tmvns\tr7, #0\t\t@ all F's\n\tmovs\tr3, #0\n\n15:\n\tldmia\tr0!,{r5,r6}\n\tsubs\tr4, r4, #8\n\teor\tr5,r5, r1\t@ Get it so that r5,r6 have 00's where the bytes match the target\n\teor\tr6,r6, r1\n\tuadd8\tr5, r5, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr5, r3, r7\t@ bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tuadd8\tr6, r6, r7\t@ Parallel add 0xff - sets the GE bits for anything that wasn't 0\n\tsel\tr6, r5, r7\t@ chained....bytes are 00 for none-00 bytes, or ff for 00 bytes - NOTE INVERSION\n\tcbnz\tr6, 60f\n\tbne\t15b\t\t@ (Flags from the subs above) If not run out of bytes then go around again\n\n\tpop\t{r4,r5,r6,r7}\n\tand\tr1,r1,#0xff\t@ Get r1 back to a single character from the expansion above\n\tand\tr2,r2,#7\t@ Leave the count remaining as the number after the double words have been done\n\n20:\n\tcbz\tr2, 40f\t\t@ 0 length or hit the end already then not found\n\n21:  @ Post aligned section, or just a short call\n\tldrb\tr3,[r0],#1\n\tsubs\tr2,r2,#1\n\teor\tr3,r3,r1\t@ r3 = 0 if match - doesn't break flags from sub\n\tcbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tbx\tlr\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tbx\tlr\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "f658ccad26aeff6e1f1f7d3064052b4d328f9852", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f658ccad26aeff6e1f1f7d3064052b4d328f9852/string/arm/memchr.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memchr.S:4", "text": "cbz\tr3, 50f\n\tbne\t21b\t\t@ on r2 flags\n\n40:\n\tmovs\tr0,#0\t\t@ not found\n\tbx\tlr\n\n50:\n\tsubs\tr0,r0,#1\t@ found\n\tbx\tlr\n\n60:  @ We're here because the fast path found a hit - now we have to track down exactly which word it was\n\t@ r0 points to the start of the double word after the one that was tested\n\t@ r5 has the 00/ff pattern for the first word, r6 has the chained value\n\tcmp\tr5, #0\n\titte\teq\n\tmoveq\tr5, r6\t\t@ the end is in the 2nd word\n\tsubeq\tr0,r0,#3\t@ Points to 2nd byte of 2nd word\n\tsubne\tr0,r0,#7\t@ or 2nd byte of 1st word\n\n\t@ r0 currently points to the 3rd byte of the word containing the hit\n\ttst\tr5, # CHARTSTMASK(0)\t@ 1st character\n\tbne\t61f\n\tadds\tr0,r0,#1\n\ttst\tr5, # CHARTSTMASK(1)\t@ 2nd character\n\tittt\teq\n\taddeq\tr0,r0,#1\n\ttsteq\tr5, # (3<<15)\t\t@ 2nd & 3rd character\n\t@ If not the 3rd must be the last one\n\taddeq\tr0,r0,#1\n\n61:\n\tpop\t{r4,r5,r6,r7}\n\tsubs\tr0,r0,#1\n\tbx\tlr\n\n\t.size\t__memchr_arm, . - __memchr_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memchr.S", "license": "MIT", "commit": "f658ccad26aeff6e1f1f7d3064052b4d328f9852", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f658ccad26aeff6e1f1f7d3064052b4d328f9852/string/arm/memchr.S", "line_start": 121, "line_end": 157}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2013-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n#include \"asmdefs.h\"\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32\n# define USE_VFP\n\n#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:2", "text": "#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2\n\n/* Locals.  */\n#define tmp1\tr3\n#define dst\tip\n#define tmp2\tr10\n\n#ifndef USE_NEON\n/* For bulk copies using GP registers.  */\n#define\tA_l\tr2\t\t/* Call-clobbered.  */\n#define\tA_h\tr3\t\t/* Call-clobbered.  */\n#define\tB_l\tr4\n#define\tB_h\tr5\n#define\tC_l\tr6\n#define\tC_h\tr7\n#define\tD_l\tr8\n#define\tD_h\tr9\n#endif\n\n/* Number of lines ahead to pre-fetch data.  If you change this the code\n   below will need adjustment to compensate.  */\n\n#define prefetch_lines\t5\n\n#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:3", "text": "#define prefetch_lines\t5\n\n#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n\n\t.macro\tcpy_tail_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n#endif\n\nENTRY (__memcpy_arm)\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbhs\tL(cpy_not_short)\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\nL(tail63unaligned):\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:4", "text": "#endif\n\nENTRY (__memcpy_arm)\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbhs\tL(cpy_not_short)\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\nL(tail63unaligned):\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 8 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 6 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 4 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 2 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\n\ttst\tcount, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n#else\n\t/* Copy up to 15 full words of data.  May not be aligned.  */\n\t/* Cannot use VFP for unaligned data.  */\n\tand\ttmp1, count, #0x3c\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(60 - PC_OFFSET/2 + INSN_SIZE/2)\n\t/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:5", "text": "/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]\n\n\tldr\ttmp1, [src, #-32]\t/* 8 words to go.  */\n\tstr\ttmp1, [dst, #-32]\n\tldr\ttmp1, [src, #-28]\n\tstr\ttmp1, [dst, #-28]\n\n\tldr\ttmp1, [src, #-24]\t/* 6 words to go.  */\n\tstr\ttmp1, [dst, #-24]\n\tldr\ttmp1, [src, #-20]\n\tstr\ttmp1, [dst, #-20]\n\n\tldr\ttmp1, [src, #-16]\t/* 4 words to go.  */\n\tstr\ttmp1, [dst, #-16]\n\tldr\ttmp1, [src, #-12]\n\tstr\ttmp1, [dst, #-12]\n\n\tldr\ttmp1, [src, #-8]\t/* 2 words to go.  */\n\tstr\ttmp1, [dst, #-8]\n\tldr\ttmp1, [src, #-4]\n\tstr\ttmp1, [dst, #-4]\n#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\nL(cpy_not_short):\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\tL(cpy_notaligned)\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:6", "text": "#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\nL(cpy_not_short):\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\tL(cpy_notaligned)\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and\n\t   stores.  This is outside the critical loop.  */\n\tvmov.f32\ts0, s0\n#endif\n\n\t/* SRC and DST have the same mutual 64-bit alignment, but we may\n\t   still need to pre-copy some bytes to get to natural alignment.\n\t   We bring SRC and DST into full 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src], #1\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst], #1\n\n1:\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblo\tL(tail63aligned)\n\n\tcmp\ttmp2, #512\n\tbhs\tL(cpy_body_long)\n\nL(cpy_body_medium):\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:7", "text": "subs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblo\tL(tail63aligned)\n\n\tcmp\ttmp2, #512\n\tbhs\tL(cpy_body_long)\n\nL(cpy_body_medium):\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]\n\tvstr\td0, [dst, #32]\n\tvldr\td0, [src, #48]\n\tvstr\td1, [dst, #40]\n\tvldr\td1, [src, #56]\n\tvstr\td0, [dst, #48]\n\tadd\tsrc, src, #64\n\tvstr\td1, [dst, #56]\n\tadd\tdst, dst, #64\n\tbhs\t1b\n\ttst\ttmp2, #0x3f\n\tbeq\tL(done)\n\nL(tail63aligned):\t\t\t/* Count in tmp2.  */\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\n\tvldr\td0, [src, #-56]\t/* 14 words to go.  */\n\tvstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:8", "text": "vstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]\n\tstrd\tA_l, A_h, [dst, #16]\n\tldrd\tA_l, A_h, [src, #24]\n\tstrd\tA_l, A_h, [dst, #24]\n\tldrd\tA_l, A_h, [src, #32]\n\tstrd\tA_l, A_h, [dst, #32]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #48]\n\tstrd\tA_l, A_h, [dst, #48]\n\tldrd\tA_l, A_h, [src, #56]\n\tstrd\tA_l, A_h, [dst, #56]\n\tldrd\tA_l, A_h, [src, #64]!\n\tstrd\tA_l, A_h, [dst, #64]!\n\tsubs\ttmp2, tmp2, #64\n\tbhs\t1b\n\ttst\ttmp2, #0x3f\n\tbne\t1f\n\tldr\ttmp2,[sp], #FRAME_SIZE\n\tbx\tlr\n1:\n\tadd\tsrc, src, #8\n\tadd\tdst, dst, #8\n\nL(tail63aligned):\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:9", "text": "add\tsrc, src, #8\n\tadd\tdst, dst, #8\n\nL(tail63aligned):\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-40]\n\tldrd\tA_l, A_h, [src, #-32]\t/* 8 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-32]\n\tldrd\tA_l, A_h, [src, #-24]\t/* 6 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-24]\n\tldrd\tA_l, A_h, [src, #-16]\t/* 4 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-16]\n\tldrd\tA_l, A_h, [src, #-8]\t/* 2 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-8]\n\n#endif\n\ttst\ttmp2, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #31\t\t/* Count (tmp2) now dead. */\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src]\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst]\n\nL(done):\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\nL(cpy_body_long):\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:10", "text": "L(done):\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\nL(cpy_body_long):\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]\n\tvldr\td1, [src, #16]\n\tvldr\td2, [src, #24]\n\tadd\tsrc, src, #32\n\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64 * 2\n\tblo\t2f\n1:\n\tcpy_line_vfp\td3, 0\n\tcpy_line_vfp\td4, 64\n\tcpy_line_vfp\td5, 128\n\tadd\tdst, dst, #3 * 64\n\tadd\tsrc, src, #3 * 64\n\tcpy_line_vfp\td6, 0\n\tcpy_line_vfp\td7, 64\n\tadd\tdst, dst, #2 * 64\n\tadd\tsrc, src, #2 * 64\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64\n\tbhs\t1b\n\n2:\n\tcpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:11", "text": "cpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128\n\tadd\ttmp2, tmp2, #prefetch_lines * 64\n\tb\tL(cpy_body_medium)\n#else\n\t/* Long copy.  Use an SMS style loop to maximize the I/O\n\t   bandwidth of the core.  We don't have enough spare registers\n\t   to synthesise prefetching, so use PLD operations.  */\n\t/* Pre-bias src and dst.  */\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n\tpld\t[src, #8]\n\tpld\t[src, #72]\n\tsubs\ttmp2, tmp2, #64\n\tpld\t[src, #136]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tpld\t[src, #200]\n\tldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:12", "text": "ldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldrd\tD_l, D_h, [src, #32]\n\tbcs\t2b\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #40\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\ttst\ttmp2, #0x3f\n\tbne\tL(tail63aligned)\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n#endif\n\nL(cpy_notaligned):\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:13", "text": "L(cpy_notaligned):\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]\n\tsubs\tcount, count, #64\n\tldrlo\ttmp2, [sp], #FRAME_SIZE\n\tblo\tL(tail63unaligned)\n\tpld\t[src, #(4 * 64)]\n\n#ifdef USE_NEON\n\tvld1.8\t{d0-d3}, [src]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tblo\t2f\n1:\n\tpld\t[src, #(4 * 64)]\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d0-d3}, [src]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbhs\t1b\n2:\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:14", "text": "vst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #(5 * 64) - (32 - 4)]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldr\tA_l, [src, #36]\n\tldr\tA_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldr\tB_l, [src, #44]\n\tldr\tB_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldr\tC_l, [src, #52]\n\tldr\tC_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldr\tD_l, [src, #60]\n\tldr\tD_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]\n\tbcs\t2b\n\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:15", "text": "ldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]\n\tbcs\t2b\n\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\tands\tcount, tmp2, #0x3f\n#endif\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbne\tL(tail63unaligned)\n\tbx\tlr\n\nEND (__memcpy_arm)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memcpy.S", "line_start": 561, "line_end": 587}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2013-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n#include \"asmdefs.h\"\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32\n# define USE_VFP\n\n#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2013-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n#include \"../asmdefs.h\"\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32\n# define USE_VFP\n\n#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2013-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n#include \"../asmdefs.h\"\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32\n# define USE_VFP\n\n#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n#include \"../asmdefs.h\"\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32\n# define USE_VFP\n\n#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "77ac889d13cb412356bc7d67355fb37f0effa43b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/77ac889d13cb412356bc7d67355fb37f0effa43b/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:3", "text": "#define prefetch_lines\t5\n\n#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n\n\t.macro\tcpy_tail_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n#endif\n\nENTRY (__memcpy_arm)\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\tL(cpy_not_short)\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\nL(tail63unaligned):\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:4", "text": "#endif\n\nENTRY (__memcpy_arm)\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\tL(cpy_not_short)\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\nL(tail63unaligned):\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 8 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 6 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 4 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 2 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\n\ttst\tcount, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n#else\n\t/* Copy up to 15 full words of data.  May not be aligned.  */\n\t/* Cannot use VFP for unaligned data.  */\n\tand\ttmp1, count, #0x3c\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(60 - PC_OFFSET/2 + INSN_SIZE/2)\n\t/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:6", "text": "#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\nL(cpy_not_short):\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\tL(cpy_notaligned)\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and\n\t   stores.  This is outside the critical loop.  */\n\tvmov.f32\ts0, s0\n#endif\n\n\t/* SRC and DST have the same mutual 64-bit alignment, but we may\n\t   still need to pre-copy some bytes to get to natural alignment.\n\t   We bring SRC and DST into full 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src], #1\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst], #1\n\n1:\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\tL(tail63aligned)\n\n\tcmp\ttmp2, #512\n\tbge\tL(cpy_body_long)\n\nL(cpy_body_medium):\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:7", "text": "subs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\tL(tail63aligned)\n\n\tcmp\ttmp2, #512\n\tbge\tL(cpy_body_long)\n\nL(cpy_body_medium):\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]\n\tvstr\td0, [dst, #32]\n\tvldr\td0, [src, #48]\n\tvstr\td1, [dst, #40]\n\tvldr\td1, [src, #56]\n\tvstr\td0, [dst, #48]\n\tadd\tsrc, src, #64\n\tvstr\td1, [dst, #56]\n\tadd\tdst, dst, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbeq\tL(done)\n\nL(tail63aligned):\t\t\t/* Count in tmp2.  */\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\n\tvldr\td0, [src, #-56]\t/* 14 words to go.  */\n\tvstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:8", "text": "vstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]\n\tstrd\tA_l, A_h, [dst, #16]\n\tldrd\tA_l, A_h, [src, #24]\n\tstrd\tA_l, A_h, [dst, #24]\n\tldrd\tA_l, A_h, [src, #32]\n\tstrd\tA_l, A_h, [dst, #32]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #48]\n\tstrd\tA_l, A_h, [dst, #48]\n\tldrd\tA_l, A_h, [src, #56]\n\tstrd\tA_l, A_h, [dst, #56]\n\tldrd\tA_l, A_h, [src, #64]!\n\tstrd\tA_l, A_h, [dst, #64]!\n\tsubs\ttmp2, tmp2, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbne\t1f\n\tldr\ttmp2,[sp], #FRAME_SIZE\n\tbx\tlr\n1:\n\tadd\tsrc, src, #8\n\tadd\tdst, dst, #8\n\nL(tail63aligned):\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:10", "text": "L(done):\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\nL(cpy_body_long):\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]\n\tvldr\td1, [src, #16]\n\tvldr\td2, [src, #24]\n\tadd\tsrc, src, #32\n\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64 * 2\n\tblt\t2f\n1:\n\tcpy_line_vfp\td3, 0\n\tcpy_line_vfp\td4, 64\n\tcpy_line_vfp\td5, 128\n\tadd\tdst, dst, #3 * 64\n\tadd\tsrc, src, #3 * 64\n\tcpy_line_vfp\td6, 0\n\tcpy_line_vfp\td7, 64\n\tadd\tdst, dst, #2 * 64\n\tadd\tsrc, src, #2 * 64\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64\n\tbge\t1b\n\n2:\n\tcpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:13", "text": "L(cpy_notaligned):\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]\n\tsubs\tcount, count, #64\n\tldrmi\ttmp2, [sp], #FRAME_SIZE\n\tbmi\tL(tail63unaligned)\n\tpld\t[src, #(4 * 64)]\n\n#ifdef USE_NEON\n\tvld1.8\t{d0-d3}, [src]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbmi\t2f\n1:\n\tpld\t[src, #(4 * 64)]\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d0-d3}, [src]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbpl\t1b\n2:\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/memcpy.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:3", "text": "#define prefetch_lines\t5\n\n#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n\n\t.macro\tcpy_tail_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n#endif\n\nENTRY (__memcpy_arm)\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\t.Lcpy_not_short\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\n.Ltail63unaligned:\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:4", "text": "#endif\n\nENTRY (__memcpy_arm)\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\t.Lcpy_not_short\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\n.Ltail63unaligned:\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 8 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 6 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 4 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 2 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\n\ttst\tcount, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n#else\n\t/* Copy up to 15 full words of data.  May not be aligned.  */\n\t/* Cannot use VFP for unaligned data.  */\n\tand\ttmp1, count, #0x3c\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(60 - PC_OFFSET/2 + INSN_SIZE/2)\n\t/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:5", "text": "/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]\n\n\tldr\ttmp1, [src, #-32]\t/* 8 words to go.  */\n\tstr\ttmp1, [dst, #-32]\n\tldr\ttmp1, [src, #-28]\n\tstr\ttmp1, [dst, #-28]\n\n\tldr\ttmp1, [src, #-24]\t/* 6 words to go.  */\n\tstr\ttmp1, [dst, #-24]\n\tldr\ttmp1, [src, #-20]\n\tstr\ttmp1, [dst, #-20]\n\n\tldr\ttmp1, [src, #-16]\t/* 4 words to go.  */\n\tstr\ttmp1, [dst, #-16]\n\tldr\ttmp1, [src, #-12]\n\tstr\ttmp1, [dst, #-12]\n\n\tldr\ttmp1, [src, #-8]\t/* 2 words to go.  */\n\tstr\ttmp1, [dst, #-8]\n\tldr\ttmp1, [src, #-4]\n\tstr\ttmp1, [dst, #-4]\n#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\n.Lcpy_not_short:\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\t.Lcpy_notaligned\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:6", "text": "#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\n.Lcpy_not_short:\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\t.Lcpy_notaligned\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and\n\t   stores.  This is outside the critical loop.  */\n\tvmov.f32\ts0, s0\n#endif\n\n\t/* SRC and DST have the same mutual 64-bit alignment, but we may\n\t   still need to pre-copy some bytes to get to natural alignment.\n\t   We bring SRC and DST into full 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src], #1\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst], #1\n\n1:\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\t.Ltail63aligned\n\n\tcmp\ttmp2, #512\n\tbge\t.Lcpy_body_long\n\n.Lcpy_body_medium:\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:7", "text": "subs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\t.Ltail63aligned\n\n\tcmp\ttmp2, #512\n\tbge\t.Lcpy_body_long\n\n.Lcpy_body_medium:\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]\n\tvstr\td0, [dst, #32]\n\tvldr\td0, [src, #48]\n\tvstr\td1, [dst, #40]\n\tvldr\td1, [src, #56]\n\tvstr\td0, [dst, #48]\n\tadd\tsrc, src, #64\n\tvstr\td1, [dst, #56]\n\tadd\tdst, dst, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbeq\t.Ldone\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\n\tvldr\td0, [src, #-56]\t/* 14 words to go.  */\n\tvstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:8", "text": "vstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]\n\tstrd\tA_l, A_h, [dst, #16]\n\tldrd\tA_l, A_h, [src, #24]\n\tstrd\tA_l, A_h, [dst, #24]\n\tldrd\tA_l, A_h, [src, #32]\n\tstrd\tA_l, A_h, [dst, #32]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #48]\n\tstrd\tA_l, A_h, [dst, #48]\n\tldrd\tA_l, A_h, [src, #56]\n\tstrd\tA_l, A_h, [dst, #56]\n\tldrd\tA_l, A_h, [src, #64]!\n\tstrd\tA_l, A_h, [dst, #64]!\n\tsubs\ttmp2, tmp2, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbne\t1f\n\tldr\ttmp2,[sp], #FRAME_SIZE\n\tbx\tlr\n1:\n\tadd\tsrc, src, #8\n\tadd\tdst, dst, #8\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:9", "text": "add\tsrc, src, #8\n\tadd\tdst, dst, #8\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-40]\n\tldrd\tA_l, A_h, [src, #-32]\t/* 8 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-32]\n\tldrd\tA_l, A_h, [src, #-24]\t/* 6 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-24]\n\tldrd\tA_l, A_h, [src, #-16]\t/* 4 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-16]\n\tldrd\tA_l, A_h, [src, #-8]\t/* 2 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-8]\n\n#endif\n\ttst\ttmp2, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #31\t\t/* Count (tmp2) now dead. */\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src]\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst]\n\n.Ldone:\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\n.Lcpy_body_long:\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:10", "text": ".Ldone:\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\n.Lcpy_body_long:\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]\n\tvldr\td1, [src, #16]\n\tvldr\td2, [src, #24]\n\tadd\tsrc, src, #32\n\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64 * 2\n\tblt\t2f\n1:\n\tcpy_line_vfp\td3, 0\n\tcpy_line_vfp\td4, 64\n\tcpy_line_vfp\td5, 128\n\tadd\tdst, dst, #3 * 64\n\tadd\tsrc, src, #3 * 64\n\tcpy_line_vfp\td6, 0\n\tcpy_line_vfp\td7, 64\n\tadd\tdst, dst, #2 * 64\n\tadd\tsrc, src, #2 * 64\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64\n\tbge\t1b\n\n2:\n\tcpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:11", "text": "cpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128\n\tadd\ttmp2, tmp2, #prefetch_lines * 64\n\tb\t.Lcpy_body_medium\n#else\n\t/* Long copy.  Use an SMS style loop to maximize the I/O\n\t   bandwidth of the core.  We don't have enough spare registers\n\t   to synthesise prefetching, so use PLD operations.  */\n\t/* Pre-bias src and dst.  */\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n\tpld\t[src, #8]\n\tpld\t[src, #72]\n\tsubs\ttmp2, tmp2, #64\n\tpld\t[src, #136]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tpld\t[src, #200]\n\tldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:12", "text": "ldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldrd\tD_l, D_h, [src, #32]\n\tbcs\t2b\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #40\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\ttst\ttmp2, #0x3f\n\tbne\t.Ltail63aligned\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n#endif\n\n.Lcpy_notaligned:\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:13", "text": ".Lcpy_notaligned:\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]\n\tsubs\tcount, count, #64\n\tldrmi\ttmp2, [sp], #FRAME_SIZE\n\tbmi\t.Ltail63unaligned\n\tpld\t[src, #(4 * 64)]\n\n#ifdef USE_NEON\n\tvld1.8\t{d0-d3}, [src]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbmi\t2f\n1:\n\tpld\t[src, #(4 * 64)]\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d0-d3}, [src]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbpl\t1b\n2:\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:15", "text": "ldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]\n\tbcs\t2b\n\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\tands\tcount, tmp2, #0x3f\n#endif\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbne\t.Ltail63unaligned\n\tbx\tlr\n\nEND (__memcpy_arm)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/memcpy.S", "line_start": 561, "line_end": 587}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/*\n * memcpy - copy memory area\n *\n * Copyright (c) 2013, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32\n# define USE_VFP\n\n#else\n\t.arch\tarmv6\n# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2\n\n/* Locals.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:2", "text": "# define FRAME_SIZE    32\n\n#endif\n\n/* Old versions of GAS incorrectly implement the NEON align semantics.  */\n#ifdef BROKEN_ASM_NEON_ALIGN\n#define ALIGN(addr, align) addr,:align\n#else\n#define ALIGN(addr, align) addr:align\n#endif\n\n#define PC_OFFSET\t8\t/* PC pipeline compensation.  */\n#define INSN_SIZE\t4\n\n/* Call parameters.  */\n#define dstin\tr0\n#define src\tr1\n#define count\tr2\n\n/* Locals.  */\n#define tmp1\tr3\n#define dst\tip\n#define tmp2\tr10\n\n#ifndef USE_NEON\n/* For bulk copies using GP registers.  */\n#define\tA_l\tr2\t\t/* Call-clobbered.  */\n#define\tA_h\tr3\t\t/* Call-clobbered.  */\n#define\tB_l\tr4\n#define\tB_h\tr5\n#define\tC_l\tr6\n#define\tC_h\tr7\n#define\tD_l\tr8\n#define\tD_h\tr9\n#endif\n\n/* Number of lines ahead to pre-fetch data.  If you change this the code\n   below will need adjustment to compensate.  */\n\n#define prefetch_lines\t5\n\n#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:3", "text": "#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n\n\t.macro\tcpy_tail_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n#endif\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memcpy_arm p2align=6\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\t.Lcpy_not_short\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\n.Ltail63unaligned:\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:4", "text": ".macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memcpy_arm p2align=6\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\t.Lcpy_not_short\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\n.Ltail63unaligned:\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 8 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 6 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 4 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 2 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\n\ttst\tcount, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n#else\n\t/* Copy up to 15 full words of data.  May not be aligned.  */\n\t/* Cannot use VFP for unaligned data.  */\n\tand\ttmp1, count, #0x3c\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(60 - PC_OFFSET/2 + INSN_SIZE/2)\n\t/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:5", "text": "/* Copy up to 15 full words of data.  May not be aligned.  */\n\t/* Cannot use VFP for unaligned data.  */\n\tand\ttmp1, count, #0x3c\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(60 - PC_OFFSET/2 + INSN_SIZE/2)\n\t/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]\n\n\tldr\ttmp1, [src, #-32]\t/* 8 words to go.  */\n\tstr\ttmp1, [dst, #-32]\n\tldr\ttmp1, [src, #-28]\n\tstr\ttmp1, [dst, #-28]\n\n\tldr\ttmp1, [src, #-24]\t/* 6 words to go.  */\n\tstr\ttmp1, [dst, #-24]\n\tldr\ttmp1, [src, #-20]\n\tstr\ttmp1, [dst, #-20]\n\n\tldr\ttmp1, [src, #-16]\t/* 4 words to go.  */\n\tstr\ttmp1, [dst, #-16]\n\tldr\ttmp1, [src, #-12]\n\tstr\ttmp1, [dst, #-12]\n\n\tldr\ttmp1, [src, #-8]\t/* 2 words to go.  */\n\tstr\ttmp1, [dst, #-8]\n\tldr\ttmp1, [src, #-4]\n\tstr\ttmp1, [dst, #-4]\n#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\n.Lcpy_not_short:\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:6", "text": "str\ttmp1, [dst, #-12]\n\n\tldr\ttmp1, [src, #-8]\t/* 2 words to go.  */\n\tstr\ttmp1, [dst, #-8]\n\tldr\ttmp1, [src, #-4]\n\tstr\ttmp1, [dst, #-4]\n#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\n.Lcpy_not_short:\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\t.Lcpy_notaligned\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and\n\t   stores.  This is outside the critical loop.  */\n\tvmov.f32\ts0, s0\n#endif\n\n\t/* SRC and DST have the same mutual 64-bit alignment, but we may\n\t   still need to pre-copy some bytes to get to natural alignment.\n\t   We bring SRC and DST into full 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src], #1\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst], #1\n\n1:\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\t.Ltail63aligned\n\n\tcmp\ttmp2, #512\n\tbge\t.Lcpy_body_long\n\n.Lcpy_body_medium:\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:7", "text": "ldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src], #1\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst], #1\n\n1:\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\t.Ltail63aligned\n\n\tcmp\ttmp2, #512\n\tbge\t.Lcpy_body_long\n\n.Lcpy_body_medium:\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]\n\tvstr\td0, [dst, #32]\n\tvldr\td0, [src, #48]\n\tvstr\td1, [dst, #40]\n\tvldr\td1, [src, #56]\n\tvstr\td0, [dst, #48]\n\tadd\tsrc, src, #64\n\tvstr\td1, [dst, #56]\n\tadd\tdst, dst, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbeq\t.Ldone\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\n\tvldr\td0, [src, #-56]\t/* 14 words to go.  */\n\tvstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:8", "text": "add\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\n\tvldr\td0, [src, #-56]\t/* 14 words to go.  */\n\tvstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]\n\tstrd\tA_l, A_h, [dst, #16]\n\tldrd\tA_l, A_h, [src, #24]\n\tstrd\tA_l, A_h, [dst, #24]\n\tldrd\tA_l, A_h, [src, #32]\n\tstrd\tA_l, A_h, [dst, #32]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #48]\n\tstrd\tA_l, A_h, [dst, #48]\n\tldrd\tA_l, A_h, [src, #56]\n\tstrd\tA_l, A_h, [dst, #56]\n\tldrd\tA_l, A_h, [src, #64]!\n\tstrd\tA_l, A_h, [dst, #64]!\n\tsubs\ttmp2, tmp2, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbne\t1f\n\tldr\ttmp2,[sp], #FRAME_SIZE\n\tbx\tlr\n1:\n\tadd\tsrc, src, #8\n\tadd\tdst, dst, #8\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:9", "text": "bge\t1b\n\ttst\ttmp2, #0x3f\n\tbne\t1f\n\tldr\ttmp2,[sp], #FRAME_SIZE\n\tbx\tlr\n1:\n\tadd\tsrc, src, #8\n\tadd\tdst, dst, #8\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-40]\n\tldrd\tA_l, A_h, [src, #-32]\t/* 8 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-32]\n\tldrd\tA_l, A_h, [src, #-24]\t/* 6 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-24]\n\tldrd\tA_l, A_h, [src, #-16]\t/* 4 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-16]\n\tldrd\tA_l, A_h, [src, #-8]\t/* 2 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-8]\n\n#endif\n\ttst\ttmp2, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #31\t\t/* Count (tmp2) now dead. */\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src]\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst]\n\n.Ldone:\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\n.Lcpy_body_long:\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:10", "text": "lsls\ttmp2, tmp2, #31\t\t/* Count (tmp2) now dead. */\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src]\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst]\n\n.Ldone:\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\n.Lcpy_body_long:\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]\n\tvldr\td1, [src, #16]\n\tvldr\td2, [src, #24]\n\tadd\tsrc, src, #32\n\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64 * 2\n\tblt\t2f\n1:\n\tcpy_line_vfp\td3, 0\n\tcpy_line_vfp\td4, 64\n\tcpy_line_vfp\td5, 128\n\tadd\tdst, dst, #3 * 64\n\tadd\tsrc, src, #3 * 64\n\tcpy_line_vfp\td6, 0\n\tcpy_line_vfp\td7, 64\n\tadd\tdst, dst, #2 * 64\n\tadd\tsrc, src, #2 * 64\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64\n\tbge\t1b\n\n2:\n\tcpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:11", "text": "add\tdst, dst, #2 * 64\n\tadd\tsrc, src, #2 * 64\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64\n\tbge\t1b\n\n2:\n\tcpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128\n\tadd\ttmp2, tmp2, #prefetch_lines * 64\n\tb\t.Lcpy_body_medium\n#else\n\t/* Long copy.  Use an SMS style loop to maximize the I/O\n\t   bandwidth of the core.  We don't have enough spare registers\n\t   to synthesise prefetching, so use PLD operations.  */\n\t/* Pre-bias src and dst.  */\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n\tpld\t[src, #8]\n\tpld\t[src, #72]\n\tsubs\ttmp2, tmp2, #64\n\tpld\t[src, #136]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tpld\t[src, #200]\n\tldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:12", "text": "strd\tB_l, B_h, [sp, #8]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tpld\t[src, #200]\n\tldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldrd\tD_l, D_h, [src, #32]\n\tbcs\t2b\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #40\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\ttst\ttmp2, #0x3f\n\tbne\t.Ltail63aligned\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n#endif\n\n.Lcpy_notaligned:\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:13", "text": "tst\ttmp2, #0x3f\n\tbne\t.Ltail63aligned\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n#endif\n\n.Lcpy_notaligned:\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]\n\tsubs\tcount, count, #64\n\tldrmi\ttmp2, [sp], #FRAME_SIZE\n\tbmi\t.Ltail63unaligned\n\tpld\t[src, #(4 * 64)]\n\n#ifdef USE_NEON\n\tvld1.8\t{d0-d3}, [src]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbmi\t2f\n1:\n\tpld\t[src, #(4 * 64)]\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d0-d3}, [src]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbpl\t1b\n2:\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:14", "text": "vst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbpl\t1b\n2:\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #(5 * 64) - (32 - 4)]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldr\tA_l, [src, #36]\n\tldr\tA_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldr\tB_l, [src, #44]\n\tldr\tB_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldr\tC_l, [src, #52]\n\tldr\tC_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldr\tD_l, [src, #60]\n\tldr\tD_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]\n\tbcs\t2b\n\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:15", "text": "subs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]\n\tbcs\t2b\n\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\tands\tcount, tmp2, #0x3f\n#endif\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbne\t.Ltail63unaligned\n\tbx\tlr\n\n\t.size\t__memcpy_arm, . - __memcpy_arm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "202e95d0ab74ab093ed3b66afa7b10649f2d3093", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/202e95d0ab74ab093ed3b66afa7b10649f2d3093/string/arm/memcpy.S", "line_start": 561, "line_end": 593}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:1", "text": "/* Copyright (c) 2013, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions\n   are met:\n\n      * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n\n      * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n\n      * Neither the name of Linaro Limited nor the names of its\n      contributors may be used to endorse or promote products derived\n      from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/*\n   This memcpy routine is optimised for Cortex-A15 cores and takes advantage\n   of VFP or NEON when built with the appropriate flags.\n\n   Assumptions:\n\n    ARMv6 (ARMv7-a if using Neon)\n    ARM state\n    Unaligned accesses\n\n */\n\n\t.syntax unified\n\t/* This implementation requires ARM state.  */\n\t.arm\n\n#ifdef __ARM_NEON__\n\n\t.fpu\tneon\n\t.arch\tarmv7-a\n# define FRAME_SIZE\t4\n# define USE_VFP\n# define USE_NEON\n\n#elif !defined (__SOFTFP__)\n\n\t.arch\tarmv6\n\t.fpu\tvfpv2\n# define FRAME_SIZE\t32", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:3", "text": "#define src\tr1\n#define count\tr2\n\n/* Locals.  */\n#define tmp1\tr3\n#define dst\tip\n#define tmp2\tr10\n\n#ifndef USE_NEON\n/* For bulk copies using GP registers.  */\n#define\tA_l\tr2\t\t/* Call-clobbered.  */\n#define\tA_h\tr3\t\t/* Call-clobbered.  */\n#define\tB_l\tr4\n#define\tB_h\tr5\n#define\tC_l\tr6\n#define\tC_h\tr7\n#define\tD_l\tr8\n#define\tD_h\tr9\n#endif\n\n/* Number of lines ahead to pre-fetch data.  If you change this the code\n   below will need adjustment to compensate.  */\n\n#define prefetch_lines\t5\n\n#ifdef USE_VFP\n\t.macro\tcpy_line_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvldr\t\\vreg, [src, #\\base + prefetch_lines * 64 - 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n\n\t.macro\tcpy_tail_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:4", "text": "vldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n\n\t.macro\tcpy_tail_vfp vreg, base\n\tvstr\t\\vreg, [dst, #\\base]\n\tvldr\t\\vreg, [src, #\\base]\n\tvstr\td0, [dst, #\\base + 8]\n\tvldr\td0, [src, #\\base + 8]\n\tvstr\td1, [dst, #\\base + 16]\n\tvldr\td1, [src, #\\base + 16]\n\tvstr\td2, [dst, #\\base + 24]\n\tvldr\td2, [src, #\\base + 24]\n\tvstr\t\\vreg, [dst, #\\base + 32]\n\tvstr\td0, [dst, #\\base + 40]\n\tvldr\td0, [src, #\\base + 40]\n\tvstr\td1, [dst, #\\base + 48]\n\tvldr\td1, [src, #\\base + 48]\n\tvstr\td2, [dst, #\\base + 56]\n\tvldr\td2, [src, #\\base + 56]\n\t.endm\n#endif\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\ndef_fn __memcpy_arm p2align=6\n\n\tmov\tdst, dstin\t/* Preserve dstin, we need to return it.  */\n\tcmp\tcount, #64\n\tbge\t.Lcpy_not_short\n\t/* Deal with small copies quickly by dropping straight into the\n\t   exit block.  */\n\n.Ltail63unaligned:\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 8 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 6 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 4 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 2 words to go.  */\n\tvst1.8\t{d0}, [dst]!", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:5", "text": ".Ltail63unaligned:\n#ifdef USE_NEON\n\tand\ttmp1, count, #0x38\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tvld1.8\t{d0}, [src]!\t/* 14 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 12 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 10 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 8 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 6 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 4 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\tvld1.8\t{d0}, [src]!\t/* 2 words to go.  */\n\tvst1.8\t{d0}, [dst]!\n\n\ttst\tcount, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n#else\n\t/* Copy up to 15 full words of data.  May not be aligned.  */\n\t/* Cannot use VFP for unaligned data.  */\n\tand\ttmp1, count, #0x3c\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(60 - PC_OFFSET/2 + INSN_SIZE/2)\n\t/* Jump directly into the sequence below at the correct offset.  */\n\tadd\tpc, pc, tmp1, lsl #1\n\n\tldr\ttmp1, [src, #-60]\t/* 15 words to go.  */\n\tstr\ttmp1, [dst, #-60]\n\n\tldr\ttmp1, [src, #-56]\t/* 14 words to go.  */\n\tstr\ttmp1, [dst, #-56]\n\tldr\ttmp1, [src, #-52]\n\tstr\ttmp1, [dst, #-52]\n\n\tldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]\n\n\tldr\ttmp1, [src, #-32]\t/* 8 words to go.  */\n\tstr\ttmp1, [dst, #-32]\n\tldr\ttmp1, [src, #-28]\n\tstr\ttmp1, [dst, #-28]\n\n\tldr\ttmp1, [src, #-24]\t/* 6 words to go.  */\n\tstr\ttmp1, [dst, #-24]\n\tldr\ttmp1, [src, #-20]\n\tstr\ttmp1, [dst, #-20]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:6", "text": "ldr\ttmp1, [src, #-48]\t/* 12 words to go.  */\n\tstr\ttmp1, [dst, #-48]\n\tldr\ttmp1, [src, #-44]\n\tstr\ttmp1, [dst, #-44]\n\n\tldr\ttmp1, [src, #-40]\t/* 10 words to go.  */\n\tstr\ttmp1, [dst, #-40]\n\tldr\ttmp1, [src, #-36]\n\tstr\ttmp1, [dst, #-36]\n\n\tldr\ttmp1, [src, #-32]\t/* 8 words to go.  */\n\tstr\ttmp1, [dst, #-32]\n\tldr\ttmp1, [src, #-28]\n\tstr\ttmp1, [dst, #-28]\n\n\tldr\ttmp1, [src, #-24]\t/* 6 words to go.  */\n\tstr\ttmp1, [dst, #-24]\n\tldr\ttmp1, [src, #-20]\n\tstr\ttmp1, [dst, #-20]\n\n\tldr\ttmp1, [src, #-16]\t/* 4 words to go.  */\n\tstr\ttmp1, [dst, #-16]\n\tldr\ttmp1, [src, #-12]\n\tstr\ttmp1, [dst, #-12]\n\n\tldr\ttmp1, [src, #-8]\t/* 2 words to go.  */\n\tstr\ttmp1, [dst, #-8]\n\tldr\ttmp1, [src, #-4]\n\tstr\ttmp1, [dst, #-4]\n#endif\n\n\tlsls\tcount, count, #31\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\tsrc, [src]\t\t/* Src is dead, use as a scratch.  */\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\tsrc, [dst]\n\tbx\tlr\n\n.Lcpy_not_short:\n\t/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\t.Lcpy_notaligned\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and\n\t   stores.  This is outside the critical loop.  */\n\tvmov.f32\ts0, s0\n#endif\n\n\t/* SRC and DST have the same mutual 64-bit alignment, but we may\n\t   still need to pre-copy some bytes to get to natural alignment.\n\t   We bring SRC and DST into full 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:7", "text": "/* At least 64 bytes to copy, but don't know the alignment yet.  */\n\tstr\ttmp2, [sp, #-FRAME_SIZE]!\n\tand\ttmp2, src, #7\n\tand\ttmp1, dst, #7\n\tcmp\ttmp1, tmp2\n\tbne\t.Lcpy_notaligned\n\n#ifdef USE_VFP\n\t/* Magic dust alert!  Force VFP on Cortex-A9.  Experiments show\n\t   that the FP pipeline is much better at streaming loads and\n\t   stores.  This is outside the critical loop.  */\n\tvmov.f32\ts0, s0\n#endif\n\n\t/* SRC and DST have the same mutual 64-bit alignment, but we may\n\t   still need to pre-copy some bytes to get to natural alignment.\n\t   We bring SRC and DST into full 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src], #1\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst], #1\n\n1:\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tblt\t.Ltail63aligned\n\n\tcmp\ttmp2, #512\n\tbge\t.Lcpy_body_long\n\n.Lcpy_body_medium:\t\t\t/* Count in tmp2.  */\n#ifdef USE_VFP\n1:\n\tvldr\td0, [src, #0]\n\tsubs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]\n\tvstr\td0, [dst, #32]\n\tvldr\td0, [src, #48]\n\tvstr\td1, [dst, #40]\n\tvldr\td1, [src, #56]\n\tvstr\td0, [dst, #48]\n\tadd\tsrc, src, #64\n\tvstr\td1, [dst, #56]\n\tadd\tdst, dst, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:8", "text": "subs\ttmp2, tmp2, #64\n\tvldr\td1, [src, #8]\n\tvstr\td0, [dst, #0]\n\tvldr\td0, [src, #16]\n\tvstr\td1, [dst, #8]\n\tvldr\td1, [src, #24]\n\tvstr\td0, [dst, #16]\n\tvldr\td0, [src, #32]\n\tvstr\td1, [dst, #24]\n\tvldr\td1, [src, #40]\n\tvstr\td0, [dst, #32]\n\tvldr\td0, [src, #48]\n\tvstr\td1, [dst, #40]\n\tvldr\td1, [src, #56]\n\tvstr\td0, [dst, #48]\n\tadd\tsrc, src, #64\n\tvstr\td1, [dst, #56]\n\tadd\tdst, dst, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbeq\t.Ldone\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\n\tvldr\td0, [src, #-56]\t/* 14 words to go.  */\n\tvstr\td0, [dst, #-56]\n\tvldr\td0, [src, #-48]\t/* 12 words to go.  */\n\tvstr\td0, [dst, #-48]\n\tvldr\td0, [src, #-40]\t/* 10 words to go.  */\n\tvstr\td0, [dst, #-40]\n\tvldr\td0, [src, #-32]\t/* 8 words to go.  */\n\tvstr\td0, [dst, #-32]\n\tvldr\td0, [src, #-24]\t/* 6 words to go.  */\n\tvstr\td0, [dst, #-24]\n\tvldr\td0, [src, #-16]\t/* 4 words to go.  */\n\tvstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]\n\tstrd\tA_l, A_h, [dst, #16]\n\tldrd\tA_l, A_h, [src, #24]\n\tstrd\tA_l, A_h, [dst, #24]\n\tldrd\tA_l, A_h, [src, #32]\n\tstrd\tA_l, A_h, [dst, #32]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #48]\n\tstrd\tA_l, A_h, [dst, #48]\n\tldrd\tA_l, A_h, [src, #56]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:9", "text": "vstr\td0, [dst, #-16]\n\tvldr\td0, [src, #-8]\t/* 2 words to go.  */\n\tvstr\td0, [dst, #-8]\n#else\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n1:\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #16]\n\tstrd\tA_l, A_h, [dst, #16]\n\tldrd\tA_l, A_h, [src, #24]\n\tstrd\tA_l, A_h, [dst, #24]\n\tldrd\tA_l, A_h, [src, #32]\n\tstrd\tA_l, A_h, [dst, #32]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #48]\n\tstrd\tA_l, A_h, [dst, #48]\n\tldrd\tA_l, A_h, [src, #56]\n\tstrd\tA_l, A_h, [dst, #56]\n\tldrd\tA_l, A_h, [src, #64]!\n\tstrd\tA_l, A_h, [dst, #64]!\n\tsubs\ttmp2, tmp2, #64\n\tbge\t1b\n\ttst\ttmp2, #0x3f\n\tbne\t1f\n\tldr\ttmp2,[sp], #FRAME_SIZE\n\tbx\tlr\n1:\n\tadd\tsrc, src, #8\n\tadd\tdst, dst, #8\n\n.Ltail63aligned:\t\t\t/* Count in tmp2.  */\n\t/* Copy up to 7 d-words of data.  Similar to Ltail63unaligned, but\n\t   we know that the src and dest are 64-bit aligned so we can use\n\t   LDRD/STRD to improve efficiency.  */\n\t/* TMP2 is now negative, but we don't care about that.  The bottom\n\t   six bits still tell us how many bytes are left to copy.  */\n\n\tand\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-40]\n\tldrd\tA_l, A_h, [src, #-32]\t/* 8 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-32]\n\tldrd\tA_l, A_h, [src, #-24]\t/* 6 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-24]\n\tldrd\tA_l, A_h, [src, #-16]\t/* 4 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-16]\n\tldrd\tA_l, A_h, [src, #-8]\t/* 2 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-8]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:10", "text": "and\ttmp1, tmp2, #0x38\n\tadd\tdst, dst, tmp1\n\tadd\tsrc, src, tmp1\n\trsb\ttmp1, tmp1, #(56 - PC_OFFSET + INSN_SIZE)\n\tadd\tpc, pc, tmp1\n\tldrd\tA_l, A_h, [src, #-56]\t/* 14 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-56]\n\tldrd\tA_l, A_h, [src, #-48]\t/* 12 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-48]\n\tldrd\tA_l, A_h, [src, #-40]\t/* 10 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-40]\n\tldrd\tA_l, A_h, [src, #-32]\t/* 8 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-32]\n\tldrd\tA_l, A_h, [src, #-24]\t/* 6 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-24]\n\tldrd\tA_l, A_h, [src, #-16]\t/* 4 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-16]\n\tldrd\tA_l, A_h, [src, #-8]\t/* 2 words to go.  */\n\tstrd\tA_l, A_h, [dst, #-8]\n\n#endif\n\ttst\ttmp2, #4\n\tldrne\ttmp1, [src], #4\n\tstrne\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #31\t\t/* Count (tmp2) now dead. */\n\tldrhcs\ttmp1, [src], #2\n\tldrbne\ttmp2, [src]\n\tstrhcs\ttmp1, [dst], #2\n\tstrbne\ttmp2, [dst]\n\n.Ldone:\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n\n.Lcpy_body_long:\t\t\t/* Count in tmp2.  */\n\n\t/* Long copy.  We know that there's at least (prefetch_lines * 64)\n\t   bytes to go.  */\n#ifdef USE_VFP\n\t/* Don't use PLD.  Instead, read some data in advance of the current\n\t   copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]\n\tvldr\td1, [src, #16]\n\tvldr\td2, [src, #24]\n\tadd\tsrc, src, #32\n\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64 * 2\n\tblt\t2f\n1:\n\tcpy_line_vfp\td3, 0\n\tcpy_line_vfp\td4, 64\n\tcpy_line_vfp\td5, 128", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:11", "text": "copy position into a register.  This should act like a PLD\n\t   operation but we won't have to repeat the transfer.  */\n\n\tvldr\td3, [src, #0]\n\tvldr\td4, [src, #64]\n\tvldr\td5, [src, #128]\n\tvldr\td6, [src, #192]\n\tvldr\td7, [src, #256]\n\n\tvldr\td0, [src, #8]\n\tvldr\td1, [src, #16]\n\tvldr\td2, [src, #24]\n\tadd\tsrc, src, #32\n\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64 * 2\n\tblt\t2f\n1:\n\tcpy_line_vfp\td3, 0\n\tcpy_line_vfp\td4, 64\n\tcpy_line_vfp\td5, 128\n\tadd\tdst, dst, #3 * 64\n\tadd\tsrc, src, #3 * 64\n\tcpy_line_vfp\td6, 0\n\tcpy_line_vfp\td7, 64\n\tadd\tdst, dst, #2 * 64\n\tadd\tsrc, src, #2 * 64\n\tsubs\ttmp2, tmp2, #prefetch_lines * 64\n\tbge\t1b\n\n2:\n\tcpy_tail_vfp\td3, 0\n\tcpy_tail_vfp\td4, 64\n\tcpy_tail_vfp\td5, 128\n\tadd\tsrc, src, #3 * 64\n\tadd\tdst, dst, #3 * 64\n\tcpy_tail_vfp\td6, 0\n\tvstr\td7, [dst, #64]\n\tvldr\td7, [src, #64]\n\tvstr\td0, [dst, #64 + 8]\n\tvldr\td0, [src, #64 + 8]\n\tvstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128\n\tadd\ttmp2, tmp2, #prefetch_lines * 64\n\tb\t.Lcpy_body_medium\n#else\n\t/* Long copy.  Use an SMS style loop to maximize the I/O\n\t   bandwidth of the core.  We don't have enough spare registers\n\t   to synthesise prefetching, so use PLD operations.  */\n\t/* Pre-bias src and dst.  */\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n\tpld\t[src, #8]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:12", "text": "vstr\td1, [dst, #64 + 16]\n\tvldr\td1, [src, #64 + 16]\n\tvstr\td2, [dst, #64 + 24]\n\tvldr\td2, [src, #64 + 24]\n\tvstr\td7, [dst, #64 + 32]\n\tadd\tsrc, src, #96\n\tvstr\td0, [dst, #64 + 40]\n\tvstr\td1, [dst, #64 + 48]\n\tvstr\td2, [dst, #64 + 56]\n\tadd\tdst, dst, #128\n\tadd\ttmp2, tmp2, #prefetch_lines * 64\n\tb\t.Lcpy_body_medium\n#else\n\t/* Long copy.  Use an SMS style loop to maximize the I/O\n\t   bandwidth of the core.  We don't have enough spare registers\n\t   to synthesise prefetching, so use PLD operations.  */\n\t/* Pre-bias src and dst.  */\n\tsub\tsrc, src, #8\n\tsub\tdst, dst, #8\n\tpld\t[src, #8]\n\tpld\t[src, #72]\n\tsubs\ttmp2, tmp2, #64\n\tpld\t[src, #136]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tpld\t[src, #200]\n\tldrd\tD_l, D_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #232]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldrd\tA_l, A_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldrd\tD_l, D_h, [src, #32]\n\tbcs\t2b\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #40\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:13", "text": "ldrd\tC_l, C_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldrd\tD_l, D_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldrd\tA_l, A_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldrd\tB_l, B_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldrd\tC_l, C_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldrd\tD_l, D_h, [src, #32]\n\tbcs\t2b\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #40\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\ttst\ttmp2, #0x3f\n\tbne\t.Ltail63aligned\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbx\tlr\n#endif\n\n.Lcpy_notaligned:\n\tpld\t[src]\n\tpld\t[src, #64]\n\t/* There's at least 64 bytes to copy, but there is no mutual\n\t   alignment.  */\n\t/* Bring DST to 64-bit alignment.  */\n\tlsls\ttmp2, dst, #29\n\tpld\t[src, #(2 * 64)]\n\tbeq\t1f\n\trsbs\ttmp2, tmp2, #0\n\tsub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]\n\tsubs\tcount, count, #64\n\tldrmi\ttmp2, [sp], #FRAME_SIZE\n\tbmi\t.Ltail63unaligned\n\tpld\t[src, #(4 * 64)]\n\n#ifdef USE_NEON\n\tvld1.8\t{d0-d3}, [src]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbmi\t2f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 481, "line_end": 540}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:14", "text": "sub\tcount, count, tmp2, lsr #29\n\tldrmi\ttmp1, [src], #4\n\tstrmi\ttmp1, [dst], #4\n\tlsls\ttmp2, tmp2, #2\n\tldrbne\ttmp1, [src], #1\n\tldrhcs\ttmp2, [src], #2\n\tstrbne\ttmp1, [dst], #1\n\tstrhcs\ttmp2, [dst], #2\n1:\n\tpld\t[src, #(3 * 64)]\n\tsubs\tcount, count, #64\n\tldrmi\ttmp2, [sp], #FRAME_SIZE\n\tbmi\t.Ltail63unaligned\n\tpld\t[src, #(4 * 64)]\n\n#ifdef USE_NEON\n\tvld1.8\t{d0-d3}, [src]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbmi\t2f\n1:\n\tpld\t[src, #(4 * 64)]\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d0-d3}, [src]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tvld1.8\t{d4-d7}, [src]!\n\tsubs\tcount, count, #64\n\tbpl\t1b\n2:\n\tvst1.8\t{d0-d3}, [ALIGN (dst, 64)]!\n\tvst1.8\t{d4-d7}, [ALIGN (dst, 64)]!\n\tands\tcount, count, #0x3f\n#else\n\t/* Use an SMS style loop to maximize the I/O bandwidth.  */\n\tsub\tsrc, src, #4\n\tsub\tdst, dst, #8\n\tsubs\ttmp2, count, #64\t/* Use tmp2 for count.  */\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [sp, #8]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #(5 * 64) - (32 - 4)]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldr\tA_l, [src, #36]\n\tldr\tA_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldr\tB_l, [src, #44]\n\tldr\tB_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldr\tC_l, [src, #52]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 521, "line_end": 580}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:15", "text": "ldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [sp, #16]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [sp, #24]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]!\n\tb\t1f\n\t.p2align\t6\n2:\n\tpld\t[src, #(5 * 64) - (32 - 4)]\n\tstrd\tA_l, A_h, [dst, #40]\n\tldr\tA_l, [src, #36]\n\tldr\tA_h, [src, #40]\n\tstrd\tB_l, B_h, [dst, #48]\n\tldr\tB_l, [src, #44]\n\tldr\tB_h, [src, #48]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldr\tC_l, [src, #52]\n\tldr\tC_h, [src, #56]\n\tstrd\tD_l, D_h, [dst, #64]!\n\tldr\tD_l, [src, #60]\n\tldr\tD_h, [src, #64]!\n\tsubs\ttmp2, tmp2, #64\n1:\n\tstrd\tA_l, A_h, [dst, #8]\n\tldr\tA_l, [src, #4]\n\tldr\tA_h, [src, #8]\n\tstrd\tB_l, B_h, [dst, #16]\n\tldr\tB_l, [src, #12]\n\tldr\tB_h, [src, #16]\n\tstrd\tC_l, C_h, [dst, #24]\n\tldr\tC_l, [src, #20]\n\tldr\tC_h, [src, #24]\n\tstrd\tD_l, D_h, [dst, #32]\n\tldr\tD_l, [src, #28]\n\tldr\tD_h, [src, #32]\n\tbcs\t2b\n\n\t/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\tands\tcount, tmp2, #0x3f\n#endif\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbne\t.Ltail63unaligned\n\tbx\tlr\n\n\t.size\t__memcpy_arm, . - __memcpy_arm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 561, "line_end": 617}
{"id": "ARM-software/optimized-routines:string/arm/memcpy.S:16", "text": "/* Save the remaining bytes and restore the callee-saved regs.  */\n\tstrd\tA_l, A_h, [dst, #40]\n\tadd\tsrc, src, #36\n\tstrd\tB_l, B_h, [dst, #48]\n\tldrd\tB_l, B_h, [sp, #8]\n\tstrd\tC_l, C_h, [dst, #56]\n\tldrd\tC_l, C_h, [sp, #16]\n\tstrd\tD_l, D_h, [dst, #64]\n\tldrd\tD_l, D_h, [sp, #24]\n\tadd\tdst, dst, #72\n\tands\tcount, tmp2, #0x3f\n#endif\n\tldr\ttmp2, [sp], #FRAME_SIZE\n\tbne\t.Ltail63unaligned\n\tbx\tlr\n\n\t.size\t__memcpy_arm, . - __memcpy_arm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/memcpy.S", "license": "MIT", "commit": "5184269318df7df1fb7c227d8d029ec0d70ce0b5", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5184269318df7df1fb7c227d8d029ec0d70ce0b5/string/arm/memcpy.S", "line_start": 601, "line_end": 617}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:1", "text": "/*\n * memset - fill memory with a constant\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This memset routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.\n\n */\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ 2011-08-30 david.gilbert@linaro.org\n@    Extracted from local git 2f11b436\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memset_arm\n\t.type __memset_arm,%function\n__memset_arm:\n\t@ r0 = address\n\t@ r1 = character\n\t@ r2 = count\n\t@ returns original address in r0\n\n\tmov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:2", "text": "mov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f\n\n3:\n\t@ POSIX says that ch is cast to an unsigned char.  A uxtb is one\n\t@ byte and takes two cycles, where an AND is four bytes but one\n\t@ cycle.\n\tand\tr1, #0xFF\n\torr\tr1, r1, r1, lsl#8\t@ Same character into all bytes\n\torr\tr1, r1, r1, lsl#16\n\tmov\tr5,r1\n\tmov\tr6,r1\n\tmov\tr7,r1\n\n4:\n\tsubs\tr4,r4,#16\n\tstmia\tr3!,{r1,r5,r6,r7}\n\tbne\t4b\n\tand\tr2,r2,#15\n\n\t@ At this point we're still aligned and we have upto align-1 bytes left to right\n\t@ we can avoid some of the byte-at-a time now by testing for some big chunks\n\ttst\tr2,#8\n\titt\tne\n\tsubne\tr2,r2,#8\n\tstmiane\tr3!,{r1,r5}\n\n5:\n\tpop\t{r4,r5,r6,r7}\n\tcbz\tr2, 10f\n\n\t@ Got to do any last < alignment bytes\n6:\n\tsubs\tr2,r2,#1\n\tstrb\tr1,[r3],#1\n\tbne\t6b\n\n10:\n\tbx\tlr\t\t@ goodbye\n\t.size\t__memset_arm, . - __memset_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memset.S", "line_start": 41, "line_end": 98}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:3", "text": "tst\tr2,#8\n\titt\tne\n\tsubne\tr2,r2,#8\n\tstmiane\tr3!,{r1,r5}\n\n5:\n\tpop\t{r4,r5,r6,r7}\n\tcbz\tr2, 10f\n\n\t@ Got to do any last < alignment bytes\n6:\n\tsubs\tr2,r2,#1\n\tstrb\tr1,[r3],#1\n\tbne\t6b\n\n10:\n\tbx\tlr\t\t@ goodbye\n\t.size\t__memset_arm, . - __memset_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/memset.S", "line_start": 81, "line_end": 98}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:1", "text": "/*\n * memset - fill memory with a constant\n *\n * Copyright (c) 2010-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This memset routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.\n\n */\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ 2011-08-30 david.gilbert@linaro.org\n@    Extracted from local git 2f11b436\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memset_arm\n\t.type __memset_arm,%function\n__memset_arm:\n\t@ r0 = address\n\t@ r1 = character\n\t@ r2 = count\n\t@ returns original address in r0\n\n\tmov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/arm/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:1", "text": "/*\n * memset - fill memory with a constant\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This memset routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.\n\n */\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ 2011-08-30 david.gilbert@linaro.org\n@    Extracted from local git 2f11b436\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memset_arm\n\t.type __memset_arm,%function\n__memset_arm:\n\t@ r0 = address\n\t@ r1 = character\n\t@ r2 = count\n\t@ returns original address in r0\n\n\tmov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/arm/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:1", "text": "/*\n * memset - fill memory with a constant\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This memset routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.\n\n */\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ 2011-08-30 david.gilbert@linaro.org\n@    Extracted from local git 2f11b436\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.text\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memset_arm\n\t.type __memset_arm,%function\n__memset_arm:\n\t@ r0 = address\n\t@ r1 = character\n\t@ r2 = count\n\t@ returns original address in r0\n\n\tmov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "35d2d7378ab410989226a4371310d27b3775b9c6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/35d2d7378ab410989226a4371310d27b3775b9c6/string/arm/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:2", "text": "@ returns original address in r0\n\n\tmov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f\n\n3:\n\t@ POSIX says that ch is cast to an unsigned char.  A uxtb is one\n\t@ byte and takes two cycles, where an AND is four bytes but one\n\t@ cycle.\n\tand\tr1, #0xFF\n\torr\tr1, r1, r1, lsl#8\t@ Same character into all bytes\n\torr\tr1, r1, r1, lsl#16\n\tmov\tr5,r1\n\tmov\tr6,r1\n\tmov\tr7,r1\n\n4:\n\tsubs\tr4,r4,#16\n\tstmia\tr3!,{r1,r5,r6,r7}\n\tbne\t4b\n\tand\tr2,r2,#15\n\n\t@ At this point we're still aligned and we have upto align-1 bytes left to right\n\t@ we can avoid some of the byte-at-a time now by testing for some big chunks\n\ttst\tr2,#8\n\titt\tne\n\tsubne\tr2,r2,#8\n\tstmiane\tr3!,{r1,r5}\n\n5:\n\tpop\t{r4,r5,r6,r7}\n\tcbz\tr2, 10f\n\n\t@ Got to do any last < alignment bytes\n6:\n\tsubs\tr2,r2,#1\n\tstrb\tr1,[r3],#1\n\tbne\t6b\n\n10:\n\tbx\tlr\t\t@ goodbye\n\t.size\t__memset_arm, . - __memset_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "35d2d7378ab410989226a4371310d27b3775b9c6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/35d2d7378ab410989226a4371310d27b3775b9c6/string/arm/memset.S", "line_start": 41, "line_end": 99}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:3", "text": "@ we can avoid some of the byte-at-a time now by testing for some big chunks\n\ttst\tr2,#8\n\titt\tne\n\tsubne\tr2,r2,#8\n\tstmiane\tr3!,{r1,r5}\n\n5:\n\tpop\t{r4,r5,r6,r7}\n\tcbz\tr2, 10f\n\n\t@ Got to do any last < alignment bytes\n6:\n\tsubs\tr2,r2,#1\n\tstrb\tr1,[r3],#1\n\tbne\t6b\n\n10:\n\tbx\tlr\t\t@ goodbye\n\t.size\t__memset_arm, . - __memset_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "35d2d7378ab410989226a4371310d27b3775b9c6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/35d2d7378ab410989226a4371310d27b3775b9c6/string/arm/memset.S", "line_start": 81, "line_end": 99}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:1", "text": "/* Copyright (c) 2010-2011, Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions\n   are met:\n\n      * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n\n      * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n\n      * Neither the name of Linaro Limited nor the names of its\n      contributors may be used to endorse or promote products derived\n      from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/*\n   Written by Dave Gilbert <david.gilbert@linaro.org>\n\n   This memset routine is optimised on a Cortex-A9 and should work on\n   all ARMv7 processors.\n\n */\n\n\t.syntax unified\n\t.arch armv7-a\n\n@ 2011-08-30 david.gilbert@linaro.org\n@    Extracted from local git 2f11b436\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.text\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memset_arm\n\t.type __memset_arm,%function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "aa93b2889d63fee1f3f0e50a196a40623052f6da", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/aa93b2889d63fee1f3f0e50a196a40623052f6da/string/arm/memset.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:2", "text": ".arch armv7-a\n\n@ 2011-08-30 david.gilbert@linaro.org\n@    Extracted from local git 2f11b436\n\n@ this lets us check a flag in a 00/ff byte easily in either endianness\n#ifdef __ARMEB__\n#define CHARTSTMASK(c) 1<<(31-(c*8))\n#else\n#define CHARTSTMASK(c) 1<<(c*8)\n#endif\n\t.text\n\t.thumb\n\n@ ---------------------------------------------------------------------------\n\t.thumb_func\n\t.align 2\n\t.p2align 4,,15\n\t.global __memset_arm\n\t.type __memset_arm,%function\n__memset_arm:\n\t@ r0 = address\n\t@ r1 = character\n\t@ r2 = count\n\t@ returns original address in r0\n\n\tmov\tr3, r0\t\t@ Leave r0 alone\n\tcbz\tr2, 10f\t\t@ Exit if 0 length\n\n\ttst\tr0, #7\n\tbeq\t2f\t\t@ Already aligned\n\n\t@ Ok, so we're misaligned here\n1:\n\tstrb\tr1, [r3], #1\n\tsubs\tr2,r2,#1\n\ttst\tr3, #7\n\tcbz\tr2, 10f\t\t@ Exit if we hit the end\n\tbne\t1b\t\t@ go round again if still misaligned\n\n2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f\n\n3:\n\t@ POSIX says that ch is cast to an unsigned char.  A uxtb is one\n\t@ byte and takes two cycles, where an AND is four bytes but one\n\t@ cycle.\n\tand\tr1, #0xFF\n\torr\tr1, r1, r1, lsl#8\t@ Same character into all bytes\n\torr\tr1, r1, r1, lsl#16\n\tmov\tr5,r1\n\tmov\tr6,r1\n\tmov\tr7,r1\n\n4:\n\tsubs\tr4,r4,#16\n\tstmia\tr3!,{r1,r5,r6,r7}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "aa93b2889d63fee1f3f0e50a196a40623052f6da", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/aa93b2889d63fee1f3f0e50a196a40623052f6da/string/arm/memset.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/memset.S:3", "text": "2:\n\t@ OK, so we're aligned\n\tpush\t{r4,r5,r6,r7}\n\tbics\tr4, r2, #15\t@ if less than 16 bytes then need to finish it off\n\tbeq\t5f\n\n3:\n\t@ POSIX says that ch is cast to an unsigned char.  A uxtb is one\n\t@ byte and takes two cycles, where an AND is four bytes but one\n\t@ cycle.\n\tand\tr1, #0xFF\n\torr\tr1, r1, r1, lsl#8\t@ Same character into all bytes\n\torr\tr1, r1, r1, lsl#16\n\tmov\tr5,r1\n\tmov\tr6,r1\n\tmov\tr7,r1\n\n4:\n\tsubs\tr4,r4,#16\n\tstmia\tr3!,{r1,r5,r6,r7}\n\tbne\t4b\n\tand\tr2,r2,#15\n\n\t@ At this point we're still aligned and we have upto align-1 bytes left to right\n\t@ we can avoid some of the byte-at-a time now by testing for some big chunks\n\ttst\tr2,#8\n\titt\tne\n\tsubne\tr2,r2,#8\n\tstmiane\tr3!,{r1,r5}\n\n5:\n\tpop\t{r4,r5,r6,r7}\n\tcbz\tr2, 10f\n\n\t@ Got to do any last < alignment bytes\n6:\n\tsubs\tr2,r2,#1\n\tstrb\tr1,[r3],#1\n\tbne\t6b\n\n10:\n\tbx\tlr\t\t@ goodbye\n\t.size\t__memset_arm, . - __memset_arm", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/memset.S", "license": "MIT", "commit": "aa93b2889d63fee1f3f0e50a196a40623052f6da", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/aa93b2889d63fee1f3f0e50a196a40623052f6da/string/arm/memset.S", "line_start": 81, "line_end": 123}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:2", "text": "1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24\n\tlsrs    r1, r3, #24\n\tsubs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp-armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:3", "text": "cmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3\n\tpop\t{r4, r5, r6, pc}\n\nEND (__strcmp_armv6m)\n\n#endif /* __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp-armv6m.S", "line_start": 81, "line_end": 119}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"asmdefs.h\"\n\n#if __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#include \"../asmdefs.h\"\n\n#if __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "ca02337e93b28f6a9442f479ee019d553996fbd1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ca02337e93b28f6a9442f479ee019d553996fbd1/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:2", "text": "ldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24\n\tlsrs    r1, r3, #24\n\tsubs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp-armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:3", "text": "rev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3\n\tpop\t{r4, r5, r6, pc}\n\nEND (__strcmp_armv6m)\n\n#endif /* __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp-armv6m.S", "line_start": 81, "line_end": 117}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_ARCH == 6 && __ARM_ARCH_6M__ >= 1\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\nENTRY_ALIGN (__strcmp_armv6m, 4)\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:2", "text": "bics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24\n\tlsrs    r1, r3, #24\n\tsubs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp-armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:3", "text": "cmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3\n\tpop\t{r4, r5, r6, pc}\n\nEND (__strcmp_armv6m)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp-armv6m.S", "line_start": 81, "line_end": 113}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6-M (optimized for performance, not size)\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\n\t.text\n\t.p2align\t0\n\t.global\t__strcmp_armv6m\n\t.type\t__strcmp_armv6m, %function\n__strcmp_armv6m:\n\t.cfi_startproc\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "8c2c78ae7be7104e5d06d6a7a00f64daff6eaac2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8c2c78ae7be7104e5d06d6a7a00f64daff6eaac2/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:2", "text": "lsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24\n\tlsrs    r1, r3, #24\n\tsubs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "8c2c78ae7be7104e5d06d6a7a00f64daff6eaac2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8c2c78ae7be7104e5d06d6a7a00f64daff6eaac2/string/arm/strcmp-armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:3", "text": "3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3\n\tpop\t{r4, r5, r6, pc}\n\t.cfi_endproc\n\t.size\t__strcmp_armv6m, . - __strcmp_armv6m", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "8c2c78ae7be7104e5d06d6a7a00f64daff6eaac2", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/8c2c78ae7be7104e5d06d6a7a00f64daff6eaac2/string/arm/strcmp-armv6m.S", "line_start": 81, "line_end": 118}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * strcmp for ARMv6m\n *\n * Copyright (c) 2014-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Implementation of __strcmp_armv6m for ARMv6m.  This version is only used in\n   ARMv6-M when we want an efficient implementation.  Otherwize if the\n   code size is preferred, __strcmp_armv6m-armv4t.S will be used.  */\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\n\t.text\n\t.p2align\t0\n\t.global\t__strcmp_armv6m\n\t.type\t__strcmp_armv6m, %function\n__strcmp_armv6m:\n\t.cfi_startproc\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:2", "text": "orrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24\n\tlsrs    r1, r3, #24\n\tsubs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp-armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:3", "text": "subs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3\n\tpop\t{r4, r5, r6, pc}\n\t.cfi_endproc\n\t.size\t__strcmp_armv6m, . - __strcmp_armv6m", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp-armv6m.S", "line_start": 81, "line_end": 122}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:1", "text": "/*\n * Copyright (c) 2014 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Implementation of __strcmp_armv6m for ARMv6m.  This version is only used in\n   ARMv6-M when we want an efficient implementation.  Otherwize if the\n   code size is preferred, __strcmp_armv6m-armv4t.S will be used.  */\n\n\t.thumb_func\n\t.syntax unified\n\t.arch\tarmv6-m\n\n\t.macro DoSub n, label\n\tsubs\tr0, r0, r1\n#ifdef __ARM_BIG_ENDIAN\n\tlsrs\tr1, r4, \\n\n#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\n\t.text\n\t.p2align\t0\n\t.global\t__strcmp_armv6m\n\t.type\t__strcmp_armv6m, %function\n__strcmp_armv6m:\n\t.cfi_startproc\n\tmov\tr2, r0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "26a2c37b347f357d884ac013f74f426e4ec257ad", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/26a2c37b347f357d884ac013f74f426e4ec257ad/string/arm/strcmp-armv6m.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:2", "text": "#else\n\tlsls\tr1, r4, \\n\n#endif\n\torrs\tr1, r0\n\tbne\t\\label\n\t.endm\n\n\t.macro Byte_Test n, label\n\tlsrs\tr0, r2, \\n\n\tlsrs\tr1, r3, \\n\n\tDoSub\t\\n, \\label\n\t.endm\n\n\t.text\n\t.p2align\t0\n\t.global\t__strcmp_armv6m\n\t.type\t__strcmp_armv6m, %function\n__strcmp_armv6m:\n\t.cfi_startproc\n\tmov\tr2, r0\n\tpush\t{r4, r5, r6, lr}\n\torrs\tr2, r1\n\tlsls\tr2, r2, #30\n\tbne\t6f\n\tldr\tr5, =0x01010101\n\tlsls\tr6, r5, #7\n1:\n\tldmia\tr0!, {r2}\n\tldmia\tr1!, {r3}\n\tsubs\tr4, r2, r5\n\tbics\tr4, r2\n\tands\tr4, r6\n\tbeq\t3f\n\n#ifdef __ARM_BIG_ENDIAN\n\tByte_Test #24, 4f\n\tByte_Test #16, 4f\n\tByte_Test #8, 4f\n\n\tb       7f\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "26a2c37b347f357d884ac013f74f426e4ec257ad", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/26a2c37b347f357d884ac013f74f426e4ec257ad/string/arm/strcmp-armv6m.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:3", "text": "3:\n\tcmp     r2, r3\n\tbeq     1b\n\tcmp     r2, r3\n#else\n\tuxtb    r0, r2\n\tuxtb    r1, r3\n\tDoSub   #24, 2f\n\n\tuxth    r0, r2\n\tuxth    r1, r3\n\tDoSub   #16, 2f\n\n\tlsls    r0, r2, #8\n\tlsls    r1, r3, #8\n\tlsrs    r0, r0, #8\n\tlsrs    r1, r1, #8\n\tDoSub   #8, 2f\n\n\tlsrs    r0, r2, #24\n\tlsrs    r1, r3, #24\n\tsubs    r0, r0, r1\n2:\n\tpop     {r4, r5, r6, pc}\n\n3:\n\tcmp     r2, r3\n\tbeq     1b\n\trev     r0, r2\n\trev     r1, r3\n\tcmp     r0, r1\n#endif\n\n\tbls\t5f\n\tmovs\tr0, #1\n4:\n\tpop\t{r4, r5, r6, pc}\n5:\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n\tpop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "26a2c37b347f357d884ac013f74f426e4ec257ad", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/26a2c37b347f357d884ac013f74f426e4ec257ad/string/arm/strcmp-armv6m.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp-armv6m.S:4", "text": "pop\t{r4, r5, r6, pc}\n6:\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbne\t7f\n\tldrb\tr2, [r0, #0]\n\tldrb\tr3, [r1, #0]\n\tadds\tr0, #1\n\tadds\tr1, #1\n\tcmp\tr2, #0\n\tbeq\t7f\n\tcmp\tr2, r3\n\tbeq\t6b\n7:\n\tsubs\tr0, r2, r3\n\tpop\t{r4, r5, r6, pc}\n\t.cfi_endproc\n\t.size\t__strcmp_armv6m, . - __strcmp_armv6m", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp-armv6m.S", "license": "MIT", "commit": "26a2c37b347f357d884ac013f74f426e4ec257ad", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/26a2c37b347f357d884ac013f74f426e4ec257ad/string/arm/strcmp-armv6m.S", "line_start": 121, "line_end": 143}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:2", "text": "#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1, lsr #24\n\tepilogue push_ip=HAVE_PAC_LEAF\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue push_ip=HAVE_PAC_LEAF\n#endif\n\t.endm\n\nENTRY(__strcmp_arm)\n\tprologue push_ip=HAVE_PAC_LEAF\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue push_ip=HAVE_PAC_LEAF\n#endif\n\t.endm\n\nENTRY(__strcmp_arm)\n\tprologue push_ip=HAVE_PAC_LEAF\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_rel_offset 4, 0\n\t.cfi_rel_offset 5, 4\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_rel_offset 6, 8\n\t.cfi_rel_offset 7, 12\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "ldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "ldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "subs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\tepilogue push_ip=HAVE_PAC_LEAF\n\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tsub\tr0, r2, r3\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nL(aligned_m1):\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": ".cfi_adjust_cfa_offset -16\n\tepilogue push_ip=HAVE_PAC_LEAF\n\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tsub\tr0, r2, r3\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nL(aligned_m1):\n\t.cfi_restore_state\n\t.cfi_remember_state\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "b\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tneg\tresult, result\n\tepilogue push_ip=HAVE_PAC_LEAF\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "ldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nL(strcmp_tail):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "bne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strcmp.S", "line_start": 441, "line_end": 486}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "fa1ba23f84ab1c65dea77d3940535261181766cf", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fa1ba23f84ab1c65dea77d3940535261181766cf/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1, lsr #24\n\tepilogue push_ip=HAVE_PAC_LEAF\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue push_ip=HAVE_PAC_LEAF\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue push_ip=HAVE_PAC_LEAF\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tepilogue push_ip=HAVE_PAC_LEAF\n\tnop\n#endif\n\t.global __strcmp_arm\n\t.type __strcmp_arm,%function\n\t.align 0\n__strcmp_arm:\n\tprologue push_ip=HAVE_PAC_LEAF\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_rel_offset 4, 0\n\t.cfi_rel_offset 5, 4\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_rel_offset 6, 8\n\t.cfi_rel_offset 7, 12\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": ".cfi_rel_offset 5, 4\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_rel_offset 6, 8\n\t.cfi_rel_offset 7, 12\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "L(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "bne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "L(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\n\tepilogue push_ip=HAVE_PAC_LEAF\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "L(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\n\tepilogue push_ip=HAVE_PAC_LEAF\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "cbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tneg\tresult, result\n\tepilogue push_ip=HAVE_PAC_LEAF\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "bne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "b\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 441, "line_end": 492}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:13", "text": ".cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tepilogue push_ip=HAVE_PAC_LEAF\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strcmp.S", "line_start": 481, "line_end": 492}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "7780a64c543c43360f603ce81173ac530389fac6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7780a64c543c43360f603ce81173ac530389fac6/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:2", "text": "#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1, lsr #24\n\tepilogue savepac=HAVE_PAC_LEAF\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue savepac=HAVE_PAC_LEAF\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue savepac=HAVE_PAC_LEAF\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tepilogue savepac=HAVE_PAC_LEAF\n\tnop\n#endif\n\t.global __strcmp_arm\n\t.type __strcmp_arm,%function\n\t.align 0\n__strcmp_arm:\n\tprologue savepac=HAVE_PAC_LEAF\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_offset 5, -(12+PAC_CFI_ADJ_DEFAULT)\n\t.cfi_offset 4, -(16+PAC_CFI_ADJ_DEFAULT)\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": ".cfi_offset 5, -(12+PAC_CFI_ADJ_DEFAULT)\n\t.cfi_offset 4, -(16+PAC_CFI_ADJ_DEFAULT)\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "b\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": ".cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "ldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\n\tepilogue savepac=HAVE_PAC_LEAF\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "L(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tneg\tresult, result\n\tepilogue savepac=HAVE_PAC_LEAF\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": ".p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "cbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tepilogue savepac=HAVE_PAC_LEAF\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tepilogue savepac=HAVE_PAC_LEAF\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 441, "line_end": 498}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:13", "text": "sel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tepilogue savepac=HAVE_PAC_LEAF\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d3166fa73ad1ef10c5c4a5e5e2403cc9d753bda4/string/arm/strcmp.S", "line_start": 481, "line_end": 498}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tepilogue savepac=HAVE_PAC_LEAF\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tepilogue savepac=HAVE_PAC_LEAF\n\tnop\n#endif\n\t.global __strcmp_arm\n\t.type __strcmp_arm,%function\n\t.align 0\n__strcmp_arm:\n\tprologue savepac=HAVE_PAC_LEAF\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_adjust_cfa_offset 16\n\t.cfi_offset 5, -(12+PAC_CFI_ADJ)\n\t.cfi_offset 4, -(16+PAC_CFI_ADJ)\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": ".cfi_offset 5, -(12+PAC_CFI_ADJ)\n\t.cfi_offset 4, -(16+PAC_CFI_ADJ)\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1, lsr #24\n\tpacbti_epilogue\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tpacbti_epilogue\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tpacbti_epilogue\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tpacbti_epilogue\n\tnop\n#endif\n\t.global __strcmp_arm\n\t.type __strcmp_arm,%function\n\t.align 0\n__strcmp_arm:\n\tpacbti_prologue\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_adjust_cfa_offset 16\n#if HAVE_PAC_LEAF\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n#endif /* HAVE_PAC_LEAF */\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "#if HAVE_PAC_LEAF\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n#endif /* HAVE_PAC_LEAF */\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "beq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "strcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "ldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "add\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\n\tpacbti_epilogue\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "ldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tneg\tresult, result\n\tpacbti_epilogue\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": ".cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "and\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tpacbti_epilogue\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tpacbti_epilogue", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:13", "text": "rev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tpacbti_epilogue\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strcmp.S", "line_start": 481, "line_end": 503}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:2", "text": "#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1, lsr #24\n\tpacbti_epilogue\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tpacbti_epilogue\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tpacbti_epilogue\n\tnop\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": "ldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tpacbti_epilogue\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tpacbti_epilogue\n\tnop\n#endif\n\t.global __strcmp_arm\n\t.type __strcmp_arm,%function\n\t.align 0\n__strcmp_arm:\n\tpacbti_prologue\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.save\t{r4, r5}\n\t.cfi_adjust_cfa_offset 16\n#if HAVE_PAC_LEAF\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n#endif /* HAVE_PAC_LEAF */\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.save\t{r6, r7}\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": ".cfi_offset 4, -16\n\t.cfi_offset 5, -12\n#endif /* HAVE_PAC_LEAF */\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.save\t{r6, r7}\n#if HAVE_PAC_LEAF\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* HAVE_PAC_LEAF */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "orn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": ".cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -16\n\n\tpacbti_epilogue\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tneg\tresult, result\n\tpacbti_epilogue\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "b\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "sel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tpacbti_epilogue\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tpacbti_epilogue\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:13", "text": "uadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, data2, lsr #24\n\tpacbti_epilogue\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strcmp.S", "line_start": 481, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": "ldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_adjust_cfa_offset -16\n\tsub\tresult, result, r1\n\n\tpacbti_epilogue\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n\t.fnstart\n\t.cfi_startproc\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tpacbti_epilogue\n\tnop\n#endif\n\t.global __strcmp_arm\n\t.type __strcmp_arm,%function\n\t.align 0\n__strcmp_arm:\n\tpacbti_prologue\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.save\t{r4, r5}\n\t.cfi_adjust_cfa_offset 16\n#ifdef __ARM_FEATURE_PAC_DEFAULT\n\t.cfi_offset 4, -20\n\t.cfi_offset 5, -16\n#else\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.save\t{r6, r7}\n#ifdef __ARM_FEATURE_PAC_DEFAULT\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "fa00b1bde8444483823723958fed97ae91775437", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fa00b1bde8444483823723958fed97ae91775437/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": ".cfi_offset 4, -16\n\t.cfi_offset 5, -12\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.save\t{r6, r7}\n#ifdef __ARM_FEATURE_PAC_DEFAULT\n\t.cfi_offset 6, -12\n\t.cfi_offset 7, -8\n#else\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "fa00b1bde8444483823723958fed97ae91775437", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/fa00b1bde8444483823723958fed97ae91775437/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:2", "text": "#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": ".macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.p2align\t5\nL(strcmp_start_addr):\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "subs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "bx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "ldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": ".cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strcmp.S", "line_start": 441, "line_end": 475}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2021, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "b7e368fb86d602bb5578450ec2c078f2a876ea71", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/b7e368fb86d602bb5578450ec2c078f2a876ea71/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": ".macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\nL(strcmp_start_addr):\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\nL(strcmp_start_addr):\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "bne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "ldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "uxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": ".cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "ldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "mov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\nEND (__strcmp_arm)\n\n#endif /* __ARM_ARCH >= 7 && __ARM_ARCH_ISA_ARM >= 1  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strcmp.S", "line_start": 441, "line_end": 476}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n#include \"../asmdefs.h\"\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:2", "text": "#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\nL(strcmp_start_addr):\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": "bx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\nL(strcmp_start_addr):\n#if STRCMP_NO_PRECHECK == 0\nL(fastpath_exit):\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\tL(fastpath_exit)\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, L(loop_aligned8)\n\nL(not_aligned):\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\tL(misaligned8)\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\tL(start_realigned8)\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\tL(start_realigned8)\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\nL(loop_aligned8):\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\nL(start_realigned8):\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, L(diff_in_b)\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "ldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\tL(loop_aligned8)\n\nL(diff_found):\n\tcbnz\tsyndrome_a, L(diff_in_a)\n\nL(diff_in_b):\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\nL(diff_in_a):\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\nL(misaligned8):\n\ttst\ttmp1, #3\n\tbne\tL(misaligned4)\n\tands\ttmp1, src1, #3\n\tbne\tL(mutual_align4)\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\nL(loop_aligned4):\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\nL(start_realigned4):\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, L(aligned4_done)\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "uadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\tL(loop_aligned4)\n\nL(aligned4_done):\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\nL(mutual_align4):\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\tL(start_realigned4)\n\nL(misaligned4):\n\tands\ttmp1, src1, #3\n\tbeq\tL(src1_aligned)\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\tL(aligned_m2)\n\tbcs\tL(aligned_m1)\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "bne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m1):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, L(src1_aligned)\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbz\tdata2, L(misaligned_exit)\n\nL(aligned_m2):\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\tL(misaligned_exit)\n\tcbnz\tdata2, L(aligned_m1)\n#endif\n\nL(misaligned_exit):\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "#if STRCMP_NO_PRECHECK == 0\nL(aligned_m1):\n\tadd\tsrc2, src2, #4\n#endif\nL(src1_aligned):\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\tL(overlap1)\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\tL(overlap2)\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\nL(overlap3):\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap3)\n4:\n\tS2LO\tdata2, data2, #8\n\tb\tL(strcmp_tail)\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\tL(strcmp_done_equal)\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap2):\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap2)\n4:\n\tS2LO\tdata2, data2, #16\n\tb\tL(strcmp_tail)\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\tL(strcmp_done_equal)\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "S2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\tL(strcmp_tail)\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\tL(strcmp_tail)\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\nL(overlap1):\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\tL(overlap1)\n4:\n\tS2LO\tdata2, data2, #24\n\tb\tL(strcmp_tail)\n5:\n\ttst\tsyndrome, #LSB\n\tbne\tL(strcmp_done_equal)\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\tL(strcmp_tail)\n\nL(strcmp_done_equal):\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "ldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\nL(strcmp_tail):\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\nEND (__strcmp_arm)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strcmp.S", "line_start": 441, "line_end": 472}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\n.Lstrcmp_start_addr:\n#if STRCMP_NO_PRECHECK == 0\n.Lfastpath_exit:\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": "bx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\n.Lstrcmp_start_addr:\n#if STRCMP_NO_PRECHECK == 0\n.Lfastpath_exit:\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\nENTRY_ALIGN (__strcmp_arm, 0)\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\t.Lfastpath_exit\n#endif\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, .Lloop_aligned8\n\n.Lnot_aligned:\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\t.Lmisaligned8\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\t.Lstart_realigned8\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\t.Lstart_realigned8\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\t.Lstart_realigned8\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\n.Lloop_aligned8:\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\n.Lstart_realigned8:\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, .Ldiff_in_b\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\t.Lloop_aligned8\n\n.Ldiff_found:\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\n.Ldiff_in_b:\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\n.Ldiff_in_a:\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "ldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\t.Lloop_aligned8\n\n.Ldiff_found:\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\n.Ldiff_in_b:\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\n.Ldiff_in_a:\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\n.Lmisaligned8:\n\ttst\ttmp1, #3\n\tbne\t.Lmisaligned4\n\tands\ttmp1, src1, #3\n\tbne\t.Lmutual_align4\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\n.Lloop_aligned4:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned4:\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, .Laligned4_done\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\t.Lloop_aligned4\n\n.Laligned4_done:\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\n.Lmutual_align4:\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "uadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\t.Lloop_aligned4\n\n.Laligned4_done:\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\n.Lmutual_align4:\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\t.Lstart_realigned4\n\n.Lmisaligned4:\n\tands\ttmp1, src1, #3\n\tbeq\t.Lsrc1_aligned\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\t.Laligned_m2\n\tbcs\t.Laligned_m1\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m1:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, .Lsrc1_aligned\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "bne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m1:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, .Lsrc1_aligned\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbnz\tdata2, .Laligned_m1\n#endif\n\n.Lmisaligned_exit:\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\n.Laligned_m1:\n\tadd\tsrc2, src2, #4\n#endif\n.Lsrc1_aligned:\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\t.Loverlap1\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\t.Loverlap2\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\n.Loverlap3:\n\tbic\ttmp1, data1, #MSB", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "#if STRCMP_NO_PRECHECK == 0\n.Laligned_m1:\n\tadd\tsrc2, src2, #4\n#endif\n.Lsrc1_aligned:\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\t.Loverlap1\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\t.Loverlap2\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\n.Loverlap3:\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap3\n4:\n\tS2LO\tdata2, data2, #8\n\tb\t.Lstrcmp_tail\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\t.Lstrcmp_done_equal\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap2:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap2:\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap2\n4:\n\tS2LO\tdata2, data2, #16\n\tb\t.Lstrcmp_tail\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\t.Lstrcmp_done_equal\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\t.Lstrcmp_tail\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap1:\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "S2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\t.Lstrcmp_tail\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap1:\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap1\n4:\n\tS2LO\tdata2, data2, #24\n\tb\t.Lstrcmp_tail\n5:\n\ttst\tsyndrome, #LSB\n\tbne\t.Lstrcmp_done_equal\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\t.Lstrcmp_tail\n\n.Lstrcmp_done_equal:\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\n.Lstrcmp_tail:\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "ldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\n.Lstrcmp_tail:\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\nEND (__strcmp_arm)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strcmp.S", "line_start": 441, "line_end": 472}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * strcmp for ARMv7\n *\n * Copyright (c) 2012-2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */\n#define S2LO lsr\n#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Parameters and result.  */\n#define src1\t\tr0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:2", "text": "#define S2LOEQ lsreq\n#define S2HI lsl\n#define BYTE0_OFFSET 0\n#define BYTE1_OFFSET 8\n#define BYTE2_OFFSET 16\n#define BYTE3_OFFSET 24\n#define MSB 0xff000000\n#define LSB 0x000000ff\n#endif /* not  __ARM_BIG_ENDIAN */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n/* Parameters and result.  */\n#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\n.Lstrcmp_start_addr:\n#if STRCMP_NO_PRECHECK == 0\n.Lfastpath_exit:\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": "and\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\n.Lstrcmp_start_addr:\n#if STRCMP_NO_PRECHECK == 0\n.Lfastpath_exit:\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\ndef_fn\t__strcmp_arm\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\t.Lfastpath_exit\n#endif\n\t.cfi_startproc\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, .Lloop_aligned8\n\n.Lnot_aligned:\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\t.Lmisaligned8\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "cbz\tr2, .Lloop_aligned8\n\n.Lnot_aligned:\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\t.Lmisaligned8\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\t.Lstart_realigned8\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\t.Lstart_realigned8\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\n.Lloop_aligned8:\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\n.Lstart_realigned8:\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, .Ldiff_in_b\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\t.Lloop_aligned8\n\n.Ldiff_found:\n\tcbnz\tsyndrome_a, .Ldiff_in_a", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "cbnz\tsyndrome_a, .Ldiff_in_a\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, .Ldiff_in_b\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\t.Lloop_aligned8\n\n.Ldiff_found:\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\n.Ldiff_in_b:\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\n.Ldiff_in_a:\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\n.Lmisaligned8:\n\ttst\ttmp1, #3\n\tbne\t.Lmisaligned4\n\tands\ttmp1, src1, #3\n\tbne\t.Lmutual_align4\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\n.Lloop_aligned4:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned4:\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, .Laligned4_done\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\t.Lloop_aligned4\n\n.Laligned4_done:\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\n.Lmutual_align4:\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": ".Lstart_realigned4:\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, .Laligned4_done\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\t.Lloop_aligned4\n\n.Laligned4_done:\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\n.Lmutual_align4:\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\t.Lstart_realigned4\n\n.Lmisaligned4:\n\tands\ttmp1, src1, #3\n\tbeq\t.Lsrc1_aligned\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\t.Laligned_m2\n\tbcs\t.Laligned_m1\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m1:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "beq\t.Laligned_m2\n\tbcs\t.Laligned_m1\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m1:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, .Lsrc1_aligned\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbnz\tdata2, .Laligned_m1\n#endif\n\n.Lmisaligned_exit:\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\n.Laligned_m1:\n\tadd\tsrc2, src2, #4\n#endif\n.Lsrc1_aligned:\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": ".Lmisaligned_exit:\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\n.Laligned_m1:\n\tadd\tsrc2, src2, #4\n#endif\n.Lsrc1_aligned:\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\t.Loverlap1\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\t.Loverlap2\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\n.Loverlap3:\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap3\n4:\n\tS2LO\tdata2, data2, #8\n\tb\t.Lstrcmp_tail\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\t.Lstrcmp_done_equal\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "b\t.Lstrcmp_tail\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\t.Lstrcmp_done_equal\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap2:\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap2\n4:\n\tS2LO\tdata2, data2, #16\n\tb\t.Lstrcmp_tail\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\t.Lstrcmp_done_equal\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\t.Lstrcmp_tail\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap1:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "S2LO\tdata2, data2, #16\n\tb\t.Lstrcmp_tail\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\t.Lstrcmp_done_equal\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\t.Lstrcmp_tail\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap1:\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap1\n4:\n\tS2LO\tdata2, data2, #24\n\tb\t.Lstrcmp_tail\n5:\n\ttst\tsyndrome, #LSB\n\tbne\t.Lstrcmp_done_equal\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\t.Lstrcmp_tail\n\n.Lstrcmp_done_equal:\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\n.Lstrcmp_tail:\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": "S2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\t.Lstrcmp_tail\n\n.Lstrcmp_done_equal:\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\n.Lstrcmp_tail:\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\t.cfi_endproc\n\t.size __strcmp, . - .Lstrcmp_start_addr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "558699c220161590d96095757e46a9e335b996ec", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/558699c220161590d96095757e46a9e335b996ec/string/arm/strcmp.S", "line_start": 441, "line_end": 479}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:1", "text": "/*\n * Copyright (c) 2012-2014 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* Implementation of strcmp for ARMv7 when DSP instructions are\n   available.  Use ldrd to support wider loads, provided the data\n   is sufficiently aligned.  Use saturating arithmetic to optimize\n   the compares.  */\n\n/* Build Options:\n   STRCMP_NO_PRECHECK: Don't run a quick pre-check of the first\n   byte in the string.  If comparing completely random strings\n   the pre-check will save time, since there is a very high\n   probability of a mismatch in the first character: we save\n   significant overhead if this is the common case.  However,\n   if strings are likely to be identical (eg because we're\n   verifying a hit in a hash table), then this check is largely\n   redundant.  */\n\n#define STRCMP_NO_PRECHECK\t0\n\n\t/* This version uses Thumb-2 code.  */\n\t.thumb\n\t.syntax unified\n\n#ifdef __ARM_BIG_ENDIAN\n#define S2LO lsl\n#define S2LOEQ lsleq\n#define S2HI lsr\n#define MSB 0x000000ff\n#define LSB 0xff000000\n#define BYTE0_OFFSET 24\n#define BYTE1_OFFSET 16\n#define BYTE2_OFFSET 8\n#define BYTE3_OFFSET 0\n#else /* not  __ARM_BIG_ENDIAN */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:3", "text": "#define src1\t\tr0\n#define src2\t\tr1\n#define result\t\tr0\t/* Overlaps src1.  */\n\n/* Internal variables.  */\n#define tmp1\t\tr4\n#define tmp2\t\tr5\n#define const_m1\tr12\n\n/* Additional internal variables for 64-bit aligned data.  */\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define data2a\t\tr6\n#define data2b\t\tr7\n#define syndrome_a\ttmp1\n#define syndrome_b\ttmp2\n\n/* Additional internal variables for 32-bit aligned data.  */\n#define data1\t\tr2\n#define data2\t\tr3\n#define syndrome\ttmp2\n\n\n\t/* Macro to compute and return the result value for word-aligned\n\t   cases.  */\n\t.macro strcmp_epilogue_aligned synd d1 d2 restore_r6\n#ifdef __ARM_BIG_ENDIAN\n\t/* If data1 contains a zero byte, then syndrome will contain a 1 in\n\t   bit 7 of that byte.  Otherwise, the highest set bit in the\n\t   syndrome will highlight the first different bit.  It is therefore\n\t   sufficient to extract the eight bits starting with the syndrome\n\t   bit.  */\n\tclz\ttmp1, \\synd\n\tlsl\tr1, \\d2, tmp1\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsl\t\\d1, \\d1, tmp1\n\t.cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:4", "text": ".cfi_remember_state\n\tlsr\tresult, \\d1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1, lsr #24\n\tbx\tlr\n#else\n\t/* To use the big-endian trick we'd have to reverse all three words.\n\t   that's slower than this approach.  */\n\trev\t\\synd, \\synd\n\tclz\ttmp1, \\synd\n\tbic\ttmp1, tmp1, #7\n\tlsr\tr1, \\d2, tmp1\n\t.cfi_remember_state\n\t.if \\restore_r6\n\tldrd\tr6, r7, [sp, #8]\n\t.endif\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tlsr\t\\d1, \\d1, tmp1\n\tand\tresult, \\d1, #255\n\tand\tr1, r1, #255\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\tsub\tresult, result, r1\n\n\tbx\tlr\n#endif\n\t.endm\n\n\t.text\n\t.p2align\t5\n.Lstrcmp_start_addr:\n#if STRCMP_NO_PRECHECK == 0\n.Lfastpath_exit:\n\tsub\tr0, r2, r3\n\tbx\tlr\n\tnop\n#endif\ndef_fn\t__strcmp_arm\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\t.Lfastpath_exit\n#endif\n\t.cfi_startproc\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 121, "line_end": 180}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:5", "text": "#endif\ndef_fn\t__strcmp_arm\n#if STRCMP_NO_PRECHECK == 0\n\tldrb\tr2, [src1]\n\tldrb\tr3, [src2]\n\tcmp\tr2, #1\n\tit\tcs\n\tcmpcs\tr2, r3\n\tbne\t.Lfastpath_exit\n#endif\n\t.cfi_startproc\n\tstrd\tr4, r5, [sp, #-16]!\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 4, -16\n\t.cfi_offset 5, -12\n\torr\ttmp1, src1, src2\n\tstrd\tr6, r7, [sp, #8]\n\t.cfi_offset 6, -8\n\t.cfi_offset 7, -4\n\tmvn\tconst_m1, #0\n\tlsl\tr2, tmp1, #29\n\tcbz\tr2, .Lloop_aligned8\n\n.Lnot_aligned:\n\teor\ttmp1, src1, src2\n\ttst\ttmp1, #7\n\tbne\t.Lmisaligned8\n\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tand\ttmp1, src1, #7\n\tbic\tsrc1, src1, #7\n\tand\ttmp2, tmp1, #3\n\tbic\tsrc2, src2, #7\n\tlsl\ttmp2, tmp2, #3\t/* Bytes -> bits.  */\n\tldrd\tdata1a, data1b, [src1], #16\n\ttst\ttmp1, #4\n\tldrd\tdata2a, data2b, [src2], #16\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\t.Lstart_realigned8\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\t.Lstart_realigned8\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\n.Lloop_aligned8:\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\n.Lstart_realigned8:\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 161, "line_end": 220}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:6", "text": "S2HI\ttmp1, const_m1, tmp2\n\torn\tdata1a, data1a, tmp1\n\torn\tdata2a, data2a, tmp1\n\tbeq\t.Lstart_realigned8\n\torn\tdata1b, data1b, tmp1\n\tmov\tdata1a, const_m1\n\torn\tdata2b, data2b, tmp1\n\tmov\tdata2a, const_m1\n\tb\t.Lstart_realigned8\n\n\t/* Unwind the inner loop by a factor of 2, giving 16 bytes per\n\t   pass.  */\n\t.p2align 5,,12  /* Don't start in the tail bytes of a cache line.  */\n\t.p2align 2\t/* Always word aligned.  */\n.Lloop_aligned8:\n\tldrd\tdata1a, data1b, [src1], #16\n\tldrd\tdata2a, data2b, [src2], #16\n.Lstart_realigned8:\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\tcbnz\tsyndrome_b, .Ldiff_in_b\n\n\tldrd\tdata1a, data1b, [src1, #-8]\n\tldrd\tdata2a, data2b, [src2, #-8]\n\tuadd8\tsyndrome_b, data1a, const_m1\t/* Only want GE bits,  */\n\teor\tsyndrome_a, data1a, data2a\n\tsel\tsyndrome_a, syndrome_a, const_m1\n\tuadd8\tsyndrome_b, data1b, const_m1\t/* Only want GE bits.  */\n\teor\tsyndrome_b, data1b, data2b\n\tsel\tsyndrome_b, syndrome_b, const_m1\n\t/* Can't use CBZ for backwards branch.  */\n\torrs\tsyndrome_b, syndrome_b, syndrome_a /* Only need if s_a == 0 */\n\tbeq\t.Lloop_aligned8\n\n.Ldiff_found:\n\tcbnz\tsyndrome_a, .Ldiff_in_a\n\n.Ldiff_in_b:\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\n.Ldiff_in_a:\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\n.Lmisaligned8:\n\ttst\ttmp1, #3\n\tbne\t.Lmisaligned4\n\tands\ttmp1, src1, #3\n\tbne\t.Lmutual_align4\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\n.Lloop_aligned4:\n\tldr\tdata1, [src1], #8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 201, "line_end": 260}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:7", "text": "cbnz\tsyndrome_a, .Ldiff_in_a\n\n.Ldiff_in_b:\n\tstrcmp_epilogue_aligned syndrome_b, data1b, data2b 1\n\n.Ldiff_in_a:\n\t.cfi_restore_state\n\tstrcmp_epilogue_aligned syndrome_a, data1a, data2a 1\n\n\t.cfi_restore_state\n.Lmisaligned8:\n\ttst\ttmp1, #3\n\tbne\t.Lmisaligned4\n\tands\ttmp1, src1, #3\n\tbne\t.Lmutual_align4\n\n\t/* Unrolled by a factor of 2, to reduce the number of post-increment\n\t   operations.  */\n.Lloop_aligned4:\n\tldr\tdata1, [src1], #8\n\tldr\tdata2, [src2], #8\n.Lstart_realigned4:\n\tuadd8\tsyndrome, data1, const_m1\t/* Only need GE bits.  */\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcbnz\tsyndrome, .Laligned4_done\n\tldr\tdata1, [src1, #-4]\n\tldr\tdata2, [src2, #-4]\n\tuadd8\tsyndrome, data1, const_m1\n\teor\tsyndrome, data1, data2\n\tsel\tsyndrome, syndrome, const_m1\n\tcmp\tsyndrome, #0\n\tbeq\t.Lloop_aligned4\n\n.Laligned4_done:\n\tstrcmp_epilogue_aligned syndrome, data1, data2, 0\n\n.Lmutual_align4:\n\t.cfi_restore_state\n\t/* Deal with mutual misalignment by aligning downwards and then\n\t   masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\t.Lstart_realigned4\n\n.Lmisaligned4:\n\tands\ttmp1, src1, #3\n\tbeq\t.Lsrc1_aligned\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 241, "line_end": 300}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:8", "text": "masking off the unwanted loaded data to prevent a difference.  */\n\tlsl\ttmp1, tmp1, #3\t/* Bytes -> bits.  */\n\tbic\tsrc1, src1, #3\n\tldr\tdata1, [src1], #8\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #8\n\n\t/* In thumb code we can't use MVN with a register shift, but\n\t   we do have ORN.  */\n\tS2HI\ttmp1, const_m1, tmp1\n\torn\tdata1, data1, tmp1\n\torn\tdata2, data2, tmp1\n\tb\t.Lstart_realigned4\n\n.Lmisaligned4:\n\tands\ttmp1, src1, #3\n\tbeq\t.Lsrc1_aligned\n\tsub\tsrc2, src2, tmp1\n\tbic\tsrc1, src1, #3\n\tlsls\ttmp1, tmp1, #31\n\tldr\tdata1, [src1], #4\n\tbeq\t.Laligned_m2\n\tbcs\t.Laligned_m1\n\n#if STRCMP_NO_PRECHECK == 1\n\tldrb\tdata2, [src2, #1]\n\tuxtb\ttmp1, data1, ror #BYTE1_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m1:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, .Lsrc1_aligned\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbnz\tdata2, .Laligned_m1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 281, "line_end": 340}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:9", "text": "uxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tadd\tsrc2, src2, #4\n\tcbnz\tdata2, .Lsrc1_aligned\n#else  /* STRCMP_NO_PRECHECK */\n\t/* If we've done the pre-check, then we don't need to check the\n\t   first byte again here.  */\n\tldrb\tdata2, [src2, #2]\n\tuxtb\ttmp1, data1, ror #BYTE2_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbz\tdata2, .Lmisaligned_exit\n\n.Laligned_m2:\n\tldrb\tdata2, [src2, #3]\n\tuxtb\ttmp1, data1, ror #BYTE3_OFFSET\n\tsubs\ttmp1, tmp1, data2\n\tbne\t.Lmisaligned_exit\n\tcbnz\tdata2, .Laligned_m1\n#endif\n\n.Lmisaligned_exit:\n\t.cfi_remember_state\n\tmov\tresult, tmp1\n\tldr\tr4, [sp], #16\n\t.cfi_restore 4\n\tbx\tlr\n\n#if STRCMP_NO_PRECHECK == 0\n.Laligned_m1:\n\tadd\tsrc2, src2, #4\n#endif\n.Lsrc1_aligned:\n\t.cfi_restore_state\n\t/* src1 is word aligned, but src2 has no common alignment\n\t   with it.  */\n\tldr\tdata1, [src1], #4\n\tlsls\ttmp1, src2, #31\t\t/* C=src2[1], Z=src2[0].  */\n\n\tbic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\t.Loverlap1\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\t.Loverlap2\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\n.Loverlap3:\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap3\n4:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 321, "line_end": 380}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:10", "text": "bic\tsrc2, src2, #3\n\tldr\tdata2, [src2], #4\n\tbhi\t.Loverlap1\t\t/* C=1, Z=0 => src2[1:0] = 0b11.  */\n\tbcs\t.Loverlap2\t\t/* C=1, Z=1 => src2[1:0] = 0b10.  */\n\n\t/* (overlap3) C=0, Z=0 => src2[1:0] = 0b01.  */\n.Loverlap3:\n\tbic\ttmp1, data1, #MSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #8\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #24\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap3\n4:\n\tS2LO\tdata2, data2, #8\n\tb\t.Lstrcmp_tail\n\n5:\n\tbics\tsyndrome, syndrome, #MSB\n\tbne\t.Lstrcmp_done_equal\n\n\t/* We can only get here if the MSB of data1 contains 0, so\n\t   fast-path the exit.  */\n\tldrb\tresult, [src2]\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 Not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tneg\tresult, result\n\tbx\tlr\n\n6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap2:\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 361, "line_end": 420}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:11", "text": "6:\n\t.cfi_restore_state\n\tS2LO\tdata1, data1, #24\n\tand\tdata2, data2, #LSB\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap2:\n\tand\ttmp1, data1, const_m1, S2LO #16\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #16\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #16\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap2\n4:\n\tS2LO\tdata2, data2, #16\n\tb\t.Lstrcmp_tail\n5:\n\tands\tsyndrome, syndrome, const_m1, S2LO #16\n\tbne\t.Lstrcmp_done_equal\n\n\tldrh\tdata2, [src2]\n\tS2LO\tdata1, data1, #16\n#ifdef __ARM_BIG_ENDIAN\n\tlsl\tdata2, data2, #16\n#endif\n\tb\t.Lstrcmp_tail\n\n6:\n\tS2LO\tdata1, data1, #16\n\tand\tdata2, data2, const_m1, S2LO #16\n\tb\t.Lstrcmp_tail\n\n\t.p2align 5,,12\t/* Ensure at least 3 instructions in cache line.  */\n.Loverlap1:\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap1\n4:\n\tS2LO\tdata2, data2, #24\n\tb\t.Lstrcmp_tail\n5:\n\ttst\tsyndrome, #LSB\n\tbne\t.Lstrcmp_done_equal\n\tldr\tdata2, [src2]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 401, "line_end": 460}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:12", "text": ".Loverlap1:\n\tand\ttmp1, data1, #LSB\n\tuadd8\tsyndrome, data1, const_m1\n\teors\tsyndrome, tmp1, data2, S2LO #24\n\tsel\tsyndrome, syndrome, const_m1\n\tbne\t4f\n\tcbnz\tsyndrome, 5f\n\tldr\tdata2, [src2], #4\n\teor\ttmp1, tmp1, data1\n\tcmp\ttmp1, data2, S2HI #8\n\tbne\t6f\n\tldr\tdata1, [src1], #4\n\tb\t.Loverlap1\n4:\n\tS2LO\tdata2, data2, #24\n\tb\t.Lstrcmp_tail\n5:\n\ttst\tsyndrome, #LSB\n\tbne\t.Lstrcmp_done_equal\n\tldr\tdata2, [src2]\n6:\n\tS2LO\tdata1, data1, #8\n\tbic\tdata2, data2, #MSB\n\tb\t.Lstrcmp_tail\n\n.Lstrcmp_done_equal:\n\tmov\tresult, #0\n\t.cfi_remember_state\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tbx\tlr\n\n.Lstrcmp_tail:\n\t.cfi_restore_state\n#ifndef __ARM_BIG_ENDIAN\n\trev\tdata1, data1\n\trev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\t.cfi_endproc\n\t.size __strcmp, . - .Lstrcmp_start_addr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 441, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/strcmp.S:13", "text": "rev\tdata2, data2\n\t/* Now everything looks big-endian...  */\n#endif\n\tuadd8\ttmp1, data1, const_m1\n\teor\ttmp1, data1, data2\n\tsel\tsyndrome, tmp1, const_m1\n\tclz\ttmp1, syndrome\n\tlsl\tdata1, data1, tmp1\n\tlsl\tdata2, data2, tmp1\n\tlsr\tresult, data1, #24\n\tldrd\tr4, r5, [sp], #16\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t/* R6/7 not used in this sequence.  */\n\t.cfi_restore 6\n\t.cfi_restore 7\n\tsub\tresult, result, data2, lsr #24\n\tbx\tlr\n\t.cfi_endproc\n\t.size __strcmp, . - .Lstrcmp_start_addr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strcmp.S", "license": "MIT", "commit": "d30faa5eea756977247e0d13dc00184647747607", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/d30faa5eea756977247e0d13dc00184647747607/string/arm/strcmp.S", "line_start": 481, "line_end": 500}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2022, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tprologue 4 5 push_ip=HAVE_PAC_LEAF\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tprologue 4 5 push_ip=HAVE_PAC_LEAF\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\t.cfi_remember_state", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "uadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\t.cfi_remember_state\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tepilogue 4 5 push_ip=HAVE_PAC_LEAF\n\nL(misaligned8):\n\t.cfi_restore_state\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 130}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": "orn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "25aa0121c788e4039b605a458af42ab3db9f9704", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/25aa0121c788e4039b605a458af42ab3db9f9704/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 130}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tprologue 4 5 push_ip=HAVE_PAC_LEAF\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/67a49eeffa7bd4d90a4edf54cb9d4d784ab170a7/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tprologue 4 5 push_ip=HAVE_PAC_LEAF\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "7780a64c543c43360f603ce81173ac530389fac6", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/7780a64c543c43360f603ce81173ac530389fac6/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tprologue 4 5 savepac=HAVE_PAC_LEAF\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tprologue 4 5 savepac=HAVE_PAC_LEAF\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "ldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tepilogue 4 5 savepac=HAVE_PAC_LEAF\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "5c72615c203f9a2a39c04b23640ebaac26294bcb", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/5c72615c203f9a2a39c04b23640ebaac26294bcb/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 129}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n/* Ensure the .cantunwind directive is prepended to .fnend.\n   Leaf functions cannot throw exceptions - EHABI only supports\n   synchronous exceptions.  */\n#define IS_LEAF\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if HAVE_PAC_LEAF\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\t.cfi_register 143, 12\n\tpush    {r4, r5, ip}\n\t.cfi_def_cfa_offset 12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if HAVE_PAC_LEAF\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\t.cfi_register 143, 12\n\tpush    {r4, r5, ip}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT\n\tbti\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5}\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -4\n#endif /* HAVE_PAC_LEAF */\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "L(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if HAVE_PAC_LEAF\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": "L(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if HAVE_PAC_LEAF\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "ffb6461143e29d34687aca489d9fd8d297dc9920", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/ffb6461143e29d34687aca489d9fd8d297dc9920/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 164}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if HAVE_PAC_LEAF\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\t.cfi_register 143, 12\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "250db3398da6774290a75e099a7beaa4c940f079", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/250db3398da6774290a75e099a7beaa4c940f079/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if HAVE_PAC_LEAF\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\t.cfi_register 143, 12\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT\n\tbti\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5}\n\t.save   {r4, r5}\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -4\n#endif /* HAVE_PAC_LEAF */\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "250db3398da6774290a75e099a7beaa4c940f079", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/250db3398da6774290a75e099a7beaa4c940f079/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "pld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if HAVE_PAC_LEAF\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "250db3398da6774290a75e099a7beaa4c940f079", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/250db3398da6774290a75e099a7beaa4c940f079/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": "itt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if HAVE_PAC_LEAF\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "250db3398da6774290a75e099a7beaa4c940f079", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/250db3398da6774290a75e099a7beaa4c940f079/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 161}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if HAVE_PAC_LEAF\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if HAVE_PAC_LEAF\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT\n\tbti\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5}\n\t.save   {r4, r5}\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -4\n#endif /* HAVE_PAC_LEAF */\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "add\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if HAVE_PAC_LEAF\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0\n#endif /* HAVE_PAC_LEAF */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": "addeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if HAVE_PAC_LEAF\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0\n#endif /* HAVE_PAC_LEAF */\n\tbx lr\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c499115c17546ea8cb8cb7727264b6eedc7eb4d9", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c499115c17546ea8cb8cb7727264b6eedc7eb4d9/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if __ARM_FEATURE_PAC_DEFAULT\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "94ed5b928a498bccb72d582156bf0f39c104a481", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/94ed5b928a498bccb72d582156bf0f39c104a481/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if __ARM_FEATURE_PAC_DEFAULT\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT\n\tbti\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5}\n\t.save   {r4, r5}\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -4\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "94ed5b928a498bccb72d582156bf0f39c104a481", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/94ed5b928a498bccb72d582156bf0f39c104a481/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "add\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if __ARM_FEATURE_PAC_DEFAULT\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0\n#endif /* __ARM_FEATURE_PAC_DEFAULT */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "94ed5b928a498bccb72d582156bf0f39c104a481", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/94ed5b928a498bccb72d582156bf0f39c104a481/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": "addeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n#if __ARM_FEATURE_PAC_DEFAULT\n\tpop\t{r4, r5, ip}\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_restore 143\n\t.cfi_def_cfa_offset 0\n\taut ip, lr, sp\n#else\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 4\n\t.cfi_restore 5\n\t.cfi_def_cfa_offset 0\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tbx lr\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "94ed5b928a498bccb72d582156bf0f39c104a481", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/94ed5b928a498bccb72d582156bf0f39c104a481/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 160}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n#include \"../pacbti.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if __ARM_FEATURE_PAC_DEFAULT\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "f931b0e187330bdd38dd0149cc16d9a103502936", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f931b0e187330bdd38dd0149cc16d9a103502936/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\t/* common pacbti_prologue macro from pacbti.h not used.\n\t   handwritten prologue saves one push instruction. */\n#if __ARM_FEATURE_PAC_DEFAULT\n#if __ARM_FEATURE_BTI_DEFAULT\n\tpacbti ip, lr, sp\n#else\n\tpac ip, lr, sp\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5, ip}\n\t.save   {r4, r5, ra_auth_code}\n\t.cfi_def_cfa_offset 12\n\t.cfi_offset 143, -4\n\t.cfi_offset 4, -8\n\t.cfi_offset 5, -12\n#else\n#if __ARM_FEATURE_BTI_DEFAULT\n\tbti\n#endif /* __ARM_FEATURE_BTI_DEFAULT */\n\tpush    {r4, r5}\n\t.save   {r4, r5}\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 4, -4\n\t.cfi_offset 5, -8\n#endif /* __ARM_FEATURE_PAC_DEFAULT */\n\tpld\t[srcin, #0]\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "f931b0e187330bdd38dd0149cc16d9a103502936", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f931b0e187330bdd38dd0149cc16d9a103502936/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "add\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tpacbti_epilogue\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "f931b0e187330bdd38dd0149cc16d9a103502936", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f931b0e187330bdd38dd0149cc16d9a103502936/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": "addeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\t.cfi_restore 5\n\t.cfi_restore 4\n\t.cfi_adjust_cfa_offset -8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tpacbti_epilogue\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "f931b0e187330bdd38dd0149cc16d9a103502936", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/f931b0e187330bdd38dd0149cc16d9a103502936/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 151}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "cbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tbx\tlr\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)\n\n#endif /* __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "189dfefe37d54c5b9d2a8bb2039091a638c691e1", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b9d2a8bb2039091a638c691e1/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 124}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010-2020, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "e823e3abf5f89ecba58a10fc0fd82c13d9984b6b", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __ARM_ARCH >= 6 && __ARM_ARCH_ISA_THUMB == 2\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/1dfd7b85de70c8fa8c26316b2b67a6d6b3f638fd/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "ENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\tL(misaligned8)\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\nL(loop_aligned):\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\nL(start_realigned):\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, L(null_found)\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\tL(loop_aligned)\n\nL(null_found):\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tbx\tlr\n\nL(misaligned8):\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\tL(start_realigned)\n\nEND (__strlen_armv6t2)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "833e86096b1c38218670459a4c11bf9c790a96d0", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/833e86096b1c38218670459a4c11bf9c790a96d0/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 120}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n#include \"../asmdefs.h\"\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\nENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\t.Lmisaligned8\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\n.Lloop_aligned:\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\n.Lstart_realigned:\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "ENTRY (__strlen_armv6t2)\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\t.Lmisaligned8\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\n.Lloop_aligned:\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\n.Lstart_realigned:\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\t.Lloop_aligned\n\n.Lnull_found:\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\t.Lloop_aligned\n\n.Lnull_found:\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tbx\tlr\n\n.Lmisaligned8:\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\t.Lstart_realigned\n\nEND (__strlen_armv6t2)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "31b560bc3b82ae45044e6455493ce6783aa94d98", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/31b560bc3b82ae45044e6455493ce6783aa94d98/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 120}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/*\n * strlen - calculate the length of a string\n *\n * Copyright (c) 2010, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\ndef_fn\t__strlen_armv6t2 p2align=6\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\t.Lmisaligned8\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\n.Lloop_aligned:\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c834b93a34ba33ab3b6ac46a97f57e8602240c76", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c834b93a34ba33ab3b6ac46a97f57e8602240c76/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": "#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\ndef_fn\t__strlen_armv6t2 p2align=6\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\t.Lmisaligned8\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\n.Lloop_aligned:\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\n.Lstart_realigned:\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\t.Lloop_aligned\n\n.Lnull_found:\n\tcmp\tdata1a, #0\n\titt\teq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c834b93a34ba33ab3b6ac46a97f57e8602240c76", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c834b93a34ba33ab3b6ac46a97f57e8602240c76/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": "add\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\t.Lloop_aligned\n\n.Lnull_found:\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tbx\tlr\n\n.Lmisaligned8:\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\t.Lstart_realigned\n\t.size\t__strlen_armv6t2, . - __strlen_armv6t2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "c834b93a34ba33ab3b6ac46a97f57e8602240c76", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/c834b93a34ba33ab3b6ac46a97f57e8602240c76/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 125}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:1", "text": "/* Copyright (c) 2010-2011,2013 Linaro Limited\n   All rights reserved.\n\n   Redistribution and use in source and binary forms, with or without\n   modification, are permitted provided that the following conditions\n   are met:\n\n      * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n\n      * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n\n      * Neither the name of Linaro Limited nor the names of its\n      contributors may be used to endorse or promote products derived\n      from this software without specific prior written permission.\n\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/*\n   Assumes:\n   ARMv6T2, AArch32\n\n */\n\n\t.macro def_fn f p2align=0\n\t.text\n\t.p2align \\p2align\n\t.global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "4a67e9c701d5910ca09094f5f62a242c6698a05a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4a67e9c701d5910ca09094f5f62a242c6698a05a/string/arm/strlen-armv6t2.S", "line_start": 1, "line_end": 60}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:2", "text": ".global \\f\n\t.type \\f, %function\n\\f:\n\t.endm\n\n#ifdef __ARMEB__\n#define S2LO\t\tlsl\n#define S2HI\t\tlsr\n#else\n#define S2LO\t\tlsr\n#define S2HI\t\tlsl\n#endif\n\n\t/* This code requires Thumb.  */\n\t.thumb\n\t.syntax unified\n\n/* Parameters and result.  */\n#define srcin\t\tr0\n#define result\t\tr0\n\n/* Internal variables.  */\n#define src\t\tr1\n#define data1a\t\tr2\n#define data1b\t\tr3\n#define const_m1\tr12\n#define const_0\t\tr4\n#define tmp1\t\tr4\t\t/* Overlaps const_0  */\n#define tmp2\t\tr5\n\ndef_fn\t__strlen_armv6t2 p2align=6\n\tpld\t[srcin, #0]\n\tstrd\tr4, r5, [sp, #-8]!\n\tbic\tsrc, srcin, #7\n\tmvn\tconst_m1, #0\n\tands\ttmp1, srcin, #7\t\t/* (8 - bytes) to alignment.  */\n\tpld\t[src, #32]\n\tbne.w\t.Lmisaligned8\n\tmov\tconst_0, #0\n\tmov\tresult, #-8\n.Lloop_aligned:\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\n.Lstart_realigned:\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "4a67e9c701d5910ca09094f5f62a242c6698a05a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4a67e9c701d5910ca09094f5f62a242c6698a05a/string/arm/strlen-armv6t2.S", "line_start": 41, "line_end": 100}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:3", "text": ".Lloop_aligned:\n\t/* Bytes 0-7.  */\n\tldrd\tdata1a, data1b, [src]\n\tpld\t[src, #64]\n\tadd\tresult, result, #8\n.Lstart_realigned:\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 8-15.  */\n\tldrd\tdata1a, data1b, [src, #8]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 16-23.  */\n\tldrd\tdata1a, data1b, [src, #16]\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcbnz\tdata1b, .Lnull_found\n\n\t/* Bytes 24-31.  */\n\tldrd\tdata1a, data1b, [src, #24]\n\tadd\tsrc, src, #32\n\tuadd8\tdata1a, data1a, const_m1\t/* Saturating GE<0:3> set.  */\n\tadd\tresult, result, #8\n\tsel\tdata1a, const_0, const_m1\t/* Select based on GE<0:3>.  */\n\tuadd8\tdata1b, data1b, const_m1\n\tsel\tdata1b, data1a, const_m1\t/* Only used if d1a == 0.  */\n\tcmp\tdata1b, #0\n\tbeq\t.Lloop_aligned\n\n.Lnull_found:\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tbx\tlr\n\n.Lmisaligned8:\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "4a67e9c701d5910ca09094f5f62a242c6698a05a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4a67e9c701d5910ca09094f5f62a242c6698a05a/string/arm/strlen-armv6t2.S", "line_start": 81, "line_end": 140}
{"id": "ARM-software/optimized-routines:string/arm/strlen-armv6t2.S:4", "text": ".Lnull_found:\n\tcmp\tdata1a, #0\n\titt\teq\n\taddeq\tresult, result, #4\n\tmoveq\tdata1a, data1b\n#ifndef __ARMEB__\n\trev\tdata1a, data1a\n#endif\n\tclz\tdata1a, data1a\n\tldrd\tr4, r5, [sp], #8\n\tadd\tresult, result, data1a, lsr #3\t/* Bits -> Bytes.  */\n\tbx\tlr\n\n.Lmisaligned8:\n\tldrd\tdata1a, data1b, [src]\n\tand\ttmp2, tmp1, #3\n\trsb\tresult, tmp1, #0\n\tlsl\ttmp2, tmp2, #3\t\t\t/* Bytes -> bits.  */\n\ttst\ttmp1, #4\n\tpld\t[src, #64]\n\tS2HI\ttmp2, const_m1, tmp2\n\torn\tdata1a, data1a, tmp2\n\titt\tne\n\tornne\tdata1b, data1b, tmp2\n\tmovne\tdata1a, const_m1\n\tmov\tconst_0, #0\n\tb\t.Lstart_realigned\n\t.size\t__strlen_armv6t2, . - __strlen_armv6t2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "ARM-software/optimized-routines", "path": "string/arm/strlen-armv6t2.S", "license": "MIT", "commit": "4a67e9c701d5910ca09094f5f62a242c6698a05a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/4a67e9c701d5910ca09094f5f62a242c6698a05a/string/arm/strlen-armv6t2.S", "line_start": 121, "line_end": 149}
{"id": "ARM-software/optimized-routines:string/memcpy_bytewise.S:1", "text": "/*\n * Trivial AArch64 memcpy.\n *\n * Copyright (c) 2019, Arm Limited.\n * SPDX-License-Identifier: MIT\n */\n\n#if __aarch64__\n#include \"asmdefs.h\"\n\nENTRY (__memcpy_bytewise)\n\tcbz\tx2, 2f\n\tmov\tx3, 0\n1:\n\tldrb\tw4, [x1, x3]\n\tstrb\tw4, [x0, x3]\n\tadd\tx3, x3, 1\n\tcmp\tx3, x2\n\tbne\t1b\n2:\n\tret\nEND (__memcpy_bytewise)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "ARM-software/optimized-routines", "path": "string/memcpy_bytewise.S", "license": "MIT", "commit": "6b594432c8ac46e71686ea21fad30d1c3f79e65a", "source_host": "github", "category": "arm64", "source_url": "https://github.com/ARM-software/optimized-routines/blob/6b594432c8ac46e71686ea21fad30d1c3f79e65a/string/memcpy_bytewise.S", "line_start": 1, "line_end": 23}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/aacencdsp_neon.S:1", "text": "/*\n * Copyright (c) 2025 Krzysztof Aleksander Pyrkosz\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_abs_pow34_neon, export=1\n1:\n        ld1             {v0.4s}, [x1], #16\n        subs            w2, w2, #4\n        fabs            v0.4s, v0.4s\n        fsqrt           v2.4s, v0.4s\n        fmul            v0.4s, v2.4s, v0.4s\n        fsqrt           v0.4s, v0.4s\n        st1             {v0.4s}, [x0], #16\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_aac_quant_bands_neon, export=1\n        scvtf           s2, w5\n        dup             v1.4s, v1.s[0]\n        dup             v2.4s, v2.s[0]\n        cbz             w4, 0f\n        movi            v5.4s, 0x80, lsl #24\n.irp signed,1,0\n\\signed:\n        ld1             {v3.4s}, [x2], #16\n        subs            w3, w3, #4\n        fmul            v3.4s, v3.4s, v0.s[0]\n.if \\signed\n        ld1             {v4.4s}, [x1], #16\n.endif\n        fadd            v3.4s, v3.4s, v1.4s\n.if \\signed\n        and             v4.16b, v4.16b, v5.16b\n.endif\n        fmin            v3.4s, v3.4s, v2.4s\n.if \\signed\n        eor             v3.16b, v4.16b, v3.16b\n.endif\n        fcvtzs          v3.4s, v3.4s\n        st1             {v3.4s}, [x0], #16\n        b.ne            \\signed\\()b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/aacencdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/aacencdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/aacencdsp_neon.S:2", "text": "movi            v5.4s, 0x80, lsl #24\n.irp signed,1,0\n\\signed:\n        ld1             {v3.4s}, [x2], #16\n        subs            w3, w3, #4\n        fmul            v3.4s, v3.4s, v0.s[0]\n.if \\signed\n        ld1             {v4.4s}, [x1], #16\n.endif\n        fadd            v3.4s, v3.4s, v1.4s\n.if \\signed\n        and             v4.16b, v4.16b, v5.16b\n.endif\n        fmin            v3.4s, v3.4s, v2.4s\n.if \\signed\n        eor             v3.16b, v4.16b, v3.16b\n.endif\n        fcvtzs          v3.4s, v3.4s\n        st1             {v3.4s}, [x0], #16\n        b.ne            \\signed\\()b\n        ret\n.endr\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/aacencdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/aacencdsp_neon.S", "line_start": 41, "line_end": 63}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/aacpsdsp_neon.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_ps_add_squares_neon, export=1\n1:      ld1             {v0.4s,v1.4s}, [x1], #32\n        fmul            v0.4s, v0.4s, v0.4s\n        fmul            v1.4s, v1.4s, v1.4s\n        faddp           v2.4s, v0.4s, v1.4s\n        ld1             {v3.4s}, [x0]\n        fadd            v3.4s, v3.4s, v2.4s\n        st1             {v3.4s}, [x0], #16\n        subs            w2, w2, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_ps_mul_pair_single_neon, export=1\n1:      ld1             {v0.4s,v1.4s}, [x1], #32\n        ld1             {v2.4s},       [x2], #16\n        zip1            v3.4s, v2.4s, v2.4s\n        zip2            v4.4s, v2.4s, v2.4s\n        fmul            v0.4s, v0.4s, v3.4s\n        fmul            v1.4s, v1.4s, v4.4s\n        st1             {v0.4s,v1.4s}, [x0], #32\n        subs            w3, w3, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_ps_stereo_interpolate_neon, export=1\n        ld1             {v0.4s}, [x2]\n        ld1             {v1.4s}, [x3]\n        zip1            v4.4s, v0.4s, v0.4s\n        zip2            v5.4s, v0.4s, v0.4s\n        zip1            v6.4s, v1.4s, v1.4s\n        zip2            v7.4s, v1.4s, v1.4s\n1:      ld1             {v2.2s}, [x0]\n        ld1             {v3.2s}, [x1]\n        fadd            v4.4s, v4.4s, v6.4s\n        fadd            v5.4s, v5.4s, v7.4s\n        mov             v2.d[1], v2.d[0]\n        mov             v3.d[1], v3.d[0]\n        fmul            v2.4s, v2.4s, v4.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/aacpsdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/aacpsdsp_neon.S:2", "text": "st1             {v0.4s,v1.4s}, [x0], #32\n        subs            w3, w3, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_ps_stereo_interpolate_neon, export=1\n        ld1             {v0.4s}, [x2]\n        ld1             {v1.4s}, [x3]\n        zip1            v4.4s, v0.4s, v0.4s\n        zip2            v5.4s, v0.4s, v0.4s\n        zip1            v6.4s, v1.4s, v1.4s\n        zip2            v7.4s, v1.4s, v1.4s\n1:      ld1             {v2.2s}, [x0]\n        ld1             {v3.2s}, [x1]\n        fadd            v4.4s, v4.4s, v6.4s\n        fadd            v5.4s, v5.4s, v7.4s\n        mov             v2.d[1], v2.d[0]\n        mov             v3.d[1], v3.d[0]\n        fmul            v2.4s, v2.4s, v4.4s\n        fmla            v2.4s, v3.4s, v5.4s\n        st1             {v2.d}[0], [x0], #8\n        st1             {v2.d}[1], [x1], #8\n        subs            w4, w4, #1\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_ps_stereo_interpolate_ipdopd_neon, export=1\n        ld1             {v0.4s,v1.4s}, [x2]\n        ld1             {v6.4s,v7.4s}, [x3]\n        fneg            v2.4s, v1.4s\n        fneg            v3.4s, v7.4s\n        zip1            v16.4s, v0.4s, v0.4s\n        zip2            v17.4s, v0.4s, v0.4s\n        zip1            v18.4s, v2.4s, v1.4s\n        zip2            v19.4s, v2.4s, v1.4s\n        zip1            v20.4s, v6.4s, v6.4s\n        zip2            v21.4s, v6.4s, v6.4s\n        zip1            v22.4s, v3.4s, v7.4s\n        zip2            v23.4s, v3.4s, v7.4s\n1:      ld1             {v2.2s}, [x0]\n        ld1             {v3.2s}, [x1]\n        fadd            v16.4s, v16.4s, v20.4s\n        fadd            v17.4s, v17.4s, v21.4s\n        mov             v2.d[1], v2.d[0]\n        mov             v3.d[1], v3.d[0]\n        fmul            v4.4s, v2.4s, v16.4s\n        fmla            v4.4s, v3.4s, v17.4s\n        fadd            v18.4s, v18.4s, v22.4s\n        fadd            v19.4s, v19.4s, v23.4s\n        ext             v2.16b, v2.16b, v2.16b, #4\n        ext             v3.16b, v3.16b, v3.16b, #4\n        fmla            v4.4s, v2.4s, v18.4s\n        fmla            v4.4s, v3.4s, v19.4s\n        st1             {v4.d}[0], [x0], #8\n        st1             {v4.d}[1], [x1], #8\n        subs            w4, w4, #1\n        b.gt            1b\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/aacpsdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/aacpsdsp_neon.S:3", "text": "zip2            v23.4s, v3.4s, v7.4s\n1:      ld1             {v2.2s}, [x0]\n        ld1             {v3.2s}, [x1]\n        fadd            v16.4s, v16.4s, v20.4s\n        fadd            v17.4s, v17.4s, v21.4s\n        mov             v2.d[1], v2.d[0]\n        mov             v3.d[1], v3.d[0]\n        fmul            v4.4s, v2.4s, v16.4s\n        fmla            v4.4s, v3.4s, v17.4s\n        fadd            v18.4s, v18.4s, v22.4s\n        fadd            v19.4s, v19.4s, v23.4s\n        ext             v2.16b, v2.16b, v2.16b, #4\n        ext             v3.16b, v3.16b, v3.16b, #4\n        fmla            v4.4s, v2.4s, v18.4s\n        fmla            v4.4s, v3.4s, v19.4s\n        st1             {v4.d}[0], [x0], #8\n        st1             {v4.d}[1], [x1], #8\n        subs            w4, w4, #1\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_ps_hybrid_analysis_neon, export=1\n        lsl             x3, x3, #3\n        ld2             {v0.4s,v1.4s}, [x1], #32\n        ld2             {v2.2s,v3.2s}, [x1], #16\n        ld1             {v24.2s},      [x1], #8\n        ld2             {v4.2s,v5.2s}, [x1], #16\n        ld2             {v6.4s,v7.4s}, [x1]\n        rev64           v6.4s, v6.4s\n        rev64           v7.4s, v7.4s\n        ext             v6.16b, v6.16b, v6.16b, #8\n        ext             v7.16b, v7.16b, v7.16b, #8\n        rev64           v4.2s, v4.2s\n        rev64           v5.2s, v5.2s\n        mov             v2.d[1], v3.d[0]\n        mov             v4.d[1], v5.d[0]\n        mov             v5.d[1], v2.d[0]\n        mov             v3.d[1], v4.d[0]\n        fadd            v16.4s, v0.4s, v6.4s\n        fadd            v17.4s, v1.4s, v7.4s\n        fsub            v18.4s, v1.4s, v7.4s\n        fsub            v19.4s, v0.4s, v6.4s\n        fadd            v22.4s, v2.4s, v4.4s\n        fsub            v23.4s, v5.4s, v3.4s\n        trn1            v20.2d, v22.2d, v23.2d      // {re4+re8, re5+re7, im8-im4, im7-im5}\n        trn2            v21.2d, v22.2d, v23.2d      // {im4+im8, im5+im7, re4-re8, re5-re7}\n1:      ld2             {v2.4s,v3.4s}, [x2], #32\n        ld2             {v4.2s,v5.2s}, [x2], #16\n        ld1             {v6.2s},       [x2], #8\n        add             x2, x2, #8\n        mov             v4.d[1], v5.d[0]\n        mov             v6.s[1], v6.s[0]\n        fmul            v6.2s, v6.2s, v24.2s\n        fmul            v0.4s, v2.4s, v16.4s\n        fmul            v1.4s, v2.4s, v17.4s\n        fmls            v0.4s, v3.4s, v18.4s\n        fmla            v1.4s, v3.4s, v19.4s\n        fmla            v0.4s, v4.4s, v20.4s\n        fmla            v1.4s, v4.4s, v21.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/aacpsdsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/aacpsdsp_neon.S:4", "text": "fadd            v17.4s, v1.4s, v7.4s\n        fsub            v18.4s, v1.4s, v7.4s\n        fsub            v19.4s, v0.4s, v6.4s\n        fadd            v22.4s, v2.4s, v4.4s\n        fsub            v23.4s, v5.4s, v3.4s\n        trn1            v20.2d, v22.2d, v23.2d      // {re4+re8, re5+re7, im8-im4, im7-im5}\n        trn2            v21.2d, v22.2d, v23.2d      // {im4+im8, im5+im7, re4-re8, re5-re7}\n1:      ld2             {v2.4s,v3.4s}, [x2], #32\n        ld2             {v4.2s,v5.2s}, [x2], #16\n        ld1             {v6.2s},       [x2], #8\n        add             x2, x2, #8\n        mov             v4.d[1], v5.d[0]\n        mov             v6.s[1], v6.s[0]\n        fmul            v6.2s, v6.2s, v24.2s\n        fmul            v0.4s, v2.4s, v16.4s\n        fmul            v1.4s, v2.4s, v17.4s\n        fmls            v0.4s, v3.4s, v18.4s\n        fmla            v1.4s, v3.4s, v19.4s\n        fmla            v0.4s, v4.4s, v20.4s\n        fmla            v1.4s, v4.4s, v21.4s\n        faddp           v0.4s, v0.4s, v1.4s\n        faddp           v0.4s, v0.4s, v0.4s\n        fadd            v0.2s, v0.2s, v6.2s\n        st1             {v0.2s}, [x0], x3\n        subs            w4, w4, #1\n        b.gt            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/aacpsdsp_neon.S", "line_start": 121, "line_end": 148}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2024 Geoff Hill <geoff@geoffhill.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_ac3_exponent_min_neon, export=1\n        cbz             w1, 3f\n1:      ld1             {v0.16b}, [x0]\n        mov             w3, w1\n        add             x4, x0, #256\n2:      ld1             {v1.16b}, [x4]\n        umin            v0.16b, v0.16b, v1.16b\n        add             x4, x4, #256\n        subs            w3, w3, #1\n        b.gt            2b\n        st1             {v0.16b}, [x0], #16\n        subs            w2, w2, #16\n        b.gt            1b\n3:      ret\nendfunc\n\nfunction ff_ac3_extract_exponents_neon, export=1\n        movi            v1.4s, #8\n1:      ld1             {v0.4s}, [x1], #16\n        abs             v0.4s, v0.4s\n        clz             v0.4s, v0.4s\n        sub             v0.4s, v0.4s, v1.4s\n        xtn             v0.4h, v0.4s\n        xtn             v0.8b, v0.8h\n        st1             {v0.s}[0], [x0], #4\n        subs            w2, w2, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:2", "text": "movi            v1.4s, #8\n1:      ld1             {v0.4s}, [x1], #16\n        abs             v0.4s, v0.4s\n        clz             v0.4s, v0.4s\n        sub             v0.4s, v0.4s, v1.4s\n        xtn             v0.4h, v0.4s\n        xtn             v0.8b, v0.8h\n        st1             {v0.s}[0], [x0], #4\n        subs            w2, w2, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fcvtzs          v3.4s, v3.4s, #24\n        st1             {v2.4s, v3.4s}, [x0], #32\n        subs            w2, w2, #16\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_int32_neon, export=1\n        movi            v0.2d, #0\n        movi            v1.2d, #0\n        movi            v2.2d, #0\n1:      ld1             {v4.2s}, [x1], #8\n        ld1             {v5.2s}, [x2], #8\n        subs            w3, w3, #2\n        smlal           v0.2d, v4.2s, v4.2s // sum of a^2\n        smlal           v1.2d, v5.2s, v5.2s // sum of b^2\n        sqdmlal         v2.2d, v4.2s, v5.2s // sum of 2ab\n        b.gt            1b\n        addp            d0, v0.2d\n        addp            d1, v1.2d\n        addp            d2, v2.2d\n        sub             d3, d0, d2 // a^2 + b^2 - 2ab\n        add             d2, d0, d2\n        add             d3, d3, d1 // a^2 + b^2 + 2ab\n        add             d2, d2, d1\n        st1             {v0.1d-v3.1d}, [x0]\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        movi            v0.4s, #0\n        movi            v1.4s, #0\n        movi            v2.4s, #0\n        movi            v3.4s, #0\n1:      ld1             {v30.4s}, [x1], #16\n        ld1             {v31.4s}, [x2], #16\n        fadd            v16.4s, v30.4s, v31.4s\n        fsub            v17.4s, v30.4s, v31.4s\n        fmla            v0.4s, v30.4s, v30.4s\n        fmla            v1.4s, v31.4s, v31.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:3", "text": "addp            d2, v2.2d\n        sub             d3, d0, d2 // a^2 + b^2 - 2ab\n        add             d2, d0, d2\n        add             d3, d3, d1 // a^2 + b^2 + 2ab\n        add             d2, d2, d1\n        st1             {v0.1d-v3.1d}, [x0]\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        movi            v0.4s, #0\n        movi            v1.4s, #0\n        movi            v2.4s, #0\n        movi            v3.4s, #0\n1:      ld1             {v30.4s}, [x1], #16\n        ld1             {v31.4s}, [x2], #16\n        fadd            v16.4s, v30.4s, v31.4s\n        fsub            v17.4s, v30.4s, v31.4s\n        fmla            v0.4s, v30.4s, v30.4s\n        fmla            v1.4s, v31.4s, v31.4s\n        fmla            v2.4s, v16.4s, v16.4s\n        fmla            v3.4s, v17.4s, v17.4s\n        subs            w3, w3, #4\n        b.gt            1b\n        faddp           v0.4s, v0.4s, v1.4s\n        faddp           v2.4s, v2.4s, v3.4s\n        faddp           v0.4s, v0.4s, v2.4s\n        st1             {v0.4s}, [x0]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 81, "line_end": 110}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:2", "text": "movi            v1.4s, #8\n1:      ld1             {v0.4s}, [x1], #16\n        abs             v0.4s, v0.4s\n        clz             v0.4s, v0.4s\n        sub             v0.4s, v0.4s, v1.4s\n        xtn             v0.4h, v0.4s\n        xtn             v0.8b, v0.8h\n        st1             {v0.s}[0], [x0], #4\n        subs            w2, w2, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fcvtzs          v3.4s, v3.4s, #24\n        st1             {v2.4s, v3.4s}, [x0], #32\n        subs            w2, w2, #16\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_int32_neon, export=1\n        movi            v0.2d, #0\n        movi            v1.2d, #0\n        movi            v2.2d, #0\n        movi            v3.2d, #0\n1:      ld1             {v4.2s}, [x1], #8\n        ld1             {v5.2s}, [x2], #8\n        add             v6.2s, v4.2s, v5.2s\n        sub             v7.2s, v4.2s, v5.2s\n        smlal           v0.2d, v4.2s, v4.2s\n        smlal           v1.2d, v5.2s, v5.2s\n        smlal           v2.2d, v6.2s, v6.2s\n        smlal           v3.2d, v7.2s, v7.2s\n        subs            w3, w3, #2\n        b.gt            1b\n        addp            d0, v0.2d\n        addp            d1, v1.2d\n        addp            d2, v2.2d\n        addp            d3, v3.2d\n        st1             {v0.1d-v3.1d}, [x0]\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        movi            v0.4s, #0\n        movi            v1.4s, #0\n        movi            v2.4s, #0\n        movi            v3.4s, #0\n1:      ld1             {v30.4s}, [x1], #16\n        ld1             {v31.4s}, [x2], #16\n        fadd            v16.4s, v30.4s, v31.4s\n        fsub            v17.4s, v30.4s, v31.4s\n        fmla            v0.4s, v30.4s, v30.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "359b6a7f8aec3736451f5179deb98f173fbff0dd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/359b6a7f8aec3736451f5179deb98f173fbff0dd/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:3", "text": "subs            w3, w3, #2\n        b.gt            1b\n        addp            d0, v0.2d\n        addp            d1, v1.2d\n        addp            d2, v2.2d\n        addp            d3, v3.2d\n        st1             {v0.1d-v3.1d}, [x0]\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        movi            v0.4s, #0\n        movi            v1.4s, #0\n        movi            v2.4s, #0\n        movi            v3.4s, #0\n1:      ld1             {v30.4s}, [x1], #16\n        ld1             {v31.4s}, [x2], #16\n        fadd            v16.4s, v30.4s, v31.4s\n        fsub            v17.4s, v30.4s, v31.4s\n        fmla            v0.4s, v30.4s, v30.4s\n        fmla            v1.4s, v31.4s, v31.4s\n        fmla            v2.4s, v16.4s, v16.4s\n        fmla            v3.4s, v17.4s, v17.4s\n        subs            w3, w3, #4\n        b.gt            1b\n        faddp           v0.4s, v0.4s, v1.4s\n        faddp           v2.4s, v2.4s, v3.4s\n        faddp           v0.4s, v0.4s, v2.4s\n        st1             {v0.4s}, [x0]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "359b6a7f8aec3736451f5179deb98f173fbff0dd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/359b6a7f8aec3736451f5179deb98f173fbff0dd/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 81, "line_end": 111}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:3", "text": "subs            w3, w3, #2\n        b.gt            1b\n        addp            d0, v0.2d\n        addp            d1, v1.2d\n        addp            d2, v2.2d\n        addp            d3, v3.2d\n        st1             {v0.1d-v3.1d}, [x0]\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        movi            v0.4s, #0\n        movi            v1.4s, #0\n        movi            v2.4s, #0\n        movi            v3.4s, #0\n1:      ld1             {v30.4s}, [x1], #16\n        ld1             {v31.4s}, [x2], #16\n        fadd            v16.4s, v30.4s, v31.4s\n        fsub            v17.4s, v30.4s, v31.4s\n        fmla            v0.4s, v30.4s, v30.4s\n        fmla            v1.4s, v31.4s, v31.4s\n        fmla            v2.4s, v16.4s, v16.4s\n        fmla            v3.4s, v17.4s, v17.4s\n        subs            w3, w3, #4\n        b.gt            1b\n        faddp           v0.4s, v0.4s, v0.4s\n        faddp           v0.2s, v0.2s, v0.2s\n        st1             {v0.s}[0], [x0], #4\n        faddp           v1.4s, v1.4s, v1.4s\n        faddp           v1.2s, v1.2s, v1.2s\n        st1             {v1.s}[0], [x0], #4\n        faddp           v2.4s, v2.4s, v2.4s\n        faddp           v2.2s, v2.2s, v2.2s\n        st1             {v2.s}[0], [x0], #4\n        faddp           v3.4s, v3.4s, v3.4s\n        faddp           v3.2s, v3.2s, v3.2s\n        st1             {v3.s}[0], [x0]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "ee1bc723de4cc7038cd414964471888e384de492", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ee1bc723de4cc7038cd414964471888e384de492/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:2", "text": "movi            v1.4s, #8\n1:      ld1             {v0.4s}, [x1], #16\n        abs             v0.4s, v0.4s\n        clz             v0.4s, v0.4s\n        sub             v0.4s, v0.4s, v1.4s\n        xtn             v0.4h, v0.4s\n        xtn             v0.8b, v0.8h\n        st1             {v0.s}[0], [x0], #4\n        subs            w2, w2, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fcvtzs          v3.4s, v3.4s, #24\n        st1             {v2.4s, v3.4s}, [x0], #32\n        subs            w2, w2, #16\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_int32_neon, export=1\n        movi            v0.2d, #0\n        movi            v1.2d, #0\n        movi            v2.2d, #0\n        movi            v3.2d, #0\n1:      ld1             {v4.2s}, [x1], #8\n        ld1             {v5.2s}, [x2], #8\n        add             v6.2s, v4.2s, v5.2s\n        sub             v7.2s, v4.2s, v5.2s\n        smlal           v0.2d, v4.2s, v4.2s\n        smlal           v1.2d, v5.2s, v5.2s\n        smlal           v2.2d, v6.2s, v6.2s\n        smlal           v3.2d, v7.2s, v7.2s\n        subs            w3, w3, #2\n        b.gt            1b\n        addp            d0, v0.2d\n        addp            d1, v1.2d\n        addp            d2, v2.2d\n        addp            d3, v3.2d\n        st1             {v0.1d-v3.1d}, [x0]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "42e88f18f30c275f52cea001b33ca62d8a3ff2d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/42e88f18f30c275f52cea001b33ca62d8a3ff2d1/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 41, "line_end": 89}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:2", "text": "movi            v1.4s, #8\n1:      ld1             {v0.4s}, [x1], #16\n        abs             v0.4s, v0.4s\n        clz             v0.4s, v0.4s\n        sub             v0.4s, v0.4s, v1.4s\n        xtn             v0.4h, v0.4s\n        xtn             v0.8b, v0.8h\n        st1             {v0.s}[0], [x0], #4\n        subs            w2, w2, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fcvtzs          v3.4s, v3.4s, #24\n        st1             {v2.4s, v3.4s}, [x0], #32\n        subs            w2, w2, #16\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "69cb34f8859ed62fd1c46d3612912a334542fe28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69cb34f8859ed62fd1c46d3612912a334542fe28/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 41, "line_end": 66}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2024 Geoff Hill <geoff@geoffhill.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_ac3_exponent_min_neon, export=1\n        cbz             w1, 3f\n1:      ld1             {v0.16b}, [x0]\n        mov             w3, w1\n        add             x4, x0, #256\n2:      ld1             {v1.16b}, [x4]\n        umin            v0.16b, v0.16b, v1.16b\n        add             x4, x4, #256\n        subs            w3, w3, #1\n        b.gt            2b\n        st1             {v0.16b}, [x0], #16\n        subs            w2, w2, #16\n        b.gt            1b\n3:      ret\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fcvtzs          v3.4s, v3.4s, #24\n        st1             {v2.4s, v3.4s}, [x0], #32\n        subs            w2, w2, #16\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "6f6bd10531e439de67d1354c5fc6f78cc031c66b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6f6bd10531e439de67d1354c5fc6f78cc031c66b/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 1, "line_end": 52}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/ac3dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2024 Geoff Hill <geoff@geoffhill.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      ld1             {v0.4s, v1.4s}, [x1], #32\n        fcvtzs          v0.4s, v0.4s, #24\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fcvtzs          v1.4s, v1.4s, #24\n        fcvtzs          v2.4s, v2.4s, #24\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fcvtzs          v3.4s, v3.4s, #24\n        st1             {v2.4s, v3.4s}, [x0], #32\n        subs            w2, w2, #16\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "b69486ea18ed1a278501911c161a5f72f1622ad3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b69486ea18ed1a278501911c161a5f72f1622ad3/libavcodec/aarch64/ac3dsp_neon.S", "line_start": 1, "line_end": 36}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/dcadsp_neon.S:1", "text": "/*\n * AArch64 NEON optimised DCA LFE FIR filter functions\n * Copyright (c) 2026 Jeongkeun Kim <variety0724@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_lfe_fir0_float_neon, export=1\n        lsr             x3, x3, #1\n        sub             x1, x1, #(7*4)\n.Louter0:\n        ld1             {v4.4s, v5.4s}, [x1]\n        scvtf           v4.4s, v4.4s\n        scvtf           v5.4s, v5.4s\n\n        ext             v6.16b, v5.16b, v5.16b, #8\n        rev64           v6.4s,  v6.4s\n        ext             v7.16b, v4.16b, v4.16b, #8\n        rev64           v7.4s,  v7.4s\n\n        mov             x4, x2\n        add             x5, x2, #(248*4)\n        mov             x6, x0\n        add             x7, x0, #(32*4)\n        mov             w8, #32\n.Linner0:\n        ld1             {v0.4s,  v1.4s},  [x4], #32\n        ld1             {v16.4s, v17.4s}, [x5]\n        sub             x5, x5, #32\n        subs            w8, w8, #1\n        fmul            v2.4s, v0.4s,  v6.4s\n        fmul            v3.4s, v16.4s, v4.4s\n        fmla            v2.4s, v1.4s,  v7.4s\n        fmla            v3.4s, v17.4s, v5.4s\n        faddp           v2.4s, v2.4s, v2.4s\n        faddp           v3.4s, v3.4s, v3.4s\n        faddp           s2, v2.2s\n        faddp           s3, v3.2s\n        str             s2, [x6], #4\n        str             s3, [x7], #4\n        b.gt            .Linner0\n\n        subs            x3, x3, #1\n        add             x1, x1, #4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/dcadsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/dcadsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/dcadsp_neon.S:2", "text": "mov             w8, #32\n.Linner0:\n        ld1             {v0.4s,  v1.4s},  [x4], #32\n        ld1             {v16.4s, v17.4s}, [x5]\n        sub             x5, x5, #32\n        subs            w8, w8, #1\n        fmul            v2.4s, v0.4s,  v6.4s\n        fmul            v3.4s, v16.4s, v4.4s\n        fmla            v2.4s, v1.4s,  v7.4s\n        fmla            v3.4s, v17.4s, v5.4s\n        faddp           v2.4s, v2.4s, v2.4s\n        faddp           v3.4s, v3.4s, v3.4s\n        faddp           s2, v2.2s\n        faddp           s3, v3.2s\n        str             s2, [x6], #4\n        str             s3, [x7], #4\n        b.gt            .Linner0\n\n        subs            x3, x3, #1\n        add             x1, x1, #4\n        add             x0, x0, #(64*4)\n        b.gt            .Louter0\n        ret\nendfunc\n\nfunction ff_lfe_fir1_float_neon, export=1\n        lsr             x3, x3, #2\n        sub             x1, x1, #(3*4)\n.Louter1:\n        ld1             {v4.4s}, [x1]\n        scvtf           v4.4s, v4.4s\n\n        ext             v5.16b, v4.16b, v4.16b, #8\n        rev64           v5.4s,  v5.4s\n\n        mov             x4, x2\n        add             x5, x2, #(252*4)\n        mov             x6, x0\n        add             x7, x0, #(64*4)\n        mov             w8, #64\n.Linner1:\n        ld1             {v0.4s},  [x4], #16\n        ld1             {v16.4s}, [x5]\n        sub             x5, x5, #16\n        subs            w8, w8, #1\n        fmul            v2.4s, v0.4s,  v5.4s\n        fmul            v3.4s, v16.4s, v4.4s\n        faddp           v2.4s, v2.4s, v2.4s\n        faddp           v3.4s, v3.4s, v3.4s\n        faddp           s2, v2.2s\n        faddp           s3, v3.2s\n        str             s2, [x6], #4\n        str             s3, [x7], #4\n        b.gt            .Linner1\n\n        subs            x3, x3, #1\n        add             x1, x1, #4\n        add             x0, x0, #(128*4)\n        b.gt            .Louter1\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/dcadsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/dcadsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/dcadsp_neon.S:3", "text": ".Linner1:\n        ld1             {v0.4s},  [x4], #16\n        ld1             {v16.4s}, [x5]\n        sub             x5, x5, #16\n        subs            w8, w8, #1\n        fmul            v2.4s, v0.4s,  v5.4s\n        fmul            v3.4s, v16.4s, v4.4s\n        faddp           v2.4s, v2.4s, v2.4s\n        faddp           v3.4s, v3.4s, v3.4s\n        faddp           s2, v2.2s\n        faddp           s3, v3.2s\n        str             s2, [x6], #4\n        str             s3, [x7], #4\n        b.gt            .Linner1\n\n        subs            x3, x3, #1\n        add             x1, x1, #4\n        add             x0, x0, #(128*4)\n        b.gt            .Louter1\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/dcadsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/dcadsp_neon.S", "line_start": 81, "line_end": 101}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:2", "text": "#define F_0_899   7373  /* FIX(0.899976223) */\n#define F_1_175   9633  /* FIX(1.175875602) */\n#define F_1_501  12299  /* FIX(1.501321110) */\n#define F_1_847  15137  /* FIX(1.847759065) */\n#define F_1_961  16069  /* FIX(1.961570560) */\n#define F_2_053  16819  /* FIX(2.053119869) */\n#define F_2_562  20995  /* FIX(2.562915447) */\n#define F_3_072  25172  /* FIX(3.072711026) */\n\nconst jsimd_fdct_islow_neon_consts, align=4\n        .short F_0_298\n        .short -F_0_390\n        .short F_0_541\n        .short F_0_765\n        .short - F_0_899\n        .short F_1_175\n        .short F_1_501\n        .short - F_1_847\n        .short - F_1_961\n        .short F_2_053\n        .short - F_2_562\n        .short F_3_072\n        .short 0          /* padding */\n        .short 0\n        .short 0\n        .short 0\nendconst\n\n#undef F_0_298\n#undef F_0_390\n#undef F_0_541\n#undef F_0_765\n#undef F_0_899\n#undef F_1_175\n#undef F_1_501\n#undef F_1_847\n#undef F_1_961\n#undef F_2_053\n#undef F_2_562\n#undef F_3_072\n\n/*****************************************************************************/\n\n/*\n * jsimd_fdct_islow_neon\n *\n * This file contains a slower but more accurate integer implementation of the\n * forward DCT (Discrete Cosine Transform). The following code is based\n * directly on the IJG''s original jfdctint.c; see the jfdctint.c for\n * more details.\n */\n\n#define CONST_BITS  13\n#ifdef EIGHT_BIT_SAMPLES\n#define PASS1_BITS  2\n#else\n#define PASS1_BITS  1   /* lose a little precision to avoid overflow */\n#endif\n\n#define DESCALE_P1  (CONST_BITS - PASS1_BITS)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:4", "text": "/* Load constants */\n        movrel          TMP, jsimd_fdct_islow_neon_consts\n        ld1             {v0.8h, v1.8h}, [TMP]\n\n        /* Load all DATA into Neon registers with the following allocation:\n         *       0 1 2 3 | 4 5 6 7\n         *      ---------+--------\n         *   0 | d16     | d17    | v16.8h\n         *   1 | d18     | d19    | v17.8h\n         *   2 | d20     | d21    | v18.8h\n         *   3 | d22     | d23    | v19.8h\n         *   4 | d24     | d25    | v20.8h\n         *   5 | d26     | d27    | v21.8h\n         *   6 | d28     | d29    | v22.8h\n         *   7 | d30     | d31    | v23.8h\n         */\n\n        ld1             {v16.8h, v17.8h, v18.8h, v19.8h}, [DATA], 64\n        ld1             {v20.8h, v21.8h, v22.8h, v23.8h}, [DATA]\n        sub             DATA, DATA, #64\n\n        /* Transpose */\n        transpose_8x8H  v16, v17, v18, v19, v20, v21, v22, v23, v31, v2\n\n        /* 1-D FDCT */\n        add             v24.8h, v16.8h, v23.8h  /* tmp0 = dataptr[0] + dataptr[7]; */\n        sub             v31.8h, v16.8h, v23.8h  /* tmp7 = dataptr[0] - dataptr[7]; */\n        add             v25.8h, v17.8h, v22.8h  /* tmp1 = dataptr[1] + dataptr[6]; */\n        sub             v30.8h, v17.8h, v22.8h  /* tmp6 = dataptr[1] - dataptr[6]; */\n        add             v26.8h, v18.8h, v21.8h  /* tmp2 = dataptr[2] + dataptr[5]; */\n        sub             v29.8h, v18.8h, v21.8h  /* tmp5 = dataptr[2] - dataptr[5]; */\n        add             v27.8h, v19.8h, v20.8h  /* tmp3 = dataptr[3] + dataptr[4]; */\n        sub             v28.8h, v19.8h, v20.8h  /* tmp4 = dataptr[3] - dataptr[4]; */\n\n        /* Even part */\n        add             v4.8h, v24.8h, v27.8h   /* tmp10 = tmp0 + tmp3; */\n        sub             v5.8h, v24.8h, v27.8h   /* tmp13 = tmp0 - tmp3; */\n        add             v6.8h, v25.8h, v26.8h   /* tmp11 = tmp1 + tmp2; */\n        sub             v7.8h, v25.8h, v26.8h   /* tmp12 = tmp1 - tmp2; */\n\n        add             v16.8h, v4.8h, v6.8h   /* tmp10 + tmp11 */\n        sub             v20.8h, v4.8h, v6.8h   /* tmp10 - tmp11 */\n\n        add             v18.8h, v7.8h, v5.8h   /* tmp12 + tmp13 */\n\n        shl             v16.8h, v16.8h, #PASS1_BITS  /* dataptr[0] = (DCTELEM)LEFT_SHIFT(tmp10 + tmp11, PASS1_BITS); */\n        shl             v20.8h, v20.8h, #PASS1_BITS  /* dataptr[4] = (DCTELEM)LEFT_SHIFT(tmp10 - tmp11, PASS1_BITS); */\n\n        smull2          v24.4s, v18.8h, XFIX_P_0_541  /* z1 hi = MULTIPLY(tmp12 + tmp13, XFIX_P_0_541); */\n        smull           v18.4s, v18.4h, XFIX_P_0_541  /* z1 lo = MULTIPLY(tmp12 + tmp13, XFIX_P_0_541); */\n        mov             v22.16b, v18.16b\n        mov             v25.16b, v24.16b\n\n        smlal           v18.4s, v5.4h, XFIX_P_0_765   /* lo z1 + MULTIPLY(tmp13, XFIX_P_0_765) */\n        smlal2          v24.4s, v5.8h, XFIX_P_0_765   /* hi z1 + MULTIPLY(tmp13, XFIX_P_0_765) */\n        smlal           v22.4s, v7.4h, XFIX_N_1_847   /* lo z1 + MULTIPLY(tmp12, XFIX_N_1_847) */\n        smlal2          v25.4s, v7.8h, XFIX_N_1_847   /* hi z1 + MULTIPLY(tmp12, XFIX_N_1_847) */\n\n        rshrn           v18.4h, v18.4s, #DESCALE_P1\n        rshrn           v22.4h, v22.4s, #DESCALE_P1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:5", "text": "add             v16.8h, v4.8h, v6.8h   /* tmp10 + tmp11 */\n        sub             v20.8h, v4.8h, v6.8h   /* tmp10 - tmp11 */\n\n        add             v18.8h, v7.8h, v5.8h   /* tmp12 + tmp13 */\n\n        shl             v16.8h, v16.8h, #PASS1_BITS  /* dataptr[0] = (DCTELEM)LEFT_SHIFT(tmp10 + tmp11, PASS1_BITS); */\n        shl             v20.8h, v20.8h, #PASS1_BITS  /* dataptr[4] = (DCTELEM)LEFT_SHIFT(tmp10 - tmp11, PASS1_BITS); */\n\n        smull2          v24.4s, v18.8h, XFIX_P_0_541  /* z1 hi = MULTIPLY(tmp12 + tmp13, XFIX_P_0_541); */\n        smull           v18.4s, v18.4h, XFIX_P_0_541  /* z1 lo = MULTIPLY(tmp12 + tmp13, XFIX_P_0_541); */\n        mov             v22.16b, v18.16b\n        mov             v25.16b, v24.16b\n\n        smlal           v18.4s, v5.4h, XFIX_P_0_765   /* lo z1 + MULTIPLY(tmp13, XFIX_P_0_765) */\n        smlal2          v24.4s, v5.8h, XFIX_P_0_765   /* hi z1 + MULTIPLY(tmp13, XFIX_P_0_765) */\n        smlal           v22.4s, v7.4h, XFIX_N_1_847   /* lo z1 + MULTIPLY(tmp12, XFIX_N_1_847) */\n        smlal2          v25.4s, v7.8h, XFIX_N_1_847   /* hi z1 + MULTIPLY(tmp12, XFIX_N_1_847) */\n\n        rshrn           v18.4h, v18.4s, #DESCALE_P1\n        rshrn           v22.4h, v22.4s, #DESCALE_P1\n        rshrn2          v18.8h, v24.4s, #DESCALE_P1  /* dataptr[2] = (DCTELEM)DESCALE(z1 + MULTIPLY(tmp13, XFIX_P_0_765), CONST_BITS-PASS1_BITS); */\n        rshrn2          v22.8h, v25.4s, #DESCALE_P1  /* dataptr[6] = (DCTELEM)DESCALE(z1 + MULTIPLY(tmp12, XFIX_N_1_847), CONST_BITS-PASS1_BITS); */\n\n        /* Odd part */\n        add             v2.8h, v28.8h, v31.8h        /* z1 = tmp4 + tmp7; */\n        add             v3.8h, v29.8h, v30.8h        /* z2 = tmp5 + tmp6; */\n        add             v6.8h, v28.8h, v30.8h        /* z3 = tmp4 + tmp6; */\n        add             v7.8h, v29.8h, v31.8h        /* z4 = tmp5 + tmp7; */\n        smull           v4.4s, v6.4h, XFIX_P_1_175   /* z5 lo = z3 lo * XFIX_P_1_175 */\n        smull2          v5.4s, v6.8h, XFIX_P_1_175\n        smlal           v4.4s, v7.4h, XFIX_P_1_175   /* z5 = MULTIPLY(z3 + z4, FIX_1_175875602); */\n        smlal2          v5.4s, v7.8h, XFIX_P_1_175\n\n        smull2          v24.4s, v28.8h, XFIX_P_0_298\n        smull2          v25.4s, v29.8h, XFIX_P_2_053\n        smull2          v26.4s, v30.8h, XFIX_P_3_072\n        smull2          v27.4s, v31.8h, XFIX_P_1_501\n        smull           v23.4s, v28.4h, XFIX_P_0_298  /* tmp4 = MULTIPLY(tmp4, FIX_0_298631336); */\n        smull           v21.4s, v29.4h, XFIX_P_2_053  /* tmp5 = MULTIPLY(tmp5, FIX_2_053119869); */\n        smull           v19.4s, v30.4h, XFIX_P_3_072  /* tmp6 = MULTIPLY(tmp6, FIX_3_072711026); */\n        smull           v17.4s, v31.4h, XFIX_P_1_501  /* tmp7 = MULTIPLY(tmp7, FIX_1_501321110); */\n\n        smull2          v28.4s, v2.8h, XFIX_N_0_899\n        smull2          v29.4s, v3.8h, XFIX_N_2_562\n        smull2          v30.4s, v6.8h, XFIX_N_1_961\n        smull2          v31.4s, v7.8h, XFIX_N_0_390\n        smull           v2.4s, v2.4h, XFIX_N_0_899    /* z1 = MULTIPLY(z1, -FIX_0_899976223); */\n        smull           v3.4s, v3.4h, XFIX_N_2_562    /* z2 = MULTIPLY(z2, -FIX_2_562915447); */\n        smull           v6.4s, v6.4h, XFIX_N_1_961    /* z3 = MULTIPLY(z3, -FIX_1_961570560); */\n        smull           v7.4s, v7.4h, XFIX_N_0_390    /* z4 = MULTIPLY(z4, -FIX_0_390180644); */\n\n        add             v6.4s, v6.4s, v4.4s    /* z3 += z5 */\n        add             v30.4s, v30.4s, v5.4s\n        add             v7.4s, v7.4s, v4.4s    /* z4 += z5 */\n        add             v31.4s, v31.4s, v5.4s\n\n        add             v23.4s, v23.4s, v2.4s   /* tmp4 += z1 */\n        add             v24.4s, v24.4s, v28.4s\n        add             v21.4s, v21.4s, v3.4s   /* tmp5 += z2 */\n        add             v25.4s, v25.4s, v29.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:6", "text": "smull           v17.4s, v31.4h, XFIX_P_1_501  /* tmp7 = MULTIPLY(tmp7, FIX_1_501321110); */\n\n        smull2          v28.4s, v2.8h, XFIX_N_0_899\n        smull2          v29.4s, v3.8h, XFIX_N_2_562\n        smull2          v30.4s, v6.8h, XFIX_N_1_961\n        smull2          v31.4s, v7.8h, XFIX_N_0_390\n        smull           v2.4s, v2.4h, XFIX_N_0_899    /* z1 = MULTIPLY(z1, -FIX_0_899976223); */\n        smull           v3.4s, v3.4h, XFIX_N_2_562    /* z2 = MULTIPLY(z2, -FIX_2_562915447); */\n        smull           v6.4s, v6.4h, XFIX_N_1_961    /* z3 = MULTIPLY(z3, -FIX_1_961570560); */\n        smull           v7.4s, v7.4h, XFIX_N_0_390    /* z4 = MULTIPLY(z4, -FIX_0_390180644); */\n\n        add             v6.4s, v6.4s, v4.4s    /* z3 += z5 */\n        add             v30.4s, v30.4s, v5.4s\n        add             v7.4s, v7.4s, v4.4s    /* z4 += z5 */\n        add             v31.4s, v31.4s, v5.4s\n\n        add             v23.4s, v23.4s, v2.4s   /* tmp4 += z1 */\n        add             v24.4s, v24.4s, v28.4s\n        add             v21.4s, v21.4s, v3.4s   /* tmp5 += z2 */\n        add             v25.4s, v25.4s, v29.4s\n        add             v19.4s, v19.4s, v6.4s   /* tmp6 += z3 */\n        add             v26.4s, v26.4s, v30.4s\n        add             v17.4s, v17.4s, v7.4s   /* tmp7 += z4 */\n        add             v27.4s, v27.4s, v31.4s\n\n        add             v23.4s, v23.4s, v6.4s   /* tmp4 += z3 */\n        add             v24.4s, v24.4s, v30.4s\n        add             v21.4s, v21.4s, v7.4s   /* tmp5 += z4 */\n        add             v25.4s, v25.4s, v31.4s\n        add             v19.4s, v19.4s, v3.4s   /* tmp6 += z2 */\n        add             v26.4s, v26.4s, v29.4s\n        add             v17.4s, v17.4s, v2.4s   /* tmp7 += z1 */\n        add             v27.4s, v27.4s, v28.4s\n\n        rshrn           v23.4h, v23.4s, #DESCALE_P1\n        rshrn           v21.4h, v21.4s, #DESCALE_P1\n        rshrn           v19.4h, v19.4s, #DESCALE_P1\n        rshrn           v17.4h, v17.4s, #DESCALE_P1\n        rshrn2          v23.8h, v24.4s, #DESCALE_P1  /* dataptr[7] = (DCTELEM)DESCALE(tmp4 + z1 + z3, CONST_BITS-PASS1_BITS); */\n        rshrn2          v21.8h, v25.4s, #DESCALE_P1  /* dataptr[5] = (DCTELEM)DESCALE(tmp5 + z2 + z4, CONST_BITS-PASS1_BITS); */\n        rshrn2          v19.8h, v26.4s, #DESCALE_P1  /* dataptr[3] = (DCTELEM)DESCALE(tmp6 + z2 + z3, CONST_BITS-PASS1_BITS); */\n        rshrn2          v17.8h, v27.4s, #DESCALE_P1  /* dataptr[1] = (DCTELEM)DESCALE(tmp7 + z1 + z4, CONST_BITS-PASS1_BITS); */\n\n        /* Transpose */\n        transpose_8x8H  v16, v17, v18, v19, v20, v21, v22, v23, v31, v2\n\n        /* 1-D FDCT */\n        add             v24.8h, v16.8h, v23.8h  /* tmp0 = dataptr[0] + dataptr[7]; */\n        sub             v31.8h, v16.8h, v23.8h  /* tmp7 = dataptr[0] - dataptr[7]; */\n        add             v25.8h, v17.8h, v22.8h  /* tmp1 = dataptr[1] + dataptr[6]; */\n        sub             v30.8h, v17.8h, v22.8h  /* tmp6 = dataptr[1] - dataptr[6]; */\n        add             v26.8h, v18.8h, v21.8h  /* tmp2 = dataptr[2] + dataptr[5]; */\n        sub             v29.8h, v18.8h, v21.8h  /* tmp5 = dataptr[2] - dataptr[5]; */\n        add             v27.8h, v19.8h, v20.8h  /* tmp3 = dataptr[3] + dataptr[4]; */\n        sub             v28.8h, v19.8h, v20.8h  /* tmp4 = dataptr[3] - dataptr[4]; */\n\n        /* Even part */\n        add             v4.8h, v24.8h, v27.8h   /* tmp10 = tmp0 + tmp3; */\n        sub             v5.8h, v24.8h, v27.8h   /* tmp13 = tmp0 - tmp3; */\n        add             v6.8h, v25.8h, v26.8h   /* tmp11 = tmp1 + tmp2; */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:7", "text": "rshrn2          v19.8h, v26.4s, #DESCALE_P1  /* dataptr[3] = (DCTELEM)DESCALE(tmp6 + z2 + z3, CONST_BITS-PASS1_BITS); */\n        rshrn2          v17.8h, v27.4s, #DESCALE_P1  /* dataptr[1] = (DCTELEM)DESCALE(tmp7 + z1 + z4, CONST_BITS-PASS1_BITS); */\n\n        /* Transpose */\n        transpose_8x8H  v16, v17, v18, v19, v20, v21, v22, v23, v31, v2\n\n        /* 1-D FDCT */\n        add             v24.8h, v16.8h, v23.8h  /* tmp0 = dataptr[0] + dataptr[7]; */\n        sub             v31.8h, v16.8h, v23.8h  /* tmp7 = dataptr[0] - dataptr[7]; */\n        add             v25.8h, v17.8h, v22.8h  /* tmp1 = dataptr[1] + dataptr[6]; */\n        sub             v30.8h, v17.8h, v22.8h  /* tmp6 = dataptr[1] - dataptr[6]; */\n        add             v26.8h, v18.8h, v21.8h  /* tmp2 = dataptr[2] + dataptr[5]; */\n        sub             v29.8h, v18.8h, v21.8h  /* tmp5 = dataptr[2] - dataptr[5]; */\n        add             v27.8h, v19.8h, v20.8h  /* tmp3 = dataptr[3] + dataptr[4]; */\n        sub             v28.8h, v19.8h, v20.8h  /* tmp4 = dataptr[3] - dataptr[4]; */\n\n        /* Even part */\n        add             v4.8h, v24.8h, v27.8h   /* tmp10 = tmp0 + tmp3; */\n        sub             v5.8h, v24.8h, v27.8h   /* tmp13 = tmp0 - tmp3; */\n        add             v6.8h, v25.8h, v26.8h   /* tmp11 = tmp1 + tmp2; */\n        sub             v7.8h, v25.8h, v26.8h   /* tmp12 = tmp1 - tmp2; */\n\n        add             v16.8h, v4.8h, v6.8h   /* tmp10 + tmp11 */\n        sub             v20.8h, v4.8h, v6.8h   /* tmp10 - tmp11 */\n\n        add             v18.8h, v7.8h, v5.8h   /* tmp12 + tmp13 */\n\n        srshr           v16.8h, v16.8h, #PASS1_BITS  /* dataptr[0] = (DCTELEM)DESCALE(tmp10 + tmp11, PASS1_BITS); */\n        srshr           v20.8h, v20.8h, #PASS1_BITS  /* dataptr[4] = (DCTELEM)DESCALE(tmp10 - tmp11, PASS1_BITS); */\n\n        smull2          v24.4s, v18.8h, XFIX_P_0_541  /* z1 hi = MULTIPLY(tmp12 + tmp13, XFIX_P_0_541); */\n        smull           v18.4s, v18.4h, XFIX_P_0_541  /* z1 lo = MULTIPLY(tmp12 + tmp13, XFIX_P_0_541); */\n        mov             v22.16b, v18.16b\n        mov             v25.16b, v24.16b\n\n        smlal           v18.4s, v5.4h, XFIX_P_0_765   /* lo z1 + MULTIPLY(tmp13, XFIX_P_0_765) */\n        smlal2          v24.4s, v5.8h, XFIX_P_0_765   /* hi z1 + MULTIPLY(tmp13, XFIX_P_0_765) */\n        smlal           v22.4s, v7.4h, XFIX_N_1_847   /* lo z1 + MULTIPLY(tmp12, XFIX_N_1_847) */\n        smlal2          v25.4s, v7.8h, XFIX_N_1_847   /* hi z1 + MULTIPLY(tmp12, XFIX_N_1_847) */\n\n        rshrn           v18.4h, v18.4s, #DESCALE_P2\n        rshrn           v22.4h, v22.4s, #DESCALE_P2\n        rshrn2          v18.8h, v24.4s, #DESCALE_P2  /* dataptr[2] = (DCTELEM)DESCALE(z1 + MULTIPLY(tmp13, XFIX_P_0_765), CONST_BITS+PASS1_BITS); */\n        rshrn2          v22.8h, v25.4s, #DESCALE_P2  /* dataptr[6] = (DCTELEM)DESCALE(z1 + MULTIPLY(tmp12, XFIX_N_1_847), CONST_BITS+PASS1_BITS); */\n\n        /* Odd part */\n        add             v2.8h, v28.8h, v31.8h   /* z1 = tmp4 + tmp7; */\n        add             v3.8h, v29.8h, v30.8h   /* z2 = tmp5 + tmp6; */\n        add             v6.8h, v28.8h, v30.8h   /* z3 = tmp4 + tmp6; */\n        add             v7.8h, v29.8h, v31.8h   /* z4 = tmp5 + tmp7; */\n\n        smull           v4.4s, v6.4h, XFIX_P_1_175   /* z5 lo = z3 lo * XFIX_P_1_175 */\n        smull2          v5.4s, v6.8h, XFIX_P_1_175\n        smlal           v4.4s, v7.4h, XFIX_P_1_175   /* z5 = MULTIPLY(z3 + z4, FIX_1_175875602); */\n        smlal2          v5.4s, v7.8h, XFIX_P_1_175\n\n        smull2          v24.4s, v28.8h, XFIX_P_0_298\n        smull2          v25.4s, v29.8h, XFIX_P_2_053\n        smull2          v26.4s, v30.8h, XFIX_P_3_072\n        smull2          v27.4s, v31.8h, XFIX_P_1_501", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:8", "text": "rshrn           v18.4h, v18.4s, #DESCALE_P2\n        rshrn           v22.4h, v22.4s, #DESCALE_P2\n        rshrn2          v18.8h, v24.4s, #DESCALE_P2  /* dataptr[2] = (DCTELEM)DESCALE(z1 + MULTIPLY(tmp13, XFIX_P_0_765), CONST_BITS+PASS1_BITS); */\n        rshrn2          v22.8h, v25.4s, #DESCALE_P2  /* dataptr[6] = (DCTELEM)DESCALE(z1 + MULTIPLY(tmp12, XFIX_N_1_847), CONST_BITS+PASS1_BITS); */\n\n        /* Odd part */\n        add             v2.8h, v28.8h, v31.8h   /* z1 = tmp4 + tmp7; */\n        add             v3.8h, v29.8h, v30.8h   /* z2 = tmp5 + tmp6; */\n        add             v6.8h, v28.8h, v30.8h   /* z3 = tmp4 + tmp6; */\n        add             v7.8h, v29.8h, v31.8h   /* z4 = tmp5 + tmp7; */\n\n        smull           v4.4s, v6.4h, XFIX_P_1_175   /* z5 lo = z3 lo * XFIX_P_1_175 */\n        smull2          v5.4s, v6.8h, XFIX_P_1_175\n        smlal           v4.4s, v7.4h, XFIX_P_1_175   /* z5 = MULTIPLY(z3 + z4, FIX_1_175875602); */\n        smlal2          v5.4s, v7.8h, XFIX_P_1_175\n\n        smull2          v24.4s, v28.8h, XFIX_P_0_298\n        smull2          v25.4s, v29.8h, XFIX_P_2_053\n        smull2          v26.4s, v30.8h, XFIX_P_3_072\n        smull2          v27.4s, v31.8h, XFIX_P_1_501\n        smull           v23.4s, v28.4h, XFIX_P_0_298  /* tmp4 = MULTIPLY(tmp4, FIX_0_298631336); */\n        smull           v21.4s, v29.4h, XFIX_P_2_053  /* tmp5 = MULTIPLY(tmp5, FIX_2_053119869); */\n        smull           v19.4s, v30.4h, XFIX_P_3_072  /* tmp6 = MULTIPLY(tmp6, FIX_3_072711026); */\n        smull           v17.4s, v31.4h, XFIX_P_1_501  /* tmp7 = MULTIPLY(tmp7, FIX_1_501321110); */\n\n        smull2          v28.4s, v2.8h, XFIX_N_0_899\n        smull2          v29.4s, v3.8h, XFIX_N_2_562\n        smull2          v30.4s, v6.8h, XFIX_N_1_961\n        smull2          v31.4s, v7.8h, XFIX_N_0_390\n        smull           v2.4s, v2.4h, XFIX_N_0_899    /* z1 = MULTIPLY(z1, -FIX_0_899976223); */\n        smull           v3.4s, v3.4h, XFIX_N_2_562    /* z2 = MULTIPLY(z2, -FIX_2_562915447); */\n        smull           v6.4s, v6.4h, XFIX_N_1_961    /* z3 = MULTIPLY(z3, -FIX_1_961570560); */\n        smull           v7.4s, v7.4h, XFIX_N_0_390    /* z4 = MULTIPLY(z4, -FIX_0_390180644); */\n\n        add             v6.4s, v6.4s, v4.4s    /* z3 += z5 */\n        add             v30.4s, v30.4s, v5.4s\n        add             v7.4s, v7.4s, v4.4s    /* z4 += z5 */\n        add             v31.4s, v31.4s, v5.4s\n\n        add             v23.4s, v23.4s, v2.4s   /* tmp4 += z1 */\n        add             v24.4s, v24.4s, v28.4s\n        add             v21.4s, v21.4s, v3.4s   /* tmp5 += z2 */\n        add             v25.4s, v25.4s, v29.4s\n        add             v19.4s, v19.4s, v6.4s   /* tmp6 += z3 */\n        add             v26.4s, v26.4s, v30.4s\n        add             v17.4s, v17.4s, v7.4s   /* tmp7 += z4 */\n        add             v27.4s, v27.4s, v31.4s\n\n        add             v23.4s, v23.4s, v6.4s   /* tmp4 += z3 */\n        add             v24.4s, v24.4s, v30.4s\n        add             v21.4s, v21.4s, v7.4s   /* tmp5 += z4 */\n        add             v25.4s, v25.4s, v31.4s\n        add             v19.4s, v19.4s, v3.4s   /* tmp6 += z2 */\n        add             v26.4s, v26.4s, v29.4s\n        add             v17.4s, v17.4s, v2.4s   /* tmp7 += z1 */\n        add             v27.4s, v27.4s, v28.4s\n\n        rshrn           v23.4h, v23.4s, #DESCALE_P2\n        rshrn           v21.4h, v21.4s, #DESCALE_P2\n        rshrn           v19.4h, v19.4s, #DESCALE_P2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fdctdsp_neon.S:9", "text": "add             v24.4s, v24.4s, v28.4s\n        add             v21.4s, v21.4s, v3.4s   /* tmp5 += z2 */\n        add             v25.4s, v25.4s, v29.4s\n        add             v19.4s, v19.4s, v6.4s   /* tmp6 += z3 */\n        add             v26.4s, v26.4s, v30.4s\n        add             v17.4s, v17.4s, v7.4s   /* tmp7 += z4 */\n        add             v27.4s, v27.4s, v31.4s\n\n        add             v23.4s, v23.4s, v6.4s   /* tmp4 += z3 */\n        add             v24.4s, v24.4s, v30.4s\n        add             v21.4s, v21.4s, v7.4s   /* tmp5 += z4 */\n        add             v25.4s, v25.4s, v31.4s\n        add             v19.4s, v19.4s, v3.4s   /* tmp6 += z2 */\n        add             v26.4s, v26.4s, v29.4s\n        add             v17.4s, v17.4s, v2.4s   /* tmp7 += z1 */\n        add             v27.4s, v27.4s, v28.4s\n\n        rshrn           v23.4h, v23.4s, #DESCALE_P2\n        rshrn           v21.4h, v21.4s, #DESCALE_P2\n        rshrn           v19.4h, v19.4s, #DESCALE_P2\n        rshrn           v17.4h, v17.4s, #DESCALE_P2\n        rshrn2          v23.8h, v24.4s, #DESCALE_P2  /* dataptr[7] = (DCTELEM)DESCALE(tmp4 + z1 + z3, CONST_BITS+PASS1_BITS); */\n        rshrn2          v21.8h, v25.4s, #DESCALE_P2  /* dataptr[5] = (DCTELEM)DESCALE(tmp5 + z2 + z4, CONST_BITS+PASS1_BITS); */\n        rshrn2          v19.8h, v26.4s, #DESCALE_P2  /* dataptr[3] = (DCTELEM)DESCALE(tmp6 + z2 + z3, CONST_BITS+PASS1_BITS); */\n        rshrn2          v17.8h, v27.4s, #DESCALE_P2  /* dataptr[1] = (DCTELEM)DESCALE(tmp7 + z1 + z4, CONST_BITS+PASS1_BITS); */\n\n        /* Store results */\n        st1             {v16.8h, v17.8h, v18.8h, v19.8h}, [DATA], 64\n        st1             {v20.8h, v21.8h, v22.8h, v23.8h}, [DATA]\n\n        ret\n\n        .unreq          DATA\n        .unreq          TMP\nendfunc\n\n#undef XFIX_P_0_298\n#undef XFIX_N_0_390\n#undef XFIX_P_0_541\n#undef XFIX_P_0_765\n#undef XFIX_N_0_899\n#undef XFIX_P_1_175\n#undef XFIX_P_1_501\n#undef XFIX_N_1_847\n#undef XFIX_N_1_961\n#undef XFIX_P_2_053\n#undef XFIX_N_2_562\n#undef XFIX_P_3_072", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fdctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fdctdsp_neon.S", "line_start": 321, "line_end": 368}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fmtconvert_neon.S:1", "text": "/*\n * ARM NEON optimised Format Conversion Utils\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2015 Janne Grunau  <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_int32_to_float_fmul_scalar_neon, export=1\n        ld1             {v1.4s,v2.4s}, [x1], #32\n        scvtf           v1.4s,  v1.4s\n        scvtf           v2.4s,  v2.4s\n1:\n        subs            w2,  w2,  #8\n        fmul            v3.4s,  v1.4s,  v0.s[0]\n        fmul            v4.4s,  v2.4s,  v0.s[0]\n        b.le            2f\n        ld1             {v1.4s,v2.4s}, [x1], #32\n        st1             {v3.4s,v4.4s}, [x0], #32\n        scvtf           v1.4s,  v1.4s\n        scvtf           v2.4s,  v2.4s\n        b               1b\n2:\n        st1             {v3.4s,v4.4s}, [x0]\n        ret\nendfunc\n\nfunction ff_int32_to_float_fmul_array8_neon, export=1\n        lsr             w4,  w4,  #3\n        subs            w5,  w4,  #1\n        b.eq            1f\n2:\n        ld1             {v0.4s,v1.4s}, [x2], #32\n        ld1             {v2.4s,v3.4s}, [x2], #32\n        scvtf           v0.4s,  v0.4s\n        scvtf           v1.4s,  v1.4s\n        ld1             {v16.2s},  [x3], #8\n        scvtf           v2.4s,  v2.4s\n        scvtf           v3.4s,  v3.4s\n        fmul            v4.4s,  v0.4s,  v16.s[0]\n        fmul            v5.4s,  v1.4s,  v16.s[0]\n        fmul            v6.4s,  v2.4s,  v16.s[1]\n        fmul            v7.4s,  v3.4s,  v16.s[1]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fmtconvert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fmtconvert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/fmtconvert_neon.S:2", "text": "st1             {v3.4s,v4.4s}, [x0]\n        ret\nendfunc\n\nfunction ff_int32_to_float_fmul_array8_neon, export=1\n        lsr             w4,  w4,  #3\n        subs            w5,  w4,  #1\n        b.eq            1f\n2:\n        ld1             {v0.4s,v1.4s}, [x2], #32\n        ld1             {v2.4s,v3.4s}, [x2], #32\n        scvtf           v0.4s,  v0.4s\n        scvtf           v1.4s,  v1.4s\n        ld1             {v16.2s},  [x3], #8\n        scvtf           v2.4s,  v2.4s\n        scvtf           v3.4s,  v3.4s\n        fmul            v4.4s,  v0.4s,  v16.s[0]\n        fmul            v5.4s,  v1.4s,  v16.s[0]\n        fmul            v6.4s,  v2.4s,  v16.s[1]\n        fmul            v7.4s,  v3.4s,  v16.s[1]\n        st1             {v4.4s,v5.4s}, [x1], #32\n        st1             {v6.4s,v7.4s}, [x1], #32\n        subs            w5,  w5,  #2\n        b.gt            2b\n        b.eq            1f\n        ret\n1:\n        ld1             {v0.4s,v1.4s}, [x2]\n        ld1             {v16.s}[0],  [x3]\n        scvtf           v0.4s,  v0.4s\n        scvtf           v1.4s,  v1.4s\n        fmul            v4.4s,  v0.4s,  v16.s[0]\n        fmul            v5.4s,  v1.4s,  v16.s[0]\n        st1             {v4.4s,v5.4s}, [x1]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/fmtconvert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/fmtconvert_neon.S", "line_start": 41, "line_end": 76}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2013 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config_components.h\"\n\n#include \"libavutil/aarch64/asm.S\"\n\n/* chroma_mc8(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int x, int y) */\n.macro  h264_chroma_mc8 type, codec=h264\nfunction ff_\\type\\()_\\codec\\()_chroma_mc8_neon, export=1\n  .ifc \\type,avg\n        mov             x8,  x0\n  .endif\n        prfm            pldl1strm, [x1]\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,rv40\n        movrel          x6,  rv40bias\n        lsr             w9,  w5,  #1\n        lsr             w10, w4,  #1\n        lsl             w9,  w9,  #3\n        lsl             w10, w10, #1\n        add             w9,  w9,  w10\n        add             x6,  x6,  w9, uxtw\n        ld1r            {v22.8h}, [x6]\n  .endif\n  .ifc \\codec,vc1\n        movi            v22.8h,   #28\n  .endif\n        mul             w7,  w4,  w5\n        lsl             w14, w5,  #3\n        lsl             w13, w4,  #3\n        cmp             w7,  #0\n        sub             w6,  w14, w7\n        sub             w12, w13, w7\n        sub             w4,  w7,  w13\n        sub             w4,  w4,  w14\n        add             w4,  w4,  #64\n        b.eq            2f\n\n        dup             v0.8b,  w4\n        dup             v1.8b,  w12\n        ld1             {v4.8b, v5.8b}, [x1], x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:2", "text": "add             x6,  x6,  w9, uxtw\n        ld1r            {v22.8h}, [x6]\n  .endif\n  .ifc \\codec,vc1\n        movi            v22.8h,   #28\n  .endif\n        mul             w7,  w4,  w5\n        lsl             w14, w5,  #3\n        lsl             w13, w4,  #3\n        cmp             w7,  #0\n        sub             w6,  w14, w7\n        sub             w12, w13, w7\n        sub             w4,  w7,  w13\n        sub             w4,  w4,  w14\n        add             w4,  w4,  #64\n        b.eq            2f\n\n        dup             v0.8b,  w4\n        dup             v1.8b,  w12\n        ld1             {v4.8b, v5.8b}, [x1], x2\n        dup             v2.8b,  w6\n        dup             v3.8b,  w7\n        ext             v5.8b,  v4.8b,  v5.8b,  #1\n1:      ld1             {v6.8b, v7.8b}, [x1], x2\n        umull           v16.8h, v4.8b,  v0.8b\n        umlal           v16.8h, v5.8b,  v1.8b\n        ext             v7.8b,  v6.8b,  v7.8b,  #1\n        ld1             {v4.8b, v5.8b}, [x1], x2\n        umlal           v16.8h, v6.8b,  v2.8b\n        prfm            pldl1strm, [x1]\n        ext             v5.8b,  v4.8b,  v5.8b,  #1\n        umlal           v16.8h, v7.8b,  v3.8b\n        umull           v17.8h, v6.8b,  v0.8b\n        subs            w3,  w3,  #2\n        umlal           v17.8h, v7.8b, v1.8b\n        umlal           v17.8h, v4.8b, v2.8b\n        umlal           v17.8h, v5.8b, v3.8b\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v16.8h, #6\n        rshrn           v17.8b, v17.8h, #6\n  .else\n        add             v16.8h, v16.8h, v22.8h\n        add             v17.8h, v17.8h, v22.8h\n        shrn            v16.8b, v16.8h, #6\n        shrn            v17.8b, v17.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.8b}, [x8], x2\n        ld1             {v21.8b}, [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n        urhadd          v17.8b, v17.8b, v21.8b\n  .endif\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            1b\n        ret\n\n2:      adds            w12, w12, w6\n        dup             v0.8b, w4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:3", "text": "rshrn           v17.8b, v17.8h, #6\n  .else\n        add             v16.8h, v16.8h, v22.8h\n        add             v17.8h, v17.8h, v22.8h\n        shrn            v16.8b, v16.8h, #6\n        shrn            v17.8b, v17.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.8b}, [x8], x2\n        ld1             {v21.8b}, [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n        urhadd          v17.8b, v17.8b, v21.8b\n  .endif\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            1b\n        ret\n\n2:      adds            w12, w12, w6\n        dup             v0.8b, w4\n        b.eq            5f\n        tst             w6,  w6\n        dup             v1.8b, w12\n        b.eq            4f\n\n        ld1             {v4.8b}, [x1], x2\n3:      ld1             {v6.8b}, [x1], x2\n        umull           v16.8h, v4.8b,  v0.8b\n        umlal           v16.8h, v6.8b,  v1.8b\n        ld1             {v4.8b}, [x1], x2\n        umull           v17.8h, v6.8b,  v0.8b\n        umlal           v17.8h, v4.8b,  v1.8b\n        prfm            pldl1strm, [x1]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v16.8h, #6\n        rshrn           v17.8b, v17.8h, #6\n  .else\n        add             v16.8h, v16.8h, v22.8h\n        add             v17.8h, v17.8h, v22.8h\n        shrn            v16.8b, v16.8h, #6\n        shrn            v17.8b, v17.8h, #6\n  .endif\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\type,avg\n        ld1             {v20.8b}, [x8], x2\n        ld1             {v21.8b}, [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n        urhadd          v17.8b, v17.8b, v21.8b\n  .endif\n        subs            w3,  w3,  #2\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            3b\n        ret\n\n4:      ld1             {v4.8b, v5.8b}, [x1], x2\n        ld1             {v6.8b, v7.8b}, [x1], x2\n        ext             v5.8b,  v4.8b,  v5.8b,  #1\n        ext             v7.8b,  v6.8b,  v7.8b,  #1\n        prfm            pldl1strm, [x1]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:4", "text": "shrn            v17.8b, v17.8h, #6\n  .endif\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\type,avg\n        ld1             {v20.8b}, [x8], x2\n        ld1             {v21.8b}, [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n        urhadd          v17.8b, v17.8b, v21.8b\n  .endif\n        subs            w3,  w3,  #2\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            3b\n        ret\n\n4:      ld1             {v4.8b, v5.8b}, [x1], x2\n        ld1             {v6.8b, v7.8b}, [x1], x2\n        ext             v5.8b,  v4.8b,  v5.8b,  #1\n        ext             v7.8b,  v6.8b,  v7.8b,  #1\n        prfm            pldl1strm, [x1]\n        subs            w3,  w3,  #2\n        umull           v16.8h, v4.8b, v0.8b\n        umlal           v16.8h, v5.8b, v1.8b\n        umull           v17.8h, v6.8b, v0.8b\n        umlal           v17.8h, v7.8b, v1.8b\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v16.8h, #6\n        rshrn           v17.8b, v17.8h, #6\n  .else\n        add             v16.8h, v16.8h, v22.8h\n        add             v17.8h, v17.8h, v22.8h\n        shrn            v16.8b, v16.8h, #6\n        shrn            v17.8b, v17.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.8b}, [x8], x2\n        ld1             {v21.8b}, [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n        urhadd          v17.8b, v17.8b, v21.8b\n  .endif\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            4b\n        ret\n\n5:      ld1             {v4.8b}, [x1], x2\n        ld1             {v5.8b}, [x1], x2\n        prfm            pldl1strm, [x1]\n        subs            w3,  w3,  #2\n        umull           v16.8h, v4.8b, v0.8b\n        umull           v17.8h, v5.8b, v0.8b\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v16.8h, #6\n        rshrn           v17.8b, v17.8h, #6\n  .else\n        add             v16.8h, v16.8h, v22.8h\n        add             v17.8h, v17.8h, v22.8h\n        shrn            v16.8b, v16.8h, #6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:5", "text": ".endif\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            4b\n        ret\n\n5:      ld1             {v4.8b}, [x1], x2\n        ld1             {v5.8b}, [x1], x2\n        prfm            pldl1strm, [x1]\n        subs            w3,  w3,  #2\n        umull           v16.8h, v4.8b, v0.8b\n        umull           v17.8h, v5.8b, v0.8b\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v16.8h, #6\n        rshrn           v17.8b, v17.8h, #6\n  .else\n        add             v16.8h, v16.8h, v22.8h\n        add             v17.8h, v17.8h, v22.8h\n        shrn            v16.8b, v16.8h, #6\n        shrn            v17.8b, v17.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.8b}, [x8], x2\n        ld1             {v21.8b}, [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n        urhadd          v17.8b, v17.8b, v21.8b\n  .endif\n        st1             {v16.8b}, [x0], x2\n        st1             {v17.8b}, [x0], x2\n        b.gt            5b\n        ret\nendfunc\n.endm\n\n/* chroma_mc4(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int x, int y) */\n.macro  h264_chroma_mc4 type, codec=h264\nfunction ff_\\type\\()_\\codec\\()_chroma_mc4_neon, export=1\n  .ifc \\type,avg\n        mov             x8,  x0\n  .endif\n        prfm            pldl1strm, [x1]\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,rv40\n        movrel          x6,  rv40bias\n        lsr             w9,  w5,  #1\n        lsr             w10, w4,  #1\n        lsl             w9,  w9,  #3\n        lsl             w10, w10, #1\n        add             w9,  w9,  w10\n        add             x6,  x6,  w9, uxtw\n        ld1r            {v22.8h}, [x6]\n  .endif\n  .ifc \\codec,vc1\n        movi            v22.8h,   #28\n  .endif\n        mul             w7,  w4,  w5\n        lsl             w14, w5,  #3\n        lsl             w13, w4,  #3\n        cmp             w7,  #0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:6", "text": ".endif\n        prfm            pldl1strm, [x1]\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\codec,rv40\n        movrel          x6,  rv40bias\n        lsr             w9,  w5,  #1\n        lsr             w10, w4,  #1\n        lsl             w9,  w9,  #3\n        lsl             w10, w10, #1\n        add             w9,  w9,  w10\n        add             x6,  x6,  w9, uxtw\n        ld1r            {v22.8h}, [x6]\n  .endif\n  .ifc \\codec,vc1\n        movi            v22.8h,   #28\n  .endif\n        mul             w7,  w4,  w5\n        lsl             w14, w5,  #3\n        lsl             w13, w4,  #3\n        cmp             w7,  #0\n        sub             w6,  w14, w7\n        sub             w12, w13, w7\n        sub             w4,  w7,  w13\n        sub             w4,  w4,  w14\n        add             w4,  w4,  #64\n        b.eq            2f\n\n        dup             v24.8b,  w4\n        dup             v25.8b,  w12\n        ld1             {v4.8b}, [x1], x2\n        dup             v26.8b,  w6\n        dup             v27.8b,  w7\n        ext             v5.8b,  v4.8b,  v5.8b, #1\n        trn1            v0.2s,  v24.2s, v25.2s\n        trn1            v2.2s,  v26.2s, v27.2s\n        trn1            v4.2s,  v4.2s,  v5.2s\n1:      ld1             {v6.8b}, [x1], x2\n        ext             v7.8b,  v6.8b,  v7.8b, #1\n        trn1            v6.2s,  v6.2s,  v7.2s\n        umull           v18.8h, v4.8b,  v0.8b\n        umlal           v18.8h, v6.8b,  v2.8b\n        ld1             {v4.8b}, [x1], x2\n        ext             v5.8b,  v4.8b,  v5.8b, #1\n        trn1            v4.2s,  v4.2s,  v5.2s\n        prfm            pldl1strm, [x1]\n        umull           v19.8h, v6.8b,  v0.8b\n        umlal           v19.8h, v4.8b,  v2.8b\n        trn1            v30.2d, v18.2d, v19.2d\n        trn2            v31.2d, v18.2d, v19.2d\n        add             v18.8h, v30.8h, v31.8h\n  .ifc \\codec,h264\n        rshrn           v16.8b, v18.8h, #6\n  .else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n        subs            w3,  w3,  #2\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:7", "text": "umlal           v18.8h, v6.8b,  v2.8b\n        ld1             {v4.8b}, [x1], x2\n        ext             v5.8b,  v4.8b,  v5.8b, #1\n        trn1            v4.2s,  v4.2s,  v5.2s\n        prfm            pldl1strm, [x1]\n        umull           v19.8h, v6.8b,  v0.8b\n        umlal           v19.8h, v4.8b,  v2.8b\n        trn1            v30.2d, v18.2d, v19.2d\n        trn2            v31.2d, v18.2d, v19.2d\n        add             v18.8h, v30.8h, v31.8h\n  .ifc \\codec,h264\n        rshrn           v16.8b, v18.8h, #6\n  .else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n        subs            w3,  w3,  #2\n        prfm            pldl1strm, [x1, x2]\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2\n        ld1             {v20.s}[1], [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n  .endif\n        st1             {v16.s}[0], [x0], x2\n        st1             {v16.s}[1], [x0], x2\n        b.gt            1b\n        ret\n\n2:      adds            w12, w12, w6\n        dup             v30.8b, w4\n        b.eq            5f\n        tst             w6,  w6\n        dup             v31.8b, w12\n        trn1            v0.2s,  v30.2s, v31.2s\n        trn2            v1.2s,  v30.2s, v31.2s\n        b.eq            4f\n\n        ext             v1.8b,  v0.8b,  v1.8b, #4\n        ld1             {v4.s}[0], [x1], x2\n3:      ld1             {v4.s}[1], [x1], x2\n        umull           v18.8h, v4.8b,  v0.8b\n        ld1             {v4.s}[0], [x1], x2\n        umull           v19.8h, v4.8b,  v1.8b\n        trn1            v30.2d, v18.2d, v19.2d\n        trn2            v31.2d, v18.2d, v19.2d\n        add             v18.8h, v30.8h, v31.8h\n        prfm            pldl1strm, [x1]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v18.8h, #6\n  .else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2\n        ld1             {v20.s}[1], [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n  .endif\n        subs            w3,  w3,  #2\n        prfm            pldl1strm, [x1, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:8", "text": "umull           v18.8h, v4.8b,  v0.8b\n        ld1             {v4.s}[0], [x1], x2\n        umull           v19.8h, v4.8b,  v1.8b\n        trn1            v30.2d, v18.2d, v19.2d\n        trn2            v31.2d, v18.2d, v19.2d\n        add             v18.8h, v30.8h, v31.8h\n        prfm            pldl1strm, [x1]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v18.8h, #6\n  .else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2\n        ld1             {v20.s}[1], [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n  .endif\n        subs            w3,  w3,  #2\n        prfm            pldl1strm, [x1, x2]\n        st1             {v16.s}[0], [x0], x2\n        st1             {v16.s}[1], [x0], x2\n        b.gt            3b\n        ret\n\n4:      ld1             {v4.8b}, [x1], x2\n        ld1             {v6.8b}, [x1], x2\n        ext             v5.8b,  v4.8b,  v5.8b, #1\n        ext             v7.8b,  v6.8b,  v7.8b, #1\n        trn1            v4.2s,  v4.2s,  v5.2s\n        trn1            v6.2s,  v6.2s,  v7.2s\n        umull           v18.8h, v4.8b,  v0.8b\n        umull           v19.8h, v6.8b,  v0.8b\n        subs            w3,  w3,  #2\n        trn1            v30.2d, v18.2d, v19.2d\n        trn2            v31.2d, v18.2d, v19.2d\n        add             v18.8h, v30.8h, v31.8h\n        prfm            pldl1strm, [x1]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v18.8h, #6\n  .else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2\n        ld1             {v20.s}[1], [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n  .endif\n        prfm            pldl1strm, [x1]\n        st1             {v16.s}[0], [x0], x2\n        st1             {v16.s}[1], [x0], x2\n        b.gt            4b\n        ret\n\n5:      ld1             {v4.s}[0], [x1], x2\n        ld1             {v4.s}[1], [x1], x2\n        umull           v18.8h, v4.8b,  v30.8b\n        subs            w3,  w3,  #2\n        prfm            pldl1strm, [x1]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:9", "text": ".else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2\n        ld1             {v20.s}[1], [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n  .endif\n        prfm            pldl1strm, [x1]\n        st1             {v16.s}[0], [x0], x2\n        st1             {v16.s}[1], [x0], x2\n        b.gt            4b\n        ret\n\n5:      ld1             {v4.s}[0], [x1], x2\n        ld1             {v4.s}[1], [x1], x2\n        umull           v18.8h, v4.8b,  v30.8b\n        subs            w3,  w3,  #2\n        prfm            pldl1strm, [x1]\n  .ifc \\codec,h264\n        rshrn           v16.8b, v18.8h, #6\n  .else\n        add             v18.8h, v18.8h, v22.8h\n        shrn            v16.8b, v18.8h, #6\n  .endif\n  .ifc \\type,avg\n        ld1             {v20.s}[0], [x8], x2\n        ld1             {v20.s}[1], [x8], x2\n        urhadd          v16.8b, v16.8b, v20.8b\n  .endif\n        prfm            pldl1strm, [x1]\n        st1             {v16.s}[0], [x0], x2\n        st1             {v16.s}[1], [x0], x2\n        b.gt            5b\n        ret\nendfunc\n.endm\n\n.macro  h264_chroma_mc2 type\nfunction ff_\\type\\()_h264_chroma_mc2_neon, export=1\n        prfm            pldl1strm, [x1]\n        prfm            pldl1strm, [x1, x2]\n        orr             w7,  w4,  w5\n        cbz             w7,  2f\n\n        mul             w7,  w4,  w5\n        lsl             w14, w5,  #3\n        lsl             w13, w4,  #3\n        sub             w6,  w14, w7\n        sub             w12, w13, w7\n        sub             w4,  w7,  w13\n        sub             w4,  w4,  w14\n        add             w4,  w4,  #64\n        dup             v0.8b,  w4\n        dup             v2.8b,  w12\n        dup             v1.8b,  w6\n        dup             v3.8b,  w7\n        trn1            v0.4h,  v0.4h,  v2.4h\n        trn1            v1.4h,  v1.4h,  v3.4h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:10", "text": "function ff_\\type\\()_h264_chroma_mc2_neon, export=1\n        prfm            pldl1strm, [x1]\n        prfm            pldl1strm, [x1, x2]\n        orr             w7,  w4,  w5\n        cbz             w7,  2f\n\n        mul             w7,  w4,  w5\n        lsl             w14, w5,  #3\n        lsl             w13, w4,  #3\n        sub             w6,  w14, w7\n        sub             w12, w13, w7\n        sub             w4,  w7,  w13\n        sub             w4,  w4,  w14\n        add             w4,  w4,  #64\n        dup             v0.8b,  w4\n        dup             v2.8b,  w12\n        dup             v1.8b,  w6\n        dup             v3.8b,  w7\n        trn1            v0.4h,  v0.4h,  v2.4h\n        trn1            v1.4h,  v1.4h,  v3.4h\n1:\n        ld1             {v4.s}[0],  [x1], x2\n        ld1             {v4.s}[1],  [x1], x2\n        rev64           v5.2s,  v4.2s\n        ld1             {v5.s}[1],  [x1]\n        ext             v6.8b,  v4.8b,  v5.8b,  #1\n        ext             v7.8b,  v5.8b,  v4.8b,  #1\n        trn1            v4.4h,  v4.4h,  v6.4h\n        trn1            v5.4h,  v5.4h,  v7.4h\n        umull           v16.8h, v4.8b,  v0.8b\n        umlal           v16.8h, v5.8b,  v1.8b\n  .ifc \\type,avg\n        ld1             {v18.h}[0], [x0], x2\n        ld1             {v18.h}[2], [x0]\n        sub             x0,  x0,  x2\n  .endif\n        rev64           v17.4s, v16.4s\n        add             v16.8h, v16.8h, v17.8h\n        rshrn           v16.8b, v16.8h, #6\n  .ifc \\type,avg\n        urhadd          v16.8b, v16.8b, v18.8b\n  .endif\n        st1             {v16.h}[0], [x0], x2\n        st1             {v16.h}[2], [x0], x2\n        subs            w3,  w3,  #2\n        b.gt            1b\n        ret\n\n2:\n        ld1             {v16.h}[0], [x1], x2\n        ld1             {v16.h}[1], [x1], x2\n  .ifc \\type,avg\n        ld1             {v18.h}[0], [x0], x2\n        ld1             {v18.h}[1], [x0]\n        sub             x0,  x0,  x2\n        urhadd          v16.8b, v16.8b, v18.8b\n  .endif\n        st1             {v16.h}[0], [x0], x2\n        st1             {v16.h}[1], [x0], x2\n        subs            w3,  w3,  #2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:11", "text": "urhadd          v16.8b, v16.8b, v18.8b\n  .endif\n        st1             {v16.h}[0], [x0], x2\n        st1             {v16.h}[2], [x0], x2\n        subs            w3,  w3,  #2\n        b.gt            1b\n        ret\n\n2:\n        ld1             {v16.h}[0], [x1], x2\n        ld1             {v16.h}[1], [x1], x2\n  .ifc \\type,avg\n        ld1             {v18.h}[0], [x0], x2\n        ld1             {v18.h}[1], [x0]\n        sub             x0,  x0,  x2\n        urhadd          v16.8b, v16.8b, v18.8b\n  .endif\n        st1             {v16.h}[0], [x0], x2\n        st1             {v16.h}[1], [x0], x2\n        subs            w3,  w3,  #2\n        b.gt            2b\n        ret\nendfunc\n.endm\n\n        h264_chroma_mc8 put\n        h264_chroma_mc8 avg\n        h264_chroma_mc4 put\n        h264_chroma_mc4 avg\n        h264_chroma_mc2 put\n        h264_chroma_mc2 avg\n\n#if CONFIG_RV40_DECODER\nconst   rv40bias\n        .short           0, 16, 32, 16\n        .short          32, 28, 32, 28\n        .short           0, 32, 16, 32\n        .short          32, 28, 32, 28\nendconst\n\n        h264_chroma_mc8 put, rv40\n        h264_chroma_mc8 avg, rv40\n        h264_chroma_mc4 put, rv40\n        h264_chroma_mc4 avg, rv40\n#endif\n\n#if CONFIG_VC1DSP\n        h264_chroma_mc8 put, vc1\n        h264_chroma_mc8 avg, vc1\n        h264_chroma_mc4 put, vc1\n        h264_chroma_mc4 avg, vc1\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 401, "line_end": 452}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264cmc_neon.S:12", "text": "h264_chroma_mc8 put, rv40\n        h264_chroma_mc8 avg, rv40\n        h264_chroma_mc4 put, rv40\n        h264_chroma_mc4 avg, rv40\n#endif\n\n#if CONFIG_VC1DSP\n        h264_chroma_mc8 put, vc1\n        h264_chroma_mc8 avg, vc1\n        h264_chroma_mc4 put, vc1\n        h264_chroma_mc4 avg, vc1\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264cmc_neon.S", "line_start": 441, "line_end": 452}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2013 Janne Grunau <janne-libav@jannau.net>\n * Copyright (c) 2014 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n#include \"neon.S\"\n\n.macro  h264_loop_filter_start\n        cmp             w2,  #0\n        ldr             w6,  [x4]\n        ccmp            w3,  #0, #0, ne\n        mov             v24.s[0], w6\n        and             w8,  w6,  w6,  lsl #16\n        b.eq            1f\n        ands            w8,  w8,  w8,  lsl #8\n        b.ge            2f\n1:\n        ret\n2:\n.endm\n\n.macro  h264_loop_filter_luma\n        dup             v22.16b, w2                     // alpha\n        uxtl            v24.8h,  v24.8b\n        uabd            v21.16b, v16.16b, v0.16b        // abs(p0 - q0)\n        uxtl            v24.4s,  v24.4h\n        uabd            v28.16b, v18.16b, v16.16b       // abs(p1 - p0)\n        sli             v24.8h,  v24.8h,  #8\n        uabd            v30.16b, v2.16b,  v0.16b        // abs(q1 - q0)\n        sli             v24.4s,  v24.4s,  #16\n        cmhi            v21.16b, v22.16b, v21.16b       // < alpha\n        dup             v22.16b, w3                     // beta\n        cmlt            v23.16b, v24.16b, #0\n        cmhi            v28.16b, v22.16b, v28.16b       // < beta\n        cmhi            v30.16b, v22.16b, v30.16b       // < beta\n        bic             v21.16b, v21.16b, v23.16b\n        uabd            v17.16b, v20.16b, v16.16b       // abs(p2 - p0)\n        and             v21.16b, v21.16b, v28.16b\n        uabd            v19.16b,  v4.16b,  v0.16b       // abs(q2 - q0)\n        and             v21.16b, v21.16b, v30.16b      // < beta\n        shrn            v30.8b,  v21.8h,  #4\n        mov             x7, v30.d[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:2", "text": "dup             v22.16b, w2                     // alpha\n        uxtl            v24.8h,  v24.8b\n        uabd            v21.16b, v16.16b, v0.16b        // abs(p0 - q0)\n        uxtl            v24.4s,  v24.4h\n        uabd            v28.16b, v18.16b, v16.16b       // abs(p1 - p0)\n        sli             v24.8h,  v24.8h,  #8\n        uabd            v30.16b, v2.16b,  v0.16b        // abs(q1 - q0)\n        sli             v24.4s,  v24.4s,  #16\n        cmhi            v21.16b, v22.16b, v21.16b       // < alpha\n        dup             v22.16b, w3                     // beta\n        cmlt            v23.16b, v24.16b, #0\n        cmhi            v28.16b, v22.16b, v28.16b       // < beta\n        cmhi            v30.16b, v22.16b, v30.16b       // < beta\n        bic             v21.16b, v21.16b, v23.16b\n        uabd            v17.16b, v20.16b, v16.16b       // abs(p2 - p0)\n        and             v21.16b, v21.16b, v28.16b\n        uabd            v19.16b,  v4.16b,  v0.16b       // abs(q2 - q0)\n        and             v21.16b, v21.16b, v30.16b      // < beta\n        shrn            v30.8b,  v21.8h,  #4\n        mov             x7, v30.d[0]\n        cmhi            v17.16b, v22.16b, v17.16b       // < beta\n        cmhi            v19.16b, v22.16b, v19.16b       // < beta\n        cbz             x7,  9f\n        and             v17.16b, v17.16b, v21.16b\n        and             v19.16b, v19.16b, v21.16b\n        and             v24.16b, v24.16b, v21.16b\n        urhadd          v28.16b, v16.16b,  v0.16b\n        sub             v21.16b, v24.16b, v17.16b\n        uqadd           v23.16b, v18.16b, v24.16b\n        uhadd           v20.16b, v20.16b, v28.16b\n        sub             v21.16b, v21.16b, v19.16b\n        uhadd           v28.16b,  v4.16b, v28.16b\n        umin            v23.16b, v23.16b, v20.16b\n        uqsub           v22.16b, v18.16b, v24.16b\n        uqadd           v4.16b,   v2.16b, v24.16b\n        umax            v23.16b, v23.16b, v22.16b\n        uqsub           v22.16b,  v2.16b, v24.16b\n        umin            v28.16b,  v4.16b, v28.16b\n        uxtl            v4.8h,    v0.8b\n        umax            v28.16b, v28.16b, v22.16b\n        uxtl2           v20.8h,   v0.16b\n        usubw           v4.8h,    v4.8h,  v16.8b\n        usubw2          v20.8h,  v20.8h,  v16.16b\n        shl             v4.8h,    v4.8h,  #2\n        shl             v20.8h,  v20.8h,  #2\n        uaddw           v4.8h,    v4.8h,  v18.8b\n        uaddw2          v20.8h,  v20.8h,  v18.16b\n        usubw           v4.8h,    v4.8h,   v2.8b\n        usubw2          v20.8h,  v20.8h,   v2.16b\n        rshrn           v4.8b,    v4.8h,  #3\n        rshrn2          v4.16b,  v20.8h,  #3\n        bsl             v17.16b, v23.16b, v18.16b\n        bsl             v19.16b, v28.16b,  v2.16b\n        neg             v23.16b, v21.16b\n        uxtl            v28.8h,  v16.8b\n        smin            v4.16b,   v4.16b, v21.16b\n        uxtl2           v21.8h,  v16.16b\n        smax            v4.16b,   v4.16b, v23.16b\n        uxtl            v22.8h,   v0.8b\n        uxtl2           v24.8h,   v0.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:3", "text": "uxtl2           v20.8h,   v0.16b\n        usubw           v4.8h,    v4.8h,  v16.8b\n        usubw2          v20.8h,  v20.8h,  v16.16b\n        shl             v4.8h,    v4.8h,  #2\n        shl             v20.8h,  v20.8h,  #2\n        uaddw           v4.8h,    v4.8h,  v18.8b\n        uaddw2          v20.8h,  v20.8h,  v18.16b\n        usubw           v4.8h,    v4.8h,   v2.8b\n        usubw2          v20.8h,  v20.8h,   v2.16b\n        rshrn           v4.8b,    v4.8h,  #3\n        rshrn2          v4.16b,  v20.8h,  #3\n        bsl             v17.16b, v23.16b, v18.16b\n        bsl             v19.16b, v28.16b,  v2.16b\n        neg             v23.16b, v21.16b\n        uxtl            v28.8h,  v16.8b\n        smin            v4.16b,   v4.16b, v21.16b\n        uxtl2           v21.8h,  v16.16b\n        smax            v4.16b,   v4.16b, v23.16b\n        uxtl            v22.8h,   v0.8b\n        uxtl2           v24.8h,   v0.16b\n        saddw           v28.8h,  v28.8h,  v4.8b\n        saddw2          v21.8h,  v21.8h,  v4.16b\n        ssubw           v22.8h,  v22.8h,  v4.8b\n        ssubw2          v24.8h,  v24.8h,  v4.16b\n        sqxtun          v16.8b,  v28.8h\n        sqxtun2         v16.16b, v21.8h\n        sqxtun          v0.8b,   v22.8h\n        sqxtun2         v0.16b,  v24.8h\n.endm\n\nfunction ff_h264_v_loop_filter_luma_neon, export=1\n        h264_loop_filter_start\n\n        ld1             {v0.16b},  [x0], x1\n        ld1             {v2.16b},  [x0], x1\n        ld1             {v4.16b},  [x0], x1\n        sub             x0,  x0,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #1\n        ld1             {v20.16b},  [x0], x1\n        ld1             {v18.16b},  [x0], x1\n        ld1             {v16.16b},  [x0], x1\n\n        h264_loop_filter_luma\n\n        sub             x0,  x0,  x1, lsl #1\n        st1             {v17.16b},  [x0], x1\n        st1             {v16.16b}, [x0], x1\n        st1             {v0.16b},  [x0], x1\n        st1             {v19.16b}, [x0]\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_luma_neon, export=1\n        h264_loop_filter_start\n\n        sub             x0,  x0,  #4\n        ld1             {v6.8b},  [x0], x1\n        ld1             {v20.8b}, [x0], x1\n        ld1             {v18.8b}, [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:4", "text": "ld1             {v16.16b},  [x0], x1\n\n        h264_loop_filter_luma\n\n        sub             x0,  x0,  x1, lsl #1\n        st1             {v17.16b},  [x0], x1\n        st1             {v16.16b}, [x0], x1\n        st1             {v0.16b},  [x0], x1\n        st1             {v19.16b}, [x0]\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_luma_neon, export=1\n        h264_loop_filter_start\n\n        sub             x0,  x0,  #4\n        ld1             {v6.8b},  [x0], x1\n        ld1             {v20.8b}, [x0], x1\n        ld1             {v18.8b}, [x0], x1\n        ld1             {v16.8b}, [x0], x1\n        ld1             {v0.8b},  [x0], x1\n        ld1             {v2.8b},  [x0], x1\n        ld1             {v4.8b},  [x0], x1\n        ld1             {v26.8b}, [x0], x1\n        ld1             {v6.d}[1],  [x0], x1\n        ld1             {v20.d}[1], [x0], x1\n        ld1             {v18.d}[1], [x0], x1\n        ld1             {v16.d}[1], [x0], x1\n        ld1             {v0.d}[1],  [x0], x1\n        ld1             {v2.d}[1],  [x0], x1\n        ld1             {v4.d}[1],  [x0], x1\n        ld1             {v26.d}[1], [x0], x1\n\n        transpose_8x16B v6, v20, v18, v16, v0, v2, v4, v26, v21, v23\n\n        h264_loop_filter_luma\n\n        transpose_4x16B v17, v16, v0, v19, v21, v23, v25, v27\n\n        sub             x0,  x0,  x1, lsl #4\n        add             x0,  x0,  #2\n        st1             {v17.s}[0],  [x0], x1\n        st1             {v16.s}[0], [x0], x1\n        st1             {v0.s}[0],  [x0], x1\n        st1             {v19.s}[0], [x0], x1\n        st1             {v17.s}[1],  [x0], x1\n        st1             {v16.s}[1], [x0], x1\n        st1             {v0.s}[1],  [x0], x1\n        st1             {v19.s}[1], [x0], x1\n        st1             {v17.s}[2],  [x0], x1\n        st1             {v16.s}[2], [x0], x1\n        st1             {v0.s}[2],  [x0], x1\n        st1             {v19.s}[2], [x0], x1\n        st1             {v17.s}[3],  [x0], x1\n        st1             {v16.s}[3], [x0], x1\n        st1             {v0.s}[3],  [x0], x1\n        st1             {v19.s}[3], [x0], x1\n9:\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:5", "text": "sub             x0,  x0,  x1, lsl #4\n        add             x0,  x0,  #2\n        st1             {v17.s}[0],  [x0], x1\n        st1             {v16.s}[0], [x0], x1\n        st1             {v0.s}[0],  [x0], x1\n        st1             {v19.s}[0], [x0], x1\n        st1             {v17.s}[1],  [x0], x1\n        st1             {v16.s}[1], [x0], x1\n        st1             {v0.s}[1],  [x0], x1\n        st1             {v19.s}[1], [x0], x1\n        st1             {v17.s}[2],  [x0], x1\n        st1             {v16.s}[2], [x0], x1\n        st1             {v0.s}[2],  [x0], x1\n        st1             {v19.s}[2], [x0], x1\n        st1             {v17.s}[3],  [x0], x1\n        st1             {v16.s}[3], [x0], x1\n        st1             {v0.s}[3],  [x0], x1\n        st1             {v19.s}[3], [x0], x1\n9:\n        ret\nendfunc\n\n\n.macro h264_loop_filter_start_intra\n        orr             w4,  w2,  w3\n        cbnz            w4,  1f\n        ret\n1:\n        dup             v30.16b, w2                // alpha\n        dup             v31.16b, w3                // beta\n.endm\n\n.macro h264_loop_filter_luma_intra\n        uabd            v16.16b, v7.16b,  v0.16b        // abs(p0 - q0)\n        uabd            v17.16b, v6.16b,  v7.16b        // abs(p1 - p0)\n        uabd            v18.16b, v1.16b,  v0.16b        // abs(q1 - q0)\n        cmhi            v19.16b, v30.16b, v16.16b       // < alpha\n        cmhi            v17.16b, v31.16b, v17.16b       // < beta\n        cmhi            v18.16b, v31.16b, v18.16b       // < beta\n\n        movi            v29.16b, #2\n        ushr            v30.16b, v30.16b, #2            // alpha >> 2\n        add             v30.16b, v30.16b, v29.16b       // (alpha >> 2) + 2\n        cmhi            v16.16b, v30.16b, v16.16b       // < (alpha >> 2) + 2\n\n        and             v19.16b, v19.16b, v17.16b\n        and             v19.16b, v19.16b, v18.16b\n        shrn            v20.8b,  v19.8h,  #4\n        mov             x4, v20.d[0]\n        cbz             x4, 9f\n\n        ushll           v20.8h,  v6.8b,   #1\n        ushll           v22.8h,  v1.8b,   #1\n        ushll2          v21.8h,  v6.16b,  #1\n        ushll2          v23.8h,  v1.16b,  #1\n        uaddw           v20.8h,  v20.8h,  v7.8b\n        uaddw           v22.8h,  v22.8h,  v0.8b\n        uaddw2          v21.8h,  v21.8h,  v7.16b\n        uaddw2          v23.8h,  v23.8h,  v0.16b\n        uaddw           v20.8h,  v20.8h,  v1.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:6", "text": "movi            v29.16b, #2\n        ushr            v30.16b, v30.16b, #2            // alpha >> 2\n        add             v30.16b, v30.16b, v29.16b       // (alpha >> 2) + 2\n        cmhi            v16.16b, v30.16b, v16.16b       // < (alpha >> 2) + 2\n\n        and             v19.16b, v19.16b, v17.16b\n        and             v19.16b, v19.16b, v18.16b\n        shrn            v20.8b,  v19.8h,  #4\n        mov             x4, v20.d[0]\n        cbz             x4, 9f\n\n        ushll           v20.8h,  v6.8b,   #1\n        ushll           v22.8h,  v1.8b,   #1\n        ushll2          v21.8h,  v6.16b,  #1\n        ushll2          v23.8h,  v1.16b,  #1\n        uaddw           v20.8h,  v20.8h,  v7.8b\n        uaddw           v22.8h,  v22.8h,  v0.8b\n        uaddw2          v21.8h,  v21.8h,  v7.16b\n        uaddw2          v23.8h,  v23.8h,  v0.16b\n        uaddw           v20.8h,  v20.8h,  v1.8b\n        uaddw           v22.8h,  v22.8h,  v6.8b\n        uaddw2          v21.8h,  v21.8h,  v1.16b\n        uaddw2          v23.8h,  v23.8h,  v6.16b\n\n        rshrn           v24.8b,  v20.8h,  #2 // p0'_1\n        rshrn           v25.8b,  v22.8h,  #2 // q0'_1\n        rshrn2          v24.16b, v21.8h,  #2 // p0'_1\n        rshrn2          v25.16b, v23.8h,  #2 // q0'_1\n\n        uabd            v17.16b, v5.16b,  v7.16b        // abs(p2 - p0)\n        uabd            v18.16b, v2.16b,  v0.16b        // abs(q2 - q0)\n        cmhi            v17.16b, v31.16b, v17.16b       // < beta\n        cmhi            v18.16b, v31.16b, v18.16b       // < beta\n\n        and             v17.16b, v16.16b, v17.16b  // if_2 && if_3\n        and             v18.16b, v16.16b, v18.16b  // if_2 && if_4\n\n        not             v30.16b, v17.16b\n        not             v31.16b, v18.16b\n\n        and             v30.16b, v30.16b, v19.16b  // if_1 && !(if_2 && if_3)\n        and             v31.16b, v31.16b, v19.16b  // if_1 && !(if_2 && if_4)\n\n        and             v17.16b, v19.16b, v17.16b  // if_1 && if_2 && if_3\n        and             v18.16b, v19.16b, v18.16b  // if_1 && if_2 && if_4\n\n        //calc            p, v7, v6, v5, v4, v17, v7, v6, v5, v4\n        uaddl           v26.8h,  v5.8b,   v7.8b\n        uaddl2          v27.8h,  v5.16b,  v7.16b\n        uaddw           v26.8h,  v26.8h,  v0.8b\n        uaddw2          v27.8h,  v27.8h,  v0.16b\n        add             v20.8h,  v20.8h,  v26.8h\n        add             v21.8h,  v21.8h,  v27.8h\n        uaddw           v20.8h,  v20.8h,  v0.8b\n        uaddw2          v21.8h,  v21.8h,  v0.16b\n        rshrn           v20.8b,  v20.8h,  #3 // p0'_2\n        rshrn2          v20.16b, v21.8h,  #3 // p0'_2\n        uaddw           v26.8h,  v26.8h,  v6.8b\n        uaddw2          v27.8h,  v27.8h,  v6.16b\n        rshrn           v21.8b,  v26.8h,  #2 // p1'_2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:7", "text": "and             v30.16b, v30.16b, v19.16b  // if_1 && !(if_2 && if_3)\n        and             v31.16b, v31.16b, v19.16b  // if_1 && !(if_2 && if_4)\n\n        and             v17.16b, v19.16b, v17.16b  // if_1 && if_2 && if_3\n        and             v18.16b, v19.16b, v18.16b  // if_1 && if_2 && if_4\n\n        //calc            p, v7, v6, v5, v4, v17, v7, v6, v5, v4\n        uaddl           v26.8h,  v5.8b,   v7.8b\n        uaddl2          v27.8h,  v5.16b,  v7.16b\n        uaddw           v26.8h,  v26.8h,  v0.8b\n        uaddw2          v27.8h,  v27.8h,  v0.16b\n        add             v20.8h,  v20.8h,  v26.8h\n        add             v21.8h,  v21.8h,  v27.8h\n        uaddw           v20.8h,  v20.8h,  v0.8b\n        uaddw2          v21.8h,  v21.8h,  v0.16b\n        rshrn           v20.8b,  v20.8h,  #3 // p0'_2\n        rshrn2          v20.16b, v21.8h,  #3 // p0'_2\n        uaddw           v26.8h,  v26.8h,  v6.8b\n        uaddw2          v27.8h,  v27.8h,  v6.16b\n        rshrn           v21.8b,  v26.8h,  #2 // p1'_2\n        rshrn2          v21.16b, v27.8h,  #2 // p1'_2\n        uaddl           v28.8h,  v4.8b,   v5.8b\n        uaddl2          v29.8h,  v4.16b,  v5.16b\n        shl             v28.8h,  v28.8h,  #1\n        shl             v29.8h,  v29.8h,  #1\n        add             v28.8h,  v28.8h,  v26.8h\n        add             v29.8h,  v29.8h,  v27.8h\n        rshrn           v19.8b,  v28.8h,  #3 // p2'_2\n        rshrn2          v19.16b, v29.8h,  #3 // p2'_2\n\n        //calc            q, v0, v1, v2, v3, v18, v0, v1, v2, v3\n        uaddl           v26.8h,  v2.8b,   v0.8b\n        uaddl2          v27.8h,  v2.16b,  v0.16b\n        uaddw           v26.8h,  v26.8h,  v7.8b\n        uaddw2          v27.8h,  v27.8h,  v7.16b\n        add             v22.8h,  v22.8h,  v26.8h\n        add             v23.8h,  v23.8h,  v27.8h\n        uaddw           v22.8h,  v22.8h,  v7.8b\n        uaddw2          v23.8h,  v23.8h,  v7.16b\n        rshrn           v22.8b,  v22.8h,  #3 // q0'_2\n        rshrn2          v22.16b, v23.8h,  #3 // q0'_2\n        uaddw           v26.8h,  v26.8h,  v1.8b\n        uaddw2          v27.8h,  v27.8h,  v1.16b\n        rshrn           v23.8b,  v26.8h,  #2 // q1'_2\n        rshrn2          v23.16b, v27.8h,  #2 // q1'_2\n        uaddl           v28.8h,  v2.8b,   v3.8b\n        uaddl2          v29.8h,  v2.16b,  v3.16b\n        shl             v28.8h,  v28.8h,  #1\n        shl             v29.8h,  v29.8h,  #1\n        add             v28.8h,  v28.8h,  v26.8h\n        add             v29.8h,  v29.8h,  v27.8h\n        rshrn           v26.8b,  v28.8h,  #3 // q2'_2\n        rshrn2          v26.16b, v29.8h,  #3 // q2'_2\n\n        bit             v7.16b,  v24.16b, v30.16b  // p0'_1\n        bit             v0.16b,  v25.16b, v31.16b  // q0'_1\n        bit             v7.16b,  v20.16b, v17.16b  // p0'_2\n        bit             v6.16b,  v21.16b, v17.16b  // p1'_2\n        bit             v5.16b,  v19.16b, v17.16b  // p2'_2\n        bit             v0.16b,  v22.16b, v18.16b  // q0'_2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:8", "text": "rshrn2          v22.16b, v23.8h,  #3 // q0'_2\n        uaddw           v26.8h,  v26.8h,  v1.8b\n        uaddw2          v27.8h,  v27.8h,  v1.16b\n        rshrn           v23.8b,  v26.8h,  #2 // q1'_2\n        rshrn2          v23.16b, v27.8h,  #2 // q1'_2\n        uaddl           v28.8h,  v2.8b,   v3.8b\n        uaddl2          v29.8h,  v2.16b,  v3.16b\n        shl             v28.8h,  v28.8h,  #1\n        shl             v29.8h,  v29.8h,  #1\n        add             v28.8h,  v28.8h,  v26.8h\n        add             v29.8h,  v29.8h,  v27.8h\n        rshrn           v26.8b,  v28.8h,  #3 // q2'_2\n        rshrn2          v26.16b, v29.8h,  #3 // q2'_2\n\n        bit             v7.16b,  v24.16b, v30.16b  // p0'_1\n        bit             v0.16b,  v25.16b, v31.16b  // q0'_1\n        bit             v7.16b,  v20.16b, v17.16b  // p0'_2\n        bit             v6.16b,  v21.16b, v17.16b  // p1'_2\n        bit             v5.16b,  v19.16b, v17.16b  // p2'_2\n        bit             v0.16b,  v22.16b, v18.16b  // q0'_2\n        bit             v1.16b,  v23.16b, v18.16b  // q1'_2\n        bit             v2.16b,  v26.16b, v18.16b  // q2'_2\n.endm\n\nfunction ff_h264_v_loop_filter_luma_intra_neon, export=1\n        h264_loop_filter_start_intra\n\n        ld1             {v0.16b},  [x0], x1 // q0\n        ld1             {v1.16b},  [x0], x1 // q1\n        ld1             {v2.16b},  [x0], x1 // q2\n        ld1             {v3.16b},  [x0], x1 // q3\n        sub             x0,  x0,  x1, lsl #3\n        ld1             {v4.16b},  [x0], x1 // p3\n        ld1             {v5.16b},  [x0], x1 // p2\n        ld1             {v6.16b},  [x0], x1 // p1\n        ld1             {v7.16b},  [x0]     // p0\n\n        h264_loop_filter_luma_intra\n\n        sub             x0,  x0,  x1, lsl #1\n        st1             {v5.16b}, [x0], x1  // p2\n        st1             {v6.16b}, [x0], x1  // p1\n        st1             {v7.16b}, [x0], x1  // p0\n        st1             {v0.16b}, [x0], x1  // q0\n        st1             {v1.16b}, [x0], x1  // q1\n        st1             {v2.16b}, [x0]      // q2\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_luma_intra_neon, export=1\n        h264_loop_filter_start_intra\n\n        sub             x0,  x0,  #4\n        ld1             {v4.8b},  [x0], x1\n        ld1             {v5.8b},  [x0], x1\n        ld1             {v6.8b},  [x0], x1\n        ld1             {v7.8b},  [x0], x1\n        ld1             {v0.8b},  [x0], x1\n        ld1             {v1.8b},  [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:9", "text": "st1             {v5.16b}, [x0], x1  // p2\n        st1             {v6.16b}, [x0], x1  // p1\n        st1             {v7.16b}, [x0], x1  // p0\n        st1             {v0.16b}, [x0], x1  // q0\n        st1             {v1.16b}, [x0], x1  // q1\n        st1             {v2.16b}, [x0]      // q2\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_luma_intra_neon, export=1\n        h264_loop_filter_start_intra\n\n        sub             x0,  x0,  #4\n        ld1             {v4.8b},  [x0], x1\n        ld1             {v5.8b},  [x0], x1\n        ld1             {v6.8b},  [x0], x1\n        ld1             {v7.8b},  [x0], x1\n        ld1             {v0.8b},  [x0], x1\n        ld1             {v1.8b},  [x0], x1\n        ld1             {v2.8b},  [x0], x1\n        ld1             {v3.8b},  [x0], x1\n        ld1             {v4.d}[1],  [x0], x1\n        ld1             {v5.d}[1],  [x0], x1\n        ld1             {v6.d}[1],  [x0], x1\n        ld1             {v7.d}[1],  [x0], x1\n        ld1             {v0.d}[1],  [x0], x1\n        ld1             {v1.d}[1],  [x0], x1\n        ld1             {v2.d}[1],  [x0], x1\n        ld1             {v3.d}[1],  [x0], x1\n\n        transpose_8x16B v4, v5, v6, v7, v0, v1, v2, v3, v21, v23\n\n        h264_loop_filter_luma_intra\n\n        transpose_8x16B v4, v5, v6, v7, v0, v1, v2, v3, v21, v23\n\n        sub             x0,  x0,  x1, lsl #4\n        st1             {v4.8b},  [x0], x1\n        st1             {v5.8b},  [x0], x1\n        st1             {v6.8b},  [x0], x1\n        st1             {v7.8b},  [x0], x1\n        st1             {v0.8b},  [x0], x1\n        st1             {v1.8b},  [x0], x1\n        st1             {v2.8b},  [x0], x1\n        st1             {v3.8b},  [x0], x1\n        st1             {v4.d}[1],  [x0], x1\n        st1             {v5.d}[1],  [x0], x1\n        st1             {v6.d}[1],  [x0], x1\n        st1             {v7.d}[1],  [x0], x1\n        st1             {v0.d}[1],  [x0], x1\n        st1             {v1.d}[1],  [x0], x1\n        st1             {v2.d}[1],  [x0], x1\n        st1             {v3.d}[1],  [x0], x1\n9:\n        ret\nendfunc\n\n.macro  h264_loop_filter_chroma\n        dup             v22.8b, w2              // alpha", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:10", "text": "st1             {v6.8b},  [x0], x1\n        st1             {v7.8b},  [x0], x1\n        st1             {v0.8b},  [x0], x1\n        st1             {v1.8b},  [x0], x1\n        st1             {v2.8b},  [x0], x1\n        st1             {v3.8b},  [x0], x1\n        st1             {v4.d}[1],  [x0], x1\n        st1             {v5.d}[1],  [x0], x1\n        st1             {v6.d}[1],  [x0], x1\n        st1             {v7.d}[1],  [x0], x1\n        st1             {v0.d}[1],  [x0], x1\n        st1             {v1.d}[1],  [x0], x1\n        st1             {v2.d}[1],  [x0], x1\n        st1             {v3.d}[1],  [x0], x1\n9:\n        ret\nendfunc\n\n.macro  h264_loop_filter_chroma\n        dup             v22.8b, w2              // alpha\n        dup             v23.8b, w3              // beta\n        uxtl            v24.8h, v24.8b\n        uabd            v26.8b, v16.8b, v0.8b   // abs(p0 - q0)\n        uabd            v28.8b, v18.8b, v16.8b  // abs(p1 - p0)\n        uabd            v30.8b, v2.8b,  v0.8b   // abs(q1 - q0)\n        cmhi            v26.8b, v22.8b, v26.8b  // < alpha\n        cmhi            v28.8b, v23.8b, v28.8b  // < beta\n        cmhi            v30.8b, v23.8b, v30.8b  // < beta\n        uxtl            v4.8h,  v0.8b\n        and             v26.8b, v26.8b, v28.8b\n        usubw           v4.8h,  v4.8h,  v16.8b\n        and             v26.8b, v26.8b, v30.8b\n        shl             v4.8h,  v4.8h,  #2\n        mov             x8,  v26.d[0]\n        sli             v24.8h, v24.8h, #8\n        uaddw           v4.8h,  v4.8h,  v18.8b\n        cbz             x8,  9f\n        usubw           v4.8h,  v4.8h,  v2.8b\n        rshrn           v4.8b,  v4.8h,  #3\n        smin            v4.8b,  v4.8b,  v24.8b\n        neg             v25.8b, v24.8b\n        smax            v4.8b,  v4.8b,  v25.8b\n        uxtl            v22.8h, v0.8b\n        and             v4.8b,  v4.8b,  v26.8b\n        uxtl            v28.8h, v16.8b\n        saddw           v28.8h, v28.8h, v4.8b\n        ssubw           v22.8h, v22.8h, v4.8b\n        sqxtun          v16.8b, v28.8h\n        sqxtun          v0.8b,  v22.8h\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_neon, export=1\n        h264_loop_filter_start\n\n        sub             x0,  x0,  x1, lsl #1\n        ld1             {v18.8b}, [x0], x1\n        ld1             {v16.8b}, [x0], x1\n        ld1             {v0.8b},  [x0], x1\n        ld1             {v2.8b},  [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:11", "text": "neg             v25.8b, v24.8b\n        smax            v4.8b,  v4.8b,  v25.8b\n        uxtl            v22.8h, v0.8b\n        and             v4.8b,  v4.8b,  v26.8b\n        uxtl            v28.8h, v16.8b\n        saddw           v28.8h, v28.8h, v4.8b\n        ssubw           v22.8h, v22.8h, v4.8b\n        sqxtun          v16.8b, v28.8h\n        sqxtun          v0.8b,  v22.8h\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_neon, export=1\n        h264_loop_filter_start\n\n        sub             x0,  x0,  x1, lsl #1\n        ld1             {v18.8b}, [x0], x1\n        ld1             {v16.8b}, [x0], x1\n        ld1             {v0.8b},  [x0], x1\n        ld1             {v2.8b},  [x0]\n\n        h264_loop_filter_chroma\n\n        sub             x0,  x0,  x1, lsl #1\n        st1             {v16.8b}, [x0], x1\n        st1             {v0.8b},  [x0], x1\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_neon, export=1\n        h264_loop_filter_start\n\n        sub             x0,  x0,  #2\nh_loop_filter_chroma420:\n        ld1             {v18.s}[0], [x0], x1\n        ld1             {v16.s}[0], [x0], x1\n        ld1             {v0.s}[0],  [x0], x1\n        ld1             {v2.s}[0],  [x0], x1\n        ld1             {v18.s}[1], [x0], x1\n        ld1             {v16.s}[1], [x0], x1\n        ld1             {v0.s}[1],  [x0], x1\n        ld1             {v2.s}[1],  [x0], x1\n\n        transpose_4x8B  v18, v16, v0, v2, v28, v29, v30, v31\n\n        h264_loop_filter_chroma\n\n        transpose_4x8B  v18, v16, v0, v2, v28, v29, v30, v31\n\n        sub             x0,  x0,  x1, lsl #3\n        st1             {v18.s}[0], [x0], x1\n        st1             {v16.s}[0], [x0], x1\n        st1             {v0.s}[0],  [x0], x1\n        st1             {v2.s}[0],  [x0], x1\n        st1             {v18.s}[1], [x0], x1\n        st1             {v16.s}[1], [x0], x1\n        st1             {v0.s}[1],  [x0], x1\n        st1             {v2.s}[1],  [x0], x1\n9:\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:12", "text": "ld1             {v0.s}[1],  [x0], x1\n        ld1             {v2.s}[1],  [x0], x1\n\n        transpose_4x8B  v18, v16, v0, v2, v28, v29, v30, v31\n\n        h264_loop_filter_chroma\n\n        transpose_4x8B  v18, v16, v0, v2, v28, v29, v30, v31\n\n        sub             x0,  x0,  x1, lsl #3\n        st1             {v18.s}[0], [x0], x1\n        st1             {v16.s}[0], [x0], x1\n        st1             {v0.s}[0],  [x0], x1\n        st1             {v2.s}[0],  [x0], x1\n        st1             {v18.s}[1], [x0], x1\n        st1             {v16.s}[1], [x0], x1\n        st1             {v0.s}[1],  [x0], x1\n        st1             {v2.s}[1],  [x0], x1\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma422_neon, export=1\n        h264_loop_filter_start\n        add             x5,  x0,  x1\n        sub             x0,  x0,  #2\n        add             x1,  x1,  x1\n        mov             x7,  x30\n        bl              h_loop_filter_chroma420\n        mov             x30, x7\n        sub             x0,  x5,  #2\n        mov             v24.s[0], w6\n        b               h_loop_filter_chroma420\nendfunc\n\n.macro h264_loop_filter_chroma_intra\n        uabd            v26.8b,  v16.8b,  v17.8b  // abs(p0 - q0)\n        uabd            v27.8b,  v18.8b,  v16.8b  // abs(p1 - p0)\n        uabd            v28.8b,  v19.8b,  v17.8b  // abs(q1 - q0)\n        cmhi            v26.8b,  v30.8b,  v26.8b  // < alpha\n        cmhi            v27.8b,  v31.8b,  v27.8b  // < beta\n        cmhi            v28.8b,  v31.8b,  v28.8b  // < beta\n        and             v26.8b,  v26.8b,  v27.8b\n        and             v26.8b,  v26.8b,  v28.8b\n        mov             x2, v26.d[0]\n\n        ushll           v4.8h,   v18.8b,  #1\n        ushll           v6.8h,   v19.8b,  #1\n        cbz             x2, 9f\n        uaddl           v20.8h,  v16.8b,  v19.8b\n        uaddl           v22.8h,  v17.8b,  v18.8b\n        add             v20.8h,  v20.8h,  v4.8h\n        add             v22.8h,  v22.8h,  v6.8h\n        uqrshrn         v24.8b,  v20.8h,  #2\n        uqrshrn         v25.8b,  v22.8h,  #2\n        bit             v16.8b,  v24.8b,  v26.8b\n        bit             v17.8b,  v25.8b,  v26.8b\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_intra_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:13", "text": "cmhi            v27.8b,  v31.8b,  v27.8b  // < beta\n        cmhi            v28.8b,  v31.8b,  v28.8b  // < beta\n        and             v26.8b,  v26.8b,  v27.8b\n        and             v26.8b,  v26.8b,  v28.8b\n        mov             x2, v26.d[0]\n\n        ushll           v4.8h,   v18.8b,  #1\n        ushll           v6.8h,   v19.8b,  #1\n        cbz             x2, 9f\n        uaddl           v20.8h,  v16.8b,  v19.8b\n        uaddl           v22.8h,  v17.8b,  v18.8b\n        add             v20.8h,  v20.8h,  v4.8h\n        add             v22.8h,  v22.8h,  v6.8h\n        uqrshrn         v24.8b,  v20.8h,  #2\n        uqrshrn         v25.8b,  v22.8h,  #2\n        bit             v16.8b,  v24.8b,  v26.8b\n        bit             v17.8b,  v25.8b,  v26.8b\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_intra_neon, export=1\n        h264_loop_filter_start_intra\n\n        sub             x0,  x0,  x1, lsl #1\n        ld1             {v18.8b}, [x0], x1\n        ld1             {v16.8b}, [x0], x1\n        ld1             {v17.8b}, [x0], x1\n        ld1             {v19.8b}, [x0]\n\n        h264_loop_filter_chroma_intra\n\n        sub             x0,  x0,  x1, lsl #1\n        st1             {v16.8b}, [x0], x1\n        st1             {v17.8b}, [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_mbaff_intra_neon, export=1\n        h264_loop_filter_start_intra\n\n        sub             x4,  x0,  #2\n        sub             x0,  x0,  #1\n        ld1             {v18.8b}, [x4], x1\n        ld1             {v16.8b}, [x4], x1\n        ld1             {v17.8b}, [x4], x1\n        ld1             {v19.8b}, [x4], x1\n\n        transpose_4x8B  v18, v16, v17, v19, v26, v27, v28, v29\n\n        h264_loop_filter_chroma_intra\n\n        st2             {v16.b,v17.b}[0], [x0], x1\n        st2             {v16.b,v17.b}[1], [x0], x1\n        st2             {v16.b,v17.b}[2], [x0], x1\n        st2             {v16.b,v17.b}[3], [x0], x1\n\n9:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:14", "text": "sub             x4,  x0,  #2\n        sub             x0,  x0,  #1\n        ld1             {v18.8b}, [x4], x1\n        ld1             {v16.8b}, [x4], x1\n        ld1             {v17.8b}, [x4], x1\n        ld1             {v19.8b}, [x4], x1\n\n        transpose_4x8B  v18, v16, v17, v19, v26, v27, v28, v29\n\n        h264_loop_filter_chroma_intra\n\n        st2             {v16.b,v17.b}[0], [x0], x1\n        st2             {v16.b,v17.b}[1], [x0], x1\n        st2             {v16.b,v17.b}[2], [x0], x1\n        st2             {v16.b,v17.b}[3], [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_intra_neon, export=1\n        h264_loop_filter_start_intra\n\n        sub             x4,  x0,  #2\n        sub             x0,  x0,  #1\nh_loop_filter_chroma420_intra:\n        ld1             {v18.8b}, [x4], x1\n        ld1             {v16.8b}, [x4], x1\n        ld1             {v17.8b}, [x4], x1\n        ld1             {v19.8b}, [x4], x1\n        ld1             {v18.s}[1], [x4], x1\n        ld1             {v16.s}[1], [x4], x1\n        ld1             {v17.s}[1], [x4], x1\n        ld1             {v19.s}[1], [x4], x1\n\n        transpose_4x8B  v18, v16, v17, v19, v26, v27, v28, v29\n\n        h264_loop_filter_chroma_intra\n\n        st2             {v16.b,v17.b}[0], [x0], x1\n        st2             {v16.b,v17.b}[1], [x0], x1\n        st2             {v16.b,v17.b}[2], [x0], x1\n        st2             {v16.b,v17.b}[3], [x0], x1\n        st2             {v16.b,v17.b}[4], [x0], x1\n        st2             {v16.b,v17.b}[5], [x0], x1\n        st2             {v16.b,v17.b}[6], [x0], x1\n        st2             {v16.b,v17.b}[7], [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma422_intra_neon, export=1\n        h264_loop_filter_start_intra\n        sub             x4,  x0,  #2\n        add             x5,  x0,  x1, lsl #3\n        sub             x0,  x0,  #1\n        mov             x7,  x30\n        bl              h_loop_filter_chroma420_intra", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:15", "text": "st2             {v16.b,v17.b}[0], [x0], x1\n        st2             {v16.b,v17.b}[1], [x0], x1\n        st2             {v16.b,v17.b}[2], [x0], x1\n        st2             {v16.b,v17.b}[3], [x0], x1\n        st2             {v16.b,v17.b}[4], [x0], x1\n        st2             {v16.b,v17.b}[5], [x0], x1\n        st2             {v16.b,v17.b}[6], [x0], x1\n        st2             {v16.b,v17.b}[7], [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma422_intra_neon, export=1\n        h264_loop_filter_start_intra\n        sub             x4,  x0,  #2\n        add             x5,  x0,  x1, lsl #3\n        sub             x0,  x0,  #1\n        mov             x7,  x30\n        bl              h_loop_filter_chroma420_intra\n        sub             x0,  x5,  #1\n        mov             x30, x7\n        b               h_loop_filter_chroma420_intra\nendfunc\n\n.macro  biweight_16     macs, macd\n        dup             v0.16b,  w5\n        dup             v1.16b,  w6\n        mov             v4.16b,  v16.16b\n        mov             v6.16b,  v16.16b\n1:      subs            w3,  w3,  #2\n        ld1             {v20.16b}, [x0], x2\n        \\macd           v4.8h,   v0.8b,  v20.8b\n        \\macd\\()2       v6.8H,   v0.16B, v20.16B\n        ld1             {v22.16b}, [x1], x2\n        \\macs           v4.8h,   v1.8b,  v22.8b\n        \\macs\\()2       v6.8H,   v1.16B, v22.16B\n        mov             v24.16b, v16.16b\n        ld1             {v28.16b}, [x0], x2\n        mov             v26.16b, v16.16b\n        \\macd           v24.8h,  v0.8b,  v28.8b\n        \\macd\\()2       v26.8H,  v0.16B, v28.16B\n        ld1             {v30.16b}, [x1], x2\n        \\macs           v24.8h,  v1.8b,  v30.8b\n        \\macs\\()2       v26.8H,  v1.16B, v30.16B\n        sshl            v4.8h,   v4.8h,  v18.8h\n        sshl            v6.8h,   v6.8h,  v18.8h\n        sqxtun          v4.8b,   v4.8h\n        sqxtun2         v4.16b,  v6.8h\n        sshl            v24.8h,  v24.8h, v18.8h\n        sshl            v26.8h,  v26.8h, v18.8h\n        sqxtun          v24.8b,  v24.8h\n        sqxtun2         v24.16b, v26.8h\n        mov             v6.16b,  v16.16b\n        st1             {v4.16b},  [x7], x2\n        mov             v4.16b,  v16.16b\n        st1             {v24.16b}, [x7], x2\n        b.ne            1b\n        ret\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:16", "text": "\\macd           v24.8h,  v0.8b,  v28.8b\n        \\macd\\()2       v26.8H,  v0.16B, v28.16B\n        ld1             {v30.16b}, [x1], x2\n        \\macs           v24.8h,  v1.8b,  v30.8b\n        \\macs\\()2       v26.8H,  v1.16B, v30.16B\n        sshl            v4.8h,   v4.8h,  v18.8h\n        sshl            v6.8h,   v6.8h,  v18.8h\n        sqxtun          v4.8b,   v4.8h\n        sqxtun2         v4.16b,  v6.8h\n        sshl            v24.8h,  v24.8h, v18.8h\n        sshl            v26.8h,  v26.8h, v18.8h\n        sqxtun          v24.8b,  v24.8h\n        sqxtun2         v24.16b, v26.8h\n        mov             v6.16b,  v16.16b\n        st1             {v4.16b},  [x7], x2\n        mov             v4.16b,  v16.16b\n        st1             {v24.16b}, [x7], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  biweight_8      macs, macd\n        dup             v0.8b,  w5\n        dup             v1.8b,  w6\n        mov             v2.16b,  v16.16b\n        mov             v20.16b, v16.16b\n1:      subs            w3,  w3,  #2\n        ld1             {v4.8b}, [x0], x2\n        \\macd           v2.8h,  v0.8b,  v4.8b\n        ld1             {v5.8b}, [x1], x2\n        \\macs           v2.8h,  v1.8b,  v5.8b\n        ld1             {v6.8b}, [x0], x2\n        \\macd           v20.8h, v0.8b,  v6.8b\n        ld1             {v7.8b}, [x1], x2\n        \\macs           v20.8h, v1.8b,  v7.8b\n        sshl            v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        sshl            v20.8h, v20.8h, v18.8h\n        sqxtun          v4.8b,  v20.8h\n        mov             v20.16b, v16.16b\n        st1             {v2.8b}, [x7], x2\n        mov             v2.16b,  v16.16b\n        st1             {v4.8b}, [x7], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  biweight_4      macs, macd\n        dup             v0.8b,  w5\n        dup             v1.8b,  w6\n        mov             v2.16b, v16.16b\n        mov             v20.16b,v16.16b\n1:      subs            w3,  w3,  #4\n        ld1             {v4.s}[0], [x0], x2\n        ld1             {v4.s}[1], [x0], x2\n        \\macd           v2.8h,  v0.8b,  v4.8b\n        ld1             {v5.s}[0], [x1], x2\n        ld1             {v5.s}[1], [x1], x2\n        \\macs           v2.8h,  v1.8b,  v5.8b\n        b.lt            2f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:17", "text": "st1             {v2.8b}, [x7], x2\n        mov             v2.16b,  v16.16b\n        st1             {v4.8b}, [x7], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  biweight_4      macs, macd\n        dup             v0.8b,  w5\n        dup             v1.8b,  w6\n        mov             v2.16b, v16.16b\n        mov             v20.16b,v16.16b\n1:      subs            w3,  w3,  #4\n        ld1             {v4.s}[0], [x0], x2\n        ld1             {v4.s}[1], [x0], x2\n        \\macd           v2.8h,  v0.8b,  v4.8b\n        ld1             {v5.s}[0], [x1], x2\n        ld1             {v5.s}[1], [x1], x2\n        \\macs           v2.8h,  v1.8b,  v5.8b\n        b.lt            2f\n        ld1             {v6.s}[0], [x0], x2\n        ld1             {v6.s}[1], [x0], x2\n        \\macd           v20.8h, v0.8b,  v6.8b\n        ld1             {v7.s}[0], [x1], x2\n        ld1             {v7.s}[1], [x1], x2\n        \\macs           v20.8h, v1.8b,  v7.8b\n        sshl            v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        sshl            v20.8h, v20.8h, v18.8h\n        sqxtun          v4.8b,  v20.8h\n        mov             v20.16b, v16.16b\n        st1             {v2.s}[0], [x7], x2\n        st1             {v2.s}[1], [x7], x2\n        mov             v2.16b,  v16.16b\n        st1             {v4.s}[0], [x7], x2\n        st1             {v4.s}[1], [x7], x2\n        b.ne            1b\n        ret\n2:      sshl            v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        st1             {v2.s}[0], [x7], x2\n        st1             {v2.s}[1], [x7], x2\n        ret\n.endm\n\n.macro  biweight_func   w\nfunction ff_biweight_h264_pixels_\\w\\()_neon, export=1\n        lsr             w8,  w5,  #31\n        add             w7,  w7,  #1\n        eor             w8,  w8,  w6,  lsr #30\n        orr             w7,  w7,  #1\n        dup             v18.8h,   w4\n        lsl             w7,  w7,  w4\n        not             v18.16b,  v18.16b\n        dup             v16.8h,   w7\n        mov             x7,  x0\n        cbz             w8,  10f\n        subs            w8,  w8,  #1\n        b.eq            20f\n        subs            w8,  w8,  #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:18", "text": "st1             {v2.s}[0], [x7], x2\n        st1             {v2.s}[1], [x7], x2\n        ret\n.endm\n\n.macro  biweight_func   w\nfunction ff_biweight_h264_pixels_\\w\\()_neon, export=1\n        lsr             w8,  w5,  #31\n        add             w7,  w7,  #1\n        eor             w8,  w8,  w6,  lsr #30\n        orr             w7,  w7,  #1\n        dup             v18.8h,   w4\n        lsl             w7,  w7,  w4\n        not             v18.16b,  v18.16b\n        dup             v16.8h,   w7\n        mov             x7,  x0\n        cbz             w8,  10f\n        subs            w8,  w8,  #1\n        b.eq            20f\n        subs            w8,  w8,  #1\n        b.eq            30f\n        b               40f\n10:     biweight_\\w     umlal, umlal\n20:     neg             w5, w5\n        biweight_\\w     umlal, umlsl\n30:     neg             w5, w5\n        neg             w6, w6\n        biweight_\\w     umlsl, umlsl\n40:     neg             w6, w6\n        biweight_\\w     umlsl, umlal\nendfunc\n.endm\n\n        biweight_func   16\n        biweight_func   8\n        biweight_func   4\n\n.macro  weight_16       add\n        dup             v0.16b,  w4\n1:      subs            w2,  w2,  #2\n        ld1             {v20.16b}, [x0], x1\n        umull           v4.8h,   v0.8b,  v20.8b\n        umull2          v6.8h,   v0.16b, v20.16b\n        ld1             {v28.16b}, [x0], x1\n        umull           v24.8h,  v0.8b,  v28.8b\n        umull2          v26.8h,  v0.16b, v28.16b\n        \\add            v4.8h,   v16.8h, v4.8h\n        srshl           v4.8h,   v4.8h,  v18.8h\n        \\add            v6.8h,   v16.8h, v6.8h\n        srshl           v6.8h,   v6.8h,  v18.8h\n        sqxtun          v4.8b,   v4.8h\n        sqxtun2         v4.16b,  v6.8h\n        \\add            v24.8h,  v16.8h, v24.8h\n        srshl           v24.8h,  v24.8h, v18.8h\n        \\add            v26.8h,  v16.8h, v26.8h\n        srshl           v26.8h,  v26.8h, v18.8h\n        sqxtun          v24.8b,  v24.8h\n        sqxtun2         v24.16b, v26.8h\n        st1             {v4.16b},  [x5], x1\n        st1             {v24.16b}, [x5], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:19", "text": "ld1             {v20.16b}, [x0], x1\n        umull           v4.8h,   v0.8b,  v20.8b\n        umull2          v6.8h,   v0.16b, v20.16b\n        ld1             {v28.16b}, [x0], x1\n        umull           v24.8h,  v0.8b,  v28.8b\n        umull2          v26.8h,  v0.16b, v28.16b\n        \\add            v4.8h,   v16.8h, v4.8h\n        srshl           v4.8h,   v4.8h,  v18.8h\n        \\add            v6.8h,   v16.8h, v6.8h\n        srshl           v6.8h,   v6.8h,  v18.8h\n        sqxtun          v4.8b,   v4.8h\n        sqxtun2         v4.16b,  v6.8h\n        \\add            v24.8h,  v16.8h, v24.8h\n        srshl           v24.8h,  v24.8h, v18.8h\n        \\add            v26.8h,  v16.8h, v26.8h\n        srshl           v26.8h,  v26.8h, v18.8h\n        sqxtun          v24.8b,  v24.8h\n        sqxtun2         v24.16b, v26.8h\n        st1             {v4.16b},  [x5], x1\n        st1             {v24.16b}, [x5], x1\n        b.ne            1b\n        ret\n.endm\n\n.macro  weight_8        add\n        dup             v0.8b,  w4\n1:      subs            w2,  w2,  #2\n        ld1             {v4.8b}, [x0], x1\n        umull           v2.8h,  v0.8b,  v4.8b\n        ld1             {v6.8b}, [x0], x1\n        umull           v20.8h, v0.8b,  v6.8b\n        \\add            v2.8h,  v16.8h,  v2.8h\n        srshl           v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        \\add            v20.8h, v16.8h,  v20.8h\n        srshl           v20.8h, v20.8h, v18.8h\n        sqxtun          v4.8b,  v20.8h\n        st1             {v2.8b}, [x5], x1\n        st1             {v4.8b}, [x5], x1\n        b.ne            1b\n        ret\n.endm\n\n.macro  weight_4        add\n        dup             v0.8b,  w4\n1:      subs            w2,  w2,  #4\n        ld1             {v4.s}[0], [x0], x1\n        ld1             {v4.s}[1], [x0], x1\n        umull           v2.8h,  v0.8b,  v4.8b\n        b.lt            2f\n        ld1             {v6.s}[0], [x0], x1\n        ld1             {v6.s}[1], [x0], x1\n        umull           v20.8h, v0.8b,  v6.8b\n        \\add            v2.8h,  v16.8h,  v2.8h\n        srshl           v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        \\add            v20.8h, v16.8h,  v20.8h\n        srshl           v20.8h, v20.8h, v18.8h\n        sqxtun          v4.8b,  v20.8h\n        st1             {v2.s}[0], [x5], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:20", "text": "ret\n.endm\n\n.macro  weight_4        add\n        dup             v0.8b,  w4\n1:      subs            w2,  w2,  #4\n        ld1             {v4.s}[0], [x0], x1\n        ld1             {v4.s}[1], [x0], x1\n        umull           v2.8h,  v0.8b,  v4.8b\n        b.lt            2f\n        ld1             {v6.s}[0], [x0], x1\n        ld1             {v6.s}[1], [x0], x1\n        umull           v20.8h, v0.8b,  v6.8b\n        \\add            v2.8h,  v16.8h,  v2.8h\n        srshl           v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        \\add            v20.8h, v16.8h,  v20.8h\n        srshl           v20.8h, v20.8h, v18.8h\n        sqxtun          v4.8b,  v20.8h\n        st1             {v2.s}[0], [x5], x1\n        st1             {v2.s}[1], [x5], x1\n        st1             {v4.s}[0], [x5], x1\n        st1             {v4.s}[1], [x5], x1\n        b.ne            1b\n        ret\n2:      \\add            v2.8h,  v16.8h,  v2.8h\n        srshl           v2.8h,  v2.8h,  v18.8h\n        sqxtun          v2.8b,  v2.8h\n        st1             {v2.s}[0], [x5], x1\n        st1             {v2.s}[1], [x5], x1\n        ret\n.endm\n\n.macro  weight_func     w\nfunction ff_weight_h264_pixels_\\w\\()_neon, export=1\n        cmp             w3,  #1\n        mov             w6,  #1\n        lsl             w5,  w5,  w3\n        dup             v16.8h,  w5\n        mov             x5,  x0\n        b.le            20f\n        sub             w6,  w6,  w3\n        dup             v18.8h,  w6\n        cmp             w4, #0\n        b.lt            10f\n        weight_\\w       shadd\n10:     neg             w4,  w4\n        weight_\\w       shsub\n20:     neg             w6,  w3\n        dup             v18.8h,  w6\n        cmp             w4,  #0\n        b.lt            10f\n        weight_\\w       add\n10:     neg             w4,  w4\n        weight_\\w       sub\nendfunc\n.endm\n\n        weight_func     16\n        weight_func     8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:21", "text": "b.le            20f\n        sub             w6,  w6,  w3\n        dup             v18.8h,  w6\n        cmp             w4, #0\n        b.lt            10f\n        weight_\\w       shadd\n10:     neg             w4,  w4\n        weight_\\w       shsub\n20:     neg             w6,  w3\n        dup             v18.8h,  w6\n        cmp             w4,  #0\n        b.lt            10f\n        weight_\\w       add\n10:     neg             w4,  w4\n        weight_\\w       sub\nendfunc\n.endm\n\n        weight_func     16\n        weight_func     8\n        weight_func     4\n\n.macro  h264_loop_filter_start_10\n        cmp             w2,  #0\n        ldr             w6,  [x4]\n        ccmp            w3,  #0,  #0,  ne\n        lsl             w2,  w2,  #2\n        mov             v24.s[0], w6\n        lsl             w3,  w3,  #2\n        and             w8,  w6,  w6,  lsl #16\n        b.eq            1f\n        ands            w8,  w8,  w8,  lsl #8\n        b.ge            2f\n1:\n        ret\n2:\n.endm\n\n.macro h264_loop_filter_start_intra_10\n        orr             w4,  w2,  w3\n        cbnz            w4,  1f\n        ret\n1:\n        lsl             w2,  w2,  #2\n        lsl             w3,  w3,  #2\n        dup             v30.8h,   w2              // alpha\n        dup             v31.8h,   w3              // beta\n.endm\n\n.macro  h264_loop_filter_chroma_10\n        dup             v22.8h,  w2               // alpha\n        dup             v23.8h,  w3               // beta\n        uxtl            v24.8h,  v24.8b           // tc0\n\n        uabd            v26.8h,  v16.8h,  v0.8h   // abs(p0 - q0)\n        uabd            v28.8h,  v18.8h,  v16.8h  // abs(p1 - p0)\n        uabd            v30.8h,  v2.8h,   v0.8h   // abs(q1 - q0)\n        cmhi            v26.8h,  v22.8h,  v26.8h  // < alpha\n        cmhi            v28.8h,  v23.8h,  v28.8h  // < beta\n        cmhi            v30.8h,  v23.8h,  v30.8h  // < beta", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:22", "text": "cbnz            w4,  1f\n        ret\n1:\n        lsl             w2,  w2,  #2\n        lsl             w3,  w3,  #2\n        dup             v30.8h,   w2              // alpha\n        dup             v31.8h,   w3              // beta\n.endm\n\n.macro  h264_loop_filter_chroma_10\n        dup             v22.8h,  w2               // alpha\n        dup             v23.8h,  w3               // beta\n        uxtl            v24.8h,  v24.8b           // tc0\n\n        uabd            v26.8h,  v16.8h,  v0.8h   // abs(p0 - q0)\n        uabd            v28.8h,  v18.8h,  v16.8h  // abs(p1 - p0)\n        uabd            v30.8h,  v2.8h,   v0.8h   // abs(q1 - q0)\n        cmhi            v26.8h,  v22.8h,  v26.8h  // < alpha\n        cmhi            v28.8h,  v23.8h,  v28.8h  // < beta\n        cmhi            v30.8h,  v23.8h,  v30.8h  // < beta\n\n        and             v26.16b, v26.16b, v28.16b\n        mov             v4.16b,  v0.16b\n        sub             v4.8h,   v4.8h,   v16.8h\n        and             v26.16b, v26.16b, v30.16b\n        shl             v4.8h,   v4.8h,   #2\n        mov             x8, v26.d[0]\n        mov             x9, v26.d[1]\n        sli             v24.8h,  v24.8h,  #8\n        uxtl            v24.8h,  v24.8b\n        add             v4.8h,   v4.8h,   v18.8h\n        adds            x8,  x8,  x9\n        shl             v24.8h,  v24.8h,  #2\n\n        b.eq            9f\n\n        movi            v31.8h, #3                // (tc0 - 1) << (BIT_DEPTH - 8)) + 1\n        uqsub           v24.8h,  v24.8h,  v31.8h\n        sub             v4.8h,   v4.8h,   v2.8h\n        srshr           v4.8h,   v4.8h,   #3\n        smin            v4.8h,   v4.8h,   v24.8h\n        neg             v25.8h,  v24.8h\n        smax            v4.8h,   v4.8h,   v25.8h\n        and             v4.16b,  v4.16b,  v26.16b\n        add             v16.8h,  v16.8h,  v4.8h\n        sub             v0.8h,   v0.8h,   v4.8h\n\n        mvni            v4.8h,   #0xFC, lsl #8    // 1023 for clipping\n        movi            v5.8h,   #0\n        smin            v0.8h,   v0.8h,   v4.8h\n        smin            v16.8h,  v16.8h,  v4.8h\n        smax            v0.8h,   v0.8h,   v5.8h\n        smax            v16.8h,  v16.8h,  v5.8h\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_neon_10, export=1\n        h264_loop_filter_start_10\n\n        mov             x10,  x0\n        sub             x0,  x0,  x1, lsl #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:23", "text": "smin            v4.8h,   v4.8h,   v24.8h\n        neg             v25.8h,  v24.8h\n        smax            v4.8h,   v4.8h,   v25.8h\n        and             v4.16b,  v4.16b,  v26.16b\n        add             v16.8h,  v16.8h,  v4.8h\n        sub             v0.8h,   v0.8h,   v4.8h\n\n        mvni            v4.8h,   #0xFC, lsl #8    // 1023 for clipping\n        movi            v5.8h,   #0\n        smin            v0.8h,   v0.8h,   v4.8h\n        smin            v16.8h,  v16.8h,  v4.8h\n        smax            v0.8h,   v0.8h,   v5.8h\n        smax            v16.8h,  v16.8h,  v5.8h\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_neon_10, export=1\n        h264_loop_filter_start_10\n\n        mov             x10,  x0\n        sub             x0,  x0,  x1, lsl #1\n        ld1             {v18.8h}, [x0 ], x1\n        ld1             {v0.8h},  [x10], x1\n        ld1             {v16.8h}, [x0 ], x1\n        ld1             {v2.8h},  [x10]\n\n        h264_loop_filter_chroma_10\n\n        sub             x0,  x10,  x1, lsl #1\n        st1             {v16.8h}, [x0], x1\n        st1             {v0.8h},  [x0], x1\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_neon_10, export=1\n        h264_loop_filter_start_10\n\n        sub             x0,  x0,  #4 // access the 2nd left pixel\nh_loop_filter_chroma420_10:\n        add             x10,  x0,  x1,  lsl #2\n        ld1             {v18.d}[0], [x0 ], x1\n        ld1             {v18.d}[1], [x10], x1\n        ld1             {v16.d}[0], [x0 ], x1\n        ld1             {v16.d}[1], [x10], x1\n        ld1             {v0.d}[0],  [x0 ], x1\n        ld1             {v0.d}[1],  [x10], x1\n        ld1             {v2.d}[0],  [x0 ], x1\n        ld1             {v2.d}[1],  [x10], x1\n\n        transpose_4x8H  v18, v16, v0, v2, v28, v29, v30, v31\n\n        h264_loop_filter_chroma_10\n\n        transpose_4x8H  v18, v16, v0, v2, v28, v29, v30, v31\n\n        sub             x0,  x10,  x1, lsl #3\n        st1             {v18.d}[0], [x0], x1\n        st1             {v16.d}[0], [x0], x1\n        st1             {v0.d}[0],  [x0], x1\n        st1             {v2.d}[0],  [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:24", "text": "ld1             {v18.d}[0], [x0 ], x1\n        ld1             {v18.d}[1], [x10], x1\n        ld1             {v16.d}[0], [x0 ], x1\n        ld1             {v16.d}[1], [x10], x1\n        ld1             {v0.d}[0],  [x0 ], x1\n        ld1             {v0.d}[1],  [x10], x1\n        ld1             {v2.d}[0],  [x0 ], x1\n        ld1             {v2.d}[1],  [x10], x1\n\n        transpose_4x8H  v18, v16, v0, v2, v28, v29, v30, v31\n\n        h264_loop_filter_chroma_10\n\n        transpose_4x8H  v18, v16, v0, v2, v28, v29, v30, v31\n\n        sub             x0,  x10,  x1, lsl #3\n        st1             {v18.d}[0], [x0], x1\n        st1             {v16.d}[0], [x0], x1\n        st1             {v0.d}[0],  [x0], x1\n        st1             {v2.d}[0],  [x0], x1\n        st1             {v18.d}[1], [x0], x1\n        st1             {v16.d}[1], [x0], x1\n        st1             {v0.d}[1],  [x0], x1\n        st1             {v2.d}[1],  [x0], x1\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma422_neon_10, export=1\n        h264_loop_filter_start_10\n        add             x5,  x0,  x1\n        sub             x0,  x0,  #4\n        add             x1,  x1,  x1\n        mov             x7,  x30\n        bl              h_loop_filter_chroma420_10\n        mov             x30, x7\n        sub             x0,  x5,  #4\n        mov             v24.s[0], w6\n        b               h_loop_filter_chroma420_10\nendfunc\n\n.macro h264_loop_filter_chroma_intra_10\n        uabd            v26.8h,  v16.8h,  v17.8h  // abs(p0 - q0)\n        uabd            v27.8h,  v18.8h,  v16.8h  // abs(p1 - p0)\n        uabd            v28.8h,  v19.8h,  v17.8h  // abs(q1 - q0)\n        cmhi            v26.8h,  v30.8h,  v26.8h  // < alpha\n        cmhi            v27.8h,  v31.8h,  v27.8h  // < beta\n        cmhi            v28.8h,  v31.8h,  v28.8h  // < beta\n        and             v26.16b, v26.16b, v27.16b\n        and             v26.16b, v26.16b, v28.16b\n        mov             x2, v26.d[0]\n        mov             x3, v26.d[1]\n\n        shl             v4.8h,  v18.8h,  #1\n        shl             v6.8h,  v19.8h,  #1\n\n        adds            x2,  x2,  x3\n        b.eq            9f\n\n        add             v20.8h,  v16.8h,  v19.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:25", "text": ".macro h264_loop_filter_chroma_intra_10\n        uabd            v26.8h,  v16.8h,  v17.8h  // abs(p0 - q0)\n        uabd            v27.8h,  v18.8h,  v16.8h  // abs(p1 - p0)\n        uabd            v28.8h,  v19.8h,  v17.8h  // abs(q1 - q0)\n        cmhi            v26.8h,  v30.8h,  v26.8h  // < alpha\n        cmhi            v27.8h,  v31.8h,  v27.8h  // < beta\n        cmhi            v28.8h,  v31.8h,  v28.8h  // < beta\n        and             v26.16b, v26.16b, v27.16b\n        and             v26.16b, v26.16b, v28.16b\n        mov             x2, v26.d[0]\n        mov             x3, v26.d[1]\n\n        shl             v4.8h,  v18.8h,  #1\n        shl             v6.8h,  v19.8h,  #1\n\n        adds            x2,  x2,  x3\n        b.eq            9f\n\n        add             v20.8h,  v16.8h,  v19.8h\n        add             v22.8h,  v17.8h,  v18.8h\n        add             v20.8h,  v20.8h,  v4.8h\n        add             v22.8h,  v22.8h,  v6.8h\n        urshr           v24.8h,  v20.8h,  #2\n        urshr           v25.8h,  v22.8h,  #2\n        bit             v16.16b, v24.16b, v26.16b\n        bit             v17.16b, v25.16b, v26.16b\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_intra_neon_10, export=1\n        h264_loop_filter_start_intra_10\n        mov             x9,  x0\n        sub             x0,  x0,  x1, lsl #1\n        ld1             {v18.8h}, [x0], x1\n        ld1             {v17.8h}, [x9], x1\n        ld1             {v16.8h}, [x0], x1\n        ld1             {v19.8h}, [x9]\n\n        h264_loop_filter_chroma_intra_10\n\n        sub             x0,  x9,  x1, lsl #1\n        st1             {v16.8h}, [x0], x1\n        st1             {v17.8h}, [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_mbaff_intra_neon_10, export=1\n        h264_loop_filter_start_intra_10\n\n        sub             x4,  x0,  #4\n        sub             x0,  x0,  #2\n        add             x9,  x4,  x1, lsl #1\n        ld1             {v18.8h}, [x4], x1\n        ld1             {v17.8h}, [x9], x1\n        ld1             {v16.8h}, [x4], x1\n        ld1             {v19.8h}, [x9], x1\n\n        transpose_4x8H  v18, v16, v17, v19, v26, v27, v28, v29", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:26", "text": "sub             x0,  x9,  x1, lsl #1\n        st1             {v16.8h}, [x0], x1\n        st1             {v17.8h}, [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_mbaff_intra_neon_10, export=1\n        h264_loop_filter_start_intra_10\n\n        sub             x4,  x0,  #4\n        sub             x0,  x0,  #2\n        add             x9,  x4,  x1, lsl #1\n        ld1             {v18.8h}, [x4], x1\n        ld1             {v17.8h}, [x9], x1\n        ld1             {v16.8h}, [x4], x1\n        ld1             {v19.8h}, [x9], x1\n\n        transpose_4x8H  v18, v16, v17, v19, v26, v27, v28, v29\n\n        h264_loop_filter_chroma_intra_10\n\n        st2             {v16.h,v17.h}[0], [x0], x1\n        st2             {v16.h,v17.h}[1], [x0], x1\n        st2             {v16.h,v17.h}[2], [x0], x1\n        st2             {v16.h,v17.h}[3], [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_intra_neon_10, export=1\n        h264_loop_filter_start_intra_10\n        sub             x4,  x0,  #4\n        sub             x0,  x0,  #2\nh_loop_filter_chroma420_intra_10:\n        add             x9,  x4,  x1, lsl #2\n        ld1             {v18.4h},   [x4], x1\n        ld1             {v18.d}[1], [x9], x1\n        ld1             {v16.4h},   [x4], x1\n        ld1             {v16.d}[1], [x9], x1\n        ld1             {v17.4h},   [x4], x1\n        ld1             {v17.d}[1], [x9], x1\n        ld1             {v19.4h},   [x4], x1\n        ld1             {v19.d}[1], [x9], x1\n\n        transpose_4x8H  v18, v16, v17, v19, v26, v27, v28, v29\n\n        h264_loop_filter_chroma_intra_10\n\n        st2             {v16.h,v17.h}[0], [x0], x1\n        st2             {v16.h,v17.h}[1], [x0], x1\n        st2             {v16.h,v17.h}[2], [x0], x1\n        st2             {v16.h,v17.h}[3], [x0], x1\n        st2             {v16.h,v17.h}[4], [x0], x1\n        st2             {v16.h,v17.h}[5], [x0], x1\n        st2             {v16.h,v17.h}[6], [x0], x1\n        st2             {v16.h,v17.h}[7], [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264dsp_neon.S:27", "text": "ld1             {v16.4h},   [x4], x1\n        ld1             {v16.d}[1], [x9], x1\n        ld1             {v17.4h},   [x4], x1\n        ld1             {v17.d}[1], [x9], x1\n        ld1             {v19.4h},   [x4], x1\n        ld1             {v19.d}[1], [x9], x1\n\n        transpose_4x8H  v18, v16, v17, v19, v26, v27, v28, v29\n\n        h264_loop_filter_chroma_intra_10\n\n        st2             {v16.h,v17.h}[0], [x0], x1\n        st2             {v16.h,v17.h}[1], [x0], x1\n        st2             {v16.h,v17.h}[2], [x0], x1\n        st2             {v16.h,v17.h}[3], [x0], x1\n        st2             {v16.h,v17.h}[4], [x0], x1\n        st2             {v16.h,v17.h}[5], [x0], x1\n        st2             {v16.h,v17.h}[6], [x0], x1\n        st2             {v16.h,v17.h}[7], [x0], x1\n\n9:\n        ret\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma422_intra_neon_10, export=1\n        h264_loop_filter_start_intra_10\n        sub             x4,  x0,  #4\n        add             x5,  x0,  x1, lsl #3\n        sub             x0,  x0,  #2\n        mov             x7,  x30\n        bl              h_loop_filter_chroma420_intra_10\n        mov             x4,  x9\n        sub             x0,  x5,  #2\n        mov             x30, x7\n        b               h_loop_filter_chroma420_intra_10\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264dsp_neon.S", "line_start": 1041, "line_end": 1076}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2013 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n#include \"neon.S\"\n\nfunction ff_h264_idct_add_neon, export=1\n.L_ff_h264_idct_add_neon:\n        AARCH64_VALID_CALL_TARGET\n        ld1             {v0.4h, v1.4h, v2.4h, v3.4h},  [x1]\n        sxtw            x2,     w2\n        movi            v30.8h, #0\n\n        add             v4.4h,  v0.4h,  v2.4h\n        sshr            v16.4h, v1.4h,  #1\n        st1             {v30.8h},    [x1], #16\n        sshr            v17.4h, v3.4h,  #1\n        st1             {v30.8h},    [x1], #16\n        sub             v5.4h,  v0.4h,  v2.4h\n        sub             v6.4h,  v16.4h, v3.4h\n        add             v7.4h,  v1.4h,  v17.4h\n        add             v0.4h,  v4.4h,  v7.4h\n        add             v1.4h,  v5.4h,  v6.4h\n        sub             v2.4h,  v5.4h,  v6.4h\n        sub             v3.4h,  v4.4h,  v7.4h\n\n        transpose_4x4H  v0, v1, v2, v3, v4, v5, v6, v7\n\n        add             v4.4h,  v0.4h,  v2.4h\n        ld1             {v18.s}[0], [x0], x2\n        sshr            v16.4h,  v3.4h,  #1\n        sshr            v17.4h,  v1.4h,  #1\n        ld1             {v18.s}[1], [x0], x2\n        sub             v5.4h,  v0.4h,  v2.4h\n        ld1             {v19.s}[1], [x0], x2\n        add             v6.4h,  v16.4h, v1.4h\n        ins             v4.d[1],  v5.d[0]\n        sub             v7.4h,  v17.4h, v3.4h\n        ld1             {v19.s}[0], [x0], x2\n        ins             v6.d[1],  v7.d[0]\n        sub             x0,  x0,  x2, lsl #2\n        add             v0.8h,  v4.8h,  v6.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:2", "text": "add             v1.4h,  v5.4h,  v6.4h\n        sub             v2.4h,  v5.4h,  v6.4h\n        sub             v3.4h,  v4.4h,  v7.4h\n\n        transpose_4x4H  v0, v1, v2, v3, v4, v5, v6, v7\n\n        add             v4.4h,  v0.4h,  v2.4h\n        ld1             {v18.s}[0], [x0], x2\n        sshr            v16.4h,  v3.4h,  #1\n        sshr            v17.4h,  v1.4h,  #1\n        ld1             {v18.s}[1], [x0], x2\n        sub             v5.4h,  v0.4h,  v2.4h\n        ld1             {v19.s}[1], [x0], x2\n        add             v6.4h,  v16.4h, v1.4h\n        ins             v4.d[1],  v5.d[0]\n        sub             v7.4h,  v17.4h, v3.4h\n        ld1             {v19.s}[0], [x0], x2\n        ins             v6.d[1],  v7.d[0]\n        sub             x0,  x0,  x2, lsl #2\n        add             v0.8h,  v4.8h,  v6.8h\n        sub             v1.8h,  v4.8h,  v6.8h\n\n        srshr           v0.8h,  v0.8h,  #6\n        srshr           v1.8h,  v1.8h,  #6\n\n        uaddw           v0.8h,  v0.8h,  v18.8b\n        uaddw           v1.8h,  v1.8h,  v19.8b\n\n        sqxtun          v0.8b, v0.8h\n        sqxtun          v1.8b, v1.8h\n\n        st1             {v0.s}[0],  [x0], x2\n        st1             {v0.s}[1],  [x0], x2\n        st1             {v1.s}[1],  [x0], x2\n        st1             {v1.s}[0],  [x0], x2\n\n        sub             x1,  x1,  #32\n        ret\nendfunc\n\nfunction ff_h264_idct_dc_add_neon, export=1\n.L_ff_h264_idct_dc_add_neon:\n        AARCH64_VALID_CALL_TARGET\n        sxtw            x2,  w2\n        mov             w3,       #0\n        ld1r            {v2.8h},  [x1]\n        strh            w3,       [x1]\n        srshr           v2.8h,  v2.8h,  #6\n        ld1             {v0.s}[0],  [x0], x2\n        ld1             {v0.s}[1],  [x0], x2\n        uaddw           v3.8h,  v2.8h,  v0.8b\n        ld1             {v1.s}[0],  [x0], x2\n        ld1             {v1.s}[1],  [x0], x2\n        uaddw           v4.8h,  v2.8h,  v1.8b\n        sqxtun          v0.8b,  v3.8h\n        sqxtun          v1.8b,  v4.8h\n        sub             x0,  x0,  x2, lsl #2\n        st1             {v0.s}[0],  [x0], x2\n        st1             {v0.s}[1],  [x0], x2\n        st1             {v1.s}[0],  [x0], x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:3", "text": "function ff_h264_idct_dc_add_neon, export=1\n.L_ff_h264_idct_dc_add_neon:\n        AARCH64_VALID_CALL_TARGET\n        sxtw            x2,  w2\n        mov             w3,       #0\n        ld1r            {v2.8h},  [x1]\n        strh            w3,       [x1]\n        srshr           v2.8h,  v2.8h,  #6\n        ld1             {v0.s}[0],  [x0], x2\n        ld1             {v0.s}[1],  [x0], x2\n        uaddw           v3.8h,  v2.8h,  v0.8b\n        ld1             {v1.s}[0],  [x0], x2\n        ld1             {v1.s}[1],  [x0], x2\n        uaddw           v4.8h,  v2.8h,  v1.8b\n        sqxtun          v0.8b,  v3.8h\n        sqxtun          v1.8b,  v4.8h\n        sub             x0,  x0,  x2, lsl #2\n        st1             {v0.s}[0],  [x0], x2\n        st1             {v0.s}[1],  [x0], x2\n        st1             {v1.s}[0],  [x0], x2\n        st1             {v1.s}[1],  [x0], x2\n        ret\nendfunc\n\nfunction ff_h264_idct_add16_neon, export=1\n        mov             x12, x30\n        mov             x6,  x0         // dest\n        mov             x5,  x1         // block_offset\n        mov             x1,  x2         // block\n        mov             w9,  w3         // stride\n        movrel          x7,  scan8\n        mov             x10, #16\n        movrel          x13, .L_ff_h264_idct_dc_add_neon\n        movrel          x14, .L_ff_h264_idct_add_neon\n1:      mov             w2,  w9\n        ldrb            w3,  [x7], #1\n        ldrsw           x0,  [x5], #4\n        ldrb            w3,  [x4,  w3,  uxtw]\n        subs            w3,  w3,  #1\n        b.lt            2f\n        ldrsh           w3,  [x1]\n        add             x0,  x0,  x6\n        ccmp            w3,  #0,  #4,  eq\n        csel            x15, x13, x14, ne\n        blr             x15\n2:      subs            x10, x10, #1\n        add             x1,  x1,  #32\n        b.ne            1b\n        ret             x12\nendfunc\n\nfunction ff_h264_idct_add16intra_neon, export=1\n        mov             x12, x30\n        mov             x6,  x0         // dest\n        mov             x5,  x1         // block_offset\n        mov             x1,  x2         // block\n        mov             w9,  w3         // stride\n        movrel          x7,  scan8\n        mov             x10, #16\n        movrel          x13, .L_ff_h264_idct_dc_add_neon", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:4", "text": "ldrsh           w3,  [x1]\n        add             x0,  x0,  x6\n        ccmp            w3,  #0,  #4,  eq\n        csel            x15, x13, x14, ne\n        blr             x15\n2:      subs            x10, x10, #1\n        add             x1,  x1,  #32\n        b.ne            1b\n        ret             x12\nendfunc\n\nfunction ff_h264_idct_add16intra_neon, export=1\n        mov             x12, x30\n        mov             x6,  x0         // dest\n        mov             x5,  x1         // block_offset\n        mov             x1,  x2         // block\n        mov             w9,  w3         // stride\n        movrel          x7,  scan8\n        mov             x10, #16\n        movrel          x13, .L_ff_h264_idct_dc_add_neon\n        movrel          x14, .L_ff_h264_idct_add_neon\n1:      mov             w2,  w9\n        ldrb            w3,  [x7], #1\n        ldrsw           x0,  [x5], #4\n        ldrb            w3,  [x4,  w3,  uxtw]\n        add             x0,  x0,  x6\n        cmp             w3,  #0\n        ldrsh           w3,  [x1]\n        csel            x15, x13, x14, eq\n        ccmp            w3,  #0,  #0,  eq\n        b.eq            2f\n        blr             x15\n2:      subs            x10, x10, #1\n        add             x1,  x1,  #32\n        b.ne            1b\n        ret             x12\nendfunc\n\nfunction ff_h264_idct_add8_neon, export=1\n        stp             x19, x20, [sp, #-0x40]!\n        mov             x12, x30\n        ldp             x6,  x15, [x0]          // dest[0], dest[1]\n        add             x5,  x1,  #16*4         // block_offset\n        add             x9,  x2,  #16*32        // block\n        mov             w19, w3                 // stride\n        movrel          x13, .L_ff_h264_idct_dc_add_neon\n        movrel          x14, .L_ff_h264_idct_add_neon\n        movrel          x7,  scan8, 16\n        mov             x10, #0\n        mov             x11, #16\n1:      mov             w2,  w19\n        ldrb            w3,  [x7, x10]          // scan8[i]\n        ldrsw           x0,  [x5, x10, lsl #2]  // block_offset[i]\n        ldrb            w3,  [x4, w3,  uxtw]    // nnzc[ scan8[i] ]\n        add             x0,  x0,  x6            // block_offset[i] + dst[j-1]\n        add             x1,  x9,  x10, lsl #5   // block + i * 16\n        cmp             w3,  #0\n        ldrsh           w3,  [x1]               // block[i*16]\n        csel            x20, x13, x14, eq\n        ccmp            w3,  #0,  #0,  eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:5", "text": "mov             x12, x30\n        ldp             x6,  x15, [x0]          // dest[0], dest[1]\n        add             x5,  x1,  #16*4         // block_offset\n        add             x9,  x2,  #16*32        // block\n        mov             w19, w3                 // stride\n        movrel          x13, .L_ff_h264_idct_dc_add_neon\n        movrel          x14, .L_ff_h264_idct_add_neon\n        movrel          x7,  scan8, 16\n        mov             x10, #0\n        mov             x11, #16\n1:      mov             w2,  w19\n        ldrb            w3,  [x7, x10]          // scan8[i]\n        ldrsw           x0,  [x5, x10, lsl #2]  // block_offset[i]\n        ldrb            w3,  [x4, w3,  uxtw]    // nnzc[ scan8[i] ]\n        add             x0,  x0,  x6            // block_offset[i] + dst[j-1]\n        add             x1,  x9,  x10, lsl #5   // block + i * 16\n        cmp             w3,  #0\n        ldrsh           w3,  [x1]               // block[i*16]\n        csel            x20, x13, x14, eq\n        ccmp            w3,  #0,  #0,  eq\n        b.eq            2f\n        blr             x20\n2:      add             x10, x10, #1\n        cmp             x10, #4\n        csel            x10, x11, x10, eq     // mov x10, #16\n        csel            x6,  x15, x6,  eq\n        cmp             x10, #20\n        b.lt            1b\n        ldp             x19, x20, [sp], #0x40\n        ret             x12\nendfunc\n\n.macro  idct8x8_cols    pass\n  .if \\pass == 0\n        va      .req    v18\n        vb      .req    v30\n        sshr            v18.8h, v26.8h, #1\n        add             v16.8h, v24.8h, v28.8h\n        ld1             {v30.8h, v31.8h}, [x1]\n        st1             {v19.8h}, [x1],  #16\n        st1             {v19.8h}, [x1],  #16\n        sub             v17.8h,  v24.8h, v28.8h\n        sshr            v19.8h,  v30.8h, #1\n        sub             v18.8h,  v18.8h,  v30.8h\n        add             v19.8h,  v19.8h,  v26.8h\n  .else\n        va      .req    v30\n        vb      .req    v18\n        sshr            v30.8h, v26.8h, #1\n        sshr            v19.8h, v18.8h, #1\n        add             v16.8h, v24.8h, v28.8h\n        sub             v17.8h, v24.8h, v28.8h\n        sub             v30.8h, v30.8h, v18.8h\n        add             v19.8h, v19.8h, v26.8h\n  .endif\n        add             v26.8h, v17.8h, va.8h\n        sub             v28.8h, v17.8h, va.8h\n        add             v24.8h, v16.8h, v19.8h\n        sub             vb.8h,  v16.8h, v19.8h\n        sub             v16.8h, v29.8h, v27.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:6", "text": "st1             {v19.8h}, [x1],  #16\n        sub             v17.8h,  v24.8h, v28.8h\n        sshr            v19.8h,  v30.8h, #1\n        sub             v18.8h,  v18.8h,  v30.8h\n        add             v19.8h,  v19.8h,  v26.8h\n  .else\n        va      .req    v30\n        vb      .req    v18\n        sshr            v30.8h, v26.8h, #1\n        sshr            v19.8h, v18.8h, #1\n        add             v16.8h, v24.8h, v28.8h\n        sub             v17.8h, v24.8h, v28.8h\n        sub             v30.8h, v30.8h, v18.8h\n        add             v19.8h, v19.8h, v26.8h\n  .endif\n        add             v26.8h, v17.8h, va.8h\n        sub             v28.8h, v17.8h, va.8h\n        add             v24.8h, v16.8h, v19.8h\n        sub             vb.8h,  v16.8h, v19.8h\n        sub             v16.8h, v29.8h, v27.8h\n        add             v17.8h, v31.8h, v25.8h\n        sub             va.8h,  v31.8h, v25.8h\n        add             v19.8h, v29.8h, v27.8h\n        sub             v16.8h, v16.8h, v31.8h\n        sub             v17.8h, v17.8h, v27.8h\n        add             va.8h,  va.8h,  v29.8h\n        add             v19.8h, v19.8h, v25.8h\n        sshr            v25.8h, v25.8h, #1\n        sshr            v27.8h, v27.8h, #1\n        sshr            v29.8h, v29.8h, #1\n        sshr            v31.8h, v31.8h, #1\n        sub             v16.8h, v16.8h, v31.8h\n        sub             v17.8h, v17.8h, v27.8h\n        add             va.8h,  va.8h,  v29.8h\n        add             v19.8h, v19.8h, v25.8h\n        sshr            v25.8h, v16.8h, #2\n        sshr            v27.8h, v17.8h, #2\n        sshr            v29.8h, va.8h,  #2\n        sshr            v31.8h, v19.8h, #2\n        sub             v19.8h, v19.8h, v25.8h\n        sub             va.8h,  v27.8h, va.8h\n        add             v17.8h, v17.8h, v29.8h\n        add             v16.8h, v16.8h, v31.8h\n  .if \\pass == 0\n        sub             v31.8h, v24.8h, v19.8h\n        add             v24.8h, v24.8h, v19.8h\n        add             v25.8h, v26.8h, v18.8h\n        sub             v18.8h, v26.8h, v18.8h\n        add             v26.8h, v28.8h, v17.8h\n        add             v27.8h, v30.8h, v16.8h\n        sub             v29.8h, v28.8h, v17.8h\n        sub             v28.8h, v30.8h, v16.8h\n  .else\n        sub             v31.8h, v24.8h, v19.8h\n        add             v24.8h, v24.8h, v19.8h\n        add             v25.8h, v26.8h, v30.8h\n        sub             v30.8h, v26.8h, v30.8h\n        add             v26.8h, v28.8h, v17.8h\n        sub             v29.8h, v28.8h, v17.8h\n        add             v27.8h, v18.8h, v16.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:7", "text": "sub             va.8h,  v27.8h, va.8h\n        add             v17.8h, v17.8h, v29.8h\n        add             v16.8h, v16.8h, v31.8h\n  .if \\pass == 0\n        sub             v31.8h, v24.8h, v19.8h\n        add             v24.8h, v24.8h, v19.8h\n        add             v25.8h, v26.8h, v18.8h\n        sub             v18.8h, v26.8h, v18.8h\n        add             v26.8h, v28.8h, v17.8h\n        add             v27.8h, v30.8h, v16.8h\n        sub             v29.8h, v28.8h, v17.8h\n        sub             v28.8h, v30.8h, v16.8h\n  .else\n        sub             v31.8h, v24.8h, v19.8h\n        add             v24.8h, v24.8h, v19.8h\n        add             v25.8h, v26.8h, v30.8h\n        sub             v30.8h, v26.8h, v30.8h\n        add             v26.8h, v28.8h, v17.8h\n        sub             v29.8h, v28.8h, v17.8h\n        add             v27.8h, v18.8h, v16.8h\n        sub             v28.8h, v18.8h, v16.8h\n  .endif\n        .unreq          va\n        .unreq          vb\n.endm\n\nfunction ff_h264_idct8_add_neon, export=1\n.L_ff_h264_idct8_add_neon:\n        AARCH64_VALID_CALL_TARGET\n        movi            v19.8h,   #0\n        sxtw            x2,       w2\n        ld1             {v24.8h, v25.8h}, [x1]\n        st1             {v19.8h},  [x1],   #16\n        st1             {v19.8h},  [x1],   #16\n        ld1             {v26.8h, v27.8h}, [x1]\n        st1             {v19.8h},  [x1],   #16\n        st1             {v19.8h},  [x1],   #16\n        ld1             {v28.8h, v29.8h}, [x1]\n        st1             {v19.8h},  [x1],   #16\n        st1             {v19.8h},  [x1],   #16\n\n        idct8x8_cols    0\n        transpose_8x8H  v24, v25, v26, v27, v28, v29, v18, v31, v6, v7\n        idct8x8_cols    1\n\n        mov             x3,  x0\n        srshr           v24.8h, v24.8h, #6\n        ld1             {v0.8b},     [x0], x2\n        srshr           v25.8h, v25.8h, #6\n        ld1             {v1.8b},     [x0], x2\n        srshr           v26.8h, v26.8h, #6\n        ld1             {v2.8b},     [x0], x2\n        srshr           v27.8h, v27.8h, #6\n        ld1             {v3.8b},     [x0], x2\n        srshr           v28.8h, v28.8h, #6\n        ld1             {v4.8b},     [x0], x2\n        srshr           v29.8h, v29.8h, #6\n        ld1             {v5.8b},     [x0], x2\n        srshr           v30.8h, v30.8h, #6\n        ld1             {v6.8b},     [x0], x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:8", "text": "idct8x8_cols    0\n        transpose_8x8H  v24, v25, v26, v27, v28, v29, v18, v31, v6, v7\n        idct8x8_cols    1\n\n        mov             x3,  x0\n        srshr           v24.8h, v24.8h, #6\n        ld1             {v0.8b},     [x0], x2\n        srshr           v25.8h, v25.8h, #6\n        ld1             {v1.8b},     [x0], x2\n        srshr           v26.8h, v26.8h, #6\n        ld1             {v2.8b},     [x0], x2\n        srshr           v27.8h, v27.8h, #6\n        ld1             {v3.8b},     [x0], x2\n        srshr           v28.8h, v28.8h, #6\n        ld1             {v4.8b},     [x0], x2\n        srshr           v29.8h, v29.8h, #6\n        ld1             {v5.8b},     [x0], x2\n        srshr           v30.8h, v30.8h, #6\n        ld1             {v6.8b},     [x0], x2\n        srshr           v31.8h, v31.8h, #6\n        ld1             {v7.8b},     [x0], x2\n        uaddw           v24.8h, v24.8h, v0.8b\n        uaddw           v25.8h, v25.8h, v1.8b\n        uaddw           v26.8h, v26.8h, v2.8b\n        sqxtun          v0.8b,  v24.8h\n        uaddw           v27.8h, v27.8h, v3.8b\n        sqxtun          v1.8b,  v25.8h\n        uaddw           v28.8h, v28.8h, v4.8b\n        sqxtun          v2.8b,  v26.8h\n        st1             {v0.8b},     [x3], x2\n        uaddw           v29.8h, v29.8h, v5.8b\n        sqxtun          v3.8b,  v27.8h\n        st1             {v1.8b},     [x3], x2\n        uaddw           v30.8h, v30.8h, v6.8b\n        sqxtun          v4.8b,  v28.8h\n        st1             {v2.8b},     [x3], x2\n        uaddw           v31.8h, v31.8h, v7.8b\n        sqxtun          v5.8b,  v29.8h\n        st1             {v3.8b},     [x3], x2\n        sqxtun          v6.8b,  v30.8h\n        sqxtun          v7.8b,  v31.8h\n        st1             {v4.8b},     [x3], x2\n        st1             {v5.8b},     [x3], x2\n        st1             {v6.8b},     [x3], x2\n        st1             {v7.8b},     [x3], x2\n\n        sub             x1,  x1,  #128\n        ret\nendfunc\n\nfunction ff_h264_idct8_dc_add_neon, export=1\n.L_ff_h264_idct8_dc_add_neon:\n        AARCH64_VALID_CALL_TARGET\n        mov             w3,       #0\n        sxtw            x2,       w2\n        ld1r            {v31.8h}, [x1]\n        strh            w3,       [x1]\n        ld1             {v0.8b},  [x0], x2\n        srshr           v31.8h, v31.8h, #6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:9", "text": "sqxtun          v6.8b,  v30.8h\n        sqxtun          v7.8b,  v31.8h\n        st1             {v4.8b},     [x3], x2\n        st1             {v5.8b},     [x3], x2\n        st1             {v6.8b},     [x3], x2\n        st1             {v7.8b},     [x3], x2\n\n        sub             x1,  x1,  #128\n        ret\nendfunc\n\nfunction ff_h264_idct8_dc_add_neon, export=1\n.L_ff_h264_idct8_dc_add_neon:\n        AARCH64_VALID_CALL_TARGET\n        mov             w3,       #0\n        sxtw            x2,       w2\n        ld1r            {v31.8h}, [x1]\n        strh            w3,       [x1]\n        ld1             {v0.8b},  [x0], x2\n        srshr           v31.8h, v31.8h, #6\n        ld1             {v1.8b},     [x0], x2\n        ld1             {v2.8b},     [x0], x2\n        uaddw           v24.8h, v31.8h, v0.8b\n        ld1             {v3.8b},     [x0], x2\n        uaddw           v25.8h, v31.8h, v1.8b\n        ld1             {v4.8b},     [x0], x2\n        uaddw           v26.8h, v31.8h, v2.8b\n        ld1             {v5.8b},     [x0], x2\n        uaddw           v27.8h, v31.8h, v3.8b\n        ld1             {v6.8b},     [x0], x2\n        uaddw           v28.8h, v31.8h, v4.8b\n        ld1             {v7.8b},     [x0], x2\n        uaddw           v29.8h, v31.8h, v5.8b\n        uaddw           v30.8h, v31.8h, v6.8b\n        uaddw           v31.8h, v31.8h, v7.8b\n        sqxtun          v0.8b,  v24.8h\n        sqxtun          v1.8b,  v25.8h\n        sqxtun          v2.8b,  v26.8h\n        sqxtun          v3.8b,  v27.8h\n        sub             x0,  x0,  x2, lsl #3\n        st1             {v0.8b},     [x0], x2\n        sqxtun          v4.8b,  v28.8h\n        st1             {v1.8b},     [x0], x2\n        sqxtun          v5.8b,  v29.8h\n        st1             {v2.8b},     [x0], x2\n        sqxtun          v6.8b,  v30.8h\n        st1             {v3.8b},     [x0], x2\n        sqxtun          v7.8b,  v31.8h\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n        st1             {v6.8b},     [x0], x2\n        st1             {v7.8b},     [x0], x2\n        ret\nendfunc\n\nfunction ff_h264_idct8_add4_neon, export=1\n        mov             x12, x30\n        mov             x6,  x0\n        mov             x5,  x1\n        mov             x1,  x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:10", "text": "st1             {v0.8b},     [x0], x2\n        sqxtun          v4.8b,  v28.8h\n        st1             {v1.8b},     [x0], x2\n        sqxtun          v5.8b,  v29.8h\n        st1             {v2.8b},     [x0], x2\n        sqxtun          v6.8b,  v30.8h\n        st1             {v3.8b},     [x0], x2\n        sqxtun          v7.8b,  v31.8h\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n        st1             {v6.8b},     [x0], x2\n        st1             {v7.8b},     [x0], x2\n        ret\nendfunc\n\nfunction ff_h264_idct8_add4_neon, export=1\n        mov             x12, x30\n        mov             x6,  x0\n        mov             x5,  x1\n        mov             x1,  x2\n        mov             w2,  w3\n        movrel          x7,  scan8\n        mov             w10, #16\n        movrel          x13, .L_ff_h264_idct8_dc_add_neon\n        movrel          x14, .L_ff_h264_idct8_add_neon\n1:      ldrb            w9,  [x7], #4\n        ldrsw           x0,  [x5], #16\n        ldrb            w9,  [x4, w9, uxtw]\n        subs            w9,  w9,  #1\n        b.lt            2f\n        ldrsh           w11,  [x1]\n        add             x0,  x6,  x0\n        ccmp            w11, #0,  #4,  eq\n        csel            x15, x13, x14, ne\n        blr             x15\n2:      subs            w10, w10, #4\n        add             x1,  x1,  #128\n        b.ne            1b\n        ret             x12\nendfunc\n\nconst   scan8\n        .byte           4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n        .byte           6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n        .byte           4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n        .byte           6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n        .byte           4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n        .byte           6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n        .byte           4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n        .byte           6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n        .byte           4+11*8, 5+11*8, 4+12*8, 5+12*8\n        .byte           6+11*8, 7+11*8, 6+12*8, 7+12*8\n        .byte           4+13*8, 5+13*8, 4+14*8, 5+14*8\n        .byte           6+13*8, 7+13*8, 6+14*8, 7+14*8\nendconst", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 361, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264idct_neon.S:11", "text": "const   scan8\n        .byte           4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n        .byte           6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n        .byte           4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n        .byte           6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n        .byte           4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n        .byte           6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n        .byte           4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n        .byte           6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n        .byte           4+11*8, 5+11*8, 4+12*8, 5+12*8\n        .byte           6+11*8, 7+11*8, 6+12*8, 7+12*8\n        .byte           4+13*8, 5+13*8, 4+14*8, 5+14*8\n        .byte           6+13*8, 7+13*8, 6+14*8, 7+14*8\nendconst", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264idct_neon.S", "line_start": 401, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro ldcol.8  rd,  rs,  rt,  n=8,  hi=0\n.if \\n >= 8 || \\hi == 0\n        ld1             {\\rd\\().b}[0],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[1],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[2],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[3],  [\\rs], \\rt\n.endif\n.if \\n >= 8 || \\hi == 1\n        ld1             {\\rd\\().b}[4],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[5],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[6],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[7],  [\\rs], \\rt\n.endif\n.if \\n == 16\n        ld1             {\\rd\\().b}[8],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[9],  [\\rs], \\rt\n        ld1             {\\rd\\().b}[10], [\\rs], \\rt\n        ld1             {\\rd\\().b}[11], [\\rs], \\rt\n        ld1             {\\rd\\().b}[12], [\\rs], \\rt\n        ld1             {\\rd\\().b}[13], [\\rs], \\rt\n        ld1             {\\rd\\().b}[14], [\\rs], \\rt\n        ld1             {\\rd\\().b}[15], [\\rs], \\rt\n.endif\n.endm\n\nfunction ff_pred16x16_128_dc_neon, export=1\n        movi            v0.16b,  #128\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_top_dc_neon, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.16b},  [x2]\n        uaddlv          h0,  v0.16b\n        rshrn           v0.8b,  v0.8h,  #4\n        dup             v0.16b, v0.b[0]\n        b               .L_pred16x16_dc_end\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:2", "text": "ld1             {\\rd\\().b}[12], [\\rs], \\rt\n        ld1             {\\rd\\().b}[13], [\\rs], \\rt\n        ld1             {\\rd\\().b}[14], [\\rs], \\rt\n        ld1             {\\rd\\().b}[15], [\\rs], \\rt\n.endif\n.endm\n\nfunction ff_pred16x16_128_dc_neon, export=1\n        movi            v0.16b,  #128\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_top_dc_neon, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.16b},  [x2]\n        uaddlv          h0,  v0.16b\n        rshrn           v0.8b,  v0.8h,  #4\n        dup             v0.16b, v0.b[0]\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_left_dc_neon, export=1\n        sub             x2,  x0,  #1\n        ldcol.8         v0,  x2,  x1, 16\n        uaddlv          h0,  v0.16b\n        rshrn           v0.8b,  v0.8h,  #4\n        dup             v0.16b, v0.b[0]\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_dc_neon, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #1\n        ld1             {v0.16b}, [x2]\n        ldcol.8         v1,  x3,  x1, 16\n        uaddlv          h0,  v0.16b\n        uaddlv          h1,  v1.16b\n        add             v0.4h,  v0.4h,  v1.4h\n        rshrn           v0.8b,  v0.8h,  #5\n        dup             v0.16b, v0.b[0]\n.L_pred16x16_dc_end:\n        mov             w3,  #8\n6:      st1             {v0.16b}, [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred16x16_hor_neon, export=1\n        sub             x2,  x0,  #1\n        mov             w3,  #16\n1:      ld1r            {v0.16b}, [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_vert_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:3", "text": ".L_pred16x16_dc_end:\n        mov             w3,  #8\n6:      st1             {v0.16b}, [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred16x16_hor_neon, export=1\n        sub             x2,  x0,  #1\n        mov             w3,  #16\n1:      ld1r            {v0.16b}, [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_vert_neon, export=1\n        sub             x2,  x0,  x1\n        add             x1,  x1,  x1\n        ld1             {v0.16b}, [x2], x1\n        mov             w3,  #8\n1:      subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        st1             {v0.16b}, [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_plane_neon, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #1\n        ld1             {v0.8b},  [x3]\n        ld1             {v2.8b},  [x2], x1\n        ldcol.8         v1,  x3,  x1\n        add             x3,  x3,  x1\n        ldcol.8         v3,  x3,  x1\n        rev64           v0.8b,  v0.8b\n        rev64           v1.8b,  v1.8b\n        uaddl           v7.8h,  v2.8b,  v3.8b\n        usubl           v2.8h,  v2.8b,  v0.8b\n        usubl           v3.8h,  v3.8b,  v1.8b\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        addp            v2.8h,  v2.8h,  v2.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        sshll           v3.4s,  v2.4h,  #2\n        saddw           v2.4s,  v3.4s,  v2.4h\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14\n        sub             v3.4h,  v3.4h,  v2.4h   // 7 * (b + c)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:4", "text": "ldcol.8         v3,  x3,  x1\n        rev64           v0.8b,  v0.8b\n        rev64           v1.8b,  v1.8b\n        uaddl           v7.8h,  v2.8b,  v3.8b\n        usubl           v2.8h,  v2.8b,  v0.8b\n        usubl           v3.8h,  v3.8b,  v1.8b\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        addp            v2.8h,  v2.8h,  v2.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        sshll           v3.4s,  v2.4h,  #2\n        saddw           v2.4s,  v3.4s,  v2.4h\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14\n        sub             v3.4h,  v3.4h,  v2.4h   // 7 * (b + c)\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        sub             v2.4h,  v2.4h,  v3.4h\n        shl             v3.4h,  v4.4h,  #4\n        ext             v0.16b, v0.16b, v0.16b, #14\n        sub             v6.4h,  v5.4h,  v3.4h\n        mov             v0.h[0],  wzr\n        mul             v0.8h,  v0.8h,  v4.h[0]\n        dup             v1.8h,  v2.h[0]\n        dup             v2.8h,  v4.h[0]\n        dup             v3.8h,  v6.h[0]\n        shl             v2.8h,  v2.8h,  #3\n        add             v1.8h,  v1.8h,  v0.8h\n        add             v3.8h,  v3.8h,  v2.8h\n        mov             w3,  #16\n1:\n        sqshrun         v0.8b,  v1.8h,  #5\n        add             v1.8h,  v1.8h,  v2.8h\n        sqshrun2        v0.16b, v1.8h,  #5\n        add             v1.8h,  v1.8h,  v3.8h\n        subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nconst   p16weight, align=4\n        .short          1,2,3,4,5,6,7,8\nendconst\nconst   p8weight, align=4\n        .short          1,2,3,4,1,2,3,4\nendconst\n\nfunction ff_pred8x8_hor_neon, export=1\n        sub             x2,  x0,  #1\n        mov             w3,  #8\n1:      ld1r            {v0.8b},  [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.8b},  [x0], x1\n        b.ne            1b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:5", "text": "subs            w3,  w3,  #1\n        st1             {v0.16b}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nconst   p16weight, align=4\n        .short          1,2,3,4,5,6,7,8\nendconst\nconst   p8weight, align=4\n        .short          1,2,3,4,1,2,3,4\nendconst\n\nfunction ff_pred8x8_hor_neon, export=1\n        sub             x2,  x0,  #1\n        mov             w3,  #8\n1:      ld1r            {v0.8b},  [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.8b},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_vert_neon, export=1\n        sub             x2,  x0,  x1\n        lsl             x1,  x1,  #1\n        ld1             {v0.8b},  [x2], x1\n        mov             w3,  #4\n1:      subs            w3,  w3,  #1\n        st1             {v0.8b},  [x0], x1\n        st1             {v0.8b},  [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #4\n        sub             x3,  x3,  #1\n        ld1             {v0.s}[0],  [x3]\n        ld1             {v2.s}[0],  [x2], x1\n        ldcol.8         v0,  x3,  x1,  4,  hi=1\n        add             x3,  x3,  x1\n        ldcol.8         v3,  x3,  x1,  4\n        uaddl           v7.8h,  v2.8b,  v3.8b\n        rev32           v0.8b,  v0.8b\n        trn1            v2.2s,  v2.2s,  v3.2s\n        usubl           v2.8h,  v2.8b,  v0.8b\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h\n        ld1             {v0.8h},  [x5]\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #4\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v5.4h,  v2.4s,  #5\n        addp            v2.4h,  v5.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:6", "text": "sub             x3,  x3,  #1\n        ld1             {v0.s}[0],  [x3]\n        ld1             {v2.s}[0],  [x2], x1\n        ldcol.8         v0,  x3,  x1,  4,  hi=1\n        add             x3,  x3,  x1\n        ldcol.8         v3,  x3,  x1,  4\n        uaddl           v7.8h,  v2.8b,  v3.8b\n        rev32           v0.8b,  v0.8b\n        trn1            v2.2s,  v2.2s,  v3.2s\n        usubl           v2.8h,  v2.8b,  v0.8b\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h\n        ld1             {v0.8h},  [x5]\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #4\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v5.4h,  v2.4s,  #5\n        addp            v2.4h,  v5.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #1\n        add             v3.4h,  v3.4h,  v2.4h\n        rev64           v7.4h,  v7.4h\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        sub             v2.4h,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        mov             v0.h[0],  wzr\n        mul             v0.8h,  v0.8h,  v5.h[0]\n        dup             v1.8h,  v2.h[0]\n        dup             v2.8h,  v5.h[1]\n        add             v1.8h,  v1.8h,  v0.8h\n        mov             w3,  #8\n1:\n        sqshrun         v0.8b,  v1.8h,  #5\n        subs            w3,  w3,  #1\n        add             v1.8h,  v1.8h,  v2.8h\n        st1             {v0.8b},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon, export=1\n        movi            v0.8b,  #128\n        movi            v1.8b,  #128\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.8b},  [x2]\n        uaddlp          v0.4h,  v0.8b\n        addp            v0.4h,  v0.4h,  v0.4h\n        zip1            v0.8h,  v0.8h,  v0.8h\n        rshrn           v2.8b,  v0.8h,  #2\n        zip1            v0.8b,  v2.8b,  v2.8b\n        zip1            v1.8b,  v2.8b,  v2.8b\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:7", "text": "function ff_pred8x8_128_dc_neon, export=1\n        movi            v0.8b,  #128\n        movi            v1.8b,  #128\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.8b},  [x2]\n        uaddlp          v0.4h,  v0.8b\n        addp            v0.4h,  v0.4h,  v0.4h\n        zip1            v0.8h,  v0.8h,  v0.8h\n        rshrn           v2.8b,  v0.8h,  #2\n        zip1            v0.8b,  v2.8b,  v2.8b\n        zip1            v1.8b,  v2.8b,  v2.8b\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon, export=1\n        sub             x2,  x0,  #1\n        ldcol.8         v0,  x2,  x1\n        uaddlp          v0.4h,  v0.8b\n        addp            v0.4h,  v0.4h,  v0.4h\n        rshrn           v2.8b,  v0.8h,  #2\n        dup             v1.8b,  v2.b[1]\n        dup             v0.8b,  v2.b[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_dc_neon, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #1\n        ld1             {v0.8b}, [x2]\n        ldcol.8         v1,  x3,  x1\n        uaddlp          v0.4h,  v0.8b\n        uaddlp          v1.4h,  v1.8b\n        trn1            v2.2s,  v0.2s,  v1.2s\n        trn2            v3.2s,  v0.2s,  v1.2s\n        addp            v4.4h,  v2.4h,  v3.4h\n        addp            v5.4h,  v4.4h,  v4.4h\n        rshrn           v6.8b,  v5.8h,  #3\n        rshrn           v7.8b,  v4.8h,  #2\n        dup             v0.8b,  v6.b[0]\n        dup             v2.8b,  v7.b[2]\n        dup             v1.8b,  v7.b[3]\n        dup             v3.8b,  v6.b[1]\n        zip1            v0.2s,  v0.2s,  v2.2s\n        zip1            v1.2s,  v1.2s,  v3.2s\n.L_pred8x8_dc_end:\n        mov             w3,  #4\n        add             x2,  x0,  x1,  lsl #2\n6:      subs            w3,  w3,  #1\n        st1             {v0.8b},  [x0], x1\n        st1             {v1.8b},  [x2], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:8", "text": "addp            v5.4h,  v4.4h,  v4.4h\n        rshrn           v6.8b,  v5.8h,  #3\n        rshrn           v7.8b,  v4.8h,  #2\n        dup             v0.8b,  v6.b[0]\n        dup             v2.8b,  v7.b[2]\n        dup             v1.8b,  v7.b[3]\n        dup             v3.8b,  v6.b[1]\n        zip1            v0.2s,  v0.2s,  v2.2s\n        zip1            v1.2s,  v1.2s,  v3.2s\n.L_pred8x8_dc_end:\n        mov             w3,  #4\n        add             x2,  x0,  x1,  lsl #2\n6:      subs            w3,  w3,  #1\n        st1             {v0.8b},  [x0], x1\n        st1             {v1.8b},  [x2], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #1\n        ld1             {v0.8b},  [x2]\n        ldcol.8         v1,  x3,  x1,  4\n        zip1            v0.4s,  v0.4s,  v1.4s\n        uaddlp          v0.8h,  v0.16b\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v0.4h,  v0.4h\n        rshrn           v2.8b,  v0.8h,  #2\n        rshrn           v3.8b,  v1.8h,  #3\n        dup             v4.8b,  v3.b[0]\n        dup             v6.8b,  v2.b[2]\n        dup             v5.8b,  v2.b[0]\n        zip1            v0.2s,  v4.2s,  v6.2s\n        zip1            v1.2s,  v5.2s,  v6.2s\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_l00_dc_neon, export=1\n        sub             x2,  x0,  #1\n        ldcol.8         v0,  x2,  x1,  4\n        uaddlp          v0.4h,  v0.8b\n        addp            v0.4h,  v0.4h,  v0.4h\n        rshrn           v0.8b,  v0.8h,  #2\n        movi            v1.8b,  #128\n        dup             v0.8b,  v0.b[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #1\n        ld1             {v0.8b},  [x2]\n        ldcol.8         v1,  x3,  x1,  4,  hi=1\n        zip1            v0.4s,  v0.4s,  v1.4s\n        uaddlp          v0.8h,  v0.16b\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v0.4h,  v0.4h\n        rshrn           v2.8b,  v0.8h,  #2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:9", "text": "ldcol.8         v0,  x2,  x1,  4\n        uaddlp          v0.4h,  v0.8b\n        addp            v0.4h,  v0.4h,  v0.4h\n        rshrn           v0.8b,  v0.8h,  #2\n        movi            v1.8b,  #128\n        dup             v0.8b,  v0.b[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #1\n        ld1             {v0.8b},  [x2]\n        ldcol.8         v1,  x3,  x1,  4,  hi=1\n        zip1            v0.4s,  v0.4s,  v1.4s\n        uaddlp          v0.8h,  v0.16b\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v0.4h,  v0.4h\n        rshrn           v2.8b,  v0.8h,  #2\n        rshrn           v3.8b,  v1.8h,  #3\n        dup             v4.8b,  v2.b[0]\n        dup             v5.8b,  v2.b[3]\n        dup             v6.8b,  v2.b[2]\n        dup             v7.8b,  v3.b[1]\n        zip1            v0.2s,  v4.2s,  v6.2s\n        zip1            v1.2s,  v5.2s,  v7.2s\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_0l0_dc_neon, export=1\n        add             x2,  x0,  x1,  lsl #2\n        sub             x2,  x2,  #1\n        ldcol.8         v1,  x2,  x1,  4\n        uaddlp          v2.4h,  v1.8b\n        addp            v2.4h,  v2.4h,  v2.4h\n        rshrn           v1.8b,  v2.8h,  #2\n        movi            v0.8b,  #128\n        dup             v1.8b,  v1.b[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\n.macro ldcol.16  rd,  rs,  rt,  n=4,  hi=0\n.if \\n >= 4 && \\hi == 0\n        ld1             {\\rd\\().h}[0],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[1],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[2],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[3],  [\\rs], \\rt\n.endif\n.if \\n == 8 || \\hi == 1\n        ld1             {\\rd\\().h}[4],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[5],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[6],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[7],  [\\rs], \\rt\n.endif\n.endm\n\n// slower than C\n/*\nfunction ff_pred16x16_128_dc_neon_10, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:10", "text": "endfunc\n\n.macro ldcol.16  rd,  rs,  rt,  n=4,  hi=0\n.if \\n >= 4 && \\hi == 0\n        ld1             {\\rd\\().h}[0],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[1],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[2],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[3],  [\\rs], \\rt\n.endif\n.if \\n == 8 || \\hi == 1\n        ld1             {\\rd\\().h}[4],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[5],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[6],  [\\rs], \\rt\n        ld1             {\\rd\\().h}[7],  [\\rs], \\rt\n.endif\n.endm\n\n// slower than C\n/*\nfunction ff_pred16x16_128_dc_neon_10, export=1\n        movi            v0.8h, #2, lsl #8 // 512, 1 << (bit_depth - 1)\n\n        b               .L_pred16x16_dc_10_end\nendfunc\n*/\n\nfunction ff_pred16x16_top_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n\n        ld1             {v0.8h, v1.8h}, [x2]\n\n        add             v0.8h, v0.8h, v1.8h\n        addv            h0, v0.8h\n\n        urshr           v0.4h,  v0.4h,  #4\n        dup             v0.8h, v0.h[0]\n        b               .L_pred16x16_dc_10_end\nendfunc\n\n// slower than C\n/*\nfunction ff_pred16x16_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2 // access to the \"left\" column\n        ldcol.16        v0,  x2,  x1,  8\n        ldcol.16        v1,  x2,  x1,  8 // load \"left\" column\n\n        add             v0.8h, v0.8h, v1.8h\n        addv            h0,  v0.8h\n\n        urshr           v0.4h,  v0.4h,  #4\n        dup             v0.8h, v0.h[0]\n        b               .L_pred16x16_dc_10_end\nendfunc\n*/\n\nfunction ff_pred16x16_dc_neon_10, export=1\n        sub             x2,  x0,  x1 // access to the \"top\" row\n        sub             x3,  x0,  #2 // access to the \"left\" column\n\n        ld1             {v0.8h, v1.8h}, [x2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:11", "text": "/*\nfunction ff_pred16x16_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2 // access to the \"left\" column\n        ldcol.16        v0,  x2,  x1,  8\n        ldcol.16        v1,  x2,  x1,  8 // load \"left\" column\n\n        add             v0.8h, v0.8h, v1.8h\n        addv            h0,  v0.8h\n\n        urshr           v0.4h,  v0.4h,  #4\n        dup             v0.8h, v0.h[0]\n        b               .L_pred16x16_dc_10_end\nendfunc\n*/\n\nfunction ff_pred16x16_dc_neon_10, export=1\n        sub             x2,  x0,  x1 // access to the \"top\" row\n        sub             x3,  x0,  #2 // access to the \"left\" column\n\n        ld1             {v0.8h, v1.8h}, [x2]\n        ldcol.16        v2,  x3,  x1,  8\n        ldcol.16        v3,  x3,  x1,  8 // load pixels in \"top\" row and \"left\" col\n\n        add             v0.8h, v0.8h, v1.8h\n        add             v2.8h, v2.8h, v3.8h\n        add             v0.8h, v0.8h, v2.8h\n        addv            h0, v0.8h\n\n        urshr           v0.4h,  v0.4h,  #5\n        dup             v0.8h,  v0.h[0]\n.L_pred16x16_dc_10_end:\n        mov             v1.16b,  v0.16b\n        mov             w3,  #8\n6:      st1             {v0.8h, v1.8h}, [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred16x16_hor_neon_10, export=1\n        sub             x2,  x0,  #2\n        add             x3,  x0,  #16\n\n        mov             w4,  #16\n1:      ld1r            {v0.8h},  [x2],  x1\n        subs            w4,  w4,  #1\n        st1             {v0.8h},  [x0],  x1\n        st1             {v0.8h},  [x3],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_vert_neon_10, export=1\n        sub             x2,  x0,  x1\n        add             x1,  x1,  x1\n\n        ld1             {v0.8h, v1.8h},  [x2],  x1\n\n        mov             w3,  #8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:12", "text": "function ff_pred16x16_hor_neon_10, export=1\n        sub             x2,  x0,  #2\n        add             x3,  x0,  #16\n\n        mov             w4,  #16\n1:      ld1r            {v0.8h},  [x2],  x1\n        subs            w4,  w4,  #1\n        st1             {v0.8h},  [x0],  x1\n        st1             {v0.8h},  [x3],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_vert_neon_10, export=1\n        sub             x2,  x0,  x1\n        add             x1,  x1,  x1\n\n        ld1             {v0.8h, v1.8h},  [x2],  x1\n\n        mov             w3,  #8\n1:      subs            w3,  w3,  #1\n        st1             {v0.8h, v1.8h},  [x0],  x1\n        st1             {v0.8h, v1.8h},  [x2],  x1\n\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p16weight\n        add             x2,  x3,  #16\n        sub             x3,  x3,  #2\n        ld1             {v0.8h},  [x3]\n        ld1             {v2.8h},  [x2], x1\n        ldcol.16        v1,  x3,  x1, 8\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1, 8\n\n        rev64           v16.8h,  v0.8h\n        rev64           v17.8h,  v1.8h\n        ext             v0.16b, v16.16b, v16.16b, #8\n        ext             v1.16b, v17.16b, v17.16b, #8\n\n        add             v7.8h,  v2.8h,  v3.8h\n        sub             v2.8h,  v2.8h,  v0.8h\n        sub             v3.8h,  v3.8h,  v1.8h\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #2\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:13", "text": "rev64           v17.8h,  v1.8h\n        ext             v0.16b, v16.16b, v16.16b, #8\n        ext             v1.16b, v17.16b, v17.16b, #8\n\n        add             v7.8h,  v2.8h,  v3.8h\n        sub             v2.8h,  v2.8h,  v0.8h\n        sub             v3.8h,  v3.8h,  v1.8h\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #2\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14\n        sub             v3.4h,  v3.4h,  v2.4h   // 7 * (b + c)\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        sxtl            v6.4s,  v5.4h          // c\n\n        mov             v0.h[0],  wzr\n        dup             v16.4s, v2.s[0]\n        dup             v17.4s, v2.s[0]\n        dup             v2.8h,  v4.h[0]        // b\n        dup             v3.4s,  v6.s[0]        // c\n        sshll           v2.4s,  v2.4h,  #3     // b * 8\n        smlal           v16.4s, v0.4h, v4.h[0]\n        smlal2          v17.4s, v0.8h, v4.h[0]\n        sub             v3.4s,  v3.4s,  v2.4s\n\n        mov             w3,      #16\n        mvni            v4.8h,   #0xFC, lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v16.4s, #5\n        sqshrun2        v0.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v2.4s\n        add             v17.4s, v17.4s, v2.4s\n        sqshrun         v1.4h,  v16.4s, #5\n        sqshrun2        v1.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v3.4s\n        add             v17.4s, v17.4s, v3.4s\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n        smin            v1.8h,  v1.8h,  v4.8h\n\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_hor_neon_10, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:14", "text": "sqshrun         v0.4h,  v16.4s, #5\n        sqshrun2        v0.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v2.4s\n        add             v17.4s, v17.4s, v2.4s\n        sqshrun         v1.4h,  v16.4s, #5\n        sqshrun2        v1.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v3.4s\n        add             v17.4s, v17.4s, v3.4s\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n        smin            v1.8h,  v1.8h,  v4.8h\n\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_hor_neon_10, export=1\n        sub             x2,  x0,  #2\n        mov             w3,  #8\n\n1:      ld1r            {v0.8h},  [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.8h},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_vert_neon_10, export=1\n        sub             x2,  x0,  x1\n        lsl             x1,  x1,  #1\n\n        ld1             {v0.8h},  [x2], x1\n        mov             w3,  #4\n1:      subs            w3,  w3,  #1\n        st1             {v0.8h},  [x0], x1\n        st1             {v0.8h},  [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:15", "text": "ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h\n        ld1             {v0.8h},  [x5]\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #4\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v5.4h,  v2.4s,  #5\n        addp            v2.4h,  v5.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #1\n        add             v3.4h,  v3.4h,  v2.4h\n        rev64           v7.4h,  v7.4h\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        mov             v0.h[0],  wzr\n        dup             v1.4s,  v2.s[0]\n        dup             v2.4s,  v2.s[0]\n        dup             v3.8h,  v5.h[1]\n        smlal           v1.4s,  v0.4h,  v5.h[0]\n        smlal2          v2.4s,  v0.8h,  v5.h[0]\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon_10, export=1\n        movi            v0.8h,  #2, lsl #8      // 512, 1 << (bit_depth - 1)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:16", "text": "mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon_10, export=1\n        movi            v0.8h,  #2, lsl #8      // 512, 1 << (bit_depth - 1)\n        movi            v1.8h,  #2, lsl #8\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.8h},  [x2]\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        zip1            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        zip1            v0.8h,  v2.8h,  v2.8h\n        zip1            v1.8h,  v2.8h,  v2.8h\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n        ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h\n        trn1            v2.2s,  v0.2s,  v1.2s\n        trn2            v3.2s,  v0.2s,  v1.2s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:17", "text": "addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h\n        trn1            v2.2s,  v0.2s,  v1.2s\n        trn2            v3.2s,  v0.2s,  v1.2s\n        addp            v4.4h,  v2.4h,  v3.4h\n        addp            v5.4h,  v4.4h,  v4.4h\n        urshr           v6.4h,  v5.4h,  #3\n        urshr           v7.4h,  v4.4h,  #2\n        dup             v0.8h,  v6.h[0]\n        dup             v2.8h,  v7.h[2]\n        dup             v1.8h,  v7.h[3]\n        dup             v3.8h,  v6.h[1]\n        zip1            v0.2d,  v0.2d,  v2.2d\n        zip1            v1.2d,  v1.2d,  v3.2d\n.L_pred8x8_dc_10_end:\n        mov             w3,  #4\n        add             x2,  x0,  x1,  lsl #2\n\n6:      st1             {v0.8h},  [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v1.8h},  [x2], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]\n        dup             v5.4h,  v2.h[0]\n        dup             v6.4h,  v2.h[1]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:18", "text": "function ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]\n        dup             v5.4h,  v2.h[0]\n        dup             v6.4h,  v2.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v6.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_l00_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n\n        ldcol.16        v0,  x2,  x1,  4\n\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v0.4h,  v0.4h,  #2\n\n        movi            v1.8h,  #2, lsl #8      // 512\n        dup             v0.8h,  v0.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3\n\n        dup             v4.4h,  v2.h[0]\n        dup             v5.4h,  v2.h[3]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:19", "text": "function ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3\n\n        dup             v4.4h,  v2.h[0]\n        dup             v5.4h,  v2.h[3]\n        dup             v6.4h,  v2.h[1]\n        dup             v7.4h,  v3.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v7.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0l0_dc_neon_10, export=1\n        add             x2,  x0,  x1,  lsl #2\n        sub             x2,  x2,  #2\n\n        ldcol.16        v1,  x2,  x1,  4\n\n        addp            v2.8h,  v1.8h,  v1.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        urshr           v1.4h,  v2.4h,  #2\n\n        movi            v0.8h,  #2,  lsl #8     // 512\n        dup             v1.8h,  v1.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h264pred_neon.S", "line_start": 721, "line_end": 762}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:12", "text": "function ff_pred16x16_hor_neon_10, export=1\n        sub             x2,  x0,  #2\n        add             x3,  x0,  #16\n\n        mov             w4,  #16\n1:      ld1r            {v0.8h},  [x2],  x1\n        subs            w4,  w4,  #1\n        st1             {v0.8h},  [x0],  x1\n        st1             {v0.8h},  [x3],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_vert_neon_10, export=1\n        sub             x2,  x0,  x1\n        add             x1,  x1,  x1\n\n        ld1             {v0.8h, v1.8h},  [x2],  x1\n\n        mov             w3,  #8\n1:      subs            w3,  w3,  #1\n        st1             {v0.8h, v1.8h},  [x0],  x1\n        st1             {v0.8h, v1.8h},  [x2],  x1\n\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred16x16_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p16weight\n        add             x2,  x3,  #16\n        sub             x3,  x3,  #2\n        ld1             {v0.8h},  [x3]\n        ld1             {v2.8h},  [x2], x1\n        ldcol.16        v1,  x3,  x1, 8\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1, 8\n\n        rev64           v16.8h,  v0.8h\n        rev64           v17.8h,  v1.8h\n        ext             v0.16b, v16.16b, v16.16b, #8\n        ext             v1.16b, v17.16b, v17.16b, #8\n\n        add             v7.8h,  v2.8h,  v3.8h\n        sub             v2.8h,  v2.8h,  v0.8h\n        sub             v3.8h,  v3.8h,  v1.8h\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        addp            v2.8h,  v2.8h,  v2.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        sshll           v3.4s,  v2.4h,  #2\n        saddw           v2.4s,  v3.4s,  v2.4h\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:13", "text": "rev64           v17.8h,  v1.8h\n        ext             v0.16b, v16.16b, v16.16b, #8\n        ext             v1.16b, v17.16b, v17.16b, #8\n\n        add             v7.8h,  v2.8h,  v3.8h\n        sub             v2.8h,  v2.8h,  v0.8h\n        sub             v3.8h,  v3.8h,  v1.8h\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        addp            v2.8h,  v2.8h,  v2.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        sshll           v3.4s,  v2.4h,  #2\n        saddw           v2.4s,  v3.4s,  v2.4h\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14\n        sub             v3.4h,  v3.4h,  v2.4h   // 7 * (b + c)\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        sxtl            v6.4s,  v5.4h          // c\n\n        mov             v0.h[0],  wzr\n        mul             v0.8h,  v0.8h,  v4.h[0]\n        dup             v16.4s, v2.s[0]\n        dup             v17.4s, v2.s[0]\n        dup             v2.8h,  v4.h[0]        // b\n        dup             v3.4s,  v6.s[0]        // c\n        sshll           v2.4s,  v2.4h,  #3     // b * 8\n        saddw           v16.4s, v16.4s, v0.4h\n        saddw2          v17.4s, v17.4s, v0.8h\n        sub             v3.4s,  v3.4s,  v2.4s\n\n        mov             w3,      #16\n        mvni            v4.8h,   #0xFC, lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v16.4s, #5\n        sqshrun2        v0.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v2.4s\n        add             v17.4s, v17.4s, v2.4s\n        sqshrun         v1.4h,  v16.4s, #5\n        sqshrun2        v1.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v3.4s\n        add             v17.4s, v17.4s, v3.4s\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n        smin            v1.8h,  v1.8h,  v4.8h\n\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:14", "text": "1:\n        sqshrun         v0.4h,  v16.4s, #5\n        sqshrun2        v0.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v2.4s\n        add             v17.4s, v17.4s, v2.4s\n        sqshrun         v1.4h,  v16.4s, #5\n        sqshrun2        v1.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v3.4s\n        add             v17.4s, v17.4s, v3.4s\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n        smin            v1.8h,  v1.8h,  v4.8h\n\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_hor_neon_10, export=1\n        sub             x2,  x0,  #2\n        mov             w3,  #8\n\n1:      ld1r            {v0.8h},  [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.8h},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_vert_neon_10, export=1\n        sub             x2,  x0,  x1\n        lsl             x1,  x1,  #1\n\n        ld1             {v0.8h},  [x2], x1\n        mov             w3,  #4\n1:      subs            w3,  w3,  #1\n        st1             {v0.8h},  [x0], x1\n        st1             {v0.8h},  [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h\n        ld1             {v6.8h},  [x4]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:15", "text": "b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h\n        ld1             {v0.8h},  [x5]\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #4\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v5.4h,  v2.4s,  #5\n        addp            v2.4h,  v5.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #1\n        add             v3.4h,  v3.4h,  v2.4h\n        rev64           v7.4h,  v7.4h\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        mov             v0.h[0],  wzr\n        dup             v1.4s,  v2.s[0]\n        dup             v2.4s,  v2.s[0]\n        dup             v3.8h,  v5.h[1]\n        smlal           v1.4s,  v0.4h,  v5.h[0]\n        smlal2          v2.4s,  v0.8h,  v5.h[0]\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon_10, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:16", "text": "smlal2          v2.4s,  v0.8h,  v5.h[0]\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon_10, export=1\n        movi            v0.8h,  #2, lsl #8      // 512, 1 << (bit_depth - 1)\n        movi            v1.8h,  #2, lsl #8\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.8h},  [x2]\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        zip1            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        zip1            v0.8h,  v2.8h,  v2.8h\n        zip1            v1.8h,  v2.8h,  v2.8h\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n        ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h\n        trn1            v2.2s,  v0.2s,  v1.2s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:17", "text": "ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h\n        trn1            v2.2s,  v0.2s,  v1.2s\n        trn2            v3.2s,  v0.2s,  v1.2s\n        addp            v4.4h,  v2.4h,  v3.4h\n        addp            v5.4h,  v4.4h,  v4.4h\n        urshr           v6.4h,  v5.4h,  #3\n        urshr           v7.4h,  v4.4h,  #2\n        dup             v0.8h,  v6.h[0]\n        dup             v2.8h,  v7.h[2]\n        dup             v1.8h,  v7.h[3]\n        dup             v3.8h,  v6.h[1]\n        zip1            v0.2d,  v0.2d,  v2.2d\n        zip1            v1.2d,  v1.2d,  v3.2d\n.L_pred8x8_dc_10_end:\n        mov             w3,  #4\n        add             x2,  x0,  x1,  lsl #2\n\n6:      st1             {v0.8h},  [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v1.8h},  [x2], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]\n        dup             v5.4h,  v2.h[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:18", "text": "endfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]\n        dup             v5.4h,  v2.h[0]\n        dup             v6.4h,  v2.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v6.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_l00_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n\n        ldcol.16        v0,  x2,  x1,  4\n\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v0.4h,  v0.4h,  #2\n\n        movi            v1.8h,  #2, lsl #8      // 512\n        dup             v0.8h,  v0.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3\n\n        dup             v4.4h,  v2.h[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "72a3656e8468a394373b6397aacc906d7f7794c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/72a3656e8468a394373b6397aacc906d7f7794c2/libavcodec/aarch64/h264pred_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:13", "text": "rev64           v17.8h,  v1.8h\n        ext             v0.16b, v16.16b, v16.16b, #8\n        ext             v1.16b, v17.16b, v17.16b, #8\n\n        add             v7.8h,  v2.8h,  v3.8h\n        sub             v2.8h,  v2.8h,  v0.8h\n        sub             v3.8h,  v3.8h,  v1.8h\n        ld1             {v0.8h},     [x4]\n        mul             v2.8h,  v2.8h,  v0.8h\n        mul             v3.8h,  v3.8h,  v0.8h\n        addp            v2.8h,  v2.8h,  v3.8h\n        addp            v2.8h,  v2.8h,  v2.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        sshll           v3.4s,  v2.4h,  #2\n        saddw           v2.4s,  v3.4s,  v2.4h\n        rshrn           v4.4h,  v2.4s,  #6\n        trn2            v5.4h,  v4.4h,  v4.4h\n        add             v2.4h,  v4.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #3\n        ext             v7.16b, v7.16b, v7.16b, #14\n        sub             v3.4h,  v3.4h,  v2.4h   // 7 * (b + c)\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        shl             v3.4h,  v4.4h,  #4\n        ext             v0.16b, v0.16b, v0.16b, #14\n        ssubl           v6.4s,  v5.4h,  v3.4h\n\n        mov             v0.h[0],  wzr\n        mul             v0.8h,  v0.8h,  v4.h[0]\n        dup             v16.4s, v2.s[0]\n        dup             v17.4s, v2.s[0]\n        dup             v2.8h,  v4.h[0]\n        dup             v3.4s,  v6.s[0]\n        shl             v2.8h,  v2.8h,  #3\n        saddw           v16.4s, v16.4s, v0.4h\n        saddw2          v17.4s, v17.4s, v0.8h\n        saddw           v3.4s,  v3.4s,  v2.4h\n\n        mov             w3,      #16\n        mvni            v4.8h,   #0xFC, lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v16.4s, #5\n        sqshrun2        v0.8h,  v17.4s, #5\n        saddw           v16.4s, v16.4s, v2.4h\n        saddw           v17.4s, v17.4s, v2.4h\n        sqshrun         v1.4h,  v16.4s, #5\n        sqshrun2        v1.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v3.4s\n        add             v17.4s, v17.4s, v3.4s\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n        smin            v1.8h,  v1.8h,  v4.8h\n\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:14", "text": "mvni            v4.8h,   #0xFC, lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v16.4s, #5\n        sqshrun2        v0.8h,  v17.4s, #5\n        saddw           v16.4s, v16.4s, v2.4h\n        saddw           v17.4s, v17.4s, v2.4h\n        sqshrun         v1.4h,  v16.4s, #5\n        sqshrun2        v1.8h,  v17.4s, #5\n        add             v16.4s, v16.4s, v3.4s\n        add             v17.4s, v17.4s, v3.4s\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n        smin            v1.8h,  v1.8h,  v4.8h\n\n        st1             {v0.8h, v1.8h}, [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_hor_neon_10, export=1\n        sub             x2,  x0,  #2\n        mov             w3,  #8\n\n1:      ld1r            {v0.8h},  [x2], x1\n        subs            w3,  w3,  #1\n        st1             {v0.8h},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_vert_neon_10, export=1\n        sub             x2,  x0,  x1\n        lsl             x1,  x1,  #1\n\n        ld1             {v0.8h},  [x2], x1\n        mov             w3,  #4\n1:      subs            w3,  w3,  #1\n        st1             {v0.8h},  [x0], x1\n        st1             {v0.8h},  [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:15", "text": "st1             {v0.8h},  [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h\n        ld1             {v0.8h},  [x5]\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #4\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v5.4h,  v2.4s,  #5\n        addp            v2.4h,  v5.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #1\n        add             v3.4h,  v3.4h,  v2.4h\n        rev64           v7.4h,  v7.4h\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        mov             v0.h[0],  wzr\n        dup             v1.4s,  v2.s[0]\n        dup             v2.4s,  v2.s[0]\n        dup             v3.8h,  v5.h[1]\n        smlal           v1.4s,  v0.4h,  v5.h[0]\n        smlal2          v2.4s,  v0.8h,  v5.h[0]\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:16", "text": "smlal           v1.4s,  v0.4h,  v5.h[0]\n        smlal2          v2.4s,  v0.8h,  v5.h[0]\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon_10, export=1\n        movi            v0.8h,  #2, lsl #8      // 512, 1 << (bit_depth - 1)\n        movi            v1.8h,  #2, lsl #8\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.8h},  [x2]\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        zip1            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        zip1            v0.8h,  v2.8h,  v2.8h\n        zip1            v1.8h,  v2.8h,  v2.8h\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n        ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:17", "text": "sub             x2,  x0,  #2\n        ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h\n        trn1            v2.2s,  v0.2s,  v1.2s\n        trn2            v3.2s,  v0.2s,  v1.2s\n        addp            v4.4h,  v2.4h,  v3.4h\n        addp            v5.4h,  v4.4h,  v4.4h\n        urshr           v6.4h,  v5.4h,  #3\n        urshr           v7.4h,  v4.4h,  #2\n        dup             v0.8h,  v6.h[0]\n        dup             v2.8h,  v7.h[2]\n        dup             v1.8h,  v7.h[3]\n        dup             v3.8h,  v6.h[1]\n        zip1            v0.2d,  v0.2d,  v2.2d\n        zip1            v1.2d,  v1.2d,  v3.2d\n.L_pred8x8_dc_10_end:\n        mov             w3,  #4\n        add             x2,  x0,  x1,  lsl #2\n\n6:      st1             {v0.8h},  [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v1.8h},  [x2], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:18", "text": "ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]\n        dup             v5.4h,  v2.h[0]\n        dup             v6.4h,  v2.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v6.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_l00_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n\n        ldcol.16        v0,  x2,  x1,  4\n\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v0.4h,  v0.4h,  #2\n\n        movi            v1.8h,  #2, lsl #8      // 512\n        dup             v0.8h,  v0.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:19", "text": "endfunc\n\nfunction ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3\n\n        dup             v4.4h,  v2.h[0]\n        dup             v5.4h,  v2.h[3]\n        dup             v6.4h,  v2.h[1]\n        dup             v7.4h,  v3.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v7.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0l0_dc_neon_10, export=1\n        add             x2,  x0,  x1,  lsl #2\n        sub             x2,  x2,  #2\n\n        ldcol.16        v1,  x2,  x1,  4\n\n        addp            v2.8h,  v1.8h,  v1.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        urshr           v1.4h,  v2.4h,  #2\n\n        movi            v0.8h,  #2,  lsl #8     // 512\n        dup             v1.8h,  v1.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "decc9e643cc3ac5537f42b465e2637fbefbf41cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/decc9e643cc3ac5537f42b465e2637fbefbf41cc/libavcodec/aarch64/h264pred_neon.S", "line_start": 721, "line_end": 764}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:15", "text": "st1             {v0.8h},  [x2], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_plane_neon_10, export=1\n        sub             x3,  x0,  x1\n        movrel          x4,  p8weight\n        movrel          x5,  p16weight\n        add             x2,  x3,  #8\n        sub             x3,  x3,  #2\n        ld1             {v0.d}[0],  [x3]\n        ld1             {v2.d}[0],  [x2], x1\n        ldcol.16        v0,  x3,  x1,  hi=1\n        add             x3,  x3,  x1\n        ldcol.16        v3,  x3,  x1,  4\n        add             v7.8h,  v2.8h,  v3.8h\n        rev64           v0.8h,  v0.8h\n        trn1            v2.2d,  v2.2d,  v3.2d\n        sub             v2.8h,  v2.8h,  v0.8h\n        ld1             {v6.8h},  [x4]\n        mul             v2.8h,  v2.8h,  v6.8h\n        ld1             {v0.8h},  [x5]\n        saddlp          v2.4s,  v2.8h\n        addp            v2.4s,  v2.4s,  v2.4s\n        shl             v3.4s,  v2.4s,  #4\n        add             v2.4s,  v3.4s,  v2.4s\n        rshrn           v5.4h,  v2.4s,  #5\n        addp            v2.4h,  v5.4h,  v5.4h\n        shl             v3.4h,  v2.4h,  #1\n        add             v3.4h,  v3.4h,  v2.4h\n        rev64           v7.4h,  v7.4h\n        add             v7.4h,  v7.4h,  v0.4h\n        shl             v2.4h,  v7.4h,  #4\n        ssubl           v2.4s,  v2.4h,  v3.4h\n        ext             v0.16b, v0.16b, v0.16b, #14\n        mov             v0.h[0],  wzr\n        mul             v0.8h,  v0.8h,  v5.h[0]\n        dup             v1.4s,  v2.s[0]\n        dup             v2.4s,  v2.s[0]\n        dup             v3.8h,  v5.h[1]\n        saddw           v1.4s,  v1.4s,  v0.4h\n        saddw2          v2.4s,  v2.4s,  v0.8h\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/h264pred_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:16", "text": "dup             v3.8h,  v5.h[1]\n        saddw           v1.4s,  v1.4s,  v0.4h\n        saddw2          v2.4s,  v2.4s,  v0.8h\n        mov             w3,  #8\n        mvni            v4.8h,  #0xFC,  lsl #8 // 1023 for clipping\n1:\n        sqshrun         v0.4h,  v1.4s,  #5\n        sqshrun2        v0.8h,  v2.4s,  #5\n\n        saddw           v1.4s,  v1.4s,  v3.4h\n        saddw           v2.4s,  v2.4s,  v3.4h\n\n        subs            w3,  w3,  #1\n\n        smin            v0.8h,  v0.8h,  v4.8h\n\n        st1             {v0.8h},  [x0],  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_pred8x8_128_dc_neon_10, export=1\n        movi            v0.8h,  #2, lsl #8      // 512, 1 << (bit_depth - 1)\n        movi            v1.8h,  #2, lsl #8\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        ld1             {v0.8h},  [x2]\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        zip1            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        zip1            v0.8h,  v2.8h,  v2.8h\n        zip1            v1.8h,  v2.8h,  v2.8h\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n        ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/h264pred_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:17", "text": "function ff_pred8x8_left_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n        ldcol.16        v0,  x2,  x1,  8\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v2.4h,  v0.4h,  #2\n        dup             v1.8h,  v2.h[1]\n        dup             v0.8h,  v2.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h}, [x2]\n        ldcol.16        v1,  x3,  x1, 8\n\n        addp            v0.8h,  v0.8h, v0.8h\n        addp            v1.8h,  v1.8h, v1.8h\n        trn1            v2.2s,  v0.2s,  v1.2s\n        trn2            v3.2s,  v0.2s,  v1.2s\n        addp            v4.4h,  v2.4h,  v3.4h\n        addp            v5.4h,  v4.4h,  v4.4h\n        urshr           v6.4h,  v5.4h,  #3\n        urshr           v7.4h,  v4.4h,  #2\n        dup             v0.8h,  v6.h[0]\n        dup             v2.8h,  v7.h[2]\n        dup             v1.8h,  v7.h[3]\n        dup             v3.8h,  v6.h[1]\n        zip1            v0.2d,  v0.2d,  v2.2d\n        zip1            v1.2d,  v1.2d,  v3.2d\n.L_pred8x8_dc_10_end:\n        mov             w3,  #4\n        add             x2,  x0,  x1,  lsl #2\n\n6:      st1             {v0.8h},  [x0], x1\n        subs            w3,  w3,  #1\n        st1             {v1.8h},  [x2], x1\n        b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/h264pred_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:18", "text": "b.ne            6b\n        ret\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon_10, export=1\n        sub             x2,  x0,  x1\n        sub             x3,  x0,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1, 4\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.4h,  v1.4h,  v1.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        add             v1.4h,  v1.4h,  v0.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3      // the pred4x4 part\n\n        dup             v4.4h,  v3.h[0]\n        dup             v5.4h,  v2.h[0]\n        dup             v6.4h,  v2.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v6.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_l00_dc_neon_10, export=1\n        sub             x2,  x0,  #2\n\n        ldcol.16        v0,  x2,  x1,  4\n\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v0.4h,  v0.4h,  v0.4h\n        urshr           v0.4h,  v0.4h,  #2\n\n        movi            v1.8h,  #2, lsl #8      // 512\n        dup             v0.8h,  v0.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/h264pred_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h264pred_neon.S:19", "text": "b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon_10, export=1\n        add             x3,  x0,  x1,  lsl #2\n        sub             x2,  x0,  x1\n        sub             x3,  x3,  #2\n\n        ld1             {v0.8h},  [x2]\n        ldcol.16        v1,  x3,  x1,  hi=1\n\n        addp            v0.8h,  v0.8h,  v0.8h\n        addp            v1.8h,  v1.8h,  v1.8h\n        addp            v0.4h,  v0.4h,  v0.4h\n        addp            v1.4h,  v1.4h,  v1.4h\n        zip1            v0.2s,  v0.2s,  v1.2s\n        add             v1.4h,  v0.4h,  v1.4h\n\n        urshr           v2.4h,  v0.4h,  #2\n        urshr           v3.4h,  v1.4h,  #3\n\n        dup             v4.4h,  v2.h[0]\n        dup             v5.4h,  v2.h[3]\n        dup             v6.4h,  v2.h[1]\n        dup             v7.4h,  v3.h[1]\n\n        zip1            v0.2d,  v4.2d,  v6.2d\n        zip1            v1.2d,  v5.2d,  v7.2d\n        b               .L_pred8x8_dc_10_end\nendfunc\n\nfunction ff_pred8x8_0l0_dc_neon_10, export=1\n        add             x2,  x0,  x1,  lsl #2\n        sub             x2,  x2,  #2\n\n        ldcol.16        v1,  x2,  x1,  4\n\n        addp            v2.8h,  v1.8h,  v1.8h\n        addp            v2.4h,  v2.4h,  v2.4h\n        urshr           v1.4h,  v2.4h,  #2\n\n        movi            v0.8h,  #2,  lsl #8     // 512\n        dup             v1.8h,  v1.h[0]\n        b               .L_pred8x8_dc_10_end\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h264pred_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/h264pred_neon.S", "line_start": 721, "line_end": 765}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:1", "text": "/* -*-arm64-*-\n * vim: syntax=arm64asm\n *\n * AArch64 NEON optimised SAO functions for h26x decoding\n *\n * Copyright (c) 2022 J. Dekker <jdek@itanimul.li>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define HEVC_MAX_PB_SIZE 64\n#define VVC_MAX_PB_SIZE 128\n#define AV_INPUT_BUFFER_PADDING_SIZE 64\n#define HEVC_SAO_STRIDE (2 * HEVC_MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)\n#define VVC_SAO_STRIDE (2 * VVC_MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)\n\n// void sao_band_filter(uint8_t *_dst, uint8_t *_src,\n//                      ptrdiff_t stride_dst, ptrdiff_t stride_src,\n//                      int16_t *sao_offset_val, int sao_left_class,\n//                      int width, int height)\nfunction ff_h26x_sao_band_filter_8x8_8_neon, export=1\n        stp             xzr, xzr, [sp, #-32]!\n        stp             xzr, xzr, [sp, #16]\n        mov             w8,  #4\n0:\n        ldrsh           x9, [x4, x8, lsl #1]        // sao_offset_val[k+1]\n        subs            w8, w8, #1\n        add             w10, w8, w5                 // k + sao_left_class\n        and             w10, w10, #0x1F\n        strb            w9, [sp, x10]\n        bne             0b\n        ldp             q16, q17, [sp], #32\n1:\n        ld1             {v2.8b}, [x1], x3\n        subs            w7, w7, #1\n        uxtl            v0.8h, v2.8b\n        ushr            v3.8b, v2.8b, #3            // >> BIT_DEPTH - 3\n        tbl             v3.8b, {v16.16b-v17.16b}, v3.8b\n        sxtl            v2.8h, v3.8b\n        add             v0.8h, v0.8h, v2.8h         // src[x] + table\n        sqxtun          v0.8b, v0.8h                // clip + narrow\n        st1             {v0.8b}, [x0], x2\n        bne             1b\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:2", "text": "0:\n        ldrsh           x9, [x4, x8, lsl #1]        // sao_offset_val[k+1]\n        subs            w8, w8, #1\n        add             w10, w8, w5                 // k + sao_left_class\n        and             w10, w10, #0x1F\n        strb            w9, [sp, x10]\n        bne             0b\n        ldp             q16, q17, [sp], #32\n1:\n        ld1             {v2.8b}, [x1], x3\n        subs            w7, w7, #1\n        uxtl            v0.8h, v2.8b\n        ushr            v3.8b, v2.8b, #3            // >> BIT_DEPTH - 3\n        tbl             v3.8b, {v16.16b-v17.16b}, v3.8b\n        sxtl            v2.8h, v3.8b\n        add             v0.8h, v0.8h, v2.8h         // src[x] + table\n        sqxtun          v0.8b, v0.8h                // clip + narrow\n        st1             {v0.8b}, [x0], x2\n        bne             1b\n        ret\nendfunc\n\nfunction ff_h26x_sao_band_filter_16x16_8_neon, export=1\n        stp             xzr, xzr, [sp, #-32]!\n        stp             xzr, xzr, [sp, #16]\n        mov             w8,  #4\n0:\n        ldrsh           x9, [x4, x8, lsl #1]        // sao_offset_val[k+1]\n        subs            w8,  w8, #1\n        add             w10, w8, w5                 // k + sao_left_class\n        and             w10, w10, #0x1F\n        strb            w9, [sp, x10]\n        bne             0b\n        add             w6, w6, #15\n        bic             w6, w6, #15\n        ldp             q16, q17, [sp], #32\n        sub             x2, x2, x6\n        sub             x3, x3, x6\n1:\n        mov             w8, w6                      // beginning of line\n2:\n        ldr             q2, [x1], #16\n        subs            w8, w8, #16\n        uxtl            v0.8h, v2.8b\n        uxtl2           v1.8h, v2.16b\n        ushr            v3.16b, v2.16b, #3          // >> BIT_DEPTH - 3\n        tbl             v3.16b, {v16.16b-v17.16b}, v3.16b\n        sxtl            v2.8h, v3.8b\n        sxtl2           v3.8h, v3.16b\n        add             v0.8h, v0.8h, v2.8h         // src[x] + table\n        add             v1.8h, v1.8h, v3.8h\n        sqxtun          v0.8b, v0.8h                // clip + narrow\n        sqxtun2         v0.16b, v1.8h\n        str             q0, [x0], #16\n        bne             2b\n        subs            w7, w7, #1\n        add             x0, x0, x2                  // dst += stride_dst\n        add             x1, x1, x3                  // src += stride_src\n        bne             1b\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:3", "text": "2:\n        ldr             q2, [x1], #16\n        subs            w8, w8, #16\n        uxtl            v0.8h, v2.8b\n        uxtl2           v1.8h, v2.16b\n        ushr            v3.16b, v2.16b, #3          // >> BIT_DEPTH - 3\n        tbl             v3.16b, {v16.16b-v17.16b}, v3.16b\n        sxtl            v2.8h, v3.8b\n        sxtl2           v3.8h, v3.16b\n        add             v0.8h, v0.8h, v2.8h         // src[x] + table\n        add             v1.8h, v1.8h, v3.8h\n        sqxtun          v0.8b, v0.8h                // clip + narrow\n        sqxtun2         v0.16b, v1.8h\n        str             q0, [x0], #16\n        bne             2b\n        subs            w7, w7, #1\n        add             x0, x0, x2                  // dst += stride_dst\n        add             x1, x1, x3                  // src += stride_src\n        bne             1b\n        ret\nendfunc\n\n.Lhevc_sao_edge_pos:\n.word 1 // horizontal\n.word HEVC_SAO_STRIDE // vertical\n.word HEVC_SAO_STRIDE + 1 // 45 degree\n.word HEVC_SAO_STRIDE - 1 // 135 degree\n\n.Lvvc_sao_edge_pos:\n.word 1 // horizontal\n.word VVC_SAO_STRIDE // vertical\n.word VVC_SAO_STRIDE + 1 // 45 degree\n.word VVC_SAO_STRIDE - 1 // 135 degree\n\nfunction ff_vvc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lvvc_sao_edge_pos\n        mov             x15, #VVC_SAO_STRIDE\n        b               1f\nendfunc\n\n// ff_hevc_sao_edge_filter_16x16_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                      int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lhevc_sao_edge_pos\n        mov             x15, #HEVC_SAO_STRIDE\n1:\n        ld1             {v3.8h}, [x3]              // load sao_offset_val\n        add             w5,  w5,  #0xF\n        bic             w5,  w5,  #0xF\n        ldr             w4, [x7, w4, uxtw #2]      // stride_src\n        mov             v3.h[7], v3.h[0]           // reorder to [1,2,0,3,4]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        // split 16bit values into two tables\n        uzp2            v1.16b, v3.16b, v3.16b     // sao_offset_val -> upper\n        uzp1            v0.16b, v3.16b, v3.16b     // sao_offset_val -> lower\n        movi            v2.16b, #2\n        // strides between end of line and next src/dst\n        sub             x15, x15, x5               // stride_src - width", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:4", "text": "// ff_hevc_sao_edge_filter_16x16_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                      int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lhevc_sao_edge_pos\n        mov             x15, #HEVC_SAO_STRIDE\n1:\n        ld1             {v3.8h}, [x3]              // load sao_offset_val\n        add             w5,  w5,  #0xF\n        bic             w5,  w5,  #0xF\n        ldr             w4, [x7, w4, uxtw #2]      // stride_src\n        mov             v3.h[7], v3.h[0]           // reorder to [1,2,0,3,4]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        // split 16bit values into two tables\n        uzp2            v1.16b, v3.16b, v3.16b     // sao_offset_val -> upper\n        uzp1            v0.16b, v3.16b, v3.16b     // sao_offset_val -> lower\n        movi            v2.16b, #2\n        // strides between end of line and next src/dst\n        sub             x15, x15, x5               // stride_src - width\n        sub             x16, x2, x5                // stride_dst - width\n        mov             x11, x1                    // copy base src\n1:      // new line\n        mov             x14, x5                    // copy width\n        sub             x12, x11, x4               // src_a (prev) = src - sao_edge_pos\n        add             x13, x11, x4               // src_b (next) = src + sao_edge_pos\n2:      // process 16 bytes\n        ld1             {v3.16b}, [x11], #16       // load src\n        ld1             {v4.16b}, [x12], #16       // load src_a (prev)\n        ld1             {v5.16b}, [x13], #16       // load src_b (next)\n        subs            x14, x14, #16\n        cmhi            v16.16b, v4.16b, v3.16b    // (prev > cur)\n        cmhi            v17.16b, v3.16b, v4.16b    // (cur > prev)\n        cmhi            v18.16b, v5.16b, v3.16b    // (next > cur)\n        cmhi            v19.16b, v3.16b, v5.16b    // (cur > next)\n        sub             v20.16b, v16.16b, v17.16b  // diff0 = CMP(cur, prev) = (cur > prev) - (cur < prev)\n        sub             v21.16b, v18.16b, v19.16b  // diff1 = CMP(cur, next) = (cur > next) - (cur < next)\n        add             v20.16b, v20.16b, v21.16b  // diff = diff0 + diff1\n        add             v20.16b, v20.16b, v2.16b   // offset_val = diff + 2\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b              // src[0:7]\n        uxtl2           v21.8h, v3.16b             // src[7:15]\n        zip1            v18.16b, v16.16b, v17.16b  // sao_offset_val lower ->\n        zip2            v19.16b, v16.16b, v17.16b  // sao_offset_val upper ->\n        sqadd           v20.8h, v18.8h, v20.8h     // + sao_offset_val\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v3.8b, v20.8h\n        sqxtun2         v3.16b, v21.8h\n        st1             {v3.16b}, [x0], #16\n        // filtered 16 bytes\n        b.ne            2b                         // do we have width to filter?\n        // no width to filter, setup next line\n        subs            w6, w6, #1                 // filtered line\n        add             x11, x11, x15              // stride src to next line\n        add             x0, x0, x16                // stride dst to next line\n        b.ne            1b                         // do we have lines to process?\n        // no lines to filter\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:5", "text": "tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b              // src[0:7]\n        uxtl2           v21.8h, v3.16b             // src[7:15]\n        zip1            v18.16b, v16.16b, v17.16b  // sao_offset_val lower ->\n        zip2            v19.16b, v16.16b, v17.16b  // sao_offset_val upper ->\n        sqadd           v20.8h, v18.8h, v20.8h     // + sao_offset_val\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v3.8b, v20.8h\n        sqxtun2         v3.16b, v21.8h\n        st1             {v3.16b}, [x0], #16\n        // filtered 16 bytes\n        b.ne            2b                         // do we have width to filter?\n        // no width to filter, setup next line\n        subs            w6, w6, #1                 // filtered line\n        add             x11, x11, x15              // stride src to next line\n        add             x0, x0, x16                // stride dst to next line\n        b.ne            1b                         // do we have lines to process?\n        // no lines to filter\n        ret\nendfunc\n\nfunction ff_vvc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lvvc_sao_edge_pos\n        mov             x15, #VVC_SAO_STRIDE\n        b               1f\nendfunc\n\n// ff_hevc_sao_edge_filter_8x8_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                    int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lhevc_sao_edge_pos\n        mov             x15, #HEVC_SAO_STRIDE\n1:\n        ldr             w4, [x7, w4, uxtw #2]\n        ld1             {v3.8h}, [x3]\n        mov             v3.h[7], v3.h[0]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        uzp2            v1.16b, v3.16b, v3.16b\n        uzp1            v0.16b, v3.16b, v3.16b\n        movi            v2.16b, #2\n        add             x16, x0, x2\n        lsl             x2,  x2, #1\n        mov             x8,  x1\n        sub             x9,  x1, x4\n        add             x10, x1, x4\n1:      ld1             {v3.d}[0], [ x8], x15\n        ld1             {v4.d}[0], [ x9], x15\n        ld1             {v5.d}[0], [x10], x15\n        ld1             {v3.d}[1], [ x8], x15\n        ld1             {v4.d}[1], [ x9], x15\n        ld1             {v5.d}[1], [x10], x15\n        subs            w6, w6, #2\n        cmhi            v16.16b, v4.16b, v3.16b\n        cmhi            v17.16b, v3.16b, v4.16b\n        cmhi            v18.16b, v5.16b, v3.16b\n        cmhi            v19.16b, v3.16b, v5.16b\n        sub             v20.16b, v16.16b, v17.16b\n        sub             v21.16b, v18.16b, v19.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:6", "text": "uzp1            v0.16b, v3.16b, v3.16b\n        movi            v2.16b, #2\n        add             x16, x0, x2\n        lsl             x2,  x2, #1\n        mov             x8,  x1\n        sub             x9,  x1, x4\n        add             x10, x1, x4\n1:      ld1             {v3.d}[0], [ x8], x15\n        ld1             {v4.d}[0], [ x9], x15\n        ld1             {v5.d}[0], [x10], x15\n        ld1             {v3.d}[1], [ x8], x15\n        ld1             {v4.d}[1], [ x9], x15\n        ld1             {v5.d}[1], [x10], x15\n        subs            w6, w6, #2\n        cmhi            v16.16b, v4.16b, v3.16b\n        cmhi            v17.16b, v3.16b, v4.16b\n        cmhi            v18.16b, v5.16b, v3.16b\n        cmhi            v19.16b, v3.16b, v5.16b\n        sub             v20.16b, v16.16b, v17.16b\n        sub             v21.16b, v18.16b, v19.16b\n        add             v20.16b, v20.16b, v21.16b\n        add             v20.16b, v20.16b, v2.16b\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b\n        uxtl2           v21.8h, v3.16b\n        zip1            v18.16b, v16.16b, v17.16b\n        zip2            v19.16b, v16.16b, v17.16b\n        sqadd           v20.8h, v18.8h, v20.8h\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v6.8b, v20.8h\n        sqxtun          v7.8b, v21.8h\n        st1             {v6.8b}, [ x0], x2\n        st1             {v7.8b}, [x16], x2\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 201, "line_end": 237}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:1", "text": "/* -*-arm64-*-\n * vim: syntax=arm64asm\n *\n * AArch64 NEON optimised SAO functions for h26x decoding\n *\n * Copyright (c) 2022 J. Dekker <jdek@itanimul.li>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define HEVC_MAX_PB_SIZE 64\n#define VVC_MAX_PB_SIZE 128\n#define AV_INPUT_BUFFER_PADDING_SIZE 64\n#define HEVC_SAO_STRIDE (2 * HEVC_MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)\n#define VVC_SAO_STRIDE (2 * VVC_MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)\n\n// void sao_band_filter(uint8_t *_dst, uint8_t *_src,\n//                      ptrdiff_t stride_dst, ptrdiff_t stride_src,\n//                      int16_t *sao_offset_val, int sao_left_class,\n//                      int width, int height)\nfunction ff_h26x_sao_band_filter_8x8_8_neon, export=1\n        stp             xzr, xzr, [sp, #-64]!\n        stp             xzr, xzr, [sp, #16]\n        stp             xzr, xzr, [sp, #32]\n        stp             xzr, xzr, [sp, #48]\n        mov             w8,  #4\n0:      ldrsh           x9, [x4,  x8, lsl #1]      // sao_offset_val[k+1]\n        subs            w8,  w8,  #1\n        add             w10, w8,  w5               // k + sao_left_class\n        and             w10, w10, #0x1F\n        strh            w9, [sp, x10, lsl #1]\n        bne             0b\n        add             w6,  w6,  #7\n        bic             w6,  w6,  #7\n        ld1             {v16.16b-v19.16b}, [sp], #64\n        sub             x2,  x2,  x6\n        sub             x3,  x3,  x6\n        movi            v20.8h,   #1\n1:      mov             w8,  w6                    // beginning of line\n2:      // Simple layout for accessing 16bit values\n        // with 8bit LUT.\n        //\n        //   00  01  02  03  04  05  06  07\n        // +----------------------------------->", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "4c0372281b1e0886907b8b69e4f1bb292a9bd441", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c0372281b1e0886907b8b69e4f1bb292a9bd441/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:2", "text": "stp             xzr, xzr, [sp, #48]\n        mov             w8,  #4\n0:      ldrsh           x9, [x4,  x8, lsl #1]      // sao_offset_val[k+1]\n        subs            w8,  w8,  #1\n        add             w10, w8,  w5               // k + sao_left_class\n        and             w10, w10, #0x1F\n        strh            w9, [sp, x10, lsl #1]\n        bne             0b\n        add             w6,  w6,  #7\n        bic             w6,  w6,  #7\n        ld1             {v16.16b-v19.16b}, [sp], #64\n        sub             x2,  x2,  x6\n        sub             x3,  x3,  x6\n        movi            v20.8h,   #1\n1:      mov             w8,  w6                    // beginning of line\n2:      // Simple layout for accessing 16bit values\n        // with 8bit LUT.\n        //\n        //   00  01  02  03  04  05  06  07\n        // +----------------------------------->\n        // |xDE#xAD|xCA#xFE|xBE#xEF|xFE#xED|....\n        // +----------------------------------->\n        //    i-0     i-1     i-2     i-3\n        ld1             {v2.8b}, [x1], #8          // dst[x] = av_clip_pixel(src[x] + offset_table[src[x] >> shift]);\n        subs            w8, w8,  #8\n        uxtl            v0.8h,  v2.8b              // load src[x]\n        ushr            v2.8h,  v0.8h, #3          // >> BIT_DEPTH - 3\n        shl             v1.8h,  v2.8h, #1          // low (x2, accessing short)\n        add             v3.8h,  v1.8h, v20.8h      // +1 access upper short\n        sli             v1.8h,  v3.8h, #8          // shift insert index to upper byte\n        tbx             v2.16b, {v16.16b-v19.16b}, v1.16b // table\n        add             v1.8h,  v0.8h, v2.8h       // src[x] + table\n        sqxtun          v4.8b,  v1.8h              // clip + narrow\n        st1             {v4.8b}, [x0], #8          // store\n        // done 8 pixels\n        bne             2b\n        subs            w7, w7,  #1                // finished line, prep. new\n        add             x0, x0,  x2                // dst += stride_dst\n        add             x1, x1,  x3                // src += stride_src\n        bne             1b\n        ret\nendfunc\n\n.Lhevc_sao_edge_pos:\n.word 1 // horizontal\n.word HEVC_SAO_STRIDE // vertical\n.word HEVC_SAO_STRIDE + 1 // 45 degree\n.word HEVC_SAO_STRIDE - 1 // 135 degree\n\n.Lvvc_sao_edge_pos:\n.word 1 // horizontal\n.word VVC_SAO_STRIDE // vertical\n.word VVC_SAO_STRIDE + 1 // 45 degree\n.word VVC_SAO_STRIDE - 1 // 135 degree\n\nfunction ff_vvc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lvvc_sao_edge_pos\n        mov             x15, #VVC_SAO_STRIDE\n        b               1f\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "4c0372281b1e0886907b8b69e4f1bb292a9bd441", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c0372281b1e0886907b8b69e4f1bb292a9bd441/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:3", "text": "ret\nendfunc\n\n.Lhevc_sao_edge_pos:\n.word 1 // horizontal\n.word HEVC_SAO_STRIDE // vertical\n.word HEVC_SAO_STRIDE + 1 // 45 degree\n.word HEVC_SAO_STRIDE - 1 // 135 degree\n\n.Lvvc_sao_edge_pos:\n.word 1 // horizontal\n.word VVC_SAO_STRIDE // vertical\n.word VVC_SAO_STRIDE + 1 // 45 degree\n.word VVC_SAO_STRIDE - 1 // 135 degree\n\nfunction ff_vvc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lvvc_sao_edge_pos\n        mov             x15, #VVC_SAO_STRIDE\n        b               1f\nendfunc\n\n// ff_hevc_sao_edge_filter_16x16_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                      int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lhevc_sao_edge_pos\n        mov             x15, #HEVC_SAO_STRIDE\n1:\n        ld1             {v3.8h}, [x3]              // load sao_offset_val\n        add             w5,  w5,  #0xF\n        bic             w5,  w5,  #0xF\n        ldr             w4, [x7, w4, uxtw #2]      // stride_src\n        mov             v3.h[7], v3.h[0]           // reorder to [1,2,0,3,4]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        // split 16bit values into two tables\n        uzp2            v1.16b, v3.16b, v3.16b     // sao_offset_val -> upper\n        uzp1            v0.16b, v3.16b, v3.16b     // sao_offset_val -> lower\n        movi            v2.16b, #2\n        // strides between end of line and next src/dst\n        sub             x15, x15, x5               // stride_src - width\n        sub             x16, x2, x5                // stride_dst - width\n        mov             x11, x1                    // copy base src\n1:      // new line\n        mov             x14, x5                    // copy width\n        sub             x12, x11, x4               // src_a (prev) = src - sao_edge_pos\n        add             x13, x11, x4               // src_b (next) = src + sao_edge_pos\n2:      // process 16 bytes\n        ld1             {v3.16b}, [x11], #16       // load src\n        ld1             {v4.16b}, [x12], #16       // load src_a (prev)\n        ld1             {v5.16b}, [x13], #16       // load src_b (next)\n        subs            x14, x14, #16\n        cmhi            v16.16b, v4.16b, v3.16b    // (prev > cur)\n        cmhi            v17.16b, v3.16b, v4.16b    // (cur > prev)\n        cmhi            v18.16b, v5.16b, v3.16b    // (next > cur)\n        cmhi            v19.16b, v3.16b, v5.16b    // (cur > next)\n        sub             v20.16b, v16.16b, v17.16b  // diff0 = CMP(cur, prev) = (cur > prev) - (cur < prev)\n        sub             v21.16b, v18.16b, v19.16b  // diff1 = CMP(cur, next) = (cur > next) - (cur < next)\n        add             v20.16b, v20.16b, v21.16b  // diff = diff0 + diff1\n        add             v20.16b, v20.16b, v2.16b   // offset_val = diff + 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "4c0372281b1e0886907b8b69e4f1bb292a9bd441", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c0372281b1e0886907b8b69e4f1bb292a9bd441/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:4", "text": "sub             x15, x15, x5               // stride_src - width\n        sub             x16, x2, x5                // stride_dst - width\n        mov             x11, x1                    // copy base src\n1:      // new line\n        mov             x14, x5                    // copy width\n        sub             x12, x11, x4               // src_a (prev) = src - sao_edge_pos\n        add             x13, x11, x4               // src_b (next) = src + sao_edge_pos\n2:      // process 16 bytes\n        ld1             {v3.16b}, [x11], #16       // load src\n        ld1             {v4.16b}, [x12], #16       // load src_a (prev)\n        ld1             {v5.16b}, [x13], #16       // load src_b (next)\n        subs            x14, x14, #16\n        cmhi            v16.16b, v4.16b, v3.16b    // (prev > cur)\n        cmhi            v17.16b, v3.16b, v4.16b    // (cur > prev)\n        cmhi            v18.16b, v5.16b, v3.16b    // (next > cur)\n        cmhi            v19.16b, v3.16b, v5.16b    // (cur > next)\n        sub             v20.16b, v16.16b, v17.16b  // diff0 = CMP(cur, prev) = (cur > prev) - (cur < prev)\n        sub             v21.16b, v18.16b, v19.16b  // diff1 = CMP(cur, next) = (cur > next) - (cur < next)\n        add             v20.16b, v20.16b, v21.16b  // diff = diff0 + diff1\n        add             v20.16b, v20.16b, v2.16b   // offset_val = diff + 2\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b              // src[0:7]\n        uxtl2           v21.8h, v3.16b             // src[7:15]\n        zip1            v18.16b, v16.16b, v17.16b  // sao_offset_val lower ->\n        zip2            v19.16b, v16.16b, v17.16b  // sao_offset_val upper ->\n        sqadd           v20.8h, v18.8h, v20.8h     // + sao_offset_val\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v3.8b, v20.8h\n        sqxtun2         v3.16b, v21.8h\n        st1             {v3.16b}, [x0], #16\n        // filtered 16 bytes\n        b.ne            2b                         // do we have width to filter?\n        // no width to filter, setup next line\n        subs            w6, w6, #1                 // filtered line\n        add             x11, x11, x15              // stride src to next line\n        add             x0, x0, x16                // stride dst to next line\n        b.ne            1b                         // do we have lines to process?\n        // no lines to filter\n        ret\nendfunc\n\nfunction ff_vvc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lvvc_sao_edge_pos\n        mov             x15, #VVC_SAO_STRIDE\n        b               1f\nendfunc\n\n// ff_hevc_sao_edge_filter_8x8_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                    int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lhevc_sao_edge_pos\n        mov             x15, #HEVC_SAO_STRIDE\n1:\n        ldr             w4, [x7, w4, uxtw #2]\n        ld1             {v3.8h}, [x3]\n        mov             v3.h[7], v3.h[0]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "4c0372281b1e0886907b8b69e4f1bb292a9bd441", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c0372281b1e0886907b8b69e4f1bb292a9bd441/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:5", "text": "endfunc\n\nfunction ff_vvc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lvvc_sao_edge_pos\n        mov             x15, #VVC_SAO_STRIDE\n        b               1f\nendfunc\n\n// ff_hevc_sao_edge_filter_8x8_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                    int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lhevc_sao_edge_pos\n        mov             x15, #HEVC_SAO_STRIDE\n1:\n        ldr             w4, [x7, w4, uxtw #2]\n        ld1             {v3.8h}, [x3]\n        mov             v3.h[7], v3.h[0]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        uzp2            v1.16b, v3.16b, v3.16b\n        uzp1            v0.16b, v3.16b, v3.16b\n        movi            v2.16b, #2\n        add             x16, x0, x2\n        lsl             x2,  x2, #1\n        mov             x8,  x1\n        sub             x9,  x1, x4\n        add             x10, x1, x4\n1:      ld1             {v3.d}[0], [ x8], x15\n        ld1             {v4.d}[0], [ x9], x15\n        ld1             {v5.d}[0], [x10], x15\n        ld1             {v3.d}[1], [ x8], x15\n        ld1             {v4.d}[1], [ x9], x15\n        ld1             {v5.d}[1], [x10], x15\n        subs            w6, w6, #2\n        cmhi            v16.16b, v4.16b, v3.16b\n        cmhi            v17.16b, v3.16b, v4.16b\n        cmhi            v18.16b, v5.16b, v3.16b\n        cmhi            v19.16b, v3.16b, v5.16b\n        sub             v20.16b, v16.16b, v17.16b\n        sub             v21.16b, v18.16b, v19.16b\n        add             v20.16b, v20.16b, v21.16b\n        add             v20.16b, v20.16b, v2.16b\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b\n        uxtl2           v21.8h, v3.16b\n        zip1            v18.16b, v16.16b, v17.16b\n        zip2            v19.16b, v16.16b, v17.16b\n        sqadd           v20.8h, v18.8h, v20.8h\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v6.8b, v20.8h\n        sqxtun          v7.8b, v21.8h\n        st1             {v6.8b}, [ x0], x2\n        st1             {v7.8b}, [x16], x2\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "4c0372281b1e0886907b8b69e4f1bb292a9bd441", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c0372281b1e0886907b8b69e4f1bb292a9bd441/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 161, "line_end": 218}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/h26x/sao_neon.S:6", "text": "sub             v21.16b, v18.16b, v19.16b\n        add             v20.16b, v20.16b, v21.16b\n        add             v20.16b, v20.16b, v2.16b\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b\n        uxtl2           v21.8h, v3.16b\n        zip1            v18.16b, v16.16b, v17.16b\n        zip2            v19.16b, v16.16b, v17.16b\n        sqadd           v20.8h, v18.8h, v20.8h\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v6.8b, v20.8h\n        sqxtun          v7.8b, v21.8h\n        st1             {v6.8b}, [ x0], x2\n        st1             {v7.8b}, [x16], x2\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/h26x/sao_neon.S", "license": "LGPL-2.1", "commit": "4c0372281b1e0886907b8b69e4f1bb292a9bd441", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c0372281b1e0886907b8b69e4f1bb292a9bd441/libavcodec/aarch64/h26x/sao_neon.S", "line_start": 201, "line_end": 218}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:1", "text": "/* -*-arm64-*-\n * vim: syntax=arm64asm\n *\n * Copyright (c) 2014 Seppo Tomperi <seppo.tomperi@vtt.fi>\n * Copyright (c) 2023 J. Dekker <jdek@itanimul.li>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n\n#include \"libavutil/aarch64/asm.S\"\n#include \"neon.S\"\n\n.macro hevc_loop_filter_chroma_start bitdepth\n        mov             x4, x30\n        ldr             w14, [x2]\n        ldr             w15, [x2, #4]\n.if \\bitdepth > 8\n        lsl             w14, w14, #(\\bitdepth - 8)\n        lsl             w15, w15, #(\\bitdepth - 8)\n.endif\n        adds            w2, w14, w15\n        b.eq            1f\n        dup             v16.4h, w14\n        dup             v17.4h, w15\n        trn1            v16.2d, v16.2d, v17.2d\n.if \\bitdepth > 8\n        mvni            v19.8h, #((0xff << (\\bitdepth - 8)) & 0xff), lsl #8\n        movi            v18.8h, #0\n.endif\n        neg             v17.8h, v16.8h\n.endm\n\n.macro hevc_loop_filter_chroma_body bitdepth\n.if \\bitdepth <= 8\n        uxtl            v20.8h, v0.8b // p1\n        uxtl            v1.8h,  v1.8b // p0\n        uxtl            v2.8h,  v2.8b // q0\n        uxtl            v23.8h, v3.8b // q1\n        va              .req v20\n        vb              .req v23\n.else   // required to specify both cases as we are unable to do: v0 .req v20\n        va              .req v0\n        vb              .req v3\n.endif\n        sub             v5.8h, v2.8h, v1.8h // q0 - p0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:2", "text": ".if \\bitdepth > 8\n        mvni            v19.8h, #((0xff << (\\bitdepth - 8)) & 0xff), lsl #8\n        movi            v18.8h, #0\n.endif\n        neg             v17.8h, v16.8h\n.endm\n\n.macro hevc_loop_filter_chroma_body bitdepth\n.if \\bitdepth <= 8\n        uxtl            v20.8h, v0.8b // p1\n        uxtl            v1.8h,  v1.8b // p0\n        uxtl            v2.8h,  v2.8b // q0\n        uxtl            v23.8h, v3.8b // q1\n        va              .req v20\n        vb              .req v23\n.else   // required to specify both cases as we are unable to do: v0 .req v20\n        va              .req v0\n        vb              .req v3\n.endif\n        sub             v5.8h, v2.8h, v1.8h // q0 - p0\n        sub             v6.8h, va.8h, vb.8h // p1 - q1\n        shl             v5.8h, v5.8h, #2\n        add             v5.8h, v6.8h, v5.8h\n        srshr           v5.8h, v5.8h, #3\n        clip            v17.8h, v16.8h, v5.8h\n        sqadd           v1.8h, v1.8h, v5.8h // p0 + delta\n        sqsub           v2.8h, v2.8h, v5.8h // q0 - delta\n.if \\bitdepth <= 8\n        sqxtun          v1.8b, v1.8h\n        sqxtun          v2.8b, v2.8h\n.else\n        clip            v18.8h, v19.8h, v1.8h, v2.8h\n.endif\n.unreq  va\n.unreq  vb\n.endm\n\nfunction hevc_loop_filter_chroma_body_8_neon, export=0\n        hevc_loop_filter_chroma_body 8\n        ret\nendfunc\n\nfunction hevc_loop_filter_chroma_body_10_neon, export=0\nhevc_loop_filter_chroma_body_12_neon:\n        hevc_loop_filter_chroma_body 10\n        ret\nendfunc\n\n// void ff_hevc_h_loop_filter_chroma_8_neon(uint8_t *_pix, ptrdiff_t _stride, int *_tc, uint8_t *_no_p, uint8_t *_no_q);\n\n.macro hevc_h_loop_filter_chroma bitdepth\nfunction ff_hevc_h_loop_filter_chroma_\\bitdepth\\()_neon, export=1\n        hevc_loop_filter_chroma_start \\bitdepth\n        sub             x0, x0, x1, lsl #1\n.if \\bitdepth > 8\n        ld1             {v0.8h}, [x0], x1\n        ld1             {v1.8h}, [x0], x1\n        ld1             {v2.8h}, [x0], x1\n        ld1             {v3.8h}, [x0]\n.else", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:3", "text": "endfunc\n\nfunction hevc_loop_filter_chroma_body_10_neon, export=0\nhevc_loop_filter_chroma_body_12_neon:\n        hevc_loop_filter_chroma_body 10\n        ret\nendfunc\n\n// void ff_hevc_h_loop_filter_chroma_8_neon(uint8_t *_pix, ptrdiff_t _stride, int *_tc, uint8_t *_no_p, uint8_t *_no_q);\n\n.macro hevc_h_loop_filter_chroma bitdepth\nfunction ff_hevc_h_loop_filter_chroma_\\bitdepth\\()_neon, export=1\n        hevc_loop_filter_chroma_start \\bitdepth\n        sub             x0, x0, x1, lsl #1\n.if \\bitdepth > 8\n        ld1             {v0.8h}, [x0], x1\n        ld1             {v1.8h}, [x0], x1\n        ld1             {v2.8h}, [x0], x1\n        ld1             {v3.8h}, [x0]\n.else\n        ld1             {v0.8b}, [x0], x1\n        ld1             {v1.8b}, [x0], x1\n        ld1             {v2.8b}, [x0], x1\n        ld1             {v3.8b}, [x0]\n.endif\n        sub             x0, x0, x1, lsl #1\n        bl              hevc_loop_filter_chroma_body_\\bitdepth\\()_neon\n.if \\bitdepth > 8\n        st1             {v1.8h}, [x0], x1\n        st1             {v2.8h}, [x0]\n.else\n        st1             {v1.8b}, [x0], x1\n        st1             {v2.8b}, [x0]\n.endif\n1:      ret             x4\nendfunc\n.endm\n\n.macro hevc_v_loop_filter_chroma bitdepth\nfunction ff_hevc_v_loop_filter_chroma_\\bitdepth\\()_neon, export=1\n        hevc_loop_filter_chroma_start \\bitdepth\n.if \\bitdepth > 8\n        sub             x0, x0, #4\n        add             x3, x0, x1\n        lsl             x1, x1, #1\n        ld1             {v0.d}[0], [x0], x1\n        ld1             {v1.d}[0], [x3], x1\n        ld1             {v2.d}[0], [x0], x1\n        ld1             {v3.d}[0], [x3], x1\n        ld1             {v0.d}[1], [x0], x1\n        ld1             {v1.d}[1], [x3], x1\n        ld1             {v2.d}[1], [x0], x1\n        ld1             {v3.d}[1], [x3], x1\n        transpose_4x8H  v0, v1, v2, v3, v28, v29, v30, v31\n.else\n        sub             x0, x0, #2\n        add             x3, x0, x1\n        lsl             x1, x1, #1\n        ld1             {v0.s}[0], [x0], x1\n        ld1             {v1.s}[0], [x3], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:4", "text": "hevc_loop_filter_chroma_start \\bitdepth\n.if \\bitdepth > 8\n        sub             x0, x0, #4\n        add             x3, x0, x1\n        lsl             x1, x1, #1\n        ld1             {v0.d}[0], [x0], x1\n        ld1             {v1.d}[0], [x3], x1\n        ld1             {v2.d}[0], [x0], x1\n        ld1             {v3.d}[0], [x3], x1\n        ld1             {v0.d}[1], [x0], x1\n        ld1             {v1.d}[1], [x3], x1\n        ld1             {v2.d}[1], [x0], x1\n        ld1             {v3.d}[1], [x3], x1\n        transpose_4x8H  v0, v1, v2, v3, v28, v29, v30, v31\n.else\n        sub             x0, x0, #2\n        add             x3, x0, x1\n        lsl             x1, x1, #1\n        ld1             {v0.s}[0], [x0], x1\n        ld1             {v1.s}[0], [x3], x1\n        ld1             {v2.s}[0], [x0], x1\n        ld1             {v3.s}[0], [x3], x1\n        ld1             {v0.s}[1], [x0], x1\n        ld1             {v1.s}[1], [x3], x1\n        ld1             {v2.s}[1], [x0], x1\n        ld1             {v3.s}[1], [x3], x1\n        transpose_4x8B  v0, v1, v2, v3, v28, v29, v30, v31\n.endif\n        sub             x0, x0, x1, lsl #2\n        sub             x3, x3, x1, lsl #2\n        bl              hevc_loop_filter_chroma_body_\\bitdepth\\()_neon\n.if \\bitdepth > 8\n        transpose_4x8H  v0, v1, v2, v3, v28, v29, v30, v31\n        st1             {v0.d}[0], [x0], x1\n        st1             {v1.d}[0], [x3], x1\n        st1             {v2.d}[0], [x0], x1\n        st1             {v3.d}[0], [x3], x1\n        st1             {v0.d}[1], [x0], x1\n        st1             {v1.d}[1], [x3], x1\n        st1             {v2.d}[1], [x0], x1\n        st1             {v3.d}[1], [x3]\n.else\n        transpose_4x8B  v0, v1, v2, v3, v28, v29, v30, v31\n        st1             {v0.s}[0], [x0], x1\n        st1             {v1.s}[0], [x3], x1\n        st1             {v2.s}[0], [x0], x1\n        st1             {v3.s}[0], [x3], x1\n        st1             {v0.s}[1], [x0], x1\n        st1             {v1.s}[1], [x3], x1\n        st1             {v2.s}[1], [x0], x1\n        st1             {v3.s}[1], [x3]\n.endif\n1:      ret             x4\nendfunc\n.endm\n\nhevc_h_loop_filter_chroma 8\nhevc_h_loop_filter_chroma 10\nhevc_h_loop_filter_chroma 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:5", "text": "st1             {v3.d}[1], [x3]\n.else\n        transpose_4x8B  v0, v1, v2, v3, v28, v29, v30, v31\n        st1             {v0.s}[0], [x0], x1\n        st1             {v1.s}[0], [x3], x1\n        st1             {v2.s}[0], [x0], x1\n        st1             {v3.s}[0], [x3], x1\n        st1             {v0.s}[1], [x0], x1\n        st1             {v1.s}[1], [x3], x1\n        st1             {v2.s}[1], [x0], x1\n        st1             {v3.s}[1], [x3]\n.endif\n1:      ret             x4\nendfunc\n.endm\n\nhevc_h_loop_filter_chroma 8\nhevc_h_loop_filter_chroma 10\nhevc_h_loop_filter_chroma 12\n\nhevc_v_loop_filter_chroma 8\nhevc_v_loop_filter_chroma 10\nhevc_v_loop_filter_chroma 12\n\n.macro hevc_loop_filter_luma_body bitdepth\nfunction hevc_loop_filter_luma_body_\\bitdepth\\()_neon, export=0\n.if \\bitdepth > 8\n        lsl             w2, w2, #(\\bitdepth - 8) // beta <<= BIT_DEPTH - 8\n.else\n        uxtl            v0.8h, v0.8b\n        uxtl            v1.8h, v1.8b\n        uxtl            v2.8h, v2.8b\n        uxtl            v3.8h, v3.8b\n        uxtl            v4.8h, v4.8b\n        uxtl            v5.8h, v5.8b\n        uxtl            v6.8h, v6.8b\n        uxtl            v7.8h, v7.8b\n.endif\n        ldr             w7, [x3] // tc[0]\n        ldr             w8, [x3, #4] // tc[1]\n        dup             v18.4h, w7\n        dup             v19.4h, w8\n        trn1            v18.2d, v18.2d, v19.2d\n.if \\bitdepth > 8\n        shl             v18.8h, v18.8h, #(\\bitdepth - 8)\n.endif\n        dup             v27.8h, w2 // beta\n        // tc25\n        shl             v19.8h, v18.8h, #2 // * 4\n        add             v19.8h, v19.8h, v18.8h // (tc * 5)\n        srshr           v19.8h, v19.8h, #1 // (tc * 5 + 1) >> 1\n        sshr            v17.8h, v27.8h, #2 // beta2\n\n        ////// beta_2 check\n        // dp0  = abs(P2  - 2 * P1  + P0)\n        add             v22.8h, v3.8h, v1.8h\n        shl             v23.8h, v2.8h, #1\n        sabd            v30.8h, v22.8h, v23.8h\n        // dq0  = abs(Q2  - 2 * Q1  + Q0)\n        add             v21.8h, v6.8h, v4.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:6", "text": "dup             v18.4h, w7\n        dup             v19.4h, w8\n        trn1            v18.2d, v18.2d, v19.2d\n.if \\bitdepth > 8\n        shl             v18.8h, v18.8h, #(\\bitdepth - 8)\n.endif\n        dup             v27.8h, w2 // beta\n        // tc25\n        shl             v19.8h, v18.8h, #2 // * 4\n        add             v19.8h, v19.8h, v18.8h // (tc * 5)\n        srshr           v19.8h, v19.8h, #1 // (tc * 5 + 1) >> 1\n        sshr            v17.8h, v27.8h, #2 // beta2\n\n        ////// beta_2 check\n        // dp0  = abs(P2  - 2 * P1  + P0)\n        add             v22.8h, v3.8h, v1.8h\n        shl             v23.8h, v2.8h, #1\n        sabd            v30.8h, v22.8h, v23.8h\n        // dq0  = abs(Q2  - 2 * Q1  + Q0)\n        add             v21.8h, v6.8h, v4.8h\n        shl             v26.8h, v5.8h, #1\n        sabd            v31.8h, v21.8h, v26.8h\n        // d0   = dp0 + dq0\n        add             v20.8h, v30.8h, v31.8h\n        shl             v25.8h, v20.8h, #1\n        // (d0 << 1) < beta_2\n        cmgt            v23.8h, v17.8h, v25.8h\n\n        ////// beta check\n        // d0 + d3 < beta\n        mov             x9, #0xFFFF00000000FFFF\n        dup             v24.2d, x9\n        and             v25.16b, v24.16b, v20.16b\n        addp            v25.8h, v25.8h, v25.8h // 1+0 0+1 1+0 0+1\n        addp            v25.4h, v25.4h, v25.4h // 1+0+0+1 1+0+0+1\n        cmgt            v25.4h, v27.4h, v25.4h // lower/upper mask in h[0/1]\n        mov             w9, v25.s[0]\n        cmp             w9, #0\n        sxtl            v26.4s, v25.4h\n        sxtl            v16.2d, v26.2s // full skip mask\n        b.eq            3f // skip both blocks\n\n        // TODO: we can check the full skip mask with the weak/strong mask to\n        // potentially skip weak or strong calculation entirely if we only have one\n\n        ////// beta_3 check\n        // abs(P3  -  P0) + abs(Q3  -  Q0) < beta_3\n        sshr            v17.8h, v17.8h, #1 // beta_3\n        sabd            v20.8h, v0.8h, v3.8h\n        saba            v20.8h, v7.8h, v4.8h\n        cmgt            v21.8h, v17.8h, v20.8h\n\n        and             v23.16b, v23.16b, v21.16b\n\n        ////// tc25 check\n        // abs(P0  -  Q0) < tc25\n        sabd            v20.8h, v3.8h, v4.8h\n        cmgt            v21.8h, v19.8h, v20.8h\n\n        and             v23.16b, v23.16b, v21.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:7", "text": "b.eq            3f // skip both blocks\n\n        // TODO: we can check the full skip mask with the weak/strong mask to\n        // potentially skip weak or strong calculation entirely if we only have one\n\n        ////// beta_3 check\n        // abs(P3  -  P0) + abs(Q3  -  Q0) < beta_3\n        sshr            v17.8h, v17.8h, #1 // beta_3\n        sabd            v20.8h, v0.8h, v3.8h\n        saba            v20.8h, v7.8h, v4.8h\n        cmgt            v21.8h, v17.8h, v20.8h\n\n        and             v23.16b, v23.16b, v21.16b\n\n        ////// tc25 check\n        // abs(P0  -  Q0) < tc25\n        sabd            v20.8h, v3.8h, v4.8h\n        cmgt            v21.8h, v19.8h, v20.8h\n\n        and             v23.16b, v23.16b, v21.16b\n\n        ////// Generate low/high line max from lines 0/3/4/7\n        // mask out lines 2/3/5/6\n        not             v20.16b, v24.16b // 0x0000FFFFFFFF0000\n        orr             v23.16b, v23.16b, v20.16b\n\n        // generate weak/strong mask\n        uminp           v23.8h, v23.8h, v23.8h // extend to singles\n        sxtl            v23.4s, v23.4h\n        uminp           v26.4s, v23.4s, v23.4s // check lines\n        // extract to gpr\n        ext             v25.16b, v26.16b, v26.16b, #2\n        zip1            v17.4s, v26.4s, v26.4s\n        mov             w12, v25.s[0]\n        mov             w11, #0x0000FFFF\n        mov             w13, #0xFFFF0000\n        // FFFF FFFF -> strong strong\n        // FFFF 0000 -> strong weak\n        // 0000 FFFF -> weak   strong\n        // 0000 0000 -> weak   weak\n        cmp             w12, w13\n        b.hi            0f // only strong/strong, skip weak nd_p/nd_q calc\n\n        ////// weak nd_p/nd_q\n        // d0+d3\n        and             v30.16b, v30.16b, v24.16b // d0 __ __ d3 d4 __ __ d7\n        and             v31.16b, v31.16b, v24.16b\n        addp            v30.8h, v30.8h, v30.8h // [d0+__ __+d3 d4+__ __+d7] [ ... ]\n        addp            v31.8h, v31.8h, v31.8h // [d0+d3 d4+d7]\n        addp            v30.4h, v30.4h, v30.4h\n        addp            v31.4h, v31.4h, v31.4h\n\n        // ((beta + (beta >> 1)) >> 3)\n        sshr            v21.8h, v27.8h, #1\n        add             v21.8h, v21.8h, v27.8h\n        sshr            v21.8h, v21.8h, #3\n\n        // nd_p = dp0 + dp3 < ((beta + (beta >> 1)) >> 3)\n        cmgt            v30.8h, v21.8h, v30.8h\n        // nd_q = dq0 + dq3 < ((beta + (beta >> 1)) >> 3)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:8", "text": "cmp             w12, w13\n        b.hi            0f // only strong/strong, skip weak nd_p/nd_q calc\n\n        ////// weak nd_p/nd_q\n        // d0+d3\n        and             v30.16b, v30.16b, v24.16b // d0 __ __ d3 d4 __ __ d7\n        and             v31.16b, v31.16b, v24.16b\n        addp            v30.8h, v30.8h, v30.8h // [d0+__ __+d3 d4+__ __+d7] [ ... ]\n        addp            v31.8h, v31.8h, v31.8h // [d0+d3 d4+d7]\n        addp            v30.4h, v30.4h, v30.4h\n        addp            v31.4h, v31.4h, v31.4h\n\n        // ((beta + (beta >> 1)) >> 3)\n        sshr            v21.8h, v27.8h, #1\n        add             v21.8h, v21.8h, v27.8h\n        sshr            v21.8h, v21.8h, #3\n\n        // nd_p = dp0 + dp3 < ((beta + (beta >> 1)) >> 3)\n        cmgt            v30.8h, v21.8h, v30.8h\n        // nd_q = dq0 + dq3 < ((beta + (beta >> 1)) >> 3)\n        cmgt            v31.8h, v21.8h, v31.8h\n\n        sxtl            v30.4s, v30.4h\n        sxtl            v31.4s, v31.4h\n        sxtl            v28.2d, v30.2s\n        sxtl            v29.2d, v31.2s\n\n        cmp             w12, w11\n        b.lo            1f // can only be weak weak, skip strong\n\n0:      // STRONG FILTER\n\n        // P0 = p0 + av_clip(((p2 + 2 * p1 + 2 * p0 + 2 * q0 + q1 + 4) >> 3) - p0, -tc3, tc3);\n        add             v21.8h, v2.8h, v3.8h   // (p1 + p0\n        add             v21.8h, v4.8h, v21.8h  //     + q0)\n        shl             v21.8h, v21.8h, #1     //           * 2\n        add             v22.8h, v1.8h, v5.8h   //   (p2 + q1)\n        add             v21.8h, v22.8h, v21.8h // +\n        srshr           v21.8h, v21.8h, #3     //               >> 3\n        sub             v21.8h, v21.8h, v3.8h  //                    - p0\n\n        // P1 = p1 + av_clip(((p2 + p1 + p0 + q0 + 2) >> 2) - p1, -tc2, tc2);\n\n        add             v22.8h, v1.8h, v2.8h\n        add             v23.8h, v3.8h, v4.8h\n        add             v22.8h, v22.8h, v23.8h\n        srshr           v22.8h, v22.8h, #2\n        sub             v22.8h, v22.8h, v2.8h\n\n        // P2 = p2 + av_clip(((2 * p3 + 3 * p2 + p1 + p0 + q0 + 4) >> 3) - p2, -tc, tc);\n\n        add             v23.8h, v0.8h, v1.8h // p3 + p2\n        add             v24.8h, v3.8h, v4.8h // p0 + q0\n        shl             v23.8h, v23.8h, #1 // * 2\n        add             v23.8h, v23.8h, v24.8h\n        add             v24.8h, v1.8h, v2.8h // p2 + p1\n        add             v23.8h, v23.8h, v24.8h\n        srshr           v23.8h, v23.8h, #3\n        sub             v23.8h, v23.8h, v1.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:9", "text": "// P1 = p1 + av_clip(((p2 + p1 + p0 + q0 + 2) >> 2) - p1, -tc2, tc2);\n\n        add             v22.8h, v1.8h, v2.8h\n        add             v23.8h, v3.8h, v4.8h\n        add             v22.8h, v22.8h, v23.8h\n        srshr           v22.8h, v22.8h, #2\n        sub             v22.8h, v22.8h, v2.8h\n\n        // P2 = p2 + av_clip(((2 * p3 + 3 * p2 + p1 + p0 + q0 + 4) >> 3) - p2, -tc, tc);\n\n        add             v23.8h, v0.8h, v1.8h // p3 + p2\n        add             v24.8h, v3.8h, v4.8h // p0 + q0\n        shl             v23.8h, v23.8h, #1 // * 2\n        add             v23.8h, v23.8h, v24.8h\n        add             v24.8h, v1.8h, v2.8h // p2 + p1\n        add             v23.8h, v23.8h, v24.8h\n        srshr           v23.8h, v23.8h, #3\n        sub             v23.8h, v23.8h, v1.8h\n\n        // Q0 = q0 + av_clip(((p1 + 2 * p0 + 2 * q0 + 2 * q1 + q2 + 4) >> 3) - q0, -tc3, tc3);\n        add             v24.8h, v3.8h, v4.8h   // (p0 + q0\n        add             v24.8h, v5.8h, v24.8h  //     + q1)\n        shl             v24.8h, v24.8h, #1     //           * 2\n        add             v25.8h, v2.8h, v6.8h   //   (p1 + q2)\n        add             v24.8h, v25.8h, v24.8h // +\n        srshr           v24.8h, v24.8h, #3     //               >> 3\n        sub             v24.8h, v24.8h, v4.8h  //                    - q0\n\n        // Q1 = q1 + av_clip(((p0 + q0 + q1 + q2 + 2) >> 2) - q1, -tc2, tc2);\n\n        add             v25.8h, v6.8h, v5.8h\n        add             v26.8h, v3.8h, v4.8h\n        add             v25.8h, v25.8h, v26.8h\n        srshr           v25.8h, v25.8h, #2\n        sub             v25.8h, v25.8h, v5.8h\n\n        // Q2 = q2 + av_clip(((2 * q3 + 3 * q2 + q1 + q0 + p0 + 4) >> 3) - q2, -tc, tc);\n\n        add             v26.8h, v7.8h, v6.8h\n        add             v27.8h, v6.8h, v5.8h\n        shl             v26.8h, v26.8h, #1\n        add             v26.8h, v26.8h, v27.8h\n        add             v27.8h, v3.8h, v4.8h\n        add             v26.8h, v26.8h, v27.8h\n        srshr           v26.8h, v26.8h, #3\n        sub             v26.8h, v26.8h, v6.8h\n\n        // this clip should work properly\n        shl             v30.8h, v18.8h, #1 // tc2\n        neg             v31.8h, v30.8h // -tc2\n        clip            v31.8h, v30.8h, v21.8h, v22.8h, v23.8h, v24.8h, v25.8h, v26.8h\n\n        and             v21.16b, v21.16b, v16.16b\n        and             v22.16b, v22.16b, v16.16b\n        and             v23.16b, v23.16b, v16.16b\n        and             v24.16b, v24.16b, v16.16b\n        and             v25.16b, v25.16b, v16.16b\n        and             v26.16b, v26.16b, v16.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:10", "text": "add             v27.8h, v6.8h, v5.8h\n        shl             v26.8h, v26.8h, #1\n        add             v26.8h, v26.8h, v27.8h\n        add             v27.8h, v3.8h, v4.8h\n        add             v26.8h, v26.8h, v27.8h\n        srshr           v26.8h, v26.8h, #3\n        sub             v26.8h, v26.8h, v6.8h\n\n        // this clip should work properly\n        shl             v30.8h, v18.8h, #1 // tc2\n        neg             v31.8h, v30.8h // -tc2\n        clip            v31.8h, v30.8h, v21.8h, v22.8h, v23.8h, v24.8h, v25.8h, v26.8h\n\n        and             v21.16b, v21.16b, v16.16b\n        and             v22.16b, v22.16b, v16.16b\n        and             v23.16b, v23.16b, v16.16b\n        and             v24.16b, v24.16b, v16.16b\n        and             v25.16b, v25.16b, v16.16b\n        and             v26.16b, v26.16b, v16.16b\n\n        add             v23.8h, v23.8h, v1.8h // careful\n        add             v22.8h, v22.8h, v2.8h\n        add             v21.8h, v21.8h, v3.8h\n        add             v24.8h, v24.8h, v4.8h\n        add             v25.8h, v25.8h, v5.8h\n        add             v26.8h, v26.8h, v6.8h\n\n        cmp             w12, w13\n        b.hi            2f // only strong/strong, skip weak\n\n1:      // WEAK FILTER\n\n        // delta0 = (9 * (q0 - p0) - 3 * (q1 - p1) + 8) >> 4\n.if \\bitdepth < 12\n        sub             v27.8h, v4.8h, v3.8h // q0 - p0\n        shl             v30.8h, v27.8h, #3 // * 8\n        add             v27.8h, v27.8h, v30.8h // 9 * (q0 - p0)\n\n        sub             v30.8h, v5.8h, v2.8h // q1 - p1\n        shl             v31.8h, v30.8h, #1 // * 2\n\n        sub             v27.8h, v27.8h, v31.8h\n        sub             v27.8h, v27.8h, v30.8h // - 3 * (q1 - p1)\n        srshr           v27.8h, v27.8h, #4\n.else\n        sub             v19.8h, v4.8h, v3.8h // q0 - p0\n        sub             v20.8h, v5.8h, v2.8h // q1 - p1\n\n        sshll           v30.4s, v19.4h, #3 // * 8\n        sshll2          v31.4s, v19.8h, #3\n\n        shl             v27.8h, v20.8h, #1\n\n        saddw           v30.4s, v30.4s, v19.4h // 9 * (q0 - p0)\n        saddw2          v31.4s, v31.4s, v19.8h\n\n        saddl           v19.4s, v27.4h, v20.4h // 3 * (q1 - p1)\n        saddl2          v20.4s, v27.8h, v20.8h\n\n        sub             v19.4s, v30.4s, v19.4s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:11", "text": "sub             v27.8h, v27.8h, v31.8h\n        sub             v27.8h, v27.8h, v30.8h // - 3 * (q1 - p1)\n        srshr           v27.8h, v27.8h, #4\n.else\n        sub             v19.8h, v4.8h, v3.8h // q0 - p0\n        sub             v20.8h, v5.8h, v2.8h // q1 - p1\n\n        sshll           v30.4s, v19.4h, #3 // * 8\n        sshll2          v31.4s, v19.8h, #3\n\n        shl             v27.8h, v20.8h, #1\n\n        saddw           v30.4s, v30.4s, v19.4h // 9 * (q0 - p0)\n        saddw2          v31.4s, v31.4s, v19.8h\n\n        saddl           v19.4s, v27.4h, v20.4h // 3 * (q1 - p1)\n        saddl2          v20.4s, v27.8h, v20.8h\n\n        sub             v19.4s, v30.4s, v19.4s\n        sub             v20.4s, v31.4s, v20.4s\n\n        sqrshrn         v27.4h, v19.4s, #4\n        sqrshrn2        v27.8h, v20.4s, #4\n.endif\n\n        // delta0 10tc check mask\n        shl             v30.8h, v18.8h, #1 // * 2\n        shl             v31.8h, v18.8h, #3 // * 8\n        add             v30.8h, v30.8h, v31.8h // 10 * tc\n        abs             v31.8h, v27.8h\n        cmgt            v20.8h, v30.8h, v31.8h // abs(delta0) < 10 * tc\n\n        and             v20.16b, v20.16b, v16.16b // combine with full mask\n\n        neg             v31.8h, v18.8h // -tc\n        clip            v31.8h, v18.8h, v27.8h // delta0 = av_clip(delta0, -tc, tc)\n\n        // deltap1 = av_clip((((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1, -tc_2, tc_2)\n        add             v30.8h, v1.8h, v3.8h\n        srshr           v30.8h, v30.8h, #1\n        sub             v30.8h, v30.8h, v2.8h\n        add             v30.8h, v30.8h, v27.8h\n        sshr            v30.8h, v30.8h, #1\n\n        // p3 p2 p1 p0 q0 q1 q2 q3\n        // v0 v1 v2 v3 v4 v5 v6 v7\n\n        // deltaq1 = av_clip((((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1, -tc_2, tc_2);\n        add             v31.8h, v6.8h, v4.8h\n        srshr           v31.8h, v31.8h, #1\n        sub             v31.8h, v31.8h, v5.8h\n        sub             v31.8h, v31.8h, v27.8h\n        sshr            v31.8h, v31.8h, #1\n\n        // apply nd_p nd_q mask to deltap1/deltaq1\n        and             v30.16b, v30.16b, v28.16b\n        and             v31.16b, v31.16b, v29.16b\n\n        // apply full skip mask to deltap1/deltaq1/delta0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:12", "text": "srshr           v30.8h, v30.8h, #1\n        sub             v30.8h, v30.8h, v2.8h\n        add             v30.8h, v30.8h, v27.8h\n        sshr            v30.8h, v30.8h, #1\n\n        // p3 p2 p1 p0 q0 q1 q2 q3\n        // v0 v1 v2 v3 v4 v5 v6 v7\n\n        // deltaq1 = av_clip((((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1, -tc_2, tc_2);\n        add             v31.8h, v6.8h, v4.8h\n        srshr           v31.8h, v31.8h, #1\n        sub             v31.8h, v31.8h, v5.8h\n        sub             v31.8h, v31.8h, v27.8h\n        sshr            v31.8h, v31.8h, #1\n\n        // apply nd_p nd_q mask to deltap1/deltaq1\n        and             v30.16b, v30.16b, v28.16b\n        and             v31.16b, v31.16b, v29.16b\n\n        // apply full skip mask to deltap1/deltaq1/delta0\n        and             v30.16b, v30.16b, v20.16b\n        and             v27.16b, v27.16b, v20.16b\n        and             v31.16b, v31.16b, v20.16b\n\n        // clip P1/Q1 to -tc_2, tc_2\n        sshr            v18.8h, v18.8h, #1 // tc2\n        neg             v28.8h, v18.8h\n        clip            v28.8h, v18.8h, v30.8h, v31.8h\n\n        // P0 = av_clip_pixel(p0 + delta0)\n        // Q0 = av_clip_pixel(q0 - delta0)\n        add             v29.8h, v3.8h, v27.8h // P0\n        sub             v27.8h, v4.8h, v27.8h // Q0\n\n        // P1 = av_clip_pixel(p1 + deltap1)\n        // Q1 = av_clip_pixel(q1 + deltaq1)\n        add             v30.8h, v2.8h, v30.8h // P1\n        add             v31.8h, v5.8h, v31.8h // Q1\n\n2:      // MIX WEAK/STRONG\n\n        mov             v19.16b, v1.16b\n        mov             v20.16b, v6.16b\n        // copy selection mask\n        mov             v1.16b, v17.16b\n        mov             v2.16b, v17.16b\n        mov             v3.16b, v17.16b\n        mov             v4.16b, v17.16b\n        mov             v5.16b, v17.16b\n        mov             v6.16b, v17.16b\n        // select\n        bsl             v1.16b, v23.16b, v19.16b // P2 strong/orig\n        bsl             v2.16b, v22.16b, v30.16b // P1 strong/weak\n        bsl             v3.16b, v21.16b, v29.16b // P0 strong/weak\n        bsl             v4.16b, v24.16b, v27.16b // Q0 strong/weak\n        bsl             v5.16b, v25.16b, v31.16b // Q1 strong/weak\n        bsl             v6.16b, v26.16b, v20.16b // Q2 strong/orig\n        // NOTE: Q3/P3 are unchanged\n\n.if \\bitdepth > 8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:13", "text": "mov             v19.16b, v1.16b\n        mov             v20.16b, v6.16b\n        // copy selection mask\n        mov             v1.16b, v17.16b\n        mov             v2.16b, v17.16b\n        mov             v3.16b, v17.16b\n        mov             v4.16b, v17.16b\n        mov             v5.16b, v17.16b\n        mov             v6.16b, v17.16b\n        // select\n        bsl             v1.16b, v23.16b, v19.16b // P2 strong/orig\n        bsl             v2.16b, v22.16b, v30.16b // P1 strong/weak\n        bsl             v3.16b, v21.16b, v29.16b // P0 strong/weak\n        bsl             v4.16b, v24.16b, v27.16b // Q0 strong/weak\n        bsl             v5.16b, v25.16b, v31.16b // Q1 strong/weak\n        bsl             v6.16b, v26.16b, v20.16b // Q2 strong/orig\n        // NOTE: Q3/P3 are unchanged\n\n.if \\bitdepth > 8\n        movi            v19.8h, #0\n        dup             v20.8h, w14\n        clip            v19.8h, v20.8h, v1.8h, v2.8h, v3.8h, v4.8h, v5.8h, v6.8h\n.else\n        sqxtun          v0.8b, v0.8h\n        sqxtun          v1.8b, v1.8h\n        sqxtun          v2.8b, v2.8h\n        sqxtun          v3.8b, v3.8h\n        sqxtun          v4.8b, v4.8h\n        sqxtun          v5.8b, v5.8h\n        sqxtun          v6.8b, v6.8h\n        sqxtun          v7.8b, v7.8h\n.endif\n        // Use x15 to signal whether any pixels should be updated or not.\n        mov             x15, #1\n        ret\n3:      mov             x15, #0\n        ret\nendfunc\n.endm\n\nhevc_loop_filter_luma_body 8\nhevc_loop_filter_luma_body 10\nhevc_loop_filter_luma_body 12\n\n// hevc_v_loop_filter_luma(uint8_t *pix, ptrdiff_t stride, int beta, const int32_t *tc, const uint8_t *no_p, const uint8_t *no_q)\n\n.macro hevc_loop_filter_luma dir, bitdepth\nfunction ff_hevc_\\dir\\()_loop_filter_luma_\\bitdepth\\()_neon, export=1\n        mov             x6, x30\n.ifc \\dir, v\n.if \\bitdepth > 8\n        sub             x0, x0, #8\n.else\n        sub             x0, x0, #4\n.endif\n.else\n        sub             x0, x0, x1, lsl #2 // -4 * xstride\n.endif\n        mov             x10, x0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:14", "text": "hevc_loop_filter_luma_body 8\nhevc_loop_filter_luma_body 10\nhevc_loop_filter_luma_body 12\n\n// hevc_v_loop_filter_luma(uint8_t *pix, ptrdiff_t stride, int beta, const int32_t *tc, const uint8_t *no_p, const uint8_t *no_q)\n\n.macro hevc_loop_filter_luma dir, bitdepth\nfunction ff_hevc_\\dir\\()_loop_filter_luma_\\bitdepth\\()_neon, export=1\n        mov             x6, x30\n.ifc \\dir, v\n.if \\bitdepth > 8\n        sub             x0, x0, #8\n.else\n        sub             x0, x0, #4\n.endif\n.else\n        sub             x0, x0, x1, lsl #2 // -4 * xstride\n.endif\n        mov             x10, x0\n.if \\bitdepth > 8\n        ld1             {v0.8h}, [x0], x1\n        ld1             {v1.8h}, [x0], x1\n        ld1             {v2.8h}, [x0], x1\n        ld1             {v3.8h}, [x0], x1\n        ld1             {v4.8h}, [x0], x1\n        ld1             {v5.8h}, [x0], x1\n        ld1             {v6.8h}, [x0], x1\n        ld1             {v7.8h}, [x0]\n        mov             w14, #((1 << \\bitdepth) - 1)\n.ifc \\dir, v\n        transpose_8x8H  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n.else\n        ld1             {v0.8b}, [x0], x1\n        ld1             {v1.8b}, [x0], x1\n        ld1             {v2.8b}, [x0], x1\n        ld1             {v3.8b}, [x0], x1\n        ld1             {v4.8b}, [x0], x1\n        ld1             {v5.8b}, [x0], x1\n        ld1             {v6.8b}, [x0], x1\n        ld1             {v7.8b}, [x0]\n.ifc \\dir, v\n        transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n.endif\n        bl              hevc_loop_filter_luma_body_\\bitdepth\\()_neon\n        cbz             x15, 9f\n.if \\bitdepth > 8\n.ifc \\dir, v\n        transpose_8x8H  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n        st1             {v0.8h}, [x10], x1\n        st1             {v1.8h}, [x10], x1\n        st1             {v2.8h}, [x10], x1\n        st1             {v3.8h}, [x10], x1\n        st1             {v4.8h}, [x10], x1\n        st1             {v5.8h}, [x10], x1\n        st1             {v6.8h}, [x10], x1\n        st1             {v7.8h}, [x10]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:15", "text": "ld1             {v6.8b}, [x0], x1\n        ld1             {v7.8b}, [x0]\n.ifc \\dir, v\n        transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n.endif\n        bl              hevc_loop_filter_luma_body_\\bitdepth\\()_neon\n        cbz             x15, 9f\n.if \\bitdepth > 8\n.ifc \\dir, v\n        transpose_8x8H  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n        st1             {v0.8h}, [x10], x1\n        st1             {v1.8h}, [x10], x1\n        st1             {v2.8h}, [x10], x1\n        st1             {v3.8h}, [x10], x1\n        st1             {v4.8h}, [x10], x1\n        st1             {v5.8h}, [x10], x1\n        st1             {v6.8h}, [x10], x1\n        st1             {v7.8h}, [x10]\n.else\n.ifc \\dir, v\n        transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n        st1             {v0.8b}, [x10], x1\n        st1             {v1.8b}, [x10], x1\n        st1             {v2.8b}, [x10], x1\n        st1             {v3.8b}, [x10], x1\n        st1             {v4.8b}, [x10], x1\n        st1             {v5.8b}, [x10], x1\n        st1             {v6.8b}, [x10], x1\n        st1             {v7.8b}, [x10]\n.endif\n9:\n        ret             x6\nendfunc\n.endm\n\nhevc_loop_filter_luma h, 8\nhevc_loop_filter_luma h, 10\nhevc_loop_filter_luma h, 12\n\nhevc_loop_filter_luma v, 8\nhevc_loop_filter_luma v, 10\nhevc_loop_filter_luma v, 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 561, "line_end": 605}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:13", "text": "mov             v19.16b, v1.16b\n        mov             v20.16b, v6.16b\n        // copy selection mask\n        mov             v1.16b, v17.16b\n        mov             v2.16b, v17.16b\n        mov             v3.16b, v17.16b\n        mov             v4.16b, v17.16b\n        mov             v5.16b, v17.16b\n        mov             v6.16b, v17.16b\n        // select\n        bsl             v1.16b, v23.16b, v19.16b // P2 strong/orig\n        bsl             v2.16b, v22.16b, v30.16b // P1 strong/weak\n        bsl             v3.16b, v21.16b, v29.16b // P0 strong/weak\n        bsl             v4.16b, v24.16b, v27.16b // Q0 strong/weak\n        bsl             v5.16b, v25.16b, v31.16b // Q1 strong/weak\n        bsl             v6.16b, v26.16b, v20.16b // Q2 strong/orig\n        // NOTE: Q3/P3 are unchanged\n\n.if \\bitdepth > 8\n        movi            v19.8h, #0\n        dup             v20.8h, w14\n        clip            v19.8h, v20.8h, v1.8h, v2.8h, v3.8h, v4.8h, v5.8h, v6.8h\n.else\n        sqxtun          v0.8b, v0.8h\n        sqxtun          v1.8b, v1.8h\n        sqxtun          v2.8b, v2.8h\n        sqxtun          v3.8b, v3.8h\n        sqxtun          v4.8b, v4.8h\n        sqxtun          v5.8b, v5.8h\n        sqxtun          v6.8b, v6.8h\n        sqxtun          v7.8b, v7.8h\n.endif\n        ret\n3:      ret             x6\nendfunc\n.endm\n\nhevc_loop_filter_luma_body 8\nhevc_loop_filter_luma_body 10\nhevc_loop_filter_luma_body 12\n\n// hevc_v_loop_filter_luma(uint8_t *pix, ptrdiff_t stride, int beta, const int32_t *tc, const uint8_t *no_p, const uint8_t *no_q)\n\n.macro hevc_loop_filter_luma dir, bitdepth\nfunction ff_hevc_\\dir\\()_loop_filter_luma_\\bitdepth\\()_neon, export=1\n        mov             x6, x30\n.ifc \\dir, v\n.if \\bitdepth > 8\n        sub             x0, x0, #8\n.else\n        sub             x0, x0, #4\n.endif\n.else\n        sub             x0, x0, x1, lsl #2 // -4 * xstride\n.endif\n        mov             x10, x0\n.if \\bitdepth > 8\n        ld1             {v0.8h}, [x0], x1\n        ld1             {v1.8h}, [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "570052cd2a38200ae6aca52e817517513812ec56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/570052cd2a38200ae6aca52e817517513812ec56/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:14", "text": "hevc_loop_filter_luma_body 12\n\n// hevc_v_loop_filter_luma(uint8_t *pix, ptrdiff_t stride, int beta, const int32_t *tc, const uint8_t *no_p, const uint8_t *no_q)\n\n.macro hevc_loop_filter_luma dir, bitdepth\nfunction ff_hevc_\\dir\\()_loop_filter_luma_\\bitdepth\\()_neon, export=1\n        mov             x6, x30\n.ifc \\dir, v\n.if \\bitdepth > 8\n        sub             x0, x0, #8\n.else\n        sub             x0, x0, #4\n.endif\n.else\n        sub             x0, x0, x1, lsl #2 // -4 * xstride\n.endif\n        mov             x10, x0\n.if \\bitdepth > 8\n        ld1             {v0.8h}, [x0], x1\n        ld1             {v1.8h}, [x0], x1\n        ld1             {v2.8h}, [x0], x1\n        ld1             {v3.8h}, [x0], x1\n        ld1             {v4.8h}, [x0], x1\n        ld1             {v5.8h}, [x0], x1\n        ld1             {v6.8h}, [x0], x1\n        ld1             {v7.8h}, [x0]\n        mov             w14, #((1 << \\bitdepth) - 1)\n.ifc \\dir, v\n        transpose_8x8H  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n.else\n        ld1             {v0.8b}, [x0], x1\n        ld1             {v1.8b}, [x0], x1\n        ld1             {v2.8b}, [x0], x1\n        ld1             {v3.8b}, [x0], x1\n        ld1             {v4.8b}, [x0], x1\n        ld1             {v5.8b}, [x0], x1\n        ld1             {v6.8b}, [x0], x1\n        ld1             {v7.8b}, [x0]\n.ifc \\dir, v\n        transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n.endif\n        bl              hevc_loop_filter_luma_body_\\bitdepth\\()_neon\n.if \\bitdepth > 8\n.ifc \\dir, v\n        transpose_8x8H  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n        st1             {v0.8h}, [x10], x1\n        st1             {v1.8h}, [x10], x1\n        st1             {v2.8h}, [x10], x1\n        st1             {v3.8h}, [x10], x1\n        st1             {v4.8h}, [x10], x1\n        st1             {v5.8h}, [x10], x1\n        st1             {v6.8h}, [x10], x1\n        st1             {v7.8h}, [x10]\n.else\n.ifc \\dir, v\n        transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "570052cd2a38200ae6aca52e817517513812ec56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/570052cd2a38200ae6aca52e817517513812ec56/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:15", "text": "transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n.endif\n        bl              hevc_loop_filter_luma_body_\\bitdepth\\()_neon\n.if \\bitdepth > 8\n.ifc \\dir, v\n        transpose_8x8H  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n        st1             {v0.8h}, [x10], x1\n        st1             {v1.8h}, [x10], x1\n        st1             {v2.8h}, [x10], x1\n        st1             {v3.8h}, [x10], x1\n        st1             {v4.8h}, [x10], x1\n        st1             {v5.8h}, [x10], x1\n        st1             {v6.8h}, [x10], x1\n        st1             {v7.8h}, [x10]\n.else\n.ifc \\dir, v\n        transpose_8x8B  v0, v1, v2, v3, v4, v5, v6, v7, v16, v17\n.endif\n        st1             {v0.8b}, [x10], x1\n        st1             {v1.8b}, [x10], x1\n        st1             {v2.8b}, [x10], x1\n        st1             {v3.8b}, [x10], x1\n        st1             {v4.8b}, [x10], x1\n        st1             {v5.8b}, [x10], x1\n        st1             {v6.8b}, [x10], x1\n        st1             {v7.8b}, [x10]\n.endif\n        ret             x6\nendfunc\n.endm\n\nhevc_loop_filter_luma h, 8\nhevc_loop_filter_luma h, 10\nhevc_loop_filter_luma h, 12\n\nhevc_loop_filter_luma v, 8\nhevc_loop_filter_luma v, 10\nhevc_loop_filter_luma v, 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "570052cd2a38200ae6aca52e817517513812ec56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/570052cd2a38200ae6aca52e817517513812ec56/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 561, "line_end": 600}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_deblock_neon.S:5", "text": "st1             {v3.d}[1], [x3]\n.else\n        transpose_4x8B  v0, v1, v2, v3, v28, v29, v30, v31\n        st1             {v0.s}[0], [x0], x1\n        st1             {v1.s}[0], [x3], x1\n        st1             {v2.s}[0], [x0], x1\n        st1             {v3.s}[0], [x3], x1\n        st1             {v0.s}[1], [x0], x1\n        st1             {v1.s}[1], [x3], x1\n        st1             {v2.s}[1], [x0], x1\n        st1             {v3.s}[1], [x3]\n.endif\n1:      ret             x4\nendfunc\n.endm\n\nhevc_h_loop_filter_chroma 8\nhevc_h_loop_filter_chroma 10\nhevc_h_loop_filter_chroma 12\n\nhevc_v_loop_filter_chroma 8\nhevc_v_loop_filter_chroma 10\nhevc_v_loop_filter_chroma 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_deblock_neon.S", "line_start": 161, "line_end": 183}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:2", "text": "// 32x32      | 5         | 2     | srshr #2\n\n// void ff_hevc_dequant_4x4_8_neon(int16_t *coeffs)\n// 4x4 = 16 coeffs, shift=5\nfunction ff_hevc_dequant_4x4_8_neon, export=1\n        ldp             q0, q1, [x0]            // load 16 int16_t (32 bytes)\n        srshr           v0.8h, v0.8h, #5        // rounding shift right by 5\n        srshr           v1.8h, v1.8h, #5\n        stp             q0, q1, [x0]            // store\n        ret\nendfunc\n\n// void ff_hevc_dequant_8x8_8_neon(int16_t *coeffs)\n// 8x8 = 64 coeffs, shift=4\n// Fully unrolled - no loop needed for 64 coeffs\nfunction ff_hevc_dequant_8x8_8_neon, export=1\n        ld1             {v0.16b-v3.16b}, [x0], #64\n        ld1             {v4.16b-v7.16b}, [x0]\n        sub             x0, x0, #64\n        srshr           v0.8h, v0.8h, #4\n        srshr           v1.8h, v1.8h, #4\n        srshr           v2.8h, v2.8h, #4\n        srshr           v3.8h, v3.8h, #4\n        srshr           v4.8h, v4.8h, #4\n        srshr           v5.8h, v5.8h, #4\n        srshr           v6.8h, v6.8h, #4\n        srshr           v7.8h, v7.8h, #4\n        st1             {v0.16b-v3.16b}, [x0], #64\n        st1             {v4.16b-v7.16b}, [x0]\n        ret\nendfunc\n\n// void ff_hevc_dequant_16x16_8_neon(int16_t *coeffs)\n// 16x16 = 256 coeffs, shift=3\n// Pipelined implementation: interleave load/compute/store to hide memory latency\n// Uses .irp macro to unroll 4 iterations, processing 64 coeffs per iteration\n// x0 = load pointer, x1 = store pointer (both advance through the buffer)\nfunction ff_hevc_dequant_16x16_8_neon, export=1\n        mov             x1, x0\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.irp i, 0, 1, 2, 3\n        srshr           v0.8h, v0.8h, #3\n        srshr           v1.8h, v1.8h, #3\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0], #64\n        srshr           v2.8h, v2.8h, #3\n        srshr           v3.8h, v3.8h, #3\n        srshr           v4.8h, v4.8h, #3\n        srshr           v5.8h, v5.8h, #3\n        st1             {v0.16b - v3.16b}, [x1], #64\n        srshr           v6.8h, v6.8h, #3\n.if \\i < 3\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.endif\n        srshr           v7.8h, v7.8h, #3\n        st1             {v4.16b - v7.16b}, [x1], #64\n.endr\n        ret\nendfunc\n\n// void ff_hevc_dequant_32x32_8_neon(int16_t *coeffs)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:3", "text": ".irp i, 0, 1, 2, 3\n        srshr           v0.8h, v0.8h, #3\n        srshr           v1.8h, v1.8h, #3\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0], #64\n        srshr           v2.8h, v2.8h, #3\n        srshr           v3.8h, v3.8h, #3\n        srshr           v4.8h, v4.8h, #3\n        srshr           v5.8h, v5.8h, #3\n        st1             {v0.16b - v3.16b}, [x1], #64\n        srshr           v6.8h, v6.8h, #3\n.if \\i < 3\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.endif\n        srshr           v7.8h, v7.8h, #3\n        st1             {v4.16b - v7.16b}, [x1], #64\n.endr\n        ret\nendfunc\n\n// void ff_hevc_dequant_32x32_8_neon(int16_t *coeffs)\n// 32x32 = 1024 coeffs, shift=2\n// Process 128 coeffs per iteration (8 iterations)\n// Using all available NEON registers for maximum throughput\n// AAPCS64: v0-v7 and v16-v31 are volatile (caller-saved)\n// We use v0-v7 and v16-v23 to avoid touching callee-saved v8-v15\nfunction ff_hevc_dequant_32x32_8_neon, export=1\n        mov             x2, #8                     // loop 8 times (128 coeffs each)\n1:\n        // Group A: q0-q3 (64 bytes / 32 coeffs)\n        ldp             q0, q1, [x0]\n        ldp             q2, q3, [x0, #32]\n        // Group B: q4-q7 (64 bytes / 32 coeffs)\n        ldp             q4, q5, [x0, #64]\n        ldp             q6, q7, [x0, #96]\n        subs            x2, x2, #1                 // Decrement loop counter early for better pipelining\n\n        // Calc Group A (shift right with rounding)\n        srshr           v0.8h, v0.8h, #2\n        srshr           v1.8h, v1.8h, #2\n        srshr           v2.8h, v2.8h, #2\n        srshr           v3.8h, v3.8h, #2\n\n        // Group C: q16-q19 (64 bytes / 32 coeffs)\n        // Load into volatile high registers to maximize pipeline usage\n        ldp             q16, q17, [x0, #128]\n        ldp             q18, q19, [x0, #160]\n\n        // Calc Group B\n        srshr           v4.8h, v4.8h, #2\n        srshr           v5.8h, v5.8h, #2\n        srshr           v6.8h, v6.8h, #2\n        srshr           v7.8h, v7.8h, #2\n\n        // Store Group A (Write back results to memory)\n        stp             q0, q1, [x0]\n        stp             q2, q3, [x0, #32]\n\n        // Group D: q20-q23 (64 bytes / 32 coeffs)\n        ldp             q20, q21, [x0, #192]\n        ldp             q22, q23, [x0, #224]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:4", "text": "srshr           v3.8h, v3.8h, #2\n\n        // Group C: q16-q19 (64 bytes / 32 coeffs)\n        // Load into volatile high registers to maximize pipeline usage\n        ldp             q16, q17, [x0, #128]\n        ldp             q18, q19, [x0, #160]\n\n        // Calc Group B\n        srshr           v4.8h, v4.8h, #2\n        srshr           v5.8h, v5.8h, #2\n        srshr           v6.8h, v6.8h, #2\n        srshr           v7.8h, v7.8h, #2\n\n        // Store Group A (Write back results to memory)\n        stp             q0, q1, [x0]\n        stp             q2, q3, [x0, #32]\n\n        // Group D: q20-q23 (64 bytes / 32 coeffs)\n        ldp             q20, q21, [x0, #192]\n        ldp             q22, q23, [x0, #224]\n\n        // Calc Group C\n        srshr           v16.8h, v16.8h, #2\n        srshr           v17.8h, v17.8h, #2\n        srshr           v18.8h, v18.8h, #2\n        srshr           v19.8h, v19.8h, #2\n\n        // Store Group B\n        stp             q4, q5, [x0, #64]\n        stp             q6, q7, [x0, #96]\n\n        // Calc Group D\n        srshr           v20.8h, v20.8h, #2\n        srshr           v21.8h, v21.8h, #2\n        srshr           v22.8h, v22.8h, #2\n        srshr           v23.8h, v23.8h, #2\n\n        // Store Group C\n        stp             q16, q17, [x0, #128]\n        stp             q18, q19, [x0, #160]\n\n        // Store Group D\n        stp             q20, q21, [x0, #192]\n        stp             q22, q23, [x0, #224]\n\n        add             x0, x0, #256           // Advance pointer by 128 coeffs (256 bytes)\n        b.ne            1b\n        ret\nendfunc\n\n// --------------------------------------------------------------------------\n// HEVC dequant for 10-bit depth\n//\n// For 10-bit: shift = 15 - 10 - log2_size = 5 - log2_size\n//\n// Block size | log2_size | shift | operation\n// 4x4        | 2         | 3     | srshr #3\n// 8x8        | 3         | 2     | srshr #2\n// 16x16      | 4         | 1     | srshr #1\n// 32x32      | 5         | 0     | no-op (identity)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:5", "text": "// Store Group D\n        stp             q20, q21, [x0, #192]\n        stp             q22, q23, [x0, #224]\n\n        add             x0, x0, #256           // Advance pointer by 128 coeffs (256 bytes)\n        b.ne            1b\n        ret\nendfunc\n\n// --------------------------------------------------------------------------\n// HEVC dequant for 10-bit depth\n//\n// For 10-bit: shift = 15 - 10 - log2_size = 5 - log2_size\n//\n// Block size | log2_size | shift | operation\n// 4x4        | 2         | 3     | srshr #3\n// 8x8        | 3         | 2     | srshr #2\n// 16x16      | 4         | 1     | srshr #1\n// 32x32      | 5         | 0     | no-op (identity)\n// --------------------------------------------------------------------------\n\n// void ff_hevc_dequant_4x4_10_neon(int16_t *coeffs)\n// 4x4 = 16 coeffs, shift=3\nfunction ff_hevc_dequant_4x4_10_neon, export=1\n        ldp             q0, q1, [x0]\n        srshr           v0.8h, v0.8h, #3\n        srshr           v1.8h, v1.8h, #3\n        stp             q0, q1, [x0]\n        ret\nendfunc\n\n// void ff_hevc_dequant_8x8_10_neon(int16_t *coeffs)\n// 8x8 = 64 coeffs, shift=2\n// Fully unrolled - no loop needed for 64 coeffs\nfunction ff_hevc_dequant_8x8_10_neon, export=1\n        ld1             {v0.16b-v3.16b}, [x0], #64\n        ld1             {v4.16b-v7.16b}, [x0]\n        sub             x0, x0, #64\n        srshr           v0.8h, v0.8h, #2\n        srshr           v1.8h, v1.8h, #2\n        srshr           v2.8h, v2.8h, #2\n        srshr           v3.8h, v3.8h, #2\n        srshr           v4.8h, v4.8h, #2\n        srshr           v5.8h, v5.8h, #2\n        srshr           v6.8h, v6.8h, #2\n        srshr           v7.8h, v7.8h, #2\n        st1             {v0.16b-v3.16b}, [x0], #64\n        st1             {v4.16b-v7.16b}, [x0]\n        ret\nendfunc\n\n// void ff_hevc_dequant_16x16_10_neon(int16_t *coeffs)\n// 16x16 = 256 coeffs, shift=1\n// Pipelined implementation: interleave load/compute/store to hide memory latency\n// Uses .irp macro to unroll 4 iterations, processing 64 coeffs per iteration\n// x0 = load pointer, x1 = store pointer (both advance through the buffer)\nfunction ff_hevc_dequant_16x16_10_neon, export=1\n        mov             x1, x0\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:6", "text": "srshr           v1.8h, v1.8h, #2\n        srshr           v2.8h, v2.8h, #2\n        srshr           v3.8h, v3.8h, #2\n        srshr           v4.8h, v4.8h, #2\n        srshr           v5.8h, v5.8h, #2\n        srshr           v6.8h, v6.8h, #2\n        srshr           v7.8h, v7.8h, #2\n        st1             {v0.16b-v3.16b}, [x0], #64\n        st1             {v4.16b-v7.16b}, [x0]\n        ret\nendfunc\n\n// void ff_hevc_dequant_16x16_10_neon(int16_t *coeffs)\n// 16x16 = 256 coeffs, shift=1\n// Pipelined implementation: interleave load/compute/store to hide memory latency\n// Uses .irp macro to unroll 4 iterations, processing 64 coeffs per iteration\n// x0 = load pointer, x1 = store pointer (both advance through the buffer)\nfunction ff_hevc_dequant_16x16_10_neon, export=1\n        mov             x1, x0\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.irp i, 0, 1, 2, 3\n        srshr           v0.8h, v0.8h, #1\n        srshr           v1.8h, v1.8h, #1\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0], #64\n        srshr           v2.8h, v2.8h, #1\n        srshr           v3.8h, v3.8h, #1\n        srshr           v4.8h, v4.8h, #1\n        srshr           v5.8h, v5.8h, #1\n        st1             {v0.16b - v3.16b}, [x1], #64\n        srshr           v6.8h, v6.8h, #1\n.if \\i < 3\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.endif\n        srshr           v7.8h, v7.8h, #1\n        st1             {v4.16b - v7.16b}, [x1], #64\n.endr\n        ret\nendfunc\n\n// void ff_hevc_dequant_32x32_10_neon(int16_t *coeffs)\n// 32x32 = 1024 coeffs, shift=0\n// When shift=0: output = (input + 0) >> 0 = input (identity transform)\n// No operation needed - just return immediately\nfunction ff_hevc_dequant_32x32_10_neon, export=1\n        ret\nendfunc\n\n// --------------------------------------------------------------------------\n// HEVC dequant for 12-bit depth\n//\n// For 12-bit: shift = 15 - 12 - log2_size = 3 - log2_size\n//\n// Block size | log2_size | shift | operation\n// 4x4        | 2         | 1     | srshr #1 (shift right)\n// 8x8        | 3         | 0     | no-op (identity)\n// 16x16      | 4         | -1    | shl #1 (shift left)\n// 32x32      | 5         | -2    | shl #2 (shift left)\n// --------------------------------------------------------------------------\n\n// void ff_hevc_dequant_4x4_12_neon(int16_t *coeffs)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:7", "text": "// 32x32 = 1024 coeffs, shift=0\n// When shift=0: output = (input + 0) >> 0 = input (identity transform)\n// No operation needed - just return immediately\nfunction ff_hevc_dequant_32x32_10_neon, export=1\n        ret\nendfunc\n\n// --------------------------------------------------------------------------\n// HEVC dequant for 12-bit depth\n//\n// For 12-bit: shift = 15 - 12 - log2_size = 3 - log2_size\n//\n// Block size | log2_size | shift | operation\n// 4x4        | 2         | 1     | srshr #1 (shift right)\n// 8x8        | 3         | 0     | no-op (identity)\n// 16x16      | 4         | -1    | shl #1 (shift left)\n// 32x32      | 5         | -2    | shl #2 (shift left)\n// --------------------------------------------------------------------------\n\n// void ff_hevc_dequant_4x4_12_neon(int16_t *coeffs)\n// 4x4 = 16 coeffs, shift=1\nfunction ff_hevc_dequant_4x4_12_neon, export=1\n        ldp             q0, q1, [x0]\n        srshr           v0.8h, v0.8h, #1\n        srshr           v1.8h, v1.8h, #1\n        stp             q0, q1, [x0]\n        ret\nendfunc\n\n// void ff_hevc_dequant_8x8_12_neon(int16_t *coeffs)\n// 8x8 = 64 coeffs, shift=0\n// When shift=0: output = input (identity transform)\n// No operation needed - just return immediately\nfunction ff_hevc_dequant_8x8_12_neon, export=1\n        ret\nendfunc\n\n// void ff_hevc_dequant_16x16_12_neon(int16_t *coeffs)\n// 16x16 = 256 coeffs, shift=-1 (left shift by 1)\n// Pipelined implementation: interleave load/compute/store to hide memory latency\n// Uses .irp macro to unroll 4 iterations, processing 64 coeffs per iteration\n// x0 = load pointer, x1 = store pointer (both advance through the buffer)\nfunction ff_hevc_dequant_16x16_12_neon, export=1\n        mov             x1, x0\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.irp i, 0, 1, 2, 3\n        shl             v0.8h, v0.8h, #1\n        shl             v1.8h, v1.8h, #1\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0], #64\n        shl             v2.8h, v2.8h, #1\n        shl             v3.8h, v3.8h, #1\n        shl             v4.8h, v4.8h, #1\n        shl             v5.8h, v5.8h, #1\n        st1             {v0.16b - v3.16b}, [x1], #64\n        shl             v6.8h, v6.8h, #1\n.if \\i < 3\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.endif\n        shl             v7.8h, v7.8h, #1\n        st1             {v4.16b - v7.16b}, [x1], #64", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:8", "text": "// Uses .irp macro to unroll 4 iterations, processing 64 coeffs per iteration\n// x0 = load pointer, x1 = store pointer (both advance through the buffer)\nfunction ff_hevc_dequant_16x16_12_neon, export=1\n        mov             x1, x0\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.irp i, 0, 1, 2, 3\n        shl             v0.8h, v0.8h, #1\n        shl             v1.8h, v1.8h, #1\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0], #64\n        shl             v2.8h, v2.8h, #1\n        shl             v3.8h, v3.8h, #1\n        shl             v4.8h, v4.8h, #1\n        shl             v5.8h, v5.8h, #1\n        st1             {v0.16b - v3.16b}, [x1], #64\n        shl             v6.8h, v6.8h, #1\n.if \\i < 3\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.endif\n        shl             v7.8h, v7.8h, #1\n        st1             {v4.16b - v7.16b}, [x1], #64\n.endr\n        ret\nendfunc\n\n// void ff_hevc_dequant_32x32_12_neon(int16_t *coeffs)\n// 32x32 = 1024 coeffs, shift=-2 (left shift by 2)\n// Process 128 coeffs per iteration (8 iterations)\n// Using pipelined load/compute/store for better performance\nfunction ff_hevc_dequant_32x32_12_neon, export=1\n        mov             x2, #8\n1:\n        // Group A: q0-q3 (64 bytes / 32 coeffs)\n        ldp             q0, q1, [x0]\n        ldp             q2, q3, [x0, #32]\n        // Group B: q4-q7 (64 bytes / 32 coeffs)\n        ldp             q4, q5, [x0, #64]\n        ldp             q6, q7, [x0, #96]\n        subs            x2, x2, #1                 // Decrement loop counter early for better pipelining\n\n        // Calc Group A (shift left by 2)\n        shl             v0.8h, v0.8h, #2\n        shl             v1.8h, v1.8h, #2\n        shl             v2.8h, v2.8h, #2\n        shl             v3.8h, v3.8h, #2\n\n        // Group C: q16-q19 (64 bytes / 32 coeffs)\n        ldp             q16, q17, [x0, #128]\n        ldp             q18, q19, [x0, #160]\n\n        // Calc Group B\n        shl             v4.8h, v4.8h, #2\n        shl             v5.8h, v5.8h, #2\n        shl             v6.8h, v6.8h, #2\n        shl             v7.8h, v7.8h, #2\n\n        // Store Group A\n        stp             q0, q1, [x0]\n        stp             q2, q3, [x0, #32]\n\n        // Group D: q20-q23 (64 bytes / 32 coeffs)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:9", "text": "shl             v0.8h, v0.8h, #2\n        shl             v1.8h, v1.8h, #2\n        shl             v2.8h, v2.8h, #2\n        shl             v3.8h, v3.8h, #2\n\n        // Group C: q16-q19 (64 bytes / 32 coeffs)\n        ldp             q16, q17, [x0, #128]\n        ldp             q18, q19, [x0, #160]\n\n        // Calc Group B\n        shl             v4.8h, v4.8h, #2\n        shl             v5.8h, v5.8h, #2\n        shl             v6.8h, v6.8h, #2\n        shl             v7.8h, v7.8h, #2\n\n        // Store Group A\n        stp             q0, q1, [x0]\n        stp             q2, q3, [x0, #32]\n\n        // Group D: q20-q23 (64 bytes / 32 coeffs)\n        ldp             q20, q21, [x0, #192]\n        ldp             q22, q23, [x0, #224]\n\n        // Calc Group C\n        shl             v16.8h, v16.8h, #2\n        shl             v17.8h, v17.8h, #2\n        shl             v18.8h, v18.8h, #2\n        shl             v19.8h, v19.8h, #2\n\n        // Store Group B\n        stp             q4, q5, [x0, #64]\n        stp             q6, q7, [x0, #96]\n\n        // Calc Group D\n        shl             v20.8h, v20.8h, #2\n        shl             v21.8h, v21.8h, #2\n        shl             v22.8h, v22.8h, #2\n        shl             v23.8h, v23.8h, #2\n\n        // Store Group C\n        stp             q16, q17, [x0, #128]\n        stp             q18, q19, [x0, #160]\n\n        // Store Group D\n        stp             q20, q21, [x0, #192]\n        stp             q22, q23, [x0, #224]\n\n        add             x0, x0, #256\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 321, "line_end": 371}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:10", "text": "stp             q16, q17, [x0, #128]\n        stp             q18, q19, [x0, #160]\n\n        // Store Group D\n        stp             q20, q21, [x0, #192]\n        stp             q22, q23, [x0, #224]\n\n        add             x0, x0, #256\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 361, "line_end": 371}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:6", "text": "srshr           v1.8h, v1.8h, #2\n        srshr           v2.8h, v2.8h, #2\n        srshr           v3.8h, v3.8h, #2\n        srshr           v4.8h, v4.8h, #2\n        srshr           v5.8h, v5.8h, #2\n        srshr           v6.8h, v6.8h, #2\n        srshr           v7.8h, v7.8h, #2\n        st1             {v0.16b-v3.16b}, [x0], #64\n        st1             {v4.16b-v7.16b}, [x0]\n        ret\nendfunc\n\n// void ff_hevc_dequant_16x16_10_neon(int16_t *coeffs)\n// 16x16 = 256 coeffs, shift=1\n// Pipelined implementation: interleave load/compute/store to hide memory latency\n// Uses .irp macro to unroll 4 iterations, processing 64 coeffs per iteration\n// x0 = load pointer, x1 = store pointer (both advance through the buffer)\nfunction ff_hevc_dequant_16x16_10_neon, export=1\n        mov             x1, x0\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.irp i, 0, 1, 2, 3\n        srshr           v0.8h, v0.8h, #1\n        srshr           v1.8h, v1.8h, #1\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0], #64\n        srshr           v2.8h, v2.8h, #1\n        srshr           v3.8h, v3.8h, #1\n        srshr           v4.8h, v4.8h, #1\n        srshr           v5.8h, v5.8h, #1\n        st1             {v0.16b - v3.16b}, [x1], #64\n        srshr           v6.8h, v6.8h, #1\n.if \\i < 3\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n.endif\n        srshr           v7.8h, v7.8h, #1\n        st1             {v4.16b - v7.16b}, [x1], #64\n.endr\n        ret\nendfunc\n\n// void ff_hevc_dequant_32x32_10_neon(int16_t *coeffs)\n// 32x32 = 1024 coeffs, shift=0\n// When shift=0: output = (input + 0) >> 0 = input (identity transform)\n// No operation needed - just return immediately\nfunction ff_hevc_dequant_32x32_10_neon, export=1\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "ce89d974c8764002f127829dc0ecf43725994ff0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce89d974c8764002f127829dc0ecf43725994ff0/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 201, "line_end": 246}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_dequant_neon.S:4", "text": "srshr           v3.8h, v3.8h, #2\n\n        // Group C: q16-q19 (64 bytes / 32 coeffs)\n        // Load into volatile high registers to maximize pipeline usage\n        ldp             q16, q17, [x0, #128]\n        ldp             q18, q19, [x0, #160]\n\n        // Calc Group B\n        srshr           v4.8h, v4.8h, #2\n        srshr           v5.8h, v5.8h, #2\n        srshr           v6.8h, v6.8h, #2\n        srshr           v7.8h, v7.8h, #2\n\n        // Store Group A (Write back results to memory)\n        stp             q0, q1, [x0]\n        stp             q2, q3, [x0, #32]\n\n        // Group D: q20-q23 (64 bytes / 32 coeffs)\n        ldp             q20, q21, [x0, #192]\n        ldp             q22, q23, [x0, #224]\n\n        // Calc Group C\n        srshr           v16.8h, v16.8h, #2\n        srshr           v17.8h, v17.8h, #2\n        srshr           v18.8h, v18.8h, #2\n        srshr           v19.8h, v19.8h, #2\n\n        // Store Group B\n        stp             q4, q5, [x0, #64]\n        stp             q6, q7, [x0, #96]\n\n        // Calc Group D\n        srshr           v20.8h, v20.8h, #2\n        srshr           v21.8h, v21.8h, #2\n        srshr           v22.8h, v22.8h, #2\n        srshr           v23.8h, v23.8h, #2\n\n        // Store Group C\n        stp             q16, q17, [x0, #128]\n        stp             q18, q19, [x0, #160]\n\n        // Store Group D\n        stp             q20, q21, [x0, #192]\n        stp             q22, q23, [x0, #224]\n\n        add             x0, x0, #256           // Advance pointer by 128 coeffs (256 bytes)\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_dequant_neon.S", "license": "LGPL-2.1", "commit": "0886e50c6b8e812d14ed7acd329684251efbf69e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0886e50c6b8e812d14ed7acd329684251efbf69e/libavcodec/aarch64/hevcdsp_dequant_neon.S", "line_start": 121, "line_end": 169}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:1", "text": "/*\n * ARM NEON optimised IDCT functions for HEVC decoding\n * Copyright (c) 2014 Seppo Tomperi <seppo.tomperi@vtt.fi>\n * Copyright (c) 2017 Alexandra Hájková\n *\n * Ported from arm/hevcdsp_idct_neon.S by\n * Copyright (c) 2020 Reimar Döffinger\n * Copyright (c) 2023 J. Dekker <jdek@itanimul.li>\n * Copyright (c) 2023 xu fulong <839789740@qq.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n#include \"neon.S\"\n\nconst trans, align=4\n        .short          64, 83, 64, 36\n        .short          89, 75, 50, 18\n        .short          90, 87, 80, 70\n        .short          57, 43, 25, 9\n        .short          90, 90, 88, 85\n        .short          82, 78, 73, 67\n        .short          61, 54, 46, 38\n        .short          31, 22, 13, 4\nendconst\n\nfunction ff_hevc_add_residual_4x4_8_neon, export=1\n        ld1             {v0.8h-v1.8h}, [x1]\n        ld1             {v2.s}[0], [x0], x2\n        ld1             {v2.s}[1], [x0], x2\n        ld1             {v2.s}[2], [x0], x2\n        ld1             {v2.s}[3], [x0], x2\n        sub             x0, x0, x2, lsl #2\n        uxtl            v6.8h,  v2.8b\n        uxtl2           v7.8h,  v2.16b\n        sqadd           v0.8h,  v0.8h, v6.8h\n        sqadd           v1.8h,  v1.8h, v7.8h\n        sqxtun          v0.8b,  v0.8h\n        sqxtun2         v0.16b, v1.8h\n        st1             {v0.s}[0], [x0], x2\n        st1             {v0.s}[1], [x0], x2\n        st1             {v0.s}[2], [x0], x2\n        st1             {v0.s}[3], [x0], x2\n        ret\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:2", "text": "function ff_hevc_add_residual_4x4_8_neon, export=1\n        ld1             {v0.8h-v1.8h}, [x1]\n        ld1             {v2.s}[0], [x0], x2\n        ld1             {v2.s}[1], [x0], x2\n        ld1             {v2.s}[2], [x0], x2\n        ld1             {v2.s}[3], [x0], x2\n        sub             x0, x0, x2, lsl #2\n        uxtl            v6.8h,  v2.8b\n        uxtl2           v7.8h,  v2.16b\n        sqadd           v0.8h,  v0.8h, v6.8h\n        sqadd           v1.8h,  v1.8h, v7.8h\n        sqxtun          v0.8b,  v0.8h\n        sqxtun2         v0.16b, v1.8h\n        st1             {v0.s}[0], [x0], x2\n        st1             {v0.s}[1], [x0], x2\n        st1             {v0.s}[2], [x0], x2\n        st1             {v0.s}[3], [x0], x2\n        ret\nendfunc\n\nfunction ff_hevc_add_residual_8x8_8_neon, export=1\n        add             x12, x0, x2\n        add             x2, x2, x2\n        mov             x3, #8\n1:      subs            x3, x3, #2\n        ld1             {v2.d}[0], [x0]\n        ld1             {v2.d}[1], [x12]\n        uxtl            v3.8h,  v2.8b\n        ld1             {v0.8h-v1.8h}, [x1], #32\n        uxtl2           v2.8h,  v2.16b\n        sqadd           v0.8h,  v0.8h, v3.8h\n        sqadd           v1.8h,  v1.8h, v2.8h\n        sqxtun          v0.8b,  v0.8h\n        sqxtun2         v0.16b, v1.8h\n        st1             {v0.d}[0], [x0],  x2\n        st1             {v0.d}[1], [x12], x2\n        bne             1b\n        ret\nendfunc\n\nfunction ff_hevc_add_residual_16x16_8_neon, export=1\n        mov             x3,  #16\n        add             x12, x0, x2\n        add             x2,  x2, x2\n1:      subs            x3,  x3, #2\n        ld1             {v16.16b},     [x0]\n        ld1             {v0.8h-v3.8h}, [x1], #64\n        ld1             {v19.16b},    [x12]\n        uxtl            v17.8h, v16.8b\n        uxtl2           v18.8h, v16.16b\n        uxtl            v20.8h, v19.8b\n        uxtl2           v21.8h, v19.16b\n        sqadd           v0.8h,  v0.8h, v17.8h\n        sqadd           v1.8h,  v1.8h, v18.8h\n        sqadd           v2.8h,  v2.8h, v20.8h\n        sqadd           v3.8h,  v3.8h, v21.8h\n        sqxtun          v0.8b,  v0.8h\n        sqxtun2         v0.16b,  v1.8h\n        sqxtun          v1.8b,  v2.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:3", "text": "function ff_hevc_add_residual_16x16_8_neon, export=1\n        mov             x3,  #16\n        add             x12, x0, x2\n        add             x2,  x2, x2\n1:      subs            x3,  x3, #2\n        ld1             {v16.16b},     [x0]\n        ld1             {v0.8h-v3.8h}, [x1], #64\n        ld1             {v19.16b},    [x12]\n        uxtl            v17.8h, v16.8b\n        uxtl2           v18.8h, v16.16b\n        uxtl            v20.8h, v19.8b\n        uxtl2           v21.8h, v19.16b\n        sqadd           v0.8h,  v0.8h, v17.8h\n        sqadd           v1.8h,  v1.8h, v18.8h\n        sqadd           v2.8h,  v2.8h, v20.8h\n        sqadd           v3.8h,  v3.8h, v21.8h\n        sqxtun          v0.8b,  v0.8h\n        sqxtun2         v0.16b,  v1.8h\n        sqxtun          v1.8b,  v2.8h\n        sqxtun2         v1.16b,  v3.8h\n        st1             {v0.16b},     [x0], x2\n        st1             {v1.16b},    [x12], x2\n        bne             1b\n        ret\nendfunc\n\nfunction ff_hevc_add_residual_32x32_8_neon, export=1\n        add             x12,  x0, x2\n        add             x2,  x2, x2\n        mov             x3,  #32\n1:      subs            x3,  x3, #2\n        ld1             {v20.16b, v21.16b}, [x0]\n        uxtl            v16.8h,  v20.8b\n        uxtl2           v17.8h,  v20.16b\n        ld1             {v22.16b, v23.16b}, [x12]\n        uxtl            v18.8h,  v21.8b\n        uxtl2           v19.8h,  v21.16b\n        uxtl            v20.8h,  v22.8b\n        ld1             {v0.8h-v3.8h}, [x1], #64\n        ld1             {v4.8h-v7.8h}, [x1], #64\n        uxtl2           v21.8h,  v22.16b\n        uxtl            v22.8h,  v23.8b\n        uxtl2           v23.8h,  v23.16b\n        sqadd           v0.8h,   v0.8h,   v16.8h\n        sqadd           v1.8h,   v1.8h,   v17.8h\n        sqadd           v2.8h,   v2.8h,   v18.8h\n        sqadd           v3.8h,   v3.8h,   v19.8h\n        sqadd           v4.8h,   v4.8h,   v20.8h\n        sqadd           v5.8h,   v5.8h,   v21.8h\n        sqadd           v6.8h,   v6.8h,   v22.8h\n        sqadd           v7.8h,   v7.8h,   v23.8h\n        sqxtun          v0.8b,   v0.8h\n        sqxtun2         v0.16b,  v1.8h\n        sqxtun          v1.8b,   v2.8h\n        sqxtun2         v1.16b,  v3.8h\n        sqxtun          v2.8b,   v4.8h\n        sqxtun2         v2.16b,  v5.8h\n        st1             {v0.16b, v1.16b}, [x0],  x2\n        sqxtun          v3.8b,   v6.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:4", "text": "ld1             {v4.8h-v7.8h}, [x1], #64\n        uxtl2           v21.8h,  v22.16b\n        uxtl            v22.8h,  v23.8b\n        uxtl2           v23.8h,  v23.16b\n        sqadd           v0.8h,   v0.8h,   v16.8h\n        sqadd           v1.8h,   v1.8h,   v17.8h\n        sqadd           v2.8h,   v2.8h,   v18.8h\n        sqadd           v3.8h,   v3.8h,   v19.8h\n        sqadd           v4.8h,   v4.8h,   v20.8h\n        sqadd           v5.8h,   v5.8h,   v21.8h\n        sqadd           v6.8h,   v6.8h,   v22.8h\n        sqadd           v7.8h,   v7.8h,   v23.8h\n        sqxtun          v0.8b,   v0.8h\n        sqxtun2         v0.16b,  v1.8h\n        sqxtun          v1.8b,   v2.8h\n        sqxtun2         v1.16b,  v3.8h\n        sqxtun          v2.8b,   v4.8h\n        sqxtun2         v2.16b,  v5.8h\n        st1             {v0.16b, v1.16b}, [x0],  x2\n        sqxtun          v3.8b,   v6.8h\n        sqxtun2         v3.16b,  v7.8h\n        st1             {v2.16b, v3.16b}, [x12], x2\n        bne             1b\n        ret\nendfunc\n\n.macro add_res bitdepth\nfunction ff_hevc_add_residual_4x4_\\bitdepth\\()_neon, export=1\n        mvni            v21.8h, #((0xFF << (\\bitdepth - 8)) & 0xFF), lsl #8\n        b               hevc_add_residual_4x4_16_neon\nendfunc\nfunction ff_hevc_add_residual_8x8_\\bitdepth\\()_neon, export=1\n        mvni            v21.8h, #((0xFF << (\\bitdepth - 8)) & 0xFF), lsl #8\n        b               hevc_add_residual_8x8_16_neon\nendfunc\nfunction ff_hevc_add_residual_16x16_\\bitdepth\\()_neon, export=1\n        mvni            v21.8h, #((0xFF << (\\bitdepth - 8)) & 0xFF), lsl #8\n        b               hevc_add_residual_16x16_16_neon\nendfunc\nfunction ff_hevc_add_residual_32x32_\\bitdepth\\()_neon, export=1\n        mvni            v21.8h, #((0xFF << (\\bitdepth - 8)) & 0xFF), lsl #8\n        b               hevc_add_residual_32x32_16_neon\nendfunc\n.endm\n\nadd_res 10\nadd_res 12\n\nfunction hevc_add_residual_4x4_16_neon, export=0\n        mov             x12,  x0\n        ld1             {v0.8h-v1.8h}, [x1]\n        ld1             {v2.d}[0], [x12], x2\n        ld1             {v2.d}[1], [x12], x2\n        ld1             {v3.d}[0], [x12], x2\n        sqadd           v0.8h, v0.8h, v2.8h\n        ld1             {v3.d}[1], [x12], x2\n        movi            v4.8h, #0\n        sqadd           v1.8h, v1.8h, v3.8h\n        clip            v4.8h, v21.8h, v0.8h, v1.8h\n        st1             {v0.d}[0], [x0],  x2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:5", "text": "mvni            v21.8h, #((0xFF << (\\bitdepth - 8)) & 0xFF), lsl #8\n        b               hevc_add_residual_32x32_16_neon\nendfunc\n.endm\n\nadd_res 10\nadd_res 12\n\nfunction hevc_add_residual_4x4_16_neon, export=0\n        mov             x12,  x0\n        ld1             {v0.8h-v1.8h}, [x1]\n        ld1             {v2.d}[0], [x12], x2\n        ld1             {v2.d}[1], [x12], x2\n        ld1             {v3.d}[0], [x12], x2\n        sqadd           v0.8h, v0.8h, v2.8h\n        ld1             {v3.d}[1], [x12], x2\n        movi            v4.8h, #0\n        sqadd           v1.8h, v1.8h, v3.8h\n        clip            v4.8h, v21.8h, v0.8h, v1.8h\n        st1             {v0.d}[0], [x0],  x2\n        st1             {v0.d}[1], [x0],  x2\n        st1             {v1.d}[0], [x0],  x2\n        st1             {v1.d}[1], [x0],  x2\n        ret\nendfunc\n\nfunction hevc_add_residual_8x8_16_neon, export=0\n        add             x12, x0, x2\n        add             x2,  x2, x2\n        mov             x3,  #8\n        movi            v4.8h, #0\n1:      subs            x3,  x3, #2\n        ld1             {v0.8h-v1.8h}, [x1], #32\n        ld1             {v2.8h}, [x0]\n        sqadd           v0.8h, v0.8h, v2.8h\n        ld1             {v3.8h}, [x12]\n        sqadd           v1.8h, v1.8h, v3.8h\n        clip            v4.8h, v21.8h, v0.8h, v1.8h\n        st1             {v0.8h}, [x0],  x2\n        st1             {v1.8h}, [x12], x2\n        bne             1b\n        ret\nendfunc\n\nfunction hevc_add_residual_16x16_16_neon, export=0\n        mov             x3,  #16\n        movi            v20.8h, #0\n        add             x12,  x0, x2\n        add             x2,  x2, x2\n1:      subs            x3,  x3, #2\n        ld1             {v16.8h-v17.8h}, [x0]\n        ld1             {v0.8h-v3.8h},   [x1], #64\n        sqadd           v0.8h, v0.8h, v16.8h\n        ld1             {v18.8h-v19.8h}, [x12]\n        sqadd           v1.8h, v1.8h, v17.8h\n        sqadd           v2.8h, v2.8h, v18.8h\n        sqadd           v3.8h, v3.8h, v19.8h\n        clip            v20.8h, v21.8h, v0.8h, v1.8h, v2.8h, v3.8h\n        st1             {v0.8h-v1.8h}, [x0],  x2\n        st1             {v2.8h-v3.8h}, [x12], x2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:6", "text": "bne             1b\n        ret\nendfunc\n\nfunction hevc_add_residual_16x16_16_neon, export=0\n        mov             x3,  #16\n        movi            v20.8h, #0\n        add             x12,  x0, x2\n        add             x2,  x2, x2\n1:      subs            x3,  x3, #2\n        ld1             {v16.8h-v17.8h}, [x0]\n        ld1             {v0.8h-v3.8h},   [x1], #64\n        sqadd           v0.8h, v0.8h, v16.8h\n        ld1             {v18.8h-v19.8h}, [x12]\n        sqadd           v1.8h, v1.8h, v17.8h\n        sqadd           v2.8h, v2.8h, v18.8h\n        sqadd           v3.8h, v3.8h, v19.8h\n        clip            v20.8h, v21.8h, v0.8h, v1.8h, v2.8h, v3.8h\n        st1             {v0.8h-v1.8h}, [x0],  x2\n        st1             {v2.8h-v3.8h}, [x12], x2\n        bne             1b\n        ret\nendfunc\n\nfunction hevc_add_residual_32x32_16_neon, export=0\n        mov             x3, #32\n        movi            v20.8h, #0\n1:      subs            x3, x3, #1\n        ld1             {v0.8h -v3.8h},  [x1], #64\n        ld1             {v16.8h-v19.8h}, [x0]\n        sqadd           v0.8h, v0.8h, v16.8h\n        sqadd           v1.8h, v1.8h, v17.8h\n        sqadd           v2.8h, v2.8h, v18.8h\n        sqadd           v3.8h, v3.8h, v19.8h\n        clip            v20.8h, v21.8h, v0.8h, v1.8h, v2.8h, v3.8h\n        st1             {v0.8h-v3.8h}, [x0], x2\n        bne             1b\n        ret\nendfunc\n\n.macro tr_4x4 in0, in1, in2, in3, out0, out1, out2, out3, shift\n        sshll           v20.4s, \\in0, #6\n        sshll           v21.4s, \\in0, #6\n        smull           v22.4s, \\in1, v4.h[1]\n        smull           v23.4s, \\in1, v4.h[3]\n        smlal           v20.4s, \\in2, v4.h[0] //e0\n        smlsl           v21.4s, \\in2, v4.h[0] //e1\n        smlal           v22.4s, \\in3, v4.h[3] //o0\n        smlsl           v23.4s, \\in3, v4.h[1] //o1\n\n        add             v24.4s, v20.4s, v22.4s\n        sub             v20.4s, v20.4s, v22.4s\n        add             v22.4s, v21.4s, v23.4s\n        sub             v21.4s, v21.4s, v23.4s\n        sqrshrn         \\out0, v24.4s, #\\shift\n        sqrshrn         \\out3, v20.4s, #\\shift\n        sqrshrn         \\out1, v22.4s, #\\shift\n        sqrshrn         \\out2, v21.4s, #\\shift\n.endm", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:7", "text": ".macro tr_4x4 in0, in1, in2, in3, out0, out1, out2, out3, shift\n        sshll           v20.4s, \\in0, #6\n        sshll           v21.4s, \\in0, #6\n        smull           v22.4s, \\in1, v4.h[1]\n        smull           v23.4s, \\in1, v4.h[3]\n        smlal           v20.4s, \\in2, v4.h[0] //e0\n        smlsl           v21.4s, \\in2, v4.h[0] //e1\n        smlal           v22.4s, \\in3, v4.h[3] //o0\n        smlsl           v23.4s, \\in3, v4.h[1] //o1\n\n        add             v24.4s, v20.4s, v22.4s\n        sub             v20.4s, v20.4s, v22.4s\n        add             v22.4s, v21.4s, v23.4s\n        sub             v21.4s, v21.4s, v23.4s\n        sqrshrn         \\out0, v24.4s, #\\shift\n        sqrshrn         \\out3, v20.4s, #\\shift\n        sqrshrn         \\out1, v22.4s, #\\shift\n        sqrshrn         \\out2, v21.4s, #\\shift\n.endm\n\n.macro idct_4x4 bitdepth\nfunction ff_hevc_idct_4x4_\\bitdepth\\()_neon, export=1\n        ld1             {v0.4h-v3.4h}, [x0]\n\n        movrel          x1, trans\n        ld1             {v4.4h}, [x1]\n\n        tr_4x4          v0.4h, v1.4h, v2.4h, v3.4h, v16.4h, v17.4h, v18.4h, v19.4h, 7\n        transpose_4x8H  v16, v17, v18, v19, v26, v27, v28, v29\n\n        tr_4x4          v16.4h, v17.4h, v18.4h, v19.4h, v0.4h, v1.4h, v2.4h, v3.4h, 20 - \\bitdepth\n        transpose_4x8H  v0, v1, v2, v3, v26, v27, v28, v29\n        st1             {v0.4h-v3.4h}, [x0]\n        ret\nendfunc\n.endm\n\n.macro sum_sub out, in, c, op, p\n  .ifc \\op, +\n        smlal\\p         \\out, \\in, \\c\n  .else\n        smlsl\\p         \\out, \\in, \\c\n  .endif\n.endm\n\n.macro fixsqrshrn d, dt, n, m\n  .ifc \\dt, .8h\n        sqrshrn2        \\d\\dt, \\n\\().4s, \\m\n  .else\n        sqrshrn         \\n\\().4h, \\n\\().4s, \\m\n        mov             \\d\\().d[0], \\n\\().d[0]\n  .endif\n.endm\n\n// uses and clobbers v28-v31 as temp registers\n.macro tr_4x4_8 in0, in1, in2, in3, out0, out1, out2, out3, p1, p2\n        sshll\\p1        v28.4s, \\in0, #6\n        mov             v29.16b, v28.16b\n        smull\\p1        v30.4s, \\in1, v0.h[1]\n        smull\\p1        v31.4s, \\in1, v0.h[3]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:8", "text": ".else\n        smlsl\\p         \\out, \\in, \\c\n  .endif\n.endm\n\n.macro fixsqrshrn d, dt, n, m\n  .ifc \\dt, .8h\n        sqrshrn2        \\d\\dt, \\n\\().4s, \\m\n  .else\n        sqrshrn         \\n\\().4h, \\n\\().4s, \\m\n        mov             \\d\\().d[0], \\n\\().d[0]\n  .endif\n.endm\n\n// uses and clobbers v28-v31 as temp registers\n.macro tr_4x4_8 in0, in1, in2, in3, out0, out1, out2, out3, p1, p2\n        sshll\\p1        v28.4s, \\in0, #6\n        mov             v29.16b, v28.16b\n        smull\\p1        v30.4s, \\in1, v0.h[1]\n        smull\\p1        v31.4s, \\in1, v0.h[3]\n        smlal\\p2        v28.4s, \\in2, v0.h[0] //e0\n        smlsl\\p2        v29.4s, \\in2, v0.h[0] //e1\n        smlal\\p2        v30.4s, \\in3, v0.h[3] //o0\n        smlsl\\p2        v31.4s, \\in3, v0.h[1] //o1\n\n        add             \\out0, v28.4s, v30.4s\n        add             \\out1, v29.4s, v31.4s\n        sub             \\out2, v29.4s, v31.4s\n        sub             \\out3, v28.4s, v30.4s\n.endm\n\n.macro transpose_8x8 r0, r1, r2, r3, r4, r5, r6, r7\n        transpose_4x8H  \\r0, \\r1, \\r2, \\r3, v2, v3, v4, v5\n        transpose_4x8H  \\r4, \\r5, \\r6, \\r7, v2, v3, v4, v5\n.endm\n\n.macro tr_8x4 shift, in0,in0t, in1,in1t, in2,in2t, in3,in3t, in4,in4t, in5,in5t, in6,in6t, in7,in7t, p1, p2\n        tr_4x4_8        \\in0\\in0t, \\in2\\in2t, \\in4\\in4t, \\in6\\in6t, v24.4s, v25.4s, v26.4s, v27.4s, \\p1, \\p2\n\n        smull\\p1        v30.4s, \\in1\\in1t, v0.h[6]\n        smull\\p1        v28.4s, \\in1\\in1t, v0.h[4]\n        smull\\p1        v29.4s, \\in1\\in1t, v0.h[5]\n        sum_sub         v30.4s, \\in3\\in3t, v0.h[4], -, \\p1\n        sum_sub         v28.4s, \\in3\\in3t, v0.h[5], +, \\p1\n        sum_sub         v29.4s, \\in3\\in3t, v0.h[7], -, \\p1\n\n        sum_sub         v30.4s, \\in5\\in5t, v0.h[7], +, \\p2\n        sum_sub         v28.4s, \\in5\\in5t, v0.h[6], +, \\p2\n        sum_sub         v29.4s, \\in5\\in5t, v0.h[4], -, \\p2\n\n        sum_sub         v30.4s, \\in7\\in7t, v0.h[5], +, \\p2\n        sum_sub         v28.4s, \\in7\\in7t, v0.h[7], +, \\p2\n        sum_sub         v29.4s, \\in7\\in7t, v0.h[6], -, \\p2\n\n        add             v31.4s, v26.4s, v30.4s\n        sub             v26.4s, v26.4s, v30.4s\n        fixsqrshrn      \\in2,\\in2t, v31, \\shift\n\n\n        smull\\p1        v31.4s, \\in1\\in1t, v0.h[7]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:9", "text": "smull\\p1        v28.4s, \\in1\\in1t, v0.h[4]\n        smull\\p1        v29.4s, \\in1\\in1t, v0.h[5]\n        sum_sub         v30.4s, \\in3\\in3t, v0.h[4], -, \\p1\n        sum_sub         v28.4s, \\in3\\in3t, v0.h[5], +, \\p1\n        sum_sub         v29.4s, \\in3\\in3t, v0.h[7], -, \\p1\n\n        sum_sub         v30.4s, \\in5\\in5t, v0.h[7], +, \\p2\n        sum_sub         v28.4s, \\in5\\in5t, v0.h[6], +, \\p2\n        sum_sub         v29.4s, \\in5\\in5t, v0.h[4], -, \\p2\n\n        sum_sub         v30.4s, \\in7\\in7t, v0.h[5], +, \\p2\n        sum_sub         v28.4s, \\in7\\in7t, v0.h[7], +, \\p2\n        sum_sub         v29.4s, \\in7\\in7t, v0.h[6], -, \\p2\n\n        add             v31.4s, v26.4s, v30.4s\n        sub             v26.4s, v26.4s, v30.4s\n        fixsqrshrn      \\in2,\\in2t, v31, \\shift\n\n\n        smull\\p1        v31.4s, \\in1\\in1t, v0.h[7]\n        sum_sub         v31.4s, \\in3\\in3t, v0.h[6], -, \\p1\n        sum_sub         v31.4s, \\in5\\in5t, v0.h[5], +, \\p2\n        sum_sub         v31.4s, \\in7\\in7t, v0.h[4], -, \\p2\n        fixsqrshrn      \\in5,\\in5t, v26, \\shift\n\n\n        add             v26.4s, v24.4s, v28.4s\n        sub             v24.4s, v24.4s, v28.4s\n        add             v28.4s, v25.4s, v29.4s\n        sub             v25.4s, v25.4s, v29.4s\n        add             v30.4s, v27.4s, v31.4s\n        sub             v27.4s, v27.4s, v31.4s\n\n        fixsqrshrn      \\in0,\\in0t, v26, \\shift\n        fixsqrshrn      \\in7,\\in7t, v24, \\shift\n        fixsqrshrn      \\in1,\\in1t, v28, \\shift\n        fixsqrshrn      \\in6,\\in6t, v25, \\shift\n        fixsqrshrn      \\in3,\\in3t, v30, \\shift\n        fixsqrshrn      \\in4,\\in4t, v27, \\shift\n.endm\n\n.macro idct_8x8 bitdepth\nfunction ff_hevc_idct_8x8_\\bitdepth\\()_neon, export=1\n//x0 - coeffs\n        mov             x1,  x0\n        ld1             {v16.8h-v19.8h}, [x1], #64\n        ld1             {v20.8h-v23.8h}, [x1]\n\n        movrel          x1, trans\n        ld1             {v0.8h}, [x1]\n\n        tr_8x4          7, v16,.4h, v17,.4h, v18,.4h, v19,.4h, v20,.4h, v21,.4h, v22,.4h, v23,.4h\n        tr_8x4          7, v16,.8h, v17,.8h, v18,.8h, v19,.8h, v20,.8h, v21,.8h, v22,.8h, v23,.8h, 2, 2\n\n        transpose_8x8   v16, v17, v18, v19, v20, v21, v22, v23\n\n        tr_8x4          20 - \\bitdepth, v16,.4h, v17,.4h, v18,.4h, v19,.4h, v16,.8h, v17,.8h, v18,.8h, v19,.8h, , 2\n        tr_8x4          20 - \\bitdepth, v20,.4h, v21,.4h, v22,.4h, v23,.4h, v20,.8h, v21,.8h, v22,.8h, v23,.8h, , 2\n\n        transpose_8x8   v16, v17, v18, v19, v20, v21, v22, v23", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:10", "text": ".macro idct_8x8 bitdepth\nfunction ff_hevc_idct_8x8_\\bitdepth\\()_neon, export=1\n//x0 - coeffs\n        mov             x1,  x0\n        ld1             {v16.8h-v19.8h}, [x1], #64\n        ld1             {v20.8h-v23.8h}, [x1]\n\n        movrel          x1, trans\n        ld1             {v0.8h}, [x1]\n\n        tr_8x4          7, v16,.4h, v17,.4h, v18,.4h, v19,.4h, v20,.4h, v21,.4h, v22,.4h, v23,.4h\n        tr_8x4          7, v16,.8h, v17,.8h, v18,.8h, v19,.8h, v20,.8h, v21,.8h, v22,.8h, v23,.8h, 2, 2\n\n        transpose_8x8   v16, v17, v18, v19, v20, v21, v22, v23\n\n        tr_8x4          20 - \\bitdepth, v16,.4h, v17,.4h, v18,.4h, v19,.4h, v16,.8h, v17,.8h, v18,.8h, v19,.8h, , 2\n        tr_8x4          20 - \\bitdepth, v20,.4h, v21,.4h, v22,.4h, v23,.4h, v20,.8h, v21,.8h, v22,.8h, v23,.8h, , 2\n\n        transpose_8x8   v16, v17, v18, v19, v20, v21, v22, v23\n\n        mov             x1,  x0\n        st1             {v16.8h-v19.8h}, [x1], #64\n        st1             {v20.8h-v23.8h}, [x1]\n\n        ret\nendfunc\n.endm\n\n.macro butterfly e, o, tmp_p, tmp_m\n        add             \\tmp_p, \\e, \\o\n        sub             \\tmp_m, \\e, \\o\n.endm\n\n.macro tr16_8x4 in0, in1, in2, in3, offset\n        tr_4x4_8        \\in0\\().4h, \\in1\\().4h, \\in2\\().4h, \\in3\\().4h, v24.4s, v25.4s, v26.4s, v27.4s\n\n        smull2          v28.4s, \\in0\\().8h, v0.h[4]\n        smull2          v29.4s, \\in0\\().8h, v0.h[5]\n        smull2          v30.4s, \\in0\\().8h, v0.h[6]\n        smull2          v31.4s, \\in0\\().8h, v0.h[7]\n        sum_sub         v28.4s, \\in1\\().8h, v0.h[5], +, 2\n        sum_sub         v29.4s, \\in1\\().8h, v0.h[7], -, 2\n        sum_sub         v30.4s, \\in1\\().8h, v0.h[4], -, 2\n        sum_sub         v31.4s, \\in1\\().8h, v0.h[6], -, 2\n\n        sum_sub         v28.4s, \\in2\\().8h, v0.h[6], +, 2\n        sum_sub         v29.4s, \\in2\\().8h, v0.h[4], -, 2\n        sum_sub         v30.4s, \\in2\\().8h, v0.h[7], +, 2\n        sum_sub         v31.4s, \\in2\\().8h, v0.h[5], +, 2\n\n        sum_sub         v28.4s, \\in3\\().8h, v0.h[7], +, 2\n        sum_sub         v29.4s, \\in3\\().8h, v0.h[6], -, 2\n        sum_sub         v30.4s, \\in3\\().8h, v0.h[5], +, 2\n        sum_sub         v31.4s, \\in3\\().8h, v0.h[4], -, 2\n\n        butterfly       v24.4s, v28.4s, v16.4s, v23.4s\n        butterfly       v25.4s, v29.4s, v17.4s, v22.4s\n        butterfly       v26.4s, v30.4s, v18.4s, v21.4s\n        butterfly       v27.4s, v31.4s, v19.4s, v20.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:11", "text": "smull2          v31.4s, \\in0\\().8h, v0.h[7]\n        sum_sub         v28.4s, \\in1\\().8h, v0.h[5], +, 2\n        sum_sub         v29.4s, \\in1\\().8h, v0.h[7], -, 2\n        sum_sub         v30.4s, \\in1\\().8h, v0.h[4], -, 2\n        sum_sub         v31.4s, \\in1\\().8h, v0.h[6], -, 2\n\n        sum_sub         v28.4s, \\in2\\().8h, v0.h[6], +, 2\n        sum_sub         v29.4s, \\in2\\().8h, v0.h[4], -, 2\n        sum_sub         v30.4s, \\in2\\().8h, v0.h[7], +, 2\n        sum_sub         v31.4s, \\in2\\().8h, v0.h[5], +, 2\n\n        sum_sub         v28.4s, \\in3\\().8h, v0.h[7], +, 2\n        sum_sub         v29.4s, \\in3\\().8h, v0.h[6], -, 2\n        sum_sub         v30.4s, \\in3\\().8h, v0.h[5], +, 2\n        sum_sub         v31.4s, \\in3\\().8h, v0.h[4], -, 2\n\n        butterfly       v24.4s, v28.4s, v16.4s, v23.4s\n        butterfly       v25.4s, v29.4s, v17.4s, v22.4s\n        butterfly       v26.4s, v30.4s, v18.4s, v21.4s\n        butterfly       v27.4s, v31.4s, v19.4s, v20.4s\n        add             x4,  sp,  #\\offset\n        st1             {v16.4s-v19.4s}, [x4], #64\n        st1             {v20.4s-v23.4s}, [x4]\n.endm\n\n.macro load16 in0, in1, in2, in3\n        ld1             {\\in0}[0], [x1], x2\n        ld1             {\\in0}[1], [x3], x2\n        ld1             {\\in1}[0], [x1], x2\n        ld1             {\\in1}[1], [x3], x2\n        ld1             {\\in2}[0], [x1], x2\n        ld1             {\\in2}[1], [x3], x2\n        ld1             {\\in3}[0], [x1], x2\n        ld1             {\\in3}[1], [x3], x2\n.endm\n\n.macro add_member in, t0, t1, t2, t3, t4, t5, t6, t7, op0, op1, op2, op3, op4, op5, op6, op7, p\n        sum_sub         v21.4s, \\in, \\t0, \\op0, \\p\n        sum_sub         v22.4s, \\in, \\t1, \\op1, \\p\n        sum_sub         v23.4s, \\in, \\t2, \\op2, \\p\n        sum_sub         v24.4s, \\in, \\t3, \\op3, \\p\n        sum_sub         v25.4s, \\in, \\t4, \\op4, \\p\n        sum_sub         v26.4s, \\in, \\t5, \\op5, \\p\n        sum_sub         v27.4s, \\in, \\t6, \\op6, \\p\n        sum_sub         v28.4s, \\in, \\t7, \\op7, \\p\n.endm\n\n.macro butterfly16 in0, in1, in2, in3, in4, in5, in6, in7\n        add             v20.4s, \\in0, \\in1\n        sub             \\in0, \\in0, \\in1\n        add             \\in1, \\in2, \\in3\n        sub             \\in2, \\in2, \\in3\n        add             \\in3, \\in4, \\in5\n        sub             \\in4, \\in4, \\in5\n        add             \\in5, \\in6, \\in7\n        sub             \\in6, \\in6, \\in7\n.endm\n\n.macro store16 in0, in1, in2, in3, rx\n        st1             {\\in0}[0], [x1], x2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:12", "text": "sum_sub         v24.4s, \\in, \\t3, \\op3, \\p\n        sum_sub         v25.4s, \\in, \\t4, \\op4, \\p\n        sum_sub         v26.4s, \\in, \\t5, \\op5, \\p\n        sum_sub         v27.4s, \\in, \\t6, \\op6, \\p\n        sum_sub         v28.4s, \\in, \\t7, \\op7, \\p\n.endm\n\n.macro butterfly16 in0, in1, in2, in3, in4, in5, in6, in7\n        add             v20.4s, \\in0, \\in1\n        sub             \\in0, \\in0, \\in1\n        add             \\in1, \\in2, \\in3\n        sub             \\in2, \\in2, \\in3\n        add             \\in3, \\in4, \\in5\n        sub             \\in4, \\in4, \\in5\n        add             \\in5, \\in6, \\in7\n        sub             \\in6, \\in6, \\in7\n.endm\n\n.macro store16 in0, in1, in2, in3, rx\n        st1             {\\in0}[0], [x1], x2\n        st1             {\\in0}[1], [x3], \\rx\n        st1             {\\in1}[0], [x1], x2\n        st1             {\\in1}[1], [x3], \\rx\n        st1             {\\in2}[0], [x1], x2\n        st1             {\\in2}[1], [x3], \\rx\n        st1             {\\in3}[0], [x1], x2\n        st1             {\\in3}[1], [x3], \\rx\n.endm\n\n.macro scale out0, out1, out2, out3, in0, in1, in2, in3, in4, in5, in6, in7, shift\n        sqrshrn         \\out0\\().4h, \\in0, \\shift\n        sqrshrn2        \\out0\\().8h, \\in1, \\shift\n        sqrshrn         \\out1\\().4h, \\in2, \\shift\n        sqrshrn2        \\out1\\().8h, \\in3, \\shift\n        sqrshrn         \\out2\\().4h, \\in4, \\shift\n        sqrshrn2        \\out2\\().8h, \\in5, \\shift\n        sqrshrn         \\out3\\().4h, \\in6, \\shift\n        sqrshrn2        \\out3\\().8h, \\in7, \\shift\n.endm\n\n// use temp register to transpose, then we can reuse it\n.macro transpose16_4x4_2 r0, r1, r2, r3, tmp0, tmp1, tmp2, tmp3, tmp4, tmp5\n        // lower halves\n        trn1            \\tmp0\\().4h, \\r0\\().4h, \\r1\\().4h\n        trn2            \\tmp1\\().4h, \\r0\\().4h, \\r1\\().4h\n        trn1            \\tmp2\\().4h, \\r2\\().4h, \\r3\\().4h\n        trn2            \\tmp3\\().4h, \\r2\\().4h, \\r3\\().4h\n        trn1            \\tmp4\\().2s, \\tmp0\\().2s, \\tmp2\\().2s\n        trn2            \\tmp5\\().2s, \\tmp0\\().2s, \\tmp2\\().2s\n        trn1            \\tmp0\\().2s, \\tmp1\\().2s, \\tmp3\\().2s\n        trn2            \\tmp2\\().2s, \\tmp1\\().2s, \\tmp3\\().2s\n        mov             \\r0\\().d[0], \\tmp4\\().d[0]\n        mov             \\r2\\().d[0], \\tmp5\\().d[0]\n        mov             \\r1\\().d[0], \\tmp0\\().d[0]\n        mov             \\r3\\().d[0], \\tmp2\\().d[0]\n\n        // upper halves in reverse order\n        trn1            \\tmp0\\().8h, \\r3\\().8h, \\r2\\().8h\n        trn2            \\tmp1\\().8h, \\r3\\().8h, \\r2\\().8h\n        trn1            \\tmp2\\().8h, \\r1\\().8h, \\r0\\().8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:13", "text": "// use temp register to transpose, then we can reuse it\n.macro transpose16_4x4_2 r0, r1, r2, r3, tmp0, tmp1, tmp2, tmp3, tmp4, tmp5\n        // lower halves\n        trn1            \\tmp0\\().4h, \\r0\\().4h, \\r1\\().4h\n        trn2            \\tmp1\\().4h, \\r0\\().4h, \\r1\\().4h\n        trn1            \\tmp2\\().4h, \\r2\\().4h, \\r3\\().4h\n        trn2            \\tmp3\\().4h, \\r2\\().4h, \\r3\\().4h\n        trn1            \\tmp4\\().2s, \\tmp0\\().2s, \\tmp2\\().2s\n        trn2            \\tmp5\\().2s, \\tmp0\\().2s, \\tmp2\\().2s\n        trn1            \\tmp0\\().2s, \\tmp1\\().2s, \\tmp3\\().2s\n        trn2            \\tmp2\\().2s, \\tmp1\\().2s, \\tmp3\\().2s\n        mov             \\r0\\().d[0], \\tmp4\\().d[0]\n        mov             \\r2\\().d[0], \\tmp5\\().d[0]\n        mov             \\r1\\().d[0], \\tmp0\\().d[0]\n        mov             \\r3\\().d[0], \\tmp2\\().d[0]\n\n        // upper halves in reverse order\n        trn1            \\tmp0\\().8h, \\r3\\().8h, \\r2\\().8h\n        trn2            \\tmp1\\().8h, \\r3\\().8h, \\r2\\().8h\n        trn1            \\tmp2\\().8h, \\r1\\().8h, \\r0\\().8h\n        trn2            \\tmp3\\().8h, \\r1\\().8h, \\r0\\().8h\n        trn1            \\tmp4\\().4s, \\tmp0\\().4s, \\tmp2\\().4s\n        trn2            \\tmp5\\().4s, \\tmp0\\().4s, \\tmp2\\().4s\n        trn1            \\tmp0\\().4s, \\tmp1\\().4s, \\tmp3\\().4s\n        trn2            \\tmp2\\().4s, \\tmp1\\().4s, \\tmp3\\().4s\n        mov             \\r3\\().d[1], \\tmp4\\().d[1]\n        mov             \\r1\\().d[1], \\tmp5\\().d[1]\n        mov             \\r2\\().d[1], \\tmp0\\().d[1]\n        mov             \\r0\\().d[1], \\tmp2\\().d[1]\n.endm\n\n// stores in0, in2, in4, in6 ascending from off1 and\n// stores in1, in3, in5, in7 descending from off2\n.macro store_to_stack off1, off2, in0, in2, in4, in6, in7, in5, in3, in1\n        add             x1, sp, #\\off1\n        add             x3, sp, #\\off2\n        mov             x2, #-16\n        mov             x4, #16\n        st1             {\\in0}, [x1], x4\n        st1             {\\in1}, [x3], x2\n        st1             {\\in2}, [x1], x4\n        st1             {\\in3}, [x3], x2\n        st1             {\\in4}, [x1], x4\n        st1             {\\in5}, [x3], x2\n        st1             {\\in6}, [x1]\n        st1             {\\in7}, [x3]\n.endm\n\n.macro tr_16x4 name, shift, offset, step\nfunction func_tr_16x4_\\name\n        mov             x1,  x5\n        add             x3,  x5, #(\\step * 64)\n        mov             x2,  #(\\step * 128)\n        load16          v16.d, v17.d, v18.d, v19.d\n        movrel          x1,  trans\n        ld1             {v0.8h}, [x1]\n\n        tr16_8x4        v16, v17, v18, v19, \\offset\n\n        add             x1,  x5, #(\\step * 32)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:14", "text": "st1             {\\in2}, [x1], x4\n        st1             {\\in3}, [x3], x2\n        st1             {\\in4}, [x1], x4\n        st1             {\\in5}, [x3], x2\n        st1             {\\in6}, [x1]\n        st1             {\\in7}, [x3]\n.endm\n\n.macro tr_16x4 name, shift, offset, step\nfunction func_tr_16x4_\\name\n        mov             x1,  x5\n        add             x3,  x5, #(\\step * 64)\n        mov             x2,  #(\\step * 128)\n        load16          v16.d, v17.d, v18.d, v19.d\n        movrel          x1,  trans\n        ld1             {v0.8h}, [x1]\n\n        tr16_8x4        v16, v17, v18, v19, \\offset\n\n        add             x1,  x5, #(\\step * 32)\n        add             x3,  x5, #(\\step * 3 *32)\n        mov             x2,  #(\\step * 128)\n        load16          v20.d, v17.d, v18.d, v19.d\n        movrel          x1, trans, 16\n        ld1             {v1.8h}, [x1]\n        smull           v21.4s, v20.4h, v1.h[0]\n        smull           v22.4s, v20.4h, v1.h[1]\n        smull           v23.4s, v20.4h, v1.h[2]\n        smull           v24.4s, v20.4h, v1.h[3]\n        smull           v25.4s, v20.4h, v1.h[4]\n        smull           v26.4s, v20.4h, v1.h[5]\n        smull           v27.4s, v20.4h, v1.h[6]\n        smull           v28.4s, v20.4h, v1.h[7]\n\n        add_member      v20.8h, v1.h[1], v1.h[4], v1.h[7], v1.h[5], v1.h[2], v1.h[0], v1.h[3], v1.h[6], +, +, +, -, -, -, -, -, 2\n        add_member      v17.4h, v1.h[2], v1.h[7], v1.h[3], v1.h[1], v1.h[6], v1.h[4], v1.h[0], v1.h[5], +, +, -, -, -, +, +, +\n        add_member      v17.8h, v1.h[3], v1.h[5], v1.h[1], v1.h[7], v1.h[0], v1.h[6], v1.h[2], v1.h[4], +, -, -, +, +, +, -, -, 2\n        add_member      v18.4h, v1.h[4], v1.h[2], v1.h[6], v1.h[0], v1.h[7], v1.h[1], v1.h[5], v1.h[3], +, -, -, +, -, -, +, +\n        add_member      v18.8h, v1.h[5], v1.h[0], v1.h[4], v1.h[6], v1.h[1], v1.h[3], v1.h[7], v1.h[2], +, -, +, +, -, +, +, -, 2\n        add_member      v19.4h, v1.h[6], v1.h[3], v1.h[0], v1.h[2], v1.h[5], v1.h[7], v1.h[4], v1.h[1], +, -, +, -, +, +, -, +\n        add_member      v19.8h, v1.h[7], v1.h[6], v1.h[5], v1.h[4], v1.h[3], v1.h[2], v1.h[1], v1.h[0], +, -, +, -, +, -, +, -, 2\n\n        add             x4, sp, #\\offset\n        ld1             {v16.4s-v19.4s}, [x4], #64\n        butterfly16     v16.4s, v21.4s, v17.4s, v22.4s, v18.4s, v23.4s, v19.4s, v24.4s\n    .if \\shift > 0\n        scale           v29, v30, v31, v24, v20.4s, v16.4s, v21.4s, v17.4s, v22.4s, v18.4s, v23.4s, v19.4s, \\shift\n        transpose16_4x4_2 v29, v30, v31, v24, v2, v3, v4, v5, v6, v7\n        mov             x1,  x6\n        add             x3,  x6, #(24 +3*32)\n        mov             x2, #32\n        mov             x4, #-32\n        store16         v29.d, v30.d, v31.d, v24.d, x4\n    .else\n        store_to_stack  \\offset, (\\offset + 240), v20.4s, v21.4s, v22.4s, v23.4s, v19.4s, v18.4s, v17.4s, v16.4s\n    .endif\n\n        add             x4, sp, #(\\offset + 64)\n        ld1             {v16.4s-v19.4s}, [x4]\n        butterfly16     v16.4s, v25.4s, v17.4s, v26.4s, v18.4s, v27.4s, v19.4s, v28.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:15", "text": "add_member      v19.8h, v1.h[7], v1.h[6], v1.h[5], v1.h[4], v1.h[3], v1.h[2], v1.h[1], v1.h[0], +, -, +, -, +, -, +, -, 2\n\n        add             x4, sp, #\\offset\n        ld1             {v16.4s-v19.4s}, [x4], #64\n        butterfly16     v16.4s, v21.4s, v17.4s, v22.4s, v18.4s, v23.4s, v19.4s, v24.4s\n    .if \\shift > 0\n        scale           v29, v30, v31, v24, v20.4s, v16.4s, v21.4s, v17.4s, v22.4s, v18.4s, v23.4s, v19.4s, \\shift\n        transpose16_4x4_2 v29, v30, v31, v24, v2, v3, v4, v5, v6, v7\n        mov             x1,  x6\n        add             x3,  x6, #(24 +3*32)\n        mov             x2, #32\n        mov             x4, #-32\n        store16         v29.d, v30.d, v31.d, v24.d, x4\n    .else\n        store_to_stack  \\offset, (\\offset + 240), v20.4s, v21.4s, v22.4s, v23.4s, v19.4s, v18.4s, v17.4s, v16.4s\n    .endif\n\n        add             x4, sp, #(\\offset + 64)\n        ld1             {v16.4s-v19.4s}, [x4]\n        butterfly16     v16.4s, v25.4s, v17.4s, v26.4s, v18.4s, v27.4s, v19.4s, v28.4s\n   .if \\shift > 0\n        scale           v29, v30, v31, v20, v20.4s, v16.4s, v25.4s, v17.4s, v26.4s, v18.4s, v27.4s, v19.4s, \\shift\n        transpose16_4x4_2 v29, v30, v31, v20, v2, v3, v4, v5, v6, v7\n\n        add             x1,  x6, #8\n        add             x3,  x6, #(16 + 3 * 32)\n        mov             x2, #32\n        mov             x4, #-32\n        store16         v29.d, v30.d, v31.d, v20.d, x4\n   .else\n        store_to_stack  (\\offset + 64), (\\offset + 176), v20.4s, v25.4s, v26.4s, v27.4s, v19.4s, v18.4s, v17.4s, v16.4s\n   .endif\n\n        ret\nendfunc\n.endm\n\n.macro idct_16x16 bitdepth\nfunction ff_hevc_idct_16x16_\\bitdepth\\()_neon, export=1\n//r0 - coeffs\n        mov             x15, x30\n\n        // allocate a temp buffer\n        sub             sp,  sp,  #640\n\n.irp i, 0, 1, 2, 3\n        add             x5,  x0, #(8 * \\i)\n        add             x6,  sp, #(8 * \\i * 16)\n        bl              func_tr_16x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3\n        add             x5,  sp, #(8 * \\i)\n        add             x6,  x0, #(8 * \\i * 16)\n        bl              func_tr_16x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  #640\n\n        ret             x15", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:16", "text": "mov             x15, x30\n\n        // allocate a temp buffer\n        sub             sp,  sp,  #640\n\n.irp i, 0, 1, 2, 3\n        add             x5,  x0, #(8 * \\i)\n        add             x6,  sp, #(8 * \\i * 16)\n        bl              func_tr_16x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3\n        add             x5,  sp, #(8 * \\i)\n        add             x6,  x0, #(8 * \\i * 16)\n        bl              func_tr_16x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  #640\n\n        ret             x15\nendfunc\n.endm\n\n.macro load32\n        add             x1,  x5, #64\n        add             x3,  x1, #128\n        mov             x2,  #256\n        ld1             {v4.d}[0],  [x1], x2\n        ld1             {v4.d}[1],  [x3], x2\n        ld1             {v5.d}[0],  [x1], x2\n        ld1             {v5.d}[1],  [x3], x2\n        ld1             {v6.d}[0],  [x1], x2\n        ld1             {v6.d}[1],  [x3], x2\n        ld1             {v7.d}[0],  [x1], x2\n        ld1             {v7.d}[1],  [x3], x2\n        ld1             {v16.d}[0], [x1], x2\n        ld1             {v16.d}[1], [x3], x2\n        ld1             {v17.d}[0], [x1], x2\n        ld1             {v17.d}[1], [x3], x2\n        ld1             {v18.d}[0], [x1], x2\n        ld1             {v18.d}[1], [x3], x2\n        ld1             {v19.d}[0], [x1], x2\n        ld1             {v19.d}[1], [x3], x2\n.endm\n\n.macro add_member32 in, t0, t1, t2, t3, op0, op1, op2, op3, p\n        sum_sub         v24.4s, \\in, \\t0, \\op0, \\p\n        sum_sub         v25.4s, \\in, \\t1, \\op1, \\p\n        sum_sub         v26.4s, \\in, \\t2, \\op2, \\p\n        sum_sub         v27.4s, \\in, \\t3, \\op3, \\p\n.endm\n\n.macro butterfly32 in0, in1, in2, in3, out\n        add             \\out, \\in0, \\in1\n        sub             \\in0, \\in0, \\in1\n        add             \\in1, \\in2, \\in3\n        sub             \\in2, \\in2, \\in3\n.endm\n\n.macro multiply in", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:17", "text": "ld1             {v18.d}[1], [x3], x2\n        ld1             {v19.d}[0], [x1], x2\n        ld1             {v19.d}[1], [x3], x2\n.endm\n\n.macro add_member32 in, t0, t1, t2, t3, op0, op1, op2, op3, p\n        sum_sub         v24.4s, \\in, \\t0, \\op0, \\p\n        sum_sub         v25.4s, \\in, \\t1, \\op1, \\p\n        sum_sub         v26.4s, \\in, \\t2, \\op2, \\p\n        sum_sub         v27.4s, \\in, \\t3, \\op3, \\p\n.endm\n\n.macro butterfly32 in0, in1, in2, in3, out\n        add             \\out, \\in0, \\in1\n        sub             \\in0, \\in0, \\in1\n        add             \\in1, \\in2, \\in3\n        sub             \\in2, \\in2, \\in3\n.endm\n\n.macro multiply in\n        smull           v24.4s, v4.4h, \\in\\().h[0]\n        smull           v25.4s, v4.4h, \\in\\().h[1]\n        smull           v26.4s, v4.4h, \\in\\().h[2]\n        smull           v27.4s, v4.4h, \\in\\().h[3]\n.endm\n\n.macro scale_store shift\n        ld1             {v28.8h-v31.8h}, [x4], #64\n        butterfly32     v28.4s, v24.4s, v29.4s, v25.4s, v2.4s\n        butterfly32     v30.4s, v26.4s, v31.4s, v27.4s, v3.4s\n        scale           v20, v21, v22, v23, v2.4s, v28.4s, v24.4s, v29.4s, v3.4s, v30.4s, v26.4s, v31.4s, \\shift\n\n        transpose16_4x4_2 v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n        store16         v20.d, v21.d, v22.d, v23.d, x8\n\n        // reload coefficients\n        ld1             {v2.4h-v3.4h}, [x9]\n.endm\n\nfunction tr_block1\n        multiply        v0\n        add_member32    v4.8h,  v0.h[1], v1.h[0], v1.h[3], v2.h[2], +, +, +, +, 2\n        add_member32    v5.4h,  v0.h[2], v1.h[3], v3.h[0], v3.h[2], +, +, +, -\n        add_member32    v5.8h,  v0.h[3], v2.h[2], v3.h[2], v1.h[3], +, +, -, -, 2\n        add_member32    v6.4h,  v1.h[0], v3.h[1], v2.h[1], v0.h[0], +, +, -, -\n        add_member32    v6.8h,  v1.h[1], v3.h[3], v1.h[0], v1.h[2], +, -, -, -, 2\n        add_member32    v7.4h,  v1.h[2], v3.h[0], v0.h[0], v3.h[1], +, -, -, -\n        add_member32    v7.8h,  v1.h[3], v2.h[1], v1.h[1], v2.h[3], +, -, -, +, 2\n        add_member32    v16.4h, v2.h[0], v1.h[2], v2.h[2], v1.h[0], +, -, -, +\n        add_member32    v16.8h, v2.h[1], v0.h[3], v3.h[3], v0.h[2], +, -, -, +, 2\n        add_member32    v17.4h, v2.h[2], v0.h[1], v2.h[3], v2.h[1], +, -, +, +\n        add_member32    v17.8h, v2.h[3], v0.h[2], v1.h[2], v3.h[3], +, -, +, -, 2\n        add_member32    v18.4h, v3.h[0], v1.h[1], v0.h[1], v2.h[0], +, -, +, -\n        add_member32    v18.8h, v3.h[1], v2.h[0], v0.h[3], v0.h[1], +, -, +, -, 2\n        add_member32    v19.4h, v3.h[2], v2.h[3], v2.h[0], v1.h[1], +, -, +, -\n        add_member32    v19.8h, v3.h[3], v3.h[2], v3.h[1], v3.h[0], +, -, +, -, 2\n        ret\nendfunc\n\nfunction tr_block2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:18", "text": "multiply        v0\n        add_member32    v4.8h,  v0.h[1], v1.h[0], v1.h[3], v2.h[2], +, +, +, +, 2\n        add_member32    v5.4h,  v0.h[2], v1.h[3], v3.h[0], v3.h[2], +, +, +, -\n        add_member32    v5.8h,  v0.h[3], v2.h[2], v3.h[2], v1.h[3], +, +, -, -, 2\n        add_member32    v6.4h,  v1.h[0], v3.h[1], v2.h[1], v0.h[0], +, +, -, -\n        add_member32    v6.8h,  v1.h[1], v3.h[3], v1.h[0], v1.h[2], +, -, -, -, 2\n        add_member32    v7.4h,  v1.h[2], v3.h[0], v0.h[0], v3.h[1], +, -, -, -\n        add_member32    v7.8h,  v1.h[3], v2.h[1], v1.h[1], v2.h[3], +, -, -, +, 2\n        add_member32    v16.4h, v2.h[0], v1.h[2], v2.h[2], v1.h[0], +, -, -, +\n        add_member32    v16.8h, v2.h[1], v0.h[3], v3.h[3], v0.h[2], +, -, -, +, 2\n        add_member32    v17.4h, v2.h[2], v0.h[1], v2.h[3], v2.h[1], +, -, +, +\n        add_member32    v17.8h, v2.h[3], v0.h[2], v1.h[2], v3.h[3], +, -, +, -, 2\n        add_member32    v18.4h, v3.h[0], v1.h[1], v0.h[1], v2.h[0], +, -, +, -\n        add_member32    v18.8h, v3.h[1], v2.h[0], v0.h[3], v0.h[1], +, -, +, -, 2\n        add_member32    v19.4h, v3.h[2], v2.h[3], v2.h[0], v1.h[1], +, -, +, -\n        add_member32    v19.8h, v3.h[3], v3.h[2], v3.h[1], v3.h[0], +, -, +, -, 2\n        ret\nendfunc\n\nfunction tr_block2\n        multiply        v1\n        add_member32    v4.8h,  v3.h[1], v3.h[3], v3.h[0], v2.h[1], +, -, -, -, 2\n        add_member32    v5.4h,  v2.h[1], v1.h[0], v0.h[0], v1.h[1], -, -, -, -\n        add_member32    v5.8h,  v0.h[0], v1.h[2], v3.h[1], v2.h[3], -, -, -, +, 2\n        add_member32    v6.4h,  v2.h[0], v3.h[2], v1.h[1], v0.h[3], -, +, +, +\n        add_member32    v6.8h,  v3.h[2], v0.h[3], v1.h[3], v3.h[1], +, +, +, -, 2\n        add_member32    v7.4h,  v1.h[1], v1.h[3], v2.h[3], v0.h[0], +, +, -, -\n        add_member32    v7.8h,  v0.h[3], v3.h[1], v0.h[1], v3.h[3], +, -, -, +, 2\n        add_member32    v16.4h, v3.h[0], v0.h[2], v3.h[2], v0.h[1], +, -, -, +\n        add_member32    v16.8h, v2.h[2], v2.h[0], v1.h[0], v3.h[2], -, -, +, +, 2\n        add_member32    v17.4h, v0.h[1], v3.h[0], v2.h[0], v0.h[2], -, +, +, -\n        add_member32    v17.8h, v1.h[3], v0.h[1], v2.h[2], v3.h[0], -, +, -, -, 2\n        add_member32    v18.4h, v3.h[3], v2.h[1], v0.h[2], v1.h[0], +, +, -, +\n        add_member32    v18.8h, v1.h[2], v2.h[3], v3.h[3], v2.h[2], +, -, -, +, 2\n        add_member32    v19.4h, v0.h[2], v0.h[1], v0.h[3], v1.h[2], +, -, +, -\n        add_member32    v19.8h, v2.h[3], v2.h[2], v2.h[1], v2.h[0], +, -, +, -, 2\n        ret\nendfunc\n\nfunction tr_block3\n        multiply        v2\n        add_member32    v4.8h,  v1.h[2], v0.h[3], v0.h[0], v0.h[2], -, -, -, -, 2\n        add_member32    v5.4h,  v2.h[2], v3.h[3], v2.h[3], v1.h[2], -, -, +, +\n        add_member32    v5.8h,  v1.h[0], v0.h[2], v2.h[1], v3.h[3], +, +, +, -, 2\n        add_member32    v6.4h,  v3.h[0], v2.h[2], v0.h[1], v1.h[3], +, -, -, -\n        add_member32    v6.8h,  v0.h[2], v2.h[0], v3.h[0], v0.h[0], -, -, +, +, 2\n        add_member32    v7.4h,  v3.h[2], v1.h[0], v2.h[0], v2.h[2], -, +, +, -\n        add_member32    v7.8h,  v0.h[0], v3.h[2], v0.h[2], v3.h[0], +, +, -, -, 2\n        add_member32    v16.4h, v3.h[3], v0.h[1], v3.h[1], v0.h[3], -, -, +, +\n        add_member32    v16.8h, v0.h[1], v2.h[3], v1.h[3], v1.h[1], -, +, +, -, 2\n        add_member32    v17.4h, v3.h[1], v1.h[3], v0.h[3], v3.h[2], +, +, -, +\n        add_member32    v17.8h, v0.h[3], v1.h[1], v3.h[2], v2.h[0], +, -, +, +, 2\n        add_member32    v18.4h, v2.h[3], v3.h[1], v1.h[2], v0.h[1], -, -, +, -\n        add_member32    v18.8h, v1.h[1], v0.h[0], v1.h[0], v2.h[1], -, +, -, +, 2\n        add_member32    v19.4h, v2.h[1], v3.h[0], v3.h[3], v3.h[1], +, -, +, +\n        add_member32    v19.8h, v1.h[3], v1.h[2], v1.h[1], v1.h[0], +, -, +, -, 2\n        ret\nendfunc\n\nfunction tr_block4", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:19", "text": "multiply        v2\n        add_member32    v4.8h,  v1.h[2], v0.h[3], v0.h[0], v0.h[2], -, -, -, -, 2\n        add_member32    v5.4h,  v2.h[2], v3.h[3], v2.h[3], v1.h[2], -, -, +, +\n        add_member32    v5.8h,  v1.h[0], v0.h[2], v2.h[1], v3.h[3], +, +, +, -, 2\n        add_member32    v6.4h,  v3.h[0], v2.h[2], v0.h[1], v1.h[3], +, -, -, -\n        add_member32    v6.8h,  v0.h[2], v2.h[0], v3.h[0], v0.h[0], -, -, +, +, 2\n        add_member32    v7.4h,  v3.h[2], v1.h[0], v2.h[0], v2.h[2], -, +, +, -\n        add_member32    v7.8h,  v0.h[0], v3.h[2], v0.h[2], v3.h[0], +, +, -, -, 2\n        add_member32    v16.4h, v3.h[3], v0.h[1], v3.h[1], v0.h[3], -, -, +, +\n        add_member32    v16.8h, v0.h[1], v2.h[3], v1.h[3], v1.h[1], -, +, +, -, 2\n        add_member32    v17.4h, v3.h[1], v1.h[3], v0.h[3], v3.h[2], +, +, -, +\n        add_member32    v17.8h, v0.h[3], v1.h[1], v3.h[2], v2.h[0], +, -, +, +, 2\n        add_member32    v18.4h, v2.h[3], v3.h[1], v1.h[2], v0.h[1], -, -, +, -\n        add_member32    v18.8h, v1.h[1], v0.h[0], v1.h[0], v2.h[1], -, +, -, +, 2\n        add_member32    v19.4h, v2.h[1], v3.h[0], v3.h[3], v3.h[1], +, -, +, +\n        add_member32    v19.8h, v1.h[3], v1.h[2], v1.h[1], v1.h[0], +, -, +, -, 2\n        ret\nendfunc\n\nfunction tr_block4\n        multiply        v3\n        add_member32    v4.8h,  v1.h[1], v2.h[0], v2.h[3], v3.h[2], -, -, -, -, 2\n        add_member32    v5.4h,  v0.h[0], v0.h[3], v2.h[0], v3.h[1], +, +, +, +\n        add_member32    v5.8h,  v2.h[0], v0.h[0], v1.h[1], v3.h[0], -, -, -, -, 2\n        add_member32    v6.4h,  v3.h[3], v1.h[2], v0.h[2], v2.h[3], +, +, +, +\n        add_member32    v6.8h,  v2.h[1], v2.h[3], v0.h[0], v2.h[2], +, -, -, -, 2\n        add_member32    v7.4h,  v0.h[2], v3.h[3], v0.h[3], v2.h[1], -, -, +, +\n        add_member32    v7.8h,  v1.h[0], v2.h[2], v1.h[2], v2.h[0], +, +, -, -, 2\n        add_member32    v16.4h, v2.h[3], v1.h[1], v2.h[1], v1.h[3], -, -, +, +\n        add_member32    v16.8h, v3.h[1], v0.h[1], v3.h[0], v1.h[2], -, +, -, -, 2\n        add_member32    v17.4h, v1.h[2], v1.h[0], v3.h[3], v1.h[1], +, -, +, +\n        add_member32    v17.8h, v0.h[1], v2.h[1], v3.h[1], v1.h[0], -, +, +, -, 2\n        add_member32    v18.4h, v1.h[3], v3.h[2], v2.h[2], v0.h[3], +, -, -, +\n        add_member32    v18.8h, v3.h[2], v3.h[0], v1.h[3], v0.h[2], -, -, +, -, 2\n        add_member32    v19.4h, v2.h[2], v1.h[3], v1.h[0], v0.h[1], -, +, -, +\n        add_member32    v19.8h, v0.h[3], v0.h[2], v0.h[1], v0.h[0], +, -, +, -, 2\n        ret\nendfunc\n\n.macro tr_32x4 name, shift\nfunction func_tr_32x4_\\name\n        mov             x10, x30\n        bl              func_tr_16x4_noscale\n\n        load32\n        movrel          x9, trans, 32\n        ld1             {v0.4h-v1.4h}, [x9], #16\n        ld1             {v2.4h-v3.4h}, [x9]\n        add             x4, sp, #2048\n        mov             x2, #64\n        mov             x8, #-64\n\n        bl              tr_block1\n        mov             x1, x11\n        add             x3, x11, #(56 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block2\n        add             x1, x11, #8\n        add             x3, x11, #(48 + 3 * 64)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:20", "text": "function func_tr_32x4_\\name\n        mov             x10, x30\n        bl              func_tr_16x4_noscale\n\n        load32\n        movrel          x9, trans, 32\n        ld1             {v0.4h-v1.4h}, [x9], #16\n        ld1             {v2.4h-v3.4h}, [x9]\n        add             x4, sp, #2048\n        mov             x2, #64\n        mov             x8, #-64\n\n        bl              tr_block1\n        mov             x1, x11\n        add             x3, x11, #(56 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block2\n        add             x1, x11, #8\n        add             x3, x11, #(48 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block3\n        add             x1, x11, #16\n        add             x3, x11, #(40 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block4\n        add             x1, x11, #24\n        add             x3, x11, #(32 + 3 * 64)\n        scale_store     \\shift\n\n        ret             x10\nendfunc\n.endm\n\n.macro idct_32x32 bitdepth\nfunction ff_hevc_idct_32x32_\\bitdepth\\()_neon, export=1\n        mov             x15, x30\n        // allocate a temp buffer\n        sub             sp,  sp,  #2432\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             x5, x0, #(8 * \\i)\n        add             x11, sp, #(8 * \\i * 32)\n        bl              func_tr_32x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             x5, sp, #(8 * \\i)\n        add             x11, x0, #(8 * \\i * 32)\n        bl              func_tr_32x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  #2432\n        ret             x15\nendfunc\n.endm\n\nidct_4x4 8", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:21", "text": "sub             sp,  sp,  #2432\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             x5, x0, #(8 * \\i)\n        add             x11, sp, #(8 * \\i * 32)\n        bl              func_tr_32x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             x5, sp, #(8 * \\i)\n        add             x11, x0, #(8 * \\i * 32)\n        bl              func_tr_32x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  #2432\n        ret             x15\nendfunc\n.endm\n\nidct_4x4 8\nidct_4x4 10\n\nidct_8x8 8\nidct_8x8 10\n\ntr_16x4 firstpass, 7, 512, 1\ntr_16x4 secondpass_8, 20 - 8, 512, 1\ntr_16x4 secondpass_10, 20 - 10, 512, 1\ntr_16x4 noscale, 0, 2048, 4\n\nidct_16x16 8\nidct_16x16 10\n\n.ltorg\ntr_32x4 firstpass, 7\ntr_32x4 secondpass_8, 20 - 8\ntr_32x4 secondpass_10, 20 - 10\n.ltorg\n\nidct_32x32 8\nidct_32x32 10\n\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        saddl           v0.4s, \\r0, \\r2         // c0 = src0 + src2\n        saddl           v1.4s, \\r2, \\r3         // c1 = src2 + src3\n        ssubl           v2.4s, \\r0, \\r3         // c2 = src0 - src3\n        smull           v3.4s, \\r1, v21.4h      // c3 = 74 * src1\n\n        saddl           v7.4s, \\r0, \\r3         // src0 + src3\n        ssubw           v7.4s, v7.4s, \\r2       // src0 - src2 + src3\n        mul             v7.4s, v7.4s, v18.4s    // dst2 = 74 * (src0 - src2 + src3)\n\n        mul             v5.4s, v0.4s, v19.4s    // 29 * c0\n        mul             v6.4s, v1.4s, v20.4s    // 55 * c1\n        add             v5.4s, v5.4s, v6.4s     // 29 * c0 + 55 * c1\n        add             v5.4s, v5.4s, v3.4s     // dst0 = 29 * c0 + 55 * c1 + c3\n\n        mul             v1.4s, v1.4s, v19.4s    // 29 * c1\n        mul             v6.4s, v2.4s, v20.4s    // 55 * c2\n        sub             v6.4s, v6.4s, v1.4s     // 55 * c2 - 29 * c1", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:22", "text": "idct_32x32 10\n\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        saddl           v0.4s, \\r0, \\r2         // c0 = src0 + src2\n        saddl           v1.4s, \\r2, \\r3         // c1 = src2 + src3\n        ssubl           v2.4s, \\r0, \\r3         // c2 = src0 - src3\n        smull           v3.4s, \\r1, v21.4h      // c3 = 74 * src1\n\n        saddl           v7.4s, \\r0, \\r3         // src0 + src3\n        ssubw           v7.4s, v7.4s, \\r2       // src0 - src2 + src3\n        mul             v7.4s, v7.4s, v18.4s    // dst2 = 74 * (src0 - src2 + src3)\n\n        mul             v5.4s, v0.4s, v19.4s    // 29 * c0\n        mul             v6.4s, v1.4s, v20.4s    // 55 * c1\n        add             v5.4s, v5.4s, v6.4s     // 29 * c0 + 55 * c1\n        add             v5.4s, v5.4s, v3.4s     // dst0 = 29 * c0 + 55 * c1 + c3\n\n        mul             v1.4s, v1.4s, v19.4s    // 29 * c1\n        mul             v6.4s, v2.4s, v20.4s    // 55 * c2\n        sub             v6.4s, v6.4s, v1.4s     // 55 * c2 - 29 * c1\n        add             v6.4s, v6.4s, v3.4s     // dst1 = 55 * c2 - 29 * c1 + c3\n\n        mul             v0.4s, v0.4s, v20.4s    // 55 * c0\n        mul             v2.4s, v2.4s, v19.4s    // 29 * c2\n        add             v0.4s, v0.4s, v2.4s     // 55 * c0 + 29 * c2\n        sub             v0.4s, v0.4s, v3.4s     // dst3 = 55 * c0 + 29 * c2 - c3\n\n        sqrshrn         \\r0, v5.4s, \\shift\n        sqrshrn         \\r1, v6.4s, \\shift\n        sqrshrn         \\r2, v7.4s, \\shift\n        sqrshrn         \\r3, v0.4s, \\shift\n.endm\n\nfunction ff_hevc_transform_luma_4x4_neon_8, export=1\n        ld1             {v28.4h-v31.4h}, [x0]\n        movi            v18.4s, #74\n        movi            v19.4s, #29\n        movi            v20.4s, #55\n        movi            v21.4h, #74\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #7\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #12\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        st1             {v28.4h-v31.4h}, [x0]\n        ret\nendfunc\n\n.macro idct_8x8_dc_store offset\n.irp    i, 0x0, 0x20, 0x40, 0x60\n        stp             q0, q0, [x0, #(\\offset + \\i)]\n.endr\n.endm\n\n.macro idct_16x16_dc_store\n.irp    index, 0x0, 0x80, 0x100, 0x180\n        idct_8x8_dc_store offset=\\index\n.endr", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:23", "text": "tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #7\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #12\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        st1             {v28.4h-v31.4h}, [x0]\n        ret\nendfunc\n\n.macro idct_8x8_dc_store offset\n.irp    i, 0x0, 0x20, 0x40, 0x60\n        stp             q0, q0, [x0, #(\\offset + \\i)]\n.endr\n.endm\n\n.macro idct_16x16_dc_store\n.irp    index, 0x0, 0x80, 0x100, 0x180\n        idct_8x8_dc_store offset=\\index\n.endr\n.endm\n\n// void ff_hevc_idct_NxN_dc_DEPTH_neon(int16_t *coeffs)\n.macro idct_dc size\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_10_neon, export=1\n        ldrsh           w1, [x0]\n        add             w1, w1, #1\n        asr             w1, w1, #1\n        add             w1, w1, #(1 << (13 - 10))\n        asr             w1, w1, #(14 - 10)\n        b               2f\nendfunc\n\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_12_neon, export=1\n        ldrsh           w1, [x0]\n        add             w1, w1, #1\n        asr             w1, w1, #1\n        add             w1, w1, #(1 << (13 - 12))\n        asr             w1, w1, #(14 - 12)\n        b               2f\nendfunc\n\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_8_neon, export=1\n        ldrsh           w1, [x0]\n        add             w1, w1, #1\n        asr             w1, w1, #1\n        add             w1, w1, #(1 << (13 - 8))\n        asr             w1, w1, #(14 - 8)\n2:\n        dup             v0.8h, w1\n.if \\size < 8\n        stp             q0, q0, [x0]\n.elseif \\size < 16\n        idct_8x8_dc_store 0x0\n.elseif \\size < 32\n        idct_16x16_dc_store\n.else\n        add             x2, x0, #(32 * 32 * 2)\n1:\n        idct_16x16_dc_store", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:24", "text": "endfunc\n\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_8_neon, export=1\n        ldrsh           w1, [x0]\n        add             w1, w1, #1\n        asr             w1, w1, #1\n        add             w1, w1, #(1 << (13 - 8))\n        asr             w1, w1, #(14 - 8)\n2:\n        dup             v0.8h, w1\n.if \\size < 8\n        stp             q0, q0, [x0]\n.elseif \\size < 16\n        idct_8x8_dc_store 0x0\n.elseif \\size < 32\n        idct_16x16_dc_store\n.else\n        add             x2, x0, #(32 * 32 * 2)\n1:\n        idct_16x16_dc_store\n        add             x0, x0, #(16 * 16 * 2)\n        cmp             x0, x2\n        b.lt            1b\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc 4\nidct_dc 8\nidct_dc 16\nidct_dc 32", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 921, "line_end": 952}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:23", "text": "tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #7\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #12\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        st1             {v28.4h-v31.4h}, [x0]\n        ret\nendfunc\n\n.macro idct_8x8_dc_store offset\n.irp    i, 0x0, 0x20, 0x40, 0x60\n        stp             q0, q0, [x0, #(\\offset + \\i)]\n.endr\n.endm\n\n.macro idct_16x16_dc_store\n.irp    index, 0x0, 0x80, 0x100, 0x180\n        idct_8x8_dc_store offset=\\index\n.endr\n.endm\n\n// void ff_hevc_idct_NxN_dc_DEPTH_neon(int16_t *coeffs)\n.macro idct_dc size, bitdepth\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           w1, [x0]\n        add             w1, w1, #1\n        asr             w1, w1, #1\n        add             w1, w1, #(1 << (13 - \\bitdepth))\n        asr             w1, w1, #(14 - \\bitdepth)\n        dup             v0.8h, w1\n\n.if \\size < 8\n        stp             q0, q0, [x0]\n.elseif \\size < 16\n        idct_8x8_dc_store 0x0\n.elseif \\size < 32\n        idct_16x16_dc_store\n.else\n        add             x2, x0, #(32 * 32 * 2)\n1:\n        idct_16x16_dc_store\n        add             x0, x0, #(16 * 16 * 2)\n        cmp             x0, x2\n        b.lt            1b\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc 4, 8\nidct_dc 4, 10\n\nidct_dc 8, 8\nidct_dc 8, 10\n\nidct_dc 16, 8\nidct_dc 16, 10\n\nidct_dc 32, 8", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "5977bff569b1e1feecf681059472f4106c1573cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5977bff569b1e1feecf681059472f4106c1573cb/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:24", "text": "1:\n        idct_16x16_dc_store\n        add             x0, x0, #(16 * 16 * 2)\n        cmp             x0, x2\n        b.lt            1b\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc 4, 8\nidct_dc 4, 10\n\nidct_dc 8, 8\nidct_dc 8, 10\n\nidct_dc 16, 8\nidct_dc 16, 10\n\nidct_dc 32, 8\nidct_dc 32, 10", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "5977bff569b1e1feecf681059472f4106c1573cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5977bff569b1e1feecf681059472f4106c1573cb/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 921, "line_end": 941}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:22", "text": "idct_32x32 10\n\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        saddl           v0.4s, \\r0, \\r2         // c0 = src0 + src2\n        saddl           v1.4s, \\r2, \\r3         // c1 = src2 + src3\n        ssubl           v2.4s, \\r0, \\r3         // c2 = src0 - src3\n        smull           v3.4s, \\r1, v21.4h      // c3 = 74 * src1\n\n        saddl           v7.4s, \\r0, \\r3         // src0 + src3\n        ssubw           v7.4s, v7.4s, \\r2       // src0 - src2 + src3\n        mul             v7.4s, v7.4s, v18.4s    // dst2 = 74 * (src0 - src2 + src3)\n\n        mul             v5.4s, v0.4s, v19.4s    // 29 * c0\n        mul             v6.4s, v1.4s, v20.4s    // 55 * c1\n        add             v5.4s, v5.4s, v6.4s     // 29 * c0 + 55 * c1\n        add             v5.4s, v5.4s, v3.4s     // dst0 = 29 * c0 + 55 * c1 + c3\n\n        mul             v1.4s, v1.4s, v19.4s    // 29 * c1\n        mul             v6.4s, v2.4s, v20.4s    // 55 * c2\n        sub             v6.4s, v6.4s, v1.4s     // 55 * c2 - 29 * c1\n        add             v6.4s, v6.4s, v3.4s     // dst1 = 55 * c2 - 29 * c1 + c3\n\n        mul             v0.4s, v0.4s, v20.4s    // 55 * c0\n        mul             v2.4s, v2.4s, v19.4s    // 29 * c2\n        add             v0.4s, v0.4s, v2.4s     // 55 * c0 + 29 * c2\n        sub             v0.4s, v0.4s, v3.4s     // dst3 = 55 * c0 + 29 * c2 - c3\n\n        sqrshrn         \\r0, v5.4s, \\shift\n        sqrshrn         \\r1, v6.4s, \\shift\n        sqrshrn         \\r2, v7.4s, \\shift\n        sqrshrn         \\r3, v0.4s, \\shift\n.endm\n\nfunction ff_hevc_transform_luma_4x4_neon_8, export=1\n        ld1             {v28.4h-v31.4h}, [x0]\n        movi            v18.4s, #74\n        movi            v19.4s, #29\n        movi            v20.4s, #55\n        movi            v21.4h, #74\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #7\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #12\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        st1             {v28.4h-v31.4h}, [x0]\n        ret\nendfunc\n\n// void ff_hevc_idct_NxN_dc_DEPTH_neon(int16_t *coeffs)\n.macro idct_dc size, bitdepth\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_\\bitdepth\\()_neon, export=1\n        ld1r            {v4.8h}, [x0]\n        srshr           v4.8h,  v4.8h,  #1\n        srshr           v0.8h,  v4.8h,  #(14 - \\bitdepth)\n        srshr           v1.8h,  v4.8h,  #(14 - \\bitdepth)\n.if \\size > 4\n        srshr           v2.8h,  v4.8h,  #(14 - \\bitdepth)\n        srshr           v3.8h,  v4.8h,  #(14 - \\bitdepth)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:23", "text": "tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #7\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        tr4_luma_shift  v28.4h, v29.4h, v30.4h, v31.4h, #12\n        transpose_4x4H  v28, v29, v30, v31, v22, v23, v24, v25\n\n        st1             {v28.4h-v31.4h}, [x0]\n        ret\nendfunc\n\n// void ff_hevc_idct_NxN_dc_DEPTH_neon(int16_t *coeffs)\n.macro idct_dc size, bitdepth\nfunction ff_hevc_idct_\\size\\()x\\size\\()_dc_\\bitdepth\\()_neon, export=1\n        ld1r            {v4.8h}, [x0]\n        srshr           v4.8h,  v4.8h,  #1\n        srshr           v0.8h,  v4.8h,  #(14 - \\bitdepth)\n        srshr           v1.8h,  v4.8h,  #(14 - \\bitdepth)\n.if \\size > 4\n        srshr           v2.8h,  v4.8h,  #(14 - \\bitdepth)\n        srshr           v3.8h,  v4.8h,  #(14 - \\bitdepth)\n.if \\size > 16 /* dc 32x32 */\n        mov             x2,  #4\n1:\n        subs            x2,  x2, #1\n.endif\n        add             x12,  x0, #64\n        mov             x13,  #128\n.if \\size > 8 /* dc 16x16 */\n        st1             {v0.8h-v3.8h},  [x0], x13\n        st1             {v0.8h-v3.8h}, [x12], x13\n        st1             {v0.8h-v3.8h},  [x0], x13\n        st1             {v0.8h-v3.8h}, [x12], x13\n        st1             {v0.8h-v3.8h},  [x0], x13\n        st1             {v0.8h-v3.8h}, [x12], x13\n.endif /* dc 8x8 */\n        st1             {v0.8h-v3.8h},  [x0], x13\n        st1             {v0.8h-v3.8h}, [x12], x13\n.if \\size > 16 /* dc 32x32 */\n        bne             1b\n.endif\n.else /* dc 4x4 */\n        st1             {v0.8h-v1.8h},  [x0]\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc 4, 8\nidct_dc 4, 10\n\nidct_dc 8, 8\nidct_dc 8, 10\n\nidct_dc 16, 8\nidct_dc 16, 10\n\nidct_dc 32, 8\nidct_dc 32, 10", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 881, "line_end": 938}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_idct_neon.S:24", "text": ".else /* dc 4x4 */\n        st1             {v0.8h-v1.8h},  [x0]\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc 4, 8\nidct_dc 4, 10\n\nidct_dc 8, 8\nidct_dc 8, 10\n\nidct_dc 16, 8\nidct_dc 16, 10\n\nidct_dc 32, 8\nidct_dc 32, 10", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_idct_neon.S", "line_start": 921, "line_end": 938}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_sao_neon.S:1", "text": "/* -*-arm64-*-\n * vim: syntax=arm64asm\n *\n * AArch64 NEON optimised SAO functions for HEVC decoding\n *\n * Copyright (c) 2022 J. Dekker <jdek@itanimul.li>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define MAX_PB_SIZE 64\n#define AV_INPUT_BUFFER_PADDING_SIZE 64\n#define SAO_STRIDE (2*MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)\n\n// void sao_band_filter(uint8_t *_dst, uint8_t *_src,\n//                      ptrdiff_t stride_dst, ptrdiff_t stride_src,\n//                      int16_t *sao_offset_val, int sao_left_class,\n//                      int width, int height)\nfunction ff_hevc_sao_band_filter_8x8_8_neon, export=1\n        stp             xzr, xzr, [sp, #-64]!\n        stp             xzr, xzr, [sp, #16]\n        stp             xzr, xzr, [sp, #32]\n        stp             xzr, xzr, [sp, #48]\n        mov             w8,  #4\n0:      ldrsh           x9, [x4,  x8, lsl #1]      // sao_offset_val[k+1]\n        subs            w8,  w8,  #1\n        add             w10, w8,  w5               // k + sao_left_class\n        and             w10, w10, #0x1F\n        strh            w9, [sp, x10, lsl #1]\n        bne             0b\n        add             w6,  w6,  #7\n        bic             w6,  w6,  #7\n        ld1             {v16.16b-v19.16b}, [sp], #64\n        sub             x2,  x2,  x6\n        sub             x3,  x3,  x6\n        movi            v20.8h,   #1\n1:      mov             w8,  w6                    // beginning of line\n2:      // Simple layout for accessing 16bit values\n        // with 8bit LUT.\n        //\n        //   00  01  02  03  04  05  06  07\n        // +----------------------------------->\n        // |xDE#xAD|xCA#xFE|xBE#xEF|xFE#xED|....\n        // +----------------------------------->", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_sao_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_sao_neon.S:2", "text": "0:      ldrsh           x9, [x4,  x8, lsl #1]      // sao_offset_val[k+1]\n        subs            w8,  w8,  #1\n        add             w10, w8,  w5               // k + sao_left_class\n        and             w10, w10, #0x1F\n        strh            w9, [sp, x10, lsl #1]\n        bne             0b\n        add             w6,  w6,  #7\n        bic             w6,  w6,  #7\n        ld1             {v16.16b-v19.16b}, [sp], #64\n        sub             x2,  x2,  x6\n        sub             x3,  x3,  x6\n        movi            v20.8h,   #1\n1:      mov             w8,  w6                    // beginning of line\n2:      // Simple layout for accessing 16bit values\n        // with 8bit LUT.\n        //\n        //   00  01  02  03  04  05  06  07\n        // +----------------------------------->\n        // |xDE#xAD|xCA#xFE|xBE#xEF|xFE#xED|....\n        // +----------------------------------->\n        //    i-0     i-1     i-2     i-3\n        ld1             {v2.8b}, [x1], #8          // dst[x] = av_clip_pixel(src[x] + offset_table[src[x] >> shift]);\n        subs            w8, w8,  #8\n        uxtl            v0.8h,  v2.8b              // load src[x]\n        ushr            v2.8h,  v0.8h, #3          // >> BIT_DEPTH - 3\n        shl             v1.8h,  v2.8h, #1          // low (x2, accessing short)\n        add             v3.8h,  v1.8h, v20.8h      // +1 access upper short\n        sli             v1.8h,  v3.8h, #8          // shift insert index to upper byte\n        tbx             v2.16b, {v16.16b-v19.16b}, v1.16b // table\n        add             v1.8h,  v0.8h, v2.8h       // src[x] + table\n        sqxtun          v4.8b,  v1.8h              // clip + narrow\n        st1             {v4.8b}, [x0], #8          // store\n        // done 8 pixels\n        bne             2b\n        subs            w7, w7,  #1                // finished line, prep. new\n        add             x0, x0,  x2                // dst += stride_dst\n        add             x1, x1,  x3                // src += stride_src\n        bne             1b\n        ret\nendfunc\n\n.Lsao_edge_pos:\n.word 1 // horizontal\n.word SAO_STRIDE // vertical\n.word SAO_STRIDE + 1 // 45 degree\n.word SAO_STRIDE - 1 // 135 degree\n\n// ff_hevc_sao_edge_filter_16x16_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                      int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lsao_edge_pos\n        ld1             {v3.8h}, [x3]              // load sao_offset_val\n        add             w5,  w5,  #0xF\n        bic             w5,  w5,  #0xF\n        ldr             w4, [x7, w4, uxtw #2]      // stride_src\n        mov             v3.h[7], v3.h[0]           // reorder to [1,2,0,3,4]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        // split 16bit values into two tables", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_sao_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_sao_neon.S:3", "text": ".Lsao_edge_pos:\n.word 1 // horizontal\n.word SAO_STRIDE // vertical\n.word SAO_STRIDE + 1 // 45 degree\n.word SAO_STRIDE - 1 // 135 degree\n\n// ff_hevc_sao_edge_filter_16x16_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                      int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_16x16_8_neon, export=1\n        adr             x7, .Lsao_edge_pos\n        ld1             {v3.8h}, [x3]              // load sao_offset_val\n        add             w5,  w5,  #0xF\n        bic             w5,  w5,  #0xF\n        ldr             w4, [x7, w4, uxtw #2]      // stride_src\n        mov             v3.h[7], v3.h[0]           // reorder to [1,2,0,3,4]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        // split 16bit values into two tables\n        uzp2            v1.16b, v3.16b, v3.16b     // sao_offset_val -> upper\n        uzp1            v0.16b, v3.16b, v3.16b     // sao_offset_val -> lower\n        movi            v2.16b, #2\n        mov             x15, #SAO_STRIDE\n        // strides between end of line and next src/dst\n        sub             x15, x15, x5               // stride_src - width\n        sub             x16, x2, x5                // stride_dst - width\n        mov             x11, x1                    // copy base src\n1:      // new line\n        mov             x14, x5                    // copy width\n        sub             x12, x11, x4               // src_a (prev) = src - sao_edge_pos\n        add             x13, x11, x4               // src_b (next) = src + sao_edge_pos\n2:      // process 16 bytes\n        ld1             {v3.16b}, [x11], #16       // load src\n        ld1             {v4.16b}, [x12], #16       // load src_a (prev)\n        ld1             {v5.16b}, [x13], #16       // load src_b (next)\n        subs            x14, x14, #16\n        cmhi            v16.16b, v4.16b, v3.16b    // (prev > cur)\n        cmhi            v17.16b, v3.16b, v4.16b    // (cur > prev)\n        cmhi            v18.16b, v5.16b, v3.16b    // (next > cur)\n        cmhi            v19.16b, v3.16b, v5.16b    // (cur > next)\n        sub             v20.16b, v16.16b, v17.16b  // diff0 = CMP(cur, prev) = (cur > prev) - (cur < prev)\n        sub             v21.16b, v18.16b, v19.16b  // diff1 = CMP(cur, next) = (cur > next) - (cur < next)\n        add             v20.16b, v20.16b, v21.16b  // diff = diff0 + diff1\n        add             v20.16b, v20.16b, v2.16b   // offset_val = diff + 2\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b              // src[0:7]\n        uxtl2           v21.8h, v3.16b             // src[7:15]\n        zip1            v18.16b, v16.16b, v17.16b  // sao_offset_val lower ->\n        zip2            v19.16b, v16.16b, v17.16b  // sao_offset_val upper ->\n        sqadd           v20.8h, v18.8h, v20.8h     // + sao_offset_val\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v3.8b, v20.8h\n        sqxtun2         v3.16b, v21.8h\n        st1             {v3.16b}, [x0], #16\n        // filtered 16 bytes\n        b.ne            2b                         // do we have width to filter?\n        // no width to filter, setup next line\n        subs            w6, w6, #1                 // filtered line", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_sao_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_sao_neon.S:4", "text": "cmhi            v19.16b, v3.16b, v5.16b    // (cur > next)\n        sub             v20.16b, v16.16b, v17.16b  // diff0 = CMP(cur, prev) = (cur > prev) - (cur < prev)\n        sub             v21.16b, v18.16b, v19.16b  // diff1 = CMP(cur, next) = (cur > next) - (cur < next)\n        add             v20.16b, v20.16b, v21.16b  // diff = diff0 + diff1\n        add             v20.16b, v20.16b, v2.16b   // offset_val = diff + 2\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b              // src[0:7]\n        uxtl2           v21.8h, v3.16b             // src[7:15]\n        zip1            v18.16b, v16.16b, v17.16b  // sao_offset_val lower ->\n        zip2            v19.16b, v16.16b, v17.16b  // sao_offset_val upper ->\n        sqadd           v20.8h, v18.8h, v20.8h     // + sao_offset_val\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v3.8b, v20.8h\n        sqxtun2         v3.16b, v21.8h\n        st1             {v3.16b}, [x0], #16\n        // filtered 16 bytes\n        b.ne            2b                         // do we have width to filter?\n        // no width to filter, setup next line\n        subs            w6, w6, #1                 // filtered line\n        add             x11, x11, x15              // stride src to next line\n        add             x0, x0, x16                // stride dst to next line\n        b.ne            1b                         // do we have lines to process?\n        // no lines to filter\n        ret\nendfunc\n\n// ff_hevc_sao_edge_filter_8x8_8_neon(char *dst, char *src, ptrdiff stride_dst,\n//                                    int16 *sao_offset_val, int eo, int width, int height)\nfunction ff_hevc_sao_edge_filter_8x8_8_neon, export=1\n        adr             x7, .Lsao_edge_pos\n        ldr             w4, [x7, w4, uxtw #2]\n        ld1             {v3.8h}, [x3]\n        mov             v3.h[7], v3.h[0]\n        mov             v3.h[0], v3.h[1]\n        mov             v3.h[1], v3.h[2]\n        mov             v3.h[2], v3.h[7]\n        uzp2            v1.16b, v3.16b, v3.16b\n        uzp1            v0.16b, v3.16b, v3.16b\n        movi            v2.16b, #2\n        add             x16, x0, x2\n        lsl             x2,  x2, #1\n        mov             x15, #SAO_STRIDE\n        mov             x8,  x1\n        sub             x9,  x1, x4\n        add             x10, x1, x4\n1:      ld1             {v3.d}[0], [ x8], x15\n        ld1             {v4.d}[0], [ x9], x15\n        ld1             {v5.d}[0], [x10], x15\n        ld1             {v3.d}[1], [ x8], x15\n        ld1             {v4.d}[1], [ x9], x15\n        ld1             {v5.d}[1], [x10], x15\n        subs            w6, w6, #2\n        cmhi            v16.16b, v4.16b, v3.16b\n        cmhi            v17.16b, v3.16b, v4.16b\n        cmhi            v18.16b, v5.16b, v3.16b\n        cmhi            v19.16b, v3.16b, v5.16b\n        sub             v20.16b, v16.16b, v17.16b\n        sub             v21.16b, v18.16b, v19.16b\n        add             v20.16b, v20.16b, v21.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_sao_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcdsp_sao_neon.S:5", "text": "add             x16, x0, x2\n        lsl             x2,  x2, #1\n        mov             x15, #SAO_STRIDE\n        mov             x8,  x1\n        sub             x9,  x1, x4\n        add             x10, x1, x4\n1:      ld1             {v3.d}[0], [ x8], x15\n        ld1             {v4.d}[0], [ x9], x15\n        ld1             {v5.d}[0], [x10], x15\n        ld1             {v3.d}[1], [ x8], x15\n        ld1             {v4.d}[1], [ x9], x15\n        ld1             {v5.d}[1], [x10], x15\n        subs            w6, w6, #2\n        cmhi            v16.16b, v4.16b, v3.16b\n        cmhi            v17.16b, v3.16b, v4.16b\n        cmhi            v18.16b, v5.16b, v3.16b\n        cmhi            v19.16b, v3.16b, v5.16b\n        sub             v20.16b, v16.16b, v17.16b\n        sub             v21.16b, v18.16b, v19.16b\n        add             v20.16b, v20.16b, v21.16b\n        add             v20.16b, v20.16b, v2.16b\n        tbl             v16.16b, {v0.16b}, v20.16b\n        tbl             v17.16b, {v1.16b}, v20.16b\n        uxtl            v20.8h, v3.8b\n        uxtl2           v21.8h, v3.16b\n        zip1            v18.16b, v16.16b, v17.16b\n        zip2            v19.16b, v16.16b, v17.16b\n        sqadd           v20.8h, v18.8h, v20.8h\n        sqadd           v21.8h, v19.8h, v21.8h\n        sqxtun          v6.8b, v20.8h\n        sqxtun          v7.8b, v21.8h\n        st1             {v6.8b}, [ x0], x2\n        st1             {v7.8b}, [x16], x2\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hevcdsp_sao_neon.S", "line_start": 161, "line_end": 196}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:2", "text": "// =============================================================================\n// DC Prediction\n// =============================================================================\n\n/*\n * DC prediction algorithm:\n * 1. dc = sum(top[0..size-1]) + sum(left[0..size-1]) + size\n * 2. dc >>= (log2_size + 1)\n * 3. Fill block with dc value\n * 4. If c_idx == 0 && size < 32: smooth edges\n *    - POS(0,0) = (left[0] + 2*dc + top[0] + 2) >> 2\n *    - First row: (top[x] + 3*dc + 2) >> 2\n *    - First col: (left[y] + 3*dc + 2) >> 2\n*/\n\n// -----------------------------------------------------------------------------\n// pred_dc_4x4_8: DC prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_4x4_8_neon, export=1\n        // Load top[0..3] and left[0..3]\n        ldr             s0, [x1]                // top[0..3]\n        ldr             s1, [x2]                // left[0..3]\n\n        // Sum using NEON\n        uaddlv          h2, v0.8b               // sum top (only 4 valid bytes)\n        uaddlv          h3, v1.8b               // sum left (only 4 valid bytes)\n        add             v2.4h, v2.4h, v3.4h     // total sum\n\n        // Add rounding and shift by 3 (urshr = unsigned rounding shift right)\n        add             x5, x0, x3, lsl #1      // row 2 address (early for str)\n        urshr           v2.4h, v2.4h, #3        // (sum + 4) >> 3\n        dup             v2.8b, v2.b[0]          // broadcast dc\n\n        // Store 4 rows\n        str             s2, [x0]\n        str             s2, [x0, x3]\n        str             s2, [x5]\n        str             s2, [x5, x3]\n\n        // Edge smoothing for luma only\n        cbnz            w4, 2f\n\n        // Compute 3*dc in NEON domain (16-bit)\n        uxtl            v3.8h, v2.8b            // widen dc to 16-bit\n        add             v6.8h, v3.8h, v3.8h     // 2*dc\n        add             v3.8h, v6.8h, v3.8h     // 3*dc\n\n        // Widen top and left to 16-bit\n        uxtl            v4.8h, v0.8b            // top[0..3] widened\n        uxtl            v5.8h, v1.8b            // left[0..3] widened\n\n        // Corner: (top[0] + left[0] + 2*dc + 2) >> 2\n        // First row: (top[x] + 3*dc + 2) >> 2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:3", "text": "// Store 4 rows\n        str             s2, [x0]\n        str             s2, [x0, x3]\n        str             s2, [x5]\n        str             s2, [x5, x3]\n\n        // Edge smoothing for luma only\n        cbnz            w4, 2f\n\n        // Compute 3*dc in NEON domain (16-bit)\n        uxtl            v3.8h, v2.8b            // widen dc to 16-bit\n        add             v6.8h, v3.8h, v3.8h     // 2*dc\n        add             v3.8h, v6.8h, v3.8h     // 3*dc\n\n        // Widen top and left to 16-bit\n        uxtl            v4.8h, v0.8b            // top[0..3] widened\n        uxtl            v5.8h, v1.8b            // left[0..3] widened\n\n        // Corner: (top[0] + left[0] + 2*dc + 2) >> 2\n        // First row: (top[x] + 3*dc + 2) >> 2\n        // First column: (left[y] + 3*dc + 2) >> 2\n        add             v7.4h, v4.4h, v5.4h     // corner: top[x] + left[x] (only lane 0 matters)\n        add             v4.8h, v4.8h, v3.8h     // first row: top[x] + 3*dc\n        add             v5.8h, v5.8h, v3.8h     // first column: left[y] + 3*dc\n        add             v7.4h, v7.4h, v6.4h     // corner: + 2*dc\n        rshrn           v4.8b, v4.8h, #2        // first row: (x + 2) >> 2\n        rshrn           v5.8b, v5.8h, #2        // first column: (x + 2) >> 2\n        rshrn           v7.8b, v7.8h, #2        // corner: (x + 2) >> 2\n\n        // Overwrite corner byte in row result\n        ins             v4.b[0], v7.b[0]\n\n        // Store smoothed first row\n        str             s4, [x0]\n\n        // Store smoothed column for y=1..3\n        add             x5, x0, x3\n        add             x6, x0, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        st1             {v5.b}[1], [x5]\n        st1             {v5.b}[2], [x6]\n        st1             {v5.b}[3], [x7]\n\n2:      ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_dc_8x8_8: DC prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_8x8_8_neon, export=1\n        // Load top[0..7] and left[0..7]\n        ldr             d0, [x1]                // top[0..7]\n        ldr             d1, [x2]                // left[0..7]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:4", "text": "st1             {v5.b}[2], [x6]\n        st1             {v5.b}[3], [x7]\n\n2:      ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_dc_8x8_8: DC prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_8x8_8_neon, export=1\n        // Load top[0..7] and left[0..7]\n        ldr             d0, [x1]                // top[0..7]\n        ldr             d1, [x2]                // left[0..7]\n\n        // Sum all pixels\n        uaddlv          h2, v0.8b               // sum top\n        uaddlv          h3, v1.8b               // sum left\n        add             v2.4h, v2.4h, v3.4h     // total sum\n\n        // Add rounding and shift by 4\n        urshr           v2.4h, v2.4h, #4        // (sum + 8) >> 4\n        dup             v2.8b, v2.b[0]          // broadcast dc\n\n        // Check if edge smoothing needed (luma only)\n        cbnz            w4, 2f\n\n        // === Luma path: fill + edge smoothing combined ===\n\n        // Compute 3*dc in NEON domain (16-bit)\n        uxtl            v3.8h, v2.8b            // widen dc to 16-bit\n        add             v6.8h, v3.8h, v3.8h     // 2*dc\n        add             v3.8h, v6.8h, v3.8h     // 3*dc\n\n        // Widen top and left to 16-bit\n        uxtl            v4.8h, v0.8b\n        uxtl            v5.8h, v1.8b\n\n        // Corner: (top[0] + left[0] + 2*dc + 2) >> 2\n        // Smoothed first row: (top[x] + 3*dc + 2) >> 2\n        // Smoothed column: (left[y] + 3*dc + 2) >> 2\n        add             v7.4h, v4.4h, v5.4h     // corner: top[x] + left[x] (only lane 0 matters)\n        add             v4.8h, v4.8h, v3.8h     // first row: top[x] + 3*dc\n        add             v5.8h, v5.8h, v3.8h     // column: left[y] + 3*dc\n        add             v7.4h, v7.4h, v6.4h     // corner: + 2*dc\n        rshrn           v4.8b, v4.8h, #2        // first row: (x + 2) >> 2\n        rshrn           v5.8b, v5.8h, #2        // column: (x + 2) >> 2\n        rshrn           v7.8b, v7.8h, #2        // corner: (x + 2) >> 2\n        // Overwrite corner byte\n        ins             v4.b[0], v7.b[0]\n\n        // Store row 0 (smoothed)\n        str             d4, [x0]\n\n        // Store DC fill for rows 1-7 with pre-computed addresses", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:5", "text": "uxtl            v4.8h, v0.8b\n        uxtl            v5.8h, v1.8b\n\n        // Corner: (top[0] + left[0] + 2*dc + 2) >> 2\n        // Smoothed first row: (top[x] + 3*dc + 2) >> 2\n        // Smoothed column: (left[y] + 3*dc + 2) >> 2\n        add             v7.4h, v4.4h, v5.4h     // corner: top[x] + left[x] (only lane 0 matters)\n        add             v4.8h, v4.8h, v3.8h     // first row: top[x] + 3*dc\n        add             v5.8h, v5.8h, v3.8h     // column: left[y] + 3*dc\n        add             v7.4h, v7.4h, v6.4h     // corner: + 2*dc\n        rshrn           v4.8b, v4.8h, #2        // first row: (x + 2) >> 2\n        rshrn           v5.8b, v5.8h, #2        // column: (x + 2) >> 2\n        rshrn           v7.8b, v7.8h, #2        // corner: (x + 2) >> 2\n        // Overwrite corner byte\n        ins             v4.b[0], v7.b[0]\n\n        // Store row 0 (smoothed)\n        str             d4, [x0]\n\n        // Store DC fill for rows 1-7 with pre-computed addresses\n        add             x15, x0, x3, lsl #1\n        str             d2, [x0, x3]\n        add             x5, x0, x3, lsl #2\n        str             d2, [x15]\n        str             d2, [x15, x3]\n        str             d2, [x5]\n        add             x15, x5, x3, lsl #1\n        str             d2, [x5, x3]\n        str             d2, [x15]\n        str             d2, [x15, x3]\n\n        // Scatter-store column bytes with pre-computed addresses\n        add             x5, x0, x3\n        add             x6, x0, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        add             x8, x0, x3, lsl #2\n        st1             {v5.b}[1], [x5]\n        st1             {v5.b}[2], [x6]\n        st1             {v5.b}[3], [x7]\n        st1             {v5.b}[4], [x8]\n        add             x5, x8, x3\n        add             x6, x8, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        st1             {v5.b}[5], [x5]\n        st1             {v5.b}[6], [x6]\n        st1             {v5.b}[7], [x7]\n        ret\n\n2:      // === Chroma path: plain DC fill ===\n        str             d2, [x0]\n        add             x15, x0, x3, lsl #1\n        str             d2, [x0, x3]\n        add             x0, x0, x3, lsl #2\n        str             d2, [x15]\n        str             d2, [x15, x3]\n        str             d2, [x0]\n        add             x15, x0, x3, lsl #1\n        str             d2, [x0, x3]\n        str             d2, [x15]\n        str             d2, [x15, x3]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:6", "text": "add             x5, x8, x3\n        add             x6, x8, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        st1             {v5.b}[5], [x5]\n        st1             {v5.b}[6], [x6]\n        st1             {v5.b}[7], [x7]\n        ret\n\n2:      // === Chroma path: plain DC fill ===\n        str             d2, [x0]\n        add             x15, x0, x3, lsl #1\n        str             d2, [x0, x3]\n        add             x0, x0, x3, lsl #2\n        str             d2, [x15]\n        str             d2, [x15, x3]\n        str             d2, [x0]\n        add             x15, x0, x3, lsl #1\n        str             d2, [x0, x3]\n        str             d2, [x15]\n        str             d2, [x15, x3]\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_dc_16x16_8: DC prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_16x16_8_neon, export=1\n        // Load top[0..15] and left[0..15]\n        ldr             q0, [x1]                // top[0..15]\n        ldr             q1, [x2]                // left[0..15]\n\n        // Sum all pixels\n        uaddlv          h2, v0.16b              // sum top\n        uaddlv          h3, v1.16b              // sum left\n        add             v2.4h, v2.4h, v3.4h\n\n        // Add rounding and shift by 5\n        urshr           v2.4h, v2.4h, #5        // (sum + 16) >> 5\n        dup             v2.16b, v2.b[0]         // broadcast dc\n\n        // Check if edge smoothing needed (luma only)\n        cbnz            w4, 2f\n\n        // === Luma path: fill + edge smoothing combined ===\n\n        // Compute 3*dc in NEON domain (16-bit)\n        uxtl            v3.8h, v2.8b            // widen dc to 16-bit\n        add             v6.8h, v3.8h, v3.8h     // 2*dc\n        add             v3.8h, v6.8h, v3.8h     // 3*dc\n\n        // Widen top to 16-bit\n        uxtl            v4.8h, v0.8b\n        uxtl2           v5.8h, v0.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:7", "text": "add             v2.4h, v2.4h, v3.4h\n\n        // Add rounding and shift by 5\n        urshr           v2.4h, v2.4h, #5        // (sum + 16) >> 5\n        dup             v2.16b, v2.b[0]         // broadcast dc\n\n        // Check if edge smoothing needed (luma only)\n        cbnz            w4, 2f\n\n        // === Luma path: fill + edge smoothing combined ===\n\n        // Compute 3*dc in NEON domain (16-bit)\n        uxtl            v3.8h, v2.8b            // widen dc to 16-bit\n        add             v6.8h, v3.8h, v3.8h     // 2*dc\n        add             v3.8h, v6.8h, v3.8h     // 3*dc\n\n        // Widen top to 16-bit\n        uxtl            v4.8h, v0.8b\n        uxtl2           v5.8h, v0.16b\n\n        // Corner: (top[0] + left[0] + 2*dc + 2) >> 2\n        // Smoothed first row: (top[x] + 3*dc + 2) >> 2\n        uxtl            v7.8h, v1.8b            // widen left[0..7] (reuse for corner lane 0)\n        add             v16.4h, v4.4h, v7.4h    // corner: top[x] + left[x] (only lane 0 matters)\n        add             v4.8h, v4.8h, v3.8h     // first row lo: top[x] + 3*dc\n        add             v5.8h, v5.8h, v3.8h     // first row hi: top[x] + 3*dc\n        add             v16.4h, v16.4h, v6.4h   // corner: + 2*dc\n        rshrn           v4.8b, v4.8h, #2        // first row lo: >> 2\n        rshrn2          v4.16b, v5.8h, #2       // first row hi: >> 2 (smoothed first row)\n        rshrn           v16.8b, v16.8h, #2      // corner: >> 2\n        // Overwrite corner byte\n        ins             v4.b[0], v16.b[0]\n\n        // Smoothed column: (left[y] + 3*dc + 2) >> 2\n        uxtl            v5.8h, v1.8b\n        uxtl2           v6.8h, v1.16b\n        add             v5.8h, v5.8h, v3.8h\n        add             v6.8h, v6.8h, v3.8h\n        rshrn           v5.8b, v5.8h, #2\n        rshrn2          v5.16b, v6.8h, #2       // smoothed column values\n\n        // Store row 0 (smoothed)\n        str             q4, [x0]\n\n        // Store DC fill for all 15 remaining rows\n        add             x15, x0, x3, lsl #1\n        str             q2, [x0, x3]            // row 1\n        add             x5, x0, x3, lsl #2\n        str             q2, [x15]               // row 2\n        str             q2, [x15, x3]           // row 3\n        str             q2, [x5]                // row 4\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 5\n        add             x5, x5, x3, lsl #2\n        str             q2, [x15]               // row 6\n        str             q2, [x15, x3]           // row 7\n        str             q2, [x5]                // row 8\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 9\n        add             x5, x5, x3, lsl #2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:8", "text": "// Store row 0 (smoothed)\n        str             q4, [x0]\n\n        // Store DC fill for all 15 remaining rows\n        add             x15, x0, x3, lsl #1\n        str             q2, [x0, x3]            // row 1\n        add             x5, x0, x3, lsl #2\n        str             q2, [x15]               // row 2\n        str             q2, [x15, x3]           // row 3\n        str             q2, [x5]                // row 4\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 5\n        add             x5, x5, x3, lsl #2\n        str             q2, [x15]               // row 6\n        str             q2, [x15, x3]           // row 7\n        str             q2, [x5]                // row 8\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 9\n        add             x5, x5, x3, lsl #2\n        str             q2, [x15]               // row 10\n        str             q2, [x15, x3]           // row 11\n        str             q2, [x5]                // row 12\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 13\n        str             q2, [x15]               // row 14\n        str             q2, [x15, x3]           // row 15\n\n        // Now scatter-store column bytes over the DC fill\n        add             x5, x0, x3\n        add             x6, x0, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        add             x8, x0, x3, lsl #2\n        st1             {v5.b}[1], [x5]\n        st1             {v5.b}[2], [x6]\n        st1             {v5.b}[3], [x7]\n        st1             {v5.b}[4], [x8]\n        add             x5, x8, x3\n        add             x6, x8, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        add             x9, x8, x3, lsl #2\n        st1             {v5.b}[5], [x5]\n        st1             {v5.b}[6], [x6]\n        st1             {v5.b}[7], [x7]\n        st1             {v5.b}[8], [x9]\n        add             x5, x9, x3\n        add             x6, x9, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        add             x8, x9, x3, lsl #2\n        st1             {v5.b}[9], [x5]\n        st1             {v5.b}[10], [x6]\n        st1             {v5.b}[11], [x7]\n        st1             {v5.b}[12], [x8]\n        add             x5, x8, x3\n        add             x6, x8, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        st1             {v5.b}[13], [x5]\n        st1             {v5.b}[14], [x6]\n        st1             {v5.b}[15], [x7]\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:9", "text": "add             x9, x8, x3, lsl #2\n        st1             {v5.b}[5], [x5]\n        st1             {v5.b}[6], [x6]\n        st1             {v5.b}[7], [x7]\n        st1             {v5.b}[8], [x9]\n        add             x5, x9, x3\n        add             x6, x9, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        add             x8, x9, x3, lsl #2\n        st1             {v5.b}[9], [x5]\n        st1             {v5.b}[10], [x6]\n        st1             {v5.b}[11], [x7]\n        st1             {v5.b}[12], [x8]\n        add             x5, x8, x3\n        add             x6, x8, x3, lsl #1\n        add             x7, x5, x3, lsl #1\n        st1             {v5.b}[13], [x5]\n        st1             {v5.b}[14], [x6]\n        st1             {v5.b}[15], [x7]\n        ret\n\n2:      // === Chroma path: plain DC fill ===\n        str             q2, [x0]                // row 0\n        add             x15, x0, x3, lsl #1\n        str             q2, [x0, x3]            // row 1\n        add             x5, x0, x3, lsl #2\n        str             q2, [x15]               // row 2\n        str             q2, [x15, x3]           // row 3\n        str             q2, [x5]                // row 4\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 5\n        add             x5, x5, x3, lsl #2\n        str             q2, [x15]               // row 6\n        str             q2, [x15, x3]           // row 7\n        str             q2, [x5]                // row 8\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 9\n        add             x5, x5, x3, lsl #2\n        str             q2, [x15]               // row 10\n        str             q2, [x15, x3]           // row 11\n        str             q2, [x5]                // row 12\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 13\n        str             q2, [x15]               // row 14\n        str             q2, [x15, x3]           // row 15\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_dc_32x32_8: DC prediction (no edge smoothing)\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_32x32_8_neon, export=1\n        // Load top[0..31] and left[0..31]\n        ldp             q0, q1, [x1]            // top[0..31]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:10", "text": "str             q2, [x5]                // row 12\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 13\n        str             q2, [x15]               // row 14\n        str             q2, [x15, x3]           // row 15\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_dc_32x32_8: DC prediction (no edge smoothing)\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_32x32_8_neon, export=1\n        // Load top[0..31] and left[0..31]\n        ldp             q0, q1, [x1]            // top[0..31]\n        ldp             q2, q3, [x2]            // left[0..31]\n\n        // Sum all pixels\n        uaddlv          h0, v0.16b\n        uaddlv          h1, v1.16b\n        uaddlv          h2, v2.16b\n        uaddlv          h3, v3.16b\n        add             v0.4h, v0.4h, v1.4h\n        add             v2.4h, v2.4h, v3.4h\n        add             v0.4h, v0.4h, v2.4h\n\n        // Add rounding and shift by 6 (urshr = unsigned rounding shift right)\n        urshr           v0.4h, v0.4h, #6\n        dup             v0.16b, v0.b[0]\n        mov             v1.16b, v0.16b\n\n        // Store 32 rows\n        mov             w6, #32\n2:\n        subs            w6, w6, #1\n        stp             q0, q1, [x0]\n        add             x0, x0, x3\n        b.ne            2b\n\n        // No edge smoothing for 32x32 (size >= 32)\n        ret\nendfunc\n\n// =============================================================================\n// Planar Prediction\n// =============================================================================\n\n/*\n * Planar prediction algorithm:\n * For each pixel (x, y):\n * POS(x,y) = ((size-1-x)*left[y] + (x+1)*top[size] +\n *             (size-1-y)*top[x] + (y+1)*left[size] + size) >> (log2_size+1)\n */\n// -----------------------------------------------------------------------------\n// pred_planar_4x4_8: Planar prediction", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:11", "text": "stp             q0, q1, [x0]\n        add             x0, x0, x3\n        b.ne            2b\n\n        // No edge smoothing for 32x32 (size >= 32)\n        ret\nendfunc\n\n// =============================================================================\n// Planar Prediction\n// =============================================================================\n\n/*\n * Planar prediction algorithm:\n * For each pixel (x, y):\n * POS(x,y) = ((size-1-x)*left[y] + (x+1)*top[size] +\n *             (size-1-y)*top[x] + (y+1)*left[size] + size) >> (log2_size+1)\n */\n// -----------------------------------------------------------------------------\n// pred_planar_4x4_8: Planar prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_planar_4x4_8_neon, export=1\n        // Load reference samples\n        ldr             s0, [x1]                // top[0..3]\n        ldr             s1, [x2]                // left[0..3]\n        ldrb            w4, [x1, #4]            // top[4]\n        ldrb            w5, [x2, #4]            // left[4]\n\n        // Setup weight vectors for x direction\n        movrel          x6, planar_weights_4\n        ldp             d4, d5, [x6]            // weights_dec, weights_inc\n\n        // Precompute base[x] = inc[x]*top[4] + 3*top[x] + left[4] + 4\n        dup             v6.8b, w4               // top[4]\n        umull           v2.8h, v5.8b, v6.8b     // inc[x]*top[4]\n        uxtl            v3.8h, v0.8b            // widen top[x]\n        ushll           v6.8h, v0.8b, #1        // top[x]<<1\n        add             v6.8h, v6.8h, v3.8h     // 3*top[x]\n        add             v2.8h, v2.8h, v6.8h     // + inc*top[4]\n        dup             v5.8h, w5               // left[4] as 16-bit\n        add             v2.8h, v2.8h, v5.8h     // + left[4]  (y=0: (y+1)*left[4]=1*left[4])\n        // v2 = base for row 0 (rounding folded into rshrn below)\n\n        // Precompute decrement: top[x] - left[4]\n        sub             v5.8h, v3.8h, v5.8h     // decrement = top[x] - left[4]\n\n        // Pre-dup all left values\n        dup             v16.8b, v1.b[0]         // left[0]\n        dup             v17.8b, v1.b[1]         // left[1]\n        dup             v18.8b, v1.b[2]         // left[2]\n        dup             v19.8b, v1.b[3]         // left[3]\n\n        // Compute bases for all 4 rows\n        mov             v3.16b, v2.16b          // base0 = base\n        sub             v20.8h, v2.8h, v5.8h    // base1 = base - dec", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:12", "text": "uxtl            v3.8h, v0.8b            // widen top[x]\n        ushll           v6.8h, v0.8b, #1        // top[x]<<1\n        add             v6.8h, v6.8h, v3.8h     // 3*top[x]\n        add             v2.8h, v2.8h, v6.8h     // + inc*top[4]\n        dup             v5.8h, w5               // left[4] as 16-bit\n        add             v2.8h, v2.8h, v5.8h     // + left[4]  (y=0: (y+1)*left[4]=1*left[4])\n        // v2 = base for row 0 (rounding folded into rshrn below)\n\n        // Precompute decrement: top[x] - left[4]\n        sub             v5.8h, v3.8h, v5.8h     // decrement = top[x] - left[4]\n\n        // Pre-dup all left values\n        dup             v16.8b, v1.b[0]         // left[0]\n        dup             v17.8b, v1.b[1]         // left[1]\n        dup             v18.8b, v1.b[2]         // left[2]\n        dup             v19.8b, v1.b[3]         // left[3]\n\n        // Compute bases for all 4 rows\n        mov             v3.16b, v2.16b          // base0 = base\n        sub             v20.8h, v2.8h, v5.8h    // base1 = base - dec\n        sub             v21.8h, v20.8h, v5.8h   // base2 = base1 - dec\n        sub             v22.8h, v21.8h, v5.8h   // base3 = base2 - dec\n\n        // Interleaved row 0/1 computation\n        umull           v6.8h, v4.8b, v16.8b    // row0: dec*left[0]\n        umull           v7.8h, v4.8b, v17.8b    // row1: dec*left[1]\n        add             v6.8h, v6.8h, v3.8h     // row0: + base0\n        add             v7.8h, v7.8h, v20.8h    // row1: + base1\n        rshrn           v6.8b, v6.8h, #3        // row0: >>3\n        rshrn           v7.8b, v7.8h, #3        // row1: >>3\n\n        // Interleaved row 2/3 computation\n        umull           v23.8h, v4.8b, v18.8b   // row2: dec*left[2]\n        st1             {v6.s}[0], [x0], x3     // store row0\n        umull           v24.8h, v4.8b, v19.8b   // row3: dec*left[3]\n        st1             {v7.s}[0], [x0], x3     // store row1\n        add             v23.8h, v23.8h, v21.8h  // row2: + base2\n        add             v24.8h, v24.8h, v22.8h  // row3: + base3\n        rshrn           v23.8b, v23.8h, #3      // row2\n        rshrn           v24.8b, v24.8h, #3      // row3\n        st1             {v23.s}[0], [x0], x3    // store row2\n        str             s24, [x0]               // store row3\n\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_planar_8x8_8: Planar prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_planar_8x8_8_neon, export=1\n        // Load reference samples\n        ldr             d0, [x1]                // top[0..7]\n        ldr             d1, [x2]                // left[0..7]\n        ldrb            w4, [x1, #8]            // top[8]\n        ldrb            w5, [x2, #8]            // left[8]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:13", "text": "st1             {v23.s}[0], [x0], x3    // store row2\n        str             s24, [x0]               // store row3\n\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_planar_8x8_8: Planar prediction\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_planar_8x8_8_neon, export=1\n        // Load reference samples\n        ldr             d0, [x1]                // top[0..7]\n        ldr             d1, [x2]                // left[0..7]\n        ldrb            w4, [x1, #8]            // top[8]\n        ldrb            w5, [x2, #8]            // left[8]\n\n        // Setup weight vectors\n        movrel          x6, planar_weights_8\n        ldp             d4, d5, [x6]            // weights_dec, weights_inc\n\n        // Precompute base[x] = inc[x]*top[8] + 7*top[x] + left[8] + 8\n        dup             v6.8b, w4               // top[8]\n        umull           v2.8h, v5.8b, v6.8b     // inc[x]*top[8]\n        uxtl            v3.8h, v0.8b            // widen top[x]\n        ushll           v6.8h, v0.8b, #3        // top[x]<<3\n        sub             v6.8h, v6.8h, v3.8h     // 7*top[x]\n        add             v2.8h, v2.8h, v6.8h     // + inc*top[8]\n        dup             v5.8h, w5               // left[8] as 16-bit\n        add             v2.8h, v2.8h, v5.8h     // + left[8]\n        // v2 = base for row 0 (rounding folded into rshrn below)\n\n        // Precompute decrement: top[x] - left[8]\n        sub             v5.8h, v3.8h, v5.8h     // decrement\n\n        // Precompute all 8 row bases to break serial dependency chain\n        mov             v16.16b, v2.16b         // base0\n        sub             v17.8h, v16.8h, v5.8h   // base1\n        sub             v18.8h, v17.8h, v5.8h   // base2\n        sub             v19.8h, v18.8h, v5.8h   // base3\n        sub             v20.8h, v19.8h, v5.8h   // base4\n        sub             v21.8h, v20.8h, v5.8h   // base5\n        sub             v22.8h, v21.8h, v5.8h   // base6\n        sub             v23.8h, v22.8h, v5.8h   // base7\n\n        // Rows 0-1\n        dup             v6.8b, v1.b[0]\n        dup             v7.8b, v1.b[1]\n        umull           v2.8h, v4.8b, v6.8b\n        umull           v3.8h, v4.8b, v7.8b\n        add             v2.8h, v2.8h, v16.8h\n        add             v3.8h, v3.8h, v17.8h\n        rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        st1             {v3.d}[0], [x0], x3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:14", "text": "mov             v16.16b, v2.16b         // base0\n        sub             v17.8h, v16.8h, v5.8h   // base1\n        sub             v18.8h, v17.8h, v5.8h   // base2\n        sub             v19.8h, v18.8h, v5.8h   // base3\n        sub             v20.8h, v19.8h, v5.8h   // base4\n        sub             v21.8h, v20.8h, v5.8h   // base5\n        sub             v22.8h, v21.8h, v5.8h   // base6\n        sub             v23.8h, v22.8h, v5.8h   // base7\n\n        // Rows 0-1\n        dup             v6.8b, v1.b[0]\n        dup             v7.8b, v1.b[1]\n        umull           v2.8h, v4.8b, v6.8b\n        umull           v3.8h, v4.8b, v7.8b\n        add             v2.8h, v2.8h, v16.8h\n        add             v3.8h, v3.8h, v17.8h\n        rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        st1             {v3.d}[0], [x0], x3\n\n        // Rows 2-3\n        dup             v6.8b, v1.b[2]\n        dup             v7.8b, v1.b[3]\n        umull           v2.8h, v4.8b, v6.8b\n        umull           v3.8h, v4.8b, v7.8b\n        add             v2.8h, v2.8h, v18.8h\n        add             v3.8h, v3.8h, v19.8h\n        rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        st1             {v3.d}[0], [x0], x3\n\n        // Rows 4-5\n        dup             v6.8b, v1.b[4]\n        dup             v7.8b, v1.b[5]\n        umull           v2.8h, v4.8b, v6.8b\n        umull           v3.8h, v4.8b, v7.8b\n        add             v2.8h, v2.8h, v20.8h\n        add             v3.8h, v3.8h, v21.8h\n        rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        st1             {v3.d}[0], [x0], x3\n\n        // Rows 6-7\n        dup             v6.8b, v1.b[6]\n        dup             v7.8b, v1.b[7]\n        umull           v2.8h, v4.8b, v6.8b\n        umull           v3.8h, v4.8b, v7.8b\n        add             v2.8h, v2.8h, v22.8h\n        add             v3.8h, v3.8h, v23.8h\n        rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        str             d3, [x0]\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:15", "text": "rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        st1             {v3.d}[0], [x0], x3\n\n        // Rows 6-7\n        dup             v6.8b, v1.b[6]\n        dup             v7.8b, v1.b[7]\n        umull           v2.8h, v4.8b, v6.8b\n        umull           v3.8h, v4.8b, v7.8b\n        add             v2.8h, v2.8h, v22.8h\n        add             v3.8h, v3.8h, v23.8h\n        rshrn           v2.8b, v2.8h, #4\n        rshrn           v3.8b, v3.8h, #4\n        st1             {v2.d}[0], [x0], x3\n        str             d3, [x0]\n\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_planar_16x16_8: Planar prediction\n//\n// Formula: POS(x,y) = ((15-x)*left[y] + (x+1)*top[16]\n//                     + (15-y)*top[x]  + (y+1)*left[16] + 16) >> 5\n//\n// Decomposed into incremental base update (same as 4x4/8x8/32x32):\n//   base_0[x] = inc[x]*top[16] + 15*top[x] + left[16] + 16\n//   base_{y+1}[x] = base_y[x] - (top[x] - left[16])\n//   POS(x,y) = (base_y[x] + weights_dec[x]*left[y]) >> 5\n//\n// 16-wide requires split-half processing (umull/umull2).\n// 16 rows fully unrolled with NEON-domain left[y] broadcast.\n//\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_planar_16x16_8_neon, export=1\n        // Load reference samples\n        ldr             q0, [x1]                // top[0..15]\n        ldr             q1, [x2]                // left[0..15]\n        ldrb            w4, [x1, #16]           // top[16]\n        ldrb            w5, [x2, #16]           // left[16]\n\n        // Setup weight vectors for 16 elements\n        movrel          x6, planar_weights_16\n        ldp             q4, q5, [x6]            // weights_dec [15..0], weights_inc [1..16]\n\n        // Precompute base[x] = inc[x]*top[16] + 15*top[x] + left[16]\n        dup             v6.16b, w4              // top[16] broadcast\n        umull           v19.8h, v5.8b, v6.8b    // inc[x]*top[16] lo\n        umull2          v20.8h, v5.16b, v6.16b  // inc[x]*top[16] hi\n\n        // 15*top[x] = (top[x]<<4) - top[x]\n        uxtl            v2.8h, v0.8b            // widen top[0..7]\n        uxtl2           v3.8h, v0.16b           // widen top[8..15]\n        ushll           v6.8h, v0.8b, #4        // top[0..7]<<4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:16", "text": "function ff_hevc_pred_planar_16x16_8_neon, export=1\n        // Load reference samples\n        ldr             q0, [x1]                // top[0..15]\n        ldr             q1, [x2]                // left[0..15]\n        ldrb            w4, [x1, #16]           // top[16]\n        ldrb            w5, [x2, #16]           // left[16]\n\n        // Setup weight vectors for 16 elements\n        movrel          x6, planar_weights_16\n        ldp             q4, q5, [x6]            // weights_dec [15..0], weights_inc [1..16]\n\n        // Precompute base[x] = inc[x]*top[16] + 15*top[x] + left[16]\n        dup             v6.16b, w4              // top[16] broadcast\n        umull           v19.8h, v5.8b, v6.8b    // inc[x]*top[16] lo\n        umull2          v20.8h, v5.16b, v6.16b  // inc[x]*top[16] hi\n\n        // 15*top[x] = (top[x]<<4) - top[x]\n        uxtl            v2.8h, v0.8b            // widen top[0..7]\n        uxtl2           v3.8h, v0.16b           // widen top[8..15]\n        ushll           v6.8h, v0.8b, #4        // top[0..7]<<4\n        ushll2          v7.8h, v0.16b, #4       // top[8..15]<<4\n        sub             v6.8h, v6.8h, v2.8h     // 15*top[0..7]\n        sub             v7.8h, v7.8h, v3.8h     // 15*top[8..15]\n\n        add             v19.8h, v19.8h, v6.8h   // + 15*top lo\n        add             v20.8h, v20.8h, v7.8h   // + 15*top hi\n\n        dup             v5.8h, w5               // left[16] as 16-bit\n        add             v19.8h, v19.8h, v5.8h   // + left[16]\n        add             v20.8h, v20.8h, v5.8h\n        // v19/v20 = base_lo/base_hi for row 0 (rounding folded into rshrn below)\n\n        // Precompute decrement: top[x] - left[16]\n        sub             v21.8h, v2.8h, v5.8h    // dec lo = top[0..7] - left[16]\n        sub             v22.8h, v3.8h, v5.8h    // dec hi = top[8..15] - left[16]\n\n        // Persistent registers:\n        //   v19,v20 = base[0..15] (16-bit, decremented each row)\n        //   v21,v22 = decrement[0..15] (16-bit, constant)\n        //   v4      = weight_dec[0..15] (8-bit, constant)\n        //   v1      = left[0..15] (8-bit, preloaded for NEON-domain broadcast)\n\n.macro planar16_row lane, last=0\n        dup             v6.16b, v1.b[\\lane]     // left[y] NEON-domain broadcast\n        umull           v16.8h, v4.8b, v6.8b    // dec[x]*left[y] lo\n        umull2          v17.8h, v4.16b, v6.16b  // dec[x]*left[y] hi\n        add             v16.8h, v16.8h, v19.8h  // + base lo\n        add             v17.8h, v17.8h, v20.8h  // + base hi\n        rshrn           v16.8b, v16.8h, #5      // >>5 lo (rounded)\n        rshrn2          v16.16b, v17.8h, #5     // >>5 hi, merge into q16\n  .if \\last == 0\n        st1             {v16.16b}, [x0], x3\n        sub             v19.8h, v19.8h, v21.8h  // base -= decrement\n        sub             v20.8h, v20.8h, v22.8h\n  .else\n        str             q16, [x0]\n  .endif\n.endm\n\n        planar16_row    0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:17", "text": "//   v1      = left[0..15] (8-bit, preloaded for NEON-domain broadcast)\n\n.macro planar16_row lane, last=0\n        dup             v6.16b, v1.b[\\lane]     // left[y] NEON-domain broadcast\n        umull           v16.8h, v4.8b, v6.8b    // dec[x]*left[y] lo\n        umull2          v17.8h, v4.16b, v6.16b  // dec[x]*left[y] hi\n        add             v16.8h, v16.8h, v19.8h  // + base lo\n        add             v17.8h, v17.8h, v20.8h  // + base hi\n        rshrn           v16.8b, v16.8h, #5      // >>5 lo (rounded)\n        rshrn2          v16.16b, v17.8h, #5     // >>5 hi, merge into q16\n  .if \\last == 0\n        st1             {v16.16b}, [x0], x3\n        sub             v19.8h, v19.8h, v21.8h  // base -= decrement\n        sub             v20.8h, v20.8h, v22.8h\n  .else\n        str             q16, [x0]\n  .endif\n.endm\n\n        planar16_row    0\n        planar16_row    1\n        planar16_row    2\n        planar16_row    3\n        planar16_row    4\n        planar16_row    5\n        planar16_row    6\n        planar16_row    7\n        planar16_row    8\n        planar16_row    9\n        planar16_row    10\n        planar16_row    11\n        planar16_row    12\n        planar16_row    13\n        planar16_row    14\n        planar16_row    15, last=1\n\n.purgem planar16_row\n\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_planar_32x32_8: Planar prediction\n//\n// Formula: POS(x,y) = ((31-x)*left[y] + (x+1)*top[32]\n//                     + (31-y)*top[x]  + (y+1)*left[32] + 32) >> 6\n//\n// Decomposed as:  base[x] = weight_inc[x]*top[32] + 31*top[x] + 32\n//                 Per row:  base[x] += left[32]    (incremental for (y+1)*left[32])\n//                           base[x] -= top[x]      (incremental for (31-y)*top[x])\n//                           result   = base[x] + weight_dec[x]*left[y]\n//\n// Both row_add and the (31-y)*top[x] term are folded into the base,\n// eliminating all GP→NEON scalar broadcasts except for left[y].\n// The loop processes 8 rows per iteration (macro-expanded), with 4\n// iterations total. left[y] values are loaded 8 at a time and\n// broadcast per-lane within each iteration.\n//\n// Arguments:\n// x0: src", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:18", "text": "// -----------------------------------------------------------------------------\n// pred_planar_32x32_8: Planar prediction\n//\n// Formula: POS(x,y) = ((31-x)*left[y] + (x+1)*top[32]\n//                     + (31-y)*top[x]  + (y+1)*left[32] + 32) >> 6\n//\n// Decomposed as:  base[x] = weight_inc[x]*top[32] + 31*top[x] + 32\n//                 Per row:  base[x] += left[32]    (incremental for (y+1)*left[32])\n//                           base[x] -= top[x]      (incremental for (31-y)*top[x])\n//                           result   = base[x] + weight_dec[x]*left[y]\n//\n// Both row_add and the (31-y)*top[x] term are folded into the base,\n// eliminating all GP→NEON scalar broadcasts except for left[y].\n// The loop processes 8 rows per iteration (macro-expanded), with 4\n// iterations total. left[y] values are loaded 8 at a time and\n// broadcast per-lane within each iteration.\n//\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_planar_32x32_8_neon, export=1\n        // Load top[0..31]\n        ldp             q0, q1, [x1]            // top[0..15], top[16..31]\n        ldrb            w4, [x1, #32]           // top[32]\n        ldrb            w5, [x2, #32]           // left[32]\n\n        // Load weight vectors\n        movrel          x6, planar_weights_32\n        ldp             q4, q5, [x6]            // weight_dec = {31,30,...,0}\n        ldp             q6, q7, [x6, #32]       // weight_inc = {1,2,...,32}\n\n        // Precompute term_A = weight_inc * top[32]  (16-bit)\n        dup             v2.16b, w4\n        umull           v20.8h, v6.8b, v2.8b\n        umull2          v21.8h, v6.16b, v2.16b\n        umull           v22.8h, v7.8b, v2.8b\n        umull2          v23.8h, v7.16b, v2.16b\n\n        // Widen top[x] for incremental subtraction\n        uxtl            v24.8h, v0.8b\n        uxtl2           v25.8h, v0.16b\n\n        // 31*top[x] = top[x]<<5 - top[x]\n        ushll           v6.8h, v0.8b, #5\n        ushll2          v7.8h, v0.16b, #5\n        sub             v6.8h, v6.8h, v24.8h    // 31*top[0..7]\n        sub             v7.8h, v7.8h, v25.8h    // 31*top[8..15]\n\n        // base[0..15] = term_A + 31*top[0..15]\n        add             v20.8h, v20.8h, v6.8h\n        add             v21.8h, v21.8h, v7.8h\n\n        // Same for top[16..31]\n        uxtl            v26.8h, v1.8b\n        uxtl2           v27.8h, v1.16b\n        ushll           v6.8h, v1.8b, #5", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:19", "text": "umull2          v23.8h, v7.16b, v2.16b\n\n        // Widen top[x] for incremental subtraction\n        uxtl            v24.8h, v0.8b\n        uxtl2           v25.8h, v0.16b\n\n        // 31*top[x] = top[x]<<5 - top[x]\n        ushll           v6.8h, v0.8b, #5\n        ushll2          v7.8h, v0.16b, #5\n        sub             v6.8h, v6.8h, v24.8h    // 31*top[0..7]\n        sub             v7.8h, v7.8h, v25.8h    // 31*top[8..15]\n\n        // base[0..15] = term_A + 31*top[0..15]\n        add             v20.8h, v20.8h, v6.8h\n        add             v21.8h, v21.8h, v7.8h\n\n        // Same for top[16..31]\n        uxtl            v26.8h, v1.8b\n        uxtl2           v27.8h, v1.16b\n        ushll           v6.8h, v1.8b, #5\n        ushll2          v7.8h, v1.16b, #5\n        sub             v6.8h, v6.8h, v26.8h     // 31*top[16..23]\n        sub             v7.8h, v7.8h, v27.8h     // 31*top[24..31]\n        add             v22.8h, v22.8h, v6.8h\n        add             v23.8h, v23.8h, v7.8h\n\n        // Compute combined decrement: top[x] - left[32]\n        // Each row: base += left[32] and base -= top[x]\n        // Combined: base -= (top[x] - left[32])\n        dup             v3.8h, w5               // left[32] as 16-bit\n        sub             v24.8h, v24.8h, v3.8h   // top[0..7] - left[32]\n        sub             v25.8h, v25.8h, v3.8h   // top[8..15] - left[32]\n        sub             v26.8h, v26.8h, v3.8h   // top[16..23] - left[32]\n        sub             v27.8h, v27.8h, v3.8h   // top[24..31] - left[32]\n\n        // Now base needs initial +=left[32] for y=0 (row_add = 1*left[32])\n        add             v20.8h, v20.8h, v3.8h\n        add             v21.8h, v21.8h, v3.8h\n        add             v22.8h, v22.8h, v3.8h\n        add             v23.8h, v23.8h, v3.8h\n\n        // Persistent registers:\n        //   v20-v23 = base[0..31] (includes running row_add, decremented by combined each row)\n        //   v24,v25 = top[0..15] - left[32] (combined decrement)\n        //   v26,v27 = top[16..31] - left[32] (combined decrement)\n        //   v4,v5   = weight_dec[0..31] (8-bit)\n\n.macro planar32_row lane, leftreg\n        dup             v2.16b, \\leftreg\\().b[\\lane]\n        umull           v16.8h, v4.8b, v2.8b\n        umull2          v17.8h, v4.16b, v2.16b\n        umull           v18.8h, v5.8b, v2.8b\n        umull2          v19.8h, v5.16b, v2.16b\n        add             v16.8h, v16.8h, v20.8h\n        add             v17.8h, v17.8h, v21.8h\n        add             v18.8h, v18.8h, v22.8h\n        add             v19.8h, v19.8h, v23.8h\n        rshrn           v28.8b, v16.8h, #6\n        rshrn2          v28.16b, v17.8h, #6\n        rshrn           v29.8b, v18.8h, #6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:20", "text": "// Persistent registers:\n        //   v20-v23 = base[0..31] (includes running row_add, decremented by combined each row)\n        //   v24,v25 = top[0..15] - left[32] (combined decrement)\n        //   v26,v27 = top[16..31] - left[32] (combined decrement)\n        //   v4,v5   = weight_dec[0..31] (8-bit)\n\n.macro planar32_row lane, leftreg\n        dup             v2.16b, \\leftreg\\().b[\\lane]\n        umull           v16.8h, v4.8b, v2.8b\n        umull2          v17.8h, v4.16b, v2.16b\n        umull           v18.8h, v5.8b, v2.8b\n        umull2          v19.8h, v5.16b, v2.16b\n        add             v16.8h, v16.8h, v20.8h\n        add             v17.8h, v17.8h, v21.8h\n        add             v18.8h, v18.8h, v22.8h\n        add             v19.8h, v19.8h, v23.8h\n        rshrn           v28.8b, v16.8h, #6\n        rshrn2          v28.16b, v17.8h, #6\n        rshrn           v29.8b, v18.8h, #6\n        rshrn2          v29.16b, v19.8h, #6\n        stp             q28, q29, [x0]\n        add             x0, x0, x3\n        sub             v20.8h, v20.8h, v24.8h\n        sub             v21.8h, v21.8h, v25.8h\n        sub             v22.8h, v22.8h, v26.8h\n        sub             v23.8h, v23.8h, v27.8h\n.endm\n\n        // Process 32 rows in 4 iterations of 8 rows each\n        mov             w7, #4\n.Lplanar32_loop:\n        ld1             {v1.8b}, [x2], #8       // load 8 left[] bytes for this iteration\n\n        planar32_row    0, v1\n        planar32_row    1, v1\n        planar32_row    2, v1\n        planar32_row    3, v1\n        planar32_row    4, v1\n        planar32_row    5, v1\n        planar32_row    6, v1\n        planar32_row    7, v1\n\n        subs            w7, w7, #1\n        b.gt            .Lplanar32_loop\n\n.purgem planar32_row\n\n        ret\nendfunc\n\n\n// =============================================================================\n// Weight tables for planar prediction\n// =============================================================================\n\nconst planar_weights_4, align=4\n        .byte   3, 2, 1, 0, 0, 0, 0, 0          // weights_dec for 4x4\n        .byte   1, 2, 3, 4, 0, 0, 0, 0          // weights_inc for 4x4\nendconst", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:21", "text": "planar32_row    6, v1\n        planar32_row    7, v1\n\n        subs            w7, w7, #1\n        b.gt            .Lplanar32_loop\n\n.purgem planar32_row\n\n        ret\nendfunc\n\n\n// =============================================================================\n// Weight tables for planar prediction\n// =============================================================================\n\nconst planar_weights_4, align=4\n        .byte   3, 2, 1, 0, 0, 0, 0, 0          // weights_dec for 4x4\n        .byte   1, 2, 3, 4, 0, 0, 0, 0          // weights_inc for 4x4\nendconst\n\nconst planar_weights_8, align=4\n        .byte   7, 6, 5, 4, 3, 2, 1, 0          // weights_dec\n        .byte   1, 2, 3, 4, 5, 6, 7, 8          // weights_inc\nendconst\n\nconst planar_weights_16, align=4\n        .byte   15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0\n        .byte   1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16\nendconst\n\nconst planar_weights_32, align=4\n        .byte   31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16\n        .byte   15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0\n        .byte   1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16\n        .byte   17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32\nendconst\n\n// =============================================================================\n// Reference Sample Filtering — 3-tap filter [1,2,1]>>2\n// =============================================================================\n\n/*\n * 3-tap filter: out[i] = (in[i-1] + 2*in[i] + in[i+1] + 2) >> 2\n *\n * Signature: void ff_hevc_ref_filter_3tap_NxN_8_neon(\n *     uint8_t *filtered_left,   // x0\n *     uint8_t *filtered_top,    // x1\n *     const uint8_t *left,      // x2\n *     const uint8_t *top,       // x3\n *     int size)                 // w4 — (unused, size is hardcoded per entry point)\n *\n * All pointers point to index [0]; caller has adjusted for [-1] accessibility.\n *\n * NEON approach: load 32 bytes via ld1, use ext #1/#2 to form\n *   prev(v0)/curr(v2)/next(v3). Fold the 3-tap kernel into two\n *   halving-adds on 16 bytes (no widen/narrow):\n *     uhadd  v4, v0, v3        // floor((prev + next) / 2)\n *     urhadd v4, v4, v2        // (h + curr + 1) / 2\n *   equivalent to (prev + 2*curr + next + 2) >> 2 for all u8 inputs.", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:22", "text": "// =============================================================================\n\n/*\n * 3-tap filter: out[i] = (in[i-1] + 2*in[i] + in[i+1] + 2) >> 2\n *\n * Signature: void ff_hevc_ref_filter_3tap_NxN_8_neon(\n *     uint8_t *filtered_left,   // x0\n *     uint8_t *filtered_top,    // x1\n *     const uint8_t *left,      // x2\n *     const uint8_t *top,       // x3\n *     int size)                 // w4 — (unused, size is hardcoded per entry point)\n *\n * All pointers point to index [0]; caller has adjusted for [-1] accessibility.\n *\n * NEON approach: load 32 bytes via ld1, use ext #1/#2 to form\n *   prev(v0)/curr(v2)/next(v3). Fold the 3-tap kernel into two\n *   halving-adds on 16 bytes (no widen/narrow):\n *     uhadd  v4, v0, v3        // floor((prev + next) / 2)\n *     urhadd v4, v4, v2        // (h + curr + 1) / 2\n *   equivalent to (prev + 2*curr + next + 2) >> 2 for all u8 inputs.\n *   Caller pads input arrays by 16 bytes to guarantee safe 32-byte loads.\n *   Forward processing is safe since output goes to a separate buffer.\n */\n\n// Load 32 bytes from [x12], compute 16 filtered samples into v4.16b\n.macro filter_3tap_compute\n        ld1             {v0.16b, v1.16b}, [x12]\n        ext             v2.16b, v0.16b, v1.16b, #1 // curr\n        ext             v3.16b, v0.16b, v1.16b, #2 // next\n        uhadd           v4.16b, v0.16b, v3.16b   // floor((prev + next) / 2)\n        urhadd          v4.16b, v4.16b, v2.16b   // (prev + 2*curr + next + 2) >> 2\n.endm\n\n// Filter one array. n_reg holds 2*size; filters n-1 samples, copies last.\n// Caller guarantees 16 bytes of readable padding beyond in[n-1].\n// For total >= 16, overlap-last-16 avoids partial stores.\n// For total < 16 (8x8), overlap-last-8 stores two 8-byte halves.\n.macro filter_3tap_array x_out, x_in, n_reg\n        // Copy last element: out[n-1] = in[n-1]\n        sub             x10, \\n_reg, #1\n        ldrb            w11, [\\x_in, x10]\n        strb            w11, [\\x_out, x10]\n\n        sub             x12, \\x_in, #1          // x12 = load ptr (&in[-1])\n        mov             x13, \\x_out             // x13 = store ptr (&out[0])\n        sub             x14, \\n_reg, #1         // x14 = total samples to filter\n\n        cmp             x14, #16\n        b.lt            6f                      // total < 16: small path (8x8)\n\n        // --- Main loop: 16 samples per iteration ---\n1:      filter_3tap_compute\n        st1             {v4.16b}, [x13], #16\n        add             x12, x12, #16\n        sub             x14, x14, #16\n        cmp             x14, #16\n        b.ge            1b\n\n        // --- Overlap last 16 samples ---\n        cbz             x14, 9f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:23", "text": "ldrb            w11, [\\x_in, x10]\n        strb            w11, [\\x_out, x10]\n\n        sub             x12, \\x_in, #1          // x12 = load ptr (&in[-1])\n        mov             x13, \\x_out             // x13 = store ptr (&out[0])\n        sub             x14, \\n_reg, #1         // x14 = total samples to filter\n\n        cmp             x14, #16\n        b.lt            6f                      // total < 16: small path (8x8)\n\n        // --- Main loop: 16 samples per iteration ---\n1:      filter_3tap_compute\n        st1             {v4.16b}, [x13], #16\n        add             x12, x12, #16\n        sub             x14, x14, #16\n        cmp             x14, #16\n        b.ge            1b\n\n        // --- Overlap last 16 samples ---\n        cbz             x14, 9f\n        add             x12, \\x_in, \\n_reg\n        sub             x12, x12, #18          // &in[n-18]\n        add             x13, \\x_out, \\n_reg\n        sub             x13, x13, #17          // &out[n-17]\n        filter_3tap_compute\n        st1             {v4.16b}, [x13]\n        b               9f\n\n        // --- Small path: total < 16 (8x8, total=15) ---\n        // Store as two overlapping 8-byte halves: out[0..7] + out[7..14]\n6:      filter_3tap_compute\n        ext             v5.16b, v4.16b, v4.16b, #7\n        str             d4, [x13]               // out[0..7]\n        str             d5, [x13, #7]           // out[7..14]\n9:\n.endm\n\n// Corner: filtered[-1] = (left[0] + 2*left[-1] + top[0] + 2) >> 2\n.macro filter_3tap_corner\n        ldrb            w10, [x2]               // left[0]\n        ldrb            w11, [x2, #-1]          // left[-1]\n        ldrb            w12, [x3]               // top[0]\n        add             w10, w10, w12           // left[0] + top[0]\n        add             w10, w10, w11, lsl #1   // + 2*left[-1]\n        add             w10, w10, #2            // + 2\n        lsr             w10, w10, #2            // >> 2\n        strb            w10, [x0, #-1]          // filtered_left[-1]\n        strb            w10, [x1, #-1]          // filtered_top[-1]\n.endm\n\nfunction ff_hevc_ref_filter_3tap_8x8_8_neon, export=1\n        mov             x4, #16                 // n = 2*8\n        b               hevc_ref_filter_3tap_common_8_neon\nendfunc\n\nfunction ff_hevc_ref_filter_3tap_16x16_8_neon, export=1\n        mov             x4, #32                 // n = 2*16\n        b               hevc_ref_filter_3tap_common_8_neon\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:24", "text": "ldrb            w11, [x2, #-1]          // left[-1]\n        ldrb            w12, [x3]               // top[0]\n        add             w10, w10, w12           // left[0] + top[0]\n        add             w10, w10, w11, lsl #1   // + 2*left[-1]\n        add             w10, w10, #2            // + 2\n        lsr             w10, w10, #2            // >> 2\n        strb            w10, [x0, #-1]          // filtered_left[-1]\n        strb            w10, [x1, #-1]          // filtered_top[-1]\n.endm\n\nfunction ff_hevc_ref_filter_3tap_8x8_8_neon, export=1\n        mov             x4, #16                 // n = 2*8\n        b               hevc_ref_filter_3tap_common_8_neon\nendfunc\n\nfunction ff_hevc_ref_filter_3tap_16x16_8_neon, export=1\n        mov             x4, #32                 // n = 2*16\n        b               hevc_ref_filter_3tap_common_8_neon\nendfunc\n\nfunction ff_hevc_ref_filter_3tap_32x32_8_neon, export=1\n        mov             x4, #64                 // n = 2*32\n        b               hevc_ref_filter_3tap_common_8_neon\nendfunc\n\nfunction hevc_ref_filter_3tap_common_8_neon, export=0\n        filter_3tap_array x0, x2, x4\n        filter_3tap_corner\n        filter_3tap_array x1, x3, x4\n        ret\nendfunc\n\n.purgem filter_3tap_compute\n.purgem filter_3tap_array\n.purgem filter_3tap_corner\n\n// =============================================================================\n// Reference Sample Filtering — Strong Intra Smoothing\n// =============================================================================\n\n/*\n * Strong intra smoothing (32x32 luma only):\n *   filtered_top[i] = ((64-(i+1))*top[-1] + (i+1)*top[63] + 32) >> 6\n *   left[i]         = ((64-(i+1))*left[-1] + (i+1)*left[63] + 32) >> 6\n *   for i = 0..62\n *\n * Also sets: filtered_top[-1] = top[-1], filtered_top[63] = top[63]\n *\n * Signature: void ff_hevc_ref_filter_strong_8_neon(\n *     uint8_t *filtered_top,  // x0\n *     uint8_t *left,          // x1\n *     const uint8_t *top)     // x2\n *\n * NEON approach:\n *   Preloaded weights dec={63..1,0} in v0-v3, inc={1..63,0} in v4-v7.\n *   Two 16-byte blocks interleaved per pair, written via st1 {v22,v23},\n *   hiding the rshrn→st1 latency. Weight[63]=0 lets lane 15 fall out as\n *   zero; one strb restores output[63] to the correct end value.\n */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:25", "text": "/*\n * Strong intra smoothing (32x32 luma only):\n *   filtered_top[i] = ((64-(i+1))*top[-1] + (i+1)*top[63] + 32) >> 6\n *   left[i]         = ((64-(i+1))*left[-1] + (i+1)*left[63] + 32) >> 6\n *   for i = 0..62\n *\n * Also sets: filtered_top[-1] = top[-1], filtered_top[63] = top[63]\n *\n * Signature: void ff_hevc_ref_filter_strong_8_neon(\n *     uint8_t *filtered_top,  // x0\n *     uint8_t *left,          // x1\n *     const uint8_t *top)     // x2\n *\n * NEON approach:\n *   Preloaded weights dec={63..1,0} in v0-v3, inc={1..63,0} in v4-v7.\n *   Two 16-byte blocks interleaved per pair, written via st1 {v22,v23},\n *   hiding the rshrn→st1 latency. Weight[63]=0 lets lane 15 fall out as\n *   zero; one strb restores output[63] to the correct end value.\n */\n\n// Precomputed weight tables in .rodata\nconst filter_strong_weights_inc, align=4\n        .byte    1,  2,  3,  4,  5,  6,  7,  8\n        .byte    9, 10, 11, 12, 13, 14, 15, 16\n        .byte   17, 18, 19, 20, 21, 22, 23, 24\n        .byte   25, 26, 27, 28, 29, 30, 31, 32\n        .byte   33, 34, 35, 36, 37, 38, 39, 40\n        .byte   41, 42, 43, 44, 45, 46, 47, 48\n        .byte   49, 50, 51, 52, 53, 54, 55, 56\n        .byte   57, 58, 59, 60, 61, 62, 63,  0\nendconst\n\nconst filter_strong_weights_dec, align=4\n        .byte   63, 62, 61, 60, 59, 58, 57, 56\n        .byte   55, 54, 53, 52, 51, 50, 49, 48\n        .byte   47, 46, 45, 44, 43, 42, 41, 40\n        .byte   39, 38, 37, 36, 35, 34, 33, 32\n        .byte   31, 30, 29, 28, 27, 26, 25, 24\n        .byte   23, 22, 21, 20, 19, 18, 17, 16\n        .byte   15, 14, 13, 12, 11, 10,  9,  8\n        .byte    7,  6,  5,  4,  3,  2,  1,  0\nendconst\n\n// Macro: apply strong smoothing to one 63-element array\n// x_out = output pointer (index 0), w_start = start pixel, w_end = end pixel\n// Weights must be preloaded: v0-v3 = dec weights, v4-v7 = inc weights (16b each)\n// Interleave two 16-byte blocks to hide rshrn→st1 latency on in-order cores.\n.macro strong_smooth x_out, w_start, w_end\n        dup             v16.16b, \\w_start       // broadcast start\n        dup             v17.16b, \\w_end         // broadcast end\n        mov             x14, \\x_out\n\n        // Blocks 0+1 interleaved: indices 0-31\n        umull           v18.8h, v0.8b, v16.8b   // blk0: dec_lo * start\n        umull           v20.8h, v1.8b, v16.8b   // blk1: dec_lo * start\n        umull2          v19.8h, v0.16b, v16.16b // blk0: dec_hi * start\n        umull2          v21.8h, v1.16b, v16.16b // blk1: dec_hi * start\n        umlal           v18.8h, v4.8b, v17.8b   // blk0: + inc_lo * end\n        umlal           v20.8h, v5.8b, v17.8b   // blk1: + inc_lo * end\n        umlal2          v19.8h, v4.16b, v17.16b // blk0: + inc_hi * end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:26", "text": ".byte    7,  6,  5,  4,  3,  2,  1,  0\nendconst\n\n// Macro: apply strong smoothing to one 63-element array\n// x_out = output pointer (index 0), w_start = start pixel, w_end = end pixel\n// Weights must be preloaded: v0-v3 = dec weights, v4-v7 = inc weights (16b each)\n// Interleave two 16-byte blocks to hide rshrn→st1 latency on in-order cores.\n.macro strong_smooth x_out, w_start, w_end\n        dup             v16.16b, \\w_start       // broadcast start\n        dup             v17.16b, \\w_end         // broadcast end\n        mov             x14, \\x_out\n\n        // Blocks 0+1 interleaved: indices 0-31\n        umull           v18.8h, v0.8b, v16.8b   // blk0: dec_lo * start\n        umull           v20.8h, v1.8b, v16.8b   // blk1: dec_lo * start\n        umull2          v19.8h, v0.16b, v16.16b // blk0: dec_hi * start\n        umull2          v21.8h, v1.16b, v16.16b // blk1: dec_hi * start\n        umlal           v18.8h, v4.8b, v17.8b   // blk0: + inc_lo * end\n        umlal           v20.8h, v5.8b, v17.8b   // blk1: + inc_lo * end\n        umlal2          v19.8h, v4.16b, v17.16b // blk0: + inc_hi * end\n        umlal2          v21.8h, v5.16b, v17.16b // blk1: + inc_hi * end\n        rshrn           v22.8b, v18.8h, #6      // blk0: narrow lo\n        rshrn           v23.8b, v20.8h, #6      // blk1: narrow lo\n        rshrn2          v22.16b, v19.8h, #6     // blk0: narrow hi\n        rshrn2          v23.16b, v21.8h, #6     // blk1: narrow hi\n        st1             {v22.16b, v23.16b}, [x14], #32\n\n        // Blocks 2+3 interleaved: indices 32-63\n        // Weight at index 63 is zero, so v23.b[15] computes 0; we store all\n        // 32 bytes and fix up output[63] with a scalar strb afterward.\n        umull           v18.8h, v2.8b, v16.8b   // blk2: dec_lo * start\n        umull           v20.8h, v3.8b, v16.8b   // blk3: dec_lo * start\n        umull2          v19.8h, v2.16b, v16.16b // blk2: dec_hi * start\n        umull2          v21.8h, v3.16b, v16.16b // blk3: dec_hi * start\n        umlal           v18.8h, v6.8b, v17.8b   // blk2: + inc_lo * end\n        umlal           v20.8h, v7.8b, v17.8b   // blk3: + inc_lo * end\n        umlal2          v19.8h, v6.16b, v17.16b // blk2: + inc_hi * end\n        umlal2          v21.8h, v7.16b, v17.16b // blk3: + inc_hi * end\n        rshrn           v22.8b, v18.8h, #6      // blk2: narrow lo\n        rshrn           v23.8b, v20.8h, #6      // blk3: narrow lo\n        rshrn2          v22.16b, v19.8h, #6     // blk2: narrow hi\n        rshrn2          v23.16b, v21.8h, #6     // blk3: narrow hi\n        st1             {v22.16b, v23.16b}, [x14] // indices 32-63\n        strb            \\w_end, [x14, #31]      // restore output[63]\n.endm\n\nfunction ff_hevc_ref_filter_strong_8_neon, export=1\n        ldrb            w10, [x2, #-1]          // top[-1]\n        strb            w10, [x0, #-1]          // filtered_top[-1]\n        ldrb            w11, [x2, #63]          // top[63]\n        strb            w11, [x0, #63]          // filtered_top[63]\n\n        // Preload all weight tables into registers (shared across both passes)\n        movrel          x8, filter_strong_weights_dec\n        movrel          x9, filter_strong_weights_inc\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x8]\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x9]\n\n        // Smooth top → filtered_top[0..62]\n        strong_smooth   x0, w10, w11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:27", "text": "rshrn2          v22.16b, v19.8h, #6     // blk2: narrow hi\n        rshrn2          v23.16b, v21.8h, #6     // blk3: narrow hi\n        st1             {v22.16b, v23.16b}, [x14] // indices 32-63\n        strb            \\w_end, [x14, #31]      // restore output[63]\n.endm\n\nfunction ff_hevc_ref_filter_strong_8_neon, export=1\n        ldrb            w10, [x2, #-1]          // top[-1]\n        strb            w10, [x0, #-1]          // filtered_top[-1]\n        ldrb            w11, [x2, #63]          // top[63]\n        strb            w11, [x0, #63]          // filtered_top[63]\n\n        // Preload all weight tables into registers (shared across both passes)\n        movrel          x8, filter_strong_weights_dec\n        movrel          x9, filter_strong_weights_inc\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x8]\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x9]\n\n        // Smooth top → filtered_top[0..62]\n        strong_smooth   x0, w10, w11\n\n        // Smooth left → left[0..62] in-place\n        ldrb            w10, [x1, #-1]          // left[-1]\n        ldrb            w11, [x1, #63]          // left[63]\n        strong_smooth   x1, w10, w11\n\n        ret\nendfunc\n\n.purgem strong_smooth", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hevcpred_neon.S", "line_start": 1041, "line_end": 1070}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:21", "text": "planar32_row    6, v1\n        planar32_row    7, v1\n\n        subs            w7, w7, #1\n        b.gt            .Lplanar32_loop\n\n.purgem planar32_row\n\n        ret\nendfunc\n\n\n// =============================================================================\n// Weight tables for planar prediction\n// =============================================================================\n\nconst planar_weights_4, align=4\n        .byte   3, 2, 1, 0, 0, 0, 0, 0          // weights_dec for 4x4\n        .byte   1, 2, 3, 4, 0, 0, 0, 0          // weights_inc for 4x4\nendconst\n\nconst planar_weights_8, align=4\n        .byte   7, 6, 5, 4, 3, 2, 1, 0          // weights_dec\n        .byte   1, 2, 3, 4, 5, 6, 7, 8          // weights_inc\nendconst\n\nconst planar_weights_16, align=4\n        .byte   15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0\n        .byte   1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16\nendconst\n\nconst planar_weights_32, align=4\n        .byte   31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16\n        .byte   15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0\n        .byte   1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16\n        .byte   17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32\nendconst", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "89c21b5ab7d4880c679b7e28da5fae7d6f9e08f9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89c21b5ab7d4880c679b7e28da5fae7d6f9e08f9/libavcodec/aarch64/hevcpred_neon.S", "line_start": 801, "line_end": 837}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hevcpred_neon.S:10", "text": "str             q2, [x5]                // row 12\n        add             x15, x5, x3, lsl #1\n        str             q2, [x5, x3]            // row 13\n        str             q2, [x15]               // row 14\n        str             q2, [x15, x3]           // row 15\n        ret\nendfunc\n\n// -----------------------------------------------------------------------------\n// pred_dc_32x32_8: DC prediction (no edge smoothing)\n// Arguments:\n// x0: src\n// x1: top\n// x2: left\n// x3: stride\n// w4: c_idx\n// -----------------------------------------------------------------------------\nfunction ff_hevc_pred_dc_32x32_8_neon, export=1\n        // Load top[0..31] and left[0..31]\n        ldp             q0, q1, [x1]            // top[0..31]\n        ldp             q2, q3, [x2]            // left[0..31]\n\n        // Sum all pixels\n        uaddlv          h0, v0.16b\n        uaddlv          h1, v1.16b\n        uaddlv          h2, v2.16b\n        uaddlv          h3, v3.16b\n        add             v0.4h, v0.4h, v1.4h\n        add             v2.4h, v2.4h, v3.4h\n        add             v0.4h, v0.4h, v2.4h\n\n        // Add rounding and shift by 6 (urshr = unsigned rounding shift right)\n        urshr           v0.4h, v0.4h, #6\n        dup             v0.16b, v0.b[0]\n        mov             v1.16b, v0.16b\n\n        // Store 32 rows\n        mov             w6, #32\n2:\n        subs            w6, w6, #1\n        stp             q0, q1, [x0]\n        add             x0, x0, x3\n        b.ne            2b\n\n        // No edge smoothing for 32x32 (size >= 32)\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hevcpred_neon.S", "license": "LGPL-2.1", "commit": "60b372c934ad404c58eb2545a0e186a474d09337", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/60b372c934ad404c58eb2545a0e186a474d09337/libavcodec/aarch64/hevcpred_neon.S", "line_start": 361, "line_end": 407}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:1", "text": "/*\n * ARM NEON optimised DSP functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2013 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro  pixels16        rnd=1, avg=0\n  .if \\avg\n        mov             x12, x0\n  .endif\n1:      ld1             {v0.16b},  [x1], x2\n        ld1             {v1.16b},  [x1], x2\n        ld1             {v2.16b},  [x1], x2\n        ld1             {v3.16b},  [x1], x2\n  .if \\avg\n        ld1             {v4.16b},  [x12], x2\n        urhadd          v0.16b,  v0.16b,  v4.16b\n        ld1             {v5.16b},  [x12], x2\n        urhadd          v1.16b,  v1.16b,  v5.16b\n        ld1             {v6.16b},  [x12], x2\n        urhadd          v2.16b,  v2.16b,  v6.16b\n        ld1             {v7.16b},  [x12], x2\n        urhadd          v3.16b,  v3.16b,  v7.16b\n  .endif\n        subs            w3,  w3,  #4\n        st1             {v0.16b},  [x0], x2\n        st1             {v1.16b},  [x0], x2\n        st1             {v2.16b},  [x0], x2\n        st1             {v3.16b},  [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels16_x2     rnd=1, avg=0\n1:\n        ldur            q1, [x1, #1]\n        ld1             {v0.16b}, [x1], x2\n        subs            w3,  w3,  #2\n        ldur            q3, [x1, #1]\n        ld1             {v2.16b}, [x1], x2\n        avg             v0.16b,  v0.16b,  v1.16b\n        avg             v2.16b,  v2.16b,  v3.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:2", "text": "urhadd          v3.16b,  v3.16b,  v7.16b\n  .endif\n        subs            w3,  w3,  #4\n        st1             {v0.16b},  [x0], x2\n        st1             {v1.16b},  [x0], x2\n        st1             {v2.16b},  [x0], x2\n        st1             {v3.16b},  [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels16_x2     rnd=1, avg=0\n1:\n        ldur            q1, [x1, #1]\n        ld1             {v0.16b}, [x1], x2\n        subs            w3,  w3,  #2\n        ldur            q3, [x1, #1]\n        ld1             {v2.16b}, [x1], x2\n        avg             v0.16b,  v0.16b,  v1.16b\n        avg             v2.16b,  v2.16b,  v3.16b\n  .if \\avg\n        ld1             {v1.16b}, [x0], x2\n        ld1             {v3.16b}, [x0]\n        urhadd          v0.16b,  v0.16b,  v1.16b\n        urhadd          v2.16b,  v2.16b,  v3.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v0.16b}, [x0], x2\n        st1             {v2.16b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels16_y2     rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ld1             {v0.16b}, [x1], x2\n        ld1             {v1.16b}, [x1], x2\n1:      subs            w3,  w3,  #2\n        avg             v2.16b,  v0.16b,  v1.16b\n        ld1             {v0.16b}, [x1], x2\n        avg             v3.16b,  v0.16b,  v1.16b\n        ld1             {v1.16b}, [x1], x2\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v2.16b}, [x0], x2\n        st1             {v3.16b}, [x0], x2\n        b.ne            1b\n\n        avg             v2.16b,  v0.16b,  v1.16b\n        ld1             {v0.16b}, [x1], x2\n        avg             v3.16b,  v0.16b,  v1.16b\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:3", "text": "avg             v3.16b,  v0.16b,  v1.16b\n        ld1             {v1.16b}, [x1], x2\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v2.16b}, [x0], x2\n        st1             {v3.16b}, [x0], x2\n        b.ne            1b\n\n        avg             v2.16b,  v0.16b,  v1.16b\n        ld1             {v0.16b}, [x1], x2\n        avg             v3.16b,  v0.16b,  v1.16b\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v2.16b},     [x0], x2\n        st1             {v3.16b},     [x0], x2\n\n        ret\n.endm\n\n.macro  pixels16_xy2    rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ldur            q1, [x1, #1]\n        ld1             {v0.16b}, [x1], x2\nNRND    movi            v26.8H, #1\n        ldur            q5, [x1, #1]\n        ld1             {v4.16b}, [x1], x2\n        uaddl           v16.8h,  v0.8b,   v1.8b\n        uaddl2          v20.8h,  v0.16b,  v1.16b\n        uaddl           v18.8h,  v4.8b,   v5.8b\n        uaddl2          v22.8h,  v4.16b,  v5.16b\n1:      subs            w3,  w3,  #2\n        ldur            q30, [x1, #1]\n        ld1             {v0.16b}, [x1], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v1.8h,   v20.8h,  v22.8h\n        mshrn           v28.8b,  v24.8h,  #2\nNRND    add             v1.8H,   v1.8H,   v26.8H\n        mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        ldur            q3, [x1, #1]\n        ld1             {v2.16b}, [x1], x2\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:4", "text": "1:      subs            w3,  w3,  #2\n        ldur            q30, [x1, #1]\n        ld1             {v0.16b}, [x1], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v1.8h,   v20.8h,  v22.8h\n        mshrn           v28.8b,  v24.8h,  #2\nNRND    add             v1.8H,   v1.8H,   v26.8H\n        mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        ldur            q3, [x1, #1]\n        ld1             {v2.16b}, [x1], x2\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v0.8h,   v20.8h,  v22.8h\n        mshrn           v30.8b,  v24.8h,  #2\nNRND    add             v0.8H,   v0.8H,   v26.8H\n        mshrn2          v30.16b, v0.8h,   #2\n  .if \\avg\n        ld1             {v18.16b},        [x0]\n        urhadd          v30.16b, v30.16b, v18.16b\n  .endif\n        uaddl           v18.8h,   v2.8b,  v3.8b\n        uaddl2          v22.8h,   v2.16b, v3.16b\n        st1             {v30.16b},        [x0], x2\n        b.gt            1b\n\n        ldur            q30, [x1, #1]\n        ld1             {v0.16b}, [x1], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v1.8h,   v20.8h,  v22.8h\n        mshrn           v28.8b,  v24.8h,  #2\nNRND    add             v1.8H,   v1.8H,   v26.8H\n        mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v0.8h,   v20.8h,  v22.8h\n        mshrn           v30.8b,  v24.8h,  #2\nNRND    add             v0.8H,   v0.8H,   v26.8H\n        mshrn2          v30.16b, v0.8h,   #2\n  .if \\avg\n        ld1             {v18.16b},        [x0]\n        urhadd          v30.16b, v30.16b, v18.16b\n  .endif\n        st1             {v30.16b},        [x0], x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:5", "text": "mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v0.8h,   v20.8h,  v22.8h\n        mshrn           v30.8b,  v24.8h,  #2\nNRND    add             v0.8H,   v0.8H,   v26.8H\n        mshrn2          v30.16b, v0.8h,   #2\n  .if \\avg\n        ld1             {v18.16b},        [x0]\n        urhadd          v30.16b, v30.16b, v18.16b\n  .endif\n        st1             {v30.16b},        [x0], x2\n\n        ret\n.endm\n\n.macro  pixels8         rnd=1, avg=0\n1:      ld1             {v0.8b}, [x1], x2\n        ld1             {v1.8b}, [x1], x2\n        ld1             {v2.8b}, [x1], x2\n        ld1             {v3.8b}, [x1], x2\n  .if \\avg\n        ld1             {v4.8b}, [x0], x2\n        urhadd          v0.8b,  v0.8b,  v4.8b\n        ld1             {v5.8b}, [x0], x2\n        urhadd          v1.8b,  v1.8b,  v5.8b\n        ld1             {v6.8b}, [x0], x2\n        urhadd          v2.8b,  v2.8b,  v6.8b\n        ld1             {v7.8b}, [x0], x2\n        urhadd          v3.8b,  v3.8b,  v7.8b\n        sub             x0,  x0,  x2,  lsl #2\n  .endif\n        subs            w3,  w3,  #4\n        st1             {v0.8b}, [x0], x2\n        st1             {v1.8b}, [x0], x2\n        st1             {v2.8b}, [x0], x2\n        st1             {v3.8b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels8_x2      rnd=1, avg=0\n1:\n        ldur            d1, [x1, #1]\n        ld1             {v0.8b}, [x1], x2\n        ldur            d3, [x1, #1]\n        ld1             {v2.8b}, [x1], x2\n        subs            w3,  w3,  #2\n        avg             v0.8b,   v0.8b,   v1.8b\n        avg             v2.8b,   v2.8b,   v3.8b\n  .if \\avg\n        ld1             {v4.8b},     [x0], x2\n        ld1             {v5.8b},     [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:6", "text": "st1             {v0.8b}, [x0], x2\n        st1             {v1.8b}, [x0], x2\n        st1             {v2.8b}, [x0], x2\n        st1             {v3.8b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels8_x2      rnd=1, avg=0\n1:\n        ldur            d1, [x1, #1]\n        ld1             {v0.8b}, [x1], x2\n        ldur            d3, [x1, #1]\n        ld1             {v2.8b}, [x1], x2\n        subs            w3,  w3,  #2\n        avg             v0.8b,   v0.8b,   v1.8b\n        avg             v2.8b,   v2.8b,   v3.8b\n  .if \\avg\n        ld1             {v4.8b},     [x0], x2\n        ld1             {v5.8b},     [x0]\n        urhadd          v0.8b,   v0.8b,   v4.8b\n        urhadd          v2.8b,   v2.8b,   v5.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v0.8b}, [x0], x2\n        st1             {v2.8b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels8_y2      rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ld1             {v0.8b},  [x1], x2\n        ld1             {v1.8b},  [x1], x2\n1:      subs            w3,  w3,  #2\n        avg             v4.8b,  v0.8b,  v1.8b\n        ld1             {v0.8b},  [x1], x2\n        avg             v5.8b,  v0.8b,  v1.8b\n        ld1             {v1.8b},  [x1], x2\n  .if \\avg\n        ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n        b.ne            1b\n\n        avg             v4.8b,  v0.8b,  v1.8b\n        ld1             {v0.8b},  [x1], x2\n        avg             v5.8b,  v0.8b,  v1.8b\n  .if \\avg\n        ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:7", "text": "ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n        b.ne            1b\n\n        avg             v4.8b,  v0.8b,  v1.8b\n        ld1             {v0.8b},  [x1], x2\n        avg             v5.8b,  v0.8b,  v1.8b\n  .if \\avg\n        ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n\n        ret\n.endm\n\n.macro  pixels8_xy2     rnd=1, avg=0\n        ldur            d4, [x1, #1]\n        sub             w3,  w3,  #2\n        ld1             {v0.8b}, [x1], x2\nNRND    movi            v19.8H, #1\n        ldur            d6, [x1, #1]\n        ld1             {v1.8b}, [x1], x2\n        uaddl           v16.8h,  v0.8b,  v4.8b\n        uaddl           v17.8h,  v1.8b,  v6.8b\n1:      subs            w3,  w3,  #2\n        ldur            d4, [x1, #1]\n        ld1             {v0.8b}, [x1], x2\n        add             v18.8h, v16.8h,  v17.8h\nNRND    add             v18.8H, v18.8H, v19.8H\n        uaddl           v16.8h,  v0.8b,  v4.8b\n        mshrn           v5.8b,  v18.8h, #2\n        ldur            d6, [x1, #1]\n        ld1             {v1.8b}, [x1], x2\n        add             v18.8h, v16.8h,  v17.8h\n  .if \\avg\n        ld1             {v7.8b},     [x0]\n        urhadd          v5.8b,  v5.8b,  v7.8b\n  .endif\nNRND    add             v18.8H, v18.8H, v19.8H\n        st1             {v5.8b},     [x0], x2\n        mshrn           v7.8b,  v18.8h, #2\n  .if \\avg\n        ld1             {v5.8b},     [x0]\n        urhadd          v7.8b,  v7.8b,  v5.8b\n  .endif\n        uaddl           v17.8h,  v1.8b,   v6.8b\n        st1             {v7.8b},     [x0], x2\n        b.gt            1b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:8", "text": "uaddl           v16.8h,  v0.8b,  v4.8b\n        mshrn           v5.8b,  v18.8h, #2\n        ldur            d6, [x1, #1]\n        ld1             {v1.8b}, [x1], x2\n        add             v18.8h, v16.8h,  v17.8h\n  .if \\avg\n        ld1             {v7.8b},     [x0]\n        urhadd          v5.8b,  v5.8b,  v7.8b\n  .endif\nNRND    add             v18.8H, v18.8H, v19.8H\n        st1             {v5.8b},     [x0], x2\n        mshrn           v7.8b,  v18.8h, #2\n  .if \\avg\n        ld1             {v5.8b},     [x0]\n        urhadd          v7.8b,  v7.8b,  v5.8b\n  .endif\n        uaddl           v17.8h,  v1.8b,   v6.8b\n        st1             {v7.8b},     [x0], x2\n        b.gt            1b\n\n        ldur            d4, [x1, #1]\n        ld1             {v0.8b}, [x1], x2\n        add             v18.8h, v16.8h, v17.8h\nNRND    add             v18.8H, v18.8H, v19.8H\n        uaddl           v16.8h,  v0.8b, v4.8b\n        mshrn           v5.8b,  v18.8h, #2\n        add             v18.8h, v16.8h, v17.8h\n  .if \\avg\n        ld1             {v7.8b},     [x0]\n        urhadd          v5.8b,  v5.8b,  v7.8b\n  .endif\nNRND    add             v18.8H, v18.8H, v19.8H\n        st1             {v5.8b},     [x0], x2\n        mshrn           v7.8b,  v18.8h, #2\n  .if \\avg\n        ld1             {v5.8b},     [x0]\n        urhadd          v7.8b,  v7.8b,  v5.8b\n  .endif\n        st1             {v7.8b},     [x0], x2\n\n        ret\n.endm\n\n.macro  pixfunc         pfx, name, suf, rnd=1, avg=0\n  .if \\rnd\n    .macro avg  rd, rn, rm\n        urhadd          \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        rshrn           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn2 rd, rn, rm\n        rshrn2          \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n    .endm\n  .else\n    .macro avg  rd, rn, rm\n        uhadd           \\rd, \\rn, \\rm\n    .endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:9", "text": "ret\n.endm\n\n.macro  pixfunc         pfx, name, suf, rnd=1, avg=0\n  .if \\rnd\n    .macro avg  rd, rn, rm\n        urhadd          \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        rshrn           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn2 rd, rn, rm\n        rshrn2          \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n    .endm\n  .else\n    .macro avg  rd, rn, rm\n        uhadd           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        shrn            \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn2 rd, rn, rm\n        shrn2           \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n        \\insn\n    .endm\n  .endif\nfunction ff_\\pfx\\name\\suf\\()_neon, export=1\n        \\name           \\rnd, \\avg\nendfunc\n        .purgem         avg\n        .purgem         mshrn\n        .purgem         mshrn2\n        .purgem         NRND\n.endm\n\n.macro  pixfunc2        pfx, name, avg=0\n        pixfunc         \\pfx, \\name,          rnd=1, avg=\\avg\n        pixfunc         \\pfx, \\name, _no_rnd, rnd=0, avg=\\avg\n.endm\n\nfunction ff_put_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         put_, pixels16,     avg=0\n        pixfunc2        put_, pixels16_x2,  avg=0\n        pixfunc2        put_, pixels16_y2,  avg=0\n        pixfunc2        put_, pixels16_xy2, avg=0\n\nfunction ff_avg_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         avg_, pixels16,     avg=1\n        pixfunc2        avg_, pixels16_x2,  avg=1\n        pixfunc2        avg_, pixels16_y2,  avg=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:10", "text": "pixfunc         \\pfx, \\name,          rnd=1, avg=\\avg\n        pixfunc         \\pfx, \\name, _no_rnd, rnd=0, avg=\\avg\n.endm\n\nfunction ff_put_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         put_, pixels16,     avg=0\n        pixfunc2        put_, pixels16_x2,  avg=0\n        pixfunc2        put_, pixels16_y2,  avg=0\n        pixfunc2        put_, pixels16_xy2, avg=0\n\nfunction ff_avg_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         avg_, pixels16,     avg=1\n        pixfunc2        avg_, pixels16_x2,  avg=1\n        pixfunc2        avg_, pixels16_y2,  avg=1\n        pixfunc2        avg_, pixels16_xy2, avg=1\n\nfunction ff_put_h264_qpel8_mc00_neon, export=1\n        mov             w3,  #8\nendfunc\n\n        pixfunc         put_, pixels8,     avg=0\n        pixfunc2        put_, pixels8_x2,  avg=0\n        pixfunc2        put_, pixels8_y2,  avg=0\n        pixfunc2        put_, pixels8_xy2, avg=0\n\nfunction ff_avg_h264_qpel8_mc00_neon, export=1\n        mov             w3,  #8\nendfunc\n\n        pixfunc         avg_, pixels8,     avg=1\n        pixfunc         avg_, pixels8_x2,  avg=1\n        pixfunc         avg_, pixels8_y2,  avg=1\n        pixfunc         avg_, pixels8_xy2, avg=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 361, "line_end": 399}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:1", "text": "/*\n * ARM NEON optimised DSP functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2013 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro  pixels16        rnd=1, avg=0\n  .if \\avg\n        mov             x12, x0\n  .endif\n1:      ld1             {v0.16b},  [x1], x2\n        ld1             {v1.16b},  [x1], x2\n        ld1             {v2.16b},  [x1], x2\n        ld1             {v3.16b},  [x1], x2\n  .if \\avg\n        ld1             {v4.16b},  [x12], x2\n        urhadd          v0.16b,  v0.16b,  v4.16b\n        ld1             {v5.16b},  [x12], x2\n        urhadd          v1.16b,  v1.16b,  v5.16b\n        ld1             {v6.16b},  [x12], x2\n        urhadd          v2.16b,  v2.16b,  v6.16b\n        ld1             {v7.16b},  [x12], x2\n        urhadd          v3.16b,  v3.16b,  v7.16b\n  .endif\n        subs            w3,  w3,  #4\n        st1             {v0.16b},  [x0], x2\n        st1             {v1.16b},  [x0], x2\n        st1             {v2.16b},  [x0], x2\n        st1             {v3.16b},  [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels16_x2     rnd=1, avg=0\n1:      ld1             {v0.16b, v1.16b}, [x1], x2\n        ld1             {v2.16b, v3.16b}, [x1], x2\n        subs            w3,  w3,  #2\n        ext             v1.16b,  v0.16b,  v1.16b,  #1\n        avg             v0.16b,  v0.16b,  v1.16b\n        ext             v3.16b,  v2.16b,  v3.16b,  #1\n        avg             v2.16b,  v2.16b,  v3.16b\n  .if \\avg", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:2", "text": "urhadd          v3.16b,  v3.16b,  v7.16b\n  .endif\n        subs            w3,  w3,  #4\n        st1             {v0.16b},  [x0], x2\n        st1             {v1.16b},  [x0], x2\n        st1             {v2.16b},  [x0], x2\n        st1             {v3.16b},  [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels16_x2     rnd=1, avg=0\n1:      ld1             {v0.16b, v1.16b}, [x1], x2\n        ld1             {v2.16b, v3.16b}, [x1], x2\n        subs            w3,  w3,  #2\n        ext             v1.16b,  v0.16b,  v1.16b,  #1\n        avg             v0.16b,  v0.16b,  v1.16b\n        ext             v3.16b,  v2.16b,  v3.16b,  #1\n        avg             v2.16b,  v2.16b,  v3.16b\n  .if \\avg\n        ld1             {v1.16b}, [x0], x2\n        ld1             {v3.16b}, [x0]\n        urhadd          v0.16b,  v0.16b,  v1.16b\n        urhadd          v2.16b,  v2.16b,  v3.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v0.16b}, [x0], x2\n        st1             {v2.16b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels16_y2     rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ld1             {v0.16b}, [x1], x2\n        ld1             {v1.16b}, [x1], x2\n1:      subs            w3,  w3,  #2\n        avg             v2.16b,  v0.16b,  v1.16b\n        ld1             {v0.16b}, [x1], x2\n        avg             v3.16b,  v0.16b,  v1.16b\n        ld1             {v1.16b}, [x1], x2\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v2.16b}, [x0], x2\n        st1             {v3.16b}, [x0], x2\n        b.ne            1b\n\n        avg             v2.16b,  v0.16b,  v1.16b\n        ld1             {v0.16b}, [x1], x2\n        avg             v3.16b,  v0.16b,  v1.16b\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:3", "text": "ld1             {v1.16b}, [x1], x2\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v2.16b}, [x0], x2\n        st1             {v3.16b}, [x0], x2\n        b.ne            1b\n\n        avg             v2.16b,  v0.16b,  v1.16b\n        ld1             {v0.16b}, [x1], x2\n        avg             v3.16b,  v0.16b,  v1.16b\n  .if \\avg\n        ld1             {v4.16b}, [x0], x2\n        ld1             {v5.16b}, [x0]\n        urhadd          v2.16b,  v2.16b,  v4.16b\n        urhadd          v3.16b,  v3.16b,  v5.16b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v2.16b},     [x0], x2\n        st1             {v3.16b},     [x0], x2\n\n        ret\n.endm\n\n.macro  pixels16_xy2    rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ld1             {v0.16b, v1.16b}, [x1], x2\n        ld1             {v4.16b, v5.16b}, [x1], x2\nNRND    movi            v26.8H, #1\n        ext             v1.16b,  v0.16b,  v1.16b,  #1\n        ext             v5.16b,  v4.16b,  v5.16b,  #1\n        uaddl           v16.8h,  v0.8b,   v1.8b\n        uaddl2          v20.8h,  v0.16b,  v1.16b\n        uaddl           v18.8h,  v4.8b,   v5.8b\n        uaddl2          v22.8h,  v4.16b,  v5.16b\n1:      subs            w3,  w3,  #2\n        ld1             {v0.16b, v1.16b}, [x1], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        ext             v30.16b, v0.16b,  v1.16b,  #1\n        add             v1.8h,   v20.8h,  v22.8h\n        mshrn           v28.8b,  v24.8h,  #2\nNRND    add             v1.8H,   v1.8H,   v26.8H\n        mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        ld1             {v2.16b, v3.16b}, [x1], x2\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        ext             v3.16b,  v2.16b,  v3.16b,  #1\n        add             v0.8h,   v20.8h,  v22.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:4", "text": "ld1             {v0.16b, v1.16b}, [x1], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        ext             v30.16b, v0.16b,  v1.16b,  #1\n        add             v1.8h,   v20.8h,  v22.8h\n        mshrn           v28.8b,  v24.8h,  #2\nNRND    add             v1.8H,   v1.8H,   v26.8H\n        mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        ld1             {v2.16b, v3.16b}, [x1], x2\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        ext             v3.16b,  v2.16b,  v3.16b,  #1\n        add             v0.8h,   v20.8h,  v22.8h\n        mshrn           v30.8b,  v24.8h,  #2\nNRND    add             v0.8H,   v0.8H,   v26.8H\n        mshrn2          v30.16b, v0.8h,   #2\n  .if \\avg\n        ld1             {v18.16b},        [x0]\n        urhadd          v30.16b, v30.16b, v18.16b\n  .endif\n        uaddl           v18.8h,   v2.8b,  v3.8b\n        uaddl2          v22.8h,   v2.16b, v3.16b\n        st1             {v30.16b},        [x0], x2\n        b.gt            1b\n\n        ld1             {v0.16b, v1.16b}, [x1], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        ext             v30.16b, v0.16b,  v1.16b,  #1\n        add             v1.8h,   v20.8h,  v22.8h\n        mshrn           v28.8b,  v24.8h,  #2\nNRND    add             v1.8H,   v1.8H,   v26.8H\n        mshrn2          v28.16b, v1.8h,   #2\n  .if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v0.8h,   v20.8h,  v22.8h\n        mshrn           v30.8b,  v24.8h,  #2\nNRND    add             v0.8H,   v0.8H,   v26.8H\n        mshrn2          v30.16b, v0.8h,   #2\n  .if \\avg\n        ld1             {v18.16b},        [x0]\n        urhadd          v30.16b, v30.16b, v18.16b\n  .endif\n        st1             {v30.16b},        [x0], x2\n\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:5", "text": ".if \\avg\n        ld1             {v16.16b},        [x0]\n        urhadd          v28.16b, v28.16b, v16.16b\n  .endif\n        uaddl           v16.8h,  v0.8b,   v30.8b\n        uaddl2          v20.8h,  v0.16b,  v30.16b\n        st1             {v28.16b},        [x0], x2\n        add             v24.8h,  v16.8h,  v18.8h\nNRND    add             v24.8H,  v24.8H,  v26.8H\n        add             v0.8h,   v20.8h,  v22.8h\n        mshrn           v30.8b,  v24.8h,  #2\nNRND    add             v0.8H,   v0.8H,   v26.8H\n        mshrn2          v30.16b, v0.8h,   #2\n  .if \\avg\n        ld1             {v18.16b},        [x0]\n        urhadd          v30.16b, v30.16b, v18.16b\n  .endif\n        st1             {v30.16b},        [x0], x2\n\n        ret\n.endm\n\n.macro  pixels8         rnd=1, avg=0\n1:      ld1             {v0.8b}, [x1], x2\n        ld1             {v1.8b}, [x1], x2\n        ld1             {v2.8b}, [x1], x2\n        ld1             {v3.8b}, [x1], x2\n  .if \\avg\n        ld1             {v4.8b}, [x0], x2\n        urhadd          v0.8b,  v0.8b,  v4.8b\n        ld1             {v5.8b}, [x0], x2\n        urhadd          v1.8b,  v1.8b,  v5.8b\n        ld1             {v6.8b}, [x0], x2\n        urhadd          v2.8b,  v2.8b,  v6.8b\n        ld1             {v7.8b}, [x0], x2\n        urhadd          v3.8b,  v3.8b,  v7.8b\n        sub             x0,  x0,  x2,  lsl #2\n  .endif\n        subs            w3,  w3,  #4\n        st1             {v0.8b}, [x0], x2\n        st1             {v1.8b}, [x0], x2\n        st1             {v2.8b}, [x0], x2\n        st1             {v3.8b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels8_x2      rnd=1, avg=0\n1:      ld1             {v0.8b, v1.8b}, [x1], x2\n        ext             v1.8b,  v0.8b,  v1.8b,  #1\n        ld1             {v2.8b, v3.8b}, [x1], x2\n        ext             v3.8b,  v2.8b,  v3.8b,  #1\n        subs            w3,  w3,  #2\n        avg             v0.8b,   v0.8b,   v1.8b\n        avg             v2.8b,   v2.8b,   v3.8b\n  .if \\avg\n        ld1             {v4.8b},     [x0], x2\n        ld1             {v5.8b},     [x0]\n        urhadd          v0.8b,   v0.8b,   v4.8b\n        urhadd          v2.8b,   v2.8b,   v5.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:6", "text": "st1             {v1.8b}, [x0], x2\n        st1             {v2.8b}, [x0], x2\n        st1             {v3.8b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels8_x2      rnd=1, avg=0\n1:      ld1             {v0.8b, v1.8b}, [x1], x2\n        ext             v1.8b,  v0.8b,  v1.8b,  #1\n        ld1             {v2.8b, v3.8b}, [x1], x2\n        ext             v3.8b,  v2.8b,  v3.8b,  #1\n        subs            w3,  w3,  #2\n        avg             v0.8b,   v0.8b,   v1.8b\n        avg             v2.8b,   v2.8b,   v3.8b\n  .if \\avg\n        ld1             {v4.8b},     [x0], x2\n        ld1             {v5.8b},     [x0]\n        urhadd          v0.8b,   v0.8b,   v4.8b\n        urhadd          v2.8b,   v2.8b,   v5.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v0.8b}, [x0], x2\n        st1             {v2.8b}, [x0], x2\n        b.ne            1b\n        ret\n.endm\n\n.macro  pixels8_y2      rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ld1             {v0.8b},  [x1], x2\n        ld1             {v1.8b},  [x1], x2\n1:      subs            w3,  w3,  #2\n        avg             v4.8b,  v0.8b,  v1.8b\n        ld1             {v0.8b},  [x1], x2\n        avg             v5.8b,  v0.8b,  v1.8b\n        ld1             {v1.8b},  [x1], x2\n  .if \\avg\n        ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n        b.ne            1b\n\n        avg             v4.8b,  v0.8b,  v1.8b\n        ld1             {v0.8b},  [x1], x2\n        avg             v5.8b,  v0.8b,  v1.8b\n  .if \\avg\n        ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:7", "text": "urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n        b.ne            1b\n\n        avg             v4.8b,  v0.8b,  v1.8b\n        ld1             {v0.8b},  [x1], x2\n        avg             v5.8b,  v0.8b,  v1.8b\n  .if \\avg\n        ld1             {v2.8b},     [x0], x2\n        ld1             {v3.8b},     [x0]\n        urhadd          v4.8b,  v4.8b,  v2.8b\n        urhadd          v5.8b,  v5.8b,  v3.8b\n        sub             x0,  x0,  x2\n  .endif\n        st1             {v4.8b},     [x0], x2\n        st1             {v5.8b},     [x0], x2\n\n        ret\n.endm\n\n.macro  pixels8_xy2     rnd=1, avg=0\n        sub             w3,  w3,  #2\n        ld1             {v0.16b},     [x1], x2\n        ld1             {v1.16b},     [x1], x2\nNRND    movi            v19.8H, #1\n        ext             v4.16b,  v0.16b,  v4.16b,  #1\n        ext             v6.16b,  v1.16b,  v6.16b,  #1\n        uaddl           v16.8h,  v0.8b,  v4.8b\n        uaddl           v17.8h,  v1.8b,  v6.8b\n1:      subs            w3,  w3,  #2\n        ld1             {v0.16b},     [x1], x2\n        add             v18.8h, v16.8h,  v17.8h\n        ext             v4.16b,  v0.16b,  v4.16b,  #1\nNRND    add             v18.8H, v18.8H, v19.8H\n        uaddl           v16.8h,  v0.8b,  v4.8b\n        mshrn           v5.8b,  v18.8h, #2\n        ld1             {v1.16b},     [x1], x2\n        add             v18.8h, v16.8h,  v17.8h\n  .if \\avg\n        ld1             {v7.8b},     [x0]\n        urhadd          v5.8b,  v5.8b,  v7.8b\n  .endif\nNRND    add             v18.8H, v18.8H, v19.8H\n        st1             {v5.8b},     [x0], x2\n        mshrn           v7.8b,  v18.8h, #2\n  .if \\avg\n        ld1             {v5.8b},     [x0]\n        urhadd          v7.8b,  v7.8b,  v5.8b\n  .endif\n        ext             v6.16b,  v1.16b,  v6.16b,  #1\n        uaddl           v17.8h,  v1.8b,   v6.8b\n        st1             {v7.8b},     [x0], x2\n        b.gt            1b\n\n        ld1             {v0.16b},     [x1], x2\n        add             v18.8h, v16.8h, v17.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:8", "text": "ld1             {v1.16b},     [x1], x2\n        add             v18.8h, v16.8h,  v17.8h\n  .if \\avg\n        ld1             {v7.8b},     [x0]\n        urhadd          v5.8b,  v5.8b,  v7.8b\n  .endif\nNRND    add             v18.8H, v18.8H, v19.8H\n        st1             {v5.8b},     [x0], x2\n        mshrn           v7.8b,  v18.8h, #2\n  .if \\avg\n        ld1             {v5.8b},     [x0]\n        urhadd          v7.8b,  v7.8b,  v5.8b\n  .endif\n        ext             v6.16b,  v1.16b,  v6.16b,  #1\n        uaddl           v17.8h,  v1.8b,   v6.8b\n        st1             {v7.8b},     [x0], x2\n        b.gt            1b\n\n        ld1             {v0.16b},     [x1], x2\n        add             v18.8h, v16.8h, v17.8h\n        ext             v4.16b, v0.16b, v4.16b,  #1\nNRND    add             v18.8H, v18.8H, v19.8H\n        uaddl           v16.8h,  v0.8b, v4.8b\n        mshrn           v5.8b,  v18.8h, #2\n        add             v18.8h, v16.8h, v17.8h\n  .if \\avg\n        ld1             {v7.8b},     [x0]\n        urhadd          v5.8b,  v5.8b,  v7.8b\n  .endif\nNRND    add             v18.8H, v18.8H, v19.8H\n        st1             {v5.8b},     [x0], x2\n        mshrn           v7.8b,  v18.8h, #2\n  .if \\avg\n        ld1             {v5.8b},     [x0]\n        urhadd          v7.8b,  v7.8b,  v5.8b\n  .endif\n        st1             {v7.8b},     [x0], x2\n\n        ret\n.endm\n\n.macro  pixfunc         pfx, name, suf, rnd=1, avg=0\n  .if \\rnd\n    .macro avg  rd, rn, rm\n        urhadd          \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        rshrn           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn2 rd, rn, rm\n        rshrn2          \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n    .endm\n  .else\n    .macro avg  rd, rn, rm\n        uhadd           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        shrn            \\rd, \\rn, \\rm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:9", "text": ".macro  pixfunc         pfx, name, suf, rnd=1, avg=0\n  .if \\rnd\n    .macro avg  rd, rn, rm\n        urhadd          \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        rshrn           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn2 rd, rn, rm\n        rshrn2          \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n    .endm\n  .else\n    .macro avg  rd, rn, rm\n        uhadd           \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn rd, rn, rm\n        shrn            \\rd, \\rn, \\rm\n    .endm\n    .macro mshrn2 rd, rn, rm\n        shrn2           \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n        \\insn\n    .endm\n  .endif\nfunction ff_\\pfx\\name\\suf\\()_neon, export=1\n        \\name           \\rnd, \\avg\nendfunc\n        .purgem         avg\n        .purgem         mshrn\n        .purgem         mshrn2\n        .purgem         NRND\n.endm\n\n.macro  pixfunc2        pfx, name, avg=0\n        pixfunc         \\pfx, \\name,          rnd=1, avg=\\avg\n        pixfunc         \\pfx, \\name, _no_rnd, rnd=0, avg=\\avg\n.endm\n\nfunction ff_put_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         put_, pixels16,     avg=0\n        pixfunc2        put_, pixels16_x2,  avg=0\n        pixfunc2        put_, pixels16_y2,  avg=0\n        pixfunc2        put_, pixels16_xy2, avg=0\n\nfunction ff_avg_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         avg_, pixels16,     avg=1\n        pixfunc2        avg_, pixels16_x2,  avg=1\n        pixfunc2        avg_, pixels16_y2,  avg=1\n        pixfunc2        avg_, pixels16_xy2, avg=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/hpeldsp_neon.S:10", "text": ".endm\n\nfunction ff_put_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         put_, pixels16,     avg=0\n        pixfunc2        put_, pixels16_x2,  avg=0\n        pixfunc2        put_, pixels16_y2,  avg=0\n        pixfunc2        put_, pixels16_xy2, avg=0\n\nfunction ff_avg_h264_qpel16_mc00_neon, export=1\n        mov             w3,  #16\nendfunc\n\n        pixfunc         avg_, pixels16,     avg=1\n        pixfunc2        avg_, pixels16_x2,  avg=1\n        pixfunc2        avg_, pixels16_y2,  avg=1\n        pixfunc2        avg_, pixels16_xy2, avg=1\n\nfunction ff_put_h264_qpel8_mc00_neon, export=1\n        mov             w3,  #8\nendfunc\n\n        pixfunc         put_, pixels8,     avg=0\n        pixfunc2        put_, pixels8_x2,  avg=0\n        pixfunc2        put_, pixels8_y2,  avg=0\n        pixfunc2        put_, pixels8_xy2, avg=0\n\nfunction ff_avg_h264_qpel8_mc00_neon, export=1\n        mov             w3,  #8\nendfunc\n\n        pixfunc         avg_, pixels8,     avg=1\n        pixfunc         avg_, pixels8_x2,  avg=1\n        pixfunc         avg_, pixels8_y2,  avg=1\n        pixfunc         avg_, pixels8_xy2, avg=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/hpeldsp_neon.S", "line_start": 361, "line_end": 397}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/huffyuvdsp_neon.S:1", "text": "/*\n * Copyright (c) 2025\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// Add int16 array with masking\n// On entry:\n//   x0 -> destination array (uint16_t*)\n//   x1 -> source array (const uint16_t*)\n//   w2  = mask value\n//   w3  = number of elements\nfunction ff_add_int16_neon, export=1\n        dup             v31.8h, w2\n        mov             x4, x0\n\n        // Process 32 elements (64 bytes) if available\n1:      cmp             w3, #32\n        b.lt            2f\n        ld1             {v0.8h, v1.8h}, [x1], #32\n        ld1             {v2.8h, v3.8h}, [x0], #32\n        sub             w3, w3, #32\n        add             v0.8h, v0.8h, v2.8h\n        ld1             {v4.8h, v5.8h}, [x1], #32\n        add             v1.8h, v1.8h, v3.8h\n        ld1             {v6.8h, v7.8h}, [x0], #32\n        and             v0.16b, v0.16b, v31.16b\n        and             v1.16b, v1.16b, v31.16b\n\n        add             v4.8h, v4.8h, v6.8h\n        add             v5.8h, v5.8h, v7.8h\n        st1             {v0.8h, v1.8h}, [x4], #32\n        and             v4.16b, v4.16b, v31.16b\n        and             v5.16b, v5.16b, v31.16b\n        st1             {v4.8h, v5.8h}, [x4], #32\n        b               1b\n\n        // Process 8 elements (16 bytes) if available\n2:      cmp             w3, #8\n        b.lt            3f\n        ld1             {v0.8h}, [x1], #16\n        ld1             {v1.8h}, [x0]\n        sub             w3, w3, #8\n        add             v0.8h, v0.8h, v1.8h", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/huffyuvdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/huffyuvdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/huffyuvdsp_neon.S:2", "text": "add             v1.8h, v1.8h, v3.8h\n        ld1             {v6.8h, v7.8h}, [x0], #32\n        and             v0.16b, v0.16b, v31.16b\n        and             v1.16b, v1.16b, v31.16b\n\n        add             v4.8h, v4.8h, v6.8h\n        add             v5.8h, v5.8h, v7.8h\n        st1             {v0.8h, v1.8h}, [x4], #32\n        and             v4.16b, v4.16b, v31.16b\n        and             v5.16b, v5.16b, v31.16b\n        st1             {v4.8h, v5.8h}, [x4], #32\n        b               1b\n\n        // Process 8 elements (16 bytes) if available\n2:      cmp             w3, #8\n        b.lt            3f\n        ld1             {v0.8h}, [x1], #16\n        ld1             {v1.8h}, [x0]\n        sub             w3, w3, #8\n        add             v0.8h, v0.8h, v1.8h\n        and             v0.16b, v0.16b, v31.16b\n        st1             {v0.8h}, [x0], #16\n        b               2b\n\n        // Scalar path for remaining elements\n3:      cbz             w3, 4f\n        ldrh            w5, [x1], #2\n        ldrh            w6, [x0]\n        add             w5, w5, w6\n        and             w5, w5, w2\n        strh            w5, [x0], #2\n        subs            w3, w3, #1\n        b.ne            3b\n\n4:      ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/huffyuvdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/huffyuvdsp_neon.S", "line_start": 41, "line_end": 76}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/idctdsp_neon.S:1", "text": "/*\n * IDCT AArch64 NEON optimisations\n *\n * Copyright (c) 2022 Ben Avison <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// Clamp 16-bit signed block coefficients to unsigned 8-bit\n// On entry:\n//   x0 -> array of 64x 16-bit coefficients\n//   x1 -> 8-bit results\n//   x2 = row stride for results, bytes\nfunction ff_put_pixels_clamped_neon, export=1\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n        ld1             {v4.16b, v5.16b, v6.16b, v7.16b}, [x0]\n        sqxtun          v0.8b, v0.8h\n        sqxtun          v1.8b, v1.8h\n        sqxtun          v2.8b, v2.8h\n        sqxtun          v3.8b, v3.8h\n        sqxtun          v4.8b, v4.8h\n        st1             {v0.8b}, [x1], x2\n        sqxtun          v0.8b, v5.8h\n        st1             {v1.8b}, [x1], x2\n        sqxtun          v1.8b, v6.8h\n        st1             {v2.8b}, [x1], x2\n        sqxtun          v2.8b, v7.8h\n        st1             {v3.8b}, [x1], x2\n        st1             {v4.8b}, [x1], x2\n        st1             {v0.8b}, [x1], x2\n        st1             {v1.8b}, [x1], x2\n        st1             {v2.8b}, [x1]\n        ret\nendfunc\n\n// Clamp 16-bit signed block coefficients to signed 8-bit (biased by 128)\n// On entry:\n//   x0 -> array of 64x 16-bit coefficients\n//   x1 -> 8-bit results\n//   x2 = row stride for results, bytes\nfunction ff_put_signed_pixels_clamped_neon, export=1\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n        movi            v4.8b, #128\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/idctdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/idctdsp_neon.S:2", "text": "sqxtun          v1.8b, v6.8h\n        st1             {v2.8b}, [x1], x2\n        sqxtun          v2.8b, v7.8h\n        st1             {v3.8b}, [x1], x2\n        st1             {v4.8b}, [x1], x2\n        st1             {v0.8b}, [x1], x2\n        st1             {v1.8b}, [x1], x2\n        st1             {v2.8b}, [x1]\n        ret\nendfunc\n\n// Clamp 16-bit signed block coefficients to signed 8-bit (biased by 128)\n// On entry:\n//   x0 -> array of 64x 16-bit coefficients\n//   x1 -> 8-bit results\n//   x2 = row stride for results, bytes\nfunction ff_put_signed_pixels_clamped_neon, export=1\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n        movi            v4.8b, #128\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x0]\n        sqxtn           v0.8b, v0.8h\n        sqxtn           v1.8b, v1.8h\n        sqxtn           v2.8b, v2.8h\n        sqxtn           v3.8b, v3.8h\n        sqxtn           v5.8b, v16.8h\n        add             v0.8b, v0.8b, v4.8b\n        sqxtn           v6.8b, v17.8h\n        add             v1.8b, v1.8b, v4.8b\n        sqxtn           v7.8b, v18.8h\n        add             v2.8b, v2.8b, v4.8b\n        sqxtn           v16.8b, v19.8h\n        add             v3.8b, v3.8b, v4.8b\n        st1             {v0.8b}, [x1], x2\n        add             v0.8b, v5.8b, v4.8b\n        st1             {v1.8b}, [x1], x2\n        add             v1.8b, v6.8b, v4.8b\n        st1             {v2.8b}, [x1], x2\n        add             v2.8b, v7.8b, v4.8b\n        st1             {v3.8b}, [x1], x2\n        add             v3.8b, v16.8b, v4.8b\n        st1             {v0.8b}, [x1], x2\n        st1             {v1.8b}, [x1], x2\n        st1             {v2.8b}, [x1], x2\n        st1             {v3.8b}, [x1]\n        ret\nendfunc\n\n// Add 16-bit signed block coefficients to unsigned 8-bit\n// On entry:\n//   x0 -> array of 64x 16-bit coefficients\n//   x1 -> 8-bit input and results\n//   x2 = row stride for 8-bit input and results, bytes\nfunction ff_add_pixels_clamped_neon, export=1\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n        mov             x3, x1\n        ld1             {v4.8b}, [x1], x2\n        ld1             {v5.8b}, [x1], x2\n        ld1             {v6.8b}, [x1], x2\n        ld1             {v7.8b}, [x1], x2\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/idctdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/idctdsp_neon.S:3", "text": "st1             {v0.8b}, [x1], x2\n        st1             {v1.8b}, [x1], x2\n        st1             {v2.8b}, [x1], x2\n        st1             {v3.8b}, [x1]\n        ret\nendfunc\n\n// Add 16-bit signed block coefficients to unsigned 8-bit\n// On entry:\n//   x0 -> array of 64x 16-bit coefficients\n//   x1 -> 8-bit input and results\n//   x2 = row stride for 8-bit input and results, bytes\nfunction ff_add_pixels_clamped_neon, export=1\n        ld1             {v0.16b, v1.16b, v2.16b, v3.16b}, [x0], #64\n        mov             x3, x1\n        ld1             {v4.8b}, [x1], x2\n        ld1             {v5.8b}, [x1], x2\n        ld1             {v6.8b}, [x1], x2\n        ld1             {v7.8b}, [x1], x2\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x0]\n        uaddw           v0.8h, v0.8h, v4.8b\n        uaddw           v1.8h, v1.8h, v5.8b\n        uaddw           v2.8h, v2.8h, v6.8b\n        ld1             {v4.8b}, [x1], x2\n        uaddw           v3.8h, v3.8h, v7.8b\n        ld1             {v5.8b}, [x1], x2\n        sqxtun          v0.8b, v0.8h\n        ld1             {v6.8b}, [x1], x2\n        sqxtun          v1.8b, v1.8h\n        ld1             {v7.8b}, [x1]\n        sqxtun          v2.8b, v2.8h\n        sqxtun          v3.8b, v3.8h\n        uaddw           v4.8h, v16.8h, v4.8b\n        st1             {v0.8b}, [x3], x2\n        uaddw           v0.8h, v17.8h, v5.8b\n        st1             {v1.8b}, [x3], x2\n        uaddw           v1.8h, v18.8h, v6.8b\n        st1             {v2.8b}, [x3], x2\n        uaddw           v2.8h, v19.8h, v7.8b\n        sqxtun          v4.8b, v4.8h\n        sqxtun          v0.8b, v0.8h\n        st1             {v3.8b}, [x3], x2\n        sqxtun          v1.8b, v1.8h\n        sqxtun          v2.8b, v2.8h\n        st1             {v4.8b}, [x3], x2\n        st1             {v0.8b}, [x3], x2\n        st1             {v1.8b}, [x3], x2\n        st1             {v2.8b}, [x3]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/idctdsp_neon.S", "line_start": 81, "line_end": 130}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/idctdsp_neon.S:4", "text": "sqxtun          v0.8b, v0.8h\n        st1             {v3.8b}, [x3], x2\n        sqxtun          v1.8b, v1.8h\n        sqxtun          v2.8b, v2.8h\n        st1             {v4.8b}, [x3], x2\n        st1             {v0.8b}, [x3], x2\n        st1             {v1.8b}, [x3], x2\n        st1             {v2.8b}, [x3]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/idctdsp_neon.S", "line_start": 121, "line_end": 130}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegaudiodsp_neon.S:1", "text": "/*\n * Copyright (c) 2014 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define FRAC_BITS   23   // fractional bits for sb_samples and dct\n#define WFRAC_BITS  16   // fractional bits for window\n#define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)\n\nconst   tbl_rev128_s, align=4\n        .byte           12, 13, 14, 15\n        .byte            8,  9, 10, 11\n        .byte            4,  5,  6,  7\n        .byte            0,  1,  2,  3\nendconst\n\n.macro   apply_window   type, st\nfunction ff_mpadsp_apply_window_\\type\\()_neon, export=1\n        mov             x7,  x0\n        add             x8,  x0,  #512<<2\n        ld1             {v0.4s,v1.4s,v2.4s,v3.4s},  [x7],  #64\n        ld1             {v4.4s,v5.4s,v6.4s,v7.4s},  [x7],  #64\n        st1             {v0.4s,v1.4s,v2.4s,v3.4s},  [x8],  #64\n        st1             {v4.4s,v5.4s,v6.4s,v7.4s},  [x8],  #64\n        movrel          x15, tbl_rev128_s\n        ld1             {v27.4s}, [x15]\n.ifc \\type, fixed\n        lsl             x4,  x4,  #1\n.else\n        lsl             x4,  x4,  #2\n.endif\n        add             x10, x0,  #45<<2\n        add             x0,  x0,  #16<<2\n        add             x1,  x1,  #16<<2\n        add             x5,  x3,  x4,  lsl #5\n        sub             x5,  x5,  x4            // samples2\n        neg             x13, x4                 // -incr\n        mov             x9,  #64<<2\n.ifc \\type, fixed\n        ld1r            {v16.2s}, [x2]          // dither_state\n        sxtl            v16.2d, v16.2s\n        movi            v29.16b, #0\n        movi            v30.2d, #(1<<OUT_SHIFT)-1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegaudiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegaudiodsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegaudiodsp_neon.S:2", "text": "st1             {v4.4s,v5.4s,v6.4s,v7.4s},  [x8],  #64\n        movrel          x15, tbl_rev128_s\n        ld1             {v27.4s}, [x15]\n.ifc \\type, fixed\n        lsl             x4,  x4,  #1\n.else\n        lsl             x4,  x4,  #2\n.endif\n        add             x10, x0,  #45<<2\n        add             x0,  x0,  #16<<2\n        add             x1,  x1,  #16<<2\n        add             x5,  x3,  x4,  lsl #5\n        sub             x5,  x5,  x4            // samples2\n        neg             x13, x4                 // -incr\n        mov             x9,  #64<<2\n.ifc \\type, fixed\n        ld1r            {v16.2s}, [x2]          // dither_state\n        sxtl            v16.2d, v16.2s\n        movi            v29.16b, #0\n        movi            v30.2d, #(1<<OUT_SHIFT)-1\n        trn1            v31.2d, v29.2d, v30.2d\n        trn2            v30.2d, v30.2d, v29.2d\n        trn1            v16.2d, v16.2d, v29.2d\n.else\n        movi            v16.4s, #0\n        movi            v28.4s, #0\n.endif\n        mov             x14, #4\n1:\n        mov             x8,  x0\n        sub             x7,  x1,  #3<<2\n        sub             x6,  x1,  x14, lsl #4\n        add             x7,  x7,  x14, lsl #4\n        add             x11, x6, #(32)<<2      // w  + 32\n        add             x12, x7, #(32)<<2      // w2 + 32\n        mov             x15, #8\n        movi            v17.16b, #0\n        movi            v18.16b, #0\n        movi            v19.16b, #0\n2:\n        subs            x15, x15, #1\n        ld1             {v0.4s},  [x8],  x9\n        ld1             {v1.4s},  [x10], x9\n        ld1             {v2.4s},  [x6],  x9\n        ld1             {v3.4s},  [x7],  x9\n        tbl             v6.16b, {v0.16b}, v27.16b\n        tbl             v7.16b, {v1.16b}, v27.16b\n        ld1             {v4.4s},  [x11], x9\n        ld1             {v5.4s},  [x12], x9\n        MLA             v16, v2, v0\n        MLA2            v17, v2, v0\n        MLS             v18, v3, v6\n        MLS2            v19, v3, v6\n        MLS             v16, v4, v7\n        MLS2            v17, v4, v7\n        MLS             v18, v5, v1\n        MLS2            v19, v5, v1\n        b.gt            2b\n\n        cmp             x14, #4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegaudiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegaudiodsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegaudiodsp_neon.S:3", "text": "subs            x15, x15, #1\n        ld1             {v0.4s},  [x8],  x9\n        ld1             {v1.4s},  [x10], x9\n        ld1             {v2.4s},  [x6],  x9\n        ld1             {v3.4s},  [x7],  x9\n        tbl             v6.16b, {v0.16b}, v27.16b\n        tbl             v7.16b, {v1.16b}, v27.16b\n        ld1             {v4.4s},  [x11], x9\n        ld1             {v5.4s},  [x12], x9\n        MLA             v16, v2, v0\n        MLA2            v17, v2, v0\n        MLS             v18, v3, v6\n        MLS2            v19, v3, v6\n        MLS             v16, v4, v7\n        MLS2            v17, v4, v7\n        MLS             v18, v5, v1\n        MLS2            v19, v5, v1\n        b.gt            2b\n\n        cmp             x14, #4\n        sub             x10, x10, #64<<5        // 64 * 8 * sizeof(int32_t)\n\n.ifc \\type, fixed\n        and             v28.16b, v16.16b, v30.16b\n        ext             v28.16b, v29.16b, v28.16b, #8\n\n        b.eq            4f\n        round_sample    v19, 1, 1\n4:\n        round_sample    v16, 1, 0\n        shrn            v16.2s, v16.2d,  #OUT_SHIFT\n        round_sample    v19, 0, 0\n        shrn            v19.2s, v19.2d,  #OUT_SHIFT\n        round_sample    v17, 0, 1\n        round_sample    v18, 1, 1\n        round_sample    v17, 1, 0\n        shrn2           v16.4s, v17.2d,  #OUT_SHIFT\n        round_sample    v18, 0, 0\n        shrn2           v19.4s, v18.2d,  #OUT_SHIFT\n        sqxtn           v16.4h, v16.4s\n        sqxtn           v18.4h, v19.4s\n.else\n        ext             v18.16b, v18.16b, v18.16b, #8\n.endif\n\n        st1             {v16.\\st\\()}[0], [x3], x4\n        b.eq            4f\n        st1             {v18.\\st\\()}[1], [x5], x13\n4:\n        st1             {v16.\\st\\()}[1], [x3], x4\n        st1             {v18.\\st\\()}[0], [x5], x13\n        st1             {v16.\\st\\()}[2], [x3], x4\n        st1             {v18.\\st\\()}[3], [x5], x13\n        st1             {v16.\\st\\()}[3], [x3], x4\n        st1             {v18.\\st\\()}[2], [x5], x13\n\n        mov             v16.16b, v28.16b\n\n        subs            x14, x14, #1\n        add             x0,  x0,  #4<<2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegaudiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegaudiodsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegaudiodsp_neon.S:4", "text": "sqxtn           v18.4h, v19.4s\n.else\n        ext             v18.16b, v18.16b, v18.16b, #8\n.endif\n\n        st1             {v16.\\st\\()}[0], [x3], x4\n        b.eq            4f\n        st1             {v18.\\st\\()}[1], [x5], x13\n4:\n        st1             {v16.\\st\\()}[1], [x3], x4\n        st1             {v18.\\st\\()}[0], [x5], x13\n        st1             {v16.\\st\\()}[2], [x3], x4\n        st1             {v18.\\st\\()}[3], [x5], x13\n        st1             {v16.\\st\\()}[3], [x3], x4\n        st1             {v18.\\st\\()}[2], [x5], x13\n\n        mov             v16.16b, v28.16b\n\n        subs            x14, x14, #1\n        add             x0,  x0,  #4<<2\n        sub             x10, x10, #4<<2\n        b.gt            1b\n\n// computing samples[16]\n        add             x6,  x1,  #32<<2\n        ld1             {v0.2s},  [x6],  x9\n        ld1             {v1.2s},  [x0],  x9\n.rept   3\n        ld1             {v2.2s},  [x6],  x9\n        ld1             {v3.2s},  [x0],  x9\n        MLS             v16, v0,  v1\n        ld1             {v0.2s},  [x6],  x9\n        ld1             {v1.2s},  [x0],  x9\n        MLS             v16, v2,  v3\n.endr\n        ld1             {v2.2s},  [x6],  x9\n        ld1             {v3.2s},  [x0],  x9\n        MLS             v16, v0,  v1\n        MLS             v16, v2,  v3\n\n.ifc \\type, fixed\n        and             v28.16b, v16.16b, v30.16b\n        shrn            v20.2s,  v16.2d,  #OUT_SHIFT\n        xtn             v28.2s,  v28.2d\n        sqxtn           v20.4h,  v20.4s\n        st1             {v28.s}[0], [x2]        // save dither_state\n        st1             {v20.h}[0], [x3]\n.else\n        st1             {v16.s}[0], [x3]\n.endif\n\n        ret\nendfunc\n.purgem round_sample\n.purgem MLA\n.purgem MLA2\n.purgem MLS\n.purgem MLS2\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegaudiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegaudiodsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegaudiodsp_neon.S:5", "text": ".ifc \\type, fixed\n        and             v28.16b, v16.16b, v30.16b\n        shrn            v20.2s,  v16.2d,  #OUT_SHIFT\n        xtn             v28.2s,  v28.2d\n        sqxtn           v20.4h,  v20.4s\n        st1             {v28.s}[0], [x2]        // save dither_state\n        st1             {v20.h}[0], [x3]\n.else\n        st1             {v16.s}[0], [x3]\n.endif\n\n        ret\nendfunc\n.purgem round_sample\n.purgem MLA\n.purgem MLA2\n.purgem MLS\n.purgem MLS2\n.endm\n\n\n.macro  round_sample    r, idx, next\n        add             \\r\\().2d, \\r\\().2d, v28.2d\n.if \\idx == 0\n        and             v28.16b,  \\r\\().16b,  v30.16b\n.else // \\idx == 1\n        and             v28.16b,  \\r\\().16b,  v31.16b\n.endif\n.if \\idx != \\next\n  .if \\next == 0\n        ext             v28.16b, v28.16b, v29.16b, #8\n  .else\n        ext             v28.16b, v29.16b, v28.16b, #8\n  .endif\n.endif\n.endm\n.macro  MLA             d, s1, s2\n        smlal           \\d\\().2d, \\s1\\().2s, \\s2\\().2s\n.endm\n.macro  MLA2            d, s1, s2\n        smlal2          \\d\\().2d, \\s1\\().4s, \\s2\\().4s\n.endm\n.macro  MLS             d, s1, s2\n        smlsl           \\d\\().2d, \\s1\\().2s, \\s2\\().2s\n.endm\n.macro  MLS2            d, s1, s2\n        smlsl2          \\d\\().2d, \\s1\\().4s, \\s2\\().4s\n.endm\napply_window fixed, h\n\n\n// nothing to do for round_sample and ML{A,S}2\n.macro  round_sample    r, idx, next\n.endm\n.macro  MLA2            d, s1, s2\n.endm\n.macro  MLS2            d, s1, s2\n.endm\n.macro  MLA             d, s1, s2\n        fmla            \\d\\().4s, \\s1\\().4s, \\s2\\().4s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegaudiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegaudiodsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegaudiodsp_neon.S:6", "text": "smlal2          \\d\\().2d, \\s1\\().4s, \\s2\\().4s\n.endm\n.macro  MLS             d, s1, s2\n        smlsl           \\d\\().2d, \\s1\\().2s, \\s2\\().2s\n.endm\n.macro  MLS2            d, s1, s2\n        smlsl2          \\d\\().2d, \\s1\\().4s, \\s2\\().4s\n.endm\napply_window fixed, h\n\n\n// nothing to do for round_sample and ML{A,S}2\n.macro  round_sample    r, idx, next\n.endm\n.macro  MLA2            d, s1, s2\n.endm\n.macro  MLS2            d, s1, s2\n.endm\n.macro  MLA             d, s1, s2\n        fmla            \\d\\().4s, \\s1\\().4s, \\s2\\().4s\n.endm\n.macro  MLS             d, s1, s2\n        fmls            \\d\\().4s, \\s1\\().4s, \\s2\\().4s\n.endm\napply_window float, s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegaudiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegaudiodsp_neon.S", "line_start": 201, "line_end": 225}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_pix_sum16_neon, export=1\n// x0  const uint8_t *pix\n// x1  ptrdiff_t line_size\n\n        add             x2, x0, x1\n        lsl             x1, x1, #1\n        movi            v0.16b, #0\n        mov             w3, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        ld1             {v2.16b}, [x2], x1\n        subs            w3, w3, #2\n        uadalp          v0.8h, v1.16b\n        uadalp          v0.8h, v2.16b\n        b.ne            1b\n\n        uaddlv          s0, v0.8h\n        fmov            w0, s0\n\n        ret\nendfunc\n\nfunction ff_pix_norm1_neon, export=1\n// x0  const uint8_t *pix\n// x1  ptrdiff_t line_size\n\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        subs            w2, w2, #1\n        umull           v2.8h, v1.8b,  v1.8b\n        umull2          v3.8h, v1.16b, v1.16b\n        uadalp          v0.4s, v2.8h\n        uadalp          v0.4s, v3.8h\n        b.ne            1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:2", "text": "fmov            w0, s0\n\n        ret\nendfunc\n\nfunction ff_pix_norm1_neon, export=1\n// x0  const uint8_t *pix\n// x1  ptrdiff_t line_size\n\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        subs            w2, w2, #1\n        umull           v2.8h, v1.8b,  v1.8b\n        umull2          v3.8h, v1.16b, v1.16b\n        uadalp          v0.4s, v2.8h\n        uadalp          v0.4s, v3.8h\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc\n\n#if HAVE_DOTPROD\nENABLE_DOTPROD\n\nfunction ff_pix_norm1_neon_dotprod, export=1\n// x0  const uint8_t *pix\n// x1  ptrdiff_t line_size\n\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        ld1             {v2.16b}, [x0], x1\n        udot            v0.4s, v1.16b, v1.16b\n        subs            w2, w2, #2\n        udot            v0.4s, v2.16b, v2.16b\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc\n\nDISABLE_DOTPROD\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 41, "line_end": 93}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:3", "text": "udot            v0.4s, v1.16b, v1.16b\n        subs            w2, w2, #2\n        udot            v0.4s, v2.16b, v2.16b\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc\n\nDISABLE_DOTPROD\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 81, "line_end": 93}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_pix_sum16_neon, export=1\n// x0  const uint8_t *pix\n// x1  int line_size\n\n        sxtw            x1, w1\n        add             x2, x0, x1\n        lsl             x1, x1, #1\n        movi            v0.16b, #0\n        mov             w3, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        ld1             {v2.16b}, [x2], x1\n        subs            w3, w3, #2\n        uadalp          v0.8h, v1.16b\n        uadalp          v0.8h, v2.16b\n        b.ne            1b\n\n        uaddlv          s0, v0.8h\n        fmov            w0, s0\n\n        ret\nendfunc\n\nfunction ff_pix_norm1_neon, export=1\n// x0  const uint8_t *pix\n// x1  int line_size\n\n        sxtw            x1, w1\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        subs            w2, w2, #1\n        umull           v2.8h, v1.8b,  v1.8b\n        umull2          v3.8h, v1.16b, v1.16b\n        uadalp          v0.4s, v2.8h", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "8c203ea7c794e01efcf985ba8303f598a8180864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8c203ea7c794e01efcf985ba8303f598a8180864/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:2", "text": "uaddlv          s0, v0.8h\n        fmov            w0, s0\n\n        ret\nendfunc\n\nfunction ff_pix_norm1_neon, export=1\n// x0  const uint8_t *pix\n// x1  int line_size\n\n        sxtw            x1, w1\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        subs            w2, w2, #1\n        umull           v2.8h, v1.8b,  v1.8b\n        umull2          v3.8h, v1.16b, v1.16b\n        uadalp          v0.4s, v2.8h\n        uadalp          v0.4s, v3.8h\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc\n\n#if HAVE_DOTPROD\nENABLE_DOTPROD\n\nfunction ff_pix_norm1_neon_dotprod, export=1\n// x0  const uint8_t *pix\n// x1  int line_size\n\n        sxtw            x1, w1\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        ld1             {v2.16b}, [x0], x1\n        udot            v0.4s, v1.16b, v1.16b\n        subs            w2, w2, #2\n        udot            v0.4s, v2.16b, v2.16b\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc\n\nDISABLE_DOTPROD\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "8c203ea7c794e01efcf985ba8303f598a8180864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8c203ea7c794e01efcf985ba8303f598a8180864/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 41, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:3", "text": "1:\n        ld1             {v1.16b}, [x0], x1\n        ld1             {v2.16b}, [x0], x1\n        udot            v0.4s, v1.16b, v1.16b\n        subs            w2, w2, #2\n        udot            v0.4s, v2.16b, v2.16b\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc\n\nDISABLE_DOTPROD\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "8c203ea7c794e01efcf985ba8303f598a8180864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8c203ea7c794e01efcf985ba8303f598a8180864/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 81, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/mpegvideoencdsp_neon.S:2", "text": "uaddlv          s0, v0.8h\n        fmov            w0, s0\n\n        ret\nendfunc\n\nfunction ff_pix_norm1_neon, export=1\n// x0  const uint8_t *pix\n// x1  int line_size\n\n        sxtw            x1, w1\n        movi            v0.16b, #0\n        mov             w2, #16\n\n1:\n        ld1             {v1.16b}, [x0], x1\n        subs            w2, w2, #1\n        umull           v2.8h, v1.8b,  v1.8b\n        umull2          v3.8h, v1.16b, v1.16b\n        uadalp          v0.4s, v2.8h\n        uadalp          v0.4s, v3.8h\n        b.ne            1b\n\n        uaddlv          d0, v0.4s\n        fmov            w0, s0\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/mpegvideoencdsp_neon.S", "license": "LGPL-2.1", "commit": "9f68a3712eb47983cb0a067a4ff2e722c4c026fd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f68a3712eb47983cb0a067a4ff2e722c4c026fd/libavcodec/aarch64/mpegvideoencdsp_neon.S", "line_start": 41, "line_end": 68}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/neon.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * Copyright (c) 2023 J. Dekker <jdek@itanimul.li>\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n.macro clip min, max, regs:vararg\n.irp x, \\regs\n        smax            \\x, \\x, \\min\n.endr\n.irp x, \\regs\n        smin            \\x, \\x, \\max\n.endr\n.endm\n\n.macro  transpose_8x8B  r0, r1, r2, r3, r4, r5, r6, r7, r8, r9\n        trn1            \\r8\\().8b,  \\r0\\().8b,  \\r1\\().8b\n        trn2            \\r9\\().8b,  \\r0\\().8b,  \\r1\\().8b\n        trn1            \\r1\\().8b,  \\r2\\().8b,  \\r3\\().8b\n        trn2            \\r3\\().8b,  \\r2\\().8b,  \\r3\\().8b\n        trn1            \\r0\\().8b,  \\r4\\().8b,  \\r5\\().8b\n        trn2            \\r5\\().8b,  \\r4\\().8b,  \\r5\\().8b\n        trn1            \\r2\\().8b,  \\r6\\().8b,  \\r7\\().8b\n        trn2            \\r7\\().8b,  \\r6\\().8b,  \\r7\\().8b\n\n        trn1            \\r4\\().4h,  \\r0\\().4h,  \\r2\\().4h\n        trn2            \\r2\\().4h,  \\r0\\().4h,  \\r2\\().4h\n        trn1            \\r6\\().4h,  \\r5\\().4h,  \\r7\\().4h\n        trn2            \\r7\\().4h,  \\r5\\().4h,  \\r7\\().4h\n        trn1            \\r5\\().4h,  \\r9\\().4h,  \\r3\\().4h\n        trn2            \\r9\\().4h,  \\r9\\().4h,  \\r3\\().4h\n        trn1            \\r3\\().4h,  \\r8\\().4h,  \\r1\\().4h\n        trn2            \\r8\\().4h,  \\r8\\().4h,  \\r1\\().4h\n\n        trn1            \\r0\\().2s,  \\r3\\().2s,  \\r4\\().2s\n        trn2            \\r4\\().2s,  \\r3\\().2s,  \\r4\\().2s\n\n        trn1            \\r1\\().2s,  \\r5\\().2s,  \\r6\\().2s\n        trn2            \\r5\\().2s,  \\r5\\().2s,  \\r6\\().2s\n\n        trn2            \\r6\\().2s,  \\r8\\().2s,  \\r2\\().2s\n        trn1            \\r2\\().2s,  \\r8\\().2s,  \\r2\\().2s\n\n        trn1            \\r3\\().2s,  \\r9\\().2s,  \\r7\\().2s\n        trn2            \\r7\\().2s,  \\r9\\().2s,  \\r7\\().2s\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/neon.S:2", "text": "trn2            \\r2\\().4h,  \\r0\\().4h,  \\r2\\().4h\n        trn1            \\r6\\().4h,  \\r5\\().4h,  \\r7\\().4h\n        trn2            \\r7\\().4h,  \\r5\\().4h,  \\r7\\().4h\n        trn1            \\r5\\().4h,  \\r9\\().4h,  \\r3\\().4h\n        trn2            \\r9\\().4h,  \\r9\\().4h,  \\r3\\().4h\n        trn1            \\r3\\().4h,  \\r8\\().4h,  \\r1\\().4h\n        trn2            \\r8\\().4h,  \\r8\\().4h,  \\r1\\().4h\n\n        trn1            \\r0\\().2s,  \\r3\\().2s,  \\r4\\().2s\n        trn2            \\r4\\().2s,  \\r3\\().2s,  \\r4\\().2s\n\n        trn1            \\r1\\().2s,  \\r5\\().2s,  \\r6\\().2s\n        trn2            \\r5\\().2s,  \\r5\\().2s,  \\r6\\().2s\n\n        trn2            \\r6\\().2s,  \\r8\\().2s,  \\r2\\().2s\n        trn1            \\r2\\().2s,  \\r8\\().2s,  \\r2\\().2s\n\n        trn1            \\r3\\().2s,  \\r9\\().2s,  \\r7\\().2s\n        trn2            \\r7\\().2s,  \\r9\\().2s,  \\r7\\().2s\n.endm\n\n.macro  transpose_8x16B r0, r1, r2, r3, r4, r5, r6, r7, t0, t1\n        trn1            \\t0\\().16b, \\r0\\().16b, \\r1\\().16b\n        trn2            \\t1\\().16b, \\r0\\().16b, \\r1\\().16b\n        trn1            \\r1\\().16b, \\r2\\().16b, \\r3\\().16b\n        trn2            \\r3\\().16b, \\r2\\().16b, \\r3\\().16b\n        trn1            \\r0\\().16b, \\r4\\().16b, \\r5\\().16b\n        trn2            \\r5\\().16b, \\r4\\().16b, \\r5\\().16b\n        trn1            \\r2\\().16b, \\r6\\().16b, \\r7\\().16b\n        trn2            \\r7\\().16b, \\r6\\().16b, \\r7\\().16b\n\n        trn1            \\r4\\().8h,  \\r0\\().8h,  \\r2\\().8h\n        trn2            \\r2\\().8h,  \\r0\\().8h,  \\r2\\().8h\n        trn1            \\r6\\().8h,  \\r5\\().8h,  \\r7\\().8h\n        trn2            \\r7\\().8h,  \\r5\\().8h,  \\r7\\().8h\n        trn1            \\r5\\().8h,  \\t1\\().8h,  \\r3\\().8h\n        trn2            \\t1\\().8h,  \\t1\\().8h,  \\r3\\().8h\n        trn1            \\r3\\().8h,  \\t0\\().8h,  \\r1\\().8h\n        trn2            \\t0\\().8h,  \\t0\\().8h,  \\r1\\().8h\n\n        trn1            \\r0\\().4s,  \\r3\\().4s,  \\r4\\().4s\n        trn2            \\r4\\().4s,  \\r3\\().4s,  \\r4\\().4s\n\n        trn1            \\r1\\().4s,  \\r5\\().4s,  \\r6\\().4s\n        trn2            \\r5\\().4s,  \\r5\\().4s,  \\r6\\().4s\n\n        trn2            \\r6\\().4s,  \\t0\\().4s,  \\r2\\().4s\n        trn1            \\r2\\().4s,  \\t0\\().4s,  \\r2\\().4s\n\n        trn1            \\r3\\().4s,  \\t1\\().4s,  \\r7\\().4s\n        trn2            \\r7\\().4s,  \\t1\\().4s,  \\r7\\().4s\n.endm\n\n.macro  transpose_4x16B r0, r1, r2, r3, t4, t5, t6, t7\n        trn1            \\t4\\().16b, \\r0\\().16b,  \\r1\\().16b\n        trn2            \\t5\\().16b, \\r0\\().16b,  \\r1\\().16b\n        trn1            \\t6\\().16b, \\r2\\().16b,  \\r3\\().16b\n        trn2            \\t7\\().16b, \\r2\\().16b,  \\r3\\().16b\n\n        trn1            \\r0\\().8h,  \\t4\\().8h,  \\t6\\().8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/neon.S:3", "text": "trn1            \\r0\\().4s,  \\r3\\().4s,  \\r4\\().4s\n        trn2            \\r4\\().4s,  \\r3\\().4s,  \\r4\\().4s\n\n        trn1            \\r1\\().4s,  \\r5\\().4s,  \\r6\\().4s\n        trn2            \\r5\\().4s,  \\r5\\().4s,  \\r6\\().4s\n\n        trn2            \\r6\\().4s,  \\t0\\().4s,  \\r2\\().4s\n        trn1            \\r2\\().4s,  \\t0\\().4s,  \\r2\\().4s\n\n        trn1            \\r3\\().4s,  \\t1\\().4s,  \\r7\\().4s\n        trn2            \\r7\\().4s,  \\t1\\().4s,  \\r7\\().4s\n.endm\n\n.macro  transpose_4x16B r0, r1, r2, r3, t4, t5, t6, t7\n        trn1            \\t4\\().16b, \\r0\\().16b,  \\r1\\().16b\n        trn2            \\t5\\().16b, \\r0\\().16b,  \\r1\\().16b\n        trn1            \\t6\\().16b, \\r2\\().16b,  \\r3\\().16b\n        trn2            \\t7\\().16b, \\r2\\().16b,  \\r3\\().16b\n\n        trn1            \\r0\\().8h,  \\t4\\().8h,  \\t6\\().8h\n        trn2            \\r2\\().8h,  \\t4\\().8h,  \\t6\\().8h\n        trn1            \\r1\\().8h,  \\t5\\().8h,  \\t7\\().8h\n        trn2            \\r3\\().8h,  \\t5\\().8h,  \\t7\\().8h\n.endm\n\n.macro  transpose_4x8B  r0, r1, r2, r3, t4, t5, t6, t7\n        trn1            \\t4\\().8b,  \\r0\\().8b,  \\r1\\().8b\n        trn2            \\t5\\().8b,  \\r0\\().8b,  \\r1\\().8b\n        trn1            \\t6\\().8b,  \\r2\\().8b,  \\r3\\().8b\n        trn2            \\t7\\().8b,  \\r2\\().8b,  \\r3\\().8b\n\n        trn1            \\r0\\().4h,  \\t4\\().4h,  \\t6\\().4h\n        trn2            \\r2\\().4h,  \\t4\\().4h,  \\t6\\().4h\n        trn1            \\r1\\().4h,  \\t5\\().4h,  \\t7\\().4h\n        trn2            \\r3\\().4h,  \\t5\\().4h,  \\t7\\().4h\n.endm\n\n.macro  transpose_4x4H  r0, r1, r2, r3, r4, r5, r6, r7\n        trn1            \\r4\\().4h,  \\r0\\().4h,  \\r1\\().4h\n        trn2            \\r5\\().4h,  \\r0\\().4h,  \\r1\\().4h\n        trn1            \\r6\\().4h,  \\r2\\().4h,  \\r3\\().4h\n        trn2            \\r7\\().4h,  \\r2\\().4h,  \\r3\\().4h\n\n        trn1            \\r0\\().2s,  \\r4\\().2s,  \\r6\\().2s\n        trn2            \\r2\\().2s,  \\r4\\().2s,  \\r6\\().2s\n        trn1            \\r1\\().2s,  \\r5\\().2s,  \\r7\\().2s\n        trn2            \\r3\\().2s,  \\r5\\().2s,  \\r7\\().2s\n.endm\n\n.macro transpose_4x8H r0, r1, r2, r3, t4, t5, t6, t7\n        trn1            \\t4\\().8h,  \\r0\\().8h,  \\r1\\().8h\n        trn2            \\t5\\().8h,  \\r0\\().8h,  \\r1\\().8h\n        trn1            \\t6\\().8h,  \\r2\\().8h,  \\r3\\().8h\n        trn2            \\t7\\().8h,  \\r2\\().8h,  \\r3\\().8h\n\n        trn1            \\r0\\().4s,  \\t4\\().4s,  \\t6\\().4s\n        trn2            \\r2\\().4s,  \\t4\\().4s,  \\t6\\().4s\n        trn1            \\r1\\().4s,  \\t5\\().4s,  \\t7\\().4s\n        trn2            \\r3\\().4s,  \\t5\\().4s,  \\t7\\().4s\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/neon.S:4", "text": "trn1            \\r6\\().4h,  \\r2\\().4h,  \\r3\\().4h\n        trn2            \\r7\\().4h,  \\r2\\().4h,  \\r3\\().4h\n\n        trn1            \\r0\\().2s,  \\r4\\().2s,  \\r6\\().2s\n        trn2            \\r2\\().2s,  \\r4\\().2s,  \\r6\\().2s\n        trn1            \\r1\\().2s,  \\r5\\().2s,  \\r7\\().2s\n        trn2            \\r3\\().2s,  \\r5\\().2s,  \\r7\\().2s\n.endm\n\n.macro transpose_4x8H r0, r1, r2, r3, t4, t5, t6, t7\n        trn1            \\t4\\().8h,  \\r0\\().8h,  \\r1\\().8h\n        trn2            \\t5\\().8h,  \\r0\\().8h,  \\r1\\().8h\n        trn1            \\t6\\().8h,  \\r2\\().8h,  \\r3\\().8h\n        trn2            \\t7\\().8h,  \\r2\\().8h,  \\r3\\().8h\n\n        trn1            \\r0\\().4s,  \\t4\\().4s,  \\t6\\().4s\n        trn2            \\r2\\().4s,  \\t4\\().4s,  \\t6\\().4s\n        trn1            \\r1\\().4s,  \\t5\\().4s,  \\t7\\().4s\n        trn2            \\r3\\().4s,  \\t5\\().4s,  \\t7\\().4s\n.endm\n\n.macro  transpose_8x8H  r0, r1, r2, r3, r4, r5, r6, r7, r8, r9\n        trn1            \\r8\\().8h,  \\r0\\().8h,  \\r1\\().8h\n        trn2            \\r9\\().8h,  \\r0\\().8h,  \\r1\\().8h\n        trn1            \\r1\\().8h,  \\r2\\().8h,  \\r3\\().8h\n        trn2            \\r3\\().8h,  \\r2\\().8h,  \\r3\\().8h\n        trn1            \\r0\\().8h,  \\r4\\().8h,  \\r5\\().8h\n        trn2            \\r5\\().8h,  \\r4\\().8h,  \\r5\\().8h\n        trn1            \\r2\\().8h,  \\r6\\().8h,  \\r7\\().8h\n        trn2            \\r7\\().8h,  \\r6\\().8h,  \\r7\\().8h\n\n        trn1            \\r4\\().4s,  \\r0\\().4s,  \\r2\\().4s\n        trn2            \\r2\\().4s,  \\r0\\().4s,  \\r2\\().4s\n        trn1            \\r6\\().4s,  \\r5\\().4s,  \\r7\\().4s\n        trn2            \\r7\\().4s,  \\r5\\().4s,  \\r7\\().4s\n        trn1            \\r5\\().4s,  \\r9\\().4s,  \\r3\\().4s\n        trn2            \\r9\\().4s,  \\r9\\().4s,  \\r3\\().4s\n        trn1            \\r3\\().4s,  \\r8\\().4s,  \\r1\\().4s\n        trn2            \\r8\\().4s,  \\r8\\().4s,  \\r1\\().4s\n\n        trn1            \\r0\\().2d,  \\r3\\().2d,  \\r4\\().2d\n        trn2            \\r4\\().2d,  \\r3\\().2d,  \\r4\\().2d\n\n        trn1            \\r1\\().2d,  \\r5\\().2d,  \\r6\\().2d\n        trn2            \\r5\\().2d,  \\r5\\().2d,  \\r6\\().2d\n\n        trn2            \\r6\\().2d,  \\r8\\().2d,  \\r2\\().2d\n        trn1            \\r2\\().2d,  \\r8\\().2d,  \\r2\\().2d\n\n        trn1            \\r3\\().2d,  \\r9\\().2d,  \\r7\\().2d\n        trn2            \\r7\\().2d,  \\r9\\().2d,  \\r7\\().2d\n\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/neon.S", "line_start": 121, "line_end": 173}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/neon.S:5", "text": "trn1            \\r0\\().2d,  \\r3\\().2d,  \\r4\\().2d\n        trn2            \\r4\\().2d,  \\r3\\().2d,  \\r4\\().2d\n\n        trn1            \\r1\\().2d,  \\r5\\().2d,  \\r6\\().2d\n        trn2            \\r5\\().2d,  \\r5\\().2d,  \\r6\\().2d\n\n        trn2            \\r6\\().2d,  \\r8\\().2d,  \\r2\\().2d\n        trn1            \\r2\\().2d,  \\r8\\().2d,  \\r2\\().2d\n\n        trn1            \\r3\\().2d,  \\r9\\().2d,  \\r7\\().2d\n        trn2            \\r7\\().2d,  \\r9\\().2d,  \\r7\\().2d\n\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/neon.S", "line_start": 161, "line_end": 173}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_opus_deemphasis_neon, export=1\n        ld1             {v4.4s}, [x2], #16\n        ld1             {v5.4s}, [x2], #16\n        ld1             {v6.4s}, [x2], #16\n        ld1             {v7.4s}, [x2]\n\n        fmul            v0.4s, v4.4s, v0.s[0]\n\n1:      ld1             {v1.4s, v2.4s}, [x1], #32\n\n        fmla            v0.4s, v5.4s, v1.s[0]\n        fmul            v3.4s, v7.4s, v2.s[2]\n\n        fmla            v0.4s, v6.4s, v1.s[1]\n        fmla            v3.4s, v6.4s, v2.s[1]\n\n        fmla            v0.4s, v7.4s, v1.s[2]\n        fmla            v3.4s, v5.4s, v2.s[0]\n\n        fadd            v1.4s, v1.4s, v0.4s\n        fadd            v2.4s, v2.4s, v3.4s\n\n        fmla            v2.4s, v4.4s, v1.s[3]\n\n        st1             {v1.4s, v2.4s}, [x0], #32\n        fmul            v0.4s, v4.4s, v2.s[3]\n\n        subs            w3, w3, #8\n        b.gt            1b\n\n        mov             s0, v2.s[3]\n\n        ret\nendfunc\n\nfunction ff_opus_postfilter_neon, export=1\n        ld1             {v0.4s}, [x2]\n        sub             x5, x0, w1, sxtw #2\n        sub             x1, x5, #8\n        dup             v1.4s, v0.s[1]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/opusdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:2", "text": "fadd            v2.4s, v2.4s, v3.4s\n\n        fmla            v2.4s, v4.4s, v1.s[3]\n\n        st1             {v1.4s, v2.4s}, [x0], #32\n        fmul            v0.4s, v4.4s, v2.s[3]\n\n        subs            w3, w3, #8\n        b.gt            1b\n\n        mov             s0, v2.s[3]\n\n        ret\nendfunc\n\nfunction ff_opus_postfilter_neon, export=1\n        ld1             {v0.4s}, [x2]\n        sub             x5, x0, w1, sxtw #2\n        sub             x1, x5, #8\n        dup             v1.4s, v0.s[1]\n        dup             v2.4s, v0.s[2]\n        dup             v0.4s, v0.s[0]\n\n        ld1             {v3.4s}, [x1], #16\n        sub             x4, x5, #4\n        add             x6, x5, #4\n        fmul            v3.4s, v3.4s, v2.4s\n\n1:      ld1             {v7.4s}, [x1], #16\n        ld1             {v4.4s}, [x4], #16\n        fmla            v3.4s, v7.4s, v2.4s\n        ld1             {v6.4s}, [x6], #16\n        ld1             {v5.4s}, [x5], #16\n        fadd            v6.4s, v6.4s, v4.4s\n        fmla            v3.4s, v5.4s, v0.4s\n\n        ld1             {v4.4s}, [x0]\n        fmla            v3.4s, v6.4s, v1.4s\n        fadd            v4.4s, v4.4s, v3.4s\n        fmul            v3.4s, v7.4s, v2.4s\n\n        st1             {v4.4s}, [x0], #16\n\n        subs            w3, w3, #4\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/opusdsp_neon.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_opus_deemphasis_neon, export=1\n        ld1             {v4.4s}, [x2], #16\n        ld1             {v5.4s}, [x2], #16\n        ld1             {v6.4s}, [x2], #16\n        ld1             {v7.4s}, [x2]\n\n        fmul            v0.4s, v4.4s, v0.s[0]\n\n1:      ld1             {v1.4s, v2.4s}, [x1], #32\n\n        fmla            v0.4s, v5.4s, v1.s[0]\n        fmul            v3.4s, v7.4s, v2.s[2]\n\n        fmla            v0.4s, v6.4s, v1.s[1]\n        fmla            v3.4s, v6.4s, v2.s[1]\n\n        fmla            v0.4s, v7.4s, v1.s[2]\n        fmla            v3.4s, v5.4s, v2.s[0]\n\n        fadd            v1.4s, v1.4s, v0.4s\n        fadd            v2.4s, v2.4s, v3.4s\n\n        fmla            v2.4s, v4.4s, v1.s[3]\n\n        st1             {v1.4s, v2.4s}, [x0], #32\n        fmul            v0.4s, v4.4s, v2.s[3]\n\n        subs            w3, w3, #8\n        b.gt            1b\n\n        mov             s0, v2.s[3]\n\n        ret\nendfunc\n\nfunction ff_opus_postfilter_neon, export=1\n        ld1             {v0.4s}, [x2]\n        dup             v1.4s, v0.s[1]\n        dup             v2.4s, v0.s[2]\n        dup             v0.4s, v0.s[0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "134dba9544f4251ebf5fbbae72f2cddc390ac195", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/134dba9544f4251ebf5fbbae72f2cddc390ac195/libavcodec/aarch64/opusdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:2", "text": "fadd            v2.4s, v2.4s, v3.4s\n\n        fmla            v2.4s, v4.4s, v1.s[3]\n\n        st1             {v1.4s, v2.4s}, [x0], #32\n        fmul            v0.4s, v4.4s, v2.s[3]\n\n        subs            w3, w3, #8\n        b.gt            1b\n\n        mov             s0, v2.s[3]\n\n        ret\nendfunc\n\nfunction ff_opus_postfilter_neon, export=1\n        ld1             {v0.4s}, [x2]\n        dup             v1.4s, v0.s[1]\n        dup             v2.4s, v0.s[2]\n        dup             v0.4s, v0.s[0]\n\n        add             w1, w1, #2\n        sub             x1, x0, x1, lsl #2\n\n        ld1             {v3.4s}, [x1]\n        fmul            v3.4s, v3.4s, v2.4s\n\n1:      add             x1, x1, #4\n        ld1             {v4.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v5.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v6.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v7.4s}, [x1]\n\n        fmla            v3.4s, v7.4s, v2.4s\n        fadd            v6.4s, v6.4s, v4.4s\n\n        ld1             {v4.4s}, [x0]\n        fmla            v4.4s, v5.4s, v0.4s\n\n        fmul            v6.4s, v6.4s, v1.4s\n        fadd            v6.4s, v6.4s, v3.4s\n\n        fadd            v4.4s, v4.4s, v6.4s\n        fmul            v3.4s, v7.4s, v2.4s\n\n        st1             {v4.4s}, [x0], #16\n\n        subs            w3, w3, #4\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "134dba9544f4251ebf5fbbae72f2cddc390ac195", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/134dba9544f4251ebf5fbbae72f2cddc390ac195/libavcodec/aarch64/opusdsp_neon.S", "line_start": 41, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:3", "text": "fmla            v4.4s, v5.4s, v0.4s\n\n        fmul            v6.4s, v6.4s, v1.4s\n        fadd            v6.4s, v6.4s, v3.4s\n\n        fadd            v4.4s, v4.4s, v6.4s\n        fmul            v3.4s, v7.4s, v2.4s\n\n        st1             {v4.4s}, [x0], #16\n\n        subs            w3, w3, #4\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "134dba9544f4251ebf5fbbae72f2cddc390ac195", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/134dba9544f4251ebf5fbbae72f2cddc390ac195/libavcodec/aarch64/opusdsp_neon.S", "line_start": 81, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n           // 0.85..^1    0.85..^2    0.85..^3    0.85..^4\nconst tab_st, align=4\n        .word 0x3f599a00, 0x3f38f671, 0x3f1d382a, 0x3f05a32f\nendconst\nconst tab_x0, align=4\n        .word 0x0,        0x3f599a00, 0x3f38f671, 0x3f1d382a\nendconst\nconst tab_x1, align=4\n        .word 0x0,        0x0,        0x3f599a00, 0x3f38f671\nendconst\nconst tab_x2, align=4\n        .word 0x0,        0x0,        0x0,        0x3f599a00\nendconst\n\nfunction ff_opus_deemphasis_neon, export=1\n        movrel          x4, tab_st\n        ld1             {v4.4s}, [x4]\n        movrel          x4, tab_x0\n        ld1             {v5.4s}, [x4]\n        movrel          x4, tab_x1\n        ld1             {v6.4s}, [x4]\n        movrel          x4, tab_x2\n        ld1             {v7.4s}, [x4]\n\n        fmul            v0.4s, v4.4s, v0.s[0]\n\n1:      ld1             {v1.4s, v2.4s}, [x1], #32\n\n        fmla            v0.4s, v5.4s, v1.s[0]\n        fmul            v3.4s, v7.4s, v2.s[2]\n\n        fmla            v0.4s, v6.4s, v1.s[1]\n        fmla            v3.4s, v6.4s, v2.s[1]\n\n        fmla            v0.4s, v7.4s, v1.s[2]\n        fmla            v3.4s, v5.4s, v2.s[0]\n\n        fadd            v1.4s, v1.4s, v0.4s\n        fadd            v2.4s, v2.4s, v3.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/opusdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:2", "text": "ld1             {v6.4s}, [x4]\n        movrel          x4, tab_x2\n        ld1             {v7.4s}, [x4]\n\n        fmul            v0.4s, v4.4s, v0.s[0]\n\n1:      ld1             {v1.4s, v2.4s}, [x1], #32\n\n        fmla            v0.4s, v5.4s, v1.s[0]\n        fmul            v3.4s, v7.4s, v2.s[2]\n\n        fmla            v0.4s, v6.4s, v1.s[1]\n        fmla            v3.4s, v6.4s, v2.s[1]\n\n        fmla            v0.4s, v7.4s, v1.s[2]\n        fmla            v3.4s, v5.4s, v2.s[0]\n\n        fadd            v1.4s, v1.4s, v0.4s\n        fadd            v2.4s, v2.4s, v3.4s\n\n        fmla            v2.4s, v4.4s, v1.s[3]\n\n        st1             {v1.4s, v2.4s}, [x0], #32\n        fmul            v0.4s, v4.4s, v2.s[3]\n\n        subs            w2, w2, #8\n        b.gt            1b\n\n        mov             s0, v2.s[3]\n\n        ret\nendfunc\n\nfunction ff_opus_postfilter_neon, export=1\n        ld1             {v0.4s}, [x2]\n        dup             v1.4s, v0.s[1]\n        dup             v2.4s, v0.s[2]\n        dup             v0.4s, v0.s[0]\n\n        add             w1, w1, #2\n        sub             x1, x0, x1, lsl #2\n\n        ld1             {v3.4s}, [x1]\n        fmul            v3.4s, v3.4s, v2.4s\n\n1:      add             x1, x1, #4\n        ld1             {v4.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v5.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v6.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v7.4s}, [x1]\n\n        fmla            v3.4s, v7.4s, v2.4s\n        fadd            v6.4s, v6.4s, v4.4s\n\n        ld1             {v4.4s}, [x0]\n        fmla            v4.4s, v5.4s, v0.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/opusdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/opusdsp_neon.S:3", "text": "sub             x1, x0, x1, lsl #2\n\n        ld1             {v3.4s}, [x1]\n        fmul            v3.4s, v3.4s, v2.4s\n\n1:      add             x1, x1, #4\n        ld1             {v4.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v5.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v6.4s}, [x1]\n        add             x1, x1, #4\n        ld1             {v7.4s}, [x1]\n\n        fmla            v3.4s, v7.4s, v2.4s\n        fadd            v6.4s, v6.4s, v4.4s\n\n        ld1             {v4.4s}, [x0]\n        fmla            v4.4s, v5.4s, v0.4s\n\n        fmul            v6.4s, v6.4s, v1.4s\n        fadd            v6.4s, v6.4s, v3.4s\n\n        fadd            v4.4s, v4.4s, v6.4s\n        fmul            v3.4s, v7.4s, v2.4s\n\n        st1             {v4.4s}, [x0], #16\n\n        subs            w3, w3, #4\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/opusdsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/opusdsp_neon.S", "line_start": 81, "line_end": 113}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pixblockdsp_neon.S:1", "text": "/*\n * Copyright (c) 2020 Martin Storsjo\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_get_pixels_neon, export=1\n        mov             w3,  #8\n1:\n        ld1             {v0.8b}, [x1], x2\n        subs            w3,  w3,  #2\n        ld1             {v1.8b}, [x1], x2\n        uxtl            v0.8h,   v0.8b\n        uxtl            v1.8h,   v1.8b\n        st1             {v0.8h, v1.8h}, [x0], #32\n        b.gt            1b\n\n        ret\nendfunc\n\nfunction ff_diff_pixels_neon, export=1\n        mov             w4,  #8\n1:\n        ld1             {v0.8b}, [x1], x3\n        ld1             {v1.8b}, [x2], x3\n        subs            w4,  w4,  #2\n        ld1             {v2.8b}, [x1], x3\n        usubl           v0.8h,   v0.8b,   v1.8b\n        ld1             {v3.8b}, [x2], x3\n        usubl           v1.8h,   v2.8b,   v3.8b\n        st1             {v0.8h, v1.8h}, [x0], #32\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pixblockdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pixblockdsp_neon.S", "line_start": 1, "line_end": 51}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:1", "text": "/*\n * Copyright (c) 2026 Zhao Zhili <zhilizhao@tencent.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n/* void ff_png_add_bytes_l2_neon(uint8_t *dst, const uint8_t *src1,\n *                               const uint8_t *src2, int w);\n * x0: dst\n * x1: src1\n * x2: src2\n * w3: w\n */\nfunction ff_png_add_bytes_l2_neon, export=1\n        bic             w4, w3, #63\n        and             w3, w3, #63\n        cbz             w4, 2f\n1:\n        // 64 bytes per loop iteration\n        ldp             q0, q1, [x1]\n        ldp             q2, q3, [x1, #32]\n        subs            w4, w4, #64\n        ldp             q4, q5, [x2]\n        ldp             q6, q7, [x2, #32]\n        add             x1, x1, #64\n        add             v0.16b, v0.16b, v4.16b\n        add             v1.16b, v1.16b, v5.16b\n        add             x2, x2, #64\n        add             v2.16b, v2.16b, v6.16b\n        add             v3.16b, v3.16b, v7.16b\n        st1             {v0.16b - v3.16b}, [x0], #64\n        b.ne            1b\n2:\n        bic             w4, w3, #15\n        and             w3, w3, #15\n        cbz             w4, 4f\n3:\n        // 16 bytes per loop iteration\n        ld1             {v0.16b}, [x1], #16\n        ld1             {v4.16b}, [x2], #16\n        subs            w4, w4, #16\n        add             v0.16b, v0.16b, v4.16b\n        st1             {v0.16b}, [x0], #16\n        b.ne            3b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:2", "text": "add             x1, x1, #64\n        add             v0.16b, v0.16b, v4.16b\n        add             v1.16b, v1.16b, v5.16b\n        add             x2, x2, #64\n        add             v2.16b, v2.16b, v6.16b\n        add             v3.16b, v3.16b, v7.16b\n        st1             {v0.16b - v3.16b}, [x0], #64\n        b.ne            1b\n2:\n        bic             w4, w3, #15\n        and             w3, w3, #15\n        cbz             w4, 4f\n3:\n        // 16 bytes per loop iteration\n        ld1             {v0.16b}, [x1], #16\n        ld1             {v4.16b}, [x2], #16\n        subs            w4, w4, #16\n        add             v0.16b, v0.16b, v4.16b\n        st1             {v0.16b}, [x0], #16\n        b.ne            3b\n4:\n        cbz             w3, 6f\n5:\n        ldrb            w5, [x1], #1\n        ldrb            w6, [x2], #1\n        subs            w3, w3, #1\n        add             w5, w5, w6\n        strb            w5, [x0], #1\n        b.ne            5b\n6:\n        ret\nendfunc\n\n/* This is an iterative process where dst[n] depends on dst[n-bpp], so\n * add_paeth_prediction can only process bpp bytes each time.\n *\n * There are three state\n * 1. load: load data from memory\n * 2. shift: simple shift from previous iteration\n * 3. extract: extract data from registers which was loaded in state 1.\n *      Data is assembled by the caller.\n */\n.macro add_paeth_prediction, bpp, state\n        // load data from memory\n.ifc \\state,load\n        ld1             {v18.16b, v19.16b, v20.16b}, [x2], x7\n        ld1             {v21.16b, v22.16b, v23.16b}, [x1], x7\n        mov             v1.8b, v18.8b                           // c = top[i - bpp]\n        ext             v2.16b, v18.16b, v19.16b, #\\bpp         // b = top[i]\n        mov             v17.16b, v21.16b                        // src\n.endif\n        // simple shift from previous iteration\n.ifc \\state,shift\n        mov             v1.8b, v2.8b\n        ext             v2.16b, v2.16b, v2.16b, #(\\bpp)\n        ext             v17.16b, v17.16b, v17.16b, #(\\bpp)\n.endif\n        // Only the first bpp bytes are useful.\n        uabd            v4.8b, v2.8b, v1.8b         // pa = abs(b - c)\n        uaddl           v7.8h, v1.8b, v1.8b         // 2 * c", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:3", "text": "*      Data is assembled by the caller.\n */\n.macro add_paeth_prediction, bpp, state\n        // load data from memory\n.ifc \\state,load\n        ld1             {v18.16b, v19.16b, v20.16b}, [x2], x7\n        ld1             {v21.16b, v22.16b, v23.16b}, [x1], x7\n        mov             v1.8b, v18.8b                           // c = top[i - bpp]\n        ext             v2.16b, v18.16b, v19.16b, #\\bpp         // b = top[i]\n        mov             v17.16b, v21.16b                        // src\n.endif\n        // simple shift from previous iteration\n.ifc \\state,shift\n        mov             v1.8b, v2.8b\n        ext             v2.16b, v2.16b, v2.16b, #(\\bpp)\n        ext             v17.16b, v17.16b, v17.16b, #(\\bpp)\n.endif\n        // Only the first bpp bytes are useful.\n        uabd            v4.8b, v2.8b, v1.8b         // pa = abs(b - c)\n        uaddl           v7.8h, v1.8b, v1.8b         // 2 * c\n        uabd            v3.8b, v0.8b, v1.8b         // pb = abs(a - c)\n        uaddl           v5.8h, v0.8b, v2.8b         // a + b\n\n        cmhs            v16.8b, v3.8b, v4.8b        // pb >= pa\n        uabd            v5.8h, v5.8h, v7.8h\n        umin            v6.8b, v4.8b, v3.8b         // min(pa, pb)\n        uqxtn           v5.8b, v5.8h\n\n        bsl             v16.8b, v0.8b, v2.8b        // pb >= pa ? a : b\n        cmhs            v6.8b, v5.8b, v6.8b         // pc >= min(pa, pb)\n        bsl             v6.8b, v16.8b, v1.8b        // pc >= min ? (a or b) : c\n\n        add             v0.8b, v6.8b, v17.8b\n.if \\bpp == 3 || \\bpp == 4\n        str             s0, [x0], #\\bpp\n.else\n        str             d0, [x0], #\\bpp\n.endif\n.endm\n\n/* void ff_png_add_paeth_prediction_neon(uint8_t *dst, const uint8_t *src,\n *                                       const uint8_t *top, int w, int bpp);\n * x0: dst\n * x1: src\n * x2: top\n * w3: w\n * w4: bpp\n */\nfunction ff_png_add_paeth_prediction_neon, export=1\n        cmp             w4, #3\n        /* Load 48 bytes from memory in each loop.\n         * The number of bytes processed in each loop is (48 - bpp)\n         */\n        mov             w7, #48\n        /* Overwrite 1 byte in SIMD when bpp = 3, and 2 bytes when bpp = 6.\n         * Let w5 = (w - 2) / (48 -bpp) * (48 -bpp), then fix the overwrite\n         * in loop tail.\n         */\n        sub             w5, w3, #2\n        sub             w7, w7, w4              // (48 - bpp)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:4", "text": "/* void ff_png_add_paeth_prediction_neon(uint8_t *dst, const uint8_t *src,\n *                                       const uint8_t *top, int w, int bpp);\n * x0: dst\n * x1: src\n * x2: top\n * w3: w\n * w4: bpp\n */\nfunction ff_png_add_paeth_prediction_neon, export=1\n        cmp             w4, #3\n        /* Load 48 bytes from memory in each loop.\n         * The number of bytes processed in each loop is (48 - bpp)\n         */\n        mov             w7, #48\n        /* Overwrite 1 byte in SIMD when bpp = 3, and 2 bytes when bpp = 6.\n         * Let w5 = (w - 2) / (48 -bpp) * (48 -bpp), then fix the overwrite\n         * in loop tail.\n         */\n        sub             w5, w3, #2\n        sub             w7, w7, w4              // (48 - bpp)\n        udiv            w5, w5, w7\n        neg             w6, w4                  // -bpp\n        sub             x2, x2, w4, uxtw        // top - bpp\n        mul             w5, w5, w7              // w5 = (w - 2) / (48 - bpp) * (48 - bpp)\n        sub             w3, w3, w5\n        cbz             w5, 2f\n\n        ldr             d0, [x0, w6, sxtw]\n\n        b.gt            40f\n30:     // bpp = 3\n        // 15 bytes\n        add_paeth_prediction 3, state=load\n        subs            w5, w5, w7\n.rept   4\n        add_paeth_prediction 3, state=shift\n.endr\n        // 15 + 15 = 30 bytes\n        ext             v1.16b, v18.16b, v19.16b, #15\n        ext             v2.16b, v19.16b, v20.16b, #2\n        ext             v17.16b, v21.16b, v22.16b, #15\n        add_paeth_prediction 3, state=extract\n.rept   4\n        add_paeth_prediction 3, state=shift\n.endr\n        // 30 + 15 = 45 bytes\n        ext             v1.16b, v19.16b, v20.16b, #14\n        ext             v2.16b, v20.16b, v20.16b, #1\n        ext             v17.16b, v22.16b, v23.16b, #14\n        add_paeth_prediction 3, state=extract\n.rept   4\n        add_paeth_prediction 3, state=shift\n.endr\n        b.ne            30b\n        b               2f\n\n40:     // check bpp = 4\n        cmp             w4, #4\n        b.gt            60f\n        // 44 bytes per loop", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:5", "text": "ext             v17.16b, v21.16b, v22.16b, #15\n        add_paeth_prediction 3, state=extract\n.rept   4\n        add_paeth_prediction 3, state=shift\n.endr\n        // 30 + 15 = 45 bytes\n        ext             v1.16b, v19.16b, v20.16b, #14\n        ext             v2.16b, v20.16b, v20.16b, #1\n        ext             v17.16b, v22.16b, v23.16b, #14\n        add_paeth_prediction 3, state=extract\n.rept   4\n        add_paeth_prediction 3, state=shift\n.endr\n        b.ne            30b\n        b               2f\n\n40:     // check bpp = 4\n        cmp             w4, #4\n        b.gt            60f\n        // 44 bytes per loop\n41:\n        // 16 bytes\n        add_paeth_prediction 4, state=load\n        subs            w5, w5, w7\n.rept   3\n        add_paeth_prediction 4, state=shift\n.endr\n        // 16 + 16 = 32 bytes\n        mov             v1.8b, v19.8b\n        ext             v2.16b, v19.16b, v20.16b, #4\n        mov             v17.16b, v22.16b\n        add_paeth_prediction 4, state=extract\n.rept   3\n        add_paeth_prediction 4, state=shift\n.endr\n        // 32 + 12 bytes\n        mov             v1.8b, v20.8b\n        ext             v2.16b, v20.16b, v20.16b, #4\n        mov             v17.16b, v23.16b\n        add_paeth_prediction 4, state=extract\n.rept   2\n        add_paeth_prediction 4, state=shift\n.endr\n        b.ne            41b\n        b               2f\n\n60:     // check bpp = 6\n        cmp             w4, #6\n        b.gt            80f\n61:\n        // process 12 bytes\n        add_paeth_prediction 6, state=load\n        add_paeth_prediction 6, state=shift\n        subs            w5, w5, w7\n\n        // 12 + 12 = 24 bytes\n        ext             v1.16b, v18.16b, v19.16b, #12\n        ext             v2.16b, v19.16b, v20.16b, #2\n        ext             v17.16b, v21.16b, v22.16b, #12\n        add_paeth_prediction 6, state=extract", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:6", "text": ".rept   2\n        add_paeth_prediction 4, state=shift\n.endr\n        b.ne            41b\n        b               2f\n\n60:     // check bpp = 6\n        cmp             w4, #6\n        b.gt            80f\n61:\n        // process 12 bytes\n        add_paeth_prediction 6, state=load\n        add_paeth_prediction 6, state=shift\n        subs            w5, w5, w7\n\n        // 12 + 12 = 24 bytes\n        ext             v1.16b, v18.16b, v19.16b, #12\n        ext             v2.16b, v19.16b, v20.16b, #2\n        ext             v17.16b, v21.16b, v22.16b, #12\n        add_paeth_prediction 6, state=extract\n        add_paeth_prediction 6, state=shift\n        // 24 + 12 = 36 bytes\n        ext             v1.16b, v19.16b, v20.16b, #8\n        ext             v2.16b, v19.16b, v20.16b, #14\n        ext             v17.16b, v22.16b, v23.16b, #8\n        add_paeth_prediction 6, state=extract\n        add_paeth_prediction 6, state=shift\n        // 36 + 6 = 42 bytes\n        ext             v1.16b, v20.16b, v20.16b, #4\n        ext             v2.16b, v20.16b, v20.16b, #10\n        ext             v17.16b, v23.16b, v23.16b, #4\n        add_paeth_prediction 6, state=extract\n\n        b.ne            61b\n        b               2f\n\n80:     // 40 bytes per loop\n        // 16 bytes\n        add_paeth_prediction 8, state=load\n        add_paeth_prediction 8, state=shift\n        subs            w5, w5, w7\n\n        // 16 + 16 = 32 bytes\n        mov             v1.8b, v19.8b\n        ext             v2.16b, v19.16b, v20.16b, #8\n        mov             v17.16b, v22.16b\n        add_paeth_prediction 8, state=extract\n        add_paeth_prediction 8, state=shift\n\n        // 32 + 8 = 40 bytes\n        mov             v1.8b, v20.8b\n        ext             v2.16b, v20.16b, v20.16b, #8\n        mov             v17.8b, v23.8b\n        add_paeth_prediction 8, state=extract\n\n        b.ne            80b\n2:\n        cbz             w3, 8f\n3:\n        ldrb            w7, [x0, w6, sxtw]          // a = dst[i - bpp]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/pngdsp_neon.S:7", "text": "subs            w5, w5, w7\n\n        // 16 + 16 = 32 bytes\n        mov             v1.8b, v19.8b\n        ext             v2.16b, v19.16b, v20.16b, #8\n        mov             v17.16b, v22.16b\n        add_paeth_prediction 8, state=extract\n        add_paeth_prediction 8, state=shift\n\n        // 32 + 8 = 40 bytes\n        mov             v1.8b, v20.8b\n        ext             v2.16b, v20.16b, v20.16b, #8\n        mov             v17.8b, v23.8b\n        add_paeth_prediction 8, state=extract\n\n        b.ne            80b\n2:\n        cbz             w3, 8f\n3:\n        ldrb            w7, [x0, w6, sxtw]          // a = dst[i - bpp]\n        ldrb            w8, [x2, w4, uxtw]          // b = top[i]\n        ldrb            w9, [x2], #1                // c = top[i - bpp]\n\n        sub             w10, w8, w9                 // p = b - c\n        sub             w11, w7, w9                 // a - c\n\n        cmp             w10, #0\n        cneg            w12, w10, lt                // pa = abs(b - c)\n        cmp             w11, #0\n        add             w14, w10, w11\n        cneg            w13, w11, lt                // pb = abs(a - c)\n        cmp             w14, #0\n        cneg            w14, w14, lt                // pc = abs(a + b - 2*c)\n\n        ldrb            w16, [x1], #1\n\n        cmp             w13, w14                    // pb vs pc\n        csel            w15, w8, w9, le             // w15 = (pb <= pc) ? b : c\n        cmp             w12, w13                    // pa vs pb\n        ccmp            w12, w14, #2, le            // if pa <= pb, check pa vs pc\n        csel            w15, w7, w15, le            // p = (pa <= pb && pa <= pc) ? a : w15\n\n        subs            w3, w3, #1\n        add             w15, w15, w16\n        strb            w15, [x0], #1\n        b.ne            3b\n8:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/pngdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/pngdsp_neon.S", "line_start": 241, "line_end": 289}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nconst factors, align=4\n        .float 1.0, -1.0, 1.0, -1.0\nendconst\n\nconst phi_noise_0, align=4\n        .float 1.0, 0.0, 1.0, 0.0\nendconst\n\nconst phi_noise_1, align=4\n        .float 0.0,  1.0,  0.0, -1.0\n        .float 0.0, -1.0,  0.0,  1.0\nendconst\n\nconst phi_noise_2, align=4\n        .float -1.0, 0.0, -1.0, 0.0\nendconst\n\nconst phi_noise_3, align=4\n        .float 0.0, -1.0,  0.0,  1.0\n        .float 0.0,  1.0,  0.0, -1.0\nendconst\n\nfunction ff_sbr_sum64x5_neon, export=1\n        add             x1, x0, #64*4\n        add             x2, x0, #128*4\n        add             x3, x0, #192*4\n        add             x4, x0, #256*4\n        mov             x5, #64\n1:      ld1             {v0.4s}, [x0]\n        ld1             {v1.4s}, [x1], #16\n        fadd            v0.4s, v0.4s, v1.4s\n        ld1             {v2.4s}, [x2], #16\n        fadd            v0.4s, v0.4s, v2.4s\n        ld1             {v3.4s}, [x3], #16\n        fadd            v0.4s, v0.4s, v3.4s\n        ld1             {v4.4s}, [x4], #16\n        fadd            v0.4s, v0.4s, v4.4s\n        st1             {v0.4s}, [x0], #16\n        subs            x5, x5, #4\n        b.gt            1b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:2", "text": "endconst\n\nfunction ff_sbr_sum64x5_neon, export=1\n        add             x1, x0, #64*4\n        add             x2, x0, #128*4\n        add             x3, x0, #192*4\n        add             x4, x0, #256*4\n        mov             x5, #64\n1:      ld1             {v0.4s}, [x0]\n        ld1             {v1.4s}, [x1], #16\n        fadd            v0.4s, v0.4s, v1.4s\n        ld1             {v2.4s}, [x2], #16\n        fadd            v0.4s, v0.4s, v2.4s\n        ld1             {v3.4s}, [x3], #16\n        fadd            v0.4s, v0.4s, v3.4s\n        ld1             {v4.4s}, [x4], #16\n        fadd            v0.4s, v0.4s, v4.4s\n        st1             {v0.4s}, [x0], #16\n        subs            x5, x5, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_sum_square_neon, export=1\n        movi            v0.4s, #0\n1:      ld1             {v1.4s}, [x0], #16\n        fmla            v0.4s, v1.4s, v1.4s\n        subs            w1, w1, #2\n        b.gt            1b\n        faddp           v0.4s, v0.4s, v0.4s\n        faddp           v0.4s, v0.4s, v0.4s\n        ret\nendfunc\n\nfunction ff_sbr_neg_odd_64_neon, export=1\n        mov             x1, x0\n        movi            v5.4s, #1<<7, lsl #24\n        ld2             {v0.4s, v1.4s}, [x0], #32\n        eor             v1.16b, v1.16b, v5.16b\n        ld2             {v2.4s, v3.4s}, [x0], #32\n.rept 3\n        st2             {v0.4s, v1.4s}, [x1], #32\n        eor             v3.16b, v3.16b, v5.16b\n        ld2             {v0.4s, v1.4s}, [x0], #32\n        st2             {v2.4s, v3.4s}, [x1], #32\n        eor             v1.16b, v1.16b, v5.16b\n        ld2             {v2.4s, v3.4s}, [x0], #32\n.endr\n        eor             v3.16b, v3.16b, v5.16b\n        st2             {v0.4s, v1.4s}, [x1], #32\n        st2             {v2.4s, v3.4s}, [x1], #32\n        ret\nendfunc\n\nfunction ff_sbr_qmf_pre_shuffle_neon, export=1\n        add             x1, x0, #60*4\n        add             x2, x0, #64*4\n        mov             x3, #-16\n        mov             x4, #-4\n        movi            v6.4s, #1<<7, lsl #24", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:3", "text": ".rept 3\n        st2             {v0.4s, v1.4s}, [x1], #32\n        eor             v3.16b, v3.16b, v5.16b\n        ld2             {v0.4s, v1.4s}, [x0], #32\n        st2             {v2.4s, v3.4s}, [x1], #32\n        eor             v1.16b, v1.16b, v5.16b\n        ld2             {v2.4s, v3.4s}, [x0], #32\n.endr\n        eor             v3.16b, v3.16b, v5.16b\n        st2             {v0.4s, v1.4s}, [x1], #32\n        st2             {v2.4s, v3.4s}, [x1], #32\n        ret\nendfunc\n\nfunction ff_sbr_qmf_pre_shuffle_neon, export=1\n        add             x1, x0, #60*4\n        add             x2, x0, #64*4\n        mov             x3, #-16\n        mov             x4, #-4\n        movi            v6.4s, #1<<7, lsl #24\n        ld1             {v0.2s}, [x0], #8\n        st1             {v0.2s}, [x2], #8\n.rept 7\n        ld1             {v1.4s}, [x1], x3\n        ld1             {v2.4s}, [x0], #16\n        eor             v1.16b, v1.16b, v6.16b\n        rev64           v1.4s, v1.4s\n        ext             v1.16b, v1.16b, v1.16b, #8\n        st2             {v1.4s, v2.4s}, [x2], #32\n.endr\n        add             x1, x1, #8\n        ld1             {v1.2s}, [x1], x4\n        ld1             {v2.2s}, [x0], #8\n        ld1             {v1.s}[3], [x1]\n        ld1             {v2.s}[2], [x0]\n        eor             v1.16b, v1.16b, v6.16b\n        rev64           v1.4s, v1.4s\n        st2             {v1.2s, v2.2s}, [x2], #16\n        st2             {v1.s, v2.s}[2], [x2]\n        ret\nendfunc\n\nfunction ff_sbr_qmf_post_shuffle_neon, export=1\n        add             x2, x1, #60*4\n        mov             x3, #-16\n        mov             x4, #32\n        movi            v6.4s, #1<<7, lsl #24\n1:      ld1             {v0.4s}, [x2], x3\n        ld1             {v1.4s}, [x1], #16\n        eor             v0.16b, v0.16b, v6.16b\n        rev64           v0.4s, v0.4s\n        ext             v0.16b, v0.16b, v0.16b, #8\n        st2             {v0.4s, v1.4s}, [x0], #32\n        subs            x4, x4, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_qmf_deint_neg_neon, export=1\n        add             x1, x1, #56*4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:4", "text": "endfunc\n\nfunction ff_sbr_qmf_post_shuffle_neon, export=1\n        add             x2, x1, #60*4\n        mov             x3, #-16\n        mov             x4, #32\n        movi            v6.4s, #1<<7, lsl #24\n1:      ld1             {v0.4s}, [x2], x3\n        ld1             {v1.4s}, [x1], #16\n        eor             v0.16b, v0.16b, v6.16b\n        rev64           v0.4s, v0.4s\n        ext             v0.16b, v0.16b, v0.16b, #8\n        st2             {v0.4s, v1.4s}, [x0], #32\n        subs            x4, x4, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_qmf_deint_neg_neon, export=1\n        add             x1, x1, #56*4\n        add             x2, x0, #60*4\n        mov             x3, #-32\n        mov             x4, #32\n        movi            v2.4s, #1<<7, lsl #24\n1:      ld2             {v0.4s, v1.4s}, [x1], x3\n        eor             v0.16b, v0.16b, v2.16b\n        rev64           v1.4s, v1.4s\n        ext             v1.16b, v1.16b, v1.16b, #8\n        st1             {v0.4s}, [x2]\n        st1             {v1.4s}, [x0], #16\n        sub             x2, x2, #16\n        subs            x4, x4, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_qmf_deint_bfly_neon, export=1\n        add             x2, x2, #60*4\n        add             x3, x0, #124*4\n        mov             x4, #64\n        mov             x5, #-16\n1:      ld1             {v0.4s}, [x1], #16\n        ld1             {v1.4s}, [x2], x5\n        rev64           v2.4s, v0.4s\n        ext             v2.16b, v2.16b, v2.16b, #8\n        rev64           v3.4s, v1.4s\n        ext             v3.16b, v3.16b, v3.16b, #8\n        fadd            v1.4s, v1.4s, v2.4s\n        fsub            v0.4s, v0.4s, v3.4s\n        st1             {v0.4s}, [x0], #16\n        st1             {v1.4s}, [x3], x5\n        subs            x4, x4, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_hf_gen_neon, export=1\n        sxtw            x4, w4\n        sxtw            x5, w5\n        movrel          x6, factors", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:5", "text": "mov             x5, #-16\n1:      ld1             {v0.4s}, [x1], #16\n        ld1             {v1.4s}, [x2], x5\n        rev64           v2.4s, v0.4s\n        ext             v2.16b, v2.16b, v2.16b, #8\n        rev64           v3.4s, v1.4s\n        ext             v3.16b, v3.16b, v3.16b, #8\n        fadd            v1.4s, v1.4s, v2.4s\n        fsub            v0.4s, v0.4s, v3.4s\n        st1             {v0.4s}, [x0], #16\n        st1             {v1.4s}, [x3], x5\n        subs            x4, x4, #4\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_hf_gen_neon, export=1\n        sxtw            x4, w4\n        sxtw            x5, w5\n        movrel          x6, factors\n        ld1             {v7.4s}, [x6]\n        dup             v1.4s, v0.s[0]\n        mov             v2.8b, v1.8b\n        mov             v2.s[2], v7.s[0]\n        mov             v2.s[3], v7.s[0]\n        fmul            v1.4s, v1.4s, v2.4s\n        ld1             {v0.d}[0], [x3]\n        ld1             {v0.d}[1], [x2]\n        fmul            v0.4s, v0.4s, v1.4s\n        fmul            v1.4s, v0.4s, v7.4s\n        rev64           v0.4s, v0.4s\n        sub             x7, x5, x4\n        add             x0, x0, x4, lsl #3\n        add             x1, x1, x4, lsl #3\n        sub             x1, x1, #16\n1:      ld1             {v2.4s}, [x1], #16\n        ld1             {v3.2s}, [x1]\n        fmul            v4.4s, v2.4s, v1.4s\n        fmul            v5.4s, v2.4s, v0.4s\n        faddp           v4.4s, v4.4s, v4.4s\n        faddp           v5.4s, v5.4s, v5.4s\n        faddp           v4.4s, v4.4s, v4.4s\n        faddp           v5.4s, v5.4s, v5.4s\n        mov             v4.s[1], v5.s[0]\n        fadd            v4.2s, v4.2s, v3.2s\n        st1             {v4.2s}, [x0], #8\n        sub             x1, x1, #8\n        subs            x7, x7, #1\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_hf_g_filt_neon, export=1\n        sxtw            x3, w3\n        sxtw            x4, w4\n        mov             x5, #40*2*4\n        add             x1, x1, x4, lsl #3\n1:      ld1             {v0.2s}, [x1], x5\n        ld1             {v1.s}[0], [x2], #4\n        fmul            v2.4s, v0.4s, v1.s[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:6", "text": "faddp           v5.4s, v5.4s, v5.4s\n        faddp           v4.4s, v4.4s, v4.4s\n        faddp           v5.4s, v5.4s, v5.4s\n        mov             v4.s[1], v5.s[0]\n        fadd            v4.2s, v4.2s, v3.2s\n        st1             {v4.2s}, [x0], #8\n        sub             x1, x1, #8\n        subs            x7, x7, #1\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_hf_g_filt_neon, export=1\n        sxtw            x3, w3\n        sxtw            x4, w4\n        mov             x5, #40*2*4\n        add             x1, x1, x4, lsl #3\n1:      ld1             {v0.2s}, [x1], x5\n        ld1             {v1.s}[0], [x2], #4\n        fmul            v2.4s, v0.4s, v1.s[0]\n        st1             {v2.2s}, [x0], #8\n        subs            x3, x3, #1\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_sbr_autocorrelate_neon, export=1\n        mov             x2, #38\n        movrel          x3, factors\n        ld1             {v0.4s}, [x3]\n        movi            v1.4s, #0\n        movi            v2.4s, #0\n        movi            v3.4s, #0\n        ld1             {v4.2s}, [x0], #8\n        ld1             {v5.2s}, [x0], #8\n        fmul            v16.2s, v4.2s, v4.2s\n        fmul            v17.2s, v5.2s, v4.s[0]\n        fmul            v18.2s, v5.2s, v4.s[1]\n1:      ld1             {v5.d}[1], [x0], #8\n        fmla            v1.2s, v4.2s, v4.2s\n        fmla            v2.4s, v5.4s, v4.s[0]\n        fmla            v3.4s, v5.4s, v4.s[1]\n        mov             v4.d[0], v5.d[0]\n        mov             v5.d[0], v5.d[1]\n        subs            x2, x2, #1\n        b.gt            1b\n        fmul            v19.2s, v4.2s, v4.2s\n        fmul            v20.2s, v5.2s, v4.s[0]\n        fmul            v21.2s, v5.2s, v4.s[1]\n        fadd            v22.4s, v2.4s, v20.4s\n        fsub            v22.4s, v22.4s, v17.4s\n        fadd            v23.4s, v3.4s, v21.4s\n        fsub            v23.4s, v23.4s, v18.4s\n        rev64           v23.4s, v23.4s\n        fmul            v23.4s, v23.4s, v0.4s\n        fadd            v22.4s, v22.4s, v23.4s\n        st1             {v22.4s}, [x1], #16\n        fadd            v23.2s, v1.2s, v19.2s\n        fsub            v23.2s, v23.2s, v16.2s\n        faddp           v23.2s, v23.2s, v23.2s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:7", "text": "fmla            v2.4s, v5.4s, v4.s[0]\n        fmla            v3.4s, v5.4s, v4.s[1]\n        mov             v4.d[0], v5.d[0]\n        mov             v5.d[0], v5.d[1]\n        subs            x2, x2, #1\n        b.gt            1b\n        fmul            v19.2s, v4.2s, v4.2s\n        fmul            v20.2s, v5.2s, v4.s[0]\n        fmul            v21.2s, v5.2s, v4.s[1]\n        fadd            v22.4s, v2.4s, v20.4s\n        fsub            v22.4s, v22.4s, v17.4s\n        fadd            v23.4s, v3.4s, v21.4s\n        fsub            v23.4s, v23.4s, v18.4s\n        rev64           v23.4s, v23.4s\n        fmul            v23.4s, v23.4s, v0.4s\n        fadd            v22.4s, v22.4s, v23.4s\n        st1             {v22.4s}, [x1], #16\n        fadd            v23.2s, v1.2s, v19.2s\n        fsub            v23.2s, v23.2s, v16.2s\n        faddp           v23.2s, v23.2s, v23.2s\n        st1             {v23.s}[0], [x1]\n        add             x1, x1, #8\n        rev64           v3.2s, v3.2s\n        fmul            v3.2s, v3.2s, v0.2s\n        fadd            v2.2s, v2.2s, v3.2s\n        st1             {v2.2s}, [x1]\n        add             x1, x1, #16\n        faddp           v1.2s, v1.2s, v1.2s\n        st1             {v1.s}[0], [x1]\n        ret\nendfunc\n\n.macro apply_noise_common\n        sxtw            x3, w3\n        sxtw            x5, w5\n        movrel          x7, X(ff_sbr_noise_table)\n        add             x3, x3, #1\n1:      and             x3, x3, #0x1ff\n        add             x8, x7, x3, lsl #3\n        add             x3, x3, #2\n        ld1             {v2.4s}, [x0]\n        ld1             {v3.2s}, [x1], #8\n        ld1             {v4.2s}, [x2], #8\n        ld1             {v5.4s}, [x8]\n        mov             v6.16b, v2.16b\n        zip1            v3.4s, v3.4s, v3.4s\n        zip1            v4.4s, v4.4s, v4.4s\n        fmla            v6.4s, v1.4s, v3.4s\n        fmla            v2.4s, v5.4s, v4.4s\n        fcmeq           v7.4s, v3.4s, #0\n        bif             v2.16b, v6.16b, v7.16b\n        st1             {v2.4s}, [x0], #16\n        subs            x5, x5, #2\n        b.gt            1b\n.endm\n\nfunction ff_sbr_hf_apply_noise_0_neon, export=1\n        movrel          x9, phi_noise_0\n        ld1             {v1.4s}, [x9]\n        apply_noise_common", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/sbrdsp_neon.S:8", "text": "ld1             {v2.4s}, [x0]\n        ld1             {v3.2s}, [x1], #8\n        ld1             {v4.2s}, [x2], #8\n        ld1             {v5.4s}, [x8]\n        mov             v6.16b, v2.16b\n        zip1            v3.4s, v3.4s, v3.4s\n        zip1            v4.4s, v4.4s, v4.4s\n        fmla            v6.4s, v1.4s, v3.4s\n        fmla            v2.4s, v5.4s, v4.4s\n        fcmeq           v7.4s, v3.4s, #0\n        bif             v2.16b, v6.16b, v7.16b\n        st1             {v2.4s}, [x0], #16\n        subs            x5, x5, #2\n        b.gt            1b\n.endm\n\nfunction ff_sbr_hf_apply_noise_0_neon, export=1\n        movrel          x9, phi_noise_0\n        ld1             {v1.4s}, [x9]\n        apply_noise_common\n        ret\nendfunc\n\nfunction ff_sbr_hf_apply_noise_1_neon, export=1\n        movrel          x9, phi_noise_1\n        and             x4, x4, #1\n        add             x9, x9, x4, lsl #4\n        ld1             {v1.4s}, [x9]\n        apply_noise_common\n        ret\nendfunc\n\nfunction ff_sbr_hf_apply_noise_2_neon, export=1\n        movrel          x9, phi_noise_2\n        ld1             {v1.4s}, [x9]\n        apply_noise_common\n        ret\nendfunc\n\nfunction ff_sbr_hf_apply_noise_3_neon, export=1\n        movrel          x9, phi_noise_3\n        and             x4, x4, #1\n        add             x9, x9, x4, lsl #4\n        ld1             {v1.4s}, [x9]\n        apply_noise_common\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/sbrdsp_neon.S", "line_start": 281, "line_end": 327}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:2", "text": "#define z2 v0.H[1]\n#define z3 v0.H[2]\n#define z4 v0.H[3]\n#define z5 v0.H[4]\n#define z6 v0.H[5]\n#define z7 v0.H[6]\n#define z4c v0.H[7]\n\nconst   idct_coeff_neon, align=4\n        .short Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z4c\nendconst\n\n.macro idct_start data\n        prfm            pldl1keep, [\\data]\n        mov             x10, x30\n        movrel          x3, idct_coeff_neon\n        ld1             {v0.2d}, [x3]\n.endm\n\n.macro idct_end\n        ret             x10\n.endm\n\n.macro smull1 a, b, c\n        smull           \\a, \\b, \\c\n.endm\n\n.macro smlal1 a, b, c\n        smlal           \\a, \\b, \\c\n.endm\n\n.macro smlsl1 a, b, c\n        smlsl           \\a, \\b, \\c\n.endm\n\n.macro idct_col4_top y1, y2, y3, y4, i, l\n        smull\\i         v7.4s,  \\y3\\l, z2\n        smull\\i         v16.4s, \\y3\\l, z6\n        smull\\i         v17.4s, \\y2\\l, z1\n        add             v19.4s, v23.4s, v7.4s\n        smull\\i         v18.4s, \\y2\\l, z3\n        add             v20.4s, v23.4s, v16.4s\n        smull\\i         v5.4s,  \\y2\\l, z5\n        sub             v21.4s, v23.4s, v16.4s\n        smull\\i         v6.4s,  \\y2\\l, z7\n        sub             v22.4s, v23.4s, v7.4s\n\n        smlal\\i         v17.4s, \\y4\\l, z3\n        smlsl\\i         v18.4s, \\y4\\l, z7\n        smlsl\\i         v5.4s,  \\y4\\l, z1\n        smlsl\\i         v6.4s,  \\y4\\l, z5\n.endm\n\n.macro idct_row4_neon y1, y2, y3, y4, pass\n        ld1             {\\y1\\().2d,\\y2\\().2d}, [x2], #32\n        movi            v23.4s, #1<<2, lsl #8\n        orr             v5.16b, \\y1\\().16b, \\y2\\().16b\n        ld1             {\\y3\\().2d,\\y4\\().2d}, [x2], #32\n        orr             v6.16b, \\y3\\().16b, \\y4\\().16b\n        orr             v5.16b, v5.16b, v6.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:3", "text": "smull\\i         v18.4s, \\y2\\l, z3\n        add             v20.4s, v23.4s, v16.4s\n        smull\\i         v5.4s,  \\y2\\l, z5\n        sub             v21.4s, v23.4s, v16.4s\n        smull\\i         v6.4s,  \\y2\\l, z7\n        sub             v22.4s, v23.4s, v7.4s\n\n        smlal\\i         v17.4s, \\y4\\l, z3\n        smlsl\\i         v18.4s, \\y4\\l, z7\n        smlsl\\i         v5.4s,  \\y4\\l, z1\n        smlsl\\i         v6.4s,  \\y4\\l, z5\n.endm\n\n.macro idct_row4_neon y1, y2, y3, y4, pass\n        ld1             {\\y1\\().2d,\\y2\\().2d}, [x2], #32\n        movi            v23.4s, #1<<2, lsl #8\n        orr             v5.16b, \\y1\\().16b, \\y2\\().16b\n        ld1             {\\y3\\().2d,\\y4\\().2d}, [x2], #32\n        orr             v6.16b, \\y3\\().16b, \\y4\\().16b\n        orr             v5.16b, v5.16b, v6.16b\n        mov             x3, v5.d[1]\n        smlal           v23.4s, \\y1\\().4h, z4\n\n        idct_col4_top   \\y1, \\y2, \\y3, \\y4, 1, .4h\n\n        cmp             x3, #0\n        b.eq            \\pass\\()f\n\n        smull2          v7.4s, \\y1\\().8h, z4\n        smlal2          v17.4s, \\y2\\().8h, z5\n        smlsl2          v18.4s, \\y2\\().8h, z1\n        smull2          v16.4s, \\y3\\().8h, z2\n        smlal2          v5.4s, \\y2\\().8h, z7\n        add             v19.4s, v19.4s, v7.4s\n        sub             v20.4s, v20.4s, v7.4s\n        sub             v21.4s, v21.4s, v7.4s\n        add             v22.4s, v22.4s, v7.4s\n        smlal2          v6.4s, \\y2\\().8h, z3\n        smull2          v7.4s, \\y3\\().8h, z6\n        smlal2          v17.4s, \\y4\\().8h, z7\n        smlsl2          v18.4s, \\y4\\().8h, z5\n        smlal2          v5.4s, \\y4\\().8h, z3\n        smlsl2          v6.4s, \\y4\\().8h, z1\n        add             v19.4s, v19.4s, v7.4s\n        sub             v20.4s, v20.4s, v16.4s\n        add             v21.4s, v21.4s, v16.4s\n        sub             v22.4s, v22.4s, v7.4s\n\n\\pass:  add             \\y3\\().4S, v19.4S, v17.4S\n        add             \\y4\\().4s, v20.4s, v18.4s\n        shrn            \\y1\\().4h, \\y3\\().4s, #ROW_SHIFT\n        shrn            \\y2\\().4h, \\y4\\().4s, #ROW_SHIFT\n        add             v7.4s, v21.4s, v5.4s\n        add             v16.4s, v22.4s, v6.4s\n        shrn            \\y3\\().4h, v7.4s, #ROW_SHIFT\n        shrn            \\y4\\().4h, v16.4s, #ROW_SHIFT\n        sub             v22.4s, v22.4s, v6.4s\n        sub             v19.4s, v19.4s, v17.4s\n        sub             v21.4s, v21.4s, v5.4s\n        shrn2           \\y1\\().8h, v22.4s, #ROW_SHIFT", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:4", "text": "smlsl2          v18.4s, \\y4\\().8h, z5\n        smlal2          v5.4s, \\y4\\().8h, z3\n        smlsl2          v6.4s, \\y4\\().8h, z1\n        add             v19.4s, v19.4s, v7.4s\n        sub             v20.4s, v20.4s, v16.4s\n        add             v21.4s, v21.4s, v16.4s\n        sub             v22.4s, v22.4s, v7.4s\n\n\\pass:  add             \\y3\\().4S, v19.4S, v17.4S\n        add             \\y4\\().4s, v20.4s, v18.4s\n        shrn            \\y1\\().4h, \\y3\\().4s, #ROW_SHIFT\n        shrn            \\y2\\().4h, \\y4\\().4s, #ROW_SHIFT\n        add             v7.4s, v21.4s, v5.4s\n        add             v16.4s, v22.4s, v6.4s\n        shrn            \\y3\\().4h, v7.4s, #ROW_SHIFT\n        shrn            \\y4\\().4h, v16.4s, #ROW_SHIFT\n        sub             v22.4s, v22.4s, v6.4s\n        sub             v19.4s, v19.4s, v17.4s\n        sub             v21.4s, v21.4s, v5.4s\n        shrn2           \\y1\\().8h, v22.4s, #ROW_SHIFT\n        sub             v20.4s, v20.4s, v18.4s\n        shrn2           \\y2\\().8h, v21.4s, #ROW_SHIFT\n        shrn2           \\y3\\().8h, v20.4s, #ROW_SHIFT\n        shrn2           \\y4\\().8h, v19.4s, #ROW_SHIFT\n\n        trn1            v16.8h, \\y1\\().8h, \\y2\\().8h\n        trn2            v17.8h, \\y1\\().8h, \\y2\\().8h\n        trn1            v18.8h, \\y3\\().8h, \\y4\\().8h\n        trn2            v19.8h, \\y3\\().8h, \\y4\\().8h\n        trn1            \\y1\\().4s, v16.4s, v18.4s\n        trn1            \\y2\\().4s, v17.4s, v19.4s\n        trn2            \\y3\\().4s, v16.4s, v18.4s\n        trn2            \\y4\\().4s, v17.4s, v19.4s\n.endm\n\n.macro declare_idct_col4_neon i, l\nfunction idct_col4_neon\\i\n        dup             v23.4h, z4c\n.if \\i == 1\n        add             v23.4h, v23.4h, v24.4h\n.else\n        mov             v5.d[0], v24.d[1]\n        add             v23.4h, v23.4h, v5.4h\n.endif\n        smull           v23.4s, v23.4h, z4\n\n        idct_col4_top   v24, v25, v26, v27, \\i, \\l\n\n        mov             x4, v28.d[\\i - 1]\n        mov             x5, v29.d[\\i - 1]\n        cmp             x4, #0\n        b.eq            1f\n\n        smull\\i         v7.4s,  v28\\l,  z4\n        add             v19.4s, v19.4s, v7.4s\n        sub             v20.4s, v20.4s, v7.4s\n        sub             v21.4s, v21.4s, v7.4s\n        add             v22.4s, v22.4s, v7.4s\n\n1:      mov             x4, v30.d[\\i - 1]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:5", "text": ".else\n        mov             v5.d[0], v24.d[1]\n        add             v23.4h, v23.4h, v5.4h\n.endif\n        smull           v23.4s, v23.4h, z4\n\n        idct_col4_top   v24, v25, v26, v27, \\i, \\l\n\n        mov             x4, v28.d[\\i - 1]\n        mov             x5, v29.d[\\i - 1]\n        cmp             x4, #0\n        b.eq            1f\n\n        smull\\i         v7.4s,  v28\\l,  z4\n        add             v19.4s, v19.4s, v7.4s\n        sub             v20.4s, v20.4s, v7.4s\n        sub             v21.4s, v21.4s, v7.4s\n        add             v22.4s, v22.4s, v7.4s\n\n1:      mov             x4, v30.d[\\i - 1]\n        cmp             x5, #0\n        b.eq            2f\n\n        smlal\\i         v17.4s, v29\\l, z5\n        smlsl\\i         v18.4s, v29\\l, z1\n        smlal\\i         v5.4s,  v29\\l, z7\n        smlal\\i         v6.4s,  v29\\l, z3\n\n2:      mov             x5, v31.d[\\i - 1]\n        cmp             x4, #0\n        b.eq            3f\n\n        smull\\i         v7.4s,  v30\\l, z6\n        smull\\i         v16.4s, v30\\l, z2\n        add             v19.4s, v19.4s, v7.4s\n        sub             v22.4s, v22.4s, v7.4s\n        sub             v20.4s, v20.4s, v16.4s\n        add             v21.4s, v21.4s, v16.4s\n\n3:      cmp             x5, #0\n        b.eq            4f\n\n        smlal\\i         v17.4s, v31\\l, z7\n        smlsl\\i         v18.4s, v31\\l, z5\n        smlal\\i         v5.4s,  v31\\l, z3\n        smlsl\\i         v6.4s,  v31\\l, z1\n\n4:      addhn           v7.4h, v19.4s, v17.4s\n        addhn2          v7.8h, v20.4s, v18.4s\n        subhn           v18.4h, v20.4s, v18.4s\n        subhn2          v18.8h, v19.4s, v17.4s\n\n        addhn           v16.4h, v21.4s, v5.4s\n        addhn2          v16.8h, v22.4s, v6.4s\n        subhn           v17.4h, v22.4s, v6.4s\n        subhn2          v17.8h, v21.4s, v5.4s\n\n        ret\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:6", "text": "b.eq            4f\n\n        smlal\\i         v17.4s, v31\\l, z7\n        smlsl\\i         v18.4s, v31\\l, z5\n        smlal\\i         v5.4s,  v31\\l, z3\n        smlsl\\i         v6.4s,  v31\\l, z1\n\n4:      addhn           v7.4h, v19.4s, v17.4s\n        addhn2          v7.8h, v20.4s, v18.4s\n        subhn           v18.4h, v20.4s, v18.4s\n        subhn2          v18.8h, v19.4s, v17.4s\n\n        addhn           v16.4h, v21.4s, v5.4s\n        addhn2          v16.8h, v22.4s, v6.4s\n        subhn           v17.4h, v22.4s, v6.4s\n        subhn2          v17.8h, v21.4s, v5.4s\n\n        ret\nendfunc\n.endm\n\ndeclare_idct_col4_neon 1, .4H\ndeclare_idct_col4_neon 2, .8H\n\nfunction ff_simple_idct_put_neon, export=1\n        idct_start      x2\n\n        idct_row4_neon  v24, v25, v26, v27, 1\n        idct_row4_neon  v28, v29, v30, v31, 2\n        bl              idct_col4_neon1\n\n        sqshrun         v1.8b,  v7.8h, #COL_SHIFT-16\n        sqshrun2        v1.16b, v16.8h, #COL_SHIFT-16\n        sqshrun         v3.8b,  v17.8h, #COL_SHIFT-16\n        sqshrun2        v3.16b, v18.8h, #COL_SHIFT-16\n\n        bl              idct_col4_neon2\n\n        sqshrun         v2.8b,  v7.8h, #COL_SHIFT-16\n        sqshrun2        v2.16b, v16.8h, #COL_SHIFT-16\n        sqshrun         v4.8b,  v17.8h, #COL_SHIFT-16\n        sqshrun2        v4.16b, v18.8h, #COL_SHIFT-16\n\n        zip1            v16.4s, v1.4s, v2.4s\n        zip2            v17.4s, v1.4s, v2.4s\n\n        st1             {v16.d}[0], [x0], x1\n        st1             {v16.d}[1], [x0], x1\n\n        zip1            v18.4s, v3.4s, v4.4s\n        zip2            v19.4s, v3.4s, v4.4s\n\n        st1             {v17.d}[0], [x0], x1\n        st1             {v17.d}[1], [x0], x1\n        st1             {v18.d}[0], [x0], x1\n        st1             {v18.d}[1], [x0], x1\n        st1             {v19.d}[0], [x0], x1\n        st1             {v19.d}[1], [x0], x1\n\n        idct_end", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:7", "text": "sqshrun         v4.8b,  v17.8h, #COL_SHIFT-16\n        sqshrun2        v4.16b, v18.8h, #COL_SHIFT-16\n\n        zip1            v16.4s, v1.4s, v2.4s\n        zip2            v17.4s, v1.4s, v2.4s\n\n        st1             {v16.d}[0], [x0], x1\n        st1             {v16.d}[1], [x0], x1\n\n        zip1            v18.4s, v3.4s, v4.4s\n        zip2            v19.4s, v3.4s, v4.4s\n\n        st1             {v17.d}[0], [x0], x1\n        st1             {v17.d}[1], [x0], x1\n        st1             {v18.d}[0], [x0], x1\n        st1             {v18.d}[1], [x0], x1\n        st1             {v19.d}[0], [x0], x1\n        st1             {v19.d}[1], [x0], x1\n\n        idct_end\nendfunc\n\nfunction ff_simple_idct_add_neon, export=1\n        idct_start      x2\n\n        idct_row4_neon  v24, v25, v26, v27, 1\n        idct_row4_neon  v28, v29, v30, v31, 2\n        bl              idct_col4_neon1\n\n        sshr            v1.8h, v7.8h, #COL_SHIFT-16\n        sshr            v2.8h, v16.8h, #COL_SHIFT-16\n        sshr            v3.8h, v17.8h, #COL_SHIFT-16\n        sshr            v4.8h, v18.8h, #COL_SHIFT-16\n\n        bl              idct_col4_neon2\n\n        sshr            v7.8h, v7.8h, #COL_SHIFT-16\n        sshr            v16.8h, v16.8h, #COL_SHIFT-16\n        sshr            v17.8h, v17.8h, #COL_SHIFT-16\n        sshr            v18.8h, v18.8h, #COL_SHIFT-16\n\n        mov             x9,  x0\n        ld1             {v19.d}[0], [x0], x1\n        zip1            v23.2d, v1.2d, v7.2d\n        zip2            v24.2d, v1.2d, v7.2d\n        ld1             {v19.d}[1], [x0], x1\n        zip1            v25.2d, v2.2d, v16.2d\n        zip2            v26.2d, v2.2d, v16.2d\n        ld1             {v20.d}[0], [x0], x1\n        zip1            v27.2d, v3.2d, v17.2d\n        zip2            v28.2d, v3.2d, v17.2d\n        ld1             {v20.d}[1], [x0], x1\n        zip1            v29.2d, v4.2d, v18.2d\n        zip2            v30.2d, v4.2d, v18.2d\n        ld1             {v21.d}[0], [x0], x1\n        uaddw           v23.8h, v23.8h, v19.8b\n        uaddw2          v24.8h, v24.8h, v19.16b\n        ld1             {v21.d}[1], [x0], x1\n        sqxtun          v23.8b, v23.8h\n        sqxtun2         v23.16b, v24.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:8", "text": "mov             x9,  x0\n        ld1             {v19.d}[0], [x0], x1\n        zip1            v23.2d, v1.2d, v7.2d\n        zip2            v24.2d, v1.2d, v7.2d\n        ld1             {v19.d}[1], [x0], x1\n        zip1            v25.2d, v2.2d, v16.2d\n        zip2            v26.2d, v2.2d, v16.2d\n        ld1             {v20.d}[0], [x0], x1\n        zip1            v27.2d, v3.2d, v17.2d\n        zip2            v28.2d, v3.2d, v17.2d\n        ld1             {v20.d}[1], [x0], x1\n        zip1            v29.2d, v4.2d, v18.2d\n        zip2            v30.2d, v4.2d, v18.2d\n        ld1             {v21.d}[0], [x0], x1\n        uaddw           v23.8h, v23.8h, v19.8b\n        uaddw2          v24.8h, v24.8h, v19.16b\n        ld1             {v21.d}[1], [x0], x1\n        sqxtun          v23.8b, v23.8h\n        sqxtun2         v23.16b, v24.8h\n        ld1             {v22.d}[0], [x0], x1\n        uaddw           v24.8h, v25.8h, v20.8b\n        uaddw2          v25.8h, v26.8h, v20.16b\n        ld1             {v22.d}[1], [x0], x1\n        sqxtun          v24.8b, v24.8h\n        sqxtun2         v24.16b, v25.8h\n        st1             {v23.d}[0], [x9], x1\n        uaddw           v25.8h, v27.8h, v21.8b\n        uaddw2          v26.8h, v28.8h, v21.16b\n        st1             {v23.d}[1], [x9], x1\n        sqxtun          v25.8b, v25.8h\n        sqxtun2         v25.16b, v26.8h\n        st1             {v24.d}[0], [x9], x1\n        uaddw           v26.8h, v29.8h, v22.8b\n        uaddw2          v27.8h, v30.8h, v22.16b\n        st1             {v24.d}[1], [x9], x1\n        sqxtun          v26.8b, v26.8h\n        sqxtun2         v26.16b, v27.8h\n        st1             {v25.d}[0], [x9], x1\n        st1             {v25.d}[1], [x9], x1\n        st1             {v26.d}[0], [x9], x1\n        st1             {v26.d}[1], [x9], x1\n\n        idct_end\nendfunc\n\nfunction ff_simple_idct_neon, export=1\n        idct_start      x0\n\n        mov             x2,  x0\n        idct_row4_neon  v24, v25, v26, v27, 1\n        idct_row4_neon  v28, v29, v30, v31, 2\n        sub             x2, x2, #128\n        bl              idct_col4_neon1\n\n        sshr            v1.8h, v7.8h, #COL_SHIFT-16\n        sshr            v2.8h, v16.8h, #COL_SHIFT-16\n        sshr            v3.8h, v17.8h, #COL_SHIFT-16\n        sshr            v4.8h, v18.8h, #COL_SHIFT-16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/simple_idct_neon.S:9", "text": "st1             {v26.d}[0], [x9], x1\n        st1             {v26.d}[1], [x9], x1\n\n        idct_end\nendfunc\n\nfunction ff_simple_idct_neon, export=1\n        idct_start      x0\n\n        mov             x2,  x0\n        idct_row4_neon  v24, v25, v26, v27, 1\n        idct_row4_neon  v28, v29, v30, v31, 2\n        sub             x2, x2, #128\n        bl              idct_col4_neon1\n\n        sshr            v1.8h, v7.8h, #COL_SHIFT-16\n        sshr            v2.8h, v16.8h, #COL_SHIFT-16\n        sshr            v3.8h, v17.8h, #COL_SHIFT-16\n        sshr            v4.8h, v18.8h, #COL_SHIFT-16\n\n        bl              idct_col4_neon2\n\n        sshr            v7.8h, v7.8h, #COL_SHIFT-16\n        sshr            v16.8h, v16.8h, #COL_SHIFT-16\n        sshr            v17.8h, v17.8h, #COL_SHIFT-16\n        sshr            v18.8h, v18.8h, #COL_SHIFT-16\n\n        zip1            v23.2d, v1.2d, v7.2d\n        zip2            v24.2d, v1.2d, v7.2d\n        st1             {v23.2d,v24.2d}, [x2], #32\n        zip1            v25.2d, v2.2d, v16.2d\n        zip2            v26.2d, v2.2d, v16.2d\n        st1             {v25.2d,v26.2d}, [x2], #32\n        zip1            v27.2d, v3.2d, v17.2d\n        zip2            v28.2d, v3.2d, v17.2d\n        st1             {v27.2d,v28.2d}, [x2], #32\n        zip1            v29.2d, v4.2d, v18.2d\n        zip2            v30.2d, v4.2d, v18.2d\n        st1             {v29.2d,v30.2d}, [x2], #32\n\n        idct_end\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/simple_idct_neon.S", "line_start": 321, "line_end": 362}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/synth_filter_neon.S:1", "text": "/*\n * Copyright (c) 2010 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2015 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro inner_loop\n        ld1             {v29.4s},  [x9],  x15\n        ld1             {v28.4s},  [x8],  x15\n        ld1             {v30.4s},  [x10], x15\n        ld1             {v31.4s},  [x11], x15\n        rev64           v28.4s, v28.4s\n        ld1             {v24.4s},  [x4],  x15\n        ld1             {v25.4s},  [x5],  x15\n        rev64           v31.4s, v31.4s\n        ld1             {v26.4s},  [x6],  x15\n        fmla            v5.4s,  v25.4s, v29.4s\n        ld1             {v27.4s},  [x7],  x15\n        ext             v28.16b, v28.16b, v28.16b, #8\n        ext             v31.16b, v31.16b, v31.16b, #8\n        fmla            v6.4s,  v26.4s, v30.4s\n        fmls            v4.4s,  v24.4s, v28.4s\n        fmla            v7.4s,  v27.4s, v31.4s\n.endm\n\nfunction ff_synth_filter_float_neon, export=1\n        mov             x9,  x7                 // imdct_fn parameter\n        ldr             w7,  [x2]               // *synth_buf_offset\n        sxtw            x7,  w7\n        stp             x3,  x4,  [sp, #-64]!\n        add             x1,  x1,  x7,  lsl #2   // synth_buf\n        sub             w8,  w7,  #32\n        stp             x5,  x1,  [sp, #16]\n        and             x7,  x7,  #~63\n        and             w8,  w8,  #511\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x7,  x30, [sp, #32]\n        str             w8,  [x2]\n        str             s0,  [sp, #48]\n\n        mov             x2,  x6                 // in\n        mov             x3,  #4                 // sizeof(float)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/synth_filter_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/synth_filter_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/synth_filter_neon.S:2", "text": ".endm\n\nfunction ff_synth_filter_float_neon, export=1\n        mov             x9,  x7                 // imdct_fn parameter\n        ldr             w7,  [x2]               // *synth_buf_offset\n        sxtw            x7,  w7\n        stp             x3,  x4,  [sp, #-64]!\n        add             x1,  x1,  x7,  lsl #2   // synth_buf\n        sub             w8,  w7,  #32\n        stp             x5,  x1,  [sp, #16]\n        and             x7,  x7,  #~63\n        and             w8,  w8,  #511\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x7,  x30, [sp, #32]\n        str             w8,  [x2]\n        str             s0,  [sp, #48]\n\n        mov             x2,  x6                 // in\n        mov             x3,  #4                 // sizeof(float)\n\n        blr             x9\n\n        ldp             x13, x9,  [sp, #16]     // out, synth_buf\n        ldp             x0,  x30, [sp, #32]     // *synth_buf_offset\n        AARCH64_VALIDATE_LINK_REGISTER\n        ldr             s0,  [sp, #48]\n        ldp             x2,  x4,  [sp], #64     // synct_buf_2, window\n\n        add             x3,  x2,  #16*4         // synct_buf_2 + 16\n        add             x14, x13, #16*4         // out + 16\n        add             x8,  x9,  #12*4\n        mov             x15, #64*4\n        mov             x1,  #4\n1:\n        add             x10, x9,  #16*4         // synth_buf\n        add             x11, x8,  #16*4\n        add             x5,  x4,  #16*4         // window\n        add             x6,  x4,  #32*4\n        add             x7,  x4,  #48*4\n\n        ld1             {v4.4s},   [x2]         // a\n        ld1             {v5.4s},   [x3]         // b\n        movi            v6.4s,  #0              // c\n        movi            v7.4s,  #0              // d\n\n        mov             x12, #512\n2:\n        sub             x12, x12, #64\n        cmp             x12, x0\n        inner_loop\n        b.gt            2b\n\n        sub             x8,  x8,  #512*4\n        sub             x9,  x9,  #512*4\n        cbz             x12, 4f\n        sub             x10, x10, #512*4\n        sub             x11, x11, #512*4\n3:\n        subs            x12, x12, #64\n        inner_loop", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/synth_filter_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/synth_filter_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/synth_filter_neon.S:3", "text": "ld1             {v4.4s},   [x2]         // a\n        ld1             {v5.4s},   [x3]         // b\n        movi            v6.4s,  #0              // c\n        movi            v7.4s,  #0              // d\n\n        mov             x12, #512\n2:\n        sub             x12, x12, #64\n        cmp             x12, x0\n        inner_loop\n        b.gt            2b\n\n        sub             x8,  x8,  #512*4\n        sub             x9,  x9,  #512*4\n        cbz             x12, 4f\n        sub             x10, x10, #512*4\n        sub             x11, x11, #512*4\n3:\n        subs            x12, x12, #64\n        inner_loop\n        b.gt            3b\n4:\n        subs            x1,  x1,  #1\n        fmul            v4.4s,  v4.4s,  v0.s[0]\n        fmul            v5.4s,  v5.4s,  v0.s[0]\n        st1             {v6.4s},   [x2],  #16\n        st1             {v7.4s},   [x3],  #16\n        st1             {v4.4s},   [x13], #16\n        st1             {v5.4s},   [x14], #16\n        b.le            10f\n\n        sub             x4,  x4,  #508*4        // window\n        add             x9,  x9,  #4*4          // synth_buf\n        sub             x8,  x8,  #4*4          // synth_buf\n        b               1b\n\n10:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/synth_filter_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/synth_filter_neon.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/videodsp.S:1", "text": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_prefetch_aarch64, export=1\n1:\n        subs            w2,  w2,  #2\n        prfm            pldl1strm, [x0]\n        prfm            pldl1strm, [x0,  x1]\n        add             x0,  x0,  x1,  lsl #1\n        b.gt            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/videodsp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/videodsp.S", "line_start": 1, "line_end": 29}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vorbisdsp_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_vorbis_inverse_coupling_neon, export=1\n        movi            v20.4s,  #1<<7, lsl #24\n        subs            x2,  x2,  #4\n        mov             x3,  x0\n        mov             x4,  x1\n        b.eq            3f\n\n        ld1             {v7.4s},  [x1], #16\n        ld1             {v6.4s},  [x0], #16\n        cmle            v4.4s,  v7.4s,  #0\n        and             v5.16b, v6.16b, v20.16b\n        eor             v7.16b, v7.16b, v5.16b\n        and             v2.16b, v7.16b, v4.16b\n        bic             v3.16b, v7.16b, v4.16b\n        fadd            v7.4s,  v6.4s,  v2.4s\n        fsub            v6.4s,  v6.4s,  v3.4s\n1:      ld1             {v1.4s},  [x1], #16\n        ld1             {v0.4s},  [x0], #16\n        cmle            v4.4s,  v1.4s,  #0\n        and             v5.16b, v0.16b, v20.16b\n        eor             v1.16b, v1.16b, v5.16b\n        st1             {v7.4s},  [x3], #16\n        st1             {v6.4s},  [x4], #16\n        and             v2.16b, v1.16b, v4.16b\n        bic             v3.16b, v1.16b, v4.16b\n        fadd            v1.4s,  v0.4s,  v2.4s\n        fsub            v0.4s,  v0.4s,  v3.4s\n        subs            x2,  x2,  #8\n        b.le            2f\n        ld1             {v7.4s},  [x1], #16\n        ld1             {v6.4s},  [x0], #16\n        cmle            v4.4s,  v7.4s,  #0\n        and             v5.16b, v6.16b, v20.16b\n        eor             v7.16b, v7.16b, v5.16b\n        st1             {v1.4s},  [x3], #16\n        st1             {v0.4s},  [x4], #16\n        and             v2.16b, v7.16b, v4.16b\n        bic             v3.16b, v7.16b, v4.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vorbisdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vorbisdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vorbisdsp_neon.S:2", "text": "cmle            v4.4s,  v1.4s,  #0\n        and             v5.16b, v0.16b, v20.16b\n        eor             v1.16b, v1.16b, v5.16b\n        st1             {v7.4s},  [x3], #16\n        st1             {v6.4s},  [x4], #16\n        and             v2.16b, v1.16b, v4.16b\n        bic             v3.16b, v1.16b, v4.16b\n        fadd            v1.4s,  v0.4s,  v2.4s\n        fsub            v0.4s,  v0.4s,  v3.4s\n        subs            x2,  x2,  #8\n        b.le            2f\n        ld1             {v7.4s},  [x1], #16\n        ld1             {v6.4s},  [x0], #16\n        cmle            v4.4s,  v7.4s,  #0\n        and             v5.16b, v6.16b, v20.16b\n        eor             v7.16b, v7.16b, v5.16b\n        st1             {v1.4s},  [x3], #16\n        st1             {v0.4s},  [x4], #16\n        and             v2.16b, v7.16b, v4.16b\n        bic             v3.16b, v7.16b, v4.16b\n        fadd            v7.4s,  v6.4s,  v2.4s\n        fsub            v6.4s,  v6.4s,  v3.4s\n        b               1b\n\n2:      st1             {v1.4s},  [x3], #16\n        st1             {v0.4s},  [x4], #16\n        b.lt            ret\n\n3:      ld1             {v1.4s},  [x1]\n        ld1             {v0.4s},  [x0]\n        cmle            v4.4s,  v1.4s,  #0\n        and             v5.16b, v0.16b, v20.16b\n        eor             v1.16b, v1.16b, v5.16b\n        and             v2.16b, v1.16b, v4.16b\n        bic             v3.16b, v1.16b, v4.16b\n        fadd            v1.4s,  v0.4s,  v2.4s\n        fsub            v0.4s,  v0.4s,  v3.4s\n        st1             {v1.4s},  [x0], #16\n        st1             {v0.4s},  [x1], #16\nret:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vorbisdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vorbisdsp_neon.S", "line_start": 41, "line_end": 82}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:1", "text": "/*\n * Copyright (c) 2017 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n#include \"neon.S\"\n\n\n// The input to and output from this macro is in the registers v16-v31,\n// and v0-v7 are used as scratch registers.\n// p7 = v16 .. p3 = v20, p0 = v23, q0 = v24, q3 = v27, q7 = v31\n// Depending on the width of the loop filter, we either use v16-v19\n// and v28-v31 as temp registers, or v8-v15.\n.macro loop_filter wd, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8\n        dup             v0.8h,  w2                   // E\n        dup             v2.8h,  w3                   // I\n        dup             v3.8h,  w4                   // H\n\n        uabd            v4.8h,  v20.8h, v21.8h       // abs(p3 - p2)\n        uabd            v5.8h,  v21.8h, v22.8h       // abs(p2 - p1)\n        uabd            v6.8h,  v22.8h, v23.8h       // abs(p1 - p0)\n        uabd            v7.8h,  v24.8h, v25.8h       // abs(q0 - q1)\n        uabd            \\tmp1\\().8h,  v25.8h, v26.8h // abs(q1 - q2)\n        uabd            \\tmp2\\().8h,  v26.8h, v27.8h // abs(q2 - q3)\n        umax            v4.8h,  v4.8h,  v5.8h\n        umax            v5.8h,  v6.8h,  v7.8h\n        umax            \\tmp1\\().8h,  \\tmp1\\().8h, \\tmp2\\().8h\n        uabd            v6.8h,  v23.8h, v24.8h       // abs(p0 - q0)\n        umax            v4.8h,  v4.8h,  v5.8h\n        add             v6.8h,  v6.8h,  v6.8h        // abs(p0 - q0) * 2\n        uabd            v5.8h,  v22.8h, v25.8h       // abs(p1 - q1)\n        umax            v4.8h,  v4.8h,  \\tmp1\\().8h  // max(abs(p3 - p2), ..., abs(q2 - q3))\n        ushr            v5.8h,  v5.8h,  #1\n        cmhs            v4.8h,  v2.8h,  v4.8h        // max(abs()) <= I\n        add             v6.8h,  v6.8h,  v5.8h        // abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        cmhs            v6.8h,  v0.8h,  v6.8h\n        and             v4.16b, v4.16b, v6.16b       // fm\n\n        // If no pixels need filtering, just exit as soon as possible\n        mov             x11, v4.d[0]\n        mov             x12, v4.d[1]\n        adds            x11, x11, x12\n        b.ne            1f\n        ret             x10", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:2", "text": "umax            v4.8h,  v4.8h,  v5.8h\n        umax            v5.8h,  v6.8h,  v7.8h\n        umax            \\tmp1\\().8h,  \\tmp1\\().8h, \\tmp2\\().8h\n        uabd            v6.8h,  v23.8h, v24.8h       // abs(p0 - q0)\n        umax            v4.8h,  v4.8h,  v5.8h\n        add             v6.8h,  v6.8h,  v6.8h        // abs(p0 - q0) * 2\n        uabd            v5.8h,  v22.8h, v25.8h       // abs(p1 - q1)\n        umax            v4.8h,  v4.8h,  \\tmp1\\().8h  // max(abs(p3 - p2), ..., abs(q2 - q3))\n        ushr            v5.8h,  v5.8h,  #1\n        cmhs            v4.8h,  v2.8h,  v4.8h        // max(abs()) <= I\n        add             v6.8h,  v6.8h,  v5.8h        // abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        cmhs            v6.8h,  v0.8h,  v6.8h\n        and             v4.16b, v4.16b, v6.16b       // fm\n\n        // If no pixels need filtering, just exit as soon as possible\n        mov             x11, v4.d[0]\n        mov             x12, v4.d[1]\n        adds            x11, x11, x12\n        b.ne            1f\n        ret             x10\n1:\n\n.if \\wd >= 8\n        dup             v0.8h,  w5\n\n        uabd            v6.8h,  v20.8h, v23.8h       // abs(p3 - p0)\n        uabd            v2.8h,  v21.8h, v23.8h       // abs(p2 - p0)\n        uabd            v1.8h,  v22.8h, v23.8h       // abs(p1 - p0)\n        uabd            \\tmp1\\().8h,  v25.8h, v24.8h // abs(q1 - q0)\n        uabd            \\tmp2\\().8h,  v26.8h, v24.8h // abs(q2 - q0)\n        uabd            \\tmp3\\().8h,  v27.8h, v24.8h // abs(q3 - q0)\n        umax            v6.8h,  v6.8h,  v2.8h\n        umax            v1.8h,  v1.8h,  \\tmp1\\().8h\n        umax            \\tmp2\\().8h,  \\tmp2\\().8h,  \\tmp3\\().8h\n.if \\wd == 16\n        uabd            v7.8h,  v16.8h, v23.8h       // abs(p7 - p0)\n        umax            v6.8h,  v6.8h,  v1.8h\n        uabd            v2.8h,  v17.8h, v23.8h       // abs(p6 - p0)\n        umax            v6.8h,  v6.8h,  \\tmp2\\().8h\n        uabd            v1.8h,  v18.8h, v23.8h       // abs(p5 - p0)\n        cmhs            v6.8h,  v0.8h,  v6.8h        // flat8in\n        uabd            v8.8h,  v19.8h, v23.8h       // abs(p4 - p0)\n        and             v6.16b, v6.16b, v4.16b       // flat8in && fm\n        uabd            v9.8h,  v28.8h, v24.8h       // abs(q4 - q0)\n        bic             v4.16b, v4.16b, v6.16b       // fm && !flat8in\n        uabd            v10.8h, v29.8h, v24.8h       // abs(q5 - q0)\n        uabd            v11.8h, v30.8h, v24.8h       // abs(q6 - q0)\n        uabd            v12.8h, v31.8h, v24.8h       // abs(q7 - q0)\n\n        umax            v7.8h,  v7.8h,  v2.8h\n        umax            v1.8h,  v1.8h,  v8.8h\n        umax            v9.8h,  v9.8h,  v10.8h\n        umax            v11.8h, v11.8h, v12.8h\n        // The rest of the calculation of flat8out is interleaved below\n.else\n        // The rest of the calculation of flat8in is interleaved below\n.endif\n.endif\n\n        // Calculate the normal inner loop filter for 2 or 4 pixels", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:3", "text": "cmhs            v6.8h,  v0.8h,  v6.8h        // flat8in\n        uabd            v8.8h,  v19.8h, v23.8h       // abs(p4 - p0)\n        and             v6.16b, v6.16b, v4.16b       // flat8in && fm\n        uabd            v9.8h,  v28.8h, v24.8h       // abs(q4 - q0)\n        bic             v4.16b, v4.16b, v6.16b       // fm && !flat8in\n        uabd            v10.8h, v29.8h, v24.8h       // abs(q5 - q0)\n        uabd            v11.8h, v30.8h, v24.8h       // abs(q6 - q0)\n        uabd            v12.8h, v31.8h, v24.8h       // abs(q7 - q0)\n\n        umax            v7.8h,  v7.8h,  v2.8h\n        umax            v1.8h,  v1.8h,  v8.8h\n        umax            v9.8h,  v9.8h,  v10.8h\n        umax            v11.8h, v11.8h, v12.8h\n        // The rest of the calculation of flat8out is interleaved below\n.else\n        // The rest of the calculation of flat8in is interleaved below\n.endif\n.endif\n\n        // Calculate the normal inner loop filter for 2 or 4 pixels\n        uabd            v5.8h,  v22.8h, v23.8h                  // abs(p1 - p0)\n.if \\wd == 16\n        umax            v7.8h,  v7.8h,  v1.8h\n        umax            v9.8h,  v9.8h,  v11.8h\n.elseif \\wd == 8\n        umax            v6.8h,  v6.8h,  v1.8h\n.endif\n        uabd            v1.8h,  v25.8h, v24.8h                  // abs(q1 - q0)\n.if \\wd == 16\n        umax            v7.8h,  v7.8h,  v9.8h\n.elseif \\wd == 8\n        umax            v6.8h,  v6.8h,  \\tmp2\\().8h\n.endif\n        dup             \\tmp2\\().8h,  w6                        // left shift for saturation\n        sub             \\tmp1\\().8h,  v22.8h,  v25.8h           // p1 - q1\n        neg             \\tmp6\\().8h,  \\tmp2\\().8h               // negative left shift after saturation\n        umax            v5.8h,  v5.8h,  v1.8h                   // max(abs(p1 - p0), abs(q1 - q0))\n        sub             \\tmp3\\().8h,  v24.8h,  v23.8h           // q0 - p0\n        movi            \\tmp5\\().8h,  #3\n.if \\wd == 8\n        cmhs            v6.8h,  v0.8h,  v6.8h                   // flat8in\n.endif\n        cmhs            v5.8h,  v3.8h,  v5.8h                   // !hev\n.if \\wd == 8\n        and             v6.16b, v6.16b, v4.16b                  // flat8in && fm\n.endif\n        sqshl           \\tmp1\\().8h,  \\tmp1\\().8h,  \\tmp2\\().8h\n.if \\wd == 16\n        cmhs            v7.8h,  v0.8h,  v7.8h                   // flat8out\n.elseif \\wd == 8\n        bic             v4.16b, v4.16b, v6.16b                  // fm && !flat8in\n.endif\n        and             v5.16b,  v5.16b,  v4.16b                // !hev && fm && !flat8in\n.if \\wd == 16\n        and             v7.16b, v7.16b, v6.16b                  // flat8out && flat8in && fm\n.endif\n        sshl            \\tmp1\\().8h,  \\tmp1\\().8h,  \\tmp6\\().8h // av_clip_int2p(p1 - q1, BIT_DEPTH - 1)\n\n        mul             \\tmp3\\().8h,  \\tmp3\\().8h,  \\tmp5\\().8h // 3 * (q0 - p0)\n        bic             \\tmp1\\().16b, \\tmp1\\().16b, v5.16b      // if (!hev) av_clip_int8 = 0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:4", "text": "cmhs            v6.8h,  v0.8h,  v6.8h                   // flat8in\n.endif\n        cmhs            v5.8h,  v3.8h,  v5.8h                   // !hev\n.if \\wd == 8\n        and             v6.16b, v6.16b, v4.16b                  // flat8in && fm\n.endif\n        sqshl           \\tmp1\\().8h,  \\tmp1\\().8h,  \\tmp2\\().8h\n.if \\wd == 16\n        cmhs            v7.8h,  v0.8h,  v7.8h                   // flat8out\n.elseif \\wd == 8\n        bic             v4.16b, v4.16b, v6.16b                  // fm && !flat8in\n.endif\n        and             v5.16b,  v5.16b,  v4.16b                // !hev && fm && !flat8in\n.if \\wd == 16\n        and             v7.16b, v7.16b, v6.16b                  // flat8out && flat8in && fm\n.endif\n        sshl            \\tmp1\\().8h,  \\tmp1\\().8h,  \\tmp6\\().8h // av_clip_int2p(p1 - q1, BIT_DEPTH - 1)\n\n        mul             \\tmp3\\().8h,  \\tmp3\\().8h,  \\tmp5\\().8h // 3 * (q0 - p0)\n        bic             \\tmp1\\().16b, \\tmp1\\().16b, v5.16b      // if (!hev) av_clip_int8 = 0\n        movi            v2.8h,  #4\n        add             \\tmp3\\().8h,  \\tmp3\\().8h,  \\tmp1\\().8h // 3 * (q0 - p0) [+ av_clip_int8(p1 - q1)]\n        movi            v3.8h,  #3\n        sqshl           \\tmp1\\().8h,  \\tmp3\\().8h,  \\tmp2\\().8h\n        movi            \\tmp5\\().8h,  #0\n        sshl            \\tmp1\\().8h,  \\tmp1\\().8h,  \\tmp6\\().8h // av_clip_int2p(3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)], BIT_DEPTH - 1) = f\n        dup             \\tmp6\\().8h,  w7                        // max pixel value\n.if \\wd == 16\n        bic             v6.16b, v6.16b, v7.16b                  // fm && flat8in && !flat8out\n.endif\n\n        ushr            \\tmp2\\().8h,  \\tmp6\\().8h,  #1          // (1 << (BIT_DEPTH - 1)) - 1\n\n        add             \\tmp3\\().8h,  \\tmp1\\().8h,  v2.8h       // f + 4\n        add             \\tmp4\\().8h,  \\tmp1\\().8h,  v3.8h       // f + 3\n        smin            \\tmp3\\().8h,  \\tmp3\\().8h,  \\tmp2\\().8h // FFMIN(f + 4, (1 << (BIT_DEPTH - 1)) - 1)\n        smin            \\tmp4\\().8h,  \\tmp4\\().8h,  \\tmp2\\().8h // FFMIN(f + 3, (1 << (BIT_DEPTH - 1)) - 1)\n        sshr            \\tmp3\\().8h,  \\tmp3\\().8h,  #3          // f1\n        sshr            \\tmp4\\().8h,  \\tmp4\\().8h,  #3          // f2\n\n        add             v0.8h,   v23.8h,  \\tmp4\\().8h           // p0 + f2\n        sub             v2.8h,   v24.8h,  \\tmp3\\().8h           // q0 - f1\n        smin            v0.8h,   v0.8h,   \\tmp6\\().8h\n        smin            v2.8h,   v2.8h,   \\tmp6\\().8h\n        srshr           \\tmp3\\().8h, \\tmp3\\().8h, #1            // f = (f1 + 1) >> 1\n        smax            v0.8h,   v0.8h,   \\tmp5\\().8h           // out p0\n        smax            v2.8h,   v2.8h,   \\tmp5\\().8h           // out q0\n        bit             v23.16b, v0.16b,  v4.16b                // if (fm && !flat8in)\n        bit             v24.16b, v2.16b,  v4.16b\n\n        add             v0.8h,  v22.8h,  \\tmp3\\().8h            // p1 + f\n        sub             v2.8h,  v25.8h,  \\tmp3\\().8h            // q1 - f\n.if \\wd >= 8\n        mov             x11, v6.d[0]\n.endif\n        smin            v0.8h,  v0.8h,  \\tmp6\\().8h\n        smin            v2.8h,  v2.8h,  \\tmp6\\().8h\n.if \\wd >= 8\n        mov             x12, v6.d[1]\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:5", "text": "add             v0.8h,   v23.8h,  \\tmp4\\().8h           // p0 + f2\n        sub             v2.8h,   v24.8h,  \\tmp3\\().8h           // q0 - f1\n        smin            v0.8h,   v0.8h,   \\tmp6\\().8h\n        smin            v2.8h,   v2.8h,   \\tmp6\\().8h\n        srshr           \\tmp3\\().8h, \\tmp3\\().8h, #1            // f = (f1 + 1) >> 1\n        smax            v0.8h,   v0.8h,   \\tmp5\\().8h           // out p0\n        smax            v2.8h,   v2.8h,   \\tmp5\\().8h           // out q0\n        bit             v23.16b, v0.16b,  v4.16b                // if (fm && !flat8in)\n        bit             v24.16b, v2.16b,  v4.16b\n\n        add             v0.8h,  v22.8h,  \\tmp3\\().8h            // p1 + f\n        sub             v2.8h,  v25.8h,  \\tmp3\\().8h            // q1 - f\n.if \\wd >= 8\n        mov             x11, v6.d[0]\n.endif\n        smin            v0.8h,  v0.8h,  \\tmp6\\().8h\n        smin            v2.8h,  v2.8h,  \\tmp6\\().8h\n.if \\wd >= 8\n        mov             x12, v6.d[1]\n.endif\n        smax            v0.8h,  v0.8h,  \\tmp5\\().8h             // out p1\n        smax            v2.8h,  v2.8h,  \\tmp5\\().8h             // out q1\n.if \\wd >= 8\n        adds            x11, x11, x12\n.endif\n        bit             v22.16b, v0.16b,  v5.16b                // if (!hev && fm && !flat8in)\n        bit             v25.16b, v2.16b,  v5.16b\n\n        // If no pixels need flat8in, jump to flat8out\n        // (or to a writeout of the inner 4 pixels, for wd=8)\n.if \\wd >= 8\n.if \\wd == 16\n        b.eq            6f\n.else\n        b.ne            1f\n        ret             x13\n1:\n.endif\n\n        // flat8in\n        add             \\tmp1\\().8h, v20.8h, v21.8h\n        add             \\tmp3\\().8h, v22.8h, v25.8h\n        add             \\tmp5\\().8h, v20.8h, v22.8h\n        add             \\tmp7\\().8h, v23.8h, v26.8h\n        add             v0.8h,  \\tmp1\\().8h, \\tmp1\\().8h\n        add             v0.8h,  v0.8h,  v23.8h\n        add             v0.8h,  v0.8h,  v24.8h\n        add             v0.8h,  v0.8h,  \\tmp5\\().8h\n        sub             \\tmp3\\().8h, \\tmp3\\().8h, \\tmp1\\().8h\n        sub             \\tmp7\\().8h, \\tmp7\\().8h, \\tmp5\\().8h\n        urshr           v2.8h,  v0.8h,  #3                      // out p2\n\n        add             v0.8h,  v0.8h,  \\tmp3\\().8h\n        add             \\tmp1\\().8h, v20.8h,  v23.8h\n        add             \\tmp3\\().8h, v24.8h,  v27.8h\n        urshr           v3.8h,  v0.8h,  #3                      // out p1\n\n        add             v0.8h,  v0.8h,  \\tmp7\\().8h\n        sub             \\tmp3\\().8h, \\tmp3\\().8h, \\tmp1\\().8h\n        add             \\tmp5\\().8h, v21.8h,  v24.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:6", "text": "add             \\tmp1\\().8h, v20.8h, v21.8h\n        add             \\tmp3\\().8h, v22.8h, v25.8h\n        add             \\tmp5\\().8h, v20.8h, v22.8h\n        add             \\tmp7\\().8h, v23.8h, v26.8h\n        add             v0.8h,  \\tmp1\\().8h, \\tmp1\\().8h\n        add             v0.8h,  v0.8h,  v23.8h\n        add             v0.8h,  v0.8h,  v24.8h\n        add             v0.8h,  v0.8h,  \\tmp5\\().8h\n        sub             \\tmp3\\().8h, \\tmp3\\().8h, \\tmp1\\().8h\n        sub             \\tmp7\\().8h, \\tmp7\\().8h, \\tmp5\\().8h\n        urshr           v2.8h,  v0.8h,  #3                      // out p2\n\n        add             v0.8h,  v0.8h,  \\tmp3\\().8h\n        add             \\tmp1\\().8h, v20.8h,  v23.8h\n        add             \\tmp3\\().8h, v24.8h,  v27.8h\n        urshr           v3.8h,  v0.8h,  #3                      // out p1\n\n        add             v0.8h,  v0.8h,  \\tmp7\\().8h\n        sub             \\tmp3\\().8h, \\tmp3\\().8h, \\tmp1\\().8h\n        add             \\tmp5\\().8h, v21.8h,  v24.8h\n        add             \\tmp7\\().8h, v25.8h,  v27.8h\n        urshr           v4.8h,  v0.8h,  #3                      // out p0\n\n        add             v0.8h,  v0.8h,  \\tmp3\\().8h\n        sub             \\tmp7\\().8h, \\tmp7\\().8h, \\tmp5\\().8h\n        add             \\tmp1\\().8h, v22.8h,  v25.8h\n        add             \\tmp3\\().8h, v26.8h,  v27.8h\n        urshr           v5.8h,  v0.8h,  #3                      // out q0\n\n        add             v0.8h,  v0.8h,  \\tmp7\\().8h\n        sub             \\tmp3\\().8h, \\tmp3\\().8h, \\tmp1\\().8h\n        urshr           \\tmp5\\().8h, v0.8h,  #3                 // out q1\n\n        add             v0.8h,  v0.8h,  \\tmp3\\().8h\n        // The output here is written back into the input registers. This doesn't\n        // matter for the flat8part below, since we only update those pixels\n        // which won't be touched below.\n        bit             v21.16b, v2.16b,  v6.16b\n        bit             v22.16b, v3.16b,  v6.16b\n        bit             v23.16b, v4.16b,  v6.16b\n        urshr           \\tmp6\\().8h,  v0.8h,  #3                // out q2\n        bit             v24.16b, v5.16b,  v6.16b\n        bit             v25.16b, \\tmp5\\().16b,  v6.16b\n        bit             v26.16b, \\tmp6\\().16b,  v6.16b\n.endif\n.if \\wd == 16\n6:\n        orr             v2.16b,  v6.16b,  v7.16b\n        mov             x11, v2.d[0]\n        mov             x12, v2.d[1]\n        adds            x11, x11, x12\n        b.ne            1f\n        // If no pixels needed flat8in nor flat8out, jump to a\n        // writeout of the inner 4 pixels\n        ret             x14\n1:\n\n        mov             x11, v7.d[0]\n        mov             x12, v7.d[1]\n        adds            x11, x11, x12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:7", "text": "urshr           \\tmp6\\().8h,  v0.8h,  #3                // out q2\n        bit             v24.16b, v5.16b,  v6.16b\n        bit             v25.16b, \\tmp5\\().16b,  v6.16b\n        bit             v26.16b, \\tmp6\\().16b,  v6.16b\n.endif\n.if \\wd == 16\n6:\n        orr             v2.16b,  v6.16b,  v7.16b\n        mov             x11, v2.d[0]\n        mov             x12, v2.d[1]\n        adds            x11, x11, x12\n        b.ne            1f\n        // If no pixels needed flat8in nor flat8out, jump to a\n        // writeout of the inner 4 pixels\n        ret             x14\n1:\n\n        mov             x11, v7.d[0]\n        mov             x12, v7.d[1]\n        adds            x11, x11, x12\n        b.ne            1f\n        // If no pixels need flat8out, jump to a writeout of the inner 6 pixels\n        ret             x15\n\n1:\n        // flat8out\n        // This writes all outputs into v2-v17 (skipping v6 and v16).\n        // If this part is skipped, the output is read from v21-v26 (which is the input\n        // to this section).\n        shl             v0.8h,   v16.8h,  #3     // 8 * v16\n        sub             v0.8h,   v0.8h,   v16.8h // 7 * v16\n        add             v0.8h,   v0.8h,   v17.8h\n        add             v8.8h,   v17.8h,  v18.8h\n        add             v10.8h,  v19.8h,  v20.8h\n        add             v0.8h,   v0.8h,   v8.8h\n        add             v8.8h,   v16.8h,  v17.8h\n        add             v12.8h,  v21.8h,  v22.8h\n        add             v0.8h,   v0.8h,   v10.8h\n        add             v10.8h,  v18.8h,  v25.8h\n        add             v14.8h,  v23.8h,  v24.8h\n        sub             v10.8h,  v10.8h,  v8.8h\n        add             v0.8h,   v0.8h,   v12.8h\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v12.8h,  v16.8h,  v18.8h\n        add             v14.8h,  v19.8h,  v26.8h\n        urshr           v2.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v10.8h\n        add             v8.8h,   v16.8h,  v19.8h\n        add             v10.8h,  v20.8h,  v27.8h\n        sub             v14.8h,  v14.8h,  v12.8h\n        bif             v2.16b,  v17.16b, v7.16b\n        urshr           v3.8h ,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v12.8h,  v16.8h,  v20.8h\n        add             v14.8h,  v21.8h,  v28.8h\n        sub             v10.8h,  v10.8h,  v8.8h\n        bif             v3.16b,  v18.16b, v7.16b\n        urshr           v4.8h,   v0.8h,   #4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:8", "text": "sub             v10.8h,  v10.8h,  v8.8h\n        add             v0.8h,   v0.8h,   v12.8h\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v12.8h,  v16.8h,  v18.8h\n        add             v14.8h,  v19.8h,  v26.8h\n        urshr           v2.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v10.8h\n        add             v8.8h,   v16.8h,  v19.8h\n        add             v10.8h,  v20.8h,  v27.8h\n        sub             v14.8h,  v14.8h,  v12.8h\n        bif             v2.16b,  v17.16b, v7.16b\n        urshr           v3.8h ,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v12.8h,  v16.8h,  v20.8h\n        add             v14.8h,  v21.8h,  v28.8h\n        sub             v10.8h,  v10.8h,  v8.8h\n        bif             v3.16b,  v18.16b, v7.16b\n        urshr           v4.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v10.8h\n        add             v8.8h,   v16.8h,  v21.8h\n        add             v10.8h,  v22.8h,  v29.8h\n        sub             v14.8h,  v14.8h,  v12.8h\n        bif             v4.16b,  v19.16b, v7.16b\n        urshr           v5.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v12.8h,  v16.8h,  v22.8h\n        add             v14.8h,  v23.8h,  v30.8h\n        sub             v10.8h,  v10.8h,  v8.8h\n        bif             v5.16b,  v20.16b, v7.16b\n        urshr           v6.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v10.8h\n        add             v10.8h,  v16.8h,  v23.8h\n        sub             v14.8h,  v14.8h,  v12.8h\n        add             v12.8h,  v24.8h,  v31.8h\n        bif             v6.16b,  v21.16b, v7.16b\n        urshr           v8.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        sub             v10.8h,  v12.8h,  v10.8h\n        add             v12.8h,  v17.8h,  v24.8h\n        add             v14.8h,  v25.8h,  v31.8h\n        bif             v8.16b,  v22.16b, v7.16b\n        urshr           v9.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v10.8h\n        sub             v14.8h,  v14.8h,  v12.8h\n        add             v12.8h,  v26.8h,  v31.8h\n        bif             v9.16b,  v23.16b, v7.16b\n        urshr           v10.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v14.8h,  v18.8h,  v25.8h\n        add             v18.8h,  v19.8h,  v26.8h\n        sub             v12.8h,  v12.8h,  v14.8h\n        add             v14.8h,  v27.8h,  v31.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:9", "text": "urshr           v8.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        sub             v10.8h,  v12.8h,  v10.8h\n        add             v12.8h,  v17.8h,  v24.8h\n        add             v14.8h,  v25.8h,  v31.8h\n        bif             v8.16b,  v22.16b, v7.16b\n        urshr           v9.8h,   v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v10.8h\n        sub             v14.8h,  v14.8h,  v12.8h\n        add             v12.8h,  v26.8h,  v31.8h\n        bif             v9.16b,  v23.16b, v7.16b\n        urshr           v10.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v14.8h,  v18.8h,  v25.8h\n        add             v18.8h,  v19.8h,  v26.8h\n        sub             v12.8h,  v12.8h,  v14.8h\n        add             v14.8h,  v27.8h,  v31.8h\n        bif             v10.16b, v24.16b, v7.16b\n        urshr           v11.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v12.8h\n        add             v12.8h,  v20.8h,  v27.8h\n        sub             v14.8h,  v14.8h,  v18.8h\n        add             v18.8h,  v28.8h,  v31.8h\n        bif             v11.16b, v25.16b, v7.16b\n        sub             v18.8h,  v18.8h,  v12.8h\n        urshr           v12.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v14.8h\n        add             v14.8h,  v21.8h,  v28.8h\n        add             v20.8h,  v29.8h,  v31.8h\n        bif             v12.16b, v26.16b, v7.16b\n        urshr           v13.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v18.8h\n        sub             v20.8h,  v20.8h,  v14.8h\n        add             v18.8h,  v22.8h,  v29.8h\n        add             v22.8h,  v30.8h,  v31.8h\n        bif             v13.16b, v27.16b, v7.16b\n        urshr           v14.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v20.8h\n        sub             v22.8h,  v22.8h,  v18.8h\n        bif             v14.16b, v28.16b, v7.16b\n        urshr           v15.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v22.8h\n        bif             v15.16b, v29.16b, v7.16b\n        urshr           v17.8h,  v0.8h,   #4\n        bif             v17.16b, v30.16b, v7.16b\n.endif\n.endm\n\n// For wd <= 8, we use v16-v19 and v28-v31 for temp registers,\n// while we need those for inputs/outputs in wd=16 and use v8-v15\n// for temp registers there instead.\nfunction vp9_loop_filter_4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:10", "text": "add             v22.8h,  v30.8h,  v31.8h\n        bif             v13.16b, v27.16b, v7.16b\n        urshr           v14.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v20.8h\n        sub             v22.8h,  v22.8h,  v18.8h\n        bif             v14.16b, v28.16b, v7.16b\n        urshr           v15.8h,  v0.8h,   #4\n\n        add             v0.8h,   v0.8h,   v22.8h\n        bif             v15.16b, v29.16b, v7.16b\n        urshr           v17.8h,  v0.8h,   #4\n        bif             v17.16b, v30.16b, v7.16b\n.endif\n.endm\n\n// For wd <= 8, we use v16-v19 and v28-v31 for temp registers,\n// while we need those for inputs/outputs in wd=16 and use v8-v15\n// for temp registers there instead.\nfunction vp9_loop_filter_4\n        loop_filter     4,  v16, v17, v18, v19, v28, v29, v30, v31\n        ret\nendfunc\n\nfunction vp9_loop_filter_8\n        loop_filter     8,  v16, v17, v18, v19, v28, v29, v30, v31\n        ret\nendfunc\n\nfunction vp9_loop_filter_16\n        loop_filter     16, v8,  v9,  v10, v11, v12, v13, v14, v15\n        ret\nendfunc\n\n.macro loop_filter_4\n        bl              vp9_loop_filter_4\n.endm\n\n.macro loop_filter_8\n        // calculate alternative 'return' targets\n        adr             x13, 6f\n        bl              vp9_loop_filter_8\n.endm\n\n.macro loop_filter_16\n        // calculate alternative 'return' targets\n        adr             x14, 7f\n        adr             x15, 8f\n        bl              vp9_loop_filter_16\n.endm\n\n\n// The public functions in this file have got the following signature:\n// void loop_filter(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr);\n\n.macro bpp_frontend func, bpp, push\nfunction ff_\\func\\()_\\bpp\\()_neon, export=1\n.if \\push\n        mov             x16, x30\n        stp             d8,  d9,  [sp, #-0x40]!", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:11", "text": "adr             x13, 6f\n        bl              vp9_loop_filter_8\n.endm\n\n.macro loop_filter_16\n        // calculate alternative 'return' targets\n        adr             x14, 7f\n        adr             x15, 8f\n        bl              vp9_loop_filter_16\n.endm\n\n\n// The public functions in this file have got the following signature:\n// void loop_filter(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr);\n\n.macro bpp_frontend func, bpp, push\nfunction ff_\\func\\()_\\bpp\\()_neon, export=1\n.if \\push\n        mov             x16, x30\n        stp             d8,  d9,  [sp, #-0x40]!\n        stp             d14, d15, [sp, #0x30]\n        stp             d12, d13, [sp, #0x20]\n        stp             d10, d11, [sp, #0x10]\n.endif\n        lsl             w2,  w2,  #\\bpp - 8\n        lsl             w3,  w3,  #\\bpp - 8\n        lsl             w4,  w4,  #\\bpp - 8\n        mov             x5,  #1 << (\\bpp - 8)\n        mov             x6,  #16 - \\bpp\n        mov             x7,  #((1 << \\bpp) - 1)\n.if \\push\n        bl              \\func\\()_16_neon\n        ldp             d10, d11, [sp, #0x10]\n        ldp             d12, d13, [sp, #0x20]\n        ldp             d14, d15, [sp, #0x30]\n        ldp             d8,  d9,  [sp], #0x40\n        ret             x16\n.else\n        b               \\func\\()_16_neon\n.endif\nendfunc\n.endm\n\n.macro bpp_frontends func, push=0\n        bpp_frontend    \\func, 10, \\push\n        bpp_frontend    \\func, 12, \\push\n.endm\n\n.macro bpp_frontend_rep func, suffix, int_suffix, dir, bpp, push\nfunction ff_\\func\\()_\\suffix\\()_\\bpp\\()_neon, export=1\n        mov             x16, x30\n.if \\push\n        stp             d8,  d9,  [sp, #-0x40]!\n        stp             d14, d15, [sp, #0x30]\n        stp             d12, d13, [sp, #0x20]\n        stp             d10, d11, [sp, #0x10]\n.endif\n        lsl             w2,  w2,  #\\bpp - 8\n        lsl             w3,  w3,  #\\bpp - 8\n        lsl             w4,  w4,  #\\bpp - 8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:12", "text": "endfunc\n.endm\n\n.macro bpp_frontends func, push=0\n        bpp_frontend    \\func, 10, \\push\n        bpp_frontend    \\func, 12, \\push\n.endm\n\n.macro bpp_frontend_rep func, suffix, int_suffix, dir, bpp, push\nfunction ff_\\func\\()_\\suffix\\()_\\bpp\\()_neon, export=1\n        mov             x16, x30\n.if \\push\n        stp             d8,  d9,  [sp, #-0x40]!\n        stp             d14, d15, [sp, #0x30]\n        stp             d12, d13, [sp, #0x20]\n        stp             d10, d11, [sp, #0x10]\n.endif\n        lsl             w2,  w2,  #\\bpp - 8\n        lsl             w3,  w3,  #\\bpp - 8\n        lsl             w4,  w4,  #\\bpp - 8\n        mov             x5,  #1 << (\\bpp - 8)\n        mov             x6,  #16 - \\bpp\n        mov             x7,  #((1 << \\bpp) - 1)\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.ifc \\dir,h\n        add             x0,  x0,  x1, lsl #3\n.else\n        add             x0,  x0,  #16\n.endif\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.if \\push\n        ldp             d10, d11, [sp, #0x10]\n        ldp             d12, d13, [sp, #0x20]\n        ldp             d14, d15, [sp, #0x30]\n        ldp             d8,  d9,  [sp], 0x40\n.endif\n        ret             x16\nendfunc\n.endm\n\n.macro bpp_frontends_rep func, suffix, int_suffix, dir, push=0\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\dir, 10, \\push\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\dir, 12, \\push\n.endm\n\n.macro bpp_frontend_mix2 wd1, wd2, dir, bpp\nfunction ff_vp9_loop_filter_\\dir\\()_\\wd1\\()\\wd2\\()_16_\\bpp\\()_neon, export=1\n        mov             x16, x30\n        lsr             w8,  w2,  #8\n        lsr             w14, w3,  #8\n        lsr             w15, w4,  #8\n        and             w2,  w2,  #0xff\n        and             w3,  w3,  #0xff\n        and             w4,  w4,  #0xff\n        lsl             w2,  w2,  #\\bpp - 8\n        lsl             w3,  w3,  #\\bpp - 8\n        lsl             w4,  w4,  #\\bpp - 8\n        mov             x5,  #1 << (\\bpp - 8)\n        mov             x6,  #16 - \\bpp\n        mov             x7,  #((1 << \\bpp) - 1)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:13", "text": ".macro bpp_frontends_rep func, suffix, int_suffix, dir, push=0\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\dir, 10, \\push\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\dir, 12, \\push\n.endm\n\n.macro bpp_frontend_mix2 wd1, wd2, dir, bpp\nfunction ff_vp9_loop_filter_\\dir\\()_\\wd1\\()\\wd2\\()_16_\\bpp\\()_neon, export=1\n        mov             x16, x30\n        lsr             w8,  w2,  #8\n        lsr             w14, w3,  #8\n        lsr             w15, w4,  #8\n        and             w2,  w2,  #0xff\n        and             w3,  w3,  #0xff\n        and             w4,  w4,  #0xff\n        lsl             w2,  w2,  #\\bpp - 8\n        lsl             w3,  w3,  #\\bpp - 8\n        lsl             w4,  w4,  #\\bpp - 8\n        mov             x5,  #1 << (\\bpp - 8)\n        mov             x6,  #16 - \\bpp\n        mov             x7,  #((1 << \\bpp) - 1)\n        bl              vp9_loop_filter_\\dir\\()_\\wd1\\()_8_16_neon\n.ifc \\dir,h\n        add             x0,  x0,  x1, lsl #3\n.else\n        add             x0,  x0,  #16\n.endif\n        lsl             w2,  w8,  #\\bpp - 8\n        lsl             w3,  w14, #\\bpp - 8\n        lsl             w4,  w15, #\\bpp - 8\n        bl              vp9_loop_filter_\\dir\\()_\\wd2\\()_8_16_neon\n        ret             x16\nendfunc\n.endm\n\n.macro bpp_frontends_mix2 wd1, wd2\n        bpp_frontend_mix2 \\wd1, \\wd2, v, 10\n        bpp_frontend_mix2 \\wd1, \\wd2, v, 12\n        bpp_frontend_mix2 \\wd1, \\wd2, h, 10\n        bpp_frontend_mix2 \\wd1, \\wd2, h, 12\n.endm\n\nfunction vp9_loop_filter_v_4_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  x1, lsl #2\n        ld1             {v20.8h}, [x9], x1 // p3\n        ld1             {v24.8h}, [x0], x1 // q0\n        ld1             {v21.8h}, [x9], x1 // p2\n        ld1             {v25.8h}, [x0], x1 // q1\n        ld1             {v22.8h}, [x9], x1 // p1\n        ld1             {v26.8h}, [x0], x1 // q2\n        ld1             {v23.8h}, [x9], x1 // p0\n        ld1             {v27.8h}, [x0], x1 // q3\n        sub             x0,  x0,  x1, lsl #2\n        sub             x9,  x9,  x1, lsl #1\n\n        loop_filter_4\n\n        st1             {v22.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:14", "text": "function vp9_loop_filter_v_4_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  x1, lsl #2\n        ld1             {v20.8h}, [x9], x1 // p3\n        ld1             {v24.8h}, [x0], x1 // q0\n        ld1             {v21.8h}, [x9], x1 // p2\n        ld1             {v25.8h}, [x0], x1 // q1\n        ld1             {v22.8h}, [x9], x1 // p1\n        ld1             {v26.8h}, [x0], x1 // q2\n        ld1             {v23.8h}, [x9], x1 // p0\n        ld1             {v27.8h}, [x0], x1 // q3\n        sub             x0,  x0,  x1, lsl #2\n        sub             x9,  x9,  x1, lsl #1\n\n        loop_filter_4\n\n        st1             {v22.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1\n\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_v_4_8\n\nfunction vp9_loop_filter_h_4_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  #8\n        add             x0,  x9,  x1, lsl #2\n        ld1             {v20.8h}, [x9], x1\n        ld1             {v24.8h}, [x0], x1\n        ld1             {v21.8h}, [x9], x1\n        ld1             {v25.8h}, [x0], x1\n        ld1             {v22.8h}, [x9], x1\n        ld1             {v26.8h}, [x0], x1\n        ld1             {v23.8h}, [x9], x1\n        ld1             {v27.8h}, [x0], x1\n\n        sub             x9,  x9,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #8\n\n        transpose_8x8H  v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n\n        loop_filter_4\n\n        // Move x9 forward by 2 pixels; we don't need to rewrite the\n        // outermost 2 pixels since they aren't changed.\n        add             x9,  x9,  #4\n        add             x0,  x9,  x1, lsl #2\n\n        // We only will write the mid 4 pixels back; after the loop filter,\n        // these are in v22, v23, v24, v25, ordered as rows (8x4 pixels).\n        // We need to transpose them to columns, done with a 4x8 transpose\n        // (which in practice is two 4x4 transposes of the two 4x4 halves\n        // of the 8x4 pixels; into 4x8 pixels).\n        transpose_4x8H  v22, v23, v24, v25, v26, v27, v28, v29", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:15", "text": "sub             x9,  x9,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #8\n\n        transpose_8x8H  v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n\n        loop_filter_4\n\n        // Move x9 forward by 2 pixels; we don't need to rewrite the\n        // outermost 2 pixels since they aren't changed.\n        add             x9,  x9,  #4\n        add             x0,  x9,  x1, lsl #2\n\n        // We only will write the mid 4 pixels back; after the loop filter,\n        // these are in v22, v23, v24, v25, ordered as rows (8x4 pixels).\n        // We need to transpose them to columns, done with a 4x8 transpose\n        // (which in practice is two 4x4 transposes of the two 4x4 halves\n        // of the 8x4 pixels; into 4x8 pixels).\n        transpose_4x8H  v22, v23, v24, v25, v26, v27, v28, v29\n        st1             {v22.d}[0], [x9], x1\n        st1             {v22.d}[1], [x0], x1\n        st1             {v23.d}[0], [x9], x1\n        st1             {v23.d}[1], [x0], x1\n        st1             {v24.d}[0], [x9], x1\n        st1             {v24.d}[1], [x0], x1\n        st1             {v25.d}[0], [x9], x1\n        st1             {v25.d}[1], [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #4\n\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_h_4_8\n\nfunction vp9_loop_filter_v_8_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  x1, lsl #2\n        ld1             {v20.8h}, [x9], x1 // p3\n        ld1             {v24.8h}, [x0], x1 // q0\n        ld1             {v21.8h}, [x9], x1 // p2\n        ld1             {v25.8h}, [x0], x1 // q1\n        ld1             {v22.8h}, [x9], x1 // p1\n        ld1             {v26.8h}, [x0], x1 // q2\n        ld1             {v23.8h}, [x9], x1 // p0\n        ld1             {v27.8h}, [x0], x1 // q3\n        sub             x9,  x9,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #2\n        add             x9,  x9,  x1\n\n        loop_filter_8\n\n        st1             {v21.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v22.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v26.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:16", "text": "ld1             {v24.8h}, [x0], x1 // q0\n        ld1             {v21.8h}, [x9], x1 // p2\n        ld1             {v25.8h}, [x0], x1 // q1\n        ld1             {v22.8h}, [x9], x1 // p1\n        ld1             {v26.8h}, [x0], x1 // q2\n        ld1             {v23.8h}, [x9], x1 // p0\n        ld1             {v27.8h}, [x0], x1 // q3\n        sub             x9,  x9,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #2\n        add             x9,  x9,  x1\n\n        loop_filter_8\n\n        st1             {v21.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v22.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v26.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1\n        sub             x0,  x0,  x1\n\n        ret             x10\n6:\n        sub             x9,  x0,  x1, lsl #1\n        st1             {v22.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_v_8_8\n\nfunction vp9_loop_filter_h_8_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  #8\n        add             x0,  x9,  x1, lsl #2\n        ld1             {v20.8h}, [x9], x1\n        ld1             {v24.8h}, [x0], x1\n        ld1             {v21.8h}, [x9], x1\n        ld1             {v25.8h}, [x0], x1\n        ld1             {v22.8h}, [x9], x1\n        ld1             {v26.8h}, [x0], x1\n        ld1             {v23.8h}, [x9], x1\n        ld1             {v27.8h}, [x0], x1\n\n        sub             x9,  x9,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #8\n\n        transpose_8x8H  v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n\n        loop_filter_8\n\n        add             x0,  x9,  x1, lsl #2\n\n        // Even though only 6 pixels per row have been changed, we write the\n        // full 8 pixel registers.", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:17", "text": "ld1             {v24.8h}, [x0], x1\n        ld1             {v21.8h}, [x9], x1\n        ld1             {v25.8h}, [x0], x1\n        ld1             {v22.8h}, [x9], x1\n        ld1             {v26.8h}, [x0], x1\n        ld1             {v23.8h}, [x9], x1\n        ld1             {v27.8h}, [x0], x1\n\n        sub             x9,  x9,  x1, lsl #2\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #8\n\n        transpose_8x8H  v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n\n        loop_filter_8\n\n        add             x0,  x9,  x1, lsl #2\n\n        // Even though only 6 pixels per row have been changed, we write the\n        // full 8 pixel registers.\n        transpose_8x8H  v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n\n        st1             {v20.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v21.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        st1             {v22.8h}, [x9], x1\n        st1             {v26.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v27.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #8\n\n        ret             x10\n6:\n        // If we didn't need to do the flat8in part, we use the same writeback\n        // as in loop_filter_h_4_8.\n        add             x9,  x9,  #4\n        add             x0,  x9,  x1, lsl #2\n        transpose_4x8H  v22, v23, v24, v25, v26, v27, v28, v29\n        st1             {v22.d}[0], [x9], x1\n        st1             {v22.d}[1], [x0], x1\n        st1             {v23.d}[0], [x9], x1\n        st1             {v23.d}[1], [x0], x1\n        st1             {v24.d}[0], [x9], x1\n        st1             {v24.d}[1], [x0], x1\n        st1             {v25.d}[0], [x9], x1\n        st1             {v25.d}[1], [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #4\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_h_8_8\n\nbpp_frontends_mix2 4, 4\nbpp_frontends_mix2 4, 8\nbpp_frontends_mix2 8, 4\nbpp_frontends_mix2 8, 8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:18", "text": "st1             {v22.d}[0], [x9], x1\n        st1             {v22.d}[1], [x0], x1\n        st1             {v23.d}[0], [x9], x1\n        st1             {v23.d}[1], [x0], x1\n        st1             {v24.d}[0], [x9], x1\n        st1             {v24.d}[1], [x0], x1\n        st1             {v25.d}[0], [x9], x1\n        st1             {v25.d}[1], [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #4\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_h_8_8\n\nbpp_frontends_mix2 4, 4\nbpp_frontends_mix2 4, 8\nbpp_frontends_mix2 8, 4\nbpp_frontends_mix2 8, 8\n\nfunction vp9_loop_filter_v_16_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  x1, lsl #3\n        ld1             {v16.8h}, [x9], x1 // p7\n        ld1             {v24.8h}, [x0], x1 // q0\n        ld1             {v17.8h}, [x9], x1 // p6\n        ld1             {v25.8h}, [x0], x1 // q1\n        ld1             {v18.8h}, [x9], x1 // p5\n        ld1             {v26.8h}, [x0], x1 // q2\n        ld1             {v19.8h}, [x9], x1 // p4\n        ld1             {v27.8h}, [x0], x1 // q3\n        ld1             {v20.8h}, [x9], x1 // p3\n        ld1             {v28.8h}, [x0], x1 // q4\n        ld1             {v21.8h}, [x9], x1 // p2\n        ld1             {v29.8h}, [x0], x1 // q5\n        ld1             {v22.8h}, [x9], x1 // p1\n        ld1             {v30.8h}, [x0], x1 // q6\n        ld1             {v23.8h}, [x9], x1 // p0\n        ld1             {v31.8h}, [x0], x1 // q7\n        sub             x9,  x9,  x1, lsl #3\n        sub             x0,  x0,  x1, lsl #3\n        add             x9,  x9,  x1\n\n        loop_filter_16\n\n        // If we did the flat8out part, we get the output in\n        // v2-v17 (skipping v7 and v16). x9 points to x0 - 7 * stride,\n        // store v2-v9 there, and v10-v17 into x0.\n        st1             {v2.8h},  [x9], x1\n        st1             {v10.8h}, [x0], x1\n        st1             {v3.8h},  [x9], x1\n        st1             {v11.8h}, [x0], x1\n        st1             {v4.8h},  [x9], x1\n        st1             {v12.8h}, [x0], x1\n        st1             {v5.8h},  [x9], x1\n        st1             {v13.8h}, [x0], x1\n        st1             {v6.8h},  [x9], x1\n        st1             {v14.8h}, [x0], x1\n        st1             {v8.8h},  [x9], x1\n        st1             {v15.8h}, [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:19", "text": "sub             x0,  x0,  x1, lsl #3\n        add             x9,  x9,  x1\n\n        loop_filter_16\n\n        // If we did the flat8out part, we get the output in\n        // v2-v17 (skipping v7 and v16). x9 points to x0 - 7 * stride,\n        // store v2-v9 there, and v10-v17 into x0.\n        st1             {v2.8h},  [x9], x1\n        st1             {v10.8h}, [x0], x1\n        st1             {v3.8h},  [x9], x1\n        st1             {v11.8h}, [x0], x1\n        st1             {v4.8h},  [x9], x1\n        st1             {v12.8h}, [x0], x1\n        st1             {v5.8h},  [x9], x1\n        st1             {v13.8h}, [x0], x1\n        st1             {v6.8h},  [x9], x1\n        st1             {v14.8h}, [x0], x1\n        st1             {v8.8h},  [x9], x1\n        st1             {v15.8h}, [x0], x1\n        st1             {v9.8h},  [x9], x1\n        st1             {v17.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  x1\n\n        ret             x10\n8:\n        add             x9,  x9,  x1, lsl #2\n        // If we didn't do the flat8out part, the output is left in the\n        // input registers.\n        st1             {v21.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v22.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v26.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1\n        sub             x0,  x0,  x1\n        ret             x10\n7:\n        sub             x9,  x0,  x1, lsl #1\n        st1             {v22.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_v_16_8, push=1\nbpp_frontends_rep vp9_loop_filter_v_16, 16, 8, v, push=1\n\nfunction vp9_loop_filter_h_16_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  #16\n        ld1             {v16.8h}, [x9], x1\n        ld1             {v24.8h}, [x0], x1\n        ld1             {v17.8h}, [x9], x1\n        ld1             {v25.8h}, [x0], x1\n        ld1             {v18.8h}, [x9], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:20", "text": "sub             x9,  x0,  x1, lsl #1\n        st1             {v22.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #1\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_v_16_8, push=1\nbpp_frontends_rep vp9_loop_filter_v_16, 16, 8, v, push=1\n\nfunction vp9_loop_filter_h_16_8_16_neon\n        mov             x10, x30\n        sub             x9,  x0,  #16\n        ld1             {v16.8h}, [x9], x1\n        ld1             {v24.8h}, [x0], x1\n        ld1             {v17.8h}, [x9], x1\n        ld1             {v25.8h}, [x0], x1\n        ld1             {v18.8h}, [x9], x1\n        ld1             {v26.8h}, [x0], x1\n        ld1             {v19.8h}, [x9], x1\n        ld1             {v27.8h}, [x0], x1\n        ld1             {v20.8h}, [x9], x1\n        ld1             {v28.8h}, [x0], x1\n        ld1             {v21.8h}, [x9], x1\n        ld1             {v29.8h}, [x0], x1\n        ld1             {v22.8h}, [x9], x1\n        ld1             {v30.8h}, [x0], x1\n        ld1             {v23.8h}, [x9], x1\n        ld1             {v31.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        sub             x9,  x9,  x1, lsl #3\n\n        // The 16x8 pixels read above is in two 8x8 blocks; the left\n        // half in v16-v23, and the right half in v24-v31. Do two 8x8 transposes\n        // of this, to get one column per register.\n        transpose_8x8H  v16, v17, v18, v19, v20, v21, v22, v23, v0, v1\n        transpose_8x8H  v24, v25, v26, v27, v28, v29, v30, v31, v0, v1\n\n        loop_filter_16\n\n        transpose_8x8H  v16, v2,  v3,  v4,  v5,  v6,  v8,  v9,  v0, v1\n        transpose_8x8H  v10, v11, v12, v13, v14, v15, v17, v31, v0, v1\n\n        st1             {v16.8h}, [x9], x1\n        st1             {v10.8h}, [x0], x1\n        st1             {v2.8h},  [x9], x1\n        st1             {v11.8h}, [x0], x1\n        st1             {v3.8h},  [x9], x1\n        st1             {v12.8h}, [x0], x1\n        st1             {v4.8h},  [x9], x1\n        st1             {v13.8h}, [x0], x1\n        st1             {v5.8h},  [x9], x1\n        st1             {v14.8h}, [x0], x1\n        st1             {v6.8h},  [x9], x1\n        st1             {v15.8h}, [x0], x1\n        st1             {v8.8h},  [x9], x1\n        st1             {v17.8h}, [x0], x1\n        st1             {v9.8h},  [x9], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:21", "text": "loop_filter_16\n\n        transpose_8x8H  v16, v2,  v3,  v4,  v5,  v6,  v8,  v9,  v0, v1\n        transpose_8x8H  v10, v11, v12, v13, v14, v15, v17, v31, v0, v1\n\n        st1             {v16.8h}, [x9], x1\n        st1             {v10.8h}, [x0], x1\n        st1             {v2.8h},  [x9], x1\n        st1             {v11.8h}, [x0], x1\n        st1             {v3.8h},  [x9], x1\n        st1             {v12.8h}, [x0], x1\n        st1             {v4.8h},  [x9], x1\n        st1             {v13.8h}, [x0], x1\n        st1             {v5.8h},  [x9], x1\n        st1             {v14.8h}, [x0], x1\n        st1             {v6.8h},  [x9], x1\n        st1             {v15.8h}, [x0], x1\n        st1             {v8.8h},  [x9], x1\n        st1             {v17.8h}, [x0], x1\n        st1             {v9.8h},  [x9], x1\n        st1             {v31.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n\n        ret             x10\n8:\n        // The same writeback as in loop_filter_h_8_8\n        sub             x9,  x0,  #8\n        add             x0,  x9,  x1, lsl #2\n        transpose_8x8H  v20, v21, v22, v23, v24, v25, v26, v27, v28, v29\n\n        st1             {v20.8h}, [x9], x1\n        st1             {v24.8h}, [x0], x1\n        st1             {v21.8h}, [x9], x1\n        st1             {v25.8h}, [x0], x1\n        st1             {v22.8h}, [x9], x1\n        st1             {v26.8h}, [x0], x1\n        st1             {v23.8h}, [x9], x1\n        st1             {v27.8h}, [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #8\n        ret             x10\n7:\n        // The same writeback as in loop_filter_h_4_8\n        sub             x9,  x0,  #4\n        add             x0,  x9,  x1, lsl #2\n        transpose_4x8H  v22, v23, v24, v25, v26, v27, v28, v29\n        st1             {v22.d}[0], [x9], x1\n        st1             {v22.d}[1], [x0], x1\n        st1             {v23.d}[0], [x9], x1\n        st1             {v23.d}[1], [x0], x1\n        st1             {v24.d}[0], [x9], x1\n        st1             {v24.d}[1], [x0], x1\n        st1             {v25.d}[0], [x9], x1\n        st1             {v25.d}[1], [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #4\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_h_16_8, push=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9lpf_16bpp_neon.S:22", "text": "ret             x10\n7:\n        // The same writeback as in loop_filter_h_4_8\n        sub             x9,  x0,  #4\n        add             x0,  x9,  x1, lsl #2\n        transpose_4x8H  v22, v23, v24, v25, v26, v27, v28, v29\n        st1             {v22.d}[0], [x9], x1\n        st1             {v22.d}[1], [x0], x1\n        st1             {v23.d}[0], [x9], x1\n        st1             {v23.d}[1], [x0], x1\n        st1             {v24.d}[0], [x9], x1\n        st1             {v24.d}[1], [x0], x1\n        st1             {v25.d}[0], [x9], x1\n        st1             {v25.d}[1], [x0], x1\n        sub             x0,  x0,  x1, lsl #3\n        add             x0,  x0,  #4\n        ret             x10\nendfunc\n\nbpp_frontends vp9_loop_filter_h_16_8, push=1\nbpp_frontends_rep vp9_loop_filter_h_16, 16, 8, h, push=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9lpf_16bpp_neon.S", "line_start": 841, "line_end": 861}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:1", "text": "/*\n * Copyright (c) 2017 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// All public functions in this file have the following signature:\n// typedef void (*vp9_mc_func)(uint8_t *dst, ptrdiff_t dst_stride,\n//                            const uint8_t *ref, ptrdiff_t ref_stride,\n//                            int h, int mx, int my);\n\nfunction ff_vp9_avg64_16_neon, export=1\n        mov             x5,  x0\n        sub             x1,  x1,  #64\n        sub             x3,  x3,  #64\n1:\n        ld1             {v4.8h,  v5.8h,  v6.8h,  v7.8h},  [x2], #64\n        ld1             {v0.8h,  v1.8h,  v2.8h,  v3.8h},  [x0], #64\n        ld1             {v20.8h, v21.8h, v22.8h, v23.8h}, [x2], x3\n        urhadd          v0.8h,  v0.8h,  v4.8h\n        urhadd          v1.8h,  v1.8h,  v5.8h\n        ld1             {v16.8h, v17.8h, v18.8h, v19.8h}, [x0], x1\n        urhadd          v2.8h,  v2.8h,  v6.8h\n        urhadd          v3.8h,  v3.8h,  v7.8h\n        subs            w4,  w4,  #1\n        urhadd          v16.8h, v16.8h, v20.8h\n        urhadd          v17.8h, v17.8h, v21.8h\n        st1             {v0.8h,  v1.8h,  v2.8h,  v3.8h},  [x5], #64\n        urhadd          v18.8h, v18.8h, v22.8h\n        urhadd          v19.8h, v19.8h, v23.8h\n        st1             {v16.8h, v17.8h, v18.8h, v19.8h}, [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg32_16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v4.8h,  v5.8h,  v6.8h,  v7.8h},  [x2], x3\n        ld1             {v0.8h,  v1.8h,  v2.8h,  v3.8h},  [x0], x1\n        ld1             {v20.8h, v21.8h, v22.8h, v23.8h}, [x2], x3\n        urhadd          v0.8h,  v0.8h,  v4.8h\n        urhadd          v1.8h,  v1.8h,  v5.8h\n        ld1             {v16.8h, v17.8h, v18.8h, v19.8h}, [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:2", "text": "subs            w4,  w4,  #1\n        urhadd          v16.8h, v16.8h, v20.8h\n        urhadd          v17.8h, v17.8h, v21.8h\n        st1             {v0.8h,  v1.8h,  v2.8h,  v3.8h},  [x5], #64\n        urhadd          v18.8h, v18.8h, v22.8h\n        urhadd          v19.8h, v19.8h, v23.8h\n        st1             {v16.8h, v17.8h, v18.8h, v19.8h}, [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg32_16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v4.8h,  v5.8h,  v6.8h,  v7.8h},  [x2], x3\n        ld1             {v0.8h,  v1.8h,  v2.8h,  v3.8h},  [x0], x1\n        ld1             {v20.8h, v21.8h, v22.8h, v23.8h}, [x2], x3\n        urhadd          v0.8h,  v0.8h,  v4.8h\n        urhadd          v1.8h,  v1.8h,  v5.8h\n        ld1             {v16.8h, v17.8h, v18.8h, v19.8h}, [x0], x1\n        urhadd          v2.8h,  v2.8h,  v6.8h\n        urhadd          v3.8h,  v3.8h,  v7.8h\n        subs            w4,  w4,  #2\n        urhadd          v16.8h, v16.8h, v20.8h\n        urhadd          v17.8h, v17.8h, v21.8h\n        st1             {v0.8h,  v1.8h,  v2.8h,  v3.8h},  [x5], x1\n        urhadd          v18.8h, v18.8h, v22.8h\n        urhadd          v19.8h, v19.8h, v23.8h\n        st1             {v16.8h, v17.8h, v18.8h, v19.8h}, [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg16_16_neon, export=1\n1:\n        ld1             {v2.8h, v3.8h},  [x2], x3\n        ld1             {v0.8h, v1.8h},  [x0]\n        urhadd          v0.8h,  v0.8h,  v2.8h\n        urhadd          v1.8h,  v1.8h,  v3.8h\n        subs            w4,  w4,  #1\n        st1             {v0.8h, v1.8h},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg8_16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.8h},  [x2], x3\n        ld1             {v0.8h},  [x0], x1\n        ld1             {v3.8h},  [x2], x3\n        urhadd          v0.8h,  v0.8h,  v2.8h\n        ld1             {v1.8h},  [x0], x1\n        urhadd          v1.8h,  v1.8h,  v3.8h\n        subs            w4,  w4,  #2\n        st1             {v0.8h},  [x5], x1\n        st1             {v1.8h},  [x5], x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:3", "text": "st1             {v0.8h, v1.8h},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg8_16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.8h},  [x2], x3\n        ld1             {v0.8h},  [x0], x1\n        ld1             {v3.8h},  [x2], x3\n        urhadd          v0.8h,  v0.8h,  v2.8h\n        ld1             {v1.8h},  [x0], x1\n        urhadd          v1.8h,  v1.8h,  v3.8h\n        subs            w4,  w4,  #2\n        st1             {v0.8h},  [x5], x1\n        st1             {v1.8h},  [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg4_16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.4h},  [x2], x3\n        ld1             {v0.4h},  [x0], x1\n        ld1             {v3.4h},  [x2], x3\n        urhadd          v0.4h,  v0.4h,  v2.4h\n        ld1             {v1.4h},  [x0], x1\n        urhadd          v1.4h,  v1.4h,  v3.4h\n        subs            w4,  w4,  #2\n        st1             {v0.4h},  [x5], x1\n        st1             {v1.8b},  [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\n\n// Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n// for size >= 16), and multiply-accumulate into dst1 and dst5 (or\n// dst1-dst2 and dst5-dst6 for size >= 8 and dst1-dst4 and dst5-dst8\n// for size >= 16)\n.macro extmlal dst1, dst2, dst3, dst4, dst5, dst6, dst7, dst8, src1, src2, src3, src4, src5, src6, offset, size\n        ext             v20.16b, \\src1\\().16b, \\src2\\().16b, #(2*\\offset)\n        ext             v22.16b, \\src4\\().16b, \\src5\\().16b, #(2*\\offset)\n        smlal           \\dst1\\().4s, v20.4h, v0.h[\\offset]\n        smlal           \\dst5\\().4s, v22.4h, v0.h[\\offset]\n.if \\size >= 16\n        ext             v21.16b, \\src2\\().16b, \\src3\\().16b, #(2*\\offset)\n        ext             v23.16b, \\src5\\().16b, \\src6\\().16b, #(2*\\offset)\n.endif\n.if \\size >= 8\n        smlal2          \\dst2\\().4s, v20.8h, v0.h[\\offset]\n        smlal2          \\dst6\\().4s, v22.8h, v0.h[\\offset]\n.endif\n.if \\size >= 16\n        smlal           \\dst3\\().4s, v21.4h, v0.h[\\offset]\n        smlal           \\dst7\\().4s, v23.4h, v0.h[\\offset]\n        smlal2          \\dst4\\().4s, v21.8h, v0.h[\\offset]\n        smlal2          \\dst8\\().4s, v23.8h, v0.h[\\offset]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:4", "text": "// dst1-dst2 and dst5-dst6 for size >= 8 and dst1-dst4 and dst5-dst8\n// for size >= 16)\n.macro extmlal dst1, dst2, dst3, dst4, dst5, dst6, dst7, dst8, src1, src2, src3, src4, src5, src6, offset, size\n        ext             v20.16b, \\src1\\().16b, \\src2\\().16b, #(2*\\offset)\n        ext             v22.16b, \\src4\\().16b, \\src5\\().16b, #(2*\\offset)\n        smlal           \\dst1\\().4s, v20.4h, v0.h[\\offset]\n        smlal           \\dst5\\().4s, v22.4h, v0.h[\\offset]\n.if \\size >= 16\n        ext             v21.16b, \\src2\\().16b, \\src3\\().16b, #(2*\\offset)\n        ext             v23.16b, \\src5\\().16b, \\src6\\().16b, #(2*\\offset)\n.endif\n.if \\size >= 8\n        smlal2          \\dst2\\().4s, v20.8h, v0.h[\\offset]\n        smlal2          \\dst6\\().4s, v22.8h, v0.h[\\offset]\n.endif\n.if \\size >= 16\n        smlal           \\dst3\\().4s, v21.4h, v0.h[\\offset]\n        smlal           \\dst7\\().4s, v23.4h, v0.h[\\offset]\n        smlal2          \\dst4\\().4s, v21.8h, v0.h[\\offset]\n        smlal2          \\dst8\\().4s, v23.8h, v0.h[\\offset]\n.endif\n.endm\n\n\n// Instantiate a horizontal filter function for the given size.\n// This can work on 4, 8 or 16 pixels in parallel; for larger\n// widths it will do 16 pixels at a time and loop horizontally.\n// The actual width (in bytes) is passed in x5, the height in w4 and\n// the filter coefficients in x9.\n.macro do_8tap_h type, size\nfunction \\type\\()_8tap_\\size\\()h\n        sub             x2,  x2,  #6\n        add             x6,  x0,  x1\n        add             x7,  x2,  x3\n        add             x1,  x1,  x1\n        add             x3,  x3,  x3\n        // Only size >= 16 loops horizontally and needs\n        // reduced dst stride\n.if \\size >= 16\n        sub             x1,  x1,  x5\n.endif\n        // size >= 16 loads two qwords and increments r2,\n        // for size 4/8 it's enough with one qword and no\n        // postincrement\n.if \\size >= 16\n        sub             x3,  x3,  x5\n        sub             x3,  x3,  #16\n.endif\n        // Load the filter vector\n        ld1             {v0.8h},  [x9]\n1:\n.if \\size >= 16\n        mov             x9,  x5\n.endif\n        // Load src\n.if \\size >= 16\n        ld1             {v5.8h,  v6.8h,  v7.8h},  [x2], #48\n        ld1             {v16.8h, v17.8h, v18.8h}, [x7], #48\n.else\n        ld1             {v5.8h,  v6.8h},  [x2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:5", "text": ".endif\n        // size >= 16 loads two qwords and increments r2,\n        // for size 4/8 it's enough with one qword and no\n        // postincrement\n.if \\size >= 16\n        sub             x3,  x3,  x5\n        sub             x3,  x3,  #16\n.endif\n        // Load the filter vector\n        ld1             {v0.8h},  [x9]\n1:\n.if \\size >= 16\n        mov             x9,  x5\n.endif\n        // Load src\n.if \\size >= 16\n        ld1             {v5.8h,  v6.8h,  v7.8h},  [x2], #48\n        ld1             {v16.8h, v17.8h, v18.8h}, [x7], #48\n.else\n        ld1             {v5.8h,  v6.8h},  [x2]\n        ld1             {v16.8h, v17.8h}, [x7]\n.endif\n2:\n\n        smull           v1.4s,  v5.4h,  v0.h[0]\n        smull           v24.4s, v16.4h, v0.h[0]\n.if \\size >= 8\n        smull2          v2.4s,  v5.8h,  v0.h[0]\n        smull2          v25.4s, v16.8h, v0.h[0]\n.endif\n.if \\size >= 16\n        smull           v3.4s,  v6.4h,  v0.h[0]\n        smull           v26.4s, v17.4h, v0.h[0]\n        smull2          v4.4s,  v6.8h,  v0.h[0]\n        smull2          v27.4s, v17.8h, v0.h[0]\n.endif\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 1, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 2, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 3, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 4, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 5, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 6, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 7, \\size\n\n        // Round, shift and saturate\n        // The sqrshrun takes care of clamping negative values to zero, but\n        // we manually need to do umin with the max pixel value.\n        sqrshrun        v1.4h,  v1.4s,  #7\n        sqrshrun        v24.4h, v24.4s, #7\n.if \\size >= 8\n        sqrshrun2       v1.8h,  v2.4s,  #7\n        sqrshrun2       v24.8h, v25.4s, #7\n        umin            v1.8h,  v1.8h,  v31.8h\n        umin            v24.8h, v24.8h, v31.8h\n.if \\size >= 16\n        sqrshrun        v2.4h,  v3.4s,  #7\n        sqrshrun        v25.4h, v26.4s, #7\n        sqrshrun2       v2.8h,  v4.4s,  #7\n        sqrshrun2       v25.8h, v27.4s, #7\n        umin            v2.8h,  v2.8h,  v31.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:6", "text": "extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 5, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 6, \\size\n        extmlal         v1,  v2,  v3,  v4,  v24, v25, v26, v27, v5,  v6,  v7,  v16, v17, v18, 7, \\size\n\n        // Round, shift and saturate\n        // The sqrshrun takes care of clamping negative values to zero, but\n        // we manually need to do umin with the max pixel value.\n        sqrshrun        v1.4h,  v1.4s,  #7\n        sqrshrun        v24.4h, v24.4s, #7\n.if \\size >= 8\n        sqrshrun2       v1.8h,  v2.4s,  #7\n        sqrshrun2       v24.8h, v25.4s, #7\n        umin            v1.8h,  v1.8h,  v31.8h\n        umin            v24.8h, v24.8h, v31.8h\n.if \\size >= 16\n        sqrshrun        v2.4h,  v3.4s,  #7\n        sqrshrun        v25.4h, v26.4s, #7\n        sqrshrun2       v2.8h,  v4.4s,  #7\n        sqrshrun2       v25.8h, v27.4s, #7\n        umin            v2.8h,  v2.8h,  v31.8h\n        umin            v25.8h, v25.8h, v31.8h\n.endif\n.else\n        umin            v1.4h,  v1.4h,  v31.4h\n        umin            v24.4h, v24.4h, v31.4h\n.endif\n        // Average\n.ifc \\type,avg\n.if \\size >= 16\n        ld1             {v3.8h,  v4.8h},  [x0]\n        ld1             {v29.8h, v30.8h}, [x6]\n        urhadd          v1.8h,  v1.8h,  v3.8h\n        urhadd          v2.8h,  v2.8h,  v4.8h\n        urhadd          v24.8h, v24.8h, v29.8h\n        urhadd          v25.8h, v25.8h, v30.8h\n.elseif \\size >= 8\n        ld1             {v3.8h},  [x0]\n        ld1             {v4.8h},  [x6]\n        urhadd          v1.8h,  v1.8h,  v3.8h\n        urhadd          v24.8h, v24.8h, v4.8h\n.else\n        ld1             {v3.4h},  [x0]\n        ld1             {v4.4h},  [x6]\n        urhadd          v1.4h,  v1.4h,  v3.4h\n        urhadd          v24.4h, v24.4h, v4.4h\n.endif\n.endif\n        // Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            x9,  x9,  #32\n        st1             {v1.8h,  v2.8h},  [x0], #32\n        st1             {v24.8h, v25.8h}, [x6], #32\n        b.eq            3f\n        mov             v5.16b,  v7.16b\n        mov             v16.16b, v18.16b\n        ld1             {v6.8h,  v7.8h},  [x2], #32\n        ld1             {v17.8h, v18.8h}, [x7], #32\n        b               2b\n.elseif \\size == 8\n        st1             {v1.8h},  [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:7", "text": ".else\n        ld1             {v3.4h},  [x0]\n        ld1             {v4.4h},  [x6]\n        urhadd          v1.4h,  v1.4h,  v3.4h\n        urhadd          v24.4h, v24.4h, v4.4h\n.endif\n.endif\n        // Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            x9,  x9,  #32\n        st1             {v1.8h,  v2.8h},  [x0], #32\n        st1             {v24.8h, v25.8h}, [x6], #32\n        b.eq            3f\n        mov             v5.16b,  v7.16b\n        mov             v16.16b, v18.16b\n        ld1             {v6.8h,  v7.8h},  [x2], #32\n        ld1             {v17.8h, v18.8h}, [x7], #32\n        b               2b\n.elseif \\size == 8\n        st1             {v1.8h},  [x0]\n        st1             {v24.8h}, [x6]\n.else // \\size == 4\n        st1             {v1.4h},  [x0]\n        st1             {v24.4h}, [x6]\n.endif\n3:\n        // Loop vertically\n        add             x0,  x0,  x1\n        add             x6,  x6,  x1\n        add             x2,  x2,  x3\n        add             x7,  x7,  x3\n        subs            w4,  w4,  #2\n        b.ne            1b\n        ret\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size\ndo_8tap_h avg, \\size\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_\\bpp\\()_neon, export=1\n        mvni            v31.8h, #((0xff << (\\bpp - 8)) & 0xff), lsl #8\n        movrel          x6,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w5,  #8\n        add             x9,  x6,  w5, uxtw #4\n        mov             x5,  #2*\\size\n.if \\size >= 16\n        b               \\type\\()_8tap_16h\n.else\n        b               \\type\\()_8tap_\\size\\()h\n.endif\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:8", "text": ".endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_\\bpp\\()_neon, export=1\n        mvni            v31.8h, #((0xff << (\\bpp - 8)) & 0xff), lsl #8\n        movrel          x6,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w5,  #8\n        add             x9,  x6,  w5, uxtw #4\n        mov             x5,  #2*\\size\n.if \\size >= 16\n        b               \\type\\()_8tap_16h\n.else\n        b               \\type\\()_8tap_\\size\\()h\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size, bpp\ndo_8tap_h_func put, regular, 1, \\size, \\bpp\ndo_8tap_h_func avg, regular, 1, \\size, \\bpp\ndo_8tap_h_func put, sharp,   2, \\size, \\bpp\ndo_8tap_h_func avg, sharp,   2, \\size, \\bpp\ndo_8tap_h_func put, smooth,  0, \\size, \\bpp\ndo_8tap_h_func avg, smooth,  0, \\size, \\bpp\n.endm\n\n.macro do_8tap_h_filters_bpp bpp\ndo_8tap_h_filters 64, \\bpp\ndo_8tap_h_filters 32, \\bpp\ndo_8tap_h_filters 16, \\bpp\ndo_8tap_h_filters 8,  \\bpp\ndo_8tap_h_filters 4,  \\bpp\n.endm\n\ndo_8tap_h_filters_bpp 10\ndo_8tap_h_filters_bpp 12\n\n\n// Vertical filters\n\n// Round, shift and saturate and store reg1-reg4\n.macro do_store4 reg1, reg2, reg3, reg4, tmp1, tmp2, tmp3, tmp4, minreg, type\n        sqrshrun        \\reg1\\().4h,  \\reg1\\().4s, #7\n        sqrshrun        \\reg2\\().4h,  \\reg2\\().4s, #7\n        sqrshrun        \\reg3\\().4h,  \\reg3\\().4s, #7\n        sqrshrun        \\reg4\\().4h,  \\reg4\\().4s, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().4h},  [x7], x1\n        ld1             {\\tmp2\\().4h},  [x7], x1\n        ld1             {\\tmp3\\().4h},  [x7], x1\n        ld1             {\\tmp4\\().4h},  [x7], x1\n.endif\n        umin            \\reg1\\().4h,  \\reg1\\().4h,  \\minreg\\().4h\n        umin            \\reg2\\().4h,  \\reg2\\().4h,  \\minreg\\().4h\n        umin            \\reg3\\().4h,  \\reg3\\().4h,  \\minreg\\().4h\n        umin            \\reg4\\().4h,  \\reg4\\().4h,  \\minreg\\().4h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:9", "text": "// Vertical filters\n\n// Round, shift and saturate and store reg1-reg4\n.macro do_store4 reg1, reg2, reg3, reg4, tmp1, tmp2, tmp3, tmp4, minreg, type\n        sqrshrun        \\reg1\\().4h,  \\reg1\\().4s, #7\n        sqrshrun        \\reg2\\().4h,  \\reg2\\().4s, #7\n        sqrshrun        \\reg3\\().4h,  \\reg3\\().4s, #7\n        sqrshrun        \\reg4\\().4h,  \\reg4\\().4s, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().4h},  [x7], x1\n        ld1             {\\tmp2\\().4h},  [x7], x1\n        ld1             {\\tmp3\\().4h},  [x7], x1\n        ld1             {\\tmp4\\().4h},  [x7], x1\n.endif\n        umin            \\reg1\\().4h,  \\reg1\\().4h,  \\minreg\\().4h\n        umin            \\reg2\\().4h,  \\reg2\\().4h,  \\minreg\\().4h\n        umin            \\reg3\\().4h,  \\reg3\\().4h,  \\minreg\\().4h\n        umin            \\reg4\\().4h,  \\reg4\\().4h,  \\minreg\\().4h\n.ifc \\type,avg\n        urhadd          \\reg1\\().4h,  \\reg1\\().4h,  \\tmp1\\().4h\n        urhadd          \\reg2\\().4h,  \\reg2\\().4h,  \\tmp2\\().4h\n        urhadd          \\reg3\\().4h,  \\reg3\\().4h,  \\tmp3\\().4h\n        urhadd          \\reg4\\().4h,  \\reg4\\().4h,  \\tmp4\\().4h\n.endif\n        st1             {\\reg1\\().4h},  [x0], x1\n        st1             {\\reg2\\().4h},  [x0], x1\n        st1             {\\reg3\\().4h},  [x0], x1\n        st1             {\\reg4\\().4h},  [x0], x1\n.endm\n\n// Round, shift and saturate and store reg1-8, where\n// reg1-2, reg3-4 etc pairwise correspond to 4 rows.\n.macro do_store8 reg1, reg2, reg3, reg4, reg5, reg6, reg7, reg8, minreg, type\n        sqrshrun        \\reg1\\().4h,  \\reg1\\().4s, #7\n        sqrshrun2       \\reg1\\().8h,  \\reg2\\().4s, #7\n        sqrshrun        \\reg2\\().4h,  \\reg3\\().4s, #7\n        sqrshrun2       \\reg2\\().8h,  \\reg4\\().4s, #7\n        sqrshrun        \\reg3\\().4h,  \\reg5\\().4s, #7\n        sqrshrun2       \\reg3\\().8h,  \\reg6\\().4s, #7\n        sqrshrun        \\reg4\\().4h,  \\reg7\\().4s, #7\n        sqrshrun2       \\reg4\\().8h,  \\reg8\\().4s, #7\n.ifc \\type,avg\n        ld1             {\\reg5\\().8h},  [x7], x1\n        ld1             {\\reg6\\().8h},  [x7], x1\n        ld1             {\\reg7\\().8h},  [x7], x1\n        ld1             {\\reg8\\().8h},  [x7], x1\n.endif\n        umin            \\reg1\\().8h,  \\reg1\\().8h,  \\minreg\\().8h\n        umin            \\reg2\\().8h,  \\reg2\\().8h,  \\minreg\\().8h\n        umin            \\reg3\\().8h,  \\reg3\\().8h,  \\minreg\\().8h\n        umin            \\reg4\\().8h,  \\reg4\\().8h,  \\minreg\\().8h\n.ifc \\type,avg\n        urhadd          \\reg1\\().8h,  \\reg1\\().8h,  \\reg5\\().8h\n        urhadd          \\reg2\\().8h,  \\reg2\\().8h,  \\reg6\\().8h\n        urhadd          \\reg3\\().8h,  \\reg3\\().8h,  \\reg7\\().8h\n        urhadd          \\reg4\\().8h,  \\reg4\\().8h,  \\reg8\\().8h\n.endif\n        st1             {\\reg1\\().8h},  [x0], x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:10", "text": "sqrshrun2       \\reg3\\().8h,  \\reg6\\().4s, #7\n        sqrshrun        \\reg4\\().4h,  \\reg7\\().4s, #7\n        sqrshrun2       \\reg4\\().8h,  \\reg8\\().4s, #7\n.ifc \\type,avg\n        ld1             {\\reg5\\().8h},  [x7], x1\n        ld1             {\\reg6\\().8h},  [x7], x1\n        ld1             {\\reg7\\().8h},  [x7], x1\n        ld1             {\\reg8\\().8h},  [x7], x1\n.endif\n        umin            \\reg1\\().8h,  \\reg1\\().8h,  \\minreg\\().8h\n        umin            \\reg2\\().8h,  \\reg2\\().8h,  \\minreg\\().8h\n        umin            \\reg3\\().8h,  \\reg3\\().8h,  \\minreg\\().8h\n        umin            \\reg4\\().8h,  \\reg4\\().8h,  \\minreg\\().8h\n.ifc \\type,avg\n        urhadd          \\reg1\\().8h,  \\reg1\\().8h,  \\reg5\\().8h\n        urhadd          \\reg2\\().8h,  \\reg2\\().8h,  \\reg6\\().8h\n        urhadd          \\reg3\\().8h,  \\reg3\\().8h,  \\reg7\\().8h\n        urhadd          \\reg4\\().8h,  \\reg4\\().8h,  \\reg8\\().8h\n.endif\n        st1             {\\reg1\\().8h},  [x0], x1\n        st1             {\\reg2\\().8h},  [x0], x1\n        st1             {\\reg3\\().8h},  [x0], x1\n        st1             {\\reg4\\().8h},  [x0], x1\n.endm\n\n// Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n// (src1-src8 into dst1, src2-src9 into dst2).\n.macro convolve4 dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, tmp1, tmp2\n        smull           \\dst1\\().4s, \\src1\\().4h, v0.h[0]\n        smull           \\dst2\\().4s, \\src2\\().4h, v0.h[0]\n        smull           \\tmp1\\().4s, \\src2\\().4h, v0.h[1]\n        smull           \\tmp2\\().4s, \\src3\\().4h, v0.h[1]\n        smlal           \\dst1\\().4s, \\src3\\().4h, v0.h[2]\n        smlal           \\dst2\\().4s, \\src4\\().4h, v0.h[2]\n        smlal           \\tmp1\\().4s, \\src4\\().4h, v0.h[3]\n        smlal           \\tmp2\\().4s, \\src5\\().4h, v0.h[3]\n        smlal           \\dst1\\().4s, \\src5\\().4h, v0.h[4]\n        smlal           \\dst2\\().4s, \\src6\\().4h, v0.h[4]\n        smlal           \\tmp1\\().4s, \\src6\\().4h, v0.h[5]\n        smlal           \\tmp2\\().4s, \\src7\\().4h, v0.h[5]\n        smlal           \\dst1\\().4s, \\src7\\().4h, v0.h[6]\n        smlal           \\dst2\\().4s, \\src8\\().4h, v0.h[6]\n        smlal           \\tmp1\\().4s, \\src8\\().4h, v0.h[7]\n        smlal           \\tmp2\\().4s, \\src9\\().4h, v0.h[7]\n        add             \\dst1\\().4s, \\dst1\\().4s, \\tmp1\\().4s\n        add             \\dst2\\().4s, \\dst2\\().4s, \\tmp2\\().4s\n.endm\n\n// Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst4\n// (src1-src8 into dst1-dst2, src2-src9 into dst3-dst4).\n.macro convolve8 dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, src7, src8, src9\n        smull           \\dst1\\().4s, \\src1\\().4h, v0.h[0]\n        smull2          \\dst2\\().4s, \\src1\\().8h, v0.h[0]\n        smull           \\dst3\\().4s, \\src2\\().4h, v0.h[0]\n        smull2          \\dst4\\().4s, \\src2\\().8h, v0.h[0]\n        smlal           \\dst1\\().4s, \\src2\\().4h, v0.h[1]\n        smlal2          \\dst2\\().4s, \\src2\\().8h, v0.h[1]\n        smlal           \\dst3\\().4s, \\src3\\().4h, v0.h[1]\n        smlal2          \\dst4\\().4s, \\src3\\().8h, v0.h[1]\n        smlal           \\dst1\\().4s, \\src3\\().4h, v0.h[2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:11", "text": "smlal           \\dst1\\().4s, \\src7\\().4h, v0.h[6]\n        smlal           \\dst2\\().4s, \\src8\\().4h, v0.h[6]\n        smlal           \\tmp1\\().4s, \\src8\\().4h, v0.h[7]\n        smlal           \\tmp2\\().4s, \\src9\\().4h, v0.h[7]\n        add             \\dst1\\().4s, \\dst1\\().4s, \\tmp1\\().4s\n        add             \\dst2\\().4s, \\dst2\\().4s, \\tmp2\\().4s\n.endm\n\n// Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst4\n// (src1-src8 into dst1-dst2, src2-src9 into dst3-dst4).\n.macro convolve8 dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, src7, src8, src9\n        smull           \\dst1\\().4s, \\src1\\().4h, v0.h[0]\n        smull2          \\dst2\\().4s, \\src1\\().8h, v0.h[0]\n        smull           \\dst3\\().4s, \\src2\\().4h, v0.h[0]\n        smull2          \\dst4\\().4s, \\src2\\().8h, v0.h[0]\n        smlal           \\dst1\\().4s, \\src2\\().4h, v0.h[1]\n        smlal2          \\dst2\\().4s, \\src2\\().8h, v0.h[1]\n        smlal           \\dst3\\().4s, \\src3\\().4h, v0.h[1]\n        smlal2          \\dst4\\().4s, \\src3\\().8h, v0.h[1]\n        smlal           \\dst1\\().4s, \\src3\\().4h, v0.h[2]\n        smlal2          \\dst2\\().4s, \\src3\\().8h, v0.h[2]\n        smlal           \\dst3\\().4s, \\src4\\().4h, v0.h[2]\n        smlal2          \\dst4\\().4s, \\src4\\().8h, v0.h[2]\n        smlal           \\dst1\\().4s, \\src4\\().4h, v0.h[3]\n        smlal2          \\dst2\\().4s, \\src4\\().8h, v0.h[3]\n        smlal           \\dst3\\().4s, \\src5\\().4h, v0.h[3]\n        smlal2          \\dst4\\().4s, \\src5\\().8h, v0.h[3]\n        smlal           \\dst1\\().4s, \\src5\\().4h, v0.h[4]\n        smlal2          \\dst2\\().4s, \\src5\\().8h, v0.h[4]\n        smlal           \\dst3\\().4s, \\src6\\().4h, v0.h[4]\n        smlal2          \\dst4\\().4s, \\src6\\().8h, v0.h[4]\n        smlal           \\dst1\\().4s, \\src6\\().4h, v0.h[5]\n        smlal2          \\dst2\\().4s, \\src6\\().8h, v0.h[5]\n        smlal           \\dst3\\().4s, \\src7\\().4h, v0.h[5]\n        smlal2          \\dst4\\().4s, \\src7\\().8h, v0.h[5]\n        smlal           \\dst1\\().4s, \\src7\\().4h, v0.h[6]\n        smlal2          \\dst2\\().4s, \\src7\\().8h, v0.h[6]\n        smlal           \\dst3\\().4s, \\src8\\().4h, v0.h[6]\n        smlal2          \\dst4\\().4s, \\src8\\().8h, v0.h[6]\n        smlal           \\dst1\\().4s, \\src8\\().4h, v0.h[7]\n        smlal2          \\dst2\\().4s, \\src8\\().8h, v0.h[7]\n        smlal           \\dst3\\().4s, \\src9\\().4h, v0.h[7]\n        smlal2          \\dst4\\().4s, \\src9\\().8h, v0.h[7]\n.endm\n\n// Instantiate a vertical filter function for filtering 8 pixels at a time.\n// The height is passed in x4, the width in x5 and the filter coefficients\n// in x6.\n.macro do_8tap_8v type\nfunction \\type\\()_8tap_8v\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n1:\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n        mov             x6,  x4\n\n        ld1             {v17.8h}, [x2], x3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:12", "text": "smlal2          \\dst2\\().4s, \\src8\\().8h, v0.h[7]\n        smlal           \\dst3\\().4s, \\src9\\().4h, v0.h[7]\n        smlal2          \\dst4\\().4s, \\src9\\().8h, v0.h[7]\n.endm\n\n// Instantiate a vertical filter function for filtering 8 pixels at a time.\n// The height is passed in x4, the width in x5 and the filter coefficients\n// in x6.\n.macro do_8tap_8v type\nfunction \\type\\()_8tap_8v\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n1:\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n        mov             x6,  x4\n\n        ld1             {v17.8h}, [x2], x3\n        ld1             {v18.8h}, [x2], x3\n        ld1             {v19.8h}, [x2], x3\n        ld1             {v20.8h}, [x2], x3\n        ld1             {v21.8h}, [x2], x3\n        ld1             {v22.8h}, [x2], x3\n        ld1             {v23.8h}, [x2], x3\n2:\n        ld1             {v24.8h}, [x2], x3\n        ld1             {v25.8h}, [x2], x3\n        ld1             {v26.8h}, [x2], x3\n        ld1             {v27.8h}, [x2], x3\n\n        convolve8       v2,  v3,  v4,  v5,  v17, v18, v19, v20, v21, v22, v23, v24, v25\n        convolve8       v6,  v7,  v30, v31, v19, v20, v21, v22, v23, v24, v25, v26, v27\n        do_store8       v2,  v3,  v4,  v5,  v6,  v7,  v30, v31, v1,  \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        ld1             {v16.8h}, [x2], x3\n        ld1             {v17.8h}, [x2], x3\n        ld1             {v18.8h}, [x2], x3\n        ld1             {v19.8h}, [x2], x3\n        convolve8       v2,  v3,  v4,  v5,  v21, v22, v23, v24, v25, v26, v27, v16, v17\n        convolve8       v6,  v7,  v20, v21, v23, v24, v25, v26, v27, v16, v17, v18, v19\n        do_store8       v2,  v3,  v4,  v5,  v6,  v7,  v20, v21, v1,  \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        ld1             {v20.8h}, [x2], x3\n        ld1             {v21.8h}, [x2], x3\n        ld1             {v22.8h}, [x2], x3\n        ld1             {v23.8h}, [x2], x3\n        convolve8       v2,  v3,  v4,  v5,  v25, v26, v27, v16, v17, v18, v19, v20, v21\n        convolve8       v6,  v7,  v24, v25, v27, v16, v17, v18, v19, v20, v21, v22, v23\n        do_store8       v2,  v3,  v4,  v5,  v6,  v7,  v24, v25, v1,  \\type\n\n        subs            x6,  x6,  #4\n        b.ne            2b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:13", "text": "ld1             {v17.8h}, [x2], x3\n        ld1             {v18.8h}, [x2], x3\n        ld1             {v19.8h}, [x2], x3\n        convolve8       v2,  v3,  v4,  v5,  v21, v22, v23, v24, v25, v26, v27, v16, v17\n        convolve8       v6,  v7,  v20, v21, v23, v24, v25, v26, v27, v16, v17, v18, v19\n        do_store8       v2,  v3,  v4,  v5,  v6,  v7,  v20, v21, v1,  \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        ld1             {v20.8h}, [x2], x3\n        ld1             {v21.8h}, [x2], x3\n        ld1             {v22.8h}, [x2], x3\n        ld1             {v23.8h}, [x2], x3\n        convolve8       v2,  v3,  v4,  v5,  v25, v26, v27, v16, v17, v18, v19, v20, v21\n        convolve8       v6,  v7,  v24, v25, v27, v16, v17, v18, v19, v20, v21, v22, v23\n        do_store8       v2,  v3,  v4,  v5,  v6,  v7,  v24, v25, v1,  \\type\n\n        subs            x6,  x6,  #4\n        b.ne            2b\n\n8:\n        subs            x5,  x5,  #8\n        b.eq            9f\n        // x0 -= h * dst_stride\n        msub            x0,  x1,  x4, x0\n        // x2 -= h * src_stride\n        msub            x2,  x3,  x4, x2\n        // x2 -= 8 * src_stride\n        sub             x2,  x2,  x3, lsl #3\n        // x2 += 1 * src_stride\n        add             x2,  x2,  x3\n        add             x2,  x2,  #16\n        add             x0,  x0,  #16\n        b               1b\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_8v put\ndo_8tap_8v avg\n\n\n// Instantiate a vertical filter function for filtering a 4 pixels wide\n// slice. This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type\nfunction \\type\\()_8tap_4v\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n\n        ld1             {v16.4h}, [x2], x3\n        ld1             {v17.4h}, [x2], x3\n        ld1             {v18.4h}, [x2], x3\n        ld1             {v19.4h}, [x2], x3\n        ld1             {v20.4h}, [x2], x3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:14", "text": "do_8tap_8v put\ndo_8tap_8v avg\n\n\n// Instantiate a vertical filter function for filtering a 4 pixels wide\n// slice. This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type\nfunction \\type\\()_8tap_4v\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n\n        ld1             {v16.4h}, [x2], x3\n        ld1             {v17.4h}, [x2], x3\n        ld1             {v18.4h}, [x2], x3\n        ld1             {v19.4h}, [x2], x3\n        ld1             {v20.4h}, [x2], x3\n        ld1             {v21.4h}, [x2], x3\n        ld1             {v22.4h}, [x2], x3\n        ld1             {v23.4h}, [x2], x3\n        ld1             {v24.4h}, [x2], x3\n        ld1             {v25.4h}, [x2], x3\n        ld1             {v26.4h}, [x2], x3\n\n        convolve4       v2,  v3,  v16, v17, v18, v19, v20, v21, v22, v23, v24, v30, v31\n        convolve4       v4,  v5,  v18, v19, v20, v21, v22, v23, v24, v25, v26, v30, v31\n        do_store4       v2,  v3,  v4,  v5,  v28, v29, v30, v31, v1,  \\type\n\n        subs            x4,  x4,  #4\n        b.eq            9f\n\n        ld1             {v27.4h}, [x2], x3\n        ld1             {v28.4h}, [x2], x3\n        ld1             {v29.4h}, [x2], x3\n        ld1             {v30.4h}, [x2], x3\n\n        convolve4       v2,  v3,  v20, v21, v22, v23, v24, v25, v26, v27, v28, v16, v17\n        convolve4       v4,  v5,  v22, v23, v24, v25, v26, v27, v28, v29, v30, v16, v17\n        do_store4       v2,  v3,  v4,  v5,  v16, v17, v18, v19, v1,  \\type\n\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_4v put\ndo_8tap_4v avg\n\n\n.macro do_8tap_v_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_\\bpp\\()_neon, export=1\n        uxtw            x4,  w4\n        mvni            v1.8h, #((0xff << (\\bpp - 8)) & 0xff), lsl #8\n        movrel          x5,  X(ff_vp9_subpel_filters), 256*\\offset\n        add             x6,  x5,  w6, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_16bpp_neon.S:15", "text": "convolve4       v4,  v5,  v22, v23, v24, v25, v26, v27, v28, v29, v30, v16, v17\n        do_store4       v2,  v3,  v4,  v5,  v16, v17, v18, v19, v1,  \\type\n\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_4v put\ndo_8tap_4v avg\n\n\n.macro do_8tap_v_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_\\bpp\\()_neon, export=1\n        uxtw            x4,  w4\n        mvni            v1.8h, #((0xff << (\\bpp - 8)) & 0xff), lsl #8\n        movrel          x5,  X(ff_vp9_subpel_filters), 256*\\offset\n        add             x6,  x5,  w6, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 8\n        b               \\type\\()_8tap_8v\n.else\n        b               \\type\\()_8tap_4v\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size, bpp\ndo_8tap_v_func put, regular, 1, \\size, \\bpp\ndo_8tap_v_func avg, regular, 1, \\size, \\bpp\ndo_8tap_v_func put, sharp,   2, \\size, \\bpp\ndo_8tap_v_func avg, sharp,   2, \\size, \\bpp\ndo_8tap_v_func put, smooth,  0, \\size, \\bpp\ndo_8tap_v_func avg, smooth,  0, \\size, \\bpp\n.endm\n\n.macro do_8tap_v_filters_bpp bpp\ndo_8tap_v_filters 64, \\bpp\ndo_8tap_v_filters 32, \\bpp\ndo_8tap_v_filters 16, \\bpp\ndo_8tap_v_filters 8,  \\bpp\ndo_8tap_v_filters 4,  \\bpp\n.endm\n\ndo_8tap_v_filters_bpp 10\ndo_8tap_v_filters_bpp 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_16bpp_neon.S", "line_start": 561, "line_end": 606}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_aarch64.S:1", "text": "/*\n * Copyright (c) 2016 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// All public functions in this file have the following signature:\n// typedef void (*vp9_mc_func)(uint8_t *dst, ptrdiff_t dst_stride,\n//                            const uint8_t *ref, ptrdiff_t ref_stride,\n//                            int h, int mx, int my);\n\nfunction ff_vp9_copy128_aarch64, export=1\n1:\n        ldp             x5,  x6,  [x2]\n        ldp             x7,  x8,  [x2, #16]\n        stp             x5,  x6,  [x0]\n        ldp             x9,  x10, [x2, #32]\n        stp             x7,  x8,  [x0, #16]\n        subs            w4,  w4,  #1\n        ldp             x11, x12, [x2, #48]\n        stp             x9,  x10, [x0, #32]\n        stp             x11, x12, [x0, #48]\n        ldp             x5,  x6,  [x2, #64]\n        ldp             x7,  x8,  [x2, #80]\n        stp             x5,  x6,  [x0, #64]\n        ldp             x9,  x10, [x2, #96]\n        stp             x7,  x8,  [x0, #80]\n        ldp             x11, x12, [x2, #112]\n        stp             x9,  x10, [x0, #96]\n        stp             x11, x12, [x0, #112]\n        add             x2,  x2,  x3\n        add             x0,  x0,  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy64_aarch64, export=1\n1:\n        ldp             x5,  x6,  [x2]\n        ldp             x7,  x8,  [x2, #16]\n        stp             x5,  x6,  [x0]\n        ldp             x9,  x10, [x2, #32]\n        stp             x7,  x8,  [x0, #16]\n        subs            w4,  w4,  #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_aarch64.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_aarch64.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_aarch64.S:2", "text": "stp             x5,  x6,  [x0, #64]\n        ldp             x9,  x10, [x2, #96]\n        stp             x7,  x8,  [x0, #80]\n        ldp             x11, x12, [x2, #112]\n        stp             x9,  x10, [x0, #96]\n        stp             x11, x12, [x0, #112]\n        add             x2,  x2,  x3\n        add             x0,  x0,  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy64_aarch64, export=1\n1:\n        ldp             x5,  x6,  [x2]\n        ldp             x7,  x8,  [x2, #16]\n        stp             x5,  x6,  [x0]\n        ldp             x9,  x10, [x2, #32]\n        stp             x7,  x8,  [x0, #16]\n        subs            w4,  w4,  #1\n        ldp             x11, x12, [x2, #48]\n        stp             x9,  x10, [x0, #32]\n        stp             x11, x12, [x0, #48]\n        add             x2,  x2,  x3\n        add             x0,  x0,  x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy32_aarch64, export=1\n1:\n        ldp             x5,  x6,  [x2]\n        ldp             x7,  x8,  [x2, #16]\n        stp             x5,  x6,  [x0]\n        subs            w4,  w4,  #1\n        stp             x7,  x8,  [x0, #16]\n        add             x2,  x2,  x3\n        add             x0,  x0,  x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_aarch64.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_aarch64.S", "line_start": 41, "line_end": 81}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:1", "text": "/*\n * Copyright (c) 2016 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// All public functions in this file have the following signature:\n// typedef void (*vp9_mc_func)(uint8_t *dst, ptrdiff_t dst_stride,\n//                            const uint8_t *ref, ptrdiff_t ref_stride,\n//                            int h, int mx, int my);\n\nfunction ff_vp9_avg64_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v4.16b,  v5.16b,  v6.16b,  v7.16b},  [x2], x3\n        ld1             {v0.16b,  v1.16b,  v2.16b,  v3.16b},  [x0], x1\n        ld1             {v20.16b, v21.16b, v22.16b, v23.16b}, [x2], x3\n        urhadd          v0.16b,  v0.16b,  v4.16b\n        urhadd          v1.16b,  v1.16b,  v5.16b\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x0], x1\n        urhadd          v2.16b,  v2.16b,  v6.16b\n        urhadd          v3.16b,  v3.16b,  v7.16b\n        subs            w4,  w4,  #2\n        urhadd          v16.16b, v16.16b, v20.16b\n        urhadd          v17.16b, v17.16b, v21.16b\n        st1             {v0.16b,  v1.16b,  v2.16b,  v3.16b},  [x5], x1\n        urhadd          v18.16b, v18.16b, v22.16b\n        urhadd          v19.16b, v19.16b, v23.16b\n        st1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg32_neon, export=1\n1:\n        ld1             {v2.16b, v3.16b},  [x2], x3\n        ld1             {v0.16b, v1.16b},  [x0]\n        urhadd          v0.16b,  v0.16b,  v2.16b\n        urhadd          v1.16b,  v1.16b,  v3.16b\n        subs            w4,  w4,  #1\n        st1             {v0.16b, v1.16b},  [x0], x1\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:2", "text": "urhadd          v17.16b, v17.16b, v21.16b\n        st1             {v0.16b,  v1.16b,  v2.16b,  v3.16b},  [x5], x1\n        urhadd          v18.16b, v18.16b, v22.16b\n        urhadd          v19.16b, v19.16b, v23.16b\n        st1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg32_neon, export=1\n1:\n        ld1             {v2.16b, v3.16b},  [x2], x3\n        ld1             {v0.16b, v1.16b},  [x0]\n        urhadd          v0.16b,  v0.16b,  v2.16b\n        urhadd          v1.16b,  v1.16b,  v3.16b\n        subs            w4,  w4,  #1\n        st1             {v0.16b, v1.16b},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy16_neon, export=1\n        add             x5,  x0,  x1\n        lsl             x1,  x1,  #1\n        add             x6,  x2,  x3\n        lsl             x3,  x3,  #1\n1:\n        ld1             {v0.16b},  [x2], x3\n        ld1             {v1.16b},  [x6], x3\n        ld1             {v2.16b},  [x2], x3\n        ld1             {v3.16b},  [x6], x3\n        subs            w4,  w4,  #4\n        st1             {v0.16b},  [x0], x1\n        st1             {v1.16b},  [x5], x1\n        st1             {v2.16b},  [x0], x1\n        st1             {v3.16b},  [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.16b},  [x2], x3\n        ld1             {v0.16b},  [x0], x1\n        ld1             {v3.16b},  [x2], x3\n        urhadd          v0.16b,  v0.16b,  v2.16b\n        ld1             {v1.16b},  [x0], x1\n        urhadd          v1.16b,  v1.16b,  v3.16b\n        subs            w4,  w4,  #2\n        st1             {v0.16b},  [x5], x1\n        st1             {v1.16b},  [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy8_neon, export=1\n1:\n        ld1             {v0.8b},  [x2], x3\n        ld1             {v1.8b},  [x2], x3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:3", "text": "function ff_vp9_avg16_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.16b},  [x2], x3\n        ld1             {v0.16b},  [x0], x1\n        ld1             {v3.16b},  [x2], x3\n        urhadd          v0.16b,  v0.16b,  v2.16b\n        ld1             {v1.16b},  [x0], x1\n        urhadd          v1.16b,  v1.16b,  v3.16b\n        subs            w4,  w4,  #2\n        st1             {v0.16b},  [x5], x1\n        st1             {v1.16b},  [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy8_neon, export=1\n1:\n        ld1             {v0.8b},  [x2], x3\n        ld1             {v1.8b},  [x2], x3\n        subs            w4,  w4,  #2\n        st1             {v0.8b},  [x0], x1\n        st1             {v1.8b},  [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg8_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.8b},  [x2], x3\n        ld1             {v0.8b},  [x0], x1\n        ld1             {v3.8b},  [x2], x3\n        urhadd          v0.8b,  v0.8b,  v2.8b\n        ld1             {v1.8b},  [x0], x1\n        urhadd          v1.8b,  v1.8b,  v3.8b\n        subs            w4,  w4,  #2\n        st1             {v0.8b},  [x5], x1\n        st1             {v1.8b},  [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_copy4_neon, export=1\n1:\n        ld1             {v0.s}[0], [x2], x3\n        ld1             {v1.s}[0], [x2], x3\n        st1             {v0.s}[0], [x0], x1\n        ld1             {v2.s}[0], [x2], x3\n        st1             {v1.s}[0], [x0], x1\n        ld1             {v3.s}[0], [x2], x3\n        subs            w4,  w4,  #4\n        st1             {v2.s}[0], [x0], x1\n        st1             {v3.s}[0], [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg4_neon, export=1\n        mov             x5,  x0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:4", "text": "ret\nendfunc\n\nfunction ff_vp9_copy4_neon, export=1\n1:\n        ld1             {v0.s}[0], [x2], x3\n        ld1             {v1.s}[0], [x2], x3\n        st1             {v0.s}[0], [x0], x1\n        ld1             {v2.s}[0], [x2], x3\n        st1             {v1.s}[0], [x0], x1\n        ld1             {v3.s}[0], [x2], x3\n        subs            w4,  w4,  #4\n        st1             {v2.s}[0], [x0], x1\n        st1             {v3.s}[0], [x0], x1\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vp9_avg4_neon, export=1\n        mov             x5,  x0\n1:\n        ld1             {v2.s}[0], [x2], x3\n        ld1             {v0.s}[0], [x0], x1\n        ld1             {v2.s}[1], [x2], x3\n        ld1             {v0.s}[1], [x0], x1\n        ld1             {v3.s}[0], [x2], x3\n        ld1             {v1.s}[0], [x0], x1\n        ld1             {v3.s}[1], [x2], x3\n        ld1             {v1.s}[1], [x0], x1\n        subs            w4,  w4,  #4\n        urhadd          v0.8b,  v0.8b,  v2.8b\n        urhadd          v1.8b,  v1.8b,  v3.8b\n        st1             {v0.s}[0], [x5], x1\n        st1             {v0.s}[1], [x5], x1\n        st1             {v1.s}[0], [x5], x1\n        st1             {v1.s}[1], [x5], x1\n        b.ne            1b\n        ret\nendfunc\n\n\n// Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n// for size >= 16), and multiply-accumulate into dst1 and dst3 (or\n// dst1-dst2 and dst3-dst4 for size >= 16)\n.macro extmla dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, offset, size\n        ext             v20.16b, \\src1\\().16b, \\src2\\().16b, #(2*\\offset)\n        ext             v22.16b, \\src4\\().16b, \\src5\\().16b, #(2*\\offset)\n.if \\size >= 16\n        mla             \\dst1\\().8h, v20.8h, v0.h[\\offset]\n        ext             v21.16b, \\src2\\().16b, \\src3\\().16b, #(2*\\offset)\n        mla             \\dst3\\().8h, v22.8h, v0.h[\\offset]\n        ext             v23.16b, \\src5\\().16b, \\src6\\().16b, #(2*\\offset)\n        mla             \\dst2\\().8h, v21.8h, v0.h[\\offset]\n        mla             \\dst4\\().8h, v23.8h, v0.h[\\offset]\n.elseif \\size == 8\n        mla             \\dst1\\().8h, v20.8h, v0.h[\\offset]\n        mla             \\dst3\\().8h, v22.8h, v0.h[\\offset]\n.else\n        mla             \\dst1\\().4h, v20.4h, v0.h[\\offset]\n        mla             \\dst3\\().4h, v22.4h, v0.h[\\offset]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:5", "text": "// Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n// for size >= 16), and multiply-accumulate into dst1 and dst3 (or\n// dst1-dst2 and dst3-dst4 for size >= 16)\n.macro extmla dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, offset, size\n        ext             v20.16b, \\src1\\().16b, \\src2\\().16b, #(2*\\offset)\n        ext             v22.16b, \\src4\\().16b, \\src5\\().16b, #(2*\\offset)\n.if \\size >= 16\n        mla             \\dst1\\().8h, v20.8h, v0.h[\\offset]\n        ext             v21.16b, \\src2\\().16b, \\src3\\().16b, #(2*\\offset)\n        mla             \\dst3\\().8h, v22.8h, v0.h[\\offset]\n        ext             v23.16b, \\src5\\().16b, \\src6\\().16b, #(2*\\offset)\n        mla             \\dst2\\().8h, v21.8h, v0.h[\\offset]\n        mla             \\dst4\\().8h, v23.8h, v0.h[\\offset]\n.elseif \\size == 8\n        mla             \\dst1\\().8h, v20.8h, v0.h[\\offset]\n        mla             \\dst3\\().8h, v22.8h, v0.h[\\offset]\n.else\n        mla             \\dst1\\().4h, v20.4h, v0.h[\\offset]\n        mla             \\dst3\\().4h, v22.4h, v0.h[\\offset]\n.endif\n.endm\n// The same as above, but don't accumulate straight into the\n// destination, but use a temp register and accumulate with saturation.\n.macro extmulqadd dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, offset, size\n        ext             v20.16b, \\src1\\().16b, \\src2\\().16b, #(2*\\offset)\n        ext             v22.16b, \\src4\\().16b, \\src5\\().16b, #(2*\\offset)\n.if \\size >= 16\n        mul             v20.8h, v20.8h, v0.h[\\offset]\n        ext             v21.16b, \\src2\\().16b, \\src3\\().16b, #(2*\\offset)\n        mul             v22.8h, v22.8h, v0.h[\\offset]\n        ext             v23.16b, \\src5\\().16b, \\src6\\().16b, #(2*\\offset)\n        mul             v21.8h, v21.8h, v0.h[\\offset]\n        mul             v23.8h, v23.8h, v0.h[\\offset]\n.elseif \\size == 8\n        mul             v20.8h, v20.8h, v0.h[\\offset]\n        mul             v22.8h, v22.8h, v0.h[\\offset]\n.else\n        mul             v20.4h, v20.4h, v0.h[\\offset]\n        mul             v22.4h, v22.4h, v0.h[\\offset]\n.endif\n.if \\size == 4\n        sqadd           \\dst1\\().4h, \\dst1\\().4h, v20.4h\n        sqadd           \\dst3\\().4h, \\dst3\\().4h, v22.4h\n.else\n        sqadd           \\dst1\\().8h, \\dst1\\().8h, v20.8h\n        sqadd           \\dst3\\().8h, \\dst3\\().8h, v22.8h\n.if \\size >= 16\n        sqadd           \\dst2\\().8h, \\dst2\\().8h, v21.8h\n        sqadd           \\dst4\\().8h, \\dst4\\().8h, v23.8h\n.endif\n.endif\n.endm\n\n\n// Instantiate a horizontal filter function for the given size.\n// This can work on 4, 8 or 16 pixels in parallel; for larger\n// widths it will do 16 pixels at a time and loop horizontally.\n// The actual width is passed in x5, the height in w4 and the\n// filter coefficients in x9. idx2 is the index of the largest", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:6", "text": ".endif\n.if \\size == 4\n        sqadd           \\dst1\\().4h, \\dst1\\().4h, v20.4h\n        sqadd           \\dst3\\().4h, \\dst3\\().4h, v22.4h\n.else\n        sqadd           \\dst1\\().8h, \\dst1\\().8h, v20.8h\n        sqadd           \\dst3\\().8h, \\dst3\\().8h, v22.8h\n.if \\size >= 16\n        sqadd           \\dst2\\().8h, \\dst2\\().8h, v21.8h\n        sqadd           \\dst4\\().8h, \\dst4\\().8h, v23.8h\n.endif\n.endif\n.endm\n\n\n// Instantiate a horizontal filter function for the given size.\n// This can work on 4, 8 or 16 pixels in parallel; for larger\n// widths it will do 16 pixels at a time and loop horizontally.\n// The actual width is passed in x5, the height in w4 and the\n// filter coefficients in x9. idx2 is the index of the largest\n// filter coefficient (3 or 4) and idx1 is the other one of them.\n.macro do_8tap_h type, size, idx1, idx2\nfunction \\type\\()_8tap_\\size\\()h_\\idx1\\idx2\n        sub             x2,  x2,  #3\n        add             x6,  x0,  x1\n        add             x7,  x2,  x3\n        add             x1,  x1,  x1\n        add             x3,  x3,  x3\n        // Only size >= 16 loops horizontally and needs\n        // reduced dst stride\n.if \\size >= 16\n        sub             x1,  x1,  x5\n.elseif \\size == 4\n        add             x12, x2,  #8\n        add             x13, x7,  #8\n.endif\n        // size >= 16 loads two qwords and increments x2,\n        // for size 4/8 it's enough with one qword and no\n        // postincrement\n.if \\size >= 16\n        sub             x3,  x3,  x5\n        sub             x3,  x3,  #8\n.endif\n        // Load the filter vector\n        ld1             {v0.8h},  [x9]\n1:\n.if \\size >= 16\n        mov             x9,  x5\n.endif\n        // Load src\n.if \\size >= 16\n        ld1             {v4.8b,  v5.8b,  v6.8b},  [x2], #24\n        ld1             {v16.8b, v17.8b, v18.8b}, [x7], #24\n.elseif \\size == 8\n        ld1             {v4.8b,  v5.8b},  [x2]\n        ld1             {v16.8b, v17.8b}, [x7]\n.else // \\size == 4\n        ld1             {v4.8b},  [x2]\n        ld1             {v16.8b}, [x7]\n        ld1             {v5.s}[0],  [x12], x3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:7", "text": "sub             x3,  x3,  x5\n        sub             x3,  x3,  #8\n.endif\n        // Load the filter vector\n        ld1             {v0.8h},  [x9]\n1:\n.if \\size >= 16\n        mov             x9,  x5\n.endif\n        // Load src\n.if \\size >= 16\n        ld1             {v4.8b,  v5.8b,  v6.8b},  [x2], #24\n        ld1             {v16.8b, v17.8b, v18.8b}, [x7], #24\n.elseif \\size == 8\n        ld1             {v4.8b,  v5.8b},  [x2]\n        ld1             {v16.8b, v17.8b}, [x7]\n.else // \\size == 4\n        ld1             {v4.8b},  [x2]\n        ld1             {v16.8b}, [x7]\n        ld1             {v5.s}[0],  [x12], x3\n        ld1             {v17.s}[0], [x13], x3\n.endif\n        uxtl            v4.8h,  v4.8b\n        uxtl            v5.8h,  v5.8b\n        uxtl            v16.8h, v16.8b\n        uxtl            v17.8h, v17.8b\n.if \\size >= 16\n        uxtl            v6.8h,  v6.8b\n        uxtl            v18.8h, v18.8b\n.endif\n2:\n\n        // Accumulate, adding idx2 last with a separate\n        // saturating add. The positive filter coefficients\n        // for all indices except idx2 must add up to less\n        // than 127 for this not to overflow.\n        mul             v1.8h,  v4.8h,  v0.h[0]\n        mul             v24.8h, v16.8h, v0.h[0]\n.if \\size >= 16\n        mul             v2.8h,  v5.8h,  v0.h[0]\n        mul             v25.8h, v17.8h, v0.h[0]\n.endif\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 1,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 2,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx1, \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 5,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 6,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 7,     \\size\n        extmulqadd      v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx2, \\size\n\n        // Round, shift and saturate\n        sqrshrun        v1.8b,   v1.8h,  #7\n        sqrshrun        v24.8b,  v24.8h, #7\n.if \\size >= 16\n        sqrshrun2       v1.16b,  v2.8h,  #7\n        sqrshrun2       v24.16b, v25.8h, #7\n.endif\n        // Average\n.ifc \\type,avg\n.if \\size >= 16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:8", "text": "mul             v25.8h, v17.8h, v0.h[0]\n.endif\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 1,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 2,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx1, \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 5,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 6,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 7,     \\size\n        extmulqadd      v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx2, \\size\n\n        // Round, shift and saturate\n        sqrshrun        v1.8b,   v1.8h,  #7\n        sqrshrun        v24.8b,  v24.8h, #7\n.if \\size >= 16\n        sqrshrun2       v1.16b,  v2.8h,  #7\n        sqrshrun2       v24.16b, v25.8h, #7\n.endif\n        // Average\n.ifc \\type,avg\n.if \\size >= 16\n        ld1             {v2.16b}, [x0]\n        ld1             {v3.16b}, [x6]\n        urhadd          v1.16b,  v1.16b,  v2.16b\n        urhadd          v24.16b, v24.16b, v3.16b\n.elseif \\size == 8\n        ld1             {v2.8b},  [x0]\n        ld1             {v3.8b},  [x6]\n        urhadd          v1.8b,  v1.8b,  v2.8b\n        urhadd          v24.8b, v24.8b, v3.8b\n.else\n        ld1             {v2.s}[0], [x0]\n        ld1             {v3.s}[0], [x6]\n        urhadd          v1.8b,  v1.8b,  v2.8b\n        urhadd          v24.8b, v24.8b, v3.8b\n.endif\n.endif\n        // Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            x9,  x9,  #16\n        st1             {v1.16b},  [x0], #16\n        st1             {v24.16b}, [x6], #16\n        b.eq            3f\n        mov             v4.16b,  v6.16b\n        mov             v16.16b, v18.16b\n        ld1             {v6.16b},  [x2], #16\n        ld1             {v18.16b}, [x7], #16\n        uxtl            v5.8h,  v6.8b\n        uxtl2           v6.8h,  v6.16b\n        uxtl            v17.8h, v18.8b\n        uxtl2           v18.8h, v18.16b\n        b               2b\n.elseif \\size == 8\n        st1             {v1.8b},    [x0]\n        st1             {v24.8b},   [x6]\n.else // \\size == 4\n        st1             {v1.s}[0],  [x0]\n        st1             {v24.s}[0], [x6]\n.endif\n3:\n        // Loop vertically", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:9", "text": "st1             {v24.16b}, [x6], #16\n        b.eq            3f\n        mov             v4.16b,  v6.16b\n        mov             v16.16b, v18.16b\n        ld1             {v6.16b},  [x2], #16\n        ld1             {v18.16b}, [x7], #16\n        uxtl            v5.8h,  v6.8b\n        uxtl2           v6.8h,  v6.16b\n        uxtl            v17.8h, v18.8b\n        uxtl2           v18.8h, v18.16b\n        b               2b\n.elseif \\size == 8\n        st1             {v1.8b},    [x0]\n        st1             {v24.8b},   [x6]\n.else // \\size == 4\n        st1             {v1.s}[0],  [x0]\n        st1             {v24.s}[0], [x6]\n.endif\n3:\n        // Loop vertically\n        add             x0,  x0,  x1\n        add             x6,  x6,  x1\n        add             x2,  x2,  x3\n        add             x7,  x7,  x3\n        subs            w4,  w4,  #2\n        b.ne            1b\n        ret\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size, 3, 4\ndo_8tap_h avg, \\size, 3, 4\ndo_8tap_h put, \\size, 4, 3\ndo_8tap_h avg, \\size, 4, 3\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        movrel          x6,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w5,  #8\n        add             x9,  x6,  w5, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 16\n        b.ge            \\type\\()_8tap_16h_34\n        b               \\type\\()_8tap_16h_43\n.else\n        b.ge            \\type\\()_8tap_\\size\\()h_34\n        b               \\type\\()_8tap_\\size\\()h_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size\ndo_8tap_h_func put, regular, 1, \\size\ndo_8tap_h_func avg, regular, 1, \\size", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:10", "text": ".macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        movrel          x6,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w5,  #8\n        add             x9,  x6,  w5, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 16\n        b.ge            \\type\\()_8tap_16h_34\n        b               \\type\\()_8tap_16h_43\n.else\n        b.ge            \\type\\()_8tap_\\size\\()h_34\n        b               \\type\\()_8tap_\\size\\()h_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size\ndo_8tap_h_func put, regular, 1, \\size\ndo_8tap_h_func avg, regular, 1, \\size\ndo_8tap_h_func put, sharp,   2, \\size\ndo_8tap_h_func avg, sharp,   2, \\size\ndo_8tap_h_func put, smooth,  0, \\size\ndo_8tap_h_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_h_filters 64\ndo_8tap_h_filters 32\ndo_8tap_h_filters 16\ndo_8tap_h_filters 8\ndo_8tap_h_filters 4\n\n\n// Vertical filters\n\n// Round, shift and saturate and store reg1-reg2 over 4 lines\n.macro do_store4 reg1, reg2, tmp1, tmp2, type\n        sqrshrun        \\reg1\\().8b,  \\reg1\\().8h, #7\n        sqrshrun        \\reg2\\().8b,  \\reg2\\().8h, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().s}[0],  [x7], x1\n        ld1             {\\tmp2\\().s}[0],  [x7], x1\n        ld1             {\\tmp1\\().s}[1],  [x7], x1\n        ld1             {\\tmp2\\().s}[1],  [x7], x1\n        urhadd          \\reg1\\().8b,  \\reg1\\().8b,  \\tmp1\\().8b\n        urhadd          \\reg2\\().8b,  \\reg2\\().8b,  \\tmp2\\().8b\n.endif\n        st1             {\\reg1\\().s}[0],  [x0], x1\n        st1             {\\reg2\\().s}[0],  [x0], x1\n        st1             {\\reg1\\().s}[1],  [x0], x1\n        st1             {\\reg2\\().s}[1],  [x0], x1\n.endm\n\n// Round, shift and saturate and store reg1-4\n.macro do_store reg1, reg2, reg3, reg4, tmp1, tmp2, tmp3, tmp4, type\n        sqrshrun        \\reg1\\().8b,  \\reg1\\().8h, #7\n        sqrshrun        \\reg2\\().8b,  \\reg2\\().8h, #7\n        sqrshrun        \\reg3\\().8b,  \\reg3\\().8h, #7\n        sqrshrun        \\reg4\\().8b,  \\reg4\\().8h, #7\n.ifc \\type,avg", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:11", "text": "ld1             {\\tmp1\\().s}[0],  [x7], x1\n        ld1             {\\tmp2\\().s}[0],  [x7], x1\n        ld1             {\\tmp1\\().s}[1],  [x7], x1\n        ld1             {\\tmp2\\().s}[1],  [x7], x1\n        urhadd          \\reg1\\().8b,  \\reg1\\().8b,  \\tmp1\\().8b\n        urhadd          \\reg2\\().8b,  \\reg2\\().8b,  \\tmp2\\().8b\n.endif\n        st1             {\\reg1\\().s}[0],  [x0], x1\n        st1             {\\reg2\\().s}[0],  [x0], x1\n        st1             {\\reg1\\().s}[1],  [x0], x1\n        st1             {\\reg2\\().s}[1],  [x0], x1\n.endm\n\n// Round, shift and saturate and store reg1-4\n.macro do_store reg1, reg2, reg3, reg4, tmp1, tmp2, tmp3, tmp4, type\n        sqrshrun        \\reg1\\().8b,  \\reg1\\().8h, #7\n        sqrshrun        \\reg2\\().8b,  \\reg2\\().8h, #7\n        sqrshrun        \\reg3\\().8b,  \\reg3\\().8h, #7\n        sqrshrun        \\reg4\\().8b,  \\reg4\\().8h, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().8b},  [x7], x1\n        ld1             {\\tmp2\\().8b},  [x7], x1\n        ld1             {\\tmp3\\().8b},  [x7], x1\n        ld1             {\\tmp4\\().8b},  [x7], x1\n        urhadd          \\reg1\\().8b,  \\reg1\\().8b,  \\tmp1\\().8b\n        urhadd          \\reg2\\().8b,  \\reg2\\().8b,  \\tmp2\\().8b\n        urhadd          \\reg3\\().8b,  \\reg3\\().8b,  \\tmp3\\().8b\n        urhadd          \\reg4\\().8b,  \\reg4\\().8b,  \\tmp4\\().8b\n.endif\n        st1             {\\reg1\\().8b},  [x0], x1\n        st1             {\\reg2\\().8b},  [x0], x1\n        st1             {\\reg3\\().8b},  [x0], x1\n        st1             {\\reg4\\().8b},  [x0], x1\n.endm\n\n// Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n// (src1-src8 into dst1, src2-src9 into dst2), adding idx2 separately\n// at the end with saturation. Indices 0 and 7 always have negative or zero\n// coefficients, so they can be accumulated into tmp1-tmp2 together with the\n// largest coefficient.\n.macro convolve dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, idx1, idx2, tmp1, tmp2\n        mul             \\dst1\\().8h, \\src2\\().8h, v0.h[1]\n        mul             \\dst2\\().8h, \\src3\\().8h, v0.h[1]\n        mul             \\tmp1\\().8h, \\src1\\().8h, v0.h[0]\n        mul             \\tmp2\\().8h, \\src2\\().8h, v0.h[0]\n        mla             \\dst1\\().8h, \\src3\\().8h, v0.h[2]\n        mla             \\dst2\\().8h, \\src4\\().8h, v0.h[2]\n.if \\idx1 == 3\n        mla             \\dst1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\dst2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\dst1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\dst2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        mla             \\dst1\\().8h, \\src6\\().8h, v0.h[5]\n        mla             \\dst2\\().8h, \\src7\\().8h, v0.h[5]\n        mla             \\tmp1\\().8h, \\src8\\().8h, v0.h[7]\n        mla             \\tmp2\\().8h, \\src9\\().8h, v0.h[7]\n        mla             \\dst1\\().8h, \\src7\\().8h, v0.h[6]\n        mla             \\dst2\\().8h, \\src8\\().8h, v0.h[6]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:12", "text": ".macro convolve dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, idx1, idx2, tmp1, tmp2\n        mul             \\dst1\\().8h, \\src2\\().8h, v0.h[1]\n        mul             \\dst2\\().8h, \\src3\\().8h, v0.h[1]\n        mul             \\tmp1\\().8h, \\src1\\().8h, v0.h[0]\n        mul             \\tmp2\\().8h, \\src2\\().8h, v0.h[0]\n        mla             \\dst1\\().8h, \\src3\\().8h, v0.h[2]\n        mla             \\dst2\\().8h, \\src4\\().8h, v0.h[2]\n.if \\idx1 == 3\n        mla             \\dst1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\dst2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\dst1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\dst2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        mla             \\dst1\\().8h, \\src6\\().8h, v0.h[5]\n        mla             \\dst2\\().8h, \\src7\\().8h, v0.h[5]\n        mla             \\tmp1\\().8h, \\src8\\().8h, v0.h[7]\n        mla             \\tmp2\\().8h, \\src9\\().8h, v0.h[7]\n        mla             \\dst1\\().8h, \\src7\\().8h, v0.h[6]\n        mla             \\dst2\\().8h, \\src8\\().8h, v0.h[6]\n.if \\idx2 == 3\n        mla             \\tmp1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\tmp2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\tmp1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\tmp2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        sqadd           \\dst1\\().8h, \\dst1\\().8h, \\tmp1\\().8h\n        sqadd           \\dst2\\().8h, \\dst2\\().8h, \\tmp2\\().8h\n.endm\n\n// Load pixels and extend them to 16 bit\n.macro loadl dst1, dst2, dst3, dst4\n        ld1             {v1.8b}, [x2], x3\n        ld1             {v2.8b}, [x2], x3\n        ld1             {v3.8b}, [x2], x3\n.ifnb \\dst4\n        ld1             {v4.8b}, [x2], x3\n.endif\n        uxtl            \\dst1\\().8h, v1.8b\n        uxtl            \\dst2\\().8h, v2.8b\n        uxtl            \\dst3\\().8h, v3.8b\n.ifnb \\dst4\n        uxtl            \\dst4\\().8h, v4.8b\n.endif\n.endm\n\n// Instantiate a vertical filter function for filtering 8 pixels at a time.\n// The height is passed in x4, the width in x5 and the filter coefficients\n// in x6. idx2 is the index of the largest filter coefficient (3 or 4)\n// and idx1 is the other one of them.\n.macro do_8tap_8v type, idx1, idx2\nfunction \\type\\()_8tap_8v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n1:\n.ifc \\type,avg\n        mov             x7,  x0\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:13", "text": "uxtl            \\dst2\\().8h, v2.8b\n        uxtl            \\dst3\\().8h, v3.8b\n.ifnb \\dst4\n        uxtl            \\dst4\\().8h, v4.8b\n.endif\n.endm\n\n// Instantiate a vertical filter function for filtering 8 pixels at a time.\n// The height is passed in x4, the width in x5 and the filter coefficients\n// in x6. idx2 is the index of the largest filter coefficient (3 or 4)\n// and idx1 is the other one of them.\n.macro do_8tap_8v type, idx1, idx2\nfunction \\type\\()_8tap_8v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n1:\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n        mov             x6,  x4\n\n        loadl           v17, v18, v19\n\n        loadl           v20, v21, v22, v23\n2:\n        loadl           v24, v25, v26, v27\n        convolve        v1,  v2,  v17, v18, v19, v20, v21, v22, v23, v24, v25, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v19, v20, v21, v22, v23, v24, v25, v26, v27, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        loadl           v16, v17, v18, v19\n        convolve        v1,  v2,  v21, v22, v23, v24, v25, v26, v27, v16, v17, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v23, v24, v25, v26, v27, v16, v17, v18, v19, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        loadl           v20, v21, v22, v23\n        convolve        v1,  v2,  v25, v26, v27, v16, v17, v18, v19, v20, v21, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v27, v16, v17, v18, v19, v20, v21, v22, v23, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.ne            2b\n\n8:\n        subs            x5,  x5,  #8\n        b.eq            9f\n        // x0 -= h * dst_stride\n        msub            x0,  x1,  x4, x0\n        // x2 -= h * src_stride\n        msub            x2,  x3,  x4, x2\n        // x2 -= 8 * src_stride\n        sub             x2,  x2,  x3, lsl #3\n        // x2 += 1 * src_stride", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:14", "text": "b.eq            8f\n\n        loadl           v20, v21, v22, v23\n        convolve        v1,  v2,  v25, v26, v27, v16, v17, v18, v19, v20, v21, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v27, v16, v17, v18, v19, v20, v21, v22, v23, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.ne            2b\n\n8:\n        subs            x5,  x5,  #8\n        b.eq            9f\n        // x0 -= h * dst_stride\n        msub            x0,  x1,  x4, x0\n        // x2 -= h * src_stride\n        msub            x2,  x3,  x4, x2\n        // x2 -= 8 * src_stride\n        sub             x2,  x2,  x3, lsl #3\n        // x2 += 1 * src_stride\n        add             x2,  x2,  x3\n        add             x2,  x2,  #8\n        add             x0,  x0,  #8\n        b               1b\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_8v put, 3, 4\ndo_8tap_8v put, 4, 3\ndo_8tap_8v avg, 3, 4\ndo_8tap_8v avg, 4, 3\n\n\n// Instantiate a vertical filter function for filtering a 4 pixels wide\n// slice. The first half of the registers contain one row, while the second\n// half of a register contains the second-next row (also stored in the first\n// half of the register two steps ahead). The convolution does two outputs\n// at a time; the output of v17-v24 into one, and v18-v25 into another one.\n// The first half of first output is the first output row, the first half\n// of the other output is the second output row. The second halves of the\n// registers are rows 3 and 4.\n// This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type, idx1, idx2\nfunction \\type\\()_8tap_4v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        ld1             {v3.s}[0],  [x2], x3\n        ld1             {v4.s}[0],  [x2], x3\n        ld1             {v5.s}[0],  [x2], x3\n        ld1             {v6.s}[0],  [x2], x3\n        trn1            v1.2s,  v1.2s,  v3.2s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:15", "text": "// The first half of first output is the first output row, the first half\n// of the other output is the second output row. The second halves of the\n// registers are rows 3 and 4.\n// This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type, idx1, idx2\nfunction \\type\\()_8tap_4v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        ld1             {v3.s}[0],  [x2], x3\n        ld1             {v4.s}[0],  [x2], x3\n        ld1             {v5.s}[0],  [x2], x3\n        ld1             {v6.s}[0],  [x2], x3\n        trn1            v1.2s,  v1.2s,  v3.2s\n        ld1             {v7.s}[0],  [x2], x3\n        trn1            v2.2s,  v2.2s,  v4.2s\n        ld1             {v26.s}[0], [x2], x3\n        uxtl            v17.8h, v1.8b\n        trn1            v3.2s,  v3.2s,  v5.2s\n        ld1             {v27.s}[0], [x2], x3\n        uxtl            v18.8h, v2.8b\n        trn1            v4.2s,  v4.2s,  v6.2s\n        ld1             {v28.s}[0], [x2], x3\n        uxtl            v19.8h, v3.8b\n        trn1            v5.2s,  v5.2s,  v7.2s\n        ld1             {v29.s}[0], [x2], x3\n        uxtl            v20.8h, v4.8b\n        trn1            v6.2s,  v6.2s,  v26.2s\n        uxtl            v21.8h, v5.8b\n        trn1            v7.2s,  v7.2s,  v27.2s\n        uxtl            v22.8h, v6.8b\n        trn1            v26.2s, v26.2s, v28.2s\n        uxtl            v23.8h, v7.8b\n        trn1            v27.2s, v27.2s, v29.2s\n        uxtl            v24.8h, v26.8b\n        uxtl            v25.8h, v27.8b\n\n        convolve        v1,  v2,  v17, v18, v19, v20, v21, v22, v23, v24, v25, \\idx1, \\idx2, v3,  v4\n        do_store4       v1,  v2,  v5,  v6,  \\type\n\n        subs            x4,  x4,  #4\n        b.eq            9f\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        trn1            v28.2s, v28.2s, v1.2s\n        trn1            v29.2s, v29.2s, v2.2s\n        ld1             {v1.s}[1],  [x2], x3\n        uxtl            v26.8h, v28.8b\n        ld1             {v2.s}[1],  [x2], x3\n        uxtl            v27.8h, v29.8b\n        uxtl            v28.8h, v1.8b\n        uxtl            v29.8h, v2.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:16", "text": "uxtl            v24.8h, v26.8b\n        uxtl            v25.8h, v27.8b\n\n        convolve        v1,  v2,  v17, v18, v19, v20, v21, v22, v23, v24, v25, \\idx1, \\idx2, v3,  v4\n        do_store4       v1,  v2,  v5,  v6,  \\type\n\n        subs            x4,  x4,  #4\n        b.eq            9f\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        trn1            v28.2s, v28.2s, v1.2s\n        trn1            v29.2s, v29.2s, v2.2s\n        ld1             {v1.s}[1],  [x2], x3\n        uxtl            v26.8h, v28.8b\n        ld1             {v2.s}[1],  [x2], x3\n        uxtl            v27.8h, v29.8b\n        uxtl            v28.8h, v1.8b\n        uxtl            v29.8h, v2.8b\n\n        convolve        v1,  v2,  v21, v22, v23, v24, v25, v26, v27, v28, v29, \\idx1, \\idx2, v3,  v4\n        do_store4       v1,  v2,  v5,  v6,  \\type\n\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_4v put, 3, 4\ndo_8tap_4v put, 4, 3\ndo_8tap_4v avg, 3, 4\ndo_8tap_4v avg, 4, 3\n\n\n.macro do_8tap_v_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_neon, export=1\n        uxtw            x4,  w4\n        movrel          x5,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w6,  #8\n        add             x6,  x5,  w6, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 8\n        b.ge            \\type\\()_8tap_8v_34\n        b               \\type\\()_8tap_8v_43\n.else\n        b.ge            \\type\\()_8tap_4v_34\n        b               \\type\\()_8tap_4v_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size\ndo_8tap_v_func put, regular, 1, \\size\ndo_8tap_v_func avg, regular, 1, \\size\ndo_8tap_v_func put, sharp,   2, \\size\ndo_8tap_v_func avg, sharp,   2, \\size\ndo_8tap_v_func put, smooth,  0, \\size\ndo_8tap_v_func avg, smooth,  0, \\size\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:17", "text": "mov             x5,  #\\size\n.if \\size >= 8\n        b.ge            \\type\\()_8tap_8v_34\n        b               \\type\\()_8tap_8v_43\n.else\n        b.ge            \\type\\()_8tap_4v_34\n        b               \\type\\()_8tap_4v_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size\ndo_8tap_v_func put, regular, 1, \\size\ndo_8tap_v_func avg, regular, 1, \\size\ndo_8tap_v_func put, sharp,   2, \\size\ndo_8tap_v_func avg, sharp,   2, \\size\ndo_8tap_v_func put, smooth,  0, \\size\ndo_8tap_v_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_v_filters 64\ndo_8tap_v_filters 32\ndo_8tap_v_filters 16\ndo_8tap_v_filters 8\ndo_8tap_v_filters 4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vp9mc_neon.S", "line_start": 641, "line_end": 665}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:6", "text": ".endif\n.if \\size == 4\n        sqadd           \\dst1\\().4h, \\dst1\\().4h, v20.4h\n        sqadd           \\dst3\\().4h, \\dst3\\().4h, v22.4h\n.else\n        sqadd           \\dst1\\().8h, \\dst1\\().8h, v20.8h\n        sqadd           \\dst3\\().8h, \\dst3\\().8h, v22.8h\n.if \\size >= 16\n        sqadd           \\dst2\\().8h, \\dst2\\().8h, v21.8h\n        sqadd           \\dst4\\().8h, \\dst4\\().8h, v23.8h\n.endif\n.endif\n.endm\n\n\n// Instantiate a horizontal filter function for the given size.\n// This can work on 4, 8 or 16 pixels in parallel; for larger\n// widths it will do 16 pixels at a time and loop horizontally.\n// The actual width is passed in x5, the height in w4 and the\n// filter coefficients in x9. idx2 is the index of the largest\n// filter coefficient (3 or 4) and idx1 is the other one of them.\n.macro do_8tap_h type, size, idx1, idx2\nfunction \\type\\()_8tap_\\size\\()h_\\idx1\\idx2\n        sub             x2,  x2,  #3\n        add             x6,  x0,  x1\n        add             x7,  x2,  x3\n        add             x1,  x1,  x1\n        add             x3,  x3,  x3\n        // Only size >= 16 loops horizontally and needs\n        // reduced dst stride\n.if \\size >= 16\n        sub             x1,  x1,  x5\n.endif\n        // size >= 16 loads two qwords and increments x2,\n        // for size 4/8 it's enough with one qword and no\n        // postincrement\n.if \\size >= 16\n        sub             x3,  x3,  x5\n        sub             x3,  x3,  #8\n.endif\n        // Load the filter vector\n        ld1             {v0.8h},  [x9]\n1:\n.if \\size >= 16\n        mov             x9,  x5\n.endif\n        // Load src\n.if \\size >= 16\n        ld1             {v4.8b,  v5.8b,  v6.8b},  [x2], #24\n        ld1             {v16.8b, v17.8b, v18.8b}, [x7], #24\n.else\n        ld1             {v4.8b,  v5.8b},  [x2]\n        ld1             {v16.8b, v17.8b}, [x7]\n.endif\n        uxtl            v4.8h,  v4.8b\n        uxtl            v5.8h,  v5.8b\n        uxtl            v16.8h, v16.8b\n        uxtl            v17.8h, v17.8b\n.if \\size >= 16\n        uxtl            v6.8h,  v6.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:7", "text": "// Load the filter vector\n        ld1             {v0.8h},  [x9]\n1:\n.if \\size >= 16\n        mov             x9,  x5\n.endif\n        // Load src\n.if \\size >= 16\n        ld1             {v4.8b,  v5.8b,  v6.8b},  [x2], #24\n        ld1             {v16.8b, v17.8b, v18.8b}, [x7], #24\n.else\n        ld1             {v4.8b,  v5.8b},  [x2]\n        ld1             {v16.8b, v17.8b}, [x7]\n.endif\n        uxtl            v4.8h,  v4.8b\n        uxtl            v5.8h,  v5.8b\n        uxtl            v16.8h, v16.8b\n        uxtl            v17.8h, v17.8b\n.if \\size >= 16\n        uxtl            v6.8h,  v6.8b\n        uxtl            v18.8h, v18.8b\n.endif\n2:\n\n        // Accumulate, adding idx2 last with a separate\n        // saturating add. The positive filter coefficients\n        // for all indices except idx2 must add up to less\n        // than 127 for this not to overflow.\n        mul             v1.8h,  v4.8h,  v0.h[0]\n        mul             v24.8h, v16.8h, v0.h[0]\n.if \\size >= 16\n        mul             v2.8h,  v5.8h,  v0.h[0]\n        mul             v25.8h, v17.8h, v0.h[0]\n.endif\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 1,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 2,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx1, \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 5,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 6,     \\size\n        extmla          v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, 7,     \\size\n        extmulqadd      v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx2, \\size\n\n        // Round, shift and saturate\n        sqrshrun        v1.8b,   v1.8h,  #7\n        sqrshrun        v24.8b,  v24.8h, #7\n.if \\size >= 16\n        sqrshrun2       v1.16b,  v2.8h,  #7\n        sqrshrun2       v24.16b, v25.8h, #7\n.endif\n        // Average\n.ifc \\type,avg\n.if \\size >= 16\n        ld1             {v2.16b}, [x0]\n        ld1             {v3.16b}, [x6]\n        urhadd          v1.16b,  v1.16b,  v2.16b\n        urhadd          v24.16b, v24.16b, v3.16b\n.elseif \\size == 8\n        ld1             {v2.8b},  [x0]\n        ld1             {v3.8b},  [x6]\n        urhadd          v1.8b,  v1.8b,  v2.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:8", "text": "extmulqadd      v1,  v2,  v24, v25, v4,  v5,  v6,  v16, v17, v18, \\idx2, \\size\n\n        // Round, shift and saturate\n        sqrshrun        v1.8b,   v1.8h,  #7\n        sqrshrun        v24.8b,  v24.8h, #7\n.if \\size >= 16\n        sqrshrun2       v1.16b,  v2.8h,  #7\n        sqrshrun2       v24.16b, v25.8h, #7\n.endif\n        // Average\n.ifc \\type,avg\n.if \\size >= 16\n        ld1             {v2.16b}, [x0]\n        ld1             {v3.16b}, [x6]\n        urhadd          v1.16b,  v1.16b,  v2.16b\n        urhadd          v24.16b, v24.16b, v3.16b\n.elseif \\size == 8\n        ld1             {v2.8b},  [x0]\n        ld1             {v3.8b},  [x6]\n        urhadd          v1.8b,  v1.8b,  v2.8b\n        urhadd          v24.8b, v24.8b, v3.8b\n.else\n        ld1             {v2.s}[0], [x0]\n        ld1             {v3.s}[0], [x6]\n        urhadd          v1.8b,  v1.8b,  v2.8b\n        urhadd          v24.8b, v24.8b, v3.8b\n.endif\n.endif\n        // Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            x9,  x9,  #16\n        st1             {v1.16b},  [x0], #16\n        st1             {v24.16b}, [x6], #16\n        b.eq            3f\n        mov             v4.16b,  v6.16b\n        mov             v16.16b, v18.16b\n        ld1             {v6.16b},  [x2], #16\n        ld1             {v18.16b}, [x7], #16\n        uxtl            v5.8h,  v6.8b\n        uxtl2           v6.8h,  v6.16b\n        uxtl            v17.8h, v18.8b\n        uxtl2           v18.8h, v18.16b\n        b               2b\n.elseif \\size == 8\n        st1             {v1.8b},    [x0]\n        st1             {v24.8b},   [x6]\n.else // \\size == 4\n        st1             {v1.s}[0],  [x0]\n        st1             {v24.s}[0], [x6]\n.endif\n3:\n        // Loop vertically\n        add             x0,  x0,  x1\n        add             x6,  x6,  x1\n        add             x2,  x2,  x3\n        add             x7,  x7,  x3\n        subs            w4,  w4,  #2\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:9", "text": "uxtl            v17.8h, v18.8b\n        uxtl2           v18.8h, v18.16b\n        b               2b\n.elseif \\size == 8\n        st1             {v1.8b},    [x0]\n        st1             {v24.8b},   [x6]\n.else // \\size == 4\n        st1             {v1.s}[0],  [x0]\n        st1             {v24.s}[0], [x6]\n.endif\n3:\n        // Loop vertically\n        add             x0,  x0,  x1\n        add             x6,  x6,  x1\n        add             x2,  x2,  x3\n        add             x7,  x7,  x3\n        subs            w4,  w4,  #2\n        b.ne            1b\n        ret\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size, 3, 4\ndo_8tap_h avg, \\size, 3, 4\ndo_8tap_h put, \\size, 4, 3\ndo_8tap_h avg, \\size, 4, 3\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        movrel          x6,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w5,  #8\n        add             x9,  x6,  w5, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 16\n        b.ge            \\type\\()_8tap_16h_34\n        b               \\type\\()_8tap_16h_43\n.else\n        b.ge            \\type\\()_8tap_\\size\\()h_34\n        b               \\type\\()_8tap_\\size\\()h_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size\ndo_8tap_h_func put, regular, 1, \\size\ndo_8tap_h_func avg, regular, 1, \\size\ndo_8tap_h_func put, sharp,   2, \\size\ndo_8tap_h_func avg, sharp,   2, \\size\ndo_8tap_h_func put, smooth,  0, \\size\ndo_8tap_h_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_h_filters 64\ndo_8tap_h_filters 32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:10", "text": "b.ge            \\type\\()_8tap_16h_34\n        b               \\type\\()_8tap_16h_43\n.else\n        b.ge            \\type\\()_8tap_\\size\\()h_34\n        b               \\type\\()_8tap_\\size\\()h_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size\ndo_8tap_h_func put, regular, 1, \\size\ndo_8tap_h_func avg, regular, 1, \\size\ndo_8tap_h_func put, sharp,   2, \\size\ndo_8tap_h_func avg, sharp,   2, \\size\ndo_8tap_h_func put, smooth,  0, \\size\ndo_8tap_h_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_h_filters 64\ndo_8tap_h_filters 32\ndo_8tap_h_filters 16\ndo_8tap_h_filters 8\ndo_8tap_h_filters 4\n\n\n// Vertical filters\n\n// Round, shift and saturate and store reg1-reg2 over 4 lines\n.macro do_store4 reg1, reg2, tmp1, tmp2, type\n        sqrshrun        \\reg1\\().8b,  \\reg1\\().8h, #7\n        sqrshrun        \\reg2\\().8b,  \\reg2\\().8h, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().s}[0],  [x7], x1\n        ld1             {\\tmp2\\().s}[0],  [x7], x1\n        ld1             {\\tmp1\\().s}[1],  [x7], x1\n        ld1             {\\tmp2\\().s}[1],  [x7], x1\n        urhadd          \\reg1\\().8b,  \\reg1\\().8b,  \\tmp1\\().8b\n        urhadd          \\reg2\\().8b,  \\reg2\\().8b,  \\tmp2\\().8b\n.endif\n        st1             {\\reg1\\().s}[0],  [x0], x1\n        st1             {\\reg2\\().s}[0],  [x0], x1\n        st1             {\\reg1\\().s}[1],  [x0], x1\n        st1             {\\reg2\\().s}[1],  [x0], x1\n.endm\n\n// Round, shift and saturate and store reg1-4\n.macro do_store reg1, reg2, reg3, reg4, tmp1, tmp2, tmp3, tmp4, type\n        sqrshrun        \\reg1\\().8b,  \\reg1\\().8h, #7\n        sqrshrun        \\reg2\\().8b,  \\reg2\\().8h, #7\n        sqrshrun        \\reg3\\().8b,  \\reg3\\().8h, #7\n        sqrshrun        \\reg4\\().8b,  \\reg4\\().8h, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().8b},  [x7], x1\n        ld1             {\\tmp2\\().8b},  [x7], x1\n        ld1             {\\tmp3\\().8b},  [x7], x1\n        ld1             {\\tmp4\\().8b},  [x7], x1\n        urhadd          \\reg1\\().8b,  \\reg1\\().8b,  \\tmp1\\().8b\n        urhadd          \\reg2\\().8b,  \\reg2\\().8b,  \\tmp2\\().8b\n        urhadd          \\reg3\\().8b,  \\reg3\\().8b,  \\tmp3\\().8b\n        urhadd          \\reg4\\().8b,  \\reg4\\().8b,  \\tmp4\\().8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:11", "text": "st1             {\\reg2\\().s}[0],  [x0], x1\n        st1             {\\reg1\\().s}[1],  [x0], x1\n        st1             {\\reg2\\().s}[1],  [x0], x1\n.endm\n\n// Round, shift and saturate and store reg1-4\n.macro do_store reg1, reg2, reg3, reg4, tmp1, tmp2, tmp3, tmp4, type\n        sqrshrun        \\reg1\\().8b,  \\reg1\\().8h, #7\n        sqrshrun        \\reg2\\().8b,  \\reg2\\().8h, #7\n        sqrshrun        \\reg3\\().8b,  \\reg3\\().8h, #7\n        sqrshrun        \\reg4\\().8b,  \\reg4\\().8h, #7\n.ifc \\type,avg\n        ld1             {\\tmp1\\().8b},  [x7], x1\n        ld1             {\\tmp2\\().8b},  [x7], x1\n        ld1             {\\tmp3\\().8b},  [x7], x1\n        ld1             {\\tmp4\\().8b},  [x7], x1\n        urhadd          \\reg1\\().8b,  \\reg1\\().8b,  \\tmp1\\().8b\n        urhadd          \\reg2\\().8b,  \\reg2\\().8b,  \\tmp2\\().8b\n        urhadd          \\reg3\\().8b,  \\reg3\\().8b,  \\tmp3\\().8b\n        urhadd          \\reg4\\().8b,  \\reg4\\().8b,  \\tmp4\\().8b\n.endif\n        st1             {\\reg1\\().8b},  [x0], x1\n        st1             {\\reg2\\().8b},  [x0], x1\n        st1             {\\reg3\\().8b},  [x0], x1\n        st1             {\\reg4\\().8b},  [x0], x1\n.endm\n\n// Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n// (src1-src8 into dst1, src2-src9 into dst2), adding idx2 separately\n// at the end with saturation. Indices 0 and 7 always have negative or zero\n// coefficients, so they can be accumulated into tmp1-tmp2 together with the\n// largest coefficient.\n.macro convolve dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, idx1, idx2, tmp1, tmp2\n        mul             \\dst1\\().8h, \\src2\\().8h, v0.h[1]\n        mul             \\dst2\\().8h, \\src3\\().8h, v0.h[1]\n        mul             \\tmp1\\().8h, \\src1\\().8h, v0.h[0]\n        mul             \\tmp2\\().8h, \\src2\\().8h, v0.h[0]\n        mla             \\dst1\\().8h, \\src3\\().8h, v0.h[2]\n        mla             \\dst2\\().8h, \\src4\\().8h, v0.h[2]\n.if \\idx1 == 3\n        mla             \\dst1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\dst2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\dst1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\dst2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        mla             \\dst1\\().8h, \\src6\\().8h, v0.h[5]\n        mla             \\dst2\\().8h, \\src7\\().8h, v0.h[5]\n        mla             \\tmp1\\().8h, \\src8\\().8h, v0.h[7]\n        mla             \\tmp2\\().8h, \\src9\\().8h, v0.h[7]\n        mla             \\dst1\\().8h, \\src7\\().8h, v0.h[6]\n        mla             \\dst2\\().8h, \\src8\\().8h, v0.h[6]\n.if \\idx2 == 3\n        mla             \\tmp1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\tmp2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\tmp1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\tmp2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        sqadd           \\dst1\\().8h, \\dst1\\().8h, \\tmp1\\().8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:12", "text": "mla             \\dst1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\dst2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\dst1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\dst2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        mla             \\dst1\\().8h, \\src6\\().8h, v0.h[5]\n        mla             \\dst2\\().8h, \\src7\\().8h, v0.h[5]\n        mla             \\tmp1\\().8h, \\src8\\().8h, v0.h[7]\n        mla             \\tmp2\\().8h, \\src9\\().8h, v0.h[7]\n        mla             \\dst1\\().8h, \\src7\\().8h, v0.h[6]\n        mla             \\dst2\\().8h, \\src8\\().8h, v0.h[6]\n.if \\idx2 == 3\n        mla             \\tmp1\\().8h, \\src4\\().8h, v0.h[3]\n        mla             \\tmp2\\().8h, \\src5\\().8h, v0.h[3]\n.else\n        mla             \\tmp1\\().8h, \\src5\\().8h, v0.h[4]\n        mla             \\tmp2\\().8h, \\src6\\().8h, v0.h[4]\n.endif\n        sqadd           \\dst1\\().8h, \\dst1\\().8h, \\tmp1\\().8h\n        sqadd           \\dst2\\().8h, \\dst2\\().8h, \\tmp2\\().8h\n.endm\n\n// Load pixels and extend them to 16 bit\n.macro loadl dst1, dst2, dst3, dst4\n        ld1             {v1.8b}, [x2], x3\n        ld1             {v2.8b}, [x2], x3\n        ld1             {v3.8b}, [x2], x3\n.ifnb \\dst4\n        ld1             {v4.8b}, [x2], x3\n.endif\n        uxtl            \\dst1\\().8h, v1.8b\n        uxtl            \\dst2\\().8h, v2.8b\n        uxtl            \\dst3\\().8h, v3.8b\n.ifnb \\dst4\n        uxtl            \\dst4\\().8h, v4.8b\n.endif\n.endm\n\n// Instantiate a vertical filter function for filtering 8 pixels at a time.\n// The height is passed in x4, the width in x5 and the filter coefficients\n// in x6. idx2 is the index of the largest filter coefficient (3 or 4)\n// and idx1 is the other one of them.\n.macro do_8tap_8v type, idx1, idx2\nfunction \\type\\()_8tap_8v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n1:\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n        mov             x6,  x4\n\n        loadl           v17, v18, v19\n\n        loadl           v20, v21, v22, v23\n2:\n        loadl           v24, v25, v26, v27\n        convolve        v1,  v2,  v17, v18, v19, v20, v21, v22, v23, v24, v25, \\idx1, \\idx2, v5,  v6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:13", "text": "// The height is passed in x4, the width in x5 and the filter coefficients\n// in x6. idx2 is the index of the largest filter coefficient (3 or 4)\n// and idx1 is the other one of them.\n.macro do_8tap_8v type, idx1, idx2\nfunction \\type\\()_8tap_8v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n1:\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n        mov             x6,  x4\n\n        loadl           v17, v18, v19\n\n        loadl           v20, v21, v22, v23\n2:\n        loadl           v24, v25, v26, v27\n        convolve        v1,  v2,  v17, v18, v19, v20, v21, v22, v23, v24, v25, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v19, v20, v21, v22, v23, v24, v25, v26, v27, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        loadl           v16, v17, v18, v19\n        convolve        v1,  v2,  v21, v22, v23, v24, v25, v26, v27, v16, v17, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v23, v24, v25, v26, v27, v16, v17, v18, v19, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.eq            8f\n\n        loadl           v20, v21, v22, v23\n        convolve        v1,  v2,  v25, v26, v27, v16, v17, v18, v19, v20, v21, \\idx1, \\idx2, v5,  v6\n        convolve        v3,  v4,  v27, v16, v17, v18, v19, v20, v21, v22, v23, \\idx1, \\idx2, v5,  v6\n        do_store        v1,  v2,  v3,  v4,  v5,  v6,  v7,  v28, \\type\n\n        subs            x6,  x6,  #4\n        b.ne            2b\n\n8:\n        subs            x5,  x5,  #8\n        b.eq            9f\n        // x0 -= h * dst_stride\n        msub            x0,  x1,  x4, x0\n        // x2 -= h * src_stride\n        msub            x2,  x3,  x4, x2\n        // x2 -= 8 * src_stride\n        sub             x2,  x2,  x3, lsl #3\n        // x2 += 1 * src_stride\n        add             x2,  x2,  x3\n        add             x2,  x2,  #8\n        add             x0,  x0,  #8\n        b               1b\n9:\n        ret\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:14", "text": "b.ne            2b\n\n8:\n        subs            x5,  x5,  #8\n        b.eq            9f\n        // x0 -= h * dst_stride\n        msub            x0,  x1,  x4, x0\n        // x2 -= h * src_stride\n        msub            x2,  x3,  x4, x2\n        // x2 -= 8 * src_stride\n        sub             x2,  x2,  x3, lsl #3\n        // x2 += 1 * src_stride\n        add             x2,  x2,  x3\n        add             x2,  x2,  #8\n        add             x0,  x0,  #8\n        b               1b\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_8v put, 3, 4\ndo_8tap_8v put, 4, 3\ndo_8tap_8v avg, 3, 4\ndo_8tap_8v avg, 4, 3\n\n\n// Instantiate a vertical filter function for filtering a 4 pixels wide\n// slice. The first half of the registers contain one row, while the second\n// half of a register contains the second-next row (also stored in the first\n// half of the register two steps ahead). The convolution does two outputs\n// at a time; the output of v17-v24 into one, and v18-v25 into another one.\n// The first half of first output is the first output row, the first half\n// of the other output is the second output row. The second halves of the\n// registers are rows 3 and 4.\n// This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type, idx1, idx2\nfunction \\type\\()_8tap_4v_\\idx1\\idx2\n        sub             x2,  x2,  x3, lsl #1\n        sub             x2,  x2,  x3\n        ld1             {v0.8h},  [x6]\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        ld1             {v3.s}[0],  [x2], x3\n        ld1             {v4.s}[0],  [x2], x3\n        ld1             {v5.s}[0],  [x2], x3\n        ld1             {v6.s}[0],  [x2], x3\n        trn1            v1.2s,  v1.2s,  v3.2s\n        ld1             {v7.s}[0],  [x2], x3\n        trn1            v2.2s,  v2.2s,  v4.2s\n        ld1             {v26.s}[0], [x2], x3\n        uxtl            v17.8h, v1.8b\n        trn1            v3.2s,  v3.2s,  v5.2s\n        ld1             {v27.s}[0], [x2], x3\n        uxtl            v18.8h, v2.8b\n        trn1            v4.2s,  v4.2s,  v6.2s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:15", "text": "ld1             {v0.8h},  [x6]\n.ifc \\type,avg\n        mov             x7,  x0\n.endif\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        ld1             {v3.s}[0],  [x2], x3\n        ld1             {v4.s}[0],  [x2], x3\n        ld1             {v5.s}[0],  [x2], x3\n        ld1             {v6.s}[0],  [x2], x3\n        trn1            v1.2s,  v1.2s,  v3.2s\n        ld1             {v7.s}[0],  [x2], x3\n        trn1            v2.2s,  v2.2s,  v4.2s\n        ld1             {v26.s}[0], [x2], x3\n        uxtl            v17.8h, v1.8b\n        trn1            v3.2s,  v3.2s,  v5.2s\n        ld1             {v27.s}[0], [x2], x3\n        uxtl            v18.8h, v2.8b\n        trn1            v4.2s,  v4.2s,  v6.2s\n        ld1             {v28.s}[0], [x2], x3\n        uxtl            v19.8h, v3.8b\n        trn1            v5.2s,  v5.2s,  v7.2s\n        ld1             {v29.s}[0], [x2], x3\n        uxtl            v20.8h, v4.8b\n        trn1            v6.2s,  v6.2s,  v26.2s\n        uxtl            v21.8h, v5.8b\n        trn1            v7.2s,  v7.2s,  v27.2s\n        uxtl            v22.8h, v6.8b\n        trn1            v26.2s, v26.2s, v28.2s\n        uxtl            v23.8h, v7.8b\n        trn1            v27.2s, v27.2s, v29.2s\n        uxtl            v24.8h, v26.8b\n        uxtl            v25.8h, v27.8b\n\n        convolve        v1,  v2,  v17, v18, v19, v20, v21, v22, v23, v24, v25, \\idx1, \\idx2, v3,  v4\n        do_store4       v1,  v2,  v5,  v6,  \\type\n\n        subs            x4,  x4,  #4\n        b.eq            9f\n\n        ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        trn1            v28.2s, v28.2s, v1.2s\n        trn1            v29.2s, v29.2s, v2.2s\n        ld1             {v1.s}[1],  [x2], x3\n        uxtl            v26.8h, v28.8b\n        ld1             {v2.s}[1],  [x2], x3\n        uxtl            v27.8h, v29.8b\n        uxtl            v28.8h, v1.8b\n        uxtl            v29.8h, v2.8b\n\n        convolve        v1,  v2,  v21, v22, v23, v24, v25, v26, v27, v28, v29, \\idx1, \\idx2, v3,  v4\n        do_store4       v1,  v2,  v5,  v6,  \\type\n\n9:\n        ret\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:16", "text": "ld1             {v1.s}[0],  [x2], x3\n        ld1             {v2.s}[0],  [x2], x3\n        trn1            v28.2s, v28.2s, v1.2s\n        trn1            v29.2s, v29.2s, v2.2s\n        ld1             {v1.s}[1],  [x2], x3\n        uxtl            v26.8h, v28.8b\n        ld1             {v2.s}[1],  [x2], x3\n        uxtl            v27.8h, v29.8b\n        uxtl            v28.8h, v1.8b\n        uxtl            v29.8h, v2.8b\n\n        convolve        v1,  v2,  v21, v22, v23, v24, v25, v26, v27, v28, v29, \\idx1, \\idx2, v3,  v4\n        do_store4       v1,  v2,  v5,  v6,  \\type\n\n9:\n        ret\nendfunc\n.endm\n\ndo_8tap_4v put, 3, 4\ndo_8tap_4v put, 4, 3\ndo_8tap_4v avg, 3, 4\ndo_8tap_4v avg, 4, 3\n\n\n.macro do_8tap_v_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_neon, export=1\n        uxtw            x4,  w4\n        movrel          x5,  X(ff_vp9_subpel_filters), 256*\\offset\n        cmp             w6,  #8\n        add             x6,  x5,  w6, uxtw #4\n        mov             x5,  #\\size\n.if \\size >= 8\n        b.ge            \\type\\()_8tap_8v_34\n        b               \\type\\()_8tap_8v_43\n.else\n        b.ge            \\type\\()_8tap_4v_34\n        b               \\type\\()_8tap_4v_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size\ndo_8tap_v_func put, regular, 1, \\size\ndo_8tap_v_func avg, regular, 1, \\size\ndo_8tap_v_func put, sharp,   2, \\size\ndo_8tap_v_func avg, sharp,   2, \\size\ndo_8tap_v_func put, smooth,  0, \\size\ndo_8tap_v_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_v_filters 64\ndo_8tap_v_filters 32\ndo_8tap_v_filters 16\ndo_8tap_v_filters 8\ndo_8tap_v_filters 4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 601, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vp9mc_neon.S:17", "text": "endfunc\n.endm\n\n.macro do_8tap_v_filters size\ndo_8tap_v_func put, regular, 1, \\size\ndo_8tap_v_func avg, regular, 1, \\size\ndo_8tap_v_func put, sharp,   2, \\size\ndo_8tap_v_func avg, sharp,   2, \\size\ndo_8tap_v_func put, smooth,  0, \\size\ndo_8tap_v_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_v_filters 64\ndo_8tap_v_filters 32\ndo_8tap_v_filters 16\ndo_8tap_v_filters 8\ndo_8tap_v_filters 4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/aarch64/vp9mc_neon.S", "line_start": 641, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro alf_luma_filter_pixel index, pix_size, addr1, addr2, offset1, offset2\n    .if \\pix_size == 1\n        ldur            d3, [\\addr1, #\\offset1]\n        ldur            d4, [\\addr2, #\\offset2]\n        uxtl            v6.8h, v3.8b\n        uxtl            v7.8h, v4.8b\n    .else\n        ldur            q6, [\\addr1, #(2*\\offset1)]\n        ldur            q7, [\\addr2, #(2*\\offset2)]\n    .endif\n    .if \\index < 8\n        dup             v17.4h, v0.h[\\index]        // clip\n        dup             v18.4h, v16.h[\\index]       // -clip\n        dup             v19.4h, v1.h[\\index]        // filter\n\n        dup             v26.4h, v22.h[\\index]       // clip\n        dup             v27.4h, v23.h[\\index]       // -clip\n        dup             v28.4h, v24.h[\\index]       // filter\n    .else\n        dup             v17.4h, v0.h[\\index - 8]    // clip\n        dup             v18.4h, v16.h[\\index - 8]   // -clip\n        dup             v19.4h, v1.h[\\index - 8]    // filter\n\n        dup             v26.4h, v22.h[\\index - 8]   // clip\n        dup             v27.4h, v23.h[\\index - 8]   // -clip\n        dup             v28.4h, v24.h[\\index - 8]   // filter\n    .endif\n        ins             v17.d[1], v26.d[0]\n        ins             v18.d[1], v27.d[0]\n        ins             v19.d[1], v28.d[0]\n\n        sub             v6.8h, v6.8h, v5.8h\n        sub             v7.8h, v7.8h, v5.8h\n        smin            v6.8h, v6.8h, v17.8h\n        smin            v7.8h, v7.8h, v17.8h\n        smax            v6.8h, v6.8h, v18.8h\n        smax            v7.8h, v7.8h, v18.8h\n        add             v6.8h, v6.8h, v7.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:2", "text": ".else\n        dup             v17.4h, v0.h[\\index - 8]    // clip\n        dup             v18.4h, v16.h[\\index - 8]   // -clip\n        dup             v19.4h, v1.h[\\index - 8]    // filter\n\n        dup             v26.4h, v22.h[\\index - 8]   // clip\n        dup             v27.4h, v23.h[\\index - 8]   // -clip\n        dup             v28.4h, v24.h[\\index - 8]   // filter\n    .endif\n        ins             v17.d[1], v26.d[0]\n        ins             v18.d[1], v27.d[0]\n        ins             v19.d[1], v28.d[0]\n\n        sub             v6.8h, v6.8h, v5.8h\n        sub             v7.8h, v7.8h, v5.8h\n        smin            v6.8h, v6.8h, v17.8h\n        smin            v7.8h, v7.8h, v17.8h\n        smax            v6.8h, v6.8h, v18.8h\n        smax            v7.8h, v7.8h, v18.8h\n        add             v6.8h, v6.8h, v7.8h\n        smlal           v20.4s, v19.4h, v6.4h       // v20: sum\n        smlal2          v21.4s, v19.8h, v6.8h       // v21: sum\n.endm\n\n/* x0: dst\n * x1: pp\n * x2: filter\n * x3: clip\n * w4: is_near_vb\n * w5: pix_max\n */\n.macro alf_filter_luma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.8h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldur            q22, [clip, #24]            // clip\n        ldur            q24, [filter, #24]          // filter\n\n        ldr             x5, [pp]                    // x5: p0\n        ldr             x6, [pp, #(5*8)]            // x6: p5\n        ldr             x7, [pp, #(6*8)]            // x7: p6\n        neg             v16.8h, v0.8h               // -clip\n        neg             v23.8h, v22.8h              // -clip\n\n    .if \\pix_size == 1\n        ldr             d2, [x5]                    // curr\n    .else\n        ldr             q5, [x5]                    // curr\n    .endif\n        movi            v20.4s, #64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:3", "text": ".endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldur            q22, [clip, #24]            // clip\n        ldur            q24, [filter, #24]          // filter\n\n        ldr             x5, [pp]                    // x5: p0\n        ldr             x6, [pp, #(5*8)]            // x6: p5\n        ldr             x7, [pp, #(6*8)]            // x7: p6\n        neg             v16.8h, v0.8h               // -clip\n        neg             v23.8h, v22.8h              // -clip\n\n    .if \\pix_size == 1\n        ldr             d2, [x5]                    // curr\n    .else\n        ldr             q5, [x5]                    // curr\n    .endif\n        movi            v20.4s, #64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3\n1:\n    .if \\pix_size == 1\n        uxtl            v5.8h, v2.8b\n    .endif\n        mov             v21.16b, v20.16b\n        ldr             x8, [pp, #(3*8)]            // p3\n        ldr             x9, [pp, #(4*8)]            // p4\n        alf_luma_filter_pixel 0, \\pix_size, x6, x7, 0, 0\n\n        ldr             x6, [pp, #(1*8)]            // p1\n        ldr             x7, [pp, #(2*8)]            // p2\n        alf_luma_filter_pixel 1, \\pix_size, x8, x9, 1, -1\n        alf_luma_filter_pixel 2, \\pix_size, x8, x9, 0, 0\n        alf_luma_filter_pixel 3, \\pix_size, x8, x9, -1, 1\n\n        alf_luma_filter_pixel 4, \\pix_size, x6, x7, 2, -2\n        alf_luma_filter_pixel 5, \\pix_size, x6, x7, 1, -1\n        alf_luma_filter_pixel 6, \\pix_size, x6, x7, 0, 0\n        alf_luma_filter_pixel 7, \\pix_size, x6, x7, -1, 1\n\n        ldr             d0, [clip, #16]             // clip\n        ldr             d1, [filter, #16]           // filter\n        neg             v16.4h, v0.4h               // -clip\n\n        ldr             d22, [clip, #40]            // clip\n        ldr             d24, [filter, #40]          // filter\n        neg             v23.4h, v22.4h              // -clip\n        alf_luma_filter_pixel 8, \\pix_size, x6, x7, -2, 2\n        alf_luma_filter_pixel 9, \\pix_size, x5, x5, 3, -3\n        alf_luma_filter_pixel 10, \\pix_size, x5, x5, 2, -2\n        alf_luma_filter_pixel 11, \\pix_size, x5, x5, 1, -1\n\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        sshr            v21.4s, v21.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n        sshr            v21.4s, v21.4s, #7\n3:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:4", "text": "ldr             d0, [clip, #16]             // clip\n        ldr             d1, [filter, #16]           // filter\n        neg             v16.4h, v0.4h               // -clip\n\n        ldr             d22, [clip, #40]            // clip\n        ldr             d24, [filter, #40]          // filter\n        neg             v23.4h, v22.4h              // -clip\n        alf_luma_filter_pixel 8, \\pix_size, x6, x7, -2, 2\n        alf_luma_filter_pixel 9, \\pix_size, x5, x5, 3, -3\n        alf_luma_filter_pixel 10, \\pix_size, x5, x5, 2, -2\n        alf_luma_filter_pixel 11, \\pix_size, x5, x5, 1, -1\n\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        sshr            v21.4s, v21.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n        sshr            v21.4s, v21.4s, #7\n3:\n        uxtl            v22.4s, v5.4h\n        uxtl2           v23.4s, v5.8h\n        add             v20.4s, v20.4s, v22.4s\n        add             v21.4s, v21.4s, v23.4s\n        sqxtun          v20.4h, v20.4s\n        sqxtun2         v20.8h, v21.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             d20, [dst]\n    .else\n        umin            v20.8h, v20.8h, v25.8h\n        str             q20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\n.macro alf_chroma_filter_pixel index, pix_size, addr1, addr2, offset1, offset2\n    .if \\pix_size == 1\n        ldur            s3, [\\addr1, #\\offset1]\n        ldur            s4, [\\addr2, #\\offset2]\n        uxtl            v6.8h, v3.8b\n        uxtl            v7.8h, v4.8b\n    .else\n        ldur            d6, [\\addr1, #(2*\\offset1)]\n        ldur            d7, [\\addr2, #(2*\\offset2)]\n    .endif\n    .if \\index < 8\n        dup             v17.4h, v0.h[\\index]        // v17: clip[0]\n        dup             v18.4h, v16.h[\\index]       // v18: -clip[0]\n        dup             v19.4h, v1.h[\\index]        // v19: filter[0]\n    .else\n        dup             v17.4h, v0.h[\\index - 8]    // v17: clip[0]\n        dup             v18.4h, v16.h[\\index - 8]   // v18: -clip[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:5", "text": ".unreq          pix_max\n.endm\n\n.macro alf_chroma_filter_pixel index, pix_size, addr1, addr2, offset1, offset2\n    .if \\pix_size == 1\n        ldur            s3, [\\addr1, #\\offset1]\n        ldur            s4, [\\addr2, #\\offset2]\n        uxtl            v6.8h, v3.8b\n        uxtl            v7.8h, v4.8b\n    .else\n        ldur            d6, [\\addr1, #(2*\\offset1)]\n        ldur            d7, [\\addr2, #(2*\\offset2)]\n    .endif\n    .if \\index < 8\n        dup             v17.4h, v0.h[\\index]        // v17: clip[0]\n        dup             v18.4h, v16.h[\\index]       // v18: -clip[0]\n        dup             v19.4h, v1.h[\\index]        // v19: filter[0]\n    .else\n        dup             v17.4h, v0.h[\\index - 8]    // v17: clip[0]\n        dup             v18.4h, v16.h[\\index - 8]   // v18: -clip[0]\n        dup             v19.4h, v1.h[\\index - 8]    // v19: filter[0]\n    .endif\n\n        sub             v6.4h, v6.4h, v5.4h\n        sub             v7.4h, v7.4h, v5.4h\n        smin            v6.4h, v6.4h, v17.4h\n        smin            v7.4h, v7.4h, v17.4h\n        smax            v6.4h, v6.4h, v18.4h\n        smax            v7.4h, v7.4h, v18.4h\n        add             v6.4h, v6.4h, v7.4h\n        smlal           v20.4s, v19.4h, v6.4h       // v20: sum\n.endm\n\n/* x0: dst\n * x1: pp\n * x2: filter\n * x3: clip\n * w4: is_near_vb\n * w5: pix_max\n */\n.macro alf_filter_chroma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.4h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldr             x5, [pp]                    // p0\n        ldr             x6, [pp, #(3*8)]            // p3\n        ldr             x7, [pp, #(4*8)]            // p4\n        neg             v16.8h, v0.8h               // -clip\n\n    .if \\pix_size == 1\n        ldr             s2, [x5]                    // curr\n    .else", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:6", "text": ".macro alf_filter_chroma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.4h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldr             x5, [pp]                    // p0\n        ldr             x6, [pp, #(3*8)]            // p3\n        ldr             x7, [pp, #(4*8)]            // p4\n        neg             v16.8h, v0.8h               // -clip\n\n    .if \\pix_size == 1\n        ldr             s2, [x5]                    // curr\n    .else\n        ldr             d5, [x5]                    // curr\n    .endif\n        movi            v20.4s, #64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3\n1:\n    .if \\pix_size == 1\n        uxtl            v5.8h, v2.8b\n    .endif\n        ldr             x8, [pp, #(1*8)]            // p1\n        ldr             x9, [pp, #(2*8)]            // p2\n        alf_chroma_filter_pixel 0, \\pix_size, x6, x7, 0, 0\n        alf_chroma_filter_pixel 1, \\pix_size, x8, x9, 1, -1\n        alf_chroma_filter_pixel 2, \\pix_size, x8, x9, 0, 0\n        alf_chroma_filter_pixel 3, \\pix_size, x8, x9, -1, 1\n        alf_chroma_filter_pixel 4, \\pix_size, x5, x5, 2, -2\n        alf_chroma_filter_pixel 5, \\pix_size, x5, x5, 1, -1\n\n        uxtl            v22.4s, v5.4h\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        umin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:7", "text": "sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        umin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\nfunction ff_alf_filter_luma_kernel_8_neon, export=1\n        alf_filter_luma_kernel 1\nendfunc\n\nfunction ff_alf_filter_luma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_luma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_luma_kernel 2\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_8_neon, export=1\n        alf_filter_chroma_kernel 1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel 2\nendfunc\n\n#define ALF_BLOCK_SIZE          4\n#define ALF_GRADIENT_STEP       2\n#define ALF_GRADIENT_BORDER     2\n#define ALF_NUM_DIR             4\n#define ALF_GRAD_BORDER_X2      (ALF_GRADIENT_BORDER * 2)\n#define ALF_STRIDE_MUL          (ALF_GRADIENT_BORDER + 1)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:8", "text": "alf_filter_chroma_kernel 1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel 2\nendfunc\n\n#define ALF_BLOCK_SIZE          4\n#define ALF_GRADIENT_STEP       2\n#define ALF_GRADIENT_BORDER     2\n#define ALF_NUM_DIR             4\n#define ALF_GRAD_BORDER_X2      (ALF_GRADIENT_BORDER * 2)\n#define ALF_STRIDE_MUL          (ALF_GRADIENT_BORDER + 1)\n#define ALF_GRAD_X_VSTEP        (ALF_GRADIENT_STEP * 8)\n#define ALF_GSTRIDE_MUL         (ALF_NUM_DIR / ALF_GRADIENT_STEP)\n\n// Shift right: equal to division by 2 (see ALF_GRADIENT_STEP)\n#define ALF_GSTRIDE_XG_BYTES    (2 * ALF_NUM_DIR / ALF_GRADIENT_STEP)\n\n#define ALF_GSTRIDE_SUB_BYTES   (2 * ((ALF_BLOCK_SIZE + ALF_GRADIENT_BORDER * 2) / ALF_GRADIENT_STEP) * ALF_NUM_DIR)\n\n#define ALF_CLASS_INC           (ALF_GRADIENT_BORDER / ALF_GRADIENT_STEP)\n#define ALF_CLASS_END           ((ALF_BLOCK_SIZE + ALF_GRADIENT_BORDER * 2) / ALF_GRADIENT_STEP)\n\n.macro ff_alf_classify_grad pix_size\n        // class_idx     .req x0\n        // transpose_idx .req x1\n        // _src          .req x2\n        // _src_stride   .req x3\n        // width         .req w4\n        // height        .req w5\n        // vb_pos        .req w6\n        // gradient_tmp  .req x7\n\n        mov             w16, #ALF_STRIDE_MUL\n        add             w5, w5, #ALF_GRAD_BORDER_X2 // h = height + ALF_GRAD_BORDER_X2\n        mul             x16, x3, x16                // ALF_STRIDE_MUL * stride\n        add             w4, w4, #ALF_GRAD_BORDER_X2 // w = width + ALF_GRAD_BORDER_X2\n        sub             x15, x2, x16                // src -= (ALF_STRIDE_MUL * stride)\n        mov             x17, x7\n    .if \\pix_size == 1\n        sub             x15, x15, #ALF_GRADIENT_BORDER\n    .else\n        sub             x15, x15, #ALF_GRAD_BORDER_X2\n    .endif\n        mov             w8, #0                      // y loop: y = 0\n1:\n        add             x16, x8, #1\n        mul             x16, x16, x3\n        madd            x10, x8, x3, x15            // s0 = src + y * stride\n        add             x14, x16, x3\n        add             x11, x15, x16               // s1\n        add             x16, x14, x3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:9", "text": "mov             w16, #ALF_STRIDE_MUL\n        add             w5, w5, #ALF_GRAD_BORDER_X2 // h = height + ALF_GRAD_BORDER_X2\n        mul             x16, x3, x16                // ALF_STRIDE_MUL * stride\n        add             w4, w4, #ALF_GRAD_BORDER_X2 // w = width + ALF_GRAD_BORDER_X2\n        sub             x15, x2, x16                // src -= (ALF_STRIDE_MUL * stride)\n        mov             x17, x7\n    .if \\pix_size == 1\n        sub             x15, x15, #ALF_GRADIENT_BORDER\n    .else\n        sub             x15, x15, #ALF_GRAD_BORDER_X2\n    .endif\n        mov             w8, #0                      // y loop: y = 0\n1:\n        add             x16, x8, #1\n        mul             x16, x16, x3\n        madd            x10, x8, x3, x15            // s0 = src + y * stride\n        add             x14, x16, x3\n        add             x11, x15, x16               // s1\n        add             x16, x14, x3\n        add             x12, x15, x14               // s2\n        add             x13, x15, x16               // s3\n\n        // if (y == vb_pos): s3 = s2\n        cmp             w8, w6\n        add             w16, w6, #ALF_GRADIENT_BORDER\n        csel            x13, x12, x13, eq\n        // if (y == vb_pos + 2): s0 = s1\n        cmp             w8, w16\n        csel            x10, x11, x10, eq\n\n    .if \\pix_size == 1\n        sub             x10, x10, #1                // s0-1\n        sub             x11, x11, #2\n        sub             x12, x12, #2\n    .else\n        sub             x10, x10, #2                // s0-1\n        sub             x11, x11, #4\n        sub             x12, x12, #4\n    .endif\n\n        // x loop\n        mov             w9, #0\n        b               11f\n2:\n        // Store operation starts from the second cycle\n        st2             {v4.8h, v5.8h}, [x17], #32\n11:\n    .if \\pix_size == 1\n        // Load 8 pixels: s0 & s1+2\n        mov             x16, #1\n        mov             x14, #7\n        ld1             {v0.8b}, [x10], x16         // s0-1\n        ld1             {v2.8b}, [x13], x16         // s3\n        ld1             {v1.8b}, [x10], x14         // s0\n        ld1             {v3.8b}, [x13], x14         // s3+1\n        uxtl            v16.8h, v0.8b\n        uxtl            v20.8h, v1.8b\n        uxtl            v28.8h, v2.8b\n        uxtl            v19.8h, v3.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:10", "text": "// x loop\n        mov             w9, #0\n        b               11f\n2:\n        // Store operation starts from the second cycle\n        st2             {v4.8h, v5.8h}, [x17], #32\n11:\n    .if \\pix_size == 1\n        // Load 8 pixels: s0 & s1+2\n        mov             x16, #1\n        mov             x14, #7\n        ld1             {v0.8b}, [x10], x16         // s0-1\n        ld1             {v2.8b}, [x13], x16         // s3\n        ld1             {v1.8b}, [x10], x14         // s0\n        ld1             {v3.8b}, [x13], x14         // s3+1\n        uxtl            v16.8h, v0.8b\n        uxtl            v20.8h, v1.8b\n        uxtl            v28.8h, v2.8b\n        uxtl            v19.8h, v3.8b\n\n        mov             x16, #2\n        mov             x14, #4\n        ld1             {v0.8b}, [x11], x16         // s1-2\n        ld1             {v3.8b}, [x12], x16         // s2-2\n        ld1             {v1.8b}, [x11], x16         // s1\n        ld1             {v4.8b}, [x12], x16         // s2\n        ld1             {v2.8b}, [x11], x14         // s1+2\n        ld1             {v5.8b}, [x12], x14         // s2+2\n        uxtl            v17.8h, v0.8b\n        uxtl            v22.8h, v1.8b\n        uxtl            v26.8h, v2.8b\n        uxtl            v18.8h, v3.8b\n        uxtl            v24.8h, v4.8b\n        uxtl            v27.8h, v5.8b\n    .else\n        mov             x16, #2\n        mov             x14, #14\n        ld1             {v16.8h}, [x10], x16        // s0-1\n        ld1             {v28.8h}, [x13], x16        // s3\n        ld1             {v20.8h}, [x10], x14        // s0\n        ld1             {v19.8h}, [x13], x14        // s3+1\n\n        mov             x16, #4\n        mov             x14, #8\n        ld1             {v17.8h}, [x11], x16        // s1-2\n        ld1             {v18.8h}, [x12], x16        // s2-2\n        ld1             {v22.8h}, [x11], x16        // s1\n        ld1             {v24.8h}, [x12], x16        // s2\n        ld1             {v26.8h}, [x11], x14        // s1+2\n        ld1             {v27.8h}, [x12], x14        // s2+2\n    .endif\n\n        // Grad: Vertical & D0 (interleaved)\n        trn1            v21.8h, v20.8h, v16.8h      // first abs: operand 1\n        rev32           v23.8h, v22.8h              // second abs: operand 1\n        trn2            v29.8h, v28.8h, v19.8h      // second abs: operand 2\n        trn1            v30.8h, v22.8h, v22.8h\n        trn2            v31.8h, v24.8h, v24.8h\n        add             v30.8h, v30.8h, v30.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:11", "text": "ld1             {v20.8h}, [x10], x14        // s0\n        ld1             {v19.8h}, [x13], x14        // s3+1\n\n        mov             x16, #4\n        mov             x14, #8\n        ld1             {v17.8h}, [x11], x16        // s1-2\n        ld1             {v18.8h}, [x12], x16        // s2-2\n        ld1             {v22.8h}, [x11], x16        // s1\n        ld1             {v24.8h}, [x12], x16        // s2\n        ld1             {v26.8h}, [x11], x14        // s1+2\n        ld1             {v27.8h}, [x12], x14        // s2+2\n    .endif\n\n        // Grad: Vertical & D0 (interleaved)\n        trn1            v21.8h, v20.8h, v16.8h      // first abs: operand 1\n        rev32           v23.8h, v22.8h              // second abs: operand 1\n        trn2            v29.8h, v28.8h, v19.8h      // second abs: operand 2\n        trn1            v30.8h, v22.8h, v22.8h\n        trn2            v31.8h, v24.8h, v24.8h\n        add             v30.8h, v30.8h, v30.8h\n        add             v31.8h, v31.8h, v31.8h\n        sub             v0.8h, v30.8h, v21.8h\n        sub             v1.8h, v31.8h, v23.8h\n        sabd            v4.8h, v0.8h, v24.8h\n\n        // Grad: Horizontal & D1 (interleaved)\n        trn2            v21.8h, v17.8h, v20.8h      // first abs: operand 1\n        saba            v4.8h, v1.8h, v29.8h\n        trn2            v23.8h, v22.8h, v18.8h      // first abs: operand 2\n        trn1            v25.8h, v24.8h, v26.8h      // second abs: operand 1\n        trn1            v29.8h, v27.8h, v28.8h      // second abs: operand 2\n        sub             v0.8h, v30.8h, v21.8h\n        sub             v1.8h, v31.8h, v25.8h\n        add             w9, w9, #8                  // x += 8\n        sabd            v5.8h, v0.8h, v23.8h\n        cmp             w9, w4\n        saba            v5.8h, v1.8h, v29.8h\n        b.lt            2b\n\n        add             w8, w8, #ALF_GRADIENT_STEP  // y += ALF_GRADIENT_STEP\n        // 8 pixels -> 4 cycles of generic\n        // 4 pixels -> paddings => half needs to be saved\n        st2             {v4.4h, v5.4h}, [x17], #16\n        cmp             w8, w5\n        b.lt            1b\n        ret\n.endm\n\n.macro ff_alf_classify_sum\n        ld1             {v0.8h, v1.8h, v2.8h}, [x2], x3\n        uaddw           v16.4s, v16.4s, v0.4h\n        uaddw           v17.4s, v17.4s, v1.4h\n        uaddw           v18.4s, v18.4s, v2.4h\n        uaddw2          v16.4s, v16.4s, v0.8h\n        uaddw2          v17.4s, v17.4s, v1.8h\n        uaddw2          v18.4s, v18.4s, v2.8h\n.endm\n\nfunction ff_alf_classify_sum_neon, export=1\n        // sum0          .req x0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:12", "text": "// 8 pixels -> 4 cycles of generic\n        // 4 pixels -> paddings => half needs to be saved\n        st2             {v4.4h, v5.4h}, [x17], #16\n        cmp             w8, w5\n        b.lt            1b\n        ret\n.endm\n\n.macro ff_alf_classify_sum\n        ld1             {v0.8h, v1.8h, v2.8h}, [x2], x3\n        uaddw           v16.4s, v16.4s, v0.4h\n        uaddw           v17.4s, v17.4s, v1.4h\n        uaddw           v18.4s, v18.4s, v2.4h\n        uaddw2          v16.4s, v16.4s, v0.8h\n        uaddw2          v17.4s, v17.4s, v1.8h\n        uaddw2          v18.4s, v18.4s, v2.8h\n.endm\n\nfunction ff_alf_classify_sum_neon, export=1\n        // sum0          .req x0\n        // sum1          .req x1\n        // grad          .req x2\n        // gshift        .req w3\n        // steps         .req w4\n        lsl             w3, w3, #1\n        cmp             w4, #4\n        add             w3, w3, #32\n\n        ld1             {v0.8h, v1.8h, v2.8h}, [x2], x3\n        uxtl            v16.4s, v0.4h\n        uxtl            v17.4s, v1.4h\n        uxtl            v18.4s, v2.4h\n        uaddw2          v16.4s, v16.4s, v0.8h\n        uaddw2          v17.4s, v17.4s, v1.8h\n        uaddw2          v18.4s, v18.4s, v2.8h\n        ff_alf_classify_sum\n        ff_alf_classify_sum\n\n        blt             60f\n        ff_alf_classify_sum\n60:\n        add             v16.4s, v16.4s, v17.4s\n        add             v18.4s, v18.4s, v17.4s\n        st1             {v16.4s}, [x0]\n        st1             {v18.4s}, [x1]\n        ret\nendfunc\n\nfunction ff_alf_classify_grad_8_neon, export=1\n        ff_alf_classify_grad 1\nendfunc\n\nfunction ff_alf_classify_grad_10_neon, export=1\nendfunc\n\nfunction ff_alf_classify_grad_12_neon, export=1\n        ff_alf_classify_grad 2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 441, "line_end": 498}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:13", "text": "60:\n        add             v16.4s, v16.4s, v17.4s\n        add             v18.4s, v18.4s, v17.4s\n        st1             {v16.4s}, [x0]\n        st1             {v18.4s}, [x1]\n        ret\nendfunc\n\nfunction ff_alf_classify_grad_8_neon, export=1\n        ff_alf_classify_grad 1\nendfunc\n\nfunction ff_alf_classify_grad_10_neon, export=1\nendfunc\n\nfunction ff_alf_classify_grad_12_neon, export=1\n        ff_alf_classify_grad 2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/alf.S", "line_start": 481, "line_end": 498}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:7", "text": "sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        umin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\nfunction ff_alf_filter_luma_kernel_8_neon, export=1\n        alf_filter_luma_kernel 1\nendfunc\n\nfunction ff_alf_filter_luma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_luma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_luma_kernel 2\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_8_neon, export=1\n        alf_filter_chroma_kernel 1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel 2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "40feba5f77e1c1dc185a9b5e6f2c7e33d211b993", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/40feba5f77e1c1dc185a9b5e6f2c7e33d211b993/libavcodec/aarch64/vvc/alf.S", "line_start": 241, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:8", "text": "alf_filter_chroma_kernel 1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel 2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "40feba5f77e1c1dc185a9b5e6f2c7e33d211b993", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/40feba5f77e1c1dc185a9b5e6f2c7e33d211b993/libavcodec/aarch64/vvc/alf.S", "line_start": 281, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:4", "text": "ldr             d0, [clip, #16]             // clip\n        ldr             d1, [filter, #16]           // filter\n        neg             v16.4h, v0.4h               // -clip\n\n        ldr             d22, [clip, #40]            // clip\n        ldr             d24, [filter, #40]          // filter\n        neg             v23.4h, v22.4h              // -clip\n        alf_luma_filter_pixel 8, \\pix_size, x6, x7, -2, 2\n        alf_luma_filter_pixel 9, \\pix_size, x5, x5, 3, -3\n        alf_luma_filter_pixel 10, \\pix_size, x5, x5, 2, -2\n        alf_luma_filter_pixel 11, \\pix_size, x5, x5, 1, -1\n\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        sshr            v21.4s, v21.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n        sshr            v21.4s, v21.4s, #7\n3:\n        uxtl            v22.4s, v5.4h\n        uxtl2           v23.4s, v5.8h\n        add             v20.4s, v20.4s, v22.4s\n        add             v21.4s, v21.4s, v23.4s\n        sqxtun          v20.4h, v20.4s\n        sqxtun2         v20.8h, v21.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             d20, [dst]\n    .else\n        smin            v20.8h, v20.8h, v25.8h\n        str             q20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\n.macro alf_chroma_filter_pixel index, pix_size, addr1, addr2, offset1, offset2\n    .if \\pix_size == 1\n        ldur            s3, [\\addr1, #\\offset1]\n        ldur            s4, [\\addr2, #\\offset2]\n        uxtl            v6.8h, v3.8b\n        uxtl            v7.8h, v4.8b\n    .else\n        ldur            d6, [\\addr1, #(2*\\offset1)]\n        ldur            d7, [\\addr2, #(2*\\offset2)]\n    .endif\n    .if \\index < 8\n        dup             v17.4h, v0.h[\\index]        // v17: clip[0]\n        dup             v18.4h, v16.h[\\index]       // v18: -clip[0]\n        dup             v19.4h, v1.h[\\index]        // v19: filter[0]\n    .else\n        dup             v17.4h, v0.h[\\index - 8]    // v17: clip[0]\n        dup             v18.4h, v16.h[\\index - 8]   // v18: -clip[0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "4acb9b7d1046944345ae506165fb55883d04d8a6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4acb9b7d1046944345ae506165fb55883d04d8a6/libavcodec/aarch64/vvc/alf.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:6", "text": ".macro alf_filter_chroma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.4h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldr             x5, [pp]                    // p0\n        ldr             x6, [pp, #(3*8)]            // p3\n        ldr             x7, [pp, #(4*8)]            // p4\n        neg             v16.8h, v0.8h               // -clip\n\n    .if \\pix_size == 1\n        ldr             s2, [x5]                    // curr\n    .else\n        ldr             d5, [x5]                    // curr\n    .endif\n        movi            v20.4s, #64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3\n1:\n    .if \\pix_size == 1\n        uxtl            v5.8h, v2.8b\n    .endif\n        ldr             x8, [pp, #(1*8)]            // p1\n        ldr             x9, [pp, #(2*8)]            // p2\n        alf_chroma_filter_pixel 0, \\pix_size, x6, x7, 0, 0\n        alf_chroma_filter_pixel 1, \\pix_size, x8, x9, 1, -1\n        alf_chroma_filter_pixel 2, \\pix_size, x8, x9, 0, 0\n        alf_chroma_filter_pixel 3, \\pix_size, x8, x9, -1, 1\n        alf_chroma_filter_pixel 4, \\pix_size, x5, x5, 2, -2\n        alf_chroma_filter_pixel 5, \\pix_size, x5, x5, 1, -1\n\n        uxtl            v22.4s, v5.4h\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        smin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "4acb9b7d1046944345ae506165fb55883d04d8a6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4acb9b7d1046944345ae506165fb55883d04d8a6/libavcodec/aarch64/vvc/alf.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:7", "text": "sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        smin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\nfunction ff_alf_filter_luma_kernel_8_neon, export=1\n        alf_filter_luma_kernel 1\nendfunc\n\nfunction ff_alf_filter_luma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_luma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_luma_kernel 2\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_8_neon, export=1\n        alf_filter_chroma_kernel 1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel 2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "4acb9b7d1046944345ae506165fb55883d04d8a6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4acb9b7d1046944345ae506165fb55883d04d8a6/libavcodec/aarch64/vvc/alf.S", "line_start": 241, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:7", "text": "sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        smin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\nfunction ff_alf_filter_luma_kernel_8_neon, export=1\n        alf_filter_luma_kernel  1\nendfunc\n\nfunction ff_alf_filter_luma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_luma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_luma_kernel  2\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_8_neon, export=1\n        alf_filter_chroma_kernel  1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel  2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "99598629e8803bac406234187b0fd5676aa4bc67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99598629e8803bac406234187b0fd5676aa4bc67/libavcodec/aarch64/vvc/alf.S", "line_start": 241, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:8", "text": "alf_filter_chroma_kernel  1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, #4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, #1023\n1:\n        alf_filter_chroma_kernel  2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "99598629e8803bac406234187b0fd5676aa4bc67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99598629e8803bac406234187b0fd5676aa4bc67/libavcodec/aarch64/vvc/alf.S", "line_start": 281, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:2", "text": ".else\n        dup             v17.4h, v0.h[\\index - 8]    // clip\n        dup             v18.4h, v16.h[\\index - 8]   // -clip\n        dup             v19.4h, v1.h[\\index - 8]    // filter\n\n        dup             v26.4h, v22.h[\\index - 8]   // clip\n        dup             v27.4h, v23.h[\\index - 8]   // -clip\n        dup             v28.4h, v24.h[\\index - 8]   // filter\n    .endif\n        ins             v17.d[1], v26.d[0]\n        ins             v18.d[1], v27.d[0]\n        ins             v19.d[1], v28.d[0]\n\n        sub             v6.8h, v6.8h, v5.8h\n        sub             v7.8h, v7.8h, v5.8h\n        smin            v6.8h, v6.8h, v17.8h\n        smin            v7.8h, v7.8h, v17.8h\n        smax            v6.8h, v6.8h, v18.8h\n        smax            v7.8h, v7.8h, v18.8h\n        add             v6.8h, v6.8h, v7.8h\n        smlal           v20.4s, v19.4h, v6.4h       // v20: sum\n        smlal2          v21.4s, v19.8h, v6.8h       // v21: sum\n.endm\n\n/* x0: dst\n * x1: pp\n * x2: filter\n * x3: clip\n * w4: is_near_vb\n * w5: pix_max\n */\n.macro alf_filter_luma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.8h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldur            q22, [clip, #24]            // clip\n        ldur            q24, [filter, #24]          // filter\n\n        ldr             x5, [pp]                    // x5: p0\n        ldr             x6, [pp, #(5*8)]            // x6: p5\n        ldr             x7, [pp, #(6*8)]            // x7: p6\n        neg             v16.8h, v0.8h               // -clip\n        neg             v23.8h, v22.8h              // -clip\n\n    .if \\pix_size == 1\n        ldr             d2, [x5]                    // curr\n    .else\n        ldr             q5, [x5]                    // curr\n    .endif\n        movi            v20.4s, 64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "400843151d84180a9769a92d98379440e5a4c522", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400843151d84180a9769a92d98379440e5a4c522/libavcodec/aarch64/vvc/alf.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:3", "text": ".endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldur            q22, [clip, #24]            // clip\n        ldur            q24, [filter, #24]          // filter\n\n        ldr             x5, [pp]                    // x5: p0\n        ldr             x6, [pp, #(5*8)]            // x6: p5\n        ldr             x7, [pp, #(6*8)]            // x7: p6\n        neg             v16.8h, v0.8h               // -clip\n        neg             v23.8h, v22.8h              // -clip\n\n    .if \\pix_size == 1\n        ldr             d2, [x5]                    // curr\n    .else\n        ldr             q5, [x5]                    // curr\n    .endif\n        movi            v20.4s, 64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3\n1:\n    .if \\pix_size == 1\n        uxtl            v5.8h, v2.8b\n    .endif\n        mov             v21.16b, v20.16b\n        ldr             x8, [pp, #(3*8)]            // p3\n        ldr             x9, [pp, #(4*8)]            // p4\n        alf_luma_filter_pixel 0, \\pix_size, x6, x7, 0, 0\n\n        ldr             x6, [pp, #(1*8)]            // p1\n        ldr             x7, [pp, #(2*8)]            // p2\n        alf_luma_filter_pixel 1, \\pix_size, x8, x9, 1, -1\n        alf_luma_filter_pixel 2, \\pix_size, x8, x9, 0, 0\n        alf_luma_filter_pixel 3, \\pix_size, x8, x9, -1, 1\n\n        alf_luma_filter_pixel 4, \\pix_size, x6, x7, 2, -2\n        alf_luma_filter_pixel 5, \\pix_size, x6, x7, 1, -1\n        alf_luma_filter_pixel 6, \\pix_size, x6, x7, 0, 0\n        alf_luma_filter_pixel 7, \\pix_size, x6, x7, -1, 1\n\n        ldr             d0, [clip, #16]             // clip\n        ldr             d1, [filter, #16]           // filter\n        neg             v16.4h, v0.4h               // -clip\n\n        ldr             d22, [clip, #40]            // clip\n        ldr             d24, [filter, #40]          // filter\n        neg             v23.4h, v22.4h              // -clip\n        alf_luma_filter_pixel 8, \\pix_size, x6, x7, -2, 2\n        alf_luma_filter_pixel 9, \\pix_size, x5, x5, 3, -3\n        alf_luma_filter_pixel 10, \\pix_size, x5, x5, 2, -2\n        alf_luma_filter_pixel 11, \\pix_size, x5, x5, 1, -1\n\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        sshr            v21.4s, v21.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n        sshr            v21.4s, v21.4s, #7\n3:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "400843151d84180a9769a92d98379440e5a4c522", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400843151d84180a9769a92d98379440e5a4c522/libavcodec/aarch64/vvc/alf.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:6", "text": ".macro alf_filter_chroma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.4h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldr             x5, [pp]                    // p0\n        ldr             x6, [pp, #(3*8)]            // p3\n        ldr             x7, [pp, #(4*8)]            // p4\n        neg             v16.8h, v0.8h               // -clip\n\n    .if \\pix_size == 1\n        ldr             s2, [x5]                    // curr\n    .else\n        ldr             d5, [x5]                    // curr\n    .endif\n        movi            v20.4s, 64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3\n1:\n    .if \\pix_size == 1\n        uxtl            v5.8h, v2.8b\n    .endif\n        ldr             x8, [pp, #(1*8)]            // p1\n        ldr             x9, [pp, #(2*8)]            // p2\n        alf_chroma_filter_pixel 0, \\pix_size, x6, x7, 0, 0\n        alf_chroma_filter_pixel 1, \\pix_size, x8, x9, 1, -1\n        alf_chroma_filter_pixel 2, \\pix_size, x8, x9, 0, 0\n        alf_chroma_filter_pixel 3, \\pix_size, x8, x9, -1, 1\n        alf_chroma_filter_pixel 4, \\pix_size, x5, x5, 2, -2\n        alf_chroma_filter_pixel 5, \\pix_size, x5, x5, 1, -1\n\n        uxtl            v22.4s, v5.4h\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        smin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "400843151d84180a9769a92d98379440e5a4c522", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400843151d84180a9769a92d98379440e5a4c522/libavcodec/aarch64/vvc/alf.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:7", "text": "sshr            v20.4s, v20.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n3:\n        add             v20.4s, v20.4s, v22.4s\n        sqxtun          v20.4h, v20.4s\n    .if \\pix_size == 1\n        sqxtun          v20.8b, v20.8h\n        str             s20, [dst]\n    .else\n        smin            v20.4h, v20.4h, v25.4h\n        str             d20, [dst]\n    .endif\n        ret\n\n        .unreq          dst\n        .unreq          pp\n        .unreq          filter\n        .unreq          clip\n        .unreq          is_near_vb\n        .unreq          pix_max\n.endm\n\nfunction ff_alf_filter_luma_kernel_8_neon, export=1\n        alf_filter_luma_kernel  1\nendfunc\n\nfunction ff_alf_filter_luma_kernel_12_neon, export=1\n        mov             w5, 4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_luma_kernel_10_neon, export=1\n        mov             w5, 1023\n1:\n        alf_filter_luma_kernel  2\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_8_neon, export=1\n        alf_filter_chroma_kernel  1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, 4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, 1023\n1:\n        alf_filter_chroma_kernel  2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "400843151d84180a9769a92d98379440e5a4c522", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400843151d84180a9769a92d98379440e5a4c522/libavcodec/aarch64/vvc/alf.S", "line_start": 241, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:8", "text": "alf_filter_chroma_kernel  1\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_12_neon, export=1\n        mov             w5, 4095\n        b               1f\nendfunc\n\nfunction ff_alf_filter_chroma_kernel_10_neon, export=1\n        mov             w5, 1023\n1:\n        alf_filter_chroma_kernel  2\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "400843151d84180a9769a92d98379440e5a4c522", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400843151d84180a9769a92d98379440e5a4c522/libavcodec/aarch64/vvc/alf.S", "line_start": 281, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:2", "text": ".else\n        dup             v17.4h, v0.h[\\index - 8]    // clip\n        dup             v18.4h, v16.h[\\index - 8]   // -clip\n        dup             v19.4h, v1.h[\\index - 8]    // filter\n\n        dup             v26.4h, v22.h[\\index - 8]   // clip\n        dup             v27.4h, v23.h[\\index - 8]   // -clip\n        dup             v28.4h, v24.h[\\index - 8]   // filter\n    .endif\n        ins             v17.d[1], v26.d[0]\n        ins             v18.d[1], v27.d[0]\n        ins             v19.d[1], v28.d[0]\n\n        sub             v6.8h, v6.8h, v5.8h\n        sub             v7.8h, v7.8h, v5.8h\n        smin            v6.8h, v6.8h, v17.8h\n        smin            v7.8h, v7.8h, v17.8h\n        smax            v6.8h, v6.8h, v18.8h\n        smax            v7.8h, v7.8h, v18.8h\n        add             v6.8h, v6.8h, v7.8h\n        smlal           v20.4s, v19.4h, v6.4h       // v20: sum\n        smlal2          v21.4s, v19.8h, v6.8h       // v21: sum\n.endm\n\n/* x0: dst\n * x1: pp\n * x2: filter\n * x3: clip\n * w4: is_near_vb\n * w5: pix_max\n */\n.macro alf_filter_luma_kernel, pix_size\n        dst             .req x0\n        pp              .req x1\n        filter          .req x2\n        clip            .req x3\n        is_near_vb      .req w4\n        pix_max         .req w5\n    .if \\pix_size > 1\n        dup             v25.8h, pix_max             // pix_max\n    .endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldr             q22, [clip, #24]            // clip\n        ldr             q24, [filter, #24]          // filter\n\n        ldr             x5, [pp]                    // x5: p0\n        ldr             x6, [pp, #(5*8)]            // x6: p5\n        ldr             x7, [pp, #(6*8)]            // x7: p6\n        neg             v16.8h, v0.8h               // -clip\n        neg             v23.8h, v22.8h              // -clip\n\n    .if \\pix_size == 1\n        ldr             d2, [x5]                    // curr\n    .else\n        ldr             q5, [x5]                    // curr\n    .endif\n        movi            v20.4s, 64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "2d4ef304c9e13f5e8abe37c20ddd0f17102c6393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d4ef304c9e13f5e8abe37c20ddd0f17102c6393/libavcodec/aarch64/vvc/alf.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/alf.S:3", "text": ".endif\n        ldr             q0, [clip]                  // clip\n        ldr             q1, [filter]                // filter\n        ldr             q22, [clip, #24]            // clip\n        ldr             q24, [filter, #24]          // filter\n\n        ldr             x5, [pp]                    // x5: p0\n        ldr             x6, [pp, #(5*8)]            // x6: p5\n        ldr             x7, [pp, #(6*8)]            // x7: p6\n        neg             v16.8h, v0.8h               // -clip\n        neg             v23.8h, v22.8h              // -clip\n\n    .if \\pix_size == 1\n        ldr             d2, [x5]                    // curr\n    .else\n        ldr             q5, [x5]                    // curr\n    .endif\n        movi            v20.4s, 64\n        cbz             is_near_vb, 1f\n        shl             v20.4s, v20.4s, #3\n1:\n    .if \\pix_size == 1\n        uxtl            v5.8h, v2.8b\n    .endif\n        mov             v21.16b, v20.16b\n        ldr             x8, [pp, #(3*8)]            // p3\n        ldr             x9, [pp, #(4*8)]            // p4\n        alf_luma_filter_pixel 0, \\pix_size, x6, x7, 0, 0\n\n        ldr             x6, [pp, #(1*8)]            // p1\n        ldr             x7, [pp, #(2*8)]            // p2\n        alf_luma_filter_pixel 1, \\pix_size, x8, x9, 1, -1\n        alf_luma_filter_pixel 2, \\pix_size, x8, x9, 0, 0\n        alf_luma_filter_pixel 3, \\pix_size, x8, x9, -1, 1\n\n        alf_luma_filter_pixel 4, \\pix_size, x6, x7, 2, -2\n        alf_luma_filter_pixel 5, \\pix_size, x6, x7, 1, -1\n        alf_luma_filter_pixel 6, \\pix_size, x6, x7, 0, 0\n        alf_luma_filter_pixel 7, \\pix_size, x6, x7, -1, 1\n\n        ldr             d0, [clip, #16]             // clip\n        ldr             d1, [filter, #16]           // filter\n        neg             v16.4h, v0.4h               // -clip\n\n        ldr             d22, [clip, #40]            // clip\n        ldr             d24, [filter, #40]          // filter\n        neg             v23.4h, v22.4h              // -clip\n        alf_luma_filter_pixel 8, \\pix_size, x6, x7, -2, 2\n        alf_luma_filter_pixel 9, \\pix_size, x5, x5, 3, -3\n        alf_luma_filter_pixel 10, \\pix_size, x5, x5, 2, -2\n        alf_luma_filter_pixel 11, \\pix_size, x5, x5, 1, -1\n\n        cbz             is_near_vb, 2f\n        sshr            v20.4s, v20.4s, #10\n        sshr            v21.4s, v21.4s, #10\n        b               3f\n2:\n        sshr            v20.4s, v20.4s, #7\n        sshr            v21.4s, v21.4s, #7\n3:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/alf.S", "license": "LGPL-2.1", "commit": "2d4ef304c9e13f5e8abe37c20ddd0f17102c6393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d4ef304c9e13f5e8abe37c20ddd0f17102c6393/libavcodec/aarch64/vvc/alf.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n#define BDOF_BLOCK_SIZE 16\n#define BDOF_MIN_BLOCK_SIZE 4\n\n.macro vvc_w_avg bit_depth\n\n.macro vvc_w_avg_\\bit_depth\\()_2_4 tap\n.if \\tap == 2\n        ldr             s0, [src0]\n        ldr             s2, [src1]\n.else\n        ldr             d0, [src0]\n        ldr             d2, [src1]\n.endif\n        mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        umin            v4.4h, v4.4h, v17.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:2", "text": "sqxtun          v4.4h, v4.4s\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        umin            v4.4h, v4.4h, v17.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n.endm\n\nfunction ff_vvc_w_avg_\\bit_depth\\()_neon, export=1\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        width           .req w4\n        height          .req w5\n\n        mov             x10, #(VVC_MAX_PB_SIZE * 2)\n        cmp             width, #8\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n\n.if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        dup             v17.8h, w6\n.endif\n\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_w_avg_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:3", "text": "dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n\n.if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        dup             v17.8h, w6\n.endif\n\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_w_avg_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4\n        subs            height, height, #1\n        vvc_w_avg_\\bit_depth\\()_2_4 4\n        b.ne            4b\n        b               32f\n8:      // width == 8\n        ld1             {v0.8h}, [src0], x10\n        ld1             {v2.8h}, [src1], x10\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun2         v4.8h, v5.4s\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        st1             {v4.8b}, [dst], dst_stride\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        st1             {v4.8h}, [dst], dst_stride\n.endif\n        b.ne            8b\n        b               32f\n16:     // width >= 16\n        mov             w6, width\n        mov             x7, src0\n        mov             x8, src1\n        mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:4", "text": "st1             {v4.8b}, [dst], dst_stride\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        st1             {v4.8h}, [dst], dst_stride\n.endif\n        b.ne            8b\n        b               32f\n16:     // width >= 16\n        mov             w6, width\n        mov             x7, src0\n        mov             x8, src1\n        mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h\n        smlal2          v7.4s, v1.8h, v19.8h\n        smlal2          v7.4s, v3.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqshl           v6.4s, v6.4s, v22.4s\n        sqshl           v7.4s, v7.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun          v6.4h, v6.4s\n        sqxtun2         v4.8h, v5.4s\n        sqxtun2         v6.8h, v7.4s\n        subs            w6, w6, #16\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        sqxtun2         v4.16b, v6.8h\n        str             q4, [x9], #16\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        umin            v6.8h, v6.8h, v17.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:5", "text": ".else\n        umin            v4.8h, v4.8h, v17.8h\n        umin            v6.8h, v6.8h, v17.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_w_avg 8\nvvc_w_avg 10\nvvc_w_avg 12\n\n.macro vvc_avg bit_depth\nfunction ff_vvc_avg_\\bit_depth\\()_neon, export=1\n        mov             x10, #(VVC_MAX_PB_SIZE * 2)\n        movi            v16.8h, #0\n        movi            v17.16b, #255\n        ushr            v17.8h, v17.8h, #(16 - \\bit_depth)\n\n        cmp             w4, #8\n        b.gt            16f\n        b.eq            8f\n        cmp             w4, #4\n        b.eq            4f\n\n2: // width == 2\n        ldr             s0, [x2]\n        subs            w5, w5, #1\n        ldr             s1, [x3]\n.if \\bit_depth == 8\n        shadd           v0.4h, v0.4h, v1.4h\n        sqrshrun        v0.8b, v0.8h, #(15 - 1 - \\bit_depth)\n        str             h0, [x0]\n.else\n        shadd           v0.4h, v0.4h, v1.4h\n        srshr           v0.4h, v0.4h, #(15 - 1 - \\bit_depth)\n        smax            v0.4h, v0.4h, v16.4h\n        smin            v0.4h, v0.4h, v17.4h\n        str             s0, [x0]\n.endif\n        add             x2, x2, #(VVC_MAX_PB_SIZE * 2)\n        add             x3, x3, #(VVC_MAX_PB_SIZE * 2)\n        add             x0, x0, x1\n        b.ne            2b", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "2: // width == 2\n        ldr             s0, [x2]\n        subs            w5, w5, #1\n        ldr             s1, [x3]\n.if \\bit_depth == 8\n        shadd           v0.4h, v0.4h, v1.4h\n        sqrshrun        v0.8b, v0.8h, #(15 - 1 - \\bit_depth)\n        str             h0, [x0]\n.else\n        shadd           v0.4h, v0.4h, v1.4h\n        srshr           v0.4h, v0.4h, #(15 - 1 - \\bit_depth)\n        smax            v0.4h, v0.4h, v16.4h\n        smin            v0.4h, v0.4h, v17.4h\n        str             s0, [x0]\n.endif\n        add             x2, x2, #(VVC_MAX_PB_SIZE * 2)\n        add             x3, x3, #(VVC_MAX_PB_SIZE * 2)\n        add             x0, x0, x1\n        b.ne            2b\n        ret\n\n4: // width == 4\n        ldr             d0, [x2]\n        subs            w5, w5, #1\n        ldr             d1, [x3]\n.if \\bit_depth == 8\n        shadd           v0.4h, v0.4h, v1.4h\n        sqrshrun        v0.8b, v0.8h, #(15 - 1 - \\bit_depth)\n        str             s0, [x0]\n.else\n        shadd           v0.4h, v0.4h, v1.4h\n        srshr           v0.4h, v0.4h, #(15 - 1 - \\bit_depth)\n        smax            v0.4h, v0.4h, v16.4h\n        smin            v0.4h, v0.4h, v17.4h\n        str             d0, [x0]\n.endif\n        add             x2, x2, #(VVC_MAX_PB_SIZE * 2)\n        add             x3, x3, #(VVC_MAX_PB_SIZE * 2)\n        add             x0, x0, x1\n        b.ne            4b\n        ret\n\n8: // width == 8\n        ldr             q0, [x2]\n        subs            w5, w5, #1\n        ldr             q1, [x3]\n.if \\bit_depth == 8\n        shadd           v0.8h, v0.8h, v1.8h\n        sqrshrun        v0.8b, v0.8h, #(15 - 1 - \\bit_depth)\n        str             d0, [x0]\n.else\n        shadd           v0.8h, v0.8h, v1.8h\n        srshr           v0.8h, v0.8h, #(15 - 1 - \\bit_depth)\n        smax            v0.8h, v0.8h, v16.8h\n        smin            v0.8h, v0.8h, v17.8h\n        str             q0, [x0]\n.endif\n        add             x2, x2, #(VVC_MAX_PB_SIZE * 2)\n        add             x3, x3, #(VVC_MAX_PB_SIZE * 2)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:7", "text": "b.ne            4b\n        ret\n\n8: // width == 8\n        ldr             q0, [x2]\n        subs            w5, w5, #1\n        ldr             q1, [x3]\n.if \\bit_depth == 8\n        shadd           v0.8h, v0.8h, v1.8h\n        sqrshrun        v0.8b, v0.8h, #(15 - 1 - \\bit_depth)\n        str             d0, [x0]\n.else\n        shadd           v0.8h, v0.8h, v1.8h\n        srshr           v0.8h, v0.8h, #(15 - 1 - \\bit_depth)\n        smax            v0.8h, v0.8h, v16.8h\n        smin            v0.8h, v0.8h, v17.8h\n        str             q0, [x0]\n.endif\n        add             x2, x2, #(VVC_MAX_PB_SIZE * 2)\n        add             x3, x3, #(VVC_MAX_PB_SIZE * 2)\n        add             x0, x0, x1\n        b.ne            8b\n        ret\n\n16: // width >= 16\n.if \\bit_depth == 8\n        sub             x1, x1, w4, sxtw\n.else\n        sub             x1, x1, w4, sxtw #1\n.endif\n        sub             x10, x10, w4, sxtw #1\n3:\n        mov             w6, w4 // width\n1:\n        ldp             q0, q1, [x2], #32\n        subs            w6, w6, #16\n        ldp             q2, q3, [x3], #32\n.if \\bit_depth == 8\n        shadd           v4.8h, v0.8h, v2.8h\n        shadd           v5.8h, v1.8h, v3.8h\n        sqrshrun        v0.8b, v4.8h, #6\n        sqrshrun2       v0.16b, v5.8h, #6\n        st1             {v0.16b}, [x0], #16\n.else\n        shadd           v4.8h, v0.8h, v2.8h\n        shadd           v5.8h, v1.8h, v3.8h\n        srshr           v0.8h, v4.8h, #(15 - 1 - \\bit_depth)\n        srshr           v1.8h, v5.8h, #(15 - 1 - \\bit_depth)\n        smax            v0.8h, v0.8h, v16.8h\n        smax            v1.8h, v1.8h, v16.8h\n        smin            v0.8h, v0.8h, v17.8h\n        smin            v1.8h, v1.8h, v17.8h\n        stp             q0, q1, [x0], #32\n.endif\n        b.ne            1b\n\n        subs            w5, w5, #1\n        add             x2, x2, x10\n        add             x3, x3, x10\n        add             x0, x0, x1", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:8", "text": "sqrshrun        v0.8b, v4.8h, #6\n        sqrshrun2       v0.16b, v5.8h, #6\n        st1             {v0.16b}, [x0], #16\n.else\n        shadd           v4.8h, v0.8h, v2.8h\n        shadd           v5.8h, v1.8h, v3.8h\n        srshr           v0.8h, v4.8h, #(15 - 1 - \\bit_depth)\n        srshr           v1.8h, v5.8h, #(15 - 1 - \\bit_depth)\n        smax            v0.8h, v0.8h, v16.8h\n        smax            v1.8h, v1.8h, v16.8h\n        smin            v0.8h, v0.8h, v17.8h\n        smin            v1.8h, v1.8h, v17.8h\n        stp             q0, q1, [x0], #32\n.endif\n        b.ne            1b\n\n        subs            w5, w5, #1\n        add             x2, x2, x10\n        add             x3, x3, x10\n        add             x0, x0, x1\n        b.ne            3b\n        ret\nendfunc\n.endm\n\nvvc_avg 8\nvvc_avg 10\nvvc_avg 12\n\n/* x0: int16_t *dst\n * x1: const uint8_t *_src\n * x2: ptrdiff_t _src_stride\n * w3: int height\n * x4: intptr_t mx\n * x5: intptr_t my\n * w6: int width\n */\nfunction ff_vvc_dmvr_8_neon, export=1\n        dst             .req x0\n        src             .req x1\n        src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        ushll           v1.8h, v0.8b, #2\n        ushll2          v2.8h, v0.16b, #2\n        stp             q1, q2, [dst], #32\n        b               3f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:9", "text": "src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        ushll           v1.8h, v0.8b, #2\n        ushll2          v2.8h, v0.16b, #2\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        ushll           v1.8h, v0.8b, #2\n        str             q1, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             s3, [src], #4\n        ushll           v4.8h, v3.8b, #2\n        st1             {v4.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_12_neon, export=1\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        urshr           v0.8h, v0.8h, #2\n        urshr           v1.8h, v1.8h, #2\n\n        stp             q0, q1, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        urshr           v0.8h, v0.8h, #2\n        str             q0, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        urshr           v0.4h, v0.4h, #2\n        st1             {v0.4h}, [dst], x7", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:10", "text": "sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        urshr           v0.8h, v0.8h, #2\n        urshr           v1.8h, v1.8h, #2\n\n        stp             q0, q1, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        urshr           v0.8h, v0.8h, #2\n        str             q0, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        urshr           v0.4h, v0.4h, #2\n        st1             {v0.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:11", "text": "dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        urshr           v6.8h, v6.8h, #(8 - 6)\n        urshr           v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        urshr           v16.8h, v16.8h, #4\n        urshr           v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        urshr           v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:12", "text": "ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        urshr           v16.8h, v16.8h, #4\n        urshr           v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        urshr           v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        urshr           v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldur            s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        urshr           v6.4h, v6.4h, #(8 - 6)\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        urshr           v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:13", "text": "mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        urshr           v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:14", "text": "dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n        umlal           v18.4s, v17.4h, v1.4h\n        umlal2          v19.4s, v17.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        add             v18.4s, v18.4s, v30.4s\n        add             v19.4s, v19.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        ushl            v18.4s, v18.4s, v29.4s\n        ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:15", "text": "ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        ushl            v18.4s, v18.4s, v29.4s\n        ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        stp             q6, q7, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            q7, [src, #2]\n        ldr             q6, [src], #16\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:16", "text": "umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldur            d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        umull           v17.4s, v16.4h, v2.4h\n        umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:17", "text": "umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc\n\nfunction ff_vvc_prof_grad_filter_8x_neon, export=1\n        gh              .req x0\n        gv              .req x1\n        gstride         .req x2\n        src             .req x3\n        src_stride      .req x4\n        width           .req w5\n        height          .req w6\n\n        lsl             src_stride, src_stride, #1\n        neg             x7, src_stride\n1:\n        mov             x10, src\n        mov             w11, width\n        mov             x12, gh\n        mov             x13, gv\n2:\n        ldur            q0, [x10, #2]\n        ldur            q1, [x10, #-2]\n        subs            w11, w11, #8\n        ldr             q2, [x10, src_stride]\n        ldr             q3, [x10, x7]\n        sshr            v0.8h, v0.8h, #6\n        sshr            v1.8h, v1.8h, #6\n        sshr            v2.8h, v2.8h, #6\n        sshr            v3.8h, v3.8h, #6\n        sub             v0.8h, v0.8h, v1.8h\n        sub             v2.8h, v2.8h, v3.8h\n        st1             {v0.8h}, [x12], #16\n        st1             {v2.8h}, [x13], #16\n        add             x10, x10, #16", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:18", "text": "1:\n        mov             x10, src\n        mov             w11, width\n        mov             x12, gh\n        mov             x13, gv\n2:\n        ldur            q0, [x10, #2]\n        ldur            q1, [x10, #-2]\n        subs            w11, w11, #8\n        ldr             q2, [x10, src_stride]\n        ldr             q3, [x10, x7]\n        sshr            v0.8h, v0.8h, #6\n        sshr            v1.8h, v1.8h, #6\n        sshr            v2.8h, v2.8h, #6\n        sshr            v3.8h, v3.8h, #6\n        sub             v0.8h, v0.8h, v1.8h\n        sub             v2.8h, v2.8h, v3.8h\n        st1             {v0.8h}, [x12], #16\n        st1             {v2.8h}, [x13], #16\n        add             x10, x10, #16\n        b.ne            2b\n\n        subs            height, height, #1\n        add             gh, gh, gstride, lsl #1\n        add             gv, gv, gstride, lsl #1\n        add             src, src, src_stride\n        b.ne            1b\n        ret\n\n.unreq gh\n.unreq gv\n.unreq gstride\n.unreq src\n.unreq src_stride\n.unreq width\n.unreq height\nendfunc\n\n.macro vvc_apply_bdof_block bit_depth\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        gh              .req x4\n        gv              .req x5\n        vx              .req x6\n        vy              .req x7\n\n        ld1r            {v0.8h}, [vx], #2\n        ld1r            {v1.8h}, [vy], #2\n        ld1r            {v2.8h}, [vx]\n        ld1r            {v3.8h}, [vy]\n        ins             v0.d[1], v2.d[1]\n        ins             v1.d[1], v3.d[1]\n\n        movi            v7.4s, #(1 << (14 - \\bit_depth))\n        ldp             x8, x9, [gh]\n        ldp             x10, x11, [gv]\n        mov             x12, #(BDOF_BLOCK_SIZE * 2)\n        mov             w13, #(BDOF_MIN_BLOCK_SIZE)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:19", "text": "dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        gh              .req x4\n        gv              .req x5\n        vx              .req x6\n        vy              .req x7\n\n        ld1r            {v0.8h}, [vx], #2\n        ld1r            {v1.8h}, [vy], #2\n        ld1r            {v2.8h}, [vx]\n        ld1r            {v3.8h}, [vy]\n        ins             v0.d[1], v2.d[1]\n        ins             v1.d[1], v3.d[1]\n\n        movi            v7.4s, #(1 << (14 - \\bit_depth))\n        ldp             x8, x9, [gh]\n        ldp             x10, x11, [gv]\n        mov             x12, #(BDOF_BLOCK_SIZE * 2)\n        mov             w13, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x14, #(VVC_MAX_PB_SIZE * 2)\n.if \\bit_depth >= 10\n        // clip pixel\n        mov             w15, #((1 << \\bit_depth) - 1)\n        movi            v18.8h, #0\n        lsl             dst_stride, dst_stride, #1\n        dup             v19.8h, w15\n.endif\n1:\n        ld1             {v2.8h}, [x8], x12\n        ld1             {v3.8h}, [x9], x12\n        ld1             {v4.8h}, [x10], x12\n        ld1             {v5.8h}, [x11], x12\n        sub             v2.8h, v2.8h, v3.8h\n        sub             v4.8h, v4.8h, v5.8h\n        smull           v3.4s, v0.4h, v2.4h\n        smull2          v16.4s, v0.8h, v2.8h\n        smlal           v3.4s, v1.4h, v4.4h\n        smlal2          v16.4s, v1.8h, v4.8h\n\n        ld1             {v5.8h}, [src0], x14\n        ld1             {v6.8h}, [src1], x14\n        saddl           v2.4s, v5.4h, v6.4h\n        add             v2.4s, v2.4s, v7.4s\n        add             v2.4s, v2.4s, v3.4s\n        saddl2          v4.4s, v5.8h, v6.8h\n        add             v4.4s, v4.4s, v7.4s\n        add             v4.4s, v4.4s, v16.4s\n\n        sqshrn          v5.4h, v2.4s, #(15 - \\bit_depth)\n        sqshrn2         v5.8h, v4.4s, #(15 - \\bit_depth)\n        subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:20", "text": "ld1             {v5.8h}, [src0], x14\n        ld1             {v6.8h}, [src1], x14\n        saddl           v2.4s, v5.4h, v6.4h\n        add             v2.4s, v2.4s, v7.4s\n        add             v2.4s, v2.4s, v3.4s\n        saddl2          v4.4s, v5.8h, v6.8h\n        add             v4.4s, v4.4s, v7.4s\n        add             v4.4s, v4.4s, v16.4s\n\n        sqshrn          v5.4h, v2.4s, #(15 - \\bit_depth)\n        sqshrn2         v5.8h, v4.4s, #(15 - \\bit_depth)\n        subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride\n.endif\n        b.ne            1b\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.endm\n\nfunction ff_vvc_apply_bdof_block_8_neon, export=1\n        vvc_apply_bdof_block 8\nendfunc\n\nfunction ff_vvc_apply_bdof_block_10_neon, export=1\n        vvc_apply_bdof_block 10\nendfunc\n\nfunction ff_vvc_apply_bdof_block_12_neon, export=1\n        vvc_apply_bdof_block 12\nendfunc\n\nconst bdof_vx_vy_8x_tbl\n        .byte 0, 1, 16, 16, 16, 16, 8, 9\n        .byte 6, 7, 16, 16, 16, 16, 14, 15\nendconst\n\nconst bdof_vx_vy_16x_tbl\n        .byte 0,  1,  64, 64, 64, 64, 8,  9\n        .byte 6,  7,  64, 64, 64, 64, 16, 17\n        .byte 14, 15, 64, 64, 64, 64, 24, 25\n        .byte 22, 23, 64, 64, 64, 64, 30, 31\nendconst\n\n// line(-1), line0, line1, line2, line3, line4\n// line3 and line4 becomes line(-1) and line0 in the next block.", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:21", "text": "endfunc\n\nfunction ff_vvc_apply_bdof_block_12_neon, export=1\n        vvc_apply_bdof_block 12\nendfunc\n\nconst bdof_vx_vy_8x_tbl\n        .byte 0, 1, 16, 16, 16, 16, 8, 9\n        .byte 6, 7, 16, 16, 16, 16, 14, 15\nendconst\n\nconst bdof_vx_vy_16x_tbl\n        .byte 0,  1,  64, 64, 64, 64, 8,  9\n        .byte 6,  7,  64, 64, 64, 64, 16, 17\n        .byte 14, 15, 64, 64, 64, 64, 24, 25\n        .byte 22, 23, 64, 64, 64, 64, 30, 31\nendconst\n\n// line(-1), line0, line1, line2, line3, line4\n// line3 and line4 becomes line(-1) and line0 in the next block.\n.macro bdof_vx_vy_8x_save_line tmp0, tmp1, tmp2, tmp3, tmp4\n        mov             \\tmp0\\().16b, v28.16b\n        mov             \\tmp1\\().16b, v29.16b\n        mov             \\tmp2\\().16b, v30.16b\n        mov             \\tmp3\\().16b, v31.16b\n        mov             \\tmp4\\().16b, v8.16b\n.endm\n\n.macro bdof_vx_vy_8x_add_line tmp0, tmp1, tmp2, tmp3, tmp4\n        add             v25.4s, v25.4s, \\tmp0\\().4s\n        add             v27.4s, v27.4s, \\tmp1\\().4s\n        add             v23.4s, v23.4s, \\tmp2\\().4s\n        sub             v26.4s, v26.4s, \\tmp3\\().4s\n        sub             v24.4s, v24.4s, \\tmp4\\().4s\n.endm\n\n.macro bdof_vx_vy_8x_padding_left_right src, tmp0, tmp1, dst\n        tbl             \\tmp0\\().16b, { \\src\\().16b }, v0.16b\n        saddl           \\tmp1\\().4s, \\tmp0\\().4h, \\src\\().4h\n        saddl2          \\dst\\().4s, \\tmp0\\().8h, \\src\\().8h\n        addp            \\dst\\().4s, \\tmp1\\().4s, \\dst\\().4s\n.endm\n\n.macro bdof_vx_vy_sign src, tmp0, tmp1, dst\n        cmlt            \\tmp0\\().8h, \\src\\().8h, #0\n        cmgt            \\tmp1\\().8h, \\src\\().8h, #0\n        sub             \\dst\\().8h, \\tmp0\\().8h, \\tmp1\\().8h\n.endm\n\n.macro bdof_vx_vy_clip_mask src, max, min, mask, dst\n        smin            \\src\\().4s, \\src\\().4s, \\max\\().4s\n        smax            \\src\\().4s, \\src\\().4s, \\min\\().4s\n        cmgt            \\mask\\().4s, \\mask\\().4s, #0\n        and             \\dst\\().16b, \\src\\().16b, \\mask\\().16b\n.endm\n\n.macro bdof_vx_vy_16x_save_line tmp0, tmp1, tmp2, tmp3, tmp4\n        mov             \\tmp0\\().16b, v29.16b\n        mov             \\tmp1\\().16b, v30.16b\n        mov             \\tmp2\\().16b, v31.16b", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:22", "text": "addp            \\dst\\().4s, \\tmp1\\().4s, \\dst\\().4s\n.endm\n\n.macro bdof_vx_vy_sign src, tmp0, tmp1, dst\n        cmlt            \\tmp0\\().8h, \\src\\().8h, #0\n        cmgt            \\tmp1\\().8h, \\src\\().8h, #0\n        sub             \\dst\\().8h, \\tmp0\\().8h, \\tmp1\\().8h\n.endm\n\n.macro bdof_vx_vy_clip_mask src, max, min, mask, dst\n        smin            \\src\\().4s, \\src\\().4s, \\max\\().4s\n        smax            \\src\\().4s, \\src\\().4s, \\min\\().4s\n        cmgt            \\mask\\().4s, \\mask\\().4s, #0\n        and             \\dst\\().16b, \\src\\().16b, \\mask\\().16b\n.endm\n\n.macro bdof_vx_vy_16x_save_line tmp0, tmp1, tmp2, tmp3, tmp4\n        mov             \\tmp0\\().16b, v29.16b\n        mov             \\tmp1\\().16b, v30.16b\n        mov             \\tmp2\\().16b, v31.16b\n        mov             \\tmp3\\().16b, v8.16b\n        mov             \\tmp4\\().16b, v9.16b\n.endm\n\n.macro bdof_vx_vy_16x_add_line tmp0, tmp1, tmp2, tmp3, tmp4\n        add             v25.4s, v25.4s, \\tmp0\\().4s\n        add             v24.4s, v24.4s, \\tmp1\\().4s\n        add             v26.4s, v26.4s, \\tmp2\\().4s\n        sub             v28.4s, v28.4s, \\tmp3\\().4s\n        sub             v27.4s, v27.4s, \\tmp4\\().4s\n.endm\n\n.macro bdof_vx_vy_16x_padding_left_right src0, src1, tmp0, tmp1, tmp2, dst\n        tbl             \\tmp0\\().16b, {\\src0\\().16b, \\src1\\().16b}, v0.16b\n        tbl             v2.16b, {\\src0\\().16b, \\src1\\().16b}, v1.16b\n        saddl           \\tmp1\\().4s, \\tmp0\\().4h, \\src0\\().4h\n        saddl           \\tmp2\\().4s, v2.4h, \\src1\\().4h\n        saddl2          \\tmp0\\().4s, \\tmp0\\().8h, \\src0\\().8h\n        saddl2          \\dst\\().4s, v2.8h, \\src1\\().8h\n        addp            \\tmp0\\().4s, \\tmp1\\().4s, \\tmp0\\().4s\n        addp            \\dst\\().4s, \\tmp2\\().4s, \\dst\\().4s\n        addp            \\dst\\().4s, \\tmp0\\().4s, \\dst\\().4s\n.endm\n\n/*\n * Line tricks:\n * We need 6 lines of information, from 4N-1, 4N, 4N+1 to 4N+4. 4N-1\n * and 4N+0 are processed in the last group, so they can be reused.\n *\n * (4N-1) [xxxxxxxxxxxxx] <--- reuse\n * (4N)   [xxxxxxxxxxxxx] <--- reuse\n * (4N+1) [xxxxxxxxxxxxx]\n * (4N+2) [xxxxxxxxxxxxx]\n * (4N+3) [xxxxxxxxxxxxx] ---> save for reuse\n * (4N+4) [xxxxxxxxxxxxx] ---> save for reuse\n *\n * Special case:\n * 1. Line -1 needs to duplicate line 0.\n * 2. Last line +1 needs to duplicate the last line.\n *", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:23", "text": "addp            \\dst\\().4s, \\tmp2\\().4s, \\dst\\().4s\n        addp            \\dst\\().4s, \\tmp0\\().4s, \\dst\\().4s\n.endm\n\n/*\n * Line tricks:\n * We need 6 lines of information, from 4N-1, 4N, 4N+1 to 4N+4. 4N-1\n * and 4N+0 are processed in the last group, so they can be reused.\n *\n * (4N-1) [xxxxxxxxxxxxx] <--- reuse\n * (4N)   [xxxxxxxxxxxxx] <--- reuse\n * (4N+1) [xxxxxxxxxxxxx]\n * (4N+2) [xxxxxxxxxxxxx]\n * (4N+3) [xxxxxxxxxxxxx] ---> save for reuse\n * (4N+4) [xxxxxxxxxxxxx] ---> save for reuse\n *\n * Special case:\n * 1. Line -1 needs to duplicate line 0.\n * 2. Last line +1 needs to duplicate the last line.\n *\n * ---------------------------------------------------------------------\n * Pixel tricks:\n *\n * [C-1, C0, C1, C2, ... C16]\n *\n * For each line, we need to sum parameters for 4 * 6 pixels:\n * - C-1 + C0 + C1 + C2 + C3 + C4\n * - C3 + C4 + C5 + C6 + C7 + C8\n * - C7 + C8 + C9 + C10 + C11 + C12\n * - C11 + C12 + C13 + C14 + C15 + C16\n *\n * C-1 is C0, C16 is C15, so we can do:\n *\n * [C0, C1, C2, C3, | C4, C5, C6, C7, | C8, ... C15]\n *         +        |      +          |\n * [C0,  0,  0, C4, | C3,  0,  0, C8, | C7, ... C15]\n *\n * 8x is similar.\n * ----------------------------------------------------------------------\n * x0: const int16_t *_src0,\n * x1: const int16_t *_src1,\n * x2: int16_t *const gradient_h[2],\n * x3: int16_t *const gradient_v[2],\n * x4: int16_t vx[16],\n * x5: int16_t vy[16],\n * w6: int block_h\n */\nfunction ff_vvc_derive_bdof_vx_vy_8x_neon, export=1\n        stp             d11, d10, [sp, #-0x20]!\n        stp             d9, d8, [sp, #0x10]\n\n        ldp             x14, x13, [x2]                      // gh0, gh1\n        ldp             x10, x9, [x3]                       // gv0, gv1\n        movrel          x11, bdof_vx_vy_8x_tbl\n        ldr             q0, [x11]                           // table\n        mvni            v2.4s, #30                          // -31, for log2\n        movi            v3.4s, #15                          // clip to 15\n        mvni            v4.4s, #14                          // clip to -15\n\n        mov             w11, #0x8", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:24", "text": "* x1: const int16_t *_src1,\n * x2: int16_t *const gradient_h[2],\n * x3: int16_t *const gradient_v[2],\n * x4: int16_t vx[16],\n * x5: int16_t vy[16],\n * w6: int block_h\n */\nfunction ff_vvc_derive_bdof_vx_vy_8x_neon, export=1\n        stp             d11, d10, [sp, #-0x20]!\n        stp             d9, d8, [sp, #0x10]\n\n        ldp             x14, x13, [x2]                      // gh0, gh1\n        ldp             x10, x9, [x3]                       // gv0, gv1\n        movrel          x11, bdof_vx_vy_8x_tbl\n        ldr             q0, [x11]                           // table\n        mvni            v2.4s, #30                          // -31, for log2\n        movi            v3.4s, #15                          // clip to 15\n        mvni            v4.4s, #14                          // clip to -15\n\n        mov             w11, #0x8\n        mov             w12, w6                             // y = block_h\n        b               4f\n\n1:\n        // save line4 results\n        bdof_vx_vy_8x_save_line v5, v6, v7, v16, v17\n2:\n        addp            v25.4s, v25.4s, v25.4s\n        addp            v27.4s, v27.4s, v27.4s\n        addp            v26.4s, v26.4s, v26.4s\n        addp            v23.4s, v23.4s, v23.4s\n        addp            v24.4s, v24.4s, v24.4s\n\n        clz             v28.4s, v25.4s\n        add             v28.4s, v28.4s, v2.4s               // log2\n        shl             v26.4s, v26.4s, #0x2\n        sshl            v26.4s, v26.4s, v28.4s\n\n        bdof_vx_vy_clip_mask v26, v3, v4, v25, v25\n        sqxtn           v26.4h, v25.4s\n        st1             {v26.s}[0], [x4], x11\n\n        subs            x12, x12, #(BDOF_MIN_BLOCK_SIZE)\n\n        clz             v26.4s, v27.4s\n        add             v26.4s, v26.4s, v2.4s\n        shl             v24.4s, v24.4s, #0x2\n        mul             v23.4s, v25.4s, v23.4s\n        sshr            v23.4s, v23.4s, #0x1\n        sub             v23.4s, v24.4s, v23.4s\n        sshl            v23.4s, v23.4s, v26.4s\n\n        bdof_vx_vy_clip_mask v23, v3, v4, v27, v23\n        sqxtn           v23.4h, v23.4s\n        st1             {v23.s}[0], [x5], x11\n\n        b.eq            16f\n4:\n        mov             x15, #0x0                           // dy, inner loop", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:25", "text": "st1             {v26.s}[0], [x4], x11\n\n        subs            x12, x12, #(BDOF_MIN_BLOCK_SIZE)\n\n        clz             v26.4s, v27.4s\n        add             v26.4s, v26.4s, v2.4s\n        shl             v24.4s, v24.4s, #0x2\n        mul             v23.4s, v25.4s, v23.4s\n        sshr            v23.4s, v23.4s, #0x1\n        sub             v23.4s, v24.4s, v23.4s\n        sshl            v23.4s, v23.4s, v26.4s\n\n        bdof_vx_vy_clip_mask v23, v3, v4, v27, v23\n        sqxtn           v23.4h, v23.4s\n        st1             {v23.s}[0], [x5], x11\n\n        b.eq            16f\n4:\n        mov             x15, #0x0                           // dy, inner loop\n\n        movi            v25.2d, #0\n        movi            v27.2d, #0\n        movi            v23.2d, #0\n        movi            v26.2d, #0\n        movi            v24.2d, #0\n        b               8f\n\n5:\n        // add line(-1) and line0 from previous results\n        bdof_vx_vy_8x_add_line v18, v19, v20, v21, v22\n        bdof_vx_vy_8x_add_line v5, v6, v7, v16, v17\n        add             x15, x15, #1\n8:\n        cmp             w12, w6\n        b.hs            9f\n        // y < block_h && dy == 0, reuse previous results\n        cbz             x15, 5b\n9:\n        ldr             q28, [x0]                                   // src0\n        ldr             q29, [x1]                                   // src1\n        ldr             q30, [x14], #(BDOF_BLOCK_SIZE * 2)          // gh0\n        ldr             q31, [x13], #(BDOF_BLOCK_SIZE * 2)          // gh1\n        ldr             q8, [x10], #(BDOF_BLOCK_SIZE * 2)           // gv0\n        ldr             q9, [x9], #(BDOF_BLOCK_SIZE * 2)            // gv1\n        add             x0, x0, #(VVC_MAX_PB_SIZE * 2)\n        add             x1, x1, #(VVC_MAX_PB_SIZE * 2)\n\n        sshr            v28.8h, v28.8h, #0x4\n        sshr            v29.8h, v29.8h, #0x4\n        shadd           v30.8h, v30.8h, v31.8h                      // tmph\n        shadd           v31.8h, v8.8h, v9.8h                        // tmpv\n        sub             v8.8h, v28.8h, v29.8h                       // diff\n\n        abs             v28.8h, v30.8h\n        abs             v29.8h, v31.8h\n\n        bdof_vx_vy_8x_padding_left_right v28, v9, v10, v28\n        bdof_vx_vy_8x_padding_left_right v29, v9, v10, v29\n\n        bdof_vx_vy_sign v30, v9, v10, v9", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:26", "text": "ldr             q30, [x14], #(BDOF_BLOCK_SIZE * 2)          // gh0\n        ldr             q31, [x13], #(BDOF_BLOCK_SIZE * 2)          // gh1\n        ldr             q8, [x10], #(BDOF_BLOCK_SIZE * 2)           // gv0\n        ldr             q9, [x9], #(BDOF_BLOCK_SIZE * 2)            // gv1\n        add             x0, x0, #(VVC_MAX_PB_SIZE * 2)\n        add             x1, x1, #(VVC_MAX_PB_SIZE * 2)\n\n        sshr            v28.8h, v28.8h, #0x4\n        sshr            v29.8h, v29.8h, #0x4\n        shadd           v30.8h, v30.8h, v31.8h                      // tmph\n        shadd           v31.8h, v8.8h, v9.8h                        // tmpv\n        sub             v8.8h, v28.8h, v29.8h                       // diff\n\n        abs             v28.8h, v30.8h\n        abs             v29.8h, v31.8h\n\n        bdof_vx_vy_8x_padding_left_right v28, v9, v10, v28\n        bdof_vx_vy_8x_padding_left_right v29, v9, v10, v29\n\n        bdof_vx_vy_sign v30, v9, v10, v9\n        bdof_vx_vy_sign v31, v10, v31, v31\n\n        mul             v30.8h, v31.8h, v30.8h\n        mul             v9.8h, v9.8h, v8.8h\n        mul             v8.8h, v31.8h, v8.8h\n\n        bdof_vx_vy_8x_padding_left_right v30, v31, v10, v30\n        bdof_vx_vy_8x_padding_left_right v9, v31, v10, v31\n        bdof_vx_vy_8x_padding_left_right v8, v9, v10, v8\n\n        bdof_vx_vy_8x_add_line v28, v29, v30, v31, v8\n\n        cmp             w12, w6\n        b.ne            10f\n        cbnz            x15, 10f\n\n        // y == block_h && dy == 0, duplicate first line results\n        bdof_vx_vy_8x_add_line v28, v29, v30, v31, v8\n        add             x15, x15, #0x1\n        b               9b\n10:\n        cmp             x15, #(BDOF_MIN_BLOCK_SIZE - 1)\n        b.eq            11f\n        cmp             x15, #(BDOF_MIN_BLOCK_SIZE)\n        b.ne            12f\n        b               1b\n11:\n        // y == BDOF_MIN_BLOCK_SIZE && dy == BDOF_MIN_BLOCK_SIZE - 1\n        // duplicate the results and break\n        cmp             x12, #(BDOF_MIN_BLOCK_SIZE)\n        b.eq            13f\n        bdof_vx_vy_8x_save_line v18, v19, v20, v21, v22\n12:\n        add             x15, x15, #1\n        b               8b\n13:\n        // y == BDOF_MIN_BLOCK_SIZE && dy == BDOF_MIN_BLOCK_SIZE - 1\n        // padding bottom then break\n        bdof_vx_vy_8x_add_line v28, v29, v30, v31, v8\n        b               2b", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:27", "text": "10:\n        cmp             x15, #(BDOF_MIN_BLOCK_SIZE - 1)\n        b.eq            11f\n        cmp             x15, #(BDOF_MIN_BLOCK_SIZE)\n        b.ne            12f\n        b               1b\n11:\n        // y == BDOF_MIN_BLOCK_SIZE && dy == BDOF_MIN_BLOCK_SIZE - 1\n        // duplicate the results and break\n        cmp             x12, #(BDOF_MIN_BLOCK_SIZE)\n        b.eq            13f\n        bdof_vx_vy_8x_save_line v18, v19, v20, v21, v22\n12:\n        add             x15, x15, #1\n        b               8b\n13:\n        // y == BDOF_MIN_BLOCK_SIZE && dy == BDOF_MIN_BLOCK_SIZE - 1\n        // padding bottom then break\n        bdof_vx_vy_8x_add_line v28, v29, v30, v31, v8\n        b               2b\n16:\n        ldp             d9, d8, [sp, #0x10]\n        ldp             d11, d10, [sp], #0x20\n        ret\nendfunc\n\n/*\n * x0: const int16_t *_src0,\n * x1: const int16_t *_src1,\n * x2: int16_t *const gradient_h[2],\n * x3: int16_t *const gradient_v[2],\n * x4: int16_t vx[16],\n * x5: int16_t vy[16],\n * w6: int block_h\n */\nfunction ff_vvc_derive_bdof_vx_vy_16x_neon, export=1\n        stp             d15, d14, [sp, #-0x40]!\n        stp             d13, d12, [sp, #0x10]\n        stp             d11, d10, [sp, #0x20]\n        stp             d9, d8,   [sp, #0x30]\n\n        ldp             x8, x9, [x2]                        // gh0, gh1\n        ldp             x10, x11, [x3]                      // gv0, gv1\n        movrel          x12, bdof_vx_vy_16x_tbl\n        ldp             q0, q1, [x12]                       // table\n        mov             w13, w6                             // y = block_h\n        b               4f\n\n1:\n        // save line4\n        bdof_vx_vy_16x_save_line v6, v7, v16, v17, v18\n2:\n        clz             v3.4s, v25.4s\n        mvni            v5.4s, #0x1e\n        add             v3.4s, v3.4s, v5.4s                 // -log2()\n        shl             v4.4s, v28.4s, #0x2\n        sshl            v3.4s, v4.4s, v3.4s\n\n        movi            v28.4s, #0xf                        // clip to 15\n        mvni            v29.4s, #0xe                        // clip to -15", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:28", "text": "ldp             x8, x9, [x2]                        // gh0, gh1\n        ldp             x10, x11, [x3]                      // gv0, gv1\n        movrel          x12, bdof_vx_vy_16x_tbl\n        ldp             q0, q1, [x12]                       // table\n        mov             w13, w6                             // y = block_h\n        b               4f\n\n1:\n        // save line4\n        bdof_vx_vy_16x_save_line v6, v7, v16, v17, v18\n2:\n        clz             v3.4s, v25.4s\n        mvni            v5.4s, #0x1e\n        add             v3.4s, v3.4s, v5.4s                 // -log2()\n        shl             v4.4s, v28.4s, #0x2\n        sshl            v3.4s, v4.4s, v3.4s\n\n        movi            v28.4s, #0xf                        // clip to 15\n        mvni            v29.4s, #0xe                        // clip to -15\n        bdof_vx_vy_clip_mask v3, v28, v29, v25, v3\n        sqxtn           v4.4h, v3.4s\n        st1             {v4.d}[0], [x4], #(BDOF_MIN_BLOCK_SIZE * 2)\n\n        subs            x13, x13, #(BDOF_MIN_BLOCK_SIZE)    // y -= BDOF_MIN_BLOCK_SIZE\n\n        clz             v4.4s, v24.4s\n        add             v4.4s, v4.4s, v5.4s                 // -log2()\n        shl             v5.4s, v27.4s, #0x2\n        mul             v3.4s, v3.4s, v26.4s\n        sshr            v3.4s, v3.4s, #0x1\n        sub             v3.4s, v5.4s, v3.4s\n        sshl            v3.4s, v3.4s, v4.4s\n\n        bdof_vx_vy_clip_mask v3, v28, v29, v24, v3\n        sqxtn           v3.4h, v3.4s\n        st1             {v3.d}[0], [x5], #(BDOF_MIN_BLOCK_SIZE * 2)\n        b.eq            16f\n4:\n        mov             w14, #0x0                           // dy, inner loop\n\n        movi            v25.2d, #0\n        movi            v24.2d, #0\n        movi            v26.2d, #0\n        movi            v28.2d, #0\n        movi            v27.2d, #0\n        b               8f\n\n5:\n        // add line(-1) and line0 from previous results\n        bdof_vx_vy_16x_add_line v19, v20, v21, v22, v23\n        bdof_vx_vy_16x_add_line v6, v7, v16, v17, v18\n        add             w14, w14, #0x1\n\n 8:\n        cmp             w13, w6\n        b.hs            9f\n        // y < block_h && dy == 0, reuse previous results\n        cbz             w14, 5b\n9:", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:29", "text": "movi            v25.2d, #0\n        movi            v24.2d, #0\n        movi            v26.2d, #0\n        movi            v28.2d, #0\n        movi            v27.2d, #0\n        b               8f\n\n5:\n        // add line(-1) and line0 from previous results\n        bdof_vx_vy_16x_add_line v19, v20, v21, v22, v23\n        bdof_vx_vy_16x_add_line v6, v7, v16, v17, v18\n        add             w14, w14, #0x1\n\n 8:\n        cmp             w13, w6\n        b.hs            9f\n        // y < block_h && dy == 0, reuse previous results\n        cbz             w14, 5b\n9:\n        ld1             {v29.8h, v30.8h}, [x0]              // src0\n        sshr            v31.8h, v29.8h, #0x4\n        ld1             {v8.8h, v9.8h}, [x1]                // src1\n        sshr            v10.8h, v8.8h, #0x4\n        ld1             {v11.8h, v12.8h}, [x8], #32         // gh0\n        sshr            v29.8h, v30.8h, #0x4\n        sshr            v30.8h, v9.8h, #0x4\n        ld1             {v8.8h, v9.8h}, [x9], #32           // gh1\n        shadd           v13.8h, v11.8h, v8.8h               // (gh0 + gh1) >> 1, left half\n        ld1             {v14.8h, v15.8h}, [x10], #32        // gv0\n        ld1             {v3.8h, v4.8h}, [x11], #32          // gv1\n        shadd           v5.8h, v14.8h, v3.8h                // (gv0 + gv1) >> 1, left half\n        sub             v31.8h, v31.8h, v10.8h              // diff, left half\n        shadd           v8.8h, v12.8h, v9.8h                // (gh0 + gh1) >> 1, right half\n        shadd           v3.8h, v15.8h, v4.8h                // (gv0 + gv1) >> 1, right half\n        sub             v4.8h, v29.8h, v30.8h               // diff, right half\n\n        abs             v29.8h, v13.8h\n        abs             v30.8h, v8.8h\n        abs             v9.8h, v5.8h\n        abs             v10.8h, v3.8h\n\n        add             x0, x0, #(VVC_MAX_PB_SIZE * 2)\n        add             x1, x1, #(VVC_MAX_PB_SIZE * 2)\n\n        bdof_vx_vy_16x_padding_left_right v29, v30, v11, v12, v14, v29\n        bdof_vx_vy_16x_padding_left_right v9, v10, v11, v12, v14, v30\n\n        bdof_vx_vy_sign v13, v9, v10, v9\n        bdof_vx_vy_sign v8, v10, v11, v10\n        bdof_vx_vy_sign v5, v11, v5, v5\n        bdof_vx_vy_sign v3, v11, v3, v3\n\n        mul             v11.8h, v5.8h, v13.8h\n        mul             v12.8h, v3.8h, v8.8h\n        mul             v8.8h, v9.8h, v31.8h\n        mul             v9.8h, v10.8h, v4.8h\n        mul             v13.8h, v5.8h, v31.8h\n        mul             v14.8h, v3.8h, v4.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:30", "text": "abs             v10.8h, v3.8h\n\n        add             x0, x0, #(VVC_MAX_PB_SIZE * 2)\n        add             x1, x1, #(VVC_MAX_PB_SIZE * 2)\n\n        bdof_vx_vy_16x_padding_left_right v29, v30, v11, v12, v14, v29\n        bdof_vx_vy_16x_padding_left_right v9, v10, v11, v12, v14, v30\n\n        bdof_vx_vy_sign v13, v9, v10, v9\n        bdof_vx_vy_sign v8, v10, v11, v10\n        bdof_vx_vy_sign v5, v11, v5, v5\n        bdof_vx_vy_sign v3, v11, v3, v3\n\n        mul             v11.8h, v5.8h, v13.8h\n        mul             v12.8h, v3.8h, v8.8h\n        mul             v8.8h, v9.8h, v31.8h\n        mul             v9.8h, v10.8h, v4.8h\n        mul             v13.8h, v5.8h, v31.8h\n        mul             v14.8h, v3.8h, v4.8h\n\n        bdof_vx_vy_16x_padding_left_right v11, v12, v3, v4, v5, v31\n        bdof_vx_vy_16x_padding_left_right v8, v9, v3, v4, v5, v8\n        bdof_vx_vy_16x_padding_left_right v13, v14, v3, v4, v5, v9\n\n        bdof_vx_vy_16x_add_line v29, v30, v31, v8, v9\n        // check whether padding top\n        cmp             w13, w6\n        b.ne            10f\n        cbnz            w14, 10f\n        // y == block_h && dy == 0, padding top\n        bdof_vx_vy_16x_add_line v29, v30, v31, v8, v9\n        add             w14, w14, #0x1\n        b               9b\n10:\n        cmp             w14, #(BDOF_MIN_BLOCK_SIZE - 1)\n        b.eq            11f\n        cmp             w14, #(BDOF_MIN_BLOCK_SIZE)\n        b.ne            12f\n        // save line4\n        b               1b\n 11:\n        // y == BDOF_MIN_BLOCK_SIZE && dy == BDOF_MIN_BLOCK_SIZE - 1, padding bottom\n        cmp             x13, #(BDOF_MIN_BLOCK_SIZE)\n        b.eq            13f\n        // save line3\n        bdof_vx_vy_16x_save_line v19, v20, v21, v22, v23\n12:\n        add             w14, w14, #0x1                      // dy++\n        b               8b\n13:\n        // padding bottom\n        bdof_vx_vy_16x_add_line v29, v30, v31, v8, v9\n        b               2b\n16:\n        // restore\n        ldp             d9, d8, [sp, #0x30]\n        ldp             d11, d10, [sp, #0x20]\n        ldp             d13, d12, [sp, #0x10]\n        ldp             d15, d14, [sp], #0x40\n        ret", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:31", "text": "11:\n        // y == BDOF_MIN_BLOCK_SIZE && dy == BDOF_MIN_BLOCK_SIZE - 1, padding bottom\n        cmp             x13, #(BDOF_MIN_BLOCK_SIZE)\n        b.eq            13f\n        // save line3\n        bdof_vx_vy_16x_save_line v19, v20, v21, v22, v23\n12:\n        add             w14, w14, #0x1                      // dy++\n        b               8b\n13:\n        // padding bottom\n        bdof_vx_vy_16x_add_line v29, v30, v31, v8, v9\n        b               2b\n16:\n        // restore\n        ldp             d9, d8, [sp, #0x30]\n        ldp             d11, d10, [sp, #0x20]\n        ldp             d13, d12, [sp, #0x10]\n        ldp             d15, d14, [sp], #0x40\n        ret\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2e924176036b415d5c9534a605f7f6a87cae423d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2e924176036b415d5c9534a605f7f6a87cae423d/libavcodec/aarch64/vvc/inter.S", "line_start": 1201, "line_end": 1221}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:20", "text": "ld1             {v5.8h}, [src0], x14\n        ld1             {v6.8h}, [src1], x14\n        saddl           v2.4s, v5.4h, v6.4h\n        add             v2.4s, v2.4s, v7.4s\n        add             v2.4s, v2.4s, v3.4s\n        saddl2          v4.4s, v5.8h, v6.8h\n        add             v4.4s, v4.4s, v7.4s\n        add             v4.4s, v4.4s, v16.4s\n\n        sqshrn          v5.4h, v2.4s, #(15 - \\bit_depth)\n        sqshrn2         v5.8h, v4.4s, #(15 - \\bit_depth)\n        subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride\n.endif\n        b.ne            1b\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.endm\n\nfunction ff_vvc_apply_bdof_block_8_neon, export=1\n        vvc_apply_bdof_block 8\nendfunc\n\nfunction ff_vvc_apply_bdof_block_10_neon, export=1\n        vvc_apply_bdof_block 10\nendfunc\n\nfunction ff_vvc_apply_bdof_block_12_neon, export=1\n        vvc_apply_bdof_block 12\nendfunc\n\nfunction ff_vvc_derive_bdof_vx_vy_neon, export=1\n        src0            .req x0\n        src1            .req x1\n        pad_mask        .req w2\n        gh              .req x3\n        gv              .req x4\n        vx              .req x5\n        vy              .req x6\n\n        gh0             .req x7\n        gh1             .req x8\n        gv0             .req x9\n        gv1             .req x10\n        y               .req x12", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:21", "text": "endfunc\n\nfunction ff_vvc_apply_bdof_block_12_neon, export=1\n        vvc_apply_bdof_block 12\nendfunc\n\nfunction ff_vvc_derive_bdof_vx_vy_neon, export=1\n        src0            .req x0\n        src1            .req x1\n        pad_mask        .req w2\n        gh              .req x3\n        gv              .req x4\n        vx              .req x5\n        vy              .req x6\n\n        gh0             .req x7\n        gh1             .req x8\n        gv0             .req x9\n        gv1             .req x10\n        y               .req x12\n\n        sgx2            .req w7\n        sgy2            .req w8\n        sgxgy           .req w9\n        sgxdi           .req w10\n        sgydi           .req w11\n\n        sgx2_v          .req v22\n        sgy2_v          .req v23\n        sgxgy_v         .req v24\n        sgxdi_v         .req v25\n        sgydi_v         .req v26\n\n        sgx2_v2         .req v27\n        sgy2_v2         .req v28\n        sgxgy_v2        .req v29\n        sgxdi_v2        .req v30\n        sgydi_v2        .req v31\n\n        ldp             gh0, gh1, [gh]\n        ldp             gv0, gv1, [gv]\n        movi            sgx2_v.4s, #0\n        movi            sgy2_v.4s, #0\n        movi            sgxgy_v.4s, #0\n        movi            sgxdi_v.4s, #0\n        movi            sgydi_v.4s, #0\n        movi            sgx2_v2.4s, #0\n        movi            sgy2_v2.4s, #0\n        movi            sgxgy_v2.4s, #0\n        movi            sgxdi_v2.4s, #0\n        movi            sgydi_v2.4s, #0\n        mov             x13, #-1                    // dy\n        movi            v6.4s, #0\n        mov             y, #-1\n        tbz             pad_mask, #1, 1f            // check pad top\n        mov             x13, #0                     // dy: pad top\n1:\n        mov             x16, #-2                    // dx\n        add             x14, src0, x13, lsl #8      // local src0\n        add             x15, src1, x13, lsl #8      // local src1", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:22", "text": "ldp             gv0, gv1, [gv]\n        movi            sgx2_v.4s, #0\n        movi            sgy2_v.4s, #0\n        movi            sgxgy_v.4s, #0\n        movi            sgxdi_v.4s, #0\n        movi            sgydi_v.4s, #0\n        movi            sgx2_v2.4s, #0\n        movi            sgy2_v2.4s, #0\n        movi            sgxgy_v2.4s, #0\n        movi            sgxdi_v2.4s, #0\n        movi            sgydi_v2.4s, #0\n        mov             x13, #-1                    // dy\n        movi            v6.4s, #0\n        mov             y, #-1\n        tbz             pad_mask, #1, 1f            // check pad top\n        mov             x13, #0                     // dy: pad top\n1:\n        mov             x16, #-2                    // dx\n        add             x14, src0, x13, lsl #8      // local src0\n        add             x15, src1, x13, lsl #8      // local src1\n        add             x17, x16, x13, lsl #5\n        ldr             q0, [x14, x16]\n        ldr             q1, [x15, x16]\n        ldr             q2, [gh0, x17]\n        ldr             q3, [gh1, x17]\n        ldr             q4, [gv0, x17]\n        ldr             q5, [gv1, x17]\n        add             x16, x16, #8\n        add             x17, x17, #8\n        ins             v0.s[3], v6.s[3]\n        ins             v1.s[3], v6.s[3]\n        ins             v2.s[3], v6.s[3]\n        ins             v3.s[3], v6.s[3]\n        ins             v4.s[3], v6.s[3]\n        ins             v5.s[3], v6.s[3]\n\n        ldr             q16, [x14, x16]\n        ldr             q17, [x15, x16]\n        ldr             q18, [gh0, x17]\n        ldr             q19, [gh1, x17]\n        ldr             q20, [gv0, x17]\n        ldr             q21, [gv1, x17]\n        ins             v16.s[3], v6.s[3]\n        ins             v17.s[3], v6.s[3]\n        ins             v18.s[3], v6.s[3]\n        ins             v19.s[3], v6.s[3]\n        ins             v20.s[3], v6.s[3]\n        ins             v21.s[3], v6.s[3]\n\n        tbz             pad_mask, #0, 20f\n        // pad left\n        ins             v0.h[0], v0.h[1]\n        ins             v1.h[0], v1.h[1]\n        ins             v2.h[0], v2.h[1]\n        ins             v3.h[0], v3.h[1]\n        ins             v4.h[0], v4.h[1]\n        ins             v5.h[0], v5.h[1]\n20:\n        tbz             pad_mask, #2, 21f\n        // pad right", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:23", "text": "ldr             q20, [gv0, x17]\n        ldr             q21, [gv1, x17]\n        ins             v16.s[3], v6.s[3]\n        ins             v17.s[3], v6.s[3]\n        ins             v18.s[3], v6.s[3]\n        ins             v19.s[3], v6.s[3]\n        ins             v20.s[3], v6.s[3]\n        ins             v21.s[3], v6.s[3]\n\n        tbz             pad_mask, #0, 20f\n        // pad left\n        ins             v0.h[0], v0.h[1]\n        ins             v1.h[0], v1.h[1]\n        ins             v2.h[0], v2.h[1]\n        ins             v3.h[0], v3.h[1]\n        ins             v4.h[0], v4.h[1]\n        ins             v5.h[0], v5.h[1]\n20:\n        tbz             pad_mask, #2, 21f\n        // pad right\n        ins             v16.h[5], v16.h[4]\n        ins             v17.h[5], v17.h[4]\n        ins             v18.h[5], v18.h[4]\n        ins             v19.h[5], v19.h[4]\n        ins             v20.h[5], v20.h[4]\n        ins             v21.h[5], v21.h[4]\n21:\n        sshr            v0.8h, v0.8h, #4\n        sshr            v1.8h, v1.8h, #4\n        add             v2.8h, v2.8h, v3.8h\n        add             v4.8h, v4.8h, v5.8h\n        sub             v0.8h, v0.8h, v1.8h         // diff\n        sshr            v2.8h, v2.8h, #1            // temph\n        sshr            v4.8h, v4.8h, #1            // tempv\n\n        sshr            v16.8h, v16.8h, #4\n        sshr            v17.8h, v17.8h, #4\n        add             v18.8h, v18.8h, v19.8h\n        add             v20.8h, v20.8h, v21.8h\n        sub             v16.8h, v16.8h, v17.8h      // diff\n        sshr            v18.8h, v18.8h, #1          // temph\n        sshr            v20.8h, v20.8h, #1          // tempv\n\n        abs             v3.8h, v2.8h\n        abs             v5.8h, v4.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v.4s, sgx2_v.4s, v3.4s\n        add             sgy2_v.4s, sgy2_v.4s, v5.4s\n\n        abs             v3.8h, v18.8h\n        abs             v5.8h, v20.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:24", "text": "sshr            v18.8h, v18.8h, #1          // temph\n        sshr            v20.8h, v20.8h, #1          // tempv\n\n        abs             v3.8h, v2.8h\n        abs             v5.8h, v4.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v.4s, sgx2_v.4s, v3.4s\n        add             sgy2_v.4s, sgy2_v.4s, v5.4s\n\n        abs             v3.8h, v18.8h\n        abs             v5.8h, v20.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v2.4s, sgx2_v2.4s, v3.4s\n        add             sgy2_v2.4s, sgy2_v2.4s, v5.4s\n\n        cmgt            v17.8h, v4.8h, #0\n        cmlt            v7.8h, v4.8h, #0\n        cmgt            v19.8h, v20.8h, #0\n        cmlt            v21.8h, v20.8h, #0\n        sub             v17.8h, v7.8h, v17.8h       // VVC_SIGN(tempv)\n        sub             v19.8h, v21.8h, v19.8h      // VVC_SIGN(tempv)\n\n        smlal           sgxgy_v.4s, v17.4h, v2.4h\n        smlal2          sgxgy_v.4s, v17.8h, v2.8h\n        smlsl           sgydi_v.4s, v17.4h, v0.4h\n        smlsl2          sgydi_v.4s, v17.8h, v0.8h\n\n        cmgt            v3.8h, v2.8h, #0\n        cmlt            v5.8h, v2.8h, #0\n        cmgt            v17.8h, v18.8h, #0\n        cmlt            v21.8h, v18.8h, #0\n        sub             v3.8h, v5.8h, v3.8h         // VVC_SIGN(temph)\n        sub             v17.8h, v21.8h, v17.8h      // VVC_SIGN(temph)\n\n        smlal           sgxgy_v2.4s, v19.4h, v18.4h\n        smlal2          sgxgy_v2.4s, v19.8h, v18.8h\n        smlsl           sgydi_v2.4s, v19.4h, v16.4h\n        smlsl2          sgydi_v2.4s, v19.8h, v16.8h\n\n        smlsl           sgxdi_v.4s, v3.4h, v0.4h\n        smlsl2          sgxdi_v.4s, v3.8h, v0.8h\n        smlsl           sgxdi_v2.4s, v17.4h, v16.4h\n        smlsl2          sgxdi_v2.4s, v17.8h, v16.8h\n3:\n        add             y, y, #1\n        cmp             y, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x13, y\n        b.gt            4f\n        b.lt            1b\n        tbz             pad_mask, #3, 1b", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:25", "text": "cmlt            v21.8h, v18.8h, #0\n        sub             v3.8h, v5.8h, v3.8h         // VVC_SIGN(temph)\n        sub             v17.8h, v21.8h, v17.8h      // VVC_SIGN(temph)\n\n        smlal           sgxgy_v2.4s, v19.4h, v18.4h\n        smlal2          sgxgy_v2.4s, v19.8h, v18.8h\n        smlsl           sgydi_v2.4s, v19.4h, v16.4h\n        smlsl2          sgydi_v2.4s, v19.8h, v16.8h\n\n        smlsl           sgxdi_v.4s, v3.4h, v0.4h\n        smlsl2          sgxdi_v.4s, v3.8h, v0.8h\n        smlsl           sgxdi_v2.4s, v17.4h, v16.4h\n        smlsl2          sgxdi_v2.4s, v17.8h, v16.8h\n3:\n        add             y, y, #1\n        cmp             y, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x13, y\n        b.gt            4f\n        b.lt            1b\n        tbz             pad_mask, #3, 1b\n        sub             x13, x13, #1                // pad bottom\n        b               1b\n4:\n        addv            s22, sgx2_v.4s\n        addv            s23, sgy2_v.4s\n        addv            s24, sgxgy_v.4s\n        addv            s25, sgxdi_v.4s\n        addv            s26, sgydi_v.4s\n\n        mov             w3, #31\n        mov             w16, #-15\n        mov             w17, #15\n40:\n        mov             w14, #0\n\n        mov             sgx2, v22.s[0]\n        mov             sgy2, v23.s[0]\n        mov             sgxgy, v24.s[0]\n        mov             sgxdi, v25.s[0]\n        mov             sgydi, v26.s[0]\n\n        cbz             sgx2, 5f\n        clz             w12, sgx2\n        lsl             sgxdi, sgxdi, #2\n        sub             w13, w3, w12                // log2(sgx2)\n        asr             sgxdi, sgxdi, w13\n        cmp             sgxdi, w16\n        csel            w14, w16, sgxdi, lt         // clip to -15\n        b.le            5f\n        cmp             sgxdi, w17\n        csel            w14, w17, sgxdi, gt         // clip to 15\n5:\n        strh            w14, [vx], #2\n\n        mov             w15, #0\n        cbz             sgy2, 6f\n        lsl             sgydi, sgydi, #2\n        smull           x14, w14, sgxgy\n        asr             w14, w14, #1\n        sub             sgydi, sgydi, w14", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:26", "text": "cbz             sgx2, 5f\n        clz             w12, sgx2\n        lsl             sgxdi, sgxdi, #2\n        sub             w13, w3, w12                // log2(sgx2)\n        asr             sgxdi, sgxdi, w13\n        cmp             sgxdi, w16\n        csel            w14, w16, sgxdi, lt         // clip to -15\n        b.le            5f\n        cmp             sgxdi, w17\n        csel            w14, w17, sgxdi, gt         // clip to 15\n5:\n        strh            w14, [vx], #2\n\n        mov             w15, #0\n        cbz             sgy2, 6f\n        lsl             sgydi, sgydi, #2\n        smull           x14, w14, sgxgy\n        asr             w14, w14, #1\n        sub             sgydi, sgydi, w14\n        clz             w12, sgy2\n        sub             w13, w3, w12                // log2(sgy2)\n        asr             sgydi, sgydi, w13\n        cmp             sgydi, w16\n        csel            w15, w16, sgydi, lt         // clip to -15\n        b.le            6f\n        cmp             sgydi, w17\n        csel            w15, w17, sgydi, gt         // clip to 15\n6:\n        strh            w15, [vy], #2\n        cbz             x0, 7f\n        addv            s22, sgx2_v2.4s\n        addv            s23, sgy2_v2.4s\n        addv            s24, sgxgy_v2.4s\n        addv            s25, sgxdi_v2.4s\n        addv            s26, sgydi_v2.4s\n        mov             x0, #0\n        b               40b\n7:\n        ret\n\n.unreq src0\n.unreq src1\n.unreq pad_mask\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.unreq sgx2\n.unreq sgy2\n.unreq sgxgy\n.unreq sgxdi\n.unreq sgydi\n.unreq sgx2_v\n.unreq sgy2_v\n.unreq sgxgy_v\n.unreq sgxdi_v\n.unreq sgydi_v\n.unreq sgx2_v2\n.unreq sgy2_v2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:27", "text": ".unreq src0\n.unreq src1\n.unreq pad_mask\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.unreq sgx2\n.unreq sgy2\n.unreq sgxgy\n.unreq sgxdi\n.unreq sgydi\n.unreq sgx2_v\n.unreq sgy2_v\n.unreq sgxgy_v\n.unreq sgxdi_v\n.unreq sgydi_v\n.unreq sgx2_v2\n.unreq sgy2_v2\n.unreq sgxgy_v2\n.unreq sgxdi_v2\n.unreq sgydi_v2\n.unreq y\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "f9b8f30680b6107fe5c32f3ba5115359368ec234", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9b8f30680b6107fe5c32f3ba5115359368ec234/libavcodec/aarch64/vvc/inter.S", "line_start": 1041, "line_end": 1065}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n#define BDOF_BLOCK_SIZE 16\n#define BDOF_MIN_BLOCK_SIZE 4\n\n.macro vvc_avg type, bit_depth\n\n.macro vvc_\\type\\()_\\bit_depth\\()_2_4 tap\n.if \\tap == 2\n        ldr             s0, [src0]\n        ldr             s2, [src1]\n.else\n        ldr             d0, [src0]\n        ldr             d2, [src1]\n.endif\n\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        add             v4.4s, v4.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n.endif\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        umin            v4.4h, v4.4h, v17.4h\n.if \\tap == 2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:2", "text": "sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n.endif\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        umin            v4.4h, v4.4h, v17.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n.endm\n\nfunction ff_vvc_\\type\\()_\\bit_depth\\()_neon, export=1\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        width           .req w4\n        height          .req w5\n\n        mov             x10, #(VVC_MAX_PB_SIZE * 2)\n        cmp             width, #8\n.ifc \\type, avg\n        movi            v16.4s, #(1 << (14 - \\bit_depth))\n.else\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n.endif // avg\n\n .if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        dup             v17.8h, w6\n.endif", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:3", "text": ".ifc \\type, avg\n        movi            v16.4s, #(1 << (14 - \\bit_depth))\n.else\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n.endif // avg\n\n .if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        dup             v17.8h, w6\n.endif\n\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_\\type\\()_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4\n        subs            height, height, #1\n        vvc_\\type\\()_\\bit_depth\\()_2_4 4\n        b.ne            4b\n        b               32f\n8:      // width == 8\n        ld1             {v0.8h}, [src0], x10\n        ld1             {v2.8h}, [src1], x10\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun2         v4.8h, v5.4s\n.endif\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:4", "text": "saddl2          v5.4s, v0.8h, v2.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun2         v4.8h, v5.4s\n.endif\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        st1             {v4.8b}, [dst], dst_stride\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        st1             {v4.8h}, [dst], dst_stride\n.endif\n        b.ne            8b\n        b               32f\n16:     // width >= 16\n        mov             w6, width\n        mov             x7, src0\n        mov             x8, src1\n        mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        saddl           v6.4s, v1.4h, v3.4h\n        saddl2          v7.4s, v1.8h, v3.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrun         v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrun2        v6.8h, v7.4s, #(15 - \\bit_depth)\n.else   // avg\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h\n        smlal2          v7.4s, v1.8h, v19.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:5", "text": "add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrun         v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrun2        v6.8h, v7.4s, #(15 - \\bit_depth)\n.else   // avg\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h\n        smlal2          v7.4s, v1.8h, v19.8h\n        smlal2          v7.4s, v3.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqshl           v6.4s, v6.4s, v22.4s\n        sqshl           v7.4s, v7.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun          v6.4h, v6.4s\n        sqxtun2         v4.8h, v5.4s\n        sqxtun2         v6.8h, v7.4s\n.endif  // w_avg\n        subs            w6, w6, #16\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        sqxtun2         v4.16b, v6.8h\n        str             q4, [x9], #16\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        umin            v6.8h, v6.8h, v17.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12\nvvc_avg w_avg, 8\nvvc_avg w_avg, 10\nvvc_avg w_avg, 12\n\n/* x0: int16_t *dst\n * x1: const uint8_t *_src\n * x2: ptrdiff_t _src_stride\n * w3: int height\n * x4: intptr_t mx\n * x5: intptr_t my\n * w6: int width\n */\nfunction ff_vvc_dmvr_8_neon, export=1\n        dst             .req x0\n        src             .req x1\n        src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        ushll           v1.8h, v0.8b, #2\n        ushll2          v2.8h, v0.16b, #2\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        ushll           v1.8h, v0.8b, #2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:7", "text": "my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        ushll           v1.8h, v0.8b, #2\n        ushll2          v2.8h, v0.16b, #2\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        ushll           v1.8h, v0.8b, #2\n        str             q1, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             s3, [src], #4\n        ushll           v4.8h, v3.8b, #2\n        st1             {v4.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_12_neon, export=1\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        urshr           v0.8h, v0.8h, #2\n        urshr           v1.8h, v1.8h, #2\n\n        stp             q0, q1, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        urshr           v0.8h, v0.8h, #2\n        str             q0, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        urshr           v0.4h, v0.4h, #2\n        st1             {v0.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:8", "text": "1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        urshr           v0.8h, v0.8h, #2\n        urshr           v1.8h, v1.8h, #2\n\n        stp             q0, q1, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        urshr           v0.8h, v0.8h, #2\n        str             q0, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        urshr           v0.4h, v0.4h, #2\n        st1             {v0.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:9", "text": "add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        urshr           v6.8h, v6.8h, #(8 - 6)\n        urshr           v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        urshr           v16.8h, v16.8h, #4\n        urshr           v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        urshr           v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:10", "text": "mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        urshr           v16.8h, v16.8h, #4\n        urshr           v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        urshr           v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        urshr           v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldur            s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        urshr           v6.4h, v6.4h, #(8 - 6)\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        urshr           v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:11", "text": "str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:12", "text": "add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n        umlal           v18.4s, v17.4h, v1.4h\n        umlal2          v19.4s, v17.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        add             v18.4s, v18.4s, v30.4s\n        add             v19.4s, v19.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        ushl            v18.4s, v18.4s, v29.4s\n        ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:13", "text": "ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        stp             q6, q7, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            q7, [src, #2]\n        ldr             q6, [src], #16\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:14", "text": "add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldur            d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        umull           v17.4s, v16.4h, v2.4h\n        umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:15", "text": "uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc\n\nfunction ff_vvc_prof_grad_filter_8x_neon, export=1\n        gh              .req x0\n        gv              .req x1\n        gstride         .req x2\n        src             .req x3\n        src_stride      .req x4\n        width           .req w5\n        height          .req w6\n\n        lsl             src_stride, src_stride, #1\n        neg             x7, src_stride\n1:\n        mov             x10, src\n        mov             w11, width\n        mov             x12, gh\n        mov             x13, gv\n2:\n        ldur            q0, [x10, #2]\n        ldur            q1, [x10, #-2]\n        subs            w11, w11, #8\n        ldr             q2, [x10, src_stride]\n        ldr             q3, [x10, x7]\n        sshr            v0.8h, v0.8h, #6\n        sshr            v1.8h, v1.8h, #6\n        sshr            v2.8h, v2.8h, #6\n        sshr            v3.8h, v3.8h, #6\n        sub             v0.8h, v0.8h, v1.8h\n        sub             v2.8h, v2.8h, v3.8h\n        st1             {v0.8h}, [x12], #16\n        st1             {v2.8h}, [x13], #16\n        add             x10, x10, #16\n        b.ne            2b\n\n        subs            height, height, #1", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:16", "text": "mov             x12, gh\n        mov             x13, gv\n2:\n        ldur            q0, [x10, #2]\n        ldur            q1, [x10, #-2]\n        subs            w11, w11, #8\n        ldr             q2, [x10, src_stride]\n        ldr             q3, [x10, x7]\n        sshr            v0.8h, v0.8h, #6\n        sshr            v1.8h, v1.8h, #6\n        sshr            v2.8h, v2.8h, #6\n        sshr            v3.8h, v3.8h, #6\n        sub             v0.8h, v0.8h, v1.8h\n        sub             v2.8h, v2.8h, v3.8h\n        st1             {v0.8h}, [x12], #16\n        st1             {v2.8h}, [x13], #16\n        add             x10, x10, #16\n        b.ne            2b\n\n        subs            height, height, #1\n        add             gh, gh, gstride, lsl #1\n        add             gv, gv, gstride, lsl #1\n        add             src, src, src_stride\n        b.ne            1b\n        ret\n\n.unreq gh\n.unreq gv\n.unreq gstride\n.unreq src\n.unreq src_stride\n.unreq width\n.unreq height\nendfunc\n\n.macro vvc_apply_bdof_block bit_depth\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        gh              .req x4\n        gv              .req x5\n        vx              .req x6\n        vy              .req x7\n\n        ld1r            {v0.8h}, [vx], #2\n        ld1r            {v1.8h}, [vy], #2\n        ld1r            {v2.8h}, [vx]\n        ld1r            {v3.8h}, [vy]\n        ins             v0.d[1], v2.d[1]\n        ins             v1.d[1], v3.d[1]\n\n        movi            v7.4s, #(1 << (14 - \\bit_depth))\n        ldp             x8, x9, [gh]\n        ldp             x10, x11, [gv]\n        mov             x12, #(BDOF_BLOCK_SIZE * 2)\n        mov             w13, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x14, #(VVC_MAX_PB_SIZE * 2)\n.if \\bit_depth >= 10\n        // clip pixel", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:17", "text": "gh              .req x4\n        gv              .req x5\n        vx              .req x6\n        vy              .req x7\n\n        ld1r            {v0.8h}, [vx], #2\n        ld1r            {v1.8h}, [vy], #2\n        ld1r            {v2.8h}, [vx]\n        ld1r            {v3.8h}, [vy]\n        ins             v0.d[1], v2.d[1]\n        ins             v1.d[1], v3.d[1]\n\n        movi            v7.4s, #(1 << (14 - \\bit_depth))\n        ldp             x8, x9, [gh]\n        ldp             x10, x11, [gv]\n        mov             x12, #(BDOF_BLOCK_SIZE * 2)\n        mov             w13, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x14, #(VVC_MAX_PB_SIZE * 2)\n.if \\bit_depth >= 10\n        // clip pixel\n        mov             w15, #((1 << \\bit_depth) - 1)\n        movi            v18.8h, #0\n        lsl             dst_stride, dst_stride, #1\n        dup             v19.8h, w15\n.endif\n1:\n        ld1             {v2.8h}, [x8], x12\n        ld1             {v3.8h}, [x9], x12\n        ld1             {v4.8h}, [x10], x12\n        ld1             {v5.8h}, [x11], x12\n        sub             v2.8h, v2.8h, v3.8h\n        sub             v4.8h, v4.8h, v5.8h\n        smull           v3.4s, v0.4h, v2.4h\n        smull2          v16.4s, v0.8h, v2.8h\n        smlal           v3.4s, v1.4h, v4.4h\n        smlal2          v16.4s, v1.8h, v4.8h\n\n        ld1             {v5.8h}, [src0], x14\n        ld1             {v6.8h}, [src1], x14\n        saddl           v2.4s, v5.4h, v6.4h\n        add             v2.4s, v2.4s, v7.4s\n        add             v2.4s, v2.4s, v3.4s\n        saddl2          v4.4s, v5.8h, v6.8h\n        add             v4.4s, v4.4s, v7.4s\n        add             v4.4s, v4.4s, v16.4s\n\n        sqshrn          v5.4h, v2.4s, #(15 - \\bit_depth)\n        sqshrn2         v5.8h, v4.4s, #(15 - \\bit_depth)\n        subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride\n.endif\n        b.ne            1b\n        ret", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:18", "text": "add             v2.4s, v2.4s, v7.4s\n        add             v2.4s, v2.4s, v3.4s\n        saddl2          v4.4s, v5.8h, v6.8h\n        add             v4.4s, v4.4s, v7.4s\n        add             v4.4s, v4.4s, v16.4s\n\n        sqshrn          v5.4h, v2.4s, #(15 - \\bit_depth)\n        sqshrn2         v5.8h, v4.4s, #(15 - \\bit_depth)\n        subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride\n.endif\n        b.ne            1b\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.endm\n\nfunction ff_vvc_apply_bdof_block_8_neon, export=1\n        vvc_apply_bdof_block 8\nendfunc\n\nfunction ff_vvc_apply_bdof_block_10_neon, export=1\n        vvc_apply_bdof_block 10\nendfunc\n\nfunction ff_vvc_apply_bdof_block_12_neon, export=1\n        vvc_apply_bdof_block 12\nendfunc\n\nfunction ff_vvc_derive_bdof_vx_vy_neon, export=1\n        src0            .req x0\n        src1            .req x1\n        pad_mask        .req w2\n        gh              .req x3\n        gv              .req x4\n        vx              .req x5\n        vy              .req x6\n\n        gh0             .req x7\n        gh1             .req x8\n        gv0             .req x9\n        gv1             .req x10\n        y               .req x12\n\n        sgx2            .req w7\n        sgy2            .req w8", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:19", "text": "vvc_apply_bdof_block 12\nendfunc\n\nfunction ff_vvc_derive_bdof_vx_vy_neon, export=1\n        src0            .req x0\n        src1            .req x1\n        pad_mask        .req w2\n        gh              .req x3\n        gv              .req x4\n        vx              .req x5\n        vy              .req x6\n\n        gh0             .req x7\n        gh1             .req x8\n        gv0             .req x9\n        gv1             .req x10\n        y               .req x12\n\n        sgx2            .req w7\n        sgy2            .req w8\n        sgxgy           .req w9\n        sgxdi           .req w10\n        sgydi           .req w11\n\n        sgx2_v          .req v22\n        sgy2_v          .req v23\n        sgxgy_v         .req v24\n        sgxdi_v         .req v25\n        sgydi_v         .req v26\n\n        sgx2_v2         .req v27\n        sgy2_v2         .req v28\n        sgxgy_v2        .req v29\n        sgxdi_v2        .req v30\n        sgydi_v2        .req v31\n\n        ldp             gh0, gh1, [gh]\n        ldp             gv0, gv1, [gv]\n        movi            sgx2_v.4s, #0\n        movi            sgy2_v.4s, #0\n        movi            sgxgy_v.4s, #0\n        movi            sgxdi_v.4s, #0\n        movi            sgydi_v.4s, #0\n        movi            sgx2_v2.4s, #0\n        movi            sgy2_v2.4s, #0\n        movi            sgxgy_v2.4s, #0\n        movi            sgxdi_v2.4s, #0\n        movi            sgydi_v2.4s, #0\n        mov             x13, #-1                    // dy\n        movi            v6.4s, #0\n        mov             y, #-1\n        tbz             pad_mask, #1, 1f            // check pad top\n        mov             x13, #0                     // dy: pad top\n1:\n        mov             x16, #-2                    // dx\n        add             x14, src0, x13, lsl #8      // local src0\n        add             x15, src1, x13, lsl #8      // local src1\n        add             x17, x16, x13, lsl #5\n        ldr             q0, [x14, x16]\n        ldr             q1, [x15, x16]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:20", "text": "movi            sgxgy_v.4s, #0\n        movi            sgxdi_v.4s, #0\n        movi            sgydi_v.4s, #0\n        movi            sgx2_v2.4s, #0\n        movi            sgy2_v2.4s, #0\n        movi            sgxgy_v2.4s, #0\n        movi            sgxdi_v2.4s, #0\n        movi            sgydi_v2.4s, #0\n        mov             x13, #-1                    // dy\n        movi            v6.4s, #0\n        mov             y, #-1\n        tbz             pad_mask, #1, 1f            // check pad top\n        mov             x13, #0                     // dy: pad top\n1:\n        mov             x16, #-2                    // dx\n        add             x14, src0, x13, lsl #8      // local src0\n        add             x15, src1, x13, lsl #8      // local src1\n        add             x17, x16, x13, lsl #5\n        ldr             q0, [x14, x16]\n        ldr             q1, [x15, x16]\n        ldr             q2, [gh0, x17]\n        ldr             q3, [gh1, x17]\n        ldr             q4, [gv0, x17]\n        ldr             q5, [gv1, x17]\n        add             x16, x16, #8\n        add             x17, x17, #8\n        ins             v0.s[3], v6.s[3]\n        ins             v1.s[3], v6.s[3]\n        ins             v2.s[3], v6.s[3]\n        ins             v3.s[3], v6.s[3]\n        ins             v4.s[3], v6.s[3]\n        ins             v5.s[3], v6.s[3]\n\n        ldr             q16, [x14, x16]\n        ldr             q17, [x15, x16]\n        ldr             q18, [gh0, x17]\n        ldr             q19, [gh1, x17]\n        ldr             q20, [gv0, x17]\n        ldr             q21, [gv1, x17]\n        ins             v16.s[3], v6.s[3]\n        ins             v17.s[3], v6.s[3]\n        ins             v18.s[3], v6.s[3]\n        ins             v19.s[3], v6.s[3]\n        ins             v20.s[3], v6.s[3]\n        ins             v21.s[3], v6.s[3]\n\n        tbz             pad_mask, #0, 20f\n        // pad left\n        ins             v0.h[0], v0.h[1]\n        ins             v1.h[0], v1.h[1]\n        ins             v2.h[0], v2.h[1]\n        ins             v3.h[0], v3.h[1]\n        ins             v4.h[0], v4.h[1]\n        ins             v5.h[0], v5.h[1]\n20:\n        tbz             pad_mask, #2, 21f\n        // pad right\n        ins             v16.h[5], v16.h[4]\n        ins             v17.h[5], v17.h[4]\n        ins             v18.h[5], v18.h[4]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:21", "text": "ins             v17.s[3], v6.s[3]\n        ins             v18.s[3], v6.s[3]\n        ins             v19.s[3], v6.s[3]\n        ins             v20.s[3], v6.s[3]\n        ins             v21.s[3], v6.s[3]\n\n        tbz             pad_mask, #0, 20f\n        // pad left\n        ins             v0.h[0], v0.h[1]\n        ins             v1.h[0], v1.h[1]\n        ins             v2.h[0], v2.h[1]\n        ins             v3.h[0], v3.h[1]\n        ins             v4.h[0], v4.h[1]\n        ins             v5.h[0], v5.h[1]\n20:\n        tbz             pad_mask, #2, 21f\n        // pad right\n        ins             v16.h[5], v16.h[4]\n        ins             v17.h[5], v17.h[4]\n        ins             v18.h[5], v18.h[4]\n        ins             v19.h[5], v19.h[4]\n        ins             v20.h[5], v20.h[4]\n        ins             v21.h[5], v21.h[4]\n21:\n        sshr            v0.8h, v0.8h, #4\n        sshr            v1.8h, v1.8h, #4\n        add             v2.8h, v2.8h, v3.8h\n        add             v4.8h, v4.8h, v5.8h\n        sub             v0.8h, v0.8h, v1.8h         // diff\n        sshr            v2.8h, v2.8h, #1            // temph\n        sshr            v4.8h, v4.8h, #1            // tempv\n\n        sshr            v16.8h, v16.8h, #4\n        sshr            v17.8h, v17.8h, #4\n        add             v18.8h, v18.8h, v19.8h\n        add             v20.8h, v20.8h, v21.8h\n        sub             v16.8h, v16.8h, v17.8h      // diff\n        sshr            v18.8h, v18.8h, #1          // temph\n        sshr            v20.8h, v20.8h, #1          // tempv\n\n        abs             v3.8h, v2.8h\n        abs             v5.8h, v4.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v.4s, sgx2_v.4s, v3.4s\n        add             sgy2_v.4s, sgy2_v.4s, v5.4s\n\n        abs             v3.8h, v18.8h\n        abs             v5.8h, v20.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v2.4s, sgx2_v2.4s, v3.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:22", "text": "abs             v3.8h, v2.8h\n        abs             v5.8h, v4.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v.4s, sgx2_v.4s, v3.4s\n        add             sgy2_v.4s, sgy2_v.4s, v5.4s\n\n        abs             v3.8h, v18.8h\n        abs             v5.8h, v20.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v2.4s, sgx2_v2.4s, v3.4s\n        add             sgy2_v2.4s, sgy2_v2.4s, v5.4s\n\n        cmgt            v17.8h, v4.8h, #0\n        cmlt            v7.8h, v4.8h, #0\n        cmgt            v19.8h, v20.8h, #0\n        cmlt            v21.8h, v20.8h, #0\n        sub             v17.8h, v7.8h, v17.8h       // VVC_SIGN(tempv)\n        sub             v19.8h, v21.8h, v19.8h      // VVC_SIGN(tempv)\n\n        smlal           sgxgy_v.4s, v17.4h, v2.4h\n        smlal2          sgxgy_v.4s, v17.8h, v2.8h\n        smlsl           sgydi_v.4s, v17.4h, v0.4h\n        smlsl2          sgydi_v.4s, v17.8h, v0.8h\n\n        cmgt            v3.8h, v2.8h, #0\n        cmlt            v5.8h, v2.8h, #0\n        cmgt            v17.8h, v18.8h, #0\n        cmlt            v21.8h, v18.8h, #0\n        sub             v3.8h, v5.8h, v3.8h         // VVC_SIGN(temph)\n        sub             v17.8h, v21.8h, v17.8h      // VVC_SIGN(temph)\n\n        smlal           sgxgy_v2.4s, v19.4h, v18.4h\n        smlal2          sgxgy_v2.4s, v19.8h, v18.8h\n        smlsl           sgydi_v2.4s, v19.4h, v16.4h\n        smlsl2          sgydi_v2.4s, v19.8h, v16.8h\n\n        smlsl           sgxdi_v.4s, v3.4h, v0.4h\n        smlsl2          sgxdi_v.4s, v3.8h, v0.8h\n        smlsl           sgxdi_v2.4s, v17.4h, v16.4h\n        smlsl2          sgxdi_v2.4s, v17.8h, v16.8h\n3:\n        add             y, y, #1\n        cmp             y, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x13, y\n        b.gt            4f\n        b.lt            1b\n        tbz             pad_mask, #3, 1b\n        sub             x13, x13, #1                // pad bottom\n        b               1b\n4:", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:23", "text": "smlal           sgxgy_v2.4s, v19.4h, v18.4h\n        smlal2          sgxgy_v2.4s, v19.8h, v18.8h\n        smlsl           sgydi_v2.4s, v19.4h, v16.4h\n        smlsl2          sgydi_v2.4s, v19.8h, v16.8h\n\n        smlsl           sgxdi_v.4s, v3.4h, v0.4h\n        smlsl2          sgxdi_v.4s, v3.8h, v0.8h\n        smlsl           sgxdi_v2.4s, v17.4h, v16.4h\n        smlsl2          sgxdi_v2.4s, v17.8h, v16.8h\n3:\n        add             y, y, #1\n        cmp             y, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x13, y\n        b.gt            4f\n        b.lt            1b\n        tbz             pad_mask, #3, 1b\n        sub             x13, x13, #1                // pad bottom\n        b               1b\n4:\n        addv            s22, sgx2_v.4s\n        addv            s23, sgy2_v.4s\n        addv            s24, sgxgy_v.4s\n        addv            s25, sgxdi_v.4s\n        addv            s26, sgydi_v.4s\n\n        mov             w3, #31\n        mov             w16, #-15\n        mov             w17, #15\n40:\n        mov             w14, #0\n\n        mov             sgx2, v22.s[0]\n        mov             sgy2, v23.s[0]\n        mov             sgxgy, v24.s[0]\n        mov             sgxdi, v25.s[0]\n        mov             sgydi, v26.s[0]\n\n        cbz             sgx2, 5f\n        clz             w12, sgx2\n        lsl             sgxdi, sgxdi, #2\n        sub             w13, w3, w12                // log2(sgx2)\n        asr             sgxdi, sgxdi, w13\n        cmp             sgxdi, w16\n        csel            w14, w16, sgxdi, lt         // clip to -15\n        b.le            5f\n        cmp             sgxdi, w17\n        csel            w14, w17, sgxdi, gt         // clip to 15\n5:\n        strh            w14, [vx], #2\n\n        mov             w15, #0\n        cbz             sgy2, 6f\n        lsl             sgydi, sgydi, #2\n        smull           x14, w14, sgxgy\n        asr             w14, w14, #1\n        sub             sgydi, sgydi, w14\n        clz             w12, sgy2\n        sub             w13, w3, w12                // log2(sgy2)\n        asr             sgydi, sgydi, w13", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:24", "text": "lsl             sgxdi, sgxdi, #2\n        sub             w13, w3, w12                // log2(sgx2)\n        asr             sgxdi, sgxdi, w13\n        cmp             sgxdi, w16\n        csel            w14, w16, sgxdi, lt         // clip to -15\n        b.le            5f\n        cmp             sgxdi, w17\n        csel            w14, w17, sgxdi, gt         // clip to 15\n5:\n        strh            w14, [vx], #2\n\n        mov             w15, #0\n        cbz             sgy2, 6f\n        lsl             sgydi, sgydi, #2\n        smull           x14, w14, sgxgy\n        asr             w14, w14, #1\n        sub             sgydi, sgydi, w14\n        clz             w12, sgy2\n        sub             w13, w3, w12                // log2(sgy2)\n        asr             sgydi, sgydi, w13\n        cmp             sgydi, w16\n        csel            w15, w16, sgydi, lt         // clip to -15\n        b.le            6f\n        cmp             sgydi, w17\n        csel            w15, w17, sgydi, gt         // clip to 15\n6:\n        strh            w15, [vy], #2\n        cbz             x0, 7f\n        addv            s22, sgx2_v2.4s\n        addv            s23, sgy2_v2.4s\n        addv            s24, sgxgy_v2.4s\n        addv            s25, sgxdi_v2.4s\n        addv            s26, sgydi_v2.4s\n        mov             x0, #0\n        b               40b\n7:\n        ret\n\n.unreq src0\n.unreq src1\n.unreq pad_mask\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.unreq sgx2\n.unreq sgy2\n.unreq sgxgy\n.unreq sgxdi\n.unreq sgydi\n.unreq sgx2_v\n.unreq sgy2_v\n.unreq sgxgy_v\n.unreq sgxdi_v\n.unreq sgydi_v\n.unreq sgx2_v2\n.unreq sgy2_v2\n.unreq sgxgy_v2\n.unreq sgxdi_v2\n.unreq sgydi_v2", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:25", "text": ".unreq pad_mask\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.unreq sgx2\n.unreq sgy2\n.unreq sgxgy\n.unreq sgxdi\n.unreq sgydi\n.unreq sgx2_v\n.unreq sgy2_v\n.unreq sgxgy_v\n.unreq sgxdi_v\n.unreq sgydi_v\n.unreq sgx2_v2\n.unreq sgy2_v2\n.unreq sgxgy_v2\n.unreq sgxdi_v2\n.unreq sgydi_v2\n.unreq y\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "71a91485fa05c1ca478de153d8839794606f8edc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71a91485fa05c1ca478de153d8839794606f8edc/libavcodec/aarch64/vvc/inter.S", "line_start": 961, "line_end": 982}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12\nvvc_avg w_avg, 8\nvvc_avg w_avg, 10\nvvc_avg w_avg, 12\n\n/* x0: int16_t *dst\n * x1: const uint8_t *_src\n * x2: ptrdiff_t _src_stride\n * w3: int height\n * x4: intptr_t mx\n * x5: intptr_t my\n * w6: int width\n */\nfunction ff_vvc_dmvr_8_neon, export=1\n        dst             .req x0\n        src             .req x1\n        src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        uxtl            v1.8h, v0.8b\n        uxtl2           v2.8h, v0.16b\n        ushl            v1.8h, v1.8h, v16.8h\n        ushl            v2.8h, v2.8h, v16.8h\n        stp             q1, q2, [dst], #32\n        b               3f\n2:", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:7", "text": "my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        uxtl            v1.8h, v0.8b\n        uxtl2           v2.8h, v0.16b\n        ushl            v1.8h, v1.8h, v16.8h\n        ushl            v2.8h, v2.8h, v16.8h\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        uxtl            v1.8h, v0.8b\n        ushl            v1.8h, v1.8h, v16.8h\n        str             q1, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             s3, [src], #4\n        uxtl            v4.8h, v3.8b\n        ushl            v4.4h, v4.4h, v16.4h\n        st1             {v4.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_12_neon, export=1\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // offset4\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        uaddl           v4.4s, v1.4h, v16.4h\n        uaddl2          v5.4s, v1.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        ushr            v4.4s, v4.4s, #2\n        ushr            v5.4s, v5.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        uqxtn           v4.4h, v4.4s\n        uqxtn2          v4.8h, v5.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:8", "text": "cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // offset4\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        uaddl           v4.4s, v1.4h, v16.4h\n        uaddl2          v5.4s, v1.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        ushr            v4.4s, v4.4s, #2\n        ushr            v5.4s, v5.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        uqxtn           v4.4h, v4.4s\n        uqxtn2          v4.8h, v5.4s\n\n        stp             q2, q4, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        str             q2, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        uaddl           v3.4s, v0.4h, v16.4h\n        ushr            v3.4s, v3.4s, #2\n        uqxtn           v3.4h, v3.4s\n        st1             {v3.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:9", "text": "add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        movi            v30.8h, #(1 << (8 - 7))     // offset1\n        movi            v31.8h, #8                  // offset2\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:10", "text": "mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        add             v17.8h, v17.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        ushr            v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldur            s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:11", "text": "mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldur            s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        add             v6.4h, v6.4h, v30.4h\n        ushr            v6.4h, v6.4h, #(8 - 6)\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        add             v16.4h, v16.4h, v31.4h\n        ushr            v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:12", "text": "eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:13", "text": "cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n        umlal           v18.4s, v17.4h, v1.4h\n        umlal2          v19.4s, v17.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        add             v18.4s, v18.4s, v30.4s\n        add             v19.4s, v19.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        ushl            v18.4s, v18.4s, v29.4s\n        ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:14", "text": "ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        stp             q6, q7, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            q7, [src, #2]\n        ldr             q6, [src], #16\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldur            d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:15", "text": "cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldur            d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        umull           v17.4s, v16.4h, v2.4h\n        umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc\n\nfunction ff_vvc_prof_grad_filter_8x_neon, export=1\n        gh              .req x0", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:16", "text": "eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc\n\nfunction ff_vvc_prof_grad_filter_8x_neon, export=1\n        gh              .req x0\n        gv              .req x1\n        gstride         .req x2\n        src             .req x3\n        src_stride      .req x4\n        width           .req w5\n        height          .req w6\n\n        lsl             src_stride, src_stride, #1\n        neg             x7, src_stride\n1:\n        mov             x10, src\n        mov             w11, width\n        mov             x12, gh\n        mov             x13, gv\n2:\n        ldur            q0, [x10, #2]\n        ldur            q1, [x10, #-2]\n        subs            w11, w11, #8\n        ldr             q2, [x10, src_stride]\n        ldr             q3, [x10, x7]\n        sshr            v0.8h, v0.8h, #6\n        sshr            v1.8h, v1.8h, #6\n        sshr            v2.8h, v2.8h, #6\n        sshr            v3.8h, v3.8h, #6\n        sub             v0.8h, v0.8h, v1.8h\n        sub             v2.8h, v2.8h, v3.8h\n        st1             {v0.8h}, [x12], #16\n        st1             {v2.8h}, [x13], #16\n        add             x10, x10, #16\n        b.ne            2b\n\n        subs            height, height, #1\n        add             gh, gh, gstride, lsl #1\n        add             gv, gv, gstride, lsl #1\n        add             src, src, src_stride\n        b.ne            1b\n        ret\n\n.unreq gh\n.unreq gv", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:17", "text": "sshr            v0.8h, v0.8h, #6\n        sshr            v1.8h, v1.8h, #6\n        sshr            v2.8h, v2.8h, #6\n        sshr            v3.8h, v3.8h, #6\n        sub             v0.8h, v0.8h, v1.8h\n        sub             v2.8h, v2.8h, v3.8h\n        st1             {v0.8h}, [x12], #16\n        st1             {v2.8h}, [x13], #16\n        add             x10, x10, #16\n        b.ne            2b\n\n        subs            height, height, #1\n        add             gh, gh, gstride, lsl #1\n        add             gv, gv, gstride, lsl #1\n        add             src, src, src_stride\n        b.ne            1b\n        ret\n\n.unreq gh\n.unreq gv\n.unreq gstride\n.unreq src\n.unreq src_stride\n.unreq width\n.unreq height\nendfunc\n\n.macro vvc_apply_bdof_block bit_depth\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        gh              .req x4\n        gv              .req x5\n        vx              .req x6\n        vy              .req x7\n\n        ld1r            {v0.8h}, [vx], #2\n        ld1r            {v1.8h}, [vy], #2\n        ld1r            {v2.8h}, [vx]\n        ld1r            {v3.8h}, [vy]\n        ins             v0.d[1], v2.d[1]\n        ins             v1.d[1], v3.d[1]\n\n        movi            v7.4s, #(1 << (14 - \\bit_depth))\n        ldp             x8, x9, [gh]\n        ldp             x10, x11, [gv]\n        mov             x12, #(BDOF_BLOCK_SIZE * 2)\n        mov             w13, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x14, #(VVC_MAX_PB_SIZE * 2)\n.if \\bit_depth >= 10\n        // clip pixel\n        mov             w15, #((1 << \\bit_depth) - 1)\n        movi            v18.8h, #0\n        lsl             dst_stride, dst_stride, #1\n        dup             v19.8h, w15\n.endif\n1:\n        ld1             {v2.8h}, [x8], x12\n        ld1             {v3.8h}, [x9], x12", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:18", "text": "ld1r            {v3.8h}, [vy]\n        ins             v0.d[1], v2.d[1]\n        ins             v1.d[1], v3.d[1]\n\n        movi            v7.4s, #(1 << (14 - \\bit_depth))\n        ldp             x8, x9, [gh]\n        ldp             x10, x11, [gv]\n        mov             x12, #(BDOF_BLOCK_SIZE * 2)\n        mov             w13, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x14, #(VVC_MAX_PB_SIZE * 2)\n.if \\bit_depth >= 10\n        // clip pixel\n        mov             w15, #((1 << \\bit_depth) - 1)\n        movi            v18.8h, #0\n        lsl             dst_stride, dst_stride, #1\n        dup             v19.8h, w15\n.endif\n1:\n        ld1             {v2.8h}, [x8], x12\n        ld1             {v3.8h}, [x9], x12\n        ld1             {v4.8h}, [x10], x12\n        ld1             {v5.8h}, [x11], x12\n        sub             v2.8h, v2.8h, v3.8h\n        sub             v4.8h, v4.8h, v5.8h\n        smull           v3.4s, v0.4h, v2.4h\n        smull2          v16.4s, v0.8h, v2.8h\n        smlal           v3.4s, v1.4h, v4.4h\n        smlal2          v16.4s, v1.8h, v4.8h\n\n        ld1             {v5.8h}, [src0], x14\n        ld1             {v6.8h}, [src1], x14\n        saddl           v2.4s, v5.4h, v6.4h\n        add             v2.4s, v2.4s, v7.4s\n        add             v2.4s, v2.4s, v3.4s\n        saddl2          v4.4s, v5.8h, v6.8h\n        add             v4.4s, v4.4s, v7.4s\n        add             v4.4s, v4.4s, v16.4s\n\n        sqshrn          v5.4h, v2.4s, #(15 - \\bit_depth)\n        sqshrn2         v5.8h, v4.4s, #(15 - \\bit_depth)\n        subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride\n.endif\n        b.ne            1b\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq gh\n.unreq gv\n.unreq vx", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:19", "text": "subs            w13, w13, #1\n.if \\bit_depth == 8\n        sqxtun          v5.8b, v5.8h\n        str             d5, [dst]\n        add             dst, dst, dst_stride\n.else\n        smin            v5.8h, v5.8h, v19.8h\n        smax            v5.8h, v5.8h, v18.8h\n        st1             {v5.8h}, [dst], dst_stride\n.endif\n        b.ne            1b\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.endm\n\nfunction ff_vvc_apply_bdof_block_8_neon, export=1\n        vvc_apply_bdof_block 8\nendfunc\n\nfunction ff_vvc_apply_bdof_block_10_neon, export=1\n        vvc_apply_bdof_block 10\nendfunc\n\nfunction ff_vvc_apply_bdof_block_12_neon, export=1\n        vvc_apply_bdof_block 12\nendfunc\n\nfunction ff_vvc_derive_bdof_vx_vy_neon, export=1\n        src0            .req x0\n        src1            .req x1\n        pad_mask        .req w2\n        gh              .req x3\n        gv              .req x4\n        vx              .req x5\n        vy              .req x6\n\n        gh0             .req x7\n        gh1             .req x8\n        gv0             .req x9\n        gv1             .req x10\n        y               .req x12\n\n        sgx2            .req w7\n        sgy2            .req w8\n        sgxgy           .req w9\n        sgxdi           .req w10\n        sgydi           .req w11\n\n        sgx2_v          .req v22\n        sgy2_v          .req v23\n        sgxgy_v         .req v24\n        sgxdi_v         .req v25", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:20", "text": "gv              .req x4\n        vx              .req x5\n        vy              .req x6\n\n        gh0             .req x7\n        gh1             .req x8\n        gv0             .req x9\n        gv1             .req x10\n        y               .req x12\n\n        sgx2            .req w7\n        sgy2            .req w8\n        sgxgy           .req w9\n        sgxdi           .req w10\n        sgydi           .req w11\n\n        sgx2_v          .req v22\n        sgy2_v          .req v23\n        sgxgy_v         .req v24\n        sgxdi_v         .req v25\n        sgydi_v         .req v26\n\n        sgx2_v2         .req v27\n        sgy2_v2         .req v28\n        sgxgy_v2        .req v29\n        sgxdi_v2        .req v30\n        sgydi_v2        .req v31\n\n        ldp             gh0, gh1, [gh]\n        ldp             gv0, gv1, [gv]\n        movi            sgx2_v.4s, #0\n        movi            sgy2_v.4s, #0\n        movi            sgxgy_v.4s, #0\n        movi            sgxdi_v.4s, #0\n        movi            sgydi_v.4s, #0\n        movi            sgx2_v2.4s, #0\n        movi            sgy2_v2.4s, #0\n        movi            sgxgy_v2.4s, #0\n        movi            sgxdi_v2.4s, #0\n        movi            sgydi_v2.4s, #0\n        mov             x13, #-1                    // dy\n        movi            v6.4s, #0\n        mov             y, #-1\n        tbz             pad_mask, #1, 1f            // check pad top\n        mov             x13, #0                     // dy: pad top\n1:\n        mov             x16, #-2                    // dx\n        add             x14, src0, x13, lsl #8      // local src0\n        add             x15, src1, x13, lsl #8      // local src1\n        add             x17, x16, x13, lsl #5\n        ldr             q0, [x14, x16]\n        ldr             q1, [x15, x16]\n        ldr             q2, [gh0, x17]\n        ldr             q3, [gh1, x17]\n        ldr             q4, [gv0, x17]\n        ldr             q5, [gv1, x17]\n        add             x16, x16, #8\n        add             x17, x17, #8\n        ins             v0.s[3], v6.s[3]\n        ins             v1.s[3], v6.s[3]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:21", "text": "mov             x13, #-1                    // dy\n        movi            v6.4s, #0\n        mov             y, #-1\n        tbz             pad_mask, #1, 1f            // check pad top\n        mov             x13, #0                     // dy: pad top\n1:\n        mov             x16, #-2                    // dx\n        add             x14, src0, x13, lsl #8      // local src0\n        add             x15, src1, x13, lsl #8      // local src1\n        add             x17, x16, x13, lsl #5\n        ldr             q0, [x14, x16]\n        ldr             q1, [x15, x16]\n        ldr             q2, [gh0, x17]\n        ldr             q3, [gh1, x17]\n        ldr             q4, [gv0, x17]\n        ldr             q5, [gv1, x17]\n        add             x16, x16, #8\n        add             x17, x17, #8\n        ins             v0.s[3], v6.s[3]\n        ins             v1.s[3], v6.s[3]\n        ins             v2.s[3], v6.s[3]\n        ins             v3.s[3], v6.s[3]\n        ins             v4.s[3], v6.s[3]\n        ins             v5.s[3], v6.s[3]\n\n        ldr             q16, [x14, x16]\n        ldr             q17, [x15, x16]\n        ldr             q18, [gh0, x17]\n        ldr             q19, [gh1, x17]\n        ldr             q20, [gv0, x17]\n        ldr             q21, [gv1, x17]\n        ins             v16.s[3], v6.s[3]\n        ins             v17.s[3], v6.s[3]\n        ins             v18.s[3], v6.s[3]\n        ins             v19.s[3], v6.s[3]\n        ins             v20.s[3], v6.s[3]\n        ins             v21.s[3], v6.s[3]\n\n        tbz             pad_mask, #0, 20f\n        // pad left\n        ins             v0.h[0], v0.h[1]\n        ins             v1.h[0], v1.h[1]\n        ins             v2.h[0], v2.h[1]\n        ins             v3.h[0], v3.h[1]\n        ins             v4.h[0], v4.h[1]\n        ins             v5.h[0], v5.h[1]\n20:\n        tbz             pad_mask, #2, 21f\n        // pad right\n        ins             v16.h[5], v16.h[4]\n        ins             v17.h[5], v17.h[4]\n        ins             v18.h[5], v18.h[4]\n        ins             v19.h[5], v19.h[4]\n        ins             v20.h[5], v20.h[4]\n        ins             v21.h[5], v21.h[4]\n21:\n        sshr            v0.8h, v0.8h, #4\n        sshr            v1.8h, v1.8h, #4\n        add             v2.8h, v2.8h, v3.8h\n        add             v4.8h, v4.8h, v5.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:22", "text": "ins             v0.h[0], v0.h[1]\n        ins             v1.h[0], v1.h[1]\n        ins             v2.h[0], v2.h[1]\n        ins             v3.h[0], v3.h[1]\n        ins             v4.h[0], v4.h[1]\n        ins             v5.h[0], v5.h[1]\n20:\n        tbz             pad_mask, #2, 21f\n        // pad right\n        ins             v16.h[5], v16.h[4]\n        ins             v17.h[5], v17.h[4]\n        ins             v18.h[5], v18.h[4]\n        ins             v19.h[5], v19.h[4]\n        ins             v20.h[5], v20.h[4]\n        ins             v21.h[5], v21.h[4]\n21:\n        sshr            v0.8h, v0.8h, #4\n        sshr            v1.8h, v1.8h, #4\n        add             v2.8h, v2.8h, v3.8h\n        add             v4.8h, v4.8h, v5.8h\n        sub             v0.8h, v0.8h, v1.8h         // diff\n        sshr            v2.8h, v2.8h, #1            // temph\n        sshr            v4.8h, v4.8h, #1            // tempv\n\n        sshr            v16.8h, v16.8h, #4\n        sshr            v17.8h, v17.8h, #4\n        add             v18.8h, v18.8h, v19.8h\n        add             v20.8h, v20.8h, v21.8h\n        sub             v16.8h, v16.8h, v17.8h      // diff\n        sshr            v18.8h, v18.8h, #1          // temph\n        sshr            v20.8h, v20.8h, #1          // tempv\n\n        abs             v3.8h, v2.8h\n        abs             v5.8h, v4.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v.4s, sgx2_v.4s, v3.4s\n        add             sgy2_v.4s, sgy2_v.4s, v5.4s\n\n        abs             v3.8h, v18.8h\n        abs             v5.8h, v20.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v2.4s, sgx2_v2.4s, v3.4s\n        add             sgy2_v2.4s, sgy2_v2.4s, v5.4s\n\n        cmgt            v17.8h, v4.8h, #0\n        cmlt            v7.8h, v4.8h, #0\n        cmgt            v19.8h, v20.8h, #0\n        cmlt            v21.8h, v20.8h, #0\n        sub             v17.8h, v7.8h, v17.8h       // VVC_SIGN(tempv)\n        sub             v19.8h, v21.8h, v19.8h      // VVC_SIGN(tempv)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:23", "text": "add             sgx2_v.4s, sgx2_v.4s, v3.4s\n        add             sgy2_v.4s, sgy2_v.4s, v5.4s\n\n        abs             v3.8h, v18.8h\n        abs             v5.8h, v20.8h\n        uxtl            v19.4s, v3.4h\n        uxtl            v21.4s, v5.4h\n        uxtl2           v3.4s, v3.8h\n        uxtl2           v5.4s, v5.8h\n        add             v3.4s, v3.4s, v19.4s\n        add             v5.4s, v5.4s, v21.4s\n        add             sgx2_v2.4s, sgx2_v2.4s, v3.4s\n        add             sgy2_v2.4s, sgy2_v2.4s, v5.4s\n\n        cmgt            v17.8h, v4.8h, #0\n        cmlt            v7.8h, v4.8h, #0\n        cmgt            v19.8h, v20.8h, #0\n        cmlt            v21.8h, v20.8h, #0\n        sub             v17.8h, v7.8h, v17.8h       // VVC_SIGN(tempv)\n        sub             v19.8h, v21.8h, v19.8h      // VVC_SIGN(tempv)\n\n        smlal           sgxgy_v.4s, v17.4h, v2.4h\n        smlal2          sgxgy_v.4s, v17.8h, v2.8h\n        smlsl           sgydi_v.4s, v17.4h, v0.4h\n        smlsl2          sgydi_v.4s, v17.8h, v0.8h\n\n        cmgt            v3.8h, v2.8h, #0\n        cmlt            v5.8h, v2.8h, #0\n        cmgt            v17.8h, v18.8h, #0\n        cmlt            v21.8h, v18.8h, #0\n        sub             v3.8h, v5.8h, v3.8h         // VVC_SIGN(temph)\n        sub             v17.8h, v21.8h, v17.8h      // VVC_SIGN(temph)\n\n        smlal           sgxgy_v2.4s, v19.4h, v18.4h\n        smlal2          sgxgy_v2.4s, v19.8h, v18.8h\n        smlsl           sgydi_v2.4s, v19.4h, v16.4h\n        smlsl2          sgydi_v2.4s, v19.8h, v16.8h\n\n        smlsl           sgxdi_v.4s, v3.4h, v0.4h\n        smlsl2          sgxdi_v.4s, v3.8h, v0.8h\n        smlsl           sgxdi_v2.4s, v17.4h, v16.4h\n        smlsl2          sgxdi_v2.4s, v17.8h, v16.8h\n3:\n        add             y, y, #1\n        cmp             y, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x13, y\n        b.gt            4f\n        b.lt            1b\n        tbz             pad_mask, #3, 1b\n        sub             x13, x13, #1                // pad bottom\n        b               1b\n4:\n        addv            s22, sgx2_v.4s\n        addv            s23, sgy2_v.4s\n        addv            s24, sgxgy_v.4s\n        addv            s25, sgxdi_v.4s\n        addv            s26, sgydi_v.4s\n\n        mov             w3, #31\n        mov             w16, #-15", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:24", "text": "smlsl           sgxdi_v2.4s, v17.4h, v16.4h\n        smlsl2          sgxdi_v2.4s, v17.8h, v16.8h\n3:\n        add             y, y, #1\n        cmp             y, #(BDOF_MIN_BLOCK_SIZE)\n        mov             x13, y\n        b.gt            4f\n        b.lt            1b\n        tbz             pad_mask, #3, 1b\n        sub             x13, x13, #1                // pad bottom\n        b               1b\n4:\n        addv            s22, sgx2_v.4s\n        addv            s23, sgy2_v.4s\n        addv            s24, sgxgy_v.4s\n        addv            s25, sgxdi_v.4s\n        addv            s26, sgydi_v.4s\n\n        mov             w3, #31\n        mov             w16, #-15\n        mov             w17, #15\n40:\n        mov             w14, #0\n\n        mov             sgx2, v22.s[0]\n        mov             sgy2, v23.s[0]\n        mov             sgxgy, v24.s[0]\n        mov             sgxdi, v25.s[0]\n        mov             sgydi, v26.s[0]\n\n        cbz             sgx2, 5f\n        clz             w12, sgx2\n        lsl             sgxdi, sgxdi, #2\n        sub             w13, w3, w12                // log2(sgx2)\n        asr             sgxdi, sgxdi, w13\n        cmp             sgxdi, w16\n        csel            w14, w16, sgxdi, lt         // clip to -15\n        b.le            5f\n        cmp             sgxdi, w17\n        csel            w14, w17, sgxdi, gt         // clip to 15\n5:\n        strh            w14, [vx], #2\n\n        mov             w15, #0\n        cbz             sgy2, 6f\n        lsl             sgydi, sgydi, #2\n        smull           x14, w14, sgxgy\n        asr             w14, w14, #1\n        sub             sgydi, sgydi, w14\n        clz             w12, sgy2\n        sub             w13, w3, w12                // log2(sgy2)\n        asr             sgydi, sgydi, w13\n        cmp             sgydi, w16\n        csel            w15, w16, sgydi, lt         // clip to -15\n        b.le            6f\n        cmp             sgydi, w17\n        csel            w15, w17, sgydi, gt         // clip to 15\n6:\n        strh            w15, [vy], #2\n        cbz             x0, 7f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:25", "text": "5:\n        strh            w14, [vx], #2\n\n        mov             w15, #0\n        cbz             sgy2, 6f\n        lsl             sgydi, sgydi, #2\n        smull           x14, w14, sgxgy\n        asr             w14, w14, #1\n        sub             sgydi, sgydi, w14\n        clz             w12, sgy2\n        sub             w13, w3, w12                // log2(sgy2)\n        asr             sgydi, sgydi, w13\n        cmp             sgydi, w16\n        csel            w15, w16, sgydi, lt         // clip to -15\n        b.le            6f\n        cmp             sgydi, w17\n        csel            w15, w17, sgydi, gt         // clip to 15\n6:\n        strh            w15, [vy], #2\n        cbz             x0, 7f\n        addv            s22, sgx2_v2.4s\n        addv            s23, sgy2_v2.4s\n        addv            s24, sgxgy_v2.4s\n        addv            s25, sgxdi_v2.4s\n        addv            s26, sgydi_v2.4s\n        mov             x0, #0\n        b               40b\n7:\n        ret\n\n.unreq src0\n.unreq src1\n.unreq pad_mask\n.unreq gh\n.unreq gv\n.unreq vx\n.unreq vy\n.unreq sgx2\n.unreq sgy2\n.unreq sgxgy\n.unreq sgxdi\n.unreq sgydi\n.unreq sgx2_v\n.unreq sgy2_v\n.unreq sgxgy_v\n.unreq sgxdi_v\n.unreq sgydi_v\n.unreq sgx2_v2\n.unreq sgy2_v2\n.unreq sgxgy_v2\n.unreq sgxdi_v2\n.unreq sgydi_v2\n.unreq y\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 961, "line_end": 1014}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:26", "text": ".unreq sgxdi\n.unreq sgydi\n.unreq sgx2_v\n.unreq sgy2_v\n.unreq sgxgy_v\n.unreq sgxdi_v\n.unreq sgydi_v\n.unreq sgx2_v2\n.unreq sgy2_v2\n.unreq sgxgy_v2\n.unreq sgxdi_v2\n.unreq sgydi_v2\n.unreq y\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "952508ae059dcf5448a48f525d15f0fbf52df92c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952508ae059dcf5448a48f525d15f0fbf52df92c/libavcodec/aarch64/vvc/inter.S", "line_start": 1001, "line_end": 1014}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n\n.macro vvc_avg type, bit_depth\n\n.macro vvc_\\type\\()_\\bit_depth\\()_2_4 tap\n.if \\tap == 2\n        ldr             s0, [src0]\n        ldr             s2, [src1]\n.else\n        ldr             d0, [src0]\n        ldr             d2, [src1]\n.endif\n\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        add             v4.4s, v4.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n.endif\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        umin            v4.4h, v4.4h, v17.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:2", "text": "mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n.endif\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        umin            v4.4h, v4.4h, v17.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n.endm\n\nfunction ff_vvc_\\type\\()_\\bit_depth\\()_neon, export=1\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        width           .req w4\n        height          .req w5\n\n        mov             x10, #(VVC_MAX_PB_SIZE * 2)\n        cmp             width, #8\n.ifc \\type, avg\n        movi            v16.4s, #(1 << (14 - \\bit_depth))\n.else\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n.endif // avg\n\n .if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        dup             v17.8h, w6\n.endif\n\n        b.eq            8f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:3", "text": ".else\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n.endif // avg\n\n .if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        dup             v17.8h, w6\n.endif\n\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_\\type\\()_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4\n        subs            height, height, #1\n        vvc_\\type\\()_\\bit_depth\\()_2_4 4\n        b.ne            4b\n        b               32f\n8:      // width == 8\n        ld1             {v0.8h}, [src0], x10\n        ld1             {v2.8h}, [src1], x10\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun2         v4.8h, v5.4s\n.endif\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        st1             {v4.8b}, [dst], dst_stride\n.else", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:4", "text": "add             v5.4s, v5.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun2         v4.8h, v5.4s\n.endif\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        st1             {v4.8b}, [dst], dst_stride\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        st1             {v4.8h}, [dst], dst_stride\n.endif\n        b.ne            8b\n        b               32f\n16:     // width >= 16\n        mov             w6, width\n        mov             x7, src0\n        mov             x8, src1\n        mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        saddl           v6.4s, v1.4h, v3.4h\n        saddl2          v7.4s, v1.8h, v3.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrun         v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrun2        v6.8h, v7.4s, #(15 - \\bit_depth)\n.else   // avg\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h\n        smlal2          v7.4s, v1.8h, v19.8h\n        smlal2          v7.4s, v3.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:5", "text": "add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrun         v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrun2        v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrun         v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrun2        v6.8h, v7.4s, #(15 - \\bit_depth)\n.else   // avg\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h\n        smlal2          v7.4s, v1.8h, v19.8h\n        smlal2          v7.4s, v3.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqshl           v6.4s, v6.4s, v22.4s\n        sqshl           v7.4s, v7.4s, v22.4s\n        sqxtun          v4.4h, v4.4s\n        sqxtun          v6.4h, v6.4s\n        sqxtun2         v4.8h, v5.4s\n        sqxtun2         v6.8h, v7.4s\n.endif  // w_avg\n        subs            w6, w6, #16\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        sqxtun2         v4.16b, v6.8h\n        str             q4, [x9], #16\n.else\n        umin            v4.8h, v4.8h, v17.8h\n        umin            v6.8h, v6.8h, v17.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12\nvvc_avg w_avg, 8\nvvc_avg w_avg, 10\nvvc_avg w_avg, 12\n\n/* x0: int16_t *dst\n * x1: const uint8_t *_src\n * x2: ptrdiff_t _src_stride\n * w3: int height\n * x4: intptr_t mx\n * x5: intptr_t my\n * w6: int width\n */\nfunction ff_vvc_dmvr_8_neon, export=1\n        dst             .req x0\n        src             .req x1\n        src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        uxtl            v1.8h, v0.8b\n        uxtl2           v2.8h, v0.16b\n        ushl            v1.8h, v1.8h, v16.8h\n        ushl            v2.8h, v2.8h, v16.8h\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        uxtl            v1.8h, v0.8b", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:7", "text": "sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        uxtl            v1.8h, v0.8b\n        uxtl2           v2.8h, v0.16b\n        ushl            v1.8h, v1.8h, v16.8h\n        ushl            v2.8h, v2.8h, v16.8h\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        uxtl            v1.8h, v0.8b\n        ushl            v1.8h, v1.8h, v16.8h\n        str             q1, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             s3, [src], #4\n        uxtl            v4.8h, v3.8b\n        ushl            v4.4h, v4.4h, v16.4h\n        st1             {v4.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_12_neon, export=1\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // offset4\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        uaddl           v4.4s, v1.4h, v16.4h\n        uaddl2          v5.4s, v1.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        ushr            v4.4s, v4.4s, #2\n        ushr            v5.4s, v5.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        uqxtn           v4.4h, v4.4s\n        uqxtn2          v4.8h, v5.4s\n\n        stp             q2, q4, [dst], #32", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:8", "text": "cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // offset4\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        uaddl           v4.4s, v1.4h, v16.4h\n        uaddl2          v5.4s, v1.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        ushr            v4.4s, v4.4s, #2\n        ushr            v5.4s, v5.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        uqxtn           v4.4h, v4.4s\n        uqxtn2          v4.8h, v5.4s\n\n        stp             q2, q4, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        str             q2, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        uaddl           v3.4s, v0.4h, v16.4h\n        ushr            v3.4s, v3.4s, #2\n        uqxtn           v3.4h, v3.4s\n        st1             {v3.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:9", "text": "ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        movi            v30.8h, #(1 << (8 - 7))     // offset1\n        movi            v31.8h, #8                  // offset2\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:10", "text": "cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        add             v17.8h, v17.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        ushr            v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldur            s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        add             v6.4h, v6.4h, v30.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:11", "text": "add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldur            s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        add             v6.4h, v6.4h, v30.4h\n        ushr            v6.4h, v6.4h, #(8 - 6)\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        add             v16.4h, v16.4h, v31.4h\n        ushr            v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:12", "text": "add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:13", "text": "add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n        umlal           v18.4s, v17.4h, v1.4h\n        umlal2          v19.4s, v17.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        add             v18.4s, v18.4s, v30.4s\n        add             v19.4s, v19.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        ushl            v18.4s, v18.4s, v29.4s\n        ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:14", "text": "umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        stp             q6, q7, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            q7, [src, #2]\n        ldr             q6, [src], #16\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldur            d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:15", "text": "ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldur            d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        umull           v17.4s, v16.4h, v2.4h\n        umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 561, "line_end": 615}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:16", "text": "b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "2bb00ef59c2b5919ba777233d56612d069b0138b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2bb00ef59c2b5919ba777233d56612d069b0138b/libavcodec/aarch64/vvc/inter.S", "line_start": 601, "line_end": 615}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:10", "text": "cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        add             v17.8h, v17.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        ushr            v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldr             s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        add             v6.4h, v6.4h, v30.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "91436638defe83f4241ead35dd9192b1c0ebfe18", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91436638defe83f4241ead35dd9192b1c0ebfe18/libavcodec/aarch64/vvc/inter.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:11", "text": "add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldr             s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        add             v6.4h, v6.4h, v30.4h\n        ushr            v6.4h, v6.4h, #(8 - 6)\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        add             v16.4h, v16.4h, v31.4h\n        ushr            v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "91436638defe83f4241ead35dd9192b1c0ebfe18", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91436638defe83f4241ead35dd9192b1c0ebfe18/libavcodec/aarch64/vvc/inter.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:14", "text": "umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        stp             q6, q7, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            q7, [src, #2]\n        ldr             q6, [src], #16\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldr             d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "91436638defe83f4241ead35dd9192b1c0ebfe18", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91436638defe83f4241ead35dd9192b1c0ebfe18/libavcodec/aarch64/vvc/inter.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:15", "text": "ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldr             d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        umull           v17.4s, v16.4h, v2.4h\n        umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "91436638defe83f4241ead35dd9192b1c0ebfe18", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91436638defe83f4241ead35dd9192b1c0ebfe18/libavcodec/aarch64/vvc/inter.S", "line_start": 561, "line_end": 615}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n\n.macro vvc_avg type, bit_depth\n\n.macro vvc_\\type\\()_\\bit_depth\\()_2_4 tap\n.if \\tap == 2\n        ldr             s0, [src0]\n        ldr             s2, [src1]\n.else\n        ldr             d0, [src0]\n        ldr             d2, [src1]\n.endif\n\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        add             v4.4s, v4.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtn           v4.4h, v4.4s\n.endif\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        smin            v4.4h, v4.4h, v17.4h\n        smax            v4.4h, v4.4h, v18.4h\n.if \\tap == 2\n        str             s4, [dst]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:2", "text": "mov             v4.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqxtn           v4.4h, v4.4s\n.endif\n\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        smin            v4.4h, v4.4h, v17.4h\n        smax            v4.4h, v4.4h, v18.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n.endm\n\nfunction ff_vvc_\\type\\()_\\bit_depth\\()_neon, export=1\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        width           .req w4\n        height          .req w5\n\n        mov             x10, #(VVC_MAX_PB_SIZE * 2)\n        cmp             width, #8\n.ifc \\type, avg\n        movi            v16.4s, #(1 << (14 - \\bit_depth))\n.else\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n.endif // avg\n\n .if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        movi            v18.8h, #0\n        dup             v17.8h, w6\n.endif", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:3", "text": "movi            v16.4s, #(1 << (14 - \\bit_depth))\n.else\n        lsr             x11, x6, #32        // weight0\n        mov             w12, w6             // weight1\n        lsr             x13, x7, #32        // offset\n        mov             w14, w7             // shift\n\n        dup             v19.8h, w11\n        neg             w14, w14            // so we can use sqshl\n        dup             v20.8h, w12\n        dup             v16.4s, w13\n        dup             v22.4s, w14\n.endif // avg\n\n .if \\bit_depth >= 10\n        // clip pixel\n        mov             w6, #((1 << \\bit_depth) - 1)\n        movi            v18.8h, #0\n        dup             v17.8h, w6\n.endif\n\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_\\type\\()_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4\n        subs            height, height, #1\n        vvc_\\type\\()_\\bit_depth\\()_2_4 4\n        b.ne            4b\n        b               32f\n8:      // width == 8\n        ld1             {v0.8h}, [src0], x10\n        ld1             {v2.8h}, [src1], x10\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtn           v4.4h, v4.4s\n        sqxtn2          v4.8h, v5.4s\n.endif\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:4", "text": "saddl2          v5.4s, v0.8h, v2.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n.else\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqxtn           v4.4h, v4.4s\n        sqxtn2          v4.8h, v5.4s\n.endif\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        st1             {v4.8b}, [dst], dst_stride\n.else\n        smin            v4.8h, v4.8h, v17.8h\n        smax            v4.8h, v4.8h, v18.8h\n        st1             {v4.8h}, [dst], dst_stride\n.endif\n        b.ne            8b\n        b               32f\n16:     // width >= 16\n        mov             w6, width\n        mov             x7, src0\n        mov             x8, src1\n        mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n.ifc \\type, avg\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        saddl           v6.4s, v1.4h, v3.4h\n        saddl2          v7.4s, v1.8h, v3.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrn          v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrn2         v6.8h, v7.4s, #(15 - \\bit_depth)\n.else   // avg\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:5", "text": "saddl2          v7.4s, v1.8h, v3.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrn          v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrn2         v6.8h, v7.4s, #(15 - \\bit_depth)\n.else   // avg\n        mov             v4.16b, v16.16b\n        mov             v5.16b, v16.16b\n        mov             v6.16b, v16.16b\n        mov             v7.16b, v16.16b\n        smlal           v4.4s, v0.4h, v19.4h\n        smlal           v4.4s, v2.4h, v20.4h\n        smlal2          v5.4s, v0.8h, v19.8h\n        smlal2          v5.4s, v2.8h, v20.8h\n        smlal           v6.4s, v1.4h, v19.4h\n        smlal           v6.4s, v3.4h, v20.4h\n        smlal2          v7.4s, v1.8h, v19.8h\n        smlal2          v7.4s, v3.8h, v20.8h\n        sqshl           v4.4s, v4.4s, v22.4s\n        sqshl           v5.4s, v5.4s, v22.4s\n        sqshl           v6.4s, v6.4s, v22.4s\n        sqshl           v7.4s, v7.4s, v22.4s\n        sqxtn           v4.4h, v4.4s\n        sqxtn           v6.4h, v6.4s\n        sqxtn2          v4.8h, v5.4s\n        sqxtn2          v6.8h, v7.4s\n.endif  // w_avg\n        subs            w6, w6, #16\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        sqxtun2         v4.16b, v6.8h\n        str             q4, [x9], #16\n.else\n        smin            v4.8h, v4.8h, v17.8h\n        smin            v6.8h, v6.8h, v17.8h\n        smax            v4.8h, v4.8h, v18.8h\n        smax            v6.8h, v6.8h, v18.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "smax            v6.8h, v6.8h, v18.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12\nvvc_avg w_avg, 8\nvvc_avg w_avg, 10\nvvc_avg w_avg, 12\n\n/* x0: int16_t *dst\n * x1: const uint8_t *_src\n * x2: ptrdiff_t _src_stride\n * w3: int height\n * x4: intptr_t mx\n * x5: intptr_t my\n * w6: int width\n */\nfunction ff_vvc_dmvr_8_neon, export=1\n        dst             .req x0\n        src             .req x1\n        src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        uxtl            v1.8h, v0.8b\n        uxtl2           v2.8h, v0.16b\n        ushl            v1.8h, v1.8h, v16.8h\n        ushl            v2.8h, v2.8h, v16.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:7", "text": "src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // DMVR_SHIFT\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldr             q0, [src], #16\n        uxtl            v1.8h, v0.8b\n        uxtl2           v2.8h, v0.16b\n        ushl            v1.8h, v1.8h, v16.8h\n        ushl            v2.8h, v2.8h, v16.8h\n        stp             q1, q2, [dst], #32\n        b               3f\n2:\n        ldr             d0, [src], #8\n        uxtl            v1.8h, v0.8b\n        ushl            v1.8h, v1.8h, v16.8h\n        str             q1, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             s3, [src], #4\n        uxtl            v4.8h, v3.8b\n        ushl            v4.4h, v4.4h, v16.4h\n        st1             {v4.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_12_neon, export=1\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // offset4\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        uaddl           v4.4s, v1.4h, v16.4h\n        uaddl2          v5.4s, v1.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        ushr            v4.4s, v4.4s, #2\n        ushr            v5.4s, v5.4s, #2\n        uqxtn           v2.4h, v2.4s", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:8", "text": "function ff_vvc_dmvr_12_neon, export=1\n        sxtw            x6, w6\n        mov             x7, #(VVC_MAX_PB_SIZE * 2 + 8)\n        cmp             width, #16\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n        movi            v16.8h, #2                  // offset4\n        sub             x7, x7, x6, lsl #1\n1:\n        cbz             w15, 2f\n        ldp             q0, q1, [src], #32\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        uaddl           v4.4s, v1.4h, v16.4h\n        uaddl2          v5.4s, v1.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        ushr            v4.4s, v4.4s, #2\n        ushr            v5.4s, v5.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        uqxtn           v4.4h, v4.4s\n        uqxtn2          v4.8h, v5.4s\n\n        stp             q2, q4, [dst], #32\n        b               3f\n2:\n        ldr             q0, [src], #16\n        uaddl           v2.4s, v0.4h, v16.4h\n        uaddl2          v3.4s, v0.8h, v16.8h\n        ushr            v2.4s, v2.4s, #2\n        ushr            v3.4s, v3.4s, #2\n        uqxtn           v2.4h, v2.4s\n        uqxtn2          v2.8h, v3.4s\n        str             q2, [dst], #16\n3:\n        subs            height, height, #1\n        ldr             d0, [src], #8\n        uaddl           v3.4s, v0.4h, v16.4h\n        ushr            v3.4s, v3.4s, #2\n        uqxtn           v3.4h, v3.4s\n        st1             {v3.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:9", "text": "uqxtn           v3.4h, v3.4s\n        st1             {v3.4h}, [dst], x7\n\n        add             src, src, src_stride\n        b.ne            1b\n\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        movi            v30.8h, #(1 << (8 - 7))     // offset1\n        movi            v31.8h, #8                  // offset2\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:10", "text": "cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q16, q17, [x12], #32\n        mul             v16.8h, v16.8h, v2.8h\n        mul             v17.8h, v17.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        mla             v17.8h, v7.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        add             v17.8h, v17.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        ushr            v17.8h, v17.8h, #4\n        stp             q16, q17, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            d5, [src, #1]\n        ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldr             s5, [src, #1]\n        ldr             s4, [src], #4", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:11", "text": "ldr             d4, [src], #8\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.8h, v6.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        mul             v16.8h, v16.8h, v2.8h\n        mla             v16.8h, v6.8h, v3.8h\n        add             v16.8h, v16.8h, v31.8h\n        ushr            v16.8h, v16.8h, #4\n        str             q16, [x14], #16\n3:\n        ldr             s5, [src, #1]\n        ldr             s4, [src], #4\n        uxtl            v7.8h, v5.8b\n        uxtl            v6.8h, v4.8b\n        mul             v6.4h, v6.4h, v0.4h\n        mla             v6.4h, v7.4h, v1.4h\n        add             v6.4h, v6.4h, v30.4h\n        ushr            v6.4h, v6.4h, #(8 - 6)\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        mul             v16.4h, v16.4h, v2.4h\n        mla             v16.4h, v6.4h, v3.4h\n        add             v16.4h, v16.4h, v31.4h\n        ushr            v16.4h, v16.4h, #4\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:12", "text": "add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\nendfunc\n\nfunction ff_vvc_dmvr_hv_12_neon, export=1\n        movi            v29.4s, #(12 - 6)\n        movi            v30.4s, #(1 << (12 - 7))    // offset1\n        b               0f\nendfunc\n\nfunction ff_vvc_dmvr_hv_10_neon, export=1\n        movi            v29.4s, #(10 - 6)\n        movi            v30.4s, #(1 << (10 - 7))    // offset1\n0:\n        movi            v31.4s, #8                  // offset2\n        neg             v29.4s, v29.4s\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:13", "text": "dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6, lsl #1\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        add             x16, src, #2\n        ldp             q6, q16, [src], #32\n        ldp             q7, q17, [x16]\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umull           v18.4s, v16.4h, v0.4h\n        umull2          v19.4s, v16.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n        umlal           v18.4s, v17.4h, v1.4h\n        umlal2          v19.4s, v17.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        add             v18.4s, v18.4s, v30.4s\n        add             v19.4s, v19.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        ushl            v18.4s, v18.4s, v29.4s\n        ushl            v19.4s, v19.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        uqxtn           v7.4h, v18.4s\n        uqxtn2          v7.8h, v19.4s\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:14", "text": "stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f\n\n        ldp             q4, q5, [x12], #32\n        umull           v17.4s, v4.4h, v2.4h\n        umull2          v18.4s, v4.8h, v2.8h\n        umull           v19.4s, v5.4h, v2.4h\n        umull2          v20.4s, v5.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        umlal           v19.4s, v7.4h, v3.4h\n        umlal2          v20.4s, v7.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        add             v19.4s, v19.4s, v31.4s\n        add             v20.4s, v20.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        ushr            v19.4s, v19.4s, #4\n        ushr            v20.4s, v20.4s, #4\n        uqxtn           v6.4h, v17.4s\n        uqxtn2          v6.8h, v18.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        stp             q6, q7, [x14], #32\n        b               3f\n2:\n        // width > 8\n        ldur            q7, [src, #2]\n        ldr             q6, [src], #16\n        umull           v4.4s, v6.4h, v0.4h\n        umull2          v5.4s, v6.8h, v0.8h\n        umlal           v4.4s, v7.4h, v1.4h\n        umlal2          v5.4s, v7.8h, v1.8h\n\n        add             v4.4s, v4.4s, v30.4s\n        add             v5.4s, v5.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        ushl            v5.4s, v5.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldr             d7, [src, #2]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:15", "text": "uqxtn           v6.4h, v4.4s\n        uqxtn2          v6.8h, v5.4s\n        str             q6, [x13], #16\n\n        cbz             w10, 3f\n\n        ldr             q16, [x12], #16\n        umull           v17.4s, v16.4h, v2.4h\n        umull2          v18.4s, v16.8h, v2.8h\n        umlal           v17.4s, v6.4h, v3.4h\n        umlal2          v18.4s, v6.8h, v3.8h\n        add             v17.4s, v17.4s, v31.4s\n        add             v18.4s, v18.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        ushr            v18.4s, v18.4s, #4\n        uqxtn           v16.4h, v17.4s\n        uqxtn2          v16.8h, v18.4s\n        str             q16, [x14], #16\n3:\n        ldr             d7, [src, #2]\n        ldr             d6, [src], #8\n        umull           v4.4s, v7.4h, v1.4h\n        umlal           v4.4s, v6.4h, v0.4h\n        add             v4.4s, v4.4s, v30.4s\n        ushl            v4.4s, v4.4s, v29.4s\n        uqxtn           v6.4h, v4.4s\n        str             d6, [x13], #8\n\n        cbz             w10, 4f\n\n        ldr             d16, [x12], #8\n        umull           v17.4s, v16.4h, v2.4h\n        umlal           v17.4s, v6.4h, v3.4h\n        add             v17.4s, v17.4s, v31.4s\n        ushr            v17.4s, v17.4s, #4\n        uqxtn           v16.4h, v17.4s\n        str             d16, [x14], #8\n4:\n        subs            height, height, #1\n        mov             w10, #1\n        add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:16", "text": "add             src, src, src_stride\n        add             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        eor             tmp0, tmp0, tmp1\n        eor             tmp1, tmp0, tmp1\n        eor             tmp0, tmp0, tmp1\n        b.ne            1b\n\n        add             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n        ret\n\n.unreq dst\n.unreq src\n.unreq src_stride\n.unreq height\n.unreq mx\n.unreq my\n.unreq width\n.unreq tmp0\n.unreq tmp1\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "5988a2729bc21ade237a9d0f9bb1112f39870f56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5988a2729bc21ade237a9d0f9bb1112f39870f56/libavcodec/aarch64/vvc/inter.S", "line_start": 601, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "smax            v6.8h, v6.8h, v18.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12\nvvc_avg w_avg, 8\nvvc_avg w_avg, 10\nvvc_avg w_avg, 12\n\n/* x0: int16_t *dst\n * x1: const uint8_t *_src\n * x2: ptrdiff_t _src_stride\n * w3: int height\n * x4: intptr_t mx\n * x5: intptr_t my\n * w6: int width\n */\nfunction ff_vvc_dmvr_hv_8_neon, export=1\n        dst             .req x0\n        src             .req x1\n        src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "bcd65ebd8fcdc4bf81db8a36bac0d7e4ddab0449", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bcd65ebd8fcdc4bf81db8a36bac0d7e4ddab0449/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:7", "text": "src_stride      .req x2\n        height          .req w3\n        mx              .req x4\n        my              .req x5\n        width           .req w6\n        tmp0            .req x7\n        tmp1            .req x8\n\n        sub             sp, sp, #(VVC_MAX_PB_SIZE * 4)\n\n        movrel          x9, X(ff_vvc_inter_luma_dmvr_filters)\n        add             x12, x9, mx, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        mov             tmp0, sp\n        add             tmp1, tmp0, #(VVC_MAX_PB_SIZE * 2)\n        // We know the value are positive\n        dup             v0.8h, w10                  // filter_x[0]\n        dup             v1.8h, w11                  // filter_x[1]\n\n        add             x12, x9, my, lsl #1\n        ldrb            w10, [x12]\n        ldrb            w11, [x12, #1]\n        sxtw            x6, w6\n        movi            v30.8h, #(1 << (8 - 7))     // offset1\n        movi            v31.8h, #8                  // offset2\n        dup             v2.8h, w10                  // filter_y[0]\n        dup             v3.8h, w11                  // filter_y[1]\n\n        // Valid value for width can only be 8 + 4, 16 + 4\n        cmp             width, #16\n        mov             w10, #0                     // start filter_y or not\n        add             height, height, #1\n        sub             dst, dst, #(VVC_MAX_PB_SIZE * 2)\n        sub             src_stride, src_stride, x6\n        cset            w15, gt                     // width > 16\n1:\n        mov             x12, tmp0\n        mov             x13, tmp1\n        mov             x14, dst\n        cbz             w15, 2f\n\n        // width > 16\n        ldur            q5, [src, #1]\n        ldr             q4, [src], #16\n        uxtl            v7.8h, v5.8b\n        uxtl2           v17.8h, v5.16b\n        uxtl            v6.8h, v4.8b\n        uxtl2           v16.8h, v4.16b\n        mul             v6.8h, v6.8h, v0.8h\n        mul             v16.8h, v16.8h, v0.8h\n        mla             v6.8h, v7.8h, v1.8h\n        mla             v16.8h, v17.8h, v1.8h\n        add             v6.8h, v6.8h, v30.8h\n        add             v16.8h, v16.8h, v30.8h\n        ushr            v6.8h, v6.8h, #(8 - 6)\n        ushr            v7.8h, v16.8h, #(8 - 6)\n        stp             q6, q7, [x13], #32\n\n        cbz             w10, 3f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "bcd65ebd8fcdc4bf81db8a36bac0d7e4ddab0449", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bcd65ebd8fcdc4bf81db8a36bac0d7e4ddab0449/libavcodec/aarch64/vvc/inter.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:6", "text": "smax            v6.8h, v6.8h, v18.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\n\n.unreq dst\n.unreq dst_stride\n.unreq src0\n.unreq src1\n.unreq width\n.unreq height\nendfunc\n.endm\n\nvvc_avg avg, 8\nvvc_avg avg, 10\nvvc_avg avg, 12\nvvc_avg w_avg, 8\nvvc_avg w_avg, 10\nvvc_avg w_avg, 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "0ba9e8d0d492b8477eabbd8ec0c114bf05b7d7b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0ba9e8d0d492b8477eabbd8ec0c114bf05b7d7b7/libavcodec/aarch64/vvc/inter.S", "line_start": 201, "line_end": 228}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n\n.macro vvc_avg, bit_depth\n\n.macro vvc_avg_\\bit_depth\\()_2_4, tap\n.if \\tap == 2\n        ldr             s0, [src0]\n        ldr             s2, [src1]\n.else\n        ldr             d0, [src0]\n        ldr             d2, [src1]\n.endif\n        saddl           v4.4s, v0.4h, v2.4h\n        add             v4.4s, v4.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n.if \\tap == 2\n        str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        smin            v4.4h, v4.4h, v17.4h\n        smax            v4.4h, v4.4h, v18.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n.endm\n\nfunction ff_vvc_avg_\\bit_depth\\()_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "3f84d1d1fb75e4192c35664b4dd4741e8381b667", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f84d1d1fb75e4192c35664b4dd4741e8381b667/libavcodec/aarch64/vvc/inter.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:2", "text": "str             h4, [dst]\n.else   // tap == 4\n        str             s4, [dst]\n.endif\n\n.else   // bit_depth > 8\n        smin            v4.4h, v4.4h, v17.4h\n        smax            v4.4h, v4.4h, v18.4h\n.if \\tap == 2\n        str             s4, [dst]\n.else\n        str             d4, [dst]\n.endif\n.endif\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n.endm\n\nfunction ff_vvc_avg_\\bit_depth\\()_neon, export=1\n        dst             .req x0\n        dst_stride      .req x1\n        src0            .req x2\n        src1            .req x3\n        width           .req w4\n        height          .req w5\n\n        mov             x10, #(VVC_MAX_PB_SIZE * 2)\n        cmp             width, #8\n.if \\bit_depth == 8\n        movi            v16.4s, #64\n.else\n.if \\bit_depth == 10\n        mov             w6, #1023\n        movi            v16.4s, #16\n.else\n        mov             w6, #4095\n        movi            v16.4s, #4\n.endif\n        movi            v18.8h, #0\n        dup             v17.8h, w6\n.endif\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_avg_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4\n        subs            height, height, #1\n        vvc_avg_\\bit_depth\\()_2_4 4\n        b.ne            4b\n        b               32f\n8:      // width == 8\n        ld1             {v0.8h}, [src0], x10\n        ld1             {v2.8h}, [src1], x10\n        saddl           v4.4s, v0.4h, v2.4h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "3f84d1d1fb75e4192c35664b4dd4741e8381b667", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f84d1d1fb75e4192c35664b4dd4741e8381b667/libavcodec/aarch64/vvc/inter.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:3", "text": "dup             v17.8h, w6\n.endif\n        b.eq            8f\n        b.hi            16f\n        cmp             width, #4\n        b.eq            4f\n2:      // width == 2\n        subs            height, height, #1\n        vvc_avg_\\bit_depth\\()_2_4 2\n        b.ne            2b\n        b               32f\n4:      // width == 4\n        subs            height, height, #1\n        vvc_avg_\\bit_depth\\()_2_4 4\n        b.ne            4b\n        b               32f\n8:      // width == 8\n        ld1             {v0.8h}, [src0], x10\n        ld1             {v2.8h}, [src1], x10\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n        subs            height, height, #1\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        st1             {v4.8b}, [dst], dst_stride\n.else\n        smin            v4.8h, v4.8h, v17.8h\n        smax            v4.8h, v4.8h, v18.8h\n        st1             {v4.8h}, [dst], dst_stride\n.endif\n        b.ne            8b\n        b               32f\n16:     // width >= 16\n        mov             w6, width\n        mov             x7, src0\n        mov             x8, src1\n        mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        saddl           v6.4s, v1.4h, v3.4h\n        saddl2          v7.4s, v1.8h, v3.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrn          v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrn2         v6.8h, v7.4s, #(15 - \\bit_depth)\n        subs            w6, w6, #16\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        sqxtun2         v4.16b, v6.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "3f84d1d1fb75e4192c35664b4dd4741e8381b667", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f84d1d1fb75e4192c35664b4dd4741e8381b667/libavcodec/aarch64/vvc/inter.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter.S:4", "text": "mov             x9, dst\n17:\n        ldp             q0, q1, [x7], #32\n        ldp             q2, q3, [x8], #32\n        saddl           v4.4s, v0.4h, v2.4h\n        saddl2          v5.4s, v0.8h, v2.8h\n        saddl           v6.4s, v1.4h, v3.4h\n        saddl2          v7.4s, v1.8h, v3.8h\n        add             v4.4s, v4.4s, v16.4s\n        add             v5.4s, v5.4s, v16.4s\n        add             v6.4s, v6.4s, v16.4s\n        add             v7.4s, v7.4s, v16.4s\n        sqshrn          v4.4h, v4.4s, #(15 - \\bit_depth)\n        sqshrn2         v4.8h, v5.4s, #(15 - \\bit_depth)\n        sqshrn          v6.4h, v6.4s, #(15 - \\bit_depth)\n        sqshrn2         v6.8h, v7.4s, #(15 - \\bit_depth)\n        subs            w6, w6, #16\n.if \\bit_depth == 8\n        sqxtun          v4.8b, v4.8h\n        sqxtun2         v4.16b, v6.8h\n        str             q4, [x9], #16\n.else\n        smin            v4.8h, v4.8h, v17.8h\n        smin            v6.8h, v6.8h, v17.8h\n        smax            v4.8h, v4.8h, v18.8h\n        smax            v6.8h, v6.8h, v18.8h\n        stp             q4, q6, [x9], #32\n.endif\n        b.ne            17b\n\n        subs            height, height, #1\n        add             src0, src0, x10\n        add             src1, src1, x10\n        add             dst, dst, dst_stride\n        b.ne            16b\n32:\n        ret\nendfunc\n.endm\n\nvvc_avg 8\nvvc_avg 10\nvvc_avg 12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter.S", "license": "LGPL-2.1", "commit": "3f84d1d1fb75e4192c35664b4dd4741e8381b667", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f84d1d1fb75e4192c35664b4dd4741e8381b667/libavcodec/aarch64/vvc/inter.S", "line_start": 121, "line_end": 163}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:1", "text": "/*\n * Copyright (c) 2025 Georgii Zagoruiko <george.zaguri@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n\nENABLE_SME2\n\n#if HAVE_SME_I16I64\nENABLE_SME_I16I64\n.macro first_group_filter_luma_offsets breg, shift\n        // x20-x23: p5[0],p3[-1],p1[0],p0[3]\n        // x24-x27: p6[0],p4[1],p2[0],p0[-3]\n        neg             x26, x11\n        ubfx            x20, \\breg, #(3+\\shift), #2\n        ubfx            x21, \\breg, #(1+\\shift), #2\n        mul             x24, x20, x26\n        mul             x20, x20, x11\n        mul             x25, x21, x26\n        mul             x21, x21, x11\n        ubfx            x22, \\breg, #(\\shift), #1\n        sub             x21, x21, #1\n        mul             x26, x22, x26\n        mul             x22, x22, x11\n        mov             x23, #3\n        add             x25, x25, #1\n        mov             x27, #-3\n.endm\n\n.macro second_group_filter_luma_offsets breg, shift\n        // x20-x23: p3[ 1],p1[ 2],p1[-1],p0[ 2]\n        // x24-x27: p4[-1],p2[-2],p2[ 1],p0[-2]\n        neg             x26, x11\n        ubfx            x20, \\breg, #(1+\\shift), #2\n        ubfx            x21, \\breg, #(\\shift), #1\n        mul             x24, x20, x26\n        mul             x20, x20, x11\n        mul             x25, x21, x26\n        mul             x26, x21, x26\n        mul             x21, x21, x11\n        add             x20, x20, #1\n        sub             x22, x21, #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:2", "text": "mul             x26, x22, x26\n        mul             x22, x22, x11\n        mov             x23, #3\n        add             x25, x25, #1\n        mov             x27, #-3\n.endm\n\n.macro second_group_filter_luma_offsets breg, shift\n        // x20-x23: p3[ 1],p1[ 2],p1[-1],p0[ 2]\n        // x24-x27: p4[-1],p2[-2],p2[ 1],p0[-2]\n        neg             x26, x11\n        ubfx            x20, \\breg, #(1+\\shift), #2\n        ubfx            x21, \\breg, #(\\shift), #1\n        mul             x24, x20, x26\n        mul             x20, x20, x11\n        mul             x25, x21, x26\n        mul             x26, x21, x26\n        mul             x21, x21, x11\n        add             x20, x20, #1\n        sub             x22, x21, #1\n        add             x21, x21, #2\n        mov             x23, #2\n        sub             x24, x24, #1\n        sub             x25, x25, #2\n        add             x26, x26, #1\n        mov             x27, #-2\n.endm\n\n.macro third_group_filter_luma_offsets breg, shift\n        // x20-x23: p3[0],p1[ 1],p1[-2],p0[ 1]\n        // x24-x27: p4[0],p2[-1],p2[ 2],p0[-1]\n        neg             x26, x11\n        ubfx            x21, \\breg, #(\\shift), #1\n        ubfx            x20, \\breg, #(1+\\shift), #2\n        mul             x25, x21, x26\n        mul             x26, x21, x26\n        mul             x21, x21, x11\n        mul             x24, x20, x26\n        mul             x20, x20, x11\n        sub             x22, x21, #2\n        add             x21, x21, #1\n        mov             x23, #1\n        sub             x25, x25, #1\n        mov             x27, #-1\n        add             x26, x26, #2\n.endm\n\n.macro kernel_filter_luma_8_sme2 src, zreg, idx\n        ld1b            z20.h, p0/z, [\\src, x20]\n        ld1b            z21.h, p0/z, [\\src, x21]\n        ld1b            z22.h, p0/z, [\\src, x22]\n        ld1b            z23.h, p0/z, [\\src, x23]\n        ld1b            z24.h, p0/z, [\\src, x24]\n        ld1b            z25.h, p0/z, [\\src, x25]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1b            z26.h, p0/z, [\\src, x26]\n        ld1b            z27.h, p0/z, [\\src, x27]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h\n        // transpose data vectors", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:3", "text": "add             x21, x21, #1\n        mov             x23, #1\n        sub             x25, x25, #1\n        mov             x27, #-1\n        add             x26, x26, #2\n.endm\n\n.macro kernel_filter_luma_8_sme2 src, zreg, idx\n        ld1b            z20.h, p0/z, [\\src, x20]\n        ld1b            z21.h, p0/z, [\\src, x21]\n        ld1b            z22.h, p0/z, [\\src, x22]\n        ld1b            z23.h, p0/z, [\\src, x23]\n        ld1b            z24.h, p0/z, [\\src, x24]\n        ld1b            z25.h, p0/z, [\\src, x25]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1b            z26.h, p0/z, [\\src, x26]\n        ld1b            z27.h, p0/z, [\\src, x27]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h\n        // transpose data vectors\n        zip             {z20.h-z23.h}, {z20.h-z23.h}\n        zip             {z24.h-z27.h}, {z24.h-z27.h}\n        // clip data\n        sclamp          z20.h, z16.h, z12.h\n        sclamp          z24.h, z16.h, z12.h\n        sclamp          z21.h, z17.h, z13.h\n        sclamp          z25.h, z17.h, z13.h\n        sclamp          z22.h, z18.h, z14.h\n        sclamp          z26.h, z18.h, z14.h\n        sclamp          z23.h, z19.h, z15.h\n        sclamp          z27.h, z19.h, z15.h\n        sdot            za.d[w10, \\idx], {z20.h-z23.h}, {z28.h-z31.h}\n        sdot            za.d[w10, \\idx], {z24.h-z27.h}, {z28.h-z31.h}\n.endm\n\nfunction ff_vvc_alf_filter_luma_8_sme2, export=1\n        // dst           .req x0\n        // src           .req x1\n        // strides       .req x2\n        // dims          .req x3\n        // filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        sme_entry\n        stp             x19, x20, [sp, #-80]!\n        stp             x21, x22, [sp, #16]\n        stp             x23, x24, [sp, #32]\n        stp             x25, x26, [sp, #48]\n        stp             x27, x28, [sp, #64]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11\n        msub            w9, w9, w11, w8\n        whilelo         p10.h, xzr, x9\n        ptrue           p1.h\n        lsr             x11, x2, #32 // src stride\n        lsr             w2, w2, #0 // leave dst stride only", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:4", "text": "// filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        sme_entry\n        stp             x19, x20, [sp, #-80]!\n        stp             x21, x22, [sp, #16]\n        stp             x23, x24, [sp, #32]\n        stp             x25, x26, [sp, #48]\n        stp             x27, x28, [sp, #64]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11\n        msub            w9, w9, w11, w8\n        whilelo         p10.h, xzr, x9\n        ptrue           p1.h\n        lsr             x11, x2, #32 // src stride\n        lsr             w2, w2, #0 // leave dst stride only\n        mov             w10, #0\n        mov             w12, #255\n        dup             z9.h, w10\n        dup             z10.h, w12\n1:\n        lsr             x20, x3, #32\n        mov             p0.b, p10.b\n        sub             w20, w20, w7\n        mov             w12, w9\n        sub             w6, w6, #6\n        // offsets are packed into the format: (M<<3)|(N<<1)|K, where M is p5/p6 offset (multiply), N is p3/p4 offset, K is p1/p2 offset\n        mov             w21, #0\n        mov             w22, #0xB\n        mov             w23, #0x15\n        mov             w13, #0x1D // 0x1D == (3<<3)|(2<<1)|1\n        mov             w14, #0x1D\n        mov             w15, #0x1D\n        mov             w16, #0x1D\n        // y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w23, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w21, ne", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:5", "text": "add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w23, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 2\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w23, ne\n        // y == vb_pos\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]\n        ld3h            {z0.h-z2.h}, p0/z, [x5]\n        // Load filter [12=>3x4 memory layout]\n        ld3h            {z3.h-z5.h}, p0/z, [x4]\n        add             x15, x14, x11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:6", "text": "// y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]\n        ld3h            {z0.h-z2.h}, p0/z, [x5]\n        // Load filter [12=>3x4 memory layout]\n        ld3h            {z3.h-z5.h}, p0/z, [x4]\n        add             x15, x14, x11\n        add             x16, x14, x11, lsl #1\n        add             x17, x15, x11, lsl #1\n        add             x30, x19, x2, lsl #1\n\n        mov             z12.d, z0.d\n        mov             z13.d, z0.d\n        mov             z14.d, z0.d\n        mov             z15.d, z0.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z3.d\n        mov             z29.d, z3.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z3.d\n        mov             z31.d, z3.d\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1b            z6.h, p0/z, [x14]\n        ld1b            z7.h, p0/z, [x15]\n        ld1b            z0.h, p0/z, [x16]\n        ld1b            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z1.d\n        mov             z13.d, z1.d\n        mov             z14.d, z1.d\n        mov             z15.d, z1.d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:7", "text": "ld1b            z6.h, p0/z, [x14]\n        ld1b            z7.h, p0/z, [x15]\n        ld1b            z0.h, p0/z, [x16]\n        ld1b            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z1.d\n        mov             z13.d, z1.d\n        mov             z14.d, z1.d\n        mov             z15.d, z1.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z4.d\n        mov             z29.d, z4.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z4.d\n        mov             z31.d, z4.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (second group): a1,a4,a7,a10,a13...\n        // left:  {p3[ 1],p1[ 2],p1[-1],p0[ 2]}\n        // right: {p4[-1],p2[-2],p2[ 1],p0[-2]}\n        second_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        second_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:8", "text": "kernel_filter_luma_8_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (third group): a2,a5,a8,a11,a14...\n        // left:  {p3[0],p1[ 1],p1[-2],p0[ 1]}\n        // right: {p4[0],p2[-1],p2[ 2],p0[-1]}\n        third_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        third_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        third_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        third_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n        mova            {z16.d-z19.d}, za.d[w10, 0]\n        mova            {z20.d-z23.d}, za.d[w10, 1]\n        mova            {z24.d-z27.d}, za.d[w10, 2]\n        mova            {z28.d-z31.d}, za.d[w10, 3]\n        sqrshr          z12.h, {z16.d-z19.d}, #7\n        sqrshr          z13.h, {z20.d-z23.d}, #7\n        sqrshr          z14.h, {z24.d-z27.d}, #7\n        sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h\n        sclamp          {z12.h-z15.h}, z9.h, z10.h\n        st1b            z12.h, p0, [x19]\n        st1b            z13.h, p0, [x19, x2]\n        st1b            z14.h, p0, [x30]\n        st1b            z15.h, p0, [x30, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:9", "text": "sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h\n        sclamp          {z12.h-z15.h}, z9.h, z10.h\n        st1b            z12.h, p0, [x19]\n        st1b            z13.h, p0, [x19, x2]\n        st1b            z14.h, p0, [x30]\n        st1b            z15.h, p0, [x30, x2]\n        zero            {za}\n        add             x14, x14, x12\n        add             x19, x19, x12\n        ptrue           p0.h\n        subs            w8, w8, w12\n        add             w12, w12, w12, lsl #1\n        add             x4, x4, x12, lsl #1\n        add             x5, x5, x12, lsl #1\n        cnth            x12\n        b.gt            2b\n        mov             w8, w3\n        subs            w7, w7, #4\n        add             x1, x1, x11, lsl #2\n        add             x0, x0, x2, lsl #2\n        b.gt            1b\n\n        ldp             x21, x22, [sp, #16]\n        ldp             x23, x24, [sp, #32]\n        ldp             x25, x26, [sp, #48]\n        ldp             x27, x28, [sp, #64]\n        ldp             x19, x20, [sp], #80\n        sme_exit\n        ret\nendfunc\n\n.macro kernel_filter_luma_16_sme2 src, zreg, idx\n        ld1h            z20.h, p0/z, [\\src, x20, lsl #1]\n        ld1h            z21.h, p0/z, [\\src, x21, lsl #1]\n        ld1h            z22.h, p0/z, [\\src, x22, lsl #1]\n        ld1h            z23.h, p0/z, [\\src, x23, lsl #1]\n        ld1h            z24.h, p0/z, [\\src, x24, lsl #1]\n        ld1h            z25.h, p0/z, [\\src, x25, lsl #1]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1h            z26.h, p0/z, [\\src, x26, lsl #1]\n        ld1h            z27.h, p0/z, [\\src, x27, lsl #1]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h\n        // transpose data vectors\n        zip             {z20.h-z23.h}, {z20.h-z23.h}\n        zip             {z24.h-z27.h}, {z24.h-z27.h}", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:10", "text": "ldp             x19, x20, [sp], #80\n        sme_exit\n        ret\nendfunc\n\n.macro kernel_filter_luma_16_sme2 src, zreg, idx\n        ld1h            z20.h, p0/z, [\\src, x20, lsl #1]\n        ld1h            z21.h, p0/z, [\\src, x21, lsl #1]\n        ld1h            z22.h, p0/z, [\\src, x22, lsl #1]\n        ld1h            z23.h, p0/z, [\\src, x23, lsl #1]\n        ld1h            z24.h, p0/z, [\\src, x24, lsl #1]\n        ld1h            z25.h, p0/z, [\\src, x25, lsl #1]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1h            z26.h, p0/z, [\\src, x26, lsl #1]\n        ld1h            z27.h, p0/z, [\\src, x27, lsl #1]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h\n        // transpose data vectors\n        zip             {z20.h-z23.h}, {z20.h-z23.h}\n        zip             {z24.h-z27.h}, {z24.h-z27.h}\n        // clip data\n        sclamp          z20.h, z16.h, z12.h\n        sclamp          z24.h, z16.h, z12.h\n        sclamp          z21.h, z17.h, z13.h\n        sclamp          z25.h, z17.h, z13.h\n        sclamp          z22.h, z18.h, z14.h\n        sclamp          z26.h, z18.h, z14.h\n        sclamp          z23.h, z19.h, z15.h\n        sclamp          z27.h, z19.h, z15.h\n        sdot            za.d[w10, \\idx], {z20.h-z23.h}, {z28.h-z31.h}\n        sdot            za.d[w10, \\idx], {z24.h-z27.h}, {z28.h-z31.h}\n.endm\n\nfunction ff_vvc_alf_filter_luma_12_sme2, export=1\n        mov             w12, #4095\n        b               0f\nendfunc\n\nfunction ff_vvc_alf_filter_luma_10_sme2, export=1\n        // dst           .req x0\n        // src           .req x1\n        // strides       .req x2\n        // dims          .req x3\n        // filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        mov             w12, #1023\n0:\n        sme_entry\n        stp             x19, x20, [sp, #-80]!\n        stp             x21, x22, [sp, #16]\n        stp             x23, x24, [sp, #32]\n        stp             x25, x26, [sp, #48]\n        stp             x27, x28, [sp, #64]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:11", "text": "// src           .req x1\n        // strides       .req x2\n        // dims          .req x3\n        // filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        mov             w12, #1023\n0:\n        sme_entry\n        stp             x19, x20, [sp, #-80]!\n        stp             x21, x22, [sp, #16]\n        stp             x23, x24, [sp, #32]\n        stp             x25, x26, [sp, #48]\n        stp             x27, x28, [sp, #64]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11\n        msub            w9, w9, w11, w8\n        whilelo         p10.h, xzr, x9\n        ptrue           p1.h\n        lsr             x11, x2, #33 // src stride\n        lsr             w2, w2, #1\n        mov             w10, #0\n        dup             z9.h, w10\n        dup             z10.h, w12\n1:\n        lsr             x20, x3, #32\n        mov             p0.b, p10.b\n        sub             w20, w20, w7\n        mov             w12, w9\n        sub             w6, w6, #6\n        // offsets are packed into the format: (M<<3)|(N<<1)|K, where M is p5/p6 offset (multiply), N is p3/p4 offset, K is p1/p2 offset\n        mov             w21, #0\n        mov             w22, #0xB\n        mov             w23, #0x15\n        mov             w13, #0x1D // 0x1D == (3<<3)|(2<<1)|1\n        mov             w14, #0x1D\n        mov             w15, #0x1D\n        mov             w16, #0x1D\n        // y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:12", "text": "mov             w15, #0x1D\n        mov             w16, #0x1D\n        // y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w23, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 2\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w23, ne\n        // y == vb_pos\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:13", "text": "add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]\n        ld3h            {z0.h-z2.h}, p0/z, [x5]\n        // Load filter [12=>3x4 memory layout]\n        ld3h            {z3.h-z5.h}, p0/z, [x4]\n        add             x15, x14, x11, lsl #1\n        add             x16, x14, x11, lsl #2\n        add             x17, x15, x11, lsl #2\n        add             x30, x19, x2, lsl #2\n\n        mov             z12.d, z0.d\n        mov             z13.d, z0.d\n        mov             z14.d, z0.d\n        mov             z15.d, z0.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z3.d\n        mov             z29.d, z3.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z3.d\n        mov             z31.d, z3.d\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1h            z6.h, p0/z, [x14]\n        ld1h            z7.h, p0/z, [x15]\n        ld1h            z0.h, p0/z, [x16]\n        ld1h            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:14", "text": "neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1h            z6.h, p0/z, [x14]\n        ld1h            z7.h, p0/z, [x15]\n        ld1h            z0.h, p0/z, [x16]\n        ld1h            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n\n        mov             z12.d, z1.d\n        mov             z13.d, z1.d\n        mov             z14.d, z1.d\n        mov             z15.d, z1.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z4.d\n        mov             z29.d, z4.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z4.d\n        mov             z31.d, z4.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (second group): a1,a4,a7,a10,a13...\n        // left:  {p3[ 1],p1[ 2],p1[-1],p0[ 2]}\n        // right: {p4[-1],p2[-2],p2[ 1],p0[-2]}\n        second_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        second_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:15", "text": "kernel_filter_luma_16_sme2 x14, z6.h, 0\n        second_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n\n        // clip & filter (third group): a2,a5,a8,a11,a14...\n        // left:  {p3[0],p1[ 1],p1[-2],p0[ 1]}\n        // right: {p4[0],p2[-1],p2[ 2],p0[-1]}\n        third_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        third_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        third_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        third_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n        mova            {z16.d-z19.d}, za.d[w10, 0]\n        mova            {z20.d-z23.d}, za.d[w10, 1]\n        mova            {z24.d-z27.d}, za.d[w10, 2]\n        mova            {z28.d-z31.d}, za.d[w10, 3]\n        sqrshr          z12.h, {z16.d-z19.d}, #7\n        sqrshr          z13.h, {z20.d-z23.d}, #7\n        sqrshr          z14.h, {z24.d-z27.d}, #7\n        sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:16", "text": "sqrshr          z12.h, {z16.d-z19.d}, #7\n        sqrshr          z13.h, {z20.d-z23.d}, #7\n        sqrshr          z14.h, {z24.d-z27.d}, #7\n        sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h\n        sclamp          {z12.h-z15.h}, z9.h, z10.h\n        st1h            z12.h, p0, [x19]\n        st1h            z13.h, p0, [x19, x2, lsl #1]\n        st1h            z14.h, p0, [x30]\n        st1h            z15.h, p0, [x30, x2, lsl #1]\n        zero            {za}\n        add             x14, x14, x12, lsl #1\n        add             x19, x19, x12, lsl #1\n        ptrue           p0.h\n        subs            w8, w8, w12\n        add             w12, w12, w12, lsl #1\n        add             x4, x4, x12, lsl #1\n        add             x5, x5, x12, lsl #1\n        cnth            x12\n        b.gt            2b\n        mov             w8, w3\n        subs            w7, w7, #4\n        add             x1, x1, x11, lsl #3\n        add             x0, x0, x2, lsl #3\n        b.gt            1b\n\n        ldp             x21, x22, [sp, #16]\n        ldp             x23, x24, [sp, #32]\n        ldp             x25, x26, [sp, #48]\n        ldp             x27, x28, [sp, #64]\n        ldp             x19, x20, [sp], #80\n        sme_exit\n        ret\nendfunc\nDISABLE_SME_I16I64\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 601, "line_end": 651}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:17", "text": "ldp             x21, x22, [sp, #16]\n        ldp             x23, x24, [sp, #32]\n        ldp             x25, x26, [sp, #48]\n        ldp             x27, x28, [sp, #64]\n        ldp             x19, x20, [sp], #80\n        sme_exit\n        ret\nendfunc\nDISABLE_SME_I16I64\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 641, "line_end": 651}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:3", "text": "add             x21, x21, #1\n        mov             x23, #1\n        sub             x25, x25, #1\n        mov             x27, #-1\n        add             x26, x26, #2\n.endm\n\n.macro kernel_filter_luma_8_sme2 src, zreg, idx\n        ld1b            z20.h, p0/z, [\\src, x20]\n        ld1b            z21.h, p0/z, [\\src, x21]\n        ld1b            z22.h, p0/z, [\\src, x22]\n        ld1b            z23.h, p0/z, [\\src, x23]\n        ld1b            z24.h, p0/z, [\\src, x24]\n        ld1b            z25.h, p0/z, [\\src, x25]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1b            z26.h, p0/z, [\\src, x26]\n        ld1b            z27.h, p0/z, [\\src, x27]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h\n        // transpose data vectors\n        zip             {z20.h-z23.h}, {z20.h-z23.h}\n        zip             {z24.h-z27.h}, {z24.h-z27.h}\n        // clip data\n        sclamp          z20.h, z16.h, z12.h\n        sclamp          z24.h, z16.h, z12.h\n        sclamp          z21.h, z17.h, z13.h\n        sclamp          z25.h, z17.h, z13.h\n        sclamp          z22.h, z18.h, z14.h\n        sclamp          z26.h, z18.h, z14.h\n        sclamp          z23.h, z19.h, z15.h\n        sclamp          z27.h, z19.h, z15.h\n        sdot            za.d[w10, \\idx], {z20.h-z23.h}, {z28.h-z31.h}\n        sdot            za.d[w10, \\idx], {z24.h-z27.h}, {z28.h-z31.h}\n.endm\n\nfunction ff_vvc_alf_filter_luma_8_sme2, export=1\n        // dst           .req x0\n        // src           .req x1\n        // strides       .req x2\n        // dims          .req x3\n        // filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        sme_entry\n        stp             x29, x30, [sp, #-96]!\n        mov             x29, sp\n        stp             x19, x20, [sp, #16]\n        stp             x21, x22, [sp, #32]\n        stp             x23, x24, [sp, #48]\n        stp             x25, x26, [sp, #64]\n        stp             x27, x28, [sp, #80]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11\n        msub            w9, w9, w11, w8\n        whilelo         p10.h, xzr, x9\n        ptrue           p1.h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:4", "text": "// filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        sme_entry\n        stp             x29, x30, [sp, #-96]!\n        mov             x29, sp\n        stp             x19, x20, [sp, #16]\n        stp             x21, x22, [sp, #32]\n        stp             x23, x24, [sp, #48]\n        stp             x25, x26, [sp, #64]\n        stp             x27, x28, [sp, #80]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11\n        msub            w9, w9, w11, w8\n        whilelo         p10.h, xzr, x9\n        ptrue           p1.h\n        lsr             x11, x2, #32 // src stride\n        lsr             w2, w2, #0 // leave dst stride only\n        mov             w10, #0\n        mov             w12, #255\n        dup             z9.h, w10\n        dup             z10.h, w12\n1:\n        lsr             x20, x3, #32\n        mov             p0.b, p10.b\n        sub             w20, w20, w7\n        mov             w12, w9\n        sub             w6, w6, #6\n        // offsets are packed into the format: (M<<3)|(N<<1)|K, where M is p5/p6 offset (multiply), N is p3/p4 offset, K is p1/p2 offset\n        mov             w21, #0\n        mov             w22, #0xB\n        mov             w23, #0x15\n        mov             w13, #0x1D // 0x1D == (3<<3)|(2<<1)|1\n        mov             w14, #0x1D\n        mov             w15, #0x1D\n        mov             w16, #0x1D\n        // y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w23, ne\n        csel            w14, w14, w22, ne", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:5", "text": "// y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w23, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 2\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w23, ne\n        // y == vb_pos\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]\n        ld3h            {z0.h-z2.h}, p0/z, [x5]\n        // Load filter [12=>3x4 memory layout]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:6", "text": "csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]\n        ld3h            {z0.h-z2.h}, p0/z, [x5]\n        // Load filter [12=>3x4 memory layout]\n        ld3h            {z3.h-z5.h}, p0/z, [x4]\n        add             x15, x14, x11\n        add             x16, x14, x11, lsl #1\n        add             x17, x15, x11, lsl #1\n        add             x30, x19, x2, lsl #1\n\n        mov             z12.d, z0.d\n        mov             z13.d, z0.d\n        mov             z14.d, z0.d\n        mov             z15.d, z0.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z3.d\n        mov             z29.d, z3.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z3.d\n        mov             z31.d, z3.d\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1b            z6.h, p0/z, [x14]\n        ld1b            z7.h, p0/z, [x15]\n        ld1b            z0.h, p0/z, [x16]\n        ld1b            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z1.d\n        mov             z13.d, z1.d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:7", "text": "zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1b            z6.h, p0/z, [x14]\n        ld1b            z7.h, p0/z, [x15]\n        ld1b            z0.h, p0/z, [x16]\n        ld1b            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z1.d\n        mov             z13.d, z1.d\n        mov             z14.d, z1.d\n        mov             z15.d, z1.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z4.d\n        mov             z29.d, z4.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z4.d\n        mov             z31.d, z4.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (second group): a1,a4,a7,a10,a13...\n        // left:  {p3[ 1],p1[ 2],p1[-1],p0[ 2]}\n        // right: {p4[-1],p2[-2],p2[ 1],p0[-2]}\n        second_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        second_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:8", "text": "kernel_filter_luma_8_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (third group): a2,a5,a8,a11,a14...\n        // left:  {p3[0],p1[ 1],p1[-2],p0[ 1]}\n        // right: {p4[0],p2[-1],p2[ 2],p0[-1]}\n        third_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_8_sme2 x14, z6.h, 0\n        third_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_8_sme2 x15, z7.h, 1\n        third_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_8_sme2 x16, z0.h, 2\n        third_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_8_sme2 x17, z3.h, 3\n        mova            {z16.d-z19.d}, za.d[w10, 0]\n        mova            {z20.d-z23.d}, za.d[w10, 1]\n        mova            {z24.d-z27.d}, za.d[w10, 2]\n        mova            {z28.d-z31.d}, za.d[w10, 3]\n        sqrshr          z12.h, {z16.d-z19.d}, #7\n        sqrshr          z13.h, {z20.d-z23.d}, #7\n        sqrshr          z14.h, {z24.d-z27.d}, #7\n        sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h\n        sclamp          {z12.h-z15.h}, z9.h, z10.h\n        st1b            z12.h, p0, [x19]\n        st1b            z13.h, p0, [x19, x2]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:9", "text": "sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h\n        sclamp          {z12.h-z15.h}, z9.h, z10.h\n        st1b            z12.h, p0, [x19]\n        st1b            z13.h, p0, [x19, x2]\n        st1b            z14.h, p0, [x30]\n        st1b            z15.h, p0, [x30, x2]\n        zero            {za}\n        add             x14, x14, x12\n        add             x19, x19, x12\n        ptrue           p0.h\n        subs            w8, w8, w12\n        add             w12, w12, w12, lsl #1\n        add             x4, x4, x12, lsl #1\n        add             x5, x5, x12, lsl #1\n        cnth            x12\n        b.gt            2b\n        mov             w8, w3\n        subs            w7, w7, #4\n        add             x1, x1, x11, lsl #2\n        add             x0, x0, x2, lsl #2\n        b.gt            1b\n\n        ldp             x19, x20, [sp, #16]\n        ldp             x21, x22, [sp, #32]\n        ldp             x23, x24, [sp, #48]\n        ldp             x25, x26, [sp, #64]\n        ldp             x27, x28, [sp, #80]\n        ldp             x29, x30, [sp], #96\n        sme_exit\n        ret\nendfunc\n\n.macro kernel_filter_luma_16_sme2 src, zreg, idx\n        ld1h            z20.h, p0/z, [\\src, x20, lsl #1]\n        ld1h            z21.h, p0/z, [\\src, x21, lsl #1]\n        ld1h            z22.h, p0/z, [\\src, x22, lsl #1]\n        ld1h            z23.h, p0/z, [\\src, x23, lsl #1]\n        ld1h            z24.h, p0/z, [\\src, x24, lsl #1]\n        ld1h            z25.h, p0/z, [\\src, x25, lsl #1]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1h            z26.h, p0/z, [\\src, x26, lsl #1]\n        ld1h            z27.h, p0/z, [\\src, x27, lsl #1]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:10", "text": "ldp             x23, x24, [sp, #48]\n        ldp             x25, x26, [sp, #64]\n        ldp             x27, x28, [sp, #80]\n        ldp             x29, x30, [sp], #96\n        sme_exit\n        ret\nendfunc\n\n.macro kernel_filter_luma_16_sme2 src, zreg, idx\n        ld1h            z20.h, p0/z, [\\src, x20, lsl #1]\n        ld1h            z21.h, p0/z, [\\src, x21, lsl #1]\n        ld1h            z22.h, p0/z, [\\src, x22, lsl #1]\n        ld1h            z23.h, p0/z, [\\src, x23, lsl #1]\n        ld1h            z24.h, p0/z, [\\src, x24, lsl #1]\n        ld1h            z25.h, p0/z, [\\src, x25, lsl #1]\n        neg             z8.h, p0/m, \\zreg // -p0\n        ld1h            z26.h, p0/z, [\\src, x26, lsl #1]\n        ld1h            z27.h, p0/z, [\\src, x27, lsl #1]\n        add             {z20.h-z23.h}, {z20.h-z23.h}, z8.h\n        add             {z24.h-z27.h}, {z24.h-z27.h}, z8.h\n        // transpose data vectors\n        zip             {z20.h-z23.h}, {z20.h-z23.h}\n        zip             {z24.h-z27.h}, {z24.h-z27.h}\n        // clip data\n        sclamp          z20.h, z16.h, z12.h\n        sclamp          z24.h, z16.h, z12.h\n        sclamp          z21.h, z17.h, z13.h\n        sclamp          z25.h, z17.h, z13.h\n        sclamp          z22.h, z18.h, z14.h\n        sclamp          z26.h, z18.h, z14.h\n        sclamp          z23.h, z19.h, z15.h\n        sclamp          z27.h, z19.h, z15.h\n        sdot            za.d[w10, \\idx], {z20.h-z23.h}, {z28.h-z31.h}\n        sdot            za.d[w10, \\idx], {z24.h-z27.h}, {z28.h-z31.h}\n.endm\n\nfunction ff_vvc_alf_filter_luma_12_sme2, export=1\n        mov             w12, #4095\n        b               0f\nendfunc\n\nfunction ff_vvc_alf_filter_luma_10_sme2, export=1\n        // dst           .req x0\n        // src           .req x1\n        // strides       .req x2\n        // dims          .req x3\n        // filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        mov             w12, #1023\n0:\n        sme_entry\n        stp             x29, x30, [sp, #-96]!\n        mov             x29, sp\n        stp             x19, x20, [sp, #16]\n        stp             x21, x22, [sp, #32]\n        stp             x23, x24, [sp, #48]\n        stp             x25, x26, [sp, #64]\n        stp             x27, x28, [sp, #80]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:11", "text": "function ff_vvc_alf_filter_luma_10_sme2, export=1\n        // dst           .req x0\n        // src           .req x1\n        // strides       .req x2\n        // dims          .req x3\n        // filter        .req x4\n        // clip          .req x5\n        // vb            .req x6\n        mov             w12, #1023\n0:\n        sme_entry\n        stp             x29, x30, [sp, #-96]!\n        mov             x29, sp\n        stp             x19, x20, [sp, #16]\n        stp             x21, x22, [sp, #32]\n        stp             x23, x24, [sp, #48]\n        stp             x25, x26, [sp, #64]\n        stp             x27, x28, [sp, #80]\n\n        lsr             x7, x3, #32\n        cnth            x11\n        mov             w8, w3\n        sub             w9, w8, #1\n        sdiv            w9, w9, w11\n        msub            w9, w9, w11, w8\n        whilelo         p10.h, xzr, x9\n        ptrue           p1.h\n        lsr             x11, x2, #33 // src stride\n        lsr             w2, w2, #1\n        mov             w10, #0\n        dup             z9.h, w10\n        dup             z10.h, w12\n1:\n        lsr             x20, x3, #32\n        mov             p0.b, p10.b\n        sub             w20, w20, w7\n        mov             w12, w9\n        sub             w6, w6, #6\n        // offsets are packed into the format: (M<<3)|(N<<1)|K, where M is p5/p6 offset (multiply), N is p3/p4 offset, K is p1/p2 offset\n        mov             w21, #0\n        mov             w22, #0xB\n        mov             w23, #0x15\n        mov             w13, #0x1D // 0x1D == (3<<3)|(2<<1)|1\n        mov             w14, #0x1D\n        mov             w15, #0x1D\n        mov             w16, #0x1D\n        // y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:12", "text": "mov             w21, #0\n        mov             w22, #0xB\n        mov             w23, #0x15\n        mov             w13, #0x1D // 0x1D == (3<<3)|(2<<1)|1\n        mov             w14, #0x1D\n        mov             w15, #0x1D\n        mov             w16, #0x1D\n        // y == vb_pos - 6\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w16, w16, w23, ne\n        // y == vb_pos - 5\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w15, w15, w23, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 4\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w14, w14, w23, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 3\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w23, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w21, ne\n        // y == vb_pos - 2\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w21, ne\n        csel            w16, w16, w22, ne\n        // y == vb_pos - 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w21, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w23, ne\n        // y == vb_pos\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:13", "text": "csel            w14, w14, w21, ne\n        csel            w15, w15, w22, ne\n        csel            w16, w16, w23, ne\n        // y == vb_pos\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w21, ne\n        csel            w14, w14, w22, ne\n        csel            w15, w15, w23, ne\n        // y == vb_pos + 1\n        cmp             w20, w6\n        add             w6, w6, #1\n        csel            w13, w13, w22, ne\n        csel            w14, w14, w23, ne\n        // y == vb_pos + 2\n        cmp             w20, w6\n        sub             w6, w6, #2\n        csel            w13, w13, w23, ne\n        orr             w13, w13, w14, lsl #8\n        orr             w13, w13, w15, lsl #16\n        orr             w13, w13, w16, lsl #24\n        mov             x14, x1\n        mov             x19, x0\n2:\n        // Load clip [12=>3x4 memory layout]\n        ld3h            {z0.h-z2.h}, p0/z, [x5]\n        // Load filter [12=>3x4 memory layout]\n        ld3h            {z3.h-z5.h}, p0/z, [x4]\n        add             x15, x14, x11, lsl #1\n        add             x16, x14, x11, lsl #2\n        add             x17, x15, x11, lsl #2\n        add             x30, x19, x2, lsl #2\n\n        mov             z12.d, z0.d\n        mov             z13.d, z0.d\n        mov             z14.d, z0.d\n        mov             z15.d, z0.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z3.d\n        mov             z29.d, z3.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z3.d\n        mov             z31.d, z3.d\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1h            z6.h, p0/z, [x14]\n        ld1h            z7.h, p0/z, [x15]\n        ld1h            z0.h, p0/z, [x16]\n        ld1h            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:14", "text": "zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z3.d\n        mov             z31.d, z3.d\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // p0 (curr)\n        ld1h            z6.h, p0/z, [x14]\n        ld1h            z7.h, p0/z, [x15]\n        ld1h            z0.h, p0/z, [x16]\n        ld1h            z3.h, p0/z, [x17]\n        // clip & filter (first group): a0,a3,a6,a9, a12...\n        // {p5[0],p3[-1],p1[0],p0[3]} -> left operand in clip\n        // {p6[0],p4[1],p2[0],p0[-3]} -> right operand in clip\n        first_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        first_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        first_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        first_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n\n        mov             z12.d, z1.d\n        mov             z13.d, z1.d\n        mov             z14.d, z1.d\n        mov             z15.d, z1.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z4.d\n        mov             z29.d, z4.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z4.d\n        mov             z31.d, z4.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (second group): a1,a4,a7,a10,a13...\n        // left:  {p3[ 1],p1[ 2],p1[-1],p0[ 2]}\n        // right: {p4[-1],p2[-2],p2[ 1],p0[-2]}\n        second_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        second_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:15", "text": "zip             {z28.d-z31.d}, {z28.d-z31.d}\n        // clip & filter (second group): a1,a4,a7,a10,a13...\n        // left:  {p3[ 1],p1[ 2],p1[-1],p0[ 2]}\n        // right: {p4[-1],p2[-2],p2[ 1],p0[-2]}\n        second_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        second_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        second_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        second_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n\n        mov             z12.d, z2.d\n        mov             z13.d, z2.d\n        mov             z14.d, z2.d\n        mov             z15.d, z2.d\n        // copy filter into 4 vectors and then zip\n        mov             z28.d, z5.d\n        mov             z29.d, z5.d\n        zip             {z12.d-z15.d}, {z12.d-z15.d}\n        mov             z30.d, z5.d\n        mov             z31.d, z5.d\n        // -clip\n        neg             z16.h, p1/m, z12.h\n        neg             z17.h, p1/m, z13.h\n        neg             z18.h, p1/m, z14.h\n        neg             z19.h, p1/m, z15.h\n        zip             {z28.d-z31.d}, {z28.d-z31.d}\n\n        // clip & filter (third group): a2,a5,a8,a11,a14...\n        // left:  {p3[0],p1[ 1],p1[-2],p0[ 1]}\n        // right: {p4[0],p2[-1],p2[ 2],p0[-1]}\n        third_group_filter_luma_offsets x13, 0\n        kernel_filter_luma_16_sme2 x14, z6.h, 0\n        third_group_filter_luma_offsets x13, 8\n        kernel_filter_luma_16_sme2 x15, z7.h, 1\n        third_group_filter_luma_offsets x13, 16\n        kernel_filter_luma_16_sme2 x16, z0.h, 2\n        third_group_filter_luma_offsets x13, 24\n        kernel_filter_luma_16_sme2 x17, z3.h, 3\n        mova            {z16.d-z19.d}, za.d[w10, 0]\n        mova            {z20.d-z23.d}, za.d[w10, 1]\n        mova            {z24.d-z27.d}, za.d[w10, 2]\n        mova            {z28.d-z31.d}, za.d[w10, 3]\n        sqrshr          z12.h, {z16.d-z19.d}, #7\n        sqrshr          z13.h, {z20.d-z23.d}, #7\n        sqrshr          z14.h, {z24.d-z27.d}, #7\n        sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:16", "text": "kernel_filter_luma_16_sme2 x17, z3.h, 3\n        mova            {z16.d-z19.d}, za.d[w10, 0]\n        mova            {z20.d-z23.d}, za.d[w10, 1]\n        mova            {z24.d-z27.d}, za.d[w10, 2]\n        mova            {z28.d-z31.d}, za.d[w10, 3]\n        sqrshr          z12.h, {z16.d-z19.d}, #7\n        sqrshr          z13.h, {z20.d-z23.d}, #7\n        sqrshr          z14.h, {z24.d-z27.d}, #7\n        sqrshr          z15.h, {z28.d-z31.d}, #7\n        tbnz            x13, #0, 10f\n        sqrshr          z12.h, {z16.d-z19.d}, #10\n10:\n        tbnz            x13, #8, 11f\n        sqrshr          z13.h, {z20.d-z23.d}, #10\n11:\n        tbnz            x13, #16, 12f\n        sqrshr          z14.h, {z24.d-z27.d}, #10\n12:\n        tbnz            x13, #24, 13f\n        sqrshr          z15.h, {z28.d-z31.d}, #10\n13:\n        add             z12.h, z12.h, z6.h\n        add             z13.h, z13.h, z7.h\n        add             z14.h, z14.h, z0.h\n        add             z15.h, z15.h, z3.h\n        sclamp          {z12.h-z15.h}, z9.h, z10.h\n        st1h            z12.h, p0, [x19]\n        st1h            z13.h, p0, [x19, x2, lsl #1]\n        st1h            z14.h, p0, [x30]\n        st1h            z15.h, p0, [x30, x2, lsl #1]\n        zero            {za}\n        add             x14, x14, x12, lsl #1\n        add             x19, x19, x12, lsl #1\n        ptrue           p0.h\n        subs            w8, w8, w12\n        add             w12, w12, w12, lsl #1\n        add             x4, x4, x12, lsl #1\n        add             x5, x5, x12, lsl #1\n        cnth            x12\n        b.gt            2b\n        mov             w8, w3\n        subs            w7, w7, #4\n        add             x1, x1, x11, lsl #3\n        add             x0, x0, x2, lsl #3\n        b.gt            1b\n\n        ldp             x19, x20, [sp, #16]\n        ldp             x21, x22, [sp, #32]\n        ldp             x23, x24, [sp, #48]\n        ldp             x25, x26, [sp, #64]\n        ldp             x27, x28, [sp, #80]\n        ldp             x29, x30, [sp], #96\n        sme_exit\n        ret\nendfunc\nDISABLE_SME_I16I64\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 601, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/inter_sme2.S:17", "text": "mov             w8, w3\n        subs            w7, w7, #4\n        add             x1, x1, x11, lsl #3\n        add             x0, x0, x2, lsl #3\n        b.gt            1b\n\n        ldp             x19, x20, [sp, #16]\n        ldp             x21, x22, [sp, #32]\n        ldp             x23, x24, [sp, #48]\n        ldp             x25, x26, [sp, #64]\n        ldp             x27, x28, [sp, #80]\n        ldp             x29, x30, [sp], #96\n        sme_exit\n        ret\nendfunc\nDISABLE_SME_I16I64\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/inter_sme2.S", "license": "LGPL-2.1", "commit": "510999f6b07b6996983c7ef24c3cf41a06241261", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/510999f6b07b6996983c7ef24c3cf41a06241261/libavcodec/aarch64/vvc/inter_sme2.S", "line_start": 641, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/sad.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define VVC_MAX_PB_SIZE 128\n\nfunction ff_vvc_sad_neon, export=1\n        src0            .req x0\n        src1            .req x1\n        dx              .req w2\n        dy              .req w3\n        block_w         .req w4\n        block_h         .req w5\n\n        sub             w7, dx, #4\n        sub             w8, dy, #4\n        add             w6, dx, dy, lsl #7\n        add             w7, w7, w8, lsl #7\n        sxtw            x6, w6\n        sxtw            x7, w7\n        add             src0, src0, x6, lsl #1\n        sub             src1, src1, x7, lsl #1\n\n        cmp             block_w, #16\n        movi            v16.4s, #0\n        b.ge            2f\n1:\n        // block_w == 8\n        ldr             q0, [src0]\n        ldr             q2, [src1]\n        subs            block_h, block_h, #2\n        sabal           v16.4s, v0.4h, v2.4h\n        sabal2          v16.4s, v0.8h, v2.8h\n\n        add             src0, src0, #(2 * VVC_MAX_PB_SIZE * 2)\n        add             src1, src1, #(2 * VVC_MAX_PB_SIZE * 2)\n        b.ne            1b\n        b               4f\n2:\n        // block_w == 16, no block_w > 16 according the spec\n        movi            v17.4s, #0\n3:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/sad.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/sad.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/aarch64/vvc/sad.S:2", "text": "cmp             block_w, #16\n        movi            v16.4s, #0\n        b.ge            2f\n1:\n        // block_w == 8\n        ldr             q0, [src0]\n        ldr             q2, [src1]\n        subs            block_h, block_h, #2\n        sabal           v16.4s, v0.4h, v2.4h\n        sabal2          v16.4s, v0.8h, v2.8h\n\n        add             src0, src0, #(2 * VVC_MAX_PB_SIZE * 2)\n        add             src1, src1, #(2 * VVC_MAX_PB_SIZE * 2)\n        b.ne            1b\n        b               4f\n2:\n        // block_w == 16, no block_w > 16 according the spec\n        movi            v17.4s, #0\n3:\n        ldp             q0, q1, [src0], #(2 * VVC_MAX_PB_SIZE * 2)\n        ldp             q2, q3, [src1], #(2 * VVC_MAX_PB_SIZE * 2)\n        subs            block_h, block_h, #2\n        sabal           v16.4s, v0.4h, v2.4h\n        sabal2          v16.4s, v0.8h, v2.8h\n        sabal           v17.4s, v1.4h, v3.4h\n        sabal2          v17.4s, v1.8h, v3.8h\n\n        b.ne            3b\n        add             v16.4s, v16.4s, v17.4s\n4:\n        addv            s16, v16.4s\n        mov             w0, v16.s[0]\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/aarch64/vvc/sad.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/aarch64/vvc/sad.S", "line_start": 41, "line_end": 75}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/hpeldsp_alpha_asm.S:1", "text": "/*\n * Alpha optimized DSP utils\n * Copyright (c) 2002 Falk Hueffner <falk@debian.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n/*\n * These functions are scheduled for pca56. They should work\n * reasonably on ev6, though.\n */\n\n#include \"regdef.h\"\n\n\n        .set noat\n        .set noreorder\n        .arch pca56\n        .text\n\n/************************************************************************\n * void put_pixels_axp_asm(uint8_t *block, const uint8_t *pixels,\n *                         int line_size, int h)\n */\n        .align 6\n        .globl put_pixels_axp_asm\n        .ent put_pixels_axp_asm\nput_pixels_axp_asm:\n        .frame sp, 0, ra\n        .prologue 0\n\n        and     a1, 7, t0\n        beq     t0, $aligned\n\n        .align 4\n$unaligned:\n        ldq_u   t0, 0(a1)\n        ldq_u   t1, 8(a1)\n        addq    a1, a2, a1\n        nop\n\n        ldq_u   t2, 0(a1)\n        ldq_u   t3, 8(a1)\n        addq    a1, a2, a1\n        nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/hpeldsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/hpeldsp_alpha_asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/hpeldsp_alpha_asm.S:2", "text": ".ent put_pixels_axp_asm\nput_pixels_axp_asm:\n        .frame sp, 0, ra\n        .prologue 0\n\n        and     a1, 7, t0\n        beq     t0, $aligned\n\n        .align 4\n$unaligned:\n        ldq_u   t0, 0(a1)\n        ldq_u   t1, 8(a1)\n        addq    a1, a2, a1\n        nop\n\n        ldq_u   t2, 0(a1)\n        ldq_u   t3, 8(a1)\n        addq    a1, a2, a1\n        nop\n\n        ldq_u   t4, 0(a1)\n        ldq_u   t5, 8(a1)\n        addq    a1, a2, a1\n        nop\n\n        ldq_u   t6, 0(a1)\n        ldq_u   t7, 8(a1)\n        extql   t0, a1, t0\n        addq    a1, a2, a1\n\n        extqh   t1, a1, t1\n        addq    a0, a2, t8\n        extql   t2, a1, t2\n        addq    t8, a2, t9\n\n        extqh   t3, a1, t3\n        addq    t9, a2, ta\n        extql   t4, a1, t4\n        or      t0, t1, t0\n\n        extqh   t5, a1, t5\n        or      t2, t3, t2\n        extql   t6, a1, t6\n        or      t4, t5, t4\n\n        extqh   t7, a1, t7\n        or      t6, t7, t6\n        stq     t0, 0(a0)\n        stq     t2, 0(t8)\n\n        stq     t4, 0(t9)\n        subq    a3, 4, a3\n        stq     t6, 0(ta)\n        addq    ta, a2, a0\n\n        bne     a3, $unaligned\n        ret\n\n        .align 4\n$aligned:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/hpeldsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/hpeldsp_alpha_asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/hpeldsp_alpha_asm.S:3", "text": "extqh   t5, a1, t5\n        or      t2, t3, t2\n        extql   t6, a1, t6\n        or      t4, t5, t4\n\n        extqh   t7, a1, t7\n        or      t6, t7, t6\n        stq     t0, 0(a0)\n        stq     t2, 0(t8)\n\n        stq     t4, 0(t9)\n        subq    a3, 4, a3\n        stq     t6, 0(ta)\n        addq    ta, a2, a0\n\n        bne     a3, $unaligned\n        ret\n\n        .align 4\n$aligned:\n        ldq     t0, 0(a1)\n        addq    a1, a2, a1\n        ldq     t1, 0(a1)\n        addq    a1, a2, a1\n\n        ldq     t2, 0(a1)\n        addq    a1, a2, a1\n        ldq     t3, 0(a1)\n\n        addq    a0, a2, t4\n        addq    a1, a2, a1\n        addq    t4, a2, t5\n        subq    a3, 4, a3\n\n        stq     t0, 0(a0)\n        addq    t5, a2, t6\n        stq     t1, 0(t4)\n        addq    t6, a2, a0\n\n        stq     t2, 0(t5)\n        stq     t3, 0(t6)\n\n        bne     a3, $aligned\n        ret\n        .end put_pixels_axp_asm", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/hpeldsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/hpeldsp_alpha_asm.S", "line_start": 81, "line_end": 125}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/idctdsp_alpha_asm.S:1", "text": "/*\n * Alpha optimized IDCT-related routines\n * Copyright (c) 2002 Falk Hueffner <falk@debian.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n/*\n * These functions are scheduled for pca56. They should work\n * reasonably on ev6, though.\n */\n\n#include \"regdef.h\"\n\n        .set noat\n        .set noreorder\n        .arch pca56\n        .text\n\n/************************************************************************\n * void put_pixels_clamped_mvi_asm(const int16_t *block, uint8_t *pixels,\n *                                 ptrdiff_t line_size)\n */\n        .align 6\n        .globl put_pixels_clamped_mvi_asm\n        .ent put_pixels_clamped_mvi_asm\nput_pixels_clamped_mvi_asm:\n        .frame sp, 0, ra\n        .prologue 0\n\n        lda     t8, -1\n        lda     t9, 8           # loop counter\n        zap     t8, 0xaa, t8    # 00ff00ff00ff00ff\n\n        .align 4\n1:      ldq     t0,  0(a0)\n        ldq     t1,  8(a0)\n        ldq     t2, 16(a0)\n        ldq     t3, 24(a0)\n\n        maxsw4  t0, zero, t0\n        subq    t9, 2, t9\n        maxsw4  t1, zero, t1\n        lda     a0, 32(a0)\n\n        maxsw4  t2, zero, t2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/idctdsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/idctdsp_alpha_asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/idctdsp_alpha_asm.S:2", "text": "put_pixels_clamped_mvi_asm:\n        .frame sp, 0, ra\n        .prologue 0\n\n        lda     t8, -1\n        lda     t9, 8           # loop counter\n        zap     t8, 0xaa, t8    # 00ff00ff00ff00ff\n\n        .align 4\n1:      ldq     t0,  0(a0)\n        ldq     t1,  8(a0)\n        ldq     t2, 16(a0)\n        ldq     t3, 24(a0)\n\n        maxsw4  t0, zero, t0\n        subq    t9, 2, t9\n        maxsw4  t1, zero, t1\n        lda     a0, 32(a0)\n\n        maxsw4  t2, zero, t2\n        addq    a1, a2, ta\n        maxsw4  t3, zero, t3\n        minsw4  t0, t8, t0\n\n        minsw4  t1, t8, t1\n        minsw4  t2, t8, t2\n        minsw4  t3, t8, t3\n        pkwb    t0, t0\n\n        pkwb    t1, t1\n        pkwb    t2, t2\n        pkwb    t3, t3\n        stl     t0, 0(a1)\n\n        stl     t1, 4(a1)\n        addq    ta, a2, a1\n        stl     t2, 0(ta)\n        stl     t3, 4(ta)\n\n        bne     t9, 1b\n        ret\n        .end put_pixels_clamped_mvi_asm\n\n/************************************************************************\n * void add_pixels_clamped_mvi_asm(const int16_t *block, uint8_t *pixels,\n *                                 ptrdiff_t line_size)\n */\n        .align 6\n        .globl add_pixels_clamped_mvi_asm\n        .ent add_pixels_clamped_mvi_asm\nadd_pixels_clamped_mvi_asm:\n        .frame sp, 0, ra\n        .prologue 0\n\n        lda     t1, -1\n        lda     th, 8\n        zap     t1, 0x33, tg\n        nop\n\n        srl     tg, 1, t0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/idctdsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/idctdsp_alpha_asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/idctdsp_alpha_asm.S:3", "text": "ret\n        .end put_pixels_clamped_mvi_asm\n\n/************************************************************************\n * void add_pixels_clamped_mvi_asm(const int16_t *block, uint8_t *pixels,\n *                                 ptrdiff_t line_size)\n */\n        .align 6\n        .globl add_pixels_clamped_mvi_asm\n        .ent add_pixels_clamped_mvi_asm\nadd_pixels_clamped_mvi_asm:\n        .frame sp, 0, ra\n        .prologue 0\n\n        lda     t1, -1\n        lda     th, 8\n        zap     t1, 0x33, tg\n        nop\n\n        srl     tg, 1, t0\n        xor     tg, t0, tg      # 0x8000800080008000\n        zap     t1, 0xaa, tf    # 0x00ff00ff00ff00ff\n\n        .align 4\n1:      ldl     t1, 0(a1)       # pix0 (try to hit cache line soon)\n        ldl     t4, 4(a1)       # pix1\n        addq    a1, a2, te      # pixels += line_size\n        ldq     t0, 0(a0)       # shorts0\n\n        ldl     t7, 0(te)       # pix2 (try to hit cache line soon)\n        ldl     ta, 4(te)       # pix3\n        ldq     t3, 8(a0)       # shorts1\n        ldq     t6, 16(a0)      # shorts2\n\n        ldq     t9, 24(a0)      # shorts3\n        unpkbw  t1, t1          # 0 0 (quarter/op no.)\n        and     t0, tg, t2      # 0 1\n        unpkbw  t4, t4          # 1 0\n\n        bic     t0, tg, t0      # 0 2\n        unpkbw  t7, t7          # 2 0\n        and     t3, tg, t5      # 1 1\n        addq    t0, t1, t0      # 0 3\n\n        xor     t0, t2, t0      # 0 4\n        unpkbw  ta, ta          # 3 0\n        and     t6, tg, t8      # 2 1\n        maxsw4  t0, zero, t0    # 0 5\n\n        bic     t3, tg, t3      # 1 2\n        bic     t6, tg, t6      # 2 2\n        minsw4  t0, tf, t0      # 0 6\n        addq    t3, t4, t3      # 1 3\n\n        pkwb    t0, t0          # 0 7\n        xor     t3, t5, t3      # 1 4\n        maxsw4  t3, zero, t3    # 1 5\n        addq    t6, t7, t6      # 2 3\n\n        xor     t6, t8, t6      # 2 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/idctdsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/idctdsp_alpha_asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/idctdsp_alpha_asm.S:4", "text": "unpkbw  t7, t7          # 2 0\n        and     t3, tg, t5      # 1 1\n        addq    t0, t1, t0      # 0 3\n\n        xor     t0, t2, t0      # 0 4\n        unpkbw  ta, ta          # 3 0\n        and     t6, tg, t8      # 2 1\n        maxsw4  t0, zero, t0    # 0 5\n\n        bic     t3, tg, t3      # 1 2\n        bic     t6, tg, t6      # 2 2\n        minsw4  t0, tf, t0      # 0 6\n        addq    t3, t4, t3      # 1 3\n\n        pkwb    t0, t0          # 0 7\n        xor     t3, t5, t3      # 1 4\n        maxsw4  t3, zero, t3    # 1 5\n        addq    t6, t7, t6      # 2 3\n\n        xor     t6, t8, t6      # 2 4\n        and     t9, tg, tb      # 3 1\n        minsw4  t3, tf, t3      # 1 6\n        bic     t9, tg, t9      # 3 2\n\n        maxsw4  t6, zero, t6    # 2 5\n        addq    t9, ta, t9      # 3 3\n        stl     t0, 0(a1)       # 0 8\n        minsw4  t6, tf, t6      # 2 6\n\n        xor     t9, tb, t9      # 3 4\n        maxsw4  t9, zero, t9    # 3 5\n        lda     a0, 32(a0)      # block += 16;\n        pkwb    t3, t3          # 1 7\n\n        minsw4  t9, tf, t9      # 3 6\n        subq    th, 2, th\n        pkwb    t6, t6          # 2 7\n        pkwb    t9, t9          # 3 7\n\n        stl     t3, 4(a1)       # 1 8\n        addq    te, a2, a1      # pixels += line_size\n        stl     t6, 0(te)       # 2 8\n        stl     t9, 4(te)       # 3 8\n\n        bne     th, 1b\n        ret\n        .end add_pixels_clamped_mvi_asm", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/idctdsp_alpha_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/idctdsp_alpha_asm.S", "line_start": 121, "line_end": 167}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/me_cmp_mvi_asm.S:1", "text": "/*\n * Alpha optimized DSP utils\n * Copyright (c) 2002 Falk Hueffner <falk@debian.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"regdef.h\"\n\n/* Some nicer register names.  */\n#define ta t10\n#define tb t11\n#define tc t12\n#define td AT\n/* Danger: these overlap with the argument list and the return value */\n#define te a5\n#define tf a4\n#define tg a3\n#define th v0\n\n        .set noat\n        .set noreorder\n        .arch pca56\n        .text\n\n/*****************************************************************************\n * int pix_abs16x16_mvi_asm(const uint8_t *pix1, const uint8_t *pix2, int line_size)\n *\n * This code is written with a pca56 in mind. For ev6, one should\n * really take the increased latency of 3 cycles for MVI instructions\n * into account.\n *\n * It is important to keep the loading and first use of a register as\n * far apart as possible, because if a register is accessed before it\n * has been fetched from memory, the CPU will stall.\n */\n        .align 4\n        .globl pix_abs16x16_mvi_asm\n        .ent pix_abs16x16_mvi_asm\npix_abs16x16_mvi_asm:\n        .frame sp, 0, ra, 0\n        .prologue 0\n\n        and     a2, 7, t0\n        clr     v0\n        beq     t0, $aligned", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/me_cmp_mvi_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/me_cmp_mvi_asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/me_cmp_mvi_asm.S:2", "text": "* int pix_abs16x16_mvi_asm(const uint8_t *pix1, const uint8_t *pix2, int line_size)\n *\n * This code is written with a pca56 in mind. For ev6, one should\n * really take the increased latency of 3 cycles for MVI instructions\n * into account.\n *\n * It is important to keep the loading and first use of a register as\n * far apart as possible, because if a register is accessed before it\n * has been fetched from memory, the CPU will stall.\n */\n        .align 4\n        .globl pix_abs16x16_mvi_asm\n        .ent pix_abs16x16_mvi_asm\npix_abs16x16_mvi_asm:\n        .frame sp, 0, ra, 0\n        .prologue 0\n\n        and     a2, 7, t0\n        clr     v0\n        beq     t0, $aligned\n        .align 4\n$unaligned:\n        /* Registers:\n           line 0:\n           t0:  left_u -> left lo -> left\n           t1:  mid\n           t2:  right_u -> right hi -> right\n           t3:  ref left\n           t4:  ref right\n           line 1:\n           t5:  left_u -> left lo -> left\n           t6:  mid\n           t7:  right_u -> right hi -> right\n           t8:  ref left\n           t9:  ref right\n           temp:\n           ta:  left hi\n           tb:  right lo\n           tc:  error left\n           td:  error right  */\n\n        /* load line 0 */\n        ldq_u   t0, 0(a2)       # left_u\n        ldq_u   t1, 8(a2)       # mid\n        ldq_u   t2, 16(a2)      # right_u\n        ldq     t3, 0(a1)       # ref left\n        ldq     t4, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        addq    a2, a3, a2      # pix2\n        /* load line 1 */\n        ldq_u   t5, 0(a2)       # left_u\n        ldq_u   t6, 8(a2)       # mid\n        ldq_u   t7, 16(a2)      # right_u\n        ldq     t8, 0(a1)       # ref left\n        ldq     t9, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        addq    a2, a3, a2      # pix2\n        /* calc line 0 */\n        extql   t0, a2, t0      # left lo\n        extqh   t1, a2, ta      # left hi", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/me_cmp_mvi_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/me_cmp_mvi_asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/me_cmp_mvi_asm.S:3", "text": "/* load line 0 */\n        ldq_u   t0, 0(a2)       # left_u\n        ldq_u   t1, 8(a2)       # mid\n        ldq_u   t2, 16(a2)      # right_u\n        ldq     t3, 0(a1)       # ref left\n        ldq     t4, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        addq    a2, a3, a2      # pix2\n        /* load line 1 */\n        ldq_u   t5, 0(a2)       # left_u\n        ldq_u   t6, 8(a2)       # mid\n        ldq_u   t7, 16(a2)      # right_u\n        ldq     t8, 0(a1)       # ref left\n        ldq     t9, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        addq    a2, a3, a2      # pix2\n        /* calc line 0 */\n        extql   t0, a2, t0      # left lo\n        extqh   t1, a2, ta      # left hi\n        extql   t1, a2, tb      # right lo\n        or      t0, ta, t0      # left\n        extqh   t2, a2, t2      # right hi\n        perr    t3, t0, tc      # error left\n        or      t2, tb, t2      # right\n        perr    t4, t2, td      # error right\n        addq    v0, tc, v0      # add error left\n        addq    v0, td, v0      # add error left\n        /* calc line 1 */\n        extql   t5, a2, t5      # left lo\n        extqh   t6, a2, ta      # left hi\n        extql   t6, a2, tb      # right lo\n        or      t5, ta, t5      # left\n        extqh   t7, a2, t7      # right hi\n        perr    t8, t5, tc      # error left\n        or      t7, tb, t7      # right\n        perr    t9, t7, td      # error right\n        addq    v0, tc, v0      # add error left\n        addq    v0, td, v0      # add error left\n        /* loop */\n        subq    a4,  2, a4      # h -= 2\n        bne     a4, $unaligned\n        ret\n\n        .align 4\n$aligned:\n        /* load line 0 */\n        ldq     t0, 0(a2)       # left\n        ldq     t1, 8(a2)       # right\n        addq    a2, a3, a2      # pix2\n        ldq     t2, 0(a1)       # ref left\n        ldq     t3, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        /* load line 1 */\n        ldq     t4, 0(a2)       # left\n        ldq     t5, 8(a2)       # right\n        addq    a2, a3, a2      # pix2\n        ldq     t6, 0(a1)       # ref left\n        ldq     t7, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/me_cmp_mvi_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/me_cmp_mvi_asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/me_cmp_mvi_asm.S:4", "text": "subq    a4,  2, a4      # h -= 2\n        bne     a4, $unaligned\n        ret\n\n        .align 4\n$aligned:\n        /* load line 0 */\n        ldq     t0, 0(a2)       # left\n        ldq     t1, 8(a2)       # right\n        addq    a2, a3, a2      # pix2\n        ldq     t2, 0(a1)       # ref left\n        ldq     t3, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        /* load line 1 */\n        ldq     t4, 0(a2)       # left\n        ldq     t5, 8(a2)       # right\n        addq    a2, a3, a2      # pix2\n        ldq     t6, 0(a1)       # ref left\n        ldq     t7, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        /* load line 2 */\n        ldq     t8, 0(a2)       # left\n        ldq     t9, 8(a2)       # right\n        addq    a2, a3, a2      # pix2\n        ldq     ta, 0(a1)       # ref left\n        ldq     tb, 8(a1)       # ref right\n        addq    a1, a3, a1      # pix1\n        /* load line 3 */\n        ldq     tc, 0(a2)       # left\n        ldq     td, 8(a2)       # right\n        addq    a2, a3, a2      # pix2\n        ldq     te, 0(a1)       # ref left\n        ldq     a0, 8(a1)       # ref right\n        /* calc line 0 */\n        perr    t0, t2, t0      # error left\n        addq    a1, a3, a1      # pix1\n        perr    t1, t3, t1      # error right\n        addq    v0, t0, v0      # add error left\n        /* calc line 1 */\n        perr    t4, t6, t0      # error left\n        addq    v0, t1, v0      # add error right\n        perr    t5, t7, t1      # error right\n        addq    v0, t0, v0      # add error left\n        /* calc line 2 */\n        perr    t8, ta, t0      # error left\n        addq    v0, t1, v0      # add error right\n        perr    t9, tb, t1      # error right\n        addq    v0, t0, v0      # add error left\n        /* calc line 3 */\n        perr    tc, te, t0      # error left\n        addq    v0, t1, v0      # add error right\n        perr    td, a0, t1      # error right\n        addq    v0, t0, v0      # add error left\n        addq    v0, t1, v0      # add error right\n        /* loop */\n        subq    a4,  4, a4      # h -= 4\n        bne     a4, $aligned\n        ret\n        .end pix_abs16x16_mvi_asm", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/me_cmp_mvi_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/me_cmp_mvi_asm.S", "line_start": 121, "line_end": 179}
{"id": "FFmpeg/FFmpeg:libavcodec/alpha/me_cmp_mvi_asm.S:5", "text": "addq    v0, t1, v0      # add error right\n        perr    t5, t7, t1      # error right\n        addq    v0, t0, v0      # add error left\n        /* calc line 2 */\n        perr    t8, ta, t0      # error left\n        addq    v0, t1, v0      # add error right\n        perr    t9, tb, t1      # error right\n        addq    v0, t0, v0      # add error left\n        /* calc line 3 */\n        perr    tc, te, t0      # error left\n        addq    v0, t1, v0      # add error right\n        perr    td, a0, t1      # error right\n        addq    v0, t0, v0      # add error left\n        addq    v0, t1, v0      # add error right\n        /* loop */\n        subq    a4,  4, a4      # h -= 4\n        bne     a4, $aligned\n        ret\n        .end pix_abs16x16_mvi_asm", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/alpha/me_cmp_mvi_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/alpha/me_cmp_mvi_asm.S", "line_start": 161, "line_end": 179}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:1", "text": "/*\n * Copyright (c) 2012 Mans Rullgard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_ps_add_squares_neon, export=1\n        mov             r3,  r0\n        sub             r2,  r2,  #4\n        vld1.32         {q0},     [r1,:128]!\n        vmul.f32        q0,  q0,  q0\n        vld1.32         {q2},     [r1,:128]!\n        vmul.f32        q2,  q2,  q2\n        vld1.32         {q1},     [r0,:128]!\n1:\n        vpadd.f32       d6,  d0,  d1\n        vld1.32         {q0},     [r1,:128]!\n        vpadd.f32       d7,  d4,  d5\n        vmul.f32        q0,  q0,  q0\n        vld1.32         {q2},     [r1,:128]!\n        vadd.f32        q3,  q1,  q3\n        vld1.32         {q1},     [r0,:128]!\n        vmul.f32        q2,  q2,  q2\n        vst1.32         {q3},     [r3,:128]!\n        subs            r2,  r2,  #4\n        bgt             1b\n        vpadd.f32       d6,  d0,  d1\n        vpadd.f32       d7,  d4,  d5\n        vadd.f32        q1,  q1,  q3\n        vst1.32         {q1},     [r3,:128]!\n        bx              lr\nendfunc\n\nfunction ff_ps_mul_pair_single_neon, export=1\n        sub             r3,  r3,  #4\n        tst             r1,  #8\n        bne             2f\n        vld1.32         {q0},     [r1,:128]!\n1:\n        vld1.32         {q3},     [r2,:128]!\n        vmul.f32        d4,  d0,  d6[0]\n        vmul.f32        d5,  d1,  d6[1]\n        vld1.32         {q1},     [r1,:128]!\n        vmul.f32        d6,  d2,  d7[0]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:2", "text": "subs            r2,  r2,  #4\n        bgt             1b\n        vpadd.f32       d6,  d0,  d1\n        vpadd.f32       d7,  d4,  d5\n        vadd.f32        q1,  q1,  q3\n        vst1.32         {q1},     [r3,:128]!\n        bx              lr\nendfunc\n\nfunction ff_ps_mul_pair_single_neon, export=1\n        sub             r3,  r3,  #4\n        tst             r1,  #8\n        bne             2f\n        vld1.32         {q0},     [r1,:128]!\n1:\n        vld1.32         {q3},     [r2,:128]!\n        vmul.f32        d4,  d0,  d6[0]\n        vmul.f32        d5,  d1,  d6[1]\n        vld1.32         {q1},     [r1,:128]!\n        vmul.f32        d6,  d2,  d7[0]\n        vmul.f32        d7,  d3,  d7[1]\n        vld1.32         {q0},     [r1,:128]!\n        vst1.32         {q2,q3},  [r0,:128]!\n        subs            r3,  r3,  #4\n        bgt             1b\n        vld1.32         {q3},     [r2,:128]!\n        vmul.f32        d4,  d0,  d6[0]\n        vmul.f32        d5,  d1,  d6[1]\n        vld1.32         {q1},     [r1,:128]!\n        vmul.f32        d6,  d2,  d7[0]\n        vmul.f32        d7,  d3,  d7[1]\n        vst1.32         {q2,q3},  [r0,:128]!\n        bx              lr\n2:\n        vld1.32         {d0},     [r1,:64]!\n        vld1.32         {d1,d2},  [r1,:128]!\n1:\n        vld1.32         {q3},     [r2,:128]!\n        vmul.f32        d4,  d0,  d6[0]\n        vmul.f32        d5,  d1,  d6[1]\n        vld1.32         {d0,d1},  [r1,:128]!\n        vmul.f32        d6,  d2,  d7[0]\n        vmul.f32        d7,  d0,  d7[1]\n        vmov            d0,  d1\n        vld1.32         {d1,d2},  [r1,:128]!\n        vst1.32         {q2,q3},  [r0,:128]!\n        subs            r3,  r3,  #4\n        bgt             1b\n        vld1.32         {q3},     [r2,:128]!\n        vmul.f32        d4,  d0,  d6[0]\n        vmul.f32        d5,  d1,  d6[1]\n        vld1.32         {d0},     [r1,:64]!\n        vmul.f32        d6,  d2,  d7[0]\n        vmul.f32        d7,  d0,  d7[1]\n        vst1.32         {q2,q3},  [r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_ps_hybrid_synthesis_deint_neon, export=1\n        push            {r4-r8,lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:3", "text": "vld1.32         {d0,d1},  [r1,:128]!\n        vmul.f32        d6,  d2,  d7[0]\n        vmul.f32        d7,  d0,  d7[1]\n        vmov            d0,  d1\n        vld1.32         {d1,d2},  [r1,:128]!\n        vst1.32         {q2,q3},  [r0,:128]!\n        subs            r3,  r3,  #4\n        bgt             1b\n        vld1.32         {q3},     [r2,:128]!\n        vmul.f32        d4,  d0,  d6[0]\n        vmul.f32        d5,  d1,  d6[1]\n        vld1.32         {d0},     [r1,:64]!\n        vmul.f32        d6,  d2,  d7[0]\n        vmul.f32        d7,  d0,  d7[1]\n        vst1.32         {q2,q3},  [r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_ps_hybrid_synthesis_deint_neon, export=1\n        push            {r4-r8,lr}\n        add             r0,  r0,  r2,  lsl #2\n        add             r1,  r1,  r2,  lsl #5+1+2\n        rsb             r2,  r2,  #64\n        mov             r5,  #64*4\n        mov             lr,  r0\n        add             r4,  r0,  #38*64*4\n        mov             r12, r3\n2:\n        vld1.32         {d0,d1},  [r1,:128]!\n        vst1.32         {d0[0]},  [lr,:32], r5\n        vst1.32         {d0[1]},  [r4,:32], r5\n        vst1.32         {d1[0]},  [lr,:32], r5\n        vst1.32         {d1[1]},  [r4,:32], r5\n        subs            r12, r12, #2\n        bgt             2b\n        add             r0,  r0,  #4\n        sub             r2,  r2,  #1\n        tst             r2,  #2\n        bne             6f\n1:\n        mov             lr,  r0\n        add             r4,  r0,  #38*64*4\n        add             r6,  r1,  #  32*2*4\n        add             r7,  r1,  #2*32*2*4\n        add             r8,  r1,  #3*32*2*4\n        mov             r12, r3\n2:\n        vld1.32         {d0,d1},  [r1,:128]!\n        vld1.32         {d2,d3},  [r6,:128]!\n        vld1.32         {d4,d5},  [r7,:128]!\n        vld1.32         {d6,d7},  [r8,:128]!\n        vst4.32         {d0[0],d2[0],d4[0],d6[0]}, [lr,:128], r5\n        vst4.32         {d0[1],d2[1],d4[1],d6[1]}, [r4,:128], r5\n        vst4.32         {d1[0],d3[0],d5[0],d7[0]}, [lr,:128], r5\n        vst4.32         {d1[1],d3[1],d5[1],d7[1]}, [r4,:128], r5\n        subs            r12, r12, #2\n        bgt             2b\n        add             r0,  r0,  #16\n        add             r1,  r1,  #3*32*2*4\n        subs            r2,  r2,  #4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:4", "text": "mov             lr,  r0\n        add             r4,  r0,  #38*64*4\n        add             r6,  r1,  #  32*2*4\n        add             r7,  r1,  #2*32*2*4\n        add             r8,  r1,  #3*32*2*4\n        mov             r12, r3\n2:\n        vld1.32         {d0,d1},  [r1,:128]!\n        vld1.32         {d2,d3},  [r6,:128]!\n        vld1.32         {d4,d5},  [r7,:128]!\n        vld1.32         {d6,d7},  [r8,:128]!\n        vst4.32         {d0[0],d2[0],d4[0],d6[0]}, [lr,:128], r5\n        vst4.32         {d0[1],d2[1],d4[1],d6[1]}, [r4,:128], r5\n        vst4.32         {d1[0],d3[0],d5[0],d7[0]}, [lr,:128], r5\n        vst4.32         {d1[1],d3[1],d5[1],d7[1]}, [r4,:128], r5\n        subs            r12, r12, #2\n        bgt             2b\n        add             r0,  r0,  #16\n        add             r1,  r1,  #3*32*2*4\n        subs            r2,  r2,  #4\n        bgt             1b\n        pop             {r4-r8,pc}\n6:\n        mov             lr,  r0\n        add             r4,  r0,  #38*64*4\n        add             r6,  r1,  #32*2*4\n        mov             r12, r3\n2:\n        vld1.32         {d0,d1},  [r1,:128]!\n        vld1.32         {d2,d3},  [r6,:128]!\n        vst2.32         {d0[0],d2[0]}, [lr,:64], r5\n        vst2.32         {d0[1],d2[1]}, [r4,:64], r5\n        vst2.32         {d1[0],d3[0]}, [lr,:64], r5\n        vst2.32         {d1[1],d3[1]}, [r4,:64], r5\n        subs            r12, r12, #2\n        bgt             2b\n        add             r0,  r0,  #8\n        add             r1,  r1,  #32*2*4\n        sub             r2,  r2,  #2\n        b               1b\nendfunc\n\nfunction ff_ps_hybrid_analysis_neon, export=1\n        vldm            r1,  {d19-d31}\n        ldr             r12, [sp]\n        lsl             r3,  r3,  #3\n        vadd.f32        d16, d19, d31\n        vadd.f32        d17, d20, d30\n        vsub.f32        d18, d19, d31\n        vsub.f32        d19, d20, d30\n        vsub.f32        d0,  d21, d29\n        vsub.f32        d1,  d22, d28\n        vadd.f32        d2,  d21, d29\n        vadd.f32        d3,  d22, d28\n        vadd.f32        d20, d23, d27\n        vadd.f32        d21, d24, d26\n        vsub.f32        d22, d23, d27\n        vsub.f32        d23, d24, d26\n        vmov.i32        d6,  #1<<31\n        vmov.i32        d7,  #0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:5", "text": "endfunc\n\nfunction ff_ps_hybrid_analysis_neon, export=1\n        vldm            r1,  {d19-d31}\n        ldr             r12, [sp]\n        lsl             r3,  r3,  #3\n        vadd.f32        d16, d19, d31\n        vadd.f32        d17, d20, d30\n        vsub.f32        d18, d19, d31\n        vsub.f32        d19, d20, d30\n        vsub.f32        d0,  d21, d29\n        vsub.f32        d1,  d22, d28\n        vadd.f32        d2,  d21, d29\n        vadd.f32        d3,  d22, d28\n        vadd.f32        d20, d23, d27\n        vadd.f32        d21, d24, d26\n        vsub.f32        d22, d23, d27\n        vsub.f32        d23, d24, d26\n        vmov.i32        d6,  #1<<31\n        vmov.i32        d7,  #0\n        vmov.f32        q14, #0.0\n        vmov.f32        q15, #0.0\n        vtrn.32         d6,  d7\n        vrev64.32       q9,  q9\n        vrev64.32       q0,  q0\n        vrev64.32       q11, q11\n        veor            q9,  q9,  q3\n        veor            q0,  q0,  q3\n        veor            q11, q11, q3\n        vld1.32         {q13},    [r2,:128]!\n        vtrn.32         q8,  q9\n        vtrn.32         q1,  q0\n        vtrn.32         q10, q11\n        sub             r12, r12, #1\n        vmla.f32        q14, q8,  q13\n        vld1.32         {q2},     [r2,:128]!\n        vmla.f32        q15, q9,  q13\n1:\n        vmla.f32        q14, q1,  q2\n        vld1.32         {q13},    [r2,:128]!\n        vmla.f32        q15, q0,  q2\n        vmla.f32        q14, q10, q13\n        vld1.32         {q2},     [r2,:128]!\n        vmla.f32        q15, q11, q13\n        vld1.32         {q13},    [r2,:128]!\n        vadd.f32        d6,  d28, d29\n        vadd.f32        d7,  d30, d31\n        vmov.f32        q14, #0.0\n        vmov.f32        q15, #0.0\n        vmla.f32        q14, q8,  q13\n        vpadd.f32       d6,  d6,  d7\n        vmla.f32        q15, q9,  q13\n        vmla.f32        d6,  d25, d4[0]\n        vld1.32         {q2},     [r2,:128]!\n        vst1.32         {d6},     [r0,:64], r3\n        subs            r12, r12, #1\n        bgt             1b\n        vmla.f32        q14, q1,  q2\n        vld1.32         {q13},    [r2,:128]!\n        vmla.f32        q15, q0,  q2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:6", "text": "vmla.f32        q15, q0,  q2\n        vmla.f32        q14, q10, q13\n        vld1.32         {q2},     [r2,:128]!\n        vmla.f32        q15, q11, q13\n        vld1.32         {q13},    [r2,:128]!\n        vadd.f32        d6,  d28, d29\n        vadd.f32        d7,  d30, d31\n        vmov.f32        q14, #0.0\n        vmov.f32        q15, #0.0\n        vmla.f32        q14, q8,  q13\n        vpadd.f32       d6,  d6,  d7\n        vmla.f32        q15, q9,  q13\n        vmla.f32        d6,  d25, d4[0]\n        vld1.32         {q2},     [r2,:128]!\n        vst1.32         {d6},     [r0,:64], r3\n        subs            r12, r12, #1\n        bgt             1b\n        vmla.f32        q14, q1,  q2\n        vld1.32         {q13},    [r2,:128]!\n        vmla.f32        q15, q0,  q2\n        vmla.f32        q14, q10, q13\n        vld1.32         {q2},     [r2,:128]!\n        vmla.f32        q15, q11, q13\n        vadd.f32        d6,  d28, d29\n        vadd.f32        d7,  d30, d31\n        vpadd.f32       d6,  d6,  d7\n        vmla.f32        d6,  d25, d4[0]\n        vst1.32         {d6},     [r0,:64], r3\n        bx              lr\nendfunc\n\nfunction ff_ps_stereo_interpolate_neon, export=1\n        vld1.32         {q0},     [r2]\n        vld1.32         {q14},    [r3]\n        mov             r2,  r0\n        mov             r3,  r1\n        ldr             r12, [sp]\n        vadd.f32        q1,  q0,  q14\n        vadd.f32        q0,  q1,  q14\n        vld1.32         {q2},     [r0,:64]!\n        vld1.32         {q3},     [r1,:64]!\n        subs            r12, r12, #1\n        beq             2f\n1:\n        vmul.f32        d16, d4,  d2[0]\n        vmul.f32        d17, d5,  d0[0]\n        vmul.f32        d18, d4,  d2[1]\n        vmul.f32        d19, d5,  d0[1]\n        vmla.f32        d16, d6,  d3[0]\n        vmla.f32        d17, d7,  d1[0]\n        vmla.f32        d18, d6,  d3[1]\n        vmla.f32        d19, d7,  d1[1]\n        vadd.f32        q1,  q1,  q14\n        vadd.f32        q0,  q0,  q14\n        vadd.f32        q1,  q1,  q14\n        vadd.f32        q0,  q0,  q14\n        vld1.32         {q2},     [r0,:64]!\n        vld1.32         {q3},     [r1,:64]!\n        vst1.32         {q8},     [r2,:64]!\n        vst1.32         {q9},     [r3,:64]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/aacpsdsp_neon.S:7", "text": "vld1.32         {q3},     [r1,:64]!\n        subs            r12, r12, #1\n        beq             2f\n1:\n        vmul.f32        d16, d4,  d2[0]\n        vmul.f32        d17, d5,  d0[0]\n        vmul.f32        d18, d4,  d2[1]\n        vmul.f32        d19, d5,  d0[1]\n        vmla.f32        d16, d6,  d3[0]\n        vmla.f32        d17, d7,  d1[0]\n        vmla.f32        d18, d6,  d3[1]\n        vmla.f32        d19, d7,  d1[1]\n        vadd.f32        q1,  q1,  q14\n        vadd.f32        q0,  q0,  q14\n        vadd.f32        q1,  q1,  q14\n        vadd.f32        q0,  q0,  q14\n        vld1.32         {q2},     [r0,:64]!\n        vld1.32         {q3},     [r1,:64]!\n        vst1.32         {q8},     [r2,:64]!\n        vst1.32         {q9},     [r3,:64]!\n        subs            r12, r12, #2\n        bgt             1b\n        it              lt\n        bxlt            lr\n2:\n        vmul.f32        d16, d4,  d2[0]\n        vmul.f32        d18, d4,  d2[1]\n        vmla.f32        d16, d6,  d3[0]\n        vmla.f32        d18, d6,  d3[1]\n        vst1.32         {d16},    [r2,:64]!\n        vst1.32         {d18},    [r3,:64]!\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/aacpsdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/aacpsdsp_neon.S", "line_start": 241, "line_end": 273}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_arm.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_ac3_update_bap_counts_arm, export=1\n        push            {lr}\n        ldrb            lr,  [r1], #1\n1:\n        lsl             r3,  lr,  #1\n        ldrh            r12, [r0, r3]\n        subs            r2,  r2,  #1\n        it              gt\n        ldrbgt          lr,  [r1], #1\n        add             r12, r12, #1\n        strh            r12, [r0, r3]\n        bgt             1b\n        pop             {pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/ac3dsp_arm.S", "line_start": 1, "line_end": 36}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_armv6.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_ac3_bit_alloc_calc_bap_armv6, export=1\n        ldr             r12, [sp]\n        cmp             r12, #-960\n        beq             4f\n        push            {r4-r11,lr}\n        add             r5,  sp,  #40\n        movrelx         r4,  X(ff_ac3_bin_to_band_tab), r11\n        movrelx         lr,  X(ff_ac3_band_start_tab)\n        ldm             r5,  {r5-r7}\n        ldrb            r4,  [r4, r2]\n        add             r1,  r1,  r2,  lsl #1           @ psd + start\n        add             r0,  r0,  r4,  lsl #1           @ mask + band\n        add             r4,  r4,  lr\n        add             r7,  r7,  r2                    @ bap + start\n1:\n        ldrsh           r9,  [r0], #2                   @ mask[band]\n        mov             r8,  #0xff0\n        sub             r9,  r9,  r12                   @   - snr_offset\n        ldrb            r10, [r4, #1]!                  @ band_start_tab[++band]\n        subs            r9,  r9,  r5                    @   - floor\n        it              lt\n        movlt           r9,  #0\n        cmp             r10, r3                         @   - end\n        and             r9,  r9,  r8, lsl #1            @   & 0x1fe0\n        ite             gt\n        subgt           r8,  r3,  r2\n        suble           r8,  r10, r2\n        mov             r2,  r10\n        add             r9,  r9,  r5                    @   + floor => m\n        tst             r8,  #1\n        add             r11, r7,  r8\n        bne             3f\n        b               5f\n2:\n        ldrsh           r8,  [r1], #2\n        ldrsh           lr,  [r1], #2\n        sub             r8,  r8,  r9\n        sub             lr,  lr,  r9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/ac3dsp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_armv6.S:2", "text": "ldrb            r10, [r4, #1]!                  @ band_start_tab[++band]\n        subs            r9,  r9,  r5                    @   - floor\n        it              lt\n        movlt           r9,  #0\n        cmp             r10, r3                         @   - end\n        and             r9,  r9,  r8, lsl #1            @   & 0x1fe0\n        ite             gt\n        subgt           r8,  r3,  r2\n        suble           r8,  r10, r2\n        mov             r2,  r10\n        add             r9,  r9,  r5                    @   + floor => m\n        tst             r8,  #1\n        add             r11, r7,  r8\n        bne             3f\n        b               5f\n2:\n        ldrsh           r8,  [r1], #2\n        ldrsh           lr,  [r1], #2\n        sub             r8,  r8,  r9\n        sub             lr,  lr,  r9\n        usat            r8,  #6,  r8,  asr #5           @ address\n        usat            lr,  #6,  lr,  asr #5\n        ldrb            r8,  [r6, r8]                   @ bap_tab[address]\n        ldrb            lr,  [r6, lr]\n        strb            r8,  [r7], #1                   @ bap[bin]\n        strb            lr,  [r7], #1\n5:      cmp             r7,  r11\n        blo             2b\n        cmp             r3,  r10\n        bgt             1b\n        pop             {r4-r11,pc}\n3:\n        ldrsh           r8,  [r1], #2                   @ psd[bin]\n        sub             r8,  r8,  r9                    @   - m\n        usat            r8,  #6,  r8,  asr #5           @ address\n        ldrb            r8,  [r6, r8]                   @ bap_tab[address]\n        strb            r8,  [r7], #1                   @ bap[bin]\n        b               5b\n4:\n        ldr             r0,  [sp, #12]\n        mov             r1,  #0\n        mov             r2,  #256\n        b               X(memset)\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/ac3dsp_armv6.S", "line_start": 41, "line_end": 84}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_ac3_exponent_min_neon, export=1\n        cmp             r1,  #0\n        it              eq\n        bxeq            lr\n        push            {lr}\n        mov             r12, #256\n1:\n        vld1.8          {q0},     [r0,:128]\n        mov             lr,  r1\n        add             r3,  r0,  #256\n2:      vld1.8          {q1},     [r3,:128], r12\n        subs            lr,  lr,  #1\n        vmin.u8         q0,  q0,  q1\n        bgt             2b\n        subs            r2,  r2,  #16\n        vst1.8          {q0},     [r0,:128]!\n        bgt             1b\n        pop             {pc}\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      vld1.32         {q0-q1},  [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #24\n        vld1.32         {q2-q3},  [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #24\n        vcvt.s32.f32    q2,  q2,  #24\n        vst1.32         {q0-q1},  [r0,:128]!\n        vcvt.s32.f32    q3,  q3,  #24\n        vst1.32         {q2-q3},  [r0,:128]!\n        subs            r2,  r2,  #16\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_ac3_extract_exponents_neon, export=1\n        vmov.i32        q15, #8\n1:\n        vld1.32         {q0},     [r1,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/ac3dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:2", "text": "endfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      vld1.32         {q0-q1},  [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #24\n        vld1.32         {q2-q3},  [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #24\n        vcvt.s32.f32    q2,  q2,  #24\n        vst1.32         {q0-q1},  [r0,:128]!\n        vcvt.s32.f32    q3,  q3,  #24\n        vst1.32         {q2-q3},  [r0,:128]!\n        subs            r2,  r2,  #16\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_ac3_extract_exponents_neon, export=1\n        vmov.i32        q15, #8\n1:\n        vld1.32         {q0},     [r1,:128]!\n        vabs.s32        q1,  q0\n        vclz.i32        q3,  q1\n        vsub.i32        q3,  q3,  q15\n        vmovn.i32       d6,  q3\n        vmovn.i16       d6,  q3\n        vst1.32         {d6[0]},  [r0,:32]!\n        subs            r2,  r2,  #4\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_int32_neon, export=1\n        vmov.i64        q0,  #0\n        vmov.i64        q1,  #0\n        vmov.i64        q2,  #0\n        vmov.i64        q3,  #0\n1:\n        vld1.32         {d16},    [r1]!\n        vld1.32         {d17},    [r2]!\n        vadd.s32        d18, d16, d17\n        vsub.s32        d19, d16, d17\n        vmlal.s32       q0,  d16, d16\n        vmlal.s32       q1,  d17, d17\n        vmlal.s32       q2,  d18, d18\n        vmlal.s32       q3,  d19, d19\n        subs            r3,  r3,  #2\n        bgt             1b\n        vadd.s64        d0,  d0,  d1\n        vadd.s64        d1,  d2,  d3\n        vadd.s64        d2,  d4,  d5\n        vadd.s64        d3,  d6,  d7\n        vst1.64         {q0-q1},  [r0]\n        bx              lr\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        vmov.f32        q0,  #0.0\n        vmov.f32        q1,  #0.0\n1:\n        vld1.32         {d16},    [r1]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/ac3dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:3", "text": "vsub.s32        d19, d16, d17\n        vmlal.s32       q0,  d16, d16\n        vmlal.s32       q1,  d17, d17\n        vmlal.s32       q2,  d18, d18\n        vmlal.s32       q3,  d19, d19\n        subs            r3,  r3,  #2\n        bgt             1b\n        vadd.s64        d0,  d0,  d1\n        vadd.s64        d1,  d2,  d3\n        vadd.s64        d2,  d4,  d5\n        vadd.s64        d3,  d6,  d7\n        vst1.64         {q0-q1},  [r0]\n        bx              lr\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        vmov.f32        q0,  #0.0\n        vmov.f32        q1,  #0.0\n1:\n        vld1.32         {d16},    [r1]!\n        vld1.32         {d17},    [r2]!\n        vadd.f32        d18, d16, d17\n        vsub.f32        d19, d16, d17\n        vmla.f32        d0,  d16, d16\n        vmla.f32        d1,  d17, d17\n        vmla.f32        d2,  d18, d18\n        vmla.f32        d3,  d19, d19\n        subs            r3,  r3,  #2\n        bgt             1b\n        vpadd.f32       d0,  d0,  d1\n        vpadd.f32       d1,  d2,  d3\n        vst1.32         {q0},     [r0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/ac3dsp_neon.S", "line_start": 81, "line_end": 114}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_ac3_max_msb_abs_int16_neon, export=1\n        vmov.i16        q0,  #0\n        vmov.i16        q2,  #0\n1:      vld1.16         {q1},     [r0,:128]!\n        vabs.s16        q1,  q1\n        vld1.16         {q3},     [r0,:128]!\n        vabs.s16        q3,  q3\n        vorr            q0,  q0,  q1\n        vorr            q2,  q2,  q3\n        subs            r1,  r1,  #16\n        bgt             1b\n        vorr            q0,  q0,  q2\n        vorr            d0,  d0,  d1\n        vpmax.u16       d0,  d0,  d0\n        vpmax.u16       d0,  d0,  d0\n        vmov.u16        r0,  d0[0]\n        bx              lr\nendfunc\n\nfunction ff_ac3_exponent_min_neon, export=1\n        cmp             r1,  #0\n        it              eq\n        bxeq            lr\n        push            {lr}\n        mov             r12, #256\n1:\n        vld1.8          {q0},     [r0,:128]\n        mov             lr,  r1\n        add             r3,  r0,  #256\n2:      vld1.8          {q1},     [r3,:128], r12\n        subs            lr,  lr,  #1\n        vmin.u8         q0,  q0,  q1\n        bgt             2b\n        subs            r2,  r2,  #16\n        vst1.8          {q0},     [r0,:128]!\n        bgt             1b\n        pop             {pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/ac3dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:2", "text": "function ff_ac3_exponent_min_neon, export=1\n        cmp             r1,  #0\n        it              eq\n        bxeq            lr\n        push            {lr}\n        mov             r12, #256\n1:\n        vld1.8          {q0},     [r0,:128]\n        mov             lr,  r1\n        add             r3,  r0,  #256\n2:      vld1.8          {q1},     [r3,:128], r12\n        subs            lr,  lr,  #1\n        vmin.u8         q0,  q0,  q1\n        bgt             2b\n        subs            r2,  r2,  #16\n        vst1.8          {q0},     [r0,:128]!\n        bgt             1b\n        pop             {pc}\nendfunc\n\nfunction ff_ac3_lshift_int16_neon, export=1\n        vdup.16         q0,  r2\n1:      vld1.16         {q1},     [r0,:128]\n        vshl.s16        q1,  q1,  q0\n        vst1.16         {q1},     [r0,:128]!\n        subs            r1,  r1,  #8\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_ac3_rshift_int32_neon, export=1\n        rsb             r2,  r2,  #0\n        vdup.32         q0,  r2\n1:      vld1.32         {q1},     [r0,:128]\n        vshl.s32        q1,  q1,  q0\n        vst1.32         {q1},     [r0,:128]!\n        subs            r1,  r1,  #4\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      vld1.32         {q0-q1},  [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #24\n        vld1.32         {q2-q3},  [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #24\n        vcvt.s32.f32    q2,  q2,  #24\n        vst1.32         {q0-q1},  [r0,:128]!\n        vcvt.s32.f32    q3,  q3,  #24\n        vst1.32         {q2-q3},  [r0,:128]!\n        subs            r2,  r2,  #16\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_ac3_extract_exponents_neon, export=1\n        vmov.i32        q15, #8\n1:\n        vld1.32         {q0},     [r1,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/ac3dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:3", "text": "endfunc\n\nfunction ff_float_to_fixed24_neon, export=1\n1:      vld1.32         {q0-q1},  [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #24\n        vld1.32         {q2-q3},  [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #24\n        vcvt.s32.f32    q2,  q2,  #24\n        vst1.32         {q0-q1},  [r0,:128]!\n        vcvt.s32.f32    q3,  q3,  #24\n        vst1.32         {q2-q3},  [r0,:128]!\n        subs            r2,  r2,  #16\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_ac3_extract_exponents_neon, export=1\n        vmov.i32        q15, #8\n1:\n        vld1.32         {q0},     [r1,:128]!\n        vabs.s32        q1,  q0\n        vclz.i32        q3,  q1\n        vsub.i32        q3,  q3,  q15\n        vmovn.i32       d6,  q3\n        vmovn.i16       d6,  q3\n        vst1.32         {d6[0]},  [r0,:32]!\n        subs            r2,  r2,  #4\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_apply_window_int16_neon, export=1\n        push            {r4,lr}\n        add             r4,  r1,  r3,  lsl #1\n        add             lr,  r0,  r3,  lsl #1\n        sub             r4,  r4,  #16\n        sub             lr,  lr,  #16\n        mov             r12, #-16\n1:\n        vld1.16         {q0},     [r1,:128]!\n        vld1.16         {q2},     [r2,:128]!\n        vld1.16         {q1},     [r4,:128], r12\n        vrev64.16       q3,  q2\n        vqrdmulh.s16    q0,  q0,  q2\n        vqrdmulh.s16    d2,  d2,  d7\n        vqrdmulh.s16    d3,  d3,  d6\n        vst1.16         {q0},     [r0,:128]!\n        vst1.16         {q1},     [lr,:128], r12\n        subs            r3,  r3,  #16\n        bgt             1b\n\n        pop             {r4,pc}\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_int32_neon, export=1\n        vmov.i64        q0,  #0\n        vmov.i64        q1,  #0\n        vmov.i64        q2,  #0\n        vmov.i64        q3,  #0\n1:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/ac3dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:4", "text": "vld1.16         {q2},     [r2,:128]!\n        vld1.16         {q1},     [r4,:128], r12\n        vrev64.16       q3,  q2\n        vqrdmulh.s16    q0,  q0,  q2\n        vqrdmulh.s16    d2,  d2,  d7\n        vqrdmulh.s16    d3,  d3,  d6\n        vst1.16         {q0},     [r0,:128]!\n        vst1.16         {q1},     [lr,:128], r12\n        subs            r3,  r3,  #16\n        bgt             1b\n\n        pop             {r4,pc}\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_int32_neon, export=1\n        vmov.i64        q0,  #0\n        vmov.i64        q1,  #0\n        vmov.i64        q2,  #0\n        vmov.i64        q3,  #0\n1:\n        vld1.32         {d16},    [r1]!\n        vld1.32         {d17},    [r2]!\n        vadd.s32        d18, d16, d17\n        vsub.s32        d19, d16, d17\n        vmlal.s32       q0,  d16, d16\n        vmlal.s32       q1,  d17, d17\n        vmlal.s32       q2,  d18, d18\n        vmlal.s32       q3,  d19, d19\n        subs            r3,  r3,  #2\n        bgt             1b\n        vadd.s64        d0,  d0,  d1\n        vadd.s64        d1,  d2,  d3\n        vadd.s64        d2,  d4,  d5\n        vadd.s64        d3,  d6,  d7\n        vst1.64         {q0-q1},  [r0]\n        bx              lr\nendfunc\n\nfunction ff_ac3_sum_square_butterfly_float_neon, export=1\n        vmov.f32        q0,  #0.0\n        vmov.f32        q1,  #0.0\n1:\n        vld1.32         {d16},    [r1]!\n        vld1.32         {d17},    [r2]!\n        vadd.f32        d18, d16, d17\n        vsub.f32        d19, d16, d17\n        vmla.f32        d0,  d16, d16\n        vmla.f32        d1,  d17, d17\n        vmla.f32        d2,  d18, d18\n        vmla.f32        d3,  d19, d19\n        subs            r3,  r3,  #2\n        bgt             1b\n        vpadd.f32       d0,  d0,  d1\n        vpadd.f32       d1,  d2,  d3\n        vst1.32         {q0},     [r0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/ac3dsp_neon.S", "line_start": 121, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/ac3dsp_neon.S:5", "text": "vmov.f32        q1,  #0.0\n1:\n        vld1.32         {d16},    [r1]!\n        vld1.32         {d17},    [r2]!\n        vadd.f32        d18, d16, d17\n        vsub.f32        d19, d16, d17\n        vmla.f32        d0,  d16, d16\n        vmla.f32        d1,  d17, d17\n        vmla.f32        d2,  d18, d18\n        vmla.f32        d3,  d19, d19\n        subs            r3,  r3,  #2\n        bgt             1b\n        vpadd.f32       d0,  d0,  d1\n        vpadd.f32       d1,  d2,  d3\n        vst1.32         {q0},     [r0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/ac3dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/ac3dsp_neon.S", "line_start": 161, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/audiodsp_neon.S:1", "text": "/*\n * ARM NEON optimised audio functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_vector_clipf_neon, export=1\nVFP     vdup.32         q1,  d0[1]\nVFP     vdup.32         q0,  d0[0]\nNOVFP   vdup.32         q0,  r3\nNOVFP   vld1.32         {d2[],d3[]}, [sp]\n        vld1.f32        {q2},[r1,:128]!\n        vmin.f32        q10, q2,  q1\n        vld1.f32        {q3},[r1,:128]!\n        vmin.f32        q11, q3,  q1\n1:      vmax.f32        q8,  q10, q0\n        vmax.f32        q9,  q11, q0\n        subs            r2,  r2,  #8\n        beq             2f\n        vld1.f32        {q2},[r1,:128]!\n        vmin.f32        q10, q2,  q1\n        vld1.f32        {q3},[r1,:128]!\n        vmin.f32        q11, q3,  q1\n        vst1.f32        {q8},[r0,:128]!\n        vst1.f32        {q9},[r0,:128]!\n        b               1b\n2:      vst1.f32        {q8},[r0,:128]!\n        vst1.f32        {q9},[r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_vector_clip_int32_neon, export=1\n        vdup.32         q0,  r2\n        vdup.32         q1,  r3\n        ldr             r2,  [sp]\n1:\n        vld1.32         {q2-q3},  [r1,:128]!\n        vmin.s32        q2,  q2,  q1\n        vmin.s32        q3,  q3,  q1\n        vmax.s32        q2,  q2,  q0\n        vmax.s32        q3,  q3,  q0\n        vst1.32         {q2-q3},  [r0,:128]!\n        subs            r2,  r2,  #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/audiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/audiodsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/audiodsp_neon.S:2", "text": "vst1.f32        {q8},[r0,:128]!\n        vst1.f32        {q9},[r0,:128]!\n        b               1b\n2:      vst1.f32        {q8},[r0,:128]!\n        vst1.f32        {q9},[r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_vector_clip_int32_neon, export=1\n        vdup.32         q0,  r2\n        vdup.32         q1,  r3\n        ldr             r2,  [sp]\n1:\n        vld1.32         {q2-q3},  [r1,:128]!\n        vmin.s32        q2,  q2,  q1\n        vmin.s32        q3,  q3,  q1\n        vmax.s32        q2,  q2,  q0\n        vmax.s32        q3,  q3,  q0\n        vst1.32         {q2-q3},  [r0,:128]!\n        subs            r2,  r2,  #8\n        bgt             1b\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/audiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/audiodsp_neon.S", "line_start": 41, "line_end": 63}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/blockdsp_neon.S:1", "text": "/*\n * ARM NEON optimised block functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_clear_block_neon, export=1\n        vmov.i16        q0,  #0\n        .rept           8\n        vst1.16         {q0}, [r0,:128]!\n        .endr\n        bx              lr\nendfunc\n\nfunction ff_clear_blocks_neon, export=1\n        vmov.i16        q0,  #0\n        .rept           8*6\n        vst1.16         {q0}, [r0,:128]!\n        .endr\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/blockdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/blockdsp_neon.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/flacdsp_arm.S:1", "text": "/*\n * Copyright (c) 2012 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction flac_lpc_16_1_arm\n        ldr             r12, [sp]\n        push            {r4, lr}\n        ldr             r1,  [r1]\n        subs            r12, r12, #2\n        ldr             lr,  [r0], #4\n        beq             2f\n        it              lt\n        poplt           {r4, pc}\n1:\n        mul             r4,  lr,  r1\n        ldm             r0,  {r2, lr}\n        add_sh          r2,  r2,  r4,  asr r3\n        mul             r4,  r2,  r1\n        subs            r12, r12, #2\n        add_sh          lr,  lr,  r4,  asr r3\n        stm             r0!, {r2, lr}\n        bgt             1b\n        it              lt\n        poplt           {r4, pc}\n2:\n        mul             r4,  lr,  r1\n        ldr             r2,  [r0]\n        add_sh          r2,  r2,  r4,  asr r3\n        str             r2,  [r0]\n        pop             {r4, pc}\nendfunc\n\nfunction flac_lpc_16_2_arm\n        ldr             r12, [sp]\n        subs            r12, r12, r2\n        it              le\n        bxle            lr\n\n        push            {r4-r9, lr}\n        ldm             r0!, {r6, r7}\n        ldm             r1,  {r8, r9}\n        subs            r12, r12, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/flacdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/flacdsp_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/flacdsp_arm.S:2", "text": "it              lt\n        poplt           {r4, pc}\n2:\n        mul             r4,  lr,  r1\n        ldr             r2,  [r0]\n        add_sh          r2,  r2,  r4,  asr r3\n        str             r2,  [r0]\n        pop             {r4, pc}\nendfunc\n\nfunction flac_lpc_16_2_arm\n        ldr             r12, [sp]\n        subs            r12, r12, r2\n        it              le\n        bxle            lr\n\n        push            {r4-r9, lr}\n        ldm             r0!, {r6, r7}\n        ldm             r1,  {r8, r9}\n        subs            r12, r12, #1\n        beq             2f\n1:\n        mul             r4,  r6,  r8\n        mul             r5,  r7,  r8\n        mla             r4,  r7,  r9,  r4\n        ldm             r0,  {r6, r7}\n        add_sh          r6,  r6,  r4,  asr r3\n        mla             r5,  r6,  r9,  r5\n        add_sh          r7,  r7,  r5,  asr r3\n        stm             r0!, {r6, r7}\n        subs            r12, r12, #2\n        bgt             1b\n        it              lt\n        poplt           {r4-r9, pc}\n2:\n        mul             r4,  r6,  r8\n        mla             r4,  r7,  r9,  r4\n        ldr             r5,  [r0]\n        add_sh          r5,  r5,  r4,  asr r3\n        str             r5,  [r0]\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_flac_lpc_16_arm, export=1\n        cmp             r2,  #2\n        blt             flac_lpc_16_1_arm\n        beq             flac_lpc_16_2_arm\n\n        ldr             r12, [sp]\n        subs            r12, r12, r2\n        it              le\n        bxle            lr\n\n        push            {r4-r9, lr}\n\n        subs            r12, r12, #1\n        beq             3f\n1:\n        sub             lr,  r2,  #2\n        mov             r4,  #0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/flacdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/flacdsp_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/flacdsp_arm.S:3", "text": "pop             {r4-r9, pc}\nendfunc\n\nfunction ff_flac_lpc_16_arm, export=1\n        cmp             r2,  #2\n        blt             flac_lpc_16_1_arm\n        beq             flac_lpc_16_2_arm\n\n        ldr             r12, [sp]\n        subs            r12, r12, r2\n        it              le\n        bxle            lr\n\n        push            {r4-r9, lr}\n\n        subs            r12, r12, #1\n        beq             3f\n1:\n        sub             lr,  r2,  #2\n        mov             r4,  #0\n        mov             r5,  #0\n\n        ldr             r7,  [r0], #4\n        ldr             r9,  [r1], #4\n2:\n        mla             r4,  r7,  r9,  r4\n        ldm             r0!, {r6, r7}\n        mla             r5,  r6,  r9,  r5\n        ldm             r1!, {r8, r9}\n        mla             r4,  r6,  r8,  r4\n        subs            lr,  lr,  #2\n        mla             r5,  r7,  r8,  r5\n        bgt             2b\n        blt             6f\n\n        mla             r4,  r7,  r9,  r4\n        ldr             r7,  [r0], #4\n        mla             r5,  r7,  r9,  r5\n        ldr             r9,  [r1], #4\n6:\n        mla             r4,  r7,  r9,  r4\n        ldm             r0,  {r6, r7}\n        add_sh          r6,  r6,  r4,  asr r3\n        mla             r5,  r6,  r9,  r5\n        add_sh          r7,  r7,  r5,  asr r3\n        stm             r0!, {r6, r7}\n        sub             r0,  r0,  r2,  lsl #2\n        sub             r1,  r1,  r2,  lsl #2\n\n        subs            r12, r12, #2\n        bgt             1b\n        it              lt\n        poplt           {r4-r9, pc}\n3:\n        mov             r4,  #0\n4:\n        ldr             r5,  [r1], #4\n        ldr             r6,  [r0], #4\n        mla             r4,  r5,  r6,  r4\n        subs            r2,  r2,  #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/flacdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/flacdsp_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/flacdsp_arm.S:4", "text": "mla             r4,  r7,  r9,  r4\n        ldm             r0,  {r6, r7}\n        add_sh          r6,  r6,  r4,  asr r3\n        mla             r5,  r6,  r9,  r5\n        add_sh          r7,  r7,  r5,  asr r3\n        stm             r0!, {r6, r7}\n        sub             r0,  r0,  r2,  lsl #2\n        sub             r1,  r1,  r2,  lsl #2\n\n        subs            r12, r12, #2\n        bgt             1b\n        it              lt\n        poplt           {r4-r9, pc}\n3:\n        mov             r4,  #0\n4:\n        ldr             r5,  [r1], #4\n        ldr             r6,  [r0], #4\n        mla             r4,  r5,  r6,  r4\n        subs            r2,  r2,  #1\n        bgt             4b\n        ldr             r5,  [r0]\n        add_sh          r5,  r5,  r4,  asr r3\n        str             r5,  [r0]\n        pop             {r4-r9, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/flacdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/flacdsp_arm.S", "line_start": 121, "line_end": 146}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_neon.S:1", "text": "/*\n * ARM NEON optimised Format Conversion Utils\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2015 Janne Grunau  <janne-libav@jannau.net>b\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_int32_to_float_fmul_scalar_neon, export=1\nVFP     vdup.32         q0,  d0[0]\nVFP     len     .req    r2\nNOVFP   vdup.32         q0,  r2\nNOVFP   len     .req    r3\n\n        vld1.32         {q1},[r1,:128]!\n        vcvt.f32.s32    q3,  q1\n        vld1.32         {q2},[r1,:128]!\n        vcvt.f32.s32    q8,  q2\n1:      subs            len, len, #8\n        pld             [r1, #16]\n        vmul.f32        q9,  q3,  q0\n        vmul.f32        q10, q8,  q0\n        beq             2f\n        vld1.32         {q1},[r1,:128]!\n        vcvt.f32.s32    q3,  q1\n        vld1.32         {q2},[r1,:128]!\n        vcvt.f32.s32    q8,  q2\n        vst1.32         {q9}, [r0,:128]!\n        vst1.32         {q10},[r0,:128]!\n        b               1b\n2:      vst1.32         {q9}, [r0,:128]!\n        vst1.32         {q10},[r0,:128]!\n        bx              lr\n        .unreq  len\nendfunc\n\nfunction ff_int32_to_float_fmul_array8_neon, export=1\n        ldr             r0,  [sp]\n        lsr             r0,  r0,  #3\n        subs            r0,  r0,  #1\n        beq             1f\n2:\n        vld1.32         {q0-q1},   [r2,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_neon.S:2", "text": "vld1.32         {q1},[r1,:128]!\n        vcvt.f32.s32    q3,  q1\n        vld1.32         {q2},[r1,:128]!\n        vcvt.f32.s32    q8,  q2\n        vst1.32         {q9}, [r0,:128]!\n        vst1.32         {q10},[r0,:128]!\n        b               1b\n2:      vst1.32         {q9}, [r0,:128]!\n        vst1.32         {q10},[r0,:128]!\n        bx              lr\n        .unreq  len\nendfunc\n\nfunction ff_int32_to_float_fmul_array8_neon, export=1\n        ldr             r0,  [sp]\n        lsr             r0,  r0,  #3\n        subs            r0,  r0,  #1\n        beq             1f\n2:\n        vld1.32         {q0-q1},   [r2,:128]!\n        vld1.32         {q2-q3},   [r2,:128]!\n        vld1.32         {d20},     [r3]!\n        subs            r0,  r0,  #2\n        vcvt.f32.s32    q0,  q0\n        vcvt.f32.s32    q1,  q1\n        vdup.32         q8,  d20[0]\n        vcvt.f32.s32    q2,  q2\n        vcvt.f32.s32    q3,  q3\n        vmul.f32        q0,  q0,  q8\n        vdup.32         q9,  d20[1]\n        vmul.f32        q1,  q1,  q8\n        vmul.f32        q2,  q2,  q9\n        vmul.f32        q3,  q3,  q9\n        vst1.32         {q0-q1},   [r1,:128]!\n        vst1.32         {q2-q3},   [r1,:128]!\n        bgt             2b\n        it              lt\n        bxlt            lr\n1:\n        vld1.32         {q0-q1},   [r2,:128]\n        vld1.32         {d16[],d17[]},  [r3]\n        vcvt.f32.s32    q0,  q0\n        vcvt.f32.s32    q1,  q1\n        vmul.f32        q0,  q0,  q8\n        vmul.f32        q1,  q1,  q8\n        vst1.32         {q0-q1},   [r1,:128]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_neon.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:1", "text": "/*\n * Copyright (c) 2013 RISC OS Open Ltd <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\n/**\n * ARM VFP optimised int32 to float conversion.\n * Assume len is a multiple of 8, destination buffer is at least 4 bytes aligned\n * (16 bytes alignment is best for BCM2835), little-endian.\n */\n@ void ff_int32_to_float_fmul_array8_vfp(FmtConvertContext *c, float *dst, const int32_t *src, const float *mul, int len)\nfunction ff_int32_to_float_fmul_array8_vfp, export=1\n        push            {lr}\n        ldr             a1, [sp, #4]\n        subs            lr, a1, #3*8\n        bcc             50f                        @ too short to pipeline\n        @ Now need to find (len / 8) % 3. The approximation\n        @ x / 24 = (x * 0xAB) >> 12\n        @ is good for x < 4096, which is true for both AC3 and DCA.\n        mov             a1, #0xAB\n        ldr             ip, =0x03070000            @ RunFast mode, short vectors of length 8, stride 1\n        mul             a1, lr, a1\n        vpush           {s16-s31}\n        mov             a1, a1, lsr #12\n        add             a1, a1, a1, lsl #1\n        rsb             a1, a1, lr, lsr #3\n        cmp             a1, #1\n        fmrx            a1, FPSCR\n        fmxr            FPSCR, ip\n        beq             11f\n        blo             10f\n        @ Array is (2 + multiple of 3) x 8 floats long\n        @ drop through...\n        vldmia          a3!, {s16-s23}\n        vldmia          a4!, {s2,s3}\n        vldmia          a3!, {s24-s31}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20\n        vcvt.f32.s32    s21, s21", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_vfp.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:2", "text": "vpush           {s16-s31}\n        mov             a1, a1, lsr #12\n        add             a1, a1, a1, lsl #1\n        rsb             a1, a1, lr, lsr #3\n        cmp             a1, #1\n        fmrx            a1, FPSCR\n        fmxr            FPSCR, ip\n        beq             11f\n        blo             10f\n        @ Array is (2 + multiple of 3) x 8 floats long\n        @ drop through...\n        vldmia          a3!, {s16-s23}\n        vldmia          a4!, {s2,s3}\n        vldmia          a3!, {s24-s31}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20\n        vcvt.f32.s32    s21, s21\n        vcvt.f32.s32    s22, s22\n        vcvt.f32.s32    s23, s23\n        vmul.f32        s16, s16, s2\n        @ drop through...\n3:\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1}\n        vcvt.f32.s32    s24, s24\n        vcvt.f32.s32    s25, s25\n        vcvt.f32.s32    s26, s26\n        vcvt.f32.s32    s27, s27\n        vcvt.f32.s32    s28, s28\n        vcvt.f32.s32    s29, s29\n        vcvt.f32.s32    s30, s30\n        vcvt.f32.s32    s31, s31\n        vmul.f32        s24, s24, s3\n        vstmia          a2!, {s16-s19}\n        vstmia          a2!, {s20-s23}\n2:\n        vldmia          a3!, {s16-s23}\n        vldmia          a4!, {s2}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s1\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n1:\n        vldmia          a3!, {s24-s31}\n        vldmia          a4!, {s3}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_vfp.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:3", "text": "vldmia          a4!, {s2}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s1\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n1:\n        vldmia          a3!, {s24-s31}\n        vldmia          a4!, {s3}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20\n        vcvt.f32.s32    s21, s21\n        vcvt.f32.s32    s22, s22\n        vcvt.f32.s32    s23, s23\n        vmul.f32        s16, s16, s2\n        vstmia          a2!, {s8-s11}\n        vstmia          a2!, {s12-s15}\n\n        subs            lr, lr, #8*3\n        bpl             3b\n\n        vcvt.f32.s32    s24, s24\n        vcvt.f32.s32    s25, s25\n        vcvt.f32.s32    s26, s26\n        vcvt.f32.s32    s27, s27\n        vcvt.f32.s32    s28, s28\n        vcvt.f32.s32    s29, s29\n        vcvt.f32.s32    s30, s30\n        vcvt.f32.s32    s31, s31\n        vmul.f32        s24, s24, s3\n        vstmia          a2!, {s16-s19}\n        vstmia          a2!, {s20-s23}\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n\n        fmxr            FPSCR, a1\n        vpop            {s16-s31}\n        pop             {pc}\n\n10:     @ Array is (multiple of 3) x 8 floats long\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1,s2}\n        vldmia          a3!, {s16-s23}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_vfp.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:4", "text": "vstmia          a2!, {s20-s23}\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n\n        fmxr            FPSCR, a1\n        vpop            {s16-s31}\n        pop             {pc}\n\n10:     @ Array is (multiple of 3) x 8 floats long\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1,s2}\n        vldmia          a3!, {s16-s23}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s1\n        b               1b\n\n11:     @ Array is (1 + multiple of 3) x 8 floats long\n        vldmia          a3!, {s24-s31}\n        vldmia          a4!, {s3}\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1}\n        vcvt.f32.s32    s24, s24\n        vcvt.f32.s32    s25, s25\n        vcvt.f32.s32    s26, s26\n        vcvt.f32.s32    s27, s27\n        vcvt.f32.s32    s28, s28\n        vcvt.f32.s32    s29, s29\n        vcvt.f32.s32    s30, s30\n        vcvt.f32.s32    s31, s31\n        vmul.f32        s24, s24, s3\n        b               2b\n\n50:\n        ldr             lr, =0x03070000         @ RunFast mode, short vectors of length 8, stride 1\n        fmrx            ip, FPSCR\n        fmxr            FPSCR, lr\n51:\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s0}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            a1, a1, #8\n        vstmia          a2!, {s8-s11}\n        vstmia          a2!, {s12-s15}\n        bne             51b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_vfp.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:5", "text": "ldr             lr, =0x03070000         @ RunFast mode, short vectors of length 8, stride 1\n        fmrx            ip, FPSCR\n        fmxr            FPSCR, lr\n51:\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s0}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            a1, a1, #8\n        vstmia          a2!, {s8-s11}\n        vstmia          a2!, {s12-s15}\n        bne             51b\n\n        fmxr            FPSCR, ip\n        pop             {pc}\nendfunc\n\n/**\n * ARM VFP optimised int32 to float conversion.\n * Assume len is a multiple of 8, destination buffer is at least 4 bytes aligned\n * (16 bytes alignment is best for BCM2835), little-endian.\n * TODO: could be further optimised by unrolling and interleaving, as above\n */\n@ void ff_int32_to_float_fmul_scalar_vfp(float *dst, const int32_t *src, float mul, int len)\nfunction ff_int32_to_float_fmul_scalar_vfp, export=1\nVFP     tmp     .req    a4\nVFP     len     .req    a3\nNOVFP   tmp     .req    a3\nNOVFP   len     .req    a4\nNOVFP   vmov    s0, a3\n        ldr             tmp, =0x03070000           @ RunFast mode, short vectors of length 8, stride 1\n        fmrx            ip, FPSCR\n        fmxr            FPSCR, tmp\n1:\n        vldmia          a2!, {s8-s15}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            len, len, #8\n        vstmia          a1!, {s8-s11}\n        vstmia          a1!, {s12-s15}\n        bne             1b\n\n        fmxr            FPSCR, ip\n        bx              lr\nendfunc\n        .unreq  tmp", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_vfp.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:6", "text": "1:\n        vldmia          a2!, {s8-s15}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            len, len, #8\n        vstmia          a1!, {s8-s11}\n        vstmia          a1!, {s12-s15}\n        bne             1b\n\n        fmxr            FPSCR, ip\n        bx              lr\nendfunc\n        .unreq  tmp\n        .unreq  len", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/fmtconvert_vfp.S", "line_start": 201, "line_end": 221}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:1", "text": "/*\n * Copyright (c) 2013 RISC OS Open Ltd <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\n/**\n * ARM VFP optimised int32 to float conversion.\n * Assume len is a multiple of 8, destination buffer is at least 4 bytes aligned\n * (16 bytes alignment is best for BCM2835), little-endian.\n */\n@ void ff_int32_to_float_fmul_array8_vfp(FmtConvertContext *c, float *dst, const int32_t *src, const float *mul, int len)\nfunction ff_int32_to_float_fmul_array8_vfp, export=1\n        push    {lr}\n        ldr     a1, [sp, #4]\n        subs    lr, a1, #3*8\n        bcc     50f                        @ too short to pipeline\n        @ Now need to find (len / 8) % 3. The approximation\n        @ x / 24 = (x * 0xAB) >> 12\n        @ is good for x < 4096, which is true for both AC3 and DCA.\n        mov     a1, #0xAB\n        ldr     ip, =0x03070000            @ RunFast mode, short vectors of length 8, stride 1\n        mul     a1, lr, a1\n        vpush   {s16-s31}\n        mov     a1, a1, lsr #12\n        add     a1, a1, a1, lsl #1\n        rsb     a1, a1, lr, lsr #3\n        cmp     a1, #1\n        fmrx    a1, FPSCR\n        fmxr    FPSCR, ip\n        beq     11f\n        blo     10f\n        @ Array is (2 + multiple of 3) x 8 floats long\n        @ drop through...\n        vldmia          a3!, {s16-s23}\n        vldmia          a4!, {s2,s3}\n        vldmia          a3!, {s24-s31}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20\n        vcvt.f32.s32    s21, s21", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/fmtconvert_vfp.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:2", "text": "vpush   {s16-s31}\n        mov     a1, a1, lsr #12\n        add     a1, a1, a1, lsl #1\n        rsb     a1, a1, lr, lsr #3\n        cmp     a1, #1\n        fmrx    a1, FPSCR\n        fmxr    FPSCR, ip\n        beq     11f\n        blo     10f\n        @ Array is (2 + multiple of 3) x 8 floats long\n        @ drop through...\n        vldmia          a3!, {s16-s23}\n        vldmia          a4!, {s2,s3}\n        vldmia          a3!, {s24-s31}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20\n        vcvt.f32.s32    s21, s21\n        vcvt.f32.s32    s22, s22\n        vcvt.f32.s32    s23, s23\n        vmul.f32        s16, s16, s2\n        @ drop through...\n3:\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1}\n        vcvt.f32.s32    s24, s24\n        vcvt.f32.s32    s25, s25\n        vcvt.f32.s32    s26, s26\n        vcvt.f32.s32    s27, s27\n        vcvt.f32.s32    s28, s28\n        vcvt.f32.s32    s29, s29\n        vcvt.f32.s32    s30, s30\n        vcvt.f32.s32    s31, s31\n        vmul.f32        s24, s24, s3\n        vstmia          a2!, {s16-s19}\n        vstmia          a2!, {s20-s23}\n2:\n        vldmia          a3!, {s16-s23}\n        vldmia          a4!, {s2}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s1\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n1:\n        vldmia          a3!, {s24-s31}\n        vldmia          a4!, {s3}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/fmtconvert_vfp.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:3", "text": "vldmia          a4!, {s2}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s1\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n1:\n        vldmia          a3!, {s24-s31}\n        vldmia          a4!, {s3}\n        vcvt.f32.s32    s16, s16\n        vcvt.f32.s32    s17, s17\n        vcvt.f32.s32    s18, s18\n        vcvt.f32.s32    s19, s19\n        vcvt.f32.s32    s20, s20\n        vcvt.f32.s32    s21, s21\n        vcvt.f32.s32    s22, s22\n        vcvt.f32.s32    s23, s23\n        vmul.f32        s16, s16, s2\n        vstmia          a2!, {s8-s11}\n        vstmia          a2!, {s12-s15}\n\n        subs            lr, lr, #8*3\n        bpl             3b\n\n        vcvt.f32.s32    s24, s24\n        vcvt.f32.s32    s25, s25\n        vcvt.f32.s32    s26, s26\n        vcvt.f32.s32    s27, s27\n        vcvt.f32.s32    s28, s28\n        vcvt.f32.s32    s29, s29\n        vcvt.f32.s32    s30, s30\n        vcvt.f32.s32    s31, s31\n        vmul.f32        s24, s24, s3\n        vstmia          a2!, {s16-s19}\n        vstmia          a2!, {s20-s23}\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n\n        fmxr    FPSCR, a1\n        vpop    {s16-s31}\n        pop     {pc}\n\n10:     @ Array is (multiple of 3) x 8 floats long\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1,s2}\n        vldmia          a3!, {s16-s23}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/fmtconvert_vfp.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:4", "text": "vstmia          a2!, {s20-s23}\n        vstmia          a2!, {s24-s27}\n        vstmia          a2!, {s28-s31}\n\n        fmxr    FPSCR, a1\n        vpop    {s16-s31}\n        pop     {pc}\n\n10:     @ Array is (multiple of 3) x 8 floats long\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1,s2}\n        vldmia          a3!, {s16-s23}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s1\n        b               1b\n\n11:     @ Array is (1 + multiple of 3) x 8 floats long\n        vldmia          a3!, {s24-s31}\n        vldmia          a4!, {s3}\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s1}\n        vcvt.f32.s32    s24, s24\n        vcvt.f32.s32    s25, s25\n        vcvt.f32.s32    s26, s26\n        vcvt.f32.s32    s27, s27\n        vcvt.f32.s32    s28, s28\n        vcvt.f32.s32    s29, s29\n        vcvt.f32.s32    s30, s30\n        vcvt.f32.s32    s31, s31\n        vmul.f32        s24, s24, s3\n        b               2b\n\n50:\n        ldr     lr, =0x03070000         @ RunFast mode, short vectors of length 8, stride 1\n        fmrx    ip, FPSCR\n        fmxr    FPSCR, lr\n51:\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s0}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            a1, a1, #8\n        vstmia          a2!, {s8-s11}\n        vstmia          a2!, {s12-s15}\n        bne             51b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/fmtconvert_vfp.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:5", "text": "ldr     lr, =0x03070000         @ RunFast mode, short vectors of length 8, stride 1\n        fmrx    ip, FPSCR\n        fmxr    FPSCR, lr\n51:\n        vldmia          a3!, {s8-s15}\n        vldmia          a4!, {s0}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            a1, a1, #8\n        vstmia          a2!, {s8-s11}\n        vstmia          a2!, {s12-s15}\n        bne             51b\n\n        fmxr    FPSCR, ip\n        pop     {pc}\nendfunc\n\n/**\n * ARM VFP optimised int32 to float conversion.\n * Assume len is a multiple of 8, destination buffer is at least 4 bytes aligned\n * (16 bytes alignment is best for BCM2835), little-endian.\n * TODO: could be further optimised by unrolling and interleaving, as above\n */\n@ void ff_int32_to_float_fmul_scalar_vfp(float *dst, const int32_t *src, float mul, int len)\nfunction ff_int32_to_float_fmul_scalar_vfp, export=1\nVFP     tmp     .req    a4\nVFP     len     .req    a3\nNOVFP   tmp     .req    a3\nNOVFP   len     .req    a4\nNOVFP   vmov    s0, a3\n        ldr     tmp, =0x03070000           @ RunFast mode, short vectors of length 8, stride 1\n        fmrx    ip, FPSCR\n        fmxr    FPSCR, tmp\n1:\n        vldmia          a2!, {s8-s15}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            len, len, #8\n        vstmia          a1!, {s8-s11}\n        vstmia          a1!, {s12-s15}\n        bne             1b\n\n        fmxr    FPSCR, ip\n        bx      lr\nendfunc\n        .unreq  tmp", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/fmtconvert_vfp.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/fmtconvert_vfp.S:6", "text": "1:\n        vldmia          a2!, {s8-s15}\n        vcvt.f32.s32    s8, s8\n        vcvt.f32.s32    s9, s9\n        vcvt.f32.s32    s10, s10\n        vcvt.f32.s32    s11, s11\n        vcvt.f32.s32    s12, s12\n        vcvt.f32.s32    s13, s13\n        vcvt.f32.s32    s14, s14\n        vcvt.f32.s32    s15, s15\n        vmul.f32        s8, s8, s0\n        subs            len, len, #8\n        vstmia          a1!, {s8-s11}\n        vstmia          a1!, {s12-s15}\n        bne             1b\n\n        fmxr    FPSCR, ip\n        bx      lr\nendfunc\n        .unreq  tmp\n        .unreq  len", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/fmtconvert_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/fmtconvert_vfp.S", "line_start": 201, "line_end": 221}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/g722dsp_neon.S:1", "text": "/*\n * ARM NEON optimised DSP functions for G722 coding\n * Copyright (c) 2015 Peter Meerwald <pmeerw@pmeerw.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_g722_apply_qmf_neon, export=1, align=4\n        movrel          r3, qmf_coeffs\n        vld1.s16        {d2,d3,d4}, [r0]! /* load prev_samples */\n        vld1.s16        {d16,d17,d18}, [r3,:64]! /* load qmf_coeffs */\n        vmull.s16       q0, d2, d16\n        vmlal.s16       q0, d3, d17\n        vmlal.s16       q0, d4, d18\n\n        vld1.s16        {d5,d6,d7}, [r0]! /* load prev_samples */\n        vld1.s16        {d19,d20,d21}, [r3,:64]! /* load qmf_coeffs */\n        vmlal.s16       q0, d5, d19\n        vmlal.s16       q0, d6, d20\n        vmlal.s16       q0, d7, d21\n\n        vadd.s32        d0, d1, d0\n        vrev64.32       d0, d0\n        vst1.s32        {d0}, [r1]\n        bx              lr\nendfunc\n\nconst qmf_coeffs, align=4\n        .hword          3\n        .hword          -11\n        .hword          -11\n        .hword          53\n        .hword          12\n        .hword          -156\n        .hword          32\n        .hword          362\n        .hword          -210\n        .hword          -805\n        .hword          951\n        .hword          3876\n        .hword          3876\n        .hword          951\n        .hword          -805\n        .hword          -210", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/g722dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/g722dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/g722dsp_neon.S:2", "text": "bx              lr\nendfunc\n\nconst qmf_coeffs, align=4\n        .hword          3\n        .hword          -11\n        .hword          -11\n        .hword          53\n        .hword          12\n        .hword          -156\n        .hword          32\n        .hword          362\n        .hword          -210\n        .hword          -805\n        .hword          951\n        .hword          3876\n        .hword          3876\n        .hword          951\n        .hword          -805\n        .hword          -210\n        .hword          362\n        .hword          32\n        .hword          -156\n        .hword          12\n        .hword          53\n        .hword          -11\n        .hword          -11\n        .hword          3\nendconst", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/g722dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/g722dsp_neon.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config_components.h\"\n\n#include \"libavutil/arm/asm.S\"\n\n/* chroma_mc8(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int x, int y) */\n.macro  h264_chroma_mc8 type, codec=h264\nfunction ff_\\type\\()_\\codec\\()_chroma_mc8_neon, export=1\n        push            {r4-r7, lr}\n        ldrd            r4,  r5,  [sp, #20]\n  .ifc \\type,avg\n        mov             lr,  r0\n  .endif\n        pld             [r1]\n        pld             [r1, r2]\n\n  .ifc \\codec,rv40\n        movrel          r6,  rv40bias\n        lsr             r7,  r5,  #1\n        add             r6,  r6,  r7,  lsl #3\n        lsr             r7,  r4,  #1\n        add             r6,  r6,  r7,  lsl #1\n        vld1.16         {d22[],d23[]}, [r6,:16]\n  .endif\n  .ifc \\codec,vc1\n        vmov.u16        q11, #28\n  .endif\n\nA       muls            r7,  r4,  r5\nT       mul             r7,  r4,  r5\nT       cmp             r7,  #0\n        rsb             r6,  r7,  r5,  lsl #3\n        rsb             r12, r7,  r4,  lsl #3\n        sub             r4,  r7,  r4,  lsl #3\n        sub             r4,  r4,  r5,  lsl #3\n        add             r4,  r4,  #64\n\n        beq             2f\n\n        vdup.8          d0,  r4\n        vdup.8          d1,  r12", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:2", "text": "add             r6,  r6,  r7,  lsl #1\n        vld1.16         {d22[],d23[]}, [r6,:16]\n  .endif\n  .ifc \\codec,vc1\n        vmov.u16        q11, #28\n  .endif\n\nA       muls            r7,  r4,  r5\nT       mul             r7,  r4,  r5\nT       cmp             r7,  #0\n        rsb             r6,  r7,  r5,  lsl #3\n        rsb             r12, r7,  r4,  lsl #3\n        sub             r4,  r7,  r4,  lsl #3\n        sub             r4,  r4,  r5,  lsl #3\n        add             r4,  r4,  #64\n\n        beq             2f\n\n        vdup.8          d0,  r4\n        vdup.8          d1,  r12\n        vld1.8          {d4, d5}, [r1], r2\n        vdup.8          d2,  r6\n        vdup.8          d3,  r7\n        vext.8          d5,  d4,  d5,  #1\n\n1:      vld1.8          {d6, d7}, [r1], r2\n        vmull.u8        q8,  d4,  d0\n        vmlal.u8        q8,  d5,  d1\n        vext.8          d7,  d6,  d7,  #1\n        vld1.8          {d4, d5}, [r1], r2\n        vmlal.u8        q8,  d6,  d2\n        pld             [r1]\n        vext.8          d5,  d4,  d5,  #1\n        vmlal.u8        q8,  d7,  d3\n        vmull.u8        q9,  d6,  d0\n        subs            r3,  r3,  #2\n        vmlal.u8        q9,  d7,  d1\n        vmlal.u8        q9,  d4,  d2\n        vmlal.u8        q9,  d5,  d3\n        pld             [r1, r2]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n        vrshrn.u16      d17, q9,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vadd.u16        q9,  q9,  q11\n        vshrn.u16       d16, q8,  #6\n        vshrn.u16       d17, q9,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             1b\n\n        pop             {r4-r7, pc}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:3", "text": ".ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n        vrshrn.u16      d17, q9,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vadd.u16        q9,  q9,  q11\n        vshrn.u16       d16, q8,  #6\n        vshrn.u16       d17, q9,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             1b\n\n        pop             {r4-r7, pc}\n\n2:      adds            r12, r12, r6\n        vdup.8          d0,  r4\n        beq             5f\n        tst             r6,  r6\n        vdup.8          d1,  r12\n\n        beq             4f\n\n        vld1.8          {d4}, [r1], r2\n\n3:      vld1.8          {d6}, [r1], r2\n        vmull.u8        q8,  d4,  d0\n        vmlal.u8        q8,  d6,  d1\n        vld1.8          {d4}, [r1], r2\n        vmull.u8        q9,  d6,  d0\n        vmlal.u8        q9,  d4,  d1\n        pld             [r1]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n        vrshrn.u16      d17, q9,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vadd.u16        q9,  q9,  q11\n        vshrn.u16       d16, q8,  #6\n        vshrn.u16       d17, q9,  #6\n  .endif\n        pld             [r1, r2]\n  .ifc \\type,avg\n        vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        subs            r3,  r3,  #2\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             3b\n\n        pop             {r4-r7, pc}\n\n4:      vld1.8          {d4, d5}, [r1], r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:4", "text": ".else\n        vadd.u16        q8,  q8,  q11\n        vadd.u16        q9,  q9,  q11\n        vshrn.u16       d16, q8,  #6\n        vshrn.u16       d17, q9,  #6\n  .endif\n        pld             [r1, r2]\n  .ifc \\type,avg\n        vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        subs            r3,  r3,  #2\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             3b\n\n        pop             {r4-r7, pc}\n\n4:      vld1.8          {d4, d5}, [r1], r2\n        vld1.8          {d6, d7}, [r1], r2\n        vext.8          d5,  d4,  d5,  #1\n        vext.8          d7,  d6,  d7,  #1\n        pld             [r1]\n        subs            r3,  r3,  #2\n        vmull.u8        q8,  d4,  d0\n        vmlal.u8        q8,  d5,  d1\n        vmull.u8        q9,  d6,  d0\n        vmlal.u8        q9,  d7,  d1\n        pld             [r1, r2]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n        vrshrn.u16      d17, q9,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vadd.u16        q9,  q9,  q11\n        vshrn.u16       d16, q8,  #6\n        vshrn.u16       d17, q9,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             4b\n\n        pop             {r4-r7, pc}\n\n5:      vld1.8          {d4}, [r1], r2\n        vld1.8          {d5}, [r1], r2\n        pld             [r1]\n        subs            r3,  r3,  #2\n        vmull.u8        q8,  d4,  d0\n        vmull.u8        q9,  d5,  d0\n        pld             [r1, r2]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n        vrshrn.u16      d17, q9,  #6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:5", "text": "vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             4b\n\n        pop             {r4-r7, pc}\n\n5:      vld1.8          {d4}, [r1], r2\n        vld1.8          {d5}, [r1], r2\n        pld             [r1]\n        subs            r3,  r3,  #2\n        vmull.u8        q8,  d4,  d0\n        vmull.u8        q9,  d5,  d0\n        pld             [r1, r2]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n        vrshrn.u16      d17, q9,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vadd.u16        q9,  q9,  q11\n        vshrn.u16       d16, q8,  #6\n        vshrn.u16       d17, q9,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.8          {d20}, [lr,:64], r2\n        vld1.8          {d21}, [lr,:64], r2\n        vrhadd.u8       q8,  q8,  q10\n  .endif\n        vst1.8          {d16}, [r0,:64], r2\n        vst1.8          {d17}, [r0,:64], r2\n        bgt             5b\n\n        pop             {r4-r7, pc}\nendfunc\n.endm\n\n/* chroma_mc4(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h, int x, int y) */\n.macro  h264_chroma_mc4 type, codec=h264\nfunction ff_\\type\\()_\\codec\\()_chroma_mc4_neon, export=1\n        push            {r4-r7, lr}\n        ldrd            r4,  r5,  [sp, #20]\n  .ifc \\type,avg\n        mov             lr,  r0\n  .endif\n        pld             [r1]\n        pld             [r1, r2]\n\n  .ifc \\codec,rv40\n        movrel          r6,  rv40bias\n        lsr             r7,  r5,  #1\n        add             r6,  r6,  r7,  lsl #3\n        lsr             r7,  r4,  #1\n        add             r6,  r6,  r7,  lsl #1\n        vld1.16         {d22[],d23[]}, [r6,:16]\n  .endif\n  .ifc \\codec,vc1\n        vmov.u16        q11, #28", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:6", "text": ".macro  h264_chroma_mc4 type, codec=h264\nfunction ff_\\type\\()_\\codec\\()_chroma_mc4_neon, export=1\n        push            {r4-r7, lr}\n        ldrd            r4,  r5,  [sp, #20]\n  .ifc \\type,avg\n        mov             lr,  r0\n  .endif\n        pld             [r1]\n        pld             [r1, r2]\n\n  .ifc \\codec,rv40\n        movrel          r6,  rv40bias\n        lsr             r7,  r5,  #1\n        add             r6,  r6,  r7,  lsl #3\n        lsr             r7,  r4,  #1\n        add             r6,  r6,  r7,  lsl #1\n        vld1.16         {d22[],d23[]}, [r6,:16]\n  .endif\n  .ifc \\codec,vc1\n        vmov.u16        q11, #28\n  .endif\n\nA       muls            r7,  r4,  r5\nT       mul             r7,  r4,  r5\nT       cmp             r7,  #0\n        rsb             r6,  r7,  r5,  lsl #3\n        rsb             r12, r7,  r4,  lsl #3\n        sub             r4,  r7,  r4,  lsl #3\n        sub             r4,  r4,  r5,  lsl #3\n        add             r4,  r4,  #64\n\n        beq             2f\n\n        vdup.8          d0,  r4\n        vdup.8          d1,  r12\n        vld1.8          {d4},     [r1], r2\n        vdup.8          d2,  r6\n        vdup.8          d3,  r7\n\n        vext.8          d5,  d4,  d5,  #1\n        vtrn.32         d4,  d5\n\n        vtrn.32         d0,  d1\n        vtrn.32         d2,  d3\n\n1:      vld1.8          {d6},     [r1], r2\n        vext.8          d7,  d6,  d7,  #1\n        vtrn.32         d6,  d7\n        vmull.u8        q8,  d4,  d0\n        vmlal.u8        q8,  d6,  d2\n        vld1.8          {d4},     [r1], r2\n        vext.8          d5,  d4,  d5,  #1\n        vtrn.32         d4,  d5\n        pld             [r1]\n        vmull.u8        q9,  d6,  d0\n        vmlal.u8        q9,  d4,  d2\n        vadd.i16        d16, d16, d17\n        vadd.i16        d17, d18, d19\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:7", "text": "vtrn.32         d4,  d5\n\n        vtrn.32         d0,  d1\n        vtrn.32         d2,  d3\n\n1:      vld1.8          {d6},     [r1], r2\n        vext.8          d7,  d6,  d7,  #1\n        vtrn.32         d6,  d7\n        vmull.u8        q8,  d4,  d0\n        vmlal.u8        q8,  d6,  d2\n        vld1.8          {d4},     [r1], r2\n        vext.8          d5,  d4,  d5,  #1\n        vtrn.32         d4,  d5\n        pld             [r1]\n        vmull.u8        q9,  d6,  d0\n        vmlal.u8        q9,  d4,  d2\n        vadd.i16        d16, d16, d17\n        vadd.i16        d17, d18, d19\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vshrn.u16       d16, q8,  #6\n  .endif\n        subs            r3,  r3,  #2\n        pld             [r1, r2]\n  .ifc \\type,avg\n        vld1.32         {d20[0]}, [lr,:32], r2\n        vld1.32         {d20[1]}, [lr,:32], r2\n        vrhadd.u8       d16, d16, d20\n  .endif\n        vst1.32         {d16[0]}, [r0,:32], r2\n        vst1.32         {d16[1]}, [r0,:32], r2\n        bgt             1b\n\n        pop             {r4-r7, pc}\n\n2:      adds            r12, r12, r6\n        vdup.8          d0,  r4\n        beq             5f\n        tst             r6,  r6\n        vdup.8          d1,  r12\n        vtrn.32         d0,  d1\n\n        beq             4f\n\n        vext.32         d1,  d0,  d1,  #1\n        vld1.32         {d4[0]},  [r1], r2\n\n3:      vld1.32         {d4[1]},  [r1], r2\n        vmull.u8        q8,  d4,  d0\n        vld1.32         {d4[0]},  [r1], r2\n        vmull.u8        q9,  d4,  d1\n        vadd.i16        d16, d16, d17\n        vadd.i16        d17, d18, d19\n        pld             [r1]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n  .else\n        vadd.u16        q8,  q8,  q11", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:8", "text": "tst             r6,  r6\n        vdup.8          d1,  r12\n        vtrn.32         d0,  d1\n\n        beq             4f\n\n        vext.32         d1,  d0,  d1,  #1\n        vld1.32         {d4[0]},  [r1], r2\n\n3:      vld1.32         {d4[1]},  [r1], r2\n        vmull.u8        q8,  d4,  d0\n        vld1.32         {d4[0]},  [r1], r2\n        vmull.u8        q9,  d4,  d1\n        vadd.i16        d16, d16, d17\n        vadd.i16        d17, d18, d19\n        pld             [r1]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vshrn.u16       d16, q8,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.32         {d20[0]}, [lr,:32], r2\n        vld1.32         {d20[1]}, [lr,:32], r2\n        vrhadd.u8       d16, d16, d20\n  .endif\n        subs            r3,  r3,  #2\n        pld             [r1, r2]\n        vst1.32         {d16[0]}, [r0,:32], r2\n        vst1.32         {d16[1]}, [r0,:32], r2\n        bgt             3b\n\n        pop             {r4-r7, pc}\n\n4:      vld1.8          {d4},     [r1], r2\n        vld1.8          {d6},     [r1], r2\n        vext.8          d5,  d4,  d5,  #1\n        vext.8          d7,  d6,  d7,  #1\n        vtrn.32         d4,  d5\n        vtrn.32         d6,  d7\n        vmull.u8        q8,  d4,  d0\n        vmull.u8        q9,  d6,  d0\n        subs            r3,  r3,  #2\n        vadd.i16        d16, d16, d17\n        vadd.i16        d17, d18, d19\n        pld             [r1]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vshrn.u16       d16, q8,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.32         {d20[0]}, [lr,:32], r2\n        vld1.32         {d20[1]}, [lr,:32], r2\n        vrhadd.u8       d16, d16, d20\n  .endif\n        pld             [r1]\n        vst1.32         {d16[0]}, [r0,:32], r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:9", "text": "vtrn.32         d6,  d7\n        vmull.u8        q8,  d4,  d0\n        vmull.u8        q9,  d6,  d0\n        subs            r3,  r3,  #2\n        vadd.i16        d16, d16, d17\n        vadd.i16        d17, d18, d19\n        pld             [r1]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vshrn.u16       d16, q8,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.32         {d20[0]}, [lr,:32], r2\n        vld1.32         {d20[1]}, [lr,:32], r2\n        vrhadd.u8       d16, d16, d20\n  .endif\n        pld             [r1]\n        vst1.32         {d16[0]}, [r0,:32], r2\n        vst1.32         {d16[1]}, [r0,:32], r2\n        bgt             4b\n\n        pop             {r4-r7, pc}\n\n5:      vld1.32         {d4[0]},  [r1], r2\n        vld1.32         {d4[1]},  [r1], r2\n        vmull.u8        q8,  d4,  d0\n        subs            r3,  r3,  #2\n        pld             [r1]\n  .ifc \\codec,h264\n        vrshrn.u16      d16, q8,  #6\n  .else\n        vadd.u16        q8,  q8,  q11\n        vshrn.u16       d16, q8,  #6\n  .endif\n  .ifc \\type,avg\n        vld1.32         {d20[0]}, [lr,:32], r2\n        vld1.32         {d20[1]}, [lr,:32], r2\n        vrhadd.u8       d16, d16, d20\n  .endif\n        pld             [r1]\n        vst1.32         {d16[0]}, [r0,:32], r2\n        vst1.32         {d16[1]}, [r0,:32], r2\n        bgt             5b\n\n        pop             {r4-r7, pc}\nendfunc\n.endm\n\n.macro  h264_chroma_mc2 type\nfunction ff_\\type\\()_h264_chroma_mc2_neon, export=1\n        push            {r4-r6, lr}\n        ldr             r4,  [sp, #16]\n        ldr             lr,  [sp, #20]\n        pld             [r1]\n        pld             [r1, r2]\n        orrs            r5,  r4,  lr\n        beq             2f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:10", "text": ".endif\n        pld             [r1]\n        vst1.32         {d16[0]}, [r0,:32], r2\n        vst1.32         {d16[1]}, [r0,:32], r2\n        bgt             5b\n\n        pop             {r4-r7, pc}\nendfunc\n.endm\n\n.macro  h264_chroma_mc2 type\nfunction ff_\\type\\()_h264_chroma_mc2_neon, export=1\n        push            {r4-r6, lr}\n        ldr             r4,  [sp, #16]\n        ldr             lr,  [sp, #20]\n        pld             [r1]\n        pld             [r1, r2]\n        orrs            r5,  r4,  lr\n        beq             2f\n\n        mul             r5,  r4,  lr\n        rsb             r6,  r5,  lr,  lsl #3\n        rsb             r12, r5,  r4,  lsl #3\n        sub             r4,  r5,  r4,  lsl #3\n        sub             r4,  r4,  lr,  lsl #3\n        add             r4,  r4,  #64\n        vdup.8          d0,  r4\n        vdup.8          d2,  r12\n        vdup.8          d1,  r6\n        vdup.8          d3,  r5\n        vtrn.16         q0,  q1\n1:\n        vld1.32         {d4[0]},  [r1], r2\n        vld1.32         {d4[1]},  [r1], r2\n        vrev64.32       d5,  d4\n        vld1.32         {d5[1]},  [r1]\n        vext.8          q3,  q2,  q2,  #1\n        vtrn.16         q2,  q3\n        vmull.u8        q8,  d4,  d0\n        vmlal.u8        q8,  d5,  d1\n  .ifc \\type,avg\n        vld1.16         {d18[0]}, [r0,:16], r2\n        vld1.16         {d18[1]}, [r0,:16]\n        sub             r0,  r0,  r2\n  .endif\n        vtrn.32         d16, d17\n        vadd.i16        d16, d16, d17\n        vrshrn.u16      d16, q8,  #6\n  .ifc \\type,avg\n        vrhadd.u8       d16, d16, d18\n  .endif\n        vst1.16         {d16[0]}, [r0,:16], r2\n        vst1.16         {d16[1]}, [r0,:16], r2\n        subs            r3,  r3,  #2\n        bgt             1b\n        pop             {r4-r6, pc}\n2:\n  .ifc \\type,put\n        ldrh_post       r5,  r1,  r2\n        strh_post       r5,  r0,  r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:11", "text": ".ifc \\type,avg\n        vld1.16         {d18[0]}, [r0,:16], r2\n        vld1.16         {d18[1]}, [r0,:16]\n        sub             r0,  r0,  r2\n  .endif\n        vtrn.32         d16, d17\n        vadd.i16        d16, d16, d17\n        vrshrn.u16      d16, q8,  #6\n  .ifc \\type,avg\n        vrhadd.u8       d16, d16, d18\n  .endif\n        vst1.16         {d16[0]}, [r0,:16], r2\n        vst1.16         {d16[1]}, [r0,:16], r2\n        subs            r3,  r3,  #2\n        bgt             1b\n        pop             {r4-r6, pc}\n2:\n  .ifc \\type,put\n        ldrh_post       r5,  r1,  r2\n        strh_post       r5,  r0,  r2\n        ldrh_post       r6,  r1,  r2\n        strh_post       r6,  r0,  r2\n  .else\n        vld1.16         {d16[0]}, [r1], r2\n        vld1.16         {d16[1]}, [r1], r2\n        vld1.16         {d18[0]}, [r0,:16], r2\n        vld1.16         {d18[1]}, [r0,:16]\n        sub             r0,  r0,  r2\n        vrhadd.u8       d16, d16, d18\n        vst1.16         {d16[0]}, [r0,:16], r2\n        vst1.16         {d16[1]}, [r0,:16], r2\n  .endif\n        subs            r3,  r3,  #2\n        bgt             2b\n        pop             {r4-r6, pc}\nendfunc\n.endm\n\n        h264_chroma_mc8 put\n        h264_chroma_mc8 avg\n        h264_chroma_mc4 put\n        h264_chroma_mc4 avg\n        h264_chroma_mc2 put\n        h264_chroma_mc2 avg\n\n#if CONFIG_RV40_DECODER\nconst   rv40bias\n        .short           0, 16, 32, 16\n        .short          32, 28, 32, 28\n        .short           0, 32, 16, 32\n        .short          32, 28, 32, 28\nendconst\n\n        h264_chroma_mc8 put, rv40\n        h264_chroma_mc8 avg, rv40\n        h264_chroma_mc4 put, rv40\n        h264_chroma_mc4 avg, rv40\n#endif\n\n#if CONFIG_VC1DSP", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264cmc_neon.S:12", "text": "h264_chroma_mc4 put\n        h264_chroma_mc4 avg\n        h264_chroma_mc2 put\n        h264_chroma_mc2 avg\n\n#if CONFIG_RV40_DECODER\nconst   rv40bias\n        .short           0, 16, 32, 16\n        .short          32, 28, 32, 28\n        .short           0, 32, 16, 32\n        .short          32, 28, 32, 28\nendconst\n\n        h264_chroma_mc8 put, rv40\n        h264_chroma_mc8 avg, rv40\n        h264_chroma_mc4 put, rv40\n        h264_chroma_mc4 avg, rv40\n#endif\n\n#if CONFIG_VC1DSP\n        h264_chroma_mc8 put, vc1\n        h264_chroma_mc8 avg, vc1\n        h264_chroma_mc4 put, vc1\n        h264_chroma_mc4 avg, vc1\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264cmc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264cmc_neon.S", "line_start": 441, "line_end": 465}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n        /* H.264 loop filter */\n\n.macro  h264_loop_filter_start\n        ldr             r12, [sp]\n        tst             r2,  r2\n        ldr             r12, [r12]\n        it              ne\n        tstne           r3,  r3\n        vmov.32         d24[0], r12\n        and             r12, r12, r12, lsl #16\n        it              eq\n        bxeq            lr\n        ands            r12, r12, r12, lsl #8\n        it              lt\n        bxlt            lr\n.endm\n\n.macro  h264_loop_filter_luma\n        vdup.8          q11, r2         @ alpha\n        vmovl.u8        q12, d24\n        vabd.u8         q6,  q8,  q0    @ abs(p0 - q0)\n        vmovl.u16       q12, d24\n        vabd.u8         q14, q9,  q8    @ abs(p1 - p0)\n        vsli.16         q12, q12, #8\n        vabd.u8         q15, q1,  q0    @ abs(q1 - q0)\n        vsli.32         q12, q12, #16\n        vclt.u8         q6,  q6,  q11   @ < alpha\n        vdup.8          q11, r3         @ beta\n        vclt.s8         q7,  q12, #0\n        vclt.u8         q14, q14, q11   @ < beta\n        vclt.u8         q15, q15, q11   @ < beta\n        vbic            q6,  q6,  q7\n        vabd.u8         q4,  q10, q8    @ abs(p2 - p0)\n        vand            q6,  q6,  q14\n        vabd.u8         q5,  q2,  q0    @ abs(q2 - q0)\n        vclt.u8         q4,  q4,  q11   @ < beta\n        vand            q6,  q6,  q15", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:2", "text": ".macro  h264_loop_filter_luma\n        vdup.8          q11, r2         @ alpha\n        vmovl.u8        q12, d24\n        vabd.u8         q6,  q8,  q0    @ abs(p0 - q0)\n        vmovl.u16       q12, d24\n        vabd.u8         q14, q9,  q8    @ abs(p1 - p0)\n        vsli.16         q12, q12, #8\n        vabd.u8         q15, q1,  q0    @ abs(q1 - q0)\n        vsli.32         q12, q12, #16\n        vclt.u8         q6,  q6,  q11   @ < alpha\n        vdup.8          q11, r3         @ beta\n        vclt.s8         q7,  q12, #0\n        vclt.u8         q14, q14, q11   @ < beta\n        vclt.u8         q15, q15, q11   @ < beta\n        vbic            q6,  q6,  q7\n        vabd.u8         q4,  q10, q8    @ abs(p2 - p0)\n        vand            q6,  q6,  q14\n        vabd.u8         q5,  q2,  q0    @ abs(q2 - q0)\n        vclt.u8         q4,  q4,  q11   @ < beta\n        vand            q6,  q6,  q15\n        vclt.u8         q5,  q5,  q11   @ < beta\n        vand            q4,  q4,  q6\n        vand            q5,  q5,  q6\n        vand            q12, q12, q6\n        vrhadd.u8       q14, q8,  q0\n        vsub.i8         q6,  q12, q4\n        vqadd.u8        q7,  q9,  q12\n        vhadd.u8        q10, q10, q14\n        vsub.i8         q6,  q6,  q5\n        vhadd.u8        q14, q2,  q14\n        vmin.u8         q7,  q7,  q10\n        vqsub.u8        q11, q9,  q12\n        vqadd.u8        q2,  q1,  q12\n        vmax.u8         q7,  q7,  q11\n        vqsub.u8        q11, q1,  q12\n        vmin.u8         q14, q2,  q14\n        vmovl.u8        q2,  d0\n        vmax.u8         q14, q14, q11\n        vmovl.u8        q10, d1\n        vsubw.u8        q2,  q2,  d16\n        vsubw.u8        q10, q10, d17\n        vshl.i16        q2,  q2,  #2\n        vshl.i16        q10, q10, #2\n        vaddw.u8        q2,  q2,  d18\n        vaddw.u8        q10, q10, d19\n        vsubw.u8        q2,  q2,  d2\n        vsubw.u8        q10, q10, d3\n        vrshrn.i16      d4,  q2,  #3\n        vrshrn.i16      d5,  q10, #3\n        vbsl            q4,  q7,  q9\n        vbsl            q5,  q14, q1\n        vneg.s8         q7,  q6\n        vmovl.u8        q14, d16\n        vmin.s8         q2,  q2,  q6\n        vmovl.u8        q6,  d17\n        vmax.s8         q2,  q2,  q7\n        vmovl.u8        q11, d0\n        vmovl.u8        q12, d1\n        vaddw.s8        q14, q14, d4\n        vaddw.s8        q6,  q6,  d5", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:3", "text": "vsubw.u8        q10, q10, d17\n        vshl.i16        q2,  q2,  #2\n        vshl.i16        q10, q10, #2\n        vaddw.u8        q2,  q2,  d18\n        vaddw.u8        q10, q10, d19\n        vsubw.u8        q2,  q2,  d2\n        vsubw.u8        q10, q10, d3\n        vrshrn.i16      d4,  q2,  #3\n        vrshrn.i16      d5,  q10, #3\n        vbsl            q4,  q7,  q9\n        vbsl            q5,  q14, q1\n        vneg.s8         q7,  q6\n        vmovl.u8        q14, d16\n        vmin.s8         q2,  q2,  q6\n        vmovl.u8        q6,  d17\n        vmax.s8         q2,  q2,  q7\n        vmovl.u8        q11, d0\n        vmovl.u8        q12, d1\n        vaddw.s8        q14, q14, d4\n        vaddw.s8        q6,  q6,  d5\n        vsubw.s8        q11, q11, d4\n        vsubw.s8        q12, q12, d5\n        vqmovun.s16     d16, q14\n        vqmovun.s16     d17, q6\n        vqmovun.s16     d0,  q11\n        vqmovun.s16     d1,  q12\n.endm\n\nfunction ff_h264_v_loop_filter_luma_neon, export=1\n        h264_loop_filter_start\n\n        vld1.8          {d0, d1},  [r0,:128], r1\n        vld1.8          {d2, d3},  [r0,:128], r1\n        vld1.8          {d4, d5},  [r0,:128], r1\n        sub             r0,  r0,  r1, lsl #2\n        sub             r0,  r0,  r1, lsl #1\n        vld1.8          {d20,d21}, [r0,:128], r1\n        vld1.8          {d18,d19}, [r0,:128], r1\n        vld1.8          {d16,d17}, [r0,:128], r1\n\n        vpush           {d8-d15}\n\n        h264_loop_filter_luma\n\n        sub             r0,  r0,  r1, lsl #1\n        vst1.8          {d8, d9},  [r0,:128], r1\n        vst1.8          {d16,d17}, [r0,:128], r1\n        vst1.8          {d0, d1},  [r0,:128], r1\n        vst1.8          {d10,d11}, [r0,:128]\n\n        vpop            {d8-d15}\n        bx              lr\nendfunc\n\nfunction ff_h264_h_loop_filter_luma_neon, export=1\n        h264_loop_filter_start\n\n        sub             r0,  r0,  #4\n        vld1.8          {d6},  [r0], r1\n        vld1.8          {d20}, [r0], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:4", "text": "vpush           {d8-d15}\n\n        h264_loop_filter_luma\n\n        sub             r0,  r0,  r1, lsl #1\n        vst1.8          {d8, d9},  [r0,:128], r1\n        vst1.8          {d16,d17}, [r0,:128], r1\n        vst1.8          {d0, d1},  [r0,:128], r1\n        vst1.8          {d10,d11}, [r0,:128]\n\n        vpop            {d8-d15}\n        bx              lr\nendfunc\n\nfunction ff_h264_h_loop_filter_luma_neon, export=1\n        h264_loop_filter_start\n\n        sub             r0,  r0,  #4\n        vld1.8          {d6},  [r0], r1\n        vld1.8          {d20}, [r0], r1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d16}, [r0], r1\n        vld1.8          {d0},  [r0], r1\n        vld1.8          {d2},  [r0], r1\n        vld1.8          {d4},  [r0], r1\n        vld1.8          {d26}, [r0], r1\n        vld1.8          {d7},  [r0], r1\n        vld1.8          {d21}, [r0], r1\n        vld1.8          {d19}, [r0], r1\n        vld1.8          {d17}, [r0], r1\n        vld1.8          {d1},  [r0], r1\n        vld1.8          {d3},  [r0], r1\n        vld1.8          {d5},  [r0], r1\n        vld1.8          {d27}, [r0], r1\n\n        transpose_8x8   q3, q10, q9, q8, q0, q1, q2, q13\n\n        vpush           {d8-d15}\n\n        h264_loop_filter_luma\n\n        transpose_4x4   q4, q8, q0, q5\n\n        sub             r0,  r0,  r1, lsl #4\n        add             r0,  r0,  #2\n        vst1.32         {d8[0]},  [r0], r1\n        vst1.32         {d16[0]}, [r0], r1\n        vst1.32         {d0[0]},  [r0], r1\n        vst1.32         {d10[0]}, [r0], r1\n        vst1.32         {d8[1]},  [r0], r1\n        vst1.32         {d16[1]}, [r0], r1\n        vst1.32         {d0[1]},  [r0], r1\n        vst1.32         {d10[1]}, [r0], r1\n        vst1.32         {d9[0]},  [r0], r1\n        vst1.32         {d17[0]}, [r0], r1\n        vst1.32         {d1[0]},  [r0], r1\n        vst1.32         {d11[0]}, [r0], r1\n        vst1.32         {d9[1]},  [r0], r1\n        vst1.32         {d17[1]}, [r0], r1\n        vst1.32         {d1[1]},  [r0], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:5", "text": "transpose_4x4   q4, q8, q0, q5\n\n        sub             r0,  r0,  r1, lsl #4\n        add             r0,  r0,  #2\n        vst1.32         {d8[0]},  [r0], r1\n        vst1.32         {d16[0]}, [r0], r1\n        vst1.32         {d0[0]},  [r0], r1\n        vst1.32         {d10[0]}, [r0], r1\n        vst1.32         {d8[1]},  [r0], r1\n        vst1.32         {d16[1]}, [r0], r1\n        vst1.32         {d0[1]},  [r0], r1\n        vst1.32         {d10[1]}, [r0], r1\n        vst1.32         {d9[0]},  [r0], r1\n        vst1.32         {d17[0]}, [r0], r1\n        vst1.32         {d1[0]},  [r0], r1\n        vst1.32         {d11[0]}, [r0], r1\n        vst1.32         {d9[1]},  [r0], r1\n        vst1.32         {d17[1]}, [r0], r1\n        vst1.32         {d1[1]},  [r0], r1\n        vst1.32         {d11[1]}, [r0], r1\n\n        vpop            {d8-d15}\n        bx              lr\nendfunc\n\n.macro  h264_loop_filter_chroma\n        vdup.8          d22, r2         @ alpha\n        vmovl.u8        q12, d24\n        vabd.u8         d26, d16, d0    @ abs(p0 - q0)\n        vmovl.u8        q2,  d0\n        vabd.u8         d28, d18, d16   @ abs(p1 - p0)\n        vsubw.u8        q2,  q2,  d16\n        vsli.16         d24, d24, #8\n        vshl.i16        q2,  q2,  #2\n        vabd.u8         d30, d2,  d0    @ abs(q1 - q0)\n        vaddw.u8        q2,  q2,  d18\n        vclt.u8         d26, d26, d22   @ < alpha\n        vsubw.u8        q2,  q2,  d2\n        vdup.8          d22, r3         @ beta\n        vrshrn.i16      d4,  q2,  #3\n        vclt.u8         d28, d28, d22   @ < beta\n        vclt.u8         d30, d30, d22   @ < beta\n        vmin.s8         d4,  d4,  d24\n        vneg.s8         d25, d24\n        vand            d26, d26, d28\n        vmax.s8         d4,  d4,  d25\n        vand            d26, d26, d30\n        vmovl.u8        q11, d0\n        vand            d4,  d4,  d26\n        vmovl.u8        q14, d16\n        vaddw.s8        q14, q14, d4\n        vsubw.s8        q11, q11, d4\n        vqmovun.s16     d16, q14\n        vqmovun.s16     d0,  q11\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_neon, export=1\n        h264_loop_filter_start", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:6", "text": "vrshrn.i16      d4,  q2,  #3\n        vclt.u8         d28, d28, d22   @ < beta\n        vclt.u8         d30, d30, d22   @ < beta\n        vmin.s8         d4,  d4,  d24\n        vneg.s8         d25, d24\n        vand            d26, d26, d28\n        vmax.s8         d4,  d4,  d25\n        vand            d26, d26, d30\n        vmovl.u8        q11, d0\n        vand            d4,  d4,  d26\n        vmovl.u8        q14, d16\n        vaddw.s8        q14, q14, d4\n        vsubw.s8        q11, q11, d4\n        vqmovun.s16     d16, q14\n        vqmovun.s16     d0,  q11\n.endm\n\nfunction ff_h264_v_loop_filter_chroma_neon, export=1\n        h264_loop_filter_start\n\n        sub             r0,  r0,  r1, lsl #1\n        vld1.8          {d18}, [r0,:64], r1\n        vld1.8          {d16}, [r0,:64], r1\n        vld1.8          {d0},  [r0,:64], r1\n        vld1.8          {d2},  [r0,:64]\n\n        h264_loop_filter_chroma\n\n        sub             r0,  r0,  r1, lsl #1\n        vst1.8          {d16}, [r0,:64], r1\n        vst1.8          {d0},  [r0,:64], r1\n\n        bx              lr\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma_neon, export=1\n        h264_loop_filter_start\n\n        sub             r0,  r0,  #2\nh_loop_filter_chroma420:\n        vld1.32         {d18[0]}, [r0], r1\n        vld1.32         {d16[0]}, [r0], r1\n        vld1.32         {d0[0]},  [r0], r1\n        vld1.32         {d2[0]},  [r0], r1\n        vld1.32         {d18[1]}, [r0], r1\n        vld1.32         {d16[1]}, [r0], r1\n        vld1.32         {d0[1]},  [r0], r1\n        vld1.32         {d2[1]},  [r0], r1\n\n        vtrn.16         d18, d0\n        vtrn.16         d16, d2\n        vtrn.8          d18, d16\n        vtrn.8          d0,  d2\n\n        h264_loop_filter_chroma\n\n        vtrn.16         d18, d0\n        vtrn.16         d16, d2\n        vtrn.8          d18, d16\n        vtrn.8          d0,  d2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:7", "text": "vld1.32         {d18[0]}, [r0], r1\n        vld1.32         {d16[0]}, [r0], r1\n        vld1.32         {d0[0]},  [r0], r1\n        vld1.32         {d2[0]},  [r0], r1\n        vld1.32         {d18[1]}, [r0], r1\n        vld1.32         {d16[1]}, [r0], r1\n        vld1.32         {d0[1]},  [r0], r1\n        vld1.32         {d2[1]},  [r0], r1\n\n        vtrn.16         d18, d0\n        vtrn.16         d16, d2\n        vtrn.8          d18, d16\n        vtrn.8          d0,  d2\n\n        h264_loop_filter_chroma\n\n        vtrn.16         d18, d0\n        vtrn.16         d16, d2\n        vtrn.8          d18, d16\n        vtrn.8          d0,  d2\n\n        sub             r0,  r0,  r1, lsl #3\n        vst1.32         {d18[0]}, [r0], r1\n        vst1.32         {d16[0]}, [r0], r1\n        vst1.32         {d0[0]},  [r0], r1\n        vst1.32         {d2[0]},  [r0], r1\n        vst1.32         {d18[1]}, [r0], r1\n        vst1.32         {d16[1]}, [r0], r1\n        vst1.32         {d0[1]},  [r0], r1\n        vst1.32         {d2[1]},  [r0], r1\n\n        bx              lr\nendfunc\n\nfunction ff_h264_h_loop_filter_chroma422_neon, export=1\n        h264_loop_filter_start\n        push            {r4, lr}\n        add             r4,  r0,  r1\n        add             r1,  r1,  r1\n        sub             r0,  r0,  #2\n\n        bl              h_loop_filter_chroma420\n\n        ldr             r12, [sp, #8]\n        ldr             r12, [r12]\n        vmov.32         d24[0], r12\n        sub             r0,  r4,  #2\n\n        bl              h_loop_filter_chroma420\n        pop             {r4, pc}\nendfunc\n\n@ Biweighted prediction\n\n.macro  biweight_16     macs, macd\n        vdup.8          d0,  r4\n        vdup.8          d1,  r5\n        vmov            q2,  q8\n        vmov            q3,  q8\n1:      subs            r3,  r3,  #2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:8", "text": "bl              h_loop_filter_chroma420\n\n        ldr             r12, [sp, #8]\n        ldr             r12, [r12]\n        vmov.32         d24[0], r12\n        sub             r0,  r4,  #2\n\n        bl              h_loop_filter_chroma420\n        pop             {r4, pc}\nendfunc\n\n@ Biweighted prediction\n\n.macro  biweight_16     macs, macd\n        vdup.8          d0,  r4\n        vdup.8          d1,  r5\n        vmov            q2,  q8\n        vmov            q3,  q8\n1:      subs            r3,  r3,  #2\n        vld1.8          {d20-d21},[r0,:128], r2\n        \\macd           q2,  d0,  d20\n        pld             [r0]\n        \\macd           q3,  d0,  d21\n        vld1.8          {d22-d23},[r1,:128], r2\n        \\macs           q2,  d1,  d22\n        pld             [r1]\n        \\macs           q3,  d1,  d23\n        vmov            q12, q8\n        vld1.8          {d28-d29},[r0,:128], r2\n        vmov            q13, q8\n        \\macd           q12, d0,  d28\n        pld             [r0]\n        \\macd           q13, d0,  d29\n        vld1.8          {d30-d31},[r1,:128], r2\n        \\macs           q12, d1,  d30\n        pld             [r1]\n        \\macs           q13, d1,  d31\n        vshl.s16        q2,  q2,  q9\n        vshl.s16        q3,  q3,  q9\n        vqmovun.s16     d4,  q2\n        vqmovun.s16     d5,  q3\n        vshl.s16        q12, q12, q9\n        vshl.s16        q13, q13, q9\n        vqmovun.s16     d24, q12\n        vqmovun.s16     d25, q13\n        vmov            q3,  q8\n        vst1.8          {d4- d5}, [r6,:128], r2\n        vmov            q2,  q8\n        vst1.8          {d24-d25},[r6,:128], r2\n        bne             1b\n        pop             {r4-r6, pc}\n.endm\n\n.macro  biweight_8      macs, macd\n        vdup.8          d0,  r4\n        vdup.8          d1,  r5\n        vmov            q1,  q8\n        vmov            q10, q8\n1:      subs            r3,  r3,  #2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:9", "text": "vqmovun.s16     d4,  q2\n        vqmovun.s16     d5,  q3\n        vshl.s16        q12, q12, q9\n        vshl.s16        q13, q13, q9\n        vqmovun.s16     d24, q12\n        vqmovun.s16     d25, q13\n        vmov            q3,  q8\n        vst1.8          {d4- d5}, [r6,:128], r2\n        vmov            q2,  q8\n        vst1.8          {d24-d25},[r6,:128], r2\n        bne             1b\n        pop             {r4-r6, pc}\n.endm\n\n.macro  biweight_8      macs, macd\n        vdup.8          d0,  r4\n        vdup.8          d1,  r5\n        vmov            q1,  q8\n        vmov            q10, q8\n1:      subs            r3,  r3,  #2\n        vld1.8          {d4},[r0,:64], r2\n        \\macd           q1,  d0,  d4\n        pld             [r0]\n        vld1.8          {d5},[r1,:64], r2\n        \\macs           q1,  d1,  d5\n        pld             [r1]\n        vld1.8          {d6},[r0,:64], r2\n        \\macd           q10, d0,  d6\n        pld             [r0]\n        vld1.8          {d7},[r1,:64], r2\n        \\macs           q10, d1,  d7\n        pld             [r1]\n        vshl.s16        q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        vshl.s16        q10, q10, q9\n        vqmovun.s16     d4,  q10\n        vmov            q10, q8\n        vst1.8          {d2},[r6,:64], r2\n        vmov            q1,  q8\n        vst1.8          {d4},[r6,:64], r2\n        bne             1b\n        pop             {r4-r6, pc}\n.endm\n\n.macro  biweight_4      macs, macd\n        vdup.8          d0,  r4\n        vdup.8          d1,  r5\n        vmov            q1,  q8\n        vmov            q10, q8\n1:      subs            r3,  r3,  #4\n        vld1.32         {d4[0]},[r0,:32], r2\n        vld1.32         {d4[1]},[r0,:32], r2\n        \\macd           q1,  d0,  d4\n        pld             [r0]\n        vld1.32         {d5[0]},[r1,:32], r2\n        vld1.32         {d5[1]},[r1,:32], r2\n        \\macs           q1,  d1,  d5\n        pld             [r1]\n        blt             2f\n        vld1.32         {d6[0]},[r0,:32], r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:10", "text": "bne             1b\n        pop             {r4-r6, pc}\n.endm\n\n.macro  biweight_4      macs, macd\n        vdup.8          d0,  r4\n        vdup.8          d1,  r5\n        vmov            q1,  q8\n        vmov            q10, q8\n1:      subs            r3,  r3,  #4\n        vld1.32         {d4[0]},[r0,:32], r2\n        vld1.32         {d4[1]},[r0,:32], r2\n        \\macd           q1,  d0,  d4\n        pld             [r0]\n        vld1.32         {d5[0]},[r1,:32], r2\n        vld1.32         {d5[1]},[r1,:32], r2\n        \\macs           q1,  d1,  d5\n        pld             [r1]\n        blt             2f\n        vld1.32         {d6[0]},[r0,:32], r2\n        vld1.32         {d6[1]},[r0,:32], r2\n        \\macd           q10, d0,  d6\n        pld             [r0]\n        vld1.32         {d7[0]},[r1,:32], r2\n        vld1.32         {d7[1]},[r1,:32], r2\n        \\macs           q10, d1,  d7\n        pld             [r1]\n        vshl.s16        q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        vshl.s16        q10, q10, q9\n        vqmovun.s16     d4,  q10\n        vmov            q10, q8\n        vst1.32         {d2[0]},[r6,:32], r2\n        vst1.32         {d2[1]},[r6,:32], r2\n        vmov            q1,  q8\n        vst1.32         {d4[0]},[r6,:32], r2\n        vst1.32         {d4[1]},[r6,:32], r2\n        bne             1b\n        pop             {r4-r6, pc}\n2:      vshl.s16        q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        vst1.32         {d2[0]},[r6,:32], r2\n        vst1.32         {d2[1]},[r6,:32], r2\n        pop             {r4-r6, pc}\n.endm\n\n.macro  biweight_func   w\nfunction ff_biweight_h264_pixels_\\w\\()_neon, export=1\n        push            {r4-r6, lr}\n        ldr             r12, [sp, #16]\n        add             r4,  sp,  #20\n        ldm             r4,  {r4-r6}\n        lsr             lr,  r4,  #31\n        add             r6,  r6,  #1\n        eors            lr,  lr,  r5,  lsr #30\n        orr             r6,  r6,  #1\n        vdup.16         q9,  r12\n        lsl             r6,  r6,  r12\n        vmvn            q9,  q9\n        vdup.16         q8,  r6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:11", "text": "vqmovun.s16     d2,  q1\n        vst1.32         {d2[0]},[r6,:32], r2\n        vst1.32         {d2[1]},[r6,:32], r2\n        pop             {r4-r6, pc}\n.endm\n\n.macro  biweight_func   w\nfunction ff_biweight_h264_pixels_\\w\\()_neon, export=1\n        push            {r4-r6, lr}\n        ldr             r12, [sp, #16]\n        add             r4,  sp,  #20\n        ldm             r4,  {r4-r6}\n        lsr             lr,  r4,  #31\n        add             r6,  r6,  #1\n        eors            lr,  lr,  r5,  lsr #30\n        orr             r6,  r6,  #1\n        vdup.16         q9,  r12\n        lsl             r6,  r6,  r12\n        vmvn            q9,  q9\n        vdup.16         q8,  r6\n        mov             r6,  r0\n        beq             10f\n        subs            lr,  lr,  #1\n        beq             20f\n        subs            lr,  lr,  #1\n        beq             30f\n        b               40f\n10:     biweight_\\w     vmlal.u8, vmlal.u8\n20:     rsb             r4,  r4,  #0\n        biweight_\\w     vmlal.u8, vmlsl.u8\n30:     rsb             r4,  r4,  #0\n        rsb             r5,  r5,  #0\n        biweight_\\w     vmlsl.u8, vmlsl.u8\n40:     rsb             r5,  r5,  #0\n        biweight_\\w     vmlsl.u8, vmlal.u8\nendfunc\n.endm\n\n        biweight_func   16\n        biweight_func   8\n        biweight_func   4\n\n@ Weighted prediction\n\n.macro  weight_16       add\n        vdup.8          d0,  r12\n1:      subs            r2,  r2,  #2\n        vld1.8          {d20-d21},[r0,:128], r1\n        vmull.u8        q2,  d0,  d20\n        pld             [r0]\n        vmull.u8        q3,  d0,  d21\n        vld1.8          {d28-d29},[r0,:128], r1\n        vmull.u8        q12, d0,  d28\n        pld             [r0]\n        vmull.u8        q13, d0,  d29\n        \\add            q2,  q8,  q2\n        vrshl.s16       q2,  q2,  q9\n        \\add            q3,  q8,  q3\n        vrshl.s16       q3,  q3,  q9\n        vqmovun.s16     d4,  q2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:12", "text": "biweight_func   4\n\n@ Weighted prediction\n\n.macro  weight_16       add\n        vdup.8          d0,  r12\n1:      subs            r2,  r2,  #2\n        vld1.8          {d20-d21},[r0,:128], r1\n        vmull.u8        q2,  d0,  d20\n        pld             [r0]\n        vmull.u8        q3,  d0,  d21\n        vld1.8          {d28-d29},[r0,:128], r1\n        vmull.u8        q12, d0,  d28\n        pld             [r0]\n        vmull.u8        q13, d0,  d29\n        \\add            q2,  q8,  q2\n        vrshl.s16       q2,  q2,  q9\n        \\add            q3,  q8,  q3\n        vrshl.s16       q3,  q3,  q9\n        vqmovun.s16     d4,  q2\n        vqmovun.s16     d5,  q3\n        \\add            q12, q8,  q12\n        vrshl.s16       q12, q12, q9\n        \\add            q13, q8,  q13\n        vrshl.s16       q13, q13, q9\n        vqmovun.s16     d24, q12\n        vqmovun.s16     d25, q13\n        vst1.8          {d4- d5}, [r4,:128], r1\n        vst1.8          {d24-d25},[r4,:128], r1\n        bne             1b\n        pop             {r4, pc}\n.endm\n\n.macro  weight_8        add\n        vdup.8          d0,  r12\n1:      subs            r2,  r2,  #2\n        vld1.8          {d4},[r0,:64], r1\n        vmull.u8        q1,  d0,  d4\n        pld             [r0]\n        vld1.8          {d6},[r0,:64], r1\n        vmull.u8        q10, d0,  d6\n        \\add            q1,  q8,  q1\n        pld             [r0]\n        vrshl.s16       q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        \\add            q10, q8,  q10\n        vrshl.s16       q10, q10, q9\n        vqmovun.s16     d4,  q10\n        vst1.8          {d2},[r4,:64], r1\n        vst1.8          {d4},[r4,:64], r1\n        bne             1b\n        pop             {r4, pc}\n.endm\n\n.macro  weight_4        add\n        vdup.8          d0,  r12\n        vmov            q1,  q8\n        vmov            q10, q8\n1:      subs            r2,  r2,  #4\n        vld1.32         {d4[0]},[r0,:32], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:13", "text": "vmull.u8        q10, d0,  d6\n        \\add            q1,  q8,  q1\n        pld             [r0]\n        vrshl.s16       q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        \\add            q10, q8,  q10\n        vrshl.s16       q10, q10, q9\n        vqmovun.s16     d4,  q10\n        vst1.8          {d2},[r4,:64], r1\n        vst1.8          {d4},[r4,:64], r1\n        bne             1b\n        pop             {r4, pc}\n.endm\n\n.macro  weight_4        add\n        vdup.8          d0,  r12\n        vmov            q1,  q8\n        vmov            q10, q8\n1:      subs            r2,  r2,  #4\n        vld1.32         {d4[0]},[r0,:32], r1\n        vld1.32         {d4[1]},[r0,:32], r1\n        vmull.u8        q1,  d0,  d4\n        pld             [r0]\n        blt             2f\n        vld1.32         {d6[0]},[r0,:32], r1\n        vld1.32         {d6[1]},[r0,:32], r1\n        vmull.u8        q10, d0,  d6\n        pld             [r0]\n        \\add            q1,  q8,  q1\n        vrshl.s16       q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        \\add            q10, q8,  q10\n        vrshl.s16       q10, q10, q9\n        vqmovun.s16     d4,  q10\n        vmov            q10, q8\n        vst1.32         {d2[0]},[r4,:32], r1\n        vst1.32         {d2[1]},[r4,:32], r1\n        vmov            q1,  q8\n        vst1.32         {d4[0]},[r4,:32], r1\n        vst1.32         {d4[1]},[r4,:32], r1\n        bne             1b\n        pop             {r4, pc}\n2:      \\add            q1,  q8,  q1\n        vrshl.s16       q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        vst1.32         {d2[0]},[r4,:32], r1\n        vst1.32         {d2[1]},[r4,:32], r1\n        pop             {r4, pc}\n.endm\n\n.macro  weight_func     w\nfunction ff_weight_h264_pixels_\\w\\()_neon, export=1\n        push            {r4, lr}\n        ldr             r12, [sp, #8]\n        ldr             r4,  [sp, #12]\n        cmp             r3,  #1\n        lsl             r4,  r4,  r3\n        vdup.16         q8,  r4\n        mov             r4,  r0\n        ble             20f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264dsp_neon.S:14", "text": "bne             1b\n        pop             {r4, pc}\n2:      \\add            q1,  q8,  q1\n        vrshl.s16       q1,  q1,  q9\n        vqmovun.s16     d2,  q1\n        vst1.32         {d2[0]},[r4,:32], r1\n        vst1.32         {d2[1]},[r4,:32], r1\n        pop             {r4, pc}\n.endm\n\n.macro  weight_func     w\nfunction ff_weight_h264_pixels_\\w\\()_neon, export=1\n        push            {r4, lr}\n        ldr             r12, [sp, #8]\n        ldr             r4,  [sp, #12]\n        cmp             r3,  #1\n        lsl             r4,  r4,  r3\n        vdup.16         q8,  r4\n        mov             r4,  r0\n        ble             20f\n        rsb             lr,  r3,  #1\n        vdup.16         q9,  lr\n        cmp             r12, #0\n        blt             10f\n        weight_\\w       vhadd.s16\n10:     rsb             r12, r12, #0\n        weight_\\w       vhsub.s16\n20:     rsb             lr,  r3,  #0\n        vdup.16         q9,  lr\n        cmp             r12, #0\n        blt             10f\n        weight_\\w       vadd.s16\n10:     rsb             r12, r12, #0\n        weight_\\w       vsub.s16\nendfunc\n.endm\n\n        weight_func     16\n        weight_func     8\n        weight_func     4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264dsp_neon.S", "line_start": 521, "line_end": 560}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_h264_idct_add_neon, export=1\nh264_idct_add_neon_nothumb:\n        vld1.64         {d0-d3},  [r1,:128]\n        vmov.i16        q15, #0\n\n        vswp            d1,  d2\n        vst1.16         {q15},    [r1,:128]!\n        vadd.i16        d4,  d0,  d1\n        vst1.16         {q15},    [r1,:128]!\n        vshr.s16        q8,  q1,  #1\n        vsub.i16        d5,  d0,  d1\n        vadd.i16        d6,  d2,  d17\n        vsub.i16        d7,  d16, d3\n        vadd.i16        q0,  q2,  q3\n        vsub.i16        q1,  q2,  q3\n\n        vtrn.16         d0,  d1\n        vtrn.16         d3,  d2\n        vtrn.32         d0,  d3\n        vtrn.32         d1,  d2\n\n        vadd.i16        d4,  d0,  d3\n        vld1.32         {d18[0]}, [r0,:32], r2\n        vswp            d1,  d3\n        vshr.s16        q8,  q1,  #1\n        vld1.32         {d19[1]}, [r0,:32], r2\n        vsub.i16        d5,  d0,  d1\n        vld1.32         {d18[1]}, [r0,:32], r2\n        vadd.i16        d6,  d16, d3\n        vld1.32         {d19[0]}, [r0,:32], r2\n        vsub.i16        d7,  d2,  d17\n        sub             r0,  r0,  r2, lsl #2\n        vadd.i16        q0,  q2,  q3\n        vsub.i16        q1,  q2,  q3\n\n        vrshr.s16       q0,  q0,  #6\n        vrshr.s16       q1,  q1,  #6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:2", "text": "vtrn.32         d0,  d3\n        vtrn.32         d1,  d2\n\n        vadd.i16        d4,  d0,  d3\n        vld1.32         {d18[0]}, [r0,:32], r2\n        vswp            d1,  d3\n        vshr.s16        q8,  q1,  #1\n        vld1.32         {d19[1]}, [r0,:32], r2\n        vsub.i16        d5,  d0,  d1\n        vld1.32         {d18[1]}, [r0,:32], r2\n        vadd.i16        d6,  d16, d3\n        vld1.32         {d19[0]}, [r0,:32], r2\n        vsub.i16        d7,  d2,  d17\n        sub             r0,  r0,  r2, lsl #2\n        vadd.i16        q0,  q2,  q3\n        vsub.i16        q1,  q2,  q3\n\n        vrshr.s16       q0,  q0,  #6\n        vrshr.s16       q1,  q1,  #6\n\n        vaddw.u8        q0,  q0,  d18\n        vaddw.u8        q1,  q1,  d19\n\n        vqmovun.s16     d0,  q0\n        vqmovun.s16     d1,  q1\n\n        vst1.32         {d0[0]},  [r0,:32], r2\n        vst1.32         {d1[1]},  [r0,:32], r2\n        vst1.32         {d0[1]},  [r0,:32], r2\n        vst1.32         {d1[0]},  [r0,:32], r2\n\n        sub             r1,  r1,  #32\n        bx              lr\nendfunc\n\nfunction ff_h264_idct_dc_add_neon, export=1\nh264_idct_dc_add_neon_nothumb:\n        mov             r3,       #0\n        vld1.16         {d2[],d3[]}, [r1,:16]\n        strh            r3,       [r1]\n        vrshr.s16       q1,  q1,  #6\n        vld1.32         {d0[0]},  [r0,:32], r2\n        vld1.32         {d0[1]},  [r0,:32], r2\n        vaddw.u8        q2,  q1,  d0\n        vld1.32         {d1[0]},  [r0,:32], r2\n        vld1.32         {d1[1]},  [r0,:32], r2\n        vaddw.u8        q1,  q1,  d1\n        vqmovun.s16     d0,  q2\n        vqmovun.s16     d1,  q1\n        sub             r0,  r0,  r2, lsl #2\n        vst1.32         {d0[0]},  [r0,:32], r2\n        vst1.32         {d0[1]},  [r0,:32], r2\n        vst1.32         {d1[0]},  [r0,:32], r2\n        vst1.32         {d1[1]},  [r0,:32], r2\n        bx              lr\nendfunc\n\nfunction ff_h264_idct_add16_neon, export=1\n        push            {r4-r8,lr}\n        mov             r4,  r0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:3", "text": "vrshr.s16       q1,  q1,  #6\n        vld1.32         {d0[0]},  [r0,:32], r2\n        vld1.32         {d0[1]},  [r0,:32], r2\n        vaddw.u8        q2,  q1,  d0\n        vld1.32         {d1[0]},  [r0,:32], r2\n        vld1.32         {d1[1]},  [r0,:32], r2\n        vaddw.u8        q1,  q1,  d1\n        vqmovun.s16     d0,  q2\n        vqmovun.s16     d1,  q1\n        sub             r0,  r0,  r2, lsl #2\n        vst1.32         {d0[0]},  [r0,:32], r2\n        vst1.32         {d0[1]},  [r0,:32], r2\n        vst1.32         {d1[0]},  [r0,:32], r2\n        vst1.32         {d1[1]},  [r0,:32], r2\n        bx              lr\nendfunc\n\nfunction ff_h264_idct_add16_neon, export=1\n        push            {r4-r8,lr}\n        mov             r4,  r0\n        mov             r5,  r1\n        mov             r1,  r2\n        mov             r2,  r3\n        ldr             r6,  [sp, #24]\n        movrel          r7,  scan8\n        mov             ip,  #16\n1:      ldrb            r8,  [r7], #1\n        ldr             r0,  [r5], #4\n        ldrb            r8,  [r6, r8]\n        subs            r8,  r8,  #1\n        blt             2f\n        ldrsh           lr,  [r1]\n        add             r0,  r0,  r4\n        it              ne\n        movne           lr,  #0\n        cmp             lr,  #0\n        ite             ne\n        adrne           lr,  h264_idct_dc_add_neon_nothumb + CONFIG_THUMB\n        adreq           lr,  h264_idct_add_neon_nothumb    + CONFIG_THUMB\n        blx             lr\n2:      subs            ip,  ip,  #1\n        add             r1,  r1,  #32\n        bne             1b\n        pop             {r4-r8,pc}\nendfunc\n\nfunction ff_h264_idct_add16intra_neon, export=1\n        push            {r4-r8,lr}\n        mov             r4,  r0\n        mov             r5,  r1\n        mov             r1,  r2\n        mov             r2,  r3\n        ldr             r6,  [sp, #24]\n        movrel          r7,  scan8\n        mov             ip,  #16\n1:      ldrb            r8,  [r7], #1\n        ldr             r0,  [r5], #4\n        ldrb            r8,  [r6, r8]\n        add             r0,  r0,  r4\n        cmp             r8,  #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:4", "text": "2:      subs            ip,  ip,  #1\n        add             r1,  r1,  #32\n        bne             1b\n        pop             {r4-r8,pc}\nendfunc\n\nfunction ff_h264_idct_add16intra_neon, export=1\n        push            {r4-r8,lr}\n        mov             r4,  r0\n        mov             r5,  r1\n        mov             r1,  r2\n        mov             r2,  r3\n        ldr             r6,  [sp, #24]\n        movrel          r7,  scan8\n        mov             ip,  #16\n1:      ldrb            r8,  [r7], #1\n        ldr             r0,  [r5], #4\n        ldrb            r8,  [r6, r8]\n        add             r0,  r0,  r4\n        cmp             r8,  #0\n        ldrsh           r8,  [r1]\n        iteet           ne\n        adrne           lr,  h264_idct_add_neon_nothumb    + CONFIG_THUMB\n        adreq           lr,  h264_idct_dc_add_neon_nothumb + CONFIG_THUMB\n        cmpeq           r8,  #0\n        blxne           lr\n        subs            ip,  ip,  #1\n        add             r1,  r1,  #32\n        bne             1b\n        pop             {r4-r8,pc}\nendfunc\n\nfunction ff_h264_idct_add8_neon, export=1\n        push            {r4-r10,lr}\n        ldm             r0,  {r4,r9}\n        add             r5,  r1,  #16*4\n        add             r1,  r2,  #16*32\n        mov             r2,  r3\n        mov             r10, r1\n        ldr             r6,  [sp, #32]\n        movrel          r7,  scan8+16\n        mov             r12, #0\n1:      ldrb            r8,  [r7, r12]\n        ldr             r0,  [r5, r12, lsl #2]\n        ldrb            r8,  [r6, r8]\n        add             r0,  r0,  r4\n        add             r1,  r10, r12, lsl #5\n        cmp             r8,  #0\n        ldrsh           r8,  [r1]\n        iteet           ne\n        adrne           lr,  h264_idct_add_neon_nothumb    + CONFIG_THUMB\n        adreq           lr,  h264_idct_dc_add_neon_nothumb + CONFIG_THUMB\n        cmpeq           r8,  #0\n        blxne           lr\n        add             r12, r12, #1\n        cmp             r12, #4\n        itt             eq\n        moveq           r12, #16\n        moveq           r4,  r9\n        cmp             r12, #20", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:5", "text": "movrel          r7,  scan8+16\n        mov             r12, #0\n1:      ldrb            r8,  [r7, r12]\n        ldr             r0,  [r5, r12, lsl #2]\n        ldrb            r8,  [r6, r8]\n        add             r0,  r0,  r4\n        add             r1,  r10, r12, lsl #5\n        cmp             r8,  #0\n        ldrsh           r8,  [r1]\n        iteet           ne\n        adrne           lr,  h264_idct_add_neon_nothumb    + CONFIG_THUMB\n        adreq           lr,  h264_idct_dc_add_neon_nothumb + CONFIG_THUMB\n        cmpeq           r8,  #0\n        blxne           lr\n        add             r12, r12, #1\n        cmp             r12, #4\n        itt             eq\n        moveq           r12, #16\n        moveq           r4,  r9\n        cmp             r12, #20\n        blt             1b\n        pop             {r4-r10,pc}\nendfunc\n\n.macro  idct8x8_cols    pass\n  .if \\pass == 0\n        qa      .req    q2\n        qb      .req    q14\n        vshr.s16        q2,  q10, #1\n        vadd.i16        q0,  q8,  q12\n        vld1.16         {q14-q15},[r1,:128]\n        vst1.16         {q3},     [r1,:128]!\n        vst1.16         {q3},     [r1,:128]!\n        vsub.i16        q1,  q8,  q12\n        vshr.s16        q3,  q14, #1\n        vsub.i16        q2,  q2,  q14\n        vadd.i16        q3,  q3,  q10\n  .else\n        qa      .req    q14\n        qb      .req    q2\n        vtrn.32         q8,  q10\n        vtrn.16         q12, q13\n        vtrn.32         q9,  q11\n        vtrn.32         q12, q2\n        vtrn.32         q13, q15\n        vswp            d21, d4\n        vshr.s16        q14, q10, #1\n        vswp            d17, d24\n        vshr.s16        q3,  q2,  #1\n        vswp            d19, d26\n        vadd.i16        q0,  q8,  q12\n        vswp            d23, d30\n        vsub.i16        q1,  q8,  q12\n        vsub.i16        q14, q14, q2\n        vadd.i16        q3,  q3,  q10\n  .endif\n        vadd.i16        q10, q1,  qa\n        vsub.i16        q12, q1,  qa\n        vadd.i16        q8,  q0,  q3\n        vsub.i16        qb,  q0,  q3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:6", "text": "vtrn.32         q8,  q10\n        vtrn.16         q12, q13\n        vtrn.32         q9,  q11\n        vtrn.32         q12, q2\n        vtrn.32         q13, q15\n        vswp            d21, d4\n        vshr.s16        q14, q10, #1\n        vswp            d17, d24\n        vshr.s16        q3,  q2,  #1\n        vswp            d19, d26\n        vadd.i16        q0,  q8,  q12\n        vswp            d23, d30\n        vsub.i16        q1,  q8,  q12\n        vsub.i16        q14, q14, q2\n        vadd.i16        q3,  q3,  q10\n  .endif\n        vadd.i16        q10, q1,  qa\n        vsub.i16        q12, q1,  qa\n        vadd.i16        q8,  q0,  q3\n        vsub.i16        qb,  q0,  q3\n        vsub.i16        q0,  q13, q11\n        vadd.i16        q1,  q15, q9\n        vsub.i16        qa,  q15, q9\n        vadd.i16        q3,  q13, q11\n        vsub.i16        q0,  q0,  q15\n        vsub.i16        q1,  q1,  q11\n        vadd.i16        qa,  qa,  q13\n        vadd.i16        q3,  q3,  q9\n        vshr.s16        q9,  q9,  #1\n        vshr.s16        q11, q11, #1\n        vshr.s16        q13, q13, #1\n        vshr.s16        q15, q15, #1\n        vsub.i16        q0,  q0,  q15\n        vsub.i16        q1,  q1,  q11\n        vadd.i16        qa,  qa,  q13\n        vadd.i16        q3,  q3,  q9\n        vshr.s16        q9,  q0,  #2\n        vshr.s16        q11, q1,  #2\n        vshr.s16        q13, qa,  #2\n        vshr.s16        q15, q3,  #2\n        vsub.i16        q3,  q3,  q9\n        vsub.i16        qa,  q11, qa\n        vadd.i16        q1,  q1,  q13\n        vadd.i16        q0,  q0,  q15\n  .if \\pass == 0\n        vsub.i16        q15, q8,  q3\n        vadd.i16        q8,  q8,  q3\n        vadd.i16        q9,  q10, q2\n        vsub.i16        q2,  q10, q2\n        vtrn.16         q8,  q9\n        vadd.i16        q10, q12, q1\n        vtrn.16         q2,  q15\n        vadd.i16        q11, q14, q0\n        vsub.i16        q13, q12, q1\n        vtrn.16         q10, q11\n        vsub.i16        q12, q14, q0\n  .else\n        vsub.i16        q15, q8,  q3\n        vadd.i16        q8,  q8,  q3\n        vadd.i16        q9,  q10, q14", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:7", "text": "vsub.i16        q3,  q3,  q9\n        vsub.i16        qa,  q11, qa\n        vadd.i16        q1,  q1,  q13\n        vadd.i16        q0,  q0,  q15\n  .if \\pass == 0\n        vsub.i16        q15, q8,  q3\n        vadd.i16        q8,  q8,  q3\n        vadd.i16        q9,  q10, q2\n        vsub.i16        q2,  q10, q2\n        vtrn.16         q8,  q9\n        vadd.i16        q10, q12, q1\n        vtrn.16         q2,  q15\n        vadd.i16        q11, q14, q0\n        vsub.i16        q13, q12, q1\n        vtrn.16         q10, q11\n        vsub.i16        q12, q14, q0\n  .else\n        vsub.i16        q15, q8,  q3\n        vadd.i16        q8,  q8,  q3\n        vadd.i16        q9,  q10, q14\n        vsub.i16        q14, q10, q14\n        vadd.i16        q10, q12, q1\n        vsub.i16        q13, q12, q1\n        vadd.i16        q11, q2, q0\n        vsub.i16        q12, q2, q0\n  .endif\n        .unreq          qa\n        .unreq          qb\n.endm\n\nfunction ff_h264_idct8_add_neon, export=1\nh264_idct8_add_neon_nothumb:\n        vmov.i16        q3,       #0\n        vld1.16         {q8-q9},  [r1,:128]\n        vst1.16         {q3},     [r1,:128]!\n        vst1.16         {q3},     [r1,:128]!\n        vld1.16         {q10-q11},[r1,:128]\n        vst1.16         {q3},     [r1,:128]!\n        vst1.16         {q3},     [r1,:128]!\n        vld1.16         {q12-q13},[r1,:128]\n        vst1.16         {q3},     [r1,:128]!\n        vst1.16         {q3},     [r1,:128]!\n\n        idct8x8_cols    0\n        idct8x8_cols    1\n\n        mov             r3,  r0\n        vrshr.s16       q8,  q8,  #6\n        vld1.8          {d0},     [r0,:64], r2\n        vrshr.s16       q9,  q9,  #6\n        vld1.8          {d1},     [r0,:64], r2\n        vrshr.s16       q10, q10, #6\n        vld1.8          {d2},     [r0,:64], r2\n        vrshr.s16       q11, q11, #6\n        vld1.8          {d3},     [r0,:64], r2\n        vrshr.s16       q12, q12, #6\n        vld1.8          {d4},     [r0,:64], r2\n        vrshr.s16       q13, q13, #6\n        vld1.8          {d5},     [r0,:64], r2\n        vrshr.s16       q14, q14, #6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:8", "text": "vst1.16         {q3},     [r1,:128]!\n        vst1.16         {q3},     [r1,:128]!\n\n        idct8x8_cols    0\n        idct8x8_cols    1\n\n        mov             r3,  r0\n        vrshr.s16       q8,  q8,  #6\n        vld1.8          {d0},     [r0,:64], r2\n        vrshr.s16       q9,  q9,  #6\n        vld1.8          {d1},     [r0,:64], r2\n        vrshr.s16       q10, q10, #6\n        vld1.8          {d2},     [r0,:64], r2\n        vrshr.s16       q11, q11, #6\n        vld1.8          {d3},     [r0,:64], r2\n        vrshr.s16       q12, q12, #6\n        vld1.8          {d4},     [r0,:64], r2\n        vrshr.s16       q13, q13, #6\n        vld1.8          {d5},     [r0,:64], r2\n        vrshr.s16       q14, q14, #6\n        vld1.8          {d6},     [r0,:64], r2\n        vrshr.s16       q15, q15, #6\n        vld1.8          {d7},     [r0,:64], r2\n        vaddw.u8        q8,  q8,  d0\n        vaddw.u8        q9,  q9,  d1\n        vaddw.u8        q10, q10, d2\n        vqmovun.s16     d0,  q8\n        vaddw.u8        q11, q11, d3\n        vqmovun.s16     d1,  q9\n        vaddw.u8        q12, q12, d4\n        vqmovun.s16     d2,  q10\n        vst1.8          {d0},     [r3,:64], r2\n        vaddw.u8        q13, q13, d5\n        vqmovun.s16     d3,  q11\n        vst1.8          {d1},     [r3,:64], r2\n        vaddw.u8        q14, q14, d6\n        vqmovun.s16     d4,  q12\n        vst1.8          {d2},     [r3,:64], r2\n        vaddw.u8        q15, q15, d7\n        vqmovun.s16     d5,  q13\n        vst1.8          {d3},     [r3,:64], r2\n        vqmovun.s16     d6,  q14\n        vqmovun.s16     d7,  q15\n        vst1.8          {d4},     [r3,:64], r2\n        vst1.8          {d5},     [r3,:64], r2\n        vst1.8          {d6},     [r3,:64], r2\n        vst1.8          {d7},     [r3,:64], r2\n\n        sub             r1,  r1,  #128\n        bx              lr\nendfunc\n\nfunction ff_h264_idct8_dc_add_neon, export=1\nh264_idct8_dc_add_neon_nothumb:\n        mov             r3,       #0\n        vld1.16         {d30[],d31[]},[r1,:16]\n        strh            r3,       [r1]\n        vld1.32         {d0},     [r0,:64], r2\n        vrshr.s16       q15, q15, #6\n        vld1.32         {d1},     [r0,:64], r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:9", "text": "vst1.8          {d3},     [r3,:64], r2\n        vqmovun.s16     d6,  q14\n        vqmovun.s16     d7,  q15\n        vst1.8          {d4},     [r3,:64], r2\n        vst1.8          {d5},     [r3,:64], r2\n        vst1.8          {d6},     [r3,:64], r2\n        vst1.8          {d7},     [r3,:64], r2\n\n        sub             r1,  r1,  #128\n        bx              lr\nendfunc\n\nfunction ff_h264_idct8_dc_add_neon, export=1\nh264_idct8_dc_add_neon_nothumb:\n        mov             r3,       #0\n        vld1.16         {d30[],d31[]},[r1,:16]\n        strh            r3,       [r1]\n        vld1.32         {d0},     [r0,:64], r2\n        vrshr.s16       q15, q15, #6\n        vld1.32         {d1},     [r0,:64], r2\n        vld1.32         {d2},     [r0,:64], r2\n        vaddw.u8        q8,  q15, d0\n        vld1.32         {d3},     [r0,:64], r2\n        vaddw.u8        q9,  q15, d1\n        vld1.32         {d4},     [r0,:64], r2\n        vaddw.u8        q10, q15, d2\n        vld1.32         {d5},     [r0,:64], r2\n        vaddw.u8        q11, q15, d3\n        vld1.32         {d6},     [r0,:64], r2\n        vaddw.u8        q12, q15, d4\n        vld1.32         {d7},     [r0,:64], r2\n        vaddw.u8        q13, q15, d5\n        vaddw.u8        q14, q15, d6\n        vaddw.u8        q15, q15, d7\n        vqmovun.s16     d0,  q8\n        vqmovun.s16     d1,  q9\n        vqmovun.s16     d2,  q10\n        vqmovun.s16     d3,  q11\n        sub             r0,  r0,  r2, lsl #3\n        vst1.32         {d0},     [r0,:64], r2\n        vqmovun.s16     d4,  q12\n        vst1.32         {d1},     [r0,:64], r2\n        vqmovun.s16     d5,  q13\n        vst1.32         {d2},     [r0,:64], r2\n        vqmovun.s16     d6,  q14\n        vst1.32         {d3},     [r0,:64], r2\n        vqmovun.s16     d7,  q15\n        vst1.32         {d4},     [r0,:64], r2\n        vst1.32         {d5},     [r0,:64], r2\n        vst1.32         {d6},     [r0,:64], r2\n        vst1.32         {d7},     [r0,:64], r2\n        bx              lr\nendfunc\n\nfunction ff_h264_idct8_add4_neon, export=1\n        push            {r4-r8,lr}\n        mov             r4,  r0\n        mov             r5,  r1\n        mov             r1,  r2\n        mov             r2,  r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:10", "text": "vqmovun.s16     d4,  q12\n        vst1.32         {d1},     [r0,:64], r2\n        vqmovun.s16     d5,  q13\n        vst1.32         {d2},     [r0,:64], r2\n        vqmovun.s16     d6,  q14\n        vst1.32         {d3},     [r0,:64], r2\n        vqmovun.s16     d7,  q15\n        vst1.32         {d4},     [r0,:64], r2\n        vst1.32         {d5},     [r0,:64], r2\n        vst1.32         {d6},     [r0,:64], r2\n        vst1.32         {d7},     [r0,:64], r2\n        bx              lr\nendfunc\n\nfunction ff_h264_idct8_add4_neon, export=1\n        push            {r4-r8,lr}\n        mov             r4,  r0\n        mov             r5,  r1\n        mov             r1,  r2\n        mov             r2,  r3\n        ldr             r6,  [sp, #24]\n        movrel          r7,  scan8\n        mov             r12, #16\n1:      ldrb            r8,  [r7], #4\n        ldr             r0,  [r5], #16\n        ldrb            r8,  [r6, r8]\n        subs            r8,  r8,  #1\n        blt             2f\n        ldrsh           lr,  [r1]\n        add             r0,  r0,  r4\n        it              ne\n        movne           lr,  #0\n        cmp             lr,  #0\n        ite             ne\n        adrne           lr,  h264_idct8_dc_add_neon_nothumb + CONFIG_THUMB\n        adreq           lr,  h264_idct8_add_neon_nothumb    + CONFIG_THUMB\n        blx             lr\n2:      subs            r12, r12, #4\n        add             r1,  r1,  #128\n        bne             1b\n        pop             {r4-r8,pc}\nendfunc\n\nconst   scan8\n        .byte           4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n        .byte           6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n        .byte           4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n        .byte           6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n        .byte           4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n        .byte           6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n        .byte           4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n        .byte           6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n        .byte           4+11*8, 5+11*8, 4+12*8, 5+12*8\n        .byte           6+11*8, 7+11*8, 6+12*8, 7+12*8\n        .byte           4+13*8, 5+13*8, 4+14*8, 5+14*8\n        .byte           6+13*8, 7+13*8, 6+14*8, 7+14*8\nendconst", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 361, "line_end": 417}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264idct_neon.S:11", "text": "pop             {r4-r8,pc}\nendfunc\n\nconst   scan8\n        .byte           4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n        .byte           6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n        .byte           4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n        .byte           6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n        .byte           4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n        .byte           6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n        .byte           4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n        .byte           6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n        .byte           4+11*8, 5+11*8, 4+12*8, 5+12*8\n        .byte           6+11*8, 7+11*8, 6+12*8, 7+12*8\n        .byte           4+13*8, 5+13*8, 4+14*8, 5+14*8\n        .byte           6+13*8, 7+13*8, 6+14*8, 7+14*8\nendconst", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264idct_neon.S", "line_start": 401, "line_end": 417}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n        .macro ldcol.8  rd,  rs,  rt,  n=8,  hi=0\n.if \\n == 8 || \\hi == 0\n        vld1.8          {\\rd[0]}, [\\rs], \\rt\n        vld1.8          {\\rd[1]}, [\\rs], \\rt\n        vld1.8          {\\rd[2]}, [\\rs], \\rt\n        vld1.8          {\\rd[3]}, [\\rs], \\rt\n.endif\n.if \\n == 8 || \\hi == 1\n        vld1.8          {\\rd[4]}, [\\rs], \\rt\n        vld1.8          {\\rd[5]}, [\\rs], \\rt\n        vld1.8          {\\rd[6]}, [\\rs], \\rt\n        vld1.8          {\\rd[7]}, [\\rs], \\rt\n.endif\n        .endm\n\n        .macro add16x8  dq,  dl,  dh,  rl,  rh\n        vaddl.u8        \\dq, \\rl, \\rh\n        vadd.u16        \\dl, \\dl, \\dh\n        vpadd.u16       \\dl, \\dl, \\dl\n        vpadd.u16       \\dl, \\dl, \\dl\n        .endm\n\nfunction ff_pred16x16_128_dc_neon, export=1\n        vmov.i8         q0,  #128\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_top_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {q0},     [r2,:128]\n        add16x8         q0,  d0,  d1,  d0,  d1\n        vrshrn.u16      d0,  q0,  #4\n        vdup.8          q0,  d0[0]\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_left_dc_neon, export=1\n        sub             r2,  r0,  #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:2", "text": "vpadd.u16       \\dl, \\dl, \\dl\n        vpadd.u16       \\dl, \\dl, \\dl\n        .endm\n\nfunction ff_pred16x16_128_dc_neon, export=1\n        vmov.i8         q0,  #128\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_top_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {q0},     [r2,:128]\n        add16x8         q0,  d0,  d1,  d0,  d1\n        vrshrn.u16      d0,  q0,  #4\n        vdup.8          q0,  d0[0]\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_left_dc_neon, export=1\n        sub             r2,  r0,  #1\n        ldcol.8         d0,  r2,  r1\n        ldcol.8         d1,  r2,  r1\n        add16x8         q0,  d0,  d1,  d0,  d1\n        vrshrn.u16      d0,  q0,  #4\n        vdup.8          q0,  d0[0]\n        b               .L_pred16x16_dc_end\nendfunc\n\nfunction ff_pred16x16_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {q0},     [r2,:128]\n        sub             r2,  r0,  #1\n        ldcol.8         d2,  r2,  r1\n        ldcol.8         d3,  r2,  r1\n        vaddl.u8        q0,  d0,  d1\n        vaddl.u8        q1,  d2,  d3\n        vadd.u16        q0,  q0,  q1\n        vadd.u16        d0,  d0,  d1\n        vpadd.u16       d0,  d0,  d0\n        vpadd.u16       d0,  d0,  d0\n        vrshrn.u16      d0,  q0,  #5\n        vdup.8          q0,  d0[0]\n.L_pred16x16_dc_end:\n        mov             r3,  #8\n6:      vst1.8          {q0},     [r0,:128], r1\n        vst1.8          {q0},     [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             6b\n        bx              lr\nendfunc\n\nfunction ff_pred16x16_hor_neon, export=1\n        sub             r2,  r0,  #1\n        mov             r3,  #16\n1:      vld1.8          {d0[],d1[]},[r2],      r1\n        vst1.8          {q0},       [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:3", "text": "vrshrn.u16      d0,  q0,  #5\n        vdup.8          q0,  d0[0]\n.L_pred16x16_dc_end:\n        mov             r3,  #8\n6:      vst1.8          {q0},     [r0,:128], r1\n        vst1.8          {q0},     [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             6b\n        bx              lr\nendfunc\n\nfunction ff_pred16x16_hor_neon, export=1\n        sub             r2,  r0,  #1\n        mov             r3,  #16\n1:      vld1.8          {d0[],d1[]},[r2],      r1\n        vst1.8          {q0},       [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_pred16x16_vert_neon, export=1\n        sub             r0,  r0,  r1\n        vld1.8          {q0},     [r0,:128], r1\n        mov             r3,  #8\n1:      vst1.8          {q0},     [r0,:128], r1\n        vst1.8          {q0},     [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_pred16x16_plane_neon, export=1\n        sub             r3,  r0,  r1\n        add             r2,  r3,  #8\n        sub             r3,  r3,  #1\n        vld1.8          {d0},     [r3]\n        vld1.8          {d2},     [r2,:64], r1\n        ldcol.8         d1,  r3,  r1\n        add             r3,  r3,  r1\n        ldcol.8         d3,  r3,  r1\n        vrev64.8        q0,  q0\n        vaddl.u8        q8,  d2,  d3\n        vsubl.u8        q2,  d2,  d0\n        vsubl.u8        q3,  d3,  d1\n        movrel          r3,  p16weight\n        vld1.8          {q0},     [r3,:128]\n        vmul.s16        q2,  q2,  q0\n        vmul.s16        q3,  q3,  q0\n        vadd.i16        d4,  d4,  d5\n        vadd.i16        d5,  d6,  d7\n        vpadd.i16       d4,  d4,  d5\n        vpadd.i16       d4,  d4,  d4\n        vshll.s16       q3,  d4,  #2\n        vaddw.s16       q2,  q3,  d4\n        vrshrn.s32      d4,  q2,  #6\n        mov             r3,  #0\n        vtrn.16         d4,  d5\n        vadd.i16        d2,  d4,  d5\n        vshl.i16        d3,  d2,  #3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:4", "text": "ldcol.8         d3,  r3,  r1\n        vrev64.8        q0,  q0\n        vaddl.u8        q8,  d2,  d3\n        vsubl.u8        q2,  d2,  d0\n        vsubl.u8        q3,  d3,  d1\n        movrel          r3,  p16weight\n        vld1.8          {q0},     [r3,:128]\n        vmul.s16        q2,  q2,  q0\n        vmul.s16        q3,  q3,  q0\n        vadd.i16        d4,  d4,  d5\n        vadd.i16        d5,  d6,  d7\n        vpadd.i16       d4,  d4,  d5\n        vpadd.i16       d4,  d4,  d4\n        vshll.s16       q3,  d4,  #2\n        vaddw.s16       q2,  q3,  d4\n        vrshrn.s32      d4,  q2,  #6\n        mov             r3,  #0\n        vtrn.16         d4,  d5\n        vadd.i16        d2,  d4,  d5\n        vshl.i16        d3,  d2,  #3\n        vrev64.16       d16, d17\n        vsub.i16        d3,  d3,  d2\n        vadd.i16        d16, d16, d0\n        vshl.i16        d2,  d16, #4\n        vsub.i16        d2,  d2,  d3\n        vshl.i16        d3,  d4,  #4\n        vext.16         q0,  q0,  q0,  #7\n        vsub.i16        d6,  d5,  d3\n        vmov.16         d0[0], r3\n        vmul.i16        q0,  q0,  d4[0]\n        vdup.16         q1,  d2[0]\n        vdup.16         q2,  d4[0]\n        vdup.16         q3,  d6[0]\n        vshl.i16        q2,  q2,  #3\n        vadd.i16        q1,  q1,  q0\n        vadd.i16        q3,  q3,  q2\n        mov             r3,  #16\n1:\n        vqshrun.s16     d0,  q1,  #5\n        vadd.i16        q1,  q1,  q2\n        vqshrun.s16     d1,  q1,  #5\n        vadd.i16        q1,  q1,  q3\n        vst1.8          {q0},     [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nconst   p16weight, align=4\n        .short          1,2,3,4,5,6,7,8\nendconst\n\nfunction ff_pred8x8_hor_neon, export=1\n        sub             r2,  r0,  #1\n        mov             r3,  #8\n1:      vld1.8          {d0[]},   [r2],     r1\n        vst1.8          {d0},     [r0,:64], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:5", "text": "vqshrun.s16     d1,  q1,  #5\n        vadd.i16        q1,  q1,  q3\n        vst1.8          {q0},     [r0,:128], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nconst   p16weight, align=4\n        .short          1,2,3,4,5,6,7,8\nendconst\n\nfunction ff_pred8x8_hor_neon, export=1\n        sub             r2,  r0,  #1\n        mov             r3,  #8\n1:      vld1.8          {d0[]},   [r2],     r1\n        vst1.8          {d0},     [r0,:64], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_pred8x8_vert_neon, export=1\n        sub             r0,  r0,  r1\n        vld1.8          {d0},     [r0,:64], r1\n        mov             r3,  #4\n1:      vst1.8          {d0},     [r0,:64], r1\n        vst1.8          {d0},     [r0,:64], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_pred8x8_plane_neon, export=1\n        sub             r3,  r0,  r1\n        add             r2,  r3,  #4\n        sub             r3,  r3,  #1\n        vld1.32         {d0[0]},  [r3]\n        vld1.32         {d2[0]},  [r2,:32], r1\n        ldcol.8         d0,  r3,  r1,  4,  hi=1\n        add             r3,  r3,  r1\n        ldcol.8         d3,  r3,  r1,  4\n        vaddl.u8        q8,  d2,  d3\n        vrev32.8        d0,  d0\n        vtrn.32         d2,  d3\n        vsubl.u8        q2,  d2,  d0\n        movrel          r3,  p16weight\n        vld1.16         {q0},     [r3,:128]\n        vmul.s16        d4,  d4,  d0\n        vmul.s16        d5,  d5,  d0\n        vpadd.i16       d4,  d4,  d5\n        vpaddl.s16      d4,  d4\n        vshl.i32        d5,  d4,  #4\n        vadd.s32        d4,  d4,  d5\n        vrshrn.s32      d4,  q2,  #5\n        mov             r3,  #0\n        vtrn.16         d4,  d5\n        vadd.i16        d2,  d4,  d5\n        vshl.i16        d3,  d2,  #2\n        vrev64.16       d16, d16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:6", "text": "add             r3,  r3,  r1\n        ldcol.8         d3,  r3,  r1,  4\n        vaddl.u8        q8,  d2,  d3\n        vrev32.8        d0,  d0\n        vtrn.32         d2,  d3\n        vsubl.u8        q2,  d2,  d0\n        movrel          r3,  p16weight\n        vld1.16         {q0},     [r3,:128]\n        vmul.s16        d4,  d4,  d0\n        vmul.s16        d5,  d5,  d0\n        vpadd.i16       d4,  d4,  d5\n        vpaddl.s16      d4,  d4\n        vshl.i32        d5,  d4,  #4\n        vadd.s32        d4,  d4,  d5\n        vrshrn.s32      d4,  q2,  #5\n        mov             r3,  #0\n        vtrn.16         d4,  d5\n        vadd.i16        d2,  d4,  d5\n        vshl.i16        d3,  d2,  #2\n        vrev64.16       d16, d16\n        vsub.i16        d3,  d3,  d2\n        vadd.i16        d16, d16, d0\n        vshl.i16        d2,  d16, #4\n        vsub.i16        d2,  d2,  d3\n        vshl.i16        d3,  d4,  #3\n        vext.16         q0,  q0,  q0,  #7\n        vsub.i16        d6,  d5,  d3\n        vmov.16         d0[0], r3\n        vmul.i16        q0,  q0,  d4[0]\n        vdup.16         q1,  d2[0]\n        vdup.16         q2,  d4[0]\n        vdup.16         q3,  d6[0]\n        vshl.i16        q2,  q2,  #3\n        vadd.i16        q1,  q1,  q0\n        vadd.i16        q3,  q3,  q2\n        mov             r3,  #8\n1:\n        vqshrun.s16     d0,  q1,  #5\n        vadd.i16        q1,  q1,  q3\n        vst1.8          {d0},     [r0,:64], r1\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_pred8x8_128_dc_neon, export=1\n        vmov.i8         q0,  #128\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {d0},     [r2,:64]\n        vpaddl.u8       d0,  d0\n        vpadd.u16       d0,  d0,  d0\n        vrshrn.u16      d0,  q0,  #2\n        vdup.8          d1,  d0[1]\n        vdup.8          d0,  d0[0]\n        vtrn.32         d0,  d1\n        b               .L_pred8x8_dc_end", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:7", "text": "subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_pred8x8_128_dc_neon, export=1\n        vmov.i8         q0,  #128\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_top_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {d0},     [r2,:64]\n        vpaddl.u8       d0,  d0\n        vpadd.u16       d0,  d0,  d0\n        vrshrn.u16      d0,  q0,  #2\n        vdup.8          d1,  d0[1]\n        vdup.8          d0,  d0[0]\n        vtrn.32         d0,  d1\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_left_dc_neon, export=1\n        sub             r2,  r0,  #1\n        ldcol.8         d0,  r2,  r1\n        vpaddl.u8       d0,  d0\n        vpadd.u16       d0,  d0,  d0\n        vrshrn.u16      d0,  q0,  #2\n        vdup.8          d1,  d0[1]\n        vdup.8          d0,  d0[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {d0},     [r2,:64]\n        sub             r2,  r0,  #1\n        ldcol.8         d1,  r2,  r1\n        vtrn.32         d0,  d1\n        vpaddl.u8       q0,  q0\n        vpadd.u16       d0,  d0,  d1\n        vpadd.u16       d1,  d0,  d0\n        vrshrn.u16      d2,  q0,  #3\n        vrshrn.u16      d3,  q0,  #2\n        vdup.8          d0,  d2[4]\n        vdup.8          d1,  d3[3]\n        vdup.8          d4,  d3[2]\n        vdup.8          d5,  d2[5]\n        vtrn.32         q0,  q2\n.L_pred8x8_dc_end:\n        mov             r3,  #4\n        add             r2,  r0,  r1,  lsl #2\n6:      vst1.8          {d0},     [r0,:64], r1\n        vst1.8          {d1},     [r2,:64], r1\n        subs            r3,  r3,  #1\n        bne             6b\n        bx              lr\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon, export=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:8", "text": "vpadd.u16       d0,  d0,  d1\n        vpadd.u16       d1,  d0,  d0\n        vrshrn.u16      d2,  q0,  #3\n        vrshrn.u16      d3,  q0,  #2\n        vdup.8          d0,  d2[4]\n        vdup.8          d1,  d3[3]\n        vdup.8          d4,  d3[2]\n        vdup.8          d5,  d2[5]\n        vtrn.32         q0,  q2\n.L_pred8x8_dc_end:\n        mov             r3,  #4\n        add             r2,  r0,  r1,  lsl #2\n6:      vst1.8          {d0},     [r0,:64], r1\n        vst1.8          {d1},     [r2,:64], r1\n        subs            r3,  r3,  #1\n        bne             6b\n        bx              lr\nendfunc\n\nfunction ff_pred8x8_l0t_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {d0},     [r2,:64]\n        sub             r2,  r0,  #1\n        ldcol.8         d1,  r2,  r1,  4\n        vtrn.32         d0,  d1\n        vpaddl.u8       q0,  q0\n        vpadd.u16       d0,  d0,  d1\n        vpadd.u16       d1,  d0,  d0\n        vrshrn.u16      d2,  q0,  #3\n        vrshrn.u16      d3,  q0,  #2\n        vdup.8          d0,  d2[4]\n        vdup.8          d1,  d3[0]\n        vdup.8          q2,  d3[2]\n        vtrn.32         q0,  q2\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_l00_dc_neon, export=1\n        sub             r2,  r0,  #1\n        ldcol.8         d0,  r2,  r1,  4\n        vpaddl.u8       d0,  d0\n        vpadd.u16       d0,  d0,  d0\n        vrshrn.u16      d0,  q0,  #2\n        vmov.i8         d1,  #128\n        vdup.8          d0,  d0[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {d0},     [r2,:64]\n        add             r2,  r0,  r1,  lsl #2\n        sub             r2,  r2,  #1\n        ldcol.8         d1,  r2,  r1,  4,  hi=1\n        vtrn.32         d0,  d1\n        vpaddl.u8       q0,  q0\n        vpadd.u16       d0,  d0,  d1\n        vpadd.u16       d1,  d0,  d0\n        vrshrn.u16      d3,  q0,  #2\n        vrshrn.u16      d2,  q0,  #3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264pred_neon.S:9", "text": "vpaddl.u8       d0,  d0\n        vpadd.u16       d0,  d0,  d0\n        vrshrn.u16      d0,  q0,  #2\n        vmov.i8         d1,  #128\n        vdup.8          d0,  d0[0]\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_0lt_dc_neon, export=1\n        sub             r2,  r0,  r1\n        vld1.8          {d0},     [r2,:64]\n        add             r2,  r0,  r1,  lsl #2\n        sub             r2,  r2,  #1\n        ldcol.8         d1,  r2,  r1,  4,  hi=1\n        vtrn.32         d0,  d1\n        vpaddl.u8       q0,  q0\n        vpadd.u16       d0,  d0,  d1\n        vpadd.u16       d1,  d0,  d0\n        vrshrn.u16      d3,  q0,  #2\n        vrshrn.u16      d2,  q0,  #3\n        vdup.8          d0,  d3[0]\n        vdup.8          d1,  d3[3]\n        vdup.8          d4,  d3[2]\n        vdup.8          d5,  d2[5]\n        vtrn.32         q0,  q2\n        b               .L_pred8x8_dc_end\nendfunc\n\nfunction ff_pred8x8_0l0_dc_neon, export=1\n        add             r2,  r0,  r1,  lsl #2\n        sub             r2,  r2,  #1\n        ldcol.8         d1,  r2,  r1,  4\n        vpaddl.u8       d2,  d1\n        vpadd.u16       d2,  d2,  d2\n        vrshrn.u16      d1,  q1,  #2\n        vmov.i8         d0,  #128\n        vdup.8          d1,  d1[0]\n        b               .L_pred8x8_dc_end\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264pred_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264pred_neon.S", "line_start": 321, "line_end": 359}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n        /* H.264 qpel MC */\n\n.macro  lowpass_const   r\n        movw            \\r,  #5\n        movt            \\r,  #20\n        vmov.32         d6[0], \\r\n.endm\n\n.macro  lowpass_8       r0,  r1,  r2,  r3,  d0,  d1,  narrow=1\n  .if \\narrow\n        t0 .req q0\n        t1 .req q8\n  .else\n        t0 .req \\d0\n        t1 .req \\d1\n  .endif\n        vext.8          d2,  \\r0, \\r1, #2\n        vext.8          d3,  \\r0, \\r1, #3\n        vaddl.u8        q1,  d2,  d3\n        vext.8          d4,  \\r0, \\r1, #1\n        vext.8          d5,  \\r0, \\r1, #4\n        vaddl.u8        q2,  d4,  d5\n        vext.8          d30, \\r0, \\r1, #5\n        vaddl.u8        t0,  \\r0, d30\n        vext.8          d18, \\r2, \\r3, #2\n        vmla.i16        t0,  q1,  d6[1]\n        vext.8          d19, \\r2, \\r3, #3\n        vaddl.u8        q9,  d18, d19\n        vext.8          d20, \\r2, \\r3, #1\n        vmls.i16        t0,  q2,  d6[0]\n        vext.8          d21, \\r2, \\r3, #4\n        vaddl.u8        q10, d20, d21\n        vext.8          d31, \\r2, \\r3, #5\n        vaddl.u8        t1,  \\r2, d31\n        vmla.i16        t1,  q9,  d6[1]\n        vmls.i16        t1,  q10, d6[0]\n  .if \\narrow", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:2", "text": "vext.8          d3,  \\r0, \\r1, #3\n        vaddl.u8        q1,  d2,  d3\n        vext.8          d4,  \\r0, \\r1, #1\n        vext.8          d5,  \\r0, \\r1, #4\n        vaddl.u8        q2,  d4,  d5\n        vext.8          d30, \\r0, \\r1, #5\n        vaddl.u8        t0,  \\r0, d30\n        vext.8          d18, \\r2, \\r3, #2\n        vmla.i16        t0,  q1,  d6[1]\n        vext.8          d19, \\r2, \\r3, #3\n        vaddl.u8        q9,  d18, d19\n        vext.8          d20, \\r2, \\r3, #1\n        vmls.i16        t0,  q2,  d6[0]\n        vext.8          d21, \\r2, \\r3, #4\n        vaddl.u8        q10, d20, d21\n        vext.8          d31, \\r2, \\r3, #5\n        vaddl.u8        t1,  \\r2, d31\n        vmla.i16        t1,  q9,  d6[1]\n        vmls.i16        t1,  q10, d6[0]\n  .if \\narrow\n        vqrshrun.s16    \\d0, t0,  #5\n        vqrshrun.s16    \\d1, t1,  #5\n  .endif\n        .unreq  t0\n        .unreq  t1\n.endm\n\n.macro  lowpass_8_1     r0,  r1,  d0,  narrow=1\n  .if \\narrow\n        t0 .req q0\n  .else\n        t0 .req \\d0\n  .endif\n        vext.8          d2,  \\r0, \\r1, #2\n        vext.8          d3,  \\r0, \\r1, #3\n        vaddl.u8        q1,  d2,  d3\n        vext.8          d4,  \\r0, \\r1, #1\n        vext.8          d5,  \\r0, \\r1, #4\n        vaddl.u8        q2,  d4,  d5\n        vext.8          d30, \\r0, \\r1, #5\n        vaddl.u8        t0,  \\r0, d30\n        vmla.i16        t0,  q1,  d6[1]\n        vmls.i16        t0,  q2,  d6[0]\n  .if \\narrow\n        vqrshrun.s16    \\d0, t0,  #5\n  .endif\n        .unreq  t0\n.endm\n\n.macro  lowpass_8.16    r0,  r1,  l0,  h0,  l1,  h1,  d\n        vext.16         q1,  \\r0, \\r1, #2\n        vext.16         q0,  \\r0, \\r1, #3\n        vaddl.s16       q9,  d2,  d0\n        vext.16         q2,  \\r0, \\r1, #1\n        vaddl.s16       q1,  d3,  d1\n        vext.16         q3,  \\r0, \\r1, #4\n        vaddl.s16       q10, d4,  d6\n        vext.16         \\r1, \\r0, \\r1, #5\n        vaddl.s16       q2,  d5,  d7\n        vaddl.s16       q0,  \\h0, \\h1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:3", "text": "vaddl.u8        t0,  \\r0, d30\n        vmla.i16        t0,  q1,  d6[1]\n        vmls.i16        t0,  q2,  d6[0]\n  .if \\narrow\n        vqrshrun.s16    \\d0, t0,  #5\n  .endif\n        .unreq  t0\n.endm\n\n.macro  lowpass_8.16    r0,  r1,  l0,  h0,  l1,  h1,  d\n        vext.16         q1,  \\r0, \\r1, #2\n        vext.16         q0,  \\r0, \\r1, #3\n        vaddl.s16       q9,  d2,  d0\n        vext.16         q2,  \\r0, \\r1, #1\n        vaddl.s16       q1,  d3,  d1\n        vext.16         q3,  \\r0, \\r1, #4\n        vaddl.s16       q10, d4,  d6\n        vext.16         \\r1, \\r0, \\r1, #5\n        vaddl.s16       q2,  d5,  d7\n        vaddl.s16       q0,  \\h0, \\h1\n        vaddl.s16       q8,  \\l0, \\l1\n\n        vshl.i32        q3,  q9,  #4\n        vshl.i32        q9,  q9,  #2\n        vshl.i32        q15, q10, #2\n        vadd.i32        q9,  q9,  q3\n        vadd.i32        q10, q10, q15\n\n        vshl.i32        q3,  q1,  #4\n        vshl.i32        q1,  q1,  #2\n        vshl.i32        q15, q2,  #2\n        vadd.i32        q1,  q1,  q3\n        vadd.i32        q2,  q2,  q15\n\n        vadd.i32        q9,  q9,  q8\n        vsub.i32        q9,  q9,  q10\n\n        vadd.i32        q1,  q1,  q0\n        vsub.i32        q1,  q1,  q2\n\n        vrshrn.s32      d18, q9,  #10\n        vrshrn.s32      d19, q1,  #10\n\n        vqmovun.s16     \\d,  q9\n.endm\n\nfunction put_h264_qpel16_h_lowpass_neon_packed\n        mov             r4,  lr\n        mov             r12, #16\n        mov             r3,  #8\n        bl              put_h264_qpel8_h_lowpass_neon\n        sub             r1,  r1,  r2, lsl #4\n        add             r1,  r1,  #8\n        mov             r12, #16\n        mov             lr,  r4\n        b               put_h264_qpel8_h_lowpass_neon\nendfunc\n\n.macro  h264_qpel_h_lowpass type\nfunction \\type\\()_h264_qpel16_h_lowpass_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:4", "text": "vrshrn.s32      d18, q9,  #10\n        vrshrn.s32      d19, q1,  #10\n\n        vqmovun.s16     \\d,  q9\n.endm\n\nfunction put_h264_qpel16_h_lowpass_neon_packed\n        mov             r4,  lr\n        mov             r12, #16\n        mov             r3,  #8\n        bl              put_h264_qpel8_h_lowpass_neon\n        sub             r1,  r1,  r2, lsl #4\n        add             r1,  r1,  #8\n        mov             r12, #16\n        mov             lr,  r4\n        b               put_h264_qpel8_h_lowpass_neon\nendfunc\n\n.macro  h264_qpel_h_lowpass type\nfunction \\type\\()_h264_qpel16_h_lowpass_neon\n        push            {lr}\n        mov             r12, #16\n        bl              \\type\\()_h264_qpel8_h_lowpass_neon\n        sub             r0,  r0,  r3, lsl #4\n        sub             r1,  r1,  r2, lsl #4\n        add             r0,  r0,  #8\n        add             r1,  r1,  #8\n        mov             r12, #16\n        pop             {lr}\nendfunc\n\nfunction \\type\\()_h264_qpel8_h_lowpass_neon\n1:      vld1.8          {d0, d1},  [r1], r2\n        vld1.8          {d16,d17}, [r1], r2\n        subs            r12, r12, #2\n        lowpass_8       d0,  d1,  d16, d17, d0,  d16\n  .ifc \\type,avg\n        vld1.8          {d2},     [r0,:64], r3\n        vld1.8          {d3},     [r0,:64]\n        vrhadd.u8       d0,  d0,  d2\n        vrhadd.u8       d16, d16, d3\n        sub             r0,  r0,  r3\n  .endif\n        vst1.8          {d0},     [r0,:64], r3\n        vst1.8          {d16},    [r0,:64], r3\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_h_lowpass put\n        h264_qpel_h_lowpass avg\n\n.macro  h264_qpel_h_lowpass_l2 type\nfunction \\type\\()_h264_qpel16_h_lowpass_l2_neon\n        push            {lr}\n        mov             r12, #16\n        bl              \\type\\()_h264_qpel8_h_lowpass_l2_neon\n        sub             r0,  r0,  r2, lsl #4\n        sub             r1,  r1,  r2, lsl #4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:5", "text": "vrhadd.u8       d16, d16, d3\n        sub             r0,  r0,  r3\n  .endif\n        vst1.8          {d0},     [r0,:64], r3\n        vst1.8          {d16},    [r0,:64], r3\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_h_lowpass put\n        h264_qpel_h_lowpass avg\n\n.macro  h264_qpel_h_lowpass_l2 type\nfunction \\type\\()_h264_qpel16_h_lowpass_l2_neon\n        push            {lr}\n        mov             r12, #16\n        bl              \\type\\()_h264_qpel8_h_lowpass_l2_neon\n        sub             r0,  r0,  r2, lsl #4\n        sub             r1,  r1,  r2, lsl #4\n        sub             r3,  r3,  r2, lsl #4\n        add             r0,  r0,  #8\n        add             r1,  r1,  #8\n        add             r3,  r3,  #8\n        mov             r12, #16\n        pop             {lr}\nendfunc\n\nfunction \\type\\()_h264_qpel8_h_lowpass_l2_neon\n1:      vld1.8          {d0, d1},  [r1], r2\n        vld1.8          {d16,d17}, [r1], r2\n        vld1.8          {d28},     [r3], r2\n        vld1.8          {d29},     [r3], r2\n        subs            r12, r12, #2\n        lowpass_8       d0,  d1,  d16, d17, d0,  d1\n        vrhadd.u8       q0,  q0,  q14\n  .ifc \\type,avg\n        vld1.8          {d2},      [r0,:64], r2\n        vld1.8          {d3},      [r0,:64]\n        vrhadd.u8       q0,  q0,  q1\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {d0},      [r0,:64], r2\n        vst1.8          {d1},      [r0,:64], r2\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_h_lowpass_l2 put\n        h264_qpel_h_lowpass_l2 avg\n\nfunction put_h264_qpel16_v_lowpass_neon_packed\n        mov             r4,  lr\n        mov             r2,  #8\n        bl              put_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              put_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:6", "text": "sub             r0,  r0,  r2\n  .endif\n        vst1.8          {d0},      [r0,:64], r2\n        vst1.8          {d1},      [r0,:64], r2\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_h_lowpass_l2 put\n        h264_qpel_h_lowpass_l2 avg\n\nfunction put_h264_qpel16_v_lowpass_neon_packed\n        mov             r4,  lr\n        mov             r2,  #8\n        bl              put_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              put_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        bl              put_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r4\n        b               put_h264_qpel8_v_lowpass_neon\nendfunc\n\n.macro  h264_qpel_v_lowpass type\nfunction \\type\\()_h264_qpel16_v_lowpass_neon\n        mov             r4,  lr\n        bl              \\type\\()_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              \\type\\()_h264_qpel8_v_lowpass_neon\n        sub             r0,  r0,  r2, lsl #4\n        add             r0,  r0,  #8\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        bl              \\type\\()_h264_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r4\nendfunc\n\nfunction \\type\\()_h264_qpel8_v_lowpass_neon\n        vld1.8          {d8},  [r1], r3\n        vld1.8          {d10}, [r1], r3\n        vld1.8          {d12}, [r1], r3\n        vld1.8          {d14}, [r1], r3\n        vld1.8          {d22}, [r1], r3\n        vld1.8          {d24}, [r1], r3\n        vld1.8          {d26}, [r1], r3\n        vld1.8          {d28}, [r1], r3\n        vld1.8          {d9},  [r1], r3\n        vld1.8          {d11}, [r1], r3\n        vld1.8          {d13}, [r1], r3\n        vld1.8          {d15}, [r1], r3\n        vld1.8          {d23}, [r1]\n\n        transpose_8x8   q4,  q5,  q6,  q7,  q11, q12, q13, q14\n        lowpass_8       d8,  d9,  d10, d11, d8,  d10", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:7", "text": "mov             lr,  r4\nendfunc\n\nfunction \\type\\()_h264_qpel8_v_lowpass_neon\n        vld1.8          {d8},  [r1], r3\n        vld1.8          {d10}, [r1], r3\n        vld1.8          {d12}, [r1], r3\n        vld1.8          {d14}, [r1], r3\n        vld1.8          {d22}, [r1], r3\n        vld1.8          {d24}, [r1], r3\n        vld1.8          {d26}, [r1], r3\n        vld1.8          {d28}, [r1], r3\n        vld1.8          {d9},  [r1], r3\n        vld1.8          {d11}, [r1], r3\n        vld1.8          {d13}, [r1], r3\n        vld1.8          {d15}, [r1], r3\n        vld1.8          {d23}, [r1]\n\n        transpose_8x8   q4,  q5,  q6,  q7,  q11, q12, q13, q14\n        lowpass_8       d8,  d9,  d10, d11, d8,  d10\n        lowpass_8       d12, d13, d14, d15, d12, d14\n        lowpass_8       d22, d23, d24, d25, d22, d24\n        lowpass_8       d26, d27, d28, d29, d26, d28\n        transpose_8x8   d8,  d10, d12, d14, d22, d24, d26, d28\n\n  .ifc \\type,avg\n        vld1.8          {d9},  [r0,:64], r2\n        vld1.8          {d11}, [r0,:64], r2\n        vld1.8          {d13}, [r0,:64], r2\n        vrhadd.u8       d8,  d8,  d9\n        vld1.8          {d15}, [r0,:64], r2\n        vrhadd.u8       d10, d10, d11\n        vld1.8          {d23}, [r0,:64], r2\n        vrhadd.u8       d12, d12, d13\n        vld1.8          {d25}, [r0,:64], r2\n        vrhadd.u8       d14, d14, d15\n        vld1.8          {d27}, [r0,:64], r2\n        vrhadd.u8       d22, d22, d23\n        vld1.8          {d29}, [r0,:64], r2\n        vrhadd.u8       d24, d24, d25\n        vrhadd.u8       d26, d26, d27\n        vrhadd.u8       d28, d28, d29\n        sub             r0,  r0,  r2,  lsl #3\n  .endif\n\n        vst1.8          {d8},  [r0,:64], r2\n        vst1.8          {d10}, [r0,:64], r2\n        vst1.8          {d12}, [r0,:64], r2\n        vst1.8          {d14}, [r0,:64], r2\n        vst1.8          {d22}, [r0,:64], r2\n        vst1.8          {d24}, [r0,:64], r2\n        vst1.8          {d26}, [r0,:64], r2\n        vst1.8          {d28}, [r0,:64], r2\n\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_v_lowpass put\n        h264_qpel_v_lowpass avg", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:8", "text": "vrhadd.u8       d26, d26, d27\n        vrhadd.u8       d28, d28, d29\n        sub             r0,  r0,  r2,  lsl #3\n  .endif\n\n        vst1.8          {d8},  [r0,:64], r2\n        vst1.8          {d10}, [r0,:64], r2\n        vst1.8          {d12}, [r0,:64], r2\n        vst1.8          {d14}, [r0,:64], r2\n        vst1.8          {d22}, [r0,:64], r2\n        vst1.8          {d24}, [r0,:64], r2\n        vst1.8          {d26}, [r0,:64], r2\n        vst1.8          {d28}, [r0,:64], r2\n\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_v_lowpass put\n        h264_qpel_v_lowpass avg\n\n.macro  h264_qpel_v_lowpass_l2 type\nfunction \\type\\()_h264_qpel16_v_lowpass_l2_neon\n        mov             r4,  lr\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        sub             r0,  r0,  r3, lsl #4\n        sub             r12, r12, r2, lsl #4\n        add             r0,  r0,  #8\n        add             r12, r12, #8\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r4\nendfunc\n\nfunction \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        vld1.8          {d8},  [r1], r3\n        vld1.8          {d10}, [r1], r3\n        vld1.8          {d12}, [r1], r3\n        vld1.8          {d14}, [r1], r3\n        vld1.8          {d22}, [r1], r3\n        vld1.8          {d24}, [r1], r3\n        vld1.8          {d26}, [r1], r3\n        vld1.8          {d28}, [r1], r3\n        vld1.8          {d9},  [r1], r3\n        vld1.8          {d11}, [r1], r3\n        vld1.8          {d13}, [r1], r3\n        vld1.8          {d15}, [r1], r3\n        vld1.8          {d23}, [r1]\n\n        transpose_8x8   q4,  q5,  q6,  q7,  q11, q12, q13, q14\n        lowpass_8       d8,  d9,  d10, d11, d8,  d9\n        lowpass_8       d12, d13, d14, d15, d12, d13\n        lowpass_8       d22, d23, d24, d25, d22, d23\n        lowpass_8       d26, d27, d28, d29, d26, d27\n        transpose_8x8   d8,  d9,  d12, d13, d22, d23, d26, d27", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:9", "text": "vld1.8          {d8},  [r1], r3\n        vld1.8          {d10}, [r1], r3\n        vld1.8          {d12}, [r1], r3\n        vld1.8          {d14}, [r1], r3\n        vld1.8          {d22}, [r1], r3\n        vld1.8          {d24}, [r1], r3\n        vld1.8          {d26}, [r1], r3\n        vld1.8          {d28}, [r1], r3\n        vld1.8          {d9},  [r1], r3\n        vld1.8          {d11}, [r1], r3\n        vld1.8          {d13}, [r1], r3\n        vld1.8          {d15}, [r1], r3\n        vld1.8          {d23}, [r1]\n\n        transpose_8x8   q4,  q5,  q6,  q7,  q11, q12, q13, q14\n        lowpass_8       d8,  d9,  d10, d11, d8,  d9\n        lowpass_8       d12, d13, d14, d15, d12, d13\n        lowpass_8       d22, d23, d24, d25, d22, d23\n        lowpass_8       d26, d27, d28, d29, d26, d27\n        transpose_8x8   d8,  d9,  d12, d13, d22, d23, d26, d27\n\n        vld1.8          {d0},  [r12], r2\n        vld1.8          {d1},  [r12], r2\n        vld1.8          {d2},  [r12], r2\n        vld1.8          {d3},  [r12], r2\n        vld1.8          {d4},  [r12], r2\n        vrhadd.u8       q0,  q0,  q4\n        vld1.8          {d5},  [r12], r2\n        vrhadd.u8       q1,  q1,  q6\n        vld1.8          {d10}, [r12], r2\n        vrhadd.u8       q2,  q2,  q11\n        vld1.8          {d11}, [r12], r2\n        vrhadd.u8       q5,  q5,  q13\n\n  .ifc \\type,avg\n        vld1.8          {d16}, [r0,:64], r3\n        vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d0,  d0,  d16\n        vld1.8          {d16}, [r0,:64], r3\n        vrhadd.u8       d1,  d1,  d17\n        vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d2,  d2,  d16\n        vld1.8          {d16}, [r0,:64], r3\n        vrhadd.u8       d3,  d3,  d17\n        vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d4,  d4,  d16\n        vld1.8          {d16}, [r0,:64], r3\n        vrhadd.u8       d5,  d5,  d17\n        vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d10, d10, d16\n        vrhadd.u8       d11, d11, d17\n        sub             r0,  r0,  r3,  lsl #3\n  .endif\n\n        vst1.8          {d0},  [r0,:64], r3\n        vst1.8          {d1},  [r0,:64], r3\n        vst1.8          {d2},  [r0,:64], r3\n        vst1.8          {d3},  [r0,:64], r3\n        vst1.8          {d4},  [r0,:64], r3\n        vst1.8          {d5},  [r0,:64], r3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:10", "text": "vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d2,  d2,  d16\n        vld1.8          {d16}, [r0,:64], r3\n        vrhadd.u8       d3,  d3,  d17\n        vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d4,  d4,  d16\n        vld1.8          {d16}, [r0,:64], r3\n        vrhadd.u8       d5,  d5,  d17\n        vld1.8          {d17}, [r0,:64], r3\n        vrhadd.u8       d10, d10, d16\n        vrhadd.u8       d11, d11, d17\n        sub             r0,  r0,  r3,  lsl #3\n  .endif\n\n        vst1.8          {d0},  [r0,:64], r3\n        vst1.8          {d1},  [r0,:64], r3\n        vst1.8          {d2},  [r0,:64], r3\n        vst1.8          {d3},  [r0,:64], r3\n        vst1.8          {d4},  [r0,:64], r3\n        vst1.8          {d5},  [r0,:64], r3\n        vst1.8          {d10}, [r0,:64], r3\n        vst1.8          {d11}, [r0,:64], r3\n\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel_v_lowpass_l2 put\n        h264_qpel_v_lowpass_l2 avg\n\nfunction put_h264_qpel8_hv_lowpass_neon_top\n        lowpass_const   r12\n        mov             r12, #12\n1:      vld1.8          {d0, d1},  [r1], r3\n        vld1.8          {d16,d17}, [r1], r3\n        subs            r12, r12, #2\n        lowpass_8       d0,  d1,  d16, d17, q11, q12, narrow=0\n        vst1.8          {d22-d25}, [r4,:128]!\n        bne             1b\n\n        vld1.8          {d0, d1},  [r1]\n        lowpass_8_1     d0,  d1,  q12, narrow=0\n\n        mov             r12, #-16\n        add             r4,  r4,  r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        vld1.8          {d20,d21}, [r4,:128], r12\n        vld1.8          {d18,d19}, [r4,:128], r12\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d14,d15}, [r4,:128], r12\n        vld1.8          {d12,d13}, [r4,:128], r12\n        vld1.8          {d10,d11}, [r4,:128], r12\n        vld1.8          {d8, d9},  [r4,:128], r12\n        vld1.8          {d6, d7},  [r4,:128], r12\n        vld1.8          {d4, d5},  [r4,:128], r12\n        vld1.8          {d2, d3},  [r4,:128], r12\n        vld1.8          {d0, d1},  [r4,:128]\n\n        swap4           d1,  d3,  d5,  d7,  d8,  d10, d12, d14\n        transpose16_4x4 q0,  q1,  q2,  q3,  q4,  q5,  q6,  q7", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:11", "text": "vld1.8          {d0, d1},  [r1]\n        lowpass_8_1     d0,  d1,  q12, narrow=0\n\n        mov             r12, #-16\n        add             r4,  r4,  r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        vld1.8          {d20,d21}, [r4,:128], r12\n        vld1.8          {d18,d19}, [r4,:128], r12\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d14,d15}, [r4,:128], r12\n        vld1.8          {d12,d13}, [r4,:128], r12\n        vld1.8          {d10,d11}, [r4,:128], r12\n        vld1.8          {d8, d9},  [r4,:128], r12\n        vld1.8          {d6, d7},  [r4,:128], r12\n        vld1.8          {d4, d5},  [r4,:128], r12\n        vld1.8          {d2, d3},  [r4,:128], r12\n        vld1.8          {d0, d1},  [r4,:128]\n\n        swap4           d1,  d3,  d5,  d7,  d8,  d10, d12, d14\n        transpose16_4x4 q0,  q1,  q2,  q3,  q4,  q5,  q6,  q7\n\n        swap4           d17, d19, d21, d31, d24, d26, d28, d22\n        transpose16_4x4 q8,  q9,  q10, q15, q12, q13, q14, q11\n\n        vst1.8          {d30,d31}, [r4,:128]!\n        vst1.8          {d6, d7},  [r4,:128]!\n        vst1.8          {d20,d21}, [r4,:128]!\n        vst1.8          {d4, d5},  [r4,:128]!\n        vst1.8          {d18,d19}, [r4,:128]!\n        vst1.8          {d2, d3},  [r4,:128]!\n        vst1.8          {d16,d17}, [r4,:128]!\n        vst1.8          {d0, d1},  [r4,:128]\n\n        lowpass_8.16    q4,  q12, d8,  d9,  d24, d25, d8\n        lowpass_8.16    q5,  q13, d10, d11, d26, d27, d9\n        lowpass_8.16    q6,  q14, d12, d13, d28, d29, d10\n        lowpass_8.16    q7,  q11, d14, d15, d22, d23, d11\n\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d12\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d13\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d14\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128]\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d15\n\n        transpose_8x8   d12, d13, d14, d15, d8,  d9,  d10, d11\n\n        bx              lr\nendfunc\n\n.macro  h264_qpel8_hv_lowpass type\nfunction \\type\\()_h264_qpel8_hv_lowpass_neon\n        mov             r10, lr\n        bl              put_h264_qpel8_hv_lowpass_neon_top", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:12", "text": "lowpass_8.16    q8,  q15, d16, d17, d30, d31, d12\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d13\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128], r12\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d14\n        vld1.8          {d16,d17}, [r4,:128], r12\n        vld1.8          {d30,d31}, [r4,:128]\n        lowpass_8.16    q8,  q15, d16, d17, d30, d31, d15\n\n        transpose_8x8   d12, d13, d14, d15, d8,  d9,  d10, d11\n\n        bx              lr\nendfunc\n\n.macro  h264_qpel8_hv_lowpass type\nfunction \\type\\()_h264_qpel8_hv_lowpass_neon\n        mov             r10, lr\n        bl              put_h264_qpel8_hv_lowpass_neon_top\n  .ifc \\type,avg\n        vld1.8          {d0},      [r0,:64], r2\n        vld1.8          {d1},      [r0,:64], r2\n        vld1.8          {d2},      [r0,:64], r2\n        vld1.8          {d3},      [r0,:64], r2\n        vrhadd.u8       q6,  q6,  q0\n        vld1.8          {d4},      [r0,:64], r2\n        vld1.8          {d5},      [r0,:64], r2\n        vrhadd.u8       q7,  q7,  q1\n        vld1.8          {d6},      [r0,:64], r2\n        vld1.8          {d7},      [r0,:64], r2\n        vrhadd.u8       q4,  q4,  q2\n        vrhadd.u8       q5,  q5,  q3\n        sub             r0,  r0,  r2,  lsl #3\n  .endif\n\n        vst1.8          {d12},     [r0,:64], r2\n        vst1.8          {d13},     [r0,:64], r2\n        vst1.8          {d14},     [r0,:64], r2\n        vst1.8          {d15},     [r0,:64], r2\n        vst1.8          {d8},      [r0,:64], r2\n        vst1.8          {d9},      [r0,:64], r2\n        vst1.8          {d10},     [r0,:64], r2\n        vst1.8          {d11},     [r0,:64], r2\n\n        mov             lr,  r10\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel8_hv_lowpass put\n        h264_qpel8_hv_lowpass avg\n\n.macro  h264_qpel8_hv_lowpass_l2 type\nfunction \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        mov             r10, lr\n        bl              put_h264_qpel8_hv_lowpass_neon_top\n\n        vld1.8          {d0, d1},  [r2,:128]!\n        vld1.8          {d2, d3},  [r2,:128]!", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:13", "text": "vst1.8          {d8},      [r0,:64], r2\n        vst1.8          {d9},      [r0,:64], r2\n        vst1.8          {d10},     [r0,:64], r2\n        vst1.8          {d11},     [r0,:64], r2\n\n        mov             lr,  r10\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel8_hv_lowpass put\n        h264_qpel8_hv_lowpass avg\n\n.macro  h264_qpel8_hv_lowpass_l2 type\nfunction \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        mov             r10, lr\n        bl              put_h264_qpel8_hv_lowpass_neon_top\n\n        vld1.8          {d0, d1},  [r2,:128]!\n        vld1.8          {d2, d3},  [r2,:128]!\n        vrhadd.u8       q0,  q0,  q6\n        vld1.8          {d4, d5},  [r2,:128]!\n        vrhadd.u8       q1,  q1,  q7\n        vld1.8          {d6, d7},  [r2,:128]!\n        vrhadd.u8       q2,  q2,  q4\n        vrhadd.u8       q3,  q3,  q5\n  .ifc \\type,avg\n        vld1.8          {d16},     [r0,:64], r3\n        vld1.8          {d17},     [r0,:64], r3\n        vld1.8          {d18},     [r0,:64], r3\n        vld1.8          {d19},     [r0,:64], r3\n        vrhadd.u8       q0,  q0,  q8\n        vld1.8          {d20},     [r0,:64], r3\n        vld1.8          {d21},     [r0,:64], r3\n        vrhadd.u8       q1,  q1,  q9\n        vld1.8          {d22},     [r0,:64], r3\n        vld1.8          {d23},     [r0,:64], r3\n        vrhadd.u8       q2,  q2,  q10\n        vrhadd.u8       q3,  q3,  q11\n        sub             r0,  r0,  r3,  lsl #3\n  .endif\n        vst1.8          {d0},      [r0,:64], r3\n        vst1.8          {d1},      [r0,:64], r3\n        vst1.8          {d2},      [r0,:64], r3\n        vst1.8          {d3},      [r0,:64], r3\n        vst1.8          {d4},      [r0,:64], r3\n        vst1.8          {d5},      [r0,:64], r3\n        vst1.8          {d6},      [r0,:64], r3\n        vst1.8          {d7},      [r0,:64], r3\n\n        mov             lr,  r10\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel8_hv_lowpass_l2 put\n        h264_qpel8_hv_lowpass_l2 avg\n\n.macro  h264_qpel16_hv  type\nfunction \\type\\()_h264_qpel16_hv_lowpass_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:14", "text": ".endif\n        vst1.8          {d0},      [r0,:64], r3\n        vst1.8          {d1},      [r0,:64], r3\n        vst1.8          {d2},      [r0,:64], r3\n        vst1.8          {d3},      [r0,:64], r3\n        vst1.8          {d4},      [r0,:64], r3\n        vst1.8          {d5},      [r0,:64], r3\n        vst1.8          {d6},      [r0,:64], r3\n        vst1.8          {d7},      [r0,:64], r3\n\n        mov             lr,  r10\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel8_hv_lowpass_l2 put\n        h264_qpel8_hv_lowpass_l2 avg\n\n.macro  h264_qpel16_hv  type\nfunction \\type\\()_h264_qpel16_hv_lowpass_neon\n        mov             r9,  lr\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        sub             r0,  r0,  r2, lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r9\n        b               \\type\\()_h264_qpel8_hv_lowpass_neon\nendfunc\n\nfunction \\type\\()_h264_qpel16_hv_lowpass_l2_neon\n        mov             r9,  lr\n        sub             r2,  r4,  #256\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        sub             r0,  r0,  r3, lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r9\n        b               \\type\\()_h264_qpel8_hv_lowpass_l2_neon\nendfunc\n.endm\n\n        h264_qpel16_hv  put\n        h264_qpel16_hv  avg\n\n.macro  h264_qpel8      type\nfunction ff_\\type\\()_h264_qpel8_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:15", "text": "bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        sub             r0,  r0,  r3, lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r9\n        b               \\type\\()_h264_qpel8_hv_lowpass_l2_neon\nendfunc\n.endm\n\n        h264_qpel16_hv  put\n        h264_qpel16_hv  avg\n\n.macro  h264_qpel8      type\nfunction ff_\\type\\()_h264_qpel8_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1\n        sub             r1,  r1,  #2\n        mov             r12, #8\n        b               \\type\\()_h264_qpel8_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc20_neon, export=1\n        lowpass_const   r3\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        mov             r12, #8\n        b               \\type\\()_h264_qpel8_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc30_neon, export=1\n        lowpass_const   r3\n        add             r3,  r1,  #1\n        sub             r1,  r1,  #2\n        mov             r12, #8\n        b               \\type\\()_h264_qpel8_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc01_neon, export=1\n        push            {lr}\n        mov             r12, r1\n\\type\\()_h264_qpel8_mc01:\n        lowpass_const   r3\n        mov             r3,  r2\n        sub             r1,  r1,  r2, lsl #1\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        pop             {pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc11_neon, export=1\n        push            {r0, r1, r11, lr}\n\\type\\()_h264_qpel8_mc11:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:16", "text": "function ff_\\type\\()_h264_qpel8_mc01_neon, export=1\n        push            {lr}\n        mov             r12, r1\n\\type\\()_h264_qpel8_mc01:\n        lowpass_const   r3\n        mov             r3,  r2\n        sub             r1,  r1,  r2, lsl #1\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        pop             {pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc11_neon, export=1\n        push            {r0, r1, r11, lr}\n\\type\\()_h264_qpel8_mc11:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #64\n        mov             r0,  sp\n        sub             r1,  r1,  #2\n        mov             r3,  #8\n        mov             r12, #8\n        vpush           {d8-d15}\n        bl              put_h264_qpel8_h_lowpass_neon\n        ldrd            r0,  r1,  [r11], #8\n        mov             r3,  r2\n        add             r12, sp,  #64\n        sub             r1,  r1,  r2, lsl #1\n        mov             r2,  #8\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc21_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n\\type\\()_h264_qpel8_mc21:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #(8*8+16*12)\n        sub             r1,  r1,  #2\n        mov             r3,  #8\n        mov             r0,  sp\n        mov             r12, #8\n        vpush           {d8-d15}\n        bl              put_h264_qpel8_h_lowpass_neon\n        mov             r4,  r0\n        ldrd            r0,  r1,  [r11], #8\n        sub             r1,  r1,  r2, lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:17", "text": "function ff_\\type\\()_h264_qpel8_mc21_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n\\type\\()_h264_qpel8_mc21:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #(8*8+16*12)\n        sub             r1,  r1,  #2\n        mov             r3,  #8\n        mov             r0,  sp\n        mov             r12, #8\n        vpush           {d8-d15}\n        bl              put_h264_qpel8_h_lowpass_neon\n        mov             r4,  r0\n        ldrd            r0,  r1,  [r11], #8\n        sub             r1,  r1,  r2, lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        sub             r2,  r4,  #64\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r10, r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc31_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r11, lr}\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel8_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc02_neon, export=1\n        push            {lr}\n        lowpass_const   r3\n        sub             r1,  r1,  r2, lsl #1\n        mov             r3,  r2\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc12_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n\\type\\()_h264_qpel8_mc12:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #(8*8+16*12)\n        sub             r1,  r1,  r2, lsl #1\n        mov             r3,  r2\n        mov             r2,  #8\n        mov             r0,  sp\n        vpush           {d8-d15}\n        bl              put_h264_qpel8_v_lowpass_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:18", "text": "bl              \\type\\()_h264_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc12_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n\\type\\()_h264_qpel8_mc12:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #(8*8+16*12)\n        sub             r1,  r1,  r2, lsl #1\n        mov             r3,  r2\n        mov             r2,  #8\n        mov             r0,  sp\n        vpush           {d8-d15}\n        bl              put_h264_qpel8_v_lowpass_neon\n        mov             r4,  r0\n        ldrd            r0,  r1,  [r11], #8\n        sub             r1,  r1,  r3, lsl #1\n        sub             r1,  r1,  #2\n        sub             r2,  r4,  #64\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r10, r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc22_neon, export=1\n        push            {r4, r10, r11, lr}\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r4,  r11, #15\nT       mov             sp,  r4\n        sub             r1,  r1,  r2, lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        sub             sp,  sp,  #(16*12)\n        mov             r4,  sp\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r10, r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc32_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n        add             r1,  r1,  #1\n        b               \\type\\()_h264_qpel8_mc12\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc03_neon, export=1\n        push            {lr}\n        add             r12, r1,  r2\n        b               \\type\\()_h264_qpel8_mc01\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:19", "text": "sub             sp,  sp,  #(16*12)\n        mov             r4,  sp\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r10, r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc32_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n        add             r1,  r1,  #1\n        b               \\type\\()_h264_qpel8_mc12\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc03_neon, export=1\n        push            {lr}\n        add             r12, r1,  r2\n        b               \\type\\()_h264_qpel8_mc01\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc13_neon, export=1\n        push            {r0, r1, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel8_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc23_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel8_mc21\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc33_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r11, lr}\n        add             r1,  r1,  r2\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel8_mc11\nendfunc\n.endm\n\n        h264_qpel8      put\n        h264_qpel8      avg\n\n.macro  h264_qpel16     type\nfunction ff_\\type\\()_h264_qpel16_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1\n        sub             r1,  r1,  #2\n        b               \\type\\()_h264_qpel16_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc20_neon, export=1\n        lowpass_const   r3\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        b               \\type\\()_h264_qpel16_h_lowpass_neon\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:20", "text": ".endm\n\n        h264_qpel8      put\n        h264_qpel8      avg\n\n.macro  h264_qpel16     type\nfunction ff_\\type\\()_h264_qpel16_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1\n        sub             r1,  r1,  #2\n        b               \\type\\()_h264_qpel16_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc20_neon, export=1\n        lowpass_const   r3\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        b               \\type\\()_h264_qpel16_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc30_neon, export=1\n        lowpass_const   r3\n        add             r3,  r1,  #1\n        sub             r1,  r1,  #2\n        b               \\type\\()_h264_qpel16_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc01_neon, export=1\n        push            {r4, lr}\n        mov             r12, r1\n\\type\\()_h264_qpel16_mc01:\n        lowpass_const   r3\n        mov             r3,  r2\n        sub             r1,  r1,  r2, lsl #1\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel16_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc11_neon, export=1\n        push            {r0, r1, r4, r11, lr}\n\\type\\()_h264_qpel16_mc11:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #256\n        mov             r0,  sp\n        sub             r1,  r1,  #2\n        mov             r3,  #16\n        vpush           {d8-d15}\n        bl              put_h264_qpel16_h_lowpass_neon\n        ldrd            r0,  r1,  [r11], #8\n        mov             r3,  r2\n        add             r12, sp,  #64\n        sub             r1,  r1,  r2, lsl #1\n        mov             r2,  #16\n        bl              \\type\\()_h264_qpel16_v_lowpass_l2_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:21", "text": "function ff_\\type\\()_h264_qpel16_mc11_neon, export=1\n        push            {r0, r1, r4, r11, lr}\n\\type\\()_h264_qpel16_mc11:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #256\n        mov             r0,  sp\n        sub             r1,  r1,  #2\n        mov             r3,  #16\n        vpush           {d8-d15}\n        bl              put_h264_qpel16_h_lowpass_neon\n        ldrd            r0,  r1,  [r11], #8\n        mov             r3,  r2\n        add             r12, sp,  #64\n        sub             r1,  r1,  r2, lsl #1\n        mov             r2,  #16\n        bl              \\type\\()_h264_qpel16_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc21_neon, export=1\n        push            {r0, r1, r4-r5, r9-r11, lr}\n\\type\\()_h264_qpel16_mc21:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #(16*16+16*12)\n        sub             r1,  r1,  #2\n        mov             r0,  sp\n        vpush           {d8-d15}\n        bl              put_h264_qpel16_h_lowpass_neon_packed\n        mov             r4,  r0\n        ldrd            r0,  r1,  [r11], #8\n        sub             r1,  r1,  r2, lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        bl              \\type\\()_h264_qpel16_hv_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4-r5, r9-r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc31_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r4, r11, lr}\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc02_neon, export=1\n        push            {r4, lr}\n        lowpass_const   r3\n        sub             r1,  r1,  r2, lsl #1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:22", "text": "sub             r1,  r1,  r2, lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        bl              \\type\\()_h264_qpel16_hv_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4-r5, r9-r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc31_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r4, r11, lr}\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc02_neon, export=1\n        push            {r4, lr}\n        lowpass_const   r3\n        sub             r1,  r1,  r2, lsl #1\n        mov             r3,  r2\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel16_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc12_neon, export=1\n        push            {r0, r1, r4-r5, r9-r11, lr}\n\\type\\()_h264_qpel16_mc12:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #(16*16+16*12)\n        sub             r1,  r1,  r2, lsl #1\n        mov             r0,  sp\n        mov             r3,  r2\n        vpush           {d8-d15}\n        bl              put_h264_qpel16_v_lowpass_neon_packed\n        mov             r4,  r0\n        ldrd            r0,  r1,  [r11], #8\n        sub             r1,  r1,  r3, lsl #1\n        sub             r1,  r1,  #2\n        mov             r2,  r3\n        bl              \\type\\()_h264_qpel16_hv_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4-r5, r9-r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc22_neon, export=1\n        push            {r4, r9-r11, lr}\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r4,  r11, #15\nT       mov             sp,  r4\n        sub             r1,  r1,  r2, lsl #1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:23", "text": "bl              put_h264_qpel16_v_lowpass_neon_packed\n        mov             r4,  r0\n        ldrd            r0,  r1,  [r11], #8\n        sub             r1,  r1,  r3, lsl #1\n        sub             r1,  r1,  #2\n        mov             r2,  r3\n        bl              \\type\\()_h264_qpel16_hv_lowpass_l2_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4-r5, r9-r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc22_neon, export=1\n        push            {r4, r9-r11, lr}\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r4,  r11, #15\nT       mov             sp,  r4\n        sub             r1,  r1,  r2, lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        sub             sp,  sp,  #(16*12)\n        mov             r4,  sp\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel16_hv_lowpass_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r9-r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc32_neon, export=1\n        push            {r0, r1, r4-r5, r9-r11, lr}\n        add             r1,  r1,  #1\n        b               \\type\\()_h264_qpel16_mc12\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc03_neon, export=1\n        push            {r4, lr}\n        add             r12, r1,  r2\n        b               \\type\\()_h264_qpel16_mc01\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc13_neon, export=1\n        push            {r0, r1, r4, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc23_neon, export=1\n        push            {r0, r1, r4-r5, r9-r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel16_mc21\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc33_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r4, r11, lr}\n        add             r1,  r1,  r2\n        sub             r1,  r1,  #1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:24", "text": "b               \\type\\()_h264_qpel16_mc01\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc13_neon, export=1\n        push            {r0, r1, r4, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc23_neon, export=1\n        push            {r0, r1, r4-r5, r9-r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel16_mc21\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc33_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r4, r11, lr}\n        add             r1,  r1,  r2\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n.endm\n\n        h264_qpel16     put\n        h264_qpel16     avg", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/h264qpel_neon.S", "line_start": 921, "line_end": 946}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:14", "text": ".endif\n        vst1.8          {d0},      [r0,:64], r3\n        vst1.8          {d1},      [r0,:64], r3\n        vst1.8          {d2},      [r0,:64], r3\n        vst1.8          {d3},      [r0,:64], r3\n        vst1.8          {d4},      [r0,:64], r3\n        vst1.8          {d5},      [r0,:64], r3\n        vst1.8          {d6},      [r0,:64], r3\n        vst1.8          {d7},      [r0,:64], r3\n\n        mov             lr,  r10\n        bx              lr\nendfunc\n.endm\n\n        h264_qpel8_hv_lowpass_l2 put\n        h264_qpel8_hv_lowpass_l2 avg\n\n.macro  h264_qpel16_hv  type\nfunction \\type\\()_h264_qpel16_hv_lowpass_neon\n        mov             r9,  lr\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        sub             r0,  r0,  r2, lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r9\n        b               \\type\\()_h264_qpel8_hv_lowpass_neon\nendfunc\n\nfunction \\type\\()_h264_qpel16_hv_lowpass_l2_neon\n        mov             r9,  lr\n        sub             r2,  r4,  #256\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        sub             r0,  r0,  r3, lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r9\n        b               \\type\\()_h264_qpel8_hv_lowpass_l2_neon\nendfunc\n.endm\n\n        h264_qpel16_hv put\n        h264_qpel16_hv avg\n\n.macro  h264_qpel8      type\nfunction ff_\\type\\()_h264_qpel8_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/h264qpel_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:15", "text": "bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #4\n        sub             r1,  r1,  r3, lsl #2\n        add             r1,  r1,  #8\n        sub             r0,  r0,  r3, lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_h264_qpel8_hv_lowpass_l2_neon\n        sub             r1,  r1,  r3, lsl #2\n        mov             lr,  r9\n        b               \\type\\()_h264_qpel8_hv_lowpass_l2_neon\nendfunc\n.endm\n\n        h264_qpel16_hv put\n        h264_qpel16_hv avg\n\n.macro  h264_qpel8      type\nfunction ff_\\type\\()_h264_qpel8_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1\n        sub             r1,  r1,  #2\n        mov             r12, #8\n        b               \\type\\()_h264_qpel8_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc20_neon, export=1\n        lowpass_const   r3\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        mov             r12, #8\n        b               \\type\\()_h264_qpel8_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc30_neon, export=1\n        lowpass_const   r3\n        add             r3,  r1,  #1\n        sub             r1,  r1,  #2\n        mov             r12, #8\n        b               \\type\\()_h264_qpel8_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc01_neon, export=1\n        push            {lr}\n        mov             r12, r1\n\\type\\()_h264_qpel8_mc01:\n        lowpass_const   r3\n        mov             r3,  r2\n        sub             r1,  r1,  r2, lsl #1\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        pop             {pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc11_neon, export=1\n        push            {r0, r1, r11, lr}\n\\type\\()_h264_qpel8_mc11:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/h264qpel_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:19", "text": "sub             sp,  sp,  #(16*12)\n        mov             r4,  sp\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel8_hv_lowpass_neon\n        vpop            {d8-d15}\n        mov             sp,  r11\n        pop             {r4, r10, r11, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc32_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n        add             r1,  r1,  #1\n        b               \\type\\()_h264_qpel8_mc12\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc03_neon, export=1\n        push            {lr}\n        add             r12, r1,  r2\n        b               \\type\\()_h264_qpel8_mc01\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc13_neon, export=1\n        push            {r0, r1, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel8_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc23_neon, export=1\n        push            {r0, r1, r4, r10, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel8_mc21\nendfunc\n\nfunction ff_\\type\\()_h264_qpel8_mc33_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r11, lr}\n        add             r1,  r1,  r2\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel8_mc11\nendfunc\n.endm\n\n        h264_qpel8 put\n        h264_qpel8 avg\n\n.macro  h264_qpel16     type\nfunction ff_\\type\\()_h264_qpel16_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1\n        sub             r1,  r1,  #2\n        b               \\type\\()_h264_qpel16_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc20_neon, export=1\n        lowpass_const   r3\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        b               \\type\\()_h264_qpel16_h_lowpass_neon\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/h264qpel_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:20", "text": ".endm\n\n        h264_qpel8 put\n        h264_qpel8 avg\n\n.macro  h264_qpel16     type\nfunction ff_\\type\\()_h264_qpel16_mc10_neon, export=1\n        lowpass_const   r3\n        mov             r3,  r1\n        sub             r1,  r1,  #2\n        b               \\type\\()_h264_qpel16_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc20_neon, export=1\n        lowpass_const   r3\n        sub             r1,  r1,  #2\n        mov             r3,  r2\n        b               \\type\\()_h264_qpel16_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc30_neon, export=1\n        lowpass_const   r3\n        add             r3,  r1,  #1\n        sub             r1,  r1,  #2\n        b               \\type\\()_h264_qpel16_h_lowpass_l2_neon\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc01_neon, export=1\n        push            {r4, lr}\n        mov             r12, r1\n\\type\\()_h264_qpel16_mc01:\n        lowpass_const   r3\n        mov             r3,  r2\n        sub             r1,  r1,  r2, lsl #1\n        vpush           {d8-d15}\n        bl              \\type\\()_h264_qpel16_v_lowpass_l2_neon\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc11_neon, export=1\n        push            {r0, r1, r4, r11, lr}\n\\type\\()_h264_qpel16_mc11:\n        lowpass_const   r3\n        mov             r11, sp\nA       bic             sp,  sp,  #15\nT       bic             r0,  r11, #15\nT       mov             sp,  r0\n        sub             sp,  sp,  #256\n        mov             r0,  sp\n        sub             r1,  r1,  #2\n        mov             r3,  #16\n        vpush           {d8-d15}\n        bl              put_h264_qpel16_h_lowpass_neon\n        ldrd            r0,  r1,  [r11], #8\n        mov             r3,  r2\n        add             r12, sp,  #64\n        sub             r1,  r1,  r2, lsl #1\n        mov             r2,  #16\n        bl              \\type\\()_h264_qpel16_v_lowpass_l2_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/h264qpel_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/h264qpel_neon.S:24", "text": "b               \\type\\()_h264_qpel16_mc01\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc13_neon, export=1\n        push            {r0, r1, r4, r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc23_neon, export=1\n        push            {r0, r1, r4-r5, r9-r11, lr}\n        add             r1,  r1,  r2\n        b               \\type\\()_h264_qpel16_mc21\nendfunc\n\nfunction ff_\\type\\()_h264_qpel16_mc33_neon, export=1\n        add             r1,  r1,  #1\n        push            {r0, r1, r4, r11, lr}\n        add             r1,  r1,  r2\n        sub             r1,  r1,  #1\n        b               \\type\\()_h264_qpel16_mc11\nendfunc\n.endm\n\n        h264_qpel16 put\n        h264_qpel16 avg", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/h264qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/h264qpel_neon.S", "line_start": 921, "line_end": 946}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:1", "text": "/*\n * Copyright (c) 2014 Seppo Tomperi <seppo.tomperi@vtt.fi>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n.macro hevc_loop_filter_chroma_start\n        ldr             r12, [r2]\n        ldr             r3, [r2, #4]\n        add             r2, r3, r12\n        cmp             r2, #0\n        it              eq\n        bxeq            lr\n.endm\n\n.macro hevc_loop_filter_chroma_body\n        vsubl.u8        q3, d4, d2\n        vsubl.u8        q11, d18, d19\n        vshl.i16        q3, #2\n        vadd.i16        q11, q3\n        vdup.16         d0, r12\n        vdup.16         d1, r3\n        vrshr.s16       q11, q11, #3\n        vneg.s16        q12, q0\n        vmovl.u8        q2, d4\n        vmin.s16        q11, q11, q0\n        vmax.s16        q11, q11, q12\n        vaddw.u8        q1, q11, d2\n        vsub.i16        q2, q11\n        vqmovun.s16     d2, q1\n        vqmovun.s16     d4, q2\n.endm\n\n.macro hevc_loop_filter_luma_start\n        ldr             r12, [r3]\n        ldr             r3, [r3, #4]\n        lsl             r3, #16\n        orr             r3, r12\n        cmp             r3, #0\n        it              eq\n        bxeq            lr\n        lsr             r3, #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:2", "text": "vrshr.s16       q11, q11, #3\n        vneg.s16        q12, q0\n        vmovl.u8        q2, d4\n        vmin.s16        q11, q11, q0\n        vmax.s16        q11, q11, q12\n        vaddw.u8        q1, q11, d2\n        vsub.i16        q2, q11\n        vqmovun.s16     d2, q1\n        vqmovun.s16     d4, q2\n.endm\n\n.macro hevc_loop_filter_luma_start\n        ldr             r12, [r3]\n        ldr             r3, [r3, #4]\n        lsl             r3, #16\n        orr             r3, r12\n        cmp             r3, #0\n        it              eq\n        bxeq            lr\n        lsr             r3, #16\n.endm\n\n.macro hevc_loop_filter_luma_body\n        vmovl.u8        q8, d16\n        vmovl.u8        q9, d18\n        vmovl.u8        q10, d20\n        vmovl.u8        q11, d22\n        vmovl.u8        q12, d24\n        vmovl.u8        q13, d26\n        vmovl.u8        q14, d28\n        vmovl.u8        q15, d30\n\n        vadd.i16        q7, q9, q11\n        vadd.i16        q6, q14, q12\n        vsub.i16        q7, q10\n        vsub.i16        q6, q13\n        vabd.s16        q7, q7, q10\n        vabd.s16        q6, q6, q13\n\n\n        vdup.16         q0, r2\n        vmov            q4, q7\n        vmov            q5, q6\n        vdup.16         d4, r12\n        vtrn.16         q7, q4\n        vtrn.16         q6, q5\n\n        vshl.u64        q7, #32\n        vshr.u64        q4, #32\n        vshl.u64        q6, #32\n        vshr.u64        q5, #32\n        vshr.u64        q7, #32\n        vshr.u64        q6, #32\n        vshl.u64        q5, #32\n        vshl.u64        q4, #32\n        vorr            q6, q5\n        vorr            q7, q4\n        vdup.16         d5, r3\n        vadd.i16        q5, q7, q6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:3", "text": "vdup.16         q0, r2\n        vmov            q4, q7\n        vmov            q5, q6\n        vdup.16         d4, r12\n        vtrn.16         q7, q4\n        vtrn.16         q6, q5\n\n        vshl.u64        q7, #32\n        vshr.u64        q4, #32\n        vshl.u64        q6, #32\n        vshr.u64        q5, #32\n        vshr.u64        q7, #32\n        vshr.u64        q6, #32\n        vshl.u64        q5, #32\n        vshl.u64        q4, #32\n        vorr            q6, q5\n        vorr            q7, q4\n        vdup.16         d5, r3\n        vadd.i16        q5, q7, q6\n\n        vmov            q4, q5\n        vmov            q3, q5\n        vtrn.32         q3, q4\n\n        vadd.i16        q4, q3\n\n        vshl.s16        q5, q5, #1\n        vcgt.s16        q3, q0, q4\n\n        vmovn.i16       d6, q3\n        vshr.s16        q1, q0, #2\n        vmovn.i16       d6, q3\n        vcgt.s16        q5, q1, q5\n        vmov            r7, s12\n        cmp             r7, #0\n        beq             bypasswrite\n\n        vpadd.i32       d0, d14, d12\n        vpadd.i32       d1, d15, d13\n        vmov            q4, q2\n        vshl.s16        q2, #2\n        vshr.s16        q1, q1, #1\n        vrhadd.s16      q2, q4\n\n        vabd.s16        q7, q8, q11\n        vaba.s16        q7, q15, q12\n\n        vmovn.i32       d0, q0\n        vmov            r5, r6, s0, s1\n        vcgt.s16        q6, q1, q7\n        vand            q5, q5, q6\n        vabd.s16        q7, q11, q12\n        vcgt.s16        q6, q2, q7\n        vand            q5, q5, q6\n\n        vmov            q2, q5\n        vtrn.s16        q5, q2\n        vshr.u64        q2, #32\n        vshl.u64        q5, #32\n        vshl.u64        q2, #32", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:4", "text": "vshl.s16        q2, #2\n        vshr.s16        q1, q1, #1\n        vrhadd.s16      q2, q4\n\n        vabd.s16        q7, q8, q11\n        vaba.s16        q7, q15, q12\n\n        vmovn.i32       d0, q0\n        vmov            r5, r6, s0, s1\n        vcgt.s16        q6, q1, q7\n        vand            q5, q5, q6\n        vabd.s16        q7, q11, q12\n        vcgt.s16        q6, q2, q7\n        vand            q5, q5, q6\n\n        vmov            q2, q5\n        vtrn.s16        q5, q2\n        vshr.u64        q2, #32\n        vshl.u64        q5, #32\n        vshl.u64        q2, #32\n        vshr.u64        q5, #32\n        vorr            q5, q2\n\n        vmov            q2, q5\n        vshl.i16        q7, q4, #1\n        vtrn.32         q2, q5\n        vand            q5, q2\n        vneg.s16        q6, q7\n        vmovn.i16       d4, q5\n        vmovn.i16       d4, q2\n        vmov            r8, s8\n\n        and             r9, r8, r7\n        cmp             r9, #0\n        beq             1f\n\n        vadd.i16        q2, q11, q12\n        vadd.i16        q4, q9, q8\n        vadd.i16        q1, q2, q10\n        vdup.16         d10, r9\n        vadd.i16        q0, q1, q9\n        vshl.i16        q4, #1\n        lsr             r9, #16\n        vadd.i16        q1, q0\n        vrshr.s16       q3, q0, #2\n        vadd.i16        q1, q13\n        vadd.i16        q4, q0\n        vsub.i16        q3, q10\n        vrshr.s16       q1, #3\n        vrshr.s16       q4, #3\n        vmax.s16        q3, q6\n        vsub.i16        q1, q11\n        vsub.i16        q4, q9\n        vmin.s16        q3, q7\n        vmax.s16        q4, q6\n        vmax.s16        q1, q6\n        vadd.i16        q3, q10\n        vmin.s16        q4, q7\n        vmin.s16        q1, q7\n        vdup.16         d11, r9", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:5", "text": "vadd.i16        q0, q1, q9\n        vshl.i16        q4, #1\n        lsr             r9, #16\n        vadd.i16        q1, q0\n        vrshr.s16       q3, q0, #2\n        vadd.i16        q1, q13\n        vadd.i16        q4, q0\n        vsub.i16        q3, q10\n        vrshr.s16       q1, #3\n        vrshr.s16       q4, #3\n        vmax.s16        q3, q6\n        vsub.i16        q1, q11\n        vsub.i16        q4, q9\n        vmin.s16        q3, q7\n        vmax.s16        q4, q6\n        vmax.s16        q1, q6\n        vadd.i16        q3, q10\n        vmin.s16        q4, q7\n        vmin.s16        q1, q7\n        vdup.16         d11, r9\n        vadd.i16        q4, q9\n        vadd.i16        q1, q11\n        vbit            q9, q4, q5\n        vadd.i16        q4, q2, q13\n        vbit            q11, q1, q5\n        vadd.i16        q0, q4, q14\n        vadd.i16        q2, q15, q14\n        vadd.i16        q4, q0\n\n        vshl.i16        q2, #1\n        vadd.i16        q4, q10\n        vbit            q10, q3, q5\n        vrshr.s16       q4, #3\n        vadd.i16        q2, q0\n        vrshr.s16       q3, q0, #2\n        vsub.i16        q4, q12\n        vrshr.s16       q2, #3\n        vsub.i16        q3, q13\n        vmax.s16        q4, q6\n        vsub.i16        q2, q14\n        vmax.s16        q3, q6\n        vmin.s16        q4, q7\n        vmax.s16        q2, q6\n        vmin.s16        q3, q7\n        vadd.i16        q4, q12\n        vmin.s16        q2, q7\n        vadd.i16        q3, q13\n        vbit            q12, q4, q5\n        vadd.i16        q2, q14\n        vbit            q13, q3, q5\n        vbit            q14, q2, q5\n\n1:\n        mvn             r8, r8\n        and             r9, r8, r7\n        cmp             r9, #0\n        beq             2f\n\n        vdup.16         q4, r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:6", "text": "vmax.s16        q3, q6\n        vmin.s16        q4, q7\n        vmax.s16        q2, q6\n        vmin.s16        q3, q7\n        vadd.i16        q4, q12\n        vmin.s16        q2, q7\n        vadd.i16        q3, q13\n        vbit            q12, q4, q5\n        vadd.i16        q2, q14\n        vbit            q13, q3, q5\n        vbit            q14, q2, q5\n\n1:\n        mvn             r8, r8\n        and             r9, r8, r7\n        cmp             r9, #0\n        beq             2f\n\n        vdup.16         q4, r2\n\n        vdup.16         d10, r9\n        lsr             r9, #16\n        vmov            q1, q4\n        vdup.16         d11, r9\n        vshr.s16        q1, #1\n        vsub.i16        q2, q12, q11\n        vadd.i16        q4, q1\n        vshl.s16        q0, q2, #3\n        vshr.s16        q4, #3\n        vadd.i16        q2, q0\n        vsub.i16        q0, q13, q10\n        vsub.i16        q2, q0\n        vshl.i16        q0, q0, #1\n        vsub.i16        q2, q0\n        vshl.s16        q1, q7, 2\n        vrshr.s16       q2, q2, #4\n        vadd.i16        q1, q7\n        vabs.s16        q3, q2\n        vshr.s16        q6, q6, #1\n        vcgt.s16        q1, q1, q3\n        vand            q5, q1\n        vshr.s16        q7, q7, #1\n        vmax.s16        q2, q2, q6\n        vmin.s16        q2, q2, q7\n\n        vshr.s16        q7, q7, #1\n        vrhadd.s16      q3, q9, q11\n        vneg.s16        q6, q7\n        vsub.s16        q3, q10\n        vdup.16         d2, r5\n        vhadd.s16       q3, q2\n        vdup.16         d3, r6\n        vmax.s16        q3, q3, q6\n        vcgt.s16        q1, q4, q1\n        vmin.s16        q3, q3, q7\n        vand            q1, q5\n        vadd.i16        q3, q10\n        lsr             r5, #16\n        lsr             r6, #16\n        vbit            q10, q3, q1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:7", "text": "vand            q5, q1\n        vshr.s16        q7, q7, #1\n        vmax.s16        q2, q2, q6\n        vmin.s16        q2, q2, q7\n\n        vshr.s16        q7, q7, #1\n        vrhadd.s16      q3, q9, q11\n        vneg.s16        q6, q7\n        vsub.s16        q3, q10\n        vdup.16         d2, r5\n        vhadd.s16       q3, q2\n        vdup.16         d3, r6\n        vmax.s16        q3, q3, q6\n        vcgt.s16        q1, q4, q1\n        vmin.s16        q3, q3, q7\n        vand            q1, q5\n        vadd.i16        q3, q10\n        lsr             r5, #16\n        lsr             r6, #16\n        vbit            q10, q3, q1\n\n        vrhadd.s16      q3, q14, q12\n        vdup.16         d2, r5\n        vsub.s16        q3, q13\n        vdup.16         d3, r6\n        vhsub.s16       q3, q2\n        vcgt.s16        q1, q4, q1\n        vmax.s16        q3, q3, q6\n        vand            q1, q5\n        vmin.s16        q3, q3, q7\n        vadd.i16        q3, q13\n        vbit            q13, q3, q1\n        vadd.i16        q0, q11, q2\n        vsub.i16        q4, q12, q2\n        vbit            q11, q0, q5\n        vbit            q12, q4, q5\n\n2:\n        vqmovun.s16     d16, q8\n        vqmovun.s16     d18, q9\n        vqmovun.s16     d20, q10\n        vqmovun.s16     d22, q11\n        vqmovun.s16     d24, q12\n        vqmovun.s16     d26, q13\n        vqmovun.s16     d28, q14\n        vqmovun.s16     d30, q15\n.endm\n\nfunction ff_hevc_v_loop_filter_luma_neon, export=1\n        hevc_loop_filter_luma_start\n        push            {r5-r11}\n        vpush           {d8-d15}\n        sub             r0, #4\n        vld1.8          {d16}, [r0], r1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d20}, [r0], r1\n        vld1.8          {d22}, [r0], r1\n        vld1.8          {d24}, [r0], r1\n        vld1.8          {d26}, [r0], r1\n        vld1.8          {d28}, [r0], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:8", "text": "vqmovun.s16     d20, q10\n        vqmovun.s16     d22, q11\n        vqmovun.s16     d24, q12\n        vqmovun.s16     d26, q13\n        vqmovun.s16     d28, q14\n        vqmovun.s16     d30, q15\n.endm\n\nfunction ff_hevc_v_loop_filter_luma_neon, export=1\n        hevc_loop_filter_luma_start\n        push            {r5-r11}\n        vpush           {d8-d15}\n        sub             r0, #4\n        vld1.8          {d16}, [r0], r1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d20}, [r0], r1\n        vld1.8          {d22}, [r0], r1\n        vld1.8          {d24}, [r0], r1\n        vld1.8          {d26}, [r0], r1\n        vld1.8          {d28}, [r0], r1\n        vld1.8          {d30}, [r0], r1\n        sub             r0, r0, r1, lsl #3\n        transpose_8x8   d16, d18, d20, d22, d24, d26, d28, d30\n        hevc_loop_filter_luma_body\n        transpose_8x8   d16, d18, d20, d22, d24, d26, d28, d30\n        vst1.8          {d16}, [r0], r1\n        vst1.8          {d18}, [r0], r1\n        vst1.8          {d20}, [r0], r1\n        vst1.8          {d22}, [r0], r1\n        vst1.8          {d24}, [r0], r1\n        vst1.8          {d26}, [r0], r1\n        vst1.8          {d28}, [r0], r1\n        vst1.8          {d30}, [r0]\n        vpop            {d8-d15}\n        pop             {r5-r11}\n        bx              lr\nendfunc\n\nfunction ff_hevc_h_loop_filter_luma_neon, export=1\n        hevc_loop_filter_luma_start\n        push            {r5-r11}\n        vpush           {d8-d15}\n        sub             r0, r0, r1, lsl #2\n        vld1.8          {d16}, [r0], r1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d20}, [r0], r1\n        vld1.8          {d22}, [r0], r1\n        vld1.8          {d24}, [r0], r1\n        vld1.8          {d26}, [r0], r1\n        vld1.8          {d28}, [r0], r1\n        vld1.8          {d30}, [r0], r1\n        sub             r0, r0, r1, lsl #3\n        add             r0, r1\n        hevc_loop_filter_luma_body\n        vst1.8          {d18}, [r0], r1\n        vst1.8          {d20}, [r0], r1\n        vst1.8          {d22}, [r0], r1\n        vst1.8          {d24}, [r0], r1\n        vst1.8          {d26}, [r0], r1\n        vst1.8          {d28}, [r0]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:9", "text": "push            {r5-r11}\n        vpush           {d8-d15}\n        sub             r0, r0, r1, lsl #2\n        vld1.8          {d16}, [r0], r1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d20}, [r0], r1\n        vld1.8          {d22}, [r0], r1\n        vld1.8          {d24}, [r0], r1\n        vld1.8          {d26}, [r0], r1\n        vld1.8          {d28}, [r0], r1\n        vld1.8          {d30}, [r0], r1\n        sub             r0, r0, r1, lsl #3\n        add             r0, r1\n        hevc_loop_filter_luma_body\n        vst1.8          {d18}, [r0], r1\n        vst1.8          {d20}, [r0], r1\n        vst1.8          {d22}, [r0], r1\n        vst1.8          {d24}, [r0], r1\n        vst1.8          {d26}, [r0], r1\n        vst1.8          {d28}, [r0]\nbypasswrite:\n        vpop            {d8-d15}\n        pop             {r5-r11}\n        bx              lr\nendfunc\n\nfunction ff_hevc_v_loop_filter_chroma_neon, export=1\n        hevc_loop_filter_chroma_start\n        sub             r0, #4\n        vld1.8          {d16}, [r0], r1\n        vld1.8          {d17}, [r0], r1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d2},  [r0], r1\n        vld1.8          {d4},  [r0], r1\n        vld1.8          {d19}, [r0], r1\n        vld1.8          {d20}, [r0], r1\n        vld1.8          {d21}, [r0], r1\n        sub             r0, r0, r1, lsl #3\n        transpose_8x8   d16, d17, d18, d2, d4, d19, d20, d21\n        hevc_loop_filter_chroma_body\n        transpose_8x8   d16, d17, d18, d2, d4, d19, d20, d21\n        vst1.8          {d16}, [r0], r1\n        vst1.8          {d17}, [r0], r1\n        vst1.8          {d18}, [r0], r1\n        vst1.8          {d2},  [r0], r1\n        vst1.8          {d4},  [r0], r1\n        vst1.8          {d19}, [r0], r1\n        vst1.8          {d20}, [r0], r1\n        vst1.8          {d21}, [r0]\n        bx              lr\nendfunc\n\nfunction ff_hevc_h_loop_filter_chroma_neon, export=1\n        hevc_loop_filter_chroma_start\n        sub             r0, r0, r1, lsl #1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d2}, [r0], r1\n        vld1.8          {d4}, [r0], r1\n        vld1.8          {d19}, [r0]\n        sub             r0, r0, r1, lsl #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:10", "text": "transpose_8x8   d16, d17, d18, d2, d4, d19, d20, d21\n        vst1.8          {d16}, [r0], r1\n        vst1.8          {d17}, [r0], r1\n        vst1.8          {d18}, [r0], r1\n        vst1.8          {d2},  [r0], r1\n        vst1.8          {d4},  [r0], r1\n        vst1.8          {d19}, [r0], r1\n        vst1.8          {d20}, [r0], r1\n        vst1.8          {d21}, [r0]\n        bx              lr\nendfunc\n\nfunction ff_hevc_h_loop_filter_chroma_neon, export=1\n        hevc_loop_filter_chroma_start\n        sub             r0, r0, r1, lsl #1\n        vld1.8          {d18}, [r0], r1\n        vld1.8          {d2}, [r0], r1\n        vld1.8          {d4}, [r0], r1\n        vld1.8          {d19}, [r0]\n        sub             r0, r0, r1, lsl #1\n        hevc_loop_filter_chroma_body\n        vst1.8          {d2}, [r0], r1\n        vst1.8          {d4}, [r0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 361, "line_end": 385}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:1", "text": "/*\n * Copyright (c) 2014 Seppo Tomperi <seppo.tomperi@vtt.fi>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n.macro hevc_loop_filter_chroma_start\n        ldr      r12, [r2]\n        ldr      r3, [r2, #4]\n        add      r2, r3, r12\n        cmp      r2, #0\n        it       eq\n        bxeq     lr\n.endm\n\n.macro hevc_loop_filter_chroma_body\n        vsubl.u8  q3, d4, d2\n        vsubl.u8  q11, d18, d19\n        vshl.i16  q3, #2\n        vadd.i16  q11, q3\n        vdup.16   d0, r12\n        vdup.16   d1, r3\n        vrshr.s16 q11, q11, #3\n        vneg.s16  q12, q0\n        vmovl.u8  q2, d4\n        vmin.s16  q11, q11, q0\n        vmax.s16  q11, q11, q12\n        vaddw.u8  q1, q11, d2\n        vsub.i16  q2, q11\n        vqmovun.s16 d2, q1\n        vqmovun.s16 d4, q2\n.endm\n\n.macro hevc_loop_filter_luma_start\n        ldr     r12, [r3]\n        ldr      r3, [r3, #4]\n        lsl      r3, #16\n        orr      r3, r12\n        cmp      r3, #0\n        it       eq\n        bxeq     lr\n        lsr      r3, #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:2", "text": "vrshr.s16 q11, q11, #3\n        vneg.s16  q12, q0\n        vmovl.u8  q2, d4\n        vmin.s16  q11, q11, q0\n        vmax.s16  q11, q11, q12\n        vaddw.u8  q1, q11, d2\n        vsub.i16  q2, q11\n        vqmovun.s16 d2, q1\n        vqmovun.s16 d4, q2\n.endm\n\n.macro hevc_loop_filter_luma_start\n        ldr     r12, [r3]\n        ldr      r3, [r3, #4]\n        lsl      r3, #16\n        orr      r3, r12\n        cmp      r3, #0\n        it       eq\n        bxeq     lr\n        lsr      r3, #16\n.endm\n\n.macro hevc_loop_filter_luma_body\n        vmovl.u8  q8, d16\n        vmovl.u8  q9, d18\n        vmovl.u8  q10, d20\n        vmovl.u8  q11, d22\n        vmovl.u8  q12, d24\n        vmovl.u8  q13, d26\n        vmovl.u8  q14, d28\n        vmovl.u8  q15, d30\n\n        vadd.i16   q7, q9, q11\n        vadd.i16   q6, q14, q12\n        vsub.i16   q7, q10\n        vsub.i16   q6, q13\n        vabd.s16   q7, q7, q10\n        vabd.s16   q6, q6, q13\n\n\n        vdup.16    q0, r2\n        vmov       q4, q7\n        vmov       q5, q6\n        vdup.16    d4, r12\n        vtrn.16    q7, q4\n        vtrn.16    q6, q5\n\n        vshl.u64   q7, #32\n        vshr.u64   q4, #32\n        vshl.u64   q6, #32\n        vshr.u64   q5, #32\n        vshr.u64   q7, #32\n        vshr.u64   q6, #32\n        vshl.u64   q5, #32\n        vshl.u64   q4, #32\n        vorr       q6, q5\n        vorr       q7, q4\n        vdup.16    d5, r3\n        vadd.i16   q5, q7, q6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:3", "text": "vdup.16    q0, r2\n        vmov       q4, q7\n        vmov       q5, q6\n        vdup.16    d4, r12\n        vtrn.16    q7, q4\n        vtrn.16    q6, q5\n\n        vshl.u64   q7, #32\n        vshr.u64   q4, #32\n        vshl.u64   q6, #32\n        vshr.u64   q5, #32\n        vshr.u64   q7, #32\n        vshr.u64   q6, #32\n        vshl.u64   q5, #32\n        vshl.u64   q4, #32\n        vorr       q6, q5\n        vorr       q7, q4\n        vdup.16    d5, r3\n        vadd.i16   q5, q7, q6\n\n        vmov       q4, q5\n        vmov       q3, q5\n        vtrn.32    q3, q4\n\n        vadd.i16   q4, q3\n\n        vshl.s16   q5, q5, #1\n        vcgt.s16   q3, q0, q4\n\n        vmovn.i16  d6, q3\n        vshr.s16   q1, q0, #2\n        vmovn.i16  d6, q3\n        vcgt.s16   q5, q1, q5\n        vmov       r7, s12\n        cmp        r7, #0\n        beq        bypasswrite\n\n        vpadd.i32  d0, d14, d12\n        vpadd.i32  d1, d15, d13\n        vmov       q4, q2\n        vshl.s16   q2, #2\n        vshr.s16   q1, q1, #1\n        vrhadd.s16 q2, q4\n\n        vabd.s16   q7, q8, q11\n        vaba.s16   q7, q15, q12\n\n        vmovn.i32  d0, q0\n        vmov       r5, r6, s0, s1\n        vcgt.s16   q6, q1, q7\n        vand       q5, q5, q6\n        vabd.s16   q7, q11, q12\n        vcgt.s16   q6, q2, q7\n        vand       q5, q5, q6\n\n        vmov       q2, q5\n        vtrn.s16   q5, q2\n        vshr.u64   q2, #32\n        vshl.u64   q5, #32\n        vshl.u64   q2, #32", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:4", "text": "vshl.s16   q2, #2\n        vshr.s16   q1, q1, #1\n        vrhadd.s16 q2, q4\n\n        vabd.s16   q7, q8, q11\n        vaba.s16   q7, q15, q12\n\n        vmovn.i32  d0, q0\n        vmov       r5, r6, s0, s1\n        vcgt.s16   q6, q1, q7\n        vand       q5, q5, q6\n        vabd.s16   q7, q11, q12\n        vcgt.s16   q6, q2, q7\n        vand       q5, q5, q6\n\n        vmov       q2, q5\n        vtrn.s16   q5, q2\n        vshr.u64   q2, #32\n        vshl.u64   q5, #32\n        vshl.u64   q2, #32\n        vshr.u64   q5, #32\n        vorr       q5, q2\n\n        vmov       q2, q5\n        vshl.i16   q7, q4, #1\n        vtrn.32    q2, q5\n        vand       q5, q2\n        vneg.s16   q6, q7\n        vmovn.i16  d4, q5\n        vmovn.i16  d4, q2\n        vmov       r8, s8\n\n        and        r9, r8, r7\n        cmp        r9, #0\n        beq        1f\n\n        vadd.i16  q2, q11, q12\n        vadd.i16  q4, q9, q8\n        vadd.i16  q1, q2, q10\n        vdup.16   d10, r9\n        vadd.i16  q0, q1, q9\n        vshl.i16  q4, #1\n        lsr        r9, #16\n        vadd.i16  q1, q0\n        vrshr.s16 q3, q0, #2\n        vadd.i16  q1, q13\n        vadd.i16  q4, q0\n        vsub.i16  q3, q10\n        vrshr.s16 q1, #3\n        vrshr.s16 q4, #3\n        vmax.s16  q3, q6\n        vsub.i16  q1, q11\n        vsub.i16  q4, q9\n        vmin.s16  q3, q7\n        vmax.s16  q4, q6\n        vmax.s16  q1, q6\n        vadd.i16  q3, q10\n        vmin.s16  q4, q7\n        vmin.s16  q1, q7\n        vdup.16   d11, r9", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:5", "text": "vadd.i16  q0, q1, q9\n        vshl.i16  q4, #1\n        lsr        r9, #16\n        vadd.i16  q1, q0\n        vrshr.s16 q3, q0, #2\n        vadd.i16  q1, q13\n        vadd.i16  q4, q0\n        vsub.i16  q3, q10\n        vrshr.s16 q1, #3\n        vrshr.s16 q4, #3\n        vmax.s16  q3, q6\n        vsub.i16  q1, q11\n        vsub.i16  q4, q9\n        vmin.s16  q3, q7\n        vmax.s16  q4, q6\n        vmax.s16  q1, q6\n        vadd.i16  q3, q10\n        vmin.s16  q4, q7\n        vmin.s16  q1, q7\n        vdup.16   d11, r9\n        vadd.i16  q4, q9\n        vadd.i16  q1, q11\n        vbit      q9, q4, q5\n        vadd.i16  q4, q2, q13\n        vbit      q11, q1, q5\n        vadd.i16  q0, q4, q14\n        vadd.i16  q2, q15, q14\n        vadd.i16  q4, q0\n\n        vshl.i16  q2, #1\n        vadd.i16  q4, q10\n        vbit      q10, q3, q5\n        vrshr.s16 q4, #3\n        vadd.i16  q2, q0\n        vrshr.s16 q3, q0, #2\n        vsub.i16  q4, q12\n        vrshr.s16 q2, #3\n        vsub.i16  q3, q13\n        vmax.s16  q4, q6\n        vsub.i16  q2, q14\n        vmax.s16  q3, q6\n        vmin.s16  q4, q7\n        vmax.s16  q2, q6\n        vmin.s16  q3, q7\n        vadd.i16  q4, q12\n        vmin.s16  q2, q7\n        vadd.i16  q3, q13\n        vbit      q12, q4, q5\n        vadd.i16  q2, q14\n        vbit      q13, q3, q5\n        vbit      q14, q2, q5\n\n1:\n        mvn       r8, r8\n        and       r9, r8, r7\n        cmp       r9, #0\n        beq       2f\n\n        vdup.16    q4, r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:6", "text": "vmax.s16  q3, q6\n        vmin.s16  q4, q7\n        vmax.s16  q2, q6\n        vmin.s16  q3, q7\n        vadd.i16  q4, q12\n        vmin.s16  q2, q7\n        vadd.i16  q3, q13\n        vbit      q12, q4, q5\n        vadd.i16  q2, q14\n        vbit      q13, q3, q5\n        vbit      q14, q2, q5\n\n1:\n        mvn       r8, r8\n        and       r9, r8, r7\n        cmp       r9, #0\n        beq       2f\n\n        vdup.16    q4, r2\n\n        vdup.16   d10, r9\n        lsr       r9, #16\n        vmov       q1, q4\n        vdup.16   d11, r9\n        vshr.s16   q1, #1\n        vsub.i16  q2, q12, q11\n        vadd.i16   q4, q1\n        vshl.s16  q0, q2, #3\n        vshr.s16   q4, #3\n        vadd.i16  q2, q0\n        vsub.i16  q0, q13, q10\n        vsub.i16  q2, q0\n        vshl.i16  q0, q0, #1\n        vsub.i16  q2, q0\n        vshl.s16  q1, q7, 2\n        vrshr.s16 q2, q2, #4\n        vadd.i16  q1, q7\n        vabs.s16  q3, q2\n        vshr.s16  q6, q6, #1\n        vcgt.s16  q1, q1, q3\n        vand      q5, q1\n        vshr.s16  q7, q7, #1\n        vmax.s16  q2, q2, q6\n        vmin.s16  q2, q2, q7\n\n        vshr.s16  q7, q7, #1\n        vrhadd.s16 q3, q9, q11\n        vneg.s16  q6, q7\n        vsub.s16  q3, q10\n        vdup.16   d2, r5\n        vhadd.s16 q3, q2\n        vdup.16   d3, r6\n        vmax.s16  q3, q3, q6\n        vcgt.s16  q1, q4, q1\n        vmin.s16  q3, q3, q7\n        vand      q1, q5\n        vadd.i16  q3, q10\n        lsr       r5, #16\n        lsr       r6, #16\n        vbit      q10, q3, q1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:7", "text": "vand      q5, q1\n        vshr.s16  q7, q7, #1\n        vmax.s16  q2, q2, q6\n        vmin.s16  q2, q2, q7\n\n        vshr.s16  q7, q7, #1\n        vrhadd.s16 q3, q9, q11\n        vneg.s16  q6, q7\n        vsub.s16  q3, q10\n        vdup.16   d2, r5\n        vhadd.s16 q3, q2\n        vdup.16   d3, r6\n        vmax.s16  q3, q3, q6\n        vcgt.s16  q1, q4, q1\n        vmin.s16  q3, q3, q7\n        vand      q1, q5\n        vadd.i16  q3, q10\n        lsr       r5, #16\n        lsr       r6, #16\n        vbit      q10, q3, q1\n\n        vrhadd.s16 q3, q14, q12\n        vdup.16   d2, r5\n        vsub.s16  q3, q13\n        vdup.16   d3, r6\n        vhsub.s16 q3, q2\n        vcgt.s16  q1, q4, q1\n        vmax.s16  q3, q3, q6\n        vand      q1, q5\n        vmin.s16  q3, q3, q7\n        vadd.i16  q3, q13\n        vbit      q13, q3, q1\n        vadd.i16  q0, q11, q2\n        vsub.i16  q4, q12, q2\n        vbit      q11, q0, q5\n        vbit      q12, q4, q5\n\n2:\n        vqmovun.s16 d16, q8\n        vqmovun.s16 d18, q9\n        vqmovun.s16 d20, q10\n        vqmovun.s16 d22, q11\n        vqmovun.s16 d24, q12\n        vqmovun.s16 d26, q13\n        vqmovun.s16 d28, q14\n        vqmovun.s16 d30, q15\n.endm\n\nfunction ff_hevc_v_loop_filter_luma_neon, export=1\n        hevc_loop_filter_luma_start\n        push     {r5-r11}\n        vpush    {d8-d15}\n        sub      r0, #4\n        vld1.8   {d16}, [r0], r1\n        vld1.8   {d18}, [r0], r1\n        vld1.8   {d20}, [r0], r1\n        vld1.8   {d22}, [r0], r1\n        vld1.8   {d24}, [r0], r1\n        vld1.8   {d26}, [r0], r1\n        vld1.8   {d28}, [r0], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:8", "text": "vqmovun.s16 d20, q10\n        vqmovun.s16 d22, q11\n        vqmovun.s16 d24, q12\n        vqmovun.s16 d26, q13\n        vqmovun.s16 d28, q14\n        vqmovun.s16 d30, q15\n.endm\n\nfunction ff_hevc_v_loop_filter_luma_neon, export=1\n        hevc_loop_filter_luma_start\n        push     {r5-r11}\n        vpush    {d8-d15}\n        sub      r0, #4\n        vld1.8   {d16}, [r0], r1\n        vld1.8   {d18}, [r0], r1\n        vld1.8   {d20}, [r0], r1\n        vld1.8   {d22}, [r0], r1\n        vld1.8   {d24}, [r0], r1\n        vld1.8   {d26}, [r0], r1\n        vld1.8   {d28}, [r0], r1\n        vld1.8   {d30}, [r0], r1\n        sub      r0, r0, r1, lsl #3\n        transpose_8x8 d16, d18, d20, d22, d24, d26, d28, d30\n        hevc_loop_filter_luma_body\n        transpose_8x8 d16, d18, d20, d22, d24, d26, d28, d30\n        vst1.8   {d16}, [r0], r1\n        vst1.8   {d18}, [r0], r1\n        vst1.8   {d20}, [r0], r1\n        vst1.8   {d22}, [r0], r1\n        vst1.8   {d24}, [r0], r1\n        vst1.8   {d26}, [r0], r1\n        vst1.8   {d28}, [r0], r1\n        vst1.8   {d30}, [r0]\n        vpop     {d8-d15}\n        pop      {r5-r11}\n        bx lr\nendfunc\n\nfunction ff_hevc_h_loop_filter_luma_neon, export=1\n        hevc_loop_filter_luma_start\n        push     {r5-r11}\n        vpush    {d8-d15}\n        sub      r0, r0, r1, lsl #2\n        vld1.8  {d16}, [r0], r1\n        vld1.8  {d18}, [r0], r1\n        vld1.8  {d20}, [r0], r1\n        vld1.8  {d22}, [r0], r1\n        vld1.8  {d24}, [r0], r1\n        vld1.8  {d26}, [r0], r1\n        vld1.8  {d28}, [r0], r1\n        vld1.8  {d30}, [r0], r1\n        sub        r0, r0, r1, lsl #3\n        add        r0, r1\n        hevc_loop_filter_luma_body\n        vst1.8   {d18}, [r0], r1\n        vst1.8   {d20}, [r0], r1\n        vst1.8   {d22}, [r0], r1\n        vst1.8   {d24}, [r0], r1\n        vst1.8   {d26}, [r0], r1\n        vst1.8   {d28}, [r0]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:9", "text": "push     {r5-r11}\n        vpush    {d8-d15}\n        sub      r0, r0, r1, lsl #2\n        vld1.8  {d16}, [r0], r1\n        vld1.8  {d18}, [r0], r1\n        vld1.8  {d20}, [r0], r1\n        vld1.8  {d22}, [r0], r1\n        vld1.8  {d24}, [r0], r1\n        vld1.8  {d26}, [r0], r1\n        vld1.8  {d28}, [r0], r1\n        vld1.8  {d30}, [r0], r1\n        sub        r0, r0, r1, lsl #3\n        add        r0, r1\n        hevc_loop_filter_luma_body\n        vst1.8   {d18}, [r0], r1\n        vst1.8   {d20}, [r0], r1\n        vst1.8   {d22}, [r0], r1\n        vst1.8   {d24}, [r0], r1\n        vst1.8   {d26}, [r0], r1\n        vst1.8   {d28}, [r0]\nbypasswrite:\n        vpop     {d8-d15}\n        pop      {r5-r11}\n        bx lr\nendfunc\n\nfunction ff_hevc_v_loop_filter_chroma_neon, export=1\n        hevc_loop_filter_chroma_start\n        sub      r0, #4\n        vld1.8   {d16}, [r0], r1\n        vld1.8   {d17}, [r0], r1\n        vld1.8   {d18}, [r0], r1\n        vld1.8   {d2},  [r0], r1\n        vld1.8   {d4},  [r0], r1\n        vld1.8   {d19}, [r0], r1\n        vld1.8   {d20}, [r0], r1\n        vld1.8   {d21}, [r0], r1\n        sub      r0, r0, r1, lsl #3\n        transpose_8x8 d16, d17, d18, d2, d4, d19, d20, d21\n        hevc_loop_filter_chroma_body\n        transpose_8x8 d16, d17, d18, d2, d4, d19, d20, d21\n        vst1.8   {d16}, [r0], r1\n        vst1.8   {d17}, [r0], r1\n        vst1.8   {d18}, [r0], r1\n        vst1.8   {d2},  [r0], r1\n        vst1.8   {d4},  [r0], r1\n        vst1.8   {d19}, [r0], r1\n        vst1.8   {d20}, [r0], r1\n        vst1.8   {d21}, [r0]\n        bx       lr\nendfunc\n\nfunction ff_hevc_h_loop_filter_chroma_neon, export=1\n        hevc_loop_filter_chroma_start\n        sub      r0, r0, r1, lsl #1\n        vld1.8   {d18}, [r0], r1\n        vld1.8   {d2}, [r0], r1\n        vld1.8   {d4}, [r0], r1\n        vld1.8   {d19}, [r0]\n        sub      r0, r0, r1, lsl #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_deblock_neon.S:10", "text": "transpose_8x8 d16, d17, d18, d2, d4, d19, d20, d21\n        vst1.8   {d16}, [r0], r1\n        vst1.8   {d17}, [r0], r1\n        vst1.8   {d18}, [r0], r1\n        vst1.8   {d2},  [r0], r1\n        vst1.8   {d4},  [r0], r1\n        vst1.8   {d19}, [r0], r1\n        vst1.8   {d20}, [r0], r1\n        vst1.8   {d21}, [r0]\n        bx       lr\nendfunc\n\nfunction ff_hevc_h_loop_filter_chroma_neon, export=1\n        hevc_loop_filter_chroma_start\n        sub      r0, r0, r1, lsl #1\n        vld1.8   {d18}, [r0], r1\n        vld1.8   {d2}, [r0], r1\n        vld1.8   {d4}, [r0], r1\n        vld1.8   {d19}, [r0]\n        sub      r0, r0, r1, lsl #1\n        hevc_loop_filter_chroma_body\n        vst1.8   {d2}, [r0], r1\n        vst1.8   {d4}, [r0]\n        bx       lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_deblock_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_deblock_neon.S", "line_start": 361, "line_end": 385}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:1", "text": "/*\n * ARM NEON optimised IDCT functions for HEVC decoding\n * Copyright (c) 2014 Seppo Tomperi <seppo.tomperi@vtt.fi>\n * Copyright (c) 2017 Alexandra Hájková\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nconst trans, align=4\n        .short 64, 83, 64, 36\n        .short 89, 75, 50, 18\n        .short 90, 87, 80, 70\n        .short 57, 43, 25, 9\n        .short 90, 90, 88, 85\n        .short 82, 78, 73, 67\n        .short 61, 54, 46, 38\n        .short 31, 22, 13, 4\nendconst\n\n.macro clip10 in1, in2, c1, c2\n        vmax.s16        \\in1, \\in1, \\c1\n        vmax.s16        \\in2, \\in2, \\c1\n        vmin.s16        \\in1, \\in1, \\c2\n        vmin.s16        \\in2, \\in2, \\c2\n.endm\n\nfunction ff_hevc_add_residual_4x4_8_neon, export=1\n        vld1.16         {q0-q1}, [r1, :128]\n        vld1.32         d4[0], [r0, :32], r2\n        vld1.32         d4[1], [r0, :32], r2\n        vld1.32         d5[0], [r0, :32], r2\n        vld1.32         d5[1], [r0, :32], r2\n        sub             r0, r0, r2, lsl #2\n        vmovl.u8        q8, d4\n        vmovl.u8        q9, d5\n        vqadd.s16       q0, q0, q8\n        vqadd.s16       q1, q1, q9\n        vqmovun.s16     d0, q0\n        vqmovun.s16     d1, q1\n        vst1.32         d0[0], [r0, :32], r2\n        vst1.32         d0[1], [r0, :32], r2\n        vst1.32         d1[0], [r0, :32], r2\n        vst1.32         d1[1], [r0, :32], r2\n        bx              lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:2", "text": ".endm\n\nfunction ff_hevc_add_residual_4x4_8_neon, export=1\n        vld1.16         {q0-q1}, [r1, :128]\n        vld1.32         d4[0], [r0, :32], r2\n        vld1.32         d4[1], [r0, :32], r2\n        vld1.32         d5[0], [r0, :32], r2\n        vld1.32         d5[1], [r0, :32], r2\n        sub             r0, r0, r2, lsl #2\n        vmovl.u8        q8, d4\n        vmovl.u8        q9, d5\n        vqadd.s16       q0, q0, q8\n        vqadd.s16       q1, q1, q9\n        vqmovun.s16     d0, q0\n        vqmovun.s16     d1, q1\n        vst1.32         d0[0], [r0, :32], r2\n        vst1.32         d0[1], [r0, :32], r2\n        vst1.32         d1[0], [r0, :32], r2\n        vst1.32         d1[1], [r0, :32], r2\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_4x4_10_neon, export=1\n        mov             r12, r0\n        vld1.16         {q0-q1}, [r1, :128]\n        vld1.16         d4, [r12, :64], r2\n        vld1.16         d5, [r12, :64], r2\n        vld1.16         d6, [r12, :64], r2\n        vqadd.s16       q0, q2\n        vld1.16         d7, [r12, :64], r2\n        vmov.s16        q12, #0\n        vqadd.s16       q1, q3\n        vmvn.s16        q13, #0xFC00 @ vmov.s16 #0x3FF\n        clip10          q0, q1, q12, q13\n        vst1.16         d0, [r0, :64], r2\n        vst1.16         d1, [r0, :64], r2\n        vst1.16         d2, [r0, :64], r2\n        vst1.16         d3, [r0, :64], r2\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_8x8_8_neon, export=1\n        add             r12, r0, r2\n        add             r2,  r2, r2\n        mov             r3,   #8\n1:      subs            r3,   #2\n        vld1.8          {d16},   [r0,  :64]\n        vld1.8          {d17},   [r12, :64]\n        vmovl.u8        q9,   d16\n        vld1.16         {q0-q1}, [r1,  :128]!\n        vmovl.u8        q8,   d17\n        vqadd.s16       q0,   q9\n        vqadd.s16       q1,   q8\n        vqmovun.s16     d0,   q0\n        vqmovun.s16     d1,   q1\n        vst1.8          d0,   [r0,  :64], r2\n        vst1.8          d1,   [r12, :64], r2\n        bne             1b\n        bx              lr\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:3", "text": "function ff_hevc_add_residual_8x8_8_neon, export=1\n        add             r12, r0, r2\n        add             r2,  r2, r2\n        mov             r3,   #8\n1:      subs            r3,   #2\n        vld1.8          {d16},   [r0,  :64]\n        vld1.8          {d17},   [r12, :64]\n        vmovl.u8        q9,   d16\n        vld1.16         {q0-q1}, [r1,  :128]!\n        vmovl.u8        q8,   d17\n        vqadd.s16       q0,   q9\n        vqadd.s16       q1,   q8\n        vqmovun.s16     d0,   q0\n        vqmovun.s16     d1,   q1\n        vst1.8          d0,   [r0,  :64], r2\n        vst1.8          d1,   [r12, :64], r2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_8x8_10_neon, export=1\n        add             r12, r0, r2\n        add             r2,  r2, r2\n        mov             r3,  #8\n        vmov.s16        q12, #0\n        vmvn.s16        q13, #0xFC00 @ vmov.s16 #0x3FF\n1:      subs            r3,  #2\n        vld1.16         {q0-q1}, [r1, :128]!\n        vld1.16         {q8},    [r0, :128]\n        vqadd.s16       q0, q8\n        vld1.16         {q9},    [r12, :128]\n        vqadd.s16       q1, q9\n        clip10          q0, q1, q12, q13\n        vst1.16         {q0}, [r0, :128], r2\n        vst1.16         {q1}, [r12, :128], r2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_16x16_8_neon, export=1\n        mov             r3,  #16\n        add             r12, r0, r2\n        add             r2,  r2, r2\n1:      subs            r3,  #2\n        vld1.8          {q8},     [r0, :128]\n        vld1.16         {q0, q1}, [r1, :128]!\n        vld1.8          {q11},    [r12, :128]\n        vld1.16         {q2, q3}, [r1, :128]!\n        vmovl.u8        q9,  d16\n        vmovl.u8        q10, d17\n        vmovl.u8        q12, d22\n        vmovl.u8        q13, d23\n        vqadd.s16       q0,  q9\n        vqadd.s16       q1,  q10\n        vqadd.s16       q2,  q12\n        vqadd.s16       q3,  q13\n        vqmovun.s16     d0,  q0\n        vqmovun.s16     d1,  q1\n        vqmovun.s16     d2,  q2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:4", "text": "function ff_hevc_add_residual_16x16_8_neon, export=1\n        mov             r3,  #16\n        add             r12, r0, r2\n        add             r2,  r2, r2\n1:      subs            r3,  #2\n        vld1.8          {q8},     [r0, :128]\n        vld1.16         {q0, q1}, [r1, :128]!\n        vld1.8          {q11},    [r12, :128]\n        vld1.16         {q2, q3}, [r1, :128]!\n        vmovl.u8        q9,  d16\n        vmovl.u8        q10, d17\n        vmovl.u8        q12, d22\n        vmovl.u8        q13, d23\n        vqadd.s16       q0,  q9\n        vqadd.s16       q1,  q10\n        vqadd.s16       q2,  q12\n        vqadd.s16       q3,  q13\n        vqmovun.s16     d0,  q0\n        vqmovun.s16     d1,  q1\n        vqmovun.s16     d2,  q2\n        vqmovun.s16     d3,  q3\n        vst1.8          {q0},     [r0, :128], r2\n        vst1.8          {q1},     [r12, :128], r2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_16x16_10_neon, export=1\n        mov             r3,  #16\n        vmov.s16        q12, #0\n        vmvn.s16        q13, #0xFC00 @ vmov.s16 #0x3FF\n        add             r12, r0, r2\n        add             r2,  r2, r2\n1:      subs            r3,  #2\n        vld1.16         {q8-q9},   [r0, :128]\n        vld1.16         {q0, q1},  [r1, :128]!\n        vqadd.s16       q0, q8\n        vld1.16         {q10-q11}, [r12, :128]\n        vqadd.s16       q1, q9\n        vld1.16         {q2, q3},  [r1, :128]!\n        vqadd.s16       q2, q10\n        vqadd.s16       q3, q11\n        clip10          q0, q1, q12, q13\n        clip10          q2, q3, q12, q13\n        vst1.16         {q0-q1},   [r0, :128], r2\n        vst1.16         {q2-q3},   [r12, :128], r2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_32x32_8_neon, export=1\n        vpush           {q4-q7}\n        add             r12, r0, r2\n        add             r2,  r2, r2\n        mov             r3,  #32\n1:      subs            r3,  #2\n        vld1.8          {q12, q13}, [r0,  :128]\n        vmovl.u8        q8,  d24\n        vmovl.u8        q9,  d25\n        vld1.8          {q14, q15}, [r12, :128]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:5", "text": "vqadd.s16       q2, q10\n        vqadd.s16       q3, q11\n        clip10          q0, q1, q12, q13\n        clip10          q2, q3, q12, q13\n        vst1.16         {q0-q1},   [r0, :128], r2\n        vst1.16         {q2-q3},   [r12, :128], r2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_32x32_8_neon, export=1\n        vpush           {q4-q7}\n        add             r12, r0, r2\n        add             r2,  r2, r2\n        mov             r3,  #32\n1:      subs            r3,  #2\n        vld1.8          {q12, q13}, [r0,  :128]\n        vmovl.u8        q8,  d24\n        vmovl.u8        q9,  d25\n        vld1.8          {q14, q15}, [r12, :128]\n        vmovl.u8        q10, d26\n        vmovl.u8        q11, d27\n        vmovl.u8        q12, d28\n        vldm            r1!, {q0-q7}\n        vmovl.u8        q13, d29\n        vmovl.u8        q14, d30\n        vmovl.u8        q15, d31\n        vqadd.s16       q0,  q8\n        vqadd.s16       q1,  q9\n        vqadd.s16       q2,  q10\n        vqadd.s16       q3,  q11\n        vqadd.s16       q4,  q12\n        vqadd.s16       q5,  q13\n        vqadd.s16       q6,  q14\n        vqadd.s16       q7,  q15\n        vqmovun.s16     d0,  q0\n        vqmovun.s16     d1,  q1\n        vqmovun.s16     d2,  q2\n        vqmovun.s16     d3,  q3\n        vqmovun.s16     d4,  q4\n        vqmovun.s16     d5,  q5\n        vst1.8          {q0, q1}, [r0, :128], r2\n        vqmovun.s16     d6,  q6\n        vqmovun.s16     d7,  q7\n        vst1.8          {q2, q3}, [r12, :128], r2\n        bne             1b\n        vpop            {q4-q7}\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_32x32_10_neon, export=1\n        mov             r3,  #32\n        add             r12, r0, #32\n        vmov.s16        q12, #0\n        vmvn.s16        q13, #0xFC00 @ vmov.s16 #0x3FF\n1:      subs            r3,  #1\n        vldm            r1!, {q0-q3}\n        vld1.16         {q8, q9},   [r0, :128]\n        vld1.16         {q10, q11}, [r12, :128]\n        vqadd.s16       q0, q8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:6", "text": "vqmovun.s16     d5,  q5\n        vst1.8          {q0, q1}, [r0, :128], r2\n        vqmovun.s16     d6,  q6\n        vqmovun.s16     d7,  q7\n        vst1.8          {q2, q3}, [r12, :128], r2\n        bne             1b\n        vpop            {q4-q7}\n        bx              lr\nendfunc\n\nfunction ff_hevc_add_residual_32x32_10_neon, export=1\n        mov             r3,  #32\n        add             r12, r0, #32\n        vmov.s16        q12, #0\n        vmvn.s16        q13, #0xFC00 @ vmov.s16 #0x3FF\n1:      subs            r3,  #1\n        vldm            r1!, {q0-q3}\n        vld1.16         {q8, q9},   [r0, :128]\n        vld1.16         {q10, q11}, [r12, :128]\n        vqadd.s16       q0, q8\n        vqadd.s16       q1, q9\n        vqadd.s16       q2, q10\n        vqadd.s16       q3, q11\n        clip10          q0, q1, q12, q13\n        clip10          q2, q3, q12, q13\n        vst1.16         {q0-q1},   [r0, :128], r2\n        vst1.16         {q2-q3},   [r12, :128], r2\n        bne             1b\n        bx              lr\nendfunc\n\n.macro idct_4x4_dc bitdepth\nfunction ff_hevc_idct_4x4_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        vdup.16         q0, r1\n        vdup.16         q1, r1\n        vst1.16         {q0, q1}, [r0, :128]\n        bx              lr\nendfunc\n.endm\n\n.macro idct_8x8_dc bitdepth\nfunction ff_hevc_idct_8x8_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        vdup.16         q8, r1\n        vdup.16         q9, r1\n        vmov.16         q10, q8\n        vmov.16         q11, q8\n        vmov.16         q12, q8\n        vmov.16         q13, q8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:7", "text": "vdup.16         q1, r1\n        vst1.16         {q0, q1}, [r0, :128]\n        bx              lr\nendfunc\n.endm\n\n.macro idct_8x8_dc bitdepth\nfunction ff_hevc_idct_8x8_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        vdup.16         q8, r1\n        vdup.16         q9, r1\n        vmov.16         q10, q8\n        vmov.16         q11, q8\n        vmov.16         q12, q8\n        vmov.16         q13, q8\n        vmov.16         q14, q8\n        vmov.16         q15, q8\n        vstm            r0, {q8-q15}\n        bx              lr\nendfunc\n.endm\n\n.macro idct_16x16_dc bitdepth\nfunction ff_hevc_idct_16x16_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        vdup.16         q8, r1\n        vdup.16         q9, r1\n        vmov.16         q10, q8\n        vmov.16         q11, q8\n        vmov.16         q12, q8\n        vmov.16         q13, q8\n        vmov.16         q14, q8\n        vmov.16         q15, q8\n        vstm            r0!, {q8-q15}\n        vstm            r0!, {q8-q15}\n        vstm            r0!, {q8-q15}\n        vstm            r0, {q8-q15}\n        bx              lr\nendfunc\n.endm\n\n.macro idct_32x32_dc bitdepth\nfunction ff_hevc_idct_32x32_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        mov             r3, #16", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:8", "text": "vmov.16         q13, q8\n        vmov.16         q14, q8\n        vmov.16         q15, q8\n        vstm            r0!, {q8-q15}\n        vstm            r0!, {q8-q15}\n        vstm            r0!, {q8-q15}\n        vstm            r0, {q8-q15}\n        bx              lr\nendfunc\n.endm\n\n.macro idct_32x32_dc bitdepth\nfunction ff_hevc_idct_32x32_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        mov             r3, #16\n        vdup.16         q8, r1\n        vdup.16         q9, r1\n        vmov.16         q10, q8\n        vmov.16         q11, q8\n        vmov.16         q12, q8\n        vmov.16         q13, q8\n        vmov.16         q14, q8\n        vmov.16         q15, q8\n1:      subs            r3, #1\n        vstm            r0!, {q8-q15}\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n.macro sum_sub out, in, c, op\n  .ifc \\op, +\n        vmlal.s16       \\out, \\in, \\c\n  .else\n        vmlsl.s16       \\out, \\in, \\c\n  .endif\n.endm\n\n.macro tr_4x4 in0, in1, in2, in3, out0, out1, out2, out3, shift, tmp0, tmp1, tmp2, tmp3, tmp4\n        vshll.s16       \\tmp0, \\in0, #6\n        vmull.s16       \\tmp2, \\in1, d4[1]\n        vmov            \\tmp1, \\tmp0\n        vmull.s16       \\tmp3, \\in1, d4[3]\n        vmlal.s16       \\tmp0, \\in2, d4[0] @e0\n        vmlsl.s16       \\tmp1, \\in2, d4[0] @e1\n        vmlal.s16       \\tmp2, \\in3, d4[3] @o0\n        vmlsl.s16       \\tmp3, \\in3, d4[1] @o1\n\n        vadd.s32        \\tmp4, \\tmp0, \\tmp2\n        vsub.s32        \\tmp0, \\tmp0, \\tmp2\n        vadd.s32        \\tmp2, \\tmp1, \\tmp3\n        vsub.s32        \\tmp1, \\tmp1, \\tmp3\n        vqrshrn.s32     \\out0, \\tmp4, #\\shift\n        vqrshrn.s32     \\out3, \\tmp0, #\\shift\n        vqrshrn.s32     \\out1, \\tmp2, #\\shift", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:9", "text": ".endif\n.endm\n\n.macro tr_4x4 in0, in1, in2, in3, out0, out1, out2, out3, shift, tmp0, tmp1, tmp2, tmp3, tmp4\n        vshll.s16       \\tmp0, \\in0, #6\n        vmull.s16       \\tmp2, \\in1, d4[1]\n        vmov            \\tmp1, \\tmp0\n        vmull.s16       \\tmp3, \\in1, d4[3]\n        vmlal.s16       \\tmp0, \\in2, d4[0] @e0\n        vmlsl.s16       \\tmp1, \\in2, d4[0] @e1\n        vmlal.s16       \\tmp2, \\in3, d4[3] @o0\n        vmlsl.s16       \\tmp3, \\in3, d4[1] @o1\n\n        vadd.s32        \\tmp4, \\tmp0, \\tmp2\n        vsub.s32        \\tmp0, \\tmp0, \\tmp2\n        vadd.s32        \\tmp2, \\tmp1, \\tmp3\n        vsub.s32        \\tmp1, \\tmp1, \\tmp3\n        vqrshrn.s32     \\out0, \\tmp4, #\\shift\n        vqrshrn.s32     \\out3, \\tmp0, #\\shift\n        vqrshrn.s32     \\out1, \\tmp2, #\\shift\n        vqrshrn.s32     \\out2, \\tmp1, #\\shift\n.endm\n\n.macro tr_4x4_8 in0, in1, in2, in3, out0, out1, out2, out3, tmp0, tmp1, tmp2, tmp3\n        vshll.s16       \\tmp0, \\in0, #6\n        vld1.s16        {\\in0}, [r1, :64]!\n        vmov            \\tmp1, \\tmp0\n        vmull.s16       \\tmp2, \\in1, \\in0[1]\n        vmull.s16       \\tmp3, \\in1, \\in0[3]\n        vmlal.s16       \\tmp0, \\in2, \\in0[0] @e0\n        vmlsl.s16       \\tmp1, \\in2, \\in0[0] @e1\n        vmlal.s16       \\tmp2, \\in3, \\in0[3] @o0\n        vmlsl.s16       \\tmp3, \\in3, \\in0[1] @o1\n\n        vld1.s16        {\\in0}, [r1, :64]\n\n        vadd.s32        \\out0, \\tmp0, \\tmp2\n        vadd.s32        \\out1, \\tmp1, \\tmp3\n        vsub.s32        \\out2, \\tmp1, \\tmp3\n        vsub.s32        \\out3, \\tmp0, \\tmp2\n\n        sub             r1,  r1,  #8\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n.macro idct_4x4 bitdepth\nfunction ff_hevc_idct_4x4_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vld1.s16        {q0-q1}, [r0, :128]\n\n        movrel          r1, trans\n        vld1.s16        {d4}, [r1, :64]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:10", "text": "sub             r1,  r1,  #8\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n.macro idct_4x4 bitdepth\nfunction ff_hevc_idct_4x4_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vld1.s16        {q0-q1}, [r0, :128]\n\n        movrel          r1, trans\n        vld1.s16        {d4}, [r1, :64]\n\n        tr_4x4          d0, d1, d2, d3, d16, d17, d18, d19, 7, q10, q11, q12, q13, q0\n        transpose_4x4   q8, q9, d16, d17, d18, d19\n\n        tr_4x4          d16, d17, d18, d19, d0, d1, d2, d3, 20 - \\bitdepth, q10, q11, q12, q13, q0\n        transpose_4x4   q0, q1, d0, d1, d2, d3\n        vst1.s16        {d0-d3}, [r0, :128]\n        bx              lr\nendfunc\n.endm\n\n.macro transpose8_4x4 r0, r1, r2, r3\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n        vtrn.32         \\r0,  \\r2\n        vtrn.32         \\r1,  \\r3\n.endm\n\n.macro transpose_8x8 r0, r1, r2, r3, r4, r5, r6, r7, l0, l1, l2, l3, l4, l5, l6, l7\n        transpose8_4x4  \\r0, \\r1, \\r2, \\r3\n        transpose8_4x4  \\r4, \\r5, \\r6, \\r7\n\n        transpose8_4x4  \\l0, \\l1, \\l2, \\l3\n        transpose8_4x4  \\l4, \\l5, \\l6, \\l7\n.endm\n\n.macro tr_8x4 shift, in0, in1, in2, in3, in4, in5, in6, in7\n        tr_4x4_8        \\in0, \\in2, \\in4, \\in6, q8, q9, q10, q11, q12, q13, q14, q15\n\n        vmull.s16       q14, \\in1, \\in0[2]\n        vmull.s16       q12, \\in1, \\in0[0]\n        vmull.s16       q13, \\in1, \\in0[1]\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:11", "text": "transpose8_4x4  \\r4, \\r5, \\r6, \\r7\n\n        transpose8_4x4  \\l0, \\l1, \\l2, \\l3\n        transpose8_4x4  \\l4, \\l5, \\l6, \\l7\n.endm\n\n.macro tr_8x4 shift, in0, in1, in2, in3, in4, in5, in6, in7\n        tr_4x4_8        \\in0, \\in2, \\in4, \\in6, q8, q9, q10, q11, q12, q13, q14, q15\n\n        vmull.s16       q14, \\in1, \\in0[2]\n        vmull.s16       q12, \\in1, \\in0[0]\n        vmull.s16       q13, \\in1, \\in0[1]\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -\n\n        sum_sub         q14, \\in7, \\in0[1], +\n        sum_sub         q12, \\in7, \\in0[3], +\n        sum_sub         q13, \\in7, \\in0[2], -\n\n        vadd.s32        q15, q10, q14\n        vsub.s32        q10, q10, q14\n        vqrshrn.s32     \\in2, q15, \\shift\n\n        vmull.s16       q15, \\in1, \\in0[3]\n        sum_sub         q15, \\in3, \\in0[2], -\n        sum_sub         q15, \\in5, \\in0[1], +\n        sum_sub         q15, \\in7, \\in0[0], -\n\n        vqrshrn.s32     \\in5, q10,  \\shift\n\n        vadd.s32        q10, q8, q12\n        vsub.s32        q8,  q8, q12\n        vadd.s32        q12, q9, q13\n        vsub.s32        q9,  q9, q13\n        vadd.s32        q14, q11, q15\n        vsub.s32        q11, q11, q15\n\n        vqrshrn.s32     \\in0, q10, \\shift\n        vqrshrn.s32     \\in7, q8,  \\shift\n        vqrshrn.s32     \\in1, q12, \\shift\n        vqrshrn.s32     \\in6, q9,  \\shift\n        vqrshrn.s32     \\in3, q14, \\shift\n        vqrshrn.s32     \\in4, q11, \\shift\n.endm\n\n.macro idct_8x8 bitdepth\nfunction ff_hevc_idct_8x8_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vpush           {q4-q7}\n\n        mov             r1,  r0\n        mov             r2,  #64\n        add             r3,  r0,  #32\n        vld1.s16        {q0-q1}, [r1,:128], r2\n        vld1.s16        {q2-q3}, [r3,:128], r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:12", "text": "vsub.s32        q11, q11, q15\n\n        vqrshrn.s32     \\in0, q10, \\shift\n        vqrshrn.s32     \\in7, q8,  \\shift\n        vqrshrn.s32     \\in1, q12, \\shift\n        vqrshrn.s32     \\in6, q9,  \\shift\n        vqrshrn.s32     \\in3, q14, \\shift\n        vqrshrn.s32     \\in4, q11, \\shift\n.endm\n\n.macro idct_8x8 bitdepth\nfunction ff_hevc_idct_8x8_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vpush           {q4-q7}\n\n        mov             r1,  r0\n        mov             r2,  #64\n        add             r3,  r0,  #32\n        vld1.s16        {q0-q1}, [r1,:128], r2\n        vld1.s16        {q2-q3}, [r3,:128], r2\n        vld1.s16        {q4-q5}, [r1,:128], r2\n        vld1.s16        {q6-q7}, [r3,:128], r2\n\n        movrel          r1, trans\n\n        tr_8x4          7, d0, d2, d4, d6, d8, d10, d12, d14\n        tr_8x4          7, d1, d3, d5, d7, d9, d11, d13, d15\n\n        @ Transpose each 4x4 block, and swap how d4-d7 and d8-d11 are used.\n        @ Layout before:\n        @ d0  d1\n        @ d2  d3\n        @ d4  d5\n        @ d6  d7\n        @ d8  d9\n        @ d10 d11\n        @ d12 d13\n        @ d14 d15\n        transpose_8x8   d0, d2, d4, d6, d8, d10, d12, d14, d1, d3, d5, d7, d9, d11, d13, d15\n        @ Now the layout is:\n        @ d0  d8\n        @ d2  d10\n        @ d4  d12\n        @ d6  d14\n        @ d1  d9\n        @ d3  d11\n        @ d5  d13\n        @ d7  d15\n\n        tr_8x4          20 - \\bitdepth, d0, d2, d4, d6, d1, d3, d5, d7\n        vswp            d0, d8\n        tr_8x4          20 - \\bitdepth, d0, d10, d12, d14, d9, d11, d13, d15\n        vswp            d0, d8\n\n        transpose_8x8   d0, d2, d4, d6, d8, d10, d12, d14, d1, d3, d5, d7, d9, d11, d13, d15\n\n        mov             r1,  r0\n        mov             r2,  #64\n        add             r3,  r0,  #32\n        vst1.s16        {q0-q1}, [r1,:128], r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:13", "text": "@ d0  d8\n        @ d2  d10\n        @ d4  d12\n        @ d6  d14\n        @ d1  d9\n        @ d3  d11\n        @ d5  d13\n        @ d7  d15\n\n        tr_8x4          20 - \\bitdepth, d0, d2, d4, d6, d1, d3, d5, d7\n        vswp            d0, d8\n        tr_8x4          20 - \\bitdepth, d0, d10, d12, d14, d9, d11, d13, d15\n        vswp            d0, d8\n\n        transpose_8x8   d0, d2, d4, d6, d8, d10, d12, d14, d1, d3, d5, d7, d9, d11, d13, d15\n\n        mov             r1,  r0\n        mov             r2,  #64\n        add             r3,  r0,  #32\n        vst1.s16        {q0-q1}, [r1,:128], r2\n        vst1.s16        {q2-q3}, [r3,:128], r2\n        vst1.s16        {q4-q5}, [r1,:128], r2\n        vst1.s16        {q6-q7}, [r3,:128], r2\n\n        vpop            {q4-q7}\n        bx              lr\nendfunc\n.endm\n\n.macro butterfly e, o, tmp_p, tmp_m\n        vadd.s32        \\tmp_p, \\e, \\o\n        vsub.s32        \\tmp_m, \\e, \\o\n.endm\n\n.macro tr16_8x4 in0, in1, in2, in3, in4, in5, in6, in7, offset\n        tr_4x4_8        \\in0, \\in2, \\in4, \\in6, q8, q9, q10, q11, q12, q13, q14, q15\n\n        vmull.s16       q12, \\in1, \\in0[0]\n        vmull.s16       q13, \\in1, \\in0[1]\n        vmull.s16       q14, \\in1, \\in0[2]\n        vmull.s16       q15, \\in1, \\in0[3]\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q15, \\in3, \\in0[2], -\n\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q15, \\in5, \\in0[1], +\n\n        sum_sub         q12, \\in7, \\in0[3], +\n        sum_sub         q13, \\in7, \\in0[2], -\n        sum_sub         q14, \\in7, \\in0[1], +\n        sum_sub         q15, \\in7, \\in0[0], -\n\n        butterfly       q8,  q12, q0, q7\n        butterfly       q9,  q13, q1, q6\n        butterfly       q10, q14, q2, q5\n        butterfly       q11, q15, q3, q4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:14", "text": "vmull.s16       q15, \\in1, \\in0[3]\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q15, \\in3, \\in0[2], -\n\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q15, \\in5, \\in0[1], +\n\n        sum_sub         q12, \\in7, \\in0[3], +\n        sum_sub         q13, \\in7, \\in0[2], -\n        sum_sub         q14, \\in7, \\in0[1], +\n        sum_sub         q15, \\in7, \\in0[0], -\n\n        butterfly       q8,  q12, q0, q7\n        butterfly       q9,  q13, q1, q6\n        butterfly       q10, q14, q2, q5\n        butterfly       q11, q15, q3, q4\n        add             r4,  sp,  #\\offset\n        vst1.s32        {q0-q1}, [r4, :128]!\n        vst1.s32        {q2-q3}, [r4, :128]!\n        vst1.s32        {q4-q5}, [r4, :128]!\n        vst1.s32        {q6-q7}, [r4, :128]\n.endm\n\n.macro load16 in0, in1, in2, in3, in4, in5, in6, in7\n        vld1.s16        {\\in0}, [r1, :64], r2\n        vld1.s16        {\\in1}, [r3, :64], r2\n        vld1.s16        {\\in2}, [r1, :64], r2\n        vld1.s16        {\\in3}, [r3, :64], r2\n        vld1.s16        {\\in4}, [r1, :64], r2\n        vld1.s16        {\\in5}, [r3, :64], r2\n        vld1.s16        {\\in6}, [r1, :64], r2\n        vld1.s16        {\\in7}, [r3, :64], r2\n.endm\n\n.macro add_member in, t0, t1, t2, t3, t4, t5, t6, t7, op0, op1, op2, op3, op4, op5, op6, op7\n        sum_sub         q5,  \\in, \\t0, \\op0\n        sum_sub         q6,  \\in, \\t1, \\op1\n        sum_sub         q7,  \\in, \\t2, \\op2\n        sum_sub         q8,  \\in, \\t3, \\op3\n        sum_sub         q9,  \\in, \\t4, \\op4\n        sum_sub         q10, \\in, \\t5, \\op5\n        sum_sub         q11, \\in, \\t6, \\op6\n        sum_sub         q12, \\in, \\t7, \\op7\n.endm\n\n.macro butterfly16 in0, in1, in2, in3, in4, in5, in6, in7\n        vadd.s32        q4, \\in0, \\in1\n        vsub.s32        \\in0, \\in0, \\in1\n        vadd.s32        \\in1, \\in2, \\in3\n        vsub.s32        \\in2, \\in2, \\in3\n        vadd.s32        \\in3, \\in4, \\in5\n        vsub.s32        \\in4, \\in4, \\in5\n        vadd.s32        \\in5, \\in6, \\in7\n        vsub.s32        \\in6, \\in6, \\in7\n.endm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:15", "text": "sum_sub         q6,  \\in, \\t1, \\op1\n        sum_sub         q7,  \\in, \\t2, \\op2\n        sum_sub         q8,  \\in, \\t3, \\op3\n        sum_sub         q9,  \\in, \\t4, \\op4\n        sum_sub         q10, \\in, \\t5, \\op5\n        sum_sub         q11, \\in, \\t6, \\op6\n        sum_sub         q12, \\in, \\t7, \\op7\n.endm\n\n.macro butterfly16 in0, in1, in2, in3, in4, in5, in6, in7\n        vadd.s32        q4, \\in0, \\in1\n        vsub.s32        \\in0, \\in0, \\in1\n        vadd.s32        \\in1, \\in2, \\in3\n        vsub.s32        \\in2, \\in2, \\in3\n        vadd.s32        \\in3, \\in4, \\in5\n        vsub.s32        \\in4, \\in4, \\in5\n        vadd.s32        \\in5, \\in6, \\in7\n        vsub.s32        \\in6, \\in6, \\in7\n.endm\n\n.macro store16 in0, in1, in2, in3, in4, in5, in6, in7, rx\n        vst1.s16        \\in0, [r1, :64], r2\n        vst1.s16        \\in1, [r3, :64], \\rx\n        vst1.s16        \\in2, [r1, :64], r2\n        vst1.s16        \\in3, [r3, :64], \\rx\n        vst1.s16        \\in4, [r1, :64], r2\n        vst1.s16        \\in5, [r3, :64], \\rx\n        vst1.s16        \\in6, [r1, :64], r2\n        vst1.s16        \\in7, [r3, :64], \\rx\n.endm\n\n.macro scale out0, out1, out2, out3, out4, out5, out6, out7, in0, in1, in2, in3, in4, in5, in6, in7, shift\n        vqrshrn.s32     \\out0, \\in0, \\shift\n        vqrshrn.s32     \\out1, \\in1, \\shift\n        vqrshrn.s32     \\out2, \\in2, \\shift\n        vqrshrn.s32     \\out3, \\in3, \\shift\n        vqrshrn.s32     \\out4, \\in4, \\shift\n        vqrshrn.s32     \\out5, \\in5, \\shift\n        vqrshrn.s32     \\out6, \\in6, \\shift\n        vqrshrn.s32     \\out7, \\in7, \\shift\n.endm\n\n@stores in1, in2, in4, in6 ascending from off1 and\n@stores in1, in3, in5, in7 descending from off2\n.macro store_to_stack off1, off2, in0, in2, in4, in6, in7, in5, in3, in1\n        add             r1, sp, #\\off1\n        add             r3, sp, #\\off2\n        mov             r2, #-16\n        vst1.s32        {\\in0}, [r1, :128]!\n        vst1.s32        {\\in1}, [r3, :128], r2\n        vst1.s32        {\\in2}, [r1, :128]!\n        vst1.s32        {\\in3}, [r3, :128], r2\n        vst1.s32        {\\in4}, [r1, :128]!\n        vst1.s32        {\\in5}, [r3, :128], r2\n        vst1.s32        {\\in6}, [r1, :128]\n        vst1.s32        {\\in7}, [r3, :128]\n.endm\n\n.macro tr_16x4 name, shift, offset, step\nfunction func_tr_16x4_\\name", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:16", "text": ".endm\n\n@stores in1, in2, in4, in6 ascending from off1 and\n@stores in1, in3, in5, in7 descending from off2\n.macro store_to_stack off1, off2, in0, in2, in4, in6, in7, in5, in3, in1\n        add             r1, sp, #\\off1\n        add             r3, sp, #\\off2\n        mov             r2, #-16\n        vst1.s32        {\\in0}, [r1, :128]!\n        vst1.s32        {\\in1}, [r3, :128], r2\n        vst1.s32        {\\in2}, [r1, :128]!\n        vst1.s32        {\\in3}, [r3, :128], r2\n        vst1.s32        {\\in4}, [r1, :128]!\n        vst1.s32        {\\in5}, [r3, :128], r2\n        vst1.s32        {\\in6}, [r1, :128]\n        vst1.s32        {\\in7}, [r3, :128]\n.endm\n\n.macro tr_16x4 name, shift, offset, step\nfunction func_tr_16x4_\\name\n        mov             r1,  r5\n        add             r3, r5, #(\\step * 64)\n        mov             r2, #(\\step * 128)\n        load16          d0, d1, d2, d3, d4, d5, d6, d7\n        movrel          r1, trans\n\n        tr16_8x4        d0, d1, d2, d3, d4, d5, d6, d7, \\offset\n\n        add             r1,  r5, #(\\step * 32)\n        add             r3,  r5, #(\\step * 3 *32)\n        mov             r2,  #(\\step * 128)\n        load16          d8, d9, d2, d3, d4, d5, d6, d7\n        movrel          r1, trans + 16\n        vld1.s16        {q0}, [r1, :128]\n        vmull.s16       q5, d8, d0[0]\n        vmull.s16       q6, d8, d0[1]\n        vmull.s16       q7, d8, d0[2]\n        vmull.s16       q8, d8, d0[3]\n        vmull.s16       q9, d8, d1[0]\n        vmull.s16       q10, d8, d1[1]\n        vmull.s16       q11, d8, d1[2]\n        vmull.s16       q12, d8, d1[3]\n\n        add_member      d9, d0[1], d1[0], d1[3], d1[1], d0[2], d0[0], d0[3], d1[2], +, +, +, -, -, -, -, -\n        add_member      d2, d0[2], d1[3], d0[3], d0[1], d1[2], d1[0], d0[0], d1[1], +, +, -, -, -, +, +, +\n        add_member      d3, d0[3], d1[1], d0[1], d1[3], d0[0], d1[2], d0[2], d1[0], +, -, -, +, +, +, -, -\n        add_member      d4, d1[0], d0[2], d1[2], d0[0], d1[3], d0[1], d1[1], d0[3], +, -, -, +, -, -, +, +\n        add_member      d5, d1[1], d0[0], d1[0], d1[2], d0[1], d0[3], d1[3], d0[2], +, -, +, +, -, +, +, -\n        add_member      d6, d1[2], d0[3], d0[0], d0[2], d1[1], d1[3], d1[0], d0[1], +, -, +, -, +, +, -, +\n        add_member      d7, d1[3], d1[2], d1[1], d1[0], d0[3], d0[2], d0[1], d0[0], +, -, +, -, +, -, +, -\n\n        add             r4, sp, #\\offset\n        vld1.s32        {q0-q1}, [r4, :128]!\n        vld1.s32        {q2-q3}, [r4, :128]!\n\n        butterfly16     q0, q5, q1, q6, q2, q7, q3, q8\n    .if \\shift > 0\n        scale           d26, d27, d28, d29, d30, d31, d16, d17, q4, q0, q5, q1, q6, q2, q7, q3, \\shift\n        transpose8_4x4  d26, d28, d30, d16\n        transpose8_4x4  d17, d31, d29, d27", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:17", "text": "vmull.s16       q11, d8, d1[2]\n        vmull.s16       q12, d8, d1[3]\n\n        add_member      d9, d0[1], d1[0], d1[3], d1[1], d0[2], d0[0], d0[3], d1[2], +, +, +, -, -, -, -, -\n        add_member      d2, d0[2], d1[3], d0[3], d0[1], d1[2], d1[0], d0[0], d1[1], +, +, -, -, -, +, +, +\n        add_member      d3, d0[3], d1[1], d0[1], d1[3], d0[0], d1[2], d0[2], d1[0], +, -, -, +, +, +, -, -\n        add_member      d4, d1[0], d0[2], d1[2], d0[0], d1[3], d0[1], d1[1], d0[3], +, -, -, +, -, -, +, +\n        add_member      d5, d1[1], d0[0], d1[0], d1[2], d0[1], d0[3], d1[3], d0[2], +, -, +, +, -, +, +, -\n        add_member      d6, d1[2], d0[3], d0[0], d0[2], d1[1], d1[3], d1[0], d0[1], +, -, +, -, +, +, -, +\n        add_member      d7, d1[3], d1[2], d1[1], d1[0], d0[3], d0[2], d0[1], d0[0], +, -, +, -, +, -, +, -\n\n        add             r4, sp, #\\offset\n        vld1.s32        {q0-q1}, [r4, :128]!\n        vld1.s32        {q2-q3}, [r4, :128]!\n\n        butterfly16     q0, q5, q1, q6, q2, q7, q3, q8\n    .if \\shift > 0\n        scale           d26, d27, d28, d29, d30, d31, d16, d17, q4, q0, q5, q1, q6, q2, q7, q3, \\shift\n        transpose8_4x4  d26, d28, d30, d16\n        transpose8_4x4  d17, d31, d29, d27\n        mov             r1, r6\n        add             r3, r6, #(24 +3*32)\n        mov             r2, #32\n        mov             r4, #-32\n        store16         d26, d27, d28, d29, d30, d31, d16, d17, r4\n    .else\n        store_to_stack  \\offset, (\\offset + 240), q4, q5, q6, q7, q3, q2, q1, q0\n    .endif\n\n        add             r4, sp, #(\\offset + 64)\n        vld1.s32        {q0-q1}, [r4, :128]!\n        vld1.s32        {q2-q3}, [r4, :128]\n        butterfly16     q0, q9, q1, q10, q2, q11, q3, q12\n    .if \\shift > 0\n        scale           d26, d27, d28, d29, d30, d31, d8, d9, q4, q0, q9, q1, q10, q2, q11, q3, \\shift\n        transpose8_4x4  d26, d28, d30, d8\n        transpose8_4x4  d9, d31, d29, d27\n\n        add             r1, r6, #8\n        add             r3, r6, #(16 + 3 * 32)\n        mov             r2, #32\n        mov             r4, #-32\n        store16         d26, d27, d28, d29, d30, d31, d8, d9, r4\n    .else\n        store_to_stack  (\\offset + 64), (\\offset + 176), q4, q9, q10, q11, q3, q2, q1, q0\n    .endif\n\n        bx              lr\nendfunc\n.endm\n\n.macro idct_16x16 bitdepth\nfunction ff_hevc_idct_16x16_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        push            {r4-r7, lr}\n        vpush           {q4-q7}\n\n        @ Align the stack, allocate a temp buffer\nT       mov             r7,  sp\nT       and             r7,  r7,  #15", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:18", "text": "mov             r2, #32\n        mov             r4, #-32\n        store16         d26, d27, d28, d29, d30, d31, d8, d9, r4\n    .else\n        store_to_stack  (\\offset + 64), (\\offset + 176), q4, q9, q10, q11, q3, q2, q1, q0\n    .endif\n\n        bx              lr\nendfunc\n.endm\n\n.macro idct_16x16 bitdepth\nfunction ff_hevc_idct_16x16_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        push            {r4-r7, lr}\n        vpush           {q4-q7}\n\n        @ Align the stack, allocate a temp buffer\nT       mov             r7,  sp\nT       and             r7,  r7,  #15\nA       and             r7,  sp,  #15\n        add             r7,  r7,  #640\n        sub             sp,  sp,  r7\n\n.irp i, 0, 1, 2, 3\n        add             r5, r0, #(8 * \\i)\n        add             r6, sp, #(8 * \\i * 16)\n        bl              func_tr_16x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3\n        add             r5, sp, #(8 * \\i)\n        add             r6, r0, #(8 * \\i * 16)\n        bl              func_tr_16x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  r7\n\n        vpop            {q4-q7}\n        pop             {r4-r7, pc}\nendfunc\n.endm\n\n.macro load32\n        add             r1,  r5, #64\n        add             r3,  r1, #128\n        mov             r2,  #256\n        vld1.s16        {d4}, [r1, :64], r2\n        vld1.s16        {d5}, [r3, :64], r2\n        vld1.s16        {d6}, [r1, :64], r2\n        vld1.s16        {d7}, [r3, :64], r2\n        vld1.s16        {d8}, [r1, :64], r2\n        vld1.s16        {d9}, [r3, :64], r2\n        vld1.s16        {d10}, [r1, :64], r2\n        vld1.s16        {d11}, [r3, :64], r2\n        vld1.s16        {d12}, [r1, :64], r2\n        vld1.s16        {d13}, [r3, :64], r2\n        vld1.s16        {d14}, [r1, :64], r2\n        vld1.s16        {d15}, [r3, :64], r2\n        vld1.s16        {d16}, [r1, :64], r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:19", "text": "endfunc\n.endm\n\n.macro load32\n        add             r1,  r5, #64\n        add             r3,  r1, #128\n        mov             r2,  #256\n        vld1.s16        {d4}, [r1, :64], r2\n        vld1.s16        {d5}, [r3, :64], r2\n        vld1.s16        {d6}, [r1, :64], r2\n        vld1.s16        {d7}, [r3, :64], r2\n        vld1.s16        {d8}, [r1, :64], r2\n        vld1.s16        {d9}, [r3, :64], r2\n        vld1.s16        {d10}, [r1, :64], r2\n        vld1.s16        {d11}, [r3, :64], r2\n        vld1.s16        {d12}, [r1, :64], r2\n        vld1.s16        {d13}, [r3, :64], r2\n        vld1.s16        {d14}, [r1, :64], r2\n        vld1.s16        {d15}, [r3, :64], r2\n        vld1.s16        {d16}, [r1, :64], r2\n        vld1.s16        {d17}, [r3, :64], r2\n        vld1.s16        {d18}, [r1, :64], r2\n        vld1.s16        {d19}, [r3, :64], r2\n.endm\n\n.macro add_member32 in, t0, t1, t2, t3, op0, op1, op2, op3\n        sum_sub         q10, \\in, \\t0, \\op0\n        sum_sub         q11, \\in, \\t1, \\op1\n        sum_sub         q12, \\in, \\t2, \\op2\n        sum_sub         q13, \\in, \\t3, \\op3\n.endm\n\n.macro butterfly32 in0, in1, in2, in3\n        vadd.s32        q1, \\in0, \\in1\n        vsub.s32        \\in0, \\in0, \\in1\n        vadd.s32        \\in1, \\in2, \\in3\n        vsub.s32        \\in2, \\in2, \\in3\n.endm\n\n.macro scale32 out0, out1, out2, out3, in0, in1, in2, in3, shift\n        vqrshrn.s32     \\out0, \\in0, \\shift\n        vqrshrn.s32     \\out1, \\in1, \\shift\n        vqrshrn.s32     \\out2, \\in2, \\shift\n        vqrshrn.s32     \\out3, \\in3, \\shift\n.endm\n\n.macro multiply in\n        vmull.s16       q10, d4, \\in[0]\n        vmull.s16       q11, d4, \\in[1]\n        vmull.s16       q12, d4, \\in[2]\n        vmull.s16       q13, d4, \\in[3]\n.endm\n\n.macro scale_store shift\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q10, q15, q11\n        scale32         d22, d23, d20, d21, q1, q14, q10, q15, \\shift\n\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q12, q15, q13", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:20", "text": "vqrshrn.s32     \\out0, \\in0, \\shift\n        vqrshrn.s32     \\out1, \\in1, \\shift\n        vqrshrn.s32     \\out2, \\in2, \\shift\n        vqrshrn.s32     \\out3, \\in3, \\shift\n.endm\n\n.macro multiply in\n        vmull.s16       q10, d4, \\in[0]\n        vmull.s16       q11, d4, \\in[1]\n        vmull.s16       q12, d4, \\in[2]\n        vmull.s16       q13, d4, \\in[3]\n.endm\n\n.macro scale_store shift\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q10, q15, q11\n        scale32         d22, d23, d20, d21, q1, q14, q10, q15, \\shift\n\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q12, q15, q13\n        scale32         d2, d3, d28, d29, q1, q14, q12, q15, \\shift\n        transpose8_4x4  d22, d20, d2, d28\n        transpose8_4x4  d29, d3, d21, d23\n        store16         d22, d23, d20, d21, d2, d3, d28, d29, r8\n\n        @ reload multiplication coefficients to q1\n        vld1.s16        {q1}, [r9, :128]\n.endm\n\nfunction tr_block1\n        multiply        d0\n        add_member32    d5,  d0[1], d1[0], d1[3], d2[2], +, +, +, +\n        add_member32    d6,  d0[2], d1[3], d3[0], d3[2], +, +, +, -\n        add_member32    d7,  d0[3], d2[2], d3[2], d1[3], +, +, -, -\n        add_member32    d8,  d1[0], d3[1], d2[1], d0[0], +, +, -, -\n        add_member32    d9,  d1[1], d3[3], d1[0], d1[2], +, -, -, -\n        add_member32    d10, d1[2], d3[0], d0[0], d3[1], +, -, -, -\n        add_member32    d11, d1[3], d2[1], d1[1], d2[3], +, -, -, +\n        add_member32    d12, d2[0], d1[2], d2[2], d1[0], +, -, -, +\n        add_member32    d13, d2[1], d0[3], d3[3], d0[2], +, -, -, +\n        add_member32    d14, d2[2], d0[1], d2[3], d2[1], +, -, +, +\n        add_member32    d15, d2[3], d0[2], d1[2], d3[3], +, -, +, -\n        add_member32    d16, d3[0], d1[1], d0[1], d2[0], +, -, +, -\n        add_member32    d17, d3[1], d2[0], d0[3], d0[1], +, -, +, -\n        add_member32    d18, d3[2], d2[3], d2[0], d1[1], +, -, +, -\n        add_member32    d19, d3[3], d3[2], d3[1], d3[0], +, -, +, -\n        bx              lr\nendfunc\n\nfunction tr_block2\n        multiply        d1\n        add_member32    d5,  d3[1], d3[3], d3[0], d2[1], +, -, -, -\n        add_member32    d6,  d2[1], d1[0], d0[0], d1[1], -, -, -, -\n        add_member32    d7,  d0[0], d1[2], d3[1], d2[3], -, -, -, +\n        add_member32    d8,  d2[0], d3[2], d1[1], d0[3], -, +, +, +\n        add_member32    d9,  d3[2], d0[3], d1[3], d3[1], +, +, +, -\n        add_member32    d10, d1[1], d1[3], d2[3], d0[0], +, +, -, -\n        add_member32    d11, d0[3], d3[1], d0[1], d3[3], +, -, -, +\n        add_member32    d12, d3[0], d0[2], d3[2], d0[1], +, -, -, +\n        add_member32    d13, d2[2], d2[0], d1[0], d3[2], -, -, +, +", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:21", "text": "add_member32    d14, d2[2], d0[1], d2[3], d2[1], +, -, +, +\n        add_member32    d15, d2[3], d0[2], d1[2], d3[3], +, -, +, -\n        add_member32    d16, d3[0], d1[1], d0[1], d2[0], +, -, +, -\n        add_member32    d17, d3[1], d2[0], d0[3], d0[1], +, -, +, -\n        add_member32    d18, d3[2], d2[3], d2[0], d1[1], +, -, +, -\n        add_member32    d19, d3[3], d3[2], d3[1], d3[0], +, -, +, -\n        bx              lr\nendfunc\n\nfunction tr_block2\n        multiply        d1\n        add_member32    d5,  d3[1], d3[3], d3[0], d2[1], +, -, -, -\n        add_member32    d6,  d2[1], d1[0], d0[0], d1[1], -, -, -, -\n        add_member32    d7,  d0[0], d1[2], d3[1], d2[3], -, -, -, +\n        add_member32    d8,  d2[0], d3[2], d1[1], d0[3], -, +, +, +\n        add_member32    d9,  d3[2], d0[3], d1[3], d3[1], +, +, +, -\n        add_member32    d10, d1[1], d1[3], d2[3], d0[0], +, +, -, -\n        add_member32    d11, d0[3], d3[1], d0[1], d3[3], +, -, -, +\n        add_member32    d12, d3[0], d0[2], d3[2], d0[1], +, -, -, +\n        add_member32    d13, d2[2], d2[0], d1[0], d3[2], -, -, +, +\n        add_member32    d14, d0[1], d3[0], d2[0], d0[2], -, +, +, -\n        add_member32    d15, d1[3], d0[1], d2[2], d3[0], -, +, -, -\n        add_member32    d16, d3[3], d2[1], d0[2], d1[0], +, +, -, +\n        add_member32    d17, d1[2], d2[3], d3[3], d2[2], +, -, -, +\n        add_member32    d18, d0[2], d0[1], d0[3], d1[2], +, -, +, -\n        add_member32    d19, d2[3], d2[2], d2[1], d2[0], +, -, +, -\n        bx              lr\nendfunc\n\nfunction tr_block3\n        multiply        d2\n        add_member32    d5,  d1[2], d0[3], d0[0], d0[2], -, -, -, -\n        add_member32    d6,  d2[2], d3[3], d2[3], d1[2], -, -, +, +\n        add_member32    d7,  d1[0], d0[2], d2[1], d3[3], +, +, +, -\n        add_member32    d8,  d3[0], d2[2], d0[1], d1[3], +, -, -, -\n        add_member32    d9,  d0[2], d2[0], d3[0], d0[0], -, -, +, +\n        add_member32    d10, d3[2], d1[0], d2[0], d2[2], -, +, +, -\n        add_member32    d11, d0[0], d3[2], d0[2], d3[0], +, +, -, -\n        add_member32    d12, d3[3], d0[1], d3[1], d0[3], -, -, +, +\n        add_member32    d13, d0[1], d2[3], d1[3], d1[1], -, +, +, -\n        add_member32    d14, d3[1], d1[3], d0[3], d3[2], +, +, -, +\n        add_member32    d15, d0[3], d1[1], d3[2], d2[0], +, -, +, +\n        add_member32    d16, d2[3], d3[1], d1[2], d0[1], -, -, +, -\n        add_member32    d17, d1[1], d0[0], d1[0], d2[1], -, +, -, +\n        add_member32    d18, d2[1], d3[0], d3[3], d3[1], +, -, +, +\n        add_member32    d19, d1[3], d1[2], d1[1], d1[0], +, -, +, -\n        bx              lr\nendfunc\n\nfunction tr_block4\n        multiply        d3\n        add_member32    d5,  d1[1], d2[0], d2[3], d3[2], -, -, -, -\n        add_member32    d6,  d0[0], d0[3], d2[0], d3[1], +, +, +, +\n        add_member32    d7,  d2[0], d0[0], d1[1], d3[0], -, -, -, -\n        add_member32    d8,  d3[3], d1[2], d0[2], d2[3], +, +, +, +\n        add_member32    d9,  d2[1], d2[3], d0[0], d2[2], +, -, -, -\n        add_member32    d10, d0[2], d3[3], d0[3], d2[1], -, -, +, +\n        add_member32    d11, d1[0], d2[2], d1[2], d2[0], +, +, -, -\n        add_member32    d12, d2[3], d1[1], d2[1], d1[3], -, -, +, +\n        add_member32    d13, d3[1], d0[1], d3[0], d1[2], -, +, -, -", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:22", "text": "add_member32    d14, d3[1], d1[3], d0[3], d3[2], +, +, -, +\n        add_member32    d15, d0[3], d1[1], d3[2], d2[0], +, -, +, +\n        add_member32    d16, d2[3], d3[1], d1[2], d0[1], -, -, +, -\n        add_member32    d17, d1[1], d0[0], d1[0], d2[1], -, +, -, +\n        add_member32    d18, d2[1], d3[0], d3[3], d3[1], +, -, +, +\n        add_member32    d19, d1[3], d1[2], d1[1], d1[0], +, -, +, -\n        bx              lr\nendfunc\n\nfunction tr_block4\n        multiply        d3\n        add_member32    d5,  d1[1], d2[0], d2[3], d3[2], -, -, -, -\n        add_member32    d6,  d0[0], d0[3], d2[0], d3[1], +, +, +, +\n        add_member32    d7,  d2[0], d0[0], d1[1], d3[0], -, -, -, -\n        add_member32    d8,  d3[3], d1[2], d0[2], d2[3], +, +, +, +\n        add_member32    d9,  d2[1], d2[3], d0[0], d2[2], +, -, -, -\n        add_member32    d10, d0[2], d3[3], d0[3], d2[1], -, -, +, +\n        add_member32    d11, d1[0], d2[2], d1[2], d2[0], +, +, -, -\n        add_member32    d12, d2[3], d1[1], d2[1], d1[3], -, -, +, +\n        add_member32    d13, d3[1], d0[1], d3[0], d1[2], -, +, -, -\n        add_member32    d14, d1[2], d1[0], d3[3], d1[1], +, -, +, +\n        add_member32    d15, d0[1], d2[1], d3[1], d1[0], -, +, +, -\n        add_member32    d16, d1[3], d3[2], d2[2], d0[3], +, -, -, +\n        add_member32    d17, d3[2], d3[0], d1[3], d0[2], -, -, +, -\n        add_member32    d18, d2[2], d1[3], d1[0], d0[1], -, +, -, +\n        add_member32    d19, d0[3], d0[2], d0[1], d0[0], +, -, +, -\n        bx              lr\nendfunc\n\n.macro tr_32x4 name, shift\nfunction func_tr_32x4_\\name\n        mov             r10, lr\n        bl              func_tr_16x4_noscale\n\n        load32\n        movrel          r9, trans + 32\n        vld1.s16        {q0}, [r9, :128]!\n        vld1.s16        {q1}, [r9, :128]\n        add             r4, sp, #2048\n        mov             r2, #64\n        mov             r8, #-64\n\n        bl              tr_block1\n        mov             r1, r11\n        add             r3, r11, #(56 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block2\n        add             r1, r11, #8\n        add             r3, r11, #(48 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block3\n        add             r1, r11, #16\n        add             r3, r11, #(40 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block4\n        add             r1, r11, #24\n        add             r3, r11, #(32 + 3 * 64)", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:23", "text": "mov             r8, #-64\n\n        bl              tr_block1\n        mov             r1, r11\n        add             r3, r11, #(56 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block2\n        add             r1, r11, #8\n        add             r3, r11, #(48 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block3\n        add             r1, r11, #16\n        add             r3, r11, #(40 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block4\n        add             r1, r11, #24\n        add             r3, r11, #(32 + 3 * 64)\n        scale_store     \\shift\n\n        bx              r10\nendfunc\n.endm\n\n.macro idct_32x32 bitdepth\nfunction ff_hevc_idct_32x32_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        push            {r4-r11, lr}\n        vpush           {q4-q7}\n\n        @ Align the stack, allocate a temp buffer\nT       mov             r7,  sp\nT       and             r7,  r7,  #15\nA       and             r7,  sp,  #15\n        add             r7,  r7,  #2432\n        sub             sp,  sp,  r7\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             r5, r0, #(8 * \\i)\n        add             r11, sp, #(8 * \\i * 32)\n        bl              func_tr_32x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             r5, sp, #(8 * \\i)\n        add             r11, r0, #(8 * \\i * 32)\n        bl              func_tr_32x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  r7\n        vpop            {q4-q7}\n        pop             {r4-r11, pc}\nendfunc\n.endm\n\ntr_16x4 firstpass, 7, 512, 1\ntr_16x4 secondpass_8, 20 - 8, 512, 1\ntr_16x4 secondpass_10, 20 - 10, 512, 1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:24", "text": "add             r5, r0, #(8 * \\i)\n        add             r11, sp, #(8 * \\i * 32)\n        bl              func_tr_32x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             r5, sp, #(8 * \\i)\n        add             r11, r0, #(8 * \\i * 32)\n        bl              func_tr_32x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  r7\n        vpop            {q4-q7}\n        pop             {r4-r11, pc}\nendfunc\n.endm\n\ntr_16x4 firstpass, 7, 512, 1\ntr_16x4 secondpass_8, 20 - 8, 512, 1\ntr_16x4 secondpass_10, 20 - 10, 512, 1\ntr_16x4 noscale, 0, 2048, 4\n.ltorg\ntr_32x4 firstpass, 7\ntr_32x4 secondpass_8, 20 - 8\ntr_32x4 secondpass_10, 20 - 10\n.ltorg\n\nidct_4x4 8\nidct_4x4_dc 8\nidct_4x4 10\nidct_4x4_dc 10\nidct_8x8 8\nidct_8x8_dc 8\nidct_8x8 10\nidct_8x8_dc 10\nidct_16x16 8\nidct_16x16_dc 8\nidct_16x16 10\nidct_16x16_dc 10\nidct_32x32 8\nidct_32x32_dc 8\nidct_32x32 10\nidct_32x32_dc 10\n\n/* uses registers q2 - q9 for temp values */\n/* TODO: reorder */\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        vaddl.s16       q5, \\r0, \\r2    // c0 = src0 + src2\n        vaddl.s16       q2, \\r2, \\r3    // c1 = src2 + src3\n        vsubl.s16       q4, \\r0, \\r3    // c2 = src0 - src3\n        vmull.s16       q6, \\r1, d0[0]  // c3 = 74 * src1\n\n        vaddl.s16       q7, \\r0, \\r3    // src0 + src3\n        vsubw.s16       q7, q7, \\r2     // src0 - src2 + src3\n        vmul.s32        q7, q7, d0[0]   // dst2 = 74 * (src0 - src2 + src3)\n\n        vmul.s32        q8, q5, d0[1]   // 29 * c0\n        vmul.s32        q9, q2, d1[0]   // 55 * c1\n        vadd.s32        q8, q9          // 29 * c0 + 55 * c1\n        vadd.s32        q8, q6          // dst0 = 29 * c0 + 55 * c1 + c3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:25", "text": "idct_32x32_dc 8\nidct_32x32 10\nidct_32x32_dc 10\n\n/* uses registers q2 - q9 for temp values */\n/* TODO: reorder */\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        vaddl.s16       q5, \\r0, \\r2    // c0 = src0 + src2\n        vaddl.s16       q2, \\r2, \\r3    // c1 = src2 + src3\n        vsubl.s16       q4, \\r0, \\r3    // c2 = src0 - src3\n        vmull.s16       q6, \\r1, d0[0]  // c3 = 74 * src1\n\n        vaddl.s16       q7, \\r0, \\r3    // src0 + src3\n        vsubw.s16       q7, q7, \\r2     // src0 - src2 + src3\n        vmul.s32        q7, q7, d0[0]   // dst2 = 74 * (src0 - src2 + src3)\n\n        vmul.s32        q8, q5, d0[1]   // 29 * c0\n        vmul.s32        q9, q2, d1[0]   // 55 * c1\n        vadd.s32        q8, q9          // 29 * c0 + 55 * c1\n        vadd.s32        q8, q6          // dst0 = 29 * c0 + 55 * c1 + c3\n\n        vmul.s32        q2, q2, d0[1]   // 29 * c1\n        vmul.s32        q9, q4, d1[0]   // 55 * c2\n        vsub.s32        q9, q2          // 55 * c2 - 29 * c1\n        vadd.s32        q9, q6          // dst1 = 55 * c2 - 29 * c1 + c3\n\n        vmul.s32        q5, q5, d1[0]   // 55 * c0\n        vmul.s32        q4, q4, d0[1]   // 29 * c2\n        vadd.s32        q5, q4          // 55 * c0 + 29 * c2\n        vsub.s32        q5, q6          // dst3 = 55 * c0 + 29 * c2 - c3\n\n        vqrshrn.s32     \\r0, q8, \\shift\n        vqrshrn.s32     \\r1, q9, \\shift\n        vqrshrn.s32     \\r2, q7, \\shift\n        vqrshrn.s32     \\r3, q5, \\shift\n.endm\n\n.ltorg\nfunction ff_hevc_transform_luma_4x4_neon_8, export=1\n        vpush           {d8-d15}\n        vld1.16         {q14, q15}, [r0]  // coeffs\n        ldr             r3, =0x4a  // 74\n        vmov.32         d0[0], r3\n        ldr             r3, =0x1d  // 29\n        vmov.32         d0[1], r3\n        ldr             r3, =0x37  // 55\n        vmov.32         d1[0], r3\n\n        tr4_luma_shift  d28, d29, d30, d31, #7\n\n        vtrn.16         d28, d29\n        vtrn.16         d30, d31\n        vtrn.32         q14, q15\n\n        tr4_luma_shift  d28, d29, d30, d31, #12\n\n        vtrn.16         d28, d29\n        vtrn.16         d30, d31\n        vtrn.32         q14, q15\n        vst1.16         {q14, q15}, [r0]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:26", "text": "vld1.16         {q14, q15}, [r0]  // coeffs\n        ldr             r3, =0x4a  // 74\n        vmov.32         d0[0], r3\n        ldr             r3, =0x1d  // 29\n        vmov.32         d0[1], r3\n        ldr             r3, =0x37  // 55\n        vmov.32         d1[0], r3\n\n        tr4_luma_shift  d28, d29, d30, d31, #7\n\n        vtrn.16         d28, d29\n        vtrn.16         d30, d31\n        vtrn.32         q14, q15\n\n        tr4_luma_shift  d28, d29, d30, d31, #12\n\n        vtrn.16         d28, d29\n        vtrn.16         d30, d31\n        vtrn.32         q14, q15\n        vst1.16         {q14, q15}, [r0]\n        vpop            {d8-d15}\n        bx              lr\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 1001, "line_end": 1023}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:24", "text": "add             r5, r0, #(8 * \\i)\n        add             r11, sp, #(8 * \\i * 32)\n        bl              func_tr_32x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             r5, sp, #(8 * \\i)\n        add             r11, r0, #(8 * \\i * 32)\n        bl              func_tr_32x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  r7\n        vpop            {q4-q7}\n        pop             {r4-r11, pc}\nendfunc\n.endm\n\ntr_16x4 firstpass, 7, 512, 1\ntr_16x4 secondpass_8, 20 - 8, 512, 1\ntr_16x4 secondpass_10, 20 - 10, 512, 1\ntr_16x4 noscale, 0, 2048, 4\n.ltorg\ntr_32x4 firstpass, 7\ntr_32x4 secondpass_8, 20 - 8\ntr_32x4 secondpass_10, 20 - 10\n.ltorg\n\nidct_4x4 8\nidct_4x4_dc 8\nidct_4x4 10\nidct_4x4_dc 10\nidct_8x8 8\nidct_8x8_dc 8\nidct_8x8 10\nidct_8x8_dc 10\nidct_16x16 8\nidct_16x16_dc 8\nidct_16x16 10\nidct_16x16_dc 10\nidct_32x32 8\nidct_32x32_dc 8\nidct_32x32 10\nidct_32x32_dc 10\n\n/* uses registers q2 - q9 for temp values */\n/* TODO: reorder */\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        vaddl.s16   q5, \\r0, \\r2    // c0 = src0 + src2\n        vaddl.s16   q2, \\r2, \\r3    // c1 = src2 + src3\n        vsubl.s16   q4, \\r0, \\r3    // c2 = src0 - src3\n        vmull.s16   q6, \\r1, d0[0]  // c3 = 74 * src1\n\n        vaddl.s16   q7, \\r0, \\r3    // src0 + src3\n        vsubw.s16   q7, q7, \\r2     // src0 - src2 + src3\n        vmul.s32    q7, q7, d0[0]   // dst2 = 74 * (src0 - src2 + src3)\n\n        vmul.s32    q8, q5, d0[1]   // 29 * c0\n        vmul.s32    q9, q2, d1[0]   // 55 * c1\n        vadd.s32    q8, q9          // 29 * c0 + 55 * c1\n        vadd.s32    q8, q6          // dst0 = 29 * c0 + 55 * c1 + c3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d94e2b0f7c0b976449d3c4cca24531a796d1043c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d94e2b0f7c0b976449d3c4cca24531a796d1043c/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:25", "text": "idct_32x32_dc 8\nidct_32x32 10\nidct_32x32_dc 10\n\n/* uses registers q2 - q9 for temp values */\n/* TODO: reorder */\n.macro tr4_luma_shift r0, r1, r2, r3, shift\n        vaddl.s16   q5, \\r0, \\r2    // c0 = src0 + src2\n        vaddl.s16   q2, \\r2, \\r3    // c1 = src2 + src3\n        vsubl.s16   q4, \\r0, \\r3    // c2 = src0 - src3\n        vmull.s16   q6, \\r1, d0[0]  // c3 = 74 * src1\n\n        vaddl.s16   q7, \\r0, \\r3    // src0 + src3\n        vsubw.s16   q7, q7, \\r2     // src0 - src2 + src3\n        vmul.s32    q7, q7, d0[0]   // dst2 = 74 * (src0 - src2 + src3)\n\n        vmul.s32    q8, q5, d0[1]   // 29 * c0\n        vmul.s32    q9, q2, d1[0]   // 55 * c1\n        vadd.s32    q8, q9          // 29 * c0 + 55 * c1\n        vadd.s32    q8, q6          // dst0 = 29 * c0 + 55 * c1 + c3\n\n        vmul.s32    q2, q2, d0[1]   // 29 * c1\n        vmul.s32    q9, q4, d1[0]   // 55 * c2\n        vsub.s32    q9, q2          // 55 * c2 - 29 * c1\n        vadd.s32    q9, q6          // dst1 = 55 * c2 - 29 * c1 + c3\n\n        vmul.s32    q5, q5, d1[0]   // 55 * c0\n        vmul.s32    q4, q4, d0[1]   // 29 * c2\n        vadd.s32    q5, q4          // 55 * c0 + 29 * c2\n        vsub.s32    q5, q6          // dst3 = 55 * c0 + 29 * c2 - c3\n\n        vqrshrn.s32   \\r0, q8, \\shift\n        vqrshrn.s32   \\r1, q9, \\shift\n        vqrshrn.s32   \\r2, q7, \\shift\n        vqrshrn.s32   \\r3, q5, \\shift\n.endm\n\n.ltorg\nfunction ff_hevc_transform_luma_4x4_neon_8, export=1\n        vpush       {d8-d15}\n        vld1.16     {q14, q15}, [r0]  // coeffs\n        ldr         r3, =0x4a  // 74\n        vmov.32     d0[0], r3\n        ldr         r3, =0x1d  // 29\n        vmov.32     d0[1], r3\n        ldr         r3, =0x37  // 55\n        vmov.32     d1[0], r3\n\n        tr4_luma_shift d28, d29, d30, d31, #7\n\n        vtrn.16     d28, d29\n        vtrn.16     d30, d31\n        vtrn.32     q14, q15\n\n        tr4_luma_shift d28, d29, d30, d31, #12\n\n        vtrn.16     d28, d29\n        vtrn.16     d30, d31\n        vtrn.32     q14, q15\n        vst1.16     {q14, q15}, [r0]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d94e2b0f7c0b976449d3c4cca24531a796d1043c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d94e2b0f7c0b976449d3c4cca24531a796d1043c/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:26", "text": "vld1.16     {q14, q15}, [r0]  // coeffs\n        ldr         r3, =0x4a  // 74\n        vmov.32     d0[0], r3\n        ldr         r3, =0x1d  // 29\n        vmov.32     d0[1], r3\n        ldr         r3, =0x37  // 55\n        vmov.32     d1[0], r3\n\n        tr4_luma_shift d28, d29, d30, d31, #7\n\n        vtrn.16     d28, d29\n        vtrn.16     d30, d31\n        vtrn.32     q14, q15\n\n        tr4_luma_shift d28, d29, d30, d31, #12\n\n        vtrn.16     d28, d29\n        vtrn.16     d30, d31\n        vtrn.32     q14, q15\n        vst1.16     {q14, q15}, [r0]\n        vpop        {d8-d15}\n        bx lr\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d94e2b0f7c0b976449d3c4cca24531a796d1043c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d94e2b0f7c0b976449d3c4cca24531a796d1043c/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 1001, "line_end": 1023}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:14", "text": "vmull.s16       q15, \\in1, \\in0[3]\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q15, \\in3, \\in0[2], -\n\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q15, \\in5, \\in0[1], +\n\n        sum_sub         q12, \\in7, \\in0[3], +\n        sum_sub         q13, \\in7, \\in0[2], -\n        sum_sub         q14, \\in7, \\in0[1], +\n        sum_sub         q15, \\in7, \\in0[0], -\n\n        butterfly       q8,  q12, q0, q7\n        butterfly       q9,  q13, q1, q6\n        butterfly       q10, q14, q2, q5\n        butterfly       q11, q15, q3, q4\n        add             r4,  sp,  #\\offset\n        vst1.s32        {q0-q1}, [r4, :128]!\n        vst1.s32        {q2-q3}, [r4, :128]!\n        vst1.s32        {q4-q5}, [r4, :128]!\n        vst1.s32        {q6-q7}, [r4, :128]\n.endm\n\n.macro load16 in0, in1, in2, in3, in4, in5, in6, in7\n        vld1.s16        {\\in0}, [r1, :64], r2\n        vld1.s16        {\\in1}, [r3, :64], r2\n        vld1.s16        {\\in2}, [r1, :64], r2\n        vld1.s16        {\\in3}, [r3, :64], r2\n        vld1.s16        {\\in4}, [r1, :64], r2\n        vld1.s16        {\\in5}, [r3, :64], r2\n        vld1.s16        {\\in6}, [r1, :64], r2\n        vld1.s16        {\\in7}, [r3, :64], r2\n.endm\n\n.macro add_member in, t0, t1, t2, t3, t4, t5, t6, t7, op0, op1, op2, op3, op4, op5, op6, op7\n        sum_sub q5,     \\in, \\t0, \\op0\n        sum_sub q6,     \\in, \\t1, \\op1\n        sum_sub q7,     \\in, \\t2, \\op2\n        sum_sub q8,     \\in, \\t3, \\op3\n        sum_sub q9,     \\in, \\t4, \\op4\n        sum_sub q10,    \\in, \\t5, \\op5\n        sum_sub q11,    \\in, \\t6, \\op6\n        sum_sub q12,    \\in, \\t7, \\op7\n.endm\n\n.macro butterfly16 in0, in1, in2, in3, in4, in5, in6, in7\n        vadd.s32        q4, \\in0, \\in1\n        vsub.s32        \\in0, \\in0, \\in1\n        vadd.s32        \\in1, \\in2, \\in3\n        vsub.s32        \\in2, \\in2, \\in3\n        vadd.s32        \\in3, \\in4, \\in5\n        vsub.s32        \\in4, \\in4, \\in5\n        vadd.s32        \\in5, \\in6, \\in7\n        vsub.s32        \\in6, \\in6, \\in7\n.endm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "7eaeb5ab4a4e56706f5cf2ba5e7f60e126caeb39", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7eaeb5ab4a4e56706f5cf2ba5e7f60e126caeb39/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:15", "text": "sum_sub q6,     \\in, \\t1, \\op1\n        sum_sub q7,     \\in, \\t2, \\op2\n        sum_sub q8,     \\in, \\t3, \\op3\n        sum_sub q9,     \\in, \\t4, \\op4\n        sum_sub q10,    \\in, \\t5, \\op5\n        sum_sub q11,    \\in, \\t6, \\op6\n        sum_sub q12,    \\in, \\t7, \\op7\n.endm\n\n.macro butterfly16 in0, in1, in2, in3, in4, in5, in6, in7\n        vadd.s32        q4, \\in0, \\in1\n        vsub.s32        \\in0, \\in0, \\in1\n        vadd.s32        \\in1, \\in2, \\in3\n        vsub.s32        \\in2, \\in2, \\in3\n        vadd.s32        \\in3, \\in4, \\in5\n        vsub.s32        \\in4, \\in4, \\in5\n        vadd.s32        \\in5, \\in6, \\in7\n        vsub.s32        \\in6, \\in6, \\in7\n.endm\n\n.macro store16 in0, in1, in2, in3, in4, in5, in6, in7, rx\n        vst1.s16        \\in0, [r1, :64], r2\n        vst1.s16        \\in1, [r3, :64], \\rx\n        vst1.s16        \\in2, [r1, :64], r2\n        vst1.s16        \\in3, [r3, :64], \\rx\n        vst1.s16        \\in4, [r1, :64], r2\n        vst1.s16        \\in5, [r3, :64], \\rx\n        vst1.s16        \\in6, [r1, :64], r2\n        vst1.s16        \\in7, [r3, :64], \\rx\n.endm\n\n.macro scale out0, out1, out2, out3, out4, out5, out6, out7, in0, in1, in2, in3, in4, in5, in6, in7, shift\n        vqrshrn.s32     \\out0, \\in0, \\shift\n        vqrshrn.s32     \\out1, \\in1, \\shift\n        vqrshrn.s32     \\out2, \\in2, \\shift\n        vqrshrn.s32     \\out3, \\in3, \\shift\n        vqrshrn.s32     \\out4, \\in4, \\shift\n        vqrshrn.s32     \\out5, \\in5, \\shift\n        vqrshrn.s32     \\out6, \\in6, \\shift\n        vqrshrn.s32     \\out7, \\in7, \\shift\n.endm\n\n@stores in1, in2, in4, in6 ascending from off1 and\n@stores in1, in3, in5, in7 descending from off2\n.macro store_to_stack off1, off2, in0, in2, in4, in6, in7, in5, in3, in1\n        add             r1, sp, #\\off1\n        add             r3, sp, #\\off2\n        mov             r2, #-16\n        vst1.s32        {\\in0}, [r1, :128]!\n        vst1.s32        {\\in1}, [r3, :128], r2\n        vst1.s32        {\\in2}, [r1, :128]!\n        vst1.s32        {\\in3}, [r3, :128], r2\n        vst1.s32        {\\in4}, [r1, :128]!\n        vst1.s32        {\\in5}, [r3, :128], r2\n        vst1.s32        {\\in6}, [r1, :128]\n        vst1.s32        {\\in7}, [r3, :128]\n.endm\n\n.macro tr_16x4 name, shift, offset, step\nfunction func_tr_16x4_\\name", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "7eaeb5ab4a4e56706f5cf2ba5e7f60e126caeb39", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7eaeb5ab4a4e56706f5cf2ba5e7f60e126caeb39/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:19", "text": "endfunc\n.endm\n\n.macro load32\n        add             r1,  r5, #64\n        add             r3,  r1, #128\n        mov             r2,  #256\n        vld1.s16        {d4}, [r1, :64], r2\n        vld1.s16        {d5}, [r3, :64], r2\n        vld1.s16        {d6}, [r1, :64], r2\n        vld1.s16        {d7}, [r3, :64], r2\n        vld1.s16        {d8}, [r1, :64], r2\n        vld1.s16        {d9}, [r3, :64], r2\n        vld1.s16        {d10}, [r1, :64], r2\n        vld1.s16        {d11}, [r3, :64], r2\n        vld1.s16        {d12}, [r1, :64], r2\n        vld1.s16        {d13}, [r3, :64], r2\n        vld1.s16        {d14}, [r1, :64], r2\n        vld1.s16        {d15}, [r3, :64], r2\n        vld1.s16        {d16}, [r1, :64], r2\n        vld1.s16        {d17}, [r3, :64], r2\n        vld1.s16        {d18}, [r1, :64], r2\n        vld1.s16        {d19}, [r3, :64], r2\n.endm\n\n.macro add_member32 in, t0, t1, t2, t3, op0, op1, op2, op3\n        sum_sub q10,     \\in, \\t0, \\op0\n        sum_sub q11,     \\in, \\t1, \\op1\n        sum_sub q12,     \\in, \\t2, \\op2\n        sum_sub q13,     \\in, \\t3, \\op3\n.endm\n\n.macro butterfly32 in0, in1, in2, in3\n        vadd.s32        q1, \\in0, \\in1\n        vsub.s32        \\in0, \\in0, \\in1\n        vadd.s32        \\in1, \\in2, \\in3\n        vsub.s32        \\in2, \\in2, \\in3\n.endm\n\n.macro scale32 out0, out1, out2, out3, in0, in1, in2, in3, shift\n        vqrshrn.s32     \\out0, \\in0, \\shift\n        vqrshrn.s32     \\out1, \\in1, \\shift\n        vqrshrn.s32     \\out2, \\in2, \\shift\n        vqrshrn.s32     \\out3, \\in3, \\shift\n.endm\n\n.macro multiply in\n        vmull.s16       q10, d4, \\in[0]\n        vmull.s16       q11, d4, \\in[1]\n        vmull.s16       q12, d4, \\in[2]\n        vmull.s16       q13, d4, \\in[3]\n.endm\n\n.macro scale_store shift\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q10, q15, q11\n        scale32         d22, d23, d20, d21, q1, q14, q10, q15, \\shift\n\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q12, q15, q13", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "7eaeb5ab4a4e56706f5cf2ba5e7f60e126caeb39", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7eaeb5ab4a4e56706f5cf2ba5e7f60e126caeb39/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:10", "text": "sub             r1,  r1,  #8\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n.macro idct_4x4 bitdepth\nfunction ff_hevc_idct_4x4_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vld1.s16        {q0-q1}, [r0, :128]\n\n        movrel          r1, trans\n        vld1.s16        {d4}, [r1, :64]\n\n        tr_4x4          d0, d1, d2, d3, d16, d17, d18, d19, 7, q10, q11, q12, q13, q0\n        transpose_4x4   q8, q9, d16, d17, d18, d19\n\n        tr_4x4          d16, d17, d18, d19, d0, d1, d2, d3, 20 - \\bitdepth, q10, q11, q12, q13, q0\n        transpose_4x4   q0, q1, d0, d1, d2, d3\n        vst1.s16        {d0-d3}, [r0, :128]\n        bx lr\nendfunc\n.endm\n\n.macro transpose8_4x4 r0, r1, r2, r3\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n        vtrn.32         \\r0,  \\r2\n        vtrn.32         \\r1,  \\r3\n.endm\n\n.macro transpose_8x8 r0, r1, r2, r3, r4, r5, r6, r7, l0, l1, l2, l3, l4, l5, l6, l7\n        transpose8_4x4  \\r0, \\r1, \\r2, \\r3\n        transpose8_4x4  \\r4, \\r5, \\r6, \\r7\n\n        transpose8_4x4  \\l0, \\l1, \\l2, \\l3\n        transpose8_4x4  \\l4, \\l5, \\l6, \\l7\n.endm\n\n.macro tr_8x4 shift, in0, in1, in2, in3, in4, in5, in6, in7\n        tr_4x4_8        \\in0, \\in2, \\in4, \\in6, q8, q9, q10, q11, q12, q13, q14, q15\n\n        vmull.s16       q14, \\in1, \\in0[2]\n        vmull.s16       q12, \\in1, \\in0[0]\n        vmull.s16       q13, \\in1, \\in0[1]\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "17765fe8312c67fdf2bea2afdedc8442cab176c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17765fe8312c67fdf2bea2afdedc8442cab176c2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:8", "text": "vmov.16         q13, q8\n        vmov.16         q14, q8\n        vmov.16         q15, q8\n        vstm            r0!, {q8-q15}\n        vstm            r0!, {q8-q15}\n        vstm            r0!, {q8-q15}\n        vstm            r0, {q8-q15}\n        bx              lr\nendfunc\n.endm\n\n.macro idct_32x32_dc bitdepth\nfunction ff_hevc_idct_32x32_dc_\\bitdepth\\()_neon, export=1\n        ldrsh           r1, [r0]\n        ldr             r2, =(1 << (13 - \\bitdepth))\n        add             r1, #1\n        asr             r1, #1\n        add             r1, r2\n        asr             r1, #(14 - \\bitdepth)\n        mov             r3, #16\n        vdup.16         q8, r1\n        vdup.16         q9, r1\n        vmov.16         q10, q8\n        vmov.16         q11, q8\n        vmov.16         q12, q8\n        vmov.16         q13, q8\n        vmov.16         q14, q8\n        vmov.16         q15, q8\n1:      subs            r3, #1\n        vstm            r0!, {q8-q15}\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n.macro sum_sub out, in, c, op\n  .ifc \\op, +\n        vmlal.s16       \\out, \\in, \\c\n  .else\n        vmlsl.s16       \\out, \\in, \\c\n  .endif\n.endm\n\n.macro tr_4x4 in0, in1, in2, in3, out0, out1, out2, out3, shift, tmp0, tmp1, tmp2, tmp3, tmp4\n         vshll.s16      \\tmp0, \\in0, #6\n         vmull.s16      \\tmp2, \\in1, d4[1]\n         vmov           \\tmp1, \\tmp0\n         vmull.s16      \\tmp3, \\in1, d4[3]\n         vmlal.s16      \\tmp0, \\in2, d4[0] @e0\n         vmlsl.s16      \\tmp1, \\in2, d4[0] @e1\n         vmlal.s16      \\tmp2, \\in3, d4[3] @o0\n         vmlsl.s16      \\tmp3, \\in3, d4[1] @o1\n\n         vadd.s32       \\tmp4, \\tmp0, \\tmp2\n         vsub.s32       \\tmp0, \\tmp0, \\tmp2\n         vadd.s32       \\tmp2, \\tmp1, \\tmp3\n         vsub.s32       \\tmp1, \\tmp1, \\tmp3\n         vqrshrn.s32    \\out0, \\tmp4, #\\shift\n         vqrshrn.s32    \\out3, \\tmp0, #\\shift\n         vqrshrn.s32    \\out1, \\tmp2, #\\shift", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:9", "text": ".endif\n.endm\n\n.macro tr_4x4 in0, in1, in2, in3, out0, out1, out2, out3, shift, tmp0, tmp1, tmp2, tmp3, tmp4\n         vshll.s16      \\tmp0, \\in0, #6\n         vmull.s16      \\tmp2, \\in1, d4[1]\n         vmov           \\tmp1, \\tmp0\n         vmull.s16      \\tmp3, \\in1, d4[3]\n         vmlal.s16      \\tmp0, \\in2, d4[0] @e0\n         vmlsl.s16      \\tmp1, \\in2, d4[0] @e1\n         vmlal.s16      \\tmp2, \\in3, d4[3] @o0\n         vmlsl.s16      \\tmp3, \\in3, d4[1] @o1\n\n         vadd.s32       \\tmp4, \\tmp0, \\tmp2\n         vsub.s32       \\tmp0, \\tmp0, \\tmp2\n         vadd.s32       \\tmp2, \\tmp1, \\tmp3\n         vsub.s32       \\tmp1, \\tmp1, \\tmp3\n         vqrshrn.s32    \\out0, \\tmp4, #\\shift\n         vqrshrn.s32    \\out3, \\tmp0, #\\shift\n         vqrshrn.s32    \\out1, \\tmp2, #\\shift\n         vqrshrn.s32    \\out2, \\tmp1, #\\shift\n.endm\n\n.macro tr_4x4_8 in0, in1, in2, in3, out0, out1, out2, out3, tmp0, tmp1, tmp2, tmp3\n         vshll.s16      \\tmp0, \\in0, #6\n         vld1.s16       {\\in0}, [r1, :64]!\n         vmov           \\tmp1, \\tmp0\n         vmull.s16      \\tmp2, \\in1, \\in0[1]\n         vmull.s16      \\tmp3, \\in1, \\in0[3]\n         vmlal.s16      \\tmp0, \\in2, \\in0[0] @e0\n         vmlsl.s16      \\tmp1, \\in2, \\in0[0] @e1\n         vmlal.s16      \\tmp2, \\in3, \\in0[3] @o0\n         vmlsl.s16      \\tmp3, \\in3, \\in0[1] @o1\n\n         vld1.s16       {\\in0}, [r1, :64]\n\n         vadd.s32       \\out0, \\tmp0, \\tmp2\n         vadd.s32       \\out1, \\tmp1, \\tmp3\n         vsub.s32       \\out2, \\tmp1, \\tmp3\n         vsub.s32       \\out3, \\tmp0, \\tmp2\n\n         sub            r1,  r1,  #8\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n.macro idct_4x4 bitdepth\nfunction ff_hevc_idct_4x4_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vld1.s16        {q0-q1}, [r0, :128]\n\n        movrel          r1, trans\n        vld1.s16        {d4}, [r1, :64]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:10", "text": "sub            r1,  r1,  #8\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n.macro idct_4x4 bitdepth\nfunction ff_hevc_idct_4x4_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        vld1.s16        {q0-q1}, [r0, :128]\n\n        movrel          r1, trans\n        vld1.s16        {d4}, [r1, :64]\n\n        tr_4x4          d0, d1, d2, d3, d16, d17, d18, d19, 7, q10, q11, q12, q13, q0\n        transpose_4x4   q8, q9, d16, d17, d18, d19\n\n        tr_4x4          d16, d17, d18, d19, d0, d1, d2, d3, 20 - \\bitdepth, q10, q11, q12, q13, q0\n        transpose_4x4   q0, q1, d0, d1, d2, d3\n        vst1.s16        {d0-d3}, [r0, :128]\n        bx lr\nendfunc\n.endm\n\n.macro transpose8_4x4 r0, r1, r2, r3\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n        vtrn.32         \\r0,  \\r2\n        vtrn.32         \\r1,  \\r3\n.endm\n\n.macro transpose_8x8 r0, r1, r2, r3, r4, r5, r6, r7, l0, l1, l2, l3, l4, l5, l6, l7\n        transpose8_4x4  \\r0, \\r1, \\r2, \\r3\n        transpose8_4x4  \\r4, \\r5, \\r6, \\r7\n\n        transpose8_4x4  \\l0, \\l1, \\l2, \\l3\n        transpose8_4x4  \\l4, \\l5, \\l6, \\l7\n.endm\n\n.macro tr_8x4 shift, in0, in1, in2, in3, in4, in5, in6, in7\n        tr_4x4_8        \\in0, \\in2, \\in4, \\in6, q8, q9, q10, q11, q12, q13, q14, q15\n\n        vmull.s16       q14, \\in1, \\in0[2]\n        vmull.s16       q12, \\in1, \\in0[0]\n        vmull.s16       q13, \\in1, \\in0[1]\n        sum_sub         q14, \\in3, \\in0[0], -\n        sum_sub         q12, \\in3, \\in0[1], +\n        sum_sub         q13, \\in3, \\in0[3], -\n\n        sum_sub         q14, \\in5, \\in0[3], +\n        sum_sub         q12, \\in5, \\in0[2], +\n        sum_sub         q13, \\in5, \\in0[0], -", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:17", "text": "vmull.s16       q11, d8, d1[2]\n        vmull.s16       q12, d8, d1[3]\n\n        add_member      d9, d0[1], d1[0], d1[3], d1[1], d0[2], d0[0], d0[3], d1[2], +, +, +, -, -, -, -, -\n        add_member      d2, d0[2], d1[3], d0[3], d0[1], d1[2], d1[0], d0[0], d1[1], +, +, -, -, -, +, +, +\n        add_member      d3, d0[3], d1[1], d0[1], d1[3], d0[0], d1[2], d0[2], d1[0], +, -, -, +, +, +, -, -\n        add_member      d4, d1[0], d0[2], d1[2], d0[0], d1[3], d0[1], d1[1], d0[3], +, -, -, +, -, -, +, +\n        add_member      d5, d1[1], d0[0], d1[0], d1[2], d0[1], d0[3], d1[3], d0[2], +, -, +, +, -, +, +, -\n        add_member      d6, d1[2], d0[3], d0[0], d0[2], d1[1], d1[3], d1[0], d0[1], +, -, +, -, +, +, -, +\n        add_member      d7, d1[3], d1[2], d1[1], d1[0], d0[3], d0[2], d0[1], d0[0], +, -, +, -, +, -, +, -\n\n        add             r4, sp, #\\offset\n        vld1.s32        {q0-q1}, [r4, :128]!\n        vld1.s32        {q2-q3}, [r4, :128]!\n\n        butterfly16     q0, q5, q1, q6, q2, q7, q3, q8\n    .if \\shift > 0\n        scale           d26, d27, d28, d29, d30, d31, d16, d17, q4, q0, q5, q1, q6, q2, q7, q3, \\shift\n        transpose8_4x4  d26, d28, d30, d16\n        transpose8_4x4  d17, d31, d29, d27\n        mov             r1, r6\n        add             r3, r6, #(24 +3*32)\n        mov             r2, #32\n        mov             r4, #-32\n        store16         d26, d27, d28, d29, d30, d31, d16, d17, r4\n    .else\n        store_to_stack  \\offset, (\\offset + 240), q4, q5, q6, q7, q3, q2, q1, q0\n    .endif\n\n        add             r4, sp, #(\\offset + 64)\n        vld1.s32        {q0-q1}, [r4, :128]!\n        vld1.s32        {q2-q3}, [r4, :128]\n        butterfly16     q0, q9, q1, q10, q2, q11, q3, q12\n    .if \\shift > 0\n        scale           d26, d27, d28, d29, d30, d31, d8, d9, q4, q0, q9, q1, q10, q2, q11, q3, \\shift\n        transpose8_4x4  d26, d28, d30, d8\n        transpose8_4x4  d9, d31, d29, d27\n\n        add             r1, r6, #8\n        add             r3, r6, #(16 + 3 * 32)\n        mov             r2, #32\n        mov             r4, #-32\n        store16         d26, d27, d28, d29, d30, d31, d8, d9, r4\n    .else\n        store_to_stack (\\offset + 64), (\\offset + 176), q4, q9, q10, q11, q3, q2, q1, q0\n    .endif\n\n        bx              lr\nendfunc\n.endm\n\n.macro idct_16x16 bitdepth\nfunction ff_hevc_idct_16x16_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        push            {r4-r7, lr}\n        vpush           {q4-q7}\n\n        @ Align the stack, allocate a temp buffer\nT       mov             r7,  sp\nT       and             r7,  r7,  #15", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:18", "text": "mov             r2, #32\n        mov             r4, #-32\n        store16         d26, d27, d28, d29, d30, d31, d8, d9, r4\n    .else\n        store_to_stack (\\offset + 64), (\\offset + 176), q4, q9, q10, q11, q3, q2, q1, q0\n    .endif\n\n        bx              lr\nendfunc\n.endm\n\n.macro idct_16x16 bitdepth\nfunction ff_hevc_idct_16x16_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        push            {r4-r7, lr}\n        vpush           {q4-q7}\n\n        @ Align the stack, allocate a temp buffer\nT       mov             r7,  sp\nT       and             r7,  r7,  #15\nA       and             r7,  sp,  #15\n        add             r7,  r7,  #640\n        sub             sp,  sp,  r7\n\n.irp i, 0, 1, 2, 3\n        add             r5, r0, #(8 * \\i)\n        add             r6, sp, #(8 * \\i * 16)\n        bl              func_tr_16x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3\n        add             r5, sp, #(8 * \\i)\n        add             r6, r0, #(8 * \\i * 16)\n        bl              func_tr_16x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  r7\n\n        vpop            {q4-q7}\n        pop             {r4-r7, pc}\nendfunc\n.endm\n\n.macro load32\n        add             r1,  r5, #64\n        add             r3,  r1, #128\n        mov             r2,  #256\n        vld1.s16        {d4}, [r1, :64], r2\n        vld1.s16        {d5}, [r3, :64], r2\n        vld1.s16        {d6}, [r1, :64], r2\n        vld1.s16        {d7}, [r3, :64], r2\n        vld1.s16        {d8}, [r1, :64], r2\n        vld1.s16        {d9}, [r3, :64], r2\n        vld1.s16        {d10}, [r1, :64], r2\n        vld1.s16        {d11}, [r3, :64], r2\n        vld1.s16        {d12}, [r1, :64], r2\n        vld1.s16        {d13}, [r3, :64], r2\n        vld1.s16        {d14}, [r1, :64], r2\n        vld1.s16        {d15}, [r3, :64], r2\n        vld1.s16        {d16}, [r1, :64], r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:23", "text": "mov             r8, #-64\n\n        bl              tr_block1\n        mov             r1, r11\n        add             r3, r11, #(56 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block2\n        add             r1, r11, #8\n        add             r3, r11, #(48 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block3\n        add             r1, r11, #16\n        add             r3, r11, #(40 + 3 * 64)\n        scale_store     \\shift\n\n        bl              tr_block4\n        add             r1, r11, #24\n        add             r3, r11, #(32 + 3 * 64)\n        scale_store     \\shift\n\n        bx               r10\nendfunc\n.endm\n\n.macro idct_32x32 bitdepth\nfunction ff_hevc_idct_32x32_\\bitdepth\\()_neon, export=1\n@r0 - coeffs\n        push            {r4-r11, lr}\n        vpush           {q4-q7}\n\n        @ Align the stack, allocate a temp buffer\nT       mov             r7,  sp\nT       and             r7,  r7,  #15\nA       and             r7,  sp,  #15\n        add             r7,  r7,  #2432\n        sub             sp,  sp,  r7\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             r5, r0, #(8 * \\i)\n        add             r11, sp, #(8 * \\i * 32)\n        bl              func_tr_32x4_firstpass\n.endr\n\n.irp i, 0, 1, 2, 3, 4, 5, 6, 7\n        add             r5, sp, #(8 * \\i)\n        add             r11, r0, #(8 * \\i * 32)\n        bl              func_tr_32x4_secondpass_\\bitdepth\n.endr\n\n        add             sp,  sp,  r7\n        vpop            {q4-q7}\n        pop             {r4-r11, pc}\nendfunc\n.endm\n\ntr_16x4 firstpass, 7, 512, 1\ntr_16x4 secondpass_8, 20 - 8, 512, 1\ntr_16x4 secondpass_10, 20 - 10, 512, 1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_idct_neon.S:20", "text": "vqrshrn.s32     \\out0, \\in0, \\shift\n        vqrshrn.s32     \\out1, \\in1, \\shift\n        vqrshrn.s32     \\out2, \\in2, \\shift\n        vqrshrn.s32     \\out3, \\in3, \\shift\n.endm\n\n.macro multiply in\n        vmull.s16       q10, d4, \\in[0]\n        vmull.s16       q11, d4, \\in[1]\n        vmull.s16       q12, d4, \\in[2]\n        vmull.s16       q13, d4, \\in[3]\n.endm\n\n.macro scale_store shift\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q10, q15, q11\n        scale32         d22, d23, d20, d21, q1, q14, q10, q15, \\shift\n\n        vld1.s16        {q14-q15}, [r4, :128]!\n        butterfly32     q14, q12, q15, q13\n        scale32         d2, d3, d28, d29, q1, q14, q12, q15, \\shift\n        transpose8_4x4  d22, d20, d2, d28\n        transpose8_4x4  d29, d3, d21, d23\n        store16         d22, d23, d20, d21, d2, d3, d28, d29, r8\n\n        @ reload multiplication coefficiens to q1\n        vld1.s16        {q1}, [r9, :128]\n.endm\n\nfunction tr_block1\n        multiply        d0\n        add_member32    d5,  d0[1], d1[0], d1[3], d2[2], +, +, +, +\n        add_member32    d6,  d0[2], d1[3], d3[0], d3[2], +, +, +, -\n        add_member32    d7,  d0[3], d2[2], d3[2], d1[3], +, +, -, -\n        add_member32    d8,  d1[0], d3[1], d2[1], d0[0], +, +, -, -\n        add_member32    d9,  d1[1], d3[3], d1[0], d1[2], +, -, -, -\n        add_member32    d10, d1[2], d3[0], d0[0], d3[1], +, -, -, -\n        add_member32    d11, d1[3], d2[1], d1[1], d2[3], +, -, -, +\n        add_member32    d12, d2[0], d1[2], d2[2], d1[0], +, -, -, +\n        add_member32    d13, d2[1], d0[3], d3[3], d0[2], +, -, -, +\n        add_member32    d14, d2[2], d0[1], d2[3], d2[1], +, -, +, +\n        add_member32    d15, d2[3], d0[2], d1[2], d3[3], +, -, +, -\n        add_member32    d16, d3[0], d1[1], d0[1], d2[0], +, -, +, -\n        add_member32    d17, d3[1], d2[0], d0[3], d0[1], +, -, +, -\n        add_member32    d18, d3[2], d2[3], d2[0], d1[1], +, -, +, -\n        add_member32    d19, d3[3], d3[2], d3[1], d3[0], +, -, +, -\n        bx              lr\nendfunc\n\nfunction tr_block2\n        multiply        d1\n        add_member32    d5,  d3[1], d3[3], d3[0], d2[1], +, -, -, -\n        add_member32    d6,  d2[1], d1[0], d0[0], d1[1], -, -, -, -\n        add_member32    d7,  d0[0], d1[2], d3[1], d2[3], -, -, -, +\n        add_member32    d8,  d2[0], d3[2], d1[1], d0[3], -, +, +, +\n        add_member32    d9,  d3[2], d0[3], d1[3], d3[1], +, +, +, -\n        add_member32    d10, d1[1], d1[3], d2[3], d0[0], +, +, -, -\n        add_member32    d11, d0[3], d3[1], d0[1], d3[3], +, -, -, +\n        add_member32    d12, d3[0], d0[2], d3[2], d0[1], +, -, -, +\n        add_member32    d13, d2[2], d2[0], d1[0], d3[2], -, -, +, +", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_idct_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_idct_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:1", "text": "/*\n * Copyright (c) 2014 - 2015 Seppo Tomperi <seppo.tomperi@vtt.fi>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n#define MAX_PB_SIZE #64\n\n.macro regshuffle_d8\n        vmov            d16, d17\n        vmov            d17, d18\n        vmov            d18, d19\n        vmov            d19, d20\n        vmov            d20, d21\n        vmov            d21, d22\n        vmov            d22, d23\n.endm\n\n.macro regshuffle_q8\n        vmov            q0, q1\n        vmov            q1, q2\n        vmov            q2, q3\n        vmov            q3, q4\n        vmov            q4, q5\n        vmov            q5, q6\n        vmov            q6, q7\n.endm\n\n.macro vextin8\n        pld             [r2]\n        vld1.8          {q11}, [r2], r3\n        vext.8          d16, d22, d23, #1\n        vext.8          d17, d22, d23, #2\n        vext.8          d18, d22, d23, #3\n        vext.8          d19, d22, d23, #4\n        vext.8          d20, d22, d23, #5\n        vext.8          d21, d22, d23, #6\n        vext.8          d22, d22, d23, #7\n.endm\n\n.macro loadin8\n        pld             [r2]\n        vld1.8          {d16}, [r2], r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:2", "text": "vmov            q4, q5\n        vmov            q5, q6\n        vmov            q6, q7\n.endm\n\n.macro vextin8\n        pld             [r2]\n        vld1.8          {q11}, [r2], r3\n        vext.8          d16, d22, d23, #1\n        vext.8          d17, d22, d23, #2\n        vext.8          d18, d22, d23, #3\n        vext.8          d19, d22, d23, #4\n        vext.8          d20, d22, d23, #5\n        vext.8          d21, d22, d23, #6\n        vext.8          d22, d22, d23, #7\n.endm\n\n.macro loadin8\n        pld             [r2]\n        vld1.8          {d16}, [r2], r3\n        pld             [r2]\n        vld1.8          {d17}, [r2], r3\n        pld             [r2]\n        vld1.8          {d18}, [r2], r3\n        pld             [r2]\n        vld1.8          {d19}, [r2], r3\n        pld             [r2]\n        vld1.8          {d20}, [r2], r3\n        pld             [r2]\n        vld1.8          {d21}, [r2], r3\n        pld             [r2]\n        vld1.8          {d22}, [r2], r3\n        pld             [r2]\n        vld1.8          {d23}, [r2], r3\n.endm\n\n.macro qpel_filter_1_32b\n        vmov.i16        d16, #58\n        vmov.i16        d17, #10\n        vmull.s16       q9,  d6,  d16  // 58 * d0\n        vmull.s16       q10, d7,  d16  // 58 * d1\n        vmov.i16        d16, #17\n        vmull.s16       q11, d4,  d17  // 10 * c0\n        vmull.s16       q12, d5,  d17  // 10 * c1\n        vmov.i16        d17, #5\n        vmull.s16       q13, d8,  d16  // 17 * e0\n        vmull.s16       q14, d9,  d16  // 17 * e1\n        vmull.s16       q15, d10, d17  //  5 * f0\n        vmull.s16       q8,  d11, d17  //  5 * f1\n        vsub.s32        q9,  q11       // 58 * d0 - 10 * c0\n        vsub.s32        q10, q12       // 58 * d1 - 10 * c1\n        vshll.s16       q11, d2,  #2   // 4 * b0\n        vshll.s16       q12, d3,  #2   // 4 * b1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1\n        vsubl.s16       q13, d12, d0   // g0 - a0\n        vsubl.s16       q14, d13, d1   // g1 - a1\n        vadd.s32        q9,  q11       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0\n        vadd.s32        q10, q12       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1\n        vsub.s32        q13, q15       // g0 - a0 - 5 * f0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:3", "text": "vmull.s16       q10, d7,  d16  // 58 * d1\n        vmov.i16        d16, #17\n        vmull.s16       q11, d4,  d17  // 10 * c0\n        vmull.s16       q12, d5,  d17  // 10 * c1\n        vmov.i16        d17, #5\n        vmull.s16       q13, d8,  d16  // 17 * e0\n        vmull.s16       q14, d9,  d16  // 17 * e1\n        vmull.s16       q15, d10, d17  //  5 * f0\n        vmull.s16       q8,  d11, d17  //  5 * f1\n        vsub.s32        q9,  q11       // 58 * d0 - 10 * c0\n        vsub.s32        q10, q12       // 58 * d1 - 10 * c1\n        vshll.s16       q11, d2,  #2   // 4 * b0\n        vshll.s16       q12, d3,  #2   // 4 * b1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1\n        vsubl.s16       q13, d12, d0   // g0 - a0\n        vsubl.s16       q14, d13, d1   // g1 - a1\n        vadd.s32        q9,  q11       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0\n        vadd.s32        q10, q12       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1\n        vsub.s32        q13, q15       // g0 - a0 - 5 * f0\n        vsub.s32        q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32      d16, q9,  #6\n        vqshrn.s32      d17, q10, #6\n.endm\n\n// input  q0 - q7\n// output q8\n.macro qpel_filter_2_32b\n        vmov.i32        q8,  #11\n        vaddl.s16       q9,  d6,  d8   // d0 + e0\n        vaddl.s16       q10, d7,  d9   // d1 + e1\n        vaddl.s16       q11, d4,  d10  // c0 + f0\n        vaddl.s16       q12, d5,  d11  // c1 + f1\n        vmul.s32        q11, q8        // 11 * (c0 + f0)\n        vmul.s32        q12, q8        // 11 * (c1 + f1)\n        vmov.i32        q8,  #40\n        vaddl.s16       q15, d2,  d12  // b0 + g0\n        vmul.s32        q9,  q8        // 40 * (d0 + e0)\n        vmul.s32        q10, q8        // 40 * (d1 + e1)\n        vaddl.s16       q8,  d3,  d13  // b1 + g1\n        vaddl.s16       q13, d0,  d14  // a0 + h0\n        vaddl.s16       q14, d1,  d15  // a1 + h1\n        vshl.s32        q15, #2        // 4*(b0+g0)\n        vshl.s32        q8,  #2        // 4*(b1+g1)\n        vadd.s32        q11, q13       // 11 * (c0 + f0) + a0 + h0\n        vadd.s32        q12, q14       // 11 * (c1 + f1) + a1 + h1\n        vadd.s32        q9,  q15       // 40 * (d0 + e0) + 4*(b0+g0)\n        vadd.s32        q10, q8        // 40 * (d1 + e1) + 4*(b1+g1)\n        vsub.s32        q9,  q11       // 40 * (d0 + e0) + 4*(b0+g0) - (11 * (c0 + f0) + a0 + h0)\n        vsub.s32        q10, q12       // 40 * (d1 + e1) + 4*(b1+g1) - (11 * (c1 + f1) + a1 + h1)\n        vqshrn.s32      d16, q9,  #6\n        vqshrn.s32      d17, q10, #6\n.endm\n\n.macro qpel_filter_3_32b\n        vmov.i16        d16, #58\n        vmov.i16        d17, #10\n        vmull.s16       q9,  d8,  d16  // 58 * d0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:4", "text": "vmul.s32        q10, q8        // 40 * (d1 + e1)\n        vaddl.s16       q8,  d3,  d13  // b1 + g1\n        vaddl.s16       q13, d0,  d14  // a0 + h0\n        vaddl.s16       q14, d1,  d15  // a1 + h1\n        vshl.s32        q15, #2        // 4*(b0+g0)\n        vshl.s32        q8,  #2        // 4*(b1+g1)\n        vadd.s32        q11, q13       // 11 * (c0 + f0) + a0 + h0\n        vadd.s32        q12, q14       // 11 * (c1 + f1) + a1 + h1\n        vadd.s32        q9,  q15       // 40 * (d0 + e0) + 4*(b0+g0)\n        vadd.s32        q10, q8        // 40 * (d1 + e1) + 4*(b1+g1)\n        vsub.s32        q9,  q11       // 40 * (d0 + e0) + 4*(b0+g0) - (11 * (c0 + f0) + a0 + h0)\n        vsub.s32        q10, q12       // 40 * (d1 + e1) + 4*(b1+g1) - (11 * (c1 + f1) + a1 + h1)\n        vqshrn.s32      d16, q9,  #6\n        vqshrn.s32      d17, q10, #6\n.endm\n\n.macro qpel_filter_3_32b\n        vmov.i16        d16, #58\n        vmov.i16        d17, #10\n        vmull.s16       q9,  d8,  d16  // 58 * d0\n        vmull.s16       q10, d9,  d16  // 58 * d1\n        vmov.i16        d16, #17\n        vmull.s16       q11, d10, d17  // 10 * c0\n        vmull.s16       q12, d11, d17  // 10 * c1\n        vmov.i16        d17, #5\n        vmull.s16       q13, d6,  d16  // 17 * e0\n        vmull.s16       q14, d7,  d16  // 17 * e1\n        vmull.s16       q15, d4,  d17  //  5 * f0\n        vmull.s16       q8,  d5,  d17  //  5 * f1\n        vsub.s32        q9,  q11       // 58 * d0 - 10 * c0\n        vsub.s32        q10, q12       // 58 * d1 - 10 * c1\n        vshll.s16       q11, d12, #2   // 4 * b0\n        vshll.s16       q12, d13, #2   // 4 * b1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1\n        vsubl.s16       q13, d2,  d14  // g0 - a0\n        vsubl.s16       q14, d3,  d15  // g1 - a1\n        vadd.s32        q9,  q11       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0\n        vadd.s32        q10, q12       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1\n        vsub.s32        q13, q15       // g0 - a0 - 5 * f0\n        vsub.s32        q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32      d16, q9,  #6\n        vqshrn.s32      d17, q10, #6\n.endm\n\n.macro qpel_filter_1 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d20, #4   // 16*e\n        vshll.u8        q14, d21, #2   // 4*f\n        vmull.u8        \\out, d19, d24 // 58*d\n        vaddw.u8        q13, q13, d20  // 17*e\n        vmull.u8        q15, d18, d25  // 10*c\n        vaddw.u8        q14, q14, d21  // 5*f\n        vsubl.u8        q12, d22, d16  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d17, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:5", "text": "vsub.s32        q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32      d16, q9,  #6\n        vqshrn.s32      d17, q10, #6\n.endm\n\n.macro qpel_filter_1 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d20, #4   // 16*e\n        vshll.u8        q14, d21, #2   // 4*f\n        vmull.u8        \\out, d19, d24 // 58*d\n        vaddw.u8        q13, q13, d20  // 17*e\n        vmull.u8        q15, d18, d25  // 10*c\n        vaddw.u8        q14, q14, d21  // 5*f\n        vsubl.u8        q12, d22, d16  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d17, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f\n        vadd.s16        q13, q12       // - a + 4*b + g\n        vsub.s16        \\out, q15      // -10*c + 58*d + 17*e -5*f\n        vadd.s16        \\out, q13      // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro qpel_filter_2 out=q7\n        vmov.i16        q12, #10\n        vmov.i16        q14, #11\n        vaddl.u8        q13, d19, d20  // d + e\n        vaddl.u8        q15, d18, d21  // c + f\n        vmul.u16        q13, q12       // 10 * (d+e)\n        vmul.u16        q15, q14       // 11 * ( c + f)\n        vaddl.u8        \\out, d17, d22 // b + g\n        vaddl.u8        q12, d16, d23  // a + h\n        vadd.u16        \\out, q13      // b + 10 * (d + e) + g\n        vadd.s16        q12, q15\n        vshl.u16        \\out, #2       // 4 * (b + 10 * (d + e) + g)\n        vsub.s16        \\out, q12\n.endm\n\n.macro qpel_filter_3 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d19, #4   // 16*e\n        vshll.u8        q14, d18, #2   // 4*f\n        vmull.u8        \\out, d20, d24 // 58*d\n        vaddw.u8        q13, q13, d19  // 17*e\n        vmull.u8        q15, d21, d25  // 10*c\n        vaddw.u8        q14, q14, d18  // 5*f\n        vsubl.u8        q12, d17, d23  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d22, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f\n        vadd.s16        q13, q12       // - a + 4*b + g\n        vsub.s16        \\out, q15      // -10*c + 58*d + 17*e -5*f\n        vadd.s16        \\out, q13      // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro  hevc_put_qpel_vX_neon_8 filter\n        push            {r4, r5, r6, r7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:6", "text": ".macro qpel_filter_3 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d19, #4   // 16*e\n        vshll.u8        q14, d18, #2   // 4*f\n        vmull.u8        \\out, d20, d24 // 58*d\n        vaddw.u8        q13, q13, d19  // 17*e\n        vmull.u8        q15, d21, d25  // 10*c\n        vaddw.u8        q14, q14, d18  // 5*f\n        vsubl.u8        q12, d17, d23  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d22, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f\n        vadd.s16        q13, q12       // - a + 4*b + g\n        vsub.s16        \\out, q15      // -10*c + 58*d + 17*e -5*f\n        vadd.s16        \\out, q13      // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro  hevc_put_qpel_vX_neon_8 filter\n        push            {r4, r5, r6, r7}\n        ldr             r4, [sp, #16] // height\n        ldr             r5, [sp, #20] // width\n        vpush           {d8-d15}\n        sub             r2, r2, r3, lsl #1\n        sub             r2, r3\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        lsl             r1, #1\n0:      loadin8\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filter\n        vst1.16         {q7}, [r0], r1\n        regshuffle_d8\n        vld1.8          {d23}, [r2], r3\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #16\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filter\n        vst1.16         d14, [r0], r1\n        regshuffle_d8\n        vld1.32         {d23[0]}, [r2], r3\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4, r5, r6, r7}\n        bx              lr\n.endm\n\n.macro  hevc_put_qpel_uw_vX_neon_8 filter\n        push            {r4-r10}\n        ldr             r5, [sp, #28] // width", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:7", "text": "mov             r4, r12\n        add             r6, #16\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filter\n        vst1.16         d14, [r0], r1\n        regshuffle_d8\n        vld1.32         {d23[0]}, [r2], r3\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4, r5, r6, r7}\n        bx              lr\n.endm\n\n.macro  hevc_put_qpel_uw_vX_neon_8 filter\n        push            {r4-r10}\n        ldr             r5, [sp, #28] // width\n        ldr             r4, [sp, #32] // height\n        ldr             r8, [sp, #36] // src2\n        ldr             r9, [sp, #40] // src2stride\n        vpush           {d8-d15}\n        sub             r2, r2, r3, lsl #1\n        sub             r2, r3\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r8, #0\n        bne             .Lbi\\@\n0:      loadin8\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filter\n        vqrshrun.s16    d0, q7, #6\n        vst1.8          d0, [r0], r1\n        regshuffle_d8\n        vld1.8          {d23}, [r2], r3\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filter\n        vqrshrun.s16    d0, q7, #6\n        vst1.32         d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32         {d23[0]}, [r2], r3\n        bne             4b\n        b               99f\n.Lbi\\@: lsl       r9, #1\n        mov             r10, r8\n0:      loadin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:8", "text": "bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filter\n        vqrshrun.s16    d0, q7, #6\n        vst1.32         d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32         {d23[0]}, [r2], r3\n        bne             4b\n        b               99f\n.Lbi\\@: lsl       r9, #1\n        mov             r10, r8\n0:      loadin8\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filter\n        vld1.16         {q0}, [r8], r9\n        vqadd.s16       q0, q7\n        vqrshrun.s16    d0, q0, #7\n        vst1.8          d0, [r0], r1\n        regshuffle_d8\n        vld1.8          {d23}, [r2], r3\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r10, #16\n        mov             r8, r10\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filter\n        vld1.16         d0, [r8], r9\n        vqadd.s16       d0, d14\n        vqrshrun.s16    d0, q0, #7\n        vst1.32         d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32         {d23[0]}, [r2], r3\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4-r10}\n        bx              lr\n.endm\n\nfunction ff_hevc_put_qpel_v1_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_v2_neon_8, export=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:9", "text": "b               0b\n4:      subs            r4, #1\n        \\filter\n        vld1.16         d0, [r8], r9\n        vqadd.s16       d0, d14\n        vqrshrun.s16    d0, q0, #7\n        vst1.32         d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32         {d23[0]}, [r2], r3\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4-r10}\n        bx              lr\n.endm\n\nfunction ff_hevc_put_qpel_v1_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_v2_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_v3_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_3\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_v1_neon_8, export=1\n        hevc_put_qpel_uw_vX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_uw_v2_neon_8, export=1\n        hevc_put_qpel_uw_vX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_uw_v3_neon_8, export=1\n        hevc_put_qpel_uw_vX_neon_8 qpel_filter_3\nendfunc\n\n.macro hevc_put_qpel_hX_neon_8 filter\n        push            {r4, r5, r6, r7}\n        ldr             r4, [sp, #16] // height\n        ldr             r5, [sp, #20] // width\n\n        vpush           {d8-d15}\n        sub             r2, #4\n        lsl             r1, #1\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        vextin8\n        \\filter\n        vst1.16         {q7}, [r0], r1\n        bne             8b\n        subs            r5, #8\n        beq             99f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:10", "text": ".macro hevc_put_qpel_hX_neon_8 filter\n        push            {r4, r5, r6, r7}\n        ldr             r4, [sp, #16] // height\n        ldr             r5, [sp, #20] // width\n\n        vpush           {d8-d15}\n        sub             r2, #4\n        lsl             r1, #1\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        vextin8\n        \\filter\n        vst1.16         {q7}, [r0], r1\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #16\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        cmp             r5, #4\n        bne             8b\n4:      subs            r4, #1\n        vextin8\n        \\filter\n        vst1.16         d14, [r0], r1\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4, r5, r6, r7}\n        bx              lr\n.endm\n\n.macro hevc_put_qpel_uw_hX_neon_8 filter\n        push            {r4-r10}\n        ldr             r5, [sp, #28] // width\n        ldr             r4, [sp, #32] // height\n        ldr             r8, [sp, #36] // src2\n        ldr             r9, [sp, #40] // src2stride\n        vpush           {d8-d15}\n        sub             r2, #4\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r8, #0\n        bne             .Lbi\\@\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        vextin8\n        \\filter\n        vqrshrun.s16    d0, q7, #6\n        vst1.8          d0, [r0], r1\n        bne             8b\n        subs            r5, #8\n        beq             99f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:11", "text": "ldr             r4, [sp, #32] // height\n        ldr             r8, [sp, #36] // src2\n        ldr             r9, [sp, #40] // src2stride\n        vpush           {d8-d15}\n        sub             r2, #4\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r8, #0\n        bne             .Lbi\\@\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        vextin8\n        \\filter\n        vqrshrun.s16    d0, q7, #6\n        vst1.8          d0, [r0], r1\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        cmp             r5, #4\n        bne             8b\n4:      subs            r4, #1\n        vextin8\n        \\filter\n        vqrshrun.s16    d0, q7, #6\n        vst1.32         d0[0], [r0], r1\n        bne             4b\n        b               99f\n.Lbi\\@:\n        lsl             r9, #1\n        cmp             r5, #4\n        beq             4f\n        mov             r10, r8\n8:      subs            r4, #1\n        vextin8\n        \\filter\n        vld1.16         {q0}, [r8], r9\n        vqadd.s16       q0, q7\n        vqrshrun.s16    d0, q0, #7\n        vst1.8          d0, [r0], r1\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        add             r10, #16\n        mov             r8, r10\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        cmp             r5, #4\n        bne             8b\n4:      subs            r4, #1\n        vextin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:12", "text": "vextin8\n        \\filter\n        vld1.16         {q0}, [r8], r9\n        vqadd.s16       q0, q7\n        vqrshrun.s16    d0, q0, #7\n        vst1.8          d0, [r0], r1\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        add             r10, #16\n        mov             r8, r10\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        cmp             r5, #4\n        bne             8b\n4:      subs            r4, #1\n        vextin8\n        \\filter\n        vld1.16         d0, [r8], r9\n        vqadd.s16       d0, d14\n        vqrshrun.s16    d0, q0, #7\n        vst1.32         d0[0], [r0], r1\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4-r10}\n        bx              lr\n.endm\n\nfunction ff_hevc_put_qpel_h1_neon_8, export=1\n        hevc_put_qpel_hX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_h2_neon_8, export=1\n        hevc_put_qpel_hX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_h3_neon_8, export=1\n        hevc_put_qpel_hX_neon_8 qpel_filter_3\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_h1_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_3\nendfunc\n\n.macro hevc_put_qpel_hXvY_neon_8 filterh filterv\n        push            {r4, r5, r6, r7}\n        ldr             r4, [sp, #16] // height\n        ldr             r5, [sp, #20] // width", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:13", "text": "hevc_put_qpel_hX_neon_8 qpel_filter_3\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_h1_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_3\nendfunc\n\n.macro hevc_put_qpel_hXvY_neon_8 filterh filterv\n        push            {r4, r5, r6, r7}\n        ldr             r4, [sp, #16] // height\n        ldr             r5, [sp, #20] // width\n\n        vpush           {d8-d15}\n        sub             r2, #4\n        sub             r2, r2, r3, lsl #1\n        sub             r2, r3  // extra_before 3\n        lsl             r1, #1\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n0:      vextin8\n        \\filterh        q0\n        vextin8\n        \\filterh        q1\n        vextin8\n        \\filterh        q2\n        vextin8\n        \\filterh        q3\n        vextin8\n        \\filterh        q4\n        vextin8\n        \\filterh        q5\n        vextin8\n        \\filterh        q6\n        vextin8\n        \\filterh        q7\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filterv\n        vst1.16         {q8}, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #16\n        mov             r0, r6\n        add             r7, #8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:14", "text": "\\filterh        q5\n        vextin8\n        \\filterh        q6\n        vextin8\n        \\filterh        q7\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filterv\n        vst1.16         {q8}, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #16\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filterv\n        vst1.16         d16, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4, r5, r6, r7}\n        bx              lr\n.endm\n\n.macro hevc_put_qpel_uw_hXvY_neon_8 filterh filterv\n        push            {r4-r10}\n        ldr             r5, [sp, #28] // width\n        ldr             r4, [sp, #32] // height\n        ldr             r8, [sp, #36] // src2\n        ldr             r9, [sp, #40] // src2stride\n        vpush           {d8-d15}\n        sub             r2, #4\n        sub             r2, r2, r3, lsl #1\n        sub             r2, r3  // extra_before 3\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r8, #0\n        bne             .Lbi\\@\n0:      vextin8\n        \\filterh        q0\n        vextin8\n        \\filterh        q1\n        vextin8\n        \\filterh        q2\n        vextin8\n        \\filterh        q3\n        vextin8\n        \\filterh        q4\n        vextin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:15", "text": "vpush           {d8-d15}\n        sub             r2, #4\n        sub             r2, r2, r3, lsl #1\n        sub             r2, r3  // extra_before 3\n        mov             r12, r4\n        mov             r6, r0\n        mov             r7, r2\n        cmp             r8, #0\n        bne             .Lbi\\@\n0:      vextin8\n        \\filterh        q0\n        vextin8\n        \\filterh        q1\n        vextin8\n        \\filterh        q2\n        vextin8\n        \\filterh        q3\n        vextin8\n        \\filterh        q4\n        vextin8\n        \\filterh        q5\n        vextin8\n        \\filterh        q6\n        vextin8\n        \\filterh        q7\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filterv\n        vqrshrun.s16    d0, q8, #6\n        vst1.8          d0, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filterv\n        vqrshrun.s16    d0, q8, #6\n        vst1.32         d0[0], [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             4b\n        b               99f\n.Lbi\\@: lsl      r9, #1\n        mov             r10, r8\n0:      vextin8\n        \\filterh        q0\n        vextin8\n        \\filterh        q1\n        vextin8\n        \\filterh        q2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:16", "text": "add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filterv\n        vqrshrun.s16    d0, q8, #6\n        vst1.32         d0[0], [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             4b\n        b               99f\n.Lbi\\@: lsl      r9, #1\n        mov             r10, r8\n0:      vextin8\n        \\filterh        q0\n        vextin8\n        \\filterh        q1\n        vextin8\n        \\filterh        q2\n        vextin8\n        \\filterh        q3\n        vextin8\n        \\filterh        q4\n        vextin8\n        \\filterh        q5\n        vextin8\n        \\filterh        q6\n        vextin8\n        \\filterh        q7\n        cmp             r5, #4\n        beq             4f\n8:      subs            r4, #1\n        \\filterv\n        vld1.16         {q0}, [r8], r9\n        vqadd.s16       q0, q8\n        vqrshrun.s16    d0, q0, #7\n        vst1.8          d0, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r10, #16\n        mov             r8, r10\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filterv\n        vld1.16         d0, [r8], r9\n        vqadd.s16       d0, d16\n        vqrshrun.s16    d0, q0, #7\n        vst1.32         d0[0], [r0], r1\n        regshuffle_q8\n        vextin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:17", "text": "\\filterh        q7\n        bne             8b\n        subs            r5, #8\n        beq             99f\n        mov             r4, r12\n        add             r6, #8\n        mov             r0, r6\n        add             r10, #16\n        mov             r8, r10\n        add             r7, #8\n        mov             r2, r7\n        b               0b\n4:      subs            r4, #1\n        \\filterv\n        vld1.16         d0, [r8], r9\n        vqadd.s16       d0, d16\n        vqrshrun.s16    d0, q0, #7\n        vst1.32         d0[0], [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh        q7\n        bne             4b\n99:     vpop            {d8-d15}\n        pop             {r4-r10}\n        bx              lr\n.endm\n\n\nfunction ff_hevc_put_qpel_h1v1_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v1_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h3v1_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_3, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h1v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h3v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h1v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:18", "text": "function ff_hevc_put_qpel_h1v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h3v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h1v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h3v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_3, qpel_filter_3_32b\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_h1v1_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_1, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2v1_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v1_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h1v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_1, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h1v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_3_32b\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:19", "text": "function ff_hevc_put_qpel_uw_h2v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h1v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_3_32b\nendfunc\n\n.macro init_put_pixels\n        pld             [r1]\n        pld             [r1, r2]\n        mov             r12, MAX_PB_SIZE\n        lsl             r12, #1\n.endm\n\nfunction ff_hevc_put_pixels_w2_neon_8, export=1\n        init_put_pixels\n        vmov.u8         d5, #255\n        vshr.u64        d5, #32\n0:      subs            r3, #1\n        vld1.32         {d0[0]}, [r1], r2\n        pld             [r1]\n        vld1.32         d6, [r0]\n        vshll.u8        q0, d0, #6\n        vbit            d6, d0, d5\n        vst1.32         d6, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w4_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #2\n        vld1.32         {d0[0]}, [r1], r2\n        vld1.32         {d0[1]}, [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        vshll.u8        q0, d0, #6\n        vst1.64         {d0}, [r0], r12\n        vst1.64         {d1}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w6_neon_8, export=1\n        init_put_pixels\n        vmov.u8         q10, #255", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:20", "text": "bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w4_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #2\n        vld1.32         {d0[0]}, [r1], r2\n        vld1.32         {d0[1]}, [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        vshll.u8        q0, d0, #6\n        vst1.64         {d0}, [r0], r12\n        vst1.64         {d1}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w6_neon_8, export=1\n        init_put_pixels\n        vmov.u8         q10, #255\n        vshr.u64        d21, #32\n0:      subs            r3, #1\n        vld1.16         {d0}, [r1], r2\n        pld             [r1]\n        vshll.u8        q0, d0, #6\n        vld1.8          {q12}, [r0]\n        vbit            q12, q0, q10\n        vst1.8          {q12}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w8_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #2\n        vld1.8          {d0}, [r1], r2\n        vld1.8          {d2}, [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        vshll.u8        q0, d0, #6\n        vshll.u8        q1, d2, #6\n        vst1.16         {q0}, [r0], r12\n        vst1.16         {q1}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w12_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #2\n        vld1.64         {d0}, [r1]\n        add             r1, #8\n        vld1.32         {d1[0]}, [r1], r2\n        sub             r1, #8\n        vld1.64         {d2}, [r1]\n        add             r1, #8\n        vld1.32         {d1[1]}, [r1], r2\n        sub             r1, #8\n        pld             [r1]\n        pld             [r1, r2]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:21", "text": "vshll.u8        q1, d2, #6\n        vst1.16         {q0}, [r0], r12\n        vst1.16         {q1}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w12_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #2\n        vld1.64         {d0}, [r1]\n        add             r1, #8\n        vld1.32         {d1[0]}, [r1], r2\n        sub             r1, #8\n        vld1.64         {d2}, [r1]\n        add             r1, #8\n        vld1.32         {d1[1]}, [r1], r2\n        sub             r1, #8\n        pld             [r1]\n        pld             [r1, r2]\n        vshll.u8        q8, d0, #6\n        vshll.u8        q9, d1, #6\n        vshll.u8        q10, d2, #6\n        vmov            d22, d19\n        vst1.64         {d16, d17, d18}, [r0], r12\n        vst1.64         {d20, d21, d22}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w16_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #2\n        vld1.8          {q0}, [r1], r2\n        vld1.8          {q1}, [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        vshll.u8        q8, d0, #6\n        vshll.u8        q9, d1, #6\n        vshll.u8        q10, d2, #6\n        vshll.u8        q11, d3, #6\n        vst1.8          {q8, q9}, [r0], r12\n        vst1.8          {q10, q11}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w24_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #1\n        vld1.8          {d0, d1, d2}, [r1], r2\n        pld             [r1]\n        vshll.u8        q10, d0, #6\n        vshll.u8        q11, d1, #6\n        vshll.u8        q12, d2, #6\n        vstm            r0, {q10, q11, q12}\n        add             r0, r12\n        bne             0b\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:22", "text": "vshll.u8        q11, d3, #6\n        vst1.8          {q8, q9}, [r0], r12\n        vst1.8          {q10, q11}, [r0], r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w24_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #1\n        vld1.8          {d0, d1, d2}, [r1], r2\n        pld             [r1]\n        vshll.u8        q10, d0, #6\n        vshll.u8        q11, d1, #6\n        vshll.u8        q12, d2, #6\n        vstm            r0, {q10, q11, q12}\n        add             r0, r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w32_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #1\n        vld1.8          {q0, q1}, [r1], r2\n        pld             [r1]\n        vshll.u8        q8, d0, #6\n        vshll.u8        q9, d1, #6\n        vshll.u8        q10, d2, #6\n        vshll.u8        q11, d3, #6\n        vstm            r0, {q8, q9, q10, q11}\n        add             r0, r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w48_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #1\n        vld1.8          {q0, q1}, [r1]\n        add             r1, #32\n        vld1.8          {q2}, [r1], r2\n        sub             r1, #32\n        pld             [r1]\n        vshll.u8        q8, d0, #6\n        vshll.u8        q9, d1, #6\n        vshll.u8        q10, d2, #6\n        vshll.u8        q11, d3, #6\n        vshll.u8        q12, d4, #6\n        vshll.u8        q13, d5, #6\n        vstm            r0, {q8, q9, q10, q11, q12, q13}\n        add             r0, r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w64_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #1\n        vld1.8          {q0, q1}, [r1]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:23", "text": "add             r1, #32\n        vld1.8          {q2}, [r1], r2\n        sub             r1, #32\n        pld             [r1]\n        vshll.u8        q8, d0, #6\n        vshll.u8        q9, d1, #6\n        vshll.u8        q10, d2, #6\n        vshll.u8        q11, d3, #6\n        vshll.u8        q12, d4, #6\n        vshll.u8        q13, d5, #6\n        vstm            r0, {q8, q9, q10, q11, q12, q13}\n        add             r0, r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_pixels_w64_neon_8, export=1\n        init_put_pixels\n0:      subs            r3, #1\n        vld1.8          {q0, q1}, [r1]\n        add             r1, #32\n        vld1.8          {q2, q3}, [r1], r2\n        sub             r1, #32\n        pld             [r1]\n        vshll.u8        q8, d0, #6\n        vshll.u8        q9, d1, #6\n        vshll.u8        q10, d2, #6\n        vshll.u8        q11, d3, #6\n        vshll.u8        q12, d4, #6\n        vshll.u8        q13, d5, #6\n        vshll.u8        q14, d6, #6\n        vshll.u8        q15, d7, #6\n        vstm            r0, {q8, q9, q10, q11, q12, q13, q14, q15}\n        add             r0, r12\n        bne             0b\n        bx              lr\nendfunc\n\nfunction ff_hevc_put_qpel_uw_pixels_neon_8, export=1\n        push            {r4-r9}\n        ldr             r5, [sp, #24] // width\n        ldr             r4, [sp, #28] // height\n        ldr             r8, [sp, #32] // src2\n        ldr             r9, [sp, #36] // src2stride\n        vpush           {d8-d15}\n        cmp             r8, #0\n        bne             2f\n1:      subs            r4, #1\n        vld1.8          {d0}, [r2], r3\n        vst1.8          d0, [r0], r1\n        bne             1b\n        vpop            {d8-d15}\n        pop             {r4-r9}\n        bx              lr\n2:      subs            r4, #1\n        vld1.8          {d0}, [r2], r3\n        vld1.16         {q1}, [r8], r9\n        vshll.u8        q0, d0, #6\n        vqadd.s16       q0, q1\n        vqrshrun.s16    d0, q0, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:24", "text": "ldr             r5, [sp, #24] // width\n        ldr             r4, [sp, #28] // height\n        ldr             r8, [sp, #32] // src2\n        ldr             r9, [sp, #36] // src2stride\n        vpush           {d8-d15}\n        cmp             r8, #0\n        bne             2f\n1:      subs            r4, #1\n        vld1.8          {d0}, [r2], r3\n        vst1.8          d0, [r0], r1\n        bne             1b\n        vpop            {d8-d15}\n        pop             {r4-r9}\n        bx              lr\n2:      subs            r4, #1\n        vld1.8          {d0}, [r2], r3\n        vld1.16         {q1}, [r8], r9\n        vshll.u8        q0, d0, #6\n        vqadd.s16       q0, q1\n        vqrshrun.s16    d0, q0, #7\n        vst1.8          d0, [r0], r1\n        bne             2b\n        vpop            {d8-d15}\n        pop             {r4-r9}\n        bx              lr\nendfunc\n\n.macro put_qpel_uw_pixels width, regs, regs2, regs3, regs4\nfunction ff_hevc_put_qpel_uw_pixels_w\\width\\()_neon_8, export=1\n        ldr             r12, [sp] // height\n1:      subs            r12, #4\n        vld1.32         {\\regs}  , [r2], r3\n        vld1.32         {\\regs2} , [r2], r3\n        vld1.32         {\\regs3} , [r2], r3\n        vld1.32         {\\regs4} , [r2], r3\n        vst1.32         {\\regs}  , [r0], r1\n        vst1.32         {\\regs2} , [r0], r1\n        vst1.32         {\\regs3} , [r0], r1\n        vst1.32         {\\regs4} , [r0], r1\n        bne             1b\n        bx              lr\nendfunc\n.endm\n\n.macro put_qpel_uw_pixels_m width, regs, regs2, regs3, regs4\nfunction ff_hevc_put_qpel_uw_pixels_w\\width\\()_neon_8, export=1\n        push            {r4-r5}\n        ldr             r12, [sp, #8] // height\n1:      subs            r12, #2\n        mov             r4, r2\n        vld1.32         {\\regs} , [r2]!\n        vld1.32         {\\regs2} , [r2]\n        add             r2, r4, r3\n        mov             r4, r2\n        vld1.32         {\\regs3} , [r2]!\n        vld1.32         {\\regs4} , [r2]\n        add             r2, r4, r3\n        mov             r5, r0\n        vst1.32         {\\regs} , [r0]!\n        vst1.32         {\\regs2} , [r0]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:25", "text": "bx              lr\nendfunc\n.endm\n\n.macro put_qpel_uw_pixels_m width, regs, regs2, regs3, regs4\nfunction ff_hevc_put_qpel_uw_pixels_w\\width\\()_neon_8, export=1\n        push            {r4-r5}\n        ldr             r12, [sp, #8] // height\n1:      subs            r12, #2\n        mov             r4, r2\n        vld1.32         {\\regs} , [r2]!\n        vld1.32         {\\regs2} , [r2]\n        add             r2, r4, r3\n        mov             r4, r2\n        vld1.32         {\\regs3} , [r2]!\n        vld1.32         {\\regs4} , [r2]\n        add             r2, r4, r3\n        mov             r5, r0\n        vst1.32         {\\regs} , [r0]!\n        vst1.32         {\\regs2} , [r0]\n        add             r0, r5, r1\n        mov             r5, r0\n        vst1.32         {\\regs3} , [r0]!\n        vst1.32         {\\regs4} , [r0]\n        add             r0, r5, r1\n        bne             1b\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\nput_qpel_uw_pixels    4, d0[0], d0[1], d1[0], d1[1]\nput_qpel_uw_pixels    8, d0,    d1,    d2,    d3\nput_qpel_uw_pixels_m 12, d0,    d1[0], d2,    d3[0]\nput_qpel_uw_pixels   16, q0,    q1,    q2,    q3\nput_qpel_uw_pixels   24, d0-d2, d3-d5, d16-d18, d19-d21\nput_qpel_uw_pixels   32, q0-q1, q2-q3, q8-q9, q10-q11\nput_qpel_uw_pixels_m 48, q0-q1, q2,    q8-q9, q10\nput_qpel_uw_pixels_m 64, q0-q1, q2-q3, q8-q9, q10-q11", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 961, "line_end": 999}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:5", "text": "vsub.s32        q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32        q9,  q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32        q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32      d16, q9,  #6\n        vqshrn.s32      d17, q10, #6\n.endm\n\n.macro qpel_filter_1 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d20, #4   // 16*e\n        vshll.u8        q14, d21, #2   // 4*f\n        vmull.u8        \\out, d19, d24 // 58*d\n        vaddw.u8        q13, q13, d20  // 17*e\n        vmull.u8        q15, d18, d25  // 10*c\n        vaddw.u8        q14, q14, d21  // 5*f\n        vsubl.u8        q12, d22, d16  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d17, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f\n        vadd.s16        q13, q12       // - a + 4*b + g\n        vsub.s16        \\out, q15      // -10*c + 58*d + 17*e -5*f\n        vadd.s16        \\out, q13      // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro qpel_filter_2 out=q7\n        vmov.i16        q12, #10\n        vmov.i16        q14, #11\n        vaddl.u8        q13, d19, d20  // d + e\n        vaddl.u8        q15, d18, d21  // c + f\n        vmul.u16        q13, q12       // 10 * (d+e)\n        vmul.u16        q15, q14       // 11 * ( c + f)\n        vaddl.u8        \\out, d17, d22 // b + g\n        vaddl.u8        q12, d16, d23  // a + h\n        vadd.u16        \\out, q13      // b + 10 * (d + e) + g\n        vadd.s16        q12, q15\n        vshl.u16        \\out, #2       // 4 * (b + 10 * (d + e) + g)\n        vsub.s16        \\out, q12\n.endm\n\n.macro qpel_filter_3 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d19, #4   // 16*e\n        vshll.u8        q14, d18, #2   // 4*f\n        vmull.u8        \\out, d20, d24 // 58*d\n        vaddw.u8        q13, q13, d19  // 17*e\n        vmull.u8        q15, d21, d25  // 10*c\n        vaddw.u8        q14, q14, d18  // 5*f\n        vsubl.u8        q12, d17, d23  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d22, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f\n        vadd.s16        q13, q12       // - a + 4*b + g\n        vsub.s16        \\out, q15      // -10*c + 58*d + 17*e -5*f\n        vadd.s16        \\out, q13      // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro  hevc_put_qpel_vX_neon_8 filter\n        push   {r4, r5, r6, r7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:6", "text": ".macro qpel_filter_3 out=q7\n        vmov.u8         d24, #58\n        vmov.u8         d25, #10\n        vshll.u8        q13, d19, #4   // 16*e\n        vshll.u8        q14, d18, #2   // 4*f\n        vmull.u8        \\out, d20, d24 // 58*d\n        vaddw.u8        q13, q13, d19  // 17*e\n        vmull.u8        q15, d21, d25  // 10*c\n        vaddw.u8        q14, q14, d18  // 5*f\n        vsubl.u8        q12, d17, d23  // g - a\n        vadd.u16        \\out, q13      // 58d + 17e\n        vshll.u8        q13, d22, #2   // 4*b\n        vadd.u16        q15, q14       // 10*c + 5*f\n        vadd.s16        q13, q12       // - a + 4*b + g\n        vsub.s16        \\out, q15      // -10*c + 58*d + 17*e -5*f\n        vadd.s16        \\out, q13      // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro  hevc_put_qpel_vX_neon_8 filter\n        push   {r4, r5, r6, r7}\n        ldr    r4, [sp, #16] // height\n        ldr    r5, [sp, #20] // width\n        vpush {d8-d15}\n        sub       r2, r2, r3, lsl #1\n        sub       r2, r3\n        mov       r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        lsl       r1, #1\n0:      loadin8\n        cmp       r5, #4\n        beq       4f\n8:      subs r4, #1\n        \\filter\n        vst1.16    {q7}, [r0], r1\n        regshuffle_d8\n        vld1.8    {d23}, [r2], r3\n        bne 8b\n        subs  r5, #8\n        beq       99f\n        mov r4, r12\n        add r6, #16\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b     0b\n4:      subs r4, #1\n        \\filter\n        vst1.16    d14, [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4, r5, r6, r7}\n        bx lr\n.endm\n\n.macro  hevc_put_qpel_uw_vX_neon_8 filter\n        push   {r4-r10}\n        ldr    r5, [sp, #28] // width", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:7", "text": "mov r4, r12\n        add r6, #16\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b     0b\n4:      subs r4, #1\n        \\filter\n        vst1.16    d14, [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4, r5, r6, r7}\n        bx lr\n.endm\n\n.macro  hevc_put_qpel_uw_vX_neon_8 filter\n        push   {r4-r10}\n        ldr    r5, [sp, #28] // width\n        ldr    r4, [sp, #32] // height\n        ldr    r8, [sp, #36] // src2\n        ldr    r9, [sp, #40] // src2stride\n        vpush {d8-d15}\n        sub       r2, r2, r3, lsl #1\n        sub       r2, r3\n        mov       r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r8, #0\n        bne       .Lbi\\@\n0:      loadin8\n        cmp       r5, #4\n        beq       4f\n8:      subs r4, #1\n        \\filter\n        vqrshrun.s16   d0, q7, #6\n        vst1.8    d0, [r0], r1\n        regshuffle_d8\n        vld1.8    {d23}, [r2], r3\n        bne 8b\n        subs  r5, #8\n        beq       99f\n        mov r4, r12\n        add r6, #8\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b     0b\n4:      subs r4, #1\n        \\filter\n        vqrshrun.s16   d0, q7, #6\n        vst1.32    d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n        b   99f\n.Lbi\\@: lsl       r9, #1\n        mov       r10, r8\n0:      loadin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:8", "text": "bne 8b\n        subs  r5, #8\n        beq       99f\n        mov r4, r12\n        add r6, #8\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b     0b\n4:      subs r4, #1\n        \\filter\n        vqrshrun.s16   d0, q7, #6\n        vst1.32    d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n        b   99f\n.Lbi\\@: lsl       r9, #1\n        mov       r10, r8\n0:      loadin8\n        cmp       r5, #4\n        beq       4f\n8:      subs r4, #1\n        \\filter\n        vld1.16        {q0}, [r8], r9\n        vqadd.s16      q0, q7\n        vqrshrun.s16   d0, q0, #7\n        vst1.8         d0, [r0], r1\n        regshuffle_d8\n        vld1.8    {d23}, [r2], r3\n        bne 8b\n        subs  r5, #8\n        beq       99f\n        mov r4, r12\n        add r6, #8\n        mov r0, r6\n        add r10, #16\n        mov r8, r10\n        add r7, #8\n        mov r2, r7\n        b     0b\n4:      subs r4, #1\n        \\filter\n        vld1.16      d0, [r8], r9\n        vqadd.s16    d0, d14\n        vqrshrun.s16 d0, q0, #7\n        vst1.32      d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4-r10}\n        bx lr\n.endm\n\nfunction ff_hevc_put_qpel_v1_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_v2_neon_8, export=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:9", "text": "b     0b\n4:      subs r4, #1\n        \\filter\n        vld1.16      d0, [r8], r9\n        vqadd.s16    d0, d14\n        vqrshrun.s16 d0, q0, #7\n        vst1.32      d0[0], [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4-r10}\n        bx lr\n.endm\n\nfunction ff_hevc_put_qpel_v1_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_v2_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_v3_neon_8, export=1\n        hevc_put_qpel_vX_neon_8 qpel_filter_3\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_v1_neon_8, export=1\n        hevc_put_qpel_uw_vX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_uw_v2_neon_8, export=1\n        hevc_put_qpel_uw_vX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_uw_v3_neon_8, export=1\n        hevc_put_qpel_uw_vX_neon_8 qpel_filter_3\nendfunc\n\n.macro hevc_put_qpel_hX_neon_8 filter\n        push     {r4, r5, r6, r7}\n        ldr    r4, [sp, #16] // height\n        ldr    r5, [sp, #20] // width\n\n        vpush    {d8-d15}\n        sub       r2, #4\n        lsl       r1, #1\n        mov      r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r5, #4\n        beq       4f\n8:      subs      r4, #1\n        vextin8\n        \\filter\n        vst1.16   {q7}, [r0], r1\n        bne       8b\n        subs      r5, #8\n        beq      99f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:10", "text": ".macro hevc_put_qpel_hX_neon_8 filter\n        push     {r4, r5, r6, r7}\n        ldr    r4, [sp, #16] // height\n        ldr    r5, [sp, #20] // width\n\n        vpush    {d8-d15}\n        sub       r2, #4\n        lsl       r1, #1\n        mov      r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r5, #4\n        beq       4f\n8:      subs      r4, #1\n        vextin8\n        \\filter\n        vst1.16   {q7}, [r0], r1\n        bne       8b\n        subs      r5, #8\n        beq      99f\n        mov       r4, r12\n        add       r6, #16\n        mov       r0, r6\n        add       r7, #8\n        mov       r2, r7\n        cmp       r5, #4\n        bne       8b\n4:      subs      r4, #1\n        vextin8\n        \\filter\n        vst1.16  d14, [r0], r1\n        bne       4b\n99:     vpop     {d8-d15}\n        pop      {r4, r5, r6, r7}\n        bx lr\n.endm\n\n.macro hevc_put_qpel_uw_hX_neon_8 filter\n        push     {r4-r10}\n        ldr       r5, [sp, #28] // width\n        ldr       r4, [sp, #32] // height\n        ldr       r8, [sp, #36] // src2\n        ldr       r9, [sp, #40] // src2stride\n        vpush    {d8-d15}\n        sub       r2, #4\n        mov      r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r8, #0\n        bne       .Lbi\\@\n        cmp       r5, #4\n        beq       4f\n8:      subs      r4, #1\n        vextin8\n        \\filter\n        vqrshrun.s16   d0, q7, #6\n        vst1.8    d0, [r0], r1\n        bne       8b\n        subs      r5, #8\n        beq      99f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:11", "text": "ldr       r4, [sp, #32] // height\n        ldr       r8, [sp, #36] // src2\n        ldr       r9, [sp, #40] // src2stride\n        vpush    {d8-d15}\n        sub       r2, #4\n        mov      r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r8, #0\n        bne       .Lbi\\@\n        cmp       r5, #4\n        beq       4f\n8:      subs      r4, #1\n        vextin8\n        \\filter\n        vqrshrun.s16   d0, q7, #6\n        vst1.8    d0, [r0], r1\n        bne       8b\n        subs      r5, #8\n        beq      99f\n        mov       r4, r12\n        add       r6, #8\n        mov       r0, r6\n        add       r7, #8\n        mov       r2, r7\n        cmp       r5, #4\n        bne       8b\n4:      subs      r4, #1\n        vextin8\n        \\filter\n        vqrshrun.s16   d0, q7, #6\n        vst1.32  d0[0], [r0], r1\n        bne       4b\n        b         99f\n.Lbi\\@:\n        lsl       r9, #1\n        cmp       r5, #4\n        beq       4f\n        mov       r10, r8\n8:      subs      r4, #1\n        vextin8\n        \\filter\n        vld1.16        {q0}, [r8], r9\n        vqadd.s16      q0, q7\n        vqrshrun.s16   d0, q0, #7\n        vst1.8         d0, [r0], r1\n        bne       8b\n        subs      r5, #8\n        beq      99f\n        mov       r4, r12\n        add       r6, #8\n        add       r10, #16\n        mov       r8, r10\n        mov       r0, r6\n        add       r7, #8\n        mov       r2, r7\n        cmp       r5, #4\n        bne       8b\n4:      subs      r4, #1\n        vextin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:12", "text": "vextin8\n        \\filter\n        vld1.16        {q0}, [r8], r9\n        vqadd.s16      q0, q7\n        vqrshrun.s16   d0, q0, #7\n        vst1.8         d0, [r0], r1\n        bne       8b\n        subs      r5, #8\n        beq      99f\n        mov       r4, r12\n        add       r6, #8\n        add       r10, #16\n        mov       r8, r10\n        mov       r0, r6\n        add       r7, #8\n        mov       r2, r7\n        cmp       r5, #4\n        bne       8b\n4:      subs      r4, #1\n        vextin8\n        \\filter\n        vld1.16      d0, [r8], r9\n        vqadd.s16    d0, d14\n        vqrshrun.s16 d0, q0, #7\n        vst1.32      d0[0], [r0], r1\n        bne       4b\n99:     vpop     {d8-d15}\n        pop      {r4-r10}\n        bx lr\n.endm\n\nfunction ff_hevc_put_qpel_h1_neon_8, export=1\n        hevc_put_qpel_hX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_h2_neon_8, export=1\n        hevc_put_qpel_hX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_h3_neon_8, export=1\n        hevc_put_qpel_hX_neon_8 qpel_filter_3\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_h1_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_3\nendfunc\n\n.macro hevc_put_qpel_hXvY_neon_8 filterh filterv\n        push   {r4, r5, r6, r7}\n        ldr    r4, [sp, #16] // height\n        ldr    r5, [sp, #20] // width", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:13", "text": "hevc_put_qpel_hX_neon_8 qpel_filter_3\nendfunc\n\n\nfunction ff_hevc_put_qpel_uw_h1_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_1\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_2\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3_neon_8, export=1\n        hevc_put_qpel_uw_hX_neon_8 qpel_filter_3\nendfunc\n\n.macro hevc_put_qpel_hXvY_neon_8 filterh filterv\n        push   {r4, r5, r6, r7}\n        ldr    r4, [sp, #16] // height\n        ldr    r5, [sp, #20] // width\n\n        vpush {d8-d15}\n        sub       r2, #4\n        sub       r2, r2, r3, lsl #1\n        sub       r2, r3  // extra_before 3\n        lsl       r1, #1\n        mov       r12, r4\n        mov       r6, r0\n        mov       r7, r2\n0:      vextin8\n        \\filterh q0\n        vextin8\n        \\filterh q1\n        vextin8\n        \\filterh q2\n        vextin8\n        \\filterh q3\n        vextin8\n        \\filterh q4\n        vextin8\n        \\filterh q5\n        vextin8\n        \\filterh q6\n        vextin8\n        \\filterh q7\n        cmp r5, #4\n        beq 4f\n8:      subs  r4, #1\n        \\filterv\n        vst1.16    {q8}, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 8b\n        subs  r5, #8\n        beq 99f\n        mov r4, r12\n        add r6, #16\n        mov r0, r6\n        add r7, #8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:14", "text": "\\filterh q5\n        vextin8\n        \\filterh q6\n        vextin8\n        \\filterh q7\n        cmp r5, #4\n        beq 4f\n8:      subs  r4, #1\n        \\filterv\n        vst1.16    {q8}, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 8b\n        subs  r5, #8\n        beq 99f\n        mov r4, r12\n        add r6, #16\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b 0b\n4:      subs  r4, #1\n        \\filterv\n        vst1.16    d16, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4, r5, r6, r7}\n        bx lr\n.endm\n\n.macro hevc_put_qpel_uw_hXvY_neon_8 filterh filterv\n        push     {r4-r10}\n        ldr       r5, [sp, #28] // width\n        ldr       r4, [sp, #32] // height\n        ldr       r8, [sp, #36] // src2\n        ldr       r9, [sp, #40] // src2stride\n        vpush {d8-d15}\n        sub       r2, #4\n        sub       r2, r2, r3, lsl #1\n        sub       r2, r3  // extra_before 3\n        mov       r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r8, #0\n        bne       .Lbi\\@\n0:      vextin8\n        \\filterh q0\n        vextin8\n        \\filterh q1\n        vextin8\n        \\filterh q2\n        vextin8\n        \\filterh q3\n        vextin8\n        \\filterh q4\n        vextin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:15", "text": "vpush {d8-d15}\n        sub       r2, #4\n        sub       r2, r2, r3, lsl #1\n        sub       r2, r3  // extra_before 3\n        mov       r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        cmp       r8, #0\n        bne       .Lbi\\@\n0:      vextin8\n        \\filterh q0\n        vextin8\n        \\filterh q1\n        vextin8\n        \\filterh q2\n        vextin8\n        \\filterh q3\n        vextin8\n        \\filterh q4\n        vextin8\n        \\filterh q5\n        vextin8\n        \\filterh q6\n        vextin8\n        \\filterh q7\n        cmp r5, #4\n        beq 4f\n8:      subs  r4, #1\n        \\filterv\n        vqrshrun.s16   d0, q8, #6\n        vst1.8    d0, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 8b\n        subs  r5, #8\n        beq 99f\n        mov r4, r12\n        add r6, #8\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b 0b\n4:      subs  r4, #1\n        \\filterv\n        vqrshrun.s16   d0, q8, #6\n        vst1.32        d0[0], [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 4b\n        b   99f\n.Lbi\\@: lsl      r9, #1\n        mov      r10, r8\n0:      vextin8\n        \\filterh q0\n        vextin8\n        \\filterh q1\n        vextin8\n        \\filterh q2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:16", "text": "add r7, #8\n        mov r2, r7\n        b 0b\n4:      subs  r4, #1\n        \\filterv\n        vqrshrun.s16   d0, q8, #6\n        vst1.32        d0[0], [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 4b\n        b   99f\n.Lbi\\@: lsl      r9, #1\n        mov      r10, r8\n0:      vextin8\n        \\filterh q0\n        vextin8\n        \\filterh q1\n        vextin8\n        \\filterh q2\n        vextin8\n        \\filterh q3\n        vextin8\n        \\filterh q4\n        vextin8\n        \\filterh q5\n        vextin8\n        \\filterh q6\n        vextin8\n        \\filterh q7\n        cmp r5, #4\n        beq 4f\n8:      subs  r4, #1\n        \\filterv\n        vld1.16        {q0}, [r8], r9\n        vqadd.s16      q0, q8\n        vqrshrun.s16   d0, q0, #7\n        vst1.8         d0, [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 8b\n        subs  r5, #8\n        beq 99f\n        mov r4, r12\n        add r6, #8\n        mov r0, r6\n        add r10, #16\n        mov r8, r10\n        add r7, #8\n        mov r2, r7\n        b 0b\n4:      subs  r4, #1\n        \\filterv\n        vld1.16      d0, [r8], r9\n        vqadd.s16    d0, d16\n        vqrshrun.s16 d0, q0, #7\n        vst1.32      d0[0], [r0], r1\n        regshuffle_q8\n        vextin8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:17", "text": "\\filterh q7\n        bne 8b\n        subs  r5, #8\n        beq 99f\n        mov r4, r12\n        add r6, #8\n        mov r0, r6\n        add r10, #16\n        mov r8, r10\n        add r7, #8\n        mov r2, r7\n        b 0b\n4:      subs  r4, #1\n        \\filterv\n        vld1.16      d0, [r8], r9\n        vqadd.s16    d0, d16\n        vqrshrun.s16 d0, q0, #7\n        vst1.32      d0[0], [r0], r1\n        regshuffle_q8\n        vextin8\n        \\filterh q7\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4-r10}\n        bx lr\n.endm\n\n\nfunction ff_hevc_put_qpel_h1v1_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v1_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h3v1_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_3, qpel_filter_1_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h1v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h3v2_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h1v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_h2v3_neon_8, export=1\n        hevc_put_qpel_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:19", "text": "function ff_hevc_put_qpel_uw_h2v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h1v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_3_32b\nendfunc\n\n.macro init_put_pixels\n        pld             [r1]\n        pld             [r1, r2]\n        mov             r12, MAX_PB_SIZE\n        lsl             r12, #1\n.endm\n\nfunction ff_hevc_put_pixels_w2_neon_8, export=1\n        init_put_pixels\n        vmov.u8      d5, #255\n        vshr.u64     d5, #32\n0:      subs r3, #1\n        vld1.32     {d0[0]}, [r1], r2\n        pld [r1]\n        vld1.32     d6, [r0]\n        vshll.u8    q0, d0, #6\n        vbit        d6, d0, d5\n        vst1.32     d6, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w4_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.32   {d0[0]}, [r1], r2\n        vld1.32   {d0[1]}, [r1], r2\n        pld       [r1]\n        pld       [r1, r2]\n        vshll.u8   q0, d0, #6\n        vst1.64   {d0}, [r0], r12\n        vst1.64   {d1}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w6_neon_8, export=1\n        init_put_pixels\n        vmov.u8      q10, #255", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:20", "text": "bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w4_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.32   {d0[0]}, [r1], r2\n        vld1.32   {d0[1]}, [r1], r2\n        pld       [r1]\n        pld       [r1, r2]\n        vshll.u8   q0, d0, #6\n        vst1.64   {d0}, [r0], r12\n        vst1.64   {d1}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w6_neon_8, export=1\n        init_put_pixels\n        vmov.u8      q10, #255\n        vshr.u64     d21, #32\n0:      subs r3, #1\n        vld1.16     {d0}, [r1], r2\n        pld [r1]\n        vshll.u8    q0, d0, #6\n        vld1.8      {q12}, [r0]\n        vbit        q12, q0, q10\n        vst1.8      {q12}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w8_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.8   {d0}, [r1], r2\n        vld1.8   {d2}, [r1], r2\n        pld        [r1]\n        pld        [r1, r2]\n        vshll.u8   q0, d0, #6\n        vshll.u8   q1, d2, #6\n        vst1.16   {q0}, [r0], r12\n        vst1.16   {q1}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w12_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.64    {d0}, [r1]\n        add       r1, #8\n        vld1.32   {d1[0]}, [r1], r2\n        sub       r1, #8\n        vld1.64    {d2}, [r1]\n        add       r1, #8\n        vld1.32   {d1[1]}, [r1], r2\n        sub       r1, #8\n        pld       [r1]\n        pld       [r1, r2]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:21", "text": "vshll.u8   q1, d2, #6\n        vst1.16   {q0}, [r0], r12\n        vst1.16   {q1}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w12_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.64    {d0}, [r1]\n        add       r1, #8\n        vld1.32   {d1[0]}, [r1], r2\n        sub       r1, #8\n        vld1.64    {d2}, [r1]\n        add       r1, #8\n        vld1.32   {d1[1]}, [r1], r2\n        sub       r1, #8\n        pld       [r1]\n        pld       [r1, r2]\n        vshll.u8  q8, d0, #6\n        vshll.u8  q9, d1, #6\n        vshll.u8  q10, d2, #6\n        vmov      d22, d19\n        vst1.64   {d16, d17, d18}, [r0], r12\n        vst1.64   {d20, d21, d22}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w16_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.8   {q0}, [r1], r2\n        vld1.8   {q1}, [r1], r2\n        pld       [r1]\n        pld       [r1, r2]\n        vshll.u8  q8, d0, #6\n        vshll.u8  q9, d1, #6\n        vshll.u8  q10, d2, #6\n        vshll.u8  q11, d3, #6\n        vst1.8    {q8, q9}, [r0], r12\n        vst1.8    {q10, q11}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w24_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #1\n        vld1.8   {d0, d1, d2}, [r1], r2\n        pld       [r1]\n        vshll.u8  q10, d0, #6\n        vshll.u8  q11, d1, #6\n        vshll.u8  q12, d2, #6\n        vstm     r0, {q10, q11, q12}\n        add      r0, r12\n        bne 0b\n        bx lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:22", "text": "vshll.u8  q11, d3, #6\n        vst1.8    {q8, q9}, [r0], r12\n        vst1.8    {q10, q11}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w24_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #1\n        vld1.8   {d0, d1, d2}, [r1], r2\n        pld       [r1]\n        vshll.u8  q10, d0, #6\n        vshll.u8  q11, d1, #6\n        vshll.u8  q12, d2, #6\n        vstm     r0, {q10, q11, q12}\n        add      r0, r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w32_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #1\n        vld1.8 {q0, q1}, [r1], r2\n        pld       [r1]\n        vshll.u8  q8, d0, #6\n        vshll.u8  q9, d1, #6\n        vshll.u8  q10, d2, #6\n        vshll.u8  q11, d3, #6\n        vstm    r0, {q8, q9, q10, q11}\n        add     r0, r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w48_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #1\n        vld1.8    {q0, q1}, [r1]\n        add r1, #32\n        vld1.8    {q2}, [r1], r2\n        sub r1, #32\n        pld       [r1]\n        vshll.u8  q8, d0, #6\n        vshll.u8  q9, d1, #6\n        vshll.u8  q10, d2, #6\n        vshll.u8  q11, d3, #6\n        vshll.u8  q12, d4, #6\n        vshll.u8  q13, d5, #6\n        vstm r0, {q8, q9, q10, q11, q12, q13}\n        add  r0, r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w64_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #1\n        vld1.8    {q0, q1}, [r1]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:23", "text": "add r1, #32\n        vld1.8    {q2}, [r1], r2\n        sub r1, #32\n        pld       [r1]\n        vshll.u8  q8, d0, #6\n        vshll.u8  q9, d1, #6\n        vshll.u8  q10, d2, #6\n        vshll.u8  q11, d3, #6\n        vshll.u8  q12, d4, #6\n        vshll.u8  q13, d5, #6\n        vstm r0, {q8, q9, q10, q11, q12, q13}\n        add  r0, r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w64_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #1\n        vld1.8    {q0, q1}, [r1]\n        add      r1, #32\n        vld1.8    {q2, q3}, [r1], r2\n        sub      r1, #32\n        pld       [r1]\n        vshll.u8  q8, d0, #6\n        vshll.u8  q9, d1, #6\n        vshll.u8  q10, d2, #6\n        vshll.u8  q11, d3, #6\n        vshll.u8  q12, d4, #6\n        vshll.u8  q13, d5, #6\n        vshll.u8  q14, d6, #6\n        vshll.u8  q15, d7, #6\n        vstm    r0, {q8, q9, q10, q11, q12, q13, q14, q15}\n        add r0, r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_qpel_uw_pixels_neon_8, export=1\n        push   {r4-r9}\n        ldr    r5, [sp, #24] // width\n        ldr    r4, [sp, #28] // height\n        ldr    r8, [sp, #32] // src2\n        ldr    r9, [sp, #36] // src2stride\n        vpush {d8-d15}\n        cmp    r8, #0\n        bne    2f\n1:      subs r4, #1\n        vld1.8     {d0}, [r2], r3\n        vst1.8      d0, [r0], r1\n        bne 1b\n        vpop {d8-d15}\n        pop   {r4-r9}\n        bx lr\n2:      subs  r4, #1\n        vld1.8         {d0}, [r2], r3\n        vld1.16        {q1}, [r8], r9\n        vshll.u8       q0, d0, #6\n        vqadd.s16      q0, q1\n        vqrshrun.s16   d0, q0, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:24", "text": "ldr    r5, [sp, #24] // width\n        ldr    r4, [sp, #28] // height\n        ldr    r8, [sp, #32] // src2\n        ldr    r9, [sp, #36] // src2stride\n        vpush {d8-d15}\n        cmp    r8, #0\n        bne    2f\n1:      subs r4, #1\n        vld1.8     {d0}, [r2], r3\n        vst1.8      d0, [r0], r1\n        bne 1b\n        vpop {d8-d15}\n        pop   {r4-r9}\n        bx lr\n2:      subs  r4, #1\n        vld1.8         {d0}, [r2], r3\n        vld1.16        {q1}, [r8], r9\n        vshll.u8       q0, d0, #6\n        vqadd.s16      q0, q1\n        vqrshrun.s16   d0, q0, #7\n        vst1.8      d0, [r0], r1\n        bne 2b\n        vpop {d8-d15}\n        pop   {r4-r9}\n        bx lr\nendfunc\n\n.macro put_qpel_uw_pixels width, regs, regs2, regs3, regs4\nfunction ff_hevc_put_qpel_uw_pixels_w\\width\\()_neon_8, export=1\n        ldr    r12, [sp] // height\n1:      subs   r12, #4\n        vld1.32     {\\regs}  , [r2], r3\n        vld1.32     {\\regs2} , [r2], r3\n        vld1.32     {\\regs3} , [r2], r3\n        vld1.32     {\\regs4} , [r2], r3\n        vst1.32     {\\regs}  , [r0], r1\n        vst1.32     {\\regs2} , [r0], r1\n        vst1.32     {\\regs3} , [r0], r1\n        vst1.32     {\\regs4} , [r0], r1\n        bne 1b\n        bx lr\nendfunc\n.endm\n\n.macro put_qpel_uw_pixels_m width, regs, regs2, regs3, regs4\nfunction ff_hevc_put_qpel_uw_pixels_w\\width\\()_neon_8, export=1\n        push   {r4-r5}\n        ldr    r12, [sp, #8] // height\n1:      subs r12, #2\n        mov      r4, r2\n        vld1.32   {\\regs} , [r2]!\n        vld1.32   {\\regs2} , [r2]\n        add      r2, r4, r3\n        mov      r4, r2\n        vld1.32   {\\regs3} , [r2]!\n        vld1.32   {\\regs4} , [r2]\n        add      r2, r4, r3\n        mov      r5, r0\n        vst1.32   {\\regs} , [r0]!\n        vst1.32   {\\regs2} , [r0]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:25", "text": "bx lr\nendfunc\n.endm\n\n.macro put_qpel_uw_pixels_m width, regs, regs2, regs3, regs4\nfunction ff_hevc_put_qpel_uw_pixels_w\\width\\()_neon_8, export=1\n        push   {r4-r5}\n        ldr    r12, [sp, #8] // height\n1:      subs r12, #2\n        mov      r4, r2\n        vld1.32   {\\regs} , [r2]!\n        vld1.32   {\\regs2} , [r2]\n        add      r2, r4, r3\n        mov      r4, r2\n        vld1.32   {\\regs3} , [r2]!\n        vld1.32   {\\regs4} , [r2]\n        add      r2, r4, r3\n        mov      r5, r0\n        vst1.32   {\\regs} , [r0]!\n        vst1.32   {\\regs2} , [r0]\n        add      r0, r5, r1\n        mov      r5, r0\n        vst1.32   {\\regs3} , [r0]!\n        vst1.32   {\\regs4} , [r0]\n        add      r0, r5, r1\n        bne 1b\n        pop   {r4-r5}\n        bx lr\nendfunc\n.endm\n\nput_qpel_uw_pixels    4, d0[0], d0[1], d1[0], d1[1]\nput_qpel_uw_pixels    8, d0,    d1,    d2,    d3\nput_qpel_uw_pixels_m 12, d0,    d1[0], d2,    d3[0]\nput_qpel_uw_pixels   16, q0,    q1,    q2,    q3\nput_qpel_uw_pixels   24, d0-d2, d3-d5, d16-d18, d19-d21\nput_qpel_uw_pixels   32, q0-q1, q2-q3, q8-q9, q10-q11\nput_qpel_uw_pixels_m 48, q0-q1, q2,    q8-q9, q10\nput_qpel_uw_pixels_m 64, q0-q1, q2-q3, q8-q9, q10-q11", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "65d4c5bbe21cfdbd3de79885465d292042c15081", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65d4c5bbe21cfdbd3de79885465d292042c15081/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 961, "line_end": 999}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:1", "text": "/*\n * Copyright (c) 2014 - 2015 Seppo Tomperi <seppo.tomperi@vtt.fi>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n#define MAX_PB_SIZE #64\n\n.macro regshuffle_d8\n    vmov d16, d17\n    vmov d17, d18\n    vmov d18, d19\n    vmov d19, d20\n    vmov d20, d21\n    vmov d21, d22\n    vmov d22, d23\n.endm\n\n.macro regshuffle_q8\n    vmov q0, q1\n    vmov q1, q2\n    vmov q2, q3\n    vmov q3, q4\n    vmov q4, q5\n    vmov q5, q6\n    vmov q6, q7\n.endm\n\n.macro vextin8\n        pld       [r2]\n        vld1.8    {q11}, [r2], r3\n        vext.8    d16, d22, d23, #1\n        vext.8    d17, d22, d23, #2\n        vext.8    d18, d22, d23, #3\n        vext.8    d19, d22, d23, #4\n        vext.8    d20, d22, d23, #5\n        vext.8    d21, d22, d23, #6\n        vext.8    d22, d22, d23, #7\n.endm\n\n.macro loadin8\n        pld       [r2]\n        vld1.8    {d16}, [r2], r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:2", "text": "vmov q4, q5\n    vmov q5, q6\n    vmov q6, q7\n.endm\n\n.macro vextin8\n        pld       [r2]\n        vld1.8    {q11}, [r2], r3\n        vext.8    d16, d22, d23, #1\n        vext.8    d17, d22, d23, #2\n        vext.8    d18, d22, d23, #3\n        vext.8    d19, d22, d23, #4\n        vext.8    d20, d22, d23, #5\n        vext.8    d21, d22, d23, #6\n        vext.8    d22, d22, d23, #7\n.endm\n\n.macro loadin8\n        pld       [r2]\n        vld1.8    {d16}, [r2], r3\n        pld       [r2]\n        vld1.8    {d17}, [r2], r3\n        pld       [r2]\n        vld1.8    {d18}, [r2], r3\n        pld       [r2]\n        vld1.8    {d19}, [r2], r3\n        pld       [r2]\n        vld1.8    {d20}, [r2], r3\n        pld       [r2]\n        vld1.8    {d21}, [r2], r3\n        pld       [r2]\n        vld1.8    {d22}, [r2], r3\n        pld       [r2]\n        vld1.8    {d23}, [r2], r3\n.endm\n\n.macro qpel_filter_1_32b\n        vmov.i16   d16, #58\n        vmov.i16   d17, #10\n        vmull.s16   q9, d6, d16   // 58 * d0\n        vmull.s16  q10, d7, d16   // 58 * d1\n        vmov.i16   d16, #17\n        vmull.s16  q11, d4, d17   // 10 * c0\n        vmull.s16  q12, d5, d17   // 10 * c1\n        vmov.i16   d17, #5\n        vmull.s16  q13, d8, d16   // 17 * e0\n        vmull.s16  q14, d9, d16   // 17 * e1\n        vmull.s16  q15, d10, d17  //  5 * f0\n        vmull.s16   q8, d11, d17  //  5 * f1\n        vsub.s32    q9, q11       // 58 * d0 - 10 * c0\n        vsub.s32   q10, q12       // 58 * d1 - 10 * c1\n        vshll.s16  q11, d2, #2    // 4 * b0\n        vshll.s16  q12, d3, #2    // 4 * b1\n        vadd.s32    q9, q13       // 58 * d0 - 10 * c0 + 17 * e0\n        vadd.s32   q10, q14       // 58 * d1 - 10 * c1 + 17 * e1\n        vsubl.s16  q13, d12, d0   // g0 - a0\n        vsubl.s16  q14, d13, d1   // g1 - a1\n        vadd.s32    q9, q11       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0\n        vadd.s32   q10, q12       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1\n        vsub.s32   q13, q15       // g0 - a0 - 5 * f0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:3", "text": "vmull.s16  q10, d7, d16   // 58 * d1\n        vmov.i16   d16, #17\n        vmull.s16  q11, d4, d17   // 10 * c0\n        vmull.s16  q12, d5, d17   // 10 * c1\n        vmov.i16   d17, #5\n        vmull.s16  q13, d8, d16   // 17 * e0\n        vmull.s16  q14, d9, d16   // 17 * e1\n        vmull.s16  q15, d10, d17  //  5 * f0\n        vmull.s16   q8, d11, d17  //  5 * f1\n        vsub.s32    q9, q11       // 58 * d0 - 10 * c0\n        vsub.s32   q10, q12       // 58 * d1 - 10 * c1\n        vshll.s16  q11, d2, #2    // 4 * b0\n        vshll.s16  q12, d3, #2    // 4 * b1\n        vadd.s32    q9, q13       // 58 * d0 - 10 * c0 + 17 * e0\n        vadd.s32   q10, q14       // 58 * d1 - 10 * c1 + 17 * e1\n        vsubl.s16  q13, d12, d0   // g0 - a0\n        vsubl.s16  q14, d13, d1   // g1 - a1\n        vadd.s32    q9, q11       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0\n        vadd.s32   q10, q12       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1\n        vsub.s32   q13, q15       // g0 - a0 - 5 * f0\n        vsub.s32   q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32    q9, q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32   q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32  d16, q9, #6\n        vqshrn.s32  d17, q10, #6\n.endm\n\n// input  q0 - q7\n// output q8\n.macro qpel_filter_2_32b\n        vmov.i32   q8, #11\n        vaddl.s16   q9, d6, d8   // d0 + e0\n        vaddl.s16  q10, d7, d9   // d1 + e1\n        vaddl.s16  q11, d4, d10  // c0 + f0\n        vaddl.s16  q12, d5, d11  // c1 + f1\n        vmul.s32   q11, q8       // 11 * (c0 + f0)\n        vmul.s32   q12, q8       // 11 * (c1 + f1)\n        vmov.i32   q8, #40\n        vaddl.s16  q15, d2, d12  // b0 + g0\n        vmul.s32    q9, q8       // 40 * (d0 + e0)\n        vmul.s32   q10, q8       // 40 * (d1 + e1)\n        vaddl.s16   q8, d3, d13  // b1 + g1\n        vaddl.s16  q13, d0, d14  // a0 + h0\n        vaddl.s16  q14, d1, d15  // a1 + h1\n        vshl.s32   q15, #2       // 4*(b0+g0)\n        vshl.s32    q8, #2       // 4*(b1+g1)\n        vadd.s32   q11, q13      // 11 * (c0 + f0) + a0 + h0\n        vadd.s32   q12, q14      // 11 * (c1 + f1) + a1 + h1\n        vadd.s32   q9, q15       // 40 * (d0 + e0) + 4*(b0+g0)\n        vadd.s32   q10, q8       // 40 * (d1 + e1) + 4*(b1+g1)\n        vsub.s32   q9, q11       // 40 * (d0 + e0) + 4*(b0+g0) - (11 * (c0 + f0) + a0 + h0)\n        vsub.s32   q10, q12      // 40 * (d1 + e1) + 4*(b1+g1) - (11 * (c1 + f1) + a1 + h1)\n        vqshrn.s32  d16, q9, #6\n        vqshrn.s32  d17, q10, #6\n.endm\n\n.macro qpel_filter_3_32b\n        vmov.i16   d16, #58\n        vmov.i16   d17, #10\n        vmull.s16   q9, d8, d16   // 58 * d0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:4", "text": "vmul.s32   q10, q8       // 40 * (d1 + e1)\n        vaddl.s16   q8, d3, d13  // b1 + g1\n        vaddl.s16  q13, d0, d14  // a0 + h0\n        vaddl.s16  q14, d1, d15  // a1 + h1\n        vshl.s32   q15, #2       // 4*(b0+g0)\n        vshl.s32    q8, #2       // 4*(b1+g1)\n        vadd.s32   q11, q13      // 11 * (c0 + f0) + a0 + h0\n        vadd.s32   q12, q14      // 11 * (c1 + f1) + a1 + h1\n        vadd.s32   q9, q15       // 40 * (d0 + e0) + 4*(b0+g0)\n        vadd.s32   q10, q8       // 40 * (d1 + e1) + 4*(b1+g1)\n        vsub.s32   q9, q11       // 40 * (d0 + e0) + 4*(b0+g0) - (11 * (c0 + f0) + a0 + h0)\n        vsub.s32   q10, q12      // 40 * (d1 + e1) + 4*(b1+g1) - (11 * (c1 + f1) + a1 + h1)\n        vqshrn.s32  d16, q9, #6\n        vqshrn.s32  d17, q10, #6\n.endm\n\n.macro qpel_filter_3_32b\n        vmov.i16   d16, #58\n        vmov.i16   d17, #10\n        vmull.s16   q9, d8, d16   // 58 * d0\n        vmull.s16  q10, d9, d16   // 58 * d1\n        vmov.i16   d16, #17\n        vmull.s16  q11, d10, d17  // 10 * c0\n        vmull.s16  q12, d11, d17  // 10 * c1\n        vmov.i16   d17, #5\n        vmull.s16  q13, d6, d16   // 17 * e0\n        vmull.s16  q14, d7, d16   // 17 * e1\n        vmull.s16  q15, d4, d17   //  5 * f0\n        vmull.s16   q8, d5, d17   //  5 * f1\n        vsub.s32    q9, q11       // 58 * d0 - 10 * c0\n        vsub.s32   q10, q12       // 58 * d1 - 10 * c1\n        vshll.s16  q11, d12, #2   // 4 * b0\n        vshll.s16  q12, d13, #2   // 4 * b1\n        vadd.s32    q9, q13       // 58 * d0 - 10 * c0 + 17 * e0\n        vadd.s32   q10, q14       // 58 * d1 - 10 * c1 + 17 * e1\n        vsubl.s16  q13, d2, d14   // g0 - a0\n        vsubl.s16  q14, d3, d15   // g1 - a1\n        vadd.s32    q9, q11       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0\n        vadd.s32   q10, q12       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1\n        vsub.s32   q13, q15       // g0 - a0 - 5 * f0\n        vsub.s32   q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32    q9, q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32   q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32  d16, q9, #6\n        vqshrn.s32  d17, q10, #6\n.endm\n\n.macro qpel_filter_1 out=q7\n        vmov.u8    d24, #58\n        vmov.u8    d25, #10\n        vshll.u8   q13, d20, #4   // 16*e\n        vshll.u8   q14, d21, #2   // 4*f\n        vmull.u8  \\out, d19, d24  // 58*d\n        vaddw.u8   q13, q13, d20  // 17*e\n        vmull.u8   q15, d18, d25  // 10*c\n        vaddw.u8   q14, q14, d21  // 5*f\n        vsubl.u8   q12, d22, d16  // g - a\n        vadd.u16  \\out, q13       // 58d + 17e\n        vshll.u8   q13, d17, #2   // 4*b\n        vadd.u16   q15, q14       // 10*c + 5*f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:5", "text": "vsub.s32   q14, q8        // g1 - a1 - 5 * f1\n        vadd.s32    q9, q13       // 58 * d0 - 10 * c0 + 17 * e0 + 4 * b0 + g0 - a0 - 5 * f0\n        vadd.s32   q10, q14       // 58 * d1 - 10 * c1 + 17 * e1 + 4 * b1 + g1 - a1 - 5 * f1\n        vqshrn.s32  d16, q9, #6\n        vqshrn.s32  d17, q10, #6\n.endm\n\n.macro qpel_filter_1 out=q7\n        vmov.u8    d24, #58\n        vmov.u8    d25, #10\n        vshll.u8   q13, d20, #4   // 16*e\n        vshll.u8   q14, d21, #2   // 4*f\n        vmull.u8  \\out, d19, d24  // 58*d\n        vaddw.u8   q13, q13, d20  // 17*e\n        vmull.u8   q15, d18, d25  // 10*c\n        vaddw.u8   q14, q14, d21  // 5*f\n        vsubl.u8   q12, d22, d16  // g - a\n        vadd.u16  \\out, q13       // 58d + 17e\n        vshll.u8   q13, d17, #2   // 4*b\n        vadd.u16   q15, q14       // 10*c + 5*f\n        vadd.s16   q13, q12       // - a + 4*b + g\n        vsub.s16  \\out, q15       // -10*c + 58*d + 17*e -5*f\n        vadd.s16  \\out, q13       // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro qpel_filter_2 out=q7\n        vmov.i16   q12, #10\n        vmov.i16   q14, #11\n        vaddl.u8   q13, d19, d20   // d + e\n        vaddl.u8   q15, d18, d21   // c + f\n        vmul.u16   q13, q12        // 10 * (d+e)\n        vmul.u16   q15, q14        // 11 * ( c + f)\n        vaddl.u8  \\out, d17, d22   // b + g\n        vaddl.u8   q12, d16, d23   // a + h\n        vadd.u16  \\out, q13        // b + 10 * (d + e) + g\n        vadd.s16   q12, q15\n        vshl.u16  \\out, #2         // 4 * (b + 10 * (d + e) + g)\n        vsub.s16  \\out, q12\n.endm\n\n.macro qpel_filter_3 out=q7\n        vmov.u8    d24, #58\n        vmov.u8    d25, #10\n        vshll.u8   q13, d19, #4     // 16*e\n        vshll.u8   q14, d18, #2     // 4*f\n        vmull.u8  \\out, d20, d24    // 58*d\n        vaddw.u8   q13, q13, d19    // 17*e\n        vmull.u8   q15, d21, d25    // 10*c\n        vaddw.u8   q14, q14, d18    // 5*f\n        vsubl.u8   q12, d17, d23    // g - a\n        vadd.u16  \\out, q13         // 58d + 17e\n        vshll.u8   q13, d22, #2     // 4*b\n        vadd.u16   q15, q14         // 10*c + 5*f\n        vadd.s16   q13, q12         // - a + 4*b + g\n        vsub.s16  \\out, q15         // -10*c + 58*d + 17*e -5*f\n        vadd.s16  \\out, q13         // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro  hevc_put_qpel_vX_neon_8 filter\n        push   {r4, r5, r6, r7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:6", "text": ".macro qpel_filter_3 out=q7\n        vmov.u8    d24, #58\n        vmov.u8    d25, #10\n        vshll.u8   q13, d19, #4     // 16*e\n        vshll.u8   q14, d18, #2     // 4*f\n        vmull.u8  \\out, d20, d24    // 58*d\n        vaddw.u8   q13, q13, d19    // 17*e\n        vmull.u8   q15, d21, d25    // 10*c\n        vaddw.u8   q14, q14, d18    // 5*f\n        vsubl.u8   q12, d17, d23    // g - a\n        vadd.u16  \\out, q13         // 58d + 17e\n        vshll.u8   q13, d22, #2     // 4*b\n        vadd.u16   q15, q14         // 10*c + 5*f\n        vadd.s16   q13, q12         // - a + 4*b + g\n        vsub.s16  \\out, q15         // -10*c + 58*d + 17*e -5*f\n        vadd.s16  \\out, q13         // -a + 4*b -10*c + 58*d + 17*e -5*f\n.endm\n\n.macro  hevc_put_qpel_vX_neon_8 filter\n        push   {r4, r5, r6, r7}\n        ldr    r4, [sp, #16] // height\n        ldr    r5, [sp, #20] // width\n        vpush {d8-d15}\n        sub       r2, r2, r3, lsl #1\n        sub       r2, r3\n        mov       r12, r4\n        mov       r6, r0\n        mov       r7, r2\n        lsl       r1, #1\n0:      loadin8\n        cmp       r5, #4\n        beq       4f\n8:      subs r4, #1\n        \\filter\n        vst1.16    {q7}, [r0], r1\n        regshuffle_d8\n        vld1.8    {d23}, [r2], r3\n        bne 8b\n        subs  r5, #8\n        beq       99f\n        mov r4, r12\n        add r6, #16\n        mov r0, r6\n        add r7, #8\n        mov r2, r7\n        b     0b\n4:      subs r4, #1\n        \\filter\n        vst1.16    d14, [r0], r1\n        regshuffle_d8\n        vld1.32    {d23[0]}, [r2], r3\n        bne 4b\n99:     vpop {d8-d15}\n        pop {r4, r5, r6, r7}\n        bx lr\n.endm\n\n.macro  hevc_put_qpel_uw_vX_neon_8 filter\n        push   {r4-r10}\n        ldr    r5, [sp, #28] // width", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_qpel_neon.S:19", "text": "function ff_hevc_put_qpel_uw_h2v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v2_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_2_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h1v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_1, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h2v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_2, qpel_filter_3_32b\nendfunc\n\nfunction ff_hevc_put_qpel_uw_h3v3_neon_8, export=1\n        hevc_put_qpel_uw_hXvY_neon_8 qpel_filter_3, qpel_filter_3_32b\nendfunc\n\n.macro init_put_pixels\n        pld    [r1]\n        pld    [r1, r2]\n        mov    r12, MAX_PB_SIZE\n        lsl    r12, #1\n.endm\n\nfunction ff_hevc_put_pixels_w2_neon_8, export=1\n        init_put_pixels\n        vmov.u8      d5, #255\n        vshr.u64     d5, #32\n0:      subs r3, #1\n        vld1.32     {d0[0]}, [r1], r2\n        pld [r1]\n        vld1.32     d6, [r0]\n        vshll.u8    q0, d0, #6\n        vbit        d6, d0, d5\n        vst1.32     d6, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w4_neon_8, export=1\n        init_put_pixels\n0:      subs r3, #2\n        vld1.32   {d0[0]}, [r1], r2\n        vld1.32   {d0[1]}, [r1], r2\n        pld       [r1]\n        pld       [r1, r2]\n        vshll.u8   q0, d0, #6\n        vst1.64   {d0}, [r0], r12\n        vst1.64   {d1}, [r0], r12\n        bne 0b\n        bx lr\nendfunc\n\nfunction ff_hevc_put_pixels_w6_neon_8, export=1\n        init_put_pixels\n        vmov.u8      q10, #255", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_qpel_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_qpel_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:1", "text": "/*\n * Copyright (c) 2017 Meng Wang <wangmeng.kids@bytedance.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\nfunction ff_hevc_sao_band_filter_neon_8, export=1\n        push            {r4-r10}\n        ldr             r5,  [sp, #28]   // width\n        ldr             r4,  [sp, #32]   // height\n        ldr             r8,  [sp, #36]   // offset_table\n        vpush           {d8-d15}\n        mov             r12,  r4         // r12 = height\n        mov             r6,   r0         // r6 = r0 = dst\n        mov             r7,   r1         // r7 = r1 = src\n        vldm            r8,   {q0-q3}\n        vmov.u16        q15,  #1\n        vmov.u8         q14,  #32\n0:      pld             [r1]\n        cmp             r5,    #4\n        beq             4f\n8:      subs            r4,    #1\n        vld1.8          {d16},  [r1], r3\n        vshr.u8         d17,   d16,  #3   // index = [src>>3]\n        vshll.u8        q9,    d17,  #1   // lowIndex = 2*index\n        vadd.u16        q11,   q9,   q15  // highIndex = (2*index+1) << 8\n        vshl.u16        q10,   q11,  #8   // q10: highIndex;  q9: lowIndex;\n        vadd.u16        q10,   q9         // combine high and low index;\n        // Look-up Table Round 1; index range: 0-15\n        vtbx.8          d24,   {q0-q1},   d20\n        vtbx.8          d25,   {q0-q1},   d21\n        // Look-up Table Round 2; index range: 16-31\n        vsub.u8         q10,   q14        // Look-up with 8bit\n        vtbx.8          d24,   {q2-q3},   d20\n        vtbx.8          d25,   {q2-q3},   d21\n        vaddw.u8        q13,   q12,       d16\n        vqmovun.s16     d8,    q13\n        vst1.8          d8,    [r0],      r2\n        bne             8b\n        subs            r5,    #8\n        beq             99f\n        mov             r4,    r12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:2", "text": "vld1.8          {d16},  [r1], r3\n        vshr.u8         d17,   d16,  #3   // index = [src>>3]\n        vshll.u8        q9,    d17,  #1   // lowIndex = 2*index\n        vadd.u16        q11,   q9,   q15  // highIndex = (2*index+1) << 8\n        vshl.u16        q10,   q11,  #8   // q10: highIndex;  q9: lowIndex;\n        vadd.u16        q10,   q9         // combine high and low index;\n        // Look-up Table Round 1; index range: 0-15\n        vtbx.8          d24,   {q0-q1},   d20\n        vtbx.8          d25,   {q0-q1},   d21\n        // Look-up Table Round 2; index range: 16-31\n        vsub.u8         q10,   q14        // Look-up with 8bit\n        vtbx.8          d24,   {q2-q3},   d20\n        vtbx.8          d25,   {q2-q3},   d21\n        vaddw.u8        q13,   q12,       d16\n        vqmovun.s16     d8,    q13\n        vst1.8          d8,    [r0],      r2\n        bne             8b\n        subs            r5,    #8\n        beq             99f\n        mov             r4,    r12\n        add             r6, #8\n        mov             r0, r6\n        add             r7, #8\n        mov             r1, r7\n        b               0b\n4:      subs            r4,    #1\n        vld1.32         {d16[0]},  [r1],  r3\n        vshr.u8         d17,   d16,  #3  // src>>3\n        vshll.u8        q9,    d17,  #1   // lowIndex = 2*index\n        vadd.u16        q11,   q9,   q15  // highIndex = (2*index+1) << 8\n        vshl.u16        q10,   q11,  #8   // q10: highIndex;  q9: lowIndex;\n        vadd.u16        q10,   q9         // combine high and low index;\n        // Look-up Table Round 1; index range: 0-15\n        vtbx.8          d24,   {q0-q1},   d20\n        vtbx.8          d25,   {q0-q1},   d21\n        // Look-up Table Round 2; index range: 16-32\n        vsub.u8         q10,   q14        // Look-up with 8bit\n        vtbx.8          d24,   {q2-q3},   d20\n        vtbx.8          d25,   {q2-q3},   d21\n        vaddw.u8        q13,   q12,       d16\n        vqmovun.s16     d14,       q13\n        vst1.32         d14[0],    [r0],     r2\n        bne             4b\n        b               99f\n99:\n        vpop            {d8-d15}\n        pop             {r4-r10}\n        bx              lr\nendfunc\n\nfunction ff_hevc_sao_edge_filter_neon_8, export=1\n        push            {r4-r11}\n        ldr             r5,  [sp, #32]   // width\n        ldr             r4,  [sp, #36]   // height\n        ldr             r8,  [sp, #40]   // a_stride\n        ldr             r9,  [sp, #44]   // b_stride\n        ldr             r10, [sp, #48]   // sao_offset_val\n        ldr             r11, [sp, #52]   // edge_idx\n        vpush           {d8-d15}\n        mov             r12,  r4         // r12 = height", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:3", "text": "vqmovun.s16     d14,       q13\n        vst1.32         d14[0],    [r0],     r2\n        bne             4b\n        b               99f\n99:\n        vpop            {d8-d15}\n        pop             {r4-r10}\n        bx              lr\nendfunc\n\nfunction ff_hevc_sao_edge_filter_neon_8, export=1\n        push            {r4-r11}\n        ldr             r5,  [sp, #32]   // width\n        ldr             r4,  [sp, #36]   // height\n        ldr             r8,  [sp, #40]   // a_stride\n        ldr             r9,  [sp, #44]   // b_stride\n        ldr             r10, [sp, #48]   // sao_offset_val\n        ldr             r11, [sp, #52]   // edge_idx\n        vpush           {d8-d15}\n        mov             r12,  r4         // r12 = height\n        mov             r6,   r0         // r6 = r0 = dst\n        mov             r7,   r1         // r7 = r1 = src\n        vld1.8          {d0}, [r11]      // edge_idx table load in d0 5x8bit\n        vld1.16         {q1}, [r10]      // sao_offset_val table load in q1, 5x16bit\n        vmov.u8         d1,  #2\n        vmov.u16        q2,  #1\n0:      mov             r10,    r1\n        add             r10,    r8           // src[x + a_stride]\n        mov             r11,    r1\n        add             r11,    r9           // src[x + b_stride]\n        pld             [r1]\n        cmp             r5,     #4\n        beq             4f\n8:      subs            r4,     #1\n        vld1.8          {d16},  [r1],  r3    // src[x]  8x8bit\n        vld1.8          {d17},  [r10], r3    // src[x + a_stride]\n        vld1.8          {d18},  [r11], r3    // src[x + b_stride]\n        vcgt.u8         d8,     d16,   d17\n        vshr.u8         d9,     d8,    #7\n        vclt.u8         d8,     d16,   d17\n        vadd.u8         d8,     d9           // diff0\n        vcgt.u8         d10,    d16,   d18\n        vshr.u8         d11,    d10,   #7\n        vclt.u8         d10,    d16,   d18\n        vadd.u8         d10,    d11          // diff1\n        vadd.s8         d8,     d10\n        vadd.s8         d8,     d1\n        vtbx.8          d9,     {d0},  d8    // offset_val\n        vshll.u8        q6,     d9,    #1    // lowIndex\n        vadd.u16        q7,     q6,    q2\n        vshl.u16        q10,    q7,    #8    // highIndex\n        vadd.u16        q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8          d22,    {q1},  d20\n        vtbx.8          d23,    {q1},  d21\n        vaddw.u8        q12,    q11,   d16\n        vqmovun.s16     d26,   q12\n        vst1.8          d26,    [r0],  r2\n        bne             8b\n        subs            r5,     #8\n        beq             99f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:4", "text": "vadd.u8         d8,     d9           // diff0\n        vcgt.u8         d10,    d16,   d18\n        vshr.u8         d11,    d10,   #7\n        vclt.u8         d10,    d16,   d18\n        vadd.u8         d10,    d11          // diff1\n        vadd.s8         d8,     d10\n        vadd.s8         d8,     d1\n        vtbx.8          d9,     {d0},  d8    // offset_val\n        vshll.u8        q6,     d9,    #1    // lowIndex\n        vadd.u16        q7,     q6,    q2\n        vshl.u16        q10,    q7,    #8    // highIndex\n        vadd.u16        q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8          d22,    {q1},  d20\n        vtbx.8          d23,    {q1},  d21\n        vaddw.u8        q12,    q11,   d16\n        vqmovun.s16     d26,   q12\n        vst1.8          d26,    [r0],  r2\n        bne             8b\n        subs            r5,     #8\n        beq             99f\n        mov             r4,     r12\n        add             r6,     #8\n        mov             r0,     r6\n        add             r7,     #8\n        mov             r1,     r7\n        b               0b\n4:      subs            r4,    #1\n        vld1.32         {d16[0]},  [r1],  r3\n        vld1.32         {d17[0]},  [r10], r3    // src[x + a_stride]\n        vld1.32         {d18[0]},  [r11], r3    // src[x + b_stride]\n        vcgt.u8         d8,     d16,   d17\n        vshr.u8         d9,     d8,    #7\n        vclt.u8         d8,     d16,   d17\n        vadd.u8         d8,     d9           // diff0\n        vcgt.u8         d10,    d16,   d18\n        vshr.u8         d11,    d10,   #7\n        vclt.u8         d10,    d16,   d18\n        vadd.u8         d10,    d11          // diff1\n        vadd.s8         d8,     d10\n        vadd.s8         d8,     d1\n        vtbx.8          d9,     {d0},  d8    // offset_val\n        vshll.u8        q6,     d9,    #1    // lowIndex\n        vadd.u16        q7,     q6,    q2\n        vshl.u16        q10,    q7,    #8    // highIndex\n        vadd.u16        q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8          d22,    {q1},  d20\n        vtbx.8          d23,    {q1},  d21\n        vaddw.u8        q12,    q11,   d16\n        vqmovun.s16     d26,    q12\n        vst1.32         d26[0], [r0],  r2\n        bne             4b\n        b               99f\n99:\n        vpop            {d8-d15}\n        pop             {r4-r11}\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 121, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:5", "text": "vtbx.8          d9,     {d0},  d8    // offset_val\n        vshll.u8        q6,     d9,    #1    // lowIndex\n        vadd.u16        q7,     q6,    q2\n        vshl.u16        q10,    q7,    #8    // highIndex\n        vadd.u16        q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8          d22,    {q1},  d20\n        vtbx.8          d23,    {q1},  d21\n        vaddw.u8        q12,    q11,   d16\n        vqmovun.s16     d26,    q12\n        vst1.32         d26[0], [r0],  r2\n        bne             4b\n        b               99f\n99:\n        vpop            {d8-d15}\n        pop             {r4-r11}\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 161, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:1", "text": "/*\n * Copyright (c) 2017 Meng Wang <wangmeng.kids@bytedance.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\nfunction ff_hevc_sao_band_filter_neon_8, export=1\n        push    {r4-r10}\n        ldr     r5,  [sp, #28]   // width\n        ldr     r4,  [sp, #32]   // height\n        ldr     r8,  [sp, #36]   // offset_table\n        vpush   {d8-d15}\n        mov     r12,  r4         // r12 = height\n        mov     r6,   r0         // r6 = r0 = dst\n        mov     r7,   r1         // r7 = r1 = src\n        vldm    r8,   {q0-q3}\n        vmov.u16    q15,  #1\n        vmov.u8     q14,  #32\n0:      pld      [r1]\n        cmp      r5,    #4\n        beq      4f\n8:      subs     r4,    #1\n        vld1.8   {d16},  [r1], r3\n        vshr.u8  d17,   d16,  #3   // index = [src>>3]\n        vshll.u8 q9,    d17,  #1   // lowIndex = 2*index\n        vadd.u16 q11,   q9,   q15  // highIndex = (2*index+1) << 8\n        vshl.u16 q10,   q11,  #8   // q10: highIndex;  q9: lowIndex;\n        vadd.u16 q10,   q9         // combine high and low index;\n        // Look-up Table Round 1; index range: 0-15\n        vtbx.8   d24,   {q0-q1},   d20\n        vtbx.8   d25,   {q0-q1},   d21\n        // Look-up Table Round 2; index range: 16-31\n        vsub.u8  q10,   q14        // Look-up with 8bit\n        vtbx.8   d24,   {q2-q3},   d20\n        vtbx.8   d25,   {q2-q3},   d21\n        vaddw.u8 q13,   q12,       d16\n        vqmovun.s16      d8,         q13\n        vst1.8    d8,   [r0],      r2\n        bne      8b\n        subs     r5,    #8\n        beq      99f\n        mov      r4,    r12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:2", "text": "vld1.8   {d16},  [r1], r3\n        vshr.u8  d17,   d16,  #3   // index = [src>>3]\n        vshll.u8 q9,    d17,  #1   // lowIndex = 2*index\n        vadd.u16 q11,   q9,   q15  // highIndex = (2*index+1) << 8\n        vshl.u16 q10,   q11,  #8   // q10: highIndex;  q9: lowIndex;\n        vadd.u16 q10,   q9         // combine high and low index;\n        // Look-up Table Round 1; index range: 0-15\n        vtbx.8   d24,   {q0-q1},   d20\n        vtbx.8   d25,   {q0-q1},   d21\n        // Look-up Table Round 2; index range: 16-31\n        vsub.u8  q10,   q14        // Look-up with 8bit\n        vtbx.8   d24,   {q2-q3},   d20\n        vtbx.8   d25,   {q2-q3},   d21\n        vaddw.u8 q13,   q12,       d16\n        vqmovun.s16      d8,         q13\n        vst1.8    d8,   [r0],      r2\n        bne      8b\n        subs     r5,    #8\n        beq      99f\n        mov      r4,    r12\n        add r6, #8\n        mov r0, r6\n        add r7, #8\n        mov r1, r7\n        b        0b\n4:      subs     r4,    #1\n        vld1.32   {d16[0]},  [r1],  r3\n        vshr.u8  d17,   d16,  #3  // src>>3\n        vshll.u8 q9,    d17,  #1   // lowIndex = 2*index\n        vadd.u16 q11,   q9,   q15  // highIndex = (2*index+1) << 8\n        vshl.u16 q10,   q11,  #8   // q10: highIndex;  q9: lowIndex;\n        vadd.u16 q10,   q9         // combine high and low index;\n        // Look-up Table Round 1; index range: 0-15\n        vtbx.8   d24,   {q0-q1},   d20\n        vtbx.8   d25,   {q0-q1},   d21\n        // Look-up Table Round 2; index range: 16-32\n        vsub.u8  q10,   q14        // Look-up with 8bit\n        vtbx.8   d24,   {q2-q3},   d20\n        vtbx.8   d25,   {q2-q3},   d21\n        vaddw.u8 q13,   q12,       d16\n        vqmovun.s16     d14,       q13\n        vst1.32   d14[0],    [r0],     r2\n        bne      4b\n        b        99f\n99:\n        vpop {d8-d15}\n        pop  {r4-r10}\n        bx   lr\nendfunc\n\nfunction ff_hevc_sao_edge_filter_neon_8, export=1\n        push    {r4-r11}\n        ldr     r5,  [sp, #32]   // width\n        ldr     r4,  [sp, #36]   // height\n        ldr     r8,  [sp, #40]   // a_stride\n        ldr     r9,  [sp, #44]   // b_stride\n        ldr     r10, [sp, #48]   // sao_offset_val\n        ldr     r11, [sp, #52]   // edge_idx\n        vpush   {d8-d15}\n        mov     r12,  r4         // r12 = height", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:3", "text": "vqmovun.s16     d14,       q13\n        vst1.32   d14[0],    [r0],     r2\n        bne      4b\n        b        99f\n99:\n        vpop {d8-d15}\n        pop  {r4-r10}\n        bx   lr\nendfunc\n\nfunction ff_hevc_sao_edge_filter_neon_8, export=1\n        push    {r4-r11}\n        ldr     r5,  [sp, #32]   // width\n        ldr     r4,  [sp, #36]   // height\n        ldr     r8,  [sp, #40]   // a_stride\n        ldr     r9,  [sp, #44]   // b_stride\n        ldr     r10, [sp, #48]   // sao_offset_val\n        ldr     r11, [sp, #52]   // edge_idx\n        vpush   {d8-d15}\n        mov     r12,  r4         // r12 = height\n        mov     r6,   r0         // r6 = r0 = dst\n        mov     r7,   r1         // r7 = r1 = src\n        vld1.8  {d0}, [r11]      // edge_idx table load in d0 5x8bit\n        vld1.16 {q1}, [r10]      // sao_offset_val table load in q1, 5x16bit\n        vmov.u8  d1,  #2\n        vmov.u16 q2,  #1\n0:      mov      r10,    r1\n        add      r10,    r8           // src[x + a_stride]\n        mov      r11,    r1\n        add      r11,    r9           // src[x + b_stride]\n        pld      [r1]\n        cmp      r5,     #4\n        beq      4f\n8:      subs     r4,     #1\n        vld1.8   {d16},  [r1],  r3    // src[x]  8x8bit\n        vld1.8   {d17},  [r10], r3    // src[x + a_stride]\n        vld1.8   {d18},  [r11], r3    // src[x + b_stride]\n        vcgt.u8  d8,     d16,   d17\n        vshr.u8  d9,     d8,    #7\n        vclt.u8  d8,     d16,   d17\n        vadd.u8  d8,     d9           // diff0\n        vcgt.u8  d10,    d16,   d18\n        vshr.u8  d11,    d10,   #7\n        vclt.u8  d10,    d16,   d18\n        vadd.u8  d10,    d11          // diff1\n        vadd.s8  d8,     d10\n        vadd.s8  d8,     d1\n        vtbx.8   d9,     {d0},  d8    // offset_val\n        vshll.u8 q6,     d9,    #1    // lowIndex\n        vadd.u16 q7,     q6,    q2\n        vshl.u16 q10,    q7,    #8    // highIndex\n        vadd.u16 q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8   d22,    {q1},  d20\n        vtbx.8   d23,    {q1},  d21\n        vaddw.u8 q12,    q11,   d16\n        vqmovun.s16      d26,   q12\n        vst1.8   d26,    [r0],  r2\n        bne      8b\n        subs     r5,     #8\n        beq      99f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:4", "text": "vadd.u8  d8,     d9           // diff0\n        vcgt.u8  d10,    d16,   d18\n        vshr.u8  d11,    d10,   #7\n        vclt.u8  d10,    d16,   d18\n        vadd.u8  d10,    d11          // diff1\n        vadd.s8  d8,     d10\n        vadd.s8  d8,     d1\n        vtbx.8   d9,     {d0},  d8    // offset_val\n        vshll.u8 q6,     d9,    #1    // lowIndex\n        vadd.u16 q7,     q6,    q2\n        vshl.u16 q10,    q7,    #8    // highIndex\n        vadd.u16 q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8   d22,    {q1},  d20\n        vtbx.8   d23,    {q1},  d21\n        vaddw.u8 q12,    q11,   d16\n        vqmovun.s16      d26,   q12\n        vst1.8   d26,    [r0],  r2\n        bne      8b\n        subs     r5,     #8\n        beq      99f\n        mov      r4,     r12\n        add      r6,     #8\n        mov      r0,     r6\n        add      r7,     #8\n        mov      r1,     r7\n        b        0b\n4:      subs     r4,    #1\n        vld1.32   {d16[0]},  [r1],  r3\n        vld1.32   {d17[0]},  [r10], r3    // src[x + a_stride]\n        vld1.32   {d18[0]},  [r11], r3    // src[x + b_stride]\n        vcgt.u8  d8,     d16,   d17\n        vshr.u8  d9,     d8,    #7\n        vclt.u8  d8,     d16,   d17\n        vadd.u8  d8,     d9           // diff0\n        vcgt.u8  d10,    d16,   d18\n        vshr.u8  d11,    d10,   #7\n        vclt.u8  d10,    d16,   d18\n        vadd.u8  d10,    d11          // diff1\n        vadd.s8  d8,     d10\n        vadd.s8  d8,     d1\n        vtbx.8   d9,     {d0},  d8    // offset_val\n        vshll.u8 q6,     d9,    #1    // lowIndex\n        vadd.u16 q7,     q6,    q2\n        vshl.u16 q10,    q7,    #8    // highIndex\n        vadd.u16 q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8   d22,    {q1},  d20\n        vtbx.8   d23,    {q1},  d21\n        vaddw.u8 q12,    q11,   d16\n        vqmovun.s16      d26,   q12\n        vst1.32  d26[0], [r0],  r2\n        bne      4b\n        b        99f\n99:\n        vpop {d8-d15}\n        pop  {r4-r11}\n        bx   lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 121, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:5", "text": "vtbx.8   d9,     {d0},  d8    // offset_val\n        vshll.u8 q6,     d9,    #1    // lowIndex\n        vadd.u16 q7,     q6,    q2\n        vshl.u16 q10,    q7,    #8    // highIndex\n        vadd.u16 q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8   d22,    {q1},  d20\n        vtbx.8   d23,    {q1},  d21\n        vaddw.u8 q12,    q11,   d16\n        vqmovun.s16      d26,   q12\n        vst1.32  d26[0], [r0],  r2\n        bne      4b\n        b        99f\n99:\n        vpop {d8-d15}\n        pop  {r4-r11}\n        bx   lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 161, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hevcdsp_sao_neon.S:3", "text": "vqmovun.s16     d14,       q13\n        vst1.32   d14[0],    [r0],     r2\n        bne      4b\n        b        99f\n99:\n        vpop {d8-d15}\n        pop  {r4-r10}\n        bx   lr\nendfunc\n\nfunction ff_hevc_sao_edge_filter_neon_8, export=1\n        push    {r4-r11}\n        ldr     r5,  [sp, #32]   // width\n        ldr     r4,  [sp, #36]   // height\n        ldr     r8,  [sp, #40]   // a_stride\n        ldr     r9,  [sp, #44]   // b_stride\n        ldr     r10, [sp, #48]   // sao_offset_val\n        ldr     r11, [sp, #52]   // edge_idx\n        vpush   {d8-d15}\n        mov     r12,  r4         // r12 = height\n        mov     r6,   r0         // r6 = r0 = dst\n        mov     r7,   r1         // r7 = r1 = src\n        vld1.8  {d0}, [r11]      // edge_idx tabel load in d0 5x8bit\n        vld1.16 {q1}, [r10]      // sao_offset_val table load in q1, 5x16bit\n        vmov.u8  d1,  #2\n        vmov.u16 q2,  #1\n0:      mov      r10,    r1\n        add      r10,    r8           // src[x + a_stride]\n        mov      r11,    r1\n        add      r11,    r9           // src[x + b_stride]\n        pld      [r1]\n        cmp      r5,     #4\n        beq      4f\n8:      subs     r4,     #1\n        vld1.8   {d16},  [r1],  r3    // src[x]  8x8bit\n        vld1.8   {d17},  [r10], r3    // src[x + a_stride]\n        vld1.8   {d18},  [r11], r3    // src[x + b_stride]\n        vcgt.u8  d8,     d16,   d17\n        vshr.u8  d9,     d8,    #7\n        vclt.u8  d8,     d16,   d17\n        vadd.u8  d8,     d9           // diff0\n        vcgt.u8  d10,    d16,   d18\n        vshr.u8  d11,    d10,   #7\n        vclt.u8  d10,    d16,   d18\n        vadd.u8  d10,    d11          // diff1\n        vadd.s8  d8,     d10\n        vadd.s8  d8,     d1\n        vtbx.8   d9,     {d0},  d8    // offset_val\n        vshll.u8 q6,     d9,    #1    // lowIndex\n        vadd.u16 q7,     q6,    q2\n        vshl.u16 q10,    q7,    #8    // highIndex\n        vadd.u16 q10,    q6           // combine lowIndex and highIndex, offset_val\n        vtbx.8   d22,    {q1},  d20\n        vtbx.8   d23,    {q1},  d21\n        vaddw.u8 q12,    q11,   d16\n        vqmovun.s16      d26,   q12\n        vst1.8   d26,    [r0],  r2\n        bne      8b\n        subs     r5,     #8\n        beq      99f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hevcdsp_sao_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hevcdsp_sao_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:1", "text": "@\n@ ARMv4-optimized halfpel functions\n@ Copyright (c) 2004 AGAWA Koji <i (AT) atty (DOT) jp>\n@\n@ This file is part of FFmpeg.\n@\n@ FFmpeg is free software; you can redistribute it and/or\n@ modify it under the terms of the GNU Lesser General Public\n@ License as published by the Free Software Foundation; either\n@ version 2.1 of the License, or (at your option) any later version.\n@\n@ FFmpeg is distributed in the hope that it will be useful,\n@ but WITHOUT ANY WARRANTY; without even the implied warranty of\n@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n@ Lesser General Public License for more details.\n@\n@ You should have received a copy of the GNU Lesser General Public\n@ License along with FFmpeg; if not, write to the Free Software\n@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n@\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\n#if !HAVE_ARMV5TE_EXTERNAL\n#define pld @\n#endif\n\n.macro  ALIGN_QWORD_D shift, Rd0, Rd1, Rd2, Rd3, Rn0, Rn1, Rn2, Rn3, Rn4\n        mov             \\Rd0, \\Rn0, lsr #(\\shift * 8)\n        mov             \\Rd1, \\Rn1, lsr #(\\shift * 8)\n        mov             \\Rd2, \\Rn2, lsr #(\\shift * 8)\n        mov             \\Rd3, \\Rn3, lsr #(\\shift * 8)\n        orr             \\Rd0, \\Rd0, \\Rn1, lsl #(32 - \\shift * 8)\n        orr             \\Rd1, \\Rd1, \\Rn2, lsl #(32 - \\shift * 8)\n        orr             \\Rd2, \\Rd2, \\Rn3, lsl #(32 - \\shift * 8)\n        orr             \\Rd3, \\Rd3, \\Rn4, lsl #(32 - \\shift * 8)\n.endm\n.macro  ALIGN_DWORD shift, R0, R1, R2\n        mov             \\R0, \\R0, lsr #(\\shift * 8)\n        orr             \\R0, \\R0, \\R1, lsl #(32 - \\shift * 8)\n        mov             \\R1, \\R1, lsr #(\\shift * 8)\n        orr             \\R1, \\R1, \\R2, lsl #(32 - \\shift * 8)\n.endm\n.macro  ALIGN_DWORD_D shift, Rdst0, Rdst1, Rsrc0, Rsrc1, Rsrc2\n        mov             \\Rdst0, \\Rsrc0, lsr #(\\shift * 8)\n        mov             \\Rdst1, \\Rsrc1, lsr #(\\shift * 8)\n        orr             \\Rdst0, \\Rdst0, \\Rsrc1, lsl #(32 - (\\shift * 8))\n        orr             \\Rdst1, \\Rdst1, \\Rsrc2, lsl #(32 - (\\shift * 8))\n.endm\n\n.macro  RND_AVG32 Rd0, Rd1, Rn0, Rn1, Rm0, Rm1, Rmask\n        @ Rd = (Rn | Rm) - (((Rn ^ Rm) & ~0x01010101) >> 1)\n        @ Rmask = 0xFEFEFEFE\n        @ Rn = destroy\n        eor             \\Rd0, \\Rn0, \\Rm0\n        eor             \\Rd1, \\Rn1, \\Rm1\n        orr             \\Rn0, \\Rn0, \\Rm0\n        orr             \\Rn1, \\Rn1, \\Rm1\n        and             \\Rd0, \\Rd0, \\Rmask", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:2", "text": "orr             \\R0, \\R0, \\R1, lsl #(32 - \\shift * 8)\n        mov             \\R1, \\R1, lsr #(\\shift * 8)\n        orr             \\R1, \\R1, \\R2, lsl #(32 - \\shift * 8)\n.endm\n.macro  ALIGN_DWORD_D shift, Rdst0, Rdst1, Rsrc0, Rsrc1, Rsrc2\n        mov             \\Rdst0, \\Rsrc0, lsr #(\\shift * 8)\n        mov             \\Rdst1, \\Rsrc1, lsr #(\\shift * 8)\n        orr             \\Rdst0, \\Rdst0, \\Rsrc1, lsl #(32 - (\\shift * 8))\n        orr             \\Rdst1, \\Rdst1, \\Rsrc2, lsl #(32 - (\\shift * 8))\n.endm\n\n.macro  RND_AVG32 Rd0, Rd1, Rn0, Rn1, Rm0, Rm1, Rmask\n        @ Rd = (Rn | Rm) - (((Rn ^ Rm) & ~0x01010101) >> 1)\n        @ Rmask = 0xFEFEFEFE\n        @ Rn = destroy\n        eor             \\Rd0, \\Rn0, \\Rm0\n        eor             \\Rd1, \\Rn1, \\Rm1\n        orr             \\Rn0, \\Rn0, \\Rm0\n        orr             \\Rn1, \\Rn1, \\Rm1\n        and             \\Rd0, \\Rd0, \\Rmask\n        and             \\Rd1, \\Rd1, \\Rmask\n        sub             \\Rd0, \\Rn0, \\Rd0, lsr #1\n        sub             \\Rd1, \\Rn1, \\Rd1, lsr #1\n.endm\n\n.macro  NO_RND_AVG32 Rd0, Rd1, Rn0, Rn1, Rm0, Rm1, Rmask\n        @ Rd = (Rn & Rm) - (((Rn ^ Rm) & ~0x01010101) >> 1)\n        @ Rmask = 0xFEFEFEFE\n        @ Rn = destroy\n        eor             \\Rd0, \\Rn0, \\Rm0\n        eor             \\Rd1, \\Rn1, \\Rm1\n        and             \\Rn0, \\Rn0, \\Rm0\n        and             \\Rn1, \\Rn1, \\Rm1\n        and             \\Rd0, \\Rd0, \\Rmask\n        and             \\Rd1, \\Rd1, \\Rmask\n        add             \\Rd0, \\Rn0, \\Rd0, lsr #1\n        add             \\Rd1, \\Rn1, \\Rd1, lsr #1\n.endm\n\n.macro  JMP_ALIGN tmp, reg\n        ands            \\tmp, \\reg, #3\n        bic             \\reg, \\reg, #3\n        beq             1f\n        subs            \\tmp, \\tmp, #1\n        beq             2f\n        subs            \\tmp, \\tmp, #1\n        beq             3f\n        b               4f\n.endm\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels16_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11, lr}\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r7}\n        add             r1,  r1,  r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:3", "text": "ands            \\tmp, \\reg, #3\n        bic             \\reg, \\reg, #3\n        beq             1f\n        subs            \\tmp, \\tmp, #1\n        beq             2f\n        subs            \\tmp, \\tmp, #1\n        beq             3f\n        b               4f\n.endm\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels16_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11, lr}\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r7}\n        add             r1,  r1,  r2\n        stm             r0,  {r4-r7}\n        pld             [r1]\n        subs            r3,  r3,  #1\n        add             r0,  r0,  r2\n        bne             1b\n        pop             {r4-r11, pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   1,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             2b\n        pop             {r4-r11, pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   2,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r11, pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   3,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r11,pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:4", "text": "add             r1,  r1,  r2\n        ALIGN_QWORD_D   2,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r11, pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   3,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r11,pc}\nendfunc\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels8_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r5,lr}\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n        subs            r3,  r3,  #1\n        pld             [r1]\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             1b\n        pop             {r4-r5,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r5, r12}\n        add             r1,  r1,  r2\n        ALIGN_DWORD     1,   r4,  r5,  r12\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             2b\n        pop             {r4-r5,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r5, r12}\n        add             r1,  r1,  r2\n        ALIGN_DWORD     2,   r4,  r5,  r12\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r5,pc}\n        .align 5", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:5", "text": "add             r1,  r1,  r2\n        ALIGN_DWORD     1,   r4,  r5,  r12\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             2b\n        pop             {r4-r5,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r5, r12}\n        add             r1,  r1,  r2\n        ALIGN_DWORD     2,   r4,  r5,  r12\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r5,pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r5, r12}\n        add             r1,  r1,  r2\n        ALIGN_DWORD     3,   r4,  r5,  r12\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r5,pc}\nendfunc\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels8_x2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r10,lr}\n        ldr             r12, =0xfefefefe\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   1,   r6,  r7,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r4,  r5,  r6,  r7,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             1b\n        pop             {r4-r10,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   1,   r6,  r7,  r4,  r5,  r10\n        ALIGN_DWORD_D   2,   r8,  r9,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r4,  r5,  r6,  r7,  r8,  r9,  r12\n        subs            r3,  r3,  #1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:6", "text": "1:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   1,   r6,  r7,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r4,  r5,  r6,  r7,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             1b\n        pop             {r4-r10,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   1,   r6,  r7,  r4,  r5,  r10\n        ALIGN_DWORD_D   2,   r8,  r9,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r4,  r5,  r6,  r7,  r8,  r9,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             2b\n        pop             {r4-r10,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   2,   r6,  r7,  r4,  r5,  r10\n        ALIGN_DWORD_D   3,   r8,  r9,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r4,  r5,  r6,  r7,  r8,  r9,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r10,pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   3,   r6,  r7,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r6,  r7,  r5,  r10, r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r10,pc}\nendfunc\n\nfunction ff_put_no_rnd_pixels8_x2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r10,lr}\n        ldr             r12, =0xfefefefe\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5, r10}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:7", "text": "add             r1,  r1,  r2\n        ALIGN_DWORD_D   3,   r6,  r7,  r4,  r5,  r10\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r6,  r7,  r5,  r10, r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r10,pc}\nendfunc\n\nfunction ff_put_no_rnd_pixels8_x2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r10,lr}\n        ldr             r12, =0xfefefefe\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   1,   r6,  r7,  r4,  r5,  r10\n        pld             [r1]\n        NO_RND_AVG32    r8,  r9,  r4,  r5,  r6,  r7,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             1b\n        pop             {r4-r10,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   1,   r6,  r7,  r4,  r5,  r10\n        ALIGN_DWORD_D   2,   r8,  r9,  r4,  r5,  r10\n        pld             [r1]\n        NO_RND_AVG32    r4,  r5,  r6,  r7,  r8,  r9,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             2b\n        pop             {r4-r10,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   2,   r6,  r7,  r4,  r5,  r10\n        ALIGN_DWORD_D   3,   r8,  r9,  r4,  r5,  r10\n        pld             [r1]\n        NO_RND_AVG32    r4,  r5,  r6,  r7,  r8,  r9,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r10,pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   3,   r6,  r7,  r4,  r5,  r10", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:8", "text": "bne             2b\n        pop             {r4-r10,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   2,   r6,  r7,  r4,  r5,  r10\n        ALIGN_DWORD_D   3,   r8,  r9,  r4,  r5,  r10\n        pld             [r1]\n        NO_RND_AVG32    r4,  r5,  r6,  r7,  r8,  r9,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r10,pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r5, r10}\n        add             r1,  r1,  r2\n        ALIGN_DWORD_D   3,   r6,  r7,  r4,  r5,  r10\n        pld             [r1]\n        NO_RND_AVG32    r8,  r9,  r6,  r7,  r5,  r10, r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r10,pc}\nendfunc\n\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels8_y2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11,lr}\n        mov             r3,  r3,  lsr #1\n        ldr             r12, =0xfefefefe\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n6:      ldm             r1,  {r6-r7}\n        add             r1,  r1,  r2\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r4,  r5,  r6,  r7,  r12\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r6,  r7,  r4,  r5,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r6}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:9", "text": "ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n6:      ldm             r1,  {r6-r7}\n        add             r1,  r1,  r2\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r4,  r5,  r6,  r7,  r12\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        pld             [r1]\n        RND_AVG32       r8,  r9,  r6,  r7,  r4,  r5,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r7,  r8,  r9\n        RND_AVG32       r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        RND_AVG32       r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r7,  r8,  r9\n        RND_AVG32       r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        RND_AVG32       r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:10", "text": ".align 5\n3:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r7,  r8,  r9\n        RND_AVG32       r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        RND_AVG32       r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r7,  r8,  r9\n        RND_AVG32       r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        RND_AVG32       r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\nendfunc\n\nfunction ff_put_no_rnd_pixels8_y2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11,lr}\n        mov             r3,  r3,  lsr #1\n        ldr             r12, =0xfefefefe\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n6:      ldm             r1,  {r6-r7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:11", "text": "subs            r3,  r3,  #1\n        RND_AVG32       r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\nendfunc\n\nfunction ff_put_no_rnd_pixels8_y2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11,lr}\n        mov             r3,  r3,  lsr #1\n        ldr             r12, =0xfefefefe\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n6:      ldm             r1,  {r6-r7}\n        add             r1,  r1,  r2\n        pld             [r1]\n        NO_RND_AVG32    r8,  r9,  r4,  r5,  r6,  r7,  r12\n        ldm             r1,  {r4-r5}\n        add             r1,  r1,  r2\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        pld             [r1]\n        NO_RND_AVG32    r8,  r9,  r6,  r7,  r4,  r5,  r12\n        subs            r3,  r3,  #1\n        stm             r0,  {r8-r9}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r7,  r8,  r9\n        NO_RND_AVG32    r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        NO_RND_AVG32    r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r6}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:12", "text": "6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r7,  r8,  r9\n        NO_RND_AVG32    r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     1,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        NO_RND_AVG32    r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r7,  r8,  r9\n        NO_RND_AVG32    r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     2,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        NO_RND_AVG32    r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r7,  r8,  r9\n        NO_RND_AVG32    r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        NO_RND_AVG32    r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:13", "text": ".align 5\n4:\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r4,  r5,  r6\n6:      ldm             r1,  {r7-r9}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r7,  r8,  r9\n        NO_RND_AVG32    r10, r11, r4,  r5,  r7,  r8,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        ldm             r1,  {r4-r6}\n        add             r1,  r1,  r2\n        pld             [r1]\n        ALIGN_DWORD     3,   r4,  r5,  r6\n        subs            r3,  r3,  #1\n        NO_RND_AVG32    r10, r11, r7,  r8,  r4,  r5,  r12\n        stm             r0,  {r10-r11}\n        add             r0,  r0,  r2\n        bne             6b\n        pop             {r4-r11,pc}\nendfunc\n\n        .ltorg\n\n@ ----------------------------------------------------------------\n.macro  RND_XY2_IT align, rnd\n        @ l1=  (a & 0x03030303) + (b & 0x03030303) ?(+ 0x02020202)\n        @ h1= ((a & 0xFCFCFCFCUL) >> 2) + ((b & 0xFCFCFCFCUL) >> 2)\n.if \\align == 0\n        ldm             r1,  {r6-r8}\n.elseif \\align == 3\n        ldm             r1,  {r5-r7}\n.else\n        ldm             r1,  {r8-r10}\n.endif\n        add             r1,  r1,  r2\n        pld             [r1]\n.if \\align == 0\n        ALIGN_DWORD_D   1,   r4,  r5,  r6,  r7,  r8\n.elseif \\align == 1\n        ALIGN_DWORD_D   1,   r4,  r5,  r8,  r9,  r10\n        ALIGN_DWORD_D   2,   r6,  r7,  r8,  r9,  r10\n.elseif \\align == 2\n        ALIGN_DWORD_D   2,   r4,  r5,  r8,  r9,  r10\n        ALIGN_DWORD_D   3,   r6,  r7,  r8,  r9,  r10\n.elseif \\align == 3\n        ALIGN_DWORD_D   3,   r4,  r5,  r5,  r6,  r7\n.endif\n        ldr             r14, =0x03030303\n        tst             r3,  #1\n        and             r8,  r4,  r14\n        and             r9,  r5,  r14\n        and             r10, r6,  r14\n        and             r11, r7,  r14\n        it              eq\n        andeq           r14, r14, r14, \\rnd #1\n        add             r8,  r8,  r10", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:14", "text": ".if \\align == 0\n        ALIGN_DWORD_D   1,   r4,  r5,  r6,  r7,  r8\n.elseif \\align == 1\n        ALIGN_DWORD_D   1,   r4,  r5,  r8,  r9,  r10\n        ALIGN_DWORD_D   2,   r6,  r7,  r8,  r9,  r10\n.elseif \\align == 2\n        ALIGN_DWORD_D   2,   r4,  r5,  r8,  r9,  r10\n        ALIGN_DWORD_D   3,   r6,  r7,  r8,  r9,  r10\n.elseif \\align == 3\n        ALIGN_DWORD_D   3,   r4,  r5,  r5,  r6,  r7\n.endif\n        ldr             r14, =0x03030303\n        tst             r3,  #1\n        and             r8,  r4,  r14\n        and             r9,  r5,  r14\n        and             r10, r6,  r14\n        and             r11, r7,  r14\n        it              eq\n        andeq           r14, r14, r14, \\rnd #1\n        add             r8,  r8,  r10\n        add             r9,  r9,  r11\n        ldr             r12, =0xfcfcfcfc >> 2\n        itt             eq\n        addeq           r8,  r8,  r14\n        addeq           r9,  r9,  r14\n        and             r4,  r12, r4,  lsr #2\n        and             r5,  r12, r5,  lsr #2\n        and             r6,  r12, r6,  lsr #2\n        and             r7,  r12, r7,  lsr #2\n        add             r10, r4,  r6\n        add             r11, r5,  r7\n        subs            r3,  r3,  #1\n.endm\n\n.macro RND_XY2_EXPAND align, rnd\n        RND_XY2_IT      \\align, \\rnd\n6:      push            {r8-r11}\n        RND_XY2_IT      \\align, \\rnd\n        pop             {r4-r7}\n        add             r4,  r4,  r8\n        add             r5,  r5,  r9\n        ldr             r14, =0x0f0f0f0f\n        add             r6,  r6,  r10\n        add             r7,  r7,  r11\n        and             r4,  r14, r4,  lsr #2\n        and             r5,  r14, r5,  lsr #2\n        add             r4,  r4,  r6\n        add             r5,  r5,  r7\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bge             6b\n        pop             {r4-r11,pc}\n.endm\n\nfunction ff_put_pixels8_xy2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11,lr} @ R14 is also called LR\n        JMP_ALIGN       r5,  r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:15", "text": "add             r5,  r5,  r9\n        ldr             r14, =0x0f0f0f0f\n        add             r6,  r6,  r10\n        add             r7,  r7,  r11\n        and             r4,  r14, r4,  lsr #2\n        and             r5,  r14, r5,  lsr #2\n        add             r4,  r4,  r6\n        add             r5,  r5,  r7\n        stm             r0,  {r4-r5}\n        add             r0,  r0,  r2\n        bge             6b\n        pop             {r4-r11,pc}\n.endm\n\nfunction ff_put_pixels8_xy2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11,lr} @ R14 is also called LR\n        JMP_ALIGN       r5,  r1\n1:      RND_XY2_EXPAND  0, lsl\n        .align 5\n2:      RND_XY2_EXPAND  1, lsl\n        .align 5\n3:      RND_XY2_EXPAND  2, lsl\n        .align 5\n4:      RND_XY2_EXPAND  3, lsl\nendfunc\n\nfunction ff_put_no_rnd_pixels8_xy2_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11,lr}\n        JMP_ALIGN       r5,  r1\n1:      RND_XY2_EXPAND  0, lsr\n        .align 5\n2:      RND_XY2_EXPAND  1, lsr\n        .align 5\n3:      RND_XY2_EXPAND  2, lsr\n        .align 5\n4:      RND_XY2_EXPAND  3, lsr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_arm.S", "line_start": 561, "line_end": 603}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:2", "text": "orr             \\R0, \\R0, \\R1, lsl #(32 - \\shift * 8)\n        mov             \\R1, \\R1, lsr #(\\shift * 8)\n        orr             \\R1, \\R1, \\R2, lsl #(32 - \\shift * 8)\n.endm\n.macro  ALIGN_DWORD_D shift, Rdst0, Rdst1, Rsrc0, Rsrc1, Rsrc2\n        mov             \\Rdst0, \\Rsrc0, lsr #(\\shift * 8)\n        mov             \\Rdst1, \\Rsrc1, lsr #(\\shift * 8)\n        orr             \\Rdst0, \\Rdst0, \\Rsrc1, lsl #(32 - (\\shift * 8))\n        orr             \\Rdst1, \\Rdst1, \\Rsrc2, lsl #(32 - (\\shift * 8))\n.endm\n\n.macro  RND_AVG32 Rd0, Rd1, Rn0, Rn1, Rm0, Rm1, Rmask\n        @ Rd = (Rn | Rm) - (((Rn ^ Rm) & ~0x01010101) >> 1)\n        @ Rmask = 0xFEFEFEFE\n        @ Rn = destroy\n        eor             \\Rd0, \\Rn0, \\Rm0\n        eor             \\Rd1, \\Rn1, \\Rm1\n        orr             \\Rn0, \\Rn0, \\Rm0\n        orr             \\Rn1, \\Rn1, \\Rm1\n        and             \\Rd0, \\Rd0, \\Rmask\n        and             \\Rd1, \\Rd1, \\Rmask\n        sub             \\Rd0, \\Rn0, \\Rd0, lsr #1\n        sub             \\Rd1, \\Rn1, \\Rd1, lsr #1\n.endm\n\n.macro  NO_RND_AVG32 Rd0, Rd1, Rn0, Rn1, Rm0, Rm1, Rmask\n        @ Rd = (Rn & Rm) - (((Rn ^ Rm) & ~0x01010101) >> 1)\n        @ Rmask = 0xFEFEFEFE\n        @ Rn = destroy\n        eor             \\Rd0, \\Rn0, \\Rm0\n        eor             \\Rd1, \\Rn1, \\Rm1\n        and             \\Rn0, \\Rn0, \\Rm0\n        and             \\Rn1, \\Rn1, \\Rm1\n        and             \\Rd0, \\Rd0, \\Rmask\n        and             \\Rd1, \\Rd1, \\Rmask\n        add             \\Rd0, \\Rn0, \\Rd0, lsr #1\n        add             \\Rd1, \\Rn1, \\Rd1, lsr #1\n.endm\n\n.macro  JMP_ALIGN tmp, reg\n        ands            \\tmp, \\reg, #3\n        bic             \\reg, \\reg, #3\n        beq             1f\n        subs            \\tmp, \\tmp, #1\n        beq             2f\n        subs            \\tmp, \\tmp, #1\n        beq             3f\n        b    4f\n.endm\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels16_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11, lr}\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r7}\n        add             r1,  r1,  r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hpeldsp_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_arm.S:3", "text": "ands            \\tmp, \\reg, #3\n        bic             \\reg, \\reg, #3\n        beq             1f\n        subs            \\tmp, \\tmp, #1\n        beq             2f\n        subs            \\tmp, \\tmp, #1\n        beq             3f\n        b    4f\n.endm\n\n@ ----------------------------------------------------------------\nfunction ff_put_pixels16_arm, export=1, align=5\n        @ void func(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n        @ block = word aligned, pixles = unaligned\n        pld             [r1]\n        push            {r4-r11, lr}\n        JMP_ALIGN       r5,  r1\n1:\n        ldm             r1,  {r4-r7}\n        add             r1,  r1,  r2\n        stm             r0,  {r4-r7}\n        pld             [r1]\n        subs            r3,  r3,  #1\n        add             r0,  r0,  r2\n        bne             1b\n        pop             {r4-r11, pc}\n        .align 5\n2:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   1,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             2b\n        pop             {r4-r11, pc}\n        .align 5\n3:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   2,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             3b\n        pop             {r4-r11, pc}\n        .align 5\n4:\n        ldm             r1,  {r4-r8}\n        add             r1,  r1,  r2\n        ALIGN_QWORD_D   3,   r9,  r10, r11, r12, r4,  r5,  r6,  r7,  r8\n        pld             [r1]\n        subs            r3,  r3,  #1\n        stm             r0,  {r9-r12}\n        add             r0,  r0,  r2\n        bne             4b\n        pop             {r4-r11,pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/hpeldsp_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro  call_2x_pixels  type, subp\nfunction ff_\\type\\()_pixels16\\subp\\()_armv6, export=1\n        push            {r0-r3, lr}\n        bl              X(ff_\\type\\()_pixels8\\subp\\()_armv6)\n        pop             {r0-r3, lr}\n        add             r0,  r0,  #8\n        add             r1,  r1,  #8\n        b               X(ff_\\type\\()_pixels8\\subp\\()_armv6)\nendfunc\n.endm\n\ncall_2x_pixels          avg\ncall_2x_pixels          put, _x2\ncall_2x_pixels          put, _y2\ncall_2x_pixels          put, _x2_no_rnd\ncall_2x_pixels          put, _y2_no_rnd\n\nfunction ff_put_pixels16_armv6, export=1\n        push            {r4-r11}\n1:\n        ldr             r5,  [r1, #4]\n        ldr             r6,  [r1, #8]\n        ldr             r7,  [r1, #12]\n        ldr_post        r4,  r1,  r2\n        strd            r6,  r7,  [r0, #8]\n        ldr             r9,  [r1, #4]\n        strd_post       r4,  r5,  r0,  r2\n        ldr             r10, [r1, #8]\n        ldr             r11, [r1, #12]\n        ldr_post        r8,  r1,  r2\n        strd            r10, r11, [r0, #8]\n        subs            r3,  r3,  #2\n        strd_post       r8,  r9,  r0,  r2\n        bne             1b\n\n        pop             {r4-r11}\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:2", "text": "push            {r4-r11}\n1:\n        ldr             r5,  [r1, #4]\n        ldr             r6,  [r1, #8]\n        ldr             r7,  [r1, #12]\n        ldr_post        r4,  r1,  r2\n        strd            r6,  r7,  [r0, #8]\n        ldr             r9,  [r1, #4]\n        strd_post       r4,  r5,  r0,  r2\n        ldr             r10, [r1, #8]\n        ldr             r11, [r1, #12]\n        ldr_post        r8,  r1,  r2\n        strd            r10, r11, [r0, #8]\n        subs            r3,  r3,  #2\n        strd_post       r8,  r9,  r0,  r2\n        bne             1b\n\n        pop             {r4-r11}\n        bx              lr\nendfunc\n\nfunction ff_put_pixels8_armv6, export=1\n        push            {r4-r7}\n1:\n        ldr             r5,  [r1, #4]\n        ldr_post        r4,  r1,  r2\n        ldr             r7,  [r1, #4]\n        strd_post       r4,  r5,  r0,  r2\n        ldr_post        r6,  r1,  r2\n        subs            r3,  r3,  #2\n        strd_post       r6,  r7,  r0,  r2\n        bne             1b\n\n        pop             {r4-r7}\n        bx              lr\nendfunc\n\nfunction ff_put_pixels8_x2_armv6, export=1\n        push            {r4-r11, lr}\n        mov             r12, #1\n        orr             r12, r12, r12, lsl #8\n        orr             r12, r12, r12, lsl #16\n1:\n        ldr             r4,  [r1]\n        subs            r3,  r3,  #2\n        ldr             r5,  [r1, #4]\n        ldr             r7,  [r1, #5]\n        lsr             r6,  r4,  #8\n        ldr_pre         r8,  r1,  r2\n        orr             r6,  r6,  r5,  lsl #24\n        ldr             r9,  [r1, #4]\n        ldr             r11, [r1, #5]\n        lsr             r10, r8,  #8\n        add             r1,  r1,  r2\n        orr             r10, r10, r9,  lsl #24\n        eor             r14, r4,  r6\n        uhadd8          r4,  r4,  r6\n        eor             r6,  r5,  r7\n        uhadd8          r5,  r5,  r7\n        and             r14, r14, r12", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:3", "text": "orr             r12, r12, r12, lsl #8\n        orr             r12, r12, r12, lsl #16\n1:\n        ldr             r4,  [r1]\n        subs            r3,  r3,  #2\n        ldr             r5,  [r1, #4]\n        ldr             r7,  [r1, #5]\n        lsr             r6,  r4,  #8\n        ldr_pre         r8,  r1,  r2\n        orr             r6,  r6,  r5,  lsl #24\n        ldr             r9,  [r1, #4]\n        ldr             r11, [r1, #5]\n        lsr             r10, r8,  #8\n        add             r1,  r1,  r2\n        orr             r10, r10, r9,  lsl #24\n        eor             r14, r4,  r6\n        uhadd8          r4,  r4,  r6\n        eor             r6,  r5,  r7\n        uhadd8          r5,  r5,  r7\n        and             r14, r14, r12\n        and             r6,  r6,  r12\n        uadd8           r4,  r4,  r14\n        eor             r14, r8,  r10\n        uadd8           r5,  r5,  r6\n        eor             r6,  r9,  r11\n        uhadd8          r8,  r8,  r10\n        and             r14, r14, r12\n        uhadd8          r9,  r9,  r11\n        and             r6,  r6,  r12\n        uadd8           r8,  r8,  r14\n        strd_post       r4,  r5,  r0,  r2\n        uadd8           r9,  r9,  r6\n        strd_post       r8,  r9,  r0,  r2\n        bne             1b\n\n        pop             {r4-r11, pc}\nendfunc\n\nfunction ff_put_pixels8_y2_armv6, export=1\n        push            {r4-r11}\n        mov             r12, #1\n        orr             r12, r12, r12, lsl #8\n        orr             r12, r12, r12, lsl #16\n        ldr             r4,  [r1]\n        ldr             r5,  [r1, #4]\n        ldr_pre         r6,  r1,  r2\n        ldr             r7,  [r1, #4]\n1:\n        subs            r3,  r3,  #2\n        uhadd8          r8,  r4,  r6\n        eor             r10, r4,  r6\n        uhadd8          r9,  r5,  r7\n        eor             r11, r5,  r7\n        and             r10, r10, r12\n        ldr_pre         r4,  r1,  r2\n        uadd8           r8,  r8,  r10\n        and             r11, r11, r12\n        uadd8           r9,  r9,  r11\n        ldr             r5,  [r1, #4]\n        uhadd8          r10, r4,  r6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:4", "text": "mov             r12, #1\n        orr             r12, r12, r12, lsl #8\n        orr             r12, r12, r12, lsl #16\n        ldr             r4,  [r1]\n        ldr             r5,  [r1, #4]\n        ldr_pre         r6,  r1,  r2\n        ldr             r7,  [r1, #4]\n1:\n        subs            r3,  r3,  #2\n        uhadd8          r8,  r4,  r6\n        eor             r10, r4,  r6\n        uhadd8          r9,  r5,  r7\n        eor             r11, r5,  r7\n        and             r10, r10, r12\n        ldr_pre         r4,  r1,  r2\n        uadd8           r8,  r8,  r10\n        and             r11, r11, r12\n        uadd8           r9,  r9,  r11\n        ldr             r5,  [r1, #4]\n        uhadd8          r10, r4,  r6\n        eor             r6,  r4,  r6\n        uhadd8          r11, r5,  r7\n        and             r6,  r6,  r12\n        eor             r7,  r5,  r7\n        uadd8           r10, r10, r6\n        and             r7,  r7,  r12\n        ldrc_pre        ne,  r6,  r1,  r2\n        uadd8           r11, r11, r7\n        strd_post       r8,  r9,  r0,  r2\n        it              ne\n        ldrne           r7,  [r1, #4]\n        strd_post       r10, r11, r0,  r2\n        bne             1b\n\n        pop             {r4-r11}\n        bx              lr\nendfunc\n\nfunction ff_put_pixels8_x2_no_rnd_armv6, export=1\n        push            {r4-r9, lr}\n1:\n        subs            r3,  r3,  #2\n        ldr             r4,  [r1]\n        ldr             r5,  [r1, #4]\n        ldr             r7,  [r1, #5]\n        ldr_pre         r8,  r1,  r2\n        ldr             r9,  [r1, #4]\n        ldr             r14, [r1, #5]\n        add             r1,  r1,  r2\n        lsr             r6,  r4,  #8\n        orr             r6,  r6,  r5,  lsl #24\n        lsr             r12, r8,  #8\n        orr             r12, r12, r9,  lsl #24\n        uhadd8          r4,  r4,  r6\n        uhadd8          r5,  r5,  r7\n        uhadd8          r8,  r8,  r12\n        uhadd8          r9,  r9,  r14\n        stm             r0,  {r4,r5}\n        add             r0,  r0,  r2\n        stm             r0,  {r8,r9}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:5", "text": "1:\n        subs            r3,  r3,  #2\n        ldr             r4,  [r1]\n        ldr             r5,  [r1, #4]\n        ldr             r7,  [r1, #5]\n        ldr_pre         r8,  r1,  r2\n        ldr             r9,  [r1, #4]\n        ldr             r14, [r1, #5]\n        add             r1,  r1,  r2\n        lsr             r6,  r4,  #8\n        orr             r6,  r6,  r5,  lsl #24\n        lsr             r12, r8,  #8\n        orr             r12, r12, r9,  lsl #24\n        uhadd8          r4,  r4,  r6\n        uhadd8          r5,  r5,  r7\n        uhadd8          r8,  r8,  r12\n        uhadd8          r9,  r9,  r14\n        stm             r0,  {r4,r5}\n        add             r0,  r0,  r2\n        stm             r0,  {r8,r9}\n        add             r0,  r0,  r2\n        bne             1b\n\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_put_pixels8_y2_no_rnd_armv6, export=1\n        push            {r4-r9, lr}\n        ldr             r4,  [r1]\n        ldr             r5,  [r1, #4]\n        ldr_pre         r6,  r1,  r2\n        ldr             r7,  [r1, #4]\n1:\n        subs            r3,  r3,  #2\n        uhadd8          r8,  r4,  r6\n        ldr_pre         r4,  r1,  r2\n        uhadd8          r9,  r5,  r7\n        ldr             r5,  [r1, #4]\n        uhadd8          r12, r4,  r6\n        ldrc_pre        ne,  r6,  r1,  r2\n        uhadd8          r14, r5,  r7\n        it              ne\n        ldrne           r7,  [r1, #4]\n        stm             r0,  {r8,r9}\n        add             r0,  r0,  r2\n        stm             r0,  {r12,r14}\n        add             r0,  r0,  r2\n        bne             1b\n\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_avg_pixels8_armv6, export=1\n        pld             [r1, r2]\n        push            {r4-r10, lr}\n        mov             lr,  #1\n        orr             lr,  lr,  lr,  lsl #8\n        orr             lr,  lr,  lr,  lsl #16\n        ldrd            r4,  r5,  [r0]\n        ldr             r10, [r1, #4]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:6", "text": "uhadd8          r14, r5,  r7\n        it              ne\n        ldrne           r7,  [r1, #4]\n        stm             r0,  {r8,r9}\n        add             r0,  r0,  r2\n        stm             r0,  {r12,r14}\n        add             r0,  r0,  r2\n        bne             1b\n\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_avg_pixels8_armv6, export=1\n        pld             [r1, r2]\n        push            {r4-r10, lr}\n        mov             lr,  #1\n        orr             lr,  lr,  lr,  lsl #8\n        orr             lr,  lr,  lr,  lsl #16\n        ldrd            r4,  r5,  [r0]\n        ldr             r10, [r1, #4]\n        ldr_post        r9,  r1,  r2\n        subs            r3,  r3,  #2\n1:\n        pld             [r1, r2]\n        eor             r8,  r4,  r9\n        uhadd8          r4,  r4,  r9\n        eor             r12, r5,  r10\n        ldrd_reg        r6,  r7,  r0,  r2\n        uhadd8          r5,  r5,  r10\n        and             r8,  r8,  lr\n        ldr             r10, [r1, #4]\n        and             r12, r12, lr\n        uadd8           r4,  r4,  r8\n        ldr_post        r9,  r1,  r2\n        eor             r8,  r6,  r9\n        uadd8           r5,  r5,  r12\n        pld             [r1, r2,  lsl #1]\n        eor             r12, r7,  r10\n        uhadd8          r6,  r6,  r9\n        strd_post       r4,  r5,  r0,  r2\n        uhadd8          r7,  r7,  r10\n        beq             2f\n        and             r8,  r8,  lr\n        ldrd_reg        r4,  r5,  r0,  r2\n        uadd8           r6,  r6,  r8\n        ldr             r10, [r1, #4]\n        and             r12, r12, lr\n        subs            r3,  r3,  #2\n        uadd8           r7,  r7,  r12\n        ldr_post        r9,  r1,  r2\n        strd_post       r6,  r7,  r0,  r2\n        b               1b\n2:\n        and             r8,  r8,  lr\n        and             r12, r12, lr\n        uadd8           r6,  r6,  r8\n        uadd8           r7,  r7,  r12\n        strd_post       r6,  r7,  r0,  r2\n\n        pop             {r4-r10, pc}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_armv6.S:7", "text": "uhadd8          r7,  r7,  r10\n        beq             2f\n        and             r8,  r8,  lr\n        ldrd_reg        r4,  r5,  r0,  r2\n        uadd8           r6,  r6,  r8\n        ldr             r10, [r1, #4]\n        and             r12, r12, lr\n        subs            r3,  r3,  #2\n        uadd8           r7,  r7,  r12\n        ldr_post        r9,  r1,  r2\n        strd_post       r6,  r7,  r0,  r2\n        b               1b\n2:\n        and             r8,  r8,  lr\n        and             r12, r12, lr\n        uadd8           r6,  r6,  r8\n        uadd8           r7,  r7,  r12\n        strd_post       r6,  r7,  r0,  r2\n\n        pop             {r4-r10, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_armv6.S", "line_start": 241, "line_end": 261}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:1", "text": "/*\n * ARM NEON optimised DSP functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro  pixels16        rnd=1, avg=0\n  .if \\avg\n        mov             r12, r0\n  .endif\n1:      vld1.8          {q0},     [r1], r2\n        vld1.8          {q1},     [r1], r2\n        vld1.8          {q2},     [r1], r2\n        pld             [r1, r2, lsl #2]\n        vld1.8          {q3},     [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        pld             [r1, r2, lsl #1]\n  .if \\avg\n        vld1.8          {q8},     [r12,:128], r2\n        vrhadd.u8       q0,  q0,  q8\n        vld1.8          {q9},     [r12,:128], r2\n        vrhadd.u8       q1,  q1,  q9\n        vld1.8          {q10},    [r12,:128], r2\n        vrhadd.u8       q2,  q2,  q10\n        vld1.8          {q11},    [r12,:128], r2\n        vrhadd.u8       q3,  q3,  q11\n  .endif\n        subs            r3,  r3,  #4\n        vst1.64         {q0},     [r0,:128], r2\n        vst1.64         {q1},     [r0,:128], r2\n        vst1.64         {q2},     [r0,:128], r2\n        vst1.64         {q3},     [r0,:128], r2\n        bne             1b\n        bx              lr\n.endm\n\n.macro  pixels16_x2     rnd=1, avg=0\n1:      vld1.8          {d0-d2},  [r1], r2\n        vld1.8          {d4-d6},  [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        subs            r3,  r3,  #2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:2", "text": "vld1.8          {q10},    [r12,:128], r2\n        vrhadd.u8       q2,  q2,  q10\n        vld1.8          {q11},    [r12,:128], r2\n        vrhadd.u8       q3,  q3,  q11\n  .endif\n        subs            r3,  r3,  #4\n        vst1.64         {q0},     [r0,:128], r2\n        vst1.64         {q1},     [r0,:128], r2\n        vst1.64         {q2},     [r0,:128], r2\n        vst1.64         {q3},     [r0,:128], r2\n        bne             1b\n        bx              lr\n.endm\n\n.macro  pixels16_x2     rnd=1, avg=0\n1:      vld1.8          {d0-d2},  [r1], r2\n        vld1.8          {d4-d6},  [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        subs            r3,  r3,  #2\n        vext.8          q1,  q0,  q1,  #1\n        avg             q0,  q0,  q1\n        vext.8          q3,  q2,  q3,  #1\n        avg             q2,  q2,  q3\n  .if \\avg\n        vld1.8          {q1},     [r0,:128], r2\n        vld1.8          {q3},     [r0,:128]\n        vrhadd.u8       q0,  q0,  q1\n        vrhadd.u8       q2,  q2,  q3\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {q0},     [r0,:128], r2\n        vst1.8          {q2},     [r0,:128], r2\n        bne             1b\n        bx              lr\n.endm\n\n.macro  pixels16_y2     rnd=1, avg=0\n        sub             r3,  r3,  #2\n        vld1.8          {q0},     [r1], r2\n        vld1.8          {q1},     [r1], r2\n1:      subs            r3,  r3,  #2\n        avg             q2,  q0,  q1\n        vld1.8          {q0},     [r1], r2\n        avg             q3,  q0,  q1\n        vld1.8          {q1},     [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n  .if \\avg\n        vld1.8          {q8},     [r0,:128], r2\n        vld1.8          {q9},     [r0,:128]\n        vrhadd.u8       q2,  q2,  q8\n        vrhadd.u8       q3,  q3,  q9\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {q2},     [r0,:128], r2\n        vst1.8          {q3},     [r0,:128], r2\n        bne             1b\n\n        avg             q2,  q0,  q1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:3", "text": "vld1.8          {q1},     [r1], r2\n1:      subs            r3,  r3,  #2\n        avg             q2,  q0,  q1\n        vld1.8          {q0},     [r1], r2\n        avg             q3,  q0,  q1\n        vld1.8          {q1},     [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n  .if \\avg\n        vld1.8          {q8},     [r0,:128], r2\n        vld1.8          {q9},     [r0,:128]\n        vrhadd.u8       q2,  q2,  q8\n        vrhadd.u8       q3,  q3,  q9\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {q2},     [r0,:128], r2\n        vst1.8          {q3},     [r0,:128], r2\n        bne             1b\n\n        avg             q2,  q0,  q1\n        vld1.8          {q0},     [r1], r2\n        avg             q3,  q0,  q1\n  .if \\avg\n        vld1.8          {q8},     [r0,:128], r2\n        vld1.8          {q9},     [r0,:128]\n        vrhadd.u8       q2,  q2,  q8\n        vrhadd.u8       q3,  q3,  q9\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {q2},     [r0,:128], r2\n        vst1.8          {q3},     [r0,:128], r2\n\n        bx              lr\n.endm\n\n.macro  pixels16_xy2    rnd=1, avg=0\n        sub             r3,  r3,  #2\n        vld1.8          {d0-d2},  [r1], r2\n        vld1.8          {d4-d6},  [r1], r2\nNRND    vmov.i16        q13, #1\n        pld             [r1]\n        pld             [r1, r2]\n        vext.8          q1,  q0,  q1,  #1\n        vext.8          q3,  q2,  q3,  #1\n        vaddl.u8        q8,  d0,  d2\n        vaddl.u8        q10, d1,  d3\n        vaddl.u8        q9,  d4,  d6\n        vaddl.u8        q11, d5,  d7\n1:      subs            r3,  r3,  #2\n        vld1.8          {d0-d2},  [r1], r2\n        vadd.u16        q12, q8,  q9\n        pld             [r1]\nNRND    vadd.u16        q12, q12, q13\n        vext.8          q15, q0,  q1,  #1\n        vadd.u16        q1 , q10, q11\n        shrn            d28, q12, #2\nNRND    vadd.u16        q1,  q1,  q13\n        shrn            d29, q1,  #2\n  .if \\avg\n        vld1.8          {q8},     [r0,:128]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:4", "text": "pld             [r1]\n        pld             [r1, r2]\n        vext.8          q1,  q0,  q1,  #1\n        vext.8          q3,  q2,  q3,  #1\n        vaddl.u8        q8,  d0,  d2\n        vaddl.u8        q10, d1,  d3\n        vaddl.u8        q9,  d4,  d6\n        vaddl.u8        q11, d5,  d7\n1:      subs            r3,  r3,  #2\n        vld1.8          {d0-d2},  [r1], r2\n        vadd.u16        q12, q8,  q9\n        pld             [r1]\nNRND    vadd.u16        q12, q12, q13\n        vext.8          q15, q0,  q1,  #1\n        vadd.u16        q1 , q10, q11\n        shrn            d28, q12, #2\nNRND    vadd.u16        q1,  q1,  q13\n        shrn            d29, q1,  #2\n  .if \\avg\n        vld1.8          {q8},     [r0,:128]\n        vrhadd.u8       q14, q14, q8\n  .endif\n        vaddl.u8        q8,  d0,  d30\n        vld1.8          {d2-d4},  [r1], r2\n        vaddl.u8        q10, d1,  d31\n        vst1.8          {q14},    [r0,:128], r2\n        vadd.u16        q12, q8,  q9\n        pld             [r1, r2]\nNRND    vadd.u16        q12, q12, q13\n        vext.8          q2,  q1,  q2,  #1\n        vadd.u16        q0,  q10, q11\n        shrn            d30, q12, #2\nNRND    vadd.u16        q0,  q0,  q13\n        shrn            d31, q0,  #2\n  .if \\avg\n        vld1.8          {q9},     [r0,:128]\n        vrhadd.u8       q15, q15, q9\n  .endif\n        vaddl.u8        q9,  d2,  d4\n        vaddl.u8        q11, d3,  d5\n        vst1.8          {q15},    [r0,:128], r2\n        bgt             1b\n\n        vld1.8          {d0-d2},  [r1], r2\n        vadd.u16        q12, q8,  q9\nNRND    vadd.u16        q12, q12, q13\n        vext.8          q15, q0,  q1,  #1\n        vadd.u16        q1 , q10, q11\n        shrn            d28, q12, #2\nNRND    vadd.u16        q1,  q1,  q13\n        shrn            d29, q1,  #2\n  .if \\avg\n        vld1.8          {q8},     [r0,:128]\n        vrhadd.u8       q14, q14, q8\n  .endif\n        vaddl.u8        q8,  d0,  d30\n        vaddl.u8        q10, d1,  d31\n        vst1.8          {q14},    [r0,:128], r2\n        vadd.u16        q12, q8,  q9\nNRND    vadd.u16        q12, q12, q13", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:5", "text": "vst1.8          {q15},    [r0,:128], r2\n        bgt             1b\n\n        vld1.8          {d0-d2},  [r1], r2\n        vadd.u16        q12, q8,  q9\nNRND    vadd.u16        q12, q12, q13\n        vext.8          q15, q0,  q1,  #1\n        vadd.u16        q1 , q10, q11\n        shrn            d28, q12, #2\nNRND    vadd.u16        q1,  q1,  q13\n        shrn            d29, q1,  #2\n  .if \\avg\n        vld1.8          {q8},     [r0,:128]\n        vrhadd.u8       q14, q14, q8\n  .endif\n        vaddl.u8        q8,  d0,  d30\n        vaddl.u8        q10, d1,  d31\n        vst1.8          {q14},    [r0,:128], r2\n        vadd.u16        q12, q8,  q9\nNRND    vadd.u16        q12, q12, q13\n        vadd.u16        q0,  q10, q11\n        shrn            d30, q12, #2\nNRND    vadd.u16        q0,  q0,  q13\n        shrn            d31, q0,  #2\n  .if \\avg\n        vld1.8          {q9},     [r0,:128]\n        vrhadd.u8       q15, q15, q9\n  .endif\n        vst1.8          {q15},    [r0,:128], r2\n\n        bx              lr\n.endm\n\n.macro  pixels8         rnd=1, avg=0\n1:      vld1.8          {d0},     [r1], r2\n        vld1.8          {d1},     [r1], r2\n        vld1.8          {d2},     [r1], r2\n        pld             [r1, r2, lsl #2]\n        vld1.8          {d3},     [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n        pld             [r1, r2, lsl #1]\n  .if \\avg\n        vld1.8          {d4},     [r0,:64], r2\n        vrhadd.u8       d0,  d0,  d4\n        vld1.8          {d5},     [r0,:64], r2\n        vrhadd.u8       d1,  d1,  d5\n        vld1.8          {d6},     [r0,:64], r2\n        vrhadd.u8       d2,  d2,  d6\n        vld1.8          {d7},     [r0,:64], r2\n        vrhadd.u8       d3,  d3,  d7\n        sub             r0,  r0,  r2,  lsl #2\n  .endif\n        subs            r3,  r3,  #4\n        vst1.8          {d0},     [r0,:64], r2\n        vst1.8          {d1},     [r0,:64], r2\n        vst1.8          {d2},     [r0,:64], r2\n        vst1.8          {d3},     [r0,:64], r2\n        bne             1b\n        bx              lr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:6", "text": "pld             [r1, r2]\n        pld             [r1, r2, lsl #1]\n  .if \\avg\n        vld1.8          {d4},     [r0,:64], r2\n        vrhadd.u8       d0,  d0,  d4\n        vld1.8          {d5},     [r0,:64], r2\n        vrhadd.u8       d1,  d1,  d5\n        vld1.8          {d6},     [r0,:64], r2\n        vrhadd.u8       d2,  d2,  d6\n        vld1.8          {d7},     [r0,:64], r2\n        vrhadd.u8       d3,  d3,  d7\n        sub             r0,  r0,  r2,  lsl #2\n  .endif\n        subs            r3,  r3,  #4\n        vst1.8          {d0},     [r0,:64], r2\n        vst1.8          {d1},     [r0,:64], r2\n        vst1.8          {d2},     [r0,:64], r2\n        vst1.8          {d3},     [r0,:64], r2\n        bne             1b\n        bx              lr\n.endm\n\n.macro  pixels8_x2      rnd=1, avg=0\n1:      vld1.8          {q0},     [r1], r2\n        vext.8          d1,  d0,  d1,  #1\n        vld1.8          {q1},     [r1], r2\n        vext.8          d3,  d2,  d3,  #1\n        pld             [r1]\n        pld             [r1, r2]\n        subs            r3,  r3,  #2\n        vswp            d1,  d2\n        avg             q0,  q0,  q1\n  .if \\avg\n        vld1.8          {d4},     [r0,:64], r2\n        vld1.8          {d5},     [r0,:64]\n        vrhadd.u8       q0,  q0,  q2\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {d0},     [r0,:64], r2\n        vst1.8          {d1},     [r0,:64], r2\n        bne             1b\n        bx              lr\n.endm\n\n.macro  pixels8_y2      rnd=1, avg=0\n        sub             r3,  r3,  #2\n        vld1.8          {d0},     [r1], r2\n        vld1.8          {d1},     [r1], r2\n1:      subs            r3,  r3,  #2\n        avg             d4,  d0,  d1\n        vld1.8          {d0},     [r1], r2\n        avg             d5,  d0,  d1\n        vld1.8          {d1},     [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n  .if \\avg\n        vld1.8          {d2},     [r0,:64], r2\n        vld1.8          {d3},     [r0,:64]\n        vrhadd.u8       q2,  q2,  q1\n        sub             r0,  r0,  r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:7", "text": "bne             1b\n        bx              lr\n.endm\n\n.macro  pixels8_y2      rnd=1, avg=0\n        sub             r3,  r3,  #2\n        vld1.8          {d0},     [r1], r2\n        vld1.8          {d1},     [r1], r2\n1:      subs            r3,  r3,  #2\n        avg             d4,  d0,  d1\n        vld1.8          {d0},     [r1], r2\n        avg             d5,  d0,  d1\n        vld1.8          {d1},     [r1], r2\n        pld             [r1]\n        pld             [r1, r2]\n  .if \\avg\n        vld1.8          {d2},     [r0,:64], r2\n        vld1.8          {d3},     [r0,:64]\n        vrhadd.u8       q2,  q2,  q1\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {d4},     [r0,:64], r2\n        vst1.8          {d5},     [r0,:64], r2\n        bne             1b\n\n        avg             d4,  d0,  d1\n        vld1.8          {d0},     [r1], r2\n        avg             d5,  d0,  d1\n  .if \\avg\n        vld1.8          {d2},     [r0,:64], r2\n        vld1.8          {d3},     [r0,:64]\n        vrhadd.u8       q2,  q2,  q1\n        sub             r0,  r0,  r2\n  .endif\n        vst1.8          {d4},     [r0,:64], r2\n        vst1.8          {d5},     [r0,:64], r2\n\n        bx              lr\n.endm\n\n.macro  pixels8_xy2     rnd=1, avg=0\n        sub             r3,  r3,  #2\n        vld1.8          {q0},     [r1], r2\n        vld1.8          {q1},     [r1], r2\nNRND    vmov.i16        q11, #1\n        pld             [r1]\n        pld             [r1, r2]\n        vext.8          d4,  d0,  d1,  #1\n        vext.8          d6,  d2,  d3,  #1\n        vaddl.u8        q8,  d0,  d4\n        vaddl.u8        q9,  d2,  d6\n1:      subs            r3,  r3,  #2\n        vld1.8          {q0},     [r1], r2\n        pld             [r1]\n        vadd.u16        q10, q8,  q9\n        vext.8          d4,  d0,  d1,  #1\nNRND    vadd.u16        q10, q10, q11\n        vaddl.u8        q8,  d0,  d4\n        shrn            d5,  q10, #2\n        vld1.8          {q1},     [r1], r2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:8", "text": ".macro  pixels8_xy2     rnd=1, avg=0\n        sub             r3,  r3,  #2\n        vld1.8          {q0},     [r1], r2\n        vld1.8          {q1},     [r1], r2\nNRND    vmov.i16        q11, #1\n        pld             [r1]\n        pld             [r1, r2]\n        vext.8          d4,  d0,  d1,  #1\n        vext.8          d6,  d2,  d3,  #1\n        vaddl.u8        q8,  d0,  d4\n        vaddl.u8        q9,  d2,  d6\n1:      subs            r3,  r3,  #2\n        vld1.8          {q0},     [r1], r2\n        pld             [r1]\n        vadd.u16        q10, q8,  q9\n        vext.8          d4,  d0,  d1,  #1\nNRND    vadd.u16        q10, q10, q11\n        vaddl.u8        q8,  d0,  d4\n        shrn            d5,  q10, #2\n        vld1.8          {q1},     [r1], r2\n        vadd.u16        q10, q8,  q9\n        pld             [r1, r2]\n  .if \\avg\n        vld1.8          {d7},     [r0,:64]\n        vrhadd.u8       d5,  d5,  d7\n  .endif\nNRND    vadd.u16        q10, q10, q11\n        vst1.8          {d5},     [r0,:64], r2\n        shrn            d7,  q10, #2\n  .if \\avg\n        vld1.8          {d5},     [r0,:64]\n        vrhadd.u8       d7,  d7,  d5\n  .endif\n        vext.8          d6,  d2,  d3,  #1\n        vaddl.u8        q9,  d2,  d6\n        vst1.8          {d7},     [r0,:64], r2\n        bgt             1b\n\n        vld1.8          {q0},     [r1], r2\n        vadd.u16        q10, q8,  q9\n        vext.8          d4,  d0,  d1,  #1\nNRND    vadd.u16        q10, q10, q11\n        vaddl.u8        q8,  d0,  d4\n        shrn            d5,  q10, #2\n        vadd.u16        q10, q8,  q9\n  .if \\avg\n        vld1.8          {d7},     [r0,:64]\n        vrhadd.u8       d5,  d5,  d7\n  .endif\nNRND    vadd.u16        q10, q10, q11\n        vst1.8          {d5},     [r0,:64], r2\n        shrn            d7,  q10, #2\n  .if \\avg\n        vld1.8          {d5},     [r0,:64]\n        vrhadd.u8       d7,  d7,  d5\n  .endif\n        vst1.8          {d7},     [r0,:64], r2\n\n        bx              lr\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:9", "text": "vext.8          d4,  d0,  d1,  #1\nNRND    vadd.u16        q10, q10, q11\n        vaddl.u8        q8,  d0,  d4\n        shrn            d5,  q10, #2\n        vadd.u16        q10, q8,  q9\n  .if \\avg\n        vld1.8          {d7},     [r0,:64]\n        vrhadd.u8       d5,  d5,  d7\n  .endif\nNRND    vadd.u16        q10, q10, q11\n        vst1.8          {d5},     [r0,:64], r2\n        shrn            d7,  q10, #2\n  .if \\avg\n        vld1.8          {d5},     [r0,:64]\n        vrhadd.u8       d7,  d7,  d5\n  .endif\n        vst1.8          {d7},     [r0,:64], r2\n\n        bx              lr\n.endm\n\n.macro  pixfunc         pfx, name, suf, rnd=1, avg=0\n  .if \\rnd\n    .macro avg  rd, rn, rm\n        vrhadd.u8       \\rd, \\rn, \\rm\n    .endm\n    .macro shrn rd, rn, rm\n        vrshrn.u16      \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n    .endm\n  .else\n    .macro avg  rd, rn, rm\n        vhadd.u8        \\rd, \\rn, \\rm\n    .endm\n    .macro shrn rd, rn, rm\n        vshrn.u16       \\rd, \\rn, \\rm\n    .endm\n    .macro NRND insn:vararg\n        \\insn\n    .endm\n  .endif\nfunction ff_\\pfx\\name\\suf\\()_neon, export=1\n        \\name           \\rnd, \\avg\nendfunc\n        .purgem         avg\n        .purgem         shrn\n        .purgem         NRND\n.endm\n\n.macro  pixfunc2        pfx, name, avg=0\n        pixfunc         \\pfx, \\name,          rnd=1, avg=\\avg\n        pixfunc         \\pfx, \\name, _no_rnd, rnd=0, avg=\\avg\n.endm\n\nfunction ff_put_h264_qpel16_mc00_neon, export=1\n        mov             r3,  #16\nendfunc\n\n        pixfunc         put_, pixels16,     avg=0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:10", "text": ".endm\n  .endif\nfunction ff_\\pfx\\name\\suf\\()_neon, export=1\n        \\name           \\rnd, \\avg\nendfunc\n        .purgem         avg\n        .purgem         shrn\n        .purgem         NRND\n.endm\n\n.macro  pixfunc2        pfx, name, avg=0\n        pixfunc         \\pfx, \\name,          rnd=1, avg=\\avg\n        pixfunc         \\pfx, \\name, _no_rnd, rnd=0, avg=\\avg\n.endm\n\nfunction ff_put_h264_qpel16_mc00_neon, export=1\n        mov             r3,  #16\nendfunc\n\n        pixfunc         put_, pixels16,     avg=0\n        pixfunc2        put_, pixels16_x2,  avg=0\n        pixfunc2        put_, pixels16_y2,  avg=0\n        pixfunc2        put_, pixels16_xy2, avg=0\n\nfunction ff_avg_h264_qpel16_mc00_neon, export=1\n        mov             r3,  #16\nendfunc\n\n        pixfunc         avg_, pixels16,     avg=1\n        pixfunc2        avg_, pixels16_x2,  avg=1\n        pixfunc2        avg_, pixels16_y2,  avg=1\n        pixfunc2        avg_, pixels16_xy2, avg=1\n\nfunction ff_put_h264_qpel8_mc00_neon, export=1\n        mov             r3,  #8\nendfunc\n\n        pixfunc         put_, pixels8,     avg=0\n        pixfunc2        put_, pixels8_x2,  avg=0\n        pixfunc2        put_, pixels8_y2,  avg=0\n        pixfunc2        put_, pixels8_xy2, avg=0\n\nfunction ff_avg_h264_qpel8_mc00_neon, export=1\n        mov             r3,  #8\nendfunc\n\n        pixfunc         avg_, pixels8,     avg=1\n        pixfunc         avg_, pixels8_x2,  avg=1\n        pixfunc         avg_, pixels8_y2,  avg=1\n        pixfunc         avg_, pixels8_xy2, avg=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 361, "line_end": 410}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/hpeldsp_neon.S:11", "text": "pixfunc2        put_, pixels8_xy2, avg=0\n\nfunction ff_avg_h264_qpel8_mc00_neon, export=1\n        mov             r3,  #8\nendfunc\n\n        pixfunc         avg_, pixels8,     avg=1\n        pixfunc         avg_, pixels8_x2,  avg=1\n        pixfunc         avg_, pixels8_y2,  avg=1\n        pixfunc         avg_, pixels8_xy2, avg=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/hpeldsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/hpeldsp_neon.S", "line_start": 401, "line_end": 410}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_arm.S:1", "text": "@\n@ ARMv4-optimized IDCT functions\n@ Copyright (c) 2004 AGAWA Koji <i (AT) atty (DOT) jp>\n@\n@ This file is part of FFmpeg.\n@\n@ FFmpeg is free software; you can redistribute it and/or\n@ modify it under the terms of the GNU Lesser General Public\n@ License as published by the Free Software Foundation; either\n@ version 2.1 of the License, or (at your option) any later version.\n@\n@ FFmpeg is distributed in the hope that it will be useful,\n@ but WITHOUT ANY WARRANTY; without even the implied warranty of\n@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n@ Lesser General Public License for more details.\n@\n@ You should have received a copy of the GNU Lesser General Public\n@ License along with FFmpeg; if not, write to the Free Software\n@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n@\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\n@ void ff_add_pixels_clamped_arm(int16_t *block, uint8_t *dest, ptrdiff_t stride)\nfunction ff_add_pixels_clamped_arm, export=1, align=5\n        push            {r4-r10}\n        mov             r10, #8\n1:\n        ldr             r4,  [r1]               /* load dest */\n        /* block[0] and block[1]*/\n        ldrsh           r5,  [r0]\n        ldrsh           r7,  [r0, #2]\n        and             r6,  r4,  #0xFF\n        and             r8,  r4,  #0xFF00\n        add             r6,  r6,  r5\n        add             r8,  r7,  r8,  lsr #8\n        mvn             r5,  r5\n        mvn             r7,  r7\n        tst             r6,  #0x100\n        it              ne\n        movne           r6,  r5,  lsr #24\n        tst             r8,  #0x100\n        it              ne\n        movne           r8,  r7,  lsr #24\n        mov             r9,  r6\n        ldrsh           r5,  [r0, #4]           /* moved form [A] */\n        orr             r9,  r9,  r8,  lsl #8\n        /* block[2] and block[3] */\n        /* [A] */\n        ldrsh           r7,  [r0, #6]\n        and             r6,  r4,  #0xFF0000\n        and             r8,  r4,  #0xFF000000\n        add             r6,  r5,  r6,  lsr #16\n        add             r8,  r7,  r8,  lsr #24\n        mvn             r5,  r5\n        mvn             r7,  r7\n        tst             r6,  #0x100\n        it              ne\n        movne           r6,  r5,  lsr #24", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_arm.S:2", "text": "it              ne\n        movne           r6,  r5,  lsr #24\n        tst             r8,  #0x100\n        it              ne\n        movne           r8,  r7,  lsr #24\n        mov             r9,  r6\n        ldrsh           r5,  [r0, #4]           /* moved form [A] */\n        orr             r9,  r9,  r8,  lsl #8\n        /* block[2] and block[3] */\n        /* [A] */\n        ldrsh           r7,  [r0, #6]\n        and             r6,  r4,  #0xFF0000\n        and             r8,  r4,  #0xFF000000\n        add             r6,  r5,  r6,  lsr #16\n        add             r8,  r7,  r8,  lsr #24\n        mvn             r5,  r5\n        mvn             r7,  r7\n        tst             r6,  #0x100\n        it              ne\n        movne           r6,  r5,  lsr #24\n        tst             r8,  #0x100\n        it              ne\n        movne           r8,  r7,  lsr #24\n        orr             r9,  r9,  r6,  lsl #16\n        ldr             r4,  [r1, #4]           /* moved form [B] */\n        orr             r9,  r9,  r8,  lsl #24\n        /* store dest */\n        ldrsh           r5,  [r0, #8]           /* moved form [C] */\n        str             r9,  [r1]\n\n        /* load dest */\n        /* [B] */\n        /* block[4] and block[5] */\n        /* [C] */\n        ldrsh           r7,  [r0, #10]\n        and             r6,  r4,  #0xFF\n        and             r8,  r4,  #0xFF00\n        add             r6,  r6,  r5\n        add             r8,  r7,  r8,  lsr #8\n        mvn             r5,  r5\n        mvn             r7,  r7\n        tst             r6,  #0x100\n        it              ne\n        movne           r6,  r5,  lsr #24\n        tst             r8,  #0x100\n        it              ne\n        movne           r8,  r7,  lsr #24\n        mov             r9,  r6\n        ldrsh           r5,  [r0, #12]          /* moved from [D] */\n        orr             r9,  r9,  r8,  lsl #8\n        /* block[6] and block[7] */\n        /* [D] */\n        ldrsh           r7,  [r0, #14]\n        and             r6,  r4,  #0xFF0000\n        and             r8,  r4,  #0xFF000000\n        add             r6,  r5,  r6,  lsr #16\n        add             r8,  r7,  r8,  lsr #24\n        mvn             r5,  r5\n        mvn             r7,  r7\n        tst             r6,  #0x100", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_arm.S:3", "text": "mvn             r7,  r7\n        tst             r6,  #0x100\n        it              ne\n        movne           r6,  r5,  lsr #24\n        tst             r8,  #0x100\n        it              ne\n        movne           r8,  r7,  lsr #24\n        mov             r9,  r6\n        ldrsh           r5,  [r0, #12]          /* moved from [D] */\n        orr             r9,  r9,  r8,  lsl #8\n        /* block[6] and block[7] */\n        /* [D] */\n        ldrsh           r7,  [r0, #14]\n        and             r6,  r4,  #0xFF0000\n        and             r8,  r4,  #0xFF000000\n        add             r6,  r5,  r6,  lsr #16\n        add             r8,  r7,  r8,  lsr #24\n        mvn             r5,  r5\n        mvn             r7,  r7\n        tst             r6,  #0x100\n        it              ne\n        movne           r6,  r5,  lsr #24\n        tst             r8,  #0x100\n        it              ne\n        movne           r8,  r7,  lsr #24\n        orr             r9,  r9,  r6,  lsl #16\n        add             r0,  r0,  #16           /* moved from [E] */\n        orr             r9,  r9,  r8,  lsl #24\n        subs            r10, r10, #1            /* moved from [F] */\n        /* store dest */\n        str             r9,  [r1, #4]\n\n        /* [E] */\n        /* [F] */\n        add             r1,  r1,  r2\n        bne             1b\n\n        pop             {r4-r10}\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_arm.S", "line_start": 81, "line_end": 120}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_armv6.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_add_pixels_clamped_armv6, export=1\n        push            {r4-r8,lr}\n        mov             r3,  #8\n1:\n        ldm             r0!, {r4,r5,r12,lr}\n        ldrd            r6,  r7,  [r1]\n        pkhbt           r8,  r4,  r5,  lsl #16\n        pkhtb           r5,  r5,  r4,  asr #16\n        pkhbt           r4,  r12, lr,  lsl #16\n        pkhtb           lr,  lr,  r12, asr #16\n        pld             [r1, r2]\n        uxtab16         r8,  r8,  r6\n        uxtab16         r5,  r5,  r6,  ror #8\n        uxtab16         r4,  r4,  r7\n        uxtab16         lr,  lr,  r7,  ror #8\n        usat16          r8,  #8,  r8\n        usat16          r5,  #8,  r5\n        usat16          r4,  #8,  r4\n        usat16          lr,  #8,  lr\n        orr             r6,  r8,  r5,  lsl #8\n        orr             r7,  r4,  lr,  lsl #8\n        subs            r3,  r3,  #1\n        strd_post       r6,  r7,  r1,  r2\n        bgt             1b\n        pop             {r4-r8,pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_armv6.S", "line_start": 1, "line_end": 48}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_neon.S:1", "text": "/*\n * ARM-NEON-optimized IDCT functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_put_pixels_clamped_neon, export=1\n        vld1.16         {d16-d19}, [r0,:128]!\n        vqmovun.s16     d0, q8\n        vld1.16         {d20-d23}, [r0,:128]!\n        vqmovun.s16     d1, q9\n        vld1.16         {d24-d27}, [r0,:128]!\n        vqmovun.s16     d2, q10\n        vld1.16         {d28-d31}, [r0,:128]!\n        vqmovun.s16     d3, q11\n        vst1.8          {d0},      [r1,:64], r2\n        vqmovun.s16     d4, q12\n        vst1.8          {d1},      [r1,:64], r2\n        vqmovun.s16     d5, q13\n        vst1.8          {d2},      [r1,:64], r2\n        vqmovun.s16     d6, q14\n        vst1.8          {d3},      [r1,:64], r2\n        vqmovun.s16     d7, q15\n        vst1.8          {d4},      [r1,:64], r2\n        vst1.8          {d5},      [r1,:64], r2\n        vst1.8          {d6},      [r1,:64], r2\n        vst1.8          {d7},      [r1,:64], r2\n        bx              lr\nendfunc\n\nfunction ff_put_signed_pixels_clamped_neon, export=1\n        vmov.u8         d31, #128\n        vld1.16         {d16-d17}, [r0,:128]!\n        vqmovn.s16      d0, q8\n        vld1.16         {d18-d19}, [r0,:128]!\n        vqmovn.s16      d1, q9\n        vld1.16         {d16-d17}, [r0,:128]!\n        vqmovn.s16      d2, q8\n        vld1.16         {d18-d19}, [r0,:128]!\n        vadd.u8         d0, d0, d31\n        vld1.16         {d20-d21}, [r0,:128]!\n        vadd.u8         d1, d1, d31\n        vld1.16         {d22-d23}, [r0,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_neon.S:2", "text": "vst1.8          {d4},      [r1,:64], r2\n        vst1.8          {d5},      [r1,:64], r2\n        vst1.8          {d6},      [r1,:64], r2\n        vst1.8          {d7},      [r1,:64], r2\n        bx              lr\nendfunc\n\nfunction ff_put_signed_pixels_clamped_neon, export=1\n        vmov.u8         d31, #128\n        vld1.16         {d16-d17}, [r0,:128]!\n        vqmovn.s16      d0, q8\n        vld1.16         {d18-d19}, [r0,:128]!\n        vqmovn.s16      d1, q9\n        vld1.16         {d16-d17}, [r0,:128]!\n        vqmovn.s16      d2, q8\n        vld1.16         {d18-d19}, [r0,:128]!\n        vadd.u8         d0, d0, d31\n        vld1.16         {d20-d21}, [r0,:128]!\n        vadd.u8         d1, d1, d31\n        vld1.16         {d22-d23}, [r0,:128]!\n        vadd.u8         d2, d2, d31\n        vst1.8          {d0},      [r1,:64], r2\n        vqmovn.s16      d3, q9\n        vst1.8          {d1},      [r1,:64], r2\n        vqmovn.s16      d4, q10\n        vst1.8          {d2},      [r1,:64], r2\n        vqmovn.s16      d5, q11\n        vld1.16         {d24-d25}, [r0,:128]!\n        vadd.u8         d3, d3, d31\n        vld1.16         {d26-d27}, [r0,:128]!\n        vadd.u8         d4, d4, d31\n        vadd.u8         d5, d5, d31\n        vst1.8          {d3},      [r1,:64], r2\n        vqmovn.s16      d6, q12\n        vst1.8          {d4},      [r1,:64], r2\n        vqmovn.s16      d7, q13\n        vst1.8          {d5},      [r1,:64], r2\n        vadd.u8         d6, d6, d31\n        vadd.u8         d7, d7, d31\n        vst1.8          {d6},      [r1,:64], r2\n        vst1.8          {d7},      [r1,:64], r2\n        bx              lr\nendfunc\n\nfunction ff_add_pixels_clamped_neon, export=1\n        mov             r3, r1\n        vld1.8          {d16},   [r1,:64], r2\n        vld1.16         {d0-d1}, [r0,:128]!\n        vaddw.u8        q0, q0, d16\n        vld1.8          {d17},   [r1,:64], r2\n        vld1.16         {d2-d3}, [r0,:128]!\n        vqmovun.s16     d0, q0\n        vld1.8          {d18},   [r1,:64], r2\n        vaddw.u8        q1, q1, d17\n        vld1.16         {d4-d5}, [r0,:128]!\n        vaddw.u8        q2, q2, d18\n        vst1.8          {d0},    [r3,:64], r2\n        vqmovun.s16     d2, q1\n        vld1.8          {d19},   [r1,:64], r2\n        vld1.16         {d6-d7}, [r0,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/idctdsp_neon.S:3", "text": "vst1.8          {d7},      [r1,:64], r2\n        bx              lr\nendfunc\n\nfunction ff_add_pixels_clamped_neon, export=1\n        mov             r3, r1\n        vld1.8          {d16},   [r1,:64], r2\n        vld1.16         {d0-d1}, [r0,:128]!\n        vaddw.u8        q0, q0, d16\n        vld1.8          {d17},   [r1,:64], r2\n        vld1.16         {d2-d3}, [r0,:128]!\n        vqmovun.s16     d0, q0\n        vld1.8          {d18},   [r1,:64], r2\n        vaddw.u8        q1, q1, d17\n        vld1.16         {d4-d5}, [r0,:128]!\n        vaddw.u8        q2, q2, d18\n        vst1.8          {d0},    [r3,:64], r2\n        vqmovun.s16     d2, q1\n        vld1.8          {d19},   [r1,:64], r2\n        vld1.16         {d6-d7}, [r0,:128]!\n        vaddw.u8        q3, q3, d19\n        vqmovun.s16     d4, q2\n        vst1.8          {d2},    [r3,:64], r2\n        vld1.8          {d16},   [r1,:64], r2\n        vqmovun.s16     d6, q3\n        vld1.16         {d0-d1}, [r0,:128]!\n        vaddw.u8        q0, q0, d16\n        vst1.8          {d4},    [r3,:64], r2\n        vld1.8          {d17},   [r1,:64], r2\n        vld1.16         {d2-d3}, [r0,:128]!\n        vaddw.u8        q1, q1, d17\n        vst1.8          {d6},    [r3,:64], r2\n        vqmovun.s16     d0, q0\n        vld1.8          {d18},   [r1,:64], r2\n        vld1.16         {d4-d5}, [r0,:128]!\n        vaddw.u8        q2, q2, d18\n        vst1.8          {d0},    [r3,:64], r2\n        vqmovun.s16     d2, q1\n        vld1.8          {d19},   [r1,:64], r2\n        vqmovun.s16     d4, q2\n        vld1.16         {d6-d7}, [r0,:128]!\n        vaddw.u8        q3, q3, d19\n        vst1.8          {d2},    [r3,:64], r2\n        vqmovun.s16     d6, q3\n        vst1.8          {d4},    [r3,:64], r2\n        vst1.8          {d6},    [r3,:64], r2\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/idctdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/idctdsp_neon.S", "line_start": 81, "line_end": 128}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/int_neon.S:1", "text": "/*\n * ARM NEON optimised integer operations\n * Copyright (c) 2009 Konstantin Shishkov\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_scalarproduct_int16_neon, export=1\n        vmov.i16        q0,  #0\n        vmov.i16        q1,  #0\n        vmov.i16        q2,  #0\n        vmov.i16        q3,  #0\n1:      vld1.16         {d16-d17}, [r0]!\n        vld1.16         {d20-d21}, [r1,:128]!\n        vmlal.s16       q0,  d16,  d20\n        vld1.16         {d18-d19}, [r0]!\n        vmlal.s16       q1,  d17,  d21\n        vld1.16         {d22-d23}, [r1,:128]!\n        vmlal.s16       q2,  d18,  d22\n        vmlal.s16       q3,  d19,  d23\n        subs            r2,  r2,   #16\n        bgt             1b\n\n        vpadd.s32       d16, d0,   d1\n        vpadd.s32       d17, d2,   d3\n        vpadd.s32       d18, d4,   d5\n        vpadd.s32       d19, d6,   d7\n        vpadd.s32       d0,  d16,  d17\n        vpadd.s32       d1,  d18,  d19\n        vpadd.s32       d2,  d0,   d1\n        vpaddl.s32      d3,  d2\n        vmov.32         r0,  d3[0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/int_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/int_neon.S", "line_start": 1, "line_end": 50}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:1", "text": "/*\n   C-like prototype :\n        void j_rev_dct_arm(DCTBLOCK data)\n\n   With DCTBLOCK being a pointer to an array of 64 'signed shorts'\n\n   Copyright (c) 2001 Lionel Ulmer (lionel.ulmer@free.fr / bbrox@bbrox.org)\n\n   Permission is hereby granted, free of charge, to any person obtaining a copy\n   of this software and associated documentation files (the \"Software\"), to deal\n   in the Software without restriction, including without limitation the rights\n   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n   copies of the Software, and to permit persons to whom the Software is\n   furnished to do so, subject to the following conditions:\n\n   The above copyright notice and this permission notice shall be included in\n   all copies or substantial portions of the Software.\n\n   THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE\n   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n\n#include \"libavutil/arm/asm.S\"\n\n#define FIX_0_298631336 2446\n#define FIX_0_541196100 4433\n#define FIX_0_765366865 6270\n#define FIX_1_175875602 9633\n#define FIX_1_501321110 12299\n#define FIX_2_053119869 16819\n#define FIX_3_072711026 25172\n#define FIX_M_0_390180644 -3196\n#define FIX_M_0_899976223 -7373\n#define FIX_M_1_847759065 -15137\n#define FIX_M_1_961570560 -16069\n#define FIX_M_2_562915447 -20995\n#define FIX_0xFFFF 0xFFFF\n\n#define FIX_0_298631336_ID      0\n#define FIX_0_541196100_ID      4\n#define FIX_0_765366865_ID      8\n#define FIX_1_175875602_ID     12\n#define FIX_1_501321110_ID     16\n#define FIX_2_053119869_ID     20\n#define FIX_3_072711026_ID     24\n#define FIX_M_0_390180644_ID   28\n#define FIX_M_0_899976223_ID   32\n#define FIX_M_1_847759065_ID   36\n#define FIX_M_1_961570560_ID   40\n#define FIX_M_2_562915447_ID   44\n#define FIX_0xFFFF_ID          48\n\nfunction ff_j_rev_dct_arm, export=1\n        push            {r0, r4 - r11, lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:2", "text": "#define FIX_M_2_562915447 -20995\n#define FIX_0xFFFF 0xFFFF\n\n#define FIX_0_298631336_ID      0\n#define FIX_0_541196100_ID      4\n#define FIX_0_765366865_ID      8\n#define FIX_1_175875602_ID     12\n#define FIX_1_501321110_ID     16\n#define FIX_2_053119869_ID     20\n#define FIX_3_072711026_ID     24\n#define FIX_M_0_390180644_ID   28\n#define FIX_M_0_899976223_ID   32\n#define FIX_M_1_847759065_ID   36\n#define FIX_M_1_961570560_ID   40\n#define FIX_M_2_562915447_ID   44\n#define FIX_0xFFFF_ID          48\n\nfunction ff_j_rev_dct_arm, export=1\n        push            {r0, r4 - r11, lr}\n\n        mov             lr, r0                    @ lr = pointer to the current row\n        mov             r12, #8                   @ r12 = row-counter\n        movrel          r11, const_array          @ r11 = base pointer to the constants array\nrow_loop:\n        ldrsh           r0, [lr, # 0]             @ r0 = 'd0'\n        ldrsh           r2, [lr, # 2]             @ r2 = 'd2'\n\n        @ Optimization for row that have all items except the first set to 0\n        @ (this works as the int16_t are always 4-byte aligned)\n        ldr             r5, [lr, # 0]\n        ldr             r6, [lr, # 4]\n        ldr             r3, [lr, # 8]\n        ldr             r4, [lr, #12]\n        orr             r3, r3, r4\n        orr             r3, r3, r6\n        orrs            r5, r3, r5\n        beq             end_of_row_loop           @ nothing to be done as ALL of them are '0'\n        orrs            r3, r3, r2\n        beq             empty_row\n\n        ldrsh           r1, [lr, # 8]             @ r1 = 'd1'\n        ldrsh           r4, [lr, # 4]             @ r4 = 'd4'\n        ldrsh           r6, [lr, # 6]             @ r6 = 'd6'\n\n        ldr             r3, [r11, #FIX_0_541196100_ID]\n        add             r7, r2, r6\n        ldr             r5, [r11, #FIX_M_1_847759065_ID]\n        mul             r7, r3, r7                @ r7 = z1\n        ldr             r3, [r11, #FIX_0_765366865_ID]\n        mla             r6, r5, r6, r7            @ r6 = tmp2\n        add             r5, r0, r4                @ r5 = tmp0\n        mla             r2, r3, r2, r7            @ r2 = tmp3\n        sub             r3, r0, r4                @ r3 = tmp1\n\n        add             r0, r2, r5, lsl #13       @ r0 = tmp10\n        rsb             r2, r2, r5, lsl #13       @ r2 = tmp13\n        add             r4, r6, r3, lsl #13       @ r4 = tmp11\n        rsb             r3, r6, r3, lsl #13       @ r3 = tmp12\n\n        push            {r0, r2, r3, r4}          @ save on the stack tmp10, tmp13, tmp12, tmp11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:3", "text": "ldrsh           r1, [lr, # 8]             @ r1 = 'd1'\n        ldrsh           r4, [lr, # 4]             @ r4 = 'd4'\n        ldrsh           r6, [lr, # 6]             @ r6 = 'd6'\n\n        ldr             r3, [r11, #FIX_0_541196100_ID]\n        add             r7, r2, r6\n        ldr             r5, [r11, #FIX_M_1_847759065_ID]\n        mul             r7, r3, r7                @ r7 = z1\n        ldr             r3, [r11, #FIX_0_765366865_ID]\n        mla             r6, r5, r6, r7            @ r6 = tmp2\n        add             r5, r0, r4                @ r5 = tmp0\n        mla             r2, r3, r2, r7            @ r2 = tmp3\n        sub             r3, r0, r4                @ r3 = tmp1\n\n        add             r0, r2, r5, lsl #13       @ r0 = tmp10\n        rsb             r2, r2, r5, lsl #13       @ r2 = tmp13\n        add             r4, r6, r3, lsl #13       @ r4 = tmp11\n        rsb             r3, r6, r3, lsl #13       @ r3 = tmp12\n\n        push            {r0, r2, r3, r4}          @ save on the stack tmp10, tmp13, tmp12, tmp11\n\n        ldrsh           r3, [lr, #10]             @ r3 = 'd3'\n        ldrsh           r5, [lr, #12]             @ r5 = 'd5'\n        ldrsh           r7, [lr, #14]             @ r7 = 'd7'\n\n        add             r0, r3, r5                @ r0 = 'z2'\n        add             r2, r1, r7                @ r2 = 'z1'\n        add             r4, r3, r7                @ r4 = 'z3'\n        add             r6, r1, r5                @ r6 = 'z4'\n        ldr             r9, [r11, #FIX_1_175875602_ID]\n        add             r8, r4, r6                @ r8 = z3 + z4\n        ldr             r10, [r11, #FIX_M_0_899976223_ID]\n        mul             r8, r9, r8                @ r8 = 'z5'\n        ldr             r9, [r11, #FIX_M_2_562915447_ID]\n        mul             r2, r10, r2               @ r2 = 'z1'\n        ldr             r10, [r11, #FIX_M_1_961570560_ID]\n        mul             r0, r9, r0                @ r0 = 'z2'\n        ldr             r9, [r11, #FIX_M_0_390180644_ID]\n        mla             r4, r10, r4, r8           @ r4 = 'z3'\n        ldr             r10, [r11, #FIX_0_298631336_ID]\n        mla             r6, r9, r6, r8            @ r6 = 'z4'\n        ldr             r9, [r11, #FIX_2_053119869_ID]\n        mla             r7, r10, r7, r2           @ r7 = tmp0 + z1\n        ldr             r10, [r11, #FIX_3_072711026_ID]\n        mla             r5, r9, r5, r0            @ r5 = tmp1 + z2\n        ldr             r9, [r11, #FIX_1_501321110_ID]\n        mla             r3, r10, r3, r0           @ r3 = tmp2 + z2\n        add             r7, r7, r4                @ r7 = tmp0\n        mla             r1, r9, r1, r2            @ r1 = tmp3 + z1\n        add             r5, r5, r6                @ r5 = tmp1\n        add             r3, r3, r4                @ r3 = tmp2\n        add             r1, r1, r6                @ r1 = tmp3\n\n        pop             {r0, r2, r4, r6}          @ r0 = tmp10 / r2 = tmp13 / r4 = tmp12 / r6 = tmp11\n                                                  @ r1 = tmp3  / r3 = tmp2  / r5 = tmp1  / r7 = tmp0\n\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS)\n        add             r8, r0, r1\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:4", "text": "mla             r6, r9, r6, r8            @ r6 = 'z4'\n        ldr             r9, [r11, #FIX_2_053119869_ID]\n        mla             r7, r10, r7, r2           @ r7 = tmp0 + z1\n        ldr             r10, [r11, #FIX_3_072711026_ID]\n        mla             r5, r9, r5, r0            @ r5 = tmp1 + z2\n        ldr             r9, [r11, #FIX_1_501321110_ID]\n        mla             r3, r10, r3, r0           @ r3 = tmp2 + z2\n        add             r7, r7, r4                @ r7 = tmp0\n        mla             r1, r9, r1, r2            @ r1 = tmp3 + z1\n        add             r5, r5, r6                @ r5 = tmp1\n        add             r3, r3, r4                @ r3 = tmp2\n        add             r1, r1, r6                @ r1 = tmp3\n\n        pop             {r0, r2, r4, r6}          @ r0 = tmp10 / r2 = tmp13 / r4 = tmp12 / r6 = tmp11\n                                                  @ r1 = tmp3  / r3 = tmp2  / r5 = tmp1  / r7 = tmp0\n\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS)\n        add             r8, r0, r1\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 0]\n\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS-PASS1_BITS)\n        sub             r8, r0, r1\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, #14]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS-PASS1_BITS)\n        add             r8, r6, r3\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 2]\n\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS-PASS1_BITS)\n        sub             r8, r6, r3\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, #12]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS-PASS1_BITS)\n        add             r8, r4, r5\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 4]\n\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS-PASS1_BITS)\n        sub             r8, r4, r5\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, #10]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS-PASS1_BITS)\n        add             r8, r2, r7\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 6]\n\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS-PASS1_BITS)\n        sub             r8, r2, r7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:5", "text": "@ Compute DESCALE(tmp12 + tmp1, CONST_BITS-PASS1_BITS)\n        add             r8, r4, r5\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 4]\n\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS-PASS1_BITS)\n        sub             r8, r4, r5\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, #10]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS-PASS1_BITS)\n        add             r8, r2, r7\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 6]\n\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS-PASS1_BITS)\n        sub             r8, r2, r7\n        add             r8, r8, #(1<<10)\n        mov             r8, r8, asr #11\n        strh            r8, [lr, # 8]\n\n        @ End of row loop\n        add             lr, lr, #16\n        subs            r12, r12, #1\n        bne             row_loop\n        beq             start_column_loop\n\nempty_row:\n        ldr             r1, [r11, #FIX_0xFFFF_ID]\n        mov             r0, r0, lsl #2\n        and             r0, r0, r1\n        add             r0, r0, r0, lsl #16\n        str             r0, [lr, # 0]\n        str             r0, [lr, # 4]\n        str             r0, [lr, # 8]\n        str             r0, [lr, #12]\n\nend_of_row_loop:\n        @ End of loop\n        add             lr, lr, #16\n        subs            r12, r12, #1\n        bne             row_loop\n\nstart_column_loop:\n        @ Start of column loop\n        pop             {lr}\n        mov             r12, #8\ncolumn_loop:\n        ldrsh           r0, [lr, #( 0*8)]         @ r0 = 'd0'\n        ldrsh           r2, [lr, #( 4*8)]         @ r2 = 'd2'\n        ldrsh           r4, [lr, #( 8*8)]         @ r4 = 'd4'\n        ldrsh           r6, [lr, #(12*8)]         @ r6 = 'd6'\n\n        ldr             r3, [r11, #FIX_0_541196100_ID]\n        add             r1, r2, r6\n        ldr             r5, [r11, #FIX_M_1_847759065_ID]\n        mul             r1, r3, r1                @ r1 = z1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:6", "text": "end_of_row_loop:\n        @ End of loop\n        add             lr, lr, #16\n        subs            r12, r12, #1\n        bne             row_loop\n\nstart_column_loop:\n        @ Start of column loop\n        pop             {lr}\n        mov             r12, #8\ncolumn_loop:\n        ldrsh           r0, [lr, #( 0*8)]         @ r0 = 'd0'\n        ldrsh           r2, [lr, #( 4*8)]         @ r2 = 'd2'\n        ldrsh           r4, [lr, #( 8*8)]         @ r4 = 'd4'\n        ldrsh           r6, [lr, #(12*8)]         @ r6 = 'd6'\n\n        ldr             r3, [r11, #FIX_0_541196100_ID]\n        add             r1, r2, r6\n        ldr             r5, [r11, #FIX_M_1_847759065_ID]\n        mul             r1, r3, r1                @ r1 = z1\n        ldr             r3, [r11, #FIX_0_765366865_ID]\n        mla             r6, r5, r6, r1            @ r6 = tmp2\n        add             r5, r0, r4                @ r5 = tmp0\n        mla             r2, r3, r2, r1            @ r2 = tmp3\n        sub             r3, r0, r4                @ r3 = tmp1\n\n        add             r0, r2, r5, lsl #13       @ r0 = tmp10\n        rsb             r2, r2, r5, lsl #13       @ r2 = tmp13\n        add             r4, r6, r3, lsl #13       @ r4 = tmp11\n        rsb             r6, r6, r3, lsl #13       @ r6 = tmp12\n\n        ldrsh           r1, [lr, #( 2*8)]         @ r1 = 'd1'\n        ldrsh           r3, [lr, #( 6*8)]         @ r3 = 'd3'\n        ldrsh           r5, [lr, #(10*8)]         @ r5 = 'd5'\n        ldrsh           r7, [lr, #(14*8)]         @ r7 = 'd7'\n\n        @ Check for empty odd column (happens about 20 to 25 % of the time according to my stats)\n        orr             r9, r1, r3\n        orr             r10, r5, r7\n        orrs            r10, r9, r10\n        beq             empty_odd_column\n\n        push            {r0, r2, r4, r6}          @ save on the stack tmp10, tmp13, tmp12, tmp11\n\n        add             r0, r3, r5                @ r0 = 'z2'\n        add             r2, r1, r7                @ r2 = 'z1'\n        add             r4, r3, r7                @ r4 = 'z3'\n        add             r6, r1, r5                @ r6 = 'z4'\n        ldr             r9, [r11, #FIX_1_175875602_ID]\n        add             r8, r4, r6\n        ldr             r10, [r11, #FIX_M_0_899976223_ID]\n        mul             r8, r9, r8                @ r8 = 'z5'\n        ldr             r9, [r11, #FIX_M_2_562915447_ID]\n        mul             r2, r10, r2               @ r2 = 'z1'\n        ldr             r10, [r11, #FIX_M_1_961570560_ID]\n        mul             r0, r9, r0                @ r0 = 'z2'\n        ldr             r9, [r11, #FIX_M_0_390180644_ID]\n        mla             r4, r10, r4, r8           @ r4 = 'z3'\n        ldr             r10, [r11, #FIX_0_298631336_ID]\n        mla             r6, r9, r6, r8            @ r6 = 'z4'", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:7", "text": "beq             empty_odd_column\n\n        push            {r0, r2, r4, r6}          @ save on the stack tmp10, tmp13, tmp12, tmp11\n\n        add             r0, r3, r5                @ r0 = 'z2'\n        add             r2, r1, r7                @ r2 = 'z1'\n        add             r4, r3, r7                @ r4 = 'z3'\n        add             r6, r1, r5                @ r6 = 'z4'\n        ldr             r9, [r11, #FIX_1_175875602_ID]\n        add             r8, r4, r6\n        ldr             r10, [r11, #FIX_M_0_899976223_ID]\n        mul             r8, r9, r8                @ r8 = 'z5'\n        ldr             r9, [r11, #FIX_M_2_562915447_ID]\n        mul             r2, r10, r2               @ r2 = 'z1'\n        ldr             r10, [r11, #FIX_M_1_961570560_ID]\n        mul             r0, r9, r0                @ r0 = 'z2'\n        ldr             r9, [r11, #FIX_M_0_390180644_ID]\n        mla             r4, r10, r4, r8           @ r4 = 'z3'\n        ldr             r10, [r11, #FIX_0_298631336_ID]\n        mla             r6, r9, r6, r8            @ r6 = 'z4'\n        ldr             r9, [r11, #FIX_2_053119869_ID]\n        mla             r7, r10, r7, r2           @ r7 = tmp0 + z1\n        ldr             r10, [r11, #FIX_3_072711026_ID]\n        mla             r5, r9, r5, r0            @ r5 = tmp1 + z2\n        ldr             r9, [r11, #FIX_1_501321110_ID]\n        mla             r3, r10, r3, r0           @ r3 = tmp2 + z2\n        add             r7, r7, r4                @ r7 = tmp0\n        mla             r1, r9, r1, r2            @ r1 = tmp3 + z1\n        add             r5, r5, r6                @ r5 = tmp1\n        add             r3, r3, r4                @ r3 = tmp2\n        add             r1, r1, r6                @ r1 = tmp3\n\n        pop             {r0, r2, r4, r6}          @ r0 = tmp10 / r2 = tmp13 / r4 = tmp11 / r6 = tmp12\n                                                  @ r1 = tmp3  / r3 = tmp2  / r5 = tmp1  / r7 = tmp0\n\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3)\n        add             r8, r0, r1\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #( 0*8)]\n\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        sub             r8, r0, r1\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        add             r8, r4, r3\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #( 2*8)]\n\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        sub             r8, r4, r3\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #(12*8)]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS+PASS1_BITS+3)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:8", "text": "@ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        sub             r8, r0, r1\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        add             r8, r4, r3\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #( 2*8)]\n\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        sub             r8, r4, r3\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #(12*8)]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS+PASS1_BITS+3)\n        add             r8, r6, r5\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #( 4*8)]\n\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS+PASS1_BITS+3)\n        sub             r8, r6, r5\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #(10*8)]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS+PASS1_BITS+3)\n        add             r8, r2, r7\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #( 6*8)]\n\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS+PASS1_BITS+3)\n        sub             r8, r2, r7\n        add             r8, r8, #(1<<17)\n        mov             r8, r8, asr #18\n        strh            r8, [lr, #( 8*8)]\n\n        @ End of row loop\n        add             lr, lr, #2\n        subs            r12, r12, #1\n        bne             column_loop\n        beq             the_end\n\nempty_odd_column:\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        add             r0, r0, #(1<<17)\n        mov             r0, r0, asr #18\n        strh            r0, [lr, #( 0*8)]\n        strh            r0, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        add             r4, r4, #(1<<17)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:9", "text": "mov             r8, r8, asr #18\n        strh            r8, [lr, #( 8*8)]\n\n        @ End of row loop\n        add             lr, lr, #2\n        subs            r12, r12, #1\n        bne             column_loop\n        beq             the_end\n\nempty_odd_column:\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        add             r0, r0, #(1<<17)\n        mov             r0, r0, asr #18\n        strh            r0, [lr, #( 0*8)]\n        strh            r0, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        add             r4, r4, #(1<<17)\n        mov             r4, r4, asr #18\n        strh            r4, [lr, #( 2*8)]\n        strh            r4, [lr, #(12*8)]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS+PASS1_BITS+3)\n        add             r6, r6, #(1<<17)\n        mov             r6, r6, asr #18\n        strh            r6, [lr, #( 4*8)]\n        strh            r6, [lr, #(10*8)]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS+PASS1_BITS+3)\n        add             r2, r2, #(1<<17)\n        mov             r2, r2, asr #18\n        strh            r2, [lr, #( 6*8)]\n        strh            r2, [lr, #( 8*8)]\n\n        @ End of row loop\n        add             lr, lr, #2\n        subs            r12, r12, #1\n        bne             column_loop\n\nthe_end:\n        @ The end....\n        pop             {r4 - r11, pc}\nendfunc\n\nconst const_array\n        .word FIX_0_298631336\n        .word FIX_0_541196100\n        .word FIX_0_765366865\n        .word FIX_1_175875602\n        .word FIX_1_501321110\n        .word FIX_2_053119869\n        .word FIX_3_072711026\n        .word FIX_M_0_390180644\n        .word FIX_M_0_899976223\n        .word FIX_M_1_847759065\n        .word FIX_M_1_961570560", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:10", "text": "subs            r12, r12, #1\n        bne             column_loop\n\nthe_end:\n        @ The end....\n        pop             {r4 - r11, pc}\nendfunc\n\nconst const_array\n        .word FIX_0_298631336\n        .word FIX_0_541196100\n        .word FIX_0_765366865\n        .word FIX_1_175875602\n        .word FIX_1_501321110\n        .word FIX_2_053119869\n        .word FIX_3_072711026\n        .word FIX_M_0_390180644\n        .word FIX_M_0_899976223\n        .word FIX_M_1_847759065\n        .word FIX_M_1_961570560\n        .word FIX_M_2_562915447\n        .word FIX_0xFFFF\nendconst", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/jrevdct_arm.S", "line_start": 361, "line_end": 383}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:1", "text": "/*\n   C-like prototype :\n        void j_rev_dct_arm(DCTBLOCK data)\n\n   With DCTBLOCK being a pointer to an array of 64 'signed shorts'\n\n   Copyright (c) 2001 Lionel Ulmer (lionel.ulmer@free.fr / bbrox@bbrox.org)\n\n   Permission is hereby granted, free of charge, to any person obtaining a copy\n   of this software and associated documentation files (the \"Software\"), to deal\n   in the Software without restriction, including without limitation the rights\n   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n   copies of the Software, and to permit persons to whom the Software is\n   furnished to do so, subject to the following conditions:\n\n   The above copyright notice and this permission notice shall be included in\n   all copies or substantial portions of the Software.\n\n   THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE\n   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n\n#include \"libavutil/arm/asm.S\"\n\n#define FIX_0_298631336 2446\n#define FIX_0_541196100 4433\n#define FIX_0_765366865 6270\n#define FIX_1_175875602 9633\n#define FIX_1_501321110 12299\n#define FIX_2_053119869 16819\n#define FIX_3_072711026 25172\n#define FIX_M_0_390180644 -3196\n#define FIX_M_0_899976223 -7373\n#define FIX_M_1_847759065 -15137\n#define FIX_M_1_961570560 -16069\n#define FIX_M_2_562915447 -20995\n#define FIX_0xFFFF 0xFFFF\n\n#define FIX_0_298631336_ID      0\n#define FIX_0_541196100_ID      4\n#define FIX_0_765366865_ID      8\n#define FIX_1_175875602_ID     12\n#define FIX_1_501321110_ID     16\n#define FIX_2_053119869_ID     20\n#define FIX_3_072711026_ID     24\n#define FIX_M_0_390180644_ID   28\n#define FIX_M_0_899976223_ID   32\n#define FIX_M_1_847759065_ID   36\n#define FIX_M_1_961570560_ID   40\n#define FIX_M_2_562915447_ID   44\n#define FIX_0xFFFF_ID          48\n\nfunction ff_j_rev_dct_arm, export=1\n        push {r0, r4 - r11, lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:2", "text": "#define FIX_M_2_562915447 -20995\n#define FIX_0xFFFF 0xFFFF\n\n#define FIX_0_298631336_ID      0\n#define FIX_0_541196100_ID      4\n#define FIX_0_765366865_ID      8\n#define FIX_1_175875602_ID     12\n#define FIX_1_501321110_ID     16\n#define FIX_2_053119869_ID     20\n#define FIX_3_072711026_ID     24\n#define FIX_M_0_390180644_ID   28\n#define FIX_M_0_899976223_ID   32\n#define FIX_M_1_847759065_ID   36\n#define FIX_M_1_961570560_ID   40\n#define FIX_M_2_562915447_ID   44\n#define FIX_0xFFFF_ID          48\n\nfunction ff_j_rev_dct_arm, export=1\n        push {r0, r4 - r11, lr}\n\n        mov lr, r0                      @ lr = pointer to the current row\n        mov r12, #8                     @ r12 = row-counter\n        movrel r11, const_array         @ r11 = base pointer to the constants array\nrow_loop:\n        ldrsh r0, [lr, # 0]             @ r0 = 'd0'\n        ldrsh r2, [lr, # 2]             @ r2 = 'd2'\n\n        @ Optimization for row that have all items except the first set to 0\n        @ (this works as the int16_t are always 4-byte aligned)\n        ldr r5, [lr, # 0]\n        ldr r6, [lr, # 4]\n        ldr r3, [lr, # 8]\n        ldr r4, [lr, #12]\n        orr r3, r3, r4\n        orr r3, r3, r6\n        orrs r5, r3, r5\n        beq end_of_row_loop             @ nothing to be done as ALL of them are '0'\n        orrs r3, r3, r2\n        beq empty_row\n\n        ldrsh r1, [lr, # 8]             @ r1 = 'd1'\n        ldrsh r4, [lr, # 4]             @ r4 = 'd4'\n        ldrsh r6, [lr, # 6]             @ r6 = 'd6'\n\n        ldr r3, [r11, #FIX_0_541196100_ID]\n        add r7, r2, r6\n        ldr r5, [r11, #FIX_M_1_847759065_ID]\n        mul r7, r3, r7                      @ r7 = z1\n        ldr r3, [r11, #FIX_0_765366865_ID]\n        mla r6, r5, r6, r7                  @ r6 = tmp2\n        add r5, r0, r4                      @ r5 = tmp0\n        mla r2, r3, r2, r7                  @ r2 = tmp3\n        sub r3, r0, r4                      @ r3 = tmp1\n\n        add r0, r2, r5, lsl #13             @ r0 = tmp10\n        rsb r2, r2, r5, lsl #13             @ r2 = tmp13\n        add r4, r6, r3, lsl #13             @ r4 = tmp11\n        rsb r3, r6, r3, lsl #13             @ r3 = tmp12\n\n        push {r0, r2, r3, r4} @ save on the stack tmp10, tmp13, tmp12, tmp11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:3", "text": "ldrsh r1, [lr, # 8]             @ r1 = 'd1'\n        ldrsh r4, [lr, # 4]             @ r4 = 'd4'\n        ldrsh r6, [lr, # 6]             @ r6 = 'd6'\n\n        ldr r3, [r11, #FIX_0_541196100_ID]\n        add r7, r2, r6\n        ldr r5, [r11, #FIX_M_1_847759065_ID]\n        mul r7, r3, r7                      @ r7 = z1\n        ldr r3, [r11, #FIX_0_765366865_ID]\n        mla r6, r5, r6, r7                  @ r6 = tmp2\n        add r5, r0, r4                      @ r5 = tmp0\n        mla r2, r3, r2, r7                  @ r2 = tmp3\n        sub r3, r0, r4                      @ r3 = tmp1\n\n        add r0, r2, r5, lsl #13             @ r0 = tmp10\n        rsb r2, r2, r5, lsl #13             @ r2 = tmp13\n        add r4, r6, r3, lsl #13             @ r4 = tmp11\n        rsb r3, r6, r3, lsl #13             @ r3 = tmp12\n\n        push {r0, r2, r3, r4} @ save on the stack tmp10, tmp13, tmp12, tmp11\n\n        ldrsh r3, [lr, #10]             @ r3 = 'd3'\n        ldrsh r5, [lr, #12]             @ r5 = 'd5'\n        ldrsh r7, [lr, #14]             @ r7 = 'd7'\n\n        add r0, r3, r5                        @ r0 = 'z2'\n        add r2, r1, r7                  @ r2 = 'z1'\n        add r4, r3, r7                  @ r4 = 'z3'\n        add r6, r1, r5                  @ r6 = 'z4'\n        ldr r9, [r11, #FIX_1_175875602_ID]\n        add r8, r4, r6                  @ r8 = z3 + z4\n        ldr r10, [r11, #FIX_M_0_899976223_ID]\n        mul r8, r9, r8                  @ r8 = 'z5'\n        ldr r9, [r11, #FIX_M_2_562915447_ID]\n        mul r2, r10, r2                 @ r2 = 'z1'\n        ldr r10, [r11, #FIX_M_1_961570560_ID]\n        mul r0, r9, r0                  @ r0 = 'z2'\n        ldr r9, [r11, #FIX_M_0_390180644_ID]\n        mla r4, r10, r4, r8             @ r4 = 'z3'\n        ldr r10, [r11, #FIX_0_298631336_ID]\n        mla r6, r9, r6, r8              @ r6 = 'z4'\n        ldr r9, [r11, #FIX_2_053119869_ID]\n        mla r7, r10, r7, r2             @ r7 = tmp0 + z1\n        ldr r10, [r11, #FIX_3_072711026_ID]\n        mla r5, r9, r5, r0              @ r5 = tmp1 + z2\n        ldr r9, [r11, #FIX_1_501321110_ID]\n        mla r3, r10, r3, r0             @ r3 = tmp2 + z2\n        add r7, r7, r4                  @ r7 = tmp0\n        mla r1, r9, r1, r2              @ r1 = tmp3 + z1\n        add r5,        r5, r6                  @ r5 = tmp1\n        add r3, r3, r4                  @ r3 = tmp2\n        add r1, r1, r6                  @ r1 = tmp3\n\n        pop {r0, r2, r4, r6} @ r0 = tmp10 / r2 = tmp13 / r4 = tmp12 / r6 = tmp11\n                             @ r1 = tmp3  / r3 = tmp2  / r5 = tmp1  / r7 = tmp0\n\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS)\n        add r8, r0, r1\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:4", "text": "mla r6, r9, r6, r8              @ r6 = 'z4'\n        ldr r9, [r11, #FIX_2_053119869_ID]\n        mla r7, r10, r7, r2             @ r7 = tmp0 + z1\n        ldr r10, [r11, #FIX_3_072711026_ID]\n        mla r5, r9, r5, r0              @ r5 = tmp1 + z2\n        ldr r9, [r11, #FIX_1_501321110_ID]\n        mla r3, r10, r3, r0             @ r3 = tmp2 + z2\n        add r7, r7, r4                  @ r7 = tmp0\n        mla r1, r9, r1, r2              @ r1 = tmp3 + z1\n        add r5,        r5, r6                  @ r5 = tmp1\n        add r3, r3, r4                  @ r3 = tmp2\n        add r1, r1, r6                  @ r1 = tmp3\n\n        pop {r0, r2, r4, r6} @ r0 = tmp10 / r2 = tmp13 / r4 = tmp12 / r6 = tmp11\n                             @ r1 = tmp3  / r3 = tmp2  / r5 = tmp1  / r7 = tmp0\n\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS)\n        add r8, r0, r1\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 0]\n\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS-PASS1_BITS)\n        sub r8, r0, r1\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, #14]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS-PASS1_BITS)\n        add r8, r6, r3\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 2]\n\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS-PASS1_BITS)\n        sub r8, r6, r3\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, #12]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS-PASS1_BITS)\n        add r8, r4, r5\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 4]\n\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS-PASS1_BITS)\n        sub r8, r4, r5\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, #10]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS-PASS1_BITS)\n        add r8, r2, r7\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 6]\n\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS-PASS1_BITS)\n        sub r8, r2, r7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:5", "text": "@ Compute DESCALE(tmp12 + tmp1, CONST_BITS-PASS1_BITS)\n        add r8, r4, r5\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 4]\n\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS-PASS1_BITS)\n        sub r8, r4, r5\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, #10]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS-PASS1_BITS)\n        add r8, r2, r7\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 6]\n\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS-PASS1_BITS)\n        sub r8, r2, r7\n        add r8, r8, #(1<<10)\n        mov r8, r8, asr #11\n        strh r8, [lr, # 8]\n\n        @ End of row loop\n        add lr, lr, #16\n        subs r12, r12, #1\n        bne row_loop\n        beq start_column_loop\n\nempty_row:\n        ldr r1, [r11, #FIX_0xFFFF_ID]\n        mov r0, r0, lsl #2\n        and r0, r0, r1\n        add r0, r0, r0, lsl #16\n        str r0, [lr, # 0]\n        str r0, [lr, # 4]\n        str r0, [lr, # 8]\n        str r0, [lr, #12]\n\nend_of_row_loop:\n        @ End of loop\n        add lr, lr, #16\n        subs r12, r12, #1\n        bne row_loop\n\nstart_column_loop:\n        @ Start of column loop\n        pop {lr}\n        mov r12, #8\ncolumn_loop:\n        ldrsh r0, [lr, #( 0*8)]             @ r0 = 'd0'\n        ldrsh r2, [lr, #( 4*8)]             @ r2 = 'd2'\n        ldrsh r4, [lr, #( 8*8)]             @ r4 = 'd4'\n        ldrsh r6, [lr, #(12*8)]             @ r6 = 'd6'\n\n        ldr r3, [r11, #FIX_0_541196100_ID]\n        add r1, r2, r6\n        ldr r5, [r11, #FIX_M_1_847759065_ID]\n        mul r1, r3, r1                      @ r1 = z1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:6", "text": "end_of_row_loop:\n        @ End of loop\n        add lr, lr, #16\n        subs r12, r12, #1\n        bne row_loop\n\nstart_column_loop:\n        @ Start of column loop\n        pop {lr}\n        mov r12, #8\ncolumn_loop:\n        ldrsh r0, [lr, #( 0*8)]             @ r0 = 'd0'\n        ldrsh r2, [lr, #( 4*8)]             @ r2 = 'd2'\n        ldrsh r4, [lr, #( 8*8)]             @ r4 = 'd4'\n        ldrsh r6, [lr, #(12*8)]             @ r6 = 'd6'\n\n        ldr r3, [r11, #FIX_0_541196100_ID]\n        add r1, r2, r6\n        ldr r5, [r11, #FIX_M_1_847759065_ID]\n        mul r1, r3, r1                      @ r1 = z1\n        ldr r3, [r11, #FIX_0_765366865_ID]\n        mla r6, r5, r6, r1                  @ r6 = tmp2\n        add r5, r0, r4                      @ r5 = tmp0\n        mla r2, r3, r2, r1                  @ r2 = tmp3\n        sub r3, r0, r4                      @ r3 = tmp1\n\n        add r0, r2, r5, lsl #13             @ r0 = tmp10\n        rsb r2, r2, r5, lsl #13             @ r2 = tmp13\n        add r4, r6, r3, lsl #13             @ r4 = tmp11\n        rsb r6, r6, r3, lsl #13             @ r6 = tmp12\n\n        ldrsh r1, [lr, #( 2*8)]             @ r1 = 'd1'\n        ldrsh r3, [lr, #( 6*8)]             @ r3 = 'd3'\n        ldrsh r5, [lr, #(10*8)]             @ r5 = 'd5'\n        ldrsh r7, [lr, #(14*8)]             @ r7 = 'd7'\n\n        @ Check for empty odd column (happens about 20 to 25 % of the time according to my stats)\n        orr r9, r1, r3\n        orr r10, r5, r7\n        orrs r10, r9, r10\n        beq empty_odd_column\n\n        push {r0, r2, r4, r6} @ save on the stack tmp10, tmp13, tmp12, tmp11\n\n        add r0, r3, r5                  @ r0 = 'z2'\n        add r2, r1, r7                  @ r2 = 'z1'\n        add r4, r3, r7                  @ r4 = 'z3'\n        add r6, r1, r5                  @ r6 = 'z4'\n        ldr r9, [r11, #FIX_1_175875602_ID]\n        add r8, r4, r6\n        ldr r10, [r11, #FIX_M_0_899976223_ID]\n        mul r8, r9, r8                  @ r8 = 'z5'\n        ldr r9, [r11, #FIX_M_2_562915447_ID]\n        mul r2, r10, r2                 @ r2 = 'z1'\n        ldr r10, [r11, #FIX_M_1_961570560_ID]\n        mul r0, r9, r0                  @ r0 = 'z2'\n        ldr r9, [r11, #FIX_M_0_390180644_ID]\n        mla r4, r10, r4, r8             @ r4 = 'z3'\n        ldr r10, [r11, #FIX_0_298631336_ID]\n        mla r6, r9, r6, r8              @ r6 = 'z4'", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:7", "text": "beq empty_odd_column\n\n        push {r0, r2, r4, r6} @ save on the stack tmp10, tmp13, tmp12, tmp11\n\n        add r0, r3, r5                  @ r0 = 'z2'\n        add r2, r1, r7                  @ r2 = 'z1'\n        add r4, r3, r7                  @ r4 = 'z3'\n        add r6, r1, r5                  @ r6 = 'z4'\n        ldr r9, [r11, #FIX_1_175875602_ID]\n        add r8, r4, r6\n        ldr r10, [r11, #FIX_M_0_899976223_ID]\n        mul r8, r9, r8                  @ r8 = 'z5'\n        ldr r9, [r11, #FIX_M_2_562915447_ID]\n        mul r2, r10, r2                 @ r2 = 'z1'\n        ldr r10, [r11, #FIX_M_1_961570560_ID]\n        mul r0, r9, r0                  @ r0 = 'z2'\n        ldr r9, [r11, #FIX_M_0_390180644_ID]\n        mla r4, r10, r4, r8             @ r4 = 'z3'\n        ldr r10, [r11, #FIX_0_298631336_ID]\n        mla r6, r9, r6, r8              @ r6 = 'z4'\n        ldr r9, [r11, #FIX_2_053119869_ID]\n        mla r7, r10, r7, r2             @ r7 = tmp0 + z1\n        ldr r10, [r11, #FIX_3_072711026_ID]\n        mla r5, r9, r5, r0              @ r5 = tmp1 + z2\n        ldr r9, [r11, #FIX_1_501321110_ID]\n        mla r3, r10, r3, r0             @ r3 = tmp2 + z2\n        add r7, r7, r4                  @ r7 = tmp0\n        mla r1, r9, r1, r2              @ r1 = tmp3 + z1\n        add r5,        r5, r6                  @ r5 = tmp1\n        add r3, r3, r4                  @ r3 = tmp2\n        add r1, r1, r6                  @ r1 = tmp3\n\n        pop {r0, r2, r4, r6} @ r0 = tmp10 / r2 = tmp13 / r4 = tmp11 / r6 = tmp12\n                             @ r1 = tmp3  / r3 = tmp2  / r5 = tmp1  / r7 = tmp0\n\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3)\n        add r8, r0, r1\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #( 0*8)]\n\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        sub r8, r0, r1\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        add r8, r4, r3\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #( 2*8)]\n\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        sub r8, r4, r3\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #(12*8)]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS+PASS1_BITS+3)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:8", "text": "@ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        sub r8, r0, r1\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        add r8, r4, r3\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #( 2*8)]\n\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        sub r8, r4, r3\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #(12*8)]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS+PASS1_BITS+3)\n        add r8, r6, r5\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #( 4*8)]\n\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS+PASS1_BITS+3)\n        sub r8, r6, r5\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #(10*8)]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS+PASS1_BITS+3)\n        add r8, r2, r7\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #( 6*8)]\n\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS+PASS1_BITS+3)\n        sub r8, r2, r7\n        add r8, r8, #(1<<17)\n        mov r8, r8, asr #18\n        strh r8, [lr, #( 8*8)]\n\n        @ End of row loop\n        add lr, lr, #2\n        subs r12, r12, #1\n        bne column_loop\n        beq the_end\n\nempty_odd_column:\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        add r0, r0, #(1<<17)\n        mov r0, r0, asr #18\n        strh r0, [lr, #( 0*8)]\n        strh r0, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        add r4, r4, #(1<<17)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:9", "text": "mov r8, r8, asr #18\n        strh r8, [lr, #( 8*8)]\n\n        @ End of row loop\n        add lr, lr, #2\n        subs r12, r12, #1\n        bne column_loop\n        beq the_end\n\nempty_odd_column:\n        @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp10 - tmp3, CONST_BITS+PASS1_BITS+3)\n        add r0, r0, #(1<<17)\n        mov r0, r0, asr #18\n        strh r0, [lr, #( 0*8)]\n        strh r0, [lr, #(14*8)]\n\n        @ Compute DESCALE(tmp11 + tmp2, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp11 - tmp2, CONST_BITS+PASS1_BITS+3)\n        add r4, r4, #(1<<17)\n        mov r4, r4, asr #18\n        strh r4, [lr, #( 2*8)]\n        strh r4, [lr, #(12*8)]\n\n        @ Compute DESCALE(tmp12 + tmp1, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp12 - tmp1, CONST_BITS+PASS1_BITS+3)\n        add r6, r6, #(1<<17)\n        mov r6, r6, asr #18\n        strh r6, [lr, #( 4*8)]\n        strh r6, [lr, #(10*8)]\n\n        @ Compute DESCALE(tmp13 + tmp0, CONST_BITS+PASS1_BITS+3)\n        @ Compute DESCALE(tmp13 - tmp0, CONST_BITS+PASS1_BITS+3)\n        add r2, r2, #(1<<17)\n        mov r2, r2, asr #18\n        strh r2, [lr, #( 6*8)]\n        strh r2, [lr, #( 8*8)]\n\n        @ End of row loop\n        add lr, lr, #2\n        subs r12, r12, #1\n        bne column_loop\n\nthe_end:\n        @ The end....\n        pop {r4 - r11, pc}\nendfunc\n\nconst const_array\n        .word FIX_0_298631336\n        .word FIX_0_541196100\n        .word FIX_0_765366865\n        .word FIX_1_175875602\n        .word FIX_1_501321110\n        .word FIX_2_053119869\n        .word FIX_3_072711026\n        .word FIX_M_0_390180644\n        .word FIX_M_0_899976223\n        .word FIX_M_1_847759065\n        .word FIX_M_1_961570560", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/jrevdct_arm.S:10", "text": "subs r12, r12, #1\n        bne column_loop\n\nthe_end:\n        @ The end....\n        pop {r4 - r11, pc}\nendfunc\n\nconst const_array\n        .word FIX_0_298631336\n        .word FIX_0_541196100\n        .word FIX_0_765366865\n        .word FIX_1_175875602\n        .word FIX_1_501321110\n        .word FIX_2_053119869\n        .word FIX_3_072711026\n        .word FIX_M_0_390180644\n        .word FIX_M_0_899976223\n        .word FIX_M_1_847759065\n        .word FIX_M_1_961570560\n        .word FIX_M_2_562915447\n        .word FIX_0xFFFF\nendconst", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/jrevdct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/jrevdct_arm.S", "line_start": 361, "line_end": 383}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/lossless_audiodsp_neon.S:1", "text": "/*\n * ARM NEON optimised integer operations\n * Copyright (c) 2009 Kostya Shishkov\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n@ scalarproduct_and_madd_int16(/*aligned*/v0,v1,v2,order,mul)\nfunction ff_scalarproduct_and_madd_int16_neon, export=1\n        vld1.16         {d28[],d29[]}, [sp]\n        vmov.i16        q0,  #0\n        vmov.i16        q1,  #0\n        vmov.i16        q2,  #0\n        vmov.i16        q3,  #0\n        mov             r12, r0\n\n1:      vld1.16         {d16-d17}, [r0,:128]!\n        vld1.16         {d18-d19}, [r1]!\n        vld1.16         {d20-d21}, [r2]!\n        vld1.16         {d22-d23}, [r0,:128]!\n        vld1.16         {d24-d25}, [r1]!\n        vld1.16         {d26-d27}, [r2]!\n        vmul.s16        q10, q10,  q14\n        vmul.s16        q13, q13,  q14\n        vmlal.s16       q0,  d16,  d18\n        vmlal.s16       q1,  d17,  d19\n        vadd.s16        q10, q8,   q10\n        vadd.s16        q13, q11,  q13\n        vmlal.s16       q2,  d22,  d24\n        vmlal.s16       q3,  d23,  d25\n        vst1.16         {q10},     [r12,:128]!\n        subs            r3,  r3,   #16\n        vst1.16         {q13},     [r12,:128]!\n        bgt             1b\n\n        vpadd.s32       d16, d0,   d1\n        vpadd.s32       d17, d2,   d3\n        vpadd.s32       d18, d4,   d5\n        vpadd.s32       d19, d6,   d7\n        vpadd.s32       d0,  d16,  d17\n        vpadd.s32       d1,  d18,  d19\n        vpadd.s32       d2,  d0,   d1\n        vpaddl.s32      d3,  d2\n        vmov.32         r0,  d3[0]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/lossless_audiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/lossless_audiodsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/lossless_audiodsp_neon.S:2", "text": "vmlal.s16       q0,  d16,  d18\n        vmlal.s16       q1,  d17,  d19\n        vadd.s16        q10, q8,   q10\n        vadd.s16        q13, q11,  q13\n        vmlal.s16       q2,  d22,  d24\n        vmlal.s16       q3,  d23,  d25\n        vst1.16         {q10},     [r12,:128]!\n        subs            r3,  r3,   #16\n        vst1.16         {q13},     [r12,:128]!\n        bgt             1b\n\n        vpadd.s32       d16, d0,   d1\n        vpadd.s32       d17, d2,   d3\n        vpadd.s32       d18, d4,   d5\n        vpadd.s32       d19, d6,   d7\n        vpadd.s32       d0,  d16,  d17\n        vpadd.s32       d1,  d18,  d19\n        vpadd.s32       d2,  d0,   d1\n        vpaddl.s32      d3,  d2\n        vmov.32         r0,  d3[0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/lossless_audiodsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/lossless_audiodsp_neon.S", "line_start": 41, "line_end": 62}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/me_cmp_armv6.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_pix_abs16_armv6, export=1\n        ldr             r0,  [sp]\n        push            {r4-r9, lr}\n        mov             r12, #0\n        mov             lr,  #0\n        ldm             r1,  {r4-r7}\n        ldr             r8,  [r2]\n1:\n        ldr             r9,  [r2, #4]\n        pld             [r1, r3]\n        usada8          r12, r4,  r8,  r12\n        ldr             r8,  [r2, #8]\n        pld             [r2, r3]\n        usada8          lr,  r5,  r9,  lr\n        ldr             r9,  [r2, #12]\n        usada8          r12, r6,  r8,  r12\n        subs            r0,  r0,  #1\n        usada8          lr,  r7,  r9,  lr\n        beq             2f\n        add             r1,  r1,  r3\n        ldm             r1,  {r4-r7}\n        add             r2,  r2,  r3\n        ldr             r8,  [r2]\n        b               1b\n2:\n        add             r0,  r12, lr\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_pix_abs16_x2_armv6, export=1\n        ldr             r12, [sp]\n        push            {r4-r11, lr}\n        mov             r0,  #0\n        mov             lr,  #1\n        orr             lr,  lr,  lr,  lsl #8\n        orr             lr,  lr,  lr,  lsl #16\n1:\n        ldr             r8,  [r2]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/me_cmp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/me_cmp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/me_cmp_armv6.S:2", "text": "beq             2f\n        add             r1,  r1,  r3\n        ldm             r1,  {r4-r7}\n        add             r2,  r2,  r3\n        ldr             r8,  [r2]\n        b               1b\n2:\n        add             r0,  r12, lr\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_pix_abs16_x2_armv6, export=1\n        ldr             r12, [sp]\n        push            {r4-r11, lr}\n        mov             r0,  #0\n        mov             lr,  #1\n        orr             lr,  lr,  lr,  lsl #8\n        orr             lr,  lr,  lr,  lsl #16\n1:\n        ldr             r8,  [r2]\n        ldr             r9,  [r2, #4]\n        lsr             r10, r8,  #8\n        ldr             r4,  [r1]\n        lsr             r6,  r9,  #8\n        orr             r10, r10, r9,  lsl #24\n        ldr             r5,  [r2, #8]\n        eor             r11, r8,  r10\n        uhadd8          r7,  r8,  r10\n        orr             r6,  r6,  r5,  lsl #24\n        and             r11, r11, lr\n        uadd8           r7,  r7,  r11\n        ldr             r8,  [r1, #4]\n        usada8          r0,  r4,  r7,  r0\n        eor             r7,  r9,  r6\n        lsr             r10, r5,  #8\n        and             r7,  r7,  lr\n        uhadd8          r4,  r9,  r6\n        ldr             r6,  [r2, #12]\n        uadd8           r4,  r4,  r7\n        pld             [r1, r3]\n        orr             r10, r10, r6,  lsl #24\n        usada8          r0,  r8,  r4,  r0\n        ldr             r4,  [r1, #8]\n        eor             r11, r5,  r10\n        ldrb            r7,  [r2, #16]\n        and             r11, r11, lr\n        uhadd8          r8,  r5,  r10\n        ldr             r5,  [r1, #12]\n        uadd8           r8,  r8,  r11\n        pld             [r2, r3]\n        lsr             r10, r6,  #8\n        usada8          r0,  r4,  r8,  r0\n        orr             r10, r10, r7,  lsl #24\n        subs            r12,  r12,  #1\n        eor             r11, r6,  r10\n        add             r1,  r1,  r3\n        uhadd8          r9,  r6,  r10\n        and             r11, r11, lr\n        uadd8           r9,  r9,  r11\n        add             r2,  r2,  r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/me_cmp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/me_cmp_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/me_cmp_armv6.S:3", "text": "orr             r10, r10, r6,  lsl #24\n        usada8          r0,  r8,  r4,  r0\n        ldr             r4,  [r1, #8]\n        eor             r11, r5,  r10\n        ldrb            r7,  [r2, #16]\n        and             r11, r11, lr\n        uhadd8          r8,  r5,  r10\n        ldr             r5,  [r1, #12]\n        uadd8           r8,  r8,  r11\n        pld             [r2, r3]\n        lsr             r10, r6,  #8\n        usada8          r0,  r4,  r8,  r0\n        orr             r10, r10, r7,  lsl #24\n        subs            r12,  r12,  #1\n        eor             r11, r6,  r10\n        add             r1,  r1,  r3\n        uhadd8          r9,  r6,  r10\n        and             r11, r11, lr\n        uadd8           r9,  r9,  r11\n        add             r2,  r2,  r3\n        usada8          r0,  r5,  r9,  r0\n        bgt             1b\n\n        pop             {r4-r11, pc}\nendfunc\n\n.macro  usad_y2         p0,  p1,  p2,  p3,  n0,  n1,  n2,  n3\n        ldr             \\n0, [r2]\n        eor             \\n1, \\p0, \\n0\n        uhadd8          \\p0, \\p0, \\n0\n        and             \\n1, \\n1, lr\n        ldr             \\n2, [r1]\n        uadd8           \\p0, \\p0, \\n1\n        ldr             \\n1, [r2, #4]\n        usada8          r0,  \\p0, \\n2, r0\n        pld             [r1,  r3]\n        eor             \\n3, \\p1, \\n1\n        uhadd8          \\p1, \\p1, \\n1\n        and             \\n3, \\n3, lr\n        ldr             \\p0, [r1, #4]\n        uadd8           \\p1, \\p1, \\n3\n        ldr             \\n2, [r2, #8]\n        usada8          r0,  \\p1, \\p0, r0\n        pld             [r2,  r3]\n        eor             \\p0, \\p2, \\n2\n        uhadd8          \\p2, \\p2, \\n2\n        and             \\p0, \\p0, lr\n        ldr             \\p1, [r1, #8]\n        uadd8           \\p2, \\p2, \\p0\n        ldr             \\n3, [r2, #12]\n        usada8          r0,  \\p2, \\p1, r0\n        eor             \\p1, \\p3, \\n3\n        uhadd8          \\p3, \\p3, \\n3\n        and             \\p1, \\p1, lr\n        ldr             \\p0,  [r1, #12]\n        uadd8           \\p3, \\p3, \\p1\n        add             r1,  r1,  r3\n        usada8          r0,  \\p3, \\p0,  r0\n        add             r2,  r2,  r3\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/me_cmp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/me_cmp_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/me_cmp_armv6.S:4", "text": "uadd8           \\p1, \\p1, \\n3\n        ldr             \\n2, [r2, #8]\n        usada8          r0,  \\p1, \\p0, r0\n        pld             [r2,  r3]\n        eor             \\p0, \\p2, \\n2\n        uhadd8          \\p2, \\p2, \\n2\n        and             \\p0, \\p0, lr\n        ldr             \\p1, [r1, #8]\n        uadd8           \\p2, \\p2, \\p0\n        ldr             \\n3, [r2, #12]\n        usada8          r0,  \\p2, \\p1, r0\n        eor             \\p1, \\p3, \\n3\n        uhadd8          \\p3, \\p3, \\n3\n        and             \\p1, \\p1, lr\n        ldr             \\p0,  [r1, #12]\n        uadd8           \\p3, \\p3, \\p1\n        add             r1,  r1,  r3\n        usada8          r0,  \\p3, \\p0,  r0\n        add             r2,  r2,  r3\n.endm\n\nfunction ff_pix_abs16_y2_armv6, export=1\n        pld             [r1]\n        pld             [r2]\n        ldr             r12, [sp]\n        push            {r4-r11, lr}\n        mov             r0,  #0\n        mov             lr,  #1\n        orr             lr,  lr,  lr,  lsl #8\n        orr             lr,  lr,  lr,  lsl #16\n        ldr             r4,  [r2]\n        ldr             r5,  [r2, #4]\n        ldr             r6,  [r2, #8]\n        ldr             r7,  [r2, #12]\n        add             r2,  r2,  r3\n1:\n        usad_y2         r4,  r5,  r6,  r7,  r8,  r9,  r10, r11\n        subs            r12, r12, #2\n        usad_y2         r8,  r9,  r10, r11, r4,  r5,  r6,  r7\n        bgt             1b\n\n        pop             {r4-r11, pc}\nendfunc\n\nfunction ff_pix_abs8_armv6, export=1\n        pld             [r2, r3]\n        ldr             r12, [sp]\n        push            {r4-r9, lr}\n        mov             r0,  #0\n        mov             lr,  #0\n        ldrd_post       r4,  r5,  r1,  r3\n1:\n        subs            r12, r12, #2\n        ldr             r7,  [r2, #4]\n        ldr_post        r6,  r2,  r3\n        ldrd_post       r8,  r9,  r1,  r3\n        usada8          r0,  r4,  r6,  r0\n        pld             [r2, r3]\n        usada8          lr,  r5,  r7,  lr\n        ldr             r7,  [r2, #4]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/me_cmp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/me_cmp_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/me_cmp_armv6.S:5", "text": "pop             {r4-r11, pc}\nendfunc\n\nfunction ff_pix_abs8_armv6, export=1\n        pld             [r2, r3]\n        ldr             r12, [sp]\n        push            {r4-r9, lr}\n        mov             r0,  #0\n        mov             lr,  #0\n        ldrd_post       r4,  r5,  r1,  r3\n1:\n        subs            r12, r12, #2\n        ldr             r7,  [r2, #4]\n        ldr_post        r6,  r2,  r3\n        ldrd_post       r8,  r9,  r1,  r3\n        usada8          r0,  r4,  r6,  r0\n        pld             [r2, r3]\n        usada8          lr,  r5,  r7,  lr\n        ldr             r7,  [r2, #4]\n        ldr_post        r6,  r2,  r3\n        beq             2f\n        ldrd_post       r4,  r5,  r1,  r3\n        usada8          r0,  r8,  r6,  r0\n        pld             [r2, r3]\n        usada8          lr,  r9,  r7,  lr\n        b               1b\n2:\n        usada8          r0,  r8,  r6,  r0\n        usada8          lr,  r9,  r7,  lr\n        add             r0,  r0,  lr\n        pop             {r4-r9, pc}\nendfunc\n\nfunction ff_sse16_armv6, export=1\n        ldr             r12, [sp]\n        push            {r4-r9, lr}\n        mov             r0,  #0\n1:\n        ldrd            r4,  r5,  [r1]\n        ldr             r8,  [r2]\n        uxtb16          lr,  r4\n        uxtb16          r4,  r4,  ror #8\n        uxtb16          r9,  r8\n        uxtb16          r8,  r8,  ror #8\n        ldr             r7,  [r2, #4]\n        usub16          lr,  lr,  r9\n        usub16          r4,  r4,  r8\n        smlad           r0,  lr,  lr,  r0\n        uxtb16          r6,  r5\n        uxtb16          lr,  r5,  ror #8\n        uxtb16          r8,  r7\n        uxtb16          r9,  r7,  ror #8\n        smlad           r0,  r4,  r4,  r0\n        ldrd            r4,  r5,  [r1, #8]\n        usub16          r6,  r6,  r8\n        usub16          r8,  lr,  r9\n        ldr             r7,  [r2, #8]\n        smlad           r0,  r6,  r6,  r0\n        uxtb16          lr,  r4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/me_cmp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/me_cmp_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/me_cmp_armv6.S:6", "text": "ldr             r8,  [r2]\n        uxtb16          lr,  r4\n        uxtb16          r4,  r4,  ror #8\n        uxtb16          r9,  r8\n        uxtb16          r8,  r8,  ror #8\n        ldr             r7,  [r2, #4]\n        usub16          lr,  lr,  r9\n        usub16          r4,  r4,  r8\n        smlad           r0,  lr,  lr,  r0\n        uxtb16          r6,  r5\n        uxtb16          lr,  r5,  ror #8\n        uxtb16          r8,  r7\n        uxtb16          r9,  r7,  ror #8\n        smlad           r0,  r4,  r4,  r0\n        ldrd            r4,  r5,  [r1, #8]\n        usub16          r6,  r6,  r8\n        usub16          r8,  lr,  r9\n        ldr             r7,  [r2, #8]\n        smlad           r0,  r6,  r6,  r0\n        uxtb16          lr,  r4\n        uxtb16          r4,  r4,  ror #8\n        uxtb16          r9,  r7\n        uxtb16          r7,  r7, ror #8\n        smlad           r0,  r8,  r8,  r0\n        ldr             r8,  [r2, #12]\n        usub16          lr,  lr,  r9\n        usub16          r4,  r4,  r7\n        smlad           r0,  lr,  lr,  r0\n        uxtb16          r6,  r5\n        uxtb16          r5,  r5,  ror #8\n        uxtb16          r9,  r8\n        uxtb16          r8,  r8,  ror #8\n        smlad           r0,  r4,  r4,  r0\n        usub16          r6,  r6,  r9\n        usub16          r5,  r5,  r8\n        smlad           r0,  r6,  r6,  r0\n        add             r1,  r1,  r3\n        add             r2,  r2,  r3\n        subs            r12, r12, #1\n        smlad           r0,  r5,  r5,  r0\n        bgt             1b\n\n        pop             {r4-r9, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/me_cmp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/me_cmp_armv6.S", "line_start": 201, "line_end": 244}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:1", "text": "/*\n * Copyright (c) 2014 RISC OS Open Ltd\n * Author: Ben Avison <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n#define MAX_CHANNELS        8\n#define MAX_FIR_ORDER       8\n#define MAX_IIR_ORDER       4\n#define MAX_RATEFACTOR      4\n#define MAX_BLOCKSIZE       (40 * MAX_RATEFACTOR)\n\nPST     .req    a1\nPCO     .req    a2\nAC0     .req    a3\nAC1     .req    a4\nCO0     .req    v1\nCO1     .req    v2\nCO2     .req    v3\nCO3     .req    v4\nST0     .req    v5\nST1     .req    v6\nST2     .req    sl\nST3     .req    fp\nI       .req    ip\nPSAMP   .req    lr\n\n\n.macro branch_pic_label first, remainder:vararg\nA       .word           \\first   - 4\nT       .hword          (\\first) / 2\n.ifnb   \\remainder\n        branch_pic_label \\remainder\n.endif\n.endm\n\n// Some macros that do loads/multiplies where the register number is determined\n// from an assembly-time expression. Boy is GNU assembler's syntax ugly...\n\n.macro load  group, index, base, offset\n       .altmacro\n       load_ \\group, %(\\index), \\base, \\offset\n       .noaltmacro", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:2", "text": "ST3     .req    fp\nI       .req    ip\nPSAMP   .req    lr\n\n\n.macro branch_pic_label first, remainder:vararg\nA       .word           \\first   - 4\nT       .hword          (\\first) / 2\n.ifnb   \\remainder\n        branch_pic_label \\remainder\n.endif\n.endm\n\n// Some macros that do loads/multiplies where the register number is determined\n// from an assembly-time expression. Boy is GNU assembler's syntax ugly...\n\n.macro load  group, index, base, offset\n       .altmacro\n       load_ \\group, %(\\index), \\base, \\offset\n       .noaltmacro\n.endm\n\n.macro load_ group, index, base, offset\n        ldr     \\group\\index, [\\base, #\\offset]\n.endm\n\n.macro loadd  group, index, base, offset\n       .altmacro\n       loadd_ \\group, %(\\index), %(\\index+1), \\base, \\offset\n       .noaltmacro\n.endm\n\n.macro loadd_ group, index0, index1, base, offset\nA .if \\offset >= 256\nA       ldr     \\group\\index0, [\\base, #\\offset]\nA       ldr     \\group\\index1, [\\base, #(\\offset) + 4]\nA .else\n        ldrd    \\group\\index0, \\group\\index1, [\\base, #\\offset]\nA .endif\n.endm\n\n.macro multiply  index, accumulate, long\n        .altmacro\n        multiply_ %(\\index), \\accumulate, \\long\n        .noaltmacro\n.endm\n\n.macro multiply_  index, accumulate, long\n .if \\long\n  .if \\accumulate\n        smlal   AC0, AC1, CO\\index, ST\\index\n  .else\n        smull   AC0, AC1, CO\\index, ST\\index\n  .endif\n .else\n  .if \\accumulate\n        mla     AC0, CO\\index, ST\\index, AC0\n  .else\n        mul     AC0, CO\\index, ST\\index\n  .endif", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:3", "text": ".macro multiply  index, accumulate, long\n        .altmacro\n        multiply_ %(\\index), \\accumulate, \\long\n        .noaltmacro\n.endm\n\n.macro multiply_  index, accumulate, long\n .if \\long\n  .if \\accumulate\n        smlal   AC0, AC1, CO\\index, ST\\index\n  .else\n        smull   AC0, AC1, CO\\index, ST\\index\n  .endif\n .else\n  .if \\accumulate\n        mla     AC0, CO\\index, ST\\index, AC0\n  .else\n        mul     AC0, CO\\index, ST\\index\n  .endif\n .endif\n.endm\n\n// A macro to update the load register number and load offsets\n\n.macro inc  howmany\n  .set LOAD_REG, (LOAD_REG + \\howmany) & 3\n  .set OFFSET_CO, OFFSET_CO + 4 * \\howmany\n  .set OFFSET_ST, OFFSET_ST + 4 * \\howmany\n  .if FIR_REMAIN > 0\n    .set FIR_REMAIN, FIR_REMAIN - \\howmany\n    .if FIR_REMAIN == 0\n      .set OFFSET_CO, 4 * MAX_FIR_ORDER\n      .set OFFSET_ST, 4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)\n    .endif\n  .elseif IIR_REMAIN > 0\n    .set IIR_REMAIN, IIR_REMAIN - \\howmany\n  .endif\n.endm\n\n// Macro to implement the inner loop for one specific combination of parameters\n\n.macro implement_filter  mask_minus1, shift_0, shift_8, iir_taps, fir_taps\n  .set TOTAL_TAPS, \\iir_taps + \\fir_taps\n\n  // Deal with register allocation...\n  .set DEFINED_SHIFT, 0\n  .set DEFINED_MASK, 0\n  .set SHUFFLE_SHIFT, 0\n  .set SHUFFLE_MASK, 0\n  .set SPILL_SHIFT, 0\n  .set SPILL_MASK, 0\n  .if TOTAL_TAPS == 0\n    // Little register pressure in this case - just keep MASK where it was\n    .if !\\mask_minus1\n      MASK .req ST1\n      .set DEFINED_MASK, 1\n    .endif\n  .else\n    .if \\shift_0", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:4", "text": "// Macro to implement the inner loop for one specific combination of parameters\n\n.macro implement_filter  mask_minus1, shift_0, shift_8, iir_taps, fir_taps\n  .set TOTAL_TAPS, \\iir_taps + \\fir_taps\n\n  // Deal with register allocation...\n  .set DEFINED_SHIFT, 0\n  .set DEFINED_MASK, 0\n  .set SHUFFLE_SHIFT, 0\n  .set SHUFFLE_MASK, 0\n  .set SPILL_SHIFT, 0\n  .set SPILL_MASK, 0\n  .if TOTAL_TAPS == 0\n    // Little register pressure in this case - just keep MASK where it was\n    .if !\\mask_minus1\n      MASK .req ST1\n      .set DEFINED_MASK, 1\n    .endif\n  .else\n    .if \\shift_0\n      .if !\\mask_minus1\n        // AC1 is unused with shift 0\n        MASK .req AC1\n        .set DEFINED_MASK, 1\n        .set SHUFFLE_MASK, 1\n      .endif\n    .elseif \\shift_8\n      .if !\\mask_minus1\n        .if TOTAL_TAPS <= 4\n        // All coefficients are preloaded (so pointer not needed)\n          MASK .req PCO\n          .set DEFINED_MASK, 1\n          .set SHUFFLE_MASK, 1\n        .else\n          .set SPILL_MASK, 1\n        .endif\n      .endif\n    .else // shift not 0 or 8\n      .if TOTAL_TAPS <= 3\n        // All coefficients are preloaded, and at least one CO register is unused\n        .if \\fir_taps & 1\n          SHIFT .req CO0\n          .set DEFINED_SHIFT, 1\n          .set SHUFFLE_SHIFT, 1\n        .else\n          SHIFT .req CO3\n          .set DEFINED_SHIFT, 1\n          .set SHUFFLE_SHIFT, 1\n        .endif\n        .if !\\mask_minus1\n          MASK .req PCO\n          .set DEFINED_MASK, 1\n          .set SHUFFLE_MASK, 1\n        .endif\n      .elseif TOTAL_TAPS == 4\n        // All coefficients are preloaded\n        SHIFT .req PCO\n        .set DEFINED_SHIFT, 1\n        .set SHUFFLE_SHIFT, 1\n        .if !\\mask_minus1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:5", "text": ".if \\fir_taps & 1\n          SHIFT .req CO0\n          .set DEFINED_SHIFT, 1\n          .set SHUFFLE_SHIFT, 1\n        .else\n          SHIFT .req CO3\n          .set DEFINED_SHIFT, 1\n          .set SHUFFLE_SHIFT, 1\n        .endif\n        .if !\\mask_minus1\n          MASK .req PCO\n          .set DEFINED_MASK, 1\n          .set SHUFFLE_MASK, 1\n        .endif\n      .elseif TOTAL_TAPS == 4\n        // All coefficients are preloaded\n        SHIFT .req PCO\n        .set DEFINED_SHIFT, 1\n        .set SHUFFLE_SHIFT, 1\n        .if !\\mask_minus1\n          .set SPILL_MASK, 1\n        .endif\n      .else\n        .set SPILL_SHIFT, 1\n        .if !\\mask_minus1\n          .set SPILL_MASK, 1\n        .endif\n      .endif\n    .endif\n  .endif\n  .if SPILL_SHIFT\n    SHIFT .req ST0\n    .set DEFINED_SHIFT, 1\n  .endif\n  .if SPILL_MASK\n    MASK .req ST1\n    .set DEFINED_MASK, 1\n  .endif\n\n        // Preload coefficients if possible\n  .if TOTAL_TAPS <= 4\n    .set OFFSET_CO, 0\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .rept \\fir_taps\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n      .set LOAD_REG, (LOAD_REG + 1) & 3\n      .set OFFSET_CO, OFFSET_CO + 4\n    .endr\n    .set OFFSET_CO, 4 * MAX_FIR_ORDER\n    .rept \\iir_taps\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n      .set LOAD_REG, (LOAD_REG + 1) & 3\n      .set OFFSET_CO, OFFSET_CO + 4\n    .endr\n  .endif", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:6", "text": ".if TOTAL_TAPS <= 4\n    .set OFFSET_CO, 0\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .rept \\fir_taps\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n      .set LOAD_REG, (LOAD_REG + 1) & 3\n      .set OFFSET_CO, OFFSET_CO + 4\n    .endr\n    .set OFFSET_CO, 4 * MAX_FIR_ORDER\n    .rept \\iir_taps\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n      .set LOAD_REG, (LOAD_REG + 1) & 3\n      .set OFFSET_CO, OFFSET_CO + 4\n    .endr\n  .endif\n\n        // Move mask/shift to final positions if necessary\n        // Need to do this after preloading, because in some cases we\n        // reuse the coefficient pointer register\n  .if SHUFFLE_SHIFT\n        mov     SHIFT, ST0\n  .endif\n  .if SHUFFLE_MASK\n        mov     MASK, ST1\n  .endif\n\n        // Begin loop\n1:\n  .if TOTAL_TAPS == 0\n        // Things simplify a lot in this case\n        // In fact this could be pipelined further if it's worth it...\n        ldr     ST0, [PSAMP]\n        subs    I, I, #1\n    .if !\\mask_minus1\n        and     ST0, ST0, MASK\n    .endif\n        str     ST0, [PST, #-4]!\n        str     ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST0, [PSAMP], #4 * MAX_CHANNELS\n        bne     1b\n  .else\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .set LOAD_BANK, 0\n    .set FIR_REMAIN, \\fir_taps\n    .set IIR_REMAIN, \\iir_taps\n    .if FIR_REMAIN == 0 // only IIR terms\n      .set OFFSET_CO, 4 * MAX_FIR_ORDER\n      .set OFFSET_ST, 4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)\n    .else\n      .set OFFSET_CO, 0\n      .set OFFSET_ST, 0\n    .endif", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:7", "text": "str     ST0, [PST, #-4]!\n        str     ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST0, [PSAMP], #4 * MAX_CHANNELS\n        bne     1b\n  .else\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .set LOAD_BANK, 0\n    .set FIR_REMAIN, \\fir_taps\n    .set IIR_REMAIN, \\iir_taps\n    .if FIR_REMAIN == 0 // only IIR terms\n      .set OFFSET_CO, 4 * MAX_FIR_ORDER\n      .set OFFSET_ST, 4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)\n    .else\n      .set OFFSET_CO, 0\n      .set OFFSET_ST, 0\n    .endif\n    .set MUL_REG, LOAD_REG\n    .set COUNTER, 0\n    .rept TOTAL_TAPS + 2\n        // Do load(s)\n     .if FIR_REMAIN != 0 || IIR_REMAIN != 0\n      .if COUNTER == 0\n       .if TOTAL_TAPS > 4\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n       .endif\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n      .elseif COUNTER == 1 && (\\fir_taps & 1) == 0\n       .if TOTAL_TAPS > 4\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n       .endif\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n      .elseif LOAD_BANK == 0\n       .if TOTAL_TAPS > 4\n        .if FIR_REMAIN == 0 && IIR_REMAIN == 1\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n        .else\n        loadd   CO, LOAD_REG, PCO, OFFSET_CO\n        .endif\n       .endif\n       .set LOAD_BANK, 1\n      .else\n       .if FIR_REMAIN == 0 && IIR_REMAIN == 1\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n       .else\n        loadd   ST, LOAD_REG, PST, OFFSET_ST\n        inc     2\n       .endif\n       .set LOAD_BANK, 0\n      .endif\n     .endif\n\n        // Do interleaved multiplies, slightly delayed\n     .if COUNTER >= 2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:8", "text": "load    CO, LOAD_REG, PCO, OFFSET_CO\n        .else\n        loadd   CO, LOAD_REG, PCO, OFFSET_CO\n        .endif\n       .endif\n       .set LOAD_BANK, 1\n      .else\n       .if FIR_REMAIN == 0 && IIR_REMAIN == 1\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n       .else\n        loadd   ST, LOAD_REG, PST, OFFSET_ST\n        inc     2\n       .endif\n       .set LOAD_BANK, 0\n      .endif\n     .endif\n\n        // Do interleaved multiplies, slightly delayed\n     .if COUNTER >= 2\n        multiply MUL_REG, COUNTER > 2, !\\shift_0\n      .set MUL_REG, (MUL_REG + 1) & 3\n     .endif\n     .set COUNTER, COUNTER + 1\n    .endr\n\n        // Post-process the result of the multiplies\n    .if SPILL_SHIFT\n        ldr     SHIFT, [sp, #9*4 + 0*4]\n    .endif\n    .if SPILL_MASK\n        ldr     MASK, [sp, #9*4 + 1*4]\n    .endif\n        ldr     ST2, [PSAMP]\n        subs    I, I, #1\n    .if \\shift_8\n        mov     AC0, AC0, lsr #8\n        orr     AC0, AC0, AC1, lsl #24\n    .elseif !\\shift_0\n        rsb     ST3, SHIFT, #32\n        mov     AC0, AC0, lsr SHIFT\nA       orr     AC0, AC0, AC1, lsl ST3\nT       mov     AC1, AC1, lsl ST3\nT       orr     AC0, AC0, AC1\n    .endif\n    .if \\mask_minus1\n        add     ST3, ST2, AC0\n    .else\n        add     ST2, ST2, AC0\n        and     ST3, ST2, MASK\n        sub     ST2, ST3, AC0\n    .endif\n        str     ST3, [PST, #-4]!\n        str     ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST3, [PSAMP], #4 * MAX_CHANNELS\n        bne     1b\n  .endif\n        b       99f\n\n  .if DEFINED_SHIFT", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:9", "text": "mov     AC0, AC0, lsr SHIFT\nA       orr     AC0, AC0, AC1, lsl ST3\nT       mov     AC1, AC1, lsl ST3\nT       orr     AC0, AC0, AC1\n    .endif\n    .if \\mask_minus1\n        add     ST3, ST2, AC0\n    .else\n        add     ST2, ST2, AC0\n        and     ST3, ST2, MASK\n        sub     ST2, ST3, AC0\n    .endif\n        str     ST3, [PST, #-4]!\n        str     ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST3, [PSAMP], #4 * MAX_CHANNELS\n        bne     1b\n  .endif\n        b       99f\n\n  .if DEFINED_SHIFT\n    .unreq SHIFT\n  .endif\n  .if DEFINED_MASK\n    .unreq MASK\n  .endif\n.endm\n\n.macro switch_on_fir_taps  mask_minus1, shift_0, shift_8, iir_taps\nA       ldr     CO0, [pc, a3, lsl #2]   // firorder is in range 0-(8-iir_taps)\nA       add     pc,  pc,  CO0\nT       tbh     [pc, a3, lsl #1]\n0:\n        branch_pic_label (70f - 0b), (71f - 0b), (72f - 0b), (73f - 0b)\n        branch_pic_label (74f - 0b)\n .if \\iir_taps <= 3\n        branch_pic_label (75f - 0b)\n  .if \\iir_taps <= 2\n        branch_pic_label (76f - 0b)\n   .if \\iir_taps <= 1\n        branch_pic_label (77f - 0b)\n    .if \\iir_taps == 0\n        branch_pic_label (78f - 0b)\n    .endif\n   .endif\n  .endif\n .endif\n70:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 0\n71:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 1\n72:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 2\n73:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 3\n74:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 4\n .if \\iir_taps <= 3\n75:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 5\n  .if \\iir_taps <= 2\n76:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 6\n   .if \\iir_taps <= 1\n77:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 7\n    .if \\iir_taps == 0\n78:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 8\n    .endif", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:10", "text": ".if \\iir_taps == 0\n        branch_pic_label (78f - 0b)\n    .endif\n   .endif\n  .endif\n .endif\n70:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 0\n71:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 1\n72:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 2\n73:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 3\n74:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 4\n .if \\iir_taps <= 3\n75:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 5\n  .if \\iir_taps <= 2\n76:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 6\n   .if \\iir_taps <= 1\n77:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 7\n    .if \\iir_taps == 0\n78:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 8\n    .endif\n   .endif\n  .endif\n .endif\n.endm\n\n.macro switch_on_iir_taps  mask_minus1, shift_0, shift_8\nA       ldr     CO0, [pc, a4, lsl #2]   // irorder is in range 0-4\nA       add     pc,  pc,  CO0\nT       tbh     [pc, a4, lsl #1]\n0:\n        branch_pic_label (60f - 0b), (61f - 0b), (62f - 0b), (63f - 0b)\n        branch_pic_label (64f - 0b)\n60:     switch_on_fir_taps  \\mask_minus1, \\shift_0, \\shift_8, 0\n61:     switch_on_fir_taps  \\mask_minus1, \\shift_0, \\shift_8, 1\n62:     switch_on_fir_taps  \\mask_minus1, \\shift_0, \\shift_8, 2\n63:     switch_on_fir_taps  \\mask_minus1, \\shift_0, \\shift_8, 3\n64:     switch_on_fir_taps  \\mask_minus1, \\shift_0, \\shift_8, 4\n.endm\n\n/* void ff_mlp_filter_channel_arm(int32_t *state, const int32_t *coeff,\n *                                int firorder, int iirorder,\n *                                unsigned int filter_shift, int32_t mask,\n *                                int blocksize, int32_t *sample_buffer);\n */\nfunction ff_mlp_filter_channel_arm, export=1\n        push    {v1-fp,lr}\n        add     v1, sp, #9*4 // point at arguments on stack\n        ldm     v1, {ST0,ST1,I,PSAMP}\n        cmp     ST1, #-1\n        bne     30f\n        movs    ST2, ST0, lsl #29 // shift is in range 0-15; we want to special-case 0 and 8\n        bne     20f\n        bcs     10f\n        switch_on_iir_taps 1, 1, 0\n10:     switch_on_iir_taps 1, 0, 1\n20:     switch_on_iir_taps 1, 0, 0\n30:     movs    ST2, ST0, lsl #29 // shift is in range 0-15; we want to special-case 0 and 8\n        bne     50f\n        bcs     40f\n        switch_on_iir_taps 0, 1, 0", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:11", "text": "*                                int firorder, int iirorder,\n *                                unsigned int filter_shift, int32_t mask,\n *                                int blocksize, int32_t *sample_buffer);\n */\nfunction ff_mlp_filter_channel_arm, export=1\n        push    {v1-fp,lr}\n        add     v1, sp, #9*4 // point at arguments on stack\n        ldm     v1, {ST0,ST1,I,PSAMP}\n        cmp     ST1, #-1\n        bne     30f\n        movs    ST2, ST0, lsl #29 // shift is in range 0-15; we want to special-case 0 and 8\n        bne     20f\n        bcs     10f\n        switch_on_iir_taps 1, 1, 0\n10:     switch_on_iir_taps 1, 0, 1\n20:     switch_on_iir_taps 1, 0, 0\n30:     movs    ST2, ST0, lsl #29 // shift is in range 0-15; we want to special-case 0 and 8\n        bne     50f\n        bcs     40f\n        switch_on_iir_taps 0, 1, 0\n40:     switch_on_iir_taps 0, 0, 1\n50:     switch_on_iir_taps 0, 0, 0\n99:     pop     {v1-fp,pc}\nendfunc\n\n        .unreq  PST\n        .unreq  PCO\n        .unreq  AC0\n        .unreq  AC1\n        .unreq  CO0\n        .unreq  CO1\n        .unreq  CO2\n        .unreq  CO3\n        .unreq  ST0\n        .unreq  ST1\n        .unreq  ST2\n        .unreq  ST3\n        .unreq  I\n        .unreq  PSAMP\n\n/********************************************************************/\n\nPSA     .req    a1 // samples\nPCO     .req    a2 // coeffs\nPBL     .req    a3 // bypassed_lsbs\nINDEX   .req    a4\nCO0     .req    v1\nCO1     .req    v2\nCO2     .req    v3\nCO3     .req    v4\nSA0     .req    v5\nSA1     .req    v6\nSA2     .req    sl\nSA3     .req    fp\nAC0     .req    ip\nAC1     .req    lr\nNOISE   .req    SA0\nLSB     .req    SA1\nDCH     .req    SA2 // dest_ch\nMASK    .req    SA3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:12", "text": "/********************************************************************/\n\nPSA     .req    a1 // samples\nPCO     .req    a2 // coeffs\nPBL     .req    a3 // bypassed_lsbs\nINDEX   .req    a4\nCO0     .req    v1\nCO1     .req    v2\nCO2     .req    v3\nCO3     .req    v4\nSA0     .req    v5\nSA1     .req    v6\nSA2     .req    sl\nSA3     .req    fp\nAC0     .req    ip\nAC1     .req    lr\nNOISE   .req    SA0\nLSB     .req    SA1\nDCH     .req    SA2 // dest_ch\nMASK    .req    SA3\n\n    // INDEX is used as follows:\n    // bits 0..6   index2 (values up to 17, but wider so that we can\n    //               add to index field without needing to mask)\n    // bits 7..14  i (values up to 160)\n    // bit 15      underflow detect for i\n    // bits 25..31 (if access_unit_size_pow2 == 128)  \\ index\n    // bits 26..31 (if access_unit_size_pow2 == 64)   /\n\n.macro implement_rematrix  shift, index_mask, mask_minus1, maxchan\n    .if \\maxchan == 1\n        // We can just leave the coefficients in registers in this case\n        ldrd    CO0, CO1, [PCO]\n    .endif\n1:\n    .if \\maxchan == 1\n        ldrd    SA0, SA1, [PSA]\n        smull   AC0, AC1, CO0, SA0\n    .elseif \\maxchan == 5\n        ldr     CO0, [PCO, #0]\n        ldr     SA0, [PSA, #0]\n        ldr     CO1, [PCO, #4]\n        ldr     SA1, [PSA, #4]\n        ldrd    CO2, CO3, [PCO, #8]\n        smull   AC0, AC1, CO0, SA0\n        ldrd    SA2, SA3, [PSA, #8]\n        smlal   AC0, AC1, CO1, SA1\n        ldrd    CO0, CO1, [PCO, #16]\n        smlal   AC0, AC1, CO2, SA2\n        ldrd    SA0, SA1, [PSA, #16]\n        smlal   AC0, AC1, CO3, SA3\n        smlal   AC0, AC1, CO0, SA0\n    .else // \\maxchan == 7\n        ldr     CO2, [PCO, #0]\n        ldr     SA2, [PSA, #0]\n        ldr     CO3, [PCO, #4]\n        ldr     SA3, [PSA, #4]\n        ldrd    CO0, CO1, [PCO, #8]\n        smull   AC0, AC1, CO2, SA2\n        ldrd    SA0, SA1, [PSA, #8]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:13", "text": "ldr     SA0, [PSA, #0]\n        ldr     CO1, [PCO, #4]\n        ldr     SA1, [PSA, #4]\n        ldrd    CO2, CO3, [PCO, #8]\n        smull   AC0, AC1, CO0, SA0\n        ldrd    SA2, SA3, [PSA, #8]\n        smlal   AC0, AC1, CO1, SA1\n        ldrd    CO0, CO1, [PCO, #16]\n        smlal   AC0, AC1, CO2, SA2\n        ldrd    SA0, SA1, [PSA, #16]\n        smlal   AC0, AC1, CO3, SA3\n        smlal   AC0, AC1, CO0, SA0\n    .else // \\maxchan == 7\n        ldr     CO2, [PCO, #0]\n        ldr     SA2, [PSA, #0]\n        ldr     CO3, [PCO, #4]\n        ldr     SA3, [PSA, #4]\n        ldrd    CO0, CO1, [PCO, #8]\n        smull   AC0, AC1, CO2, SA2\n        ldrd    SA0, SA1, [PSA, #8]\n        smlal   AC0, AC1, CO3, SA3\n        ldrd    CO2, CO3, [PCO, #16]\n        smlal   AC0, AC1, CO0, SA0\n        ldrd    SA2, SA3, [PSA, #16]\n        smlal   AC0, AC1, CO1, SA1\n        ldrd    CO0, CO1, [PCO, #24]\n        smlal   AC0, AC1, CO2, SA2\n        ldrd    SA0, SA1, [PSA, #24]\n        smlal   AC0, AC1, CO3, SA3\n        smlal   AC0, AC1, CO0, SA0\n    .endif\n        ldm     sp, {NOISE, DCH, MASK}\n        smlal   AC0, AC1, CO1, SA1\n    .if \\shift != 0\n      .if \\index_mask == 63\n        add     NOISE, NOISE, INDEX, lsr #32-6\n        ldrb    LSB, [PBL], #MAX_CHANNELS\n        ldrsb   NOISE, [NOISE]\n        add     INDEX, INDEX, INDEX, lsl #32-6\n      .else // \\index_mask == 127\n        add     NOISE, NOISE, INDEX, lsr #32-7\n        ldrb    LSB, [PBL], #MAX_CHANNELS\n        ldrsb   NOISE, [NOISE]\n        add     INDEX, INDEX, INDEX, lsl #32-7\n      .endif\n        sub     INDEX, INDEX, #1<<7\n        adds    AC0, AC0, NOISE, lsl #\\shift + 7\n        adc     AC1, AC1, NOISE, asr #31\n    .else\n        ldrb    LSB, [PBL], #MAX_CHANNELS\n        sub     INDEX, INDEX, #1<<7\n    .endif\n        add     PSA, PSA, #MAX_CHANNELS*4\n        mov     AC0, AC0, lsr #14\n        orr     AC0, AC0, AC1, lsl #18\n    .if !\\mask_minus1\n        and     AC0, AC0, MASK\n    .endif\n        add     AC0, AC0, LSB\n        tst     INDEX, #1<<15", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:14", "text": "add     NOISE, NOISE, INDEX, lsr #32-7\n        ldrb    LSB, [PBL], #MAX_CHANNELS\n        ldrsb   NOISE, [NOISE]\n        add     INDEX, INDEX, INDEX, lsl #32-7\n      .endif\n        sub     INDEX, INDEX, #1<<7\n        adds    AC0, AC0, NOISE, lsl #\\shift + 7\n        adc     AC1, AC1, NOISE, asr #31\n    .else\n        ldrb    LSB, [PBL], #MAX_CHANNELS\n        sub     INDEX, INDEX, #1<<7\n    .endif\n        add     PSA, PSA, #MAX_CHANNELS*4\n        mov     AC0, AC0, lsr #14\n        orr     AC0, AC0, AC1, lsl #18\n    .if !\\mask_minus1\n        and     AC0, AC0, MASK\n    .endif\n        add     AC0, AC0, LSB\n        tst     INDEX, #1<<15\n        str     AC0, [PSA, DCH, lsl #2]  // DCH is precompensated for the early increment of PSA\n        beq     1b\n        b       98f\n.endm\n\n.macro switch_on_maxchan  shift, index_mask, mask_minus1\n        cmp     v4, #5\n        blo     51f\n        beq     50f\n        implement_rematrix  \\shift, \\index_mask, \\mask_minus1, 7\n50:     implement_rematrix  \\shift, \\index_mask, \\mask_minus1, 5\n51:     implement_rematrix  \\shift, \\index_mask, \\mask_minus1, 1\n.endm\n\n.macro switch_on_mask  shift, index_mask\n        cmp     sl, #-1\n        bne     40f\n        switch_on_maxchan  \\shift, \\index_mask, 1\n40:     switch_on_maxchan  \\shift, \\index_mask, 0\n.endm\n\n.macro switch_on_au_size  shift\n  .if \\shift == 0\n        switch_on_mask  \\shift, undefined\n  .else\n        teq     v6, #64\n        bne     30f\n        orr     INDEX, INDEX, v1, lsl #32-6\n        switch_on_mask  \\shift, 63\n30:     orr     INDEX, INDEX, v1, lsl #32-7\n        switch_on_mask  \\shift, 127\n  .endif\n.endm\n\n/* void ff_mlp_rematrix_channel_arm(int32_t *samples,\n *                                  const int32_t *coeffs,\n *                                  const uint8_t *bypassed_lsbs,\n *                                  const int8_t *noise_buffer,\n *                                  int index,\n *                                  unsigned int dest_ch,", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:15", "text": ".macro switch_on_au_size  shift\n  .if \\shift == 0\n        switch_on_mask  \\shift, undefined\n  .else\n        teq     v6, #64\n        bne     30f\n        orr     INDEX, INDEX, v1, lsl #32-6\n        switch_on_mask  \\shift, 63\n30:     orr     INDEX, INDEX, v1, lsl #32-7\n        switch_on_mask  \\shift, 127\n  .endif\n.endm\n\n/* void ff_mlp_rematrix_channel_arm(int32_t *samples,\n *                                  const int32_t *coeffs,\n *                                  const uint8_t *bypassed_lsbs,\n *                                  const int8_t *noise_buffer,\n *                                  int index,\n *                                  unsigned int dest_ch,\n *                                  uint16_t blockpos,\n *                                  unsigned int maxchan,\n *                                  int matrix_noise_shift,\n *                                  int access_unit_size_pow2,\n *                                  int32_t mask);\n */\nfunction ff_mlp_rematrix_channel_arm, export=1\n        push    {v1-fp,lr}\n        add     v1, sp, #9*4 // point at arguments on stack\n        ldm     v1, {v1-sl}\n        teq     v4, #1\n        itt     ne\n        teqne   v4, #5\n        teqne   v4, #7\n        bne     99f\n        teq     v6, #64\n        it      ne\n        teqne   v6, #128\n        bne     99f\n        sub     v2, v2, #MAX_CHANNELS\n        push    {a4,v2,sl}          // initialise NOISE,DCH,MASK; make sp dword-aligned\n        movs    INDEX, v3, lsl #7\n        beq     98f                 // just in case, do nothing if blockpos = 0\n        subs    INDEX, INDEX, #1<<7 // offset by 1 so we borrow at the right time\n        adc     lr, v1, v1          // calculate index2 (C was set by preceding subs)\n        orr     INDEX, INDEX, lr\n        // Switch on matrix_noise_shift: values 0 and 1 are\n        // disproportionately common so do those in a form the branch\n        // predictor can accelerate. Values can only go up to 15.\n        cmp     v5, #1\n        beq     11f\n        blo     10f\nA       ldr     v5,  [pc,  v5,  lsl #2]\nA       add     pc,  pc,  v5\nT       tbh     [pc, v5, lsl #1]\n0:\n        branch_pic_label          0,          0, (12f - 0b), (13f - 0b)\n        branch_pic_label (14f - 0b), (15f - 0b), (16f - 0b), (17f - 0b)\n        branch_pic_label (18f - 0b), (19f - 0b), (20f - 0b), (21f - 0b)\n        branch_pic_label (22f - 0b), (23f - 0b), (24f - 0b), (25f - 0b)", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:16", "text": "push    {a4,v2,sl}          // initialise NOISE,DCH,MASK; make sp dword-aligned\n        movs    INDEX, v3, lsl #7\n        beq     98f                 // just in case, do nothing if blockpos = 0\n        subs    INDEX, INDEX, #1<<7 // offset by 1 so we borrow at the right time\n        adc     lr, v1, v1          // calculate index2 (C was set by preceding subs)\n        orr     INDEX, INDEX, lr\n        // Switch on matrix_noise_shift: values 0 and 1 are\n        // disproportionately common so do those in a form the branch\n        // predictor can accelerate. Values can only go up to 15.\n        cmp     v5, #1\n        beq     11f\n        blo     10f\nA       ldr     v5,  [pc,  v5,  lsl #2]\nA       add     pc,  pc,  v5\nT       tbh     [pc, v5, lsl #1]\n0:\n        branch_pic_label          0,          0, (12f - 0b), (13f - 0b)\n        branch_pic_label (14f - 0b), (15f - 0b), (16f - 0b), (17f - 0b)\n        branch_pic_label (18f - 0b), (19f - 0b), (20f - 0b), (21f - 0b)\n        branch_pic_label (22f - 0b), (23f - 0b), (24f - 0b), (25f - 0b)\n10:     switch_on_au_size  0\n11:     switch_on_au_size  1\n12:     switch_on_au_size  2\n13:     switch_on_au_size  3\n14:     switch_on_au_size  4\n15:     switch_on_au_size  5\n16:     switch_on_au_size  6\n17:     switch_on_au_size  7\n18:     switch_on_au_size  8\n19:     switch_on_au_size  9\n20:     switch_on_au_size  10\n21:     switch_on_au_size  11\n22:     switch_on_au_size  12\n23:     switch_on_au_size  13\n24:     switch_on_au_size  14\n25:     switch_on_au_size  15\n\n98:     add     sp, sp, #3*4\n        pop     {v1-fp,pc}\n99:     // Can't handle these parameters, drop back to C\n        pop     {v1-fp,lr}\n        b       X(ff_mlp_rematrix_channel)\nendfunc\n\n        .unreq  PSA\n        .unreq  PCO\n        .unreq  PBL\n        .unreq  INDEX\n        .unreq  CO0\n        .unreq  CO1\n        .unreq  CO2\n        .unreq  CO3\n        .unreq  SA0\n        .unreq  SA1\n        .unreq  SA2\n        .unreq  SA3\n        .unreq  AC0\n        .unreq  AC1\n        .unreq  NOISE\n        .unreq  LSB", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:17", "text": "pop     {v1-fp,lr}\n        b       X(ff_mlp_rematrix_channel)\nendfunc\n\n        .unreq  PSA\n        .unreq  PCO\n        .unreq  PBL\n        .unreq  INDEX\n        .unreq  CO0\n        .unreq  CO1\n        .unreq  CO2\n        .unreq  CO3\n        .unreq  SA0\n        .unreq  SA1\n        .unreq  SA2\n        .unreq  SA3\n        .unreq  AC0\n        .unreq  AC1\n        .unreq  NOISE\n        .unreq  LSB\n        .unreq  DCH\n        .unreq  MASK", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 641, "line_end": 662}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:6", "text": ".if TOTAL_TAPS <= 4\n    .set OFFSET_CO, 0\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .rept \\fir_taps\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n      .set LOAD_REG, (LOAD_REG + 1) & 3\n      .set OFFSET_CO, OFFSET_CO + 4\n    .endr\n    .set OFFSET_CO, 4 * MAX_FIR_ORDER\n    .rept \\iir_taps\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n      .set LOAD_REG, (LOAD_REG + 1) & 3\n      .set OFFSET_CO, OFFSET_CO + 4\n    .endr\n  .endif\n\n        // Move mask/shift to final positions if necessary\n        // Need to do this after preloading, because in some cases we\n        // reuse the coefficient pointer register\n  .if SHUFFLE_SHIFT\n        mov     SHIFT, ST0\n  .endif\n  .if SHUFFLE_MASK\n        mov     MASK, ST1\n  .endif\n\n        // Begin loop\n01:\n  .if TOTAL_TAPS == 0\n        // Things simplify a lot in this case\n        // In fact this could be pipelined further if it's worth it...\n        ldr     ST0, [PSAMP]\n        subs    I, I, #1\n    .if !\\mask_minus1\n        and     ST0, ST0, MASK\n    .endif\n        str     ST0, [PST, #-4]!\n        str     ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST0, [PSAMP], #4 * MAX_CHANNELS\n        bne     01b\n  .else\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .set LOAD_BANK, 0\n    .set FIR_REMAIN, \\fir_taps\n    .set IIR_REMAIN, \\iir_taps\n    .if FIR_REMAIN == 0 // only IIR terms\n      .set OFFSET_CO, 4 * MAX_FIR_ORDER\n      .set OFFSET_ST, 4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)\n    .else\n      .set OFFSET_CO, 0\n      .set OFFSET_ST, 0\n    .endif", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:7", "text": "str     ST0, [PST, #-4]!\n        str     ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST0, [PSAMP], #4 * MAX_CHANNELS\n        bne     01b\n  .else\n    .if \\fir_taps & 1\n      .set LOAD_REG, 1\n    .else\n      .set LOAD_REG, 0\n    .endif\n    .set LOAD_BANK, 0\n    .set FIR_REMAIN, \\fir_taps\n    .set IIR_REMAIN, \\iir_taps\n    .if FIR_REMAIN == 0 // only IIR terms\n      .set OFFSET_CO, 4 * MAX_FIR_ORDER\n      .set OFFSET_ST, 4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)\n    .else\n      .set OFFSET_CO, 0\n      .set OFFSET_ST, 0\n    .endif\n    .set MUL_REG, LOAD_REG\n    .set COUNTER, 0\n    .rept TOTAL_TAPS + 2\n        // Do load(s)\n     .if FIR_REMAIN != 0 || IIR_REMAIN != 0\n      .if COUNTER == 0\n       .if TOTAL_TAPS > 4\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n       .endif\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n      .elseif COUNTER == 1 && (\\fir_taps & 1) == 0\n       .if TOTAL_TAPS > 4\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n       .endif\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n      .elseif LOAD_BANK == 0\n       .if TOTAL_TAPS > 4\n        .if FIR_REMAIN == 0 && IIR_REMAIN == 1\n        load    CO, LOAD_REG, PCO, OFFSET_CO\n        .else\n        loadd   CO, LOAD_REG, PCO, OFFSET_CO\n        .endif\n       .endif\n       .set LOAD_BANK, 1\n      .else\n       .if FIR_REMAIN == 0 && IIR_REMAIN == 1\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n       .else\n        loadd   ST, LOAD_REG, PST, OFFSET_ST\n        inc     2\n       .endif\n       .set LOAD_BANK, 0\n      .endif\n     .endif\n\n        // Do interleaved multiplies, slightly delayed\n     .if COUNTER >= 2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:8", "text": "load    CO, LOAD_REG, PCO, OFFSET_CO\n        .else\n        loadd   CO, LOAD_REG, PCO, OFFSET_CO\n        .endif\n       .endif\n       .set LOAD_BANK, 1\n      .else\n       .if FIR_REMAIN == 0 && IIR_REMAIN == 1\n        load    ST, LOAD_REG, PST, OFFSET_ST\n        inc     1\n       .else\n        loadd   ST, LOAD_REG, PST, OFFSET_ST\n        inc     2\n       .endif\n       .set LOAD_BANK, 0\n      .endif\n     .endif\n\n        // Do interleaved multiplies, slightly delayed\n     .if COUNTER >= 2\n        multiply MUL_REG, COUNTER > 2, !\\shift_0\n      .set MUL_REG, (MUL_REG + 1) & 3\n     .endif\n     .set COUNTER, COUNTER + 1\n    .endr\n\n        // Post-process the result of the multiplies\n    .if SPILL_SHIFT\n        ldr     SHIFT, [sp, #9*4 + 0*4]\n    .endif\n    .if SPILL_MASK\n        ldr     MASK, [sp, #9*4 + 1*4]\n    .endif\n        ldr     ST2, [PSAMP]\n        subs    I, I, #1\n    .if \\shift_8\n        mov     AC0, AC0, lsr #8\n        orr     AC0, AC0, AC1, lsl #24\n    .elseif !\\shift_0\n        rsb     ST3, SHIFT, #32\n        mov     AC0, AC0, lsr SHIFT\nA       orr     AC0, AC0, AC1, lsl ST3\nT       mov     AC1, AC1, lsl ST3\nT       orr     AC0, AC0, AC1\n    .endif\n    .if \\mask_minus1\n        add     ST3, ST2, AC0\n    .else\n        add     ST2, ST2, AC0\n        and     ST3, ST2, MASK\n        sub     ST2, ST3, AC0\n    .endif\n        str     ST3, [PST, #-4]!\n        str     ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST3, [PSAMP], #4 * MAX_CHANNELS\n        bne     01b\n  .endif\n        b       99f\n\n  .if DEFINED_SHIFT", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv5te.S:9", "text": "mov     AC0, AC0, lsr SHIFT\nA       orr     AC0, AC0, AC1, lsl ST3\nT       mov     AC1, AC1, lsl ST3\nT       orr     AC0, AC0, AC1\n    .endif\n    .if \\mask_minus1\n        add     ST3, ST2, AC0\n    .else\n        add     ST2, ST2, AC0\n        and     ST3, ST2, MASK\n        sub     ST2, ST3, AC0\n    .endif\n        str     ST3, [PST, #-4]!\n        str     ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]\n        str     ST3, [PSAMP], #4 * MAX_CHANNELS\n        bne     01b\n  .endif\n        b       99f\n\n  .if DEFINED_SHIFT\n    .unreq SHIFT\n  .endif\n  .if DEFINED_MASK\n    .unreq MASK\n  .endif\n.endm\n\n.macro switch_on_fir_taps  mask_minus1, shift_0, shift_8, iir_taps\nA       ldr     CO0, [pc, a3, lsl #2]   // firorder is in range 0-(8-iir_taps)\nA       add     pc,  pc,  CO0\nT       tbh     [pc, a3, lsl #1]\n0:\n        branch_pic_label (70f - 0b), (71f - 0b), (72f - 0b), (73f - 0b)\n        branch_pic_label (74f - 0b)\n .if \\iir_taps <= 3\n        branch_pic_label (75f - 0b)\n  .if \\iir_taps <= 2\n        branch_pic_label (76f - 0b)\n   .if \\iir_taps <= 1\n        branch_pic_label (77f - 0b)\n    .if \\iir_taps == 0\n        branch_pic_label (78f - 0b)\n    .endif\n   .endif\n  .endif\n .endif\n70:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 0\n71:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 1\n72:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 2\n73:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 3\n74:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 4\n .if \\iir_taps <= 3\n75:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 5\n  .if \\iir_taps <= 2\n76:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 6\n   .if \\iir_taps <= 1\n77:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 7\n    .if \\iir_taps == 0\n78:     implement_filter  \\mask_minus1, \\shift_0, \\shift_8, \\iir_taps, 8\n    .endif", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/mlpdsp_armv5te.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:1", "text": "/*\n * Copyright (c) 2014 RISC OS Open Ltd\n * Author: Ben Avison <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro loadregoffsh2  group, index, base, offgroup, offindex\n       .altmacro\n       loadregoffsh2_ \\group, %(\\index), \\base, \\offgroup, %(\\offindex)\n       .noaltmacro\n.endm\n\n.macro loadregoffsh2_ group, index, base, offgroup, offindex\n        ldr     \\group\\index, [\\base, \\offgroup\\offindex, lsl #2]\n.endm\n\n.macro eorlslreg  check, data, group, index\n        .altmacro\n        eorlslreg_ \\check, \\data, \\group, %(\\index)\n        .noaltmacro\n.endm\n\n.macro eorlslreg_ check, data, group, index\n        eor     \\check, \\check, \\data, lsl \\group\\index\n.endm\n\n.macro decr_modulo var, by, modulus\n .set \\var, \\var - \\by\n .if \\var == 0\n  .set \\var, \\modulus\n .endif\n.endm\n\n .macro load_group1  size, channels, r0, r1, r2, r3, pointer_dead=0\n  .if \\size == 2\n        ldrd    \\r0, \\r1, [IN], #(\\size + 8 - \\channels) * 4\n  .else // size == 4\n   .if IDX1 > 4 || \\channels==8\n        ldm     IN!, {\\r0, \\r1, \\r2, \\r3}\n   .else\n        ldm     IN, {\\r0, \\r1, \\r2, \\r3}\n    .if !\\pointer_dead\n        add     IN, IN, #(4 + 8 - \\channels) * 4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:2", "text": "eor     \\check, \\check, \\data, lsl \\group\\index\n.endm\n\n.macro decr_modulo var, by, modulus\n .set \\var, \\var - \\by\n .if \\var == 0\n  .set \\var, \\modulus\n .endif\n.endm\n\n .macro load_group1  size, channels, r0, r1, r2, r3, pointer_dead=0\n  .if \\size == 2\n        ldrd    \\r0, \\r1, [IN], #(\\size + 8 - \\channels) * 4\n  .else // size == 4\n   .if IDX1 > 4 || \\channels==8\n        ldm     IN!, {\\r0, \\r1, \\r2, \\r3}\n   .else\n        ldm     IN, {\\r0, \\r1, \\r2, \\r3}\n    .if !\\pointer_dead\n        add     IN, IN, #(4 + 8 - \\channels) * 4\n     .endif\n   .endif\n  .endif\n        decr_modulo IDX1, \\size, \\channels\n .endm\n\n .macro load_group2  size, channels, r0, r1, r2, r3, pointer_dead=0\n  .if \\size == 2\n   .if IDX1 > 2\n        ldm     IN!, {\\r2, \\r3}\n   .else\n//A   .ifc \\r2, ip\n//A    .if \\pointer_dead\n//A       ldm     IN, {\\r2, \\r3}\n//A    .else\n//A       ldr     \\r2, [IN], #4\n//A       ldr     \\r3, [IN], #(\\size - 1 + 8 - \\channels) * 4\n//A    .endif\n//A   .else\n        ldrd    \\r2, \\r3, [IN], #(\\size + 8 - \\channels) * 4\n//A   .endif\n   .endif\n  .endif\n        decr_modulo IDX1, \\size, \\channels\n .endm\n\n.macro implement_pack  inorder, channels, shift\n.if \\inorder\n.ifc \\shift, mixed\n\nCHECK   .req    a1\nCOUNT   .req    a2\nIN      .req    a3\nOUT     .req    a4\nDAT0    .req    v1\nDAT1    .req    v2\nDAT2    .req    v3\nDAT3    .req    v4\nSHIFT0  .req    v5\nSHIFT1  .req    v6", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:3", "text": "//A   .endif\n   .endif\n  .endif\n        decr_modulo IDX1, \\size, \\channels\n .endm\n\n.macro implement_pack  inorder, channels, shift\n.if \\inorder\n.ifc \\shift, mixed\n\nCHECK   .req    a1\nCOUNT   .req    a2\nIN      .req    a3\nOUT     .req    a4\nDAT0    .req    v1\nDAT1    .req    v2\nDAT2    .req    v3\nDAT3    .req    v4\nSHIFT0  .req    v5\nSHIFT1  .req    v6\nSHIFT2  .req    sl\nSHIFT3  .req    fp\nSHIFT4  .req    ip\nSHIFT5  .req    lr\n\n .macro output4words\n  .set SIZE_GROUP1, IDX1\n  .if SIZE_GROUP1 > 4\n   .set SIZE_GROUP1, 4\n  .endif\n  .set SIZE_GROUP2, 4 - SIZE_GROUP1\n        load_group1  SIZE_GROUP1, \\channels, DAT0, DAT1, DAT2, DAT3\n        load_group2  SIZE_GROUP2, \\channels, DAT0, DAT1, DAT2, DAT3\n   .if \\channels == 2\n        lsl     DAT0, SHIFT0\n        lsl     DAT1, SHIFT1\n        lsl     DAT2, SHIFT0\n        lsl     DAT3, SHIFT1\n   .elseif \\channels == 6\n    .if IDX2 == 6\n        lsl     DAT0, SHIFT0\n        lsl     DAT1, SHIFT1\n        lsl     DAT2, SHIFT2\n        lsl     DAT3, SHIFT3\n    .elseif IDX2 == 2\n        lsl     DAT0, SHIFT4\n        lsl     DAT1, SHIFT5\n        lsl     DAT2, SHIFT0\n        lsl     DAT3, SHIFT1\n    .else // IDX2 == 4\n        lsl     DAT0, SHIFT2\n        lsl     DAT1, SHIFT3\n        lsl     DAT2, SHIFT4\n        lsl     DAT3, SHIFT5\n    .endif\n   .elseif \\channels == 8\n    .if IDX2 == 8\n        uxtb    SHIFT0, SHIFT4, ror #0\n        uxtb    SHIFT1, SHIFT4, ror #8\n        uxtb    SHIFT2, SHIFT4, ror #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:4", "text": "lsl     DAT0, SHIFT0\n        lsl     DAT1, SHIFT1\n        lsl     DAT2, SHIFT2\n        lsl     DAT3, SHIFT3\n    .elseif IDX2 == 2\n        lsl     DAT0, SHIFT4\n        lsl     DAT1, SHIFT5\n        lsl     DAT2, SHIFT0\n        lsl     DAT3, SHIFT1\n    .else // IDX2 == 4\n        lsl     DAT0, SHIFT2\n        lsl     DAT1, SHIFT3\n        lsl     DAT2, SHIFT4\n        lsl     DAT3, SHIFT5\n    .endif\n   .elseif \\channels == 8\n    .if IDX2 == 8\n        uxtb    SHIFT0, SHIFT4, ror #0\n        uxtb    SHIFT1, SHIFT4, ror #8\n        uxtb    SHIFT2, SHIFT4, ror #16\n        uxtb    SHIFT3, SHIFT4, ror #24\n    .else\n        uxtb    SHIFT0, SHIFT5, ror #0\n        uxtb    SHIFT1, SHIFT5, ror #8\n        uxtb    SHIFT2, SHIFT5, ror #16\n        uxtb    SHIFT3, SHIFT5, ror #24\n    .endif\n        lsl     DAT0, SHIFT0\n        lsl     DAT1, SHIFT1\n        lsl     DAT2, SHIFT2\n        lsl     DAT3, SHIFT3\n   .endif\n        eor     CHECK, CHECK, DAT0, lsr #8 - (\\channels - IDX2)\n        eor     CHECK, CHECK, DAT1, lsr #7 - (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n        eor     CHECK, CHECK, DAT2, lsr #8 - (\\channels - IDX2)\n        eor     CHECK, CHECK, DAT3, lsr #7 - (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n        stm     OUT!, {DAT0 - DAT3}\n .endm\n\n .set WORDS_PER_LOOP, \\channels  // calculate LCM (channels, 4)\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .set WORDS_PER_LOOP, WORDS_PER_LOOP * 4\n .set SAMPLES_PER_LOOP, WORDS_PER_LOOP / \\channels\n\nfunction ff_mlp_pack_output_inorder_\\channels\\()ch_mixedshift_armv6, export=1\n .if SAMPLES_PER_LOOP > 1\n        tst     COUNT, #SAMPLES_PER_LOOP - 1  // always seems to be in practice\n        it      ne\n        bne     X(ff_mlp_pack_output)         // but just in case, branch to C implementation if not\n .endif\n        teq     COUNT, #0\n        it      eq\n        bxeq    lr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:5", "text": ".set WORDS_PER_LOOP, \\channels  // calculate LCM (channels, 4)\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .set WORDS_PER_LOOP, WORDS_PER_LOOP * 4\n .set SAMPLES_PER_LOOP, WORDS_PER_LOOP / \\channels\n\nfunction ff_mlp_pack_output_inorder_\\channels\\()ch_mixedshift_armv6, export=1\n .if SAMPLES_PER_LOOP > 1\n        tst     COUNT, #SAMPLES_PER_LOOP - 1  // always seems to be in practice\n        it      ne\n        bne     X(ff_mlp_pack_output)         // but just in case, branch to C implementation if not\n .endif\n        teq     COUNT, #0\n        it      eq\n        bxeq    lr\n        push    {v1-v6,sl,fp,lr}\n        ldr     SHIFT0, [sp, #(9+1)*4]  // get output_shift from stack\n        ldr     SHIFT1, =0x08080808\n        ldr     SHIFT4, [SHIFT0]\n .if \\channels == 2\n        uadd8   SHIFT4, SHIFT4, SHIFT1 // increase all shifts by 8\n        uxtb    SHIFT0, SHIFT4, ror #0\n        uxtb    SHIFT1, SHIFT4, ror #8\n .else\n        ldr     SHIFT5, [SHIFT0, #4]\n        uadd8   SHIFT4, SHIFT4, SHIFT1 // increase all shifts by 8\n        uadd8   SHIFT5, SHIFT5, SHIFT1\n  .if \\channels == 6\n        uxtb    SHIFT0, SHIFT4, ror #0\n        uxtb    SHIFT1, SHIFT4, ror #8\n        uxtb    SHIFT2, SHIFT4, ror #16\n        uxtb    SHIFT3, SHIFT4, ror #24\n        uxtb    SHIFT4, SHIFT5, ror #0\n        uxtb    SHIFT5, SHIFT5, ror #8\n  .endif\n .endif\n .set IDX1, \\channels\n .set IDX2, \\channels\n0:\n .rept WORDS_PER_LOOP / 4\n        output4words\n .endr\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        bne     0b\n        pop     {v1-v6,sl,fp,pc}\n        .ltorg\nendfunc\n .purgem output4words\n\n        .unreq  CHECK\n        .unreq  COUNT\n        .unreq  IN\n        .unreq  OUT\n        .unreq  DAT0\n        .unreq  DAT1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:6", "text": ".endif\n .set IDX1, \\channels\n .set IDX2, \\channels\n0:\n .rept WORDS_PER_LOOP / 4\n        output4words\n .endr\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        bne     0b\n        pop     {v1-v6,sl,fp,pc}\n        .ltorg\nendfunc\n .purgem output4words\n\n        .unreq  CHECK\n        .unreq  COUNT\n        .unreq  IN\n        .unreq  OUT\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  SHIFT0\n        .unreq  SHIFT1\n        .unreq  SHIFT2\n        .unreq  SHIFT3\n        .unreq  SHIFT4\n        .unreq  SHIFT5\n\n.else // not mixed\n\nCHECK   .req    a1\nCOUNT   .req    a2\nIN      .req    a3\nOUT     .req    a4\nDAT0    .req    v1\nDAT1    .req    v2\nDAT2    .req    v3\nDAT3    .req    v4\nDAT4    .req    v5\nDAT5    .req    v6\nDAT6    .req    sl // use these rather than the otherwise unused\nDAT7    .req    fp // ip and lr so that we can load them using LDRD\n\n .macro output4words  tail, head, r0, r1, r2, r3, r4, r5, r6, r7, pointer_dead=0\n  .if \\head\n   .set SIZE_GROUP1, IDX1\n   .if SIZE_GROUP1 > 4\n    .set SIZE_GROUP1, 4\n   .endif\n   .set SIZE_GROUP2, 4 - SIZE_GROUP1\n        load_group1  SIZE_GROUP1, \\channels, \\r0, \\r1, \\r2, \\r3, \\pointer_dead\n  .endif\n  .if \\tail\n        eor     CHECK, CHECK, \\r4, lsr #8 - (\\channels - IDX2)\n        eor     CHECK, CHECK, \\r5, lsr #7 - (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n  .endif\n  .if \\head\n        load_group2  SIZE_GROUP2, \\channels, \\r0, \\r1, \\r2, \\r3, \\pointer_dead", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:7", "text": "DAT5    .req    v6\nDAT6    .req    sl // use these rather than the otherwise unused\nDAT7    .req    fp // ip and lr so that we can load them using LDRD\n\n .macro output4words  tail, head, r0, r1, r2, r3, r4, r5, r6, r7, pointer_dead=0\n  .if \\head\n   .set SIZE_GROUP1, IDX1\n   .if SIZE_GROUP1 > 4\n    .set SIZE_GROUP1, 4\n   .endif\n   .set SIZE_GROUP2, 4 - SIZE_GROUP1\n        load_group1  SIZE_GROUP1, \\channels, \\r0, \\r1, \\r2, \\r3, \\pointer_dead\n  .endif\n  .if \\tail\n        eor     CHECK, CHECK, \\r4, lsr #8 - (\\channels - IDX2)\n        eor     CHECK, CHECK, \\r5, lsr #7 - (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n  .endif\n  .if \\head\n        load_group2  SIZE_GROUP2, \\channels, \\r0, \\r1, \\r2, \\r3, \\pointer_dead\n  .endif\n  .if \\tail\n        eor     CHECK, CHECK, \\r6, lsr #8 - (\\channels - IDX2)\n        eor     CHECK, CHECK, \\r7, lsr #7 - (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n        stm     OUT!, {\\r4, \\r5, \\r6, \\r7}\n  .endif\n  .if \\head\n        lsl     \\r0, #8 + \\shift\n        lsl     \\r1, #8 + \\shift\n        lsl     \\r2, #8 + \\shift\n        lsl     \\r3, #8 + \\shift\n  .endif\n .endm\n\n .set WORDS_PER_LOOP, \\channels  // calculate LCM (channels, 8)\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .set WORDS_PER_LOOP, WORDS_PER_LOOP * 8\n .set SAMPLES_PER_LOOP, WORDS_PER_LOOP / \\channels\n\nfunction ff_mlp_pack_output_inorder_\\channels\\()ch_\\shift\\()shift_armv6, export=1\n .if SAMPLES_PER_LOOP > 1\n        tst     COUNT, #SAMPLES_PER_LOOP - 1  // always seems to be in practice\n        it      ne\n        bne     X(ff_mlp_pack_output)         // but just in case, branch to C implementation if not\n .endif\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        it      lo\n        bxlo    lr\n        push    {v1-v6,sl,fp,lr}\n .set IDX1, \\channels\n .set IDX2, \\channels", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:8", "text": ".set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .set WORDS_PER_LOOP, WORDS_PER_LOOP * 8\n .set SAMPLES_PER_LOOP, WORDS_PER_LOOP / \\channels\n\nfunction ff_mlp_pack_output_inorder_\\channels\\()ch_\\shift\\()shift_armv6, export=1\n .if SAMPLES_PER_LOOP > 1\n        tst     COUNT, #SAMPLES_PER_LOOP - 1  // always seems to be in practice\n        it      ne\n        bne     X(ff_mlp_pack_output)         // but just in case, branch to C implementation if not\n .endif\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        it      lo\n        bxlo    lr\n        push    {v1-v6,sl,fp,lr}\n .set IDX1, \\channels\n .set IDX2, \\channels\n        output4words  0, 1, DAT0, DAT1, DAT2, DAT3, DAT4, DAT5, DAT6, DAT7\n0:      beq     1f\n .rept WORDS_PER_LOOP / 8\n        output4words  1, 1, DAT4, DAT5, DAT6, DAT7, DAT0, DAT1, DAT2, DAT3\n        output4words  1, 1, DAT0, DAT1, DAT2, DAT3, DAT4, DAT5, DAT6, DAT7\n .endr\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        bne     0b\n1:\n .rept WORDS_PER_LOOP / 8 - 1\n        output4words  1, 1, DAT4, DAT5, DAT6, DAT7, DAT0, DAT1, DAT2, DAT3\n        output4words  1, 1, DAT0, DAT1, DAT2, DAT3, DAT4, DAT5, DAT6, DAT7\n .endr\n        output4words  1, 1, DAT4, DAT5, DAT6, DAT7, DAT0, DAT1, DAT2, DAT3, pointer_dead=1\n        output4words  1, 0, DAT0, DAT1, DAT2, DAT3, DAT4, DAT5, DAT6, DAT7\n        pop     {v1-v6,sl,fp,pc}\nendfunc\n .purgem output4words\n\n        .unreq  CHECK\n        .unreq  COUNT\n        .unreq  IN\n        .unreq  OUT\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  DAT4\n        .unreq  DAT5\n        .unreq  DAT6\n        .unreq  DAT7\n\n.endif // mixed\n.else // not inorder\n.ifc \\shift, mixed\n\n// This case not currently handled\n\n.else // not mixed", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:9", "text": ".unreq  COUNT\n        .unreq  IN\n        .unreq  OUT\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  DAT4\n        .unreq  DAT5\n        .unreq  DAT6\n        .unreq  DAT7\n\n.endif // mixed\n.else // not inorder\n.ifc \\shift, mixed\n\n// This case not currently handled\n\n.else // not mixed\n\n#if !CONFIG_THUMB\n\nCHECK   .req    a1\nCOUNT   .req    a2\nIN      .req    a3\nOUT     .req    a4\nDAT0    .req    v1\nDAT1    .req    v2\nDAT2    .req    v3\nDAT3    .req    v4\nCHAN0   .req    v5\nCHAN1   .req    v6\nCHAN2   .req    sl\nCHAN3   .req    fp\nCHAN4   .req    ip\nCHAN5   .req    lr\n\n .macro output4words\n  .if \\channels == 8\n   .if IDX1 == 8\n        uxtb    CHAN0, CHAN4, ror #0\n        uxtb    CHAN1, CHAN4, ror #8\n        uxtb    CHAN2, CHAN4, ror #16\n        uxtb    CHAN3, CHAN4, ror #24\n   .else\n        uxtb    CHAN0, CHAN5, ror #0\n        uxtb    CHAN1, CHAN5, ror #8\n        uxtb    CHAN2, CHAN5, ror #16\n        uxtb    CHAN3, CHAN5, ror #24\n   .endif\n        ldr     DAT0, [IN, CHAN0, lsl #2]\n        ldr     DAT1, [IN, CHAN1, lsl #2]\n        ldr     DAT2, [IN, CHAN2, lsl #2]\n        ldr     DAT3, [IN, CHAN3, lsl #2]\n   .if IDX1 == 4\n        add     IN, IN, #8*4\n   .endif\n        decr_modulo IDX1, 4, \\channels\n  .else\n   .set SIZE_GROUP1, IDX1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:10", "text": "uxtb    CHAN0, CHAN4, ror #0\n        uxtb    CHAN1, CHAN4, ror #8\n        uxtb    CHAN2, CHAN4, ror #16\n        uxtb    CHAN3, CHAN4, ror #24\n   .else\n        uxtb    CHAN0, CHAN5, ror #0\n        uxtb    CHAN1, CHAN5, ror #8\n        uxtb    CHAN2, CHAN5, ror #16\n        uxtb    CHAN3, CHAN5, ror #24\n   .endif\n        ldr     DAT0, [IN, CHAN0, lsl #2]\n        ldr     DAT1, [IN, CHAN1, lsl #2]\n        ldr     DAT2, [IN, CHAN2, lsl #2]\n        ldr     DAT3, [IN, CHAN3, lsl #2]\n   .if IDX1 == 4\n        add     IN, IN, #8*4\n   .endif\n        decr_modulo IDX1, 4, \\channels\n  .else\n   .set SIZE_GROUP1, IDX1\n   .if SIZE_GROUP1 > 4\n    .set SIZE_GROUP1, 4\n   .endif\n   .set SIZE_GROUP2, 4 - SIZE_GROUP1\n   .if SIZE_GROUP1 == 2\n        loadregoffsh2  DAT, 0, IN, CHAN, 0 + (\\channels - IDX1)\n        loadregoffsh2  DAT, 1, IN, CHAN, 1 + (\\channels - IDX1)\n        add     IN, IN, #8*4\n   .else // SIZE_GROUP1 == 4\n        loadregoffsh2  DAT, 0, IN, CHAN, 0 + (\\channels - IDX1)\n        loadregoffsh2  DAT, 1, IN, CHAN, 1 + (\\channels - IDX1)\n        loadregoffsh2  DAT, 2, IN, CHAN, 2 + (\\channels - IDX1)\n        loadregoffsh2  DAT, 3, IN, CHAN, 3 + (\\channels - IDX1)\n    .if IDX1 == 4\n        add     IN, IN, #8*4\n    .endif\n   .endif\n        decr_modulo IDX1, SIZE_GROUP1, \\channels\n   .if SIZE_GROUP2 == 2\n        loadregoffsh2  DAT, 2, IN, CHAN, 0 + (\\channels - IDX1)\n        loadregoffsh2  DAT, 3, IN, CHAN, 1 + (\\channels - IDX1)\n    .if IDX1 == 2\n        add     IN, IN, #8*4\n    .endif\n   .endif\n        decr_modulo IDX1, SIZE_GROUP2, \\channels\n  .endif\n  .if \\channels == 8 // in this case we can corrupt CHAN0-3\n        rsb     CHAN0, CHAN0, #8\n        rsb     CHAN1, CHAN1, #8\n        rsb     CHAN2, CHAN2, #8\n        rsb     CHAN3, CHAN3, #8\n        lsl     DAT0, #8 + \\shift\n        lsl     DAT1, #8 + \\shift\n        lsl     DAT2, #8 + \\shift\n        lsl     DAT3, #8 + \\shift\n        eor     CHECK, CHECK, DAT0, lsr CHAN0\n        eor     CHECK, CHECK, DAT1, lsr CHAN1\n        eor     CHECK, CHECK, DAT2, lsr CHAN2\n        eor     CHECK, CHECK, DAT3, lsr CHAN3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:11", "text": "loadregoffsh2  DAT, 3, IN, CHAN, 1 + (\\channels - IDX1)\n    .if IDX1 == 2\n        add     IN, IN, #8*4\n    .endif\n   .endif\n        decr_modulo IDX1, SIZE_GROUP2, \\channels\n  .endif\n  .if \\channels == 8 // in this case we can corrupt CHAN0-3\n        rsb     CHAN0, CHAN0, #8\n        rsb     CHAN1, CHAN1, #8\n        rsb     CHAN2, CHAN2, #8\n        rsb     CHAN3, CHAN3, #8\n        lsl     DAT0, #8 + \\shift\n        lsl     DAT1, #8 + \\shift\n        lsl     DAT2, #8 + \\shift\n        lsl     DAT3, #8 + \\shift\n        eor     CHECK, CHECK, DAT0, lsr CHAN0\n        eor     CHECK, CHECK, DAT1, lsr CHAN1\n        eor     CHECK, CHECK, DAT2, lsr CHAN2\n        eor     CHECK, CHECK, DAT3, lsr CHAN3\n  .else\n   .if \\shift != 0\n        lsl     DAT0, #\\shift\n        lsl     DAT1, #\\shift\n        lsl     DAT2, #\\shift\n        lsl     DAT3, #\\shift\n   .endif\n        bic     DAT0, DAT0, #0xff000000\n        bic     DAT1, DAT1, #0xff000000\n        bic     DAT2, DAT2, #0xff000000\n        bic     DAT3, DAT3, #0xff000000\n        eorlslreg CHECK, DAT0, CHAN, 0 + (\\channels - IDX2)\n        eorlslreg CHECK, DAT1, CHAN, 1 + (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n        eorlslreg CHECK, DAT2, CHAN, 0 + (\\channels - IDX2)\n        eorlslreg CHECK, DAT3, CHAN, 1 + (\\channels - IDX2)\n   decr_modulo IDX2, 2, \\channels\n        lsl     DAT0, #8\n        lsl     DAT1, #8\n        lsl     DAT2, #8\n        lsl     DAT3, #8\n  .endif\n        stm     OUT!, {DAT0 - DAT3}\n .endm\n\n .set WORDS_PER_LOOP, \\channels  // calculate LCM (channels, 4)\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .set WORDS_PER_LOOP, WORDS_PER_LOOP * 4\n .set SAMPLES_PER_LOOP, WORDS_PER_LOOP / \\channels\n\nfunction ff_mlp_pack_output_outoforder_\\channels\\()ch_\\shift\\()shift_armv6, export=1\n .if SAMPLES_PER_LOOP > 1\n        tst     COUNT, #SAMPLES_PER_LOOP - 1  // always seems to be in practice\n        it      ne\n        bne     X(ff_mlp_pack_output)         // but just in case, branch to C implementation if not", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:12", "text": "lsl     DAT3, #8\n  .endif\n        stm     OUT!, {DAT0 - DAT3}\n .endm\n\n .set WORDS_PER_LOOP, \\channels  // calculate LCM (channels, 4)\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .if (WORDS_PER_LOOP % 2) == 0\n  .set WORDS_PER_LOOP, WORDS_PER_LOOP / 2\n .endif\n .set WORDS_PER_LOOP, WORDS_PER_LOOP * 4\n .set SAMPLES_PER_LOOP, WORDS_PER_LOOP / \\channels\n\nfunction ff_mlp_pack_output_outoforder_\\channels\\()ch_\\shift\\()shift_armv6, export=1\n .if SAMPLES_PER_LOOP > 1\n        tst     COUNT, #SAMPLES_PER_LOOP - 1  // always seems to be in practice\n        it      ne\n        bne     X(ff_mlp_pack_output)         // but just in case, branch to C implementation if not\n .endif\n        teq     COUNT, #0\n        it      eq\n        bxeq    lr\n        push    {v1-v6,sl,fp,lr}\n        ldr     CHAN0, [sp, #(9+0)*4]  // get ch_assign from stack\n        ldr     CHAN4, [CHAN0]\n .if \\channels == 2\n        uxtb    CHAN0, CHAN4, ror #0\n        uxtb    CHAN1, CHAN4, ror #8\n .else\n        ldr     CHAN5, [CHAN0, #4]\n  .if \\channels == 6\n        uxtb    CHAN0, CHAN4, ror #0\n        uxtb    CHAN1, CHAN4, ror #8\n        uxtb    CHAN2, CHAN4, ror #16\n        uxtb    CHAN3, CHAN4, ror #24\n        uxtb    CHAN4, CHAN5, ror #0\n        uxtb    CHAN5, CHAN5, ror #8\n  .endif\n .endif\n .set IDX1, \\channels\n .set IDX2, \\channels\n0:\n .rept WORDS_PER_LOOP / 4\n        output4words\n .endr\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        bne     0b\n        pop     {v1-v6,sl,fp,pc}\n        .ltorg\nendfunc\n .purgem output4words\n\n        .unreq  CHECK\n        .unreq  COUNT\n        .unreq  IN\n        .unreq  OUT\n        .unreq  DAT0\n        .unreq  DAT1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:13", "text": ".endif\n .set IDX1, \\channels\n .set IDX2, \\channels\n0:\n .rept WORDS_PER_LOOP / 4\n        output4words\n .endr\n        subs    COUNT, COUNT, #SAMPLES_PER_LOOP\n        bne     0b\n        pop     {v1-v6,sl,fp,pc}\n        .ltorg\nendfunc\n .purgem output4words\n\n        .unreq  CHECK\n        .unreq  COUNT\n        .unreq  IN\n        .unreq  OUT\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  CHAN0\n        .unreq  CHAN1\n        .unreq  CHAN2\n        .unreq  CHAN3\n        .unreq  CHAN4\n        .unreq  CHAN5\n\n#endif // !CONFIG_THUMB\n\n.endif // mixed\n.endif // inorder\n.endm // implement_pack\n\n.macro pack_channels  inorder, channels\n        implement_pack  \\inorder, \\channels, 0\n        implement_pack  \\inorder, \\channels, 1\n        implement_pack  \\inorder, \\channels, 2\n        implement_pack  \\inorder, \\channels, 3\n        implement_pack  \\inorder, \\channels, 4\n        implement_pack  \\inorder, \\channels, 5\n        implement_pack  \\inorder, \\channels, mixed\n.endm\n\n.macro pack_order  inorder\n        pack_channels  \\inorder, 2\n        pack_channels  \\inorder, 6\n        pack_channels  \\inorder, 8\n.endm\n\n        pack_order  0\n        pack_order  1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 481, "line_end": 533}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mlpdsp_armv6.S:14", "text": "implement_pack  \\inorder, \\channels, 4\n        implement_pack  \\inorder, \\channels, 5\n        implement_pack  \\inorder, \\channels, mixed\n.endm\n\n.macro pack_order  inorder\n        pack_channels  \\inorder, 2\n        pack_channels  \\inorder, 6\n        pack_channels  \\inorder, 8\n.endm\n\n        pack_order  0\n        pack_order  1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mlpdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mlpdsp_armv6.S", "line_start": 521, "line_end": 533}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegaudiodsp_fixed_armv6.S:1", "text": "/*\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro  skip            args:vararg\n.endm\n\n.macro  sum8            lo,  hi,  w, p, t1, t2, t3, t4, rsb=skip, offs=0\n        ldr             \\t1, [\\w, #4*\\offs]\n        ldr             \\t2, [\\p, #4]!\n        \\rsb            \\t1, \\t1, #0\n  .irpc i, 135\n        ldr             \\t3, [\\w, #4*64*\\i+4*\\offs]\n        ldr             \\t4, [\\p, #4*64*\\i]\n        smlal           \\lo, \\hi, \\t1, \\t2\n        \\rsb            \\t3, \\t3, #0\n        ldr             \\t1, [\\w, #4*64*(\\i+1)+4*\\offs]\n        ldr             \\t2, [\\p, #4*64*(\\i+1)]\n        smlal           \\lo, \\hi, \\t3, \\t4\n        \\rsb            \\t1, \\t1, #0\n  .endr\n        ldr             \\t3, [\\w, #4*64*7+4*\\offs]\n        ldr             \\t4, [\\p, #4*64*7]\n        smlal           \\lo, \\hi, \\t1, \\t2\n        \\rsb            \\t3, \\t3, #0\n        smlal           \\lo, \\hi, \\t3, \\t4\n.endm\n\n.macro  round           rd,  lo,  hi\n        lsr             \\rd, \\lo, #24\n        bic             \\lo, \\lo, #0xff000000\n        orr             \\rd, \\rd, \\hi, lsl #8\n        mov             \\hi, #0\n        ssat            \\rd, #16, \\rd\n.endm\n\nfunction ff_mpadsp_apply_window_fixed_armv6, export=1\n        push            {r2,r4-r11,lr}\n\n        add             r4,  r0,  #4*512        @ synth_buf + 512\n    .rept 4\n        ldm             r0!, {r5-r12}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegaudiodsp_fixed_armv6.S:2", "text": "ldr             \\t4, [\\p, #4*64*7]\n        smlal           \\lo, \\hi, \\t1, \\t2\n        \\rsb            \\t3, \\t3, #0\n        smlal           \\lo, \\hi, \\t3, \\t4\n.endm\n\n.macro  round           rd,  lo,  hi\n        lsr             \\rd, \\lo, #24\n        bic             \\lo, \\lo, #0xff000000\n        orr             \\rd, \\rd, \\hi, lsl #8\n        mov             \\hi, #0\n        ssat            \\rd, #16, \\rd\n.endm\n\nfunction ff_mpadsp_apply_window_fixed_armv6, export=1\n        push            {r2,r4-r11,lr}\n\n        add             r4,  r0,  #4*512        @ synth_buf + 512\n    .rept 4\n        ldm             r0!, {r5-r12}\n        stm             r4!, {r5-r12}\n    .endr\n\n        ldr             r4,  [sp, #40]          @ incr\n        sub             r0,  r0,  #4*17         @ synth_buf + 16\n        ldr             r8,  [r2]               @ sum:low\n        add             r2,  r0,  #4*32         @ synth_buf + 48\n        rsb             r5,  r4,  r4,  lsl #5   @ 31 * incr\n        lsl             r4,  r4,  #1\n        asr             r9,  r8,  #31           @ sum:high\n        add             r5,  r3,  r5,  lsl #1   @ samples2\n        add             r6,  r1,  #4*32         @ w2\n        str             r4,  [sp, #40]\n\n        sum8            r8,  r9,  r1,  r0,  r10, r11, r12, lr\n        sum8            r8,  r9,  r1,  r2,  r10, r11, r12, lr, rsb, 32\n        round           r10, r8,  r9\n        strh_post       r10, r3,  r4\n\n        mov             lr,  #15\n1:\n        ldr             r12, [r0, #4]!\n        ldr             r11, [r6, #-4]!\n        ldr             r10, [r1, #4]!\n  .irpc i, 0246\n    .if \\i\n        ldr             r11, [r6, #4*64*\\i]\n        ldr             r10, [r1, #4*64*\\i]\n    .endif\n        rsb             r11, r11, #0\n        smlal           r8,  r9,  r10, r12\n        ldr             r10, [r0, #4*64*(\\i+1)]\n    .ifeq \\i\n        smull           r4, r7, r11, r12\n    .else\n        smlal           r4, r7, r11, r12\n    .endif\n        ldr             r11, [r6, #4*64*(\\i+1)]\n        ldr             r12, [r1, #4*64*(\\i+1)]\n        rsb             r11, r11, #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegaudiodsp_fixed_armv6.S:3", "text": "1:\n        ldr             r12, [r0, #4]!\n        ldr             r11, [r6, #-4]!\n        ldr             r10, [r1, #4]!\n  .irpc i, 0246\n    .if \\i\n        ldr             r11, [r6, #4*64*\\i]\n        ldr             r10, [r1, #4*64*\\i]\n    .endif\n        rsb             r11, r11, #0\n        smlal           r8,  r9,  r10, r12\n        ldr             r10, [r0, #4*64*(\\i+1)]\n    .ifeq \\i\n        smull           r4, r7, r11, r12\n    .else\n        smlal           r4, r7, r11, r12\n    .endif\n        ldr             r11, [r6, #4*64*(\\i+1)]\n        ldr             r12, [r1, #4*64*(\\i+1)]\n        rsb             r11, r11, #0\n        smlal           r8,  r9,  r12, r10\n    .iflt \\i-6\n        ldr             r12, [r0, #4*64*(\\i+2)]\n    .else\n        ldr             r12, [r2, #-4]!\n    .endif\n        smlal           r4,  r7,  r11, r10\n  .endr\n  .irpc i, 0246\n        ldr             r10, [r1, #4*64*\\i+4*32]\n        rsb             r12, r12, #0\n        ldr             r11, [r6, #4*64*\\i+4*32]\n        smlal           r8,  r9,  r10, r12\n        ldr             r10, [r2, #4*64*(\\i+1)]\n        smlal           r4,  r7,  r11, r12\n        ldr             r12, [r1, #4*64*(\\i+1)+4*32]\n        rsb             r10, r10, #0\n        ldr             r11, [r6, #4*64*(\\i+1)+4*32]\n        smlal           r8,  r9,  r12, r10\n    .iflt \\i-6\n        ldr             r12, [r2, #4*64*(\\i+2)]\n    .else\n        ldr             r12, [sp, #40]\n    .endif\n        smlal           r4,  r7,  r11, r10\n  .endr\n        round           r10, r8,  r9\n        adds            r8,  r8,  r4\n        adc             r9,  r9,  r7\n        strh_post       r10, r3,  r12\n        round           r11, r8,  r9\n        subs            lr,  lr,  #1\n        strh_dpost      r11, r5, r12\n        bgt             1b\n\n        sum8            r8,  r9,  r1,  r0,  r10, r11, r12, lr, rsb, 33\n        pop             {r4}\n        round           r10, r8,  r9\n        str             r8,  [r4]\n        strh            r10, [r3]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegaudiodsp_fixed_armv6.S:4", "text": "ldr             r12, [r2, #4*64*(\\i+2)]\n    .else\n        ldr             r12, [sp, #40]\n    .endif\n        smlal           r4,  r7,  r11, r10\n  .endr\n        round           r10, r8,  r9\n        adds            r8,  r8,  r4\n        adc             r9,  r9,  r7\n        strh_post       r10, r3,  r12\n        round           r11, r8,  r9\n        subs            lr,  lr,  #1\n        strh_dpost      r11, r5, r12\n        bgt             1b\n\n        sum8            r8,  r9,  r1,  r0,  r10, r11, r12, lr, rsb, 33\n        pop             {r4}\n        round           r10, r8,  r9\n        str             r8,  [r4]\n        strh            r10, [r3]\n\n        pop             {r4-r11,pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegaudiodsp_fixed_armv6.S", "line_start": 121, "line_end": 143}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_armv5te_s.S:1", "text": "/*\n * Optimization of some functions from mpegvideo.c for armv5te\n * Copyright (c) 2007 Siarhei Siamashka <ssvb@users.sourceforge.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\n/*\n * Special optimized version of dct_unquantize_h263_helper_c, it\n * requires the block to be at least 8 bytes aligned, and may process\n * more elements than requested.  But it is guaranteed to never\n * process more than 64 elements provided that count argument is <= 64,\n * so it is safe. This function is optimized for a common distribution\n * of values for nCoeffs (they are mostly multiple of 8 plus one or\n * two extra elements). So this function processes data as 8 elements\n * per loop iteration and contains optional 2 elements processing in\n * the end.\n *\n * Inner loop should take 6 cycles per element on arm926ej-s (Nokia 770)\n */\n\n.macro  dequant_t       dst, src, mul, add, tmp\n        rsbs            \\tmp, ip, \\src, asr #16\n        it              gt\n        addgt           \\tmp, \\add, #0\n        it              lt\n        rsblt           \\tmp, \\add, #0\n        it              ne\n        smlatbne        \\dst, \\src, \\mul, \\tmp\n.endm\n\n.macro  dequant_b       dst, src, mul, add, tmp\n        rsbs            \\tmp, ip, \\src, lsl #16\n        it              gt\n        addgt           \\tmp, \\add, #0\n        it              lt\n        rsblt           \\tmp, \\add, #0\n        it              ne\n        smlabbne        \\dst, \\src, \\mul, \\tmp\n.endm\n\nfunction ff_dct_unquantize_h263_armv5te, export=1\n        push            {r4-r9,lr}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_armv5te_s.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideo_armv5te_s.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_armv5te_s.S:2", "text": "it              gt\n        addgt           \\tmp, \\add, #0\n        it              lt\n        rsblt           \\tmp, \\add, #0\n        it              ne\n        smlatbne        \\dst, \\src, \\mul, \\tmp\n.endm\n\n.macro  dequant_b       dst, src, mul, add, tmp\n        rsbs            \\tmp, ip, \\src, lsl #16\n        it              gt\n        addgt           \\tmp, \\add, #0\n        it              lt\n        rsblt           \\tmp, \\add, #0\n        it              ne\n        smlabbne        \\dst, \\src, \\mul, \\tmp\n.endm\n\nfunction ff_dct_unquantize_h263_armv5te, export=1\n        push            {r4-r9,lr}\n        mov             ip, #0\n        subs            r3, r3, #2\n        ble             2f\n        ldrd            r4, r5, [r0, #0]\n1:\n        ldrd            r6, r7, [r0, #8]\n\n        dequant_t       r9, r4, r1, r2, r9\n        dequant_t       lr, r5, r1, r2, lr\n        dequant_b       r4, r4, r1, r2, r8\n        dequant_b       r5, r5, r1, r2, r8\n\n        strh            r4, [r0], #2\n        strh            r9, [r0], #2\n        strh            r5, [r0], #2\n        strh            lr, [r0], #2\n\n        dequant_t       r9, r6, r1, r2, r9\n        dequant_t       lr, r7, r1, r2, lr\n        dequant_b       r6, r6, r1, r2, r8\n        dequant_b       r7, r7, r1, r2, r8\n\n        strh            r6, [r0], #2\n        strh            r9, [r0], #2\n        strh            r7, [r0], #2\n        strh            lr, [r0], #2\n\n        subs            r3, r3, #8\n        it              gt\n        ldrdgt          r4, r5, [r0, #0] /* load data early to avoid load/use pipeline stall */\n        bgt             1b\n\n        adds            r3, r3, #2\n        it              le\n        pople           {r4-r9,pc}\n2:\n        ldrsh           r9, [r0, #0]\n        ldrsh           lr, [r0, #2]\n        mov             r8, r2\n        cmp             r9, #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_armv5te_s.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideo_armv5te_s.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_armv5te_s.S:3", "text": "dequant_b       r7, r7, r1, r2, r8\n\n        strh            r6, [r0], #2\n        strh            r9, [r0], #2\n        strh            r7, [r0], #2\n        strh            lr, [r0], #2\n\n        subs            r3, r3, #8\n        it              gt\n        ldrdgt          r4, r5, [r0, #0] /* load data early to avoid load/use pipeline stall */\n        bgt             1b\n\n        adds            r3, r3, #2\n        it              le\n        pople           {r4-r9,pc}\n2:\n        ldrsh           r9, [r0, #0]\n        ldrsh           lr, [r0, #2]\n        mov             r8, r2\n        cmp             r9, #0\n        it              lt\n        rsblt           r8, r2, #0\n        it              ne\n        smlabbne        r9, r9, r1, r8\n        mov             r8, r2\n        cmp             lr, #0\n        it              lt\n        rsblt           r8, r2, #0\n        it              ne\n        smlabbne        lr, lr, r1, r8\n        strh            r9, [r0], #2\n        strh            lr, [r0], #2\n        pop             {r4-r9,pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_armv5te_s.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideo_armv5te_s.S", "line_start": 81, "line_end": 114}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_neon.S:1", "text": "/*\n * Copyright (c) 2010 Mans Rullgard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"asm-offsets.h\"\n\nfunction ff_dct_unquantize_h263_inter_neon, export=1\n        add             r12, r0,  #BLOCK_LAST_INDEX\n        ldr             r12, [r12, r2, lsl #2]\n        add             r0,  r0,  #INTER_SCANTAB_RASTER_END\n        ldrb            r12, [r0, r12]\n        sub             r2,  r3,  #1\n        lsl             r0,  r3,  #1\n        orr             r2,  r2,  #1\n        add             r3,  r12, #1\nendfunc\n\nfunction ff_dct_unquantize_h263_neon, export=1\n        vdup.16         q15, r0                 @ qmul\n        vdup.16         q14, r2                 @ qadd\n        vneg.s16        q13, q14\n        cmp             r3,  #8\n        mov             r0,  r1\n        ble             2f\n1:\n        vld1.16         {q0},     [r0,:128]!\n        vclt.s16        q3,  q0,  #0\n        vld1.16         {q8},     [r0,:128]!\n        vceq.s16        q1,  q0,  #0\n        vmul.s16        q2,  q0,  q15\n        vclt.s16        q11, q8,  #0\n        vmul.s16        q10, q8,  q15\n        vbsl            q3,  q13, q14\n        vbsl            q11, q13, q14\n        vadd.s16        q2,  q2,  q3\n        vceq.s16        q9,  q8,  #0\n        vadd.s16        q10, q10, q11\n        vbif            q0,  q2,  q1\n        vbif            q8,  q10, q9\n        subs            r3,  r3,  #16\n        vst1.16         {q0},     [r1,:128]!\n        vst1.16         {q8},     [r1,:128]!\n        it              le", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideo_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_neon.S:2", "text": "ble             2f\n1:\n        vld1.16         {q0},     [r0,:128]!\n        vclt.s16        q3,  q0,  #0\n        vld1.16         {q8},     [r0,:128]!\n        vceq.s16        q1,  q0,  #0\n        vmul.s16        q2,  q0,  q15\n        vclt.s16        q11, q8,  #0\n        vmul.s16        q10, q8,  q15\n        vbsl            q3,  q13, q14\n        vbsl            q11, q13, q14\n        vadd.s16        q2,  q2,  q3\n        vceq.s16        q9,  q8,  #0\n        vadd.s16        q10, q10, q11\n        vbif            q0,  q2,  q1\n        vbif            q8,  q10, q9\n        subs            r3,  r3,  #16\n        vst1.16         {q0},     [r1,:128]!\n        vst1.16         {q8},     [r1,:128]!\n        it              le\n        bxle            lr\n        cmp             r3,  #8\n        bgt             1b\n2:\n        vld1.16         {q0},     [r0,:128]\n        vclt.s16        q3,  q0,  #0\n        vceq.s16        q1,  q0,  #0\n        vmul.s16        q2,  q0,  q15\n        vbsl            q3,  q13, q14\n        vadd.s16        q2,  q2,  q3\n        vbif            q0,  q2,  q1\n        vst1.16         {q0},     [r1,:128]\n        bx              lr\nendfunc\n\nfunction ff_dct_unquantize_h263_intra_neon, export=1\n        push            {r4-r6,lr}\n        add             r12, r0,  #BLOCK_LAST_INDEX\n        ldr             r6,  [r0, #AC_PRED]\n        add             lr,  r0,  #INTRA_SCANTAB_RASTER_END\n        cmp             r6,  #0\n        it              ne\n        movne           r12, #63\n        bne             1f\n        ldr             r12, [r12, r2, lsl #2]\n        ldrb            r12, [lr, r12]\n1:      ldr             r5,  [r0, #H263_AIC]\n        ldrsh           r4,  [r1]\n        cmp             r5,  #0\n        mov             r5,  r1\n        it              ne\n        movne           r2,  #0\n        bne             2f\n        cmp             r2,  #4\n        it              ge\n        addge           r0,  r0,  #4\n        sub             r2,  r3,  #1\n        ldr             r6,  [r0, #Y_DC_SCALE]\n        orr             r2,  r2,  #1\n        smulbb          r4,  r4,  r6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideo_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_neon.S:3", "text": "cmp             r6,  #0\n        it              ne\n        movne           r12, #63\n        bne             1f\n        ldr             r12, [r12, r2, lsl #2]\n        ldrb            r12, [lr, r12]\n1:      ldr             r5,  [r0, #H263_AIC]\n        ldrsh           r4,  [r1]\n        cmp             r5,  #0\n        mov             r5,  r1\n        it              ne\n        movne           r2,  #0\n        bne             2f\n        cmp             r2,  #4\n        it              ge\n        addge           r0,  r0,  #4\n        sub             r2,  r3,  #1\n        ldr             r6,  [r0, #Y_DC_SCALE]\n        orr             r2,  r2,  #1\n        smulbb          r4,  r4,  r6\n2:      lsl             r0,  r3,  #1\n        add             r3,  r12, #1\n        bl              X(ff_dct_unquantize_h263_neon)\n        vmov.16         d0[0], r4\n        vst1.16         {d0[0]},  [r5]\n        pop             {r4-r6,pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideo_neon.S", "line_start": 81, "line_end": 107}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_neon.S:1", "text": "/*\n * Copyright (c) 2010 Mans Rullgard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"asm-offsets.h\"\n\nfunction ff_dct_unquantize_h263_inter_neon, export=1\n        add             r12, r0,  #BLOCK_LAST_INDEX\n        ldr             r12, [r12, r2, lsl #2]\n        add             r0,  r0,  #INTER_SCANTAB_RASTER_END\n        ldrb            r12, [r0, r12]\n        sub             r2,  r3,  #1\n        lsl             r0,  r3,  #1\n        orr             r2,  r2,  #1\n        add             r3,  r12, #1\nendfunc\n\nfunction ff_dct_unquantize_h263_neon, export=1\n        vdup.16         q15, r0                 @ qmul\n        vdup.16         q14, r2                 @ qadd\n        vneg.s16        q13, q14\n        cmp             r3,  #4\n        mov             r0,  r1\n        ble             2f\n1:\n        vld1.16         {q0},     [r0,:128]!\n        vclt.s16        q3,  q0,  #0\n        vld1.16         {q8},     [r0,:128]!\n        vceq.s16        q1,  q0,  #0\n        vmul.s16        q2,  q0,  q15\n        vclt.s16        q11, q8,  #0\n        vmul.s16        q10, q8,  q15\n        vbsl            q3,  q13, q14\n        vbsl            q11, q13, q14\n        vadd.s16        q2,  q2,  q3\n        vceq.s16        q9,  q8,  #0\n        vadd.s16        q10, q10, q11\n        vbif            q0,  q2,  q1\n        vbif            q8,  q10, q9\n        subs            r3,  r3,  #16\n        vst1.16         {q0},     [r1,:128]!\n        vst1.16         {q8},     [r1,:128]!\n        it              le", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_neon.S", "license": "LGPL-2.1", "commit": "e7a629049f7e9be397b0acabe75beb207ad9dc21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7a629049f7e9be397b0acabe75beb207ad9dc21/libavcodec/arm/mpegvideo_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_neon.S:2", "text": "ble             2f\n1:\n        vld1.16         {q0},     [r0,:128]!\n        vclt.s16        q3,  q0,  #0\n        vld1.16         {q8},     [r0,:128]!\n        vceq.s16        q1,  q0,  #0\n        vmul.s16        q2,  q0,  q15\n        vclt.s16        q11, q8,  #0\n        vmul.s16        q10, q8,  q15\n        vbsl            q3,  q13, q14\n        vbsl            q11, q13, q14\n        vadd.s16        q2,  q2,  q3\n        vceq.s16        q9,  q8,  #0\n        vadd.s16        q10, q10, q11\n        vbif            q0,  q2,  q1\n        vbif            q8,  q10, q9\n        subs            r3,  r3,  #16\n        vst1.16         {q0},     [r1,:128]!\n        vst1.16         {q8},     [r1,:128]!\n        it              le\n        bxle            lr\n        cmp             r3,  #8\n        bgt             1b\n2:\n        vld1.16         {d0},     [r0,:64]\n        vclt.s16        d3,  d0,  #0\n        vceq.s16        d1,  d0,  #0\n        vmul.s16        d2,  d0,  d30\n        vbsl            d3,  d26, d28\n        vadd.s16        d2,  d2,  d3\n        vbif            d0,  d2,  d1\n        vst1.16         {d0},     [r1,:64]\n        bx              lr\nendfunc\n\nfunction ff_dct_unquantize_h263_intra_neon, export=1\n        push            {r4-r6,lr}\n        add             r12, r0,  #BLOCK_LAST_INDEX\n        ldr             r6,  [r0, #AC_PRED]\n        add             lr,  r0,  #INTRA_SCANTAB_RASTER_END\n        cmp             r6,  #0\n        it              ne\n        movne           r12, #63\n        bne             1f\n        ldr             r12, [r12, r2, lsl #2]\n        ldrb            r12, [lr, r12]\n1:      ldr             r5,  [r0, #H263_AIC]\n        ldrsh           r4,  [r1]\n        cmp             r5,  #0\n        mov             r5,  r1\n        it              ne\n        movne           r2,  #0\n        bne             2f\n        cmp             r2,  #4\n        it              ge\n        addge           r0,  r0,  #4\n        sub             r2,  r3,  #1\n        ldr             r6,  [r0, #Y_DC_SCALE]\n        orr             r2,  r2,  #1\n        smulbb          r4,  r4,  r6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_neon.S", "license": "LGPL-2.1", "commit": "e7a629049f7e9be397b0acabe75beb207ad9dc21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7a629049f7e9be397b0acabe75beb207ad9dc21/libavcodec/arm/mpegvideo_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideo_neon.S:2", "text": "ble             2f\n1:\n        vld1.16         {q0},     [r0,:128]!\n        vclt.s16        q3,  q0,  #0\n        vld1.16         {q8},     [r0,:128]!\n        vceq.s16        q1,  q0,  #0\n        vmul.s16        q2,  q0,  q15\n        vclt.s16        q11, q8,  #0\n        vmul.s16        q10, q8,  q15\n        vbsl            q3,  q13, q14\n        vbsl            q11, q13, q14\n        vadd.s16        q2,  q2,  q3\n        vceq.s16        q9,  q8,  #0\n        vadd.s16        q10, q10, q11\n        vbif            q0,  q2,  q1\n        vbif            q8,  q10, q9\n        subs            r3,  r3,  #16\n        vst1.16         {q0},     [r1,:128]!\n        vst1.16         {q8},     [r1,:128]!\n        it              le\n        bxle            lr\n        cmp             r3,  #8\n        bgt             1b\n2:\n        vld1.16         {d0},     [r0,:64]\n        vclt.s16        d3,  d0,  #0\n        vceq.s16        d1,  d0,  #0\n        vmul.s16        d2,  d0,  d30\n        vbsl            d3,  d26, d28\n        vadd.s16        d2,  d2,  d3\n        vbif            d0,  d2,  d1\n        vst1.16         {d0},     [r1,:64]\n        bx              lr\nendfunc\n\nfunction ff_dct_unquantize_h263_intra_neon, export=1\n        push            {r4-r6,lr}\n        add             r12, r0,  #BLOCK_LAST_INDEX\n        ldr             r6,  [r0, #AC_PRED]\n        add             lr,  r0,  #INTER_SCANTAB_RASTER_END\n        cmp             r6,  #0\n        it              ne\n        movne           r12, #63\n        bne             1f\n        ldr             r12, [r12, r2, lsl #2]\n        ldrb            r12, [lr, r12]\n1:      ldr             r5,  [r0, #H263_AIC]\n        ldrsh           r4,  [r1]\n        cmp             r5,  #0\n        mov             r5,  r1\n        it              ne\n        movne           r2,  #0\n        bne             2f\n        cmp             r2,  #4\n        it              ge\n        addge           r0,  r0,  #4\n        sub             r2,  r3,  #1\n        ldr             r6,  [r0, #Y_DC_SCALE]\n        orr             r2,  r2,  #1\n        smulbb          r4,  r4,  r6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideo_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/mpegvideo_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideoencdsp_armv6.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_pix_norm1_armv6, export=1\n        push            {r4-r6, lr}\n        mov             r12, #16\n        mov             lr,  #0\n1:\n        ldm             r0,  {r2-r5}\n        uxtb16          r6,  r2\n        uxtb16          r2,  r2,  ror #8\n        smlad           lr,  r6,  r6,  lr\n        uxtb16          r6,  r3\n        smlad           lr,  r2,  r2,  lr\n        uxtb16          r3,  r3,  ror #8\n        smlad           lr,  r6,  r6,  lr\n        uxtb16          r6,  r4\n        smlad           lr,  r3,  r3,  lr\n        uxtb16          r4,  r4,  ror #8\n        smlad           lr,  r6,  r6,  lr\n        uxtb16          r6,  r5\n        smlad           lr,  r4,  r4,  lr\n        uxtb16          r5,  r5,  ror #8\n        smlad           lr,  r6,  r6,  lr\n        subs            r12, r12, #1\n        add             r0,  r0,  r1\n        smlad           lr,  r5,  r5,  lr\n        bgt             1b\n\n        mov             r0,  lr\n        pop             {r4-r6, pc}\nendfunc\n\nfunction ff_pix_sum_armv6, export=1\n        push            {r4-r7, lr}\n        mov             r12, #16\n        mov             r2,  #0\n        mov             r3,  #0\n        mov             lr,  #0\n        ldr             r4,  [r0]\n1:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideoencdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideoencdsp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/mpegvideoencdsp_armv6.S:2", "text": "smlad           lr,  r4,  r4,  lr\n        uxtb16          r5,  r5,  ror #8\n        smlad           lr,  r6,  r6,  lr\n        subs            r12, r12, #1\n        add             r0,  r0,  r1\n        smlad           lr,  r5,  r5,  lr\n        bgt             1b\n\n        mov             r0,  lr\n        pop             {r4-r6, pc}\nendfunc\n\nfunction ff_pix_sum_armv6, export=1\n        push            {r4-r7, lr}\n        mov             r12, #16\n        mov             r2,  #0\n        mov             r3,  #0\n        mov             lr,  #0\n        ldr             r4,  [r0]\n1:\n        subs            r12, r12, #1\n        ldr             r5,  [r0, #4]\n        usada8          r2,  r4,  lr,  r2\n        ldr             r6,  [r0, #8]\n        usada8          r3,  r5,  lr,  r3\n        ldr             r7,  [r0, #12]\n        usada8          r2,  r6,  lr,  r2\n        beq             2f\n        ldr_pre         r4,  r0,  r1\n        usada8          r3,  r7,  lr,  r3\n        bgt             1b\n2:\n        usada8          r3,  r7,  lr,  r3\n        add             r0,  r2,  r3\n        pop             {r4-r7, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/mpegvideoencdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/mpegvideoencdsp_armv6.S", "line_start": 41, "line_end": 76}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n.macro  transpose_8x8   r0, r1, r2, r3, r4, r5, r6, r7\n        vtrn.32         \\r0, \\r4\n        vtrn.32         \\r1, \\r5\n        vtrn.32         \\r2, \\r6\n        vtrn.32         \\r3, \\r7\n        vtrn.16         \\r0, \\r2\n        vtrn.16         \\r1, \\r3\n        vtrn.16         \\r4, \\r6\n        vtrn.16         \\r5, \\r7\n        vtrn.8          \\r0, \\r1\n        vtrn.8          \\r2, \\r3\n        vtrn.8          \\r4, \\r5\n        vtrn.8          \\r6, \\r7\n.endm\n\n.macro  transpose_4x4   r0, r1, r2, r3\n        vtrn.16         \\r0, \\r2\n        vtrn.16         \\r1, \\r3\n        vtrn.8          \\r0, \\r1\n        vtrn.8          \\r2, \\r3\n.endm\n\n.macro  swap4           r0, r1, r2, r3, r4, r5, r6, r7\n        vswp            \\r0, \\r4\n        vswp            \\r1, \\r5\n        vswp            \\r2, \\r6\n        vswp            \\r3, \\r7\n.endm\n\n.macro  transpose16_4x4 r0, r1, r2, r3, r4, r5, r6, r7\n        vtrn.32         \\r0, \\r2\n        vtrn.32         \\r1, \\r3\n        vtrn.32         \\r4, \\r6\n        vtrn.32         \\r5, \\r7\n        vtrn.16         \\r0, \\r1\n        vtrn.16         \\r2, \\r3\n        vtrn.16         \\r4, \\r5\n        vtrn.16         \\r6, \\r7\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/neon.S", "line_start": 1, "line_end": 59}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/pixblockdsp_armv6.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_get_pixels_armv6, export=1\n        pld             [r1, r2]\n        push            {r4-r8, lr}\n        mov             lr,  #8\n1:\n        ldrd_post       r4,  r5,  r1,  r2\n        subs            lr,  lr,  #1\n        uxtb16          r6,  r4\n        uxtb16          r4,  r4,  ror #8\n        uxtb16          r12, r5\n        uxtb16          r8,  r5,  ror #8\n        pld             [r1, r2]\n        pkhbt           r5,  r6,  r4,  lsl #16\n        pkhtb           r6,  r4,  r6,  asr #16\n        pkhbt           r7,  r12, r8,  lsl #16\n        pkhtb           r12, r8,  r12, asr #16\n        stm             r0!, {r5,r6,r7,r12}\n        bgt             1b\n\n        pop             {r4-r8, pc}\nendfunc\n\nfunction ff_diff_pixels_armv6, export=1\n        pld             [r1, r3]\n        pld             [r2, r3]\n        push            {r4-r9, lr}\n        mov             lr,  #8\n1:\n        ldrd_post       r4,  r5,  r1,  r3\n        ldrd_post       r6,  r7,  r2,  r3\n        uxtb16          r8,  r4\n        uxtb16          r4,  r4,  ror #8\n        uxtb16          r9,  r6\n        uxtb16          r6,  r6,  ror #8\n        pld             [r1, r3]\n        ssub16          r9,  r8,  r9\n        ssub16          r6,  r4,  r6\n        uxtb16          r8,  r5", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/pixblockdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/pixblockdsp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/pixblockdsp_armv6.S:2", "text": "pop             {r4-r8, pc}\nendfunc\n\nfunction ff_diff_pixels_armv6, export=1\n        pld             [r1, r3]\n        pld             [r2, r3]\n        push            {r4-r9, lr}\n        mov             lr,  #8\n1:\n        ldrd_post       r4,  r5,  r1,  r3\n        ldrd_post       r6,  r7,  r2,  r3\n        uxtb16          r8,  r4\n        uxtb16          r4,  r4,  ror #8\n        uxtb16          r9,  r6\n        uxtb16          r6,  r6,  ror #8\n        pld             [r1, r3]\n        ssub16          r9,  r8,  r9\n        ssub16          r6,  r4,  r6\n        uxtb16          r8,  r5\n        uxtb16          r5,  r5,  ror #8\n        pld             [r2, r3]\n        pkhbt           r4,  r9,  r6,  lsl #16\n        pkhtb           r6,  r6,  r9,  asr #16\n        uxtb16          r9,  r7\n        uxtb16          r7,  r7,  ror #8\n        ssub16          r9,  r8,  r9\n        ssub16          r5,  r5,  r7\n        subs            lr,  lr,  #1\n        pkhbt           r8,  r9,  r5,  lsl #16\n        pkhtb           r9,  r5,  r9,  asr #16\n        stm             r0!, {r4,r6,r8,r9}\n        bgt             1b\n\n        pop             {r4-r9, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/pixblockdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/pixblockdsp_armv6.S", "line_start": 41, "line_end": 76}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/pixblockdsp_neon.S:1", "text": "/*\n * Copyright (c) 2020 Martin Storsjo\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro vld1_8 dst, src, incr, aligned\n.if \\aligned\n        vld1.8          {\\dst}, [\\src, :64], \\incr\n.else\n        vld1.8          {\\dst}, [\\src], \\incr\n.endif\n.endm\n\n.macro get_pixels suffix, aligned\nfunction ff_get_pixels\\suffix\\()_neon, export=1\n        mov             r3,  #8\n1:\n        vld1_8          d0,  r1,  r2,  \\aligned\n        subs            r3,  r3,  #2\n        vld1_8          d2,  r1,  r2,  \\aligned\n        vmovl.u8        q0,  d0\n        vmovl.u8        q1,  d2\n        vst1.16         {q0, q1}, [r0, :128]!\n        bgt             1b\n\n        bx              lr\nendfunc\n.endm\n\nget_pixels , aligned=1\nget_pixels _unaligned, aligned=0\n\n.macro diff_pixels suffix, aligned=0\nfunction ff_diff_pixels\\suffix\\()_neon, export=1\n        mov             r12, #8\n1:\n        vld1_8          d0,  r1,  r3,  \\aligned\n        vld1_8          d1,  r2,  r3,  \\aligned\n        subs            r12, r12, #2\n        vld1_8          d2,  r1,  r3,  \\aligned\n        vsubl.u8        q0,  d0,  d1\n        vld1_8          d3,  r2,  r3,  \\aligned\n        vsubl.u8        q1,  d2,  d3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/pixblockdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/pixblockdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/pixblockdsp_neon.S:2", "text": "bgt             1b\n\n        bx              lr\nendfunc\n.endm\n\nget_pixels , aligned=1\nget_pixels _unaligned, aligned=0\n\n.macro diff_pixels suffix, aligned=0\nfunction ff_diff_pixels\\suffix\\()_neon, export=1\n        mov             r12, #8\n1:\n        vld1_8          d0,  r1,  r3,  \\aligned\n        vld1_8          d1,  r2,  r3,  \\aligned\n        subs            r12, r12, #2\n        vld1_8          d2,  r1,  r3,  \\aligned\n        vsubl.u8        q0,  d0,  d1\n        vld1_8          d3,  r2,  r3,  \\aligned\n        vsubl.u8        q1,  d2,  d3\n        vst1.16         {q0, q1}, [r0]!\n        bgt             1b\n\n        bx              lr\nendfunc\n.endm\n\ndiff_pixels , aligned=1\ndiff_pixels _unaligned, aligned=0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/pixblockdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/pixblockdsp_neon.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv34dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n.macro rv34_inv_transform    r0\n        vld1.16         {q14-q15}, [\\r0,:128]\n        vmov.s16        d0,  #13\n        vshll.s16       q12, d29, #3\n        vshll.s16       q13, d29, #4\n        vshll.s16       q9,  d31, #3\n        vshll.s16       q1,  d31, #4\n        vmull.s16       q10, d28, d0\n        vmlal.s16       q10, d30, d0\n        vmull.s16       q11, d28, d0\n        vmlsl.s16       q11, d30, d0\n        vsubw.s16       q12, q12, d29   @ z2 = block[i+4*1]*7\n        vaddw.s16       q13, q13, d29   @ z3 = block[i+4*1]*17\n        vsubw.s16       q9,  q9,  d31\n        vaddw.s16       q1,  q1,  d31\n        vadd.s32        q13, q13, q9    @ z3 = 17*block[i+4*1] +  7*block[i+4*3]\n        vsub.s32        q12, q12, q1    @ z2 = 7*block[i+4*1]  - 17*block[i+4*3]\n        vadd.s32        q1,  q10, q13   @ z0 + z3\n        vadd.s32        q2,  q11, q12   @ z1 + z2\n        vsub.s32        q8,  q10, q13   @ z0 - z3\n        vsub.s32        q3,  q11, q12   @ z1 - z2\n        vtrn.32         q1,  q2\n        vtrn.32         q3,  q8\n        vswp            d3,  d6\n        vswp            d5,  d16\n        vmov.s32        d0,  #13\n        vadd.s32        q10, q1,  q3\n        vsub.s32        q11, q1,  q3\n        vshl.s32        q12, q2,  #3\n        vshl.s32        q9,  q2,  #4\n        vmul.s32        q13, q11, d0[0]\n        vshl.s32        q11, q8,  #4\n        vadd.s32        q9,  q9,  q2\n        vshl.s32        q15, q8,  #3\n        vsub.s32        q12, q12, q2\n        vadd.s32        q11, q11, q8\n        vmul.s32        q14, q10, d0[0]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv34dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv34dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv34dsp_neon.S:2", "text": "vadd.s32        q1,  q10, q13   @ z0 + z3\n        vadd.s32        q2,  q11, q12   @ z1 + z2\n        vsub.s32        q8,  q10, q13   @ z0 - z3\n        vsub.s32        q3,  q11, q12   @ z1 - z2\n        vtrn.32         q1,  q2\n        vtrn.32         q3,  q8\n        vswp            d3,  d6\n        vswp            d5,  d16\n        vmov.s32        d0,  #13\n        vadd.s32        q10, q1,  q3\n        vsub.s32        q11, q1,  q3\n        vshl.s32        q12, q2,  #3\n        vshl.s32        q9,  q2,  #4\n        vmul.s32        q13, q11, d0[0]\n        vshl.s32        q11, q8,  #4\n        vadd.s32        q9,  q9,  q2\n        vshl.s32        q15, q8,  #3\n        vsub.s32        q12, q12, q2\n        vadd.s32        q11, q11, q8\n        vmul.s32        q14, q10, d0[0]\n        vsub.s32        q8,  q15, q8\n        vsub.s32        q12, q12, q11\n        vadd.s32        q9,  q9,  q8\n        vadd.s32        q2,  q13, q12   @ z1 + z2\n        vadd.s32        q1,  q14, q9    @ z0 + z3\n        vsub.s32        q3,  q13, q12   @ z1 - z2\n        vsub.s32        q15, q14, q9    @ z0 - z3\n.endm\n\n/* void rv34_idct_add_c(uint8_t *dst, int stride, int16_t *block) */\nfunction ff_rv34_idct_add_neon, export=1\n        mov             r3,  r0\n        rv34_inv_transform r2\n        vmov.i16        q12, #0\n        vrshrn.s32      d16, q1,  #10   @ (z0 + z3) >> 10\n        vrshrn.s32      d17, q2,  #10   @ (z1 + z2) >> 10\n        vrshrn.s32      d18, q3,  #10   @ (z1 - z2) >> 10\n        vrshrn.s32      d19, q15, #10   @ (z0 - z3) >> 10\n        vld1.32         {d28[]},  [r0,:32], r1\n        vld1.32         {d29[]},  [r0,:32], r1\n        vtrn.32         q8,  q9\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vst1.16         {q12}, [r2,:128]!       @ memset(block,    0, 16)\n        vst1.16         {q12}, [r2,:128]        @ memset(block+16, 0, 16)\n        vtrn.16         d16, d17\n        vtrn.32         d28, d29\n        vtrn.16         d18, d19\n        vaddw.u8        q0,   q8,  d28\n        vaddw.u8        q1,   q9,  d29\n        vqmovun.s16     d28,  q0\n        vqmovun.s16     d29,  q1\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d29[1]}, [r3,:32], r1\n        bx              lr\nendfunc\n\n/* void rv34_inv_transform_noround_neon(int16_t *block); */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv34dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv34dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv34dsp_neon.S:3", "text": "vtrn.32         q8,  q9\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vst1.16         {q12}, [r2,:128]!       @ memset(block,    0, 16)\n        vst1.16         {q12}, [r2,:128]        @ memset(block+16, 0, 16)\n        vtrn.16         d16, d17\n        vtrn.32         d28, d29\n        vtrn.16         d18, d19\n        vaddw.u8        q0,   q8,  d28\n        vaddw.u8        q1,   q9,  d29\n        vqmovun.s16     d28,  q0\n        vqmovun.s16     d29,  q1\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d29[1]}, [r3,:32], r1\n        bx              lr\nendfunc\n\n/* void rv34_inv_transform_noround_neon(int16_t *block); */\nfunction ff_rv34_inv_transform_noround_neon, export=1\n        rv34_inv_transform r0\n        vshl.s32        q11, q2,  #1\n        vshl.s32        q10, q1,  #1\n        vshl.s32        q12, q3,  #1\n        vshl.s32        q13, q15, #1\n        vadd.s32        q11, q11, q2\n        vadd.s32        q10, q10, q1\n        vadd.s32        q12, q12, q3\n        vadd.s32        q13, q13, q15\n        vshrn.s32       d0,  q10, #11   @ (z0 + z3)*3 >> 11\n        vshrn.s32       d1,  q11, #11   @ (z1 + z2)*3 >> 11\n        vshrn.s32       d2,  q12, #11   @ (z1 - z2)*3 >> 11\n        vshrn.s32       d3,  q13, #11   @ (z0 - z3)*3 >> 11\n        vst4.16         {d0[0], d1[0], d2[0], d3[0]}, [r0,:64]!\n        vst4.16         {d0[1], d1[1], d2[1], d3[1]}, [r0,:64]!\n        vst4.16         {d0[2], d1[2], d2[2], d3[2]}, [r0,:64]!\n        vst4.16         {d0[3], d1[3], d2[3], d3[3]}, [r0,:64]!\n        bx              lr\nendfunc\n\n/* void ff_rv34_idct_dc_add_neon(uint8_t *dst, int stride, int dc) */\nfunction ff_rv34_idct_dc_add_neon, export=1\n        mov             r3,  r0\n        vld1.32         {d28[]},  [r0,:32], r1\n        vld1.32         {d29[]},  [r0,:32], r1\n        vdup.16         d0,  r2\n        vmov.s16        d1,  #169\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vmull.s16       q1,  d0,  d1    @ dc * 13 * 13\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vrshrn.s32      d0,  q1,  #10   @ (dc * 13 * 13 + 0x200) >> 10\n        vmov            d1,  d0\n        vaddw.u8        q2,  q0,  d28\n        vaddw.u8        q3,  q0,  d29\n        vqmovun.s16     d28, q2\n        vqmovun.s16     d29, q3\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv34dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv34dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv34dsp_neon.S:4", "text": "/* void ff_rv34_idct_dc_add_neon(uint8_t *dst, int stride, int dc) */\nfunction ff_rv34_idct_dc_add_neon, export=1\n        mov             r3,  r0\n        vld1.32         {d28[]},  [r0,:32], r1\n        vld1.32         {d29[]},  [r0,:32], r1\n        vdup.16         d0,  r2\n        vmov.s16        d1,  #169\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vmull.s16       q1,  d0,  d1    @ dc * 13 * 13\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vrshrn.s32      d0,  q1,  #10   @ (dc * 13 * 13 + 0x200) >> 10\n        vmov            d1,  d0\n        vaddw.u8        q2,  q0,  d28\n        vaddw.u8        q3,  q0,  d29\n        vqmovun.s16     d28, q2\n        vqmovun.s16     d29, q3\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1\n        vst1.32         {d29[1]}, [r3,:32], r1\n        bx              lr\nendfunc\n\n/* void rv34_inv_transform_dc_noround_c(int16_t *block) */\nfunction ff_rv34_inv_transform_noround_dc_neon, export=1\n        vld1.16         {d28[]}, [r0,:16]       @ block[0]\n        vmov.i16        d4,  #251\n        vorr.s16        d4,  #256               @ 13^2 * 3\n        vmull.s16       q3,  d28, d4\n        vshrn.s32       d0,  q3,  #11\n        vmov.i16        d1,  d0\n        vst1.64         {q0}, [r0,:128]!\n        vst1.64         {q0}, [r0,:128]!\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv34dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv34dsp_neon.S", "line_start": 121, "line_end": 156}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv34dsp_neon.S:2", "text": "vadd.s32        q1,  q10, q13   @ z0 + z3\n        vadd.s32        q2,  q11, q12   @ z1 + z2\n        vsub.s32        q8,  q10, q13   @ z0 - z3\n        vsub.s32        q3,  q11, q12   @ z1 - z2\n        vtrn.32         q1,  q2\n        vtrn.32         q3,  q8\n        vswp            d3,  d6\n        vswp            d5,  d16\n        vmov.s32        d0,  #13\n        vadd.s32        q10, q1,  q3\n        vsub.s32        q11, q1,  q3\n        vshl.s32        q12, q2,  #3\n        vshl.s32        q9,  q2,  #4\n        vmul.s32        q13, q11, d0[0]\n        vshl.s32        q11, q8,  #4\n        vadd.s32        q9,  q9,  q2\n        vshl.s32        q15, q8,  #3\n        vsub.s32        q12, q12, q2\n        vadd.s32        q11, q11, q8\n        vmul.s32        q14, q10, d0[0]\n        vsub.s32        q8,  q15, q8\n        vsub.s32        q12, q12, q11\n        vadd.s32        q9,  q9,  q8\n        vadd.s32        q2,  q13, q12   @ z1 + z2\n        vadd.s32        q1,  q14, q9    @ z0 + z3\n        vsub.s32        q3,  q13, q12   @ z1 - z2\n        vsub.s32        q15, q14, q9    @ z0 - z3\n.endm\n\n/* void rv34_idct_add_c(uint8_t *dst, int stride, int16_t *block) */\nfunction ff_rv34_idct_add_neon, export=1\n        mov             r3,  r0\n        rv34_inv_transform   r2\n        vmov.i16        q12, #0\n        vrshrn.s32      d16, q1,  #10   @ (z0 + z3) >> 10\n        vrshrn.s32      d17, q2,  #10   @ (z1 + z2) >> 10\n        vrshrn.s32      d18, q3,  #10   @ (z1 - z2) >> 10\n        vrshrn.s32      d19, q15, #10   @ (z0 - z3) >> 10\n        vld1.32         {d28[]},  [r0,:32], r1\n        vld1.32         {d29[]},  [r0,:32], r1\n        vtrn.32         q8,  q9\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vst1.16         {q12}, [r2,:128]!       @ memset(block,    0, 16)\n        vst1.16         {q12}, [r2,:128]        @ memset(block+16, 0, 16)\n        vtrn.16         d16, d17\n        vtrn.32         d28, d29\n        vtrn.16         d18, d19\n        vaddw.u8        q0,   q8,  d28\n        vaddw.u8        q1,   q9,  d29\n        vqmovun.s16     d28,  q0\n        vqmovun.s16     d29,  q1\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d29[1]}, [r3,:32], r1\n        bx              lr\nendfunc\n\n/* void rv34_inv_transform_noround_neon(int16_t *block); */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv34dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/rv34dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv34dsp_neon.S:3", "text": "vtrn.32         q8,  q9\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vst1.16         {q12}, [r2,:128]!       @ memset(block,    0, 16)\n        vst1.16         {q12}, [r2,:128]        @ memset(block+16, 0, 16)\n        vtrn.16         d16, d17\n        vtrn.32         d28, d29\n        vtrn.16         d18, d19\n        vaddw.u8        q0,   q8,  d28\n        vaddw.u8        q1,   q9,  d29\n        vqmovun.s16     d28,  q0\n        vqmovun.s16     d29,  q1\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d29[1]}, [r3,:32], r1\n        bx              lr\nendfunc\n\n/* void rv34_inv_transform_noround_neon(int16_t *block); */\nfunction ff_rv34_inv_transform_noround_neon, export=1\n        rv34_inv_transform   r0\n        vshl.s32        q11, q2,  #1\n        vshl.s32        q10, q1,  #1\n        vshl.s32        q12, q3,  #1\n        vshl.s32        q13, q15, #1\n        vadd.s32        q11, q11, q2\n        vadd.s32        q10, q10, q1\n        vadd.s32        q12, q12, q3\n        vadd.s32        q13, q13, q15\n        vshrn.s32       d0,  q10, #11   @ (z0 + z3)*3 >> 11\n        vshrn.s32       d1,  q11, #11   @ (z1 + z2)*3 >> 11\n        vshrn.s32       d2,  q12, #11   @ (z1 - z2)*3 >> 11\n        vshrn.s32       d3,  q13, #11   @ (z0 - z3)*3 >> 11\n        vst4.16         {d0[0], d1[0], d2[0], d3[0]}, [r0,:64]!\n        vst4.16         {d0[1], d1[1], d2[1], d3[1]}, [r0,:64]!\n        vst4.16         {d0[2], d1[2], d2[2], d3[2]}, [r0,:64]!\n        vst4.16         {d0[3], d1[3], d2[3], d3[3]}, [r0,:64]!\n        bx              lr\nendfunc\n\n/* void ff_rv34_idct_dc_add_neon(uint8_t *dst, int stride, int dc) */\nfunction ff_rv34_idct_dc_add_neon, export=1\n        mov             r3,  r0\n        vld1.32         {d28[]},  [r0,:32], r1\n        vld1.32         {d29[]},  [r0,:32], r1\n        vdup.16         d0,  r2\n        vmov.s16        d1,  #169\n        vld1.32         {d28[1]}, [r0,:32], r1\n        vmull.s16       q1,  d0,  d1    @ dc * 13 * 13\n        vld1.32         {d29[1]}, [r0,:32], r1\n        vrshrn.s32      d0,  q1,  #10   @ (dc * 13 * 13 + 0x200) >> 10\n        vmov            d1,  d0\n        vaddw.u8        q2,  q0,  d28\n        vaddw.u8        q3,  q0,  d29\n        vqmovun.s16     d28, q2\n        vqmovun.s16     d29, q3\n        vst1.32         {d28[0]}, [r3,:32], r1\n        vst1.32         {d29[0]}, [r3,:32], r1\n        vst1.32         {d28[1]}, [r3,:32], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv34dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/rv34dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:1", "text": "/*\n * Copyright (c) 2011 Janne Grunau <janne-libav@jannau.net>\n * Copyright (c) 2011 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n.macro  qpel_lowpass    r0,  r1,  rc1, rc2, shift\n        vext.8          d25, \\r0, \\r1, #1       @ src[-1]\n        vext.8          d26, \\r0, \\r1, #4       @ src[ 2]\n        vext.8          d24, \\r0, \\r1, #5       @ src[ 3]\n        vaddl.u8        q9,  d25, d26\n        vaddl.u8        q8,  \\r0, d24\n        vext.8          d27, \\r0, \\r1, #2       @ src[ 0]\n        vshl.s16        q12, q9,  #2\n        vsub.s16        q8,  q8,  q9\n        vext.8          d28, \\r0, \\r1, #3       @ src[ 1]\n        vsub.s16        q8,  q8,  q12\n        vmlal.u8        q8,  d27, \\rc1\n        vmlal.u8        q8,  d28, \\rc2\n        vqrshrun.s16    \\r0, q8,  #\\shift\n.endm\n\n.macro  qpel_lowpass_x2 r0,  r1,  r2,  r3,  rc1, rc2, shift\n        vext.8          d25, \\r0, \\r1, #1       @ src[-1]\n        vext.8          d26, \\r0, \\r1, #4       @ src[ 2]\n        vext.8          d24, \\r0, \\r1, #5       @ src[ 3]\n        vaddl.u8        q9,  d25, d26\n        vaddl.u8        q8,  \\r0, d24\n        vext.8          d29, \\r0, \\r1, #2       @ src[ 0]\n        vext.8          d28, \\r0, \\r1, #3       @ src[ 1]\n        vshl.s16        q10, q9,  #2\n        vext.8          \\r1, \\r2, \\r3, #1       @ src[-1]\n        vsub.s16        q8,  q8,  q9\n        vext.8          d22, \\r2, \\r3, #4       @ src[ 2]\n        vext.8          \\r0, \\r2, \\r3, #5       @ src[ 3]\n        vaddl.u8        q13, \\r1, d22\n        vaddl.u8        q12, \\r2, \\r0\n        vsub.s16        q8,  q8,  q10\n        vshl.s16        q9,  q13, #2\n        vsub.s16        q12, q12, q13\n        vmlal.u8        q8,  d29, \\rc1\n        vmlal.u8        q8,  d28, \\rc2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:2", "text": ".macro  qpel_lowpass_x2 r0,  r1,  r2,  r3,  rc1, rc2, shift\n        vext.8          d25, \\r0, \\r1, #1       @ src[-1]\n        vext.8          d26, \\r0, \\r1, #4       @ src[ 2]\n        vext.8          d24, \\r0, \\r1, #5       @ src[ 3]\n        vaddl.u8        q9,  d25, d26\n        vaddl.u8        q8,  \\r0, d24\n        vext.8          d29, \\r0, \\r1, #2       @ src[ 0]\n        vext.8          d28, \\r0, \\r1, #3       @ src[ 1]\n        vshl.s16        q10, q9,  #2\n        vext.8          \\r1, \\r2, \\r3, #1       @ src[-1]\n        vsub.s16        q8,  q8,  q9\n        vext.8          d22, \\r2, \\r3, #4       @ src[ 2]\n        vext.8          \\r0, \\r2, \\r3, #5       @ src[ 3]\n        vaddl.u8        q13, \\r1, d22\n        vaddl.u8        q12, \\r2, \\r0\n        vsub.s16        q8,  q8,  q10\n        vshl.s16        q9,  q13, #2\n        vsub.s16        q12, q12, q13\n        vmlal.u8        q8,  d29, \\rc1\n        vmlal.u8        q8,  d28, \\rc2\n        vsub.s16        q12, q12, q9\n        vext.8          d26, \\r2, \\r3, #2       @ src[ 0]\n        vext.8          d27, \\r2, \\r3, #3       @ src[ 1]\n        vmlal.u8        q12, d26, \\rc1\n        vmlal.u8        q12, d27, \\rc2\n        vqrshrun.s16    \\r0, q8,  #\\shift\n        vqrshrun.s16    \\r2, q12, #\\shift\n.endm\n\n.macro  rv40_qpel8_h    shift\nfunction put_rv40_qpel8_h_lp_packed_s\\shift\\()_neon\n1:\n        vld1.8          {q2},     [r1], r2\n        vld1.8          {q3},     [r1], r2\n        qpel_lowpass_x2 d4,  d5,  d6,  d7,  d0,  d1,  \\shift\n        vst1.8          {d4},     [r12,:64]!\n        vst1.8          {d6},     [r12,:64]!\n        subs            r3,  r3,  #2\n        bgt             1b\n        vld1.8          {q2},     [r1]\n        qpel_lowpass    d4,  d5,  d0,  d1,  \\shift\n        vst1.8          {d4},     [r12,:64]!\n        bx              lr\nendfunc\n.endm\n\n.macro  rv40_qpel8_v    shift, type\nfunction \\type\\()_rv40_qpel8_v_lp_packed_s\\shift\\()_neon\n        vld1.64         {d2},     [r1,:64]!\n        vld1.64         {d3},     [r1,:64]!\n        vld1.64         {d4},     [r1,:64]!\n        vld1.64         {d5},     [r1,:64]!\n        vld1.64         {d6},     [r1,:64]!\n        vld1.64         {d7},     [r1,:64]!\n        vld1.64         {d8},     [r1,:64]!\n        vld1.64         {d9},     [r1,:64]!\n        vld1.64         {d10},    [r1,:64]!\n        vld1.64         {d11},    [r1,:64]!\n        vld1.64         {d12},    [r1,:64]!\n        vld1.64         {d13},    [r1,:64]!", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:3", "text": "qpel_lowpass    d4,  d5,  d0,  d1,  \\shift\n        vst1.8          {d4},     [r12,:64]!\n        bx              lr\nendfunc\n.endm\n\n.macro  rv40_qpel8_v    shift, type\nfunction \\type\\()_rv40_qpel8_v_lp_packed_s\\shift\\()_neon\n        vld1.64         {d2},     [r1,:64]!\n        vld1.64         {d3},     [r1,:64]!\n        vld1.64         {d4},     [r1,:64]!\n        vld1.64         {d5},     [r1,:64]!\n        vld1.64         {d6},     [r1,:64]!\n        vld1.64         {d7},     [r1,:64]!\n        vld1.64         {d8},     [r1,:64]!\n        vld1.64         {d9},     [r1,:64]!\n        vld1.64         {d10},    [r1,:64]!\n        vld1.64         {d11},    [r1,:64]!\n        vld1.64         {d12},    [r1,:64]!\n        vld1.64         {d13},    [r1,:64]!\n        vld1.64         {d14},    [r1,:64]!\n        transpose_8x8   d2,  d3,  d4,  d5,  d6,  d7,  d8,  d9\n        transpose_8x8   d10, d11, d12, d13, d14, d15, d30, d31\n        qpel_lowpass_x2 d2,  d10, d3,  d11, d0,  d1,  \\shift\n        qpel_lowpass_x2 d4,  d12, d5,  d13, d0,  d1,  \\shift\n        qpel_lowpass_x2 d6,  d14, d7,  d15, d0,  d1,  \\shift\n        qpel_lowpass_x2 d8,  d30, d9,  d31, d0,  d1,  \\shift\n        transpose_8x8   d2,  d3,  d4,  d5,  d6,  d7,  d8,  d9\n  .ifc \\type,avg\n        vld1.64         d12,      [r0,:64], r2\n        vld1.64         d13,      [r0,:64], r2\n        vld1.64         d14,      [r0,:64], r2\n        vld1.64         d15,      [r0,:64], r2\n        vld1.64         d16,      [r0,:64], r2\n        vld1.64         d17,      [r0,:64], r2\n        vld1.64         d18,      [r0,:64], r2\n        vld1.64         d19,      [r0,:64], r2\n        sub             r0,  r0,  r2,  lsl #3\n        vrhadd.u8       q1,  q1,  q6\n        vrhadd.u8       q2,  q2,  q7\n        vrhadd.u8       q3,  q3,  q8\n        vrhadd.u8       q4,  q4,  q9\n  .endif\n        vst1.64         d2,       [r0,:64], r2\n        vst1.64         d3,       [r0,:64], r2\n        vst1.64         d4,       [r0,:64], r2\n        vst1.64         d5,       [r0,:64], r2\n        vst1.64         d6,       [r0,:64], r2\n        vst1.64         d7,       [r0,:64], r2\n        vst1.64         d8,       [r0,:64], r2\n        vst1.64         d9,       [r0,:64], r2\n        bx              lr\nendfunc\n.endm\n\n        rv40_qpel8_h    5\n        rv40_qpel8_h    6\n\n.macro  rv40_qpel       type\nfunction \\type\\()_rv40_qpel8_h_lowpass_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:4", "text": "vrhadd.u8       q3,  q3,  q8\n        vrhadd.u8       q4,  q4,  q9\n  .endif\n        vst1.64         d2,       [r0,:64], r2\n        vst1.64         d3,       [r0,:64], r2\n        vst1.64         d4,       [r0,:64], r2\n        vst1.64         d5,       [r0,:64], r2\n        vst1.64         d6,       [r0,:64], r2\n        vst1.64         d7,       [r0,:64], r2\n        vst1.64         d8,       [r0,:64], r2\n        vst1.64         d9,       [r0,:64], r2\n        bx              lr\nendfunc\n.endm\n\n        rv40_qpel8_h    5\n        rv40_qpel8_h    6\n\n.macro  rv40_qpel       type\nfunction \\type\\()_rv40_qpel8_h_lowpass_neon\n  .ifc \\type,avg\n        mov             r12, r0\n  .endif\n1:\n        vld1.8          {q2},     [r1], r2\n        vld1.8          {q3},     [r1], r2\n        qpel_lowpass_x2 d4,  d5,  d6,  d7,  d0,  d1,  6\n  .ifc \\type,avg\n        vld1.8          {d3},     [r12,:64], r2\n        vld1.8          {d16},    [r12,:64], r2\n        vrhadd.u8       d4,  d4,  d3\n        vrhadd.u8       d6,  d6,  d16\n  .endif\n        vst1.8          {d4},     [r0,:64], r2\n        vst1.8          {d6},     [r0,:64], r2\n        subs            r3,  r3,  #2\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction \\type\\()_rv40_qpel8_v_lowpass_neon\n        vld1.64         {d2},     [r1], r2\n        vld1.64         {d3},     [r1], r2\n        vld1.64         {d4},     [r1], r2\n        vld1.64         {d5},     [r1], r2\n        vld1.64         {d6},     [r1], r2\n        vld1.64         {d7},     [r1], r2\n        vld1.64         {d8},     [r1], r2\n        vld1.64         {d9},     [r1], r2\n        vld1.64         {d10},    [r1], r2\n        vld1.64         {d11},    [r1], r2\n        vld1.64         {d12},    [r1], r2\n        vld1.64         {d13},    [r1], r2\n        vld1.64         {d14},    [r1]\n        transpose_8x8   d2,  d3,  d4,  d5,  d6,  d7,  d8,  d9\n        transpose_8x8   d10, d11, d12, d13, d14, d15, d30, d31\n        qpel_lowpass_x2 d2,  d10, d3,  d11, d0,  d1,  6\n        qpel_lowpass_x2 d4,  d12, d5,  d13, d0,  d1,  6\n        qpel_lowpass_x2 d6,  d14, d7,  d15, d0,  d1,  6\n        qpel_lowpass_x2 d8,  d30, d9,  d31, d0,  d1,  6", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:5", "text": "function \\type\\()_rv40_qpel8_v_lowpass_neon\n        vld1.64         {d2},     [r1], r2\n        vld1.64         {d3},     [r1], r2\n        vld1.64         {d4},     [r1], r2\n        vld1.64         {d5},     [r1], r2\n        vld1.64         {d6},     [r1], r2\n        vld1.64         {d7},     [r1], r2\n        vld1.64         {d8},     [r1], r2\n        vld1.64         {d9},     [r1], r2\n        vld1.64         {d10},    [r1], r2\n        vld1.64         {d11},    [r1], r2\n        vld1.64         {d12},    [r1], r2\n        vld1.64         {d13},    [r1], r2\n        vld1.64         {d14},    [r1]\n        transpose_8x8   d2,  d3,  d4,  d5,  d6,  d7,  d8,  d9\n        transpose_8x8   d10, d11, d12, d13, d14, d15, d30, d31\n        qpel_lowpass_x2 d2,  d10, d3,  d11, d0,  d1,  6\n        qpel_lowpass_x2 d4,  d12, d5,  d13, d0,  d1,  6\n        qpel_lowpass_x2 d6,  d14, d7,  d15, d0,  d1,  6\n        qpel_lowpass_x2 d8,  d30, d9,  d31, d0,  d1,  6\n        transpose_8x8   d2,  d3,  d4,  d5,  d6,  d7,  d8,  d9\n  .ifc \\type,avg\n        vld1.64         d12,      [r0,:64], r2\n        vld1.64         d13,      [r0,:64], r2\n        vld1.64         d14,      [r0,:64], r2\n        vld1.64         d15,      [r0,:64], r2\n        vld1.64         d16,      [r0,:64], r2\n        vld1.64         d17,      [r0,:64], r2\n        vld1.64         d18,      [r0,:64], r2\n        vld1.64         d19,      [r0,:64], r2\n        sub             r0,  r0,  r2,  lsl #3\n        vrhadd.u8       q1,  q1,  q6\n        vrhadd.u8       q2,  q2,  q7\n        vrhadd.u8       q3,  q3,  q8\n        vrhadd.u8       q4,  q4,  q9\n  .endif\n        vst1.64         d2,       [r0,:64], r2\n        vst1.64         d3,       [r0,:64], r2\n        vst1.64         d4,       [r0,:64], r2\n        vst1.64         d5,       [r0,:64], r2\n        vst1.64         d6,       [r0,:64], r2\n        vst1.64         d7,       [r0,:64], r2\n        vst1.64         d8,       [r0,:64], r2\n        vst1.64         d9,       [r0,:64], r2\n        bx              lr\nendfunc\n\n        rv40_qpel8_v    5, \\type\n        rv40_qpel8_v    6, \\type\n\nfunction ff_\\type\\()_rv40_qpel8_mc10_neon, export=1\n        sub             r1,  r1,  #2\n        mov             r3,  #8\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        b               \\type\\()_rv40_qpel8_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc30_neon, export=1\n        sub             r1,  r1,  #2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:6", "text": "vst1.64         d6,       [r0,:64], r2\n        vst1.64         d7,       [r0,:64], r2\n        vst1.64         d8,       [r0,:64], r2\n        vst1.64         d9,       [r0,:64], r2\n        bx              lr\nendfunc\n\n        rv40_qpel8_v    5, \\type\n        rv40_qpel8_v    6, \\type\n\nfunction ff_\\type\\()_rv40_qpel8_mc10_neon, export=1\n        sub             r1,  r1,  #2\n        mov             r3,  #8\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        b               \\type\\()_rv40_qpel8_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc30_neon, export=1\n        sub             r1,  r1,  #2\n        mov             r3,  #8\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        b               \\type\\()_rv40_qpel8_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc01_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             r1,  r1,  r2,  lsl #1\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc11_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc21_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:7", "text": "sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc21_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vmov.i8         d0,  #52\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc31_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vswp            d0,  d1\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc12_neon, export=1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:8", "text": "vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vswp            d0,  d1\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc12_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vmov.i8         d0,  #20\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc22_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:9", "text": "function ff_\\type\\()_rv40_qpel8_mc22_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc32_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vmov.i8         d1,  #20\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc03_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             r1,  r1,  r2,  lsl #1\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc33_neon, export=1\n        mov             r3,  #8\n        b               X(ff_\\type\\()_pixels8_xy2_neon)\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc13_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:10", "text": "function ff_\\type\\()_rv40_qpel8_mc03_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             r1,  r1,  r2,  lsl #1\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc33_neon, export=1\n        mov             r3,  #8\n        b               X(ff_\\type\\()_pixels8_xy2_neon)\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc13_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vswp            d0,  d1\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel8_mc23_neon, export=1\n        push            {r4, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vmov.i8         d1,  #52\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc10_neon, export=1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:11", "text": "vpush           {d8-d15}\n        sub             sp,  sp,  #14*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        mov             r3,  #12\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        vmov.i8         d1,  #52\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #14*8\n        vpop            {d8-d15}\n        pop             {r4, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc10_neon, export=1\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n.L\\type\\()_rv40_qpel16_h:\n        push            {r1, lr}\n        sub             r1,  r1,  #2\n        mov             r3,  #16\n        bl              \\type\\()_rv40_qpel8_h_lowpass_neon\n        pop             {r1, lr}\n        sub             r0,  r0,  r2,  lsl #4\n        add             r0,  r0,  #8\n        add             r1,  r1,  #6\n        mov             r3,  #16\n        b               \\type\\()_rv40_qpel8_h_lowpass_neon\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc30_neon, export=1\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        b               .L\\type\\()_rv40_qpel16_h\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc01_neon, export=1\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n.L\\type\\()_rv40_qpel16_v:\n        sub             r1,  r1,  r2,  lsl #1\n        push            {r1, lr}\n        vpush           {d8-d15}\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r2,  lsl #2\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        ldr             r1,  [sp, #64]\n        sub             r0,  r0,  r2,  lsl #4\n        add             r0,  r0,  #8\n        add             r1,  r1,  #8\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r2,  lsl #2\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {r1, pc}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:12", "text": "function ff_\\type\\()_rv40_qpel16_mc01_neon, export=1\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n.L\\type\\()_rv40_qpel16_v:\n        sub             r1,  r1,  r2,  lsl #1\n        push            {r1, lr}\n        vpush           {d8-d15}\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r2,  lsl #2\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        ldr             r1,  [sp, #64]\n        sub             r0,  r0,  r2,  lsl #4\n        add             r0,  r0,  #8\n        add             r1,  r1,  #8\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        sub             r1,  r1,  r2,  lsl #2\n        bl              \\type\\()_rv40_qpel8_v_lowpass_neon\n        vpop            {d8-d15}\n        pop             {r1, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc11_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n.L\\type\\()_rv40_qpel16_v_s6:\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        sub             r0,  r0,  r2,  lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #44*8\n        vpop            {d8-d15}\n        pop             {r1, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc21_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:13", "text": "bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        sub             r0,  r0,  r2,  lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s6_neon\n        add             sp,  sp,  #44*8\n        vpop            {d8-d15}\n        pop             {r1, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc21_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        vmov.i8         d0,  #52\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc31_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        vswp            d0,  d1\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc12_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:14", "text": "add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        vswp            d0,  d1\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc12_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        vmov.i8         d0,  #20\n.L\\type\\()_rv40_qpel16_v_s5:\n        add             r1,  sp,  #7\n        bic             r1,  r1,  #7\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        sub             r0,  r0,  r2,  lsl #4\n        add             r0,  r0,  #8\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        add             sp,  sp,  #44*8\n        vpop            {d8-d15}\n        pop             {r1, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc22_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        ldr             r1,  [sp, #416]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:15", "text": "sub             r1,  r1,  #40\n        bl              \\type\\()_rv40_qpel8_v_lp_packed_s5_neon\n        add             sp,  sp,  #44*8\n        vpop            {d8-d15}\n        pop             {r1, pc}\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc22_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        b               .L\\type\\()_rv40_qpel16_v_s5\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc32_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        vmov.i8         d1,  #20\n        b               .L\\type\\()_rv40_qpel16_v_s5\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc03_neon, export=1\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        b               .L\\type\\()_rv40_qpel16_v\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc13_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:16", "text": "mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        vmov.i8         d1,  #20\n        b               .L\\type\\()_rv40_qpel16_v_s5\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc03_neon, export=1\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #52\n        b               .L\\type\\()_rv40_qpel16_v\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc13_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #52\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s6_neon\n        vswp            d0,  d1\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc23_neon, export=1\n        sub             r1,  r1,  r2,  lsl #1\n        sub             r1,  r1,  #2\n        push            {r1, lr}\n        vpush           {d8-d15}\n        sub             sp,  sp,  #44*8\n        add             r12, sp,  #7\n        bic             r12, r12, #7\n        mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        vmov.i8         d1,  #52\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc33_neon, export=1\n        mov             r3,  #16\n        b               X(ff_\\type\\()_pixels16_xy2_neon)\nendfunc\n.endm\n\n        rv40_qpel       put\n        rv40_qpel       avg", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:17", "text": "mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        vmov.i8         d1,  #52\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc33_neon, export=1\n        mov             r3,  #16\n        b               X(ff_\\type\\()_pixels16_xy2_neon)\nendfunc\n.endm\n\n        rv40_qpel       put\n        rv40_qpel       avg\n\n.macro  rv40_weight\n        vmovl.u8        q8,  d2\n        vmovl.u8        q9,  d3\n        vmovl.u8        q10, d4\n        vmovl.u8        q11, d5\n        vmull.u16       q2,  d16, d0[2]\n        vmull.u16       q3,  d17, d0[2]\n        vmull.u16       q8,  d18, d0[2]\n        vmull.u16       q9,  d19, d0[2]\n        vmull.u16       q12, d20, d0[0]\n        vmull.u16       q13, d21, d0[0]\n        vmull.u16       q14, d22, d0[0]\n        vmull.u16       q15, d23, d0[0]\n        vshrn.i32       d4,  q2,  #9\n        vshrn.i32       d5,  q3,  #9\n        vshrn.i32       d6,  q8,  #9\n        vshrn.i32       d7,  q9,  #9\n        vshrn.i32       d16, q12, #9\n        vshrn.i32       d17, q13, #9\n        vshrn.i32       d18, q14, #9\n        vshrn.i32       d19, q15, #9\n        vadd.u16        q2,  q2,  q8\n        vadd.u16        q3,  q3,  q9\n        vrshrn.i16      d2,  q2,  #5\n        vrshrn.i16      d3,  q3,  #5\n.endm\n\n/* void ff_rv40_weight_func_16_neon(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n *                                  int w1, int w2, int stride) */\nfunction ff_rv40_weight_func_16_neon, export=1\n        ldr             r12, [sp]\n        vmov            d0,  r3,  r12\n        ldr             r12, [sp, #4]\n        mov             r3,  #16\n1:\n        vld1.8          {q1},     [r1,:128], r12\n        vld1.8          {q2},     [r2,:128], r12\n        rv40_weight\n        vst1.8          {q1},     [r0,:128], r12", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:18", "text": "vshrn.i32       d18, q14, #9\n        vshrn.i32       d19, q15, #9\n        vadd.u16        q2,  q2,  q8\n        vadd.u16        q3,  q3,  q9\n        vrshrn.i16      d2,  q2,  #5\n        vrshrn.i16      d3,  q3,  #5\n.endm\n\n/* void ff_rv40_weight_func_16_neon(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n *                                  int w1, int w2, int stride) */\nfunction ff_rv40_weight_func_16_neon, export=1\n        ldr             r12, [sp]\n        vmov            d0,  r3,  r12\n        ldr             r12, [sp, #4]\n        mov             r3,  #16\n1:\n        vld1.8          {q1},     [r1,:128], r12\n        vld1.8          {q2},     [r2,:128], r12\n        rv40_weight\n        vst1.8          {q1},     [r0,:128], r12\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\n/* void ff_rv40_weight_func_8_neon(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n *                                 int w1, int w2, int stride) */\nfunction ff_rv40_weight_func_8_neon, export=1\n        ldr             r12, [sp]\n        vmov            d0,  r3,  r12\n        ldr             r12, [sp, #4]\n        mov             r3,  #8\n1:\n        vld1.8          {d2},     [r1,:64], r12\n        vld1.8          {d3},     [r1,:64], r12\n        vld1.8          {d4},     [r2,:64], r12\n        vld1.8          {d5},     [r2,:64], r12\n        rv40_weight\n        vst1.8          {d2},     [r0,:64], r12\n        vst1.8          {d3},     [r0,:64], r12\n        subs            r3,  r3,  #2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_rv40_h_loop_filter_strength_neon, export=1\n        pkhbt           r2,  r3,  r2,  lsl #18\n\n        ldr             r3,  [r0]\n        ldr_dpre        r12, r0,  r1\n        teq             r3,  r12\n        beq             1f\n\n        sub             r0,  r0,  r1,  lsl #1\n\n        vld1.32         {d4[]},   [r0,:32], r1  @ -3\n        vld1.32         {d0[]},   [r0,:32], r1  @ -2\n        vld1.32         {d4[1]},  [r0,:32], r1  @ -1\n        vld1.32         {d5[]},   [r0,:32], r1  @  0\n        vld1.32         {d1[]},   [r0,:32], r1  @  1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:19", "text": "subs            r3,  r3,  #2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_rv40_h_loop_filter_strength_neon, export=1\n        pkhbt           r2,  r3,  r2,  lsl #18\n\n        ldr             r3,  [r0]\n        ldr_dpre        r12, r0,  r1\n        teq             r3,  r12\n        beq             1f\n\n        sub             r0,  r0,  r1,  lsl #1\n\n        vld1.32         {d4[]},   [r0,:32], r1  @ -3\n        vld1.32         {d0[]},   [r0,:32], r1  @ -2\n        vld1.32         {d4[1]},  [r0,:32], r1  @ -1\n        vld1.32         {d5[]},   [r0,:32], r1  @  0\n        vld1.32         {d1[]},   [r0,:32], r1  @  1\n        vld1.32         {d5[0]},  [r0,:32], r1  @  2\n\n        vpaddl.u8       q8,  q0                 @ -2, -2, -2, -2,  1,  1,  1,  1\n        vpaddl.u8       q9,  q2                 @ -3, -3, -1, -1,  2,  2,  0,  0\n        vdup.32         d30, r2                 @ beta2, beta << 2\n        vpadd.u16       d16, d16, d17           @ -2, -2,  1,  1\n        vpadd.u16       d18, d18, d19           @ -3, -1,  2,  0\n        vabd.u16        d16, d18, d16\n        vclt.u16        d16, d16, d30\n\n        ldrd            r2,  r3,  [sp, #4]\n        vmovl.u16       q12, d16\n        vtrn.16         d16, d17\n        vshr.u32        q12, q12, #15\n        ldr             r0,  [sp]\n        vst1.32         {d24[1]}, [r2,:32]\n        vst1.32         {d25[1]}, [r3,:32]\n\n        cmp             r0,  #0\n        it              eq\n        bxeq            lr\n\n        vand            d18, d16, d17\n        vtrn.32         d18, d19\n        vand            d18, d18, d19\n        vmov.u16        r0,  d18[0]\n        bx              lr\n1:\n        ldrd            r2,  r3,  [sp, #4]\n        mov             r0,  #0\n        str             r0,  [r2]\n        str             r0,  [r3]\n        bx              lr\nendfunc\n\nfunction ff_rv40_v_loop_filter_strength_neon, export=1\n        sub             r0,  r0,  #3\n        pkhbt           r2,  r3,  r2,  lsl #18\n\n        vld1.8          {d0},     [r0], r1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:20", "text": "bxeq            lr\n\n        vand            d18, d16, d17\n        vtrn.32         d18, d19\n        vand            d18, d18, d19\n        vmov.u16        r0,  d18[0]\n        bx              lr\n1:\n        ldrd            r2,  r3,  [sp, #4]\n        mov             r0,  #0\n        str             r0,  [r2]\n        str             r0,  [r3]\n        bx              lr\nendfunc\n\nfunction ff_rv40_v_loop_filter_strength_neon, export=1\n        sub             r0,  r0,  #3\n        pkhbt           r2,  r3,  r2,  lsl #18\n\n        vld1.8          {d0},     [r0], r1\n        vld1.8          {d1},     [r0], r1\n        vld1.8          {d2},     [r0], r1\n        vld1.8          {d3},     [r0], r1\n\n        vaddl.u8        q0,  d0,  d1\n        vaddl.u8        q1,  d2,  d3\n        vdup.32         q15, r2\n        vadd.u16        q0,  q0,  q1            @ -3, -2, -1,  0,  1,  2\n        vext.16         q1,  q0,  q0,  #1       @ -2, -1,  0,  1,  2\n        vabd.u16        q0,  q1,  q0\n        vclt.u16        q0,  q0,  q15\n\n        ldrd            r2,  r3,  [sp, #4]\n        vmovl.u16       q1,  d0\n        vext.16         d1,  d0,  d1,  #3\n        vshr.u32        q1,  q1,  #15\n        ldr             r0,  [sp]\n        vst1.32         {d2[1]},  [r2,:32]\n        vst1.32         {d3[1]},  [r3,:32]\n\n        cmp             r0,  #0\n        it              eq\n        bxeq            lr\n\n        vand            d0,  d0,  d1\n        vtrn.16         d0,  d1\n        vand            d0,  d0,  d1\n        vmov.u16        r0,  d0[0]\n        bx              lr\nendfunc\n\n.macro  rv40_weak_loop_filter\n        vdup.16         d30, r2                 @ filter_p1\n        vdup.16         d31, r3                 @ filter_q1\n        ldrd            r2,  r3,  [sp]\n        vdup.16         d28, r2                 @ alpha\n        vdup.16         d29, r3                 @ beta\n        ldr             r12, [sp, #8]\n        vdup.16         d25, r12                @ lim_p0q0\n        ldrd            r2,  r3,  [sp, #12]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:21", "text": "cmp             r0,  #0\n        it              eq\n        bxeq            lr\n\n        vand            d0,  d0,  d1\n        vtrn.16         d0,  d1\n        vand            d0,  d0,  d1\n        vmov.u16        r0,  d0[0]\n        bx              lr\nendfunc\n\n.macro  rv40_weak_loop_filter\n        vdup.16         d30, r2                 @ filter_p1\n        vdup.16         d31, r3                 @ filter_q1\n        ldrd            r2,  r3,  [sp]\n        vdup.16         d28, r2                 @ alpha\n        vdup.16         d29, r3                 @ beta\n        ldr             r12, [sp, #8]\n        vdup.16         d25, r12                @ lim_p0q0\n        ldrd            r2,  r3,  [sp, #12]\n        vsubl.u8        q9,  d5,  d4            @ x, t\n        vabdl.u8        q8,  d5,  d4            @ x, abs(t)\n        vneg.s16        q15, q15\n        vceq.i16        d16, d19, #0            @ !t\n        vshl.s16        d19, d19, #2            @ t << 2\n        vmul.u16        d18, d17, d28           @ alpha * abs(t)\n        vand            d24, d30, d31           @ filter_p1 & filter_q1\n        vsubl.u8        q1,  d0,  d4            @ p1p2, p1p0\n        vsubl.u8        q3,  d1,  d5            @ q1q2, q1q0\n        vmov.i16        d22, #3\n        vshr.u16        d18, d18, #7\n        vadd.i16        d22, d22, d24           @ 3 - (filter_p1 & filter_q1)\n        vsubl.u8        q10, d0,  d1            @ src[-2] - src[1]\n        vcle.u16        d18, d18, d22\n        vand            d20, d20, d24\n        vneg.s16        d23, d25                @ -lim_p0q0\n        vadd.s16        d19, d19, d20\n        vbic            d16, d18, d16           @ t && u <= 3 - (fp1 & fq1)\n        vtrn.32         d4,  d5                 @ -3,  2, -1,  0\n        vrshr.s16       d19, d19, #3\n        vmov            d28, d29                @ beta\n        vswp            d3,  d6                 @ q1q2, p1p0\n        vmin.s16        d19, d19, d25\n        vand            d30, d30, d16\n        vand            d31, d31, d16\n        vadd.s16        q10, q1,  q3            @ p1p2 + p1p0, q1q2 + q1q0\n        vmax.s16        d19, d19, d23           @ diff\n        vabs.s16        q1,  q1                 @ abs(p1p2), abs(q1q2)\n        vand            d18, d19, d16           @ diff\n        vcle.u16        q1,  q1,  q14\n        vneg.s16        d19, d18                @ -diff\n        vdup.16         d26, r3                 @ lim_p1\n        vaddw.u8        q2,  q9,  d5            @ src[-1]+diff, src[0]-diff\n        vhsub.s16       q11, q10, q9\n        vand            q1,  q1,  q15\n        vqmovun.s16     d4,  q2                 @ -1,  0\n        vand            q9,  q11, q1\n        vdup.16         d27, r2                 @ lim_q1\n        vneg.s16        q9,  q9\n        vneg.s16        q14, q13", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:22", "text": "vmov            d28, d29                @ beta\n        vswp            d3,  d6                 @ q1q2, p1p0\n        vmin.s16        d19, d19, d25\n        vand            d30, d30, d16\n        vand            d31, d31, d16\n        vadd.s16        q10, q1,  q3            @ p1p2 + p1p0, q1q2 + q1q0\n        vmax.s16        d19, d19, d23           @ diff\n        vabs.s16        q1,  q1                 @ abs(p1p2), abs(q1q2)\n        vand            d18, d19, d16           @ diff\n        vcle.u16        q1,  q1,  q14\n        vneg.s16        d19, d18                @ -diff\n        vdup.16         d26, r3                 @ lim_p1\n        vaddw.u8        q2,  q9,  d5            @ src[-1]+diff, src[0]-diff\n        vhsub.s16       q11, q10, q9\n        vand            q1,  q1,  q15\n        vqmovun.s16     d4,  q2                 @ -1,  0\n        vand            q9,  q11, q1\n        vdup.16         d27, r2                 @ lim_q1\n        vneg.s16        q9,  q9\n        vneg.s16        q14, q13\n        vmin.s16        q9,  q9,  q13\n        vtrn.32         d0,  d1                 @ -2,  1,  -2,  1\n        vmax.s16        q9,  q9,  q14\n        vaddw.u8        q3,  q9,  d0\n        vqmovun.s16     d5,  q3                 @ -2,  1\n.endm\n\nfunction ff_rv40_h_weak_loop_filter_neon, export=1\n        sub             r0,  r0,  r1,  lsl #1\n        sub             r0,  r0,  r1\n\n        vld1.32         {d4[]},   [r0,:32], r1\n        vld1.32         {d0[]},   [r0,:32], r1\n        vld1.32         {d4[1]},  [r0,:32], r1\n        vld1.32         {d5[]},   [r0,:32], r1\n        vld1.32         {d1[]},   [r0,:32], r1\n        vld1.32         {d5[0]},  [r0,:32]\n\n        sub             r0,  r0,  r1,  lsl #2\n\n        rv40_weak_loop_filter\n\n        vst1.32         {d5[0]},  [r0,:32], r1\n        vst1.32         {d4[0]},  [r0,:32], r1\n        vst1.32         {d4[1]},  [r0,:32], r1\n        vst1.32         {d5[1]},  [r0,:32], r1\n\n        bx              lr\nendfunc\n\nfunction ff_rv40_v_weak_loop_filter_neon, export=1\n        sub             r12, r0,  #3\n        sub             r0,  r0,  #2\n\n        vld1.8          {d4},     [r12], r1\n        vld1.8          {d5},     [r12], r1\n        vld1.8          {d2},     [r12], r1\n        vld1.8          {d3},     [r12], r1\n\n        vtrn.16         q2,  q1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:23", "text": "rv40_weak_loop_filter\n\n        vst1.32         {d5[0]},  [r0,:32], r1\n        vst1.32         {d4[0]},  [r0,:32], r1\n        vst1.32         {d4[1]},  [r0,:32], r1\n        vst1.32         {d5[1]},  [r0,:32], r1\n\n        bx              lr\nendfunc\n\nfunction ff_rv40_v_weak_loop_filter_neon, export=1\n        sub             r12, r0,  #3\n        sub             r0,  r0,  #2\n\n        vld1.8          {d4},     [r12], r1\n        vld1.8          {d5},     [r12], r1\n        vld1.8          {d2},     [r12], r1\n        vld1.8          {d3},     [r12], r1\n\n        vtrn.16         q2,  q1\n        vtrn.8          d4,  d5\n        vtrn.8          d2,  d3\n\n        vrev64.32       d5,  d5\n        vtrn.32         q2,  q1\n        vdup.32         d0,  d3[0]\n        vdup.32         d1,  d2[0]\n\n        rv40_weak_loop_filter\n\n        vtrn.32         q2,  q3\n        vswp            d4,  d5\n\n        vst4.8          {d4[0],d5[0],d6[0],d7[0]}, [r0], r1\n        vst4.8          {d4[1],d5[1],d6[1],d7[1]}, [r0], r1\n        vst4.8          {d4[2],d5[2],d6[2],d7[2]}, [r0], r1\n        vst4.8          {d4[3],d5[3],d6[3],d7[3]}, [r0], r1\n\n        bx              lr\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/rv40dsp_neon.S", "line_start": 881, "line_end": 920}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:17", "text": "mov             r3,  #20\n        vmov.i8         d0,  #20\n        vmov.i8         d1,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        ldr             r1,  [sp, #416]\n        add             r1,  r1,  #8\n        mov             r3,  #20\n        bl              put_rv40_qpel8_h_lp_packed_s5_neon\n        vmov.i8         d1,  #52\n        b               .L\\type\\()_rv40_qpel16_v_s6\nendfunc\n\nfunction ff_\\type\\()_rv40_qpel16_mc33_neon, export=1\n        mov             r3,  #16\n        b               X(ff_\\type\\()_pixels16_xy2_neon)\nendfunc\n.endm\n\n        rv40_qpel       put\n        rv40_qpel       avg\n\n.macro  rv40_weight\n        vmovl.u8        q8,  d2\n        vmovl.u8        q9,  d3\n        vmovl.u8        q10, d4\n        vmovl.u8        q11, d5\n        vmull.u16       q2,  d16, d0[2]\n        vmull.u16       q3,  d17, d0[2]\n        vmull.u16       q8,  d18, d0[2]\n        vmull.u16       q9,  d19, d0[2]\n        vmull.u16       q12, d20, d0[0]\n        vmull.u16       q13, d21, d0[0]\n        vmull.u16       q14, d22, d0[0]\n        vmull.u16       q15, d23, d0[0]\n        vshrn.i32       d4,  q2,  #9\n        vshrn.i32       d5,  q3,  #9\n        vshrn.i32       d6,  q8,  #9\n        vshrn.i32       d7,  q9,  #9\n        vshrn.i32       d16, q12, #9\n        vshrn.i32       d17, q13, #9\n        vshrn.i32       d18, q14, #9\n        vshrn.i32       d19, q15, #9\n        vadd.u16        q2,  q2,  q8\n        vadd.u16        q3,  q3,  q9\n        vrshrn.i16      d2,  q2,  #5\n        vrshrn.i16      d3,  q3,  #5\n.endm\n\n/* void ff_rv40_weight_func_16_neon(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n                                    int w1, int w2, int stride) */\nfunction ff_rv40_weight_func_16_neon, export=1\n        ldr             r12, [sp]\n        vmov            d0,  r3,  r12\n        ldr             r12, [sp, #4]\n        mov             r3,  #16\n1:\n        vld1.8          {q1},     [r1,:128], r12\n        vld1.8          {q2},     [r2,:128], r12\n        rv40_weight\n        vst1.8          {q1},     [r0,:128], r12", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/rv40dsp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/rv40dsp_neon.S:18", "text": "vshrn.i32       d18, q14, #9\n        vshrn.i32       d19, q15, #9\n        vadd.u16        q2,  q2,  q8\n        vadd.u16        q3,  q3,  q9\n        vrshrn.i16      d2,  q2,  #5\n        vrshrn.i16      d3,  q3,  #5\n.endm\n\n/* void ff_rv40_weight_func_16_neon(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n                                    int w1, int w2, int stride) */\nfunction ff_rv40_weight_func_16_neon, export=1\n        ldr             r12, [sp]\n        vmov            d0,  r3,  r12\n        ldr             r12, [sp, #4]\n        mov             r3,  #16\n1:\n        vld1.8          {q1},     [r1,:128], r12\n        vld1.8          {q2},     [r2,:128], r12\n        rv40_weight\n        vst1.8          {q1},     [r0,:128], r12\n        subs            r3,  r3,  #1\n        bne             1b\n        bx              lr\nendfunc\n\n/* void ff_rv40_weight_func_8_neon(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n                                   int w1, int w2, int stride) */\nfunction ff_rv40_weight_func_8_neon, export=1\n        ldr             r12, [sp]\n        vmov            d0,  r3,  r12\n        ldr             r12, [sp, #4]\n        mov             r3,  #8\n1:\n        vld1.8          {d2},     [r1,:64], r12\n        vld1.8          {d3},     [r1,:64], r12\n        vld1.8          {d4},     [r2,:64], r12\n        vld1.8          {d5},     [r2,:64], r12\n        rv40_weight\n        vst1.8          {d2},     [r0,:64], r12\n        vst1.8          {d3},     [r0,:64], r12\n        subs            r3,  r3,  #2\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_rv40_h_loop_filter_strength_neon, export=1\n        pkhbt           r2,  r3,  r2,  lsl #18\n\n        ldr             r3,  [r0]\n        ldr_dpre        r12, r0,  r1\n        teq             r3,  r12\n        beq             1f\n\n        sub             r0,  r0,  r1,  lsl #1\n\n        vld1.32         {d4[]},   [r0,:32], r1  @ -3\n        vld1.32         {d0[]},   [r0,:32], r1  @ -2\n        vld1.32         {d4[1]},  [r0,:32], r1  @ -1\n        vld1.32         {d5[]},   [r0,:32], r1  @  0\n        vld1.32         {d1[]},   [r0,:32], r1  @  1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/rv40dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/rv40dsp_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_armv6.S:1", "text": "/*\n * Bluetooth low-complexity, subband codec (SBC)\n *\n * Copyright (C) 2017  Aurelien Jacobs <aurel@gnuage.org>\n * Copyright (C) 2008-2010  Nokia Corporation\n * Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>\n * Copyright (C) 2004-2005  Henryk Ploetz <henryk@ploetzli.ch>\n * Copyright (C) 2005-2006  Brad Midgley <bmidgley@xmission.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n/**\n * @file\n * SBC ARMv6 optimizations. The instructions are scheduled for ARM11 pipeline.\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_sbc_analyze_4_armv6, export=1\n        @ r0 = in, r1 = out, r2 = consts\n        push            {r1, r3-r7, lr}\n        push            {r8-r12, r14}\n        ldrd            r4,  r5,  [r0, #0]\n        ldrd            r6,  r7,  [r2, #0]\n        ldrd            r8,  r9,  [r0, #16]\n        ldrd            r10, r11, [r2, #16]\n        mov             r14, #0x8000\n        smlad           r3,  r4,  r6,  r14\n        smlad           r12, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #32]\n        ldrd            r6,  r7,  [r2, #32]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #48]\n        ldrd            r10, r11, [r2, #48]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #64]\n        ldrd            r6,  r7,  [r2, #64]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #8]\n        ldrd            r10, r11, [r2, #8]\n        smlad           r3,  r4,  r6,  r3        @ t1[0] is done\n        smlad           r12, r5,  r7,  r12       @ t1[1] is done", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_armv6.S:2", "text": "ldrd            r10, r11, [r2, #16]\n        mov             r14, #0x8000\n        smlad           r3,  r4,  r6,  r14\n        smlad           r12, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #32]\n        ldrd            r6,  r7,  [r2, #32]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #48]\n        ldrd            r10, r11, [r2, #48]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #64]\n        ldrd            r6,  r7,  [r2, #64]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #8]\n        ldrd            r10, r11, [r2, #8]\n        smlad           r3,  r4,  r6,  r3        @ t1[0] is done\n        smlad           r12, r5,  r7,  r12       @ t1[1] is done\n        ldrd            r4,  r5,  [r0, #24]\n        ldrd            r6,  r7,  [r2, #24]\n        pkhtb           r3,  r12, r3, asr #16    @ combine t1[0] and t1[1]\n        smlad           r12, r8,  r10, r14\n        smlad           r14, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #40]\n        ldrd            r10, r11, [r2, #40]\n        smlad           r12, r4,  r6,  r12\n        smlad           r14, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #56]\n        ldrd            r6,  r7,  [r2, #56]\n        smlad           r12, r8,  r10, r12\n        smlad           r14, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #72]\n        ldrd            r10, r11, [r2, #72]\n        smlad           r12, r4,  r6,  r12\n        smlad           r14, r5,  r7,  r14\n        ldrd            r4,  r5,  [r2, #80]      @ start loading cos table\n        smlad           r12, r8,  r10, r12       @ t1[2] is done\n        smlad           r14, r9,  r11, r14       @ t1[3] is done\n        ldrd            r6,  r7,  [r2, #88]\n        ldrd            r8,  r9,  [r2, #96]\n        ldrd            r10, r11, [r2, #104]     @ cos table fully loaded\n        pkhtb           r12, r14, r12, asr #16   @ combine t1[2] and t1[3]\n        smuad           r4,  r3,  r4\n        smuad           r5,  r3,  r5\n        smlad           r4,  r12, r8,  r4\n        smlad           r5,  r12, r9,  r5\n        smuad           r6,  r3,  r6\n        smuad           r7,  r3,  r7\n        smlad           r6,  r12, r10, r6\n        smlad           r7,  r12, r11, r7\n        pop             {r8-r12, r14}\n        stmia           r1, {r4, r5, r6, r7}\n        pop             {r1, r3-r7, pc}\nendfunc\n\nfunction ff_sbc_analyze_8_armv6, export=1\n        @ r0 = in, r1 = out, r2 = consts\n        push            {r1, r3-r7, lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_armv6.S:3", "text": "ldrd            r6,  r7,  [r2, #88]\n        ldrd            r8,  r9,  [r2, #96]\n        ldrd            r10, r11, [r2, #104]     @ cos table fully loaded\n        pkhtb           r12, r14, r12, asr #16   @ combine t1[2] and t1[3]\n        smuad           r4,  r3,  r4\n        smuad           r5,  r3,  r5\n        smlad           r4,  r12, r8,  r4\n        smlad           r5,  r12, r9,  r5\n        smuad           r6,  r3,  r6\n        smuad           r7,  r3,  r7\n        smlad           r6,  r12, r10, r6\n        smlad           r7,  r12, r11, r7\n        pop             {r8-r12, r14}\n        stmia           r1, {r4, r5, r6, r7}\n        pop             {r1, r3-r7, pc}\nendfunc\n\nfunction ff_sbc_analyze_8_armv6, export=1\n        @ r0 = in, r1 = out, r2 = consts\n        push            {r1, r3-r7, lr}\n        push            {r8-r12, r14}\n        ldrd            r4,  r5,  [r0, #24]\n        ldrd            r6,  r7,  [r2, #24]\n        ldrd            r8,  r9,  [r0, #56]\n        ldrd            r10, r11, [r2, #56]\n        mov             r14, #0x8000\n        smlad           r3,  r4,  r6,  r14\n        smlad           r12, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #88]\n        ldrd            r6,  r7,  [r2, #88]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #120]\n        ldrd            r10, r11, [r2, #120]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #152]\n        ldrd            r6,  r7,  [r2, #152]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #16]\n        ldrd            r10, r11, [r2, #16]\n        smlad           r3,  r4,  r6,  r3        @ t1[6] is done\n        smlad           r12, r5,  r7,  r12       @ t1[7] is done\n        ldrd            r4,  r5,  [r0, #48]\n        ldrd            r6,  r7,  [r2, #48]\n        pkhtb           r3,  r12, r3, asr #16    @ combine t1[6] and t1[7]\n        str             r3,  [sp, #-4]!          @ save to stack\n        smlad           r3,  r8,  r10, r14\n        smlad           r12, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #80]\n        ldrd            r10, r11, [r2, #80]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #112]\n        ldrd            r6,  r7,  [r2, #112]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #144]\n        ldrd            r10, r11, [r2, #144]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_armv6.S:4", "text": "ldrd            r8,  r9,  [r0, #16]\n        ldrd            r10, r11, [r2, #16]\n        smlad           r3,  r4,  r6,  r3        @ t1[6] is done\n        smlad           r12, r5,  r7,  r12       @ t1[7] is done\n        ldrd            r4,  r5,  [r0, #48]\n        ldrd            r6,  r7,  [r2, #48]\n        pkhtb           r3,  r12, r3, asr #16    @ combine t1[6] and t1[7]\n        str             r3,  [sp, #-4]!          @ save to stack\n        smlad           r3,  r8,  r10, r14\n        smlad           r12, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #80]\n        ldrd            r10, r11, [r2, #80]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #112]\n        ldrd            r6,  r7,  [r2, #112]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #144]\n        ldrd            r10, r11, [r2, #144]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #0]\n        ldrd            r6,  r7,  [r2, #0]\n        smlad           r3,  r8,  r10, r3        @ t1[4] is done\n        smlad           r12, r9,  r11, r12       @ t1[5] is done\n        ldrd            r8,  r9,  [r0, #32]\n        ldrd            r10, r11, [r2, #32]\n        pkhtb           r3,  r12, r3, asr #16    @ combine t1[4] and t1[5]\n        str             r3,  [sp, #-4]!          @ save to stack\n        smlad           r3,  r4,  r6,  r14\n        smlad           r12, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #64]\n        ldrd            r6,  r7,  [r2, #64]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #96]\n        ldrd            r10, r11, [r2, #96]\n        smlad           r3,  r4,  r6,  r3\n        smlad           r12, r5,  r7,  r12\n        ldrd            r4,  r5,  [r0, #128]\n        ldrd            r6,  r7,  [r2, #128]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #8]\n        ldrd            r10, r11, [r2, #8]\n        smlad           r3,  r4,  r6,  r3        @ t1[0] is done\n        smlad           r12, r5,  r7,  r12       @ t1[1] is done\n        ldrd            r4,  r5,  [r0, #40]\n        ldrd            r6,  r7,  [r2, #40]\n        pkhtb           r3,  r12, r3, asr #16    @ combine t1[0] and t1[1]\n        smlad           r12, r8,  r10, r14\n        smlad           r14, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #72]\n        ldrd            r10, r11, [r2, #72]\n        smlad           r12, r4,  r6,  r12\n        smlad           r14, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #104]\n        ldrd            r6,  r7,  [r2, #104]\n        smlad           r12, r8,  r10, r12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_armv6.S:5", "text": "ldrd            r4,  r5,  [r0, #128]\n        ldrd            r6,  r7,  [r2, #128]\n        smlad           r3,  r8,  r10, r3\n        smlad           r12, r9,  r11, r12\n        ldrd            r8,  r9,  [r0, #8]\n        ldrd            r10, r11, [r2, #8]\n        smlad           r3,  r4,  r6,  r3        @ t1[0] is done\n        smlad           r12, r5,  r7,  r12       @ t1[1] is done\n        ldrd            r4,  r5,  [r0, #40]\n        ldrd            r6,  r7,  [r2, #40]\n        pkhtb           r3,  r12, r3, asr #16    @ combine t1[0] and t1[1]\n        smlad           r12, r8,  r10, r14\n        smlad           r14, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #72]\n        ldrd            r10, r11, [r2, #72]\n        smlad           r12, r4,  r6,  r12\n        smlad           r14, r5,  r7,  r14\n        ldrd            r4,  r5,  [r0, #104]\n        ldrd            r6,  r7,  [r2, #104]\n        smlad           r12, r8,  r10, r12\n        smlad           r14, r9,  r11, r14\n        ldrd            r8,  r9,  [r0, #136]\n        ldrd            r10, r11, [r2, #136]!\n        smlad           r12, r4,  r6,  r12\n        smlad           r14, r5,  r7,  r14\n        ldrd            r4,  r5,  [r2, #(160 - 136 + 0)]\n        smlad           r12, r8,  r10, r12       @ t1[2] is done\n        smlad           r14, r9,  r11, r14       @ t1[3] is done\n        ldrd            r6,  r7,  [r2, #(160 - 136 + 8)]\n        smuad           r4,  r3,  r4\n        smuad           r5,  r3,  r5\n        pkhtb           r12, r14, r12, asr #16   @ combine t1[2] and t1[3]\n                                                 @ r3  = t2[0:1]\n                                                 @ r12 = t2[2:3]\n        pop             {r0, r14}                @ t2[4:5], t2[6:7]\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 32)]\n        smuad           r6,  r3,  r6\n        smuad           r7,  r3,  r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 40)]\n        smlad           r4,  r12, r8,  r4\n        smlad           r5,  r12, r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 64)]\n        smlad           r6,  r12, r10, r6\n        smlad           r7,  r12, r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 72)]\n        smlad           r4,  r0,  r8,  r4\n        smlad           r5,  r0,  r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 96)]\n        smlad           r6,  r0,  r10, r6\n        smlad           r7,  r0,  r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 104)]\n        smlad           r4,  r14, r8,  r4\n        smlad           r5,  r14, r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 16 + 0)]\n        smlad           r6,  r14, r10, r6\n        smlad           r7,  r14, r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 16 + 8)]\n        stmia           r1!, {r4, r5}\n        smuad           r4,  r3,  r8\n        smuad           r5,  r3,  r9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_armv6.S:6", "text": "smlad           r5,  r12, r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 64)]\n        smlad           r6,  r12, r10, r6\n        smlad           r7,  r12, r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 72)]\n        smlad           r4,  r0,  r8,  r4\n        smlad           r5,  r0,  r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 96)]\n        smlad           r6,  r0,  r10, r6\n        smlad           r7,  r0,  r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 104)]\n        smlad           r4,  r14, r8,  r4\n        smlad           r5,  r14, r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 16 + 0)]\n        smlad           r6,  r14, r10, r6\n        smlad           r7,  r14, r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 16 + 8)]\n        stmia           r1!, {r4, r5}\n        smuad           r4,  r3,  r8\n        smuad           r5,  r3,  r9\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 16 + 32)]\n        stmia           r1!, {r6, r7}\n        smuad           r6,  r3,  r10\n        smuad           r7,  r3,  r11\n        ldrd            r10, r11, [r2, #(160 - 136 + 16 + 40)]\n        smlad           r4,  r12, r8,  r4\n        smlad           r5,  r12, r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 16 + 64)]\n        smlad           r6,  r12, r10, r6\n        smlad           r7,  r12, r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 16 + 72)]\n        smlad           r4,  r0,  r8,  r4\n        smlad           r5,  r0,  r9,  r5\n        ldrd            r8,  r9,  [r2, #(160 - 136 + 16 + 96)]\n        smlad           r6,  r0,  r10, r6\n        smlad           r7,  r0,  r11, r7\n        ldrd            r10, r11, [r2, #(160 - 136 + 16 + 104)]\n        smlad           r4,  r14, r8,  r4\n        smlad           r5,  r14, r9,  r5\n        smlad           r6,  r14, r10, r6\n        smlad           r7,  r14, r11, r7\n        pop             {r8-r12, r14}\n        stmia           r1!, {r4, r5, r6, r7}\n        pop             {r1, r3-r7, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_armv6.S", "line_start": 201, "line_end": 245}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:1", "text": "/*\n * Bluetooth low-complexity, subband codec (SBC)\n *\n * Copyright (C) 2017  Aurelien Jacobs <aurel@gnuage.org>\n * Copyright (C) 2008-2010  Nokia Corporation\n * Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>\n * Copyright (C) 2004-2005  Henryk Ploetz <henryk@ploetzli.ch>\n * Copyright (C) 2005-2006  Brad Midgley <bmidgley@xmission.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n/**\n * @file\n * SBC ARM NEON optimizations\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n#define SBC_PROTO_FIXED_SCALE 16\n\nfunction ff_sbc_analyze_4_neon, export=1\n        /* TODO: merge even and odd cases (or even merge all four calls to this\n         * function) in order to have only aligned reads from 'in' array\n         * and reduce number of load instructions */\n        vld1.16         {d16, d17}, [r0, :64]!\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmull.s16       q0, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmull.s16       q1, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n\n        vmlal.s16       q0, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q1, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q0, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q1, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n\n        vmlal.s16       q0, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:2", "text": "vld1.16         {d16, d17}, [r0, :64]!\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmull.s16       q0, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmull.s16       q1, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n\n        vmlal.s16       q0, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q1, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q0, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q1, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n\n        vmlal.s16       q0, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q1, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q0, d16, d20\n        vmlal.s16       q1, d17, d21\n\n        vpadd.s32       d0, d0, d1\n        vpadd.s32       d1, d2, d3\n\n        vrshrn.s32      d0, q0, SBC_PROTO_FIXED_SCALE\n\n        vld1.16         {d16, d17, d18, d19}, [r2, :128]!\n\n        vdup.i32        d1, d0[1]  /* TODO: can be eliminated */\n        vdup.i32        d0, d0[0]  /* TODO: can be eliminated */\n\n        vmull.s16       q10, d16, d0\n        vmull.s16       q11, d17, d0\n        vmlal.s16       q10, d18, d1\n        vmlal.s16       q11, d19, d1\n\n        vpadd.s32       d0, d20, d21 /* TODO: can be eliminated */\n        vpadd.s32       d1, d22, d23 /* TODO: can be eliminated */\n\n        vst1.32         {d0, d1}, [r1, :128]\n\n        bx              lr\nendfunc\n\nfunction ff_sbc_analyze_8_neon, export=1\n        /* TODO: merge even and odd cases (or even merge all four calls to this\n         * function) in order to have only aligned reads from 'in' array\n         * and reduce number of load instructions */\n        vld1.16         {d16, d17}, [r0, :64]!\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmull.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmull.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:3", "text": "vpadd.s32       d0, d20, d21 /* TODO: can be eliminated */\n        vpadd.s32       d1, d22, d23 /* TODO: can be eliminated */\n\n        vst1.32         {d0, d1}, [r1, :128]\n\n        bx              lr\nendfunc\n\nfunction ff_sbc_analyze_8_neon, export=1\n        /* TODO: merge even and odd cases (or even merge all four calls to this\n         * function) in order to have only aligned reads from 'in' array\n         * and reduce number of load instructions */\n        vld1.16         {d16, d17}, [r0, :64]!\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmull.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmull.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n        vmull.s16       q14, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmull.s16       q15, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n        vmlal.s16       q14, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q15, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n        vmlal.s16       q14, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q15, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n        vmlal.s16       q14, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q15, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n\n        vmlal.s16       q14, d18, d22\n        vmlal.s16       q15, d19, d23", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:4", "text": "vmlal.s16       q15, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n        vmlal.s16       q14, d18, d22\n        vld1.16         {d16, d17}, [r0, :64]!\n        vmlal.s16       q15, d19, d23\n        vld1.16         {d20, d21}, [r2, :128]!\n\n        vmlal.s16       q12, d16, d20\n        vld1.16         {d18, d19}, [r0, :64]!\n        vmlal.s16       q13, d17, d21\n        vld1.16         {d22, d23}, [r2, :128]!\n\n        vmlal.s16       q14, d18, d22\n        vmlal.s16       q15, d19, d23\n\n        vpadd.s32       d0, d24, d25\n        vpadd.s32       d1, d26, d27\n        vpadd.s32       d2, d28, d29\n        vpadd.s32       d3, d30, d31\n\n        vrshr.s32       q0, q0, SBC_PROTO_FIXED_SCALE\n        vrshr.s32       q1, q1, SBC_PROTO_FIXED_SCALE\n        vmovn.s32       d0, q0\n        vmovn.s32       d1, q1\n\n        vdup.i32        d3, d1[1]  /* TODO: can be eliminated */\n        vdup.i32        d2, d1[0]  /* TODO: can be eliminated */\n        vdup.i32        d1, d0[1]  /* TODO: can be eliminated */\n        vdup.i32        d0, d0[0]  /* TODO: can be eliminated */\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmull.s16       q12, d16, d0\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmull.s16       q13, d17, d0\n        vmull.s16       q14, d18, d0\n        vmull.s16       q15, d19, d0\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmlal.s16       q12, d16, d1\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmlal.s16       q13, d17, d1\n        vmlal.s16       q14, d18, d1\n        vmlal.s16       q15, d19, d1\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmlal.s16       q12, d16, d2\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmlal.s16       q13, d17, d2\n        vmlal.s16       q14, d18, d2\n        vmlal.s16       q15, d19, d2\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmlal.s16       q12, d16, d3\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmlal.s16       q13, d17, d3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:5", "text": "vmull.s16       q15, d19, d0\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmlal.s16       q12, d16, d1\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmlal.s16       q13, d17, d1\n        vmlal.s16       q14, d18, d1\n        vmlal.s16       q15, d19, d1\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmlal.s16       q12, d16, d2\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmlal.s16       q13, d17, d2\n        vmlal.s16       q14, d18, d2\n        vmlal.s16       q15, d19, d2\n\n        vld1.16         {d16, d17}, [r2, :128]!\n        vmlal.s16       q12, d16, d3\n        vld1.16         {d18, d19}, [r2, :128]!\n        vmlal.s16       q13, d17, d3\n        vmlal.s16       q14, d18, d3\n        vmlal.s16       q15, d19, d3\n\n        vpadd.s32       d0, d24, d25 /* TODO: can be eliminated */\n        vpadd.s32       d1, d26, d27 /* TODO: can be eliminated */\n        vpadd.s32       d2, d28, d29 /* TODO: can be eliminated */\n        vpadd.s32       d3, d30, d31 /* TODO: can be eliminated */\n\n        vst1.32         {d0, d1, d2, d3}, [r1, :128]\n\n        bx              lr\nendfunc\n\nfunction ff_sbc_calc_scalefactors_neon, export=1\n        @ parameters\n        @ r0 = sb_sample_f\n        @ r1 = scale_factor\n        @ r2 = blocks\n        @ r3 = channels\n        @ r4 = subbands\n        @ local variables\n        @ r5 = in_loop_1\n        @ r6 = in\n        @ r7 = out_loop_1\n        @ r8 = out\n        @ r9 = ch\n        @ r10 = sb\n        @ r11 = inc\n        @ r12 = blk\n\n        push            {r1-r2, r4-r12}\n        ldr             r4,  [sp, #44]\n        mov             r11, #64\n\n        mov             r9,  #0\n1:\n        add             r5,  r0,  r9, lsl#5\n        add             r7,  r1,  r9, lsl#5\n\n        mov             r10,  #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:6", "text": "@ local variables\n        @ r5 = in_loop_1\n        @ r6 = in\n        @ r7 = out_loop_1\n        @ r8 = out\n        @ r9 = ch\n        @ r10 = sb\n        @ r11 = inc\n        @ r12 = blk\n\n        push            {r1-r2, r4-r12}\n        ldr             r4,  [sp, #44]\n        mov             r11, #64\n\n        mov             r9,  #0\n1:\n        add             r5,  r0,  r9, lsl#5\n        add             r7,  r1,  r9, lsl#5\n\n        mov             r10,  #0\n2:\n        add             r6,  r5,  r10, lsl#2\n        add             r8,  r7,  r10, lsl#2\n        mov             r12, r2\n\n        vmov.s32        q0,  #0\n        vmov.s32        q1,  #0x8000            @ 1 << SCALE_OUT_BITS\n        vmov.s32        q14, #1\n        vmov.s32        q15, #16                @ 31 - SCALE_OUT_BITS\n        vadd.s32        q1,  q1,  q14\n3:\n        vld1.32         {d16, d17}, [r6, :128], r11\n        vabs.s32        q8,  q8\n        vld1.32         {d18, d19}, [r6, :128], r11\n        vabs.s32        q9,  q9\n        vld1.32         {d20, d21}, [r6, :128], r11\n        vabs.s32        q10, q10\n        vld1.32         {d22, d23}, [r6, :128], r11\n        vabs.s32        q11, q11\n        vmax.s32        q0,  q0,  q8\n        vmax.s32        q1,  q1,  q9\n        vmax.s32        q0,  q0,  q10\n        vmax.s32        q1,  q1,  q11\n        subs            r12, r12, #4\n        bgt             3b\n        vmax.s32        q0,  q0,  q1\n        vsub.s32        q0,  q0,  q14\n        vclz.s32        q0,  q0\n        vsub.s32        q0,  q15, q0\n        vst1.32         {d0, d1}, [r8, :128]\n\n        add             r10, r10, #4\n        cmp             r10, r4\n        blt             2b\n\n        add             r9,  r9,  #1\n        cmp             r9,  r3\n        blt             1b\n\n        pop             {r1-r2, r4-r12}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:7", "text": "vmax.s32        q1,  q1,  q9\n        vmax.s32        q0,  q0,  q10\n        vmax.s32        q1,  q1,  q11\n        subs            r12, r12, #4\n        bgt             3b\n        vmax.s32        q0,  q0,  q1\n        vsub.s32        q0,  q0,  q14\n        vclz.s32        q0,  q0\n        vsub.s32        q0,  q15, q0\n        vst1.32         {d0, d1}, [r8, :128]\n\n        add             r10, r10, #4\n        cmp             r10, r4\n        blt             2b\n\n        add             r9,  r9,  #1\n        cmp             r9,  r3\n        blt             1b\n\n        pop             {r1-r2, r4-r12}\n        bx              lr\nendfunc\n\n/*\n * constants: q13 = (31 - SCALE_OUT_BITS)\n *            q14 = 1\n * input:     q0  - ((1 << SCALE_OUT_BITS) + 1)\n *            r5  - samples for channel 0\n *            r6  - samples for shannel 1\n * output:    q0, q1 - scale factors without joint stereo\n *            q2, q3 - scale factors with joint stereo\n *            q15    - joint stereo selection mask\n */\n.macro calc_scalefactors\n        vmov.s32        q1,  q0\n        vmov.s32        q2,  q0\n        vmov.s32        q3,  q0\n        mov             r3,  r2\n1:\n        vld1.32         {d18, d19}, [r6, :128], r11\n        vbic.s32        q11, q9,  q14\n        vld1.32         {d16, d17}, [r5, :128], r11\n        vhadd.s32       q10, q8,  q11\n        vhsub.s32       q11, q8,  q11\n        vabs.s32        q8,  q8\n        vabs.s32        q9,  q9\n        vabs.s32        q10, q10\n        vabs.s32        q11, q11\n        vmax.s32        q0,  q0,  q8\n        vmax.s32        q1,  q1,  q9\n        vmax.s32        q2,  q2,  q10\n        vmax.s32        q3,  q3,  q11\n        subs            r3,  r3,  #1\n        bgt             1b\n        vsub.s32        q0,  q0,  q14\n        vsub.s32        q1,  q1,  q14\n        vsub.s32        q2,  q2,  q14\n        vsub.s32        q3,  q3,  q14\n        vclz.s32        q0,  q0\n        vclz.s32        q1,  q1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:8", "text": "vbic.s32        q11, q9,  q14\n        vld1.32         {d16, d17}, [r5, :128], r11\n        vhadd.s32       q10, q8,  q11\n        vhsub.s32       q11, q8,  q11\n        vabs.s32        q8,  q8\n        vabs.s32        q9,  q9\n        vabs.s32        q10, q10\n        vabs.s32        q11, q11\n        vmax.s32        q0,  q0,  q8\n        vmax.s32        q1,  q1,  q9\n        vmax.s32        q2,  q2,  q10\n        vmax.s32        q3,  q3,  q11\n        subs            r3,  r3,  #1\n        bgt             1b\n        vsub.s32        q0,  q0,  q14\n        vsub.s32        q1,  q1,  q14\n        vsub.s32        q2,  q2,  q14\n        vsub.s32        q3,  q3,  q14\n        vclz.s32        q0,  q0\n        vclz.s32        q1,  q1\n        vclz.s32        q2,  q2\n        vclz.s32        q3,  q3\n        vsub.s32        q0,  q13, q0\n        vsub.s32        q1,  q13, q1\n        vsub.s32        q2,  q13, q2\n        vsub.s32        q3,  q13, q3\n.endm\n\n/*\n * constants: q14 = 1\n * input: q15 - joint stereo selection mask\n *        r5  - value set by calc_scalefactors macro\n *        r6  - value set by calc_scalefactors macro\n */\n.macro update_joint_stereo_samples\n        sub             r8,  r6,  r11\n        sub             r7,  r5,  r11\n        sub             r6,  r6,  r11, asl #1\n        sub             r5,  r5,  r11, asl #1\n        vld1.32         {d18, d19}, [r6, :128]\n        vbic.s32        q11, q9,  q14\n        vld1.32         {d16, d17}, [r5, :128]\n        vld1.32         {d2, d3}, [r8, :128]\n        vbic.s32        q3,  q1,  q14\n        vld1.32         {d0, d1}, [r7, :128]\n        vhsub.s32       q10, q8,  q11\n        vhadd.s32       q11, q8,  q11\n        vhsub.s32       q2,  q0,  q3\n        vhadd.s32       q3,  q0,  q3\n        vbif.s32        q10, q9,  q15\n        vbif.s32        d22, d16, d30\n        sub             r11, r10, r11, asl #1\n        sub             r3,  r2,  #2\n2:\n        vbif.s32        d23, d17, d31\n        vst1.32         {d20, d21}, [r6, :128], r11\n        vbif.s32        d4,  d2,  d30\n        vld1.32         {d18, d19}, [r6, :128]\n        vbif.s32        d5,  d3,  d31\n        vst1.32         {d22, d23}, [r5, :128], r11", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:9", "text": "vbic.s32        q11, q9,  q14\n        vld1.32         {d16, d17}, [r5, :128]\n        vld1.32         {d2, d3}, [r8, :128]\n        vbic.s32        q3,  q1,  q14\n        vld1.32         {d0, d1}, [r7, :128]\n        vhsub.s32       q10, q8,  q11\n        vhadd.s32       q11, q8,  q11\n        vhsub.s32       q2,  q0,  q3\n        vhadd.s32       q3,  q0,  q3\n        vbif.s32        q10, q9,  q15\n        vbif.s32        d22, d16, d30\n        sub             r11, r10, r11, asl #1\n        sub             r3,  r2,  #2\n2:\n        vbif.s32        d23, d17, d31\n        vst1.32         {d20, d21}, [r6, :128], r11\n        vbif.s32        d4,  d2,  d30\n        vld1.32         {d18, d19}, [r6, :128]\n        vbif.s32        d5,  d3,  d31\n        vst1.32         {d22, d23}, [r5, :128], r11\n        vbif.s32        d6,  d0,  d30\n        vld1.32         {d16, d17}, [r5, :128]\n        vbif.s32        d7,  d1,  d31\n        vst1.32         {d4, d5}, [r8, :128], r11\n        vbic.s32        q11, q9,  q14\n        vld1.32         {d2, d3}, [r8, :128]\n        vst1.32         {d6, d7}, [r7, :128], r11\n        vbic.s32        q3,  q1,  q14\n        vld1.32         {d0, d1}, [r7, :128]\n        vhsub.s32       q10, q8,  q11\n        vhadd.s32       q11, q8,  q11\n        vhsub.s32       q2,  q0,  q3\n        vhadd.s32       q3,  q0,  q3\n        vbif.s32        q10, q9,  q15\n        vbif.s32        d22, d16, d30\n        subs            r3,  r3,  #2\n        bgt             2b\n        sub             r11, r10, r11, asr #1\n        vbif.s32        d23, d17, d31\n        vst1.32         {d20, d21}, [r6, :128]\n        vbif.s32        q2,  q1,  q15\n        vst1.32         {d22, d23}, [r5, :128]\n        vbif.s32        q3,  q0,  q15\n        vst1.32         {d4, d5}, [r8, :128]\n        vst1.32         {d6, d7}, [r7, :128]\n.endm\n\nfunction ff_sbc_calc_scalefactors_j_neon, export=1\n        @ parameters\n        @ r0 = in = sb_sample_f\n        @ r1 = out = scale_factor\n        @ r2 = blocks\n        @ r3 = subbands\n        @ local variables\n        @ r4 = consts = ff_sbcdsp_joint_bits_mask\n        @ r5 = in0\n        @ r6 = in1\n        @ r7 = out0\n        @ r8 = out1\n        @ r10 = zero", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:10", "text": "vbif.s32        q2,  q1,  q15\n        vst1.32         {d22, d23}, [r5, :128]\n        vbif.s32        q3,  q0,  q15\n        vst1.32         {d4, d5}, [r8, :128]\n        vst1.32         {d6, d7}, [r7, :128]\n.endm\n\nfunction ff_sbc_calc_scalefactors_j_neon, export=1\n        @ parameters\n        @ r0 = in = sb_sample_f\n        @ r1 = out = scale_factor\n        @ r2 = blocks\n        @ r3 = subbands\n        @ local variables\n        @ r4 = consts = ff_sbcdsp_joint_bits_mask\n        @ r5 = in0\n        @ r6 = in1\n        @ r7 = out0\n        @ r8 = out1\n        @ r10 = zero\n        @ r11 = inc\n        @ return r0 = joint\n\n        push            {r3-r11}\n        movrelx         r4,  X(ff_sbcdsp_joint_bits_mask)\n        mov             r10, #0\n        mov             r11, #64\n\n        vmov.s32        q14, #1\n        vmov.s32        q13, #16    @ 31 - SCALE_OUT_BITS\n\n        cmp             r3, #4\n        bne             8f\n\n4:      @ 4 subbands\n        add             r5,  r0,  #0\n        add             r6,  r0,  #32\n        add             r7,  r1,  #0\n        add             r8,  r1,  #32\n        vmov.s32        q0,  #0x8000    @ 1 << SCALE_OUT_BITS\n        vadd.s32        q0,  q0,  q14\n\n        calc_scalefactors\n\n        @ check whether to use joint stereo for subbands 0, 1, 2\n        vadd.s32        q15, q0,  q1\n        vadd.s32        q9,  q2,  q3\n        vmov.s32        d31[1], r10    @ last subband -> no joint\n        vld1.32         {d16, d17}, [r4, :128]!\n        vcgt.s32        q15, q15, q9\n\n        @ calculate and save to memory 'joint' variable\n        @ update and save scale factors to memory\n        vand.s32        q8,  q8,  q15\n        vbit.s32        q0,  q2,  q15\n        vpadd.s32       d16, d16, d17\n        vbit.s32        q1,  q3,  q15\n        vpadd.s32       d16, d16, d16\n        vst1.32         {d0, d1}, [r7, :128]\n        vst1.32         {d2, d3}, [r8, :128]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:11", "text": "vadd.s32        q0,  q0,  q14\n\n        calc_scalefactors\n\n        @ check whether to use joint stereo for subbands 0, 1, 2\n        vadd.s32        q15, q0,  q1\n        vadd.s32        q9,  q2,  q3\n        vmov.s32        d31[1], r10    @ last subband -> no joint\n        vld1.32         {d16, d17}, [r4, :128]!\n        vcgt.s32        q15, q15, q9\n\n        @ calculate and save to memory 'joint' variable\n        @ update and save scale factors to memory\n        vand.s32        q8,  q8,  q15\n        vbit.s32        q0,  q2,  q15\n        vpadd.s32       d16, d16, d17\n        vbit.s32        q1,  q3,  q15\n        vpadd.s32       d16, d16, d16\n        vst1.32         {d0, d1}, [r7, :128]\n        vst1.32         {d2, d3}, [r8, :128]\n        vmov.32         r0, d16[0]\n\n        update_joint_stereo_samples\n        b               9f\n\n8:      @ 8 subbands\n        add             r5,  r0,  #16\n        add             r6,  r0,  #48\n        add             r7,  r1,  #16\n        add             r8,  r1,  #48\n        vmov.s32        q0,  #0x8000    @ 1 << SCALE_OUT_BITS\n        vadd.s32        q0,  q0,  q14\n\n        calc_scalefactors\n\n        @ check whether to use joint stereo for subbands 4, 5, 6\n        vadd.s32        q15, q0,  q1\n        vadd.s32        q9,  q2,  q3\n        vmov.s32        d31[1], r10    @ last subband -> no joint\n        vld1.32         {d16, d17}, [r4, :128]!\n        vcgt.s32        q15, q15, q9\n\n        @ calculate part of 'joint' variable and save it to d24\n        @ update and save scale factors to memory\n        vand.s32        q8,  q8,  q15\n        vbit.s32        q0,  q2,  q15\n        vpadd.s32       d16, d16, d17\n        vbit.s32        q1,  q3,  q15\n        vst1.32         {d0, d1}, [r7, :128]\n        vst1.32         {d2, d3}, [r8, :128]\n        vpadd.s32       d24, d16, d16\n\n        update_joint_stereo_samples\n\n        add             r5,  r0,  #0\n        add             r6,  r0,  #32\n        add             r7,  r1,  #0\n        add             r8,  r1,  #32\n        vmov.s32        q0,  #0x8000    @ 1 << SCALE_OUT_BITS\n        vadd.s32        q0,  q0,  q14", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:12", "text": "vcgt.s32        q15, q15, q9\n\n        @ calculate part of 'joint' variable and save it to d24\n        @ update and save scale factors to memory\n        vand.s32        q8,  q8,  q15\n        vbit.s32        q0,  q2,  q15\n        vpadd.s32       d16, d16, d17\n        vbit.s32        q1,  q3,  q15\n        vst1.32         {d0, d1}, [r7, :128]\n        vst1.32         {d2, d3}, [r8, :128]\n        vpadd.s32       d24, d16, d16\n\n        update_joint_stereo_samples\n\n        add             r5,  r0,  #0\n        add             r6,  r0,  #32\n        add             r7,  r1,  #0\n        add             r8,  r1,  #32\n        vmov.s32        q0,  #0x8000    @ 1 << SCALE_OUT_BITS\n        vadd.s32        q0,  q0,  q14\n\n        calc_scalefactors\n\n        @ check whether to use joint stereo for subbands 0, 1, 2, 3\n        vadd.s32        q15, q0,  q1\n        vadd.s32        q9,  q2,  q3\n        vld1.32         {d16, d17}, [r4, :128]!\n        vcgt.s32        q15, q15, q9\n\n        @ combine last part of 'joint' with d24 and save to memory\n        @ update and save scale factors to memory\n        vand.s32        q8,  q8,  q15\n        vbit.s32        q0,  q2,  q15\n        vpadd.s32       d16, d16, d17\n        vbit.s32        q1,  q3,  q15\n        vpadd.s32       d16, d16, d16\n        vst1.32         {d0, d1}, [r7, :128]\n        vadd.s32        d16, d16, d24\n        vst1.32         {d2, d3}, [r8, :128]\n        vmov.32         r0,  d16[0]\n\n        update_joint_stereo_samples\n9:\n        pop             {r3-r11}\n        bx              lr\nendfunc\n\nfunction ff_sbc_enc_process_input_4s_neon, export=1\n        @ parameters\n        @ r0 = positioin\n        @ r1 = pcm\n        @ r2 = X\n        @ r3 = nsamples\n        @ r4 = nchannels\n        @ local variables\n        @ r5 = ff_sbc_input_perm_4\n        @ r6 = src / x\n        @ r7 = dst / y\n\n        push            {r1, r3-r7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:13", "text": "update_joint_stereo_samples\n9:\n        pop             {r3-r11}\n        bx              lr\nendfunc\n\nfunction ff_sbc_enc_process_input_4s_neon, export=1\n        @ parameters\n        @ r0 = positioin\n        @ r1 = pcm\n        @ r2 = X\n        @ r3 = nsamples\n        @ r4 = nchannels\n        @ local variables\n        @ r5 = ff_sbc_input_perm_4\n        @ r6 = src / x\n        @ r7 = dst / y\n\n        push            {r1, r3-r7}\n        ldr             r4,  [sp, #24]\n        movrelx         r5,  X(ff_sbc_input_perm_4)\n\n        @ handle X buffer wraparound\n        cmp             r0,  r3\n        bge             1f                     @ if (position < nsamples)\n        add             r7,  r2,  #576         @ &X[0][SBC_X_BUFFER_SIZE - 40]\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0}, [r6, :64]!\n        vst1.16         {d0}, [r7, :64]!\n        cmp             r4,  #1\n        ble             2f                     @ if (nchannels > 1)\n        add             r7,  r2,  #1232        @ &X[1][SBC_X_BUFFER_SIZE - 40]\n        add             r6,  r2,  #656\n        add             r6,  r6,  r0, lsl#1    @ &X[1][position]\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0}, [r6, :64]!\n        vst1.16         {d0}, [r7, :64]!\n2:\n        mov             r0,  #288              @ SBC_X_BUFFER_SIZE - 40\n1:\n\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        add             r7,  r6,  #656         @ &X[1][position]\n\n        cmp             r4,  #1\n        ble             8f                     @ if (nchannels > 1)\n        tst             r1,  #1\n        beq             7f                     @ if (pcm & 1)\n        @ poor 'pcm' alignment\n        vld1.8          {d0, d1}, [r5, :128]\n1:\n        sub             r6,  r6,  #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:14", "text": "vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0}, [r6, :64]!\n        vst1.16         {d0}, [r7, :64]!\n2:\n        mov             r0,  #288              @ SBC_X_BUFFER_SIZE - 40\n1:\n\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        add             r7,  r6,  #656         @ &X[1][position]\n\n        cmp             r4,  #1\n        ble             8f                     @ if (nchannels > 1)\n        tst             r1,  #1\n        beq             7f                     @ if (pcm & 1)\n        @ poor 'pcm' alignment\n        vld1.8          {d0, d1}, [r5, :128]\n1:\n        sub             r6,  r6,  #16\n        sub             r7,  r7,  #16\n        sub             r0,  r0,  #8\n        vld1.8          {d4, d5}, [r1]!\n        vuzp.16         d4,  d5\n        vld1.8          {d20, d21}, [r1]!\n        vuzp.16         d20, d21\n        vswp            d5,  d20\n        vtbl.8          d16, {d4, d5}, d0\n        vtbl.8          d17, {d4, d5}, d1\n        vtbl.8          d18, {d20, d21}, d0\n        vtbl.8          d19, {d20, d21}, d1\n        vst1.16         {d16, d17}, [r6, :128]\n        vst1.16         {d18, d19}, [r7, :128]\n        subs            r3,  r3,  #8\n        bgt             1b\n        b               9f\n7:\n        @ proper 'pcm' alignment\n        vld1.8          {d0, d1}, [r5, :128]\n1:\n        sub             r6,  r6,  #16\n        sub             r7,  r7,  #16\n        sub             r0,  r0,  #8\n        vld2.16         {d4, d5}, [r1]!\n        vld2.16         {d20, d21}, [r1]!\n        vswp            d5,  d20\n        vtbl.8          d16, {d4, d5}, d0\n        vtbl.8          d17, {d4, d5}, d1\n        vtbl.8          d18, {d20, d21}, d0\n        vtbl.8          d19, {d20, d21}, d1\n        vst1.16         {d16, d17}, [r6, :128]\n        vst1.16         {d18, d19}, [r7, :128]\n        subs            r3,  r3,  #8\n        bgt             1b\n        b               9f\n8:\n        @ mono\n        vld1.8          {d0, d1}, [r5, :128]\n1:\n        sub             r6,  r6,  #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:15", "text": "sub             r6,  r6,  #16\n        sub             r7,  r7,  #16\n        sub             r0,  r0,  #8\n        vld2.16         {d4, d5}, [r1]!\n        vld2.16         {d20, d21}, [r1]!\n        vswp            d5,  d20\n        vtbl.8          d16, {d4, d5}, d0\n        vtbl.8          d17, {d4, d5}, d1\n        vtbl.8          d18, {d20, d21}, d0\n        vtbl.8          d19, {d20, d21}, d1\n        vst1.16         {d16, d17}, [r6, :128]\n        vst1.16         {d18, d19}, [r7, :128]\n        subs            r3,  r3,  #8\n        bgt             1b\n        b               9f\n8:\n        @ mono\n        vld1.8          {d0, d1}, [r5, :128]\n1:\n        sub             r6,  r6,  #16\n        sub             r0,  r0,  #8\n        vld1.8          {d4, d5}, [r1]!\n        vtbl.8          d16, {d4, d5}, d0\n        vtbl.8          d17, {d4, d5}, d1\n        vst1.16         {d16, d17}, [r6, :128]\n        subs            r3,  r3,  #8\n        bgt             1b\n9:\n        pop             {r1, r3-r7}\n        bx              lr\nendfunc\n\nfunction ff_sbc_enc_process_input_8s_neon, export=1\n        @ parameters\n        @ r0 = positioin\n        @ r1 = pcm\n        @ r2 = X\n        @ r3 = nsamples\n        @ r4 = nchannels\n        @ local variables\n        @ r5 = ff_sbc_input_perm_8\n        @ r6 = src\n        @ r7 = dst\n\n        push            {r1, r3-r7}\n        ldr             r4,  [sp, #24]\n        movrelx         r5,  X(ff_sbc_input_perm_8)\n\n        @ handle X buffer wraparound\n        cmp             r0,  r3\n        bge             1f                     @ if (position < nsamples)\n        add             r7,  r2,  #512         @ &X[0][SBC_X_BUFFER_SIZE - 72]\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:16", "text": "@ r5 = ff_sbc_input_perm_8\n        @ r6 = src\n        @ r7 = dst\n\n        push            {r1, r3-r7}\n        ldr             r4,  [sp, #24]\n        movrelx         r5,  X(ff_sbc_input_perm_8)\n\n        @ handle X buffer wraparound\n        cmp             r0,  r3\n        bge             1f                     @ if (position < nsamples)\n        add             r7,  r2,  #512         @ &X[0][SBC_X_BUFFER_SIZE - 72]\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1}, [r6, :128]!\n        vst1.16         {d0, d1}, [r7, :128]!\n        cmp             r4,  #1\n        ble             2f                     @ if (nchannels > 1)\n        add             r7,  r2,  #1168        @ &X[1][SBC_X_BUFFER_SIZE - 72]\n        add             r6,  r2,  #656\n        add             r6,  r6,  r0, lsl#1    @ &X[1][position]\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1, d2, d3}, [r6, :128]!\n        vst1.16         {d0, d1, d2, d3}, [r7, :128]!\n        vld1.16         {d0, d1}, [r6, :128]!\n        vst1.16         {d0, d1}, [r7, :128]!\n2:\n        mov             r0,  #256              @ SBC_X_BUFFER_SIZE - 72\n1:\n\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        add             r7,  r6,  #656         @ &X[1][position]\n\n        cmp             r4,  #1\n        ble             8f                     @ if (nchannels > 1)\n        tst             r1,  #1\n        beq             7f                     @ if (pcm & 1)\n        @ poor 'pcm' alignment\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:\n        sub             r6,  r6,  #32\n        sub             r7,  r7,  #32\n        sub             r0,  r0,  #16\n        vld1.8          {d4, d5, d6, d7}, [r1]!\n        vuzp.16         q2,  q3\n        vld1.8          {d20, d21, d22, d23}, [r1]!\n        vuzp.16         q10, q11\n        vswp            q3,  q10", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:17", "text": "1:\n\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        add             r7,  r6,  #656         @ &X[1][position]\n\n        cmp             r4,  #1\n        ble             8f                     @ if (nchannels > 1)\n        tst             r1,  #1\n        beq             7f                     @ if (pcm & 1)\n        @ poor 'pcm' alignment\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:\n        sub             r6,  r6,  #32\n        sub             r7,  r7,  #32\n        sub             r0,  r0,  #16\n        vld1.8          {d4, d5, d6, d7}, [r1]!\n        vuzp.16         q2,  q3\n        vld1.8          {d20, d21, d22, d23}, [r1]!\n        vuzp.16         q10, q11\n        vswp            q3,  q10\n        vtbl.8          d16, {d4, d5, d6, d7}, d0\n        vtbl.8          d17, {d4, d5, d6, d7}, d1\n        vtbl.8          d18, {d4, d5, d6, d7}, d2\n        vtbl.8          d19, {d4, d5, d6, d7}, d3\n        vst1.16         {d16, d17, d18, d19}, [r6, :128]\n        vtbl.8          d16, {d20, d21, d22, d23}, d0\n        vtbl.8          d17, {d20, d21, d22, d23}, d1\n        vtbl.8          d18, {d20, d21, d22, d23}, d2\n        vtbl.8          d19, {d20, d21, d22, d23}, d3\n        vst1.16         {d16, d17, d18, d19}, [r7, :128]\n        subs            r3,  r3,  #16\n        bgt             1b\n        b               9f\n7:\n        @ proper 'pcm' alignment\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:\n        sub             r6,  r6,  #32\n        sub             r7,  r7,  #32\n        sub             r0,  r0,  #16\n        vld2.16         {d4, d5, d6, d7}, [r1]!\n        vld2.16         {d20, d21, d22, d23}, [r1]!\n        vswp            q3,  q10\n        vtbl.8          d16, {d4, d5, d6, d7}, d0\n        vtbl.8          d17, {d4, d5, d6, d7}, d1\n        vtbl.8          d18, {d4, d5, d6, d7}, d2\n        vtbl.8          d19, {d4, d5, d6, d7}, d3\n        vst1.16         {d16, d17, d18, d19}, [r6, :128]\n        vtbl.8          d16, {d20, d21, d22, d23}, d0\n        vtbl.8          d17, {d20, d21, d22, d23}, d1\n        vtbl.8          d18, {d20, d21, d22, d23}, d2\n        vtbl.8          d19, {d20, d21, d22, d23}, d3\n        vst1.16         {d16, d17, d18, d19}, [r7, :128]\n        subs            r3,  r3,  #16\n        bgt             1b\n        b               9f\n8:\n        @ mono\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:18", "text": "vld2.16         {d4, d5, d6, d7}, [r1]!\n        vld2.16         {d20, d21, d22, d23}, [r1]!\n        vswp            q3,  q10\n        vtbl.8          d16, {d4, d5, d6, d7}, d0\n        vtbl.8          d17, {d4, d5, d6, d7}, d1\n        vtbl.8          d18, {d4, d5, d6, d7}, d2\n        vtbl.8          d19, {d4, d5, d6, d7}, d3\n        vst1.16         {d16, d17, d18, d19}, [r6, :128]\n        vtbl.8          d16, {d20, d21, d22, d23}, d0\n        vtbl.8          d17, {d20, d21, d22, d23}, d1\n        vtbl.8          d18, {d20, d21, d22, d23}, d2\n        vtbl.8          d19, {d20, d21, d22, d23}, d3\n        vst1.16         {d16, d17, d18, d19}, [r7, :128]\n        subs            r3,  r3,  #16\n        bgt             1b\n        b               9f\n8:\n        @ mono\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:\n        sub             r6,  r6,  #32\n        sub             r0,  r0,  #16\n        vld1.8          {d4, d5, d6, d7}, [r1]!\n        vtbl.8          d16, {d4, d5, d6, d7}, d0\n        vtbl.8          d17, {d4, d5, d6, d7}, d1\n        vtbl.8          d18, {d4, d5, d6, d7}, d2\n        vtbl.8          d19, {d4, d5, d6, d7}, d3\n        vst1.16         {d16, d17, d18, d19}, [r6, :128]\n        subs            r3,  r3,  #16\n        bgt             1b\n9:\n        pop             {r1, r3-r7}\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbcdsp_neon.S", "line_start": 681, "line_end": 714}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbcdsp_neon.S:17", "text": "1:\n\n        add             r6,  r2,  r0, lsl#1    @ &X[0][position]\n        add             r7,  r6,  #656         @ &X[1][position]\n\n        cmp             r4,  #1\n        ble             8f                     @ if (nchannels > 1)\n        tst             r1,  #1\n        beq             7f                     @ if (pcm & 1)\n        @ poor 'pcm' alignment\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:\n        sub             r6,  r6,  #32\n        sub             r7,  r7,  #32\n        sub             r0,  r0,  #16\n        vld1.8          {d4, d5, d6, d7}, [r1]!\n        vuzp.16         q2,  q3\n        vld1.8          {d20, d21, d22, d23}, [r1]!\n        vuzp.16         q10, q11\n        vswp            q3,  q10\n        vtbl.8          d16, {d4, d5, d6, d7}, d0\n        vtbl.8          d17, {d4, d5, d6, d7}, d1\n        vtbl.8          d18, {d4, d5, d6, d7}, d2\n        vtbl.8          d19, {d4, d5, d6, d7}, d3\n        vst1.16         {d16, d17, d18, d19}, [r6, :128]\n        vtbl.8          d16, {d20, d21, d22, d23}, d0\n        vtbl.8          d17, {d20, d21, d22, d23}, d1\n        vtbl.8          d18, {d20, d21, d22, d23}, d2\n        vtbl.8          d19, {d20, d21, d22, d23}, d3\n        vst1.16         {d16, d17, d18, d19}, [r7, :128]\n        subs            r3,  r3,  #16\n        bgt             1b\n        b 9f\n7:\n        @ proper 'pcm' alignment\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:\n        sub             r6,  r6,  #32\n        sub             r7,  r7,  #32\n        sub             r0,  r0,  #16\n        vld2.16         {d4, d5, d6, d7}, [r1]!\n        vld2.16         {d20, d21, d22, d23}, [r1]!\n        vswp            q3,  q10\n        vtbl.8          d16, {d4, d5, d6, d7}, d0\n        vtbl.8          d17, {d4, d5, d6, d7}, d1\n        vtbl.8          d18, {d4, d5, d6, d7}, d2\n        vtbl.8          d19, {d4, d5, d6, d7}, d3\n        vst1.16         {d16, d17, d18, d19}, [r6, :128]\n        vtbl.8          d16, {d20, d21, d22, d23}, d0\n        vtbl.8          d17, {d20, d21, d22, d23}, d1\n        vtbl.8          d18, {d20, d21, d22, d23}, d2\n        vtbl.8          d19, {d20, d21, d22, d23}, d3\n        vst1.16         {d16, d17, d18, d19}, [r7, :128]\n        subs            r3,  r3,  #16\n        bgt             1b\n        b               9f\n8:\n        @ mono\n        vld1.8          {d0, d1, d2, d3}, [r5, :128]\n1:", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbcdsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/sbcdsp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:1", "text": "/*\n * Copyright (c) 2012 Mans Rullgard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_sbr_sum64x5_neon, export=1\n        push            {lr}\n        add             r1,  r0,  # 64*4\n        add             r2,  r0,  #128*4\n        add             r3,  r0,  #192*4\n        add             lr,  r0,  #256*4\n        mov             r12, #64\n1:\n        vld1.32         {q0},     [r0,:128]\n        vld1.32         {q1},     [r1,:128]!\n        vadd.f32        q0,  q0,  q1\n        vld1.32         {q2},     [r2,:128]!\n        vadd.f32        q0,  q0,  q2\n        vld1.32         {q3},     [r3,:128]!\n        vadd.f32        q0,  q0,  q3\n        vld1.32         {q8},     [lr,:128]!\n        vadd.f32        q0,  q0,  q8\n        vst1.32         {q0},     [r0,:128]!\n        subs            r12, #4\n        bgt             1b\n        pop             {pc}\nendfunc\n\nfunction ff_sbr_sum_square_neon, export=1\n        vmov.f32        q0,  #0.0\n1:\n        vld1.32         {q1},     [r0,:128]!\n        vmla.f32        q0,  q1,  q1\n        subs            r1,  r1,  #2\n        bgt             1b\n        vadd.f32        d0,  d0,  d1\n        vpadd.f32       d0,  d0,  d0\nNOVFP   vmov.32         r0,  d0[0]\n        bx              lr\nendfunc\n\nfunction ff_sbr_neg_odd_64_neon, export=1\n        mov             r1,  r0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:2", "text": "subs            r12, #4\n        bgt             1b\n        pop             {pc}\nendfunc\n\nfunction ff_sbr_sum_square_neon, export=1\n        vmov.f32        q0,  #0.0\n1:\n        vld1.32         {q1},     [r0,:128]!\n        vmla.f32        q0,  q1,  q1\n        subs            r1,  r1,  #2\n        bgt             1b\n        vadd.f32        d0,  d0,  d1\n        vpadd.f32       d0,  d0,  d0\nNOVFP   vmov.32         r0,  d0[0]\n        bx              lr\nendfunc\n\nfunction ff_sbr_neg_odd_64_neon, export=1\n        mov             r1,  r0\n        vmov.i32        q8,  #1<<31\n        vld2.32         {q0,q1},  [r0,:128]!\n        veor            q1,  q1,  q8\n        vld2.32         {q2,q3},  [r0,:128]!\n    .rept 3\n        vst2.32         {q0,q1},  [r1,:128]!\n        veor            q3,  q3,  q8\n        vld2.32         {q0,q1},  [r0,:128]!\n        vst2.32         {q2,q3},  [r1,:128]!\n        veor            q1,  q1,  q8\n        vld2.32         {q2,q3},  [r0,:128]!\n    .endr\n        veor            q3,  q3,  q8\n        vst2.32         {q0,q1},  [r1,:128]!\n        vst2.32         {q2,q3},  [r1,:128]!\n        bx              lr\nendfunc\n\nfunction ff_sbr_qmf_pre_shuffle_neon, export=1\n        add             r1,  r0,  #60*4\n        add             r2,  r0,  #64*4\n        vld1.32         {d0},     [r0,:64]!\n        vst1.32         {d0},     [r2,:64]!\n        mov             r3,  #-16\n        mov             r12, #24\n        vmov.i32        q8,  #1<<31\n        vld1.32         {q0},     [r1,:128], r3\n        vld1.32         {d2},     [r0,:64]!\n1:\n        vld1.32         {d3,d4},  [r0,:128]!\n        vrev64.32       q0,  q0\n        vld1.32         {q9},     [r1,:128], r3\n        veor            q0,  q0,  q8\n        vld1.32         {d5,d6},  [r0,:128]!\n        vswp            d0,  d1\n        vrev64.32       q9,  q9\n        vst2.32         {q0,q1},  [r2,:64]!\n        vmov            q10, q2\n        veor            q9,  q9,  q8\n        vmov            d2,  d6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:3", "text": "add             r2,  r0,  #64*4\n        vld1.32         {d0},     [r0,:64]!\n        vst1.32         {d0},     [r2,:64]!\n        mov             r3,  #-16\n        mov             r12, #24\n        vmov.i32        q8,  #1<<31\n        vld1.32         {q0},     [r1,:128], r3\n        vld1.32         {d2},     [r0,:64]!\n1:\n        vld1.32         {d3,d4},  [r0,:128]!\n        vrev64.32       q0,  q0\n        vld1.32         {q9},     [r1,:128], r3\n        veor            q0,  q0,  q8\n        vld1.32         {d5,d6},  [r0,:128]!\n        vswp            d0,  d1\n        vrev64.32       q9,  q9\n        vst2.32         {q0,q1},  [r2,:64]!\n        vmov            q10, q2\n        veor            q9,  q9,  q8\n        vmov            d2,  d6\n        vswp            d18, d19\n        vld1.32         {q0},     [r1,:128], r3\n        vst2.32         {q9,q10}, [r2,:64]!\n        subs            r12, r12, #8\n        bgt             1b\n        vld1.32         {d3,d4},  [r0,:128]!\n        vrev64.32       q0,  q0\n        vld1.32         {q9},     [r1,:128], r3\n        veor            q0,  q0,  q8\n        vld1.32         {d5},     [r0,:64]!\n        vswp            d0,  d1\n        vrev64.32       q9,  q9\n        vst2.32         {q0,q1},  [r2,:64]!\n        vswp            d4,  d5\n        veor            q1,  q9,  q8\n        vst2.32         {d3,d5},  [r2,:64]!\n        vst2.32         {d2[0],d4[0]}, [r2,:64]!\n        bx              lr\nendfunc\n\nfunction ff_sbr_qmf_post_shuffle_neon, export=1\n        add             r2,  r1,  #60*4\n        mov             r3,  #-16\n        mov             r12, #32\n        vmov.i32        q8,  #1<<31\n        vld1.32         {q0},     [r2,:128], r3\n        vld1.32         {q1},     [r1,:128]!\n1:\n        pld             [r2, #-32]\n        vrev64.32       q0,  q0\n        vswp            d2,  d3\n        veor            q0,  q0,  q8\n        vld1.32         {q2},     [r2,:128], r3\n        vld1.32         {q3},     [r1,:128]!\n        vst2.32         {d1,d3},  [r0,:128]!\n        vst2.32         {d0,d2},  [r0,:128]!\n        pld             [r2, #-32]\n        vrev64.32       q2,  q2\n        vswp            d6,  d7\n        veor            q2,  q2,  q8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:4", "text": "function ff_sbr_qmf_post_shuffle_neon, export=1\n        add             r2,  r1,  #60*4\n        mov             r3,  #-16\n        mov             r12, #32\n        vmov.i32        q8,  #1<<31\n        vld1.32         {q0},     [r2,:128], r3\n        vld1.32         {q1},     [r1,:128]!\n1:\n        pld             [r2, #-32]\n        vrev64.32       q0,  q0\n        vswp            d2,  d3\n        veor            q0,  q0,  q8\n        vld1.32         {q2},     [r2,:128], r3\n        vld1.32         {q3},     [r1,:128]!\n        vst2.32         {d1,d3},  [r0,:128]!\n        vst2.32         {d0,d2},  [r0,:128]!\n        pld             [r2, #-32]\n        vrev64.32       q2,  q2\n        vswp            d6,  d7\n        veor            q2,  q2,  q8\n        vld1.32         {q0},     [r2,:128], r3\n        vld1.32         {q1},     [r1,:128]!\n        vst2.32         {d5,d7},  [r0,:128]!\n        vst2.32         {d4,d6},  [r0,:128]!\n        subs            r12, r12, #8\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_sbr_qmf_deint_neg_neon, export=1\n        add             r1,  r1,  #60*4\n        add             r2,  r0,  #62*4\n        mov             r3,  #-16\n        mov             r12, #32\n        vmov.i32        d2,  #1<<31\n1:\n        vld2.32         {d0,d1},  [r1,:128], r3\n        veor            d0,  d0,  d2\n        vrev64.32       d1,  d1\n        vst1.32         {d0},     [r2,:64]\n        vst1.32         {d1},     [r0,:64]!\n        sub             r2,  r2,  #8\n        subs            r12, r12, #2\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_sbr_qmf_deint_bfly_neon, export=1\n        push            {lr}\n        add             r2,  r2,  #60*4\n        add             r3,  r0,  #124*4\n        mov             r12, #64\n        mov             lr,  #-16\n1:\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q1},     [r2,:128], lr\n        vrev64.32       q2,  q0\n        vrev64.32       q3,  q1\n        vadd.f32        d3,  d4,  d3\n        vadd.f32        d2,  d5,  d2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:5", "text": "vst1.32         {d1},     [r0,:64]!\n        sub             r2,  r2,  #8\n        subs            r12, r12, #2\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_sbr_qmf_deint_bfly_neon, export=1\n        push            {lr}\n        add             r2,  r2,  #60*4\n        add             r3,  r0,  #124*4\n        mov             r12, #64\n        mov             lr,  #-16\n1:\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q1},     [r2,:128], lr\n        vrev64.32       q2,  q0\n        vrev64.32       q3,  q1\n        vadd.f32        d3,  d4,  d3\n        vadd.f32        d2,  d5,  d2\n        vsub.f32        d0,  d0,  d7\n        vsub.f32        d1,  d1,  d6\n        vst1.32         {q1},     [r3,:128], lr\n        vst1.32         {q0},     [r0,:128]!\n        subs            r12, r12, #4\n        bgt             1b\n        pop             {pc}\nendfunc\n\nfunction ff_sbr_hf_g_filt_neon, export=1\n        ldr             r12, [sp]\n        add             r1,  r1,  r12, lsl #3\n        mov             r12, #40*2*4\n        sub             r3,  r3,  #1\n        vld2.32         {d2[],d3[]},[r2,:64]!\n        vld1.32         {d0},     [r1,:64], r12\n1:\n        vld1.32         {d1},     [r1,:64], r12\n        vmul.f32        q3,  q0,  q1\n        vld2.32         {d2[],d3[]},[r2,:64]!\n        vld1.32         {d0},     [r1,:64], r12\n        vst1.32         {q3},     [r0,:64]!\n        subs            r3,  r3,  #2\n        bgt             1b\n        it              lt\n        bxlt            lr\n        vmul.f32        d0,  d0,  d2\n        vst1.32         {d0},     [r0,:64]!\n        bx              lr\nendfunc\n\nfunction ff_sbr_hf_gen_neon, export=1\nNOVFP   vld1.32         {d1[]},   [sp,:32]\nVFP     vdup.32         d1,  d0[0]\n        vmul.f32        d0,  d1,  d1\n        vld1.32         {d3},     [r2,:64]\n        vld1.32         {d2},     [r3,:64]\n        vmul.f32        q0,  q0,  q1\n        ldrd            r2,  r3,  [sp, #4*!HAVE_VFP_ARGS]\n        vtrn.32         d0,  d1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:6", "text": "vld1.32         {d0},     [r1,:64], r12\n        vst1.32         {q3},     [r0,:64]!\n        subs            r3,  r3,  #2\n        bgt             1b\n        it              lt\n        bxlt            lr\n        vmul.f32        d0,  d0,  d2\n        vst1.32         {d0},     [r0,:64]!\n        bx              lr\nendfunc\n\nfunction ff_sbr_hf_gen_neon, export=1\nNOVFP   vld1.32         {d1[]},   [sp,:32]\nVFP     vdup.32         d1,  d0[0]\n        vmul.f32        d0,  d1,  d1\n        vld1.32         {d3},     [r2,:64]\n        vld1.32         {d2},     [r3,:64]\n        vmul.f32        q0,  q0,  q1\n        ldrd            r2,  r3,  [sp, #4*!HAVE_VFP_ARGS]\n        vtrn.32         d0,  d1\n        vneg.f32        d18, d1\n        vtrn.32         d18, d1\n        add             r0,  r0,  r2,  lsl #3\n        add             r1,  r1,  r2,  lsl #3\n        sub             r1,  r1,  #2*8\n        sub             r3,  r3,  r2\n        vld1.32         {q1},     [r1,:128]!\n1:\n        vld1.32         {q3},     [r1,:128]!\n        vrev64.32       q2,  q1\n        vmov            q8,  q3\n        vrev64.32       d20, d3\n        vrev64.32       d21, d6\n        vmla.f32        q3,  q1,  d0[0]\n        vmla.f32        d6,  d4,  d18\n        vmla.f32        d7,  d20, d18\n        vmla.f32        d6,  d3,  d0[1]\n        vmla.f32        d7,  d16, d0[1]\n        vmla.f32        d6,  d5,  d1\n        vmla.f32        d7,  d21, d1\n        vmov            q1,  q8\n        vst1.32         {q3},     [r0,:128]!\n        subs            r3,  r3,  #2\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_sbr_autocorrelate_neon, export=1\n        vld1.32         {q0},     [r0,:128]!\n        vmov.f32        q1,  #0.0\n        vmov.f32        q3,  #0.0\n        vmov.f32        d20, #0.0\n        vmul.f32        d21, d1,  d1\n        vmov            q8,  q0\n        vmov            q11, q0\n        mov             r12, #36\n1:\n        vld1.32         {q2},     [r0,:128]!\n        vrev64.32       q12, q2\n        vmla.f32        q10, q2,  q2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:7", "text": "vmov            q1,  q8\n        vst1.32         {q3},     [r0,:128]!\n        subs            r3,  r3,  #2\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_sbr_autocorrelate_neon, export=1\n        vld1.32         {q0},     [r0,:128]!\n        vmov.f32        q1,  #0.0\n        vmov.f32        q3,  #0.0\n        vmov.f32        d20, #0.0\n        vmul.f32        d21, d1,  d1\n        vmov            q8,  q0\n        vmov            q11, q0\n        mov             r12, #36\n1:\n        vld1.32         {q2},     [r0,:128]!\n        vrev64.32       q12, q2\n        vmla.f32        q10, q2,  q2\n        vmla.f32        d2,  d1,  d4\n        vmla.f32        d3,  d1,  d24\n        vmla.f32        d6,  d0,  d4\n        vmla.f32        d7,  d0,  d24\n        vmla.f32        d2,  d4,  d5\n        vmla.f32        d3,  d4,  d25\n        vmla.f32        d6,  d1,  d5\n        vmla.f32        d7,  d1,  d25\n        vmov            q0,  q2\n        subs            r12, r12, #2\n        bgt             1b\n        vld1.32         {q2},     [r0,:128]!\n        vrev64.32       q12, q2\n        vmla.f32        d2,  d1,  d4\n        vmla.f32        d3,  d1,  d24\n        vmla.f32        d6,  d0,  d4\n        vmla.f32        d7,  d0,  d24\n        vadd.f32        d20, d20, d21\n        vrev64.32       d18, d17\n        vmla.f32        d6,  d1,  d5\n        vmla.f32        d7,  d1,  d25\n        vmov            q0,  q1\n        vmla.f32        d0,  d16, d17\n        vmla.f32        d1,  d16, d18\n        vmla.f32        d2,  d4,  d5\n        vmla.f32        d3,  d4,  d25\n        vneg.f32        s15, s15\n        vmov            d21, d20\n        vpadd.f32       d0,  d0,  d2\n        vpadd.f32       d7,  d6,  d7\n        vtrn.32         d1,  d3\n        vsub.f32        d6,  d1,  d3\n        vmla.f32        d20, d22, d22\n        vmla.f32        d21, d4,  d4\n        vtrn.32         d0,  d6\n        vpadd.f32       d20, d20, d21\n        vst1.32         {q3},     [r1,:128]!\n        vst1.32         {d20[1]}, [r1,:32]\n        add             r1,  r1,  #2*4\n        vst1.32         {d0},     [r1,:64]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:8", "text": "vmla.f32        d7,  d1,  d25\n        vmov            q0,  q1\n        vmla.f32        d0,  d16, d17\n        vmla.f32        d1,  d16, d18\n        vmla.f32        d2,  d4,  d5\n        vmla.f32        d3,  d4,  d25\n        vneg.f32        s15, s15\n        vmov            d21, d20\n        vpadd.f32       d0,  d0,  d2\n        vpadd.f32       d7,  d6,  d7\n        vtrn.32         d1,  d3\n        vsub.f32        d6,  d1,  d3\n        vmla.f32        d20, d22, d22\n        vmla.f32        d21, d4,  d4\n        vtrn.32         d0,  d6\n        vpadd.f32       d20, d20, d21\n        vst1.32         {q3},     [r1,:128]!\n        vst1.32         {d20[1]}, [r1,:32]\n        add             r1,  r1,  #2*4\n        vst1.32         {d0},     [r1,:64]\n        add             r1,  r1,  #4*4\n        vst1.32         {d20[0]}, [r1,:32]\n        bx              lr\nendfunc\n\nfunction ff_sbr_hf_apply_noise_0_neon, export=1\n        vmov.i32        d3,  #0\n.Lhf_apply_noise_0:\n        push            {r4,lr}\n        movrelx         r4,  X(ff_sbr_noise_table)\n        ldr             r12, [sp, #12]\n        add             r3,  r3,  #1\n        bfc             r3,  #9,  #23\n        sub             r12, r12, #1\n1:\n        add             lr,  r4,  r3,  lsl #3\n        vld2.32         {q0},     [r0,:64]\n        vld2.32         {q3},     [lr,:64]\n        vld1.32         {d2},     [r1,:64]!\n        vld1.32         {d18},    [r2,:64]!\n        vceq.f32        d16, d2,  #0\n        veor            d2,  d2,  d3\n        vmov            q2,  q0\n        vmla.f32        d0,  d6,  d18\n        vmla.f32        d1,  d7,  d18\n        vadd.f32        d4,  d4,  d2\n        add             r3,  r3,  #2\n        bfc             r3,  #9,  #23\n        vbif            d0,  d4,  d16\n        vbif            d1,  d5,  d16\n        vst2.32         {q0},     [r0,:64]!\n        subs            r12, r12, #2\n        bgt             1b\n        blt             2f\n        add             lr,  r4,  r3,  lsl #3\n        vld1.32         {d0},     [r0,:64]\n        vld1.32         {d6},     [lr,:64]\n        vld1.32         {d2[]},   [r1,:32]!\n        vld1.32         {d18[]},  [r2,:32]!\n        vceq.f32        d4,  d2,  #0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:9", "text": "vceq.f32        d16, d2,  #0\n        veor            d2,  d2,  d3\n        vmov            q2,  q0\n        vmla.f32        d0,  d6,  d18\n        vmla.f32        d1,  d7,  d18\n        vadd.f32        d4,  d4,  d2\n        add             r3,  r3,  #2\n        bfc             r3,  #9,  #23\n        vbif            d0,  d4,  d16\n        vbif            d1,  d5,  d16\n        vst2.32         {q0},     [r0,:64]!\n        subs            r12, r12, #2\n        bgt             1b\n        blt             2f\n        add             lr,  r4,  r3,  lsl #3\n        vld1.32         {d0},     [r0,:64]\n        vld1.32         {d6},     [lr,:64]\n        vld1.32         {d2[]},   [r1,:32]!\n        vld1.32         {d18[]},  [r2,:32]!\n        vceq.f32        d4,  d2,  #0\n        veor            d2,  d2,  d3\n        vmov            d1,  d0\n        vmla.f32        d0,  d6,  d18\n        vadd.f32        s2,  s2,  s4\n        vbif            d0,  d1,  d4\n        vst1.32         {d0},     [r0,:64]!\n2:\n        pop             {r4,pc}\nendfunc\n\nfunction ff_sbr_hf_apply_noise_1_neon, export=1\n        ldr             r12, [sp]\n        push            {r4,lr}\n        lsl             r12, r12, #31\n        eor             lr,  r12, #1<<31\n        vmov            d3,  r12, lr\n.Lhf_apply_noise_1:\n        movrelx         r4,  X(ff_sbr_noise_table)\n        ldr             r12, [sp, #12]\n        add             r3,  r3,  #1\n        bfc             r3,  #9,  #23\n        sub             r12, r12, #1\n1:\n        add             lr,  r4,  r3,  lsl #3\n        vld2.32         {q0},     [r0,:64]\n        vld2.32         {q3},     [lr,:64]\n        vld1.32         {d2},     [r1,:64]!\n        vld1.32         {d18},    [r2,:64]!\n        vceq.f32        d16, d2,  #0\n        veor            d2,  d2,  d3\n        vmov            q2,  q0\n        vmla.f32        d0,  d6,  d18\n        vmla.f32        d1,  d7,  d18\n        vadd.f32        d5,  d5,  d2\n        add             r3,  r3,  #2\n        bfc             r3,  #9,  #23\n        vbif            d0,  d4,  d16\n        vbif            d1,  d5,  d16\n        vst2.32         {q0},     [r0,:64]!\n        subs            r12, r12, #2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:10", "text": "bfc             r3,  #9,  #23\n        sub             r12, r12, #1\n1:\n        add             lr,  r4,  r3,  lsl #3\n        vld2.32         {q0},     [r0,:64]\n        vld2.32         {q3},     [lr,:64]\n        vld1.32         {d2},     [r1,:64]!\n        vld1.32         {d18},    [r2,:64]!\n        vceq.f32        d16, d2,  #0\n        veor            d2,  d2,  d3\n        vmov            q2,  q0\n        vmla.f32        d0,  d6,  d18\n        vmla.f32        d1,  d7,  d18\n        vadd.f32        d5,  d5,  d2\n        add             r3,  r3,  #2\n        bfc             r3,  #9,  #23\n        vbif            d0,  d4,  d16\n        vbif            d1,  d5,  d16\n        vst2.32         {q0},     [r0,:64]!\n        subs            r12, r12, #2\n        bgt             1b\n        blt             2f\n        add             lr,  r4,  r3,  lsl #3\n        vld1.32         {d0},     [r0,:64]\n        vld1.32         {d6},     [lr,:64]\n        vld1.32         {d2[]},   [r1,:32]!\n        vld1.32         {d18[]},  [r2,:32]!\n        vceq.f32        d4,  d2,  #0\n        veor            d2,  d2,  d3\n        vmov            d1,  d0\n        vmla.f32        d0,  d6,  d18\n        vadd.f32        s3,  s3,  s5\n        vbif            d0,  d1,  d4\n        vst1.32         {d0},     [r0,:64]!\n2:\n        pop             {r4,pc}\nendfunc\n\nfunction ff_sbr_hf_apply_noise_2_neon, export=1\n        vmov.i32        d3,  #1<<31\n        b               .Lhf_apply_noise_0\nendfunc\n\nfunction ff_sbr_hf_apply_noise_3_neon, export=1\n        ldr             r12, [sp]\n        push            {r4,lr}\n        lsl             r12, r12, #31\n        eor             lr,  r12, #1<<31\n        vmov            d3,  lr, r12\n        b               .Lhf_apply_noise_1\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 361, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/sbrdsp_neon.S:11", "text": "b               .Lhf_apply_noise_0\nendfunc\n\nfunction ff_sbr_hf_apply_noise_3_neon, export=1\n        ldr             r12, [sp]\n        push            {r4,lr}\n        lsl             r12, r12, #31\n        eor             lr,  r12, #1<<31\n        vmov            d3,  lr, r12\n        b               .Lhf_apply_noise_1\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/sbrdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/sbrdsp_neon.S", "line_start": 401, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:1", "text": "/*\n * Copyright (C) 2002 Frederic 'dilb' Boulay\n *\n * Author: Frederic Boulay <dilb@handhelds.org>\n *\n * The function defined in this file is derived from the simple_idct function\n * from the libavcodec library part of the FFmpeg project.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n/* useful constants for the algorithm */\n#define W1  22725\n#define W2  21407\n#define W3  19266\n#define W4  16383\n#define W5  12873\n#define W6  8867\n#define W7  4520\n#define MASK_MSHW 0xFFFF0000\n\n#define ROW_SHIFT 11\n#define ROW_SHIFT2MSHW (16-11)\n#define COL_SHIFT 20\n#define ROW_SHIFTED_1 1024 /* 1<< (ROW_SHIFT-1) */\n#define COL_SHIFTED_1 524288 /* 1<< (COL_SHIFT-1) */\n\n\nfunction ff_simple_idct_arm, export=1\n        @@ void simple_idct_arm(int16_t *block)\n        @@ save stack for reg needed (take all of them),\n        @@ R0-R3 are scratch regs, so no need to save them, but R0 contains the pointer to block\n        @@ so it must not be overwritten, if it is not saved!!\n        @@ R12 is another scratch register, so it should not be saved too\n        @@ save all registers\n        stmfd           sp!, {r4-r11, r14}      @ R14 is also called LR\n        @@ at this point, R0=block, other registers are free.\n        add             r14, r0, #112           @ R14=&block[8*7], better start from the last row, and decrease the value until row=0, i.e. R12=block.\n        @@ add 2 temporary variables in the stack: R0 and R14\n        sub             sp, sp, #8              @ allow 2 local variables\n        str             r0, [sp, #0]            @ save block in sp[0]\n        @@ stack status\n        @@ sp+4   free\n        @@ sp+0   R0  (block)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:2", "text": "#define ROW_SHIFTED_1 1024 /* 1<< (ROW_SHIFT-1) */\n#define COL_SHIFTED_1 524288 /* 1<< (COL_SHIFT-1) */\n\n\nfunction ff_simple_idct_arm, export=1\n        @@ void simple_idct_arm(int16_t *block)\n        @@ save stack for reg needed (take all of them),\n        @@ R0-R3 are scratch regs, so no need to save them, but R0 contains the pointer to block\n        @@ so it must not be overwritten, if it is not saved!!\n        @@ R12 is another scratch register, so it should not be saved too\n        @@ save all registers\n        stmfd           sp!, {r4-r11, r14}      @ R14 is also called LR\n        @@ at this point, R0=block, other registers are free.\n        add             r14, r0, #112           @ R14=&block[8*7], better start from the last row, and decrease the value until row=0, i.e. R12=block.\n        @@ add 2 temporary variables in the stack: R0 and R14\n        sub             sp, sp, #8              @ allow 2 local variables\n        str             r0, [sp, #0]            @ save block in sp[0]\n        @@ stack status\n        @@ sp+4   free\n        @@ sp+0   R0  (block)\n\n\n        @@ at this point, R0=block, R14=&block[56], R12=__const_ptr_, R1-R11 free\n\n\n__row_loop:\n        @@ read the row and check if it is null, almost null, or not, according to strongarm specs, it is not necessary to optimize ldr accesses (i.e. split 32 bits in two 16-bit words), at least it gives more usable registers :)\n        ldr             r1, [r14, #0]           @ R1=(int32)(R12)[0]=ROWr32[0] (relative row cast to a 32b pointer)\n        ldr             r2, [r14, #4]           @ R2=(int32)(R12)[1]=ROWr32[1]\n        ldr             r3, [r14, #8]           @ R3=ROWr32[2]\n        ldr             r4, [r14, #12]          @ R4=ROWr32[3]\n        @@ check if the words are null, if all of them are null, then proceed with next row (branch __end_row_loop),\n        @@ if ROWr16[0] is the only one not null, then proceed with this special case (branch __almost_empty_row)\n        @@ else follow the complete algorithm.\n        @@ at this point, R0=block, R14=&block[n], R12=__const_ptr_, R1=ROWr32[0], R2=ROWr32[1],\n        @@                R3=ROWr32[2], R4=ROWr32[3], R5-R11 free\n        orr             r5, r4, r3              @ R5=R4 | R3\n        orr             r5, r5, r2              @ R5=R4 | R3 | R2\n        orrs            r6, r5, r1              @ Test R5 | R1 (the aim is to check if everything is null)\n        beq             __end_row_loop\n        mov             r7, r1, asr #16         @ R7=R1>>16=ROWr16[1] (evaluate it now, as it could be useful later)\n        ldrsh           r6, [r14, #0]           @ R6=ROWr16[0]\n        orrs            r5, r5, r7              @ R5=R4 | R3 | R2 | R7\n        beq             __almost_empty_row\n\n@@ __b_evaluation:\n        @@ at this point, R0=block (temp),  R1(free), R2=ROWr32[1], R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=(temp), R6=ROWr16[0], R7=ROWr16[1], R8-R11 free,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ to save some registers/calls, proceed with b0-b3 first, followed by a0-a3\n\n        @@ MUL16(b0, W1, row[1]);\n        @@ MUL16(b1, W3, row[1]);\n        @@ MUL16(b2, W5, row[1]);\n        @@ MUL16(b3, W7, row[1]);\n        @@ MAC16(b0, W3, row[3]);\n        @@ MAC16(b1, -W7, row[3]);\n        @@ MAC16(b2, -W1, row[3]);\n        @@ MAC16(b3, -W5, row[3]);\n        ldr             r8, =W1                 @ R8=W1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:3", "text": "mov             r7, r1, asr #16         @ R7=R1>>16=ROWr16[1] (evaluate it now, as it could be useful later)\n        ldrsh           r6, [r14, #0]           @ R6=ROWr16[0]\n        orrs            r5, r5, r7              @ R5=R4 | R3 | R2 | R7\n        beq             __almost_empty_row\n\n@@ __b_evaluation:\n        @@ at this point, R0=block (temp),  R1(free), R2=ROWr32[1], R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=(temp), R6=ROWr16[0], R7=ROWr16[1], R8-R11 free,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ to save some registers/calls, proceed with b0-b3 first, followed by a0-a3\n\n        @@ MUL16(b0, W1, row[1]);\n        @@ MUL16(b1, W3, row[1]);\n        @@ MUL16(b2, W5, row[1]);\n        @@ MUL16(b3, W7, row[1]);\n        @@ MAC16(b0, W3, row[3]);\n        @@ MAC16(b1, -W7, row[3]);\n        @@ MAC16(b2, -W1, row[3]);\n        @@ MAC16(b3, -W5, row[3]);\n        ldr             r8, =W1                 @ R8=W1\n        mov             r2, r2, asr #16         @ R2=ROWr16[3]\n        mul             r0, r8, r7              @ R0=W1*ROWr16[1]=b0 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr             r9, =W3                 @ R9=W3\n        ldr             r10, =W5                @ R10=W5\n        mul             r1, r9, r7              @ R1=W3*ROWr16[1]=b1 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr             r11, =W7                @ R11=W7\n        mul             r5, r10, r7             @ R5=W5*ROWr16[1]=b2 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        mul             r7, r11, r7             @ R7=W7*ROWr16[1]=b3 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        teq             r2, #0                  @ if null avoid muls\n        itttt           ne\n        mlane           r0, r9, r2, r0          @ R0+=W3*ROWr16[3]=b0 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        rsbne           r2, r2, #0              @ R2=-ROWr16[3]\n        mlane           r1, r11, r2, r1         @ R1-=W7*ROWr16[3]=b1 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        mlane           r5, r8, r2, r5          @ R5-=W1*ROWr16[3]=b2 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        it              ne\n        mlane           r7, r10, r2, r7         @ R7-=W5*ROWr16[3]=b3 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        orrs            r2, r3, r4              @ R2=ROWr32[2] | ROWr32[3]\n        beq             __end_b_evaluation\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, row[5]);\n        @@ MAC16(b2, W7, row[5]);\n        @@ MAC16(b3, W3, row[5]);\n        @@ MAC16(b1, -W1, row[5]);\n        @@ MAC16(b0, W7, row[7]);\n        @@ MAC16(b2, W3, row[7]);\n        @@ MAC16(b3, -W1, row[7]);\n        @@ MAC16(b1, -W5, row[7]);\n        mov             r3, r3, asr #16         @ R3=ROWr16[5]\n        teq             r3, #0                  @ if null avoid muls\n        it              ne\n        mlane           r0, r10, r3, r0         @ R0+=W5*ROWr16[5]=b0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:4", "text": "@@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        orrs            r2, r3, r4              @ R2=ROWr32[2] | ROWr32[3]\n        beq             __end_b_evaluation\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, row[5]);\n        @@ MAC16(b2, W7, row[5]);\n        @@ MAC16(b3, W3, row[5]);\n        @@ MAC16(b1, -W1, row[5]);\n        @@ MAC16(b0, W7, row[7]);\n        @@ MAC16(b2, W3, row[7]);\n        @@ MAC16(b3, -W1, row[7]);\n        @@ MAC16(b1, -W5, row[7]);\n        mov             r3, r3, asr #16         @ R3=ROWr16[5]\n        teq             r3, #0                  @ if null avoid muls\n        it              ne\n        mlane           r0, r10, r3, r0         @ R0+=W5*ROWr16[5]=b0\n        mov             r4, r4, asr #16         @ R4=ROWr16[7]\n        itttt           ne\n        mlane           r5, r11, r3, r5         @ R5+=W7*ROWr16[5]=b2\n        mlane           r7, r9, r3, r7          @ R7+=W3*ROWr16[5]=b3\n        rsbne           r3, r3, #0              @ R3=-ROWr16[5]\n        mlane           r1, r8, r3, r1          @ R7-=W1*ROWr16[5]=b1\n        @@ R3 is free now\n        teq             r4, #0                  @ if null avoid muls\n        itttt           ne\n        mlane           r0, r11, r4, r0         @ R0+=W7*ROWr16[7]=b0\n        mlane           r5, r9, r4, r5          @ R5+=W3*ROWr16[7]=b2\n        rsbne           r4, r4, #0              @ R4=-ROWr16[7]\n        mlane           r7, r8, r4, r7          @ R7-=W1*ROWr16[7]=b3\n        it              ne\n        mlane           r1, r10, r4, r1         @ R1-=W5*ROWr16[7]=b1\n        @@ R4 is free now\n__end_b_evaluation:\n        @@ at this point, R0=b0,  R1=b1, R2=ROWr32[2] | ROWr32[3] (tmp), R3 (free), R4 (free),\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n@@ __a_evaluation:\n        @@ a0 = (W4 * row[0]) + (1 << (ROW_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldr             r9, =W4                 @ R9=W4\n        mul             r6, r9, r6              @ R6=W4*ROWr16[0]\n        ldr             r10, =W6                @ R10=W6\n        ldrsh           r4, [r14, #4]           @ R4=ROWr16[2] (a3 not defined yet)\n        add             r6, r6, #ROW_SHIFTED_1  @ R6=W4*ROWr16[0] + 1<<(ROW_SHIFT-1) (a0)\n\n        mul             r11, r10, r4            @ R11=W6*ROWr16[2]\n        ldr             r8, =W2                 @ R8=W2\n        sub             r3, r6, r11             @ R3=a0-W6*ROWr16[2] (a2)\n        @@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        teq             r2, #0\n        beq             __end_bef_a_evaluation", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:5", "text": "@@ __a_evaluation:\n        @@ a0 = (W4 * row[0]) + (1 << (ROW_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldr             r9, =W4                 @ R9=W4\n        mul             r6, r9, r6              @ R6=W4*ROWr16[0]\n        ldr             r10, =W6                @ R10=W6\n        ldrsh           r4, [r14, #4]           @ R4=ROWr16[2] (a3 not defined yet)\n        add             r6, r6, #ROW_SHIFTED_1  @ R6=W4*ROWr16[0] + 1<<(ROW_SHIFT-1) (a0)\n\n        mul             r11, r10, r4            @ R11=W6*ROWr16[2]\n        ldr             r8, =W2                 @ R8=W2\n        sub             r3, r6, r11             @ R3=a0-W6*ROWr16[2] (a2)\n        @@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        teq             r2, #0\n        beq             __end_bef_a_evaluation\n\n        add             r2, r6, r11             @ R2=a0+W6*ROWr16[2] (a1)\n        mul             r11, r8, r4             @ R11=W2*ROWr16[2]\n        sub             r4, r6, r11             @ R4=a0-W2*ROWr16[2] (a3)\n        add             r6, r6, r11             @ R6=a0+W2*ROWr16[2] (a0)\n\n\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8=W2, R9=W4, R10=W6, R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n\n        @@ a0 += W4*row[4]\n        @@ a1 -= W4*row[4]\n        @@ a2 -= W4*row[4]\n        @@ a3 += W4*row[4]\n        ldrsh           r11, [r14, #8]          @ R11=ROWr16[4]\n        teq             r11, #0                 @ if null avoid muls\n        it              ne\n        mulne           r11, r9, r11            @ R11=W4*ROWr16[4]\n        @@ R9 is free now\n        ldrsh           r9, [r14, #12]          @ R9=ROWr16[6]\n        itttt           ne\n        addne           r6, r6, r11             @ R6+=W4*ROWr16[4] (a0)\n        subne           r2, r2, r11             @ R2-=W4*ROWr16[4] (a1)\n        subne           r3, r3, r11             @ R3-=W4*ROWr16[4] (a2)\n        addne           r4, r4, r11             @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq             r9, #0                  @ if null avoid muls\n        itttt           ne\n        mulne           r11, r10, r9            @ R11=W6*ROWr16[6]\n        addne           r6, r6, r11             @ R6+=W6*ROWr16[6] (a0)\n        mulne           r10, r8, r9             @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne           r4, r4, r11             @ R4-=W6*ROWr16[6] (a3)\n        itt             ne\n        subne           r2, r2, r10             @ R2-=W2*ROWr16[6] (a1)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:6", "text": "@@ R9 is free now\n        ldrsh           r9, [r14, #12]          @ R9=ROWr16[6]\n        itttt           ne\n        addne           r6, r6, r11             @ R6+=W4*ROWr16[4] (a0)\n        subne           r2, r2, r11             @ R2-=W4*ROWr16[4] (a1)\n        subne           r3, r3, r11             @ R3-=W4*ROWr16[4] (a2)\n        addne           r4, r4, r11             @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq             r9, #0                  @ if null avoid muls\n        itttt           ne\n        mulne           r11, r10, r9            @ R11=W6*ROWr16[6]\n        addne           r6, r6, r11             @ R6+=W6*ROWr16[6] (a0)\n        mulne           r10, r8, r9             @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne           r4, r4, r11             @ R4-=W6*ROWr16[6] (a3)\n        itt             ne\n        subne           r2, r2, r10             @ R2-=W2*ROWr16[6] (a1)\n        addne           r3, r3, r10             @ R3+=W2*ROWr16[6] (a2)\n\n__end_a_evaluation:\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ row[0] = (a0 + b0) >> ROW_SHIFT;\n        @@ row[1] = (a1 + b1) >> ROW_SHIFT;\n        @@ row[2] = (a2 + b2) >> ROW_SHIFT;\n        @@ row[3] = (a3 + b3) >> ROW_SHIFT;\n        @@ row[4] = (a3 - b3) >> ROW_SHIFT;\n        @@ row[5] = (a2 - b2) >> ROW_SHIFT;\n        @@ row[6] = (a1 - b1) >> ROW_SHIFT;\n        @@ row[7] = (a0 - b0) >> ROW_SHIFT;\n        add             r8, r6, r0              @ R8=a0+b0\n        add             r9, r2, r1              @ R9=a1+b1\n        @@ put two 16-bit half-words in a 32-bit word\n        @@ ROWr32[0]=ROWr16[0] | (ROWr16[1]<<16) (only little-endian compliant then!!!)\n        ldr             r10, =MASK_MSHW         @ R10=0xFFFF0000\n        and             r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a1+b1)<<5)\n        mvn             r11, r10                @ R11= NOT R10= 0x0000FFFF\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a0+b0)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #0]\n\n        add             r8, r3, r5              @ R8=a2+b2\n        add             r9, r4, r7              @ R9=a3+b3\n        and             r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a3+b3)<<5)\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a2+b2)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #4]\n\n        sub             r8, r4, r7              @ R8=a3-b3\n        sub             r9, r3, r5              @ R9=a2-b2\n        and             r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a2-b2)<<5)\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a3-b3)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #8]\n\n        sub             r8, r2, r1              @ R8=a1-b1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:7", "text": "mvn             r11, r10                @ R11= NOT R10= 0x0000FFFF\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a0+b0)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #0]\n\n        add             r8, r3, r5              @ R8=a2+b2\n        add             r9, r4, r7              @ R9=a3+b3\n        and             r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a3+b3)<<5)\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a2+b2)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #4]\n\n        sub             r8, r4, r7              @ R8=a3-b3\n        sub             r9, r3, r5              @ R9=a2-b2\n        and             r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a2-b2)<<5)\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a3-b3)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #8]\n\n        sub             r8, r2, r1              @ R8=a1-b1\n        sub             r9, r6, r0              @ R9=a0-b0\n        and             r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a0-b0)<<5)\n        and             r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a1-b1)>>11)\n        orr             r8, r8, r9\n        str             r8, [r14, #12]\n\n        bal             __end_row_loop\n\n__almost_empty_row:\n        @@ the row was empty, except ROWr16[0], now, management of this special case\n        @@ at this point, R0=block, R14=&block[n], R12=__const_ptr_, R1=ROWr32[0], R2=ROWr32[1],\n        @@                R3=ROWr32[2], R4=ROWr32[3], R5=(temp), R6=ROWr16[0], R7=ROWr16[1],\n        @@                R8=0xFFFF (temp), R9-R11 free\n        mov             r8, #0x10000            @ R8=0xFFFF (2 steps needed!) it saves a ldr call (because of delay run).\n        sub             r8, r8, #1              @ R8 is now ready.\n        and             r5, r8, r6, lsl #3      @ R5=R8 & (R6<<3)= (ROWr16[0]<<3) & 0xFFFF\n        orr             r5, r5, r5, lsl #16     @ R5=R5 | (R5<<16)\n        str             r5, [r14, #0]           @ R14[0]=ROWr32[0]=R5\n        str             r5, [r14, #4]           @ R14[4]=ROWr32[1]=R5\n        str             r5, [r14, #8]           @ R14[8]=ROWr32[2]=R5\n        str             r5, [r14, #12]          @ R14[12]=ROWr32[3]=R5\n\n__end_row_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr             r0, [sp, #0]            @ R0=block\n        teq             r0, r14                 @ compare current &block[8*n] to block, when block is reached, the loop is finished.\n        sub             r14, r14, #16\n        bne             __row_loop\n\n\n\n        @@ at this point, R0=block, R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        add             r14, r0, #14            @ R14=&block[7], better start from the last col, and decrease the value until col=0, i.e. R14=block.\n__col_loop:\n\n@@ __b_evaluation2:\n        @@ at this point, R0=block (temp),  R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:8", "text": "str             r5, [r14, #12]          @ R14[12]=ROWr32[3]=R5\n\n__end_row_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr             r0, [sp, #0]            @ R0=block\n        teq             r0, r14                 @ compare current &block[8*n] to block, when block is reached, the loop is finished.\n        sub             r14, r14, #16\n        bne             __row_loop\n\n\n\n        @@ at this point, R0=block, R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        add             r14, r0, #14            @ R14=&block[7], better start from the last col, and decrease the value until col=0, i.e. R14=block.\n__col_loop:\n\n@@ __b_evaluation2:\n        @@ at this point, R0=block (temp),  R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ proceed with b0-b3 first, followed by a0-a3\n        @@ MUL16(b0, W1, col[8x1]);\n        @@ MUL16(b1, W3, col[8x1]);\n        @@ MUL16(b2, W5, col[8x1]);\n        @@ MUL16(b3, W7, col[8x1]);\n        @@ MAC16(b0, W3, col[8x3]);\n        @@ MAC16(b1, -W7, col[8x3]);\n        @@ MAC16(b2, -W1, col[8x3]);\n        @@ MAC16(b3, -W5, col[8x3]);\n        ldr             r8, =W1                 @ R8=W1\n        ldrsh           r7, [r14, #16]\n        mul             r0, r8, r7              @ R0=W1*ROWr16[1]=b0 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr             r9, =W3                 @ R9=W3\n        ldr             r10, =W5                @ R10=W5\n        mul             r1, r9, r7              @ R1=W3*ROWr16[1]=b1 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr             r11, =W7                @ R11=W7\n        mul             r5, r10, r7             @ R5=W5*ROWr16[1]=b2 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldrsh           r2, [r14, #48]\n        mul             r7, r11, r7             @ R7=W7*ROWr16[1]=b3 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        teq             r2, #0                  @ if 0, then avoid muls\n        itttt           ne\n        mlane           r0, r9, r2, r0          @ R0+=W3*ROWr16[3]=b0 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        rsbne           r2, r2, #0              @ R2=-ROWr16[3]\n        mlane           r1, r11, r2, r1         @ R1-=W7*ROWr16[3]=b1 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        mlane           r5, r8, r2, r5          @ R5-=W1*ROWr16[3]=b2 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        it              ne\n        mlane           r7, r10, r2, r7         @ R7-=W5*ROWr16[3]=b3 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, col[5x8]);\n        @@ MAC16(b2, W7, col[5x8]);\n        @@ MAC16(b3, W3, col[5x8]);\n        @@ MAC16(b1, -W1, col[5x8]);\n        @@ MAC16(b0, W7, col[7x8]);\n        @@ MAC16(b2, W3, col[7x8]);\n        @@ MAC16(b3, -W1, col[7x8]);\n        @@ MAC16(b1, -W5, col[7x8]);\n        ldrsh           r3, [r14, #80]          @ R3=COLr16[5x8]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:9", "text": "itttt           ne\n        mlane           r0, r9, r2, r0          @ R0+=W3*ROWr16[3]=b0 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        rsbne           r2, r2, #0              @ R2=-ROWr16[3]\n        mlane           r1, r11, r2, r1         @ R1-=W7*ROWr16[3]=b1 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        mlane           r5, r8, r2, r5          @ R5-=W1*ROWr16[3]=b2 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        it              ne\n        mlane           r7, r10, r2, r7         @ R7-=W5*ROWr16[3]=b3 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, col[5x8]);\n        @@ MAC16(b2, W7, col[5x8]);\n        @@ MAC16(b3, W3, col[5x8]);\n        @@ MAC16(b1, -W1, col[5x8]);\n        @@ MAC16(b0, W7, col[7x8]);\n        @@ MAC16(b2, W3, col[7x8]);\n        @@ MAC16(b3, -W1, col[7x8]);\n        @@ MAC16(b1, -W5, col[7x8]);\n        ldrsh           r3, [r14, #80]          @ R3=COLr16[5x8]\n        teq             r3, #0                  @ if 0 then avoid muls\n        itttt           ne\n        mlane           r0, r10, r3, r0         @ R0+=W5*ROWr16[5x8]=b0\n        mlane           r5, r11, r3, r5         @ R5+=W7*ROWr16[5x8]=b2\n        mlane           r7, r9, r3, r7          @ R7+=W3*ROWr16[5x8]=b3\n        rsbne           r3, r3, #0              @ R3=-ROWr16[5x8]\n        ldrsh           r4, [r14, #112]         @ R4=COLr16[7x8]\n        it              ne\n        mlane           r1, r8, r3, r1          @ R7-=W1*ROWr16[5x8]=b1\n        @@ R3 is free now\n        teq             r4, #0                  @ if 0 then avoid muls\n        itttt           ne\n        mlane           r0, r11, r4, r0         @ R0+=W7*ROWr16[7x8]=b0\n        mlane           r5, r9, r4, r5          @ R5+=W3*ROWr16[7x8]=b2\n        rsbne           r4, r4, #0              @ R4=-ROWr16[7x8]\n        mlane           r7, r8, r4, r7          @ R7-=W1*ROWr16[7x8]=b3\n        it              ne\n        mlane           r1, r10, r4, r1         @ R1-=W5*ROWr16[7x8]=b1\n        @@ R4 is free now\n@@ __end_b_evaluation2:\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n@@ __a_evaluation2:\n        @@ a0 = (W4 * col[8x0]) + (1 << (COL_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldrsh           r6, [r14, #0]\n        ldr             r9, =W4                 @ R9=W4\n        mul             r6, r9, r6              @ R6=W4*ROWr16[0]\n        ldr             r10, =W6                @ R10=W6\n        ldrsh           r4, [r14, #32]          @ R4=ROWr16[2] (a3 not defined yet)\n        add             r6, r6, #COL_SHIFTED_1  @ R6=W4*ROWr16[0] + 1<<(COL_SHIFT-1) (a0)\n        mul             r11, r10, r4            @ R11=W6*ROWr16[2]\n        ldr             r8, =W2                 @ R8=W2\n        add             r2, r6, r11             @ R2=a0+W6*ROWr16[2] (a1)\n        sub             r3, r6, r11             @ R3=a0-W6*ROWr16[2] (a2)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:10", "text": "@@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n@@ __a_evaluation2:\n        @@ a0 = (W4 * col[8x0]) + (1 << (COL_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldrsh           r6, [r14, #0]\n        ldr             r9, =W4                 @ R9=W4\n        mul             r6, r9, r6              @ R6=W4*ROWr16[0]\n        ldr             r10, =W6                @ R10=W6\n        ldrsh           r4, [r14, #32]          @ R4=ROWr16[2] (a3 not defined yet)\n        add             r6, r6, #COL_SHIFTED_1  @ R6=W4*ROWr16[0] + 1<<(COL_SHIFT-1) (a0)\n        mul             r11, r10, r4            @ R11=W6*ROWr16[2]\n        ldr             r8, =W2                 @ R8=W2\n        add             r2, r6, r11             @ R2=a0+W6*ROWr16[2] (a1)\n        sub             r3, r6, r11             @ R3=a0-W6*ROWr16[2] (a2)\n        mul             r11, r8, r4             @ R11=W2*ROWr16[2]\n        sub             r4, r6, r11             @ R4=a0-W2*ROWr16[2] (a3)\n        add             r6, r6, r11             @ R6=a0+W2*ROWr16[2] (a0)\n\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8=W2, R9=W4, R10=W6, R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ a0 += W4*row[4]\n        @@ a1 -= W4*row[4]\n        @@ a2 -= W4*row[4]\n        @@ a3 += W4*row[4]\n        ldrsh           r11, [r14, #64]         @ R11=ROWr16[4]\n        teq             r11, #0                 @ if null avoid muls\n        itttt           ne\n        mulne           r11, r9, r11            @ R11=W4*ROWr16[4]\n        @@ R9 is free now\n        addne           r6, r6, r11             @ R6+=W4*ROWr16[4] (a0)\n        subne           r2, r2, r11             @ R2-=W4*ROWr16[4] (a1)\n        subne           r3, r3, r11             @ R3-=W4*ROWr16[4] (a2)\n        ldrsh           r9, [r14, #96]          @ R9=ROWr16[6]\n        it              ne\n        addne           r4, r4, r11             @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq             r9, #0                  @ if null avoid muls\n        itttt           ne\n        mulne           r11, r10, r9            @ R11=W6*ROWr16[6]\n        addne           r6, r6, r11             @ R6+=W6*ROWr16[6] (a0)\n        mulne           r10, r8, r9             @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne           r4, r4, r11             @ R4-=W6*ROWr16[6] (a3)\n        itt             ne\n        subne           r2, r2, r10             @ R2-=W2*ROWr16[6] (a1)\n        addne           r3, r3, r10             @ R3+=W2*ROWr16[6] (a2)\n@@ __end_a_evaluation2:\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:11", "text": "it              ne\n        addne           r4, r4, r11             @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq             r9, #0                  @ if null avoid muls\n        itttt           ne\n        mulne           r11, r10, r9            @ R11=W6*ROWr16[6]\n        addne           r6, r6, r11             @ R6+=W6*ROWr16[6] (a0)\n        mulne           r10, r8, r9             @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne           r4, r4, r11             @ R4-=W6*ROWr16[6] (a3)\n        itt             ne\n        subne           r2, r2, r10             @ R2-=W2*ROWr16[6] (a1)\n        addne           r3, r3, r10             @ R3+=W2*ROWr16[6] (a2)\n@@ __end_a_evaluation2:\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ col[0 ] = ((a0 + b0) >> COL_SHIFT);\n        @@ col[8 ] = ((a1 + b1) >> COL_SHIFT);\n        @@ col[16] = ((a2 + b2) >> COL_SHIFT);\n        @@ col[24] = ((a3 + b3) >> COL_SHIFT);\n        @@ col[32] = ((a3 - b3) >> COL_SHIFT);\n        @@ col[40] = ((a2 - b2) >> COL_SHIFT);\n        @@ col[48] = ((a1 - b1) >> COL_SHIFT);\n        @@ col[56] = ((a0 - b0) >> COL_SHIFT);\n        @@@@@ no optimization here @@@@@\n        add             r8, r6, r0              @ R8=a0+b0\n        add             r9, r2, r1              @ R9=a1+b1\n        mov             r8, r8, asr #COL_SHIFT\n        mov             r9, r9, asr #COL_SHIFT\n        strh            r8, [r14, #0]\n        strh            r9, [r14, #16]\n        add             r8, r3, r5              @ R8=a2+b2\n        add             r9, r4, r7              @ R9=a3+b3\n        mov             r8, r8, asr #COL_SHIFT\n        mov             r9, r9, asr #COL_SHIFT\n        strh            r8, [r14, #32]\n        strh            r9, [r14, #48]\n        sub             r8, r4, r7              @ R8=a3-b3\n        sub             r9, r3, r5              @ R9=a2-b2\n        mov             r8, r8, asr #COL_SHIFT\n        mov             r9, r9, asr #COL_SHIFT\n        strh            r8, [r14, #64]\n        strh            r9, [r14, #80]\n        sub             r8, r2, r1              @ R8=a1-b1\n        sub             r9, r6, r0              @ R9=a0-b0\n        mov             r8, r8, asr #COL_SHIFT\n        mov             r9, r9, asr #COL_SHIFT\n        strh            r8, [r14, #96]\n        strh            r9, [r14, #112]\n\n@@ __end_col_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr             r0, [sp, #0]            @ R0=block\n        teq             r0, r14                 @ compare current &block[n] to block, when block is reached, the loop is finished.\n        sub             r14, r14, #2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:12", "text": "strh            r9, [r14, #48]\n        sub             r8, r4, r7              @ R8=a3-b3\n        sub             r9, r3, r5              @ R9=a2-b2\n        mov             r8, r8, asr #COL_SHIFT\n        mov             r9, r9, asr #COL_SHIFT\n        strh            r8, [r14, #64]\n        strh            r9, [r14, #80]\n        sub             r8, r2, r1              @ R8=a1-b1\n        sub             r9, r6, r0              @ R9=a0-b0\n        mov             r8, r8, asr #COL_SHIFT\n        mov             r9, r9, asr #COL_SHIFT\n        strh            r8, [r14, #96]\n        strh            r9, [r14, #112]\n\n@@ __end_col_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr             r0, [sp, #0]            @ R0=block\n        teq             r0, r14                 @ compare current &block[n] to block, when block is reached, the loop is finished.\n        sub             r14, r14, #2\n        bne             __col_loop\n\n\n\n\n@@ __end_simple_idct_arm:\n        @@ restore registers to previous status!\n        add             sp, sp, #8 @@ the local variables!\n        ldmfd           sp!, {r4-r11, r15}      @@ update PC with LR content.\n\n\n\n@@ kind of sub-function, here not to overload the common case.\n__end_bef_a_evaluation:\n        add             r2, r6, r11             @ R2=a0+W6*ROWr16[2] (a1)\n        mul             r11, r8, r4             @ R11=W2*ROWr16[2]\n        sub             r4, r6, r11             @ R4=a0-W2*ROWr16[2] (a3)\n        add             r6, r6, r11             @ R6=a0+W2*ROWr16[2] (a0)\n        bal             __end_a_evaluation\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_arm.S", "line_start": 441, "line_end": 480}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:1", "text": "/*\n * Copyright (C) 2002 Frederic 'dilb' Boulay\n *\n * Author: Frederic Boulay <dilb@handhelds.org>\n *\n * The function defined in this file is derived from the simple_idct function\n * from the libavcodec library part of the FFmpeg project.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n/* useful constants for the algorithm */\n#define W1  22725\n#define W2  21407\n#define W3  19266\n#define W4  16383\n#define W5  12873\n#define W6  8867\n#define W7  4520\n#define MASK_MSHW 0xFFFF0000\n\n#define ROW_SHIFT 11\n#define ROW_SHIFT2MSHW (16-11)\n#define COL_SHIFT 20\n#define ROW_SHIFTED_1 1024 /* 1<< (ROW_SHIFT-1) */\n#define COL_SHIFTED_1 524288 /* 1<< (COL_SHIFT-1) */\n\n\nfunction ff_simple_idct_arm, export=1\n        @@ void simple_idct_arm(int16_t *block)\n        @@ save stack for reg needed (take all of them),\n        @@ R0-R3 are scratch regs, so no need to save them, but R0 contains the pointer to block\n        @@ so it must not be overwritten, if it is not saved!!\n        @@ R12 is another scratch register, so it should not be saved too\n        @@ save all registers\n        stmfd sp!, {r4-r11, r14} @ R14 is also called LR\n        @@ at this point, R0=block, other registers are free.\n        add r14, r0, #112        @ R14=&block[8*7], better start from the last row, and decrease the value until row=0, i.e. R12=block.\n        @@ add 2 temporary variables in the stack: R0 and R14\n        sub sp, sp, #8          @ allow 2 local variables\n        str r0, [sp, #0]        @ save block in sp[0]\n        @@ stack status\n        @@ sp+4   free\n        @@ sp+0   R0  (block)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:2", "text": "#define ROW_SHIFTED_1 1024 /* 1<< (ROW_SHIFT-1) */\n#define COL_SHIFTED_1 524288 /* 1<< (COL_SHIFT-1) */\n\n\nfunction ff_simple_idct_arm, export=1\n        @@ void simple_idct_arm(int16_t *block)\n        @@ save stack for reg needed (take all of them),\n        @@ R0-R3 are scratch regs, so no need to save them, but R0 contains the pointer to block\n        @@ so it must not be overwritten, if it is not saved!!\n        @@ R12 is another scratch register, so it should not be saved too\n        @@ save all registers\n        stmfd sp!, {r4-r11, r14} @ R14 is also called LR\n        @@ at this point, R0=block, other registers are free.\n        add r14, r0, #112        @ R14=&block[8*7], better start from the last row, and decrease the value until row=0, i.e. R12=block.\n        @@ add 2 temporary variables in the stack: R0 and R14\n        sub sp, sp, #8          @ allow 2 local variables\n        str r0, [sp, #0]        @ save block in sp[0]\n        @@ stack status\n        @@ sp+4   free\n        @@ sp+0   R0  (block)\n\n\n        @@ at this point, R0=block, R14=&block[56], R12=__const_ptr_, R1-R11 free\n\n\n__row_loop:\n        @@ read the row and check if it is null, almost null, or not, according to strongarm specs, it is not necessary to optimize ldr accesses (i.e. split 32 bits in two 16-bit words), at least it gives more usable registers :)\n        ldr r1, [r14, #0]        @ R1=(int32)(R12)[0]=ROWr32[0] (relative row cast to a 32b pointer)\n        ldr r2, [r14, #4]        @ R2=(int32)(R12)[1]=ROWr32[1]\n        ldr r3, [r14, #8]        @ R3=ROWr32[2]\n        ldr r4, [r14, #12]       @ R4=ROWr32[3]\n        @@ check if the words are null, if all of them are null, then proceed with next row (branch __end_row_loop),\n        @@ if ROWr16[0] is the only one not null, then proceed with this special case (branch __almost_empty_row)\n        @@ else follow the complete algorithm.\n        @@ at this point, R0=block, R14=&block[n], R12=__const_ptr_, R1=ROWr32[0], R2=ROWr32[1],\n        @@                R3=ROWr32[2], R4=ROWr32[3], R5-R11 free\n        orr r5, r4, r3           @ R5=R4 | R3\n        orr r5, r5, r2           @ R5=R4 | R3 | R2\n        orrs r6, r5, r1          @ Test R5 | R1 (the aim is to check if everything is null)\n        beq __end_row_loop\n        mov r7, r1, asr #16      @ R7=R1>>16=ROWr16[1] (evaluate it now, as it could be useful later)\n        ldrsh r6, [r14, #0]      @ R6=ROWr16[0]\n        orrs r5, r5, r7          @ R5=R4 | R3 | R2 | R7\n        beq __almost_empty_row\n\n@@ __b_evaluation:\n        @@ at this point, R0=block (temp),  R1(free), R2=ROWr32[1], R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=(temp), R6=ROWr16[0], R7=ROWr16[1], R8-R11 free,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ to save some registers/calls, proceed with b0-b3 first, followed by a0-a3\n\n        @@ MUL16(b0, W1, row[1]);\n        @@ MUL16(b1, W3, row[1]);\n        @@ MUL16(b2, W5, row[1]);\n        @@ MUL16(b3, W7, row[1]);\n        @@ MAC16(b0, W3, row[3]);\n        @@ MAC16(b1, -W7, row[3]);\n        @@ MAC16(b2, -W1, row[3]);\n        @@ MAC16(b3, -W5, row[3]);\n        ldr r8, =W1              @ R8=W1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:3", "text": "mov r7, r1, asr #16      @ R7=R1>>16=ROWr16[1] (evaluate it now, as it could be useful later)\n        ldrsh r6, [r14, #0]      @ R6=ROWr16[0]\n        orrs r5, r5, r7          @ R5=R4 | R3 | R2 | R7\n        beq __almost_empty_row\n\n@@ __b_evaluation:\n        @@ at this point, R0=block (temp),  R1(free), R2=ROWr32[1], R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=(temp), R6=ROWr16[0], R7=ROWr16[1], R8-R11 free,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ to save some registers/calls, proceed with b0-b3 first, followed by a0-a3\n\n        @@ MUL16(b0, W1, row[1]);\n        @@ MUL16(b1, W3, row[1]);\n        @@ MUL16(b2, W5, row[1]);\n        @@ MUL16(b3, W7, row[1]);\n        @@ MAC16(b0, W3, row[3]);\n        @@ MAC16(b1, -W7, row[3]);\n        @@ MAC16(b2, -W1, row[3]);\n        @@ MAC16(b3, -W5, row[3]);\n        ldr r8, =W1              @ R8=W1\n        mov r2, r2, asr #16      @ R2=ROWr16[3]\n        mul r0, r8, r7           @ R0=W1*ROWr16[1]=b0 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr r9, =W3              @ R9=W3\n        ldr r10, =W5             @ R10=W5\n        mul r1, r9, r7           @ R1=W3*ROWr16[1]=b1 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr r11, =W7             @ R11=W7\n        mul r5, r10, r7          @ R5=W5*ROWr16[1]=b2 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        mul r7, r11, r7          @ R7=W7*ROWr16[1]=b3 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        teq r2, #0               @ if null avoid muls\n        itttt ne\n        mlane r0, r9, r2, r0     @ R0+=W3*ROWr16[3]=b0 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        rsbne r2, r2, #0         @ R2=-ROWr16[3]\n        mlane r1, r11, r2, r1    @ R1-=W7*ROWr16[3]=b1 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        mlane r5, r8, r2, r5     @ R5-=W1*ROWr16[3]=b2 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        it    ne\n        mlane r7, r10, r2, r7    @ R7-=W5*ROWr16[3]=b3 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        orrs r2, r3, r4          @ R2=ROWr32[2] | ROWr32[3]\n        beq __end_b_evaluation\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, row[5]);\n        @@ MAC16(b2, W7, row[5]);\n        @@ MAC16(b3, W3, row[5]);\n        @@ MAC16(b1, -W1, row[5]);\n        @@ MAC16(b0, W7, row[7]);\n        @@ MAC16(b2, W3, row[7]);\n        @@ MAC16(b3, -W1, row[7]);\n        @@ MAC16(b1, -W5, row[7]);\n        mov r3, r3, asr #16      @ R3=ROWr16[5]\n        teq r3, #0               @ if null avoid muls\n        it    ne\n        mlane r0, r10, r3, r0    @ R0+=W5*ROWr16[5]=b0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:4", "text": "@@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        orrs r2, r3, r4          @ R2=ROWr32[2] | ROWr32[3]\n        beq __end_b_evaluation\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3=ROWr32[2], R4=ROWr32[3],\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, row[5]);\n        @@ MAC16(b2, W7, row[5]);\n        @@ MAC16(b3, W3, row[5]);\n        @@ MAC16(b1, -W1, row[5]);\n        @@ MAC16(b0, W7, row[7]);\n        @@ MAC16(b2, W3, row[7]);\n        @@ MAC16(b3, -W1, row[7]);\n        @@ MAC16(b1, -W5, row[7]);\n        mov r3, r3, asr #16      @ R3=ROWr16[5]\n        teq r3, #0               @ if null avoid muls\n        it    ne\n        mlane r0, r10, r3, r0    @ R0+=W5*ROWr16[5]=b0\n        mov r4, r4, asr #16      @ R4=ROWr16[7]\n        itttt ne\n        mlane r5, r11, r3, r5    @ R5+=W7*ROWr16[5]=b2\n        mlane r7, r9, r3, r7     @ R7+=W3*ROWr16[5]=b3\n        rsbne r3, r3, #0         @ R3=-ROWr16[5]\n        mlane r1, r8, r3, r1     @ R7-=W1*ROWr16[5]=b1\n        @@ R3 is free now\n        teq r4, #0               @ if null avoid muls\n        itttt ne\n        mlane r0, r11, r4, r0    @ R0+=W7*ROWr16[7]=b0\n        mlane r5, r9, r4, r5     @ R5+=W3*ROWr16[7]=b2\n        rsbne r4, r4, #0         @ R4=-ROWr16[7]\n        mlane r7, r8, r4, r7     @ R7-=W1*ROWr16[7]=b3\n        it    ne\n        mlane r1, r10, r4, r1    @ R1-=W5*ROWr16[7]=b1\n        @@ R4 is free now\n__end_b_evaluation:\n        @@ at this point, R0=b0,  R1=b1, R2=ROWr32[2] | ROWr32[3] (tmp), R3 (free), R4 (free),\n        @@     R5=b2, R6=ROWr16[0], R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n@@ __a_evaluation:\n        @@ a0 = (W4 * row[0]) + (1 << (ROW_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldr r9, =W4              @ R9=W4\n        mul r6, r9, r6           @ R6=W4*ROWr16[0]\n        ldr r10, =W6             @ R10=W6\n        ldrsh r4, [r14, #4]      @ R4=ROWr16[2] (a3 not defined yet)\n        add r6, r6, #ROW_SHIFTED_1 @ R6=W4*ROWr16[0] + 1<<(ROW_SHIFT-1) (a0)\n\n        mul r11, r10, r4         @ R11=W6*ROWr16[2]\n        ldr r8, =W2              @ R8=W2\n        sub r3, r6, r11          @ R3=a0-W6*ROWr16[2] (a2)\n        @@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        teq r2, #0\n        beq __end_bef_a_evaluation", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:5", "text": "@@ __a_evaluation:\n        @@ a0 = (W4 * row[0]) + (1 << (ROW_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldr r9, =W4              @ R9=W4\n        mul r6, r9, r6           @ R6=W4*ROWr16[0]\n        ldr r10, =W6             @ R10=W6\n        ldrsh r4, [r14, #4]      @ R4=ROWr16[2] (a3 not defined yet)\n        add r6, r6, #ROW_SHIFTED_1 @ R6=W4*ROWr16[0] + 1<<(ROW_SHIFT-1) (a0)\n\n        mul r11, r10, r4         @ R11=W6*ROWr16[2]\n        ldr r8, =W2              @ R8=W2\n        sub r3, r6, r11          @ R3=a0-W6*ROWr16[2] (a2)\n        @@ temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];\n        @@ if (temp != 0) {}\n        teq r2, #0\n        beq __end_bef_a_evaluation\n\n        add r2, r6, r11          @ R2=a0+W6*ROWr16[2] (a1)\n        mul r11, r8, r4          @ R11=W2*ROWr16[2]\n        sub r4, r6, r11          @ R4=a0-W2*ROWr16[2] (a3)\n        add r6, r6, r11          @ R6=a0+W2*ROWr16[2] (a0)\n\n\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8=W2, R9=W4, R10=W6, R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n\n        @@ a0 += W4*row[4]\n        @@ a1 -= W4*row[4]\n        @@ a2 -= W4*row[4]\n        @@ a3 += W4*row[4]\n        ldrsh r11, [r14, #8]     @ R11=ROWr16[4]\n        teq r11, #0              @ if null avoid muls\n        it    ne\n        mulne r11, r9, r11       @ R11=W4*ROWr16[4]\n        @@ R9 is free now\n        ldrsh r9, [r14, #12]     @ R9=ROWr16[6]\n        itttt ne\n        addne r6, r6, r11        @ R6+=W4*ROWr16[4] (a0)\n        subne r2, r2, r11        @ R2-=W4*ROWr16[4] (a1)\n        subne r3, r3, r11        @ R3-=W4*ROWr16[4] (a2)\n        addne r4, r4, r11        @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq r9, #0               @ if null avoid muls\n        itttt ne\n        mulne r11, r10, r9       @ R11=W6*ROWr16[6]\n        addne r6, r6, r11        @ R6+=W6*ROWr16[6] (a0)\n        mulne r10, r8, r9        @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne r4, r4, r11        @ R4-=W6*ROWr16[6] (a3)\n        itt   ne\n        subne r2, r2, r10        @ R2-=W2*ROWr16[6] (a1)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:6", "text": "@@ R9 is free now\n        ldrsh r9, [r14, #12]     @ R9=ROWr16[6]\n        itttt ne\n        addne r6, r6, r11        @ R6+=W4*ROWr16[4] (a0)\n        subne r2, r2, r11        @ R2-=W4*ROWr16[4] (a1)\n        subne r3, r3, r11        @ R3-=W4*ROWr16[4] (a2)\n        addne r4, r4, r11        @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq r9, #0               @ if null avoid muls\n        itttt ne\n        mulne r11, r10, r9       @ R11=W6*ROWr16[6]\n        addne r6, r6, r11        @ R6+=W6*ROWr16[6] (a0)\n        mulne r10, r8, r9        @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne r4, r4, r11        @ R4-=W6*ROWr16[6] (a3)\n        itt   ne\n        subne r2, r2, r10        @ R2-=W2*ROWr16[6] (a1)\n        addne r3, r3, r10        @ R3+=W2*ROWr16[6] (a2)\n\n__end_a_evaluation:\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ row[0] = (a0 + b0) >> ROW_SHIFT;\n        @@ row[1] = (a1 + b1) >> ROW_SHIFT;\n        @@ row[2] = (a2 + b2) >> ROW_SHIFT;\n        @@ row[3] = (a3 + b3) >> ROW_SHIFT;\n        @@ row[4] = (a3 - b3) >> ROW_SHIFT;\n        @@ row[5] = (a2 - b2) >> ROW_SHIFT;\n        @@ row[6] = (a1 - b1) >> ROW_SHIFT;\n        @@ row[7] = (a0 - b0) >> ROW_SHIFT;\n        add r8, r6, r0           @ R8=a0+b0\n        add r9, r2, r1           @ R9=a1+b1\n        @@ put two 16-bit half-words in a 32-bit word\n        @@ ROWr32[0]=ROWr16[0] | (ROWr16[1]<<16) (only little-endian compliant then!!!)\n        ldr r10, =MASK_MSHW      @ R10=0xFFFF0000\n        and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a1+b1)<<5)\n        mvn r11, r10             @ R11= NOT R10= 0x0000FFFF\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a0+b0)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #0]\n\n        add r8, r3, r5           @ R8=a2+b2\n        add r9, r4, r7           @ R9=a3+b3\n        and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a3+b3)<<5)\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a2+b2)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #4]\n\n        sub r8, r4, r7           @ R8=a3-b3\n        sub r9, r3, r5           @ R9=a2-b2\n        and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a2-b2)<<5)\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a3-b3)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #8]\n\n        sub r8, r2, r1           @ R8=a1-b1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:7", "text": "mvn r11, r10             @ R11= NOT R10= 0x0000FFFF\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a0+b0)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #0]\n\n        add r8, r3, r5           @ R8=a2+b2\n        add r9, r4, r7           @ R9=a3+b3\n        and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a3+b3)<<5)\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a2+b2)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #4]\n\n        sub r8, r4, r7           @ R8=a3-b3\n        sub r9, r3, r5           @ R9=a2-b2\n        and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a2-b2)<<5)\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a3-b3)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #8]\n\n        sub r8, r2, r1           @ R8=a1-b1\n        sub r9, r6, r0           @ R9=a0-b0\n        and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a0-b0)<<5)\n        and r8, r11, r8, asr #ROW_SHIFT @ R8=0x0000FFFF & ((a1-b1)>>11)\n        orr r8, r8, r9\n        str r8, [r14, #12]\n\n        bal __end_row_loop\n\n__almost_empty_row:\n        @@ the row was empty, except ROWr16[0], now, management of this special case\n        @@ at this point, R0=block, R14=&block[n], R12=__const_ptr_, R1=ROWr32[0], R2=ROWr32[1],\n        @@                R3=ROWr32[2], R4=ROWr32[3], R5=(temp), R6=ROWr16[0], R7=ROWr16[1],\n        @@                R8=0xFFFF (temp), R9-R11 free\n        mov r8, #0x10000         @ R8=0xFFFF (2 steps needed!) it saves a ldr call (because of delay run).\n        sub r8, r8, #1           @ R8 is now ready.\n        and r5, r8, r6, lsl #3   @ R5=R8 & (R6<<3)= (ROWr16[0]<<3) & 0xFFFF\n        orr r5, r5, r5, lsl #16  @ R5=R5 | (R5<<16)\n        str r5, [r14, #0]        @ R14[0]=ROWr32[0]=R5\n        str r5, [r14, #4]        @ R14[4]=ROWr32[1]=R5\n        str r5, [r14, #8]        @ R14[8]=ROWr32[2]=R5\n        str r5, [r14, #12]       @ R14[12]=ROWr32[3]=R5\n\n__end_row_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr r0, [sp, #0]         @ R0=block\n        teq r0, r14              @ compare current &block[8*n] to block, when block is reached, the loop is finished.\n        sub r14, r14, #16\n        bne __row_loop\n\n\n\n        @@ at this point, R0=block, R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        add r14, r0, #14        @ R14=&block[7], better start from the last col, and decrease the value until col=0, i.e. R14=block.\n__col_loop:\n\n@@ __b_evaluation2:\n        @@ at this point, R0=block (temp),  R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:8", "text": "str r5, [r14, #12]       @ R14[12]=ROWr32[3]=R5\n\n__end_row_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr r0, [sp, #0]         @ R0=block\n        teq r0, r14              @ compare current &block[8*n] to block, when block is reached, the loop is finished.\n        sub r14, r14, #16\n        bne __row_loop\n\n\n\n        @@ at this point, R0=block, R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        add r14, r0, #14        @ R14=&block[7], better start from the last col, and decrease the value until col=0, i.e. R14=block.\n__col_loop:\n\n@@ __b_evaluation2:\n        @@ at this point, R0=block (temp),  R1-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ proceed with b0-b3 first, followed by a0-a3\n        @@ MUL16(b0, W1, col[8x1]);\n        @@ MUL16(b1, W3, col[8x1]);\n        @@ MUL16(b2, W5, col[8x1]);\n        @@ MUL16(b3, W7, col[8x1]);\n        @@ MAC16(b0, W3, col[8x3]);\n        @@ MAC16(b1, -W7, col[8x3]);\n        @@ MAC16(b2, -W1, col[8x3]);\n        @@ MAC16(b3, -W5, col[8x3]);\n        ldr r8, =W1              @ R8=W1\n        ldrsh r7, [r14, #16]\n        mul r0, r8, r7           @ R0=W1*ROWr16[1]=b0 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr r9, =W3              @ R9=W3\n        ldr r10, =W5             @ R10=W5\n        mul r1, r9, r7           @ R1=W3*ROWr16[1]=b1 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldr r11, =W7             @ R11=W7\n        mul r5, r10, r7          @ R5=W5*ROWr16[1]=b2 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        ldrsh r2, [r14, #48]\n        mul r7, r11, r7          @ R7=W7*ROWr16[1]=b3 (ROWr16[1] must be the second arg, to have the possibility to save 1 cycle)\n        teq r2, #0               @ if 0, then avoid muls\n        itttt ne\n        mlane r0, r9, r2, r0     @ R0+=W3*ROWr16[3]=b0 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        rsbne r2, r2, #0         @ R2=-ROWr16[3]\n        mlane r1, r11, r2, r1    @ R1-=W7*ROWr16[3]=b1 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        mlane r5, r8, r2, r5     @ R5-=W1*ROWr16[3]=b2 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        it    ne\n        mlane r7, r10, r2, r7    @ R7-=W5*ROWr16[3]=b3 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, col[5x8]);\n        @@ MAC16(b2, W7, col[5x8]);\n        @@ MAC16(b3, W3, col[5x8]);\n        @@ MAC16(b1, -W1, col[5x8]);\n        @@ MAC16(b0, W7, col[7x8]);\n        @@ MAC16(b2, W3, col[7x8]);\n        @@ MAC16(b3, -W1, col[7x8]);\n        @@ MAC16(b1, -W5, col[7x8]);\n        ldrsh r3, [r14, #80]     @ R3=COLr16[5x8]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:9", "text": "itttt ne\n        mlane r0, r9, r2, r0     @ R0+=W3*ROWr16[3]=b0 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        rsbne r2, r2, #0         @ R2=-ROWr16[3]\n        mlane r1, r11, r2, r1    @ R1-=W7*ROWr16[3]=b1 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        mlane r5, r8, r2, r5     @ R5-=W1*ROWr16[3]=b2 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n        it    ne\n        mlane r7, r10, r2, r7    @ R7-=W5*ROWr16[3]=b3 (ROWr16[3] must be the second arg, to have the possibility to save 1 cycle)\n\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8=W1, R9=W3, R10=W5, R11=W7,\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ MAC16(b0, W5, col[5x8]);\n        @@ MAC16(b2, W7, col[5x8]);\n        @@ MAC16(b3, W3, col[5x8]);\n        @@ MAC16(b1, -W1, col[5x8]);\n        @@ MAC16(b0, W7, col[7x8]);\n        @@ MAC16(b2, W3, col[7x8]);\n        @@ MAC16(b3, -W1, col[7x8]);\n        @@ MAC16(b1, -W5, col[7x8]);\n        ldrsh r3, [r14, #80]     @ R3=COLr16[5x8]\n        teq r3, #0               @ if 0 then avoid muls\n        itttt ne\n        mlane r0, r10, r3, r0    @ R0+=W5*ROWr16[5x8]=b0\n        mlane r5, r11, r3, r5    @ R5+=W7*ROWr16[5x8]=b2\n        mlane r7, r9, r3, r7     @ R7+=W3*ROWr16[5x8]=b3\n        rsbne r3, r3, #0         @ R3=-ROWr16[5x8]\n        ldrsh r4, [r14, #112]    @ R4=COLr16[7x8]\n        it    ne\n        mlane r1, r8, r3, r1     @ R7-=W1*ROWr16[5x8]=b1\n        @@ R3 is free now\n        teq r4, #0               @ if 0 then avoid muls\n        itttt ne\n        mlane r0, r11, r4, r0    @ R0+=W7*ROWr16[7x8]=b0\n        mlane r5, r9, r4, r5     @ R5+=W3*ROWr16[7x8]=b2\n        rsbne r4, r4, #0         @ R4=-ROWr16[7x8]\n        mlane r7, r8, r4, r7     @ R7-=W1*ROWr16[7x8]=b3\n        it    ne\n        mlane r1, r10, r4, r1    @ R1-=W5*ROWr16[7x8]=b1\n        @@ R4 is free now\n@@ __end_b_evaluation2:\n        @@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n@@ __a_evaluation2:\n        @@ a0 = (W4 * col[8x0]) + (1 << (COL_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldrsh r6, [r14, #0]\n        ldr r9, =W4              @ R9=W4\n        mul r6, r9, r6           @ R6=W4*ROWr16[0]\n        ldr r10, =W6             @ R10=W6\n        ldrsh r4, [r14, #32]     @ R4=ROWr16[2] (a3 not defined yet)\n        add r6, r6, #COL_SHIFTED_1 @ R6=W4*ROWr16[0] + 1<<(COL_SHIFT-1) (a0)\n        mul r11, r10, r4         @ R11=W6*ROWr16[2]\n        ldr r8, =W2              @ R8=W2\n        add r2, r6, r11          @ R2=a0+W6*ROWr16[2] (a1)\n        sub r3, r6, r11          @ R3=a0-W6*ROWr16[2] (a2)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:10", "text": "@@ at this point, R0=b0,  R1=b1, R2 (free), R3 (free), R4 (free),\n        @@     R5=b2, R6 (free), R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n\n@@ __a_evaluation2:\n        @@ a0 = (W4 * col[8x0]) + (1 << (COL_SHIFT - 1));\n        @@ a1 = a0 + W6 * row[2];\n        @@ a2 = a0 - W6 * row[2];\n        @@ a3 = a0 - W2 * row[2];\n        @@ a0 = a0 + W2 * row[2];\n        ldrsh r6, [r14, #0]\n        ldr r9, =W4              @ R9=W4\n        mul r6, r9, r6           @ R6=W4*ROWr16[0]\n        ldr r10, =W6             @ R10=W6\n        ldrsh r4, [r14, #32]     @ R4=ROWr16[2] (a3 not defined yet)\n        add r6, r6, #COL_SHIFTED_1 @ R6=W4*ROWr16[0] + 1<<(COL_SHIFT-1) (a0)\n        mul r11, r10, r4         @ R11=W6*ROWr16[2]\n        ldr r8, =W2              @ R8=W2\n        add r2, r6, r11          @ R2=a0+W6*ROWr16[2] (a1)\n        sub r3, r6, r11          @ R3=a0-W6*ROWr16[2] (a2)\n        mul r11, r8, r4          @ R11=W2*ROWr16[2]\n        sub r4, r6, r11          @ R4=a0-W2*ROWr16[2] (a3)\n        add r6, r6, r11          @ R6=a0+W2*ROWr16[2] (a0)\n\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8=W2, R9=W4, R10=W6, R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ a0 += W4*row[4]\n        @@ a1 -= W4*row[4]\n        @@ a2 -= W4*row[4]\n        @@ a3 += W4*row[4]\n        ldrsh r11, [r14, #64]    @ R11=ROWr16[4]\n        teq r11, #0              @ if null avoid muls\n        itttt ne\n        mulne r11, r9, r11       @ R11=W4*ROWr16[4]\n        @@ R9 is free now\n        addne r6, r6, r11        @ R6+=W4*ROWr16[4] (a0)\n        subne r2, r2, r11        @ R2-=W4*ROWr16[4] (a1)\n        subne r3, r3, r11        @ R3-=W4*ROWr16[4] (a2)\n        ldrsh r9, [r14, #96]     @ R9=ROWr16[6]\n        it    ne\n        addne r4, r4, r11        @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq r9, #0               @ if null avoid muls\n        itttt ne\n        mulne r11, r10, r9       @ R11=W6*ROWr16[6]\n        addne r6, r6, r11        @ R6+=W6*ROWr16[6] (a0)\n        mulne r10, r8, r9        @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne r4, r4, r11        @ R4-=W6*ROWr16[6] (a3)\n        itt   ne\n        subne r2, r2, r10        @ R2-=W2*ROWr16[6] (a1)\n        addne r3, r3, r10        @ R3+=W2*ROWr16[6] (a2)\n@@ __end_a_evaluation2:\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:11", "text": "it    ne\n        addne r4, r4, r11        @ R4+=W4*ROWr16[4] (a3)\n        @@ W6 alone is no more useful, save W2*ROWr16[6] in it instead\n        teq r9, #0               @ if null avoid muls\n        itttt ne\n        mulne r11, r10, r9       @ R11=W6*ROWr16[6]\n        addne r6, r6, r11        @ R6+=W6*ROWr16[6] (a0)\n        mulne r10, r8, r9        @ R10=W2*ROWr16[6]\n        @@ a0 += W6*row[6];\n        @@ a3 -= W6*row[6];\n        @@ a1 -= W2*row[6];\n        @@ a2 += W2*row[6];\n        subne r4, r4, r11        @ R4-=W6*ROWr16[6] (a3)\n        itt   ne\n        subne r2, r2, r10        @ R2-=W2*ROWr16[6] (a1)\n        addne r3, r3, r10        @ R3+=W2*ROWr16[6] (a2)\n@@ __end_a_evaluation2:\n        @@ at this point, R0=b0,  R1=b1, R2=a1, R3=a2, R4=a3,\n        @@     R5=b2, R6=a0, R7=b3, R8 (free), R9 (free), R10 (free), R11 (free),\n        @@     R12=__const_ptr_, R14=&block[n]\n        @@ col[0 ] = ((a0 + b0) >> COL_SHIFT);\n        @@ col[8 ] = ((a1 + b1) >> COL_SHIFT);\n        @@ col[16] = ((a2 + b2) >> COL_SHIFT);\n        @@ col[24] = ((a3 + b3) >> COL_SHIFT);\n        @@ col[32] = ((a3 - b3) >> COL_SHIFT);\n        @@ col[40] = ((a2 - b2) >> COL_SHIFT);\n        @@ col[48] = ((a1 - b1) >> COL_SHIFT);\n        @@ col[56] = ((a0 - b0) >> COL_SHIFT);\n        @@@@@ no optimization here @@@@@\n        add r8, r6, r0           @ R8=a0+b0\n        add r9, r2, r1           @ R9=a1+b1\n        mov r8, r8, asr #COL_SHIFT\n        mov r9, r9, asr #COL_SHIFT\n        strh r8, [r14, #0]\n        strh r9, [r14, #16]\n        add r8, r3, r5           @ R8=a2+b2\n        add r9, r4, r7           @ R9=a3+b3\n        mov r8, r8, asr #COL_SHIFT\n        mov r9, r9, asr #COL_SHIFT\n        strh r8, [r14, #32]\n        strh r9, [r14, #48]\n        sub r8, r4, r7           @ R8=a3-b3\n        sub r9, r3, r5           @ R9=a2-b2\n        mov r8, r8, asr #COL_SHIFT\n        mov r9, r9, asr #COL_SHIFT\n        strh r8, [r14, #64]\n        strh r9, [r14, #80]\n        sub r8, r2, r1           @ R8=a1-b1\n        sub r9, r6, r0           @ R9=a0-b0\n        mov r8, r8, asr #COL_SHIFT\n        mov r9, r9, asr #COL_SHIFT\n        strh r8, [r14, #96]\n        strh r9, [r14, #112]\n\n@@ __end_col_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr r0, [sp, #0]         @ R0=block\n        teq r0, r14              @ compare current &block[n] to block, when block is reached, the loop is finished.\n        sub r14, r14, #2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_arm.S:12", "text": "strh r9, [r14, #48]\n        sub r8, r4, r7           @ R8=a3-b3\n        sub r9, r3, r5           @ R9=a2-b2\n        mov r8, r8, asr #COL_SHIFT\n        mov r9, r9, asr #COL_SHIFT\n        strh r8, [r14, #64]\n        strh r9, [r14, #80]\n        sub r8, r2, r1           @ R8=a1-b1\n        sub r9, r6, r0           @ R9=a0-b0\n        mov r8, r8, asr #COL_SHIFT\n        mov r9, r9, asr #COL_SHIFT\n        strh r8, [r14, #96]\n        strh r9, [r14, #112]\n\n@@ __end_col_loop:\n        @@ at this point, R0-R11 (free)\n        @@     R12=__const_ptr_, R14=&block[n]\n        ldr r0, [sp, #0]         @ R0=block\n        teq r0, r14              @ compare current &block[n] to block, when block is reached, the loop is finished.\n        sub r14, r14, #2\n        bne __col_loop\n\n\n\n\n@@ __end_simple_idct_arm:\n        @@ restore registers to previous status!\n        add sp, sp, #8 @@ the local variables!\n        ldmfd sp!, {r4-r11, r15} @@ update PC with LR content.\n\n\n\n@@ kind of sub-function, here not to overload the common case.\n__end_bef_a_evaluation:\n        add r2, r6, r11          @ R2=a0+W6*ROWr16[2] (a1)\n        mul r11, r8, r4          @ R11=W2*ROWr16[2]\n        sub r4, r6, r11          @ R4=a0-W2*ROWr16[2] (a3)\n        add r6, r6, r11          @ R6=a0+W2*ROWr16[2] (a0)\n        bal __end_a_evaluation\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_arm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_arm.S", "line_start": 441, "line_end": 480}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:1", "text": "/*\n * Simple IDCT\n *\n * Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>\n * Copyright (c) 2006 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n#define W1  22725   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W2  21407   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W3  19266   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W4  16383   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W5  12873   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W6  8867    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W7  4520    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define ROW_SHIFT 11\n#define COL_SHIFT 20\n\n#define W13 (W1 | (W3 << 16))\n#define W26 (W2 | (W6 << 16))\n#define W57 (W5 | (W7 << 16))\n\nfunction idct_row_armv5te\n        str             lr, [sp, #-4]!\n\n        ldrd            v1, v2, [a1, #8]\n        ldrd            a3, a4, [a1]          /* a3 = row[1:0], a4 = row[3:2] */\n        orrs            v1, v1, v2\n        itt             eq\n        cmpeq           v1, a4\n        cmpeq           v1, a3, lsr #16\n        beq             row_dc_only\n\n        mov             v1, #(1<<(ROW_SHIFT-1))\n        mov             ip, #16384\n        sub             ip, ip, #1            /* ip = W4 */\n        smlabb          v1, ip, a3, v1        /* v1 = W4*row[0]+(1<<(RS-1)) */\n        ldr             ip, =W26              /* ip = W2 | (W6 << 16) */\n        smultb          a2, ip, a4\n        smulbb          lr, ip, a4\n        add             v2, v1, a2\n        sub             v3, v1, a2\n        sub             v4, v1, lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:2", "text": "str             lr, [sp, #-4]!\n\n        ldrd            v1, v2, [a1, #8]\n        ldrd            a3, a4, [a1]          /* a3 = row[1:0], a4 = row[3:2] */\n        orrs            v1, v1, v2\n        itt             eq\n        cmpeq           v1, a4\n        cmpeq           v1, a3, lsr #16\n        beq             row_dc_only\n\n        mov             v1, #(1<<(ROW_SHIFT-1))\n        mov             ip, #16384\n        sub             ip, ip, #1            /* ip = W4 */\n        smlabb          v1, ip, a3, v1        /* v1 = W4*row[0]+(1<<(RS-1)) */\n        ldr             ip, =W26              /* ip = W2 | (W6 << 16) */\n        smultb          a2, ip, a4\n        smulbb          lr, ip, a4\n        add             v2, v1, a2\n        sub             v3, v1, a2\n        sub             v4, v1, lr\n        add             v1, v1, lr\n\n        ldr             ip, =W13              /* ip = W1 | (W3 << 16) */\n        ldr             lr, =W57              /* lr = W5 | (W7 << 16) */\n        smulbt          v5, ip, a3\n        smultt          v6, lr, a4\n        smlatt          v5, ip, a4, v5\n        smultt          a2, ip, a3\n        smulbt          v7, lr, a3\n        sub             v6, v6, a2\n        smulbt          a2, ip, a4\n        smultt          fp, lr, a3\n        sub             v7, v7, a2\n        smulbt          a2, lr, a4\n        ldrd            a3, a4, [a1, #8]     /* a3=row[5:4] a4=row[7:6] */\n        sub             fp, fp, a2\n\n        orrs            a2, a3, a4\n        beq             1f\n\n        smlabt          v5, lr, a3, v5\n        smlabt          v6, ip, a3, v6\n        smlatt          v5, lr, a4, v5\n        smlabt          v6, lr, a4, v6\n        smlatt          v7, lr, a3, v7\n        smlatt          fp, ip, a3, fp\n        smulbt          a2, ip, a4\n        smlatt          v7, ip, a4, v7\n        sub             fp, fp, a2\n\n        ldr             ip, =W26              /* ip = W2 | (W6 << 16) */\n        mov             a2, #16384\n        sub             a2, a2, #1            /* a2 =  W4 */\n        smulbb          a2, a2, a3            /* a2 =  W4*row[4] */\n        smultb          lr, ip, a4            /* lr =  W6*row[6] */\n        add             v1, v1, a2            /* v1 += W4*row[4] */\n        add             v1, v1, lr            /* v1 += W6*row[6] */\n        add             v4, v4, a2            /* v4 += W4*row[4] */\n        sub             v4, v4, lr            /* v4 -= W6*row[6] */\n        smulbb          lr, ip, a4            /* lr =  W2*row[6] */", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:3", "text": "smlabt          v5, lr, a3, v5\n        smlabt          v6, ip, a3, v6\n        smlatt          v5, lr, a4, v5\n        smlabt          v6, lr, a4, v6\n        smlatt          v7, lr, a3, v7\n        smlatt          fp, ip, a3, fp\n        smulbt          a2, ip, a4\n        smlatt          v7, ip, a4, v7\n        sub             fp, fp, a2\n\n        ldr             ip, =W26              /* ip = W2 | (W6 << 16) */\n        mov             a2, #16384\n        sub             a2, a2, #1            /* a2 =  W4 */\n        smulbb          a2, a2, a3            /* a2 =  W4*row[4] */\n        smultb          lr, ip, a4            /* lr =  W6*row[6] */\n        add             v1, v1, a2            /* v1 += W4*row[4] */\n        add             v1, v1, lr            /* v1 += W6*row[6] */\n        add             v4, v4, a2            /* v4 += W4*row[4] */\n        sub             v4, v4, lr            /* v4 -= W6*row[6] */\n        smulbb          lr, ip, a4            /* lr =  W2*row[6] */\n        sub             v2, v2, a2            /* v2 -= W4*row[4] */\n        sub             v2, v2, lr            /* v2 -= W2*row[6] */\n        sub             v3, v3, a2            /* v3 -= W4*row[4] */\n        add             v3, v3, lr            /* v3 += W2*row[6] */\n\n1:      add             a2, v1, v5\n        mov             a3, a2, lsr #11\n        bic             a3, a3, #0x1f0000\n        sub             a2, v2, v6\n        mov             a2, a2, lsr #11\n        add             a3, a3, a2, lsl #16\n        add             a2, v3, v7\n        mov             a4, a2, lsr #11\n        bic             a4, a4, #0x1f0000\n        add             a2, v4, fp\n        mov             a2, a2, lsr #11\n        add             a4, a4, a2, lsl #16\n        strd            a3, a4, [a1]\n\n        sub             a2, v4, fp\n        mov             a3, a2, lsr #11\n        bic             a3, a3, #0x1f0000\n        sub             a2, v3, v7\n        mov             a2, a2, lsr #11\n        add             a3, a3, a2, lsl #16\n        add             a2, v2, v6\n        mov             a4, a2, lsr #11\n        bic             a4, a4, #0x1f0000\n        sub             a2, v1, v5\n        mov             a2, a2, lsr #11\n        add             a4, a4, a2, lsl #16\n        strd            a3, a4, [a1, #8]\n\n        ldr             pc, [sp], #4\n\nrow_dc_only:\n        orr             a3, a3, a3, lsl #16\n        bic             a3, a3, #0xe000\n        mov             a3, a3, lsl #3\n        mov             a4, a3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:4", "text": "mov             a3, a2, lsr #11\n        bic             a3, a3, #0x1f0000\n        sub             a2, v3, v7\n        mov             a2, a2, lsr #11\n        add             a3, a3, a2, lsl #16\n        add             a2, v2, v6\n        mov             a4, a2, lsr #11\n        bic             a4, a4, #0x1f0000\n        sub             a2, v1, v5\n        mov             a2, a2, lsr #11\n        add             a4, a4, a2, lsl #16\n        strd            a3, a4, [a1, #8]\n\n        ldr             pc, [sp], #4\n\nrow_dc_only:\n        orr             a3, a3, a3, lsl #16\n        bic             a3, a3, #0xe000\n        mov             a3, a3, lsl #3\n        mov             a4, a3\n        strd            a3, a4, [a1]\n        strd            a3, a4, [a1, #8]\n\n        ldr             pc, [sp], #4\nendfunc\n\n        .macro idct_col\n        ldr             a4, [a1]              /* a4 = col[1:0] */\n        mov             ip, #16384\n        sub             ip, ip, #1            /* ip = W4 */\n        mov             v1, #((1<<(COL_SHIFT-1))/W4) /* this matches the C version */\n        add             v2, v1, a4, asr #16\n        rsb             v2, v2, v2, lsl #14\n        mov             a4, a4, lsl #16\n        add             v1, v1, a4, asr #16\n        ldr             a4, [a1, #(16*4)]\n        rsb             v1, v1, v1, lsl #14\n\n        smulbb          lr, ip, a4\n        smulbt          a3, ip, a4\n        sub             v3, v1, lr\n        sub             v5, v1, lr\n        add             v7, v1, lr\n        add             v1, v1, lr\n        sub             v4, v2, a3\n        sub             v6, v2, a3\n        add             fp, v2, a3\n        ldr             ip, =W26\n        ldr             a4, [a1, #(16*2)]\n        add             v2, v2, a3\n\n        smulbb          lr, ip, a4\n        smultb          a3, ip, a4\n        add             v1, v1, lr\n        sub             v7, v7, lr\n        add             v3, v3, a3\n        sub             v5, v5, a3\n        smulbt          lr, ip, a4\n        smultt          a3, ip, a4\n        add             v2, v2, lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:5", "text": "sub             v3, v1, lr\n        sub             v5, v1, lr\n        add             v7, v1, lr\n        add             v1, v1, lr\n        sub             v4, v2, a3\n        sub             v6, v2, a3\n        add             fp, v2, a3\n        ldr             ip, =W26\n        ldr             a4, [a1, #(16*2)]\n        add             v2, v2, a3\n\n        smulbb          lr, ip, a4\n        smultb          a3, ip, a4\n        add             v1, v1, lr\n        sub             v7, v7, lr\n        add             v3, v3, a3\n        sub             v5, v5, a3\n        smulbt          lr, ip, a4\n        smultt          a3, ip, a4\n        add             v2, v2, lr\n        sub             fp, fp, lr\n        add             v4, v4, a3\n        ldr             a4, [a1, #(16*6)]\n        sub             v6, v6, a3\n\n        smultb          lr, ip, a4\n        smulbb          a3, ip, a4\n        add             v1, v1, lr\n        sub             v7, v7, lr\n        sub             v3, v3, a3\n        add             v5, v5, a3\n        smultt          lr, ip, a4\n        smulbt          a3, ip, a4\n        add             v2, v2, lr\n        sub             fp, fp, lr\n        sub             v4, v4, a3\n        add             v6, v6, a3\n\n        stmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp}\n\n        ldr             ip, =W13\n        ldr             a4, [a1, #(16*1)]\n        ldr             lr, =W57\n        smulbb          v1, ip, a4\n        smultb          v3, ip, a4\n        smulbb          v5, lr, a4\n        smultb          v7, lr, a4\n        smulbt          v2, ip, a4\n        smultt          v4, ip, a4\n        smulbt          v6, lr, a4\n        smultt          fp, lr, a4\n        rsb             v4, v4, #0\n        ldr             a4, [a1, #(16*3)]\n        rsb             v3, v3, #0\n\n        smlatb          v1, ip, a4, v1\n        smlatb          v3, lr, a4, v3\n        smulbb          a3, ip, a4\n        smulbb          a2, lr, a4\n        sub             v5, v5, a3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:6", "text": "ldr             ip, =W13\n        ldr             a4, [a1, #(16*1)]\n        ldr             lr, =W57\n        smulbb          v1, ip, a4\n        smultb          v3, ip, a4\n        smulbb          v5, lr, a4\n        smultb          v7, lr, a4\n        smulbt          v2, ip, a4\n        smultt          v4, ip, a4\n        smulbt          v6, lr, a4\n        smultt          fp, lr, a4\n        rsb             v4, v4, #0\n        ldr             a4, [a1, #(16*3)]\n        rsb             v3, v3, #0\n\n        smlatb          v1, ip, a4, v1\n        smlatb          v3, lr, a4, v3\n        smulbb          a3, ip, a4\n        smulbb          a2, lr, a4\n        sub             v5, v5, a3\n        sub             v7, v7, a2\n        smlatt          v2, ip, a4, v2\n        smlatt          v4, lr, a4, v4\n        smulbt          a3, ip, a4\n        smulbt          a2, lr, a4\n        sub             v6, v6, a3\n        ldr             a4, [a1, #(16*5)]\n        sub             fp, fp, a2\n\n        smlabb          v1, lr, a4, v1\n        smlabb          v3, ip, a4, v3\n        smlatb          v5, lr, a4, v5\n        smlatb          v7, ip, a4, v7\n        smlabt          v2, lr, a4, v2\n        smlabt          v4, ip, a4, v4\n        smlatt          v6, lr, a4, v6\n        ldr             a3, [a1, #(16*7)]\n        smlatt          fp, ip, a4, fp\n\n        smlatb          v1, lr, a3, v1\n        smlabb          v3, lr, a3, v3\n        smlatb          v5, ip, a3, v5\n        smulbb          a4, ip, a3\n        smlatt          v2, lr, a3, v2\n        sub             v7, v7, a4\n        smlabt          v4, lr, a3, v4\n        smulbt          a4, ip, a3\n        smlatt          v6, ip, a3, v6\n        sub             fp, fp, a4\n        .endm\n\nfunction idct_col_armv5te\n        str             lr, [sp, #-4]!\n\n        idct_col\n\n        ldmfd           sp!, {a3, a4}\n        adds            a2, a3, v1\n        mov             a2, a2, lsr #20\n        it              mi", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:7", "text": "smlabb          v3, lr, a3, v3\n        smlatb          v5, ip, a3, v5\n        smulbb          a4, ip, a3\n        smlatt          v2, lr, a3, v2\n        sub             v7, v7, a4\n        smlabt          v4, lr, a3, v4\n        smulbt          a4, ip, a3\n        smlatt          v6, ip, a3, v6\n        sub             fp, fp, a4\n        .endm\n\nfunction idct_col_armv5te\n        str             lr, [sp, #-4]!\n\n        idct_col\n\n        ldmfd           sp!, {a3, a4}\n        adds            a2, a3, v1\n        mov             a2, a2, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        add             ip, a4, v2\n        mov             ip, ip, asr #20\n        orr             a2, a2, ip, lsl #16\n        str             a2, [a1]\n        subs            a3, a3, v1\n        mov             a2, a3, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        sub             a4, a4, v2\n        mov             a4, a4, asr #20\n        orr             a2, a2, a4, lsl #16\n        ldmfd           sp!, {a3, a4}\n        str             a2, [a1, #(16*7)]\n\n        subs            a2, a3, v3\n        mov             a2, a2, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        sub             ip, a4, v4\n        mov             ip, ip, asr #20\n        orr             a2, a2, ip, lsl #16\n        str             a2, [a1, #(16*1)]\n        adds            a3, a3, v3\n        mov             a2, a3, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        add             a4, a4, v4\n        mov             a4, a4, asr #20\n        orr             a2, a2, a4, lsl #16\n        ldmfd           sp!, {a3, a4}\n        str             a2, [a1, #(16*6)]\n\n        adds            a2, a3, v5\n        mov             a2, a2, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        add             ip, a4, v6\n        mov             ip, ip, asr #20\n        orr             a2, a2, ip, lsl #16", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:8", "text": "mov             ip, ip, asr #20\n        orr             a2, a2, ip, lsl #16\n        str             a2, [a1, #(16*1)]\n        adds            a3, a3, v3\n        mov             a2, a3, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        add             a4, a4, v4\n        mov             a4, a4, asr #20\n        orr             a2, a2, a4, lsl #16\n        ldmfd           sp!, {a3, a4}\n        str             a2, [a1, #(16*6)]\n\n        adds            a2, a3, v5\n        mov             a2, a2, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        add             ip, a4, v6\n        mov             ip, ip, asr #20\n        orr             a2, a2, ip, lsl #16\n        str             a2, [a1, #(16*2)]\n        subs            a3, a3, v5\n        mov             a2, a3, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        sub             a4, a4, v6\n        mov             a4, a4, asr #20\n        orr             a2, a2, a4, lsl #16\n        ldmfd           sp!, {a3, a4}\n        str             a2, [a1, #(16*5)]\n\n        adds            a2, a3, v7\n        mov             a2, a2, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        add             ip, a4, fp\n        mov             ip, ip, asr #20\n        orr             a2, a2, ip, lsl #16\n        str             a2, [a1, #(16*3)]\n        subs            a3, a3, v7\n        mov             a2, a3, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        sub             a4, a4, fp\n        mov             a4, a4, asr #20\n        orr             a2, a2, a4, lsl #16\n        str             a2, [a1, #(16*4)]\n\n        ldr             pc, [sp], #4\nendfunc\n\n.macro  clip   dst, src:vararg\n        movs            \\dst, \\src\n        it              mi\n        movmi           \\dst, #0\n        cmp             \\dst, #255\n        it              gt\n        movgt           \\dst, #255\n.endm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:9", "text": "mov             a2, a3, lsr #20\n        it              mi\n        orrmi           a2, a2, #0xf000\n        sub             a4, a4, fp\n        mov             a4, a4, asr #20\n        orr             a2, a2, a4, lsl #16\n        str             a2, [a1, #(16*4)]\n\n        ldr             pc, [sp], #4\nendfunc\n\n.macro  clip   dst, src:vararg\n        movs            \\dst, \\src\n        it              mi\n        movmi           \\dst, #0\n        cmp             \\dst, #255\n        it              gt\n        movgt           \\dst, #255\n.endm\n\n.macro  aclip  dst, src:vararg\n        adds            \\dst, \\src\n        it              mi\n        movmi           \\dst, #0\n        cmp             \\dst, #255\n        it              gt\n        movgt           \\dst, #255\n.endm\n\nfunction idct_col_put_armv5te\n        str             lr, [sp, #-4]!\n\n        idct_col\n\n        ldmfd           sp!, {a3, a4}\n        ldr             lr, [sp, #32]\n        add             a2, a3, v1\n        clip            a2, a2, asr #20\n        add             ip, a4, v2\n        clip            ip, ip, asr #20\n        orr             a2, a2, ip, lsl #8\n        sub             a3, a3, v1\n        clip            a3, a3, asr #20\n        sub             a4, a4, v2\n        clip            a4, a4, asr #20\n        ldr             v1, [sp, #28]\n        strh            a2, [v1]\n        add             a2, v1, #2\n        str             a2, [sp, #28]\n        orr             a2, a3, a4, lsl #8\n        rsb             v2, lr, lr, lsl #3\n        ldmfd           sp!, {a3, a4}\n        strh_pre        a2, v2, v1\n\n        sub             a2, a3, v3\n        clip            a2, a2, asr #20\n        sub             ip, a4, v4\n        clip            ip, ip, asr #20\n        orr             a2, a2, ip, lsl #8\n        strh_pre        a2, v1, lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:10", "text": "orr             a2, a2, ip, lsl #8\n        sub             a3, a3, v1\n        clip            a3, a3, asr #20\n        sub             a4, a4, v2\n        clip            a4, a4, asr #20\n        ldr             v1, [sp, #28]\n        strh            a2, [v1]\n        add             a2, v1, #2\n        str             a2, [sp, #28]\n        orr             a2, a3, a4, lsl #8\n        rsb             v2, lr, lr, lsl #3\n        ldmfd           sp!, {a3, a4}\n        strh_pre        a2, v2, v1\n\n        sub             a2, a3, v3\n        clip            a2, a2, asr #20\n        sub             ip, a4, v4\n        clip            ip, ip, asr #20\n        orr             a2, a2, ip, lsl #8\n        strh_pre        a2, v1, lr\n        add             a3, a3, v3\n        clip            a2, a3, asr #20\n        add             a4, a4, v4\n        clip            a4, a4, asr #20\n        orr             a2, a2, a4, lsl #8\n        ldmfd           sp!, {a3, a4}\n        strh_dpre       a2, v2, lr\n\n        add             a2, a3, v5\n        clip            a2, a2, asr #20\n        add             ip, a4, v6\n        clip            ip, ip, asr #20\n        orr             a2, a2, ip, lsl #8\n        strh_pre        a2, v1, lr\n        sub             a3, a3, v5\n        clip            a2, a3, asr #20\n        sub             a4, a4, v6\n        clip            a4, a4, asr #20\n        orr             a2, a2, a4, lsl #8\n        ldmfd           sp!, {a3, a4}\n        strh_dpre       a2, v2, lr\n\n        add             a2, a3, v7\n        clip            a2, a2, asr #20\n        add             ip, a4, fp\n        clip            ip, ip, asr #20\n        orr             a2, a2, ip, lsl #8\n        strh            a2, [v1, lr]\n        sub             a3, a3, v7\n        clip            a2, a3, asr #20\n        sub             a4, a4, fp\n        clip            a4, a4, asr #20\n        orr             a2, a2, a4, lsl #8\n        strh_dpre       a2, v2, lr\n\n        ldr             pc, [sp], #4\nendfunc\n\nfunction idct_col_add_armv5te\n        str             lr, [sp, #-4]!", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:11", "text": "strh_dpre       a2, v2, lr\n\n        add             a2, a3, v7\n        clip            a2, a2, asr #20\n        add             ip, a4, fp\n        clip            ip, ip, asr #20\n        orr             a2, a2, ip, lsl #8\n        strh            a2, [v1, lr]\n        sub             a3, a3, v7\n        clip            a2, a3, asr #20\n        sub             a4, a4, fp\n        clip            a4, a4, asr #20\n        orr             a2, a2, a4, lsl #8\n        strh_dpre       a2, v2, lr\n\n        ldr             pc, [sp], #4\nendfunc\n\nfunction idct_col_add_armv5te\n        str             lr, [sp, #-4]!\n\n        idct_col\n\n        ldr             lr, [sp, #36]\n\n        ldmfd           sp!, {a3, a4}\n        ldrh            ip, [lr]\n        add             a2, a3, v1\n        sub             a3, a3, v1\n        and             v1, ip, #255\n        aclip           a2, v1, a2, asr #20\n        add             v1, a4, v2\n        mov             v1, v1, asr #20\n        aclip           v1, v1, ip, lsr #8\n        orr             a2, a2, v1, lsl #8\n        ldr             v1, [sp, #32]\n        sub             a4, a4, v2\n        rsb             v2, v1, v1, lsl #3\n        ldrh_pre        ip, v2, lr\n        strh            a2, [lr]\n        and             a2, ip, #255\n        aclip           a3, a2, a3, asr #20\n        mov             a4, a4, asr #20\n        aclip           a4, a4, ip, lsr #8\n        add             a2, lr, #2\n        str             a2, [sp, #28]\n        orr             a2, a3, a4, lsl #8\n        strh            a2, [v2]\n\n        ldmfd           sp!, {a3, a4}\n        ldrh_pre        ip, lr, v1\n        sub             a2, a3, v3\n        add             a3, a3, v3\n        and             v3, ip, #255\n        aclip           a2, v3, a2, asr #20\n        sub             v3, a4, v4\n        mov             v3, v3, asr #20\n        aclip           v3, v3, ip, lsr #8\n        orr             a2, a2, v3, lsl #8\n        add             a4, a4, v4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:12", "text": "and             a2, ip, #255\n        aclip           a3, a2, a3, asr #20\n        mov             a4, a4, asr #20\n        aclip           a4, a4, ip, lsr #8\n        add             a2, lr, #2\n        str             a2, [sp, #28]\n        orr             a2, a3, a4, lsl #8\n        strh            a2, [v2]\n\n        ldmfd           sp!, {a3, a4}\n        ldrh_pre        ip, lr, v1\n        sub             a2, a3, v3\n        add             a3, a3, v3\n        and             v3, ip, #255\n        aclip           a2, v3, a2, asr #20\n        sub             v3, a4, v4\n        mov             v3, v3, asr #20\n        aclip           v3, v3, ip, lsr #8\n        orr             a2, a2, v3, lsl #8\n        add             a4, a4, v4\n        ldrh_dpre       ip, v2, v1\n        strh            a2, [lr]\n        and             a2, ip, #255\n        aclip           a3, a2, a3, asr #20\n        mov             a4, a4, asr #20\n        aclip           a4, a4, ip, lsr #8\n        orr             a2, a3, a4, lsl #8\n        strh            a2, [v2]\n\n        ldmfd           sp!, {a3, a4}\n        ldrh_pre        ip, lr, v1\n        add             a2, a3, v5\n        sub             a3, a3, v5\n        and             v3, ip, #255\n        aclip           a2, v3, a2, asr #20\n        add             v3, a4, v6\n        mov             v3, v3, asr #20\n        aclip           v3, v3, ip, lsr #8\n        orr             a2, a2, v3, lsl #8\n        sub             a4, a4, v6\n        ldrh_dpre       ip, v2, v1\n        strh            a2, [lr]\n        and             a2, ip, #255\n        aclip           a3, a2, a3, asr #20\n        mov             a4, a4, asr #20\n        aclip           a4, a4, ip, lsr #8\n        orr             a2, a3, a4, lsl #8\n        strh            a2, [v2]\n\n        ldmfd           sp!, {a3, a4}\n        ldrh_pre        ip, lr, v1\n        add             a2, a3, v7\n        sub             a3, a3, v7\n        and             v3, ip, #255\n        aclip           a2, v3, a2, asr #20\n        add             v3, a4, fp\n        mov             v3, v3, asr #20\n        aclip           v3, v3, ip, lsr #8\n        orr             a2, a2, v3, lsl #8\n        sub             a4, a4, fp", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:13", "text": "ldrh_dpre       ip, v2, v1\n        strh            a2, [lr]\n        and             a2, ip, #255\n        aclip           a3, a2, a3, asr #20\n        mov             a4, a4, asr #20\n        aclip           a4, a4, ip, lsr #8\n        orr             a2, a3, a4, lsl #8\n        strh            a2, [v2]\n\n        ldmfd           sp!, {a3, a4}\n        ldrh_pre        ip, lr, v1\n        add             a2, a3, v7\n        sub             a3, a3, v7\n        and             v3, ip, #255\n        aclip           a2, v3, a2, asr #20\n        add             v3, a4, fp\n        mov             v3, v3, asr #20\n        aclip           v3, v3, ip, lsr #8\n        orr             a2, a2, v3, lsl #8\n        sub             a4, a4, fp\n        ldrh_dpre       ip, v2, v1\n        strh            a2, [lr]\n        and             a2, ip, #255\n        aclip           a3, a2, a3, asr #20\n        mov             a4, a4, asr #20\n        aclip           a4, a4, ip, lsr #8\n        orr             a2, a3, a4, lsl #8\n        strh            a2, [v2]\n\n        ldr             pc, [sp], #4\nendfunc\n\nfunction ff_simple_idct_armv5te, export=1\n        stmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp, lr}\n\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n\n        sub             a1, a1, #(16*7)\n\n        bl              idct_col_armv5te\n        add             a1, a1, #4\n        bl              idct_col_armv5te\n        add             a1, a1, #4\n        bl              idct_col_armv5te\n        add             a1, a1, #4\n        bl              idct_col_armv5te", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:14", "text": "add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n\n        sub             a1, a1, #(16*7)\n\n        bl              idct_col_armv5te\n        add             a1, a1, #4\n        bl              idct_col_armv5te\n        add             a1, a1, #4\n        bl              idct_col_armv5te\n        add             a1, a1, #4\n        bl              idct_col_armv5te\n\n        ldmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc\n\nfunction ff_simple_idct_add_armv5te, export=1\n        stmfd           sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr}\n\n        mov             a1, a3\n\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n\n        sub             a1, a1, #(16*7)\n\n        bl              idct_col_add_armv5te\n        add             a1, a1, #4\n        bl              idct_col_add_armv5te\n        add             a1, a1, #4\n        bl              idct_col_add_armv5te\n        add             a1, a1, #4\n        bl              idct_col_add_armv5te\n\n        add             sp, sp, #8\n        ldmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc\n\nfunction ff_simple_idct_put_armv5te, export=1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:15", "text": "add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n\n        sub             a1, a1, #(16*7)\n\n        bl              idct_col_add_armv5te\n        add             a1, a1, #4\n        bl              idct_col_add_armv5te\n        add             a1, a1, #4\n        bl              idct_col_add_armv5te\n        add             a1, a1, #4\n        bl              idct_col_add_armv5te\n\n        add             sp, sp, #8\n        ldmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc\n\nfunction ff_simple_idct_put_armv5te, export=1\n        stmfd           sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr}\n\n        mov             a1, a3\n\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n        add             a1, a1, #16\n        bl              idct_row_armv5te\n\n        sub             a1, a1, #(16*7)\n\n        bl              idct_col_put_armv5te\n        add             a1, a1, #4\n        bl              idct_col_put_armv5te\n        add             a1, a1, #4\n        bl              idct_col_put_armv5te\n        add             a1, a1, #4\n        bl              idct_col_put_armv5te\n\n        add             sp, sp, #8\n        ldmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 561, "line_end": 613}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:16", "text": "sub             a1, a1, #(16*7)\n\n        bl              idct_col_put_armv5te\n        add             a1, a1, #4\n        bl              idct_col_put_armv5te\n        add             a1, a1, #4\n        bl              idct_col_put_armv5te\n        add             a1, a1, #4\n        bl              idct_col_put_armv5te\n\n        add             sp, sp, #8\n        ldmfd           sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv5te.S", "line_start": 601, "line_end": 613}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:1", "text": "/*\n * Simple IDCT\n *\n * Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>\n * Copyright (c) 2006 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n#define W1  22725   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W2  21407   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W3  19266   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W4  16383   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W5  12873   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W6  8867    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W7  4520    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define ROW_SHIFT 11\n#define COL_SHIFT 20\n\n#define W13 (W1 | (W3 << 16))\n#define W26 (W2 | (W6 << 16))\n#define W57 (W5 | (W7 << 16))\n\nfunction idct_row_armv5te\n        str    lr, [sp, #-4]!\n\n        ldrd   v1, v2, [a1, #8]\n        ldrd   a3, a4, [a1]          /* a3 = row[1:0], a4 = row[3:2] */\n        orrs   v1, v1, v2\n        itt    eq\n        cmpeq  v1, a4\n        cmpeq  v1, a3, lsr #16\n        beq    row_dc_only\n\n        mov    v1, #(1<<(ROW_SHIFT-1))\n        mov    ip, #16384\n        sub    ip, ip, #1            /* ip = W4 */\n        smlabb v1, ip, a3, v1        /* v1 = W4*row[0]+(1<<(RS-1)) */\n        ldr    ip, =W26              /* ip = W2 | (W6 << 16) */\n        smultb a2, ip, a4\n        smulbb lr, ip, a4\n        add    v2, v1, a2\n        sub    v3, v1, a2\n        sub    v4, v1, lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:2", "text": "str    lr, [sp, #-4]!\n\n        ldrd   v1, v2, [a1, #8]\n        ldrd   a3, a4, [a1]          /* a3 = row[1:0], a4 = row[3:2] */\n        orrs   v1, v1, v2\n        itt    eq\n        cmpeq  v1, a4\n        cmpeq  v1, a3, lsr #16\n        beq    row_dc_only\n\n        mov    v1, #(1<<(ROW_SHIFT-1))\n        mov    ip, #16384\n        sub    ip, ip, #1            /* ip = W4 */\n        smlabb v1, ip, a3, v1        /* v1 = W4*row[0]+(1<<(RS-1)) */\n        ldr    ip, =W26              /* ip = W2 | (W6 << 16) */\n        smultb a2, ip, a4\n        smulbb lr, ip, a4\n        add    v2, v1, a2\n        sub    v3, v1, a2\n        sub    v4, v1, lr\n        add    v1, v1, lr\n\n        ldr    ip, =W13              /* ip = W1 | (W3 << 16) */\n        ldr    lr, =W57              /* lr = W5 | (W7 << 16) */\n        smulbt v5, ip, a3\n        smultt v6, lr, a4\n        smlatt v5, ip, a4, v5\n        smultt a2, ip, a3\n        smulbt v7, lr, a3\n        sub    v6, v6, a2\n        smulbt a2, ip, a4\n        smultt fp, lr, a3\n        sub    v7, v7, a2\n        smulbt a2, lr, a4\n        ldrd   a3, a4, [a1, #8]     /* a3=row[5:4] a4=row[7:6] */\n        sub    fp, fp, a2\n\n        orrs   a2, a3, a4\n        beq    1f\n\n        smlabt v5, lr, a3, v5\n        smlabt v6, ip, a3, v6\n        smlatt v5, lr, a4, v5\n        smlabt v6, lr, a4, v6\n        smlatt v7, lr, a3, v7\n        smlatt fp, ip, a3, fp\n        smulbt a2, ip, a4\n        smlatt v7, ip, a4, v7\n        sub    fp, fp, a2\n\n        ldr    ip, =W26              /* ip = W2 | (W6 << 16) */\n        mov    a2, #16384\n        sub    a2, a2, #1            /* a2 =  W4 */\n        smulbb a2, a2, a3            /* a2 =  W4*row[4] */\n        smultb lr, ip, a4            /* lr =  W6*row[6] */\n        add    v1, v1, a2            /* v1 += W4*row[4] */\n        add    v1, v1, lr            /* v1 += W6*row[6] */\n        add    v4, v4, a2            /* v4 += W4*row[4] */\n        sub    v4, v4, lr            /* v4 -= W6*row[6] */\n        smulbb lr, ip, a4            /* lr =  W2*row[6] */", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:3", "text": "smlabt v5, lr, a3, v5\n        smlabt v6, ip, a3, v6\n        smlatt v5, lr, a4, v5\n        smlabt v6, lr, a4, v6\n        smlatt v7, lr, a3, v7\n        smlatt fp, ip, a3, fp\n        smulbt a2, ip, a4\n        smlatt v7, ip, a4, v7\n        sub    fp, fp, a2\n\n        ldr    ip, =W26              /* ip = W2 | (W6 << 16) */\n        mov    a2, #16384\n        sub    a2, a2, #1            /* a2 =  W4 */\n        smulbb a2, a2, a3            /* a2 =  W4*row[4] */\n        smultb lr, ip, a4            /* lr =  W6*row[6] */\n        add    v1, v1, a2            /* v1 += W4*row[4] */\n        add    v1, v1, lr            /* v1 += W6*row[6] */\n        add    v4, v4, a2            /* v4 += W4*row[4] */\n        sub    v4, v4, lr            /* v4 -= W6*row[6] */\n        smulbb lr, ip, a4            /* lr =  W2*row[6] */\n        sub    v2, v2, a2            /* v2 -= W4*row[4] */\n        sub    v2, v2, lr            /* v2 -= W2*row[6] */\n        sub    v3, v3, a2            /* v3 -= W4*row[4] */\n        add    v3, v3, lr            /* v3 += W2*row[6] */\n\n1:      add    a2, v1, v5\n        mov    a3, a2, lsr #11\n        bic    a3, a3, #0x1f0000\n        sub    a2, v2, v6\n        mov    a2, a2, lsr #11\n        add    a3, a3, a2, lsl #16\n        add    a2, v3, v7\n        mov    a4, a2, lsr #11\n        bic    a4, a4, #0x1f0000\n        add    a2, v4, fp\n        mov    a2, a2, lsr #11\n        add    a4, a4, a2, lsl #16\n        strd   a3, a4, [a1]\n\n        sub    a2, v4, fp\n        mov    a3, a2, lsr #11\n        bic    a3, a3, #0x1f0000\n        sub    a2, v3, v7\n        mov    a2, a2, lsr #11\n        add    a3, a3, a2, lsl #16\n        add    a2, v2, v6\n        mov    a4, a2, lsr #11\n        bic    a4, a4, #0x1f0000\n        sub    a2, v1, v5\n        mov    a2, a2, lsr #11\n        add    a4, a4, a2, lsl #16\n        strd   a3, a4, [a1, #8]\n\n        ldr    pc, [sp], #4\n\nrow_dc_only:\n        orr    a3, a3, a3, lsl #16\n        bic    a3, a3, #0xe000\n        mov    a3, a3, lsl #3\n        mov    a4, a3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:4", "text": "mov    a3, a2, lsr #11\n        bic    a3, a3, #0x1f0000\n        sub    a2, v3, v7\n        mov    a2, a2, lsr #11\n        add    a3, a3, a2, lsl #16\n        add    a2, v2, v6\n        mov    a4, a2, lsr #11\n        bic    a4, a4, #0x1f0000\n        sub    a2, v1, v5\n        mov    a2, a2, lsr #11\n        add    a4, a4, a2, lsl #16\n        strd   a3, a4, [a1, #8]\n\n        ldr    pc, [sp], #4\n\nrow_dc_only:\n        orr    a3, a3, a3, lsl #16\n        bic    a3, a3, #0xe000\n        mov    a3, a3, lsl #3\n        mov    a4, a3\n        strd   a3, a4, [a1]\n        strd   a3, a4, [a1, #8]\n\n        ldr    pc, [sp], #4\nendfunc\n\n        .macro idct_col\n        ldr    a4, [a1]              /* a4 = col[1:0] */\n        mov    ip, #16384\n        sub    ip, ip, #1            /* ip = W4 */\n        mov    v1, #((1<<(COL_SHIFT-1))/W4) /* this matches the C version */\n        add    v2, v1, a4, asr #16\n        rsb    v2, v2, v2, lsl #14\n        mov    a4, a4, lsl #16\n        add    v1, v1, a4, asr #16\n        ldr    a4, [a1, #(16*4)]\n        rsb    v1, v1, v1, lsl #14\n\n        smulbb lr, ip, a4\n        smulbt a3, ip, a4\n        sub    v3, v1, lr\n        sub    v5, v1, lr\n        add    v7, v1, lr\n        add    v1, v1, lr\n        sub    v4, v2, a3\n        sub    v6, v2, a3\n        add    fp, v2, a3\n        ldr    ip, =W26\n        ldr    a4, [a1, #(16*2)]\n        add    v2, v2, a3\n\n        smulbb lr, ip, a4\n        smultb a3, ip, a4\n        add    v1, v1, lr\n        sub    v7, v7, lr\n        add    v3, v3, a3\n        sub    v5, v5, a3\n        smulbt lr, ip, a4\n        smultt a3, ip, a4\n        add    v2, v2, lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:5", "text": "sub    v3, v1, lr\n        sub    v5, v1, lr\n        add    v7, v1, lr\n        add    v1, v1, lr\n        sub    v4, v2, a3\n        sub    v6, v2, a3\n        add    fp, v2, a3\n        ldr    ip, =W26\n        ldr    a4, [a1, #(16*2)]\n        add    v2, v2, a3\n\n        smulbb lr, ip, a4\n        smultb a3, ip, a4\n        add    v1, v1, lr\n        sub    v7, v7, lr\n        add    v3, v3, a3\n        sub    v5, v5, a3\n        smulbt lr, ip, a4\n        smultt a3, ip, a4\n        add    v2, v2, lr\n        sub    fp, fp, lr\n        add    v4, v4, a3\n        ldr    a4, [a1, #(16*6)]\n        sub    v6, v6, a3\n\n        smultb lr, ip, a4\n        smulbb a3, ip, a4\n        add    v1, v1, lr\n        sub    v7, v7, lr\n        sub    v3, v3, a3\n        add    v5, v5, a3\n        smultt lr, ip, a4\n        smulbt a3, ip, a4\n        add    v2, v2, lr\n        sub    fp, fp, lr\n        sub    v4, v4, a3\n        add    v6, v6, a3\n\n        stmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp}\n\n        ldr    ip, =W13\n        ldr    a4, [a1, #(16*1)]\n        ldr    lr, =W57\n        smulbb v1, ip, a4\n        smultb v3, ip, a4\n        smulbb v5, lr, a4\n        smultb v7, lr, a4\n        smulbt v2, ip, a4\n        smultt v4, ip, a4\n        smulbt v6, lr, a4\n        smultt fp, lr, a4\n        rsb    v4, v4, #0\n        ldr    a4, [a1, #(16*3)]\n        rsb    v3, v3, #0\n\n        smlatb v1, ip, a4, v1\n        smlatb v3, lr, a4, v3\n        smulbb a3, ip, a4\n        smulbb a2, lr, a4\n        sub    v5, v5, a3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:6", "text": "ldr    ip, =W13\n        ldr    a4, [a1, #(16*1)]\n        ldr    lr, =W57\n        smulbb v1, ip, a4\n        smultb v3, ip, a4\n        smulbb v5, lr, a4\n        smultb v7, lr, a4\n        smulbt v2, ip, a4\n        smultt v4, ip, a4\n        smulbt v6, lr, a4\n        smultt fp, lr, a4\n        rsb    v4, v4, #0\n        ldr    a4, [a1, #(16*3)]\n        rsb    v3, v3, #0\n\n        smlatb v1, ip, a4, v1\n        smlatb v3, lr, a4, v3\n        smulbb a3, ip, a4\n        smulbb a2, lr, a4\n        sub    v5, v5, a3\n        sub    v7, v7, a2\n        smlatt v2, ip, a4, v2\n        smlatt v4, lr, a4, v4\n        smulbt a3, ip, a4\n        smulbt a2, lr, a4\n        sub    v6, v6, a3\n        ldr    a4, [a1, #(16*5)]\n        sub    fp, fp, a2\n\n        smlabb v1, lr, a4, v1\n        smlabb v3, ip, a4, v3\n        smlatb v5, lr, a4, v5\n        smlatb v7, ip, a4, v7\n        smlabt v2, lr, a4, v2\n        smlabt v4, ip, a4, v4\n        smlatt v6, lr, a4, v6\n        ldr    a3, [a1, #(16*7)]\n        smlatt fp, ip, a4, fp\n\n        smlatb v1, lr, a3, v1\n        smlabb v3, lr, a3, v3\n        smlatb v5, ip, a3, v5\n        smulbb a4, ip, a3\n        smlatt v2, lr, a3, v2\n        sub    v7, v7, a4\n        smlabt v4, lr, a3, v4\n        smulbt a4, ip, a3\n        smlatt v6, ip, a3, v6\n        sub    fp, fp, a4\n        .endm\n\nfunction idct_col_armv5te\n        str    lr, [sp, #-4]!\n\n        idct_col\n\n        ldmfd  sp!, {a3, a4}\n        adds   a2, a3, v1\n        mov    a2, a2, lsr #20\n        it     mi", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:7", "text": "smlabb v3, lr, a3, v3\n        smlatb v5, ip, a3, v5\n        smulbb a4, ip, a3\n        smlatt v2, lr, a3, v2\n        sub    v7, v7, a4\n        smlabt v4, lr, a3, v4\n        smulbt a4, ip, a3\n        smlatt v6, ip, a3, v6\n        sub    fp, fp, a4\n        .endm\n\nfunction idct_col_armv5te\n        str    lr, [sp, #-4]!\n\n        idct_col\n\n        ldmfd  sp!, {a3, a4}\n        adds   a2, a3, v1\n        mov    a2, a2, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        add    ip, a4, v2\n        mov    ip, ip, asr #20\n        orr    a2, a2, ip, lsl #16\n        str    a2, [a1]\n        subs   a3, a3, v1\n        mov    a2, a3, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        sub    a4, a4, v2\n        mov    a4, a4, asr #20\n        orr    a2, a2, a4, lsl #16\n        ldmfd  sp!, {a3, a4}\n        str    a2, [a1, #(16*7)]\n\n        subs   a2, a3, v3\n        mov    a2, a2, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        sub    ip, a4, v4\n        mov    ip, ip, asr #20\n        orr    a2, a2, ip, lsl #16\n        str    a2, [a1, #(16*1)]\n        adds   a3, a3, v3\n        mov    a2, a3, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        add    a4, a4, v4\n        mov    a4, a4, asr #20\n        orr    a2, a2, a4, lsl #16\n        ldmfd  sp!, {a3, a4}\n        str    a2, [a1, #(16*6)]\n\n        adds   a2, a3, v5\n        mov    a2, a2, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        add    ip, a4, v6\n        mov    ip, ip, asr #20\n        orr    a2, a2, ip, lsl #16", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:8", "text": "mov    ip, ip, asr #20\n        orr    a2, a2, ip, lsl #16\n        str    a2, [a1, #(16*1)]\n        adds   a3, a3, v3\n        mov    a2, a3, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        add    a4, a4, v4\n        mov    a4, a4, asr #20\n        orr    a2, a2, a4, lsl #16\n        ldmfd  sp!, {a3, a4}\n        str    a2, [a1, #(16*6)]\n\n        adds   a2, a3, v5\n        mov    a2, a2, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        add    ip, a4, v6\n        mov    ip, ip, asr #20\n        orr    a2, a2, ip, lsl #16\n        str    a2, [a1, #(16*2)]\n        subs   a3, a3, v5\n        mov    a2, a3, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        sub    a4, a4, v6\n        mov    a4, a4, asr #20\n        orr    a2, a2, a4, lsl #16\n        ldmfd  sp!, {a3, a4}\n        str    a2, [a1, #(16*5)]\n\n        adds   a2, a3, v7\n        mov    a2, a2, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        add    ip, a4, fp\n        mov    ip, ip, asr #20\n        orr    a2, a2, ip, lsl #16\n        str    a2, [a1, #(16*3)]\n        subs   a3, a3, v7\n        mov    a2, a3, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        sub    a4, a4, fp\n        mov    a4, a4, asr #20\n        orr    a2, a2, a4, lsl #16\n        str    a2, [a1, #(16*4)]\n\n        ldr    pc, [sp], #4\nendfunc\n\n.macro  clip   dst, src:vararg\n        movs   \\dst, \\src\n        it     mi\n        movmi  \\dst, #0\n        cmp    \\dst, #255\n        it     gt\n        movgt  \\dst, #255\n.endm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:9", "text": "mov    a2, a3, lsr #20\n        it     mi\n        orrmi  a2, a2, #0xf000\n        sub    a4, a4, fp\n        mov    a4, a4, asr #20\n        orr    a2, a2, a4, lsl #16\n        str    a2, [a1, #(16*4)]\n\n        ldr    pc, [sp], #4\nendfunc\n\n.macro  clip   dst, src:vararg\n        movs   \\dst, \\src\n        it     mi\n        movmi  \\dst, #0\n        cmp    \\dst, #255\n        it     gt\n        movgt  \\dst, #255\n.endm\n\n.macro  aclip  dst, src:vararg\n        adds   \\dst, \\src\n        it     mi\n        movmi  \\dst, #0\n        cmp    \\dst, #255\n        it     gt\n        movgt  \\dst, #255\n.endm\n\nfunction idct_col_put_armv5te\n        str    lr, [sp, #-4]!\n\n        idct_col\n\n        ldmfd  sp!, {a3, a4}\n        ldr    lr, [sp, #32]\n        add    a2, a3, v1\n        clip   a2, a2, asr #20\n        add    ip, a4, v2\n        clip   ip, ip, asr #20\n        orr    a2, a2, ip, lsl #8\n        sub    a3, a3, v1\n        clip   a3, a3, asr #20\n        sub    a4, a4, v2\n        clip   a4, a4, asr #20\n        ldr    v1, [sp, #28]\n        strh   a2, [v1]\n        add    a2, v1, #2\n        str    a2, [sp, #28]\n        orr    a2, a3, a4, lsl #8\n        rsb    v2, lr, lr, lsl #3\n        ldmfd  sp!, {a3, a4}\n        strh_pre a2, v2, v1\n\n        sub    a2, a3, v3\n        clip   a2, a2, asr #20\n        sub    ip, a4, v4\n        clip   ip, ip, asr #20\n        orr    a2, a2, ip, lsl #8\n        strh_pre a2, v1, lr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:10", "text": "orr    a2, a2, ip, lsl #8\n        sub    a3, a3, v1\n        clip   a3, a3, asr #20\n        sub    a4, a4, v2\n        clip   a4, a4, asr #20\n        ldr    v1, [sp, #28]\n        strh   a2, [v1]\n        add    a2, v1, #2\n        str    a2, [sp, #28]\n        orr    a2, a3, a4, lsl #8\n        rsb    v2, lr, lr, lsl #3\n        ldmfd  sp!, {a3, a4}\n        strh_pre a2, v2, v1\n\n        sub    a2, a3, v3\n        clip   a2, a2, asr #20\n        sub    ip, a4, v4\n        clip   ip, ip, asr #20\n        orr    a2, a2, ip, lsl #8\n        strh_pre a2, v1, lr\n        add    a3, a3, v3\n        clip   a2, a3, asr #20\n        add    a4, a4, v4\n        clip   a4, a4, asr #20\n        orr    a2, a2, a4, lsl #8\n        ldmfd  sp!, {a3, a4}\n        strh_dpre a2, v2, lr\n\n        add    a2, a3, v5\n        clip   a2, a2, asr #20\n        add    ip, a4, v6\n        clip   ip, ip, asr #20\n        orr    a2, a2, ip, lsl #8\n        strh_pre a2, v1, lr\n        sub    a3, a3, v5\n        clip   a2, a3, asr #20\n        sub    a4, a4, v6\n        clip   a4, a4, asr #20\n        orr    a2, a2, a4, lsl #8\n        ldmfd  sp!, {a3, a4}\n        strh_dpre a2, v2, lr\n\n        add    a2, a3, v7\n        clip   a2, a2, asr #20\n        add    ip, a4, fp\n        clip   ip, ip, asr #20\n        orr    a2, a2, ip, lsl #8\n        strh   a2, [v1, lr]\n        sub    a3, a3, v7\n        clip   a2, a3, asr #20\n        sub    a4, a4, fp\n        clip   a4, a4, asr #20\n        orr    a2, a2, a4, lsl #8\n        strh_dpre a2, v2, lr\n\n        ldr    pc, [sp], #4\nendfunc\n\nfunction idct_col_add_armv5te\n        str    lr, [sp, #-4]!", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:11", "text": "strh_dpre a2, v2, lr\n\n        add    a2, a3, v7\n        clip   a2, a2, asr #20\n        add    ip, a4, fp\n        clip   ip, ip, asr #20\n        orr    a2, a2, ip, lsl #8\n        strh   a2, [v1, lr]\n        sub    a3, a3, v7\n        clip   a2, a3, asr #20\n        sub    a4, a4, fp\n        clip   a4, a4, asr #20\n        orr    a2, a2, a4, lsl #8\n        strh_dpre a2, v2, lr\n\n        ldr    pc, [sp], #4\nendfunc\n\nfunction idct_col_add_armv5te\n        str    lr, [sp, #-4]!\n\n        idct_col\n\n        ldr    lr, [sp, #36]\n\n        ldmfd  sp!, {a3, a4}\n        ldrh   ip, [lr]\n        add    a2, a3, v1\n        sub    a3, a3, v1\n        and    v1, ip, #255\n        aclip  a2, v1, a2, asr #20\n        add    v1, a4, v2\n        mov    v1, v1, asr #20\n        aclip  v1, v1, ip, lsr #8\n        orr    a2, a2, v1, lsl #8\n        ldr    v1, [sp, #32]\n        sub    a4, a4, v2\n        rsb    v2, v1, v1, lsl #3\n        ldrh_pre ip, v2, lr\n        strh   a2, [lr]\n        and    a2, ip, #255\n        aclip  a3, a2, a3, asr #20\n        mov    a4, a4, asr #20\n        aclip  a4, a4, ip, lsr #8\n        add    a2, lr, #2\n        str    a2, [sp, #28]\n        orr    a2, a3, a4, lsl #8\n        strh   a2, [v2]\n\n        ldmfd  sp!, {a3, a4}\n        ldrh_pre ip, lr, v1\n        sub    a2, a3, v3\n        add    a3, a3, v3\n        and    v3, ip, #255\n        aclip  a2, v3, a2, asr #20\n        sub    v3, a4, v4\n        mov    v3, v3, asr #20\n        aclip  v3, v3, ip, lsr #8\n        orr    a2, a2, v3, lsl #8\n        add    a4, a4, v4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:12", "text": "and    a2, ip, #255\n        aclip  a3, a2, a3, asr #20\n        mov    a4, a4, asr #20\n        aclip  a4, a4, ip, lsr #8\n        add    a2, lr, #2\n        str    a2, [sp, #28]\n        orr    a2, a3, a4, lsl #8\n        strh   a2, [v2]\n\n        ldmfd  sp!, {a3, a4}\n        ldrh_pre ip, lr, v1\n        sub    a2, a3, v3\n        add    a3, a3, v3\n        and    v3, ip, #255\n        aclip  a2, v3, a2, asr #20\n        sub    v3, a4, v4\n        mov    v3, v3, asr #20\n        aclip  v3, v3, ip, lsr #8\n        orr    a2, a2, v3, lsl #8\n        add    a4, a4, v4\n        ldrh_dpre ip, v2, v1\n        strh   a2, [lr]\n        and    a2, ip, #255\n        aclip  a3, a2, a3, asr #20\n        mov    a4, a4, asr #20\n        aclip  a4, a4, ip, lsr #8\n        orr    a2, a3, a4, lsl #8\n        strh   a2, [v2]\n\n        ldmfd  sp!, {a3, a4}\n        ldrh_pre ip, lr, v1\n        add    a2, a3, v5\n        sub    a3, a3, v5\n        and    v3, ip, #255\n        aclip  a2, v3, a2, asr #20\n        add    v3, a4, v6\n        mov    v3, v3, asr #20\n        aclip  v3, v3, ip, lsr #8\n        orr    a2, a2, v3, lsl #8\n        sub    a4, a4, v6\n        ldrh_dpre ip, v2, v1\n        strh   a2, [lr]\n        and    a2, ip, #255\n        aclip  a3, a2, a3, asr #20\n        mov    a4, a4, asr #20\n        aclip  a4, a4, ip, lsr #8\n        orr    a2, a3, a4, lsl #8\n        strh   a2, [v2]\n\n        ldmfd  sp!, {a3, a4}\n        ldrh_pre ip, lr, v1\n        add    a2, a3, v7\n        sub    a3, a3, v7\n        and    v3, ip, #255\n        aclip  a2, v3, a2, asr #20\n        add    v3, a4, fp\n        mov    v3, v3, asr #20\n        aclip  v3, v3, ip, lsr #8\n        orr    a2, a2, v3, lsl #8\n        sub    a4, a4, fp", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:13", "text": "ldrh_dpre ip, v2, v1\n        strh   a2, [lr]\n        and    a2, ip, #255\n        aclip  a3, a2, a3, asr #20\n        mov    a4, a4, asr #20\n        aclip  a4, a4, ip, lsr #8\n        orr    a2, a3, a4, lsl #8\n        strh   a2, [v2]\n\n        ldmfd  sp!, {a3, a4}\n        ldrh_pre ip, lr, v1\n        add    a2, a3, v7\n        sub    a3, a3, v7\n        and    v3, ip, #255\n        aclip  a2, v3, a2, asr #20\n        add    v3, a4, fp\n        mov    v3, v3, asr #20\n        aclip  v3, v3, ip, lsr #8\n        orr    a2, a2, v3, lsl #8\n        sub    a4, a4, fp\n        ldrh_dpre ip, v2, v1\n        strh   a2, [lr]\n        and    a2, ip, #255\n        aclip  a3, a2, a3, asr #20\n        mov    a4, a4, asr #20\n        aclip  a4, a4, ip, lsr #8\n        orr    a2, a3, a4, lsl #8\n        strh   a2, [v2]\n\n        ldr    pc, [sp], #4\nendfunc\n\nfunction ff_simple_idct_armv5te, export=1\n        stmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp, lr}\n\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n\n        sub    a1, a1, #(16*7)\n\n        bl     idct_col_armv5te\n        add    a1, a1, #4\n        bl     idct_col_armv5te\n        add    a1, a1, #4\n        bl     idct_col_armv5te\n        add    a1, a1, #4\n        bl     idct_col_armv5te", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:14", "text": "add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n\n        sub    a1, a1, #(16*7)\n\n        bl     idct_col_armv5te\n        add    a1, a1, #4\n        bl     idct_col_armv5te\n        add    a1, a1, #4\n        bl     idct_col_armv5te\n        add    a1, a1, #4\n        bl     idct_col_armv5te\n\n        ldmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc\n\nfunction ff_simple_idct_add_armv5te, export=1\n        stmfd  sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr}\n\n        mov    a1, a3\n\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n\n        sub    a1, a1, #(16*7)\n\n        bl     idct_col_add_armv5te\n        add    a1, a1, #4\n        bl     idct_col_add_armv5te\n        add    a1, a1, #4\n        bl     idct_col_add_armv5te\n        add    a1, a1, #4\n        bl     idct_col_add_armv5te\n\n        add    sp, sp, #8\n        ldmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc\n\nfunction ff_simple_idct_put_armv5te, export=1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:15", "text": "add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n\n        sub    a1, a1, #(16*7)\n\n        bl     idct_col_add_armv5te\n        add    a1, a1, #4\n        bl     idct_col_add_armv5te\n        add    a1, a1, #4\n        bl     idct_col_add_armv5te\n        add    a1, a1, #4\n        bl     idct_col_add_armv5te\n\n        add    sp, sp, #8\n        ldmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc\n\nfunction ff_simple_idct_put_armv5te, export=1\n        stmfd  sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr}\n\n        mov    a1, a3\n\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n        add    a1, a1, #16\n        bl     idct_row_armv5te\n\n        sub    a1, a1, #(16*7)\n\n        bl     idct_col_put_armv5te\n        add    a1, a1, #4\n        bl     idct_col_put_armv5te\n        add    a1, a1, #4\n        bl     idct_col_put_armv5te\n        add    a1, a1, #4\n        bl     idct_col_put_armv5te\n\n        add    sp, sp, #8\n        ldmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 561, "line_end": 613}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv5te.S:16", "text": "sub    a1, a1, #(16*7)\n\n        bl     idct_col_put_armv5te\n        add    a1, a1, #4\n        bl     idct_col_put_armv5te\n        add    a1, a1, #4\n        bl     idct_col_put_armv5te\n        add    a1, a1, #4\n        bl     idct_col_put_armv5te\n\n        add    sp, sp, #8\n        ldmfd  sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv5te.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv5te.S", "line_start": 601, "line_end": 613}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:1", "text": "/*\n * Simple IDCT\n *\n * Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>\n * Copyright (c) 2007 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n#define W1  22725   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W2  21407   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W3  19266   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W4  16383   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W5  12873   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W6  8867    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W7  4520    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define ROW_SHIFT 11\n#define COL_SHIFT 20\n\n#define W13 (W1 | (W3 << 16))\n#define W26 (W2 | (W6 << 16))\n#define W42 (W4 | (W2 << 16))\n#define W42n (-W4&0xffff | (-W2 << 16))\n#define W46 (W4 | (W6 << 16))\n#define W57 (W5 | (W7 << 16))\n\n/*\n  Compute partial IDCT of single row.\n  shift = left-shift amount\n  r0 = source address\n  r2 = row[2,0] <= 2 cycles\n  r3 = row[3,1]\n  ip = w42      <= 2 cycles\n\n  Output in registers r4--r11\n*/\n        .macro idct_row shift\n        ldr             lr, =W46              /* lr  = W4 | (W6 << 16) */\n        mov             r1, #(1<<(\\shift-1))\n        smlad           r4, r2, ip, r1\n        smlsd           r7, r2, ip, r1\n        ldr             ip, =W13              /* ip  = W1 | (W3 << 16) */\n        ldr             r10,=W57              /* r10 = W5 | (W7 << 16) */\n        smlad           r5, r2, lr, r1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:2", "text": "#define W57 (W5 | (W7 << 16))\n\n/*\n  Compute partial IDCT of single row.\n  shift = left-shift amount\n  r0 = source address\n  r2 = row[2,0] <= 2 cycles\n  r3 = row[3,1]\n  ip = w42      <= 2 cycles\n\n  Output in registers r4--r11\n*/\n        .macro idct_row shift\n        ldr             lr, =W46              /* lr  = W4 | (W6 << 16) */\n        mov             r1, #(1<<(\\shift-1))\n        smlad           r4, r2, ip, r1\n        smlsd           r7, r2, ip, r1\n        ldr             ip, =W13              /* ip  = W1 | (W3 << 16) */\n        ldr             r10,=W57              /* r10 = W5 | (W7 << 16) */\n        smlad           r5, r2, lr, r1\n        smlsd           r6, r2, lr, r1\n\n        smuad           r8, r3, ip            /* r8  =  B0 = W1*row[1] + W3*row[3] */\n        smusdx          r11,r3, r10           /* r11 =  B3 = W7*row[1] - W5*row[3] */\n        ldr             lr, [r0, #12]         /* lr  =  row[7,5] */\n        pkhtb           r2, ip, r10,asr #16   /* r3  =  W7 | (W3 << 16) */\n        pkhbt           r1, ip, r10,lsl #16   /* r1  =  W1 | (W5 << 16) */\n        smusdx          r9, r2, r3            /* r9  = -B1 = W7*row[3] - W3*row[1] */\n        smlad           r8, lr, r10,r8        /* B0  +=      W5*row[5] + W7*row[7] */\n        smusdx          r10,r3, r1            /* r10 =  B2 = W5*row[1] - W1*row[3] */\n\n        ldr             r3, =W42n             /* r3 =  -W4 | (-W2 << 16) */\n        smlad           r10,lr, r2, r10       /* B2 +=  W7*row[5] + W3*row[7] */\n        ldr             r2, [r0, #4]          /* r2 =   row[6,4] */\n        smlsdx          r11,lr, ip, r11       /* B3 +=  W3*row[5] - W1*row[7] */\n        ldr             ip, =W46              /* ip =   W4 | (W6 << 16) */\n        smlad           r9, lr, r1, r9        /* B1 -=  W1*row[5] + W5*row[7] */\n\n        smlad           r5, r2, r3, r5        /* A1 += -W4*row[4] - W2*row[6] */\n        smlsd           r6, r2, r3, r6        /* A2 += -W4*row[4] + W2*row[6] */\n        smlad           r4, r2, ip, r4        /* A0 +=  W4*row[4] + W6*row[6] */\n        smlsd           r7, r2, ip, r7        /* A3 +=  W4*row[4] - W6*row[6] */\n        .endm\n\n/*\n  Compute partial IDCT of half row.\n  shift = left-shift amount\n  r2 = row[2,0]\n  r3 = row[3,1]\n  ip = w42\n\n  Output in registers r4--r11\n*/\n        .macro idct_row4 shift\n        ldr             lr, =W46              /* lr =  W4 | (W6 << 16) */\n        ldr             r10,=W57              /* r10 = W5 | (W7 << 16) */\n        mov             r1, #(1<<(\\shift-1))\n        smlad           r4, r2, ip, r1\n        smlsd           r7, r2, ip, r1\n        ldr             ip, =W13              /* ip =  W1 | (W3 << 16) */", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:3", "text": "smlad           r4, r2, ip, r4        /* A0 +=  W4*row[4] + W6*row[6] */\n        smlsd           r7, r2, ip, r7        /* A3 +=  W4*row[4] - W6*row[6] */\n        .endm\n\n/*\n  Compute partial IDCT of half row.\n  shift = left-shift amount\n  r2 = row[2,0]\n  r3 = row[3,1]\n  ip = w42\n\n  Output in registers r4--r11\n*/\n        .macro idct_row4 shift\n        ldr             lr, =W46              /* lr =  W4 | (W6 << 16) */\n        ldr             r10,=W57              /* r10 = W5 | (W7 << 16) */\n        mov             r1, #(1<<(\\shift-1))\n        smlad           r4, r2, ip, r1\n        smlsd           r7, r2, ip, r1\n        ldr             ip, =W13              /* ip =  W1 | (W3 << 16) */\n        smlad           r5, r2, lr, r1\n        smlsd           r6, r2, lr, r1\n        smusdx          r11,r3, r10           /* r11 =  B3 = W7*row[1] - W5*row[3] */\n        smuad           r8, r3, ip            /* r8  =  B0 = W1*row[1] + W3*row[3] */\n        pkhtb           r2, ip, r10,asr #16   /* r3  =  W7 | (W3 << 16) */\n        pkhbt           r1, ip, r10,lsl #16   /* r1  =  W1 | (W5 << 16) */\n        smusdx          r9, r2, r3            /* r9  = -B1 = W7*row[3] - W3*row[1] */\n        smusdx          r10,r3, r1            /* r10 =  B2 = W5*row[1] - W1*row[3] */\n        .endm\n\n/*\n  Compute final part of IDCT single row without shift.\n  Input in registers r4--r11\n  Output in registers ip, r4--r6, lr, r8--r10\n*/\n        .macro idct_finish\n        add             ip, r4, r8            /* r1 = A0 + B0 */\n        sub             lr, r4, r8            /* r2 = A0 - B0 */\n        sub             r4, r5, r9            /* r2 = A1 + B1 */\n        add             r8, r5, r9            /* r2 = A1 - B1 */\n        add             r5, r6, r10           /* r1 = A2 + B2 */\n        sub             r9, r6, r10           /* r1 = A2 - B2 */\n        add             r6, r7, r11           /* r2 = A3 + B3 */\n        sub             r10,r7, r11           /* r2 = A3 - B3 */\n        .endm\n\n/*\n  Compute final part of IDCT single row.\n  shift = right-shift amount\n  Input/output in registers r4--r11\n*/\n        .macro idct_finish_shift shift\n        add             r3, r4, r8            /* r3 = A0 + B0 */\n        sub             r2, r4, r8            /* r2 = A0 - B0 */\n        mov             r4, r3, asr #\\shift\n        mov             r8, r2, asr #\\shift\n\n        sub             r3, r5, r9            /* r3 = A1 + B1 */\n        add             r2, r5, r9            /* r2 = A1 - B1 */\n        mov             r5, r3, asr #\\shift", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:4", "text": "add             r5, r6, r10           /* r1 = A2 + B2 */\n        sub             r9, r6, r10           /* r1 = A2 - B2 */\n        add             r6, r7, r11           /* r2 = A3 + B3 */\n        sub             r10,r7, r11           /* r2 = A3 - B3 */\n        .endm\n\n/*\n  Compute final part of IDCT single row.\n  shift = right-shift amount\n  Input/output in registers r4--r11\n*/\n        .macro idct_finish_shift shift\n        add             r3, r4, r8            /* r3 = A0 + B0 */\n        sub             r2, r4, r8            /* r2 = A0 - B0 */\n        mov             r4, r3, asr #\\shift\n        mov             r8, r2, asr #\\shift\n\n        sub             r3, r5, r9            /* r3 = A1 + B1 */\n        add             r2, r5, r9            /* r2 = A1 - B1 */\n        mov             r5, r3, asr #\\shift\n        mov             r9, r2, asr #\\shift\n\n        add             r3, r6, r10           /* r3 = A2 + B2 */\n        sub             r2, r6, r10           /* r2 = A2 - B2 */\n        mov             r6, r3, asr #\\shift\n        mov             r10,r2, asr #\\shift\n\n        add             r3, r7, r11           /* r3 = A3 + B3 */\n        sub             r2, r7, r11           /* r2 = A3 - B3 */\n        mov             r7, r3, asr #\\shift\n        mov             r11,r2, asr #\\shift\n        .endm\n\n/*\n  Compute final part of IDCT single row, saturating results at 8 bits.\n  shift = right-shift amount\n  Input/output in registers r4--r11\n*/\n        .macro idct_finish_shift_sat shift\n        add             r3, r4, r8            /* r3 = A0 + B0 */\n        sub             ip, r4, r8            /* ip = A0 - B0 */\n        usat            r4, #8, r3, asr #\\shift\n        usat            r8, #8, ip, asr #\\shift\n\n        sub             r3, r5, r9            /* r3 = A1 + B1 */\n        add             ip, r5, r9            /* ip = A1 - B1 */\n        usat            r5, #8, r3, asr #\\shift\n        usat            r9, #8, ip, asr #\\shift\n\n        add             r3, r6, r10           /* r3 = A2 + B2 */\n        sub             ip, r6, r10           /* ip = A2 - B2 */\n        usat            r6, #8, r3, asr #\\shift\n        usat            r10,#8, ip, asr #\\shift\n\n        add             r3, r7, r11           /* r3 = A3 + B3 */\n        sub             ip, r7, r11           /* ip = A3 - B3 */\n        usat            r7, #8, r3, asr #\\shift\n        usat            r11,#8, ip, asr #\\shift\n        .endm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:5", "text": "sub             ip, r4, r8            /* ip = A0 - B0 */\n        usat            r4, #8, r3, asr #\\shift\n        usat            r8, #8, ip, asr #\\shift\n\n        sub             r3, r5, r9            /* r3 = A1 + B1 */\n        add             ip, r5, r9            /* ip = A1 - B1 */\n        usat            r5, #8, r3, asr #\\shift\n        usat            r9, #8, ip, asr #\\shift\n\n        add             r3, r6, r10           /* r3 = A2 + B2 */\n        sub             ip, r6, r10           /* ip = A2 - B2 */\n        usat            r6, #8, r3, asr #\\shift\n        usat            r10,#8, ip, asr #\\shift\n\n        add             r3, r7, r11           /* r3 = A3 + B3 */\n        sub             ip, r7, r11           /* ip = A3 - B3 */\n        usat            r7, #8, r3, asr #\\shift\n        usat            r11,#8, ip, asr #\\shift\n        .endm\n\n/*\n  Compute IDCT of single row, storing as column.\n  r0 = source\n  r1 = dest\n*/\nfunction idct_row_armv6\n        push            {lr}\n\n        ldr             lr, [r0, #12]         /* lr = row[7,5] */\n        ldr             ip, [r0, #4]          /* ip = row[6,4] */\n        ldr             r3, [r0, #8]          /* r3 = row[3,1] */\n        ldr             r2, [r0]              /* r2 = row[2,0] */\n        orrs            lr, lr, ip\n        itt             eq\n        cmpeq           lr, r3\n        cmpeq           lr, r2, lsr #16\n        beq             1f\n        push            {r1}\n        ldr             ip, =W42              /* ip = W4 | (W2 << 16) */\n        cmp             lr, #0\n        beq             2f\n\n        idct_row        ROW_SHIFT\n        b               3f\n\n2:      idct_row4       ROW_SHIFT\n\n3:      pop             {r1}\n        idct_finish_shift ROW_SHIFT\n\n        strh            r4, [r1]\n        strh            r5, [r1, #(16*2)]\n        strh            r6, [r1, #(16*4)]\n        strh            r7, [r1, #(16*6)]\n        strh            r11,[r1, #(16*1)]\n        strh            r10,[r1, #(16*3)]\n        strh            r9, [r1, #(16*5)]\n        strh            r8, [r1, #(16*7)]\n\n        pop             {pc}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:6", "text": "beq             2f\n\n        idct_row        ROW_SHIFT\n        b               3f\n\n2:      idct_row4       ROW_SHIFT\n\n3:      pop             {r1}\n        idct_finish_shift ROW_SHIFT\n\n        strh            r4, [r1]\n        strh            r5, [r1, #(16*2)]\n        strh            r6, [r1, #(16*4)]\n        strh            r7, [r1, #(16*6)]\n        strh            r11,[r1, #(16*1)]\n        strh            r10,[r1, #(16*3)]\n        strh            r9, [r1, #(16*5)]\n        strh            r8, [r1, #(16*7)]\n\n        pop             {pc}\n\n1:      mov             r2, r2, lsl #3\n        strh            r2, [r1]\n        strh            r2, [r1, #(16*2)]\n        strh            r2, [r1, #(16*4)]\n        strh            r2, [r1, #(16*6)]\n        strh            r2, [r1, #(16*1)]\n        strh            r2, [r1, #(16*3)]\n        strh            r2, [r1, #(16*5)]\n        strh            r2, [r1, #(16*7)]\n        pop             {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row.\n  r0 = source\n  r1 = dest\n*/\nfunction idct_col_armv6\n        push            {r1, lr}\n\n        ldr             r2, [r0]              /* r2 = row[2,0] */\n        ldr             ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr             r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row        COL_SHIFT\n        pop             {r1}\n        idct_finish_shift COL_SHIFT\n\n        strh            r4, [r1]\n        strh            r5, [r1, #(16*1)]\n        strh            r6, [r1, #(16*2)]\n        strh            r7, [r1, #(16*3)]\n        strh            r11,[r1, #(16*4)]\n        strh            r10,[r1, #(16*5)]\n        strh            r9, [r1, #(16*6)]\n        strh            r8, [r1, #(16*7)]\n\n        pop             {pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:7", "text": "ldr             r2, [r0]              /* r2 = row[2,0] */\n        ldr             ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr             r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row        COL_SHIFT\n        pop             {r1}\n        idct_finish_shift COL_SHIFT\n\n        strh            r4, [r1]\n        strh            r5, [r1, #(16*1)]\n        strh            r6, [r1, #(16*2)]\n        strh            r7, [r1, #(16*3)]\n        strh            r11,[r1, #(16*4)]\n        strh            r10,[r1, #(16*5)]\n        strh            r9, [r1, #(16*6)]\n        strh            r8, [r1, #(16*7)]\n\n        pop             {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row, store saturated 8-bit.\n  r0 = source\n  r1 = dest\n  r2 = line size\n*/\nfunction idct_col_put_armv6\n        push            {r1, r2, lr}\n\n        ldr             r2, [r0]              /* r2 = row[2,0] */\n        ldr             ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr             r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row        COL_SHIFT\n        pop             {r1, r2}\n        idct_finish_shift_sat COL_SHIFT\n\n        strb_post       r4, r1, r2\n        strb_post       r5, r1, r2\n        strb_post       r6, r1, r2\n        strb_post       r7, r1, r2\n        strb_post       r11,r1, r2\n        strb_post       r10,r1, r2\n        strb_post       r9, r1, r2\n        strb_post       r8, r1, r2\n\n        sub             r1, r1, r2, lsl #3\n\n        pop             {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row, add/store saturated 8-bit.\n  r0 = source\n  r1 = dest\n  r2 = line size\n*/\nfunction idct_col_add_armv6\n        push            {r1, r2, lr}\n\n        ldr             r2, [r0]              /* r2 = row[2,0] */", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:8", "text": "strb_post       r11,r1, r2\n        strb_post       r10,r1, r2\n        strb_post       r9, r1, r2\n        strb_post       r8, r1, r2\n\n        sub             r1, r1, r2, lsl #3\n\n        pop             {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row, add/store saturated 8-bit.\n  r0 = source\n  r1 = dest\n  r2 = line size\n*/\nfunction idct_col_add_armv6\n        push            {r1, r2, lr}\n\n        ldr             r2, [r0]              /* r2 = row[2,0] */\n        ldr             ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr             r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row        COL_SHIFT\n        pop             {r1, r2}\n        idct_finish\n\n        ldrb            r3, [r1]\n        ldrb            r7, [r1, r2]\n        ldrb            r11,[r1, r2, lsl #2]\n        add             ip, r3, ip, asr #COL_SHIFT\n        usat            ip, #8, ip\n        add             r4, r7, r4, asr #COL_SHIFT\n        strb_post       ip, r1, r2\n        ldrb            ip, [r1, r2]\n        usat            r4, #8, r4\n        ldrb            r11,[r1, r2, lsl #2]\n        add             r5, ip, r5, asr #COL_SHIFT\n        usat            r5, #8, r5\n        strb_post       r4, r1, r2\n        ldrb            r3, [r1, r2]\n        ldrb            ip, [r1, r2, lsl #2]\n        strb_post       r5, r1, r2\n        ldrb            r7, [r1, r2]\n        ldrb            r4, [r1, r2, lsl #2]\n        add             r6, r3, r6, asr #COL_SHIFT\n        usat            r6, #8, r6\n        add             r10,r7, r10,asr #COL_SHIFT\n        usat            r10,#8, r10\n        add             r9, r11,r9, asr #COL_SHIFT\n        usat            r9, #8, r9\n        add             r8, ip, r8, asr #COL_SHIFT\n        usat            r8, #8, r8\n        add             lr, r4, lr, asr #COL_SHIFT\n        usat            lr, #8, lr\n        strb_post       r6, r1, r2\n        strb_post       r10,r1, r2\n        strb_post       r9, r1, r2\n        strb_post       r8, r1, r2\n        strb_post       lr, r1, r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:9", "text": "ldrb            ip, [r1, r2, lsl #2]\n        strb_post       r5, r1, r2\n        ldrb            r7, [r1, r2]\n        ldrb            r4, [r1, r2, lsl #2]\n        add             r6, r3, r6, asr #COL_SHIFT\n        usat            r6, #8, r6\n        add             r10,r7, r10,asr #COL_SHIFT\n        usat            r10,#8, r10\n        add             r9, r11,r9, asr #COL_SHIFT\n        usat            r9, #8, r9\n        add             r8, ip, r8, asr #COL_SHIFT\n        usat            r8, #8, r8\n        add             lr, r4, lr, asr #COL_SHIFT\n        usat            lr, #8, lr\n        strb_post       r6, r1, r2\n        strb_post       r10,r1, r2\n        strb_post       r9, r1, r2\n        strb_post       r8, r1, r2\n        strb_post       lr, r1, r2\n\n        sub             r1, r1, r2, lsl #3\n\n        pop             {pc}\nendfunc\n\n/*\n  Compute 8 IDCT row transforms.\n  func = IDCT row->col function\n  width = width of columns in bytes\n*/\n        .macro idct_rows func width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        sub             r0, r0, #(16*5)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n\n        sub             r0, r0, #(16*7)\n        .endm\n\n/* void ff_simple_idct_armv6(int16_t *data); */\nfunction ff_simple_idct_armv6, export=1\n        push            {r4-r11, lr}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:10", "text": "bl              \\func\n        sub             r0, r0, #(16*5)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n        add             r0, r0, #(16*2)\n        add             r1, r1, #\\width\n        bl              \\func\n\n        sub             r0, r0, #(16*7)\n        .endm\n\n/* void ff_simple_idct_armv6(int16_t *data); */\nfunction ff_simple_idct_armv6, export=1\n        push            {r4-r11, lr}\n        sub             sp, sp, #128\n\n        mov             r1, sp\n        idct_rows       idct_row_armv6, 2\n        mov             r1, r0\n        mov             r0, sp\n        idct_rows       idct_col_armv6, 2\n\n        add             sp, sp, #128\n        pop             {r4-r11, pc}\nendfunc\n\n/* ff_simple_idct_add_armv6(uint8_t *dest, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_add_armv6, export=1\n        push            {r0, r1, r4-r11, lr}\n        sub             sp, sp, #128\n\n        mov             r0, r2\n        mov             r1, sp\n        idct_rows       idct_row_armv6, 2\n        mov             r0, sp\n        ldr             r1, [sp, #128]\n        ldr             r2, [sp, #(128+4)]\n        idct_rows       idct_col_add_armv6, 1\n\n        add             sp, sp, #(128+8)\n        pop             {r4-r11, pc}\nendfunc\n\n/* ff_simple_idct_put_armv6(uint8_t *dest, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_put_armv6, export=1\n        push            {r0, r1, r4-r11, lr}\n        sub             sp, sp, #128\n\n        mov             r0, r2\n        mov             r1, sp\n        idct_rows       idct_row_armv6, 2\n        mov             r0, sp\n        ldr             r1, [sp, #128]\n        ldr             r2, [sp, #(128+4)]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:11", "text": "mov             r0, sp\n        ldr             r1, [sp, #128]\n        ldr             r2, [sp, #(128+4)]\n        idct_rows       idct_col_add_armv6, 1\n\n        add             sp, sp, #(128+8)\n        pop             {r4-r11, pc}\nendfunc\n\n/* ff_simple_idct_put_armv6(uint8_t *dest, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_put_armv6, export=1\n        push            {r0, r1, r4-r11, lr}\n        sub             sp, sp, #128\n\n        mov             r0, r2\n        mov             r1, sp\n        idct_rows       idct_row_armv6, 2\n        mov             r0, sp\n        ldr             r1, [sp, #128]\n        ldr             r2, [sp, #(128+4)]\n        idct_rows       idct_col_put_armv6, 1\n\n        add             sp, sp, #(128+8)\n        pop             {r4-r11, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_armv6.S", "line_start": 401, "line_end": 425}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:1", "text": "/*\n * Simple IDCT\n *\n * Copyright (c) 2001 Michael Niedermayer <michaelni@gmx.at>\n * Copyright (c) 2007 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n#define W1  22725   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W2  21407   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W3  19266   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W4  16383   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W5  12873   /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W6  8867    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define W7  4520    /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */\n#define ROW_SHIFT 11\n#define COL_SHIFT 20\n\n#define W13 (W1 | (W3 << 16))\n#define W26 (W2 | (W6 << 16))\n#define W42 (W4 | (W2 << 16))\n#define W42n (-W4&0xffff | (-W2 << 16))\n#define W46 (W4 | (W6 << 16))\n#define W57 (W5 | (W7 << 16))\n\n/*\n  Compute partial IDCT of single row.\n  shift = left-shift amount\n  r0 = source address\n  r2 = row[2,0] <= 2 cycles\n  r3 = row[3,1]\n  ip = w42      <= 2 cycles\n\n  Output in registers r4--r11\n*/\n        .macro idct_row shift\n        ldr    lr, =W46              /* lr  = W4 | (W6 << 16) */\n        mov    r1, #(1<<(\\shift-1))\n        smlad  r4, r2, ip, r1\n        smlsd  r7, r2, ip, r1\n        ldr    ip, =W13              /* ip  = W1 | (W3 << 16) */\n        ldr    r10,=W57              /* r10 = W5 | (W7 << 16) */\n        smlad  r5, r2, lr, r1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:2", "text": "#define W57 (W5 | (W7 << 16))\n\n/*\n  Compute partial IDCT of single row.\n  shift = left-shift amount\n  r0 = source address\n  r2 = row[2,0] <= 2 cycles\n  r3 = row[3,1]\n  ip = w42      <= 2 cycles\n\n  Output in registers r4--r11\n*/\n        .macro idct_row shift\n        ldr    lr, =W46              /* lr  = W4 | (W6 << 16) */\n        mov    r1, #(1<<(\\shift-1))\n        smlad  r4, r2, ip, r1\n        smlsd  r7, r2, ip, r1\n        ldr    ip, =W13              /* ip  = W1 | (W3 << 16) */\n        ldr    r10,=W57              /* r10 = W5 | (W7 << 16) */\n        smlad  r5, r2, lr, r1\n        smlsd  r6, r2, lr, r1\n\n        smuad  r8, r3, ip            /* r8  =  B0 = W1*row[1] + W3*row[3] */\n        smusdx r11,r3, r10           /* r11 =  B3 = W7*row[1] - W5*row[3] */\n        ldr    lr, [r0, #12]         /* lr  =  row[7,5] */\n        pkhtb  r2, ip, r10,asr #16   /* r3  =  W7 | (W3 << 16) */\n        pkhbt  r1, ip, r10,lsl #16   /* r1  =  W1 | (W5 << 16) */\n        smusdx r9, r2, r3            /* r9  = -B1 = W7*row[3] - W3*row[1] */\n        smlad  r8, lr, r10,r8        /* B0  +=      W5*row[5] + W7*row[7] */\n        smusdx r10,r3, r1            /* r10 =  B2 = W5*row[1] - W1*row[3] */\n\n        ldr    r3, =W42n             /* r3 =  -W4 | (-W2 << 16) */\n        smlad  r10,lr, r2, r10       /* B2 +=  W7*row[5] + W3*row[7] */\n        ldr    r2, [r0, #4]          /* r2 =   row[6,4] */\n        smlsdx r11,lr, ip, r11       /* B3 +=  W3*row[5] - W1*row[7] */\n        ldr    ip, =W46              /* ip =   W4 | (W6 << 16) */\n        smlad  r9, lr, r1, r9        /* B1 -=  W1*row[5] + W5*row[7] */\n\n        smlad  r5, r2, r3, r5        /* A1 += -W4*row[4] - W2*row[6] */\n        smlsd  r6, r2, r3, r6        /* A2 += -W4*row[4] + W2*row[6] */\n        smlad  r4, r2, ip, r4        /* A0 +=  W4*row[4] + W6*row[6] */\n        smlsd  r7, r2, ip, r7        /* A3 +=  W4*row[4] - W6*row[6] */\n        .endm\n\n/*\n  Compute partial IDCT of half row.\n  shift = left-shift amount\n  r2 = row[2,0]\n  r3 = row[3,1]\n  ip = w42\n\n  Output in registers r4--r11\n*/\n        .macro idct_row4 shift\n        ldr    lr, =W46              /* lr =  W4 | (W6 << 16) */\n        ldr    r10,=W57              /* r10 = W5 | (W7 << 16) */\n        mov    r1, #(1<<(\\shift-1))\n        smlad  r4, r2, ip, r1\n        smlsd  r7, r2, ip, r1\n        ldr    ip, =W13              /* ip =  W1 | (W3 << 16) */", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:3", "text": "smlad  r4, r2, ip, r4        /* A0 +=  W4*row[4] + W6*row[6] */\n        smlsd  r7, r2, ip, r7        /* A3 +=  W4*row[4] - W6*row[6] */\n        .endm\n\n/*\n  Compute partial IDCT of half row.\n  shift = left-shift amount\n  r2 = row[2,0]\n  r3 = row[3,1]\n  ip = w42\n\n  Output in registers r4--r11\n*/\n        .macro idct_row4 shift\n        ldr    lr, =W46              /* lr =  W4 | (W6 << 16) */\n        ldr    r10,=W57              /* r10 = W5 | (W7 << 16) */\n        mov    r1, #(1<<(\\shift-1))\n        smlad  r4, r2, ip, r1\n        smlsd  r7, r2, ip, r1\n        ldr    ip, =W13              /* ip =  W1 | (W3 << 16) */\n        smlad  r5, r2, lr, r1\n        smlsd  r6, r2, lr, r1\n        smusdx r11,r3, r10           /* r11 =  B3 = W7*row[1] - W5*row[3] */\n        smuad  r8, r3, ip            /* r8  =  B0 = W1*row[1] + W3*row[3] */\n        pkhtb  r2, ip, r10,asr #16   /* r3  =  W7 | (W3 << 16) */\n        pkhbt  r1, ip, r10,lsl #16   /* r1  =  W1 | (W5 << 16) */\n        smusdx r9, r2, r3            /* r9  = -B1 = W7*row[3] - W3*row[1] */\n        smusdx r10,r3, r1            /* r10 =  B2 = W5*row[1] - W1*row[3] */\n        .endm\n\n/*\n  Compute final part of IDCT single row without shift.\n  Input in registers r4--r11\n  Output in registers ip, r4--r6, lr, r8--r10\n*/\n        .macro idct_finish\n        add    ip, r4, r8            /* r1 = A0 + B0 */\n        sub    lr, r4, r8            /* r2 = A0 - B0 */\n        sub    r4, r5, r9            /* r2 = A1 + B1 */\n        add    r8, r5, r9            /* r2 = A1 - B1 */\n        add    r5, r6, r10           /* r1 = A2 + B2 */\n        sub    r9, r6, r10           /* r1 = A2 - B2 */\n        add    r6, r7, r11           /* r2 = A3 + B3 */\n        sub    r10,r7, r11           /* r2 = A3 - B3 */\n        .endm\n\n/*\n  Compute final part of IDCT single row.\n  shift = right-shift amount\n  Input/output in registers r4--r11\n*/\n        .macro idct_finish_shift shift\n        add    r3, r4, r8            /* r3 = A0 + B0 */\n        sub    r2, r4, r8            /* r2 = A0 - B0 */\n        mov    r4, r3, asr #\\shift\n        mov    r8, r2, asr #\\shift\n\n        sub    r3, r5, r9            /* r3 = A1 + B1 */\n        add    r2, r5, r9            /* r2 = A1 - B1 */\n        mov    r5, r3, asr #\\shift", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:4", "text": "add    r5, r6, r10           /* r1 = A2 + B2 */\n        sub    r9, r6, r10           /* r1 = A2 - B2 */\n        add    r6, r7, r11           /* r2 = A3 + B3 */\n        sub    r10,r7, r11           /* r2 = A3 - B3 */\n        .endm\n\n/*\n  Compute final part of IDCT single row.\n  shift = right-shift amount\n  Input/output in registers r4--r11\n*/\n        .macro idct_finish_shift shift\n        add    r3, r4, r8            /* r3 = A0 + B0 */\n        sub    r2, r4, r8            /* r2 = A0 - B0 */\n        mov    r4, r3, asr #\\shift\n        mov    r8, r2, asr #\\shift\n\n        sub    r3, r5, r9            /* r3 = A1 + B1 */\n        add    r2, r5, r9            /* r2 = A1 - B1 */\n        mov    r5, r3, asr #\\shift\n        mov    r9, r2, asr #\\shift\n\n        add    r3, r6, r10           /* r3 = A2 + B2 */\n        sub    r2, r6, r10           /* r2 = A2 - B2 */\n        mov    r6, r3, asr #\\shift\n        mov    r10,r2, asr #\\shift\n\n        add    r3, r7, r11           /* r3 = A3 + B3 */\n        sub    r2, r7, r11           /* r2 = A3 - B3 */\n        mov    r7, r3, asr #\\shift\n        mov    r11,r2, asr #\\shift\n        .endm\n\n/*\n  Compute final part of IDCT single row, saturating results at 8 bits.\n  shift = right-shift amount\n  Input/output in registers r4--r11\n*/\n        .macro idct_finish_shift_sat shift\n        add    r3, r4, r8            /* r3 = A0 + B0 */\n        sub    ip, r4, r8            /* ip = A0 - B0 */\n        usat   r4, #8, r3, asr #\\shift\n        usat   r8, #8, ip, asr #\\shift\n\n        sub    r3, r5, r9            /* r3 = A1 + B1 */\n        add    ip, r5, r9            /* ip = A1 - B1 */\n        usat   r5, #8, r3, asr #\\shift\n        usat   r9, #8, ip, asr #\\shift\n\n        add    r3, r6, r10           /* r3 = A2 + B2 */\n        sub    ip, r6, r10           /* ip = A2 - B2 */\n        usat   r6, #8, r3, asr #\\shift\n        usat   r10,#8, ip, asr #\\shift\n\n        add    r3, r7, r11           /* r3 = A3 + B3 */\n        sub    ip, r7, r11           /* ip = A3 - B3 */\n        usat   r7, #8, r3, asr #\\shift\n        usat   r11,#8, ip, asr #\\shift\n        .endm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:5", "text": "sub    ip, r4, r8            /* ip = A0 - B0 */\n        usat   r4, #8, r3, asr #\\shift\n        usat   r8, #8, ip, asr #\\shift\n\n        sub    r3, r5, r9            /* r3 = A1 + B1 */\n        add    ip, r5, r9            /* ip = A1 - B1 */\n        usat   r5, #8, r3, asr #\\shift\n        usat   r9, #8, ip, asr #\\shift\n\n        add    r3, r6, r10           /* r3 = A2 + B2 */\n        sub    ip, r6, r10           /* ip = A2 - B2 */\n        usat   r6, #8, r3, asr #\\shift\n        usat   r10,#8, ip, asr #\\shift\n\n        add    r3, r7, r11           /* r3 = A3 + B3 */\n        sub    ip, r7, r11           /* ip = A3 - B3 */\n        usat   r7, #8, r3, asr #\\shift\n        usat   r11,#8, ip, asr #\\shift\n        .endm\n\n/*\n  Compute IDCT of single row, storing as column.\n  r0 = source\n  r1 = dest\n*/\nfunction idct_row_armv6\n        push   {lr}\n\n        ldr    lr, [r0, #12]         /* lr = row[7,5] */\n        ldr    ip, [r0, #4]          /* ip = row[6,4] */\n        ldr    r3, [r0, #8]          /* r3 = row[3,1] */\n        ldr    r2, [r0]              /* r2 = row[2,0] */\n        orrs   lr, lr, ip\n        itt    eq\n        cmpeq  lr, r3\n        cmpeq  lr, r2, lsr #16\n        beq    1f\n        push   {r1}\n        ldr    ip, =W42              /* ip = W4 | (W2 << 16) */\n        cmp    lr, #0\n        beq    2f\n\n        idct_row   ROW_SHIFT\n        b      3f\n\n2:      idct_row4  ROW_SHIFT\n\n3:      pop    {r1}\n        idct_finish_shift ROW_SHIFT\n\n        strh   r4, [r1]\n        strh   r5, [r1, #(16*2)]\n        strh   r6, [r1, #(16*4)]\n        strh   r7, [r1, #(16*6)]\n        strh   r11,[r1, #(16*1)]\n        strh   r10,[r1, #(16*3)]\n        strh   r9, [r1, #(16*5)]\n        strh   r8, [r1, #(16*7)]\n\n        pop    {pc}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:6", "text": "beq    2f\n\n        idct_row   ROW_SHIFT\n        b      3f\n\n2:      idct_row4  ROW_SHIFT\n\n3:      pop    {r1}\n        idct_finish_shift ROW_SHIFT\n\n        strh   r4, [r1]\n        strh   r5, [r1, #(16*2)]\n        strh   r6, [r1, #(16*4)]\n        strh   r7, [r1, #(16*6)]\n        strh   r11,[r1, #(16*1)]\n        strh   r10,[r1, #(16*3)]\n        strh   r9, [r1, #(16*5)]\n        strh   r8, [r1, #(16*7)]\n\n        pop    {pc}\n\n1:      mov    r2, r2, lsl #3\n        strh   r2, [r1]\n        strh   r2, [r1, #(16*2)]\n        strh   r2, [r1, #(16*4)]\n        strh   r2, [r1, #(16*6)]\n        strh   r2, [r1, #(16*1)]\n        strh   r2, [r1, #(16*3)]\n        strh   r2, [r1, #(16*5)]\n        strh   r2, [r1, #(16*7)]\n        pop    {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row.\n  r0 = source\n  r1 = dest\n*/\nfunction idct_col_armv6\n        push   {r1, lr}\n\n        ldr    r2, [r0]              /* r2 = row[2,0] */\n        ldr    ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr    r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row COL_SHIFT\n        pop    {r1}\n        idct_finish_shift COL_SHIFT\n\n        strh   r4, [r1]\n        strh   r5, [r1, #(16*1)]\n        strh   r6, [r1, #(16*2)]\n        strh   r7, [r1, #(16*3)]\n        strh   r11,[r1, #(16*4)]\n        strh   r10,[r1, #(16*5)]\n        strh   r9, [r1, #(16*6)]\n        strh   r8, [r1, #(16*7)]\n\n        pop    {pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:7", "text": "ldr    r2, [r0]              /* r2 = row[2,0] */\n        ldr    ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr    r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row COL_SHIFT\n        pop    {r1}\n        idct_finish_shift COL_SHIFT\n\n        strh   r4, [r1]\n        strh   r5, [r1, #(16*1)]\n        strh   r6, [r1, #(16*2)]\n        strh   r7, [r1, #(16*3)]\n        strh   r11,[r1, #(16*4)]\n        strh   r10,[r1, #(16*5)]\n        strh   r9, [r1, #(16*6)]\n        strh   r8, [r1, #(16*7)]\n\n        pop    {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row, store saturated 8-bit.\n  r0 = source\n  r1 = dest\n  r2 = line size\n*/\nfunction idct_col_put_armv6\n        push   {r1, r2, lr}\n\n        ldr    r2, [r0]              /* r2 = row[2,0] */\n        ldr    ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr    r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row COL_SHIFT\n        pop    {r1, r2}\n        idct_finish_shift_sat COL_SHIFT\n\n        strb_post r4, r1, r2\n        strb_post r5, r1, r2\n        strb_post r6, r1, r2\n        strb_post r7, r1, r2\n        strb_post r11,r1, r2\n        strb_post r10,r1, r2\n        strb_post r9, r1, r2\n        strb_post r8, r1, r2\n\n        sub    r1, r1, r2, lsl #3\n\n        pop    {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row, add/store saturated 8-bit.\n  r0 = source\n  r1 = dest\n  r2 = line size\n*/\nfunction idct_col_add_armv6\n        push   {r1, r2, lr}\n\n        ldr    r2, [r0]              /* r2 = row[2,0] */", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:8", "text": "strb_post r11,r1, r2\n        strb_post r10,r1, r2\n        strb_post r9, r1, r2\n        strb_post r8, r1, r2\n\n        sub    r1, r1, r2, lsl #3\n\n        pop    {pc}\nendfunc\n\n/*\n  Compute IDCT of single column, read as row, add/store saturated 8-bit.\n  r0 = source\n  r1 = dest\n  r2 = line size\n*/\nfunction idct_col_add_armv6\n        push   {r1, r2, lr}\n\n        ldr    r2, [r0]              /* r2 = row[2,0] */\n        ldr    ip, =W42              /* ip = W4 | (W2 << 16) */\n        ldr    r3, [r0, #8]          /* r3 = row[3,1] */\n        idct_row COL_SHIFT\n        pop    {r1, r2}\n        idct_finish\n\n        ldrb   r3, [r1]\n        ldrb   r7, [r1, r2]\n        ldrb   r11,[r1, r2, lsl #2]\n        add    ip, r3, ip, asr #COL_SHIFT\n        usat   ip, #8, ip\n        add    r4, r7, r4, asr #COL_SHIFT\n        strb_post ip, r1, r2\n        ldrb   ip, [r1, r2]\n        usat   r4, #8, r4\n        ldrb   r11,[r1, r2, lsl #2]\n        add    r5, ip, r5, asr #COL_SHIFT\n        usat   r5, #8, r5\n        strb_post r4, r1, r2\n        ldrb   r3, [r1, r2]\n        ldrb   ip, [r1, r2, lsl #2]\n        strb_post r5, r1, r2\n        ldrb   r7, [r1, r2]\n        ldrb   r4, [r1, r2, lsl #2]\n        add    r6, r3, r6, asr #COL_SHIFT\n        usat   r6, #8, r6\n        add    r10,r7, r10,asr #COL_SHIFT\n        usat   r10,#8, r10\n        add    r9, r11,r9, asr #COL_SHIFT\n        usat   r9, #8, r9\n        add    r8, ip, r8, asr #COL_SHIFT\n        usat   r8, #8, r8\n        add    lr, r4, lr, asr #COL_SHIFT\n        usat   lr, #8, lr\n        strb_post r6, r1, r2\n        strb_post r10,r1, r2\n        strb_post r9, r1, r2\n        strb_post r8, r1, r2\n        strb_post lr, r1, r2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:9", "text": "ldrb   ip, [r1, r2, lsl #2]\n        strb_post r5, r1, r2\n        ldrb   r7, [r1, r2]\n        ldrb   r4, [r1, r2, lsl #2]\n        add    r6, r3, r6, asr #COL_SHIFT\n        usat   r6, #8, r6\n        add    r10,r7, r10,asr #COL_SHIFT\n        usat   r10,#8, r10\n        add    r9, r11,r9, asr #COL_SHIFT\n        usat   r9, #8, r9\n        add    r8, ip, r8, asr #COL_SHIFT\n        usat   r8, #8, r8\n        add    lr, r4, lr, asr #COL_SHIFT\n        usat   lr, #8, lr\n        strb_post r6, r1, r2\n        strb_post r10,r1, r2\n        strb_post r9, r1, r2\n        strb_post r8, r1, r2\n        strb_post lr, r1, r2\n\n        sub    r1, r1, r2, lsl #3\n\n        pop    {pc}\nendfunc\n\n/*\n  Compute 8 IDCT row transforms.\n  func = IDCT row->col function\n  width = width of columns in bytes\n*/\n        .macro idct_rows func width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        sub    r0, r0, #(16*5)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n\n        sub    r0, r0, #(16*7)\n        .endm\n\n/* void ff_simple_idct_armv6(int16_t *data); */\nfunction ff_simple_idct_armv6, export=1\n        push   {r4-r11, lr}", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:10", "text": "bl     \\func\n        sub    r0, r0, #(16*5)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n        add    r0, r0, #(16*2)\n        add    r1, r1, #\\width\n        bl     \\func\n\n        sub    r0, r0, #(16*7)\n        .endm\n\n/* void ff_simple_idct_armv6(int16_t *data); */\nfunction ff_simple_idct_armv6, export=1\n        push   {r4-r11, lr}\n        sub    sp, sp, #128\n\n        mov    r1, sp\n        idct_rows idct_row_armv6, 2\n        mov    r1, r0\n        mov    r0, sp\n        idct_rows idct_col_armv6, 2\n\n        add    sp, sp, #128\n        pop    {r4-r11, pc}\nendfunc\n\n/* ff_simple_idct_add_armv6(uint8_t *dest, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_add_armv6, export=1\n        push   {r0, r1, r4-r11, lr}\n        sub    sp, sp, #128\n\n        mov    r0, r2\n        mov    r1, sp\n        idct_rows idct_row_armv6, 2\n        mov    r0, sp\n        ldr    r1, [sp, #128]\n        ldr    r2, [sp, #(128+4)]\n        idct_rows idct_col_add_armv6, 1\n\n        add    sp, sp, #(128+8)\n        pop    {r4-r11, pc}\nendfunc\n\n/* ff_simple_idct_put_armv6(uint8_t *dest, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_put_armv6, export=1\n        push   {r0, r1, r4-r11, lr}\n        sub    sp, sp, #128\n\n        mov    r0, r2\n        mov    r1, sp\n        idct_rows idct_row_armv6, 2\n        mov    r0, sp\n        ldr    r1, [sp, #128]\n        ldr    r2, [sp, #(128+4)]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_armv6.S:11", "text": "mov    r0, sp\n        ldr    r1, [sp, #128]\n        ldr    r2, [sp, #(128+4)]\n        idct_rows idct_col_add_armv6, 1\n\n        add    sp, sp, #(128+8)\n        pop    {r4-r11, pc}\nendfunc\n\n/* ff_simple_idct_put_armv6(uint8_t *dest, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_put_armv6, export=1\n        push   {r0, r1, r4-r11, lr}\n        sub    sp, sp, #128\n\n        mov    r0, r2\n        mov    r1, sp\n        idct_rows idct_row_armv6, 2\n        mov    r0, sp\n        ldr    r1, [sp, #128]\n        ldr    r2, [sp, #(128+4)]\n        idct_rows idct_col_put_armv6, 1\n\n        add    sp, sp, #(128+8)\n        pop    {r4-r11, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/simple_idct_armv6.S", "line_start": 401, "line_end": 425}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:2", "text": "#define w3 d0[2]\n#define w4 d0[3]\n#define w5 d1[0]\n#define w6 d1[1]\n#define w7 d1[2]\n#define w4c d1[3]\n\n        .macro idct_col4_top\n        vmull.s16       q7,  d6,  w2    /* q9   = W2 * col[2] */\n        vmull.s16       q8,  d6,  w6    /* q10  = W6 * col[2] */\n        vmull.s16       q9,  d4,  w1    /* q9   = W1 * col[1] */\n        vadd.i32        q11, q15, q7\n        vmull.s16       q10, d4,  w3    /* q10  = W3 * col[1] */\n        vadd.i32        q12, q15, q8\n        vmull.s16       q5,  d4,  w5    /* q5   = W5 * col[1] */\n        vsub.i32        q13, q15, q8\n        vmull.s16       q6,  d4,  w7    /* q6   = W7 * col[1] */\n        vsub.i32        q14, q15, q7\n\n        vmlal.s16       q9,  d8,  w3    /* q9  += W3 * col[3] */\n        vmlsl.s16       q10, d8,  w7    /* q10 -= W7 * col[3] */\n        vmlsl.s16       q5,  d8,  w1    /* q5  -= W1 * col[3] */\n        vmlsl.s16       q6,  d8,  w5    /* q6  -= W5 * col[3] */\n        .endm\n\n        .text\n        .align 6\n\nfunction idct_row4_pld_neon\n        pld             [r0]\n        add             r3,  r0,  r1,  lsl #2\n        pld             [r0, r1]\n        pld             [r0, r1, lsl #1]\nA       pld             [r3, -r1]\n        pld             [r3]\n        pld             [r3, r1]\n        add             r3,  r3,  r1,  lsl #1\n        pld             [r3]\n        pld             [r3, r1]\nendfunc\n\nfunction idct_row4_neon\n        vmov.i32        q15, #(1<<(ROW_SHIFT-1))\n        vld1.64         {d2-d5},  [r2,:128]!\n        vmlal.s16       q15, d2,  w4    /* q15  += W4 * col[0] */\n        vld1.64         {d6,d7},  [r2,:128]!\n        vorr            d10, d3,  d5\n        vld1.64         {d8,d9},  [r2,:128]!\n        add             r2,  r2,  #-64\n\n        vorr            d11, d7,  d9\n        vorr            d10, d10, d11\n        vmov            r3,  r4,  d10\n\n        idct_col4_top\n\n        orrs            r3,  r3,  r4\n        beq             1f\n\n        vmull.s16       q7,  d3,  w4    /* q7   = W4 * col[4] */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:3", "text": "function idct_row4_neon\n        vmov.i32        q15, #(1<<(ROW_SHIFT-1))\n        vld1.64         {d2-d5},  [r2,:128]!\n        vmlal.s16       q15, d2,  w4    /* q15  += W4 * col[0] */\n        vld1.64         {d6,d7},  [r2,:128]!\n        vorr            d10, d3,  d5\n        vld1.64         {d8,d9},  [r2,:128]!\n        add             r2,  r2,  #-64\n\n        vorr            d11, d7,  d9\n        vorr            d10, d10, d11\n        vmov            r3,  r4,  d10\n\n        idct_col4_top\n\n        orrs            r3,  r3,  r4\n        beq             1f\n\n        vmull.s16       q7,  d3,  w4    /* q7   = W4 * col[4] */\n        vmlal.s16       q9,  d5,  w5    /* q9  += W5 * col[5] */\n        vmlsl.s16       q10, d5,  w1    /* q10 -= W1 * col[5] */\n        vmull.s16       q8,  d7,  w2    /* q8   = W2 * col[6] */\n        vmlal.s16       q5,  d5,  w7    /* q5  += W7 * col[5] */\n        vadd.i32        q11, q11, q7\n        vsub.i32        q12, q12, q7\n        vsub.i32        q13, q13, q7\n        vadd.i32        q14, q14, q7\n        vmlal.s16       q6,  d5,  w3    /* q6  += W3 * col[5] */\n        vmull.s16       q7,  d7,  w6    /* q7   = W6 * col[6] */\n        vmlal.s16       q9,  d9,  w7\n        vmlsl.s16       q10, d9,  w5\n        vmlal.s16       q5,  d9,  w3\n        vmlsl.s16       q6,  d9,  w1\n        vadd.i32        q11, q11, q7\n        vsub.i32        q12, q12, q8\n        vadd.i32        q13, q13, q8\n        vsub.i32        q14, q14, q7\n\n1:      vadd.i32        q3,  q11, q9\n        vadd.i32        q4,  q12, q10\n        vshrn.i32       d2,  q3,  #ROW_SHIFT\n        vshrn.i32       d4,  q4,  #ROW_SHIFT\n        vadd.i32        q7,  q13, q5\n        vadd.i32        q8,  q14, q6\n        vtrn.16         d2,  d4\n        vshrn.i32       d6,  q7,  #ROW_SHIFT\n        vshrn.i32       d8,  q8,  #ROW_SHIFT\n        vsub.i32        q14, q14, q6\n        vsub.i32        q11, q11, q9\n        vtrn.16         d6,  d8\n        vsub.i32        q13, q13, q5\n        vshrn.i32       d3,  q14, #ROW_SHIFT\n        vtrn.32         d2,  d6\n        vsub.i32        q12, q12, q10\n        vtrn.32         d4,  d8\n        vshrn.i32       d5,  q13, #ROW_SHIFT\n        vshrn.i32       d7,  q12, #ROW_SHIFT\n        vshrn.i32       d9,  q11, #ROW_SHIFT", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:4", "text": "vadd.i32        q4,  q12, q10\n        vshrn.i32       d2,  q3,  #ROW_SHIFT\n        vshrn.i32       d4,  q4,  #ROW_SHIFT\n        vadd.i32        q7,  q13, q5\n        vadd.i32        q8,  q14, q6\n        vtrn.16         d2,  d4\n        vshrn.i32       d6,  q7,  #ROW_SHIFT\n        vshrn.i32       d8,  q8,  #ROW_SHIFT\n        vsub.i32        q14, q14, q6\n        vsub.i32        q11, q11, q9\n        vtrn.16         d6,  d8\n        vsub.i32        q13, q13, q5\n        vshrn.i32       d3,  q14, #ROW_SHIFT\n        vtrn.32         d2,  d6\n        vsub.i32        q12, q12, q10\n        vtrn.32         d4,  d8\n        vshrn.i32       d5,  q13, #ROW_SHIFT\n        vshrn.i32       d7,  q12, #ROW_SHIFT\n        vshrn.i32       d9,  q11, #ROW_SHIFT\n\n        vtrn.16         d3,  d5\n        vtrn.16         d7,  d9\n        vtrn.32         d3,  d7\n        vtrn.32         d5,  d9\n\n        vst1.64         {d2-d5},  [r2,:128]!\n        vst1.64         {d6-d9},  [r2,:128]!\n\n        bx              lr\nendfunc\n\nfunction idct_col4_neon\n        mov             ip,  #16\n        vld1.64         {d2}, [r2,:64], ip /* d2 = col[0] */\n        vdup.16         d30, w4c\n        vld1.64         {d4}, [r2,:64], ip /* d3 = col[1] */\n        vadd.i16        d30, d30, d2\n        vld1.64         {d6}, [r2,:64], ip /* d4 = col[2] */\n        vmull.s16       q15, d30, w4 /* q15 = W4*(col[0]+(1<<COL_SHIFT-1)/W4)*/\n        vld1.64         {d8}, [r2,:64], ip /* d5 = col[3] */\n\n        ldrd            r4,  r5,  [r2]\n        ldrd            r6,  r7,  [r2, #16]\n        orrs            r4,  r4,  r5\n\n        idct_col4_top\n        it              eq\n        addeq           r2,  r2,  #16\n        beq             1f\n\n        vld1.64         {d3}, [r2,:64], ip /* d6 = col[4] */\n        vmull.s16       q7,  d3,  w4    /* q7   = W4 * col[4] */\n        vadd.i32        q11, q11, q7\n        vsub.i32        q12, q12, q7\n        vsub.i32        q13, q13, q7\n        vadd.i32        q14, q14, q7\n\n1:      orrs            r6,  r6,  r7\n        ldrd            r4,  r5,  [r2, #16]\n        it              eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:5", "text": "ldrd            r4,  r5,  [r2]\n        ldrd            r6,  r7,  [r2, #16]\n        orrs            r4,  r4,  r5\n\n        idct_col4_top\n        it              eq\n        addeq           r2,  r2,  #16\n        beq             1f\n\n        vld1.64         {d3}, [r2,:64], ip /* d6 = col[4] */\n        vmull.s16       q7,  d3,  w4    /* q7   = W4 * col[4] */\n        vadd.i32        q11, q11, q7\n        vsub.i32        q12, q12, q7\n        vsub.i32        q13, q13, q7\n        vadd.i32        q14, q14, q7\n\n1:      orrs            r6,  r6,  r7\n        ldrd            r4,  r5,  [r2, #16]\n        it              eq\n        addeq           r2,  r2,  #16\n        beq             2f\n\n        vld1.64         {d5}, [r2,:64], ip /* d7 = col[5] */\n        vmlal.s16       q9,  d5,  w5    /* q9  += W5 * col[5] */\n        vmlsl.s16       q10, d5,  w1    /* q10 -= W1 * col[5] */\n        vmlal.s16       q5,  d5,  w7    /* q5  += W7 * col[5] */\n        vmlal.s16       q6,  d5,  w3    /* q6  += W3 * col[5] */\n\n2:      orrs            r4,  r4,  r5\n        ldrd            r4,  r5,  [r2, #16]\n        it              eq\n        addeq           r2,  r2,  #16\n        beq             3f\n\n        vld1.64         {d7}, [r2,:64], ip /* d8 = col[6] */\n        vmull.s16       q7,  d7,  w6    /* q7   = W6 * col[6] */\n        vmull.s16       q8,  d7,  w2    /* q8   = W2 * col[6] */\n        vadd.i32        q11, q11, q7\n        vsub.i32        q14, q14, q7\n        vsub.i32        q12, q12, q8\n        vadd.i32        q13, q13, q8\n\n3:      orrs            r4,  r4,  r5\n        it              eq\n        addeq           r2,  r2,  #16\n        beq             4f\n\n        vld1.64         {d9}, [r2,:64], ip /* d9 = col[7] */\n        vmlal.s16       q9,  d9,  w7\n        vmlsl.s16       q10, d9,  w5\n        vmlal.s16       q5,  d9,  w3\n        vmlsl.s16       q6,  d9,  w1\n\n4:      vaddhn.i32      d2,  q11, q9\n        vaddhn.i32      d3,  q12, q10\n        vaddhn.i32      d4,  q13, q5\n        vaddhn.i32      d5,  q14, q6\n        vsubhn.i32      d9,  q11, q9\n        vsubhn.i32      d8,  q12, q10", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:6", "text": "vsub.i32        q12, q12, q8\n        vadd.i32        q13, q13, q8\n\n3:      orrs            r4,  r4,  r5\n        it              eq\n        addeq           r2,  r2,  #16\n        beq             4f\n\n        vld1.64         {d9}, [r2,:64], ip /* d9 = col[7] */\n        vmlal.s16       q9,  d9,  w7\n        vmlsl.s16       q10, d9,  w5\n        vmlal.s16       q5,  d9,  w3\n        vmlsl.s16       q6,  d9,  w1\n\n4:      vaddhn.i32      d2,  q11, q9\n        vaddhn.i32      d3,  q12, q10\n        vaddhn.i32      d4,  q13, q5\n        vaddhn.i32      d5,  q14, q6\n        vsubhn.i32      d9,  q11, q9\n        vsubhn.i32      d8,  q12, q10\n        vsubhn.i32      d7,  q13, q5\n        vsubhn.i32      d6,  q14, q6\n\n        bx              lr\nendfunc\n\n        .align 6\n\nfunction idct_col4_st8_neon\n        vqshrun.s16     d2,  q1,  #COL_SHIFT-16\n        vqshrun.s16     d3,  q2,  #COL_SHIFT-16\n        vqshrun.s16     d4,  q3,  #COL_SHIFT-16\n        vqshrun.s16     d5,  q4,  #COL_SHIFT-16\n        vst1.32         {d2[0]}, [r0,:32], r1\n        vst1.32         {d2[1]}, [r0,:32], r1\n        vst1.32         {d3[0]}, [r0,:32], r1\n        vst1.32         {d3[1]}, [r0,:32], r1\n        vst1.32         {d4[0]}, [r0,:32], r1\n        vst1.32         {d4[1]}, [r0,:32], r1\n        vst1.32         {d5[0]}, [r0,:32], r1\n        vst1.32         {d5[1]}, [r0,:32], r1\n\n        bx              lr\nendfunc\n\nconst   idct_coeff_neon, align=4\n        .short W1, W2, W3, W4, W5, W6, W7, W4c\nendconst\n\n        .macro idct_start data\n        push            {r4-r7, lr}\n        pld             [\\data]\n        pld             [\\data, #64]\n        vpush           {d8-d15}\n        movrel          r3,  idct_coeff_neon\n        vld1.64         {d0,d1}, [r3,:128]\n        .endm\n\n        .macro idct_end\n        vpop            {d8-d15}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:7", "text": "vst1.32         {d5[1]}, [r0,:32], r1\n\n        bx              lr\nendfunc\n\nconst   idct_coeff_neon, align=4\n        .short W1, W2, W3, W4, W5, W6, W7, W4c\nendconst\n\n        .macro idct_start data\n        push            {r4-r7, lr}\n        pld             [\\data]\n        pld             [\\data, #64]\n        vpush           {d8-d15}\n        movrel          r3,  idct_coeff_neon\n        vld1.64         {d0,d1}, [r3,:128]\n        .endm\n\n        .macro idct_end\n        vpop            {d8-d15}\n        pop             {r4-r7, pc}\n        .endm\n\n/* void ff_simple_idct_put_neon(uint8_t *dst, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_put_neon, export=1\n        idct_start      r2\n\n        bl              idct_row4_pld_neon\n        bl              idct_row4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_neon\n        bl              idct_col4_st8_neon\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  #4\n        add             r2,  r2,  #-120\n        bl              idct_col4_neon\n        bl              idct_col4_st8_neon\n\n        idct_end\nendfunc\n\n        .align 6\n\nfunction idct_col4_add8_neon\n        mov             ip,  r0\n\n        vld1.32         {d10[0]}, [r0,:32], r1\n        vshr.s16        q1,  q1,  #COL_SHIFT-16\n        vld1.32         {d10[1]}, [r0,:32], r1\n        vshr.s16        q2,  q2,  #COL_SHIFT-16\n        vld1.32         {d11[0]}, [r0,:32], r1\n        vshr.s16        q3,  q3,  #COL_SHIFT-16\n        vld1.32         {d11[1]}, [r0,:32], r1\n        vshr.s16        q4,  q4,  #COL_SHIFT-16\n        vld1.32         {d12[0]}, [r0,:32], r1\n        vaddw.u8        q1,  q1,  d10\n        vld1.32         {d12[1]}, [r0,:32], r1\n        vaddw.u8        q2,  q2,  d11\n        vld1.32         {d13[0]}, [r0,:32], r1\n        vqmovun.s16     d2,  q1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:8", "text": ".align 6\n\nfunction idct_col4_add8_neon\n        mov             ip,  r0\n\n        vld1.32         {d10[0]}, [r0,:32], r1\n        vshr.s16        q1,  q1,  #COL_SHIFT-16\n        vld1.32         {d10[1]}, [r0,:32], r1\n        vshr.s16        q2,  q2,  #COL_SHIFT-16\n        vld1.32         {d11[0]}, [r0,:32], r1\n        vshr.s16        q3,  q3,  #COL_SHIFT-16\n        vld1.32         {d11[1]}, [r0,:32], r1\n        vshr.s16        q4,  q4,  #COL_SHIFT-16\n        vld1.32         {d12[0]}, [r0,:32], r1\n        vaddw.u8        q1,  q1,  d10\n        vld1.32         {d12[1]}, [r0,:32], r1\n        vaddw.u8        q2,  q2,  d11\n        vld1.32         {d13[0]}, [r0,:32], r1\n        vqmovun.s16     d2,  q1\n        vld1.32         {d13[1]}, [r0,:32], r1\n        vaddw.u8        q3,  q3,  d12\n        vst1.32         {d2[0]},  [ip,:32], r1\n        vqmovun.s16     d3,  q2\n        vst1.32         {d2[1]},  [ip,:32], r1\n        vaddw.u8        q4,  q4,  d13\n        vst1.32         {d3[0]},  [ip,:32], r1\n        vqmovun.s16     d4,  q3\n        vst1.32         {d3[1]},  [ip,:32], r1\n        vqmovun.s16     d5,  q4\n        vst1.32         {d4[0]},  [ip,:32], r1\n        vst1.32         {d4[1]},  [ip,:32], r1\n        vst1.32         {d5[0]},  [ip,:32], r1\n        vst1.32         {d5[1]},  [ip,:32], r1\n\n        bx              lr\nendfunc\n\n/* void ff_simple_idct_add_neon(uint8_t *dst, ptrdiff_t line_size, int16_t *data); */\nfunction ff_simple_idct_add_neon, export=1\n        idct_start      r2\n\n        bl              idct_row4_pld_neon\n        bl              idct_row4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_neon\n        bl              idct_col4_add8_neon\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  #4\n        add             r2,  r2,  #-120\n        bl              idct_col4_neon\n        bl              idct_col4_add8_neon\n\n        idct_end\nendfunc\n\n        .align 6\n\nfunction idct_col4_st16_neon\n        mov             ip,  #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:9", "text": "idct_start      r2\n\n        bl              idct_row4_pld_neon\n        bl              idct_row4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_neon\n        bl              idct_col4_add8_neon\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  #4\n        add             r2,  r2,  #-120\n        bl              idct_col4_neon\n        bl              idct_col4_add8_neon\n\n        idct_end\nendfunc\n\n        .align 6\n\nfunction idct_col4_st16_neon\n        mov             ip,  #16\n\n        vshr.s16        q1,  q1,  #COL_SHIFT-16\n        vshr.s16        q2,  q2,  #COL_SHIFT-16\n        vst1.64         {d2}, [r2,:64], ip\n        vshr.s16        q3,  q3,  #COL_SHIFT-16\n        vst1.64         {d3}, [r2,:64], ip\n        vshr.s16        q4,  q4,  #COL_SHIFT-16\n        vst1.64         {d4}, [r2,:64], ip\n        vst1.64         {d5}, [r2,:64], ip\n        vst1.64         {d6}, [r2,:64], ip\n        vst1.64         {d7}, [r2,:64], ip\n        vst1.64         {d8}, [r2,:64], ip\n        vst1.64         {d9}, [r2,:64], ip\n\n        bx              lr\nendfunc\n\n/* void ff_simple_idct_neon(int16_t *data); */\nfunction ff_simple_idct_neon, export=1\n        idct_start      r0\n\n        mov             r2,  r0\n        bl              idct_row4_neon\n        bl              idct_row4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_st16_neon\n        add             r2,  r2,  #-120\n        bl              idct_col4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_st16_neon\n\n        idct_end\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 321, "line_end": 375}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/simple_idct_neon.S:10", "text": "mov             r2,  r0\n        bl              idct_row4_neon\n        bl              idct_row4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_st16_neon\n        add             r2,  r2,  #-120\n        bl              idct_col4_neon\n        add             r2,  r2,  #-128\n        bl              idct_col4_st16_neon\n\n        idct_end\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/simple_idct_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/simple_idct_neon.S", "line_start": 361, "line_end": 375}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:1", "text": "/*\n * Copyright (c) 2013 RISC OS Open Ltd\n * Author: Ben Avison <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nRESULT  .req    a1\nBUF     .req    a1\nSIZE    .req    a2\nPATTERN .req    a3\nPTR     .req    a4\nDAT0    .req    v1\nDAT1    .req    v2\nDAT2    .req    v3\nDAT3    .req    v4\nTMP0    .req    v5\nTMP1    .req    v6\nTMP2    .req    ip\nTMP3    .req    lr\n\n#define PRELOAD_DISTANCE 4\n\n.macro innerloop4\n        ldr             DAT0, [PTR], #4\n        subs            SIZE, SIZE, #4 @ C flag survives rest of macro\n        sub             TMP0, DAT0, PATTERN, lsr #14\n        bic             TMP0, TMP0, DAT0\n        ands            TMP0, TMP0, PATTERN\n.endm\n\n.macro innerloop16  decrement, do_preload\n        ldmia           PTR!, {DAT0,DAT1,DAT2,DAT3}\n .ifnc \"\\do_preload\",\"\"\n        pld             [PTR, #PRELOAD_DISTANCE*32]\n .endif\n .ifnc \"\\decrement\",\"\"\n        subs            SIZE, SIZE, #\\decrement @ C flag survives rest of macro\n .endif\n        sub             TMP0, DAT0, PATTERN, lsr #14\n        sub             TMP1, DAT1, PATTERN, lsr #14\n        bic             TMP0, TMP0, DAT0\n        bic             TMP1, TMP1, DAT1\n        sub             TMP2, DAT2, PATTERN, lsr #14", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:2", "text": "ldr             DAT0, [PTR], #4\n        subs            SIZE, SIZE, #4 @ C flag survives rest of macro\n        sub             TMP0, DAT0, PATTERN, lsr #14\n        bic             TMP0, TMP0, DAT0\n        ands            TMP0, TMP0, PATTERN\n.endm\n\n.macro innerloop16  decrement, do_preload\n        ldmia           PTR!, {DAT0,DAT1,DAT2,DAT3}\n .ifnc \"\\do_preload\",\"\"\n        pld             [PTR, #PRELOAD_DISTANCE*32]\n .endif\n .ifnc \"\\decrement\",\"\"\n        subs            SIZE, SIZE, #\\decrement @ C flag survives rest of macro\n .endif\n        sub             TMP0, DAT0, PATTERN, lsr #14\n        sub             TMP1, DAT1, PATTERN, lsr #14\n        bic             TMP0, TMP0, DAT0\n        bic             TMP1, TMP1, DAT1\n        sub             TMP2, DAT2, PATTERN, lsr #14\n        sub             TMP3, DAT3, PATTERN, lsr #14\n        ands            TMP0, TMP0, PATTERN\n        bic             TMP2, TMP2, DAT2\n        it              eq\n        andseq          TMP1, TMP1, PATTERN\n        bic             TMP3, TMP3, DAT3\n        itt             eq\n        andseq          TMP2, TMP2, PATTERN\n        andseq          TMP3, TMP3, PATTERN\n.endm\n\n/* int ff_startcode_find_candidate_armv6(const uint8_t *buf, int size) */\nfunction ff_startcode_find_candidate_armv6, export=1\n        push            {v1-v6,lr}\n        mov             PTR, BUF\n        @ Ensure there are at least (PRELOAD_DISTANCE+2) complete cachelines to go\n        @ before using code that does preloads\n        cmp             SIZE, #(PRELOAD_DISTANCE+3)*32 - 1\n        blo             60f\n\n        @ Get to word-alignment, 1 byte at a time\n        tst             PTR, #3\n        beq             2f\n1:      ldrb            DAT0, [PTR], #1\n        sub             SIZE, SIZE, #1\n        teq             DAT0, #0\n        beq             90f\n        tst             PTR, #3\n        bne             1b\n2:      @ Get to 4-word alignment, 1 word at a time\n        ldr             PATTERN, =0x80008000\n        setend          be\n        tst             PTR, #12\n        beq             4f\n3:      innerloop4\n        bne             91f\n        tst             PTR, #12\n        bne             3b\n4:      @ Get to cacheline (8-word) alignment\n        tst             PTR, #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:3", "text": "@ Get to word-alignment, 1 byte at a time\n        tst             PTR, #3\n        beq             2f\n1:      ldrb            DAT0, [PTR], #1\n        sub             SIZE, SIZE, #1\n        teq             DAT0, #0\n        beq             90f\n        tst             PTR, #3\n        bne             1b\n2:      @ Get to 4-word alignment, 1 word at a time\n        ldr             PATTERN, =0x80008000\n        setend          be\n        tst             PTR, #12\n        beq             4f\n3:      innerloop4\n        bne             91f\n        tst             PTR, #12\n        bne             3b\n4:      @ Get to cacheline (8-word) alignment\n        tst             PTR, #16\n        beq             5f\n        innerloop16     16\n        bne             93f\n5:      @ Check complete cachelines, with preloading\n        @ We need to stop when there are still (PRELOAD_DISTANCE+1)\n        @ complete cachelines to go\n        sub             SIZE, SIZE, #(PRELOAD_DISTANCE+2)*32\n6:      innerloop16     , do_preload\n        bne             93f\n        innerloop16     32\n        bne             93f\n        bcs             6b\n        @ Preload trailing part-cacheline, if any\n        tst             SIZE, #31\n        beq             7f\n        pld             [PTR, #(PRELOAD_DISTANCE+1)*32]\n        @ Check remaining data without doing any more preloads. First\n        @ do in chunks of 4 words:\n7:      adds            SIZE, SIZE, #(PRELOAD_DISTANCE+2)*32 - 16\n        bmi             9f\n8:      innerloop16     16\n        bne             93f\n        bcs             8b\n        @ Then in words:\n9:      adds            SIZE, SIZE, #16 - 4\n        bmi             11f\n10:     innerloop4\n        bne             91f\n        bcs             10b\n11:     setend          le\n        @ Check second byte of final halfword\n        ldrb            DAT0, [PTR, #-1]\n        teq             DAT0, #0\n        beq             90f\n        @ Check any remaining bytes\n        tst             SIZE, #3\n        beq             13f\n12:     ldrb            DAT0, [PTR], #1\n        sub             SIZE, SIZE, #1\n        teq             DAT0, #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:4", "text": "8:      innerloop16     16\n        bne             93f\n        bcs             8b\n        @ Then in words:\n9:      adds            SIZE, SIZE, #16 - 4\n        bmi             11f\n10:     innerloop4\n        bne             91f\n        bcs             10b\n11:     setend          le\n        @ Check second byte of final halfword\n        ldrb            DAT0, [PTR, #-1]\n        teq             DAT0, #0\n        beq             90f\n        @ Check any remaining bytes\n        tst             SIZE, #3\n        beq             13f\n12:     ldrb            DAT0, [PTR], #1\n        sub             SIZE, SIZE, #1\n        teq             DAT0, #0\n        beq             90f\n        tst             SIZE, #3\n        bne             12b\n        @ No candidate found\n13:     sub             RESULT, PTR, BUF\n        b               99f\n\n60:     @ Small buffer - simply check by looping over bytes\n        subs            SIZE, SIZE, #1\n        bcc             99f\n61:     ldrb            DAT0, [PTR], #1\n        subs            SIZE, SIZE, #1\n        teq             DAT0, #0\n        beq             90f\n        bcs             61b\n        @ No candidate found\n        sub             RESULT, PTR, BUF\n        b               99f\n\n90:     @ Found a candidate at the preceding byte\n        sub             RESULT, PTR, BUF\n        sub             RESULT, RESULT, #1\n        b               99f\n\n91:     @ Found a candidate somewhere in the preceding 4 bytes\n        sub             RESULT, PTR, BUF\n        sub             RESULT, RESULT, #4\n        sub             TMP0, DAT0, #0x20000\n        bics            TMP0, TMP0, DAT0\n        itt             pl\n        ldrbpl          DAT0, [PTR, #-3]\n        addpl           RESULT, RESULT, #2\n        bpl             92f\n        teq             RESULT, #0\n        beq             98f @ don't look back a byte if found at first byte in buffer\n        ldrb            DAT0, [PTR, #-5]\n92:     teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        b               98f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:5", "text": "sub             RESULT, PTR, BUF\n        sub             RESULT, RESULT, #1\n        b               99f\n\n91:     @ Found a candidate somewhere in the preceding 4 bytes\n        sub             RESULT, PTR, BUF\n        sub             RESULT, RESULT, #4\n        sub             TMP0, DAT0, #0x20000\n        bics            TMP0, TMP0, DAT0\n        itt             pl\n        ldrbpl          DAT0, [PTR, #-3]\n        addpl           RESULT, RESULT, #2\n        bpl             92f\n        teq             RESULT, #0\n        beq             98f @ don't look back a byte if found at first byte in buffer\n        ldrb            DAT0, [PTR, #-5]\n92:     teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        b               98f\n\n93:     @ Found a candidate somewhere in the preceding 16 bytes\n        sub             RESULT, PTR, BUF\n        sub             RESULT, RESULT, #16\n        teq             TMP0, #0\n        beq             95f @ not in first 4 bytes\n        sub             TMP0, DAT0, #0x20000\n        bics            TMP0, TMP0, DAT0\n        itt             pl\n        ldrbpl          DAT0, [PTR, #-15]\n        addpl           RESULT, RESULT, #2\n        bpl             94f\n        teq             RESULT, #0\n        beq             98f @ don't look back a byte if found at first byte in buffer\n        ldrb            DAT0, [PTR, #-17]\n94:     teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        b               98f\n95:     add             RESULT, RESULT, #4\n        teq             TMP1, #0\n        beq             96f @ not in next 4 bytes\n        sub             TMP1, DAT1, #0x20000\n        bics            TMP1, TMP1, DAT1\n        itee            mi\n        ldrbmi          DAT0, [PTR, #-13]\n        ldrbpl          DAT0, [PTR, #-11]\n        addpl           RESULT, RESULT, #2\n        teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        b               98f\n96:     add             RESULT, RESULT, #4\n        teq             TMP2, #0\n        beq             97f @ not in next 4 bytes\n        sub             TMP2, DAT2, #0x20000\n        bics            TMP2, TMP2, DAT2\n        itee            mi\n        ldrbmi          DAT0, [PTR, #-9]\n        ldrbpl          DAT0, [PTR, #-7]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:6", "text": "teq             TMP1, #0\n        beq             96f @ not in next 4 bytes\n        sub             TMP1, DAT1, #0x20000\n        bics            TMP1, TMP1, DAT1\n        itee            mi\n        ldrbmi          DAT0, [PTR, #-13]\n        ldrbpl          DAT0, [PTR, #-11]\n        addpl           RESULT, RESULT, #2\n        teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        b               98f\n96:     add             RESULT, RESULT, #4\n        teq             TMP2, #0\n        beq             97f @ not in next 4 bytes\n        sub             TMP2, DAT2, #0x20000\n        bics            TMP2, TMP2, DAT2\n        itee            mi\n        ldrbmi          DAT0, [PTR, #-9]\n        ldrbpl          DAT0, [PTR, #-7]\n        addpl           RESULT, RESULT, #2\n        teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        b               98f\n97:     add             RESULT, RESULT, #4\n        sub             TMP3, DAT3, #0x20000\n        bics            TMP3, TMP3, DAT3\n        itee            mi\n        ldrbmi          DAT0, [PTR, #-5]\n        ldrbpl          DAT0, [PTR, #-3]\n        addpl           RESULT, RESULT, #2\n        teq             DAT0, #0\n        it              eq\n        subeq           RESULT, RESULT, #1\n        @ drop through to 98f\n98:     setend          le\n99:     pop             {v1-v6,pc}\nendfunc\n\n        .unreq  RESULT\n        .unreq  BUF\n        .unreq  SIZE\n        .unreq  PATTERN\n        .unreq  PTR\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  TMP0\n        .unreq  TMP1\n        .unreq  TMP2\n        .unreq  TMP3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 201, "line_end": 253}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:7", "text": ".unreq  RESULT\n        .unreq  BUF\n        .unreq  SIZE\n        .unreq  PATTERN\n        .unreq  PTR\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  TMP0\n        .unreq  TMP1\n        .unreq  TMP2\n        .unreq  TMP3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/startcode_armv6.S", "line_start": 241, "line_end": 253}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:1", "text": "/*\n * Copyright (c) 2013 RISC OS Open Ltd\n * Author: Ben Avison <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nRESULT  .req    a1\nBUF     .req    a1\nSIZE    .req    a2\nPATTERN .req    a3\nPTR     .req    a4\nDAT0    .req    v1\nDAT1    .req    v2\nDAT2    .req    v3\nDAT3    .req    v4\nTMP0    .req    v5\nTMP1    .req    v6\nTMP2    .req    ip\nTMP3    .req    lr\n\n#define PRELOAD_DISTANCE 4\n\n.macro innerloop4\n        ldr     DAT0, [PTR], #4\n        subs    SIZE, SIZE, #4 @ C flag survives rest of macro\n        sub     TMP0, DAT0, PATTERN, lsr #14\n        bic     TMP0, TMP0, DAT0\n        ands    TMP0, TMP0, PATTERN\n.endm\n\n.macro innerloop16  decrement, do_preload\n        ldmia   PTR!, {DAT0,DAT1,DAT2,DAT3}\n .ifnc \"\\do_preload\",\"\"\n        pld     [PTR, #PRELOAD_DISTANCE*32]\n .endif\n .ifnc \"\\decrement\",\"\"\n        subs    SIZE, SIZE, #\\decrement @ C flag survives rest of macro\n .endif\n        sub     TMP0, DAT0, PATTERN, lsr #14\n        sub     TMP1, DAT1, PATTERN, lsr #14\n        bic     TMP0, TMP0, DAT0\n        bic     TMP1, TMP1, DAT1\n        sub     TMP2, DAT2, PATTERN, lsr #14", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/startcode_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:2", "text": "ldr     DAT0, [PTR], #4\n        subs    SIZE, SIZE, #4 @ C flag survives rest of macro\n        sub     TMP0, DAT0, PATTERN, lsr #14\n        bic     TMP0, TMP0, DAT0\n        ands    TMP0, TMP0, PATTERN\n.endm\n\n.macro innerloop16  decrement, do_preload\n        ldmia   PTR!, {DAT0,DAT1,DAT2,DAT3}\n .ifnc \"\\do_preload\",\"\"\n        pld     [PTR, #PRELOAD_DISTANCE*32]\n .endif\n .ifnc \"\\decrement\",\"\"\n        subs    SIZE, SIZE, #\\decrement @ C flag survives rest of macro\n .endif\n        sub     TMP0, DAT0, PATTERN, lsr #14\n        sub     TMP1, DAT1, PATTERN, lsr #14\n        bic     TMP0, TMP0, DAT0\n        bic     TMP1, TMP1, DAT1\n        sub     TMP2, DAT2, PATTERN, lsr #14\n        sub     TMP3, DAT3, PATTERN, lsr #14\n        ands    TMP0, TMP0, PATTERN\n        bic     TMP2, TMP2, DAT2\n        it      eq\n        andseq  TMP1, TMP1, PATTERN\n        bic     TMP3, TMP3, DAT3\n        itt     eq\n        andseq  TMP2, TMP2, PATTERN\n        andseq  TMP3, TMP3, PATTERN\n.endm\n\n/* int ff_startcode_find_candidate_armv6(const uint8_t *buf, int size) */\nfunction ff_startcode_find_candidate_armv6, export=1\n        push    {v1-v6,lr}\n        mov     PTR, BUF\n        @ Ensure there are at least (PRELOAD_DISTANCE+2) complete cachelines to go\n        @ before using code that does preloads\n        cmp     SIZE, #(PRELOAD_DISTANCE+3)*32 - 1\n        blo     60f\n\n        @ Get to word-alignment, 1 byte at a time\n        tst     PTR, #3\n        beq     2f\n1:      ldrb    DAT0, [PTR], #1\n        sub     SIZE, SIZE, #1\n        teq     DAT0, #0\n        beq     90f\n        tst     PTR, #3\n        bne     1b\n2:      @ Get to 4-word alignment, 1 word at a time\n        ldr     PATTERN, =0x80008000\n        setend  be\n        tst     PTR, #12\n        beq     4f\n3:      innerloop4\n        bne     91f\n        tst     PTR, #12\n        bne     3b\n4:      @ Get to cacheline (8-word) alignment\n        tst     PTR, #16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/startcode_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:3", "text": "@ Get to word-alignment, 1 byte at a time\n        tst     PTR, #3\n        beq     2f\n1:      ldrb    DAT0, [PTR], #1\n        sub     SIZE, SIZE, #1\n        teq     DAT0, #0\n        beq     90f\n        tst     PTR, #3\n        bne     1b\n2:      @ Get to 4-word alignment, 1 word at a time\n        ldr     PATTERN, =0x80008000\n        setend  be\n        tst     PTR, #12\n        beq     4f\n3:      innerloop4\n        bne     91f\n        tst     PTR, #12\n        bne     3b\n4:      @ Get to cacheline (8-word) alignment\n        tst     PTR, #16\n        beq     5f\n        innerloop16  16\n        bne     93f\n5:      @ Check complete cachelines, with preloading\n        @ We need to stop when there are still (PRELOAD_DISTANCE+1)\n        @ complete cachelines to go\n        sub     SIZE, SIZE, #(PRELOAD_DISTANCE+2)*32\n6:      innerloop16  , do_preload\n        bne     93f\n        innerloop16  32\n        bne     93f\n        bcs     6b\n        @ Preload trailing part-cacheline, if any\n        tst     SIZE, #31\n        beq     7f\n        pld     [PTR, #(PRELOAD_DISTANCE+1)*32]\n        @ Check remaining data without doing any more preloads. First\n        @ do in chunks of 4 words:\n7:      adds    SIZE, SIZE, #(PRELOAD_DISTANCE+2)*32 - 16\n        bmi     9f\n8:      innerloop16  16\n        bne     93f\n        bcs     8b\n        @ Then in words:\n9:      adds    SIZE, SIZE, #16 - 4\n        bmi     11f\n10:     innerloop4\n        bne     91f\n        bcs     10b\n11:     setend  le\n        @ Check second byte of final halfword\n        ldrb    DAT0, [PTR, #-1]\n        teq     DAT0, #0\n        beq     90f\n        @ Check any remaining bytes\n        tst     SIZE, #3\n        beq     13f\n12:     ldrb    DAT0, [PTR], #1\n        sub     SIZE, SIZE, #1\n        teq     DAT0, #0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/startcode_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:4", "text": "8:      innerloop16  16\n        bne     93f\n        bcs     8b\n        @ Then in words:\n9:      adds    SIZE, SIZE, #16 - 4\n        bmi     11f\n10:     innerloop4\n        bne     91f\n        bcs     10b\n11:     setend  le\n        @ Check second byte of final halfword\n        ldrb    DAT0, [PTR, #-1]\n        teq     DAT0, #0\n        beq     90f\n        @ Check any remaining bytes\n        tst     SIZE, #3\n        beq     13f\n12:     ldrb    DAT0, [PTR], #1\n        sub     SIZE, SIZE, #1\n        teq     DAT0, #0\n        beq     90f\n        tst     SIZE, #3\n        bne     12b\n        @ No candidate found\n13:     sub     RESULT, PTR, BUF\n        b       99f\n\n60:     @ Small buffer - simply check by looping over bytes\n        subs    SIZE, SIZE, #1\n        bcc     99f\n61:     ldrb    DAT0, [PTR], #1\n        subs    SIZE, SIZE, #1\n        teq     DAT0, #0\n        beq     90f\n        bcs     61b\n        @ No candidate found\n        sub     RESULT, PTR, BUF\n        b       99f\n\n90:     @ Found a candidate at the preceding byte\n        sub     RESULT, PTR, BUF\n        sub     RESULT, RESULT, #1\n        b       99f\n\n91:     @ Found a candidate somewhere in the preceding 4 bytes\n        sub     RESULT, PTR, BUF\n        sub     RESULT, RESULT, #4\n        sub     TMP0, DAT0, #0x20000\n        bics    TMP0, TMP0, DAT0\n        itt     pl\n        ldrbpl  DAT0, [PTR, #-3]\n        addpl   RESULT, RESULT, #2\n        bpl     92f\n        teq     RESULT, #0\n        beq     98f @ don't look back a byte if found at first byte in buffer\n        ldrb    DAT0, [PTR, #-5]\n92:     teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        b       98f", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/startcode_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:5", "text": "sub     RESULT, PTR, BUF\n        sub     RESULT, RESULT, #1\n        b       99f\n\n91:     @ Found a candidate somewhere in the preceding 4 bytes\n        sub     RESULT, PTR, BUF\n        sub     RESULT, RESULT, #4\n        sub     TMP0, DAT0, #0x20000\n        bics    TMP0, TMP0, DAT0\n        itt     pl\n        ldrbpl  DAT0, [PTR, #-3]\n        addpl   RESULT, RESULT, #2\n        bpl     92f\n        teq     RESULT, #0\n        beq     98f @ don't look back a byte if found at first byte in buffer\n        ldrb    DAT0, [PTR, #-5]\n92:     teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        b       98f\n\n93:     @ Found a candidate somewhere in the preceding 16 bytes\n        sub     RESULT, PTR, BUF\n        sub     RESULT, RESULT, #16\n        teq     TMP0, #0\n        beq     95f @ not in first 4 bytes\n        sub     TMP0, DAT0, #0x20000\n        bics    TMP0, TMP0, DAT0\n        itt     pl\n        ldrbpl  DAT0, [PTR, #-15]\n        addpl   RESULT, RESULT, #2\n        bpl     94f\n        teq     RESULT, #0\n        beq     98f @ don't look back a byte if found at first byte in buffer\n        ldrb    DAT0, [PTR, #-17]\n94:     teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        b       98f\n95:     add     RESULT, RESULT, #4\n        teq     TMP1, #0\n        beq     96f @ not in next 4 bytes\n        sub     TMP1, DAT1, #0x20000\n        bics    TMP1, TMP1, DAT1\n        itee    mi\n        ldrbmi  DAT0, [PTR, #-13]\n        ldrbpl  DAT0, [PTR, #-11]\n        addpl   RESULT, RESULT, #2\n        teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        b       98f\n96:     add     RESULT, RESULT, #4\n        teq     TMP2, #0\n        beq     97f @ not in next 4 bytes\n        sub     TMP2, DAT2, #0x20000\n        bics    TMP2, TMP2, DAT2\n        itee    mi\n        ldrbmi  DAT0, [PTR, #-9]\n        ldrbpl  DAT0, [PTR, #-7]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/startcode_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/startcode_armv6.S:6", "text": "teq     TMP1, #0\n        beq     96f @ not in next 4 bytes\n        sub     TMP1, DAT1, #0x20000\n        bics    TMP1, TMP1, DAT1\n        itee    mi\n        ldrbmi  DAT0, [PTR, #-13]\n        ldrbpl  DAT0, [PTR, #-11]\n        addpl   RESULT, RESULT, #2\n        teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        b       98f\n96:     add     RESULT, RESULT, #4\n        teq     TMP2, #0\n        beq     97f @ not in next 4 bytes\n        sub     TMP2, DAT2, #0x20000\n        bics    TMP2, TMP2, DAT2\n        itee    mi\n        ldrbmi  DAT0, [PTR, #-9]\n        ldrbpl  DAT0, [PTR, #-7]\n        addpl   RESULT, RESULT, #2\n        teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        b       98f\n97:     add     RESULT, RESULT, #4\n        sub     TMP3, DAT3, #0x20000\n        bics    TMP3, TMP3, DAT3\n        itee    mi\n        ldrbmi  DAT0, [PTR, #-5]\n        ldrbpl  DAT0, [PTR, #-3]\n        addpl   RESULT, RESULT, #2\n        teq     DAT0, #0\n        it      eq\n        subeq   RESULT, RESULT, #1\n        @ drop through to 98f\n98:     setend  le\n99:     pop     {v1-v6,pc}\nendfunc\n\n        .unreq  RESULT\n        .unreq  BUF\n        .unreq  SIZE\n        .unreq  PATTERN\n        .unreq  PTR\n        .unreq  DAT0\n        .unreq  DAT1\n        .unreq  DAT2\n        .unreq  DAT3\n        .unreq  TMP0\n        .unreq  TMP1\n        .unreq  TMP2\n        .unreq  TMP3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/startcode_armv6.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/startcode_armv6.S", "line_start": 201, "line_end": 253}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_neon.S:1", "text": "/*\n * Copyright (c) 2010 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_synth_filter_float_neon, export=1\n        push            {r3-r11,lr}\n\n        ldr             r4,  [r2]               @ synth_buf_offset\n        add             r1,  r1,  r4,  lsl #2   @ synth_buf\n        sub             r12, r4,  #32\n        bfc             r12, #9,  #23\n        bic             r4,  r4,  #63\n        str             r12, [r2]\n\n        ldr             r2,  [sp, #12*4]        @ in\nVFP     ldr             r12, [sp, #13*4]        @ imdct_fn\nNOVFP   ldr             r12, [sp, #14*4]        @ imdct_fn\n        mov             r3,  #4                 @ sizeof(float)\n        mov             r9,  r1                 @ synth_buf\n\nVFP     vpush           {d0}\n        blx             r12\nVFP     vpop            {d0}\n        pop             {r3}\n\n        ldr             r5,  [sp, #9*4]         @ window\n        ldr             r2,  [sp, #10*4]        @ out\nNOVFP   vldr            s0,  [sp, #12*4]        @ scale\n        add             r8,  r9,  #12*4\n\n        mov             lr,  #64*4\n        mov             r1,  #4\n1:\n        add             r10, r9,  #16*4         @ synth_buf\n        add             r11, r8,  #16*4\n        add             r0,  r5,  #16*4         @ window\n        add             r6,  r5,  #32*4\n        add             r7,  r5,  #48*4\n\n        vld1.32         {q10},    [r3,:128]     @ a\n        add             r3,  r3,  #16*4\n        vld1.32         {q1},     [r3,:128]     @ b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_neon.S:2", "text": "VFP     vpop            {d0}\n        pop             {r3}\n\n        ldr             r5,  [sp, #9*4]         @ window\n        ldr             r2,  [sp, #10*4]        @ out\nNOVFP   vldr            s0,  [sp, #12*4]        @ scale\n        add             r8,  r9,  #12*4\n\n        mov             lr,  #64*4\n        mov             r1,  #4\n1:\n        add             r10, r9,  #16*4         @ synth_buf\n        add             r11, r8,  #16*4\n        add             r0,  r5,  #16*4         @ window\n        add             r6,  r5,  #32*4\n        add             r7,  r5,  #48*4\n\n        vld1.32         {q10},    [r3,:128]     @ a\n        add             r3,  r3,  #16*4\n        vld1.32         {q1},     [r3,:128]     @ b\n        vmov.f32        q2,  #0.0               @ c\n        vmov.f32        q3,  #0.0               @ d\n\n        mov             r12, #512\n2:\n        vld1.32         {q9},     [r8, :128], lr\n        vrev64.32       q9,  q9\n        vld1.32         {q8},     [r5, :128], lr\n        vmls.f32        d20, d16, d19\n        vld1.32         {q11},    [r0, :128], lr\n        vmls.f32        d21, d17, d18\n        vld1.32         {q12},    [r9, :128], lr\n        vmla.f32        d2,  d22, d24\n        vld1.32         {q8},     [r6, :128], lr\n        vmla.f32        d3,  d23, d25\n        vld1.32         {q9},     [r10,:128], lr\n        vmla.f32        d4,  d16, d18\n        vld1.32         {q12},    [r11,:128], lr\n        vmla.f32        d5,  d17, d19\n        vrev64.32       q12, q12\n        vld1.32         {q11},    [r7, :128], lr\n        vmla.f32        d6,  d22, d25\n        vmla.f32        d7,  d23, d24\n        subs            r12, r12, #64\n        beq             3f\n        cmp             r12, r4\n        bne             2b\n        sub             r8,  r8,  #512*4\n        sub             r9,  r9,  #512*4\n        sub             r10, r10, #512*4\n        sub             r11, r11, #512*4\n        b               2b\n3:\n        vmul.f32        q8,  q10, d0[0]\n        vmul.f32        q9,  q1,  d0[0]\n        vst1.32         {q3},     [r3,:128]\n        sub             r3,  r3,  #16*4\n        vst1.32         {q2},     [r3,:128]\n        vst1.32         {q8},     [r2,:128]\n        add             r2,  r2,  #16*4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_neon.S:3", "text": "vld1.32         {q11},    [r7, :128], lr\n        vmla.f32        d6,  d22, d25\n        vmla.f32        d7,  d23, d24\n        subs            r12, r12, #64\n        beq             3f\n        cmp             r12, r4\n        bne             2b\n        sub             r8,  r8,  #512*4\n        sub             r9,  r9,  #512*4\n        sub             r10, r10, #512*4\n        sub             r11, r11, #512*4\n        b               2b\n3:\n        vmul.f32        q8,  q10, d0[0]\n        vmul.f32        q9,  q1,  d0[0]\n        vst1.32         {q3},     [r3,:128]\n        sub             r3,  r3,  #16*4\n        vst1.32         {q2},     [r3,:128]\n        vst1.32         {q8},     [r2,:128]\n        add             r2,  r2,  #16*4\n        vst1.32         {q9},     [r2,:128]\n\n        subs            r1,  r1,  #1\n        it              eq\n        popeq           {r4-r11,pc}\n\n        cmp             r4,  #0\n        itt             eq\n        subeq           r8,  r8,  #512*4\n        subeq           r9,  r9,  #512*4\n        sub             r5,  r5,  #512*4\n        sub             r2,  r2,  #12*4         @ out\n        add             r3,  r3,  #4*4          @ synth_buf2\n        add             r5,  r5,  #4*4          @ window\n        add             r9,  r9,  #4*4          @ synth_buf\n        sub             r8,  r8,  #4*4          @ synth_buf\n        b               1b\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_neon.S", "line_start": 81, "line_end": 118}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:1", "text": "/*\n * Copyright (c) 2013 RISC OS Open Ltd\n * Author: Ben Avison <bavison@riscosopen.org>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nIMDCT         .req    r0\nORIG_P_SB     .req    r1\nP_SB_OFF      .req    r2\nI             .req    r0\nP_SB2_UP      .req    r1\nOLDFPSCR      .req    r2\nP_SB2_DN      .req    r3\nP_WIN_DN      .req    r4\nP_OUT_DN      .req    r5\nP_SB          .req    r6\nJ_WRAP        .req    r7\nP_WIN_UP      .req    r12\nP_OUT_UP      .req    r14\n\nSCALE         .req    s0\nSBUF_DAT_REV0 .req    s4\nSBUF_DAT_REV1 .req    s5\nSBUF_DAT_REV2 .req    s6\nSBUF_DAT_REV3 .req    s7\nVA0           .req    s8\nVA3           .req    s11\nVB0           .req    s12\nVB3           .req    s15\nVC0           .req    s8\nVC3           .req    s11\nVD0           .req    s12\nVD3           .req    s15\nSBUF_DAT0     .req    s16\nSBUF_DAT1     .req    s17\nSBUF_DAT2     .req    s18\nSBUF_DAT3     .req    s19\nSBUF_DAT_ALT0 .req    s20\nSBUF_DAT_ALT1 .req    s21\nSBUF_DAT_ALT2 .req    s22\nSBUF_DAT_ALT3 .req    s23\nWIN_DN_DAT0   .req    s24\nWIN_UP_DAT0   .req    s28", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_vfp.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:2", "text": "SBUF_DAT_REV2 .req    s6\nSBUF_DAT_REV3 .req    s7\nVA0           .req    s8\nVA3           .req    s11\nVB0           .req    s12\nVB3           .req    s15\nVC0           .req    s8\nVC3           .req    s11\nVD0           .req    s12\nVD3           .req    s15\nSBUF_DAT0     .req    s16\nSBUF_DAT1     .req    s17\nSBUF_DAT2     .req    s18\nSBUF_DAT3     .req    s19\nSBUF_DAT_ALT0 .req    s20\nSBUF_DAT_ALT1 .req    s21\nSBUF_DAT_ALT2 .req    s22\nSBUF_DAT_ALT3 .req    s23\nWIN_DN_DAT0   .req    s24\nWIN_UP_DAT0   .req    s28\n\n\n.macro inner_loop  half, tail, head\n .if (OFFSET & (64*4)) == 0                @ even numbered call\n        SBUF_DAT_THIS0 .req SBUF_DAT0\n        SBUF_DAT_THIS1 .req SBUF_DAT1\n        SBUF_DAT_THIS2 .req SBUF_DAT2\n        SBUF_DAT_THIS3 .req SBUF_DAT3\n  .ifnc \"\\head\",\"\"\n        vldr            d8, [P_SB, #OFFSET]        @ d8 = SBUF_DAT\n        vldr            d9, [P_SB, #OFFSET+8]\n  .endif\n .else\n        SBUF_DAT_THIS0 .req SBUF_DAT_ALT0\n        SBUF_DAT_THIS1 .req SBUF_DAT_ALT1\n        SBUF_DAT_THIS2 .req SBUF_DAT_ALT2\n        SBUF_DAT_THIS3 .req SBUF_DAT_ALT3\n  .ifnc \"\\head\",\"\"\n        vldr            d10, [P_SB, #OFFSET]       @ d10 = SBUF_DAT_ALT\n        vldr            d11, [P_SB, #OFFSET+8]\n  .endif\n .endif\n .ifnc \"\\tail\",\"\"\n  .ifc \"\\half\",\"ab\"\n        vmls.f          VA0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .else\n        vmla.f          VD0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .endif\n .endif\n .ifnc \"\\head\",\"\"\n        vldr            d14, [P_WIN_UP, #OFFSET]   @ d14 = WIN_UP_DAT\n        vldr            d15, [P_WIN_UP, #OFFSET+8]\n        vldr            d12, [P_WIN_DN, #OFFSET]   @ d12 = WIN_DN_DAT\n        vldr            d13, [P_WIN_DN, #OFFSET+8]\n        vmov            SBUF_DAT_REV3, SBUF_DAT_THIS0\n        vmov            SBUF_DAT_REV2, SBUF_DAT_THIS1\n        vmov            SBUF_DAT_REV1, SBUF_DAT_THIS2\n        vmov            SBUF_DAT_REV0, SBUF_DAT_THIS3\n  .ifc \"\\half\",\"ab\"\n        vmla.f          VB0, SBUF_DAT_THIS0, WIN_UP_DAT0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_vfp.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:3", "text": ".endif\n .endif\n .ifnc \"\\tail\",\"\"\n  .ifc \"\\half\",\"ab\"\n        vmls.f          VA0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .else\n        vmla.f          VD0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .endif\n .endif\n .ifnc \"\\head\",\"\"\n        vldr            d14, [P_WIN_UP, #OFFSET]   @ d14 = WIN_UP_DAT\n        vldr            d15, [P_WIN_UP, #OFFSET+8]\n        vldr            d12, [P_WIN_DN, #OFFSET]   @ d12 = WIN_DN_DAT\n        vldr            d13, [P_WIN_DN, #OFFSET+8]\n        vmov            SBUF_DAT_REV3, SBUF_DAT_THIS0\n        vmov            SBUF_DAT_REV2, SBUF_DAT_THIS1\n        vmov            SBUF_DAT_REV1, SBUF_DAT_THIS2\n        vmov            SBUF_DAT_REV0, SBUF_DAT_THIS3\n  .ifc \"\\half\",\"ab\"\n        vmla.f          VB0, SBUF_DAT_THIS0, WIN_UP_DAT0\n  .else\n        vmla.f          VC0, SBUF_DAT_THIS0, WIN_UP_DAT0\n  .endif\n        teq             J_WRAP, #J\n        bne             2f             @ strongly predictable, so better than cond exec in this case\n        sub             P_SB, P_SB, #512*4\n2:\n  .set J, J - 64\n  .set OFFSET, OFFSET + 64*4\n .endif\n        .unreq  SBUF_DAT_THIS0\n        .unreq  SBUF_DAT_THIS1\n        .unreq  SBUF_DAT_THIS2\n        .unreq  SBUF_DAT_THIS3\n.endm\n\n\n/* void ff_synth_filter_float_vfp(FFTContext *imdct,\n *                                float *synth_buf_ptr, int *synth_buf_offset,\n *                                float synth_buf2[32], const float window[512],\n *                                float out[32], const float in[32], float scale)\n */\nfunction ff_synth_filter_float_vfp, export=1\n        push            {r3-r7,lr}\n        vpush           {s16-s31}\n        ldr             lr, [P_SB_OFF]\n        add             a2, ORIG_P_SB, lr, lsl #2 @ calculate synth_buf to pass to imdct_half\n        mov             P_SB, a2                  @ and keep a copy for ourselves\n        bic             J_WRAP, lr, #63           @ mangled to make testing for wrap easier in inner loop\n        sub             lr, lr, #32\n        and             lr, lr, #512-32\n        str             lr, [P_SB_OFF]            @ rotate offset, modulo buffer size, ready for next call\n        ldr             a3, [sp, #(16+6+2)*4]     @ fetch in from stack, to pass to imdct_half\n        mov             a4, #4                    @ sizeof(float)\nVFP     ldr             r12, [sp, #(16+6+3)*4]    @ fetch imdct_fn from stack\nNOVFP   ldr             r12, [sp, #(16+6+4)*4]    @ fetch imdct_fn from stack\nVFP     vmov            s16, SCALE                @ imdct_half is free to corrupt s0, but it contains one of our arguments in hardfp case\n        blx             r12\nVFP     vmov            SCALE, s16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_vfp.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:4", "text": "*                                float out[32], const float in[32], float scale)\n */\nfunction ff_synth_filter_float_vfp, export=1\n        push            {r3-r7,lr}\n        vpush           {s16-s31}\n        ldr             lr, [P_SB_OFF]\n        add             a2, ORIG_P_SB, lr, lsl #2 @ calculate synth_buf to pass to imdct_half\n        mov             P_SB, a2                  @ and keep a copy for ourselves\n        bic             J_WRAP, lr, #63           @ mangled to make testing for wrap easier in inner loop\n        sub             lr, lr, #32\n        and             lr, lr, #512-32\n        str             lr, [P_SB_OFF]            @ rotate offset, modulo buffer size, ready for next call\n        ldr             a3, [sp, #(16+6+2)*4]     @ fetch in from stack, to pass to imdct_half\n        mov             a4, #4                    @ sizeof(float)\nVFP     ldr             r12, [sp, #(16+6+3)*4]    @ fetch imdct_fn from stack\nNOVFP   ldr             r12, [sp, #(16+6+4)*4]    @ fetch imdct_fn from stack\nVFP     vmov            s16, SCALE                @ imdct_half is free to corrupt s0, but it contains one of our arguments in hardfp case\n        blx             r12\nVFP     vmov            SCALE, s16\n\n        fmrx            OLDFPSCR, FPSCR\n        ldr             lr, =0x03030000           @ RunFast mode, short vectors of length 4, stride 1\n        fmxr            FPSCR, lr\n        ldr             P_SB2_DN, [sp, #16*4]\n        ldr             P_WIN_DN, [sp, #(16+6+0)*4]\n        ldr             P_OUT_DN, [sp, #(16+6+1)*4]\nNOVFP   vldr            SCALE, [sp, #(16+6+3)*4]\n\n#define IMM_OFF_SKEW 956                   /* also valid immediate constant when you add 16*4 */\n        add             P_SB, P_SB, #IMM_OFF_SKEW  @ so we can use -ve offsets to use full immediate offset range\n        add             P_SB2_UP, P_SB2_DN, #16*4\n        add             P_WIN_UP, P_WIN_DN, #16*4+IMM_OFF_SKEW\n        add             P_OUT_UP, P_OUT_DN, #16*4\n        add             P_SB2_DN, P_SB2_DN, #16*4\n        add             P_WIN_DN, P_WIN_DN, #12*4+IMM_OFF_SKEW\n        add             P_OUT_DN, P_OUT_DN, #16*4\n        mov             I, #4\n1:\n        vldmia          P_SB2_UP!, {VB0-VB3}\n        vldmdb          P_SB2_DN!, {VA0-VA3}\n .set J, 512 - 64\n .set OFFSET, -IMM_OFF_SKEW\n        inner_loop      ab,, head\n .rept 7\n        inner_loop      ab, tail, head\n .endr\n        inner_loop      ab, tail\n        add             P_WIN_UP, P_WIN_UP, #4*4\n        sub             P_WIN_DN, P_WIN_DN, #4*4\n        vmul.f          VB0, VB0, SCALE      @ SCALE treated as scalar\n        add             P_SB, P_SB, #(512+4)*4\n        subs            I, I, #1\n        vmul.f          VA0, VA0, SCALE\n        vstmia          P_OUT_UP!, {VB0-VB3}\n        vstmdb          P_OUT_DN!, {VA0-VA3}\n        bne             1b\n\n        add             P_SB2_DN, P_SB2_DN, #(16+28-12)*4\n        sub             P_SB2_UP, P_SB2_UP, #(16+16)*4\n        add             P_WIN_DN, P_WIN_DN, #(32+16+28-12)*4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_vfp.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:5", "text": ".set J, 512 - 64\n .set OFFSET, -IMM_OFF_SKEW\n        inner_loop      ab,, head\n .rept 7\n        inner_loop      ab, tail, head\n .endr\n        inner_loop      ab, tail\n        add             P_WIN_UP, P_WIN_UP, #4*4\n        sub             P_WIN_DN, P_WIN_DN, #4*4\n        vmul.f          VB0, VB0, SCALE      @ SCALE treated as scalar\n        add             P_SB, P_SB, #(512+4)*4\n        subs            I, I, #1\n        vmul.f          VA0, VA0, SCALE\n        vstmia          P_OUT_UP!, {VB0-VB3}\n        vstmdb          P_OUT_DN!, {VA0-VA3}\n        bne             1b\n\n        add             P_SB2_DN, P_SB2_DN, #(16+28-12)*4\n        sub             P_SB2_UP, P_SB2_UP, #(16+16)*4\n        add             P_WIN_DN, P_WIN_DN, #(32+16+28-12)*4\n        mov             I, #4\n1:\n        vldr.d          d4, zero             @ d4 = VC0\n        vldr.d          d5, zero\n        vldr.d          d6, zero             @ d6 = VD0\n        vldr.d          d7, zero\n .set J, 512 - 64\n .set OFFSET, -IMM_OFF_SKEW\n        inner_loop      cd,, head\n .rept 7\n        inner_loop      cd, tail, head\n .endr\n        inner_loop      cd, tail\n        add             P_WIN_UP, P_WIN_UP, #4*4\n        sub             P_WIN_DN, P_WIN_DN, #4*4\n        add             P_SB, P_SB, #(512+4)*4\n        subs            I, I, #1\n        vstmia          P_SB2_UP!, {VC0-VC3}\n        vstmdb          P_SB2_DN!, {VD0-VD3}\n        bne             1b\n\n        fmxr            FPSCR, OLDFPSCR\n        vpop            {s16-s31}\n        pop             {r3-r7,pc}\nendfunc\n\n        .unreq  IMDCT\n        .unreq  ORIG_P_SB\n        .unreq  P_SB_OFF\n        .unreq  I\n        .unreq  P_SB2_UP\n        .unreq  OLDFPSCR\n        .unreq  P_SB2_DN\n        .unreq  P_WIN_DN\n        .unreq  P_OUT_DN\n        .unreq  P_SB\n        .unreq  J_WRAP\n        .unreq  P_WIN_UP\n        .unreq  P_OUT_UP", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_vfp.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:6", "text": "fmxr            FPSCR, OLDFPSCR\n        vpop            {s16-s31}\n        pop             {r3-r7,pc}\nendfunc\n\n        .unreq  IMDCT\n        .unreq  ORIG_P_SB\n        .unreq  P_SB_OFF\n        .unreq  I\n        .unreq  P_SB2_UP\n        .unreq  OLDFPSCR\n        .unreq  P_SB2_DN\n        .unreq  P_WIN_DN\n        .unreq  P_OUT_DN\n        .unreq  P_SB\n        .unreq  J_WRAP\n        .unreq  P_WIN_UP\n        .unreq  P_OUT_UP\n\n        .unreq  SCALE\n        .unreq  SBUF_DAT_REV0\n        .unreq  SBUF_DAT_REV1\n        .unreq  SBUF_DAT_REV2\n        .unreq  SBUF_DAT_REV3\n        .unreq  VA0\n        .unreq  VA3\n        .unreq  VB0\n        .unreq  VB3\n        .unreq  VC0\n        .unreq  VC3\n        .unreq  VD0\n        .unreq  VD3\n        .unreq  SBUF_DAT0\n        .unreq  SBUF_DAT1\n        .unreq  SBUF_DAT2\n        .unreq  SBUF_DAT3\n        .unreq  SBUF_DAT_ALT0\n        .unreq  SBUF_DAT_ALT1\n        .unreq  SBUF_DAT_ALT2\n        .unreq  SBUF_DAT_ALT3\n        .unreq  WIN_DN_DAT0\n        .unreq  WIN_UP_DAT0\n\n        .align  3\nzero:   .word   0, 0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/synth_filter_vfp.S", "line_start": 201, "line_end": 246}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:2", "text": "SBUF_DAT_REV2 .req    s6\nSBUF_DAT_REV3 .req    s7\nVA0           .req    s8\nVA3           .req    s11\nVB0           .req    s12\nVB3           .req    s15\nVC0           .req    s8\nVC3           .req    s11\nVD0           .req    s12\nVD3           .req    s15\nSBUF_DAT0     .req    s16\nSBUF_DAT1     .req    s17\nSBUF_DAT2     .req    s18\nSBUF_DAT3     .req    s19\nSBUF_DAT_ALT0 .req    s20\nSBUF_DAT_ALT1 .req    s21\nSBUF_DAT_ALT2 .req    s22\nSBUF_DAT_ALT3 .req    s23\nWIN_DN_DAT0   .req    s24\nWIN_UP_DAT0   .req    s28\n\n\n.macro inner_loop  half, tail, head\n .if (OFFSET & (64*4)) == 0                @ even numbered call\n        SBUF_DAT_THIS0 .req SBUF_DAT0\n        SBUF_DAT_THIS1 .req SBUF_DAT1\n        SBUF_DAT_THIS2 .req SBUF_DAT2\n        SBUF_DAT_THIS3 .req SBUF_DAT3\n  .ifnc \"\\head\",\"\"\n        vldr    d8, [P_SB, #OFFSET]        @ d8 = SBUF_DAT\n        vldr    d9, [P_SB, #OFFSET+8]\n  .endif\n .else\n        SBUF_DAT_THIS0 .req SBUF_DAT_ALT0\n        SBUF_DAT_THIS1 .req SBUF_DAT_ALT1\n        SBUF_DAT_THIS2 .req SBUF_DAT_ALT2\n        SBUF_DAT_THIS3 .req SBUF_DAT_ALT3\n  .ifnc \"\\head\",\"\"\n        vldr    d10, [P_SB, #OFFSET]       @ d10 = SBUF_DAT_ALT\n        vldr    d11, [P_SB, #OFFSET+8]\n  .endif\n .endif\n .ifnc \"\\tail\",\"\"\n  .ifc \"\\half\",\"ab\"\n        vmls.f  VA0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .else\n        vmla.f  VD0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .endif\n .endif\n .ifnc \"\\head\",\"\"\n        vldr    d14, [P_WIN_UP, #OFFSET]   @ d14 = WIN_UP_DAT\n        vldr    d15, [P_WIN_UP, #OFFSET+8]\n        vldr    d12, [P_WIN_DN, #OFFSET]   @ d12 = WIN_DN_DAT\n        vldr    d13, [P_WIN_DN, #OFFSET+8]\n        vmov    SBUF_DAT_REV3, SBUF_DAT_THIS0\n        vmov    SBUF_DAT_REV2, SBUF_DAT_THIS1\n        vmov    SBUF_DAT_REV1, SBUF_DAT_THIS2\n        vmov    SBUF_DAT_REV0, SBUF_DAT_THIS3\n  .ifc \"\\half\",\"ab\"\n        vmla.f  VB0, SBUF_DAT_THIS0, WIN_UP_DAT0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/synth_filter_vfp.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:3", "text": ".endif\n .endif\n .ifnc \"\\tail\",\"\"\n  .ifc \"\\half\",\"ab\"\n        vmls.f  VA0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .else\n        vmla.f  VD0, SBUF_DAT_REV0, WIN_DN_DAT0  @ all operands treated as vectors\n  .endif\n .endif\n .ifnc \"\\head\",\"\"\n        vldr    d14, [P_WIN_UP, #OFFSET]   @ d14 = WIN_UP_DAT\n        vldr    d15, [P_WIN_UP, #OFFSET+8]\n        vldr    d12, [P_WIN_DN, #OFFSET]   @ d12 = WIN_DN_DAT\n        vldr    d13, [P_WIN_DN, #OFFSET+8]\n        vmov    SBUF_DAT_REV3, SBUF_DAT_THIS0\n        vmov    SBUF_DAT_REV2, SBUF_DAT_THIS1\n        vmov    SBUF_DAT_REV1, SBUF_DAT_THIS2\n        vmov    SBUF_DAT_REV0, SBUF_DAT_THIS3\n  .ifc \"\\half\",\"ab\"\n        vmla.f  VB0, SBUF_DAT_THIS0, WIN_UP_DAT0\n  .else\n        vmla.f  VC0, SBUF_DAT_THIS0, WIN_UP_DAT0\n  .endif\n        teq     J_WRAP, #J\n        bne     2f             @ strongly predictable, so better than cond exec in this case\n        sub     P_SB, P_SB, #512*4\n2:\n  .set J, J - 64\n  .set OFFSET, OFFSET + 64*4\n .endif\n        .unreq  SBUF_DAT_THIS0\n        .unreq  SBUF_DAT_THIS1\n        .unreq  SBUF_DAT_THIS2\n        .unreq  SBUF_DAT_THIS3\n.endm\n\n\n/* void ff_synth_filter_float_vfp(FFTContext *imdct,\n *                                float *synth_buf_ptr, int *synth_buf_offset,\n *                                float synth_buf2[32], const float window[512],\n *                                float out[32], const float in[32], float scale)\n */\nfunction ff_synth_filter_float_vfp, export=1\n        push    {r3-r7,lr}\n        vpush   {s16-s31}\n        ldr     lr, [P_SB_OFF]\n        add     a2, ORIG_P_SB, lr, lsl #2 @ calculate synth_buf to pass to imdct_half\n        mov     P_SB, a2                  @ and keep a copy for ourselves\n        bic     J_WRAP, lr, #63           @ mangled to make testing for wrap easier in inner loop\n        sub     lr, lr, #32\n        and     lr, lr, #512-32\n        str     lr, [P_SB_OFF]            @ rotate offset, modulo buffer size, ready for next call\n        ldr     a3, [sp, #(16+6+2)*4]     @ fetch in from stack, to pass to imdct_half\n        mov     a4, #4                    @ sizeof(float)\nVFP     ldr     r12, [sp, #(16+6+3)*4]    @ fetch imdct_fn from stack\nNOVFP   ldr     r12, [sp, #(16+6+4)*4]    @ fetch imdct_fn from stack\nVFP     vmov    s16, SCALE                @ imdct_half is free to corrupt s0, but it contains one of our arguments in hardfp case\n        blx     r12\nVFP     vmov    SCALE, s16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/synth_filter_vfp.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:4", "text": "*                                float out[32], const float in[32], float scale)\n */\nfunction ff_synth_filter_float_vfp, export=1\n        push    {r3-r7,lr}\n        vpush   {s16-s31}\n        ldr     lr, [P_SB_OFF]\n        add     a2, ORIG_P_SB, lr, lsl #2 @ calculate synth_buf to pass to imdct_half\n        mov     P_SB, a2                  @ and keep a copy for ourselves\n        bic     J_WRAP, lr, #63           @ mangled to make testing for wrap easier in inner loop\n        sub     lr, lr, #32\n        and     lr, lr, #512-32\n        str     lr, [P_SB_OFF]            @ rotate offset, modulo buffer size, ready for next call\n        ldr     a3, [sp, #(16+6+2)*4]     @ fetch in from stack, to pass to imdct_half\n        mov     a4, #4                    @ sizeof(float)\nVFP     ldr     r12, [sp, #(16+6+3)*4]    @ fetch imdct_fn from stack\nNOVFP   ldr     r12, [sp, #(16+6+4)*4]    @ fetch imdct_fn from stack\nVFP     vmov    s16, SCALE                @ imdct_half is free to corrupt s0, but it contains one of our arguments in hardfp case\n        blx     r12\nVFP     vmov    SCALE, s16\n\n        fmrx    OLDFPSCR, FPSCR\n        ldr     lr, =0x03030000           @ RunFast mode, short vectors of length 4, stride 1\n        fmxr    FPSCR, lr\n        ldr     P_SB2_DN, [sp, #16*4]\n        ldr     P_WIN_DN, [sp, #(16+6+0)*4]\n        ldr     P_OUT_DN, [sp, #(16+6+1)*4]\nNOVFP   vldr    SCALE, [sp, #(16+6+3)*4]\n\n#define IMM_OFF_SKEW 956                   /* also valid immediate constant when you add 16*4 */\n        add     P_SB, P_SB, #IMM_OFF_SKEW  @ so we can use -ve offsets to use full immediate offset range\n        add     P_SB2_UP, P_SB2_DN, #16*4\n        add     P_WIN_UP, P_WIN_DN, #16*4+IMM_OFF_SKEW\n        add     P_OUT_UP, P_OUT_DN, #16*4\n        add     P_SB2_DN, P_SB2_DN, #16*4\n        add     P_WIN_DN, P_WIN_DN, #12*4+IMM_OFF_SKEW\n        add     P_OUT_DN, P_OUT_DN, #16*4\n        mov     I, #4\n1:\n        vldmia  P_SB2_UP!, {VB0-VB3}\n        vldmdb  P_SB2_DN!, {VA0-VA3}\n .set J, 512 - 64\n .set OFFSET, -IMM_OFF_SKEW\n        inner_loop  ab,, head\n .rept 7\n        inner_loop  ab, tail, head\n .endr\n        inner_loop  ab, tail\n        add     P_WIN_UP, P_WIN_UP, #4*4\n        sub     P_WIN_DN, P_WIN_DN, #4*4\n        vmul.f  VB0, VB0, SCALE      @ SCALE treated as scalar\n        add     P_SB, P_SB, #(512+4)*4\n        subs    I, I, #1\n        vmul.f  VA0, VA0, SCALE\n        vstmia  P_OUT_UP!, {VB0-VB3}\n        vstmdb  P_OUT_DN!, {VA0-VA3}\n        bne     1b\n\n        add     P_SB2_DN, P_SB2_DN, #(16+28-12)*4\n        sub     P_SB2_UP, P_SB2_UP, #(16+16)*4\n        add     P_WIN_DN, P_WIN_DN, #(32+16+28-12)*4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/synth_filter_vfp.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:5", "text": ".set J, 512 - 64\n .set OFFSET, -IMM_OFF_SKEW\n        inner_loop  ab,, head\n .rept 7\n        inner_loop  ab, tail, head\n .endr\n        inner_loop  ab, tail\n        add     P_WIN_UP, P_WIN_UP, #4*4\n        sub     P_WIN_DN, P_WIN_DN, #4*4\n        vmul.f  VB0, VB0, SCALE      @ SCALE treated as scalar\n        add     P_SB, P_SB, #(512+4)*4\n        subs    I, I, #1\n        vmul.f  VA0, VA0, SCALE\n        vstmia  P_OUT_UP!, {VB0-VB3}\n        vstmdb  P_OUT_DN!, {VA0-VA3}\n        bne     1b\n\n        add     P_SB2_DN, P_SB2_DN, #(16+28-12)*4\n        sub     P_SB2_UP, P_SB2_UP, #(16+16)*4\n        add     P_WIN_DN, P_WIN_DN, #(32+16+28-12)*4\n        mov     I, #4\n1:\n        vldr.d  d4, zero             @ d4 = VC0\n        vldr.d  d5, zero\n        vldr.d  d6, zero             @ d6 = VD0\n        vldr.d  d7, zero\n .set J, 512 - 64\n .set OFFSET, -IMM_OFF_SKEW\n        inner_loop  cd,, head\n .rept 7\n        inner_loop  cd, tail, head\n .endr\n        inner_loop  cd, tail\n        add     P_WIN_UP, P_WIN_UP, #4*4\n        sub     P_WIN_DN, P_WIN_DN, #4*4\n        add     P_SB, P_SB, #(512+4)*4\n        subs    I, I, #1\n        vstmia  P_SB2_UP!, {VC0-VC3}\n        vstmdb  P_SB2_DN!, {VD0-VD3}\n        bne     1b\n\n        fmxr    FPSCR, OLDFPSCR\n        vpop    {s16-s31}\n        pop     {r3-r7,pc}\nendfunc\n\n        .unreq  IMDCT\n        .unreq  ORIG_P_SB\n        .unreq  P_SB_OFF\n        .unreq  I\n        .unreq  P_SB2_UP\n        .unreq  OLDFPSCR\n        .unreq  P_SB2_DN\n        .unreq  P_WIN_DN\n        .unreq  P_OUT_DN\n        .unreq  P_SB\n        .unreq  J_WRAP\n        .unreq  P_WIN_UP\n        .unreq  P_OUT_UP", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/synth_filter_vfp.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/synth_filter_vfp.S:6", "text": "fmxr    FPSCR, OLDFPSCR\n        vpop    {s16-s31}\n        pop     {r3-r7,pc}\nendfunc\n\n        .unreq  IMDCT\n        .unreq  ORIG_P_SB\n        .unreq  P_SB_OFF\n        .unreq  I\n        .unreq  P_SB2_UP\n        .unreq  OLDFPSCR\n        .unreq  P_SB2_DN\n        .unreq  P_WIN_DN\n        .unreq  P_OUT_DN\n        .unreq  P_SB\n        .unreq  J_WRAP\n        .unreq  P_WIN_UP\n        .unreq  P_OUT_UP\n\n        .unreq  SCALE\n        .unreq  SBUF_DAT_REV0\n        .unreq  SBUF_DAT_REV1\n        .unreq  SBUF_DAT_REV2\n        .unreq  SBUF_DAT_REV3\n        .unreq  VA0\n        .unreq  VA3\n        .unreq  VB0\n        .unreq  VB3\n        .unreq  VC0\n        .unreq  VC3\n        .unreq  VD0\n        .unreq  VD3\n        .unreq  SBUF_DAT0\n        .unreq  SBUF_DAT1\n        .unreq  SBUF_DAT2\n        .unreq  SBUF_DAT3\n        .unreq  SBUF_DAT_ALT0\n        .unreq  SBUF_DAT_ALT1\n        .unreq  SBUF_DAT_ALT2\n        .unreq  SBUF_DAT_ALT3\n        .unreq  WIN_DN_DAT0\n        .unreq  WIN_UP_DAT0\n\n        .align  3\nzero:   .word   0, 0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/synth_filter_vfp.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/synth_filter_vfp.S", "line_start": 201, "line_end": 246}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/videodsp_armv5te.S:1", "text": "@\n@ ARMv5te-optimized core video DSP functions\n@ Copyright (c) 2004 AGAWA Koji <i (AT) atty (DOT) jp>\n@\n@ This file is part of FFmpeg\n@\n@ FFmpeg is free software; you can redistribute it and/or\n@ modify it under the terms of the GNU Lesser General Public\n@ License as published by the Free Software Foundation; either\n@ version 2.1 of the License, or (at your option) any later version.\n@\n@ FFmpeg is distributed in the hope that it will be useful,\n@ but WITHOUT ANY WARRANTY; without even the implied warranty of\n@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n@ Lesser General Public License for more details.\n@\n@ You should have received a copy of the GNU Lesser General Public\n@ License along with FFmpeg; if not, write to the Free Software\n@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n@\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_prefetch_arm, export=1\n1:\n        subs            r2,  r2,  #1\n        pld             [r0]\n        add             r0,  r0,  r1\n        bne             1b\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/videodsp_armv5te.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/videodsp_armv5te.S", "line_start": 1, "line_end": 32}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vorbisdsp_neon.S:1", "text": "/*\n * ARM NEON optimised DSP functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_vorbis_inverse_coupling_neon, export=1\n        vmov.i32        q10, #1<<31\n        subs            r2,  r2,  #4\n        mov             r3,  r0\n        mov             r12, r1\n        beq             3f\n\n        vld1.32         {d24-d25},[r1,:128]!\n        vld1.32         {d22-d23},[r0,:128]!\n        vcle.s32        q8,  q12, #0\n        vand            q9,  q11, q10\n        veor            q12, q12, q9\n        vand            q2,  q12, q8\n        vbic            q3,  q12, q8\n        vadd.f32        q12, q11, q2\n        vsub.f32        q11, q11, q3\n1:      vld1.32         {d2-d3},  [r1,:128]!\n        vld1.32         {d0-d1},  [r0,:128]!\n        vcle.s32        q8,  q1,  #0\n        vand            q9,  q0,  q10\n        veor            q1,  q1,  q9\n        vst1.32         {d24-d25},[r3, :128]!\n        vst1.32         {d22-d23},[r12,:128]!\n        vand            q2,  q1,  q8\n        vbic            q3,  q1,  q8\n        vadd.f32        q1,  q0,  q2\n        vsub.f32        q0,  q0,  q3\n        subs            r2,  r2,  #8\n        ble             2f\n        vld1.32         {d24-d25},[r1,:128]!\n        vld1.32         {d22-d23},[r0,:128]!\n        vcle.s32        q8,  q12, #0\n        vand            q9,  q11, q10\n        veor            q12, q12, q9\n        vst1.32         {d2-d3},  [r3, :128]!\n        vst1.32         {d0-d1},  [r12,:128]!\n        vand            q2,  q12, q8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vorbisdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vorbisdsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vorbisdsp_neon.S:2", "text": "vld1.32         {d0-d1},  [r0,:128]!\n        vcle.s32        q8,  q1,  #0\n        vand            q9,  q0,  q10\n        veor            q1,  q1,  q9\n        vst1.32         {d24-d25},[r3, :128]!\n        vst1.32         {d22-d23},[r12,:128]!\n        vand            q2,  q1,  q8\n        vbic            q3,  q1,  q8\n        vadd.f32        q1,  q0,  q2\n        vsub.f32        q0,  q0,  q3\n        subs            r2,  r2,  #8\n        ble             2f\n        vld1.32         {d24-d25},[r1,:128]!\n        vld1.32         {d22-d23},[r0,:128]!\n        vcle.s32        q8,  q12, #0\n        vand            q9,  q11, q10\n        veor            q12, q12, q9\n        vst1.32         {d2-d3},  [r3, :128]!\n        vst1.32         {d0-d1},  [r12,:128]!\n        vand            q2,  q12, q8\n        vbic            q3,  q12, q8\n        vadd.f32        q12, q11, q2\n        vsub.f32        q11, q11, q3\n        b               1b\n\n2:      vst1.32         {d2-d3},  [r3, :128]!\n        vst1.32         {d0-d1},  [r12,:128]!\n        it              lt\n        bxlt            lr\n\n3:      vld1.32         {d2-d3},  [r1,:128]\n        vld1.32         {d0-d1},  [r0,:128]\n        vcle.s32        q8,  q1,  #0\n        vand            q9,  q0,  q10\n        veor            q1,  q1,  q9\n        vand            q2,  q1,  q8\n        vbic            q3,  q1,  q8\n        vadd.f32        q1,  q0,  q2\n        vsub.f32        q0,  q0,  q3\n        vst1.32         {d2-d3},  [r0,:128]!\n        vst1.32         {d0-d1},  [r1,:128]!\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vorbisdsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vorbisdsp_neon.S", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:1", "text": "/*\n * Copyright (c) 2009 David Conrad\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nconst   vp3_idct_constants, align=4\n.short 64277, 60547, 54491, 46341, 36410, 25080, 12785\nendconst\n\n#define xC1S7 d0[0]\n#define xC2S6 d0[1]\n#define xC3S5 d0[2]\n#define xC4S4 d0[3]\n#define xC5S3 d1[0]\n#define xC6S2 d1[1]\n#define xC7S1 d1[2]\n\n.macro vp3_loop_filter\n        vsubl.u8        q3,  d18, d17\n        vsubl.u8        q2,  d16, d19\n        vadd.i16        q1,  q3,  q3\n        vadd.i16        q2,  q2,  q3\n        vadd.i16        q0,  q1,  q2\n        vrshr.s16       q0,  q0,  #3\n        vmovl.u8        q9,  d18\n        vdup.u16        q15, r2\n\n        vabs.s16        q1,  q0\n        vshr.s16        q0,  q0,  #15\n        vqsub.u16       q2,  q15, q1\n        vqsub.u16       q3,  q2,  q1\n        vsub.i16        q1,  q2,  q3\n        veor            q1,  q1,  q0\n        vsub.i16        q0,  q1,  q0\n\n        vaddw.u8        q2,  q0,  d17\n        vsub.i16        q3,  q9,  q0\n        vqmovun.s16     d0,  q2\n        vqmovun.s16     d1,  q3\n.endm\n\nfunction ff_vp3_v_loop_filter_neon, export=1\n        sub             ip,  r0,  r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:2", "text": "vrshr.s16       q0,  q0,  #3\n        vmovl.u8        q9,  d18\n        vdup.u16        q15, r2\n\n        vabs.s16        q1,  q0\n        vshr.s16        q0,  q0,  #15\n        vqsub.u16       q2,  q15, q1\n        vqsub.u16       q3,  q2,  q1\n        vsub.i16        q1,  q2,  q3\n        veor            q1,  q1,  q0\n        vsub.i16        q0,  q1,  q0\n\n        vaddw.u8        q2,  q0,  d17\n        vsub.i16        q3,  q9,  q0\n        vqmovun.s16     d0,  q2\n        vqmovun.s16     d1,  q3\n.endm\n\nfunction ff_vp3_v_loop_filter_neon, export=1\n        sub             ip,  r0,  r1\n        sub             r0,  r0,  r1,  lsl #1\n        vld1.64         {d16}, [r0,:64], r1\n        vld1.64         {d17}, [r0,:64], r1\n        vld1.64         {d18}, [r0,:64], r1\n        vld1.64         {d19}, [r0,:64], r1\n        ldrb            r2,    [r2, #129*4]\n\n        vp3_loop_filter\n\n        vst1.64         {d0},  [ip,:64], r1\n        vst1.64         {d1},  [ip,:64], r1\n        bx              lr\nendfunc\n\nfunction ff_vp3_h_loop_filter_neon, export=1\n        sub             ip,  r0,  #1\n        sub             r0,  r0,  #2\n        vld1.32         {d16[]},  [r0], r1\n        vld1.32         {d17[]},  [r0], r1\n        vld1.32         {d18[]},  [r0], r1\n        vld1.32         {d19[]},  [r0], r1\n        vld1.32         {d16[1]}, [r0], r1\n        vld1.32         {d17[1]}, [r0], r1\n        vld1.32         {d18[1]}, [r0], r1\n        vld1.32         {d19[1]}, [r0], r1\n        ldrb            r2,  [r2, #129*4]\n\n        vtrn.8          d16, d17\n        vtrn.8          d18, d19\n        vtrn.16         d16, d18\n        vtrn.16         d17, d19\n\n        vp3_loop_filter\n\n        vtrn.8          d0,  d1\n\n        vst1.16         {d0[0]}, [ip], r1\n        vst1.16         {d1[0]}, [ip], r1\n        vst1.16         {d0[1]}, [ip], r1\n        vst1.16         {d1[1]}, [ip], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:3", "text": "vld1.32         {d19[]},  [r0], r1\n        vld1.32         {d16[1]}, [r0], r1\n        vld1.32         {d17[1]}, [r0], r1\n        vld1.32         {d18[1]}, [r0], r1\n        vld1.32         {d19[1]}, [r0], r1\n        ldrb            r2,  [r2, #129*4]\n\n        vtrn.8          d16, d17\n        vtrn.8          d18, d19\n        vtrn.16         d16, d18\n        vtrn.16         d17, d19\n\n        vp3_loop_filter\n\n        vtrn.8          d0,  d1\n\n        vst1.16         {d0[0]}, [ip], r1\n        vst1.16         {d1[0]}, [ip], r1\n        vst1.16         {d0[1]}, [ip], r1\n        vst1.16         {d1[1]}, [ip], r1\n        vst1.16         {d0[2]}, [ip], r1\n        vst1.16         {d1[2]}, [ip], r1\n        vst1.16         {d0[3]}, [ip], r1\n        vst1.16         {d1[3]}, [ip], r1\n        bx              lr\nendfunc\n\n\nfunction vp3_idct_start_neon\n        vpush           {d8-d15}\n        vmov.i16        q4,  #0\n        vmov.i16        q5,  #0\n        movrel          r3,  vp3_idct_constants\n        vld1.64         {d0-d1},   [r3,:128]\n        vld1.64         {d16-d19}, [r2,:128]\n        vst1.64         {q4-q5},   [r2,:128]!\n        vld1.64         {d20-d23}, [r2,:128]\n        vst1.64         {q4-q5},   [r2,:128]!\n        vld1.64         {d24-d27}, [r2,:128]\n        vst1.64         {q4-q5},   [r2,:128]!\n        vadd.s16        q1,  q8,  q12\n        vsub.s16        q8,  q8,  q12\n        vld1.64         {d28-d31}, [r2,:128]\n        vst1.64         {q4-q5},   [r2,:128]!\n\nvp3_idct_core_neon:\n        vmull.s16       q2,  d18, xC1S7     // (ip[1] * C1) << 16\n        vmull.s16       q3,  d19, xC1S7\n        vmull.s16       q4,  d2,  xC4S4     // ((ip[0] + ip[4]) * C4) << 16\n        vmull.s16       q5,  d3,  xC4S4\n        vmull.s16       q6,  d16, xC4S4     // ((ip[0] - ip[4]) * C4) << 16\n        vmull.s16       q7,  d17, xC4S4\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q12, q1,  q3        // E = (ip[0] + ip[4]) * C4\n        vadd.s16        q8,  q8,  q4        // F = (ip[0] - ip[4]) * C4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:4", "text": "vadd.s16        q1,  q8,  q12\n        vsub.s16        q8,  q8,  q12\n        vld1.64         {d28-d31}, [r2,:128]\n        vst1.64         {q4-q5},   [r2,:128]!\n\nvp3_idct_core_neon:\n        vmull.s16       q2,  d18, xC1S7     // (ip[1] * C1) << 16\n        vmull.s16       q3,  d19, xC1S7\n        vmull.s16       q4,  d2,  xC4S4     // ((ip[0] + ip[4]) * C4) << 16\n        vmull.s16       q5,  d3,  xC4S4\n        vmull.s16       q6,  d16, xC4S4     // ((ip[0] - ip[4]) * C4) << 16\n        vmull.s16       q7,  d17, xC4S4\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q12, q1,  q3        // E = (ip[0] + ip[4]) * C4\n        vadd.s16        q8,  q8,  q4        // F = (ip[0] - ip[4]) * C4\n        vadd.s16        q1,  q2,  q9        // ip[1] * C1\n\n        vmull.s16       q2,  d30, xC1S7     // (ip[7] * C1) << 16\n        vmull.s16       q3,  d31, xC1S7\n        vmull.s16       q4,  d30, xC7S1     // (ip[7] * C7) << 16\n        vmull.s16       q5,  d31, xC7S1\n        vmull.s16       q6,  d18, xC7S1     // (ip[1] * C7) << 16\n        vmull.s16       q7,  d19, xC7S1\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16       // ip[7] * C7\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16       // ip[1] * C7\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q2,  q2,  q15       // ip[7] * C1\n        vadd.s16        q9,  q1,  q3        // A = ip[1] * C1 + ip[7] * C7\n        vsub.s16        q15, q4,  q2        // B = ip[1] * C7 - ip[7] * C1\n\n        vmull.s16       q2,  d22, xC5S3     // (ip[3] * C5) << 16\n        vmull.s16       q3,  d23, xC5S3\n        vmull.s16       q4,  d22, xC3S5     // (ip[3] * C3) << 16\n        vmull.s16       q5,  d23, xC3S5\n        vmull.s16       q6,  d26, xC5S3     // (ip[5] * C5) << 16\n        vmull.s16       q7,  d27, xC5S3\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q3,  q3,  q11       // ip[3] * C3\n        vadd.s16        q4,  q4,  q13       // ip[5] * C5\n        vadd.s16        q1,  q2,  q11       // ip[3] * C5\n        vadd.s16        q11, q3,  q4        // C = ip[3] * C3 + ip[5] * C5\n\n        vmull.s16       q2,  d26, xC3S5     // (ip[5] * C3) << 16\n        vmull.s16       q3,  d27, xC3S5\n        vmull.s16       q4,  d20, xC2S6     // (ip[2] * C2) << 16\n        vmull.s16       q5,  d21, xC2S6\n        vmull.s16       q6,  d28, xC6S2     // (ip[6] * C6) << 16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:5", "text": "vmull.s16       q4,  d22, xC3S5     // (ip[3] * C3) << 16\n        vmull.s16       q5,  d23, xC3S5\n        vmull.s16       q6,  d26, xC5S3     // (ip[5] * C5) << 16\n        vmull.s16       q7,  d27, xC5S3\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q3,  q3,  q11       // ip[3] * C3\n        vadd.s16        q4,  q4,  q13       // ip[5] * C5\n        vadd.s16        q1,  q2,  q11       // ip[3] * C5\n        vadd.s16        q11, q3,  q4        // C = ip[3] * C3 + ip[5] * C5\n\n        vmull.s16       q2,  d26, xC3S5     // (ip[5] * C3) << 16\n        vmull.s16       q3,  d27, xC3S5\n        vmull.s16       q4,  d20, xC2S6     // (ip[2] * C2) << 16\n        vmull.s16       q5,  d21, xC2S6\n        vmull.s16       q6,  d28, xC6S2     // (ip[6] * C6) << 16\n        vmull.s16       q7,  d29, xC6S2\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16       // ip[6] * C6\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q2,  q2,  q13       // ip[5] * C3\n        vadd.s16        q3,  q3,  q10       // ip[2] * C2\n        vsub.s16        q13, q2,  q1        // D = ip[5] * C3 - ip[3] * C5\n        vsub.s16        q1,  q9,  q11       // (A - C)\n        vadd.s16        q11, q9,  q11       // Cd = A + C\n        vsub.s16        q9,  q15, q13       // (B - D)\n        vadd.s16        q13, q15, q13       // Dd = B + D\n        vadd.s16        q15, q3,  q4        // G = ip[2] * C2 + ip[6] * C6\n\n        vmull.s16       q2,  d2,  xC4S4     // ((A - C) * C4) << 16\n        vmull.s16       q3,  d3,  xC4S4\n        vmull.s16       q4,  d28, xC2S6     // (ip[6] * C2) << 16\n        vmull.s16       q5,  d29, xC2S6\n        vmull.s16       q6,  d20, xC6S2     // (ip[2] * C6) << 16\n        vmull.s16       q7,  d21, xC6S2\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16       // ip[2] * C6\n        vmull.s16       q5,  d18, xC4S4     // ((B - D) * C4) << 16\n        vmull.s16       q6,  d19, xC4S4\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q3,  q3,  q14       // ip[6] * C2\n        vadd.s16        q10, q1,  q2        // Ad = (A - C) * C4\n        vsub.s16        q14, q4,  q3        // H = ip[2] * C6 - ip[6] * C2\n        bx              lr\nendfunc\n\n.macro VP3_IDCT_END type\nfunction vp3_idct_end_\\type\\()_neon\n.ifc \\type, col\n        vdup.16         q0,  r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:6", "text": "vmull.s16       q6,  d20, xC6S2     // (ip[2] * C6) << 16\n        vmull.s16       q7,  d21, xC6S2\n        vshrn.s32       d4,  q2,  #16\n        vshrn.s32       d5,  q3,  #16\n        vshrn.s32       d6,  q4,  #16\n        vshrn.s32       d7,  q5,  #16\n        vshrn.s32       d8,  q6,  #16       // ip[2] * C6\n        vmull.s16       q5,  d18, xC4S4     // ((B - D) * C4) << 16\n        vmull.s16       q6,  d19, xC4S4\n        vshrn.s32       d9,  q7,  #16\n        vadd.s16        q3,  q3,  q14       // ip[6] * C2\n        vadd.s16        q10, q1,  q2        // Ad = (A - C) * C4\n        vsub.s16        q14, q4,  q3        // H = ip[2] * C6 - ip[6] * C2\n        bx              lr\nendfunc\n\n.macro VP3_IDCT_END type\nfunction vp3_idct_end_\\type\\()_neon\n.ifc \\type, col\n        vdup.16         q0,  r3\n        vadd.s16        q12, q12, q0\n        vadd.s16        q8,  q8,  q0\n.endif\n\n        vshrn.s32       d2,  q5,  #16\n        vshrn.s32       d3,  q6,  #16\n        vadd.s16        q2,  q12, q15       // Gd  = E + G\n        vadd.s16        q9,  q1,  q9        // (B - D) * C4\n        vsub.s16        q12, q12, q15       // Ed  = E - G\n        vsub.s16        q3,  q8,  q10       // Fd  = F - Ad\n        vadd.s16        q10, q8,  q10       // Add = F + Ad\n        vadd.s16        q4,  q9,  q14       // Hd  = Bd + H\n        vsub.s16        q14, q9,  q14       // Bdd = Bd - H\n        vadd.s16        q8,  q2,  q11       // [0] = Gd + Cd\n        vsub.s16        q15, q2,  q11       // [7] = Gd - Cd\n        vadd.s16        q9,  q10, q4        // [1] = Add + Hd\n        vsub.s16        q10, q10, q4        // [2] = Add - Hd\n        vadd.s16        q11, q12, q13       // [3] = Ed + Dd\n        vsub.s16        q12, q12, q13       // [4] = Ed - Dd\n.ifc \\type, row\n        vtrn.16         q8,  q9\n.endif\n        vadd.s16        q13, q3,  q14       // [5] = Fd + Bdd\n        vsub.s16        q14, q3,  q14       // [6] = Fd - Bdd\n\n.ifc \\type, row\n    // 8x8 transpose\n        vtrn.16         q10, q11\n        vtrn.16         q12, q13\n        vtrn.16         q14, q15\n        vtrn.32         q8,  q10\n        vtrn.32         q9,  q11\n        vtrn.32         q12, q14\n        vtrn.32         q13, q15\n        vswp            d17, d24\n        vswp            d19, d26\n        vadd.s16        q1,  q8,  q12\n        vswp            d21, d28\n        vsub.s16        q8,  q8,  q12\n        vswp            d23, d30", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:7", "text": "vtrn.16         q8,  q9\n.endif\n        vadd.s16        q13, q3,  q14       // [5] = Fd + Bdd\n        vsub.s16        q14, q3,  q14       // [6] = Fd - Bdd\n\n.ifc \\type, row\n    // 8x8 transpose\n        vtrn.16         q10, q11\n        vtrn.16         q12, q13\n        vtrn.16         q14, q15\n        vtrn.32         q8,  q10\n        vtrn.32         q9,  q11\n        vtrn.32         q12, q14\n        vtrn.32         q13, q15\n        vswp            d17, d24\n        vswp            d19, d26\n        vadd.s16        q1,  q8,  q12\n        vswp            d21, d28\n        vsub.s16        q8,  q8,  q12\n        vswp            d23, d30\n.endif\n        bx              lr\nendfunc\n.endm\n\nVP3_IDCT_END row\nVP3_IDCT_END col\n\nfunction ff_vp3_idct_put_neon, export=1\n        mov             ip,  lr\n        bl              vp3_idct_start_neon\n        bl              vp3_idct_end_row_neon\n        mov             r3,  #8\n        add             r3,  r3,  #2048         // convert signed pixel to unsigned\n        bl              vp3_idct_core_neon\n        bl              vp3_idct_end_col_neon\n        mov             lr,  ip\n        vpop            {d8-d15}\n\n        vqshrun.s16     d0,  q8,  #4\n        vqshrun.s16     d1,  q9,  #4\n        vqshrun.s16     d2,  q10, #4\n        vqshrun.s16     d3,  q11, #4\n        vst1.64         {d0}, [r0,:64], r1\n        vqshrun.s16     d4,  q12, #4\n        vst1.64         {d1}, [r0,:64], r1\n        vqshrun.s16     d5,  q13, #4\n        vst1.64         {d2}, [r0,:64], r1\n        vqshrun.s16     d6,  q14, #4\n        vst1.64         {d3}, [r0,:64], r1\n        vqshrun.s16     d7,  q15, #4\n        vst1.64         {d4}, [r0,:64], r1\n        vst1.64         {d5}, [r0,:64], r1\n        vst1.64         {d6}, [r0,:64], r1\n        vst1.64         {d7}, [r0,:64], r1\n        bx              lr\nendfunc\n\nfunction ff_vp3_idct_add_neon, export=1\n        mov             ip,  lr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:8", "text": "vqshrun.s16     d1,  q9,  #4\n        vqshrun.s16     d2,  q10, #4\n        vqshrun.s16     d3,  q11, #4\n        vst1.64         {d0}, [r0,:64], r1\n        vqshrun.s16     d4,  q12, #4\n        vst1.64         {d1}, [r0,:64], r1\n        vqshrun.s16     d5,  q13, #4\n        vst1.64         {d2}, [r0,:64], r1\n        vqshrun.s16     d6,  q14, #4\n        vst1.64         {d3}, [r0,:64], r1\n        vqshrun.s16     d7,  q15, #4\n        vst1.64         {d4}, [r0,:64], r1\n        vst1.64         {d5}, [r0,:64], r1\n        vst1.64         {d6}, [r0,:64], r1\n        vst1.64         {d7}, [r0,:64], r1\n        bx              lr\nendfunc\n\nfunction ff_vp3_idct_add_neon, export=1\n        mov             ip,  lr\n        bl              vp3_idct_start_neon\n        bl              vp3_idct_end_row_neon\n        mov             r3,  #8\n        bl              vp3_idct_core_neon\n        bl              vp3_idct_end_col_neon\n        mov             lr,  ip\n        vpop            {d8-d15}\n        mov             r2,  r0\n\n        vld1.64         {d0}, [r0,:64], r1\n        vshr.s16        q8,  q8,  #4\n        vld1.64         {d1}, [r0,:64], r1\n        vshr.s16        q9,  q9,  #4\n        vld1.64         {d2}, [r0,:64], r1\n        vaddw.u8        q8,  q8,  d0\n        vld1.64         {d3}, [r0,:64], r1\n        vaddw.u8        q9,  q9,  d1\n        vld1.64         {d4}, [r0,:64], r1\n        vshr.s16        q10, q10, #4\n        vld1.64         {d5}, [r0,:64], r1\n        vshr.s16        q11, q11, #4\n        vld1.64         {d6}, [r0,:64], r1\n        vqmovun.s16     d0,  q8\n        vld1.64         {d7}, [r0,:64], r1\n        vqmovun.s16     d1,  q9\n        vaddw.u8        q10, q10, d2\n        vaddw.u8        q11, q11, d3\n        vshr.s16        q12, q12, #4\n        vshr.s16        q13, q13, #4\n        vqmovun.s16     d2,  q10\n        vqmovun.s16     d3,  q11\n        vaddw.u8        q12, q12, d4\n        vaddw.u8        q13, q13, d5\n        vshr.s16        q14, q14, #4\n        vshr.s16        q15, q15, #4\n        vst1.64         {d0}, [r2,:64], r1\n        vqmovun.s16     d4,  q12\n        vst1.64         {d1}, [r2,:64], r1\n        vqmovun.s16     d5,  q13\n        vst1.64         {d2}, [r2,:64], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:9", "text": "vshr.s16        q11, q11, #4\n        vld1.64         {d6}, [r0,:64], r1\n        vqmovun.s16     d0,  q8\n        vld1.64         {d7}, [r0,:64], r1\n        vqmovun.s16     d1,  q9\n        vaddw.u8        q10, q10, d2\n        vaddw.u8        q11, q11, d3\n        vshr.s16        q12, q12, #4\n        vshr.s16        q13, q13, #4\n        vqmovun.s16     d2,  q10\n        vqmovun.s16     d3,  q11\n        vaddw.u8        q12, q12, d4\n        vaddw.u8        q13, q13, d5\n        vshr.s16        q14, q14, #4\n        vshr.s16        q15, q15, #4\n        vst1.64         {d0}, [r2,:64], r1\n        vqmovun.s16     d4,  q12\n        vst1.64         {d1}, [r2,:64], r1\n        vqmovun.s16     d5,  q13\n        vst1.64         {d2}, [r2,:64], r1\n        vaddw.u8        q14, q14, d6\n        vst1.64         {d3}, [r2,:64], r1\n        vaddw.u8        q15, q15, d7\n        vst1.64         {d4}, [r2,:64], r1\n        vqmovun.s16     d6,  q14\n        vst1.64         {d5}, [r2,:64], r1\n        vqmovun.s16     d7,  q15\n        vst1.64         {d6}, [r2,:64], r1\n        vst1.64         {d7}, [r2,:64], r1\n        bx              lr\nendfunc\n\nfunction ff_vp3_idct_dc_add_neon, export=1\n        ldrsh           r12, [r2]\n        mov             r3,  r0\n        add             r12, r12,  #15\n        vdup.16         q15, r12\n        mov             r12, #0\n        strh            r12, [r2]\n        vshr.s16        q15, q15, #5\n\n        vld1.8          {d0}, [r0,:64], r1\n        vld1.8          {d1}, [r0,:64], r1\n        vld1.8          {d2}, [r0,:64], r1\n        vaddw.u8        q8,  q15, d0\n        vld1.8          {d3}, [r0,:64], r1\n        vaddw.u8        q9,  q15, d1\n        vld1.8          {d4}, [r0,:64], r1\n        vaddw.u8        q10, q15, d2\n        vld1.8          {d5}, [r0,:64], r1\n        vaddw.u8        q11, q15, d3\n        vld1.8          {d6}, [r0,:64], r1\n        vaddw.u8        q12, q15, d4\n        vld1.8          {d7}, [r0,:64], r1\n        vaddw.u8        q13, q15, d5\n        vqmovun.s16     d0,  q8\n        vaddw.u8        q14, q15, d6\n        vqmovun.s16     d1,  q9\n        vaddw.u8        q15, q15, d7\n        vqmovun.s16     d2,  q10", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp3dsp_neon.S:10", "text": "vld1.8          {d0}, [r0,:64], r1\n        vld1.8          {d1}, [r0,:64], r1\n        vld1.8          {d2}, [r0,:64], r1\n        vaddw.u8        q8,  q15, d0\n        vld1.8          {d3}, [r0,:64], r1\n        vaddw.u8        q9,  q15, d1\n        vld1.8          {d4}, [r0,:64], r1\n        vaddw.u8        q10, q15, d2\n        vld1.8          {d5}, [r0,:64], r1\n        vaddw.u8        q11, q15, d3\n        vld1.8          {d6}, [r0,:64], r1\n        vaddw.u8        q12, q15, d4\n        vld1.8          {d7}, [r0,:64], r1\n        vaddw.u8        q13, q15, d5\n        vqmovun.s16     d0,  q8\n        vaddw.u8        q14, q15, d6\n        vqmovun.s16     d1,  q9\n        vaddw.u8        q15, q15, d7\n        vqmovun.s16     d2,  q10\n        vst1.8          {d0}, [r3,:64], r1\n        vqmovun.s16     d3,  q11\n        vst1.8          {d1}, [r3,:64], r1\n        vqmovun.s16     d4,  q12\n        vst1.8          {d2}, [r3,:64], r1\n        vqmovun.s16     d5,  q13\n        vst1.8          {d3}, [r3,:64], r1\n        vqmovun.s16     d6,  q14\n        vst1.8          {d4}, [r3,:64], r1\n        vqmovun.s16     d7,  q15\n        vst1.8          {d5}, [r3,:64], r1\n        vst1.8          {d6}, [r3,:64], r1\n        vst1.8          {d7}, [r3,:64], r1\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp3dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp3dsp_neon.S", "line_start": 361, "line_end": 395}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp6dsp_neon.S:1", "text": "/*\n * Copyright (c) 2010 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro  vp6_edge_filter\n        vdup.16         q3,  r2                 @ t\n        vmov.i16        q13, #1\n        vsubl.u8        q0,  d20, d18           @ p[   0] - p[-s]\n        vsubl.u8        q1,  d16, d22           @ p[-2*s] - p[ s]\n        vsubl.u8        q14, d21, d19\n        vsubl.u8        q15, d17, d23\n        vadd.i16        q2,  q0,  q0            @ 2*(p[0]-p[-s])\n        vadd.i16        d29, d28, d28\n        vadd.i16        q0,  q0,  q1            @    p[0]-p[-s]  + p[-2*s]-p[s]\n        vadd.i16        d28, d28, d30\n        vadd.i16        q0,  q0,  q2            @ 3*(p[0]-p[-s]) + p[-2*s]-p[s]\n        vadd.i16        d28, d28, d29\n        vrshr.s16       q0,  q0,  #3            @ v\n        vrshr.s16       d28, d28, #3\n        vsub.i16        q8,  q3,  q13           @ t-1\n        vabs.s16        q1,  q0                 @ V\n        vshr.s16        q2,  q0,  #15           @ s\n        vabs.s16        d30, d28\n        vshr.s16        d29, d28, #15\n        vsub.i16        q12, q1,  q3            @ V-t\n        vsub.i16        d31, d30, d6\n        vsub.i16        q12, q12, q13           @ V-t-1\n        vsub.i16        d31, d31, d26\n        vcge.u16        q12, q12, q8            @ V-t-1 >= t-1\n        vcge.u16        d31, d31, d16\n        vadd.i16        q13, q3,  q3            @ 2*t\n        vadd.i16        d16, d6,  d6\n        vsub.i16        q13, q13, q1            @ 2*t - V\n        vsub.i16        d16, d16, d30\n        vadd.i16        q13, q13, q2            @ += s\n        vadd.i16        d16, d16, d29\n        veor            q13, q13, q2            @ ^= s\n        veor            d16, d16, d29\n        vbif            q0,  q13, q12\n        vbif            d28, d16, d31\n        vmovl.u8        q1,  d20\n        vmovl.u8        q15, d21", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp6dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp6dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp6dsp_neon.S:2", "text": "vabs.s16        d30, d28\n        vshr.s16        d29, d28, #15\n        vsub.i16        q12, q1,  q3            @ V-t\n        vsub.i16        d31, d30, d6\n        vsub.i16        q12, q12, q13           @ V-t-1\n        vsub.i16        d31, d31, d26\n        vcge.u16        q12, q12, q8            @ V-t-1 >= t-1\n        vcge.u16        d31, d31, d16\n        vadd.i16        q13, q3,  q3            @ 2*t\n        vadd.i16        d16, d6,  d6\n        vsub.i16        q13, q13, q1            @ 2*t - V\n        vsub.i16        d16, d16, d30\n        vadd.i16        q13, q13, q2            @ += s\n        vadd.i16        d16, d16, d29\n        veor            q13, q13, q2            @ ^= s\n        veor            d16, d16, d29\n        vbif            q0,  q13, q12\n        vbif            d28, d16, d31\n        vmovl.u8        q1,  d20\n        vmovl.u8        q15, d21\n        vaddw.u8        q2,  q0,  d18\n        vaddw.u8        q3,  q14, d19\n        vsub.i16        q1,  q1,  q0\n        vsub.i16        d30, d30, d28\n        vqmovun.s16     d18, q2\n        vqmovun.s16     d19, q3\n        vqmovun.s16     d20, q1\n        vqmovun.s16     d21, q15\n.endm\n\nfunction ff_vp6_edge_filter_ver_neon, export=1\n        sub             r0,  r0,  r1,  lsl #1\n        vld1.8          {q8},     [r0], r1      @ p[-2*s]\n        vld1.8          {q9},     [r0], r1      @ p[-s]\n        vld1.8          {q10},    [r0], r1      @ p[0]\n        vld1.8          {q11},    [r0]          @ p[s]\n        vp6_edge_filter\n        sub             r0,  r0,  r1,  lsl #1\n        sub             r1,  r1,  #8\n        vst1.8          {d18},    [r0]!\n        vst1.32         {d19[0]}, [r0], r1\n        vst1.8          {d20},    [r0]!\n        vst1.32         {d21[0]}, [r0]\n        bx              lr\nendfunc\n\nfunction ff_vp6_edge_filter_hor_neon, export=1\n        sub             r3,  r0,  #1\n        sub             r0,  r0,  #2\n        vld1.32         {d16[0]}, [r0], r1\n        vld1.32         {d18[0]}, [r0], r1\n        vld1.32         {d20[0]}, [r0], r1\n        vld1.32         {d22[0]}, [r0], r1\n        vld1.32         {d16[1]}, [r0], r1\n        vld1.32         {d18[1]}, [r0], r1\n        vld1.32         {d20[1]}, [r0], r1\n        vld1.32         {d22[1]}, [r0], r1\n        vld1.32         {d17[0]}, [r0], r1\n        vld1.32         {d19[0]}, [r0], r1\n        vld1.32         {d21[0]}, [r0], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp6dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp6dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp6dsp_neon.S:3", "text": "vst1.32         {d19[0]}, [r0], r1\n        vst1.8          {d20},    [r0]!\n        vst1.32         {d21[0]}, [r0]\n        bx              lr\nendfunc\n\nfunction ff_vp6_edge_filter_hor_neon, export=1\n        sub             r3,  r0,  #1\n        sub             r0,  r0,  #2\n        vld1.32         {d16[0]}, [r0], r1\n        vld1.32         {d18[0]}, [r0], r1\n        vld1.32         {d20[0]}, [r0], r1\n        vld1.32         {d22[0]}, [r0], r1\n        vld1.32         {d16[1]}, [r0], r1\n        vld1.32         {d18[1]}, [r0], r1\n        vld1.32         {d20[1]}, [r0], r1\n        vld1.32         {d22[1]}, [r0], r1\n        vld1.32         {d17[0]}, [r0], r1\n        vld1.32         {d19[0]}, [r0], r1\n        vld1.32         {d21[0]}, [r0], r1\n        vld1.32         {d23[0]}, [r0], r1\n        vtrn.8          q8,  q9\n        vtrn.8          q10, q11\n        vtrn.16         q8,  q10\n        vtrn.16         q9,  q11\n        vp6_edge_filter\n        vtrn.8          q9,  q10\n        vst1.16         {d18[0]}, [r3], r1\n        vst1.16         {d20[0]}, [r3], r1\n        vst1.16         {d18[1]}, [r3], r1\n        vst1.16         {d20[1]}, [r3], r1\n        vst1.16         {d18[2]}, [r3], r1\n        vst1.16         {d20[2]}, [r3], r1\n        vst1.16         {d18[3]}, [r3], r1\n        vst1.16         {d20[3]}, [r3], r1\n        vst1.16         {d19[0]}, [r3], r1\n        vst1.16         {d21[0]}, [r3], r1\n        vst1.16         {d19[1]}, [r3], r1\n        vst1.16         {d21[1]}, [r3], r1\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp6dsp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp6dsp_neon.S", "line_start": 81, "line_end": 121}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp8_armv6.S:1", "text": "/*\n * Copyright (C) 2010 Mans Rullgard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro rac_get_prob     h, bs, buf, cw, pr, t0, t1\n        adds            \\bs, \\bs, \\t0\n        lsl             \\cw, \\cw, \\t0\n        lsl             \\t0, \\h,  \\t0\n        rsb             \\h,  \\pr, #256\n        it              cs\n        ldrhcs          \\t1, [\\buf], #2\n        smlabb          \\h,  \\t0, \\pr, \\h\nT       itttt           cs\n        rev16cs         \\t1, \\t1\nA       orrcs           \\cw, \\cw, \\t1, lsl \\bs\nT       lslcs           \\t1, \\t1, \\bs\nT       orrcs           \\cw, \\cw, \\t1\n        subcs           \\bs, \\bs, #16\n        lsr             \\h,  \\h,  #8\n        cmp             \\cw, \\h,  lsl #16\n        itt             ge\n        subge           \\cw, \\cw, \\h,  lsl #16\n        subge           \\h,  \\t0, \\h\n.endm\n\n.macro rac_get_128      h, bs, buf, cw, t0, t1\n        adds            \\bs, \\bs, \\t0\n        lsl             \\cw, \\cw, \\t0\n        lsl             \\t0, \\h,  \\t0\n        it              cs\n        ldrhcs          \\t1, [\\buf], #2\n        mov             \\h,  #128\n        it              cs\n        rev16cs         \\t1, \\t1\n        add             \\h,  \\h,  \\t0, lsl #7\nA       orrcs           \\cw, \\cw, \\t1, lsl \\bs\nT       ittt            cs\nT       lslcs           \\t1, \\t1, \\bs\nT       orrcs           \\cw, \\cw, \\t1\n        subcs           \\bs, \\bs, #16\n        lsr             \\h,  \\h,  #8\n        cmp             \\cw, \\h,  lsl #16", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp8_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp8_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp8_armv6.S:2", "text": "subge           \\h,  \\t0, \\h\n.endm\n\n.macro rac_get_128      h, bs, buf, cw, t0, t1\n        adds            \\bs, \\bs, \\t0\n        lsl             \\cw, \\cw, \\t0\n        lsl             \\t0, \\h,  \\t0\n        it              cs\n        ldrhcs          \\t1, [\\buf], #2\n        mov             \\h,  #128\n        it              cs\n        rev16cs         \\t1, \\t1\n        add             \\h,  \\h,  \\t0, lsl #7\nA       orrcs           \\cw, \\cw, \\t1, lsl \\bs\nT       ittt            cs\nT       lslcs           \\t1, \\t1, \\bs\nT       orrcs           \\cw, \\cw, \\t1\n        subcs           \\bs, \\bs, #16\n        lsr             \\h,  \\h,  #8\n        cmp             \\cw, \\h,  lsl #16\n        itt             ge\n        subge           \\cw, \\cw, \\h,  lsl #16\n        subge           \\h,  \\t0, \\h\n.endm\n\nfunction ff_decode_block_coeffs_armv6, export=1\n        push            {r0,r1,r4-r11,lr}\n        movrelx         lr,  X(ff_vpx_norm_shift)\n        ldrd            r4,  r5,  [sp, #44]             @ token_prob, qmul\n        cmp             r3,  #0\n        ldr             r11, [r5]\n        ldm             r0,  {r5-r7}                    @ high, bits, buf\n        it              ne\n        pkhtbne         r11, r11, r11, asr #16\n        ldr             r8,  [r0, #16]                  @ code_word\n0:\n        ldrb            r9,  [lr, r5]\n        add             r3,  r3,  #1\n        ldrb            r0,  [r4, #1]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        blt             2f\n\n        ldrb            r9,  [lr, r5]\n        ldrb            r0,  [r4, #2]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             3f\n\n        add             r4,  r3,  r3,  lsl #5\n        sxth            r12, r11\n        add             r4,  r4,  r2\n        adds            r6,  r6,  r9\n        add             r4,  r4,  #11\n        lsl             r8,  r8,  r9\n        it              cs\n        ldrhcs          r10, [r7], #2\n        lsl             r9,  r5,  r9\n        mov             r5,  #128\n        it              cs\n        rev16cs         r10, r10", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp8_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp8_armv6.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp8_armv6.S:3", "text": "blt             2f\n\n        ldrb            r9,  [lr, r5]\n        ldrb            r0,  [r4, #2]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             3f\n\n        add             r4,  r3,  r3,  lsl #5\n        sxth            r12, r11\n        add             r4,  r4,  r2\n        adds            r6,  r6,  r9\n        add             r4,  r4,  #11\n        lsl             r8,  r8,  r9\n        it              cs\n        ldrhcs          r10, [r7], #2\n        lsl             r9,  r5,  r9\n        mov             r5,  #128\n        it              cs\n        rev16cs         r10, r10\n        add             r5,  r5,  r9,  lsl #7\nT       ittt            cs\nT       lslcs           r10, r10, r6\nT       orrcs           r8,  r8,  r10\nA       orrcs           r8,  r8,  r10, lsl r6\n        subcs           r6,  r6,  #16\n        lsr             r5,  r5,  #8\n        cmp             r8,  r5,  lsl #16\n        movrel          r10, zigzag_scan-1\n        itt             ge\n        subge           r8,  r8,  r5,  lsl #16\n        subge           r5,  r9,  r5\n        ldrb            r10, [r10, r3]\n        it              ge\n        rsbge           r12, r12, #0\n        cmp             r3,  #16\n        strh            r12, [r1, r10]\n        bge             6f\n5:\n        ldrb            r9,  [lr, r5]\n        ldrb            r0,  [r4]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        pkhtb           r11, r11, r11, asr #16\n        bge             0b\n\n6:\n        ldr             r0,  [sp]\n        ldr             r9,  [r0, #12]\n        cmp             r7,  r9\n        it              hi\n        movhi           r7,  r9\n        stm             r0,  {r5-r7}                    @ high, bits, buf\n        str             r8,  [r0, #16]                  @ code_word\n\n        add             sp,  sp,  #8\n        mov             r0,  r3\n        pop             {r4-r11,pc}\n2:\n        add             r4,  r3,  r3,  lsl #5\n        cmp             r3,  #16", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp8_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp8_armv6.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp8_armv6.S:4", "text": "ldrb            r0,  [r4]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        pkhtb           r11, r11, r11, asr #16\n        bge             0b\n\n6:\n        ldr             r0,  [sp]\n        ldr             r9,  [r0, #12]\n        cmp             r7,  r9\n        it              hi\n        movhi           r7,  r9\n        stm             r0,  {r5-r7}                    @ high, bits, buf\n        str             r8,  [r0, #16]                  @ code_word\n\n        add             sp,  sp,  #8\n        mov             r0,  r3\n        pop             {r4-r11,pc}\n2:\n        add             r4,  r3,  r3,  lsl #5\n        cmp             r3,  #16\n        add             r4,  r4,  r2\n        pkhtb           r11, r11, r11, asr #16\n        bne             0b\n        b               6b\n3:\n        ldrb            r0,  [r4, #3]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             1f\n\n        mov             r12, #2\n        ldrb            r0,  [r4, #4]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r12, #1\n        ldrb            r9,  [lr, r5]\n        blt             4f\n        ldrb            r0,  [r4, #5]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r12, #1\n        ldrb            r9,  [lr, r5]\n        b               4f\n1:\n        ldrb            r0,  [r4, #6]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             3f\n\n        ldrb            r0,  [r4, #7]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             2f\n\n        mov             r12, #5\n        mov             r0,  #159\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r12, r12, #1\n        ldrb            r9,  [lr, r5]", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp8_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp8_armv6.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp8_armv6.S:5", "text": "addge           r12, #1\n        ldrb            r9,  [lr, r5]\n        b               4f\n1:\n        ldrb            r0,  [r4, #6]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             3f\n\n        ldrb            r0,  [r4, #7]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r9,  [lr, r5]\n        bge             2f\n\n        mov             r12, #5\n        mov             r0,  #159\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r12, r12, #1\n        ldrb            r9,  [lr, r5]\n        b               4f\n2:\n        mov             r12, #7\n        mov             r0,  #165\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r12, r12, #2\n        ldrb            r9,  [lr, r5]\n        mov             r0,  #145\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r12, r12, #1\n        ldrb            r9,  [lr, r5]\n        b               4f\n3:\n        ldrb            r0,  [r4, #8]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        it              ge\n        addge           r4,  r4,  #1\n        ldrb            r9,  [lr, r5]\n        ite             ge\n        movge           r12, #2\n        movlt           r12, #0\n        ldrb            r0,  [r4, #9]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        mov             r9,  #8\n        it              ge\n        addge           r12, r12, #1\n        movrelx         r4,  X(ff_vp8_dct_cat_prob), r1\n        lsl             r9,  r9,  r12\n        ldr             r4,  [r4, r12, lsl #2]\n        add             r12, r9,  #3\n        mov             r1,  #0\n        ldrb            r0,  [r4], #1\n1:\n        ldrb            r9,  [lr, r5]\n        lsl             r1,  r1,  #1\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r0,  [r4], #1\n        it              ge", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp8_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp8_armv6.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp8_armv6.S:6", "text": "ite             ge\n        movge           r12, #2\n        movlt           r12, #0\n        ldrb            r0,  [r4, #9]\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        mov             r9,  #8\n        it              ge\n        addge           r12, r12, #1\n        movrelx         r4,  X(ff_vp8_dct_cat_prob), r1\n        lsl             r9,  r9,  r12\n        ldr             r4,  [r4, r12, lsl #2]\n        add             r12, r9,  #3\n        mov             r1,  #0\n        ldrb            r0,  [r4], #1\n1:\n        ldrb            r9,  [lr, r5]\n        lsl             r1,  r1,  #1\n        rac_get_prob    r5,  r6,  r7,  r8,  r0,  r9,  r10\n        ldrb            r0,  [r4], #1\n        it              ge\n        addge           r1,  r1,  #1\n        cmp             r0,  #0\n        bne             1b\n        ldrb            r9,  [lr, r5]\n        add             r12, r12, r1\n        ldr             r1,  [sp, #4]\n4:\n        add             r4,  r3,  r3,  lsl #5\n        add             r4,  r4,  r2\n        add             r4,  r4,  #22\n        rac_get_128     r5,  r6,  r7,  r8,  r9,  r10\n        it              ge\n        rsbge           r12, r12, #0\n        smulbb          r12, r12, r11\n        movrel          r9,  zigzag_scan-1\n        ldrb            r9,  [r9, r3]\n        cmp             r3,  #16\n        strh            r12, [r1, r9]\n        bge             6b\n        b               5b\nendfunc\n\nconst zigzag_scan\n        .byte            0,  2,  8, 16\n        .byte           10,  4,  6, 12\n        .byte           18, 24, 26, 20\n        .byte           14, 22, 28, 30\nendconst", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp8_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp8_armv6.S", "line_start": 201, "line_end": 248}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:1", "text": "/*\n * Copyright (c) 2017 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro transpose16_q_8x8 rq0, rq1, rq2, rq3, rq4, rq5, rq6, rq7, r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15\n        vswp            \\r1,  \\r8  @ vtrn.64 \\rq0, \\rq4\n        vswp            \\r3,  \\r10 @ vtrn.64 \\rq1, \\rq5\n        vswp            \\r5,  \\r12 @ vtrn.64 \\rq2, \\rq6\n        vswp            \\r7,  \\r14 @ vtrn.64 \\rq3, \\rq7\n        vtrn.32         \\rq0, \\rq2\n        vtrn.32         \\rq1, \\rq3\n        vtrn.32         \\rq4, \\rq6\n        vtrn.32         \\rq5, \\rq7\n        vtrn.16         \\rq0, \\rq1\n        vtrn.16         \\rq2, \\rq3\n        vtrn.16         \\rq4, \\rq5\n        vtrn.16         \\rq6, \\rq7\n.endm\n\n.macro transpose16_4x4 r0, r1, r2, r3\n        vtrn.32         \\r0, \\r2\n        vtrn.32         \\r1, \\r3\n        vtrn.16         \\r0, \\r1\n        vtrn.16         \\r2, \\r3\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose16_q_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n@ The input to and output from this macro is in the registers q8-q15,\n@ and q0-q7 are used as scratch registers.\n@ p3 = q8, p0 = q11, q0 = q12, q3 = q15\n.macro loop_filter_q wd\n        vdup.u16        q0,  r2          @ E\n        vdup.u16        q1,  r3          @ I", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:2", "text": "vtrn.16         \\r0, \\r1\n        vtrn.16         \\r2, \\r3\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose16_q_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n@ The input to and output from this macro is in the registers q8-q15,\n@ and q0-q7 are used as scratch registers.\n@ p3 = q8, p0 = q11, q0 = q12, q3 = q15\n.macro loop_filter_q wd\n        vdup.u16        q0,  r2          @ E\n        vdup.u16        q1,  r3          @ I\n\n        vabd.u16        q2,  q8,  q9     @ abs(p3 - p2)\n        vabd.u16        q3,  q9,  q10    @ abs(p2 - p1)\n        vabd.u16        q4,  q10, q11    @ abs(p1 - p0)\n        vabd.u16        q5,  q12, q13    @ abs(q0 - q1)\n        vabd.u16        q6,  q13, q14    @ abs(q1 - q2)\n        vabd.u16        q7,  q14, q15    @ abs(q2 - q3)\n        vmax.u16        q2,  q2,  q3\n        vmax.u16        q3,  q4,  q5\n        vmax.u16        q4,  q6,  q7\n        vabd.u16        q5,  q11, q12    @ abs(p0 - q0)\n        vmax.u16        q2,  q2,  q3\n        vadd.u16        q5,  q5,  q5     @ abs(p0 - q0) * 2\n        vabd.u16        q6,  q10, q13    @ abs(p1 - q1)\n        vmax.u16        q2,  q2,  q4     @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u16        q6,  q6,  #1\n        vcle.u16        q2,  q2,  q1     @ max(abs()) <= I\n        vadd.u16        q5,  q5,  q6     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u16        q5,  q5,  q0\n        vand            q2,  q2,  q5     @ fm\n\n        vmovn.u16       d10, q2\n        vmov            r8,  r9,  d10\n        orrs            r8,  r8,  r9\n        @ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n.if \\wd >= 8\n        vdup.u16        q0,  r5\n\n        vabd.u16        q1,  q8,  q11    @ abs(p3 - p0)\n        vabd.u16        q3,  q9,  q11    @ abs(p2 - p0)\n        vabd.u16        q4,  q10, q11    @ abs(p1 - p0)\n        vabd.u16        q5,  q13, q12    @ abs(q1 - q0)\n        vabd.u16        q6,  q14, q12    @ abs(q2 - q0)\n        vabd.u16        q7,  q15, q12    @ abs(q3 - q0)\n        vmax.u16        q1,  q1,  q3\n        vmax.u16        q4,  q4,  q5\n        vmax.u16        q6,  q6,  q7\n        @ The rest of the calculation of flat8in is interleaved below\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:3", "text": "vmovn.u16       d10, q2\n        vmov            r8,  r9,  d10\n        orrs            r8,  r8,  r9\n        @ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n.if \\wd >= 8\n        vdup.u16        q0,  r5\n\n        vabd.u16        q1,  q8,  q11    @ abs(p3 - p0)\n        vabd.u16        q3,  q9,  q11    @ abs(p2 - p0)\n        vabd.u16        q4,  q10, q11    @ abs(p1 - p0)\n        vabd.u16        q5,  q13, q12    @ abs(q1 - q0)\n        vabd.u16        q6,  q14, q12    @ abs(q2 - q0)\n        vabd.u16        q7,  q15, q12    @ abs(q3 - q0)\n        vmax.u16        q1,  q1,  q3\n        vmax.u16        q4,  q4,  q5\n        vmax.u16        q6,  q6,  q7\n        @ The rest of the calculation of flat8in is interleaved below\n.endif\n\n        @ Calculate the normal inner loop filter for 2 or 4 pixels\n        vabd.u16        q3,  q10, q11    @ abs(p1 - p0)\n.if \\wd == 8\n        vmax.u16        q1,  q1,  q4\n.endif\n        vabd.u16        q4,  q13, q12    @ abs(q1 - q0)\n.if \\wd == 8\n        vmax.u16        q1,  q1,  q6\n.endif\n\n        vsub.u16        q5,  q10, q13    @ p1 - q1\n        vmax.u16        q3,  q3,  q4     @ max(abs(p1 - p0), abs(q1 - q0))\n        vdup.u16        q4,  r4          @ H\n        vsub.u16        q6,  q12, q11    @ q0 - p0\n.if \\wd == 8\n        vcle.u16        q1,  q1,  q0     @ flat8in\n.endif\n        vdup.u16        q0,  r6          @ left shift for saturation\n        vcle.u16        q3,  q3,  q4     @ !hev\n.if \\wd == 8\n        vand            q1,  q1,  q2     @ flat8in && fm\n.endif\n        vneg.s16        q4,  q0          @ negative left shift after saturation\n        vqshl.s16       q5,  q5,  q0\n.if \\wd == 8\n        vbic            q2,  q2,  q1     @ fm && !flat8in\n.endif\n        vmov.s16        q7,  #3\n        vand            q3,  q3,  q2     @ !hev && fm && !flat8in\n        vshl.s16        q5,  q5,  q4     @ av_clip_int2p(p1 - q1, BIT_DEPTH - 1)\n\n        vmul.s16        q6,  q6,  q7     @ 3 * (q0 - p0)\n        vbic            q5,  q5,  q3     @ if (!hev) av_clip_int2p = 0\n        vadd.s16        q6,  q6,  q5     @ 3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)]\n        vmov.s16        q5,  #4\n        vqshl.s16       q6,  q6,  q0\n        vmov.s16        q0,  #3\n        vshl.s16        q6,  q6,  q4     @ av_clip_int2p(3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)], BIT_DEPTH - 1) = f\n        vdup.u16        q4,  r7          @ max pixel value", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:4", "text": ".if \\wd == 8\n        vand            q1,  q1,  q2     @ flat8in && fm\n.endif\n        vneg.s16        q4,  q0          @ negative left shift after saturation\n        vqshl.s16       q5,  q5,  q0\n.if \\wd == 8\n        vbic            q2,  q2,  q1     @ fm && !flat8in\n.endif\n        vmov.s16        q7,  #3\n        vand            q3,  q3,  q2     @ !hev && fm && !flat8in\n        vshl.s16        q5,  q5,  q4     @ av_clip_int2p(p1 - q1, BIT_DEPTH - 1)\n\n        vmul.s16        q6,  q6,  q7     @ 3 * (q0 - p0)\n        vbic            q5,  q5,  q3     @ if (!hev) av_clip_int2p = 0\n        vadd.s16        q6,  q6,  q5     @ 3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)]\n        vmov.s16        q5,  #4\n        vqshl.s16       q6,  q6,  q0\n        vmov.s16        q0,  #3\n        vshl.s16        q6,  q6,  q4     @ av_clip_int2p(3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)], BIT_DEPTH - 1) = f\n        vdup.u16        q4,  r7          @ max pixel value\n\n        vshr.u16        q4,  q4,  #1     @ (1 << (BIT_DEPTH - 1)) - 1)\n\n        vadd.s16        q5,  q6,  q5     @ f + 4\n        vadd.s16        q0,  q6,  q0     @ f + 3\n        vmov.s16        q6,  #0\n        vmin.s16        q5,  q5,  q4     @ FFMIN(f + 4, (1 << (BIT_DEPTH - 1)) - 1)\n        vmin.s16        q0,  q0,  q4     @ FFMIN(f + 3, (1 << (BIT_DEPTH - 1)) - 1)\n        vdup.u16        q4,  r7          @ max pixel value\n        vshr.s16        q5,  q5,  #3     @ f1\n        vshr.s16        q0,  q0,  #3     @ f2\n\n        vadd.s16        q0,  q11, q0     @ p0 + f2\n        vsub.s16        q7,  q12, q5     @ q0 - f1\n        vmin.s16        q0,  q0,  q4\n        vmin.s16        q7,  q7,  q4\n        vrshr.s16       q5,  q5,  #1     @ f = (f1 + 1) >> 1\n        vmax.s16        q0,  q0,  q6     @ out p0\n        vmax.s16        q7,  q7,  q6     @ out q0\n        vbit            q11, q0,  q2     @ if (fm && !flat8in)\n        vbit            q12, q7,  q2\n.if \\wd >= 8\n        vmovn.u16       d4,  q1\n.endif\n\n        vadd.s16        q0,  q10, q5     @ p1 + f\n        vsub.s16        q7,  q13, q5     @ q1 - f\n.if \\wd >= 8\n        vmov            r8,  r9,  d4\n.endif\n        vmin.s16        q0,  q0,  q4\n        vmin.s16        q7,  q7,  q4\n.if \\wd >= 8\n        orrs            r8,  r8,  r9\n.endif\n        vmax.s16        q0,  q0,  q6     @ out p1\n        vmax.s16        q7,  q7,  q6     @ out q1\n        vbit            q10, q0,  q3     @ if (!hev && fm && !flat8in)\n        vbit            q13, q7,  q3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:5", "text": "vbit            q12, q7,  q2\n.if \\wd >= 8\n        vmovn.u16       d4,  q1\n.endif\n\n        vadd.s16        q0,  q10, q5     @ p1 + f\n        vsub.s16        q7,  q13, q5     @ q1 - f\n.if \\wd >= 8\n        vmov            r8,  r9,  d4\n.endif\n        vmin.s16        q0,  q0,  q4\n        vmin.s16        q7,  q7,  q4\n.if \\wd >= 8\n        orrs            r8,  r8,  r9\n.endif\n        vmax.s16        q0,  q0,  q6     @ out p1\n        vmax.s16        q7,  q7,  q6     @ out q1\n        vbit            q10, q0,  q3     @ if (!hev && fm && !flat8in)\n        vbit            q13, q7,  q3\n\n.if \\wd >= 8\n        @ If no pixels need flat8in, jump to a writeout of the inner 4 pixels\n        beq             6f\n\n        @ flat8in\n        vadd.u16        q2,  q8,  q9\n        vadd.u16        q3,  q10, q13\n        vadd.u16        q4,  q8,  q10\n        vadd.u16        q5,  q11, q14\n        vadd.u16        q0,  q2,  q2\n        vadd.u16        q0,  q0,  q11\n        vadd.u16        q0,  q0,  q12\n        vadd.u16        q0,  q0,  q4\n        vsub.s16        q3,  q3,  q2\n        vsub.s16        q5,  q5,  q4\n        vrshr.u16       q6,  q0,  #3     @ out p2\n\n        vadd.u16        q0,  q0,  q3\n        vadd.u16        q2,  q8,  q11\n        vadd.u16        q3,  q12, q15\n        vrshr.u16       q7,  q0,  #3     @ out p1\n\n        vadd.u16        q0,  q0,  q5\n        vsub.s16        q3,  q3,  q2\n        vadd.u16        q4,  q9,  q12\n        vbit            q9,  q6,  q1\n        vadd.u16        q5,  q13, q15\n        vrshr.u16       q6,  q0,  #3     @ out p0\n\n        vadd.u16        q0,  q0,  q3\n        vsub.s16        q5,  q5,  q4\n        vadd.u16        q2,  q10, q13\n        vbit            q10, q7,  q1\n        vadd.u16        q3,  q14, q15\n        vrshr.u16       q7,  q0,  #3     @ out q0\n\n        vadd.u16        q0,  q0,  q5\n        vsub.s16        q3,  q3,  q2\n        vbit            q11, q6,  q1\n        vrshr.u16       q6,  q0,  #3     @ out q1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:6", "text": "vrshr.u16       q7,  q0,  #3     @ out p1\n\n        vadd.u16        q0,  q0,  q5\n        vsub.s16        q3,  q3,  q2\n        vadd.u16        q4,  q9,  q12\n        vbit            q9,  q6,  q1\n        vadd.u16        q5,  q13, q15\n        vrshr.u16       q6,  q0,  #3     @ out p0\n\n        vadd.u16        q0,  q0,  q3\n        vsub.s16        q5,  q5,  q4\n        vadd.u16        q2,  q10, q13\n        vbit            q10, q7,  q1\n        vadd.u16        q3,  q14, q15\n        vrshr.u16       q7,  q0,  #3     @ out q0\n\n        vadd.u16        q0,  q0,  q5\n        vsub.s16        q3,  q3,  q2\n        vbit            q11, q6,  q1\n        vrshr.u16       q6,  q0,  #3     @ out q1\n\n        vadd.u16        q0,  q0,  q3\n        vbit            q12, q7,  q1\n        vrshr.u16       q7,  q0,  #3     @ out q2\n        vbit            q13, q6,  q1\n        vbit            q14, q7,  q1\n.endif\n.endm\n\n@ The input to and output from this macro is in the registers d16-d31,\n@ and d0-d7 are used as scratch registers.\n@ p7 = d16 .. p3 = d20, p0 = d23, q0 = d24, q3 = d27, q7 = d31\n@ Depending on the width of the loop filter, we either use d16-d19\n@ and d28-d31 as temp registers, or d8-d15.\n@ In practice, this is only ever instantiated once, so the macro parameters\n@ could be hardcoded, but keeping them as is, to keep similarities to the\n@ 8 bpp and aarch64 versions.\n.macro loop_filter wd, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8\n        vdup.u16        d0,  r2          @ E\n        vdup.u16        d2,  r3          @ I\n\n        vabd.u16        d4,  d20, d21    @ abs(p3 - p2)\n        vabd.u16        d5,  d21, d22    @ abs(p2 - p1)\n        vabd.u16        d6,  d22, d23    @ abs(p1 - p0)\n        vabd.u16        d7,  d24, d25    @ abs(q0 - q1)\n        vabd.u16        \\tmp1,  d25, d26 @ abs(q1 - q2)\n        vabd.u16        \\tmp2,  d26, d27 @ abs(q2 - q3)\n        vmax.u16        d4,  d4,  d5\n        vmax.u16        d5,  d6,  d7\n        vmax.u16        \\tmp1,  \\tmp1,  \\tmp2\n        vabd.u16        d6,  d23, d24    @ abs(p0 - q0)\n        vmax.u16        d4,  d4,  d5\n        vadd.u16        d6,  d6,  d6     @ abs(p0 - q0) * 2\n        vabd.u16        d5,  d22, d25    @ abs(p1 - q1)\n        vmax.u16        d4,  d4,  \\tmp1  @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u16        d5,  d5,  #1\n        vcle.u16        d4,  d4,  d2     @ max(abs()) <= I\n        vadd.u16        d6,  d6,  d5     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u16        d6,  d6,  d0\n        vand            d4,  d4,  d6     @ fm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:7", "text": "vabd.u16        d4,  d20, d21    @ abs(p3 - p2)\n        vabd.u16        d5,  d21, d22    @ abs(p2 - p1)\n        vabd.u16        d6,  d22, d23    @ abs(p1 - p0)\n        vabd.u16        d7,  d24, d25    @ abs(q0 - q1)\n        vabd.u16        \\tmp1,  d25, d26 @ abs(q1 - q2)\n        vabd.u16        \\tmp2,  d26, d27 @ abs(q2 - q3)\n        vmax.u16        d4,  d4,  d5\n        vmax.u16        d5,  d6,  d7\n        vmax.u16        \\tmp1,  \\tmp1,  \\tmp2\n        vabd.u16        d6,  d23, d24    @ abs(p0 - q0)\n        vmax.u16        d4,  d4,  d5\n        vadd.u16        d6,  d6,  d6     @ abs(p0 - q0) * 2\n        vabd.u16        d5,  d22, d25    @ abs(p1 - q1)\n        vmax.u16        d4,  d4,  \\tmp1  @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u16        d5,  d5,  #1\n        vcle.u16        d4,  d4,  d2     @ max(abs()) <= I\n        vadd.u16        d6,  d6,  d5     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u16        d6,  d6,  d0\n        vand            d4,  d4,  d6     @ fm\n\n        vdup.u16        d3,  r4          @ H\n        vmov            r8,  r9,  d4\n        orrs            r8,  r8,  r9\n        @ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n.if \\wd >= 8\n        vdup.u16        d0,  r5\n\n        vabd.u16        d6,  d20, d23    @ abs(p3 - p0)\n        vabd.u16        d2,  d21, d23    @ abs(p2 - p0)\n        vabd.u16        d1,  d22, d23    @ abs(p1 - p0)\n        vabd.u16        \\tmp1,  d25, d24 @ abs(q1 - q0)\n        vabd.u16        \\tmp2,  d26, d24 @ abs(q2 - q0)\n        vabd.u16        \\tmp3,  d27, d24 @ abs(q3 - q0)\n        vmax.u16        d6,  d6,  d2\n        vmax.u16        d1,  d1,  \\tmp1\n        vmax.u16        \\tmp2,  \\tmp2,  \\tmp3\n.if \\wd == 16\n        vabd.u16        d7,  d16, d23    @ abs(p7 - p0)\n        vmax.u16        d6,  d6,  d1\n        vabd.u16        d2,  d17, d23    @ abs(p6 - p0)\n        vmax.u16        d6,  d6,  \\tmp2\n        vabd.u16        d1,  d18, d23    @ abs(p5 - p0)\n        vcle.u16        d6,  d6,  d0     @ flat8in\n        vabd.u16        d8,  d19, d23    @ abs(p4 - p0)\n        vand            d6,  d6,  d4     @ flat8in && fm\n        vabd.u16        d9,  d28, d24    @ abs(q4 - q0)\n        vbic            d4,  d4,  d6     @ fm && !flat8in\n        vabd.u16        d10, d29, d24    @ abs(q5 - q0)\n        vabd.u16        d11, d30, d24    @ abs(q6 - q0)\n        vabd.u16        d12, d31, d24    @ abs(q7 - q0)\n\n        vmax.u16        d7,  d7,  d2\n        vmax.u16        d1,  d1,  d8\n        vmax.u16        d9,  d9,  d10\n        vmax.u16        d11, d11, d12\n        @ The rest of the calculation of flat8out is interleaved below\n.else", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:8", "text": "vabd.u16        d7,  d16, d23    @ abs(p7 - p0)\n        vmax.u16        d6,  d6,  d1\n        vabd.u16        d2,  d17, d23    @ abs(p6 - p0)\n        vmax.u16        d6,  d6,  \\tmp2\n        vabd.u16        d1,  d18, d23    @ abs(p5 - p0)\n        vcle.u16        d6,  d6,  d0     @ flat8in\n        vabd.u16        d8,  d19, d23    @ abs(p4 - p0)\n        vand            d6,  d6,  d4     @ flat8in && fm\n        vabd.u16        d9,  d28, d24    @ abs(q4 - q0)\n        vbic            d4,  d4,  d6     @ fm && !flat8in\n        vabd.u16        d10, d29, d24    @ abs(q5 - q0)\n        vabd.u16        d11, d30, d24    @ abs(q6 - q0)\n        vabd.u16        d12, d31, d24    @ abs(q7 - q0)\n\n        vmax.u16        d7,  d7,  d2\n        vmax.u16        d1,  d1,  d8\n        vmax.u16        d9,  d9,  d10\n        vmax.u16        d11, d11, d12\n        @ The rest of the calculation of flat8out is interleaved below\n.else\n        @ The rest of the calculation of flat8in is interleaved below\n.endif\n.endif\n\n        @ Calculate the normal inner loop filter for 2 or 4 pixels\n        vabd.u16        d5,  d22, d23           @ abs(p1 - p0)\n.if \\wd == 16\n        vmax.u16        d7,  d7,  d1\n        vmax.u16        d9,  d9,  d11\n.elseif \\wd == 8\n        vmax.u16        d6,  d6,  d1\n.endif\n        vabd.u16        d1,  d25, d24           @ abs(q1 - q0)\n.if \\wd == 16\n        vmax.u16        d7,  d7,  d9\n.elseif \\wd == 8\n        vmax.u16        d6,  d6,  \\tmp2\n.endif\n        vdup.u16        \\tmp2,  r6              @ left shift for saturation\n        vsub.u16        \\tmp1,  d22, d25        @ p1 - q1\n        vneg.s16        \\tmp6,  \\tmp2           @ negative left shift after saturation\n        vmax.u16        d5,  d5,  d1            @ max(abs(p1 - p0), abs(q1 - q0))\n        vsub.u16        \\tmp3,   d24, d23       @ q0 - p0\n        vmov.s16        \\tmp5,  #3\n.if \\wd == 8\n        vcle.u16        d6,  d6,  d0            @ flat8in\n.endif\n        vcle.u16        d5,  d5,  d3            @ !hev\n.if \\wd == 8\n        vand            d6,  d6,  d4            @ flat8in && fm\n.endif\n        vqshl.s16       \\tmp1,  \\tmp1,  \\tmp2\n.if \\wd == 16\n        vcle.u16        d7,  d7,  d0            @ flat8out\n.elseif \\wd == 8\n        vbic            d4,  d4,  d6            @ fm && !flat8in\n.endif\n        vand            d5,  d5,  d4            @ !hev && fm && !flat8in\n.if \\wd == 16\n        vand            d7,  d7,  d6            @ flat8out && flat8in && fm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:9", "text": "vneg.s16        \\tmp6,  \\tmp2           @ negative left shift after saturation\n        vmax.u16        d5,  d5,  d1            @ max(abs(p1 - p0), abs(q1 - q0))\n        vsub.u16        \\tmp3,   d24, d23       @ q0 - p0\n        vmov.s16        \\tmp5,  #3\n.if \\wd == 8\n        vcle.u16        d6,  d6,  d0            @ flat8in\n.endif\n        vcle.u16        d5,  d5,  d3            @ !hev\n.if \\wd == 8\n        vand            d6,  d6,  d4            @ flat8in && fm\n.endif\n        vqshl.s16       \\tmp1,  \\tmp1,  \\tmp2\n.if \\wd == 16\n        vcle.u16        d7,  d7,  d0            @ flat8out\n.elseif \\wd == 8\n        vbic            d4,  d4,  d6            @ fm && !flat8in\n.endif\n        vand            d5,  d5,  d4            @ !hev && fm && !flat8in\n.if \\wd == 16\n        vand            d7,  d7,  d6            @ flat8out && flat8in && fm\n.endif\n        vshl.s16        \\tmp1,  \\tmp1,  \\tmp6   @ av_clip_int2p(p1 - q1, BIT_DEPTH - 1)\n\n        vmul.s16        \\tmp3,  \\tmp3,  \\tmp5   @ 3 * (q0 - p0)\n        vbic            \\tmp1,  \\tmp1,   d5     @ if (!hev) av_clip_int2p = 0\n        vmov.s16        d2,  #4\n        vadd.s16        \\tmp3,  \\tmp3,  \\tmp1   @ 3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)]\n        vmov.s16        d3,  #3\n        vqshl.s16       \\tmp1,  \\tmp3,  \\tmp2\n        vmov.s16        \\tmp5,  #0\n        vshl.s16        \\tmp1,  \\tmp1,  \\tmp6   @ av_clip_int2p(3 * (q0 - p0) [+ av_clip_int2p(p1 - q1)], BIT_DEPTH - 1) = f\n        vdup.u16        \\tmp6,  r7              @ max pixel value\n.if \\wd == 16\n        vbic            d6,  d6,  d7            @ fm && flat8in && !flat8out\n.endif\n\n        vshr.u16        \\tmp2,  \\tmp6,  #1      @ (1 << (BIT_DEPTH - 1)) - 1\n\n        vadd.s16        \\tmp3,  \\tmp1,  d2      @ f + 4\n        vadd.s16        \\tmp4,  \\tmp1,  d3      @ f + 3\n        vmin.s16        \\tmp3,  \\tmp3,  \\tmp2   @ FFMIN(f + 4, (1 << (BIT_DEPTH - 1)) - 1)\n        vmin.s16        \\tmp4,  \\tmp4,  \\tmp2   @ FFMIN(f + 3, (1 << (BIT_DEPTH - 1)) - 1)\n        vshr.s16        \\tmp3,  \\tmp3,  #3      @ f1\n        vshr.s16        \\tmp4,  \\tmp4,  #3      @ f2\n\n        vadd.s16        d0,  d23, \\tmp4         @ p0 + f2\n        vsub.s16        d2,  d24, \\tmp3         @ q0 - f1\n        vmin.s16        d0,  d0,  \\tmp6\n        vmin.s16        d2,  d2,  \\tmp6\n        vrshr.s16       \\tmp3,  \\tmp3,  #1      @ f = (f1 + 1) >> 1\n        vmax.s16        d0,  d0,  \\tmp5         @ out p0\n        vmax.s16        d2,  d2,  \\tmp5         @ out q0\n        vbit            d23, d0,  d4            @ if (fm && !flat8in)\n        vbit            d24, d2,  d4\n\n        vadd.s16        d0,  d22, \\tmp3         @ p1 + f\n        vsub.s16        d2,  d25, \\tmp3         @ q1 - f\n.if \\wd >= 8\n        vmov            r8,  r9,  d6\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:10", "text": "vmin.s16        \\tmp3,  \\tmp3,  \\tmp2   @ FFMIN(f + 4, (1 << (BIT_DEPTH - 1)) - 1)\n        vmin.s16        \\tmp4,  \\tmp4,  \\tmp2   @ FFMIN(f + 3, (1 << (BIT_DEPTH - 1)) - 1)\n        vshr.s16        \\tmp3,  \\tmp3,  #3      @ f1\n        vshr.s16        \\tmp4,  \\tmp4,  #3      @ f2\n\n        vadd.s16        d0,  d23, \\tmp4         @ p0 + f2\n        vsub.s16        d2,  d24, \\tmp3         @ q0 - f1\n        vmin.s16        d0,  d0,  \\tmp6\n        vmin.s16        d2,  d2,  \\tmp6\n        vrshr.s16       \\tmp3,  \\tmp3,  #1      @ f = (f1 + 1) >> 1\n        vmax.s16        d0,  d0,  \\tmp5         @ out p0\n        vmax.s16        d2,  d2,  \\tmp5         @ out q0\n        vbit            d23, d0,  d4            @ if (fm && !flat8in)\n        vbit            d24, d2,  d4\n\n        vadd.s16        d0,  d22, \\tmp3         @ p1 + f\n        vsub.s16        d2,  d25, \\tmp3         @ q1 - f\n.if \\wd >= 8\n        vmov            r8,  r9,  d6\n.endif\n        vmin.s16        d0,  d0,  \\tmp6\n        vmin.s16        d2,  d2,  \\tmp6\n.if \\wd >= 8\n        orrs            r8,  r8,  r9\n.endif\n        vmax.s16        d0,  d0,  \\tmp5         @ out p1\n        vmax.s16        d2,  d2,  \\tmp5         @ out q1\n        vbit            d22, d0,  d5            @ if (!hev && fm && !flat8in)\n        vbit            d25, d2,  d5\n\n.if \\wd >= 8\n        @ If no pixels need flat8in, jump to flat8out\n        @ (or to a writeout of the inner 4 pixels, for wd=8)\n        beq             6f\n\n        @ flat8in\n        vadd.u16        \\tmp1,  d20, d21\n        vadd.u16        \\tmp3,  d22, d25\n        vadd.u16        \\tmp5,  d20, d22\n        vadd.u16        \\tmp7,  d23, d26\n        vadd.u16        d0,  \\tmp1,  \\tmp1\n        vadd.u16        d0,  d0,  d23\n        vadd.u16        d0,  d0,  d24\n        vadd.u16        d0,  d0,  \\tmp5\n        vsub.s16        \\tmp3,  \\tmp3,  \\tmp1\n        vsub.s16        \\tmp7,  \\tmp7,  \\tmp5\n        vrshr.u16       d2,  d0,  #3            @ out p2\n\n        vadd.u16        d0,  d0,  \\tmp3\n        vadd.u16        \\tmp1,  d20, d23\n        vadd.u16        \\tmp3,  d24, d27\n        vrshr.u16       d3,  d0,  #3            @ out p1\n\n        vadd.u16        d0,  d0,  \\tmp7\n        vsub.s16        \\tmp3,  \\tmp3,  \\tmp1\n        vadd.u16        \\tmp5,  d21, d24\n        vadd.u16        \\tmp7,  d25, d27\n        vrshr.u16       d4,  d0,  #3            @ out p0\n\n        vadd.u16        d0,  d0,  \\tmp3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:11", "text": "vadd.u16        d0,  \\tmp1,  \\tmp1\n        vadd.u16        d0,  d0,  d23\n        vadd.u16        d0,  d0,  d24\n        vadd.u16        d0,  d0,  \\tmp5\n        vsub.s16        \\tmp3,  \\tmp3,  \\tmp1\n        vsub.s16        \\tmp7,  \\tmp7,  \\tmp5\n        vrshr.u16       d2,  d0,  #3            @ out p2\n\n        vadd.u16        d0,  d0,  \\tmp3\n        vadd.u16        \\tmp1,  d20, d23\n        vadd.u16        \\tmp3,  d24, d27\n        vrshr.u16       d3,  d0,  #3            @ out p1\n\n        vadd.u16        d0,  d0,  \\tmp7\n        vsub.s16        \\tmp3,  \\tmp3,  \\tmp1\n        vadd.u16        \\tmp5,  d21, d24\n        vadd.u16        \\tmp7,  d25, d27\n        vrshr.u16       d4,  d0,  #3            @ out p0\n\n        vadd.u16        d0,  d0,  \\tmp3\n        vsub.s16        \\tmp7,  \\tmp7,  \\tmp5\n        vadd.u16        \\tmp1,  d22, d25\n        vadd.u16        \\tmp3,  d26, d27\n        vrshr.u16       d5,  d0,  #3            @ out d0\n\n        vadd.u16        d0,  d0,  \\tmp7\n        vsub.s16        \\tmp3,  \\tmp3,  \\tmp1\n        vrshr.u16       \\tmp5,  d0,  #3         @ out q1\n\n        vadd.u16        d0,  d0,  \\tmp3\n        @ The output here is written back into the input registers. This doesn't\n        @ matter for the flat8out part below, since we only update those pixels\n        @ which won't be touched below.\n        vbit            d21, d2,  d6\n        vbit            d22, d3,  d6\n        vbit            d23, d4,  d6\n        vrshr.u16       \\tmp6,  d0,  #3         @ out q2\n        vbit            d24, d5,  d6\n        vbit            d25, \\tmp5,  d6\n        vbit            d26, \\tmp6,  d6\n.endif\n.if \\wd == 16\n6:\n        vorr            d2,  d6,  d7\n        vmov            r8,  r9,  d2\n        orrs            r8,  r8,  r9\n        @ If no pixels needed flat8in nor flat8out, jump to a\n        @ writeout of the inner 4 pixels\n        beq             7f\n        vmov            r8,  r9,  d7\n        orrs            r8,  r8,  r9\n        @ If no pixels need flat8out, jump to a writeout of the inner 6 pixels\n        beq             8f\n\n        @ flat8out\n        @ This writes all outputs into d2-d17 (skipping d6 and d16).\n        @ If this part is skipped, the output is read from d21-d26 (which is the input\n        @ to this section).\n        vshl.u16        d0,  d16, #3  @ 8 * d16\n        vsub.u16        d0,  d0,  d16 @ 7 * d16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:12", "text": ".endif\n.if \\wd == 16\n6:\n        vorr            d2,  d6,  d7\n        vmov            r8,  r9,  d2\n        orrs            r8,  r8,  r9\n        @ If no pixels needed flat8in nor flat8out, jump to a\n        @ writeout of the inner 4 pixels\n        beq             7f\n        vmov            r8,  r9,  d7\n        orrs            r8,  r8,  r9\n        @ If no pixels need flat8out, jump to a writeout of the inner 6 pixels\n        beq             8f\n\n        @ flat8out\n        @ This writes all outputs into d2-d17 (skipping d6 and d16).\n        @ If this part is skipped, the output is read from d21-d26 (which is the input\n        @ to this section).\n        vshl.u16        d0,  d16, #3  @ 8 * d16\n        vsub.u16        d0,  d0,  d16 @ 7 * d16\n        vadd.u16        d0,  d0,  d17\n        vadd.u16        d8,  d17, d18\n        vadd.u16        d10, d19, d20\n        vadd.s16        d0,  d0,  d8\n        vadd.u16        d8,  d16, d17\n        vadd.u16        d12, d21, d22\n        vadd.s16        d0,  d0,  d10\n        vadd.u16        d10, d18, d25\n        vadd.u16        d14, d23, d24\n        vsub.s16        d10, d10, d8\n        vadd.s16        d0,  d0,  d12\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d12, d16, d18\n        vadd.u16        d14, d19, d26\n        vrshr.u16       d2,  d0,  #4\n\n        vadd.s16        d0,  d0,  d10\n        vadd.u16        d8,  d16, d19\n        vadd.u16        d10, d20, d27\n        vsub.s16        d14, d14, d12\n        vbif            d2,  d17, d7\n        vrshr.u16       d3,  d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d12, d16, d20\n        vadd.u16        d14, d21, d28\n        vsub.s16        d10, d10, d8\n        vbif            d3,  d18, d7\n        vrshr.u16       d4,  d0,  #4\n\n        vadd.s16        d0,  d0,  d10\n        vadd.u16        d8,  d16, d21\n        vadd.u16        d10, d22, d29\n        vsub.s16        d14, d14, d12\n        vbif            d4,  d19, d7\n        vrshr.u16       d5,  d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d12, d16, d22\n        vadd.u16        d14, d23, d30", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:13", "text": "vbif            d2,  d17, d7\n        vrshr.u16       d3,  d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d12, d16, d20\n        vadd.u16        d14, d21, d28\n        vsub.s16        d10, d10, d8\n        vbif            d3,  d18, d7\n        vrshr.u16       d4,  d0,  #4\n\n        vadd.s16        d0,  d0,  d10\n        vadd.u16        d8,  d16, d21\n        vadd.u16        d10, d22, d29\n        vsub.s16        d14, d14, d12\n        vbif            d4,  d19, d7\n        vrshr.u16       d5,  d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d12, d16, d22\n        vadd.u16        d14, d23, d30\n        vsub.s16        d10, d10, d8\n        vbif            d5,  d20, d7\n        vrshr.u16       d6,  d0,  #4\n\n        vadd.s16        d0,  d0,  d10\n        vadd.u16        d10, d16, d23\n        vsub.s16        d14, d14, d12\n        vadd.u16        d12, d24, d31\n        vbif            d6,  d21, d7\n        vrshr.u16       d8,  d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vsub.s16        d10, d12, d10\n        vadd.u16        d12, d17, d24\n        vadd.u16        d14, d25, d31\n        vbif            d8,  d22, d7\n        vrshr.u16       d9,  d0,  #4\n\n        vadd.s16        d0,  d0,  d10\n        vsub.s16        d14, d14, d12\n        vadd.u16        d12, d26, d31\n        vbif            d9,  d23, d7\n        vrshr.u16       d10, d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d14, d18, d25\n        vadd.u16        d18, d19, d26\n        vsub.s16        d12, d12, d14\n        vadd.u16        d14, d27, d31\n        vbif            d10, d24, d7\n        vrshr.u16       d11, d0,  #4\n\n        vadd.s16        d0,  d0,  d12\n        vadd.u16        d12, d20, d27\n        vsub.s16        d14, d14, d18\n        vadd.u16        d18, d28, d31\n        vbif            d11, d25, d7\n        vsub.s16        d18, d18, d12\n        vrshr.u16       d12, d0,  #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:14", "text": "vadd.u16        d12, d26, d31\n        vbif            d9,  d23, d7\n        vrshr.u16       d10, d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d14, d18, d25\n        vadd.u16        d18, d19, d26\n        vsub.s16        d12, d12, d14\n        vadd.u16        d14, d27, d31\n        vbif            d10, d24, d7\n        vrshr.u16       d11, d0,  #4\n\n        vadd.s16        d0,  d0,  d12\n        vadd.u16        d12, d20, d27\n        vsub.s16        d14, d14, d18\n        vadd.u16        d18, d28, d31\n        vbif            d11, d25, d7\n        vsub.s16        d18, d18, d12\n        vrshr.u16       d12, d0,  #4\n\n        vadd.s16        d0,  d0,  d14\n        vadd.u16        d14, d21, d28\n        vadd.u16        d20, d29, d31\n        vbif            d12, d26, d7\n        vrshr.u16       d13, d0,  #4\n\n        vadd.s16        d0,  d0,  d18\n        vsub.s16        d20, d20, d14\n        vadd.u16        d18, d22, d29\n        vadd.u16        d22, d30, d31\n        vbif            d13, d27, d7\n        vrshr.u16       d14, d0,  #4\n\n        vadd.s16        d0,  d0,  d20\n        vsub.s16        d22, d22, d18\n        vbif            d14, d28, d7\n        vrshr.u16       d15, d0,  #4\n\n        vadd.s16        d0,  d0,  d22\n        vbif            d15, d29, d7\n        vrshr.u16       d17, d0,  #4\n        vbif            d17, d30, d7\n.endif\n.endm\n\n.macro loop_filter_q_4\n        loop_filter_q   4\n.endm\n\n.macro loop_filter_q_8\n        loop_filter_q   8\n.endm\n\n.macro loop_filter_16\n        loop_filter     16, d8,  d9,  d10, d11, d12, d13, d14, d15\n.endm\n\n\n@ The public functions in this file have got the following signature:\n@ void loop_filter(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr);", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:15", "text": "vrshr.u16       d17, d0,  #4\n        vbif            d17, d30, d7\n.endif\n.endm\n\n.macro loop_filter_q_4\n        loop_filter_q   4\n.endm\n\n.macro loop_filter_q_8\n        loop_filter_q   8\n.endm\n\n.macro loop_filter_16\n        loop_filter     16, d8,  d9,  d10, d11, d12, d13, d14, d15\n.endm\n\n\n@ The public functions in this file have got the following signature:\n@ void loop_filter(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr);\n\n.macro bpp_frontend func, bpp\nfunction ff_\\func\\()_\\bpp\\()_neon, export=1\n        push            {r4-r9,lr}\n        ldr             r4,  [sp, #28]\n        vpush           {q4-q7}\n        lsl             r2,  r2,  #\\bpp - 8\n        lsl             r3,  r3,  #\\bpp - 8\n        lsl             r4,  r4,  #\\bpp - 8\n        mov             r5,  #1 << (\\bpp - 8)\n        mov             r6,  #16 - \\bpp\n        movw            r7,  #((1 << \\bpp) - 1)\n        bl              \\func\\()_16_neon\n        vpop            {q4-q7}\n        pop             {r4-r9,pc}\nendfunc\n.endm\n\n.macro bpp_frontends func\n        bpp_frontend    \\func, 10\n        bpp_frontend    \\func, 12\n.endm\n\n.macro bpp_frontend_rep func, suffix, int_suffix, rep, dir, bpp\nfunction ff_\\func\\()_\\suffix\\()_\\bpp\\()_neon, export=1\n        push            {r4-r9,lr}\n        ldr             r4,  [sp, #28]\n        vpush           {q4-q7}\n        lsl             r2,  r2,  #\\bpp - 8\n        lsl             r3,  r3,  #\\bpp - 8\n        lsl             r4,  r4,  #\\bpp - 8\n        mov             r5,  #1 << (\\bpp - 8)\n        mov             r6,  #16 - \\bpp\n        movw            r7,  #((1 << \\bpp) - 1)\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.ifc \\dir,h\n        add             r0,  r0,  r1, lsl #2\n.else\n        add             r0,  r0,  #8\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:16", "text": "bpp_frontend    \\func, 12\n.endm\n\n.macro bpp_frontend_rep func, suffix, int_suffix, rep, dir, bpp\nfunction ff_\\func\\()_\\suffix\\()_\\bpp\\()_neon, export=1\n        push            {r4-r9,lr}\n        ldr             r4,  [sp, #28]\n        vpush           {q4-q7}\n        lsl             r2,  r2,  #\\bpp - 8\n        lsl             r3,  r3,  #\\bpp - 8\n        lsl             r4,  r4,  #\\bpp - 8\n        mov             r5,  #1 << (\\bpp - 8)\n        mov             r6,  #16 - \\bpp\n        movw            r7,  #((1 << \\bpp) - 1)\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.ifc \\dir,h\n        add             r0,  r0,  r1, lsl #2\n.else\n        add             r0,  r0,  #8\n.endif\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.if \\rep >= 4\n.ifc \\dir,h\n        add             r0,  r0,  r1, lsl #2\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n        add             r0,  r0,  r1, lsl #2\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.else\n        add             r0,  r0,  #8\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n        add             r0,  r0,  #8\n        bl              \\func\\()_\\int_suffix\\()_16_neon\n.endif\n.endif\n        vpop            {q4-q7}\n        pop             {r4-r9,pc}\nendfunc\n.endm\n\n.macro bpp_frontends_rep func, suffix, int_suffix, rep, dir\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\rep, \\dir, 10\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\rep, \\dir, 12\n.endm\n\n.macro bpp_frontend_mix2 wd1, wd2, dir, bpp\nfunction ff_vp9_loop_filter_\\dir\\()_\\wd1\\()\\wd2\\()_16_\\bpp\\()_neon, export=1\n        push            {r4-r9,lr}\n        ldr             r4,  [sp, #28]\n        vpush           {q4-q7}\n        push            {r2, r3, r4}\n        and             r2,  r2,  #0xff\n        and             r3,  r3,  #0xff\n        and             r4,  r4,  #0xff\n        lsl             r2,  r2,  #\\bpp - 8\n        lsl             r3,  r3,  #\\bpp - 8\n        lsl             r4,  r4,  #\\bpp - 8\n        mov             r5,  #1 << (\\bpp - 8)\n        mov             r6,  #16 - \\bpp\n        movw            r7,  #((1 << \\bpp) - 1)\n        bl              vp9_loop_filter_\\dir\\()_\\wd1\\()_8_16_neon", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:17", "text": "bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\rep, \\dir, 10\n        bpp_frontend_rep \\func, \\suffix, \\int_suffix, \\rep, \\dir, 12\n.endm\n\n.macro bpp_frontend_mix2 wd1, wd2, dir, bpp\nfunction ff_vp9_loop_filter_\\dir\\()_\\wd1\\()\\wd2\\()_16_\\bpp\\()_neon, export=1\n        push            {r4-r9,lr}\n        ldr             r4,  [sp, #28]\n        vpush           {q4-q7}\n        push            {r2, r3, r4}\n        and             r2,  r2,  #0xff\n        and             r3,  r3,  #0xff\n        and             r4,  r4,  #0xff\n        lsl             r2,  r2,  #\\bpp - 8\n        lsl             r3,  r3,  #\\bpp - 8\n        lsl             r4,  r4,  #\\bpp - 8\n        mov             r5,  #1 << (\\bpp - 8)\n        mov             r6,  #16 - \\bpp\n        movw            r7,  #((1 << \\bpp) - 1)\n        bl              vp9_loop_filter_\\dir\\()_\\wd1\\()_8_16_neon\n.ifc \\dir,h\n        add             r0,  r0,  r1, lsl #3\n.else\n        add             r0,  r0,  #16\n.endif\n        pop             {r2, r3, r4}\n        lsr             r2,  r2,  #8\n        lsr             r3,  r3,  #8\n        lsr             r4,  r4,  #8\n        lsl             r2,  r2,  #\\bpp - 8\n        lsl             r3,  r3,  #\\bpp - 8\n        lsl             r4,  r4,  #\\bpp - 8\n        bl              vp9_loop_filter_\\dir\\()_\\wd2\\()_8_16_neon\n        vpop            {q4-q7}\n        pop             {r4-r9,pc}\nendfunc\n.endm\n\n.macro bpp_frontends_mix2 wd1, wd2\n        bpp_frontend_mix2 \\wd1, \\wd2, v, 10\n        bpp_frontend_mix2 \\wd1, \\wd2, v, 12\n        bpp_frontend_mix2 \\wd1, \\wd2, h, 10\n        bpp_frontend_mix2 \\wd1, \\wd2, h, 12\n.endm\n\nfunction vp9_loop_filter_v_4_8_16_neon\n        sub             r12, r0,  r1, lsl #2\n        vld1.16         {q8},  [r12,:128], r1 @ p3\n        vld1.16         {q12}, [r0, :128], r1 @ q0\n        vld1.16         {q9},  [r12,:128], r1 @ p2\n        vld1.16         {q13}, [r0, :128], r1 @ q1\n        vld1.16         {q10}, [r12,:128], r1 @ p1\n        vld1.16         {q14}, [r0, :128], r1 @ q2\n        vld1.16         {q11}, [r12,:128], r1 @ p0\n        vld1.16         {q15}, [r0, :128], r1 @ q3\n        sub             r0,  r0,  r1, lsl #2\n        sub             r12, r12, r1, lsl #1\n\n        loop_filter_q_4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:18", "text": "bpp_frontend_mix2 \\wd1, \\wd2, v, 12\n        bpp_frontend_mix2 \\wd1, \\wd2, h, 10\n        bpp_frontend_mix2 \\wd1, \\wd2, h, 12\n.endm\n\nfunction vp9_loop_filter_v_4_8_16_neon\n        sub             r12, r0,  r1, lsl #2\n        vld1.16         {q8},  [r12,:128], r1 @ p3\n        vld1.16         {q12}, [r0, :128], r1 @ q0\n        vld1.16         {q9},  [r12,:128], r1 @ p2\n        vld1.16         {q13}, [r0, :128], r1 @ q1\n        vld1.16         {q10}, [r12,:128], r1 @ p1\n        vld1.16         {q14}, [r0, :128], r1 @ q2\n        vld1.16         {q11}, [r12,:128], r1 @ p0\n        vld1.16         {q15}, [r0, :128], r1 @ q3\n        sub             r0,  r0,  r1, lsl #2\n        sub             r12, r12, r1, lsl #1\n\n        loop_filter_q_4\n\n        vst1.16         {q10}, [r12,:128], r1\n        vst1.16         {q12}, [r0, :128], r1\n        vst1.16         {q11}, [r12,:128], r1\n        vst1.16         {q13}, [r0, :128], r1\n        sub             r0,  r0,  r1, lsl #1\n9:\n        bx              lr\nendfunc\n\nbpp_frontends vp9_loop_filter_v_4_8\n\n\nfunction vp9_loop_filter_h_4_8_16_neon\n        sub             r12, r0,  #8\n        add             r0,  r12, r1, lsl #2\n        vld1.16         {q8},  [r12,:64], r1\n        vld1.16         {q12}, [r0, :64], r1\n        vld1.16         {q9},  [r12,:64], r1\n        vld1.16         {q13}, [r0, :64], r1\n        vld1.16         {q10}, [r12,:64], r1\n        vld1.16         {q14}, [r0, :64], r1\n        vld1.16         {q11}, [r12,:64], r1\n        vld1.16         {q15}, [r0, :64], r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        @ Move r0/r12 forward by 2 pixels; we don't need to rewrite the\n        @ outermost 2 pixels since they aren't changed.\n        add             r12, r12, #4\n        add             r0,  r0,  #4\n\n        transpose16_q_8x8 q8, q9, q10, q11, q12, q13, q14, q15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31\n\n        loop_filter_q_4\n\n        @ We only will write the mid 4 pixels back; after the loop filter,\n        @ these are in q10, q11, q12, q13, ordered as rows (8x4 pixels).\n        @ We need to transpose them to columns, done with a\n        @ 4x4 transpose (which in practice is two 4x4 transposes of the two\n        @ 4x4 halves of the 8x4 pixels; into 4x8 pixels).", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:19", "text": "vld1.16         {q14}, [r0, :64], r1\n        vld1.16         {q11}, [r12,:64], r1\n        vld1.16         {q15}, [r0, :64], r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        @ Move r0/r12 forward by 2 pixels; we don't need to rewrite the\n        @ outermost 2 pixels since they aren't changed.\n        add             r12, r12, #4\n        add             r0,  r0,  #4\n\n        transpose16_q_8x8 q8, q9, q10, q11, q12, q13, q14, q15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31\n\n        loop_filter_q_4\n\n        @ We only will write the mid 4 pixels back; after the loop filter,\n        @ these are in q10, q11, q12, q13, ordered as rows (8x4 pixels).\n        @ We need to transpose them to columns, done with a\n        @ 4x4 transpose (which in practice is two 4x4 transposes of the two\n        @ 4x4 halves of the 8x4 pixels; into 4x8 pixels).\n        transpose16_4x4 q10, q11, q12, q13\n\n        vst1.16         {d20}, [r12], r1\n        vst1.16         {d21}, [r0],  r1\n        vst1.16         {d22}, [r12], r1\n        vst1.16         {d23}, [r0],  r1\n        vst1.16         {d24}, [r12], r1\n        vst1.16         {d25}, [r0],  r1\n        vst1.16         {d26}, [r12], r1\n        vst1.16         {d27}, [r0],  r1\n        sub             r12, r12, r1, lsl #2\n9:\n        add             r0,  r12, #4\n        bx              lr\nendfunc\n\nbpp_frontends vp9_loop_filter_h_4_8\n\n\nfunction vp9_loop_filter_v_8_8_16_neon\n        sub             r12, r0,  r1, lsl #2\n        vld1.16         {q8},  [r12,:128], r1 @ p3\n        vld1.16         {q12}, [r0, :128], r1 @ q0\n        vld1.16         {q9},  [r12,:128], r1 @ p2\n        vld1.16         {q13}, [r0, :128], r1 @ q1\n        vld1.16         {q10}, [r12,:128], r1 @ p1\n        vld1.16         {q14}, [r0, :128], r1 @ q2\n        vld1.16         {q11}, [r12,:128], r1 @ p0\n        vld1.16         {q15}, [r0, :128], r1 @ q3\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        add             r12, r12, r1\n\n        loop_filter_q_8\n\n        vst1.16         {q9},  [r12,:128], r1\n        vst1.16         {q12}, [r0, :128], r1\n        vst1.16         {q10}, [r12,:128], r1\n        vst1.16         {q13}, [r0, :128], r1\n        vst1.16         {q11}, [r12,:128], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:20", "text": "sub             r12, r0,  r1, lsl #2\n        vld1.16         {q8},  [r12,:128], r1 @ p3\n        vld1.16         {q12}, [r0, :128], r1 @ q0\n        vld1.16         {q9},  [r12,:128], r1 @ p2\n        vld1.16         {q13}, [r0, :128], r1 @ q1\n        vld1.16         {q10}, [r12,:128], r1 @ p1\n        vld1.16         {q14}, [r0, :128], r1 @ q2\n        vld1.16         {q11}, [r12,:128], r1 @ p0\n        vld1.16         {q15}, [r0, :128], r1 @ q3\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        add             r12, r12, r1\n\n        loop_filter_q_8\n\n        vst1.16         {q9},  [r12,:128], r1\n        vst1.16         {q12}, [r0, :128], r1\n        vst1.16         {q10}, [r12,:128], r1\n        vst1.16         {q13}, [r0, :128], r1\n        vst1.16         {q11}, [r12,:128], r1\n        vst1.16         {q14}, [r0, :128], r1\n        sub             r0,  r0,  r1, lsl #1\n        sub             r0,  r0,  r1\n9:\n        bx              lr\n6:\n        sub             r12, r0,  r1, lsl #1\n        vst1.16         {q10}, [r12,:128], r1\n        vst1.16         {q12}, [r0, :128], r1\n        vst1.16         {q11}, [r12,:128], r1\n        vst1.16         {q13}, [r0, :128], r1\n        sub             r0,  r0,  r1, lsl #1\n        bx              lr\nendfunc\n\nbpp_frontends vp9_loop_filter_v_8_8\n\n\nfunction vp9_loop_filter_h_8_8_16_neon\n        sub             r12, r0,  #8\n        add             r0,  r12, r1, lsl #2\n        vld1.16         {q8},  [r12,:64], r1\n        vld1.16         {q12}, [r0, :64], r1\n        vld1.16         {q9},  [r12,:64], r1\n        vld1.16         {q13}, [r0, :64], r1\n        vld1.16         {q10}, [r12,:64], r1\n        vld1.16         {q14}, [r0, :64], r1\n        vld1.16         {q11}, [r12,:64], r1\n        vld1.16         {q15}, [r0, :64], r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n\n        transpose16_q_8x8 q8, q9, q10, q11, q12, q13, q14, q15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31\n\n        loop_filter_q_8\n\n        @ Even though only 6 pixels per row have been changed, we write the\n        @ full 8 pixel registers.\n        transpose16_q_8x8 q8, q9, q10, q11, q12, q13, q14, q15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:21", "text": "add             r0,  r12, r1, lsl #2\n        vld1.16         {q8},  [r12,:64], r1\n        vld1.16         {q12}, [r0, :64], r1\n        vld1.16         {q9},  [r12,:64], r1\n        vld1.16         {q13}, [r0, :64], r1\n        vld1.16         {q10}, [r12,:64], r1\n        vld1.16         {q14}, [r0, :64], r1\n        vld1.16         {q11}, [r12,:64], r1\n        vld1.16         {q15}, [r0, :64], r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n\n        transpose16_q_8x8 q8, q9, q10, q11, q12, q13, q14, q15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31\n\n        loop_filter_q_8\n\n        @ Even though only 6 pixels per row have been changed, we write the\n        @ full 8 pixel registers.\n        transpose16_q_8x8 q8, q9, q10, q11, q12, q13, q14, q15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31\n\n        vst1.16         {q8},  [r12,:64], r1\n        vst1.16         {q12}, [r0, :64], r1\n        vst1.16         {q9},  [r12,:64], r1\n        vst1.16         {q13}, [r0, :64], r1\n        vst1.16         {q10}, [r12,:64], r1\n        vst1.16         {q14}, [r0, :64], r1\n        vst1.16         {q11}, [r12,:64], r1\n        vst1.16         {q15}, [r0, :64], r1\n        sub             r12, r12, r1, lsl #2\n9:\n        add             r0,  r12, #8\n        bx              lr\n6:\n        @ If we didn't need to do the flat8in part, we use the same writeback\n        @ as in loop_filter_h_4_8.\n        add             r12, r12, #4\n        add             r0,  r0,  #4\n        transpose16_4x4 q10, q11, q12, q13\n\n        vst1.16         {d20}, [r12], r1\n        vst1.16         {d21}, [r0],  r1\n        vst1.16         {d22}, [r12], r1\n        vst1.16         {d23}, [r0],  r1\n        vst1.16         {d24}, [r12], r1\n        vst1.16         {d25}, [r0],  r1\n        vst1.16         {d26}, [r12], r1\n        vst1.16         {d27}, [r0],  r1\n        sub             r12, r12, r1, lsl #2\n        add             r0,  r12, #4\n        bx              lr\nendfunc\n\nbpp_frontends vp9_loop_filter_h_8_8\n\nbpp_frontends_mix2 4, 4\nbpp_frontends_mix2 4, 8\nbpp_frontends_mix2 8, 4\nbpp_frontends_mix2 8, 8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:22", "text": "vst1.16         {d20}, [r12], r1\n        vst1.16         {d21}, [r0],  r1\n        vst1.16         {d22}, [r12], r1\n        vst1.16         {d23}, [r0],  r1\n        vst1.16         {d24}, [r12], r1\n        vst1.16         {d25}, [r0],  r1\n        vst1.16         {d26}, [r12], r1\n        vst1.16         {d27}, [r0],  r1\n        sub             r12, r12, r1, lsl #2\n        add             r0,  r12, #4\n        bx              lr\nendfunc\n\nbpp_frontends vp9_loop_filter_h_8_8\n\nbpp_frontends_mix2 4, 4\nbpp_frontends_mix2 4, 8\nbpp_frontends_mix2 8, 4\nbpp_frontends_mix2 8, 8\n\nfunction vp9_loop_filter_v_16_4_16_neon\n        sub             r12, r0,  r1, lsl #3\n        @ Read p7-p0 using r12 and q0-q7 using r0\n        vld1.16         {d16}, [r12,:64], r1 @ p7\n        vld1.16         {d24}, [r0, :64], r1 @ q0\n        vld1.16         {d17}, [r12,:64], r1 @ p6\n        vld1.16         {d25}, [r0, :64], r1 @ q1\n        vld1.16         {d18}, [r12,:64], r1 @ p5\n        vld1.16         {d26}, [r0, :64], r1 @ q2\n        vld1.16         {d19}, [r12,:64], r1 @ p4\n        vld1.16         {d27}, [r0, :64], r1 @ q3\n        vld1.16         {d20}, [r12,:64], r1 @ p3\n        vld1.16         {d28}, [r0, :64], r1 @ q4\n        vld1.16         {d21}, [r12,:64], r1 @ p2\n        vld1.16         {d29}, [r0, :64], r1 @ q5\n        vld1.16         {d22}, [r12,:64], r1 @ p1\n        vld1.16         {d30}, [r0, :64], r1 @ q6\n        vld1.16         {d23}, [r12,:64], r1 @ p0\n        vld1.16         {d31}, [r0, :64], r1 @ q7\n        sub             r12, r12, r1, lsl #3\n        sub             r0,  r0,  r1, lsl #3\n        add             r12, r12, r1\n\n        loop_filter_16\n\n        @ If we did the flat8out part, we get the output in\n        @ d2-d17 (skipping d7 and d16). r12 points to r0 - 7 * stride,\n        @ store d2-d9 there, and d10-d17 into r0.\n        vst1.16         {d2},  [r12,:64], r1\n        vst1.16         {d10}, [r0, :64], r1\n        vst1.16         {d3},  [r12,:64], r1\n        vst1.16         {d11}, [r0, :64], r1\n        vst1.16         {d4},  [r12,:64], r1\n        vst1.16         {d12}, [r0, :64], r1\n        vst1.16         {d5},  [r12,:64], r1\n        vst1.16         {d13}, [r0, :64], r1\n        vst1.16         {d6},  [r12,:64], r1\n        vst1.16         {d14}, [r0, :64], r1\n        vst1.16         {d8},  [r12,:64], r1\n        vst1.16         {d15}, [r0, :64], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:23", "text": "sub             r0,  r0,  r1, lsl #3\n        add             r12, r12, r1\n\n        loop_filter_16\n\n        @ If we did the flat8out part, we get the output in\n        @ d2-d17 (skipping d7 and d16). r12 points to r0 - 7 * stride,\n        @ store d2-d9 there, and d10-d17 into r0.\n        vst1.16         {d2},  [r12,:64], r1\n        vst1.16         {d10}, [r0, :64], r1\n        vst1.16         {d3},  [r12,:64], r1\n        vst1.16         {d11}, [r0, :64], r1\n        vst1.16         {d4},  [r12,:64], r1\n        vst1.16         {d12}, [r0, :64], r1\n        vst1.16         {d5},  [r12,:64], r1\n        vst1.16         {d13}, [r0, :64], r1\n        vst1.16         {d6},  [r12,:64], r1\n        vst1.16         {d14}, [r0, :64], r1\n        vst1.16         {d8},  [r12,:64], r1\n        vst1.16         {d15}, [r0, :64], r1\n        vst1.16         {d9},  [r12,:64], r1\n        vst1.16         {d17}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  r1\n\n9:\n        bx              lr\n\n8:\n        add             r12, r12, r1, lsl #2\n        @ If we didn't do the flat8out part, the output is left in the\n        @ input registers.\n        vst1.16         {d21}, [r12,:64], r1\n        vst1.16         {d24}, [r0, :64], r1\n        vst1.16         {d22}, [r12,:64], r1\n        vst1.16         {d25}, [r0, :64], r1\n        vst1.16         {d23}, [r12,:64], r1\n        vst1.16         {d26}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #1\n        sub             r0,  r0,  r1\n        bx              lr\n7:\n        sub             r12, r0,  r1, lsl #1\n        vst1.16         {d22}, [r12,:64], r1\n        vst1.16         {d24}, [r0, :64], r1\n        vst1.16         {d23}, [r12,:64], r1\n        vst1.16         {d25}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #1\n        bx              lr\nendfunc\n\nbpp_frontends_rep vp9_loop_filter_v_16, 8,  4, 2, v\nbpp_frontends_rep vp9_loop_filter_v_16, 16, 4, 4, v\n\nfunction vp9_loop_filter_h_16_4_16_neon\n        sub             r12, r0,  #16\n        sub             r0,  r0,  #8\n        vld1.16         {d16}, [r12,:64], r1\n        vld1.16         {d20}, [r0, :64], r1\n        vld1.16         {d17}, [r12,:64], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:24", "text": "bx              lr\n7:\n        sub             r12, r0,  r1, lsl #1\n        vst1.16         {d22}, [r12,:64], r1\n        vst1.16         {d24}, [r0, :64], r1\n        vst1.16         {d23}, [r12,:64], r1\n        vst1.16         {d25}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #1\n        bx              lr\nendfunc\n\nbpp_frontends_rep vp9_loop_filter_v_16, 8,  4, 2, v\nbpp_frontends_rep vp9_loop_filter_v_16, 16, 4, 4, v\n\nfunction vp9_loop_filter_h_16_4_16_neon\n        sub             r12, r0,  #16\n        sub             r0,  r0,  #8\n        vld1.16         {d16}, [r12,:64], r1\n        vld1.16         {d20}, [r0, :64], r1\n        vld1.16         {d17}, [r12,:64], r1\n        vld1.16         {d21}, [r0, :64], r1\n        vld1.16         {d18}, [r12,:64], r1\n        vld1.16         {d22}, [r0, :64], r1\n        vld1.16         {d19}, [r12,:64], r1\n        vld1.16         {d23}, [r0, :64], r1\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        add             r12, r12, #16\n        add             r0,  r0,  #16\n        vld1.16         {d24}, [r12,:64], r1\n        vld1.16         {d28}, [r0, :64], r1\n        vld1.16         {d25}, [r12,:64], r1\n        vld1.16         {d29}, [r0, :64], r1\n        vld1.16         {d26}, [r12,:64], r1\n        vld1.16         {d30}, [r0, :64], r1\n        vld1.16         {d27}, [r12,:64], r1\n        vld1.16         {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #2\n        sub             r12, r12, r1, lsl #2\n        sub             r12, r12, #16\n        sub             r0,  r0,  #16\n\n        @ The 16x4 pixels read above is in four 4x4 blocks\n        transpose16_q_4x4 q8,  q9,  d16, d17, d18, d19\n        transpose16_q_4x4 q10, q11, d20, d21, d22, d23\n        transpose16_q_4x4 q12, q13, d24, d25, d26, d27\n        transpose16_q_4x4 q14, q15, d28, d29, d30, d31\n\n        loop_filter_16\n\n        @ Transpose back; this is the same transpose as above, but\n        @ we can't take advantage of q registers for the transpose, since\n        @ all d registers in the transpose aren't consecutive.\n        transpose16_4x4 d16, d2,  d3,  d4\n        transpose16_4x4 d5,  d6,  d8,  d9\n        transpose16_4x4 d10, d11, d12, d13\n        transpose16_4x4 d14, d15, d17, d31\n\n        vst1.16         {d16}, [r12,:64], r1\n        vst1.16         {d5},  [r0, :64], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:25", "text": "sub             r0,  r0,  #16\n\n        @ The 16x4 pixels read above is in four 4x4 blocks\n        transpose16_q_4x4 q8,  q9,  d16, d17, d18, d19\n        transpose16_q_4x4 q10, q11, d20, d21, d22, d23\n        transpose16_q_4x4 q12, q13, d24, d25, d26, d27\n        transpose16_q_4x4 q14, q15, d28, d29, d30, d31\n\n        loop_filter_16\n\n        @ Transpose back; this is the same transpose as above, but\n        @ we can't take advantage of q registers for the transpose, since\n        @ all d registers in the transpose aren't consecutive.\n        transpose16_4x4 d16, d2,  d3,  d4\n        transpose16_4x4 d5,  d6,  d8,  d9\n        transpose16_4x4 d10, d11, d12, d13\n        transpose16_4x4 d14, d15, d17, d31\n\n        vst1.16         {d16}, [r12,:64], r1\n        vst1.16         {d5},  [r0, :64], r1\n\n        vst1.16         {d2},  [r12,:64], r1\n        vst1.16         {d6},  [r0, :64], r1\n\n        vst1.16         {d3},  [r12,:64], r1\n        vst1.16         {d8},  [r0, :64], r1\n\n        vst1.16         {d4},  [r12,:64], r1\n        vst1.16         {d9},  [r0, :64], r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        add             r12, r12, #16\n        add             r0,  r0,  #16\n\n        vst1.16         {d10}, [r12,:64], r1\n        vst1.16         {d14}, [r0, :64], r1\n\n        vst1.16         {d11}, [r12,:64], r1\n        vst1.16         {d15}, [r0, :64], r1\n\n        vst1.16         {d12}, [r12,:64], r1\n        vst1.16         {d17}, [r0, :64], r1\n\n        vst1.16         {d13}, [r12,:64], r1\n        vst1.16         {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #2\n        sub             r0,  r0,  #8\n        bx              lr\n9:\n        add             r0,  r0,  #8\n        bx              lr\n8:\n        add             r12, r12, #8\n        add             r0,  r0,  #8\n        transpose16_q_4x4 q10, q11, d20, d21, d22, d23\n        transpose16_q_4x4 q12, q13, d24, d25, d26, d27\n\n        vst1.16         {d20}, [r12,:64], r1\n        vst1.16         {d24}, [r0, :64], r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:26", "text": "vst1.16         {d12}, [r12,:64], r1\n        vst1.16         {d17}, [r0, :64], r1\n\n        vst1.16         {d13}, [r12,:64], r1\n        vst1.16         {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #2\n        sub             r0,  r0,  #8\n        bx              lr\n9:\n        add             r0,  r0,  #8\n        bx              lr\n8:\n        add             r12, r12, #8\n        add             r0,  r0,  #8\n        transpose16_q_4x4 q10, q11, d20, d21, d22, d23\n        transpose16_q_4x4 q12, q13, d24, d25, d26, d27\n\n        vst1.16         {d20}, [r12,:64], r1\n        vst1.16         {d24}, [r0, :64], r1\n        vst1.16         {d21}, [r12,:64], r1\n        vst1.16         {d25}, [r0, :64], r1\n        vst1.16         {d22}, [r12,:64], r1\n        vst1.16         {d26}, [r0, :64], r1\n        vst1.16         {d23}, [r12,:64], r1\n        vst1.16         {d27}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #2\n        bx              lr\n7:\n        add             r12, r12, #12\n        add             r0,  r12, r1, lsl #1\n        transpose16_q_4x4 q11, q12, d22, d23, d24, d25\n\n        vst1.16         {d22}, [r12], r1\n        vst1.16         {d24}, [r0],  r1\n        vst1.16         {d23}, [r12], r1\n        vst1.16         {d25}, [r0],  r1\n        sub             r0,  r0,  r1, lsl #2\n        add             r0,  r0,  #4\n        bx              lr\nendfunc\n\nbpp_frontends_rep vp9_loop_filter_h_16, 8,  4, 2, h\nbpp_frontends_rep vp9_loop_filter_h_16, 16, 4, 4, h", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 1001, "line_end": 1044}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:1", "text": "/*\n * Copyright (c) 2017 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro transpose16_q_8x8 rq0, rq1, rq2, rq3, rq4, rq5, rq6, rq7, r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15\n        vswp             \\r1,  \\r8  @ vtrn.64 \\rq0, \\rq4\n        vswp             \\r3,  \\r10 @ vtrn.64 \\rq1, \\rq5\n        vswp             \\r5,  \\r12 @ vtrn.64 \\rq2, \\rq6\n        vswp             \\r7,  \\r14 @ vtrn.64 \\rq3, \\rq7\n        vtrn.32          \\rq0, \\rq2\n        vtrn.32          \\rq1, \\rq3\n        vtrn.32          \\rq4, \\rq6\n        vtrn.32          \\rq5, \\rq7\n        vtrn.16          \\rq0, \\rq1\n        vtrn.16          \\rq2, \\rq3\n        vtrn.16          \\rq4, \\rq5\n        vtrn.16          \\rq6, \\rq7\n.endm\n\n.macro transpose16_4x4 r0, r1, r2, r3\n        vtrn.32          \\r0, \\r2\n        vtrn.32          \\r1, \\r3\n        vtrn.16          \\r0, \\r1\n        vtrn.16          \\r2, \\r3\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose16_q_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n@ The input to and output from this macro is in the registers q8-q15,\n@ and q0-q7 are used as scratch registers.\n@ p3 = q8, p0 = q11, q0 = q12, q3 = q15\n.macro loop_filter_q wd\n        vdup.u16        q0,  r2          @ E\n        vdup.u16        q1,  r3          @ I", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_16bpp_neon.S:2", "text": "vtrn.16          \\r0, \\r1\n        vtrn.16          \\r2, \\r3\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose16_q_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.32         \\rq0, \\rq1\n        vtrn.16         \\r0,  \\r1\n        vtrn.16         \\r2,  \\r3\n.endm\n\n@ The input to and output from this macro is in the registers q8-q15,\n@ and q0-q7 are used as scratch registers.\n@ p3 = q8, p0 = q11, q0 = q12, q3 = q15\n.macro loop_filter_q wd\n        vdup.u16        q0,  r2          @ E\n        vdup.u16        q1,  r3          @ I\n\n        vabd.u16        q2,  q8,  q9     @ abs(p3 - p2)\n        vabd.u16        q3,  q9,  q10    @ abs(p2 - p1)\n        vabd.u16        q4,  q10, q11    @ abs(p1 - p0)\n        vabd.u16        q5,  q12, q13    @ abs(q0 - q1)\n        vabd.u16        q6,  q13, q14    @ abs(q1 - q2)\n        vabd.u16        q7,  q14, q15    @ abs(q2 - q3)\n        vmax.u16        q2,  q2,  q3\n        vmax.u16        q3,  q4,  q5\n        vmax.u16        q4,  q6,  q7\n        vabd.u16        q5,  q11, q12    @ abs(p0 - q0)\n        vmax.u16        q2,  q2,  q3\n        vadd.u16        q5,  q5,  q5     @ abs(p0 - q0) * 2\n        vabd.u16        q6,  q10, q13    @ abs(p1 - q1)\n        vmax.u16        q2,  q2,  q4     @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u16        q6,  q6,  #1\n        vcle.u16        q2,  q2,  q1     @ max(abs()) <= I\n        vadd.u16        q5,  q5,  q6     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u16        q5,  q5,  q0\n        vand            q2,  q2,  q5     @ fm\n\n        vmovn.u16       d10, q2\n        vmov            r8,  r9,  d10\n        orrs            r8,  r8,  r9\n        @ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n.if \\wd >= 8\n        vdup.u16        q0,  r5\n\n        vabd.u16        q1,  q8,  q11    @ abs(p3 - p0)\n        vabd.u16        q3,  q9,  q11    @ abs(p2 - p0)\n        vabd.u16        q4,  q10, q11    @ abs(p1 - p0)\n        vabd.u16        q5,  q13, q12    @ abs(q1 - q0)\n        vabd.u16        q6,  q14, q12    @ abs(q2 - q0)\n        vabd.u16        q7,  q15, q12    @ abs(q3 - q0)\n        vmax.u16        q1,  q1,  q3\n        vmax.u16        q4,  q4,  q5\n        vmax.u16        q6,  q6,  q7\n        @ The rest of the calculation of flat8in is interleaved below\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_16bpp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9lpf_16bpp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:1", "text": "/*\n * Copyright (c) 2016 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n#include \"neon.S\"\n\n@ Do an 8x8 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1, etc\n.macro transpose_q_8x8 rq0, rq1, rq2, rq3, r0, r1, r2, r3, r4, r5, r6, r7\n        vtrn.32         \\rq0, \\rq2\n        vtrn.32         \\rq1, \\rq3\n        vtrn.16         \\rq0, \\rq1\n        vtrn.16         \\rq2, \\rq3\n        vtrn.8          \\r0,  \\r1\n        vtrn.8          \\r2,  \\r3\n        vtrn.8          \\r4,  \\r5\n        vtrn.8          \\r6,  \\r7\n.endm\n\n@ Do a 4x4 transpose, using q registers for the subtransposes that don't\n@ need to address the indiviudal d registers.\n@ r0,r1 == rq0, r2,r3 == rq1\n.macro transpose_q_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.16         \\rq0, \\rq1\n        vtrn.8          \\r0,  \\r1\n        vtrn.8          \\r2,  \\r3\n.endm\n\n@ The input to and output from this macro is in the registers q8-q15,\n@ and q0-q7 are used as scratch registers.\n@ p3 = q8, p0 = q11, q0 = q12, q3 = q15\n.macro loop_filter_q\n        vdup.u8         d0,  r2          @ E\n        lsr             r2,  r2,  #8\n        vdup.u8         d2,  r3          @ I\n        lsr             r3,  r3,  #8\n        vdup.u8         d1,  r2          @ E\n        vdup.u8         d3,  r3          @ I\n\n        vabd.u8         q2,  q8,  q9     @ abs(p3 - p2)\n        vabd.u8         q3,  q9,  q10    @ abs(p2 - p1)\n        vabd.u8         q4,  q10, q11    @ abs(p1 - p0)", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:2", "text": ".macro transpose_q_4x4 rq0, rq1, r0, r1, r2, r3\n        vtrn.16         \\rq0, \\rq1\n        vtrn.8          \\r0,  \\r1\n        vtrn.8          \\r2,  \\r3\n.endm\n\n@ The input to and output from this macro is in the registers q8-q15,\n@ and q0-q7 are used as scratch registers.\n@ p3 = q8, p0 = q11, q0 = q12, q3 = q15\n.macro loop_filter_q\n        vdup.u8         d0,  r2          @ E\n        lsr             r2,  r2,  #8\n        vdup.u8         d2,  r3          @ I\n        lsr             r3,  r3,  #8\n        vdup.u8         d1,  r2          @ E\n        vdup.u8         d3,  r3          @ I\n\n        vabd.u8         q2,  q8,  q9     @ abs(p3 - p2)\n        vabd.u8         q3,  q9,  q10    @ abs(p2 - p1)\n        vabd.u8         q4,  q10, q11    @ abs(p1 - p0)\n        vabd.u8         q5,  q12, q13    @ abs(q0 - q1)\n        vabd.u8         q6,  q13, q14    @ abs(q1 - q2)\n        vabd.u8         q7,  q14, q15    @ abs(q2 - q3)\n        vmax.u8         q2,  q2,  q3\n        vmax.u8         q3,  q4,  q5\n        vmax.u8         q4,  q6,  q7\n        vabd.u8         q5,  q11, q12    @ abs(p0 - q0)\n        vmax.u8         q2,  q2,  q3\n        vqadd.u8        q5,  q5,  q5     @ abs(p0 - q0) * 2\n        vabd.u8         q7,  q10, q13    @ abs(p1 - q1)\n        vmax.u8         q2,  q2,  q4     @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u8         q7,  q7,  #1\n        vcle.u8         q2,  q2,  q1     @ max(abs()) <= I\n        vqadd.u8        q5,  q5,  q7     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u8         q5,  q5,  q0\n        vand            q2,  q2,  q5     @ fm\n\n        vshrn.u16       d10, q2,  #4\n        vmov            r2,  r3,  d10\n        orrs            r2,  r2,  r3\n        @ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n        @ Calculate the normal inner loop filter for 2 or 4 pixels\n        ldr             r3,  [sp, #64]\n        vabd.u8         q3,  q10, q11    @ abs(p1 - p0)\n        vabd.u8         q4,  q13, q12    @ abs(q1 - q0)\n\n        vsubl.u8        q5,  d20, d26    @ p1 - q1\n        vsubl.u8        q6,  d21, d27    @ p1 - q1\n        vmax.u8         q3,  q3,  q4     @ max(abs(p1 - p0), abs(q1 - q0))\n        vqmovn.s16      d10, q5          @ av_clip_int8p(p1 - q1)\n        vqmovn.s16      d11, q6          @ av_clip_int8p(p1 - q1)\n        vdup.u8         d8,  r3          @ H\n        lsr             r3,  r3,  #8\n        vdup.u8         d9,  r3          @ H\n        vsubl.u8        q6,  d24, d22    @ q0 - p0\n        vsubl.u8        q7,  d25, d23    @ q0 - p0\n        vcle.u8         q3,  q3,  q4     @ hev\n        vmov.s16        q0,  #3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:3", "text": "@ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n        @ Calculate the normal inner loop filter for 2 or 4 pixels\n        ldr             r3,  [sp, #64]\n        vabd.u8         q3,  q10, q11    @ abs(p1 - p0)\n        vabd.u8         q4,  q13, q12    @ abs(q1 - q0)\n\n        vsubl.u8        q5,  d20, d26    @ p1 - q1\n        vsubl.u8        q6,  d21, d27    @ p1 - q1\n        vmax.u8         q3,  q3,  q4     @ max(abs(p1 - p0), abs(q1 - q0))\n        vqmovn.s16      d10, q5          @ av_clip_int8p(p1 - q1)\n        vqmovn.s16      d11, q6          @ av_clip_int8p(p1 - q1)\n        vdup.u8         d8,  r3          @ H\n        lsr             r3,  r3,  #8\n        vdup.u8         d9,  r3          @ H\n        vsubl.u8        q6,  d24, d22    @ q0 - p0\n        vsubl.u8        q7,  d25, d23    @ q0 - p0\n        vcle.u8         q3,  q3,  q4     @ hev\n        vmov.s16        q0,  #3\n        vand            q3,  q3,  q2     @ !hev && fm && !flat8in\n\n        vmul.s16        q6,  q6,  q0     @ 3 * (q0 - p0)\n        vmul.s16        q7,  q7,  q0     @ 3 * (q0 - p0)\n        vbic            q5,  q5,  q3     @ if (!hev) av_clip_int8 = 0\n        vaddw.s8        q6,  q6,  d10    @ 3 * (q0 - p0) [+ av_clip_int8(p1 - q1)]\n        vaddw.s8        q7,  q7,  d11    @ 3 * (q0 - p0) [+ av_clip_int8(p1 - q1)]\n        vmov.s8         q5,  #4\n        vqmovn.s16      d12, q6\n        vqmovn.s16      d13, q7          @ av_clip_int8(3 * (q0 - p0) [+ av_clip_int8(p1 - q1)], BIT_DEPTH - 1) = f\n        vmov.s8         q0,  #3\n\n        vqadd.s8        q5,  q6,  q5     @ FFMIN(f + 4, 127)\n        vqadd.s8        q0,  q6,  q0     @ FFMIN(f + 3, 127)\n        vmovl.u8        q6,  d22         @ p0\n        vmovl.u8        q7,  d23         @ p0\n        vshr.s8         q5,  q5,  #3     @ f1\n        vshr.s8         q0,  q0,  #3     @ f2\n\n        vaddw.s8        q6,  q6,  d0     @ p0 + f2\n        vaddw.s8        q7,  q7,  d1     @ p0 + f2\n        vqmovun.s16     d0,  q6          @ out p0\n        vmovl.u8        q6,  d24         @ q0\n        vqmovun.s16     d1,  q7          @ out p0\n        vmovl.u8        q7,  d25         @ q0\n        vsubw.s8        q6,  q6,  d10    @ q0 - f1\n        vsubw.s8        q7,  q7,  d11    @ q0 - f1\n        vqmovun.s16     d12, q6          @ out q0\n        vqmovun.s16     d13, q7          @ out q0\n        vrshr.s8        q5,  q5,  #1     @ f = (f1 + 1) >> 1\n        vbit            q11, q0,  q2     @ if (fm && !flat8in)\n        vbit            q12, q6,  q2\n\n        vmovl.u8        q0,  d20         @ p1\n        vmovl.u8        q2,  d21         @ p1\n        vmovl.u8        q6,  d26         @ q1\n        vmovl.u8        q7,  d27         @ q1\n        vaddw.s8        q0,  q0,  d10    @ p1 + f\n        vaddw.s8        q2,  q2,  d11    @ p1 + f\n        vsubw.s8        q6,  q6,  d10    @ q1 - f", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:4", "text": "vaddw.s8        q7,  q7,  d1     @ p0 + f2\n        vqmovun.s16     d0,  q6          @ out p0\n        vmovl.u8        q6,  d24         @ q0\n        vqmovun.s16     d1,  q7          @ out p0\n        vmovl.u8        q7,  d25         @ q0\n        vsubw.s8        q6,  q6,  d10    @ q0 - f1\n        vsubw.s8        q7,  q7,  d11    @ q0 - f1\n        vqmovun.s16     d12, q6          @ out q0\n        vqmovun.s16     d13, q7          @ out q0\n        vrshr.s8        q5,  q5,  #1     @ f = (f1 + 1) >> 1\n        vbit            q11, q0,  q2     @ if (fm && !flat8in)\n        vbit            q12, q6,  q2\n\n        vmovl.u8        q0,  d20         @ p1\n        vmovl.u8        q2,  d21         @ p1\n        vmovl.u8        q6,  d26         @ q1\n        vmovl.u8        q7,  d27         @ q1\n        vaddw.s8        q0,  q0,  d10    @ p1 + f\n        vaddw.s8        q2,  q2,  d11    @ p1 + f\n        vsubw.s8        q6,  q6,  d10    @ q1 - f\n        vsubw.s8        q7,  q7,  d11    @ q1 - f\n        vqmovun.s16     d0,  q0          @ out p1\n        vqmovun.s16     d1,  q2          @ out p1\n        vqmovun.s16     d12, q6          @ out q1\n        vqmovun.s16     d13, q7          @ out q1\n        vbit            q10, q0,  q3     @ if (!hev && fm && !flat8in)\n        vbit            q13, q6,  q3\n.endm\n\n@ The input to and output from this macro is in the registers d16-d31,\n@ and d0-d7 are used as scratch registers.\n@ p7 = d16 .. p3 = d20, p0 = d23, q0 = d24, q3 = d27, q7 = d31\n@ Depending on the width of the loop filter, we either use d16-d19\n@ and d28-d31 as temp registers, or d8-d15.\n@ tmp1,tmp2 = tmpq1, tmp3,tmp4 = tmpq2, tmp5,tmp6 = tmpq3, tmp7,tmp8 = tmpq4\n.macro loop_filter wd, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8, tmpq1, tmpq2, tmpq3, tmpq4\n        vdup.u8         d0,  r2 @ E\n        vdup.u8         d2,  r3 @ I\n        ldr             r3,  [sp]\n\n        vabd.u8         d4,  d20, d21    @ abs(p3 - p2)\n        vabd.u8         d5,  d21, d22    @ abs(p2 - p1)\n        vabd.u8         d6,  d22, d23    @ abs(p1 - p0)\n        vabd.u8         d7,  d24, d25    @ abs(q0 - q1)\n        vabd.u8         \\tmp1,  d25, d26 @ abs(q1 - q2)\n        vabd.u8         \\tmp2,  d26, d27 @ abs(q2 - q3)\n        vmax.u8         d4,  d4,  d5\n        vmax.u8         d5,  d6,  d7\n        vmax.u8         \\tmp1,  \\tmp1,  \\tmp2\n        vabd.u8         d6,  d23, d24    @ abs(p0 - q0)\n        vmax.u8         d4,  d4,  d5\n        vqadd.u8        d6,  d6,  d6     @ abs(p0 - q0) * 2\n        vabd.u8         d5,  d22, d25    @ abs(p1 - q1)\n        vmax.u8         d4,  d4,  \\tmp1  @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u8         d5,  d5,  #1\n        vcle.u8         d4,  d4,  d2     @ max(abs()) <= I\n        vqadd.u8        d6,  d6,  d5     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u8         d5,  d6,  d0\n        vand            d4,  d4,  d5     @ fm", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:5", "text": "vabd.u8         d4,  d20, d21    @ abs(p3 - p2)\n        vabd.u8         d5,  d21, d22    @ abs(p2 - p1)\n        vabd.u8         d6,  d22, d23    @ abs(p1 - p0)\n        vabd.u8         d7,  d24, d25    @ abs(q0 - q1)\n        vabd.u8         \\tmp1,  d25, d26 @ abs(q1 - q2)\n        vabd.u8         \\tmp2,  d26, d27 @ abs(q2 - q3)\n        vmax.u8         d4,  d4,  d5\n        vmax.u8         d5,  d6,  d7\n        vmax.u8         \\tmp1,  \\tmp1,  \\tmp2\n        vabd.u8         d6,  d23, d24    @ abs(p0 - q0)\n        vmax.u8         d4,  d4,  d5\n        vqadd.u8        d6,  d6,  d6     @ abs(p0 - q0) * 2\n        vabd.u8         d5,  d22, d25    @ abs(p1 - q1)\n        vmax.u8         d4,  d4,  \\tmp1  @ max(abs(p3 - p2), ..., abs(q2 - q3))\n        vshr.u8         d5,  d5,  #1\n        vcle.u8         d4,  d4,  d2     @ max(abs()) <= I\n        vqadd.u8        d6,  d6,  d5     @ abs(p0 - q0) * 2 + abs(p1 - q1) >> 1\n        vcle.u8         d5,  d6,  d0\n        vand            d4,  d4,  d5     @ fm\n\n        vdup.u8         d3,  r3          @ H\n        vmov            r2,  r3,  d4\n        orrs            r2,  r2,  r3\n        @ If no pixels need filtering, just exit as soon as possible\n        beq             9f\n\n.if \\wd >= 8\n        vmov.u8         d0,  #1\n\n        vabd.u8         d6,  d20, d23    @ abs(p3 - p0)\n        vabd.u8         d2,  d21, d23    @ abs(p2 - p0)\n        vabd.u8         d1,  d22, d23    @ abs(p1 - p0)\n        vabd.u8         \\tmp1,  d25, d24 @ abs(q1 - q0)\n        vabd.u8         \\tmp2,  d26, d24 @ abs(q2 - q0)\n        vabd.u8         \\tmp3,  d27, d24 @ abs(q3 - q0)\n        vmax.u8         d6,  d6,  d2\n        vmax.u8         d1,  d1,  \\tmp1\n        vmax.u8         \\tmp2,  \\tmp2,  \\tmp3\n.if \\wd == 16\n        vabd.u8         d7,  d16, d23    @ abs(p7 - p0)\n        vmax.u8         d6,  d6,  d1\n        vabd.u8         d2,  d17, d23    @ abs(p6 - p0)\n        vmax.u8         d6,  d6,  \\tmp2\n        vabd.u8         d1,  d18, d23    @ abs(p5 - p0)\n        vcle.u8         d6,  d6,  d0     @ flat8in\n        vabd.u8         d8,  d19, d23    @ abs(p4 - p0)\n        vand            d6,  d6,  d4     @ flat8in && fm\n        vabd.u8         d9,  d28, d24    @ abs(q4 - q0)\n        vbic            d4,  d4,  d6     @ fm && !flat8in\n        vabd.u8         d10, d29, d24    @ abs(q5 - q0)\n        vabd.u8         d11, d30, d24    @ abs(q6 - q0)\n        vabd.u8         d12, d31, d24    @ abs(q7 - q0)\n\n        vmax.u8         d7,  d7,  d2\n        vmax.u8         d1,  d1,  d8\n        vmax.u8         d9,  d9,  d10\n        vmax.u8         d11, d11, d12\n        @ The rest of the calculation of flat8out is interleaved below\n.else\n        @ The rest of the calculation of flat8in is interleaved below", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:6", "text": "vmax.u8         d6,  d6,  d1\n        vabd.u8         d2,  d17, d23    @ abs(p6 - p0)\n        vmax.u8         d6,  d6,  \\tmp2\n        vabd.u8         d1,  d18, d23    @ abs(p5 - p0)\n        vcle.u8         d6,  d6,  d0     @ flat8in\n        vabd.u8         d8,  d19, d23    @ abs(p4 - p0)\n        vand            d6,  d6,  d4     @ flat8in && fm\n        vabd.u8         d9,  d28, d24    @ abs(q4 - q0)\n        vbic            d4,  d4,  d6     @ fm && !flat8in\n        vabd.u8         d10, d29, d24    @ abs(q5 - q0)\n        vabd.u8         d11, d30, d24    @ abs(q6 - q0)\n        vabd.u8         d12, d31, d24    @ abs(q7 - q0)\n\n        vmax.u8         d7,  d7,  d2\n        vmax.u8         d1,  d1,  d8\n        vmax.u8         d9,  d9,  d10\n        vmax.u8         d11, d11, d12\n        @ The rest of the calculation of flat8out is interleaved below\n.else\n        @ The rest of the calculation of flat8in is interleaved below\n.endif\n.endif\n\n        @ Calculate the normal inner loop filter for 2 or 4 pixels\n        vabd.u8         d5,  d22, d23           @ abs(p1 - p0)\n.if \\wd == 16\n        vmax.u8         d7,  d7,  d1\n        vmax.u8         d9,  d9,  d11\n.elseif \\wd == 8\n        vmax.u8         d6,  d6,  d1\n.endif\n        vabd.u8         d1,  d25, d24           @ abs(q1 - q0)\n.if \\wd == 16\n        vmax.u8         d7,  d7,  d9\n.elseif \\wd == 8\n        vmax.u8         d6,  d6,  \\tmp2\n.endif\n        vsubl.u8        \\tmpq1,  d22, d25       @ p1 - q1\n        vmax.u8         d5,  d5,  d1            @ max(abs(p1 - p0), abs(q1 - q0))\n        vsubl.u8        \\tmpq2,  d24, d23       @ q0 - p0\n        vmov.s16        \\tmpq3,  #3\n.if \\wd == 8\n        vcle.u8         d6,  d6,  d0            @ flat8in\n.endif\n        vcle.u8         d5,  d5,  d3            @ !hev\n.if \\wd == 8\n        vand            d6,  d6,  d4            @ flat8in && fm\n.endif\n        vqmovn.s16      \\tmp1,   \\tmpq1         @ av_clip_int8(p1 - q1)\n.if \\wd == 16\n        vcle.u8         d7,  d7,  d0            @ flat8out\n.elseif \\wd == 8\n        vbic            d4,  d4,  d6            @ fm && !flat8in\n.endif\n        vand            d5,  d5,  d4            @ !hev && fm && !flat8in\n.if \\wd == 16\n        vand            d7,  d7,  d6            @ flat8out && flat8in && fm\n.endif\n\n        vmul.s16        \\tmpq2,  \\tmpq2, \\tmpq3 @ 3 * (q0 - p0)", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:7", "text": "vmov.s16        \\tmpq3,  #3\n.if \\wd == 8\n        vcle.u8         d6,  d6,  d0            @ flat8in\n.endif\n        vcle.u8         d5,  d5,  d3            @ !hev\n.if \\wd == 8\n        vand            d6,  d6,  d4            @ flat8in && fm\n.endif\n        vqmovn.s16      \\tmp1,   \\tmpq1         @ av_clip_int8(p1 - q1)\n.if \\wd == 16\n        vcle.u8         d7,  d7,  d0            @ flat8out\n.elseif \\wd == 8\n        vbic            d4,  d4,  d6            @ fm && !flat8in\n.endif\n        vand            d5,  d5,  d4            @ !hev && fm && !flat8in\n.if \\wd == 16\n        vand            d7,  d7,  d6            @ flat8out && flat8in && fm\n.endif\n\n        vmul.s16        \\tmpq2,  \\tmpq2, \\tmpq3 @ 3 * (q0 - p0)\n        vbic            \\tmp1,   \\tmp1,   d5    @ if (!hev) av_clip_int8 = 0\n        vmov.s8         d2,  #4\n        vaddw.s8        \\tmpq2,  \\tmpq2,  \\tmp1 @ 3 * (q0 - p0) [+ av_clip_int8(p1 - q1)]\n        vmov.s8         d3,  #3\n        vqmovn.s16      \\tmp1,   \\tmpq2         @ f\n.if \\wd == 16\n        vbic            d6,  d6,  d7            @ fm && flat8in && !flat8out\n.endif\n\n        vqadd.s8        \\tmp3, \\tmp1,  d2       @ FFMIN(f + 4, 127)\n        vqadd.s8        \\tmp4, \\tmp1,  d3       @ FFMIN(f + 3, 127)\n        vmovl.u8        q0,  d23                @ p0\n        vshr.s8         \\tmp3, \\tmp3,  #3       @ f1\n        vshr.s8         \\tmp4, \\tmp4,  #3       @ f2\n\n        vmovl.u8        q1,  d24                @ q0\n        vaddw.s8        q0,  q0,  \\tmp4         @ p0 + f2\n        vsubw.s8        q1,  q1,  \\tmp3         @ q0 - f1\n        vqmovun.s16     d0,  q0                 @ out p0\n        vqmovun.s16     d1,  q1                 @ out q0\n        vrshr.s8        \\tmp3, \\tmp3, #1        @ f = (f1 + 1) >> 1\n        vbit            d23, d0,  d4            @ if (fm && !flat8in)\n        vbit            d24, d1,  d4\n\n        vmovl.u8        q0,  d22                @ p1\n        vmovl.u8        q1,  d25                @ q1\n.if \\wd >= 8\n        vmov            r2,  r3,  d6\n.endif\n        vaddw.s8        q0,  q0,  \\tmp3         @ p1 + f\n        vsubw.s8        q1,  q1,  \\tmp3         @ q1 - f\n.if \\wd >= 8\n        orrs            r2,  r2,  r3\n.endif\n        vqmovun.s16     d0,  q0                 @ out p1\n        vqmovun.s16     d2,  q1                 @ out q1\n        vbit            d22, d0,  d5            @ if (!hev && fm && !flat8in)\n        vbit            d25, d2,  d5\n\n.if \\wd >= 8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:8", "text": "vrshr.s8        \\tmp3, \\tmp3, #1        @ f = (f1 + 1) >> 1\n        vbit            d23, d0,  d4            @ if (fm && !flat8in)\n        vbit            d24, d1,  d4\n\n        vmovl.u8        q0,  d22                @ p1\n        vmovl.u8        q1,  d25                @ q1\n.if \\wd >= 8\n        vmov            r2,  r3,  d6\n.endif\n        vaddw.s8        q0,  q0,  \\tmp3         @ p1 + f\n        vsubw.s8        q1,  q1,  \\tmp3         @ q1 - f\n.if \\wd >= 8\n        orrs            r2,  r2,  r3\n.endif\n        vqmovun.s16     d0,  q0                 @ out p1\n        vqmovun.s16     d2,  q1                 @ out q1\n        vbit            d22, d0,  d5            @ if (!hev && fm && !flat8in)\n        vbit            d25, d2,  d5\n\n.if \\wd >= 8\n        @ If no pixels need flat8in, jump to flat8out\n        @ (or to a writeout of the inner 4 pixels, for wd=8)\n        beq             6f\n\n        @ flat8in\n        vaddl.u8        \\tmpq1, d20, d21\n        vaddl.u8        \\tmpq2, d22, d25\n        vaddl.u8        \\tmpq3, d20, d22\n        vaddl.u8        \\tmpq4, d23, d26\n        vadd.u16        q0,  \\tmpq1, \\tmpq1\n        vaddw.u8        q0,  q0,  d23\n        vaddw.u8        q0,  q0,  d24\n        vadd.u16        q0,  q0,  \\tmpq3\n        vsub.s16        \\tmpq2, \\tmpq2, \\tmpq1\n        vsub.s16        \\tmpq4, \\tmpq4, \\tmpq3\n        vrshrn.u16      d2,  q0,  #3            @ out p2\n\n        vadd.u16        q0,  q0,  \\tmpq2\n        vaddl.u8        \\tmpq1, d20, d23\n        vaddl.u8        \\tmpq2, d24, d27\n        vrshrn.u16      d3,  q0,  #3            @ out p1\n\n        vadd.u16        q0,  q0,  \\tmpq4\n        vsub.s16        \\tmpq2, \\tmpq2, \\tmpq1\n        vaddl.u8        \\tmpq3, d21, d24\n        vaddl.u8        \\tmpq4, d25, d27\n        vrshrn.u16      d4,  q0,  #3            @ out p0\n\n        vadd.u16        q0,  q0,  \\tmpq2\n        vsub.s16        \\tmpq4, \\tmpq4, \\tmpq3\n        vaddl.u8        \\tmpq1, d22, d25\n        vaddl.u8        \\tmpq2, d26, d27\n        vrshrn.u16      d5,  q0,  #3            @ out q0\n\n        vadd.u16        q0,  q0,  \\tmpq4\n        vsub.s16        \\tmpq2, \\tmpq2, \\tmpq1\n        vrshrn.u16      \\tmp5,  q0,  #3         @ out q1\n\n        vadd.u16        q0,  q0,  \\tmpq2\n        @ The output here is written back into the input registers. This doesn't", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:9", "text": "vrshrn.u16      d3,  q0,  #3            @ out p1\n\n        vadd.u16        q0,  q0,  \\tmpq4\n        vsub.s16        \\tmpq2, \\tmpq2, \\tmpq1\n        vaddl.u8        \\tmpq3, d21, d24\n        vaddl.u8        \\tmpq4, d25, d27\n        vrshrn.u16      d4,  q0,  #3            @ out p0\n\n        vadd.u16        q0,  q0,  \\tmpq2\n        vsub.s16        \\tmpq4, \\tmpq4, \\tmpq3\n        vaddl.u8        \\tmpq1, d22, d25\n        vaddl.u8        \\tmpq2, d26, d27\n        vrshrn.u16      d5,  q0,  #3            @ out q0\n\n        vadd.u16        q0,  q0,  \\tmpq4\n        vsub.s16        \\tmpq2, \\tmpq2, \\tmpq1\n        vrshrn.u16      \\tmp5,  q0,  #3         @ out q1\n\n        vadd.u16        q0,  q0,  \\tmpq2\n        @ The output here is written back into the input registers. This doesn't\n        @ matter for the flat8out part below, since we only update those pixels\n        @ which won't be touched below.\n        vbit            d21, d2,  d6\n        vbit            d22, d3,  d6\n        vbit            d23, d4,  d6\n        vrshrn.u16      \\tmp6,  q0,  #3         @ out q2\n        vbit            d24, d5,  d6\n        vbit            d25, \\tmp5,  d6\n        vbit            d26, \\tmp6,  d6\n.endif\n.if \\wd == 16\n6:\n        vorr            d2,  d6,  d7\n        vmov            r2,  r3,  d2\n        orrs            r2,  r2,  r3\n        @ If no pixels needed flat8in nor flat8out, jump to a\n        @ writeout of the inner 4 pixels\n        beq             7f\n        vmov            r2,  r3,  d7\n        orrs            r2,  r2,  r3\n        @ If no pixels need flat8out, jump to a writeout of the inner 6 pixels\n        beq             8f\n\n        @ flat8out\n        @ This writes all outputs into d2-d17 (skipping d6 and d16).\n        @ If this part is skipped, the output is read from d21-d26 (which is the input\n        @ to this section).\n        vshll.u8        q0,  d16, #3  @ 8 * d16\n        vsubw.u8        q0,  q0,  d16 @ 7 * d16\n        vaddw.u8        q0,  q0,  d17\n        vaddl.u8        q4,  d17, d18\n        vaddl.u8        q5,  d19, d20\n        vadd.s16        q0,  q0,  q4\n        vaddl.u8        q4,  d16, d17\n        vaddl.u8        q6,  d21, d22\n        vadd.s16        q0,  q0,  q5\n        vaddl.u8        q5,  d18, d25\n        vaddl.u8        q7,  d23, d24\n        vsub.s16        q5,  q5,  q4\n        vadd.s16        q0,  q0,  q6", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:10", "text": "@ If no pixels need flat8out, jump to a writeout of the inner 6 pixels\n        beq             8f\n\n        @ flat8out\n        @ This writes all outputs into d2-d17 (skipping d6 and d16).\n        @ If this part is skipped, the output is read from d21-d26 (which is the input\n        @ to this section).\n        vshll.u8        q0,  d16, #3  @ 8 * d16\n        vsubw.u8        q0,  q0,  d16 @ 7 * d16\n        vaddw.u8        q0,  q0,  d17\n        vaddl.u8        q4,  d17, d18\n        vaddl.u8        q5,  d19, d20\n        vadd.s16        q0,  q0,  q4\n        vaddl.u8        q4,  d16, d17\n        vaddl.u8        q6,  d21, d22\n        vadd.s16        q0,  q0,  q5\n        vaddl.u8        q5,  d18, d25\n        vaddl.u8        q7,  d23, d24\n        vsub.s16        q5,  q5,  q4\n        vadd.s16        q0,  q0,  q6\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q6,  d16, d18\n        vaddl.u8        q7,  d19, d26\n        vrshrn.u16      d2,  q0,  #4\n\n        vadd.s16        q0,  q0,  q5\n        vaddl.u8        q4,  d16, d19\n        vaddl.u8        q5,  d20, d27\n        vsub.s16        q7,  q7,  q6\n        vbif            d2,  d17, d7\n        vrshrn.u16      d3,  q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q6,  d16, d20\n        vaddl.u8        q7,  d21, d28\n        vsub.s16        q5,  q5,  q4\n        vbif            d3,  d18, d7\n        vrshrn.u16      d4,  q0,  #4\n\n        vadd.s16        q0,  q0,  q5\n        vaddl.u8        q4,  d16, d21\n        vaddl.u8        q5,  d22, d29\n        vsub.s16        q7,  q7,  q6\n        vbif            d4,  d19, d7\n        vrshrn.u16      d5,  q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q6,  d16, d22\n        vaddl.u8        q7,  d23, d30\n        vsub.s16        q5,  q5,  q4\n        vbif            d5,  d20, d7\n        vrshrn.u16      d6,  q0,  #4\n\n        vadd.s16        q0,  q0,  q5\n        vaddl.u8        q5,  d16, d23\n        vsub.s16        q7,  q7,  q6\n        vaddl.u8        q6,  d24, d31\n        vbif            d6,  d21, d7\n        vrshrn.u16      d8,  q0,  #4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:11", "text": "vaddl.u8        q4,  d16, d21\n        vaddl.u8        q5,  d22, d29\n        vsub.s16        q7,  q7,  q6\n        vbif            d4,  d19, d7\n        vrshrn.u16      d5,  q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q6,  d16, d22\n        vaddl.u8        q7,  d23, d30\n        vsub.s16        q5,  q5,  q4\n        vbif            d5,  d20, d7\n        vrshrn.u16      d6,  q0,  #4\n\n        vadd.s16        q0,  q0,  q5\n        vaddl.u8        q5,  d16, d23\n        vsub.s16        q7,  q7,  q6\n        vaddl.u8        q6,  d24, d31\n        vbif            d6,  d21, d7\n        vrshrn.u16      d8,  q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vsub.s16        q5,  q6,  q5\n        vaddl.u8        q6,  d17, d24\n        vaddl.u8        q7,  d25, d31\n        vbif            d8,  d22, d7\n        vrshrn.u16      d9,  q0,  #4\n\n        vadd.s16        q0,  q0,  q5\n        vsub.s16        q7,  q7,  q6\n        vaddl.u8        q6,  d26, d31\n        vbif            d9,  d23, d7\n        vrshrn.u16      d10, q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q7,  d18, d25\n        vaddl.u8        q9,  d19, d26\n        vsub.s16        q6,  q6,  q7\n        vaddl.u8        q7,  d27, d31\n        vbif            d10, d24, d7\n        vrshrn.u16      d11, q0,  #4\n\n        vadd.s16        q0,  q0,  q6\n        vaddl.u8        q6,  d20, d27\n        vsub.s16        q7,  q7,  q9\n        vaddl.u8        q9,  d28, d31\n        vbif            d11, d25, d7\n        vsub.s16        q9,  q9,  q6\n        vrshrn.u16      d12, q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q7,  d21, d28\n        vaddl.u8        q10, d29, d31\n        vbif            d12, d26, d7\n        vrshrn.u16      d13, q0,  #4\n\n        vadd.s16        q0,  q0,  q9\n        vsub.s16        q10, q10, q7\n        vaddl.u8        q9,  d22, d29\n        vaddl.u8        q11, d30, d31\n        vbif            d13, d27, d7", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:12", "text": "vadd.s16        q0,  q0,  q6\n        vaddl.u8        q6,  d20, d27\n        vsub.s16        q7,  q7,  q9\n        vaddl.u8        q9,  d28, d31\n        vbif            d11, d25, d7\n        vsub.s16        q9,  q9,  q6\n        vrshrn.u16      d12, q0,  #4\n\n        vadd.s16        q0,  q0,  q7\n        vaddl.u8        q7,  d21, d28\n        vaddl.u8        q10, d29, d31\n        vbif            d12, d26, d7\n        vrshrn.u16      d13, q0,  #4\n\n        vadd.s16        q0,  q0,  q9\n        vsub.s16        q10, q10, q7\n        vaddl.u8        q9,  d22, d29\n        vaddl.u8        q11, d30, d31\n        vbif            d13, d27, d7\n        vrshrn.u16      d14, q0,  #4\n\n        vadd.s16        q0,  q0,  q10\n        vsub.s16        q11, q11, q9\n        vbif            d14, d28, d7\n        vrshrn.u16      d15, q0,  #4\n\n        vadd.s16        q0,  q0,  q11\n        vbif            d15, d29, d7\n        vrshrn.u16      d17, q0,  #4\n        vbif            d17, d30, d7\n.endif\n.endm\n\n@ For wd <= 8, we use d16-d19 and d28-d31 for temp registers,\n@ while we need those for inputs/outputs in wd=16 and use d8-d15\n@ for temp registers there instead.\n.macro loop_filter_4\n        loop_filter     4,  d16, d17, d18, d19, d28, d29, d30, d31, q8,  q9,  q14, q15\n.endm\n\n.macro loop_filter_8\n        loop_filter     8,  d16, d17, d18, d19, d28, d29, d30, d31, q8,  q9,  q14, q15\n.endm\n\n.macro loop_filter_16\n        loop_filter     16, d8,  d9,  d10, d11, d12, d13, d14, d15, q4,  q5,  q6,  q7\n.endm\n\n\n@ The public functions in this file have got the following signature:\n@ void loop_filter(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr);\n\nfunction ff_vp9_loop_filter_v_4_8_neon, export=1\n        sub             r12, r0,  r1, lsl #2\n        vld1.8          {d20}, [r12,:64], r1 @ p3\n        vld1.8          {d24}, [r0, :64], r1 @ q0\n        vld1.8          {d21}, [r12,:64], r1 @ p2\n        vld1.8          {d25}, [r0, :64], r1 @ q1\n        vld1.8          {d22}, [r12,:64], r1 @ p1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:13", "text": ".macro loop_filter_8\n        loop_filter     8,  d16, d17, d18, d19, d28, d29, d30, d31, q8,  q9,  q14, q15\n.endm\n\n.macro loop_filter_16\n        loop_filter     16, d8,  d9,  d10, d11, d12, d13, d14, d15, q4,  q5,  q6,  q7\n.endm\n\n\n@ The public functions in this file have got the following signature:\n@ void loop_filter(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr);\n\nfunction ff_vp9_loop_filter_v_4_8_neon, export=1\n        sub             r12, r0,  r1, lsl #2\n        vld1.8          {d20}, [r12,:64], r1 @ p3\n        vld1.8          {d24}, [r0, :64], r1 @ q0\n        vld1.8          {d21}, [r12,:64], r1 @ p2\n        vld1.8          {d25}, [r0, :64], r1 @ q1\n        vld1.8          {d22}, [r12,:64], r1 @ p1\n        vld1.8          {d26}, [r0, :64], r1 @ q2\n        vld1.8          {d23}, [r12,:64], r1 @ p0\n        vld1.8          {d27}, [r0, :64], r1 @ q3\n        sub             r0,  r0,  r1, lsl #2\n        sub             r12, r12, r1, lsl #1\n\n        loop_filter_4\n\n        vst1.8          {d22}, [r12,:64], r1\n        vst1.8          {d24}, [r0, :64], r1\n        vst1.8          {d23}, [r12,:64], r1\n        vst1.8          {d25}, [r0, :64], r1\n9:\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_h_4_8_neon, export=1\n        sub             r12, r0,  #4\n        add             r0,  r12, r1, lsl #2\n        vld1.8          {d20}, [r12], r1\n        vld1.8          {d24}, [r0],  r1\n        vld1.8          {d21}, [r12], r1\n        vld1.8          {d25}, [r0],  r1\n        vld1.8          {d22}, [r12], r1\n        vld1.8          {d26}, [r0],  r1\n        vld1.8          {d23}, [r12], r1\n        vld1.8          {d27}, [r0],  r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        @ Move r0/r12 forward by 2 pixels; we don't need to rewrite the\n        @ outermost 2 pixels since they aren't changed.\n        add             r12, r12, #2\n        add             r0,  r0,  #2\n\n        @ Transpose the 8x8 pixels, taking advantage of q registers, to get\n        @ one register per column.\n        transpose_q_8x8 q10, q11, q12, q13, d20, d21, d22, d23, d24, d25, d26, d27\n\n        loop_filter_4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:14", "text": "vld1.8          {d24}, [r0],  r1\n        vld1.8          {d21}, [r12], r1\n        vld1.8          {d25}, [r0],  r1\n        vld1.8          {d22}, [r12], r1\n        vld1.8          {d26}, [r0],  r1\n        vld1.8          {d23}, [r12], r1\n        vld1.8          {d27}, [r0],  r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        @ Move r0/r12 forward by 2 pixels; we don't need to rewrite the\n        @ outermost 2 pixels since they aren't changed.\n        add             r12, r12, #2\n        add             r0,  r0,  #2\n\n        @ Transpose the 8x8 pixels, taking advantage of q registers, to get\n        @ one register per column.\n        transpose_q_8x8 q10, q11, q12, q13, d20, d21, d22, d23, d24, d25, d26, d27\n\n        loop_filter_4\n\n        @ We only will write the mid 4 pixels back; after the loop filter,\n        @ these are in d22, d23, d24, d25 (q11, q12), ordered as rows\n        @ (8x4 pixels). We need to transpose them to columns, done with a\n        @ 4x4 transpose (which in practice is two 4x4 transposes of the two\n        @ 4x4 halves of the 8x4 pixels; into 4x8 pixels).\n        transpose_q_4x4 q11, q12, d22, d23, d24, d25\n\n        vst1.32         {d22[0]}, [r12], r1\n        vst1.32         {d22[1]}, [r0],  r1\n        vst1.32         {d23[0]}, [r12], r1\n        vst1.32         {d23[1]}, [r0],  r1\n        vst1.32         {d24[0]}, [r12], r1\n        vst1.32         {d24[1]}, [r0],  r1\n        vst1.32         {d25[0]}, [r12], r1\n        vst1.32         {d25[1]}, [r0],  r1\n9:\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_v_44_16_neon, export=1\n        vpush           {q4-q7}\n        sub             r12, r0,  r1, lsl #2\n        vld1.8          {q8},  [r12,:128], r1 @ p3\n        vld1.8          {q12}, [r0, :128], r1 @ q0\n        vld1.8          {q9},  [r12,:128], r1 @ p2\n        vld1.8          {q13}, [r0, :128], r1 @ q1\n        vld1.8          {q10}, [r12,:128], r1 @ p1\n        vld1.8          {q14}, [r0, :128], r1 @ q2\n        vld1.8          {q11}, [r12,:128], r1 @ p0\n        vld1.8          {q15}, [r0, :128], r1 @ q3\n        sub             r0,  r0,  r1, lsl #2\n        sub             r12, r12, r1, lsl #1\n\n        loop_filter_q\n\n        vst1.8          {q10}, [r12,:128], r1\n        vst1.8          {q12}, [r0, :128], r1\n        vst1.8          {q11}, [r12,:128], r1\n        vst1.8          {q13}, [r0, :128], r1", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:15", "text": "function ff_vp9_loop_filter_v_44_16_neon, export=1\n        vpush           {q4-q7}\n        sub             r12, r0,  r1, lsl #2\n        vld1.8          {q8},  [r12,:128], r1 @ p3\n        vld1.8          {q12}, [r0, :128], r1 @ q0\n        vld1.8          {q9},  [r12,:128], r1 @ p2\n        vld1.8          {q13}, [r0, :128], r1 @ q1\n        vld1.8          {q10}, [r12,:128], r1 @ p1\n        vld1.8          {q14}, [r0, :128], r1 @ q2\n        vld1.8          {q11}, [r12,:128], r1 @ p0\n        vld1.8          {q15}, [r0, :128], r1 @ q3\n        sub             r0,  r0,  r1, lsl #2\n        sub             r12, r12, r1, lsl #1\n\n        loop_filter_q\n\n        vst1.8          {q10}, [r12,:128], r1\n        vst1.8          {q12}, [r0, :128], r1\n        vst1.8          {q11}, [r12,:128], r1\n        vst1.8          {q13}, [r0, :128], r1\n9:\n        vpop            {q4-q7}\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_h_44_16_neon, export=1\n        vpush           {q4-q7}\n        sub             r12, r0,  #4\n        add             r0,  r12, r1, lsl #2\n        vld1.8          {d16}, [r12], r1\n        vld1.8          {d24}, [r0],  r1\n        vld1.8          {d18}, [r12], r1\n        vld1.8          {d26}, [r0],  r1\n        vld1.8          {d20}, [r12], r1\n        vld1.8          {d28}, [r0],  r1\n        vld1.8          {d22}, [r12], r1\n        vld1.8          {d30}, [r0],  r1\n        mov             r12, r0\n        add             r0,  r0,  r1, lsl #2\n        vld1.8          {d17}, [r12], r1\n        vld1.8          {d25}, [r0],  r1\n        vld1.8          {d19}, [r12], r1\n        vld1.8          {d27}, [r0],  r1\n        vld1.8          {d21}, [r12], r1\n        vld1.8          {d29}, [r0],  r1\n        vld1.8          {d23}, [r12], r1\n        vld1.8          {d31}, [r0],  r1\n\n        @ Transpose the 16x8 pixels, as two 8x8 parts\n        transpose_8x8   q8,  q9,  q10, q11, q12, q13, q14, q15\n\n        loop_filter_q\n\n        sub             r12, r0,  r1, lsl #4\n        add             r0,  r12, r1, lsl #3\n        @ Move r0/r12 forward by 2 pixels; we don't need to rewrite the\n        @ outermost 2 pixels since they aren't changed.\n        add             r12, r12, #2\n        add             r0,  r0,  #2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:16", "text": "vld1.8          {d25}, [r0],  r1\n        vld1.8          {d19}, [r12], r1\n        vld1.8          {d27}, [r0],  r1\n        vld1.8          {d21}, [r12], r1\n        vld1.8          {d29}, [r0],  r1\n        vld1.8          {d23}, [r12], r1\n        vld1.8          {d31}, [r0],  r1\n\n        @ Transpose the 16x8 pixels, as two 8x8 parts\n        transpose_8x8   q8,  q9,  q10, q11, q12, q13, q14, q15\n\n        loop_filter_q\n\n        sub             r12, r0,  r1, lsl #4\n        add             r0,  r12, r1, lsl #3\n        @ Move r0/r12 forward by 2 pixels; we don't need to rewrite the\n        @ outermost 2 pixels since they aren't changed.\n        add             r12, r12, #2\n        add             r0,  r0,  #2\n\n        @ We only will write the mid 4 pixels back; after the loop filter,\n        @ these are in q10, q11, q12, q13, ordered as rows (16x4 pixels).\n        @ We need to transpose them to columns, done with a 4x4 transpose\n        @ (which in practice is four 4x4 transposes of the 4x4 blocks of\n        @ the 16x4 pixels; into 4x16 pixels).\n        transpose_4x4   q10, q11, q12, q13\n\n        vst1.32         {d20[0]}, [r12], r1\n        vst1.32         {d21[0]}, [r0],  r1\n        vst1.32         {d22[0]}, [r12], r1\n        vst1.32         {d23[0]}, [r0],  r1\n        vst1.32         {d24[0]}, [r12], r1\n        vst1.32         {d25[0]}, [r0],  r1\n        vst1.32         {d26[0]}, [r12], r1\n        vst1.32         {d27[0]}, [r0],  r1\n        vst1.32         {d20[1]}, [r12], r1\n        vst1.32         {d21[1]}, [r0],  r1\n        vst1.32         {d22[1]}, [r12], r1\n        vst1.32         {d23[1]}, [r0],  r1\n        vst1.32         {d24[1]}, [r12], r1\n        vst1.32         {d25[1]}, [r0],  r1\n        vst1.32         {d26[1]}, [r12], r1\n        vst1.32         {d27[1]}, [r0],  r1\n9:\n        vpop            {q4-q7}\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_v_8_8_neon, export=1\n        sub             r12, r0,  r1, lsl #2\n        vld1.8          {d20}, [r12,:64], r1 @ p3\n        vld1.8          {d24}, [r0, :64], r1 @ q0\n        vld1.8          {d21}, [r12,:64], r1 @ p2\n        vld1.8          {d25}, [r0, :64], r1 @ q1\n        vld1.8          {d22}, [r12,:64], r1 @ p1\n        vld1.8          {d26}, [r0, :64], r1 @ q2\n        vld1.8          {d23}, [r12,:64], r1 @ p0\n        vld1.8          {d27}, [r0, :64], r1 @ q3\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:17", "text": "vst1.32         {d25[1]}, [r0],  r1\n        vst1.32         {d26[1]}, [r12], r1\n        vst1.32         {d27[1]}, [r0],  r1\n9:\n        vpop            {q4-q7}\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_v_8_8_neon, export=1\n        sub             r12, r0,  r1, lsl #2\n        vld1.8          {d20}, [r12,:64], r1 @ p3\n        vld1.8          {d24}, [r0, :64], r1 @ q0\n        vld1.8          {d21}, [r12,:64], r1 @ p2\n        vld1.8          {d25}, [r0, :64], r1 @ q1\n        vld1.8          {d22}, [r12,:64], r1 @ p1\n        vld1.8          {d26}, [r0, :64], r1 @ q2\n        vld1.8          {d23}, [r12,:64], r1 @ p0\n        vld1.8          {d27}, [r0, :64], r1 @ q3\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n        add             r12, r12, r1\n\n        loop_filter_8\n\n        vst1.8          {d21}, [r12,:64], r1\n        vst1.8          {d24}, [r0, :64], r1\n        vst1.8          {d22}, [r12,:64], r1\n        vst1.8          {d25}, [r0, :64], r1\n        vst1.8          {d23}, [r12,:64], r1\n        vst1.8          {d26}, [r0, :64], r1\n9:\n        bx              lr\n6:\n        sub             r12, r0,  r1, lsl #1\n        vst1.8          {d22}, [r12,:64], r1\n        vst1.8          {d24}, [r0, :64], r1\n        vst1.8          {d23}, [r12,:64], r1\n        vst1.8          {d25}, [r0, :64], r1\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_h_8_8_neon, export=1\n        sub             r12, r0,  #4\n        add             r0,  r12, r1, lsl #2\n        vld1.8          {d20}, [r12], r1\n        vld1.8          {d24}, [r0],  r1\n        vld1.8          {d21}, [r12], r1\n        vld1.8          {d25}, [r0],  r1\n        vld1.8          {d22}, [r12], r1\n        vld1.8          {d26}, [r0],  r1\n        vld1.8          {d23}, [r12], r1\n        vld1.8          {d27}, [r0],  r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n\n        transpose_q_8x8 q10, q11, q12, q13, d20, d21, d22, d23, d24, d25, d26, d27\n\n        loop_filter_8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:18", "text": "function ff_vp9_loop_filter_h_8_8_neon, export=1\n        sub             r12, r0,  #4\n        add             r0,  r12, r1, lsl #2\n        vld1.8          {d20}, [r12], r1\n        vld1.8          {d24}, [r0],  r1\n        vld1.8          {d21}, [r12], r1\n        vld1.8          {d25}, [r0],  r1\n        vld1.8          {d22}, [r12], r1\n        vld1.8          {d26}, [r0],  r1\n        vld1.8          {d23}, [r12], r1\n        vld1.8          {d27}, [r0],  r1\n\n        sub             r12, r12, r1, lsl #2\n        sub             r0,  r0,  r1, lsl #2\n\n        transpose_q_8x8 q10, q11, q12, q13, d20, d21, d22, d23, d24, d25, d26, d27\n\n        loop_filter_8\n\n        @ Even though only 6 pixels per row have been changed, we write the\n        @ full 8 pixel registers.\n        transpose_q_8x8 q10, q11, q12, q13, d20, d21, d22, d23, d24, d25, d26, d27\n\n        vst1.8          {d20}, [r12], r1\n        vst1.8          {d24}, [r0],  r1\n        vst1.8          {d21}, [r12], r1\n        vst1.8          {d25}, [r0],  r1\n        vst1.8          {d22}, [r12], r1\n        vst1.8          {d26}, [r0],  r1\n        vst1.8          {d23}, [r12], r1\n        vst1.8          {d27}, [r0],  r1\n9:\n        bx              lr\n6:\n        @ If we didn't need to do the flat8in part, we use the same writeback\n        @ as in loop_filter_h_4_8.\n        add             r12, r12, #2\n        add             r0,  r0,  #2\n        transpose_q_4x4 q11, q12, d22, d23, d24, d25\n        vst1.32         {d22[0]}, [r12], r1\n        vst1.32         {d22[1]}, [r0],  r1\n        vst1.32         {d23[0]}, [r12], r1\n        vst1.32         {d23[1]}, [r0],  r1\n        vst1.32         {d24[0]}, [r12], r1\n        vst1.32         {d24[1]}, [r0],  r1\n        vst1.32         {d25[0]}, [r12], r1\n        vst1.32         {d25[1]}, [r0],  r1\n        bx              lr\nendfunc\n\nfunction vp9_loop_filter_v_16_neon\n        sub             r12, r0,  r1, lsl #3\n        @ Read p7-p0 using r12 and q0-q7 using r0\n        vld1.8          {d16}, [r12,:64], r1 @ p7\n        vld1.8          {d24}, [r0, :64], r1 @ q0\n        vld1.8          {d17}, [r12,:64], r1 @ p6\n        vld1.8          {d25}, [r0, :64], r1 @ q1\n        vld1.8          {d18}, [r12,:64], r1 @ p5\n        vld1.8          {d26}, [r0, :64], r1 @ q2", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:19", "text": "vst1.32         {d22[0]}, [r12], r1\n        vst1.32         {d22[1]}, [r0],  r1\n        vst1.32         {d23[0]}, [r12], r1\n        vst1.32         {d23[1]}, [r0],  r1\n        vst1.32         {d24[0]}, [r12], r1\n        vst1.32         {d24[1]}, [r0],  r1\n        vst1.32         {d25[0]}, [r12], r1\n        vst1.32         {d25[1]}, [r0],  r1\n        bx              lr\nendfunc\n\nfunction vp9_loop_filter_v_16_neon\n        sub             r12, r0,  r1, lsl #3\n        @ Read p7-p0 using r12 and q0-q7 using r0\n        vld1.8          {d16}, [r12,:64], r1 @ p7\n        vld1.8          {d24}, [r0, :64], r1 @ q0\n        vld1.8          {d17}, [r12,:64], r1 @ p6\n        vld1.8          {d25}, [r0, :64], r1 @ q1\n        vld1.8          {d18}, [r12,:64], r1 @ p5\n        vld1.8          {d26}, [r0, :64], r1 @ q2\n        vld1.8          {d19}, [r12,:64], r1 @ p4\n        vld1.8          {d27}, [r0, :64], r1 @ q3\n        vld1.8          {d20}, [r12,:64], r1 @ p3\n        vld1.8          {d28}, [r0, :64], r1 @ q4\n        vld1.8          {d21}, [r12,:64], r1 @ p2\n        vld1.8          {d29}, [r0, :64], r1 @ q5\n        vld1.8          {d22}, [r12,:64], r1 @ p1\n        vld1.8          {d30}, [r0, :64], r1 @ q6\n        vld1.8          {d23}, [r12,:64], r1 @ p0\n        vld1.8          {d31}, [r0, :64], r1 @ q7\n        sub             r12, r12, r1, lsl #3\n        sub             r0,  r0,  r1, lsl #3\n        add             r12, r12, r1\n\n        loop_filter_16\n\n        @ If we did the flat8out part, we get the output in\n        @ d2-d17 (skipping d7 and d16). r12 points to r0 - 7 * stride,\n        @ store d2-d9 there, and d10-d17 into r0.\n        vst1.8          {d2},  [r12,:64], r1\n        vst1.8          {d10}, [r0, :64], r1\n        vst1.8          {d3},  [r12,:64], r1\n        vst1.8          {d11}, [r0, :64], r1\n        vst1.8          {d4},  [r12,:64], r1\n        vst1.8          {d12}, [r0, :64], r1\n        vst1.8          {d5},  [r12,:64], r1\n        vst1.8          {d13}, [r0, :64], r1\n        vst1.8          {d6},  [r12,:64], r1\n        vst1.8          {d14}, [r0, :64], r1\n        vst1.8          {d8},  [r12,:64], r1\n        vst1.8          {d15}, [r0, :64], r1\n        vst1.8          {d9},  [r12,:64], r1\n        vst1.8          {d17}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  r1\n\n9:\n        bx              lr\n\n8:", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:20", "text": "vst1.8          {d10}, [r0, :64], r1\n        vst1.8          {d3},  [r12,:64], r1\n        vst1.8          {d11}, [r0, :64], r1\n        vst1.8          {d4},  [r12,:64], r1\n        vst1.8          {d12}, [r0, :64], r1\n        vst1.8          {d5},  [r12,:64], r1\n        vst1.8          {d13}, [r0, :64], r1\n        vst1.8          {d6},  [r12,:64], r1\n        vst1.8          {d14}, [r0, :64], r1\n        vst1.8          {d8},  [r12,:64], r1\n        vst1.8          {d15}, [r0, :64], r1\n        vst1.8          {d9},  [r12,:64], r1\n        vst1.8          {d17}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  r1\n\n9:\n        bx              lr\n\n8:\n        add             r12, r12, r1, lsl #2\n        @ If we didn't do the flat8out part, the output is left in the\n        @ input registers.\n        vst1.8          {d21}, [r12,:64], r1\n        vst1.8          {d24}, [r0, :64], r1\n        vst1.8          {d22}, [r12,:64], r1\n        vst1.8          {d25}, [r0, :64], r1\n        vst1.8          {d23}, [r12,:64], r1\n        vst1.8          {d26}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #1\n        sub             r0,  r0,  r1\n        bx              lr\n7:\n        sub             r12, r0,  r1, lsl #1\n        vst1.8          {d22}, [r12,:64], r1\n        vst1.8          {d24}, [r0, :64], r1\n        vst1.8          {d23}, [r12,:64], r1\n        vst1.8          {d25}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #1\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_v_16_8_neon, export=1\n        ldr             r12, [sp]\n        push            {lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_v_16_neon\n        add             sp,  sp,  #4\n        vpop            {q4-q7}\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_loop_filter_v_16_16_neon, export=1\n        ldr             r12, [sp]\n        // The filter clobbers r2 and r3, but we need to keep them for the second round\n        push            {r2, r3, lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_v_16_neon", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:21", "text": "endfunc\n\nfunction ff_vp9_loop_filter_v_16_8_neon, export=1\n        ldr             r12, [sp]\n        push            {lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_v_16_neon\n        add             sp,  sp,  #4\n        vpop            {q4-q7}\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_loop_filter_v_16_16_neon, export=1\n        ldr             r12, [sp]\n        // The filter clobbers r2 and r3, but we need to keep them for the second round\n        push            {r2, r3, lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_v_16_neon\n        add             r0,  #8\n        ldr             r2,  [sp, #68]\n        ldr             r3,  [sp, #72]\n        bl              vp9_loop_filter_v_16_neon\n        add             sp,  sp,  #4\n        vpop            {q4-q7}\n        pop             {r2, r3, pc}\nendfunc\n\nfunction vp9_loop_filter_h_16_neon\n        sub             r12, r0,  #8\n        vld1.8          {d16}, [r12,:64], r1\n        vld1.8          {d24}, [r0, :64], r1\n        vld1.8          {d17}, [r12,:64], r1\n        vld1.8          {d25}, [r0, :64], r1\n        vld1.8          {d18}, [r12,:64], r1\n        vld1.8          {d26}, [r0, :64], r1\n        vld1.8          {d19}, [r12,:64], r1\n        vld1.8          {d27}, [r0, :64], r1\n        vld1.8          {d20}, [r12,:64], r1\n        vld1.8          {d28}, [r0, :64], r1\n        vld1.8          {d21}, [r12,:64], r1\n        vld1.8          {d29}, [r0, :64], r1\n        vld1.8          {d22}, [r12,:64], r1\n        vld1.8          {d30}, [r0, :64], r1\n        vld1.8          {d23}, [r12,:64], r1\n        vld1.8          {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n        sub             r12, r12, r1, lsl #3\n\n        @ The 16x8 pixels read above is in two 8x8 blocks; the left\n        @ half in d16-d23, and the right half in d24-d31. Do two 8x8 transposes\n        @ of this, to get one column per register. This could be done with two\n        @ transpose_8x8 as below, but this takes advantage of the q registers.\n        transpose16_4x4 q8,  q9,  q10, q11, q12, q13, q14, q15\n        vtrn.8          d16, d17\n        vtrn.8          d18, d19\n        vtrn.8          d20, d21\n        vtrn.8          d22, d23\n        vtrn.8          d24, d25", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:22", "text": "vld1.8          {d28}, [r0, :64], r1\n        vld1.8          {d21}, [r12,:64], r1\n        vld1.8          {d29}, [r0, :64], r1\n        vld1.8          {d22}, [r12,:64], r1\n        vld1.8          {d30}, [r0, :64], r1\n        vld1.8          {d23}, [r12,:64], r1\n        vld1.8          {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n        sub             r12, r12, r1, lsl #3\n\n        @ The 16x8 pixels read above is in two 8x8 blocks; the left\n        @ half in d16-d23, and the right half in d24-d31. Do two 8x8 transposes\n        @ of this, to get one column per register. This could be done with two\n        @ transpose_8x8 as below, but this takes advantage of the q registers.\n        transpose16_4x4 q8,  q9,  q10, q11, q12, q13, q14, q15\n        vtrn.8          d16, d17\n        vtrn.8          d18, d19\n        vtrn.8          d20, d21\n        vtrn.8          d22, d23\n        vtrn.8          d24, d25\n        vtrn.8          d26, d27\n        vtrn.8          d28, d29\n        vtrn.8          d30, d31\n\n        loop_filter_16\n\n        @ Transpose back; this is the same transpose as above, but\n        @ we can't take advantage of q registers for the transpose, since\n        @ all d registers in the transpose aren't consecutive.\n        transpose_8x8   d16, d2,  d3,  d4,  d5,  d6,  d8,  d9\n        transpose_8x8   d10, d11, d12, d13, d14, d15, d17, d31\n\n        vst1.8          {d16}, [r12,:64], r1\n        vst1.8          {d10}, [r0, :64], r1\n\n        vst1.8          {d2},  [r12,:64], r1\n        vst1.8          {d11}, [r0, :64], r1\n\n        vst1.8          {d3},  [r12,:64], r1\n        vst1.8          {d12}, [r0, :64], r1\n\n        vst1.8          {d4},  [r12,:64], r1\n        vst1.8          {d13}, [r0, :64], r1\n\n        vst1.8          {d5},  [r12,:64], r1\n        vst1.8          {d14}, [r0, :64], r1\n\n        vst1.8          {d6},  [r12,:64], r1\n        vst1.8          {d15}, [r0, :64], r1\n\n        vst1.8          {d8},  [r12,:64], r1\n        vst1.8          {d17}, [r0, :64], r1\n\n        vst1.8          {d9},  [r12,:64], r1\n        vst1.8          {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n9:\n        bx              lr\n8:\n        @ The same writeback as in loop_filter_h_8_8", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:23", "text": "vst1.8          {d4},  [r12,:64], r1\n        vst1.8          {d13}, [r0, :64], r1\n\n        vst1.8          {d5},  [r12,:64], r1\n        vst1.8          {d14}, [r0, :64], r1\n\n        vst1.8          {d6},  [r12,:64], r1\n        vst1.8          {d15}, [r0, :64], r1\n\n        vst1.8          {d8},  [r12,:64], r1\n        vst1.8          {d17}, [r0, :64], r1\n\n        vst1.8          {d9},  [r12,:64], r1\n        vst1.8          {d31}, [r0, :64], r1\n        sub             r0,  r0,  r1, lsl #3\n9:\n        bx              lr\n8:\n        @ The same writeback as in loop_filter_h_8_8\n        sub             r12, r0,  #4\n        add             r0,  r12, r1, lsl #2\n        transpose_q_8x8 q10, q11, q12, q13, d20, d21, d22, d23, d24, d25, d26, d27\n\n        vst1.8          {d20}, [r12], r1\n        vst1.8          {d24}, [r0],  r1\n        vst1.8          {d21}, [r12], r1\n        vst1.8          {d25}, [r0],  r1\n        vst1.8          {d22}, [r12], r1\n        vst1.8          {d26}, [r0],  r1\n        vst1.8          {d23}, [r12], r1\n        vst1.8          {d27}, [r0],  r1\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  #4\n        bx              lr\n7:\n        @ The same writeback as in loop_filter_h_4_8\n        sub             r12, r0,  #2\n        add             r0,  r12, r1, lsl #2\n        transpose_q_4x4 q11, q12, d22, d23, d24, d25\n        vst1.32         {d22[0]}, [r12], r1\n        vst1.32         {d22[1]}, [r0],  r1\n        vst1.32         {d23[0]}, [r12], r1\n        vst1.32         {d23[1]}, [r0],  r1\n        vst1.32         {d24[0]}, [r12], r1\n        vst1.32         {d24[1]}, [r0],  r1\n        vst1.32         {d25[0]}, [r12], r1\n        vst1.32         {d25[1]}, [r0],  r1\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  #2\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_h_16_8_neon, export=1\n        ldr             r12, [sp]\n        push            {lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_h_16_neon\n        add             sp,  sp,  #4", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9lpf_neon.S:24", "text": "vst1.32         {d22[0]}, [r12], r1\n        vst1.32         {d22[1]}, [r0],  r1\n        vst1.32         {d23[0]}, [r12], r1\n        vst1.32         {d23[1]}, [r0],  r1\n        vst1.32         {d24[0]}, [r12], r1\n        vst1.32         {d24[1]}, [r0],  r1\n        vst1.32         {d25[0]}, [r12], r1\n        vst1.32         {d25[1]}, [r0],  r1\n        sub             r0,  r0,  r1, lsl #3\n        add             r0,  r0,  #2\n        bx              lr\nendfunc\n\nfunction ff_vp9_loop_filter_h_16_8_neon, export=1\n        ldr             r12, [sp]\n        push            {lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_h_16_neon\n        add             sp,  sp,  #4\n        vpop            {q4-q7}\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_loop_filter_h_16_16_neon, export=1\n        ldr             r12, [sp]\n        // The filter clobbers r2 and r3, but we need to keep them for the second round\n        push            {r2, r3, lr}\n        vpush           {q4-q7}\n        push            {r12}\n        bl              vp9_loop_filter_h_16_neon\n        add             r0,  r0,  r1, lsl #3\n        ldr             r2,  [sp, #68]\n        ldr             r3,  [sp, #72]\n        bl              vp9_loop_filter_h_16_neon\n        add             sp,  sp,  #4\n        vpop            {q4-q7}\n        pop             {r2, r3, pc}\nendfunc", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9lpf_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9lpf_neon.S", "line_start": 921, "line_end": 959}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:1", "text": "/*\n * Copyright (c) 2017 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n@ All public functions in this file have the following signature:\n@ typedef void (*vp9_mc_func)(uint8_t *dst, ptrdiff_t dst_stride,\n@                            const uint8_t *ref, ptrdiff_t ref_stride,\n@                            int h, int mx, int my);\n\nfunction ff_vp9_copy128_neon, export=1\n        ldr             r12, [sp]\n        sub             r1,  r1,  #96\n        sub             r3,  r3,  #96\n1:\n        subs            r12, r12, #1\n        vld1.16         {q0,  q1},  [r2]!\n        vst1.16         {q0,  q1},  [r0, :128]!\n        vld1.16         {q2,  q3},  [r2]!\n        vst1.16         {q2,  q3},  [r0, :128]!\n        vld1.16         {q8,  q9},  [r2]!\n        vst1.16         {q8,  q9},  [r0, :128]!\n        vld1.16         {q10, q11}, [r2], r3\n        vst1.16         {q10, q11}, [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg64_16_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        sub             r1,  r1,  #96\n        sub             r3,  r3,  #96\n        mov             lr,  r0\n1:\n        subs            r12, r12, #1\n        vld1.16         {q8,  q9},  [r2]!\n        vld1.16         {q0,  q1},  [r0, :128]!\n        vld1.16         {q10, q11}, [r2]!\n        vrhadd.u16      q0,  q0,  q8\n        vld1.16         {q2,  q3},  [r0, :128]!\n        vrhadd.u16      q1,  q1,  q9\n        vld1.16         {q12, q13}, [r2]!", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:2", "text": "vst1.16         {q10, q11}, [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg64_16_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        sub             r1,  r1,  #96\n        sub             r3,  r3,  #96\n        mov             lr,  r0\n1:\n        subs            r12, r12, #1\n        vld1.16         {q8,  q9},  [r2]!\n        vld1.16         {q0,  q1},  [r0, :128]!\n        vld1.16         {q10, q11}, [r2]!\n        vrhadd.u16      q0,  q0,  q8\n        vld1.16         {q2,  q3},  [r0, :128]!\n        vrhadd.u16      q1,  q1,  q9\n        vld1.16         {q12, q13}, [r2]!\n        vrhadd.u16      q2,  q2,  q10\n        vst1.16         {q0,  q1},  [lr, :128]!\n        vrhadd.u16      q3,  q3,  q11\n        vld1.16         {q8,  q9},  [r0, :128]!\n        vst1.16         {q2,  q3},  [lr, :128]!\n        vrhadd.u16      q8,  q8,  q12\n        vld1.16         {q14, q15}, [r2], r3\n        vrhadd.u16      q9,  q9,  q13\n        vld1.16         {q10, q11}, [r0, :128], r1\n        vrhadd.u16      q10, q10, q14\n        vst1.16         {q8,  q9},  [lr, :128]!\n        vrhadd.u16      q11, q11, q15\n        vst1.16         {q10, q11}, [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_avg32_16_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        sub             r1,  r1,  #32\n        sub             r3,  r3,  #32\n        mov             lr,  r0\n1:\n        subs            r12, r12, #1\n        vld1.16         {q8,  q9},  [r2]!\n        vld1.16         {q0,  q1},  [r0, :128]!\n        vld1.16         {q10, q11}, [r2], r3\n        vrhadd.u16      q0,  q0,  q8\n        vld1.16         {q2,  q3},  [r0, :128], r1\n        vrhadd.u16      q1,  q1,  q9\n        vrhadd.u16      q2,  q2,  q10\n        vst1.16         {q0, q1},  [lr, :128]!\n        vrhadd.u16      q3,  q3,  q11\n        vst1.16         {q2, q3},  [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_avg16_16_neon, export=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:3", "text": "sub             r1,  r1,  #32\n        sub             r3,  r3,  #32\n        mov             lr,  r0\n1:\n        subs            r12, r12, #1\n        vld1.16         {q8,  q9},  [r2]!\n        vld1.16         {q0,  q1},  [r0, :128]!\n        vld1.16         {q10, q11}, [r2], r3\n        vrhadd.u16      q0,  q0,  q8\n        vld1.16         {q2,  q3},  [r0, :128], r1\n        vrhadd.u16      q1,  q1,  q9\n        vrhadd.u16      q2,  q2,  q10\n        vst1.16         {q0, q1},  [lr, :128]!\n        vrhadd.u16      q3,  q3,  q11\n        vst1.16         {q2, q3},  [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_avg16_16_neon, export=1\n        ldr             r12, [sp]\n1:\n        subs            r12, r12, #1\n        vld1.16         {q2,  q3},  [r2], r3\n        vld1.16         {q0,  q1},  [r0, :128]\n        vrhadd.u16      q0,  q0,  q2\n        vrhadd.u16      q1,  q1,  q3\n        vst1.16         {q0,  q1},  [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg8_16_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        mov             lr,  r0\n1:\n        subs            r12, r12, #2\n        vld1.16         {q2},  [r2], r3\n        vld1.16         {q0},  [r0, :128], r1\n        vld1.16         {q3},  [r2], r3\n        vrhadd.u16      q0,  q0,  q2\n        vld1.16         {q1},  [r0, :128], r1\n        vrhadd.u16      q1,  q1,  q3\n        vst1.16         {q0},  [lr, :128], r1\n        vst1.16         {q1},  [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_avg4_16_neon, export=1\n        ldr             r12, [sp]\n1:\n        subs            r12, r12, #2\n        vld1.16         {d2},  [r2], r3\n        vld1.16         {d0},  [r0, :64], r1\n        vld1.16         {d3},  [r2], r3\n        vrhadd.u16      d0,  d0,  d2\n        vld1.16         {d1},  [r0, :64]\n        sub             r0,  r0,  r1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:4", "text": "vld1.16         {q3},  [r2], r3\n        vrhadd.u16      q0,  q0,  q2\n        vld1.16         {q1},  [r0, :128], r1\n        vrhadd.u16      q1,  q1,  q3\n        vst1.16         {q0},  [lr, :128], r1\n        vst1.16         {q1},  [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_avg4_16_neon, export=1\n        ldr             r12, [sp]\n1:\n        subs            r12, r12, #2\n        vld1.16         {d2},  [r2], r3\n        vld1.16         {d0},  [r0, :64], r1\n        vld1.16         {d3},  [r2], r3\n        vrhadd.u16      d0,  d0,  d2\n        vld1.16         {d1},  [r0, :64]\n        sub             r0,  r0,  r1\n        vrhadd.u16      d1,  d1,  d3\n        vst1.16         {d0},  [r0, :64], r1\n        vst1.16         {d1},  [r0, :64], r1\n        bne             1b\n        bx              lr\nendfunc\n\n@ Helper macros for vmull/vmlal with a constant from either d0 or d1 depending on index\n.macro vmull_lane dst, src, idx\n.if \\idx < 4\n        vmull.s16       \\dst, \\src, d0[\\idx]\n.else\n        vmull.s16       \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n.macro vmlal_lane dst, src, idx\n.if \\idx < 4\n        vmlal.s16       \\dst, \\src, d0[\\idx]\n.else\n        vmlal.s16       \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n\n@ Extract a vector from src1-src2 and src3-src4, andmultiply-accumulate\n@ into dst1 and dst3 (or dst1-dst2 and dst3-dst4 for size >= 8)\n.macro extmlal dst1, dst2, dst3, dst4, src1, src2, src3, src4, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src3, \\src4, #(2*\\offset)\n        vmlal_lane      \\dst1,  d28, \\offset\n        vmlal_lane      \\dst3,  d30, \\offset\n.if \\size >= 8\n        vmlal_lane      \\dst2,  d29, \\offset\n        vmlal_lane      \\dst4,  d31, \\offset\n.endif\n.endm\n\n\n@ Instantiate a horizontal filter function for the given size.\n@ This can work on 4 or 8 pixels in parallel; for larger\n@ widths it will do 8 pixels at a time and loop horizontally.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:5", "text": ".endif\n.endm\n\n@ Extract a vector from src1-src2 and src3-src4, andmultiply-accumulate\n@ into dst1 and dst3 (or dst1-dst2 and dst3-dst4 for size >= 8)\n.macro extmlal dst1, dst2, dst3, dst4, src1, src2, src3, src4, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src3, \\src4, #(2*\\offset)\n        vmlal_lane      \\dst1,  d28, \\offset\n        vmlal_lane      \\dst3,  d30, \\offset\n.if \\size >= 8\n        vmlal_lane      \\dst2,  d29, \\offset\n        vmlal_lane      \\dst4,  d31, \\offset\n.endif\n.endm\n\n\n@ Instantiate a horizontal filter function for the given size.\n@ This can work on 4 or 8 pixels in parallel; for larger\n@ widths it will do 8 pixels at a time and loop horizontally.\n@ The actual width (in bytes) is passed in r5, the height in r4 and\n@ the filter coefficients in r12.\n.macro do_8tap_h type, size\nfunction \\type\\()_8tap_\\size\\()h\n        sub             r2,  r2,  #6\n        add             r6,  r0,  r1\n        add             r7,  r2,  r3\n        add             r1,  r1,  r1\n        add             r3,  r3,  r3\n        @ Only size >= 8 loops horizontally and needs\n        @ reduced dst stride\n.if \\size >= 8\n        sub             r1,  r1,  r5\n.endif\n        @ size >= 8 loads two qwords and increments r2,\n        @ for size 4 it's enough with three dwords and no\n        @ postincrement\n.if \\size >= 8\n        sub             r3,  r3,  r5\n        sub             r3,  r3,  #16\n.endif\n        @ Load the filter vector\n        vld1.16         {q0},  [r12,:128]\n1:\n.if \\size >= 8\n        mov             r12, r5\n.endif\n        @ Load src\n.if \\size >= 8\n        vld1.16         {q8,  q9},  [r2]!\n        vld1.16         {q10, q11}, [r7]!\n.else\n        vld1.16         {d16, d17, d18}, [r2]\n        vld1.16         {d20, d21, d22}, [r7]\n.endif\n2:\n\n        vmull.s16       q1,  d16, d0[0]\n        vmull.s16       q12, d20, d0[0]\n.if \\size >= 8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:6", "text": ".endif\n        @ Load the filter vector\n        vld1.16         {q0},  [r12,:128]\n1:\n.if \\size >= 8\n        mov             r12, r5\n.endif\n        @ Load src\n.if \\size >= 8\n        vld1.16         {q8,  q9},  [r2]!\n        vld1.16         {q10, q11}, [r7]!\n.else\n        vld1.16         {d16, d17, d18}, [r2]\n        vld1.16         {d20, d21, d22}, [r7]\n.endif\n2:\n\n        vmull.s16       q1,  d16, d0[0]\n        vmull.s16       q12, d20, d0[0]\n.if \\size >= 8\n        vmull.s16       q2,  d17, d0[0]\n        vmull.s16       q13, d21, d0[0]\n.endif\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 1, \\size\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 2, \\size\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 3, \\size\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 4, \\size\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 5, \\size\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 6, \\size\n        extmlal         q1,  q2,  q12, q13, q8,  q9,  q10, q11, 7, \\size\n\n        @ Round, shift and saturate.\n        @ The vqrshrun takes care of clamping negative values to zero, but\n        @ we manually need to do vmin with the max pixel value.\n        vqrshrun.s32    d2,  q1,  #7\n        vqrshrun.s32    d24, q12, #7\n.if \\size >= 8\n        vqrshrun.s32    d3,  q2,  #7\n        vqrshrun.s32    d25, q13, #7\n        vmin.u16        q1,  q1,  q3\n        vmin.u16        q12, q12, q3\n.else\n        vmin.u16        d2,  d2,  d6\n        vmin.u16        d24, d24, d6\n.endif\n        @ Average\n.ifc \\type,avg\n.if \\size >= 8\n        vld1.16         {q14}, [r0,:128]\n        vld1.16         {q15}, [r6,:128]\n        vrhadd.u16      q1,  q1,  q14\n        vrhadd.u16      q12, q12, q15\n.else\n        vld1.16         {d28}, [r0,:64]\n        vld1.16         {d30}, [r6,:64]\n        vrhadd.u16      d2,  d2,  d28\n        vrhadd.u16      d24, d24, d30\n.endif\n.endif\n        @ Store and loop horizontally (for size >= 8)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:7", "text": "vmin.u16        q12, q12, q3\n.else\n        vmin.u16        d2,  d2,  d6\n        vmin.u16        d24, d24, d6\n.endif\n        @ Average\n.ifc \\type,avg\n.if \\size >= 8\n        vld1.16         {q14}, [r0,:128]\n        vld1.16         {q15}, [r6,:128]\n        vrhadd.u16      q1,  q1,  q14\n        vrhadd.u16      q12, q12, q15\n.else\n        vld1.16         {d28}, [r0,:64]\n        vld1.16         {d30}, [r6,:64]\n        vrhadd.u16      d2,  d2,  d28\n        vrhadd.u16      d24, d24, d30\n.endif\n.endif\n        @ Store and loop horizontally (for size >= 8)\n.if \\size >= 8\n        subs            r12, r12, #16\n        vst1.16         {q1},  [r0,:128]!\n        vst1.16         {q12}, [r6,:128]!\n        beq             3f\n        vmov            q8,  q9\n        vmov            q10, q11\n        vld1.16         {q9},  [r2]!\n        vld1.16         {q11}, [r7]!\n        b               2b\n.else @ \\size == 4\n        vst1.16         {d2},  [r0,:64]\n        vst1.16         {d24}, [r6,:64]\n.endif\n3:\n        @ Loop vertically\n        add             r0,  r0,  r1\n        add             r6,  r6,  r1\n        add             r2,  r2,  r3\n        add             r7,  r7,  r3\n        subs            r4,  r4,  #2\n        bne             1b\n        pop             {r4-r7}\n        bx              lr\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size\ndo_8tap_h avg, \\size\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\n\n.macro do_8tap_h_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_\\bpp\\()_neon, export=1\n        push            {r4-r7}\n        ldr             r4,  [sp, #16]\n        ldr             r5,  [sp, #20]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:8", "text": "subs            r4,  r4,  #2\n        bne             1b\n        pop             {r4-r7}\n        bx              lr\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size\ndo_8tap_h avg, \\size\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\n\n.macro do_8tap_h_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_\\bpp\\()_neon, export=1\n        push            {r4-r7}\n        ldr             r4,  [sp, #16]\n        ldr             r5,  [sp, #20]\n        vmvn.u16        q3,  #((0xffff << \\bpp) & 0xffff)\n        movrelx         r12, X(ff_vp9_subpel_filters), r6\n        add             r12, r12, 256*\\offset\n        add             r12, r12, r5, lsl #4\n        mov             r5,  #2*\\size\n.if \\size >= 8\n        b               \\type\\()_8tap_8h\n.else\n        b               \\type\\()_8tap_4h\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size, bpp\ndo_8tap_h_func put, regular, 1, \\size, \\bpp\ndo_8tap_h_func avg, regular, 1, \\size, \\bpp\ndo_8tap_h_func put, sharp,   2, \\size, \\bpp\ndo_8tap_h_func avg, sharp,   2, \\size, \\bpp\ndo_8tap_h_func put, smooth,  0, \\size, \\bpp\ndo_8tap_h_func avg, smooth,  0, \\size, \\bpp\n.endm\n\n.macro do_8tap_h_filters_bpp bpp\ndo_8tap_h_filters 64, \\bpp\ndo_8tap_h_filters 32, \\bpp\ndo_8tap_h_filters 16, \\bpp\ndo_8tap_h_filters 8,  \\bpp\ndo_8tap_h_filters 4,  \\bpp\n.endm\n\ndo_8tap_h_filters_bpp 10\ndo_8tap_h_filters_bpp 12\n\n.ltorg\n\n@ Vertical filters\n\n@ Round, shift and saturate and store qreg1-4\n.macro do_store4 qreg1, dreg1, qreg2, dreg2, qreg3, dreg3, qreg4, dreg4, tmp1, tmp2, tmp3, tmp4, minreg, type\n        vqrshrun.s32    \\dreg1,  \\qreg1, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:9", "text": ".endm\n\n.macro do_8tap_h_filters_bpp bpp\ndo_8tap_h_filters 64, \\bpp\ndo_8tap_h_filters 32, \\bpp\ndo_8tap_h_filters 16, \\bpp\ndo_8tap_h_filters 8,  \\bpp\ndo_8tap_h_filters 4,  \\bpp\n.endm\n\ndo_8tap_h_filters_bpp 10\ndo_8tap_h_filters_bpp 12\n\n.ltorg\n\n@ Vertical filters\n\n@ Round, shift and saturate and store qreg1-4\n.macro do_store4 qreg1, dreg1, qreg2, dreg2, qreg3, dreg3, qreg4, dreg4, tmp1, tmp2, tmp3, tmp4, minreg, type\n        vqrshrun.s32    \\dreg1,  \\qreg1, #7\n        vqrshrun.s32    \\dreg2,  \\qreg2, #7\n        vqrshrun.s32    \\dreg3,  \\qreg3, #7\n        vqrshrun.s32    \\dreg4,  \\qreg4, #7\n.ifc \\type,avg\n        vld1.16         {\\tmp1},  [r6,:64], r1\n        vld1.16         {\\tmp2},  [r6,:64], r1\n        vld1.16         {\\tmp3},  [r6,:64], r1\n        vld1.16         {\\tmp4},  [r6,:64], r1\n.endif\n        vmin.u16        \\dreg1,  \\dreg1,  \\minreg\n        vmin.u16        \\dreg2,  \\dreg2,  \\minreg\n        vmin.u16        \\dreg3,  \\dreg3,  \\minreg\n        vmin.u16        \\dreg4,  \\dreg4,  \\minreg\n.ifc \\type,avg\n        vrhadd.u16      \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u16      \\dreg2,  \\dreg2,  \\tmp2\n        vrhadd.u16      \\dreg3,  \\dreg3,  \\tmp3\n        vrhadd.u16      \\dreg4,  \\dreg4,  \\tmp4\n.endif\n        vst1.16         {\\dreg1}, [r0,:64], r1\n        vst1.16         {\\dreg2}, [r0,:64], r1\n        vst1.16         {\\dreg3}, [r0,:64], r1\n        vst1.16         {\\dreg4}, [r0,:64], r1\n.endm\n\n@ Round, shift and saturate and store qreg1-4\n@ qreg1-2 belong to one line and qreg3-4 to the second line.\n@ dreg1-2 == qreg1, dreg3-4 == qreg2.\n.macro do_store8 qreg1, qreg2, qreg3, qreg4, dreg1, dreg2, dreg3, dreg4, minreg, type\n        vqrshrun.s32    \\dreg1,  \\qreg1, #7\n        vqrshrun.s32    \\dreg2,  \\qreg2, #7\n        vqrshrun.s32    \\dreg3,  \\qreg3, #7\n        vqrshrun.s32    \\dreg4,  \\qreg4, #7\n.ifc \\type,avg\n        vld1.16         {\\qreg3},  [r6,:128], r1\n        vld1.16         {\\qreg4},  [r6,:128], r1\n.endif\n        vmin.u16        \\qreg1,  \\qreg1,  \\minreg\n        vmin.u16        \\qreg2,  \\qreg2,  \\minreg\n.ifc \\type,avg", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:10", "text": "vst1.16         {\\dreg2}, [r0,:64], r1\n        vst1.16         {\\dreg3}, [r0,:64], r1\n        vst1.16         {\\dreg4}, [r0,:64], r1\n.endm\n\n@ Round, shift and saturate and store qreg1-4\n@ qreg1-2 belong to one line and qreg3-4 to the second line.\n@ dreg1-2 == qreg1, dreg3-4 == qreg2.\n.macro do_store8 qreg1, qreg2, qreg3, qreg4, dreg1, dreg2, dreg3, dreg4, minreg, type\n        vqrshrun.s32    \\dreg1,  \\qreg1, #7\n        vqrshrun.s32    \\dreg2,  \\qreg2, #7\n        vqrshrun.s32    \\dreg3,  \\qreg3, #7\n        vqrshrun.s32    \\dreg4,  \\qreg4, #7\n.ifc \\type,avg\n        vld1.16         {\\qreg3},  [r6,:128], r1\n        vld1.16         {\\qreg4},  [r6,:128], r1\n.endif\n        vmin.u16        \\qreg1,  \\qreg1,  \\minreg\n        vmin.u16        \\qreg2,  \\qreg2,  \\minreg\n.ifc \\type,avg\n        vrhadd.u16      \\qreg1,  \\qreg1,  \\qreg3\n        vrhadd.u16      \\qreg2,  \\qreg2,  \\qreg4\n.endif\n        vst1.16         {\\qreg1}, [r0,:128], r1\n        vst1.16         {\\qreg2}, [r0,:128], r1\n.endm\n\n@ Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n@ (src1-src8 into dst1, src2-src9 into dst2).\n.macro convolve4 dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, tmp1, tmp2\n        vmull.s16       \\dst1, \\src1, d0[0]\n        vmull.s16       \\dst2, \\src2, d0[0]\n        vmull.s16       \\tmp1, \\src2, d0[1]\n        vmull.s16       \\tmp2, \\src3, d0[1]\n        vmlal.s16       \\dst1, \\src3, d0[2]\n        vmlal.s16       \\dst2, \\src4, d0[2]\n        vmlal.s16       \\tmp1, \\src4, d0[3]\n        vmlal.s16       \\tmp2, \\src5, d0[3]\n        vmlal.s16       \\dst1, \\src5, d1[0]\n        vmlal.s16       \\dst2, \\src6, d1[0]\n        vmlal.s16       \\tmp1, \\src6, d1[1]\n        vmlal.s16       \\tmp2, \\src7, d1[1]\n        vmlal.s16       \\dst1, \\src7, d1[2]\n        vmlal.s16       \\dst2, \\src8, d1[2]\n        vmlal.s16       \\tmp1, \\src8, d1[3]\n        vmlal.s16       \\tmp2, \\src9, d1[3]\n        vadd.s32        \\dst1, \\dst1, \\tmp1\n        vadd.s32        \\dst2, \\dst2, \\tmp2\n.endm\n\n@ Evaluate the filter twice in parallel. This does the same as convolve4 above,\n@ but with double width (two input/output registers per row).\n.macro convolve8 dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, src7, src8, src9, src10, src11, src12, src13, src14, src15, src16, src17, src18\n        vmull.s16       \\dst1, \\src1,  d0[0]\n        vmull.s16       \\dst2, \\src2,  d0[0]\n        vmull.s16       \\dst3, \\src3,  d0[0]\n        vmull.s16       \\dst4, \\src4,  d0[0]\n        vmlal.s16       \\dst1, \\src3,  d0[1]\n        vmlal.s16       \\dst2, \\src4,  d0[1]\n        vmlal.s16       \\dst3, \\src5,  d0[1]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:11", "text": "vmlal.s16       \\tmp1, \\src6, d1[1]\n        vmlal.s16       \\tmp2, \\src7, d1[1]\n        vmlal.s16       \\dst1, \\src7, d1[2]\n        vmlal.s16       \\dst2, \\src8, d1[2]\n        vmlal.s16       \\tmp1, \\src8, d1[3]\n        vmlal.s16       \\tmp2, \\src9, d1[3]\n        vadd.s32        \\dst1, \\dst1, \\tmp1\n        vadd.s32        \\dst2, \\dst2, \\tmp2\n.endm\n\n@ Evaluate the filter twice in parallel. This does the same as convolve4 above,\n@ but with double width (two input/output registers per row).\n.macro convolve8 dst1, dst2, dst3, dst4, src1, src2, src3, src4, src5, src6, src7, src8, src9, src10, src11, src12, src13, src14, src15, src16, src17, src18\n        vmull.s16       \\dst1, \\src1,  d0[0]\n        vmull.s16       \\dst2, \\src2,  d0[0]\n        vmull.s16       \\dst3, \\src3,  d0[0]\n        vmull.s16       \\dst4, \\src4,  d0[0]\n        vmlal.s16       \\dst1, \\src3,  d0[1]\n        vmlal.s16       \\dst2, \\src4,  d0[1]\n        vmlal.s16       \\dst3, \\src5,  d0[1]\n        vmlal.s16       \\dst4, \\src6,  d0[1]\n        vmlal.s16       \\dst1, \\src5,  d0[2]\n        vmlal.s16       \\dst2, \\src6,  d0[2]\n        vmlal.s16       \\dst3, \\src7,  d0[2]\n        vmlal.s16       \\dst4, \\src8,  d0[2]\n        vmlal.s16       \\dst1, \\src7,  d0[3]\n        vmlal.s16       \\dst2, \\src8,  d0[3]\n        vmlal.s16       \\dst3, \\src9,  d0[3]\n        vmlal.s16       \\dst4, \\src10, d0[3]\n        vmlal.s16       \\dst1, \\src9,  d1[0]\n        vmlal.s16       \\dst2, \\src10, d1[0]\n        vmlal.s16       \\dst3, \\src11, d1[0]\n        vmlal.s16       \\dst4, \\src12, d1[0]\n        vmlal.s16       \\dst1, \\src11, d1[1]\n        vmlal.s16       \\dst2, \\src12, d1[1]\n        vmlal.s16       \\dst3, \\src13, d1[1]\n        vmlal.s16       \\dst4, \\src14, d1[1]\n        vmlal.s16       \\dst1, \\src13, d1[2]\n        vmlal.s16       \\dst2, \\src14, d1[2]\n        vmlal.s16       \\dst3, \\src15, d1[2]\n        vmlal.s16       \\dst4, \\src16, d1[2]\n        vmlal.s16       \\dst1, \\src15, d1[3]\n        vmlal.s16       \\dst2, \\src16, d1[3]\n        vmlal.s16       \\dst3, \\src17, d1[3]\n        vmlal.s16       \\dst4, \\src18, d1[3]\n.endm\n\n@ Instantiate a vertical filter function for filtering 8 pixels at a time.\n@ The height is passed in r4, the width in r5 and the filter coefficients\n@ in r12.\n.macro do_8tap_8v type\nfunction \\type\\()_8tap_8v\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n1:\n.ifc \\type,avg\n        mov             r6,  r0\n.endif\n        mov             r12, r4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:12", "text": "vmlal.s16       \\dst4, \\src16, d1[2]\n        vmlal.s16       \\dst1, \\src15, d1[3]\n        vmlal.s16       \\dst2, \\src16, d1[3]\n        vmlal.s16       \\dst3, \\src17, d1[3]\n        vmlal.s16       \\dst4, \\src18, d1[3]\n.endm\n\n@ Instantiate a vertical filter function for filtering 8 pixels at a time.\n@ The height is passed in r4, the width in r5 and the filter coefficients\n@ in r12.\n.macro do_8tap_8v type\nfunction \\type\\()_8tap_8v\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n1:\n.ifc \\type,avg\n        mov             r6,  r0\n.endif\n        mov             r12, r4\n\n        vld1.16         {q5},  [r2], r3\n        vld1.16         {q6},  [r2], r3\n        vld1.16         {q7},  [r2], r3\n        vld1.16         {q8},  [r2], r3\n        vld1.16         {q9},  [r2], r3\n        vld1.16         {q10}, [r2], r3\n        vld1.16         {q11}, [r2], r3\n2:\n        vld1.16         {q12}, [r2], r3\n        vld1.16         {q13}, [r2], r3\n        vld1.16         {q14}, [r2], r3\n        vld1.16         {q15}, [r2], r3\n        convolve8       q2,  q3,  q4,  q5,  d10, d11, d12, d13, d14, d15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27\n        do_store8       q2,  q3,  q4,  q5,  d4,  d5,  d6,  d7,  q1,  \\type\n        convolve8       q2,  q3,  q4,  q5,  d14, d15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31\n        do_store8       q2,  q3,  q4,  q5,  d4,  d5,  d6,  d7,  q1,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        vld1.16         {q4},  [r2], r3\n        vld1.16         {q5},  [r2], r3\n        vld1.16         {q6},  [r2], r3\n        vld1.16         {q7},  [r2], r3\n        convolve8       q2,  q3,  q8,  q9,  d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31, d8,  d9,  d10, d11\n        do_store8       q2,  q3,  q8,  q9,  d4,  d5,  d6,  d7,  q1,  \\type\n        convolve8       q2,  q3,  q8,  q9,  d22, d23, d24, d25, d26, d27, d28, d29, d30, d31, d8,  d9,  d10, d11, d12, d13, d14, d15\n        do_store8       q2,  q3,  q8,  q9,  d4,  d5,  d6,  d7,  q1,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        vld1.16         {q8},  [r2], r3\n        vld1.16         {q9},  [r2], r3\n        vld1.16         {q10}, [r2], r3\n        vld1.16         {q11}, [r2], r3\n        convolve8       q2,  q3,  q12, q13, d26, d27, d28, d29, d30, d31, d8,  d9,  d10, d11, d12, d13, d14, d15, d16, d17, d18, d19\n        do_store8       q2,  q3,  q12, q13, d4,  d5,  d6,  d7,  q1,  \\type\n        convolve8       q2,  q3,  q12, q13, d30, d31, d8,  d9,  d10, d11, d12, d13, d14, d15, d16, d17, d18, d19, d20, d21, d22, d23", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:13", "text": "vld1.16         {q4},  [r2], r3\n        vld1.16         {q5},  [r2], r3\n        vld1.16         {q6},  [r2], r3\n        vld1.16         {q7},  [r2], r3\n        convolve8       q2,  q3,  q8,  q9,  d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31, d8,  d9,  d10, d11\n        do_store8       q2,  q3,  q8,  q9,  d4,  d5,  d6,  d7,  q1,  \\type\n        convolve8       q2,  q3,  q8,  q9,  d22, d23, d24, d25, d26, d27, d28, d29, d30, d31, d8,  d9,  d10, d11, d12, d13, d14, d15\n        do_store8       q2,  q3,  q8,  q9,  d4,  d5,  d6,  d7,  q1,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        vld1.16         {q8},  [r2], r3\n        vld1.16         {q9},  [r2], r3\n        vld1.16         {q10}, [r2], r3\n        vld1.16         {q11}, [r2], r3\n        convolve8       q2,  q3,  q12, q13, d26, d27, d28, d29, d30, d31, d8,  d9,  d10, d11, d12, d13, d14, d15, d16, d17, d18, d19\n        do_store8       q2,  q3,  q12, q13, d4,  d5,  d6,  d7,  q1,  \\type\n        convolve8       q2,  q3,  q12, q13, d30, d31, d8,  d9,  d10, d11, d12, d13, d14, d15, d16, d17, d18, d19, d20, d21, d22, d23\n        do_store8       q2,  q3,  q12, q13, d4,  d5,  d6,  d7,  q1,  \\type\n\n        subs            r12, r12, #4\n        bne             2b\n\n8:\n        subs            r5,  r5,  #8\n        beq             9f\n        @ r0 -= h * dst_stride\n        mls             r0,  r1,  r4, r0\n        @ r2 -= h * src_stride\n        mls             r2,  r3,  r4, r2\n        @ r2 -= 8 * src_stride\n        sub             r2,  r2,  r3, lsl #3\n        @ r2 += 1 * src_stride\n        add             r2,  r2,  r3\n        add             r2,  r2,  #16\n        add             r0,  r0,  #16\n        b               1b\n9:\n        vpop            {q4-q7}\n        pop             {r4-r6}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_8v put\ndo_8tap_8v avg\n\n@ Instantiate a vertical filter function for filtering a 4 pixels wide\n@ slice. This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type\nfunction \\type\\()_8tap_4v\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n.ifc \\type,avg\n        mov             r6,  r0\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:14", "text": "vpop            {q4-q7}\n        pop             {r4-r6}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_8v put\ndo_8tap_8v avg\n\n@ Instantiate a vertical filter function for filtering a 4 pixels wide\n@ slice. This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type\nfunction \\type\\()_8tap_4v\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n.ifc \\type,avg\n        mov             r6,  r0\n.endif\n\n        vld1.16         {d16}, [r2], r3\n        vld1.16         {d17}, [r2], r3\n        vld1.16         {d18}, [r2], r3\n        vld1.16         {d19}, [r2], r3\n        vld1.16         {d20}, [r2], r3\n        vld1.16         {d21}, [r2], r3\n        vld1.16         {d22}, [r2], r3\n        vld1.16         {d23}, [r2], r3\n        vld1.16         {d24}, [r2], r3\n        vld1.16         {d25}, [r2], r3\n        vld1.16         {d26}, [r2], r3\n        convolve4       q2,  q3,  d16, d17, d18, d19, d20, d21, d22, d23, d24, q14, q15\n        convolve4       q14, q15, d18, d19, d20, d21, d22, d23, d24, d25, d26, q8,  q9\n        do_store4       q2,  d4,  q3,  d6,  q14, d28, q15, d30, d5,  d7,  d29, d31, d2,  \\type\n\n        subs            r4,  r4,  #4\n        beq             9f\n\n        vld1.16         {d27}, [r2], r3\n        vld1.16         {d28}, [r2], r3\n        vld1.16         {d29}, [r2], r3\n        vld1.16         {d30}, [r2], r3\n        convolve4       q2,  q3,  d20, d21, d22, d23, d24, d25, d26, d27, d28, q8,  q9\n        convolve4       q8,  q9,  d22, d23, d24, d25, d26, d27, d28, d29, d30, q10, q11\n        do_store4       q2,  d4,  q3,  d6,  q8,  d16, q9,  d18, d5,  d7,  d17, d19, d2,  \\type\n\n9:\n        pop             {r4-r6}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_4v put\ndo_8tap_4v avg\n\n.macro do_8tap_v_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_\\bpp\\()_neon, export=1\n        push            {r4-r6}\n        ldr             r4,  [sp, #12]\n        ldr             r5,  [sp, #20]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:15", "text": "vld1.16         {d29}, [r2], r3\n        vld1.16         {d30}, [r2], r3\n        convolve4       q2,  q3,  d20, d21, d22, d23, d24, d25, d26, d27, d28, q8,  q9\n        convolve4       q8,  q9,  d22, d23, d24, d25, d26, d27, d28, d29, d30, q10, q11\n        do_store4       q2,  d4,  q3,  d6,  q8,  d16, q9,  d18, d5,  d7,  d17, d19, d2,  \\type\n\n9:\n        pop             {r4-r6}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_4v put\ndo_8tap_4v avg\n\n.macro do_8tap_v_func type, filter, offset, size, bpp\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_\\bpp\\()_neon, export=1\n        push            {r4-r6}\n        ldr             r4,  [sp, #12]\n        ldr             r5,  [sp, #20]\n.if \\size >= 8\n        vpush           {q4-q7}\n.endif\n        vmvn.u16        q1,  #((0xffff << \\bpp) & 0xffff)\n        movrelx         r12, X(ff_vp9_subpel_filters), r6\n        add             r12, r12, 256*\\offset\n        add             r12, r12, r5, lsl #4\n        mov             r5,  #\\size\n.if \\size >= 8\n        b               \\type\\()_8tap_8v\n.else\n        b               \\type\\()_8tap_4v\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size, bpp\ndo_8tap_v_func put, regular, 1, \\size, \\bpp\ndo_8tap_v_func avg, regular, 1, \\size, \\bpp\ndo_8tap_v_func put, sharp,   2, \\size, \\bpp\ndo_8tap_v_func avg, sharp,   2, \\size, \\bpp\ndo_8tap_v_func put, smooth,  0, \\size, \\bpp\ndo_8tap_v_func avg, smooth,  0, \\size, \\bpp\n.endm\n\n.macro do_8tap_v_filters_bpp bpp\ndo_8tap_v_filters 64, \\bpp\ndo_8tap_v_filters 32, \\bpp\ndo_8tap_v_filters 16, \\bpp\ndo_8tap_v_filters 8,  \\bpp\ndo_8tap_v_filters 4,  \\bpp\n.endm\n\ndo_8tap_v_filters_bpp 10\ndo_8tap_v_filters_bpp 12", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 561, "line_end": 615}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:16", "text": "do_8tap_v_func avg, sharp,   2, \\size, \\bpp\ndo_8tap_v_func put, smooth,  0, \\size, \\bpp\ndo_8tap_v_func avg, smooth,  0, \\size, \\bpp\n.endm\n\n.macro do_8tap_v_filters_bpp bpp\ndo_8tap_v_filters 64, \\bpp\ndo_8tap_v_filters 32, \\bpp\ndo_8tap_v_filters 16, \\bpp\ndo_8tap_v_filters 8,  \\bpp\ndo_8tap_v_filters 4,  \\bpp\n.endm\n\ndo_8tap_v_filters_bpp 10\ndo_8tap_v_filters_bpp 12", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 601, "line_end": 615}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_16bpp_neon.S:4", "text": "vld1.16         {q3},  [r2], r3\n        vrhadd.u16      q0,  q0,  q2\n        vld1.16         {q1},  [r0, :128], r1\n        vrhadd.u16      q1,  q1,  q3\n        vst1.16         {q0},  [lr, :128], r1\n        vst1.16         {q1},  [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_avg4_16_neon, export=1\n        ldr             r12, [sp]\n1:\n        subs            r12, r12, #2\n        vld1.16         {d2},  [r2], r3\n        vld1.16         {d0},  [r0, :64], r1\n        vld1.16         {d3},  [r2], r3\n        vrhadd.u16      d0,  d0,  d2\n        vld1.16         {d1},  [r0, :64]\n        sub             r0,  r0,  r1\n        vrhadd.u16      d1,  d1,  d3\n        vst1.16         {d0},  [r0, :64], r1\n        vst1.16         {d1},  [r0, :64], r1\n        bne             1b\n        bx              lr\nendfunc\n\n@ Helper macros for vmull/vmlal with a constant from either d0 or d1 depending on index\n.macro vmull_lane dst, src, idx\n.if \\idx < 4\n       vmull.s16        \\dst, \\src, d0[\\idx]\n.else\n       vmull.s16        \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n.macro vmlal_lane dst, src, idx\n.if \\idx < 4\n       vmlal.s16        \\dst, \\src, d0[\\idx]\n.else\n       vmlal.s16        \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n\n@ Extract a vector from src1-src2 and src3-src4, andmultiply-accumulate\n@ into dst1 and dst3 (or dst1-dst2 and dst3-dst4 for size >= 8)\n.macro extmlal dst1, dst2, dst3, dst4, src1, src2, src3, src4, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src3, \\src4, #(2*\\offset)\n        vmlal_lane      \\dst1,  d28, \\offset\n        vmlal_lane      \\dst3,  d30, \\offset\n.if \\size >= 8\n        vmlal_lane      \\dst2,  d29, \\offset\n        vmlal_lane      \\dst4,  d31, \\offset\n.endif\n.endm\n\n\n@ Instantiate a horizontal filter function for the given size.\n@ This can work on 4 or 8 pixels in parallel; for larger\n@ widths it will do 8 pixels at a time and loop horizontally.", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_16bpp_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_16bpp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:1", "text": "/*\n * Copyright (c) 2016 Google Inc.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n@ All public functions in this file have the following signature:\n@ typedef void (*vp9_mc_func)(uint8_t *dst, ptrdiff_t dst_stride,\n@                            const uint8_t *ref, ptrdiff_t ref_stride,\n@                            int h, int mx, int my);\n\nfunction ff_vp9_copy64_neon, export=1\n        ldr             r12, [sp]\n        sub             r1,  r1,  #32\n        sub             r3,  r3,  #32\n1:\n        vld1.8          {q0,  q1},  [r2]!\n        vst1.8          {q0,  q1},  [r0, :128]!\n        vld1.8          {q2,  q3},  [r2], r3\n        subs            r12, r12, #1\n        vst1.8          {q2,  q3},  [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg64_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        sub             r1,  r1,  #32\n        sub             r3,  r3,  #32\n        mov             lr,  r0\n1:\n        vld1.8          {q8,  q9},  [r2]!\n        vld1.8          {q0,  q1},  [r0, :128]!\n        vld1.8          {q10, q11}, [r2], r3\n        vrhadd.u8       q0,  q0,  q8\n        vld1.8          {q2,  q3},  [r0, :128], r1\n        vrhadd.u8       q1,  q1,  q9\n        vrhadd.u8       q2,  q2,  q10\n        vst1.8          {q0,  q1},  [lr, :128]!\n        vrhadd.u8       q3,  q3,  q11\n        vst1.8          {q2,  q3},  [lr, :128], r1\n        subs            r12, r12, #1\n        bne             1b", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:2", "text": "function ff_vp9_avg64_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        sub             r1,  r1,  #32\n        sub             r3,  r3,  #32\n        mov             lr,  r0\n1:\n        vld1.8          {q8,  q9},  [r2]!\n        vld1.8          {q0,  q1},  [r0, :128]!\n        vld1.8          {q10, q11}, [r2], r3\n        vrhadd.u8       q0,  q0,  q8\n        vld1.8          {q2,  q3},  [r0, :128], r1\n        vrhadd.u8       q1,  q1,  q9\n        vrhadd.u8       q2,  q2,  q10\n        vst1.8          {q0,  q1},  [lr, :128]!\n        vrhadd.u8       q3,  q3,  q11\n        vst1.8          {q2,  q3},  [lr, :128], r1\n        subs            r12, r12, #1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_copy32_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.8          {q0,  q1},  [r2], r3\n        subs            r12, r12, #1\n        vst1.8          {q0,  q1},  [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg32_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.8          {q2,  q3},  [r2], r3\n        vld1.8          {q0,  q1},  [r0, :128]\n        vrhadd.u8       q0,  q0,  q2\n        vrhadd.u8       q1,  q1,  q3\n        subs            r12, r12, #1\n        vst1.8          {q0,  q1},  [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_copy16_neon, export=1\n        push            {r4,lr}\n        ldr             r12, [sp, #8]\n        add             r4,  r0,  r1\n        add             lr,  r2,  r3\n        add             r1,  r1,  r1\n        add             r3,  r3,  r3\n1:\n        vld1.8          {q0},  [r2], r3\n        vld1.8          {q1},  [lr], r3\n        subs            r12, r12, #2\n        vst1.8          {q0},  [r0, :128], r1\n        vst1.8          {q1},  [r4, :128], r1\n        bne             1b", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:3", "text": "subs            r12, r12, #1\n        vst1.8          {q0,  q1},  [r0, :128], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_copy16_neon, export=1\n        push            {r4,lr}\n        ldr             r12, [sp, #8]\n        add             r4,  r0,  r1\n        add             lr,  r2,  r3\n        add             r1,  r1,  r1\n        add             r3,  r3,  r3\n1:\n        vld1.8          {q0},  [r2], r3\n        vld1.8          {q1},  [lr], r3\n        subs            r12, r12, #2\n        vst1.8          {q0},  [r0, :128], r1\n        vst1.8          {q1},  [r4, :128], r1\n        bne             1b\n        pop             {r4,pc}\nendfunc\n\nfunction ff_vp9_avg16_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        mov             lr,  r0\n1:\n        vld1.8          {q2},  [r2], r3\n        vld1.8          {q0},  [r0, :128], r1\n        vld1.8          {q3},  [r2], r3\n        vrhadd.u8       q0,  q0,  q2\n        vld1.8          {q1},  [r0, :128], r1\n        vrhadd.u8       q1,  q1,  q3\n        subs            r12, r12, #2\n        vst1.8          {q0},  [lr, :128], r1\n        vst1.8          {q1},  [lr, :128], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\nfunction ff_vp9_copy8_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.8          {d0},  [r2], r3\n        vld1.8          {d1},  [r2], r3\n        subs            r12, r12, #2\n        vst1.8          {d0},  [r0, :64], r1\n        vst1.8          {d1},  [r0, :64], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg8_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.8          {d2},  [r2], r3\n        vld1.8          {d0},  [r0, :64], r1\n        vld1.8          {d3},  [r2], r3\n        vrhadd.u8       d0,  d0,  d2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:4", "text": "function ff_vp9_copy8_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.8          {d0},  [r2], r3\n        vld1.8          {d1},  [r2], r3\n        subs            r12, r12, #2\n        vst1.8          {d0},  [r0, :64], r1\n        vst1.8          {d1},  [r0, :64], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg8_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.8          {d2},  [r2], r3\n        vld1.8          {d0},  [r0, :64], r1\n        vld1.8          {d3},  [r2], r3\n        vrhadd.u8       d0,  d0,  d2\n        vld1.8          {d1},  [r0, :64]\n        sub             r0,  r0,  r1\n        vrhadd.u8       d1,  d1,  d3\n        subs            r12, r12, #2\n        vst1.8          {d0},  [r0, :64], r1\n        vst1.8          {d1},  [r0, :64], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_copy4_neon, export=1\n        ldr             r12, [sp]\n1:\n        vld1.32         {d0[]},   [r2], r3\n        vld1.32         {d1[]},   [r2], r3\n        vst1.32         {d0[0]},  [r0, :32], r1\n        vld1.32         {d2[]},   [r2], r3\n        vst1.32         {d1[0]},  [r0, :32], r1\n        vld1.32         {d3[]},   [r2], r3\n        subs            r12, r12, #4\n        vst1.32         {d2[0]},  [r0, :32], r1\n        vst1.32         {d3[0]},  [r0, :32], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg4_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        mov             lr,  r0\n1:\n        vld1.32         {d4[]},   [r2], r3\n        vld1.32         {d0[]},   [r0, :32], r1\n        vld1.32         {d5[]},   [r2], r3\n        vrhadd.u8       d0,  d0,  d4\n        vld1.32         {d1[]},   [r0, :32], r1\n        vld1.32         {d6[]},   [r2], r3\n        vrhadd.u8       d1,  d1,  d5\n        vld1.32         {d2[]},   [r0, :32], r1\n        vld1.32         {d7[]},   [r2], r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:5", "text": "vst1.32         {d2[0]},  [r0, :32], r1\n        vst1.32         {d3[0]},  [r0, :32], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg4_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        mov             lr,  r0\n1:\n        vld1.32         {d4[]},   [r2], r3\n        vld1.32         {d0[]},   [r0, :32], r1\n        vld1.32         {d5[]},   [r2], r3\n        vrhadd.u8       d0,  d0,  d4\n        vld1.32         {d1[]},   [r0, :32], r1\n        vld1.32         {d6[]},   [r2], r3\n        vrhadd.u8       d1,  d1,  d5\n        vld1.32         {d2[]},   [r0, :32], r1\n        vld1.32         {d7[]},   [r2], r3\n        vrhadd.u8       d2,  d2,  d6\n        vld1.32         {d3[]},   [r0, :32], r1\n        subs            r12, r12, #4\n        vst1.32         {d0[0]},  [lr, :32], r1\n        vrhadd.u8       d3,  d3,  d7\n        vst1.32         {d1[0]},  [lr, :32], r1\n        vst1.32         {d2[0]},  [lr, :32], r1\n        vst1.32         {d3[0]},  [lr, :32], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\n@ Helper macros for vmul/vmla with a constant from either d0 or d1 depending on index\n.macro vmul_lane dst, src, idx\n.if \\idx < 4\n        vmul.s16        \\dst, \\src, d0[\\idx]\n.else\n        vmul.s16        \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n.macro vmla_lane dst, src, idx\n.if \\idx < 4\n        vmla.s16        \\dst, \\src, d0[\\idx]\n.else\n        vmla.s16        \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n\n@ Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n@ for size >= 16), and multiply-accumulate into dst1 and dst3 (or\n@ dst1-dst2 and dst3-dst4 for size >= 16)\n.macro extmla dst1, dst2, dst3, dst4, dst1d, dst3d, src1, src2, src3, src4, src5, src6, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src4, \\src5, #(2*\\offset)\n.if \\size >= 16\n        vmla_lane       \\dst1,  q14, \\offset\n        vext.8          q5,  \\src2, \\src3, #(2*\\offset)\n        vmla_lane       \\dst3,  q15, \\offset\n        vext.8          q6,  \\src5, \\src6, #(2*\\offset)\n        vmla_lane       \\dst2,  q5,  \\offset", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:6", "text": ".macro vmla_lane dst, src, idx\n.if \\idx < 4\n        vmla.s16        \\dst, \\src, d0[\\idx]\n.else\n        vmla.s16        \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n\n@ Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n@ for size >= 16), and multiply-accumulate into dst1 and dst3 (or\n@ dst1-dst2 and dst3-dst4 for size >= 16)\n.macro extmla dst1, dst2, dst3, dst4, dst1d, dst3d, src1, src2, src3, src4, src5, src6, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src4, \\src5, #(2*\\offset)\n.if \\size >= 16\n        vmla_lane       \\dst1,  q14, \\offset\n        vext.8          q5,  \\src2, \\src3, #(2*\\offset)\n        vmla_lane       \\dst3,  q15, \\offset\n        vext.8          q6,  \\src5, \\src6, #(2*\\offset)\n        vmla_lane       \\dst2,  q5,  \\offset\n        vmla_lane       \\dst4,  q6,  \\offset\n.elseif \\size == 8\n        vmla_lane       \\dst1,  q14, \\offset\n        vmla_lane       \\dst3,  q15, \\offset\n.else\n        vmla_lane       \\dst1d, d28, \\offset\n        vmla_lane       \\dst3d, d30, \\offset\n.endif\n.endm\n@ The same as above, but don't accumulate straight into the\n@ destination, but use a temp register and accumulate with saturation.\n.macro extmulqadd dst1, dst2, dst3, dst4, dst1d, dst3d, src1, src2, src3, src4, src5, src6, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src4, \\src5, #(2*\\offset)\n.if \\size >= 16\n        vmul_lane       q14, q14, \\offset\n        vext.8          q5,  \\src2, \\src3, #(2*\\offset)\n        vmul_lane       q15, q15, \\offset\n        vext.8          q6,  \\src5, \\src6, #(2*\\offset)\n        vmul_lane       q5,  q5,  \\offset\n        vmul_lane       q6,  q6,  \\offset\n.elseif \\size == 8\n        vmul_lane       q14, q14, \\offset\n        vmul_lane       q15, q15, \\offset\n.else\n        vmul_lane       d28, d28, \\offset\n        vmul_lane       d30, d30, \\offset\n.endif\n.if \\size == 4\n        vqadd.s16       \\dst1d, \\dst1d, d28\n        vqadd.s16       \\dst3d, \\dst3d, d30\n.else\n        vqadd.s16       \\dst1,  \\dst1,  q14\n        vqadd.s16       \\dst3,  \\dst3,  q15\n.if \\size >= 16\n        vqadd.s16       \\dst2,  \\dst2,  q5\n        vqadd.s16       \\dst4,  \\dst4,  q6\n.endif\n.endif\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:7", "text": "vmul_lane       q6,  q6,  \\offset\n.elseif \\size == 8\n        vmul_lane       q14, q14, \\offset\n        vmul_lane       q15, q15, \\offset\n.else\n        vmul_lane       d28, d28, \\offset\n        vmul_lane       d30, d30, \\offset\n.endif\n.if \\size == 4\n        vqadd.s16       \\dst1d, \\dst1d, d28\n        vqadd.s16       \\dst3d, \\dst3d, d30\n.else\n        vqadd.s16       \\dst1,  \\dst1,  q14\n        vqadd.s16       \\dst3,  \\dst3,  q15\n.if \\size >= 16\n        vqadd.s16       \\dst2,  \\dst2,  q5\n        vqadd.s16       \\dst4,  \\dst4,  q6\n.endif\n.endif\n.endm\n\n\n@ Instantiate a horizontal filter function for the given size.\n@ This can work on 4, 8 or 16 pixels in parallel; for larger\n@ widths it will do 16 pixels at a time and loop horizontally.\n@ The actual width is passed in r5, the height in r4 and\n@ the filter coefficients in r12. idx2 is the index of the largest\n@ filter coefficient (3 or 4) and idx1 is the other one of them.\n.macro do_8tap_h type, size, idx1, idx2\nfunction \\type\\()_8tap_\\size\\()h_\\idx1\\idx2\n        sub             r2,  r2,  #3\n        add             r6,  r0,  r1\n        add             r7,  r2,  r3\n        add             r1,  r1,  r1\n        add             r3,  r3,  r3\n        @ Only size >= 16 loops horizontally and needs\n        @ reduced dst stride\n.if \\size >= 16\n        sub             r1,  r1,  r5\n.endif\n        @ size >= 16 loads two qwords and increments r2,\n        @ size 4 loads 1 d word, increments r2 and loads 1 32-bit lane\n        @ for size 8 it's enough with one qword and no postincrement\n.if \\size >= 16\n        sub             r3,  r3,  r5\n        sub             r3,  r3,  #8\n.elseif \\size == 4\n        sub             r3,  r3,  #8\n.endif\n        @ Load the filter vector\n        vld1.16         {q0},  [r12,:128]\n1:\n.if \\size >= 16\n        mov             r12, r5\n.endif\n        @ Load src\n.if \\size >= 16\n        vld1.8          {d18, d19, d20}, [r2]!\n        vld1.8          {d24, d25, d26}, [r7]!\n.elseif \\size == 8", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:8", "text": "@ size >= 16 loads two qwords and increments r2,\n        @ size 4 loads 1 d word, increments r2 and loads 1 32-bit lane\n        @ for size 8 it's enough with one qword and no postincrement\n.if \\size >= 16\n        sub             r3,  r3,  r5\n        sub             r3,  r3,  #8\n.elseif \\size == 4\n        sub             r3,  r3,  #8\n.endif\n        @ Load the filter vector\n        vld1.16         {q0},  [r12,:128]\n1:\n.if \\size >= 16\n        mov             r12, r5\n.endif\n        @ Load src\n.if \\size >= 16\n        vld1.8          {d18, d19, d20}, [r2]!\n        vld1.8          {d24, d25, d26}, [r7]!\n.elseif \\size == 8\n        vld1.8          {q9},  [r2]\n        vld1.8          {q12}, [r7]\n.else @ size == 4\n        vld1.8          {d18}, [r2]!\n        vld1.8          {d24}, [r7]!\n        vld1.32         {d19[0]}, [r2]\n        vld1.32         {d25[0]}, [r7]\n.endif\n        vmovl.u8        q8,  d18\n        vmovl.u8        q9,  d19\n        vmovl.u8        q11, d24\n        vmovl.u8        q12, d25\n.if \\size >= 16\n        vmovl.u8        q10, d20\n        vmovl.u8        q13, d26\n.endif\n2:\n\n        @ Accumulate, adding idx2 last with a separate\n        @ saturating add. The positive filter coefficients\n        @ for all indices except idx2 must add up to less\n        @ than 127 for this not to overflow.\n        vmul.s16        q1,  q8,  d0[0]\n        vmul.s16        q3,  q11, d0[0]\n.if \\size >= 16\n        vmul.s16        q2,  q9,  d0[0]\n        vmul.s16        q4,  q12, d0[0]\n.endif\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 1,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 2,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 5,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 6,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 7,     \\size\n        extmulqadd      q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx2, \\size\n\n        @ Round, shift and saturate\n        vqrshrun.s16    d2,  q1,  #7\n        vqrshrun.s16    d6,  q3,  #7\n.if \\size >= 16", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:9", "text": "@ for all indices except idx2 must add up to less\n        @ than 127 for this not to overflow.\n        vmul.s16        q1,  q8,  d0[0]\n        vmul.s16        q3,  q11, d0[0]\n.if \\size >= 16\n        vmul.s16        q2,  q9,  d0[0]\n        vmul.s16        q4,  q12, d0[0]\n.endif\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 1,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 2,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 5,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 6,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 7,     \\size\n        extmulqadd      q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx2, \\size\n\n        @ Round, shift and saturate\n        vqrshrun.s16    d2,  q1,  #7\n        vqrshrun.s16    d6,  q3,  #7\n.if \\size >= 16\n        vqrshrun.s16    d3,  q2,  #7\n        vqrshrun.s16    d7,  q4,  #7\n.endif\n        @ Average\n.ifc \\type,avg\n.if \\size >= 16\n        vld1.8          {q14}, [r0,:128]\n        vld1.8          {q15}, [r6,:128]\n        vrhadd.u8       q1,  q1,  q14\n        vrhadd.u8       q3,  q3,  q15\n.elseif \\size == 8\n        vld1.8          {d28}, [r0,:64]\n        vld1.8          {d30}, [r6,:64]\n        vrhadd.u8       d2,  d2,  d28\n        vrhadd.u8       d6,  d6,  d30\n.else\n        @ We only need d28[0], but [] is faster on some cores\n        vld1.32         {d28[]}, [r0,:32]\n        vld1.32         {d30[]}, [r6,:32]\n        vrhadd.u8       d2,  d2,  d28\n        vrhadd.u8       d6,  d6,  d30\n.endif\n.endif\n        @ Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            r12, r12, #16\n        vst1.8          {q1}, [r0,:128]!\n        vst1.8          {q3}, [r6,:128]!\n        beq             3f\n        vmov            q8,  q10\n        vmov            q11, q13\n        vld1.8          {q10}, [r2]!\n        vld1.8          {q13}, [r7]!\n        vmovl.u8        q9,  d20\n        vmovl.u8        q10, d21\n        vmovl.u8        q12, d26\n        vmovl.u8        q13, d27\n        b               2b\n.elseif \\size == 8\n        vst1.8          {d2}, [r0,:64]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:10", "text": "vrhadd.u8       d6,  d6,  d30\n.endif\n.endif\n        @ Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            r12, r12, #16\n        vst1.8          {q1}, [r0,:128]!\n        vst1.8          {q3}, [r6,:128]!\n        beq             3f\n        vmov            q8,  q10\n        vmov            q11, q13\n        vld1.8          {q10}, [r2]!\n        vld1.8          {q13}, [r7]!\n        vmovl.u8        q9,  d20\n        vmovl.u8        q10, d21\n        vmovl.u8        q12, d26\n        vmovl.u8        q13, d27\n        b               2b\n.elseif \\size == 8\n        vst1.8          {d2}, [r0,:64]\n        vst1.8          {d6}, [r6,:64]\n.else @ \\size == 4\n        vst1.32         {d2[0]}, [r0,:32]\n        vst1.32         {d6[0]}, [r6,:32]\n.endif\n3:\n        @ Loop vertically\n        add             r0,  r0,  r1\n        add             r6,  r6,  r1\n        add             r2,  r2,  r3\n        add             r7,  r7,  r3\n        subs            r4,  r4,  #2\n        bne             1b\n.if \\size >= 16\n        vpop            {q4-q6}\n.endif\n        pop             {r4-r7}\n        bx              lr\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size, 3, 4\ndo_8tap_h avg, \\size, 3, 4\ndo_8tap_h put, \\size, 4, 3\ndo_8tap_h avg, \\size, 4, 3\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        push            {r4-r7}\n.if \\size >= 16\n        vpush           {q4-q6}\n        ldr             r4,  [sp, #64]\n        ldr             r5,  [sp, #68]\n.else", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:11", "text": ".macro do_8tap_h_size size\ndo_8tap_h put, \\size, 3, 4\ndo_8tap_h avg, \\size, 3, 4\ndo_8tap_h put, \\size, 4, 3\ndo_8tap_h avg, \\size, 4, 3\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        push            {r4-r7}\n.if \\size >= 16\n        vpush           {q4-q6}\n        ldr             r4,  [sp, #64]\n        ldr             r5,  [sp, #68]\n.else\n        ldr             r4,  [sp, #16]\n        ldr             r5,  [sp, #20]\n.endif\n        movrelx         r12, X(ff_vp9_subpel_filters), r6\n        add             r12, r12, 256*\\offset\n        cmp             r5,  #8\n        add             r12, r12, r5, lsl #4\n        mov             r5,  #\\size\n.if \\size >= 16\n        bge             \\type\\()_8tap_16h_34\n        b               \\type\\()_8tap_16h_43\n.else\n        bge             \\type\\()_8tap_\\size\\()h_34\n        b               \\type\\()_8tap_\\size\\()h_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size\ndo_8tap_h_func put, regular, 1, \\size\ndo_8tap_h_func avg, regular, 1, \\size\ndo_8tap_h_func put, sharp,   2, \\size\ndo_8tap_h_func avg, sharp,   2, \\size\ndo_8tap_h_func put, smooth,  0, \\size\ndo_8tap_h_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_h_filters 64\ndo_8tap_h_filters 32\ndo_8tap_h_filters 16\ndo_8tap_h_filters 8\ndo_8tap_h_filters 4\n\n.ltorg\n\n@ Vertical filters\n\n@ Round, shift and saturate and store qreg1-2 over 4 lines\n.macro do_store4 qreg1, dreg1, qreg2, dreg2, tmp1, tmp2, type\n        vqrshrun.s16    \\dreg1,  \\qreg1, #7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:12", "text": "do_8tap_h_func avg, regular, 1, \\size\ndo_8tap_h_func put, sharp,   2, \\size\ndo_8tap_h_func avg, sharp,   2, \\size\ndo_8tap_h_func put, smooth,  0, \\size\ndo_8tap_h_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_h_filters 64\ndo_8tap_h_filters 32\ndo_8tap_h_filters 16\ndo_8tap_h_filters 8\ndo_8tap_h_filters 4\n\n.ltorg\n\n@ Vertical filters\n\n@ Round, shift and saturate and store qreg1-2 over 4 lines\n.macro do_store4 qreg1, dreg1, qreg2, dreg2, tmp1, tmp2, type\n        vqrshrun.s16    \\dreg1,  \\qreg1, #7\n        vqrshrun.s16    \\dreg2,  \\qreg2, #7\n.ifc \\type,avg\n        vld1.32         {\\tmp1[]},   [r0,:32], r1\n        vld1.32         {\\tmp2[]},   [r0,:32], r1\n        vld1.32         {\\tmp1[1]},  [r0,:32], r1\n        vld1.32         {\\tmp2[1]},  [r0,:32], r1\n        vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u8       \\dreg2,  \\dreg2,  \\tmp2\n        sub             r0,  r0,  r1, lsl #2\n.endif\n        vst1.32         {\\dreg1[0]}, [r0,:32], r1\n        vst1.32         {\\dreg2[0]}, [r0,:32], r1\n        vst1.32         {\\dreg1[1]}, [r0,:32], r1\n        vst1.32         {\\dreg2[1]}, [r0,:32], r1\n.endm\n\n@ Round, shift and saturate and store qreg1-4\n.macro do_store qreg1, dreg1, qreg2, dreg2, qreg3, dreg3, qreg4, dreg4, tmp1, tmp2, tmp3, tmp4, type\n        vqrshrun.s16    \\dreg1,  \\qreg1, #7\n        vqrshrun.s16    \\dreg2,  \\qreg2, #7\n        vqrshrun.s16    \\dreg3,  \\qreg3, #7\n        vqrshrun.s16    \\dreg4,  \\qreg4, #7\n.ifc \\type,avg\n        vld1.8          {\\tmp1},  [r0,:64], r1\n        vld1.8          {\\tmp2},  [r0,:64], r1\n        vld1.8          {\\tmp3},  [r0,:64], r1\n        vld1.8          {\\tmp4},  [r0,:64], r1\n        vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u8       \\dreg2,  \\dreg2,  \\tmp2\n        vrhadd.u8       \\dreg3,  \\dreg3,  \\tmp3\n        vrhadd.u8       \\dreg4,  \\dreg4,  \\tmp4\n        sub             r0,  r0,  r1, lsl #2\n.endif\n        vst1.8          {\\dreg1}, [r0,:64], r1\n        vst1.8          {\\dreg2}, [r0,:64], r1\n        vst1.8          {\\dreg3}, [r0,:64], r1\n        vst1.8          {\\dreg4}, [r0,:64], r1\n.endm\n\n@ Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:13", "text": "vqrshrun.s16    \\dreg3,  \\qreg3, #7\n        vqrshrun.s16    \\dreg4,  \\qreg4, #7\n.ifc \\type,avg\n        vld1.8          {\\tmp1},  [r0,:64], r1\n        vld1.8          {\\tmp2},  [r0,:64], r1\n        vld1.8          {\\tmp3},  [r0,:64], r1\n        vld1.8          {\\tmp4},  [r0,:64], r1\n        vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u8       \\dreg2,  \\dreg2,  \\tmp2\n        vrhadd.u8       \\dreg3,  \\dreg3,  \\tmp3\n        vrhadd.u8       \\dreg4,  \\dreg4,  \\tmp4\n        sub             r0,  r0,  r1, lsl #2\n.endif\n        vst1.8          {\\dreg1}, [r0,:64], r1\n        vst1.8          {\\dreg2}, [r0,:64], r1\n        vst1.8          {\\dreg3}, [r0,:64], r1\n        vst1.8          {\\dreg4}, [r0,:64], r1\n.endm\n\n@ Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n@ (src1-src8 into dst1, src2-src9 into dst2), adding idx2 separately\n@ at the end with saturation. Indices 0 and 7 always have negative or zero\n@ coefficients, so they can be accumulated into tmp1-tmp2 together with the\n@ largest coefficient.\n.macro convolve dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, idx1, idx2, tmp1, tmp2\n        vmul.s16        \\dst1, \\src2, d0[1]\n        vmul.s16        \\dst2, \\src3, d0[1]\n        vmul.s16        \\tmp1, \\src1, d0[0]\n        vmul.s16        \\tmp2, \\src2, d0[0]\n        vmla.s16        \\dst1, \\src3, d0[2]\n        vmla.s16        \\dst2, \\src4, d0[2]\n.if \\idx1 == 3\n        vmla.s16        \\dst1, \\src4, d0[3]\n        vmla.s16        \\dst2, \\src5, d0[3]\n.else\n        vmla.s16        \\dst1, \\src5, d1[0]\n        vmla.s16        \\dst2, \\src6, d1[0]\n.endif\n        vmla.s16        \\dst1, \\src6, d1[1]\n        vmla.s16        \\dst2, \\src7, d1[1]\n        vmla.s16        \\tmp1, \\src8, d1[3]\n        vmla.s16        \\tmp2, \\src9, d1[3]\n        vmla.s16        \\dst1, \\src7, d1[2]\n        vmla.s16        \\dst2, \\src8, d1[2]\n.if \\idx2 == 3\n        vmla.s16        \\tmp1, \\src4, d0[3]\n        vmla.s16        \\tmp2, \\src5, d0[3]\n.else\n        vmla.s16        \\tmp1, \\src5, d1[0]\n        vmla.s16        \\tmp2, \\src6, d1[0]\n.endif\n        vqadd.s16       \\dst1, \\dst1, \\tmp1\n        vqadd.s16       \\dst2, \\dst2, \\tmp2\n.endm\n\n@ Load pixels and extend them to 16 bit\n.macro loadl dst1, dst2, dst3, dst4\n        vld1.8          {d2}, [r2], r3\n        vld1.8          {d3}, [r2], r3\n        vld1.8          {d4}, [r2], r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:14", "text": "vmla.s16        \\tmp1, \\src8, d1[3]\n        vmla.s16        \\tmp2, \\src9, d1[3]\n        vmla.s16        \\dst1, \\src7, d1[2]\n        vmla.s16        \\dst2, \\src8, d1[2]\n.if \\idx2 == 3\n        vmla.s16        \\tmp1, \\src4, d0[3]\n        vmla.s16        \\tmp2, \\src5, d0[3]\n.else\n        vmla.s16        \\tmp1, \\src5, d1[0]\n        vmla.s16        \\tmp2, \\src6, d1[0]\n.endif\n        vqadd.s16       \\dst1, \\dst1, \\tmp1\n        vqadd.s16       \\dst2, \\dst2, \\tmp2\n.endm\n\n@ Load pixels and extend them to 16 bit\n.macro loadl dst1, dst2, dst3, dst4\n        vld1.8          {d2}, [r2], r3\n        vld1.8          {d3}, [r2], r3\n        vld1.8          {d4}, [r2], r3\n.ifnb \\dst4\n        vld1.8          {d5}, [r2], r3\n.endif\n        vmovl.u8        \\dst1, d2\n        vmovl.u8        \\dst2, d3\n        vmovl.u8        \\dst3, d4\n.ifnb \\dst4\n        vmovl.u8        \\dst4, d5\n.endif\n.endm\n\n@ Instantiate a vertical filter function for filtering 8 pixels at a time.\n@ The height is passed in r4, the width in r5 and the filter coefficients\n@ in r12. idx2 is the index of the largest filter coefficient (3 or 4)\n@ and idx1 is the other one of them.\n.macro do_8tap_8v type, idx1, idx2\nfunction \\type\\()_8tap_8v_\\idx1\\idx2\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n1:\n        mov             r12, r4\n\n        loadl           q5,  q6,  q7\n        loadl           q8,  q9,  q10, q11\n2:\n        loadl           q12, q13, q14, q15\n        convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4,  q5\n        convolve        q3,  q4,  q7,  q8,  q9,  q10, q11, q12, q13, q14, q15, \\idx1, \\idx2, q5,  q6\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q4,  d8,  d3,  d5,  d7,  d9,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q4,  q5,  q6,  q7\n        convolve        q1,  q2,  q9,  q10, q11, q12, q13, q14, q15, q4,  q5,  \\idx1, \\idx2, q8,  q9\n        convolve        q3,  q8,  q11, q12, q13, q14, q15, q4,  q5,  q6,  q7,  \\idx1, \\idx2, q9,  q10\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q8,  d16, d3,  d5,  d7,  d17, \\type\n\n        subs            r12, r12, #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:15", "text": "1:\n        mov             r12, r4\n\n        loadl           q5,  q6,  q7\n        loadl           q8,  q9,  q10, q11\n2:\n        loadl           q12, q13, q14, q15\n        convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4,  q5\n        convolve        q3,  q4,  q7,  q8,  q9,  q10, q11, q12, q13, q14, q15, \\idx1, \\idx2, q5,  q6\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q4,  d8,  d3,  d5,  d7,  d9,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q4,  q5,  q6,  q7\n        convolve        q1,  q2,  q9,  q10, q11, q12, q13, q14, q15, q4,  q5,  \\idx1, \\idx2, q8,  q9\n        convolve        q3,  q8,  q11, q12, q13, q14, q15, q4,  q5,  q6,  q7,  \\idx1, \\idx2, q9,  q10\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q8,  d16, d3,  d5,  d7,  d17, \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q8,  q9,  q10, q11\n        convolve        q1,  q2,  q13, q14, q15, q4,  q5,  q6,  q7,  q8,  q9,  \\idx1, \\idx2, q12, q13\n        convolve        q3,  q12, q15, q4,  q5,  q6,  q7,  q8,  q9,  q10, q11, \\idx1, \\idx2, q13, q14\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q12, d24, d3,  d5,  d7,  d25, \\type\n\n        subs            r12, r12, #4\n        bne             2b\n\n8:\n        subs            r5,  r5,  #8\n        beq             9f\n        @ r0 -= h * dst_stride\n        mls             r0,  r1,  r4, r0\n        @ r2 -= h * src_stride\n        mls             r2,  r3,  r4, r2\n        @ r2 -= 8 * src_stride\n        sub             r2,  r2,  r3, lsl #3\n        @ r2 += 1 * src_stride\n        add             r2,  r2,  r3\n        add             r2,  r2,  #8\n        add             r0,  r0,  #8\n        b               1b\n9:\n        vpop            {q4-q7}\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_8v put, 3, 4\ndo_8tap_8v put, 4, 3\ndo_8tap_8v avg, 3, 4\ndo_8tap_8v avg, 4, 3\n\n@ Instantiate a vertical filter function for filtering a 4 pixels wide\n@ slice. The first half of the registers contain one row, while the second\n@ half of a register contains the second-next row (also stored in the first\n@ half of the register two steps ahead). The convolution does two outputs", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:16", "text": "add             r2,  r2,  r3\n        add             r2,  r2,  #8\n        add             r0,  r0,  #8\n        b               1b\n9:\n        vpop            {q4-q7}\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_8v put, 3, 4\ndo_8tap_8v put, 4, 3\ndo_8tap_8v avg, 3, 4\ndo_8tap_8v avg, 4, 3\n\n@ Instantiate a vertical filter function for filtering a 4 pixels wide\n@ slice. The first half of the registers contain one row, while the second\n@ half of a register contains the second-next row (also stored in the first\n@ half of the register two steps ahead). The convolution does two outputs\n@ at a time; the output of q5-q12 into one, and q4-q13 into another one.\n@ The first half of first output is the first output row, the first half\n@ of the other output is the second output row. The second halves of the\n@ registers are rows 3 and 4.\n@ This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type, idx1, idx2\nfunction \\type\\()_8tap_4v_\\idx1\\idx2\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n\n        vld1.32         {d2[]},   [r2], r3\n        vld1.32         {d3[]},   [r2], r3\n        vld1.32         {d4[]},   [r2], r3\n        vld1.32         {d5[]},   [r2], r3\n        vld1.32         {d6[]},   [r2], r3\n        vld1.32         {d7[]},   [r2], r3\n        vext.8          d2,  d2,  d4,  #4\n        vld1.32         {d8[]},   [r2], r3\n        vext.8          d3,  d3,  d5,  #4\n        vld1.32         {d9[]},   [r2], r3\n        vmovl.u8        q5,  d2\n        vext.8          d4,  d4,  d6,  #4\n        vld1.32         {d28[]},  [r2], r3\n        vmovl.u8        q6,  d3\n        vext.8          d5,  d5,  d7,  #4\n        vld1.32         {d29[]},  [r2], r3\n        vmovl.u8        q7,  d4\n        vext.8          d6,  d6,  d8,  #4\n        vld1.32         {d30[]},  [r2], r3\n        vmovl.u8        q8,  d5\n        vext.8          d7,  d7,  d9,  #4\n        vmovl.u8        q9,  d6\n        vext.8          d8,  d8,  d28, #4\n        vmovl.u8        q10, d7\n        vext.8          d9,  d9,  d29, #4\n        vmovl.u8        q11, d8\n        vext.8          d28, d28, d30, #4\n        vmovl.u8        q12, d9\n        vmovl.u8        q13, d28", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:17", "text": "vld1.32         {d9[]},   [r2], r3\n        vmovl.u8        q5,  d2\n        vext.8          d4,  d4,  d6,  #4\n        vld1.32         {d28[]},  [r2], r3\n        vmovl.u8        q6,  d3\n        vext.8          d5,  d5,  d7,  #4\n        vld1.32         {d29[]},  [r2], r3\n        vmovl.u8        q7,  d4\n        vext.8          d6,  d6,  d8,  #4\n        vld1.32         {d30[]},  [r2], r3\n        vmovl.u8        q8,  d5\n        vext.8          d7,  d7,  d9,  #4\n        vmovl.u8        q9,  d6\n        vext.8          d8,  d8,  d28, #4\n        vmovl.u8        q10, d7\n        vext.8          d9,  d9,  d29, #4\n        vmovl.u8        q11, d8\n        vext.8          d28, d28, d30, #4\n        vmovl.u8        q12, d9\n        vmovl.u8        q13, d28\n\n        convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4, q3\n        do_store4       q1,  d2,  q2,  d4,  d3,  d5,  \\type\n        subs            r4,  r4,  #4\n        beq             9f\n\n        vld1.32         {d2[]},   [r2], r3\n        vld1.32         {d3[]},   [r2], r3\n        vext.8          d29, d29, d2,  #4\n        vext.8          d30, d30, d3,  #4\n        vld1.32         {d2[1]},  [r2], r3\n        vmovl.u8        q14, d29\n        vld1.32         {d3[1]},  [r2], r3\n        vmovl.u8        q15, d30\n        vmovl.u8        q5,  d2\n        vmovl.u8        q6,  d3\n\n        convolve        q1,  q2,  q9,  q10, q11, q12, q13, q14, q15, q5,  q6,  \\idx1, \\idx2, q4, q3\n        do_store4       q1,  d2,  q2,  d4,  d3,  d5,  \\type\n\n9:\n        vpop            {q4-q7}\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_4v put, 3, 4\ndo_8tap_4v put, 4, 3\ndo_8tap_4v avg, 3, 4\ndo_8tap_4v avg, 4, 3\n\n.macro do_8tap_v_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_neon, export=1\n        push            {r4-r5}\n        vpush           {q4-q7}\n        ldr             r4,  [sp, #72]\n        movrelx         r12, X(ff_vp9_subpel_filters), r5\n        ldr             r5,  [sp, #80]\n        add             r12, r12, 256*\\offset", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:18", "text": "9:\n        vpop            {q4-q7}\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_4v put, 3, 4\ndo_8tap_4v put, 4, 3\ndo_8tap_4v avg, 3, 4\ndo_8tap_4v avg, 4, 3\n\n.macro do_8tap_v_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_neon, export=1\n        push            {r4-r5}\n        vpush           {q4-q7}\n        ldr             r4,  [sp, #72]\n        movrelx         r12, X(ff_vp9_subpel_filters), r5\n        ldr             r5,  [sp, #80]\n        add             r12, r12, 256*\\offset\n        add             r12, r12, r5, lsl #4\n        cmp             r5,  #8\n        mov             r5,  #\\size\n.if \\size >= 8\n        bge             \\type\\()_8tap_8v_34\n        b               \\type\\()_8tap_8v_43\n.else\n        bge             \\type\\()_8tap_4v_34\n        b               \\type\\()_8tap_4v_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size\ndo_8tap_v_func put, regular, 1, \\size\ndo_8tap_v_func avg, regular, 1, \\size\ndo_8tap_v_func put, sharp,   2, \\size\ndo_8tap_v_func avg, sharp,   2, \\size\ndo_8tap_v_func put, smooth,  0, \\size\ndo_8tap_v_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_v_filters 64\ndo_8tap_v_filters 32\ndo_8tap_v_filters 16\ndo_8tap_v_filters 8\ndo_8tap_v_filters 4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/arm/vp9mc_neon.S", "line_start": 681, "line_end": 727}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:5", "text": "vst1.32         {d2[0]},  [r0, :32], r1\n        vst1.32         {d3[0]},  [r0, :32], r1\n        bne             1b\n        bx              lr\nendfunc\n\nfunction ff_vp9_avg4_neon, export=1\n        push            {lr}\n        ldr             r12, [sp, #4]\n        mov             lr,  r0\n1:\n        vld1.32         {d4[]},   [r2], r3\n        vld1.32         {d0[]},   [r0, :32], r1\n        vld1.32         {d5[]},   [r2], r3\n        vrhadd.u8       d0,  d0,  d4\n        vld1.32         {d1[]},   [r0, :32], r1\n        vld1.32         {d6[]},   [r2], r3\n        vrhadd.u8       d1,  d1,  d5\n        vld1.32         {d2[]},   [r0, :32], r1\n        vld1.32         {d7[]},   [r2], r3\n        vrhadd.u8       d2,  d2,  d6\n        vld1.32         {d3[]},   [r0, :32], r1\n        subs            r12, r12, #4\n        vst1.32         {d0[0]},  [lr, :32], r1\n        vrhadd.u8       d3,  d3,  d7\n        vst1.32         {d1[0]},  [lr, :32], r1\n        vst1.32         {d2[0]},  [lr, :32], r1\n        vst1.32         {d3[0]},  [lr, :32], r1\n        bne             1b\n        pop             {pc}\nendfunc\n\n@ Helper macros for vmul/vmla with a constant from either d0 or d1 depending on index\n.macro vmul_lane dst, src, idx\n.if \\idx < 4\n       vmul.s16         \\dst, \\src, d0[\\idx]\n.else\n       vmul.s16         \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n.macro vmla_lane dst, src, idx\n.if \\idx < 4\n       vmla.s16         \\dst, \\src, d0[\\idx]\n.else\n       vmla.s16         \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n\n@ Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n@ for size >= 16), and multiply-accumulate into dst1 and dst3 (or\n@ dst1-dst2 and dst3-dst4 for size >= 16)\n.macro extmla dst1, dst2, dst3, dst4, dst1d, dst3d, src1, src2, src3, src4, src5, src6, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src4, \\src5, #(2*\\offset)\n.if \\size >= 16\n        vmla_lane       \\dst1,  q14, \\offset\n        vext.8          q5,  \\src2, \\src3, #(2*\\offset)\n        vmla_lane       \\dst3,  q15, \\offset\n        vext.8          q6,  \\src5, \\src6, #(2*\\offset)\n        vmla_lane       \\dst2,  q5,  \\offset", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "f3662562156c9b908588b1e58e4203fd09217cb6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f3662562156c9b908588b1e58e4203fd09217cb6/libavcodec/arm/vp9mc_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:6", "text": ".macro vmla_lane dst, src, idx\n.if \\idx < 4\n       vmla.s16         \\dst, \\src, d0[\\idx]\n.else\n       vmla.s16         \\dst, \\src, d1[\\idx - 4]\n.endif\n.endm\n\n@ Extract a vector from src1-src2 and src4-src5 (src1-src3 and src4-src6\n@ for size >= 16), and multiply-accumulate into dst1 and dst3 (or\n@ dst1-dst2 and dst3-dst4 for size >= 16)\n.macro extmla dst1, dst2, dst3, dst4, dst1d, dst3d, src1, src2, src3, src4, src5, src6, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src4, \\src5, #(2*\\offset)\n.if \\size >= 16\n        vmla_lane       \\dst1,  q14, \\offset\n        vext.8          q5,  \\src2, \\src3, #(2*\\offset)\n        vmla_lane       \\dst3,  q15, \\offset\n        vext.8          q6,  \\src5, \\src6, #(2*\\offset)\n        vmla_lane       \\dst2,  q5,  \\offset\n        vmla_lane       \\dst4,  q6,  \\offset\n.elseif \\size == 8\n        vmla_lane       \\dst1,  q14, \\offset\n        vmla_lane       \\dst3,  q15, \\offset\n.else\n        vmla_lane       \\dst1d, d28, \\offset\n        vmla_lane       \\dst3d, d30, \\offset\n.endif\n.endm\n@ The same as above, but don't accumulate straight into the\n@ destination, but use a temp register and accumulate with saturation.\n.macro extmulqadd dst1, dst2, dst3, dst4, dst1d, dst3d, src1, src2, src3, src4, src5, src6, offset, size\n        vext.8          q14, \\src1, \\src2, #(2*\\offset)\n        vext.8          q15, \\src4, \\src5, #(2*\\offset)\n.if \\size >= 16\n        vmul_lane       q14, q14, \\offset\n        vext.8          q5,  \\src2, \\src3, #(2*\\offset)\n        vmul_lane       q15, q15, \\offset\n        vext.8          q6,  \\src5, \\src6, #(2*\\offset)\n        vmul_lane       q5,  q5,  \\offset\n        vmul_lane       q6,  q6,  \\offset\n.elseif \\size == 8\n        vmul_lane       q14, q14, \\offset\n        vmul_lane       q15, q15, \\offset\n.else\n        vmul_lane       d28, d28, \\offset\n        vmul_lane       d30, d30, \\offset\n.endif\n.if \\size == 4\n        vqadd.s16       \\dst1d, \\dst1d, d28\n        vqadd.s16       \\dst3d, \\dst3d, d30\n.else\n        vqadd.s16       \\dst1,  \\dst1,  q14\n        vqadd.s16       \\dst3,  \\dst3,  q15\n.if \\size >= 16\n        vqadd.s16       \\dst2,  \\dst2,  q5\n        vqadd.s16       \\dst4,  \\dst4,  q6\n.endif\n.endif\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "f3662562156c9b908588b1e58e4203fd09217cb6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f3662562156c9b908588b1e58e4203fd09217cb6/libavcodec/arm/vp9mc_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:7", "text": "vmul_lane       q6,  q6,  \\offset\n.elseif \\size == 8\n        vmul_lane       q14, q14, \\offset\n        vmul_lane       q15, q15, \\offset\n.else\n        vmul_lane       d28, d28, \\offset\n        vmul_lane       d30, d30, \\offset\n.endif\n.if \\size == 4\n        vqadd.s16       \\dst1d, \\dst1d, d28\n        vqadd.s16       \\dst3d, \\dst3d, d30\n.else\n        vqadd.s16       \\dst1,  \\dst1,  q14\n        vqadd.s16       \\dst3,  \\dst3,  q15\n.if \\size >= 16\n        vqadd.s16       \\dst2,  \\dst2,  q5\n        vqadd.s16       \\dst4,  \\dst4,  q6\n.endif\n.endif\n.endm\n\n\n@ Instantiate a horizontal filter function for the given size.\n@ This can work on 4, 8 or 16 pixels in parallel; for larger\n@ widths it will do 16 pixels at a time and loop horizontally.\n@ The actual width is passed in r5, the height in r4 and\n@ the filter coefficients in r12. idx2 is the index of the largest\n@ filter coefficient (3 or 4) and idx1 is the other one of them.\n.macro do_8tap_h type, size, idx1, idx2\nfunction \\type\\()_8tap_\\size\\()h_\\idx1\\idx2\n        sub             r2,  r2,  #3\n        add             r6,  r0,  r1\n        add             r7,  r2,  r3\n        add             r1,  r1,  r1\n        add             r3,  r3,  r3\n        @ Only size >= 16 loops horizontally and needs\n        @ reduced dst stride\n.if \\size >= 16\n        sub             r1,  r1,  r5\n.endif\n        @ size >= 16 loads two qwords and increments r2,\n        @ for size 4/8 it's enough with one qword and no\n        @ postincrement\n.if \\size >= 16\n        sub             r3,  r3,  r5\n        sub             r3,  r3,  #8\n.endif\n        @ Load the filter vector\n        vld1.16         {q0},  [r12,:128]\n1:\n.if \\size >= 16\n        mov             r12, r5\n.endif\n        @ Load src\n.if \\size >= 16\n        vld1.8          {d18, d19, d20}, [r2]!\n        vld1.8          {d24, d25, d26}, [r7]!\n.else\n        vld1.8          {q9},  [r2]\n        vld1.8          {q12}, [r7]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:8", "text": "@ size >= 16 loads two qwords and increments r2,\n        @ for size 4/8 it's enough with one qword and no\n        @ postincrement\n.if \\size >= 16\n        sub             r3,  r3,  r5\n        sub             r3,  r3,  #8\n.endif\n        @ Load the filter vector\n        vld1.16         {q0},  [r12,:128]\n1:\n.if \\size >= 16\n        mov             r12, r5\n.endif\n        @ Load src\n.if \\size >= 16\n        vld1.8          {d18, d19, d20}, [r2]!\n        vld1.8          {d24, d25, d26}, [r7]!\n.else\n        vld1.8          {q9},  [r2]\n        vld1.8          {q12}, [r7]\n.endif\n        vmovl.u8        q8,  d18\n        vmovl.u8        q9,  d19\n        vmovl.u8        q11, d24\n        vmovl.u8        q12, d25\n.if \\size >= 16\n        vmovl.u8        q10, d20\n        vmovl.u8        q13, d26\n.endif\n2:\n\n        @ Accumulate, adding idx2 last with a separate\n        @ saturating add. The positive filter coefficients\n        @ for all indices except idx2 must add up to less\n        @ than 127 for this not to overflow.\n        vmul.s16        q1,  q8,  d0[0]\n        vmul.s16        q3,  q11, d0[0]\n.if \\size >= 16\n        vmul.s16        q2,  q9,  d0[0]\n        vmul.s16        q4,  q12, d0[0]\n.endif\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 1,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 2,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 5,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 6,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 7,     \\size\n        extmulqadd      q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx2, \\size\n\n        @ Round, shift and saturate\n        vqrshrun.s16    d2,  q1,  #7\n        vqrshrun.s16    d6,  q3,  #7\n.if \\size >= 16\n        vqrshrun.s16    d3,  q2,  #7\n        vqrshrun.s16    d7,  q4,  #7\n.endif\n        @ Average\n.ifc \\type,avg\n.if \\size >= 16\n        vld1.8          {q14}, [r0,:128]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:9", "text": ".endif\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 1,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 2,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 5,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 6,     \\size\n        extmla          q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, 7,     \\size\n        extmulqadd      q1,  q2,  q3,  q4,  d2,  d6,  q8,  q9,  q10, q11, q12, q13, \\idx2, \\size\n\n        @ Round, shift and saturate\n        vqrshrun.s16    d2,  q1,  #7\n        vqrshrun.s16    d6,  q3,  #7\n.if \\size >= 16\n        vqrshrun.s16    d3,  q2,  #7\n        vqrshrun.s16    d7,  q4,  #7\n.endif\n        @ Average\n.ifc \\type,avg\n.if \\size >= 16\n        vld1.8          {q14}, [r0,:128]\n        vld1.8          {q15}, [r6,:128]\n        vrhadd.u8       q1,  q1,  q14\n        vrhadd.u8       q3,  q3,  q15\n.elseif \\size == 8\n        vld1.8          {d28}, [r0,:64]\n        vld1.8          {d30}, [r6,:64]\n        vrhadd.u8       d2,  d2,  d28\n        vrhadd.u8       d6,  d6,  d30\n.else\n        @ We only need d28[0], but [] is faster on some cores\n        vld1.32         {d28[]}, [r0,:32]\n        vld1.32         {d30[]}, [r6,:32]\n        vrhadd.u8       d2,  d2,  d28\n        vrhadd.u8       d6,  d6,  d30\n.endif\n.endif\n        @ Store and loop horizontally (for size >= 16)\n.if \\size >= 16\n        subs            r12, r12, #16\n        vst1.8          {q1}, [r0,:128]!\n        vst1.8          {q3}, [r6,:128]!\n        beq             3f\n        vmov            q8,  q10\n        vmov            q11, q13\n        vld1.8          {q10}, [r2]!\n        vld1.8          {q13}, [r7]!\n        vmovl.u8        q9,  d20\n        vmovl.u8        q10, d21\n        vmovl.u8        q12, d26\n        vmovl.u8        q13, d27\n        b               2b\n.elseif \\size == 8\n        vst1.8          {d2}, [r0,:64]\n        vst1.8          {d6}, [r6,:64]\n.else @ \\size == 4\n        vst1.32         {d2[0]}, [r0,:32]\n        vst1.32         {d6[0]}, [r6,:32]\n.endif\n3:\n        @ Loop vertically", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:10", "text": "vst1.8          {q3}, [r6,:128]!\n        beq             3f\n        vmov            q8,  q10\n        vmov            q11, q13\n        vld1.8          {q10}, [r2]!\n        vld1.8          {q13}, [r7]!\n        vmovl.u8        q9,  d20\n        vmovl.u8        q10, d21\n        vmovl.u8        q12, d26\n        vmovl.u8        q13, d27\n        b               2b\n.elseif \\size == 8\n        vst1.8          {d2}, [r0,:64]\n        vst1.8          {d6}, [r6,:64]\n.else @ \\size == 4\n        vst1.32         {d2[0]}, [r0,:32]\n        vst1.32         {d6[0]}, [r6,:32]\n.endif\n3:\n        @ Loop vertically\n        add             r0,  r0,  r1\n        add             r6,  r6,  r1\n        add             r2,  r2,  r3\n        add             r7,  r7,  r3\n        subs            r4,  r4,  #2\n        bne             1b\n.if \\size >= 16\n        vpop            {q4-q6}\n.endif\n        pop             {r4-r7}\n        bx              lr\nendfunc\n.endm\n\n.macro do_8tap_h_size size\ndo_8tap_h put, \\size, 3, 4\ndo_8tap_h avg, \\size, 3, 4\ndo_8tap_h put, \\size, 4, 3\ndo_8tap_h avg, \\size, 4, 3\n.endm\n\ndo_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        push            {r4-r7}\n.if \\size >= 16\n        vpush           {q4-q6}\n        ldr             r4,  [sp, #64]\n        ldr             r5,  [sp, #68]\n.else\n        ldr             r4,  [sp, #16]\n        ldr             r5,  [sp, #20]\n.endif\n        movrelx         r12, X(ff_vp9_subpel_filters), r6\n        add             r12, r12, 256*\\offset\n        cmp             r5,  #8\n        add             r12, r12, r5, lsl #4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:11", "text": "do_8tap_h_size 4\ndo_8tap_h_size 8\ndo_8tap_h_size 16\n\n.macro do_8tap_h_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_h_neon, export=1\n        push            {r4-r7}\n.if \\size >= 16\n        vpush           {q4-q6}\n        ldr             r4,  [sp, #64]\n        ldr             r5,  [sp, #68]\n.else\n        ldr             r4,  [sp, #16]\n        ldr             r5,  [sp, #20]\n.endif\n        movrelx         r12, X(ff_vp9_subpel_filters), r6\n        add             r12, r12, 256*\\offset\n        cmp             r5,  #8\n        add             r12, r12, r5, lsl #4\n        mov             r5,  #\\size\n.if \\size >= 16\n        bge             \\type\\()_8tap_16h_34\n        b               \\type\\()_8tap_16h_43\n.else\n        bge             \\type\\()_8tap_\\size\\()h_34\n        b               \\type\\()_8tap_\\size\\()h_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_h_filters size\ndo_8tap_h_func put, regular, 1, \\size\ndo_8tap_h_func avg, regular, 1, \\size\ndo_8tap_h_func put, sharp,   2, \\size\ndo_8tap_h_func avg, sharp,   2, \\size\ndo_8tap_h_func put, smooth,  0, \\size\ndo_8tap_h_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_h_filters 64\ndo_8tap_h_filters 32\ndo_8tap_h_filters 16\ndo_8tap_h_filters 8\ndo_8tap_h_filters 4\n\n.ltorg\n\n@ Vertical filters\n\n@ Round, shift and saturate and store qreg1-2 over 4 lines\n.macro do_store4 qreg1, dreg1, qreg2, dreg2, tmp1, tmp2, type\n        vqrshrun.s16    \\dreg1,  \\qreg1, #7\n        vqrshrun.s16    \\dreg2,  \\qreg2, #7\n.ifc \\type,avg\n        vld1.32         {\\tmp1[]},   [r0,:32], r1\n        vld1.32         {\\tmp2[]},   [r0,:32], r1\n        vld1.32         {\\tmp1[1]},  [r0,:32], r1\n        vld1.32         {\\tmp2[1]},  [r0,:32], r1\n        vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:12", "text": "do_8tap_h_filters 64\ndo_8tap_h_filters 32\ndo_8tap_h_filters 16\ndo_8tap_h_filters 8\ndo_8tap_h_filters 4\n\n.ltorg\n\n@ Vertical filters\n\n@ Round, shift and saturate and store qreg1-2 over 4 lines\n.macro do_store4 qreg1, dreg1, qreg2, dreg2, tmp1, tmp2, type\n        vqrshrun.s16    \\dreg1,  \\qreg1, #7\n        vqrshrun.s16    \\dreg2,  \\qreg2, #7\n.ifc \\type,avg\n        vld1.32         {\\tmp1[]},   [r0,:32], r1\n        vld1.32         {\\tmp2[]},   [r0,:32], r1\n        vld1.32         {\\tmp1[1]},  [r0,:32], r1\n        vld1.32         {\\tmp2[1]},  [r0,:32], r1\n        vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u8       \\dreg2,  \\dreg2,  \\tmp2\n        sub             r0,  r0,  r1, lsl #2\n.endif\n        vst1.32         {\\dreg1[0]}, [r0,:32], r1\n        vst1.32         {\\dreg2[0]}, [r0,:32], r1\n        vst1.32         {\\dreg1[1]}, [r0,:32], r1\n        vst1.32         {\\dreg2[1]}, [r0,:32], r1\n.endm\n\n@ Round, shift and saturate and store qreg1-4\n.macro do_store qreg1, dreg1, qreg2, dreg2, qreg3, dreg3, qreg4, dreg4, tmp1, tmp2, tmp3, tmp4, type\n        vqrshrun.s16    \\dreg1,  \\qreg1, #7\n        vqrshrun.s16    \\dreg2,  \\qreg2, #7\n        vqrshrun.s16    \\dreg3,  \\qreg3, #7\n        vqrshrun.s16    \\dreg4,  \\qreg4, #7\n.ifc \\type,avg\n        vld1.8          {\\tmp1},  [r0,:64], r1\n        vld1.8          {\\tmp2},  [r0,:64], r1\n        vld1.8          {\\tmp3},  [r0,:64], r1\n        vld1.8          {\\tmp4},  [r0,:64], r1\n        vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u8       \\dreg2,  \\dreg2,  \\tmp2\n        vrhadd.u8       \\dreg3,  \\dreg3,  \\tmp3\n        vrhadd.u8       \\dreg4,  \\dreg4,  \\tmp4\n        sub             r0,  r0,  r1, lsl #2\n.endif\n        vst1.8          {\\dreg1}, [r0,:64], r1\n        vst1.8          {\\dreg2}, [r0,:64], r1\n        vst1.8          {\\dreg3}, [r0,:64], r1\n        vst1.8          {\\dreg4}, [r0,:64], r1\n.endm\n\n@ Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n@ (src1-src8 into dst1, src2-src9 into dst2), adding idx2 separately\n@ at the end with saturation. Indices 0 and 7 always have negative or zero\n@ coefficients, so they can be accumulated into tmp1-tmp2 together with the\n@ largest coefficient.\n.macro convolve dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, idx1, idx2, tmp1, tmp2\n        vmul.s16        \\dst1, \\src2, d0[1]\n        vmul.s16        \\dst2, \\src3, d0[1]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:13", "text": "vrhadd.u8       \\dreg1,  \\dreg1,  \\tmp1\n        vrhadd.u8       \\dreg2,  \\dreg2,  \\tmp2\n        vrhadd.u8       \\dreg3,  \\dreg3,  \\tmp3\n        vrhadd.u8       \\dreg4,  \\dreg4,  \\tmp4\n        sub             r0,  r0,  r1, lsl #2\n.endif\n        vst1.8          {\\dreg1}, [r0,:64], r1\n        vst1.8          {\\dreg2}, [r0,:64], r1\n        vst1.8          {\\dreg3}, [r0,:64], r1\n        vst1.8          {\\dreg4}, [r0,:64], r1\n.endm\n\n@ Evaluate the filter twice in parallel, from the inputs src1-src9 into dst1-dst2\n@ (src1-src8 into dst1, src2-src9 into dst2), adding idx2 separately\n@ at the end with saturation. Indices 0 and 7 always have negative or zero\n@ coefficients, so they can be accumulated into tmp1-tmp2 together with the\n@ largest coefficient.\n.macro convolve dst1, dst2, src1, src2, src3, src4, src5, src6, src7, src8, src9, idx1, idx2, tmp1, tmp2\n        vmul.s16        \\dst1, \\src2, d0[1]\n        vmul.s16        \\dst2, \\src3, d0[1]\n        vmul.s16        \\tmp1, \\src1, d0[0]\n        vmul.s16        \\tmp2, \\src2, d0[0]\n        vmla.s16        \\dst1, \\src3, d0[2]\n        vmla.s16        \\dst2, \\src4, d0[2]\n.if \\idx1 == 3\n        vmla.s16        \\dst1, \\src4, d0[3]\n        vmla.s16        \\dst2, \\src5, d0[3]\n.else\n        vmla.s16        \\dst1, \\src5, d1[0]\n        vmla.s16        \\dst2, \\src6, d1[0]\n.endif\n        vmla.s16        \\dst1, \\src6, d1[1]\n        vmla.s16        \\dst2, \\src7, d1[1]\n        vmla.s16        \\tmp1, \\src8, d1[3]\n        vmla.s16        \\tmp2, \\src9, d1[3]\n        vmla.s16        \\dst1, \\src7, d1[2]\n        vmla.s16        \\dst2, \\src8, d1[2]\n.if \\idx2 == 3\n        vmla.s16        \\tmp1, \\src4, d0[3]\n        vmla.s16        \\tmp2, \\src5, d0[3]\n.else\n        vmla.s16        \\tmp1, \\src5, d1[0]\n        vmla.s16        \\tmp2, \\src6, d1[0]\n.endif\n        vqadd.s16       \\dst1, \\dst1, \\tmp1\n        vqadd.s16       \\dst2, \\dst2, \\tmp2\n.endm\n\n@ Load pixels and extend them to 16 bit\n.macro loadl dst1, dst2, dst3, dst4\n        vld1.8          {d2}, [r2], r3\n        vld1.8          {d3}, [r2], r3\n        vld1.8          {d4}, [r2], r3\n.ifnb \\dst4\n        vld1.8          {d5}, [r2], r3\n.endif\n        vmovl.u8        \\dst1, d2\n        vmovl.u8        \\dst2, d3\n        vmovl.u8        \\dst3, d4\n.ifnb \\dst4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:14", "text": ".else\n        vmla.s16        \\tmp1, \\src5, d1[0]\n        vmla.s16        \\tmp2, \\src6, d1[0]\n.endif\n        vqadd.s16       \\dst1, \\dst1, \\tmp1\n        vqadd.s16       \\dst2, \\dst2, \\tmp2\n.endm\n\n@ Load pixels and extend them to 16 bit\n.macro loadl dst1, dst2, dst3, dst4\n        vld1.8          {d2}, [r2], r3\n        vld1.8          {d3}, [r2], r3\n        vld1.8          {d4}, [r2], r3\n.ifnb \\dst4\n        vld1.8          {d5}, [r2], r3\n.endif\n        vmovl.u8        \\dst1, d2\n        vmovl.u8        \\dst2, d3\n        vmovl.u8        \\dst3, d4\n.ifnb \\dst4\n        vmovl.u8        \\dst4, d5\n.endif\n.endm\n\n@ Instantiate a vertical filter function for filtering 8 pixels at a time.\n@ The height is passed in r4, the width in r5 and the filter coefficients\n@ in r12. idx2 is the index of the largest filter coefficient (3 or 4)\n@ and idx1 is the other one of them.\n.macro do_8tap_8v type, idx1, idx2\nfunction \\type\\()_8tap_8v_\\idx1\\idx2\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n1:\n        mov             r12, r4\n\n        loadl           q5,  q6,  q7\n        loadl           q8,  q9,  q10, q11\n2:\n        loadl           q12, q13, q14, q15\n        convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4,  q5\n        convolve        q3,  q4,  q7,  q8,  q9,  q10, q11, q12, q13, q14, q15, \\idx1, \\idx2, q5,  q6\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q4,  d8,  d3,  d5,  d7,  d9,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q4,  q5,  q6,  q7\n        convolve        q1,  q2,  q9,  q10, q11, q12, q13, q14, q15, q4,  q5,  \\idx1, \\idx2, q8,  q9\n        convolve        q3,  q8,  q11, q12, q13, q14, q15, q4,  q5,  q6,  q7,  \\idx1, \\idx2, q9,  q10\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q8,  d16, d3,  d5,  d7,  d17, \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q8,  q9,  q10, q11\n        convolve        q1,  q2,  q13, q14, q15, q4,  q5,  q6,  q7,  q8,  q9,  \\idx1, \\idx2, q12, q13\n        convolve        q3,  q12, q15, q4,  q5,  q6,  q7,  q8,  q9,  q10, q11, \\idx1, \\idx2, q13, q14\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q12, d24, d3,  d5,  d7,  d25, \\type", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:15", "text": "convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4,  q5\n        convolve        q3,  q4,  q7,  q8,  q9,  q10, q11, q12, q13, q14, q15, \\idx1, \\idx2, q5,  q6\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q4,  d8,  d3,  d5,  d7,  d9,  \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q4,  q5,  q6,  q7\n        convolve        q1,  q2,  q9,  q10, q11, q12, q13, q14, q15, q4,  q5,  \\idx1, \\idx2, q8,  q9\n        convolve        q3,  q8,  q11, q12, q13, q14, q15, q4,  q5,  q6,  q7,  \\idx1, \\idx2, q9,  q10\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q8,  d16, d3,  d5,  d7,  d17, \\type\n\n        subs            r12, r12, #4\n        beq             8f\n\n        loadl           q8,  q9,  q10, q11\n        convolve        q1,  q2,  q13, q14, q15, q4,  q5,  q6,  q7,  q8,  q9,  \\idx1, \\idx2, q12, q13\n        convolve        q3,  q12, q15, q4,  q5,  q6,  q7,  q8,  q9,  q10, q11, \\idx1, \\idx2, q13, q14\n        do_store        q1,  d2,  q2,  d4,  q3,  d6,  q12, d24, d3,  d5,  d7,  d25, \\type\n\n        subs            r12, r12, #4\n        bne             2b\n\n8:\n        subs            r5,  r5,  #8\n        beq             9f\n        @ r0 -= h * dst_stride\n        mls             r0,  r1,  r4, r0\n        @ r2 -= h * src_stride\n        mls             r2,  r3,  r4, r2\n        @ r2 -= 8 * src_stride\n        sub             r2,  r2,  r3, lsl #3\n        @ r2 += 1 * src_stride\n        add             r2,  r2,  r3\n        add             r2,  r2,  #8\n        add             r0,  r0,  #8\n        b               1b\n9:\n        vpop            {q4-q7}\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_8v put, 3, 4\ndo_8tap_8v put, 4, 3\ndo_8tap_8v avg, 3, 4\ndo_8tap_8v avg, 4, 3\n\n@ Instantiate a vertical filter function for filtering a 4 pixels wide\n@ slice. The first half of the registers contain one row, while the second\n@ half of a register contains the second-next row (also stored in the first\n@ half of the register two steps ahead). The convolution does two outputs\n@ at a time; the output of q5-q12 into one, and q4-q13 into another one.\n@ The first half of first output is the first output row, the first half\n@ of the other output is the second output row. The second halves of the\n@ registers are rows 3 and 4.\n@ This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type, idx1, idx2\nfunction \\type\\()_8tap_4v_\\idx1\\idx2", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:16", "text": "bx              lr\nendfunc\n.endm\n\ndo_8tap_8v put, 3, 4\ndo_8tap_8v put, 4, 3\ndo_8tap_8v avg, 3, 4\ndo_8tap_8v avg, 4, 3\n\n@ Instantiate a vertical filter function for filtering a 4 pixels wide\n@ slice. The first half of the registers contain one row, while the second\n@ half of a register contains the second-next row (also stored in the first\n@ half of the register two steps ahead). The convolution does two outputs\n@ at a time; the output of q5-q12 into one, and q4-q13 into another one.\n@ The first half of first output is the first output row, the first half\n@ of the other output is the second output row. The second halves of the\n@ registers are rows 3 and 4.\n@ This only is designed to work for 4 or 8 output lines.\n.macro do_8tap_4v type, idx1, idx2\nfunction \\type\\()_8tap_4v_\\idx1\\idx2\n        sub             r2,  r2,  r3, lsl #1\n        sub             r2,  r2,  r3\n        vld1.16         {q0},  [r12, :128]\n\n        vld1.32         {d2[]},   [r2], r3\n        vld1.32         {d3[]},   [r2], r3\n        vld1.32         {d4[]},   [r2], r3\n        vld1.32         {d5[]},   [r2], r3\n        vld1.32         {d6[]},   [r2], r3\n        vld1.32         {d7[]},   [r2], r3\n        vext.8          d2,  d2,  d4,  #4\n        vld1.32         {d8[]},   [r2], r3\n        vext.8          d3,  d3,  d5,  #4\n        vld1.32         {d9[]},   [r2], r3\n        vmovl.u8        q5,  d2\n        vext.8          d4,  d4,  d6,  #4\n        vld1.32         {d28[]},  [r2], r3\n        vmovl.u8        q6,  d3\n        vext.8          d5,  d5,  d7,  #4\n        vld1.32         {d29[]},  [r2], r3\n        vmovl.u8        q7,  d4\n        vext.8          d6,  d6,  d8,  #4\n        vld1.32         {d30[]},  [r2], r3\n        vmovl.u8        q8,  d5\n        vext.8          d7,  d7,  d9,  #4\n        vmovl.u8        q9,  d6\n        vext.8          d8,  d8,  d28, #4\n        vmovl.u8        q10, d7\n        vext.8          d9,  d9,  d29, #4\n        vmovl.u8        q11, d8\n        vext.8          d28, d28, d30, #4\n        vmovl.u8        q12, d9\n        vmovl.u8        q13, d28\n\n        convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4, q3\n        do_store4       q1,  d2,  q2,  d4,  d3,  d5,  \\type\n        subs            r4,  r4,  #4\n        beq             9f\n\n        vld1.32         {d2[]},   [r2], r3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:17", "text": "vmovl.u8        q7,  d4\n        vext.8          d6,  d6,  d8,  #4\n        vld1.32         {d30[]},  [r2], r3\n        vmovl.u8        q8,  d5\n        vext.8          d7,  d7,  d9,  #4\n        vmovl.u8        q9,  d6\n        vext.8          d8,  d8,  d28, #4\n        vmovl.u8        q10, d7\n        vext.8          d9,  d9,  d29, #4\n        vmovl.u8        q11, d8\n        vext.8          d28, d28, d30, #4\n        vmovl.u8        q12, d9\n        vmovl.u8        q13, d28\n\n        convolve        q1,  q2,  q5,  q6,  q7,  q8,  q9,  q10, q11, q12, q13, \\idx1, \\idx2, q4, q3\n        do_store4       q1,  d2,  q2,  d4,  d3,  d5,  \\type\n        subs            r4,  r4,  #4\n        beq             9f\n\n        vld1.32         {d2[]},   [r2], r3\n        vld1.32         {d3[]},   [r2], r3\n        vext.8          d29, d29, d2,  #4\n        vext.8          d30, d30, d3,  #4\n        vld1.32         {d2[1]},  [r2], r3\n        vmovl.u8        q14, d29\n        vld1.32         {d3[1]},  [r2], r3\n        vmovl.u8        q15, d30\n        vmovl.u8        q5,  d2\n        vmovl.u8        q6,  d3\n\n        convolve        q1,  q2,  q9,  q10, q11, q12, q13, q14, q15, q5,  q6,  \\idx1, \\idx2, q4, q3\n        do_store4       q1,  d2,  q2,  d4,  d3,  d5,  \\type\n\n9:\n        vpop            {q4-q7}\n        pop             {r4-r5}\n        bx              lr\nendfunc\n.endm\n\ndo_8tap_4v put, 3, 4\ndo_8tap_4v put, 4, 3\ndo_8tap_4v avg, 3, 4\ndo_8tap_4v avg, 4, 3\n\n.macro do_8tap_v_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_neon, export=1\n        push            {r4-r5}\n        vpush           {q4-q7}\n        ldr             r4,  [sp, #72]\n        movrelx         r12, X(ff_vp9_subpel_filters), r5\n        ldr             r5,  [sp, #80]\n        add             r12, r12, 256*\\offset\n        add             r12, r12, r5, lsl #4\n        cmp             r5,  #8\n        mov             r5,  #\\size\n.if \\size >= 8\n        bge             \\type\\()_8tap_8v_34\n        b               \\type\\()_8tap_8v_43\n.else", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/arm/vp9mc_neon.S:18", "text": "do_8tap_4v put, 3, 4\ndo_8tap_4v put, 4, 3\ndo_8tap_4v avg, 3, 4\ndo_8tap_4v avg, 4, 3\n\n.macro do_8tap_v_func type, filter, offset, size\nfunction ff_vp9_\\type\\()_\\filter\\()\\size\\()_v_neon, export=1\n        push            {r4-r5}\n        vpush           {q4-q7}\n        ldr             r4,  [sp, #72]\n        movrelx         r12, X(ff_vp9_subpel_filters), r5\n        ldr             r5,  [sp, #80]\n        add             r12, r12, 256*\\offset\n        add             r12, r12, r5, lsl #4\n        cmp             r5,  #8\n        mov             r5,  #\\size\n.if \\size >= 8\n        bge             \\type\\()_8tap_8v_34\n        b               \\type\\()_8tap_8v_43\n.else\n        bge             \\type\\()_8tap_4v_34\n        b               \\type\\()_8tap_4v_43\n.endif\nendfunc\n.endm\n\n.macro do_8tap_v_filters size\ndo_8tap_v_func put, regular, 1, \\size\ndo_8tap_v_func avg, regular, 1, \\size\ndo_8tap_v_func put, sharp,   2, \\size\ndo_8tap_v_func avg, sharp,   2, \\size\ndo_8tap_v_func put, smooth,  0, \\size\ndo_8tap_v_func avg, smooth,  0, \\size\n.endm\n\ndo_8tap_v_filters 64\ndo_8tap_v_filters 32\ndo_8tap_v_filters 16\ndo_8tap_v_filters 8\ndo_8tap_v_filters 4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/arm/vp9mc_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/arm/vp9mc_neon.S", "line_start": 681, "line_end": 720}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:1", "text": "/*\n * Loongson LSX/LASX optimized h264chroma\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Lu Wang <wanglu@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"loongson_asm.S\"\n\n/* void ff_put_h264_chroma_mc8_lsx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                   int h, int x, int y) */\nfunction ff_put_h264_chroma_mc8_lsx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    vreplgr2vr.b     vr0,     t3\n    vreplgr2vr.b     vr1,     t4\n    vreplgr2vr.b     vr2,     t5\n    vreplgr2vr.b     vr3,     t6\n    vreplgr2vr.b     vr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2\n    slli.d           t4,      a2,     2\n\n    bge              zero,    t6,     .ENDLOOP_D\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.LOOP_D:\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    vilvl.b          vr11,    vr6,    vr5\n    vilvl.b          vr12,    vr8,    vr7\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:2", "text": "vreplgr2vr.b     vr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2\n    slli.d           t4,      a2,     2\n\n    bge              zero,    t6,     .ENDLOOP_D\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.LOOP_D:\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    vilvl.b          vr11,    vr6,    vr5\n    vilvl.b          vr12,    vr8,    vr7\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12\n    vmaddwod.h.bu    vr14,    vr10,   vr12\n    vadd.h           vr13,    vr13,   vr14\n    vsrarni.b.h      vr13,    vr13,   6\n    vstelm.d         vr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vilvl.b          vr11,    vr8,    vr7\n    vilvl.b          vr12,    vr6,    vr5\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12\n    vmaddwod.h.bu    vr14,    vr10,   vr12\n    vadd.h           vr13,    vr13,   vr14\n    vsrarni.b.h      vr13,    vr13,   6\n    vstelm.d         vr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    vilvl.b          vr11,    vr6,    vr5\n    vilvl.b          vr12,    vr8,    vr7\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12\n    vmaddwod.h.bu    vr14,    vr10,   vr12\n    vadd.h           vr13,    vr13,   vr14\n    vsrarni.b.h      vr13,    vr13,   6\n    vstelm.d         vr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vilvl.b          vr11,    vr8,    vr7\n    vilvl.b          vr12,    vr6,    vr5\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12\n    vmaddwod.h.bu    vr14,    vr10,   vr12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:3", "text": "vld              vr8,     a1,     1\n    vilvl.b          vr11,    vr6,    vr5\n    vilvl.b          vr12,    vr8,    vr7\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12\n    vmaddwod.h.bu    vr14,    vr10,   vr12\n    vadd.h           vr13,    vr13,   vr14\n    vsrarni.b.h      vr13,    vr13,   6\n    vstelm.d         vr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vilvl.b          vr11,    vr8,    vr7\n    vilvl.b          vr12,    vr6,    vr5\n    vmulwev.h.bu     vr13,    vr9,    vr11\n    vmaddwod.h.bu    vr13,    vr9,    vr11\n    vmulwev.h.bu     vr14,    vr10,   vr12\n    vmaddwod.h.bu    vr14,    vr10,   vr12\n    vadd.h           vr13,    vr13,   vr14\n    vsrarni.b.h      vr13,    vr13,   6\n    vstelm.d         vr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOP_D\n    b                .ENDLOOP\n.ENDLOOP_D:\n\n    bge              zero,    t0,     .ENDLOOP_E\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    vilvl.b          vr7,     vr4,    vr0\n.LOOP_E:\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:4", "text": "vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOP_E\n    b                .ENDLOOP\n.ENDLOOP_E:\n\n    move             t1,      a3\n.LOOP:\n    vld              vr5,     a1,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     a2\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     t2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:5", "text": "move             t1,      a3\n.LOOP:\n    vld              vr5,     a1,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     a2\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     t2\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     t3\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t4\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOP\n.ENDLOOP:\nendfunc\n\n/* void ff_avg_h264_chroma_mc8_lsx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                   int h, int x, int y) */\nfunction ff_avg_h264_chroma_mc8_lsx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    vreplgr2vr.b     vr0,     t3\n    vreplgr2vr.b     vr1,     t4\n    vreplgr2vr.b     vr2,     t5\n    vreplgr2vr.b     vr3,     t6\n    vreplgr2vr.b     vr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:6", "text": "endfunc\n\n/* void ff_avg_h264_chroma_mc8_lsx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                   int h, int x, int y) */\nfunction ff_avg_h264_chroma_mc8_lsx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    vreplgr2vr.b     vr0,     t3\n    vreplgr2vr.b     vr1,     t4\n    vreplgr2vr.b     vr2,     t5\n    vreplgr2vr.b     vr3,     t6\n    vreplgr2vr.b     vr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2\n    slli.d           t4,      a2,     2\n\n    bge              zero,    t6,     .ENDLOOPD\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.LOOPD:\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    vld              vr11,    a0,     0\n    vilvl.b          vr12,    vr6,    vr5\n    vilvl.b          vr13,    vr8,    vr7\n    vmulwev.h.bu     vr14,    vr9,    vr12\n    vmaddwod.h.bu    vr14,    vr9,    vr12\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11\n    vsrarni.b.h      vr11,    vr11,   1\n    vstelm.d         vr11,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vld              vr11,    a0,     0\n    vilvl.b          vr12,    vr8,    vr7\n    vilvl.b          vr13,    vr6,    vr5\n    vmulwev.h.bu     vr14,    vr9,    vr12\n    vmaddwod.h.bu    vr14,    vr9,    vr12\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:7", "text": "vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11\n    vsrarni.b.h      vr11,    vr11,   1\n    vstelm.d         vr11,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vld              vr11,    a0,     0\n    vilvl.b          vr12,    vr8,    vr7\n    vilvl.b          vr13,    vr6,    vr5\n    vmulwev.h.bu     vr14,    vr9,    vr12\n    vmaddwod.h.bu    vr14,    vr9,    vr12\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11\n    vsrarni.b.h      vr11,    vr11,   1\n    vstelm.d         vr11,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    vld              vr11,    a0,     0\n    vilvl.b          vr12,    vr6,    vr5\n    vilvl.b          vr13,    vr8,    vr7\n    vmulwev.h.bu     vr14,    vr9,    vr12\n    vmaddwod.h.bu    vr14,    vr9,    vr12\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11\n    vsrarni.b.h      vr11,    vr11,   1\n    vstelm.d         vr11,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vld              vr11,    a0,     0\n    vilvl.b          vr12,    vr8,    vr7\n    vilvl.b          vr13,    vr6,    vr5\n    vmulwev.h.bu     vr14,    vr9,    vr12\n    vmaddwod.h.bu    vr14,    vr9,    vr12\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11\n    vsrarni.b.h      vr11,    vr11,   1\n    vstelm.d         vr11,    a0,     0,    0\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPD", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:8", "text": "add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    vld              vr11,    a0,     0\n    vilvl.b          vr12,    vr8,    vr7\n    vilvl.b          vr13,    vr6,    vr5\n    vmulwev.h.bu     vr14,    vr9,    vr12\n    vmaddwod.h.bu    vr14,    vr9,    vr12\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrari.h         vr14,    vr14,   6\n    vsllwil.hu.bu    vr11,    vr11,   0\n    vadd.h           vr11,    vr14,   vr11\n    vsrarni.b.h      vr11,    vr11,   1\n    vstelm.d         vr11,    a0,     0,    0\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPD\n    b                .ENDLOOPELSE\n.ENDLOOPD:\n\n    bge              zero,    t0,     .ENDLOOPE\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    vilvl.b          vr7,     vr4,    vr0\n.LOOPE:\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vld              vr8,     a0,     0\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vld              vr8,     a0,     0\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:9", "text": "vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vld              vr8,     a0,     0\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vld              vr8,     a0,     0\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vld              vr8,     a0,     0\n    vilvl.b          vr5,     vr6,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPE\n    b                .ENDLOOPELSE\n.ENDLOOPE:\n\n    move             t1,      a3\n.LOOPELSE:\n    vld              vr5,     a1,     0\n    vld              vr8,     a0,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:10", "text": "vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPE\n    b                .ENDLOOPELSE\n.ENDLOOPE:\n\n    move             t1,      a3\n.LOOPELSE:\n    vld              vr5,     a1,     0\n    vld              vr8,     a0,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     a2\n    vld              vr8,     a0,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     t2\n    vld              vr8,     a0,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     t3\n    vld              vr8,     a0,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t4\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPELSE", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:11", "text": "vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vldx             vr5,     a1,     t3\n    vld              vr8,     a0,     0\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrari.h         vr6,     vr6,    6\n    vsllwil.hu.bu    vr8,     vr8,    0\n    vadd.h           vr8,     vr6,    vr8\n    vsrarni.b.h      vr8,     vr8,    1\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t4\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPELSE\n.ENDLOOPELSE:\nendfunc\n\n/* void ff_put_h264_chroma_mc4_lsx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                   int h, int x, int y) */\nfunction ff_put_h264_chroma_mc4_lsx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    slli.d           t8,      a2,     1\n    vreplgr2vr.b     vr0,     t3\n    vreplgr2vr.b     vr1,     t4\n    vreplgr2vr.b     vr2,     t5\n    vreplgr2vr.b     vr3,     t6\n    vreplgr2vr.b     vr4,     t0\n\n    bge              zero,    t6,     .ENDPUT_D\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.PUT_D:\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr11,    a1,     0\n    vld              vr12,    a1,     1\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr7,     vr8,    vr7\n    vilvl.b          vr13,    vr12,   vr11\n    vilvl.d          vr5,     vr7,    vr5\n    vilvl.d          vr13,    vr13,   vr7\n    vmulwev.h.bu     vr14,    vr9,    vr5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:12", "text": "bge              zero,    t6,     .ENDPUT_D\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.PUT_D:\n    vld              vr5,     a1,     0\n    vld              vr6,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr7,     a1,     0\n    vld              vr8,     a1,     1\n    add.d            a1,      a1,     a2\n    vld              vr11,    a1,     0\n    vld              vr12,    a1,     1\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr7,     vr8,    vr7\n    vilvl.b          vr13,    vr12,   vr11\n    vilvl.d          vr5,     vr7,    vr5\n    vilvl.d          vr13,    vr13,   vr7\n    vmulwev.h.bu     vr14,    vr9,    vr5\n    vmaddwod.h.bu    vr14,    vr9,    vr5\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    vadd.h           vr14,    vr14,   vr15\n    vsrarni.b.h      vr14,    vr14,   6\n    vstelm.w         vr14,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr14,    a0,     0,    1\n    add.d            a0,      a0,     a2\n    addi.d           t1,      t1,     -2\n    blt              zero,    t1,     .PUT_D\n    b                .ENDPUT\n.ENDPUT_D:\n\n    bge              zero,    t0,     .ENDPUT_E\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    vilvl.b          vr7,     vr4,    vr0\n.PUT_E:\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    add.d            a1,      a1,     a2\n    vld              vr8,     a1,     0\n    vldx             vr9,     a1,     t7\n    vilvl.b          vr8,     vr9,    vr8\n    vilvl.d          vr5,     vr8,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.w         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr6,     a0,     0,    1\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    addi.d           t1,      t1,     -2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:13", "text": "or               t7,      t7,     t5\n    vilvl.b          vr7,     vr4,    vr0\n.PUT_E:\n    vld              vr5,     a1,     0\n    vldx             vr6,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    add.d            a1,      a1,     a2\n    vld              vr8,     a1,     0\n    vldx             vr9,     a1,     t7\n    vilvl.b          vr8,     vr9,    vr8\n    vilvl.d          vr5,     vr8,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.w         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr6,     a0,     0,    1\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    addi.d           t1,      t1,     -2\n    blt              zero,    t1,     .PUT_E\n    b                .ENDPUT\n.ENDPUT_E:\n\n    move             t1,      a3\n.PUT:\n    vld              vr5,     a1,     0\n    vldx             vr8,     a1,     a2\n    vilvl.w          vr5,     vr8,    vr5\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vsrarni.b.h      vr7,     vr7,    6\n    vilvl.b          vr6,     vr7,    vr6\n    vstelm.w         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr6,     a0,     0,    1\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t8\n    addi.d           t1,      t1,     -2\n    blt              zero,    t1,     .PUT\n.ENDPUT:\nendfunc\n\n/* void ff_put_h264_chroma_mc8_lasx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                    int h, int x, int y) */\nfunction ff_put_h264_chroma_mc8_lasx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    xvreplgr2vr.b    xr0,     t3\n    xvreplgr2vr.b    xr1,     t4\n    xvreplgr2vr.b    xr2,     t5\n    xvreplgr2vr.b    xr3,     t6\n    xvreplgr2vr.b    xr4,     t0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:14", "text": "blt              zero,    t1,     .PUT\n.ENDPUT:\nendfunc\n\n/* void ff_put_h264_chroma_mc8_lasx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                    int h, int x, int y) */\nfunction ff_put_h264_chroma_mc8_lasx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    xvreplgr2vr.b    xr0,     t3\n    xvreplgr2vr.b    xr1,     t4\n    xvreplgr2vr.b    xr2,     t5\n    xvreplgr2vr.b    xr3,     t6\n    xvreplgr2vr.b    xr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2\n    slli.d           t4,      a2,     2\n\n    bge              zero,    t6,     .ENDLOOP_DA\n    move             t1,      a3\n    xvilvl.b         xr9,     xr1,    xr0\n    xvilvl.b         xr10,    xr3,    xr2\n.LOOP_DA:\n    fld.d            f5,      a1,     0\n    fld.d            f6,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f7,      a1,     0\n    fld.d            f8,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f13,     a1,     0\n    fld.d            f14,     a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f15,     a1,     0\n    fld.d            f16,     a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f17,     a1,     0\n    fld.d            f18,     a1,     1\n    vilvl.b          vr11,    vr6,    vr5\n    vilvl.b          vr12,    vr8,    vr7\n    vilvl.b          vr14,    vr14,   vr13\n    vilvl.b          vr15,    vr16,   vr15\n    vilvl.b          vr16,    vr18,   vr17\n    xvpermi.q        xr11,    xr12,   0x02\n    xvpermi.q        xr12,    xr14,   0x02\n    xvpermi.q        xr14,    xr15,   0x02\n    xvpermi.q        xr15,    xr16,   0x02\n\n    xvmulwev.h.bu    xr19,    xr9,    xr11\n    xvmaddwod.h.bu   xr19,    xr9,    xr11\n    xvmulwev.h.bu    xr20,    xr10,   xr12\n    xvmaddwod.h.bu   xr20,    xr10,   xr12\n    xvadd.h          xr21,    xr19,   xr20\n    xvsrarni.b.h     xr21,    xr21,   6\n    vstelm.d         vr21,    a0,     0,    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:15", "text": "add.d            a1,      a1,     a2\n    fld.d            f17,     a1,     0\n    fld.d            f18,     a1,     1\n    vilvl.b          vr11,    vr6,    vr5\n    vilvl.b          vr12,    vr8,    vr7\n    vilvl.b          vr14,    vr14,   vr13\n    vilvl.b          vr15,    vr16,   vr15\n    vilvl.b          vr16,    vr18,   vr17\n    xvpermi.q        xr11,    xr12,   0x02\n    xvpermi.q        xr12,    xr14,   0x02\n    xvpermi.q        xr14,    xr15,   0x02\n    xvpermi.q        xr15,    xr16,   0x02\n\n    xvmulwev.h.bu    xr19,    xr9,    xr11\n    xvmaddwod.h.bu   xr19,    xr9,    xr11\n    xvmulwev.h.bu    xr20,    xr10,   xr12\n    xvmaddwod.h.bu   xr20,    xr10,   xr12\n    xvadd.h          xr21,    xr19,   xr20\n    xvsrarni.b.h     xr21,    xr21,   6\n    vstelm.d         vr21,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr21,    a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvmulwev.h.bu    xr13,    xr9,    xr14\n    xvmaddwod.h.bu   xr13,    xr9,    xr14\n    xvmulwev.h.bu    xr14,    xr10,   xr15\n    xvmaddwod.h.bu   xr14,    xr10,   xr15\n    xvadd.h          xr13,    xr13,   xr14\n    xvsrarni.b.h     xr13,    xr13,   6\n    vstelm.d         vr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr13,    a0,     0,    2\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOP_DA\n    b                .ENDLOOPA\n.ENDLOOP_DA:\n\n    bge              zero,    t0,     .ENDLOOP_EA\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    xvilvl.b         xr7,     xr4,    xr0\n.LOOP_EA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f9,      a1,     0\n    fldx.d           f10,     a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f11,     a1,     0\n    fldx.d           f12,     a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f13,     a1,     0\n    fldx.d           f14,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:16", "text": "move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    xvilvl.b         xr7,     xr4,    xr0\n.LOOP_EA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f9,      a1,     0\n    fldx.d           f10,     a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f11,     a1,     0\n    fldx.d           f12,     a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f13,     a1,     0\n    fldx.d           f14,     a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr9,     vr10,   vr9\n    vilvl.b          vr11,    vr12,   vr11\n    vilvl.b          vr13,    vr14,   vr13\n    xvpermi.q        xr5,     xr9,    0x02\n    xvpermi.q        xr11,    xr13,   0x02\n\n    xvmulwev.h.bu    xr8,     xr7,    xr5\n    xvmaddwod.h.bu   xr8,     xr7,    xr5\n    xvmulwev.h.bu    xr6,     xr7,    xr11\n    xvmaddwod.h.bu   xr6,     xr7,    xr11\n    xvsrarni.b.h     xr8,     xr8,    6\n    vstelm.d         vr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr8,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvsrarni.b.h     xr6,     xr6,    6\n    vstelm.d         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr6,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOP_EA\n    b                .ENDLOOPA\n.ENDLOOP_EA:\n\n    move             t1,      a3\n.LOOPA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     a2\n    fldx.d           f7,      a1,     t2\n    fldx.d           f8,      a1,     t3\n    vilvl.d          vr5,     vr6,    vr5\n    vilvl.d          vr7,     vr8,    vr7\n    xvpermi.q        xr5,     xr7,    0x02\n    xvmulwev.h.bu    xr6,     xr0,    xr5\n    xvmulwod.h.bu    xr7,     xr0,    xr5\n    xvilvl.h         xr8,     xr7,    xr6\n    xvilvh.h         xr9,     xr7,    xr6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:17", "text": "add.d            a1,      a1,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOP_EA\n    b                .ENDLOOPA\n.ENDLOOP_EA:\n\n    move             t1,      a3\n.LOOPA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     a2\n    fldx.d           f7,      a1,     t2\n    fldx.d           f8,      a1,     t3\n    vilvl.d          vr5,     vr6,    vr5\n    vilvl.d          vr7,     vr8,    vr7\n    xvpermi.q        xr5,     xr7,    0x02\n    xvmulwev.h.bu    xr6,     xr0,    xr5\n    xvmulwod.h.bu    xr7,     xr0,    xr5\n    xvilvl.h         xr8,     xr7,    xr6\n    xvilvh.h         xr9,     xr7,    xr6\n    xvsrarni.b.h     xr9,     xr8,    6\n    vstelm.d         vr9,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.d         vr9,     a0,     0,    1\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr9,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr9,     a0,     0,    3\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t4\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPA\n.ENDLOOPA:\nendfunc\n\n/* void ff_avg_h264_chroma_mc8_lasx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                    int h, int x, int y) */\nfunction ff_avg_h264_chroma_mc8_lasx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    xvreplgr2vr.b    xr0,     t3\n    xvreplgr2vr.b    xr1,     t4\n    xvreplgr2vr.b    xr2,     t5\n    xvreplgr2vr.b    xr3,     t6\n    xvreplgr2vr.b    xr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2\n    slli.d           t4,      a2,     2\n\n    bge              zero,    t6,     .ENDLOOPDA\n    move             t1,      a3\n    xvilvl.b         xr9,     xr1,    xr0\n    xvilvl.b         xr10,    xr3,    xr2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:18", "text": "sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    xvreplgr2vr.b    xr0,     t3\n    xvreplgr2vr.b    xr1,     t4\n    xvreplgr2vr.b    xr2,     t5\n    xvreplgr2vr.b    xr3,     t6\n    xvreplgr2vr.b    xr4,     t0\n    slli.d           t2,      a2,     1\n    add.d            t3,      t2,     a2\n    slli.d           t4,      a2,     2\n\n    bge              zero,    t6,     .ENDLOOPDA\n    move             t1,      a3\n    xvilvl.b         xr9,     xr1,    xr0\n    xvilvl.b         xr10,    xr3,    xr2\n.LOOPDA:\n    fld.d            f5,      a1,     0\n    fld.d            f6,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f7,      a1,     0\n    fld.d            f8,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f11,     a1,     0\n    fld.d            f12,     a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f13,     a1,     0\n    fld.d            f14,     a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f15,     a1,     0\n    fld.d            f16,     a1,     1\n    fld.d            f17,     a0,     0\n    fldx.d           f18,     a0,     a2\n    fldx.d           f19,     a0,     t2\n    fldx.d           f20,     a0,     t3\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr7,     vr8,    vr7\n    vilvl.b          vr11,    vr12,   vr11\n    vilvl.b          vr13,    vr14,   vr13\n    vilvl.b          vr16,    vr16,   vr15\n    xvpermi.q        xr5,     xr7,    0x02\n    xvpermi.q        xr7,     xr11,   0x02\n    xvpermi.q        xr11,    xr13,   0x02\n    xvpermi.q        xr13,    xr16,   0x02\n    xvpermi.q        xr17,    xr18,   0x02\n    xvpermi.q        xr19,    xr20,   0x02\n\n    xvmulwev.h.bu    xr14,    xr9,    xr5\n    xvmaddwod.h.bu   xr14,    xr9,    xr5\n    xvmulwev.h.bu    xr15,    xr10,   xr7\n    xvmaddwod.h.bu   xr15,    xr10,   xr7\n    xvadd.h          xr14,    xr14,   xr15\n    xvsrari.h        xr14,    xr14,   6\n    xvsllwil.hu.bu   xr17,    xr17,   0\n    xvadd.h          xr20,    xr14,   xr17\n    xvsrarni.b.h     xr20,    xr20,   1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:19", "text": "vilvl.b          vr7,     vr8,    vr7\n    vilvl.b          vr11,    vr12,   vr11\n    vilvl.b          vr13,    vr14,   vr13\n    vilvl.b          vr16,    vr16,   vr15\n    xvpermi.q        xr5,     xr7,    0x02\n    xvpermi.q        xr7,     xr11,   0x02\n    xvpermi.q        xr11,    xr13,   0x02\n    xvpermi.q        xr13,    xr16,   0x02\n    xvpermi.q        xr17,    xr18,   0x02\n    xvpermi.q        xr19,    xr20,   0x02\n\n    xvmulwev.h.bu    xr14,    xr9,    xr5\n    xvmaddwod.h.bu   xr14,    xr9,    xr5\n    xvmulwev.h.bu    xr15,    xr10,   xr7\n    xvmaddwod.h.bu   xr15,    xr10,   xr7\n    xvadd.h          xr14,    xr14,   xr15\n    xvsrari.h        xr14,    xr14,   6\n    xvsllwil.hu.bu   xr17,    xr17,   0\n    xvadd.h          xr20,    xr14,   xr17\n    xvsrarni.b.h     xr20,    xr20,   1\n    xvstelm.d        xr20,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr20,    a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvmulwev.h.bu    xr14,    xr9,    xr11\n    xvmaddwod.h.bu   xr14,    xr9,    xr11\n    xvmulwev.h.bu    xr15,    xr10,   xr13\n    xvmaddwod.h.bu   xr15,    xr10,   xr13\n    xvadd.h          xr14,    xr14,   xr15\n    xvsrari.h        xr14,    xr14,   6\n    xvsllwil.hu.bu   xr19,    xr19,   0\n    xvadd.h          xr21,    xr14,   xr19\n    xvsrarni.b.h     xr21,    xr21,   1\n    xvstelm.d        xr21,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr21,    a0,     0,    2\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPDA\n    b                .ENDLOOPELSEA\n.ENDLOOPDA:\n\n    bge              zero,    t0,     .ENDLOOPEA\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    xvilvl.b         xr7,     xr4,    xr0\n.LOOPEA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f8,      a1,     0\n    fldx.d           f9,      a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f10,     a1,     0\n    fldx.d           f11,     a1,     t7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:20", "text": "b                .ENDLOOPELSEA\n.ENDLOOPDA:\n\n    bge              zero,    t0,     .ENDLOOPEA\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    xvilvl.b         xr7,     xr4,    xr0\n.LOOPEA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f8,      a1,     0\n    fldx.d           f9,      a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f10,     a1,     0\n    fldx.d           f11,     a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f12,     a1,     0\n    fldx.d           f13,     a1,     t7\n    add.d            a1,      a1,     a2\n    fld.d            f14,     a0,     0\n    fldx.d           f15,     a0,     a2\n    fldx.d           f16,     a0,     t2\n    fldx.d           f17,     a0,     t3\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr8,     vr9,    vr8\n    vilvl.b          vr10,    vr11,   vr10\n    vilvl.b          vr12,    vr13,   vr12\n    xvpermi.q        xr5,     xr8,    0x02\n    xvpermi.q        xr10,    xr12,   0x02\n    xvpermi.q        xr14,    xr15,   0x02\n    xvpermi.q        xr16,    xr17,   0x02\n\n    xvmulwev.h.bu    xr6,     xr7,    xr5\n    xvmaddwod.h.bu   xr6,     xr7,    xr5\n    xvsrari.h        xr6,     xr6,    6\n    xvsllwil.hu.bu   xr14,    xr14,   0\n    xvadd.h          xr8,     xr6,    xr14\n    xvsrarni.b.h     xr8,     xr8,    1\n    xvstelm.d        xr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr8,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvmulwev.h.bu    xr6,     xr7,    xr10\n    xvmaddwod.h.bu   xr6,     xr7,    xr10\n    xvsrari.h        xr6,     xr6,    6\n    xvsllwil.hu.bu   xr16,    xr16,   0\n    xvadd.h          xr8,     xr6,    xr16\n    xvsrarni.b.h     xr8,     xr8,    1\n    xvstelm.d        xr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr8,     a0,     0,    2\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPEA", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:21", "text": "xvsllwil.hu.bu   xr14,    xr14,   0\n    xvadd.h          xr8,     xr6,    xr14\n    xvsrarni.b.h     xr8,     xr8,    1\n    xvstelm.d        xr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr8,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvmulwev.h.bu    xr6,     xr7,    xr10\n    xvmaddwod.h.bu   xr6,     xr7,    xr10\n    xvsrari.h        xr6,     xr6,    6\n    xvsllwil.hu.bu   xr16,    xr16,   0\n    xvadd.h          xr8,     xr6,    xr16\n    xvsrarni.b.h     xr8,     xr8,    1\n    xvstelm.d        xr8,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr8,     a0,     0,    2\n    add.d            a0,      a0,     a2\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPEA\n    b                .ENDLOOPELSEA\n.ENDLOOPEA:\n\n    move             t1,      a3\n.LOOPELSEA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     a2\n    fldx.d           f7,      a1,     t2\n    fldx.d           f8,      a1,     t3\n    fld.d            f9,      a0,     0\n    fldx.d           f10,     a0,     a2\n    fldx.d           f11,     a0,     t2\n    fldx.d           f12,     a0,     t3\n    xvpermi.q        xr5,     xr6,    0x02\n    xvpermi.q        xr7,     xr8,    0x02\n    xvpermi.q        xr9,     xr10,   0x02\n    xvpermi.q        xr11,    xr12,   0x02\n\n    xvmulwev.h.bu    xr12,    xr0,    xr5\n    xvmulwod.h.bu    xr13,    xr0,    xr5\n    xvilvl.h         xr12,    xr13,   xr12\n    xvsrari.h        xr12,    xr12,   6\n    xvsllwil.hu.bu   xr9,     xr9,    0\n    xvadd.h          xr9,     xr12,   xr9\n    xvsrarni.b.h     xr9,     xr9,    1\n    xvstelm.d        xr9,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr9,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvmulwev.h.bu    xr12,    xr0,    xr7\n    xvmulwod.h.bu    xr13,    xr0,    xr7\n    xvilvl.h         xr12,    xr13,   xr12\n    xvsrari.h        xr12,    xr12,   6\n    xvsllwil.hu.bu   xr11,    xr11,   0\n    xvadd.h          xr13,    xr12,   xr11\n    xvsrarni.b.h     xr13,    xr13,   1\n    xvstelm.d        xr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr13,    a0,     0,    2\n    add.d            a0,      a0,     a2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:22", "text": "xvilvl.h         xr12,    xr13,   xr12\n    xvsrari.h        xr12,    xr12,   6\n    xvsllwil.hu.bu   xr9,     xr9,    0\n    xvadd.h          xr9,     xr12,   xr9\n    xvsrarni.b.h     xr9,     xr9,    1\n    xvstelm.d        xr9,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr9,     a0,     0,    2\n    add.d            a0,      a0,     a2\n    xvmulwev.h.bu    xr12,    xr0,    xr7\n    xvmulwod.h.bu    xr13,    xr0,    xr7\n    xvilvl.h         xr12,    xr13,   xr12\n    xvsrari.h        xr12,    xr12,   6\n    xvsllwil.hu.bu   xr11,    xr11,   0\n    xvadd.h          xr13,    xr12,   xr11\n    xvsrarni.b.h     xr13,    xr13,   1\n    xvstelm.d        xr13,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    xvstelm.d        xr13,    a0,     0,    2\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t4\n\n    addi.d           t1,      t1,     -4\n    blt              zero,    t1,     .LOOPELSEA\n.ENDLOOPELSEA:\nendfunc\n\n/* void ff_put_h264_chroma_mc4_lasx(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n                                    int h, int x, int y) */\nfunction ff_put_h264_chroma_mc4_lasx\n    li.d             t8,      8\n    sub.d            t1,      t8,     a4     // 8-x\n    sub.d            t2,      t8,     a5     // 8-y\n    mul.d            t3,      t1,     t2     // A\n    mul.d            t4,      a4,     t2     // B\n    mul.d            t5,      t1,     a5     // C\n    mul.d            t6,      a4,     a5     // D\n    add.d            t0,      t4,     t5     // E\n    slli.d           t8,      a2,     1\n    vreplgr2vr.b     vr0,     t3\n    vreplgr2vr.b     vr1,     t4\n    vreplgr2vr.b     vr2,     t5\n    vreplgr2vr.b     vr3,     t6\n    vreplgr2vr.b     vr4,     t0\n\n    bge              zero,    t6,     .ENDPUT_DA\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.PUT_DA:\n    fld.d            f5,      a1,     0\n    fld.d            f6,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f7,      a1,     0\n    fld.d            f8,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f11,     a1,     0\n    fld.d            f12,     a1,     1\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr7,     vr8,    vr7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:23", "text": "vreplgr2vr.b     vr1,     t4\n    vreplgr2vr.b     vr2,     t5\n    vreplgr2vr.b     vr3,     t6\n    vreplgr2vr.b     vr4,     t0\n\n    bge              zero,    t6,     .ENDPUT_DA\n    move             t1,      a3\n    vilvl.b          vr9,     vr1,    vr0\n    vilvl.b          vr10,    vr3,    vr2\n.PUT_DA:\n    fld.d            f5,      a1,     0\n    fld.d            f6,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f7,      a1,     0\n    fld.d            f8,      a1,     1\n    add.d            a1,      a1,     a2\n    fld.d            f11,     a1,     0\n    fld.d            f12,     a1,     1\n    vilvl.b          vr5,     vr6,    vr5\n    vilvl.b          vr7,     vr8,    vr7\n    vilvl.b          vr13,    vr12,   vr11\n    vilvl.d          vr5,     vr7,    vr5\n    vilvl.d          vr13,    vr13,   vr7\n    vmulwev.h.bu     vr14,    vr9,    vr5\n    vmaddwod.h.bu    vr14,    vr9,    vr5\n    vmulwev.h.bu     vr15,    vr10,   vr13\n    vmaddwod.h.bu    vr15,    vr10,   vr13\n    xvadd.h          xr14,    xr14,   xr15\n    vsrarni.b.h      vr16,    vr14,   6\n    vstelm.w         vr16,    a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr16,    a0,     0,    1\n    add.d            a0,      a0,     a2\n    addi.d           t1,      t1,     -2\n    blt              zero,    t1,     .PUT_DA\n    b                .ENDPUTA\n.ENDPUT_DA:\n\n    bge              zero,    t0,     .ENDPUT_EA\n    move             t1,      a3\n    li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    vilvl.b          vr7,     vr4,    vr0\n.PUT_EA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    add.d            a1,      a1,     a2\n    fld.d            f8,      a1,     0\n    fldx.d           f9,      a1,     t7\n    vilvl.b          vr8,     vr9,    vr8\n    vilvl.d          vr5,     vr8,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.w         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264chroma.S:24", "text": "li.d             t7,      1\n    slt              t8,      zero,   t5\n    maskeqz          t5,      a2,     t8\n    masknez          t7,      t7,     t8\n    or               t7,      t7,     t5\n    vilvl.b          vr7,     vr4,    vr0\n.PUT_EA:\n    fld.d            f5,      a1,     0\n    fldx.d           f6,      a1,     t7\n    vilvl.b          vr5,     vr6,    vr5\n    add.d            a1,      a1,     a2\n    fld.d            f8,      a1,     0\n    fldx.d           f9,      a1,     t7\n    vilvl.b          vr8,     vr9,    vr8\n    vilvl.d          vr5,     vr8,    vr5\n    vmulwev.h.bu     vr6,     vr7,    vr5\n    vmaddwod.h.bu    vr6,     vr7,    vr5\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.w         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr6,     a0,     0,    1\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     a2\n    addi.d           t1,      t1,     -2\n    blt              zero,    t1,     .PUT_EA\n    b                .ENDPUTA\n.ENDPUT_EA:\n\n    move             t1,      a3\n.PUTA:\n    fld.d            f5,      a1,     0\n    fldx.d           f8,      a1,     a2\n    vilvl.w          vr5,     vr8,    vr5\n    vmulwev.h.bu     vr6,     vr0,    vr5\n    vmulwod.h.bu     vr7,     vr0,    vr5\n    vilvl.h          vr6,     vr7,    vr6\n    vsrarni.b.h      vr6,     vr6,    6\n    vstelm.w         vr6,     a0,     0,    0\n    add.d            a0,      a0,     a2\n    vstelm.w         vr6,     a0,     0,    1\n    add.d            a0,      a0,     a2\n    add.d            a1,      a1,     t8\n    addi.d           t1,      t1,     -2\n    blt              zero,    t1,     .PUTA\n.ENDPUTA:\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264chroma.S", "line_start": 921, "line_end": 966}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:1", "text": "/*\n * Loongson LASX optimized h264idct\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Shiyou Yin <yinshiyou-hf@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"loongson_asm.S\"\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct_add)(uint8_t *_dst, int16_t *_block, int stride)\n * LSX optimization is enough for this function.\n */\nfunction ff_h264_idct_add_8_lsx\n    fld.d         f0,     a1,    0\n    fld.d         f1,     a1,    8\n    fld.d         f2,     a1,    16\n    fld.d         f3,     a1,    24\n    vxor.v        vr7,    vr7,   vr7\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    vst           vr7,    a1,    0\n    vst           vr7,    a1,    16\n\n    vadd.h        vr4,    vr0,   vr2\n    vsub.h        vr5,    vr0,   vr2\n    vsrai.h       vr6,    vr1,   1\n    vsrai.h       vr7,    vr3,   1\n    vsub.h        vr6,    vr6,   vr3\n    vadd.h        vr7,    vr1,   vr7\n    LSX_BUTTERFLY_4_H vr4, vr5, vr6, vr7,  vr0, vr1, vr2, vr3\n    LSX_TRANSPOSE4x4_H vr0, vr1, vr2, vr3,  vr0, vr1, vr2, vr3,  vr4, vr5\n    vadd.h        vr4,    vr0,   vr2\n    vsub.h        vr5,    vr0,   vr2\n    vsrai.h       vr6,    vr1,   1\n    vsrai.h       vr7,    vr3,   1\n    vsub.h        vr6,    vr6,   vr3\n    vadd.h        vr7,    vr1,   vr7\n    LSX_BUTTERFLY_4_H vr4, vr5, vr6, vr7,  vr0, vr1, vr2, vr3\n\n    fld.s         f4,     a0,    0\n    fldx.s        f5,     a0,    a2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:2", "text": "vst           vr7,    a1,    16\n\n    vadd.h        vr4,    vr0,   vr2\n    vsub.h        vr5,    vr0,   vr2\n    vsrai.h       vr6,    vr1,   1\n    vsrai.h       vr7,    vr3,   1\n    vsub.h        vr6,    vr6,   vr3\n    vadd.h        vr7,    vr1,   vr7\n    LSX_BUTTERFLY_4_H vr4, vr5, vr6, vr7,  vr0, vr1, vr2, vr3\n    LSX_TRANSPOSE4x4_H vr0, vr1, vr2, vr3,  vr0, vr1, vr2, vr3,  vr4, vr5\n    vadd.h        vr4,    vr0,   vr2\n    vsub.h        vr5,    vr0,   vr2\n    vsrai.h       vr6,    vr1,   1\n    vsrai.h       vr7,    vr3,   1\n    vsub.h        vr6,    vr6,   vr3\n    vadd.h        vr7,    vr1,   vr7\n    LSX_BUTTERFLY_4_H vr4, vr5, vr6, vr7,  vr0, vr1, vr2, vr3\n\n    fld.s         f4,     a0,    0\n    fldx.s        f5,     a0,    a2\n    fldx.s        f6,     a0,    t2\n    fldx.s        f7,     a0,    t3\n\n    vsrari.h      vr0,    vr0,   6\n    vsrari.h      vr1,    vr1,   6\n    vsrari.h      vr2,    vr2,   6\n    vsrari.h      vr3,    vr3,   6\n\n    vsllwil.hu.bu vr4,    vr4,   0\n    vsllwil.hu.bu vr5,    vr5,   0\n    vsllwil.hu.bu vr6,    vr6,   0\n    vsllwil.hu.bu vr7,    vr7,   0\n    vadd.h        vr0,    vr0,   vr4\n    vadd.h        vr1,    vr1,   vr5\n    vadd.h        vr2,    vr2,   vr6\n    vadd.h        vr3,    vr3,   vr7\n    vssrarni.bu.h vr1,    vr0,   0\n    vssrarni.bu.h vr3,    vr2,   0\n\n    vbsrl.v       vr0,    vr1,   8\n    vbsrl.v       vr2,    vr3,   8\n    fst.s         f1,     a0,    0\n    fstx.s        f0,     a0,    a2\n    fstx.s        f3,     a0,    t2\n    fstx.s        f2,     a0,    t3\nendfunc\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride)\n */\nfunction ff_h264_idct8_add_8_lsx\n    ld.h          t0,     a1,    0\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    add.d         t4,     t3,    a2\n    add.d         t5,     t4,    a2\n    add.d         t6,     t5,    a2\n    add.d         t7,     t6,    a2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:3", "text": "vbsrl.v       vr2,    vr3,   8\n    fst.s         f1,     a0,    0\n    fstx.s        f0,     a0,    a2\n    fstx.s        f3,     a0,    t2\n    fstx.s        f2,     a0,    t3\nendfunc\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride)\n */\nfunction ff_h264_idct8_add_8_lsx\n    ld.h          t0,     a1,    0\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    add.d         t4,     t3,    a2\n    add.d         t5,     t4,    a2\n    add.d         t6,     t5,    a2\n    add.d         t7,     t6,    a2\n    addi.w        t0,     t0,    32\n    st.h          t0,     a1,    0\n\n    vld           vr0,    a1,    0\n    vld           vr1,    a1,    16\n    vld           vr2,    a1,    32\n    vld           vr3,    a1,    48\n    vld           vr4,    a1,    64\n    vld           vr5,    a1,    80\n    vld           vr6,    a1,    96\n    vld           vr7,    a1,    112\n    vxor.v        vr8,    vr8,   vr8\n    vst           vr8,    a1,    0\n    vst           vr8,    a1,    16\n    vst           vr8,    a1,    32\n    vst           vr8,    a1,    48\n    vst           vr8,    a1,    64\n    vst           vr8,    a1,    80\n    vst           vr8,    a1,    96\n    vst           vr8,    a1,    112\n\n    vadd.h        vr18,   vr0,   vr4\n    vsub.h        vr19,   vr0,   vr4\n    vsrai.h       vr20,   vr2,   1\n    vsrai.h       vr21,   vr6,   1\n    vsub.h        vr20,   vr20,  vr6\n    vadd.h        vr21,   vr21,  vr2\n    LSX_BUTTERFLY_4_H vr18, vr19, vr20, vr21,  vr10, vr12, vr14, vr16\n    vsrai.h       vr11,   vr7,   1\n    vsrai.h       vr13,   vr3,   1\n    vsrai.h       vr15,   vr5,   1\n    vsrai.h       vr17,   vr1,   1\n    vsub.h        vr11,   vr5,   vr11\n    vsub.h        vr13,   vr7,   vr13\n    vadd.h        vr15,   vr7,   vr15\n    vadd.h        vr17,   vr5,   vr17\n    vsub.h        vr11,   vr11,  vr7\n    vsub.h        vr13,   vr13,  vr3\n    vadd.h        vr15,   vr15,  vr5\n    vadd.h        vr17,   vr17,  vr1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:4", "text": "vadd.h        vr18,   vr0,   vr4\n    vsub.h        vr19,   vr0,   vr4\n    vsrai.h       vr20,   vr2,   1\n    vsrai.h       vr21,   vr6,   1\n    vsub.h        vr20,   vr20,  vr6\n    vadd.h        vr21,   vr21,  vr2\n    LSX_BUTTERFLY_4_H vr18, vr19, vr20, vr21,  vr10, vr12, vr14, vr16\n    vsrai.h       vr11,   vr7,   1\n    vsrai.h       vr13,   vr3,   1\n    vsrai.h       vr15,   vr5,   1\n    vsrai.h       vr17,   vr1,   1\n    vsub.h        vr11,   vr5,   vr11\n    vsub.h        vr13,   vr7,   vr13\n    vadd.h        vr15,   vr7,   vr15\n    vadd.h        vr17,   vr5,   vr17\n    vsub.h        vr11,   vr11,  vr7\n    vsub.h        vr13,   vr13,  vr3\n    vadd.h        vr15,   vr15,  vr5\n    vadd.h        vr17,   vr17,  vr1\n    vsub.h        vr11,   vr11,  vr3\n    vadd.h        vr13,   vr13,  vr1\n    vsub.h        vr15,   vr15,  vr1\n    vadd.h        vr17,   vr17,  vr3\n    vsrai.h       vr18,   vr11,  2\n    vsrai.h       vr19,   vr13,  2\n    vsrai.h       vr20,   vr15,  2\n    vsrai.h       vr21,   vr17,  2\n    vadd.h        vr11,   vr11,  vr21\n    vadd.h        vr13,   vr13,  vr20\n    vsub.h        vr15,   vr19,  vr15\n    vsub.h        vr17,   vr17,  vr18\n    LSX_BUTTERFLY_8_H vr10, vr16, vr12, vr14, vr13, vr15, vr11, vr17, \\\n                      vr0,  vr3,  vr1,  vr2,  vr5,  vr6,  vr4,  vr7\n\n    LSX_TRANSPOSE8x8_H vr0,  vr1,  vr2,  vr3,  vr4,  vr5,  vr6,  vr7, \\\n                       vr0,  vr1,  vr2,  vr3,  vr4,  vr5,  vr6,  vr7, \\\n                       vr10, vr11, vr12, vr13, vr14, vr15, vr16, vr17\n    vexth.w.h     vr20,   vr0\n    vexth.w.h     vr21,   vr1\n    vexth.w.h     vr22,   vr2\n    vexth.w.h     vr23,   vr3\n    vexth.w.h     vr8,    vr4\n    vexth.w.h     vr9,    vr5\n    vexth.w.h     vr18,   vr6\n    vexth.w.h     vr19,   vr7\n    vsllwil.w.h   vr0,    vr0,   0\n    vsllwil.w.h   vr1,    vr1,   0\n    vsllwil.w.h   vr2,    vr2,   0\n    vsllwil.w.h   vr3,    vr3,   0\n    vsllwil.w.h   vr4,    vr4,   0\n    vsllwil.w.h   vr5,    vr5,   0\n    vsllwil.w.h   vr6,    vr6,   0\n    vsllwil.w.h   vr7,    vr7,   0\n\n    vadd.w        vr11,   vr0,   vr4\n    vsub.w        vr13,   vr0,   vr4\n    vsrai.w       vr15,   vr2,   1\n    vsrai.w       vr17,   vr6,   1\n    vsub.w        vr15,   vr15,  vr6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:5", "text": "vexth.w.h     vr22,   vr2\n    vexth.w.h     vr23,   vr3\n    vexth.w.h     vr8,    vr4\n    vexth.w.h     vr9,    vr5\n    vexth.w.h     vr18,   vr6\n    vexth.w.h     vr19,   vr7\n    vsllwil.w.h   vr0,    vr0,   0\n    vsllwil.w.h   vr1,    vr1,   0\n    vsllwil.w.h   vr2,    vr2,   0\n    vsllwil.w.h   vr3,    vr3,   0\n    vsllwil.w.h   vr4,    vr4,   0\n    vsllwil.w.h   vr5,    vr5,   0\n    vsllwil.w.h   vr6,    vr6,   0\n    vsllwil.w.h   vr7,    vr7,   0\n\n    vadd.w        vr11,   vr0,   vr4\n    vsub.w        vr13,   vr0,   vr4\n    vsrai.w       vr15,   vr2,   1\n    vsrai.w       vr17,   vr6,   1\n    vsub.w        vr15,   vr15,  vr6\n    vadd.w        vr17,   vr17,  vr2\n    LSX_BUTTERFLY_4_W vr11, vr13, vr15, vr17,  vr10, vr12, vr14, vr16\n    vsrai.w       vr11,   vr7,   1\n    vsrai.w       vr13,   vr3,   1\n    vsrai.w       vr15,   vr5,   1\n    vsrai.w       vr17,   vr1,   1\n    vsub.w        vr11,   vr5,   vr11\n    vsub.w        vr13,   vr7,   vr13\n    vadd.w        vr15,   vr7,   vr15\n    vadd.w        vr17,   vr5,   vr17\n    vsub.w        vr11,   vr11,  vr7\n    vsub.w        vr13,   vr13,  vr3\n    vadd.w        vr15,   vr15,  vr5\n    vadd.w        vr17,   vr17,  vr1\n    vsub.w        vr11,   vr11,  vr3\n    vadd.w        vr13,   vr13,  vr1\n    vsub.w        vr15,   vr15,  vr1\n    vadd.w        vr17,   vr17,  vr3\n    vsrai.w       vr0,    vr11,  2\n    vsrai.w       vr1,    vr13,  2\n    vsrai.w       vr2,    vr15,  2\n    vsrai.w       vr3,    vr17,  2\n    vadd.w        vr11,   vr11,  vr3\n    vadd.w        vr13,   vr13,  vr2\n    vsub.w        vr15,   vr1,   vr15\n    vsub.w        vr17,   vr17,  vr0\n    LSX_BUTTERFLY_8_W vr10, vr12, vr14, vr16, vr11, vr13, vr15, vr17, \\\n                      vr0,  vr1,  vr2,  vr3,  vr4,  vr5,  vr6,  vr7\n\n    vadd.w        vr11,    vr20,  vr8\n    vsub.w        vr13,    vr20,  vr8\n    vsrai.w       vr15,    vr22,  1\n    vsrai.w       vr17,    vr18,  1\n    vsub.w        vr15,    vr15,  vr18\n    vadd.w        vr17,    vr17,  vr22\n    LSX_BUTTERFLY_4_W vr11, vr13, vr15, vr17,  vr10, vr12, vr14, vr16\n    vsrai.w       vr11,   vr19,  1\n    vsrai.w       vr13,   vr23,  1\n    vsrai.w       vr15,   vr9,   1\n    vsrai.w       vr17,   vr21,  1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:6", "text": "vsrai.w       vr2,    vr15,  2\n    vsrai.w       vr3,    vr17,  2\n    vadd.w        vr11,   vr11,  vr3\n    vadd.w        vr13,   vr13,  vr2\n    vsub.w        vr15,   vr1,   vr15\n    vsub.w        vr17,   vr17,  vr0\n    LSX_BUTTERFLY_8_W vr10, vr12, vr14, vr16, vr11, vr13, vr15, vr17, \\\n                      vr0,  vr1,  vr2,  vr3,  vr4,  vr5,  vr6,  vr7\n\n    vadd.w        vr11,    vr20,  vr8\n    vsub.w        vr13,    vr20,  vr8\n    vsrai.w       vr15,    vr22,  1\n    vsrai.w       vr17,    vr18,  1\n    vsub.w        vr15,    vr15,  vr18\n    vadd.w        vr17,    vr17,  vr22\n    LSX_BUTTERFLY_4_W vr11, vr13, vr15, vr17,  vr10, vr12, vr14, vr16\n    vsrai.w       vr11,   vr19,  1\n    vsrai.w       vr13,   vr23,  1\n    vsrai.w       vr15,   vr9,   1\n    vsrai.w       vr17,   vr21,  1\n    vsub.w        vr11,   vr9,   vr11\n    vsub.w        vr13,   vr19,  vr13\n    vadd.w        vr15,   vr19,  vr15\n    vadd.w        vr17,   vr9,   vr17\n    vsub.w        vr11,   vr11,  vr19\n    vsub.w        vr13,   vr13,  vr23\n    vadd.w        vr15,   vr15,  vr9\n    vadd.w        vr17,   vr17,  vr21\n    vsub.w        vr11,   vr11,  vr23\n    vadd.w        vr13,   vr13,  vr21\n    vsub.w        vr15,   vr15,  vr21\n    vadd.w        vr17,   vr17,  vr23\n    vsrai.w       vr20,   vr11,  2\n    vsrai.w       vr21,   vr13,  2\n    vsrai.w       vr22,   vr15,  2\n    vsrai.w       vr23,   vr17,  2\n    vadd.w        vr11,   vr11,  vr23\n    vadd.w        vr13,   vr13,  vr22\n    vsub.w        vr15,   vr21,  vr15\n    vsub.w        vr17,   vr17,  vr20\n    LSX_BUTTERFLY_8_W vr10, vr12, vr14, vr16, vr11, vr13, vr15, vr17, \\\n                      vr20, vr21, vr22, vr23, vr8, vr9, vr18, vr19\n\n    vld           vr10,   a0,    0\n    vldx          vr11,   a0,    a2\n    vldx          vr12,   a0,    t2\n    vldx          vr13,   a0,    t3\n    vldx          vr14,   a0,    t4\n    vldx          vr15,   a0,    t5\n    vldx          vr16,   a0,    t6\n    vldx          vr17,   a0,    t7\n    vsrani.h.w    vr20,   vr0,   6\n    vsrani.h.w    vr21,   vr1,   6\n    vsrani.h.w    vr22,   vr2,   6\n    vsrani.h.w    vr23,   vr3,   6\n    vsrani.h.w    vr8,    vr4,   6\n    vsrani.h.w    vr9,    vr5,   6\n    vsrani.h.w    vr18,   vr6,   6\n    vsrani.h.w    vr19,   vr7,   6\n    vsllwil.hu.bu vr10,   vr10,  0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:7", "text": "LSX_BUTTERFLY_8_W vr10, vr12, vr14, vr16, vr11, vr13, vr15, vr17, \\\n                      vr20, vr21, vr22, vr23, vr8, vr9, vr18, vr19\n\n    vld           vr10,   a0,    0\n    vldx          vr11,   a0,    a2\n    vldx          vr12,   a0,    t2\n    vldx          vr13,   a0,    t3\n    vldx          vr14,   a0,    t4\n    vldx          vr15,   a0,    t5\n    vldx          vr16,   a0,    t6\n    vldx          vr17,   a0,    t7\n    vsrani.h.w    vr20,   vr0,   6\n    vsrani.h.w    vr21,   vr1,   6\n    vsrani.h.w    vr22,   vr2,   6\n    vsrani.h.w    vr23,   vr3,   6\n    vsrani.h.w    vr8,    vr4,   6\n    vsrani.h.w    vr9,    vr5,   6\n    vsrani.h.w    vr18,   vr6,   6\n    vsrani.h.w    vr19,   vr7,   6\n    vsllwil.hu.bu vr10,   vr10,  0\n    vsllwil.hu.bu vr11,   vr11,  0\n    vsllwil.hu.bu vr12,   vr12,  0\n    vsllwil.hu.bu vr13,   vr13,  0\n    vsllwil.hu.bu vr14,   vr14,  0\n    vsllwil.hu.bu vr15,   vr15,  0\n    vsllwil.hu.bu vr16,   vr16,  0\n    vsllwil.hu.bu vr17,   vr17,  0\n\n    vadd.h        vr0,    vr20,  vr10\n    vadd.h        vr1,    vr21,  vr11\n    vadd.h        vr2,    vr22,  vr12\n    vadd.h        vr3,    vr23,  vr13\n    vadd.h        vr4,    vr8,   vr14\n    vadd.h        vr5,    vr9,   vr15\n    vadd.h        vr6,    vr18,  vr16\n    vadd.h        vr7,    vr19,  vr17\n    vssrarni.bu.h vr1,    vr0,   0\n    vssrarni.bu.h vr3,    vr2,   0\n    vssrarni.bu.h vr5,    vr4,   0\n    vssrarni.bu.h vr7,    vr6,   0\n    vbsrl.v       vr0,    vr1,   8\n    vbsrl.v       vr2,    vr3,   8\n    vbsrl.v       vr4,    vr5,   8\n    vbsrl.v       vr6,    vr7,   8\n    fst.d         f1,     a0,    0\n    fstx.d        f0,     a0,    a2\n    fstx.d        f3,     a0,    t2\n    fstx.d        f2,     a0,    t3\n    fstx.d        f5,     a0,    t4\n    fstx.d        f4,     a0,    t5\n    fstx.d        f7,     a0,    t6\n    fstx.d        f6,     a0,    t7\nendfunc\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride)\n */\nfunction ff_h264_idct8_add_8_lasx", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:8", "text": "vbsrl.v       vr0,    vr1,   8\n    vbsrl.v       vr2,    vr3,   8\n    vbsrl.v       vr4,    vr5,   8\n    vbsrl.v       vr6,    vr7,   8\n    fst.d         f1,     a0,    0\n    fstx.d        f0,     a0,    a2\n    fstx.d        f3,     a0,    t2\n    fstx.d        f2,     a0,    t3\n    fstx.d        f5,     a0,    t4\n    fstx.d        f4,     a0,    t5\n    fstx.d        f7,     a0,    t6\n    fstx.d        f6,     a0,    t7\nendfunc\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride)\n */\nfunction ff_h264_idct8_add_8_lasx\n    ld.h          t0,     a1,    0\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    add.d         t4,     t3,    a2\n    add.d         t5,     t4,    a2\n    add.d         t6,     t5,    a2\n    add.d         t7,     t6,    a2\n    addi.w        t0,     t0,    32\n    st.h          t0,     a1,    0\n\n    vld           vr0,    a1,    0\n    vld           vr1,    a1,    16\n    vld           vr2,    a1,    32\n    vld           vr3,    a1,    48\n    vld           vr4,    a1,    64\n    vld           vr5,    a1,    80\n    vld           vr6,    a1,    96\n    vld           vr7,    a1,    112\n    xvxor.v       xr8,    xr8,   xr8\n    xvst          xr8,    a1,    0\n    xvst          xr8,    a1,    32\n    xvst          xr8,    a1,    64\n    xvst          xr8,    a1,    96\n\n    vadd.h        vr18,   vr0,   vr4\n    vsub.h        vr19,   vr0,   vr4\n    vsrai.h       vr20,   vr2,   1\n    vsrai.h       vr21,   vr6,   1\n    vsub.h        vr20,   vr20,  vr6\n    vadd.h        vr21,   vr21,  vr2\n    LSX_BUTTERFLY_4_H vr18, vr19, vr20, vr21,  vr10, vr12, vr14, vr16\n    vsrai.h       vr11,   vr7,   1\n    vsrai.h       vr13,   vr3,   1\n    vsrai.h       vr15,   vr5,   1\n    vsrai.h       vr17,   vr1,   1\n    vsub.h        vr11,   vr5,   vr11\n    vsub.h        vr13,   vr7,   vr13\n    vadd.h        vr15,   vr7,   vr15\n    vadd.h        vr17,   vr5,   vr17\n    vsub.h        vr11,   vr11,  vr7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:9", "text": "xvst          xr8,    a1,    32\n    xvst          xr8,    a1,    64\n    xvst          xr8,    a1,    96\n\n    vadd.h        vr18,   vr0,   vr4\n    vsub.h        vr19,   vr0,   vr4\n    vsrai.h       vr20,   vr2,   1\n    vsrai.h       vr21,   vr6,   1\n    vsub.h        vr20,   vr20,  vr6\n    vadd.h        vr21,   vr21,  vr2\n    LSX_BUTTERFLY_4_H vr18, vr19, vr20, vr21,  vr10, vr12, vr14, vr16\n    vsrai.h       vr11,   vr7,   1\n    vsrai.h       vr13,   vr3,   1\n    vsrai.h       vr15,   vr5,   1\n    vsrai.h       vr17,   vr1,   1\n    vsub.h        vr11,   vr5,   vr11\n    vsub.h        vr13,   vr7,   vr13\n    vadd.h        vr15,   vr7,   vr15\n    vadd.h        vr17,   vr5,   vr17\n    vsub.h        vr11,   vr11,  vr7\n    vsub.h        vr13,   vr13,  vr3\n    vadd.h        vr15,   vr15,  vr5\n    vadd.h        vr17,   vr17,  vr1\n    vsub.h        vr11,   vr11,  vr3\n    vadd.h        vr13,   vr13,  vr1\n    vsub.h        vr15,   vr15,  vr1\n    vadd.h        vr17,   vr17,  vr3\n    vsrai.h       vr18,   vr11,  2\n    vsrai.h       vr19,   vr13,  2\n    vsrai.h       vr20,   vr15,  2\n    vsrai.h       vr21,   vr17,  2\n    vadd.h        vr11,   vr11,  vr21\n    vadd.h        vr13,   vr13,  vr20\n    vsub.h        vr15,   vr19,  vr15\n    vsub.h        vr17,   vr17,  vr18\n    LSX_BUTTERFLY_8_H vr10, vr16, vr12, vr14, vr13, vr15, vr11, vr17, \\\n                      vr0,  vr3,  vr1,  vr2,  vr5,  vr6,  vr4,  vr7\n\n    LSX_TRANSPOSE8x8_H vr0,  vr1,  vr2,  vr3,  vr4,  vr5,  vr6,  vr7, \\\n                       vr0,  vr1,  vr2,  vr3,  vr4,  vr5,  vr6,  vr7, \\\n                       vr10, vr11, vr12, vr13, vr14, vr15, vr16, vr17\n    vext2xv.w.h   xr0,    xr0\n    vext2xv.w.h   xr1,    xr1\n    vext2xv.w.h   xr2,    xr2\n    vext2xv.w.h   xr3,    xr3\n    vext2xv.w.h   xr4,    xr4\n    vext2xv.w.h   xr5,    xr5\n    vext2xv.w.h   xr6,    xr6\n    vext2xv.w.h   xr7,    xr7\n\n    xvadd.w       xr11,   xr0,   xr4\n    xvsub.w       xr13,   xr0,   xr4\n    xvsrai.w      xr15,   xr2,   1\n    xvsrai.w      xr17,   xr6,   1\n    xvsub.w       xr15,   xr15,  xr6\n    xvadd.w       xr17,   xr17,  xr2\n    LASX_BUTTERFLY_4_W xr11, xr13, xr15, xr17,  xr10, xr12, xr14, xr16\n    xvsrai.w      xr11,   xr7,   1\n    xvsrai.w      xr13,   xr3,   1\n    xvsrai.w      xr15,   xr5,   1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:10", "text": "vr10, vr11, vr12, vr13, vr14, vr15, vr16, vr17\n    vext2xv.w.h   xr0,    xr0\n    vext2xv.w.h   xr1,    xr1\n    vext2xv.w.h   xr2,    xr2\n    vext2xv.w.h   xr3,    xr3\n    vext2xv.w.h   xr4,    xr4\n    vext2xv.w.h   xr5,    xr5\n    vext2xv.w.h   xr6,    xr6\n    vext2xv.w.h   xr7,    xr7\n\n    xvadd.w       xr11,   xr0,   xr4\n    xvsub.w       xr13,   xr0,   xr4\n    xvsrai.w      xr15,   xr2,   1\n    xvsrai.w      xr17,   xr6,   1\n    xvsub.w       xr15,   xr15,  xr6\n    xvadd.w       xr17,   xr17,  xr2\n    LASX_BUTTERFLY_4_W xr11, xr13, xr15, xr17,  xr10, xr12, xr14, xr16\n    xvsrai.w      xr11,   xr7,   1\n    xvsrai.w      xr13,   xr3,   1\n    xvsrai.w      xr15,   xr5,   1\n    xvsrai.w      xr17,   xr1,   1\n    xvsub.w       xr11,   xr5,   xr11\n    xvsub.w       xr13,   xr7,   xr13\n    xvadd.w       xr15,   xr7,   xr15\n    xvadd.w       xr17,   xr5,   xr17\n    xvsub.w       xr11,   xr11,  xr7\n    xvsub.w       xr13,   xr13,  xr3\n    xvadd.w       xr15,   xr15,  xr5\n    xvadd.w       xr17,   xr17,  xr1\n    xvsub.w       xr11,   xr11,  xr3\n    xvadd.w       xr13,   xr13,  xr1\n    xvsub.w       xr15,   xr15,  xr1\n    xvadd.w       xr17,   xr17,  xr3\n    xvsrai.w      xr0,    xr11,  2\n    xvsrai.w      xr1,    xr13,  2\n    xvsrai.w      xr2,    xr15,  2\n    xvsrai.w      xr3,    xr17,  2\n    xvadd.w       xr11,   xr11,  xr3\n    xvadd.w       xr13,   xr13,  xr2\n    xvsub.w       xr15,   xr1,   xr15\n    xvsub.w       xr17,   xr17,  xr0\n    LASX_BUTTERFLY_8_W xr10, xr12, xr14, xr16, xr11, xr13, xr15, xr17, \\\n                       xr0,  xr1,  xr2,  xr3,  xr4,  xr5,  xr6,  xr7\n\n    vld           vr10,   a0,    0\n    vldx          vr11,   a0,    a2\n    vldx          vr12,   a0,    t2\n    vldx          vr13,   a0,    t3\n    vldx          vr14,   a0,    t4\n    vldx          vr15,   a0,    t5\n    vldx          vr16,   a0,    t6\n    vldx          vr17,   a0,    t7\n    xvldi         xr8,    0x806     //\"xvldi.w xr8 6\"\n    xvsran.h.w    xr0,    xr0,   xr8\n    xvsran.h.w    xr1,    xr1,   xr8\n    xvsran.h.w    xr2,    xr2,   xr8\n    xvsran.h.w    xr3,    xr3,   xr8\n    xvsran.h.w    xr4,    xr4,   xr8\n    xvsran.h.w    xr5,    xr5,   xr8\n    xvsran.h.w    xr6,    xr6,   xr8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:11", "text": "xvsub.w       xr17,   xr17,  xr0\n    LASX_BUTTERFLY_8_W xr10, xr12, xr14, xr16, xr11, xr13, xr15, xr17, \\\n                       xr0,  xr1,  xr2,  xr3,  xr4,  xr5,  xr6,  xr7\n\n    vld           vr10,   a0,    0\n    vldx          vr11,   a0,    a2\n    vldx          vr12,   a0,    t2\n    vldx          vr13,   a0,    t3\n    vldx          vr14,   a0,    t4\n    vldx          vr15,   a0,    t5\n    vldx          vr16,   a0,    t6\n    vldx          vr17,   a0,    t7\n    xvldi         xr8,    0x806     //\"xvldi.w xr8 6\"\n    xvsran.h.w    xr0,    xr0,   xr8\n    xvsran.h.w    xr1,    xr1,   xr8\n    xvsran.h.w    xr2,    xr2,   xr8\n    xvsran.h.w    xr3,    xr3,   xr8\n    xvsran.h.w    xr4,    xr4,   xr8\n    xvsran.h.w    xr5,    xr5,   xr8\n    xvsran.h.w    xr6,    xr6,   xr8\n    xvsran.h.w    xr7,    xr7,   xr8\n    xvpermi.d     xr0,    xr0,   0x08\n    xvpermi.d     xr1,    xr1,   0x08\n    xvpermi.d     xr2,    xr2,   0x08\n    xvpermi.d     xr3,    xr3,   0x08\n    xvpermi.d     xr4,    xr4,   0x08\n    xvpermi.d     xr5,    xr5,   0x08\n    xvpermi.d     xr6,    xr6,   0x08\n    xvpermi.d     xr7,    xr7,   0x08\n\n    vsllwil.hu.bu vr10,   vr10,  0\n    vsllwil.hu.bu vr11,   vr11,  0\n    vsllwil.hu.bu vr12,   vr12,  0\n    vsllwil.hu.bu vr13,   vr13,  0\n    vsllwil.hu.bu vr14,   vr14,  0\n    vsllwil.hu.bu vr15,   vr15,  0\n    vsllwil.hu.bu vr16,   vr16,  0\n    vsllwil.hu.bu vr17,   vr17,  0\n\n    vadd.h        vr0,    vr0,   vr10\n    vadd.h        vr1,    vr1,   vr11\n    vadd.h        vr2,    vr2,   vr12\n    vadd.h        vr3,    vr3,   vr13\n    vadd.h        vr4,    vr4,   vr14\n    vadd.h        vr5,    vr5,   vr15\n    vadd.h        vr6,    vr6,   vr16\n    vadd.h        vr7,    vr7,   vr17\n    vssrarni.bu.h vr1,    vr0,   0\n    vssrarni.bu.h vr3,    vr2,   0\n    vssrarni.bu.h vr5,    vr4,   0\n    vssrarni.bu.h vr7,    vr6,   0\n    vbsrl.v       vr0,    vr1,   8\n    vbsrl.v       vr2,    vr3,   8\n    vbsrl.v       vr4,    vr5,   8\n    vbsrl.v       vr6,    vr7,   8\n    fst.d         f1,     a0,    0\n    fstx.d        f0,     a0,    a2\n    fstx.d        f3,     a0,    t2\n    fstx.d        f2,     a0,    t3\n    fstx.d        f5,     a0,    t4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:12", "text": "vadd.h        vr1,    vr1,   vr11\n    vadd.h        vr2,    vr2,   vr12\n    vadd.h        vr3,    vr3,   vr13\n    vadd.h        vr4,    vr4,   vr14\n    vadd.h        vr5,    vr5,   vr15\n    vadd.h        vr6,    vr6,   vr16\n    vadd.h        vr7,    vr7,   vr17\n    vssrarni.bu.h vr1,    vr0,   0\n    vssrarni.bu.h vr3,    vr2,   0\n    vssrarni.bu.h vr5,    vr4,   0\n    vssrarni.bu.h vr7,    vr6,   0\n    vbsrl.v       vr0,    vr1,   8\n    vbsrl.v       vr2,    vr3,   8\n    vbsrl.v       vr4,    vr5,   8\n    vbsrl.v       vr6,    vr7,   8\n    fst.d         f1,     a0,    0\n    fstx.d        f0,     a0,    a2\n    fstx.d        f3,     a0,    t2\n    fstx.d        f2,     a0,    t3\n    fstx.d        f5,     a0,    t4\n    fstx.d        f4,     a0,    t5\n    fstx.d        f7,     a0,    t6\n    fstx.d        f6,     a0,    t7\nendfunc\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct_dc_add)(uint8_t *_dst, int16_t *_block, int stride)\n * LSX optimization is enough for this function.\n */\nfunction ff_h264_idct_dc_add_8_lsx\n    vldrepl.h     vr4,    a1,    0\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    fld.s         f0,     a0,    0\n    fldx.s        f1,     a0,    a2\n    fldx.s        f2,     a0,    t2\n    fldx.s        f3,     a0,    t3\n    st.h          zero,   a1,    0\n\n    vsrari.h      vr4,    vr4,   6\n    vilvl.w       vr0,    vr1,   vr0\n    vilvl.w       vr1,    vr3,   vr2\n    vsllwil.hu.bu vr0,    vr0,   0\n    vsllwil.hu.bu vr1,    vr1,   0\n    vadd.h        vr0,    vr0,   vr4\n    vadd.h        vr1,    vr1,   vr4\n    vssrarni.bu.h vr1,    vr0,   0\n\n    vbsrl.v       vr2,    vr1,   4\n    vbsrl.v       vr3,    vr1,   8\n    vbsrl.v       vr4,    vr1,   12\n    fst.s         f1,     a0,    0\n    fstx.s        f2,     a0,    a2\n    fstx.s        f3,     a0,    t2\n    fstx.s        f4,     a0,    t3\nendfunc\n\n/*", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:13", "text": "vsrari.h      vr4,    vr4,   6\n    vilvl.w       vr0,    vr1,   vr0\n    vilvl.w       vr1,    vr3,   vr2\n    vsllwil.hu.bu vr0,    vr0,   0\n    vsllwil.hu.bu vr1,    vr1,   0\n    vadd.h        vr0,    vr0,   vr4\n    vadd.h        vr1,    vr1,   vr4\n    vssrarni.bu.h vr1,    vr0,   0\n\n    vbsrl.v       vr2,    vr1,   4\n    vbsrl.v       vr3,    vr1,   8\n    vbsrl.v       vr4,    vr1,   12\n    fst.s         f1,     a0,    0\n    fstx.s        f2,     a0,    a2\n    fstx.s        f3,     a0,    t2\n    fstx.s        f4,     a0,    t3\nendfunc\n\n/*\n * #define FUNC2(a, b, c)  FUNC3(a, b, c)\n * #define FUNCC(a) FUNC2(a, BIT_DEPTH, _c)\n * void FUNCC(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *_block, int stride)\n */\nfunction ff_h264_idct8_dc_add_8_lsx\n    vldrepl.h     vr8,    a1,    0\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    add.d         t4,     t3,    a2\n    add.d         t5,     t4,    a2\n    add.d         t6,     t5,    a2\n    add.d         t7,     t6,    a2\n\n    fld.d         f0,     a0,    0\n    fldx.d        f1,     a0,    a2\n    fldx.d        f2,     a0,    t2\n    fldx.d        f3,     a0,    t3\n    fldx.d        f4,     a0,    t4\n    fldx.d        f5,     a0,    t5\n    fldx.d        f6,     a0,    t6\n    fldx.d        f7,     a0,    t7\n    st.h          zero,   a1,    0\n\n    vsrari.h      vr8,    vr8,   6\n    vsllwil.hu.bu vr0,    vr0,   0\n    vsllwil.hu.bu vr1,    vr1,   0\n    vsllwil.hu.bu vr2,    vr2,   0\n    vsllwil.hu.bu vr3,    vr3,   0\n    vsllwil.hu.bu vr4,    vr4,   0\n    vsllwil.hu.bu vr5,    vr5,   0\n    vsllwil.hu.bu vr6,    vr6,   0\n    vsllwil.hu.bu vr7,    vr7,   0\n    vadd.h        vr0,    vr0,   vr8\n    vadd.h        vr1,    vr1,   vr8\n    vadd.h        vr2,    vr2,   vr8\n    vadd.h        vr3,    vr3,   vr8\n    vadd.h        vr4,    vr4,   vr8\n    vadd.h        vr5,    vr5,   vr8\n    vadd.h        vr6,    vr6,   vr8\n    vadd.h        vr7,    vr7,   vr8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:14", "text": "fldx.d        f7,     a0,    t7\n    st.h          zero,   a1,    0\n\n    vsrari.h      vr8,    vr8,   6\n    vsllwil.hu.bu vr0,    vr0,   0\n    vsllwil.hu.bu vr1,    vr1,   0\n    vsllwil.hu.bu vr2,    vr2,   0\n    vsllwil.hu.bu vr3,    vr3,   0\n    vsllwil.hu.bu vr4,    vr4,   0\n    vsllwil.hu.bu vr5,    vr5,   0\n    vsllwil.hu.bu vr6,    vr6,   0\n    vsllwil.hu.bu vr7,    vr7,   0\n    vadd.h        vr0,    vr0,   vr8\n    vadd.h        vr1,    vr1,   vr8\n    vadd.h        vr2,    vr2,   vr8\n    vadd.h        vr3,    vr3,   vr8\n    vadd.h        vr4,    vr4,   vr8\n    vadd.h        vr5,    vr5,   vr8\n    vadd.h        vr6,    vr6,   vr8\n    vadd.h        vr7,    vr7,   vr8\n    vssrarni.bu.h vr1,    vr0,   0\n    vssrarni.bu.h vr3,    vr2,   0\n    vssrarni.bu.h vr5,    vr4,   0\n    vssrarni.bu.h vr7,    vr6,   0\n\n    vbsrl.v       vr0,    vr1,   8\n    vbsrl.v       vr2,    vr3,   8\n    vbsrl.v       vr4,    vr5,   8\n    vbsrl.v       vr6,    vr7,   8\n    fst.d         f1,     a0,    0\n    fstx.d        f0,     a0,    a2\n    fstx.d        f3,     a0,    t2\n    fstx.d        f2,     a0,    t3\n    fstx.d        f5,     a0,    t4\n    fstx.d        f4,     a0,    t5\n    fstx.d        f7,     a0,    t6\n    fstx.d        f6,     a0,    t7\nendfunc\nfunction ff_h264_idct8_dc_add_8_lasx\n    xvldrepl.h    xr8,    a1,    0\n    add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    add.d         t4,     t3,    a2\n    add.d         t5,     t4,    a2\n    add.d         t6,     t5,    a2\n    add.d         t7,     t6,    a2\n\n    fld.d         f0,     a0,    0\n    fldx.d        f1,     a0,    a2\n    fldx.d        f2,     a0,    t2\n    fldx.d        f3,     a0,    t3\n    fldx.d        f4,     a0,    t4\n    fldx.d        f5,     a0,    t5\n    fldx.d        f6,     a0,    t6\n    fldx.d        f7,     a0,    t7\n    st.h          zero,   a1,    0\n\n    xvsrari.h     xr8,    xr8,   6\n    xvpermi.q     xr1,    xr0,   0x20\n    xvpermi.q     xr3,    xr2,   0x20", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:15", "text": "add.d         t2,     a2,    a2\n    add.d         t3,     t2,    a2\n    add.d         t4,     t3,    a2\n    add.d         t5,     t4,    a2\n    add.d         t6,     t5,    a2\n    add.d         t7,     t6,    a2\n\n    fld.d         f0,     a0,    0\n    fldx.d        f1,     a0,    a2\n    fldx.d        f2,     a0,    t2\n    fldx.d        f3,     a0,    t3\n    fldx.d        f4,     a0,    t4\n    fldx.d        f5,     a0,    t5\n    fldx.d        f6,     a0,    t6\n    fldx.d        f7,     a0,    t7\n    st.h          zero,   a1,    0\n\n    xvsrari.h     xr8,    xr8,   6\n    xvpermi.q     xr1,    xr0,   0x20\n    xvpermi.q     xr3,    xr2,   0x20\n    xvpermi.q     xr5,    xr4,   0x20\n    xvpermi.q     xr7,    xr6,   0x20\n    xvsllwil.hu.bu xr1,   xr1,   0\n    xvsllwil.hu.bu xr3,   xr3,   0\n    xvsllwil.hu.bu xr5,   xr5,   0\n    xvsllwil.hu.bu xr7,   xr7,   0\n    xvadd.h       xr1,    xr1,   xr8\n    xvadd.h       xr3,    xr3,   xr8\n    xvadd.h       xr5,    xr5,   xr8\n    xvadd.h       xr7,    xr7,   xr8\n\n    xvssrarni.bu.h xr3,   xr1,   0\n    xvssrarni.bu.h xr7,   xr5,   0\n\n    xvpermi.q     xr1,    xr3,   0x11\n    xvpermi.q     xr5,    xr7,   0x11\n    xvbsrl.v      xr0,    xr1,   8\n    xvbsrl.v      xr2,    xr3,   8\n    xvbsrl.v      xr4,    xr5,   8\n    xvbsrl.v      xr6,    xr7,   8\n\n    fst.d         f3,     a0,    0\n    fstx.d        f1,     a0,    a2\n    fstx.d        f2,     a0,    t2\n    fstx.d        f0,     a0,    t3\n    fstx.d        f7,     a0,    t4\n    fstx.d        f5,     a0,    t5\n    fstx.d        f6,     a0,    t6\n    fstx.d        f4,     a0,    t7\nendfunc\n\n/**\n * IDCT transforms the 16 dc values and dequantizes them.\n * @param qmul quantization parameter\n * void FUNCC(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){\n * LSX optimization is enough for this function.\n */\nfunction ff_h264_luma_dc_dequant_idct_8_lsx\n    vld           vr0,    a1,    0\n    vld           vr1,    a1,    8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:16", "text": "fst.d         f3,     a0,    0\n    fstx.d        f1,     a0,    a2\n    fstx.d        f2,     a0,    t2\n    fstx.d        f0,     a0,    t3\n    fstx.d        f7,     a0,    t4\n    fstx.d        f5,     a0,    t5\n    fstx.d        f6,     a0,    t6\n    fstx.d        f4,     a0,    t7\nendfunc\n\n/**\n * IDCT transforms the 16 dc values and dequantizes them.\n * @param qmul quantization parameter\n * void FUNCC(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){\n * LSX optimization is enough for this function.\n */\nfunction ff_h264_luma_dc_dequant_idct_8_lsx\n    vld           vr0,    a1,    0\n    vld           vr1,    a1,    8\n    vld           vr2,    a1,    16\n    vld           vr3,    a1,    24\n    vreplgr2vr.w  vr8,    a2\n    LSX_TRANSPOSE4x4_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, vr9, vr10\n    LSX_BUTTERFLY_4_H  vr4, vr6, vr7, vr5, vr0, vr3, vr2, vr1\n    LSX_BUTTERFLY_4_H  vr0, vr1, vr2, vr3, vr4, vr7, vr6, vr5\n    LSX_TRANSPOSE4x4_H vr4, vr5, vr6, vr7, vr0, vr1, vr2, vr3, vr9, vr10\n    LSX_BUTTERFLY_4_H  vr0, vr1, vr3, vr2, vr4, vr7, vr6, vr5\n    LSX_BUTTERFLY_4_H  vr4, vr5, vr6, vr7, vr0, vr1, vr2, vr3\n    vsllwil.w.h   vr0,    vr0,   0\n    vsllwil.w.h   vr1,    vr1,   0\n    vsllwil.w.h   vr2,    vr2,   0\n    vsllwil.w.h   vr3,    vr3,   0\n    vmul.w        vr0,    vr0,   vr8\n    vmul.w        vr1,    vr1,   vr8\n    vmul.w        vr2,    vr2,   vr8\n    vmul.w        vr3,    vr3,   vr8\n    vsrarni.h.w   vr1,    vr0,   8\n    vsrarni.h.w   vr3,    vr2,   8\n\n    vstelm.h      vr1,    a0,    0,   0\n    vstelm.h      vr1,    a0,    32,  4\n    vstelm.h      vr1,    a0,    64,  1\n    vstelm.h      vr1,    a0,    96,  5\n    vstelm.h      vr3,    a0,    128, 0\n    vstelm.h      vr3,    a0,    160, 4\n    vstelm.h      vr3,    a0,    192, 1\n    vstelm.h      vr3,    a0,    224, 5\n    addi.d        a0,     a0,    256\n    vstelm.h      vr1,    a0,    0,   2\n    vstelm.h      vr1,    a0,    32,  6\n    vstelm.h      vr1,    a0,    64,  3\n    vstelm.h      vr1,    a0,    96,  7\n    vstelm.h      vr3,    a0,    128, 2\n    vstelm.h      vr3,    a0,    160, 6\n    vstelm.h      vr3,    a0,    192, 3\n    vstelm.h      vr3,    a0,    224, 7\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 601, "line_end": 658}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264idct.S:17", "text": "vstelm.h      vr1,    a0,    0,   0\n    vstelm.h      vr1,    a0,    32,  4\n    vstelm.h      vr1,    a0,    64,  1\n    vstelm.h      vr1,    a0,    96,  5\n    vstelm.h      vr3,    a0,    128, 0\n    vstelm.h      vr3,    a0,    160, 4\n    vstelm.h      vr3,    a0,    192, 1\n    vstelm.h      vr3,    a0,    224, 5\n    addi.d        a0,     a0,    256\n    vstelm.h      vr1,    a0,    0,   2\n    vstelm.h      vr1,    a0,    32,  6\n    vstelm.h      vr1,    a0,    64,  3\n    vstelm.h      vr1,    a0,    96,  7\n    vstelm.h      vr3,    a0,    128, 2\n    vstelm.h      vr3,    a0,    160, 6\n    vstelm.h      vr3,    a0,    192, 3\n    vstelm.h      vr3,    a0,    224, 7\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264idct.S", "line_start": 641, "line_end": 658}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:1", "text": "/*\n * Loongson LSX optimized h264intrapred\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Lu Wang <wanglu@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"loongson_asm.S\"\n\nconst shufa\n.byte 6, 5, 4, 3, 2, 1, 0\nendconst\n\nconst mulk\n.byte 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0\nendconst\n\nconst mulh\n.byte 0, 0, 1, 0,  2,  0,  3, 0,  4, 0,  5, 0,  6, 0,  7, 0\n.byte 8, 0, 9, 0, 10,  0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0\nendconst\n\n.macro PRED16X16_PLANE\n    slli.d        t6,    a1,    1\n    slli.d        t4,    a1,    3\n    addi.d        t0,    a0,    7\n    sub.d         t0,    t0,    a1\n    add.d         t1,    a0,    t4\n    addi.d        t1,    t1,    -1\n    sub.d         t2,    t1,    t6\n\n    ld.bu         t3,    t0,    1\n    ld.bu         t4,    t0,    -1\n    ld.bu         t5,    t1,    0\n    ld.bu         t7,    t2,    0\n    sub.d         t3,    t3,    t4\n    sub.d         t4,    t5,    t7\n\n    la.local      t5,    mulk\n    vld           vr0,   t5,    0\n    fld.d         f1,    t0,    2\n    fld.d         f2,    t0,    -8\n    la.local      t5,    shufa\n    fld.d         f3,    t5,    0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:2", "text": "slli.d        t4,    a1,    3\n    addi.d        t0,    a0,    7\n    sub.d         t0,    t0,    a1\n    add.d         t1,    a0,    t4\n    addi.d        t1,    t1,    -1\n    sub.d         t2,    t1,    t6\n\n    ld.bu         t3,    t0,    1\n    ld.bu         t4,    t0,    -1\n    ld.bu         t5,    t1,    0\n    ld.bu         t7,    t2,    0\n    sub.d         t3,    t3,    t4\n    sub.d         t4,    t5,    t7\n\n    la.local      t5,    mulk\n    vld           vr0,   t5,    0\n    fld.d         f1,    t0,    2\n    fld.d         f2,    t0,    -8\n    la.local      t5,    shufa\n    fld.d         f3,    t5,    0\n    vshuf.b       vr2,   vr2,   vr2,   vr3\n    vilvl.b       vr1,   vr1,   vr2\n    vhsubw.hu.bu  vr1,   vr1,   vr1\n    vmul.h        vr0,   vr0,   vr1\n    vhaddw.w.h    vr1,   vr0,   vr0\n    vhaddw.d.w    vr0,   vr1,   vr1\n    vhaddw.q.d    vr1,   vr0,   vr0\n    vpickve2gr.w  t5,    vr1,   0\n    add.d         t3,    t3,    t5\n//2\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ldx.bu        t7,    t1,    a1\n    sub.d         t5,    t7,    t8\n    slli.d        t5,    t5,    1\n\n//3&4\n    add.d         t1,    t1,    t6\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ld.bu         t7,    t1,    0\n    sub.d         t7,    t7,    t8\n    slli.d        t8,    t7,    1\n    add.d         t7,    t7,    t8\n    add.d         t5,    t5,    t7\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ldx.bu        t7,    t1,    a1\n    sub.d         t7,    t7,    t8\n    slli.d        t7,    t7,    2\n    add.d         t5,    t5,    t7\n\n//5&6\n    add.d         t1,    t1,    t6\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ld.bu         t7,    t1,    0\n    sub.d         t7,    t7,    t8\n    slli.d        t8,    t7,    2\n    add.d         t7,    t7,    t8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:3", "text": "ld.bu         t7,    t1,    0\n    sub.d         t7,    t7,    t8\n    slli.d        t8,    t7,    1\n    add.d         t7,    t7,    t8\n    add.d         t5,    t5,    t7\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ldx.bu        t7,    t1,    a1\n    sub.d         t7,    t7,    t8\n    slli.d        t7,    t7,    2\n    add.d         t5,    t5,    t7\n\n//5&6\n    add.d         t1,    t1,    t6\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ld.bu         t7,    t1,    0\n    sub.d         t7,    t7,    t8\n    slli.d        t8,    t7,    2\n    add.d         t7,    t7,    t8\n    add.d         t5,    t5,    t7\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ldx.bu        t7,    t1,    a1\n    sub.d         t7,    t7,    t8\n    slli.d        t8,    t7,    1\n    slli.d        t7,    t7,    2\n    add.d         t7,    t7,    t8\n    add.d         t5,    t5,    t7\n\n//7&8\n    add.d         t1,    t1,    t6\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ld.bu         t7,    t1,    0\n    sub.d         t7,    t7,    t8\n    slli.d        t8,    t7,    3\n    sub.d         t7,    t8,    t7\n    add.d         t5,    t5,    t7\n    sub.d         t2,    t2,    a1\n    ld.bu         t8,    t2,    0\n    ldx.bu        t7,    t1,    a1\n    sub.d         t7,    t7,    t8\n    slli.d        t7,    t7,    3\n    add.d         t5,    t5,    t7\n    add.d         t4,    t4,    t5\n    add.d         t1,    t1,    a1\n.endm\n\n.macro PRED16X16_PLANE_END\n    ld.bu         t7,    t1,    0\n    ld.bu         t8,    t2,    16\n    add.d         t5,    t7,    t8\n    addi.d        t5,    t5,    1\n    slli.d        t5,    t5,    4\n    add.d         t7,    t3,    t4\n    slli.d        t8,    t7,    3\n    sub.d         t7,    t8,    t7\n    sub.d         t5,    t5,    t7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:4", "text": "ld.bu         t8,    t2,    0\n    ldx.bu        t7,    t1,    a1\n    sub.d         t7,    t7,    t8\n    slli.d        t7,    t7,    3\n    add.d         t5,    t5,    t7\n    add.d         t4,    t4,    t5\n    add.d         t1,    t1,    a1\n.endm\n\n.macro PRED16X16_PLANE_END\n    ld.bu         t7,    t1,    0\n    ld.bu         t8,    t2,    16\n    add.d         t5,    t7,    t8\n    addi.d        t5,    t5,    1\n    slli.d        t5,    t5,    4\n    add.d         t7,    t3,    t4\n    slli.d        t8,    t7,    3\n    sub.d         t7,    t8,    t7\n    sub.d         t5,    t5,    t7\n\n    la.local      t8,    mulh\n    vld           vr3,   t8,    0\n    slli.d        t8,    t3,    3\n    vreplgr2vr.h  vr4,   t3\n    vreplgr2vr.h  vr9,   t8\n    vmul.h        vr5,   vr3,   vr4\n\n.rept 16\n    move          t7,    t5\n    add.d         t5,    t5,    t4\n    vreplgr2vr.h  vr6,   t7\n    vadd.h        vr7,   vr6,   vr5\n    vadd.h        vr8,   vr9,   vr7\n    vssrani.bu.h  vr8,   vr7,   5\n    vst           vr8,   a0,    0\n    add.d         a0,    a0,    a1\n.endr\n.endm\n\n.macro PRED16X16_PLANE_END_LASX\n    ld.bu         t7,    t1,    0\n    ld.bu         t8,    t2,    16\n    add.d         t5,    t7,    t8\n    addi.d        t5,    t5,    1\n    slli.d        t5,    t5,    4\n    add.d         t7,    t3,    t4\n    slli.d        t8,    t7,    3\n    sub.d         t7,    t8,    t7\n    sub.d         t5,    t5,    t7\n\n    la.local      t8,    mulh\n    xvld          xr3,   t8,    0\n    xvreplgr2vr.h xr4,   t3\n    xvmul.h       xr5,   xr3,   xr4\n\n.rept 8\n    move          t7,    t5\n    add.d         t5,    t5,    t4\n    xvreplgr2vr.h xr6,   t7\n    xvreplgr2vr.h xr8,   t5", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:5", "text": "ld.bu         t7,    t1,    0\n    ld.bu         t8,    t2,    16\n    add.d         t5,    t7,    t8\n    addi.d        t5,    t5,    1\n    slli.d        t5,    t5,    4\n    add.d         t7,    t3,    t4\n    slli.d        t8,    t7,    3\n    sub.d         t7,    t8,    t7\n    sub.d         t5,    t5,    t7\n\n    la.local      t8,    mulh\n    xvld          xr3,   t8,    0\n    xvreplgr2vr.h xr4,   t3\n    xvmul.h       xr5,   xr3,   xr4\n\n.rept 8\n    move          t7,    t5\n    add.d         t5,    t5,    t4\n    xvreplgr2vr.h xr6,   t7\n    xvreplgr2vr.h xr8,   t5\n    add.d         t5,    t5,    t4\n    xvadd.h       xr7,   xr6,   xr5\n    xvadd.h       xr9,   xr8,   xr5\n\n    xvssrani.bu.h xr9,   xr7,   5\n    vstelm.d      vr9,   a0,    0,    0\n    xvstelm.d     xr9,   a0,    8,    2\n    add.d         a0,    a0,    a1\n    vstelm.d      vr9,   a0,    0,    1\n    xvstelm.d     xr9,   a0,    8,    3\n    add.d         a0,    a0,    a1\n.endr\n.endm\n\n/* void ff_h264_pred16x16_plane_h264_8_lsx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_h264_8_lsx\n    PRED16X16_PLANE\n\n    slli.d        t7,    t3,    2\n    add.d         t3,    t3,    t7\n    addi.d        t3,    t3,    32\n    srai.d        t3,    t3,    6\n    slli.d        t7,    t4,    2\n    add.d         t4,    t4,    t7\n    addi.d        t4,    t4,    32\n    srai.d        t4,    t4,    6\n\n    PRED16X16_PLANE_END\nendfunc\n\n/* void ff_h264_pred16x16_plane_rv40_8_lsx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_rv40_8_lsx\n    PRED16X16_PLANE\n\n    srai.d        t7,    t3,    2\n    add.d         t3,    t3,    t7\n    srai.d        t3,    t3,    4\n    srai.d        t7,    t4,    2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:6", "text": "add.d         t3,    t3,    t7\n    addi.d        t3,    t3,    32\n    srai.d        t3,    t3,    6\n    slli.d        t7,    t4,    2\n    add.d         t4,    t4,    t7\n    addi.d        t4,    t4,    32\n    srai.d        t4,    t4,    6\n\n    PRED16X16_PLANE_END\nendfunc\n\n/* void ff_h264_pred16x16_plane_rv40_8_lsx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_rv40_8_lsx\n    PRED16X16_PLANE\n\n    srai.d        t7,    t3,    2\n    add.d         t3,    t3,    t7\n    srai.d        t3,    t3,    4\n    srai.d        t7,    t4,    2\n    add.d         t4,    t4,    t7\n    srai.d        t4,    t4,    4\n\n    PRED16X16_PLANE_END\nendfunc\n\n/* void ff_h264_pred16x16_plane_svq3_8_lsx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_svq3_8_lsx\n    PRED16X16_PLANE\n\n    li.d          t6,    4\n    li.d          t7,    5\n    li.d          t8,    16\n    div.d         t3,    t3,    t6\n    mul.d         t3,    t3,    t7\n    div.d         t3,    t3,    t8\n    div.d         t4,    t4,    t6\n    mul.d         t4,    t4,    t7\n    div.d         t4,    t4,    t8\n    move          t7,    t3\n    move          t3,    t4\n    move          t4,    t7\n\n    PRED16X16_PLANE_END\nendfunc\n\n/* void ff_h264_pred16x16_plane_h264_8_lasx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_h264_8_lasx\n    PRED16X16_PLANE\n\n    slli.d        t7,    t3,    2\n    add.d         t3,    t3,    t7\n    addi.d        t3,    t3,    32\n    srai.d        t3,    t3,    6\n    slli.d        t7,    t4,    2\n    add.d         t4,    t4,    t7\n    addi.d        t4,    t4,    32\n    srai.d        t4,    t4,    6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:7", "text": "move          t7,    t3\n    move          t3,    t4\n    move          t4,    t7\n\n    PRED16X16_PLANE_END\nendfunc\n\n/* void ff_h264_pred16x16_plane_h264_8_lasx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_h264_8_lasx\n    PRED16X16_PLANE\n\n    slli.d        t7,    t3,    2\n    add.d         t3,    t3,    t7\n    addi.d        t3,    t3,    32\n    srai.d        t3,    t3,    6\n    slli.d        t7,    t4,    2\n    add.d         t4,    t4,    t7\n    addi.d        t4,    t4,    32\n    srai.d        t4,    t4,    6\n\n    PRED16X16_PLANE_END_LASX\nendfunc\n\n/* void ff_h264_pred16x16_plane_rv40_8_lasx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_rv40_8_lasx\n    PRED16X16_PLANE\n\n    srai.d        t7,    t3,    2\n    add.d         t3,    t3,    t7\n    srai.d        t3,    t3,    4\n    srai.d        t7,    t4,    2\n    add.d         t4,    t4,    t7\n    srai.d        t4,    t4,    4\n\n    PRED16X16_PLANE_END_LASX\nendfunc\n\n/* void ff_h264_pred16x16_plane_svq3_8_lasx(uint8_t *src, ptrdiff_t stride)\n */\nfunction ff_h264_pred16x16_plane_svq3_8_lasx\n    PRED16X16_PLANE\n\n    li.d          t5,    4\n    li.d          t7,    5\n    li.d          t8,    16\n    div.d         t3,    t3,    t5\n    mul.d         t3,    t3,    t7\n    div.d         t3,    t3,    t8\n    div.d         t4,    t4,    t5\n    mul.d         t4,    t4,    t7\n    div.d         t4,    t4,    t8\n    move          t7,    t3\n    move          t3,    t4\n    move          t4,    t7\n\n    PRED16X16_PLANE_END_LASX\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 241, "line_end": 299}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/h264intrapred.S:8", "text": "*/\nfunction ff_h264_pred16x16_plane_svq3_8_lasx\n    PRED16X16_PLANE\n\n    li.d          t5,    4\n    li.d          t7,    5\n    li.d          t8,    16\n    div.d         t3,    t3,    t5\n    mul.d         t3,    t3,    t7\n    div.d         t3,    t3,    t8\n    div.d         t4,    t4,    t5\n    mul.d         t4,    t4,    t7\n    div.d         t4,    t4,    t8\n    move          t7,    t3\n    move          t3,    t4\n    move          t4,    t7\n\n    PRED16X16_PLANE_END_LASX\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/h264intrapred.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/h264intrapred.S", "line_start": 281, "line_end": 299}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_add_res.S:1", "text": "/*\n * Loongson LSX optimized add_residual functions for HEVC decoding\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by jinbo <jinbo@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"loongson_asm.S\"\n\n/*\n * void ff_hevc_add_residual4x4_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\n.macro ADD_RES_LSX_4x4_8\n    vldrepl.w      vr0,    a0,     0\n    add.d          t0,     a0,     a2\n    vldrepl.w      vr1,    t0,     0\n    vld            vr2,    a1,     0\n\n    vilvl.w        vr1,    vr1,    vr0\n    vsllwil.hu.bu  vr1,    vr1,    0\n    vadd.h         vr1,    vr1,    vr2\n    vssrani.bu.h   vr1,    vr1,    0\n\n    vstelm.w       vr1,    a0,     0,    0\n    vstelm.w       vr1,    t0,     0,    1\n.endm\n\nfunction ff_hevc_add_residual4x4_8_lsx\n    ADD_RES_LSX_4x4_8\n    alsl.d         a0,     a2,     a0,   1\n    addi.d         a1,     a1,     16\n    ADD_RES_LSX_4x4_8\nendfunc\n\n/*\n * void ff_hevc_add_residual8x8_8_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\n.macro ADD_RES_LSX_8x8_8\n    vldrepl.d      vr0,    a0,     0\n    add.d          t0,     a0,     a2\n    vldrepl.d      vr1,    t0,     0\n    add.d          t1,     t0,     a2\n    vldrepl.d      vr2,    t1,     0\n    add.d          t2,     t1,     a2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_add_res.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_add_res.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_add_res.S:2", "text": "vstelm.w       vr1,    t0,     0,    1\n.endm\n\nfunction ff_hevc_add_residual4x4_8_lsx\n    ADD_RES_LSX_4x4_8\n    alsl.d         a0,     a2,     a0,   1\n    addi.d         a1,     a1,     16\n    ADD_RES_LSX_4x4_8\nendfunc\n\n/*\n * void ff_hevc_add_residual8x8_8_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\n.macro ADD_RES_LSX_8x8_8\n    vldrepl.d      vr0,    a0,     0\n    add.d          t0,     a0,     a2\n    vldrepl.d      vr1,    t0,     0\n    add.d          t1,     t0,     a2\n    vldrepl.d      vr2,    t1,     0\n    add.d          t2,     t1,     a2\n    vldrepl.d      vr3,    t2,     0\n\n    vld            vr4,    a1,     0\n    addi.d         t3,     zero,   16\n    vldx           vr5,    a1,     t3\n    addi.d         t4,     a1,     32\n    vld            vr6,    t4,     0\n    vldx           vr7,    t4,     t3\n\n    vsllwil.hu.bu  vr0,    vr0,    0\n    vsllwil.hu.bu  vr1,    vr1,    0\n    vsllwil.hu.bu  vr2,    vr2,    0\n    vsllwil.hu.bu  vr3,    vr3,    0\n    vadd.h         vr0,    vr0,    vr4\n    vadd.h         vr1,    vr1,    vr5\n    vadd.h         vr2,    vr2,    vr6\n    vadd.h         vr3,    vr3,    vr7\n    vssrani.bu.h   vr1,    vr0,    0\n    vssrani.bu.h   vr3,    vr2,    0\n\n    vstelm.d       vr1,    a0,     0,     0\n    vstelm.d       vr1,    t0,     0,     1\n    vstelm.d       vr3,    t1,     0,     0\n    vstelm.d       vr3,    t2,     0,     1\n.endm\n\nfunction ff_hevc_add_residual8x8_8_lsx\n    ADD_RES_LSX_8x8_8\n    alsl.d         a0,     a2,     a0,    2\n    addi.d         a1,     a1,     64\n    ADD_RES_LSX_8x8_8\nendfunc\n\n/*\n * void ff_hevc_add_residual16x16_8_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\nfunction ff_hevc_add_residual16x16_8_lsx\n.rept 8\n    vld            vr0,    a0,     0\n    vldx           vr2,    a0,     a2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_add_res.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_add_res.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_add_res.S:3", "text": "vstelm.d       vr1,    a0,     0,     0\n    vstelm.d       vr1,    t0,     0,     1\n    vstelm.d       vr3,    t1,     0,     0\n    vstelm.d       vr3,    t2,     0,     1\n.endm\n\nfunction ff_hevc_add_residual8x8_8_lsx\n    ADD_RES_LSX_8x8_8\n    alsl.d         a0,     a2,     a0,    2\n    addi.d         a1,     a1,     64\n    ADD_RES_LSX_8x8_8\nendfunc\n\n/*\n * void ff_hevc_add_residual16x16_8_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\nfunction ff_hevc_add_residual16x16_8_lsx\n.rept 8\n    vld            vr0,    a0,     0\n    vldx           vr2,    a0,     a2\n\n    vld            vr4,    a1,     0\n    addi.d         t0,     zero,   16\n    vldx           vr5,    a1,     t0\n    addi.d         t1,     a1,     32\n    vld            vr6,    t1,     0\n    vldx           vr7,    t1,     t0\n\n    vexth.hu.bu    vr1,    vr0\n    vsllwil.hu.bu  vr0,    vr0,    0\n    vexth.hu.bu    vr3,    vr2\n    vsllwil.hu.bu  vr2,    vr2,    0\n    vadd.h         vr0,    vr0,    vr4\n    vadd.h         vr1,    vr1,    vr5\n    vadd.h         vr2,    vr2,    vr6\n    vadd.h         vr3,    vr3,    vr7\n\n    vssrani.bu.h   vr1,    vr0,    0\n    vssrani.bu.h   vr3,    vr2,    0\n\n    vst            vr1,    a0,     0\n    vstx           vr3,    a0,     a2\n\n    alsl.d         a0,     a2,     a0,   1\n    addi.d         a1,     a1,     64\n.endr\nendfunc\n\n/*\n * void ff_hevc_add_residual32x32_8_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\nfunction ff_hevc_add_residual32x32_8_lsx\n.rept 32\n    vld            vr0,    a0,     0\n    addi.w         t0,     zero,   16\n    vldx           vr2,    a0,     t0\n\n    vld            vr4,    a1,     0\n    vldx           vr5,    a1,     t0\n    addi.d         t1,     a1,     32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_add_res.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_add_res.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_add_res.S:4", "text": "vst            vr1,    a0,     0\n    vstx           vr3,    a0,     a2\n\n    alsl.d         a0,     a2,     a0,   1\n    addi.d         a1,     a1,     64\n.endr\nendfunc\n\n/*\n * void ff_hevc_add_residual32x32_8_lsx(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\n */\nfunction ff_hevc_add_residual32x32_8_lsx\n.rept 32\n    vld            vr0,    a0,     0\n    addi.w         t0,     zero,   16\n    vldx           vr2,    a0,     t0\n\n    vld            vr4,    a1,     0\n    vldx           vr5,    a1,     t0\n    addi.d         t1,     a1,     32\n    vld            vr6,    t1,     0\n    vldx           vr7,    t1,     t0\n\n    vexth.hu.bu    vr1,    vr0\n    vsllwil.hu.bu  vr0,    vr0,    0\n    vexth.hu.bu    vr3,    vr2\n    vsllwil.hu.bu  vr2,    vr2,    0\n    vadd.h         vr0,    vr0,    vr4\n    vadd.h         vr1,    vr1,    vr5\n    vadd.h         vr2,    vr2,    vr6\n    vadd.h         vr3,    vr3,    vr7\n\n    vssrani.bu.h   vr1,    vr0,    0\n    vssrani.bu.h   vr3,    vr2,    0\n\n    vst            vr1,    a0,     0\n    vstx           vr3,    a0,     t0\n\n    add.d          a0,     a0,     a2\n    addi.d         a1,     a1,     64\n.endr\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_add_res.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_add_res.S", "line_start": 121, "line_end": 162}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:1", "text": "/*\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Hecai Yuan <yuanhecai@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"loongson_asm.S\"\n\n.macro fr_store\n    addi.d        sp,       sp,       -64\n    fst.d         f24,      sp,       0\n    fst.d         f25,      sp,       8\n    fst.d         f26,      sp,       16\n    fst.d         f27,      sp,       24\n    fst.d         f28,      sp,       32\n    fst.d         f29,      sp,       40\n    fst.d         f30,      sp,       48\n    fst.d         f31,      sp,       56\n.endm\n\n.macro fr_recover\n    fld.d         f24,      sp,       0\n    fld.d         f25,      sp,       8\n    fld.d         f26,      sp,       16\n    fld.d         f27,      sp,       24\n    fld.d         f28,      sp,       32\n    fld.d         f29,      sp,       40\n    fld.d         f30,      sp,       48\n    fld.d         f31,      sp,       56\n    addi.d        sp,       sp,       64\n.endm\n\n.extern gt32x32_cnst1\n\n.extern gt32x32_cnst2\n\n.extern gt8x8_cnst\n\n.extern gt32x32_cnst0\n\n.macro idct_16x32_step1_lasx\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n    xvldrepl.w    xr22,     t1,       8\n    xvldrepl.w    xr23,     t1,       12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:2", "text": "fld.d         f28,      sp,       32\n    fld.d         f29,      sp,       40\n    fld.d         f30,      sp,       48\n    fld.d         f31,      sp,       56\n    addi.d        sp,       sp,       64\n.endm\n\n.extern gt32x32_cnst1\n\n.extern gt32x32_cnst2\n\n.extern gt8x8_cnst\n\n.extern gt32x32_cnst0\n\n.macro idct_16x32_step1_lasx\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n    xvldrepl.w    xr22,     t1,       8\n    xvldrepl.w    xr23,     t1,       12\n\n    xvmulwev.w.h  xr16,     xr8,      xr20\n    xvmaddwod.w.h xr16,     xr8,      xr20\n    xvmulwev.w.h  xr17,     xr9,      xr20\n    xvmaddwod.w.h xr17,     xr9,      xr20\n\n    xvmaddwev.w.h xr16,     xr10,     xr21\n    xvmaddwod.w.h xr16,     xr10,     xr21\n    xvmaddwev.w.h xr17,     xr11,     xr21\n    xvmaddwod.w.h xr17,     xr11,     xr21\n\n    xvmaddwev.w.h xr16,     xr12,     xr22\n    xvmaddwod.w.h xr16,     xr12,     xr22\n    xvmaddwev.w.h xr17,     xr13,     xr22\n    xvmaddwod.w.h xr17,     xr13,     xr22\n\n    xvmaddwev.w.h xr16,     xr14,     xr23\n    xvmaddwod.w.h xr16,     xr14,     xr23\n    xvmaddwev.w.h xr17,     xr15,     xr23\n    xvmaddwod.w.h xr17,     xr15,     xr23\n\n    xvld          xr0,      t2,       0\n    xvld          xr1,      t2,       32\n\n    xvadd.w       xr18,     xr0,      xr16\n    xvadd.w       xr19,     xr1,      xr17\n    xvsub.w       xr0,      xr0,      xr16\n    xvsub.w       xr1,      xr1,      xr17\n\n    xvst          xr18,     t2,       0\n    xvst          xr19,     t2,       32\n    xvst          xr0,      t3,       0\n    xvst          xr1,      t3,       32\n.endm\n\n.macro idct_16x32_step2_lasx in0, in1, in2, in3, in4, in5, in6, in7, out0, out1\n\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n    xvldrepl.w    xr22,     t1,       8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:3", "text": "xvld          xr0,      t2,       0\n    xvld          xr1,      t2,       32\n\n    xvadd.w       xr18,     xr0,      xr16\n    xvadd.w       xr19,     xr1,      xr17\n    xvsub.w       xr0,      xr0,      xr16\n    xvsub.w       xr1,      xr1,      xr17\n\n    xvst          xr18,     t2,       0\n    xvst          xr19,     t2,       32\n    xvst          xr0,      t3,       0\n    xvst          xr1,      t3,       32\n.endm\n\n.macro idct_16x32_step2_lasx in0, in1, in2, in3, in4, in5, in6, in7, out0, out1\n\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n    xvldrepl.w    xr22,     t1,       8\n    xvldrepl.w    xr23,     t1,       12\n\n    xvmulwev.w.h  \\out0,    \\in0,     xr20\n    xvmaddwod.w.h \\out0,    \\in0,     xr20\n    xvmulwev.w.h  \\out1,    \\in1,     xr20\n    xvmaddwod.w.h \\out1,    \\in1,     xr20\n    xvmaddwev.w.h \\out0,    \\in2,     xr21\n    xvmaddwod.w.h \\out0,    \\in2,     xr21\n    xvmaddwev.w.h \\out1,    \\in3,     xr21\n    xvmaddwod.w.h \\out1,    \\in3,     xr21\n    xvmaddwev.w.h \\out0,    \\in4,     xr22\n    xvmaddwod.w.h \\out0,    \\in4,     xr22\n    xvmaddwev.w.h \\out1,    \\in5,     xr22\n    xvmaddwod.w.h \\out1,    \\in5,     xr22\n    xvmaddwev.w.h \\out0,    \\in6,     xr23\n    xvmaddwod.w.h \\out0,    \\in6,     xr23\n    xvmaddwev.w.h \\out1,    \\in7,     xr23  // sum0_r\n    xvmaddwod.w.h \\out1,    \\in7,     xr23  // sum0_l\n.endm\n\n    /* loop for all columns of filter constants */\n.macro idct_16x32_step3_lasx round\n    xvadd.w       xr16,     xr16,     xr30\n    xvadd.w       xr17,     xr17,     xr31\n\n    xvld          xr0,      t2,       0\n    xvld          xr1,      t2,       32\n\n    xvadd.w       xr30,     xr0,      xr16\n    xvadd.w       xr31,     xr1,      xr17\n    xvsub.w       xr16,     xr0,      xr16\n    xvsub.w       xr17,     xr1,      xr17\n    xvssrarni.h.w xr31,     xr30,     \\round\n    xvssrarni.h.w xr17,     xr16,     \\round\n    xvst          xr31,     t4,       0\n    xvst          xr17,     t5,       0\n.endm\n\n.macro idct_16x32_lasx buf_pitch, round\n    addi.d        t2,       sp,       64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:4", "text": "/* loop for all columns of filter constants */\n.macro idct_16x32_step3_lasx round\n    xvadd.w       xr16,     xr16,     xr30\n    xvadd.w       xr17,     xr17,     xr31\n\n    xvld          xr0,      t2,       0\n    xvld          xr1,      t2,       32\n\n    xvadd.w       xr30,     xr0,      xr16\n    xvadd.w       xr31,     xr1,      xr17\n    xvsub.w       xr16,     xr0,      xr16\n    xvsub.w       xr17,     xr1,      xr17\n    xvssrarni.h.w xr31,     xr30,     \\round\n    xvssrarni.h.w xr17,     xr16,     \\round\n    xvst          xr31,     t4,       0\n    xvst          xr17,     t5,       0\n.endm\n\n.macro idct_16x32_lasx buf_pitch, round\n    addi.d        t2,       sp,       64\n\n    addi.d        t0,       a0,       \\buf_pitch*4*2\n\n    // 4 12 20 28\n    xvld          xr0,      t0,       0\n    xvld          xr1,      t0,       \\buf_pitch*8*2\n    xvld          xr2,      t0,       \\buf_pitch*16*2\n    xvld          xr3,      t0,       \\buf_pitch*24*2\n\n    xvilvl.h      xr10,     xr1,      xr0\n    xvilvh.h      xr11,     xr1,      xr0\n    xvilvl.h      xr12,     xr3,      xr2\n    xvilvh.h      xr13,     xr3,      xr2\n\n    la.local      t1,       gt32x32_cnst2\n\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n    xvmulwev.w.h  xr14,     xr10,     xr20\n    xvmaddwod.w.h xr14,     xr10,     xr20\n    xvmulwev.w.h  xr15,     xr11,     xr20\n    xvmaddwod.w.h xr15,     xr11,     xr20\n    xvmaddwev.w.h xr14,     xr12,     xr21\n    xvmaddwod.w.h xr14,     xr12,     xr21\n    xvmaddwev.w.h xr15,     xr13,     xr21\n    xvmaddwod.w.h xr15,     xr13,     xr21\n\n    xvldrepl.w    xr20,     t1,       8\n    xvldrepl.w    xr21,     t1,       12\n    xvmulwev.w.h  xr16,     xr10,     xr20\n    xvmaddwod.w.h xr16,     xr10,     xr20\n    xvmulwev.w.h  xr17,     xr11,     xr20\n    xvmaddwod.w.h xr17,     xr11,     xr20\n    xvmaddwev.w.h xr16,     xr12,     xr21\n    xvmaddwod.w.h xr16,     xr12,     xr21\n    xvmaddwev.w.h xr17,     xr13,     xr21\n    xvmaddwod.w.h xr17,     xr13,     xr21\n\n    xvldrepl.w    xr20,     t1,       16\n    xvldrepl.w    xr21,     t1,       20", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:5", "text": "xvmulwev.w.h  xr15,     xr11,     xr20\n    xvmaddwod.w.h xr15,     xr11,     xr20\n    xvmaddwev.w.h xr14,     xr12,     xr21\n    xvmaddwod.w.h xr14,     xr12,     xr21\n    xvmaddwev.w.h xr15,     xr13,     xr21\n    xvmaddwod.w.h xr15,     xr13,     xr21\n\n    xvldrepl.w    xr20,     t1,       8\n    xvldrepl.w    xr21,     t1,       12\n    xvmulwev.w.h  xr16,     xr10,     xr20\n    xvmaddwod.w.h xr16,     xr10,     xr20\n    xvmulwev.w.h  xr17,     xr11,     xr20\n    xvmaddwod.w.h xr17,     xr11,     xr20\n    xvmaddwev.w.h xr16,     xr12,     xr21\n    xvmaddwod.w.h xr16,     xr12,     xr21\n    xvmaddwev.w.h xr17,     xr13,     xr21\n    xvmaddwod.w.h xr17,     xr13,     xr21\n\n    xvldrepl.w    xr20,     t1,       16\n    xvldrepl.w    xr21,     t1,       20\n    xvmulwev.w.h  xr18,     xr10,     xr20\n    xvmaddwod.w.h xr18,     xr10,     xr20\n    xvmulwev.w.h  xr19,     xr11,     xr20\n    xvmaddwod.w.h xr19,     xr11,     xr20\n    xvmaddwev.w.h xr18,     xr12,     xr21\n    xvmaddwod.w.h xr18,     xr12,     xr21\n    xvmaddwev.w.h xr19,     xr13,     xr21\n    xvmaddwod.w.h xr19,     xr13,     xr21\n\n    xvldrepl.w    xr20,     t1,       24\n    xvldrepl.w    xr21,     t1,       28\n    xvmulwev.w.h  xr22,     xr10,     xr20\n    xvmaddwod.w.h xr22,     xr10,     xr20\n    xvmulwev.w.h  xr23,     xr11,     xr20\n    xvmaddwod.w.h xr23,     xr11,     xr20\n    xvmaddwev.w.h xr22,     xr12,     xr21\n    xvmaddwod.w.h xr22,     xr12,     xr21\n    xvmaddwev.w.h xr23,     xr13,     xr21\n    xvmaddwod.w.h xr23,     xr13,     xr21\n\n    /* process coeff 0, 8, 16, 24 */\n    la.local      t1,       gt8x8_cnst\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       \\buf_pitch*8*2\n    xvld          xr2,      a0,       \\buf_pitch*16*2\n    xvld          xr3,      a0,       \\buf_pitch*24*2\n\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n\n    xvilvl.h      xr10,     xr2,      xr0\n    xvilvh.h      xr11,     xr2,      xr0\n    xvilvl.h      xr12,     xr3,      xr1\n    xvilvh.h      xr13,     xr3,      xr1\n\n    xvmulwev.w.h  xr4,      xr10,     xr20\n    xvmaddwod.w.h xr4,      xr10,     xr20  // sum0_r\n    xvmulwev.w.h  xr5,      xr11,     xr20\n    xvmaddwod.w.h xr5,      xr11,     xr20  // sum0_l", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:6", "text": "/* process coeff 0, 8, 16, 24 */\n    la.local      t1,       gt8x8_cnst\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       \\buf_pitch*8*2\n    xvld          xr2,      a0,       \\buf_pitch*16*2\n    xvld          xr3,      a0,       \\buf_pitch*24*2\n\n    xvldrepl.w    xr20,     t1,       0\n    xvldrepl.w    xr21,     t1,       4\n\n    xvilvl.h      xr10,     xr2,      xr0\n    xvilvh.h      xr11,     xr2,      xr0\n    xvilvl.h      xr12,     xr3,      xr1\n    xvilvh.h      xr13,     xr3,      xr1\n\n    xvmulwev.w.h  xr4,      xr10,     xr20\n    xvmaddwod.w.h xr4,      xr10,     xr20  // sum0_r\n    xvmulwev.w.h  xr5,      xr11,     xr20\n    xvmaddwod.w.h xr5,      xr11,     xr20  // sum0_l\n    xvmulwev.w.h  xr6,      xr12,     xr21\n    xvmaddwod.w.h xr6,      xr12,     xr21  // tmp1_r\n    xvmulwev.w.h  xr7,      xr13,     xr21\n    xvmaddwod.w.h xr7,      xr13,     xr21  // tmp1_l\n\n    xvsub.w       xr0,      xr4,      xr6   // sum1_r\n    xvadd.w       xr1,      xr4,      xr6   // sum0_r\n    xvsub.w       xr2,      xr5,      xr7   // sum1_l\n    xvadd.w       xr3,      xr5,      xr7   // sum0_l\n\n    // HEVC_EVEN16_CALC\n    xvsub.w       xr24,     xr1,      xr14  // 7\n    xvsub.w       xr25,     xr3,      xr15\n    xvadd.w       xr14,     xr1,      xr14  // 0\n    xvadd.w       xr15,     xr3,      xr15\n    xvst          xr24,     t2,       7*16*4     // 448=16*28=7*16*4\n    xvst          xr25,     t2,       7*16*4+32  // 480\n    xvst          xr14,     t2,       0\n    xvst          xr15,     t2,       32\n\n    xvsub.w       xr26,     xr0,      xr22  // 4\n    xvsub.w       xr27,     xr2,      xr23\n    xvadd.w       xr22,     xr0,      xr22  // 3\n    xvadd.w       xr23,     xr2,      xr23\n    xvst          xr26,     t2,       4*16*4     // 256=4*16*4\n    xvst          xr27,     t2,       4*16*4+32  // 288\n    xvst          xr22,     t2,       3*16*4     // 192=3*16*4\n    xvst          xr23,     t2,       3*16*4+32  // 224\n\n    xvldrepl.w    xr20,     t1,       16\n    xvldrepl.w    xr21,     t1,       20\n\n    xvmulwev.w.h  xr4,      xr10,     xr20\n    xvmaddwod.w.h xr4,      xr10,     xr20\n    xvmulwev.w.h  xr5,      xr11,     xr20\n    xvmaddwod.w.h xr5,      xr11,     xr20\n    xvmulwev.w.h  xr6,      xr12,     xr21\n    xvmaddwod.w.h xr6,      xr12,     xr21\n    xvmulwev.w.h  xr7,      xr13,     xr21\n    xvmaddwod.w.h xr7,      xr13,     xr21", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:7", "text": "xvsub.w       xr26,     xr0,      xr22  // 4\n    xvsub.w       xr27,     xr2,      xr23\n    xvadd.w       xr22,     xr0,      xr22  // 3\n    xvadd.w       xr23,     xr2,      xr23\n    xvst          xr26,     t2,       4*16*4     // 256=4*16*4\n    xvst          xr27,     t2,       4*16*4+32  // 288\n    xvst          xr22,     t2,       3*16*4     // 192=3*16*4\n    xvst          xr23,     t2,       3*16*4+32  // 224\n\n    xvldrepl.w    xr20,     t1,       16\n    xvldrepl.w    xr21,     t1,       20\n\n    xvmulwev.w.h  xr4,      xr10,     xr20\n    xvmaddwod.w.h xr4,      xr10,     xr20\n    xvmulwev.w.h  xr5,      xr11,     xr20\n    xvmaddwod.w.h xr5,      xr11,     xr20\n    xvmulwev.w.h  xr6,      xr12,     xr21\n    xvmaddwod.w.h xr6,      xr12,     xr21\n    xvmulwev.w.h  xr7,      xr13,     xr21\n    xvmaddwod.w.h xr7,      xr13,     xr21\n\n    xvsub.w       xr0,      xr4,      xr6   // sum1_r\n    xvadd.w       xr1,      xr4,      xr6   // sum0_r\n    xvsub.w       xr2,      xr5,      xr7   // sum1_l\n    xvadd.w       xr3,      xr5,      xr7   // sum0_l\n\n    // HEVC_EVEN16_CALC\n    xvsub.w       xr24,     xr1,      xr16  // 6\n    xvsub.w       xr25,     xr3,      xr17\n    xvadd.w       xr16,     xr1,      xr16  // 1\n    xvadd.w       xr17,     xr3,      xr17\n    xvst          xr24,     t2,       6*16*4      // 384=6*16*4\n    xvst          xr25,     t2,       6*16*4+32   // 416\n    xvst          xr16,     t2,       1*16*4      // 64=1*16*4\n    xvst          xr17,     t2,       1*16*4+32   // 96\n\n    xvsub.w       xr26,     xr0,      xr18  // 5\n    xvsub.w       xr27,     xr2,      xr19\n    xvadd.w       xr18,     xr0,      xr18  // 2\n    xvadd.w       xr19,     xr2,      xr19\n    xvst          xr26,     t2,       5*16*4      // 320=5*16*4\n    xvst          xr27,     t2,       5*16*4+32   // 352\n    xvst          xr18,     t2,       2*16*4      // 128=2*16*4\n    xvst          xr19,     t2,       2*16*4+32   // 160\n\n    /* process coeff 2 6 10 14 18 22 26 30 */\n    addi.d        t0,       a0,       \\buf_pitch*2*2\n\n    xvld          xr0,      t0,       0\n    xvld          xr1,      t0,       \\buf_pitch*4*2\n    xvld          xr2,      t0,       \\buf_pitch*8*2\n    xvld          xr3,      t0,       \\buf_pitch*12*2\n\n    xvld          xr4,      t0,       \\buf_pitch*16*2\n    xvld          xr5,      t0,       \\buf_pitch*20*2\n    xvld          xr6,      t0,       \\buf_pitch*24*2\n    xvld          xr7,      t0,       \\buf_pitch*28*2\n\n    xvilvl.h      xr8,      xr1,      xr0\n    xvilvh.h      xr9,      xr1,      xr0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:8", "text": "xvst          xr26,     t2,       5*16*4      // 320=5*16*4\n    xvst          xr27,     t2,       5*16*4+32   // 352\n    xvst          xr18,     t2,       2*16*4      // 128=2*16*4\n    xvst          xr19,     t2,       2*16*4+32   // 160\n\n    /* process coeff 2 6 10 14 18 22 26 30 */\n    addi.d        t0,       a0,       \\buf_pitch*2*2\n\n    xvld          xr0,      t0,       0\n    xvld          xr1,      t0,       \\buf_pitch*4*2\n    xvld          xr2,      t0,       \\buf_pitch*8*2\n    xvld          xr3,      t0,       \\buf_pitch*12*2\n\n    xvld          xr4,      t0,       \\buf_pitch*16*2\n    xvld          xr5,      t0,       \\buf_pitch*20*2\n    xvld          xr6,      t0,       \\buf_pitch*24*2\n    xvld          xr7,      t0,       \\buf_pitch*28*2\n\n    xvilvl.h      xr8,      xr1,      xr0\n    xvilvh.h      xr9,      xr1,      xr0\n    xvilvl.h      xr10,     xr3,      xr2\n    xvilvh.h      xr11,     xr3,      xr2\n    xvilvl.h      xr12,     xr5,      xr4\n    xvilvh.h      xr13,     xr5,      xr4\n    xvilvl.h      xr14,     xr7,      xr6\n    xvilvh.h      xr15,     xr7,      xr6\n\n    la.local      t1,       gt32x32_cnst1\n\n    addi.d        t2,       sp,       64\n    addi.d        t3,       sp,       64+960   // 30*32\n\n    idct_16x32_step1_lasx\n\n.rept 7\n    addi.d        t1,       t1,       16\n    addi.d        t2,       t2,       64\n    addi.d        t3,       t3,       -64\n    idct_16x32_step1_lasx\n.endr\n\n    addi.d        t0,       a0,       \\buf_pitch*2\n\n    xvld          xr0,      t0,       0\n    xvld          xr1,      t0,       \\buf_pitch*2*2\n    xvld          xr2,      t0,       \\buf_pitch*4*2\n    xvld          xr3,      t0,       \\buf_pitch*6*2\n    xvld          xr4,      t0,       \\buf_pitch*8*2\n    xvld          xr5,      t0,       \\buf_pitch*10*2\n    xvld          xr6,      t0,       \\buf_pitch*12*2\n    xvld          xr7,      t0,       \\buf_pitch*14*2\n\n    xvilvl.h      xr8,      xr1,      xr0\n    xvilvh.h      xr9,      xr1,      xr0\n    xvilvl.h      xr10,     xr3,      xr2\n    xvilvh.h      xr11,     xr3,      xr2\n    xvilvl.h      xr12,     xr5,      xr4\n    xvilvh.h      xr13,     xr5,      xr4\n    xvilvl.h      xr14,     xr7,      xr6\n    xvilvh.h      xr15,     xr7,      xr6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:9", "text": "addi.d        t0,       a0,       \\buf_pitch*2\n\n    xvld          xr0,      t0,       0\n    xvld          xr1,      t0,       \\buf_pitch*2*2\n    xvld          xr2,      t0,       \\buf_pitch*4*2\n    xvld          xr3,      t0,       \\buf_pitch*6*2\n    xvld          xr4,      t0,       \\buf_pitch*8*2\n    xvld          xr5,      t0,       \\buf_pitch*10*2\n    xvld          xr6,      t0,       \\buf_pitch*12*2\n    xvld          xr7,      t0,       \\buf_pitch*14*2\n\n    xvilvl.h      xr8,      xr1,      xr0\n    xvilvh.h      xr9,      xr1,      xr0\n    xvilvl.h      xr10,     xr3,      xr2\n    xvilvh.h      xr11,     xr3,      xr2\n    xvilvl.h      xr12,     xr5,      xr4\n    xvilvh.h      xr13,     xr5,      xr4\n    xvilvl.h      xr14,     xr7,      xr6\n    xvilvh.h      xr15,     xr7,      xr6\n\n    la.local      t1,       gt32x32_cnst0\n\n    idct_16x32_step2_lasx xr8, xr9, xr10, xr11, xr12, xr13, \\\n                          xr14, xr15, xr16, xr17\n\n    addi.d        t0,       a0,       \\buf_pitch*16*2+\\buf_pitch*2\n\n    xvld          xr0,      t0,       0\n    xvld          xr1,      t0,       \\buf_pitch*2*2\n    xvld          xr2,      t0,       \\buf_pitch*4*2\n    xvld          xr3,      t0,       \\buf_pitch*6*2\n    xvld          xr4,      t0,       \\buf_pitch*8*2\n    xvld          xr5,      t0,       \\buf_pitch*10*2\n    xvld          xr6,      t0,       \\buf_pitch*12*2\n    xvld          xr7,      t0,       \\buf_pitch*14*2\n\n    xvilvl.h      xr18,     xr1,      xr0\n    xvilvh.h      xr19,     xr1,      xr0\n    xvilvl.h      xr24,     xr3,      xr2\n    xvilvh.h      xr25,     xr3,      xr2\n    xvilvl.h      xr26,     xr5,      xr4\n    xvilvh.h      xr27,     xr5,      xr4\n    xvilvl.h      xr28,     xr7,      xr6\n    xvilvh.h      xr29,     xr7,      xr6\n\n    addi.d        t1,       t1,       16\n    idct_16x32_step2_lasx xr18, xr19, xr24, xr25, xr26, xr27, \\\n                          xr28, xr29, xr30, xr31\n\n    addi.d        t4,       a0,       0\n    addi.d        t5,       a0,       \\buf_pitch*31*2\n    addi.d        t2,       sp,       64\n\n    idct_16x32_step3_lasx \\round\n\n.rept 15\n\n    addi.d        t1,       t1,       16\n    idct_16x32_step2_lasx xr8, xr9, xr10, xr11, xr12, xr13, \\", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:10", "text": "xvilvh.h      xr25,     xr3,      xr2\n    xvilvl.h      xr26,     xr5,      xr4\n    xvilvh.h      xr27,     xr5,      xr4\n    xvilvl.h      xr28,     xr7,      xr6\n    xvilvh.h      xr29,     xr7,      xr6\n\n    addi.d        t1,       t1,       16\n    idct_16x32_step2_lasx xr18, xr19, xr24, xr25, xr26, xr27, \\\n                          xr28, xr29, xr30, xr31\n\n    addi.d        t4,       a0,       0\n    addi.d        t5,       a0,       \\buf_pitch*31*2\n    addi.d        t2,       sp,       64\n\n    idct_16x32_step3_lasx \\round\n\n.rept 15\n\n    addi.d        t1,       t1,       16\n    idct_16x32_step2_lasx xr8, xr9, xr10, xr11, xr12, xr13, \\\n                          xr14, xr15, xr16, xr17\n\n    addi.d        t1,       t1,       16\n    idct_16x32_step2_lasx xr18, xr19, xr24, xr25, xr26, xr27, \\\n                          xr28, xr29, xr30, xr31\n\n    addi.d        t2,       t2,       64\n    addi.d        t4,       t4,       \\buf_pitch*2\n    addi.d        t5,       t5,       -\\buf_pitch*2\n\n    idct_16x32_step3_lasx \\round\n.endr\n\n.endm\n\nfunction hevc_idct_16x32_column_step1_lasx\n    addi.d        sp,       sp,      -1600        // 64+512*3\n    fr_store\n\n    idct_16x32_lasx 32, 7\n\n    fr_recover\n    addi.d        sp,       sp,      1600\nendfunc\n\nfunction hevc_idct_16x32_column_step2_lasx\n    addi.d        sp,       sp,      -1600        // 64+512*3\n    fr_store\n\n    idct_16x32_lasx 16, 12\n\n    fr_recover\n    addi.d        sp,       sp,      1600\nendfunc\n\nfunction hevc_idct_transpose_32x16_to_16x32_lasx\n    fr_store\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:11", "text": "fr_recover\n    addi.d        sp,       sp,      1600\nendfunc\n\nfunction hevc_idct_16x32_column_step2_lasx\n    addi.d        sp,       sp,      -1600        // 64+512*3\n    fr_store\n\n    idct_16x32_lasx 16, 12\n\n    fr_recover\n    addi.d        sp,       sp,      1600\nendfunc\n\nfunction hevc_idct_transpose_32x16_to_16x32_lasx\n    fr_store\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       64\n    xvld          xr2,      a0,       128\n    xvld          xr3,      a0,       192\n    xvld          xr4,      a0,       256\n    xvld          xr5,      a0,       320\n    xvld          xr6,      a0,       384\n    xvld          xr7,      a0,       448\n\n    xvpermi.q     xr8,      xr0,      0x01\n    xvpermi.q     xr9,      xr1,      0x01\n    xvpermi.q     xr10,     xr2,      0x01\n    xvpermi.q     xr11,     xr3,      0x01\n    xvpermi.q     xr12,     xr4,      0x01\n    xvpermi.q     xr13,     xr5,      0x01\n    xvpermi.q     xr14,     xr6,      0x01\n    xvpermi.q     xr15,     xr7,      0x01\n\n    LSX_TRANSPOSE8x8_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    addi.d        a0,       a0,       512\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128\n    vld           vr27,     a0,       192\n    vld           vr28,     a0,       256\n    vld           vr29,     a0,       320\n    vld           vr30,     a0,       384\n    vld           vr31,     a0,       448\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr0,      xr24,     0x02", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:12", "text": "LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    addi.d        a0,       a0,       512\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128\n    vld           vr27,     a0,       192\n    vld           vr28,     a0,       256\n    vld           vr29,     a0,       320\n    vld           vr30,     a0,       384\n    vld           vr31,     a0,       448\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr0,      xr24,     0x02\n    xvpermi.q     xr1,      xr25,     0x02\n    xvpermi.q     xr2,      xr26,     0x02\n    xvpermi.q     xr3,      xr27,     0x02\n    xvpermi.q     xr4,      xr28,     0x02\n    xvpermi.q     xr5,      xr29,     0x02\n    xvpermi.q     xr6,      xr30,     0x02\n    xvpermi.q     xr7,      xr31,     0x02\n\n    xvst          xr0,      a1,       0\n    xvst          xr1,      a1,       32\n    xvst          xr2,      a1,       64\n    xvst          xr3,      a1,       96\n    xvst          xr4,      a1,       128\n    xvst          xr5,      a1,       160\n    xvst          xr6,      a1,       192\n    xvst          xr7,      a1,       224\n\n    addi.d        a1,       a1,       256\n    addi.d        a0,       a0,       16\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128\n    vld           vr27,     a0,       192\n    vld           vr28,     a0,       256\n    vld           vr29,     a0,       320\n    vld           vr30,     a0,       384\n    vld           vr31,     a0,       448\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr8,      xr24,     0x02\n    xvpermi.q     xr9,      xr25,     0x02\n    xvpermi.q     xr10,     xr26,     0x02\n    xvpermi.q     xr11,     xr27,     0x02\n    xvpermi.q     xr12,     xr28,     0x02\n    xvpermi.q     xr13,     xr29,     0x02\n    xvpermi.q     xr14,     xr30,     0x02", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:13", "text": "vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128\n    vld           vr27,     a0,       192\n    vld           vr28,     a0,       256\n    vld           vr29,     a0,       320\n    vld           vr30,     a0,       384\n    vld           vr31,     a0,       448\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr8,      xr24,     0x02\n    xvpermi.q     xr9,      xr25,     0x02\n    xvpermi.q     xr10,     xr26,     0x02\n    xvpermi.q     xr11,     xr27,     0x02\n    xvpermi.q     xr12,     xr28,     0x02\n    xvpermi.q     xr13,     xr29,     0x02\n    xvpermi.q     xr14,     xr30,     0x02\n    xvpermi.q     xr15,     xr31,     0x02\n\n    xvst          xr8,      a1,       0\n    xvst          xr9,      a1,       32\n    xvst          xr10,     a1,       64\n    xvst          xr11,     a1,       96\n    xvst          xr12,     a1,       128\n    xvst          xr13,     a1,       160\n    xvst          xr14,     a1,       192\n    xvst          xr15,     a1,       224\n\n    // second\n    addi.d        a0,       a0,       32-512-16\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       64\n    xvld          xr2,      a0,       128\n    xvld          xr3,      a0,       192\n    xvld          xr4,      a0,       256\n    xvld          xr5,      a0,       320\n    xvld          xr6,      a0,       384\n    xvld          xr7,      a0,       448\n\n    xvpermi.q     xr8,      xr0,      0x01\n    xvpermi.q     xr9,      xr1,      0x01\n    xvpermi.q     xr10,     xr2,      0x01\n    xvpermi.q     xr11,     xr3,      0x01\n    xvpermi.q     xr12,     xr4,      0x01\n    xvpermi.q     xr13,     xr5,      0x01\n    xvpermi.q     xr14,     xr6,      0x01\n    xvpermi.q     xr15,     xr7,      0x01\n\n    LSX_TRANSPOSE8x8_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:14", "text": "xvld          xr6,      a0,       384\n    xvld          xr7,      a0,       448\n\n    xvpermi.q     xr8,      xr0,      0x01\n    xvpermi.q     xr9,      xr1,      0x01\n    xvpermi.q     xr10,     xr2,      0x01\n    xvpermi.q     xr11,     xr3,      0x01\n    xvpermi.q     xr12,     xr4,      0x01\n    xvpermi.q     xr13,     xr5,      0x01\n    xvpermi.q     xr14,     xr6,      0x01\n    xvpermi.q     xr15,     xr7,      0x01\n\n    LSX_TRANSPOSE8x8_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    addi.d        a0,       a0,       512\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128\n    vld           vr27,     a0,       192\n    vld           vr28,     a0,       256\n    vld           vr29,     a0,       320\n    vld           vr30,     a0,       384\n    vld           vr31,     a0,       448\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr0,      xr24,     0x02\n    xvpermi.q     xr1,      xr25,     0x02\n    xvpermi.q     xr2,      xr26,     0x02\n    xvpermi.q     xr3,      xr27,     0x02\n    xvpermi.q     xr4,      xr28,     0x02\n    xvpermi.q     xr5,      xr29,     0x02\n    xvpermi.q     xr6,      xr30,     0x02\n    xvpermi.q     xr7,      xr31,     0x02\n\n    addi.d        a1,       a1,       256\n    xvst          xr0,      a1,       0\n    xvst          xr1,      a1,       32\n    xvst          xr2,      a1,       64\n    xvst          xr3,      a1,       96\n    xvst          xr4,      a1,       128\n    xvst          xr5,      a1,       160\n    xvst          xr6,      a1,       192\n    xvst          xr7,      a1,       224\n\n    addi.d        a1,       a1,       256\n    addi.d        a0,       a0,       16\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:15", "text": "xvpermi.q     xr5,      xr29,     0x02\n    xvpermi.q     xr6,      xr30,     0x02\n    xvpermi.q     xr7,      xr31,     0x02\n\n    addi.d        a1,       a1,       256\n    xvst          xr0,      a1,       0\n    xvst          xr1,      a1,       32\n    xvst          xr2,      a1,       64\n    xvst          xr3,      a1,       96\n    xvst          xr4,      a1,       128\n    xvst          xr5,      a1,       160\n    xvst          xr6,      a1,       192\n    xvst          xr7,      a1,       224\n\n    addi.d        a1,       a1,       256\n    addi.d        a0,       a0,       16\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       64\n    vld           vr26,     a0,       128\n    vld           vr27,     a0,       192\n    vld           vr28,     a0,       256\n    vld           vr29,     a0,       320\n    vld           vr30,     a0,       384\n    vld           vr31,     a0,       448\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr8,      xr24,     0x02\n    xvpermi.q     xr9,      xr25,     0x02\n    xvpermi.q     xr10,     xr26,     0x02\n    xvpermi.q     xr11,     xr27,     0x02\n    xvpermi.q     xr12,     xr28,     0x02\n    xvpermi.q     xr13,     xr29,     0x02\n    xvpermi.q     xr14,     xr30,     0x02\n    xvpermi.q     xr15,     xr31,     0x02\n\n    xvst          xr8,      a1,       0\n    xvst          xr9,      a1,       32\n    xvst          xr10,     a1,       64\n    xvst          xr11,     a1,       96\n    xvst          xr12,     a1,       128\n    xvst          xr13,     a1,       160\n    xvst          xr14,     a1,       192\n    xvst          xr15,     a1,       224\n\n    fr_recover\nendfunc\n\nfunction hevc_idct_transpose_16x32_to_32x16_lasx\n    fr_store\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       32\n    xvld          xr2,      a0,       64\n    xvld          xr3,      a0,       96\n    xvld          xr4,      a0,       128\n    xvld          xr5,      a0,       160", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:16", "text": "xvst          xr9,      a1,       32\n    xvst          xr10,     a1,       64\n    xvst          xr11,     a1,       96\n    xvst          xr12,     a1,       128\n    xvst          xr13,     a1,       160\n    xvst          xr14,     a1,       192\n    xvst          xr15,     a1,       224\n\n    fr_recover\nendfunc\n\nfunction hevc_idct_transpose_16x32_to_32x16_lasx\n    fr_store\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       32\n    xvld          xr2,      a0,       64\n    xvld          xr3,      a0,       96\n    xvld          xr4,      a0,       128\n    xvld          xr5,      a0,       160\n    xvld          xr6,      a0,       192\n    xvld          xr7,      a0,       224\n\n    xvpermi.q     xr8,      xr0,      0x01\n    xvpermi.q     xr9,      xr1,      0x01\n    xvpermi.q     xr10,     xr2,      0x01\n    xvpermi.q     xr11,     xr3,      0x01\n    xvpermi.q     xr12,     xr4,      0x01\n    xvpermi.q     xr13,     xr5,      0x01\n    xvpermi.q     xr14,     xr6,      0x01\n    xvpermi.q     xr15,     xr7,      0x01\n\n    LSX_TRANSPOSE8x8_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    addi.d        a0,       a0,       256\n\n    vld          vr24,      a0,       0\n    vld          vr25,      a0,       32\n    vld          vr26,      a0,       64\n    vld          vr27,      a0,       96\n    vld          vr28,      a0,       128\n    vld          vr29,      a0,       160\n    vld          vr30,      a0,       192\n    vld          vr31,      a0,       224\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr0,      xr24,     0x02\n    xvpermi.q     xr1,      xr25,     0x02\n    xvpermi.q     xr2,      xr26,     0x02\n    xvpermi.q     xr3,      xr27,     0x02\n    xvpermi.q     xr4,      xr28,     0x02", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:17", "text": "addi.d        a0,       a0,       256\n\n    vld          vr24,      a0,       0\n    vld          vr25,      a0,       32\n    vld          vr26,      a0,       64\n    vld          vr27,      a0,       96\n    vld          vr28,      a0,       128\n    vld          vr29,      a0,       160\n    vld          vr30,      a0,       192\n    vld          vr31,      a0,       224\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr0,      xr24,     0x02\n    xvpermi.q     xr1,      xr25,     0x02\n    xvpermi.q     xr2,      xr26,     0x02\n    xvpermi.q     xr3,      xr27,     0x02\n    xvpermi.q     xr4,      xr28,     0x02\n    xvpermi.q     xr5,      xr29,     0x02\n    xvpermi.q     xr6,      xr30,     0x02\n    xvpermi.q     xr7,      xr31,     0x02\n\n    xvst          xr0,      a1,       0\n    xvst          xr1,      a1,       64\n    xvst          xr2,      a1,       128\n    xvst          xr3,      a1,       192\n    xvst          xr4,      a1,       256\n    xvst          xr5,      a1,       320\n    xvst          xr6,      a1,       384\n    xvst          xr7,      a1,       448\n\n    addi.d        a1,       a1,       512\n    addi.d        a0,       a0,       16\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       32\n    vld           vr26,     a0,       64\n    vld           vr27,     a0,       96\n    vld           vr28,     a0,       128\n    vld           vr29,     a0,       160\n    vld           vr30,     a0,       192\n    vld           vr31,     a0,       224\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr8,      xr24,     0x02\n    xvpermi.q     xr9,      xr25,     0x02\n    xvpermi.q     xr10,     xr26,     0x02\n    xvpermi.q     xr11,     xr27,     0x02\n    xvpermi.q     xr12,     xr28,     0x02\n    xvpermi.q     xr13,     xr29,     0x02\n    xvpermi.q     xr14,     xr30,     0x02\n    xvpermi.q     xr15,     xr31,     0x02\n\n    xvst          xr8,      a1,       0\n    xvst          xr9,      a1,       64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:18", "text": "vld           vr28,     a0,       128\n    vld           vr29,     a0,       160\n    vld           vr30,     a0,       192\n    vld           vr31,     a0,       224\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr8,      xr24,     0x02\n    xvpermi.q     xr9,      xr25,     0x02\n    xvpermi.q     xr10,     xr26,     0x02\n    xvpermi.q     xr11,     xr27,     0x02\n    xvpermi.q     xr12,     xr28,     0x02\n    xvpermi.q     xr13,     xr29,     0x02\n    xvpermi.q     xr14,     xr30,     0x02\n    xvpermi.q     xr15,     xr31,     0x02\n\n    xvst          xr8,      a1,       0\n    xvst          xr9,      a1,       64\n    xvst          xr10,     a1,       128\n    xvst          xr11,     a1,       192\n    xvst          xr12,     a1,       256\n    xvst          xr13,     a1,       320\n    xvst          xr14,     a1,       384\n    xvst          xr15,     a1,       448\n\n    // second\n    addi.d        a0,       a0,       256-16\n\n    xvld          xr0,      a0,       0\n    xvld          xr1,      a0,       32\n    xvld          xr2,      a0,       64\n    xvld          xr3,      a0,       96\n    xvld          xr4,      a0,       128\n    xvld          xr5,      a0,       160\n    xvld          xr6,      a0,       192\n    xvld          xr7,      a0,       224\n\n    xvpermi.q     xr8,      xr0,      0x01\n    xvpermi.q     xr9,      xr1,      0x01\n    xvpermi.q     xr10,     xr2,      0x01\n    xvpermi.q     xr11,     xr3,      0x01\n    xvpermi.q     xr12,     xr4,      0x01\n    xvpermi.q     xr13,     xr5,      0x01\n    xvpermi.q     xr14,     xr6,      0x01\n    xvpermi.q     xr15,     xr7,      0x01\n\n    LSX_TRANSPOSE8x8_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    addi.d        a0,       a0,       256\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:19", "text": "xvpermi.q     xr9,      xr1,      0x01\n    xvpermi.q     xr10,     xr2,      0x01\n    xvpermi.q     xr11,     xr3,      0x01\n    xvpermi.q     xr12,     xr4,      0x01\n    xvpermi.q     xr13,     xr5,      0x01\n    xvpermi.q     xr14,     xr6,      0x01\n    xvpermi.q     xr15,     xr7,      0x01\n\n    LSX_TRANSPOSE8x8_H vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr0, vr1, vr2, vr3, vr4, vr5, vr6, vr7, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    LSX_TRANSPOSE8x8_H vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr8, vr9, vr10, vr11, vr12, vr13, vr14, vr15, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    addi.d        a0,       a0,       256\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       32\n    vld           vr26,     a0,       64\n    vld           vr27,     a0,       96\n    vld           vr28,     a0,       128\n    vld           vr29,     a0,       160\n    vld           vr30,     a0,       192\n    vld           vr31,     a0,       224\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr0,      xr24,     0x02\n    xvpermi.q     xr1,      xr25,     0x02\n    xvpermi.q     xr2,      xr26,     0x02\n    xvpermi.q     xr3,      xr27,     0x02\n    xvpermi.q     xr4,      xr28,     0x02\n    xvpermi.q     xr5,      xr29,     0x02\n    xvpermi.q     xr6,      xr30,     0x02\n    xvpermi.q     xr7,      xr31,     0x02\n\n    addi.d        a1,       a1,       -512+32\n\n    xvst          xr0,      a1,       0\n    xvst          xr1,      a1,       64\n    xvst          xr2,      a1,       128\n    xvst          xr3,      a1,       192\n    xvst          xr4,      a1,       256\n    xvst          xr5,      a1,       320\n    xvst          xr6,      a1,       384\n    xvst          xr7,      a1,       448\n\n    addi.d        a1,       a1,       512\n    addi.d        a0,       a0,       16\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       32\n    vld           vr26,     a0,       64\n    vld           vr27,     a0,       96\n    vld           vr28,     a0,       128\n    vld           vr29,     a0,       160", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:20", "text": "addi.d        a1,       a1,       -512+32\n\n    xvst          xr0,      a1,       0\n    xvst          xr1,      a1,       64\n    xvst          xr2,      a1,       128\n    xvst          xr3,      a1,       192\n    xvst          xr4,      a1,       256\n    xvst          xr5,      a1,       320\n    xvst          xr6,      a1,       384\n    xvst          xr7,      a1,       448\n\n    addi.d        a1,       a1,       512\n    addi.d        a0,       a0,       16\n\n    vld           vr24,     a0,       0\n    vld           vr25,     a0,       32\n    vld           vr26,     a0,       64\n    vld           vr27,     a0,       96\n    vld           vr28,     a0,       128\n    vld           vr29,     a0,       160\n    vld           vr30,     a0,       192\n    vld           vr31,     a0,       224\n\n    LSX_TRANSPOSE8x8_H vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr24, vr25, vr26, vr27, vr28, vr29, vr30, vr31, \\\n                       vr16, vr17, vr18, vr19, vr20, vr21, vr22, vr23\n\n    xvpermi.q     xr8,      xr24,     0x02\n    xvpermi.q     xr9,      xr25,     0x02\n    xvpermi.q     xr10,     xr26,     0x02\n    xvpermi.q     xr11,     xr27,     0x02\n    xvpermi.q     xr12,     xr28,     0x02\n    xvpermi.q     xr13,     xr29,     0x02\n    xvpermi.q     xr14,     xr30,     0x02\n    xvpermi.q     xr15,     xr31,     0x02\n\n    xvst          xr8,      a1,       0\n    xvst          xr9,      a1,       64\n    xvst          xr10,     a1,       128\n    xvst          xr11,     a1,       192\n    xvst          xr12,     a1,       256\n    xvst          xr13,     a1,       320\n    xvst          xr14,     a1,       384\n    xvst          xr15,     a1,       448\n\n    fr_recover\nendfunc\n\nfunction ff_hevc_idct_32x32_lasx\n\n    addi.d        t7,       a0,       0\n    addi.d        t6,       a1,       0\n\n    addi.d        sp,       sp,       -8\n    st.d          ra,       sp,        0\n\n    bl hevc_idct_16x32_column_step1_lasx\n\n    addi.d        a0,       a0,       32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:21", "text": "xvst          xr12,     a1,       256\n    xvst          xr13,     a1,       320\n    xvst          xr14,     a1,       384\n    xvst          xr15,     a1,       448\n\n    fr_recover\nendfunc\n\nfunction ff_hevc_idct_32x32_lasx\n\n    addi.d        t7,       a0,       0\n    addi.d        t6,       a1,       0\n\n    addi.d        sp,       sp,       -8\n    st.d          ra,       sp,        0\n\n    bl hevc_idct_16x32_column_step1_lasx\n\n    addi.d        a0,       a0,       32\n\n    bl hevc_idct_16x32_column_step1_lasx\n\n    addi.d        sp,       sp,       -1086      // (16*32+31)*2\n    fr_store\n\n    addi.d        t8,       sp,       64+31*2    // tmp_buf_ptr\n\n    addi.d        a0,       t7,       0\n    addi.d        a1,       t8,       0\n    bl hevc_idct_transpose_32x16_to_16x32_lasx\n\n    addi.d        a0,       t8,       0\n    bl hevc_idct_16x32_column_step2_lasx\n\n    addi.d        a0,       t8,       0\n    addi.d        a1,       t7,       0\n    bl hevc_idct_transpose_16x32_to_32x16_lasx\n\n    // second\n    addi.d        a0,       t7,       32*8*2*2\n    addi.d        a1,       t8,       0\n    bl hevc_idct_transpose_32x16_to_16x32_lasx\n\n    addi.d        a0,       t8,       0\n    bl hevc_idct_16x32_column_step2_lasx\n\n    addi.d        a0,       t8,       0\n    addi.d        a1,       t7,       32*8*2*2\n    bl hevc_idct_transpose_16x32_to_32x16_lasx\n\n    fr_recover\n    addi.d        sp,       sp,       1086       // (16*32+31)*2\n\n    ld.d          ra,       sp,       0\n    addi.d        sp,       sp,       8\n\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 801, "line_end": 857}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_idct.S:22", "text": "addi.d        a1,       t8,       0\n    bl hevc_idct_transpose_32x16_to_16x32_lasx\n\n    addi.d        a0,       t8,       0\n    bl hevc_idct_16x32_column_step2_lasx\n\n    addi.d        a0,       t8,       0\n    addi.d        a1,       t7,       32*8*2*2\n    bl hevc_idct_transpose_16x32_to_32x16_lasx\n\n    fr_recover\n    addi.d        sp,       sp,       1086       // (16*32+31)*2\n\n    ld.d          ra,       sp,       0\n    addi.d        sp,       sp,       8\n\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_idct.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/hevc_idct.S", "line_start": 841, "line_end": 857}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:1", "text": "/*\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by jinbo <jinbo@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"loongson_asm.S\"\n\n.macro LOAD_VAR bit\n    addi.w         t1,     a5,      6  //shift\n    addi.w         t3,     zero,    1  //one\n    sub.w          t4,     t1,      t3\n    sll.w          t3,     t3,      t4 //offset\n.if \\bit == 128\n    vreplgr2vr.w   vr1,    a6          //wx\n    vreplgr2vr.w   vr2,    t3          //offset\n    vreplgr2vr.w   vr3,    t1          //shift\n    vreplgr2vr.w   vr4,    a7          //ox\n.else\n    xvreplgr2vr.w  xr1,    a6\n    xvreplgr2vr.w  xr2,    t3\n    xvreplgr2vr.w  xr3,    t1\n    xvreplgr2vr.w  xr4,    a7\n.endif\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS8_LSX src0, dst0, w\n    vldrepl.d      vr0,    \\src0,   0\n    vsllwil.hu.bu  vr0,    vr0,     0\n    vexth.wu.hu    vr5,    vr0\n    vsllwil.wu.hu  vr0,    vr0,     0\n    vslli.w        vr0,    vr0,     6\n    vslli.w        vr5,    vr5,     6\n    vmul.w         vr0,    vr0,     vr1\n    vmul.w         vr5,    vr5,     vr1\n    vadd.w         vr0,    vr0,     vr2\n    vadd.w         vr5,    vr5,     vr2\n    vsra.w         vr0,    vr0,     vr3\n    vsra.w         vr5,    vr5,     vr3\n    vadd.w         vr0,    vr0,     vr4\n    vadd.w         vr5,    vr5,     vr4\n    vssrani.h.w    vr5,    vr0,     0\n    vssrani.bu.h   vr5,    vr5,     0\n.if \\w == 6\n    fst.s          f5,     \\dst0,   0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:2", "text": ".macro HEVC_PEL_UNI_W_PIXELS8_LSX src0, dst0, w\n    vldrepl.d      vr0,    \\src0,   0\n    vsllwil.hu.bu  vr0,    vr0,     0\n    vexth.wu.hu    vr5,    vr0\n    vsllwil.wu.hu  vr0,    vr0,     0\n    vslli.w        vr0,    vr0,     6\n    vslli.w        vr5,    vr5,     6\n    vmul.w         vr0,    vr0,     vr1\n    vmul.w         vr5,    vr5,     vr1\n    vadd.w         vr0,    vr0,     vr2\n    vadd.w         vr5,    vr5,     vr2\n    vsra.w         vr0,    vr0,     vr3\n    vsra.w         vr5,    vr5,     vr3\n    vadd.w         vr0,    vr0,     vr4\n    vadd.w         vr5,    vr5,     vr4\n    vssrani.h.w    vr5,    vr0,     0\n    vssrani.bu.h   vr5,    vr5,     0\n.if \\w == 6\n    fst.s          f5,     \\dst0,   0\n    vstelm.h       vr5,    \\dst0,   4,     2\n.else\n    fst.d          f5,     \\dst0,   0\n.endif\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS8x2_LASX src0, dst0, w\n    vldrepl.d      vr0,    \\src0,   0\n    add.d          t2,     \\src0,   a3\n    vldrepl.d      vr5,    t2,      0\n    xvpermi.q      xr0,    xr5,     0x02\n    xvsllwil.hu.bu xr0,    xr0,     0\n    xvexth.wu.hu   xr5,    xr0\n    xvsllwil.wu.hu xr0,    xr0,     0\n    xvslli.w       xr0,    xr0,     6\n    xvslli.w       xr5,    xr5,     6\n    xvmul.w        xr0,    xr0,     xr1\n    xvmul.w        xr5,    xr5,     xr1\n    xvadd.w        xr0,    xr0,     xr2\n    xvadd.w        xr5,    xr5,     xr2\n    xvsra.w        xr0,    xr0,     xr3\n    xvsra.w        xr5,    xr5,     xr3\n    xvadd.w        xr0,    xr0,     xr4\n    xvadd.w        xr5,    xr5,     xr4\n    xvssrani.h.w   xr5,    xr0,     0\n    xvpermi.q      xr0,    xr5,     0x01\n    xvssrani.bu.h  xr0,    xr5,     0\n    add.d          t3,     \\dst0,   a1\n.if \\w == 6\n    vstelm.w       vr0,    \\dst0,   0,     0\n    vstelm.h       vr0,    \\dst0,   4,     2\n    vstelm.w       vr0,    t3,      0,     2\n    vstelm.h       vr0,    t3,      4,     6\n.else\n    vstelm.d       vr0,    \\dst0,   0,     0\n    vstelm.d       vr0,    t3,      0,     1\n.endif\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS16_LSX src0, dst0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:3", "text": "xvsra.w        xr0,    xr0,     xr3\n    xvsra.w        xr5,    xr5,     xr3\n    xvadd.w        xr0,    xr0,     xr4\n    xvadd.w        xr5,    xr5,     xr4\n    xvssrani.h.w   xr5,    xr0,     0\n    xvpermi.q      xr0,    xr5,     0x01\n    xvssrani.bu.h  xr0,    xr5,     0\n    add.d          t3,     \\dst0,   a1\n.if \\w == 6\n    vstelm.w       vr0,    \\dst0,   0,     0\n    vstelm.h       vr0,    \\dst0,   4,     2\n    vstelm.w       vr0,    t3,      0,     2\n    vstelm.h       vr0,    t3,      4,     6\n.else\n    vstelm.d       vr0,    \\dst0,   0,     0\n    vstelm.d       vr0,    t3,      0,     1\n.endif\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS16_LSX src0, dst0\n    vld            vr0,    \\src0,   0\n    vexth.hu.bu    vr7,    vr0\n    vexth.wu.hu    vr8,    vr7\n    vsllwil.wu.hu  vr7,    vr7,     0\n    vsllwil.hu.bu  vr5,    vr0,     0\n    vexth.wu.hu    vr6,    vr5\n    vsllwil.wu.hu  vr5,    vr5,     0\n    vslli.w        vr5,    vr5,     6\n    vslli.w        vr6,    vr6,     6\n    vslli.w        vr7,    vr7,     6\n    vslli.w        vr8,    vr8,     6\n    vmul.w         vr5,    vr5,     vr1\n    vmul.w         vr6,    vr6,     vr1\n    vmul.w         vr7,    vr7,     vr1\n    vmul.w         vr8,    vr8,     vr1\n    vadd.w         vr5,    vr5,     vr2\n    vadd.w         vr6,    vr6,     vr2\n    vadd.w         vr7,    vr7,     vr2\n    vadd.w         vr8,    vr8,     vr2\n    vsra.w         vr5,    vr5,     vr3\n    vsra.w         vr6,    vr6,     vr3\n    vsra.w         vr7,    vr7,     vr3\n    vsra.w         vr8,    vr8,     vr3\n    vadd.w         vr5,    vr5,     vr4\n    vadd.w         vr6,    vr6,     vr4\n    vadd.w         vr7,    vr7,     vr4\n    vadd.w         vr8,    vr8,     vr4\n    vssrani.h.w    vr6,    vr5,     0\n    vssrani.h.w    vr8,    vr7,     0\n    vssrani.bu.h   vr8,    vr6,     0\n    vst            vr8,    \\dst0,   0\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS16_LASX src0, dst0\n    vld            vr0,    \\src0,   0\n    xvpermi.d      xr0,    xr0,     0xd8\n    xvsllwil.hu.bu xr0,    xr0,     0\n    xvexth.wu.hu   xr6,    xr0\n    xvsllwil.wu.hu xr5,    xr0,     0\n    xvslli.w       xr5,    xr5,     6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:4", "text": "vsra.w         vr6,    vr6,     vr3\n    vsra.w         vr7,    vr7,     vr3\n    vsra.w         vr8,    vr8,     vr3\n    vadd.w         vr5,    vr5,     vr4\n    vadd.w         vr6,    vr6,     vr4\n    vadd.w         vr7,    vr7,     vr4\n    vadd.w         vr8,    vr8,     vr4\n    vssrani.h.w    vr6,    vr5,     0\n    vssrani.h.w    vr8,    vr7,     0\n    vssrani.bu.h   vr8,    vr6,     0\n    vst            vr8,    \\dst0,   0\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS16_LASX src0, dst0\n    vld            vr0,    \\src0,   0\n    xvpermi.d      xr0,    xr0,     0xd8\n    xvsllwil.hu.bu xr0,    xr0,     0\n    xvexth.wu.hu   xr6,    xr0\n    xvsllwil.wu.hu xr5,    xr0,     0\n    xvslli.w       xr5,    xr5,     6\n    xvslli.w       xr6,    xr6,     6\n    xvmul.w        xr5,    xr5,     xr1\n    xvmul.w        xr6,    xr6,     xr1\n    xvadd.w        xr5,    xr5,     xr2\n    xvadd.w        xr6,    xr6,     xr2\n    xvsra.w        xr5,    xr5,     xr3\n    xvsra.w        xr6,    xr6,     xr3\n    xvadd.w        xr5,    xr5,     xr4\n    xvadd.w        xr6,    xr6,     xr4\n    xvssrani.h.w   xr6,    xr5,     0\n    xvpermi.q      xr7,    xr6,     0x01\n    xvssrani.bu.h  xr7,    xr6,     0\n    vst            vr7,    \\dst0,   0\n.endm\n\n.macro HEVC_PEL_UNI_W_PIXELS32_LASX src0, dst0, w\n.if \\w == 16\n    vld            vr0,    \\src0,   0\n    add.d          t2,     \\src0,   a3\n    vld            vr5,    t2,      0\n    xvpermi.q      xr0,    xr5,     0x02\n.else //w=24/32\n    xvld           xr0,    \\src0,   0\n.endif\n    xvexth.hu.bu   xr7,    xr0\n    xvexth.wu.hu   xr8,    xr7\n    xvsllwil.wu.hu xr7,    xr7,     0\n    xvsllwil.hu.bu xr5,    xr0,     0\n    xvexth.wu.hu   xr6,    xr5\n    xvsllwil.wu.hu xr5,    xr5,     0\n    xvslli.w       xr5,    xr5,     6\n    xvslli.w       xr6,    xr6,     6\n    xvslli.w       xr7,    xr7,     6\n    xvslli.w       xr8,    xr8,     6\n    xvmul.w        xr5,    xr5,     xr1\n    xvmul.w        xr6,    xr6,     xr1\n    xvmul.w        xr7,    xr7,     xr1\n    xvmul.w        xr8,    xr8,     xr1\n    xvadd.w        xr5,    xr5,     xr2\n    xvadd.w        xr6,    xr6,     xr2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:5", "text": "xvpermi.q      xr0,    xr5,     0x02\n.else //w=24/32\n    xvld           xr0,    \\src0,   0\n.endif\n    xvexth.hu.bu   xr7,    xr0\n    xvexth.wu.hu   xr8,    xr7\n    xvsllwil.wu.hu xr7,    xr7,     0\n    xvsllwil.hu.bu xr5,    xr0,     0\n    xvexth.wu.hu   xr6,    xr5\n    xvsllwil.wu.hu xr5,    xr5,     0\n    xvslli.w       xr5,    xr5,     6\n    xvslli.w       xr6,    xr6,     6\n    xvslli.w       xr7,    xr7,     6\n    xvslli.w       xr8,    xr8,     6\n    xvmul.w        xr5,    xr5,     xr1\n    xvmul.w        xr6,    xr6,     xr1\n    xvmul.w        xr7,    xr7,     xr1\n    xvmul.w        xr8,    xr8,     xr1\n    xvadd.w        xr5,    xr5,     xr2\n    xvadd.w        xr6,    xr6,     xr2\n    xvadd.w        xr7,    xr7,     xr2\n    xvadd.w        xr8,    xr8,     xr2\n    xvsra.w        xr5,    xr5,     xr3\n    xvsra.w        xr6,    xr6,     xr3\n    xvsra.w        xr7,    xr7,     xr3\n    xvsra.w        xr8,    xr8,     xr3\n    xvadd.w        xr5,    xr5,     xr4\n    xvadd.w        xr6,    xr6,     xr4\n    xvadd.w        xr7,    xr7,     xr4\n    xvadd.w        xr8,    xr8,     xr4\n    xvssrani.h.w   xr6,    xr5,     0\n    xvssrani.h.w   xr8,    xr7,     0\n    xvssrani.bu.h  xr8,    xr6,     0\n.if \\w == 16\n    vst            vr8,    \\dst0,   0\n    add.d          t2,     \\dst0,   a1\n    xvpermi.q      xr8,    xr8,     0x01\n    vst            vr8,    t2,      0\n.elseif \\w == 24\n    vst            vr8,    \\dst0,   0\n    xvstelm.d      xr8,    \\dst0,   16,    2\n.else\n    xvst           xr8,    \\dst0,   0\n.endif\n.endm\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels4_8_lsx\n    LOAD_VAR 128\n    srli.w         t0,     a4,      1\n.LOOP_PIXELS4:\n    vldrepl.w      vr0,    a2,      0\n    add.d          t1,     a2,      a3\n    vldrepl.w      vr5,    t1,      0\n    vsllwil.hu.bu  vr0,    vr0,     0\n    vsllwil.wu.hu  vr0,    vr0,     0\n    vsllwil.hu.bu  vr5,    vr5,     0\n    vsllwil.wu.hu  vr5,    vr5,     0\n    vslli.w        vr0,    vr0,     6\n    vslli.w        vr5,    vr5,     6\n    vmul.w         vr0,    vr0,     vr1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:6", "text": "xvstelm.d      xr8,    \\dst0,   16,    2\n.else\n    xvst           xr8,    \\dst0,   0\n.endif\n.endm\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels4_8_lsx\n    LOAD_VAR 128\n    srli.w         t0,     a4,      1\n.LOOP_PIXELS4:\n    vldrepl.w      vr0,    a2,      0\n    add.d          t1,     a2,      a3\n    vldrepl.w      vr5,    t1,      0\n    vsllwil.hu.bu  vr0,    vr0,     0\n    vsllwil.wu.hu  vr0,    vr0,     0\n    vsllwil.hu.bu  vr5,    vr5,     0\n    vsllwil.wu.hu  vr5,    vr5,     0\n    vslli.w        vr0,    vr0,     6\n    vslli.w        vr5,    vr5,     6\n    vmul.w         vr0,    vr0,     vr1\n    vmul.w         vr5,    vr5,     vr1\n    vadd.w         vr0,    vr0,     vr2\n    vadd.w         vr5,    vr5,     vr2\n    vsra.w         vr0,    vr0,     vr3\n    vsra.w         vr5,    vr5,     vr3\n    vadd.w         vr0,    vr0,     vr4\n    vadd.w         vr5,    vr5,     vr4\n    vssrani.h.w    vr5,    vr0,     0\n    vssrani.bu.h   vr5,    vr5,     0\n    fst.s          f5,     a0,      0\n    add.d          t2,     a0,      a1\n    vstelm.w       vr5,    t2,      0,     1\n    alsl.d         a2,     a3,      a2,    1\n    alsl.d         a0,     a1,      a0,    1\n    addi.w         t0,     t0,      -1\n    bnez           t0,     .LOOP_PIXELS4\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels6_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS6:\n    HEVC_PEL_UNI_W_PIXELS8_LSX      a2,    a0,    6\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS6\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels6_8_lasx\n    LOAD_VAR 256\n    srli.w         t0,     a4,      1\n.LOOP_PIXELS6_LASX:\n    HEVC_PEL_UNI_W_PIXELS8x2_LASX   a2,    a0,    6\n    alsl.d         a2,     a3,      a2,    1\n    alsl.d         a0,     a1,      a0,    1\n    addi.w         t0,     t0,      -1\n    bnez           t0,     .LOOP_PIXELS6_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels8_8_lsx", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:7", "text": ".LOOP_PIXELS6:\n    HEVC_PEL_UNI_W_PIXELS8_LSX      a2,    a0,    6\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS6\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels6_8_lasx\n    LOAD_VAR 256\n    srli.w         t0,     a4,      1\n.LOOP_PIXELS6_LASX:\n    HEVC_PEL_UNI_W_PIXELS8x2_LASX   a2,    a0,    6\n    alsl.d         a2,     a3,      a2,    1\n    alsl.d         a0,     a1,      a0,    1\n    addi.w         t0,     t0,      -1\n    bnez           t0,     .LOOP_PIXELS6_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels8_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS8:\n    HEVC_PEL_UNI_W_PIXELS8_LSX      a2,    a0,    8\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS8\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels8_8_lasx\n    LOAD_VAR 256\n    srli.w         t0,     a4,      1\n.LOOP_PIXELS8_LASX:\n    HEVC_PEL_UNI_W_PIXELS8x2_LASX   a2,    a0,    8\n    alsl.d         a2,     a3,      a2,    1\n    alsl.d         a0,     a1,      a0,    1\n    addi.w         t0,     t0,      -1\n    bnez           t0,     .LOOP_PIXELS8_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels12_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS12:\n    vld            vr0,    a2,      0\n    vexth.hu.bu    vr7,    vr0\n    vsllwil.wu.hu  vr7,    vr7,     0\n    vsllwil.hu.bu  vr5,    vr0,     0\n    vexth.wu.hu    vr6,    vr5\n    vsllwil.wu.hu  vr5,    vr5,     0\n    vslli.w        vr5,    vr5,     6\n    vslli.w        vr6,    vr6,     6\n    vslli.w        vr7,    vr7,     6\n    vmul.w         vr5,    vr5,     vr1\n    vmul.w         vr6,    vr6,     vr1\n    vmul.w         vr7,    vr7,     vr1\n    vadd.w         vr5,    vr5,     vr2\n    vadd.w         vr6,    vr6,     vr2\n    vadd.w         vr7,    vr7,     vr2\n    vsra.w         vr5,    vr5,     vr3\n    vsra.w         vr6,    vr6,     vr3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:8", "text": "function ff_hevc_put_hevc_pel_uni_w_pixels12_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS12:\n    vld            vr0,    a2,      0\n    vexth.hu.bu    vr7,    vr0\n    vsllwil.wu.hu  vr7,    vr7,     0\n    vsllwil.hu.bu  vr5,    vr0,     0\n    vexth.wu.hu    vr6,    vr5\n    vsllwil.wu.hu  vr5,    vr5,     0\n    vslli.w        vr5,    vr5,     6\n    vslli.w        vr6,    vr6,     6\n    vslli.w        vr7,    vr7,     6\n    vmul.w         vr5,    vr5,     vr1\n    vmul.w         vr6,    vr6,     vr1\n    vmul.w         vr7,    vr7,     vr1\n    vadd.w         vr5,    vr5,     vr2\n    vadd.w         vr6,    vr6,     vr2\n    vadd.w         vr7,    vr7,     vr2\n    vsra.w         vr5,    vr5,     vr3\n    vsra.w         vr6,    vr6,     vr3\n    vsra.w         vr7,    vr7,     vr3\n    vadd.w         vr5,    vr5,     vr4\n    vadd.w         vr6,    vr6,     vr4\n    vadd.w         vr7,    vr7,     vr4\n    vssrani.h.w    vr6,    vr5,     0\n    vssrani.h.w    vr7,    vr7,     0\n    vssrani.bu.h   vr7,    vr6,     0\n    fst.d          f7,     a0,      0\n    vstelm.w       vr7,    a0,      8,     2\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS12\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels12_8_lasx\n    LOAD_VAR 256\n.LOOP_PIXELS12_LASX:\n    vld            vr0,    a2,      0\n    xvpermi.d      xr0,    xr0,     0xd8\n    xvsllwil.hu.bu xr0,    xr0,     0\n    xvexth.wu.hu   xr6,    xr0\n    xvsllwil.wu.hu xr5,    xr0,     0\n    xvslli.w       xr5,    xr5,     6\n    xvslli.w       xr6,    xr6,     6\n    xvmul.w        xr5,    xr5,     xr1\n    xvmul.w        xr6,    xr6,     xr1\n    xvadd.w        xr5,    xr5,     xr2\n    xvadd.w        xr6,    xr6,     xr2\n    xvsra.w        xr5,    xr5,     xr3\n    xvsra.w        xr6,    xr6,     xr3\n    xvadd.w        xr5,    xr5,     xr4\n    xvadd.w        xr6,    xr6,     xr4\n    xvssrani.h.w   xr6,    xr5,     0\n    xvpermi.q      xr7,    xr6,     0x01\n    xvssrani.bu.h  xr7,    xr6,     0\n    fst.d          f7,     a0,      0\n    vstelm.w       vr7,    a0,      8,     2\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:9", "text": "xvsllwil.hu.bu xr0,    xr0,     0\n    xvexth.wu.hu   xr6,    xr0\n    xvsllwil.wu.hu xr5,    xr0,     0\n    xvslli.w       xr5,    xr5,     6\n    xvslli.w       xr6,    xr6,     6\n    xvmul.w        xr5,    xr5,     xr1\n    xvmul.w        xr6,    xr6,     xr1\n    xvadd.w        xr5,    xr5,     xr2\n    xvadd.w        xr6,    xr6,     xr2\n    xvsra.w        xr5,    xr5,     xr3\n    xvsra.w        xr6,    xr6,     xr3\n    xvadd.w        xr5,    xr5,     xr4\n    xvadd.w        xr6,    xr6,     xr4\n    xvssrani.h.w   xr6,    xr5,     0\n    xvpermi.q      xr7,    xr6,     0x01\n    xvssrani.bu.h  xr7,    xr6,     0\n    fst.d          f7,     a0,      0\n    vstelm.w       vr7,    a0,      8,     2\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS12_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels16_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS16:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS16\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels16_8_lasx\n    LOAD_VAR 256\n    srli.w         t0,     a4,      1\n.LOOP_PIXELS16_LASX:\n    HEVC_PEL_UNI_W_PIXELS32_LASX    a2,    a0,   16\n    alsl.d         a2,     a3,      a2,    1\n    alsl.d         a0,     a1,      a0,    1\n    addi.w         t0,     t0,      -1\n    bnez           t0,     .LOOP_PIXELS16_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels24_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS24:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS8_LSX      t0,    t1,   8\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS24\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels24_8_lasx\n    LOAD_VAR 256", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:10", "text": "alsl.d         a0,     a1,      a0,    1\n    addi.w         t0,     t0,      -1\n    bnez           t0,     .LOOP_PIXELS16_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels24_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS24:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS8_LSX      t0,    t1,   8\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS24\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels24_8_lasx\n    LOAD_VAR 256\n.LOOP_PIXELS24_LASX:\n    HEVC_PEL_UNI_W_PIXELS32_LASX    a2,    a0,   24\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS24_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels32_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS32:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS32\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels32_8_lasx\n    LOAD_VAR 256\n.LOOP_PIXELS32_LASX:\n    HEVC_PEL_UNI_W_PIXELS32_LASX    a2,    a0,    32\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS32_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels48_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS48:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    addi.d         t0,     a2,      32\n    addi.d         t1,     a0,      32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:11", "text": "function ff_hevc_put_hevc_pel_uni_w_pixels32_8_lasx\n    LOAD_VAR 256\n.LOOP_PIXELS32_LASX:\n    HEVC_PEL_UNI_W_PIXELS32_LASX    a2,    a0,    32\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS32_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels48_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS48:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    addi.d         t0,     a2,      32\n    addi.d         t1,     a0,      32\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS48\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels48_8_lasx\n    LOAD_VAR 256\n.LOOP_PIXELS48_LASX:\n    HEVC_PEL_UNI_W_PIXELS32_LASX    a2,    a0,    32\n    addi.d         t0,     a2,      32\n    addi.d         t1,     a0,      32\n    HEVC_PEL_UNI_W_PIXELS16_LASX    t0,    t1\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS48_LASX\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels64_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS64:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    addi.d         t0,     a2,      32\n    addi.d         t1,     a0,      32\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    addi.d         t0,     a2,      48\n    addi.d         t1,     a0,      48\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS64\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels64_8_lasx", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/hevc_mc.S:12", "text": "function ff_hevc_put_hevc_pel_uni_w_pixels64_8_lsx\n    LOAD_VAR 128\n.LOOP_PIXELS64:\n    HEVC_PEL_UNI_W_PIXELS16_LSX     a2,    a0\n    addi.d         t0,     a2,      16\n    addi.d         t1,     a0,      16\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    addi.d         t0,     a2,      32\n    addi.d         t1,     a0,      32\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    addi.d         t0,     a2,      48\n    addi.d         t1,     a0,      48\n    HEVC_PEL_UNI_W_PIXELS16_LSX     t0,    t1\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS64\nendfunc\n\nfunction ff_hevc_put_hevc_pel_uni_w_pixels64_8_lasx\n    LOAD_VAR 256\n.LOOP_PIXELS64_LASX:\n    HEVC_PEL_UNI_W_PIXELS32_LASX    a2,    a0,    32\n    addi.d         t0,     a2,      32\n    addi.d         t1,     a0,      32\n    HEVC_PEL_UNI_W_PIXELS32_LASX    t0,    t1,    32\n    add.d          a2,     a2,      a3\n    add.d          a0,     a0,      a1\n    addi.w         a4,     a4,      -1\n    bnez           a4,     .LOOP_PIXELS64_LASX\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/hevc_mc.S", "license": "LGPL-2.1", "commit": "a28eea2a277bb58004dc7ecccd543fa4baf69170", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a28eea2a277bb58004dc7ecccd543fa4baf69170/libavcodec/loongarch/hevc_mc.S", "line_start": 441, "line_end": 471}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:2", "text": "#define DEFAULT_ALIGN    5\n\n.macro function name, align=DEFAULT_ALIGN\n.macro endfunc\n    jirl    $r0, $r1, 0x0\n    .size ASM_PREF\\name, . - ASM_PREF\\name\n    .purgem endfunc\n.endm\n.text ;\n.align \\align ;\n.globl ASM_PREF\\name ;\n.type  ASM_PREF\\name, @function ;\nASM_PREF\\name: ;\n.endm\n\n/**\n *  Attention: If align is not zero, the macro will use\n *  t7 until the end of function\n */\n.macro alloc_stack size, align=0\n.if \\align\n    .macro clean_stack\n        add.d   sp, sp, t7\n    .endm\n    addi.d  sp, sp, - \\size\n    andi.d  t7, sp, \\align - 1\n    sub.d   sp, sp, t7\n    addi.d  t7, t7, \\size\n.else\n    .macro clean_stack\n        addi.d  sp, sp, \\size\n    .endm\n    addi.d  sp, sp, - \\size\n.endif\n.endm\n\n.macro  const name, align=DEFAULT_ALIGN\n    .macro endconst\n    .size  \\name, . - \\name\n    .purgem endconst\n    .endm\n.section .rodata\n.align   \\align\n\\name:\n.endm\n\n/*\n *============================================================================\n * LoongArch register alias\n *============================================================================\n */\n\n#define a0 $a0\n#define a1 $a1\n#define a2 $a2\n#define a3 $a3\n#define a4 $a4\n#define a5 $a5\n#define a6 $a6\n#define a7 $a7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:6", "text": "#define xr9 $xr9\n#define xr10 $xr10\n#define xr11 $xr11\n#define xr12 $xr12\n#define xr13 $xr13\n#define xr14 $xr14\n#define xr15 $xr15\n#define xr16 $xr16\n#define xr17 $xr17\n#define xr18 $xr18\n#define xr19 $xr19\n#define xr20 $xr20\n#define xr21 $xr21\n#define xr22 $xr22\n#define xr23 $xr23\n#define xr24 $xr24\n#define xr25 $xr25\n#define xr26 $xr26\n#define xr27 $xr27\n#define xr28 $xr28\n#define xr29 $xr29\n#define xr30 $xr30\n#define xr31 $xr31\n\n/*\n *============================================================================\n * LSX/LASX synthesize instructions\n *============================================================================\n */\n\n/*\n * Description : Dot product of byte vector elements\n * Arguments   : Inputs  - vj, vk\n *               Outputs - vd\n *               Return Type - halfword\n */\n.macro vdp2.h.bu vd, vj, vk\n    vmulwev.h.bu      \\vd,    \\vj,    \\vk\n    vmaddwod.h.bu     \\vd,    \\vj,    \\vk\n.endm\n\n.macro vdp2.h.bu.b vd, vj, vk\n    vmulwev.h.bu.b    \\vd,    \\vj,    \\vk\n    vmaddwod.h.bu.b   \\vd,    \\vj,    \\vk\n.endm\n\n.macro vdp2.w.h vd, vj, vk\n    vmulwev.w.h       \\vd,    \\vj,    \\vk\n    vmaddwod.w.h      \\vd,    \\vj,    \\vk\n.endm\n\n.macro xvdp2.h.bu xd, xj, xk\n    xvmulwev.h.bu    \\xd,    \\xj,    \\xk\n    xvmaddwod.h.bu   \\xd,    \\xj,    \\xk\n.endm\n\n.macro xvdp2.h.bu.b xd, xj, xk\n    xvmulwev.h.bu.b    \\xd,  \\xj,    \\xk\n    xvmaddwod.h.bu.b   \\xd,  \\xj,    \\xk\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:7", "text": ".macro vdp2.h.bu.b vd, vj, vk\n    vmulwev.h.bu.b    \\vd,    \\vj,    \\vk\n    vmaddwod.h.bu.b   \\vd,    \\vj,    \\vk\n.endm\n\n.macro vdp2.w.h vd, vj, vk\n    vmulwev.w.h       \\vd,    \\vj,    \\vk\n    vmaddwod.w.h      \\vd,    \\vj,    \\vk\n.endm\n\n.macro xvdp2.h.bu xd, xj, xk\n    xvmulwev.h.bu    \\xd,    \\xj,    \\xk\n    xvmaddwod.h.bu   \\xd,    \\xj,    \\xk\n.endm\n\n.macro xvdp2.h.bu.b xd, xj, xk\n    xvmulwev.h.bu.b    \\xd,  \\xj,    \\xk\n    xvmaddwod.h.bu.b   \\xd,  \\xj,    \\xk\n.endm\n\n.macro xvdp2.w.h xd, xj, xk\n    xvmulwev.w.h       \\xd,  \\xj,    \\xk\n    xvmaddwod.w.h      \\xd,  \\xj,    \\xk\n.endm\n\n/*\n * Description : Dot product & addition of halfword vector elements\n * Arguments   : Inputs  - vj, vk\n *               Outputs - vd\n *               Return Type - twice size of input\n */\n.macro vdp2add.h.bu vd, vj, vk\n    vmaddwev.h.bu     \\vd,    \\vj,    \\vk\n    vmaddwod.h.bu     \\vd,    \\vj,    \\vk\n.endm\n\n.macro vdp2add.h.bu.b vd, vj, vk\n    vmaddwev.h.bu.b   \\vd,    \\vj,    \\vk\n    vmaddwod.h.bu.b   \\vd,    \\vj,    \\vk\n.endm\n\n.macro vdp2add.w.h vd, vj, vk\n    vmaddwev.w.h      \\vd,    \\vj,    \\vk\n    vmaddwod.w.h      \\vd,    \\vj,    \\vk\n.endm\n\n.macro xvdp2add.h.bu.b xd, xj, xk\n    xvmaddwev.h.bu.b   \\xd,  \\xj,    \\xk\n    xvmaddwod.h.bu.b   \\xd,  \\xj,    \\xk\n.endm\n\n.macro xvdp2add.w.h xd, xj, xk\n    xvmaddwev.w.h      \\xd,  \\xj,    \\xk\n    xvmaddwod.w.h      \\xd,  \\xj,    \\xk\n.endm\n\n/*\n * Description : Range each element of vector\n * clip: vj > vk ? vj : vk && vj < va ? vj : va", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:8", "text": ".endm\n\n.macro vdp2add.w.h vd, vj, vk\n    vmaddwev.w.h      \\vd,    \\vj,    \\vk\n    vmaddwod.w.h      \\vd,    \\vj,    \\vk\n.endm\n\n.macro xvdp2add.h.bu.b xd, xj, xk\n    xvmaddwev.h.bu.b   \\xd,  \\xj,    \\xk\n    xvmaddwod.h.bu.b   \\xd,  \\xj,    \\xk\n.endm\n\n.macro xvdp2add.w.h xd, xj, xk\n    xvmaddwev.w.h      \\xd,  \\xj,    \\xk\n    xvmaddwod.w.h      \\xd,  \\xj,    \\xk\n.endm\n\n/*\n * Description : Range each element of vector\n * clip: vj > vk ? vj : vk && vj < va ? vj : va\n * clip255: vj < 255 ? vj : 255 && vj > 0 ? vj : 0\n */\n.macro vclip.h  vd,  vj, vk, va\n    vmax.h    \\vd,  \\vj,   \\vk\n    vmin.h    \\vd,  \\vd,   \\va\n.endm\n\n.macro vclip255.w  vd, vj\n    vmaxi.w   \\vd,   \\vj,  0\n    vsat.wu   \\vd,   \\vd,  7\n.endm\n\n.macro vclip255.h  vd, vj\n    vmaxi.h   \\vd,   \\vj,  0\n    vsat.hu   \\vd,   \\vd,  7\n.endm\n\n.macro xvclip.h  xd,  xj, xk, xa\n    xvmax.h    \\xd,  \\xj,   \\xk\n    xvmin.h    \\xd,  \\xd,   \\xa\n.endm\n\n.macro xvclip255.h  xd, xj\n    xvmaxi.h   \\xd,   \\xj,  0\n    xvsat.hu   \\xd,   \\xd,  7\n.endm\n\n.macro xvclip255.w  xd, xj\n    xvmaxi.w   \\xd,   \\xj,  0\n    xvsat.wu   \\xd,   \\xd,  7\n.endm\n\n/*\n * Description : Store elements of vector\n * vd : Data vector to be stored\n * rk : Address of data storage\n * ra : Offset of address\n * si : Index of data in vd\n */\n.macro vstelmx.b vd, rk, ra, si", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:9", "text": ".endm\n\n.macro xvclip255.h  xd, xj\n    xvmaxi.h   \\xd,   \\xj,  0\n    xvsat.hu   \\xd,   \\xd,  7\n.endm\n\n.macro xvclip255.w  xd, xj\n    xvmaxi.w   \\xd,   \\xj,  0\n    xvsat.wu   \\xd,   \\xd,  7\n.endm\n\n/*\n * Description : Store elements of vector\n * vd : Data vector to be stored\n * rk : Address of data storage\n * ra : Offset of address\n * si : Index of data in vd\n */\n.macro vstelmx.b vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.b   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vstelmx.h vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.h   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vstelmx.w vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.w   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vstelmx.d  vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.d   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vmov xd, xj\n    vor.v  \\xd,  \\xj,  \\xj\n.endm\n\n.macro xmov xd, xj\n    xvor.v  \\xd,  \\xj,  \\xj\n.endm\n\n.macro xvstelmx.d  xd, rk, ra, si\n    add.d      \\rk, \\rk,  \\ra\n    xvstelm.d  \\xd, \\rk,  0, \\si\n.endm\n\n/*\n *============================================================================\n * LSX/LASX custom macros\n *============================================================================\n */\n\n/*\n * Load 4 float, double, V128, v256 elements with stride.", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:10", "text": "vor.v  \\xd,  \\xj,  \\xj\n.endm\n\n.macro xmov xd, xj\n    xvor.v  \\xd,  \\xj,  \\xj\n.endm\n\n.macro xvstelmx.d  xd, rk, ra, si\n    add.d      \\rk, \\rk,  \\ra\n    xvstelm.d  \\xd, \\rk,  0, \\si\n.endm\n\n/*\n *============================================================================\n * LSX/LASX custom macros\n *============================================================================\n */\n\n/*\n * Load 4 float, double, V128, v256 elements with stride.\n */\n.macro FLDS_LOADX_4 src, stride, stride2, stride3, out0, out1, out2, out3\n    fld.s     \\out0,    \\src,    0\n    fldx.s    \\out1,    \\src,    \\stride\n    fldx.s    \\out2,    \\src,    \\stride2\n    fldx.s    \\out3,    \\src,    \\stride3\n.endm\n\n.macro FLDD_LOADX_4 src, stride, stride2, stride3, out0, out1, out2, out3\n    fld.d     \\out0,    \\src,    0\n    fldx.d    \\out1,    \\src,    \\stride\n    fldx.d    \\out2,    \\src,    \\stride2\n    fldx.d    \\out3,    \\src,    \\stride3\n.endm\n\n.macro LSX_LOADX_4 src, stride, stride2, stride3, out0, out1, out2, out3\n    vld     \\out0,    \\src,    0\n    vldx    \\out1,    \\src,    \\stride\n    vldx    \\out2,    \\src,    \\stride2\n    vldx    \\out3,    \\src,    \\stride3\n.endm\n\n.macro LASX_LOADX_4 src, stride, stride2, stride3, out0, out1, out2, out3\n    xvld    \\out0,    \\src,    0\n    xvldx   \\out1,    \\src,    \\stride\n    xvldx   \\out2,    \\src,    \\stride2\n    xvldx   \\out3,    \\src,    \\stride3\n.endm\n\n/*\n * Description : Transpose 4x4 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */\n.macro LSX_TRANSPOSE4x4_H in0, in1, in2, in3, out0, out1, out2, out3, \\\n                          tmp0, tmp1\n    vilvl.h   \\tmp0,  \\in1,   \\in0\n    vilvl.h   \\tmp1,  \\in3,   \\in2\n    vilvl.w   \\out0,  \\tmp1,  \\tmp0\n    vilvh.w   \\out2,  \\tmp1,  \\tmp0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:11", "text": ".endm\n\n.macro LASX_LOADX_4 src, stride, stride2, stride3, out0, out1, out2, out3\n    xvld    \\out0,    \\src,    0\n    xvldx   \\out1,    \\src,    \\stride\n    xvldx   \\out2,    \\src,    \\stride2\n    xvldx   \\out3,    \\src,    \\stride3\n.endm\n\n/*\n * Description : Transpose 4x4 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */\n.macro LSX_TRANSPOSE4x4_H in0, in1, in2, in3, out0, out1, out2, out3, \\\n                          tmp0, tmp1\n    vilvl.h   \\tmp0,  \\in1,   \\in0\n    vilvl.h   \\tmp1,  \\in3,   \\in2\n    vilvl.w   \\out0,  \\tmp1,  \\tmp0\n    vilvh.w   \\out2,  \\tmp1,  \\tmp0\n    vilvh.d   \\out1,  \\out0,  \\out0\n    vilvh.d   \\out3,  \\out0,  \\out2\n.endm\n\n/*\n * Description : Transpose 4x4 block with word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n * Details     :\n * Example     :\n *               1, 2, 3, 4            1, 5, 9,13\n *               5, 6, 7, 8    to      2, 6,10,14\n *               9,10,11,12  =====>    3, 7,11,15\n *              13,14,15,16            4, 8,12,16\n */\n.macro LSX_TRANSPOSE4x4_W _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3, \\\n                          _tmp0, _tmp1\n\n    vilvl.w    \\_tmp0,   \\_in1,    \\_in0\n    vilvh.w    \\_out1,   \\_in1,    \\_in0\n    vilvl.w    \\_tmp1,   \\_in3,    \\_in2\n    vilvh.w    \\_out3,   \\_in3,    \\_in2\n\n    vilvl.d    \\_out0,   \\_tmp1,   \\_tmp0\n    vilvl.d    \\_out2,   \\_out3,   \\_out1\n    vilvh.d    \\_out3,   \\_out3,   \\_out1\n    vilvh.d    \\_out1,   \\_tmp1,   \\_tmp0\n.endm\n\n/*\n * Description : Transpose 8x8 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LSX_TRANSPOSE8x8_H in0, in1, in2, in3, in4, in5, in6, in7, out0, out1,   \\\n                          out2, out3, out4, out5, out6, out7, tmp0, tmp1, tmp2, \\\n                          tmp3, tmp4, tmp5, tmp6, tmp7\n    vilvl.h      \\tmp0,    \\in6,   \\in4\n    vilvl.h      \\tmp1,    \\in7,   \\in5\n    vilvl.h      \\tmp2,    \\in2,   \\in0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:12", "text": "vilvl.w    \\_tmp1,   \\_in3,    \\_in2\n    vilvh.w    \\_out3,   \\_in3,    \\_in2\n\n    vilvl.d    \\_out0,   \\_tmp1,   \\_tmp0\n    vilvl.d    \\_out2,   \\_out3,   \\_out1\n    vilvh.d    \\_out3,   \\_out3,   \\_out1\n    vilvh.d    \\_out1,   \\_tmp1,   \\_tmp0\n.endm\n\n/*\n * Description : Transpose 8x8 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LSX_TRANSPOSE8x8_H in0, in1, in2, in3, in4, in5, in6, in7, out0, out1,   \\\n                          out2, out3, out4, out5, out6, out7, tmp0, tmp1, tmp2, \\\n                          tmp3, tmp4, tmp5, tmp6, tmp7\n    vilvl.h      \\tmp0,    \\in6,   \\in4\n    vilvl.h      \\tmp1,    \\in7,   \\in5\n    vilvl.h      \\tmp2,    \\in2,   \\in0\n    vilvl.h      \\tmp3,    \\in3,   \\in1\n\n    vilvl.h      \\tmp4,    \\tmp1,  \\tmp0\n    vilvh.h      \\tmp5,    \\tmp1,  \\tmp0\n    vilvl.h      \\tmp6,    \\tmp3,  \\tmp2\n    vilvh.h      \\tmp7,    \\tmp3,  \\tmp2\n\n    vilvh.h      \\tmp0,    \\in6,   \\in4\n    vilvh.h      \\tmp1,    \\in7,   \\in5\n    vilvh.h      \\tmp2,    \\in2,   \\in0\n    vilvh.h      \\tmp3,    \\in3,   \\in1\n\n    vpickev.d    \\out0,    \\tmp4,  \\tmp6\n    vpickod.d    \\out1,    \\tmp4,  \\tmp6\n    vpickev.d    \\out2,    \\tmp5,  \\tmp7\n    vpickod.d    \\out3,    \\tmp5,  \\tmp7\n\n    vilvl.h      \\tmp4,    \\tmp1,  \\tmp0\n    vilvh.h      \\tmp5,    \\tmp1,  \\tmp0\n    vilvl.h      \\tmp6,    \\tmp3,  \\tmp2\n    vilvh.h      \\tmp7,    \\tmp3,  \\tmp2\n\n    vpickev.d    \\out4,    \\tmp4,  \\tmp6\n    vpickod.d    \\out5,    \\tmp4,  \\tmp6\n    vpickev.d    \\out6,    \\tmp5,  \\tmp7\n    vpickod.d    \\out7,    \\tmp5,  \\tmp7\n.endm\n\n/*\n * Description : Transpose 16x8 block with byte elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LASX_TRANSPOSE16X8_B in0, in1, in2, in3, in4, in5, in6, in7,        \\\n                            in8, in9, in10, in11, in12, in13, in14, in15,  \\\n                            out0, out1, out2, out3, out4, out5, out6, out7,\\\n                            tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7\n    xvilvl.b   \\tmp0,    \\in2,     \\in0\n    xvilvl.b   \\tmp1,    \\in3,     \\in1\n    xvilvl.b   \\tmp2,    \\in6,     \\in4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:13", "text": "vilvh.h      \\tmp7,    \\tmp3,  \\tmp2\n\n    vpickev.d    \\out4,    \\tmp4,  \\tmp6\n    vpickod.d    \\out5,    \\tmp4,  \\tmp6\n    vpickev.d    \\out6,    \\tmp5,  \\tmp7\n    vpickod.d    \\out7,    \\tmp5,  \\tmp7\n.endm\n\n/*\n * Description : Transpose 16x8 block with byte elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LASX_TRANSPOSE16X8_B in0, in1, in2, in3, in4, in5, in6, in7,        \\\n                            in8, in9, in10, in11, in12, in13, in14, in15,  \\\n                            out0, out1, out2, out3, out4, out5, out6, out7,\\\n                            tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7\n    xvilvl.b   \\tmp0,    \\in2,     \\in0\n    xvilvl.b   \\tmp1,    \\in3,     \\in1\n    xvilvl.b   \\tmp2,    \\in6,     \\in4\n    xvilvl.b   \\tmp3,    \\in7,     \\in5\n    xvilvl.b   \\tmp4,    \\in10,    \\in8\n    xvilvl.b   \\tmp5,    \\in11,    \\in9\n    xvilvl.b   \\tmp6,    \\in14,    \\in12\n    xvilvl.b   \\tmp7,    \\in15,    \\in13\n    xvilvl.b   \\out0,    \\tmp1,    \\tmp0\n    xvilvh.b   \\out1,    \\tmp1,    \\tmp0\n    xvilvl.b   \\out2,    \\tmp3,    \\tmp2\n    xvilvh.b   \\out3,    \\tmp3,    \\tmp2\n    xvilvl.b   \\out4,    \\tmp5,    \\tmp4\n    xvilvh.b   \\out5,    \\tmp5,    \\tmp4\n    xvilvl.b   \\out6,    \\tmp7,    \\tmp6\n    xvilvh.b   \\out7,    \\tmp7,    \\tmp6\n    xvilvl.w   \\tmp0,    \\out2,    \\out0\n    xvilvh.w   \\tmp2,    \\out2,    \\out0\n    xvilvl.w   \\tmp4,    \\out3,    \\out1\n    xvilvh.w   \\tmp6,    \\out3,    \\out1\n    xvilvl.w   \\tmp1,    \\out6,    \\out4\n    xvilvh.w   \\tmp3,    \\out6,    \\out4\n    xvilvl.w   \\tmp5,    \\out7,    \\out5\n    xvilvh.w   \\tmp7,    \\out7,    \\out5\n    xvilvl.d   \\out0,    \\tmp1,    \\tmp0\n    xvilvh.d   \\out1,    \\tmp1,    \\tmp0\n    xvilvl.d   \\out2,    \\tmp3,    \\tmp2\n    xvilvh.d   \\out3,    \\tmp3,    \\tmp2\n    xvilvl.d   \\out4,    \\tmp5,    \\tmp4\n    xvilvh.d   \\out5,    \\tmp5,    \\tmp4\n    xvilvl.d   \\out6,    \\tmp7,    \\tmp6\n    xvilvh.d   \\out7,    \\tmp7,    \\tmp6\n.endm\n\n/*\n * Description : Transpose 16x8 block with byte elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LSX_TRANSPOSE16X8_B in0, in1, in2, in3, in4, in5, in6, in7,        \\\n                           in8, in9, in10, in11, in12, in13, in14, in15,  \\\n                           out0, out1, out2, out3, out4, out5, out6, out7,\\\n                           tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:14", "text": "xvilvh.w   \\tmp7,    \\out7,    \\out5\n    xvilvl.d   \\out0,    \\tmp1,    \\tmp0\n    xvilvh.d   \\out1,    \\tmp1,    \\tmp0\n    xvilvl.d   \\out2,    \\tmp3,    \\tmp2\n    xvilvh.d   \\out3,    \\tmp3,    \\tmp2\n    xvilvl.d   \\out4,    \\tmp5,    \\tmp4\n    xvilvh.d   \\out5,    \\tmp5,    \\tmp4\n    xvilvl.d   \\out6,    \\tmp7,    \\tmp6\n    xvilvh.d   \\out7,    \\tmp7,    \\tmp6\n.endm\n\n/*\n * Description : Transpose 16x8 block with byte elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LSX_TRANSPOSE16X8_B in0, in1, in2, in3, in4, in5, in6, in7,        \\\n                           in8, in9, in10, in11, in12, in13, in14, in15,  \\\n                           out0, out1, out2, out3, out4, out5, out6, out7,\\\n                           tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7\n    vilvl.b   \\tmp0,    \\in2,     \\in0\n    vilvl.b   \\tmp1,    \\in3,     \\in1\n    vilvl.b   \\tmp2,    \\in6,     \\in4\n    vilvl.b   \\tmp3,    \\in7,     \\in5\n    vilvl.b   \\tmp4,    \\in10,    \\in8\n    vilvl.b   \\tmp5,    \\in11,    \\in9\n    vilvl.b   \\tmp6,    \\in14,    \\in12\n    vilvl.b   \\tmp7,    \\in15,    \\in13\n\n    vilvl.b   \\out0,    \\tmp1,    \\tmp0\n    vilvh.b   \\out1,    \\tmp1,    \\tmp0\n    vilvl.b   \\out2,    \\tmp3,    \\tmp2\n    vilvh.b   \\out3,    \\tmp3,    \\tmp2\n    vilvl.b   \\out4,    \\tmp5,    \\tmp4\n    vilvh.b   \\out5,    \\tmp5,    \\tmp4\n    vilvl.b   \\out6,    \\tmp7,    \\tmp6\n    vilvh.b   \\out7,    \\tmp7,    \\tmp6\n    vilvl.w   \\tmp0,    \\out2,    \\out0\n    vilvh.w   \\tmp2,    \\out2,    \\out0\n    vilvl.w   \\tmp4,    \\out3,    \\out1\n    vilvh.w   \\tmp6,    \\out3,    \\out1\n    vilvl.w   \\tmp1,    \\out6,    \\out4\n    vilvh.w   \\tmp3,    \\out6,    \\out4\n    vilvl.w   \\tmp5,    \\out7,    \\out5\n    vilvh.w   \\tmp7,    \\out7,    \\out5\n    vilvl.d   \\out0,    \\tmp1,    \\tmp0\n    vilvh.d   \\out1,    \\tmp1,    \\tmp0\n    vilvl.d   \\out2,    \\tmp3,    \\tmp2\n    vilvh.d   \\out3,    \\tmp3,    \\tmp2\n    vilvl.d   \\out4,    \\tmp5,    \\tmp4\n    vilvh.d   \\out5,    \\tmp5,    \\tmp4\n    vilvl.d   \\out6,    \\tmp7,    \\tmp6\n    vilvh.d   \\out7,    \\tmp7,    \\tmp6\n.endm\n\n/*\n * Description : Transpose 4x4 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:15", "text": "vilvh.w   \\tmp6,    \\out3,    \\out1\n    vilvl.w   \\tmp1,    \\out6,    \\out4\n    vilvh.w   \\tmp3,    \\out6,    \\out4\n    vilvl.w   \\tmp5,    \\out7,    \\out5\n    vilvh.w   \\tmp7,    \\out7,    \\out5\n    vilvl.d   \\out0,    \\tmp1,    \\tmp0\n    vilvh.d   \\out1,    \\tmp1,    \\tmp0\n    vilvl.d   \\out2,    \\tmp3,    \\tmp2\n    vilvh.d   \\out3,    \\tmp3,    \\tmp2\n    vilvl.d   \\out4,    \\tmp5,    \\tmp4\n    vilvh.d   \\out5,    \\tmp5,    \\tmp4\n    vilvl.d   \\out6,    \\tmp7,    \\tmp6\n    vilvh.d   \\out7,    \\tmp7,    \\tmp6\n.endm\n\n/*\n * Description : Transpose 4x4 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */\n.macro LASX_TRANSPOSE4x4_H in0, in1, in2, in3, out0, out1, out2, out3, \\\n                           tmp0, tmp1\n    xvilvl.h   \\tmp0,  \\in1,   \\in0\n    xvilvl.h   \\tmp1,  \\in3,   \\in2\n    xvilvl.w   \\out0,  \\tmp1,  \\tmp0\n    xvilvh.w   \\out2,  \\tmp1,  \\tmp0\n    xvilvh.d   \\out1,  \\out0,  \\out0\n    xvilvh.d   \\out3,  \\out0,  \\out2\n.endm\n\n/*\n * Description : Transpose 4x8 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */\n.macro LASX_TRANSPOSE4x8_H in0, in1, in2, in3, out0, out1, out2, out3, \\\n                           tmp0, tmp1\n    xvilvl.h      \\tmp0,    \\in2,   \\in0\n    xvilvl.h      \\tmp1,    \\in3,   \\in1\n    xvilvl.h      \\out2,    \\tmp1,  \\tmp0\n    xvilvh.h      \\out3,    \\tmp1,  \\tmp0\n\n    xvilvl.d      \\out0,    \\out2,  \\out2\n    xvilvh.d      \\out1,    \\out2,  \\out2\n    xvilvl.d      \\out2,    \\out3,  \\out3\n    xvilvh.d      \\out3,    \\out3,  \\out3\n.endm\n\n/*\n * Description : Transpose 8x8 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LASX_TRANSPOSE8x8_H in0, in1, in2, in3, in4, in5, in6, in7,         \\\n                           out0, out1, out2, out3, out4, out5, out6, out7, \\\n                           tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7\n    xvilvl.h     \\tmp0,   \\in6,     \\in4\n    xvilvl.h     \\tmp1,   \\in7,     \\in5\n    xvilvl.h     \\tmp2,   \\in2,     \\in0\n    xvilvl.h     \\tmp3,   \\in3,     \\in1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:16", "text": "xvilvh.h      \\out3,    \\tmp1,  \\tmp0\n\n    xvilvl.d      \\out0,    \\out2,  \\out2\n    xvilvh.d      \\out1,    \\out2,  \\out2\n    xvilvl.d      \\out2,    \\out3,  \\out3\n    xvilvh.d      \\out3,    \\out3,  \\out3\n.endm\n\n/*\n * Description : Transpose 8x8 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3, in4, in5, in6, in7\n *               Outputs - out0, out1, out2, out3, out4, out5, out6, out7\n */\n.macro LASX_TRANSPOSE8x8_H in0, in1, in2, in3, in4, in5, in6, in7,         \\\n                           out0, out1, out2, out3, out4, out5, out6, out7, \\\n                           tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7\n    xvilvl.h     \\tmp0,   \\in6,     \\in4\n    xvilvl.h     \\tmp1,   \\in7,     \\in5\n    xvilvl.h     \\tmp2,   \\in2,     \\in0\n    xvilvl.h     \\tmp3,   \\in3,     \\in1\n\n    xvilvl.h     \\tmp4,   \\tmp1,    \\tmp0\n    xvilvh.h     \\tmp5,   \\tmp1,    \\tmp0\n    xvilvl.h     \\tmp6,   \\tmp3,    \\tmp2\n    xvilvh.h     \\tmp7,   \\tmp3,    \\tmp2\n\n    xvilvh.h     \\tmp0,   \\in6,     \\in4\n    xvilvh.h     \\tmp1,   \\in7,     \\in5\n    xvilvh.h     \\tmp2,   \\in2,     \\in0\n    xvilvh.h     \\tmp3,   \\in3,     \\in1\n\n    xvpickev.d   \\out0,   \\tmp4,    \\tmp6\n    xvpickod.d   \\out1,   \\tmp4,    \\tmp6\n    xvpickev.d   \\out2,   \\tmp5,    \\tmp7\n    xvpickod.d   \\out3,   \\tmp5,    \\tmp7\n\n    xvilvl.h     \\tmp4,   \\tmp1,    \\tmp0\n    xvilvh.h     \\tmp5,   \\tmp1,    \\tmp0\n    xvilvl.h     \\tmp6,   \\tmp3,    \\tmp2\n    xvilvh.h     \\tmp7,   \\tmp3,    \\tmp2\n\n    xvpickev.d   \\out4,   \\tmp4,    \\tmp6\n    xvpickod.d   \\out5,   \\tmp4,    \\tmp6\n    xvpickev.d   \\out6,   \\tmp5,    \\tmp7\n    xvpickod.d   \\out7,   \\tmp5,    \\tmp7\n.endm\n\n/*\n * Description : Transpose 2x4x4 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */\n.macro LASX_TRANSPOSE2x4x4_H in0, in1, in2, in3, out0, out1, out2, out3, \\\n                             tmp0, tmp1, tmp2\n    xvilvh.h   \\tmp1,    \\in0,     \\in1\n    xvilvl.h   \\out1,    \\in0,     \\in1\n    xvilvh.h   \\tmp0,    \\in2,     \\in3\n    xvilvl.h   \\out3,    \\in2,     \\in3\n\n    xvilvh.w   \\tmp2,    \\out3,    \\out1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:17", "text": "xvpickev.d   \\out4,   \\tmp4,    \\tmp6\n    xvpickod.d   \\out5,   \\tmp4,    \\tmp6\n    xvpickev.d   \\out6,   \\tmp5,    \\tmp7\n    xvpickod.d   \\out7,   \\tmp5,    \\tmp7\n.endm\n\n/*\n * Description : Transpose 2x4x4 block with half-word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n */\n.macro LASX_TRANSPOSE2x4x4_H in0, in1, in2, in3, out0, out1, out2, out3, \\\n                             tmp0, tmp1, tmp2\n    xvilvh.h   \\tmp1,    \\in0,     \\in1\n    xvilvl.h   \\out1,    \\in0,     \\in1\n    xvilvh.h   \\tmp0,    \\in2,     \\in3\n    xvilvl.h   \\out3,    \\in2,     \\in3\n\n    xvilvh.w   \\tmp2,    \\out3,    \\out1\n    xvilvl.w   \\out3,    \\out3,    \\out1\n\n    xvilvl.w   \\out2,    \\tmp0,    \\tmp1\n    xvilvh.w   \\tmp1,    \\tmp0,    \\tmp1\n\n    xvilvh.d   \\out0,    \\out2,    \\out3\n    xvilvl.d   \\out2,    \\out2,    \\out3\n    xvilvh.d   \\out1,    \\tmp1,    \\tmp2\n    xvilvl.d   \\out3,    \\tmp1,    \\tmp2\n.endm\n\n/*\n * Description : Transpose 4x4 block with word elements in vectors\n * Arguments   : Inputs  - in0, in1, in2, in3\n *               Outputs - out0, out1, out2, out3\n * Details     :\n * Example     :\n *               1, 2, 3, 4,  1, 2, 3, 4        1,5, 9,13, 1,5, 9,13\n *               5, 6, 7, 8,  5, 6, 7, 8   to   2,6,10,14, 2,6,10,14\n *               9,10,11,12,  9,10,11,12 =====> 3,7,11,15, 3,7,11,15\n *              13,14,15,16, 13,14,15,16        4,8,12,16, 4,8,12,16\n */\n.macro LASX_TRANSPOSE4x4_W _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3, \\\n                           _tmp0, _tmp1\n\n    xvilvl.w    \\_tmp0,   \\_in1,    \\_in0\n    xvilvh.w    \\_out1,   \\_in1,    \\_in0\n    xvilvl.w    \\_tmp1,   \\_in3,    \\_in2\n    xvilvh.w    \\_out3,   \\_in3,    \\_in2\n\n    xvilvl.d    \\_out0,   \\_tmp1,   \\_tmp0\n    xvilvl.d    \\_out2,   \\_out3,   \\_out1\n    xvilvh.d    \\_out3,   \\_out3,   \\_out1\n    xvilvh.d    \\_out1,   \\_tmp1,   \\_tmp0\n.endm\n\n/*\n * Description : Transpose 8x8 block with word elements in vectors\n * Arguments   : Inputs  - _in0, _in1, _in2, _in3, _in4, _in5, _in6, _in7\n *               Outputs - _out0, _out1, _out2, _out3, _out4, _out5, _out6,", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:18", "text": "*              13,14,15,16, 13,14,15,16        4,8,12,16, 4,8,12,16\n */\n.macro LASX_TRANSPOSE4x4_W _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3, \\\n                           _tmp0, _tmp1\n\n    xvilvl.w    \\_tmp0,   \\_in1,    \\_in0\n    xvilvh.w    \\_out1,   \\_in1,    \\_in0\n    xvilvl.w    \\_tmp1,   \\_in3,    \\_in2\n    xvilvh.w    \\_out3,   \\_in3,    \\_in2\n\n    xvilvl.d    \\_out0,   \\_tmp1,   \\_tmp0\n    xvilvl.d    \\_out2,   \\_out3,   \\_out1\n    xvilvh.d    \\_out3,   \\_out3,   \\_out1\n    xvilvh.d    \\_out1,   \\_tmp1,   \\_tmp0\n.endm\n\n/*\n * Description : Transpose 8x8 block with word elements in vectors\n * Arguments   : Inputs  - _in0, _in1, _in2, _in3, _in4, _in5, _in6, _in7\n *               Outputs - _out0, _out1, _out2, _out3, _out4, _out5, _out6,\n *               _out7\n * Example     : LASX_TRANSPOSE8x8_W\n *        _in0 : 1,2,3,4,5,6,7,8\n *        _in1 : 2,2,3,4,5,6,7,8\n *        _in2 : 3,2,3,4,5,6,7,8\n *        _in3 : 4,2,3,4,5,6,7,8\n *        _in4 : 5,2,3,4,5,6,7,8\n *        _in5 : 6,2,3,4,5,6,7,8\n *        _in6 : 7,2,3,4,5,6,7,8\n *        _in7 : 8,2,3,4,5,6,7,8\n *\n *       _out0 : 1,2,3,4,5,6,7,8\n *       _out1 : 2,2,2,2,2,2,2,2\n *       _out2 : 3,3,3,3,3,3,3,3\n *       _out3 : 4,4,4,4,4,4,4,4\n *       _out4 : 5,5,5,5,5,5,5,5\n *       _out5 : 6,6,6,6,6,6,6,6\n *       _out6 : 7,7,7,7,7,7,7,7\n *       _out7 : 8,8,8,8,8,8,8,8\n */\n.macro LASX_TRANSPOSE8x8_W _in0, _in1, _in2, _in3, _in4, _in5, _in6, _in7,\\\n                           _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7,\\\n                           _tmp0, _tmp1, _tmp2, _tmp3\n    xvilvl.w    \\_tmp0,   \\_in2,    \\_in0\n    xvilvl.w    \\_tmp1,   \\_in3,    \\_in1\n    xvilvh.w    \\_tmp2,   \\_in2,    \\_in0\n    xvilvh.w    \\_tmp3,   \\_in3,    \\_in1\n    xvilvl.w    \\_out0,   \\_tmp1,   \\_tmp0\n    xvilvh.w    \\_out1,   \\_tmp1,   \\_tmp0\n    xvilvl.w    \\_out2,   \\_tmp3,   \\_tmp2\n    xvilvh.w    \\_out3,   \\_tmp3,   \\_tmp2\n\n    xvilvl.w    \\_tmp0,   \\_in6,    \\_in4\n    xvilvl.w    \\_tmp1,   \\_in7,    \\_in5\n    xvilvh.w    \\_tmp2,   \\_in6,    \\_in4\n    xvilvh.w    \\_tmp3,   \\_in7,    \\_in5\n    xvilvl.w    \\_out4,   \\_tmp1,   \\_tmp0\n    xvilvh.w    \\_out5,   \\_tmp1,   \\_tmp0\n    xvilvl.w    \\_out6,   \\_tmp3,   \\_tmp2\n    xvilvh.w    \\_out7,   \\_tmp3,   \\_tmp2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:19", "text": ".macro LASX_TRANSPOSE8x8_W _in0, _in1, _in2, _in3, _in4, _in5, _in6, _in7,\\\n                           _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7,\\\n                           _tmp0, _tmp1, _tmp2, _tmp3\n    xvilvl.w    \\_tmp0,   \\_in2,    \\_in0\n    xvilvl.w    \\_tmp1,   \\_in3,    \\_in1\n    xvilvh.w    \\_tmp2,   \\_in2,    \\_in0\n    xvilvh.w    \\_tmp3,   \\_in3,    \\_in1\n    xvilvl.w    \\_out0,   \\_tmp1,   \\_tmp0\n    xvilvh.w    \\_out1,   \\_tmp1,   \\_tmp0\n    xvilvl.w    \\_out2,   \\_tmp3,   \\_tmp2\n    xvilvh.w    \\_out3,   \\_tmp3,   \\_tmp2\n\n    xvilvl.w    \\_tmp0,   \\_in6,    \\_in4\n    xvilvl.w    \\_tmp1,   \\_in7,    \\_in5\n    xvilvh.w    \\_tmp2,   \\_in6,    \\_in4\n    xvilvh.w    \\_tmp3,   \\_in7,    \\_in5\n    xvilvl.w    \\_out4,   \\_tmp1,   \\_tmp0\n    xvilvh.w    \\_out5,   \\_tmp1,   \\_tmp0\n    xvilvl.w    \\_out6,   \\_tmp3,   \\_tmp2\n    xvilvh.w    \\_out7,   \\_tmp3,   \\_tmp2\n\n    xmov        \\_tmp0,   \\_out0\n    xmov        \\_tmp1,   \\_out1\n    xmov        \\_tmp2,   \\_out2\n    xmov        \\_tmp3,   \\_out3\n    xvpermi.q   \\_out0,   \\_out4,   0x02\n    xvpermi.q   \\_out1,   \\_out5,   0x02\n    xvpermi.q   \\_out2,   \\_out6,   0x02\n    xvpermi.q   \\_out3,   \\_out7,   0x02\n    xvpermi.q   \\_out4,   \\_tmp0,   0x31\n    xvpermi.q   \\_out5,   \\_tmp1,   0x31\n    xvpermi.q   \\_out6,   \\_tmp2,   0x31\n    xvpermi.q   \\_out7,   \\_tmp3,   0x31\n.endm\n\n/*\n * Description : Transpose 4x4 block with double-word elements in vectors\n * Arguments   : Inputs  - _in0, _in1, _in2, _in3\n *               Outputs - _out0, _out1, _out2, _out3\n * Example     : LASX_TRANSPOSE4x4_D\n *        _in0 : 1,2,3,4\n *        _in1 : 1,2,3,4\n *        _in2 : 1,2,3,4\n *        _in3 : 1,2,3,4\n *\n *       _out0 : 1,1,1,1\n *       _out1 : 2,2,2,2\n *       _out2 : 3,3,3,3\n *       _out3 : 4,4,4,4\n */\n.macro LASX_TRANSPOSE4x4_D _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3, \\\n                           _tmp0, _tmp1\n    xvilvl.d    \\_tmp0,   \\_in1,    \\_in0\n    xvilvh.d    \\_out1,   \\_in1,    \\_in0\n    xvilvh.d    \\_tmp1,   \\_in3,    \\_in2\n    xvilvl.d    \\_out2,   \\_in3,    \\_in2\n\n    xvor.v      \\_out0,   \\_tmp0,   \\_tmp0\n    xvor.v      \\_out3,   \\_tmp1,   \\_tmp1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:20", "text": "*        _in0 : 1,2,3,4\n *        _in1 : 1,2,3,4\n *        _in2 : 1,2,3,4\n *        _in3 : 1,2,3,4\n *\n *       _out0 : 1,1,1,1\n *       _out1 : 2,2,2,2\n *       _out2 : 3,3,3,3\n *       _out3 : 4,4,4,4\n */\n.macro LASX_TRANSPOSE4x4_D _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3, \\\n                           _tmp0, _tmp1\n    xvilvl.d    \\_tmp0,   \\_in1,    \\_in0\n    xvilvh.d    \\_out1,   \\_in1,    \\_in0\n    xvilvh.d    \\_tmp1,   \\_in3,    \\_in2\n    xvilvl.d    \\_out2,   \\_in3,    \\_in2\n\n    xvor.v      \\_out0,   \\_tmp0,   \\_tmp0\n    xvor.v      \\_out3,   \\_tmp1,   \\_tmp1\n\n    xvpermi.q   \\_out0,   \\_out2,   0x02\n    xvpermi.q   \\_out2,   \\_tmp0,   0x31\n    xvpermi.q   \\_out3,   \\_out1,   0x31\n    xvpermi.q   \\_out1,   \\_tmp1,   0x02\n.endm\n\n/*\n * Description : Butterfly of 4 input vectors\n * Arguments   : Inputs  - _in0, _in1, _in2, _in3\n *               Outputs - _out0, _out1, _out2, _out3\n * Details     : Butterfly operation\n * Example     : LSX_BUTTERFLY_4\n *               _out0 = _in0 + _in3;\n *               _out1 = _in1 + _in2;\n *               _out2 = _in1 - _in2;\n *               _out3 = _in0 - _in3;\n */\n.macro LSX_BUTTERFLY_4_B _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.b   \\_out0,   \\_in0,   \\_in3\n    vadd.b   \\_out1,   \\_in1,   \\_in2\n    vsub.b   \\_out2,   \\_in1,   \\_in2\n    vsub.b   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LSX_BUTTERFLY_4_H _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.h   \\_out0,   \\_in0,   \\_in3\n    vadd.h   \\_out1,   \\_in1,   \\_in2\n    vsub.h   \\_out2,   \\_in1,   \\_in2\n    vsub.h   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LSX_BUTTERFLY_4_W _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.w   \\_out0,   \\_in0,   \\_in3\n    vadd.w   \\_out1,   \\_in1,   \\_in2\n    vsub.w   \\_out2,   \\_in1,   \\_in2\n    vsub.w   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LSX_BUTTERFLY_4_D _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.d   \\_out0,   \\_in0,   \\_in3\n    vadd.d   \\_out1,   \\_in1,   \\_in2\n    vsub.d   \\_out2,   \\_in1,   \\_in2\n    vsub.d   \\_out3,   \\_in0,   \\_in3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:21", "text": "vsub.b   \\_out2,   \\_in1,   \\_in2\n    vsub.b   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LSX_BUTTERFLY_4_H _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.h   \\_out0,   \\_in0,   \\_in3\n    vadd.h   \\_out1,   \\_in1,   \\_in2\n    vsub.h   \\_out2,   \\_in1,   \\_in2\n    vsub.h   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LSX_BUTTERFLY_4_W _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.w   \\_out0,   \\_in0,   \\_in3\n    vadd.w   \\_out1,   \\_in1,   \\_in2\n    vsub.w   \\_out2,   \\_in1,   \\_in2\n    vsub.w   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LSX_BUTTERFLY_4_D _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    vadd.d   \\_out0,   \\_in0,   \\_in3\n    vadd.d   \\_out1,   \\_in1,   \\_in2\n    vsub.d   \\_out2,   \\_in1,   \\_in2\n    vsub.d   \\_out3,   \\_in0,   \\_in3\n.endm\n\n.macro LASX_BUTTERFLY_4_B _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    xvadd.b   \\_out0,   \\_in0,   \\_in3\n    xvadd.b   \\_out1,   \\_in1,   \\_in2\n    xvsub.b   \\_out2,   \\_in1,   \\_in2\n    xvsub.b   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LASX_BUTTERFLY_4_H _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    xvadd.h   \\_out0,   \\_in0,   \\_in3\n    xvadd.h   \\_out1,   \\_in1,   \\_in2\n    xvsub.h   \\_out2,   \\_in1,   \\_in2\n    xvsub.h   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LASX_BUTTERFLY_4_W _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    xvadd.w   \\_out0,   \\_in0,   \\_in3\n    xvadd.w   \\_out1,   \\_in1,   \\_in2\n    xvsub.w   \\_out2,   \\_in1,   \\_in2\n    xvsub.w   \\_out3,   \\_in0,   \\_in3\n.endm\n.macro LASX_BUTTERFLY_4_D _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    xvadd.d   \\_out0,   \\_in0,   \\_in3\n    xvadd.d   \\_out1,   \\_in1,   \\_in2\n    xvsub.d   \\_out2,   \\_in1,   \\_in2\n    xvsub.d   \\_out3,   \\_in0,   \\_in3\n.endm\n\n/*\n * Description : Butterfly of 8 input vectors\n * Arguments   : Inputs  - _in0, _in1, _in2, _in3, ~\n *               Outputs - _out0, _out1, _out2, _out3, ~\n * Details     : Butterfly operation\n * Example     : LASX_BUTTERFLY_8\n *               _out0 = _in0 + _in7;\n *               _out1 = _in1 + _in6;\n *               _out2 = _in2 + _in5;\n *               _out3 = _in3 + _in4;\n *               _out4 = _in3 - _in4;\n *               _out5 = _in2 - _in5;\n *               _out6 = _in1 - _in6;", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:22", "text": ".macro LASX_BUTTERFLY_4_D _in0, _in1, _in2, _in3, _out0, _out1, _out2, _out3\n    xvadd.d   \\_out0,   \\_in0,   \\_in3\n    xvadd.d   \\_out1,   \\_in1,   \\_in2\n    xvsub.d   \\_out2,   \\_in1,   \\_in2\n    xvsub.d   \\_out3,   \\_in0,   \\_in3\n.endm\n\n/*\n * Description : Butterfly of 8 input vectors\n * Arguments   : Inputs  - _in0, _in1, _in2, _in3, ~\n *               Outputs - _out0, _out1, _out2, _out3, ~\n * Details     : Butterfly operation\n * Example     : LASX_BUTTERFLY_8\n *               _out0 = _in0 + _in7;\n *               _out1 = _in1 + _in6;\n *               _out2 = _in2 + _in5;\n *               _out3 = _in3 + _in4;\n *               _out4 = _in3 - _in4;\n *               _out5 = _in2 - _in5;\n *               _out6 = _in1 - _in6;\n *               _out7 = _in0 - _in7;\n */\n.macro LSX_BUTTERFLY_8_B _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                         _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    vadd.b    \\_out0,    \\_in0,    \\_in7\n    vadd.b    \\_out1,    \\_in1,    \\_in6\n    vadd.b    \\_out2,    \\_in2,    \\_in5\n    vadd.b    \\_out3,    \\_in3,    \\_in4\n    vsub.b    \\_out4,    \\_in3,    \\_in4\n    vsub.b    \\_out5,    \\_in2,    \\_in5\n    vsub.b    \\_out6,    \\_in1,    \\_in6\n    vsub.b    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LSX_BUTTERFLY_8_H _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                         _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    vadd.h    \\_out0,    \\_in0,    \\_in7\n    vadd.h    \\_out1,    \\_in1,    \\_in6\n    vadd.h    \\_out2,    \\_in2,    \\_in5\n    vadd.h    \\_out3,    \\_in3,    \\_in4\n    vsub.h    \\_out4,    \\_in3,    \\_in4\n    vsub.h    \\_out5,    \\_in2,    \\_in5\n    vsub.h    \\_out6,    \\_in1,    \\_in6\n    vsub.h    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LSX_BUTTERFLY_8_W _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                         _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    vadd.w    \\_out0,    \\_in0,    \\_in7\n    vadd.w    \\_out1,    \\_in1,    \\_in6\n    vadd.w    \\_out2,    \\_in2,    \\_in5\n    vadd.w    \\_out3,    \\_in3,    \\_in4\n    vsub.w    \\_out4,    \\_in3,    \\_in4\n    vsub.w    \\_out5,    \\_in2,    \\_in5\n    vsub.w    \\_out6,    \\_in1,    \\_in6\n    vsub.w    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LSX_BUTTERFLY_8_D _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                         _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:23", "text": "vsub.h    \\_out4,    \\_in3,    \\_in4\n    vsub.h    \\_out5,    \\_in2,    \\_in5\n    vsub.h    \\_out6,    \\_in1,    \\_in6\n    vsub.h    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LSX_BUTTERFLY_8_W _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                         _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    vadd.w    \\_out0,    \\_in0,    \\_in7\n    vadd.w    \\_out1,    \\_in1,    \\_in6\n    vadd.w    \\_out2,    \\_in2,    \\_in5\n    vadd.w    \\_out3,    \\_in3,    \\_in4\n    vsub.w    \\_out4,    \\_in3,    \\_in4\n    vsub.w    \\_out5,    \\_in2,    \\_in5\n    vsub.w    \\_out6,    \\_in1,    \\_in6\n    vsub.w    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LSX_BUTTERFLY_8_D _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                         _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    vadd.d    \\_out0,    \\_in0,    \\_in7\n    vadd.d    \\_out1,    \\_in1,    \\_in6\n    vadd.d    \\_out2,    \\_in2,    \\_in5\n    vadd.d    \\_out3,    \\_in3,    \\_in4\n    vsub.d    \\_out4,    \\_in3,    \\_in4\n    vsub.d    \\_out5,    \\_in2,    \\_in5\n    vsub.d    \\_out6,    \\_in1,    \\_in6\n    vsub.d    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LASX_BUTTERFLY_8_B _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                          _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    xvadd.b    \\_out0,    \\_in0,    \\_in7\n    xvadd.b    \\_out1,    \\_in1,    \\_in6\n    xvadd.b    \\_out2,    \\_in2,    \\_in5\n    xvadd.b    \\_out3,    \\_in3,    \\_in4\n    xvsub.b    \\_out4,    \\_in3,    \\_in4\n    xvsub.b    \\_out5,    \\_in2,    \\_in5\n    xvsub.b    \\_out6,    \\_in1,    \\_in6\n    xvsub.b    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LASX_BUTTERFLY_8_H _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                          _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    xvadd.h    \\_out0,    \\_in0,    \\_in7\n    xvadd.h    \\_out1,    \\_in1,    \\_in6\n    xvadd.h    \\_out2,    \\_in2,    \\_in5\n    xvadd.h    \\_out3,    \\_in3,    \\_in4\n    xvsub.h    \\_out4,    \\_in3,    \\_in4\n    xvsub.h    \\_out5,    \\_in2,    \\_in5\n    xvsub.h    \\_out6,    \\_in1,    \\_in6\n    xvsub.h    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LASX_BUTTERFLY_8_W _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                          _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    xvadd.w    \\_out0,    \\_in0,    \\_in7\n    xvadd.w    \\_out1,    \\_in1,    \\_in6\n    xvadd.w    \\_out2,    \\_in2,    \\_in5\n    xvadd.w    \\_out3,    \\_in3,    \\_in4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:24", "text": ".endm\n\n.macro LASX_BUTTERFLY_8_H _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                          _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    xvadd.h    \\_out0,    \\_in0,    \\_in7\n    xvadd.h    \\_out1,    \\_in1,    \\_in6\n    xvadd.h    \\_out2,    \\_in2,    \\_in5\n    xvadd.h    \\_out3,    \\_in3,    \\_in4\n    xvsub.h    \\_out4,    \\_in3,    \\_in4\n    xvsub.h    \\_out5,    \\_in2,    \\_in5\n    xvsub.h    \\_out6,    \\_in1,    \\_in6\n    xvsub.h    \\_out7,    \\_in0,    \\_in7\n.endm\n\n.macro LASX_BUTTERFLY_8_W _in0,  _in1,  _in2,  _in3,  _in4,  _in5,  _in6,  _in7, \\\n                          _out0, _out1, _out2, _out3, _out4, _out5, _out6, _out7\n    xvadd.w    \\_out0,    \\_in0,    \\_in7\n    xvadd.w    \\_out1,    \\_in1,    \\_in6\n    xvadd.w    \\_out2,    \\_in2,    \\_in5\n    xvadd.w    \\_out3,    \\_in3,    \\_in4\n    xvsub.w    \\_out4,    \\_in3,    \\_in4\n    xvsub.w    \\_out5,    \\_in2,    \\_in5\n    xvsub.w    \\_out6,    \\_in1,    \\_in6\n    xvsub.w    \\_out7,    \\_in0,    \\_in7\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/loongarch/loongson_asm.S", "line_start": 921, "line_end": 945}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:8", "text": ".endm\n\n.macro vdp2add.w.h vd, vj, vk\n    vmaddwev.w.h      \\vd,    \\vj,    \\vk\n    vmaddwod.w.h      \\vd,    \\vj,    \\vk\n.endm\n\n.macro xvdp2add.h.bu.b xd, xj, xk\n    xvmaddwev.h.bu.b   \\xd,  \\xj,    \\xk\n    xvmaddwod.h.bu.b   \\xd,  \\xj,    \\xk\n.endm\n\n.macro xvdp2add.w.h xd, xj, xk\n    xvmaddwev.w.h      \\xd,  \\xj,    \\xk\n    xvmaddwod.w.h      \\xd,  \\xj,    \\xk\n.endm\n\n/*\n * Description : Range each element of vector\n * clip: vj > vk ? vj : vk && vj < va ? vj : va\n * clip255: vj < 255 ? vj : 255 && vj > 0 ? vj : 0\n */\n.macro vclip.h  vd,  vj, vk, va\n    vmax.h    \\vd,  \\vj,   \\vk\n    vmin.h    \\vd,  \\vd,   \\va\n.endm\n\n.macro vclip255.w  vd, vj\n    vmaxi.w   \\vd,   \\vj,  0\n    vsat.wu   \\vd,   \\vd,  7\n.endm\n\n.macro vclip255.h  vd, vj\n    vmaxi.h   \\vd,   \\vj,  0\n    vsat.hu   \\vd,   \\vd,  7\n.endm\n\n.macro xvclip.h  xd,  xj, xk, xa\n    xvmax.h    \\xd,  \\xj,   \\xk\n    xvmin.h    \\xd,  \\xd,   \\xa\n.endm\n\n.macro xvclip255.h  xd, xj\n    xvmaxi.h   \\xd,   \\xj,  0\n    xvsat.hu   \\xd,   \\xd,  7\n.endm\n\n.macro xvclip255.w  xd, xj\n    xvmaxi.w   \\xd,   \\xj,  0\n    xvsat.wu   \\xd,   \\xd,  7\n.endm\n\n/*\n * Description : Store elements of vector\n * vd : Data vector to be stroed\n * rk : Address of data storage\n * ra : Offset of address\n * si : Index of data in vd\n */\n.macro vstelmx.b vd, rk, ra, si", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/loongarch/loongson_asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/loongarch/loongson_asm.S:9", "text": ".endm\n\n.macro xvclip255.h  xd, xj\n    xvmaxi.h   \\xd,   \\xj,  0\n    xvsat.hu   \\xd,   \\xd,  7\n.endm\n\n.macro xvclip255.w  xd, xj\n    xvmaxi.w   \\xd,   \\xj,  0\n    xvsat.wu   \\xd,   \\xd,  7\n.endm\n\n/*\n * Description : Store elements of vector\n * vd : Data vector to be stroed\n * rk : Address of data storage\n * ra : Offset of address\n * si : Index of data in vd\n */\n.macro vstelmx.b vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.b   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vstelmx.h vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.h   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vstelmx.w vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.w   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vstelmx.d  vd, rk, ra, si\n    add.d      \\rk,  \\rk,  \\ra\n    vstelm.d   \\vd,  \\rk,  0, \\si\n.endm\n\n.macro vmov xd, xj\n    vor.v  \\xd,  \\xj,  \\xj\n.endm\n\n.macro xmov xd, xj\n    xvor.v  \\xd,  \\xj,  \\xj\n.endm\n\n.macro xvstelmx.d  xd, rk, ra, si\n    add.d      \\rk, \\rk,  \\ra\n    xvstelm.d  \\xd, \\rk,  0, \\si\n.endm\n\n/*\n *============================================================================\n * LSX/LASX custom macros\n *============================================================================\n */\n\n/*\n * Load 4 float, double, V128, v256 elements with stride.", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/loongarch/loongson_asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/loongarch/loongson_asm.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/ppc/asm.S:1", "text": "/*\n * Copyright (c) 2009 Loren Merritt\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#if __APPLE__\n#define R(n) r ## n\n#else\n#define R(n) n\n#endif\n\n#if ARCH_PPC64\n\n#define PTR  .quad\n#define lp   ld\n#define lpx  ldx\n#define stp  std\n#define stpu stdu\n#define PS   8\n#define L(s) JOIN(., s)\n\n.macro extfunc name\n    .global X(\\name)\n#if _CALL_ELF == 2\n    .text\nX(\\name):\n    addis %r2, %r12, .TOC.-X(\\name)@ha\n    addi %r2, %r2, .TOC.-X(\\name)@l\n    .localentry X(\\name), .-X(\\name)\n#else\n    .section .opd, \"aw\"\nX(\\name):\n    .quad L(\\name), .TOC.@tocbase, 0\n    .previous\n    .type X(\\name), STT_FUNC\nL(\\name):\n#endif\n.endm", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/ppc/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/ppc/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/ppc/asm.S:2", "text": "#define L(s) JOIN(., s)\n\n.macro extfunc name\n    .global X(\\name)\n#if _CALL_ELF == 2\n    .text\nX(\\name):\n    addis %r2, %r12, .TOC.-X(\\name)@ha\n    addi %r2, %r2, .TOC.-X(\\name)@l\n    .localentry X(\\name), .-X(\\name)\n#else\n    .section .opd, \"aw\"\nX(\\name):\n    .quad L(\\name), .TOC.@tocbase, 0\n    .previous\n    .type X(\\name), STT_FUNC\nL(\\name):\n#endif\n.endm\n\n.macro movrel rd, sym, gp\n    ld      \\rd, \\sym@got(R(2))\n.endm\n\n.macro get_got rd\n.endm\n\n#else /* ARCH_PPC64 */\n\n#define PTR  .int\n#define lp   lwz\n#define lpx  lwzx\n#define stp  stw\n#define stpu stwu\n#define PS   4\n#define L(s) s\n\n.macro extfunc name\n    .global X(\\name)\n    .type   X(\\name), STT_FUNC\nX(\\name):\n\\name:\n.endm\n\n.macro movrel rd, sym, gp\n#if CONFIG_PIC\n    lwz     \\rd, \\sym@got(\\gp)\n#else\n    lis     \\rd, \\sym@ha\n    la      \\rd, \\sym@l(\\rd)\n#endif\n.endm\n\n.macro get_got rd\n#if CONFIG_PIC\n    bcl     20, 31, .Lgot\\@\n.Lgot\\@:\n    mflr    \\rd\n    addis   \\rd, \\rd, _GLOBAL_OFFSET_TABLE_ - .Lgot\\@@ha\n    addi    \\rd, \\rd, _GLOBAL_OFFSET_TABLE_ - .Lgot\\@@l", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/ppc/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/ppc/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/ppc/asm.S:3", "text": "X(\\name):\n\\name:\n.endm\n\n.macro movrel rd, sym, gp\n#if CONFIG_PIC\n    lwz     \\rd, \\sym@got(\\gp)\n#else\n    lis     \\rd, \\sym@ha\n    la      \\rd, \\sym@l(\\rd)\n#endif\n.endm\n\n.macro get_got rd\n#if CONFIG_PIC\n    bcl     20, 31, .Lgot\\@\n.Lgot\\@:\n    mflr    \\rd\n    addis   \\rd, \\rd, _GLOBAL_OFFSET_TABLE_ - .Lgot\\@@ha\n    addi    \\rd, \\rd, _GLOBAL_OFFSET_TABLE_ - .Lgot\\@@l\n#endif\n.endm\n\n#endif /* ARCH_PPC64 */\n\n#if HAVE_IBM_ASM\n\n.macro DEFINE_REG n\n    .equiv r\\n, \\n\n    .equiv f\\n, \\n\n    .equiv v\\n, \\n\n.endm\n\nDEFINE_REG 0\nDEFINE_REG 1\nDEFINE_REG 2\nDEFINE_REG 3\nDEFINE_REG 4\nDEFINE_REG 5\nDEFINE_REG 6\nDEFINE_REG 7\nDEFINE_REG 8\nDEFINE_REG 9\nDEFINE_REG 10\nDEFINE_REG 11\nDEFINE_REG 12\nDEFINE_REG 13\nDEFINE_REG 14\nDEFINE_REG 15\nDEFINE_REG 16\nDEFINE_REG 17\nDEFINE_REG 18\nDEFINE_REG 19\nDEFINE_REG 20\nDEFINE_REG 21\nDEFINE_REG 22\nDEFINE_REG 23\nDEFINE_REG 24\nDEFINE_REG 25\nDEFINE_REG 26", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/ppc/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/ppc/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/ppc/asm.S:4", "text": "DEFINE_REG 7\nDEFINE_REG 8\nDEFINE_REG 9\nDEFINE_REG 10\nDEFINE_REG 11\nDEFINE_REG 12\nDEFINE_REG 13\nDEFINE_REG 14\nDEFINE_REG 15\nDEFINE_REG 16\nDEFINE_REG 17\nDEFINE_REG 18\nDEFINE_REG 19\nDEFINE_REG 20\nDEFINE_REG 21\nDEFINE_REG 22\nDEFINE_REG 23\nDEFINE_REG 24\nDEFINE_REG 25\nDEFINE_REG 26\nDEFINE_REG 27\nDEFINE_REG 28\nDEFINE_REG 29\nDEFINE_REG 30\nDEFINE_REG 31\n\n#endif /* HAVE_IBM_ASM */", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/ppc/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/ppc/asm.S", "line_start": 121, "line_end": 147}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_abs_pow34_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli      t0, a2, e32, m8, ta, ma\n        sub          a2, a2, t0\n        vle32.v      v0, (a1)\n        sh2add       a1, t0, a1\n        vfabs.v      v0, v0\n        vfsqrt.v     v8, v0\n        vfmul.vv     v8, v8, v0\n        vfsqrt.v     v8, v8\n        vse32.v      v8, (a0)\n        sh2add       a0, t0, a0\n        bnez         a2, 1b\n\n        ret\nendfunc\n\nfunc ff_aac_quant_bands_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:2", "text": "func ff_aac_quant_bands_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0\n        .if \\signed\n        vfsgnjx.vv  v16, v16, v8\n        .endif\n        vfcvt.rtz.x.f.v v16, v16\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a3, .L\\signed\n\n        ret\n        .endr\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_abs_pow34_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli      t0, a2, e32, m8, ta, ma\n        sub          a2, a2, t0\n        vle32.v      v0, (a1)\n        sh2add       a1, t0, a1\n        vfabs.v      v0, v0\n        vfsqrt.v     v8, v0\n        vfmul.vv     v8, v8, v0\n        vfsqrt.v     v8, v8\n        vse32.v      v8, (a0)\n        sh2add       a0, t0, a0\n        bnez         a2, 1b\n\n        ret\nendfunc\n\nfunc ff_aac_quant_bands_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_abs_pow34_rvv, zve32f, zba\n1:\n        vsetvli      t0, a2, e32, m8, ta, ma\n        sub          a2, a2, t0\n        vle32.v      v0, (a1)\n        sh2add       a1, t0, a1\n        vfabs.v      v0, v0\n        vfsqrt.v     v8, v0\n        vfmul.vv     v8, v8, v0\n        vfsqrt.v     v8, v8\n        vse32.v      v8, (a0)\n        sh2add       a0, t0, a0\n        bnez         a2, 1b\n\n        ret\nendfunc\n\nfunc ff_aac_quant_bands_rvv, zve32f, zba\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0\n        .if \\signed\n        vfsgnjx.vv  v16, v16, v8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:2", "text": "func ff_aac_quant_bands_rvv, zve32f, zba\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0\n        .if \\signed\n        vfsgnjx.vv  v16, v16, v8\n        .endif\n        vfcvt.rtz.x.f.v v16, v16\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a3, .L\\signed\n\n        ret\n        .endr\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_abs_pow34_rvv, zve32f\n1:\n        vsetvli      t0, a2, e32, m8, ta, ma\n        sub          a2, a2, t0\n        vle32.v      v0, (a1)\n        sh2add       a1, t0, a1\n        vfabs.v      v0, v0\n        vfsqrt.v     v8, v0\n        vfmul.vv     v8, v8, v0\n        vfsqrt.v     v8, v8\n        vse32.v      v8, (a0)\n        sh2add       a0, t0, a0\n        bnez         a2, 1b\n\n        ret\nendfunc\n\nfunc ff_aac_quant_bands_rvv, zve32f\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0\n        .if \\signed\n        vfsgnjx.vv  v16, v16, v8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "daac101e61697cdc39e6e01d77ff6201efc70845", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/daac101e61697cdc39e6e01d77ff6201efc70845/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:2", "text": "func ff_aac_quant_bands_rvv, zve32f\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0\n        .if \\signed\n        vfsgnjx.vv  v16, v16, v8\n        .endif\n        vfcvt.rtz.x.f.v v16, v16\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a3, .L\\signed\n\n        ret\n        .endr\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "daac101e61697cdc39e6e01d77ff6201efc70845", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/daac101e61697cdc39e6e01d77ff6201efc70845/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:2", "text": "func ff_aac_quant_bands_rvv, zve32f\nNOHWF   fmv.w.x     fa0, a6\nNOHWF   fmv.w.x     fa1, a7\n        fcvt.s.w    ft0, a5\n        bnez        a4, .L1 # signed?\n        .irp signed, 0, 1\n.L\\signed:\n        vsetvli     t0, a3, e32, m8, ta, ma\n        vle32.v     v16, (a2)\n        sub         a3, a3, t0\n        .if \\signed\n        vle32.v     v8, (a1)\n        sh2add      a1, t0, a1\n        .endif\n        vfmul.vf    v16, v16, fa0\n        sh2add      a2, t0, a2\n        vfadd.vf    v16, v16, fa1\n        vfmin.vf    v16, v16, ft0\n        .if \\signed\n        vfsgnjx.vv  v16, v16, v8\n        .endif\n        vfcvt.x.f.v v16, v16\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a3, .L\\signed\n\n        ret\n        .endr\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "fd4977c87637f8ae3a48df555270c585d0667132", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd4977c87637f8ae3a48df555270c585d0667132/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacencdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_abs_pow34_rvv, zve32f\n1:\n        vsetvli      t0, a2, e32, m8, ta, ma\n        sub          a2, a2, t0\n        vle32.v      v0, (a1)\n        sh2add       a1, t0, a1\n        vfabs.v      v0, v0\n        vfsqrt.v     v8, v0\n        vfmul.vv     v8, v8, v0\n        vfsqrt.v     v8, v8\n        vse32.v      v8, (a0)\n        sh2add       a0, t0, a0\n        bnez         a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacencdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/aacencdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:1", "text": "/*\n * Copyright © 2022-2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ps_add_squares_rvv, zve64f, zba\n        lpad    0\n        li          t1, 32\n1:\n        vsetvli     t0, a2, e32, m4, ta, ma\n        vle64.v     v8, (a1)\n        sub         a2, a2, t0\n        vnsrl.wx    v24, v8, zero\n        vle32.v     v16, (a0)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v28, v8, t1\n        vfmacc.vv   v16, v24, v24\n        vfmacc.vv   v16, v28, v28\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a2, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_mul_pair_single_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vlseg2e32.v v24, (a1)\n        sub         a3, a3, t0\n        vle32.v     v16, (a2)\n        sh3add      a1, t0, a1\n        vfmul.vv    v24, v24, v16\n        sh2add      a2, t0, a2\n        vfmul.vv    v28, v28, v16\n        vsseg2e32.v v24, (a0)\n        sh3add      a0, t0, a0\n        bnez        a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:2", "text": "endfunc\n\nfunc ff_ps_mul_pair_single_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vlseg2e32.v v24, (a1)\n        sub         a3, a3, t0\n        vle32.v     v16, (a2)\n        sh3add      a1, t0, a1\n        vfmul.vv    v24, v24, v16\n        sh2add      a2, t0, a2\n        vfmul.vv    v28, v28, v16\n        vsseg2e32.v v24, (a0)\n        sh3add      a0, t0, a0\n        bnez        a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_hybrid_analysis_rvv, zve32f\n        lpad    0\n        /* We need 26 FP registers, for 20 scratch ones. Spill fs0-fs5. */\n        addi    sp, sp, -48\n        .irp n, 0, 1, 2, 3, 4, 5\nHWD     fsd     fs\\n, (8 * \\n)(sp)\nNOHWD   fsw     fs\\n, (4 * \\n)(sp)\n        .endr\n\n        .macro input, j, fd0, fd1, fd2, fd3\n        flw     \\fd0, (4 * ((\\j * 2) + 0))(a1)\n        flw     fs4, (4 * (((12 - \\j) * 2) + 0))(a1)\n        flw     \\fd1, (4 * ((\\j * 2) + 1))(a1)\n        fsub.s  \\fd3, \\fd0, fs4\n        flw     fs5, (4 * (((12 - \\j) * 2) + 1))(a1)\n        fadd.s  \\fd2, \\fd1, fs5\n        fadd.s  \\fd0, \\fd0, fs4\n        fsub.s  \\fd1, \\fd1, fs5\n        .endm\n\n        //         re0, re1, im0, im1\n        input   0, ft0, ft1, ft2, ft3\n        input   1, ft4, ft5, ft6, ft7\n        input   2, ft8, ft9, ft10, ft11\n        input   3, fa0, fa1, fa2, fa3\n        input   4, fa4, fa5, fa6, fa7\n        input   5, fs0, fs1, fs2, fs3\n        flw     fs4, (4 * ((6 * 2) + 0))(a1)\n        flw     fs5, (4 * ((6 * 2) + 1))(a1)\n\n        add     t2, a2, 6 * 2 * 4 // point to filter[i][6][0]\n        li         t4, 8 * 2 * 4 // filter byte stride\n        slli       a3, a3, 3 // output byte stride\n1:\n        .macro filter, vs0, vs1, fo0, fo1, fo2, fo3\n        vfmacc.vf  v8, \\fo0, \\vs0\n        vfmacc.vf  v10, \\fo2, \\vs0\n        vfnmsac.vf v8, \\fo1, \\vs1\n        vfmacc.vf  v10, \\fo3, \\vs1\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:3", "text": "//         re0, re1, im0, im1\n        input   0, ft0, ft1, ft2, ft3\n        input   1, ft4, ft5, ft6, ft7\n        input   2, ft8, ft9, ft10, ft11\n        input   3, fa0, fa1, fa2, fa3\n        input   4, fa4, fa5, fa6, fa7\n        input   5, fs0, fs1, fs2, fs3\n        flw     fs4, (4 * ((6 * 2) + 0))(a1)\n        flw     fs5, (4 * ((6 * 2) + 1))(a1)\n\n        add     t2, a2, 6 * 2 * 4 // point to filter[i][6][0]\n        li         t4, 8 * 2 * 4 // filter byte stride\n        slli       a3, a3, 3 // output byte stride\n1:\n        .macro filter, vs0, vs1, fo0, fo1, fo2, fo3\n        vfmacc.vf  v8, \\fo0, \\vs0\n        vfmacc.vf  v10, \\fo2, \\vs0\n        vfnmsac.vf v8, \\fo1, \\vs1\n        vfmacc.vf  v10, \\fo3, \\vs1\n        .endm\n\n        vsetvli    t0, a4, e32, m2, ta, ma\n        /*\n         * The filter (a2) has 16 segments, of which 13 need to be extracted.\n         * R-V V supports only up to 8 segments, so unrolling is unavoidable.\n         */\n        vlse32.v   v28, (t2), t4\n        addi       t1, a2, 16\n        vfmul.vf   v8, v28, fs4\n        vlsseg4e32.v v16, (a2), t4\n        vfmul.vf   v10, v28, fs5\n        filter     v16, v18, ft0, ft1, ft2, ft3\n        vlsseg4e32.v v24, (t1), t4\n        filter     v20, v22, ft4, ft5, ft6, ft7\n        addi       t1, a2, 32\n        filter     v24, v26, ft8, ft9, ft10, ft11\n        vlsseg4e32.v v16, (t1), t4\n        sub        a4, a4, t0\n        filter     v28, v30, fa0, fa1, fa2, fa3\n        slli       t1, t0, 3 + 1 + 2 // ctz(8 * 2 * 4)\n        filter     v16, v18, fa4, fa5, fa6, fa7\n        mul        t0, t0, a3\n        filter     v20, v22, fs0, fs1, fs2, fs3\n        add        a2, a2, t1\n        add        t2, t2, t1\n        vssseg2e32.v v8, (a0), a3\n        add        a0, a0, t0\n        bnez       a4, 1b\n\n        .irp n, 5, 4, 3, 2, 1, 0\nHWD     fld     fs\\n, (8 * \\n)(sp)\nNOHWD   flw     fs\\n, (4 * \\n)(sp)\n        .endr\n        addi    sp, sp, 48\n        ret\n        .purgem input\n        .purgem filter\nendfunc\n\nfunc ff_ps_hybrid_analysis_ileave_rvv, zve32x /* no zve32f here */, zba", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:4", "text": "filter     v16, v18, fa4, fa5, fa6, fa7\n        mul        t0, t0, a3\n        filter     v20, v22, fs0, fs1, fs2, fs3\n        add        a2, a2, t1\n        add        t2, t2, t1\n        vssseg2e32.v v8, (a0), a3\n        add        a0, a0, t0\n        bnez       a4, 1b\n\n        .irp n, 5, 4, 3, 2, 1, 0\nHWD     fld     fs\\n, (8 * \\n)(sp)\nNOHWD   flw     fs\\n, (4 * \\n)(sp)\n        .endr\n        addi    sp, sp, 48\n        ret\n        .purgem input\n        .purgem filter\nendfunc\n\nfunc ff_ps_hybrid_analysis_ileave_rvv, zve32x /* no zve32f here */, zba\n        lpad    0\n        slli        t0, a2, 5 + 1 + 2 // ctz(32 * 2 * 4)\n        sh2add      a1, a2, a1\n        add         a0, a0, t0\n        addi        a2, a2, -64\n        li          t1, 38 * 64 * 4\n        li          t6, 64 * 4 // (uint8_t *)L[x][j+1][i] - L[x][j][i]\n        add         a4, a1, t1 // &L[1]\n        beqz        a2, 3f\n1:\n        mv          t0, a0\n        mv          t1, a1\n        mv          t3, a3\n        mv          t4, a4\n        addi        a2, a2, 1\n2:\n        vsetvli     t5, t3, e32, m4, ta, ma\n        vlse32.v    v16, (t1), t6\n        sub         t3, t3, t5\n        vlse32.v    v20, (t4), t6\n        mul         t2, t5, t6\n        vsseg2e32.v v16, (t0)\n        sh3add      t0, t5, t0\n        add         t1, t1, t2\n        add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x, zba\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:5", "text": "mul         t2, t5, t6\n        vsseg2e32.v v16, (t0)\n        sh3add      t0, t5, t0\n        add         t1, t1, t2\n        add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x, zba\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64\n        li      t0, 38 * 64\n        li      t1, 32 * 2 * 4\n        li      t4, 8 - 16384 // offset from in[64][n][0] to in[0][n + 1][0]\n        slli    t5, a2, 5 + 1 + 2 // and from in[0][n+1][0] to in[0][n+1][s]\n        neg     t2, t2\n        li      t3, 32\n        add     a4, t4, t5\n        sh2add  t0, t0, a0\n1:\n        mv      t4, t2\n        addi    a3, a3, -1\n2:\n        vsetvli t5, t4, e32, m4, ta, ma\n        vlse64.v v16, (a1), t1 /* sizeof (float[32][2]) */\n        sub     t4, t4, t5\n        vnsrl.wx v24, v16, zero\n        slli    t6, t5, 5 + 1 + 2\n        vnsrl.wx v28, v16, t3 /* 32 */\n        add     a1, a1, t6\n        vse32.v v24, (a0)\n        sh2add  a0, t5, a0\n        vse32.v v28, (t0)\n        sh2add  t0, t5, t0\n        bnez    t4, 2b\n\n        add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f, b\n        lpad    0\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:6", "text": "sh2add  a0, t5, a0\n        vse32.v v28, (t0)\n        sh2add  t0, t5, t0\n        bnez    t4, 2b\n\n        add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f, b\n        lpad    0\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1\n        flw          ft0,   (a3)\n        vfmv.v.f     v20, ft2\n        flw          ft1,  4(a3)\n        vfmv.v.f     v22, ft3\n        flw          ft2,  8(a3)\n        flw          ft3, 12(a3)\n        fcvt.s.wu    ft4, t0       // (float)(vlenb / sizeof (float))\n        vfmacc.vf    v16, ft0, v24 // h0 += (i + 1) * h0_step\n        fmul.s       ft0, ft0, ft4\n        vfmacc.vf    v18, ft1, v24\n        fmul.s       ft1, ft1, ft4\n        vfmacc.vf    v20, ft2, v24\n        fmul.s       ft2, ft2, ft4\n        vfmacc.vf    v22, ft3, v24\n        fmul.s       ft3, ft3, ft4\n1:\n        min       t0, t0, a4\n        vsetvli   zero, t0, e32, m2, ta, ma\n        vlseg2e32.v v0, (a0)     // v0:l_re, v2:l_im\n        sub       a4, a4, t0\n        vlseg2e32.v v4, (a1)    // v4:r_re, v6:r_im\n        vfmul.vv  v8, v0, v16\n        vfmul.vv  v10, v2, v16\n        vfmul.vv  v12, v0, v18\n        vfmul.vv  v14, v2, v18\n        vfmacc.vv v8, v4, v20\n        vfmacc.vv v10, v6, v20\n        vfmacc.vv v12, v4, v22\n        vfmacc.vv v14, v6, v22\n        vsseg2e32.v v8, (a0)\n        sh3add    a0, t0, a0\n        vsseg2e32.v v12, (a1)\n        sh3add    a1, t0, a1\n        vfadd.vf  v16, v16, ft0 // h0 += (vlenb / sizeof (float)) * h0_step\n        vfadd.vf  v18, v18, ft1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:7", "text": "1:\n        min       t0, t0, a4\n        vsetvli   zero, t0, e32, m2, ta, ma\n        vlseg2e32.v v0, (a0)     // v0:l_re, v2:l_im\n        sub       a4, a4, t0\n        vlseg2e32.v v4, (a1)    // v4:r_re, v6:r_im\n        vfmul.vv  v8, v0, v16\n        vfmul.vv  v10, v2, v16\n        vfmul.vv  v12, v0, v18\n        vfmul.vv  v14, v2, v18\n        vfmacc.vv v8, v4, v20\n        vfmacc.vv v10, v6, v20\n        vfmacc.vv v12, v4, v22\n        vfmacc.vv v14, v6, v22\n        vsseg2e32.v v8, (a0)\n        sh3add    a0, t0, a0\n        vsseg2e32.v v12, (a1)\n        sh3add    a1, t0, a1\n        vfadd.vf  v16, v16, ft0 // h0 += (vlenb / sizeof (float)) * h0_step\n        vfadd.vf  v18, v18, ft1\n        vfadd.vf  v20, v20, ft2\n        vfadd.vf  v22, v22, ft3\n        bnez      a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 241, "line_end": 266}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:1", "text": "/*\n * Copyright © 2022-2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ps_add_squares_rvv, zve64f, zba\n        li          t1, 32\n1:\n        vsetvli     t0, a2, e32, m4, ta, ma\n        vle64.v     v8, (a1)\n        sub         a2, a2, t0\n        vnsrl.wx    v24, v8, zero\n        vle32.v     v16, (a0)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v28, v8, t1\n        vfmacc.vv   v16, v24, v24\n        vfmacc.vv   v16, v28, v28\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a2, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_mul_pair_single_rvv, zve32f, zba\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vlseg2e32.v v24, (a1)\n        sub         a3, a3, t0\n        vle32.v     v16, (a2)\n        sh3add      a1, t0, a1\n        vfmul.vv    v24, v24, v16\n        sh2add      a2, t0, a2\n        vfmul.vv    v28, v28, v16\n        vsseg2e32.v v24, (a0)\n        sh3add      a0, t0, a0\n        bnez        a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_hybrid_analysis_rvv, zve32f\n        /* We need 26 FP registers, for 20 scratch ones. Spill fs0-fs5. */", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:2", "text": "func ff_ps_mul_pair_single_rvv, zve32f, zba\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vlseg2e32.v v24, (a1)\n        sub         a3, a3, t0\n        vle32.v     v16, (a2)\n        sh3add      a1, t0, a1\n        vfmul.vv    v24, v24, v16\n        sh2add      a2, t0, a2\n        vfmul.vv    v28, v28, v16\n        vsseg2e32.v v24, (a0)\n        sh3add      a0, t0, a0\n        bnez        a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_hybrid_analysis_rvv, zve32f\n        /* We need 26 FP registers, for 20 scratch ones. Spill fs0-fs5. */\n        addi    sp, sp, -48\n        .irp n, 0, 1, 2, 3, 4, 5\nHWD     fsd     fs\\n, (8 * \\n)(sp)\nNOHWD   fsw     fs\\n, (4 * \\n)(sp)\n        .endr\n\n        .macro input, j, fd0, fd1, fd2, fd3\n        flw     \\fd0, (4 * ((\\j * 2) + 0))(a1)\n        flw     fs4, (4 * (((12 - \\j) * 2) + 0))(a1)\n        flw     \\fd1, (4 * ((\\j * 2) + 1))(a1)\n        fsub.s  \\fd3, \\fd0, fs4\n        flw     fs5, (4 * (((12 - \\j) * 2) + 1))(a1)\n        fadd.s  \\fd2, \\fd1, fs5\n        fadd.s  \\fd0, \\fd0, fs4\n        fsub.s  \\fd1, \\fd1, fs5\n        .endm\n\n        //         re0, re1, im0, im1\n        input   0, ft0, ft1, ft2, ft3\n        input   1, ft4, ft5, ft6, ft7\n        input   2, ft8, ft9, ft10, ft11\n        input   3, fa0, fa1, fa2, fa3\n        input   4, fa4, fa5, fa6, fa7\n        input   5, fs0, fs1, fs2, fs3\n        flw     fs4, (4 * ((6 * 2) + 0))(a1)\n        flw     fs5, (4 * ((6 * 2) + 1))(a1)\n\n        add     t2, a2, 6 * 2 * 4 // point to filter[i][6][0]\n        li         t4, 8 * 2 * 4 // filter byte stride\n        slli       a3, a3, 3 // output byte stride\n1:\n        .macro filter, vs0, vs1, fo0, fo1, fo2, fo3\n        vfmacc.vf  v8, \\fo0, \\vs0\n        vfmacc.vf  v10, \\fo2, \\vs0\n        vfnmsac.vf v8, \\fo1, \\vs1\n        vfmacc.vf  v10, \\fo3, \\vs1\n        .endm\n\n        vsetvli    t0, a4, e32, m2, ta, ma\n        /*", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:3", "text": "input   2, ft8, ft9, ft10, ft11\n        input   3, fa0, fa1, fa2, fa3\n        input   4, fa4, fa5, fa6, fa7\n        input   5, fs0, fs1, fs2, fs3\n        flw     fs4, (4 * ((6 * 2) + 0))(a1)\n        flw     fs5, (4 * ((6 * 2) + 1))(a1)\n\n        add     t2, a2, 6 * 2 * 4 // point to filter[i][6][0]\n        li         t4, 8 * 2 * 4 // filter byte stride\n        slli       a3, a3, 3 // output byte stride\n1:\n        .macro filter, vs0, vs1, fo0, fo1, fo2, fo3\n        vfmacc.vf  v8, \\fo0, \\vs0\n        vfmacc.vf  v10, \\fo2, \\vs0\n        vfnmsac.vf v8, \\fo1, \\vs1\n        vfmacc.vf  v10, \\fo3, \\vs1\n        .endm\n\n        vsetvli    t0, a4, e32, m2, ta, ma\n        /*\n         * The filter (a2) has 16 segments, of which 13 need to be extracted.\n         * R-V V supports only up to 8 segments, so unrolling is unavoidable.\n         */\n        vlse32.v   v28, (t2), t4\n        addi       t1, a2, 16\n        vfmul.vf   v8, v28, fs4\n        vlsseg4e32.v v16, (a2), t4\n        vfmul.vf   v10, v28, fs5\n        filter     v16, v18, ft0, ft1, ft2, ft3\n        vlsseg4e32.v v24, (t1), t4\n        filter     v20, v22, ft4, ft5, ft6, ft7\n        addi       t1, a2, 32\n        filter     v24, v26, ft8, ft9, ft10, ft11\n        vlsseg4e32.v v16, (t1), t4\n        sub        a4, a4, t0\n        filter     v28, v30, fa0, fa1, fa2, fa3\n        slli       t1, t0, 3 + 1 + 2 // ctz(8 * 2 * 4)\n        filter     v16, v18, fa4, fa5, fa6, fa7\n        mul        t0, t0, a3\n        filter     v20, v22, fs0, fs1, fs2, fs3\n        add        a2, a2, t1\n        add        t2, t2, t1\n        vssseg2e32.v v8, (a0), a3\n        add        a0, a0, t0\n        bnez       a4, 1b\n\n        .irp n, 5, 4, 3, 2, 1, 0\nHWD     fld     fs\\n, (8 * \\n)(sp)\nNOHWD   flw     fs\\n, (4 * \\n)(sp)\n        .endr\n        addi    sp, sp, 48\n        ret\n        .purgem input\n        .purgem filter\nendfunc\n\nfunc ff_ps_hybrid_analysis_ileave_rvv, zve32x /* no zve32f here */, zba\n        slli        t0, a2, 5 + 1 + 2 // ctz(32 * 2 * 4)\n        sh2add      a1, a2, a1\n        add         a0, a0, t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:4", "text": "add        a2, a2, t1\n        add        t2, t2, t1\n        vssseg2e32.v v8, (a0), a3\n        add        a0, a0, t0\n        bnez       a4, 1b\n\n        .irp n, 5, 4, 3, 2, 1, 0\nHWD     fld     fs\\n, (8 * \\n)(sp)\nNOHWD   flw     fs\\n, (4 * \\n)(sp)\n        .endr\n        addi    sp, sp, 48\n        ret\n        .purgem input\n        .purgem filter\nendfunc\n\nfunc ff_ps_hybrid_analysis_ileave_rvv, zve32x /* no zve32f here */, zba\n        slli        t0, a2, 5 + 1 + 2 // ctz(32 * 2 * 4)\n        sh2add      a1, a2, a1\n        add         a0, a0, t0\n        addi        a2, a2, -64\n        li          t1, 38 * 64 * 4\n        li          t6, 64 * 4 // (uint8_t *)L[x][j+1][i] - L[x][j][i]\n        add         a4, a1, t1 // &L[1]\n        beqz        a2, 3f\n1:\n        mv          t0, a0\n        mv          t1, a1\n        mv          t3, a3\n        mv          t4, a4\n        addi        a2, a2, 1\n2:\n        vsetvli     t5, t3, e32, m4, ta, ma\n        vlse32.v    v16, (t1), t6\n        sub         t3, t3, t5\n        vlse32.v    v20, (t4), t6\n        mul         t2, t5, t6\n        vsseg2e32.v v16, (t0)\n        sh3add      t0, t5, t0\n        add         t1, t1, t2\n        add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x, zba\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64\n        li      t0, 38 * 64\n        li      t1, 32 * 2 * 4\n        li      t4, 8 - 16384 // offset from in[64][n][0] to in[0][n + 1][0]\n        slli    t5, a2, 5 + 1 + 2 // and from in[0][n+1][0] to in[0][n+1][s]", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:5", "text": "add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x, zba\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64\n        li      t0, 38 * 64\n        li      t1, 32 * 2 * 4\n        li      t4, 8 - 16384 // offset from in[64][n][0] to in[0][n + 1][0]\n        slli    t5, a2, 5 + 1 + 2 // and from in[0][n+1][0] to in[0][n+1][s]\n        neg     t2, t2\n        li      t3, 32\n        add     a4, t4, t5\n        sh2add  t0, t0, a0\n1:\n        mv      t4, t2\n        addi    a3, a3, -1\n2:\n        vsetvli t5, t4, e32, m4, ta, ma\n        vlse64.v v16, (a1), t1 /* sizeof (float[32][2]) */\n        sub     t4, t4, t5\n        vnsrl.wx v24, v16, zero\n        slli    t6, t5, 5 + 1 + 2\n        vnsrl.wx v28, v16, t3 /* 32 */\n        add     a1, a1, t6\n        vse32.v v24, (a0)\n        sh2add  a0, t5, a0\n        vse32.v v28, (t0)\n        sh2add  t0, t5, t0\n        bnez    t4, 2b\n\n        add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f, b\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:6", "text": "add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f, b\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1\n        flw          ft0,   (a3)\n        vfmv.v.f     v20, ft2\n        flw          ft1,  4(a3)\n        vfmv.v.f     v22, ft3\n        flw          ft2,  8(a3)\n        flw          ft3, 12(a3)\n        fcvt.s.wu    ft4, t0       // (float)(vlenb / sizeof (float))\n        vfmacc.vf    v16, ft0, v24 // h0 += (i + 1) * h0_step\n        fmul.s       ft0, ft0, ft4\n        vfmacc.vf    v18, ft1, v24\n        fmul.s       ft1, ft1, ft4\n        vfmacc.vf    v20, ft2, v24\n        fmul.s       ft2, ft2, ft4\n        vfmacc.vf    v22, ft3, v24\n        fmul.s       ft3, ft3, ft4\n1:\n        min       t0, t0, a4\n        vsetvli   zero, t0, e32, m2, ta, ma\n        vlseg2e32.v v0, (a0)     // v0:l_re, v2:l_im\n        sub       a4, a4, t0\n        vlseg2e32.v v4, (a1)    // v4:r_re, v6:r_im\n        vfmul.vv  v8, v0, v16\n        vfmul.vv  v10, v2, v16\n        vfmul.vv  v12, v0, v18\n        vfmul.vv  v14, v2, v18\n        vfmacc.vv v8, v4, v20\n        vfmacc.vv v10, v6, v20\n        vfmacc.vv v12, v4, v22\n        vfmacc.vv v14, v6, v22\n        vsseg2e32.v v8, (a0)\n        sh3add    a0, t0, a0\n        vsseg2e32.v v12, (a1)\n        sh3add    a1, t0, a1\n        vfadd.vf  v16, v16, ft0 // h0 += (vlenb / sizeof (float)) * h0_step\n        vfadd.vf  v18, v18, ft1\n        vfadd.vf  v20, v20, ft2\n        vfadd.vf  v22, v22, ft3\n        bnez      a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:7", "text": "vlseg2e32.v v4, (a1)    // v4:r_re, v6:r_im\n        vfmul.vv  v8, v0, v16\n        vfmul.vv  v10, v2, v16\n        vfmul.vv  v12, v0, v18\n        vfmul.vv  v14, v2, v18\n        vfmacc.vv v8, v4, v20\n        vfmacc.vv v10, v6, v20\n        vfmacc.vv v12, v4, v22\n        vfmacc.vv v14, v6, v22\n        vsseg2e32.v v8, (a0)\n        sh3add    a0, t0, a0\n        vsseg2e32.v v12, (a1)\n        sh3add    a1, t0, a1\n        vfadd.vf  v16, v16, ft0 // h0 += (vlenb / sizeof (float)) * h0_step\n        vfadd.vf  v18, v18, ft1\n        vfadd.vf  v20, v20, ft2\n        vfadd.vf  v22, v22, ft3\n        bnez      a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 241, "line_end": 261}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:1", "text": "/*\n * Copyright © 2022-2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ps_add_squares_rvv, zve64f\n        li          t1, 32\n1:\n        vsetvli     t0, a2, e32, m4, ta, ma\n        vle64.v     v8, (a1)\n        sub         a2, a2, t0\n        vnsrl.wx    v24, v8, zero\n        vle32.v     v16, (a0)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v28, v8, t1\n        vfmacc.vv   v16, v24, v24\n        vfmacc.vv   v16, v28, v28\n        vse32.v     v16, (a0)\n        sh2add      a0, t0, a0\n        bnez        a2, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_mul_pair_single_rvv, zve32f\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vlseg2e32.v v24, (a1)\n        sub         a3, a3, t0\n        vle32.v     v16, (a2)\n        sh3add      a1, t0, a1\n        vfmul.vv    v24, v24, v16\n        sh2add      a2, t0, a2\n        vfmul.vv    v28, v28, v16\n        vsseg2e32.v v24, (a0)\n        sh3add      a0, t0, a0\n        bnez        a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_hybrid_analysis_rvv, zve32f\n        /* We need 26 FP registers, for 20 scratch ones. Spill fs0-fs5. */", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:2", "text": "func ff_ps_mul_pair_single_rvv, zve32f\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vlseg2e32.v v24, (a1)\n        sub         a3, a3, t0\n        vle32.v     v16, (a2)\n        sh3add      a1, t0, a1\n        vfmul.vv    v24, v24, v16\n        sh2add      a2, t0, a2\n        vfmul.vv    v28, v28, v16\n        vsseg2e32.v v24, (a0)\n        sh3add      a0, t0, a0\n        bnez        a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_hybrid_analysis_rvv, zve32f\n        /* We need 26 FP registers, for 20 scratch ones. Spill fs0-fs5. */\n        addi    sp, sp, -48\n        .irp n, 0, 1, 2, 3, 4, 5\nHWD     fsd     fs\\n, (8 * \\n)(sp)\nNOHWD   fsw     fs\\n, (4 * \\n)(sp)\n        .endr\n\n        .macro input, j, fd0, fd1, fd2, fd3\n        flw     \\fd0, (4 * ((\\j * 2) + 0))(a1)\n        flw     fs4, (4 * (((12 - \\j) * 2) + 0))(a1)\n        flw     \\fd1, (4 * ((\\j * 2) + 1))(a1)\n        fsub.s  \\fd3, \\fd0, fs4\n        flw     fs5, (4 * (((12 - \\j) * 2) + 1))(a1)\n        fadd.s  \\fd2, \\fd1, fs5\n        fadd.s  \\fd0, \\fd0, fs4\n        fsub.s  \\fd1, \\fd1, fs5\n        .endm\n\n        //         re0, re1, im0, im1\n        input   0, ft0, ft1, ft2, ft3\n        input   1, ft4, ft5, ft6, ft7\n        input   2, ft8, ft9, ft10, ft11\n        input   3, fa0, fa1, fa2, fa3\n        input   4, fa4, fa5, fa6, fa7\n        input   5, fs0, fs1, fs2, fs3\n        flw     fs4, (4 * ((6 * 2) + 0))(a1)\n        flw     fs5, (4 * ((6 * 2) + 1))(a1)\n\n        add     t2, a2, 6 * 2 * 4 // point to filter[i][6][0]\n        li         t4, 8 * 2 * 4 // filter byte stride\n        slli       a3, a3, 3 // output byte stride\n1:\n        .macro filter, vs0, vs1, fo0, fo1, fo2, fo3\n        vfmacc.vf  v8, \\fo0, \\vs0\n        vfmacc.vf  v10, \\fo2, \\vs0\n        vfnmsac.vf v8, \\fo1, \\vs1\n        vfmacc.vf  v10, \\fo3, \\vs1\n        .endm\n\n        vsetvli    t0, a4, e32, m2, ta, ma\n        /*", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:3", "text": "input   2, ft8, ft9, ft10, ft11\n        input   3, fa0, fa1, fa2, fa3\n        input   4, fa4, fa5, fa6, fa7\n        input   5, fs0, fs1, fs2, fs3\n        flw     fs4, (4 * ((6 * 2) + 0))(a1)\n        flw     fs5, (4 * ((6 * 2) + 1))(a1)\n\n        add     t2, a2, 6 * 2 * 4 // point to filter[i][6][0]\n        li         t4, 8 * 2 * 4 // filter byte stride\n        slli       a3, a3, 3 // output byte stride\n1:\n        .macro filter, vs0, vs1, fo0, fo1, fo2, fo3\n        vfmacc.vf  v8, \\fo0, \\vs0\n        vfmacc.vf  v10, \\fo2, \\vs0\n        vfnmsac.vf v8, \\fo1, \\vs1\n        vfmacc.vf  v10, \\fo3, \\vs1\n        .endm\n\n        vsetvli    t0, a4, e32, m2, ta, ma\n        /*\n         * The filter (a2) has 16 segments, of which 13 need to be extracted.\n         * R-V V supports only up to 8 segments, so unrolling is unavoidable.\n         */\n        vlse32.v   v28, (t2), t4\n        addi       t1, a2, 16\n        vfmul.vf   v8, v28, fs4\n        vlsseg4e32.v v16, (a2), t4\n        vfmul.vf   v10, v28, fs5\n        filter     v16, v18, ft0, ft1, ft2, ft3\n        vlsseg4e32.v v24, (t1), t4\n        filter     v20, v22, ft4, ft5, ft6, ft7\n        addi       t1, a2, 32\n        filter     v24, v26, ft8, ft9, ft10, ft11\n        vlsseg4e32.v v16, (t1), t4\n        sub        a4, a4, t0\n        filter     v28, v30, fa0, fa1, fa2, fa3\n        slli       t1, t0, 3 + 1 + 2 // ctz(8 * 2 * 4)\n        filter     v16, v18, fa4, fa5, fa6, fa7\n        mul        t0, t0, a3\n        filter     v20, v22, fs0, fs1, fs2, fs3\n        add        a2, a2, t1\n        add        t2, t2, t1\n        vssseg2e32.v v8, (a0), a3\n        add        a0, a0, t0\n        bnez       a4, 1b\n\n        .irp n, 5, 4, 3, 2, 1, 0\nHWD     fld     fs\\n, (8 * \\n)(sp)\nNOHWD   flw     fs\\n, (4 * \\n)(sp)\n        .endr\n        addi    sp, sp, 48\n        ret\n        .purgem input\n        .purgem filter\nendfunc\n\nfunc ff_ps_hybrid_analysis_ileave_rvv, zve32x /* no needs for zve32f here */\n        slli        t0, a2, 5 + 1 + 2 // ctz(32 * 2 * 4)\n        sh2add      a1, a2, a1\n        add         a0, a0, t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:4", "text": "add        a2, a2, t1\n        add        t2, t2, t1\n        vssseg2e32.v v8, (a0), a3\n        add        a0, a0, t0\n        bnez       a4, 1b\n\n        .irp n, 5, 4, 3, 2, 1, 0\nHWD     fld     fs\\n, (8 * \\n)(sp)\nNOHWD   flw     fs\\n, (4 * \\n)(sp)\n        .endr\n        addi    sp, sp, 48\n        ret\n        .purgem input\n        .purgem filter\nendfunc\n\nfunc ff_ps_hybrid_analysis_ileave_rvv, zve32x /* no needs for zve32f here */\n        slli        t0, a2, 5 + 1 + 2 // ctz(32 * 2 * 4)\n        sh2add      a1, a2, a1\n        add         a0, a0, t0\n        addi        a2, a2, -64\n        li          t1, 38 * 64 * 4\n        li          t6, 64 * 4 // (uint8_t *)L[x][j+1][i] - L[x][j][i]\n        add         a4, a1, t1 // &L[1]\n        beqz        a2, 3f\n1:\n        mv          t0, a0\n        mv          t1, a1\n        mv          t3, a3\n        mv          t4, a4\n        addi        a2, a2, 1\n2:\n        vsetvli     t5, t3, e32, m4, ta, ma\n        vlse32.v    v16, (t1), t6\n        sub         t3, t3, t5\n        vlse32.v    v20, (t4), t6\n        mul         t2, t5, t6\n        vsseg2e32.v v16, (t0)\n        sh3add      t0, t5, t0\n        add         t1, t1, t2\n        add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64\n        li      t0, 38 * 64\n        li      t1, 32 * 2 * 4\n        li      t4, 8 - 16384 // offset from in[64][n][0] to in[0][n + 1][0]\n        slli    t5, a2, 5 + 1 + 2 // and from in[0][n+1][0] to in[0][n+1][s]", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:5", "text": "add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64\n        li      t0, 38 * 64\n        li      t1, 32 * 2 * 4\n        li      t4, 8 - 16384 // offset from in[64][n][0] to in[0][n + 1][0]\n        slli    t5, a2, 5 + 1 + 2 // and from in[0][n+1][0] to in[0][n+1][s]\n        neg     t2, t2\n        li      t3, 32\n        add     a4, t4, t5\n        sh2add  t0, t0, a0\n1:\n        mv      t4, t2\n        addi    a3, a3, -1\n2:\n        vsetvli t5, t4, e32, m4, ta, ma\n        vlse64.v v16, (a1), t1 /* sizeof (float[32][2]) */\n        sub     t4, t4, t5\n        vnsrl.wx v24, v16, zero\n        slli    t6, t5, 5 + 1 + 2\n        vnsrl.wx v28, v16, t3 /* 32 */\n        add     a1, a1, t6\n        vse32.v v24, (a0)\n        sh2add  a0, t5, a0\n        vse32.v v28, (t0)\n        sh2add  t0, t5, t0\n        bnez    t4, 2b\n\n        add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f, zbb\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:6", "text": "add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f, zbb\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1\n        flw          ft0,   (a3)\n        vfmv.v.f     v20, ft2\n        flw          ft1,  4(a3)\n        vfmv.v.f     v22, ft3\n        flw          ft2,  8(a3)\n        flw          ft3, 12(a3)\n        fcvt.s.wu    ft4, t0       // (float)(vlenb / sizeof (float))\n        vfmacc.vf    v16, ft0, v24 // h0 += (i + 1) * h0_step\n        fmul.s       ft0, ft0, ft4\n        vfmacc.vf    v18, ft1, v24\n        fmul.s       ft1, ft1, ft4\n        vfmacc.vf    v20, ft2, v24\n        fmul.s       ft2, ft2, ft4\n        vfmacc.vf    v22, ft3, v24\n        fmul.s       ft3, ft3, ft4\n1:\n        min       t0, t0, a4\n        vsetvli   zero, t0, e32, m2, ta, ma\n        vlseg2e32.v v0, (a0)     // v0:l_re, v2:l_im\n        sub       a4, a4, t0\n        vlseg2e32.v v4, (a1)    // v4:r_re, v6:r_im\n        vfmul.vv  v8, v0, v16\n        vfmul.vv  v10, v2, v16\n        vfmul.vv  v12, v0, v18\n        vfmul.vv  v14, v2, v18\n        vfmacc.vv v8, v4, v20\n        vfmacc.vv v10, v6, v20\n        vfmacc.vv v12, v4, v22\n        vfmacc.vv v14, v6, v22\n        vsseg2e32.v v8, (a0)\n        sh3add    a0, t0, a0\n        vsseg2e32.v v12, (a1)\n        sh3add    a1, t0, a1\n        vfadd.vf  v16, v16, ft0 // h0 += (vlenb / sizeof (float)) * h0_step\n        vfadd.vf  v18, v18, ft1\n        vfadd.vf  v20, v20, ft2\n        vfadd.vf  v22, v22, ft3\n        bnez      a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:5", "text": "add         t4, t4, t2\n        bnez        t3, 2b\n\n        add         a0, a0, 32 * 2 * 4\n        add         a1, a1, 4\n        add         a4, a4, 4\n        bnez        a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_ps_hybrid_synthesis_deint_rvv, zve64x\n        slli    t0, a2, 5 + 1 + 2\n        sh2add  a0, a2, a0\n        add     a1, a1, t0\n        addi    t2, a2, -64\n        li      t0, 38 * 64\n        li      t1, 32 * 2 * 4\n        li      t4, 8 - 16384 // offset from in[64][n][0] to in[0][n + 1][0]\n        slli    t5, a2, 5 + 1 + 2 // and from in[0][n+1][0] to in[0][n+1][s]\n        neg     t2, t2\n        li      t3, 32\n        add     a4, t4, t5\n        sh2add  t0, t0, a0\n1:\n        mv      t4, t2\n        addi    a3, a3, -1\n2:\n        vsetvli t5, t4, e32, m4, ta, ma\n        vlse64.v v16, (a1), t1 /* sizeof (float[32][2]) */\n        sub     t4, t4, t5\n        vnsrl.wx v24, v16, zero\n        slli    t6, t5, 5 + 1 + 2\n        vnsrl.wx v28, v16, t3 /* 32 */\n        add     a1, a1, t6\n        vse32.v v24, (a0)\n        sh2add  a0, t5, a0\n        vse32.v v28, (t0)\n        sh2add  t0, t5, t0\n        bnez    t4, 2b\n\n        add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/aacpsdsp_rvv.S:6", "text": "add     a1, a1, a4\n        sh2add  a0, a2, a0\n        sh2add  t0, a2, t0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_ps_stereo_interpolate_rvv, zve32f\n        vsetvli      t0, zero, e32, m2, ta, ma\n        vid.v        v24\n        flw          ft0,   (a2)\n        vadd.vi      v24, v24, 1   // v24[i] = i + 1\n        flw          ft1,  4(a2)\n        vfcvt.f.xu.v v24, v24\n        flw          ft2,  8(a2)\n        vfmv.v.f     v16, ft0\n        flw          ft3, 12(a2)\n        vfmv.v.f     v18, ft1\n        flw          ft0,   (a3)\n        vfmv.v.f     v20, ft2\n        flw          ft1,  4(a3)\n        vfmv.v.f     v22, ft3\n        flw          ft2,  8(a3)\n        flw          ft3, 12(a3)\n        fcvt.s.wu    ft4, t0       // (float)(vlenb / sizeof (float))\n        vfmacc.vf    v16, ft0, v24 // h0 += (i + 1) * h0_step\n        fmul.s       ft0, ft0, ft4\n        vfmacc.vf    v18, ft1, v24\n        fmul.s       ft1, ft1, ft4\n        vfmacc.vf    v20, ft2, v24\n        fmul.s       ft2, ft2, ft4\n        vfmacc.vf    v22, ft3, v24\n        fmul.s       ft3, ft3, ft4\n1:\n        min       t0, t0, a4\n        vsetvli   zero, t0, e32, m2, ta, ma\n        vlseg2e32.v v0, (a0)     // v0:l_re, v2:l_im\n        sub       a4, a4, t0\n        vlseg2e32.v v4, (a1)    // v4:r_re, v6:r_im\n        vfmul.vv  v8, v0, v16\n        vfmul.vv  v10, v2, v16\n        vfmul.vv  v12, v0, v18\n        vfmul.vv  v14, v2, v18\n        vfmacc.vv v8, v4, v20\n        vfmacc.vv v10, v6, v20\n        vfmacc.vv v12, v4, v22\n        vfmacc.vv v14, v6, v22\n        vsseg2e32.v v8, (a0)\n        sh3add    a0, t0, a0\n        vsseg2e32.v v12, (a1)\n        sh3add    a1, t0, a1\n        vfadd.vf  v16, v16, ft0 // h0 += (vlenb / sizeof (float)) * h0_step\n        vfadd.vf  v18, v18, ft1\n        vfadd.vf  v20, v20, ft2\n        vfadd.vf  v22, v22, ft3\n        bnez      a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/aacpsdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/aacpsdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvb, zbb\n        lpad    0\n        beqz    a1, 3f\n1:\n        addi    a2, a2, -1\n        lb      t3, (a0)\n        addi    t0, a0, 256\n        mv      t1, a1\n2:\n        lb      t4, (t0)\n        addi    t1, t1, -1\n        addi    t0, t0, 256\n        minu    t3, t3, t4\n        bnez    t1, 2b\n\n        sb      t3, (a0)\n        addi    a0, a0, 1\n        bnez    a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_extract_exponents_rvb, zbb\n        lpad    0\n1:\n        lw       t0, (a1)\n        addi     a0, a0, 1\n        neg      t1, t0\n        addi     a1, a1, 4\n        max      t0, t0, t1\n        addi     a2, a2, -1\n        clz      t0, t0\n        addi     t0, t0, 24 - __riscv_xlen\n        sb       t0, -1(a0)\n        bgtz    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/ac3dsp_rvb.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvb, zbb\n        lpad    0\n        beqz    a1, 3f\n1:\n        addi    a2, a2, -1\n        lb      t3, (a0)\n        addi    t0, a0, 256\n        mv      t1, a1\n2:\n        lb      t4, (t0)\n        addi    t1, t1, -1\n        addi    t0, t0, 256\n        minu    t3, t3, t4\n        bnez    t1, 2b\n\n        sb      t3, (a0)\n        addi    a0, a0, 1\n        bnez    a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_extract_exponents_rvb, zbb\n        lpad    0\n1:\n        lw       t0, (a1)\n        addi     a0, a0, 1\n        neg      t1, t0\n        addi     a1, a1, 4\n        max      t0, t0, t1\n        addi     a2, a2, -1\n        clz      t0, t0\n        addi     t0, t0, 24 - __riscv_xlen\n        sb       t0, -1(a0)\n        bgtz    a2, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvb.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvb.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvb.S:2", "text": "bnez    a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_extract_exponents_rvb, zbb\n        lpad    0\n1:\n        lw       t0, (a1)\n        addi     a0, a0, 1\n        neg      t1, t0\n        addi     a1, a1, 4\n        max      t0, t0, t1\n        addi     a2, a2, -1\n        clz      t0, t0\n        addi     t0, t0, 24 - __riscv_xlen\n        sb       t0, -1(a0)\n        bgtz    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvb.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvb.S", "line_start": 41, "line_end": 61}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvb, zbb\n        beqz    a1, 3f\n1:\n        addi    a2, a2, -1\n        lb      t3, (a0)\n        addi    t0, a0, 256\n        mv      t1, a1\n2:\n        lb      t4, (t0)\n        addi    t1, t1, -1\n        addi    t0, t0, 256\n        minu    t3, t3, t4\n        bnez    t1, 2b\n\n        sb      t3, (a0)\n        addi    a0, a0, 1\n        bnez    a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_extract_exponents_rvb, zbb\n1:\n        lw       t0, (a1)\n        addi     a0, a0, 1\n        neg      t1, t0\n        addi     a1, a1, 4\n        max      t0, t0, t1\n        addi     a2, a2, -1\n        clz      t0, t0\n        addi     t0, t0, 24 - __riscv_xlen\n        sb       t0, -1(a0)\n        bgtz    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvb.S", "license": "LGPL-2.1", "commit": "9e77188cba63920f51801fbbc1f7be4a995def7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9e77188cba63920f51801fbbc1f7be4a995def7a/libavcodec/riscv/ac3dsp_rvb.S", "line_start": 1, "line_end": 59}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_extract_exponents_rvb, zbb\n1:\n        lw       t0, (a1)\n        addi     a0, a0, 1\n        neg      t1, t0\n        addi     a1, a1, 4\n        max      t0, t0, t1\n        addi     a2, a2, -1\n        clz      t0, t0\n        addi     t0, t0, 24 - __riscv_xlen\n        sb       t0, -1(a0)\n        bgtz    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvb.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/ac3dsp_rvb.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvv, zve32x\n        lpad    0\n        beqz     a1, 3f\n1:\n        vsetvli  t2, a2, e8, m8, ta, ma\n        vle8.v   v8, (a0)\n        addi     t0, a0, 256\n        sub      a2, a2, t2\n        mv       t1, a1\n2:\n        vle8.v   v16, (t0)\n        addi     t1, t1, -1\n        vminu.vv v8, v8, v16\n        addi     t0, t0, 256\n        bnez     t1, 2b\n\n        vse8.v   v8, (a0)\n        add      a0, a0, t2\n        bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        lpad    0\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:2", "text": "bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        lpad    0\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret\nendfunc\n\n#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x, zba\n        lpad    0\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:3", "text": "vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret\nendfunc\n#endif\n\nfunc ff_sum_square_butterfly_float_rvv, zve32f, zba\n        lpad    0\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v0, zero\n        vmv.v.x     v8, zero\n1:\n        vsetvli     t0, a3, e32, m4, tu, ma\n        vle32.v     v16, (a1)\n        sub         a3, a3, t0\n        vle32.v     v20, (a2)\n        sh2add      a1, t0, a1\n        vfadd.vv    v24, v16, v20\n        sh2add      a2, t0, a2\n        vfsub.vv    v28, v16, v20\n        vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:4", "text": "vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19\n        fsw         ft2,  8(a0)\n        fsw         ft3, 12(a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 121, "line_end": 144}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvv, zve32x\n        lpad    0\n        beqz     a1, 3f\n1:\n        vsetvli  t2, a2, e8, m8, ta, ma\n        vle8.v   v8, (a0)\n        addi     t0, a0, 256\n        sub      a2, a2, t2\n        mv       t1, a1\n2:\n        vle8.v   v16, (t0)\n        addi     t1, t1, -1\n        vminu.vv v8, v8, v16\n        addi     t0, t0, 256\n        bnez     t1, 2b\n\n        vse8.v   v8, (a0)\n        add      a0, a0, t2\n        bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        lpad    0\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "da1ab7940ebc6c2e7ebf0ea8197ea5e0703168ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/da1ab7940ebc6c2e7ebf0ea8197ea5e0703168ab/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvv, zve32x\n        lpad    0\n        beqz     a1, 3f\n1:\n        vsetvli  t2, a2, e8, m8, ta, ma\n        vle8.v   v8, (a0)\n        addi     t0, a0, 256\n        sub      a2, a2, t2\n        mv       t1, a1\n2:\n        vle8.v   v16, (t0)\n        addi     t1, t1, -1\n        vminu.vv v8, v8, v16\n        addi     t0, t0, 256\n        bnez     t1, 2b\n\n        vse8.v   v8, (a0)\n        add      a0, a0, t2\n        bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        lpad    0\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:2", "text": "add      a0, a0, t2\n        bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        lpad    0\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret\nendfunc\n\n#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x, zba\n        lpad    0\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:3", "text": "vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret\nendfunc\n#endif\n\nfunc ff_sum_square_butterfly_float_rvv, zve32f, zba\n        lpad    0\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v0, zero\n        vmv.v.x     v8, zero\n1:\n        vsetvli     t0, a3, e32, m4, tu, ma\n        vle32.v     v16, (a1)\n        sub         a3, a3, t0\n        vle32.v     v20, (a2)\n        sh2add      a1, t0, a1\n        vfadd.vv    v24, v16, v20\n        sh2add      a2, t0, a2\n        vfsub.vv    v28, v16, v20\n        vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:4", "text": "vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19\n        fsw         ft2,  8(a0)\n        fsw         ft3, 12(a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 121, "line_end": 145}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvv, zve32x\n        beqz     a1, 3f\n1:\n        vsetvli  t2, a2, e8, m8, ta, ma\n        vle8.v   v8, (a0)\n        addi     t0, a0, 256\n        sub      a2, a2, t2\n        mv       t1, a1\n2:\n        vle8.v   v16, (t0)\n        addi     t1, t1, -1\n        vminu.vv v8, v8, v16\n        addi     t0, t0, 256\n        bnez     t1, 2b\n\n        vse8.v   v8, (a0)\n        add      a0, a0, t2\n        bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:2", "text": "bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f, zba\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret\nendfunc\n\n#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x, zba\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:3", "text": "bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret\nendfunc\n#endif\n\nfunc ff_sum_square_butterfly_float_rvv, zve32f, zba\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v0, zero\n        vmv.v.x     v8, zero\n1:\n        vsetvli     t0, a3, e32, m4, tu, ma\n        vle32.v     v16, (a1)\n        sub         a3, a3, t0\n        vle32.v     v20, (a2)\n        sh2add      a1, t0, a1\n        vfadd.vv    v24, v16, v20\n        sh2add      a2, t0, a2\n        vfsub.vv    v28, v16, v20\n        vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19\n        fsw         ft2,  8(a0)\n        fsw         ft3, 12(a0)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:4", "text": "bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19\n        fsw         ft2,  8(a0)\n        fsw         ft3, 12(a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 121, "line_end": 141}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ac3_exponent_min_rvv, zve32x\n        beqz     a1, 3f\n1:\n        vsetvli  t2, a2, e8, m8, ta, ma\n        vle8.v   v8, (a0)\n        addi     t0, a0, 256\n        sub      a2, a2, t2\n        mv       t1, a1\n2:\n        vle8.v   v16, (t0)\n        addi     t1, t1, -1\n        vminu.vv v8, v8, v16\n        addi     t0, t0, 256\n        bnez     t1, 2b\n\n        vse8.v   v8, (a0)\n        add      a0, a0, t2\n        bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "38f67a32b3831c8dd0b34db888c16d4a7af9091c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/38f67a32b3831c8dd0b34db888c16d4a7af9091c/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:2", "text": "bnez     a2, 1b\n3:\n        ret\nendfunc\n\nfunc ff_float_to_fixed24_rvv, zve32f\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret\nendfunc\n\n#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "38f67a32b3831c8dd0b34db888c16d4a7af9091c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/38f67a32b3831c8dd0b34db888c16d4a7af9091c/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:3", "text": "bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret\nendfunc\n#endif\n\nfunc ff_sum_square_butterfly_float_rvv, zve32f\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v0, zero\n        vmv.v.x     v8, zero\n1:\n        vsetvli     t0, a3, e32, m4, tu, ma\n        vle32.v     v16, (a1)\n        sub         a3, a3, t0\n        vle32.v     v20, (a2)\n        sh2add      a1, t0, a1\n        vfadd.vv    v24, v16, v20\n        sh2add      a2, t0, a2\n        vfsub.vv    v28, v16, v20\n        vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19\n        fsw         ft2,  8(a0)\n        fsw         ft3, 12(a0)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "38f67a32b3831c8dd0b34db888c16d4a7af9091c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/38f67a32b3831c8dd0b34db888c16d4a7af9091c/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_float_to_fixed24_rvv, zve32f\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret\nendfunc\n\n#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "6cd97cd7975ce662234687bbc8cca397d281b99a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6cd97cd7975ce662234687bbc8cca397d281b99a/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:2", "text": "#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret\nendfunc\n#endif\n\nfunc ff_sum_square_butterfly_float_rvv, zve32f\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v0, zero\n        vmv.v.x     v8, zero\n1:\n        vsetvli     t0, a3, e32, m4, tu, ma\n        vle32.v     v16, (a1)\n        sub         a3, a3, t0\n        vle32.v     v20, (a2)\n        sh2add      a1, t0, a1\n        vfadd.vv    v24, v16, v20\n        sh2add      a2, t0, a2\n        vfsub.vv    v28, v16, v20\n        vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "6cd97cd7975ce662234687bbc8cca397d281b99a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6cd97cd7975ce662234687bbc8cca397d281b99a/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:3", "text": "func ff_sum_square_butterfly_float_rvv, zve32f\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v0, zero\n        vmv.v.x     v8, zero\n1:\n        vsetvli     t0, a3, e32, m4, tu, ma\n        vle32.v     v16, (a1)\n        sub         a3, a3, t0\n        vle32.v     v20, (a2)\n        sh2add      a1, t0, a1\n        vfadd.vv    v24, v16, v20\n        sh2add      a2, t0, a2\n        vfsub.vv    v28, v16, v20\n        vfmacc.vv   v0, v16, v16\n        vfmacc.vv   v4, v20, v20\n        vfmacc.vv   v8, v24, v24\n        vfmacc.vv   v12, v28, v28\n        bnez        a3, 1b\n\n        vsetvli     t0, zero, e32, m4, ta, ma\n        vmv.s.x     v16, zero\n        vmv.s.x     v17, zero\n        vfredsum.vs v16, v0, v16\n        vmv.s.x     v18, zero\n        vfredsum.vs v17, v4, v17\n        vmv.s.x     v19, zero\n        vfredsum.vs v18, v8, v18\n        vfmv.f.s    ft0, v16\n        vfredsum.vs v19, v12, v19\n        vfmv.f.s    ft1, v17\n        fsw         ft0,   (a0)\n        vfmv.f.s    ft2, v18\n        fsw         ft1,  4(a0)\n        vfmv.f.s    ft3, v19\n        fsw         ft2,  8(a0)\n        fsw         ft3, 12(a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "6cd97cd7975ce662234687bbc8cca397d281b99a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6cd97cd7975ce662234687bbc8cca397d281b99a/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:2", "text": "#if __riscv_xlen >= 64\nfunc ff_sum_square_butterfly_int32_rvv, zve64x\n        vsetvli    t0, zero, e64, m8, ta, ma\n        vmv.v.x    v0, zero\n        vmv.v.x    v8, zero\n1:\n        vsetvli    t0, a3, e32, m2, tu, ma\n        vle32.v    v16, (a1)\n        sub        a3, a3, t0\n        vle32.v    v20, (a2)\n        sh2add     a1, t0, a1\n        vadd.vv    v24, v16, v20\n        sh2add     a2, t0, a2\n        vsub.vv    v28, v16, v20\n        vwmacc.vv  v0, v16, v16\n        vwmacc.vv  v4, v20, v20\n        vwmacc.vv  v8, v24, v24\n        vwmacc.vv  v12, v28, v28\n        bnez       a3, 1b\n\n        vsetvli    t0, zero, e64, m4, ta, ma\n        vmv.s.x    v16, zero\n        vmv.s.x    v17, zero\n        vredsum.vs v16, v0, v16\n        vmv.s.x    v18, zero\n        vredsum.vs v17, v4, v17\n        vmv.s.x    v19, zero\n        vredsum.vs v18, v8, v18\n        vmv.x.s    t0, v16\n        vredsum.vs v19, v12, v19\n        vmv.x.s    t1, v17\n        sd         t0,   (a0)\n        vmv.x.s    t2, v18\n        sd         t1,  8(a0)\n        vmv.x.s    t3, v19\n        sd         t2, 16(a0)\n        sd         t3, 24(a0)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "6459966bebc07b3c26338cbecf72f3607feb961f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6459966bebc07b3c26338cbecf72f3607feb961f/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 41, "line_end": 80}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_float_to_fixed24_rvv, zve32f\n        li            t1, 1 << 24\n        fcvt.s.w      f0, t1\n1:\n        vsetvli       t0, a2, e32, m8, ta, ma\n        sub           a2, a2, t0\n        vle32.v       v0, (a1)\n        vfmul.vf      v0, v0, f0\n        vfcvt.x.f.v   v0, v0\n        sh2add        a1, t0, a1\n        vse32.v       v0, (a0)\n        sh2add        a0, t0, a0\n        bnez          a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/ac3dsp_rvv.S", "line_start": 1, "line_end": 39}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_extract_exponents_rvvb, zve32x, zvbb, zba\n        lpad    0\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v8, (a1)\n        sub         a2, a2, t0\n        vneg.v      v16, v8\n        sh2add      a1, t0, a1\n        vmax.vv     v8, v8, v16\n        vclz.v      v8, v8\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v4, v8\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vncvt.x.x.w v2, v4\n        vadd.vi     v2, v2, 24 - 32\n        vse8.v      v2, (a0)\n        add         a0, a0, t0\n        bnez        a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/ac3dsp_rvvb.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_extract_exponents_rvvb, zve32x, zvbb, zba\n        lpad    0\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v8, (a1)\n        sub         a2, a2, t0\n        vneg.v      v16, v8\n        sh2add      a1, t0, a1\n        vmax.vv     v8, v8, v16\n        vclz.v      v8, v8\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v4, v8\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vncvt.x.x.w v2, v4\n        vadd.vi     v2, v2, 24 - 32\n        vse8.v      v2, (a0)\n        add         a0, a0, t0\n        bnez        a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvvb.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/ac3dsp_rvvb.S", "line_start": 1, "line_end": 44}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_extract_exponents_rvvb, zve32x, zvbb, zba\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v8, (a1)\n        sub         a2, a2, t0\n        vneg.v      v16, v8\n        sh2add      a1, t0, a1\n        vmax.vv     v8, v8, v16\n        vclz.v      v8, v8\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v4, v8\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vncvt.x.x.w v2, v4\n        vadd.vi     v2, v2, 24 - 32\n        vse8.v      v2, (a0)\n        add         a0, a0, t0\n        bnez        a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvvb.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/ac3dsp_rvvb.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/ac3dsp_rvvb.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_extract_exponents_rvvb, zve32x, zvbb\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v8, (a1)\n        sub         a2, a2, t0\n        vneg.v      v16, v8\n        sh2add      a1, t0, a1\n        vmax.vv     v8, v8, v16\n        vclz.v      v8, v8\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v4, v8\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vncvt.x.x.w v2, v4\n        vadd.vi     v2, v2, 24 - 32\n        vse8.v      v2, (a0)\n        add         a0, a0, t0\n        bnez        a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/ac3dsp_rvvb.S", "license": "LGPL-2.1", "commit": "0d9591841b2b38a1620d393a0ca7594fa5955407", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0d9591841b2b38a1620d393a0ca7594fa5955407/libavcodec/riscv/ac3dsp_rvvb.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\nfunc ff_alac_decorrelate_stereo_rvv, zve32x, zba\n        lpad    0\n        ld          a4, 8(a0)\n        ld          a0, 0(a0)\n1:\n        vsetvli     t0, a1, e32, m4, ta, ma\n        vle32.v     v24, (a4)\n        sub         a1, a1, t0\n        vle32.v     v16, (a0)\n        vmul.vx     v8, v24, a3\n        vadd.vv     v24, v24, v16\n        vsra.vx     v8, v8, a2\n        vsub.vv     v16, v16, v8\n        vsub.vv     v24, v24, v8\n        vse32.v     v16, (a4)\n        sh2add      a4, t0, a4\n        vse32.v     v24, (a0)\n        sh2add      a0, t0, a0\n        bnez        a1, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_mono_rvv, zve32x, zba\n        lpad    0\n        ld      a0, (a0)\n        ld      a1, (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vsll.vx v16, v16, a2\n        vor.vv  v16, v24, v16\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/alacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:2", "text": "sh2add      a0, t0, a0\n        bnez        a1, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_mono_rvv, zve32x, zba\n        lpad    0\n        ld      a0, (a0)\n        ld      a1, (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vsll.vx v16, v16, a2\n        vor.vv  v16, v24, v16\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_stereo_rvv, zve32x, zba\n        lpad    0\n        ld      a6, 8(a0)\n        ld      a0,  (a0)\n        ld      a7, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v0, (a6)\n        vsll.vx v16, v16, a2\n        vsll.vx v0, v0, a2\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vle32.v v8, (a7)\n        sh2add  a7, t0, a7\n        vor.vv  v16, v24, v16\n        vor.vv  v0, v8, v0\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a6)\n        sh2add  a6, t0, a6\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/alacdsp_rvv.S", "line_start": 41, "line_end": 93}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:3", "text": "vle32.v v8, (a7)\n        sh2add  a7, t0, a7\n        vor.vv  v16, v24, v16\n        vor.vv  v0, v8, v0\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a6)\n        sh2add  a6, t0, a6\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/alacdsp_rvv.S", "line_start": 81, "line_end": 93}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\nfunc ff_alac_decorrelate_stereo_rvv, zve32x, zba\n        ld          a4, 8(a0)\n        ld          a0, 0(a0)\n1:\n        vsetvli     t0, a1, e32, m4, ta, ma\n        vle32.v     v24, (a4)\n        sub         a1, a1, t0\n        vle32.v     v16, (a0)\n        vmul.vx     v8, v24, a3\n        vadd.vv     v24, v24, v16\n        vsra.vx     v8, v8, a2\n        vsub.vv     v16, v16, v8\n        vsub.vv     v24, v24, v8\n        vse32.v     v16, (a4)\n        sh2add      a4, t0, a4\n        vse32.v     v24, (a0)\n        sh2add      a0, t0, a0\n        bnez        a1, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_mono_rvv, zve32x, zba\n        ld      a0, (a0)\n        ld      a1, (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vsll.vx v16, v16, a2\n        vor.vv  v16, v24, v16\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/alacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:2", "text": "bnez        a1, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_mono_rvv, zve32x, zba\n        ld      a0, (a0)\n        ld      a1, (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vsll.vx v16, v16, a2\n        vor.vv  v16, v24, v16\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_stereo_rvv, zve32x, zba\n        ld      a6, 8(a0)\n        ld      a0,  (a0)\n        ld      a7, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v0, (a6)\n        vsll.vx v16, v16, a2\n        vsll.vx v0, v0, a2\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vle32.v v8, (a7)\n        sh2add  a7, t0, a7\n        vor.vv  v16, v24, v16\n        vor.vv  v0, v8, v0\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a6)\n        sh2add  a6, t0, a6\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/alacdsp_rvv.S", "line_start": 41, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:3", "text": "vor.vv  v0, v8, v0\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a6)\n        sh2add  a6, t0, a6\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/alacdsp_rvv.S", "line_start": 81, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\nfunc ff_alac_decorrelate_stereo_rvv, zve32x\n        ld          a4, 8(a0)\n        ld          a0, 0(a0)\n1:\n        vsetvli     t0, a1, e32, m4, ta, ma\n        vle32.v     v24, (a4)\n        sub         a1, a1, t0\n        vle32.v     v16, (a0)\n        vmul.vx     v8, v24, a3\n        vadd.vv     v24, v24, v16\n        vsra.vx     v8, v8, a2\n        vsub.vv     v16, v16, v8\n        vsub.vv     v24, v24, v8\n        vse32.v     v16, (a4)\n        sh2add      a4, t0, a4\n        vse32.v     v24, (a0)\n        sh2add      a0, t0, a0\n        bnez        a1, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_mono_rvv, zve32x\n        ld      a0, (a0)\n        ld      a1, (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vsll.vx v16, v16, a2\n        vor.vv  v16, v24, v16\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/alacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/alacdsp_rvv.S:2", "text": "bnez        a1, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_mono_rvv, zve32x\n        ld      a0, (a0)\n        ld      a1, (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vsll.vx v16, v16, a2\n        vor.vv  v16, v24, v16\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_alac_append_extra_bits_stereo_rvv, zve32x\n        ld      a6, 8(a0)\n        ld      a0,  (a0)\n        ld      a7, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a0)\n        sub     a4, a4, t0\n        vle32.v v0, (a6)\n        vsll.vx v16, v16, a2\n        vsll.vx v0, v0, a2\n        vle32.v v24, (a1)\n        sh2add  a1, t0, a1\n        vle32.v v8, (a7)\n        sh2add  a7, t0, a7\n        vor.vv  v16, v24, v16\n        vor.vv  v0, v8, v0\n        vse32.v v16, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a6)\n        sh2add  a6, t0, a6\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/alacdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/alacdsp_rvv.S", "line_start": 41, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvf.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vector_clipf_rvf, f\n        lpad    0\nNOHWF   fmv.w.x fa0, a3\nNOHWF   fmv.w.x fa1, a4\n1:\n        flw     ft0,   (a1)\n        flw     ft1,  4(a1)\n        fmax.s  ft0, ft0, fa0\n        flw     ft2,  8(a1)\n        fmax.s  ft1, ft1, fa0\n        flw     ft3, 12(a1)\n        fmax.s  ft2, ft2, fa0\n        addi    a2, a2, -4\n        fmax.s  ft3, ft3, fa0\n        addi    a1, a1, 16\n        fmin.s  ft0, ft0, fa1\n        fmin.s  ft1, ft1, fa1\n        fsw     ft0,   (a0)\n        fmin.s  ft2, ft2, fa1\n        fsw     ft1,  4(a0)\n        fmin.s  ft3, ft3, fa1\n        fsw     ft2,  8(a0)\n        fsw     ft3, 12(a0)\n        addi    a0, a0, 16\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvf.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/audiodsp_rvf.S", "line_start": 1, "line_end": 50}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvf.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vector_clipf_rvf, f\nNOHWF   fmv.w.x fa0, a3\nNOHWF   fmv.w.x fa1, a4\n1:\n        flw     ft0,   (a1)\n        flw     ft1,  4(a1)\n        fmax.s  ft0, ft0, fa0\n        flw     ft2,  8(a1)\n        fmax.s  ft1, ft1, fa0\n        flw     ft3, 12(a1)\n        fmax.s  ft2, ft2, fa0\n        addi    a2, a2, -4\n        fmax.s  ft3, ft3, fa0\n        addi    a1, a1, 16\n        fmin.s  ft0, ft0, fa1\n        fmin.s  ft1, ft1, fa1\n        fsw     ft0,   (a0)\n        fmin.s  ft2, ft2, fa1\n        fsw     ft1,  4(a0)\n        fmin.s  ft3, ft3, fa1\n        fsw     ft2,  8(a0)\n        fsw     ft3, 12(a0)\n        addi    a0, a0, 16\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvf.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/audiodsp_rvf.S", "line_start": 1, "line_end": 49}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_scalarproduct_int16_rvv, zve32x, zba\n        lpad    0\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v8, zero\n        vmv.s.x     v0, zero\n1:\n        vsetvli     t0, a2, e16, m4, tu, ma\n        vle16.v     v16, (a0)\n        sub         a2, a2, t0\n        vle16.v     v24, (a1)\n        sh1add      a0, t0, a0\n        vwmacc.vv   v8, v16, v24\n        sh1add      a1, t0, a1\n        bnez        a2, 1b\n\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vredsum.vs  v0, v8, v0\n        vmv.x.s     a0, v0\n        ret\nendfunc\n\nfunc ff_vector_clip_int32_rvv, zve32x, zba\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, t0\n        vmax.vx v8, v8, a2\n        sh2add  a1, t0, a1\n        vmin.vx v8, v8, a3\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_clipf_rvv, zve32f, zba\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/audiodsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvv.S:2", "text": "ret\nendfunc\n\nfunc ff_vector_clip_int32_rvv, zve32x, zba\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, t0\n        vmax.vx v8, v8, a2\n        sh2add  a1, t0, a1\n        vmin.vx v8, v8, a3\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_clipf_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x  fa0, a3\nNOHWF   fmv.w.x  fa1, a4\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vfmax.vf v8, v8, fa0\n        sh2add   a1, t0, a1\n        vfmin.vf v8, v8, fa1\n        vse32.v  v8, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/audiodsp_rvv.S", "line_start": 41, "line_end": 75}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_scalarproduct_int16_rvv, zve32x, zba\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v8, zero\n        vmv.s.x     v0, zero\n1:\n        vsetvli     t0, a2, e16, m4, tu, ma\n        vle16.v     v16, (a0)\n        sub         a2, a2, t0\n        vle16.v     v24, (a1)\n        sh1add      a0, t0, a0\n        vwmacc.vv   v8, v16, v24\n        sh1add      a1, t0, a1\n        bnez        a2, 1b\n\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vredsum.vs  v0, v8, v0\n        vmv.x.s     a0, v0\n        ret\nendfunc\n\nfunc ff_vector_clip_int32_rvv, zve32x, zba\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, t0\n        vmax.vx v8, v8, a2\n        sh2add  a1, t0, a1\n        vmin.vx v8, v8, a3\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_clipf_rvv, zve32f, zba\nNOHWF   fmv.w.x  fa0, a3\nNOHWF   fmv.w.x  fa1, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/audiodsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvv.S:2", "text": "endfunc\n\nfunc ff_vector_clip_int32_rvv, zve32x, zba\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, t0\n        vmax.vx v8, v8, a2\n        sh2add  a1, t0, a1\n        vmin.vx v8, v8, a3\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_clipf_rvv, zve32f, zba\nNOHWF   fmv.w.x  fa0, a3\nNOHWF   fmv.w.x  fa1, a4\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vfmax.vf v8, v8, fa0\n        sh2add   a1, t0, a1\n        vfmin.vf v8, v8, fa1\n        vse32.v  v8, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/audiodsp_rvv.S", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_scalarproduct_int16_rvv, zve32x\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v8, zero\n        vmv.s.x     v0, zero\n1:\n        vsetvli     t0, a2, e16, m4, tu, ma\n        vle16.v     v16, (a0)\n        sub         a2, a2, t0\n        vle16.v     v24, (a1)\n        sh1add      a0, t0, a0\n        vwmacc.vv   v8, v16, v24\n        sh1add      a1, t0, a1\n        bnez        a2, 1b\n\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vredsum.vs  v0, v8, v0\n        vmv.x.s     a0, v0\n        ret\nendfunc\n\nfunc ff_vector_clip_int32_rvv, zve32x\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, t0\n        vmax.vx v8, v8, a2\n        sh2add  a1, t0, a1\n        vmin.vx v8, v8, a3\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_clipf_rvv, zve32f\nNOHWF   fmv.w.x  fa0, a3\nNOHWF   fmv.w.x  fa1, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/audiodsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/audiodsp_rvv.S:2", "text": "endfunc\n\nfunc ff_vector_clip_int32_rvv, zve32x\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, t0\n        vmax.vx v8, v8, a2\n        sh2add  a1, t0, a1\n        vmin.vx v8, v8, a3\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_clipf_rvv, zve32f\nNOHWF   fmv.w.x  fa0, a3\nNOHWF   fmv.w.x  fa1, a4\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vfmax.vf v8, v8, fa0\n        sh2add   a1, t0, a1\n        vfmin.vf v8, v8, fa1\n        vse32.v  v8, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/audiodsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/audiodsp_rvv.S", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_clear_block_rvv, zve64x\n        lpad    0\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_clear_blocks_rvv, zve64x\n        lpad    0\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n\n        .rept 5\n        vse64.v       v0, (a0)\n        addi          a0, a0, 128\n        .endr\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_fill_block16_rvv, zve32x\n        lpad    0\n        vsetivli      t0, 16, e8, m1, ta, ma\n        vmv.v.x       v8, a1\n1:\n        addi          a3, a3, -1\n        vse8.v        v8, (a0)\n        add           a0, a0, a2\n        bnez          a3, 1b\n\n        ret\nendfunc\n\nfunc ff_fill_block8_rvv, zve64x\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/blockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:2", "text": "vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_fill_block16_rvv, zve32x\n        lpad    0\n        vsetivli      t0, 16, e8, m1, ta, ma\n        vmv.v.x       v8, a1\n1:\n        addi          a3, a3, -1\n        vse8.v        v8, (a0)\n        add           a0, a0, a2\n        bnez          a3, 1b\n\n        ret\nendfunc\n\nfunc ff_fill_block8_rvv, zve64x\n        lpad    0\n        vsetvli       t0, zero, e8, m4, ta, ma\n        vmv.v.x       v8, a1\n        vsetvli       t0, a3, e64, m4, ta, ma\n        vsse64.v      v8, (a0), a2\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/blockdsp_rvv.S", "line_start": 41, "line_end": 67}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_clear_block_rvv, zve64x\n        lpad    0\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_clear_blocks_rvv, zve64x\n        lpad    0\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n\n        .rept 5\n        vse64.v       v0, (a0)\n        addi          a0, a0, 128\n        .endr\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_fill_block16_rvv, zve32x\n        lpad    0\n        vsetivli      t0, 16, e8, m1, ta, ma\n        vmv.v.x       v8, a1\n1:\n        addi          a3, a3, -1\n        vse8.v        v8, (a0)\n        add           a0, a0, a2\n        bnez          a3, 1b\n\n        ret\nendfunc\n\nfunc ff_fill_block8_rvv, zve64x\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/blockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_clear_block_rvv, zve64x\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_clear_blocks_rvv, zve64x\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n\n        .rept 5\n        vse64.v       v0, (a0)\n        addi          a0, a0, 128\n        .endr\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_fill_block16_rvv, zve32x\n        vsetivli      t0, 16, e8, m1, ta, ma\n        vmv.v.x       v8, a1\n1:\n        addi          a3, a3, -1\n        vse8.v        v8, (a0)\n        add           a0, a0, a2\n        bnez          a3, 1b\n\n        ret\nendfunc\n\nfunc ff_fill_block8_rvv, zve64x\n        vsetvli       t0, zero, e8, m4, ta, ma\n        vmv.v.x       v8, a1\n        vsetvli       t0, a3, e64, m4, ta, ma\n        vsse64.v      v8, (a0), a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "7d0673db7eb285ffe6da51fa2ab981b38a6f7542", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d0673db7eb285ffe6da51fa2ab981b38a6f7542/libavcodec/riscv/blockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:2", "text": "ret\nendfunc\n\nfunc ff_fill_block16_rvv, zve32x\n        vsetivli      t0, 16, e8, m1, ta, ma\n        vmv.v.x       v8, a1\n1:\n        addi          a3, a3, -1\n        vse8.v        v8, (a0)\n        add           a0, a0, a2\n        bnez          a3, 1b\n\n        ret\nendfunc\n\nfunc ff_fill_block8_rvv, zve64x\n        vsetvli       t0, zero, e8, m4, ta, ma\n        vmv.v.x       v8, a1\n        vsetvli       t0, a3, e64, m4, ta, ma\n        vsse64.v      v8, (a0), a2\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "7d0673db7eb285ffe6da51fa2ab981b38a6f7542", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d0673db7eb285ffe6da51fa2ab981b38a6f7542/libavcodec/riscv/blockdsp_rvv.S", "line_start": 41, "line_end": 63}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_clear_block_rvv, zve64x\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n        vse64.v       v0, (a0)\n\n        ret\nendfunc\n\nfunc ff_clear_blocks_rvv, zve64x\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n\n        .rept 5\n        vse64.v       v0, (a0)\n        addi          a0, a0, 128\n        .endr\n        vse64.v       v0, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "fdebde817c03e0983da31a1d5445b48bf0122e2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fdebde817c03e0983da31a1d5445b48bf0122e2c/libavcodec/riscv/blockdsp_rvv.S", "line_start": 1, "line_end": 42}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/blockdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_clear_block_rvv, zve64x\n        vsetivli      zero, 16, e64, m8, ta, ma\n        vmv.v.i       v0, 0\n        vse64.v       v0, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/blockdsp_rvv.S", "license": "LGPL-2.1", "commit": "0748d2bbc79a77abb7ea49cdc3ef55ac2605eaa0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0748d2bbc79a77abb7ea49cdc3ef55ac2605eaa0/libavcodec/riscv/blockdsp_rvv.S", "line_start": 1, "line_end": 29}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/bswapdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bswap16_buf_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e16, m8, ta, ma\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vsll.vi v16, v8, 8\n        sh1add  a1, t0, a1\n        vsrl.vi v24, v8, 8\n        vor.vv  v8, v16, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/bswapdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/bswapdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/bswapdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bswap16_buf_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e16, m8, ta, ma\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vsll.vi v16, v8, 8\n        sh1add  a1, t0, a1\n        vsrl.vi v24, v8, 8\n        vor.vv  v8, v16, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/bswapdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/bswapdsp_rvv.S", "line_start": 1, "line_end": 39}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/bswapdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bswap16_buf_rvv, zve32x, zba\n1:\n        vsetvli t0, a2, e16, m8, ta, ma\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vsll.vi v16, v8, 8\n        sh1add  a1, t0, a1\n        vsrl.vi v24, v8, 8\n        vor.vv  v8, v16, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/bswapdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/bswapdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/bswapdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bswap16_buf_rvv, zve32x\n1:\n        vsetvli t0, a2, e16, m8, ta, ma\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vsll.vi v16, v8, 8\n        sh1add  a1, t0, a1\n        vsrl.vi v24, v8, 8\n        vor.vv  v8, v16, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/bswapdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/bswapdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/bswapdsp_rvvb.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bswap32_buf_rvvb, zve32x, zvbb, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a2, a2, t0\n        vrev8.v v8, v8\n        sh2add  a1, t0, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_bswap16_buf_rvvb, zve32x, zvbb, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e16, m8, ta, ma\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vrev8.v v8, v8\n        sh1add  a1, t0, a1\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/bswapdsp_rvvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/bswapdsp_rvvb.S", "line_start": 1, "line_end": 51}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/bswapdsp_rvvb.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bswap32_buf_rvvb, zve32x, zvbb, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a2, a2, t0\n        vrev8.v v8, v8\n        sh2add  a1, t0, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_bswap16_buf_rvvb, zve32x, zvbb, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e16, m8, ta, ma\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vrev8.v v8, v8\n        sh1add  a1, t0, a1\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/bswapdsp_rvvb.S", "license": "LGPL-2.1", "commit": "952b426f3bcc6206eff2fa338ff7da475a28692b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/952b426f3bcc6206eff2fa338ff7da475a28692b/libavcodec/riscv/bswapdsp_rvvb.S", "line_start": 1, "line_end": 52}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/exrdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_reorder_pixels_rvv, zve32x, zba\n        lpad    0\n        srai    a2, a2, 1\n        add     t1, a1, a2\n1:\n        vsetvli t0, a2, e8, m4, ta, ma\n        vle8.v  v0, (a1)\n        sub     a2, a2, t0\n        vle8.v  v4, (t1)\n        add     a1, t0, a1\n        vsseg2e8.v v0, (a0)\n        add     t1, t0, t1\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/exrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/exrdsp_rvv.S", "line_start": 1, "line_end": 39}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/exrdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_reorder_pixels_rvv, zve32x, zba\n        srai    a2, a2, 1\n        add     t1, a1, a2\n1:\n        vsetvli t0, a2, e8, m4, ta, ma\n        vle8.v  v0, (a1)\n        sub     a2, a2, t0\n        vle8.v  v4, (t1)\n        add     a1, t0, a1\n        vsseg2e8.v v0, (a0)\n        add     t1, t0, t1\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/exrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/exrdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/exrdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_reorder_pixels_rvv, zve32x\n        srai    a2, a2, 1\n        add     t1, a1, a2\n1:\n        vsetvli t0, a2, e8, m4, ta, ma\n        vle8.v  v0, (a1)\n        sub     a2, a2, t0\n        vle8.v  v4, (t1)\n        add     a1, t0, a1\n        vsseg2e8.v v0, (a0)\n        add     t1, t0, t1\n        sh1add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/exrdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/exrdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/fixed_vtype.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#define VILL -0x8000\n\n        .data\nff_vtype_e8:\nff_vtype_e8_1:\n        .half   VILL\nff_vtype_e8_2:\n        .half   VILL\nff_vtype_e8_4:\n        .half   VILL\nff_vtype_e8_8:\n        .half   VILL\nff_vtype_e8_16:\n        .half   VILL\nff_vtype_e8_32:\n        .half   VILL\n\nff_vtype_e16:\nff_vtype_e16_1:\n        .half   VILL\nff_vtype_e16_2:\n        .half   VILL\nff_vtype_e16_4:\n        .half   VILL\nff_vtype_e16_8:\n        .half   VILL\nff_vtype_e16_16:\n        .half   VILL", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/fixed_vtype.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/fixed_vtype.S", "line_start": 1, "line_end": 48}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_flac_lpc16_rvv, zve32x, b\n        lpad    0\n        vtype_vli t0, a2, t2, e32, ta, ma\n        vsetvl  zero, a2, t0\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n        vmv.s.x v0, zero\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a0)\n        vredsum.vs v24, v24, v0\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x, zba\n        lpad    0\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x, zba\n        lpad    0\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli t1, zero, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli t1, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve64x, b\n        lpad    0\n        vtype_vli t3, a2, t1, e64, ta, ma\n        vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "func ff_flac_lpc32_rvv_simple, zve64x, b\n        lpad    0\n        vtype_vli t3, a2, t1, e64, ta, ma\n        vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc33_rvv, zve64x, b\n        lpad    0\n        vtype_vli t0, a3, t1, e64, ta, ma\n        vsetvl  zero, a3, t0\n        vmv.s.x v0, zero\n        sh2add  a1, a3, a1\n        vle32.v v24, (a2)\n        sub     a5, a5, a3\n        vle64.v v16, (a0)\n        sh3add  a0, a3, a0\n        vsext.vf2 v8, v24\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a1)\n        addi    a1, a1, 4\n        vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x, zba\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a1)\n        addi    a1, a1, 4\n        vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x, zba\n        lpad    0\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e64, m8, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vsext.vf2    v16, v8\n        sh2add       a1, t0, a1\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e64, m8, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vsext.vf2    v16, v8\n        sh2add       a1, t0, a1\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "endfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x, zba", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:15", "text": "ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:16", "text": "func ff_flac_decorrelate_ms_32_rvv, zve32x, zba\n        lpad    0\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/flacdsp_rvv.S", "line_start": 601, "line_end": 625}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_flac_lpc16_rvv, zve32x, b\n        vtype_vli t0, a2, t2, e32, ta, ma\n        vsetvl  zero, a2, t0\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n        vmv.s.x v0, zero\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a0)\n        vredsum.vs v24, v24, v0\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x, zba\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli t1, zero, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x, zba\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli t1, zero, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli t1, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve64x, b\n        vtype_vli t3, a2, t1, e64, ta, ma\n        vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc33_rvv, zve64x, b\n        vtype_vli t0, a3, t1, e64, ta, ma\n        vsetvl  zero, a3, t0\n        vmv.s.x v0, zero\n        sh2add  a1, a3, a1\n        vle32.v v24, (a2)\n        sub     a5, a5, a3\n        vle64.v v16, (a0)\n        sh3add  a0, a3, a0\n        vsext.vf2 v8, v24\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a1)\n        addi    a1, a1, 4\n        vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x, zba\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x, zba\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x, zba\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e64, m8, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vsext.vf2    v16, v8\n        sh2add       a1, t0, a1\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x, zba", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e64, m8, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vsext.vf2    v16, v8\n        sh2add       a1, t0, a1\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "endfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "func ff_flac_decorrelate_indep8_16_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x, zba\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:15", "text": "func ff_flac_decorrelate_rs_32_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x, zba\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/flacdsp_rvv.S", "line_start": 561, "line_end": 605}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_flac_lpc16_rvv, zve32x, zbb\n        vtype_vli t0, a2, t2, e32, ta, ma\n        vsetvl  zero, a2, t0\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n        vmv.s.x v0, zero\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a0)\n        vredsum.vs v24, v24, v0\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli t1, zero, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli t1, zero, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli t1, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve64x, zbb\n        vtype_vli t3, a2, t1, e64, ta, ma\n        vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc33_rvv, zve64x, zbb\n        vtype_vli t0, a3, t1, e64, ta, ma\n        vsetvl  zero, a3, t0\n        vmv.s.x v0, zero\n        sh2add  a1, a3, a1\n        vle32.v v24, (a2)\n        sub     a5, a5, a3\n        vle64.v v16, (a0)\n        sh3add  a0, a3, a0\n        vsext.vf2 v8, v24\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a1)\n        addi    a1, a1, 4\n        vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e64, m8, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vsext.vf2    v16, v8\n        sh2add       a1, t0, a1\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e64, m8, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vsext.vf2    v16, v8\n        sh2add       a1, t0, a1\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "endfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "func ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "func ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:15", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "c3dbbb316ee44b1685b6437756a23a545fb31fb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3dbbb316ee44b1685b6437756a23a545fb31fb1/libavcodec/riscv/flacdsp_rvv.S", "line_start": 561, "line_end": 607}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "vredsum.vs v24, v24, v0\n        addi    a5, a5, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a4\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sd      t0, (a0)\n        addi    a0, a0, 8\n        bnez    a5, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8\n        sh2add       a1, t0, a1\n        vsetvli      zero, zero, e64, m8, ta, ma\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8\n        sh2add       a1, t0, a1\n        vsetvli      zero, zero, e64, m8, ta, ma\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "func ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "func ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a535ce2ac075a61930ffe13606f294d6f8fb6369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a535ce2ac075a61930ffe13606f294d6f8fb6369/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "func ff_flac_wasted33_rvv, zve64x\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8\n        sh2add       a1, t0, a1\n        vsetvli      zero, zero, e64, m8, ta, ma\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:15", "text": "ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "f8837465875205207bd281ecad9e4b9a12638c7e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8837465875205207bd281ecad9e4b9a12638c7e/libavcodec/riscv/flacdsp_rvv.S", "line_start": 561, "line_end": 581}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_flac_lpc16_rvv, zve32x, zbb\n        vtype_vli t0, a2, t2, e32, ta, ma\n        vsetvl  zero, a2, t0\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n        vmv.s.x v0, zero\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a0)\n        vredsum.vs v24, v24, v0\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "233066e85adbb3eb4d385369325a2ad44a625df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/233066e85adbb3eb4d385369325a2ad44a625df2/libavcodec/riscv/flacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli zero, a2, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve64x, zbb\n        vtype_vli t3, a2, t1, e64, ta, ma\n        vntypei t2, t3\n        vsetvl  zero, a2, t3 // e64\n        vmv.s.x v0, zero\n        vsetvl  zero, zero, t2 // e32\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvl  zero, zero, t3 // e64\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvl  zero, zero, t2 // e32\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "233066e85adbb3eb4d385369325a2ad44a625df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/233066e85adbb3eb4d385369325a2ad44a625df2/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli zero, a2, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve64x\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8\n        sh2add       a1, t0, a1\n        vsetvli      zero, zero, e64, m8, ta, ma\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "endfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 579}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:15", "text": "1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "6ab4b92e82ea585aac44bd0342f841a8ba45bb66", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ab4b92e82ea585aac44bd0342f841a8ba45bb66/libavcodec/riscv/flacdsp_rvv.S", "line_start": 561, "line_end": 579}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_flac_lpc16_rvv, zve32x\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n        vmv.s.x v0, zero\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a0)\n        vredsum.vs v24, v24, v0\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve64x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli zero, a2, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve64x\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_wasted33_rvv, zve64x\n        srli         t0, a2, 5\n        li           t1, 1\n        bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8\n        sh2add       a1, t0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "bnez         t0, 2f\n        sll          a2, t1, a2\n1:\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwmulsu.vx   v16, v8, a2\n        sh2add       a1, t0, a1\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 1b\n\n        ret\n\n2:      // Pessimistic case: wasted >= 32\n        vsetvli      t0, a3, e32, m4, ta, ma\n        vle32.v      v8, (a1)\n        sub          a3, a3, t0\n        vwcvtu.x.x.v v16, v8\n        sh2add       a1, t0, a1\n        vsetvli      zero, zero, e64, m8, ta, ma\n        vsll.vx      v16, v16, a2\n        vse64.v      v16, (a0)\n        sh3add       a0, t0, a0\n        bnez         a3, 2b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "func ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 578}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:15", "text": "vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "88d973a5d658dc61dfd32e87b062724def46addc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88d973a5d658dc61dfd32e87b062724def46addc/libavcodec/riscv/flacdsp_rvv.S", "line_start": 561, "line_end": 578}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_flac_wasted32_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v8, v8, a1\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "func ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "7b47099bc080ee597327476c0df44d527c349862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b47099bc080ee597327476c0df44d527c349862/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 546}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:3", "text": "vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:4", "text": "sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v8, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v4, v4, a4\n        vle32.v v12, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v8, v8, a4\n        vsll.vx v12, v12, a4\n        vsetvli zero, zero, e16, m2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v22, v12\n        vsseg4e16.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:5", "text": "ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        slli    t0, t0, 2\n        vsll.vx v10, v10, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vsseg6e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:6", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_16_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v4, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v2, v2, a4\n        sh2add  t1, t0, t1\n        vle32.v v6, (t2)\n        vsll.vx v4, v4, a4\n        sh2add  t2, t0, t2\n        vle32.v v8, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v6, v6, a4\n        vle32.v v10, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v8, v8, a4\n        vle32.v v12, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v10, v10, a4\n        vle32.v v14, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v12, v12, a4\n        slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:7", "text": "slli    t0, t0, 4\n        vsll.vx v14, v14, a4\n        vsetvli zero, zero, e16, m1, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v2\n        vncvt.x.x.w v18, v4\n        vncvt.x.x.w v19, v6\n        vncvt.x.x.w v20, v8\n        vncvt.x.x.w v21, v10\n        vncvt.x.x.w v22, v12\n        vncvt.x.x.w v23, v14\n        vsseg8e16.v v16, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n\n\nfunc ff_flac_decorrelate_ls_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vsub.vv v8, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:8", "text": "ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v8, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v8, v8, a4\n        vadd.vv v0, v0, v8\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v20, v8\n        vsseg2e16.v v16, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_16_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v16, v8, 1\n        sh2add  a2, t0, a2\n        vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:9", "text": "vsub.vv v24, v0, v16\n        vadd.vv v16, v24, v8\n        vsll.vx v8, v24, a4\n        vsll.vx v0, v16, a4\n        vsetvli zero, zero, e16, m4, ta, ma\n        vncvt.x.x.w v0, v0\n        vncvt.x.x.w v4, v8\n        vsseg2e16.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep2_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep4_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:10", "text": "1:\n        vsetvli t0, a3, e32, m2, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v2, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v4, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v2, v2, a4\n        vle32.v v6, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 4\n        vsll.vx v6, v6, a4\n        vsseg4e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep6_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vle32.v v2, (t1)\n        sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:11", "text": "sh2add  t1, t0, t1\n        vsll.vx v1, v1, a4\n        vle32.v v3, (t2)\n        sh2add  t2, t0, t2\n        vsll.vx v2, v2, a4\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        slli    t0, t0, 3\n        vsll.vx v5, v5, a4\n        sh1add  t0, t0, t0 // t0 *= 3\n        vsseg6e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_indep8_32_rvv, zve32x\n        ld      a0,   (a0)\n        ld      a2,  8(a1)\n        ld      t1, 16(a1)\n        ld      t2, 24(a1)\n        ld      t3, 32(a1)\n        ld      t4, 40(a1)\n        ld      t5, 48(a1)\n        ld      t6, 56(a1)\n        ld      a1,   (a1)\n1:\n        vsetvli t0, a3, e32, m1, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v1, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        vle32.v v2, (t1)\n        sh2add  a2, t0, a2\n        vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:12", "text": "vsll.vx v1, v1, a4\n        sh2add  t1, t0, t1\n        vle32.v v3, (t2)\n        vsll.vx v2, v2, a4\n        sh2add  t2, t0, t2\n        vle32.v v4, (t3)\n        sh2add  t3, t0, t3\n        vsll.vx v3, v3, a4\n        vle32.v v5, (t4)\n        sh2add  t4, t0, t4\n        vsll.vx v4, v4, a4\n        vle32.v v6, (t5)\n        sh2add  t5, t0, t5\n        vsll.vx v5, v5, a4\n        vle32.v v7, (t6)\n        sh2add  t6, t0, t6\n        vsll.vx v6, v6, a4\n        slli    t0, t0, 5\n        vsll.vx v7, v7, a4\n        vsseg8e32.v v0, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ls_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vsub.vv v4, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:13", "text": "vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_rs_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v0, (a1)\n        sub     a3, a3, t0\n        vle32.v v4, (a2)\n        sh2add  a1, t0, a1\n        vsll.vx v0, v0, a4\n        sh2add  a2, t0, a2\n        vsll.vx v4, v4, a4\n        vadd.vv v0, v0, v4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_decorrelate_ms_32_rvv, zve32x\n        ld      a0,  (a0)\n        ld      a2, 8(a1)\n        ld      a1,  (a1)\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v4, (a2)\n        sub     a3, a3, t0\n        vle32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vsra.vi v8, v4, 1\n        sh2add  a2, t0, a2\n        vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 481, "line_end": 531}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:14", "text": "vsub.vv v12, v0, v8\n        vadd.vv v8, v12, v4\n        vsll.vx v4, v12, a4\n        vsll.vx v0, v8, a4\n        vsseg2e32.v v0, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "a3e45063c0b132eff0122258bd12691357cff1c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3e45063c0b132eff0122258bd12691357cff1c6/libavcodec/riscv/flacdsp_rvv.S", "line_start": 521, "line_end": 531}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_flac_lpc16_rvv, zve32x\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n        vmv.s.x v0, zero\n1:\n        vmul.vv v24, v8, v16\n        lw      t0, (a0)\n        vredsum.vs v24, v24, v0\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve32x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/flacdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/flacdsp_rvv.S:2", "text": "bnez    a4, 1b\n\n        ret\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_flac_lpc32_rvv, zve32x\n        addi    t2, a2, -16\n        ble     t2, zero, ff_flac_lpc32_rvv_simple\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m8, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vsetvli zero, a2, e32, m4, ta, ma\n        vwmul.vv v24, v8, v16\n        vsetvli zero, t2, e32, m4, tu, ma\n        vwmacc.vv v24, v12, v20\n        vsetvli zero, a2, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, a2, e32, m8, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_flac_lpc32_rvv_simple, zve32x\n        vsetivli zero, 1, e64, m1, ta, ma\n        vmv.s.x v0, zero\n        vsetvli zero, a2, e32, m4, ta, ma\n        vle32.v v8, (a1)\n        sub     a4, a4, a2\n        vle32.v v16, (a0)\n        sh2add  a0, a2, a0\n1:\n        vwmul.vv v24, v8, v16\n        vsetvli zero, zero, e64, m8, ta, ma\n        vredsum.vs v24, v24, v0\n        lw      t0, (a0)\n        addi    a4, a4, -1\n        vmv.x.s t1, v24\n        vsetvli zero, zero, e32, m4, ta, ma\n        sra     t1, t1, a3\n        add     t0, t0, t1\n        vslide1down.vx v16, v16, t0\n        sw      t0, (a0)\n        addi    a0, a0, 4\n        bnez    a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/flacdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/flacdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/fmtconvert_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_int32_to_float_fmul_scalar_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x     fa0, a2\nNOHWF   mv          a2, a3\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v24, (a1)\n        sub         a2, a2, t0\n        vfcvt.f.x.v v24, v24\n        sh2add      a1, t0, a1\n        vfmul.vf    v24, v24, fa0\n        vse32.v     v24, (a0)\n        sh2add      a0, t0, a0\n        bnez        a2, 1b\n\n        ret\nendfunc\n\nfunc ff_int32_to_float_fmul_array8_rvv, zve32f, zba\n        lpad    0\n        srai        a4, a4, 3\n\n1:      vsetvli     t0, a4, e32, m1, ta, ma\n        vle32.v     v24, (a3)\n        slli        t2, t0, 2 + 3\n        vlseg8e32.v v16, (a2)\n        vsetvli     t3, zero, e32, m8, ta, ma\n        vfcvt.f.x.v v16, v16\n        vsetvli     zero, a4, e32, m1, ta, ma\n        vfmul.vv    v16, v16, v24\n        sub         a4, a4, t0\n        vfmul.vv    v17, v17, v24\n        sh2add      a3, t0, a3\n        vfmul.vv    v18, v18, v24\n        add         a2, a2, t2\n        vfmul.vv    v19, v19, v24\n        vfmul.vv    v20, v20, v24\n        vfmul.vv    v21, v21, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/fmtconvert_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/fmtconvert_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/fmtconvert_rvv.S:2", "text": "func ff_int32_to_float_fmul_array8_rvv, zve32f, zba\n        lpad    0\n        srai        a4, a4, 3\n\n1:      vsetvli     t0, a4, e32, m1, ta, ma\n        vle32.v     v24, (a3)\n        slli        t2, t0, 2 + 3\n        vlseg8e32.v v16, (a2)\n        vsetvli     t3, zero, e32, m8, ta, ma\n        vfcvt.f.x.v v16, v16\n        vsetvli     zero, a4, e32, m1, ta, ma\n        vfmul.vv    v16, v16, v24\n        sub         a4, a4, t0\n        vfmul.vv    v17, v17, v24\n        sh2add      a3, t0, a3\n        vfmul.vv    v18, v18, v24\n        add         a2, a2, t2\n        vfmul.vv    v19, v19, v24\n        vfmul.vv    v20, v20, v24\n        vfmul.vv    v21, v21, v24\n        vfmul.vv    v22, v22, v24\n        vfmul.vv    v23, v23, v24\n        vsseg8e32.v v16, (a1)\n        add         a1, a1, t2\n        bnez        a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/fmtconvert_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/fmtconvert_rvv.S", "line_start": 41, "line_end": 68}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/fmtconvert_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_int32_to_float_fmul_scalar_rvv, zve32f, zba\nNOHWF   fmv.w.x     fa0, a2\nNOHWF   mv          a2, a3\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v24, (a1)\n        sub         a2, a2, t0\n        vfcvt.f.x.v v24, v24\n        sh2add      a1, t0, a1\n        vfmul.vf    v24, v24, fa0\n        vse32.v     v24, (a0)\n        sh2add      a0, t0, a0\n        bnez        a2, 1b\n\n        ret\nendfunc\n\nfunc ff_int32_to_float_fmul_array8_rvv, zve32f, zba\n        srai        a4, a4, 3\n\n1:      vsetvli     t0, a4, e32, m1, ta, ma\n        vle32.v     v24, (a3)\n        slli        t2, t0, 2 + 3\n        vlseg8e32.v v16, (a2)\n        vsetvli     t3, zero, e32, m8, ta, ma\n        vfcvt.f.x.v v16, v16\n        vsetvli     zero, a4, e32, m1, ta, ma\n        vfmul.vv    v16, v16, v24\n        sub         a4, a4, t0\n        vfmul.vv    v17, v17, v24\n        sh2add      a3, t0, a3\n        vfmul.vv    v18, v18, v24\n        add         a2, a2, t2\n        vfmul.vv    v19, v19, v24\n        vfmul.vv    v20, v20, v24\n        vfmul.vv    v21, v21, v24\n        vfmul.vv    v22, v22, v24\n        vfmul.vv    v23, v23, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/fmtconvert_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/fmtconvert_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/fmtconvert_rvv.S:2", "text": "srai        a4, a4, 3\n\n1:      vsetvli     t0, a4, e32, m1, ta, ma\n        vle32.v     v24, (a3)\n        slli        t2, t0, 2 + 3\n        vlseg8e32.v v16, (a2)\n        vsetvli     t3, zero, e32, m8, ta, ma\n        vfcvt.f.x.v v16, v16\n        vsetvli     zero, a4, e32, m1, ta, ma\n        vfmul.vv    v16, v16, v24\n        sub         a4, a4, t0\n        vfmul.vv    v17, v17, v24\n        sh2add      a3, t0, a3\n        vfmul.vv    v18, v18, v24\n        add         a2, a2, t2\n        vfmul.vv    v19, v19, v24\n        vfmul.vv    v20, v20, v24\n        vfmul.vv    v21, v21, v24\n        vfmul.vv    v22, v22, v24\n        vfmul.vv    v23, v23, v24\n        vsseg8e32.v v16, (a1)\n        add         a1, a1, t2\n        bnez        a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/fmtconvert_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/fmtconvert_rvv.S", "line_start": 41, "line_end": 66}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/fmtconvert_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_int32_to_float_fmul_scalar_rvv, zve32f\nNOHWF   fmv.w.x     fa0, a2\nNOHWF   mv          a2, a3\n1:\n        vsetvli     t0, a2, e32, m8, ta, ma\n        vle32.v     v24, (a1)\n        sub         a2, a2, t0\n        vfcvt.f.x.v v24, v24\n        sh2add      a1, t0, a1\n        vfmul.vf    v24, v24, fa0\n        vse32.v     v24, (a0)\n        sh2add      a0, t0, a0\n        bnez        a2, 1b\n\n        ret\nendfunc\n\nfunc ff_int32_to_float_fmul_array8_rvv, zve32f\n        srai        a4, a4, 3\n\n1:      vsetvli     t0, a4, e32, m1, ta, ma\n        vle32.v     v24, (a3)\n        slli        t2, t0, 2 + 3\n        vlseg8e32.v v16, (a2)\n        vsetvli     t3, zero, e32, m8, ta, ma\n        vfcvt.f.x.v v16, v16\n        vsetvli     zero, a4, e32, m1, ta, ma\n        vfmul.vv    v16, v16, v24\n        sub         a4, a4, t0\n        vfmul.vv    v17, v17, v24\n        sh2add      a3, t0, a3\n        vfmul.vv    v18, v18, v24\n        add         a2, a2, t2\n        vfmul.vv    v19, v19, v24\n        vfmul.vv    v20, v20, v24\n        vfmul.vv    v21, v21, v24\n        vfmul.vv    v22, v22, v24\n        vfmul.vv    v23, v23, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/fmtconvert_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/fmtconvert_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/g722dsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_g722_apply_qmf_rvv, zve32x\n        lpad    0\n        lla         t0, qmf_coeffs\n        vsetivli    zero, 12, e16, m2, ta, ma\n        vlseg2e16.v v28, (a0)\n        addi        t1, t0, 12 * 2\n        vle16.v     v24, (t0)\n        vle16.v     v26, (t1)\n        vwmul.vv    v16, v28, v24\n        vwmul.vv    v20, v30, v26\n        vsetivli    zero, 12, e32, m4, ta, ma\n        vmv.s.x     v10, zero\n        vredsum.vs  v8, v16, v10\n        vredsum.vs  v9, v20, v10\n        vmv.x.s     t0, v8\n        vmv.x.s     t1, v9\n        sw          t0, 4(a1)\n        sw          t1, 0(a1)\n        ret\nendfunc\n\nconst qmf_coeffs, align=2\n        .short     3\n        .short   -11\n        .short    12\n        .short    32\n        .short  -210\n        .short   951\n        .short  3876\n        .short  -805\n        .short   362\n        .short  -156\n        .short    53\n        .short   -11\n        .short   -11\n        .short    53\n        .short  -156\n        .short   362", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/g722dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/g722dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/g722dsp_rvv.S:2", "text": "ret\nendfunc\n\nconst qmf_coeffs, align=2\n        .short     3\n        .short   -11\n        .short    12\n        .short    32\n        .short  -210\n        .short   951\n        .short  3876\n        .short  -805\n        .short   362\n        .short  -156\n        .short    53\n        .short   -11\n        .short   -11\n        .short    53\n        .short  -156\n        .short   362\n        .short  -805\n        .short  3876\n        .short   951\n        .short  -210\n        .short    32\n        .short    12\n        .short   -11\n        .short     3\nendconst", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/g722dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/g722dsp_rvv.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/g722dsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_g722_apply_qmf_rvv, zve32x\n        lla         t0, qmf_coeffs\n        vsetivli    zero, 12, e16, m2, ta, ma\n        vlseg2e16.v v28, (a0)\n        addi        t1, t0, 12 * 2\n        vle16.v     v24, (t0)\n        vle16.v     v26, (t1)\n        vwmul.vv    v16, v28, v24\n        vwmul.vv    v20, v30, v26\n        vsetivli    zero, 12, e32, m4, ta, ma\n        vmv.s.x     v10, zero\n        vredsum.vs  v8, v16, v10\n        vredsum.vs  v9, v20, v10\n        vmv.x.s     t0, v8\n        vmv.x.s     t1, v9\n        sw          t0, 4(a1)\n        sw          t1, 0(a1)\n        ret\nendfunc\n\nconst qmf_coeffs, align=2\n        .short     3\n        .short   -11\n        .short    12\n        .short    32\n        .short  -210\n        .short   951\n        .short  3876\n        .short  -805\n        .short   362\n        .short  -156\n        .short    53\n        .short   -11\n        .short   -11\n        .short    53\n        .short  -156\n        .short   362\n        .short  -805", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/g722dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/g722dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/g722dsp_rvv.S:2", "text": "endfunc\n\nconst qmf_coeffs, align=2\n        .short     3\n        .short   -11\n        .short    12\n        .short    32\n        .short  -210\n        .short   951\n        .short  3876\n        .short  -805\n        .short   362\n        .short  -156\n        .short    53\n        .short   -11\n        .short   -11\n        .short    53\n        .short  -156\n        .short   362\n        .short  -805\n        .short  3876\n        .short   951\n        .short  -210\n        .short    32\n        .short    12\n        .short   -11\n        .short     3\nendconst", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/g722dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/g722dsp_rvv.S", "line_start": 41, "line_end": 68}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .option push\n        .option norelax\nfunc ff_h263_h_loop_filter_rvv, zve32x\n        lpad    0\n        addi        a0, a0, -2\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v8, (a0), a1\n        jal         t0, 1f\n        vssseg4e8.v v8, (a0), a1\n        ret\n1:\n        auipc       t1, %pcrel_hi(ff_h263_loop_filter_strength)\n        vwsubu.vv   v14, v10, v9       # p2 - p1\n        add         t1, t1, a2\n        vwsubu.vv   v12, v8, v11       # p0 - p3\n        vsetvli     zero, zero, e16, m1, ta, mu\n        vsll.vi     v14, v14, 2\n        lbu         t1, %pcrel_lo(1b)(t1) # strength\n        vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetic require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h263dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:2", "text": "vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetic require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1\n        vzext.vf2   v24, v8     # p0 as u16 (because vwrsubu.wv does not exist)\n        vneg.v      v14, v16\n        vzext.vf2   v26, v9            # p1 as u16\n        vmax.vv     v14, v16, v14      # |d1|\n        vzext.vf2   v28, v10           # p2 as u16\n        vsra.vi     v14, v14, 1        # ad1\n        vadd.vv     v26, v26, v16      # p1 + d1\n        vneg.v      v18, v14           # -ad1\n        vmin.vv     v12, v12, v14\n        vsub.vv     v28, v28, v16      # p2 - d1\n        vmax.vv     v12, v12, v18      # d2\n        vmax.vx     v26, v26, zero\n        vsub.vv     v24, v24, v12      # p0 - d2\n        vmax.vx     v28, v28, zero\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v30, v12, v11      # p3 + d2\n        vncvt.x.x.w v8, v24\n        vnclipu.wi  v9, v26, 0\n        vnclipu.wi  v10, v28, 0\n        vncvt.x.x.w v11, v30\n        jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        lpad    0\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h263dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:3", "text": "jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        lpad    0\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h263dsp_rvv.S", "line_start": 81, "line_end": 101}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .option push\n        .option norelax\nfunc ff_h263_h_loop_filter_rvv, zve32x\n        lpad    0\n        addi        a0, a0, -2\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v8, (a0), a1\n        jal         t0, 1f\n        vssseg4e8.v v8, (a0), a1\n        ret\n1:\n        auipc       t1, %pcrel_hi(ff_h263_loop_filter_strength)\n        vwsubu.vv   v14, v10, v9       # p2 - p1\n        add         t1, t1, a2\n        vwsubu.vv   v12, v8, v11       # p0 - p3\n        vsetvli     zero, zero, e16, m1, ta, mu\n        vsll.vi     v14, v14, 2\n        lbu         t1, %pcrel_lo(1b)(t1) # strength\n        vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetics require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/h263dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:2", "text": "vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetics require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1\n        vzext.vf2   v24, v8     # p0 as u16 (because vwrsubu.wv does not exist)\n        vneg.v      v14, v16\n        vzext.vf2   v26, v9            # p1 as u16\n        vmax.vv     v14, v16, v14      # |d1|\n        vzext.vf2   v28, v10           # p2 as u16\n        vsra.vi     v14, v14, 1        # ad1\n        vadd.vv     v26, v26, v16      # p1 + d1\n        vneg.v      v18, v14           # -ad1\n        vmin.vv     v12, v12, v14\n        vsub.vv     v28, v28, v16      # p2 - d1\n        vmax.vv     v12, v12, v18      # d2\n        vmax.vx     v26, v26, zero\n        vsub.vv     v24, v24, v12      # p0 - d2\n        vmax.vx     v28, v28, zero\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v30, v12, v11      # p3 + d2\n        vncvt.x.x.w v8, v24\n        vnclipu.wi  v9, v26, 0\n        vnclipu.wi  v10, v28, 0\n        vncvt.x.x.w v11, v30\n        jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        lpad    0\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/h263dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .option push\n        .option norelax\nfunc ff_h263_h_loop_filter_rvv, zve32x\n        lpad    0\n        addi        a0, a0, -2\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v8, (a0), a1\n        jal         t0, 1f\n        vssseg4e8.v v8, (a0), a1\n        ret\n1:\n        csrwi       vxrm, 0\n2:      auipc       t1, %pcrel_hi(ff_h263_loop_filter_strength)\n        vwsubu.vv   v14, v10, v9       # p2 - p1\n        add         t1, t1, a2\n        vwsubu.vv   v12, v8, v11       # p0 - p3\n        vsetvli     zero, zero, e16, m1, ta, mu\n        vsll.vi     v14, v14, 2\n        lbu         t1, %pcrel_lo(2b)(t1) # strength\n        vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetics require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h263dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:2", "text": "lbu         t1, %pcrel_lo(2b)(t1) # strength\n        vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetics require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1\n        vzext.vf2   v24, v8     # p0 as u16 (because vwrsubu.wv does not exist)\n        vneg.v      v14, v16\n        vzext.vf2   v26, v9            # p1 as u16\n        vmax.vv     v14, v16, v14      # |d1|\n        vzext.vf2   v28, v10           # p2 as u16\n        vsra.vi     v14, v14, 1        # ad1\n        vadd.vv     v26, v26, v16      # p1 + d1\n        vneg.v      v18, v14           # -ad1\n        vmin.vv     v12, v12, v14\n        vsub.vv     v28, v28, v16      # p2 - d1\n        vmax.vv     v12, v12, v18      # d2\n        vmax.vx     v26, v26, zero\n        vsub.vv     v24, v24, v12      # p0 - d2\n        vmax.vx     v28, v28, zero\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v30, v12, v11      # p3 + d2\n        vncvt.x.x.w v8, v24\n        vnclipu.wi  v9, v26, 0\n        vnclipu.wi  v10, v28, 0\n        vncvt.x.x.w v11, v30\n        jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        lpad    0\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h263dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:3", "text": "vncvt.x.x.w v11, v30\n        jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        lpad    0\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h263dsp_rvv.S", "line_start": 81, "line_end": 102}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .option push\n        .option norelax\nfunc ff_h263_h_loop_filter_rvv, zve32x\n        addi        a0, a0, -2\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v8, (a0), a1\n        jal         t0, 1f\n        vssseg4e8.v v8, (a0), a1\n        ret\n1:\n        csrwi       vxrm, 0\n2:      auipc       t1, %pcrel_hi(ff_h263_loop_filter_strength)\n        vwsubu.vv   v14, v10, v9       # p2 - p1\n        add         t1, t1, a2\n        vwsubu.vv   v12, v8, v11       # p0 - p3\n        vsetvli     zero, zero, e16, m1, ta, mu\n        vsll.vi     v14, v14, 2\n        lbu         t1, %pcrel_lo(2b)(t1) # strength\n        vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetics require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "910d281b215720dc831486aba36e31528b30b6bc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/910d281b215720dc831486aba36e31528b30b6bc/libavcodec/riscv/h263dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:2", "text": "vadd.vv     v16, v12, v14\n        # Divide by 8 toward 0. v16 is a signed 10-bit value at this point.\n        vsrl.vi     v18, v16, 16 - 3   # v18 = (v16 < 0) ? 7 : 0\n        slli        t2, t1, 1          # 2 * strength\n        vadd.vv     v16, v16, v18\n        # v16 (d) is signed 7-bit, but later arithmetics require 9 bits.\n        vsra.vi     v16, v16, 3        # d\n        vmv.v.x     v20, t2\n        vmslt.vi    v0, v16, 0\n        vneg.v      v18, v16\n        vneg.v      v20, v20, v0.t     # sign(d) * 2 * strength\n        vmax.vv     v18, v16, v18      # |d|\n        vsub.vv     v20, v20, v16      # d1 if strength <= |d| <= 2 * strength\n        vmsge.vx    v0, v18, t2\n        vsrl.vi     v14, v12, 16 - 2   # v14 = (v12 < 0) ? 3 : 0\n        vmerge.vxm  v20, v20, zero, v0 # d1 if strength <= |d|\n        vadd.vv     v12, v12, v14\n        vmsge.vx    v0, v18, t1\n        vsra.vi     v12, v12, 2        # (p0 - p3) / 4\n        vmerge.vvm  v16, v16, v20, v0  # d1\n        vzext.vf2   v24, v8     # p0 as u16 (because vwrsubu.wv does not exist)\n        vneg.v      v14, v16\n        vzext.vf2   v26, v9            # p1 as u16\n        vmax.vv     v14, v16, v14      # |d1|\n        vzext.vf2   v28, v10           # p2 as u16\n        vsra.vi     v14, v14, 1        # ad1\n        vadd.vv     v26, v26, v16      # p1 + d1\n        vneg.v      v18, v14           # -ad1\n        vmin.vv     v12, v12, v14\n        vsub.vv     v28, v28, v16      # p2 - d1\n        vmax.vv     v12, v12, v18      # d2\n        vmax.vx     v26, v26, zero\n        vsub.vv     v24, v24, v12      # p0 - d2\n        vmax.vx     v28, v28, zero\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v30, v12, v11      # p3 + d2\n        vncvt.x.x.w v8, v24\n        vnclipu.wi  v9, v26, 0\n        vnclipu.wi  v10, v28, 0\n        vncvt.x.x.w v11, v30\n        jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "910d281b215720dc831486aba36e31528b30b6bc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/910d281b215720dc831486aba36e31528b30b6bc/libavcodec/riscv/h263dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h263dsp_rvv.S:3", "text": "jr          t0\nendfunc\n        .option pop\n\nfunc ff_h263_v_loop_filter_rvv, zve32x\n        sub         a4, a0, a1\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vle8.v      v10, (a0)\n        sub         a3, a4, a1\n        vle8.v      v9, (a4)\n        add         a5, a0, a1\n        vle8.v      v8, (a3)\n        vle8.v      v11, (a5)\n        jal         t0, 1b\n        vse8.v      v8, (a3)\n        vse8.v      v9, (a4)\n        vse8.v      v10, (a0)\n        vse8.v      v11, (a5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h263dsp_rvv.S", "license": "LGPL-2.1", "commit": "910d281b215720dc831486aba36e31528b30b6bc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/910d281b215720dc831486aba36e31528b30b6bc/libavcodec/riscv/h263dsp_rvv.S", "line_start": 81, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:1", "text": "/*\n * Copyright (c) 2023 SiFive, Inc. All rights reserved.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n#include \"libavutil/riscv/asm.S\"\n\n.macro  do_chroma_mc type unroll\n        csrw            vxrm, zero\n        slli            t2, a5, 3\n        mul             t1, a5, a4\n        sh3add          a5, a4, t2\n        slli            a4, a4, 3\n        sub             a5, t1, a5\n        sub             a7, a4, t1\n        addi            a6, a5, 64\n        sub             t0, t2, t1\n        vsetvli         t3, t6, e8, m1, ta, mu\n        beqz            t1, 2f\n        blez            a3, 8f\n        li              t4, 0\n        li              t2, 0\n        li              t5, 1\n        addi            a5, t3, 1\n        slli            t3, a2, (1 + \\unroll)\n1:                                # if (xy != 0)\n        add             a4, a1, t4\n        vsetvli         zero, a5, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v10, (a4)\n        add             a4, a4, a2\n        vslide1down.vx  v11, v10, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v8, v10, a6\n        vwmaccu.vx      v8, a7, v11\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v12, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v8, t0, v12\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v13, v12, t5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:2", "text": "add             a4, a1, t4\n        vsetvli         zero, a5, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v10, (a4)\n        add             a4, a4, a2\n        vslide1down.vx  v11, v10, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v8, v10, a6\n        vwmaccu.vx      v8, a7, v11\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v12, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v8, t0, v12\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v13, v12, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v12, a6\n        vwmaccu.vx      v8, t1, v13\n        vwmaccu.vx      v10, a7, v13\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v10, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v14, a6\n        vwmaccu.vx      v10, t1, v15\n        vwmaccu.vx      v12, a7, v15\n        vnclipu.wi      v15, v8, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v15, v15, v9\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        add             t4, t4, t3\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v12, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v16, v14, a6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:3", "text": "vse8.v          v15, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        add             t4, t4, t3\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v12, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v16, v14, a6\n        vwmaccu.vx      v12, t1, v15\n        vwmaccu.vx      v16, a7, v15\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v14, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t1, v14\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v16, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 1b\n        j               8f\n2:\n        bnez            a4, 4f\n        beqz            t2, 4f\n        blez            a3, 8f\n        li              a4, 0\n        li              t1, 0\n        slli            a7, a2, (1 + \\unroll)\n3:                                # if ((x8 - xy) == 0 && (y8 -xy) != 0)\n        add             a5, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t1, t1, 4\n  .else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:4", "text": "vaaddu.vv       v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 1b\n        j               8f\n2:\n        bnez            a4, 4f\n        beqz            t2, 4f\n        blez            a3, 8f\n        li              a4, 0\n        li              t1, 0\n        slli            a7, a2, (1 + \\unroll)\n3:                                # if ((x8 - xy) == 0 && (y8 -xy) != 0)\n        add             a5, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t1, t1, 4\n  .else\n        addi            t1, t1, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        add             t2, a5, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (a5)\n        vwmulu.vx       v12, v8, a6\n        vle8.v          v9, (t2)\n        add             t2, t2, a2\n        add             a5, t2, a2\n        vwmaccu.vx      v10, t0, v8\n        add             a4, a4, a7\n        vwmaccu.vx      v12, t0, v9\n        vnclipu.wi      v15, v10, 6\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v9, v12, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v15, v15, v16\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v9, v9, v16\n  .endif\n        vse8.v          v9, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vle8.v          v8, (t2)\n        vle8.v          v14, (a5)\n        vwmaccu.vx      v10, t0, v8\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v10, 6\n        vwmaccu.vx      v12, t0, v14\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:5", "text": ".endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v9, v9, v16\n  .endif\n        vse8.v          v9, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vle8.v          v8, (t2)\n        vle8.v          v14, (a5)\n        vwmaccu.vx      v10, t0, v8\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v10, 6\n        vwmaccu.vx      v12, t0, v14\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t1, a3, 3b\n        j               8f\n4:\n        beqz            a4, 6f\n        bnez            t2, 6f\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        addi            t0, t3, 1\n        slli            t1, a2, (1 + \\unroll)\n5:                               # if ((x8 - xy) != 0 && (y8 -xy) == 0)\n        add             a5, a1, a4\n        vsetvli         zero, t0, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v8, a6\n        vwmaccu.vx      v10, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:6", "text": "5:                               # if ((x8 - xy) != 0 && (y8 -xy) == 0)\n        add             a5, a1, a4\n        vsetvli         zero, t0, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v8, a6\n        vwmaccu.vx      v10, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vwmaccu.vx      v12, a7, v9\n        vnclipu.wi      v16, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v16, v16, v18\n  .endif\n        vse8.v          v16, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v10, v12, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v10, v10, v18\n  .endif\n        add             a4, a4, t1\n        vse8.v          v10, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v14, v8, a6\n        vwmaccu.vx      v14, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v14, 6\n        vwmaccu.vx      v12, a7, v9\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:7", "text": "vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v14, v8, a6\n        vwmaccu.vx      v14, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v14, 6\n        vwmaccu.vx      v12, a7, v9\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 5b\n        j               8f\n6:\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        slli            a7, a2, (1 + \\unroll)\n7:                               # the final else, none of the above conditions are met\n        add             t0, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n        add             a5, a0, a4\n        add             a4, a4, a7\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:8", "text": "addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1\n        vle8.v          v9, (t1)\n        vle8.v          v12, (t0)\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v8, v10, 6\n        vwmulu.vx       v10, v12, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\n        .variant_cc h264_put_chroma_mc_rvv\nfunc h264_put_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\n        .variant_cc h264_avg_chroma_mc_rvv\nfunc h264_avg_chroma_mc_rvv, zve32x, zba\n21:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:9", "text": "vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\n        .variant_cc h264_put_chroma_mc_rvv\nfunc h264_put_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\n        .variant_cc h264_avg_chroma_mc_rvv\nfunc h264_avg_chroma_mc_rvv, zve32x, zba\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc h264_put_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc h264_put_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc h264_put_chroma_mc2_rvv, zve32x\n        lpad    0\n        li      t6, 2\n        j       11b\nendfunc\n\nfunc h264_avg_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc2_rvv, zve32x\n        lpad    0\n        li      t6, 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:10", "text": "lpad    0\n        li      t6, 2\n        j       11b\nendfunc\n\nfunc h264_avg_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc2_rvv, zve32x\n        lpad    0\n        li      t6, 2\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264_mc_chroma.S", "line_start": 361, "line_end": 382}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:8", "text": "addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1\n        vle8.v          v9, (t1)\n        vle8.v          v12, (t0)\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v8, v10, 6\n        vwmulu.vx       v10, v12, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc h264_put_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc h264_avg_chroma_mc_rvv, zve32x, zba\n21:\n        li      a7, 3\n        blt     a3, a7, 22f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264_mc_chroma.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:9", "text": "vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc h264_put_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc h264_avg_chroma_mc_rvv, zve32x, zba\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc h264_put_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc h264_put_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc h264_put_chroma_mc2_rvv, zve32x\n        li      t6, 2\n        j       11b\nendfunc\n\nfunc h264_avg_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc2_rvv, zve32x\n        li      t6, 2\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264_mc_chroma.S", "line_start": 321, "line_end": 374}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:10", "text": "func h264_avg_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc2_rvv, zve32x\n        li      t6, 2\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264_mc_chroma.S", "line_start": 361, "line_end": 374}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:8", "text": "addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1\n        vle8.v          v9, (t1)\n        vle8.v          v12, (t0)\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v8, v10, 6\n        vwmulu.vx       v10, v12, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc h264_put_chroma_mc_rvv, zve32x\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc h264_avg_chroma_mc_rvv, zve32x\n21:\n        li      a7, 3\n        blt     a3, a7, 22f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/h264_mc_chroma.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264_mc_chroma.S:9", "text": "vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc h264_put_chroma_mc_rvv, zve32x\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc h264_avg_chroma_mc_rvv, zve32x\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc h264_put_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc h264_put_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc h264_put_chroma_mc2_rvv, zve32x\n        li      t6, 2\n        j       11b\nendfunc\n\nfunc h264_avg_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       21b\nendfunc\n\nfunc h264_avg_chroma_mc2_rvv, zve32x\n        li      t6, 2\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264_mc_chroma.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/h264_mc_chroma.S", "line_start": 321, "line_end": 374}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n        .endm\n\nfunc ff_h264_add_pixels4_8_rvv, zve32x\n        lpad    0\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vlse32.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e8, m1, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vsse32.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels4_16_rvv, zve64x\n        lpad    0\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vlse64.v        v8, (a0), a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264addpx_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:2", "text": "vsetivli        zero, 4, e8, mf4, ta, ma\n        vlse32.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e8, m1, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vsse32.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels4_16_rvv, zve64x\n        lpad    0\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e16, m2, ta, ma\n        vle32.v         v16, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_8_rvv, zve64x\n        lpad    0\n        li      t0, 8 * 8\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetvli         zero, t0, e8, m4, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_16_rvv, zve32x\n        lpad    0\n        li      t0, 8\n        vsetivli    zero, 8, e16, m1, ta, ma\n1:\n        vle32.v     v16, (a1)\n        addi    t0, t0, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264addpx_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:3", "text": "vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_16_rvv, zve32x\n        lpad    0\n        li      t0, 8\n        vsetivli    zero, 8, e16, m1, ta, ma\n1:\n        vle32.v     v16, (a1)\n        addi    t0, t0, -1\n        vle16.v     v8, (a0)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w v24, v16\n        addi    a1, a1, 8 * 4\n        vadd.vv     v8, v8, v24\n        vse16.v     v8, (a0)\n        add     a0, a0, a2\n        bnez    t0, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264addpx_rvv.S", "line_start": 81, "line_end": 115}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n        .endm\n\nfunc ff_h264_add_pixels4_8_rvv, zve32x\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vlse32.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e8, m1, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vsse32.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels4_16_rvv, zve64x\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e16, m2, ta, ma\n        vle32.v         v16, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "3002310b707071ec7aa671ab7428feed5ee9740c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3002310b707071ec7aa671ab7428feed5ee9740c/libavcodec/riscv/h264addpx_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:2", "text": "vlse32.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e8, m1, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vsse32.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels4_16_rvv, zve64x\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e16, m2, ta, ma\n        vle32.v         v16, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_8_rvv, zve64x\n        li      t0, 8 * 8\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetvli         zero, t0, e8, m4, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_16_rvv, zve32x\n        li      t0, 8\n        vsetivli    zero, 8, e16, m1, ta, ma\n1:\n        vle32.v     v16, (a1)\n        addi    t0, t0, -1\n        vle16.v     v8, (a0)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "3002310b707071ec7aa671ab7428feed5ee9740c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3002310b707071ec7aa671ab7428feed5ee9740c/libavcodec/riscv/h264addpx_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:3", "text": "sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_16_rvv, zve32x\n        li      t0, 8\n        vsetivli    zero, 8, e16, m1, ta, ma\n1:\n        vle32.v     v16, (a1)\n        addi    t0, t0, -1\n        vle16.v     v8, (a0)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w v24, v16\n        addi    a1, a1, 8 * 4\n        vadd.vv     v8, v8, v24\n        vse16.v     v8, (a0)\n        add     a0, a0, a2\n        bnez    t0, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "3002310b707071ec7aa671ab7428feed5ee9740c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3002310b707071ec7aa671ab7428feed5ee9740c/libavcodec/riscv/h264addpx_rvv.S", "line_start": 81, "line_end": 111}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264addpx_rvv.S:2", "text": "vlse32.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e8, m1, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e8, mf4, ta, ma\n        vsse32.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels4_16_rvv, zve64x\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetivli        zero, 4 * 4, e16, m2, ta, ma\n        vle32.v         v16, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 4, e16, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_h264_add_pixels8_8_rvv, zve64x\n        li      t0, 8 * 8\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vlse64.v        v8, (a0), a2\n        vsetvli         zero, t0, e8, m4, ta, ma\n        vle16.v         v16, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        vncvt.x.x.w     v24, v16\n        vadd.vv         v8, v8, v24\n        vsetivli        zero, 8, e8, mf2, ta, ma\n        vsse64.v        v8, (a0), a2\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264addpx_rvv.S", "license": "LGPL-2.1", "commit": "7744c08240808c8517a9c088b465c15235a34c86", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7744c08240808c8517a9c088b465c15235a34c86/libavcodec/riscv/h264addpx_rvv.S", "line_start": 41, "line_end": 89}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .variant_cc ff_h264_weight_pixels_simple_8_rvv\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x, b\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     zero, t6, e16, m2, ta, ma\n        add     t0, a0, a1\n        vle8.v      v8, (a0)\n        addi    a2, a2, -2\n        vle8.v      v9, (t0)\n        vzext.vf2   v24, v8\n        vzext.vf2   v26, v9\n        vmul.vx     v16, v24, a4\n        vmul.vx     v18, v26, a4\n        vsadd.vx    v16, v16, a5\n        vsadd.vx    v18, v18, a5\n        vmax.vx     v16, v16, zero\n        vmax.vx     v18, v18, zero\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vnclipu.wx  v9, v18, a3\n        vse8.v      v8, (a0)\n        vse8.v      v9, (t0)\n        sh1add  a0, a1, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vzext.vf2   v24, v8\n        vzext.vf2   v26, v9\n        vmul.vx     v16, v24, a4\n        vmul.vx     v18, v26, a4\n        vsadd.vx    v16, v16, a5\n        vsadd.vx    v18, v18, a5\n        vmax.vx     v16, v16, zero\n        vmax.vx     v18, v18, zero\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vnclipu.wx  v9, v18, a3\n        vse8.v      v8, (a0)\n        vse8.v      v9, (t0)\n        sh1add  a0, a1, a0\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro  h264_weight depth, w, b=\nfunc ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1\n        vsetvli     t0, zero, e16, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro  h264_weight depth, w, b=\nfunc ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vzext.vf2   v24, v8\n        sub     a2, a2, t1\n        vmul.vx     v16, v24, a4\n        mul     t2, t1, a1\n        vsadd.vx    v16, v16, a5\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a1\n        add     a0, a0, t2\n        bnez    a2, 1b\n\n        ret\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        li      t6, \\w\n        .ifb    \\b\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli     t1, a3, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a2\n        sub     a3, a3, t1\n        vlse\\b\\().v v12, (a1), a2\n        mul     t2, t1, a2\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vmv.v.x     v16, a7\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        add     a1, a1, t2\n        vwmaccsu.vx v16, a6, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": ".ifb    \\b\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli     t1, a3, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a2\n        sub     a3, a3, t1\n        vlse\\b\\().v v12, (a1), a2\n        mul     t2, t1, a2\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vmv.v.x     v16, a7\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        add     a1, a1, t2\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a2\n        add     a0, a0, t2\n        .endif\n        bnez    a3, 1b\n\n        ret\nendfunc\n.endm\n\nh264_weight 8, 2, 16\nh264_weight 8, 4, 32\nh264_weight 8, 8, 64\nh264_weight 8, 16\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv, relocate=1\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": ".hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv, relocate=1\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n.ifc \\type, luma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": ".endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n.ifc \\type, luma\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n\n        .variant_cc ff_h264_loop_filter_\\type\\()_intra_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_intra_8_rvv, zve32x\n        # p3: v8, p2: v9, p1: v10, p0: v11, q0: v12, q1: v13, q2: v14, q3: v15\n        # alpha: a2, beta: a3\n        csrwi   vxrm, 0\n        srai    a4, a2, 2\n        vwsubu.vv   v16, v11, v12\n        addi    a4, a4, 2\n        vwsubu.vv   v18, v12, v11\n        vwsubu.vv   v20, v10, v11\n        vwsubu.vv   v22, v11, v10\n        vwsubu.vv   v24, v13, v12\n        vwsubu.vv   v26, v12, v13\n        vwsubu.vv   v28, v11, v9\n        vwsubu.vv   v30, v9, v11\n        vwsubu.vv   v4, v14, v12\n        vwsubu.vv   v6, v12, v14\n        vsetvli     zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv     v16, v16, v18 # abs(p0 - q0)\n        vmax.vv     v20, v20, v22 # abs(p1 - p0)\n        vmslt.vx    v18, v16, a2\n        vmax.vv     v24, v24, v26 # abs(q1 - q0)\n        vmslt.vx    v22, v20, a3\n.ifc \\type, luma\n        vmax.vv     v28, v28, v30 # abs(p2 - p0)\n.endif\n        vmand.mm    v18, v18, v22\n        vmslt.vx    v23, v24, a3\n.ifc \\type, luma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "vwsubu.vv   v20, v10, v11\n        vwsubu.vv   v22, v11, v10\n        vwsubu.vv   v24, v13, v12\n        vwsubu.vv   v26, v12, v13\n        vwsubu.vv   v28, v11, v9\n        vwsubu.vv   v30, v9, v11\n        vwsubu.vv   v4, v14, v12\n        vwsubu.vv   v6, v12, v14\n        vsetvli     zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv     v16, v16, v18 # abs(p0 - q0)\n        vmax.vv     v20, v20, v22 # abs(p1 - p0)\n        vmslt.vx    v18, v16, a2\n        vmax.vv     v24, v24, v26 # abs(q1 - q0)\n        vmslt.vx    v22, v20, a3\n.ifc \\type, luma\n        vmax.vv     v28, v28, v30 # abs(p2 - p0)\n.endif\n        vmand.mm    v18, v18, v22\n        vmslt.vx    v23, v24, a3\n.ifc \\type, luma\n        vmax.vv     v4, v4, v6    # abs(q2 - q0)\n        vmand.mm    v1, v18, v23  # abs(...) < A && abs(..) < B && abs(..) < B\n        vmslt.vx    v3, v16, a4   # abs(p0 - q0) < (alpha / 4) + 2\n        vmslt.vx    v6, v28, a3   # abs(p2 - p0) < beta\n        vmslt.vx    v7, v4, a3    # abs(q2 - q0) < beta\n        vmand.mm    v2, v3, v6\n        vmand.mm    v3, v3, v7\n.else\n        vmand.mm    v0, v18, v23\n.endif\n        vsetvli     zero, zero, e8, \\e8mul, ta, mu\n        vwaddu.vv   v22, v11, v13\n        vwaddu.vv   v30, v10, v12\n        vwaddu.wv   v22, v22, v10\n        vwaddu.wv   v30, v30, v13\n        vwaddu.wv   v22, v22, v10 #          2p1 + p0 +      q1\n        vwaddu.wv   v30, v30, v13 #           p1 +      q0 + 2q1\n.ifc \\type, luma\n        vwaddu.vv   v16, v10, v11\n        vwaddu.vv   v20, v8, v9\n        vwaddu.wv   v16, v16, v12 #           p1 + p0 + q0\n        vwaddu.vv   v24, v11, v12\n        vwaddu.vv   v28, v14, v15\n        vwaddu.wv   v24, v24, v13 #                p0 + q0 + q1\n        vwaddu.wv   v18, v16, v9  #      p2 + p1 + p0 + q0\n        vwaddu.wv   v16, v16, v13 #           p1 + p0 + q0 + q1\n        vwaddu.wv   v26, v24, v14 #                p0 + q0 + q1 + q2\n        vwaddu.wv   v24, v24, v10 #           p1 + p0 + q0 + q1\n        vsetvli     zero, zero, e16, \\e16mul, ta, ma\n        vsll.vi     v20, v20, 1   # 2p3 +2p2\n        vadd.vv     v16, v16, v18 #       p2 +2p1 +2p0 +2q0 + q1\n        vadd.vv     v20, v18, v20 # 2p3 +3p3 + p1 + p0 + q0\n        vsll.vi     v28, v28, 1   #                              2q2 +2q3\n        vadd.vv     v24, v24, v26 #           p1 +2p0 +2q0 +2q1 + q2\n        vadd.vv     v28, v26, v28 #                p0 + q0 + q1 +3q2 +2q3\n        vsetvli     zero, zero, e8, \\e8mul, ta, mu\n        vmand.mm    v0, v1, v2\n        vnclipu.wi  v11, v16, 3, v0.t # p0'\n        vnclipu.wi  v10, v18, 2, v0.t # p1'\n        vnclipu.wi  v9, v20, 3, v0.t # p2'", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "vwaddu.wv   v16, v16, v12 #           p1 + p0 + q0\n        vwaddu.vv   v24, v11, v12\n        vwaddu.vv   v28, v14, v15\n        vwaddu.wv   v24, v24, v13 #                p0 + q0 + q1\n        vwaddu.wv   v18, v16, v9  #      p2 + p1 + p0 + q0\n        vwaddu.wv   v16, v16, v13 #           p1 + p0 + q0 + q1\n        vwaddu.wv   v26, v24, v14 #                p0 + q0 + q1 + q2\n        vwaddu.wv   v24, v24, v10 #           p1 + p0 + q0 + q1\n        vsetvli     zero, zero, e16, \\e16mul, ta, ma\n        vsll.vi     v20, v20, 1   # 2p3 +2p2\n        vadd.vv     v16, v16, v18 #       p2 +2p1 +2p0 +2q0 + q1\n        vadd.vv     v20, v18, v20 # 2p3 +3p3 + p1 + p0 + q0\n        vsll.vi     v28, v28, 1   #                              2q2 +2q3\n        vadd.vv     v24, v24, v26 #           p1 +2p0 +2q0 +2q1 + q2\n        vadd.vv     v28, v26, v28 #                p0 + q0 + q1 +3q2 +2q3\n        vsetvli     zero, zero, e8, \\e8mul, ta, mu\n        vmand.mm    v0, v1, v2\n        vnclipu.wi  v11, v16, 3, v0.t # p0'\n        vnclipu.wi  v10, v18, 2, v0.t # p1'\n        vnclipu.wi  v9, v20, 3, v0.t # p2'\n        vmandn.mm   v0, v1, v2\n.endif\n        vnclipu.wi  v11, v22, 2, v0.t # p0'\n.ifc \\type, luma\n        vmand.mm    v0, v1, v3\n        vnclipu.wi  v12, v24, 3, v0.t # q0'\n        vnclipu.wi  v13, v26, 2, v0.t # q1'\n        vnclipu.wi  v14, v28, 3, v0.t # q2'\n        vmandn.mm   v0, v1, v3\n.endif\n        vnclipu.wi  v12, v30, 2, v0.t # q0'\n        jr      t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_intra_8_rvv, zve32x\n        lpad    0\n        sub       t3, a0, a1\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v12, (a0)\n        sub       t2, t3, a1\n        vle8.v    v11, (t3)\n        add       t4, a0, a1\n        vle8.v    v10, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v13, (t4)\n.ifc \\type, luma\n        sub       t0, t1, a1\n        vle8.v    v9, (t1)\n        add       t5, t4, a1\n        vle8.v    v8, (t0)\n        add       t6, t5, a1\n        vle8.v    v14, (t5)\n        vle8.v    v15, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_intra_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t1)\n        vse8.v    v10, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:11", "text": "vle8.v    v11, (t3)\n        add       t4, a0, a1\n        vle8.v    v10, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v13, (t4)\n.ifc \\type, luma\n        sub       t0, t1, a1\n        vle8.v    v9, (t1)\n        add       t5, t4, a1\n        vle8.v    v8, (t0)\n        add       t6, t5, a1\n        vle8.v    v14, (t5)\n        vle8.v    v15, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_intra_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t1)\n        vse8.v    v10, (t2)\n.endif\n        vse8.v    v11, (t3)\n        vse8.v    v12, (a0)\n.ifc \\type, luma\n        vse8.v    v13, (t4)\n        vse8.v    v14, (t5)\n.endif\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:12", "text": "addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_intra_8_rvv, zve32x\n        lpad    0\n        addi        a0, a0, -4\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg8e8.v v8, (a0), a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:13", "text": "endfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_intra_8_rvv, zve32x\n        lpad    0\n        addi        a0, a0, -4\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg8e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_intra_8_rvv\n        vssseg6e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_intra_8_rvv, zve32x\n        lpad    0\n        addi        a0, a0, -4\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg8e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_intra_8_rvv\n        vssseg6e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_intra_8_rvv, zve32x\n        lpad    0\n        addi    a0, a0, -2\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v10, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_intra_8_rvv\n        vssseg2e8.v v11, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_intra_8_rvv, zve32x\n        lpad    0\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v10, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_intra_8_rvv\n        vssseg2e8.v v11, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 481, "line_end": 538}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:14", "text": "vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v10, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_intra_8_rvv\n        vssseg2e8.v v11, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_intra_8_rvv, zve32x\n        lpad    0\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v10, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_intra_8_rvv\n        vssseg2e8.v v11, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264dsp_rvv.S", "line_start": 521, "line_end": 538}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "607d4cca8e213d7b331e9aca6619d18fa6a587f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/607d4cca8e213d7b331e9aca6619d18fa6a587f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "607d4cca8e213d7b331e9aca6619d18fa6a587f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/607d4cca8e213d7b331e9aca6619d18fa6a587f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 375}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "607d4cca8e213d7b331e9aca6619d18fa6a587f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/607d4cca8e213d7b331e9aca6619d18fa6a587f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 375}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "b75dff0e201ebe89f63f9ffb2c38f38e310b7333", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b75dff0e201ebe89f63f9ffb2c38f38e310b7333/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "b75dff0e201ebe89f63f9ffb2c38f38e310b7333", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b75dff0e201ebe89f63f9ffb2c38f38e310b7333/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "b75dff0e201ebe89f63f9ffb2c38f38e310b7333", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b75dff0e201ebe89f63f9ffb2c38f38e310b7333/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 376}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "b75dff0e201ebe89f63f9ffb2c38f38e310b7333", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b75dff0e201ebe89f63f9ffb2c38f38e310b7333/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 376}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .variant_cc ff_h264_weight_pixels_simple_8_rvv\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x, b\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     zero, t6, e16, m2, ta, ma\n        add     t0, a0, a1\n        vle8.v      v8, (a0)\n        addi    a2, a2, -2\n        vle8.v      v9, (t0)\n        vzext.vf2   v24, v8\n        vzext.vf2   v26, v9\n        vmul.vx     v16, v24, a4\n        vmul.vx     v18, v26, a4\n        vsadd.vx    v16, v16, a5\n        vsadd.vx    v18, v18, a5\n        vmax.vx     v16, v16, zero\n        vmax.vx     v18, v18, zero\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vnclipu.wx  v9, v18, a3\n        vse8.v      v8, (a0)\n        vse8.v      v9, (t0)\n        sh1add  a0, a1, a0\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vzext.vf2   v24, v8\n        vzext.vf2   v26, v9\n        vmul.vx     v16, v24, a4\n        vmul.vx     v18, v26, a4\n        vsadd.vx    v16, v16, a5\n        vsadd.vx    v18, v18, a5\n        vmax.vx     v16, v16, zero\n        vmax.vx     v18, v18, zero\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vnclipu.wx  v9, v18, a3\n        vse8.v      v8, (a0)\n        vse8.v      v9, (t0)\n        sh1add  a0, a1, a0\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro  h264_weight depth, w, b=\nfunc ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro  h264_weight depth, w, b=\nfunc ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vzext.vf2   v24, v8\n        sub     a2, a2, t1\n        vmul.vx     v16, v24, a4\n        mul     t2, t1, a1\n        vsadd.vx    v16, v16, a5\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a1\n        add     a0, a0, t2\n        bnez    a2, 1b\n\n        ret\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        li      t6, \\w\n        .ifb    \\b\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli     t1, a3, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a2\n        sub     a3, a3, t1\n        vlse\\b\\().v v12, (a1), a2\n        mul     t2, t1, a2\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vmv.v.x     v16, a7\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        add     a1, a1, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "li      t6, \\w\n        .ifb    \\b\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli     t1, a3, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a2\n        sub     a3, a3, t1\n        vlse\\b\\().v v12, (a1), a2\n        mul     t2, t1, a2\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vmv.v.x     v16, a7\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        add     a1, a1, t2\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a2\n        add     a0, a0, t2\n        .endif\n        bnez    a3, 1b\n\n        ret\nendfunc\n.endm\n\nh264_weight 8, 2, 16\nh264_weight 8, 4, 32\nh264_weight 8, 8, 64\nh264_weight 8, 16\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv, relocate=1\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": ".global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv, relocate=1\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n.ifc \\type, luma\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 377}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c3051d94a7939de93acd647d3a1719ce56c0c4f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3051d94a7939de93acd647d3a1719ce56c0c4f5/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 377}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "li      t6, \\w\n        .ifb    \\b\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli     t1, a3, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a2\n        sub     a3, a3, t1\n        vlse\\b\\().v v12, (a1), a2\n        mul     t2, t1, a2\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vmv.v.x     v16, a7\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        add     a1, a1, t2\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a2\n        add     a0, a0, t2\n        .endif\n        bnez    a3, 1b\n\n        ret\nendfunc\n.endm\n\nh264_weight 8, 2, 16\nh264_weight 8, 4, 32\nh264_weight 8, 8, 64\nh264_weight 8, 16\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "6611bf548497924eb6bfa544d9aa260c393994a3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6611bf548497924eb6bfa544d9aa260c393994a3/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": ".global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "6611bf548497924eb6bfa544d9aa260c393994a3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6611bf548497924eb6bfa544d9aa260c393994a3/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro  h264_weight depth, w, b=\nfunc ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vzext.vf2   v24, v8\n        sub     a2, a2, t1\n        vmul.vx     v16, v24, a4\n        mul     t2, t1, a1\n        vsadd.vx    v16, v16, a5\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a1\n        add     a0, a0, t2\n        bnez    a2, 1b\n\n        ret\n        .endif\nendfunc\n.endm\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "func ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a4\n        vnclipu.wx  v4, v24, a4\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nh264_weight 8, 2, 16\nh264_weight 8, 4, 32\nh264_weight 8, 8, 64\nh264_weight 8, 16\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "endfunc\n\nh264_weight 8, 2, 16\nh264_weight 8, 4, 32\nh264_weight 8, 8, 64\nh264_weight 8, 16\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "# alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n.ifc \\type, luma\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "459a1512f13ae1fdd404ff9281b02d225ac70a09", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/459a1512f13ae1fdd404ff9281b02d225ac70a09/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 396}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .variant_cc ff_h264_weight_pixels_simple_8_rvv\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vzext.vf2   v24, v8\n        vmul.vx     v16, v24, a4\n        vsadd.vx    v16, v16, a5\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vsadd.vx    v16, v16, a5\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro  h264_weight depth, w, b=\nfunc ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vzext.vf2   v24, v8\n        sub     a2, a2, t1\n        vmul.vx     v16, v24, a4\n        mul     t2, t1, a1\n        vsadd.vx    v16, v16, a5\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "func ff_h264_weight_pixels\\w\\()_\\depth\\()_rvv, zve64x\n        lpad    0\n        .ifb    \\b\n        li      t6, \\w\n        j       ff_h264_weight_pixels_simple_\\depth\\()_rvv\n        .else\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     t1, a2, e\\b, m2, ta, ma\n        vlse\\b\\().v v8, (a0), a1\n        vsetvli     t0, zero, e16, m4, ta, ma\n        vzext.vf2   v24, v8\n        sub     a2, a2, t1\n        vmul.vx     v16, v24, a4\n        mul     t2, t1, a1\n        vsadd.vx    v16, v16, a5\n        vmax.vx     v16, v16, zero\n        vsetvli     zero, zero, e8, m2, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vsetvli     zero, t1, e\\b, m2, ta, ma\n        vsse\\b\\().v v8, (a0), a1\n        add     a0, a0, t2\n        bnez    a2, 1b\n\n        ret\n        .endif\nendfunc\n.endm\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a4\n        vnclipu.wx  v4, v24, a4\n        vssseg2e8.v v0, (t0), a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a4\n        vnclipu.wx  v4, v24, a4\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nh264_weight 8, 2, 16\nh264_weight 8, 4, 32\nh264_weight 8, 8, 64\nh264_weight 8, 16\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": ".endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n.ifc \\type, luma\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": ".ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "endfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "4936bb25083ebdd7b0c514ab8b81159bb4273265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4936bb25083ebdd7b0c514ab8b81159bb4273265/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 387}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli     zero, a6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vzext.vf2   v24, v8\n        vmul.vx     v16, v24, a4\n        vsadd.vx    v16, v16, a5\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a3\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli     t2, a2, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vzext.vf2   v16, v0\n        vzext.vf2   v24, v4\n        vmul.vx     v16, v16, a4\n        vmul.vx     v24, v24, a4\n        vsadd.vx    v16, v16, a5\n        vsadd.vx    v24, v24, a5\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a3\n        vnclipu.wx  v4, v24, a3\n        vssseg2e8.v v0, (t0), a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli     t2, a2, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vzext.vf2   v16, v0\n        vzext.vf2   v24, v4\n        vmul.vx     v16, v16, a4\n        vmul.vx     v24, v24, a4\n        vsadd.vx    v16, v16, a5\n        vsadd.vx    v24, v24, a5\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a3\n        vnclipu.wx  v4, v24, a3\n        vssseg2e8.v v0, (t0), a1\n        addi    t0, t0, 2\n        bnez    t6, 2b\n\n        mul     t3, a1, t2\n        sub     a2, a2, t2\n        add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a4\n        vnclipu.wx  v4, v24, a4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a4\n        vnclipu.wx  v4, v24, a4\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": ".else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n.macro loop_filter type, inners, e8mul, e16mul\n        .variant_cc ff_h264_loop_filter_\\type\\()_8_rvv\nfunc ff_h264_loop_filter_\\type\\()_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n.ifc \\type, luma\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n.endif\n        vwsubu.vv    v16, v9, v12\n.ifc \\type, luma\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n.endif\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n.ifc \\type, luma\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n.endif\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n.ifc \\type, luma\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n.endif\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n.ifc \\type, luma\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n.endif\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n.ifc \\type, luma\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n.endif\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n.ifc \\type, luma\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vwsubu.vv    v18, v11, v13\n.endif\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n.ifc \\type, luma\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n.endif\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n.ifc \\type, luma\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n.else\n        vmand.mm     v0, v7, v3    # whether to update p0 and q0\n.endif\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n.ifc \\type, luma\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vmmv.m       v0, v7\n.endif\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vsetvli      zero, zero, e16, \\e16mul, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, \\e8mul, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_\\type\\()_8_rvv, zve32x\n        lpad    0\n.ifc \\type, luma\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n.else\n        vsetivli  zero, 4, e16, mf2, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x0101\n        vzext.vf2 v6, v4\n.endif\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 4 * \\inners, e8, \\e8mul, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        add       t5, a0, a1\n        vle8.v    v9, (t2)\n.ifc \\type, luma\n        sub       t1, t2, a1\n.endif\n        vle8.v    v12, (t5)\n.ifc \\type, luma\n        add       t6, t5, a1\n        vle8.v    v8, (t1)\n        vle8.v    v13, (t6)\n.endif\n        jal       t0, ff_h264_loop_filter_\\type\\()_8_rvv\n.ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": ".ifc \\type, luma\n        vse8.v    v9, (t2)\n        vse8.v    v12, (t5)\n.endif\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        ret\nendfunc\n.endm\n\nloop_filter luma, 4, m1, m2\nloop_filter chroma, 2, mf2, m1\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li      t0, 0x0101\n        vzext.vf2   v6, v4\n        addi    a0, a0, -2\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_chroma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vle8.v      v6, (a4)\n        addi    a0, a0, -2\n        vsetivli    zero, 4, e8, mf2, ta, ma\n        vlsseg4e8.v v9, (a0), a1\n        addi    a0, a0, 1\n        jal     t0, ff_h264_loop_filter_chroma_8_rvv\n        vssseg2e8.v v10, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "7d1dda4892d9e3007c70f36bfb369d70413dfbdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d1dda4892d9e3007c70f36bfb369d70413dfbdb/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 393}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": ".else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3a5365683799ded2df974671928b545a153650ca", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3a5365683799ded2df974671928b545a153650ca/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3a5365683799ded2df974671928b545a153650ca", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3a5365683799ded2df974671928b545a153650ca/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3a5365683799ded2df974671928b545a153650ca", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3a5365683799ded2df974671928b545a153650ca/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        addi        a0, a0, 1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg4e8.v v9, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3a5365683799ded2df974671928b545a153650ca", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3a5365683799ded2df974671928b545a153650ca/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 324}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "677f28b310ac8cbf96e3a02865c2aff49c6950ff", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/677f28b310ac8cbf96e3a02865c2aff49c6950ff/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 322}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli zero, a6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vmv.v.x v16, a5\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        vsetvli zero, t6, e16, m2, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v16, a6, v12\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wx  v8, v16, a4\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "func ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vnclipu.wi  v2, v12, 0\n        vssseg2e8.v v0, (t0), a1\n        addi    t0, t0, 2\n        bnez    t6, 2b\n\n        mul     t3, a1, t2\n        sub     a2, a2, t2\n        add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "ori     a7, a7, 1\n        sll     a7, a7, a4\n        addi    a4, a4, 1\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli     t2, a3, e16, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v8, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vwmaccsu.vx v16, a5, v0\n        vwmaccsu.vx v24, a5, v4\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vmax.vx     v16, v16, zero\n        vmax.vx     v24, v24, zero\n        vsetvli     zero, zero, e8, m4, ta, ma\n        vnclipu.wx  v0, v16, a4\n        vnclipu.wx  v4, v24, a4\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "func ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "# p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "afd45c7ff74cc947d427202c1e9adc9ddc1987f8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afd45c7ff74cc947d427202c1e9adc9ddc1987f8/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 327}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli zero, a6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vmv.v.x v16, a5\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        vsetvli zero, t6, e32, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        vsetvli zero, t6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vzext.vf2   v28, v12\n        vwmaccsu.vx v16, a5, v24\n        vwmaccsu.vx v16, a6, v28\n        vnclip.wx   v16, v16, a4\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 1\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "func ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vnclipu.wi  v2, v12, 0\n        vssseg2e8.v v0, (t0), a1\n        addi    t0, t0, 2\n        bnez    t6, 2b\n\n        mul     t3, a1, t2\n        sub     a2, a2, t2\n        add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12\n        vzext.vf2   v8, v4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12\n        vzext.vf2   v8, v4\n        vzext.vf2   v12, v6\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vnclip.wx   v8, v16, a4\n        vnclip.wx   v12, v24, a4\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 1\n        vnclipu.wi  v2, v12, 1\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        lpad    0\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": ".endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 332}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 332}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12\n        vzext.vf2   v8, v4\n        vzext.vf2   v12, v6\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vnclip.wx   v8, v16, a4\n        vnclip.wx   v12, v24, a4\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 1\n        vnclipu.wi  v2, v12, 1\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": ".variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 327}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2024 J. Dekker <jdek@itanimul.li>\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli zero, a6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vmv.v.x v16, a5\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vzext.vf2   v24, v8\n        vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        vsetvli zero, t6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vzext.vf2   v28, v12\n        vwmaccsu.vx v16, a5, v24\n        vwmaccsu.vx v16, a6, v28\n        vnclip.wx   v16, v16, a4\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 1\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "endfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vnclipu.wi  v2, v12, 0\n        vssseg2e8.v v0, (t0), a1\n        addi    t0, t0, 2\n        bnez    t6, 2b\n\n        mul     t3, a1, t2\n        sub     a2, a2, t2\n        add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12\n        vzext.vf2   v8, v4\n        vzext.vf2   v12, v6\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vnclip.wx   v8, v16, a4\n        vnclip.wx   v12, v24, a4\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 1\n        vnclipu.wi  v2, v12, 1\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "endconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lh              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sh              zero, 0(a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:9", "text": "addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lh              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sh              zero, 0(a1)\n.if \\width == 8\n        vlse64.v        v24, (a0), a2\n        vsetvli         t0, zero, e16, m8, ta, ma\n.else\n        vlse32.v        v24, (a0), a2\n        vsetvli         t0, zero, e16, m4, ta, ma\n.endif\n        vzext.vf2       v0, v24\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n.if \\width == 8\n        vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m2, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n        vsetivli        zero, \\width, e8, m1, ta, ma\n.if \\width == 8\n        vsse64.v        v24, (a0), a2\n.else\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        lw              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sw              zero, 0(a1)\n        add             t4, a0, a2\n        sh1add          t5, a2, a0\n        sh1add          t6, a2, t4\n.if \\width == 8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:10", "text": "vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        lw              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sw              zero, 0(a1)\n        add             t4, a0, a2\n        sh1add          t5, a2, a0\n        sh1add          t6, a2, t4\n.if \\width == 8\n        sh2add          t0, a2, a0\n        sh2add          t1, a2, t4\n        sh2add          t2, a2, t5\n        sh2add          t3, a2, t6\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t4)\n        vle16.v         v2, (t5)\n        vle16.v         v3, (t6)\n.if \\width == 8\n        vle16.v         v4, (t0)\n        vle16.v         v5, (t1)\n        vle16.v         v6, (t2)\n        vle16.v         v7, (t3)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t4)\n        vse16.v         v2, (t5)\n        vse16.v         v3, (t6)\n.if \\width == 8\n        vse16.v         v4, (t0)\n        vse16.v         v5, (t1)\n        vse16.v         v6, (t2)\n        vse16.v         v7, (t3)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:11", "text": "vmin.vx         v0, v0, a5\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t4)\n        vse16.v         v2, (t5)\n        vse16.v         v3, (t6)\n.if \\width == 8\n        vse16.v         v4, (t0)\n        vse16.v         v5, (t1)\n        vse16.v         v6, (t2)\n        vse16.v         v7, (t3)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa5a6055422a9e38905de9274e63f245cef96c57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa5a6055422a9e38905de9274e63f245cef96c57/libavcodec/riscv/h264dsp_rvv.S", "line_start": 401, "line_end": 430}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli zero, a6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vmv.v.x v16, a5\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        vsetvli zero, t6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_simple_8_rvv\nfunc ff_h264_biweight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        vsetvli zero, t6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a3, a3, -1\n        vle8.v  v12, (a1)\n        add     a1, a1, a2\n        vmv.v.x v16, a7\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vzext.vf2   v28, v12\n        vwmaccsu.vx v16, a5, v24\n        vwmaccsu.vx v16, a6, v28\n        vnclip.wx   v16, v16, a4\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 1\n        vse8.v  v8, (a0)\n        add     a0, a0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vnclipu.wi  v2, v12, 0\n        vssseg2e8.v v0, (t0), a1\n        addi    t0, t0, 2\n        bnez    t6, 2b\n\n        mul     t3, a1, t2\n        sub     a2, a2, t2\n        add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n        .variant_cc ff_h264_biweight_pixels_8_rvv\nfunc ff_h264_biweight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 2\n        addi    a7, a7, 1\n        ori     a7, a7, 1\n        sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12\n        vzext.vf2   v8, v4\n        vzext.vf2   v12, v6\n        vwmaccsu.vx v16, a6, v8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "sll     a7, a7, a4\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t5, t6\n2:\n        vsetvli t2, a3, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a2\n        vlsseg2e8.v v4, (t1), a2\n        addi    t5, t5, -2\n        vmv.v.x v16, a7\n        vmv.v.x v24, a7\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a5, v8\n        vwmaccsu.vx v24, a5, v12\n        vzext.vf2   v8, v4\n        vzext.vf2   v12, v6\n        vwmaccsu.vx v16, a6, v8\n        vwmaccsu.vx v24, a6, v12\n        vnclip.wx   v8, v16, a4\n        vnclip.wx   v12, v24, a4\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 1\n        vnclipu.wi  v2, v12, 1\n        vssseg2e8.v v0, (t0), a2\n        addi    t0, t0, 2\n        addi    t1, t1, 2\n        bnez    t5, 2b\n\n        mul     t3, a2, t2\n        sub     a3, a3, t2\n        add     a0, a0, t3\n        add     a1, a1, t3\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "endfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n\nfunc ff_h264_biweight_pixels\\w\\()_8_rvv, zve32x\n        li      t6, \\w\n        .if     \\w == 16\n        j       ff_h264_biweight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_biweight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n        .word   ff_h264_biweight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .dword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n        .qword  ff_h264_biweight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "func ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:7", "text": "vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:8", "text": "sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "f1ed351d3b3c247ec372cdb3dc8b112e570d5dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ed351d3b3c247ec372cdb3dc8b112e570d5dec/libavcodec/riscv/h264dsp_rvv.S", "line_start": 281, "line_end": 325}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h264_weight_pixels_simple_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        vsetvli zero, a6, e32, m4, ta, ma\n        vle8.v  v8, (a0)\n        addi    a2, a2, -1\n        vmv.v.x v16, a5\n        vsetvli zero, zero, e16, m2, ta, ma\n        vzext.vf2   v24, v8\n        vwmaccsu.vx v16, a4, v24\n        vnclip.wx   v16, v16, a3\n        vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3606e592ea239ebaf2e30570bf99abeefd52b7e0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3606e592ea239ebaf2e30570bf99abeefd52b7e0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vmax.vx v16, v16, zero\n        vsetvli zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v  v8, (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n\nfunc ff_h264_weight_pixels_8_rvv, zve32x\n        csrwi   vxrm, 0\n        sll     a5, a5, a3\n1:\n        mv      t0, a0\n        mv      t6, a6\n2:\n        vsetvli t2, a2, e32, m8, ta, ma\n        vlsseg2e8.v v0, (t0), a1\n        addi    t6, t6, -2\n        vmv.v.x v16, a5\n        vmv.v.x v24, a5\n        vsetvli zero, zero, e16, m4, ta, ma\n        vzext.vf2   v8, v0\n        vzext.vf2   v12, v2\n        vwmaccsu.vx v16, a4, v8\n        vwmaccsu.vx v24, a4, v12\n        vnclip.wx   v8, v16, a3\n        vnclip.wx   v12, v24, a3\n        vmax.vx v8, v8, zero\n        vmax.vx v12, v12, zero\n        vsetvli zero, zero, e8, m2, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vnclipu.wi  v2, v12, 0\n        vssseg2e8.v v0, (t0), a1\n        addi    t0, t0, 2\n        bnez    t6, 2b\n\n        mul     t3, a1, t2\n        sub     a2, a2, t2\n        add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3606e592ea239ebaf2e30570bf99abeefd52b7e0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3606e592ea239ebaf2e30570bf99abeefd52b7e0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "add     a0, a0, t3\n        bnez    a2, 1b\n\n        ret\nendfunc\n\n.irp    w, 16, 8, 4, 2\nfunc ff_h264_weight_pixels\\w\\()_8_rvv, zve32x\n        li      a6, \\w\n        .if     \\w == 16\n        j       ff_h264_weight_pixels_simple_8_rvv\n        .else\n        j       ff_h264_weight_pixels_8_rvv\n        .endif\nendfunc\n.endr\n\n        .global ff_h264_weight_funcs_8_rvv\n        .hidden ff_h264_weight_funcs_8_rvv\nconst ff_h264_weight_funcs_8_rvv\n        .irp    w, 16, 8, 4, 2\n#if __riscv_xlen == 32\n        .word   ff_h264_weight_pixels\\w\\()_8_rvv\n#elif __riscv_xlen == 64\n        .dword  ff_h264_weight_pixels\\w\\()_8_rvv\n#else\n        .qword  ff_h264_weight_pixels\\w\\()_8_rvv\n#endif\n        .endr\nendconst\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3606e592ea239ebaf2e30570bf99abeefd52b7e0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3606e592ea239ebaf2e30570bf99abeefd52b7e0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3606e592ea239ebaf2e30570bf99abeefd52b7e0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3606e592ea239ebaf2e30570bf99abeefd52b7e0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:5", "text": "vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3606e592ea239ebaf2e30570bf99abeefd52b7e0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3606e592ea239ebaf2e30570bf99abeefd52b7e0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:6", "text": "vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "3606e592ea239ebaf2e30570bf99abeefd52b7e0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3606e592ea239ebaf2e30570bf99abeefd52b7e0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 201, "line_end": 237}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .variant_cc ff_h264_loop_filter_luma_8_rvv\nfunc ff_h264_loop_filter_luma_8_rvv, zve32x\n        # p2: v8, p1: v9, p0: v10, q0: v11, q1: v12, q2: v13\n        # alpha: a2, beta: a3, tc_orig: v6\n        csrwi        vxrm, 0\n        vaaddu.vv    v14, v10, v11 # (p0 + q0 + 1) / 2\n        vwsubu.vv    v16, v9, v12\n        vwaddu.vv    v18, v8, v14\n        vwaddu.vv    v20, v13, v14\n        vnsra.wi     v24, v16, 2   # (p1 - q1) / 4\n        vnsrl.wi     v14, v18, 1\n        vnsrl.wi     v15, v20, 1\n        vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "e2af5904f0fa86dbb2b7755ab579f54d14523e8e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e2af5904f0fa86dbb2b7755ab579f54d14523e8e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:2", "text": "vneg.v       v5, v6        # -tc_orig\n        vwsubu.vv    v22, v11, v10 # q0 - p0\n        vwsubu.vv    v18, v14, v9\n        vwsubu.vv    v20, v15, v12\n        vwadd.wv     v16, v22, v24\n        vmsge.vi     v7, v6, 0     # tc_orig >= 0\n        vnclip.wi    v14, v18, 0\n        vnclip.wi    v15, v20, 0\n        vnclip.wi    v16, v16, 1   # clip8((q0 - p0 + (p1 - q1) / 4 + 1) >> 1)\n        vmin.vv      v14, v14, v6\n        vmin.vv      v15, v15, v6\n        vmax.vv      v14, v14, v5  # clip(p2 + ... - p1, +/-tc_orig)\n        vmax.vv      v15, v15, v5  # clip(q2 + ... - q1, +/-tc_orig)\n        vwsubu.vv    v20, v10, v11\n        vwsubu.vv    v24, v9, v10\n        vwsubu.vv    v26, v10, v9\n        vwsubu.vv    v28, v12, v11\n        vwsubu.vv    v30, v11, v12\n        vwsubu.vv    v0, v8, v10\n        vwsubu.vv    v2, v10, v8\n        vwsubu.vv    v4, v13, v11\n        vwsubu.vv    v18, v11, v13\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vv      v20, v20, v22 # abs(p0 - q0)\n        vmax.vv      v24, v24, v26 # abs(p1 - p0)\n        vmax.vv      v28, v28, v30 # abs(q1 - q0)\n        vmax.vv      v22, v0, v2   # abs(p2 - p0)\n        vmax.vv      v26, v4, v18  # abs(q2 - q0)\n        vmslt.vx     v1, v20, a2\n        vmslt.vx     v2, v24, a3\n        vmand.mm     v7, v7, v1\n        vmslt.vx     v3, v28, a3\n        vmand.mm     v7, v7, v2\n        vmslt.vx     v0, v22, a3\n        vmand.mm     v7, v7, v3    # whether to update p0 and q0\n        vmslt.vx     v1, v26, a3\n        vmand.mm     v0, v0, v7\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v9, v9, v14, v0.t   # p1'\n        vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "e2af5904f0fa86dbb2b7755ab579f54d14523e8e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e2af5904f0fa86dbb2b7755ab579f54d14523e8e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:3", "text": "vmand.mm     v0, v1, v7\n        vadd.vi      v6, v6, 1, v0.t     # tc++\n        vadd.vv      v12, v12, v15, v0.t # q1'\n        vneg.v       v5, v6              # -tc\n        vmin.vv      v16, v16, v6\n        vwcvtu.x.x.v v18, v10\n        vmax.vv      v16, v16, v5\n        vwcvtu.x.x.v v20, v11\n        vwadd.wv     v18, v18, v16\n        vwsub.wv     v20, v20, v16\n        vmmv.m       v0, v7\n        vsetvli      zero, zero, e16, m2, ta, ma\n        vmax.vx      v18, v18, zero\n        vmax.vx      v20, v20, zero\n        vsetvli      zero, zero, e8, m1, ta, mu\n        vnclipu.wi   v10, v18, 0, v0.t   # p0'\n        vnclipu.wi   v11, v20, 0, v0.t   # q0'\n        jr           t0\nendfunc\n\nfunc ff_h264_v_loop_filter_luma_8_rvv, zve32x\n        vsetivli  zero, 4, e32, m1, ta, ma\n        vle8.v    v4, (a4)\n        li        t0, 0x01010101\n        vzext.vf4 v6, v4\n        sub       t3, a0, a1\n        vmul.vx   v6, v6, t0\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v11, (a0)\n        sub       t2, t3, a1\n        vid.v     v0\n        vle8.v    v10, (t3)\n        sub       t1, t2, a1\n        vle8.v    v9, (t2)\n        add       t5, a0, a1\n        vle8.v    v8, (t1)\n        add       t6, t5, a1\n        vle8.v    v12, (t5)\n        vle8.v    v13, (t6)\n        jal       t0, ff_h264_loop_filter_luma_8_rvv\n        vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "e2af5904f0fa86dbb2b7755ab579f54d14523e8e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e2af5904f0fa86dbb2b7755ab579f54d14523e8e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_mbaff_8_rvv, zve32x\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x0101\n        vzext.vf2   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0    # tc_orig\n        vsetivli    zero, 8, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "e2af5904f0fa86dbb2b7755ab579f54d14523e8e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e2af5904f0fa86dbb2b7755ab579f54d14523e8e/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 154}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264dsp_rvv.S:4", "text": "vse8.v    v9, (t2)\n        vse8.v    v10, (t3)\n        vse8.v    v11, (a0)\n        vse8.v    v12, (t5)\n        ret\nendfunc\n\nfunc ff_h264_h_loop_filter_luma_8_rvv, zve32x\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vle8.v      v4, (a4)\n        li          t0, 0x01010101\n        vzext.vf4   v6, v4\n        addi        a0, a0, -3\n        vmul.vx     v6, v6, t0\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vlsseg6e8.v v8, (a0), a1\n        jal         t0, ff_h264_loop_filter_luma_8_rvv\n        vssseg6e8.v v8, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264dsp_rvv.S", "license": "LGPL-2.1", "commit": "5a6e333fc7ac514255bcd6b424924d92ef558bf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a6e333fc7ac514255bcd6b424924d92ef558bf0/libavcodec/riscv/h264dsp_rvv.S", "line_start": 121, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_dequant_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright © 2025 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nconst offsets_8, 1\n        .short 0, 64, 256, 320\nendconst\n\nfunc ff_h264_luma_dc_dequant_idct_8_rvv, zve32x\n        lpad   0\n        csrwi  vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg4e16.v v8, (a1)\n        vwadd.vv    v16, v8, v9     # z0\n        addi    t1, sp, 4 * 4 * -3\n        vwadd.vv    v19, v10, v11   # z3\n        addi    t2, sp, 4 * 4 * -2\n        vwsub.vv    v17, v8, v9     # z1\n        addi    t3, sp, 4 * 4 * -1\n        vwsub.vv    v18, v10, v11   # z2\n        vsetvli zero, zero, e32, m1, ta, ma\n        vadd.vv v8, v16, v19\n        addi    sp, sp, 4 * 4 * -4\n        vsub.vv v9, v16, v19\n        vsub.vv v10, v17, v18\n        vadd.vv v11, v17, v18\n        vsseg4e32.v v8, (sp)\n        vle32.v v8, (sp)\n        vle32.v v9, (t1)\n        vle32.v v10, (t2)\n        vle32.v v11, (t3)\n        vadd.vv v16, v8, v10    # z0\n        addi    sp, sp, 4 * 4 * 4\n        vadd.vv v19, v9, v11    # z3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_dequant_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_dequant_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_dequant_rvv.S:2", "text": "addi    t1, sp, 4 * 4 * -3\n        vwadd.vv    v19, v10, v11   # z3\n        addi    t2, sp, 4 * 4 * -2\n        vwsub.vv    v17, v8, v9     # z1\n        addi    t3, sp, 4 * 4 * -1\n        vwsub.vv    v18, v10, v11   # z2\n        vsetvli zero, zero, e32, m1, ta, ma\n        vadd.vv v8, v16, v19\n        addi    sp, sp, 4 * 4 * -4\n        vsub.vv v9, v16, v19\n        vsub.vv v10, v17, v18\n        vadd.vv v11, v17, v18\n        vsseg4e32.v v8, (sp)\n        vle32.v v8, (sp)\n        vle32.v v9, (t1)\n        vle32.v v10, (t2)\n        vle32.v v11, (t3)\n        vadd.vv v16, v8, v10    # z0\n        addi    sp, sp, 4 * 4 * 4\n        vadd.vv v19, v9, v11    # z3\n        lla     t0, offsets_8\n        vsub.vv v17, v8, v10    # z1\n        vsub.vv v18, v9, v11    # z2\n        vadd.vv v8, v16, v19\n        vadd.vv v9, v17, v18\n        vsub.vv v10, v17, v18\n        vsub.vv v11, v16, v19\n        vle16.v v24, (t0)\n        vmul.vx v8, v8, a2\n        vmul.vx v9, v9, a2\n        vmul.vx v10, v10, a2\n        vmul.vx v11, v11, a2\n        vsetvli zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v16, v8, 8\n        addi    t1, a0, 2 * 16 * 1\n        vnclip.wi   v17, v9, 8\n        addi    t2, a0, 2 * 16 * 4\n        vnclip.wi   v18, v10, 8\n        addi    t3, a0, 2 * 16 * 5\n        vnclip.wi   v19, v11, 8\n        vsuxei16.v  v16, (a0), v24\n        vsuxei16.v  v17, (t1), v24\n        vsuxei16.v  v18, (t2), v24\n        vsuxei16.v  v19, (t3), v24\n        ret\nendfunc\n\nconst offsets_9, 1\n        .short 0, 128, 512, 640\nendconst\n\nfunc ff_h264_luma_dc_dequant_idct_9_rvv, zve32x\n        lpad   0\n        csrwi  vxrm, 0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vlseg4e32.v v8, (a1)\n        vadd.vv v16, v8, v9     # z0\n        addi    t1, sp, 4 * 4 * -3\n        vadd.vv v19, v10, v11   # z3\n        addi    t2, sp, 4 * 4 * -2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_dequant_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_dequant_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_dequant_rvv.S:3", "text": "vsuxei16.v  v16, (a0), v24\n        vsuxei16.v  v17, (t1), v24\n        vsuxei16.v  v18, (t2), v24\n        vsuxei16.v  v19, (t3), v24\n        ret\nendfunc\n\nconst offsets_9, 1\n        .short 0, 128, 512, 640\nendconst\n\nfunc ff_h264_luma_dc_dequant_idct_9_rvv, zve32x\n        lpad   0\n        csrwi  vxrm, 0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        vlseg4e32.v v8, (a1)\n        vadd.vv v16, v8, v9     # z0\n        addi    t1, sp, 4 * 4 * -3\n        vadd.vv v19, v10, v11   # z3\n        addi    t2, sp, 4 * 4 * -2\n        vsub.vv v17, v8, v9     # z1\n        addi    t3, sp, 4 * 4 * -1\n        vsub.vv v18, v10, v11   # z2\n        vadd.vv v8, v16, v19\n        addi    sp, sp, 4 * 4 * -4\n        vsub.vv v9, v16, v19\n        vsub.vv v10, v17, v18\n        vadd.vv v11, v17, v18\n        vsseg4e32.v v8, (sp)\n        vle32.v v8, (sp)\n        vle32.v v9, (t1)\n        vle32.v v10, (t2)\n        vle32.v v11, (t3)\n        vadd.vv v16, v8, v10    # z0\n        addi    sp, sp, 4 * 4 * 4\n        vadd.vv v19, v9, v11    # z3\n        lla     t0, offsets_9\n        vsub.vv v17, v8, v10    # z1\n        vsub.vv v18, v9, v11    # z2\n        vadd.vv v8, v16, v19\n        vadd.vv v9, v17, v18\n        vsub.vv v10, v17, v18\n        vsub.vv v11, v16, v19\n        vle16.v v24, (t0)\n        vmul.vx v8, v8, a2\n        vmul.vx v9, v9, a2\n        vmul.vx v10, v10, a2\n        vmul.vx v11, v11, a2\n        vssra.vi    v16, v8, 8\n        addi    t1, a0, 4 * 16 * 1\n        vssra.vi    v17, v9, 8\n        addi    t2, a0, 4 * 16 * 4\n        vssra.vi    v18, v10, 8\n        addi    t3, a0, 4 * 16 * 5\n        vssra.vi    v19, v11, 8\n        vsuxei16.v  v16, (a0), v24\n        vsuxei16.v  v17, (t1), v24\n        vsuxei16.v  v18, (t2), v24\n        vsuxei16.v  v19, (t3), v24\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_dequant_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_dequant_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_dequant_rvv.S:4", "text": "vadd.vv v9, v17, v18\n        vsub.vv v10, v17, v18\n        vsub.vv v11, v16, v19\n        vle16.v v24, (t0)\n        vmul.vx v8, v8, a2\n        vmul.vx v9, v9, a2\n        vmul.vx v10, v10, a2\n        vmul.vx v11, v11, a2\n        vssra.vi    v16, v8, 8\n        addi    t1, a0, 4 * 16 * 1\n        vssra.vi    v17, v9, 8\n        addi    t2, a0, 4 * 16 * 4\n        vssra.vi    v18, v10, 8\n        addi    t3, a0, 4 * 16 * 5\n        vssra.vi    v19, v11, 8\n        vsuxei16.v  v16, (a0), v24\n        vsuxei16.v  v17, (t1), v24\n        vsuxei16.v  v18, (t2), v24\n        vsuxei16.v  v19, (t3), v24\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_dequant_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_dequant_rvv.S", "line_start": 121, "line_end": 141}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_dequant_rvv.S:2", "text": "addi    t1, sp, 4 * 4 * -3\n        vwadd.vv    v19, v10, v11   # z3\n        addi    t2, sp, 4 * 4 * -2\n        vwsub.vv    v17, v8, v9     # z1\n        addi    t3, sp, 4 * 4 * -1\n        vwsub.vv    v18, v10, v11   # z2\n        vsetvli zero, zero, e32, m1, ta, ma\n        vadd.vv v8, v16, v19\n        addi    sp, sp, 4 * 4 * -4\n        vsub.vv v9, v16, v19\n        vsub.vv v10, v17, v18\n        vadd.vv v11, v17, v18\n        vsseg4e32.v v8, (sp)\n        vle32.v v8, (sp)\n        vle32.v v9, (t1)\n        vle32.v v10, (t2)\n        vle32.v v11, (t3)\n        vadd.vv v16, v8, v10    # z0\n        addi    sp, sp, 4 * 4 * 4\n        vadd.vv v19, v9, v11    # z3\n        lla     t0, offsets_8\n        vsub.vv v17, v8, v10    # z1\n        vsub.vv v18, v9, v11    # z2\n        vadd.vv v8, v16, v19\n        vadd.vv v9, v17, v18\n        vsub.vv v10, v17, v18\n        vsub.vv v11, v16, v19\n        vle16.v v24, (t0)\n        vmul.vx v8, v8, a2\n        vmul.vx v9, v9, a2\n        vmul.vx v10, v10, a2\n        vmul.vx v11, v11, a2\n        vsetvli zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v16, v8, 8\n        addi    t1, a0, 2 * 16 * 1\n        vnclip.wi   v17, v9, 8\n        addi    t2, a0, 2 * 16 * 4\n        vnclip.wi   v18, v10, 8\n        addi    t3, a0, 2 * 16 * 5\n        vnclip.wi   v19, v11, 8\n        vsuxei16.v  v16, (a0), v24\n        vsuxei16.v  v17, (t1), v24\n        vsuxei16.v  v18, (t2), v24\n        vsuxei16.v  v19, (t3), v24\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_dequant_rvv.S", "license": "LGPL-2.1", "commit": "d69a36a8d1ab9d3ff36669e10e73d695c226d353", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d69a36a8d1ab9d3ff36669e10e73d695c226d353/libavcodec/riscv/h264idct_dequant_rvv.S", "line_start": 41, "line_end": 86}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2024 J. Dekker <jdek@itanimul.li>\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n        .endm\n\n        .variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n.Lidct4_add_8_rvv:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:2", "text": ".variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n.Lidct4_add_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        t1, a1, 1 * 4 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 2\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vlseg4e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\nfunc ff_h264_idct_add_16_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct4_add_16_rvv:\n        vsetivli    zero, 4, e32, m1, ta, ma\n        addi        t1, a1, 1 * 4 * 4\n        vle32.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 4\n        vle32.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 4\n        vle32.v     v2, (t2)\n        vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vle32.v     v2, (t2)\n        vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v4, v0\n        vncvt.x.x.w v5, v1\n        vncvt.x.x.w v6, v2\n        vncvt.x.x.w v7, v3\n        vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "vncvt.x.x.w v7, v3\n        vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": "vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x, zba\n        csrwi   vxrm, 0\n.Lidct8_add_16_rvv:\n        li      a4, 8\n        vsetivli    a3, 8, e32, m1, ta, ma\n1:\n        addi    t1, a1, 1 * 8 * 4\n        vle32.v     v0, (a1)\n        addi    t2, a1, 2 * 8 * 4\n        vle32.v     v1, (t1)\n        addi    t3, a1, 3 * 8 * 4\n        vle32.v     v2, (t2)\n        addi    t4, a1, 4 * 8 * 4\n        vle32.v     v3, (t3)\n        addi    t5, a1, 5 * 8 * 4\n        vle32.v     v4, (t4)\n        addi    t6, a1, 6 * 8 * 4\n        vle32.v     v5, (t5)\n        addi    a7, a1, 7 * 8 * 4\n        vle32.v     v6, (t6)\n        sub     a4, a4, a3\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "addi    a7, a1, 7 * 8 * 4\n        vle32.v     v6, (t6)\n        sub     a4, a4, a3\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)\n        jal     t0, ff_h264_idct8_rvv\n        add     t1, a0, a2\n        vle16.v     v16, (a0)\n        add     t2, t1, a2\n        vle16.v     v17, (t1)\n        add     t3, t2, a2\n        vle16.v     v18, (t2)\n        add     t4, t3, a2\n        vle16.v     v19, (t3)\n        add     t5, t4, a2\n        vle16.v     v20, (t4)\n        add     t6, t5, a2\n        vle16.v     v21, (t5)\n        add     a7, t6, a2\n        vle16.v     v22, (t6)\n        sub     a4, a4, a3\n        vle16.v     v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4\n        vncvt.x.x.w v21, v5\n        vncvt.x.x.w v22, v6\n        vncvt.x.x.w v23, v7\n        vse16.v     v16, (a0)\n        sh1add  a0, a3, a0\n        vse16.v     v17, (t1)\n        vse16.v     v18, (t2)\n        vse16.v     v19, (t3)\n        vse16.v     v20, (t4)\n        vse16.v     v21, (t5)\n        vse16.v     v22, (t6)\n        vse16.v     v23, (a7)\n        bnez    a4, 2b\n\n        .equ    offset, 0\n        .rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x, b\n        lpad    0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n.endif\n        lh              t0, 0(a1)\n        li              t1, 255\n        addi            t0, t0, 32\n        srai            t0, t0, 6\n        sh              zero, 0(a1)\n.if \\width == 8\n        li              a6, \\width * \\width\n        vlse64.v        v24, (a0), a2\n        vsetvli         zero, a6, e8, m4, ta, ma\n.else\n        vlse32.v        v24, (a0), a2\n        vsetivli        zero, \\width * \\width, e8, m1, ta, ma\n.endif\n        bgez            t0, 1f\n\n        neg             t0, t0\n        minu            t0, t0, t1\n        vssubu.vx       v24, v24, t0\n .if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\n1:\n        minu            t0, t0, t1\n        vsaddu.vx       v24, v24, t0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "vsetivli        zero, \\width * \\width, e8, m1, ta, ma\n.endif\n        bgez            t0, 1f\n\n        neg             t0, t0\n        minu            t0, t0, t1\n        vssubu.vx       v24, v24, t0\n .if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\n1:\n        minu            t0, t0, t1\n        vsaddu.vx       v24, v24, t0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lw              t0, 0(a1)\n        addi            t0, t0, 32\n        srai            t0, t0, 6\n        sw              zero, 0(a1)\n        add             t1, a0, a2\n        sh1add          t2, a2, a0\n        sh1add          t3, a2, t1\n.if \\width == 8\n        sh2add          t4, a2, a0\n        sh2add          t5, a2, t1\n        sh2add          t6, a2, t2\n        sh2add          a7, a2, t3\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "addi            t0, t0, 32\n        srai            t0, t0, 6\n        sw              zero, 0(a1)\n        add             t1, a0, a2\n        sh1add          t2, a2, a0\n        sh1add          t3, a2, t1\n.if \\width == 8\n        sh2add          t4, a2, a0\n        sh2add          t5, a2, t1\n        sh2add          t6, a2, t2\n        sh2add          a7, a2, t3\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)\n        vle16.v         v7, (a7)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t1)\n        vse16.v         v2, (t2)\n        vse16.v         v3, (t3)\n.if \\width == 8\n        vse16.v         v4, (t4)\n        vse16.v         v5, (t5)\n        vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8, align=0\n        .byte    014,  015,  024,  025,  016,  017,  026,  027\n        .byte    034,  035,  044,  045,  036,  037,  046,  047\n        .byte    064,  065,  074,  075,  066,  067,  076,  077\n        .byte   0104, 0105, 0114, 0115, 0106, 0107, 0116, 0117\n        .byte   0134, 0135, 0144, 0145, 0136, 0137, 0146, 0147\n        .byte   0154, 0155, 0164, 0165, 0156, 0157, 0166, 0167\nendconst\n\n.macro  idct4_add16 type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        lla     t0, ff_h264_scan8\n        vsetivli  zero, 16, e8, m1, ta, ma\n.ifc \\type, 16intra\n.Lidct4_add4_\\depth\\()_rvv:\n.endif\n        li      t1, 32 * (\\depth / 8)\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vsetivli  zero, 16, e8, m1, ta, ma\n.ifc \\type, 16intra\n.Lidct4_add4_\\depth\\()_rvv:\n.endif\n        li      t1, 32 * (\\depth / 8)\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        zext.h  a4, a4\n        slli    a7, a7, 16\n        mv      t4, a0\n        or      a4, a4, a7\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        csrr    a3, vl\n        mv      a7, ra\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct4_add_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct4_add_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.macro idct4_add8 type, depth\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct4_add\\type\\()_\\depth\\()_rvv, zve32x\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        addi    sp, sp, -32\n        addi    a2, a2, 16 * 16 * 2 * (\\depth / 8)       # &block[16 * 16]\n        lla     t0, ff_h264_scan8 + 16\n        sd      s0,  0(sp)\n        sd      ra,  8(sp)\n        mv      s0, sp\n        sd      a0, 16(sp)\n        sd      a4, 24(sp)\n        ld      a0,  0(a0)                               # dest[0]\n        addi    a1, a1, 16 * 4                           # &block_offset[16]\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[32 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[32]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 32\n.ifc \\type, 8_422\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "sd      s0,  0(sp)\n        sd      ra,  8(sp)\n        mv      s0, sp\n        sd      a0, 16(sp)\n        sd      a4, 24(sp)\n        ld      a0,  0(a0)                               # dest[0]\n        addi    a1, a1, 16 * 4                           # &block_offset[16]\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[32 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[32]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 32\n.ifc \\type, 8_422\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (-12- 4) * 16 * 2 * (\\depth / 8) # &block[20 * 16]\n        addi    a1, t5, (-8 - 4) * 4                     # &block_offset[24]\n        ld      a0,  0(a0)                               # dest[0]\n        lla     t0, ff_h264_scan8 + 24\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[36 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[40]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 40\n.endif\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 32\n        vsetivli    zero, 4, e8, m1, ta, ma\n        j       .Lidct4_add4_\\depth\\()_rvv\nendfunc\n#endif\n.endm\n\n.irp    depth, 8, 16\nidct4_add16 16, \\depth\nidct4_add16 16intra, \\depth\nidct4_add8  8, \\depth\nidct4_add8  8_422, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "ld      s0,  0(sp)\n        addi    sp, sp, 32\n        vsetivli    zero, 4, e8, m1, ta, ma\n        j       .Lidct4_add4_\\depth\\()_rvv\nendfunc\n#endif\n.endm\n\n.irp    depth, 8, 16\nidct4_add16 16, \\depth\nidct4_add16 16intra, \\depth\nidct4_add8  8, \\depth\nidct4_add8  8_422, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:19", "text": "vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        bexti   t1, s2, 16\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:20", "text": "bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n\nfunc ff_h264_idct4_add8_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct4_add8_16_rvv\nendfunc\n\nfunc ff_h264_idct4_add8_422_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct4_add8_422_16_rvv\nendfunc\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264idct_rvv.S", "line_start": 761, "line_end": 807}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct4_add_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.macro idct4_add8 type, depth\nfunc ff_h264_idct4_add\\type\\()_\\depth\\()_rvv, zve32x\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        addi    sp, sp, -32\n        addi    a2, a2, 16 * 16 * 2 * (\\depth / 8)       # &block[16 * 16]\n        lla     t0, ff_h264_scan8 + 16\n        sd      s0,  0(sp)\n        sd      ra,  8(sp)\n        mv      s0, sp\n        sd      a0, 16(sp)\n        sd      a4, 24(sp)\n        ld      a0,  0(a0)                               # dest[0]\n        addi    a1, a1, 16 * 4                           # &block_offset[16]\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[32 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[32]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 32\n.ifc \\type, 8_422\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "bbb0fdedb78c289f1d3ce3fccb000f031ccfa748", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbb0fdedb78c289f1d3ce3fccb000f031ccfa748/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "sd      ra,  8(sp)\n        mv      s0, sp\n        sd      a0, 16(sp)\n        sd      a4, 24(sp)\n        ld      a0,  0(a0)                               # dest[0]\n        addi    a1, a1, 16 * 4                           # &block_offset[16]\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[32 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[32]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 32\n.ifc \\type, 8_422\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (-12- 4) * 16 * 2 * (\\depth / 8) # &block[20 * 16]\n        addi    a1, t5, (-8 - 4) * 4                     # &block_offset[24]\n        ld      a0,  0(a0)                               # dest[0]\n        lla     t0, ff_h264_scan8 + 24\n        vsetivli    zero, 4, e8, m1, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[36 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[40]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 40\n.endif\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 32\n        vsetivli    zero, 4, e8, m1, ta, ma\n        j       .Lidct4_add4_\\depth\\()_rvv\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_add16 16, \\depth\nidct4_add16 16intra, \\depth\nidct4_add8  8, \\depth\nidct4_add8  8_422, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "bbb0fdedb78c289f1d3ce3fccb000f031ccfa748", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbb0fdedb78c289f1d3ce3fccb000f031ccfa748/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "addi    sp, sp, 32\n        vsetivli    zero, 4, e8, m1, ta, ma\n        j       .Lidct4_add4_\\depth\\()_rvv\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_add16 16, \\depth\nidct4_add16 16intra, \\depth\nidct4_add8  8, \\depth\nidct4_add8  8_422, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "bbb0fdedb78c289f1d3ce3fccb000f031ccfa748", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbb0fdedb78c289f1d3ce3fccb000f031ccfa748/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:19", "text": "vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        bexti   t1, s2, 16\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "bbb0fdedb78c289f1d3ce3fccb000f031ccfa748", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbb0fdedb78c289f1d3ce3fccb000f031ccfa748/libavcodec/riscv/h264idct_rvv.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:20", "text": "ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n\nfunc ff_h264_idct4_add8_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct4_add8_16_rvv\nendfunc\n\nfunc ff_h264_idct4_add8_422_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct4_add8_422_16_rvv\nendfunc\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "bbb0fdedb78c289f1d3ce3fccb000f031ccfa748", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbb0fdedb78c289f1d3ce3fccb000f031ccfa748/libavcodec/riscv/h264idct_rvv.S", "line_start": 761, "line_end": 805}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct4_add_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.macro idct4_add8 type, depth\nfunc ff_h264_idct4_add\\type\\()_\\depth\\()_rvv, zve32x\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        addi    sp, sp, -32\n        addi    a2, a2, 16 * 16 * 2 * (\\depth / 8)       # &block[16 * 16]\n        lla     t0, ff_h264_scan8 + 16\n        sd      s0,  0(sp)\n        sd      ra,  8(sp)\n        mv      s0, sp\n        sd      a0, 16(sp)\n        sd      a4, 24(sp)\n        ld      a0,  0(a0)                               # dest[0]\n        addi    a1, a1, 16 * 4                           # &block_offset[16]\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[32 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[32]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 32\n.ifc \\type, 8_422\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "690c015758dcbf08dd53b95981a65ccb9687dfa4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/690c015758dcbf08dd53b95981a65ccb9687dfa4/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "sd      ra,  8(sp)\n        mv      s0, sp\n        sd      a0, 16(sp)\n        sd      a4, 24(sp)\n        ld      a0,  0(a0)                               # dest[0]\n        addi    a1, a1, 16 * 4                           # &block_offset[16]\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[32 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[32]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 32\n.ifc \\type, 8_422\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (-12- 4) * 16 * 2 * (\\depth / 8) # &block[20 * 16]\n        addi    a1, t5, (-8 - 4) * 4                     # &block_offset[24]\n        ld      a0,  0(a0)                               # dest[0]\n        lla     t0, ff_h264_scan8 + 24\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        jal     .Lidct4_add4_\\depth\\()_rvv\n\n        ld      a4, 24(sp)                               # nnzc\n        ld      a0, 16(sp)\n        mv      a3, a2                                   # stride\n        addi    a2, a1, (16 - 4) * 16 * 2 * (\\depth / 8) # &block[36 * 16]\n        addi    a1, t5, (16 - 4) * 4                     # &block_offset[40]\n        ld      a0,  8(a0)                               # dest[1]\n        lla     t0, ff_h264_scan8 + 40\n.endif\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 32\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        j       .Lidct4_add4_\\depth\\()_rvv\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_add16 16, \\depth\nidct4_add16 16intra, \\depth\nidct4_add8  8, \\depth\nidct4_add8  8_422, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "690c015758dcbf08dd53b95981a65ccb9687dfa4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/690c015758dcbf08dd53b95981a65ccb9687dfa4/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "addi    sp, sp, 32\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        j       .Lidct4_add4_\\depth\\()_rvv\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_add16 16, \\depth\nidct4_add16 16intra, \\depth\nidct4_add8  8, \\depth\nidct4_add8  8_422, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "690c015758dcbf08dd53b95981a65ccb9687dfa4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/690c015758dcbf08dd53b95981a65ccb9687dfa4/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte    014,  015,  024,  025,  016,  017,  026,  027\n        .byte    034,  035,  044,  045,  036,  037,  046,  047\n        .byte    064,  065,  074,  075,  066,  067,  076,  077\n        .byte   0104, 0105, 0114, 0115, 0106, 0107, 0116, 0117\n        .byte   0134, 0135, 0144, 0145, 0136, 0137, 0146, 0147\n        .byte   0154, 0155, 0164, 0165, 0156, 0157, 0166, 0167\nendconst\n\n.macro  idct4_add16 type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        lla     t0, ff_h264_scan8\n        vsetivli  zero, 16, e8, m1, ta, ma\n.ifc \\type, 16intra\n.Lidct4_add4_\\depth\\()_rvv:\n.endif\n        li      t1, 32 * (\\depth / 8)\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4edfc11a28ed763ba93e7cf8a656bb3e1b425c5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4edfc11a28ed763ba93e7cf8a656bb3e1b425c5d/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2024 J. Dekker <jdek@itanimul.li>\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n        .endm\n\n        .variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:2", "text": ".variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        t1, a1, 1 * 4 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 2\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vlseg4e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\nfunc ff_h264_idct_add_16_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_16_rvv:\n        vsetivli    zero, 4, e32, m1, ta, ma\n        addi        t1, a1, 1 * 4 * 4\n        vle32.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 4\n        vle32.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 4\n        vle32.v     v2, (t2)\n        vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        lla     t0, ff_h264_scan8\n        li      t1, 32 * (\\depth / 8)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        zext.h  a4, a4\n        slli    a7, a7, 16\n        mv      t4, a0\n        or      a4, a4, a7\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        li      a3, 16\n        mv      a7, ra\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": ".ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        bexti   t1, s2, 16\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b0b3bea10bab54f22f976245da343fb42c9c1f28", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b0b3bea10bab54f22f976245da343fb42c9c1f28/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 728}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x\n        lpad    0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n.endif\n        lh              t0, 0(a1)\n        addi            t0, t0, 32\n        srai            t0, t0, 6\n        sh              zero, 0(a1)\n.if \\width == 8\n        li              a6, \\width * \\width\n        vlse64.v        v24, (a0), a2\n        vsetvli         zero, a6, e16, m8, ta, ma\n.else\n        vlse32.v        v24, (a0), a2\n        vsetivli        zero, \\width * \\width, e16, m2, ta, ma\n.endif\n        vzext.vf2       v0, v24\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n.if \\width == 8\n        vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m1, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": ".endif\n        vzext.vf2       v0, v24\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n.if \\width == 8\n        vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m1, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lw              t0, 0(a1)\n        addi            t0, t0, 32\n        srai            t0, t0, 6\n        sw              zero, 0(a1)\n        add             t1, a0, a2\n        sh1add          t2, a2, a0\n        sh1add          t3, a2, t1\n.if \\width == 8\n        sh2add          t4, a2, a0\n        sh2add          t5, a2, t1\n        sh2add          t6, a2, t2\n        sh2add          a7, a2, t3\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)\n        vle16.v         v7, (a7)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "sh2add          t5, a2, t1\n        sh2add          t6, a2, t2\n        sh2add          a7, a2, t3\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)\n        vle16.v         v7, (a7)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t1)\n        vse16.v         v2, (t2)\n        vse16.v         v3, (t3)\n.if \\width == 8\n        vse16.v         v4, (t4)\n        vse16.v         v5, (t5)\n        vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "idct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        lpad    0\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi   vxrm, 0\n        lla     t0, ff_h264_scan8\n        li      t1, 32 * (\\depth / 8)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        zext.h  a4, a4\n        slli    a7, a7, 16\n        mv      t4, a0\n        or      a4, a4, a7\n        mv      t5, a1\n        mv      a1, a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        zext.h  a4, a4\n        slli    a7, a7, 16\n        mv      t4, a0\n        or      a4, a4, a7\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        li      a3, 16\n        mv      a7, ra\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\n#if (__riscv_xlen == 64)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": ".ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n.if \\depth == 8\n        lpad    0\n.endif\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": ".else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        bexti   t1, s2, 16\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        lpad    0\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 720}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2024 J. Dekker <jdek@itanimul.li>\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n        .endm\n\n        .variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:2", "text": ".variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        t1, a1, 1 * 4 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 2\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vlseg4e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\nfunc ff_h264_idct_add_16_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_16_rvv:\n        vsetivli    zero, 4, e32, m1, ta, ma\n        addi        t1, a1, 1 * 4 * 4\n        vle32.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 4\n        vle32.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 4\n        vle32.v     v2, (t2)\n        vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v4, v0\n        vncvt.x.x.w v5, v1\n        vncvt.x.x.w v6, v2\n        vncvt.x.x.w v7, v3\n        vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": "vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x, zba\n        csrwi   vxrm, 0\n.Lidct8_add_16_rvv:\n        li      a4, 8\n        vsetivli    a3, 8, e32, m1, ta, ma\n1:\n        addi    t1, a1, 1 * 8 * 4\n        vle32.v     v0, (a1)\n        addi    t2, a1, 2 * 8 * 4\n        vle32.v     v1, (t1)\n        addi    t3, a1, 3 * 8 * 4\n        vle32.v     v2, (t2)\n        addi    t4, a1, 4 * 8 * 4\n        vle32.v     v3, (t3)\n        addi    t5, a1, 5 * 8 * 4\n        vle32.v     v4, (t4)\n        addi    t6, a1, 6 * 8 * 4\n        vle32.v     v5, (t5)\n        addi    a7, a1, 7 * 8 * 4\n        vle32.v     v6, (t6)\n        sub     a4, a4, a3\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "sub     a4, a4, a3\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)\n        jal     t0, ff_h264_idct8_rvv\n        add     t1, a0, a2\n        vle16.v     v16, (a0)\n        add     t2, t1, a2\n        vle16.v     v17, (t1)\n        add     t3, t2, a2\n        vle16.v     v18, (t2)\n        add     t4, t3, a2\n        vle16.v     v19, (t3)\n        add     t5, t4, a2\n        vle16.v     v20, (t4)\n        add     t6, t5, a2\n        vle16.v     v21, (t5)\n        add     a7, t6, a2\n        vle16.v     v22, (t6)\n        sub     a4, a4, a3\n        vle16.v     v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4\n        vncvt.x.x.w v21, v5\n        vncvt.x.x.w v22, v6\n        vncvt.x.x.w v23, v7\n        vse16.v     v16, (a0)\n        sh1add  a0, a3, a0\n        vse16.v     v17, (t1)\n        vse16.v     v18, (t2)\n        vse16.v     v19, (t3)\n        vse16.v     v20, (t4)\n        vse16.v     v21, (t5)\n        vse16.v     v22, (t6)\n        vse16.v     v23, (a7)\n        bnez    a4, 2b\n\n        .equ    offset, 0\n        .rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x\n.if \\width == 8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n.endif\n        lh              t0, 0(a1)\n        addi            t0, t0, 32\n        srai            t0, t0, 6\n        sh              zero, 0(a1)\n.if \\width == 8\n        li              a6, \\width * \\width\n        vlse64.v        v24, (a0), a2\n        vsetvli         zero, a6, e16, m8, ta, ma\n.else\n        vlse32.v        v24, (a0), a2\n        vsetivli        zero, \\width * \\width, e16, m2, ta, ma\n.endif\n        vzext.vf2       v0, v24\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n.if \\width == 8\n        vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m1, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m1, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lw              t0, 0(a1)\n        addi            t0, t0, 32\n        srai            t0, t0, 6\n        sw              zero, 0(a1)\n        add             t1, a0, a2\n        sh1add          t2, a2, a0\n        sh1add          t3, a2, t1\n.if \\width == 8\n        sh2add          t4, a2, a0\n        sh2add          t5, a2, t1\n        sh2add          t6, a2, t2\n        sh2add          a7, a2, t3\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)\n        vle16.v         v7, (a7)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)\n        vle16.v         v7, (a7)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t1)\n        vse16.v         v2, (t2)\n        vse16.v         v3, (t3)\n.if \\width == 8\n        vse16.v         v4, (t4)\n        vse16.v         v5, (t5)\n        vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x, b\n        csrwi   vxrm, 0\n        lla     t0, ff_h264_scan8\n        li      t1, 32 * (\\depth / 8)\n        vsetivli  zero, 16, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x, b\n        csrwi   vxrm, 0\n        lla     t0, ff_h264_scan8\n        li      t1, 32 * (\\depth / 8)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        zext.h  a4, a4\n        slli    a7, a7, 16\n        mv      t4, a0\n        or      a4, a4, a7\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        li      a3, 16\n        mv      a7, ra\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": ".endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        zext.h  a4, a4\n        slli    a7, a7, 16\n        mv      t4, a0\n        or      a4, a4, a7\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        li      a3, 16\n        mv      a7, ra\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        bexti   t1, a4, 16\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a4, a4, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        mv      ra, a7\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "mv      ra, a7\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x, b\n        csrwi       vxrm, 0\n        addi    sp, sp, -48\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s4, 32(sp)\n        sd      s5, 40(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        bexti   t1, s2, 16\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   a7, v1\n        zext.h  s2, s2\n        slli    a7, a7, 16\n        li      s1, 4\n        or      s2, s2, a7\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        bexti   t1, s2, 16\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s2, s2, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 40(sp)\n        ld      s4, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "addi    sp, sp, 48\n        ret\nendfunc\n#endif\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\n#if (__riscv_xlen == 64)\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "b62586e31019a7654c65c1a4758d59c1b0e754ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b62586e31019a7654c65c1a4758d59c1b0e754ad/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 704}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "vle16.v         v1, (t1)\n        vle16.v         v2, (t2)\n        vle16.v         v3, (t3)\n.if \\width == 8\n        vle16.v         v4, (t4)\n        vle16.v         v5, (t5)\n        vle16.v         v6, (t6)\n        vle16.v         v7, (a7)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, t0\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t1)\n        vse16.v         v2, (t2)\n        vse16.v         v3, (t3)\n.if \\width == 8\n        vse16.v         v4, (t4)\n        vse16.v         v5, (t5)\n        vse16.v         v6, (t6)\n        vse16.v         v7, (a7)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -16\n        lla     t0, ff_h264_scan8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -16\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        mv      t4, a0\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        li      a3, 16\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n        srli    a4, a4, 1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   a4, v0\n        vmv.x.s   a7, v1\n        mv      t4, a0\n        mv      t5, a1\n        mv      a1, a2\n        mv      a2, a3\n        li      a3, 16\n1:\n        andi    t0, a4, 1\n        addi    a3, a3, -1\n        srli    a4, a4, 1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (t5)   # block_offset[i]\n        andi    t1, a7, 1\n        add     a0, t4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    a7, a7, 1\n        addi    t5, t5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    a3, 1b\n\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 16\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -64\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "bnez    a3, 1b\n\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 16\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -64\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        add     a0, s4, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 64\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 64\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 705}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x\n        csrwi   vxrm, 0\n.Lidct8_add_16_rvv:\n        li      a4, 8\n        vsetivli    a3, 8, e32, m1, ta, ma\n1:\n        addi    t1, a1, 1 * 8 * 4\n        vle32.v     v0, (a1)\n        addi    t2, a1, 2 * 8 * 4\n        vle32.v     v1, (t1)\n        addi    t3, a1, 3 * 8 * 4\n        vle32.v     v2, (t2)\n        addi    t4, a1, 4 * 8 * 4\n        vle32.v     v3, (t3)\n        addi    t5, a1, 5 * 8 * 4\n        vle32.v     v4, (t4)\n        addi    t6, a1, 6 * 8 * 4\n        vle32.v     v5, (t5)\n        addi    a7, a1, 7 * 8 * 4\n        vle32.v     v6, (t6)\n        sub     a4, a4, a3\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "9135dffd177d457a8a1781b9e6c6d400648165cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9135dffd177d457a8a1781b9e6c6d400648165cb/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n.endif\n        lh              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sh              zero, 0(a1)\n.if \\width == 8\n        li              a6, \\width * \\width\n        vlse64.v        v24, (a0), a2\n        vsetvli         zero, a6, e16, m8, ta, ma\n.else\n        vlse32.v        v24, (a0), a2\n        vsetivli        zero, \\width * \\width, e16, m2, ta, ma\n.endif\n        vzext.vf2       v0, v24\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n.if \\width == 8\n        vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m1, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m1, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n.if \\width == 8\n        vsetivli        zero, \\width, e8, mf2, ta, ma\n        vsse64.v        v24, (a0), a2\n.else\n        vsetivli        zero, \\width, e8, mf4, ta, ma\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lw              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sw              zero, 0(a1)\n        add             t4, a0, a2\n        sh1add          t5, a2, a0\n        sh1add          t6, a2, t4\n.if \\width == 8\n        sh2add          t0, a2, a0\n        sh2add          t1, a2, t4\n        sh2add          t2, a2, t5\n        sh2add          t3, a2, t6\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t4)\n        vle16.v         v2, (t5)\n        vle16.v         v3, (t6)\n.if \\width == 8\n        vle16.v         v4, (t0)\n        vle16.v         v5, (t1)\n        vle16.v         v6, (t2)\n        vle16.v         v7, (t3)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "vle16.v         v1, (t4)\n        vle16.v         v2, (t5)\n        vle16.v         v3, (t6)\n.if \\width == 8\n        vle16.v         v4, (t0)\n        vle16.v         v5, (t1)\n        vle16.v         v6, (t2)\n        vle16.v         v7, (t3)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t4)\n        vse16.v         v2, (t5)\n        vse16.v         v3, (t6)\n.if \\width == 8\n        vse16.v         v4, (t0)\n        vse16.v         v5, (t1)\n        vse16.v         v6, (t2)\n        vse16.v         v7, (t3)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -64\n        lla     t0, ff_h264_scan8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -64\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        add     a0, s4, t2\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n        jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 64\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "jal     ff_h264_idct4_dc_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    a1, a1, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 64\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -64\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      a1, a2\n        mv      a2, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        add     a0, s4, t2\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n.if \\depth == 8\n        j       3f\n.else\n        j       4f        # idct8_add_16 updates a1\n.endif\n2:\n        jal     ff_h264_idct8_dc_add_\\depth\\()_rvv\n3:\n        addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 64\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "addi    a1, a1, 4 * 16 * 2 * (\\depth / 8)\n4:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        bnez    s1, 1b\n\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 64\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "245f76ad74519c0f2a2f82d74041eb48c72d7eba", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/245f76ad74519c0f2a2f82d74041eb48c72d7eba/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 715}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "vle16.v         v1, (t4)\n        vle16.v         v2, (t5)\n        vle16.v         v3, (t6)\n.if \\width == 8\n        vle16.v         v4, (t0)\n        vle16.v         v5, (t1)\n        vle16.v         v6, (t2)\n        vle16.v         v7, (t3)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t4)\n        vse16.v         v2, (t5)\n        vse16.v         v3, (t6)\n.if \\width == 8\n        vse16.v         v4, (t0)\n        vse16.v         v5, (t1)\n        vse16.v         v6, (t2)\n        vse16.v         v7, (t3)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "mv      a5, s8\n.endif\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": ".endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": ".endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n        j       3f\n2:\n.if \\depth == 8\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:19", "text": ".if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct8_dc_add_\\depth\\()_c\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "0a5b5bae89ecf87a8fa79ae2f133ed926927b98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a5b5bae89ecf87a8fa79ae2f133ed926927b98b/libavcodec/riscv/h264idct_rvv.S", "line_start": 721, "line_end": 759}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4\n        vncvt.x.x.w v21, v5\n        vncvt.x.x.w v22, v6\n        vncvt.x.x.w v23, v7\n        vse16.v     v16, (a0)\n        sh1add  a0, a3, a0\n        vse16.v     v17, (t1)\n        vse16.v     v18, (t2)\n        vse16.v     v19, (t3)\n        vse16.v     v20, (t4)\n        vse16.v     v21, (t5)\n        vse16.v     v22, (t6)\n        vse16.v     v23, (a7)\n        bnez    a4, 2b\n\n        .equ    offset, 0\n        .rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x, zba\n.if \\width == 8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\n.macro idct_dc_add8 width\nfunc ff_h264_idct\\width\\()_dc_add_8_rvv, zve64x, zba\n.if \\width == 8\n        vsetivli        zero, \\width, e16, m1, ta, ma\n.else\n        vsetivli        zero, \\width, e16, mf2, ta, ma\n.endif\n        lh              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sh              zero, 0(a1)\n.if \\width == 8\n        vlse64.v        v24, (a0), a2\n        vsetvli         t0, zero, e16, m8, ta, ma\n.else\n        vlse32.v        v24, (a0), a2\n        vsetvli         t0, zero, e16, m4, ta, ma\n.endif\n        vzext.vf2       v0, v24\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n.if \\width == 8\n        vsetvli         zero, zero, e8, m4, ta, ma\n.else\n        vsetvli         zero, zero, e8, m2, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n        vsetivli        zero, \\width, e8, m1, ta, ma\n.if \\width == 8\n        vsse64.v        v24, (a0), a2\n.else\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n        vsetivli        zero, \\width, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": ".else\n        vsetvli         zero, zero, e8, m2, ta, ma\n.endif\n        vnclipu.wi      v24, v0, 0\n        vsetivli        zero, \\width, e8, m1, ta, ma\n.if \\width == 8\n        vsse64.v        v24, (a0), a2\n.else\n        vsse32.v        v24, (a0), a2\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add8 4\nidct_dc_add8 8\n\n.macro idct_dc_add width\nfunc ff_h264_idct\\width\\()_dc_add_16_rvv, zve64x, zba\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        lw              a3, 0(a1)\n        addi            a3, a3, 32\n        srai            a3, a3, 6\n        sw              zero, 0(a1)\n        add             t4, a0, a2\n        sh1add          t5, a2, a0\n        sh1add          t6, a2, t4\n.if \\width == 8\n        sh2add          t0, a2, a0\n        sh2add          t1, a2, t4\n        sh2add          t2, a2, t5\n        sh2add          t3, a2, t6\n.endif\n        vle16.v         v0, (a0)\n        vle16.v         v1, (t4)\n        vle16.v         v2, (t5)\n        vle16.v         v3, (t6)\n.if \\width == 8\n        vle16.v         v4, (t0)\n        vle16.v         v5, (t1)\n        vle16.v         v6, (t2)\n        vle16.v         v7, (t3)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t4)\n        vse16.v         v2, (t5)\n        vse16.v         v3, (t6)\n.if \\width == 8\n        vse16.v         v4, (t0)\n        vse16.v         v5, (t1)\n        vse16.v         v6, (t2)\n        vse16.v         v7, (t3)\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "vle16.v         v6, (t2)\n        vle16.v         v7, (t3)\n        vsetvli         a6, zero, e16, m8, ta, ma\n.else\n        vsetvli         a6, zero, e16, m4, ta, ma\n.endif\n        vadd.vx         v0, v0, a3\n        vmax.vx         v0, v0, zero\n        vmin.vx         v0, v0, a5\n        vsetivli        zero, \\width, e16, m1, ta, ma\n        vse16.v         v0, (a0)\n        vse16.v         v1, (t4)\n        vse16.v         v2, (t5)\n        vse16.v         v3, (t6)\n.if \\width == 8\n        vse16.v         v4, (t0)\n        vse16.v         v5, (t1)\n        vse16.v         v6, (t2)\n        vse16.v         v7, (t3)\n.endif\n        ret\nendfunc\n.endm\n\nidct_dc_add 4\nidct_dc_add 8\n\n.irp depth,9,10,12,14\nfunc ff_h264_idct4_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct4_dc_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_dc_add_\\depth\\()_rvv, zve64x\n        li              a5, (1 << \\depth) - 1\n        j               ff_h264_idct8_dc_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": ".byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": ".ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n        j       3f\n2:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n        j       3f\n2:\n.if \\depth == 8\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16intra_16_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:19", "text": "ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct8_dc_add_\\depth\\()_c\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c9dc2ad09bd53ccb43e86216b13117c334efb6f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9dc2ad09bd53ccb43e86216b13117c334efb6f0/libavcodec/riscv/h264idct_rvv.S", "line_start": 721, "line_end": 749}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n        .endm\n\n        .variant_cc ff_h264_idct4_rvv\nfunc ff_h264_idct4_rvv, zve32x\n        vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        t1, a1, 1 * 4 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:2", "text": "vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        t1, a1, 1 * 4 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 2\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vlseg4e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   256 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\nfunc ff_h264_idct_add_16_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_16_rvv:\n        vsetivli    zero, 4, e32, m1, ta, ma\n        addi        t1, a1, 1 * 4 * 4\n        vle32.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 4\n        vle32.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 4\n        vle32.v     v2, (t2)\n        vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v4, v0\n        vncvt.x.x.w v5, v1\n        vncvt.x.x.w v6, v2\n        vncvt.x.x.w v7, v3\n        vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": ".equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x\n        csrwi   vxrm, 0\n.Lidct8_add_16_rvv:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x\n        csrwi   vxrm, 0\n.Lidct8_add_16_rvv:\n        li      a4, 8\n        vsetivli    a3, 8, e32, m1, ta, ma\n1:\n        addi    t1, a1, 1 * 8 * 4\n        vle32.v     v0, (a1)\n        addi    t2, a1, 2 * 8 * 4\n        vle32.v     v1, (t1)\n        addi    t3, a1, 3 * 8 * 4\n        vle32.v     v2, (t2)\n        addi    t4, a1, 4 * 8 * 4\n        vle32.v     v3, (t3)\n        addi    t5, a1, 5 * 8 * 4\n        vle32.v     v4, (t4)\n        addi    t6, a1, 6 * 8 * 4\n        vle32.v     v5, (t5)\n        addi    a7, a1, 7 * 8 * 4\n        vle32.v     v6, (t6)\n        sub     a4, a4, a3\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)\n        jal     t0, ff_h264_idct8_rvv\n        add     t1, a0, a2\n        vle16.v     v16, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "vse32.v     v0, (a1)\n        sh2add  a1, a3, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a3, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)\n        jal     t0, ff_h264_idct8_rvv\n        add     t1, a0, a2\n        vle16.v     v16, (a0)\n        add     t2, t1, a2\n        vle16.v     v17, (t1)\n        add     t3, t2, a2\n        vle16.v     v18, (t2)\n        add     t4, t3, a2\n        vle16.v     v19, (t3)\n        add     t5, t4, a2\n        vle16.v     v20, (t4)\n        add     t6, t5, a2\n        vle16.v     v21, (t5)\n        add     a7, t6, a2\n        vle16.v     v22, (t6)\n        sub     a4, a4, a3\n        vle16.v     v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a5\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4\n        vncvt.x.x.w v21, v5\n        vncvt.x.x.w v22, v6\n        vncvt.x.x.w v23, v7\n        vse16.v     v16, (a0)\n        sh1add  a0, a3, a0\n        vse16.v     v17, (t1)\n        vse16.v     v18, (t2)\n        vse16.v     v19, (t3)\n        vse16.v     v20, (t4)\n        vse16.v     v21, (t5)\n        vse16.v     v22, (t6)\n        vse16.v     v23, (a7)\n        bnez    a4, 2b\n\n        .equ    offset, 0\n        .rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": "endfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.macro  idct4_adds type, depth\nfunc ff_h264_idct_add\\type\\()_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n.ifc \\type, 16\n        vmseq.vi  v2, v12, 1\n.endif\n        vmsne.vi  v0, v12, 0\n.ifc \\type, 16\n        vmand.mm  v1, v1, v2\n.endif\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n.ifc \\type, 16\n        beqz    t0, 3f     # if (nnz)\n.endif\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n.ifc \\type, 16\n        bnez    t1, 2f     # if (nnz == 1 && block[i * 16])\n.else\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n.endif\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.ifnc \\type, 16\n        beqz    t1, 3f    # if (block[i * 16])\n.endif\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endm\n\n.irp    depth, 8, 16\nidct4_adds 16, \\depth\nidct4_adds 16intra, \\depth\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n        j       3f\n2:\n.if \\depth == 8\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct8_dc_add_\\depth\\()_c\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d15169c51fd5bc6ea768c83977315954bf583e57", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d15169c51fd5bc6ea768c83977315954bf583e57/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 644}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": "endfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8, 16\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": ".endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 * (\\depth / 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        jal     .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n.if \\depth == 8\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -96\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 * (\\depth / 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n.if \\depth > 8\n        sd      s8, 72(sp)\n        sd      s9, 80(sp)\n        mv      s8, a5\n        mv      s9, a6\n.endif\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n.if \\depth == 8\n        vlse16.v  v16, (a2), t1\n.else\n        vlse32.v  v16, (a2), t1\n.endif\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:17", "text": "vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n.if \\depth > 8\n        mv      a5, s8\n.endif\n        bnez    t1, 2f    # if (nnz == 1 && block[i * 16])\n        jal     .Lidct8_add_\\depth\\()_rvv\n        j       3f\n2:\n.if \\depth == 8\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n.else\n        jalr    s9\n.endif\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 * (\\depth / 8)\n        bnez    s1, 1b\n\n.if \\depth > 8\n        ld      s9, 80(sp)\n        ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:18", "text": "ld      s8, 72(sp)\n.endif\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 96\n        ret\nendfunc\n.endr\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16_16_rvv\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct_dc_add_\\depth\\()_c\n        j       ff_h264_idct_add16intra_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        li      a5, (1 << \\depth) - 1\n        lla     a6, ff_h264_idct8_dc_add_\\depth\\()_c\n        j       ff_h264_idct8_add4_16_rvv\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "483fd732abc3eda80681811250cd4d2937ade265", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/483fd732abc3eda80681811250cd4d2937ade265/libavcodec/riscv/h264idct_rvv.S", "line_start": 681, "line_end": 716}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\nfunc ff_h264_idct_add_16_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e32, m1, ta, ma\n        addi        t1, a1, 1 * 4 * 4\n        vle32.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 4\n        vle32.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 4\n        vle32.v     v2, (t2)\n        vle32.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse32.v     v0, (a1)\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3\n        vmin.vx     v\\n, v\\n, a3\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v4, v0\n        vncvt.x.x.w v5, v1\n        vncvt.x.x.w v6, v2\n        vncvt.x.x.w v7, v3\n        vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": ".rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x\n        li      a4, 8\n        csrwi   vxrm, 0\n        vsetivli    a5, 8, e32, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nfunc ff_h264_idct8_add_16_rvv, zve32x\n        li      a4, 8\n        csrwi   vxrm, 0\n        vsetivli    a5, 8, e32, m1, ta, ma\n1:\n        addi    t1, a1, 1 * 8 * 4\n        vle32.v     v0, (a1)\n        addi    t2, a1, 2 * 8 * 4\n        vle32.v     v1, (t1)\n        addi    t3, a1, 3 * 8 * 4\n        vle32.v     v2, (t2)\n        addi    t4, a1, 4 * 8 * 4\n        vle32.v     v3, (t3)\n        addi    t5, a1, 5 * 8 * 4\n        vle32.v     v4, (t4)\n        addi    t6, a1, 6 * 8 * 4\n        vle32.v     v5, (t5)\n        addi    a7, a1, 7 * 8 * 4\n        vle32.v     v6, (t6)\n        sub     a4, a4, a5\n        vle32.v     v7, (a7)\n        jal     t0, ff_h264_idct8_rvv\n        vse32.v     v0, (a1)\n        sh2add  a1, a5, a1\n        vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a5, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)\n        jal     t0, ff_h264_idct8_rvv\n        add     t1, a0, a2\n        vle16.v     v16, (a0)\n        add     t2, t1, a2\n        vle16.v     v17, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "vse32.v     v1, (t1)\n        vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vse32.v     v4, (t4)\n        vse32.v     v5, (t5)\n        vse32.v     v6, (t6)\n        vse32.v     v7, (a7)\n        bnez    a4, 1b\n\n        addi    a1, a1, -8 * 4\n        li      a4, 8\n        slli    a6, a5, 3 + 2\n2:\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vlseg8e32.v v0, (a1)\n        jal     t0, ff_h264_idct8_rvv\n        add     t1, a0, a2\n        vle16.v     v16, (a0)\n        add     t2, t1, a2\n        vle16.v     v17, (t1)\n        add     t3, t2, a2\n        vle16.v     v18, (t2)\n        add     t4, t3, a2\n        vle16.v     v19, (t3)\n        add     t5, t4, a2\n        vle16.v     v20, (t4)\n        add     t6, t5, a2\n        vle16.v     v21, (t5)\n        add     a7, t6, a2\n        vle16.v     v22, (t6)\n        sub     a4, a4, a5\n        vle16.v     v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        add     a1, a6, a1\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a3\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4\n        vncvt.x.x.w v21, v5\n        vncvt.x.x.w v22, v6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3,4,5,6,7\n        vmin.vx     v\\n, v\\n, a3\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v16, v0\n        vncvt.x.x.w v17, v1\n        vncvt.x.x.w v18, v2\n        vncvt.x.x.w v19, v3\n        vncvt.x.x.w v20, v4\n        vncvt.x.x.w v21, v5\n        vncvt.x.x.w v22, v6\n        vncvt.x.x.w v23, v7\n        vse16.v     v16, (a0)\n        sh1add  a0, a5, a0\n        vse16.v     v17, (t1)\n        vse16.v     v18, (t2)\n        vse16.v     v19, (t3)\n        vse16.v     v20, (t4)\n        vse16.v     v21, (t5)\n        vse16.v     v22, (t6)\n        vse16.v     v23, (a7)\n        bnez    a4, 2b\n\n        .equ    offset, 0\n        .rept   2048 / __riscv_xlen\n        sx      zero, offset - 8 * 8 * 4(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a3, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a3, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a3, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n\nfunc ff_h264_idct8_add_\\depth\\()_rvv, zve32x\n        li      a3, (1 << \\depth) - 1\n        j       ff_h264_idct8_add_16_rvv\nendfunc\n.endr\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": ".else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:14", "text": "li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:15", "text": "csrwi       vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct8_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:16", "text": "beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct8_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "c654e37254efb6de5d3f1355dd7936979dd0dca3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c654e37254efb6de5d3f1355dd7936979dd0dca3/libavcodec/riscv/h264idct_rvv.S", "line_start": 601, "line_end": 631}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vse32.v     v2, (t2)\n        vse32.v     v3, (t3)\n        vlseg4e32.v v0, (a1)\n        .equ    offset, 0\n        .rept   512 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle16.v     v4, (a0)\n        add         t2, t1, a2\n        vle16.v     v5, (t1)\n        add         t3, t2, a2\n        vle16.v     v6, (t2)\n        vle16.v     v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e32, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        .irp    n,0,1,2,3\n        vmin.vx     v\\n, v\\n, a3\n        .endr\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vncvt.x.x.w v4, v0\n        vncvt.x.x.w v5, v1\n        vncvt.x.x.w v6, v2\n        vncvt.x.x.w v7, v3\n        vse16.v     v4, (a0)\n        vse16.v     v5, (t1)\n        vse16.v     v6, (t2)\n        vse16.v     v7, (t3)\n        ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a3, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n.endr\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "ret\nendfunc\n\n.irp    depth, 9, 10, 12, 14\nfunc ff_h264_idct_add_\\depth\\()_rvv, zve32x\n        li      a3, (1 << \\depth) - 1\n        j       ff_h264_idct_add_16_rvv\nendfunc\n.endr\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": "vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": ".irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": ".if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:13", "text": "vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct8_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "4e0e872881ff57f1953517067cf82d7ea925b432", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e0e872881ff57f1953517067cf82d7ea925b432/libavcodec/riscv/h264idct_rvv.S", "line_start": 481, "line_end": 522}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .equ    offset, 0\n        .rept   1024 / __riscv_xlen\n        sx      zero, offset(a1)\n        .equ    offset, offset + (__riscv_xlen / 8)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": "const ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": "sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct8_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 459}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d28a7e8eb7eb2cb2efcc9c8e9d506cdddcae0a26/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 459}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:2", "text": "vsra.vi v5, v1, 1\n        vsra.vi v7, v3, 1\n        vadd.vv v8, v0, v2   # z0\n        vsub.vv v9, v0, v2   # z1\n        vsub.vv v10, v5, v3  # z2\n        vadd.vv v11, v1, v7  # z3\n        vadd.vv v1, v9, v10\n        vsub.vv v2, v9, v10\n        vadd.vv v0, v8, v11\n        vsub.vv v3, v8, v11\n        jr      t0\nendfunc\n\nfunc ff_h264_idct_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct_add4_8_rvv:\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        t1, a1, 1 * 4 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 4 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 4 * 2\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        jal         t0, ff_h264_idct4_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vlseg4e16.v v0, (a1)\n        .rept   256 / __riscv_xlen\n        sx      zero, ((__riscv_xlen / 8) * \\+)(a1)\n        .endr\n        jal         t0, ff_h264_idct4_rvv\n        add         t1, a0, a2\n        vle8.v      v4, (a0)\n        add         t2, t1, a2\n        vle8.v      v5, (t1)\n        add         t3, t2, a2\n        vle8.v      v6, (t2)\n        vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\n        .variant_cc ff_h264_idct8_rvv\nfunc ff_h264_idct8_rvv, zve32x\n        vsra.vi v9, v7, 1\n        vsra.vi v11, v3, 1\n        vsra.vi v12, v2, 1\n        vsra.vi v13, v5, 1\n        vsra.vi v14, v6, 1\n        vsra.vi v15, v1, 1\n        vadd.vv v9, v3, v9\n        vsub.vv v11, v1, v11\n        vsub.vv v13, v13, v1\n        vadd.vv v15, v3, v15\n        vsub.vv v9, v5, v9\n        vadd.vv v11, v11, v7\n        vadd.vv v13, v13, v7\n        vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vadd.vv v15, v15, v5\n        vadd.vv v8, v0, v4      # a0\n        vsub.vv v9, v9, v7      # a1\n        vsub.vv v10, v0, v4     # a2\n        vsub.vv v11, v11, v3    # a3\n        vsub.vv v12, v12, v6    # a4\n        vadd.vv v13, v13, v5    # a5\n        vadd.vv v14, v14, v2    # a6\n        vadd.vv v15, v15, v1    # a7\n        vsra.vi v7, v9, 2\n        vsra.vi v5, v11, 2\n        vsra.vi v3, v13, 2\n        vsra.vi v1, v15, 2\n        vadd.vv v0, v8, v14     # b0\n        vadd.vv v6, v10, v12    # b2\n        vsub.vv v2, v10, v12    # b4\n        vsub.vv v4, v8, v14     # b6\n        vsub.vv v8, v15, v7     # b7\n        vsub.vv v14, v5, v13    # b5\n        vadd.vv v12, v1, v9     # b1\n        vadd.vv v10, v11, v3    # b3\n        vadd.vv v1, v6, v14\n        vsub.vv v6, v6, v14\n        vsub.vv v7, v0, v8\n        vadd.vv v0, v0, v8\n        vsub.vv v5, v2, v10\n        vadd.vv v2, v2, v10\n        vadd.vv v3, v4, v12\n        vsub.vv v4, v4, v12\n        jr      t0\nendfunc\n\nfunc ff_h264_idct8_add_8_rvv, zve32x\n        csrwi       vxrm, 0\n.Lidct8_add_8_rvv:\n        vsetivli    zero, 8, e16, m1, ta, ma\n        addi        t1, a1, 1 * 8 * 2\n        vle16.v     v0, (a1)\n        addi        t2, a1, 2 * 8 * 2\n        vle16.v     v1, (t1)\n        addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "addi        t3, a1, 3 * 8 * 2\n        vle16.v     v2, (t2)\n        addi        t4, a1, 4 * 8 * 2\n        vle16.v     v3, (t3)\n        addi        t5, a1, 5 * 8 * 2\n        vle16.v     v4, (t4)\n        addi        t6, a1, 6 * 8 * 2\n        vle16.v     v5, (t5)\n        addi        a7, a1, 7 * 8 * 2\n        vle16.v     v6, (t6)\n        vle16.v     v7, (a7)\n        jal         t0, ff_h264_idct8_rvv\n        vse16.v     v0, (a1)\n        vse16.v     v1, (t1)\n        vse16.v     v2, (t2)\n        vse16.v     v3, (t3)\n        vse16.v     v4, (t4)\n        vse16.v     v5, (t5)\n        vse16.v     v6, (t6)\n        vse16.v     v7, (a7)\n        vlseg8e16.v v0, (a1)\n        .rept   1024 / __riscv_xlen\n        sx      zero, ((__riscv_xlen / 8) * \\+)(a1)\n        .endr\n        jal         t0, ff_h264_idct8_rvv\n        add         t1, a0, a2\n        vle8.v      v16, (a0)\n        add         t2, t1, a2\n        vle8.v      v17, (t1)\n        add         t3, t2, a2\n        vle8.v      v18, (t2)\n        add         t4, t3, a2\n        vle8.v      v19, (t3)\n        add         t5, t4, a2\n        vle8.v      v20, (t4)\n        add         t6, t5, a2\n        vle8.v      v21, (t5)\n        add         a7, t6, a2\n        vle8.v      v22, (t6)\n        vle8.v      v23, (a7)\n        .irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": ".irp    n,0,1,2,3,4,5,6,7\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v16\n        vwaddu.wv   v1, v1, v17\n        vwaddu.wv   v2, v2, v18\n        vwaddu.wv   v3, v3, v19\n        vwaddu.wv   v4, v4, v20\n        vwaddu.wv   v5, v5, v21\n        vwaddu.wv   v6, v6, v22\n        vwaddu.wv   v7, v7, v23\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v16, v0, 0\n        vnclipu.wi  v17, v1, 0\n        vnclipu.wi  v18, v2, 0\n        vnclipu.wi  v19, v3, 0\n        vnclipu.wi  v20, v4, 0\n        vnclipu.wi  v21, v5, 0\n        vnclipu.wi  v22, v6, 0\n        vnclipu.wi  v23, v7, 0\n        vse8.v      v16, (a0)\n        vse8.v      v17, (t1)\n        vse8.v      v18, (t2)\n        vse8.v      v19, (t3)\n        vse8.v      v20, (t4)\n        vse8.v      v21, (t5)\n        vse8.v      v22, (t6)\n        vse8.v      v23, (a7)\n        ret\nendfunc\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": "#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:9", "text": "mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:10", "text": "j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        csrwi       vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:11", "text": "vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct8_add_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 401, "line_end": 455}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:12", "text": "ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f9d1230224c0012c1731634910e65a0ff734d1ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f9d1230224c0012c1731634910e65a0ff734d1ef/libavcodec/riscv/h264idct_rvv.S", "line_start": 441, "line_end": 455}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "vle8.v      v7, (t3)\n        .irp    n,0,1,2,3\n        vssra.vi    v\\n, v\\n, 6\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vse8.v      v4, (a0)\n        vse8.v      v5, (t1)\n        vse8.v      v6, (t2)\n        vse8.v      v7, (t3)\n        ret\nendfunc\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f447189b0c8067edf54a16c8c6d5513b2de77276", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f447189b0c8067edf54a16c8c6d5513b2de77276/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f447189b0c8067edf54a16c8c6d5513b2de77276", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f447189b0c8067edf54a16c8c6d5513b2de77276/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    .Lidct_add4_\\depth\\()_rvv\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        csrwi   vxrm, 0\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f447189b0c8067edf54a16c8c6d5513b2de77276", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f447189b0c8067edf54a16c8c6d5513b2de77276/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    .Lidct_add4_\\depth\\()_rvv\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f447189b0c8067edf54a16c8c6d5513b2de77276", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f447189b0c8067edf54a16c8c6d5513b2de77276/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:7", "text": "ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f447189b0c8067edf54a16c8c6d5513b2de77276", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f447189b0c8067edf54a16c8c6d5513b2de77276/libavcodec/riscv/h264idct_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:8", "text": "vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    ff_h264_idct8_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "f447189b0c8067edf54a16c8c6d5513b2de77276", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f447189b0c8067edf54a16c8c6d5513b2de77276/libavcodec/riscv/h264idct_rvv.S", "line_start": 281, "line_end": 323}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nconst ff_h264_scan8\n        .byte   014, 015, 024, 025, 016, 017, 026, 027\n        .byte   034, 035, 044, 045, 036, 037, 046, 047\nendconst\n\n#if (__riscv_xlen == 64)\n.irp    depth, 8\nfunc ff_h264_idct_add16_\\depth\\()_rvv, zve32x\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "e0eff64ed1e60d14391d55a91732ec612abf3f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0eff64ed1e60d14391d55a91732ec612abf3f64/libavcodec/riscv/h264idct_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:2", "text": "mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    ff_h264_idct_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "e0eff64ed1e60d14391d55a91732ec612abf3f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0eff64ed1e60d14391d55a91732ec612abf3f64/libavcodec/riscv/h264idct_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    ff_h264_idct_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct_add16intra_\\depth\\()_rvv, zve32x\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 32 << (\\depth > 8)\n        mv      s0, sp\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 16, e8, m1, ta, ma\n        vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "e0eff64ed1e60d14391d55a91732ec612abf3f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0eff64ed1e60d14391d55a91732ec612abf3f64/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    ff_h264_idct_add_\\depth\\()_c\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "e0eff64ed1e60d14391d55a91732ec612abf3f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0eff64ed1e60d14391d55a91732ec612abf3f64/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:5", "text": "ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n\nfunc ff_h264_idct8_add4_\\depth\\()_rvv, zve32x\n        addi    sp, sp, -80\n        lla     t0, ff_h264_scan8\n        sd      s0,   (sp)\n        li      t1, 4 * 32 << (\\depth > 8)\n        mv      s0, sp\n        li      t2, 4\n        sd      ra,  8(sp)\n        sd      s1, 16(sp)\n        sd      s2, 24(sp)\n        sd      s3, 32(sp)\n        sd      s4, 40(sp)\n        sd      s5, 48(sp)\n        sd      s6, 56(sp)\n        sd      s7, 64(sp)\n        vsetivli  zero, 4, e8, mf4, ta, ma\n        vlse8.v   v8, (t0), t2\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, mf2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m1, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, mf4, ta, ma\n        vmseq.vi  v2, v12, 1\n        vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "e0eff64ed1e60d14391d55a91732ec612abf3f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0eff64ed1e60d14391d55a91732ec612abf3f64/libavcodec/riscv/h264idct_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:6", "text": "vmsne.vi  v0, v12, 0\n        vmand.mm  v1, v1, v2\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 4\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        beqz    t0, 3f     # if (nnz)\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct8_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    ff_h264_idct8_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4 * 4\n        addi    s6, s6, 4 * 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "e0eff64ed1e60d14391d55a91732ec612abf3f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0eff64ed1e60d14391d55a91732ec612abf3f64/libavcodec/riscv/h264idct_rvv.S", "line_start": 201, "line_end": 244}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:4", "text": "vle8.v    v8, (t0)\n        vlse16.v  v16, (a2), t1\n        vluxei8.v v12, (a4), v8\n.if \\depth == 8\n        vsetvli   zero, zero, e16, m2, ta, ma\n.else\n        vsetvli   zero, zero, e32, m4, ta, ma\n.endif\n        vmsne.vi  v1, v16, 0\n        vsetvli   zero, zero, e8, m1, ta, ma\n        vmsne.vi  v0, v12, 0\n        vsetvli   zero, zero, e16, m2, ta, ma\n        vmv.x.s   s2, v0\n        vmv.x.s   s3, v1\n        li      s1, 16\n        mv      s4, a0\n        mv      s5, a1\n        mv      s6, a2\n        mv      s7, a3\n1:\n        andi    t0, s2, 1\n        addi    s1, s1, -1\n        srli    s2, s2, 1\n        lw      t2, (s5)   # block_offset[i]\n        andi    t1, s3, 1\n        mv      a1, s6\n        mv      a2, s7\n        add     a0, s4, t2\n        beqz    t0, 2f     # if (nnzc[scan8[i]])\n        call    ff_h264_idct_add_\\depth\\()_c\n        j       3f\n2:\n        beqz    t1, 3f    # if (block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "d1f0c1fbf8db8dffd514c706905a2a8b8e986cb4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d1f0c1fbf8db8dffd514c706905a2a8b8e986cb4/libavcodec/riscv/h264idct_rvv.S", "line_start": 121, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264idct_rvv.S:3", "text": "add     a0, s4, t2\n        beqz    t1, 2f    # if (nnz == 1 && block[i * 16])\n        call    ff_h264_idct_dc_add_\\depth\\()_c\n        j       3f\n2:\n        call    ff_h264_idct_add_\\depth\\()_c\n3:\n        srli    s3, s3, 1\n        addi    s5, s5, 4\n        addi    s6, s6, 16 * 2 << (\\depth > 8)\n        bnez    s1, 1b\n\n        ld      s7, 64(sp)\n        ld      s6, 56(sp)\n        ld      s5, 48(sp)\n        ld      s4, 40(sp)\n        ld      s3, 32(sp)\n        ld      s2, 24(sp)\n        ld      s1, 16(sp)\n        ld      ra,  8(sp)\n        ld      s0,  0(sp)\n        addi    sp, sp, 80\n        ret\nendfunc\n.endr\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264idct_rvv.S", "license": "LGPL-2.1", "commit": "30475c95ba50d40cf7605cb382bfd7852c825deb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30475c95ba50d40cf7605cb382bfd7852c825deb/libavcodec/riscv/h264idct_rvv.S", "line_start": 81, "line_end": 106}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2024 Niklas Haas\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro  lx rd, addr\n#if (__riscv_xlen == 32)\n        lw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        ld      \\rd, \\addr\n#else\n        lq      \\rd, \\addr\n#endif\n.endm\n\n.macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n.endm\n\n#define XSZ            (__riscv_xlen / 8)\n#define STACK_ALIGN(x) (((x) + 15) & ~15)\n\n        /* output is unclipped; clobbers v26-v31 plus t0 and t02 */\n.macro lowpass_h         vdst, src\n        addi             t4, \\src, 3\n        lbu              t5, 2(\\src)\n        vle8.v           v31, (t4)\n        lbu              t4, 1(\\src)\n        vslide1up.vx     v30, v31, t5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:2", "text": ".macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n.endm\n\n#define XSZ            (__riscv_xlen / 8)\n#define STACK_ALIGN(x) (((x) + 15) & ~15)\n\n        /* output is unclipped; clobbers v26-v31 plus t0 and t02 */\n.macro lowpass_h         vdst, src\n        addi             t4, \\src, 3\n        lbu              t5, 2(\\src)\n        vle8.v           v31, (t4)\n        lbu              t4, 1(\\src)\n        vslide1up.vx     v30, v31, t5\n        lbu              t5, 0(\\src)\n        vslide1up.vx     v29, v30, t4\n        lbu              t4, -1(\\src)\n        vslide1up.vx     v28, v29, t5\n        lbu              t5, -2(\\src)\n        vslide1up.vx     v27, v28, t4\n        vslide1up.vx     v26, v27, t5\n        vwaddu.vv        \\vdst, v26, v31\n        vwmaccu.vx       \\vdst, t6, v28\n        vwmaccu.vx       \\vdst, t6, v29\n        vwmaccsu.vx      \\vdst, a7, v27\n        vwmaccsu.vx      \\vdst, a7, v30\n.endm\n\n        /* output is unclipped */\n.macro lowpass_v         vdst, vsrc0, vsrc1, vsrc2, vsrc3, vsrc4, vsrc5, signed=0\n    .if \\signed\n        vwadd.vv         \\vdst, \\vsrc0, \\vsrc5\n        vwmacc.vx        \\vdst, t6, \\vsrc2\n        vwmacc.vx        \\vdst, t6, \\vsrc3\n        vwmacc.vx        \\vdst, a7, \\vsrc1\n        vwmacc.vx        \\vdst, a7, \\vsrc4\n    .else\n        vwaddu.vv        \\vdst, \\vsrc0, \\vsrc5\n        vwmaccu.vx       \\vdst, t6, \\vsrc2\n        vwmaccu.vx       \\vdst, t6, \\vsrc3\n        vwmaccsu.vx      \\vdst, a7, \\vsrc1\n        vwmaccsu.vx      \\vdst, a7, \\vsrc4\n    .endif\n.endm\n\n.macro qpel_mc00         op, dst, src, stride, size\nfunc ff_\\op\\()_h264_qpel_pixels, zve32x\n1:      add              t1, a2, a1\n        add              t2, a2, t1\n        add              t3, a2, t2\n        vle8.v           v0, (a1)\n        vle8.v           v1, (t1)\n        vle8.v           v2, (t2)\n        vle8.v           v3, (t3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:3", "text": "vwmacc.vx        \\vdst, a7, \\vsrc1\n        vwmacc.vx        \\vdst, a7, \\vsrc4\n    .else\n        vwaddu.vv        \\vdst, \\vsrc0, \\vsrc5\n        vwmaccu.vx       \\vdst, t6, \\vsrc2\n        vwmaccu.vx       \\vdst, t6, \\vsrc3\n        vwmaccsu.vx      \\vdst, a7, \\vsrc1\n        vwmaccsu.vx      \\vdst, a7, \\vsrc4\n    .endif\n.endm\n\n.macro qpel_mc00         op, dst, src, stride, size\nfunc ff_\\op\\()_h264_qpel_pixels, zve32x\n1:      add              t1, a2, a1\n        add              t2, a2, t1\n        add              t3, a2, t2\n        vle8.v           v0, (a1)\n        vle8.v           v1, (t1)\n        vle8.v           v2, (t2)\n        vle8.v           v3, (t3)\n        addi             a4, a4, -4\n        add              a1, a2, t3\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v4, (a0)\n        vle8.v           v5, (t1)\n        vle8.v           v6, (t2)\n        vle8.v           v7, (t3)\n        vaaddu.vv        v0, v0, v4\n        vaaddu.vv        v1, v1, v5\n        vaaddu.vv        v2, v2, v6\n        vaaddu.vv        v3, v3, v7\n    .endif\n        vse8.v           v0, (a0)\n        vse8.v           v1, (t1)\n        vse8.v           v2, (t2)\n        vse8.v           v3, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n.endm\n\n        qpel_mc00        put, a0, a1, a2, a4\n        qpel_mc00        avg, a0, a1, a2, a4\n\n.macro qpel_lowpass      op, ext, lmul, lmul2\nfunc ff_\\op\\()_h264_qpel_h_lowpass_\\lmul\\ext, zve32x\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        lowpass_h        v0, a1\n        lowpass_h        v2, t1\n        lowpass_h        v4, t2\n        lowpass_h        v6, t3\n        add              a1, a3, t3\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:4", "text": "bnez             a4, 1b\n        jr               t0\nendfunc\n.endm\n\n        qpel_mc00        put, a0, a1, a2, a4\n        qpel_mc00        avg, a0, a1, a2, a4\n\n.macro qpel_lowpass      op, ext, lmul, lmul2\nfunc ff_\\op\\()_h264_qpel_h_lowpass_\\lmul\\ext, zve32x\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        lowpass_h        v0, a1\n        lowpass_h        v2, t1\n        lowpass_h        v4, t2\n        lowpass_h        v6, t3\n        add              a1, a3, t3\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v0, v0, zero\n        vmax.vx          v2, v2, zero\n        vmax.vx          v4, v4, zero\n        vmax.vx          v6, v6, zero\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v0, v0, 5\n        vnclipu.wi       v2, v2, 5\n        vnclipu.wi       v4, v4, 5\n        vnclipu.wi       v6, v6, 5\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2\n        vle8.v           v8,  (a5)\n        vle8.v           v10, (t1)\n        vle8.v           v12, (t2)\n        vle8.v           v14, (t3)\n        add              a5, a2, t3\n        vaaddu.vv        v0, v0, v8\n        vaaddu.vv        v2, v2, v10\n        vaaddu.vv        v4, v4, v12\n        vaaddu.vv        v6, v6, v14\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v1, (a0)\n        vle8.v           v3, (t1)\n        vle8.v           v5, (t2)\n        vle8.v           v7, (t3)\n        vaaddu.vv        v0, v0, v1\n        vaaddu.vv        v2, v2, v3\n        vaaddu.vv        v4, v4, v5\n        vaaddu.vv        v6, v6, v7\n    .endif\n        vse8.v           v0, (a0)\n        vse8.v           v2, (t1)\n        vse8.v           v4, (t2)\n        vse8.v           v6, (t3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:5", "text": "vaaddu.vv        v4, v4, v12\n        vaaddu.vv        v6, v6, v14\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v1, (a0)\n        vle8.v           v3, (t1)\n        vle8.v           v5, (t2)\n        vle8.v           v7, (t3)\n        vaaddu.vv        v0, v0, v1\n        vaaddu.vv        v2, v2, v3\n        vaaddu.vv        v4, v4, v5\n        vaaddu.vv        v6, v6, v7\n    .endif\n        vse8.v           v0, (a0)\n        vse8.v           v2, (t1)\n        vse8.v           v4, (t2)\n        vse8.v           v6, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n\nfunc ff_\\op\\()_h264_qpel_v_lowpass_\\lmul\\ext, zve32x\n        sub              t1, a1, a3\n        sub              t2, t1,   a3\n        vle8.v           v2, (a1)\n        vle8.v           v1, (t1)\n        vle8.v           v0, (t2)\n        add              t1, a1, a3\n        add              t2,   t1, a3\n        add              a1, t2, a3\n        vle8.v           v3, (t1)\n        vle8.v           v4, (t2)\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        vle8.v           v5, (a1)\n        vle8.v           v6, (t1)\n        vle8.v           v7, (t2)\n        vle8.v           v8, (t3)\n        add              a1, a3, t3\n        lowpass_v        v24, v0, v1, v2, v3, v4, v5\n        lowpass_v        v26, v1, v2, v3, v4, v5, v6\n        lowpass_v        v28, v2, v3, v4, v5, v6, v7\n        lowpass_v        v30, v3, v4, v5, v6, v7, v8\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v24, v24, zero\n        vmax.vx          v26, v26, zero\n        vmax.vx          v28, v28, zero\n        vmax.vx          v30, v30, zero\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v24, v24, 5\n        vnclipu.wi       v26, v26, 5\n        vnclipu.wi       v28, v28, 5\n        vnclipu.wi       v30, v30, 5\n    .ifc \\ext, _l2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:6", "text": "vle8.v           v6, (t1)\n        vle8.v           v7, (t2)\n        vle8.v           v8, (t3)\n        add              a1, a3, t3\n        lowpass_v        v24, v0, v1, v2, v3, v4, v5\n        lowpass_v        v26, v1, v2, v3, v4, v5, v6\n        lowpass_v        v28, v2, v3, v4, v5, v6, v7\n        lowpass_v        v30, v3, v4, v5, v6, v7, v8\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v24, v24, zero\n        vmax.vx          v26, v26, zero\n        vmax.vx          v28, v28, zero\n        vmax.vx          v30, v30, zero\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v24, v24, 5\n        vnclipu.wi       v26, v26, 5\n        vnclipu.wi       v28, v28, 5\n        vnclipu.wi       v30, v30, 5\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2\n        vle8.v           v9, (a5)\n        vle8.v           v10, (t1)\n        vle8.v           v11, (t2)\n        vle8.v           v12, (t3)\n        add              a5, a6, t3\n        vaaddu.vv        v24, v24, v9\n        vaaddu.vv        v26, v26, v10\n        vaaddu.vv        v28, v28, v11\n        vaaddu.vv        v30, v30, v12\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v9, (a0)\n        vle8.v           v10, (t1)\n        vle8.v           v11, (t2)\n        vle8.v           v12, (t3)\n        vaaddu.vv        v24, v24, v9\n        vaaddu.vv        v26, v26, v10\n        vaaddu.vv        v28, v28, v11\n        vaaddu.vv        v30, v30, v12\n    .endif\n        vse8.v           v24, (a0)\n        vse8.v           v26, (t1)\n        vse8.v           v28, (t2)\n        vse8.v           v30, (t3)\n        add              a0, a2, t3\n        vmv.v.v          v0, v4\n        vmv.v.v          v1, v5\n        vmv.v.v          v2, v6\n        vmv.v.v          v3, v7\n        vmv.v.v          v4, v8\n        bnez             a4, 1b\n        jr               t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:7", "text": "vle8.v           v12, (t3)\n        vaaddu.vv        v24, v24, v9\n        vaaddu.vv        v26, v26, v10\n        vaaddu.vv        v28, v28, v11\n        vaaddu.vv        v30, v30, v12\n    .endif\n        vse8.v           v24, (a0)\n        vse8.v           v26, (t1)\n        vse8.v           v28, (t2)\n        vse8.v           v30, (t3)\n        add              a0, a2, t3\n        vmv.v.v          v0, v4\n        vmv.v.v          v1, v5\n        vmv.v.v          v2, v6\n        vmv.v.v          v3, v7\n        vmv.v.v          v4, v8\n        bnez             a4, 1b\n        jr               t0\nendfunc\n\nfunc ff_\\op\\()_h264_qpel_hv_lowpass_\\lmul\\ext, zve32x\n        sub              t1, a1, a3\n        sub              t2, t1,   a3\n        lowpass_h        v4, a1\n        lowpass_h        v2, t1\n        lowpass_h        v0, t2\n        add              t1, a1, a3\n        add              t2,   t1, a3\n        add              a1, t2, a3\n        lowpass_h        v6, t1\n        lowpass_h        v8, t2\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        lowpass_h        v10, a1\n        lowpass_h        v12, t1\n        lowpass_h        v14, t2\n        lowpass_h        v16, t3\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        addi             a4, a4, -4\n        lowpass_v        v20, v0, v2,  v4,  v6,  v8, v10, signed=1\n        lowpass_v        v24, v2, v4,  v6,  v8, v10, v12, signed=1\n        lowpass_v        v28, v4, v6,  v8, v10, v12, v14, signed=1\n        vnclip.wi        v0, v20, 10\n        lowpass_v        v20, v6, v8, v10, v12, v14, v16, signed=1\n        vnclip.wi        v2, v24, 10\n        vnclip.wi        v4, v28, 10\n        vnclip.wi        v6, v20, 10\n        vmax.vx          v18, v0, zero\n        vmax.vx          v20, v2, zero\n        vmax.vx          v22, v4, zero\n        vmax.vx          v24, v6, zero\n        vmv.v.v          v0, v8\n        vmv.v.v          v2, v10\n        vmv.v.v          v4, v12\n        vmv.v.v          v6, v14\n        vmv.v.v          v8, v16\n        add              a1, a3, t3\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v18, v18, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:8", "text": "lowpass_v        v20, v0, v2,  v4,  v6,  v8, v10, signed=1\n        lowpass_v        v24, v2, v4,  v6,  v8, v10, v12, signed=1\n        lowpass_v        v28, v4, v6,  v8, v10, v12, v14, signed=1\n        vnclip.wi        v0, v20, 10\n        lowpass_v        v20, v6, v8, v10, v12, v14, v16, signed=1\n        vnclip.wi        v2, v24, 10\n        vnclip.wi        v4, v28, 10\n        vnclip.wi        v6, v20, 10\n        vmax.vx          v18, v0, zero\n        vmax.vx          v20, v2, zero\n        vmax.vx          v22, v4, zero\n        vmax.vx          v24, v6, zero\n        vmv.v.v          v0, v8\n        vmv.v.v          v2, v10\n        vmv.v.v          v4, v12\n        vmv.v.v          v6, v14\n        vmv.v.v          v8, v16\n        add              a1, a3, t3\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v18, v18, 0\n        vnclipu.wi       v20, v20, 0\n        vnclipu.wi       v22, v22, 0\n        vnclipu.wi       v24, v24, 0\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2\n        vle8.v           v26, (a5)\n        vle8.v           v27, (t1)\n        vle8.v           v28, (t2)\n        vle8.v           v29, (t3)\n        add              a5, a6, t3\n        vaaddu.vv        v18, v18, v26\n        vaaddu.vv        v20, v20, v27\n        vaaddu.vv        v22, v22, v28\n        vaaddu.vv        v24, v24, v29\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v26, (a0)\n        vle8.v           v27, (t1)\n        vle8.v           v28, (t2)\n        vle8.v           v29, (t3)\n        vaaddu.vv        v18, v18, v26\n        vaaddu.vv        v20, v20, v27\n        vaaddu.vv        v22, v22, v28\n        vaaddu.vv        v24, v24, v29\n    .endif\n        vse8.v           v18, (a0)\n        vse8.v           v20, (t1)\n        vse8.v           v22, (t2)\n        vse8.v           v24, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:9", "text": ".ifc \\op, avg\n        vle8.v           v26, (a0)\n        vle8.v           v27, (t1)\n        vle8.v           v28, (t2)\n        vle8.v           v29, (t3)\n        vaaddu.vv        v18, v18, v26\n        vaaddu.vv        v20, v20, v27\n        vaaddu.vv        v22, v22, v28\n        vaaddu.vv        v24, v24, v29\n    .endif\n        vse8.v           v18, (a0)\n        vse8.v           v20, (t1)\n        vse8.v           v22, (t2)\n        vse8.v           v24, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n.endm\n\n/* Note: We could possibly specialize for the width 8 / width 4 cases by\n   loading 32 bit integers, but this makes the convolutions more complicated\n   to implement, so it's not necessarily any faster. */\n\n.macro h264_qpel         lmul, lmul2\n        qpel_lowpass     put,    , \\lmul, \\lmul2\n        qpel_lowpass     put, _l2, \\lmul, \\lmul2\n        qpel_lowpass     avg,    , \\lmul, \\lmul2\n        qpel_lowpass     avg, _l2, \\lmul, \\lmul2\n.endm\n\n        h264_qpel        m1,  m2\n        h264_qpel        mf2, m1\n        h264_qpel        mf4, mf2\n        h264_qpel        mf8, mf4\n\n.macro h264_qpel_1pass   op, case, lmul, size, ext=rvv, dir, offset\nfunc ff_\\op\\()_h264_qpel\\size\\()_\\case\\()_\\ext, zve32x\n        lpad             0\n        vsetivli         zero, \\size, e8, \\lmul, ta, ma\n        csrwi            vxrm, 0\n        li               a4, \\size\n        li               t6, 20\n        li               a7, -5\n        mv               a3, a2\n        mv               t0, ra\n.ifnb \\offset\n    .ifc \\dir, v\n        add              a5, a1, \\offset\n    .else\n        addi             a5, a1, \\offset\n    .endif\n        mv               a6, a3\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()_l2\n.else\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()\n.endif\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:10", "text": "csrwi            vxrm, 0\n        li               a4, \\size\n        li               t6, 20\n        li               a7, -5\n        mv               a3, a2\n        mv               t0, ra\n.ifnb \\offset\n    .ifc \\dir, v\n        add              a5, a1, \\offset\n    .else\n        addi             a5, a1, \\offset\n    .endif\n        mv               a6, a3\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()_l2\n.else\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()\n.endif\nendfunc\n.endm\n\n.macro h264_qpel_2pass   op, case, lmul, size, ext=rvv, dir1, dir2, off1=0, off2\nfunc ff_\\op\\()_h264_qpel\\size\\()_\\case\\()_\\ext, zve32x\n        lpad             0\n        vsetivli         zero, \\size, e8, \\lmul, ta, ma\n        csrwi            vxrm, 0\n        addi             sp, sp, -STACK_ALIGN(2 * XSZ + \\size * \\size)\n        li               a4, \\size\n        li               t6, 20\n        li               a7, -5\n        sx               a0,    (sp)\n        sx               a1, XSZ(sp)\n    .ifc \\off1, a2\n        add              a1, a1, \\off1\n    .elseif \\off1\n        addi             a1, a1, \\off1\n    .endif\n        mv               a3, a2\n    .ifc \\op, avg\n        // Use temporary array on stack for the first pass\n        addi             a0, sp, 2 * XSZ\n        li               a2, \\size\n    .endif\n        jal              t0, ff_put_h264_qpel_\\dir1\\()_lowpass_\\lmul\n        lx               a0,    (sp)\n        lx               a1, XSZ(sp)\n    .ifc \\op, put\n        // Directly reuse the first pass output buffer\n        mv               a5, a0\n        mv               a6, a2\n    .else\n        addi             a5, sp, 2 * XSZ\n        li               a6, \\size\n        mv               a2, a3\n    .endif\n    .ifnb \\off2\n        addi             a1, a1, \\off2\n    .endif\n        li               a4, \\size\n        mv               t0, ra\n        addi             sp, sp, STACK_ALIGN(2 * XSZ + \\size * \\size)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:11", "text": "li               a2, \\size\n    .endif\n        jal              t0, ff_put_h264_qpel_\\dir1\\()_lowpass_\\lmul\n        lx               a0,    (sp)\n        lx               a1, XSZ(sp)\n    .ifc \\op, put\n        // Directly reuse the first pass output buffer\n        mv               a5, a0\n        mv               a6, a2\n    .else\n        addi             a5, sp, 2 * XSZ\n        li               a6, \\size\n        mv               a2, a3\n    .endif\n    .ifnb \\off2\n        addi             a1, a1, \\off2\n    .endif\n        li               a4, \\size\n        mv               t0, ra\n        addi             sp, sp, STACK_ALIGN(2 * XSZ + \\size * \\size)\n        j                ff_\\op\\()_h264_qpel_\\dir2\\()_lowpass_\\lmul\\()_l2\nendfunc\n.endm\n\n.macro ff_h264_qpel_fns  op, lmul, size, ext=rvv\nfunc ff_\\op\\()_h264_qpel\\size\\()_mc00_\\ext, zve32x\n        lpad             0\n        vsetivli         zero, \\size, e8, \\lmul, ta, ma\n        csrwi            vxrm, 0\n        li               a4, \\size\n        mv               t0, ra\n        j                ff_\\op\\()_h264_qpel_pixels\nendfunc\n\n        h264_qpel_1pass  \\op, mc20, \\lmul, \\size, \\ext, h\n        h264_qpel_1pass  \\op, mc02, \\lmul, \\size, \\ext, v\n        h264_qpel_1pass  \\op, mc10, \\lmul, \\size, \\ext, h, 0\n        h264_qpel_1pass  \\op, mc30, \\lmul, \\size, \\ext, h, 1\n        h264_qpel_1pass  \\op, mc01, \\lmul, \\size, \\ext, v, zero\n        h264_qpel_1pass  \\op, mc03, \\lmul, \\size, \\ext, v, a2\n        h264_qpel_1pass  \\op, mc22, \\lmul, \\size, \\ext, hv\n\n        h264_qpel_2pass  \\op, mc11, \\lmul, \\size, \\ext, h, v\n        h264_qpel_2pass  \\op, mc21, \\lmul, \\size, \\ext, h, hv\n        h264_qpel_2pass  \\op, mc12, \\lmul, \\size, \\ext, v, hv\n        h264_qpel_2pass  \\op, mc31, \\lmul, \\size, \\ext, h, v, off2=1\n        h264_qpel_2pass  \\op, mc13, \\lmul, \\size, \\ext, h, v, a2\n        h264_qpel_2pass  \\op, mc33, \\lmul, \\size, \\ext, h, v, a2, 1\n        h264_qpel_2pass  \\op, mc23, \\lmul, \\size, \\ext, h, hv, a2\n        h264_qpel_2pass  \\op, mc32, \\lmul, \\size, \\ext, v, hv, 1\n.endm\n\n        ff_h264_qpel_fns put, mf2, 16, rvv256\n        ff_h264_qpel_fns put, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns put, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns avg, mf2, 16, rvv256\n        ff_h264_qpel_fns avg, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns avg, mf8, 4,  rvv256 */", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:12", "text": "h264_qpel_1pass  \\op, mc22, \\lmul, \\size, \\ext, hv\n\n        h264_qpel_2pass  \\op, mc11, \\lmul, \\size, \\ext, h, v\n        h264_qpel_2pass  \\op, mc21, \\lmul, \\size, \\ext, h, hv\n        h264_qpel_2pass  \\op, mc12, \\lmul, \\size, \\ext, v, hv\n        h264_qpel_2pass  \\op, mc31, \\lmul, \\size, \\ext, h, v, off2=1\n        h264_qpel_2pass  \\op, mc13, \\lmul, \\size, \\ext, h, v, a2\n        h264_qpel_2pass  \\op, mc33, \\lmul, \\size, \\ext, h, v, a2, 1\n        h264_qpel_2pass  \\op, mc23, \\lmul, \\size, \\ext, h, hv, a2\n        h264_qpel_2pass  \\op, mc32, \\lmul, \\size, \\ext, v, hv, 1\n.endm\n\n        ff_h264_qpel_fns put, mf2, 16, rvv256\n        ff_h264_qpel_fns put, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns put, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns avg, mf2, 16, rvv256\n        ff_h264_qpel_fns avg, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns avg, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns put, m1,  16, rvv\n        ff_h264_qpel_fns put, mf2, 8,  rvv\n        ff_h264_qpel_fns put, mf4, 4,  rvv\n\n        ff_h264_qpel_fns avg, m1,  16, rvv\n        ff_h264_qpel_fns avg, mf2, 8,  rvv\n        ff_h264_qpel_fns avg, mf4, 4,  rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h264qpel_rvv.S", "line_start": 441, "line_end": 467}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:1", "text": "/*\n * SPDX-License-Identifier: BSD-2-Clause\n *\n * Copyright (c) 2024 Niklas Haas\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro  lx rd, addr\n#if (__riscv_xlen == 32)\n        lw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        ld      \\rd, \\addr\n#else\n        lq      \\rd, \\addr\n#endif\n.endm\n\n.macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n.endm\n\n        /* output is unclipped; clobbers v26-v31 plus t0 and t02 */\n.macro lowpass_h         vdst, src\n        addi             t4, \\src, 3\n        lbu              t5, 2(\\src)\n        vle8.v           v31, (t4)\n        lbu              t4, 1(\\src)\n        vslide1up.vx     v30, v31, t5\n        lbu              t5, 0(\\src)\n        vslide1up.vx     v29, v30, t4\n        lbu              t4, -1(\\src)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:2", "text": ".macro  sx rd, addr\n#if (__riscv_xlen == 32)\n        sw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        sd      \\rd, \\addr\n#else\n        sq      \\rd, \\addr\n#endif\n.endm\n\n        /* output is unclipped; clobbers v26-v31 plus t0 and t02 */\n.macro lowpass_h         vdst, src\n        addi             t4, \\src, 3\n        lbu              t5, 2(\\src)\n        vle8.v           v31, (t4)\n        lbu              t4, 1(\\src)\n        vslide1up.vx     v30, v31, t5\n        lbu              t5, 0(\\src)\n        vslide1up.vx     v29, v30, t4\n        lbu              t4, -1(\\src)\n        vslide1up.vx     v28, v29, t5\n        lbu              t5, -2(\\src)\n        vslide1up.vx     v27, v28, t4\n        vslide1up.vx     v26, v27, t5\n        vwaddu.vv        \\vdst, v26, v31\n        vwmaccu.vx       \\vdst, t6, v28\n        vwmaccu.vx       \\vdst, t6, v29\n        vwmaccsu.vx      \\vdst, a7, v27\n        vwmaccsu.vx      \\vdst, a7, v30\n.endm\n\n        /* output is unclipped */\n.macro lowpass_v         vdst, vsrc0, vsrc1, vsrc2, vsrc3, vsrc4, vsrc5, signed=0\n    .if \\signed\n        vwadd.vv         \\vdst, \\vsrc0, \\vsrc5\n        vwmacc.vx        \\vdst, t6, \\vsrc2\n        vwmacc.vx        \\vdst, t6, \\vsrc3\n        vwmacc.vx        \\vdst, a7, \\vsrc1\n        vwmacc.vx        \\vdst, a7, \\vsrc4\n    .else\n        vwaddu.vv        \\vdst, \\vsrc0, \\vsrc5\n        vwmaccu.vx       \\vdst, t6, \\vsrc2\n        vwmaccu.vx       \\vdst, t6, \\vsrc3\n        vwmaccsu.vx      \\vdst, a7, \\vsrc1\n        vwmaccsu.vx      \\vdst, a7, \\vsrc4\n    .endif\n.endm\n\n.macro qpel_mc00         op, dst, src, stride, size\nfunc ff_\\op\\()_h264_qpel_pixels, zve32x\n1:      add              t1, a2, a1\n        add              t2, a2, t1\n        add              t3, a2, t2\n        vle8.v           v0, (a1)\n        vle8.v           v1, (t1)\n        vle8.v           v2, (t2)\n        vle8.v           v3, (t3)\n        addi             a4, a4, -4\n        add              a1, a2, t3\n        add              t1, a2, a0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:3", "text": "vwaddu.vv        \\vdst, \\vsrc0, \\vsrc5\n        vwmaccu.vx       \\vdst, t6, \\vsrc2\n        vwmaccu.vx       \\vdst, t6, \\vsrc3\n        vwmaccsu.vx      \\vdst, a7, \\vsrc1\n        vwmaccsu.vx      \\vdst, a7, \\vsrc4\n    .endif\n.endm\n\n.macro qpel_mc00         op, dst, src, stride, size\nfunc ff_\\op\\()_h264_qpel_pixels, zve32x\n1:      add              t1, a2, a1\n        add              t2, a2, t1\n        add              t3, a2, t2\n        vle8.v           v0, (a1)\n        vle8.v           v1, (t1)\n        vle8.v           v2, (t2)\n        vle8.v           v3, (t3)\n        addi             a4, a4, -4\n        add              a1, a2, t3\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v4, (a0)\n        vle8.v           v5, (t1)\n        vle8.v           v6, (t2)\n        vle8.v           v7, (t3)\n        vaaddu.vv        v0, v0, v4\n        vaaddu.vv        v1, v1, v5\n        vaaddu.vv        v2, v2, v6\n        vaaddu.vv        v3, v3, v7\n    .endif\n        vse8.v           v0, (a0)\n        vse8.v           v1, (t1)\n        vse8.v           v2, (t2)\n        vse8.v           v3, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n.endm\n\n        qpel_mc00        put, a0, a1, a2, a4\n        qpel_mc00        avg, a0, a1, a2, a4\n\n.macro qpel_lowpass      op, ext, lmul, lmul2\nfunc ff_\\op\\()_h264_qpel_h_lowpass_\\lmul\\ext, zve32x\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        lowpass_h        v0, a1\n        lowpass_h        v2, t1\n        lowpass_h        v4, t2\n        lowpass_h        v6, t3\n        add              a1, a3, t3\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v0, v0, zero\n        vmax.vx          v2, v2, zero\n        vmax.vx          v4, v4, zero", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:4", "text": ".endm\n\n        qpel_mc00        put, a0, a1, a2, a4\n        qpel_mc00        avg, a0, a1, a2, a4\n\n.macro qpel_lowpass      op, ext, lmul, lmul2\nfunc ff_\\op\\()_h264_qpel_h_lowpass_\\lmul\\ext, zve32x\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        lowpass_h        v0, a1\n        lowpass_h        v2, t1\n        lowpass_h        v4, t2\n        lowpass_h        v6, t3\n        add              a1, a3, t3\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v0, v0, zero\n        vmax.vx          v2, v2, zero\n        vmax.vx          v4, v4, zero\n        vmax.vx          v6, v6, zero\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v0, v0, 5\n        vnclipu.wi       v2, v2, 5\n        vnclipu.wi       v4, v4, 5\n        vnclipu.wi       v6, v6, 5\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2\n        vle8.v           v8,  (a5)\n        vle8.v           v10, (t1)\n        vle8.v           v12, (t2)\n        vle8.v           v14, (t3)\n        add              a5, a2, t3\n        vaaddu.vv        v0, v0, v8\n        vaaddu.vv        v2, v2, v10\n        vaaddu.vv        v4, v4, v12\n        vaaddu.vv        v6, v6, v14\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v1, (a0)\n        vle8.v           v3, (t1)\n        vle8.v           v5, (t2)\n        vle8.v           v7, (t3)\n        vaaddu.vv        v0, v0, v1\n        vaaddu.vv        v2, v2, v3\n        vaaddu.vv        v4, v4, v5\n        vaaddu.vv        v6, v6, v7\n    .endif\n        vse8.v           v0, (a0)\n        vse8.v           v2, (t1)\n        vse8.v           v4, (t2)\n        vse8.v           v6, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:5", "text": "add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v1, (a0)\n        vle8.v           v3, (t1)\n        vle8.v           v5, (t2)\n        vle8.v           v7, (t3)\n        vaaddu.vv        v0, v0, v1\n        vaaddu.vv        v2, v2, v3\n        vaaddu.vv        v4, v4, v5\n        vaaddu.vv        v6, v6, v7\n    .endif\n        vse8.v           v0, (a0)\n        vse8.v           v2, (t1)\n        vse8.v           v4, (t2)\n        vse8.v           v6, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n\nfunc ff_\\op\\()_h264_qpel_v_lowpass_\\lmul\\ext, zve32x\n        sub              t1, a1, a3\n        sub              t2, t1,   a3\n        vle8.v           v2, (a1)\n        vle8.v           v1, (t1)\n        vle8.v           v0, (t2)\n        add              t1, a1, a3\n        add              t2,   t1, a3\n        add              a1, t2, a3\n        vle8.v           v3, (t1)\n        vle8.v           v4, (t2)\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        vle8.v           v5, (a1)\n        vle8.v           v6, (t1)\n        vle8.v           v7, (t2)\n        vle8.v           v8, (t3)\n        add              a1, a3, t3\n        lowpass_v        v24, v0, v1, v2, v3, v4, v5\n        lowpass_v        v26, v1, v2, v3, v4, v5, v6\n        lowpass_v        v28, v2, v3, v4, v5, v6, v7\n        lowpass_v        v30, v3, v4, v5, v6, v7, v8\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v24, v24, zero\n        vmax.vx          v26, v26, zero\n        vmax.vx          v28, v28, zero\n        vmax.vx          v30, v30, zero\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v24, v24, 5\n        vnclipu.wi       v26, v26, 5\n        vnclipu.wi       v28, v28, 5\n        vnclipu.wi       v30, v30, 5\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:6", "text": "add              a1, a3, t3\n        lowpass_v        v24, v0, v1, v2, v3, v4, v5\n        lowpass_v        v26, v1, v2, v3, v4, v5, v6\n        lowpass_v        v28, v2, v3, v4, v5, v6, v7\n        lowpass_v        v30, v3, v4, v5, v6, v7, v8\n        addi             a4, a4, -4\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        vmax.vx          v24, v24, zero\n        vmax.vx          v26, v26, zero\n        vmax.vx          v28, v28, zero\n        vmax.vx          v30, v30, zero\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v24, v24, 5\n        vnclipu.wi       v26, v26, 5\n        vnclipu.wi       v28, v28, 5\n        vnclipu.wi       v30, v30, 5\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2\n        vle8.v           v9, (a5)\n        vle8.v           v10, (t1)\n        vle8.v           v11, (t2)\n        vle8.v           v12, (t3)\n        add              a5, a6, t3\n        vaaddu.vv        v24, v24, v9\n        vaaddu.vv        v26, v26, v10\n        vaaddu.vv        v28, v28, v11\n        vaaddu.vv        v30, v30, v12\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v9, (a0)\n        vle8.v           v10, (t1)\n        vle8.v           v11, (t2)\n        vle8.v           v12, (t3)\n        vaaddu.vv        v24, v24, v9\n        vaaddu.vv        v26, v26, v10\n        vaaddu.vv        v28, v28, v11\n        vaaddu.vv        v30, v30, v12\n    .endif\n        vse8.v           v24, (a0)\n        vse8.v           v26, (t1)\n        vse8.v           v28, (t2)\n        vse8.v           v30, (t3)\n        add              a0, a2, t3\n        vmv.v.v          v0, v4\n        vmv.v.v          v1, v5\n        vmv.v.v          v2, v6\n        vmv.v.v          v3, v7\n        vmv.v.v          v4, v8\n        bnez             a4, 1b\n        jr               t0\nendfunc\n\nfunc ff_\\op\\()_h264_qpel_hv_lowpass_\\lmul\\ext, zve32x\n        sub              t1, a1, a3\n        sub              t2, t1,   a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:7", "text": "vaaddu.vv        v28, v28, v11\n        vaaddu.vv        v30, v30, v12\n    .endif\n        vse8.v           v24, (a0)\n        vse8.v           v26, (t1)\n        vse8.v           v28, (t2)\n        vse8.v           v30, (t3)\n        add              a0, a2, t3\n        vmv.v.v          v0, v4\n        vmv.v.v          v1, v5\n        vmv.v.v          v2, v6\n        vmv.v.v          v3, v7\n        vmv.v.v          v4, v8\n        bnez             a4, 1b\n        jr               t0\nendfunc\n\nfunc ff_\\op\\()_h264_qpel_hv_lowpass_\\lmul\\ext, zve32x\n        sub              t1, a1, a3\n        sub              t2, t1,   a3\n        lowpass_h        v4, a1\n        lowpass_h        v2, t1\n        lowpass_h        v0, t2\n        add              t1, a1, a3\n        add              t2,   t1, a3\n        add              a1, t2, a3\n        lowpass_h        v6, t1\n        lowpass_h        v8, t2\n1:      add              t1, a3, a1\n        add              t2, a3, t1\n        add              t3, a3, t2\n        lowpass_h        v10, a1\n        lowpass_h        v12, t1\n        lowpass_h        v14, t2\n        lowpass_h        v16, t3\n        vsetvli          zero, zero, e16, \\lmul2, ta, ma\n        addi             a4, a4, -4\n        lowpass_v        v20, v0, v2,  v4,  v6,  v8, v10, signed=1\n        lowpass_v        v24, v2, v4,  v6,  v8, v10, v12, signed=1\n        lowpass_v        v28, v4, v6,  v8, v10, v12, v14, signed=1\n        vnclip.wi        v0, v20, 10\n        lowpass_v        v20, v6, v8, v10, v12, v14, v16, signed=1\n        vnclip.wi        v2, v24, 10\n        vnclip.wi        v4, v28, 10\n        vnclip.wi        v6, v20, 10\n        vmax.vx          v18, v0, zero\n        vmax.vx          v20, v2, zero\n        vmax.vx          v22, v4, zero\n        vmax.vx          v24, v6, zero\n        vmv.v.v          v0, v8\n        vmv.v.v          v2, v10\n        vmv.v.v          v4, v12\n        vmv.v.v          v6, v14\n        vmv.v.v          v8, v16\n        add              a1, a3, t3\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v18, v18, 0\n        vnclipu.wi       v20, v20, 0\n        vnclipu.wi       v22, v22, 0\n        vnclipu.wi       v24, v24, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:8", "text": "vnclip.wi        v0, v20, 10\n        lowpass_v        v20, v6, v8, v10, v12, v14, v16, signed=1\n        vnclip.wi        v2, v24, 10\n        vnclip.wi        v4, v28, 10\n        vnclip.wi        v6, v20, 10\n        vmax.vx          v18, v0, zero\n        vmax.vx          v20, v2, zero\n        vmax.vx          v22, v4, zero\n        vmax.vx          v24, v6, zero\n        vmv.v.v          v0, v8\n        vmv.v.v          v2, v10\n        vmv.v.v          v4, v12\n        vmv.v.v          v6, v14\n        vmv.v.v          v8, v16\n        add              a1, a3, t3\n        vsetvli          zero, zero, e8, \\lmul, ta, ma\n        vnclipu.wi       v18, v18, 0\n        vnclipu.wi       v20, v20, 0\n        vnclipu.wi       v22, v22, 0\n        vnclipu.wi       v24, v24, 0\n    .ifc \\ext, _l2\n        add              t1, a6, a5\n        add              t2, a6, t1\n        add              t3, a6, t2\n        vle8.v           v26, (a5)\n        vle8.v           v27, (t1)\n        vle8.v           v28, (t2)\n        vle8.v           v29, (t3)\n        add              a5, a6, t3\n        vaaddu.vv        v18, v18, v26\n        vaaddu.vv        v20, v20, v27\n        vaaddu.vv        v22, v22, v28\n        vaaddu.vv        v24, v24, v29\n    .endif\n        add              t1, a2, a0\n        add              t2, a2, t1\n        add              t3, a2, t2\n    .ifc \\op, avg\n        vle8.v           v26, (a0)\n        vle8.v           v27, (t1)\n        vle8.v           v28, (t2)\n        vle8.v           v29, (t3)\n        vaaddu.vv        v18, v18, v26\n        vaaddu.vv        v20, v20, v27\n        vaaddu.vv        v22, v22, v28\n        vaaddu.vv        v24, v24, v29\n    .endif\n        vse8.v           v18, (a0)\n        vse8.v           v20, (t1)\n        vse8.v           v22, (t2)\n        vse8.v           v24, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n.endm\n\n/* Note: We could possibly specialize for the width 8 / width 4 cases by\n   loading 32 bit integers, but this makes the convolutions more complicated\n   to implement, so it's not necessarily any faster. */", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:9", "text": "vle8.v           v28, (t2)\n        vle8.v           v29, (t3)\n        vaaddu.vv        v18, v18, v26\n        vaaddu.vv        v20, v20, v27\n        vaaddu.vv        v22, v22, v28\n        vaaddu.vv        v24, v24, v29\n    .endif\n        vse8.v           v18, (a0)\n        vse8.v           v20, (t1)\n        vse8.v           v22, (t2)\n        vse8.v           v24, (t3)\n        add              a0, a2, t3\n        bnez             a4, 1b\n        jr               t0\nendfunc\n.endm\n\n/* Note: We could possibly specialize for the width 8 / width 4 cases by\n   loading 32 bit integers, but this makes the convolutions more complicated\n   to implement, so it's not necessarily any faster. */\n\n.macro h264_qpel         lmul, lmul2\n        qpel_lowpass     put,    , \\lmul, \\lmul2\n        qpel_lowpass     put, _l2, \\lmul, \\lmul2\n        qpel_lowpass     avg,    , \\lmul, \\lmul2\n        qpel_lowpass     avg, _l2, \\lmul, \\lmul2\n.endm\n\n        h264_qpel        m1,  m2\n        h264_qpel        mf2, m1\n        h264_qpel        mf4, mf2\n        h264_qpel        mf8, mf4\n\n.macro h264_qpel_1pass   op, case, lmul, size, ext=rvv, dir, offset\nfunc ff_\\op\\()_h264_qpel\\size\\()_\\case\\()_\\ext, zve32x\n        lpad             0\n        vsetivli         zero, \\size, e8, \\lmul, ta, ma\n        csrwi            vxrm, 0\n        li               a4, \\size\n        li               t6, 20\n        li               a7, -5\n        mv               a3, a2\n        mv               t0, ra\n.ifnb \\offset\n    .ifc \\dir, v\n        add              a5, a1, \\offset\n    .else\n        addi             a5, a1, \\offset\n    .endif\n        mv               a6, a3\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()_l2\n.else\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()\n.endif\nendfunc\n.endm\n\n.macro h264_qpel_2pass   op, case, lmul, size, ext=rvv, dir1, dir2, off1=0, off2\nfunc ff_\\op\\()_h264_qpel\\size\\()_\\case\\()_\\ext, zve32x\n        lpad             0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:10", "text": "li               a7, -5\n        mv               a3, a2\n        mv               t0, ra\n.ifnb \\offset\n    .ifc \\dir, v\n        add              a5, a1, \\offset\n    .else\n        addi             a5, a1, \\offset\n    .endif\n        mv               a6, a3\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()_l2\n.else\n        j                ff_\\op\\()_h264_qpel_\\dir\\()_lowpass_\\lmul\\()\n.endif\nendfunc\n.endm\n\n.macro h264_qpel_2pass   op, case, lmul, size, ext=rvv, dir1, dir2, off1=0, off2\nfunc ff_\\op\\()_h264_qpel\\size\\()_\\case\\()_\\ext, zve32x\n        lpad             0\n        vsetivli         zero, \\size, e8, \\lmul, ta, ma\n        csrwi            vxrm, 0\n        addi             sp, sp, (-(__riscv_xlen >> 2))\n        li               a4, \\size\n        li               t6, 20\n        li               a7, -5\n        sx               a0, 0(sp)\n        sx               a1, (__riscv_xlen >> 3)(sp)\n    .ifc \\off1, a2\n        add              a1, a1, \\off1\n    .elseif \\off1\n        addi             a1, a1, \\off1\n    .endif\n        mv               a3, a2\n    .ifc \\op, avg\n        // Use temporary array on stack for the first pass\n        addi             a0, sp, -(\\size * \\size)\n        li               a2, \\size\n    .endif\n        jal              t0, ff_put_h264_qpel_\\dir1\\()_lowpass_\\lmul\n        lx               a0, 0(sp)\n        lx               a1, (__riscv_xlen >> 3)(sp)\n    .ifc \\op, put\n        // Directly reuse the first pass output buffer\n        mv               a5, a0\n        mv               a6, a2\n    .else\n        addi             a5, sp, -(\\size * \\size)\n        li               a6, \\size\n        mv               a2, a3\n    .endif\n    .ifnb \\off2\n        addi             a1, a1, \\off2\n    .endif\n        li               a4, \\size\n        mv               t0, ra\n        addi             sp, sp, 16\n        j                ff_\\op\\()_h264_qpel_\\dir2\\()_lowpass_\\lmul\\()_l2\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:11", "text": "lx               a0, 0(sp)\n        lx               a1, (__riscv_xlen >> 3)(sp)\n    .ifc \\op, put\n        // Directly reuse the first pass output buffer\n        mv               a5, a0\n        mv               a6, a2\n    .else\n        addi             a5, sp, -(\\size * \\size)\n        li               a6, \\size\n        mv               a2, a3\n    .endif\n    .ifnb \\off2\n        addi             a1, a1, \\off2\n    .endif\n        li               a4, \\size\n        mv               t0, ra\n        addi             sp, sp, 16\n        j                ff_\\op\\()_h264_qpel_\\dir2\\()_lowpass_\\lmul\\()_l2\nendfunc\n.endm\n\n.macro ff_h264_qpel_fns  op, lmul, size, ext=rvv\nfunc ff_\\op\\()_h264_qpel\\size\\()_mc00_\\ext, zve32x\n        lpad             0\n        vsetivli         zero, \\size, e8, \\lmul, ta, ma\n        csrwi            vxrm, 0\n        li               a4, \\size\n        mv               t0, ra\n        j                ff_\\op\\()_h264_qpel_pixels\nendfunc\n\n        h264_qpel_1pass  \\op, mc20, \\lmul, \\size, \\ext, h\n        h264_qpel_1pass  \\op, mc02, \\lmul, \\size, \\ext, v\n        h264_qpel_1pass  \\op, mc10, \\lmul, \\size, \\ext, h, 0\n        h264_qpel_1pass  \\op, mc30, \\lmul, \\size, \\ext, h, 1\n        h264_qpel_1pass  \\op, mc01, \\lmul, \\size, \\ext, v, zero\n        h264_qpel_1pass  \\op, mc03, \\lmul, \\size, \\ext, v, a2\n        h264_qpel_1pass  \\op, mc22, \\lmul, \\size, \\ext, hv\n\n        h264_qpel_2pass  \\op, mc11, \\lmul, \\size, \\ext, h, v\n        h264_qpel_2pass  \\op, mc21, \\lmul, \\size, \\ext, h, hv\n        h264_qpel_2pass  \\op, mc12, \\lmul, \\size, \\ext, v, hv\n        h264_qpel_2pass  \\op, mc31, \\lmul, \\size, \\ext, h, v, off2=1\n        h264_qpel_2pass  \\op, mc13, \\lmul, \\size, \\ext, h, v, a2\n        h264_qpel_2pass  \\op, mc33, \\lmul, \\size, \\ext, h, v, a2, 1\n        h264_qpel_2pass  \\op, mc23, \\lmul, \\size, \\ext, h, hv, a2\n        h264_qpel_2pass  \\op, mc32, \\lmul, \\size, \\ext, v, hv, 1\n.endm\n\n        ff_h264_qpel_fns put, mf2, 16, rvv256\n        ff_h264_qpel_fns put, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns put, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns avg, mf2, 16, rvv256\n        ff_h264_qpel_fns avg, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns avg, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns put, m1,  16, rvv\n        ff_h264_qpel_fns put, mf2, 8,  rvv\n        ff_h264_qpel_fns put, mf4, 4,  rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h264qpel_rvv.S:12", "text": "h264_qpel_2pass  \\op, mc21, \\lmul, \\size, \\ext, h, hv\n        h264_qpel_2pass  \\op, mc12, \\lmul, \\size, \\ext, v, hv\n        h264_qpel_2pass  \\op, mc31, \\lmul, \\size, \\ext, h, v, off2=1\n        h264_qpel_2pass  \\op, mc13, \\lmul, \\size, \\ext, h, v, a2\n        h264_qpel_2pass  \\op, mc33, \\lmul, \\size, \\ext, h, v, a2, 1\n        h264_qpel_2pass  \\op, mc23, \\lmul, \\size, \\ext, h, hv, a2\n        h264_qpel_2pass  \\op, mc32, \\lmul, \\size, \\ext, v, hv, 1\n.endm\n\n        ff_h264_qpel_fns put, mf2, 16, rvv256\n        ff_h264_qpel_fns put, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns put, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns avg, mf2, 16, rvv256\n        ff_h264_qpel_fns avg, mf4, 8,  rvv256\n        /* ff_h264_qpel_fns avg, mf8, 4,  rvv256 */\n\n        ff_h264_qpel_fns put, m1,  16, rvv\n        ff_h264_qpel_fns put, mf2, 8,  rvv\n        ff_h264_qpel_fns put, mf4, 4,  rvv\n\n        ff_h264_qpel_fns avg, m1,  16, rvv\n        ff_h264_qpel_fns avg, mf2, 8,  rvv\n        ff_h264_qpel_fns avg, mf4, 4,  rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h264qpel_rvv.S", "license": "LGPL-2.1", "commit": "2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2f77ecc6bc7dbc832cee4f0fe4d219fb172f775f/libavcodec/riscv/h264qpel_rvv.S", "line_start": 441, "line_end": 464}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic w, vlen, en, mn1, mn2, mn3, mn4, mn5, mn6, vta=ta\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn1, \\vta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn2, \\vta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn3, \\vta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn4, \\vta, ma\n        .elseif \\w <= 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, \\vta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn1, \\vta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn2, \\vta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn3, \\vta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn4, \\vta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, \\vta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn6, \\vta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic8 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e8, mf8, mf4, mf2, m1, m2, m4, \\vta\n.endm\n\n.macro vsetvlstatic16 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e16, mf4, mf2, m1, m2, m4, m8, \\vta\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h26x/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:2", "text": ".elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn4, \\vta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, \\vta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn6, \\vta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic8 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e8, mf8, mf4, mf2, m1, m2, m4, \\vta\n.endm\n\n.macro vsetvlstatic16 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e16, mf4, mf2, m1, m2, m4, m8, \\vta\n.endm\n\n.macro vsetvlstatic32 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e32, mf2, m1, m2, m4, m8, m8, \\vta\n.endm\n\n.macro POW2_JMP_TABLE id, vlen\nconst jmp_table_\\id\\vlen\n        .4byte \\id\\()2\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()4\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()8\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()16\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()32\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()64\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()128\\vlen\\()f - jmp_table_\\id\\vlen\nendconst\n.endm\n\n.macro POW2_J vlen, id, w\n        clz               t1, \\w\n        neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm\n\n.macro put_pixels w, vlen, id, MAX_PB_SIZE\n\\id\\w\\vlen:\n        vsetvlstatic8     \\w, \\vlen\n        li                t2, 1<<6\n.if \\w == 128 && \\vlen == 128\n1:\n        addi              t0, a1, 64\n        addi              t1, a0, 64*2\n        vle8.v            v0, (a1)\n        vle8.v            v16, (t0)\n        vwmulu.vx         v8, v0, t2\n        vwmulu.vx         v24, v16, t2\n        vse16.v           v8, (a0)\n        vse16.v           v24, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h26x/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:3", "text": "sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm\n\n.macro put_pixels w, vlen, id, MAX_PB_SIZE\n\\id\\w\\vlen:\n        vsetvlstatic8     \\w, \\vlen\n        li                t2, 1<<6\n.if \\w == 128 && \\vlen == 128\n1:\n        addi              t0, a1, 64\n        addi              t1, a0, 64*2\n        vle8.v            v0, (a1)\n        vle8.v            v16, (t0)\n        vwmulu.vx         v8, v0, t2\n        vwmulu.vx         v24, v16, t2\n        vse16.v           v8, (a0)\n        vse16.v           v24, (t1)\n        add               a1, a1, a2\n        addi              a3, a3, -1\n        addi              a0, a0, 128*2\n        bnez              a3, 1b\n.else\n1:\n        vle8.v            v0, (a1)\n        vwmulu.vx         v8, v0, t2\n        vse16.v           v8, (a0)\n        add               a1, a1, a2\n        addi              a3, a3, -1\n        addi              a0, a0, \\MAX_PB_SIZE<<1\n        bnez              a3, 1b\n.endif\n        ret\n.endm\n\n.macro func_put_pixels vlen, MAX_PB_SIZE, name\nfunc ff_\\name\\()_put_pixels_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        POW2_JMP_TABLE    3, \\vlen\n        POW2_J            \\vlen, 3, a6\n        .irp w,2,4,8,16,32,64,128\n        put_pixels        \\w, \\vlen, 3, \\MAX_PB_SIZE\n        .endr\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/h26x/asm.S", "line_start": 81, "line_end": 127}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic w, vlen, en, mn1, mn2, mn3, mn4, mn5, mn6, vta=ta\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn1, \\vta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn2, \\vta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn3, \\vta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn4, \\vta, ma\n        .elseif \\w <= 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, \\vta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn1, \\vta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn2, \\vta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn3, \\vta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn4, \\vta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, \\vta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn6, \\vta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic8 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e8, mf8, mf4, mf2, m1, m2, m4, \\vta\n.endm\n\n.macro vsetvlstatic16 w, vlen, vta\n        vsetvlstatic \\w, \\vlen, e16, mf4, mf2, m1, m2, m4, m8, \\vta\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "a0a89efd0778a8021c2d7077f82531d4f955f459", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a0a89efd0778a8021c2d7077f82531d4f955f459/libavcodec/riscv/h26x/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic w, vlen, en, mn1, mn2, mn3, mn4, mn5, mn6\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn1, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn3, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, \\en, \\mn4, ta, ma\n        .elseif \\w <= 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn1, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, \\en, \\mn3, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn4, ta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn6, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic8 w, vlen\n        vsetvlstatic \\w, \\vlen, e8, mf8, mf4, mf2, m1, m2, m4\n.endm\n\n.macro vsetvlstatic16 w, vlen\n        vsetvlstatic \\w, \\vlen, e16, mf4, mf2, m1, m2, m4, m8\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "6b31e42c47c00817f6249f43391873a15b1c00a4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6b31e42c47c00817f6249f43391873a15b1c00a4/libavcodec/riscv/h26x/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:2", "text": ".elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn4, ta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn5, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, \\en, \\mn6, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic8 w, vlen\n        vsetvlstatic \\w, \\vlen, e8, mf8, mf4, mf2, m1, m2, m4\n.endm\n\n.macro vsetvlstatic16 w, vlen\n        vsetvlstatic \\w, \\vlen, e16, mf4, mf2, m1, m2, m4, m8\n.endm\n\n.macro vsetvlstatic32 w, vlen\n        vsetvlstatic \\w, \\vlen, e32, mf2, m1, m2, m4, m8, m8\n.endm\n\n.macro POW2_JMP_TABLE id, vlen\nconst jmp_table_\\id\\vlen\n        .4byte \\id\\()2\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()4\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()8\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()16\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()32\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()64\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()128\\vlen\\()f - jmp_table_\\id\\vlen\nendconst\n.endm\n\n.macro POW2_J vlen, id, w\n        clz               t1, \\w\n        neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm\n\n.macro put_pixels w, vlen, id, MAX_PB_SIZE\n\\id\\w\\vlen:\n        vsetvlstatic8     \\w, \\vlen\n        li                t2, 1<<6\n.if \\w == 128 && \\vlen == 128\n1:\n        addi              t0, a1, 64\n        addi              t1, a0, 64*2\n        vle8.v            v0, (a1)\n        vle8.v            v16, (t0)\n        vwmulu.vx         v8, v0, t2\n        vwmulu.vx         v24, v16, t2\n        vse16.v           v8, (a0)\n        vse16.v           v24, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "6b31e42c47c00817f6249f43391873a15b1c00a4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6b31e42c47c00817f6249f43391873a15b1c00a4/libavcodec/riscv/h26x/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 w, vlen\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, e8, mf8, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e8, mf4, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e8, mf2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, e8, m1, ta, ma\n        .elseif \\w <= 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m2, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e8, mf8, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, e8, mf4, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, e8, mf2, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m1, ta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m2, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m4, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic16 w, vlen\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e16, m1, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "dad062c4f8a9a77d6969ce38360252844a55a630", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad062c4f8a9a77d6969ce38360252844a55a630/libavcodec/riscv/h26x/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:2", "text": ".elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m1, ta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m2, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m4, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic16 w, vlen\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e16, m1, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, e16, m2, ta, ma\n        .elseif \\w <= 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e16, mf4, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, e16, mf2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, e16, m1, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m2, ta, ma\n        .elseif \\w <= 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m4, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m8, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic32 w, vlen\n        .if \\w == 2\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "dad062c4f8a9a77d6969ce38360252844a55a630", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad062c4f8a9a77d6969ce38360252844a55a630/libavcodec/riscv/h26x/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:3", "text": ".endm\n\n.macro vsetvlstatic32 w, vlen\n        .if \\w == 2\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m4, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m8, ta, ma\n        .endif\n.endm\n\n.macro POW2_JMP_TABLE id, vlen\nconst jmp_table_\\id\\vlen\n        .4byte \\id\\()2\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()4\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()8\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()16\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()32\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()64\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()128\\vlen\\()f - jmp_table_\\id\\vlen\nendconst\n.endm\n\n.macro POW2_J vlen, id, w\n        clz               t1, \\w\n        neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm\n\n.macro put_pixels w, vlen, id, MAX_PB_SIZE\n\\id\\w\\vlen:\n        vsetvlstatic8     \\w, \\vlen\n        li                t2, 1<<6\n.if \\w == 128 && \\vlen == 128\n1:\n        addi              t0, a1, 64\n        addi              t1, a0, 64*2\n        vle8.v            v0, (a1)\n        vle8.v            v16, (t0)\n        vwmulu.vx         v8, v0, t2\n        vwmulu.vx         v24, v16, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "dad062c4f8a9a77d6969ce38360252844a55a630", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad062c4f8a9a77d6969ce38360252844a55a630/libavcodec/riscv/h26x/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:4", "text": "neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm\n\n.macro put_pixels w, vlen, id, MAX_PB_SIZE\n\\id\\w\\vlen:\n        vsetvlstatic8     \\w, \\vlen\n        li                t2, 1<<6\n.if \\w == 128 && \\vlen == 128\n1:\n        addi              t0, a1, 64\n        addi              t1, a0, 64*2\n        vle8.v            v0, (a1)\n        vle8.v            v16, (t0)\n        vwmulu.vx         v8, v0, t2\n        vwmulu.vx         v24, v16, t2\n        vse16.v           v8, (a0)\n        vse16.v           v24, (t1)\n        add               a1, a1, a2\n        addi              a3, a3, -1\n        addi              a0, a0, 128*2\n        bnez              a3, 1b\n.else\n1:\n        vle8.v            v0, (a1)\n        vwmulu.vx         v8, v0, t2\n        vse16.v           v8, (a0)\n        add               a1, a1, a2\n        addi              a3, a3, -1\n        addi              a0, a0, \\MAX_PB_SIZE<<1\n        bnez              a3, 1b\n.endif\n        ret\n.endm\n\n.macro func_put_pixels vlen, MAX_PB_SIZE, name\nfunc ff_\\name\\()_put_pixels_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        POW2_JMP_TABLE    3, \\vlen\n        POW2_J            \\vlen, 3, a6\n        .irp w,2,4,8,16,32,64,128\n        put_pixels        \\w, \\vlen, 3, \\MAX_PB_SIZE\n        .endr\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "dad062c4f8a9a77d6969ce38360252844a55a630", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad062c4f8a9a77d6969ce38360252844a55a630/libavcodec/riscv/h26x/asm.S", "line_start": 121, "line_end": 169}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/h26x/asm.S:3", "text": ".endm\n\n.macro vsetvlstatic32 w, vlen\n        .if \\w == 2\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m4, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m8, ta, ma\n        .endif\n.endm\n\n.macro POW2_JMP_TABLE id, vlen\nconst jmp_table_\\id\\vlen\n        .4byte \\id\\()2\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()4\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()8\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()16\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()32\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()64\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()128\\vlen\\()f - jmp_table_\\id\\vlen\nendconst\n.endm\n\n.macro POW2_J vlen, id, w\n        clz               t1, \\w\n        neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/h26x/asm.S", "license": "LGPL-2.1", "commit": "9288196c0d82484403ee7e91efb9d33954f4548d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9288196c0d82484403ee7e91efb9d33954f4548d/libavcodec/riscv/h26x/asm.S", "line_start": 81, "line_end": 127}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/huffyuvdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_add_int16_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a3, e16, m8, ta, ma\n        vle16.v v16, (a0)\n        sub     a3, a3, t0\n        vle16.v v24, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv v16, v16, v24\n        vand.vx v16, v16, a2\n        vse16.v v16, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_add_hfyu_left_pred_bgr32_rvv, zve32x, b\n        lpad    0\n        vtype_ivli t1, 4, e8, ta, ma\n        li      t0, 4\n        vsetvl  zero, t0, t1\n        vle8.v  v8, (a3)\n        sh2add  a2, a2, a1\n1:\n        vle8.v  v0, (a1)\n        vadd.vv v8, v8, v0\n        addi    a1, a1, 4\n        vse8.v  v8, (a0)\n        addi    a0, a0, 4\n        bne     a2, a1, 1b\n\n        vse8.v  v8, (a3)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/huffyuvdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/huffyuvdsp_rvv.S", "line_start": 1, "line_end": 57}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/huffyuvdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_add_int16_rvv, zve32x, zba\n1:\n        vsetvli t0, a3, e16, m8, ta, ma\n        vle16.v v16, (a0)\n        sub     a3, a3, t0\n        vle16.v v24, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv v16, v16, v24\n        vand.vx v16, v16, a2\n        vse16.v v16, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_add_hfyu_left_pred_bgr32_rvv, zve32x, b\n        vtype_ivli t1, 4, e8, ta, ma\n        li      t0, 4\n        vsetvl  zero, t0, t1\n        vle8.v  v8, (a3)\n        sh2add  a2, a2, a1\n1:\n        vle8.v  v0, (a1)\n        vadd.vv v8, v8, v0\n        addi    a1, a1, 4\n        vse8.v  v8, (a0)\n        addi    a0, a0, 4\n        bne     a2, a1, 1b\n\n        vse8.v  v8, (a3)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/huffyuvdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/huffyuvdsp_rvv.S", "line_start": 1, "line_end": 55}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/huffyuvdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_add_int16_rvv, zve32x\n1:\n        vsetvli t0, a3, e16, m8, ta, ma\n        vle16.v v16, (a0)\n        sub     a3, a3, t0\n        vle16.v v24, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv v16, v16, v24\n        vand.vx v16, v16, a2\n        vse16.v v16, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_add_hfyu_left_pred_bgr32_rvv, zve32x, zbb\n        vtype_ivli t1, 4, e8, ta, ma\n        li      t0, 4\n        vsetvl  zero, t0, t1\n        vle8.v  v8, (a3)\n        sh2add  a2, a2, a1\n1:\n        vle8.v  v0, (a1)\n        vadd.vv v8, v8, v0\n        addi    a1, a1, 4\n        vse8.v  v8, (a0)\n        addi    a0, a0, 4\n        bne     a2, a1, 1b\n\n        vse8.v  v8, (a3)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/huffyuvdsp_rvv.S", "license": "LGPL-2.1", "commit": "463c573e6b6489c588bee90124d5cf92db8ccaaa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/463c573e6b6489c588bee90124d5cf92db8ccaaa/libavcodec/riscv/huffyuvdsp_rvv.S", "line_start": 1, "line_end": 55}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/huffyuvdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_add_int16_rvv, zve32x\n1:\n        vsetvli t0, a3, e16, m8, ta, ma\n        vle16.v v16, (a0)\n        sub     a3, a3, t0\n        vle16.v v24, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv v16, v16, v24\n        vand.vx v16, v16, a2\n        vse16.v v16, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_add_hfyu_left_pred_bgr32_rvv, zve32x\n        vsetivli zero, 4, e8, m1, ta, ma\n        vle8.v  v8, (a3)\n        sh2add  a2, a2, a1\n1:\n        vle8.v  v0, (a1)\n        vadd.vv v8, v8, v0\n        addi    a1, a1, 4\n        vse8.v  v8, (a0)\n        addi    a0, a0, 4\n        bne     a2, a1, 1b\n\n        vse8.v  v8, (a3)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/huffyuvdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/huffyuvdsp_rvv.S", "line_start": 1, "line_end": 53}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/idctdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_put_pixels_clamped_rvv, zve64x\n        lpad    0\n        li      t0, 8 * 8\n        vsetvli zero, t0, e16, m8, ta, ma\n        vle16.v v24, (a0)\n        /* RVV only has signed-signed and unsigned-unsigned clipping.\n         * We need two steps for signed-to-unsigned clipping. */\n        vmax.vx v24, v24, zero\n        vsetvli zero, zero, e8, m4, ta, ma\n        vnclipu.wi v16, v24, 0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc\n\nfunc ff_put_signed_pixels_clamped_rvv, zve64x\n        lpad    0\n        li      t0, 8 * 8\n        vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        li      t1, 128\n        vnclip.wi v16, v24, 0\n        vadd.vx v16, v16, t1\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc\n\nfunc ff_add_pixels_clamped_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        vwaddu.wv v24, v24, v16\n        vsetvli zero, zero, e16, m8, ta, ma\n        vmax.vx v24, v24, zero", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/idctdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/idctdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/idctdsp_rvv.S:2", "text": "vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        li      t1, 128\n        vnclip.wi v16, v24, 0\n        vadd.vx v16, v16, t1\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc\n\nfunc ff_add_pixels_clamped_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        vwaddu.wv v24, v24, v16\n        vsetvli zero, zero, e16, m8, ta, ma\n        vmax.vx v24, v24, zero\n        vsetvli zero, zero, e8, m4, ta, ma\n        vnclipu.wi v16, v24, 0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/idctdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/idctdsp_rvv.S", "line_start": 41, "line_end": 66}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/idctdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_put_pixels_clamped_rvv, zve64x\n        li      t0, 8 * 8\n        vsetvli zero, t0, e16, m8, ta, ma\n        vle16.v v24, (a0)\n        /* RVV only has signed-signed and unsigned-unsigned clipping.\n         * We need two steps for signed-to-unsigned clipping. */\n        vmax.vx v24, v24, zero\n        vsetvli zero, zero, e8, m4, ta, ma\n        vnclipu.wi v16, v24, 0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc\n\nfunc ff_put_signed_pixels_clamped_rvv, zve64x\n        li      t0, 8 * 8\n        vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        li      t1, 128\n        vnclip.wi v16, v24, 0\n        vadd.vx v16, v16, t1\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc\n\nfunc ff_add_pixels_clamped_rvv, zve64x\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        vwaddu.wv v24, v24, v16\n        vsetvli zero, zero, e16, m8, ta, ma\n        vmax.vx v24, v24, zero\n        vsetvli zero, zero, e8, m4, ta, ma\n        vnclipu.wi v16, v24, 0\n        vsetivli zero, 8, e8, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/idctdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/idctdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/idctdsp_rvv.S:2", "text": "li      t1, 128\n        vnclip.wi v16, v24, 0\n        vadd.vx v16, v16, t1\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc\n\nfunc ff_add_pixels_clamped_rvv, zve64x\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vle16.v v24, (a0)\n        vwaddu.wv v24, v24, v16\n        vsetvli zero, zero, e16, m8, ta, ma\n        vmax.vx v24, v24, zero\n        vsetvli zero, zero, e8, m4, ta, ma\n        vnclipu.wi v16, v24, 0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        vsse64.v v16, (a1), a2\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/idctdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/idctdsp_rvv.S", "line_start": 41, "line_end": 63}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/jpeg2000dsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ict_float_rvv, zve32f, zba\n        lpad    0\n        lla     t0, ff_jpeg2000_f_ict_params\n        flw     ft0,  0(t0)\n        flw     ft1,  4(t0)\n        flw     ft2,  8(t0)\n        flw     ft3, 12(t0)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a3, a3, t0\n        vle32.v v16, (a1)\n        vle32.v v24, (a2)\n        vfmul.vf v0, v16, ft1\n        vfmadd.vf v16, ft3, v8\n        vfsub.vv v0, v8, v0\n        vfmacc.vf v8, ft0, v24\n        vfnmsac.vf v0, ft2, v24\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v16, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_rct_int_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        vle32.v v8, (a0)\n        vadd.vv v0, v16, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/jpeg2000dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/jpeg2000dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/jpeg2000dsp_rvv.S:2", "text": "vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v16, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_rct_int_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        vle32.v v8, (a0)\n        vadd.vv v0, v16, v24\n        vsra.vi v0, v0, 2\n        vsub.vv v0, v8, v0\n        vadd.vv v8, v0, v24\n        vadd.vv v24, v0, v16\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v24, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/jpeg2000dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/jpeg2000dsp_rvv.S", "line_start": 41, "line_end": 74}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/jpeg2000dsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ict_float_rvv, zve32f, zba\n        lla     t0, ff_jpeg2000_f_ict_params\n        flw     ft0,  0(t0)\n        flw     ft1,  4(t0)\n        flw     ft2,  8(t0)\n        flw     ft3, 12(t0)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a3, a3, t0\n        vle32.v v16, (a1)\n        vle32.v v24, (a2)\n        vfmul.vf v0, v16, ft1\n        vfmadd.vf v16, ft3, v8\n        vfsub.vv v0, v8, v0\n        vfmacc.vf v8, ft0, v24\n        vfnmsac.vf v0, ft2, v24\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v16, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_rct_int_rvv, zve32x, zba\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        vle32.v v8, (a0)\n        vadd.vv v0, v16, v24\n        vsra.vi v0, v0, 2\n        vsub.vv v0, v8, v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/jpeg2000dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/jpeg2000dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/jpeg2000dsp_rvv.S:2", "text": "sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v16, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_rct_int_rvv, zve32x, zba\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        vle32.v v8, (a0)\n        vadd.vv v0, v16, v24\n        vsra.vi v0, v0, 2\n        vsub.vv v0, v8, v0\n        vadd.vv v8, v0, v24\n        vadd.vv v24, v0, v16\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v24, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/jpeg2000dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/jpeg2000dsp_rvv.S", "line_start": 41, "line_end": 72}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/jpeg2000dsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ict_float_rvv, zve32f\n        lla     t0, ff_jpeg2000_f_ict_params\n        flw     ft0,  0(t0)\n        flw     ft1,  4(t0)\n        flw     ft2,  8(t0)\n        flw     ft3, 12(t0)\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a3, a3, t0\n        vle32.v v16, (a1)\n        vle32.v v24, (a2)\n        vfmul.vf v0, v16, ft1\n        vfmadd.vf v16, ft3, v8\n        vfsub.vv v0, v8, v0\n        vfmacc.vf v8, ft0, v24\n        vfnmsac.vf v0, ft2, v24\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v16, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_rct_int_rvv, zve32x\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        vle32.v v8, (a0)\n        vadd.vv v0, v16, v24\n        vsra.vi v0, v0, 2\n        vsub.vv v0, v8, v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/jpeg2000dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/jpeg2000dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/jpeg2000dsp_rvv.S:2", "text": "sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v16, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_rct_int_rvv, zve32x\n1:\n        vsetvli t0, a3, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        vle32.v v8, (a0)\n        vadd.vv v0, v16, v24\n        vsra.vi v0, v0, 2\n        vsub.vv v0, v8, v0\n        vadd.vv v8, v0, v24\n        vadd.vv v24, v0, v16\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v0, (a1)\n        sh2add  a1, t0, a1\n        vse32.v v24, (a2)\n        sh2add  a2, t0, a2\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/jpeg2000dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/jpeg2000dsp_rvv.S", "line_start": 41, "line_end": 72}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llauddsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_scalarproduct_and_madd_int16_rvv, zve32x, zba\n        lpad    0\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e16, m4, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vle16.v v16, (a1)\n        sh1add  a1, t0, a1\n        vwmacc.vv v0, v8, v16\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2\n        vmacc.vx v8, a4, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc\n\nfunc ff_scalarproduct_and_madd_int32_rvv, zve32x, zba\n        lpad    0\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e32, m8, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vsext.vf2 v24, v8\n        vle32.v v16, (a1)\n        sh2add  a1, t0, a1\n        vmacc.vv v0, v16, v24\n        vsetvli zero, zero, e16, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llauddsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llauddsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llauddsp_rvv.S:2", "text": "vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc\n\nfunc ff_scalarproduct_and_madd_int32_rvv, zve32x, zba\n        lpad    0\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e32, m8, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vsext.vf2 v24, v8\n        vle32.v v16, (a1)\n        sh2add  a1, t0, a1\n        vmacc.vv v0, v16, v24\n        vsetvli zero, zero, e16, m4, ta, ma\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2\n        vmacc.vx v8, a4, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llauddsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llauddsp_rvv.S", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llauddsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_scalarproduct_and_madd_int16_rvv, zve32x, zba\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e16, m4, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vle16.v v16, (a1)\n        sh1add  a1, t0, a1\n        vwmacc.vv v0, v8, v16\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2\n        vmacc.vx v8, a4, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc\n\nfunc ff_scalarproduct_and_madd_int32_rvv, zve32x, zba\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e32, m8, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vsext.vf2 v24, v8\n        vle32.v v16, (a1)\n        sh2add  a1, t0, a1\n        vmacc.vv v0, v16, v24\n        vsetvli zero, zero, e16, m4, ta, ma\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llauddsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/llauddsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llauddsp_rvv.S:2", "text": "vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc\n\nfunc ff_scalarproduct_and_madd_int32_rvv, zve32x, zba\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e32, m8, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vsext.vf2 v24, v8\n        vle32.v v16, (a1)\n        sh2add  a1, t0, a1\n        vmacc.vv v0, v16, v24\n        vsetvli zero, zero, e16, m4, ta, ma\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2\n        vmacc.vx v8, a4, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llauddsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/llauddsp_rvv.S", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llauddsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_scalarproduct_and_madd_int16_rvv, zve32x\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e16, m4, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vle16.v v16, (a1)\n        sh1add  a1, t0, a1\n        vwmacc.vv v0, v8, v16\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2\n        vmacc.vx v8, a4, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc\n\nfunc ff_scalarproduct_and_madd_int32_rvv, zve32x\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e32, m8, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vsext.vf2 v24, v8\n        vle32.v v16, (a1)\n        sh2add  a1, t0, a1\n        vmacc.vv v0, v16, v24\n        vsetvli zero, zero, e16, m4, ta, ma\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llauddsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/llauddsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llauddsp_rvv.S:2", "text": "vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc\n\nfunc ff_scalarproduct_and_madd_int32_rvv, zve32x\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.v.x v0, zero\n1:\n        vsetvli t0, a3, e32, m8, tu, ma\n        vle16.v v8, (a0)\n        sub     a3, a3, t0\n        vsext.vf2 v24, v8\n        vle32.v v16, (a1)\n        sh2add  a1, t0, a1\n        vmacc.vv v0, v16, v24\n        vsetvli zero, zero, e16, m4, ta, ma\n        vle16.v v24, (a2)\n        sh1add  a2, t0, a2\n        vmacc.vx v8, a4, v24\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        bnez    a3, 1b\n\n        vsetvli t0, zero, e32, m8, ta, ma\n        vmv.s.x v8, zero\n        vredsum.vs v0, v0, v8\n        vmv.x.s a0, v0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llauddsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/llauddsp_rvv.S", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llviddsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvid_add_bytes_rvv, zve32x\n        lpad    0\n1:\n        vsetvli t0, a2, e8, m8, ta, ma\n        vle8.v  v0, (a1)\n        sub     a2, a2, t0\n        vle8.v  v8, (a0)\n        add     a1, t0, a1\n        vadd.vv v8, v0, v8\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llviddsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llviddsp_rvv.S", "line_start": 1, "line_end": 37}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llviddsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvid_add_bytes_rvv, zve32x\n1:\n        vsetvli t0, a2, e8, m8, ta, ma\n        vle8.v  v0, (a1)\n        sub     a2, a2, t0\n        vle8.v  v8, (a0)\n        add     a1, t0, a1\n        vadd.vv v8, v0, v8\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llviddsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/llviddsp_rvv.S", "line_start": 1, "line_end": 36}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvb.S:1", "text": "/*\n * Copyright © 2025 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvidenc_sub_median_pred_rvb, zbb\n        lpad    0\n        lbu     t4, (a4)    # l\n        lbu     t5, (a5)    # lt\n        add     a3, a0, a3\n1:\n        lbu     t1, (a1)    # src1\n        addi    a1, a1, 1\n        add     t6, t4, t1\n        max     t3, t4, t1\n        sub     t6, t6, t5  # l + src1 - lt\n        min     t0, t4, t1\n        andi    t6, t6, 0xff\n        mv      t5, t1\n        min     t3, t3, t6\n        lbu     t4, (a2)    # src2\n        addi    a0, a0, 1\n        max     t6, t0, t3  # mid_pred(...)\n        sub     t0, t4, t6\n        addi    a2, a2, 1\n        sb      t0, -1(a0)\n        bne     a0, a3, 1b\n\n        sw      t4, (a4)\n        sw      t5, (a5)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llvidencdsp_rvb.S", "line_start": 1, "line_end": 49}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvidenc_diff_bytes_rvv, zve32x\n        lpad    0\n1:\n        vsetvli t0, a3, e8, m8, ta, ma\n        vle8.v  v0, (a1)\n        sub     a3, a3, t0\n        vle8.v  v8, (a2)\n        add     a1, t0, a1\n        vsub.vv v8, v0, v8\n        add     a2, t0, a2\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_llvidenc_sub_median_pred_rvv, zve32x\n        lpad    0\n        lw      t4, (a4)\n        lw      t5, (a5)\n1:\n        vsetvli t3, a3, e8, m4, ta, ma\n        vle8.v  v16, (a1)            # src1\n        sub     a3, a3, t3\n        vle8.v  v24, (a2)            # src2\n        add     a1, t3, a1\n        vslide1up.vx    v20, v16, t5 # lt\n        add     a2, t3, a2\n        vslide1up.vx    v28, v24, t4 # l\n        lbu     t5, -1(a1)\n        vsub.vv     v20, v16, v20\n        lbu     t4, -1(a2)\n        vmaxu.vv    v8, v28, v16\n        vadd.vv     v20, v28, v20    # l + src1 - lt\n        vminu.vv    v12, v28, v16\n        vminu.vv    v8, v8, v20\n        vmaxu.vv    v8, v12, v8      # mid_pred(...)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:2", "text": "lpad    0\n        lw      t4, (a4)\n        lw      t5, (a5)\n1:\n        vsetvli t3, a3, e8, m4, ta, ma\n        vle8.v  v16, (a1)            # src1\n        sub     a3, a3, t3\n        vle8.v  v24, (a2)            # src2\n        add     a1, t3, a1\n        vslide1up.vx    v20, v16, t5 # lt\n        add     a2, t3, a2\n        vslide1up.vx    v28, v24, t4 # l\n        lbu     t5, -1(a1)\n        vsub.vv     v20, v16, v20\n        lbu     t4, -1(a2)\n        vmaxu.vv    v8, v28, v16\n        vadd.vv     v20, v28, v20    # l + src1 - lt\n        vminu.vv    v12, v28, v16\n        vminu.vv    v8, v8, v20\n        vmaxu.vv    v8, v12, v8      # mid_pred(...)\n        vsub.vv     v8, v24, v8\n        vse8.v  v8, (a0)\n        add     a0, t3, a0\n        bnez    a3, 1b\n\n        sw      t4, (a4)\n        sw      t5, (a5)\n        ret\nendfunc\n\nfunc ff_llvidenc_sub_left_predict_rvv, zve32x\n        lpad    0\n        li      a5, -0x80\n        sub     a2, a2, a3\n1:\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli t0, t3, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t3, t3, t0\n        vslide1up.vx    v24, v16, a5\n        add     a1, a1, t0\n        vsub.vv v8, v16, v24\n        lb      a5, -1(a1)\n        vse8.v  v8, (a0)\n        add     a0, a0, t0\n        bnez    t3, 2b\n\n        add     a1, a1, a2\n        bnez    a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 41, "line_end": 94}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:3", "text": "sub     t3, t3, t0\n        vslide1up.vx    v24, v16, a5\n        add     a1, a1, t0\n        vsub.vv v8, v16, v24\n        lb      a5, -1(a1)\n        vse8.v  v8, (a0)\n        add     a0, a0, t0\n        bnez    t3, 2b\n\n        add     a1, a1, a2\n        bnez    a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 81, "line_end": 94}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:2", "text": "lpad    0\n        lw      t4, (a4)\n        lw      t5, (a5)\n1:\n        vsetvli t3, a3, e8, m4, ta, ma\n        vle8.v  v16, (a1)            # src1\n        sub     a3, a3, t3\n        vle8.v  v24, (a2)            # src2\n        add     a1, t3, a1\n        vslide1up.vx    v20, v16, t5 # lt\n        add     a2, t3, a2\n        vslide1up.vx    v28, v24, t4 # l\n        lbu     t5, -1(a1)\n        vsub.vv     v20, v16, v20\n        lbu     t4, -1(a2)\n        vmaxu.vv    v8, v28, v16\n        vadd.vv     v20, v28, v20    # l + src1 - lt\n        vminu.vv    v12, v28, v16\n        vminu.vv    v8, v8, v20\n        vmaxu.vv    v8, v12, v8      # mid_pred(...)\n        vsub.vv     v8, v24, v8\n        vse8.v  v8, (a0)\n        add     a0, t3, a0\n        bnez    a3, 1b\n\n        sw      t4, (a4)\n        sw      t5, (a5)\n        ret\nendfunc\n\nfunc ff_llvidenc_sub_left_predict_rvv, zve32x\n        lpad    0\n        li      a5, -0x80\n        sub     a2, a2, a3\n1:\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli t0, t3, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t3, t3, t0\n        vle8.v  v8, (a0)\n        add     a1, a1, t0\n        vslide1up.vx    v24, v16, a5\n        vadd.vv v8, v8, v16\n        lb      a5, -1(a1)\n        vsub.vv v8, v8, v24\n        vse8.v  v8, (a0)\n        add     a0, a0, t0\n        bnez    t3, 2b\n\n        add     a1, a1, a2\n        bnez    a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "71db4f3cc1a682cab77343707d383d22aa4b426b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71db4f3cc1a682cab77343707d383d22aa4b426b/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 41, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:3", "text": "sub     t3, t3, t0\n        vle8.v  v8, (a0)\n        add     a1, a1, t0\n        vslide1up.vx    v24, v16, a5\n        vadd.vv v8, v8, v16\n        lb      a5, -1(a1)\n        vsub.vv v8, v8, v24\n        vse8.v  v8, (a0)\n        add     a0, a0, t0\n        bnez    t3, 2b\n\n        add     a1, a1, a2\n        bnez    a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "71db4f3cc1a682cab77343707d383d22aa4b426b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/71db4f3cc1a682cab77343707d383d22aa4b426b/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 81, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvidenc_diff_bytes_rvv, zve32x\n        lpad    0\n1:\n        vsetvli t0, a3, e8, m8, ta, ma\n        vle8.v  v0, (a1)\n        sub     a3, a3, t0\n        vle8.v  v8, (a2)\n        add     a1, t0, a1\n        vsub.vv v8, v0, v8\n        add     a2, t0, a2\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_llvidenc_sub_left_predict_rvv, zve32x\n        lpad    0\n        li      a5, -0x80\n        sub     a2, a2, a3\n1:\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli t0, t3, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t3, t3, t0\n        vle8.v  v8, (a0)\n        add     a1, a1, t0\n        vslide1up.vx    v24, v16, a5\n        vadd.vv v8, v8, v16\n        lb      a5, -1(a1)\n        vsub.vv v8, v8, v24\n        vse8.v  v8, (a0)\n        add     a0, a0, t0\n        bnez    t3, 2b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "a4cb6c724b292877b47253c6c5ba3efd6a667753", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a4cb6c724b292877b47253c6c5ba3efd6a667753/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:2", "text": "lpad    0\n        li      a5, -0x80\n        sub     a2, a2, a3\n1:\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli t0, t3, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t3, t3, t0\n        vle8.v  v8, (a0)\n        add     a1, a1, t0\n        vslide1up.vx    v24, v16, a5\n        vadd.vv v8, v8, v16\n        lb      a5, -1(a1)\n        vsub.vv v8, v8, v24\n        vse8.v  v8, (a0)\n        add     a0, a0, t0\n        bnez    t3, 2b\n\n        add     a1, a1, a2\n        bnez    a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "a4cb6c724b292877b47253c6c5ba3efd6a667753", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a4cb6c724b292877b47253c6c5ba3efd6a667753/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 41, "line_end": 65}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvidenc_diff_bytes_rvv, zve32x\n        lpad    0\n1:\n        vsetvli t0, a3, e8, m8, ta, ma\n        vle8.v  v0, (a1)\n        sub     a3, a3, t0\n        vle8.v  v8, (a2)\n        add     a1, t0, a1\n        vsub.vv v8, v0, v8\n        add     a2, t0, a2\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/llvidencdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_llvidenc_diff_bytes_rvv, zve32x\n1:\n        vsetvli t0, a3, e8, m8, ta, ma\n        vle8.v  v0, (a1)\n        sub     a3, a3, t0\n        vle8.v  v8, (a2)\n        add     a1, t0, a1\n        vsub.vv v8, v0, v8\n        add     a2, t0, a2\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/llvidencdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/llvidencdsp_rvv.S", "line_start": 1, "line_end": 37}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_lpc_apply_welch_window_rvv, zve64d, zba\n        lpad    0\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        addi      t2, a1, -1\n        vfcvt.f.xu.v v0, v0\n        li        t3, 2\n        fcvt.d.l  ft2, t2\n        srai      t1, a1, 1\n        fcvt.d.l  ft3, t3\n        li        t4, 1\n        fdiv.d    ft0, ft3, ft2    # ft0 = c = 2. / (len - 1)\n        fcvt.d.l  fa1, t4         # fa1 = 1.\n        fsub.d    ft1, ft0, fa1\n        vfrsub.vf v0, v0, ft1    # v0[i] = c - i - 1.\n1:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0  # no fused multipy-add as v0 is reused\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/lpc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:2", "text": "vfmul.vv  v16, v0, v0  # no fused multipy-add as v0 is reused\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8\n2:\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        srai      t1, a1, 1\n        vfcvt.f.xu.v v0, v0\n        fcvt.d.l  ft1, t1\n        fsub.d    ft1, ft0, ft1    # ft1 = c - (len / 2)\n        vfadd.vf  v0, v0, ft1     # v0[i] = c - (len / 2) + i\n3:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, b\n        lpad    0\n        vtype_vli t1, a2, t2, e64, ta, ma, 1\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/lpc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:3", "text": "vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, b\n        lpad    0\n        vtype_vli t1, a2, t2, e64, ta, ma, 1\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]\n        addi      a1, a1, -1\n        vfslide1down.vf v0, v0, ft1\n        addi      a0, a0, 8\n        bgt       a1, a2, 1b   # while (len > lag);\n2:\n        vfmv.f.s  ft0, v0\n        vsetvli   zero, a1, e64, m8, tu, ma\n        vfmacc.vf v16, ft0, v0\n        addi      a1, a1, -1\n        vslide1down.vx v0, v0, zero\n        bnez      a1, 2b       # while (len > 0);\n\n        vsetvli   zero, a2, e64, m8, ta, ma\n        vse64.v   v16, (a3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/lpc_rvv.S", "line_start": 81, "line_end": 121}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_lpc_apply_welch_window_rvv, zve64d, zba\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        addi      t2, a1, -1\n        vfcvt.f.xu.v v0, v0\n        li        t3, 2\n        fcvt.d.l  ft2, t2\n        srai      t1, a1, 1\n        fcvt.d.l  ft3, t3\n        li        t4, 1\n        fdiv.d    ft0, ft3, ft2    # ft0 = c = 2. / (len - 1)\n        fcvt.d.l  fa1, t4         # fa1 = 1.\n        fsub.d    ft1, ft0, fa1\n        vfrsub.vf v0, v0, ft1    # v0[i] = c - i - 1.\n1:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0  # no fused multipy-add as v0 is reused\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/lpc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:2", "text": "sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8\n2:\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        srai      t1, a1, 1\n        vfcvt.f.xu.v v0, v0\n        fcvt.d.l  ft1, t1\n        fsub.d    ft1, ft0, ft1    # ft1 = c - (len / 2)\n        vfadd.vf  v0, v0, ft1     # v0[i] = c - (len / 2) + i\n3:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, b\n        vtype_vli t1, a2, t2, e64, ta, ma, 1\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/lpc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:3", "text": "vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, b\n        vtype_vli t1, a2, t2, e64, ta, ma, 1\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]\n        addi      a1, a1, -1\n        vfslide1down.vf v0, v0, ft1\n        addi      a0, a0, 8\n        bgt       a1, a2, 1b   # while (len > lag);\n2:\n        vfmv.f.s  ft0, v0\n        vsetvli   zero, a1, e64, m8, tu, ma\n        vfmacc.vf v16, ft0, v0\n        addi      a1, a1, -1\n        vslide1down.vx v0, v0, zero\n        bnez      a1, 2b       # while (len > 0);\n\n        vsetvli   zero, a2, e64, m8, ta, ma\n        vse64.v   v16, (a3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/lpc_rvv.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_lpc_apply_welch_window_rvv, zve64d\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        addi      t2, a1, -1\n        vfcvt.f.xu.v v0, v0\n        li        t3, 2\n        fcvt.d.l  ft2, t2\n        srai      t1, a1, 1\n        fcvt.d.l  ft3, t3\n        li        t4, 1\n        fdiv.d    ft0, ft3, ft2    # ft0 = c = 2. / (len - 1)\n        fcvt.d.l  fa1, t4         # fa1 = 1.\n        fsub.d    ft1, ft0, fa1\n        vfrsub.vf v0, v0, ft1    # v0[i] = c - i - 1.\n1:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0  # no fused multipy-add as v0 is reused\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavcodec/riscv/lpc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:2", "text": "sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8\n2:\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        srai      t1, a1, 1\n        vfcvt.f.xu.v v0, v0\n        fcvt.d.l  ft1, t1\n        fsub.d    ft1, ft0, ft1    # ft1 = c - (len / 2)\n        vfadd.vf  v0, v0, ft1     # v0[i] = c - (len / 2) + i\n3:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, zbb\n        vtype_vli t1, a2, t2, e64, ta, ma, 1\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavcodec/riscv/lpc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:3", "text": "vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, zbb\n        vtype_vli t1, a2, t2, e64, ta, ma, 1\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]\n        addi      a1, a1, -1\n        vfslide1down.vf v0, v0, ft1\n        addi      a0, a0, 8\n        bgt       a1, a2, 1b   # while (len > lag);\n2:\n        vfmv.f.s  ft0, v0\n        vsetvli   zero, a1, e64, m8, tu, ma\n        vfmacc.vf v16, ft0, v0\n        addi      a1, a1, -1\n        vslide1down.vx v0, v0, zero\n        bnez      a1, 2b       # while (len > 0);\n\n        vsetvli   zero, a2, e64, m8, ta, ma\n        vse64.v   v16, (a3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavcodec/riscv/lpc_rvv.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:2", "text": "sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8\n2:\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        srai      t1, a1, 1\n        vfcvt.f.xu.v v0, v0\n        fcvt.d.l  ft1, t1\n        fsub.d    ft1, ft0, ft1    # ft1 = c - (len / 2)\n        vfadd.vf  v0, v0, ft1     # v0[i] = c - (len / 2) + i\n3:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, zbb\n        addi      a2, a2, 1\n        vtype_vli t1, a2, t2, e64, ta, ma\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "c53d42380d3f57c318fa76329c8fdcb47a05093a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c53d42380d3f57c318fa76329c8fdcb47a05093a/libavcodec/riscv/lpc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:3", "text": "vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d, zbb\n        addi      a2, a2, 1\n        vtype_vli t1, a2, t2, e64, ta, ma\n        li        t0, 1\n        vsetvl    zero, a2, t1\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]\n        addi      a1, a1, -1\n        vfslide1down.vf v0, v0, ft1\n        addi      a0, a0, 8\n        bgt       a1, a2, 1b   # while (len > lag);\n2:\n        vfmv.f.s  ft0, v0\n        vsetvli   zero, a1, e64, m8, tu, ma\n        vfmacc.vf v16, ft0, v0\n        addi      a1, a1, -1\n        vslide1down.vx v0, v0, zero\n        bnez      a1, 2b       # while (len > 0);\n\n        vsetvli   zero, a2, e64, m8, ta, ma\n        vse64.v   v16, (a3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "c53d42380d3f57c318fa76329c8fdcb47a05093a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c53d42380d3f57c318fa76329c8fdcb47a05093a/libavcodec/riscv/lpc_rvv.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:2", "text": "sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8\n2:\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        srai      t1, a1, 1\n        vfcvt.f.xu.v v0, v0\n        fcvt.d.l  ft1, t1\n        fsub.d    ft1, ft0, ft1    # ft1 = c - (len / 2)\n        vfadd.vf  v0, v0, ft1     # v0[i] = c - (len / 2) + i\n3:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvli   zero, a2, e64, m8, ta, ma\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "af20fb9c4eb81383d4ef558d20af317e93b5acc8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af20fb9c4eb81383d4ef558d20af317e93b5acc8/libavcodec/riscv/lpc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:3", "text": "vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d\n        addi      a2, a2, 1\n        li        t0, 1\n        vsetvli   zero, a2, e64, m8, ta, ma\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]\n        addi      a1, a1, -1\n        vfslide1down.vf v0, v0, ft1\n        addi      a0, a0, 8\n        bgt       a1, a2, 1b   # while (len > lag);\n2:\n        vfmv.f.s  ft0, v0\n        vsetvli   zero, a1, e64, m8, tu, ma\n        vfmacc.vf v16, ft0, v0\n        addi      a1, a1, -1\n        vslide1down.vx v0, v0, zero\n        bnez      a1, 2b       # while (len > 0);\n\n        vsetvli   zero, a2, e64, m8, ta, ma\n        vse64.v   v16, (a3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "af20fb9c4eb81383d4ef558d20af317e93b5acc8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af20fb9c4eb81383d4ef558d20af317e93b5acc8/libavcodec/riscv/lpc_rvv.S", "line_start": 81, "line_end": 118}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:2", "text": "sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfsub.vf  v0, v0, ft2     # v0 -= vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 1b\n\n        andi      t1, a1, 1\n        beqz      t1, 2f\n\n        sd        zero, (a2)\n        addi      a0, a0, 4\n        addi      a2, a2, 8\n2:\n        vsetvli   t0, zero, e64, m8, ta, ma\n        vid.v     v0\n        srai      t1, a1, 1\n        vfcvt.f.xu.v v0, v0\n        fcvt.d.l  ft1, t1\n        fsub.d    ft1, ft0, ft1    # ft1 = c - (len / 2)\n        vfadd.vf  v0, v0, ft1     # v0[i] = c - (len / 2) + i\n3:\n        vsetvli   t0, t1, e64, m8, ta, ma\n        vfmul.vv  v16, v0, v0\n        sub       t1, t1, t0\n        vle32.v   v8, (a0)\n        fcvt.d.l  ft2, t0\n        vfrsub.vf v16, v16, fa1  # v16 = 1. - w * w\n        sh2add    a0, t0, a0\n        vsetvli   zero, zero, e32, m4, ta, ma\n        vfwcvt.f.x.v v24, v8\n        vsetvli   zero, zero, e64, m8, ta, ma\n        vfadd.vf  v0, v0, ft2     # v0 += vl\n        vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d\n        li        t0, 1\n        vsetvli   zero, a2, e64, m8, ta, ma\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/lpc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/lpc_rvv.S:3", "text": "vfmul.vv  v8, v24, v16\n        vse64.v   v8, (a2)\n        sh3add    a2, t0, a2\n        bnez      t1, 3b\n\n        ret\nendfunc\n\nfunc ff_lpc_compute_autocorr_rvv, zve64d\n        li        t0, 1\n        vsetvli   zero, a2, e64, m8, ta, ma\n        fcvt.d.l  ft0, t0\n        vle64.v   v0, (a0)\n        sh3add    a0, a2, a0   # data += lag\n        vfmv.v.f  v16, ft0\n        bge       a2, a1, 2f\n1:\n        vfmv.f.s  ft0, v0\n        fld       ft1, (a0)    # ft1 = data[lag + i]\n        vfmacc.vf v16, ft0, v0 # v16[j] += data[i] * data[i + j]\n        addi      a1, a1, -1\n        vfslide1down.vf v0, v0, ft1\n        addi      a0, a0, 8\n        bgt       a1, a2, 1b   # while (len > lag);\n2:\n        vfmv.f.s  ft0, v0\n        vsetvli   zero, a1, e64, m8, tu, ma\n        vfmacc.vf v16, ft0, v0\n        addi      a1, a1, -1\n        vslide1down.vx v0, v0, zero\n        bnez      a1, 2b       # while (len > 0);\n\n        vsetvli   zero, a2, e64, m8, ta, ma\n        vse64.v   v16, (a3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/lpc_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/lpc_rvv.S", "line_start": 81, "line_end": 117}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro pix_abs_ret\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_pix_abs16_rvv, zve32x\n        lpad    0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_rvv, zve32x\n        lpad    0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:2", "text": "vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_rvv, zve32x\n        lpad    0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs16_x2_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        li              t5, 1\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 17, e8, m2, tu, ma\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vslide1down.vx  v24, v12, t5\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_x2_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:3", "text": "vslide1down.vx  v24, v12, t5\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_x2_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        li              t5, 1\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 9, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vslide1down.vx  v24, v12, t5\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs16_y2_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m2, tu, ma\n        add             a2, a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:4", "text": "endfunc\n\nfunc ff_pix_abs16_y2_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m2, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_y2_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m1, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_sse16_rvv, zve32x\n        lpad    0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:5", "text": "vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m1, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_sse16_rvv, zve32x\n        lpad    0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\nfunc ff_sse8_rvv, zve32x\n        lpad    0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:6", "text": "vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\nfunc ff_sse4_rvv, zve32x\n        lpad    0\n        vsetivli        t0, 4, e32, m1, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf4, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, mf2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m1, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\n.macro vabsaddu dst src tmp\n        vneg.v          \\tmp, \\src\n        vmax.vv         \\tmp, \\src, \\tmp\n        vwaddu.wv       \\dst, \\dst, \\tmp\n.endm\n\n.macro  vsad_vsse16 type\n        lpad    0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:7", "text": "ret\nendfunc\n\n.macro vabsaddu dst src tmp\n        vneg.v          \\tmp, \\src\n        vmax.vv         \\tmp, \\src, \\tmp\n        vwaddu.wv       \\dst, \\dst, \\tmp\n.endm\n\n.macro  vsad_vsse16 type\n        lpad    0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m2, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v28, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v28, v28\n.endif\n\n        add             a1, a1, a3\n        add             a2, a2, a3\n        add             t1, t1, a3\n        add             t2, t2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse8 type\n        lpad    0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:8", "text": "bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse8 type\n        lpad    0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v28, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v28, v28\n.endif\n\n        add             a1, a1, a3\n        add             a2, a2, a3\n        add             t1, t1, a3\n        add             t2, t2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse_intra16 type\n        lpad    0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:9", "text": "vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse_intra16 type\n        lpad    0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse_intra8 type\n        lpad    0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:10", "text": "lpad    0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_vsse16_rvv, zve32x\n        vsad_vsse16 square\nendfunc\n\nfunc ff_vsse8_rvv, zve32x\n        vsad_vsse8 square\nendfunc\n\nfunc ff_vsse_intra16_rvv, zve32x\n        vsad_vsse_intra16 square\nendfunc\n\nfunc ff_vsse_intra8_rvv, zve32x\n        vsad_vsse_intra8 square\nendfunc\n\nfunc ff_vsad16_rvv, zve32x\n        vsad_vsse16 abs\nendfunc\n\nfunc ff_vsad8_rvv, zve32x\n        vsad_vsse8 abs\nendfunc\n\nfunc ff_vsad_intra16_rvv, zve32x\n        vsad_vsse_intra16 abs\nendfunc\n\nfunc ff_vsad_intra8_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:11", "text": "vsad_vsse_intra16 square\nendfunc\n\nfunc ff_vsse_intra8_rvv, zve32x\n        vsad_vsse_intra8 square\nendfunc\n\nfunc ff_vsad16_rvv, zve32x\n        vsad_vsse16 abs\nendfunc\n\nfunc ff_vsad8_rvv, zve32x\n        vsad_vsse8 abs\nendfunc\n\nfunc ff_vsad_intra16_rvv, zve32x\n        vsad_vsse_intra16 abs\nendfunc\n\nfunc ff_vsad_intra8_rvv, zve32x\n        vsad_vsse_intra8 abs\nendfunc\n\nfunc ff_nsse16_rvv, zve32x\n        lpad    0\n\n        .macro squarediff16\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        .endm\n\n        .macro gradiff16 srcx srcv\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v8, (\\srcx)\n        vslide1down.vx  v0, \\srcv, t5\n        vslide1down.vx  v16, v8, t5\n        vwsubu.vv       v20, \\srcv, v0\n        vwsubu.wv       v0, v20, v8\n        vwaddu.wv       v20, v0, v16\n        vsetivli        zero, 15, e16, m2, tu, ma\n        vneg.v          v0, v20\n        vmax.vv         v0, v20, v0\n        .endm\n\n        csrwi           vxrm, 0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        li              t5, 1\n        vmv.v.x         v24, zero\n        vmv.v.x         v28, zero\n1:\n        add             t1, a1, a3\n        add             t2, a2, a3\n        addi            a4, a4, -1\n        squarediff16\n        gradiff16       t1, v4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:12", "text": "vwsubu.vv       v20, \\srcv, v0\n        vwsubu.wv       v0, v20, v8\n        vwaddu.wv       v20, v0, v16\n        vsetivli        zero, 15, e16, m2, tu, ma\n        vneg.v          v0, v20\n        vmax.vv         v0, v20, v0\n        .endm\n\n        csrwi           vxrm, 0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        li              t5, 1\n        vmv.v.x         v24, zero\n        vmv.v.x         v28, zero\n1:\n        add             t1, a1, a3\n        add             t2, a2, a3\n        addi            a4, a4, -1\n        squarediff16\n        gradiff16       t1, v4\n        vwaddu.wv       v28, v28, v0\n        gradiff16       t2, v12\n        vwsubu.wv       v28, v28, v0\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        squarediff16\n        vsetivli        zero, 16, e32, m4, tu, ma\n        vmv.s.x         v0, zero\n        vmv.s.x         v4, zero\n        vredsum.vs      v0, v24, v0\n        vredsum.vs      v4, v28, v4\n        vmv.x.s         t1, v0\n        vmv.x.s         t2, v4\n        srai            t3, t2, 31\n        xor             t2, t3, t2\n        sub             t2, t2, t3\n        mul             t2, t2, a0\n        add             a0, t2, t1\n\n        ret\nendfunc\n\nfunc ff_nsse8_rvv, zve32x\n        lpad    0\n\n        .macro squarediff8\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        .endm\n\n        .macro gradiff8 srcx srcv\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v8, (\\srcx)\n        vslide1down.vx  v0, \\srcv, t5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:13", "text": "ret\nendfunc\n\nfunc ff_nsse8_rvv, zve32x\n        lpad    0\n\n        .macro squarediff8\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        .endm\n\n        .macro gradiff8 srcx srcv\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v8, (\\srcx)\n        vslide1down.vx  v0, \\srcv, t5\n        vslide1down.vx  v16, v8, t5\n        vwsubu.vv       v20, \\srcv, v0\n        vwsubu.wv       v0, v20, v8\n        vwaddu.wv       v20, v0, v16\n        vsetivli        zero, 7, e16, m1, tu, ma\n        vneg.v          v0, v20\n        vmax.vv         v0, v20, v0\n        .endm\n\n        csrwi           vxrm, 0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        li              t5, 1\n        vmv.v.x         v24, zero\n        vmv.v.x         v28, zero\n1:\n        add             t1, a1, a3\n        add             t2, a2, a3\n        addi            a4, a4, -1\n        squarediff8\n        gradiff8        t1, v4\n        vwaddu.wv       v28, v28, v0\n        gradiff8        t2, v12\n        vwsubu.wv       v28, v28, v0\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        squarediff8\n        vsetivli        zero, 8, e32, m2, tu, ma\n        vmv.s.x         v0, zero\n        vmv.s.x         v4, zero\n        vredsum.vs      v0, v24, v0\n        vredsum.vs      v4, v28, v4\n        vmv.x.s         t1, v0\n        vmv.x.s         t2, v4\n        srai            t3, t2, 31\n        xor             t2, t3, t2\n        sub             t2, t2, t3\n        mul             t2, t2, a0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:14", "text": "gradiff8        t1, v4\n        vwaddu.wv       v28, v28, v0\n        gradiff8        t2, v12\n        vwsubu.wv       v28, v28, v0\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        squarediff8\n        vsetivli        zero, 8, e32, m2, tu, ma\n        vmv.s.x         v0, zero\n        vmv.s.x         v4, zero\n        vredsum.vs      v0, v24, v0\n        vredsum.vs      v4, v28, v4\n        vmv.x.s         t1, v0\n        vmv.x.s         t2, v4\n        srai            t3, t2, 31\n        xor             t2, t3, t2\n        sub             t2, t2, t3\n        mul             t2, t2, a0\n        add             a0, t2, t1\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/me_cmp_rvv.S", "line_start": 521, "line_end": 544}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro pix_abs_ret\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_pix_abs16_rvv, zve32x\n        lpad    0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_rvv, zve32x\n        lpad    0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/me_cmp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro pix_abs_ret\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_pix_abs16_rvv, zve32x\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_rvv, zve32x\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:2", "text": "vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_rvv, zve32x\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs16_x2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        li              t5, 1\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 17, e8, m2, tu, ma\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vslide1down.vx  v24, v12, t5\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_x2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        li              t5, 1\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 9, e8, m1, tu, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:3", "text": "vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_x2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        li              t5, 1\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 9, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vslide1down.vx  v24, v12, t5\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs16_y2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m2, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:4", "text": "vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m2, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_y2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m1, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_sse16_rvv, zve32x\n        vsetivli        t0, 16, e32, m4, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vwmacc.vv       v24, v16, v16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:5", "text": "vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_sse16_rvv, zve32x\n        vsetivli        t0, 16, e32, m4, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\nfunc ff_sse8_rvv, zve32x\n        vsetivli        t0, 8, e32, m2, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\nfunc ff_sse4_rvv, zve32x\n        vsetivli        t0, 4, e32, m1, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf4, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:6", "text": "vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\nfunc ff_sse4_rvv, zve32x\n        vsetivli        t0, 4, e32, m1, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf4, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, mf2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m1, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\n.macro vabsaddu dst src tmp\n        vneg.v          \\tmp, \\src\n        vmax.vv         \\tmp, \\src, \\tmp\n        vwaddu.wv       \\dst, \\dst, \\tmp\n.endm\n\n.macro  vsad_vsse16 type\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m2, tu, ma\n\n.ifc \\type,abs", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:7", "text": ".macro  vsad_vsse16 type\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m2, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v28, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v28, v28\n.endif\n\n        add             a1, a1, a3\n        add             a2, a2, a3\n        add             t1, t1, a3\n        add             t2, t2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse8 type\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v28, v12\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:8", "text": "addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v28, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v28, v28\n.endif\n\n        add             a1, a1, a3\n        add             a2, a2, a3\n        add             t1, t1, a3\n        add             t2, t2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse_intra16 type\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:9", "text": "vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m4, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\n.macro  vsad_vsse_intra8 type\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        add             t1, a1, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (t1)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_vsse16_rvv, zve32x\n        vsad_vsse16 square", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:10", "text": ".ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_vsse16_rvv, zve32x\n        vsad_vsse16 square\nendfunc\n\nfunc ff_vsse8_rvv, zve32x\n        vsad_vsse8 square\nendfunc\n\nfunc ff_vsse_intra16_rvv, zve32x\n        vsad_vsse_intra16 square\nendfunc\n\nfunc ff_vsse_intra8_rvv, zve32x\n        vsad_vsse_intra8 square\nendfunc\n\nfunc ff_vsad16_rvv, zve32x\n        vsad_vsse16 abs\nendfunc\n\nfunc ff_vsad8_rvv, zve32x\n        vsad_vsse8 abs\nendfunc\n\nfunc ff_vsad_intra16_rvv, zve32x\n        vsad_vsse_intra16 abs\nendfunc\n\nfunc ff_vsad_intra8_rvv, zve32x\n        vsad_vsse_intra8 abs\nendfunc\n\nfunc ff_nsse16_rvv, zve32x\n        .macro squarediff16\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:11", "text": "endfunc\n\nfunc ff_vsad_intra16_rvv, zve32x\n        vsad_vsse_intra16 abs\nendfunc\n\nfunc ff_vsad_intra8_rvv, zve32x\n        vsad_vsse_intra8 abs\nendfunc\n\nfunc ff_nsse16_rvv, zve32x\n        .macro squarediff16\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        .endm\n\n        .macro gradiff16 srcx srcv\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v8, (\\srcx)\n        vslide1down.vx  v0, \\srcv, t5\n        vslide1down.vx  v16, v8, t5\n        vwsubu.vv       v20, \\srcv, v0\n        vwsubu.wv       v0, v20, v8\n        vwaddu.wv       v20, v0, v16\n        vsetivli        zero, 15, e16, m2, tu, ma\n        vneg.v          v0, v20\n        vmax.vv         v0, v20, v0\n        .endm\n\n        csrwi           vxrm, 0\n        vsetivli        t0, 16, e32, m4, ta, ma\n        addi            a4, a4, -1\n        li              t5, 1\n        vmv.v.x         v24, zero\n        vmv.v.x         v28, zero\n1:\n        add             t1, a1, a3\n        add             t2, a2, a3\n        addi            a4, a4, -1\n        squarediff16\n        gradiff16       t1, v4\n        vwaddu.wv       v28, v28, v0\n        gradiff16       t2, v12\n        vwsubu.wv       v28, v28, v0\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        squarediff16\n        vsetivli        zero, 16, e32, m4, tu, ma\n        vmv.s.x         v0, zero\n        vmv.s.x         v4, zero\n        vredsum.vs      v0, v24, v0\n        vredsum.vs      v4, v28, v4\n        vmv.x.s         t1, v0\n        vmv.x.s         t2, v4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:12", "text": "add             t1, a1, a3\n        add             t2, a2, a3\n        addi            a4, a4, -1\n        squarediff16\n        gradiff16       t1, v4\n        vwaddu.wv       v28, v28, v0\n        gradiff16       t2, v12\n        vwsubu.wv       v28, v28, v0\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        squarediff16\n        vsetivli        zero, 16, e32, m4, tu, ma\n        vmv.s.x         v0, zero\n        vmv.s.x         v4, zero\n        vredsum.vs      v0, v24, v0\n        vredsum.vs      v4, v28, v4\n        vmv.x.s         t1, v0\n        vmv.x.s         t2, v4\n        srai            t3, t2, 31\n        xor             t2, t3, t2\n        sub             t2, t2, t3\n        mul             t2, t2, a0\n        add             a0, t2, t1\n\n        ret\nendfunc\n\nfunc ff_nsse8_rvv, zve32x\n        .macro squarediff8\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        .endm\n\n        .macro gradiff8 srcx srcv\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v8, (\\srcx)\n        vslide1down.vx  v0, \\srcv, t5\n        vslide1down.vx  v16, v8, t5\n        vwsubu.vv       v20, \\srcv, v0\n        vwsubu.wv       v0, v20, v8\n        vwaddu.wv       v20, v0, v16\n        vsetivli        zero, 7, e16, m1, tu, ma\n        vneg.v          v0, v20\n        vmax.vv         v0, v20, v0\n        .endm\n\n        csrwi           vxrm, 0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        li              t5, 1\n        vmv.v.x         v24, zero\n        vmv.v.x         v28, zero\n1:\n        add             t1, a1, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:13", "text": "vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v8, (\\srcx)\n        vslide1down.vx  v0, \\srcv, t5\n        vslide1down.vx  v16, v8, t5\n        vwsubu.vv       v20, \\srcv, v0\n        vwsubu.wv       v0, v20, v8\n        vwaddu.wv       v20, v0, v16\n        vsetivli        zero, 7, e16, m1, tu, ma\n        vneg.v          v0, v20\n        vmax.vv         v0, v20, v0\n        .endm\n\n        csrwi           vxrm, 0\n        vsetivli        t0, 8, e32, m2, ta, ma\n        addi            a4, a4, -1\n        li              t5, 1\n        vmv.v.x         v24, zero\n        vmv.v.x         v28, zero\n1:\n        add             t1, a1, a3\n        add             t2, a2, a3\n        addi            a4, a4, -1\n        squarediff8\n        gradiff8        t1, v4\n        vwaddu.wv       v28, v28, v0\n        gradiff8        t2, v12\n        vwsubu.wv       v28, v28, v0\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        squarediff8\n        vsetivli        zero, 8, e32, m2, tu, ma\n        vmv.s.x         v0, zero\n        vmv.s.x         v4, zero\n        vredsum.vs      v0, v24, v0\n        vredsum.vs      v4, v28, v4\n        vmv.x.s         t1, v0\n        vmv.x.s         t2, v4\n        srai            t3, t2, 31\n        xor             t2, t3, t2\n        sub             t2, t2, t3\n        mul             t2, t2, a0\n        add             a0, t2, t1\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "a7ad76fbbfae29eaf8c9372b34051edf4f835fd9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a7ad76fbbfae29eaf8c9372b34051edf4f835fd9/libavcodec/riscv/me_cmp_rvv.S", "line_start": 481, "line_end": 527}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:10", "text": ".ifc \\type,abs\n        vabsaddu        v24, v16, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v16, v16\n.endif\n\n        add             a1, a1, a3\n        add             t1, t1, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_vsse16_rvv, zve32x\n        vsad_vsse16 square\nendfunc\n\nfunc ff_vsse8_rvv, zve32x\n        vsad_vsse8 square\nendfunc\n\nfunc ff_vsse_intra16_rvv, zve32x\n        vsad_vsse_intra16 square\nendfunc\n\nfunc ff_vsse_intra8_rvv, zve32x\n        vsad_vsse_intra8 square\nendfunc\n\nfunc ff_vsad16_rvv, zve32x\n        vsad_vsse16 abs\nendfunc\n\nfunc ff_vsad8_rvv, zve32x\n        vsad_vsse8 abs\nendfunc\n\nfunc ff_vsad_intra16_rvv, zve32x\n        vsad_vsse_intra16 abs\nendfunc\n\nfunc ff_vsad_intra8_rvv, zve32x\n        vsad_vsse_intra8 abs\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "9b90d0d36ad1ff6bed5007fa71e6e661d0c20bbd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9b90d0d36ad1ff6bed5007fa71e6e661d0c20bbd/libavcodec/riscv/me_cmp_rvv.S", "line_start": 361, "line_end": 409}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:8", "text": "addi            a4, a4, -1\n        add             t1, a1, a3\n        add             t2, a2, a3\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v8, (t1)\n        vle8.v          v12, (a2)\n        vle8.v          v16, (t2)\n        addi            a4, a4, -1\n        vwsubu.vv       v28, v4, v12\n        vwsubu.wv       v12, v28, v8\n        vwaddu.wv       v28, v12, v16\n        vsetvli         zero, zero, e16, m1, tu, ma\n\n.ifc \\type,abs\n        vabsaddu        v24, v28, v12\n.endif\n.ifc \\type,square\n        vwmacc.vv       v24, v28, v28\n.endif\n\n        add             a1, a1, a3\n        add             a2, a2, a3\n        add             t1, t1, a3\n        add             t2, t2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_vsse16_rvv, zve32x\n        vsad_vsse16 square\nendfunc\n\nfunc ff_vsse8_rvv, zve32x\n        vsad_vsse8 square\nendfunc\n\nfunc ff_vsad16_rvv, zve32x\n        vsad_vsse16 abs\nendfunc\n\nfunc ff_vsad8_rvv, zve32x\n        vsad_vsse8 abs\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "925b55a5e889ed585f331dd09b7f7eb9f8299634", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/925b55a5e889ed585f331dd09b7f7eb9f8299634/libavcodec/riscv/me_cmp_rvv.S", "line_start": 281, "line_end": 331}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:9", "text": "func ff_vsse8_rvv, zve32x\n        vsad_vsse8 square\nendfunc\n\nfunc ff_vsad16_rvv, zve32x\n        vsad_vsse16 abs\nendfunc\n\nfunc ff_vsad8_rvv, zve32x\n        vsad_vsse8 abs\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "925b55a5e889ed585f331dd09b7f7eb9f8299634", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/925b55a5e889ed585f331dd09b7f7eb9f8299634/libavcodec/riscv/me_cmp_rvv.S", "line_start": 321, "line_end": 331}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:6", "text": "vsetvli         zero, zero, e16, m1, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m2, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc\n\nfunc ff_sse4_rvv, zve32x\n        vsetivli        t0, 4, e32, m1, ta, ma\n        vmv.v.x         v24, zero\n        vmv.s.x         v0, zero\n1:\n        vsetvli         zero, zero, e8, mf4, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        vsetvli         zero, zero, e16, mf2, tu, ma\n        vwmacc.vv       v24, v16, v16\n        add             a1, a1, a3\n        add             a2, a2, a3\n        bnez            a4, 1b\n\n        vsetvli         zero, zero, e32, m1, tu, ma\n        vredsum.vs      v0, v24, v0\n        vmv.x.s         a0, v0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "9cb8f262f2bcc9396f7c78e527f0889ec72a89e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb8f262f2bcc9396f7c78e527f0889ec72a89e1/libavcodec/riscv/me_cmp_rvv.S", "line_start": 201, "line_end": 233}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:4", "text": "vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m2, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_y2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        add             t1, a2, a3\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v12, (a2)\n        vle8.v          v24, (t1)\n        addi            a4, a4, -1\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        vwsubu.vv       v20, v12, v4\n        add             a1, a1, a3\n        vsetvli         zero, zero, e16, m1, tu, ma\n        add             a2, a2, a3\n        vmax.vv         v16, v16, v20\n        add             t1, t1, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "37463d7979ed562bf52051d092c6f5ae2748d0c2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/37463d7979ed562bf52051d092c6f5ae2748d0c2/libavcodec/riscv/me_cmp_rvv.S", "line_start": 121, "line_end": 167}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:3", "text": "vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_x2_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetivli        zero, 1, e32, m1, ta, ma\n        li              t5, 1\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 9, e8, m1, tu, ma\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vslide1down.vx  v24, v12, t5\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vaaddu.vv       v12, v12, v24\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "f1ec475f6685ba07c3660d197213cb360462396e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f1ec475f6685ba07c3660d197213cb360462396e/libavcodec/riscv/me_cmp_rvv.S", "line_start": 81, "line_end": 117}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/me_cmp_rvv.S:2", "text": "vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pix_abs8_rvv, zve32x\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a1)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a1, a1, a3\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/me_cmp_rvv.S", "license": "LGPL-2.1", "commit": "b41e115ddec4f2566246919a42990f529766f436", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b41e115ddec4f2566246919a42990f529766f436/libavcodec/riscv/me_cmp_rvv.S", "line_start": 41, "line_end": 67}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideo_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_h263_dct_unquantize_intra_rvv\n        lpad    0\n        addi    a1, a1, 2\n        beqz    a4, 1f\n        slli    a3, a3, 1\n        mv      a4, zero\n        j       2f\nendfunc\n\nfunc ff_h263_dct_unquantize_inter_rvv, zve32x, zba\n        lpad    0\n        addi    a2, a2, 1\n1:\n        addi    a4, a3, -1\n        slli    a3, a3, 1\n        ori     a4, a4, 1\n2:\n        vsetvli t0, a2, e16, m8, ta, mu\n        vle16.v v8, (a1)\n        sub     a2, a2, t0\n        vmv.v.x v16, a4\n        vmslt.vi    v0, v8, 0\n        vneg.v  v16, v16, v0.t\n        vmsne.vi    v0, v8, 0\n        vmadd.vx    v8, a3, v16, v0.t\n        vse16.v v8, (a1)\n        sh1add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideo_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/mpegvideo_rvv.S", "line_start": 1, "line_end": 53}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.equ    BASIS_SHIFT, 16\n.equ    RECON_SHIFT,  6\n\nfunc ff_try_8x8basis_rvv, zve32x, b\n        li      t1, 64\n        csrwi   vxrm, 0\n        vsetvli     t0, t1, e32, m8, ta, ma\n        vmv.v.x     v24, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vle16.v     v4, (a2)\n        sub     t1, t1, t0\n        vwmul.vx    v16, v4, a3\n        sh1add  a2, t0, a2\n        vle16.v     v8, (a0)\n        sh1add  a0, t0, a0\n        vnclip.wi   v4, v16, BASIS_SHIFT - RECON_SHIFT\n        vle16.v     v12, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv     v4, v8, v4\n        vsra.vi     v4, v4, RECON_SHIFT\n        vwmul.vv    v16, v12, v4\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vmul.vv     v16, v16, v16\n        vsra.vi     v16, v16, 4\n        vadd.vv     v24, v24, v16\n        bnez    t1, 1b\n\n        vredsum.vs  v1, v24, v1\n        vmv.x.s     a0, v1\n        srai    a0, a0, 2\n        ret\nendfunc\n\nfunc ff_add_8x8basis_rvv, zve32x, b\n        li      t1, 64\n        csrwi   vxrm, 0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:2", "text": "vle16.v     v12, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv     v4, v8, v4\n        vsra.vi     v4, v4, RECON_SHIFT\n        vwmul.vv    v16, v12, v4\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vmul.vv     v16, v16, v16\n        vsra.vi     v16, v16, 4\n        vadd.vv     v24, v24, v16\n        bnez    t1, 1b\n\n        vredsum.vs  v1, v24, v1\n        vmv.x.s     a0, v1\n        srai    a0, a0, 2\n        ret\nendfunc\n\nfunc ff_add_8x8basis_rvv, zve32x, b\n        li      t1, 64\n        csrwi   vxrm, 0\n1:\n        vsetvli     t0, t1, e16, m4, ta, ma\n        vle16.v     v4, (a1)\n        sub     t1, t1, t0\n        vwmul.vx    v16, v4, a2\n        sh1add  a1, t0, a1\n        vle16.v     v8, (a0)\n        vnclip.wi   v4, v16, BASIS_SHIFT - RECON_SHIFT\n        vadd.vv     v4, v8, v4\n        vse16.v     v4, (a0)\n        sh1add  a0, t0, a0\n        bnez    t1, 1b\n\n        ret\nendfunc\n\nfunc ff_pix_sum_rvv, zve64x, b\n        lpad    0\n        vsetivli    t0, 16, e16, m1, ta, ma\n        slli    t1, t0, 3\n        vlsseg2e64.v    v8, (a0), a1 # poor man's vlse128.v\n        li      t2, 16\n        vmv.s.x     v1, zero\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.vv   v16, v8, v12\n        beq     t0, t2, 2f # VLEN >= 256\n1:\n        sh3add  a0, a1, a0\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.wv   v16, v16, v8\n        vwaddu.wv   v16, v16, v12\n2:\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        zext.h      a0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:3", "text": "vlsseg2e64.v    v8, (a0), a1 # poor man's vlse128.v\n        li      t2, 16\n        vmv.s.x     v1, zero\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.vv   v16, v8, v12\n        beq     t0, t2, 2f # VLEN >= 256\n1:\n        sh3add  a0, a1, a0\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.wv   v16, v16, v8\n        vwaddu.wv   v16, v16, v12\n2:\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        zext.h      a0, a0\n        ret\nendfunc\n\nfunc ff_pix_norm1_rvv, zve64x\n        lpad    0\n        li      t1, 16\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v16, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     t0, t1, e64, m2, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        slli    t2, t0, 3\n        vsetvli     zero, t2, e8, m2, ta, ma\n        vwmulu.vv   v24, v8, v8\n        sub     t1, t1, t0\n        vwmulu.vv   v28, v10, v10\n        mul     t3, a1, t0\n        vsetvli     zero, zero, e16, m4, tu, ma\n        vwaddu.wv   v16, v16, v24\n        add     a0, t3, a0\n        vwaddu.wv   v16, v16, v28\n        bnez    t1, 1b\n\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 81, "line_end": 127}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.equ    BASIS_SHIFT, 16\n.equ    RECON_SHIFT,  6\n\nfunc ff_try_8x8basis_rvv, zve32x, b\n        li      t1, 64\n        csrwi   vxrm, 0\n        vsetvli     t0, t1, e32, m8, ta, ma\n        vmv.v.x     v24, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     zero, zero, e16, m4, ta, ma\n        vle16.v     v4, (a2)\n        sub     t1, t1, t0\n        vwmul.vx    v16, v4, a3\n        sh1add  a2, t0, a2\n        vle16.v     v8, (a0)\n        sh1add  a0, t0, a0\n        vnclip.wi   v4, v16, BASIS_SHIFT - RECON_SHIFT\n        vle16.v     v12, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv     v4, v8, v4\n        vsra.vi     v4, v4, RECON_SHIFT\n        vwmul.vv    v16, v12, v4\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vmul.vv     v16, v16, v16\n        vsra.vi     v16, v16, 4\n        vadd.vv     v24, v24, v16\n        bnez    t1, 1b\n\n        vredsum.vs  v1, v24, v1\n        vmv.x.s     a0, v1\n        srai    a0, a0, 2\n        ret\nendfunc\n\nfunc ff_pix_sum_rvv, zve64x, b\n        lpad    0\n        vsetivli    t0, 16, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "1907dd7f2335ba106b1d92070a497e818d734efd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1907dd7f2335ba106b1d92070a497e818d734efd/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:2", "text": "vle16.v     v12, (a1)\n        sh1add  a1, t0, a1\n        vadd.vv     v4, v8, v4\n        vsra.vi     v4, v4, RECON_SHIFT\n        vwmul.vv    v16, v12, v4\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vmul.vv     v16, v16, v16\n        vsra.vi     v16, v16, 4\n        vadd.vv     v24, v24, v16\n        bnez    t1, 1b\n\n        vredsum.vs  v1, v24, v1\n        vmv.x.s     a0, v1\n        srai    a0, a0, 2\n        ret\nendfunc\n\nfunc ff_pix_sum_rvv, zve64x, b\n        lpad    0\n        vsetivli    t0, 16, e16, m1, ta, ma\n        slli    t1, t0, 3\n        vlsseg2e64.v    v8, (a0), a1 # poor man's vlse128.v\n        li      t2, 16\n        vmv.s.x     v1, zero\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.vv   v16, v8, v12\n        beq     t0, t2, 2f # VLEN >= 256\n1:\n        sh3add  a0, a1, a0\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.wv   v16, v16, v8\n        vwaddu.wv   v16, v16, v12\n2:\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        zext.h      a0, a0\n        ret\nendfunc\n\nfunc ff_pix_norm1_rvv, zve64x\n        lpad    0\n        li      t1, 16\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v16, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     t0, t1, e64, m2, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        slli    t2, t0, 3\n        vsetvli     zero, t2, e8, m2, ta, ma\n        vwmulu.vv   v24, v8, v8\n        sub     t1, t1, t0\n        vwmulu.vv   v28, v10, v10\n        mul     t3, a1, t0\n        vsetvli     zero, zero, e16, m4, tu, ma\n        vwaddu.wv   v16, v16, v24\n        add     a0, t3, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "1907dd7f2335ba106b1d92070a497e818d734efd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1907dd7f2335ba106b1d92070a497e818d734efd/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:3", "text": "endfunc\n\nfunc ff_pix_norm1_rvv, zve64x\n        lpad    0\n        li      t1, 16\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v16, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     t0, t1, e64, m2, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        slli    t2, t0, 3\n        vsetvli     zero, t2, e8, m2, ta, ma\n        vwmulu.vv   v24, v8, v8\n        sub     t1, t1, t0\n        vwmulu.vv   v28, v10, v10\n        mul     t3, a1, t0\n        vsetvli     zero, zero, e16, m4, tu, ma\n        vwaddu.wv   v16, v16, v24\n        add     a0, t3, a0\n        vwaddu.wv   v16, v16, v28\n        bnez    t1, 1b\n\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "1907dd7f2335ba106b1d92070a497e818d734efd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1907dd7f2335ba106b1d92070a497e818d734efd/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 81, "line_end": 108}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_pix_sum_rvv, zve64x, b\n        lpad    0\n        vsetivli    t0, 16, e16, m1, ta, ma\n        slli    t1, t0, 3\n        vlsseg2e64.v    v8, (a0), a1 # poor man's vlse128.v\n        li      t2, 16\n        vmv.s.x     v1, zero\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.vv   v16, v8, v12\n        beq     t0, t2, 2f # VLEN >= 256\n1:\n        sh3add  a0, a1, a0\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.wv   v16, v16, v8\n        vwaddu.wv   v16, v16, v12\n2:\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        zext.h      a0, a0\n        ret\nendfunc\n\nfunc ff_pix_norm1_rvv, zve64x\n        lpad    0\n        li      t1, 16\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v16, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     t0, t1, e64, m2, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        slli    t2, t0, 3\n        vsetvli     zero, t2, e8, m2, ta, ma\n        vwmulu.vv   v24, v8, v8\n        sub     t1, t1, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "0fd37c00d728becba6c49aff9efaf7cae17d46d7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0fd37c00d728becba6c49aff9efaf7cae17d46d7/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:2", "text": "vsetvli     zero, zero, e16, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        zext.h      a0, a0\n        ret\nendfunc\n\nfunc ff_pix_norm1_rvv, zve64x\n        lpad    0\n        li      t1, 16\n        vsetvli     t0, zero, e32, m8, ta, ma\n        vmv.v.x     v16, zero\n        vmv.s.x     v1, zero\n1:\n        vsetvli     t0, t1, e64, m2, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        slli    t2, t0, 3\n        vsetvli     zero, t2, e8, m2, ta, ma\n        vwmulu.vv   v24, v8, v8\n        sub     t1, t1, t0\n        vwmulu.vv   v28, v10, v10\n        mul     t3, a1, t0\n        vsetvli     zero, zero, e16, m4, tu, ma\n        vwaddu.wv   v16, v16, v24\n        add     a0, t3, a0\n        vwaddu.wv   v16, v16, v28\n        bnez    t1, 1b\n\n        vsetvli     zero, zero, e32, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "0fd37c00d728becba6c49aff9efaf7cae17d46d7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0fd37c00d728becba6c49aff9efaf7cae17d46d7/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/mpegvideoencdsp_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_pix_sum_rvv, zve64x, b\n        lpad    0\n        vsetivli    t0, 16, e16, m1, ta, ma\n        slli    t1, t0, 3\n        vlsseg2e64.v    v8, (a0), a1 # poor man's vlse128.v\n        li      t2, 16\n        vmv.s.x     v1, zero\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.vv   v16, v8, v12\n        beq     t0, t2, 2f # VLEN >= 256\n1:\n        sh3add  a0, a1, a0\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vlsseg2e64.v    v8, (a0), a1\n        vsetvli     zero, t1, e8, m4, ta, ma\n        vwaddu.wv   v16, v16, v8\n        vwaddu.wv   v16, v16, v12\n2:\n        vsetvli     zero, zero, e16, m8, ta, ma\n        vredsum.vs  v1, v16, v1\n        vmv.x.s     a0, v1\n        zext.h      a0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/mpegvideoencdsp_rvv.S", "license": "LGPL-2.1", "commit": "63d016aea5d9e6e10f68b29d001dd708b29f869f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63d016aea5d9e6e10f68b29d001dd708b29f869f/libavcodec/riscv/mpegvideoencdsp_rvv.S", "line_start": 1, "line_end": 46}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/opusdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_opus_postfilter_rvv, zve32f, b\n        lpad    0\n        flw     fa0, 0(a2) // g0\n        slli    t1, a1, 2\n        flw     fa1, 4(a2) // g1\n        sub     t0, a0, t1\n        flw     fa2, 8(a2) // g2\n        addi    t1, t0, -2 * 4 // data - (period + 2) = initial &x4\n        vsetivli zero, 4, e32, m4, ta, ma\n        addi    t0, t0, 2 * 4 // data - (period - 2) = initial &x0\n        vle32.v v16, (t1)\n        addi    t3, a1, -2 // maximum parallelism w/o stepping our tail\n1:\n        vslidedown.vi v8, v16, 2\n        min     t1, a3, t3\n        vslide1down.vx v12, v16, zero\n        vsetvli t1, t1, e32, m4, ta, ma\n        vle32.v v0, (t0) // x0\n        sub     a3, a3, t1\n        vslide1down.vx v4, v8, zero\n        sh2add  t0, t1, t0\n        vle32.v v28, (a0)\n        addi    t2, t1, -4\n        vslideup.vi v4, v0, 1\n        vslideup.vi v8, v4, 1\n        vslideup.vi v12, v8, 1\n        vslideup.vi v16, v12, 1\n        vfadd.vv v20, v4, v12\n        vfadd.vv v24, v0, v16\n        vslidedown.vx v16, v0, t2\n        vfmacc.vf v28, fa0, v8\n        vfmacc.vf v28, fa1, v20\n        vfmacc.vf v28, fa2, v24\n        vse32.v v28, (a0)\n        sh2add  a0, t1, a0\n        bnez    a3, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/opusdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/opusdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/opusdsp_rvv.S:2", "text": "sub     a3, a3, t1\n        vslide1down.vx v4, v8, zero\n        sh2add  t0, t1, t0\n        vle32.v v28, (a0)\n        addi    t2, t1, -4\n        vslideup.vi v4, v0, 1\n        vslideup.vi v8, v4, 1\n        vslideup.vi v12, v8, 1\n        vslideup.vi v16, v12, 1\n        vfadd.vv v20, v4, v12\n        vfadd.vv v24, v0, v16\n        vslidedown.vx v16, v0, t2\n        vfmacc.vf v28, fa0, v8\n        vfmacc.vf v28, fa1, v20\n        vfmacc.vf v28, fa2, v24\n        vse32.v v28, (a0)\n        sh2add  a0, t1, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/opusdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/opusdsp_rvv.S", "line_start": 41, "line_end": 61}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/opusdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_opus_postfilter_rvv, zve32f, b\n        flw     fa0, 0(a2) // g0\n        slli    t1, a1, 2\n        flw     fa1, 4(a2) // g1\n        sub     t0, a0, t1\n        flw     fa2, 8(a2) // g2\n        addi    t1, t0, -2 * 4 // data - (period + 2) = initial &x4\n        vsetivli zero, 4, e32, m4, ta, ma\n        addi    t0, t0, 2 * 4 // data - (period - 2) = initial &x0\n        vle32.v v16, (t1)\n        addi    t3, a1, -2 // maximum parallelism w/o stepping our tail\n1:\n        vslidedown.vi v8, v16, 2\n        min     t1, a3, t3\n        vslide1down.vx v12, v16, zero\n        vsetvli t1, t1, e32, m4, ta, ma\n        vle32.v v0, (t0) // x0\n        sub     a3, a3, t1\n        vslide1down.vx v4, v8, zero\n        sh2add  t0, t1, t0\n        vle32.v v28, (a0)\n        addi    t2, t1, -4\n        vslideup.vi v4, v0, 1\n        vslideup.vi v8, v4, 1\n        vslideup.vi v12, v8, 1\n        vslideup.vi v16, v12, 1\n        vfadd.vv v20, v4, v12\n        vfadd.vv v24, v0, v16\n        vslidedown.vx v16, v0, t2\n        vfmacc.vf v28, fa0, v8\n        vfmacc.vf v28, fa1, v20\n        vfmacc.vf v28, fa2, v24\n        vse32.v v28, (a0)\n        sh2add  a0, t1, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/opusdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/opusdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/opusdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_opus_postfilter_rvv, zve32f, zbb\n        flw     fa0, 0(a2) // g0\n        slli    t1, a1, 2\n        flw     fa1, 4(a2) // g1\n        sub     t0, a0, t1\n        flw     fa2, 8(a2) // g2\n        addi    t1, t0, -2 * 4 // data - (period + 2) = initial &x4\n        vsetivli zero, 4, e32, m4, ta, ma\n        addi    t0, t0, 2 * 4 // data - (period - 2) = initial &x0\n        vle32.v v16, (t1)\n        addi    t3, a1, -2 // maximum parallelism w/o stepping our tail\n1:\n        vslidedown.vi v8, v16, 2\n        min     t1, a3, t3\n        vslide1down.vx v12, v16, zero\n        vsetvli t1, t1, e32, m4, ta, ma\n        vle32.v v0, (t0) // x0\n        sub     a3, a3, t1\n        vslide1down.vx v4, v8, zero\n        sh2add  t0, t1, t0\n        vle32.v v28, (a0)\n        addi    t2, t1, -4\n        vslideup.vi v4, v0, 1\n        vslideup.vi v8, v4, 1\n        vslideup.vi v12, v8, 1\n        vslideup.vi v16, v12, 1\n        vfadd.vv v20, v4, v12\n        vfadd.vv v24, v0, v16\n        vslidedown.vx v16, v0, t2\n        vfmacc.vf v28, fa0, v8\n        vfmacc.vf v28, fa1, v20\n        vfmacc.vf v28, fa2, v24\n        vse32.v v28, (a0)\n        sh2add  a0, t1, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/opusdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/opusdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/opusdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_opus_postfilter_rvv, zve32f\n        flw     fa0, 0(a2) // g0\n        slli    t1, a1, 2\n        flw     fa1, 4(a2) // g1\n        sub     t0, a0, t1\n        flw     fa2, 8(a2) // g2\n        addi    t1, t0, -2 * 4 // data - (period + 2) = initial &x4\n        vsetivli zero, 4, e32, m4, ta, ma\n        addi    t0, t0, 2 * 4 // data - (period - 2) = initial &x0\n        vle32.v v16, (t1)\n        addi    t3, a1, -2 // maximum parallelism w/o stepping our tail\n1:\n        vslidedown.vi v8, v16, 2\n        min     t1, a3, t3\n        vslide1down.vx v12, v16, zero\n        vsetvli t1, t1, e32, m4, ta, ma\n        vle32.v v0, (t0) // x0\n        sub     a3, a3, t1\n        vslide1down.vx v4, v8, zero\n        sh2add  t0, t1, t0\n        vle32.v v28, (a0)\n        addi    t2, t1, -4\n        vslideup.vi v4, v0, 1\n        vslideup.vi v8, v4, 1\n        vslideup.vi v12, v8, 1\n        vslideup.vi v16, v12, 1\n        vfadd.vv v20, v4, v12\n        vfadd.vv v24, v0, v16\n        vslidedown.vx v16, v0, t2\n        vfmacc.vf v28, fa0, v8\n        vfmacc.vf v28, fa1, v20\n        vfmacc.vf v28, fa2, v24\n        vse32.v v28, (a0)\n        sh2add  a0, t1, a0\n        bnez    a3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/opusdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/opusdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvi.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_get_pixels_8_rvi\n        lpad    0\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0,    (a1)\n        add     a1, a1, a2\n        sd      zero, ((\\row * 16) + 0)(a0)\n        addi    t6, t6, -1\n        sd      zero, ((\\row * 16) + 8)(a0)\n        srli    t1, t0, 8\n        sb      t0, ((\\row * 16) + 0)(a0)\n        srli    t2, t0, 16\n        sb      t1, ((\\row * 16) + 2)(a0)\n        srli    t3, t0, 24\n        sb      t2, ((\\row * 16) + 4)(a0)\n        srli    t4, t0, 32\n        sb      t3, ((\\row * 16) + 6)(a0)\n        srli    t1, t0, 40\n        sb      t4, ((\\row * 16) + 8)(a0)\n        srli    t2, t0, 48\n        sb      t1, ((\\row * 16) + 10)(a0)\n        srli    t3, t0, 56\n        sb      t2, ((\\row * 16) + 12)(a0)\n        sb      t3, ((\\row * 16) + 14)(a0)\n.endr\n        ret\nendfunc\n\nfunc ff_get_pixels_16_rvi\n        lpad    0\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0, 0(a1)\n        ld      t1, 8(a1)\n        add     a1, a1, a2\n        sd      t0, ((\\row * 16) + 0)(a0)\n        sd      t1, ((\\row * 16) + 8)(a0)\n.endr\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/pixblockdsp_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvi.S:2", "text": "sb      t4, ((\\row * 16) + 8)(a0)\n        srli    t2, t0, 48\n        sb      t1, ((\\row * 16) + 10)(a0)\n        srli    t3, t0, 56\n        sb      t2, ((\\row * 16) + 12)(a0)\n        sb      t3, ((\\row * 16) + 14)(a0)\n.endr\n        ret\nendfunc\n\nfunc ff_get_pixels_16_rvi\n        lpad    0\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0, 0(a1)\n        ld      t1, 8(a1)\n        add     a1, a1, a2\n        sd      t0, ((\\row * 16) + 0)(a0)\n        sd      t1, ((\\row * 16) + 8)(a0)\n.endr\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/pixblockdsp_rvi.S", "line_start": 41, "line_end": 62}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvi.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_get_pixels_8_rvi\n        lpad    0\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0,    (a1)\n        add     a1, a1, a2\n        sd      zero, ((\\row * 16) + 0)(a0)\n        addi    t6, t6, -1\n        sd      zero, ((\\row * 16) + 8)(a0)\n        srli    t1, t0, 8\n        sb      t0, ((\\row * 16) + 0)(a0)\n        srli    t2, t0, 16\n        sb      t1, ((\\row * 16) + 2)(a0)\n        srli    t3, t0, 24\n        sb      t2, ((\\row * 16) + 4)(a0)\n        srli    t4, t0, 32\n        sb      t3, ((\\row * 16) + 6)(a0)\n        srli    t1, t0, 40\n        sb      t4, ((\\row * 16) + 8)(a0)\n        srli    t2, t0, 48\n        sb      t1, ((\\row * 16) + 10)(a0)\n        srli    t3, t0, 56\n        sb      t2, ((\\row * 16) + 12)(a0)\n        sb      t3, ((\\row * 16) + 14)(a0)\n.endr\n        ret\nendfunc\n\nfunc ff_get_pixels_16_rvi\n        lpad    0\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0, 0(a1)\n        ld      t1, 8(a1)\n        add     a1, a1, a2\n        sd      t0, ((\\row * 16) + 0)(a0)\n        sd      t1, ((\\row * 16) + 8)(a0)\n.endr\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvi.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/pixblockdsp_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvi.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_get_pixels_8_rvi\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0,    (a1)\n        add     a1, a1, a2\n        sd      zero, ((\\row * 16) + 0)(a0)\n        addi    t6, t6, -1\n        sd      zero, ((\\row * 16) + 8)(a0)\n        srli    t1, t0, 8\n        sb      t0, ((\\row * 16) + 0)(a0)\n        srli    t2, t0, 16\n        sb      t1, ((\\row * 16) + 2)(a0)\n        srli    t3, t0, 24\n        sb      t2, ((\\row * 16) + 4)(a0)\n        srli    t4, t0, 32\n        sb      t3, ((\\row * 16) + 6)(a0)\n        srli    t1, t0, 40\n        sb      t4, ((\\row * 16) + 8)(a0)\n        srli    t2, t0, 48\n        sb      t1, ((\\row * 16) + 10)(a0)\n        srli    t3, t0, 56\n        sb      t2, ((\\row * 16) + 12)(a0)\n        sb      t3, ((\\row * 16) + 14)(a0)\n.endr\n        ret\nendfunc\n\nfunc ff_get_pixels_16_rvi\n.irp row, 0, 1, 2, 3, 4, 5, 6, 7\n        ld      t0, 0(a1)\n        ld      t1, 8(a1)\n        add     a1, a1, a2\n        sd      t0, ((\\row * 16) + 0)(a0)\n        sd      t1, ((\\row * 16) + 8)(a0)\n.endr\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvi.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/pixblockdsp_rvi.S", "line_start": 1, "line_end": 58}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_get_pixels_8_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_get_pixels_unaligned_8_rvv, zve32x\n        lpad    0\n        li      t2, 8\n        vsetivli     zero, 8, e8, mf2, ta, ma\n1:\n        add     t1, a1, a2\n        vle8.v  v16, (a1)\n        addi    t0, a0, 2 * 8\n        vle8.v  v17, (t1)\n        addi    t2, t2, -2\n        vwcvtu.x.x.v v8, v16\n        vwcvtu.x.x.v v9, v17\n        vse16.v v8, (a0)\n        add     a1, t1, a2\n        vse16.v v9, (t0)\n        addi    a0, t0, 2 * 8\n        bnez    t2, 1b\n\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:2", "text": "addi    t0, a0, 2 * 8\n        vle8.v  v17, (t1)\n        addi    t2, t2, -2\n        vwcvtu.x.x.v v8, v16\n        vwcvtu.x.x.v v9, v17\n        vse16.v v8, (a0)\n        add     a1, t1, a2\n        vse16.v v9, (t0)\n        addi    a0, t0, 2 * 8\n        bnez    t2, 1b\n\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_unaligned_rvv, zve32x\n        lpad    0\n        li      t3, 8\n        vsetivli    zero, 8, e8, mf2, ta, ma\n1:\n        vle8.v v16, (a1)\n        add     a1, a1, a3\n        vle8.v v24, (a2)\n        add     a2, a2, a3\n        vwsubu.vv   v8, v16, v24\n        addi    t3, t3, -1\n        vse16.v v8, (a0)\n        addi    a0, a0, 2 * 8\n        bnez    t3, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:2", "text": "addi    t0, a0, 2 * 8\n        vle8.v  v17, (t1)\n        addi    t2, t2, -2\n        vwcvtu.x.x.v v8, v16\n        vwcvtu.x.x.v v9, v17\n        vse16.v v8, (a0)\n        add     a1, t1, a2\n        vse16.v v9, (t0)\n        addi    a0, t0, 2 * 8\n        bnez    t2, 1b\n\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_unaligned_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg8e8.v v16, (a1), a3\n        vlsseg8e8.v v24, (a2), a3\n        vwsubu.vv   v8, v16, v24\n        vwsubu.vv   v9, v17, v25\n        vwsubu.vv   v10, v18, v26\n        vwsubu.vv   v11, v19, v27\n        vwsubu.vv   v12, v20, v28\n        vwsubu.vv   v13, v21, v29\n        vwsubu.vv   v14, v22, v30\n        vwsubu.vv   v15, v23, v31\n        vsseg8e16.v v8, (a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "c17d304e1f9bc0f96170cf3c8fba28a165050413", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c17d304e1f9bc0f96170cf3c8fba28a165050413/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 41, "line_end": 82}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_get_pixels_8_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_get_pixels_unaligned_8_rvv, zve32x\n        lpad    0\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vlsseg8e8.v  v16, (a1), a2\n        vwcvtu.x.x.v v8, v16\n        vwcvtu.x.x.v v9, v17\n        vwcvtu.x.x.v v10, v18\n        vwcvtu.x.x.v v11, v19\n        vwcvtu.x.x.v v12, v20\n        vwcvtu.x.x.v v13, v21\n        vwcvtu.x.x.v v14, v22\n        vwcvtu.x.x.v v15, v23\n        vsseg8e16.v  v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24\n        vse16.v v8, (a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "e3b0d58394484def810aca712d090be000ddeece", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3b0d58394484def810aca712d090be000ddeece/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:2", "text": "vwcvtu.x.x.v v11, v19\n        vwcvtu.x.x.v v12, v20\n        vwcvtu.x.x.v v13, v21\n        vwcvtu.x.x.v v14, v22\n        vwcvtu.x.x.v v15, v23\n        vsseg8e16.v  v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_unaligned_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg8e8.v v16, (a1), a3\n        vlsseg8e8.v v24, (a2), a3\n        vwsubu.vv   v8, v16, v24\n        vwsubu.vv   v9, v17, v25\n        vwsubu.vv   v10, v18, v26\n        vwsubu.vv   v11, v19, v27\n        vwsubu.vv   v12, v20, v28\n        vwsubu.vv   v13, v21, v29\n        vwsubu.vv   v14, v22, v30\n        vwsubu.vv   v15, v23, v31\n        vsseg8e16.v v8, (a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "e3b0d58394484def810aca712d090be000ddeece", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3b0d58394484def810aca712d090be000ddeece/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_get_pixels_8_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n1:\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_get_pixels_unaligned_8_rvv, zve64x\n        lpad    0\n        andi    t1, a1, 7\n        vsetivli zero, 8, e64, m4, ta, ma\n        li      t0, 8 * 8\n        beqz    t1, 1b\n        andi    a1, a1, -8\n        slli    t2, t1, 3\n        addi    t1, a1, 8\n        sub     t3, t0, t2\n        vlse64.v v16, (a1), a2\n        vlse64.v v24, (t1), a2\n        vsrl.vx v16, v16, t2\n        vsll.vx v24, v24, t3\n        vor.vv  v16, v16, v24\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:2", "text": "andi    a1, a1, -8\n        slli    t2, t1, 3\n        addi    t1, a1, 8\n        sub     t3, t0, t2\n        vlse64.v v16, (a1), a2\n        vlse64.v v24, (t1), a2\n        vsrl.vx v16, v16, t2\n        vsll.vx v24, v24, t3\n        vor.vv  v16, v16, v24\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        lpad    0\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_unaligned_rvv, zve32x\n        lpad    0\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg8e8.v v16, (a1), a3\n        vlsseg8e8.v v24, (a2), a3\n        vwsubu.vv   v8, v16, v24\n        vwsubu.vv   v9, v17, v25\n        vwsubu.vv   v10, v18, v26\n        vwsubu.vv   v11, v19, v27\n        vwsubu.vv   v12, v20, v28\n        vwsubu.vv   v13, v21, v29\n        vwsubu.vv   v14, v22, v30\n        vwsubu.vv   v15, v23, v31\n        vsseg8e16.v v8, (a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_get_pixels_8_rvv, zve64x\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n1:\n        vlse64.v v16, (a1), a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_get_pixels_unaligned_8_rvv, zve64x\n        andi    t1, a1, 7\n        vsetivli zero, 8, e64, m4, ta, ma\n        li      t0, 8 * 8\n        beqz    t1, 1b\n        andi    a1, a1, -8\n        slli    t2, t1, 3\n        addi    t1, a1, 8\n        sub     t3, t0, t2\n        vlse64.v v16, (a1), a2\n        vlse64.v v24, (t1), a2\n        vsrl.vx v16, v16, t2\n        vsll.vx v24, v24, t3\n        vor.vv  v16, v16, v24\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/pixblockdsp_rvv.S:2", "text": "addi    t1, a1, 8\n        sub     t3, t0, t2\n        vlse64.v v16, (a1), a2\n        vlse64.v v24, (t1), a2\n        vsrl.vx v16, v16, t2\n        vsll.vx v24, v24, t3\n        vor.vv  v16, v16, v24\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwcvtu.x.x.v v8, v16\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_rvv, zve64x\n        vsetivli zero, 8, e8, mf2, ta, ma\n        li      t0, 8 * 8\n        vlse64.v v16, (a1), a3\n        vlse64.v v24, (a2), a3\n        vsetvli zero, t0, e8, m4, ta, ma\n        vwsubu.vv v8, v16, v24\n        vse16.v v8, (a0)\n        ret\nendfunc\n\nfunc ff_diff_pixels_unaligned_rvv, zve32x\n        vsetivli    zero, 8, e8, mf2, ta, ma\n        vlsseg8e8.v v16, (a1), a3\n        vlsseg8e8.v v24, (a2), a3\n        vwsubu.vv   v8, v16, v24\n        vwsubu.vv   v9, v17, v25\n        vwsubu.vv   v10, v18, v26\n        vwsubu.vv   v11, v19, v27\n        vwsubu.vv   v12, v20, v28\n        vwsubu.vv   v13, v21, v29\n        vwsubu.vv   v14, v22, v30\n        vwsubu.vv   v15, v23, v31\n        vsseg8e16.v v8, (a0)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/pixblockdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/pixblockdsp_rvv.S", "line_start": 41, "line_end": 79}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv34dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_rv34_inv_transform_dc_rvv, zve32x\n        lpad    0\n        lh            t1, 0(a0)\n        li            t0, 13 * 13 * 3\n        mul           t2, t0, t1\n        srai          t2, t2, 11\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vmv.v.x       v8, t2\n        vse16.v       v8, (a0)\n\n        ret\nendfunc\n\nfunc ff_rv34_idct_dc_add_rvv, zve32x\n        lpad    0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        li            t1, 169\n        mul           t1, t1, a2\n        addi          t1, t1, 512\n        srai          t1, t1, 10\n        vsetivli    zero, 4*4, e8, m2, ta, ma\n        bgez    t1, 1f\n\n        neg     t1, t1\n        vssubu.vx   v0, v0, t1\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vsse32.v    v0, (a0), a1\n        ret\n1:\n        vsaddu.vx   v0, v0, t1\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vsse32.v    v0, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv34dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv34dsp_rvv.S", "line_start": 1, "line_end": 57}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv34dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_rv34_inv_transform_dc_rvv, zve32x\n        lpad    0\n        lh            t1, 0(a0)\n        li            t0, 13 * 13 * 3\n        mul           t2, t0, t1\n        srai          t2, t2, 11\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vmv.v.x       v8, t2\n        vse16.v       v8, (a0)\n\n        ret\nendfunc\n\nfunc ff_rv34_idct_dc_add_rvv, zve32x\n        lpad    0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        li            t1, 169\n        mul           t1, t1, a2\n        addi          t1, t1, 512\n        srai          t1, t1, 10\n        vsetivli    zero, 4*4, e8, m2, ta, ma\n        bgez    t1, 1f\n\n        neg     t1, t1\n        vssubu.vx   v0, v0, t1\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vsse32.v    v0, (a0), a1\n        ret\n1:\n        vsaddu.vx   v0, v0, t1\n        vsetivli    zero, 4, e8, mf4, ta, ma\n        vsse32.v    v0, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv34dsp_rvv.S", "license": "LGPL-2.1", "commit": "54ae270213b5a98f923bfd4506e450b2e764ede2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/54ae270213b5a98f923bfd4506e450b2e764ede2/libavcodec/riscv/rv34dsp_rvv.S", "line_start": 1, "line_end": 57}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv34dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_rv34_inv_transform_dc_rvv, zve32x\n        lpad    0\n        lh            t1, 0(a0)\n        li            t0, 13 * 13 * 3\n        mul           t2, t0, t1\n        srai          t2, t2, 11\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vmv.v.x       v8, t2\n        vse16.v       v8, (a0)\n\n        ret\nendfunc\n\nfunc ff_rv34_idct_dc_add_rvv, zve32x\n        lpad    0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        li            t1, 169\n        mul           t1, t1, a2\n        addi          t1, t1, 512\n        srai          t1, t1, 10\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv34dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv34dsp_rvv.S", "line_start": 1, "line_end": 54}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv34dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_rv34_inv_transform_dc_rvv, zve32x\n        lh            t1, 0(a0)\n        li            t0, 13 * 13 * 3\n        mul           t2, t0, t1\n        srai          t2, t2, 11\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vmv.v.x       v8, t2\n        vse16.v       v8, (a0)\n\n        ret\nendfunc\n\nfunc ff_rv34_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        li            t1, 169\n        mul           t1, t1, a2\n        addi          t1, t1, 512\n        srai          t1, t1, 10\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv34dsp_rvv.S", "license": "LGPL-2.1", "commit": "728a1dd3b6fab7dcbf7f91fad0e8ba9c1be45867", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/728a1dd3b6fab7dcbf7f91fad0e8ba9c1be45867/libavcodec/riscv/rv34dsp_rvv.S", "line_start": 1, "line_end": 52}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv34dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_rv34_inv_transform_dc_rvv, zve32x\n        lh            t1, 0(a0)\n        li            t0, 13 * 13 * 3\n        mul           t2, t0, t1\n        srai          t2, t2, 11\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vmv.v.x       v8, t2\n        vse16.v       v8, (a0)\n\n        ret\nendfunc\n\nfunc ff_rv34_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        li            t1, 169\n        mul           t1, t1, a2\n        li            a2, 255\n        addi          t1, t1, 512\n        srai          t1, t1, 10\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv34dsp_rvv.S", "license": "LGPL-2.1", "commit": "89189dd9e7aa9c90d5104a768b3397dc804a9f42", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89189dd9e7aa9c90d5104a768b3397dc804a9f42/libavcodec/riscv/rv34dsp_rvv.S", "line_start": 1, "line_end": 53}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv34dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_rv34_inv_transform_dc_rvv, zve32x\n        lh            t1, 0(a0)\n        li            t0, 13 * 13 * 3\n        mul           t2, t0, t1\n        srai          t2, t2, 11\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vmv.v.x       v8, t2\n        vse16.v       v8, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv34dsp_rvv.S", "license": "LGPL-2.1", "commit": "ee08974f90892778988bd1e0e9e2c6a445d5c863", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ee08974f90892778988bd1e0e9e2c6a445d5c863/libavcodec/riscv/rv34dsp_rvv.S", "line_start": 1, "line_end": 33}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nconst rv40_bias\n    .byte  0, 16, 32, 16\n    .byte 32, 28, 32, 28\n    .byte  0, 32, 16, 32\n    .byte 32, 28, 32, 28\nendconst\n\n.macro  do_chroma_mc type unroll\n        csrwi           vxrm, 0\n        addi            sp, sp, -16\n#if __riscv_xlen == 32\n        sw              s2, (sp)\n#elif __riscv_xlen == 64\n        sd              s2, (sp)\n#else\n        sq              s2, (sp)\n#endif\n        lla             t4, rv40_bias\n        srli            t5, a5, 1\n        sh2add          t4, t5, t4\n        srli            t5, a4, 1\n        add             t5, t4, t5\n        slli            t2, a5, 3\n        lb              s2, (t5)\n        mul             t1, a5, a4\n        sh3add          a5, a4, t2\n        slli            a4, a4, 3\n        sub             a5, t1, a5\n        sub             a7, a4, t1\n        addi            a6, a5, 64\n        sub             t0, t2, t1\n        vsetvli         t3, t6, e8, m1, ta, mu\n        beqz            t1, 2f\n        blez            a3, 8f\n        li              t4, 0\n        li              t2, 0\n        li              t5, 1\n        addi            a5, t3, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:2", "text": "srli            t5, a5, 1\n        sh2add          t4, t5, t4\n        srli            t5, a4, 1\n        add             t5, t4, t5\n        slli            t2, a5, 3\n        lb              s2, (t5)\n        mul             t1, a5, a4\n        sh3add          a5, a4, t2\n        slli            a4, a4, 3\n        sub             a5, t1, a5\n        sub             a7, a4, t1\n        addi            a6, a5, 64\n        sub             t0, t2, t1\n        vsetvli         t3, t6, e8, m1, ta, mu\n        beqz            t1, 2f\n        blez            a3, 8f\n        li              t4, 0\n        li              t2, 0\n        li              t5, 1\n        addi            a5, t3, 1\n        slli            t3, a2, (1 + \\unroll)\n1:                                # if (xy != 0)\n        add             a4, a1, t4\n        vsetvli         zero, a5, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v10, (a4)\n        add             a4, a4, a2\n        vslide1down.vx  v11, v10, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v8, v10, a6\n        vwmaccu.vx      v8, a7, v11\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v12, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v8, t0, v12\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v13, v12, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v12, a6\n        vwmaccu.vx      v8, t1, v13\n        vwmaccu.vx      v10, a7, v13\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v10, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v14, a6\n        vwmaccu.vx      v10, t1, v15\n        vwmaccu.vx      v12, a7, v15\n        vwaddu.wx       v20, v8, s2\n        vnsrl.wi        v15, v20, 6\n  .ifc \\type,avg", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:3", "text": "vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v13, v12, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v12, a6\n        vwmaccu.vx      v8, t1, v13\n        vwmaccu.vx      v10, a7, v13\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v10, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v14, a6\n        vwmaccu.vx      v10, t1, v15\n        vwmaccu.vx      v12, a7, v15\n        vwaddu.wx       v20, v8, s2\n        vnsrl.wi        v15, v20, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v15, v15, v9\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        add             t4, t4, t3\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v12, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v16, v14, a6\n        vwmaccu.vx      v12, t1, v15\n        vwmaccu.vx      v16, a7, v15\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v14, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t1, v14\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:4", "text": "vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v16, v14, a6\n        vwmaccu.vx      v12, t1, v15\n        vwmaccu.vx      v16, a7, v15\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v14, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t1, v14\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v16, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        vaaddu.vv       v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 1b\n        j               8f\n2:\n        bnez            a4, 4f\n        beqz            t2, 4f\n        blez            a3, 8f\n        li              a4, 0\n        li              t1, 0\n        slli            a7, a2, (1 + \\unroll)\n3:                                # if ((x8 - xy) == 0 && (y8 -xy) != 0)\n        add             a5, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t1, t1, 4\n  .else\n        addi            t1, t1, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        add             t2, a5, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (a5)\n        vwmulu.vx       v12, v8, a6\n        vle8.v          v9, (t2)\n        add             t2, t2, a2\n        add             a5, t2, a2\n        vwmaccu.vx      v10, t0, v8\n        add             a4, a4, a7\n        vwmaccu.vx      v12, t0, v9", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:5", "text": "3:                                # if ((x8 - xy) == 0 && (y8 -xy) != 0)\n        add             a5, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t1, t1, 4\n  .else\n        addi            t1, t1, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        add             t2, a5, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (a5)\n        vwmulu.vx       v12, v8, a6\n        vle8.v          v9, (t2)\n        add             t2, t2, a2\n        add             a5, t2, a2\n        vwmaccu.vx      v10, t0, v8\n        add             a4, a4, a7\n        vwmaccu.vx      v12, t0, v9\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v15, v20, 6\n        vwmulu.vx       v10, v9, a6\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v9, v20, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v15, v15, v16\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v9, v9, v16\n  .endif\n        vse8.v          v9, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vle8.v          v8, (t2)\n        vle8.v          v14, (a5)\n        vwmaccu.vx      v10, t0, v8\n        vwmulu.vx       v12, v8, a6\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n        vwmaccu.vx      v12, t0, v14\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:6", "text": "vwmaccu.vx      v10, t0, v8\n        vwmulu.vx       v12, v8, a6\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n        vwmaccu.vx      v12, t0, v14\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t1, a3, 3b\n        j               8f\n4:\n        beqz            a4, 6f\n        bnez            t2, 6f\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        addi            t0, t3, 1\n        slli            t1, a2, (1 + \\unroll)\n5:                               # if ((x8 - xy) != 0 && (y8 -xy) == 0)\n        add             a5, a1, a4\n        vsetvli         zero, t0, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v8, a6\n        vwmaccu.vx      v10, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vwmaccu.vx      v12, a7, v9\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v16, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v16, v16, v18\n  .endif\n        vse8.v          v16, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v12, s2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:7", "text": "vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v8, a6\n        vwmaccu.vx      v10, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vwmaccu.vx      v12, a7, v9\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v16, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v16, v16, v18\n  .endif\n        vse8.v          v16, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v10, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v10, v10, v18\n  .endif\n        add             a4, a4, t1\n        vse8.v          v10, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v14, v8, a6\n        vwmaccu.vx      v14, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vwaddu.wx       v20, v14, s2\n        vnsrl.wi        v8, v20, 6\n        vwmaccu.vx      v12, a7, v9\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 5b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:8", "text": "vwmulu.vx       v12, v8, a6\n        vwaddu.wx       v20, v14, s2\n        vnsrl.wi        v8, v20, 6\n        vwmaccu.vx      v12, a7, v9\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vwaddu.wx       v20, v12, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 5b\n        j               8f\n6:\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        slli            a7, a2, (1 + \\unroll)\n7:                               # the final else, none of the above conditions are met\n        add             t0, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n        add             a5, a0, a4\n        add             a4, a4, a7\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v13, v20, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:9", "text": "vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v13, v20, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1\n        vle8.v          v9, (t1)\n        vle8.v          v12, (t0)\n        vwmulu.vx       v10, v9, a6\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n        vwmulu.vx       v10, v12, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vwaddu.wx       v20, v10, s2\n        vnsrl.wi        v8, v20, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        vaaddu.vv       v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n#if __riscv_xlen == 32\n        lw              s2, (sp)\n#elif __riscv_xlen == 64\n        ld              s2, (sp)\n#else\n        lq              s2, (sp)\n#endif\n        addi            sp, sp, 16\n\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:10", "text": "blt             t2, a3, 7b\n8:\n#if __riscv_xlen == 32\n        lw              s2, (sp)\n#elif __riscv_xlen == 64\n        ld              s2, (sp)\n#else\n        lq              s2, (sp)\n#endif\n        addi            sp, sp, 16\n\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc ff_avg_rv40_chroma_mc_rvv, zve32x, zba\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc ff_put_rv40_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc ff_put_rv40_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 361, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:11", "text": "li      t6, 4\n        j       11b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 401, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nconst rv40_bias\n    .byte  0, 16, 32, 16\n    .byte 32, 28, 32, 28\n    .byte  0, 32, 16, 32\n    .byte 32, 28, 32, 28\nendconst\n\n.macro  do_chroma_mc type unroll\n        csrwi           vxrm, 0\n        addi            sp, sp, -16\n#if __riscv_xlen == 32\n        sw              s2, (sp)\n#elif __riscv_xlen == 64\n        sd              s2, (sp)\n#else\n        sq              s2, (sp)\n#endif\n        lla             t4, rv40_bias\n        srli            t5, a5, 1\n        sh2add          t4, t5, t4\n        srli            t5, a4, 1\n        add             t5, t4, t5\n        slli            t2, a5, 3\n        lb              s2, (t5)\n        mul             t1, a5, a4\n        sh3add          a5, a4, t2\n        slli            a4, a4, 3\n        sub             a5, t1, a5\n        sub             a7, a4, t1\n        addi            a6, a5, 64\n        sub             t0, t2, t1\n        vsetvli         t3, t6, e8, m1, ta, mu\n        beqz            t1, 2f\n        blez            a3, 8f\n        li              t4, 0\n        li              t2, 0\n        li              t5, 1\n        addi            a5, t3, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "2dc864eb4e05a2c24e592810324b8a73b2076757", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2dc864eb4e05a2c24e592810324b8a73b2076757/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro manual_avg dst src1 src2\n        vadd.vv         \\dst, \\src1, \\src2\n        vadd.vi         \\dst, \\dst, 1\n        vsrl.vi         \\dst, \\dst, 1\n.endm\n\n.macro  do_chroma_mc type unroll\n        csrwi           vxrm, 2\n        slli            t2, a5, 3\n        mul             t1, a5, a4\n        sh3add          a5, a4, t2\n        slli            a4, a4, 3\n        sub             a5, t1, a5\n        sub             a7, a4, t1\n        addi            a6, a5, 64\n        sub             t0, t2, t1\n        vsetvli         t3, t6, e8, m1, ta, mu\n        beqz            t1, 2f\n        blez            a3, 8f\n        li              t4, 0\n        li              t2, 0\n        li              t5, 1\n        addi            a5, t3, 1\n        slli            t3, a2, (1 + \\unroll)\n1:                                # if (xy != 0)\n        add             a4, a1, t4\n        vsetvli         zero, a5, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v10, (a4)\n        add             a4, a4, a2\n        vslide1down.vx  v11, v10, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v8, v10, a6\n        vwmaccu.vx      v8, a7, v11", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:2", "text": "blez            a3, 8f\n        li              t4, 0\n        li              t2, 0\n        li              t5, 1\n        addi            a5, t3, 1\n        slli            t3, a2, (1 + \\unroll)\n1:                                # if (xy != 0)\n        add             a4, a1, t4\n        vsetvli         zero, a5, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v10, (a4)\n        add             a4, a4, a2\n        vslide1down.vx  v11, v10, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v8, v10, a6\n        vwmaccu.vx      v8, a7, v11\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v12, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v8, t0, v12\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v13, v12, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v12, a6\n        vwmaccu.vx      v8, t1, v13\n        vwmaccu.vx      v10, a7, v13\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v10, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v14, a6\n        vwmaccu.vx      v10, t1, v15\n        vwmaccu.vx      v12, a7, v15\n        vnclipu.wi      v15, v8, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v15, v15, v9\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v8, v8, v9\n  .endif\n        add             t4, t4, t3\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:3", "text": "vwmaccu.vx      v10, t1, v15\n        vwmaccu.vx      v12, a7, v15\n        vnclipu.wi      v15, v8, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v15, v15, v9\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v8, v8, v9\n  .endif\n        add             t4, t4, t3\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        add             a4, a4, a2\n        vwmaccu.vx      v12, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v15, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v16, v14, a6\n        vwmaccu.vx      v12, t1, v15\n        vwmaccu.vx      v16, a7, v15\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vle8.v          v14, (a4)\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t0, v14\n        vsetvli         zero, a5, e8, m1, ta, ma\n        vslide1down.vx  v14, v14, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmaccu.vx      v16, t1, v14\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v16, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 1b\n        j               8f\n2:\n        bnez            a4, 4f\n        beqz            t2, 4f\n        blez            a3, 8f\n        li              a4, 0\n        li              t1, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:4", "text": "manual_avg      v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v16, 6\n  .ifc \\type,avg\n        vle8.v          v9, (a0)\n        manual_avg      v8, v8, v9\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 1b\n        j               8f\n2:\n        bnez            a4, 4f\n        beqz            t2, 4f\n        blez            a3, 8f\n        li              a4, 0\n        li              t1, 0\n        slli            a7, a2, (1 + \\unroll)\n3:                                # if ((x8 - xy) == 0 && (y8 -xy) != 0)\n        add             a5, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t1, t1, 4\n  .else\n        addi            t1, t1, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        add             t2, a5, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (a5)\n        vwmulu.vx       v12, v8, a6\n        vle8.v          v9, (t2)\n        add             t2, t2, a2\n        add             a5, t2, a2\n        vwmaccu.vx      v10, t0, v8\n        add             a4, a4, a7\n        vwmaccu.vx      v12, t0, v9\n        vnclipu.wi      v15, v10, 6\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v9, v12, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        manual_avg      v15, v15, v16\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        manual_avg      v9, v9, v16\n  .endif\n        vse8.v          v9, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vle8.v          v8, (t2)\n        vle8.v          v14, (a5)\n        vwmaccu.vx      v10, t0, v8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:5", "text": "vwmaccu.vx      v12, t0, v9\n        vnclipu.wi      v15, v10, 6\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v9, v12, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        manual_avg      v15, v15, v16\n  .endif\n        vse8.v          v15, (a0)\n        add             a0, a0, a2\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        manual_avg      v9, v9, v16\n  .endif\n        vse8.v          v9, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vle8.v          v8, (t2)\n        vle8.v          v14, (a5)\n        vwmaccu.vx      v10, t0, v8\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v10, 6\n        vwmaccu.vx      v12, t0, v14\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        manual_avg      v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v16, (a0)\n        manual_avg      v8, v8, v16\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t1, a3, 3b\n        j               8f\n4:\n        beqz            a4, 6f\n        bnez            t2, 6f\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        addi            t0, t3, 1\n        slli            t1, a2, (1 + \\unroll)\n5:                               # if ((x8 - xy) != 0 && (y8 -xy) == 0)\n        add             a5, a1, a4\n        vsetvli         zero, t0, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v8, a6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:6", "text": "beqz            a4, 6f\n        bnez            t2, 6f\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        addi            t0, t3, 1\n        slli            t1, a2, (1 + \\unroll)\n5:                               # if ((x8 - xy) != 0 && (y8 -xy) == 0)\n        add             a5, a1, a4\n        vsetvli         zero, t0, e8, m1, ta, ma\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v10, v8, a6\n        vwmaccu.vx      v10, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vwmaccu.vx      v12, a7, v9\n        vnclipu.wi      v16, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        manual_avg      v16, v16, v18\n  .endif\n        vse8.v          v16, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v10, v12, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        manual_avg      v10, v10, v18\n  .endif\n        add             a4, a4, t1\n        vse8.v          v10, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v14, v8, a6\n        vwmaccu.vx      v14, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v14, 6\n        vwmaccu.vx      v12, a7, v9\n  .ifc \\type,avg\n        vle8.v          v18, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:7", "text": "add             a4, a4, t1\n        vse8.v          v10, (a0)\n        add             a0, a0, a2\n  .ifc \\unroll,1\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        add             a5, a5, a2\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v14, v8, a6\n        vwmaccu.vx      v14, a7, v9\n        vsetvli         zero, t0, e8, m1, ta, ma\n        vle8.v          v8, (a5)\n        vslide1down.vx  v9, v8, t5\n        vsetvli         zero, t6, e8, m1, ta, ma\n        vwmulu.vx       v12, v8, a6\n        vnclipu.wi      v8, v14, 6\n        vwmaccu.vx      v12, a7, v9\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n        vnclipu.wi      v8, v12, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a0)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a0)\n        add             a0, a0, a2\n  .endif\n        blt             t2, a3, 5b\n        j               8f\n6:\n        blez            a3, 8f\n        li              a4, 0\n        li              t2, 0\n        slli            a7, a2, (1 + \\unroll)\n7:                               # the final else, none of the above conditions are met\n        add             t0, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n        add             a5, a0, a4\n        add             a4, a4, a7\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v13, v13, v18", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:8", "text": "add             t0, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n        add             a5, a0, a4\n        add             a4, a4, a7\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1\n        vle8.v          v9, (t1)\n        vle8.v          v12, (t0)\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v8, v10, 6\n        vwmulu.vx       v10, v12, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:9", "text": "vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc ff_avg_rv40_chroma_mc_rvv, zve32x, zba\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc ff_put_rv40_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc ff_put_rv40_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc8_rvv, zve32x\n        lpad    0\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc4_rvv, zve32x\n        lpad    0\n        li      t6, 4\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 321, "line_end": 375}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:9", "text": "vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x, zba\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc ff_avg_rv40_chroma_mc_rvv, zve32x, zba\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc ff_put_rv40_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc ff_put_rv40_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 321, "line_end": 371}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:10", "text": "endfunc\n\nfunc ff_avg_rv40_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 361, "line_end": 371}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:8", "text": "add             t0, a1, a4\n        vsetvli         zero, zero, e8, m1, ta, ma\n        add             a5, a0, a4\n        add             a4, a4, a7\n  .ifc \\unroll,1\n        addi            t2, t2, 4\n  .else\n        addi            t2, t2, 2\n  .endif\n        vle8.v          v8, (t0)\n        add             t0, t0, a2\n        add             t1, t0, a2\n        vwmulu.vx       v10, v8, a6\n        vle8.v          v8, (t0)\n        add             t0, t1, a2\n        vnclipu.wi      v13, v10, 6\n        vwmulu.vx       v10, v8, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v13, v13, v18\n  .endif\n        vse8.v          v13, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n  .ifc \\unroll,1\n        vle8.v          v9, (t1)\n        vle8.v          v12, (t0)\n        vwmulu.vx       v10, v9, a6\n        vnclipu.wi      v8, v10, 6\n        vwmulu.vx       v10, v12, a6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "5bc3b7f51308b8027e5468ef60d8336a960193e2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5bc3b7f51308b8027e5468ef60d8336a960193e2/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/rv40dsp_rvv.S:9", "text": "vse8.v          v8, (a5)\n        add             a5, a5, a2\n        vnclipu.wi      v8, v10, 6\n  .ifc \\type,avg\n        vle8.v          v18, (a5)\n        manual_avg      v8, v8, v18\n  .endif\n        vse8.v          v8, (a5)\n  .endif\n        blt             t2, a3, 7b\n8:\n        ret\n.endm\n\nfunc ff_put_rv40_chroma_mc_rvv, zve32x\n11:\n        li      a7, 3\n        blt     a3, a7, 12f\n        do_chroma_mc put 1\n12:\n        do_chroma_mc put 0\nendfunc\n\nfunc ff_avg_rv40_chroma_mc_rvv, zve32x\n21:\n        li      a7, 3\n        blt     a3, a7, 22f\n        do_chroma_mc avg 1\n22:\n        do_chroma_mc avg 0\nendfunc\n\nfunc ff_put_rv40_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       11b\nendfunc\n\nfunc ff_put_rv40_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       11b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc8_rvv, zve32x\n        li      t6, 8\n        j       21b\nendfunc\n\nfunc ff_avg_rv40_chroma_mc4_rvv, zve32x\n        li      t6, 4\n        j       21b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/rv40dsp_rvv.S", "license": "LGPL-2.1", "commit": "5bc3b7f51308b8027e5468ef60d8336a960193e2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5bc3b7f51308b8027e5468ef60d8336a960193e2/libavcodec/riscv/rv40dsp_rvv.S", "line_start": 321, "line_end": 371}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_sbr_sum64x5_rvv, zve32f, zba\n        lpad    0\n        li      a5, 64\n        addi    a1, a0, 64 * 4\n        addi    a2, a0, 128 * 4\n        addi    a3, a0, 192 * 4\n        addi    a4, a0, 256 * 4\n1:\n        vsetvli t0, a5, e32, m8, ta, ma\n        sub     a5, a5, t0\n        vle32.v v0, (a0)\n        vle32.v v8, (a1)\n        sh2add  a1, t0, a1\n        vle32.v v16, (a2)\n        vfadd.vv v0, v0, v8\n        sh2add  a2, t0, a2\n        vle32.v v24, (a3)\n        vfadd.vv v0, v0, v16\n        sh2add  a3, t0, a3\n        vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f, zba\n        lpad    0\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:2", "text": "sh2add  a3, t0, a3\n        vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f, zba\n        lpad    0\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma\n        vle32.v v16, (a0)\n        sub     a1, a1, t0\n        vfmacc.vv v8, v16, v16\n        sh2add  a0, t0, a0\n        bnez    a1, 1b\n\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\nfunc ff_sbr_autocorrelate_rvv, zve32f\n        lpad    0\n        vsetvli t0, zero, e32, m4, ta, ma\n        vmv.v.x v0, zero\n        flw     fa0,   (a0)\n        vmv.v.x v4, zero\n        flw     fa1,  4(a0)\n        vmv.v.x v8, zero\n        flw     fa2,  8(a0)\n        li      a2, 37\n        flw     fa3, 12(a0)\n        fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2\n        flw     fa5, 20(a0)\n        addi    a0, a0, 38 * 8\n        fmul.s  ft7, fa0, fa3\n        fmul.s  ft2, fa0, fa4\n        fmul.s  ft3, fa0, fa5\n        flw     fa0,   (a0)\n        fmadd.s ft10, fa1, fa1, ft10\n        fmadd.s ft6, fa1, fa3, ft6\n        flw     fa3, 12(a0)\n        fnmsub.s ft7, fa1, fa2, ft7\n        flw     fa2,  8(a0)\n        fmadd.s ft2, fa1, fa5, ft2\n        fnmsub.s ft3, fa1, fa4, ft3\n        flw     fa1,  4(a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:3", "text": "flw     fa2,  8(a0)\n        li      a2, 37\n        flw     fa3, 12(a0)\n        fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2\n        flw     fa5, 20(a0)\n        addi    a0, a0, 38 * 8\n        fmul.s  ft7, fa0, fa3\n        fmul.s  ft2, fa0, fa4\n        fmul.s  ft3, fa0, fa5\n        flw     fa0,   (a0)\n        fmadd.s ft10, fa1, fa1, ft10\n        fmadd.s ft6, fa1, fa3, ft6\n        flw     fa3, 12(a0)\n        fnmsub.s ft7, fa1, fa2, ft7\n        flw     fa2,  8(a0)\n        fmadd.s ft2, fa1, fa5, ft2\n        fnmsub.s ft3, fa1, fa4, ft3\n        flw     fa1,  4(a0)\n        fmul.s  ft4, fa0, fa0\n        fmul.s  ft0, fa0, fa2\n        fmul.s  ft1, fa0, fa3\n        fmadd.s ft4, fa1, fa1, ft4\n        fmadd.s ft0, fa1, fa3, ft0\n        fnmsub.s ft1, fa1, fa2, ft1\n1:\n        vsetvli t0, a2, e32, m2, tu, ma\n        slli    t1, t0, 3\n        sub     a0, a0, t1\n        vlseg2e32.v v16, (a0)\n        sub     a2, a2, t0\n        vfmacc.vv v0, v16, v16\n        vfslide1down.vf v20, v16, fa0\n        vfmacc.vv v4, v16, v20\n        vfslide1down.vf v22, v18, fa1\n        vfmacc.vv v0, v18, v18\n        vfslide1down.vf v24, v20, fa2\n        vfmacc.vv v4, v18, v22\n        vfslide1down.vf v26, v22, fa3\n        vfmacc.vv v6, v16, v22\n        vfmv.f.s fa0, v16\n        vfmacc.vv v8, v16, v24\n        vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20\n        vfnmsac.vv v6, v18, v20\n        vfmv.f.s fa3, v22\n        vfmacc.vv v8, v18, v26\n        vfnmsac.vv v10, v18, v24\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e32, m2, ta, ma\n        vfredusum.vs v0, v0, v2\n        vfredusum.vs v4, v4, v2\n        vfmv.f.s fa0, v0\n        vfredusum.vs v6, v6, v2\n        vfmv.f.s fa2, v4\n        fadd.s   ft4, ft4, fa0\n        vfredusum.vs v8, v8, v2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:4", "text": "vfmacc.vv v6, v16, v22\n        vfmv.f.s fa0, v16\n        vfmacc.vv v8, v16, v24\n        vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20\n        vfnmsac.vv v6, v18, v20\n        vfmv.f.s fa3, v22\n        vfmacc.vv v8, v18, v26\n        vfnmsac.vv v10, v18, v24\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e32, m2, ta, ma\n        vfredusum.vs v0, v0, v2\n        vfredusum.vs v4, v4, v2\n        vfmv.f.s fa0, v0\n        vfredusum.vs v6, v6, v2\n        vfmv.f.s fa2, v4\n        fadd.s   ft4, ft4, fa0\n        vfredusum.vs v8, v8, v2\n        vfmv.f.s fa3, v6\n        fadd.s   ft0, ft0, fa2\n        vfredusum.vs v10, v10, v2\n        vfmv.f.s fa4, v8\n        fadd.s   ft1, ft1, fa3\n        vfmv.f.s fa5, v10\n        fsw     ft0,   (a1)\n        fadd.s  ft2, ft2, fa4\n        fsw     ft1,  4(a1)\n        fadd.s  ft3, ft3, fa5\n        fsw     ft2,  8(a1)\n        fadd.s  ft6, ft6, fa2\n        fsw     ft3, 12(a1)\n        fadd.s  ft7, ft7, fa3\n        fsw     ft4, 16(a1)\n        fadd.s  ft10, ft10, fa0\n        fsw     ft6, 24(a1)\n        fsw     ft7, 28(a1)\n        fsw     ft10, 40(a1)\n        ret\nendfunc\n\nfunc ff_sbr_hf_gen_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:5", "text": "endfunc\n\nfunc ff_sbr_hf_gen_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]\n        flw     ft1, -12(a1)  // X_low[end - 2][1]\n        flw     ft2,  -8(a1)  // X_low[end - 1][0]\n        flw     ft3,  -4(a1)  // X_low[end - 1][1]\n        addi    a1, a1, -16\n1:\n        vsetvli t0, a5, e32, m4, ta, ma\n        slli    t1, t0, 3\n        sub     a1, a1, t1\n        vlseg2e32.v v0, (a1)          // X_low[i - 2]\n        sub     a0, a0, t1\n        vfslide1down.vf v8, v0, ft0   // X_low[i - 1][0]\n        sub     a5, a5, t0\n        vfslide1down.vf v12, v4, ft1  // X_low[i - 1][1]\n        vfslide1down.vf v16, v8, ft2  // X_low[i    ][0]\n        vfslide1down.vf v20, v12, ft3 // X_low[i    ][1]\n        vfmacc.vf v16, fa0, v0\n        vfmacc.vf v20, fa0, v4\n        vfmv.f.s ft0, v0\n        vfnmsac.vf v16, fa1, v4\n        vfmacc.vf v20, fa1, v0\n        vfmv.f.s ft1, v4\n        vfmacc.vf v16, fa2, v8\n        vfmacc.vf v20, fa2, v12\n        vfmv.f.s ft2, v8\n        vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f, zba\n        lpad    0\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:6", "text": "vfmv.f.s ft1, v4\n        vfmacc.vf v16, fa2, v8\n        vfmacc.vf v20, fa2, v12\n        vfmv.f.s ft2, v8\n        vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f, zba\n        lpad    0\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1\n        vfmul.vv v20, v20, v8\n        sh2add  a2, t0, a2\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table + 8\n        fmv.s.x ft0, zero\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:7", "text": "vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0\n        vfadd.vv v20, v20, v28\n.else\n        vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f, b\n        lpad    0\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, b\n        lpad    0\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, b\n        lpad    0\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:8", "text": "lpad    0\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, b\n        lpad    0\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, b\n        lpad    0\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, b\n        lpad    0\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 281, "line_end": 303}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_sbr_sum64x5_rvv, zve32f, zba\n        li      a5, 64\n        addi    a1, a0, 64 * 4\n        addi    a2, a0, 128 * 4\n        addi    a3, a0, 192 * 4\n        addi    a4, a0, 256 * 4\n1:\n        vsetvli t0, a5, e32, m8, ta, ma\n        sub     a5, a5, t0\n        vle32.v v0, (a0)\n        vle32.v v8, (a1)\n        sh2add  a1, t0, a1\n        vle32.v v16, (a2)\n        vfadd.vv v0, v0, v8\n        sh2add  a2, t0, a2\n        vle32.v v24, (a3)\n        vfadd.vv v0, v0, v16\n        sh2add  a3, t0, a3\n        vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f, zba\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma\n        vle32.v v16, (a0)\n        sub     a1, a1, t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:2", "text": "vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f, zba\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma\n        vle32.v v16, (a0)\n        sub     a1, a1, t0\n        vfmacc.vv v8, v16, v16\n        sh2add  a0, t0, a0\n        bnez    a1, 1b\n\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\nfunc ff_sbr_autocorrelate_rvv, zve32f\n        vsetvli t0, zero, e32, m4, ta, ma\n        vmv.v.x v0, zero\n        flw     fa0,   (a0)\n        vmv.v.x v4, zero\n        flw     fa1,  4(a0)\n        vmv.v.x v8, zero\n        flw     fa2,  8(a0)\n        li      a2, 37\n        flw     fa3, 12(a0)\n        fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2\n        flw     fa5, 20(a0)\n        addi    a0, a0, 38 * 8\n        fmul.s  ft7, fa0, fa3\n        fmul.s  ft2, fa0, fa4\n        fmul.s  ft3, fa0, fa5\n        flw     fa0,   (a0)\n        fmadd.s ft10, fa1, fa1, ft10\n        fmadd.s ft6, fa1, fa3, ft6\n        flw     fa3, 12(a0)\n        fnmsub.s ft7, fa1, fa2, ft7\n        flw     fa2,  8(a0)\n        fmadd.s ft2, fa1, fa5, ft2\n        fnmsub.s ft3, fa1, fa4, ft3\n        flw     fa1,  4(a0)\n        fmul.s  ft4, fa0, fa0\n        fmul.s  ft0, fa0, fa2\n        fmul.s  ft1, fa0, fa3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:3", "text": "fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2\n        flw     fa5, 20(a0)\n        addi    a0, a0, 38 * 8\n        fmul.s  ft7, fa0, fa3\n        fmul.s  ft2, fa0, fa4\n        fmul.s  ft3, fa0, fa5\n        flw     fa0,   (a0)\n        fmadd.s ft10, fa1, fa1, ft10\n        fmadd.s ft6, fa1, fa3, ft6\n        flw     fa3, 12(a0)\n        fnmsub.s ft7, fa1, fa2, ft7\n        flw     fa2,  8(a0)\n        fmadd.s ft2, fa1, fa5, ft2\n        fnmsub.s ft3, fa1, fa4, ft3\n        flw     fa1,  4(a0)\n        fmul.s  ft4, fa0, fa0\n        fmul.s  ft0, fa0, fa2\n        fmul.s  ft1, fa0, fa3\n        fmadd.s ft4, fa1, fa1, ft4\n        fmadd.s ft0, fa1, fa3, ft0\n        fnmsub.s ft1, fa1, fa2, ft1\n1:\n        vsetvli t0, a2, e32, m2, tu, ma\n        slli    t1, t0, 3\n        sub     a0, a0, t1\n        vlseg2e32.v v16, (a0)\n        sub     a2, a2, t0\n        vfmacc.vv v0, v16, v16\n        vfslide1down.vf v20, v16, fa0\n        vfmacc.vv v4, v16, v20\n        vfslide1down.vf v22, v18, fa1\n        vfmacc.vv v0, v18, v18\n        vfslide1down.vf v24, v20, fa2\n        vfmacc.vv v4, v18, v22\n        vfslide1down.vf v26, v22, fa3\n        vfmacc.vv v6, v16, v22\n        vfmv.f.s fa0, v16\n        vfmacc.vv v8, v16, v24\n        vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20\n        vfnmsac.vv v6, v18, v20\n        vfmv.f.s fa3, v22\n        vfmacc.vv v8, v18, v26\n        vfnmsac.vv v10, v18, v24\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e32, m2, ta, ma\n        vfredusum.vs v0, v0, v2\n        vfredusum.vs v4, v4, v2\n        vfmv.f.s fa0, v0\n        vfredusum.vs v6, v6, v2\n        vfmv.f.s fa2, v4\n        fadd.s   ft4, ft4, fa0\n        vfredusum.vs v8, v8, v2\n        vfmv.f.s fa3, v6\n        fadd.s   ft0, ft0, fa2\n        vfredusum.vs v10, v10, v2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:4", "text": "vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20\n        vfnmsac.vv v6, v18, v20\n        vfmv.f.s fa3, v22\n        vfmacc.vv v8, v18, v26\n        vfnmsac.vv v10, v18, v24\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e32, m2, ta, ma\n        vfredusum.vs v0, v0, v2\n        vfredusum.vs v4, v4, v2\n        vfmv.f.s fa0, v0\n        vfredusum.vs v6, v6, v2\n        vfmv.f.s fa2, v4\n        fadd.s   ft4, ft4, fa0\n        vfredusum.vs v8, v8, v2\n        vfmv.f.s fa3, v6\n        fadd.s   ft0, ft0, fa2\n        vfredusum.vs v10, v10, v2\n        vfmv.f.s fa4, v8\n        fadd.s   ft1, ft1, fa3\n        vfmv.f.s fa5, v10\n        fsw     ft0,   (a1)\n        fadd.s  ft2, ft2, fa4\n        fsw     ft1,  4(a1)\n        fadd.s  ft3, ft3, fa5\n        fsw     ft2,  8(a1)\n        fadd.s  ft6, ft6, fa2\n        fsw     ft3, 12(a1)\n        fadd.s  ft7, ft7, fa3\n        fsw     ft4, 16(a1)\n        fadd.s  ft10, ft10, fa0\n        fsw     ft6, 24(a1)\n        fsw     ft7, 28(a1)\n        fsw     ft10, 40(a1)\n        ret\nendfunc\n\nfunc ff_sbr_hf_gen_rvv, zve32f, zba\nNOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]\n        flw     ft1, -12(a1)  // X_low[end - 2][1]\n        flw     ft2,  -8(a1)  // X_low[end - 1][0]\n        flw     ft3,  -4(a1)  // X_low[end - 1][1]\n        addi    a1, a1, -16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:5", "text": "NOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]\n        flw     ft1, -12(a1)  // X_low[end - 2][1]\n        flw     ft2,  -8(a1)  // X_low[end - 1][0]\n        flw     ft3,  -4(a1)  // X_low[end - 1][1]\n        addi    a1, a1, -16\n1:\n        vsetvli t0, a5, e32, m4, ta, ma\n        slli    t1, t0, 3\n        sub     a1, a1, t1\n        vlseg2e32.v v0, (a1)          // X_low[i - 2]\n        sub     a0, a0, t1\n        vfslide1down.vf v8, v0, ft0   // X_low[i - 1][0]\n        sub     a5, a5, t0\n        vfslide1down.vf v12, v4, ft1  // X_low[i - 1][1]\n        vfslide1down.vf v16, v8, ft2  // X_low[i    ][0]\n        vfslide1down.vf v20, v12, ft3 // X_low[i    ][1]\n        vfmacc.vf v16, fa0, v0\n        vfmacc.vf v20, fa0, v4\n        vfmv.f.s ft0, v0\n        vfnmsac.vf v16, fa1, v4\n        vfmacc.vf v20, fa1, v0\n        vfmv.f.s ft1, v4\n        vfmacc.vf v16, fa2, v8\n        vfmacc.vf v20, fa2, v12\n        vfmv.f.s ft2, v8\n        vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f, zba\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:6", "text": "vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f, zba\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1\n        vfmul.vv v20, v20, v8\n        sh2add  a2, t0, a2\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table + 8\n        fmv.s.x ft0, zero\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:7", "text": "vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0\n        vfadd.vv v20, v20, v28\n.else\n        vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f, b\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, b\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, b\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, b\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 241, "line_end": 294}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:8", "text": "// fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, b\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, b\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 281, "line_end": 294}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_sbr_sum64x5_rvv, zve32f\n        li      a5, 64\n        addi    a1, a0, 64 * 4\n        addi    a2, a0, 128 * 4\n        addi    a3, a0, 192 * 4\n        addi    a4, a0, 256 * 4\n1:\n        vsetvli t0, a5, e32, m8, ta, ma\n        sub     a5, a5, t0\n        vle32.v v0, (a0)\n        vle32.v v8, (a1)\n        sh2add  a1, t0, a1\n        vle32.v v16, (a2)\n        vfadd.vv v0, v0, v8\n        sh2add  a2, t0, a2\n        vle32.v v24, (a3)\n        vfadd.vv v0, v0, v16\n        sh2add  a3, t0, a3\n        vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma\n        vle32.v v16, (a0)\n        sub     a1, a1, t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:2", "text": "vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma\n        vle32.v v16, (a0)\n        sub     a1, a1, t0\n        vfmacc.vv v8, v16, v16\n        sh2add  a0, t0, a0\n        bnez    a1, 1b\n\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\nfunc ff_sbr_autocorrelate_rvv, zve32f\n        vsetvli t0, zero, e32, m4, ta, ma\n        vmv.v.x v0, zero\n        flw     fa0,   (a0)\n        vmv.v.x v4, zero\n        flw     fa1,  4(a0)\n        vmv.v.x v8, zero\n        flw     fa2,  8(a0)\n        li      a2, 37\n        flw     fa3, 12(a0)\n        fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2\n        flw     fa5, 20(a0)\n        addi    a0, a0, 38 * 8\n        fmul.s  ft7, fa0, fa3\n        fmul.s  ft2, fa0, fa4\n        fmul.s  ft3, fa0, fa5\n        flw     fa0,   (a0)\n        fmadd.s ft10, fa1, fa1, ft10\n        fmadd.s ft6, fa1, fa3, ft6\n        flw     fa3, 12(a0)\n        fnmsub.s ft7, fa1, fa2, ft7\n        flw     fa2,  8(a0)\n        fmadd.s ft2, fa1, fa5, ft2\n        fnmsub.s ft3, fa1, fa4, ft3\n        flw     fa1,  4(a0)\n        fmul.s  ft4, fa0, fa0\n        fmul.s  ft0, fa0, fa2\n        fmul.s  ft1, fa0, fa3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:4", "text": "vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20\n        vfnmsac.vv v6, v18, v20\n        vfmv.f.s fa3, v22\n        vfmacc.vv v8, v18, v26\n        vfnmsac.vv v10, v18, v24\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e32, m2, ta, ma\n        vfredusum.vs v0, v0, v2\n        vfredusum.vs v4, v4, v2\n        vfmv.f.s fa0, v0\n        vfredusum.vs v6, v6, v2\n        vfmv.f.s fa2, v4\n        fadd.s   ft4, ft4, fa0\n        vfredusum.vs v8, v8, v2\n        vfmv.f.s fa3, v6\n        fadd.s   ft0, ft0, fa2\n        vfredusum.vs v10, v10, v2\n        vfmv.f.s fa4, v8\n        fadd.s   ft1, ft1, fa3\n        vfmv.f.s fa5, v10\n        fsw     ft0,   (a1)\n        fadd.s  ft2, ft2, fa4\n        fsw     ft1,  4(a1)\n        fadd.s  ft3, ft3, fa5\n        fsw     ft2,  8(a1)\n        fadd.s  ft6, ft6, fa2\n        fsw     ft3, 12(a1)\n        fadd.s  ft7, ft7, fa3\n        fsw     ft4, 16(a1)\n        fadd.s  ft10, ft10, fa0\n        fsw     ft6, 24(a1)\n        fsw     ft7, 28(a1)\n        fsw     ft10, 40(a1)\n        ret\nendfunc\n\nfunc ff_sbr_hf_gen_rvv, zve32f\nNOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]\n        flw     ft1, -12(a1)  // X_low[end - 2][1]\n        flw     ft2,  -8(a1)  // X_low[end - 1][0]\n        flw     ft3,  -4(a1)  // X_low[end - 1][1]\n        addi    a1, a1, -16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:5", "text": "NOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]\n        flw     ft1, -12(a1)  // X_low[end - 2][1]\n        flw     ft2,  -8(a1)  // X_low[end - 1][0]\n        flw     ft3,  -4(a1)  // X_low[end - 1][1]\n        addi    a1, a1, -16\n1:\n        vsetvli t0, a5, e32, m4, ta, ma\n        slli    t1, t0, 3\n        sub     a1, a1, t1\n        vlseg2e32.v v0, (a1)          // X_low[i - 2]\n        sub     a0, a0, t1\n        vfslide1down.vf v8, v0, ft0   // X_low[i - 1][0]\n        sub     a5, a5, t0\n        vfslide1down.vf v12, v4, ft1  // X_low[i - 1][1]\n        vfslide1down.vf v16, v8, ft2  // X_low[i    ][0]\n        vfslide1down.vf v20, v12, ft3 // X_low[i    ][1]\n        vfmacc.vf v16, fa0, v0\n        vfmacc.vf v20, fa0, v4\n        vfmv.f.s ft0, v0\n        vfnmsac.vf v16, fa1, v4\n        vfmacc.vf v20, fa1, v0\n        vfmv.f.s ft1, v4\n        vfmacc.vf v16, fa2, v8\n        vfmacc.vf v20, fa2, v12\n        vfmv.f.s ft2, v8\n        vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:6", "text": "vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1\n        vfmul.vv v20, v20, v8\n        sh2add  a2, t0, a2\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table + 8\n        fmv.s.x ft0, zero\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:7", "text": "vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0\n        vfadd.vv v20, v20, v28\n.else\n        vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f, zbb\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, zbb\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, zbb\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, zbb\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 241, "line_end": 294}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:8", "text": "// fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, zbb\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, zbb\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "b248d7c3198ec7c3d097c8a8603067879f78aced", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b248d7c3198ec7c3d097c8a8603067879f78aced/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 281, "line_end": 294}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:6", "text": "vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1\n        vfmul.vv v20, v20, v8\n        sh2add  a2, t0, a2\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table\n        fmv.s.x ft0, zero\n        addi    a6, a6, 8\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "7591eb4055dfd2db925198cf61ec6a103b222725", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7591eb4055dfd2db925198cf61ec6a103b222725/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:7", "text": "sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0\n        vfadd.vv v20, v20, v28\n.else\n        vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f, zbb\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, zbb\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, zbb\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, zbb\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "7591eb4055dfd2db925198cf61ec6a103b222725", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7591eb4055dfd2db925198cf61ec6a103b222725/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 241, "line_end": 295}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:8", "text": "not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, zbb\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, zbb\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "7591eb4055dfd2db925198cf61ec6a103b222725", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7591eb4055dfd2db925198cf61ec6a103b222725/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 281, "line_end": 295}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:2", "text": "vle32.v v8, (a4)\n        vfadd.vv v0, v0, v24\n        sh2add  a4, t0, a4\n        vfadd.vv v0, v0, v8\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_sum_square_rvv, zve32f\n        vsetvli t0, zero, e32, m8, ta, ma\n        slli    a1, a1, 1\n        vmv.v.x v8, zero\n        vmv.s.x v0, zero\n1:\n        vsetvli t0, a1, e32, m8, tu, ma\n        vle32.v v16, (a0)\n        sub     a1, a1, t0\n        vfmacc.vv v8, v16, v16\n        sh2add  a0, t0, a0\n        bnez    a1, 1b\n\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n#if __riscv_xlen >= 64\nfunc ff_sbr_neg_odd_64_rvv, zve64x\n        li      a1, 32\n        li      t1, 1 << 63\n1:\n        vsetvli t0, a1, e64, m8, ta, ma\n        vle64.v v8, (a0)\n        sub     a1, a1, t0\n        vxor.vx v8, v8, t1\n        vse64.v v8, (a0)\n        sh3add  a0, t0, a0\n        bnez    t0, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_sbr_autocorrelate_rvv, zve32f\n        vsetvli t0, zero, e32, m4, ta, ma\n        vmv.v.x v0, zero\n        flw     fa0,   (a0)\n        vmv.v.x v4, zero\n        flw     fa1,  4(a0)\n        vmv.v.x v8, zero\n        flw     fa2,  8(a0)\n        li      a2, 37\n        flw     fa3, 12(a0)\n        fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:3", "text": "sh3add  a0, t0, a0\n        bnez    t0, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_sbr_autocorrelate_rvv, zve32f\n        vsetvli t0, zero, e32, m4, ta, ma\n        vmv.v.x v0, zero\n        flw     fa0,   (a0)\n        vmv.v.x v4, zero\n        flw     fa1,  4(a0)\n        vmv.v.x v8, zero\n        flw     fa2,  8(a0)\n        li      a2, 37\n        flw     fa3, 12(a0)\n        fmul.s  ft10, fa0, fa0\n        flw     fa4, 16(a0)\n        fmul.s  ft6, fa0, fa2\n        flw     fa5, 20(a0)\n        addi    a0, a0, 38 * 8\n        fmul.s  ft7, fa0, fa3\n        fmul.s  ft2, fa0, fa4\n        fmul.s  ft3, fa0, fa5\n        flw     fa0,   (a0)\n        fmadd.s ft10, fa1, fa1, ft10\n        fmadd.s ft6, fa1, fa3, ft6\n        flw     fa3, 12(a0)\n        fnmsub.s ft7, fa1, fa2, ft7\n        flw     fa2,  8(a0)\n        fmadd.s ft2, fa1, fa5, ft2\n        fnmsub.s ft3, fa1, fa4, ft3\n        flw     fa1,  4(a0)\n        fmul.s  ft4, fa0, fa0\n        fmul.s  ft0, fa0, fa2\n        fmul.s  ft1, fa0, fa3\n        fmadd.s ft4, fa1, fa1, ft4\n        fmadd.s ft0, fa1, fa3, ft0\n        fnmsub.s ft1, fa1, fa2, ft1\n1:\n        vsetvli t0, a2, e32, m2, tu, ma\n        slli    t1, t0, 3\n        sub     a0, a0, t1\n        vlseg2e32.v v16, (a0)\n        sub     a2, a2, t0\n        vfmacc.vv v0, v16, v16\n        vfslide1down.vf v20, v16, fa0\n        vfmacc.vv v4, v16, v20\n        vfslide1down.vf v22, v18, fa1\n        vfmacc.vv v0, v18, v18\n        vfslide1down.vf v24, v20, fa2\n        vfmacc.vv v4, v18, v22\n        vfslide1down.vf v26, v22, fa3\n        vfmacc.vv v6, v16, v22\n        vfmv.f.s fa0, v16\n        vfmacc.vv v8, v16, v24\n        vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:4", "text": "1:\n        vsetvli t0, a2, e32, m2, tu, ma\n        slli    t1, t0, 3\n        sub     a0, a0, t1\n        vlseg2e32.v v16, (a0)\n        sub     a2, a2, t0\n        vfmacc.vv v0, v16, v16\n        vfslide1down.vf v20, v16, fa0\n        vfmacc.vv v4, v16, v20\n        vfslide1down.vf v22, v18, fa1\n        vfmacc.vv v0, v18, v18\n        vfslide1down.vf v24, v20, fa2\n        vfmacc.vv v4, v18, v22\n        vfslide1down.vf v26, v22, fa3\n        vfmacc.vv v6, v16, v22\n        vfmv.f.s fa0, v16\n        vfmacc.vv v8, v16, v24\n        vfmv.f.s fa1, v18\n        vfmacc.vv v10, v16, v26\n        vfmv.f.s fa2, v20\n        vfnmsac.vv v6, v18, v20\n        vfmv.f.s fa3, v22\n        vfmacc.vv v8, v18, v26\n        vfnmsac.vv v10, v18, v24\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e32, m2, ta, ma\n        vfredusum.vs v0, v0, v2\n        vfredusum.vs v4, v4, v2\n        vfmv.f.s fa0, v0\n        vfredusum.vs v6, v6, v2\n        vfmv.f.s fa2, v4\n        fadd.s   ft4, ft4, fa0\n        vfredusum.vs v8, v8, v2\n        vfmv.f.s fa3, v6\n        fadd.s   ft0, ft0, fa2\n        vfredusum.vs v10, v10, v2\n        vfmv.f.s fa4, v8\n        fadd.s   ft1, ft1, fa3\n        vfmv.f.s fa5, v10\n        fsw     ft0,   (a1)\n        fadd.s  ft2, ft2, fa4\n        fsw     ft1,  4(a1)\n        fadd.s  ft3, ft3, fa5\n        fsw     ft2,  8(a1)\n        fadd.s  ft6, ft6, fa2\n        fsw     ft3, 12(a1)\n        fadd.s  ft7, ft7, fa3\n        fsw     ft4, 16(a1)\n        fadd.s  ft10, ft10, fa0\n        fsw     ft6, 24(a1)\n        fsw     ft7, 28(a1)\n        fsw     ft10, 40(a1)\n        ret\nendfunc\n\nfunc ff_sbr_hf_gen_rvv, zve32f\nNOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:5", "text": "fsw     ft0,   (a1)\n        fadd.s  ft2, ft2, fa4\n        fsw     ft1,  4(a1)\n        fadd.s  ft3, ft3, fa5\n        fsw     ft2,  8(a1)\n        fadd.s  ft6, ft6, fa2\n        fsw     ft3, 12(a1)\n        fadd.s  ft7, ft7, fa3\n        fsw     ft4, 16(a1)\n        fadd.s  ft10, ft10, fa0\n        fsw     ft6, 24(a1)\n        fsw     ft7, 28(a1)\n        fsw     ft10, 40(a1)\n        ret\nendfunc\n\nfunc ff_sbr_hf_gen_rvv, zve32f\nNOHWF   fmv.w.x fa0, a4\nNOHWF   mv      a4, a5\nNOHWF   mv      a5, a6\n        flw     ft2, 0(a2)\n        fmul.s  fa1, fa0, fa0 // bw * bw\n        sh3add  a1, a5, a1\n        flw     ft3, 4(a2)\n        fmul.s  fa2, ft2, fa0 // alpha[2]\n        sh3add  a0, a5, a0\n        flw     ft0, 0(a3)\n        fmul.s  fa3, ft3, fa0 // alpha[3]\n        sub     a5, a5, a4\n        flw     ft1, 4(a3)\n        fmul.s  fa0, ft0, fa1 // alpha[0]\n        flw     ft0, -16(a1)  // X_low[end - 2][0]\n        fmul.s  fa1, ft1, fa1 // alpha[1]\n        flw     ft1, -12(a1)  // X_low[end - 2][1]\n        flw     ft2,  -8(a1)  // X_low[end - 1][0]\n        flw     ft3,  -4(a1)  // X_low[end - 1][1]\n        addi    a1, a1, -16\n1:\n        vsetvli t0, a5, e32, m4, ta, ma\n        slli    t1, t0, 3\n        sub     a1, a1, t1\n        vlseg2e32.v v0, (a1)          // X_low[i - 2]\n        sub     a0, a0, t1\n        vfslide1down.vf v8, v0, ft0   // X_low[i - 1][0]\n        sub     a5, a5, t0\n        vfslide1down.vf v12, v4, ft1  // X_low[i - 1][1]\n        vfslide1down.vf v16, v8, ft2  // X_low[i    ][0]\n        vfslide1down.vf v20, v12, ft3 // X_low[i    ][1]\n        vfmacc.vf v16, fa0, v0\n        vfmacc.vf v20, fa0, v4\n        vfmv.f.s ft0, v0\n        vfnmsac.vf v16, fa1, v4\n        vfmacc.vf v20, fa1, v0\n        vfmv.f.s ft1, v4\n        vfmacc.vf v16, fa2, v8\n        vfmacc.vf v20, fa2, v12\n        vfmv.f.s ft2, v8\n        vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:6", "text": "sub     a1, a1, t1\n        vlseg2e32.v v0, (a1)          // X_low[i - 2]\n        sub     a0, a0, t1\n        vfslide1down.vf v8, v0, ft0   // X_low[i - 1][0]\n        sub     a5, a5, t0\n        vfslide1down.vf v12, v4, ft1  // X_low[i - 1][1]\n        vfslide1down.vf v16, v8, ft2  // X_low[i    ][0]\n        vfslide1down.vf v20, v12, ft3 // X_low[i    ][1]\n        vfmacc.vf v16, fa0, v0\n        vfmacc.vf v20, fa0, v4\n        vfmv.f.s ft0, v0\n        vfnmsac.vf v16, fa1, v4\n        vfmacc.vf v20, fa1, v0\n        vfmv.f.s ft1, v4\n        vfmacc.vf v16, fa2, v8\n        vfmacc.vf v20, fa2, v12\n        vfmv.f.s ft2, v8\n        vfnmsac.vf v16, fa3, v12\n        vfmacc.vf v20, fa3, v8\n        vfmv.f.s ft3, v12\n        vsseg2e32.v v16, (a0)\n        bnez    a5, 1b\n\n        ret\nendfunc\n\nfunc ff_sbr_hf_g_filt_rvv, zve32f\n        li      t1, 40 * 2 * 4\n        sh3add  a1, a4, a1\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vlsseg2e32.v v16, (a1), t1\n        mul     t2, t0, t1\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vfmul.vv v16, v16, v8\n        add     a1, t2, a1\n        vfmul.vv v20, v20, v8\n        sh2add  a2, t0, a2\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table\n        fmv.s.x ft0, zero\n        addi    a6, a6, 8\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:7", "text": "sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table\n        fmv.s.x ft0, zero\n        addi    a6, a6, 8\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0\n        vfadd.vv v20, v20, v28\n.else\n        vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f, zbb\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, zbb\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:8", "text": "vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f, zbb\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f, zbb\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f, zbb\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f, zbb\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "c07af340ae909ea17944c263bfd9ddb4f2889713", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c07af340ae909ea17944c263bfd9ddb4f2889713/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 281, "line_end": 312}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:7", "text": "sh3add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\n.macro hf_apply_noise n\n        lla     a6, ff_sbr_noise_table\n        fmv.s.x ft0, zero\n        addi    a6, a6, 8\n1:\n.if \\n & 1\n        min     t0, t0, a5 // preserve parity of t0 for v4 sign injector\n        vsetvli zero, t0, e32, m4, ta, mu\n.else\n        vsetvli t0, a5, e32, m4, ta, mu\n.endif\n        sh3add  t6, a3, a6\n        vle32.v v8, (a1)      // s_m\n        sub     a5, a5, t0\n        vle32.v v12, (a2)     // q_filt\n        sh2add  a1, t0, a1\n        vmfeq.vf v0, v8, ft0  // s_m == 0.f\n        vlseg2e32.v v24, (t6) // ff_sbr_noise_table\n        sh2add  a2, t0, a2\n.if \\n == 2\n        vfneg.v v8, v8\n.endif\n.if \\n & 1\n        vfsgnjx.vv v8, v8, v4 // could equivalent use vxor.vv\n.endif\n        add     a3, t0, a3\n        vlseg2e32.v v16, (a0) // Y\n        andi    a3, a3, 0x1ff\n.if \\n & 1\n        vfmul.vv v28, v12, v28\n        vfmacc.vv v16, v12, v24, v0.t\n        vmerge.vvm v28, v8, v28, v0\n        vfadd.vv v20, v20, v28\n.else\n        vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/sbrdsp_rvv.S:8", "text": "vfmul.vv v24, v12, v24\n        vfmacc.vv v20, v12, v28, v0.t\n        vmerge.vvm v24, v8, v24, v0\n        vfadd.vv v16, v16, v24\n.endif\n        vsseg2e32.v v16, (a0)\n        sh3add  a0, t0, a0\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_sbr_hf_apply_noise_0_rvv, zve32f\n        hf_apply_noise 0\nendfunc\n\nfunc ff_sbr_hf_apply_noise_3_rvv, zve32f\n       not     a4, a4 // invert parity of kx\n       // fall through\nendfunc\n\nfunc ff_sbr_hf_apply_noise_1_rvv, zve32f\n        vsetvli t0, zero, e32, m4, ta, ma\n        vid.v   v4\n        vxor.vx v4, v4, a4\n        vsll.vi v4, v4, 31 // v4[i] = (kx & 1) ? -0.f : +0.f\n        hf_apply_noise 1\nendfunc\n\nfunc ff_sbr_hf_apply_noise_2_rvv, zve32f\n        hf_apply_noise 2\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/sbrdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/sbrdsp_rvv.S", "line_start": 281, "line_end": 312}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvb.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  lx rd, addr\n#if (__riscv_xlen == 32)\n        lw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        ld      \\rd, \\addr\n#else\n        lq      \\rd, \\addr\n#endif\n        .endm\n\nfunc ff_startcode_find_candidate_rvb, zbb\n        lpad    0\n        add     a1, a0, a1\n\n        // Potentially unaligned head\n        andi    t0, a0, -(__riscv_xlen / 8)\n        beq     a0, a1, 2f\n\n        andi    t1, a0, (__riscv_xlen / 8) - 1\n        lx      t2, (t0)\n        li      t3, __riscv_xlen\n        orc.b   t2, t2\n        slli    t1, t1, 3\n        not     t2, t2\n        sub     t3, t3, t1\n        srl     t2, t2, t1\n        addi    t0, t0, __riscv_xlen / 8\n        sll     t2, t2, t1\n        bnez    t2, 4f\n\n        // Main loop (including potentially short tail)\n        bge     t0, a1, 2f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/startcode_rvb.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvb.S:2", "text": "add     a1, a0, a1\n\n        // Potentially unaligned head\n        andi    t0, a0, -(__riscv_xlen / 8)\n        beq     a0, a1, 2f\n\n        andi    t1, a0, (__riscv_xlen / 8) - 1\n        lx      t2, (t0)\n        li      t3, __riscv_xlen\n        orc.b   t2, t2\n        slli    t1, t1, 3\n        not     t2, t2\n        sub     t3, t3, t1\n        srl     t2, t2, t1\n        addi    t0, t0, __riscv_xlen / 8\n        sll     t2, t2, t1\n        bnez    t2, 4f\n\n        // Main loop (including potentially short tail)\n        bge     t0, a1, 2f\n        li      t3, -1\n1:\n        lx      t2, (t0)\n        addi    t0, t0, __riscv_xlen / 8\n        orc.b   t2, t2\n        bne     t2, t3, 3f // t2 != -1 iff (at least one) zero byte\n        blt     t0, a1, 1b\n\n2:      // No zero byte found\n        sub     a0, a1, a0\n        ret\n\n3:      // Zero byte found in main loop\n        not     t2, t2\n4:      // Zero byte found in head\n        ctz     t2, t2\n        addi    t0, t0, -(__riscv_xlen / 8) // back-track\n        srl     t2, t2, 3\n        add     t0, t0, t2\n        // Uncomment the following line for exact POSIX C strnlen() semantics.\n        //minu    t0, t0, a1 // ignore zero byte in tail\n        sub     a0, t0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/startcode_rvb.S", "line_start": 41, "line_end": 84}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvb.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n        .macro  lx rd, addr\n#if (__riscv_xlen == 32)\n        lw      \\rd, \\addr\n#elif (__riscv_xlen == 64)\n        ld      \\rd, \\addr\n#else\n        lq      \\rd, \\addr\n#endif\n        .endm\n\nfunc ff_startcode_find_candidate_rvb, zbb\n        add     a1, a0, a1\n\n        // Potentially unaligned head\n        andi    t0, a0, -(__riscv_xlen / 8)\n        beq     a0, a1, 2f\n\n        andi    t1, a0, (__riscv_xlen / 8) - 1\n        lx      t2, (t0)\n        li      t3, __riscv_xlen\n        orc.b   t2, t2\n        slli    t1, t1, 3\n        not     t2, t2\n        sub     t3, t3, t1\n        srl     t2, t2, t1\n        addi    t0, t0, __riscv_xlen / 8\n        sll     t2, t2, t1\n        bnez    t2, 4f\n\n        // Main loop (including potentially short tail)\n        bge     t0, a1, 2f\n        li      t3, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvb.S", "license": "LGPL-2.1", "commit": "4ad5b9c8db737f3018360e179121fc0a9b7e7d1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4ad5b9c8db737f3018360e179121fc0a9b7e7d1b/libavcodec/riscv/startcode_rvb.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvb.S:2", "text": "// Potentially unaligned head\n        andi    t0, a0, -(__riscv_xlen / 8)\n        beq     a0, a1, 2f\n\n        andi    t1, a0, (__riscv_xlen / 8) - 1\n        lx      t2, (t0)\n        li      t3, __riscv_xlen\n        orc.b   t2, t2\n        slli    t1, t1, 3\n        not     t2, t2\n        sub     t3, t3, t1\n        srl     t2, t2, t1\n        addi    t0, t0, __riscv_xlen / 8\n        sll     t2, t2, t1\n        bnez    t2, 4f\n\n        // Main loop (including potentially short tail)\n        bge     t0, a1, 2f\n        li      t3, -1\n1:\n        lx      t2, (t0)\n        addi    t0, t0, __riscv_xlen / 8\n        orc.b   t2, t2\n        bne     t2, t3, 3f // t2 != -1 iff (at least one) zero byte\n        blt     t0, a1, 1b\n\n2:      // No zero byte found\n        sub     a0, a1, a0\n        ret\n\n3:      // Zero byte found in main loop\n        not     t2, t2\n4:      // Zero byte found in head\n        ctz     t2, t2\n        addi    t0, t0, -(__riscv_xlen / 8) // back-track\n        srl     t2, t2, 3\n        add     t0, t0, t2\n        // Uncomment the following line for exact POSIX C strnlen() semantics.\n        //minu    t0, t0, a1 // ignore zero byte in tail\n        sub     a0, t0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvb.S", "license": "LGPL-2.1", "commit": "4ad5b9c8db737f3018360e179121fc0a9b7e7d1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4ad5b9c8db737f3018360e179121fc0a9b7e7d1b/libavcodec/riscv/startcode_rvb.S", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_startcode_find_candidate_rvv, zve32x\n        lpad    0\n        mv       t0, a0\n1:\n        vsetvli  t1, a1, e8, m8, ta, ma\n        vle8.v   v8, (t0)\n        sub      a1, a1, t1\n        vmseq.vi v0, v8, 0\n        vfirst.m t2, v0\n        bgez     t2, 2f\n        add      t0, t0, t1\n        bnez     a1, 1b\n\n        mv       t2, zero\n2:\n        add      t0, t0, t2\n        sub      a0, t0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/startcode_rvv.S", "line_start": 1, "line_end": 47}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_startcode_find_candidate_rvv, zve32x\n        mv       t0, a0\n1:\n        vsetvli  t1, a1, e8, m8, ta, ma\n        vle8.v   v8, (t0)\n        sub      a1, a1, t1\n        vmseq.vi v0, v8, 0\n        vfirst.m t2, v0\n        bgez     t2, 2f\n        add      t0, t0, t1\n        bnez     a1, 1b\n\n        mv       t2, zero\n2:\n        add      t0, t0, t2\n        sub      a0, t0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvv.S", "license": "LGPL-2.1", "commit": "84441152622dbcb6a4b7301771eb3cae1a0a6014", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/84441152622dbcb6a4b7301771eb3cae1a0a6014/libavcodec/riscv/startcode_rvv.S", "line_start": 1, "line_end": 46}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/startcode_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *    this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n *    this list of conditions and the following disclaimer in the documentation\n *    and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_startcode_find_candidate_rvv, zve32x\n        mv       t0, a0\n1:\n        vsetvli  t1, a1, e8, m8, ta, ma\n        vle8.v   v8, (t0)\n        sub      a1, a1, t1\n        vmseq.vi v0, v8, 0\n        vfirst.m t2, v0\n        bgez     t2, 2f\n        add      t0, t0, t1\n        bnez     a1, 1b\n2:\n        add      t0, t0, t2\n        sub      a0, t0, a0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/startcode_rvv.S", "license": "LGPL-2.1", "commit": "fa47299516d0016e87ec29d974bc3a155b618066", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa47299516d0016e87ec29d974bc3a155b618066/libavcodec/riscv/startcode_rvv.S", "line_start": 1, "line_end": 44}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/svqenc_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ssd_int8_vs_int16_rvv, zve32x, zba\n        lpad    0\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v24, zero\n1:\n        vsetvli      t0, a2, e8, m2, tu, ma\n        vle16.v      v8, (a1)\n        sub          a2, a2, t0\n        vle8.v       v0, (a0)\n        vwsub.wv     v16, v8, v0\n        vsetvli      zero, zero, e16, m4, tu, ma\n        add          a0, a0, t0\n        vwmacc.vv    v24, v16, v16\n        sh1add       a1, t0, a1\n        bnez         a2, 1b\n        vsetvli      zero, zero, e32, m8, ta, ma\n        vmv.s.x      v0, zero\n        vredsum.vs   v0, v24, v0\n        vmv.x.s      a0, v0\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/svqenc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/svqenc_rvv.S", "line_start": 1, "line_end": 44}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/svqenc_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ssd_int8_vs_int16_rvv, zve32x, zba\n        lpad    0\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v24, zero\n1:\n        vsetvli      t0, a2, e8, m2, tu, ma\n        vle16.v      v8, (a1)\n        sub          a2, a2, t0\n        vle8.v       v0, (a0)\n        vwsub.wv     v16, v8, v0\n        vsetvli      zero, zero, e16, m4, tu, ma\n        add          a0, a0, t0\n        vwmacc.vv    v24, v16, v16\n        sh1add       a1, t0, a1\n        bnez         a2, 1b\n        vsetvli      zero, zero, e32, m8, ta, ma\n        vmv.s.x      v0, zero\n        vredsum.vs   v0, v24, v0\n        vmv.x.s      a0, v0\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/svqenc_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/svqenc_rvv.S", "line_start": 1, "line_end": 44}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/svqenc_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ssd_int8_vs_int16_rvv, zve32x, zba\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v24, zero\n1:\n        vsetvli      t0, a2, e8, m2, tu, ma\n        vle16.v      v8, (a1)\n        sub          a2, a2, t0\n        vle8.v       v0, (a0)\n        vwsub.wv     v16, v8, v0\n        vsetvli      zero, zero, e16, m4, tu, ma\n        add          a0, a0, t0\n        vwmacc.vv    v24, v16, v16\n        sh1add       a1, t0, a1\n        bnez         a2, 1b\n        vsetvli      zero, zero, e32, m8, ta, ma\n        vmv.s.x      v0, zero\n        vredsum.vs   v0, v24, v0\n        vmv.x.s      a0, v0\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/svqenc_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/svqenc_rvv.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/svqenc_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_ssd_int8_vs_int16_rvv, zve32x\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v24, zero\n1:\n        vsetvli      t0, a2, e8, m2, tu, ma\n        vle16.v      v8, (a1)\n        sub          a2, a2, t0\n        vle8.v       v0, (a0)\n        vwsub.wv     v16, v8, v0\n        vsetvli      zero, zero, e16, m4, tu, ma\n        add          a0, a0, t0\n        vwmacc.vv    v24, v16, v16\n        sh1add       a1, t0, a1\n        bnez         a2, 1b\n        vsetvli      zero, zero, e32, m8, ta, ma\n        vmv.s.x      v0, zero\n        vredsum.vs   v0, v24, v0\n        vmv.x.s      a0, v0\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/svqenc_rvv.S", "license": "LGPL-2.1", "commit": "8e23ebe6f971ec4177be73b453960d83c264b7b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e23ebe6f971ec4177be73b453960d83c264b7b5/libavcodec/riscv/svqenc_rvv.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2023 Rémi Denis-Courmont\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_decorrelate_ls_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vle32.v  v8, (a1)\n        vadd.vv  v16, v0, v8\n        vse32.v  v16, (a1)\n        sh2add   a1, t0, a1\n        bnez a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sr_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/takdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:2", "text": "1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vadd.vv  v8, v0, v8\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_decorrelate_sf_rvv, zve32x, zba\n        lpad    0\n        csrwi    vxrm, 0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vsra.vx  v8, v8, a3\n        sh2add   a1, t0, a1\n        vle32.v  v0, (a0)\n        vmul.vx  v8, v8, a4\n        vssra.vi v8, v8, 8\n        vsll.vx  v8, v8, a3\n        vsub.vv  v0, v8, v0\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/takdsp_rvv.S", "line_start": 41, "line_end": 92}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:3", "text": "sh2add   a1, t0, a1\n        vle32.v  v0, (a0)\n        vmul.vx  v8, v8, a4\n        vssra.vi v8, v8, 8\n        vsll.vx  v8, v8, a3\n        vsub.vv  v0, v8, v0\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/takdsp_rvv.S", "line_start": 81, "line_end": 92}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2023 Rémi Denis-Courmont\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_decorrelate_ls_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vle32.v  v8, (a1)\n        vadd.vv  v16, v0, v8\n        vse32.v  v16, (a1)\n        sh2add   a1, t0, a1\n        bnez a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sr_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/takdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2023 Rémi Denis-Courmont\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_decorrelate_ls_rvv, zve32x, zba\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vle32.v  v8, (a1)\n        vadd.vv  v16, v0, v8\n        vse32.v  v16, (a1)\n        sh2add   a1, t0, a1\n        bnez a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sr_rvv, zve32x, zba\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x, zba\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/takdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:2", "text": "vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x, zba\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vadd.vv  v8, v0, v8\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_decorrelate_sf_rvv, zve32x, zba\n        csrwi    vxrm, 0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vsra.vx  v8, v8, a3\n        sh2add   a1, t0, a1\n        vle32.v  v0, (a0)\n        vmul.vx  v8, v8, a4\n        vssra.vi v8, v8, 8\n        vsll.vx  v8, v8, a3\n        vsub.vv  v0, v8, v0\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/takdsp_rvv.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2023 Rémi Denis-Courmont\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_decorrelate_ls_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vle32.v  v8, (a1)\n        vadd.vv  v16, v0, v8\n        vse32.v  v16, (a1)\n        sh2add   a1, t0, a1\n        bnez a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sr_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "278b4b60d636ac0673524471a8ae35108d31f3d7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/278b4b60d636ac0673524471a8ae35108d31f3d7/libavcodec/riscv/takdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:2", "text": "vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vadd.vv  v8, v0, v8\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_decorrelate_sf_rvv, zve32x\n        csrwi    vxrm, 0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vsra.vx  v8, v8, a3\n        sh2add   a1, t0, a1\n        vle32.v  v0, (a0)\n        vmul.vx  v8, v8, a4\n        vssra.vi v8, v8, 8\n        vsll.vx  v8, v8, a3\n        vsub.vv  v0, v8, v0\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "278b4b60d636ac0673524471a8ae35108d31f3d7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/278b4b60d636ac0673524471a8ae35108d31f3d7/libavcodec/riscv/takdsp_rvv.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_decorrelate_ls_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vle32.v  v8, (a1)\n        vadd.vv  v16, v0, v8\n        vse32.v  v16, (a1)\n        sh2add   a1, t0, a1\n        bnez a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sr_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v0, (a0)\n        sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/takdsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/takdsp_rvv.S:2", "text": "sub      a2, a2, t0\n        vle32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        vsub.vv  v16, v8, v0\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n        ret\nendfunc\n\nfunc ff_decorrelate_sm_rvv, zve32x\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v8, (a1)\n        sub      a2, a2, t0\n        vle32.v  v0, (a0)\n        vsra.vi  v16, v8, 1\n        vsub.vv  v0, v0, v16\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vadd.vv  v8, v0, v8\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/takdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/takdsp_rvv.S", "line_start": 41, "line_end": 67}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_restore_rgb_planes_rvv, zve32x, zba\n        lpad    0\n        li      t1, -0x80\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6\n1:\n        mv      t6, a6\n        addi    a7, a7, -1\n2:\n        vsetvli t0, t6, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t6, t6, t0\n        vle8.v  v8, (a0)\n        vadd.vx v16, v16, t1\n        add     a1, t0, a1\n        vle8.v  v24, (a2)\n        vadd.vv v8, v8, v16\n        vadd.vv v24, v24, v16\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        vse8.v  v24, (a2)\n        add     a2, t0, a2\n        bnez    t6, 2b\n\n        add     a0, a3, a0\n        add     a1, a4, a1\n        add     a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc\n\nfunc ff_restore_rgb_planes10_rvv, zve32x, zba\n        lpad    0\n        li      t1, -0x200\n        li      t2, 0x3FF\n        sub     a3, a3, a6", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:2", "text": "vadd.vv v24, v24, v16\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        vse8.v  v24, (a2)\n        add     a2, t0, a2\n        bnez    t6, 2b\n\n        add     a0, a3, a0\n        add     a1, a4, a1\n        add     a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc\n\nfunc ff_restore_rgb_planes10_rvv, zve32x, zba\n        lpad    0\n        li      t1, -0x200\n        li      t2, 0x3FF\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6\n1:\n        mv      t6, a6\n        addi    a7, a7, -1\n2:\n        vsetvli t0, t6, e16, m8, ta, ma\n        vle16.v v16, (a1)\n        sub     t6, t6, t0\n        vle16.v v8, (a0)\n        vadd.vx v16, v16, t1\n        sh1add  a1, t0, a1\n        vle16.v v24, (a2)\n        vadd.vv v8, v8, v16\n        vadd.vv v24, v24, v16\n        vand.vx v8, v8, t2\n        vand.vx v24, v24, t2\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        vse16.v v24, (a2)\n        sh1add  a2, t0, a2\n        bnez    t6, 2b\n\n        sh1add  a0, a3, a0\n        sh1add  a1, a4, a1\n        sh1add  a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 41, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:3", "text": "sh1add  a2, t0, a2\n        bnez    t6, 2b\n\n        sh1add  a0, a3, a0\n        sh1add  a1, a4, a1\n        sh1add  a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 81, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_restore_rgb_planes_rvv, zve32x, zba\n        li      t1, -0x80\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6\n1:\n        mv      t6, a6\n        addi    a7, a7, -1\n2:\n        vsetvli t0, t6, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t6, t6, t0\n        vle8.v  v8, (a0)\n        vadd.vx v16, v16, t1\n        add     a1, t0, a1\n        vle8.v  v24, (a2)\n        vadd.vv v8, v8, v16\n        vadd.vv v24, v24, v16\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        vse8.v  v24, (a2)\n        add     a2, t0, a2\n        bnez    t6, 2b\n\n        add     a0, a3, a0\n        add     a1, a4, a1\n        add     a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc\n\nfunc ff_restore_rgb_planes10_rvv, zve32x, zba\n        li      t1, -0x200\n        li      t2, 0x3FF\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:2", "text": "vse8.v  v8, (a0)\n        add     a0, t0, a0\n        vse8.v  v24, (a2)\n        add     a2, t0, a2\n        bnez    t6, 2b\n\n        add     a0, a3, a0\n        add     a1, a4, a1\n        add     a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc\n\nfunc ff_restore_rgb_planes10_rvv, zve32x, zba\n        li      t1, -0x200\n        li      t2, 0x3FF\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6\n1:\n        mv      t6, a6\n        addi    a7, a7, -1\n2:\n        vsetvli t0, t6, e16, m8, ta, ma\n        vle16.v v16, (a1)\n        sub     t6, t6, t0\n        vle16.v v8, (a0)\n        vadd.vx v16, v16, t1\n        sh1add  a1, t0, a1\n        vle16.v v24, (a2)\n        vadd.vv v8, v8, v16\n        vadd.vv v24, v24, v16\n        vand.vx v8, v8, t2\n        vand.vx v24, v24, t2\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        vse16.v v24, (a2)\n        sh1add  a2, t0, a2\n        bnez    t6, 2b\n\n        sh1add  a0, a3, a0\n        sh1add  a1, a4, a1\n        sh1add  a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:1", "text": "/*\n * Copyright © 2023 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_restore_rgb_planes_rvv, zve32x\n        li      t1, -0x80\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6\n1:\n        mv      t6, a6\n        addi    a7, a7, -1\n2:\n        vsetvli t0, t6, e8, m8, ta, ma\n        vle8.v  v16, (a1)\n        sub     t6, t6, t0\n        vle8.v  v8, (a0)\n        vadd.vx v16, v16, t1\n        add     a1, t0, a1\n        vle8.v  v24, (a2)\n        vadd.vv v8, v8, v16\n        vadd.vv v24, v24, v16\n        vse8.v  v8, (a0)\n        add     a0, t0, a0\n        vse8.v  v24, (a2)\n        add     a2, t0, a2\n        bnez    t6, 2b\n\n        add     a0, a3, a0\n        add     a1, a4, a1\n        add     a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc\n\nfunc ff_restore_rgb_planes10_rvv, zve32x\n        li      t1, -0x200\n        li      t2, 0x3FF\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/utvideodsp_rvv.S:2", "text": "vse8.v  v8, (a0)\n        add     a0, t0, a0\n        vse8.v  v24, (a2)\n        add     a2, t0, a2\n        bnez    t6, 2b\n\n        add     a0, a3, a0\n        add     a1, a4, a1\n        add     a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc\n\nfunc ff_restore_rgb_planes10_rvv, zve32x\n        li      t1, -0x200\n        li      t2, 0x3FF\n        sub     a3, a3, a6\n        sub     a4, a4, a6\n        sub     a5, a5, a6\n1:\n        mv      t6, a6\n        addi    a7, a7, -1\n2:\n        vsetvli t0, t6, e16, m8, ta, ma\n        vle16.v v16, (a1)\n        sub     t6, t6, t0\n        vle16.v v8, (a0)\n        vadd.vx v16, v16, t1\n        sh1add  a1, t0, a1\n        vle16.v v24, (a2)\n        vadd.vv v8, v8, v16\n        vadd.vv v24, v24, v16\n        vand.vx v8, v8, t2\n        vand.vx v24, v24, t2\n        vse16.v v8, (a0)\n        sh1add  a0, t0, a0\n        vse16.v v24, (a2)\n        sh1add  a2, t0, a2\n        bnez    t6, 2b\n\n        sh1add  a0, a3, a0\n        sh1add  a1, a4, a1\n        sh1add  a2, a5, a2\n        bnez    a7, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/utvideodsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/utvideodsp_rvv.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_put_pixels8x8_rvi\n        lpad    0\n.rept 8\n        ld t0, (a1)\n        sd t0, (a0)\n        add a1, a1, a2\n        add a0, a0, a2\n.endr\n\n        ret\nendfunc\n\nfunc ff_put_pixels16x16_rvi\n        lpad    0\n.rept 16\n        ld t0, (a1)\n        ld t1, 8(a1)\n        sd t0, (a0)\n        sd t1, 8(a0)\n        add a1, a1, a2\n        add a0, a0, a2\n.endr\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvi.S", "line_start": 1, "line_end": 49}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_put_pixels8x8_rvi\n        lpad    0\n.rept 8\n        ld t0, (a1)\n        sd t0, (a0)\n        add a1, a1, a2\n        add a0, a0, a2\n.endr\n\n        ret\nendfunc\n\nfunc ff_put_pixels16x16_rvi\n        lpad    0\n.rept 16\n        ld t0, (a1)\n        ld t1, 8(a1)\n        sd t0, (a0)\n        sd t1, 8(a0)\n        add a1, a1, a2\n        add a0, a0, a2\n.endr\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvi.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvi.S", "line_start": 1, "line_end": 49}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_put_pixels8x8_rvi\n.rept 8\n        ld t0, (a1)\n        sd t0, (a0)\n        add a1, a1, a2\n        add a0, a0, a2\n.endr\n\n        ret\nendfunc\n\nfunc ff_put_pixels16x16_rvi\n.rept 16\n        ld t0, (a1)\n        ld t1, 8(a1)\n        sd t0, (a0)\n        sd t1, 8(a0)\n        add a1, a1, a2\n        add a0, a0, a2\n.endr\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvi.S", "license": "LGPL-2.1", "commit": "d4083ecb7c872807aa24b6ec5865f8a2fba95cf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d4083ecb7c872807aa24b6ec5865f8a2fba95cf2/libavcodec/riscv/vc1dsp_rvi.S", "line_start": 1, "line_end": 47}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro  inv_trans_dc rows, cols, w, mat_lmul, row_lmul\nfunc ff_vc1_inv_trans_\\cols\\()x\\rows\\()_dc_rvv, zve64x, zba\n        lpad    0\n        lh      t2, (a2)\n        li      a4, 22 - (5 * \\cols) / 4\n        mul     t2, t2, a4\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vlse\\w\\().v v0, (a0), a1\n        addi    t2, t2, 4\n        li      a5, 22 - (5 * \\rows) / 4\n        srai    t2, t2, 3\n        mul     t2, t2, a5\n.if \\cols * \\rows >= 32\n        li      t0, \\cols * \\rows\n.endif\n        addi    t2, t2, 64\n        srai    t2, t2, 7\n.if \\rows * \\cols >= 32\n        vsetvli     zero, t0, e8, m\\mat_lmul, ta, ma\n.else\n        vsetivli    zero, \\rows * \\cols, e8, m\\mat_lmul, ta, ma\n.endif\n        bgez    t2, 1f\n\n        neg     t2, t2\n        vssubu.vx   v0, v0, t2\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\n1:\n        vsaddu.vx   v0, v0, t2\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:2", "text": ".if \\rows * \\cols >= 32\n        vsetvli     zero, t0, e8, m\\mat_lmul, ta, ma\n.else\n        vsetivli    zero, \\rows * \\cols, e8, m\\mat_lmul, ta, ma\n.endif\n        bgez    t2, 1f\n\n        neg     t2, t2\n        vssubu.vx   v0, v0, t2\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\n1:\n        vsaddu.vx   v0, v0, t2\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\nendfunc\n.endm\n\ninv_trans_dc 8, 8, 64, 4, f2\ninv_trans_dc 4, 8, 64, 2, f4\ninv_trans_dc 8, 4, 32, 2, f2\ninv_trans_dc 4, 4, 32, 1, f4\n\n        .variant_cc ff_vc1_inv_trans_8_rvv\nfunc ff_vc1_inv_trans_8_rvv, zve32x\n        li      t4, 12\n        vsll.vi v14, v6, 4\n        li      t2, 6\n        vsll.vi v12, v2, 4\n        li      t5, 15\n        vmul.vx v8, v0, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vmul.vx v10, v4, t4\n        vmul.vx v16, v2, t2\n        vmacc.vx  v12, t2, v6  # t3\n        vnmsac.vx v14, t2, v2 # -t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2\n        vsll.vi v23, v5, 4\n        vadd.vv v24, v20, v22 # t1\n        vnmsac.vx v21, t5, v1\n        vmacc.vx  v23, t3, v7\n        vsll.vi v20, v3, 4\n        vsll.vi v22, v5, 2\n        vadd.vv v25, v21, v23 # -t2\n        vnmsac.vx v20, t3, v1\n        vmacc.vx v22, t5, v7\n        vsll.vi v21, v1, 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2\n        vsll.vi v23, v5, 4\n        vadd.vv v24, v20, v22 # t1\n        vnmsac.vx v21, t5, v1\n        vmacc.vx  v23, t3, v7\n        vsll.vi v20, v3, 4\n        vsll.vi v22, v5, 2\n        vadd.vv v25, v21, v23 # -t2\n        vnmsac.vx v20, t3, v1\n        vmacc.vx v22, t5, v7\n        vsll.vi v21, v1, 2\n        vsll.vi v23, v7, 4\n        vsub.vv v26, v22, v20 # t3\n        vnmsac.vx v21, t3, v3\n        vnmsac.vx v23, t5, v5\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwsub.vv  v10, v29, v25\n        vsub.vv v27, v21, v23 # t4\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwadd.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmacc.vx v26, t2, v3  # t3\n        vnmsac.vx v27, t2, v1 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        lpad    0\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        lpad    0\n        li       t0, 16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        lpad    0\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        lpad    0\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        lpad    0\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        lpad    0\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 455}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 455}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro  inv_trans_dc rows, cols, w, mat_lmul, row_lmul\nfunc ff_vc1_inv_trans_\\cols\\()x\\rows\\()_dc_rvv, zve64x, zba\n        lpad    0\n        lh      t2, (a2)\n        li      a4, 22 - (5 * \\cols) / 4\n        mul     t2, t2, a4\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vlse\\w\\().v v0, (a0), a1\n        addi    t2, t2, 4\n        li      a5, 22 - (5 * \\rows) / 4\n        srai    t2, t2, 3\n        mul     t2, t2, a5\n.if \\cols * \\rows >= 32\n        li      t0, \\cols * \\rows\n.endif\n        addi    t2, t2, 64\n        srai    t2, t2, 7\n.if \\rows * \\cols >= 32\n        vsetvli     zero, t0, e8, m\\mat_lmul, ta, ma\n.else\n        vsetivli    zero, \\rows * \\cols, e8, m\\mat_lmul, ta, ma\n.endif\n        bgez    t2, 1f\n\n        neg     t2, t2\n        vssubu.vx   v0, v0, t2\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\n1:\n        vsaddu.vx   v0, v0, t2\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "324eba69f7193367a28f31411f5ded9d7eb2eb48", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/324eba69f7193367a28f31411f5ded9d7eb2eb48/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro  inv_trans_dc rows, cols, w, mat_lmul, row_lmul\nfunc ff_vc1_inv_trans_\\cols\\()x\\rows\\()_dc_rvv, zve64x, zba\n        lpad    0\n        lh      t2, (a2)\n        li      a4, 22 - (5 * \\cols) / 4\n        mul     t2, t2, a4\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vlse\\w\\().v v0, (a0), a1\n        addi    t2, t2, 4\n        li      a5, 22 - (5 * \\rows) / 4\n        srai    t2, t2, 3\n        mul     t2, t2, a5\n.if \\cols * \\rows >= 32\n        li      t0, \\cols * \\rows\n.endif\n        addi    t2, t2, 64\n        srai    t2, t2, 7\n.if \\rows * \\cols == 64\n        vsetvli     zero, t0, e16, m8, ta, ma\n.elseif \\rows * \\cols == 32\n        vsetvli     zero, t0, e16, m4, ta, ma\n.else\n        vsetivli    zero, \\rows * \\cols, e16, m2, ta, ma\n.endif\n        vzext.vf2   v8, v0\n        vadd.vx     v8, v8, t2\n        vmax.vx     v8, v8, zero\n        vsetvli     zero, zero, e8, m\\mat_lmul, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\nendfunc\n.endm\n\ninv_trans_dc 8, 8, 64, 4, f2\ninv_trans_dc 4, 8, 64, 2, f4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:2", "text": ".if \\rows * \\cols == 64\n        vsetvli     zero, t0, e16, m8, ta, ma\n.elseif \\rows * \\cols == 32\n        vsetvli     zero, t0, e16, m4, ta, ma\n.else\n        vsetivli    zero, \\rows * \\cols, e16, m2, ta, ma\n.endif\n        vzext.vf2   v8, v0\n        vadd.vx     v8, v8, t2\n        vmax.vx     v8, v8, zero\n        vsetvli     zero, zero, e8, m\\mat_lmul, ta, ma\n        vnclipu.wi  v0, v8, 0\n        vsetivli    zero, \\rows, e8, m\\row_lmul, ta, ma\n        vsse\\w\\().v v0, (a0), a1\n        ret\nendfunc\n.endm\n\ninv_trans_dc 8, 8, 64, 4, f2\ninv_trans_dc 4, 8, 64, 2, f4\ninv_trans_dc 8, 4, 32, 2, f2\ninv_trans_dc 4, 4, 32, 1, f4\n\n        .variant_cc ff_vc1_inv_trans_8_rvv\nfunc ff_vc1_inv_trans_8_rvv, zve32x\n        li      t4, 12\n        vsll.vi v14, v6, 4\n        li      t2, 6\n        vsll.vi v12, v2, 4\n        li      t5, 15\n        vmul.vx v8, v0, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vmul.vx v10, v4, t4\n        vmul.vx v16, v2, t2\n        vmacc.vx  v12, t2, v6  # t3\n        vnmsac.vx v14, t2, v2 # -t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2\n        vsll.vi v23, v5, 4\n        vadd.vv v24, v20, v22 # t1\n        vnmsac.vx v21, t5, v1\n        vmacc.vx  v23, t3, v7\n        vsll.vi v20, v3, 4\n        vsll.vi v22, v5, 2\n        vadd.vv v25, v21, v23 # -t2\n        vnmsac.vx v20, t3, v1\n        vmacc.vx v22, t5, v7\n        vsll.vi v21, v1, 2\n        vsll.vi v23, v7, 4\n        vsub.vv v26, v22, v20 # t3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2\n        vsll.vi v23, v5, 4\n        vadd.vv v24, v20, v22 # t1\n        vnmsac.vx v21, t5, v1\n        vmacc.vx  v23, t3, v7\n        vsll.vi v20, v3, 4\n        vsll.vi v22, v5, 2\n        vadd.vv v25, v21, v23 # -t2\n        vnmsac.vx v20, t3, v1\n        vmacc.vx v22, t5, v7\n        vsll.vi v21, v1, 2\n        vsll.vi v23, v7, 4\n        vsub.vv v26, v22, v20 # t3\n        vnmsac.vx v21, t3, v3\n        vnmsac.vx v23, t5, v5\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwsub.vv  v10, v29, v25\n        vsub.vv v27, v21, v23 # t4\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwadd.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmacc.vx v26, t2, v3  # t3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmacc.vx v26, t2, v3  # t3\n        vnmsac.vx v27, t2, v1 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        lpad    0\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        lpad    0\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        lpad    0\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        lpad    0\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        lpad    0\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "func ff_vc1_unescape_buffer_rvv, zve32x\n        lpad    0\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 453}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "784a72a116c29a38ec55ce81e165a29bdd00c497", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/784a72a116c29a38ec55ce81e165a29bdd00c497/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 453}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vc1_inv_trans_8x8_dc_rvv, zve64x, zba\n        lpad    0\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 16\n        srai          t2, t2, 5\n        li            t0, 8*8\n        vsetvli       zero, t0, e16, m8, ta, ma\n        vzext.vf2     v8, v0\n        vadd.vx       v8, v8, t2\n        vmax.vx       v8, v8, zero\n        vsetvli       zero, zero, e8, m4, ta, ma\n        vnclipu.wi    v0, v8, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x, zba\n        lpad    0\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:2", "text": "vnclipu.wi    v0, v8, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x, zba\n        lpad    0\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_dc_rvv, zve64x, zba\n        lpad    0\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lpad    0\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lpad    0\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_8_rvv\nfunc ff_vc1_inv_trans_8_rvv, zve32x\n        li      t4, 12\n        vsll.vi v14, v6, 4\n        li      t2, 6\n        vsll.vi v12, v2, 4\n        li      t5, 15\n        vmul.vx v8, v0, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vmul.vx v10, v4, t4\n        vmul.vx v16, v2, t2\n        vmacc.vx  v12, t2, v6  # t3\n        vnmsac.vx v14, t2, v2 # -t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "func ff_vc1_inv_trans_8_rvv, zve32x\n        li      t4, 12\n        vsll.vi v14, v6, 4\n        li      t2, 6\n        vsll.vi v12, v2, 4\n        li      t5, 15\n        vmul.vx v8, v0, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vmul.vx v10, v4, t4\n        vmul.vx v16, v2, t2\n        vmacc.vx  v12, t2, v6  # t3\n        vnmsac.vx v14, t2, v2 # -t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2\n        vsll.vi v23, v5, 4\n        vadd.vv v24, v20, v22 # t1\n        vnmsac.vx v21, t5, v1\n        vmacc.vx  v23, t3, v7\n        vsll.vi v20, v3, 4\n        vsll.vi v22, v5, 2\n        vadd.vv v25, v21, v23 # -t2\n        vnmsac.vx v20, t3, v1\n        vmacc.vx v22, t5, v7\n        vsll.vi v21, v1, 2\n        vsll.vi v23, v7, 4\n        vsub.vv v26, v22, v20 # t3\n        vnmsac.vx v21, t3, v3\n        vnmsac.vx v23, t5, v5\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwsub.vv  v10, v29, v25\n        vsub.vv v27, v21, v23 # t4\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwadd.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vwsub.vv  v10, v29, v25\n        vsub.vv v27, v21, v23 # t4\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwadd.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmacc.vx v26, t2, v3  # t3\n        vnmsac.vx v27, t2, v1 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        lpad    0\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        lpad    0\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        lpad    0\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": ".endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        lpad    0\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        lpad    0\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        lpad    0\n        vsetivli       zero, 2, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        lpad    0\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 509}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vc1_inv_trans_8x8_dc_rvv, zve64x, zba\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 16\n        srai          t2, t2, 5\n        li            t0, 8*8\n        vsetvli       zero, t0, e16, m8, ta, ma\n        vzext.vf2     v8, v0\n        vadd.vx       v8, v8, t2\n        vmax.vx       v8, v8, zero\n        vsetvli       zero, zero, e8, m4, ta, ma\n        vnclipu.wi    v0, v8, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x, zba\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:2", "text": "vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x, zba\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_dc_rvv, zve64x, zba\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_8_rvv\nfunc ff_vc1_inv_trans_8_rvv, zve32x\n        li      t4, 12\n        vsll.vi v14, v6, 4\n        li      t2, 6\n        vsll.vi v12, v2, 4\n        li      t5, 15\n        vmul.vx v8, v0, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vmul.vx v10, v4, t4\n        vmul.vx v16, v2, t2\n        vmacc.vx  v12, t2, v6  # t3\n        vnmsac.vx v14, t2, v2 # -t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vsll.vi v12, v2, 4\n        li      t5, 15\n        vmul.vx v8, v0, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vmul.vx v10, v4, t4\n        vmul.vx v16, v2, t2\n        vmacc.vx  v12, t2, v6  # t3\n        vnmsac.vx v14, t2, v2 # -t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vadd.vv v28, v24, v12 # t5\n        vsub.vv v31, v24, v12 # t8\n        vsub.vv v29, v25, v14 # t6\n        vadd.vv v30, v25, v14 # t7\n        vsll.vi v20, v1, 4\n        vsll.vi v22, v7, 2\n        vmacc.vx  v20, t5, v3\n        vmacc.vx  v22, t3, v5\n        vsll.vi v21, v3, 2\n        vsll.vi v23, v5, 4\n        vadd.vv v24, v20, v22 # t1\n        vnmsac.vx v21, t5, v1\n        vmacc.vx  v23, t3, v7\n        vsll.vi v20, v3, 4\n        vsll.vi v22, v5, 2\n        vadd.vv v25, v21, v23 # -t2\n        vnmsac.vx v20, t3, v1\n        vmacc.vx v22, t5, v7\n        vsll.vi v21, v1, 2\n        vsll.vi v23, v7, 4\n        vsub.vv v26, v22, v20 # t3\n        vnmsac.vx v21, t3, v3\n        vnmsac.vx v23, t5, v5\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwsub.vv  v10, v29, v25\n        vsub.vv v27, v21, v23 # t4\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwadd.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwadd.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmacc.vx v26, t2, v3  # t3\n        vnmsac.vx v27, t2, v1 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "func ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "func ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 498}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 498}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vc1_inv_trans_8x8_dc_rvv, zve64x\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 16\n        srai          t2, t2, 5\n        li            t0, 8*8\n        vsetvli       zero, t0, e16, m8, ta, ma\n        vzext.vf2     v8, v0\n        vadd.vx       v8, v8, t2\n        vmax.vx       v8, v8, zero\n        vsetvli       zero, zero, e8, m4, ta, ma\n        vnclipu.wi    v0, v8, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "4a2de380b7c27f4542af03fdf91d913fabe091fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4a2de380b7c27f4542af03fdf91d913fabe091fc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:2", "text": "vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_dc_rvv, zve64x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "4a2de380b7c27f4542af03fdf91d913fabe091fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4a2de380b7c27f4542af03fdf91d913fabe091fc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_8_rvv\nfunc ff_vc1_inv_trans_8_rvv, zve32x\n        li      t4, 12\n        vsll.vi v18, v6, 4\n        li      t2, 6\n        vmul.vx v8, v0, t4\n        li      t5, 15\n        vmul.vx v10, v4, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vsll.vi v12, v2, 4\n        vmul.vx v14, v6, t2\n        vmul.vx v16, v2, t2\n        vadd.vv v26, v12, v14 # t3\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vsub.vv v27, v16, v18 # t4\n        vadd.vv v28, v24, v26 # t5\n        vsub.vv v31, v24, v26 # t8\n        vadd.vv v29, v25, v27 # t6\n        vsub.vv v30, v25, v27 # t7\n        vsll.vi v20, v1, 4\n        vmul.vx v21, v3, t5\n        vmul.vx v22, v5, t3\n        vsll.vi v23, v7, 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vmul.vx v8, v0, t4\n        li      t5, 15\n        vmul.vx v10, v4, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vsll.vi v12, v2, 4\n        vmul.vx v14, v6, t2\n        vmul.vx v16, v2, t2\n        vadd.vv v26, v12, v14 # t3\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vsub.vv v27, v16, v18 # t4\n        vadd.vv v28, v24, v26 # t5\n        vsub.vv v31, v24, v26 # t8\n        vadd.vv v29, v25, v27 # t6\n        vsub.vv v30, v25, v27 # t7\n        vsll.vi v20, v1, 4\n        vmul.vx v21, v3, t5\n        vmul.vx v22, v5, t3\n        vsll.vi v23, v7, 2\n        vadd.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 2\n        vadd.vv v24, v20, v22 # t1\n        vmul.vx v20, v1, t5\n        vsll.vi v22, v5, 4\n        vmul.vx v23, v7, t3\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 4\n        vsub.vv v25, v20, v22 # t2\n        vmul.vx v20, v1, t3\n        vsll.vi v22, v5, 2\n        vmul.vx v23, v7, t5\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vmul.vx v21, v3, t3\n        vadd.vv v26, v20, v22 # t3\n        vsll.vi v20, v1, 2\n        vmul.vx v22, v5, t5\n        vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v27, v20, v22 # t4\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwadd.vv  v10, v29, v25\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwsub.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v27, v20, v22 # t4\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwadd.vv  v10, v29, v25\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwsub.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v26, v1, t4\n        vmul.vx v27, v3, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmacc.vx v26, t2, v3  # t3\n        vnmsac.vx v27, t2, v1 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vmacc.vx v26, t2, v3  # t3\n        vnmsac.vx v27, t2, v1 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": ".irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "78e1565f847588cb3d34d1a920902fb253d9c03c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78e1565f847588cb3d34d1a920902fb253d9c03c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 507}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v27, v20, v22 # t4\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwadd.vv  v10, v29, v25\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwsub.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v14, v1, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmul.vx v16, v3, t2\n        vmul.vx v18, v3, t4\n        vmul.vx v20, v1, t2\n        vadd.vv v26, v14, v16 # t3\n        vsub.vv v27, v18, v20 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vmul.vx v18, v3, t4\n        vmul.vx v20, v1, t2\n        vadd.vv v26, v14, v16 # t3\n        vsub.vv v27, v18, v20 # t4\n        vwadd.vv  v8, v24, v26\n        vwsub.vv  v10, v25, v27\n        vwadd.vv  v12, v25, v27\n        vwsub.vv  v14, v24, v26\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "func ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b818dff8d8e16f0831a379a5cdc15e813474a841", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b818dff8d8e16f0831a379a5cdc15e813474a841/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v27, v20, v22 # t4\n        srli    t2, t1, 2\n        vwadd.vv  v8, v28, v24\n        vwadd.vv  v10, v29, v25\n        vwadd.vv  v12, v30, v26\n        vwadd.vv  v14, v31, v27\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,31,30,29,28\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        vwsub.vv  v16, v31, v27\n        vwsub.vv  v18, v30, v26\n        vwsub.vv  v20, v29, v25\n        vwsub.vv  v22, v28, v24\n        vnclip.wx v0, v8, t1\n        vnclip.wx v1, v10, t1\n        vnclip.wx v2, v12, t1\n        vnclip.wx v3, v14, t1\n        vnclip.wx v4, v16, t1\n        vnclip.wx v5, v18, t1\n        vnclip.wx v6, v20, t1\n        vnclip.wx v7, v22, t1\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v14, v1, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmul.vx v16, v3, t2\n        vmul.vx v18, v3, t4\n        vmul.vx v20, v1, t2\n        vadd.vv v26, v14, v16 # t3\n        vsub.vv v27, v18, v20 # t4\n        vadd.vv v0, v24, v26\n        vsub.vv v1, v25, v27\n        vadd.vv v2, v25, v27\n        vsub.vv v3, v24, v26\n        .irp    n,0,1,2,3\n        vssra.vx v\\n, v\\n, t1 # + 4 >> 3 or + 64 >> 7\n        .endr\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vmul.vx v18, v3, t4\n        vmul.vx v20, v1, t2\n        vadd.vv v26, v14, v16 # t3\n        vsub.vv v27, v18, v20 # t4\n        vadd.vv v0, v24, v26\n        vsub.vv v1, v25, v27\n        vadd.vv v2, v25, v27\n        vsub.vv v3, v24, v26\n        .irp    n,0,1,2,3\n        vssra.vx v\\n, v\\n, t1 # + 4 >> 3 or + 64 >> 7\n        .endr\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": ".irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/349c49fd1bc5ae2d81ea8d93e0b31823fe8b2c59/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 508}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vmul.vx v8, v0, t4\n        li      t5, 15\n        vmul.vx v10, v4, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vsll.vi v12, v2, 4\n        vmul.vx v14, v6, t2\n        vmul.vx v16, v2, t2\n        vadd.vv v26, v12, v14 # t3\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vsub.vv v27, v16, v18 # t4\n        vadd.vv v28, v24, v26 # t5\n        vsub.vv v31, v24, v26 # t8\n        vadd.vv v29, v25, v27 # t6\n        vsub.vv v30, v25, v27 # t7\n        vsll.vi v20, v1, 4\n        vmul.vx v21, v3, t5\n        vmul.vx v22, v5, t3\n        vsll.vi v23, v7, 2\n        vadd.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 2\n        vadd.vv v16, v20, v22 # t1\n        vmul.vx v20, v1, t5\n        vsll.vi v22, v5, 4\n        vmul.vx v23, v7, t3\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 4\n        vsub.vv v17, v20, v22 # t2\n        vmul.vx v20, v1, t3\n        vsll.vi v22, v5, 2\n        vmul.vx v23, v7, t5\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vmul.vx v21, v3, t3\n        vadd.vv v18, v20, v22 # t3\n        vsll.vi v20, v1, 2\n        vmul.vx v22, v5, t5\n        vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        srli    t2, t1, 2\n        vadd.vv v0, v28, v16\n        vadd.vv v19, v20, v22 # t4\n        vadd.vv v1, v29, v17\n        vadd.vv v2, v30, v18\n        vadd.vv v3, v31, v19\n        vsub.vv v4, v31, v19\n        vsub.vv v5, v30, v18\n        vsub.vv v6, v29, v17\n        vsub.vv v7, v28, v16\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,4,5,6,7\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        .irp n,0,1,2,3,4,5,6,7\n        vssra.vx v\\n, v\\n, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        srli    t2, t1, 2\n        vadd.vv v0, v28, v16\n        vadd.vv v19, v20, v22 # t4\n        vadd.vv v1, v29, v17\n        vadd.vv v2, v30, v18\n        vadd.vv v3, v31, v19\n        vsub.vv v4, v31, v19\n        vsub.vv v5, v30, v18\n        vsub.vv v6, v29, v17\n        vsub.vv v7, v28, v16\n        beqz    t2, 1f # faster than 4x add t2=zero\n        .irp    n,4,5,6,7\n        vadd.vi v\\n, v\\n, 1\n        .endr\n1:\n        .irp n,0,1,2,3,4,5,6,7\n        vssra.vx v\\n, v\\n, t1\n        .endr\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v14, v1, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmul.vx v16, v3, t2\n        vmul.vx v18, v3, t4\n        vmul.vx v20, v1, t2\n        vadd.vv v26, v14, v16 # t3\n        vsub.vv v27, v18, v20 # t4\n        vadd.vv v0, v24, v26\n        vsub.vv v1, v25, v27\n        vadd.vv v2, v25, v27\n        vsub.vv v3, v24, v26\n        .irp    n,0,1,2,3\n        vssra.vx v\\n, v\\n, t1 # + 4 >> 3 or + 64 >> 7\n        .endr\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "vsub.vv v1, v25, v27\n        vadd.vv v2, v25, v27\n        vsub.vv v3, v24, v26\n        .irp    n,0,1,2,3\n        vssra.vx v\\n, v\\n, t1 # + 4 >> 3 or + 64 >> 7\n        .endr\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        li       t1, 3\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        li       t1, 7\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vse16.v  v0, (a0)\n        vse16.v  v1, (a1)\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        vse16.v  v4, (a4)\n        vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vse16.v  v5, (a5)\n        vse16.v  v6, (a6)\n        vse16.v  v7, (a7)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        li          t1, 3\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        add          t0, a1, a0\n        vle8.v       v8, (a0)\n        add          t1, a1, t0\n        vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "vle8.v       v9, (t0)\n        add          t2, a1, t1\n        vle8.v       v10, (t1)\n        add          t3, a1, t2\n        vle8.v       v11, (t2)\n        add          t4, a1, t3\n        vle8.v       v12, (t3)\n        add          t5, a1, t4\n        vle8.v       v13, (t4)\n        add          t6, a1, t5\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "2c900d4c11199561673cbffadeebb5cff62a7d8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2c900d4c11199561673cbffadeebb5cff62a7d8c/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 503}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vmul.vx v8, v0, t4\n        li      t5, 15\n        vmul.vx v10, v4, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vsll.vi v12, v2, 4\n        vmul.vx v14, v6, t2\n        vmul.vx v16, v2, t2\n        vadd.vv v26, v12, v14 # t3\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vsub.vv v27, v16, v18 # t4\n        vadd.vv v28, v24, v26 # t5\n        vsub.vv v31, v24, v26 # t8\n        vadd.vv v29, v25, v27 # t6\n        vsub.vv v30, v25, v27 # t7\n        vsll.vi v20, v1, 4\n        vmul.vx v21, v3, t5\n        vmul.vx v22, v5, t3\n        vsll.vi v23, v7, 2\n        vadd.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 2\n        vadd.vv v16, v20, v22 # t1\n        vmul.vx v20, v1, t5\n        vsll.vi v22, v5, 4\n        vmul.vx v23, v7, t3\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 4\n        vsub.vv v17, v20, v22 # t2\n        vmul.vx v20, v1, t3\n        vsll.vi v22, v5, 2\n        vmul.vx v23, v7, t5\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vmul.vx v21, v3, t3\n        vadd.vv v18, v20, v22 # t3\n        vsll.vi v20, v1, 2\n        vmul.vx v22, v5, t5\n        vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v0, v28, v16\n        vadd.vv v19, v20, v22 # t4\n        vadd.vv v1, v29, v17\n        vadd.vv v2, v30, v18\n        vadd.vv v3, v31, v19\n        vsub.vv v4, v31, v19\n        vsub.vv v5, v30, v18\n        vsub.vv v6, v29, v17\n        vsub.vv v7, v28, v16\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v0, v28, v16\n        vadd.vv v19, v20, v22 # t4\n        vadd.vv v1, v29, v17\n        vadd.vv v2, v30, v18\n        vadd.vv v3, v31, v19\n        vsub.vv v4, v31, v19\n        vsub.vv v5, v30, v18\n        vsub.vv v6, v29, v17\n        vsub.vv v7, v28, v16\n        jr      t0\nendfunc\n\n        .variant_cc ff_vc1_inv_trans_4_rvv\nfunc ff_vc1_inv_trans_4_rvv, zve32x\n        li      t3, 17\n        vmul.vx v8, v0, t3\n        li      t4, 22\n        vmul.vx v10, v2, t3\n        li      t2, 10\n        vmul.vx v14, v1, t4\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vmul.vx v16, v3, t2\n        vmul.vx v18, v3, t4\n        vmul.vx v20, v1, t2\n        vadd.vv v26, v14, v16 # t3\n        vsub.vv v27, v18, v20 # t4\n        vadd.vv v0, v24, v26\n        vsub.vv v1, v25, v27\n        vadd.vv v2, v25, v27\n        vsub.vv v3, v24, v26\n        .irp    n,0,1,2,3\n        vssra.vx v\\n, v\\n, t1 # + 4 >> 3 or + 64 >> 7\n        .endr\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        .irp n,0,1,2,3,4,5,6,7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "func ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        .irp n,0,1,2,3,4,5,6,7\n        vssra.vi v\\n, v\\n, 3\n        .endr\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vadd.vi  v4, v4, 1\n        vadd.vi  v5, v5, 1\n        vssra.vi v4, v4, 7\n        vssra.vi v5, v5, 7\n        vse16.v  v4, (a4)\n        vadd.vi  v6, v6, 1\n        vse16.v  v5, (a5)\n        vadd.vi  v7, v7, 1\n        vssra.vi v6, v6, 7\n        vssra.vi v7, v7, 7\n        vse16.v  v6, (a6)\n        vssra.vi v0, v0, 7\n        vse16.v  v7, (a7)\n        vssra.vi v1, v1, 7\n        vse16.v  v0, (a0)\n        vssra.vi v2, v2, 7\n        vse16.v  v1, (a1)\n        vssra.vi v3, v3, 7\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vssra.vi v1, v1, 7\n        vse16.v  v0, (a0)\n        vssra.vi v2, v2, 7\n        vse16.v  v1, (a1)\n        vssra.vi v3, v3, 7\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        .irp    n,0,1,2,3\n        # shift 4 vectors of 8 elems after transpose instead of 8 of 4\n        vssra.vi    v\\n, v\\n, 3\n        .endr\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        addi         t1, a2, 1 * 8 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vle16.v      v2, (t2)\n        addi         t4, a2, 4 * 8 * 2\n        vle16.v      v3, (t3)\n        addi         t5, a2, 5 * 8 * 2\n        vle16.v      v4, (t4)\n        addi         t6, a2, 6 * 8 * 2\n        vle16.v      v5, (t5)\n        addi         t1, a2, 7 * 8 * 2\n        vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        vadd.vi      v4, v4, 1\n        add          t0, a1, a0\n        vadd.vi      v5, v5, 1\n        vadd.vi      v6, v6, 1\n        add          t1, a1, t0\n        vadd.vi      v7, v7, 1\n        vssra.vi     v0, v0, 7\n        add          t2, a1, t1\n        vssra.vi     v1, v1, 7\n        vssra.vi     v2, v2, 7\n        add          t3, a1, t2\n        vssra.vi     v3, v3, 7\n        vssra.vi     v4, v4, 7\n        add          t4, a1, t3\n        vssra.vi     v5, v5, 7\n        vssra.vi     v6, v6, 7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "vle16.v      v6, (t6)\n        vle16.v      v7, (t1)\n\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        vadd.vi      v4, v4, 1\n        add          t0, a1, a0\n        vadd.vi      v5, v5, 1\n        vadd.vi      v6, v6, 1\n        add          t1, a1, t0\n        vadd.vi      v7, v7, 1\n        vssra.vi     v0, v0, 7\n        add          t2, a1, t1\n        vssra.vi     v1, v1, 7\n        vssra.vi     v2, v2, 7\n        add          t3, a1, t2\n        vssra.vi     v3, v3, 7\n        vssra.vi     v4, v4, 7\n        add          t4, a1, t3\n        vssra.vi     v5, v5, 7\n        vssra.vi     v6, v6, 7\n        add          t5, a1, t4\n        vssra.vi     v7, v7, 7\n        vle8.v       v8, (a0)\n        add          t6, a1, t5\n        vle8.v       v9, (t0)\n        vle8.v       v10, (t1)\n        vle8.v       v11, (t2)\n        vle8.v       v12, (t3)\n        vle8.v       v13, (t4)\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "b6f37ffba71fa26b6176eb964cadcb442a115a54", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6f37ffba71fa26b6176eb964cadcb442a115a54/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 522}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        addi         t1, a2, 1 * 8 * 2\n        vse16.v      v0, (a2)\n        addi         t2, a2, 2 * 8 * 2\n        vse16.v      v1, (t1)\n        addi         t3, a2, 3 * 8 * 2\n        vse16.v      v2, (t2)\n        vse16.v      v3, (t3)\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v  v0, (a2)\n        jal          t0, ff_vc1_inv_trans_8_rvv\n        vadd.vi      v4, v4, 1\n        add          t0, a1, a0\n        vadd.vi      v5, v5, 1\n        vadd.vi      v6, v6, 1\n        add          t1, a1, t0\n        vadd.vi      v7, v7, 1\n        vssra.vi     v0, v0, 7\n        add          t2, a1, t1\n        vssra.vi     v1, v1, 7\n        vssra.vi     v2, v2, 7\n        add          t3, a1, t2\n        vssra.vi     v3, v3, 7\n        vssra.vi     v4, v4, 7\n        add          t4, a1, t3\n        vssra.vi     v5, v5, 7\n        vssra.vi     v6, v6, 7\n        add          t5, a1, t4\n        vssra.vi     v7, v7, 7\n        vle8.v       v8, (a0)\n        add          t6, a1, t5\n        vle8.v       v9, (t0)\n        vle8.v       v10, (t1)\n        vle8.v       v11, (t2)\n        vle8.v       v12, (t3)\n        vle8.v       v13, (t4)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c05069e680f6b9055ac14bc19c663914b554fdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c05069e680f6b9055ac14bc19c663914b554fdb/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "vadd.vi      v7, v7, 1\n        vssra.vi     v0, v0, 7\n        add          t2, a1, t1\n        vssra.vi     v1, v1, 7\n        vssra.vi     v2, v2, 7\n        add          t3, a1, t2\n        vssra.vi     v3, v3, 7\n        vssra.vi     v4, v4, 7\n        add          t4, a1, t3\n        vssra.vi     v5, v5, 7\n        vssra.vi     v6, v6, 7\n        add          t5, a1, t4\n        vssra.vi     v7, v7, 7\n        vle8.v       v8, (a0)\n        add          t6, a1, t5\n        vle8.v       v9, (t0)\n        vle8.v       v10, (t1)\n        vle8.v       v11, (t2)\n        vle8.v       v12, (t3)\n        vle8.v       v13, (t4)\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c05069e680f6b9055ac14bc19c663914b554fdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c05069e680f6b9055ac14bc19c663914b554fdb/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vssseg4e16.v v0, (a2), a3\n        addi         t1, a2, 2 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 4 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 6 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c05069e680f6b9055ac14bc19c663914b554fdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c05069e680f6b9055ac14bc19c663914b554fdb/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:11", "text": "vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c05069e680f6b9055ac14bc19c663914b554fdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c05069e680f6b9055ac14bc19c663914b554fdb/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:12", "text": "vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c05069e680f6b9055ac14bc19c663914b554fdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c05069e680f6b9055ac14bc19c663914b554fdb/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:13", "text": "vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c05069e680f6b9055ac14bc19c663914b554fdb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c05069e680f6b9055ac14bc19c663914b554fdb/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 481, "line_end": 513}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_rvv, zve32x\n        li           a3, 8 * 2\n        csrwi        vxrm, 0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vlsseg4e16.v v0, (a2), a3\n        li           t1, 3\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        vsseg4e16.v  v0, (a2)\n        addi         t1, a2, 1 * 4 * 2\n        vle16.v      v0, (a2)\n        addi         t2, a2, 2 * 4 * 2\n        vle16.v      v1, (t1)\n        addi         t3, a2, 3 * 4 * 2\n        vle16.v      v2, (t2)\n        vle16.v      v3, (t3)\n        li           t1, 7\n        jal          t0, ff_vc1_inv_trans_4_rvv\n        add          t1, a1, a0\n        vle8.v       v8, (a0)\n        add          t2, a1, t1\n        vle8.v       v9, (t1)\n        add          t3, a1, t2\n        vle8.v       v10, (t2)\n        vle8.v       v11, (t3)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t1)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t2)\n        vse8.v       v11, (t3)\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "3152c684cb59e929ed572039ad9cdb3dde273dc3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3152c684cb59e929ed572039ad9cdb3dde273dc3/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "vadd.vi      v7, v7, 1\n        vssra.vi     v0, v0, 7\n        add          t2, a1, t1\n        vssra.vi     v1, v1, 7\n        vssra.vi     v2, v2, 7\n        add          t3, a1, t2\n        vssra.vi     v3, v3, 7\n        vssra.vi     v4, v4, 7\n        add          t4, a1, t3\n        vssra.vi     v5, v5, 7\n        vssra.vi     v6, v6, 7\n        add          t5, a1, t4\n        vssra.vi     v7, v7, 7\n        vle8.v       v8, (a0)\n        add          t6, a1, t5\n        vle8.v       v9, (t0)\n        vle8.v       v10, (t1)\n        vle8.v       v11, (t2)\n        vle8.v       v12, (t3)\n        vle8.v       v13, (t4)\n        vle8.v       v14, (t5)\n        vle8.v       v15, (t6)\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vwaddu.wv    v0, v0, v8\n        vwaddu.wv    v1, v1, v9\n        vwaddu.wv    v2, v2, v10\n        vwaddu.wv    v3, v3, v11\n        vwaddu.wv    v4, v4, v12\n        vwaddu.wv    v5, v5, v13\n        vwaddu.wv    v6, v6, v14\n        vwaddu.wv    v7, v7, v15\n        vsetvli      zero, zero, e16, mf2, ta, ma\n        .irp    n,0,1,2,3,4,5,6,7\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        vnclipu.wi   v8, v0, 0\n        vnclipu.wi   v9, v1, 0\n        vse8.v       v8, (a0)\n        vnclipu.wi   v10, v2, 0\n        vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6ffa639c8aa6046178d9e04256fb8961c31dc734", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ffa639c8aa6046178d9e04256fb8961c31dc734/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vse8.v       v9, (t0)\n        vnclipu.wi   v11, v3, 0\n        vse8.v       v10, (t1)\n        vnclipu.wi   v12, v4, 0\n        vse8.v       v11, (t2)\n        vnclipu.wi   v13, v5, 0\n        vse8.v       v12, (t3)\n        vnclipu.wi   v14, v6, 0\n        vse8.v       v13, (t4)\n        vnclipu.wi   v15, v7, 0\n        vse8.v       v14, (t5)\n        vse8.v       v15, (t6)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6ffa639c8aa6046178d9e04256fb8961c31dc734", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6ffa639c8aa6046178d9e04256fb8961c31dc734/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "vssra.vi v1, v1, 7\n        vse16.v  v0, (a0)\n        vssra.vi v2, v2, 7\n        vse16.v  v1, (a1)\n        vssra.vi v3, v3, 7\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg8e16.v v0, (a2)\n        jal         t0, ff_vc1_inv_trans_8_rvv\n        vsseg8e16.v v0, (a2)\n        addi        a3, a2, 1 * 8 * 2\n        vsetivli    zero, 8, e16, m1, ta, ma\n        vle16.v     v0, (a2)\n        addi        a4, a2, 2 * 8 * 2\n        vle16.v     v1, (a3)\n        addi        a5, a2, 3 * 8 * 2\n        vle16.v     v2, (a4)\n        vle16.v     v3, (a5)\n        .irp    n,0,1,2,3\n        # shift 4 vectors of 8 elems after transpose instead of 8 of 4\n        vssra.vi    v\\n, v\\n, 3\n        .endr\n        li          t1, 7\n        jal         t0, ff_vc1_inv_trans_4_rvv\n        add         a3, a1, a0\n        vle8.v      v8, (a0)\n        add         a4, a1, a3\n        vle8.v      v9, (a3)\n        add         a5, a1, a4\n        vle8.v      v10, (a4)\n        vle8.v      v11, (a5)\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vwaddu.wv   v0, v0, v8\n        vwaddu.wv   v1, v1, v9\n        vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "a169f3bca5937cf71d61de1fb85b522bd69c6cfc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a169f3bca5937cf71d61de1fb85b522bd69c6cfc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vwaddu.wv   v2, v2, v10\n        vwaddu.wv   v3, v3, v11\n        vsetvli     zero, zero, e16, m1, ta, ma\n        .irp    n,0,1,2,3\n        vmax.vx     v\\n, v\\n, zero\n        .endr\n        vsetvli     zero, zero, e8, mf2, ta, ma\n        vnclipu.wi  v8, v0, 0\n        vnclipu.wi  v9, v1, 0\n        vse8.v      v8, (a0)\n        vnclipu.wi  v10, v2, 0\n        vse8.v      v9, (a3)\n        vnclipu.wi  v11, v3, 0\n        vse8.v      v10, (a4)\n        vse8.v      v11, (a5)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "a169f3bca5937cf71d61de1fb85b522bd69c6cfc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a169f3bca5937cf71d61de1fb85b522bd69c6cfc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:9", "text": "endfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "a169f3bca5937cf71d61de1fb85b522bd69c6cfc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a169f3bca5937cf71d61de1fb85b522bd69c6cfc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:10", "text": "vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "a169f3bca5937cf71d61de1fb85b522bd69c6cfc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a169f3bca5937cf71d61de1fb85b522bd69c6cfc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 361, "line_end": 391}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": "vmul.vx v8, v0, t4\n        li      t5, 15\n        vmul.vx v10, v4, t4\n        li      t3, 9\n        # t[2..5] = [6 9 12 15]\n        vsll.vi v12, v2, 4\n        vmul.vx v14, v6, t2\n        vmul.vx v16, v2, t2\n        vadd.vv v26, v12, v14 # t3\n        vadd.vv v24, v8, v10  # t1\n        vsub.vv v25, v8, v10  # t2\n        vsub.vv v27, v16, v18 # t4\n        vadd.vv v28, v24, v26 # t5\n        vsub.vv v31, v24, v26 # t8\n        vadd.vv v29, v25, v27 # t6\n        vsub.vv v30, v25, v27 # t7\n        vsll.vi v20, v1, 4\n        vmul.vx v21, v3, t5\n        vmul.vx v22, v5, t3\n        vsll.vi v23, v7, 2\n        vadd.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 2\n        vadd.vv v16, v20, v22 # t1\n        vmul.vx v20, v1, t5\n        vsll.vi v22, v5, 4\n        vmul.vx v23, v7, t3\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vsll.vi v21, v3, 4\n        vsub.vv v17, v20, v22 # t2\n        vmul.vx v20, v1, t3\n        vsll.vi v22, v5, 2\n        vmul.vx v23, v7, t5\n        vsub.vv v20, v20, v21\n        vadd.vv v22, v22, v23\n        vmul.vx v21, v3, t3\n        vadd.vv v18, v20, v22 # t3\n        vsll.vi v20, v1, 2\n        vmul.vx v22, v5, t5\n        vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v0, v28, v16\n        vadd.vv v19, v20, v22 # t4\n        vadd.vv v1, v29, v17\n        vadd.vv v2, v30, v18\n        vadd.vv v3, v31, v19\n        vsub.vv v4, v31, v19\n        vsub.vv v5, v30, v18\n        vsub.vv v6, v29, v17\n        vsub.vv v7, v28, v16\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "04397a29deccf72575a7b02ed56eb37bef2934cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/04397a29deccf72575a7b02ed56eb37bef2934cc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "vsll.vi v23, v7, 4\n        vsub.vv v20, v20, v21\n        vsub.vv v22, v22, v23\n        vadd.vv v0, v28, v16\n        vadd.vv v19, v20, v22 # t4\n        vadd.vv v1, v29, v17\n        vadd.vv v2, v30, v18\n        vadd.vv v3, v31, v19\n        vsub.vv v4, v31, v19\n        vsub.vv v5, v30, v18\n        vsub.vv v6, v29, v17\n        vsub.vv v7, v28, v16\n        jr      t0\nendfunc\n\nfunc ff_vc1_inv_trans_8x8_rvv, zve32x\n        csrwi    vxrm, 0\n        vsetivli zero, 8, e16, m1, ta, ma\n        addi     a1, a0, 1 * 8 * 2\n        vle16.v  v0, (a0)\n        addi     a2, a0, 2 * 8 * 2\n        vle16.v  v1, (a1)\n        addi     a3, a0, 3 * 8 * 2\n        vle16.v  v2, (a2)\n        addi     a4, a0, 4 * 8 * 2\n        vle16.v  v3, (a3)\n        addi     a5, a0, 5 * 8 * 2\n        vle16.v  v4, (a4)\n        addi     a6, a0, 6 * 8 * 2\n        vle16.v  v5, (a5)\n        addi     a7, a0, 7 * 8 * 2\n        vle16.v  v6, (a6)\n        vle16.v  v7, (a7)\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        .irp n,0,1,2,3,4,5,6,7\n        vssra.vi v\\n, v\\n, 3\n        .endr\n        vsseg8e16.v v0, (a0)\n        .irp n,0,1,2,3,4,5,6,7\n        vle16.v  v\\n, (a\\n)\n        .endr\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vadd.vi  v4, v4, 1\n        vadd.vi  v5, v5, 1\n        vssra.vi v4, v4, 7\n        vssra.vi v5, v5, 7\n        vse16.v  v4, (a4)\n        vadd.vi  v6, v6, 1\n        vse16.v  v5, (a5)\n        vadd.vi  v7, v7, 1\n        vssra.vi v6, v6, 7\n        vssra.vi v7, v7, 7\n        vse16.v  v6, (a6)\n        vssra.vi v0, v0, 7\n        vse16.v  v7, (a7)\n        vssra.vi v1, v1, 7\n        vse16.v  v0, (a0)\n        vssra.vi v2, v2, 7\n        vse16.v  v1, (a1)\n        vssra.vi v3, v3, 7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "04397a29deccf72575a7b02ed56eb37bef2934cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/04397a29deccf72575a7b02ed56eb37bef2934cc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": ".endr\n        jal      t0, ff_vc1_inv_trans_8_rvv\n        vadd.vi  v4, v4, 1\n        vadd.vi  v5, v5, 1\n        vssra.vi v4, v4, 7\n        vssra.vi v5, v5, 7\n        vse16.v  v4, (a4)\n        vadd.vi  v6, v6, 1\n        vse16.v  v5, (a5)\n        vadd.vi  v7, v7, 1\n        vssra.vi v6, v6, 7\n        vssra.vi v7, v7, 7\n        vse16.v  v6, (a6)\n        vssra.vi v0, v0, 7\n        vse16.v  v7, (a7)\n        vssra.vi v1, v1, 7\n        vse16.v  v0, (a0)\n        vssra.vi v2, v2, 7\n        vse16.v  v1, (a1)\n        vssra.vi v3, v3, 7\n        vse16.v  v2, (a2)\n        vse16.v  v3, (a3)\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "04397a29deccf72575a7b02ed56eb37bef2934cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/04397a29deccf72575a7b02ed56eb37bef2934cc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:7", "text": "mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "04397a29deccf72575a7b02ed56eb37bef2934cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/04397a29deccf72575a7b02ed56eb37bef2934cc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:8", "text": "vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "04397a29deccf72575a7b02ed56eb37bef2934cc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/04397a29deccf72575a7b02ed56eb37bef2934cc/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 281, "line_end": 318}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c6bec04f3fc57674cb0dfca27ce415990a3f3e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6bec04f3fc57674cb0dfca27ce415990a3f3e1/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": ".endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        li       t0, 16\n        vsetivli zero, 16, e8, m1, ta, ma\n        j        1f\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve32x\n        li        t0, 8\n        vsetivli  zero, 8, e8, mf2, ta, ma\n1:\n        csrwi     vxrm, 0\n2:\n        vle8.v    v16, (a1)\n        addi      t0, t0, -1\n        vle8.v    v8, (a0)\n        add       a1, a1, a2\n        vaaddu.vv v16, v16, v8\n        vse8.v    v16, (a0)\n        add       a0, a0, a2\n        bnez      t0, 2b\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c6bec04f3fc57674cb0dfca27ce415990a3f3e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6bec04f3fc57674cb0dfca27ce415990a3f3e1/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "6c6bec04f3fc57674cb0dfca27ce415990a3f3e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6bec04f3fc57674cb0dfca27ce415990a3f3e1/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 208}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        csrwi         vxrm, 0\n        vsetivli      zero, 16, e8, m1, ta, ma\n        mspel_op_all  l a1 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31\n        mspel_op_all  l a0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\n        vsetvli       t0, zero, e8, m8, ta, ma\n        sub           a0, a0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d452db8410256550d500864ef7ba5917d6afc864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d452db8410256550d500864ef7ba5917d6afc864/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": ".endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        csrwi         vxrm, 0\n        vsetivli      zero, 16, e8, m1, ta, ma\n        mspel_op_all  l a1 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31\n        mspel_op_all  l a0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\n        vsetvli       t0, zero, e8, m8, ta, ma\n        sub           a0, a0, a2\n        vaaddu.vv     v0, v0, v16\n        neg           a2, a2\n        vaaddu.vv     v8, v8, v24\n        vsetivli      zero, 16, e8, m1, ta, ma\n        mspel_op_all  s a0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0\n\n        ret\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve64x\n        csrwi         vxrm, 0\n        li            t0, 64\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse64.v      v16, (a1), a2\n        vlse64.v      v8, (a0), a2\n        vsetvli       zero, t0, e8, m4, ta, ma\n        vaaddu.vv     v16, v16, v8\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v16, (a0), a2\n\n        ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d452db8410256550d500864ef7ba5917d6afc864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d452db8410256550d500864ef7ba5917d6afc864/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:5", "text": "ret\nendfunc\n\nfunc ff_vc1_unescape_buffer_rvv, zve32x\n        vsetivli       zero, 2, e8, m1, ta, ma\n        vmv.v.i        v8, -1\n        li             t4, 1\n        vmv.v.i        v12, -1\n        li             t3, -1\n        mv             t5, a2\n        blez           a1, 3f\n1:\n        vsetvli        t0, a1, e8, m4, ta, ma\n        vle8.v         v16, (a0)\n        vslideup.vi    v8, v16, 2\n        addi           t0, t0, -1 # we cannot fully process the last element\n        vslideup.vi    v12, v16, 1\n        vslide1down.vx v20, v16, t3\n        vsetvli        zero, t0, e8, m4, ta, ma\n        vmseq.vi       v0, v8, 0\n        vmseq.vi       v1, v12, 0\n        vmseq.vi       v2, v16, 3\n        vmand.mm       v0, v0, v1\n        vmsltu.vi      v3, v20, 4\n        vmand.mm       v0, v0, v2\n        vmand.mm       v0, v0, v3\n        vfirst.m       t2, v0\n        bgez           t2, 4f # found an escape byte?\n\n        vse8.v         v16, (a2)\n        addi           t2, t0, -2\n        add            a2, a2, t0\n2:\n        vslidedown.vx  v8, v16, t2\n        sub            a1, a1, t0\n        vslidedown.vi  v12, v8, 1\n        add            a0, a0, t0\n        bgtu           a1, t4, 1b // size > 1\n\n        lb             t0, (a0)\n        sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d452db8410256550d500864ef7ba5917d6afc864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d452db8410256550d500864ef7ba5917d6afc864/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 161, "line_end": 214}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:6", "text": "sb             t0, (a2) # copy last byte (cannot be escaped)\n        addi           a2, a2, 1\n3:\n        sub            a0, a2, t5\n        ret\n4:\n        vsetvli        zero, t2, e8, m4, ta, ma\n        vse8.v         v16, (a2)\n        addi           t0, t2, 1\n        add            a2, a2, t2\n        addi           t2, t2, -1\n        vsetvli        zero, t0, e8, m4, ta, ma\n        j              2b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d452db8410256550d500864ef7ba5917d6afc864", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d452db8410256550d500864ef7ba5917d6afc864/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 201, "line_end": 214}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vc1_inv_trans_8x8_dc_rvv, zve64x\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 16\n        srai          t2, t2, 5\n        li            t0, 8*8\n        vsetvli       zero, t0, e16, m8, ta, ma\n        vzext.vf2     v8, v0\n        vadd.vx       v8, v8, t2\n        vmax.vx       v8, v8, zero\n        vsetvli       zero, zero, e8, m4, ta, ma\n        vnclipu.wi    v0, v8, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d4083ecb7c872807aa24b6ec5865f8a2fba95cf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d4083ecb7c872807aa24b6ec5865f8a2fba95cf2/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:2", "text": "vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x8_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        sh1add        t2, t2, t2\n        slli          t2, t2, 2\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 4*8\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_8x4_dc_rvv, zve64x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse64.v      v0, (a0), a1\n        sh1add        t2, t2, t2\n        addi          t2, t2, 1\n        srai          t2, t2, 1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        li            t0, 8*4\n        vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d4083ecb7c872807aa24b6ec5865f8a2fba95cf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d4083ecb7c872807aa24b6ec5865f8a2fba95cf2/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc\n\n.macro mspel_op op pos n1 n2\n        add           t1, \\pos, a2\n        v\\op\\()e8.v   v\\n1, (\\pos)\n        sh1add        \\pos, a2, \\pos\n        v\\op\\()e8.v   v\\n2, (t1)\n.endm\n\n.macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        csrwi         vxrm, 0\n        vsetivli      zero, 16, e8, m1, ta, ma\n        mspel_op_all  l a1 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31\n        mspel_op_all  l a0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\n        vsetvli       t0, zero, e8, m8, ta, ma\n        sub           a0, a0, a2\n        vaaddu.vv     v0, v0, v16", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d4083ecb7c872807aa24b6ec5865f8a2fba95cf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d4083ecb7c872807aa24b6ec5865f8a2fba95cf2/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:4", "text": ".macro mspel_op_all op pos a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16\n        mspel_op      \\op \\pos \\a1 \\a2\n        mspel_op      \\op \\pos \\a3 \\a4\n        mspel_op      \\op \\pos \\a5 \\a6\n        mspel_op      \\op \\pos \\a7 \\a8\n        mspel_op      \\op \\pos \\a9 \\a10\n        mspel_op      \\op \\pos \\a11 \\a12\n        mspel_op      \\op \\pos \\a13 \\a14\n        mspel_op      \\op \\pos \\a15 \\a16\n.endm\n\nfunc ff_avg_pixels16x16_rvv, zve32x\n        csrwi         vxrm, 0\n        vsetivli      zero, 16, e8, m1, ta, ma\n        mspel_op_all  l a1 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31\n        mspel_op_all  l a0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\n        vsetvli       t0, zero, e8, m8, ta, ma\n        sub           a0, a0, a2\n        vaaddu.vv     v0, v0, v16\n        neg           a2, a2\n        vaaddu.vv     v8, v8, v24\n        vsetivli      zero, 16, e8, m1, ta, ma\n        mspel_op_all  s a0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0\n\n        ret\nendfunc\n\nfunc ff_avg_pixels8x8_rvv, zve64x\n        csrwi         vxrm, 0\n        li            t0, 64\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vlse64.v      v16, (a1), a2\n        vlse64.v      v8, (a0), a2\n        vsetvli       zero, t0, e8, m4, ta, ma\n        vaaddu.vv     v16, v16, v8\n        vsetivli      zero, 8, e8, mf2, ta, ma\n        vsse64.v      v16, (a0), a2\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d4083ecb7c872807aa24b6ec5865f8a2fba95cf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d4083ecb7c872807aa24b6ec5865f8a2fba95cf2/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 121, "line_end": 161}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vc1dsp_rvv.S:3", "text": "vsetvli       zero, t0, e16, m4, ta, ma\n        vzext.vf2     v4, v0\n        vadd.vx       v4, v4, t2\n        vmax.vx       v4, v4, zero\n        vsetvli       zero, zero, e8, m2, ta, ma\n        vnclipu.wi    v0, v4, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse64.v      v0, (a0), a1\n        ret\nendfunc\n\nfunc ff_vc1_inv_trans_4x4_dc_rvv, zve32x\n        lh            t2, (a2)\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vlse32.v      v0, (a0), a1\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 4\n        srai          t2, t2, 3\n        slli          t1, t2, 4\n        add           t2, t2, t1\n        addi          t2, t2, 64\n        srai          t2, t2, 7\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t2\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a1\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vc1dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/vc1dsp_rvv.S", "line_start": 81, "line_end": 113}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/videodsp.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\n#if HAVE_RV_ZICBOP\nfunc ff_prefetch_rv_zicbop, zicbop\n1:\n        addi    a2, a2, -1\n        prefetch.r  0(a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/videodsp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/videodsp.S", "line_start": 1, "line_end": 34}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/videodsp.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/riscv/asm.S\"\n\n#if HAVE_RV_ZICBOP\nfunc ff_prefetch_rv_zicbop, zicbop\n1:\n        addi    a2, a2, -1\n        prefetch.r  (a0)\n        add     a0, a0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/videodsp.S", "license": "LGPL-2.1", "commit": "262168b04e6807fce6a78507c14cfc166ba72845", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262168b04e6807fce6a78507c14cfc166ba72845/libavcodec/riscv/videodsp.S", "line_start": 1, "line_end": 34}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vorbisdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vorbis_inverse_coupling_rvv, zve32f, zba\n        lpad    0\n        fmv.w.x   ft0, zero\n1:\n        vsetvli   t0, a2, e32, m4, ta, ma\n        vle32.v   v16, (a1)\n        sub       a2, a2, t0\n        vle32.v   v24, (a0)\n        vfmax.vf  v8, v16, ft0\n        vfmin.vf  v16, v16, ft0\n        vfsgnj.vv v8, v8, v24\n        vfsgnj.vv v16, v16, v24\n        vfsub.vv  v8, v24, v8\n        vfsub.vv  v24, v24, v16\n        vse32.v   v8, (a1)\n        sh2add    a1, t0, a1\n        vse32.v   v24, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vorbisdsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vorbisdsp_rvv.S", "line_start": 1, "line_end": 44}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vorbisdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vorbis_inverse_coupling_rvv, zve32f, zba\n        fmv.w.x   ft0, zero\n1:\n        vsetvli   t0, a2, e32, m4, ta, ma\n        vle32.v   v16, (a1)\n        sub       a2, a2, t0\n        vle32.v   v24, (a0)\n        vfmax.vf  v8, v16, ft0\n        vfmin.vf  v16, v16, ft0\n        vfsgnj.vv v8, v8, v24\n        vfsgnj.vv v16, v16, v24\n        vfsub.vv  v8, v24, v8\n        vfsub.vv  v24, v24, v16\n        vse32.v   v8, (a1)\n        sh2add    a1, t0, a1\n        vse32.v   v24, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vorbisdsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vorbisdsp_rvv.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vorbisdsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_vorbis_inverse_coupling_rvv, zve32f\n        fmv.w.x   ft0, zero\n1:\n        vsetvli   t0, a2, e32, m4, ta, ma\n        vle32.v   v16, (a1)\n        sub       a2, a2, t0\n        vle32.v   v24, (a0)\n        vfmax.vf  v8, v16, ft0\n        vfmin.vf  v16, v16, ft0\n        vfsgnj.vv v8, v8, v24\n        vfsgnj.vv v16, v16, v24\n        vfsub.vv  v8, v24, v8\n        vfsub.vv  v24, v24, v16\n        vse32.v   v8, (a1)\n        sh2add    a1, t0, a1\n        vse32.v   v24, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vorbisdsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/riscv/vorbisdsp_rvv.S", "line_start": 1, "line_end": 43}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_vp7_luma_dc_wht_rvv, zve32x, zba\n        lpad    0\n        li          a2, 4 * 16 * 2\n        li          a7, 16 * 2\n        jal         t0, 1f\n        vsse16.v    v4, (a0), a7\n        vsse16.v    v5, (t1), a7\n        vsse16.v    v6, (t2), a7\n        vsse16.v    v7, (t3), a7\n        ret\n1:\n        csrwi       vxrm, 0\n        li          t4, 12540\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg4e16.v v0, (a1)\n        li          t6, 30274\n        vwmul.vx    v8, v1, t4\n        li          t5, 23170\n        vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:2", "text": "li          t5, 23170\n        vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14\n        vnsra.wi    v7, v3, 14\n        vnsra.wi    v5, v1, 14\n        vnsra.wi    v6, v2, 14\n        vsseg4e16.v v4, (sp)\n        vle16.v     v0, (sp)\n        vle16.v     v1, (t1)\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        vwmul.vx    v8, v1, t4\n        vwmul.vx    v9, v3, t6\n        add         t1, a2, a0\n        vwmul.vx    v10, v1, t6\n        sh1add      t2, a2, a0\n        vwmul.vx    v11, v3, t4\n        sh1add      a2, a2, a2 # a2 *= 3\n        vwadd.vv    v4, v0, v2\n        add         t3, a2, a0\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vmul.vx     v4, v4, t5\n        sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "vmul.vx     v4, v4, t5\n        sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n\nfunc ff_vp7_idct_add_rvv, zve32x\n        lpad    0\n        jal         t0, 1b\n        csrwi       vxrm, 2\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vle8.v      v12, (a0)\n        vle8.v      v13, (t1)\n        vwaddu.wv   v4, v4, v12\n        vle8.v      v14, (t2)\n        vwaddu.wv   v5, v5, v13\n        vle8.v      v15, (t3)\n        vwaddu.wv   v6, v6, v14\n        vwaddu.wv   v7, v7, v15\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v4, v4, zero\n        vmax.vx     v5, v5, zero\n        vmax.vx     v6, v6, zero\n        vmax.vx     v7, v7, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v0, v4, 0\n        vnclipu.wi  v1, v5, 0\n        vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\n.irp type, y, uv\nfunc ff_vp7_idct_dc_add4\\type\\()_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:4", "text": "vnclipu.wi  v0, v4, 0\n        vnclipu.wi  v1, v5, 0\n        vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\n.irp type, y, uv\nfunc ff_vp7_idct_dc_add4\\type\\()_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000 - (128 << 18)\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14\n        vmul.vx  v0, v0, t1\n        vadd.vx  v0, v0, t2\n        vsetvli  zero, zero, e16, mf2, ta, ma\n        vnsra.wi v8, v0, 18   # 4x DC\n        tail     ff_vp78_idct_dc_add4\\type\\()_rvv\nendfunc\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 121, "line_end": 150}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_vp7_luma_dc_wht_rvv, zve32x, zba\n        li          a2, 4 * 16 * 2\n        li          a7, 16 * 2\n        jal         t0, 1f\n        vsse16.v    v4, (a0), a7\n        vsse16.v    v5, (t1), a7\n        vsse16.v    v6, (t2), a7\n        vsse16.v    v7, (t3), a7\n        ret\n1:\n        csrwi       vxrm, 0\n        li          t4, 12540\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg4e16.v v0, (a1)\n        li          t6, 30274\n        vwmul.vx    v8, v1, t4\n        li          t5, 23170\n        vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:2", "text": "vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14\n        vnsra.wi    v7, v3, 14\n        vnsra.wi    v5, v1, 14\n        vnsra.wi    v6, v2, 14\n        vsseg4e16.v v4, (sp)\n        vle16.v     v0, (sp)\n        vle16.v     v1, (t1)\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        vwmul.vx    v8, v1, t4\n        vwmul.vx    v9, v3, t6\n        add         t1, a2, a0\n        vwmul.vx    v10, v1, t6\n        sh1add      t2, a2, a0\n        vwmul.vx    v11, v3, t4\n        sh1add      a2, a2, a2 # a2 *= 3\n        vwadd.vv    v4, v0, v2\n        add         t3, a2, a0\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vmul.vx     v4, v4, t5\n        sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n\nfunc ff_vp7_idct_add_rvv, zve32x\n        jal         t0, 1b\n        csrwi       vxrm, 2\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vle8.v      v12, (a0)\n        vle8.v      v13, (t1)\n        vwaddu.wv   v4, v4, v12\n        vle8.v      v14, (t2)\n        vwaddu.wv   v5, v5, v13\n        vle8.v      v15, (t3)\n        vwaddu.wv   v6, v6, v14\n        vwaddu.wv   v7, v7, v15\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v4, v4, zero\n        vmax.vx     v5, v5, zero\n        vmax.vx     v6, v6, zero\n        vmax.vx     v7, v7, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v0, v4, 0\n        vnclipu.wi  v1, v5, 0\n        vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\n.irp type, y, uv\nfunc ff_vp7_idct_dc_add4\\type\\()_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000 - (128 << 18)\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:4", "text": "vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\n.irp type, y, uv\nfunc ff_vp7_idct_dc_add4\\type\\()_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000 - (128 << 18)\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14\n        vmul.vx  v0, v0, t1\n        vadd.vx  v0, v0, t2\n        vsetvli  zero, zero, e16, mf2, ta, ma\n        vnsra.wi v8, v0, 18   # 4x DC\n        tail     ff_vp78_idct_dc_add4\\type\\()_rvv\nendfunc\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 121, "line_end": 147}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_vp7_luma_dc_wht_rvv, zve32x\n        li          a2, 4 * 16 * 2\n        li          a7, 16 * 2\n        jal         t0, 1f\n        vsse16.v    v4, (a0), a7\n        vsse16.v    v5, (t1), a7\n        vsse16.v    v6, (t2), a7\n        vsse16.v    v7, (t3), a7\n        ret\n1:\n        csrwi       vxrm, 0\n        li          t4, 12540\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg4e16.v v0, (a1)\n        li          t6, 30274\n        vwmul.vx    v8, v1, t4\n        li          t5, 23170\n        vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n\nfunc ff_vp7_idct_add_rvv, zve32x\n        jal         t0, 1b\n        csrwi       vxrm, 2\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vle8.v      v12, (a0)\n        vle8.v      v13, (t1)\n        vwaddu.wv   v4, v4, v12\n        vle8.v      v14, (t2)\n        vwaddu.wv   v5, v5, v13\n        vle8.v      v15, (t3)\n        vwaddu.wv   v6, v6, v14\n        vwaddu.wv   v7, v7, v15\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v4, v4, zero\n        vmax.vx     v5, v5, zero\n        vmax.vx     v6, v6, zero\n        vmax.vx     v7, v7, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v0, v4, 0\n        vnclipu.wi  v1, v5, 0\n        vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\nfunc ff_vp7_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000 - (128 << 18)\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14\n        vmul.vx  v0, v0, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:4", "text": "vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\nfunc ff_vp7_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000 - (128 << 18)\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14\n        vmul.vx  v0, v0, t1\n        vadd.vx  v0, v0, t2\n        vsetvli  zero, zero, e16, mf2, ta, ma\n        vnsra.wi v8, v0, 18   # 4x DC\n        tail     ff_vp78_idct_dc_add4y_rvv\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 121, "line_end": 145}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n\nfunc ff_vp7_idct_add_rvv, zve32x\n        jal         t0, 1b\n        csrwi       vxrm, 2\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vle8.v      v12, (a0)\n        vle8.v      v13, (t1)\n        vwaddu.wv   v4, v4, v12\n        vle8.v      v14, (t2)\n        vwaddu.wv   v5, v5, v13\n        vle8.v      v15, (t3)\n        vwaddu.wv   v6, v6, v14\n        vwaddu.wv   v7, v7, v15\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v4, v4, zero\n        vmax.vx     v5, v5, zero\n        vmax.vx     v6, v6, zero\n        vmax.vx     v7, v7, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v0, v4, 0\n        vnclipu.wi  v1, v5, 0\n        vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\nfunc ff_vp7_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14\n        vmul.vx  v0, v0, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:4", "text": "vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif\n\nfunc ff_vp7_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 23170\n        vlse16.v v8, (a1), t0 # block[0..3][0]\n        vwmul.vx v0, v8, t1\n        li       t2, 0x20000\n        vsetvli  zero, zero, e32, m1, ta, ma\n        vsra.vi  v0, v0, 14\n        vmul.vx  v0, v0, t1\n        vadd.vx  v0, v0, t2\n        vsetvli  zero, zero, e16, mf2, ta, ma\n        vnsra.wi v8, v0, 18   # 4x DC\n        tail     ff_vp78_idct_dc_add4y_rvv\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 121, "line_end": 145}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n\nfunc ff_vp7_idct_add_rvv, zve32x\n        jal         t0, 1b\n        csrwi       vxrm, 2\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vle8.v      v12, (a0)\n        vle8.v      v13, (t1)\n        vwaddu.wv   v4, v4, v12\n        vle8.v      v14, (t2)\n        vwaddu.wv   v5, v5, v13\n        vle8.v      v15, (t3)\n        vwaddu.wv   v6, v6, v14\n        vwaddu.wv   v7, v7, v15\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v4, v4, zero\n        vmax.vx     v5, v5, zero\n        vmax.vx     v6, v6, zero\n        vmax.vx     v7, v7, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v0, v4, 0\n        vnclipu.wi  v1, v5, 0\n        vse8.v      v0, (a0)\n        vnclipu.wi  v2, v6, 0\n        vse8.v      v1, (t1)\n        vnclipu.wi  v3, v7, 0\n        vse8.v      v2, (t2)\n        vse8.v      v3, (t3)\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "fa3b153cb1eba0d68327c716842c9a38f95c1667", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa3b153cb1eba0d68327c716842c9a38f95c1667/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 129}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:2", "text": "vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14\n        vnsra.wi    v7, v3, 14\n        vnsra.wi    v5, v1, 14\n        vnsra.wi    v6, v2, 14\n        vsseg4e16.v v4, (sp)\n        vle16.v     v0, (sp)\n        vle16.v     v1, (t1)\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        vwmul.vx    v8, v1, t4\n        vwmul.vx    v9, v3, t6\n        add         t1, a2, a0\n        vwmul.vx    v10, v1, t6\n        sh1add      t2, a2, a0\n        vwmul.vx    v11, v3, t4\n        sh1add      a2, a2, a2 # a2 *= 3\n        vwadd.vv    v4, v0, v2\n        add         t3, a2, a0\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vmul.vx     v4, v4, t5\n        sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "4a0e629b6f4b6fb612ce08a471fcf3c249d35eaa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4a0e629b6f4b6fb612ce08a471fcf3c249d35eaa/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        jr          t0\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "4a0e629b6f4b6fb612ce08a471fcf3c249d35eaa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4a0e629b6f4b6fb612ce08a471fcf3c249d35eaa/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_vp7_luma_dc_wht_rvv, zve32x\n        csrwi       vxrm, 0\n        li          t4, 12540\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vlseg4e16.v v0, (a1)\n        li          t6, 30274\n        vwmul.vx    v8, v1, t4\n        li          t5, 23170\n        vwmul.vx    v9, v3, t6\n        addi        t1, sp, -12 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, sp, -8 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, sp, -4 * 2\n        vwadd.vv    v4, v0, v2\n        addi        sp, sp, -16 * 2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14\n        vnsra.wi    v7, v3, 14\n        vnsra.wi    v5, v1, 14\n        vnsra.wi    v6, v2, 14\n        vsseg4e16.v v4, (sp)\n        vle16.v     v0, (sp)\n        vle16.v     v1, (t1)\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        vwmul.vx    v8, v1, t4", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "fd39997f727855d7cc0118203269feac0ca2fa31", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd39997f727855d7cc0118203269feac0ca2fa31/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:2", "text": "vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v7, v10, v11\n        vmul.vx     v4, v4, t5\n        vsub.vv     v6, v8, v9\n        vmul.vx     v5, v5, t5\n        vadd.vv     v0, v4, v7\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v4, v0, 14\n        vnsra.wi    v7, v3, 14\n        vnsra.wi    v5, v1, 14\n        vnsra.wi    v6, v2, 14\n        vsseg4e16.v v4, (sp)\n        vle16.v     v0, (sp)\n        vle16.v     v1, (t1)\n        vle16.v     v2, (t2)\n        vle16.v     v3, (t3)\n        vwmul.vx    v8, v1, t4\n        li          t0, 16 * 2\n        vwmul.vx    v9, v3, t6\n        addi        t1, a0, 1 * 4 * 16 * 2\n        vwmul.vx    v10, v1, t6\n        addi        t2, a0, 2 * 4 * 16 * 2\n        vwmul.vx    v11, v3, t4\n        addi        t3, a0, 3 * 4 * 16 * 2\n        vwadd.vv    v4, v0, v2\n        vwsub.vv    v5, v0, v2\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vmul.vx     v4, v4, t5\n        sd          zero,   (a1)\n        vadd.vv     v7, v10, v11\n        sd          zero,  8(a1)\n        vmul.vx     v5, v5, t5\n        sd          zero, 16(a1)\n        vsub.vv     v6, v8, v9\n        sd          zero, 24(a1)\n        vadd.vv     v0, v4, v7\n        addi        sp, sp, 16 * 2\n        vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        vsse16.v    v4, (a0), t0\n        vsse16.v    v5, (t1), t0\n        vsse16.v    v6, (t2), t0\n        vsse16.v    v7, (t3), t0\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "fd39997f727855d7cc0118203269feac0ca2fa31", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd39997f727855d7cc0118203269feac0ca2fa31/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 41, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp7dsp_rvv.S:3", "text": "vsub.vv     v3, v4, v7\n        vadd.vv     v1, v5, v6\n        vsub.vv     v2, v5, v6\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnclip.wi   v4, v0, 18\n        vnclip.wi   v5, v1, 18\n        vnclip.wi   v6, v2, 18\n        vnclip.wi   v7, v3, 18\n        vsse16.v    v4, (a0), t0\n        vsse16.v    v5, (t1), t0\n        vsse16.v    v6, (t2), t0\n        vsse16.v    v7, (t3), t0\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp7dsp_rvv.S", "license": "LGPL-2.1", "commit": "fd39997f727855d7cc0118203269feac0ca2fa31", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd39997f727855d7cc0118203269feac0ca2fa31/libavcodec/riscv/vp7dsp_rvv.S", "line_start": 81, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_put_vp8_pixels16_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_put_vp8_pixels8_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_put_vp8_pixels4_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvi.S:2", "text": "1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_put_vp8_pixels4_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvi.S", "line_start": 41, "line_end": 64}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_put_vp8_pixels16_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_put_vp8_pixels8_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_put_vp8_pixels4_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvi.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_put_vp8_pixels16_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_put_vp8_pixels8_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_put_vp8_pixels4_rvi\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvi.S", "license": "LGPL-2.1", "commit": "0b8e5e5a00097c9bef30ca90808d8f83901cf29b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0b8e5e5a00097c9bef30ca90808d8f83901cf29b/libavcodec/riscv/vp8dsp_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvi.S:2", "text": "ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_put_vp8_pixels4_rvi\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvi.S", "license": "LGPL-2.1", "commit": "0b8e5e5a00097c9bef30ca90808d8f83901cf29b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0b8e5e5a00097c9bef30ca90808d8f83901cf29b/libavcodec/riscv/vp8dsp_rvi.S", "line_start": 41, "line_end": 61}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len <= 31\n        vsetivli        zero, \\len, e8, m2, ta, ma\n.endif\n.endm\n\n.macro vsetvlstatic16 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e16, mf2, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e16, m1, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n#if __riscv_xlen >= 64\nfunc ff_vp8_luma_dc_wht_rvv, zve64x\n        lpad    0\n        vsetivli    zero, 1, e64, m1, ta, ma\n        vlseg4e64.v v4, (a1)\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vwadd.vv    v1, v5, v6\n        addi        t1, sp, -48\n        vwadd.vv    v0, v4, v7\n        addi        t2, sp, -32\n        vwsub.vv    v2, v5, v6\n        addi        t3, sp, -16\n        vwsub.vv    v3, v4, v7\n        addi        sp, sp, -64\n        vsetvli     zero, zero, e32, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": ".elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n#if __riscv_xlen >= 64\nfunc ff_vp8_luma_dc_wht_rvv, zve64x\n        lpad    0\n        vsetivli    zero, 1, e64, m1, ta, ma\n        vlseg4e64.v v4, (a1)\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vwadd.vv    v1, v5, v6\n        addi        t1, sp, -48\n        vwadd.vv    v0, v4, v7\n        addi        t2, sp, -32\n        vwsub.vv    v2, v5, v6\n        addi        t3, sp, -16\n        vwsub.vv    v3, v4, v7\n        addi        sp, sp, -64\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v4, v0, v1\n        vadd.vv     v5, v3, v2\n        vse32.v     v4, (sp)\n        vsub.vv     v6, v0, v1\n        vse32.v     v5, (t1)\n        vsub.vv     v7, v3, v2\n        vse32.v     v6, (t2)\n        vse32.v     v7, (t3)\n        vlseg4e32.v v4, (sp)\n        vadd.vv     v0, v4, v7\n        sd          zero,   (a1)\n        vadd.vv     v1, v5, v6\n        sd          zero,  8(a1)\n        vsub.vv     v2, v5, v6\n        sd          zero, 16(a1)\n        vsub.vv     v3, v4, v7\n        sd          zero, 24(a1)\n        vadd.vi     v0, v0, 3 # rounding mode not supported, do it manually\n        li          t0, 4 * 16 * 2\n        vadd.vi     v3, v3, 3\n        addi        t1, a0, 16 * 2\n        vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "addi        t1, a0, 16 * 2\n        vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n\nfunc ff_vp8_idct_add_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        a3, a1, 1 * 4 * 2\n        addi        a4, a1, 2 * 4 * 2\n        addi        a5, a1, 3 * 4 * 2\n        li          t1, 20091\n        li          t2, 35468\n        jal         t0, 1f\n        vsseg4e16.v v0, (a1)\n        jal         t0, 1f\n        vlsseg4e8.v v4, (a0), a2\n        vssra.vi    v0, v0, 3\n        sd          zero,   (a1)\n        vssra.vi    v1, v1, 3\n        sd          zero,  8(a1)\n        vssra.vi    v2, v2, 3\n        sd          zero, 16(a1)\n        vssra.vi    v3, v3, 3\n        sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)\n        vle16.v    v2, (a4)\n        vle16.v    v1, (a3)\n        vle16.v    v3, (a5)\n        vadd.vv    v4, v0, v2 # t0\n        vsub.vv    v5, v0, v2 # t1\n        vmulhsu.vx v8, v3, t1\n        vmulhsu.vx v6, v1, t2\n        vadd.vv    v8, v8, v3\n        vmulhsu.vx v7, v1, t1\n        vmulhsu.vx v9, v3, t2\n        vadd.vv    v7, v7, v1\n        vsub.vv    v6, v6, v8 # t2\n        vadd.vv    v7, v7, v9 # t3\n        vadd.vv    v1, v5, v6\n        vsub.vv    v2, v5, v6\n        vadd.vv    v0, v4, v7\n        vsub.vv    v3, v4, v7\n        jr         t0\nendfunc\n#endif\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e8, m1, ta, ma\n        bgez       a3, 1f\n\n        # block[0] < 0\n        neg        a3, a3\n        vssubu.vx  v8, v8, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "func ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e8, m1, ta, ma\n        bgez       a3, 1f\n\n        # block[0] < 0\n        neg        a3, a3\n        vssubu.vx  v8, v8, a3\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\n\n1:      # block[0] >= 0\n        vsaddu.vx  v8, v8, a3\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "endfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load_h dst mn\n        addi            t5, a2, 1\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        add             t0, a2, a3\n        add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        add             t0, a2, a3\n        add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4\n        vnsra.wi        v30, v24, 3\n        vnsra.wi        v0, v22, 3\n        vse8.v          v30, (a0)\n        vse8.v          v0, (t2)\n        add             a2, t0, a3\n        add             a0, t2, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "put_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters, align=0\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": "func ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters, align=0\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        lpad    0\n        epel_filter     \\size \\type t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        lpad    0\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x, zba\n        lpad    0\n#if __riscv_xlen == 64\n        addi    sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd      s\\n, (\\n * 8)(sp)\n        .endr\n#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": "#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n# Only the sixtaps versions are used for epel16.", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:14", "text": "epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n# Only the sixtaps versions are used for epel16.\nepel 16 6 h\nepel 16 6 v\n#if __riscv_xlen <= 64\nepel_hv 16 6 6\n#endif\n\n.irp len,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 521, "line_end": 558}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": "#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:14", "text": "epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 521, "line_end": 551}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len <= 31\n        vsetivli        zero, \\len, e8, m2, ta, ma\n.endif\n.endm\n\n.macro vsetvlstatic16 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e16, mf2, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e16, m1, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n#if __riscv_xlen >= 64\nfunc ff_vp8_luma_dc_wht_rvv, zve64x\n        lpad    0\n        vsetivli    zero, 1, e64, m1, ta, ma\n        vlseg4e64.v v4, (a1)\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vwadd.vv    v1, v5, v6\n        addi        t1, sp, -48\n        vwadd.vv    v0, v4, v7\n        addi        t2, sp, -32\n        vwsub.vv    v2, v5, v6\n        addi        t3, sp, -16\n        vwsub.vv    v3, v4, v7\n        addi        sp, sp, -64\n        vsetvli     zero, zero, e32, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2b945147d10a2aa054679a276f90ac8ed21a806", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2b945147d10a2aa054679a276f90ac8ed21a806/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": ".elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n#if __riscv_xlen >= 64\nfunc ff_vp8_luma_dc_wht_rvv, zve64x\n        lpad    0\n        vsetivli    zero, 1, e64, m1, ta, ma\n        vlseg4e64.v v4, (a1)\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vwadd.vv    v1, v5, v6\n        addi        t1, sp, -48\n        vwadd.vv    v0, v4, v7\n        addi        t2, sp, -32\n        vwsub.vv    v2, v5, v6\n        addi        t3, sp, -16\n        vwsub.vv    v3, v4, v7\n        addi        sp, sp, -64\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v4, v0, v1\n        vadd.vv     v5, v3, v2\n        vse32.v     v4, (sp)\n        vsub.vv     v6, v0, v1\n        vse32.v     v5, (t1)\n        vsub.vv     v7, v3, v2\n        vse32.v     v6, (t2)\n        vse32.v     v7, (t3)\n        vlseg4e32.v v4, (sp)\n        vadd.vv     v0, v4, v7\n        sd          zero,   (a1)\n        vadd.vv     v1, v5, v6\n        sd          zero,  8(a1)\n        vsub.vv     v2, v5, v6\n        sd          zero, 16(a1)\n        vsub.vv     v3, v4, v7\n        sd          zero, 24(a1)\n        vadd.vi     v0, v0, 3 # rounding mode not supported, do it manually\n        li          t0, 4 * 16 * 2\n        vadd.vi     v3, v3, 3\n        addi        t1, a0, 16 * 2\n        vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "fd8cbfec3d2dbfc82960ddc32c094427abc13bed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd8cbfec3d2dbfc82960ddc32c094427abc13bed/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "addi        t1, a0, 16 * 2\n        vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif\n\nfunc ff_vp8_idct_add_rvv, zve32x\n        lpad    0\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        a3, a1, 1 * 4 * 2\n        addi        a4, a1, 2 * 4 * 2\n        addi        a5, a1, 3 * 4 * 2\n        li          t1, 20091\n        li          t2, 35468\n        jal         t0, 1f\n        vsseg4e16.v v0, (a1)\n        jal         t0, 1f\n        vlsseg4e8.v v4, (a0), a2\n        vssra.vi    v0, v0, 3\n        sd          zero,   (a1)\n        vssra.vi    v1, v1, 3\n        sd          zero,  8(a1)\n        vssra.vi    v2, v2, 3\n        sd          zero, 16(a1)\n        vssra.vi    v3, v3, 3\n        sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "fd8cbfec3d2dbfc82960ddc32c094427abc13bed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd8cbfec3d2dbfc82960ddc32c094427abc13bed/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vssra.vi    v3, v3, 3\n        sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)\n        vle16.v    v2, (a4)\n        vle16.v    v1, (a3)\n        vle16.v    v3, (a5)\n        vadd.vv    v4, v0, v2 # t0\n        vsub.vv    v5, v0, v2 # t1\n        vmulhsu.vx v8, v3, t1\n        vmulhsu.vx v6, v1, t2\n        vadd.vv    v8, v8, v3\n        vmulhsu.vx v7, v1, t1\n        vmulhsu.vx v9, v3, t2\n        vadd.vv    v7, v7, v1\n        vsub.vv    v6, v6, v8 # t2\n        vadd.vv    v7, v7, v9 # t3\n        vadd.vv    v1, v5, v6\n        vsub.vv    v2, v5, v6\n        vadd.vv    v0, v4, v7\n        vsub.vv    v3, v4, v7\n        jr         t0\nendfunc\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e8, m1, ta, ma\n        bgez       a3, 1f\n\n        # block[0] < 0\n        neg        a3, a3\n        vssubu.vx  v8, v8, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "fd8cbfec3d2dbfc82960ddc32c094427abc13bed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fd8cbfec3d2dbfc82960ddc32c094427abc13bed/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "put_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "9b4655c3a145d5d0f315c3bd0a80792f37603c2f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9b4655c3a145d5d0f315c3bd0a80792f37603c2f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": "func ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "9b4655c3a145d5d0f315c3bd0a80792f37603c2f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9b4655c3a145d5d0f315c3bd0a80792f37603c2f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vssra.vi    v3, v3, 3\n        sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)\n        vle16.v    v2, (a4)\n        vle16.v    v1, (a3)\n        vle16.v    v3, (a5)\n        vadd.vv    v4, v0, v2 # t0\n        vsub.vv    v5, v0, v2 # t1\n        vmulhsu.vx v8, v3, t1\n        vmulhsu.vx v6, v1, t2\n        vadd.vv    v8, v8, v3\n        vmulhsu.vx v7, v1, t1\n        vmulhsu.vx v9, v3, t2\n        vadd.vv    v7, v7, v1\n        vsub.vv    v6, v6, v8 # t2\n        vadd.vv    v7, v7, v9 # t3\n        vadd.vv    v1, v5, v6\n        vsub.vv    v2, v5, v6\n        vadd.vv    v0, v4, v7\n        vsub.vv    v3, v4, v7\n        jr         t0\nendfunc\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "func ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load_h dst mn", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load_h dst mn\n        addi            t5, a2, 1\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        add             t0, a2, a3\n        add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4\n        vnsra.wi        v30, v24, 3\n        vnsra.wi        v0, v22, 3\n        vse8.v          v30, (a0)\n        vse8.v          v0, (t2)\n        add             a2, t0, a3\n        add             a0, t2, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": "const subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        lpad    0\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": "vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        lpad    0\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x, zba\n        lpad    0\n#if __riscv_xlen == 64\n        addi    sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd      s\\n, (\\n * 8)(sp)\n        .endr\n#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": "sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:14", "text": ".endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bbfc0ac9cacbfbddd94ffc92ef904b7854cb88ad/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 521, "line_end": 545}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vssra.vi    v3, v3, 3\n        sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)\n        vle16.v    v2, (a4)\n        vle16.v    v1, (a3)\n        vle16.v    v3, (a5)\n        vadd.vv    v4, v0, v2 # t0\n        vsub.vv    v5, v0, v2 # t1\n        vmulhsu.vx v8, v3, t1\n        vmulhsu.vx v6, v1, t2\n        vadd.vv    v8, v8, v3\n        vmulhsu.vx v7, v1, t1\n        vmulhsu.vx v9, v3, t2\n        vadd.vv    v7, v7, v1\n        vsub.vv    v6, v6, v8 # t2\n        vadd.vv    v7, v7, v9 # t3\n        vadd.vv    v1, v5, v6\n        vsub.vv    v2, v5, v6\n        vadd.vv    v0, v4, v7\n        vsub.vv    v3, v4, v7\n        jr         t0\nendfunc\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "func ff_vp8_idct_dc_add_rvv, zve32x\n        lpad    0\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        lpad    0\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load_h dst mn\n        addi            t5, a2, 1\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        add             t0, a2, a3\n        add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4\n        vnsra.wi        v30, v24, 3\n        vnsra.wi        v0, v22, 3\n        vse8.v          v30, (a0)\n        vse8.v          v0, (t2)\n        add             a2, t0, a3\n        add             a0, t2, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": ".Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        lpad    0\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": "vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        lpad    0\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x, zba\n        lpad    0\n#if __riscv_xlen == 64\n        addi    sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd      s\\n, (\\n * 8)(sp)\n        .endr\n#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": "#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:14", "text": "ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 521, "line_end": 546}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len <= 31\n        vsetivli        zero, \\len, e8, m2, ta, ma\n.endif\n.endm\n\n.macro vsetvlstatic16 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e16, mf2, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e16, m1, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n#if __riscv_xlen >= 64\nfunc ff_vp8_luma_dc_wht_rvv, zve64x\n        vsetivli    zero, 1, e64, m1, ta, ma\n        vlseg4e64.v v4, (a1)\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vwadd.vv    v1, v5, v6\n        addi        t1, sp, -48\n        vwadd.vv    v0, v4, v7\n        addi        t2, sp, -32\n        vwsub.vv    v2, v5, v6\n        addi        t3, sp, -16\n        vwsub.vv    v3, v4, v7\n        addi        sp, sp, -64\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v4, v0, v1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": ".elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n#if __riscv_xlen >= 64\nfunc ff_vp8_luma_dc_wht_rvv, zve64x\n        vsetivli    zero, 1, e64, m1, ta, ma\n        vlseg4e64.v v4, (a1)\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        vwadd.vv    v1, v5, v6\n        addi        t1, sp, -48\n        vwadd.vv    v0, v4, v7\n        addi        t2, sp, -32\n        vwsub.vv    v2, v5, v6\n        addi        t3, sp, -16\n        vwsub.vv    v3, v4, v7\n        addi        sp, sp, -64\n        vsetvli     zero, zero, e32, m1, ta, ma\n        vadd.vv     v4, v0, v1\n        vadd.vv     v5, v3, v2\n        vse32.v     v4, (sp)\n        vsub.vv     v6, v0, v1\n        vse32.v     v5, (t1)\n        vsub.vv     v7, v3, v2\n        vse32.v     v6, (t2)\n        vse32.v     v7, (t3)\n        vlseg4e32.v v4, (sp)\n        vadd.vv     v0, v4, v7\n        sd          zero,   (a1)\n        vadd.vv     v1, v5, v6\n        sd          zero,  8(a1)\n        vsub.vv     v2, v5, v6\n        sd          zero, 16(a1)\n        vsub.vv     v3, v4, v7\n        sd          zero, 24(a1)\n        vadd.vi     v0, v0, 3 # rounding mode not supported, do it manually\n        li          t0, 4 * 16 * 2\n        vadd.vi     v3, v3, 3\n        addi        t1, a0, 16 * 2\n        vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif\n\nfunc ff_vp8_idct_add_rvv, zve32x\n        csrwi       vxrm, 0\n        vsetivli    zero, 4, e16, mf2, ta, ma\n        addi        a3, a1, 1 * 4 * 2\n        addi        a4, a1, 2 * 4 * 2\n        addi        a5, a1, 3 * 4 * 2\n        li          t1, 20091\n        li          t2, 35468\n        jal         t0, 1f\n        vsseg4e16.v v0, (a1)\n        jal         t0, 1f\n        vlsseg4e8.v v4, (a0), a2\n        vssra.vi    v0, v0, 3\n        sd          zero,   (a1)\n        vssra.vi    v1, v1, 3\n        sd          zero,  8(a1)\n        vssra.vi    v2, v2, 3\n        sd          zero, 16(a1)\n        vssra.vi    v3, v3, 3\n        sd          zero, 24(a1)\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)\n        vle16.v    v2, (a4)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vsetvli     zero, zero, e8, mf4, ta, ma\n        vwaddu.wv   v0, v0, v4\n        vwaddu.wv   v1, v1, v5\n        vwaddu.wv   v2, v2, v6\n        vwaddu.wv   v3, v3, v7\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vmax.vx     v0, v0, zero\n        vmax.vx     v1, v1, zero\n        vmax.vx     v2, v2, zero\n        vmax.vx     v3, v3, zero\n        vsetvli     zero, zero, e8, mf4, ta, ma\n        vnclipu.wi  v4, v0, 0\n        vnclipu.wi  v5, v1, 0\n        vnclipu.wi  v6, v2, 0\n        vnclipu.wi  v7, v3, 0\n        vssseg4e8.v v4, (a0), a2\n        ret\n1:\n        vle16.v    v0, (a1)\n        vle16.v    v2, (a4)\n        vle16.v    v1, (a3)\n        vle16.v    v3, (a5)\n        vadd.vv    v4, v0, v2 # t0\n        vsub.vv    v5, v0, v2 # t1\n        vmulhsu.vx v8, v3, t1\n        vmulhsu.vx v6, v1, t2\n        vadd.vv    v8, v8, v3\n        vmulhsu.vx v7, v1, t1\n        vmulhsu.vx v9, v3, t2\n        vadd.vv    v7, v7, v1\n        vsub.vv    v6, v6, v8 # t2\n        vadd.vv    v7, v7, v9 # t3\n        vadd.vv    v1, v5, v6\n        vsub.vv    v2, v5, v6\n        vadd.vv    v0, v4, v7\n        vsub.vv    v3, v4, v7\n        jr         t0\nendfunc\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        li       t0, 32", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load_h dst mn\n        addi            t5, a2, 1\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load_h dst mn\n        addi            t5, a2, 1\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        add             t0, a2, a3\n        add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4\n        vnsra.wi        v30, v24, 3\n        vnsra.wi        v0, v22, 3\n        vse8.v          v30, (a0)\n        vse8.v          v0, (t2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4\n        vnsra.wi        v30, v24, 3\n        vnsra.wi        v0, v22, 3\n        vse8.v          v30, (a0)\n        vse8.v          v0, (t2)\n        add             a2, t0, a3\n        add             a0, t2, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load_h    v4, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load_h    v4, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": "endconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x, zba\n#if __riscv_xlen == 64\n        addi    sp, sp, -48", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x, zba\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x, zba\n#if __riscv_xlen == 64\n        addi    sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd      s\\n, (\\n * 8)(sp)\n        .endr\n#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": "epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld      s\\n, (\\n * 8)(sp)\n        .endr\n        addi    sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw      s\\n, (\\n * 4)(sp)\n        .endr\n        addi    sp, sp, 32\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:14", "text": ".endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 521, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi    sp, sp, -48", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "896c22ef000b5d122f14c9f85b364e2d21e1f45c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/896c22ef000b5d122f14c9f85b364e2d21e1f45c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi    sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd      s\\n, (\\n * 8)(sp)\n        .endr\n#else\n        addi    sp, sp, -32\n        .irp n,0,1,2,3,4,5\n        sw      s\\n, (\\n * 4)(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "896c22ef000b5d122f14c9f85b364e2d21e1f45c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/896c22ef000b5d122f14c9f85b364e2d21e1f45c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a4901a56c653e3063955e1316223a4df8c10994f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a4901a56c653e3063955e1316223a4df8c10994f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a4901a56c653e3063955e1316223a4df8c10994f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a4901a56c653e3063955e1316223a4df8c10994f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": "epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a4901a56c653e3063955e1316223a4df8c10994f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a4901a56c653e3063955e1316223a4df8c10994f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        add             t0, a2, a3\n        add             t2, a0, a1\n        addi            a4, a4, -2\n.ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": ".ifc \\type,v\n        add             t3, t0, a3\n.else\n        addi            t5, a2, 1\n        addi            t3, t0, 1\n        vle8.v          v2, (t5)\n.endif\n        vle8.v          v0, (a2)\n        vle8.v          v4, (t0)\n        vle8.v          v6, (t3)\n        vwmulu.vx       v28, v0, t1\n        vwmulu.vx       v26, v4, t1\n.ifc \\type,v\n        vwmaccu.vx      v28, \\mn, v4\n.else\n        vwmaccu.vx      v28, \\mn, v2\n.endif\n        vwmaccu.vx      v26, \\mn, v6\n        vwaddu.wx       v24, v28, t4\n        vwaddu.wx       v22, v26, t4\n        vnsra.wi        v30, v24, 3\n        vnsra.wi        v0, v22, 3\n        vse8.v          v30, (a0)\n        vse8.v          v0, (t2)\n        add             a2, t0, a3\n        add             a0, t2, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": ".endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 538}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:14", "text": "#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d9fb7b5cf0a3b32e2e59be5c32cbe0dab84567b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 521, "line_end": 538}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "func ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:13", "text": ".endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "658439934b255215548269116481e2d48da9ee3b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/658439934b255215548269116481e2d48da9ee3b/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 481, "line_end": 514}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": ".byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 455}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": "endfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0415bb74c81ab0019e48bd2989ddf48d66918e9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0415bb74c81ab0019e48bd2989ddf48d66918e9e/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 455}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4uv_rvv\nfunc ff_vp78_idct_dc_add4uv_rvv, zve64x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        slli        t2, a2, 2\n        vsetivli    zero, 2, e64, m1, ta, ma\n1:\n        vlse64.v    v8, (a0), t2\n        addi        a4, a4, -1\n        vsetivli    zero, 16, e8, m1, ta, ma\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vsetivli    zero, 2, e64, m1, ta, ma\n        vsse64.v    v8, (a0), t2\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\n.macro bilin_load dst type mn\n.ifc \\type,v", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": ".endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": "vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "func ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": "epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "121fb846b97db5afd3a24b0bde2be151400104be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/121fb846b97db5afd3a24b0bde2be151400104be/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 477}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        li       t1, 4 - (128 << 3)\n        vlse16.v v8, (a1), t0\n        vadd.vx  v8, v8, t1\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0 - 128, dc1 - 128, dc2 - 128, dc3 - 128]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        li          a4, 4\n        vsrl.vi     v4, v4, 2\n        li          t1, 128\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vnclip.wi   v8, v16, 0\n        addi        a1, a1, 32\n        vxor.vx     v8, v8, t1\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": ".macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": ".ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": ".if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 453}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:12", "text": ".irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "225de53c9d446ddf1cc3ece6e99c06c8cce9b78f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/225de53c9d446ddf1cc3ece6e99c06c8cce9b78f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 441, "line_end": 453}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\n# a3 = DC\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        vlse16.v v8, (a1), t0\n        vadd.vi  v8, v8, 4\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0, dc1, dc2, dc3]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        vsrl.vi     v4, v4, 2\n        vrgather.vv v0, v8, v4 # replicate each DC four times", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        li       t0, 32\n        vsetivli zero, 4, e16, mf2, ta, ma\n        vlse16.v v8, (a1), t0\n        vadd.vi  v8, v8, 4\n        vsra.vi  v8, v8, 3\n        # fall through\nendfunc\n\n        .variant_cc ff_vp78_idct_dc_add4y_rvv\n# v8 = [dc0, dc1, dc2, dc3]\nfunc ff_vp78_idct_dc_add4y_rvv, zve32x\n        vsetivli    zero, 16, e16, m2, ta, ma\n        vid.v       v4\n        vsrl.vi     v4, v4, 2\n        vrgather.vv v0, v8, v4 # replicate each DC four times\n        vsetvli     zero, zero, e8, m1, ta, ma\n        li          a4, 4\n1:\n        vle8.v      v8, (a0)\n        addi        a4, a4, -1\n        vwaddu.wv   v16, v0, v8\n        sh          zero, (a1)\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vmax.vx     v16, v16, zero\n        addi        a1, a1, 32\n        vsetvli     zero, zero, e8, m1, ta, ma\n        vnclipu.wi  v8, v16, 0\n        vse8.v      v8, (a0)\n        add         a0, a0, a2\n        bnez        a4, 1b\n\n        ret\nendfunc\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e120fbbbd087c3acbad6ce2e8c7b1262a5c8632/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        lh      a3, (a1)\n        addi    a3, a3, 4\n        srai    a3, a3, 3\n        # fall through\nendfunc\n\nfunc ff_vp78_idct_dc_add_rvv, zve32x\n        csrwi      vxrm, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        sh         zero, (a1)\n        vlse32.v   v8, (a0), a2\n        vsetivli   zero, 16, e16, m2, ta, ma\n        vzext.vf2  v16, v8\n        vadd.vx    v16, v16, a3\n        vmax.vx    v16, v16, zero\n        vsetvli    zero, zero, e8, m1, ta, ma\n        vnclipu.wi v8, v16, 0\n        vsetivli   zero, 4, e8, mf4, ta, ma\n        vsse32.v   v8, (a0), a2\n        ret\nendfunc\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "ret\nendfunc\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "put_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": ".endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": ".irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "30797e4ff6c8c537471c386cd019a6a48a721f01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30797e4ff6c8c537471c386cd019a6a48a721f01/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 427}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vadd.vv     v4, v0, v1\n        addi        t2, a0, 16 * 2 * 2\n        vadd.vv     v5, v3, v2\n        addi        t3, a0, 16 * 2 * 3\n        vsub.vv     v6, v0, v1\n        vsub.vv     v7, v3, v2\n        vsetvli     zero, zero, e16, mf2, ta, ma\n        vnsra.wi    v0, v4, 3\n        addi        sp, sp, 64\n        vnsra.wi    v1, v5, 3\n        vsse16.v    v0, (a0), t0\n        vnsra.wi    v2, v6, 3\n        vsse16.v    v1, (t1), t0\n        vnsra.wi    v3, v7, 3\n        vsse16.v    v2, (t2), t0\n        vsse16.v    v3, (t3), t0\n        ret\nendfunc\n#endif\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": ".endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": ".ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:10", "text": ".endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 361, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:11", "text": "epel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b5ea7bb930d44e0ffd12fe0aabfb2838f0e67c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 401, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len <= 31\n        vsetivli        zero, \\len, e8, m2, ta, ma\n.endif\n.endm\n\n.macro vsetvlstatic16 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e16, mf2, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e16, m1, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": "vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v type mn\nfunc ff_put_vp8_bilin4_\\type\\()_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_\\type:\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nput_vp8_bilin_h_v h a5\nput_vp8_bilin_h_v v a6\n\nfunc ff_put_vp8_bilin4_hv_rvv, zve32x\n        vsetvlstatic8   4\n.Lbilin_hv:\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n\n.irp len,16,8\nfunc ff_put_vp8_bilin\\len\\()_h_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_h\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "endfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": ".macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        sub             t6, a2, a3\n        add             a7, a2, a3\n.else\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n.endif\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n.ifc \\type,v\n        add             a7, a7, a3\n.else\n        addi            a7, a7, 1\n.endif\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n.ifc \\type,v\n        sub             t6, t6, a3\n        add             a7, a7, a3\n.else\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n.endif\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": ".ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a11122f9c63bdb66e3f8bc7e2cd380cdc9c9a51c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 355}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "endfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        lla             \\regtype\\()2, subpel_filters\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()0\n        sh1add          \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n        sub             t6, t6, a5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e56455d3672beccd63f922cdc5052aa48f088bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e56455d3672beccd63f922cdc5052aa48f088bd/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": ".macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n        sub             t6, t6, a5\n        add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e56455d3672beccd63f922cdc5052aa48f088bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e56455d3672beccd63f922cdc5052aa48f088bd/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e56455d3672beccd63f922cdc5052aa48f088bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e56455d3672beccd63f922cdc5052aa48f088bd/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e56455d3672beccd63f922cdc5052aa48f088bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e56455d3672beccd63f922cdc5052aa48f088bd/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "4e56455d3672beccd63f922cdc5052aa48f088bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e56455d3672beccd63f922cdc5052aa48f088bd/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 346}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": "endfunc\n\nfunc ff_put_vp8_bilin\\len\\()_v_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_v\nendfunc\n\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8 \\len\n        j             .Lbilin_hv\nendfunc\n.endr\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n        lla             \\regtype\\()2, subpel_filters\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        li              \\regtype\\()1, 6\n        mul             \\regtype\\()0, \\regtype\\()0, \\regtype\\()1\n        add             \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0aad5b9bf5e533bd99f1accba4de8e8ef974686f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad5b9bf5e533bd99f1accba4de8e8ef974686f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": ".endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n        sub             t6, t6, a5\n        add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "0aad5b9bf5e533bd99f1accba4de8e8ef974686f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad5b9bf5e533bd99f1accba4de8e8ef974686f/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v len type mn\nfunc ff_put_vp8_bilin\\len\\()_\\type\\()_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n        lla             \\regtype\\()2, subpel_filters\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        li              \\regtype\\()1, 6\n        mul             \\regtype\\()0, \\regtype\\()0, \\regtype\\()1\n        add             \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": ".byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n        lla             \\regtype\\()2, subpel_filters\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        li              \\regtype\\()1, 6\n        mul             \\regtype\\()0, \\regtype\\()0, \\regtype\\()1\n        add             \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif\n.endm\n\n.macro epel_load dst len size type from_mem regtype\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n.if \\from_mem\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, \\regtype\\()2\n        vwmulu.vx       v20, v26, \\regtype\\()3\n.ifc \\size,6\n        sub             t6, t6, a5\n        add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "sub             t6, t6, a5\n        add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, \\regtype\\()0, v24\n        vwmaccu.vx      v16, \\regtype\\()5, v26\n.endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v22\n        vwmaccsu.vx     v16, \\regtype\\()4, v28\n.else\n        vwmulu.vx       v16, v4, \\regtype\\()2\n        vwmulu.vx       v20, v6, \\regtype\\()3\n        .ifc \\size,6\n        vwmaccu.vx      v16, \\regtype\\()0, v0\n        vwmaccu.vx      v16, \\regtype\\()5, v10\n        .endif\n        vwmaccsu.vx     v16, \\regtype\\()1, v2\n        vwmaccsu.vx     v16, \\regtype\\()4, v8\n.endif\n        li              t6, 64\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type from_mem regtype\n        epel_load       \\dst \\len \\size \\type \\from_mem \\regtype\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type t\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:7", "text": "epel_load_inc   v30 \\len \\size \\type 1 t\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro epel_hv len hsize vsize\nfunc ff_put_vp8_epel\\len\\()_h\\hsize\\()v\\vsize\\()_rvv, zve32x\n#if __riscv_xlen == 64\n        addi            sp, sp, -48\n        .irp n,0,1,2,3,4,5\n        sd              s\\n, \\n\\()<<3(sp)\n        .endr\n#else\n        addi            sp, sp, -24\n        .irp n,0,1,2,3,4,5\n        sw              s\\n, \\n\\()<<2(sp)\n        .endr\n#endif\n        sub             a2, a2, a3\n        epel_filter     \\hsize h t\n        epel_filter     \\vsize v s\n        vsetvlstatic8   \\len\n.if \\hsize == 6 || \\vsize == 6\n        sub             a2, a2, a3\n        epel_load_inc   v0 \\len \\hsize h 1 t\n.endif\n        epel_load_inc   v2 \\len \\hsize h 1 t\n        epel_load_inc   v4 \\len \\hsize h 1 t\n        epel_load_inc   v6 \\len \\hsize h 1 t\n        epel_load_inc   v8 \\len \\hsize h 1 t\n.if \\hsize == 6 || \\vsize == 6\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.endif\n        addi            a4, a4, -1\n1:\n        addi            a4, a4, -1\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\nput_vp8_bilin_hv \\len\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 330}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:9", "text": "epel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n#if __riscv_xlen <= 64\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n#endif\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "5ebb071d7963554853b69ab4caa89f56fe3dce9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5ebb071d7963554853b69ab4caa89f56fe3dce9d/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 321, "line_end": 330}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:8", "text": "epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v0, v2\n.endif\n        vmv.v.v         v2, v4\n        vmv.v.v         v4, v6\n        vmv.v.v         v6, v8\n.if \\hsize == 6 || \\vsize == 6\n        vmv.v.v         v8, v10\n        epel_load_inc   v10 \\len \\hsize h 1 t\n.else\n        epel_load_inc   v8 \\len 4 h 1 t\n.endif\n        add             a0, a0, a1\n        bnez            a4, 1b\n        epel_load       v30 \\len \\vsize v 0 s\n        vse8.v          v30, (a0)\n\n#if __riscv_xlen == 64\n        .irp n,0,1,2,3,4,5\n        ld              s\\n, \\n\\()<<3(sp)\n        .endr\n        addi            sp, sp, 48\n#else\n        .irp n,0,1,2,3,4,5\n        lw              s\\n, \\n\\()<<2(sp)\n        .endr\n        addi            sp, sp, 24\n#endif\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\nput_vp8_bilin_hv \\len\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\nepel_hv \\len 6 6\nepel_hv \\len 4 4\nepel_hv \\len 6 4\nepel_hv \\len 4 6\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "25a33665a0ce57567903ffc4baf0f89ef51223b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/25a33665a0ce57567903ffc4baf0f89ef51223b7/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 281, "line_end": 328}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": "vsetivli        zero, \\len, e16, m2, ta, ma\n.endif\n.endm\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst len type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "63697d3350b1975c05be126d466659885c09d2e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63697d3350b1975c05be126d466659885c09d2e1/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst len type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v len type mn\nfunc ff_put_vp8_bilin\\len\\()_\\type\\()_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\len, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "63697d3350b1975c05be126d466659885c09d2e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63697d3350b1975c05be126d466659885c09d2e1/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, \\len, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type regtype\n        lla             \\regtype\\()2, subpel_filters\n.ifc \\type,v\n        addi            \\regtype\\()0, a6, -1\n.else\n        addi            \\regtype\\()0, a5, -1\n.endif\n        li              \\regtype\\()1, 6\n        mul             \\regtype\\()0, \\regtype\\()0, \\regtype\\()1\n        add             \\regtype\\()0, \\regtype\\()0, \\regtype\\()2\n        .irp n,1,2,3,4\n        lb              \\regtype\\n, \\n(\\regtype\\()0)\n        .endr\n.ifc \\size,6\n        lb              \\regtype\\()5, 5(\\regtype\\()0)\n        lb              \\regtype\\()0, (\\regtype\\()0)\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "63697d3350b1975c05be126d466659885c09d2e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63697d3350b1975c05be126d466659885c09d2e1/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, \\len, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type\n        lla             t2, subpel_filters\n.ifc \\type,v\n        addi            t0, a6, -1\n.else\n        addi            t0, a5, -1\n.endif\n        li              t1, 6\n        mul             t0, t0, t1\n        add             t0, t0, t2\n        .irp n,1,2,3,4\n        lb              t\\n, \\n(t0)\n        .endr\n.ifc \\size,6\n        lb              t5, 5(t0)\n        lb              t0, (t0)\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "cbe51ebf930578a17af0e983f0068bb59939425c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cbe51ebf930578a17af0e983f0068bb59939425c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": ".byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type\n        lla             t2, subpel_filters\n.ifc \\type,v\n        addi            t0, a6, -1\n.else\n        addi            t0, a5, -1\n.endif\n        li              t1, 6\n        mul             t0, t0, t1\n        add             t0, t0, t2\n        .irp n,1,2,3,4\n        lb              t\\n, \\n(t0)\n        .endr\n.ifc \\size,6\n        lb              t5, 5(t0)\n        lb              t0, (t0)\n.endif\n.endm\n\n.macro epel_load dst len size type\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, t2\n        vwmulu.vx       v20, v26, t3\n.ifc \\size,6\n        sub             t6, t6, a5\n        add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, t0, v24\n        vwmaccu.vx      v16, t5, v26\n.endif\n        li              t6, 64\n        vwmaccsu.vx     v16, t1, v22\n        vwmaccsu.vx     v16, t4, v28\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type\n        epel_load       \\dst \\len \\size \\type", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "cbe51ebf930578a17af0e983f0068bb59939425c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cbe51ebf930578a17af0e983f0068bb59939425c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, t0, v24\n        vwmaccu.vx      v16, t5, v26\n.endif\n        li              t6, 64\n        vwmaccsu.vx     v16, t1, v22\n        vwmaccsu.vx     v16, t4, v28\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type\n        epel_load       \\dst \\len \\size \\type\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len,16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\nput_vp8_bilin_hv \\len\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "cbe51ebf930578a17af0e983f0068bb59939425c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cbe51ebf930578a17af0e983f0068bb59939425c/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 247}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, \\len, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type\n        lla             t2, subpel_filters\n.ifc \\type,v\n        addi            t0, a6, -1\n.else\n        addi            t0, a5, -1\n.endif\n        li              t1, 6\n        mul             t0, t0, t1\n        add             t0, t0, t2\n        .irp n 1,2,3,4\n        lb              t\\n, \\n(t0)\n        .endr\n.ifc \\size,6\n        lb              t5, 5(t0)\n        lb              t0, (t0)\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "6e77af1c220c4e0ae06431febad065c78eaa9772", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6e77af1c220c4e0ae06431febad065c78eaa9772/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": ".byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size type\n        lla             t2, subpel_filters\n.ifc \\type,v\n        addi            t0, a6, -1\n.else\n        addi            t0, a5, -1\n.endif\n        li              t1, 6\n        mul             t0, t0, t1\n        add             t0, t0, t2\n        .irp n 1,2,3,4\n        lb              t\\n, \\n(t0)\n        .endr\n.ifc \\size,6\n        lb              t5, 5(t0)\n        lb              t0, (t0)\n.endif\n.endm\n\n.macro epel_load dst len size type\n.ifc \\type,v\n        mv              a5, a3\n.else\n        li              a5, 1\n.endif\n        sub             t6, a2, a5\n        add             a7, a2, a5\n\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        add             a7, a7, a5\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, t2\n        vwmulu.vx       v20, v26, t3\n.ifc \\size,6\n        sub             t6, t6, a5\n        add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, t0, v24\n        vwmaccu.vx      v16, t5, v26\n.endif\n        li              t6, 64\n        vwmaccsu.vx     v16, t1, v22\n        vwmaccsu.vx     v16, t4, v28\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type\n        epel_load       \\dst \\len \\size \\type", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "6e77af1c220c4e0ae06431febad065c78eaa9772", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6e77af1c220c4e0ae06431febad065c78eaa9772/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "add             a7, a7, a5\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, t0, v24\n        vwmaccu.vx      v16, t5, v26\n.endif\n        li              t6, 64\n        vwmaccsu.vx     v16, t1, v22\n        vwmaccsu.vx     v16, t4, v28\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size type\n        epel_load       \\dst \\len \\size \\type\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size \\type\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size \\type\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len 16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\nput_vp8_bilin_hv \\len\nepel \\len 6 h\nepel \\len 4 h\nepel \\len 6 v\nepel \\len 4 v\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "6e77af1c220c4e0ae06431febad065c78eaa9772", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6e77af1c220c4e0ae06431febad065c78eaa9772/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 247}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, \\len, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\nconst subpel_filters\n        .byte 0,  -6, 123,  12,  -1, 0\n        .byte 2, -11, 108,  36,  -8, 1\n        .byte 0,  -9,  93,  50,  -6, 0\n        .byte 3, -16,  77,  77, -16, 3\n        .byte 0,  -6,  50,  93,  -9, 0\n        .byte 1,  -8,  36, 108, -11, 2\n        .byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size\n        lla             t2, subpel_filters\n        addi            t0, a5, -1\n        li              t1, 6\n        mul             t0, t0, t1\n        add             t0, t0, t2\n        .irp n 1,2,3,4\n        lb              t\\n, \\n(t0)\n        .endr\n.ifc \\size,6\n        lb              t5, 5(t0)\n        lb              t0, (t0)\n.endif\n.endm\n\n.macro epel_load dst len size\n        addi            t6, a2, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "109daea6195c2787d62e530fa6a013cc70bae7b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/109daea6195c2787d62e530fa6a013cc70bae7b7/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:5", "text": ".byte 0,  -1,  12, 123,  -6, 0\nendconst\n\n.macro epel_filter size\n        lla             t2, subpel_filters\n        addi            t0, a5, -1\n        li              t1, 6\n        mul             t0, t0, t1\n        add             t0, t0, t2\n        .irp n 1,2,3,4\n        lb              t\\n, \\n(t0)\n        .endr\n.ifc \\size,6\n        lb              t5, 5(t0)\n        lb              t0, (t0)\n.endif\n.endm\n\n.macro epel_load dst len size\n        addi            t6, a2, -1\n        addi            a7, a2, 1\n        vle8.v          v24, (a2)\n        vle8.v          v22, (t6)\n        vle8.v          v26, (a7)\n        addi            a7, a7, 1\n        vle8.v          v28, (a7)\n        vwmulu.vx       v16, v24, t2\n        vwmulu.vx       v20, v26, t3\n.ifc \\size,6\n        addi            t6, t6, -1\n        addi            a7, a7, 1\n        vle8.v          v24, (t6)\n        vle8.v          v26, (a7)\n        vwmaccu.vx      v16, t0, v24\n        vwmaccu.vx      v16, t5, v26\n.endif\n        li              t6, 64\n        vwmaccsu.vx     v16, t1, v22\n        vwmaccsu.vx     v16, t4, v28\n        vwadd.wx        v16, v16, t6\n        vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size\n        epel_load       \\dst \\len \\size\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "109daea6195c2787d62e530fa6a013cc70bae7b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/109daea6195c2787d62e530fa6a013cc70bae7b7/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:6", "text": "vsetvlstatic16  \\len\n        vwadd.vv        v24, v16, v20\n        vnsra.wi        v24, v24, 7\n        vmax.vx         v24, v24, zero\n        vsetvlstatic8   \\len\n        vnclipu.wi      \\dst, v24, 0\n.endm\n\n.macro epel_load_inc dst len size\n        epel_load       \\dst \\len \\size\n        add             a2, a2, a3\n.endm\n\n.macro epel len size type\nfunc ff_put_vp8_epel\\len\\()_\\type\\()\\size\\()_rvv, zve32x\n        epel_filter     \\size\n        vsetvlstatic8   \\len\n1:\n        addi            a4, a4, -1\n        epel_load_inc   v30 \\len \\size\n        vse8.v          v30, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len 16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\nput_vp8_bilin_hv \\len\nepel \\len 6 h\nepel \\len 4 h\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "109daea6195c2787d62e530fa6a013cc70bae7b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/109daea6195c2787d62e530fa6a013cc70bae7b7/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 201, "line_end": 235}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len\n.if \\len <= 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len <= 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len <= 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len <= 31\n        vsetivli        zero, \\len, e8, m2, ta, ma\n.endif\n.endm\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "538f217bbb4f7b601e560565be581334c87ae9fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/538f217bbb4f7b601e560565be581334c87ae9fc/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": "vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst len type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "538f217bbb4f7b601e560565be581334c87ae9fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/538f217bbb4f7b601e560565be581334c87ae9fc/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst len type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v len type mn\nfunc ff_put_vp8_bilin\\len\\()_\\type\\()_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\len, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro put_vp8_bilin_hv len\nfunc ff_put_vp8_bilin\\len\\()_hv_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, \\len, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "538f217bbb4f7b601e560565be581334c87ae9fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/538f217bbb4f7b601e560565be581334c87ae9fc/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:4", "text": "vsetvlstatic8   \\len\n        li              t3, 8\n        sub             t1, t3, a5\n        sub             t2, t3, a6\n        li              t4, 4\n        bilin_load      v4, \\len, h, a5\n        add             a2, a2, a3\n1:\n        addi            a4, a4, -1\n        vwmulu.vx       v20, v4, t2\n        bilin_load      v4, \\len, h, a5\n        vwmaccu.vx      v20, a6, v4\n        vwaddu.wx       v24, v20, t4\n        vnsra.wi        v0, v24, 3\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len 16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\nput_vp8_bilin_hv \\len\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "538f217bbb4f7b601e560565be581334c87ae9fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/538f217bbb4f7b601e560565be581334c87ae9fc/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 121, "line_end": 148}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:3", "text": "vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\n.macro bilin_load dst len type mn\n.ifc \\type,v\n        add             t5, a2, a3\n.else\n        addi            t5, a2, 1\n.endif\n        vle8.v          \\dst, (a2)\n        vle8.v          v2, (t5)\n        vwmulu.vx       v28, \\dst, t1\n        vwmaccu.vx      v28, \\mn, v2\n        vwaddu.wx       v24, v28, t4\n        vnsra.wi        \\dst, v24, 3\n.endm\n\n.macro put_vp8_bilin_h_v len type mn\nfunc ff_put_vp8_bilin\\len\\()_\\type\\()_rvv, zve32x\n        vsetvlstatic8   \\len\n        li              t1, 8\n        li              t4, 4\n        sub             t1, t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\len, \\type, \\mn\n        vse8.v          v0, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len 16,8,4\nput_vp8_bilin_h_v \\len h a5\nput_vp8_bilin_h_v \\len v a6\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "bb5039b3cb79968bd1d36db60c272d5686e0b064", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bb5039b3cb79968bd1d36db60c272d5686e0b064/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 81, "line_end": 122}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\n.macro vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "d897bbb48dcda23ca3d32332d5be4717dd66e551", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d897bbb48dcda23ca3d32332d5be4717dd66e551/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:2", "text": "addi          a0, a0, 4\n        addi          a1, a1, 32\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4y_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        .rept 3\n        vp8_idct_dc_addy\n        .endr\n        vp8_idct_dc_add\n\n        ret\nendfunc\n\nfunc ff_vp8_idct_dc_add4uv_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n        addi          a0, a0, -4\n        sh2add        a0, a2, a0\n        addi          a1, a1, 32\n        vp8_idct_dc_addy\n        vp8_idct_dc_add\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "d897bbb48dcda23ca3d32332d5be4717dd66e551", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d897bbb48dcda23ca3d32332d5be4717dd66e551/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp8dsp_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vp8_idct_dc_add\n        vlse32.v      v0, (a0), a2\n        lh            a5, 0(a1)\n        sh            zero, 0(a1)\n        addi          a5, a5, 4\n        srai          t1, a5, 3\n        vsetivli      zero, 4*4, e16, m2, ta, ma\n        vzext.vf2     v2, v0\n        vadd.vx       v2, v2, t1\n        vmax.vx       v2, v2, zero\n        vsetvli       zero, zero, e8, m1, ta, ma\n        vnclipu.wi    v0, v2, 0\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vsse32.v      v0, (a0), a2\n.endm\n\nfunc ff_vp8_idct_dc_add_rvv, zve32x\n        vsetivli      zero, 4, e8, mf4, ta, ma\n        vp8_idct_dc_add\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp8dsp_rvv.S", "license": "LGPL-2.1", "commit": "c12053cefc9edd0f3524d4dc15c57de3fe7263a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c12053cefc9edd0f3524d4dc15c57de3fe7263a0/libavcodec/riscv/vp8dsp_rvv.S", "line_start": 1, "line_end": 44}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_v_32x32_rvi, zba\n        lpad    0\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        ld           t2, 16(a3)\n        ld           t3, 24(a3)\n        .rept 16\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sd           t2, 16(a0)\n        sd           t3, 24(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        sd           t2, 16(a7)\n        sd           t3, 24(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_16x16_rvi, zba\n        lpad    0\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        .rept 8\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        .endr\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvi.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp9_intra_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvi.S:2", "text": ".endr\n\n        ret\nendfunc\n\nfunc ff_v_16x16_rvi, zba\n        lpad    0\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        .rept 8\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_8x8_rvi, zba\n        lpad    0\n        ld           t0, (a3)\n        .rept 4\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        .endr\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvi.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp9_intra_rvi.S", "line_start": 41, "line_end": 74}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_v_32x32_rvi, zba\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        ld           t2, 16(a3)\n        ld           t3, 24(a3)\n        .rept 16\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sd           t2, 16(a0)\n        sd           t3, 24(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        sd           t2, 16(a7)\n        sd           t3, 24(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_16x16_rvi, zba\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        .rept 8\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_8x8_rvi, zba", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvi.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp9_intra_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvi.S:2", "text": "ret\nendfunc\n\nfunc ff_v_16x16_rvi, zba\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        .rept 8\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_8x8_rvi, zba\n        ld           t0, (a3)\n        .rept 4\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        .endr\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvi.S", "license": "LGPL-2.1", "commit": "187d4d066a4559e2afe2b331144d2b31e256c1ae", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/187d4d066a4559e2afe2b331144d2b31e256c1ae/libavcodec/riscv/vp9_intra_rvi.S", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_v_32x32_rvi\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        ld           t2, 16(a3)\n        ld           t3, 24(a3)\n        .rept 16\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sd           t2, 16(a0)\n        sd           t3, 24(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        sd           t2, 16(a7)\n        sd           t3, 24(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_16x16_rvi\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        .rept 8\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_8x8_rvi", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvi.S", "license": "LGPL-2.1", "commit": "aa9dbd91cfde09af2372b45680c184d02dc454b2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aa9dbd91cfde09af2372b45680c184d02dc454b2/libavcodec/riscv/vp9_intra_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvi.S:2", "text": "ret\nendfunc\n\nfunc ff_v_16x16_rvi\n        ld           t0, (a3)\n        ld           t1, 8(a3)\n        .rept 8\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sd           t1, 8(a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        sd           t1, 8(a7)\n        .endr\n\n        ret\nendfunc\n\nfunc ff_v_8x8_rvi\n        ld           t0, (a3)\n        .rept 4\n        add          a7, a0, a1\n        sd           t0, (a0)\n        sh1add       a0, a1, a0\n        sd           t0, (a7)\n        .endr\n\n        ret\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvi.S", "license": "LGPL-2.1", "commit": "aa9dbd91cfde09af2372b45680c184d02dc454b2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aa9dbd91cfde09af2372b45680c184d02dc454b2/libavcodec/riscv/vp9_intra_rvi.S", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro avgdc size\n        vwredsumu.vs v16, v8, v16\n        vsetivli     zero, 1, e16, m1, ta, ma\n        vmv.x.s      t1, v16\n        addi         t1, t1, 1 << (\\size - 1)\n        srai         t1, t1, \\size\n.endm\n\n.macro getdc type size\n.ifc \\type,top\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n.ifc \\type,left\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        avgdc        \\size\n.else\n.ifc \\type,dc\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        vwredsumu.vs v16, v8, v16\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n        li           t1, \\type\n.endif\n.endif\n.endif\n.endm\n\n.macro dc_e32 type size n restore\n.ifc \\size,32\n        li           t0, 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.else\n        vsetivli     zero, 16, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:2", "text": ".else\n.ifc \\type,dc\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        vwredsumu.vs v16, v8, v16\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n        li           t1, \\type\n.endif\n.endif\n.endif\n.endm\n\n.macro dc_e32 type size n restore\n.ifc \\size,32\n        li           t0, 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.else\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        getdc        \\type \\n\n\n.if \\restore == 1 && \\size == 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.elseif \\restore == 1 && \\size == 16\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        vmv.v.x      v0, t1\n\n        .rept \\size\n        vse8.v       v0, (a0)\n        add          a0, a0, a1\n        .endr\n\n        ret\n.endm\n\n.macro dc_e64 type size n restore\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n        lpad    0\n.if \\size == 8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:3", "text": "getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n        lpad    0\n.if \\size == 8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm\n\nfunc_dc dc_127   32  127  0  0  zve32x\nfunc_dc dc_127   16  127  0  0  zve32x\nfunc_dc dc_127   8   127  0  0  zve64x\nfunc_dc dc_128   32  128  0  0  zve32x\nfunc_dc dc_128   16  128  0  0  zve32x\nfunc_dc dc_128   8   128  0  0  zve64x\nfunc_dc dc_129   32  129  0  0  zve32x\nfunc_dc dc_129   16  129  0  0  zve32x\nfunc_dc dc_129   8   129  0  0  zve64x\nfunc_dc dc       32  dc   6  1  zve32x\nfunc_dc dc       16  dc   5  1  zve32x\nfunc_dc dc       8   dc   4  0  zve64x\nfunc_dc dc_left  32  left 5  1  zve32x\nfunc_dc dc_left  16  left 4  1  zve32x\nfunc_dc dc_left  8   left 3  0  zve64x\nfunc_dc dc_top   32  top  5  1  zve32x\nfunc_dc dc_top   16  top  4  1  zve32x\nfunc_dc dc_top   8   top  3  0  zve64x\n\nfunc ff_h_32x32_rvv, zve32x\n        lpad    0\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:4", "text": "func ff_h_32x32_rvv, zve32x\n        lpad    0\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_h_16x16_rvv, zve32x\n        lpad    0\n        addi         a2, a2, 15\n        vsetivli     zero, 16, e8, m1, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v23, (a0)\n\n        ret\nendfunc\n\nfunc ff_h_8x8_rvv, zve32x\n        lpad    0\n        addi         a2, a2, 7\n        vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:5", "text": "func ff_h_8x8_rvv, zve32x\n        lpad    0\n        addi         a2, a2, 7\n        vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc\n\n.macro tm_sum4 dst1, dst2, dst3, dst4, top, n1\n        lbu          t1, \\n1(a2)\n        lbu          t2, (\\n1-1)(a2)\n        lbu          t3, (\\n1-2)(a2)\n        lbu          t4, (\\n1-3)(a2)\n        sub          t1, t1, a4\n        sub          t2, t2, a4\n        sub          t3, t3, a4\n        sub          t4, t4, a4\n        vadd.vx      \\dst1, \\top, t1\n        vadd.vx      \\dst2, \\top, t2\n        vadd.vx      \\dst3, \\top, t3\n        vadd.vx      \\dst4, \\top, t4\n.endm\n\nfunc ff_tm_32x32_rvv, zve32x\n        lpad    0\n        lbu          a4, -1(a3)\n        li           t5, 32\n\n        .irp offset, 31, 23, 15, 7\n        vsetvli      zero, t5, e16, m4, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n\n        tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:6", "text": ".irp offset, 31, 23, 15, 7\n        vsetvli      zero, t5, e16, m4, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n\n        tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vle8.v        v8, (a3)\n        vzext.vf2     v30, v8\n        lbu           a4, -1(a3)\n\n        tm_sum4       v0, v2, v4, v6, v30, 15\n        tm_sum4       v8, v10, v12, v14, v30, 11\n        tm_sum4       v16, v18, v20, v22, v30, 7\n        tm_sum4       v24, v26, v28, v30, v30, 3\n\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m1, ta, ma\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v30, v30, 0\n        vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        lpad    0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:7", "text": "vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v30, v30, 0\n        vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        lpad    0\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3\n\n        .irp n, 16, 17, 18, 19, 20, 21, 22, 23\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf2, ta, ma\n        .irp n, 16, 17, 18, 19, 20, 21, 22\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v23, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_4x4_rvv, zve32x\n        lpad    0\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 3\n\n        .irp n, 16, 17, 18, 19\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        .irp n, 16, 17, 18\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v19, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:8", "text": "vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 3\n\n        .irp n, 16, 17, 18, 19\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        .irp n, 16, 17, 18\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v19, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 281, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro avgdc size\n        vwredsumu.vs v16, v8, v16\n        vsetivli     zero, 1, e16, m1, ta, ma\n        vmv.x.s      t1, v16\n        addi         t1, t1, 1 << (\\size - 1)\n        srai         t1, t1, \\size\n.endm\n\n.macro getdc type size\n.ifc \\type,top\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n.ifc \\type,left\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        avgdc        \\size\n.else\n.ifc \\type,dc\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        vwredsumu.vs v16, v8, v16\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n        li           t1, \\type\n.endif\n.endif\n.endif\n.endm\n\n.macro dc_e32 type size n restore\n.ifc \\size,32\n        li           t0, 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.else\n        vsetivli     zero, 16, e8, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:2", "text": ".else\n.ifc \\type,dc\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        vwredsumu.vs v16, v8, v16\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n        li           t1, \\type\n.endif\n.endif\n.endif\n.endm\n\n.macro dc_e32 type size n restore\n.ifc \\size,32\n        li           t0, 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.else\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        getdc        \\type \\n\n\n.if \\restore == 1 && \\size == 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.elseif \\restore == 1 && \\size == 16\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        vmv.v.x      v0, t1\n\n        .rept \\size\n        vse8.v       v0, (a0)\n        add          a0, a0, a1\n        .endr\n\n        ret\n.endm\n\n.macro dc_e64 type size n restore\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n.if \\size == 8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:3", "text": "getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n.if \\size == 8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm\n\nfunc_dc dc_127   32  127  0  0  zve32x\nfunc_dc dc_127   16  127  0  0  zve32x\nfunc_dc dc_127   8   127  0  0  zve64x\nfunc_dc dc_128   32  128  0  0  zve32x\nfunc_dc dc_128   16  128  0  0  zve32x\nfunc_dc dc_128   8   128  0  0  zve64x\nfunc_dc dc_129   32  129  0  0  zve32x\nfunc_dc dc_129   16  129  0  0  zve32x\nfunc_dc dc_129   8   129  0  0  zve64x\nfunc_dc dc       32  dc   6  1  zve32x\nfunc_dc dc       16  dc   5  1  zve32x\nfunc_dc dc       8   dc   4  0  zve64x\nfunc_dc dc_left  32  left 5  1  zve32x\nfunc_dc dc_left  16  left 4  1  zve32x\nfunc_dc dc_left  8   left 3  0  zve64x\nfunc_dc dc_top   32  top  5  1  zve32x\nfunc_dc dc_top   16  top  4  1  zve32x\nfunc_dc dc_top   8   top  3  0  zve64x\n\nfunc ff_h_32x32_rvv, zve32x\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:4", "text": "func ff_h_32x32_rvv, zve32x\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_h_16x16_rvv, zve32x\n        addi         a2, a2, 15\n        vsetivli     zero, 16, e8, m1, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v23, (a0)\n\n        ret\nendfunc\n\nfunc ff_h_8x8_rvv, zve32x\n        addi         a2, a2, 7\n        vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc\n\n.macro tm_sum4 dst1, dst2, dst3, dst4, top, n1\n        lbu          t1, \\n1(a2)\n        lbu          t2, (\\n1-1)(a2)\n        lbu          t3, (\\n1-2)(a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:5", "text": "vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc\n\n.macro tm_sum4 dst1, dst2, dst3, dst4, top, n1\n        lbu          t1, \\n1(a2)\n        lbu          t2, (\\n1-1)(a2)\n        lbu          t3, (\\n1-2)(a2)\n        lbu          t4, (\\n1-3)(a2)\n        sub          t1, t1, a4\n        sub          t2, t2, a4\n        sub          t3, t3, a4\n        sub          t4, t4, a4\n        vadd.vx      \\dst1, \\top, t1\n        vadd.vx      \\dst2, \\top, t2\n        vadd.vx      \\dst3, \\top, t3\n        vadd.vx      \\dst4, \\top, t4\n.endm\n\nfunc ff_tm_32x32_rvv, zve32x\n        lbu          a4, -1(a3)\n        li           t5, 32\n\n        .irp offset, 31, 23, 15, 7\n        vsetvli      zero, t5, e16, m4, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n\n        tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:6", "text": "tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vle8.v        v8, (a3)\n        vzext.vf2     v30, v8\n        lbu           a4, -1(a3)\n\n        tm_sum4       v0, v2, v4, v6, v30, 15\n        tm_sum4       v8, v10, v12, v14, v30, 11\n        tm_sum4       v16, v18, v20, v22, v30, 7\n        tm_sum4       v24, v26, v28, v30, v30, 3\n\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m1, ta, ma\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v30, v30, 0\n        vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3\n\n        .irp n, 16, 17, 18, 19, 20, 21, 22, 23\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf2, ta, ma\n        .irp n, 16, 17, 18, 19, 20, 21, 22", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:7", "text": "vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3\n\n        .irp n, 16, 17, 18, 19, 20, 21, 22, 23\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf2, ta, ma\n        .irp n, 16, 17, 18, 19, 20, 21, 22\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v23, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_4x4_rvv, zve32x\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 3\n\n        .irp n, 16, 17, 18, 19\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        .irp n, 16, 17, 18\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v19, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 241, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:8", "text": ".endr\n\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        .irp n, 16, 17, 18\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v19, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "259c639137826ea7d59361c4d49e40a1a6155fb7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/259c639137826ea7d59361c4d49e40a1a6155fb7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 281, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:5", "text": "vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n, 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc\n\n.macro tm_sum4 dst1, dst2, dst3, dst4, top, n1\n        lbu          t1, \\n1(a2)\n        lbu          t2, (\\n1-1)(a2)\n        lbu          t3, (\\n1-2)(a2)\n        lbu          t4, (\\n1-3)(a2)\n        sub          t1, t1, a4\n        sub          t2, t2, a4\n        sub          t3, t3, a4\n        sub          t4, t4, a4\n        vadd.vx      \\dst1, \\top, t1\n        vadd.vx      \\dst2, \\top, t2\n        vadd.vx      \\dst3, \\top, t3\n        vadd.vx      \\dst4, \\top, t4\n.endm\n\nfunc ff_tm_32x32_rvv, zve32x\n        lbu          a4, -1(a3)\n        li           t5, 32\n\n        .irp offset, 31, 23, 15, 7\n        vsetvli      zero, t5, e16, m4, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n\n        tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "8cea66a73c52572f4ac6c552f654e44e8ba55849", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8cea66a73c52572f4ac6c552f654e44e8ba55849/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:6", "text": "tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n, 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vle8.v        v8, (a3)\n        vzext.vf2     v30, v8\n        lbu           a4, -1(a3)\n\n        tm_sum4       v0, v2, v4, v6, v30, 15\n        tm_sum4       v8, v10, v12, v14, v30, 11\n        tm_sum4       v16, v18, v20, v22, v30, 7\n        tm_sum4       v24, v26, v28, v30, v30, 3\n\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m1, ta, ma\n        .irp n, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v30, v30, 0\n        vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3\n\n        .irp n, 16, 17, 18, 19, 20, 21, 22, 23\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf2, ta, ma\n        .irp n, 16, 17, 18, 19, 20, 21, 22", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "8cea66a73c52572f4ac6c552f654e44e8ba55849", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8cea66a73c52572f4ac6c552f654e44e8ba55849/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:3", "text": "getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n.if \\size == 8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm\n\nfunc_dc dc_127   32  127  0  0  zve32x\nfunc_dc dc_127   16  127  0  0  zve32x\nfunc_dc dc_127   8   127  0  0  zve64x\nfunc_dc dc_128   32  128  0  0  zve32x\nfunc_dc dc_128   16  128  0  0  zve32x\nfunc_dc dc_128   8   128  0  0  zve64x\nfunc_dc dc_129   32  129  0  0  zve32x\nfunc_dc dc_129   16  129  0  0  zve32x\nfunc_dc dc_129   8   129  0  0  zve64x\nfunc_dc dc       32  dc   6  1  zve32x\nfunc_dc dc       16  dc   5  1  zve32x\nfunc_dc dc       8   dc   4  0  zve64x\nfunc_dc dc_left  32  left 5  1  zve32x\nfunc_dc dc_left  16  left 4  1  zve32x\nfunc_dc dc_left  8   left 3  0  zve64x\nfunc_dc dc_top   32  top  5  1  zve32x\nfunc_dc dc_top   16  top  4  1  zve32x\nfunc_dc dc_top   8   top  3  0  zve64x\n\nfunc ff_h_32x32_rvv, zve32x\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "d521b7280c2ac0b990e53abf27c40bcde9540202", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d521b7280c2ac0b990e53abf27c40bcde9540202/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:4", "text": "func ff_h_32x32_rvv, zve32x\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_h_16x16_rvv, zve32x\n        addi         a2, a2, 15\n        vsetivli     zero, 16, e8, m1, ta, ma\n\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v23, (a0)\n\n        ret\nendfunc\n\nfunc ff_h_8x8_rvv, zve32x\n        addi         a2, a2, 7\n        vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc\n\n.macro tm_sum4 dst1, dst2, dst3, dst4, top, n1\n        lbu          t1, \\n1(a2)\n        lbu          t2, (\\n1-1)(a2)\n        lbu          t3, (\\n1-2)(a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "d521b7280c2ac0b990e53abf27c40bcde9540202", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d521b7280c2ac0b990e53abf27c40bcde9540202/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:5", "text": "vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc\n\n.macro tm_sum4 dst1, dst2, dst3, dst4, top, n1\n        lbu          t1, \\n1(a2)\n        lbu          t2, (\\n1-1)(a2)\n        lbu          t3, (\\n1-2)(a2)\n        lbu          t4, (\\n1-3)(a2)\n        sub          t1, t1, a4\n        sub          t2, t2, a4\n        sub          t3, t3, a4\n        sub          t4, t4, a4\n        vadd.vx      \\dst1, \\top, t1\n        vadd.vx      \\dst2, \\top, t2\n        vadd.vx      \\dst3, \\top, t3\n        vadd.vx      \\dst4, \\top, t4\n.endm\n\nfunc ff_tm_32x32_rvv, zve32x\n        lbu          a4, -1(a3)\n        li           t5, 32\n\n        .irp offset 31, 23, 15, 7\n        vsetvli      zero, t5, e16, m4, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n\n        tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "d521b7280c2ac0b990e53abf27c40bcde9540202", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d521b7280c2ac0b990e53abf27c40bcde9540202/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:6", "text": "tm_sum4      v0, v4, v8, v12, v28, \\offset\n        tm_sum4      v16, v20, v24, v28, v28, (\\offset-4)\n\n        .irp n 0, 4, 8, 12, 16, 20, 24, 28\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m2, ta, ma\n        .irp n 0, 4, 8, 12, 16, 20, 24, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_tm_16x16_rvv, zve32x\n        vsetivli      zero, 16, e16, m2, ta, ma\n        vle8.v        v8, (a3)\n        vzext.vf2     v30, v8\n        lbu           a4, -1(a3)\n\n        tm_sum4       v0, v2, v4, v6, v30, 15\n        tm_sum4       v8, v10, v12, v14, v30, 11\n        tm_sum4       v16, v18, v20, v22, v30, 7\n        tm_sum4       v24, v26, v28, v30, v30, 3\n\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, m1, ta, ma\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v30, v30, 0\n        vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3\n\n        .irp n 16, 17, 18, 19, 20, 21, 22, 23\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf2, ta, ma\n        .irp n 16, 17, 18, 19, 20, 21, 22", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "d521b7280c2ac0b990e53abf27c40bcde9540202", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d521b7280c2ac0b990e53abf27c40bcde9540202/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:7", "text": "vse8.v       v30, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_8x8_rvv, zve32x\n        vsetivli     zero, 8, e16, m1, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 7\n        tm_sum4      v20, v21, v22, v23, v28, 3\n\n        .irp n 16, 17, 18, 19, 20, 21, 22, 23\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf2, ta, ma\n        .irp n 16, 17, 18, 19, 20, 21, 22\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v23, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc\n\nfunc ff_tm_4x4_rvv, zve32x\n        vsetivli     zero, 4, e16, mf2, ta, ma\n        vle8.v       v8, (a3)\n        vzext.vf2    v28, v8\n        lbu          a4, -1(a3)\n\n        tm_sum4      v16, v17, v18, v19, v28, 3\n\n        .irp n 16, 17, 18, 19\n        vmax.vx      v\\n, v\\n, zero\n        .endr\n\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        .irp n 16, 17, 18\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v19, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "d521b7280c2ac0b990e53abf27c40bcde9540202", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d521b7280c2ac0b990e53abf27c40bcde9540202/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 241, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:8", "text": ".endr\n\n        vsetvli      zero, zero, e8, mf4, ta, ma\n        .irp n 16, 17, 18\n        vnclipu.wi   v\\n, v\\n, 0\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vnclipu.wi   v24, v19, 0\n        vse8.v       v24, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "d521b7280c2ac0b990e53abf27c40bcde9540202", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d521b7280c2ac0b990e53abf27c40bcde9540202/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 281, "line_end": 293}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:4", "text": "func ff_h_32x32_rvv, zve32x\n        li           t0, 32\n        addi         a2, a2, 31\n        vsetvli      zero, t0, e8, m2, ta, ma\n\n        .rept 2\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        .endr\n\n        ret\nendfunc\n\nfunc ff_h_16x16_rvv, zve32x\n        addi         a2, a2, 15\n        vsetivli     zero, 16, e8, m1, ta, ma\n\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v23, (a0)\n\n        ret\nendfunc\n\nfunc ff_h_8x8_rvv, zve32x\n        addi         a2, a2, 7\n        vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "0cc8661499435a7d5258baaf1e0274ed888e48c7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0cc8661499435a7d5258baaf1e0274ed888e48c7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 121, "line_end": 175}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:5", "text": "vsetivli     zero, 8, e8, mf2, ta, ma\n\n        .irp n 8, 9, 10, 11, 12, 13, 14, 15\n        lbu          t1, (a2)\n        addi         a2, a2, -1\n        vmv.v.x      v\\n, t1\n        .endr\n        .irp n 8, 9, 10, 11, 12, 13, 14\n        vse8.v       v\\n, (a0)\n        add          a0, a0, a1\n        .endr\n        vse8.v       v15, (a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "0cc8661499435a7d5258baaf1e0274ed888e48c7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0cc8661499435a7d5258baaf1e0274ed888e48c7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 161, "line_end": 175}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:3", "text": "getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n.if \\size == 8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm\n\nfunc_dc dc_127   32  127  0  0  zve32x\nfunc_dc dc_127   16  127  0  0  zve32x\nfunc_dc dc_127   8   127  0  0  zve64x\nfunc_dc dc_128   32  128  0  0  zve32x\nfunc_dc dc_128   16  128  0  0  zve32x\nfunc_dc dc_128   8   128  0  0  zve64x\nfunc_dc dc_129   32  129  0  0  zve32x\nfunc_dc dc_129   16  129  0  0  zve32x\nfunc_dc dc_129   8   129  0  0  zve64x\nfunc_dc dc       32  dc   6  1  zve32x\nfunc_dc dc       16  dc   5  1  zve32x\nfunc_dc dc       8   dc   4  0  zve64x\nfunc_dc dc_left  32  left 5  1  zve32x\nfunc_dc dc_left  16  left 4  1  zve32x\nfunc_dc dc_left  8   left 3  0  zve64x\nfunc_dc dc_top   32  top  5  1  zve32x\nfunc_dc dc_top   16  top  4  1  zve32x\nfunc_dc dc_top   8   top  3  0  zve64x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "f8715d0300db4280fc86f1fbc8fbaafa036ff0b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f8715d0300db4280fc86f1fbc8fbaafa036ff0b7/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro avgdc size\n        vwredsumu.vs v16, v8, v16\n        vsetivli     zero, 1, e16, m1, ta, ma\n        vmv.x.s      t1, v16\n        addi         t1, t1, 1 << (\\size - 1)\n        srai         t1, t1, \\size\n.endm\n\n.macro getdc type size\n.ifc \\type,top\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.elseif \\type == left\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        avgdc        \\size\n.elseif \\type == dc\n        vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        vwredsumu.vs v16, v8, v16\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n        li           t1, \\type\n.endif\n.endm\n\n.macro dc_e32 type size n restore\n.ifc \\size,32\n        li           t0, 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.else\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        getdc        \\type \\n\n\n.if \\restore == 1 && \\size == 32", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "c3a96f97f8fda0b16b3c3f83338e98523233b24f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3a96f97f8fda0b16b3c3f83338e98523233b24f/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:2", "text": "vmv.v.x      v16, zero\n        vle8.v       v8, (a2)\n        vwredsumu.vs v16, v8, v16\n        vle8.v       v8, (a3)\n        avgdc        \\size\n.else\n        li           t1, \\type\n.endif\n.endm\n\n.macro dc_e32 type size n restore\n.ifc \\size,32\n        li           t0, 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.else\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        getdc        \\type \\n\n\n.if \\restore == 1 && \\size == 32\n        vsetvli      zero, t0, e8, m2, ta, ma\n.elseif \\restore == 1 && \\size == 16\n        vsetivli     zero, 16, e8, m1, ta, ma\n.endif\n        vmv.v.x      v0, t1\n\n        .rept \\size\n        vse8.v       v0, (a0)\n        add          a0, a0, a1\n        .endr\n\n        ret\n.endm\n\n.macro dc_e64 type size n restore\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        getdc        \\type \\n\n\n        li           t0, 64\n        vsetvli      zero, t0, e8, m4, ta, ma\n        vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n.ifc \\size,8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm\n\nfunc_dc dc_127   32  127  0  0  zve32x\nfunc_dc dc_127   16  127  0  0  zve32x\nfunc_dc dc_127   8   127  0  0  zve64x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "c3a96f97f8fda0b16b3c3f83338e98523233b24f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3a96f97f8fda0b16b3c3f83338e98523233b24f/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_intra_rvv.S:3", "text": "vmv.v.x      v0, t1\n        vsetivli     zero, 8, e8, mf2, ta, ma\n        vsse64.v     v0, (a0), a1\n\n        ret\n.endm\n\n.macro func_dc name size type n restore ext\nfunc ff_\\()\\name\\()_\\()\\size\\()x\\size\\()_rvv, \\ext\n.ifc \\size,8\n        dc_e64 \\type \\size \\n \\restore\n.else\n        dc_e32 \\type \\size \\n \\restore\n.endif\nendfunc\n.endm\n\nfunc_dc dc_127   32  127  0  0  zve32x\nfunc_dc dc_127   16  127  0  0  zve32x\nfunc_dc dc_127   8   127  0  0  zve64x\nfunc_dc dc_128   32  128  0  0  zve32x\nfunc_dc dc_128   16  128  0  0  zve32x\nfunc_dc dc_128   8   128  0  0  zve64x\nfunc_dc dc_129   32  129  0  0  zve32x\nfunc_dc dc_129   16  129  0  0  zve32x\nfunc_dc dc_129   8   129  0  0  zve64x\nfunc_dc dc       32  dc   6  1  zve32x\nfunc_dc dc       16  dc   5  1  zve32x\nfunc_dc dc       8   dc   4  0  zve64x\nfunc_dc dc_left  32  left 5  1  zve32x\nfunc_dc dc_left  16  left 4  1  zve32x\nfunc_dc dc_left  8   left 3  0  zve64x\nfunc_dc dc_top   32  top  5  1  zve32x\nfunc_dc dc_top   16  top  4  1  zve32x\nfunc_dc dc_top   8   top  3  0  zve64x", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_intra_rvv.S", "license": "LGPL-2.1", "commit": "c3a96f97f8fda0b16b3c3f83338e98523233b24f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3a96f97f8fda0b16b3c3f83338e98523233b24f/libavcodec/riscv/vp9_intra_rvv.S", "line_start": 81, "line_end": 115}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_copy64_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        ld            t4, 32(a2)\n        ld            t5, 40(a2)\n        ld            t6, 48(a2)\n        ld            a7, 56(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        sd            t2, 16(a0)\n        sd            t3, 24(a0)\n        sd            t4, 32(a0)\n        sd            t5, 40(a0)\n        sd            t6, 48(a0)\n        sd            a7, 56(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy32_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:2", "text": "sd            t5, 40(a0)\n        sd            t6, 48(a0)\n        sd            a7, 56(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy32_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        sd            t2, 16(a0)\n        sd            t3, 24(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy16_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy8_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_copy4_rvi\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:3", "text": "ret\nendfunc\n\nfunc ff_copy8_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_copy4_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 81, "line_end": 110}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_copy64_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        ld            t4, 32(a2)\n        ld            t5, 40(a2)\n        ld            t6, 48(a2)\n        ld            a7, 56(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        sd            t2, 16(a0)\n        sd            t3, 24(a0)\n        sd            t4, 32(a0)\n        sd            t5, 40(a0)\n        sd            t6, 48(a0)\n        sd            a7, 56(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy32_rvi\n        lpad    0\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n#if __riscv_xlen >= 64\nfunc ff_copy64_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        ld            t4, 32(a2)\n        ld            t5, 40(a2)\n        ld            t6, 48(a2)\n        ld            a7, 56(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        sd            t2, 16(a0)\n        sd            t3, 24(a0)\n        sd            t4, 32(a0)\n        sd            t5, 40(a0)\n        sd            t6, 48(a0)\n        sd            a7, 56(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy32_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        sd            t2, 16(a0)\n        sd            t3, 24(a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "b82d9f55d121e6172e268189195994cbb15de85b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b82d9f55d121e6172e268189195994cbb15de85b/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:2", "text": "sd            t6, 48(a0)\n        sd            a7, 56(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy32_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        ld            t2, 16(a2)\n        ld            t3, 24(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        sd            t2, 16(a0)\n        sd            t3, 24(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy16_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        ld            t1, 8(a2)\n        sd            t0, (a0)\n        sd            t1, 8(a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n\nfunc ff_copy8_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_copy4_rvi\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "b82d9f55d121e6172e268189195994cbb15de85b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b82d9f55d121e6172e268189195994cbb15de85b/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvi.S:3", "text": "func ff_copy8_rvi\n1:\n        addi          a4, a4, -1\n        ld            t0, (a2)\n        sd            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc\n#endif\n\nfunc ff_copy4_rvi\n1:\n        addi          a4, a4, -1\n        lw            t0, (a2)\n        sw            t0, (a0)\n        add           a2, a2, a3\n        add           a0, a0, a1\n        bnez          a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvi.S", "license": "LGPL-2.1", "commit": "b82d9f55d121e6172e268189195994cbb15de85b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b82d9f55d121e6172e268189195994cbb15de85b/libavcodec/riscv/vp9_mc_rvi.S", "line_start": 81, "line_end": 105}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len an maxlen mn=m4\n.if \\len == 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len == 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len == 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len == 32\n        li              \\an, \\len\n        vsetvli         zero, \\an, e8, m2, ta, ma\n.elseif \\len == 64\n        li              \\an, \\maxlen\n        vsetvli         zero, \\an, e8, \\mn, ta, ma\n.endif\n.endm\n\n.macro copy_avg len\nfunc ff_vp9_avg\\len\\()_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetvlstatic8   \\len, t0, 64\n1:\n        vle8.v          v8, (a2)\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n        addi            a4, a4, -1\n        vse8.v          v8, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\nendfunc\n.endm\n\n.macro bilin_load dst, mn, type\n.ifc \\type,v\n        add             t4, a2, a3\n.else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:2", "text": "lpad    0\n        csrwi           vxrm, 0\n        vsetvlstatic8   \\len, t0, 64\n1:\n        vle8.v          v8, (a2)\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n        addi            a4, a4, -1\n        vse8.v          v8, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\nendfunc\n.endm\n\n.macro bilin_load dst, mn, type\n.ifc \\type,v\n        add             t4, a2, a3\n.else\n        addi            t4, a2, 1\n.endif\n        vle8.v          v4, (a2)\n        vle8.v          v0, (t4)\n        vwmulu.vx       v16, v0, \\mn\n        vwmaccsu.vx     v16, t1, v4\n        vwadd.wx        v16, v16, t3\n        vnsra.wi        v16, v16, 4\n        vadd.vv         \\dst, v16, v4\n        add             a2, a2, a3\n.endm\n\n.macro bilin_h_v op, type, mn\nfunc ff_\\op\\()_vp9_bilin_64\\type\\()_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   64, t0, 64\n.ifc \\op,avg\n        csrwi           vxrm, 0\n.endif\n        li              t3, 8\n        neg             t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\mn, \\type\n.ifc \\op,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v0, v0, v16\n.endif\n        vse8.v          v0, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\n\n.Lbilin_\\type\\op:\n.ifc \\op,avg\n        csrwi           vxrm, 0\n.endif\n        li              t4, 8\n        neg             t1, \\mn\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:3", "text": "neg             t1, \\mn\n1:\n        addi            a4, a4, -1\n        bilin_load      v0, \\mn, \\type\n.ifc \\op,avg\n        vle8.v          v16, (a0)\n        vaaddu.vv       v0, v0, v16\n.endif\n        vse8.v          v0, (a0)\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\n\n.Lbilin_\\type\\op:\n.ifc \\op,avg\n        csrwi           vxrm, 0\n.endif\n        li              t4, 8\n        neg             t1, \\mn\n1:\n        addi            a4, a4, -2\n        add             t6, a0, a1\n        add             t0, a2, a3\n        vle8.v          v8, (a2)\n        vle8.v          v4, (t0)\n.ifc \\type,v\n        add             t2, t0, a3\n        vwmulu.vx       v16, v4, \\mn\n.else\n        addi            t3, a2, 1\n        addi            t2, t0, 1\n        vle8.v          v0, (t3)\n        vwmulu.vx       v16, v0, \\mn\n.endif\n        vle8.v          v12, (t2)\n        vwmulu.vx       v20, v12, \\mn\n        vwmaccsu.vx     v16, t1, v8\n        vwmaccsu.vx     v20, t1, v4\n        vwadd.wx        v16, v16, t4\n        vwadd.wx        v20, v20, t4\n        vnsra.wi        v16, v16, 4\n        vnsra.wi        v20, v20, 4\n        vadd.vv         v0, v16, v8\n        vadd.vv         v12, v20, v4\n.ifc \\op,avg\n        vle8.v          v16, (a0)\n        vle8.v          v20, (t6)\n        vaaddu.vv       v0, v0, v16\n        vaaddu.vv       v12, v12, v20\n.endif\n        vse8.v          v0, (a0)\n        vse8.v          v12, (t6)\n        add             a2, t0, a3\n        add             a0, t6, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:4", "text": "vnsra.wi        v16, v16, 4\n        vnsra.wi        v20, v20, 4\n        vadd.vv         v0, v16, v8\n        vadd.vv         v12, v20, v4\n.ifc \\op,avg\n        vle8.v          v16, (a0)\n        vle8.v          v20, (t6)\n        vaaddu.vv       v0, v0, v16\n        vaaddu.vv       v12, v12, v20\n.endif\n        vse8.v          v0, (a0)\n        vse8.v          v12, (t6)\n        add             a2, t0, a3\n        add             a0, t6, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.macro bilin_hv op\nfunc ff_\\op\\()_vp9_bilin_64hv_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   64, t0, 64\n.Lbilin_hv\\op:\n.ifc \\op,avg\n        csrwi           vxrm, 0\n.endif\n        neg             t1, a5\n        neg             t2, a6\n        li              t3, 8\n        bilin_load      v24, a5, h\n1:\n        addi            a4, a4, -2\n        bilin_load      v8, a5, h\n        vwmulu.vx       v16, v8, a6\n        vwmaccsu.vx     v16, t2, v24\n        vwadd.wx        v16, v16, t3\n        vnsra.wi        v16, v16, 4\n        vadd.vv         v12, v16, v24\n        add             t5, a0, a1\n        bilin_load      v24, a5, h\n        vwmulu.vx       v16, v24, a6\n        vwmaccsu.vx     v16, t2, v8\n        vwadd.wx        v16, v16, t3\n        vnsra.wi        v16, v16, 4\n        vadd.vv         v0, v16, v8\n.ifc \\op,avg\n        vle8.v          v8, (a0)\n        vle8.v          v16, (t5)\n        vaaddu.vv       v12, v12, v8\n        vaaddu.vv       v0, v0, v16\n.endif\n        vse8.v          v12, (a0)\n        vse8.v          v0, (t5)\n        add             a0, t5, a1\n        bnez            a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:5", "text": "add             t5, a0, a1\n        bilin_load      v24, a5, h\n        vwmulu.vx       v16, v24, a6\n        vwmaccsu.vx     v16, t2, v8\n        vwadd.wx        v16, v16, t3\n        vnsra.wi        v16, v16, 4\n        vadd.vv         v0, v16, v8\n.ifc \\op,avg\n        vle8.v          v8, (a0)\n        vle8.v          v16, (t5)\n        vaaddu.vv       v12, v12, v8\n        vaaddu.vv       v0, v0, v16\n.endif\n        vse8.v          v12, (a0)\n        vse8.v          v0, (t5)\n        add             a0, t5, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len, 64, 32, 16, 8, 4\n        copy_avg \\len\n.endr\n\nbilin_h_v  put, h, a5\nbilin_h_v  avg, h, a5\nbilin_h_v  put, v, a6\nbilin_h_v  avg, v, a6\nbilin_hv   put\nbilin_hv   avg\n\n.macro func_bilin_h_v len, op, type\nfunc ff_\\op\\()_vp9_bilin_\\len\\()\\type\\()_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   \\len, t0, 64\n        j               .Lbilin_\\type\\()\\op\nendfunc\n.endm\n\n.irp len, 32, 16, 8, 4\n        .irp op, put, avg\n                .irp type, h, v, hv\n                        func_bilin_h_v \\len, \\op, \\type\n                .endr\n        .endr\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 161, "line_end": 208}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len an maxlen mn=m4\n.if \\len == 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len == 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len == 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len == 32\n        li              \\an, \\len\n        vsetvli         zero, \\an, e8, m2, ta, ma\n.elseif \\len == 64\n        li              \\an, \\maxlen\n        vsetvli         zero, \\an, e8, \\mn, ta, ma\n.endif\n.endm\n\n.macro copy_avg len\nfunc ff_vp9_avg\\len\\()_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetvlstatic8   \\len, t0, 64\n1:\n        vle8.v          v8, (a2)\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n        addi            a4, a4, -1\n        vse8.v          v8, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\nendfunc\n.endm\n\n.macro bilin_load dst, mn, type\n.ifc \\type,v\n        add             t4, a2, a3\n.else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "4e7b5ac48f37f8888166a9a9aaab909175235395", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4e7b5ac48f37f8888166a9a9aaab909175235395/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:4", "text": "vnsra.wi        v16, v16, 4\n        vnsra.wi        v20, v20, 4\n        vadd.vv         v0, v16, v8\n        vadd.vv         v12, v20, v4\n.ifc \\op,avg\n        vle8.v          v16, (a0)\n        vle8.v          v20, (t6)\n        vaaddu.vv       v0, v0, v16\n        vaaddu.vv       v12, v12, v20\n.endif\n        vse8.v          v0, (a0)\n        vse8.v          v12, (t6)\n        add             a2, t0, a3\n        add             a0, t6, a1\n        bnez            a4, 1b\n\n        ret\nendfunc\n.endm\n\n.irp len, 64, 32, 16, 8, 4\n        copy_avg \\len\n.endr\n\nbilin_h_v  put, h, a5\nbilin_h_v  avg, h, a5\nbilin_h_v  put, v, a6\nbilin_h_v  avg, v, a6\n\n.macro func_bilin_h_v len, op, type\nfunc ff_\\op\\()_vp9_bilin_\\len\\()\\type\\()_rvv, zve32x\n        lpad    0\n        vsetvlstatic8   \\len, t0, 64\n        j               .Lbilin_\\type\\()\\op\nendfunc\n.endm\n\n.irp len, 32, 16, 8, 4\n        .irp op, put, avg\n                .irp type, h, v\n                        func_bilin_h_v \\len, \\op, \\type\n                .endr\n        .endr\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "9edd2e723bd82392b19a5e315dfa335ca362d3cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9edd2e723bd82392b19a5e315dfa335ca362d3cf/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 121, "line_end": 164}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len an maxlen mn=m4\n.if \\len == 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len == 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len == 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len == 32\n        li              \\an, \\len\n        vsetvli         zero, \\an, e8, m2, ta, ma\n.elseif \\len == 64\n        li              \\an, \\maxlen\n        vsetvli         zero, \\an, e8, \\mn, ta, ma\n.endif\n.endm\n\n.macro copy_avg len\nfunc ff_vp9_avg\\len\\()_rvv, zve32x\n        lpad    0\n        csrwi           vxrm, 0\n        vsetvlstatic8   \\len, t0, 64\n1:\n        vle8.v          v8, (a2)\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n        addi            a4, a4, -1\n        vse8.v          v8, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\nendfunc\n.endm\n\n.irp len, 64, 32, 16, 8, 4\n        copy_avg \\len\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "f2c30fe15aef2ed009941959333773f40a2b273e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f2c30fe15aef2ed009941959333773f40a2b273e/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 1, "line_end": 59}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len an maxlen mn=m4\n.if \\len == 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len == 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len == 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len == 32\n        li              \\an, \\len\n        vsetvli         zero, \\an, e8, m2, ta, ma\n.elseif \\len == 64\n        li              \\an, \\maxlen\n        vsetvli         zero, \\an, e8, \\mn, ta, ma\n.endif\n.endm\n\n.macro copy_avg len\nfunc ff_vp9_avg\\len\\()_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetvlstatic8   \\len, t0, 64\n1:\n        vle8.v          v8, (a2)\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n        addi            a4, a4, -1\n        vse8.v          v8, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\nendfunc\n.endm\n\n.irp len, 64, 32, 16, 8, 4\n        copy_avg \\len\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "544acfa2c087e78f1295f1878b261bac0aa424a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/544acfa2c087e78f1295f1878b261bac0aa424a0/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 1, "line_end": 58}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vp9_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 len an maxlen mn=m4\n.if \\len == 4\n        vsetivli        zero, \\len, e8, mf4, ta, ma\n.elseif \\len == 8\n        vsetivli        zero, \\len, e8, mf2, ta, ma\n.elseif \\len == 16\n        vsetivli        zero, \\len, e8, m1, ta, ma\n.elseif \\len == 32\n        li              \\an, \\len\n        vsetvli         zero, \\an, e8, m2, ta, ma\n.elseif \\len == 64\n        li              \\an, \\maxlen\n        vsetvli         zero, \\an, e8, \\mn, ta, ma\n.endif\n.endm\n\n.macro copy_avg len\nfunc ff_avg\\len\\()_rvv, zve32x\n        csrwi           vxrm, 0\n        vsetvlstatic8   \\len t0 64\n1:\n        vle8.v          v8, (a2)\n        vle8.v          v16, (a0)\n        vaaddu.vv       v8, v8, v16\n        addi            a4, a4, -1\n        vse8.v          v8, (a0)\n        add             a2, a2, a3\n        add             a0, a0, a1\n        bnez            a4, 1b\n        ret\nendfunc\n.endm\n\n.irp len, 64, 32, 16, 8, 4\n        copy_avg \\len\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vp9_mc_rvv.S", "license": "LGPL-2.1", "commit": "0c1304ae11b0361ede055ee8ffc6e83529468c73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0c1304ae11b0361ede055ee8ffc6e83529468c73/libavcodec/riscv/vp9_mc_rvv.S", "line_start": 1, "line_end": 58}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/riscv/h26x/asm.S\"\n\n.macro avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w < 128\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        add               t2, a0, a1\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        addi              a5, a5, -2\n        vle16.v           v16, (t0)\n        vle16.v           v24, (t1)\n        vadd.vv           v8, v8, v0\n        vadd.vv           v24, v24, v16\n        vmax.vx           v8, v8, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v8, v8, 7\n        vnclipu.wi        v24, v24, 7\n        addi              a3, a3, 128*4\n        vse8.v            v8, (a0)\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t3, a3\n        mv                t4, a4\n1:\n        vsetvli           t0, a4, e16, m8, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        vadd.vv           v8, v8, v0\n        vmax.vx           v8, v8, zero\n        vsetvli           zero, zero, e8, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:2", "text": "vnclipu.wi        v8, v8, 7\n        vnclipu.wi        v24, v24, 7\n        addi              a3, a3, 128*4\n        vse8.v            v8, (a0)\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t3, a3\n        mv                t4, a4\n1:\n        vsetvli           t0, a4, e16, m8, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        vadd.vv           v8, v8, v0\n        vmax.vx           v8, v8, zero\n        vsetvli           zero, zero, e8, m4, ta, ma\n        vnclipu.wi        v8, v8, 7\n        vse8.v            v8, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t3, 128*2\n        mv                a4, t4\n.endif\n        bnez              a5, \\id\\w\\vlen\\()b\n        ret\n.endm\n\n.macro func_avg vlen\nfunc ff_vvc_avg_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        POW2_JMP_TABLE    1, \\vlen\n        csrwi             vxrm, 0\n        POW2_J            \\vlen, 1, a4\n        .irp w,2,4,8,16,32,64,128\n        avg               \\w, \\vlen, 1\n        .endr\nendfunc\n.endm\n\nfunc_avg 128\nfunc_avg 256\n\n#if (__riscv_xlen == 64)\n.macro w_avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w <= 32 || (\\w == 64 && \\vlen == 256)\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        addi              a5, a5, -2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:3", "text": "POW2_J            \\vlen, 1, a4\n        .irp w,2,4,8,16,32,64,128\n        avg               \\w, \\vlen, 1\n        .endr\nendfunc\n.endm\n\nfunc_avg 128\nfunc_avg 256\n\n#if (__riscv_xlen == 64)\n.macro w_avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w <= 32 || (\\w == 64 && \\vlen == 256)\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        addi              a5, a5, -2\n        vle16.v           v8, (t0)\n        vle16.v           v12, (t1)\n        vwmul.vx          v16, v0, a7\n        vwmul.vx          v24, v8, a7\n        vwmacc.vx         v16, t3, v4\n        vwmacc.vx         v24, t3, v12\n        vsetvlstatic32    \\w, \\vlen\n        add               t2, a0, a1\n        vadd.vx           v16, v16, t4\n        vadd.vx           v24, v24, t4\n        vsetvlstatic16    \\w, \\vlen\n        vnsrl.wx          v16, v16, t6\n        vnsrl.wx          v24, v24, t6\n        vmax.vx           v16, v16, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v16, v16, 0\n        vnclipu.wi        v24, v24, 0\n        vse8.v            v16, (a0)\n        addi              a3, a3, 128*4\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t5, a3\n        mv                a6, a4\n1:\n        vsetvli           t0, a4, e16, m4, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        vwmul.vx          v16, v0, a7\n        vwmacc.vx         v16, t3, v4\n        vsetvli           zero, zero, e32, m8, ta, ma\n        vadd.vx           v16, v16, t4\n        vsetvli           zero, zero, e16, m4, ta, ma\n        vnsrl.wx          v16, v16, t6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:4", "text": "addi              a3, a3, 128*4\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t5, a3\n        mv                a6, a4\n1:\n        vsetvli           t0, a4, e16, m4, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        vwmul.vx          v16, v0, a7\n        vwmacc.vx         v16, t3, v4\n        vsetvli           zero, zero, e32, m8, ta, ma\n        vadd.vx           v16, v16, t4\n        vsetvli           zero, zero, e16, m4, ta, ma\n        vnsrl.wx          v16, v16, t6\n        vmax.vx           v16, v16, zero\n        vsetvli           zero, zero, e8, m2, ta, ma\n        vnclipu.wi        v16, v16, 0\n        vse8.v            v16, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t5, 128*2\n        mv                a4, a6\n.endif\n        bnez              a5, \\id\\w\\vlen\\()b\n        ret\n.endm\n\n.macro func_w_avg vlen\nfunc ff_vvc_w_avg_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        POW2_JMP_TABLE    2, \\vlen\n        csrwi             vxrm, 0\n        addi              t6, a6, 7\n        ld                t3, (sp)\n        ld                t4, 8(sp)\n        addi              t4, t4, 1       // o0 + o1 + 1\n        addi              t5, t6, -1      // shift - 1\n        sll               t4, t4, t5\n        POW2_J            \\vlen, 2, a4\n        .irp w,2,4,8,16,32,64,128\n        w_avg             \\w, \\vlen, 2\n        .endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif\n\nfunc dmvr zve32x, zbb, zba", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:5", "text": "POW2_JMP_TABLE    2, \\vlen\n        csrwi             vxrm, 0\n        addi              t6, a6, 7\n        ld                t3, (sp)\n        ld                t4, 8(sp)\n        addi              t4, t4, 1       // o0 + o1 + 1\n        addi              t5, t6, -1      // shift - 1\n        sll               t4, t4, t5\n        POW2_J            \\vlen, 2, a4\n        .irp w,2,4,8,16,32,64,128\n        w_avg             \\w, \\vlen, 2\n        .endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif\n\nfunc dmvr zve32x, zbb, zba\n        lpad    0\n        li                t0, 4\n1:\n        add               t1, a1, a2\n        addi              t4, a0, 128*2\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t1)\n        addi              a3, a3, -2\n        vwmulu.vx         v16, v0, t0\n        vwmulu.vx         v20, v4, t0\n        vse16.v           v16, (a0)\n        vse16.v           v20, (t4)\n        sh1add            a1, a2, a1\n        add               a0, a0, 128*2*2\n        bnez              a3, 1b\n        ret\nendfunc\n\n.macro dmvr_h_v mn, type, w, vlen\nfunc dmvr_\\type\\vlen\\w, zve32x, zbb, zba\n        lla               t4, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t4, \\mn, t4\n        lbu               t5, (t4)\n        lbu               t6, 1(t4)\n1:\n        vsetvlstatic8     \\w, \\vlen\n.ifc \\type,h\n        addi              t0, a1, 1\n        addi              t1, a1, 2\n.else\n        add               t0, a1, a2\n        add               t1, t0, a2\n.endif\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t0)\n        vle8.v            v8, (t1)\n        addi              a3, a3, -2\n        addi              t2, a0, 128*2\n        vwmulu.vx         v12, v0, t5\n        vwmulu.vx         v24, v4, t5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:6", "text": "lla               t4, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t4, \\mn, t4\n        lbu               t5, (t4)\n        lbu               t6, 1(t4)\n1:\n        vsetvlstatic8     \\w, \\vlen\n.ifc \\type,h\n        addi              t0, a1, 1\n        addi              t1, a1, 2\n.else\n        add               t0, a1, a2\n        add               t1, t0, a2\n.endif\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t0)\n        vle8.v            v8, (t1)\n        addi              a3, a3, -2\n        addi              t2, a0, 128*2\n        vwmulu.vx         v12, v0, t5\n        vwmulu.vx         v24, v4, t5\n        vwmaccu.vx        v12, t6, v4\n        vwmaccu.vx        v24, t6, v8\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          v12, v12, 2\n        vssrl.vi          v24, v24, 2\n        vse16.v           v12, (a0)\n        vse16.v           v24, (t2)\n        add               a0, a0, 128*4\n        sh1add            a1, a2, a1\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro dmvr_load_h dst, filter0, filter1, w, vlen\n        vsetvlstatic8     \\w, \\vlen\n        addi              a6, a1, 1\n        vle8.v            \\dst, (a1)\n        vle8.v            v2, (a6)\n        vwmulu.vx         v4, \\dst, \\filter0\n        vwmaccu.vx        v4, \\filter1, v2\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          \\dst, v4, 2\n.endm\n\n.macro dmvr_hv w, vlen\nfunc dmvr_hv\\vlen\\w, zve32x, zbb, zba\n        lla               t0, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t1, a4, t0\n        sh1add            t2, a5, t0\n        lbu               t3, (t1)          // filter[mx][0]\n        lbu               t4, 1(t1)         // filter[mx][1]\n        lbu               t5, (t2)          // filter[my][0]\n        lbu               t6, 1(t2)         // filter[my][1]\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        add               a1, a1, a2\n1:\n        vmul.vx           v28, v12, t5\n        addi              a3, a3, -1\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:7", "text": "vwmaccu.vx        v4, \\filter1, v2\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          \\dst, v4, 2\n.endm\n\n.macro dmvr_hv w, vlen\nfunc dmvr_hv\\vlen\\w, zve32x, zbb, zba\n        lla               t0, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t1, a4, t0\n        sh1add            t2, a5, t0\n        lbu               t3, (t1)          // filter[mx][0]\n        lbu               t4, 1(t1)         // filter[mx][1]\n        lbu               t5, (t2)          // filter[my][0]\n        lbu               t6, 1(t2)         // filter[my][1]\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        add               a1, a1, a2\n1:\n        vmul.vx           v28, v12, t5\n        addi              a3, a3, -1\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        vmacc.vx          v28, t6, v12\n        vssrl.vi          v28, v28, 4\n        vse16.v           v28, (a0)\n        add               a1, a1, a2\n        addi              a0, a0, 128*2\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro func_dmvr vlen, name\nfunc ff_vvc_\\name\\()_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        li                t0, 20\n        beq               a6, t0, DMVR\\name\\vlen\\()20\n        .irp w,12,20\nDMVR\\name\\vlen\\w:\n        .ifc \\name, dmvr\n        vsetvlstatic8     \\w, \\vlen\n        j                 \\name\n        .else\n        csrwi             vxrm, 0\n        j                 \\name\\()\\vlen\\w\n        .endif\n        .endr\nendfunc\n.endm\n\n\n.irp vlen,256,128\n.irp w,12,20\ndmvr_h_v a4, h, \\w, \\vlen\ndmvr_h_v a5, v, \\w, \\vlen\ndmvr_hv \\w, \\vlen\n.endr\nfunc_dmvr \\vlen, dmvr\nfunc_dmvr \\vlen, dmvr_h\nfunc_dmvr \\vlen, dmvr_v\nfunc_dmvr \\vlen, dmvr_hv\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:8", "text": ".else\n        csrwi             vxrm, 0\n        j                 \\name\\()\\vlen\\w\n        .endif\n        .endr\nendfunc\n.endm\n\n\n.irp vlen,256,128\n.irp w,12,20\ndmvr_h_v a4, h, \\w, \\vlen\ndmvr_h_v a5, v, \\w, \\vlen\ndmvr_hv \\w, \\vlen\n.endr\nfunc_dmvr \\vlen, dmvr\nfunc_dmvr \\vlen, dmvr_h\nfunc_dmvr \\vlen, dmvr_v\nfunc_dmvr \\vlen, dmvr_hv\n.endr\n\nfunc_put_pixels 256, 128, vvc\nfunc_put_pixels 128, 128, vvc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 281, "line_end": 303}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:4", "text": "addi              a3, a3, 128*4\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t5, a3\n        mv                a6, a4\n1:\n        vsetvli           t0, a4, e16, m4, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        vwmul.vx          v16, v0, a7\n        vwmacc.vx         v16, t3, v4\n        vsetvli           zero, zero, e32, m8, ta, ma\n        vadd.vx           v16, v16, t4\n        vsetvli           zero, zero, e16, m4, ta, ma\n        vnsrl.wx          v16, v16, t6\n        vmax.vx           v16, v16, zero\n        vsetvli           zero, zero, e8, m2, ta, ma\n        vnclipu.wi        v16, v16, 0\n        vse8.v            v16, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t5, 128*2\n        mv                a4, a6\n.endif\n        bnez              a5, \\id\\w\\vlen\\()b\n        ret\n.endm\n\n.macro func_w_avg vlen\nfunc ff_vvc_w_avg_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        POW2_JMP_TABLE    2, \\vlen\n        csrwi             vxrm, 0\n        addi              t6, a6, 7\n        ld                t3, (sp)\n        ld                t4, 8(sp)\n        ld                t5, 16(sp)\n        addi              t4, t4, 1       // o0 + o1 + 1\n        add               t4, t4, t5\n        addi              t5, t6, -1      // shift - 1\n        sll               t4, t4, t5\n        POW2_J            \\vlen, 2, a4\n        .irp w,2,4,8,16,32,64,128\n        w_avg             \\w, \\vlen, 2\n        .endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:5", "text": "POW2_JMP_TABLE    2, \\vlen\n        csrwi             vxrm, 0\n        addi              t6, a6, 7\n        ld                t3, (sp)\n        ld                t4, 8(sp)\n        ld                t5, 16(sp)\n        addi              t4, t4, 1       // o0 + o1 + 1\n        add               t4, t4, t5\n        addi              t5, t6, -1      // shift - 1\n        sll               t4, t4, t5\n        POW2_J            \\vlen, 2, a4\n        .irp w,2,4,8,16,32,64,128\n        w_avg             \\w, \\vlen, 2\n        .endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif\n\nfunc dmvr zve32x, zbb, zba\n        lpad    0\n        li                t0, 4\n1:\n        add               t1, a1, a2\n        addi              t4, a0, 128*2\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t1)\n        addi              a3, a3, -2\n        vwmulu.vx         v16, v0, t0\n        vwmulu.vx         v20, v4, t0\n        vse16.v           v16, (a0)\n        vse16.v           v20, (t4)\n        sh1add            a1, a2, a1\n        add               a0, a0, 128*2*2\n        bnez              a3, 1b\n        ret\nendfunc\n\n.macro dmvr_h_v mn, type, w, vlen\nfunc dmvr_\\type\\vlen\\w, zve32x, zbb, zba\n        lla               t4, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t4, \\mn, t4\n        lbu               t5, (t4)\n        lbu               t6, 1(t4)\n1:\n        vsetvlstatic8     \\w, \\vlen\n.ifc \\type,h\n        addi              t0, a1, 1\n        addi              t1, a1, 2\n.else\n        add               t0, a1, a2\n        add               t1, t0, a2\n.endif\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t0)\n        vle8.v            v8, (t1)\n        addi              a3, a3, -2\n        addi              t2, a0, 128*2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:6", "text": ".macro dmvr_h_v mn, type, w, vlen\nfunc dmvr_\\type\\vlen\\w, zve32x, zbb, zba\n        lla               t4, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t4, \\mn, t4\n        lbu               t5, (t4)\n        lbu               t6, 1(t4)\n1:\n        vsetvlstatic8     \\w, \\vlen\n.ifc \\type,h\n        addi              t0, a1, 1\n        addi              t1, a1, 2\n.else\n        add               t0, a1, a2\n        add               t1, t0, a2\n.endif\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t0)\n        vle8.v            v8, (t1)\n        addi              a3, a3, -2\n        addi              t2, a0, 128*2\n        vwmulu.vx         v12, v0, t5\n        vwmulu.vx         v24, v4, t5\n        vwmaccu.vx        v12, t6, v4\n        vwmaccu.vx        v24, t6, v8\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          v12, v12, 2\n        vssrl.vi          v24, v24, 2\n        vse16.v           v12, (a0)\n        vse16.v           v24, (t2)\n        add               a0, a0, 128*4\n        sh1add            a1, a2, a1\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro dmvr_load_h dst, filter0, filter1, w, vlen\n        vsetvlstatic8     \\w, \\vlen\n        addi              a6, a1, 1\n        vle8.v            \\dst, (a1)\n        vle8.v            v2, (a6)\n        vwmulu.vx         v4, \\dst, \\filter0\n        vwmaccu.vx        v4, \\filter1, v2\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          \\dst, v4, 2\n.endm\n\n.macro dmvr_hv w, vlen\nfunc dmvr_hv\\vlen\\w, zve32x, zbb, zba\n        lla               t0, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t1, a4, t0\n        sh1add            t2, a5, t0\n        lbu               t3, (t1)          // filter[mx][0]\n        lbu               t4, 1(t1)         // filter[mx][1]\n        lbu               t5, (t2)          // filter[my][0]\n        lbu               t6, 1(t2)         // filter[my][1]\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        add               a1, a1, a2\n1:\n        vmul.vx           v28, v12, t5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:7", "text": "vle8.v            v2, (a6)\n        vwmulu.vx         v4, \\dst, \\filter0\n        vwmaccu.vx        v4, \\filter1, v2\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          \\dst, v4, 2\n.endm\n\n.macro dmvr_hv w, vlen\nfunc dmvr_hv\\vlen\\w, zve32x, zbb, zba\n        lla               t0, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t1, a4, t0\n        sh1add            t2, a5, t0\n        lbu               t3, (t1)          // filter[mx][0]\n        lbu               t4, 1(t1)         // filter[mx][1]\n        lbu               t5, (t2)          // filter[my][0]\n        lbu               t6, 1(t2)         // filter[my][1]\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        add               a1, a1, a2\n1:\n        vmul.vx           v28, v12, t5\n        addi              a3, a3, -1\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        vmacc.vx          v28, t6, v12\n        vssrl.vi          v28, v28, 4\n        vse16.v           v28, (a0)\n        add               a1, a1, a2\n        addi              a0, a0, 128*2\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro func_dmvr vlen, name\nfunc ff_vvc_\\name\\()_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        li                t0, 20\n        beq               a6, t0, DMVR\\name\\vlen\\()20\n        .irp w,12,20\nDMVR\\name\\vlen\\w:\n        .ifc \\name, dmvr\n        vsetvlstatic8     \\w, \\vlen\n        j                 \\name\n        .else\n        csrwi             vxrm, 0\n        j                 \\name\\()\\vlen\\w\n        .endif\n        .endr\nendfunc\n.endm\n\n\n.irp vlen,256,128\n.irp w,12,20\ndmvr_h_v a4, h, \\w, \\vlen\ndmvr_h_v a5, v, \\w, \\vlen\ndmvr_hv \\w, \\vlen\n.endr\nfunc_dmvr \\vlen, dmvr\nfunc_dmvr \\vlen, dmvr_h\nfunc_dmvr \\vlen, dmvr_v", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/mc_rvv.S:8", "text": "vsetvlstatic8     \\w, \\vlen\n        j                 \\name\n        .else\n        csrwi             vxrm, 0\n        j                 \\name\\()\\vlen\\w\n        .endif\n        .endr\nendfunc\n.endm\n\n\n.irp vlen,256,128\n.irp w,12,20\ndmvr_h_v a4, h, \\w, \\vlen\ndmvr_h_v a5, v, \\w, \\vlen\ndmvr_hv \\w, \\vlen\n.endr\nfunc_dmvr \\vlen, dmvr\nfunc_dmvr \\vlen, dmvr_h\nfunc_dmvr \\vlen, dmvr_v\nfunc_dmvr \\vlen, dmvr_hv\n.endr\n\nfunc_put_pixels 256, 128, vvc\nfunc_put_pixels 128, 128, vvc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/mc_rvv.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/riscv/vvc/mc_rvv.S", "line_start": 281, "line_end": 305}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/sad_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/riscv/h26x/asm.S\"\n\n.macro func_sad vlen\nfunc ff_vvc_sad_rvv_\\vlen, zve32x, zbb, zba\n        lpad    0\n        slli              t2, a3, 7  // dy * 128\n        li                t1, 4*128+4\n        add               t3, t2, a2 // dy * 128 + dx\n        sub               t1, t1, t2\n        sub               t1, t1, a2\n        sh1add            a0, t3, a0\n        sh1add            a1, t1, a1\n        li                t3, 16\n        beq               a4, t3, SADVSET\\vlen\\()16\n        .irp w,8,16\nSADVSET\\vlen\\w:\n        vsetvlstatic32    \\w, \\vlen\n        vmv.v.i           v0, 0\n        vmv.s.x           v24, zero\n        vsetvlstatic16    \\w, \\vlen, tu\nSAD\\vlen\\w:\n        addi              a5, a5, -2\n        vle16.v           v8, (a0)\n        vle16.v           v16, (a1)\n        vsub.vv           v8, v8, v16\n        vneg.v            v16, v8\n        addi              a0, a0, 2 * 128 * 2\n        vmax.vv           v8, v8, v16\n        vwaddu.wv         v0, v0, v8\n        addi              a1, a1, 2 * 128 * 2\n        bnez              a5, SAD\\vlen\\w\n        vsetvlstatic32    \\w, \\vlen\n        vredsum.vs        v24, v0, v24\n        vmv.x.s           a0, v24\n        ret\n        .endr\nendfunc\n.endm\n\nfunc_sad 256", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/sad_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/sad_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/sad_rvv.S:2", "text": "SAD\\vlen\\w:\n        addi              a5, a5, -2\n        vle16.v           v8, (a0)\n        vle16.v           v16, (a1)\n        vsub.vv           v8, v8, v16\n        vneg.v            v16, v8\n        addi              a0, a0, 2 * 128 * 2\n        vmax.vv           v8, v8, v16\n        vwaddu.wv         v0, v0, v8\n        addi              a1, a1, 2 * 128 * 2\n        bnez              a5, SAD\\vlen\\w\n        vsetvlstatic32    \\w, \\vlen\n        vredsum.vs        v24, v0, v24\n        vmv.x.s           a0, v24\n        ret\n        .endr\nendfunc\n.endm\n\nfunc_sad 256\nfunc_sad 128", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/sad_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/riscv/vvc/sad_rvv.S", "line_start": 41, "line_end": 61}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/sad_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/riscv/h26x/asm.S\"\n\n.macro func_sad vlen\nfunc ff_vvc_sad_rvv_\\vlen, zve32x, zbb, zba\n        lpad    0\n        slli              t2, a3, 7  // dy * 128\n        li                t1, 4*128+4\n        add               t3, t2, a2 // dy * 128 + dx\n        sub               t1, t1, t2\n        sub               t1, t1, a2\n        sh1add            a0, t3, a0\n        sh1add            a1, t1, a1\n        li                t3, 16\n        beq               a4, t3, SADVSET\\vlen\\()16\n        .irp w,8,16\nSADVSET\\vlen\\w:\n        vsetvlstatic32    \\w, \\vlen\n        vmv.v.i           v0, 0\n        vmv.s.x           v24, zero\n        vsetvlstatic16    \\w, \\vlen, tu\nSAD\\vlen\\w:\n        addi              a5, a5, -2\n        vle16.v           v8, (a0)\n        vle16.v           v16, (a1)\n        vsub.vv           v8, v8, v16\n        vneg.v            v16, v8\n        addi              a0, a0, 2 * 128 * 2\n        vmax.vv           v8, v8, v16\n        vwaddu.wv         v0, v0, v8\n        addi              a1, a1, 2 * 128 * 2\n        bnez              a5, SAD\\vlen\\w\n        vsetvlstatic32    \\w, \\vlen\n        vredsum.vs        v24, v0, v24\n        vmv.x.s           a0, v24\n        ret\n        .endr\nendfunc\n.endm\n\nfunc_sad 256", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/sad_rvv.S", "license": "LGPL-2.1", "commit": "a0a89efd0778a8021c2d7077f82531d4f955f459", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a0a89efd0778a8021c2d7077f82531d4f955f459/libavcodec/riscv/vvc/sad_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/riscv/h26x/asm.S\"\n\n.macro avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w < 128\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        add               t2, a0, a1\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        addi              a5, a5, -2\n        vle16.v           v16, (t0)\n        vle16.v           v24, (t1)\n        vadd.vv           v8, v8, v0\n        vadd.vv           v24, v24, v16\n        vmax.vx           v8, v8, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v8, v8, 7\n        vnclipu.wi        v24, v24, 7\n        addi              a3, a3, 128*4\n        vse8.v            v8, (a0)\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t3, a3\n        mv                t4, a4\n1:\n        vsetvli           t0, a4, e16, m8, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        vadd.vv           v8, v8, v0\n        vmax.vx           v8, v8, zero\n        vsetvli           zero, zero, e8, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "dad062c4f8a9a77d6969ce38360252844a55a630", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad062c4f8a9a77d6969ce38360252844a55a630/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:8", "text": "vsetvlstatic8     \\w, \\vlen\n        j                 \\name\n        .else\n        csrwi             vxrm, 0\n        j                 \\name\\()\\vlen\\w\n        .endif\n        .endr\nendfunc\n.endm\n\n\n.irp vlen,256,128\n.irp w,12,20\ndmvr_h_v a4, h, \\w, \\vlen\ndmvr_h_v a5, v, \\w, \\vlen\ndmvr_hv \\w, \\vlen\n.endr\nfunc_dmvr \\vlen, dmvr\nfunc_dmvr \\vlen, dmvr_h\nfunc_dmvr \\vlen, dmvr_v\nfunc_dmvr \\vlen, dmvr_hv\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "9288196c0d82484403ee7e91efb9d33954f4548d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9288196c0d82484403ee7e91efb9d33954f4548d/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 281, "line_end": 302}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:3", "text": ".endm\n\n.macro vsetvlstatic32 w, vlen\n        .if \\w == 2\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 4 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 8 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 16 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w <= 8 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w <= 16 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w <= 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m4, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m8, ta, ma\n        .endif\n.endm\n\n.macro avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w < 128\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        add               t2, a0, a1\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        addi              a5, a5, -2\n        vle16.v           v16, (t0)\n        vle16.v           v24, (t1)\n        vadd.vv           v8, v8, v0\n        vadd.vv           v24, v24, v16\n        vmax.vx           v8, v8, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v8, v8, 7\n        vnclipu.wi        v24, v24, 7\n        addi              a3, a3, 128*4\n        vse8.v            v8, (a0)\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t3, a3\n        mv                t4, a4\n1:\n        vsetvli           t0, a4, e16, m8, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:4", "text": "vmax.vx           v8, v8, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v8, v8, 7\n        vnclipu.wi        v24, v24, 7\n        addi              a3, a3, 128*4\n        vse8.v            v8, (a0)\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t3, a3\n        mv                t4, a4\n1:\n        vsetvli           t0, a4, e16, m8, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        vadd.vv           v8, v8, v0\n        vmax.vx           v8, v8, zero\n        vsetvli           zero, zero, e8, m4, ta, ma\n        vnclipu.wi        v8, v8, 7\n        vse8.v            v8, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t3, 128*2\n        mv                a4, t4\n.endif\n        bnez              a5, \\id\\w\\vlen\\()b\n        ret\n.endm\n\n\n.macro AVG_JMP_TABLE id, vlen\nconst jmp_table_\\id\\vlen\n        .4byte \\id\\()2\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()4\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()8\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()16\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()32\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()64\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()128\\vlen\\()f - jmp_table_\\id\\vlen\nendconst\n.endm\n\n.macro AVG_J vlen, id\n        clz               t1, a4\n        neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:5", "text": ".macro AVG_JMP_TABLE id, vlen\nconst jmp_table_\\id\\vlen\n        .4byte \\id\\()2\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()4\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()8\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()16\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()32\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()64\\vlen\\()f - jmp_table_\\id\\vlen\n        .4byte \\id\\()128\\vlen\\()f - jmp_table_\\id\\vlen\nendconst\n.endm\n\n.macro AVG_J vlen, id\n        clz               t1, a4\n        neg               t1, t1\n        lla               t5, jmp_table_\\id\\vlen\n        sh2add            t1, t1, t5\n        lw                t1, ((__riscv_xlen-2)<<2)(t1)\n        add               t1, t1, t5\n        jr                t1\n.endm\n\n.macro func_avg vlen\nfunc ff_vvc_avg_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        AVG_JMP_TABLE     1, \\vlen\n        csrwi             vxrm, 0\n        AVG_J             \\vlen, 1\n        .irp w,2,4,8,16,32,64,128\n        avg               \\w, \\vlen, 1\n        .endr\nendfunc\n.endm\n\nfunc_avg 128\nfunc_avg 256\n\n#if (__riscv_xlen == 64)\n.macro w_avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w <= 32 || (\\w == 64 && \\vlen == 256)\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        addi              a5, a5, -2\n        vle16.v           v8, (t0)\n        vle16.v           v12, (t1)\n        vwmul.vx          v16, v0, a7\n        vwmul.vx          v24, v8, a7\n        vwmacc.vx         v16, t3, v4\n        vwmacc.vx         v24, t3, v12\n        vsetvlstatic32    \\w, \\vlen\n        add               t2, a0, a1\n        vadd.vx           v16, v16, t4\n        vadd.vx           v24, v24, t4\n        vsetvlstatic16    \\w, \\vlen\n        vnsrl.wx          v16, v16, t6\n        vnsrl.wx          v24, v24, t6", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:6", "text": ".if \\w <= 32 || (\\w == 64 && \\vlen == 256)\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        addi              a5, a5, -2\n        vle16.v           v8, (t0)\n        vle16.v           v12, (t1)\n        vwmul.vx          v16, v0, a7\n        vwmul.vx          v24, v8, a7\n        vwmacc.vx         v16, t3, v4\n        vwmacc.vx         v24, t3, v12\n        vsetvlstatic32    \\w, \\vlen\n        add               t2, a0, a1\n        vadd.vx           v16, v16, t4\n        vadd.vx           v24, v24, t4\n        vsetvlstatic16    \\w, \\vlen\n        vnsrl.wx          v16, v16, t6\n        vnsrl.wx          v24, v24, t6\n        vmax.vx           v16, v16, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v16, v16, 0\n        vnclipu.wi        v24, v24, 0\n        vse8.v            v16, (a0)\n        addi              a3, a3, 128*4\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t5, a3\n        mv                a6, a4\n1:\n        vsetvli           t0, a4, e16, m4, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)\n        vle16.v           v4, (a3)\n        vwmul.vx          v16, v0, a7\n        vwmacc.vx         v16, t3, v4\n        vsetvli           zero, zero, e32, m8, ta, ma\n        vadd.vx           v16, v16, t4\n        vsetvli           zero, zero, e16, m4, ta, ma\n        vnsrl.wx          v16, v16, t6\n        vmax.vx           v16, v16, zero\n        vsetvli           zero, zero, e8, m2, ta, ma\n        vnclipu.wi        v16, v16, 0\n        vse8.v            v16, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t5, 128*2\n        mv                a4, a6\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:7", "text": "vle16.v           v4, (a3)\n        vwmul.vx          v16, v0, a7\n        vwmacc.vx         v16, t3, v4\n        vsetvli           zero, zero, e32, m8, ta, ma\n        vadd.vx           v16, v16, t4\n        vsetvli           zero, zero, e16, m4, ta, ma\n        vnsrl.wx          v16, v16, t6\n        vmax.vx           v16, v16, zero\n        vsetvli           zero, zero, e8, m2, ta, ma\n        vnclipu.wi        v16, v16, 0\n        vse8.v            v16, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t5, 128*2\n        mv                a4, a6\n.endif\n        bnez              a5, \\id\\w\\vlen\\()b\n        ret\n.endm\n\n.macro func_w_avg vlen\nfunc ff_vvc_w_avg_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        AVG_JMP_TABLE     2, \\vlen\n        csrwi             vxrm, 0\n        addi              t6, a6, 7\n        ld                t3, (sp)\n        ld                t4, 8(sp)\n        ld                t5, 16(sp)\n        addi              t4, t4, 1       // o0 + o1 + 1\n        add               t4, t4, t5\n        addi              t5, t6, -1      // shift - 1\n        sll               t4, t4, t5\n        AVG_J             \\vlen, 2\n        .irp w,2,4,8,16,32,64,128\n        w_avg             \\w, \\vlen, 2\n        .endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif\n\nfunc dmvr zve32x, zbb, zba\n        lpad    0\n        li                t0, 4\n1:\n        add               t1, a1, a2\n        addi              t4, a0, 128*2\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t1)\n        addi              a3, a3, -2\n        vwmulu.vx         v16, v0, t0\n        vwmulu.vx         v20, v4, t0\n        vse16.v           v16, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:8", "text": ".endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif\n\nfunc dmvr zve32x, zbb, zba\n        lpad    0\n        li                t0, 4\n1:\n        add               t1, a1, a2\n        addi              t4, a0, 128*2\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t1)\n        addi              a3, a3, -2\n        vwmulu.vx         v16, v0, t0\n        vwmulu.vx         v20, v4, t0\n        vse16.v           v16, (a0)\n        vse16.v           v20, (t4)\n        sh1add            a1, a2, a1\n        add               a0, a0, 128*2*2\n        bnez              a3, 1b\n        ret\nendfunc\n\n.macro dmvr_h_v mn, type, w, vlen\nfunc dmvr_\\type\\vlen\\w, zve32x, zbb, zba\n        lla               t4, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t4, \\mn, t4\n        lbu               t5, (t4)\n        lbu               t6, 1(t4)\n1:\n        vsetvlstatic8     \\w, \\vlen\n.ifc \\type,h\n        addi              t0, a1, 1\n        addi              t1, a1, 2\n.else\n        add               t0, a1, a2\n        add               t1, t0, a2\n.endif\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t0)\n        vle8.v            v8, (t1)\n        addi              a3, a3, -2\n        addi              t2, a0, 128*2\n        vwmulu.vx         v12, v0, t5\n        vwmulu.vx         v24, v4, t5\n        vwmaccu.vx        v12, t6, v4\n        vwmaccu.vx        v24, t6, v8\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          v12, v12, 2\n        vssrl.vi          v24, v24, 2\n        vse16.v           v12, (a0)\n        vse16.v           v24, (t2)\n        add               a0, a0, 128*4\n        sh1add            a1, a2, a1\n        bnez              a3, 1b\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:9", "text": "add               t1, t0, a2\n.endif\n        vle8.v            v0, (a1)\n        vle8.v            v4, (t0)\n        vle8.v            v8, (t1)\n        addi              a3, a3, -2\n        addi              t2, a0, 128*2\n        vwmulu.vx         v12, v0, t5\n        vwmulu.vx         v24, v4, t5\n        vwmaccu.vx        v12, t6, v4\n        vwmaccu.vx        v24, t6, v8\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          v12, v12, 2\n        vssrl.vi          v24, v24, 2\n        vse16.v           v12, (a0)\n        vse16.v           v24, (t2)\n        add               a0, a0, 128*4\n        sh1add            a1, a2, a1\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro dmvr_load_h dst, filter0, filter1, w, vlen\n        vsetvlstatic8     \\w, \\vlen\n        addi              a6, a1, 1\n        vle8.v            \\dst, (a1)\n        vle8.v            v2, (a6)\n        vwmulu.vx         v4, \\dst, \\filter0\n        vwmaccu.vx        v4, \\filter1, v2\n        vsetvlstatic16    \\w, \\vlen\n        vssrl.vi          \\dst, v4, 2\n.endm\n\n.macro dmvr_hv w, vlen\nfunc dmvr_hv\\vlen\\w, zve32x, zbb, zba\n        lla               t0, ff_vvc_inter_luma_dmvr_filters\n        sh1add            t1, a4, t0\n        sh1add            t2, a5, t0\n        lbu               t3, (t1)          // filter[mx][0]\n        lbu               t4, 1(t1)         // filter[mx][1]\n        lbu               t5, (t2)          // filter[my][0]\n        lbu               t6, 1(t2)         // filter[my][1]\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        add               a1, a1, a2\n1:\n        vmul.vx           v28, v12, t5\n        addi              a3, a3, -1\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        vmacc.vx          v28, t6, v12\n        vssrl.vi          v28, v28, 4\n        vse16.v           v28, (a0)\n        add               a1, a1, a2\n        addi              a0, a0, 128*2\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro func_dmvr vlen, name", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:10", "text": "lbu               t4, 1(t1)         // filter[mx][1]\n        lbu               t5, (t2)          // filter[my][0]\n        lbu               t6, 1(t2)         // filter[my][1]\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        add               a1, a1, a2\n1:\n        vmul.vx           v28, v12, t5\n        addi              a3, a3, -1\n        dmvr_load_h       v12, t3, t4, \\w, \\vlen\n        vmacc.vx          v28, t6, v12\n        vssrl.vi          v28, v28, 4\n        vse16.v           v28, (a0)\n        add               a1, a1, a2\n        addi              a0, a0, 128*2\n        bnez              a3, 1b\n        ret\nendfunc\n.endm\n\n.macro func_dmvr vlen, name\nfunc ff_vvc_\\name\\()_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        li                t0, 20\n        beq               a6, t0, DMVR\\name\\vlen\\()20\n        .irp w,12,20\nDMVR\\name\\vlen\\w:\n        .ifc \\name, dmvr\n        vsetvlstatic8     \\w, \\vlen\n        j                 \\name\n        .else\n        csrwi             vxrm, 0\n        j                 \\name\\()\\vlen\\w\n        .endif\n        .endr\nendfunc\n.endm\n\n\n.irp vlen,256,128\n.irp w,12,20\ndmvr_h_v a4, h, \\w, \\vlen\ndmvr_h_v a5, v, \\w, \\vlen\ndmvr_hv \\w, \\vlen\n.endr\nfunc_dmvr \\vlen, dmvr\nfunc_dmvr \\vlen, dmvr_h\nfunc_dmvr \\vlen, dmvr_v\nfunc_dmvr \\vlen, dmvr_hv\n.endr", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "89df9c4404577c08115779668f64420b3c6c778f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89df9c4404577c08115779668f64420b3c6c778f/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 361, "line_end": 409}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:7", "text": "vle16.v           v4, (a3)\n        vwmul.vx          v16, v0, a7\n        vwmacc.vx         v16, t3, v4\n        vsetvli           zero, zero, e32, m8, ta, ma\n        vadd.vx           v16, v16, t4\n        vsetvli           zero, zero, e16, m4, ta, ma\n        vnsrl.wx          v16, v16, t6\n        vmax.vx           v16, v16, zero\n        vsetvli           zero, zero, e8, m2, ta, ma\n        vnclipu.wi        v16, v16, 0\n        vse8.v            v16, (a0)\n        sh1add            a2, t0, a2\n        sh1add            a3, t0, a3\n        add               a0, a0, t0\n        bnez              a4, 1b\n        add               a0, t1, a1\n        addi              a2, t2, 128*2\n        addi              a3, t5, 128*2\n        mv                a4, a6\n.endif\n        bnez              a5, \\id\\w\\vlen\\()b\n        ret\n.endm\n\n.macro func_w_avg vlen\nfunc ff_vvc_w_avg_8_rvv_\\vlen\\(), zve32x, zbb, zba\n        lpad    0\n        AVG_JMP_TABLE     2, \\vlen\n        csrwi             vxrm, 0\n        addi              t6, a6, 7\n        ld                t3, (sp)\n        ld                t4, 8(sp)\n        ld                t5, 16(sp)\n        addi              t4, t4, 1       // o0 + o1 + 1\n        add               t4, t4, t5\n        addi              t5, t6, -1      // shift - 1\n        sll               t4, t4, t5\n        AVG_J             \\vlen, 2\n        .irp w,2,4,8,16,32,64,128\n        w_avg             \\w, \\vlen, 2\n        .endr\nendfunc\n.endm\n\nfunc_w_avg 128\nfunc_w_avg 256\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "b86766d610570e040f4eec5b56b3886104382696", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b86766d610570e040f4eec5b56b3886104382696/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 241, "line_end": 287}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n.macro vsetvlstatic8 w, vlen\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, e8, mf8, ta, ma\n        .elseif \\w == 4 && \\vlen == 128\n                vsetivli        zero, \\w, e8, mf4, ta, ma\n        .elseif \\w == 8 && \\vlen == 128\n                vsetivli        zero, \\w, e8, mf2, ta, ma\n        .elseif \\w == 16 && \\vlen == 128\n                vsetivli        zero, \\w, e8, m1, ta, ma\n        .elseif \\w == 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m2, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e8, mf8, ta, ma\n        .elseif \\w == 8 && \\vlen == 256\n                vsetivli        zero, \\w, e8, mf4, ta, ma\n        .elseif \\w == 16 && \\vlen == 256\n                vsetivli        zero, \\w, e8, mf2, ta, ma\n        .elseif \\w == 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m1, ta, ma\n        .elseif \\w == 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m2, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m4, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic16 w, vlen\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf4, ta, ma\n        .elseif \\w == 4 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf2, ta, ma\n        .elseif \\w == 8 && \\vlen == 128\n                vsetivli        zero, \\w, e16, m1, ta, ma\n        .elseif \\w == 16 && \\vlen == 128", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "ba7d0d5fc39127ce243bb93e375f3a633492c273", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba7d0d5fc39127ce243bb93e375f3a633492c273/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:2", "text": ".elseif \\w == 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m1, ta, ma\n        .elseif \\w == 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m2, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e8, m4, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic16 w, vlen\n        .if \\w == 2 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf4, ta, ma\n        .elseif \\w == 4 && \\vlen == 128\n                vsetivli        zero, \\w, e16, mf2, ta, ma\n        .elseif \\w == 8 && \\vlen == 128\n                vsetivli        zero, \\w, e16, m1, ta, ma\n        .elseif \\w == 16 && \\vlen == 128\n                vsetivli        zero, \\w, e16, m2, ta, ma\n        .elseif \\w == 32 && \\vlen == 128\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m4, ta, ma\n        .elseif \\w <= 4 && \\vlen == 256\n                vsetivli        zero, \\w, e16, mf4, ta, ma\n        .elseif \\w == 8 && \\vlen == 256\n                vsetivli        zero, \\w, e16, mf2, ta, ma\n        .elseif \\w == 16 && \\vlen == 256\n                vsetivli        zero, \\w, e16, m1, ta, ma\n        .elseif \\w == 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m2, ta, ma\n        .elseif \\w == 64 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m4, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e16, m8, ta, ma\n        .endif\n.endm\n\n.macro vsetvlstatic32 w, vlen\n        .if \\w == 2\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w == 4 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w == 8 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w == 16 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m4, ta, ma\n        .elseif \\w == 4 && \\vlen == 256\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w == 8 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w == 16 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w == 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m4, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "ba7d0d5fc39127ce243bb93e375f3a633492c273", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba7d0d5fc39127ce243bb93e375f3a633492c273/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_mc_rvv.S:3", "text": ".endm\n\n.macro vsetvlstatic32 w, vlen\n        .if \\w == 2\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w == 4 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w == 8 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w == 16 && \\vlen == 128\n                vsetivli        zero, \\w, e32, m4, ta, ma\n        .elseif \\w == 4 && \\vlen == 256\n                vsetivli        zero, \\w, e32, mf2, ta, ma\n        .elseif \\w == 8 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m1, ta, ma\n        .elseif \\w == 16 && \\vlen == 256\n                vsetivli        zero, \\w, e32, m2, ta, ma\n        .elseif \\w == 32 && \\vlen == 256\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m4, ta, ma\n        .else\n                li              t0, \\w\n                vsetvli         zero, t0, e32, m8, ta, ma\n        .endif\n.endm\n\n.macro avg w, vlen, id\n\\id\\w\\vlen:\n.if \\w < 128\n        vsetvlstatic16    \\w, \\vlen\n        addi              t0, a2, 128*2\n        addi              t1, a3, 128*2\n        add               t2, a0, a1\n        vle16.v           v0, (a2)\n        vle16.v           v8, (a3)\n        addi              a5, a5, -2\n        vle16.v           v16, (t0)\n        vle16.v           v24, (t1)\n        vadd.vv           v8, v8, v0\n        vadd.vv           v24, v24, v16\n        vmax.vx           v8, v8, zero\n        vmax.vx           v24, v24, zero\n        vsetvlstatic8     \\w, \\vlen\n        addi              a2, a2, 128*4\n        vnclipu.wi        v8, v8, 7\n        vnclipu.wi        v24, v24, 7\n        addi              a3, a3, 128*4\n        vse8.v            v8, (a0)\n        vse8.v            v24, (t2)\n        sh1add            a0, a1, a0\n.else\n        addi              a5, a5, -1\n        mv                t1, a0\n        mv                t2, a2\n        mv                t3, a3\n        mv                t4, a4\n1:\n        vsetvli           t0, a4, e16, m8, ta, ma\n        sub               a4, a4, t0\n        vle16.v           v0, (a2)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_mc_rvv.S", "license": "LGPL-2.1", "commit": "ba7d0d5fc39127ce243bb93e375f3a633492c273", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba7d0d5fc39127ce243bb93e375f3a633492c273/libavcodec/riscv/vvc/vvc_mc_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/riscv/vvc/vvc_sad_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/riscv/h26x/asm.S\"\n\n.macro func_sad vlen\nfunc ff_vvc_sad_rvv_\\vlen, zve32x, zbb, zba\n        lpad    0\n        slli              t2, a3, 7  // dy * 128\n        li                t1, 4*128+4\n        add               t3, t2, a2 // dy * 128 + dx\n        sub               t1, t1, t2\n        sub               t1, t1, a2\n        sh1add            a0, t3, a0\n        sh1add            a1, t1, a1\n        li                t3, 16\n        beq               a4, t3, SADVSET\\vlen\\()16\n        .irp w,8,16\nSADVSET\\vlen\\w:\n        vsetvlstatic32    \\w, \\vlen\n        vmv.v.i           v0, 0\n        vmv.s.x           v24, zero\n        vsetvlstatic16    \\w, \\vlen\nSAD\\vlen\\w:\n        addi              a5, a5, -2\n        vle16.v           v8, (a0)\n        vle16.v           v16, (a1)\n        vsub.vv           v8, v8, v16\n        vneg.v            v16, v8\n        addi              a0, a0, 2 * 128 * 2\n        vmax.vv           v8, v8, v16\n        vwaddu.wv         v0, v0, v8\n        addi              a1, a1, 2 * 128 * 2\n        bnez              a5, SAD\\vlen\\w\n        vsetvlstatic32    \\w, \\vlen\n        vredsum.vs        v24, v0, v24\n        vmv.x.s           a0, v24\n        ret\n        .endr\nendfunc\n.endm\n\nfunc_sad 256", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/riscv/vvc/vvc_sad_rvv.S", "license": "LGPL-2.1", "commit": "16d4945e9aea8dab89ec7f83011379ae08712580", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/16d4945e9aea8dab89ec7f83011379ae08712580/libavcodec/riscv/vvc/vvc_sad_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized AAC encoder DSP functions\n;*\n;* Copyright (C) 2016 Rostislav Pehlivanov <atomnuker@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfloat_abs_mask: times 4 dd 0x7fffffff\n\nSECTION .text\n\n;*******************************************************************\n;void ff_abs_pow34(float *out, const float *in, const int size);\n;*******************************************************************\nINIT_XMM sse\ncglobal abs_pow34, 3, 3, 3, out, in, size\n    mova   m2, [float_abs_mask]\n    shl    sized, 2\n    add    inq, sizeq\n    add    outq, sizeq\n    neg    sizeq\n.loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\n%macro AAC_QUANTIZE_BANDS 0\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if UNIX64 == 0\n%if mmsize == 32\n    vbroadcastss m0, Q34m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:2", "text": ".loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\n%macro AAC_QUANTIZE_BANDS 0\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if UNIX64 == 0\n%if mmsize == 32\n    vbroadcastss m0, Q34m\n    vbroadcastss m1, roundingm\n%else\n    movss     m0, Q34m\n    movss     m1, roundingm\n    shufps    m0, m0, 0\n    shufps    m1, m1, 0\n%endif\n    cvtsi2ss xm3, dword maxvalm\n    shufps   xm3, xm3, xm3, 0\n%else ; UNIX64\n    shufps   xm0, xm0, 0\n    shufps   xm1, xm1, 0\n    cvtsi2ss xm3, maxvald\n    shufps   xm3, xm3, xm3, 0\n%if mmsize == 32\n    vinsertf128 m0, m0, xm0, 1\n    vinsertf128 m1, m1, xm1, 1\n%endif\n%endif\n%if mmsize == 32\n    vinsertf128 m3, m3, xm3, 1\n%endif\n    shl       is_signedd, 31\n    movd     xm4, is_signedd\n    shufps   xm4, xm4, xm4, 0\n%if mmsize == 32\n    vinsertf128 m4, m4, xm4, 1\n%endif\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    xorps     m2, m5\n    cvttps2dq m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:3", "text": "vinsertf128 m3, m3, xm3, 1\n%endif\n    shl       is_signedd, 31\n    movd     xm4, is_signedd\n    shufps   xm4, xm4, xm4, 0\n%if mmsize == 32\n    vinsertf128 m4, m4, xm4, 1\n%endif\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    xorps     m2, m5\n    cvttps2dq m2, m2\n    mova      [outq+sizeq], m2\n    add       sizeq, mmsize\n    jl       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nAAC_QUANTIZE_BANDS\nINIT_YMM avx\nAAC_QUANTIZE_BANDS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacencdsp.asm", "line_start": 81, "line_end": 110}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:2", "text": ".loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\n%macro AAC_QUANTIZE_BANDS 0\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if UNIX64 == 0\n%if mmsize == 32\n    vbroadcastss m0, Q34m\n    vbroadcastss m1, roundingm\n%else\n    movss     m0, Q34m\n    movss     m1, roundingm\n    shufps    m0, m0, 0\n    shufps    m1, m1, 0\n%endif\n    cvtsi2ss xm3, dword maxvalm\n    shufps   xm3, xm3, xm3, 0\n%else ; UNIX64\n    shufps   xm0, xm0, 0\n    shufps   xm1, xm1, 0\n    cvtsi2ss xm3, maxvald\n    shufps   xm3, xm3, xm3, 0\n%if mmsize == 32\n    vinsertf128 m0, m0, xm0, 1\n    vinsertf128 m1, m1, xm1, 1\n%endif\n%endif\n%if mmsize == 32\n    vinsertf128 m3, m3, xm3, 1\n%endif\n    shl       is_signedd, 31\n    movd     xm4, is_signedd\n    shufps   xm4, xm4, xm4, 0\n%if mmsize == 32\n    vinsertf128 m4, m4, xm4, 1\n%endif\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    orps      m2, m5\n    cvttps2dq m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "94f2274a8b61438572f0873ccf430e55ce0e0e2b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f2274a8b61438572f0873ccf430e55ce0e0e2b/libavcodec/x86/aacencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:3", "text": "vinsertf128 m3, m3, xm3, 1\n%endif\n    shl       is_signedd, 31\n    movd     xm4, is_signedd\n    shufps   xm4, xm4, xm4, 0\n%if mmsize == 32\n    vinsertf128 m4, m4, xm4, 1\n%endif\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    orps      m2, m5\n    cvttps2dq m2, m2\n    mova      [outq+sizeq], m2\n    add       sizeq, mmsize\n    jl       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nAAC_QUANTIZE_BANDS\nINIT_YMM avx\nAAC_QUANTIZE_BANDS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "94f2274a8b61438572f0873ccf430e55ce0e0e2b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f2274a8b61438572f0873ccf430e55ce0e0e2b/libavcodec/x86/aacencdsp.asm", "line_start": 81, "line_end": 110}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized AAC encoder DSP functions\n;*\n;* Copyright (C) 2016 Rostislav Pehlivanov <atomnuker@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfloat_abs_mask: times 4 dd 0x7fffffff\n\nSECTION .text\n\n;*******************************************************************\n;void ff_abs_pow34(float *out, const float *in, const int size);\n;*******************************************************************\nINIT_XMM sse\ncglobal abs_pow34, 3, 3, 3, out, in, size\n    mova   m2, [float_abs_mask]\n    shl    sized, 2\n    add    inq, sizeq\n    add    outq, sizeq\n    neg    sizeq\n.loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\n%macro AAC_QUANTIZE_BANDS 0\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if mmsize == 32\n    vbroadcastss m0, Q34m\n    vbroadcastss m1, roundingm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "91b9af00586471c3aae37435b4f536015593e232", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b9af00586471c3aae37435b4f536015593e232/libavcodec/x86/aacencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:2", "text": ".loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\n%macro AAC_QUANTIZE_BANDS 0\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if mmsize == 32\n    vbroadcastss m0, Q34m\n    vbroadcastss m1, roundingm\n%if UNIX64 == 0\n    cvtsi2ss xm3, dword maxvalm\n%else\n    cvtsi2ss xm3, maxvald\n%endif\n    shufps   xm3, xm3, xm3, 0\n    vinsertf128 m3, m3, xm3, 1\n%else ; mmsize == 16\n%if UNIX64 == 0\n    movss     m0, Q34m\n    movss     m1, roundingm\n    cvtsi2ss  m3, dword maxvalm\n%else\n    cvtsi2ss  m3, maxvald\n%endif\n    shufps    m0, m0, 0\n    shufps    m1, m1, 0\n    shufps    m3, m3, 0\n%endif\n    shl       is_signedd, 31\n    movd     xm4, is_signedd\n    shufps   xm4, xm4, xm4, 0\n%if mmsize == 32\n    vinsertf128 m4, m4, xm4, 1\n%endif\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    orps      m2, m5\n    cvttps2dq m2, m2\n    mova      [outq+sizeq], m2\n    add       sizeq, mmsize\n    jl       .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "91b9af00586471c3aae37435b4f536015593e232", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b9af00586471c3aae37435b4f536015593e232/libavcodec/x86/aacencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:3", "text": "movd     xm4, is_signedd\n    shufps   xm4, xm4, xm4, 0\n%if mmsize == 32\n    vinsertf128 m4, m4, xm4, 1\n%endif\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    orps      m2, m5\n    cvttps2dq m2, m2\n    mova      [outq+sizeq], m2\n    add       sizeq, mmsize\n    jl       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nAAC_QUANTIZE_BANDS\nINIT_YMM avx\nAAC_QUANTIZE_BANDS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "91b9af00586471c3aae37435b4f536015593e232", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91b9af00586471c3aae37435b4f536015593e232/libavcodec/x86/aacencdsp.asm", "line_start": 81, "line_end": 107}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized AAC encoder DSP functions\n;*\n;* Copyright (C) 2016 Rostislav Pehlivanov <atomnuker@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfloat_abs_mask: times 4 dd 0x7fffffff\n\nSECTION .text\n\n;*******************************************************************\n;void ff_abs_pow34(float *out, const float *in, const int size);\n;*******************************************************************\nINIT_XMM sse\ncglobal abs_pow34, 3, 3, 3, out, in, size\n    mova   m2, [float_abs_mask]\n    shl    sized, 2\n    add    inq, sizeq\n    add    outq, sizeq\n    neg    sizeq\n.loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\nINIT_XMM sse2\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if UNIX64 == 0\n    movss     m0, Q34m\n    movss     m1, roundingm", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/aacencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacencdsp.asm:2", "text": ".loop:\n    andps  m0, m2, [inq+sizeq]\n    sqrtps m1, m0\n    mulps  m0, m1\n    sqrtps m0, m0\n    mova   [outq+sizeq], m0\n    add    sizeq, mmsize\n    jl    .loop\n    RET\n\n;*******************************************************************\n;void ff_aac_quantize_bands(int *out, const float *in, const float *scaled,\n;                           int size, int is_signed, int maxval, const float Q34,\n;                           const float rounding)\n;*******************************************************************\nINIT_XMM sse2\ncglobal aac_quantize_bands, 5, 5, 6, out, in, scaled, size, is_signed, maxval, Q34, rounding\n%if UNIX64 == 0\n    movss     m0, Q34m\n    movss     m1, roundingm\n    cvtsi2ss  m3, dword maxvalm\n%else\n    cvtsi2ss  m3, maxvald\n%endif\n    shufps    m0, m0, 0\n    shufps    m1, m1, 0\n    shufps    m3, m3, 0\n    shl       is_signedd, 31\n    movd      m4, is_signedd\n    shufps    m4, m4, 0\n    shl       sized,   2\n    add       inq, sizeq\n    add       outq, sizeq\n    add       scaledq, sizeq\n    neg       sizeq\n.loop:\n    mulps     m2, m0, [scaledq+sizeq]\n    addps     m2, m1\n    minps     m2, m3\n    andps     m5, m4, [inq+sizeq]\n    orps      m2, m5\n    cvttps2dq m2, m2\n    mova      [outq+sizeq], m2\n    add       sizeq, mmsize\n    jl       .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/aacencdsp.asm", "line_start": 41, "line_end": 86}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized MPEG-4 Parametric Stereo decoding functions\n;*\n;* Copyright (C) 2015 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nps_p1m1p1m1: dd 0, 0x80000000, 0, 0x80000000\n\nSECTION .text\n\n;*************************************************************************\n;void ff_ps_add_squares_<opt>(float *dst, const float (*src)[2], int n);\n;*************************************************************************\n%macro PS_ADD_SQUARES 1\ncglobal ps_add_squares, 3, 3, %1, dst, src, n\n    shl    nd, 3\n    add  srcq, nq\n    neg    nq\n\nalign 16\n.loop:\n    movaps m0, [srcq+nq]\n    movaps m1, [srcq+nq+mmsize]\n    mulps  m0, m0\n    mulps  m1, m1\n    HADDPS m0, m1, m2\n    addps  m0, [dstq]\n    movaps [dstq], m0\n    add  dstq, mmsize\n    add    nq, mmsize*2\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nPS_ADD_SQUARES 2\nINIT_XMM sse3\nPS_ADD_SQUARES 3\n\n;*******************************************************************", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:2", "text": ".loop:\n    movaps m0, [srcq+nq]\n    movaps m1, [srcq+nq+mmsize]\n    mulps  m0, m0\n    mulps  m1, m1\n    HADDPS m0, m1, m2\n    addps  m0, [dstq]\n    movaps [dstq], m0\n    add  dstq, mmsize\n    add    nq, mmsize*2\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nPS_ADD_SQUARES 2\nINIT_XMM sse3\nPS_ADD_SQUARES 3\n\n;*******************************************************************\n;void ff_ps_mul_pair_single_sse(float (*dst)[2], float (*src0)[2],\n;                                   float *src1, int n);\n;*******************************************************************\nINIT_XMM sse\ncglobal ps_mul_pair_single, 4, 4, 4, dst, src1, src2, n\n    shl      nd, 3\n    add   src1q, nq\n    add    dstq, nq\n    neg      nq\n\nalign 16\n.loop:\n    movu     m0, [src1q+nq]\n    movu     m1, [src1q+nq+mmsize]\n    mova     m2, [src2q]\n    mova     m3, m2\n    unpcklps m2, m2\n    unpckhps m3, m3\n    mulps    m0, m2\n    mulps    m1, m3\n    mova [dstq+nq], m0\n    mova [dstq+nq+mmsize], m1\n    add   src2q, mmsize\n    add      nq, mmsize*2\n    jl .loop\n    RET\n\n;***********************************************************************\n;void ff_ps_stereo_interpolate_sse3(float (*l)[2], float (*r)[2],\n;                                   float h[2][4], float h_step[2][4],\n;                                   int len);\n;***********************************************************************\nINIT_XMM sse3\ncglobal ps_stereo_interpolate, 5, 5, 6, l, r, h, h_step, n\n    movaps   m0, [hq]\n    movaps   m1, [h_stepq]\n    unpcklps m4, m0, m0\n    unpckhps m0, m0\n    unpcklps m5, m1, m1\n    unpckhps m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:3", "text": "mova [dstq+nq], m0\n    mova [dstq+nq+mmsize], m1\n    add   src2q, mmsize\n    add      nq, mmsize*2\n    jl .loop\n    RET\n\n;***********************************************************************\n;void ff_ps_stereo_interpolate_sse3(float (*l)[2], float (*r)[2],\n;                                   float h[2][4], float h_step[2][4],\n;                                   int len);\n;***********************************************************************\nINIT_XMM sse3\ncglobal ps_stereo_interpolate, 5, 5, 6, l, r, h, h_step, n\n    movaps   m0, [hq]\n    movaps   m1, [h_stepq]\n    unpcklps m4, m0, m0\n    unpckhps m0, m0\n    unpcklps m5, m1, m1\n    unpckhps m1, m1\n    shl      nd, 3\n    add      lq, nq\n    add      rq, nq\n    neg      nq\n\nalign 16\n.loop:\n    addps    m4, m5\n    addps    m0, m1\n    movddup  m2, [lq+nq]\n    movddup  m3, [rq+nq]\n    mulps    m2, m4\n    mulps    m3, m0\n    addps    m2, m3\n    movsd  [lq+nq], m2\n    movhps [rq+nq], m2\n    add      nq, 8\n    jl .loop\n    RET\n\n;***************************************************************************\n;void ps_stereo_interpolate_ipdopd_sse3(float (*l)[2], float (*r)[2],\n;                                       float h[2][4], float h_step[2][4],\n;                                       int len);\n;***************************************************************************\nINIT_XMM sse3\ncglobal ps_stereo_interpolate_ipdopd, 5, 5, 10, l, r, h, h_step, n\n    movaps   m0, [hq]\n    movaps   m1, [hq+mmsize]\n%if ARCH_X86_64\n    movaps   m8, [h_stepq]\n    movaps   m9, [h_stepq+mmsize]\n    %define  H_STEP0 m8\n    %define  H_STEP1 m9\n%else\n    %define  H_STEP0 [h_stepq]\n    %define  H_STEP1 [h_stepq+mmsize]\n%endif\n    shl      nd, 3\n    add      lq, nq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:4", "text": ";***************************************************************************\n;void ps_stereo_interpolate_ipdopd_sse3(float (*l)[2], float (*r)[2],\n;                                       float h[2][4], float h_step[2][4],\n;                                       int len);\n;***************************************************************************\nINIT_XMM sse3\ncglobal ps_stereo_interpolate_ipdopd, 5, 5, 10, l, r, h, h_step, n\n    movaps   m0, [hq]\n    movaps   m1, [hq+mmsize]\n%if ARCH_X86_64\n    movaps   m8, [h_stepq]\n    movaps   m9, [h_stepq+mmsize]\n    %define  H_STEP0 m8\n    %define  H_STEP1 m9\n%else\n    %define  H_STEP0 [h_stepq]\n    %define  H_STEP1 [h_stepq+mmsize]\n%endif\n    shl      nd, 3\n    add      lq, nq\n    add      rq, nq\n    neg      nq\n\nalign 16\n.loop:\n    addps    m0, H_STEP0\n    addps    m1, H_STEP1\n    movddup  m2, [lq+nq]\n    movddup  m3, [rq+nq]\n    shufps   m4, m2, m2, q2301\n    shufps   m5, m3, m3, q2301\n    unpcklps m6, m0, m0\n    unpckhps m7, m0, m0\n    mulps    m2, m6\n    mulps    m3, m7\n    unpcklps m6, m1, m1\n    unpckhps m7, m1, m1\n    mulps    m4, m6\n    mulps    m5, m7\n    addps    m2, m3\n    addsubps m2, m4\n    addsubps m2, m5\n    movsd  [lq+nq], m2\n    movhps [rq+nq], m2\n    add      nq, 8\n    jl .loop\n    RET\n\n;**********************************************************\n;void ps_hybrid_analysis_ileave_sse(float out[2][38][64],\n;                                   float (*in)[32][2],\n;                                   int i, int len)\n;**********************************************************\nINIT_XMM sse\ncglobal ps_hybrid_analysis_ileave, 3, 7, 5, out, in, i, len, in0, in1, tmp\n    movsxdifnidn        iq, id\n    mov               lend, 32 << 3\n    lea                inq, [inq+iq*4]\n    mov               tmpd, id\n    shl               tmpd, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:5", "text": "addsubps m2, m4\n    addsubps m2, m5\n    movsd  [lq+nq], m2\n    movhps [rq+nq], m2\n    add      nq, 8\n    jl .loop\n    RET\n\n;**********************************************************\n;void ps_hybrid_analysis_ileave_sse(float out[2][38][64],\n;                                   float (*in)[32][2],\n;                                   int i, int len)\n;**********************************************************\nINIT_XMM sse\ncglobal ps_hybrid_analysis_ileave, 3, 7, 5, out, in, i, len, in0, in1, tmp\n    movsxdifnidn        iq, id\n    mov               lend, 32 << 3\n    lea                inq, [inq+iq*4]\n    mov               tmpd, id\n    shl               tmpd, 8\n    add               outq, tmpq\n    mov               tmpd, 64\n    sub               tmpd, id\n    mov                 id, tmpd\n\n    test                id, 1\n    jne .loop4\n    test                id, 2\n    jne .loop8\n\nalign 16\n.loop16:\n    mov               in0q, inq\n    mov               in1q, 38*64*4\n    add               in1q, in0q\n    mov               tmpd, lend\n\n.inner_loop16:\n    movaps              m0, [in0q]\n    movaps              m1, [in1q]\n    movaps              m2, [in0q+lenq]\n    movaps              m3, [in1q+lenq]\n    TRANSPOSE4x4PS 0, 1, 2, 3, 4\n    movaps          [outq], m0\n    movaps     [outq+lenq], m1\n    movaps   [outq+lenq*2], m2\n    movaps [outq+3*32*2*4], m3\n    lea               in0q, [in0q+lenq*2]\n    lea               in1q, [in1q+lenq*2]\n    add               outq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop16\n    add                inq, 16\n    add               outq, 3*32*2*4\n    sub                 id, 4\n    jg .loop16\n    RET\n\nalign 16\n.loop8:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:6", "text": "movaps              m2, [in0q+lenq]\n    movaps              m3, [in1q+lenq]\n    TRANSPOSE4x4PS 0, 1, 2, 3, 4\n    movaps          [outq], m0\n    movaps     [outq+lenq], m1\n    movaps   [outq+lenq*2], m2\n    movaps [outq+3*32*2*4], m3\n    lea               in0q, [in0q+lenq*2]\n    lea               in1q, [in1q+lenq*2]\n    add               outq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop16\n    add                inq, 16\n    add               outq, 3*32*2*4\n    sub                 id, 4\n    jg .loop16\n    RET\n\nalign 16\n.loop8:\n    mov               in0q, inq\n    mov               in1q, 38*64*4\n    add               in1q, in0q\n    mov               tmpd, lend\n\n.inner_loop8:\n    movlps              m0, [in0q]\n    movlps              m1, [in1q]\n    movhps              m0, [in0q+lenq]\n    movhps              m1, [in1q+lenq]\n    SBUTTERFLYPS 0, 1, 2\n    SBUTTERFLYPD 0, 1, 2\n    movaps          [outq], m0\n    movaps     [outq+lenq], m1\n    lea               in0q, [in0q+lenq*2]\n    lea               in1q, [in1q+lenq*2]\n    add               outq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop8\n    add                inq, 8\n    add               outq, lenq\n    sub                 id, 2\n    jg .loop16\n    RET\n\nalign 16\n.loop4:\n    mov               in0q, inq\n    mov               in1q, 38*64*4\n    add               in1q, in0q\n    mov               tmpd, lend\n\n.inner_loop4:\n    movss               m0, [in0q]\n    movss               m1, [in1q]\n    movss               m2, [in0q+lenq]\n    movss               m3, [in1q+lenq]\n    movlhps             m0, m1\n    movlhps             m2, m3\n    shufps              m0, m2, q2020", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:7", "text": "add               outq, lenq\n    sub                 id, 2\n    jg .loop16\n    RET\n\nalign 16\n.loop4:\n    mov               in0q, inq\n    mov               in1q, 38*64*4\n    add               in1q, in0q\n    mov               tmpd, lend\n\n.inner_loop4:\n    movss               m0, [in0q]\n    movss               m1, [in1q]\n    movss               m2, [in0q+lenq]\n    movss               m3, [in1q+lenq]\n    movlhps             m0, m1\n    movlhps             m2, m3\n    shufps              m0, m2, q2020\n    movaps          [outq], m0\n    lea               in0q, [in0q+lenq*2]\n    lea               in1q, [in1q+lenq*2]\n    add               outq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop4\n    add                inq, 4\n    sub                 id, 1\n    test                id, 2\n    jne .loop8\n    cmp                 id, 4\n    jge .loop16\n    RET\n\n;***********************************************************\n;void ps_hybrid_synthesis_deint_sse4(float out[2][38][64],\n;                                    float (*in)[32][2],\n;                                    int i, int len)\n;***********************************************************\n%macro HYBRID_SYNTHESIS_DEINT 0\ncglobal ps_hybrid_synthesis_deint, 3, 7, 5, out, in, i, len, out0, out1, tmp\n%if cpuflag(sse4)\n%define MOVH movsd\n%else\n%define MOVH movlps\n%endif\n    movsxdifnidn        iq, id\n    mov               lend, 32 << 3\n    lea               outq, [outq+iq*4]\n    mov               tmpd, id\n    shl               tmpd, 8\n    add                inq, tmpq\n    mov               tmpd, 64\n    sub               tmpd, id\n    mov                 id, tmpd\n\n    test                id, 1\n    jne .loop4\n    test                id, 2\n    jne .loop8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:8", "text": "cglobal ps_hybrid_synthesis_deint, 3, 7, 5, out, in, i, len, out0, out1, tmp\n%if cpuflag(sse4)\n%define MOVH movsd\n%else\n%define MOVH movlps\n%endif\n    movsxdifnidn        iq, id\n    mov               lend, 32 << 3\n    lea               outq, [outq+iq*4]\n    mov               tmpd, id\n    shl               tmpd, 8\n    add                inq, tmpq\n    mov               tmpd, 64\n    sub               tmpd, id\n    mov                 id, tmpd\n\n    test                id, 1\n    jne .loop4\n    test                id, 2\n    jne .loop8\n\nalign 16\n.loop16:\n    mov              out0q, outq\n    mov              out1q, 38*64*4\n    add              out1q, out0q\n    mov               tmpd, lend\n\n.inner_loop16:\n    movaps              m0, [inq]\n    movaps              m1, [inq+lenq]\n    movaps              m2, [inq+lenq*2]\n    movaps              m3, [inq+3*32*2*4]\n    TRANSPOSE4x4PS 0, 1, 2, 3, 4\n    movaps         [out0q], m0\n    movaps         [out1q], m1\n    movaps    [out0q+lenq], m2\n    movaps    [out1q+lenq], m3\n    lea              out0q, [out0q+lenq*2]\n    lea              out1q, [out1q+lenq*2]\n    add                inq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop16\n    add               outq, 16\n    add                inq, 3*32*2*4\n    sub                 id, 4\n    jg .loop16\n    RET\n\nalign 16\n.loop8:\n    mov              out0q, outq\n    mov              out1q, 38*64*4\n    add              out1q, out0q\n    mov               tmpd, lend\n\n.inner_loop8:\n    movaps              m0, [inq]\n    movaps              m1, [inq+lenq]\n    SBUTTERFLYPS 0, 1, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:9", "text": "add                inq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop16\n    add               outq, 16\n    add                inq, 3*32*2*4\n    sub                 id, 4\n    jg .loop16\n    RET\n\nalign 16\n.loop8:\n    mov              out0q, outq\n    mov              out1q, 38*64*4\n    add              out1q, out0q\n    mov               tmpd, lend\n\n.inner_loop8:\n    movaps              m0, [inq]\n    movaps              m1, [inq+lenq]\n    SBUTTERFLYPS 0, 1, 2\n    SBUTTERFLYPD 0, 1, 2\n    MOVH           [out0q], m0\n    MOVH           [out1q], m1\n    movhps    [out0q+lenq], m0\n    movhps    [out1q+lenq], m1\n    lea              out0q, [out0q+lenq*2]\n    lea              out1q, [out1q+lenq*2]\n    add                inq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop8\n    add               outq, 8\n    add                inq, lenq\n    sub                 id, 2\n    jg .loop16\n    RET\n\nalign 16\n.loop4:\n    mov              out0q, outq\n    mov              out1q, 38*64*4\n    add              out1q, out0q\n    mov               tmpd, lend\n\n.inner_loop4:\n    movaps              m0, [inq]\n    movss          [out0q], m0\n%if cpuflag(sse4)\n    extractps      [out1q], m0, 1\n    extractps [out0q+lenq], m0, 2\n    extractps [out1q+lenq], m0, 3\n%else\n    movhlps             m1, m0\n    movss     [out0q+lenq], m1\n    shufps              m0, m0, 0xb1\n    movss          [out1q], m0\n    movhlps             m1, m0\n    movss     [out1q+lenq], m1\n%endif\n    lea              out0q, [out0q+lenq*2]\n    lea              out1q, [out1q+lenq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:10", "text": "add              out1q, out0q\n    mov               tmpd, lend\n\n.inner_loop4:\n    movaps              m0, [inq]\n    movss          [out0q], m0\n%if cpuflag(sse4)\n    extractps      [out1q], m0, 1\n    extractps [out0q+lenq], m0, 2\n    extractps [out1q+lenq], m0, 3\n%else\n    movhlps             m1, m0\n    movss     [out0q+lenq], m1\n    shufps              m0, m0, 0xb1\n    movss          [out1q], m0\n    movhlps             m1, m0\n    movss     [out1q+lenq], m1\n%endif\n    lea              out0q, [out0q+lenq*2]\n    lea              out1q, [out1q+lenq*2]\n    add                inq, mmsize\n    sub               tmpd, mmsize\n    jg .inner_loop4\n    add               outq, 4\n    sub                 id, 1\n    test                id, 2\n    jne .loop8\n    cmp                 id, 4\n    jge .loop16\n    RET\n%endmacro\n\nINIT_XMM sse\nHYBRID_SYNTHESIS_DEINT\nINIT_XMM sse4\nHYBRID_SYNTHESIS_DEINT\n\n;*******************************************************************\n;void ff_ps_hybrid_analysis_<opt>(float (*out)[2], float (*in)[2],\n;                                 const float (*filter)[8][2],\n;                                 ptrdiff_t stride, int n);\n;*******************************************************************\n%macro PS_HYBRID_ANALYSIS_IN 1\n    movu     m0, [inq+mmsize*%1]\n    movu     m1, [inq+mmsize*(5-%1)+8]\n    shufps   m3, m0, m0, q2301\n    shufps   m4, m1, m1, q0123\n    shufps   m1, m1, q1032\n%if cpuflag(sse3)\n    addsubps m3, m4\n    addsubps m0, m1\n%else\n    xorps    m4, m7\n    xorps    m1, m7\n    subps    m3, m4\n    subps    m0, m1\n%endif\n    mova  [rsp+mmsize*%1*2], m3\n    mova  [rsp+mmsize+mmsize*%1*2], m0\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:11", "text": ";                                 ptrdiff_t stride, int n);\n;*******************************************************************\n%macro PS_HYBRID_ANALYSIS_IN 1\n    movu     m0, [inq+mmsize*%1]\n    movu     m1, [inq+mmsize*(5-%1)+8]\n    shufps   m3, m0, m0, q2301\n    shufps   m4, m1, m1, q0123\n    shufps   m1, m1, q1032\n%if cpuflag(sse3)\n    addsubps m3, m4\n    addsubps m0, m1\n%else\n    xorps    m4, m7\n    xorps    m1, m7\n    subps    m3, m4\n    subps    m0, m1\n%endif\n    mova  [rsp+mmsize*%1*2], m3\n    mova  [rsp+mmsize+mmsize*%1*2], m0\n%endmacro\n\n%macro PS_HYBRID_ANALYSIS_LOOP 3\n    mova     m2, [filterq+nq+mmsize*%3]\n    shufps   m2, m2, q2301\n%if cpuflag(fma3)\n%if %3\n    fmaddps  m3, m2, [rsp+mmsize*%3*2], m3\n    fmaddps  m0, m2, [rsp+mmsize+mmsize*%3*2], m0\n%else\n    mulps    m3, m2, [rsp]\n    mulps    m0, m2, [rsp+mmsize]\n%endif\n%else ; cpuflag(sse)\n    mova     %2, [rsp+mmsize*%3*2]\n    mova     %1, [rsp+mmsize+mmsize*%3*2]\n    mulps    %2, m2\n    mulps    %1, m2\n%if %3\n    addps    m3, %2\n    addps    m0, %1\n%endif\n%endif\n%endmacro\n\n%macro PS_HYBRID_ANALYSIS 0\ncglobal ps_hybrid_analysis, 5, 5, 5 + notcpuflag(fma3) * 3, 24 * 4, out, in, filter, stride, n\n%if cpuflag(sse3)\n%define MOVH movsd\n%else\n%define MOVH movlps\n    mova m7, [ps_p1m1p1m1]\n%endif\n    shl strideq, 3\n    shl nd, 6\n    add filterq, nq\n    neg nq\n    PS_HYBRID_ANALYSIS_IN 0\n    PS_HYBRID_ANALYSIS_IN 1\n    PS_HYBRID_ANALYSIS_IN 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:12", "text": "%endif\n%endif\n%endmacro\n\n%macro PS_HYBRID_ANALYSIS 0\ncglobal ps_hybrid_analysis, 5, 5, 5 + notcpuflag(fma3) * 3, 24 * 4, out, in, filter, stride, n\n%if cpuflag(sse3)\n%define MOVH movsd\n%else\n%define MOVH movlps\n    mova m7, [ps_p1m1p1m1]\n%endif\n    shl strideq, 3\n    shl nd, 6\n    add filterq, nq\n    neg nq\n    PS_HYBRID_ANALYSIS_IN 0\n    PS_HYBRID_ANALYSIS_IN 1\n    PS_HYBRID_ANALYSIS_IN 2\n\nalign 16\n.loop:\n    PS_HYBRID_ANALYSIS_LOOP m0, m3, 0\n    PS_HYBRID_ANALYSIS_LOOP m5, m6, 1\n    PS_HYBRID_ANALYSIS_LOOP m5, m6, 2\n\n    shufps   m1, m3, m3, q2301\n    shufps   m2, m0, m0, q2301\n    subps    m1, m3\n    addps    m2, m0\n    unpcklps m3, m1, m2\n    unpckhps m1, m2\n    addps    m1, m3\n    movu     m2, [inq+6*8] ; faster than movlps and no risk of overread\n    movss    m3, [filterq+nq+8*6]\n    SPLATD   m3\n%if cpuflag(fma3)\n    fmaddps  m1, m2, m3, m1\n%else\n    mulps    m2, m3\n    addps    m1, m2\n%endif\n    MOVH [outq], m1\n    add    outq, strideq\n    add      nq, 64\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nPS_HYBRID_ANALYSIS\nINIT_XMM fma3\nPS_HYBRID_ANALYSIS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 441, "line_end": 493}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/aacpsdsp.asm:13", "text": "addps    m1, m2\n%endif\n    MOVH [outq], m1\n    add    outq, strideq\n    add      nq, 64\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nPS_HYBRID_ANALYSIS\nINIT_XMM fma3\nPS_HYBRID_ANALYSIS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/aacpsdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/aacpsdsp.asm", "line_start": 481, "line_end": 493}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized AC-3 DSP functions\n;* Copyright (c) 2011 Justin Ruggles\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n; 16777216.0f - used in ff_float_to_fixed24()\npf_1_24: times 4 dd 0x4B800000\n\n; used in ff_ac3_compute_mantissa_size()\ncextern ac3_bap_bits\npw_bap_mul1: dw 21846, 21846, 0, 32768, 21846, 21846, 0, 32768\npw_bap_mul2: dw 5, 7, 0, 7, 5, 7, 0, 7\n\n; used in ff_ac3_extract_exponents()\ncextern pd_1\npd_151: times 4 dd 151\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_ac3_exponent_min(uint8_t *exp, int num_reuse_blocks, int nb_coefs)\n;-----------------------------------------------------------------------------\n\n%macro AC3_EXPONENT_MIN 0\ncglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset\n    shl  reuse_blksd, 8\n    jz .end\n    LOOP_ALIGN\n.nextexp:\n    mov      offsetq, reuse_blksq\n    mova          m0, [expq+offsetq]\n    sub      offsetq, 256\n    LOOP_ALIGN\n.nextblk:\n    PMINUB        m0, [expq+offsetq], m1\n    sub      offsetq, 256\n    jae .nextblk\n    mova      [expq], m0\n    add         expq, mmsize\n    sub        expnd, mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:2", "text": "; void ff_ac3_exponent_min(uint8_t *exp, int num_reuse_blocks, int nb_coefs)\n;-----------------------------------------------------------------------------\n\n%macro AC3_EXPONENT_MIN 0\ncglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset\n    shl  reuse_blksd, 8\n    jz .end\n    LOOP_ALIGN\n.nextexp:\n    mov      offsetq, reuse_blksq\n    mova          m0, [expq+offsetq]\n    sub      offsetq, 256\n    LOOP_ALIGN\n.nextblk:\n    PMINUB        m0, [expq+offsetq], m1\n    sub      offsetq, 256\n    jae .nextblk\n    mova      [expq], m0\n    add         expq, mmsize\n    sub        expnd, mmsize\n    jg .nextexp\n.end:\n    RET\n%endmacro\n\n%define LOOP_ALIGN ALIGN 16\n%if HAVE_SSE2_EXTERNAL\nINIT_XMM sse2\nAC3_EXPONENT_MIN\n%endif\n%undef LOOP_ALIGN\n\n;-----------------------------------------------------------------------------\n; void ff_float_to_fixed24(int32_t *dst, const float *src, size_t len)\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal float_to_fixed24, 3, 3, 9, dst, src, len\n    movaps     m0, [pf_1_24]\n    shl      lenq, 2\n    add      srcq, lenq\n    add      dstq, lenq\n    neg      lenq\n.loop:\n    movaps     m1, [srcq+lenq    ]\n    movaps     m2, [srcq+lenq+16 ]\n    movaps     m3, [srcq+lenq+32 ]\n    movaps     m4, [srcq+lenq+48 ]\n%ifdef m8\n    movaps     m5, [srcq+lenq+64 ]\n    movaps     m6, [srcq+lenq+80 ]\n    movaps     m7, [srcq+lenq+96 ]\n    movaps     m8, [srcq+lenq+112]\n%endif\n    mulps      m1, m0\n    mulps      m2, m0\n    mulps      m3, m0\n    mulps      m4, m0\n%ifdef m8\n    mulps      m5, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:3", "text": "add      srcq, lenq\n    add      dstq, lenq\n    neg      lenq\n.loop:\n    movaps     m1, [srcq+lenq    ]\n    movaps     m2, [srcq+lenq+16 ]\n    movaps     m3, [srcq+lenq+32 ]\n    movaps     m4, [srcq+lenq+48 ]\n%ifdef m8\n    movaps     m5, [srcq+lenq+64 ]\n    movaps     m6, [srcq+lenq+80 ]\n    movaps     m7, [srcq+lenq+96 ]\n    movaps     m8, [srcq+lenq+112]\n%endif\n    mulps      m1, m0\n    mulps      m2, m0\n    mulps      m3, m0\n    mulps      m4, m0\n%ifdef m8\n    mulps      m5, m0\n    mulps      m6, m0\n    mulps      m7, m0\n    mulps      m8, m0\n%endif\n    cvtps2dq   m1, m1\n    cvtps2dq   m2, m2\n    cvtps2dq   m3, m3\n    cvtps2dq   m4, m4\n%ifdef m8\n    cvtps2dq   m5, m5\n    cvtps2dq   m6, m6\n    cvtps2dq   m7, m7\n    cvtps2dq   m8, m8\n%endif\n    movdqa  [dstq+lenq    ], m1\n    movdqa  [dstq+lenq+16 ], m2\n    movdqa  [dstq+lenq+32 ], m3\n    movdqa  [dstq+lenq+48 ], m4\n%ifdef m8\n    movdqa  [dstq+lenq+64 ], m5\n    movdqa  [dstq+lenq+80 ], m6\n    movdqa  [dstq+lenq+96 ], m7\n    movdqa  [dstq+lenq+112], m8\n    add      lenq, 128\n%else\n    add      lenq, 64\n%endif\n    jl .loop\n    RET\n\nINIT_YMM avx\ncglobal float_to_fixed24, 3, 3, 5, dst, src, len\n    vbroadcastf128 m0, [pf_1_24]\n    shl      lenq, 2\n    add      srcq, lenq\n    add      dstq, lenq\n    neg      lenq\n.loop:\n    mulps      m1, m0, [srcq+lenq+mmsize*0]\n    mulps      m2, m0, [srcq+lenq+mmsize*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:4", "text": "movdqa  [dstq+lenq+80 ], m6\n    movdqa  [dstq+lenq+96 ], m7\n    movdqa  [dstq+lenq+112], m8\n    add      lenq, 128\n%else\n    add      lenq, 64\n%endif\n    jl .loop\n    RET\n\nINIT_YMM avx\ncglobal float_to_fixed24, 3, 3, 5, dst, src, len\n    vbroadcastf128 m0, [pf_1_24]\n    shl      lenq, 2\n    add      srcq, lenq\n    add      dstq, lenq\n    neg      lenq\n.loop:\n    mulps      m1, m0, [srcq+lenq+mmsize*0]\n    mulps      m2, m0, [srcq+lenq+mmsize*1]\n    mulps      m3, m0, [srcq+lenq+mmsize*2]\n    mulps      m4, m0, [srcq+lenq+mmsize*3]\n    cvtps2dq   m1, m1\n    cvtps2dq   m2, m2\n    cvtps2dq   m3, m3\n    cvtps2dq   m4, m4\n    mova  [dstq+lenq+mmsize*0], m1\n    mova  [dstq+lenq+mmsize*1], m2\n    mova  [dstq+lenq+mmsize*2], m3\n    mova  [dstq+lenq+mmsize*3], m4\n    add      lenq, mmsize*4\n    jl .loop\n    RET\n\n;------------------------------------------------------------------------------\n; int ff_ac3_compute_mantissa_size(uint16_t mant_cnt[6][16])\n;------------------------------------------------------------------------------\n\n%macro PHADDD4 2 ; xmm src, xmm tmp\n    movhlps  %2, %1\n    paddd    %1, %2\n    pshufd   %2, %1, 0x1\n    paddd    %1, %2\n%endmacro\n\nINIT_XMM sse2\ncglobal ac3_compute_mantissa_size, 1, 2, 4, mant_cnt, sum\n    movdqa      m0, [mant_cntq      ]\n    movdqa      m1, [mant_cntq+ 1*16]\n    paddw       m0, [mant_cntq+ 2*16]\n    paddw       m1, [mant_cntq+ 3*16]\n    paddw       m0, [mant_cntq+ 4*16]\n    paddw       m1, [mant_cntq+ 5*16]\n    paddw       m0, [mant_cntq+ 6*16]\n    paddw       m1, [mant_cntq+ 7*16]\n    paddw       m0, [mant_cntq+ 8*16]\n    paddw       m1, [mant_cntq+ 9*16]\n    paddw       m0, [mant_cntq+10*16]\n    paddw       m1, [mant_cntq+11*16]\n    pmaddwd     m0, [ac3_bap_bits   ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:5", "text": "paddd    %1, %2\n    pshufd   %2, %1, 0x1\n    paddd    %1, %2\n%endmacro\n\nINIT_XMM sse2\ncglobal ac3_compute_mantissa_size, 1, 2, 4, mant_cnt, sum\n    movdqa      m0, [mant_cntq      ]\n    movdqa      m1, [mant_cntq+ 1*16]\n    paddw       m0, [mant_cntq+ 2*16]\n    paddw       m1, [mant_cntq+ 3*16]\n    paddw       m0, [mant_cntq+ 4*16]\n    paddw       m1, [mant_cntq+ 5*16]\n    paddw       m0, [mant_cntq+ 6*16]\n    paddw       m1, [mant_cntq+ 7*16]\n    paddw       m0, [mant_cntq+ 8*16]\n    paddw       m1, [mant_cntq+ 9*16]\n    paddw       m0, [mant_cntq+10*16]\n    paddw       m1, [mant_cntq+11*16]\n    pmaddwd     m0, [ac3_bap_bits   ]\n    pmaddwd     m1, [ac3_bap_bits+16]\n    paddd       m0, m1\n    PHADDD4     m0, m1\n    movd      sumd, m0\n    movdqa      m3, [pw_bap_mul1]\n    movhpd      m0, [mant_cntq     +2]\n    movlpd      m0, [mant_cntq+1*32+2]\n    movhpd      m1, [mant_cntq+2*32+2]\n    movlpd      m1, [mant_cntq+3*32+2]\n    movhpd      m2, [mant_cntq+4*32+2]\n    movlpd      m2, [mant_cntq+5*32+2]\n    pmulhuw     m0, m3\n    pmulhuw     m1, m3\n    pmulhuw     m2, m3\n    paddusw     m0, m1\n    paddusw     m0, m2\n    pmaddwd     m0, [pw_bap_mul2]\n    PHADDD4     m0, m1\n    movd       eax, m0\n    add        eax, sumd\n    RET\n\n;------------------------------------------------------------------------------\n; void ff_ac3_extract_exponents(uint8_t *exp, int32_t *coef, int nb_coefs)\n;------------------------------------------------------------------------------\n\n%macro PABSD 1-2 ; src/dst, unused\n%if cpuflag(ssse3)\n    pabsd    %1, %1\n%else ; src/dst, tmp\n    pxor     %2, %2\n    pcmpgtd  %2, %1\n    pxor     %1, %2\n    psubd    %1, %2\n%endif\n%endmacro\n\n%macro AC3_EXTRACT_EXPONENTS 0\ncglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len\n    movsxdifnidn lenq, lend", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:6", "text": "RET\n\n;------------------------------------------------------------------------------\n; void ff_ac3_extract_exponents(uint8_t *exp, int32_t *coef, int nb_coefs)\n;------------------------------------------------------------------------------\n\n%macro PABSD 1-2 ; src/dst, unused\n%if cpuflag(ssse3)\n    pabsd    %1, %1\n%else ; src/dst, tmp\n    pxor     %2, %2\n    pcmpgtd  %2, %1\n    pxor     %1, %2\n    psubd    %1, %2\n%endif\n%endmacro\n\n%macro AC3_EXTRACT_EXPONENTS 0\ncglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len\n    movsxdifnidn lenq, lend\n    add     expq, lenq\n    lea    coefq, [coefq+4*lenq]\n    neg     lenq\n    mova      m2, [pd_1]\n    mova      m3, [pd_151]\n.loop:\n    ; move 4 32-bit coefs to xmm0\n    mova      m0, [coefq+4*lenq]\n    ; absolute value\n    PABSD     m0, m1\n    ; convert to float and extract exponents\n    pslld     m0, 1\n    por       m0, m2\n    cvtdq2ps  m1, m0\n    psrld     m1, 23\n    mova      m0, m3\n    psubd     m0, m1\n    ; move the lowest byte in each of 4 dwords to the low dword\n    ; NOTE: We cannot just extract the low bytes with pshufb because the dword\n    ;       result for 16777215 is -1 due to float inaccuracy. Using packuswb\n    ;       clips this to 0, which is the correct exponent.\n    packssdw  m0, m0\n    packuswb  m0, m0\n    movd  [expq+lenq], m0\n\n    add     lenq, 4\n    jl .loop\n    RET\n%endmacro\n\n%if HAVE_SSE2_EXTERNAL\nINIT_XMM sse2\nAC3_EXTRACT_EXPONENTS\n%endif\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nAC3_EXTRACT_EXPONENTS\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 201, "line_end": 258}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:7", "text": ";       clips this to 0, which is the correct exponent.\n    packssdw  m0, m0\n    packuswb  m0, m0\n    movd  [expq+lenq], m0\n\n    add     lenq, 4\n    jl .loop\n    RET\n%endmacro\n\n%if HAVE_SSE2_EXTERNAL\nINIT_XMM sse2\nAC3_EXTRACT_EXPONENTS\n%endif\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nAC3_EXTRACT_EXPONENTS\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp.asm", "line_start": 241, "line_end": 258}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized AC-3 DSP functions\n;* Copyright (c) 2011 Justin Ruggles\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n; 16777216.0f - used in ff_float_to_fixed24()\npf_1_24: times 4 dd 0x4B800000\n\n; used in ff_ac3_compute_mantissa_size()\ncextern ac3_bap_bits\npw_bap_mul1: dw 21846, 21846, 0, 32768, 21846, 21846, 0, 32768\npw_bap_mul2: dw 5, 7, 0, 7, 5, 7, 0, 7\n\n; used in ff_ac3_extract_exponents()\ncextern pd_1\npd_151: times 4 dd 151\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_ac3_exponent_min(uint8_t *exp, int num_reuse_blocks, int nb_coefs)\n;-----------------------------------------------------------------------------\n\n%macro AC3_EXPONENT_MIN 0\ncglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset\n    shl  reuse_blksq, 8\n    jz .end\n    LOOP_ALIGN\n.nextexp:\n    mov      offsetq, reuse_blksq\n    mova          m0, [expq+offsetq]\n    sub      offsetq, 256\n    LOOP_ALIGN\n.nextblk:\n    PMINUB        m0, [expq+offsetq], m1\n    sub      offsetq, 256\n    jae .nextblk\n    mova      [expq], m0\n    add         expq, mmsize\n    sub        expnq, mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/ac3dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:2", "text": "; void ff_ac3_exponent_min(uint8_t *exp, int num_reuse_blocks, int nb_coefs)\n;-----------------------------------------------------------------------------\n\n%macro AC3_EXPONENT_MIN 0\ncglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset\n    shl  reuse_blksq, 8\n    jz .end\n    LOOP_ALIGN\n.nextexp:\n    mov      offsetq, reuse_blksq\n    mova          m0, [expq+offsetq]\n    sub      offsetq, 256\n    LOOP_ALIGN\n.nextblk:\n    PMINUB        m0, [expq+offsetq], m1\n    sub      offsetq, 256\n    jae .nextblk\n    mova      [expq], m0\n    add         expq, mmsize\n    sub        expnq, mmsize\n    jg .nextexp\n.end:\n    RET\n%endmacro\n\n%define LOOP_ALIGN ALIGN 16\n%if HAVE_SSE2_EXTERNAL\nINIT_XMM sse2\nAC3_EXPONENT_MIN\n%endif\n%undef LOOP_ALIGN\n\n;-----------------------------------------------------------------------------\n; void ff_float_to_fixed24(int32_t *dst, const float *src, unsigned int len)\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal float_to_fixed24, 3, 3, 9, dst, src, len\n    movaps     m0, [pf_1_24]\n    shl      lenq, 2\n    add      srcq, lenq\n    add      dstq, lenq\n    neg      lenq\n.loop:\n    movaps     m1, [srcq+lenq    ]\n    movaps     m2, [srcq+lenq+16 ]\n    movaps     m3, [srcq+lenq+32 ]\n    movaps     m4, [srcq+lenq+48 ]\n%ifdef m8\n    movaps     m5, [srcq+lenq+64 ]\n    movaps     m6, [srcq+lenq+80 ]\n    movaps     m7, [srcq+lenq+96 ]\n    movaps     m8, [srcq+lenq+112]\n%endif\n    mulps      m1, m0\n    mulps      m2, m0\n    mulps      m3, m0\n    mulps      m4, m0\n%ifdef m8\n    mulps      m5, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/ac3dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:5", "text": "paddd    %1, %2\n    pshufd   %2, %1, 0x1\n    paddd    %1, %2\n%endmacro\n\nINIT_XMM sse2\ncglobal ac3_compute_mantissa_size, 1, 2, 4, mant_cnt, sum\n    movdqa      m0, [mant_cntq      ]\n    movdqa      m1, [mant_cntq+ 1*16]\n    paddw       m0, [mant_cntq+ 2*16]\n    paddw       m1, [mant_cntq+ 3*16]\n    paddw       m0, [mant_cntq+ 4*16]\n    paddw       m1, [mant_cntq+ 5*16]\n    paddw       m0, [mant_cntq+ 6*16]\n    paddw       m1, [mant_cntq+ 7*16]\n    paddw       m0, [mant_cntq+ 8*16]\n    paddw       m1, [mant_cntq+ 9*16]\n    paddw       m0, [mant_cntq+10*16]\n    paddw       m1, [mant_cntq+11*16]\n    pmaddwd     m0, [ac3_bap_bits   ]\n    pmaddwd     m1, [ac3_bap_bits+16]\n    paddd       m0, m1\n    PHADDD4     m0, m1\n    movd      sumd, m0\n    movdqa      m3, [pw_bap_mul1]\n    movhpd      m0, [mant_cntq     +2]\n    movlpd      m0, [mant_cntq+1*32+2]\n    movhpd      m1, [mant_cntq+2*32+2]\n    movlpd      m1, [mant_cntq+3*32+2]\n    movhpd      m2, [mant_cntq+4*32+2]\n    movlpd      m2, [mant_cntq+5*32+2]\n    pmulhuw     m0, m3\n    pmulhuw     m1, m3\n    pmulhuw     m2, m3\n    paddusw     m0, m1\n    paddusw     m0, m2\n    pmaddwd     m0, [pw_bap_mul2]\n    PHADDD4     m0, m1\n    movd       eax, m0\n    add        eax, sumd\n    RET\n\n;------------------------------------------------------------------------------\n; void ff_ac3_extract_exponents(uint8_t *exp, int32_t *coef, int nb_coefs)\n;------------------------------------------------------------------------------\n\n%macro PABSD 1-2 ; src/dst, unused\n%if cpuflag(ssse3)\n    pabsd    %1, %1\n%else ; src/dst, tmp\n    pxor     %2, %2\n    pcmpgtd  %2, %1\n    pxor     %1, %2\n    psubd    %1, %2\n%endif\n%endmacro\n\n%macro AC3_EXTRACT_EXPONENTS 0\ncglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len\n    add     expq, lenq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/ac3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:6", "text": "RET\n\n;------------------------------------------------------------------------------\n; void ff_ac3_extract_exponents(uint8_t *exp, int32_t *coef, int nb_coefs)\n;------------------------------------------------------------------------------\n\n%macro PABSD 1-2 ; src/dst, unused\n%if cpuflag(ssse3)\n    pabsd    %1, %1\n%else ; src/dst, tmp\n    pxor     %2, %2\n    pcmpgtd  %2, %1\n    pxor     %1, %2\n    psubd    %1, %2\n%endif\n%endmacro\n\n%macro AC3_EXTRACT_EXPONENTS 0\ncglobal ac3_extract_exponents, 3, 3, 4, exp, coef, len\n    add     expq, lenq\n    lea    coefq, [coefq+4*lenq]\n    neg     lenq\n    mova      m2, [pd_1]\n    mova      m3, [pd_151]\n.loop:\n    ; move 4 32-bit coefs to xmm0\n    mova      m0, [coefq+4*lenq]\n    ; absolute value\n    PABSD     m0, m1\n    ; convert to float and extract exponents\n    pslld     m0, 1\n    por       m0, m2\n    cvtdq2ps  m1, m0\n    psrld     m1, 23\n    mova      m0, m3\n    psubd     m0, m1\n    ; move the lowest byte in each of 4 dwords to the low dword\n    ; NOTE: We cannot just extract the low bytes with pshufb because the dword\n    ;       result for 16777215 is -1 due to float inaccuracy. Using packuswb\n    ;       clips this to 0, which is the correct exponent.\n    packssdw  m0, m0\n    packuswb  m0, m0\n    movd  [expq+lenq], m0\n\n    add     lenq, 4\n    jl .loop\n    RET\n%endmacro\n\n%if HAVE_SSE2_EXTERNAL\nINIT_XMM sse2\nAC3_EXTRACT_EXPONENTS\n%endif\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nAC3_EXTRACT_EXPONENTS\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/ac3dsp.asm", "line_start": 201, "line_end": 257}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp.asm:7", "text": "packssdw  m0, m0\n    packuswb  m0, m0\n    movd  [expq+lenq], m0\n\n    add     lenq, 4\n    jl .loop\n    RET\n%endmacro\n\n%if HAVE_SSE2_EXTERNAL\nINIT_XMM sse2\nAC3_EXTRACT_EXPONENTS\n%endif\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nAC3_EXTRACT_EXPONENTS\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/ac3dsp.asm", "line_start": 241, "line_end": 257}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp_downmix.asm:1", "text": ";*****************************************************************************\n;* x86-optimized AC-3 downmixing\n;* Copyright (c) 2012 Justin Ruggles\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n;******************************************************************************\n;* This is based on the channel mixing asm in libavresample, but it is\n;* simplified for only float coefficients and only 3 to 6 channels.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; functions to downmix from 3 to 6 channels to mono or stereo\n; void ff_ac3_downmix_*(float **samples, float **matrix, int len);\n;-----------------------------------------------------------------------------\n\n%macro AC3_DOWNMIX 2 ; %1 = in channels, %2 = out channels\n; define some names to make the code clearer\n%assign  in_channels %1\n%assign out_channels %2\n%assign stereo out_channels - 1\n\n; determine how many matrix elements must go on the stack vs. mmregs\n%assign matrix_elements in_channels * out_channels\n%if stereo\n    %assign needed_mmregs 4\n%else\n    %assign needed_mmregs 3\n%endif\n%assign matrix_elements_mm num_mmregs - needed_mmregs\n%if matrix_elements < matrix_elements_mm\n    %assign matrix_elements_mm matrix_elements\n%endif\n%assign total_mmregs needed_mmregs+matrix_elements_mm\n%if matrix_elements_mm < matrix_elements\n    %assign matrix_elements_stack matrix_elements - matrix_elements_mm\n%else\n    %assign matrix_elements_stack 0\n%endif\n\ncglobal ac3_downmix_%1_to_%2, 3,in_channels+1,total_mmregs,0-matrix_elements_stack*mmsize, src0, src1, len, src2, src3, src4, src5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp_downmix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp_downmix.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp_downmix.asm:2", "text": "; determine how many matrix elements must go on the stack vs. mmregs\n%assign matrix_elements in_channels * out_channels\n%if stereo\n    %assign needed_mmregs 4\n%else\n    %assign needed_mmregs 3\n%endif\n%assign matrix_elements_mm num_mmregs - needed_mmregs\n%if matrix_elements < matrix_elements_mm\n    %assign matrix_elements_mm matrix_elements\n%endif\n%assign total_mmregs needed_mmregs+matrix_elements_mm\n%if matrix_elements_mm < matrix_elements\n    %assign matrix_elements_stack matrix_elements - matrix_elements_mm\n%else\n    %assign matrix_elements_stack 0\n%endif\n\ncglobal ac3_downmix_%1_to_%2, 3,in_channels+1,total_mmregs,0-matrix_elements_stack*mmsize, src0, src1, len, src2, src3, src4, src5\n\n; load matrix pointers\n%define matrix0q r1q\n%define matrix1q r3q\n%if stereo\n    mov      matrix1q, [matrix0q+gprsize]\n%endif\n    mov      matrix0q, [matrix0q]\n\n; define matrix coeff names\n%assign %%i 0\n%assign %%j needed_mmregs\n%rep in_channels\n    %if %%i >= matrix_elements_mm\n        CAT_XDEFINE mx_stack_0_, %%i, 1\n        CAT_XDEFINE mx_0_, %%i, [rsp+(%%i-matrix_elements_mm)*mmsize]\n    %else\n        CAT_XDEFINE mx_stack_0_, %%i, 0\n        CAT_XDEFINE mx_0_, %%i, m %+ %%j\n        %assign %%j %%j+1\n    %endif\n    %assign %%i %%i+1\n%endrep\n%if stereo\n%assign %%i 0\n%rep in_channels\n    %if in_channels + %%i >= matrix_elements_mm\n        CAT_XDEFINE mx_stack_1_, %%i, 1\n        CAT_XDEFINE mx_1_, %%i, [rsp+(in_channels+%%i-matrix_elements_mm)*mmsize]\n    %else\n        CAT_XDEFINE mx_stack_1_, %%i, 0\n        CAT_XDEFINE mx_1_, %%i, m %+ %%j\n        %assign %%j %%j+1\n    %endif\n    %assign %%i %%i+1\n%endrep\n%endif\n\n; load/splat matrix coeffs\n%assign %%i 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp_downmix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp_downmix.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp_downmix.asm:3", "text": "%endif\n    %assign %%i %%i+1\n%endrep\n%if stereo\n%assign %%i 0\n%rep in_channels\n    %if in_channels + %%i >= matrix_elements_mm\n        CAT_XDEFINE mx_stack_1_, %%i, 1\n        CAT_XDEFINE mx_1_, %%i, [rsp+(in_channels+%%i-matrix_elements_mm)*mmsize]\n    %else\n        CAT_XDEFINE mx_stack_1_, %%i, 0\n        CAT_XDEFINE mx_1_, %%i, m %+ %%j\n        %assign %%j %%j+1\n    %endif\n    %assign %%i %%i+1\n%endrep\n%endif\n\n; load/splat matrix coeffs\n%assign %%i 0\n%rep in_channels\n    %if mx_stack_0_ %+ %%i\n        VBROADCASTSS m0, [matrix0q+4*%%i]\n        mova  mx_0_ %+ %%i, m0\n    %else\n        VBROADCASTSS mx_0_ %+ %%i, [matrix0q+4*%%i]\n    %endif\n    %if stereo\n    %if mx_stack_1_ %+ %%i\n        VBROADCASTSS m0, [matrix1q+4*%%i]\n        mova  mx_1_ %+ %%i, m0\n    %else\n        VBROADCASTSS mx_1_ %+ %%i, [matrix1q+4*%%i]\n    %endif\n    %endif\n    %assign %%i %%i+1\n%endrep\n\n    lea          lenq, [4*r2d]\n    ; load channel pointers to registers\n%assign %%i 1\n%rep (in_channels - 1)\n    mov         src %+ %%i %+ q, [src0q+%%i*gprsize]\n    add         src %+ %%i %+ q, lenq\n    %assign %%i %%i+1\n%endrep\n    mov         src0q, [src0q]\n    add         src0q, lenq\n    neg          lenq\n.loop:\n    %if stereo || mx_stack_0_0\n    mova           m0, [src0q+lenq]\n    %endif\n    %if stereo\n    mulps          m1, m0, mx_1_0\n    %endif\n    %if stereo || mx_stack_0_0\n    mulps          m0, m0, mx_0_0\n    %else\n    mulps          m0, mx_0_0, [src0q+lenq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp_downmix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp_downmix.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp_downmix.asm:4", "text": "%assign %%i 1\n%rep (in_channels - 1)\n    mov         src %+ %%i %+ q, [src0q+%%i*gprsize]\n    add         src %+ %%i %+ q, lenq\n    %assign %%i %%i+1\n%endrep\n    mov         src0q, [src0q]\n    add         src0q, lenq\n    neg          lenq\n.loop:\n    %if stereo || mx_stack_0_0\n    mova           m0, [src0q+lenq]\n    %endif\n    %if stereo\n    mulps          m1, m0, mx_1_0\n    %endif\n    %if stereo || mx_stack_0_0\n    mulps          m0, m0, mx_0_0\n    %else\n    mulps          m0, mx_0_0, [src0q+lenq]\n    %endif\n%assign %%i 1\n%rep (in_channels - 1)\n    %define src_ptr src %+ %%i %+ q\n    ; avoid extra load for mono if matrix is in a mm register\n    %if stereo || mx_stack_0_ %+ %%i\n    mova           m2, [src_ptr+lenq]\n    %endif\n    %if stereo\n    FMULADD_PS     m1, m2, mx_1_ %+ %%i, m1, m3\n    %endif\n    %if stereo || mx_stack_0_ %+ %%i\n    FMULADD_PS     m0, m2, mx_0_ %+ %%i, m0, m2\n    %else\n    FMULADD_PS     m0, mx_0_ %+ %%i, [src_ptr+lenq], m0, m1\n    %endif\n    %assign %%i %%i+1\n%endrep\n    mova [src0q+lenq], m0\n    %if stereo\n    mova [src1q+lenq], m1\n    %endif\n\n    add          lenq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n%macro AC3_DOWNMIX_FUNCS 0\n%assign %%i 3\n%rep 4\n    INIT_XMM sse\n    AC3_DOWNMIX %%i, 1\n    AC3_DOWNMIX %%i, 2\n    INIT_YMM avx\n    AC3_DOWNMIX %%i, 1\n    AC3_DOWNMIX %%i, 2\n    %if HAVE_FMA3_EXTERNAL\n    INIT_YMM fma3\n    AC3_DOWNMIX %%i, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp_downmix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp_downmix.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ac3dsp_downmix.asm:5", "text": "mova [src1q+lenq], m1\n    %endif\n\n    add          lenq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n%macro AC3_DOWNMIX_FUNCS 0\n%assign %%i 3\n%rep 4\n    INIT_XMM sse\n    AC3_DOWNMIX %%i, 1\n    AC3_DOWNMIX %%i, 2\n    INIT_YMM avx\n    AC3_DOWNMIX %%i, 1\n    AC3_DOWNMIX %%i, 2\n    %if HAVE_FMA3_EXTERNAL\n    INIT_YMM fma3\n    AC3_DOWNMIX %%i, 1\n    AC3_DOWNMIX %%i, 2\n    %endif\n    %assign %%i %%i+1\n%endrep\n%endmacro\n\nAC3_DOWNMIX_FUNCS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ac3dsp_downmix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ac3dsp_downmix.asm", "line_start": 161, "line_end": 187}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/alacdsp.asm:1", "text": ";******************************************************************************\n;* ALAC DSP SIMD optimizations\n;*\n;* Copyright (C) 2015 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse4\n%if ARCH_X86_64\ncglobal alac_decorrelate_stereo, 2, 5, 8, buf0, len, shift, weight, buf1\n%else\ncglobal alac_decorrelate_stereo, 2, 3, 8, buf0, len, shift, weight\n%define  buf1q  r2q\n%endif\n    movd    m6, shiftm\n    movd    m7, weightm\n    SPLATD  m7\n    shl   lend, 2\n    mov  buf1q, [buf0q + gprsize]\n    mov  buf0q, [buf0q]\n    add  buf1q, lenq\n    add  buf0q, lenq\n    neg  lenq\n\nalign 16\n.loop:\n    mova    m0, [buf0q + lenq]\n    mova    m1, [buf0q + lenq + mmsize]\n    mova    m2, [buf1q + lenq]\n    mova    m3, [buf1q + lenq + mmsize]\n    pmulld  m4, m2, m7\n    pmulld  m5, m3, m7\n    psrad   m4, m6\n    psrad   m5, m6\n    psubd   m0, m4\n    psubd   m1, m5\n    paddd   m2, m0\n    paddd   m3, m1\n    mova [buf1q + lenq], m0\n    mova [buf1q + lenq + mmsize], m1\n    mova [buf0q + lenq], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/alacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/alacdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/alacdsp.asm:2", "text": "add  buf0q, lenq\n    neg  lenq\n\nalign 16\n.loop:\n    mova    m0, [buf0q + lenq]\n    mova    m1, [buf0q + lenq + mmsize]\n    mova    m2, [buf1q + lenq]\n    mova    m3, [buf1q + lenq + mmsize]\n    pmulld  m4, m2, m7\n    pmulld  m5, m3, m7\n    psrad   m4, m6\n    psrad   m5, m6\n    psubd   m0, m4\n    psubd   m1, m5\n    paddd   m2, m0\n    paddd   m3, m1\n    mova [buf1q + lenq], m0\n    mova [buf1q + lenq + mmsize], m1\n    mova [buf0q + lenq], m2\n    mova [buf0q + lenq + mmsize], m3\n\n    add   lenq, mmsize*2\n    jl .loop\n    RET\n\nINIT_XMM sse2\ncglobal alac_append_extra_bits_stereo, 2, 5, 5, buf0, exbuf0, buf1, exbuf1, len\n    movifnidn lend, lenm\n    movd      m4, r2m ; exbits\n    shl     lend, 2\n    mov    buf1q, [buf0q + gprsize]\n    mov    buf0q, [buf0q]\n    mov  exbuf1q, [exbuf0q + gprsize]\n    mov  exbuf0q, [exbuf0q]\n    add    buf1q, lenq\n    add    buf0q, lenq\n    add  exbuf1q, lenq\n    add  exbuf0q, lenq\n    neg lenq\n\nalign 16\n.loop:\n    mova      m0, [buf0q + lenq]\n    mova      m1, [buf0q + lenq + mmsize]\n    pslld     m0, m4\n    pslld     m1, m4\n    mova      m2, [buf1q + lenq]\n    mova      m3, [buf1q + lenq + mmsize]\n    pslld     m2, m4\n    pslld     m3, m4\n    por       m0, [exbuf0q + lenq]\n    por       m1, [exbuf0q + lenq + mmsize]\n    por       m2, [exbuf1q + lenq]\n    por       m3, [exbuf1q + lenq + mmsize]\n    mova [buf0q + lenq         ], m0\n    mova [buf0q + lenq + mmsize], m1\n    mova [buf1q + lenq         ], m2\n    mova [buf1q + lenq + mmsize], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/alacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/alacdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/alacdsp.asm:3", "text": "align 16\n.loop:\n    mova      m0, [buf0q + lenq]\n    mova      m1, [buf0q + lenq + mmsize]\n    pslld     m0, m4\n    pslld     m1, m4\n    mova      m2, [buf1q + lenq]\n    mova      m3, [buf1q + lenq + mmsize]\n    pslld     m2, m4\n    pslld     m3, m4\n    por       m0, [exbuf0q + lenq]\n    por       m1, [exbuf0q + lenq + mmsize]\n    por       m2, [exbuf1q + lenq]\n    por       m3, [exbuf1q + lenq + mmsize]\n    mova [buf0q + lenq         ], m0\n    mova [buf0q + lenq + mmsize], m1\n    mova [buf1q + lenq         ], m2\n    mova [buf1q + lenq + mmsize], m3\n\n    add     lenq, mmsize*2\n    jl .loop\n    RET\n\n%if ARCH_X86_64\ncglobal alac_append_extra_bits_mono, 2, 5, 3, buf, exbuf, exbits, ch, len\n%else\ncglobal alac_append_extra_bits_mono, 2, 3, 3, buf, exbuf, len\n%define exbitsm r2m\n%endif\n    movifnidn lend, r4m\n    movd     m2, exbitsm\n    shl    lend, 2\n    mov    bufq, [bufq]\n    mov  exbufq, [exbufq]\n    add    bufq, lenq\n    add  exbufq, lenq\n    neg lenq\n\nalign 16\n.loop:\n    mova      m0, [bufq + lenq]\n    mova      m1, [bufq + lenq + mmsize]\n    pslld     m0, m2\n    pslld     m1, m2\n    por       m0, [exbufq + lenq]\n    por       m1, [exbufq + lenq + mmsize]\n    mova [bufq + lenq], m0\n    mova [bufq + lenq + mmsize], m1\n\n    add     lenq, mmsize*2\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/alacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/alacdsp.asm", "line_start": 81, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/alacdsp.asm:4", "text": ".loop:\n    mova      m0, [bufq + lenq]\n    mova      m1, [bufq + lenq + mmsize]\n    pslld     m0, m2\n    pslld     m1, m2\n    por       m0, [exbufq + lenq]\n    por       m1, [exbufq + lenq + mmsize]\n    mova [bufq + lenq], m0\n    mova [bufq + lenq + mmsize], m1\n\n    add     lenq, mmsize*2\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/alacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/alacdsp.asm", "line_start": 121, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:1", "text": ";************************************************************************\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA 32\n\n; Full matrix for row transform.\ntmatrix_row:\n    dw  64,  89,  84,  75,  64,  50,  35,  18\n    dw  64, -18, -84,  50,  64, -75, -35,  89\n    dw  64,  75,  35, -18, -64, -89, -84, -50\n    dw  64, -50, -35,  89, -64, -18,  84, -75\n    dw  64,  50, -35, -89, -64,  18,  84,  75\n    dw  64, -75,  35,  18, -64,  89, -84,  50\n    dw  64,  18, -84, -50,  64,  75, -35, -89\n    dw  64, -89,  84, -75,  64, -50,  35, -18\n\n; Constant pairs for broadcast in column transform.\ntmatrix_col_even:\n    dw  64,  64,  64, -64\n    dw  84,  35,  35, -84\ntmatrix_col_odd:\n    dw  89,  75,  50,  18\n    dw  75, -18, -89, -50\n    dw  50, -89,  18,  75\n    dw  18, -50,  75, -89\n\n; Memory targets for vpbroadcastd (register version requires AVX512).\ncextern pd_1\ncextern pd_64\n\nSECTION .text\n\n; void ff_apv_decode_transquant_avx2(void *output,\n;                                    ptrdiff_t pitch,\n;                                    const int16_t *input,\n;                                    const int16_t *qmatrix,\n;                                    int bit_depth,\n;                                    int qp_shift);\n\nINIT_YMM avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:2", "text": "dw  89,  75,  50,  18\n    dw  75, -18, -89, -50\n    dw  50, -89,  18,  75\n    dw  18, -50,  75, -89\n\n; Memory targets for vpbroadcastd (register version requires AVX512).\ncextern pd_1\ncextern pd_64\n\nSECTION .text\n\n; void ff_apv_decode_transquant_avx2(void *output,\n;                                    ptrdiff_t pitch,\n;                                    const int16_t *input,\n;                                    const int16_t *qmatrix,\n;                                    int bit_depth,\n;                                    int qp_shift);\n\nINIT_YMM avx2\n\ncglobal apv_decode_transquant, 5, 7, 16, output, pitch, input, qmatrix, bit_depth, qp_shift, tmp\n\n    ; Load input and dequantise\n\n    vpbroadcastd  m10, [pd_1]\n    lea       tmpd, [bit_depthd - 2]\n    movd      xm8, qp_shiftm\n    movd      xm9, tmpd\n    vpslld    m10, m10, xm9\n    vpsrld    m10, m10, 1\n\n    ; m8  = scalar qp_shift\n    ; m9  = scalar bd_shift\n    ; m10 = vector 1 << (bd_shift - 1)\n    ; m11 = qmatrix load\n\n%macro LOAD_AND_DEQUANT 2 ; (xmm input, constant offset)\n    vpmovsxwd m%1, [inputq   + %2]\n    vpmovsxwd m11, [qmatrixq + %2]\n    vpmaddwd  m%1, m%1, m11\n    vpslld    m%1, m%1, xm8\n    vpaddd    m%1, m%1, m10\n    vpsrad    m%1, m%1, xm9\n    vpackssdw m%1, m%1, m%1\n%endmacro\n\n    LOAD_AND_DEQUANT 0, 0x00\n    LOAD_AND_DEQUANT 1, 0x10\n    LOAD_AND_DEQUANT 2, 0x20\n    LOAD_AND_DEQUANT 3, 0x30\n    LOAD_AND_DEQUANT 4, 0x40\n    LOAD_AND_DEQUANT 5, 0x50\n    LOAD_AND_DEQUANT 6, 0x60\n    LOAD_AND_DEQUANT 7, 0x70\n\n    ; mN = row N words 0 1 2 3 0 1 2 3 4 5 6 7 4 5 6 7\n\n    ; Transform columns\n    ; This applies a 1-D DCT butterfly", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:3", "text": "vpslld    m%1, m%1, xm8\n    vpaddd    m%1, m%1, m10\n    vpsrad    m%1, m%1, xm9\n    vpackssdw m%1, m%1, m%1\n%endmacro\n\n    LOAD_AND_DEQUANT 0, 0x00\n    LOAD_AND_DEQUANT 1, 0x10\n    LOAD_AND_DEQUANT 2, 0x20\n    LOAD_AND_DEQUANT 3, 0x30\n    LOAD_AND_DEQUANT 4, 0x40\n    LOAD_AND_DEQUANT 5, 0x50\n    LOAD_AND_DEQUANT 6, 0x60\n    LOAD_AND_DEQUANT 7, 0x70\n\n    ; mN = row N words 0 1 2 3 0 1 2 3 4 5 6 7 4 5 6 7\n\n    ; Transform columns\n    ; This applies a 1-D DCT butterfly\n\n    vpunpcklwd  m12, m0,  m4\n    vpunpcklwd  m13, m2,  m6\n    vpunpcklwd  m14, m1,  m3\n    vpunpcklwd  m15, m5,  m7\n\n    ; m12 = rows 0 and 4 interleaved\n    ; m13 = rows 2 and 6 interleaved\n    ; m14 = rows 1 and 3 interleaved\n    ; m15 = rows 5 and 7 interleaved\n\n    lea         tmpq, [tmatrix_col_even]\n    vpbroadcastd   m0, [tmpq + 0x00]\n    vpbroadcastd   m1, [tmpq + 0x04]\n    vpbroadcastd   m2, [tmpq + 0x08]\n    vpbroadcastd   m3, [tmpq + 0x0c]\n\n    vpmaddwd  m4,  m12, m0\n    vpmaddwd  m5,  m12, m1\n    vpmaddwd  m6,  m13, m2\n    vpmaddwd  m7,  m13, m3\n    vpaddd    m8,  m4,  m6\n    vpaddd    m9,  m5,  m7\n    vpsubd    m10, m5,  m7\n    vpsubd    m11, m4,  m6\n\n    lea         tmpq, [tmatrix_col_odd]\n    vpbroadcastd   m0, [tmpq + 0x00]\n    vpbroadcastd   m1, [tmpq + 0x04]\n    vpbroadcastd   m2, [tmpq + 0x08]\n    vpbroadcastd   m3, [tmpq + 0x0c]\n\n    vpmaddwd  m4,  m14, m0\n    vpmaddwd  m5,  m15, m1\n    vpmaddwd  m6,  m14, m2\n    vpmaddwd  m7,  m15, m3\n    vpaddd    m12, m4,  m5\n    vpaddd    m13, m6,  m7\n\n    vpbroadcastd   m0, [tmpq + 0x10]\n    vpbroadcastd   m1, [tmpq + 0x14]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:4", "text": "vpaddd    m8,  m4,  m6\n    vpaddd    m9,  m5,  m7\n    vpsubd    m10, m5,  m7\n    vpsubd    m11, m4,  m6\n\n    lea         tmpq, [tmatrix_col_odd]\n    vpbroadcastd   m0, [tmpq + 0x00]\n    vpbroadcastd   m1, [tmpq + 0x04]\n    vpbroadcastd   m2, [tmpq + 0x08]\n    vpbroadcastd   m3, [tmpq + 0x0c]\n\n    vpmaddwd  m4,  m14, m0\n    vpmaddwd  m5,  m15, m1\n    vpmaddwd  m6,  m14, m2\n    vpmaddwd  m7,  m15, m3\n    vpaddd    m12, m4,  m5\n    vpaddd    m13, m6,  m7\n\n    vpbroadcastd   m0, [tmpq + 0x10]\n    vpbroadcastd   m1, [tmpq + 0x14]\n    vpbroadcastd   m2, [tmpq + 0x18]\n    vpbroadcastd   m3, [tmpq + 0x1c]\n\n    vpmaddwd  m4,  m14, m0\n    vpmaddwd  m5,  m15, m1\n    vpmaddwd  m6,  m14, m2\n    vpmaddwd  m7,  m15, m3\n    vpaddd    m14, m4,  m5\n    vpaddd    m15, m6,  m7\n\n    vpaddd    m0,  m8,  m12\n    vpaddd    m1,  m9,  m13\n    vpaddd    m2,  m10, m14\n    vpaddd    m3,  m11, m15\n    vpsubd    m4,  m11, m15\n    vpsubd    m5,  m10, m14\n    vpsubd    m6,  m9,  m13\n    vpsubd    m7,  m8,  m12\n\n    ; Mid-transform normalisation\n    ; Note that outputs here are fitted to 16 bits\n\n    vpbroadcastd  m8, [pd_64]\n\n%macro NORMALISE 1\n    vpaddd    m%1, m%1, m8\n    vpsrad    m%1, m%1, 7\n    vpackssdw m%1, m%1, m%1\n    vpermq    m%1, m%1, q3120\n%endmacro\n\n    NORMALISE 0\n    NORMALISE 1\n    NORMALISE 2\n    NORMALISE 3\n    NORMALISE 4\n    NORMALISE 5\n    NORMALISE 6\n    NORMALISE 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:5", "text": "; Note that outputs here are fitted to 16 bits\n\n    vpbroadcastd  m8, [pd_64]\n\n%macro NORMALISE 1\n    vpaddd    m%1, m%1, m8\n    vpsrad    m%1, m%1, 7\n    vpackssdw m%1, m%1, m%1\n    vpermq    m%1, m%1, q3120\n%endmacro\n\n    NORMALISE 0\n    NORMALISE 1\n    NORMALISE 2\n    NORMALISE 3\n    NORMALISE 4\n    NORMALISE 5\n    NORMALISE 6\n    NORMALISE 7\n\n    ; mN = row N words 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7\n\n    ; Transform rows\n    ; This multiplies the rows directly by the transform matrix,\n    ; avoiding the need to transpose anything\n\n    lea       tmpq, [tmatrix_row]\n    mova      m12, [tmpq + 0x00]\n    mova      m13, [tmpq + 0x20]\n    mova      m14, [tmpq + 0x40]\n    mova      m15, [tmpq + 0x60]\n\n%macro TRANS_ROW_STEP 1\n    vpmaddwd  m8,  m%1, m12\n    vpmaddwd  m9,  m%1, m13\n    vpmaddwd  m10, m%1, m14\n    vpmaddwd  m11, m%1, m15\n    vphaddd   m8,  m8,  m9\n    vphaddd   m10, m10, m11\n    vphaddd   m%1, m8,  m10\n%endmacro\n\n    TRANS_ROW_STEP 0\n    TRANS_ROW_STEP 1\n    TRANS_ROW_STEP 2\n    TRANS_ROW_STEP 3\n    TRANS_ROW_STEP 4\n    TRANS_ROW_STEP 5\n    TRANS_ROW_STEP 6\n    TRANS_ROW_STEP 7\n\n    ; Renormalise, clip and store output\n\n    vpbroadcastd  m14, [pd_1]\n    mov       tmpd, 20\n    sub       tmpd, bit_depthd\n    movd      xm9, tmpd\n    dec       tmpd\n    movd      xm13, tmpd\n    movd      xm15, bit_depthd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:6", "text": "%endmacro\n\n    TRANS_ROW_STEP 0\n    TRANS_ROW_STEP 1\n    TRANS_ROW_STEP 2\n    TRANS_ROW_STEP 3\n    TRANS_ROW_STEP 4\n    TRANS_ROW_STEP 5\n    TRANS_ROW_STEP 6\n    TRANS_ROW_STEP 7\n\n    ; Renormalise, clip and store output\n\n    vpbroadcastd  m14, [pd_1]\n    mov       tmpd, 20\n    sub       tmpd, bit_depthd\n    movd      xm9, tmpd\n    dec       tmpd\n    movd      xm13, tmpd\n    movd      xm15, bit_depthd\n    vpslld    m8,  m14, xm13\n    vpslld    m12, m14, xm15\n    vpsrld    m10, m12, 1\n    vpsubd    m12, m12, m14\n\n    ; m8  = vector 1 << (bd_shift - 1)\n    ; m9  = scalar bd_shift\n    ; m10 = vector 1 << (bit_depth - 1)\n    ; m12 = vector (1 << bit_depth) - 1\n\n%macro NORMALISE_AND_STORE_10 2\n    vpaddd    m%1, m%1, m8\n    vpaddd    m%2, m%2, m8\n    vpsrad    m%1, m%1, xm9\n    vpsrad    m%2, m%2, xm9\n    vpaddd    m%1, m%1, m10\n    vpaddd    m%2, m%2, m10\n    vpminsd   m%1, m%1, m12\n    vpminsd   m%2, m%2, m12\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    vpackusdw m%1, m%1, m%2\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    vpermq    m%1, m%1, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    mova      [outputq], xm%1\n    vextracti128  [outputq + pitchq], m%1, 1\n    lea       outputq, [outputq + 2*pitchq]\n%endmacro\n\n    NORMALISE_AND_STORE_10 0, 1\n    NORMALISE_AND_STORE_10 2, 3\n    NORMALISE_AND_STORE_10 4, 5\n    NORMALISE_AND_STORE_10 6, 7\n\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 201, "line_end": 258}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:7", "text": "; m%2 = B0-3 B4-7\n    vpackusdw m%1, m%1, m%2\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    vpermq    m%1, m%1, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    mova      [outputq], xm%1\n    vextracti128  [outputq + pitchq], m%1, 1\n    lea       outputq, [outputq + 2*pitchq]\n%endmacro\n\n    NORMALISE_AND_STORE_10 0, 1\n    NORMALISE_AND_STORE_10 2, 3\n    NORMALISE_AND_STORE_10 4, 5\n    NORMALISE_AND_STORE_10 6, 7\n\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/apv_dsp.asm", "line_start": 241, "line_end": 258}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:6", "text": "%endmacro\n\n    TRANS_ROW_STEP 0\n    TRANS_ROW_STEP 1\n    TRANS_ROW_STEP 2\n    TRANS_ROW_STEP 3\n    TRANS_ROW_STEP 4\n    TRANS_ROW_STEP 5\n    TRANS_ROW_STEP 6\n    TRANS_ROW_STEP 7\n\n    ; Renormalise, clip and store output\n\n    vpbroadcastd  m14, [pd_1]\n    mov       tmpd, 20\n    sub       tmpd, bit_depthd\n    movd      xm9, tmpd\n    dec       tmpd\n    movd      xm13, tmpd\n    movd      xm15, bit_depthd\n    vpslld    m8,  m14, xm13\n    vpslld    m12, m14, xm15\n    vpsrld    m10, m12, 1\n    vpsubd    m12, m12, m14\n    vpxor     m11, m11, m11\n\n    ; m8  = vector 1 << (bd_shift - 1)\n    ; m9  = scalar bd_shift\n    ; m10 = vector 1 << (bit_depth - 1)\n    ; m11 = zero\n    ; m12 = vector (1 << bit_depth) - 1\n\n%macro NORMALISE_AND_STORE_10 2\n    vpaddd    m%1, m%1, m8\n    vpaddd    m%2, m%2, m8\n    vpsrad    m%1, m%1, xm9\n    vpsrad    m%2, m%2, xm9\n    vpaddd    m%1, m%1, m10\n    vpaddd    m%2, m%2, m10\n    vpmaxsd   m%1, m%1, m11\n    vpmaxsd   m%2, m%2, m11\n    vpminsd   m%1, m%1, m12\n    vpminsd   m%2, m%2, m12\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    vpackusdw m%1, m%1, m%2\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    vpermq    m%1, m%1, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    mova      [outputq], xm%1\n    vextracti128  [outputq + pitchq], m%1, 1\n    lea       outputq, [outputq + 2*pitchq]\n%endmacro\n\n    NORMALISE_AND_STORE_10 0, 1\n    NORMALISE_AND_STORE_10 2, 3\n    NORMALISE_AND_STORE_10 4, 5\n    NORMALISE_AND_STORE_10 6, 7\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "59b119023fcb7ae72eda2852aa30b11467728208", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59b119023fcb7ae72eda2852aa30b11467728208/libavcodec/x86/apv_dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:7", "text": "vpmaxsd   m%2, m%2, m11\n    vpminsd   m%1, m%1, m12\n    vpminsd   m%2, m%2, m12\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    vpackusdw m%1, m%1, m%2\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    vpermq    m%1, m%1, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    mova      [outputq], xm%1\n    vextracti128  [outputq + pitchq], m%1, 1\n    lea       outputq, [outputq + 2*pitchq]\n%endmacro\n\n    NORMALISE_AND_STORE_10 0, 1\n    NORMALISE_AND_STORE_10 2, 3\n    NORMALISE_AND_STORE_10 4, 5\n    NORMALISE_AND_STORE_10 6, 7\n\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "59b119023fcb7ae72eda2852aa30b11467728208", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59b119023fcb7ae72eda2852aa30b11467728208/libavcodec/x86/apv_dsp.asm", "line_start": 241, "line_end": 262}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:6", "text": "%endmacro\n\n    TRANS_ROW_STEP 0\n    TRANS_ROW_STEP 1\n    TRANS_ROW_STEP 2\n    TRANS_ROW_STEP 3\n    TRANS_ROW_STEP 4\n    TRANS_ROW_STEP 5\n    TRANS_ROW_STEP 6\n    TRANS_ROW_STEP 7\n\n    ; Renormalise, clip and store output\n\n    vpbroadcastd  m14, [pd_1]\n    mov       tmpd, 20\n    sub       tmpd, bit_depthd\n    movd      xm9, tmpd\n    dec       tmpd\n    movd      xm13, tmpd\n    movd      xm15, bit_depthd\n    vpslld    m8,  m14, xm13\n    vpslld    m12, m14, xm15\n    vpsrld    m10, m12, 1\n    vpsubd    m12, m12, m14\n    vpxor     m11, m11, m11\n\n    ; m8  = vector 1 << (bd_shift - 1)\n    ; m9  = scalar bd_shift\n    ; m10 = vector 1 << (bit_depth - 1)\n    ; m11 = zero\n    ; m12 = vector (1 << bit_depth) - 1\n\n    cmp       bit_depthd, 8\n    jne       store_10\n\n    lea       tmpq, [pitchq + 2*pitchq]\n%macro NORMALISE_AND_STORE_8 4\n    vpaddd    m%1, m%1, m8\n    vpaddd    m%2, m%2, m8\n    vpaddd    m%3, m%3, m8\n    vpaddd    m%4, m%4, m8\n    vpsrad    m%1, m%1, xm9\n    vpsrad    m%2, m%2, xm9\n    vpsrad    m%3, m%3, xm9\n    vpsrad    m%4, m%4, xm9\n    vpaddd    m%1, m%1, m10\n    vpaddd    m%2, m%2, m10\n    vpaddd    m%3, m%3, m10\n    vpaddd    m%4, m%4, m10\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    ; m%3 = C0-3 C4-7\n    ; m%4 = D0-3 D4-7\n    vpackusdw m%1, m%1, m%2\n    vpackusdw m%3, m%3, m%4\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    ; m%2 = C0-3 D0-3 C4-7 D4-7\n    vpermq    m%1, m%1, q3120\n    vpermq    m%2, m%3, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "17d5759bd99ab304c497ec149d493bc6ba1c6b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17d5759bd99ab304c497ec149d493bc6ba1c6b52/libavcodec/x86/apv_dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:7", "text": "vpaddd    m%4, m%4, m8\n    vpsrad    m%1, m%1, xm9\n    vpsrad    m%2, m%2, xm9\n    vpsrad    m%3, m%3, xm9\n    vpsrad    m%4, m%4, xm9\n    vpaddd    m%1, m%1, m10\n    vpaddd    m%2, m%2, m10\n    vpaddd    m%3, m%3, m10\n    vpaddd    m%4, m%4, m10\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    ; m%3 = C0-3 C4-7\n    ; m%4 = D0-3 D4-7\n    vpackusdw m%1, m%1, m%2\n    vpackusdw m%3, m%3, m%4\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    ; m%2 = C0-3 D0-3 C4-7 D4-7\n    vpermq    m%1, m%1, q3120\n    vpermq    m%2, m%3, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    ; m%2 = C0-3 C4-7 D0-3 D4-7\n    vpackuswb m%1, m%1, m%2\n    ; m%1 = A0-3 A4-7 C0-3 C4-7 B0-3 B4-7 D0-3 D4-7\n    vextracti128  xm%2, m%1, 1\n    vmovq     [outputq],            xm%1\n    vmovq     [outputq + pitchq],   xm%2\n    vpextrq   [outputq + 2*pitchq], xm%1, 1\n    vpextrq   [outputq + tmpq],     xm%2, 1\n    lea       outputq, [outputq + 4*pitchq]\n%endmacro\n\n    NORMALISE_AND_STORE_8 0, 1, 2, 3\n    NORMALISE_AND_STORE_8 4, 5, 6, 7\n\n    RET\n\nstore_10:\n\n%macro NORMALISE_AND_STORE_10 2\n    vpaddd    m%1, m%1, m8\n    vpaddd    m%2, m%2, m8\n    vpsrad    m%1, m%1, xm9\n    vpsrad    m%2, m%2, xm9\n    vpaddd    m%1, m%1, m10\n    vpaddd    m%2, m%2, m10\n    vpmaxsd   m%1, m%1, m11\n    vpmaxsd   m%2, m%2, m11\n    vpminsd   m%1, m%1, m12\n    vpminsd   m%2, m%2, m12\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    vpackusdw m%1, m%1, m%2\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    vpermq    m%1, m%1, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    mova      [outputq], xm%1\n    vextracti128  [outputq + pitchq], m%1, 1\n    lea       outputq, [outputq + 2*pitchq]\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "17d5759bd99ab304c497ec149d493bc6ba1c6b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17d5759bd99ab304c497ec149d493bc6ba1c6b52/libavcodec/x86/apv_dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:8", "text": "vpaddd    m%2, m%2, m8\n    vpsrad    m%1, m%1, xm9\n    vpsrad    m%2, m%2, xm9\n    vpaddd    m%1, m%1, m10\n    vpaddd    m%2, m%2, m10\n    vpmaxsd   m%1, m%1, m11\n    vpmaxsd   m%2, m%2, m11\n    vpminsd   m%1, m%1, m12\n    vpminsd   m%2, m%2, m12\n    ; m%1 = A0-3 A4-7\n    ; m%2 = B0-3 B4-7\n    vpackusdw m%1, m%1, m%2\n    ; m%1 = A0-3 B0-3 A4-7 B4-7\n    vpermq    m%1, m%1, q3120\n    ; m%1 = A0-3 A4-7 B0-3 B4-7\n    mova      [outputq], xm%1\n    vextracti128  [outputq + pitchq], m%1, 1\n    lea       outputq, [outputq + 2*pitchq]\n%endmacro\n\n    NORMALISE_AND_STORE_10 0, 1\n    NORMALISE_AND_STORE_10 2, 3\n    NORMALISE_AND_STORE_10 4, 5\n    NORMALISE_AND_STORE_10 6, 7\n\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "17d5759bd99ab304c497ec149d493bc6ba1c6b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17d5759bd99ab304c497ec149d493bc6ba1c6b52/libavcodec/x86/apv_dsp.asm", "line_start": 281, "line_end": 308}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/apv_dsp.asm:1", "text": ";************************************************************************\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA 32\n\n; Full matrix for row transform.\nconst tmatrix_row\n    dw  64,  89,  84,  75,  64,  50,  35,  18\n    dw  64, -18, -84,  50,  64, -75, -35,  89\n    dw  64,  75,  35, -18, -64, -89, -84, -50\n    dw  64, -50, -35,  89, -64, -18,  84, -75\n    dw  64,  50, -35, -89, -64,  18,  84,  75\n    dw  64, -75,  35,  18, -64,  89, -84,  50\n    dw  64,  18, -84, -50,  64,  75, -35, -89\n    dw  64, -89,  84, -75,  64, -50,  35, -18\n\n; Constant pairs for broadcast in column transform.\nconst tmatrix_col_even\n    dw  64,  64,  64, -64\n    dw  84,  35,  35, -84\nconst tmatrix_col_odd\n    dw  89,  75,  50,  18\n    dw  75, -18, -89, -50\n    dw  50, -89,  18,  75\n    dw  18, -50,  75, -89\n\n; Memory targets for vpbroadcastd (register version requires AVX512).\ncextern pd_1\ncextern pd_64\n\nSECTION .text\n\n; void ff_apv_decode_transquant_avx2(void *output,\n;                                    ptrdiff_t pitch,\n;                                    const int16_t *input,\n;                                    const int16_t *qmatrix,\n;                                    int bit_depth,\n;                                    int qp_shift);\n\nINIT_YMM avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/apv_dsp.asm", "license": "LGPL-2.1", "commit": "d03c99441dc5b931403a19838bc9e5c2953a48d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d03c99441dc5b931403a19838bc9e5c2953a48d1/libavcodec/x86/apv_dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/audiodsp.asm:1", "text": ";******************************************************************************\n;* optimized audio functions\n;* Copyright (c) 2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; int ff_scalarproduct_int16(int16_t *v1, int16_t *v2, int order)\nINIT_XMM sse2\ncglobal scalarproduct_int16, 3,3,3, v1, v2, order\n    add orderd, orderd\n    add v1q, orderq\n    add v2q, orderq\n    neg orderq\n    pxor    m2, m2\n.loop:\n    movu    m0, [v1q + orderq]\n    movu    m1, [v1q + orderq + mmsize]\n    pmaddwd m0, [v2q + orderq]\n    pmaddwd m1, [v2q + orderq + mmsize]\n    paddd   m2, m0\n    paddd   m2, m1\n    add     orderq, mmsize*2\n    jl .loop\n    HADDD   m2, m0\n    movd   eax, m2\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal scalarproduct_int16, 3,3,2, v1, v2, order\n    add orderd, orderd\n    add v1q, orderq\n    add v2q, orderq\n    neg orderq\n    pxor    m1, m1\n.loop:\n    movu    m0, [v1q + orderq]\n    pmaddwd m0, [v2q + orderq]\n    paddd   m1, m0\n    add     orderq, mmsize\n    jl .loop", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/audiodsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/audiodsp.asm:2", "text": "add     orderq, mmsize*2\n    jl .loop\n    HADDD   m2, m0\n    movd   eax, m2\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal scalarproduct_int16, 3,3,2, v1, v2, order\n    add orderd, orderd\n    add v1q, orderq\n    add v2q, orderq\n    neg orderq\n    pxor    m1, m1\n.loop:\n    movu    m0, [v1q + orderq]\n    pmaddwd m0, [v2q + orderq]\n    paddd   m1, m0\n    add     orderq, mmsize\n    jl .loop\n    HADDD   m1, m0\n    movd   eax, xm1\n    RET\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_vector_clip_int32(int32_t *dst, const int32_t *src, int32_t min,\n;                           int32_t max, unsigned int len)\n;-----------------------------------------------------------------------------\n\n; %1 = number of xmm registers used\n; %2 = number of inline load/process/store loops per asm loop\n; %3 = process 4*mmsize (%3=0) or 8*mmsize (%3=1) bytes per loop\n; %4 = CLIPD function takes min/max as float instead of int (SSE2 version)\n; %5 = suffix\n%macro VECTOR_CLIP_INT32 4-5\ncglobal vector_clip_int32%5, 5,5,%1, dst, src, min, max, len\n%if %4\n    cvtsi2ss  m4, minm\n    cvtsi2ss  m5, maxm\n%else\n    movd      m4, minm\n    movd      m5, maxm\n%endif\n    SPLATD    m4\n    SPLATD    m5\n.loop:\n%assign %%i 0\n%rep %2\n    mova      m0,  [srcq + mmsize * (0 + %%i)]\n    mova      m1,  [srcq + mmsize * (1 + %%i)]\n    mova      m2,  [srcq + mmsize * (2 + %%i)]\n    mova      m3,  [srcq + mmsize * (3 + %%i)]\n%if %3\n    mova      m7,  [srcq + mmsize * (4 + %%i)]\n    mova      m8,  [srcq + mmsize * (5 + %%i)]\n    mova      m9,  [srcq + mmsize * (6 + %%i)]\n    mova      m10, [srcq + mmsize * (7 + %%i)]\n%endif\n    CLIPD  m0,  m4, m5, m6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/audiodsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/audiodsp.asm:3", "text": "%else\n    movd      m4, minm\n    movd      m5, maxm\n%endif\n    SPLATD    m4\n    SPLATD    m5\n.loop:\n%assign %%i 0\n%rep %2\n    mova      m0,  [srcq + mmsize * (0 + %%i)]\n    mova      m1,  [srcq + mmsize * (1 + %%i)]\n    mova      m2,  [srcq + mmsize * (2 + %%i)]\n    mova      m3,  [srcq + mmsize * (3 + %%i)]\n%if %3\n    mova      m7,  [srcq + mmsize * (4 + %%i)]\n    mova      m8,  [srcq + mmsize * (5 + %%i)]\n    mova      m9,  [srcq + mmsize * (6 + %%i)]\n    mova      m10, [srcq + mmsize * (7 + %%i)]\n%endif\n    CLIPD  m0,  m4, m5, m6\n    CLIPD  m1,  m4, m5, m6\n    CLIPD  m2,  m4, m5, m6\n    CLIPD  m3,  m4, m5, m6\n%if %3\n    CLIPD  m7,  m4, m5, m6\n    CLIPD  m8,  m4, m5, m6\n    CLIPD  m9,  m4, m5, m6\n    CLIPD  m10, m4, m5, m6\n%endif\n    mova  [dstq + mmsize * (0 + %%i)], m0\n    mova  [dstq + mmsize * (1 + %%i)], m1\n    mova  [dstq + mmsize * (2 + %%i)], m2\n    mova  [dstq + mmsize * (3 + %%i)], m3\n%if %3\n    mova  [dstq + mmsize * (4 + %%i)], m7\n    mova  [dstq + mmsize * (5 + %%i)], m8\n    mova  [dstq + mmsize * (6 + %%i)], m9\n    mova  [dstq + mmsize * (7 + %%i)], m10\n%endif\n%assign %%i (%%i + 4 * (1 + %3))\n%endrep\n    add     srcq, mmsize*4*(%2+%3)\n    add     dstq, mmsize*4*(%2+%3)\n    sub     lend, mmsize*(%2+%3)\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_CLIP_INT32 6, 1, 0, 0, _int\nVECTOR_CLIP_INT32 6, 2, 0, 1\nINIT_XMM sse4\n%ifdef m8\nVECTOR_CLIP_INT32 11, 1, 1, 0\n%else\nVECTOR_CLIP_INT32 6, 1, 0, 0\n%endif\n\n; void ff_vector_clipf_sse(float *dst, const float *src,\n;                          int len, float min, float max)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/audiodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/audiodsp.asm:4", "text": "%endrep\n    add     srcq, mmsize*4*(%2+%3)\n    add     dstq, mmsize*4*(%2+%3)\n    sub     lend, mmsize*(%2+%3)\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_CLIP_INT32 6, 1, 0, 0, _int\nVECTOR_CLIP_INT32 6, 2, 0, 1\nINIT_XMM sse4\n%ifdef m8\nVECTOR_CLIP_INT32 11, 1, 1, 0\n%else\nVECTOR_CLIP_INT32 6, 1, 0, 0\n%endif\n\n; void ff_vector_clipf_sse(float *dst, const float *src,\n;                          int len, float min, float max)\nINIT_XMM sse\ncglobal vector_clipf, 3, 3, 6, dst, src, len, min, max\n%if ARCH_X86_32\n    VBROADCASTSS m0, minm\n    VBROADCASTSS m1, maxm\n%elif WIN64\n    SWAP 0, 3\n    VBROADCASTSS m0, m0\n    VBROADCASTSS m1, maxm\n%else ; 64bit sysv\n    VBROADCASTSS m0, m0\n    VBROADCASTSS m1, m1\n%endif\n\n    movsxdifnidn lenq, lend\n\n.loop:\n    mova m2, [srcq + 4 * lenq - 4 * mmsize]\n    mova m3, [srcq + 4 * lenq - 3 * mmsize]\n    mova m4, [srcq + 4 * lenq - 2 * mmsize]\n    mova m5, [srcq + 4 * lenq - 1 * mmsize]\n\n    maxps m2, m0\n    maxps m3, m0\n    maxps m4, m0\n    maxps m5, m0\n\n    minps m2, m1\n    minps m3, m1\n    minps m4, m1\n    minps m5, m1\n\n    mova [dstq + 4 * lenq - 4 * mmsize], m2\n    mova [dstq + 4 * lenq - 3 * mmsize], m3\n    mova [dstq + 4 * lenq - 2 * mmsize], m4\n    mova [dstq + 4 * lenq - 1 * mmsize], m5\n\n    sub lenq, mmsize\n    jg .loop", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/audiodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/audiodsp.asm:5", "text": "mova m5, [srcq + 4 * lenq - 1 * mmsize]\n\n    maxps m2, m0\n    maxps m3, m0\n    maxps m4, m0\n    maxps m5, m0\n\n    minps m2, m1\n    minps m3, m1\n    minps m4, m1\n    minps m5, m1\n\n    mova [dstq + 4 * lenq - 4 * mmsize], m2\n    mova [dstq + 4 * lenq - 3 * mmsize], m3\n    mova [dstq + 4 * lenq - 2 * mmsize], m4\n    mova [dstq + 4 * lenq - 1 * mmsize], m5\n\n    sub lenq, mmsize\n    jg .loop\n\n    RET", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/audiodsp.asm", "line_start": 161, "line_end": 181}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/blockdsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized clear block functions\n;* Copyright (c) 2002 Michael Niedermayer\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2009 Fiona Glaser\n;*\n;* AVX version by Jokyo Images\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;----------------------------------------\n; void ff_clear_block(int16_t *blocks);\n;----------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline store loops\n%macro CLEAR_BLOCK 2\ncglobal clear_block, 1, 1, %1, blocks\n    ZERO  m0, m0, m0\n%assign %%i 0\n%rep %2\n    mova  [blocksq+mmsize*(0+%%i)], m0\n    mova  [blocksq+mmsize*(1+%%i)], m0\n    mova  [blocksq+mmsize*(2+%%i)], m0\n    mova  [blocksq+mmsize*(3+%%i)], m0\n%assign %%i %%i+4\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse\n%define ZERO xorps\nCLEAR_BLOCK 1, 2\nINIT_YMM avx\nCLEAR_BLOCK 1, 1\n\n;-----------------------------------------\n; void ff_clear_blocks(int16_t *blocks);\n;-----------------------------------------\n; %1 = number of xmm registers used\n%macro CLEAR_BLOCKS 1\ncglobal clear_blocks, 1, 2, %1, blocks, len", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/blockdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/blockdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/blockdsp.asm:2", "text": "mova  [blocksq+mmsize*(1+%%i)], m0\n    mova  [blocksq+mmsize*(2+%%i)], m0\n    mova  [blocksq+mmsize*(3+%%i)], m0\n%assign %%i %%i+4\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse\n%define ZERO xorps\nCLEAR_BLOCK 1, 2\nINIT_YMM avx\nCLEAR_BLOCK 1, 1\n\n;-----------------------------------------\n; void ff_clear_blocks(int16_t *blocks);\n;-----------------------------------------\n; %1 = number of xmm registers used\n%macro CLEAR_BLOCKS 1\ncglobal clear_blocks, 1, 2, %1, blocks, len\n    add   blocksq, 768\n    mov      lenq, -768\n    ZERO       m0, m0, m0\n.loop:\n    mova  [blocksq+lenq+mmsize*0], m0\n    mova  [blocksq+lenq+mmsize*1], m0\n    mova  [blocksq+lenq+mmsize*2], m0\n    mova  [blocksq+lenq+mmsize*3], m0\n    mova  [blocksq+lenq+mmsize*4], m0\n    mova  [blocksq+lenq+mmsize*5], m0\n    mova  [blocksq+lenq+mmsize*6], m0\n    mova  [blocksq+lenq+mmsize*7], m0\n    add   lenq, mmsize*8\n    js .loop\n    RET\n%endmacro\n\nINIT_XMM sse\n%define ZERO xorps\nCLEAR_BLOCKS 1\nINIT_YMM avx\nCLEAR_BLOCKS 1\n\n;-----------------------------------------\n; void ff_fill_block_tab_%1(uint8_t *block, uint8_t value,\n;                           ptrdiff_t line_size, int h);\n;-----------------------------------------\n%macro FILL_BLOCK_TAB 2\ncglobal fill_block_tab_%1, 4, 5, 1, block, value, stride, h, stride3\n    lea stride3q, [strideq + strideq * 2]\n%if cpuflag(avx2)\n    movd m0, valued\n    vpbroadcastb m0, m0\n%else\n    SPLATB_REG m0, value, x\n%endif\n.loop:\n    mov%2 [blockq], m0\n    mov%2 [blockq + strideq], m0\n    mov%2 [blockq + strideq * 2], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/blockdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/blockdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/blockdsp.asm:3", "text": "INIT_YMM avx\nCLEAR_BLOCKS 1\n\n;-----------------------------------------\n; void ff_fill_block_tab_%1(uint8_t *block, uint8_t value,\n;                           ptrdiff_t line_size, int h);\n;-----------------------------------------\n%macro FILL_BLOCK_TAB 2\ncglobal fill_block_tab_%1, 4, 5, 1, block, value, stride, h, stride3\n    lea stride3q, [strideq + strideq * 2]\n%if cpuflag(avx2)\n    movd m0, valued\n    vpbroadcastb m0, m0\n%else\n    SPLATB_REG m0, value, x\n%endif\n.loop:\n    mov%2 [blockq], m0\n    mov%2 [blockq + strideq], m0\n    mov%2 [blockq + strideq * 2], m0\n    mov%2 [blockq + stride3q], m0\n    lea blockq, [blockq + strideq * 4]\n    sub hd, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILL_BLOCK_TAB 8, q\nFILL_BLOCK_TAB 16, a\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nFILL_BLOCK_TAB 8, q\nFILL_BLOCK_TAB 16, a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/blockdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/blockdsp.asm", "line_start": 81, "line_end": 115}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/blockdsp.asm:2", "text": "mova  [blocksq+mmsize*(1+%%i)], m0\n    mova  [blocksq+mmsize*(2+%%i)], m0\n    mova  [blocksq+mmsize*(3+%%i)], m0\n%assign %%i %%i+4\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse\n%define ZERO xorps\nCLEAR_BLOCK 1, 2\nINIT_YMM avx\nCLEAR_BLOCK 1, 1\n\n;-----------------------------------------\n; void ff_clear_blocks(int16_t *blocks);\n;-----------------------------------------\n; %1 = number of xmm registers used\n%macro CLEAR_BLOCKS 1\ncglobal clear_blocks, 1, 2, %1, blocks, len\n    add   blocksq, 768\n    mov      lenq, -768\n    ZERO       m0, m0, m0\n.loop:\n    mova  [blocksq+lenq+mmsize*0], m0\n    mova  [blocksq+lenq+mmsize*1], m0\n    mova  [blocksq+lenq+mmsize*2], m0\n    mova  [blocksq+lenq+mmsize*3], m0\n    mova  [blocksq+lenq+mmsize*4], m0\n    mova  [blocksq+lenq+mmsize*5], m0\n    mova  [blocksq+lenq+mmsize*6], m0\n    mova  [blocksq+lenq+mmsize*7], m0\n    add   lenq, mmsize*8\n    js .loop\n    RET\n%endmacro\n\nINIT_XMM sse\n%define ZERO xorps\nCLEAR_BLOCKS 1\nINIT_YMM avx\nCLEAR_BLOCKS 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/blockdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/blockdsp.asm", "line_start": 41, "line_end": 82}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:1", "text": ";******************************************************************************\n;* optimized bswap buffer functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npb_bswap32: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\n\ncextern pb_80\n\nSECTION .text\n\n; %1 = aligned/unaligned\n%macro BSWAP_LOOPS  1\n    mov      r3d, r2d\n%if cpuflag(avx2)\n    sar      r3d, 4\n    jz       .left8_%1\n%else\n    sar      r3d, 3\n    jz       .left4_%1\n%endif\n.loop8_%1:\n    mov%1    m0, [r1 +  0]\n    mov%1    m1, [r1 + mmsize]\n%if cpuflag(ssse3)||cpuflag(avx2)\n    pshufb   m0, m2\n    pshufb   m1, m2\n    mov%1    [r0 +  0], m0\n    mov%1    [r0 + mmsize], m1\n%else\n    pshuflw  m0, m0, 10110001b\n    pshuflw  m1, m1, 10110001b\n    pshufhw  m0, m0, 10110001b\n    pshufhw  m1, m1, 10110001b\n    mova     m2, m0\n    mova     m3, m1\n    psllw    m0, 8\n    psllw    m1, 8\n    psrlw    m2, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/bswapdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:2", "text": "jz       .left4_%1\n%endif\n.loop8_%1:\n    mov%1    m0, [r1 +  0]\n    mov%1    m1, [r1 + mmsize]\n%if cpuflag(ssse3)||cpuflag(avx2)\n    pshufb   m0, m2\n    pshufb   m1, m2\n    mov%1    [r0 +  0], m0\n    mov%1    [r0 + mmsize], m1\n%else\n    pshuflw  m0, m0, 10110001b\n    pshuflw  m1, m1, 10110001b\n    pshufhw  m0, m0, 10110001b\n    pshufhw  m1, m1, 10110001b\n    mova     m2, m0\n    mova     m3, m1\n    psllw    m0, 8\n    psllw    m1, 8\n    psrlw    m2, 8\n    psrlw    m3, 8\n    por      m2, m0\n    por      m3, m1\n    mov%1    [r0 +  0], m2\n    mov%1    [r0 + 16], m3\n%endif\n    add      r0, mmsize*2\n    add      r1, mmsize*2\n    dec      r3d\n    jnz      .loop8_%1\n%if cpuflag(avx2)\n.left8_%1:\n    test     r2d, 8\n    jz       .left4_%1\n    mov%1    m0, [r1]\n    pshufb   m0, m2\n    mov%1    [r0 +  0], m0\n    add r1, mmsize\n    add r0, mmsize\n%endif\n.left4_%1:\n    test     r2d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/bswapdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:3", "text": ".left4_%1:\n    test     r2d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro\n\n; void ff_bswap_buf(uint32_t *dst, const uint32_t *src, int w);\n%macro BSWAP32_BUF 0\n%if cpuflag(avx2)\ncglobal bswap32_buf, 3,4,3\n    vbroadcasti128  m2, [pb_bswap32]\n    BSWAP_LOOPS  u\n%else\n%if cpuflag(ssse3)\ncglobal bswap32_buf, 3,4,3\n    mova     m2, [pb_bswap32]\n    mov      r3, r1\n%else\ncglobal bswap32_buf, 3,4,5\n    mov      r3, r1\n%endif\n    or       r3, r0\n    test     r3, mmsize - 1\n    jz       .start_align\n    BSWAP_LOOPS  u\n    jmp      .left\n.start_align:\n    BSWAP_LOOPS  a\n%endif\n.left:\n%if cpuflag(ssse3)\n    test     r2d, 2\n    jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/bswapdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:4", "text": ".start_align:\n    BSWAP_LOOPS  a\n%endif\n.left:\n%if cpuflag(ssse3)\n    test     r2d, 2\n    jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d\n    add      r1, 4\n    add      r0, 4\n    dec      r2d\n    jnz      .loop2\n%endif\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nBSWAP32_BUF\n\nINIT_XMM ssse3\nBSWAP32_BUF\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nBSWAP32_BUF\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/bswapdsp.asm", "line_start": 121, "line_end": 164}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:3", "text": ".left4_%1:\n    test     r2d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro\n\n; void ff_bswap_buf(uint32_t *dst, const uint32_t *src, int w);\n%macro BSWAP32_BUF 0\n%if cpuflag(ssse3)||cpuflag(avx2)\ncglobal bswap32_buf, 3,4,3\n    mov      r3, r1\n    VBROADCASTI128  m2, [pb_bswap32]\n%else\ncglobal bswap32_buf, 3,4,5\n    mov      r3, r1\n%endif\n    or       r3, r0\n    test     r3, mmsize - 1\n    jz       .start_align\n    BSWAP_LOOPS  u\n    jmp      .left\n.start_align:\n    BSWAP_LOOPS  a\n.left:\n%if cpuflag(ssse3)\n    test     r2d, 2\n    jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d\n    add      r1, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "55afe49dd022ee391a7804793544d8617957fece", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/55afe49dd022ee391a7804793544d8617957fece/libavcodec/x86/bswapdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:4", "text": "jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d\n    add      r1, 4\n    add      r0, 4\n    dec      r2d\n    jnz      .loop2\n%endif\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nBSWAP32_BUF\n\nINIT_XMM ssse3\nBSWAP32_BUF\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nBSWAP32_BUF\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "55afe49dd022ee391a7804793544d8617957fece", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/55afe49dd022ee391a7804793544d8617957fece/libavcodec/x86/bswapdsp.asm", "line_start": 121, "line_end": 158}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:1", "text": ";******************************************************************************\n;* optimized bswap buffer functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npb_bswap32: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\n\ncextern pb_80\n\nSECTION .text\n\n; %1 = aligned/unaligned\n%macro BSWAP_LOOPS  1\n    mov      r3d, r2d\n    sar      r3d, 3\n    jz       .left4_%1\n%if cpuflag(avx2)\n    sar      r3d, 1\n    jz       .left8_%1\n%endif\n.loop8_%1:\n    mov%1    m0, [r1 +  0]\n    mov%1    m1, [r1 + mmsize]\n%if cpuflag(ssse3)||cpuflag(avx2)\n    pshufb   m0, m2\n    pshufb   m1, m2\n    mov%1    [r0 +  0], m0\n    mov%1    [r0 + mmsize], m1\n%else\n    pshuflw  m0, m0, 10110001b\n    pshuflw  m1, m1, 10110001b\n    pshufhw  m0, m0, 10110001b\n    pshufhw  m1, m1, 10110001b\n    mova     m2, m0\n    mova     m3, m1\n    psllw    m0, 8\n    psllw    m1, 8\n    psrlw    m2, 8\n    psrlw    m3, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "3e6fa5153e70e01dcb73556f60005da1c46a064e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3e6fa5153e70e01dcb73556f60005da1c46a064e/libavcodec/x86/bswapdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:2", "text": "%endif\n.loop8_%1:\n    mov%1    m0, [r1 +  0]\n    mov%1    m1, [r1 + mmsize]\n%if cpuflag(ssse3)||cpuflag(avx2)\n    pshufb   m0, m2\n    pshufb   m1, m2\n    mov%1    [r0 +  0], m0\n    mov%1    [r0 + mmsize], m1\n%else\n    pshuflw  m0, m0, 10110001b\n    pshuflw  m1, m1, 10110001b\n    pshufhw  m0, m0, 10110001b\n    pshufhw  m1, m1, 10110001b\n    mova     m2, m0\n    mova     m3, m1\n    psllw    m0, 8\n    psllw    m1, 8\n    psrlw    m2, 8\n    psrlw    m3, 8\n    por      m2, m0\n    por      m3, m1\n    mov%1    [r0 +  0], m2\n    mov%1    [r0 + 16], m3\n%endif\n    add      r0, mmsize*2\n    add      r1, mmsize*2\n    dec      r3d\n    jnz      .loop8_%1\n%if cpuflag(avx2)\n.left8_%1:\n    test     r2d, 8\n    jz       .left4_%1\n    mov%1    m0, [r1]\n    pshufb   m0, m2\n    mov%1    [r0 +  0], m0\n    add r1, mmsize\n    add r0, mmsize\n%endif\n.left4_%1:\n    test     r2d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro\n\n; void ff_bswap_buf(uint32_t *dst, const uint32_t *src, int w);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "3e6fa5153e70e01dcb73556f60005da1c46a064e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3e6fa5153e70e01dcb73556f60005da1c46a064e/libavcodec/x86/bswapdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:3", "text": "test     r2d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro\n\n; void ff_bswap_buf(uint32_t *dst, const uint32_t *src, int w);\n%macro BSWAP32_BUF 0\n%if cpuflag(ssse3)||cpuflag(avx2)\ncglobal bswap32_buf, 3,4,3\n    mov      r3, r1\n    VBROADCASTI128  m2, [pb_bswap32]\n%else\ncglobal bswap32_buf, 3,4,5\n    mov      r3, r1\n%endif\n    or       r3, r0\n    test     r3, mmsize - 1\n    jz       .start_align\n    BSWAP_LOOPS  u\n    jmp      .left\n.start_align:\n    BSWAP_LOOPS  a\n.left:\n%if cpuflag(ssse3)\n    test     r2d, 2\n    jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d\n    add      r1, 4\n    add      r0, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "3e6fa5153e70e01dcb73556f60005da1c46a064e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3e6fa5153e70e01dcb73556f60005da1c46a064e/libavcodec/x86/bswapdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:4", "text": "movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d\n    add      r1, 4\n    add      r0, 4\n    dec      r2d\n    jnz      .loop2\n%endif\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nBSWAP32_BUF\n\nINIT_XMM ssse3\nBSWAP32_BUF\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nBSWAP32_BUF\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "3e6fa5153e70e01dcb73556f60005da1c46a064e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3e6fa5153e70e01dcb73556f60005da1c46a064e/libavcodec/x86/bswapdsp.asm", "line_start": 121, "line_end": 157}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:1", "text": ";******************************************************************************\n;* optimized bswap buffer functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npb_bswap32: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\n\ncextern pb_80\n\nSECTION .text\n\n; %1 = aligned/unaligned\n%macro BSWAP_LOOPS  1\n    mov      r3d, r2d\n    sar      r2d, 3\n    jz       .left4_%1\n%if cpuflag(avx2)\n    sar      r2d, 1\n    jz       .left8_%1\n%endif\n.loop8_%1:\n    mov%1    m0, [r1 +  0]\n    mov%1    m1, [r1 + mmsize]\n%if cpuflag(ssse3)||cpuflag(avx2)\n    pshufb   m0, m2\n    pshufb   m1, m2\n    mov%1    [r0 +  0], m0\n    mov%1    [r0 + mmsize], m1\n%else\n    pshuflw  m0, m0, 10110001b\n    pshuflw  m1, m1, 10110001b\n    pshufhw  m0, m0, 10110001b\n    pshufhw  m1, m1, 10110001b\n    mova     m2, m0\n    mova     m3, m1\n    psllw    m0, 8\n    psllw    m1, 8\n    psrlw    m2, 8\n    psrlw    m3, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/bswapdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:2", "text": "%endif\n.loop8_%1:\n    mov%1    m0, [r1 +  0]\n    mov%1    m1, [r1 + mmsize]\n%if cpuflag(ssse3)||cpuflag(avx2)\n    pshufb   m0, m2\n    pshufb   m1, m2\n    mov%1    [r0 +  0], m0\n    mov%1    [r0 + mmsize], m1\n%else\n    pshuflw  m0, m0, 10110001b\n    pshuflw  m1, m1, 10110001b\n    pshufhw  m0, m0, 10110001b\n    pshufhw  m1, m1, 10110001b\n    mova     m2, m0\n    mova     m3, m1\n    psllw    m0, 8\n    psllw    m1, 8\n    psrlw    m2, 8\n    psrlw    m3, 8\n    por      m2, m0\n    por      m3, m1\n    mov%1    [r0 +  0], m2\n    mov%1    [r0 + 16], m3\n%endif\n    add      r0, mmsize*2\n    add      r1, mmsize*2\n    dec      r2d\n    jnz      .loop8_%1\n%if cpuflag(avx2)\n.left8_%1:\n    mov      r2d, r3d\n    test     r3d, 8\n    jz       .left4_%1\n    mov%1    m0, [r1]\n    pshufb   m0, m2\n    mov%1    [r0 +  0], m0\n    add r1, mmsize\n    add r0, mmsize\n%endif\n.left4_%1:\n    mov      r2d, r3d\n    test     r3d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/bswapdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:3", "text": ".left4_%1:\n    mov      r2d, r3d\n    test     r3d, 4\n    jz       .left\n    mov%1    xm0, [r1]\n%if cpuflag(ssse3)\n    pshufb   xm0, xm2\n    mov%1    [r0], xm0\n%else\n    pshuflw  m0, m0, 10110001b\n    pshufhw  m0, m0, 10110001b\n    mova     m2, m0\n    psllw    m0, 8\n    psrlw    m2, 8\n    por      m2, m0\n    mov%1    [r0], m2\n%endif\n    add      r1, 16\n    add      r0, 16\n%endmacro\n\n; void ff_bswap_buf(uint32_t *dst, const uint32_t *src, int w);\n%macro BSWAP32_BUF 0\n%if cpuflag(ssse3)||cpuflag(avx2)\ncglobal bswap32_buf, 3,4,3\n    mov      r3, r1\n    VBROADCASTI128  m2, [pb_bswap32]\n%else\ncglobal bswap32_buf, 3,4,5\n    mov      r3, r1\n%endif\n    or       r3, r0\n    test     r3, mmsize - 1\n    jz       .start_align\n    BSWAP_LOOPS  u\n    jmp      .left\n.start_align:\n    BSWAP_LOOPS  a\n.left:\n%if cpuflag(ssse3)\n    test     r2d, 2\n    jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/bswapdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/bswapdsp.asm:4", "text": "test     r2d, 2\n    jz       .left1\n    movq     xm0, [r1]\n    pshufb   xm0, xm2\n    movq     [r0], xm0\n    add      r1, 8\n    add      r0, 8\n.left1:\n    test     r2d, 1\n    jz       .end\n    mov      r2d, [r1]\n    bswap    r2d\n    mov      [r0], r2d\n%else\n    and      r2d, 3\n    jz       .end\n.loop2:\n    mov      r3d, [r1]\n    bswap    r3d\n    mov      [r0], r3d\n    add      r1, 4\n    add      r0, 4\n    dec      r2d\n    jnz      .loop2\n%endif\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nBSWAP32_BUF\n\nINIT_XMM ssse3\nBSWAP32_BUF\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nBSWAP32_BUF\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/bswapdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/bswapdsp.asm", "line_start": 121, "line_end": 159}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:1", "text": ";*****************************************************************************\n;* SSE2-optimized CAVS QPEL code\n;*****************************************************************************\n;* Copyright (c) 2006  Stefan Gehrer <stefan.gehrer@gmx.de>\n;* based on H.264 optimizations by Michael Niedermayer and Loren Merritt\n;* Copyright (c) 2025 Andreas Rheinhardt <andreas.rheinhardt@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_4\ncextern pw_5\ncextern pw_7\ncextern pw_64\npw_42: times 8 dw 42\npw_96: times 8 dw 96\n\nSECTION .text\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro CAVS_QPEL_H 1\n; ff_put_cavs_qpel8_mc20(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc20, 3,4,6\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_h_after_prologue\n\n; ff_put_cavs_qpel8_h(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_h, 4,4,6\n%1_cavs_qpel8_h_after_prologue:\n    mova         m3, [pw_4]\n    mova         m4, [pw_5]\n    pxor         m5, m5\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavs_qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:2", "text": "movh   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro CAVS_QPEL_H 1\n; ff_put_cavs_qpel8_mc20(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc20, 3,4,6\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_h_after_prologue\n\n; ff_put_cavs_qpel8_h(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_h, 4,4,6\n%1_cavs_qpel8_h_after_prologue:\n    mova         m3, [pw_4]\n    mova         m4, [pw_5]\n    pxor         m5, m5\n.loop:\n    movh         m0, [r1]\n    movh         m1, [r1+1]\n    punpcklbw    m0, m5\n    punpcklbw    m1, m5\n    paddw        m0, m1\n    movh         m1, [r1-1]\n    movh         m2, [r1+2]\n    pmullw       m0, m4\n    punpcklbw    m1, m5\n    punpcklbw    m2, m5\n    paddw        m0, m3\n    add          r1, r2\n    paddw        m1, m2\n    psubw        m0, m1\n    psraw        m0, 3\n    packuswb     m0, m5\n    op_%1h       m0, [r0], m1\n    add          r0, r2\n    dec         r3d\n    jne       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_H avg\nCAVS_QPEL_H put\n\n%macro FILT_V 1\n    movh        m3, [r1]\n    punpcklbw   m3, m7\n    mova        m4, m1\n    paddw       m4, m2\n    paddw       m0, m3\n    add         r1, r2\n    pmullw      m4, m5\n    psubw       m4, m0\n    paddw       m4, m6\n    psraw       m4, 3\n    packuswb    m4, m7\n    op_%1h      m4, [r0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavs_qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:3", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_H avg\nCAVS_QPEL_H put\n\n%macro FILT_V 1\n    movh        m3, [r1]\n    punpcklbw   m3, m7\n    mova        m4, m1\n    paddw       m4, m2\n    paddw       m0, m3\n    add         r1, r2\n    pmullw      m4, m5\n    psubw       m4, m0\n    paddw       m4, m6\n    psraw       m4, 3\n    packuswb    m4, m7\n    op_%1h      m4, [r0], m0\n    add         r0, r2\n    SWAP         0, 1, 2, 3\n%endmacro\n\n%macro CAVS_QPEL_MC02 1\n; ff_put_cavs_qpel8_mc02(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc02, 3,4,8\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_v2_after_prologue\n\n; ff_put_cavs_qpel8_v2(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_v2, 4,4,8\n%1_cavs_qpel8_v2_after_prologue:\n    movh         m1, [r1]\n    sub          r1, r2\n    movh         m0, [r1]\n    lea          r1, [r1+2*r2]\n    pxor         m7, m7\n    movh         m2, [r1]\n    add          r1, r2\n    punpcklbw    m1, m7\n    punpcklbw    m0, m7\n    punpcklbw    m2, m7\n    mova         m5, [pw_5]\n    mova         m6, [pw_4]\n.loop:\n    FILT_V       %1\n    FILT_V       %1\n    FILT_V       %1\n    FILT_V       %1\n    sub         r3d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_MC02 avg\nCAVS_QPEL_MC02 put\n\n%macro FILT_V3 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavs_qpel.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:4", "text": "punpcklbw    m1, m7\n    punpcklbw    m0, m7\n    punpcklbw    m2, m7\n    mova         m5, [pw_5]\n    mova         m6, [pw_4]\n.loop:\n    FILT_V       %1\n    FILT_V       %1\n    FILT_V       %1\n    FILT_V       %1\n    sub         r3d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_MC02 avg\nCAVS_QPEL_MC02 put\n\n%macro FILT_V3 1\n    pmullw      m0, PW_7\n    movh        m4, [r1]\n    mova        m5, m1\n    mova        m6, m2\n    pmullw      m5, PW_42\n    punpcklbw   m4, m7\n    pmullw      m6, PW_96\n    paddw       m0, m3\n    add         r1, r2\n    paddw       m0, m3\n    paddw       m5, m6\n    paddw       m0, m4\n    ; m5-m0 can be in the -10*255..(42 + 96)*255 range and\n    ; therefore is not guaranteed to fit into either a signed or\n    ; an unsigned word. Because we need to clamp the result to 0..255\n    ; anyway, we use saturated subtraction and a logical right shift\n    ; for rescaling.\n    psubusw     m5, m0\n    paddw       m5, PW_64\n    psrlw       m5, 7\n    packuswb    m5, m7\n    op_%1h      m5, [r0], m0\n    add         r0, r2\n    SWAP         0, 1, 2, 3, 4\n%endmacro\n\n%macro CAVS_QPEL_MC03 1\n; ff_put_cavs_qpel8_mc03(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc03, 3,4,8+4*ARCH_X86_64\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_v3_after_prologue\n\n; ff_put_cavs_qpel8_v3(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_v3, 4,4,8+4*ARCH_X86_64\n%1_cavs_qpel8_v3_after_prologue:\n    movh         m1, [r1]\n    movh         m2, [r1+r2]\n    movh         m3, [r1+2*r2]\n    sub          r1, r2\n    pxor         m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavs_qpel.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:5", "text": "packuswb    m5, m7\n    op_%1h      m5, [r0], m0\n    add         r0, r2\n    SWAP         0, 1, 2, 3, 4\n%endmacro\n\n%macro CAVS_QPEL_MC03 1\n; ff_put_cavs_qpel8_mc03(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc03, 3,4,8+4*ARCH_X86_64\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_v3_after_prologue\n\n; ff_put_cavs_qpel8_v3(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_v3, 4,4,8+4*ARCH_X86_64\n%1_cavs_qpel8_v3_after_prologue:\n    movh         m1, [r1]\n    movh         m2, [r1+r2]\n    movh         m3, [r1+2*r2]\n    sub          r1, r2\n    pxor         m7, m7\n    movh         m0, [r1]\n    lea          r1, [r1+4*r2]\n    punpcklbw    m1, m7\n    punpcklbw    m2, m7\n%if ARCH_X86_64\n%define PW_7  m8\n%define PW_42 m9\n%define PW_96 m10\n%define PW_64 m11\n    mova         m8, [pw_7]\n    mova         m9, [pw_42]\n    mova        m10, [pw_96]\n    mova        m11, [pw_64]\n%else\n%define PW_7  [pw_7]\n%define PW_42 [pw_42]\n%define PW_96 [pw_96]\n%define PW_64 [pw_64]\n%endif\n    punpcklbw    m3, m7\n    punpcklbw    m0, m7\n\n.loop:\n    FILT_V3      %1\n    FILT_V3      %1\n    FILT_V3      %1\n    FILT_V3      %1\n    SWAP          0, 1, 2, 3, 4\n    mova         m3, m2\n    mova         m2, m1\n    mova         m1, m0\n    mova         m0, m4\n    sub         r3d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_MC03 avg\nCAVS_QPEL_MC03 put", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavs_qpel.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:6", "text": "punpcklbw    m0, m7\n\n.loop:\n    FILT_V3      %1\n    FILT_V3      %1\n    FILT_V3      %1\n    FILT_V3      %1\n    SWAP          0, 1, 2, 3, 4\n    mova         m3, m2\n    mova         m2, m1\n    mova         m1, m0\n    mova         m0, m4\n    sub         r3d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_MC03 avg\nCAVS_QPEL_MC03 put", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavs_qpel.asm", "line_start": 201, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:1", "text": ";*****************************************************************************\n;* SSE2-optimized CAVS QPEL code\n;*****************************************************************************\n;* Copyright (c) 2006  Stefan Gehrer <stefan.gehrer@gmx.de>\n;* based on H.264 optimizations by Michael Niedermayer and Loren Merritt\n;* Copyright (c) 2025 Andreas Rheinhardt <andreas.rheinhardt@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_4\ncextern pw_5\n\nSECTION .text\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro CAVS_QPEL_H 1\n; ff_put_cavs_qpel8_mc20(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc20, 3,4,6\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_h_after_prologue\n\n; ff_put_cavs_qpel8_h(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_h, 4,4,6\n%1_cavs_qpel8_h_after_prologue:\n    mova         m3, [pw_4]\n    mova         m4, [pw_5]\n    pxor         m5, m5\n.loop:\n    movh         m0, [r1]\n    movh         m1, [r1+1]\n    punpcklbw    m0, m5\n    punpcklbw    m1, m5\n    paddw        m0, m1\n    movh         m1, [r1-1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "74a88c0c110fb4285b335629cf166a44d6dab9ea", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/74a88c0c110fb4285b335629cf166a44d6dab9ea/libavcodec/x86/cavs_qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavs_qpel.asm:2", "text": "%macro CAVS_QPEL_H 1\n; ff_put_cavs_qpel8_mc20(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ncglobal %1_cavs_qpel8_mc20, 3,4,6\n    mov         r3d, 8\n    jmp         %1_cavs_qpel8_h_after_prologue\n\n; ff_put_cavs_qpel8_h(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h)\ncglobal %1_cavs_qpel8_h, 4,4,6\n%1_cavs_qpel8_h_after_prologue:\n    mova         m3, [pw_4]\n    mova         m4, [pw_5]\n    pxor         m5, m5\n.loop:\n    movh         m0, [r1]\n    movh         m1, [r1+1]\n    punpcklbw    m0, m5\n    punpcklbw    m1, m5\n    paddw        m0, m1\n    movh         m1, [r1-1]\n    movh         m2, [r1+2]\n    pmullw       m0, m4\n    punpcklbw    m1, m5\n    punpcklbw    m2, m5\n    paddw        m0, m3\n    add          r1, r2\n    paddw        m1, m2\n    psubw        m0, m1\n    psraw        m0, 3\n    packuswb     m0, m5\n    op_%1h       m0, [r0], m1\n    add          r0, r2\n    dec         r3d\n    jne       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nCAVS_QPEL_H avg\nCAVS_QPEL_H put", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavs_qpel.asm", "license": "LGPL-2.1", "commit": "74a88c0c110fb4285b335629cf166a44d6dab9ea", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/74a88c0c110fb4285b335629cf166a44d6dab9ea/libavcodec/x86/cavs_qpel.asm", "line_start": 41, "line_end": 80}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:1", "text": "; Chinese AVS video (AVS1-P2, JiZhun profile) decoder\n; Copyright (c) 2006  Stefan Gehrer <stefan.gehrer@gmx.de>\n;\n; MMX-optimized DSP functions, based on H.264 optimizations by\n; Michael Niedermayer and Loren Merritt\n; Conversion from gcc syntax to x264asm syntax with modifications\n; by Ronald S. Bultje <rsbultje@gmail.com>\n;\n; This file is part of FFmpeg.\n;\n; FFmpeg is free software; you can redistribute it and/or\n; modify it under the terms of the GNU Lesser General Public\n; License as published by the Free Software Foundation; either\n; version 2.1 of the License, or (at your option) any later version.\n;\n; FFmpeg is distributed in the hope that it will be useful,\n; but WITHOUT ANY WARRANTY; without even the implied warranty of\n; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; Lesser General Public License for more details.\n;\n; You should have received a copy of the GNU Lesser General Public License\n; along with FFmpeg; if not, write to the Free Software Foundation,\n; Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_4\ncextern pw_64\n\nSECTION .text\n\n%macro CAVS_IDCT8_1D 2-3 1 ; source, round, init_load\n%if %3 == 1\n    mova            m4, [%1+7*16]       ; m4 = src7\n    mova            m5, [%1+1*16]       ; m5 = src1\n    mova            m2, [%1+5*16]       ; m2 = src5\n    mova            m7, [%1+3*16]       ; m7 = src3\n%else\n    SWAP             1, 7\n    SWAP             4, 6\n%endif\n    mova            m0, m4\n    mova            m3, m5\n    mova            m6, m2\n    mova            m1, m7\n\n    paddw           m4, m4              ; m4 = 2*src7\n    paddw           m3, m3              ; m3 = 2*src1\n    paddw           m6, m6              ; m6 = 2*src5\n    paddw           m1, m1              ; m1 = 2*src3\n    paddw           m0, m4              ; m0 = 3*src7\n    paddw           m5, m3              ; m5 = 3*src1\n    paddw           m2, m6              ; m2 = 3*src5\n    paddw           m7, m1              ; m7 = 3*src3\n    psubw           m5, m4              ; m5 = 3*src1 - 2*src7 = a0\n    paddw           m7, m6              ; m7 = 3*src3 - 2*src5 = a1\n    psubw           m1, m2              ; m1 = 2*src3 - 3*src5 = a2\n    paddw           m3, m0              ; m3 = 2*src1 - 3*src7 = a3\n\n    mova            m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavsidct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:2", "text": "%endif\n    mova            m0, m4\n    mova            m3, m5\n    mova            m6, m2\n    mova            m1, m7\n\n    paddw           m4, m4              ; m4 = 2*src7\n    paddw           m3, m3              ; m3 = 2*src1\n    paddw           m6, m6              ; m6 = 2*src5\n    paddw           m1, m1              ; m1 = 2*src3\n    paddw           m0, m4              ; m0 = 3*src7\n    paddw           m5, m3              ; m5 = 3*src1\n    paddw           m2, m6              ; m2 = 3*src5\n    paddw           m7, m1              ; m7 = 3*src3\n    psubw           m5, m4              ; m5 = 3*src1 - 2*src7 = a0\n    paddw           m7, m6              ; m7 = 3*src3 - 2*src5 = a1\n    psubw           m1, m2              ; m1 = 2*src3 - 3*src5 = a2\n    paddw           m3, m0              ; m3 = 2*src1 - 3*src7 = a3\n\n    mova            m4, m5\n    mova            m6, m7\n    mova            m0, m3\n    mova            m2, m1\n    paddw           m7, m5              ; m7 = a0 + a1\n    psubw           m5, m6              ; m5 = a0 - a1\n    paddw           m7, m3              ; m7 = a0 + a1 + a3\n    paddw           m5, m1              ; m5 = a0 - a1 + a2\n    paddw           m7, m7\n    paddw           m5, m5\n    paddw           m7, m6              ; m7 = b4\n    paddw           m5, m4              ; m5 = b5\n\n    paddw           m1, m3              ; m1 = a3 + a2\n    psubw           m3, m2              ; m3 = a3 - a2\n    psubw           m4, m1              ; m4 = a0 - a2 - a3\n    mova            m1, m4              ; m1 = a0 - a2 - a3\n    psubw           m3, m6              ; m3 = a3 - a2 - a1\n    paddw           m1, m1\n    paddw           m3, m3\n    psubw           m1, m2              ; m1 = b7\n    paddw           m3, m0              ; m3 = b6\n\n    mova            m2, [%1+2*16]       ; m2 = src2\n    mova            m6, [%1+6*16]       ; m6 = src6\n    mova            m4, m2\n    mova            m0, m6\n    psllw           m4, 2               ; m4 = 4*src2\n    psllw           m6, 2               ; m6 = 4*src6\n    paddw           m2, m4              ; m2 = 5*src2\n    paddw           m0, m6              ; m0 = 5*src6\n    paddw           m2, m2\n    paddw           m0, m0\n    psubw           m4, m0              ; m4 = 4*src2 - 10*src6 = a7\n    paddw           m6, m2              ; m6 = 4*src6 + 10*src2 = a6\n\n    mova            m2, [%1+0*16]       ; m2 = src0\n    mova            m0, [%1+4*16]       ; m0 = src4\n%if ARCH_X86_64\n    SUMSUB_BA     w, 0, 2, 8            ; m0 = src0 + src4, m2 = src0 - src4\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavsidct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:3", "text": "paddw           m3, m0              ; m3 = b6\n\n    mova            m2, [%1+2*16]       ; m2 = src2\n    mova            m6, [%1+6*16]       ; m6 = src6\n    mova            m4, m2\n    mova            m0, m6\n    psllw           m4, 2               ; m4 = 4*src2\n    psllw           m6, 2               ; m6 = 4*src6\n    paddw           m2, m4              ; m2 = 5*src2\n    paddw           m0, m6              ; m0 = 5*src6\n    paddw           m2, m2\n    paddw           m0, m0\n    psubw           m4, m0              ; m4 = 4*src2 - 10*src6 = a7\n    paddw           m6, m2              ; m6 = 4*src6 + 10*src2 = a6\n\n    mova            m2, [%1+0*16]       ; m2 = src0\n    mova            m0, [%1+4*16]       ; m0 = src4\n%if ARCH_X86_64\n    SUMSUB_BA     w, 0, 2, 8            ; m0 = src0 + src4, m2 = src0 - src4\n%else\n    SUMSUB_BA     w, 0, 2               ; m0 = src0 + src4, m2 = src0 - src4\n%endif\n    psllw           m0, 3\n    psllw           m2, 3\n    paddw           m0, %2              ; add rounding bias\n    paddw           m2, %2              ; add rounding bias\n\n%if ARCH_X86_64\n    SUMSUB_BA     w, 6, 0, 8            ; m6 = a4 + a6, m0 = a4 - a6\n    SUMSUB_BA     w, 4, 2, 8            ; m4 = a5 + a7, m2 = a5 - a7\n    SUMSUB_BA     w, 7, 6, 8            ; m7 = dst0, m6 = dst7\n    SUMSUB_BA     w, 5, 4, 8            ; m5 = dst1, m4 = dst6\n    SUMSUB_BA     w, 3, 2, 8            ; m3 = dst2, m2 = dst5\n    SUMSUB_BA     w, 1, 0, 8            ; m1 = dst3, m0 = dst4\n%else\n    SUMSUB_BA     w, 6, 0               ; m6 = a4 + a6, m0 = a4 - a6\n    SUMSUB_BA     w, 4, 2               ; m4 = a5 + a7, m2 = a5 - a7\n    SUMSUB_BA     w, 7, 6               ; m7 = dst0, m6 = dst7\n    SUMSUB_BA     w, 5, 4               ; m5 = dst1, m4 = dst6\n    SUMSUB_BA     w, 3, 2               ; m3 = dst2, m2 = dst5\n    SUMSUB_BA     w, 1, 0               ; m1 = dst3, m0 = dst4\n%endif\n%endmacro\n\nINIT_XMM sse2\ncglobal cavs_idct8, 2, 2, 8 + ARCH_X86_64, 0 - 8 * 16, out, in\n    CAVS_IDCT8_1D  inq, [pw_4]\n    psraw           m7, 3\n    psraw           m6, 3\n    psraw           m5, 3\n    psraw           m4, 3\n    psraw           m3, 3\n    psraw           m2, 3\n    psraw           m1, 3\n    psraw           m0, 3\n%if ARCH_X86_64\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, 8\n    mova    [rsp+4*16], m0\n%else\n    mova    [rsp+0*16], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavsidct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:4", "text": "SUMSUB_BA     w, 1, 0               ; m1 = dst3, m0 = dst4\n%endif\n%endmacro\n\nINIT_XMM sse2\ncglobal cavs_idct8, 2, 2, 8 + ARCH_X86_64, 0 - 8 * 16, out, in\n    CAVS_IDCT8_1D  inq, [pw_4]\n    psraw           m7, 3\n    psraw           m6, 3\n    psraw           m5, 3\n    psraw           m4, 3\n    psraw           m3, 3\n    psraw           m2, 3\n    psraw           m1, 3\n    psraw           m0, 3\n%if ARCH_X86_64\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, 8\n    mova    [rsp+4*16], m0\n%else\n    mova    [rsp+0*16], m4\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, [rsp+0*16], [rsp+4*16], 1\n%endif\n    mova    [rsp+0*16], m7\n    mova    [rsp+2*16], m3\n    mova    [rsp+6*16], m4\n    CAVS_IDCT8_1D  rsp, [pw_64], 0\n    psraw           m7, 7\n    psraw           m6, 7\n    psraw           m5, 7\n    psraw           m4, 7\n    psraw           m3, 7\n    psraw           m2, 7\n    psraw           m1, 7\n    psraw           m0, 7\n\n    mova   [outq+0*16], m7\n    mova   [outq+1*16], m5\n    mova   [outq+2*16], m3\n    mova   [outq+3*16], m1\n    mova   [outq+4*16], m0\n    mova   [outq+5*16], m2\n    mova   [outq+6*16], m4\n    mova   [outq+7*16], m6\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cavsidct.asm", "line_start": 121, "line_end": 164}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:2", "text": "%endif\n    mova            m0, m4\n    mova            m3, m5\n    mova            m6, m2\n    mova            m1, m7\n\n    paddw           m4, m4              ; m4 = 2*src7\n    paddw           m3, m3              ; m3 = 2*src1\n    paddw           m6, m6              ; m6 = 2*src5\n    paddw           m1, m1              ; m1 = 2*src3\n    paddw           m0, m4              ; m0 = 3*src7\n    paddw           m5, m3              ; m5 = 3*src1\n    paddw           m2, m6              ; m2 = 3*src5\n    paddw           m7, m1              ; m7 = 3*src3\n    psubw           m5, m4              ; m5 = 3*src1 - 2*src7 = a0\n    paddw           m7, m6              ; m7 = 3*src3 - 2*src5 = a1\n    psubw           m1, m2              ; m1 = 2*src3 - 3*src5 = a2\n    paddw           m3, m0              ; m3 = 2*src1 - 3*src7 = a3\n\n    mova            m4, m5\n    mova            m6, m7\n    mova            m0, m3\n    mova            m2, m1\n    SUMSUB_BA     w, 7, 5               ; m7 = a0 + a1, m5 = a0 - a1\n    paddw           m7, m3              ; m7 = a0 + a1 + a3\n    paddw           m5, m1              ; m5 = a0 - a1 + a2\n    paddw           m7, m7\n    paddw           m5, m5\n    paddw           m7, m6              ; m7 = b4\n    paddw           m5, m4              ; m5 = b5\n\n    SUMSUB_BA     w, 1, 3               ; m1 = a3 + a2, m3 = a3 - a2\n    psubw           m4, m1              ; m4 = a0 - a2 - a3\n    mova            m1, m4              ; m1 = a0 - a2 - a3\n    psubw           m3, m6              ; m3 = a3 - a2 - a1\n    paddw           m1, m1\n    paddw           m3, m3\n    psubw           m1, m2              ; m1 = b7\n    paddw           m3, m0              ; m3 = b6\n\n    mova            m2, [%1+2*16]       ; m2 = src2\n    mova            m6, [%1+6*16]       ; m6 = src6\n    mova            m4, m2\n    mova            m0, m6\n    psllw           m4, 2               ; m4 = 4*src2\n    psllw           m6, 2               ; m6 = 4*src6\n    paddw           m2, m4              ; m2 = 5*src2\n    paddw           m0, m6              ; m0 = 5*src6\n    paddw           m2, m2\n    paddw           m0, m0\n    psubw           m4, m0              ; m4 = 4*src2 - 10*src6 = a7\n    paddw           m6, m2              ; m6 = 4*src6 + 10*src2 = a6\n\n    mova            m2, [%1+0*16]       ; m2 = src0\n    mova            m0, [%1+4*16]       ; m0 = src4\n    SUMSUB_BA     w, 0, 2               ; m0 = src0 + src4, m2 = src0 - src4\n    psllw           m0, 3\n    psllw           m2, 3\n    paddw           m0, %2              ; add rounding bias\n    paddw           m2, %2              ; add rounding bias", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cavsidct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:3", "text": "mova            m2, [%1+2*16]       ; m2 = src2\n    mova            m6, [%1+6*16]       ; m6 = src6\n    mova            m4, m2\n    mova            m0, m6\n    psllw           m4, 2               ; m4 = 4*src2\n    psllw           m6, 2               ; m6 = 4*src6\n    paddw           m2, m4              ; m2 = 5*src2\n    paddw           m0, m6              ; m0 = 5*src6\n    paddw           m2, m2\n    paddw           m0, m0\n    psubw           m4, m0              ; m4 = 4*src2 - 10*src6 = a7\n    paddw           m6, m2              ; m6 = 4*src6 + 10*src2 = a6\n\n    mova            m2, [%1+0*16]       ; m2 = src0\n    mova            m0, [%1+4*16]       ; m0 = src4\n    SUMSUB_BA     w, 0, 2               ; m0 = src0 + src4, m2 = src0 - src4\n    psllw           m0, 3\n    psllw           m2, 3\n    paddw           m0, %2              ; add rounding bias\n    paddw           m2, %2              ; add rounding bias\n\n    SUMSUB_BA     w, 6, 0               ; m6 = a4 + a6, m0 = a4 - a6\n    SUMSUB_BA     w, 4, 2               ; m4 = a5 + a7, m2 = a5 - a7\n    SUMSUB_BA     w, 7, 6               ; m7 = dst0, m6 = dst7\n    SUMSUB_BA     w, 5, 4               ; m5 = dst1, m4 = dst6\n    SUMSUB_BA     w, 3, 2               ; m3 = dst2, m2 = dst5\n    SUMSUB_BA     w, 1, 0               ; m1 = dst3, m0 = dst4\n%endmacro\n\nINIT_XMM sse2\ncglobal cavs_idct8, 2, 2, 8 + ARCH_X86_64, 0 - 8 * 16, out, in\n    CAVS_IDCT8_1D  inq, [pw_4]\n    psraw           m7, 3\n    psraw           m6, 3\n    psraw           m5, 3\n    psraw           m4, 3\n    psraw           m3, 3\n    psraw           m2, 3\n    psraw           m1, 3\n    psraw           m0, 3\n%if ARCH_X86_64\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, 8\n    mova    [rsp+4*16], m0\n%else\n    mova    [rsp+0*16], m4\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, [rsp+0*16], [rsp+4*16], 1\n%endif\n    mova    [rsp+0*16], m7\n    mova    [rsp+2*16], m3\n    mova    [rsp+6*16], m4\n    CAVS_IDCT8_1D  rsp, [pw_64], 0\n    psraw           m7, 7\n    psraw           m6, 7\n    psraw           m5, 7\n    psraw           m4, 7\n    psraw           m3, 7\n    psraw           m2, 7\n    psraw           m1, 7\n    psraw           m0, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cavsidct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cavsidct.asm:4", "text": "%if ARCH_X86_64\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, 8\n    mova    [rsp+4*16], m0\n%else\n    mova    [rsp+0*16], m4\n    TRANSPOSE8x8W    7, 5, 3, 1, 0, 2, 4, 6, [rsp+0*16], [rsp+4*16], 1\n%endif\n    mova    [rsp+0*16], m7\n    mova    [rsp+2*16], m3\n    mova    [rsp+6*16], m4\n    CAVS_IDCT8_1D  rsp, [pw_64], 0\n    psraw           m7, 7\n    psraw           m6, 7\n    psraw           m5, 7\n    psraw           m4, 7\n    psraw           m3, 7\n    psraw           m2, 7\n    psraw           m1, 7\n    psraw           m0, 7\n\n    mova   [outq+0*16], m7\n    mova   [outq+1*16], m5\n    mova   [outq+2*16], m3\n    mova   [outq+3*16], m1\n    mova   [outq+4*16], m0\n    mova   [outq+5*16], m2\n    mova   [outq+6*16], m4\n    mova   [outq+7*16], m6\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cavsidct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cavsidct.asm", "line_start": 121, "line_end": 149}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:1", "text": ";******************************************************************************\n;* SIMD optimized Opus encoder DSP function\n;*\n;* Copyright (C) 2017 Ivan Kalvachev <ikalvachev@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%ifdef __NASM_VER__\n%use \"smartalign\"\nALIGNMODE p6\n%endif\n\nSECTION_RODATA 64\n\nconst_float_abs_mask:   times 8 dd 0x7fffffff\nconst_align_abs_edge:   times 8 dd 0\n\nconst_float_0_5:        times 8 dd 0.5\nconst_float_1:          times 8 dd 1.0\nconst_float_sign_mask:  times 8 dd 0x80000000\n\nconst_int32_offsets:\n                        %rep 8\n                                dd $-const_int32_offsets\n                        %endrep\nSECTION .text\n\n;\n;   Setup High Register to be used\n;   for holding memory constants\n;\n; %1 - the register to be used, assmues it is >= mm8\n; %2 - name of the constant.\n;\n; Subsequent opcodes are going to use the constant in the form\n; \"addps m0, mm_const_name\" and it would be turned into:\n; \"addps m0, [const_name]\" on 32 bit arch or\n; \"addps m0, m8\" on 64 bit arch\n%macro SET_HI_REG_MM_CONSTANT 3 ; movop, reg, const_name\n%if num_mmregs > 8\n    %define  mm_%3   %2\n    %{1}        %2, [%3]    ; movaps m8, [const_name]\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:2", "text": "dd $-const_int32_offsets\n                        %endrep\nSECTION .text\n\n;\n;   Setup High Register to be used\n;   for holding memory constants\n;\n; %1 - the register to be used, assmues it is >= mm8\n; %2 - name of the constant.\n;\n; Subsequent opcodes are going to use the constant in the form\n; \"addps m0, mm_const_name\" and it would be turned into:\n; \"addps m0, [const_name]\" on 32 bit arch or\n; \"addps m0, m8\" on 64 bit arch\n%macro SET_HI_REG_MM_CONSTANT 3 ; movop, reg, const_name\n%if num_mmregs > 8\n    %define  mm_%3   %2\n    %{1}        %2, [%3]    ; movaps m8, [const_name]\n%else\n    %define  mm_%3  [%3]\n%endif\n%endmacro\n\n;\n;   Set Position Independent Code\n;       Base address of a constant\n; %1 - the register to be used, if PIC is set\n; %2 - name of the constant.\n;\n; Subsequent opcode are going to use the base address in the form\n; \"movaps m0, [pic_base_constant_name+r4]\" and it would be turned into\n; \"movaps m0, [r5 + r4]\" if PIC is enabled\n; \"movaps m0, [constant_name + r4]\" if texrel are used\n%macro SET_PIC_BASE 3; reg, const_label\n%if PIC\n    %{1}     %2, [%3]      ; lea r5, [rip+const]\n    %define  pic_base_%3 %2\n%else\n    %define  pic_base_%3 %3\n%endif\n%endmacro\n\n%macro PULSES_SEARCH 1\n; m6 Syy_norm\n; m7 Sxy_norm\n    addps          m6, mm_const_float_0_5   ; Syy_norm += 1.0/2\n    pxor           m1, m1                   ; max_idx\n    xorps          m3, m3                   ; p_max\n    xor           r4d, r4d\nalign 16\n%%distortion_search:\n    movd          xm2, dword r4d    ; movd zero extends\n%ifidn %1,add\n    movaps         m4, [tmpY + r4]  ; y[i]\n    movaps         m5, [tmpX + r4]  ; X[i]\n\n  %if USE_APPROXIMATION == 1\n    xorps          m0, m0\n    cmpps          m0, m0, m5, 4    ; m0 = (X[i] != 0.0)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:3", "text": "%endif\n%endmacro\n\n%macro PULSES_SEARCH 1\n; m6 Syy_norm\n; m7 Sxy_norm\n    addps          m6, mm_const_float_0_5   ; Syy_norm += 1.0/2\n    pxor           m1, m1                   ; max_idx\n    xorps          m3, m3                   ; p_max\n    xor           r4d, r4d\nalign 16\n%%distortion_search:\n    movd          xm2, dword r4d    ; movd zero extends\n%ifidn %1,add\n    movaps         m4, [tmpY + r4]  ; y[i]\n    movaps         m5, [tmpX + r4]  ; X[i]\n\n  %if USE_APPROXIMATION == 1\n    xorps          m0, m0\n    cmpps          m0, m0, m5, 4    ; m0 = (X[i] != 0.0)\n  %endif\n\n    addps          m4, m6           ; m4 = Syy_new = y[i] + Syy_norm\n    addps          m5, m7           ; m5 = Sxy_new = X[i] + Sxy_norm\n\n  %if USE_APPROXIMATION == 1\n    andps          m5, m0           ; if(X[i] == 0) Sxy_new = 0; Prevent approximation error from setting pulses in array padding.\n  %endif\n\n%else\n    movaps         m5, [tmpY + r4]      ; m5 = y[i]\n\n    xorps          m0, m0               ; m0 = 0;\n    cmpps          m0, m0, m5, 1        ; m0 = (0<y)\n\n    subps          m4, m6, m5           ; m4 = Syy_new = Syy_norm - y[i]\n    subps          m5, m7, [tmpX + r4]  ; m5 = Sxy_new = Sxy_norm - X[i]\n    andps          m5, m0               ; (0<y)?m5:0\n%endif\n\n%if USE_APPROXIMATION == 1\n    rsqrtps        m4, m4\n    mulps          m5, m4           ; m5 = p = Sxy_new*approx(1/sqrt(Syy) )\n%else\n    mulps          m5, m5\n    divps          m5, m4           ; m5 = p = Sxy_new*Sxy_new/Syy\n%endif\n    VPBROADCASTD   m2, xm2          ; m2=i (all lanes get same values, we add the offset-per-lane, later)\n\n    cmpps          m0, m3, m5, 1    ; m0 = (m3 < m5) ; (p_max < p) ; (p > p_max)\n    maxps          m3, m5           ; m3=max(p_max,p)\n                                    ; maxps here is faster than blendvps, despite blend having lower latency.\n\n    pand           m2, m0           ; This version seems faster than sse41 pblendvb\n    pmaxsw         m1, m2           ; SSE2 signed word, so it would work for N < 32768/4\n\n    add           r4d, mmsize\n    cmp           r4d, Nd\n    jb   %%distortion_search", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:4", "text": "%if USE_APPROXIMATION == 1\n    rsqrtps        m4, m4\n    mulps          m5, m4           ; m5 = p = Sxy_new*approx(1/sqrt(Syy) )\n%else\n    mulps          m5, m5\n    divps          m5, m4           ; m5 = p = Sxy_new*Sxy_new/Syy\n%endif\n    VPBROADCASTD   m2, xm2          ; m2=i (all lanes get same values, we add the offset-per-lane, later)\n\n    cmpps          m0, m3, m5, 1    ; m0 = (m3 < m5) ; (p_max < p) ; (p > p_max)\n    maxps          m3, m5           ; m3=max(p_max,p)\n                                    ; maxps here is faster than blendvps, despite blend having lower latency.\n\n    pand           m2, m0           ; This version seems faster than sse41 pblendvb\n    pmaxsw         m1, m2           ; SSE2 signed word, so it would work for N < 32768/4\n\n    add           r4d, mmsize\n    cmp           r4d, Nd\n    jb   %%distortion_search\n\n    por            m1, mm_const_int32_offsets  ; max_idx offsets per individual lane (skipped in the inner loop)\n    movdqa         m4, m1                      ; needed for the aligned y[max_idx]+=1; processing\n\n%if mmsize >= 32\n; Merge parallel maximums round 8 (4 vs 4)\n\n    vextractf128  xm5, ym3, 1       ; xmm5 = ymm3[1x128] = ymm3[255..128b]\n    cmpps         xm0, xm3, xm5, 1  ; m0 = (m3 < m5) = ( p[0x128] < p[1x128] )\n\n    vextracti128  xm2, ym1, 1       ; xmm2 = ymm1[1x128] = ymm1[255..128b]\n    BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[1x128] : max_idx[0x128]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[1x128]       : p[0x128]\n%endif\n\n; Merge parallel maximums round 4 (2 vs 2)\n                                    ; m3=p[3210]\n    movhlps       xm5, xm3          ; m5=p[xx32]\n    cmpps         xm0, xm3, xm5, 1  ; m0 = (m3 < m5) = ( p[1,0] < p[3,2] )\n\n    pshufd        xm2, xm1, q3232\n    BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[3,2] : max_idx[1,0]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[3,2]       : p[1,0]\n\n; Merge parallel maximums final round (1 vs 1)\n    shufps        xm0, xm3, xm3, q1111  ; m0 = m3[1] = p[1]\n    cmpss         xm0, xm3, 5           ; m0 = !(m0 >= m3) = !( p[1] >= p[0] )\n\n    pshufd        xm2, xm1, q1111\n    PBLENDVB      xm1, xm2, xm0\n\n    movd    dword r4d, xm1          ; zero extends to the rest of r4q\n\n    VBROADCASTSS   m3, [tmpX + r4]\n    %{1}ps         m7, m3           ; Sxy += X[max_idx]\n\n    VBROADCASTSS   m5, [tmpY + r4]\n    %{1}ps         m6, m5           ; Syy += Y[max_idx]\n\n    ; We have to update a single element in Y[i]\n    ; However writing 4 bytes and then doing 16 byte load in the inner loop", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:5", "text": "BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[3,2] : max_idx[1,0]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[3,2]       : p[1,0]\n\n; Merge parallel maximums final round (1 vs 1)\n    shufps        xm0, xm3, xm3, q1111  ; m0 = m3[1] = p[1]\n    cmpss         xm0, xm3, 5           ; m0 = !(m0 >= m3) = !( p[1] >= p[0] )\n\n    pshufd        xm2, xm1, q1111\n    PBLENDVB      xm1, xm2, xm0\n\n    movd    dword r4d, xm1          ; zero extends to the rest of r4q\n\n    VBROADCASTSS   m3, [tmpX + r4]\n    %{1}ps         m7, m3           ; Sxy += X[max_idx]\n\n    VBROADCASTSS   m5, [tmpY + r4]\n    %{1}ps         m6, m5           ; Syy += Y[max_idx]\n\n    ; We have to update a single element in Y[i]\n    ; However writing 4 bytes and then doing 16 byte load in the inner loop\n    ; could cause a stall due to breaking write forwarding.\n    VPBROADCASTD   m1, xm1\n    pcmpeqd        m1, m1, m4           ; exactly 1 element matches max_idx and this finds it\n\n    and           r4d, ~(mmsize-1)      ; align address down, so the value pointed by max_idx is inside a mmsize load\n    movaps         m5, [tmpY + r4]      ; m5 = Y[y3...ym...y0]\n    andps          m1, mm_const_float_1 ; m1 =  [ 0...1.0...0]\n    %{1}ps         m5, m1               ; m5 = Y[y3...ym...y0] +/- [0...1.0...0]\n    movaps [tmpY + r4], m5              ; Y[max_idx] +-= 1.0;\n%endmacro\n\n;\n; We need one more register for\n; PIC relative addressing. Use this\n; to count it in cglobal\n;\n%if PIC\n  %define num_pic_regs 1\n%else\n  %define num_pic_regs 0\n%endif\n\n;\n; Pyramid Vector Quantization Search implementation\n;\n; float * inX   - Unaligned (SIMD) access, it will be overread,\n;                 but extra data is masked away.\n; int32 * outY  - Should be aligned and padded buffer.\n;                 It is used as temp buffer.\n; uint32 K      - Number of pulses to have after quantizations.\n; uint32 N      - Number of vector elements. Must be 0 < N < 256\n;\n%macro PVQ_FAST_SEARCH 1\ncglobal pvq_search%1, 4, 5+num_pic_regs, 11, 256*4, inX, outY, K, N\n%define tmpX rsp\n%define tmpY outYq\n\n    movaps     m0, [const_float_abs_mask]\n    shl        Nd, 2    ; N *= sizeof(float); also 32 bit operation zeroes the high 32 bits in 64 bit mode.\n    mov       r4d, Nd", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:6", "text": "%endif\n\n;\n; Pyramid Vector Quantization Search implementation\n;\n; float * inX   - Unaligned (SIMD) access, it will be overread,\n;                 but extra data is masked away.\n; int32 * outY  - Should be aligned and padded buffer.\n;                 It is used as temp buffer.\n; uint32 K      - Number of pulses to have after quantizations.\n; uint32 N      - Number of vector elements. Must be 0 < N < 256\n;\n%macro PVQ_FAST_SEARCH 1\ncglobal pvq_search%1, 4, 5+num_pic_regs, 11, 256*4, inX, outY, K, N\n%define tmpX rsp\n%define tmpY outYq\n\n    movaps     m0, [const_float_abs_mask]\n    shl        Nd, 2    ; N *= sizeof(float); also 32 bit operation zeroes the high 32 bits in 64 bit mode.\n    mov       r4d, Nd\n\n    neg       r4d\n    and       r4d, mmsize-1\n\n    SET_PIC_BASE lea, r5, const_align_abs_edge  ; rip+const\n    movups     m2, [pic_base_const_align_abs_edge + r4 - mmsize]\n\n    add        Nd, r4d              ; N = align(N, mmsize)\n\n    lea       r4d, [Nd - mmsize]    ; N is rounded up (aligned up) to mmsize, so r4 can't become negative here, unless N=0.\n    movups     m1, [inXq + r4]\n    andps      m1, m2\n    movaps  [tmpX + r4], m1         ; Sx = abs( X[N-1] )\n\nalign 16\n%%loop_abs_sum:\n    sub       r4d, mmsize\n    jc   %%end_loop_abs_sum\n\n    movups     m2, [inXq + r4]\n    andps      m2, m0\n\n    movaps  [tmpX + r4], m2 ; tmpX[i]=abs(X[i])\n    addps      m1, m2       ; Sx += abs(X[i])\n    jmp  %%loop_abs_sum\n\nalign 16\n%%end_loop_abs_sum:\n\n    HSUMPS     m1, m2       ; m1  = Sx\n\n    xorps      m0, m0\n    comiss    xm0, xm1      ;\n    jz   %%zero_input       ; if (Sx==0) goto zero_input\n\n    cvtsi2ss  xm0, dword Kd ; m0 = K\n%if USE_APPROXIMATION == 1\n    rcpss     xm1, xm1      ; m1 = approx(1/Sx)\n    mulss     xm0, xm1      ; m0 = K*(1/Sx)\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:7", "text": "andps      m2, m0\n\n    movaps  [tmpX + r4], m2 ; tmpX[i]=abs(X[i])\n    addps      m1, m2       ; Sx += abs(X[i])\n    jmp  %%loop_abs_sum\n\nalign 16\n%%end_loop_abs_sum:\n\n    HSUMPS     m1, m2       ; m1  = Sx\n\n    xorps      m0, m0\n    comiss    xm0, xm1      ;\n    jz   %%zero_input       ; if (Sx==0) goto zero_input\n\n    cvtsi2ss  xm0, dword Kd ; m0 = K\n%if USE_APPROXIMATION == 1\n    rcpss     xm1, xm1      ; m1 = approx(1/Sx)\n    mulss     xm0, xm1      ; m0 = K*(1/Sx)\n%else\n    divss     xm0, xm1      ; b = K/Sx\n                            ; b = K/max_x\n%endif\n\n    VBROADCASTSS  m0, xm0\n\n    lea       r4d, [Nd - mmsize]\n    pxor       m5, m5             ; Sy    ( Sum of abs( y[i]) )\n    xorps      m6, m6             ; Syy   ( Sum of y[i]*y[i]  )\n    xorps      m7, m7             ; Sxy   ( Sum of X[i]*y[i]  )\nalign 16\n%%loop_guess:\n    movaps     m1, [tmpX + r4]    ; m1   = X[i]\n    mulps      m2, m0, m1         ; m2   = res*X[i]\n    cvtps2dq   m2, m2             ; yt   = (int)lrintf( res*X[i] )\n    paddd      m5, m2             ; Sy  += yt\n    cvtdq2ps   m2, m2             ; yt   = (float)yt\n    mulps      m1, m2             ; m1   = X[i]*yt\n    movaps  [tmpY + r4], m2       ; y[i] = m2\n    addps      m7, m1             ; Sxy += m1;\n    mulps      m2, m2             ; m2   = yt*yt\n    addps      m6, m2             ; Syy += m2\n\n    sub       r4d, mmsize\n    jnc  %%loop_guess\n\n    HSUMPS     m6, m1       ; Syy_norm\n    HADDD      m5, m4       ; pulses\n\n    movd  dword r4d, xm5    ; zero extends to the rest of r4q\n\n    sub        Kd, r4d      ; K -= pulses , also 32 bit operation zeroes high 32 bit in 64 bit mode.\n    jz   %%finish           ; K - pulses == 0\n\n    SET_HI_REG_MM_CONSTANT movaps,  m8, const_float_0_5\n    SET_HI_REG_MM_CONSTANT movaps,  m9, const_float_1\n    SET_HI_REG_MM_CONSTANT movdqa, m10, const_int32_offsets\n    ; Use Syy/2 in distortion parameter calculations.\n    ; Saves pre and post-caclulation to correct Y[] values.\n    ; Same precision, since float mantisa is normalized.", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:8", "text": "mulps      m2, m2             ; m2   = yt*yt\n    addps      m6, m2             ; Syy += m2\n\n    sub       r4d, mmsize\n    jnc  %%loop_guess\n\n    HSUMPS     m6, m1       ; Syy_norm\n    HADDD      m5, m4       ; pulses\n\n    movd  dword r4d, xm5    ; zero extends to the rest of r4q\n\n    sub        Kd, r4d      ; K -= pulses , also 32 bit operation zeroes high 32 bit in 64 bit mode.\n    jz   %%finish           ; K - pulses == 0\n\n    SET_HI_REG_MM_CONSTANT movaps,  m8, const_float_0_5\n    SET_HI_REG_MM_CONSTANT movaps,  m9, const_float_1\n    SET_HI_REG_MM_CONSTANT movdqa, m10, const_int32_offsets\n    ; Use Syy/2 in distortion parameter calculations.\n    ; Saves pre and post-caclulation to correct Y[] values.\n    ; Same precision, since float mantisa is normalized.\n    ; The SQRT approximation does differ.\n    HSUMPS     m7, m0         ; Sxy_norm\n    mulps      m6, mm_const_float_0_5\n\n    jc   %%remove_pulses_loop   ; K - pulses < 0\n\nalign 16                        ; K - pulses > 0\n%%add_pulses_loop:\n\n    PULSES_SEARCH add   ; m6 Syy_norm ; m7 Sxy_norm\n\n    sub        Kd, 1\n    jnz  %%add_pulses_loop\n\n    addps      m6, m6 ; Syy*=2\n\n    jmp  %%finish\n\nalign 16\n%%remove_pulses_loop:\n\n    PULSES_SEARCH sub   ; m6 Syy_norm ; m7 Sxy_norm\n\n    add        Kd, 1\n    jnz  %%remove_pulses_loop\n\n    addps      m6, m6 ; Syy*=2\n\nalign 16\n%%finish:\n    lea       r4d, [Nd - mmsize]\n    movaps     m2, [const_float_sign_mask]\n\nalign 16\n%%restore_sign_loop:\n    movaps     m0, [tmpY + r4]    ; m0 = Y[i]\n    movups     m1, [inXq + r4]    ; m1 = X[i]\n    andps      m1, m2             ; m1 = sign(X[i])\n    orps       m0, m1             ; m0 = Y[i]*sign\n    cvtps2dq   m3, m0             ; m3 = (int)m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:9", "text": "PULSES_SEARCH sub   ; m6 Syy_norm ; m7 Sxy_norm\n\n    add        Kd, 1\n    jnz  %%remove_pulses_loop\n\n    addps      m6, m6 ; Syy*=2\n\nalign 16\n%%finish:\n    lea       r4d, [Nd - mmsize]\n    movaps     m2, [const_float_sign_mask]\n\nalign 16\n%%restore_sign_loop:\n    movaps     m0, [tmpY + r4]    ; m0 = Y[i]\n    movups     m1, [inXq + r4]    ; m1 = X[i]\n    andps      m1, m2             ; m1 = sign(X[i])\n    orps       m0, m1             ; m0 = Y[i]*sign\n    cvtps2dq   m3, m0             ; m3 = (int)m0\n    movaps  [outYq + r4], m3\n\n    sub       r4d, mmsize\n    jnc  %%restore_sign_loop\n%%return:\n\n%if ARCH_X86_64 == 0    ; sbrdsp\n    movss     r0m, xm6  ; return (float)Syy_norm\n    fld dword r0m\n%else\n    movaps     m0, m6   ; return (float)Syy_norm\n%endif\n\n    RET\n\nalign 16\n%%zero_input:\n    lea       r4d, [Nd - mmsize]\n    xorps      m0, m0\n%%zero_loop:\n    movaps  [outYq + r4], m0\n    sub       r4d, mmsize\n    jnc  %%zero_loop\n\n    movaps     m6, [const_float_1]\n    jmp  %%return\n%endmacro\n\n; if 1, use a float op that give half precision but execute for around 3 cycles.\n; On Skylake & Ryzen the division is much faster (around 11c/3),\n; that makes the full precision code about 2% slower.\n; Opus also does use rsqrt approximation in their intrinsics code.\n%define USE_APPROXIMATION   1\n\nINIT_XMM sse2\nPVQ_FAST_SEARCH _approx\n\nINIT_XMM sse4\nPVQ_FAST_SEARCH _approx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:10", "text": "movaps  [outYq + r4], m0\n    sub       r4d, mmsize\n    jnc  %%zero_loop\n\n    movaps     m6, [const_float_1]\n    jmp  %%return\n%endmacro\n\n; if 1, use a float op that give half precision but execute for around 3 cycles.\n; On Skylake & Ryzen the division is much faster (around 11c/3),\n; that makes the full precision code about 2% slower.\n; Opus also does use rsqrt approximation in their intrinsics code.\n%define USE_APPROXIMATION   1\n\nINIT_XMM sse2\nPVQ_FAST_SEARCH _approx\n\nINIT_XMM sse4\nPVQ_FAST_SEARCH _approx\n\n%define USE_APPROXIMATION   0\n\nINIT_XMM avx\nPVQ_FAST_SEARCH _exact", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/celt_pvq_search.asm", "line_start": 361, "line_end": 384}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:3", "text": "%endif\n%endmacro\n\n%macro PULSES_SEARCH 1\n; m6 Syy_norm\n; m7 Sxy_norm\n    addps          m6, mm_const_float_0_5   ; Syy_norm += 1.0/2\n    pxor           m1, m1                   ; max_idx\n    xorps          m3, m3                   ; p_max\n    xor           r4d, r4d\nalign 16\n%%distortion_search:\n    movd          xm2, dword r4d    ; movd zero extends\n%ifidn %1,add\n    movaps         m4, [tmpY + r4]  ; y[i]\n    movaps         m5, [tmpX + r4]  ; X[i]\n\n  %if USE_APPROXIMATION == 1\n    xorps          m0, m0\n    cmpps          m0, m0, m5, 4    ; m0 = (X[i] != 0.0)\n  %endif\n\n    addps          m4, m6           ; m4 = Syy_new = y[i] + Syy_norm\n    addps          m5, m7           ; m5 = Sxy_new = X[i] + Sxy_norm\n\n  %if USE_APPROXIMATION == 1\n    andps          m5, m0           ; if(X[i] == 0) Sxy_new = 0; Prevent aproximation error from setting pulses in array padding.\n  %endif\n\n%else\n    movaps         m5, [tmpY + r4]      ; m5 = y[i]\n\n    xorps          m0, m0               ; m0 = 0;\n    cmpps          m0, m0, m5, 1        ; m0 = (0<y)\n\n    subps          m4, m6, m5           ; m4 = Syy_new = Syy_norm - y[i]\n    subps          m5, m7, [tmpX + r4]  ; m5 = Sxy_new = Sxy_norm - X[i]\n    andps          m5, m0               ; (0<y)?m5:0\n%endif\n\n%if USE_APPROXIMATION == 1\n    rsqrtps        m4, m4\n    mulps          m5, m4           ; m5 = p = Sxy_new*approx(1/sqrt(Syy) )\n%else\n    mulps          m5, m5\n    divps          m5, m4           ; m5 = p = Sxy_new*Sxy_new/Syy\n%endif\n    VPBROADCASTD   m2, xm2          ; m2=i (all lanes get same values, we add the offset-per-lane, later)\n\n    cmpps          m0, m3, m5, 1    ; m0 = (m3 < m5) ; (p_max < p) ; (p > p_max)\n    maxps          m3, m5           ; m3=max(p_max,p)\n                                    ; maxps here is faster than blendvps, despite blend having lower latency.\n\n    pand           m2, m0           ; This version seems faster than sse41 pblendvb\n    pmaxsw         m1, m2           ; SSE2 signed word, so it would work for N < 32768/4\n\n    add           r4d, mmsize\n    cmp           r4d, Nd\n    jb   %%distortion_search", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "5c4ede6b4ff6fa8818f0ca3f686aa54c1c2092b8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5c4ede6b4ff6fa8818f0ca3f686aa54c1c2092b8/libavcodec/x86/celt_pvq_search.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:1", "text": ";******************************************************************************\n;* SIMD optimized Opus encoder DSP function\n;*\n;* Copyright (C) 2017 Ivan Kalvachev <ikalvachev@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"config.asm\"\n%include \"libavutil/x86/x86util.asm\"\n\n%ifdef __NASM_VER__\n%use \"smartalign\"\nALIGNMODE p6\n%endif\n\nSECTION_RODATA 64\n\nconst_float_abs_mask:   times 8 dd 0x7fffffff\nconst_align_abs_edge:   times 8 dd 0\n\nconst_float_0_5:        times 8 dd 0.5\nconst_float_1:          times 8 dd 1.0\nconst_float_sign_mask:  times 8 dd 0x80000000\n\nconst_int32_offsets:\n                        %rep 8\n                                dd $-const_int32_offsets\n                        %endrep\nSECTION .text\n\n;\n;   Setup High Register to be used\n;   for holding memory constants\n;\n; %1 - the register to be used, assmues it is >= mm8\n; %2 - name of the constant.\n;\n; Subsequent opcodes are going to use the constant in the form\n; \"addps m0, mm_const_name\" and it would be turned into:\n; \"addps m0, [const_name]\" on 32 bit arch or\n; \"addps m0, m8\" on 64 bit arch\n%macro SET_HI_REG_MM_CONSTANT 3 ; movop, reg, const_name\n%if num_mmregs > 8\n    %define  mm_%3   %2\n    %{1}        %2, [%3]    ; movaps m8, [const_name]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:2", "text": "%rep 8\n                                dd $-const_int32_offsets\n                        %endrep\nSECTION .text\n\n;\n;   Setup High Register to be used\n;   for holding memory constants\n;\n; %1 - the register to be used, assmues it is >= mm8\n; %2 - name of the constant.\n;\n; Subsequent opcodes are going to use the constant in the form\n; \"addps m0, mm_const_name\" and it would be turned into:\n; \"addps m0, [const_name]\" on 32 bit arch or\n; \"addps m0, m8\" on 64 bit arch\n%macro SET_HI_REG_MM_CONSTANT 3 ; movop, reg, const_name\n%if num_mmregs > 8\n    %define  mm_%3   %2\n    %{1}        %2, [%3]    ; movaps m8, [const_name]\n%else\n    %define  mm_%3  [%3]\n%endif\n%endmacro\n\n;\n;   Set Position Independent Code\n;       Base address of a constant\n; %1 - the register to be used, if PIC is set\n; %2 - name of the constant.\n;\n; Subsequent opcode are going to use the base address in the form\n; \"movaps m0, [pic_base_constant_name+r4]\" and it would be turned into\n; \"movaps m0, [r5 + r4]\" if PIC is enabled\n; \"movaps m0, [constant_name + r4]\" if texrel are used\n%macro SET_PIC_BASE 3; reg, const_label\n%if PIC\n    %{1}     %2, [%3]      ; lea r5, [rip+const]\n    %define  pic_base_%3 %2\n%else\n    %define  pic_base_%3 %3\n%endif\n%endmacro\n\n%macro PULSES_SEARCH 1\n; m6 Syy_norm\n; m7 Sxy_norm\n    addps          m6, mm_const_float_0_5   ; Syy_norm += 1.0/2\n    pxor           m1, m1                   ; max_idx\n    xorps          m3, m3                   ; p_max\n    xor           r4d, r4d\nalign 16\n%%distortion_search:\n    movd          xm2, dword r4d    ; movd zero extends\n%ifidn %1,add\n    movaps         m4, [tmpY + r4]  ; y[i]\n    movaps         m5, [tmpX + r4]  ; X[i]\n\n  %if USE_APPROXIMATION == 1\n    xorps          m0, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:3", "text": "%define  pic_base_%3 %3\n%endif\n%endmacro\n\n%macro PULSES_SEARCH 1\n; m6 Syy_norm\n; m7 Sxy_norm\n    addps          m6, mm_const_float_0_5   ; Syy_norm += 1.0/2\n    pxor           m1, m1                   ; max_idx\n    xorps          m3, m3                   ; p_max\n    xor           r4d, r4d\nalign 16\n%%distortion_search:\n    movd          xm2, dword r4d    ; movd zero extends\n%ifidn %1,add\n    movaps         m4, [tmpY + r4]  ; y[i]\n    movaps         m5, [tmpX + r4]  ; X[i]\n\n  %if USE_APPROXIMATION == 1\n    xorps          m0, m0\n    cmpps          m0, m0, m5, 4    ; m0 = (X[i] != 0.0)\n  %endif\n\n    addps          m4, m6           ; m4 = Syy_new = y[i] + Syy_norm\n    addps          m5, m7           ; m5 = Sxy_new = X[i] + Sxy_norm\n\n  %if USE_APPROXIMATION == 1\n    andps          m5, m0           ; if(X[i] == 0) Sxy_new = 0; Prevent aproximation error from setting pulses in array padding.\n  %endif\n\n%else\n    movaps         m5, [tmpY + r4]      ; m5 = y[i]\n\n    xorps          m0, m0               ; m0 = 0;\n    cmpps          m0, m0, m5, 1        ; m0 = (0<y)\n\n    subps          m4, m6, m5           ; m4 = Syy_new = Syy_norm - y[i]\n    subps          m5, m7, [tmpX + r4]  ; m5 = Sxy_new = Sxy_norm - X[i]\n    andps          m5, m0               ; (0<y)?m5:0\n%endif\n\n%if USE_APPROXIMATION == 1\n    rsqrtps        m4, m4\n    mulps          m5, m4           ; m5 = p = Sxy_new*approx(1/sqrt(Syy) )\n%else\n    mulps          m5, m5\n    divps          m5, m4           ; m5 = p = Sxy_new*Sxy_new/Syy\n%endif\n    VPBROADCASTD   m2, xm2          ; m2=i (all lanes get same values, we add the offset-per-lane, later)\n\n    cmpps          m0, m3, m5, 1    ; m0 = (m3 < m5) ; (p_max < p) ; (p > p_max)\n    maxps          m3, m5           ; m3=max(p_max,p)\n                                    ; maxps here is faster than blendvps, despite blend having lower latency.\n\n    pand           m2, m0           ; This version seems faster than sse41 pblendvb\n    pmaxsw         m1, m2           ; SSE2 signed word, so it would work for N < 32768/4\n\n    add           r4d, mmsize\n    cmp           r4d, Nd\n    jb   %%distortion_search", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:4", "text": "%if USE_APPROXIMATION == 1\n    rsqrtps        m4, m4\n    mulps          m5, m4           ; m5 = p = Sxy_new*approx(1/sqrt(Syy) )\n%else\n    mulps          m5, m5\n    divps          m5, m4           ; m5 = p = Sxy_new*Sxy_new/Syy\n%endif\n    VPBROADCASTD   m2, xm2          ; m2=i (all lanes get same values, we add the offset-per-lane, later)\n\n    cmpps          m0, m3, m5, 1    ; m0 = (m3 < m5) ; (p_max < p) ; (p > p_max)\n    maxps          m3, m5           ; m3=max(p_max,p)\n                                    ; maxps here is faster than blendvps, despite blend having lower latency.\n\n    pand           m2, m0           ; This version seems faster than sse41 pblendvb\n    pmaxsw         m1, m2           ; SSE2 signed word, so it would work for N < 32768/4\n\n    add           r4d, mmsize\n    cmp           r4d, Nd\n    jb   %%distortion_search\n\n    por            m1, mm_const_int32_offsets  ; max_idx offsets per individual lane (skipped in the inner loop)\n    movdqa         m4, m1                      ; needed for the aligned y[max_idx]+=1; processing\n\n%if mmsize >= 32\n; Merge parallel maximums round 8 (4 vs 4)\n\n    vextractf128  xm5, ym3, 1       ; xmm5 = ymm3[1x128] = ymm3[255..128b]\n    cmpps         xm0, xm3, xm5, 1  ; m0 = (m3 < m5) = ( p[0x128] < p[1x128] )\n\n    vextracti128  xm2, ym1, 1       ; xmm2 = ymm1[1x128] = ymm1[255..128b]\n    BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[1x128] : max_idx[0x128]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[1x128]       : p[0x128]\n%endif\n\n; Merge parallel maximums round 4 (2 vs 2)\n                                    ; m3=p[3210]\n    movhlps       xm5, xm3          ; m5=p[xx32]\n    cmpps         xm0, xm3, xm5, 1  ; m0 = (m3 < m5) = ( p[1,0] < p[3,2] )\n\n    pshufd        xm2, xm1, q3232\n    BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[3,2] : max_idx[1,0]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[3,2]       : p[1,0]\n\n; Merge parallel maximums final round (1 vs 1)\n    shufps        xm0, xm3, xm3, q1111  ; m0 = m3[1] = p[1]\n    cmpss         xm0, xm3, 5           ; m0 = !(m0 >= m3) = !( p[1] >= p[0] )\n\n    pshufd        xm2, xm1, q1111\n    PBLENDVB      xm1, xm2, xm0\n\n    movd    dword r4d, xm1          ; zero extends to the rest of r4q\n\n    VBROADCASTSS   m3, [tmpX + r4]\n    %{1}ps         m7, m3           ; Sxy += X[max_idx]\n\n    VBROADCASTSS   m5, [tmpY + r4]\n    %{1}ps         m6, m5           ; Syy += Y[max_idx]\n\n    ; We have to update a single element in Y[i]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:5", "text": "pshufd        xm2, xm1, q3232\n    BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[3,2] : max_idx[1,0]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[3,2]       : p[1,0]\n\n; Merge parallel maximums final round (1 vs 1)\n    shufps        xm0, xm3, xm3, q1111  ; m0 = m3[1] = p[1]\n    cmpss         xm0, xm3, 5           ; m0 = !(m0 >= m3) = !( p[1] >= p[0] )\n\n    pshufd        xm2, xm1, q1111\n    PBLENDVB      xm1, xm2, xm0\n\n    movd    dword r4d, xm1          ; zero extends to the rest of r4q\n\n    VBROADCASTSS   m3, [tmpX + r4]\n    %{1}ps         m7, m3           ; Sxy += X[max_idx]\n\n    VBROADCASTSS   m5, [tmpY + r4]\n    %{1}ps         m6, m5           ; Syy += Y[max_idx]\n\n    ; We have to update a single element in Y[i]\n    ; However writing 4 bytes and then doing 16 byte load in the inner loop\n    ; could cause a stall due to breaking write forwarding.\n    VPBROADCASTD   m1, xm1\n    pcmpeqd        m1, m1, m4           ; exactly 1 element matches max_idx and this finds it\n\n    and           r4d, ~(mmsize-1)      ; align address down, so the value pointed by max_idx is inside a mmsize load\n    movaps         m5, [tmpY + r4]      ; m5 = Y[y3...ym...y0]\n    andps          m1, mm_const_float_1 ; m1 =  [ 0...1.0...0]\n    %{1}ps         m5, m1               ; m5 = Y[y3...ym...y0] +/- [0...1.0...0]\n    movaps [tmpY + r4], m5              ; Y[max_idx] +-= 1.0;\n%endmacro\n\n;\n; We need one more register for\n; PIC relative addressing. Use this\n; to count it in cglobal\n;\n%if PIC\n  %define num_pic_regs 1\n%else\n  %define num_pic_regs 0\n%endif\n\n;\n; Pyramid Vector Quantization Search implementation\n;\n; float * inX   - Unaligned (SIMD) access, it will be overread,\n;                 but extra data is masked away.\n; int32 * outY  - Should be aligned and padded buffer.\n;                 It is used as temp buffer.\n; uint32 K      - Number of pulses to have after quantizations.\n; uint32 N      - Number of vector elements. Must be 0 < N < 256\n;\n%macro PVQ_FAST_SEARCH 1\ncglobal pvq_search%1, 4, 5+num_pic_regs, 11, 256*4, inX, outY, K, N\n%define tmpX rsp\n%define tmpY outYq\n\n    movaps     m0, [const_float_abs_mask]\n    shl        Nd, 2    ; N *= sizeof(float); also 32 bit operation zeroes the high 32 bits in 64 bit mode.", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:6", "text": "%define num_pic_regs 0\n%endif\n\n;\n; Pyramid Vector Quantization Search implementation\n;\n; float * inX   - Unaligned (SIMD) access, it will be overread,\n;                 but extra data is masked away.\n; int32 * outY  - Should be aligned and padded buffer.\n;                 It is used as temp buffer.\n; uint32 K      - Number of pulses to have after quantizations.\n; uint32 N      - Number of vector elements. Must be 0 < N < 256\n;\n%macro PVQ_FAST_SEARCH 1\ncglobal pvq_search%1, 4, 5+num_pic_regs, 11, 256*4, inX, outY, K, N\n%define tmpX rsp\n%define tmpY outYq\n\n    movaps     m0, [const_float_abs_mask]\n    shl        Nd, 2    ; N *= sizeof(float); also 32 bit operation zeroes the high 32 bits in 64 bit mode.\n    mov       r4d, Nd\n\n    neg       r4d\n    and       r4d, mmsize-1\n\n    SET_PIC_BASE lea, r5, const_align_abs_edge  ; rip+const\n    movups     m2, [pic_base_const_align_abs_edge + r4 - mmsize]\n\n    add        Nd, r4d              ; N = align(N, mmsize)\n\n    lea       r4d, [Nd - mmsize]    ; N is rounded up (aligned up) to mmsize, so r4 can't become negative here, unless N=0.\n    movups     m1, [inXq + r4]\n    andps      m1, m2\n    movaps  [tmpX + r4], m1         ; Sx = abs( X[N-1] )\n\nalign 16\n%%loop_abs_sum:\n    sub       r4d, mmsize\n    jc   %%end_loop_abs_sum\n\n    movups     m2, [inXq + r4]\n    andps      m2, m0\n\n    movaps  [tmpX + r4], m2 ; tmpX[i]=abs(X[i])\n    addps      m1, m2       ; Sx += abs(X[i])\n    jmp  %%loop_abs_sum\n\nalign 16\n%%end_loop_abs_sum:\n\n    HSUMPS     m1, m2       ; m1  = Sx\n\n    xorps      m0, m0\n    comiss    xm0, xm1      ;\n    jz   %%zero_input       ; if (Sx==0) goto zero_input\n\n    cvtsi2ss  xm0, dword Kd ; m0 = K\n%if USE_APPROXIMATION == 1\n    rcpss     xm1, xm1      ; m1 = approx(1/Sx)\n    mulss     xm0, xm1      ; m0 = K*(1/Sx)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:7", "text": "movups     m2, [inXq + r4]\n    andps      m2, m0\n\n    movaps  [tmpX + r4], m2 ; tmpX[i]=abs(X[i])\n    addps      m1, m2       ; Sx += abs(X[i])\n    jmp  %%loop_abs_sum\n\nalign 16\n%%end_loop_abs_sum:\n\n    HSUMPS     m1, m2       ; m1  = Sx\n\n    xorps      m0, m0\n    comiss    xm0, xm1      ;\n    jz   %%zero_input       ; if (Sx==0) goto zero_input\n\n    cvtsi2ss  xm0, dword Kd ; m0 = K\n%if USE_APPROXIMATION == 1\n    rcpss     xm1, xm1      ; m1 = approx(1/Sx)\n    mulss     xm0, xm1      ; m0 = K*(1/Sx)\n%else\n    divss     xm0, xm1      ; b = K/Sx\n                            ; b = K/max_x\n%endif\n\n    VBROADCASTSS  m0, xm0\n\n    lea       r4d, [Nd - mmsize]\n    pxor       m5, m5             ; Sy    ( Sum of abs( y[i]) )\n    xorps      m6, m6             ; Syy   ( Sum of y[i]*y[i]  )\n    xorps      m7, m7             ; Sxy   ( Sum of X[i]*y[i]  )\nalign 16\n%%loop_guess:\n    movaps     m1, [tmpX + r4]    ; m1   = X[i]\n    mulps      m2, m0, m1         ; m2   = res*X[i]\n    cvtps2dq   m2, m2             ; yt   = (int)lrintf( res*X[i] )\n    paddd      m5, m2             ; Sy  += yt\n    cvtdq2ps   m2, m2             ; yt   = (float)yt\n    mulps      m1, m2             ; m1   = X[i]*yt\n    movaps  [tmpY + r4], m2       ; y[i] = m2\n    addps      m7, m1             ; Sxy += m1;\n    mulps      m2, m2             ; m2   = yt*yt\n    addps      m6, m2             ; Syy += m2\n\n    sub       r4d, mmsize\n    jnc  %%loop_guess\n\n    HSUMPS     m6, m1       ; Syy_norm\n    HADDD      m5, m4       ; pulses\n\n    movd  dword r4d, xm5    ; zero extends to the rest of r4q\n\n    sub        Kd, r4d      ; K -= pulses , also 32 bit operation zeroes high 32 bit in 64 bit mode.\n    jz   %%finish           ; K - pulses == 0\n\n    SET_HI_REG_MM_CONSTANT movaps,  m8, const_float_0_5\n    SET_HI_REG_MM_CONSTANT movaps,  m9, const_float_1\n    SET_HI_REG_MM_CONSTANT movdqa, m10, const_int32_offsets\n    ; Use Syy/2 in distortion parameter calculations.\n    ; Saves pre and post-caclulation to correct Y[] values.", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:8", "text": "addps      m7, m1             ; Sxy += m1;\n    mulps      m2, m2             ; m2   = yt*yt\n    addps      m6, m2             ; Syy += m2\n\n    sub       r4d, mmsize\n    jnc  %%loop_guess\n\n    HSUMPS     m6, m1       ; Syy_norm\n    HADDD      m5, m4       ; pulses\n\n    movd  dword r4d, xm5    ; zero extends to the rest of r4q\n\n    sub        Kd, r4d      ; K -= pulses , also 32 bit operation zeroes high 32 bit in 64 bit mode.\n    jz   %%finish           ; K - pulses == 0\n\n    SET_HI_REG_MM_CONSTANT movaps,  m8, const_float_0_5\n    SET_HI_REG_MM_CONSTANT movaps,  m9, const_float_1\n    SET_HI_REG_MM_CONSTANT movdqa, m10, const_int32_offsets\n    ; Use Syy/2 in distortion parameter calculations.\n    ; Saves pre and post-caclulation to correct Y[] values.\n    ; Same precision, since float mantisa is normalized.\n    ; The SQRT approximation does differ.\n    HSUMPS     m7, m0         ; Sxy_norm\n    mulps      m6, mm_const_float_0_5\n\n    jc   %%remove_pulses_loop   ; K - pulses < 0\n\nalign 16                        ; K - pulses > 0\n%%add_pulses_loop:\n\n    PULSES_SEARCH add   ; m6 Syy_norm ; m7 Sxy_norm\n\n    sub        Kd, 1\n    jnz  %%add_pulses_loop\n\n    addps      m6, m6 ; Syy*=2\n\n    jmp  %%finish\n\nalign 16\n%%remove_pulses_loop:\n\n    PULSES_SEARCH sub   ; m6 Syy_norm ; m7 Sxy_norm\n\n    add        Kd, 1\n    jnz  %%remove_pulses_loop\n\n    addps      m6, m6 ; Syy*=2\n\nalign 16\n%%finish:\n    lea       r4d, [Nd - mmsize]\n    movaps     m2, [const_float_sign_mask]\n\nalign 16\n%%restore_sign_loop:\n    movaps     m0, [tmpY + r4]    ; m0 = Y[i]\n    movups     m1, [inXq + r4]    ; m1 = X[i]\n    andps      m1, m2             ; m1 = sign(X[i])\n    orps       m0, m1             ; m0 = Y[i]*sign", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:9", "text": "%%remove_pulses_loop:\n\n    PULSES_SEARCH sub   ; m6 Syy_norm ; m7 Sxy_norm\n\n    add        Kd, 1\n    jnz  %%remove_pulses_loop\n\n    addps      m6, m6 ; Syy*=2\n\nalign 16\n%%finish:\n    lea       r4d, [Nd - mmsize]\n    movaps     m2, [const_float_sign_mask]\n\nalign 16\n%%restore_sign_loop:\n    movaps     m0, [tmpY + r4]    ; m0 = Y[i]\n    movups     m1, [inXq + r4]    ; m1 = X[i]\n    andps      m1, m2             ; m1 = sign(X[i])\n    orps       m0, m1             ; m0 = Y[i]*sign\n    cvtps2dq   m3, m0             ; m3 = (int)m0\n    movaps  [outYq + r4], m3\n\n    sub       r4d, mmsize\n    jnc  %%restore_sign_loop\n%%return:\n\n%if ARCH_X86_64 == 0    ; sbrdsp\n    movss     r0m, xm6  ; return (float)Syy_norm\n    fld dword r0m\n%else\n    movaps     m0, m6   ; return (float)Syy_norm\n%endif\n\n    RET\n\nalign 16\n%%zero_input:\n    lea       r4d, [Nd - mmsize]\n    xorps      m0, m0\n%%zero_loop:\n    movaps  [outYq + r4], m0\n    sub       r4d, mmsize\n    jnc  %%zero_loop\n\n    movaps     m6, [const_float_1]\n    jmp  %%return\n%endmacro\n\n; if 1, use a float op that give half precision but execute for around 3 cycles.\n; On Skylake & Ryzen the division is much faster (around 11c/3),\n; that makes the full precision code about 2% slower.\n; Opus also does use rsqrt approximation in their intrinsics code.\n%define USE_APPROXIMATION   1\n\nINIT_XMM sse2\nPVQ_FAST_SEARCH _approx\n\nINIT_XMM sse4\nPVQ_FAST_SEARCH _approx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:10", "text": "%%zero_loop:\n    movaps  [outYq + r4], m0\n    sub       r4d, mmsize\n    jnc  %%zero_loop\n\n    movaps     m6, [const_float_1]\n    jmp  %%return\n%endmacro\n\n; if 1, use a float op that give half precision but execute for around 3 cycles.\n; On Skylake & Ryzen the division is much faster (around 11c/3),\n; that makes the full precision code about 2% slower.\n; Opus also does use rsqrt approximation in their intrinsics code.\n%define USE_APPROXIMATION   1\n\nINIT_XMM sse2\nPVQ_FAST_SEARCH _approx\n\nINIT_XMM sse4\nPVQ_FAST_SEARCH _approx\n\n%define USE_APPROXIMATION   0\n\nINIT_XMM avx\nPVQ_FAST_SEARCH _exact", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/celt_pvq_search.asm", "line_start": 361, "line_end": 385}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:2", "text": "%rep 8\n                                dd $-const_int32_offsets\n                        %endrep\nSECTION .text\n\n;\n;   Setup High Register to be used\n;   for holding memory constants\n;\n; %1 - the register to be used, assmues it is >= mm8\n; %2 - name of the constant.\n;\n; Subsequent opcodes are going to use the constant in the form\n; \"addps m0, mm_const_name\" and it would be turned into:\n; \"addps m0, [const_name]\" on 32 bit arch or\n; \"addps m0, m8\" on 64 bit arch\n%macro SET_HI_REG_MM_CONSTANT 3 ; movop, reg, const_name\n%if num_mmregs > 8\n    %define  mm_%3   %2\n    %{1}        %2, [%3]    ; movaps m8, [const_name]\n%else\n    %define  mm_%3  [%3]\n%endif\n%endmacro\n\n;\n;   Set Position Independent Code\n;       Base address of a constant\n; %1 - the register to be used, if PIC is set\n; %2 - name of the constant.\n;\n; Subsequent opcode are going to use the base address in the form\n; \"movaps m0, [pic_base_constant_name+r4]\" and it would be turned into\n; \"movaps m0, [r5 + r4]\" if PIC is enabled\n; \"movaps m0, [constant_name + r4]\" if texrel are used\n%macro SET_PIC_BASE 3; reg, const_label\n%ifdef PIC\n    %{1}     %2, [%3]      ; lea r5, [rip+const]\n    %define  pic_base_%3 %2\n%else\n    %define  pic_base_%3 %3\n%endif\n%endmacro\n\n%macro PULSES_SEARCH 1\n; m6 Syy_norm\n; m7 Sxy_norm\n    addps          m6, mm_const_float_0_5   ; Syy_norm += 1.0/2\n    pxor           m1, m1                   ; max_idx\n    xorps          m3, m3                   ; p_max\n    xor           r4d, r4d\nalign 16\n%%distortion_search:\n    movd          xm2, dword r4d    ; movd zero extends\n%ifidn %1,add\n    movaps         m4, [tmpY + r4]  ; y[i]\n    movaps         m5, [tmpX + r4]  ; X[i]\n\n  %if USE_APPROXIMATION == 1\n    xorps          m0, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/celt_pvq_search.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/celt_pvq_search.asm:5", "text": "pshufd        xm2, xm1, q3232\n    BLENDVPS      xm3, xm5, xm0     ; max_idx = m0 ? max_idx[3,2] : max_idx[1,0]\n    PBLENDVB      xm1, xm2, xm0     ; p       = m0 ? p[3,2]       : p[1,0]\n\n; Merge parallel maximums final round (1 vs 1)\n    shufps        xm0, xm3, xm3, q1111  ; m0 = m3[1] = p[1]\n    cmpss         xm0, xm3, 5           ; m0 = !(m0 >= m3) = !( p[1] >= p[0] )\n\n    pshufd        xm2, xm1, q1111\n    PBLENDVB      xm1, xm2, xm0\n\n    movd    dword r4d, xm1          ; zero extends to the rest of r4q\n\n    VBROADCASTSS   m3, [tmpX + r4]\n    %{1}ps         m7, m3           ; Sxy += X[max_idx]\n\n    VBROADCASTSS   m5, [tmpY + r4]\n    %{1}ps         m6, m5           ; Syy += Y[max_idx]\n\n    ; We have to update a single element in Y[i]\n    ; However writing 4 bytes and then doing 16 byte load in the inner loop\n    ; could cause a stall due to breaking write forwarding.\n    VPBROADCASTD   m1, xm1\n    pcmpeqd        m1, m1, m4           ; exactly 1 element matches max_idx and this finds it\n\n    and           r4d, ~(mmsize-1)      ; align address down, so the value pointed by max_idx is inside a mmsize load\n    movaps         m5, [tmpY + r4]      ; m5 = Y[y3...ym...y0]\n    andps          m1, mm_const_float_1 ; m1 =  [ 0...1.0...0]\n    %{1}ps         m5, m1               ; m5 = Y[y3...ym...y0] +/- [0...1.0...0]\n    movaps [tmpY + r4], m5              ; Y[max_idx] +-= 1.0;\n%endmacro\n\n;\n; We need one more register for\n; PIC relative addressing. Use this\n; to count it in cglobal\n;\n%ifdef PIC\n  %define num_pic_regs 1\n%else\n  %define num_pic_regs 0\n%endif\n\n;\n; Pyramid Vector Quantization Search implementation\n;\n; float * inX   - Unaligned (SIMD) access, it will be overread,\n;                 but extra data is masked away.\n; int32 * outY  - Should be aligned and padded buffer.\n;                 It is used as temp buffer.\n; uint32 K      - Number of pulses to have after quantizations.\n; uint32 N      - Number of vector elements. Must be 0 < N < 256\n;\n%macro PVQ_FAST_SEARCH 1\ncglobal pvq_search%1, 4, 5+num_pic_regs, 11, 256*4, inX, outY, K, N\n%define tmpX rsp\n%define tmpY outYq\n\n    movaps     m0, [const_float_abs_mask]\n    shl        Nd, 2    ; N *= sizeof(float); also 32 bit operation zeroes the high 32 bits in 64 bit mode.", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/celt_pvq_search.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/celt_pvq_search.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD decoder\n;* Copyright (c) 2020 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfactor_p1_n1: dw 1, -1, 1, -1, 1, -1, 1, -1,\nfactor_p11_n4: dw 11, -4, 11, -4, 11, -4, 11, -4,\nfactor_p5_p4: dw 5, 4, 5, 4, 5, 4, 5, 4,\npd_4: times 4 dd 4\npw_1: times 8 dw 1\npw_0: times 8 dw 0\npw_1023: times 8 dw 1023\npw_4095: times 8 dw 4095\n\nSECTION .text\n\n%macro CFHD_HORIZ_FILTER 1\n%if %1 == 1023\ncglobal cfhd_horiz_filter_clip10, 5, 6, 8 + 3 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%elif %1 == 4095\ncglobal cfhd_horiz_filter_clip12, 5, 6, 8 + 3 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%else\n%if ARCH_X86_64\ncglobal cfhd_horiz_filter, 8, 11, 11, output, ostride, low, lwidth, high, hwidth, width, height, x, y, temp\n    shl  ostrided, 1\n    shl   lwidthd, 1\n    shl   hwidthd, 1\n    shl    widthd, 1\n\n    mov        yd, heightd\n    neg        yq\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:2", "text": "%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%elif %1 == 4095\ncglobal cfhd_horiz_filter_clip12, 5, 6, 8 + 3 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%else\n%if ARCH_X86_64\ncglobal cfhd_horiz_filter, 8, 11, 11, output, ostride, low, lwidth, high, hwidth, width, height, x, y, temp\n    shl  ostrided, 1\n    shl   lwidthd, 1\n    shl   hwidthd, 1\n    shl    widthd, 1\n\n    mov        yd, heightd\n    neg        yq\n%else\ncglobal cfhd_horiz_filter, 7, 7, 8, output, x, low, y, high, temp, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl     tempd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov    tempmp, tempq\n\n    mov        yd, r7m\n    neg        yq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  tempm\n%endif\n%endif\n\n%if ARCH_X86_64\n    mova       m8, [factor_p1_n1]\n    mova       m9, [pw_1]\n    mova      m10, [pd_4]\n%endif\n\n%if %1 == 0\n.looph:\n%endif\n    movsx          xq, word [lowq]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:3", "text": "mova       m8, [factor_p1_n1]\n    mova       m9, [pw_1]\n    mova      m10, [pd_4]\n%endif\n\n%if %1 == 0\n.looph:\n%endif\n    movsx          xq, word [lowq]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    add         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq], tempw\n\n    movsx          xq, word [lowq]\n    imul           xq, 5\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, 4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq + 2], tempw\n\n    mov            xq, 0\n\n.loop:\n    movu           m4, [lowq + xq]\n    movu           m1, [lowq + xq + 4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:4", "text": "add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq + 2], tempw\n\n    mov            xq, 0\n\n.loop:\n    movu           m4, [lowq + xq]\n    movu           m1, [lowq + xq + 4]\n\n    mova           m5, m4\n    punpcklwd      m4, m1\n    punpckhwd      m5, m1\n\n%if ARCH_X86_64\n    pmaddwd        m4, m8\n    pmaddwd        m5, m8\n\n    psubd          m6, m10, m4\n    psubd          m7, m10, m5\n    paddd          m4, m10\n    paddd          m5, m10\n%else\n    mova           m2, [pd_4]\n    pmaddwd        m4, [factor_p1_n1]\n    pmaddwd        m5, [factor_p1_n1]\n\n    psubd          m6, m2, m4\n    psubd          m7, m2, m5\n    paddd          m4, m2\n    paddd          m5, m2\n%endif\n\n    psrad          m4, 3\n    psrad          m5, 3\n    psrad          m6, 3\n    psrad          m7, 3\n\n    movu           m2, [lowq + xq + 2]\n    movu           m3, [highq + xq + 2]\n\n    mova           m0, m2\n    punpcklwd      m2, m3\n    punpckhwd      m0, m3\n\n    mova           m1, m2\n    mova           m3, m0\n\n%if ARCH_X86_64\n    pmaddwd        m2, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:5", "text": "paddd          m5, m2\n%endif\n\n    psrad          m4, 3\n    psrad          m5, 3\n    psrad          m6, 3\n    psrad          m7, 3\n\n    movu           m2, [lowq + xq + 2]\n    movu           m3, [highq + xq + 2]\n\n    mova           m0, m2\n    punpcklwd      m2, m3\n    punpckhwd      m0, m3\n\n    mova           m1, m2\n    mova           m3, m0\n\n%if ARCH_X86_64\n    pmaddwd        m2, m9\n    pmaddwd        m0, m9\n    pmaddwd        m1, m8\n    pmaddwd        m3, m8\n%else\n    pmaddwd        m2, [pw_1]\n    pmaddwd        m0, [pw_1]\n    pmaddwd        m1, [factor_p1_n1]\n    pmaddwd        m3, [factor_p1_n1]\n%endif\n\n    paddd          m2, m4\n    paddd          m0, m5\n    paddd          m1, m6\n    paddd          m3, m7\n\n    psrad          m2, 1\n    psrad          m0, 1\n    psrad          m1, 1\n    psrad          m3, 1\n\n    packssdw       m2, m0\n    packssdw       m1, m3\n\n    mova           m0, m2\n    punpcklwd      m2, m1\n    punpckhwd      m0, m1\n\n%if %1\n    CLIPW          m2, [pw_0], [pw_%1]\n    CLIPW          m0, [pw_0], [pw_%1]\n%endif\n\n    movu  [outputq + xq * 2 + 4], m2\n    movu  [outputq + xq * 2 + mmsize + 4], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loop\n\n    add          lowq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:6", "text": "packssdw       m2, m0\n    packssdw       m1, m3\n\n    mova           m0, m2\n    punpcklwd      m2, m1\n    punpckhwd      m0, m1\n\n%if %1\n    CLIPW          m2, [pw_0], [pw_%1]\n    CLIPW          m0, [pw_0], [pw_%1]\n%endif\n\n    movu  [outputq + xq * 2 + 4], m2\n    movu  [outputq + xq * 2 + mmsize + 4], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loop\n\n    add          lowq, widthq\n    add         highq, widthq\n    add       outputq, widthq\n    add       outputq, widthq\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 5\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, 4\n    add         tempq, xq\n\n    movsx          xq, word [lowq - 6]\n    sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]\n    add         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 4], tempw\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq - 6]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:7", "text": "%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 4], tempw\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq - 6]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 2], tempw\n\n%if %1 == 0\n    sub          lowq, widthq\n    sub         highq, widthq\n    sub       outputq, widthq\n    sub       outputq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add       outputq, ostrideq\n    add       outputq, ostrideq\n    add            yq, 1\n    jl .looph\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 0\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 1023\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 4095\n\nINIT_XMM sse2\n%if ARCH_X86_64\ncglobal cfhd_vert_filter, 8, 11, 13, output, ostride, low, lwidth, high, hwidth, width, height, x, y, pos\n    shl        ostrided, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:8", "text": "add            yq, 1\n    jl .looph\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 0\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 1023\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 4095\n\nINIT_XMM sse2\n%if ARCH_X86_64\ncglobal cfhd_vert_filter, 8, 11, 13, output, ostride, low, lwidth, high, hwidth, width, height, x, y, pos\n    shl        ostrided, 1\n    shl         lwidthd, 1\n    shl         hwidthd, 1\n    shl          widthd, 1\n\n    dec   heightd\n\n    mova       m8, [factor_p1_n1]\n    mova       m9, [pw_1]\n    mova      m10, [pd_4]\n    mova      m11, [factor_p11_n4]\n    mova      m12, [factor_p5_p4]\n%else\ncglobal cfhd_vert_filter, 7, 7, 8, output, x, low, y, high, pos, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl      posd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov     posmp, posq\n\n    mov        xq, r7m\n    dec        xq\n    mov   widthmp, xq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  posm\n%define heightq  widthm\n\n%endif\n\n    xor        xq, xq\n.loopw:\n    xor        yq, yq\n\n    mov      posq, xq\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:9", "text": "mov     posmp, posq\n\n    mov        xq, r7m\n    dec        xq\n    mov   widthmp, xq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  posm\n%define heightq  widthm\n\n%endif\n\n    xor        xq, xq\n.loopw:\n    xor        yq, yq\n\n    mov      posq, xq\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m11\n    pmaddwd    m2, m11\n%else\n    pmaddwd    m0, [factor_p11_n4]\n    pmaddwd    m2, [factor_p11_n4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:10", "text": "psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    movu    [outputq + posq], m0\n\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:11", "text": "pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    add      posq, ostrideq\n    movu    [outputq + posq], m0\n\n    add        yq, 1\n.looph:\n    mov      posq, lwidthq\n    imul     posq, yq\n    sub      posq, lwidthq\n    add      posq, xq\n\n    movu       m4, [lowq + posq]\n\n    add      posq, lwidthq\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:12", "text": "psrad      m2, 1\n\n    packssdw   m0, m2\n\n    add      posq, ostrideq\n    movu    [outputq + posq], m0\n\n    add        yq, 1\n.looph:\n    mov      posq, lwidthq\n    imul     posq, yq\n    sub      posq, lwidthq\n    add      posq, xq\n\n    movu       m4, [lowq + posq]\n\n    add      posq, lwidthq\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n\n    mova       m5, m4\n    punpcklwd  m4, m1\n    punpckhwd  m5, m1\n\n%if ARCH_X86_64\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    psubd      m6, m10, m4\n    psubd      m7, m10, m5\n    paddd      m4, m10\n    paddd      m5, m10\n%else\n    mova       m2, [pd_4]\n    pmaddwd    m4, [factor_p1_n1]\n    pmaddwd    m5, [factor_p1_n1]\n\n    psubd      m6, m2, m4\n    psubd      m7, m2, m5\n    paddd      m4, m2\n    paddd      m5, m2\n%endif\n\n    psrad      m4, 3\n    psrad      m5, 3\n    psrad      m6, 3\n    psrad      m7, 3\n\n    sub      posq, lwidthq\n    movu       m0, [lowq + posq]\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m1, [highq + posq]\n\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:13", "text": "paddd      m5, m2\n%endif\n\n    psrad      m4, 3\n    psrad      m5, 3\n    psrad      m6, 3\n    psrad      m7, 3\n\n    sub      posq, lwidthq\n    movu       m0, [lowq + posq]\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m1, [highq + posq]\n\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n    mova       m1, m0\n    mova       m3, m2\n\n%if ARCH_X86_64\n    pmaddwd    m0, m9\n    pmaddwd    m2, m9\n    pmaddwd    m1, m8\n    pmaddwd    m3, m8\n%else\n    pmaddwd    m0, [pw_1]\n    pmaddwd    m2, [pw_1]\n    pmaddwd    m1, [factor_p1_n1]\n    pmaddwd    m3, [factor_p1_n1]\n%endif\n\n    paddd      m0, m4\n    paddd      m2, m5\n    paddd      m1, m6\n    paddd      m3, m7\n\n    psrad      m0, 1\n    psrad      m2, 1\n    psrad      m1, 1\n    psrad      m3, 1\n\n    packssdw   m0, m2\n    packssdw   m1, m3\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [outputq + posq], m0\n    add      posq, ostrideq\n    movu    [outputq + posq], m1\n\n    add        yq, 1\n    cmp        yq, heightq\n    jl .looph", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:14", "text": "psrad      m0, 1\n    psrad      m2, 1\n    psrad      m1, 1\n    psrad      m3, 1\n\n    packssdw   m0, m2\n    packssdw   m1, m3\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [outputq + posq], m0\n    add      posq, ostrideq\n    movu    [outputq + posq], m1\n\n    add        yq, 1\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m10\n    paddd      m2, m10\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:15", "text": "sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m10\n    paddd      m2, m10\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:16", "text": "packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m11\n    pmaddwd    m2, m11\n%else\n    pmaddwd    m0, [factor_p11_n4]\n    pmaddwd    m2, [factor_p11_n4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m10\n    paddd      m2, m10\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:17", "text": "%if ARCH_X86_64\n    paddd      m0, m10\n    paddd      m2, m10\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, ostrideq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhddsp.asm", "line_start": 641, "line_end": 682}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD decoder\n;* Copyright (c) 2020 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfactor_p1_n1: dw 1, -1, 1, -1, 1, -1, 1, -1,\nfactor_p11_n4: dw 11, -4, 11, -4, 11, -4, 11, -4,\nfactor_p5_p4: dw 5, 4, 5, 4, 5, 4, 5, 4,\npd_4: times 4 dd 4\npw_1: times 8 dw 1\npw_0: times 8 dw 0\npw_1023: times 8 dw 1023\npw_4095: times 8 dw 4095\n\nSECTION .text\n\n%macro CFHD_HORIZ_FILTER 1\n%if %1 == 1023\ncglobal cfhd_horiz_filter_clip10, 5, 6, 8 + 4 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%elif %1 == 4095\ncglobal cfhd_horiz_filter_clip12, 5, 6, 8 + 4 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%else\n%if ARCH_X86_64\ncglobal cfhd_horiz_filter, 8, 11, 12, output, ostride, low, lwidth, high, hwidth, width, height, x, y, temp\n    shl  ostrided, 1\n    shl   lwidthd, 1\n    shl   hwidthd, 1\n    shl    widthd, 1\n\n    mov        yd, heightd\n    neg        yq\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:2", "text": "%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%elif %1 == 4095\ncglobal cfhd_horiz_filter_clip12, 5, 6, 8 + 4 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%else\n%if ARCH_X86_64\ncglobal cfhd_horiz_filter, 8, 11, 12, output, ostride, low, lwidth, high, hwidth, width, height, x, y, temp\n    shl  ostrided, 1\n    shl   lwidthd, 1\n    shl   hwidthd, 1\n    shl    widthd, 1\n\n    mov        yd, heightd\n    neg        yq\n%else\ncglobal cfhd_horiz_filter, 7, 7, 8, output, x, low, y, high, temp, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl     tempd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov    tempmp, tempq\n\n    mov        yd, r7m\n    neg        yq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  tempm\n%endif\n%endif\n\n%if ARCH_X86_64\n    mova       m8, [factor_p1_n1]\n    mova      m10, [pw_1]\n    mova      m11, [pd_4]\n%endif\n\n%if %1 == 0\n.looph:\n%endif\n    movsx          xq, word [lowq]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:3", "text": "mova       m8, [factor_p1_n1]\n    mova      m10, [pw_1]\n    mova      m11, [pd_4]\n%endif\n\n%if %1 == 0\n.looph:\n%endif\n    movsx          xq, word [lowq]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    add         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq], tempw\n\n    movsx          xq, word [lowq]\n    imul           xq, 5\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, 4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq + 2], tempw\n\n    mov            xq, 0\n\n.loop:\n    movu           m4, [lowq + xq]\n    movu           m1, [lowq + xq + 4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:4", "text": "add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq + 2], tempw\n\n    mov            xq, 0\n\n.loop:\n    movu           m4, [lowq + xq]\n    movu           m1, [lowq + xq + 4]\n\n    mova           m5, m4\n    punpcklwd      m4, m1\n    punpckhwd      m5, m1\n\n%if ARCH_X86_64\n    pmaddwd        m4, m8\n    pmaddwd        m5, m8\n\n    psubd          m6, m11, m4\n    psubd          m7, m11, m5\n    paddd          m4, m11\n    paddd          m5, m11\n%else\n    mova           m2, [pd_4]\n    pmaddwd        m4, [factor_p1_n1]\n    pmaddwd        m5, [factor_p1_n1]\n\n    psubd          m6, m2, m4\n    psubd          m7, m2, m5\n    paddd          m4, m2\n    paddd          m5, m2\n%endif\n\n    psrad          m4, 3\n    psrad          m5, 3\n    psrad          m6, 3\n    psrad          m7, 3\n\n    movu           m2, [lowq + xq + 2]\n    movu           m3, [highq + xq + 2]\n\n    mova           m0, m2\n    punpcklwd      m2, m3\n    punpckhwd      m0, m3\n\n    mova           m1, m2\n    mova           m3, m0\n\n%if ARCH_X86_64\n    pmaddwd        m2, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:5", "text": "paddd          m5, m2\n%endif\n\n    psrad          m4, 3\n    psrad          m5, 3\n    psrad          m6, 3\n    psrad          m7, 3\n\n    movu           m2, [lowq + xq + 2]\n    movu           m3, [highq + xq + 2]\n\n    mova           m0, m2\n    punpcklwd      m2, m3\n    punpckhwd      m0, m3\n\n    mova           m1, m2\n    mova           m3, m0\n\n%if ARCH_X86_64\n    pmaddwd        m2, m10\n    pmaddwd        m0, m10\n    pmaddwd        m1, m8\n    pmaddwd        m3, m8\n%else\n    pmaddwd        m2, [pw_1]\n    pmaddwd        m0, [pw_1]\n    pmaddwd        m1, [factor_p1_n1]\n    pmaddwd        m3, [factor_p1_n1]\n%endif\n\n    paddd          m2, m4\n    paddd          m0, m5\n    paddd          m1, m6\n    paddd          m3, m7\n\n    psrad          m2, 1\n    psrad          m0, 1\n    psrad          m1, 1\n    psrad          m3, 1\n\n    packssdw       m2, m0\n    packssdw       m1, m3\n\n    mova           m0, m2\n    punpcklwd      m2, m1\n    punpckhwd      m0, m1\n\n%if %1\n    CLIPW          m2, [pw_0], [pw_%1]\n    CLIPW          m0, [pw_0], [pw_%1]\n%endif\n\n    movu  [outputq + xq * 2 + 4], m2\n    movu  [outputq + xq * 2 + mmsize + 4], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loop\n\n    add          lowq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:7", "text": "%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 4], tempw\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq - 6]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 2], tempw\n\n%if %1 == 0\n    sub          lowq, widthq\n    sub         highq, widthq\n    sub       outputq, widthq\n    sub       outputq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add       outputq, ostrideq\n    add       outputq, ostrideq\n    add            yq, 1\n    jl .looph\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 0\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 1023\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 4095\n\nINIT_XMM sse2\n%if ARCH_X86_64\ncglobal cfhd_vert_filter, 8, 11, 14, output, ostride, low, lwidth, high, hwidth, width, height, x, y, pos\n    shl        ostrided, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:8", "text": "add            yq, 1\n    jl .looph\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 0\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 1023\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 4095\n\nINIT_XMM sse2\n%if ARCH_X86_64\ncglobal cfhd_vert_filter, 8, 11, 14, output, ostride, low, lwidth, high, hwidth, width, height, x, y, pos\n    shl        ostrided, 1\n    shl         lwidthd, 1\n    shl         hwidthd, 1\n    shl          widthd, 1\n\n    dec   heightd\n\n    mova       m8, [factor_p1_n1]\n    mova      m10, [pw_1]\n    mova      m11, [pd_4]\n    mova      m12, [factor_p11_n4]\n    mova      m13, [factor_p5_p4]\n%else\ncglobal cfhd_vert_filter, 7, 7, 8, output, x, low, y, high, pos, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl      posd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov     posmp, posq\n\n    mov        xq, r7m\n    dec        xq\n    mov   widthmp, xq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  posm\n%define heightq  widthm\n\n%endif\n\n    xor        xq, xq\n.loopw:\n    xor        yq, yq\n\n    mov      posq, xq\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:9", "text": "mov     posmp, posq\n\n    mov        xq, r7m\n    dec        xq\n    mov   widthmp, xq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  posm\n%define heightq  widthm\n\n%endif\n\n    xor        xq, xq\n.loopw:\n    xor        yq, yq\n\n    mov      posq, xq\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p11_n4]\n    pmaddwd    m2, [factor_p11_n4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:10", "text": "psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    movu    [outputq + posq], m0\n\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:11", "text": "pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    add      posq, ostrideq\n    movu    [outputq + posq], m0\n\n    add        yq, 1\n.looph:\n    mov      posq, lwidthq\n    imul     posq, yq\n    sub      posq, lwidthq\n    add      posq, xq\n\n    movu       m4, [lowq + posq]\n\n    add      posq, lwidthq\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:12", "text": "psrad      m2, 1\n\n    packssdw   m0, m2\n\n    add      posq, ostrideq\n    movu    [outputq + posq], m0\n\n    add        yq, 1\n.looph:\n    mov      posq, lwidthq\n    imul     posq, yq\n    sub      posq, lwidthq\n    add      posq, xq\n\n    movu       m4, [lowq + posq]\n\n    add      posq, lwidthq\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n\n    mova       m5, m4\n    punpcklwd  m4, m1\n    punpckhwd  m5, m1\n\n%if ARCH_X86_64\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    psubd      m6, m11, m4\n    psubd      m7, m11, m5\n    paddd      m4, m11\n    paddd      m5, m11\n%else\n    mova       m2, [pd_4]\n    pmaddwd    m4, [factor_p1_n1]\n    pmaddwd    m5, [factor_p1_n1]\n\n    psubd      m6, m2, m4\n    psubd      m7, m2, m5\n    paddd      m4, m2\n    paddd      m5, m2\n%endif\n\n    psrad      m4, 3\n    psrad      m5, 3\n    psrad      m6, 3\n    psrad      m7, 3\n\n    sub      posq, lwidthq\n    movu       m0, [lowq + posq]\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m1, [highq + posq]\n\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:13", "text": "paddd      m5, m2\n%endif\n\n    psrad      m4, 3\n    psrad      m5, 3\n    psrad      m6, 3\n    psrad      m7, 3\n\n    sub      posq, lwidthq\n    movu       m0, [lowq + posq]\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m1, [highq + posq]\n\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n    mova       m1, m0\n    mova       m3, m2\n\n%if ARCH_X86_64\n    pmaddwd    m0, m10\n    pmaddwd    m2, m10\n    pmaddwd    m1, m8\n    pmaddwd    m3, m8\n%else\n    pmaddwd    m0, [pw_1]\n    pmaddwd    m2, [pw_1]\n    pmaddwd    m1, [factor_p1_n1]\n    pmaddwd    m3, [factor_p1_n1]\n%endif\n\n    paddd      m0, m4\n    paddd      m2, m5\n    paddd      m1, m6\n    paddd      m3, m7\n\n    psrad      m0, 1\n    psrad      m2, 1\n    psrad      m1, 1\n    psrad      m3, 1\n\n    packssdw   m0, m2\n    packssdw   m1, m3\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [outputq + posq], m0\n    add      posq, ostrideq\n    movu    [outputq + posq], m1\n\n    add        yq, 1\n    cmp        yq, heightq\n    jl .looph", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:14", "text": "psrad      m0, 1\n    psrad      m2, 1\n    psrad      m1, 1\n    psrad      m3, 1\n\n    packssdw   m0, m2\n    packssdw   m1, m3\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [outputq + posq], m0\n    add      posq, ostrideq\n    movu    [outputq + posq], m1\n\n    add        yq, 1\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:15", "text": "sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:16", "text": "packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p11_n4]\n    pmaddwd    m2, [factor_p11_n4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:17", "text": "%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, ostrideq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "848c3ca772b5a7e18fedd32b80fa647785410426", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/848c3ca772b5a7e18fedd32b80fa647785410426/libavcodec/x86/cfhddsp.asm", "line_start": 641, "line_end": 682}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD decoder\n;* Copyright (c) 2020 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfactor_p1_n1: dw 1, -1, 1, -1, 1, -1, 1, -1,\nfactor_n1_p1: dw -1, 1, -1, 1, -1, 1, -1, 1,\nfactor_p11_n4: dw 11, -4, 11, -4, 11, -4, 11, -4,\nfactor_p5_p4: dw 5, 4, 5, 4, 5, 4, 5, 4,\npd_4: times 4 dd 4\npw_1: times 8 dw 1\npw_0: times 8 dw 0\npw_1023: times 8 dw 1023\npw_4095: times 8 dw 4095\n\nSECTION .text\n\n%macro CFHD_HORIZ_FILTER 1\n%if %1 == 1023\ncglobal cfhd_horiz_filter_clip10, 5, 6, 8 + 4 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%elif %1 == 4095\ncglobal cfhd_horiz_filter_clip12, 5, 6, 8 + 4 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%else\n%if ARCH_X86_64\ncglobal cfhd_horiz_filter, 8, 11, 12, output, ostride, low, lwidth, high, hwidth, width, height, x, y, temp\n    shl  ostrided, 1\n    shl   lwidthd, 1\n    shl   hwidthd, 1\n    shl    widthd, 1\n\n    mov        yd, heightd\n    neg        yq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:2", "text": "shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%elif %1 == 4095\ncglobal cfhd_horiz_filter_clip12, 5, 6, 8 + 4 * ARCH_X86_64, output, low, high, width, x, temp\n    shl        widthd, 1\n%define ostrideq widthq\n%define lwidthq  widthq\n%define hwidthq  widthq\n%else\n%if ARCH_X86_64\ncglobal cfhd_horiz_filter, 8, 11, 12, output, ostride, low, lwidth, high, hwidth, width, height, x, y, temp\n    shl  ostrided, 1\n    shl   lwidthd, 1\n    shl   hwidthd, 1\n    shl    widthd, 1\n\n    mov        yd, heightd\n    neg        yq\n%else\ncglobal cfhd_horiz_filter, 7, 7, 8, output, x, low, y, high, temp, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl     tempd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov    tempmp, tempq\n\n    mov        yd, r7m\n    neg        yq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  tempm\n%endif\n%endif\n\n%if ARCH_X86_64\n    mova       m8, [factor_p1_n1]\n    mova       m9, [factor_n1_p1]\n    mova      m10, [pw_1]\n    mova      m11, [pd_4]\n%endif\n\n%if %1 == 0\n.looph:\n%endif\n    movsx          xq, word [lowq]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    add         tempq, xq\n    add         tempq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:3", "text": "%if ARCH_X86_64\n    mova       m8, [factor_p1_n1]\n    mova       m9, [factor_n1_p1]\n    mova      m10, [pw_1]\n    mova      m11, [pd_4]\n%endif\n\n%if %1 == 0\n.looph:\n%endif\n    movsx          xq, word [lowq]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    add         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq], tempw\n\n    movsx          xq, word [lowq]\n    imul           xq, 5\n\n    movsx       tempq, word [lowq + 2]\n    imul        tempq, 4\n    add         tempq, xq\n\n    movsx          xq, word [lowq + 4]\n    sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq + 2], tempw\n\n    mov            xq, 0\n\n.loop:\n    movu           m4, [lowq + xq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:4", "text": "movsx          xq, word [lowq + 4]\n    sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq + 2], tempw\n\n    mov            xq, 0\n\n.loop:\n    movu           m4, [lowq + xq]\n    movu           m1, [lowq + xq + 4]\n\n    mova           m5, m4\n    punpcklwd      m4, m1\n    punpckhwd      m5, m1\n\n    mova           m6, m4\n    mova           m7, m5\n\n%if ARCH_X86_64\n    pmaddwd        m4, m8\n    pmaddwd        m5, m8\n    pmaddwd        m6, m9\n    pmaddwd        m7, m9\n\n    paddd          m4, m11\n    paddd          m5, m11\n    paddd          m6, m11\n    paddd          m7, m11\n%else\n    pmaddwd        m4, [factor_p1_n1]\n    pmaddwd        m5, [factor_p1_n1]\n    pmaddwd        m6, [factor_n1_p1]\n    pmaddwd        m7, [factor_n1_p1]\n\n    paddd          m4, [pd_4]\n    paddd          m5, [pd_4]\n    paddd          m6, [pd_4]\n    paddd          m7, [pd_4]\n%endif\n\n    psrad          m4, 3\n    psrad          m5, 3\n    psrad          m6, 3\n    psrad          m7, 3\n\n    movu           m2, [lowq + xq + 2]\n    movu           m3, [highq + xq + 2]\n\n    mova           m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:5", "text": "pmaddwd        m4, [factor_p1_n1]\n    pmaddwd        m5, [factor_p1_n1]\n    pmaddwd        m6, [factor_n1_p1]\n    pmaddwd        m7, [factor_n1_p1]\n\n    paddd          m4, [pd_4]\n    paddd          m5, [pd_4]\n    paddd          m6, [pd_4]\n    paddd          m7, [pd_4]\n%endif\n\n    psrad          m4, 3\n    psrad          m5, 3\n    psrad          m6, 3\n    psrad          m7, 3\n\n    movu           m2, [lowq + xq + 2]\n    movu           m3, [highq + xq + 2]\n\n    mova           m0, m2\n    punpcklwd      m2, m3\n    punpckhwd      m0, m3\n\n    mova           m1, m2\n    mova           m3, m0\n\n%if ARCH_X86_64\n    pmaddwd        m2, m10\n    pmaddwd        m0, m10\n    pmaddwd        m1, m8\n    pmaddwd        m3, m8\n%else\n    pmaddwd        m2, [pw_1]\n    pmaddwd        m0, [pw_1]\n    pmaddwd        m1, [factor_p1_n1]\n    pmaddwd        m3, [factor_p1_n1]\n%endif\n\n    paddd          m2, m4\n    paddd          m0, m5\n    paddd          m1, m6\n    paddd          m3, m7\n\n    psrad          m2, 1\n    psrad          m0, 1\n    psrad          m1, 1\n    psrad          m3, 1\n\n    packssdw       m2, m0\n    packssdw       m1, m3\n\n    mova           m0, m2\n    punpcklwd      m2, m1\n    punpckhwd      m0, m1\n\n%if %1\n    CLIPW          m2, [pw_0], [pw_%1]\n    CLIPW          m0, [pw_0], [pw_%1]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:6", "text": "paddd          m1, m6\n    paddd          m3, m7\n\n    psrad          m2, 1\n    psrad          m0, 1\n    psrad          m1, 1\n    psrad          m3, 1\n\n    packssdw       m2, m0\n    packssdw       m1, m3\n\n    mova           m0, m2\n    punpcklwd      m2, m1\n    punpckhwd      m0, m1\n\n%if %1\n    CLIPW          m2, [pw_0], [pw_%1]\n    CLIPW          m0, [pw_0], [pw_%1]\n%endif\n\n    movu  [outputq + xq * 2 + 4], m2\n    movu  [outputq + xq * 2 + mmsize + 4], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loop\n\n    add          lowq, widthq\n    add         highq, widthq\n    add       outputq, widthq\n    add       outputq, widthq\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 5\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, 4\n    add         tempq, xq\n\n    movsx          xq, word [lowq - 6]\n    sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]\n    add         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 4], tempw\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, -4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:7", "text": "sub         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]\n    add         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 4], tempw\n\n    movsx          xq, word [lowq - 2]\n    imul           xq, 11\n\n    movsx       tempq, word [lowq - 4]\n    imul        tempq, -4\n    add         tempq, xq\n\n    movsx          xq, word [lowq - 6]\n    add         tempq, xq\n    add         tempq, 4\n    sar         tempq, 3\n\n    movsx          xq, word [highq - 2]\n    sub         tempq, xq\n    sar         tempq, 1\n\n%if %1\n    movd          xm0, tempd\n    CLIPW          m0, [pw_0], [pw_%1]\n    pextrw      tempd, xm0, 0\n%endif\n    mov  word [outputq - 2], tempw\n\n%if %1 == 0\n    sub          lowq, widthq\n    sub         highq, widthq\n    sub       outputq, widthq\n    sub       outputq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add       outputq, ostrideq\n    add       outputq, ostrideq\n    add            yq, 1\n    jl .looph\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 0\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 1023", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:8", "text": "sub         highq, widthq\n    sub       outputq, widthq\n    sub       outputq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add       outputq, ostrideq\n    add       outputq, ostrideq\n    add            yq, 1\n    jl .looph\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 0\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 1023\n\nINIT_XMM sse2\nCFHD_HORIZ_FILTER 4095\n\nINIT_XMM sse2\n%if ARCH_X86_64\ncglobal cfhd_vert_filter, 8, 11, 14, output, ostride, low, lwidth, high, hwidth, width, height, x, y, pos\n    shl        ostrided, 1\n    shl         lwidthd, 1\n    shl         hwidthd, 1\n    shl          widthd, 1\n\n    dec   heightd\n\n    mova       m8, [factor_p1_n1]\n    mova       m9, [factor_n1_p1]\n    mova      m10, [pw_1]\n    mova      m11, [pd_4]\n    mova      m12, [factor_p11_n4]\n    mova      m13, [factor_p5_p4]\n%else\ncglobal cfhd_vert_filter, 7, 7, 8, output, x, low, y, high, pos, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl      posd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov     posmp, posq\n\n    mov        xq, r7m\n    dec        xq\n    mov   widthmp, xq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  posm\n%define heightq  widthm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:9", "text": "%else\ncglobal cfhd_vert_filter, 7, 7, 8, output, x, low, y, high, pos, width, height\n    shl        xd, 1\n    shl        yd, 1\n    shl      posd, 1\n    shl    widthd, 1\n\n    mov       xmp, xq\n    mov       ymp, yq\n    mov     posmp, posq\n\n    mov        xq, r7m\n    dec        xq\n    mov   widthmp, xq\n\n%define ostrideq xm\n%define lwidthq  ym\n%define hwidthq  posm\n%define heightq  widthm\n\n%endif\n\n    xor        xq, xq\n.loopw:\n    xor        yq, yq\n\n    mov      posq, xq\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p11_n4]\n    pmaddwd    m2, [factor_p11_n4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:10", "text": "%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    movu    [outputq + posq], m0\n\n    movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:11", "text": "movu       m0, [lowq + posq]\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    add      posq, ostrideq\n    movu    [outputq + posq], m0\n\n    add        yq, 1\n.looph:\n    mov      posq, lwidthq\n    imul     posq, yq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:12", "text": "punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    add      posq, ostrideq\n    movu    [outputq + posq], m0\n\n    add        yq, 1\n.looph:\n    mov      posq, lwidthq\n    imul     posq, yq\n    sub      posq, lwidthq\n    add      posq, xq\n\n    movu       m4, [lowq + posq]\n\n    add      posq, lwidthq\n    add      posq, lwidthq\n    movu       m1, [lowq + posq]\n\n    mova       m5, m4\n    punpcklwd  m4, m1\n    punpckhwd  m5, m1\n\n    mova       m6, m4\n    mova       m7, m5\n\n%if ARCH_X86_64\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n    pmaddwd    m6, m9\n    pmaddwd    m7, m9\n\n    paddd      m4, m11\n    paddd      m5, m11\n    paddd      m6, m11\n    paddd      m7, m11\n%else\n    pmaddwd    m4, [factor_p1_n1]\n    pmaddwd    m5, [factor_p1_n1]\n    pmaddwd    m6, [factor_n1_p1]\n    pmaddwd    m7, [factor_n1_p1]\n\n    paddd      m4, [pd_4]\n    paddd      m5, [pd_4]\n    paddd      m6, [pd_4]\n    paddd      m7, [pd_4]\n%endif\n\n    psrad      m4, 3\n    psrad      m5, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:13", "text": "pmaddwd    m7, m9\n\n    paddd      m4, m11\n    paddd      m5, m11\n    paddd      m6, m11\n    paddd      m7, m11\n%else\n    pmaddwd    m4, [factor_p1_n1]\n    pmaddwd    m5, [factor_p1_n1]\n    pmaddwd    m6, [factor_n1_p1]\n    pmaddwd    m7, [factor_n1_p1]\n\n    paddd      m4, [pd_4]\n    paddd      m5, [pd_4]\n    paddd      m6, [pd_4]\n    paddd      m7, [pd_4]\n%endif\n\n    psrad      m4, 3\n    psrad      m5, 3\n    psrad      m6, 3\n    psrad      m7, 3\n\n    sub      posq, lwidthq\n    movu       m0, [lowq + posq]\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m1, [highq + posq]\n\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n    mova       m1, m0\n    mova       m3, m2\n\n%if ARCH_X86_64\n    pmaddwd    m0, m10\n    pmaddwd    m2, m10\n    pmaddwd    m1, m8\n    pmaddwd    m3, m8\n%else\n    pmaddwd    m0, [pw_1]\n    pmaddwd    m2, [pw_1]\n    pmaddwd    m1, [factor_p1_n1]\n    pmaddwd    m3, [factor_p1_n1]\n%endif\n\n    paddd      m0, m4\n    paddd      m2, m5\n    paddd      m1, m6\n    paddd      m3, m7\n\n    psrad      m0, 1\n    psrad      m2, 1\n    psrad      m1, 1\n    psrad      m3, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:14", "text": "pmaddwd    m2, m10\n    pmaddwd    m1, m8\n    pmaddwd    m3, m8\n%else\n    pmaddwd    m0, [pw_1]\n    pmaddwd    m2, [pw_1]\n    pmaddwd    m1, [factor_p1_n1]\n    pmaddwd    m3, [factor_p1_n1]\n%endif\n\n    paddd      m0, m4\n    paddd      m2, m5\n    paddd      m1, m6\n    paddd      m3, m7\n\n    psrad      m0, 1\n    psrad      m2, 1\n    psrad      m1, 1\n    psrad      m3, 1\n\n    packssdw   m0, m2\n    packssdw   m1, m3\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [outputq + posq], m0\n    add      posq, ostrideq\n    movu    [outputq + posq], m1\n\n    add        yq, 1\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:15", "text": "sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m13\n    pmaddwd    m2, m13\n%else\n    pmaddwd    m0, [factor_p5_p4]\n    pmaddwd    m2, [factor_p5_p4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:16", "text": "add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n    movu       m0, [lowq + posq]\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m2, m0\n    punpcklwd  m0, m1\n    punpckhwd  m2, m1\n\n%if ARCH_X86_64\n    pmaddwd    m0, m12\n    pmaddwd    m2, m12\n%else\n    pmaddwd    m0, [factor_p11_n4]\n    pmaddwd    m2, [factor_p11_n4]\n%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:17", "text": "%endif\n\n    pxor       m4, m4\n    sub      posq, lwidthq\n    movu       m1, [lowq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    paddd      m0, m4\n    paddd      m2, m3\n\n%if ARCH_X86_64\n    paddd      m0, m11\n    paddd      m2, m11\n%else\n    paddd      m0, [pd_4]\n    paddd      m2, [pd_4]\n%endif\n\n    psrad      m0, 3\n    psrad      m2, 3\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n    pxor       m4, m4\n    movu       m1, [highq + posq]\n    mova       m3, m4\n    punpcklwd  m4, m1\n    punpckhwd  m3, m1\n\n    psrad      m4, 16\n    psrad      m3, 16\n\n    psubd      m0, m4\n    psubd      m2, m3\n\n    psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, ostrideq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 641, "line_end": 697}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhddsp.asm:18", "text": "psrad      m0, 1\n    psrad      m2, 1\n\n    packssdw   m0, m2\n\n    mov      posq, ostrideq\n    imul     posq, 2\n    imul     posq, yq\n    add      posq, ostrideq\n    add      posq, xq\n    movu    [outputq + posq], m0\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhddsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhddsp.asm", "line_start": 681, "line_end": 697}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD encoder\n;* Copyright (c) 2021 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_p1_n1:  dw  1, -1, 1, -1, 1, -1, 1, -1\npw_p5_n11: dw  5, -11, 5, -11, 5, -11, 5, -11\npw_p11_n5: dw 11, -5, 11, -5, 11, -5, 11, -5\npd_4:  times 4 dd  4\npw_n4: times 8 dw -4\ncextern pw_1\ncextern pw_4\n\nSECTION .text\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_horiz_filter, 6, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    movsxdifnidn widthq, widthm\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw        m9, m9       ; -1\n    sub      istrideq, widthq\n    shl      istrideq, 1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn   yq, ym\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:2", "text": "shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw        m9, m9       ; -1\n    sub      istrideq, widthq\n    shl      istrideq, 1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn   yq, ym\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]\n    imul           xq, 5\n    movsx       tempq, word [inputq + 2]\n    imul        tempq, -11\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 4]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 6]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 8]\n    imul           xq, -1\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:3", "text": "add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1\n    movu    [lowq+xq], m0\n\n    movu           m2, [inputq + xq * 2 - 4]\n    movu           m3, [inputq + xq * 2 - 4 + mmsize]\n\n    pmaddwd        m2, m9\n    pmaddwd        m3, m9\n\n    movu           m0, [inputq + xq * 2 + 4]\n    movu           m1, [inputq + xq * 2 + 4 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    paddd          m0, m2\n    paddd          m1, m3\n\n    paddd          m0, m7\n    paddd          m1, m7\n\n    psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw\n\n    lea        inputq, [inputq + widthq * 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:4", "text": "psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw\n\n    lea        inputq, [inputq + widthq * 2]\n\n    movsx          xq, word [inputq - 4]\n    movsx       tempq, word [inputq - 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [lowq+widthq-2], tempw\n\n    movsx       tempq, word [inputq - 4]\n    imul        tempq, 11\n    movsx          xq, word [inputq - 2]\n    imul           xq, -5\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 6]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [highq+widthq-2], tempw\n\n    add          lowq, lwidthq\n    add         highq, hwidthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:5", "text": "movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [highq+widthq-2], tempw\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add        inputq, istrideq\n    add            yq, 1\n    jl .looph\n\n    RET\n%endif\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_vert_filter, 8, 11, 13, input, low, high, istride, lwidth, hwidth, width, height, x, y, pos\n    shl  istrideq, 1\n\n    shl    widthd, 1\n    sub   heightd, 2\n\n    xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9      ; -1\n    mova       m10,[pw_p1_n1]\n    mova      m11, [pw_4]\n    mova      m12, [pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    movu    [lowq + xq], m0\n\n    mov      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:6", "text": "mova       m10,[pw_p1_n1]\n    mova      m11, [pw_4]\n    mova      m12, [pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    movu    [lowq + xq], m0\n\n    mov      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    SBUTTERFLY wd, 0, 1, 6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_p5_n11]\n    pmaddwd    m2, m11\n    pmaddwd    m3, m11\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    packssdw   m0, m1\n\n    movu   [highq + xq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:7", "text": "pmaddwd    m1, [pw_p5_n11]\n    pmaddwd    m2, m11\n    pmaddwd    m3, m11\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    packssdw   m0, m1\n\n    movu   [highq + xq], m0\n\n.looph:\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 2\n\n    mova       m6, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:8", "text": "mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 2\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    SBUTTERFLY wd, 2, 3, 6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m9\n    pmaddwd    m1, m9\n    pmaddwd    m2, m10\n    pmaddwd    m3, m10\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3\n    packssdw   m0, m1\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m0\n\n    add        yq, 2\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, istrideq\n    imul     posq, yq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:9", "text": "paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3\n    packssdw   m0, m1\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m0\n\n    add        yq, 2\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    sub        yq, 4\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 4\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:10", "text": "movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 4\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    SBUTTERFLY wd, 4, 5, 6\n\n    pmaddwd    m0, m8\n    pmaddwd    m1, m8\n    pmaddwd    m2, m12\n    pmaddwd    m3, m12\n    pmaddwd    m4, [pw_p11_n5]\n    pmaddwd    m5, [pw_p11_n5]\n\n    paddd      m4, m2\n    paddd      m5, m3\n\n    paddd      m4, m0\n    paddd      m5, m1\n\n    paddd      m4, m7\n    paddd      m5, m7\n\n    psrad      m4, 3\n    psrad      m5, 3\n    packssdw   m4, m5\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m4\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 361, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:11", "text": "psrad      m4, 3\n    psrad      m5, 3\n    packssdw   m4, m5\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m4\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/cfhdencdsp.asm", "line_start": 401, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD encoder\n;* Copyright (c) 2021 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_p1_n1:  dw  1, -1, 1, -1, 1, -1, 1, -1\npw_p5_n11: dw  5, -11, 5, -11, 5, -11, 5, -11\npw_p11_n5: dw 11, -5, 11, -5, 11, -5, 11, -5\npd_4:  times 4 dd  4\npw_n4: times 8 dw -4\ncextern pw_1\ncextern pw_4\n\nSECTION .text\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_horiz_filter, 6, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    movsxdifnidn widthq, widthm\n    shl  istrideq, 1\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw        m9, m9       ; -1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn   yq, ym\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:2", "text": "shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw        m9, m9       ; -1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn   yq, ym\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]\n    imul           xq, 5\n    movsx       tempq, word [inputq + 2]\n    imul        tempq, -11\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 4]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 6]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 8]\n    imul           xq, -1\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1\n    movu    [lowq+xq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:3", "text": "add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1\n    movu    [lowq+xq], m0\n\n    movu           m2, [inputq + xq * 2 - 4]\n    movu           m3, [inputq + xq * 2 - 4 + mmsize]\n\n    pmaddwd        m2, m9\n    pmaddwd        m3, m9\n\n    movu           m0, [inputq + xq * 2 + 4]\n    movu           m1, [inputq + xq * 2 + 4 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    paddd          m0, m2\n    paddd          m1, m3\n\n    paddd          m0, m7\n    paddd          m1, m7\n\n    psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw\n\n    add          lowq, widthq\n    add         highq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:4", "text": "psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw\n\n    add          lowq, widthq\n    add         highq, widthq\n    lea        inputq, [inputq + widthq * 2]\n\n    movsx          xq, word [inputq - 4]\n    movsx       tempq, word [inputq - 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [lowq-2], tempw\n\n    movsx       tempq, word [inputq - 4]\n    imul        tempq, 11\n    movsx          xq, word [inputq - 2]\n    imul           xq, -5\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 6]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [highq-2], tempw\n\n    sub        inputq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:5", "text": "movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [highq-2], tempw\n\n    sub        inputq, widthq\n    sub        inputq, widthq\n    sub         highq, widthq\n    sub          lowq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add        inputq, istrideq\n    add            yq, 1\n    jl .looph\n\n    RET\n%endif\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_vert_filter, 8, 11, 13, input, low, high, istride, lwidth, hwidth, width, height, x, y, pos\n    shl  istrideq, 1\n\n    shl    widthd, 1\n    sub   heightd, 2\n\n    xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9      ; -1\n    mova       m10,[pw_p1_n1]\n    mova      m11, [pw_4]\n    mova      m12, [pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    movu    [lowq + xq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:6", "text": "xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9      ; -1\n    mova       m10,[pw_p1_n1]\n    mova      m11, [pw_4]\n    mova      m12, [pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    movu    [lowq + xq], m0\n\n    mov      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    SBUTTERFLY wd, 0, 1, 6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_p5_n11]\n    pmaddwd    m2, m11\n    pmaddwd    m3, m11\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:7", "text": "mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_p5_n11]\n    pmaddwd    m2, m11\n    pmaddwd    m3, m11\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    packssdw   m0, m1\n\n    movu   [highq + xq], m0\n\n.looph:\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:8", "text": "imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 2\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    SBUTTERFLY wd, 2, 3, 6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m9\n    pmaddwd    m1, m9\n    pmaddwd    m2, m10\n    pmaddwd    m3, m10\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3\n    packssdw   m0, m1\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:9", "text": "pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3\n    packssdw   m0, m1\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m0\n\n    add        yq, 2\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    sub        yq, 4\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:10", "text": "sub        yq, 4\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 4\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    SBUTTERFLY wd, 4, 5, 6\n\n    pmaddwd    m0, m8\n    pmaddwd    m1, m8\n    pmaddwd    m2, m12\n    pmaddwd    m3, m12\n    pmaddwd    m4, [pw_p11_n5]\n    pmaddwd    m5, [pw_p11_n5]\n\n    paddd      m4, m2\n    paddd      m5, m3\n\n    paddd      m4, m0\n    paddd      m5, m1\n\n    paddd      m4, m7\n    paddd      m5, m7\n\n    psrad      m4, 3\n    psrad      m5, 3\n    packssdw   m4, m5\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m4\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:11", "text": "paddd      m4, m0\n    paddd      m5, m1\n\n    paddd      m4, m7\n    paddd      m5, m7\n\n    psrad      m4, 3\n    psrad      m5, 3\n    packssdw   m4, m5\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m4\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "7dd6487800582fbf5c50836f135a2d1ce14d7fec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dd6487800582fbf5c50836f135a2d1ce14d7fec/libavcodec/x86/cfhdencdsp.asm", "line_start": 401, "line_end": 421}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD encoder\n;* Copyright (c) 2021 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_p1_n1:  dw  1, -1, 1, -1, 1, -1, 1, -1\npw_p5_n11: dw  5, -11, 5, -11, 5, -11, 5, -11\npw_p11_n5: dw 11, -5, 11, -5, 11, -5, 11, -5\npd_4:  times 4 dd  4\npw_n4: times 8 dw -4\ncextern pw_1\ncextern pw_4\n\nSECTION .text\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_horiz_filter, 8, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    shl  istrideq, 1\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw        m9, m9       ; -1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn yq, yd\n    movsxdifnidn widthq, widthd\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "91c7710412bdb9bcd6aac76840b86e8a5da19785", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91c7710412bdb9bcd6aac76840b86e8a5da19785/libavcodec/x86/cfhdencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:2", "text": "shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw        m9, m9       ; -1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn yq, yd\n    movsxdifnidn widthq, widthd\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]\n    imul           xq, 5\n    movsx       tempq, word [inputq + 2]\n    imul        tempq, -11\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 4]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 6]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 8]\n    imul           xq, -1\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1\n    movu    [lowq+xq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "91c7710412bdb9bcd6aac76840b86e8a5da19785", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91c7710412bdb9bcd6aac76840b86e8a5da19785/libavcodec/x86/cfhdencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD encoder\n;* Copyright (c) 2021 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_p1_n1:  dw  1, -1, 1, -1, 1, -1, 1, -1\npw_n1_p1:  dw  -1, 1, -1, 1, -1, 1, -1, 1\npw_p5_n11: dw  5, -11, 5, -11, 5, -11, 5, -11\npw_n5_p11: dw -5, 11, -5, 11, -5, 11, -5, 11\npw_p11_n5: dw 11, -5, 11, -5, 11, -5, 11, -5\npw_n11_p5: dw -11, 5, -11, 5, -11, 5, -11, 5\npd_4:  times 4 dd  4\npw_n4: times 8 dw -4\ncextern pw_1\ncextern pw_4\n\nSECTION .text\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_horiz_filter, 8, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    shl  istrideq, 1\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9       ; -1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn yq, yd\n    movsxdifnidn widthq, widthd\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:2", "text": "cglobal cfhdenc_horiz_filter, 8, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    shl  istrideq, 1\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9       ; -1\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn yq, yd\n    movsxdifnidn widthq, widthd\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]\n    imul           xq, 5\n    movsx       tempq, word [inputq + 2]\n    imul        tempq, -11\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 4]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 6]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 8]\n    imul           xq, -1\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:3", "text": "movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1\n    movu    [lowq+xq], m0\n\n    movu           m2, [inputq + xq * 2 - 4]\n    movu           m3, [inputq + xq * 2 - 4 + mmsize]\n\n    pmaddwd        m2, m9\n    pmaddwd        m3, m9\n\n    movu           m0, [inputq + xq * 2 + 4]\n    movu           m1, [inputq + xq * 2 + 4 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    paddd          m0, m2\n    paddd          m1, m3\n\n    paddd          m0, m7\n    paddd          m1, m7\n\n    psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:4", "text": "paddd          m1, m7\n\n    psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw\n\n    add          lowq, widthq\n    add         highq, widthq\n    lea        inputq, [inputq + widthq * 2]\n\n    movsx          xq, word [inputq - 4]\n    movsx       tempq, word [inputq - 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [lowq-2], tempw\n\n    movsx       tempq, word [inputq - 4]\n    imul        tempq, 11\n    movsx          xq, word [inputq - 2]\n    imul           xq, -5\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 6]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:5", "text": "movsx          xq, word [inputq - 6]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [highq-2], tempw\n\n    sub        inputq, widthq\n    sub        inputq, widthq\n    sub         highq, widthq\n    sub          lowq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add        inputq, istrideq\n    add            yq, 1\n    jl .looph\n\n    RET\n%endif\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_vert_filter, 8, 11, 14, input, low, high, istride, lwidth, hwidth, width, height, x, y, pos\n    shl  istrideq, 1\n\n    shl    widthd, 1\n    sub   heightd, 2\n\n    xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9      ; -1\n    mova       m10,[pw_p1_n1]\n    mova       m11,[pw_n1_p1]\n    mova       m12,[pw_4]\n    mova       m13,[pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:6", "text": "shl    widthd, 1\n    sub   heightd, 2\n\n    xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    pcmpeqw    m9, m9      ; -1\n    mova       m10,[pw_p1_n1]\n    mova       m11,[pw_n1_p1]\n    mova       m12,[pw_4]\n    mova       m13,[pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    movu    [lowq + xq], m0\n\n    mov      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_n11_p5]\n    pmaddwd    m2, m12\n    pmaddwd    m3, m12\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:7", "text": "punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_n11_p5]\n    pmaddwd    m2, m12\n    pmaddwd    m3, m12\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    packssdw   m0, m1\n\n    movu   [highq + xq], m0\n\n.looph:\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:8", "text": "add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 2\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m9\n    pmaddwd    m1, m9\n    pmaddwd    m2, m10\n    pmaddwd    m3, m11\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:9", "text": "punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m9\n    pmaddwd    m1, m9\n    pmaddwd    m2, m10\n    pmaddwd    m3, m11\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3\n    packssdw   m0, m1\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m0\n\n    add        yq, 2\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    sub        yq, 4\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:10", "text": "paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    sub        yq, 4\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 4\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m8\n    pmaddwd    m1, m8\n    pmaddwd    m2, m13\n    pmaddwd    m3, m13\n    pmaddwd    m4, [pw_p11_n5]\n    pmaddwd    m5, [pw_n5_p11]\n\n    paddd      m4, m2\n    paddd      m5, m3\n\n    paddd      m4, m0\n    paddd      m5, m1\n\n    paddd      m4, m7\n    paddd      m5, m7\n\n    psrad      m4, 3\n    psrad      m5, 3\n    packssdw   m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:11", "text": "pmaddwd    m0, m8\n    pmaddwd    m1, m8\n    pmaddwd    m2, m13\n    pmaddwd    m3, m13\n    pmaddwd    m4, [pw_p11_n5]\n    pmaddwd    m5, [pw_n5_p11]\n\n    paddd      m4, m2\n    paddd      m5, m3\n\n    paddd      m4, m0\n    paddd      m5, m1\n\n    paddd      m4, m7\n    paddd      m5, m7\n\n    psrad      m4, 3\n    psrad      m5, 3\n    packssdw   m4, m5\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m4\n\n    add        xq, mmsize\n    cmp        xq, widthq\n    jl .loopw\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "cd3d8116fb751fea6c498998f6ec2e30e6529a5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd3d8116fb751fea6c498998f6ec2e30e6529a5d/libavcodec/x86/cfhdencdsp.asm", "line_start": 401, "line_end": 431}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for the CFHD encoder\n;* Copyright (c) 2021 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_p1_n1:  dw  1, -1, 1, -1, 1, -1, 1, -1\npw_n1_p1:  dw  -1, 1, -1, 1, -1, 1, -1, 1\npw_p5_n11: dw  5, -11, 5, -11, 5, -11, 5, -11\npw_n5_p11: dw -5, 11, -5, 11, -5, 11, -5, 11\npw_p11_n5: dw 11, -5, 11, -5, 11, -5, 11, -5\npw_n11_p5: dw -11, 5, -11, 5, -11, 5, -11, 5\npd_4:  times 4 dd  4\npw_n4: times 8 dw -4\ncextern pw_m1\ncextern pw_1\ncextern pw_4\n\nSECTION .text\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_horiz_filter, 8, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    shl  istrideq, 1\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    mova       m9, [pw_m1]\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn yq, yd\n    movsxdifnidn widthq, widthd\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:2", "text": "INIT_XMM sse2\ncglobal cfhdenc_horiz_filter, 8, 10, 11, input, low, high, istride, lwidth, hwidth, width, y, x, temp\n    shl  istrideq, 1\n    shl   lwidthq, 1\n    shl   hwidthq, 1\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    mova       m9, [pw_m1]\n    mova       m10,[pw_p1_n1]\n    movsxdifnidn yq, yd\n    movsxdifnidn widthq, widthd\n    neg        yq\n.looph:\n    movsx          xq, word [inputq]\n\n    movsx       tempq, word [inputq + 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov   word [lowq], tempw\n\n    movsx          xq, word [inputq]\n    imul           xq, 5\n    movsx       tempq, word [inputq + 2]\n    imul        tempq, -11\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 4]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 6]\n    imul           xq, 4\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 8]\n    imul           xq, -1\n    add         tempq, xq\n\n    movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:3", "text": "movsx          xq, word [inputq + 10]\n    imul           xq, -1\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov  word [highq], tempw\n\n    mov            xq, 2\n\n.loopw:\n    movu           m0, [inputq + xq * 2]\n    movu           m1, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    packssdw       m0, m1\n    movu    [lowq+xq], m0\n\n    movu           m2, [inputq + xq * 2 - 4]\n    movu           m3, [inputq + xq * 2 - 4 + mmsize]\n\n    pmaddwd        m2, m9\n    pmaddwd        m3, m9\n\n    movu           m0, [inputq + xq * 2 + 4]\n    movu           m1, [inputq + xq * 2 + 4 + mmsize]\n\n    pmaddwd        m0, m8\n    pmaddwd        m1, m8\n\n    paddd          m0, m2\n    paddd          m1, m3\n\n    paddd          m0, m7\n    paddd          m1, m7\n\n    psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:4", "text": "paddd          m0, m7\n    paddd          m1, m7\n\n    psrad          m0, 3\n    psrad          m1, 3\n\n    movu           m5, [inputq + xq * 2 + 0]\n    movu           m6, [inputq + xq * 2 + mmsize]\n\n    pmaddwd        m5, m10\n    pmaddwd        m6, m10\n\n    paddd          m0, m5\n    paddd          m1, m6\n\n    packssdw       m0, m1\n    movu   [highq+xq], m0\n\n    add            xq, mmsize\n    cmp            xq, widthq\n    jl .loopw\n\n    add          lowq, widthq\n    add         highq, widthq\n    lea        inputq, [inputq + widthq * 2]\n\n    movsx          xq, word [inputq - 4]\n    movsx       tempq, word [inputq - 2]\n    add         tempq, xq\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [lowq-2], tempw\n\n    movsx       tempq, word [inputq - 4]\n    imul        tempq, 11\n    movsx          xq, word [inputq - 2]\n    imul           xq, -5\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 6]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:5", "text": "movsx          xq, word [inputq - 6]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 8]\n    imul           xq, -4\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 10]\n    add         tempq, xq\n\n    movsx          xq, word [inputq - 12]\n    add         tempq, xq\n\n    add         tempq, 4\n    sar         tempq, 3\n\n    movd          xm0, tempd\n    packssdw       m0, m0\n    movd        tempd, m0\n    mov word [highq-2], tempw\n\n    sub        inputq, widthq\n    sub        inputq, widthq\n    sub         highq, widthq\n    sub          lowq, widthq\n\n    add          lowq, lwidthq\n    add         highq, hwidthq\n    add        inputq, istrideq\n    add            yq, 1\n    jl .looph\n\n    RET\n%endif\n\n%if ARCH_X86_64\nINIT_XMM sse2\ncglobal cfhdenc_vert_filter, 8, 11, 14, input, low, high, istride, lwidth, hwidth, width, height, x, y, pos\n    shl  istrideq, 1\n\n    shl    widthd, 1\n    sub   heightd, 2\n\n    xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    mova       m9, [pw_m1]\n    mova       m10,[pw_p1_n1]\n    mova       m11,[pw_n1_p1]\n    mova       m12,[pw_4]\n    mova       m13,[pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:6", "text": "shl  istrideq, 1\n\n    shl    widthd, 1\n    sub   heightd, 2\n\n    xor        xq, xq\n\n    mova       m7, [pd_4]\n    mova       m8, [pw_1]\n    mova       m9, [pw_m1]\n    mova       m10,[pw_p1_n1]\n    mova       m11,[pw_n1_p1]\n    mova       m12,[pw_4]\n    mova       m13,[pw_n4]\n.loopw:\n    mov        yq, 2\n\n    mov      posq, xq\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    movu    [lowq + xq], m0\n\n    mov      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_n11_p5]\n    pmaddwd    m2, m12\n    pmaddwd    m3, m12\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:7", "text": "mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, [pw_p5_n11]\n    pmaddwd    m1, [pw_n11_p5]\n    pmaddwd    m2, m12\n    pmaddwd    m3, m12\n    pmaddwd    m4, m9\n    pmaddwd    m5, m9\n\n    paddd      m0, m2\n    paddd      m1, m3\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    packssdw   m0, m1\n\n    movu   [highq + xq], m0\n\n.looph:\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:8", "text": "add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    add        yq, -2\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]\n    add      posq, istrideq\n    movu       m3, [inputq + posq]\n    add      posq, istrideq\n    movu       m4, [inputq + posq]\n    add      posq, istrideq\n    movu       m5, [inputq + posq]\n\n    add        yq, 2\n\n    mova       m6, m0\n    punpcklwd  m0, m1\n    punpckhwd  m1, m6\n\n    mova       m6, m2\n    punpcklwd  m2, m3\n    punpckhwd  m3, m6\n\n    mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m9\n    pmaddwd    m1, m9\n    pmaddwd    m2, m10\n    pmaddwd    m3, m11\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/cfhdencdsp.asm:9", "text": "mova       m6, m4\n    punpcklwd  m4, m5\n    punpckhwd  m5, m6\n\n    pmaddwd    m0, m9\n    pmaddwd    m1, m9\n    pmaddwd    m2, m10\n    pmaddwd    m3, m11\n    pmaddwd    m4, m8\n    pmaddwd    m5, m8\n\n    paddd      m0, m4\n    paddd      m1, m5\n\n    paddd      m0, m7\n    paddd      m1, m7\n\n    psrad      m0, 3\n    psrad      m1, 3\n    paddd      m0, m2\n    paddd      m1, m3\n    packssdw   m0, m1\n\n    mov      posq, hwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu   [highq + posq], m0\n\n    add        yq, 2\n    cmp        yq, heightq\n    jl .looph\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n\n    paddsw     m0, m1\n\n    mov      posq, lwidthq\n    imul     posq, yq\n    add      posq, xq\n\n    movu    [lowq + posq], m0\n\n    sub        yq, 4\n\n    mov      posq, istrideq\n    imul     posq, yq\n    add      posq, xq\n\n    movu       m0, [inputq + posq]\n    add      posq, istrideq\n    movu       m1, [inputq + posq]\n    add      posq, istrideq\n    movu       m2, [inputq + posq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/cfhdencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/cfhdencdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized functions for the DCA decoder\n;* Copyright (C) 2016 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%define sizeof_float 4\n%define FMA3_OFFSET (8 * cpuflag(fma3))\n\n%macro LFE_FIR0_FLOAT 0\ncglobal lfe_fir0_float, 4, 6, 12 + cpuflag(fma3)*4, samples, lfe, coeff, nblocks, cnt1, cnt2\n    shr nblocksd, 1\n    sub     lfeq, 7*sizeof_float\n    mov    cnt1d, 32*sizeof_float\n    mov    cnt2d, 32*sizeof_float-8-FMA3_OFFSET\n    lea   coeffq, [coeffq+cnt1q*8]\n    add samplesq, cnt1q\n    neg    cnt1q\n\n.loop:\n%if cpuflag(avx)\n    cvtdq2ps  m4, [lfeq+16]\n    cvtdq2ps  m5, [lfeq   ]\n    shufps    m7, m4, m4, q0123\n    shufps    m6, m5, m5, q0123\n%else\n    movu      m4, [lfeq+16]\n    movu      m5, [lfeq   ]\n    cvtdq2ps  m4, m4\n    cvtdq2ps  m5, m5\n    pshufd    m7, m4, q0123\n    pshufd    m6, m5, q0123\n%endif\n\n.inner_loop:\n%if ARCH_X86_64\n    movaps    m8, [coeffq+cnt1q*8   ]\n    movaps    m9, [coeffq+cnt1q*8+16]\n    movaps   m10, [coeffq+cnt1q*8+32]\n    movaps   m11, [coeffq+cnt1q*8+48]\n%if cpuflag(fma3)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:2", "text": "cvtdq2ps  m4, [lfeq+16]\n    cvtdq2ps  m5, [lfeq   ]\n    shufps    m7, m4, m4, q0123\n    shufps    m6, m5, m5, q0123\n%else\n    movu      m4, [lfeq+16]\n    movu      m5, [lfeq   ]\n    cvtdq2ps  m4, m4\n    cvtdq2ps  m5, m5\n    pshufd    m7, m4, q0123\n    pshufd    m6, m5, q0123\n%endif\n\n.inner_loop:\n%if ARCH_X86_64\n    movaps    m8, [coeffq+cnt1q*8   ]\n    movaps    m9, [coeffq+cnt1q*8+16]\n    movaps   m10, [coeffq+cnt1q*8+32]\n    movaps   m11, [coeffq+cnt1q*8+48]\n%if cpuflag(fma3)\n    movaps   m12, [coeffq+cnt1q*8+64]\n    movaps   m13, [coeffq+cnt1q*8+80]\n    movaps   m14, [coeffq+cnt1q*8+96]\n    movaps   m15, [coeffq+cnt1q*8+112]\n    mulps     m0, m7, m8\n    mulps     m1, m7, m10\n    mulps     m2, m7, m12\n    mulps     m3, m7, m14\n    fmaddps   m0, m6, m9, m0\n    fmaddps   m1, m6, m11, m1\n    fmaddps   m2, m6, m13, m2\n    fmaddps   m3, m6, m15, m3\n\n    haddps    m0, m1\n    haddps    m2, m3\n    haddps    m0, m2\n    movaps [samplesq+cnt1q], m0\n%else\n    mulps     m0, m7, m8\n    mulps     m1, m6, m9\n    mulps     m2, m7, m10\n    mulps     m3, m6, m11\n    addps     m0, m1\n    addps     m2, m3\n\n    unpckhps  m3, m0, m2\n    unpcklps  m0, m2\n    addps     m3, m0\n    movhlps   m2, m3\n    addps     m2, m3\n    movlps [samplesq+cnt1q], m2\n%endif\n%else ; ARCH_X86_32\n%if cpuflag(fma3)\n    mulps     m0, m7, [coeffq+cnt1q*8    ]\n    mulps     m1, m7, [coeffq+cnt1q*8+32 ]\n    mulps     m2, m7, [coeffq+cnt1q*8+64 ]\n    mulps     m3, m7, [coeffq+cnt1q*8+96 ]\n    fmaddps   m0, m6, [coeffq+cnt1q*8+16 ], m0\n    fmaddps   m1, m6, [coeffq+cnt1q*8+48 ], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:3", "text": "mulps     m2, m7, m10\n    mulps     m3, m6, m11\n    addps     m0, m1\n    addps     m2, m3\n\n    unpckhps  m3, m0, m2\n    unpcklps  m0, m2\n    addps     m3, m0\n    movhlps   m2, m3\n    addps     m2, m3\n    movlps [samplesq+cnt1q], m2\n%endif\n%else ; ARCH_X86_32\n%if cpuflag(fma3)\n    mulps     m0, m7, [coeffq+cnt1q*8    ]\n    mulps     m1, m7, [coeffq+cnt1q*8+32 ]\n    mulps     m2, m7, [coeffq+cnt1q*8+64 ]\n    mulps     m3, m7, [coeffq+cnt1q*8+96 ]\n    fmaddps   m0, m6, [coeffq+cnt1q*8+16 ], m0\n    fmaddps   m1, m6, [coeffq+cnt1q*8+48 ], m1\n    fmaddps   m2, m6, [coeffq+cnt1q*8+80 ], m2\n    fmaddps   m3, m6, [coeffq+cnt1q*8+112], m3\n\n    haddps    m0, m1\n    haddps    m2, m3\n    haddps    m0, m2\n    movaps [samplesq+cnt1q], m0\n%else\n    mulps     m0, m7, [coeffq+cnt1q*8   ]\n    mulps     m1, m6, [coeffq+cnt1q*8+16]\n    mulps     m2, m7, [coeffq+cnt1q*8+32]\n    mulps     m3, m6, [coeffq+cnt1q*8+48]\n    addps     m0, m1\n    addps     m2, m3\n\n    unpckhps  m3, m0, m2\n    unpcklps  m0, m2\n    addps     m3, m0\n    movhlps   m2, m3\n    addps     m2, m3\n    movlps [samplesq+cnt1q], m2\n%endif\n%endif; ARCH\n\n%if ARCH_X86_64\n%if cpuflag(fma3)\n    mulps     m8, m5\n    mulps    m10, m5\n    mulps    m12, m5\n    mulps    m14, m5\n    fmaddps   m8, m4, m9, m8\n    fmaddps  m10, m4, m11, m10\n    fmaddps  m12, m4, m13, m12\n    fmaddps  m14, m4, m15, m14\n\n    haddps   m10, m8\n    haddps   m14, m12\n    haddps   m14, m10\n    movaps [samplesq+cnt2q], m14\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:4", "text": "movlps [samplesq+cnt1q], m2\n%endif\n%endif; ARCH\n\n%if ARCH_X86_64\n%if cpuflag(fma3)\n    mulps     m8, m5\n    mulps    m10, m5\n    mulps    m12, m5\n    mulps    m14, m5\n    fmaddps   m8, m4, m9, m8\n    fmaddps  m10, m4, m11, m10\n    fmaddps  m12, m4, m13, m12\n    fmaddps  m14, m4, m15, m14\n\n    haddps   m10, m8\n    haddps   m14, m12\n    haddps   m14, m10\n    movaps [samplesq+cnt2q], m14\n%else\n    mulps     m8, m5\n    mulps     m9, m4\n    mulps    m10, m5\n    mulps    m11, m4\n    addps     m8, m9\n    addps    m10, m11\n\n    unpckhps m11, m10, m8\n    unpcklps m10, m8\n    addps    m11, m10\n    movhlps   m8, m11\n    addps     m8, m11\n    movlps [samplesq+cnt2q], m8\n%endif\n%else ; ARCH_X86_32\n%if cpuflag(fma3)\n    mulps     m0, m5, [coeffq+cnt1q*8    ]\n    mulps     m1, m5, [coeffq+cnt1q*8+32 ]\n    mulps     m2, m5, [coeffq+cnt1q*8+64 ]\n    mulps     m3, m5, [coeffq+cnt1q*8+96 ]\n    fmaddps   m0, m4, [coeffq+cnt1q*8+16 ], m0\n    fmaddps   m1, m4, [coeffq+cnt1q*8+48 ], m1\n    fmaddps   m2, m4, [coeffq+cnt1q*8+80 ], m2\n    fmaddps   m3, m4, [coeffq+cnt1q*8+112], m3\n\n    haddps    m1, m0\n    haddps    m3, m2\n    haddps    m3, m1\n    movaps [samplesq+cnt2q], m3\n%else\n    mulps     m0, m5, [coeffq+cnt1q*8   ]\n    mulps     m1, m4, [coeffq+cnt1q*8+16]\n    mulps     m2, m5, [coeffq+cnt1q*8+32]\n    mulps     m3, m4, [coeffq+cnt1q*8+48]\n    addps     m0, m1\n    addps     m2, m3\n\n    unpckhps  m3, m2, m0\n    unpcklps  m2, m0\n    addps     m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:5", "text": "fmaddps   m0, m4, [coeffq+cnt1q*8+16 ], m0\n    fmaddps   m1, m4, [coeffq+cnt1q*8+48 ], m1\n    fmaddps   m2, m4, [coeffq+cnt1q*8+80 ], m2\n    fmaddps   m3, m4, [coeffq+cnt1q*8+112], m3\n\n    haddps    m1, m0\n    haddps    m3, m2\n    haddps    m3, m1\n    movaps [samplesq+cnt2q], m3\n%else\n    mulps     m0, m5, [coeffq+cnt1q*8   ]\n    mulps     m1, m4, [coeffq+cnt1q*8+16]\n    mulps     m2, m5, [coeffq+cnt1q*8+32]\n    mulps     m3, m4, [coeffq+cnt1q*8+48]\n    addps     m0, m1\n    addps     m2, m3\n\n    unpckhps  m3, m2, m0\n    unpcklps  m2, m0\n    addps     m3, m2\n    movhlps   m0, m3\n    addps     m0, m3\n    movlps [samplesq+cnt2q], m0\n%endif\n%endif; ARCH\n\n    sub    cnt2d, 8 + FMA3_OFFSET\n    add    cnt1q, 8 + FMA3_OFFSET\n    jl .inner_loop\n\n    add     lfeq, 4\n    add samplesq,  64*sizeof_float\n    mov    cnt1q, -32*sizeof_float\n    mov    cnt2d,  32*sizeof_float-8-FMA3_OFFSET\n    sub nblocksd, 1\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLFE_FIR0_FLOAT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nLFE_FIR0_FLOAT\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_XMM fma3\nLFE_FIR0_FLOAT\n%endif\n\n%macro LFE_FIR1_FLOAT 0\ncglobal lfe_fir1_float, 4, 6, 10, samples, lfe, coeff, nblocks, cnt1, cnt2\n    shr nblocksd, 2\n    sub     lfeq, 3*sizeof_float\n    mov    cnt1d, 64*sizeof_float\n    mov    cnt2d, 64*sizeof_float-16\n    lea   coeffq, [coeffq+cnt1q*4]\n    add samplesq, cnt1q\n    neg    cnt1q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:6", "text": "LFE_FIR0_FLOAT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nLFE_FIR0_FLOAT\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_XMM fma3\nLFE_FIR0_FLOAT\n%endif\n\n%macro LFE_FIR1_FLOAT 0\ncglobal lfe_fir1_float, 4, 6, 10, samples, lfe, coeff, nblocks, cnt1, cnt2\n    shr nblocksd, 2\n    sub     lfeq, 3*sizeof_float\n    mov    cnt1d, 64*sizeof_float\n    mov    cnt2d, 64*sizeof_float-16\n    lea   coeffq, [coeffq+cnt1q*4]\n    add samplesq, cnt1q\n    neg    cnt1q\n\n.loop:\n%if cpuflag(avx)\n    cvtdq2ps  m4, [lfeq]\n    shufps    m5, m4, m4, q0123\n%else\n    movu      m4, [lfeq]\n    cvtdq2ps  m4, m4\n    pshufd    m5, m4, q0123\n%endif\n\n.inner_loop:\n    movaps    m6, [coeffq+cnt1q*4   ]\n    movaps    m7, [coeffq+cnt1q*4+16]\n    mulps     m0, m5, m6\n    mulps     m1, m5, m7\n%if ARCH_X86_64\n    movaps    m8, [coeffq+cnt1q*4+32]\n    movaps    m9, [coeffq+cnt1q*4+48]\n    mulps     m2, m5, m8\n    mulps     m3, m5, m9\n%else\n    mulps     m2, m5, [coeffq+cnt1q*4+32]\n    mulps     m3, m5, [coeffq+cnt1q*4+48]\n%endif\n\n    haddps    m0, m1\n    haddps    m2, m3\n    haddps    m0, m2\n    movaps [samplesq+cnt1q], m0\n\n    mulps     m6, m4\n    mulps     m7, m4\n%if ARCH_X86_64\n    mulps     m8, m4\n    mulps     m9, m4\n\n    haddps    m6, m7\n    haddps    m8, m9\n    haddps    m6, m8\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dcadsp.asm:7", "text": "%else\n    mulps     m2, m5, [coeffq+cnt1q*4+32]\n    mulps     m3, m5, [coeffq+cnt1q*4+48]\n%endif\n\n    haddps    m0, m1\n    haddps    m2, m3\n    haddps    m0, m2\n    movaps [samplesq+cnt1q], m0\n\n    mulps     m6, m4\n    mulps     m7, m4\n%if ARCH_X86_64\n    mulps     m8, m4\n    mulps     m9, m4\n\n    haddps    m6, m7\n    haddps    m8, m9\n    haddps    m6, m8\n%else\n    mulps     m2, m4, [coeffq+cnt1q*4+32]\n    mulps     m3, m4, [coeffq+cnt1q*4+48]\n\n    haddps    m6, m7\n    haddps    m2, m3\n    haddps    m6, m2\n%endif\n    movaps [samplesq+cnt2q], m6\n\n    sub    cnt2d, 16\n    add    cnt1q, 16\n    jl .inner_loop\n\n    add     lfeq, sizeof_float\n    add samplesq, 128*sizeof_float\n    mov    cnt1q, -64*sizeof_float\n    mov    cnt2d,  64*sizeof_float-16\n    sub nblocksd, 1\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse3\nLFE_FIR1_FLOAT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nLFE_FIR1_FLOAT\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dcadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dcadsp.asm", "line_start": 241, "line_end": 288}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:1", "text": ";******************************************************************************\n;* 32 point SSE-optimized DCT transform\n;* Copyright (c) 2010 Vitor Sessak\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\nps_p1p1m1m1: dd 0, 0, 0x80000000, 0x80000000, 0, 0, 0x80000000, 0x80000000\n\nps_cos_vec: dd   0.500603,  0.505471,  0.515447,  0.531043\n            dd   0.553104,  0.582935,  0.622504,  0.674808\n            dd -10.190008, -3.407609, -2.057781, -1.484165\n            dd  -1.169440, -0.972568, -0.839350, -0.744536\n            dd   0.502419,  0.522499,  0.566944,  0.646822\n            dd   0.788155,  1.060678,  1.722447,  5.101149\n            dd   0.509796,  0.601345,  0.899976,  2.562916\n            dd   0.509796,  0.601345,  0.899976,  2.562916\n            dd   1.000000,  1.000000,  1.306563,  0.541196\n            dd   1.000000,  1.000000,  1.306563,  0.541196\n            dd   1.000000,  0.707107,  1.000000, -0.707107\n            dd   1.000000,  0.707107,  1.000000, -0.707107\n            dd   0.707107,  0.707107,  0.707107,  0.707107\n\n%macro BUTTERFLY 4\n    subps  %4, %1, %2\n    addps  %2, %2, %1\n    mulps  %1, %4, %3\n%endmacro\n\n%macro BUTTERFLY0 5\n%if cpuflag(sse2) && notcpuflag(avx)\n    pshufd %4, %1, %5\n    xorps  %1, %2\n    addps  %1, %4\n    mulps  %1, %3\n%else\n    shufps %4, %1, %1, %5\n    xorps  %1, %1, %2\n    addps  %4, %4, %1\n    mulps  %1, %4, %3\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:2", "text": "%macro BUTTERFLY 4\n    subps  %4, %1, %2\n    addps  %2, %2, %1\n    mulps  %1, %4, %3\n%endmacro\n\n%macro BUTTERFLY0 5\n%if cpuflag(sse2) && notcpuflag(avx)\n    pshufd %4, %1, %5\n    xorps  %1, %2\n    addps  %1, %4\n    mulps  %1, %3\n%else\n    shufps %4, %1, %1, %5\n    xorps  %1, %1, %2\n    addps  %4, %4, %1\n    mulps  %1, %4, %3\n%endif\n%endmacro\n\n%macro BUTTERFLY2 4\n    BUTTERFLY0 %1, %2, %3, %4, 0x1b\n%endmacro\n\n%macro BUTTERFLY3 4\n    BUTTERFLY0 %1, %2, %3, %4, 0xb1\n%endmacro\n\n%macro BUTTERFLY3V 5\n    movaps m%5, m%1\n    addps  m%1, m%2\n    subps  m%5, m%2\n    SWAP %2, %5\n    mulps  m%2, [ps_cos_vec+192]\n    movaps m%5, m%3\n    addps  m%3, m%4\n    subps  m%4, m%5\n    mulps  m%4, [ps_cos_vec+192]\n%endmacro\n\n%macro PASS6_AND_PERMUTE 0\n    mov         tmpd, [outq+4]\n    movss         m7, [outq+72]\n    addss         m7, [outq+76]\n    movss         m3, [outq+56]\n    addss         m3, [outq+60]\n    addss         m4, m3\n    movss         m2, [outq+52]\n    addss         m2, m3\n    movss         m3, [outq+104]\n    addss         m3, [outq+108]\n    addss         m1, m3\n    addss         m5, m4\n    movss [outq+ 16], m1\n    movss         m1, [outq+100]\n    addss         m1, m3\n    movss         m3, [outq+40]\n    movss [outq+ 48], m1\n    addss         m3, [outq+44]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:3", "text": "%macro PASS6_AND_PERMUTE 0\n    mov         tmpd, [outq+4]\n    movss         m7, [outq+72]\n    addss         m7, [outq+76]\n    movss         m3, [outq+56]\n    addss         m3, [outq+60]\n    addss         m4, m3\n    movss         m2, [outq+52]\n    addss         m2, m3\n    movss         m3, [outq+104]\n    addss         m3, [outq+108]\n    addss         m1, m3\n    addss         m5, m4\n    movss [outq+ 16], m1\n    movss         m1, [outq+100]\n    addss         m1, m3\n    movss         m3, [outq+40]\n    movss [outq+ 48], m1\n    addss         m3, [outq+44]\n    movss         m1, [outq+100]\n    addss         m4, m3\n    addss         m3, m2\n    addss         m1, [outq+108]\n    movss [outq+ 40], m3\n    addss         m2, [outq+36]\n    movss         m3, [outq+8]\n    movss [outq+ 56], m2\n    addss         m3, [outq+12]\n    movss [outq+ 32], m3\n    movss         m3, [outq+80]\n    movss [outq+  8], m5\n    movss [outq+ 80], m1\n    movss         m2, [outq+52]\n    movss         m5, [outq+120]\n    addss         m5, [outq+124]\n    movss         m1, [outq+64]\n    addss         m2, [outq+60]\n    addss         m0, m5\n    addss         m5, [outq+116]\n    mov    [outq+64], tmpd\n    addss         m6, m0\n    addss         m1, m6\n    mov         tmpd, [outq+12]\n    mov   [outq+ 96], tmpd\n    movss [outq+  4], m1\n    movss         m1, [outq+24]\n    movss [outq+ 24], m4\n    movss         m4, [outq+88]\n    addss         m4, [outq+92]\n    addss         m3, m4\n    addss         m4, [outq+84]\n    mov         tmpd, [outq+108]\n    addss         m1, [outq+28]\n    addss         m0, m1\n    addss         m1, m5\n    addss         m6, m3\n    addss         m3, m0\n    addss         m0, m7\n    addss         m5, [outq+20]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:4", "text": "mov    [outq+64], tmpd\n    addss         m6, m0\n    addss         m1, m6\n    mov         tmpd, [outq+12]\n    mov   [outq+ 96], tmpd\n    movss [outq+  4], m1\n    movss         m1, [outq+24]\n    movss [outq+ 24], m4\n    movss         m4, [outq+88]\n    addss         m4, [outq+92]\n    addss         m3, m4\n    addss         m4, [outq+84]\n    mov         tmpd, [outq+108]\n    addss         m1, [outq+28]\n    addss         m0, m1\n    addss         m1, m5\n    addss         m6, m3\n    addss         m3, m0\n    addss         m0, m7\n    addss         m5, [outq+20]\n    addss         m7, m1\n    movss [outq+ 12], m6\n    mov   [outq+112], tmpd\n    movss         m6, [outq+28]\n    movss [outq+ 28], m0\n    movss         m0, [outq+36]\n    movss [outq+ 36], m7\n    addss         m1, m4\n    movss         m7, [outq+116]\n    addss         m0, m2\n    addss         m7, [outq+124]\n    movss [outq+ 72], m0\n    movss         m0, [outq+44]\n    addss         m2, m0\n    movss [outq+ 44], m1\n    movss [outq+ 88], m2\n    addss         m0, [outq+60]\n    mov         tmpd, [outq+60]\n    mov   [outq+120], tmpd\n    movss [outq+104], m0\n    addss         m4, m5\n    addss         m5, [outq+68]\n    movss  [outq+52], m4\n    movss  [outq+60], m5\n    movss         m4, [outq+68]\n    movss         m5, [outq+20]\n    movss [outq+ 20], m3\n    addss         m5, m7\n    addss         m7, m6\n    addss         m4, m5\n    movss         m2, [outq+84]\n    addss         m2, [outq+92]\n    addss         m5, m2\n    movss [outq+ 68], m4\n    addss         m2, m7\n    movss         m4, [outq+76]\n    movss [outq+ 84], m2\n    movss [outq+ 76], m5\n    addss         m7, m4\n    addss         m6, [outq+124]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:5", "text": "addss         m4, m5\n    addss         m5, [outq+68]\n    movss  [outq+52], m4\n    movss  [outq+60], m5\n    movss         m4, [outq+68]\n    movss         m5, [outq+20]\n    movss [outq+ 20], m3\n    addss         m5, m7\n    addss         m7, m6\n    addss         m4, m5\n    movss         m2, [outq+84]\n    addss         m2, [outq+92]\n    addss         m5, m2\n    movss [outq+ 68], m4\n    addss         m2, m7\n    movss         m4, [outq+76]\n    movss [outq+ 84], m2\n    movss [outq+ 76], m5\n    addss         m7, m4\n    addss         m6, [outq+124]\n    addss         m4, m6\n    addss         m6, [outq+92]\n    movss [outq+100], m4\n    movss [outq+108], m6\n    movss         m6, [outq+92]\n    movss  [outq+92], m7\n    addss         m6, [outq+124]\n    movss [outq+116], m6\n%endmacro\n\nINIT_YMM avx\nSECTION .text\n%if HAVE_AVX_EXTERNAL\n; void ff_dct32_float_avx(FFTSample *out, const FFTSample *in)\ncglobal dct32_float, 2,3,8, out, in, tmp\n    ; pass 1\n    vmovaps     m4, [inq+0]\n    vinsertf128 m5, m5, [inq+96], 1\n    vinsertf128 m5, m5, [inq+112], 0\n    vshufps     m5, m5, m5, 0x1b\n    BUTTERFLY   m4, m5, [ps_cos_vec], m6\n\n    vmovaps     m2, [inq+64]\n    vinsertf128 m6, m6, [inq+32], 1\n    vinsertf128 m6, m6, [inq+48], 0\n    vshufps     m6, m6, m6, 0x1b\n    BUTTERFLY   m2, m6, [ps_cos_vec+32], m0\n\n    ; pass 2\n\n    BUTTERFLY  m5, m6, [ps_cos_vec+64], m0\n    BUTTERFLY  m4, m2, [ps_cos_vec+64], m7\n\n\n    ; pass 3\n    vperm2f128  m3, m6, m4, 0x31\n    vperm2f128  m1, m6, m4, 0x20\n    vshufps     m3, m3, m3, 0x1b\n\n    BUTTERFLY   m1, m3, [ps_cos_vec+96], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:6", "text": "BUTTERFLY   m4, m5, [ps_cos_vec], m6\n\n    vmovaps     m2, [inq+64]\n    vinsertf128 m6, m6, [inq+32], 1\n    vinsertf128 m6, m6, [inq+48], 0\n    vshufps     m6, m6, m6, 0x1b\n    BUTTERFLY   m2, m6, [ps_cos_vec+32], m0\n\n    ; pass 2\n\n    BUTTERFLY  m5, m6, [ps_cos_vec+64], m0\n    BUTTERFLY  m4, m2, [ps_cos_vec+64], m7\n\n\n    ; pass 3\n    vperm2f128  m3, m6, m4, 0x31\n    vperm2f128  m1, m6, m4, 0x20\n    vshufps     m3, m3, m3, 0x1b\n\n    BUTTERFLY   m1, m3, [ps_cos_vec+96], m6\n\n\n    vperm2f128  m4, m5, m2, 0x20\n    vperm2f128  m5, m5, m2, 0x31\n    vshufps     m5, m5, m5, 0x1b\n\n    BUTTERFLY   m4, m5, [ps_cos_vec+96], m6\n\n    ; pass 4\n    vmovaps m6, [ps_p1p1m1m1+0]\n    vmovaps m2, [ps_cos_vec+128]\n\n    BUTTERFLY2  m5, m6, m2, m7\n    BUTTERFLY2  m4, m6, m2, m7\n    BUTTERFLY2  m1, m6, m2, m7\n    BUTTERFLY2  m3, m6, m2, m7\n\n\n    ; pass 5\n    vshufps m6, m6, m6, 0xcc\n    vmovaps m2, [ps_cos_vec+160]\n\n    BUTTERFLY3  m5, m6, m2, m7\n    BUTTERFLY3  m4, m6, m2, m7\n    BUTTERFLY3  m1, m6, m2, m7\n    BUTTERFLY3  m3, m6, m2, m7\n\n    vperm2f128  m6, m3, m3, 0x31\n    vmovaps [outq], m3\n\n    vextractf128  [outq+64], m5, 1\n    vextractf128  [outq+32], m5, 0\n\n    vextractf128  [outq+80], m4, 1\n    vextractf128  [outq+48], m4, 0\n\n    vperm2f128  m0, m1, m1, 0x31\n    vmovaps [outq+96], m1\n\n    vzeroupper", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:7", "text": "vmovaps m2, [ps_cos_vec+160]\n\n    BUTTERFLY3  m5, m6, m2, m7\n    BUTTERFLY3  m4, m6, m2, m7\n    BUTTERFLY3  m1, m6, m2, m7\n    BUTTERFLY3  m3, m6, m2, m7\n\n    vperm2f128  m6, m3, m3, 0x31\n    vmovaps [outq], m3\n\n    vextractf128  [outq+64], m5, 1\n    vextractf128  [outq+32], m5, 0\n\n    vextractf128  [outq+80], m4, 1\n    vextractf128  [outq+48], m4, 0\n\n    vperm2f128  m0, m1, m1, 0x31\n    vmovaps [outq+96], m1\n\n    vzeroupper\n\n    ;    pass 6, no SIMD...\nINIT_XMM\n    PASS6_AND_PERMUTE\n    RET\n%endif\n\n%if ARCH_X86_64\n%define SPILL SWAP\n%define UNSPILL SWAP\n\n%macro PASS5 0\n    nop ; FIXME code alignment\n    SWAP 5, 8\n    SWAP 4, 12\n    SWAP 6, 14\n    SWAP 7, 13\n    SWAP 0, 15\n    PERMUTE 9,10, 10,12, 11,14, 12,9, 13,11, 14,13\n    TRANSPOSE4x4PS 8, 9, 10, 11, 0\n    BUTTERFLY3V    8, 9, 10, 11, 0\n    addps   m10, m11\n    TRANSPOSE4x4PS 12, 13, 14, 15, 0\n    BUTTERFLY3V    12, 13, 14, 15, 0\n    addps   m14, m15\n    addps   m12, m14\n    addps   m14, m13\n    addps   m13, m15\n%endmacro\n\n%macro PASS6 0\n    SWAP 9, 12\n    SWAP 11, 14\n    movss [outq+0x00], m8\n    pshuflw m0, m8, 0xe\n    movss [outq+0x10], m9\n    pshuflw m1, m9, 0xe\n    movss [outq+0x20], m10\n    pshuflw m2, m10, 0xe\n    movss [outq+0x30], m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:8", "text": "BUTTERFLY3V    8, 9, 10, 11, 0\n    addps   m10, m11\n    TRANSPOSE4x4PS 12, 13, 14, 15, 0\n    BUTTERFLY3V    12, 13, 14, 15, 0\n    addps   m14, m15\n    addps   m12, m14\n    addps   m14, m13\n    addps   m13, m15\n%endmacro\n\n%macro PASS6 0\n    SWAP 9, 12\n    SWAP 11, 14\n    movss [outq+0x00], m8\n    pshuflw m0, m8, 0xe\n    movss [outq+0x10], m9\n    pshuflw m1, m9, 0xe\n    movss [outq+0x20], m10\n    pshuflw m2, m10, 0xe\n    movss [outq+0x30], m11\n    pshuflw m3, m11, 0xe\n    movss [outq+0x40], m12\n    pshuflw m4, m12, 0xe\n    movss [outq+0x50], m13\n    pshuflw m5, m13, 0xe\n    movss [outq+0x60], m14\n    pshuflw m6, m14, 0xe\n    movaps [outq+0x70], m15\n    pshuflw m7, m15, 0xe\n    addss   m0, m1\n    addss   m1, m2\n    movss [outq+0x08], m0\n    addss   m2, m3\n    movss [outq+0x18], m1\n    addss   m3, m4\n    movss [outq+0x28], m2\n    addss   m4, m5\n    movss [outq+0x38], m3\n    addss   m5, m6\n    movss [outq+0x48], m4\n    addss   m6, m7\n    movss [outq+0x58], m5\n    movss [outq+0x68], m6\n    movss [outq+0x78], m7\n\n    PERMUTE 1,8, 3,9, 5,10, 7,11, 9,12, 11,13, 13,14, 8,1, 10,3, 12,5, 14,7\n    movhlps m0, m1\n    pshufd  m1, m1, 3\n    SWAP 0, 2, 4, 6, 8, 10, 12, 14\n    SWAP 1, 3, 5, 7, 9, 11, 13, 15\n%rep 7\n    movhlps m0, m1\n    pshufd  m1, m1, 3\n    addss   m15, m1\n    SWAP 0, 2, 4, 6, 8, 10, 12, 14\n    SWAP 1, 3, 5, 7, 9, 11, 13, 15\n%endrep\n%assign i 4\n%rep 15\n    addss m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:9", "text": "addss   m6, m7\n    movss [outq+0x58], m5\n    movss [outq+0x68], m6\n    movss [outq+0x78], m7\n\n    PERMUTE 1,8, 3,9, 5,10, 7,11, 9,12, 11,13, 13,14, 8,1, 10,3, 12,5, 14,7\n    movhlps m0, m1\n    pshufd  m1, m1, 3\n    SWAP 0, 2, 4, 6, 8, 10, 12, 14\n    SWAP 1, 3, 5, 7, 9, 11, 13, 15\n%rep 7\n    movhlps m0, m1\n    pshufd  m1, m1, 3\n    addss   m15, m1\n    SWAP 0, 2, 4, 6, 8, 10, 12, 14\n    SWAP 1, 3, 5, 7, 9, 11, 13, 15\n%endrep\n%assign i 4\n%rep 15\n    addss m0, m1\n    movss [outq+i], m0\n    SWAP 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15\n    %assign i i+8\n%endrep\n%endmacro\n\n%else ; ARCH_X86_32\n%macro SPILL 2 ; xmm#, mempos\n    movaps [outq+(%2-8)*16], m%1\n%endmacro\n%macro UNSPILL 2\n    movaps m%1, [outq+(%2-8)*16]\n%endmacro\n\n%define PASS6 PASS6_AND_PERMUTE\n%macro PASS5 0\n    movaps      m2, [ps_cos_vec+160]\n    shufps      m3, m3, 0xcc\n\n    BUTTERFLY3  m5, m3, m2, m1\n    SPILL 5, 8\n\n    UNSPILL 1, 9\n    BUTTERFLY3  m1, m3, m2, m5\n    SPILL 1, 14\n\n    BUTTERFLY3  m4, m3, m2, m5\n    SPILL 4, 12\n\n    BUTTERFLY3  m7, m3, m2, m5\n    SPILL 7, 13\n\n    UNSPILL 5, 10\n    BUTTERFLY3  m5, m3, m2, m7\n    SPILL 5, 10\n\n    UNSPILL 4, 11\n    BUTTERFLY3  m4, m3, m2, m7\n    SPILL 4, 11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:10", "text": "SPILL 5, 8\n\n    UNSPILL 1, 9\n    BUTTERFLY3  m1, m3, m2, m5\n    SPILL 1, 14\n\n    BUTTERFLY3  m4, m3, m2, m5\n    SPILL 4, 12\n\n    BUTTERFLY3  m7, m3, m2, m5\n    SPILL 7, 13\n\n    UNSPILL 5, 10\n    BUTTERFLY3  m5, m3, m2, m7\n    SPILL 5, 10\n\n    UNSPILL 4, 11\n    BUTTERFLY3  m4, m3, m2, m7\n    SPILL 4, 11\n\n    BUTTERFLY3  m6, m3, m2, m7\n    SPILL 6, 9\n\n    BUTTERFLY3  m0, m3, m2, m7\n    SPILL 0, 15\n%endmacro\n%endif\n\n\n; void ff_dct32_float(FFTSample *out, const FFTSample *in)\n%macro DCT32_FUNC 0\ncglobal dct32_float, 2, 3, 16, out, in, tmp\n    ; pass 1\n\n    movaps      m0, [inq+0]\n    LOAD_INV    m1, [inq+112]\n    BUTTERFLY   m0, m1, [ps_cos_vec], m3\n\n    movaps      m7, [inq+64]\n    LOAD_INV    m4, [inq+48]\n    BUTTERFLY   m7, m4, [ps_cos_vec+32], m3\n\n    ; pass 2\n    movaps      m2, [ps_cos_vec+64]\n    BUTTERFLY   m1, m4, m2, m3\n    SPILL 1, 11\n    SPILL 4, 8\n\n    ; pass 1\n    movaps      m1, [inq+16]\n    LOAD_INV    m6, [inq+96]\n    BUTTERFLY   m1, m6, [ps_cos_vec+16], m3\n\n    movaps      m4, [inq+80]\n    LOAD_INV    m5, [inq+32]\n    BUTTERFLY   m4, m5, [ps_cos_vec+48], m3\n\n    ; pass 2\n    BUTTERFLY   m0, m7, m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:11", "text": "BUTTERFLY   m7, m4, [ps_cos_vec+32], m3\n\n    ; pass 2\n    movaps      m2, [ps_cos_vec+64]\n    BUTTERFLY   m1, m4, m2, m3\n    SPILL 1, 11\n    SPILL 4, 8\n\n    ; pass 1\n    movaps      m1, [inq+16]\n    LOAD_INV    m6, [inq+96]\n    BUTTERFLY   m1, m6, [ps_cos_vec+16], m3\n\n    movaps      m4, [inq+80]\n    LOAD_INV    m5, [inq+32]\n    BUTTERFLY   m4, m5, [ps_cos_vec+48], m3\n\n    ; pass 2\n    BUTTERFLY   m0, m7, m2, m3\n\n    movaps      m2, [ps_cos_vec+80]\n    BUTTERFLY   m6, m5, m2, m3\n\n    BUTTERFLY   m1, m4, m2, m3\n\n    ; pass 3\n    movaps      m2, [ps_cos_vec+96]\n    shufps      m1, m1, 0x1b\n    BUTTERFLY   m0, m1, m2, m3\n    SPILL 0, 15\n    SPILL 1, 14\n\n    UNSPILL 0, 8\n    shufps      m5, m5, 0x1b\n    BUTTERFLY   m0, m5, m2, m3\n\n    UNSPILL 1, 11\n    shufps      m6, m6, 0x1b\n    BUTTERFLY   m1, m6, m2, m3\n    SPILL 1, 11\n\n    shufps      m4, m4, 0x1b\n    BUTTERFLY   m7, m4, m2, m3\n\n    ; pass 4\n    movaps      m3, [ps_p1p1m1m1+0]\n    movaps      m2, [ps_cos_vec+128]\n\n    BUTTERFLY2  m5, m3, m2, m1\n\n    BUTTERFLY2  m0, m3, m2, m1\n    SPILL 0, 9\n\n    BUTTERFLY2  m6, m3, m2, m1\n    SPILL 6, 10\n\n    UNSPILL 0, 11\n    BUTTERFLY2  m0, m3, m2, m1\n    SPILL 0, 11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dct32.asm:12", "text": "shufps      m4, m4, 0x1b\n    BUTTERFLY   m7, m4, m2, m3\n\n    ; pass 4\n    movaps      m3, [ps_p1p1m1m1+0]\n    movaps      m2, [ps_cos_vec+128]\n\n    BUTTERFLY2  m5, m3, m2, m1\n\n    BUTTERFLY2  m0, m3, m2, m1\n    SPILL 0, 9\n\n    BUTTERFLY2  m6, m3, m2, m1\n    SPILL 6, 10\n\n    UNSPILL 0, 11\n    BUTTERFLY2  m0, m3, m2, m1\n    SPILL 0, 11\n\n    BUTTERFLY2  m4, m3, m2, m1\n\n    BUTTERFLY2  m7, m3, m2, m1\n\n    UNSPILL 6, 14\n    BUTTERFLY2  m6, m3, m2, m1\n\n    UNSPILL 0, 15\n    BUTTERFLY2  m0, m3, m2, m1\n\n    PASS5\n    PASS6\n    RET\n%endmacro\n\n%macro LOAD_INV 2\n    pshufd      %1, %2, 0x1b\n%endmacro\n\nINIT_XMM sse2\nDCT32_FUNC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dct32.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dct32.asm", "line_start": 441, "line_end": 481}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:1", "text": ";******************************************************************************\n;* x86 optimized discrete wavelet transform\n;* Copyright (c) 2010 David Conrad\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npw_1991: times 4 dw 9,-1\n\ncextern pw_1\ncextern pw_2\ncextern pw_8\ncextern pw_16\n\nSECTION .text\n\n; %1 -= (%2 + %3 + 2)>>2     %4 is pw_2\n%macro COMPOSE_53iL0 4\n    paddw   %2, %3\n    paddw   %2, %4\n    psraw   %2, 2\n    psubw   %1, %2\n%endm\n\n; m1 = %1 + (-m0 + 9*m1 + 9*%2 -%3 + 8)>>4\n; if %4 is supplied, %1 is loaded unaligned from there\n; m2: clobbered  m3: pw_8  m4: pw_1991\n%macro COMPOSE_DD97iH0 3-4\n    paddw   m0, %3\n    paddw   m1, %2\n    psubw   m0, m3\n    mova    m2, m1\n    punpcklwd m1, m0\n    punpckhwd m2, m0\n    pmaddwd m1, m4\n    pmaddwd m2, m4\n%if %0 > 3\n    movu    %1, %4\n%endif\n    psrad   m1, 4\n    psrad   m2, 4\n    packssdw m1, m2\n    paddw   m1, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:2", "text": "; m1 = %1 + (-m0 + 9*m1 + 9*%2 -%3 + 8)>>4\n; if %4 is supplied, %1 is loaded unaligned from there\n; m2: clobbered  m3: pw_8  m4: pw_1991\n%macro COMPOSE_DD97iH0 3-4\n    paddw   m0, %3\n    paddw   m1, %2\n    psubw   m0, m3\n    mova    m2, m1\n    punpcklwd m1, m0\n    punpckhwd m2, m0\n    pmaddwd m1, m4\n    pmaddwd m2, m4\n%if %0 > 3\n    movu    %1, %4\n%endif\n    psrad   m1, 4\n    psrad   m2, 4\n    packssdw m1, m2\n    paddw   m1, %1\n%endm\n\n%macro COMPOSE_VERTICAL 1\n; void vertical_compose53iL0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,\n;                                  int width)\ncglobal vertical_compose53iL0_%1, 4,4,1, b0, b1, b2, width\n    mova    m2, [pw_2]\n%if ARCH_X86_64\n    mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m1, [b0q+2*widthq]\n    mova    m0, [b1q+2*widthq]\n    COMPOSE_53iL0 m0, m1, [b2q+2*widthq], m2\n    mova    [b1q+2*widthq], m0\n    jg      .loop\n    RET\n\n; void vertical_compose_dirac53iH0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,\n;                                  int width)\ncglobal vertical_compose_dirac53iH0_%1, 4,4,1, b0, b1, b2, width\n    mova    m1, [pw_1]\n%if ARCH_X86_64\n    mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m0, [b0q+2*widthq]\n    paddw   m0, [b2q+2*widthq]\n    paddw   m0, m1\n    psraw   m0, 1\n    paddw   m0, [b1q+2*widthq]\n    mova    [b1q+2*widthq], m0\n    jg      .loop\n    RET\n\n; void vertical_compose_dd97iH0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,\n;                               IDWTELEM *b3, IDWTELEM *b4, int width)\ncglobal vertical_compose_dd97iH0_%1, 6,6,5, b0, b1, b2, b3, b4, width", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:3", "text": ";                                  int width)\ncglobal vertical_compose_dirac53iH0_%1, 4,4,1, b0, b1, b2, width\n    mova    m1, [pw_1]\n%if ARCH_X86_64\n    mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m0, [b0q+2*widthq]\n    paddw   m0, [b2q+2*widthq]\n    paddw   m0, m1\n    psraw   m0, 1\n    paddw   m0, [b1q+2*widthq]\n    mova    [b1q+2*widthq], m0\n    jg      .loop\n    RET\n\n; void vertical_compose_dd97iH0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,\n;                               IDWTELEM *b3, IDWTELEM *b4, int width)\ncglobal vertical_compose_dd97iH0_%1, 6,6,5, b0, b1, b2, b3, b4, width\n    mova    m3, [pw_8]\n    mova    m4, [pw_1991]\n%if ARCH_X86_64\n    mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m0, [b0q+2*widthq]\n    mova    m1, [b1q+2*widthq]\n    COMPOSE_DD97iH0 [b2q+2*widthq], [b3q+2*widthq], [b4q+2*widthq]\n    mova    [b2q+2*widthq], m1\n    jg      .loop\n    RET\n\n; void vertical_compose_dd137iL0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2,\n;                                IDWTELEM *b3, IDWTELEM *b4, int width)\ncglobal vertical_compose_dd137iL0_%1, 6,6,6, b0, b1, b2, b3, b4, width\n    mova    m3, [pw_16]\n    mova    m4, [pw_1991]\n%if ARCH_X86_64\n    mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m0, [b0q+2*widthq]\n    mova    m1, [b1q+2*widthq]\n    mova    m5, [b2q+2*widthq]\n    paddw   m0, [b4q+2*widthq]\n    paddw   m1, [b3q+2*widthq]\n    psubw   m0, m3\n    mova    m2, m1\n    punpcklwd m1, m0\n    punpckhwd m2, m0\n    pmaddwd m1, m4\n    pmaddwd m2, m4\n    psrad   m1, 5\n    psrad   m2, 5\n    packssdw m1, m2\n    psubw   m5, m1\n    mova    [b2q+2*widthq], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:4", "text": "mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m0, [b0q+2*widthq]\n    mova    m1, [b1q+2*widthq]\n    mova    m5, [b2q+2*widthq]\n    paddw   m0, [b4q+2*widthq]\n    paddw   m1, [b3q+2*widthq]\n    psubw   m0, m3\n    mova    m2, m1\n    punpcklwd m1, m0\n    punpckhwd m2, m0\n    pmaddwd m1, m4\n    pmaddwd m2, m4\n    psrad   m1, 5\n    psrad   m2, 5\n    packssdw m1, m2\n    psubw   m5, m1\n    mova    [b2q+2*widthq], m5\n    jg      .loop\n    RET\n\n; void vertical_compose_haar(IDWTELEM *b0, IDWTELEM *b1, int width)\ncglobal vertical_compose_haar_%1, 3,4,3, b0, b1, width\n    mova    m3, [pw_1]\n%if ARCH_X86_64\n    mov     widthd, widthd\n%endif\n.loop:\n    sub     widthq, mmsize/2\n    mova    m1, [b1q+2*widthq]\n    mova    m0, [b0q+2*widthq]\n    mova    m2, m1\n    paddw   m1, m3\n    psraw   m1, 1\n    psubw   m0, m1\n    mova    [b0q+2*widthq], m0\n    paddw   m2, m0\n    mova    [b1q+2*widthq], m2\n    jg      .loop\n    RET\n%endmacro\n\n; extend the left and right edges of the tmp array by %1 and %2 respectively\n%macro EDGE_EXTENSION 3\n    mov     %3, [tmpq]\n%assign %%i 1\n%rep %1\n    mov     [tmpq-2*%%i], %3\n    %assign %%i %%i+1\n%endrep\n    mov     %3, [tmpq+2*w2q-2]\n%assign %%i 0\n%rep %2\n    mov     [tmpq+2*w2q+2*%%i], %3\n    %assign %%i %%i+1\n%endrep\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:5", "text": "jg      .loop\n    RET\n%endmacro\n\n; extend the left and right edges of the tmp array by %1 and %2 respectively\n%macro EDGE_EXTENSION 3\n    mov     %3, [tmpq]\n%assign %%i 1\n%rep %1\n    mov     [tmpq-2*%%i], %3\n    %assign %%i %%i+1\n%endrep\n    mov     %3, [tmpq+2*w2q-2]\n%assign %%i 0\n%rep %2\n    mov     [tmpq+2*w2q+2*%%i], %3\n    %assign %%i %%i+1\n%endrep\n%endmacro\n\n\n%macro HAAR_HORIZONTAL 2\n; void horizontal_compose_haari(IDWTELEM *b, IDWTELEM *tmp, int width)\ncglobal horizontal_compose_haar%2i_%1, 3,6,4, b, tmp, w, x, w2, b_w2\n    mov    w2d, wd\n    xor     xq, xq\n    shr    w2d, 1\n    lea  b_w2q, [bq+wq]\n    mova    m3, [pw_1]\n.lowpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [bq    + 2*xq]\n    paddw   m1, m3\n    psraw   m1, 1\n    psubw   m0, m1\n    mova    [tmpq + 2*xq], m0\n    add     xq, mmsize/2\n    cmp     xq, w2q\n    jl      .lowpass_loop\n\n    xor     xq, xq\n    and    w2q, ~(mmsize/2 - 1)\n    cmp    w2q, mmsize/2\n    jl      .end\n\n.highpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [tmpq  + 2*xq]\n    paddw   m1, m0\n\n    ; shift and interleave\n%if %2 == 1\n    paddw   m0, m3\n    paddw   m1, m3\n    psraw   m0, 1\n    psraw   m1, 1\n%endif\n    mova    m2, m0\n    punpcklwd m0, m1\n    punpckhwd m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:6", "text": "xor     xq, xq\n    and    w2q, ~(mmsize/2 - 1)\n    cmp    w2q, mmsize/2\n    jl      .end\n\n.highpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [tmpq  + 2*xq]\n    paddw   m1, m0\n\n    ; shift and interleave\n%if %2 == 1\n    paddw   m0, m3\n    paddw   m1, m3\n    psraw   m0, 1\n    psraw   m1, 1\n%endif\n    mova    m2, m0\n    punpcklwd m0, m1\n    punpckhwd m2, m1\n    mova    [bq+4*xq], m0\n    mova    [bq+4*xq+mmsize], m2\n\n    add     xq, mmsize/2\n    cmp     xq, w2q\n    jl      .highpass_loop\n.end:\n    RET\n%endmacro\n\n\nINIT_XMM\n; void horizontal_compose_dd97i(IDWTELEM *b, IDWTELEM *tmp, int width)\ncglobal horizontal_compose_dd97i_ssse3, 3,6,8, b, tmp, w, x, w2, b_w2\n    mov    w2d, wd\n    xor     xd, xd\n    shr    w2d, 1\n    lea  b_w2q, [bq+wq]\n    movu    m4, [bq+wq]\n    mova    m7, [pw_2]\n    pslldq  m4, 14\n.lowpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [bq    + 2*xq]\n    mova    m2, m1\n    palignr m1, m4, 14\n    mova    m4, m2\n    COMPOSE_53iL0 m0, m1, m2, m7\n    mova    [tmpq + 2*xq], m0\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .lowpass_loop\n\n    EDGE_EXTENSION 1, 2, xw\n    ; leave the last up to 7 (sse) values for C\n    xor     xd, xd\n    and    w2d, ~(mmsize/2 - 1)\n    cmp    w2d, mmsize/2\n    jl      .end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:7", "text": "pslldq  m4, 14\n.lowpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [bq    + 2*xq]\n    mova    m2, m1\n    palignr m1, m4, 14\n    mova    m4, m2\n    COMPOSE_53iL0 m0, m1, m2, m7\n    mova    [tmpq + 2*xq], m0\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .lowpass_loop\n\n    EDGE_EXTENSION 1, 2, xw\n    ; leave the last up to 7 (sse) values for C\n    xor     xd, xd\n    and    w2d, ~(mmsize/2 - 1)\n    cmp    w2d, mmsize/2\n    jl      .end\n\n    mova    m7, [tmpq-mmsize]\n    mova    m0, [tmpq]\n    mova    m5, [pw_1]\n    mova    m3, [pw_8]\n    mova    m4, [pw_1991]\n.highpass_loop:\n    mova    m6, m0\n    palignr m0, m7, 14\n    mova    m7, [tmpq + 2*xq + 16]\n    mova    m1, m7\n    mova    m2, m7\n    palignr m1, m6, 2\n    palignr m2, m6, 4\n    COMPOSE_DD97iH0 m0, m6, m2, [b_w2q + 2*xq]\n    mova    m0, m7\n    mova    m7, m6\n\n    ; shift and interleave\n    paddw   m6, m5\n    paddw   m1, m5\n    psraw   m6, 1\n    psraw   m1, 1\n    mova    m2, m6\n    punpcklwd m6, m1\n    punpckhwd m2, m1\n    mova    [bq+4*xq], m6\n    mova    [bq+4*xq+mmsize], m2\n\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .highpass_loop\n.end:\n    RET\n\n\nINIT_XMM\nCOMPOSE_VERTICAL sse2\nHAAR_HORIZONTAL sse2, 0\nHAAR_HORIZONTAL sse2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 241, "line_end": 299}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:8", "text": "psraw   m6, 1\n    psraw   m1, 1\n    mova    m2, m6\n    punpcklwd m6, m1\n    punpckhwd m2, m1\n    mova    [bq+4*xq], m6\n    mova    [bq+4*xq+mmsize], m2\n\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .highpass_loop\n.end:\n    RET\n\n\nINIT_XMM\nCOMPOSE_VERTICAL sse2\nHAAR_HORIZONTAL sse2, 0\nHAAR_HORIZONTAL sse2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dirac_dwt.asm", "line_start": 281, "line_end": 299}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:6", "text": "xor     xq, xq\n    and    w2q, ~(mmsize/2 - 1)\n    cmp    w2q, mmsize/2\n    jl      .end\n\n.highpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [tmpq  + 2*xq]\n    paddw   m1, m0\n\n    ; shift and interleave\n%if %2 == 1\n    paddw   m0, m3\n    paddw   m1, m3\n    psraw   m0, 1\n    psraw   m1, 1\n%endif\n    mova    m2, m0\n    punpcklwd m0, m1\n    punpckhwd m2, m1\n    mova    [bq+4*xq], m0\n    mova    [bq+4*xq+mmsize], m2\n\n    add     xq, mmsize/2\n    cmp     xq, w2q\n    jl      .highpass_loop\n.end:\n    RET\n%endmacro\n\n\nINIT_XMM\n; void horizontal_compose_dd97i(IDWTELEM *b, IDWTELEM *tmp, int width)\ncglobal horizontal_compose_dd97i_ssse3, 3,6,8, b, tmp, w, x, w2, b_w2\n    mov    w2d, wd\n    xor     xd, xd\n    shr    w2d, 1\n    lea  b_w2q, [bq+wq]\n    movu    m4, [bq+wq]\n    mova    m7, [pw_2]\n    pslldq  m4, 14\n.lowpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [bq    + 2*xq]\n    mova    m2, m1\n    palignr m1, m4, 14\n    mova    m4, m2\n    COMPOSE_53iL0 m0, m1, m2, m7\n    mova    [tmpq + 2*xq], m0\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .lowpass_loop\n\n    EDGE_EXTENSION 1, 2, xw\n    ; leave the last up to 7 (sse) or 3 (mmx) values for C\n    xor     xd, xd\n    and    w2d, ~(mmsize/2 - 1)\n    cmp    w2d, mmsize/2\n    jl      .end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/dirac_dwt.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:7", "text": "pslldq  m4, 14\n.lowpass_loop:\n    movu    m1, [b_w2q + 2*xq]\n    mova    m0, [bq    + 2*xq]\n    mova    m2, m1\n    palignr m1, m4, 14\n    mova    m4, m2\n    COMPOSE_53iL0 m0, m1, m2, m7\n    mova    [tmpq + 2*xq], m0\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .lowpass_loop\n\n    EDGE_EXTENSION 1, 2, xw\n    ; leave the last up to 7 (sse) or 3 (mmx) values for C\n    xor     xd, xd\n    and    w2d, ~(mmsize/2 - 1)\n    cmp    w2d, mmsize/2\n    jl      .end\n\n    mova    m7, [tmpq-mmsize]\n    mova    m0, [tmpq]\n    mova    m5, [pw_1]\n    mova    m3, [pw_8]\n    mova    m4, [pw_1991]\n.highpass_loop:\n    mova    m6, m0\n    palignr m0, m7, 14\n    mova    m7, [tmpq + 2*xq + 16]\n    mova    m1, m7\n    mova    m2, m7\n    palignr m1, m6, 2\n    palignr m2, m6, 4\n    COMPOSE_DD97iH0 m0, m6, m2, [b_w2q + 2*xq]\n    mova    m0, m7\n    mova    m7, m6\n\n    ; shift and interleave\n    paddw   m6, m5\n    paddw   m1, m5\n    psraw   m6, 1\n    psraw   m1, 1\n    mova    m2, m6\n    punpcklwd m6, m1\n    punpckhwd m2, m1\n    mova    [bq+4*xq], m6\n    mova    [bq+4*xq+mmsize], m2\n\n    add     xd, mmsize/2\n    cmp     xd, w2d\n    jl      .highpass_loop\n.end:\n    RET\n\n\nINIT_XMM\nCOMPOSE_VERTICAL sse2\nHAAR_HORIZONTAL sse2, 0\nHAAR_HORIZONTAL sse2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/dirac_dwt.asm", "line_start": 241, "line_end": 299}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dirac_dwt.asm:1", "text": ";******************************************************************************\n;* x86 optimized discrete wavelet trasnform\n;* Copyright (c) 2010 David Conrad\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npw_1991: times 4 dw 9,-1\n\ncextern pw_1\ncextern pw_2\ncextern pw_8\ncextern pw_16\n\nSECTION .text\n\n; %1 -= (%2 + %3 + 2)>>2     %4 is pw_2\n%macro COMPOSE_53iL0 4\n    paddw   %2, %3\n    paddw   %2, %4\n    psraw   %2, 2\n    psubw   %1, %2\n%endm\n\n; m1 = %1 + (-m0 + 9*m1 + 9*%2 -%3 + 8)>>4\n; if %4 is supplied, %1 is loaded unaligned from there\n; m2: clobbered  m3: pw_8  m4: pw_1991\n%macro COMPOSE_DD97iH0 3-4\n    paddw   m0, %3\n    paddw   m1, %2\n    psubw   m0, m3\n    mova    m2, m1\n    punpcklwd m1, m0\n    punpckhwd m2, m0\n    pmaddwd m1, m4\n    pmaddwd m2, m4\n%if %0 > 3\n    movu    %1, %4\n%endif\n    psrad   m1, 4\n    psrad   m2, 4\n    packssdw m1, m2\n    paddw   m1, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dirac_dwt.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/dirac_dwt.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2010 David Conrad\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\nconvert_to_unsigned_10bit: times 4 dd 0x200\nclip_10bit:                times 8 dw 0x3ff\n\ncextern pw_3\ncextern pw_7\ncextern pw_16\ncextern pw_32\ncextern pb_80\n\nSECTION .text\n\n%macro UNPACK_ADD 6\n    mov%5   %1, %3\n    mov%6   m5, %4\n    mova    m4, %1\n    mova    %2, m5\n    punpcklbw %1, m7\n    punpcklbw m5, m7\n    punpckhbw m4, m7\n    punpckhbw %2, m7\n    paddw   %1, m5\n    paddw   %2, m4\n%endmacro\n\n%macro HPEL_FILTER 1\n; dirac_hpel_filter_v_sse2(uint8_t *dst, uint8_t *src, int stride, int width);\ncglobal dirac_hpel_filter_v_%1, 4,6,8, dst, src, stride, width, src0, stridex3\n    mov     src0q, srcq\n    lea     stridex3q, [3*strideq]\n    sub     src0q, stridex3q\n    pxor    m7, m7\n.loop:\n    ; 7*(src[0] + src[1])\n    UNPACK_ADD m0, m1, [srcq], [srcq + strideq], a,a\n    pmullw  m0, [pw_7]\n    pmullw  m1, [pw_7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:2", "text": "punpcklbw m5, m7\n    punpckhbw m4, m7\n    punpckhbw %2, m7\n    paddw   %1, m5\n    paddw   %2, m4\n%endmacro\n\n%macro HPEL_FILTER 1\n; dirac_hpel_filter_v_sse2(uint8_t *dst, uint8_t *src, int stride, int width);\ncglobal dirac_hpel_filter_v_%1, 4,6,8, dst, src, stride, width, src0, stridex3\n    mov     src0q, srcq\n    lea     stridex3q, [3*strideq]\n    sub     src0q, stridex3q\n    pxor    m7, m7\n.loop:\n    ; 7*(src[0] + src[1])\n    UNPACK_ADD m0, m1, [srcq], [srcq + strideq], a,a\n    pmullw  m0, [pw_7]\n    pmullw  m1, [pw_7]\n\n    ; 3*( ... + src[-2] + src[3])\n    UNPACK_ADD m2, m3, [src0q + strideq], [srcq + stridex3q], a,a\n    paddw   m0, m2\n    paddw   m1, m3\n    pmullw  m0, [pw_3]\n    pmullw  m1, [pw_3]\n\n    ; ... - 7*(src[-1] + src[2])\n    UNPACK_ADD m2, m3, [src0q + strideq*2], [srcq + strideq*2], a,a\n    pmullw  m2, [pw_7]\n    pmullw  m3, [pw_7]\n    psubw   m0, m2\n    psubw   m1, m3\n\n    ; ... - (src[-3] + src[4])\n    UNPACK_ADD m2, m3, [src0q], [srcq + strideq*4], a,a\n    psubw   m0, m2\n    psubw   m1, m3\n\n    paddw   m0, [pw_16]\n    paddw   m1, [pw_16]\n    psraw   m0, 5\n    psraw   m1, 5\n    packuswb m0, m1\n    mova    [dstq], m0\n    add     dstq, mmsize\n    add     srcq, mmsize\n    add     src0q, mmsize\n    sub     widthd, mmsize\n    jg      .loop\n    RET\n\n; dirac_hpel_filter_h_sse2(uint8_t *dst, uint8_t *src, int width);\ncglobal dirac_hpel_filter_h_%1, 3,3,8, dst, src, width\n    dec     widthd\n    pxor    m7, m7\n    and     widthd, ~(mmsize-1)\n.loop:\n    ; 7*(src[0] + src[1])\n    UNPACK_ADD m0, m1, [srcq + widthq], [srcq + widthq + 1], u,u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:3", "text": "paddw   m1, [pw_16]\n    psraw   m0, 5\n    psraw   m1, 5\n    packuswb m0, m1\n    mova    [dstq], m0\n    add     dstq, mmsize\n    add     srcq, mmsize\n    add     src0q, mmsize\n    sub     widthd, mmsize\n    jg      .loop\n    RET\n\n; dirac_hpel_filter_h_sse2(uint8_t *dst, uint8_t *src, int width);\ncglobal dirac_hpel_filter_h_%1, 3,3,8, dst, src, width\n    dec     widthd\n    pxor    m7, m7\n    and     widthd, ~(mmsize-1)\n.loop:\n    ; 7*(src[0] + src[1])\n    UNPACK_ADD m0, m1, [srcq + widthq], [srcq + widthq + 1], u,u\n    pmullw  m0, [pw_7]\n    pmullw  m1, [pw_7]\n\n    ; 3*( ... + src[-2] + src[3])\n    UNPACK_ADD m2, m3, [srcq + widthq - 2], [srcq + widthq + 3], u,u\n    paddw   m0, m2\n    paddw   m1, m3\n    pmullw  m0, [pw_3]\n    pmullw  m1, [pw_3]\n\n    ; ... - 7*(src[-1] + src[2])\n    UNPACK_ADD m2, m3, [srcq + widthq - 1], [srcq + widthq + 2], u,u\n    pmullw  m2, [pw_7]\n    pmullw  m3, [pw_7]\n    psubw   m0, m2\n    psubw   m1, m3\n\n    ; ... - (src[-3] + src[4])\n    UNPACK_ADD m2, m3, [srcq + widthq - 3], [srcq + widthq + 4], u,u\n    psubw   m0, m2\n    psubw   m1, m3\n\n    paddw   m0, [pw_16]\n    paddw   m1, [pw_16]\n    psraw   m0, 5\n    psraw   m1, 5\n    packuswb m0, m1\n    mova    [dstq + widthq], m0\n    sub     widthd, mmsize\n    jge     .loop\n    RET\n%endmacro\n\n%macro PUT_RECT 1\n; void put_rect_clamped(uint8_t *dst, int dst_stride, int16_t *src, int src_stride, int width, int height)\ncglobal put_signed_rect_clamped_%1, 5,9,3, dst, dst_stride, src, src_stride, w, dst2, src2\n    mova    m0, [pb_80]\n    add     wd, (mmsize-1)\n    and     wd, ~(mmsize-1)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:4", "text": "psubw   m1, m3\n\n    paddw   m0, [pw_16]\n    paddw   m1, [pw_16]\n    psraw   m0, 5\n    psraw   m1, 5\n    packuswb m0, m1\n    mova    [dstq + widthq], m0\n    sub     widthd, mmsize\n    jge     .loop\n    RET\n%endmacro\n\n%macro PUT_RECT 1\n; void put_rect_clamped(uint8_t *dst, int dst_stride, int16_t *src, int src_stride, int width, int height)\ncglobal put_signed_rect_clamped_%1, 5,9,3, dst, dst_stride, src, src_stride, w, dst2, src2\n    mova    m0, [pb_80]\n    add     wd, (mmsize-1)\n    and     wd, ~(mmsize-1)\n\n%if ARCH_X86_64\n    movsxd   dst_strideq, dst_strided\n    movsxd   src_strideq, src_strided\n    mov   r7d, r5m\n    mov   r8d, wd\n    %define wspill r8d\n    %define hd r7d\n%else\n    mov    r4m, wd\n    %define wspill r4m\n    %define hd r5mp\n%endif\n\n.loopy:\n    lea     src2q, [srcq+src_strideq]\n    lea     dst2q, [dstq+dst_strideq]\n.loopx:\n    sub      wd, mmsize\n    mova     m1, [srcq +2*wq]\n    mova     m2, [src2q+2*wq]\n    packsswb m1, [srcq +2*wq+mmsize]\n    packsswb m2, [src2q+2*wq+mmsize]\n    paddb    m1, m0\n    paddb    m2, m0\n    mova    [dstq +wq], m1\n    mova    [dst2q+wq], m2\n    jg      .loopx\n\n    lea   srcq, [srcq+src_strideq*2]\n    lea   dstq, [dstq+dst_strideq*2]\n    sub     hd, 2\n    mov     wd, wspill\n    jg      .loopy\n    RET\n%endm\n\n%macro ADD_RECT 1\n; void add_rect_clamped(uint8_t *dst, uint16_t *src, int stride, int16_t *idwt, int idwt_stride, int width, int height)\ncglobal add_rect_clamped_%1, 7,9,3, dst, src, stride, idwt, idwt_stride, w, h\n    mova    m0, [pw_32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:5", "text": "packsswb m1, [srcq +2*wq+mmsize]\n    packsswb m2, [src2q+2*wq+mmsize]\n    paddb    m1, m0\n    paddb    m2, m0\n    mova    [dstq +wq], m1\n    mova    [dst2q+wq], m2\n    jg      .loopx\n\n    lea   srcq, [srcq+src_strideq*2]\n    lea   dstq, [dstq+dst_strideq*2]\n    sub     hd, 2\n    mov     wd, wspill\n    jg      .loopy\n    RET\n%endm\n\n%macro ADD_RECT 1\n; void add_rect_clamped(uint8_t *dst, uint16_t *src, int stride, int16_t *idwt, int idwt_stride, int width, int height)\ncglobal add_rect_clamped_%1, 7,9,3, dst, src, stride, idwt, idwt_stride, w, h\n    mova    m0, [pw_32]\n    add     wd, (mmsize-1)\n    and     wd, ~(mmsize-1)\n\n%if ARCH_X86_64\n    movsxd   strideq, strided\n    movsxd   idwt_strideq, idwt_strided\n    mov   r8d, wd\n    %define wspill r8d\n%else\n    mov    r5m, wd\n    %define wspill r5m\n%endif\n\n.loop:\n    sub     wd, mmsize\n    movu    m1, [srcq +2*wq] ; FIXME: ensure alignment\n    paddw   m1, m0\n    psraw   m1, 6\n    movu    m2, [srcq +2*wq+mmsize] ; FIXME: ensure alignment\n    paddw   m2, m0\n    psraw   m2, 6\n    paddw   m1, [idwtq+2*wq]\n    paddw   m2, [idwtq+2*wq+mmsize]\n    packuswb m1, m2\n    mova    [dstq +wq], m1\n    jg      .loop\n\n    lea   srcq, [srcq + 2*strideq]\n    add   dstq, strideq\n    lea  idwtq, [idwtq+ 2*idwt_strideq]\n    sub     hd, 1\n    mov     wd, wspill\n    jg      .loop\n    RET\n%endm\n\n%macro ADD_OBMC 2\n; void add_obmc(uint16_t *dst, uint8_t *src, int stride, uint8_t *obmc_weight, int yblen)\ncglobal add_dirac_obmc%1_%2, 5,5,5, dst, src, stride, obmc, yblen\n    pxor        m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:6", "text": "psraw   m2, 6\n    paddw   m1, [idwtq+2*wq]\n    paddw   m2, [idwtq+2*wq+mmsize]\n    packuswb m1, m2\n    mova    [dstq +wq], m1\n    jg      .loop\n\n    lea   srcq, [srcq + 2*strideq]\n    add   dstq, strideq\n    lea  idwtq, [idwtq+ 2*idwt_strideq]\n    sub     hd, 1\n    mov     wd, wspill\n    jg      .loop\n    RET\n%endm\n\n%macro ADD_OBMC 2\n; void add_obmc(uint16_t *dst, uint8_t *src, int stride, uint8_t *obmc_weight, int yblen)\ncglobal add_dirac_obmc%1_%2, 5,5,5, dst, src, stride, obmc, yblen\n    pxor        m4, m4\n    movsxdifnidn strideq, strided\n.loop:\n%assign i 0\n%rep %1 / mmsize\n    mova        m0, [srcq+i]\n    mova        m1, m0\n    punpcklbw   m0, m4\n    punpckhbw   m1, m4\n    mova        m2, [obmcq+i]\n    mova        m3, m2\n    punpcklbw   m2, m4\n    punpckhbw   m3, m4\n    pmullw      m0, m2\n    pmullw      m1, m3\n    movu        m2, [dstq+2*i]\n    movu        m3, [dstq+2*i+mmsize]\n    paddw       m0, m2\n    paddw       m1, m3\n    movu        [dstq+2*i], m0\n    movu        [dstq+2*i+mmsize], m1\n%assign i i+mmsize\n%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2\n\ncglobal add_dirac_obmc8_sse2, 5,5,4, dst, src, stride, obmc, yblen\n    pxor        m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:7", "text": "%assign i i+mmsize\n%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2\n\ncglobal add_dirac_obmc8_sse2, 5,5,4, dst, src, stride, obmc, yblen\n    pxor        m3, m3\n    movsxdifnidn strideq, strided\n.loop:\n    movh        m0, [srcq]\n    punpcklbw   m0, m3\n    movh        m1, [obmcq]\n    punpcklbw   m1, m3\n    pmullw      m0, m1\n    movu        m1, [dstq]\n    paddw       m0, m1\n    movu        [dstq], m0\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n\nINIT_XMM sse4\n\n; void dequant_subband_32(uint8_t *src, uint8_t *dst, ptrdiff_t stride, const int qf, const int qs, int tot_v, int tot_h)\ncglobal dequant_subband_32, 7, 7, 4, src, dst, stride, qf, qs, tot_v, tot_h\n    movd   m2, qfd\n    movd   m3, qsd\n    SPLATD m2\n    SPLATD m3\n    mov    r4d, tot_hd\n    mov    r3, dstq\n\n    .loop_v:\n    mov    tot_hq, r4\n    mov    dstq,   r3\n\n    .loop_h:\n    movu   m0, [srcq]\n\n    pabsd  m1, m0\n    pmulld m1, m2\n    paddd  m1, m3\n    psrld  m1,  2\n    psignd m1, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:8", "text": "cglobal dequant_subband_32, 7, 7, 4, src, dst, stride, qf, qs, tot_v, tot_h\n    movd   m2, qfd\n    movd   m3, qsd\n    SPLATD m2\n    SPLATD m3\n    mov    r4d, tot_hd\n    mov    r3, dstq\n\n    .loop_v:\n    mov    tot_hq, r4\n    mov    dstq,   r3\n\n    .loop_h:\n    movu   m0, [srcq]\n\n    pabsd  m1, m0\n    pmulld m1, m2\n    paddd  m1, m3\n    psrld  m1,  2\n    psignd m1, m0\n\n    movu   [dstq], m1\n\n    add    srcq, mmsize\n    add    dstq, mmsize\n    sub    tot_hq, 4\n    jg     .loop_h\n    lea    srcq, [srcq + 4*tot_hq]\n\n    add    r3, strideq\n    dec    tot_vd\n    jg     .loop_v\n\n    RET\n\nINIT_XMM sse4\n; void put_signed_rect_clamped_10(uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height)\n%if ARCH_X86_64\ncglobal put_signed_rect_clamped_10, 6, 8, 5, dst, dst_stride, src, src_stride, w, h, t1, t2\n%else\ncglobal put_signed_rect_clamped_10, 5, 7, 5, dst, dst_stride, src, src_stride, w, t1, t2\n    %define  hd  r5mp\n%endif\n    shl      wd, 2\n    add    srcq, wq\n    neg      wq\n    mov     t2q, dstq\n    mov     t1q, wq\n    pxor     m2, m2\n    mova     m3, [clip_10bit]\n    mova     m4, [convert_to_unsigned_10bit]\n\n    .loop_h:\n    mov    dstq, t2q\n    mov      wq, t1q\n\n    .loop_w:\n    movu     m0, [srcq+wq+0*mmsize]\n    movu     m1, [srcq+wq+1*mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:9", "text": "cglobal put_signed_rect_clamped_10, 5, 7, 5, dst, dst_stride, src, src_stride, w, t1, t2\n    %define  hd  r5mp\n%endif\n    shl      wd, 2\n    add    srcq, wq\n    neg      wq\n    mov     t2q, dstq\n    mov     t1q, wq\n    pxor     m2, m2\n    mova     m3, [clip_10bit]\n    mova     m4, [convert_to_unsigned_10bit]\n\n    .loop_h:\n    mov    dstq, t2q\n    mov      wq, t1q\n\n    .loop_w:\n    movu     m0, [srcq+wq+0*mmsize]\n    movu     m1, [srcq+wq+1*mmsize]\n\n    paddd    m0, m4\n    paddd    m1, m4\n    packusdw m0, m0, m1\n    CLIPW    m0, m2, m3 ; packusdw saturates so it's fine\n\n    movu     [dstq], m0\n\n    add      dstq, 1*mmsize\n    add      wq,   2*mmsize\n    jl       .loop_w\n\n    add    srcq, src_strideq\n    add     t2q, dst_strideq\n    sub      hd, 1\n    jg       .loop_h\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/diracdsp.asm", "line_start": 321, "line_end": 357}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2010 David Conrad\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npw_7: times 8 dw 7\nconvert_to_unsigned_10bit: times 4 dd 0x200\nclip_10bit:                times 8 dw 0x3ff\n\ncextern pw_3\ncextern pw_16\ncextern pw_32\ncextern pb_80\n\nSECTION .text\n\n%macro UNPACK_ADD 6\n    mov%5   %1, %3\n    mov%6   m5, %4\n    mova    m4, %1\n    mova    %2, m5\n    punpcklbw %1, m7\n    punpcklbw m5, m7\n    punpckhbw m4, m7\n    punpckhbw %2, m7\n    paddw   %1, m5\n    paddw   %2, m4\n%endmacro\n\n%macro HPEL_FILTER 1\n; dirac_hpel_filter_v_sse2(uint8_t *dst, uint8_t *src, int stride, int width);\ncglobal dirac_hpel_filter_v_%1, 4,6,8, dst, src, stride, width, src0, stridex3\n    mov     src0q, srcq\n    lea     stridex3q, [3*strideq]\n    sub     src0q, stridex3q\n    pxor    m7, m7\n.loop:\n    ; 7*(src[0] + src[1])\n    UNPACK_ADD m0, m1, [srcq], [srcq + strideq], a,a\n    pmullw  m0, [pw_7]\n    pmullw  m1, [pw_7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "61aa532e22668ae0ed943e4aee3ea69af648375e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61aa532e22668ae0ed943e4aee3ea69af648375e/libavcodec/x86/diracdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:6", "text": "psraw   m2, 6\n    paddw   m1, [idwtq+2*wq]\n    paddw   m2, [idwtq+2*wq+mmsize]\n    packuswb m1, m2\n    mova    [dstq +wq], m1\n    jg      .loop\n\n    lea   srcq, [srcq + 2*strideq]\n    add   dstq, strideq\n    lea  idwtq, [idwtq+ 2*idwt_strideq]\n    sub     hd, 1\n    mov     wd, wspill\n    jg      .loop\n    RET\n%endm\n\n%macro ADD_OBMC 2\n; void add_obmc(uint16_t *dst, uint8_t *src, int stride, uint8_t *obmc_weight, int yblen)\ncglobal add_dirac_obmc%1_%2, 5,5,5, dst, src, stride, obmc, yblen\n    pxor        m4, m4\n    movsxdifnidn strideq, strided\n.loop:\n%assign i 0\n%rep %1 / mmsize\n    mova        m0, [srcq+i]\n    mova        m1, m0\n    punpcklbw   m0, m4\n    punpckhbw   m1, m4\n    mova        m2, [obmcq+i]\n    mova        m3, m2\n   punpcklbw   m2, m4\n    punpckhbw   m3, m4\n    pmullw      m0, m2\n    pmullw      m1, m3\n    movu        m2, [dstq+2*i]\n    movu        m3, [dstq+2*i+mmsize]\n    paddw       m0, m2\n    paddw       m1, m3\n    movu        [dstq+2*i], m0\n    movu        [dstq+2*i+mmsize], m1\n%assign i i+mmsize\n%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_MMX\nADD_OBMC 8, mmx\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "8f683ee41775d5b15367f3b0d8316d894c07736a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8f683ee41775d5b15367f3b0d8316d894c07736a/libavcodec/x86/diracdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:7", "text": "%assign i i+mmsize\n%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_MMX\nADD_OBMC 8, mmx\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2\n\nINIT_XMM sse4\n\n; void dequant_subband_32(uint8_t *src, uint8_t *dst, ptrdiff_t stride, const int qf, const int qs, int tot_v, int tot_h)\ncglobal dequant_subband_32, 7, 7, 4, src, dst, stride, qf, qs, tot_v, tot_h\n    movd   m2, qfd\n    movd   m3, qsd\n    SPLATD m2\n    SPLATD m3\n    mov    r4d, tot_hd\n    mov    r3, dstq\n\n    .loop_v:\n    mov    tot_hq, r4\n    mov    dstq,   r3\n\n    .loop_h:\n    movu   m0, [srcq]\n\n    pabsd  m1, m0\n    pmulld m1, m2\n    paddd  m1, m3\n    psrld  m1,  2\n    psignd m1, m0\n\n    movu   [dstq], m1\n\n    add    srcq, mmsize\n    add    dstq, mmsize\n    sub    tot_hq, 4\n    jg     .loop_h\n    lea    srcq, [srcq + 4*tot_hq]\n\n    add    r3, strideq\n    dec    tot_vd\n    jg     .loop_v\n\n    RET\n\nINIT_XMM sse4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "8f683ee41775d5b15367f3b0d8316d894c07736a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8f683ee41775d5b15367f3b0d8316d894c07736a/libavcodec/x86/diracdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:8", "text": "pmulld m1, m2\n    paddd  m1, m3\n    psrld  m1,  2\n    psignd m1, m0\n\n    movu   [dstq], m1\n\n    add    srcq, mmsize\n    add    dstq, mmsize\n    sub    tot_hq, 4\n    jg     .loop_h\n    lea    srcq, [srcq + 4*tot_hq]\n\n    add    r3, strideq\n    dec    tot_vd\n    jg     .loop_v\n\n    RET\n\nINIT_XMM sse4\n; void put_signed_rect_clamped_10(uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height)\n%if ARCH_X86_64\ncglobal put_signed_rect_clamped_10, 6, 8, 5, dst, dst_stride, src, src_stride, w, h, t1, t2\n%else\ncglobal put_signed_rect_clamped_10, 5, 7, 5, dst, dst_stride, src, src_stride, w, t1, t2\n    %define  hd  r5mp\n%endif\n    shl      wd, 2\n    add    srcq, wq\n    neg      wq\n    mov     t2q, dstq\n    mov     t1q, wq\n    pxor     m2, m2\n    mova     m3, [clip_10bit]\n    mova     m4, [convert_to_unsigned_10bit]\n\n    .loop_h:\n    mov    dstq, t2q\n    mov      wq, t1q\n\n    .loop_w:\n    movu     m0, [srcq+wq+0*mmsize]\n    movu     m1, [srcq+wq+1*mmsize]\n\n    paddd    m0, m4\n    paddd    m1, m4\n    packusdw m0, m0, m1\n    CLIPW    m0, m2, m3 ; packusdw saturates so it's fine\n\n    movu     [dstq], m0\n\n    add      dstq, 1*mmsize\n    add      wq,   2*mmsize\n    jl       .loop_w\n\n    add    srcq, src_strideq\n    add     t2q, dst_strideq\n    sub      hd, 1\n    jg       .loop_h", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "8f683ee41775d5b15367f3b0d8316d894c07736a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8f683ee41775d5b15367f3b0d8316d894c07736a/libavcodec/x86/diracdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:9", "text": ".loop_w:\n    movu     m0, [srcq+wq+0*mmsize]\n    movu     m1, [srcq+wq+1*mmsize]\n\n    paddd    m0, m4\n    paddd    m1, m4\n    packusdw m0, m0, m1\n    CLIPW    m0, m2, m3 ; packusdw saturates so it's fine\n\n    movu     [dstq], m0\n\n    add      dstq, 1*mmsize\n    add      wq,   2*mmsize\n    jl       .loop_w\n\n    add    srcq, src_strideq\n    add     t2q, dst_strideq\n    sub      hd, 1\n    jg       .loop_h\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "8f683ee41775d5b15367f3b0d8316d894c07736a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8f683ee41775d5b15367f3b0d8316d894c07736a/libavcodec/x86/diracdsp.asm", "line_start": 321, "line_end": 341}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:6", "text": "psraw   m2, 6\n    paddw   m1, [idwtq+2*wq]\n    paddw   m2, [idwtq+2*wq+mmsize]\n    packuswb m1, m2\n    mova    [dstq +wq], m1\n    jg      .loop\n\n    lea   srcq, [srcq + 2*strideq]\n    add   dstq, strideq\n    lea  idwtq, [idwtq+ 2*idwt_strideq]\n    sub     hd, 1\n    mov     wd, wspill\n    jg      .loop\n    RET\n%endm\n\n%macro ADD_OBMC 2\n; void add_obmc(uint16_t *dst, uint8_t *src, int stride, uint8_t *obmc_weight, int yblen)\ncglobal add_dirac_obmc%1_%2, 5,5,5, dst, src, stride, obmc, yblen\n    pxor        m4, m4\n.loop:\n%assign i 0\n%rep %1 / mmsize\n    mova        m0, [srcq+i]\n    mova        m1, m0\n    punpcklbw   m0, m4\n    punpckhbw   m1, m4\n    mova        m2, [obmcq+i]\n    mova        m3, m2\n   punpcklbw   m2, m4\n    punpckhbw   m3, m4\n    pmullw      m0, m2\n    pmullw      m1, m3\n    movu        m2, [dstq+2*i]\n    movu        m3, [dstq+2*i+mmsize]\n    paddw       m0, m2\n    paddw       m1, m3\n    movu        [dstq+2*i], m0\n    movu        [dstq+2*i+mmsize], m1\n%assign i i+mmsize\n%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_MMX\nADD_OBMC 8, mmx\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "0e5e37d32c1a4dc2c79144b6f123f39a0951a729", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0e5e37d32c1a4dc2c79144b6f123f39a0951a729/libavcodec/x86/diracdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:7", "text": "%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_MMX\nADD_OBMC 8, mmx\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2\n\nINIT_XMM sse4\n\n; void dequant_subband_32(uint8_t *src, uint8_t *dst, ptrdiff_t stride, const int qf, const int qs, int tot_v, int tot_h)\ncglobal dequant_subband_32, 7, 7, 4, src, dst, stride, qf, qs, tot_v, tot_h\n    movd   m2, qfd\n    movd   m3, qsd\n    SPLATD m2\n    SPLATD m3\n    mov    r4d, tot_hd\n    mov    r3, dstq\n\n    .loop_v:\n    mov    tot_hq, r4\n    mov    dstq,   r3\n\n    .loop_h:\n    movu   m0, [srcq]\n\n    pabsd  m1, m0\n    pmulld m1, m2\n    paddd  m1, m3\n    psrld  m1,  2\n    psignd m1, m0\n\n    movu   [dstq], m1\n\n    add    srcq, mmsize\n    add    dstq, mmsize\n    sub    tot_hq, 4\n    jg     .loop_h\n    lea    srcq, [srcq + 4*tot_hq]\n\n    add    r3, strideq\n    dec    tot_vd\n    jg     .loop_v\n\n    RET\n\nINIT_XMM sse4\n; void put_signed_rect_clamped_10(uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "0e5e37d32c1a4dc2c79144b6f123f39a0951a729", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0e5e37d32c1a4dc2c79144b6f123f39a0951a729/libavcodec/x86/diracdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:8", "text": "paddd  m1, m3\n    psrld  m1,  2\n    psignd m1, m0\n\n    movu   [dstq], m1\n\n    add    srcq, mmsize\n    add    dstq, mmsize\n    sub    tot_hq, 4\n    jg     .loop_h\n    lea    srcq, [srcq + 4*tot_hq]\n\n    add    r3, strideq\n    dec    tot_vd\n    jg     .loop_v\n\n    RET\n\nINIT_XMM sse4\n; void put_signed_rect_clamped_10(uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height)\n%if ARCH_X86_64\ncglobal put_signed_rect_clamped_10, 6, 8, 5, dst, dst_stride, src, src_stride, w, h, t1, t2\n%else\ncglobal put_signed_rect_clamped_10, 5, 7, 5, dst, dst_stride, src, src_stride, w, t1, t2\n    %define  hd  r5mp\n%endif\n    shl      wd, 2\n    add    srcq, wq\n    neg      wq\n    mov     t2q, dstq\n    mov     t1q, wq\n    pxor     m2, m2\n    mova     m3, [clip_10bit]\n    mova     m4, [convert_to_unsigned_10bit]\n\n    .loop_h:\n    mov    dstq, t2q\n    mov      wq, t1q\n\n    .loop_w:\n    movu     m0, [srcq+wq+0*mmsize]\n    movu     m1, [srcq+wq+1*mmsize]\n\n    paddd    m0, m4\n    paddd    m1, m4\n    packusdw m0, m0, m1\n    CLIPW    m0, m2, m3 ; packusdw saturates so it's fine\n\n    movu     [dstq], m0\n\n    add      dstq, 1*mmsize\n    add      wq,   2*mmsize\n    jl       .loop_w\n\n    add    srcq, src_strideq\n    add     t2q, dst_strideq\n    sub      hd, 1\n    jg       .loop_h\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "0e5e37d32c1a4dc2c79144b6f123f39a0951a729", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0e5e37d32c1a4dc2c79144b6f123f39a0951a729/libavcodec/x86/diracdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:9", "text": "movu     m0, [srcq+wq+0*mmsize]\n    movu     m1, [srcq+wq+1*mmsize]\n\n    paddd    m0, m4\n    paddd    m1, m4\n    packusdw m0, m0, m1\n    CLIPW    m0, m2, m3 ; packusdw saturates so it's fine\n\n    movu     [dstq], m0\n\n    add      dstq, 1*mmsize\n    add      wq,   2*mmsize\n    jl       .loop_w\n\n    add    srcq, src_strideq\n    add     t2q, dst_strideq\n    sub      hd, 1\n    jg       .loop_h\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "0e5e37d32c1a4dc2c79144b6f123f39a0951a729", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0e5e37d32c1a4dc2c79144b6f123f39a0951a729/libavcodec/x86/diracdsp.asm", "line_start": 321, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:5", "text": "packsswb m1, [srcq +2*wq+mmsize]\n    packsswb m2, [src2q+2*wq+mmsize]\n    paddb    m1, m0\n    paddb    m2, m0\n    mova    [dstq +wq], m1\n    mova    [dst2q+wq], m2\n    jg      .loopx\n\n    lea   srcq, [srcq+src_strideq*2]\n    lea   dstq, [dstq+dst_strideq*2]\n    sub     hd, 2\n    mov     wd, wspill\n    jg      .loopy\n    RET\n%endm\n\n%macro ADD_RECT 1\n; void add_rect_clamped(uint8_t *dst, uint16_t *src, int stride, int16_t *idwt, int idwt_stride, int width, int height)\ncglobal add_rect_clamped_%1, 7,9,3, dst, src, stride, idwt, idwt_stride, w, h\n    mova    m0, [pw_32]\n    add     wd, (mmsize-1)\n    and     wd, ~(mmsize-1)\n\n%if ARCH_X86_64\n    movsxd   strideq, strided\n    movsxd   idwt_strideq, idwt_strided\n    mov   r8d, wd\n    %define wspill r8d\n%else\n    mov    r5m, wd\n    %define wspill r5m\n%endif\n\n.loop:\n    sub     wd, mmsize\n    movu    m1, [srcq +2*wq] ; FIXME: ensure alignment\n    paddw   m1, m0\n    psraw   m1, 6\n    movu    m2, [srcq +2*wq+mmsize] ; FIXME: ensure alignment\n    paddw   m2, m0\n    psraw   m2, 6\n    paddw   m1, [idwtq+2*wq]\n    paddw   m2, [idwtq+2*wq+mmsize]\n    packuswb m1, m2\n    mova    [dstq +wq], m1\n    jg      .loop\n\n    lea   srcq, [srcq + 2*strideq]\n    add   dstq, strideq\n    lea  idwtq, [idwtq+ 2*idwt_strideq]\n    sub     hd, 1\n    mov     wd, wspill\n    jg      .loop\n    RET\n%endm\n\n%macro ADD_OBMC 2\n; void add_obmc(uint16_t *dst, uint8_t *src, int stride, uint8_t *obmc_weight, int yblen)\ncglobal add_dirac_obmc%1_%2, 6,6,5, dst, src, stride, obmc, yblen\n    pxor        m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/diracdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/diracdsp.asm:6", "text": "psraw   m2, 6\n    paddw   m1, [idwtq+2*wq]\n    paddw   m2, [idwtq+2*wq+mmsize]\n    packuswb m1, m2\n    mova    [dstq +wq], m1\n    jg      .loop\n\n    lea   srcq, [srcq + 2*strideq]\n    add   dstq, strideq\n    lea  idwtq, [idwtq+ 2*idwt_strideq]\n    sub     hd, 1\n    mov     wd, wspill\n    jg      .loop\n    RET\n%endm\n\n%macro ADD_OBMC 2\n; void add_obmc(uint16_t *dst, uint8_t *src, int stride, uint8_t *obmc_weight, int yblen)\ncglobal add_dirac_obmc%1_%2, 6,6,5, dst, src, stride, obmc, yblen\n    pxor        m4, m4\n.loop:\n%assign i 0\n%rep %1 / mmsize\n    mova        m0, [srcq+i]\n    mova        m1, m0\n    punpcklbw   m0, m4\n    punpckhbw   m1, m4\n    mova        m2, [obmcq+i]\n    mova        m3, m2\n   punpcklbw   m2, m4\n    punpckhbw   m3, m4\n    pmullw      m0, m2\n    pmullw      m1, m3\n    movu        m2, [dstq+2*i]\n    movu        m3, [dstq+2*i+mmsize]\n    paddw       m0, m2\n    paddw       m1, m3\n    movu        [dstq+2*i], m0\n    movu        [dstq+2*i+mmsize], m1\n%assign i i+mmsize\n%endrep\n    lea         srcq, [srcq+strideq]\n    lea         dstq, [dstq+2*strideq]\n    add         obmcq, 32\n    sub         yblend, 1\n    jg          .loop\n    RET\n%endm\n\nINIT_MMX\nADD_OBMC 8, mmx\n\nINIT_XMM\nPUT_RECT sse2\nADD_RECT sse2\n\nHPEL_FILTER sse2\nADD_OBMC 32, sse2\nADD_OBMC 16, sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/diracdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/diracdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/dnxhdenc.asm:1", "text": ";************************************************************************\n;* VC3/DNxHD SIMD functions\n;* Copyright (c) 2007 Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>\n;* Copyright (c) 2014 Tiancheng \"Timothy\" Gu <timothygu99@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; void get_pixels_8x4_sym_sse2(int16_t *block, const uint8_t *pixels,\n;                              ptrdiff_t line_size)\nINIT_XMM sse2\ncglobal get_pixels_8x4_sym, 3,3,5, block, pixels, linesize\n    pxor      m4,       m4\n    movq      m0,       [pixelsq]\n    add       pixelsq,  linesizeq\n    movq      m1,       [pixelsq]\n    movq      m2,       [pixelsq+linesizeq]\n    movq      m3,       [pixelsq+linesizeq*2]\n    punpcklbw m0,       m4\n    punpcklbw m1,       m4\n    punpcklbw m2,       m4\n    punpcklbw m3,       m4\n    mova  [blockq    ], m0\n    mova  [blockq+16 ], m1\n    mova  [blockq+32 ], m2\n    mova  [blockq+48 ], m3\n    mova  [blockq+64 ], m3\n    mova  [blockq+80 ], m2\n    mova  [blockq+96 ], m1\n    mova  [blockq+112], m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/dnxhdenc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/dnxhdenc.asm", "line_start": 1, "line_end": 49}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/exrdsp.asm:1", "text": ";******************************************************************************\n;* X86 Optimized functions for Open Exr Decoder\n;* Copyright (c) 2006 Industrial Light & Magic, a division of Lucas Digital Ltd. LLC\n;*\n;* reorder_pixels, predictor based on patch by John Loy\n;* port to ASM by Jokyo Images support by CNC - French National Center for Cinema\n;*\n;* predictor AVX/AVX2 by Henrik Gramner\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pb_15\ncextern pb_80\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_reorder_pixels(uint8_t *dst, const uint8_t *src, ptrdiff_t size);\n;------------------------------------------------------------------------------\n\n%macro REORDER_PIXELS 0\ncglobal reorder_pixels, 3,4,3, dst, src1, size, src2\n    lea                              src2q, [src1q+sizeq] ; src2 = src + 2 * half_size\n    add                               dstq, sizeq         ; dst offset by size\n    shr                              sizeq, 1             ; half_size\n    add                              src1q, sizeq         ; offset src by half_size\n    neg                              sizeq                ; size = offset for dst, src1, src2\n.loop:\n\n    mova                                m0, [src1q+sizeq]        ; load first part\n    movu                                m1, [src2q+sizeq]        ; load second part\n    SBUTTERFLY bw, 0, 1, 2                                       ; interleaved\n    mova                 [dstq+2*sizeq   ], xm0                  ; copy to dst\n    mova                 [dstq+2*sizeq+16], xm1\n%if cpuflag(avx2)\n    vperm2i128                          m0, m0, m1, q0301\n    mova                 [dstq+2*sizeq+32], m0\n%endif\n    add     sizeq, mmsize\n    jl .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/exrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/exrdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/exrdsp.asm:2", "text": "add                               dstq, sizeq         ; dst offset by size\n    shr                              sizeq, 1             ; half_size\n    add                              src1q, sizeq         ; offset src by half_size\n    neg                              sizeq                ; size = offset for dst, src1, src2\n.loop:\n\n    mova                                m0, [src1q+sizeq]        ; load first part\n    movu                                m1, [src2q+sizeq]        ; load second part\n    SBUTTERFLY bw, 0, 1, 2                                       ; interleaved\n    mova                 [dstq+2*sizeq   ], xm0                  ; copy to dst\n    mova                 [dstq+2*sizeq+16], xm1\n%if cpuflag(avx2)\n    vperm2i128                          m0, m0, m1, q0301\n    mova                 [dstq+2*sizeq+32], m0\n%endif\n    add     sizeq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nREORDER_PIXELS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nREORDER_PIXELS\n%endif\n\n\n;------------------------------------------------------------------------------\n; void ff_predictor(uint8_t *src, ptrdiff_t size);\n;------------------------------------------------------------------------------\n\n%macro PREDICTOR 0\ncglobal predictor, 2,2,5, src, size\n    mova             m0, [pb_80]\n    mova            xm1, [pb_15]\n    mova            xm2, xm0\n    add            srcq, sizeq\n    neg           sizeq\n.loop:\n    pxor             m3, m0, [srcq + sizeq]\n    pslldq           m4, m3, 1\n    paddb            m3, m4\n    pslldq           m4, m3, 2\n    paddb            m3, m4\n    pslldq           m4, m3, 4\n    paddb            m3, m4\n    pslldq           m4, m3, 8\n%if mmsize == 32\n    paddb            m3, m4\n    paddb           xm2, xm3\n    vextracti128    xm4, m3, 1\n    mova [srcq + sizeq], xm2\n    pshufb          xm2, xm1\n    paddb           xm2, xm4\n    mova [srcq + sizeq + 16], xm2\n%else\n    paddb            m2, m3\n    paddb            m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/exrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/exrdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/exrdsp.asm:3", "text": ".loop:\n    pxor             m3, m0, [srcq + sizeq]\n    pslldq           m4, m3, 1\n    paddb            m3, m4\n    pslldq           m4, m3, 2\n    paddb            m3, m4\n    pslldq           m4, m3, 4\n    paddb            m3, m4\n    pslldq           m4, m3, 8\n%if mmsize == 32\n    paddb            m3, m4\n    paddb           xm2, xm3\n    vextracti128    xm4, m3, 1\n    mova [srcq + sizeq], xm2\n    pshufb          xm2, xm1\n    paddb           xm2, xm4\n    mova [srcq + sizeq + 16], xm2\n%else\n    paddb            m2, m3\n    paddb            m2, m4\n    mova [srcq + sizeq], m2\n%endif\n    pshufb          xm2, xm1\n    add           sizeq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nPREDICTOR\n\nINIT_XMM avx\nPREDICTOR\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nPREDICTOR\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/exrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/exrdsp.asm", "line_start": 81, "line_end": 118}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flac_dsp_gpl.asm:1", "text": ";******************************************************************************\n;* FLAC DSP functions\n;*\n;* Copyright (c) 2014 James Darnley <james.darnley@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse4\n%if ARCH_X86_64\n    cglobal flac_enc_lpc_16, 5, 7, 8, 0, res, smp, len, order, coefs\n    DECLARE_REG_TMP 5, 6\n    %define length r2d\n\n    movsxd orderq, orderd\n%else\n    cglobal flac_enc_lpc_16, 5, 6, 8, 0, res, smp, len, order, coefs\n    DECLARE_REG_TMP 2, 5\n    %define length r2mp\n%endif\n\n; Here we assume that the maximum order value is 32.  This means that we only\n; need to copy a maximum of 32 samples.  Therefore we let the preprocessor\n; unroll this loop and copy all 32.\n%assign iter 0\n%rep 32/(mmsize/4)\n    movu  m0,         [smpq+iter]\n    movu [resq+iter],  m0\n    %assign iter iter+mmsize\n%endrep\n\nlea  resq,   [resq+orderq*4]\nlea  smpq,   [smpq+orderq*4]\nlea  coefsq, [coefsq+orderq*4]\nsub  length,  orderd\nmovd m3,      r5m\nneg  orderq\n\n%define posj t0q\n%define negj t1q\n\n.looplen:", "arch": "x86_64", "syntax": "masm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flac_dsp_gpl.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flac_dsp_gpl.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flac_dsp_gpl.asm:2", "text": "; need to copy a maximum of 32 samples.  Therefore we let the preprocessor\n; unroll this loop and copy all 32.\n%assign iter 0\n%rep 32/(mmsize/4)\n    movu  m0,         [smpq+iter]\n    movu [resq+iter],  m0\n    %assign iter iter+mmsize\n%endrep\n\nlea  resq,   [resq+orderq*4]\nlea  smpq,   [smpq+orderq*4]\nlea  coefsq, [coefsq+orderq*4]\nsub  length,  orderd\nmovd m3,      r5m\nneg  orderq\n\n%define posj t0q\n%define negj t1q\n\n.looplen:\n    pxor m0,   m0\n    pxor m4,   m4\n    pxor m6,   m6\n    mov  posj, orderq\n    xor  negj, negj\n\n    .looporder:\n        movd   m2, [coefsq+posj*4] ; c = coefs[j]\n        SPLATD m2\n        movu   m1, [smpq+negj*4-4] ; s = smp[i-j-1]\n        movu   m5, [smpq+negj*4-4+mmsize]\n        movu   m7, [smpq+negj*4-4+mmsize*2]\n        pmulld m1,  m2\n        pmulld m5,  m2\n        pmulld m7,  m2\n        paddd  m0,  m1             ; p += c * s\n        paddd  m4,  m5\n        paddd  m6,  m7\n\n        dec    negj\n        inc    posj\n    jnz .looporder\n\n    psrad  m0,     m3              ; p >>= shift\n    psrad  m4,     m3\n    psrad  m6,     m3\n    movu   m1,    [smpq]\n    movu   m5,    [smpq+mmsize]\n    movu   m7,    [smpq+mmsize*2]\n    psubd  m1,     m0              ; smp[i] - p\n    psubd  m5,     m4\n    psubd  m7,     m6\n    movu  [resq],  m1              ; res[i] = smp[i] - (p >> shift)\n    movu  [resq+mmsize], m5\n    movu  [resq+mmsize*2], m7\n\n    add resq,    3*mmsize\n    add smpq,    3*mmsize\n    sub length, (3*mmsize)/4\njg .looplen", "arch": "x86_64", "syntax": "masm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flac_dsp_gpl.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flac_dsp_gpl.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flac_dsp_gpl.asm:3", "text": "inc    posj\n    jnz .looporder\n\n    psrad  m0,     m3              ; p >>= shift\n    psrad  m4,     m3\n    psrad  m6,     m3\n    movu   m1,    [smpq]\n    movu   m5,    [smpq+mmsize]\n    movu   m7,    [smpq+mmsize*2]\n    psubd  m1,     m0              ; smp[i] - p\n    psubd  m5,     m4\n    psubd  m7,     m6\n    movu  [resq],  m1              ; res[i] = smp[i] - (p >> shift)\n    movu  [resq+mmsize], m5\n    movu  [resq+mmsize*2], m7\n\n    add resq,    3*mmsize\n    add smpq,    3*mmsize\n    sub length, (3*mmsize)/4\njg .looplen\nRET", "arch": "x86_64", "syntax": "masm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flac_dsp_gpl.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flac_dsp_gpl.asm", "line_start": 81, "line_end": 101}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:1", "text": ";******************************************************************************\n;* FLAC DSP SIMD optimizations\n;*\n;* Copyright (C) 2014 Loren Merritt\n;* Copyright (C) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nvector:  db 0,1,4,5,8,9,12,13,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,4,5,8,9,12,13,\n\nSECTION .text\n\n%macro PMACSDQL 3\n%if cpuflag(xop)\n    pmacsdql %1, %2, %3, %1\n%else\n    pmuldq   %2, %3\n    paddq    %1, %2\n%endif\n%endmacro\n\n%macro LPC_32 3\nINIT_XMM %1\ncglobal flac_lpc_%2, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:2", "text": "%macro LPC_32 3\nINIT_XMM %1\ncglobal flac_lpc_%2, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order\n.loop_order:\n    PMACSDQL m2, m0, m1\n    movd   m0, [decodedq+jq*4]\n    PMACSDQL m3, m1, m0\n    movd   m1, [coeffsq+jq*4]\n    inc    jq\n    jl .loop_order\n.end_order:\n    PMACSDQL m2, m0, m1\n    %3     m2, m4\n    movd   m0, [decodedq]\n    paddd  m0, m2\n    movd   [decodedq], m0\n    sub  lend, 2\n    jl .ret\n    PMACSDQL m3, m1, m0\n    %3     m3, m4\n    movd   m1, [decodedq+4]\n    paddd  m1, m3\n    movd   [decodedq+4], m1\n    jg .loop_sample\n.ret:\n    RET\n%endmacro\n\nLPC_32 sse4, 16, psrad\nLPC_32 sse4, 32, psrlq\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop,  32, psrlq\n%endif\n\nINIT_XMM sse2\ncglobal flac_wasted_32, 3,3,5, decoded, wasted, len\n    shl   lend, 2\n    add   decodedq, lenq\n    neg   lenq\n    movd  m4, wastedd\nALIGN 16\n.loop:\n    mova  m0, [decodedq+lenq+mmsize*0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:3", "text": "jg .loop_sample\n.ret:\n    RET\n%endmacro\n\nLPC_32 sse4, 16, psrad\nLPC_32 sse4, 32, psrlq\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop,  32, psrlq\n%endif\n\nINIT_XMM sse2\ncglobal flac_wasted_32, 3,3,5, decoded, wasted, len\n    shl   lend, 2\n    add   decodedq, lenq\n    neg   lenq\n    movd  m4, wastedd\nALIGN 16\n.loop:\n    mova  m0, [decodedq+lenq+mmsize*0]\n    mova  m1, [decodedq+lenq+mmsize*1]\n    mova  m2, [decodedq+lenq+mmsize*2]\n    mova  m3, [decodedq+lenq+mmsize*3]\n    pslld m0, m4\n    pslld m1, m4\n    pslld m2, m4\n    pslld m3, m4\n    mova  [decodedq+lenq+mmsize*0], m0\n    mova  [decodedq+lenq+mmsize*1], m1\n    mova  [decodedq+lenq+mmsize*2], m2\n    mova  [decodedq+lenq+mmsize*3], m3\n    add lenq, mmsize * 4\n    jl .loop\n    RET\n\nINIT_XMM sse4\ncglobal flac_wasted_33, 4,4,5, decoded, residuals, wasted, len\n    shl   lend, 2\n    lea   decodedq, [decodedq+lenq*2]\n    add   residualsq, lenq\n    neg   lenq\n    movd  m4, wastedd\nALIGN 16\n.loop:\n    pmovsxdq  m0, [residualsq+lenq+mmsize*0]\n    pmovsxdq  m1, [residualsq+lenq+mmsize/2]\n    pmovsxdq  m2, [residualsq+lenq+mmsize*1]\n    pmovsxdq  m3, [residualsq+lenq+mmsize*1+mmsize/2]\n    psllq m0, m4\n    psllq m1, m4\n    psllq m2, m4\n    psllq m3, m4\n    mova  [decodedq+lenq*2+mmsize*0], m0\n    mova  [decodedq+lenq*2+mmsize*1], m1\n    mova  [decodedq+lenq*2+mmsize*2], m2\n    mova  [decodedq+lenq*2+mmsize*3], m3\n    add lenq, mmsize * 2\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:4", "text": "neg   lenq\n    movd  m4, wastedd\nALIGN 16\n.loop:\n    pmovsxdq  m0, [residualsq+lenq+mmsize*0]\n    pmovsxdq  m1, [residualsq+lenq+mmsize/2]\n    pmovsxdq  m2, [residualsq+lenq+mmsize*1]\n    pmovsxdq  m3, [residualsq+lenq+mmsize*1+mmsize/2]\n    psllq m0, m4\n    psllq m1, m4\n    psllq m2, m4\n    psllq m3, m4\n    mova  [decodedq+lenq*2+mmsize*0], m0\n    mova  [decodedq+lenq*2+mmsize*1], m1\n    mova  [decodedq+lenq*2+mmsize*2], m2\n    mova  [decodedq+lenq*2+mmsize*3], m3\n    add lenq, mmsize * 2\n    jl .loop\n    RET\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_16_sse2(uint8_t **out, int32_t **in, int channels,\n;                                                   int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_16 3-4\ncglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    shl      lend, 2\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    add      in1q, lenq\n    add      in0q, lenq\n    add      outq, lenq\n    neg      lenq\n\nalign 16\n.loop:\n    mova       m0, [in0q + lenq]\n    mova       m1, [in1q + lenq]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:5", "text": "neg      lenq\n\nalign 16\n.loop:\n    mova       m0, [in0q + lenq]\n    mova       m1, [in1q + lenq]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2\n    pshufb     m%3, m%3, m2\n    punpcklwd  m%2, m%3\n%endif\n    mova [outq + lenq], m%2\n    add      lenq, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_16 ls, 0, 2, sub\nFLAC_DECORRELATE_16 rs, 2, 1, add\nFLAC_DECORRELATE_16 ms, 2, 0, add\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_32_sse2(uint8_t **out, int32_t **in, int channels,\n;                                        int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_32 5\ncglobal flac_decorrelate_%1_32, 2, 4, 4, out, in0, in1, len\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    sub      in1q, in0q\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:6", "text": "%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    sub      in1q, in0q\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3\n\n    SBUTTERFLY dq, %2, %3, %4\n\n    mova  [outq         ], m%2\n    mova  [outq + mmsize], m%3\n\n    add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_32 ls, 0, 2, 1, sub\nFLAC_DECORRELATE_32 rs, 2, 1, 0, add\nFLAC_DECORRELATE_32 ms, 2, 0, 1, add\n\n;-----------------------------------------------------------------------------------------\n;void ff_flac_decorrelate_indep<ch>_<bps>_<opt>(uint8_t **out, int32_t **in, int channels,\n;                                            int len, int shift);\n;-----------------------------------------------------------------------------------------\n;%1 = bps\n;%2 = channels\n;%3 = last xmm reg used\n;%4 = word/dword (shift instruction)\n%macro FLAC_DECORRELATE_INDEP 4\n%define REPCOUNT %2/(32/%1) ; 16bits = channels / 2; 32bits = channels\ncglobal flac_decorrelate_indep%2_%1, 2, %2+2, %3+1, out, in0, in1, len, in2, in3, in4, in5, in6, in7\n%if ARCH_X86_32\n%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:7", "text": ";                                            int len, int shift);\n;-----------------------------------------------------------------------------------------\n;%1 = bps\n;%2 = channels\n;%3 = last xmm reg used\n;%4 = word/dword (shift instruction)\n%macro FLAC_DECORRELATE_INDEP 4\n%define REPCOUNT %2/(32/%1) ; 16bits = channels / 2; 32bits = channels\ncglobal flac_decorrelate_indep%2_%1, 2, %2+2, %3+1, out, in0, in1, len, in2, in3, in4, in5, in6, in7\n%if ARCH_X86_32\n%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1\n%rep %2-1\n    mov      in %+ %%i %+ q, [in0q+%%i*gprsize]\n%assign %%i %%i+1\n%endrep\n\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1\n%rep %2-1\n    sub      in %+ %%i %+ q, in0q\n%assign %%i %%i+1\n%endrep\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n\n%assign %%i 1\n%rep REPCOUNT-1\n    mova     m %+ %%i, [in0q + in %+ %%i %+ q]\n%assign %%i %%i+1\n%endrep\n\n%if %1 == 32\n\n%if %2 == 8\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n%elif %2 == 6\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:8", "text": "mova     m %+ %%i, [in0q + in %+ %%i %+ q]\n%assign %%i %%i+1\n%endrep\n\n%if %1 == 32\n\n%if %2 == 8\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n%elif %2 == 6\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3\n%elif %2 == 4\n    TRANSPOSE4x4D 0, 1, 2, 3, 4\n%else ; %2 == 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%else ; %1 == 16\n\n%if %2 == 8\n    packssdw   m0, [in0q + in4q]\n    packssdw   m1, [in0q + in5q]\n    packssdw   m2, [in0q + in6q]\n    packssdw   m3, [in0q + in7q]\n    TRANSPOSE2x4x4W 0, 1, 2, 3, 4\n%elif %2 == 6\n    packssdw   m0, [in0q + in3q]\n    packssdw   m1, [in0q + in4q]\n    packssdw   m2, [in0q + in5q]\n    pshufd     m3, m0,     q1032\n    punpcklwd  m0, m1\n    punpckhwd  m1, m2\n    punpcklwd  m2, m3\n\n    shufps     m3, m0, m2, q2020\n    shufps     m0, m1,     q2031\n    shufps     m2, m1,     q3131\n    shufps     m1, m2, m3, q3120\n    shufps     m3, m0,     q0220\n    shufps     m0, m2,     q3113\n    SWAP 2, 0, 3\n%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:9", "text": "punpckhwd  m1, m2\n    punpcklwd  m2, m3\n\n    shufps     m3, m0, m2, q2020\n    shufps     m0, m1,     q2031\n    shufps     m2, m1,     q3131\n    shufps     m1, m2, m3, q3120\n    shufps     m3, m0,     q0220\n    shufps     m0, m2,     q3113\n    SWAP 2, 0, 3\n%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0\n%rep REPCOUNT\n    psll%4   m %+ %%i, m%3\n%assign %%i %%i+1\n%endrep\n\n%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1\n%endrep\n\n    add      in0q, mmsize\n    add      outq, mmsize*REPCOUNT\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFLAC_DECORRELATE_16 indep2, 0, 1 ; Reuse stereo 16bits macro\nFLAC_DECORRELATE_INDEP 32, 2, 3, d\nFLAC_DECORRELATE_INDEP 16, 4, 3, w\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 16, 6, 4, w\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif\n\nINIT_XMM avx\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 321, "line_end": 377}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:10", "text": "FLAC_DECORRELATE_INDEP 32, 2, 3, d\nFLAC_DECORRELATE_INDEP 16, 4, 3, w\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 16, 6, 4, w\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif\n\nINIT_XMM avx\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/flacdsp.asm", "line_start": 361, "line_end": 377}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:1", "text": ";******************************************************************************\n;* FLAC DSP SIMD optimizations\n;*\n;* Copyright (C) 2014 Loren Merritt\n;* Copyright (C) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nvector:  db 0,1,4,5,8,9,12,13,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,4,5,8,9,12,13,\n\nSECTION .text\n\n%macro PMACSDQL 5\n%if cpuflag(xop)\n    pmacsdql %1, %2, %3, %1\n%else\n    pmuldq   %2, %3\n    paddq    %1, %2\n%endif\n%endmacro\n\n%macro LPC_32 3\nINIT_XMM %1\ncglobal flac_lpc_%2, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "eb5733f38f56ca79e3bbcf2e3c12483d219f0523", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eb5733f38f56ca79e3bbcf2e3c12483d219f0523/libavcodec/x86/flacdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:2", "text": "%macro LPC_32 3\nINIT_XMM %1\ncglobal flac_lpc_%2, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order\n.loop_order:\n    PMACSDQL m2, m0, m1, m2, m0\n    movd   m0, [decodedq+jq*4]\n    PMACSDQL m3, m1, m0, m3, m1\n    movd   m1, [coeffsq+jq*4]\n    inc    jq\n    jl .loop_order\n.end_order:\n    PMACSDQL m2, m0, m1, m2, m0\n    %3     m2, m4\n    movd   m0, [decodedq]\n    paddd  m0, m2\n    movd   [decodedq], m0\n    sub  lend, 2\n    jl .ret\n    PMACSDQL m3, m1, m0, m3, m1\n    %3     m3, m4\n    movd   m1, [decodedq+4]\n    paddd  m1, m3\n    movd   [decodedq+4], m1\n    jg .loop_sample\n.ret:\n    RET\n%endmacro\n\nLPC_32 sse4, 16, psrad\nLPC_32 sse4, 32, psrlq\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop,  32, psrlq\n%endif\n\nINIT_XMM sse2\ncglobal flac_wasted_32, 3,3,5, decoded, wasted, len\n    shl   lend, 2\n    add   decodedq, lenq\n    neg   lenq\n    movd  m4, wastedd\nALIGN 16\n.loop:\n    mova  m0, [decodedq+lenq+mmsize*0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "eb5733f38f56ca79e3bbcf2e3c12483d219f0523", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eb5733f38f56ca79e3bbcf2e3c12483d219f0523/libavcodec/x86/flacdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:3", "text": "jg .loop_sample\n.ret:\n    RET\n%endmacro\n\nLPC_32 sse4, 16, psrad\nLPC_32 sse4, 32, psrlq\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop,  32, psrlq\n%endif\n\nINIT_XMM sse2\ncglobal flac_wasted_32, 3,3,5, decoded, wasted, len\n    shl   lend, 2\n    add   decodedq, lenq\n    neg   lenq\n    movd  m4, wastedd\nALIGN 16\n.loop:\n    mova  m0, [decodedq+lenq+mmsize*0]\n    mova  m1, [decodedq+lenq+mmsize*1]\n    mova  m2, [decodedq+lenq+mmsize*2]\n    mova  m3, [decodedq+lenq+mmsize*3]\n    pslld m0, m4\n    pslld m1, m4\n    pslld m2, m4\n    pslld m3, m4\n    mova  [decodedq+lenq+mmsize*0], m0\n    mova  [decodedq+lenq+mmsize*1], m1\n    mova  [decodedq+lenq+mmsize*2], m2\n    mova  [decodedq+lenq+mmsize*3], m3\n    add lenq, mmsize * 4\n    jl .loop\n    RET\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_16_sse2(uint8_t **out, int32_t **in, int channels,\n;                                                   int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_16 3-4\ncglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    shl      lend, 2\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    add      in1q, lenq\n    add      in0q, lenq\n    add      outq, lenq\n    neg      lenq\n\nalign 16\n.loop:\n    mova       m0, [in0q + lenq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:4", "text": "cglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    shl      lend, 2\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    add      in1q, lenq\n    add      in0q, lenq\n    add      outq, lenq\n    neg      lenq\n\nalign 16\n.loop:\n    mova       m0, [in0q + lenq]\n    mova       m1, [in1q + lenq]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2\n    pshufb     m%3, m%3, m2\n    punpcklwd  m%2, m%3\n%endif\n    mova [outq + lenq], m%2\n    add      lenq, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_16 ls, 0, 2, sub\nFLAC_DECORRELATE_16 rs, 2, 1, add\nFLAC_DECORRELATE_16 ms, 2, 0, add\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_32_sse2(uint8_t **out, int32_t **in, int channels,\n;                                        int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_32 5\ncglobal flac_decorrelate_%1_32, 2, 4, 4, out, in0, in1, len\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    mov      in1q, [in0q + gprsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:5", "text": "jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_16 ls, 0, 2, sub\nFLAC_DECORRELATE_16 rs, 2, 1, add\nFLAC_DECORRELATE_16 ms, 2, 0, add\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_32_sse2(uint8_t **out, int32_t **in, int channels,\n;                                        int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_32 5\ncglobal flac_decorrelate_%1_32, 2, 4, 4, out, in0, in1, len\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    sub      in1q, in0q\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3\n\n    SBUTTERFLY dq, %2, %3, %4\n\n    mova  [outq         ], m%2\n    mova  [outq + mmsize], m%3\n\n    add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_32 ls, 0, 2, 1, sub\nFLAC_DECORRELATE_32 rs, 2, 1, 0, add\nFLAC_DECORRELATE_32 ms, 2, 0, 1, add\n\n;-----------------------------------------------------------------------------------------\n;void ff_flac_decorrelate_indep<ch>_<bps>_<opt>(uint8_t **out, int32_t **in, int channels,\n;                                            int len, int shift);\n;-----------------------------------------------------------------------------------------\n;%1 = bps\n;%2 = channels\n;%3 = last xmm reg used", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:6", "text": "add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_32 ls, 0, 2, 1, sub\nFLAC_DECORRELATE_32 rs, 2, 1, 0, add\nFLAC_DECORRELATE_32 ms, 2, 0, 1, add\n\n;-----------------------------------------------------------------------------------------\n;void ff_flac_decorrelate_indep<ch>_<bps>_<opt>(uint8_t **out, int32_t **in, int channels,\n;                                            int len, int shift);\n;-----------------------------------------------------------------------------------------\n;%1 = bps\n;%2 = channels\n;%3 = last xmm reg used\n;%4 = word/dword (shift instruction)\n%macro FLAC_DECORRELATE_INDEP 4\n%define REPCOUNT %2/(32/%1) ; 16bits = channels / 2; 32bits = channels\ncglobal flac_decorrelate_indep%2_%1, 2, %2+2, %3+1, out, in0, in1, len, in2, in3, in4, in5, in6, in7\n%if ARCH_X86_32\n%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1\n%rep %2-1\n    mov      in %+ %%i %+ q, [in0q+%%i*gprsize]\n%assign %%i %%i+1\n%endrep\n\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1\n%rep %2-1\n    sub      in %+ %%i %+ q, in0q\n%assign %%i %%i+1\n%endrep\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n\n%assign %%i 1\n%rep REPCOUNT-1\n    mova     m %+ %%i, [in0q + in %+ %%i %+ q]\n%assign %%i %%i+1\n%endrep\n\n%if %1 == 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:7", "text": "mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1\n%rep %2-1\n    sub      in %+ %%i %+ q, in0q\n%assign %%i %%i+1\n%endrep\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n\n%assign %%i 1\n%rep REPCOUNT-1\n    mova     m %+ %%i, [in0q + in %+ %%i %+ q]\n%assign %%i %%i+1\n%endrep\n\n%if %1 == 32\n\n%if %2 == 8\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n%elif %2 == 6\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3\n%elif %2 == 4\n    TRANSPOSE4x4D 0, 1, 2, 3, 4\n%else ; %2 == 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%else ; %1 == 16\n\n%if %2 == 8\n    packssdw   m0, [in0q + in4q]\n    packssdw   m1, [in0q + in5q]\n    packssdw   m2, [in0q + in6q]\n    packssdw   m3, [in0q + in7q]\n    TRANSPOSE2x4x4W 0, 1, 2, 3, 4\n%elif %2 == 6\n    packssdw   m0, [in0q + in3q]\n    packssdw   m1, [in0q + in4q]\n    packssdw   m2, [in0q + in5q]\n    pshufd     m3, m0,     q1032\n    punpcklwd  m0, m1\n    punpckhwd  m1, m2\n    punpcklwd  m2, m3\n\n    shufps     m3, m0, m2, q2020\n    shufps     m0, m1,     q2031", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:8", "text": "%else ; %1 == 16\n\n%if %2 == 8\n    packssdw   m0, [in0q + in4q]\n    packssdw   m1, [in0q + in5q]\n    packssdw   m2, [in0q + in6q]\n    packssdw   m3, [in0q + in7q]\n    TRANSPOSE2x4x4W 0, 1, 2, 3, 4\n%elif %2 == 6\n    packssdw   m0, [in0q + in3q]\n    packssdw   m1, [in0q + in4q]\n    packssdw   m2, [in0q + in5q]\n    pshufd     m3, m0,     q1032\n    punpcklwd  m0, m1\n    punpckhwd  m1, m2\n    punpcklwd  m2, m3\n\n    shufps     m3, m0, m2, q2020\n    shufps     m0, m1,     q2031\n    shufps     m2, m1,     q3131\n    shufps     m1, m2, m3, q3120\n    shufps     m3, m0,     q0220\n    shufps     m0, m2,     q3113\n    SWAP 2, 0, 3\n%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0\n%rep REPCOUNT\n    psll%4   m %+ %%i, m%3\n%assign %%i %%i+1\n%endrep\n\n%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1\n%endrep\n\n    add      in0q, mmsize\n    add      outq, mmsize*REPCOUNT\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFLAC_DECORRELATE_16 indep2, 0, 1 ; Reuse stereo 16bits macro\nFLAC_DECORRELATE_INDEP 32, 2, 3, d\nFLAC_DECORRELATE_INDEP 16, 4, 3, w\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 16, 6, 4, w\nFLAC_DECORRELATE_INDEP 32, 6, 7, d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:9", "text": "%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1\n%endrep\n\n    add      in0q, mmsize\n    add      outq, mmsize*REPCOUNT\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFLAC_DECORRELATE_16 indep2, 0, 1 ; Reuse stereo 16bits macro\nFLAC_DECORRELATE_INDEP 32, 2, 3, d\nFLAC_DECORRELATE_INDEP 16, 4, 3, w\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 16, 6, 4, w\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif\n\nINIT_XMM avx\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "0664cbd732fd9d95037d9110b64fb2a32360de2c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0664cbd732fd9d95037d9110b64fb2a32360de2c/libavcodec/x86/flacdsp.asm", "line_start": 321, "line_end": 352}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:2", "text": "%macro LPC_32 3\nINIT_XMM %1\ncglobal flac_lpc_%2, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order\n.loop_order:\n    PMACSDQL m2, m0, m1, m2, m0\n    movd   m0, [decodedq+jq*4]\n    PMACSDQL m3, m1, m0, m3, m1\n    movd   m1, [coeffsq+jq*4]\n    inc    jq\n    jl .loop_order\n.end_order:\n    PMACSDQL m2, m0, m1, m2, m0\n    %3     m2, m4\n    movd   m0, [decodedq]\n    paddd  m0, m2\n    movd   [decodedq], m0\n    sub  lend, 2\n    jl .ret\n    PMACSDQL m3, m1, m0, m3, m1\n    %3     m3, m4\n    movd   m1, [decodedq+4]\n    paddd  m1, m3\n    movd   [decodedq+4], m1\n    jg .loop_sample\n.ret:\n    RET\n%endmacro\n\nLPC_32 sse4, 16, psrad\nLPC_32 sse4, 32, psrlq\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop,  32, psrlq\n%endif\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_16_sse2(uint8_t **out, int32_t **in, int channels,\n;                                                   int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_16 3-4\ncglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:3", "text": "jg .loop_sample\n.ret:\n    RET\n%endmacro\n\nLPC_32 sse4, 16, psrad\nLPC_32 sse4, 32, psrlq\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop,  32, psrlq\n%endif\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_16_sse2(uint8_t **out, int32_t **in, int channels,\n;                                                   int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_16 3-4\ncglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    shl      lend, 2\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    add      in1q, lenq\n    add      in0q, lenq\n    add      outq, lenq\n    neg      lenq\n\nalign 16\n.loop:\n    mova       m0, [in0q + lenq]\n    mova       m1, [in1q + lenq]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2\n    pshufb     m%3, m%3, m2\n    punpcklwd  m%2, m%3\n%endif\n    mova [outq + lenq], m%2\n    add      lenq, 16\n    jl .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:4", "text": "%endif\n%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2\n    pshufb     m%3, m%3, m2\n    punpcklwd  m%2, m%3\n%endif\n    mova [outq + lenq], m%2\n    add      lenq, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_16 ls, 0, 2, sub\nFLAC_DECORRELATE_16 rs, 2, 1, add\nFLAC_DECORRELATE_16 ms, 2, 0, add\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_32_sse2(uint8_t **out, int32_t **in, int channels,\n;                                        int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_32 5\ncglobal flac_decorrelate_%1_32, 2, 4, 4, out, in0, in1, len\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    sub      in1q, in0q\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3\n\n    SBUTTERFLY dq, %2, %3, %4\n\n    mova  [outq         ], m%2\n    mova  [outq + mmsize], m%3\n\n    add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:5", "text": "align 16\n.loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3\n\n    SBUTTERFLY dq, %2, %3, %4\n\n    mova  [outq         ], m%2\n    mova  [outq + mmsize], m%3\n\n    add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_32 ls, 0, 2, 1, sub\nFLAC_DECORRELATE_32 rs, 2, 1, 0, add\nFLAC_DECORRELATE_32 ms, 2, 0, 1, add\n\n;-----------------------------------------------------------------------------------------\n;void ff_flac_decorrelate_indep<ch>_<bps>_<opt>(uint8_t **out, int32_t **in, int channels,\n;                                            int len, int shift);\n;-----------------------------------------------------------------------------------------\n;%1 = bps\n;%2 = channels\n;%3 = last xmm reg used\n;%4 = word/dword (shift instruction)\n%macro FLAC_DECORRELATE_INDEP 4\n%define REPCOUNT %2/(32/%1) ; 16bits = channels / 2; 32bits = channels\ncglobal flac_decorrelate_indep%2_%1, 2, %2+2, %3+1, out, in0, in1, len, in2, in3, in4, in5, in6, in7\n%if ARCH_X86_32\n%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1\n%rep %2-1\n    mov      in %+ %%i %+ q, [in0q+%%i*gprsize]\n%assign %%i %%i+1\n%endrep\n\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:6", "text": "%if ARCH_X86_32\n%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1\n%rep %2-1\n    mov      in %+ %%i %+ q, [in0q+%%i*gprsize]\n%assign %%i %%i+1\n%endrep\n\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1\n%rep %2-1\n    sub      in %+ %%i %+ q, in0q\n%assign %%i %%i+1\n%endrep\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n\n%assign %%i 1\n%rep REPCOUNT-1\n    mova     m %+ %%i, [in0q + in %+ %%i %+ q]\n%assign %%i %%i+1\n%endrep\n\n%if %1 == 32\n\n%if %2 == 8\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n%elif %2 == 6\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3\n%elif %2 == 4\n    TRANSPOSE4x4D 0, 1, 2, 3, 4\n%else ; %2 == 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%else ; %1 == 16\n\n%if %2 == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:7", "text": "SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3\n%elif %2 == 4\n    TRANSPOSE4x4D 0, 1, 2, 3, 4\n%else ; %2 == 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%else ; %1 == 16\n\n%if %2 == 8\n    packssdw   m0, [in0q + in4q]\n    packssdw   m1, [in0q + in5q]\n    packssdw   m2, [in0q + in6q]\n    packssdw   m3, [in0q + in7q]\n    TRANSPOSE2x4x4W 0, 1, 2, 3, 4\n%elif %2 == 6\n    packssdw   m0, [in0q + in3q]\n    packssdw   m1, [in0q + in4q]\n    packssdw   m2, [in0q + in5q]\n    pshufd     m3, m0,     q1032\n    punpcklwd  m0, m1\n    punpckhwd  m1, m2\n    punpcklwd  m2, m3\n\n    shufps     m3, m0, m2, q2020\n    shufps     m0, m1,     q2031\n    shufps     m2, m1,     q3131\n    shufps     m1, m2, m3, q3120\n    shufps     m3, m0,     q0220\n    shufps     m0, m2,     q3113\n    SWAP 2, 0, 3\n%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0\n%rep REPCOUNT\n    psll%4   m %+ %%i, m%3\n%assign %%i %%i+1\n%endrep\n\n%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:8", "text": "SWAP 2, 0, 3\n%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0\n%rep REPCOUNT\n    psll%4   m %+ %%i, m%3\n%assign %%i %%i+1\n%endrep\n\n%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1\n%endrep\n\n    add      in0q, mmsize\n    add      outq, mmsize*REPCOUNT\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFLAC_DECORRELATE_16 indep2, 0, 1 ; Reuse stereo 16bits macro\nFLAC_DECORRELATE_INDEP 32, 2, 3, d\nFLAC_DECORRELATE_INDEP 16, 4, 3, w\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 16, 6, 4, w\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif\n\nINIT_XMM avx\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "c00c8679ed35ccf053c3d0602932dda3adac752e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c00c8679ed35ccf053c3d0602932dda3adac752e/libavcodec/x86/flacdsp.asm", "line_start": 281, "line_end": 328}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:1", "text": ";******************************************************************************\n;* FLAC DSP SIMD optimizations\n;*\n;* Copyright (C) 2014 Loren Merritt\n;* Copyright (C) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nvector:  db 0,1,4,5,8,9,12,13,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,4,5,8,9,12,13,\n\nSECTION .text\n\n%macro PMACSDQL 5\n%if cpuflag(xop)\n    pmacsdql %1, %2, %3, %1\n%else\n    pmuldq   %2, %3\n    paddq    %1, %2\n%endif\n%endmacro\n\n%macro LPC_32 1\nINIT_XMM %1\ncglobal flac_lpc_32, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:2", "text": "%macro LPC_32 1\nINIT_XMM %1\ncglobal flac_lpc_32, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j\n    sub    lend, pred_orderd\n    jle .ret\n    movsxdifnidn pred_orderq, pred_orderd\n    lea    decodedq, [decodedq+pred_orderq*4-8]\n    lea    coeffsq, [coeffsq+pred_orderq*4]\n    neg    pred_orderq\n    movd   m4, qlevelm\nALIGN 16\n.loop_sample:\n    movd   m0, [decodedq+pred_orderq*4+8]\n    add    decodedq, 8\n    movd   m1, [coeffsq+pred_orderq*4]\n    pxor   m2, m2\n    pxor   m3, m3\n    lea    jq, [pred_orderq+1]\n    test   jq, jq\n    jz .end_order\n.loop_order:\n    PMACSDQL m2, m0, m1, m2, m0\n    movd   m0, [decodedq+jq*4]\n    PMACSDQL m3, m1, m0, m3, m1\n    movd   m1, [coeffsq+jq*4]\n    inc    jq\n    jl .loop_order\n.end_order:\n    PMACSDQL m2, m0, m1, m2, m0\n    psrlq  m2, m4\n    movd   m0, [decodedq]\n    paddd  m0, m2\n    movd   [decodedq], m0\n    sub  lend, 2\n    jl .ret\n    PMACSDQL m3, m1, m0, m3, m1\n    psrlq  m3, m4\n    movd   m1, [decodedq+4]\n    paddd  m1, m3\n    movd   [decodedq+4], m1\n    jg .loop_sample\n.ret:\n    RET\n%endmacro\n\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop\n%endif\nLPC_32 sse4\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_16_sse2(uint8_t **out, int32_t **in, int channels,\n;                                                   int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_16 3-4\ncglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif\n%if ARCH_X86_32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:3", "text": "jg .loop_sample\n.ret:\n    RET\n%endmacro\n\n%if HAVE_XOP_EXTERNAL\nLPC_32 xop\n%endif\nLPC_32 sse4\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_16_sse2(uint8_t **out, int32_t **in, int channels,\n;                                                   int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_16 3-4\ncglobal flac_decorrelate_%1_16, 2, 4, 4, out, in0, in1, len\n%ifidn %1, indep2\n    VBROADCASTI128 m2, [vector]\n%endif\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    shl      lend, 2\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    add      in1q, lenq\n    add      in0q, lenq\n    add      outq, lenq\n    neg      lenq\n\nalign 16\n.loop:\n    mova       m0, [in0q + lenq]\n    mova       m1, [in1q + lenq]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2\n    pshufb     m%3, m%3, m2\n    punpcklwd  m%2, m%3\n%endif\n    mova [outq + lenq], m%2\n    add      lenq, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:4", "text": "%ifnidn %1, indep2\n    p%4d       m2, m0, m1\n    packssdw   m%2, m%2\n    packssdw   m%3, m%3\n    punpcklwd  m%2, m%3\n    psllw      m%2, m3\n%else\n    pslld      m%2, m3\n    pslld      m%3, m3\n    pshufb     m%2, m%2, m2\n    pshufb     m%3, m%3, m2\n    punpcklwd  m%2, m%3\n%endif\n    mova [outq + lenq], m%2\n    add      lenq, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_16 ls, 0, 2, sub\nFLAC_DECORRELATE_16 rs, 2, 1, add\nFLAC_DECORRELATE_16 ms, 2, 0, add\n\n;----------------------------------------------------------------------------------\n;void ff_flac_decorrelate_[lrm]s_32_sse2(uint8_t **out, int32_t **in, int channels,\n;                                        int len, int shift);\n;----------------------------------------------------------------------------------\n%macro FLAC_DECORRELATE_32 5\ncglobal flac_decorrelate_%1_32, 2, 4, 4, out, in0, in1, len\n%if ARCH_X86_32\n    mov      lend, lenm\n%endif\n    movd       m3, r4m\n    mov      in1q, [in0q + gprsize]\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n    sub      in1q, in0q\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3\n\n    SBUTTERFLY dq, %2, %3, %4\n\n    mova  [outq         ], m%2\n    mova  [outq + mmsize], m%3\n\n    add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4\n    jg .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:5", "text": ".loop:\n    mova       m0, [in0q]\n    mova       m1, [in0q + in1q]\n%ifidn %1, ms\n    psrad      m2, m1, 1\n    psubd      m0, m2\n%endif\n    p%5d       m2, m0, m1\n    pslld     m%2, m3\n    pslld     m%3, m3\n\n    SBUTTERFLY dq, %2, %3, %4\n\n    mova  [outq         ], m%2\n    mova  [outq + mmsize], m%3\n\n    add      in0q, mmsize\n    add      outq, mmsize*2\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nFLAC_DECORRELATE_32 ls, 0, 2, 1, sub\nFLAC_DECORRELATE_32 rs, 2, 1, 0, add\nFLAC_DECORRELATE_32 ms, 2, 0, 1, add\n\n;-----------------------------------------------------------------------------------------\n;void ff_flac_decorrelate_indep<ch>_<bps>_<opt>(uint8_t **out, int32_t **in, int channels,\n;                                            int len, int shift);\n;-----------------------------------------------------------------------------------------\n;%1 = bps\n;%2 = channels\n;%3 = last xmm reg used\n;%4 = word/dword (shift instruction)\n%macro FLAC_DECORRELATE_INDEP 4\n%define REPCOUNT %2/(32/%1) ; 16bits = channels / 2; 32bits = channels\ncglobal flac_decorrelate_indep%2_%1, 2, %2+2, %3+1, out, in0, in1, len, in2, in3, in4, in5, in6, in7\n%if ARCH_X86_32\n%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1\n%rep %2-1\n    mov      in %+ %%i %+ q, [in0q+%%i*gprsize]\n%assign %%i %%i+1\n%endrep\n\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1\n%rep %2-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:6", "text": "%if %2 == 6\n    DEFINE_ARGS out, in0, in1, in2, in3, in4, in5\n    %define  lend  dword r3m\n%else\n    mov      lend, lenm\n%endif\n%endif\n    movd      m%3, r4m\n\n%assign %%i 1\n%rep %2-1\n    mov      in %+ %%i %+ q, [in0q+%%i*gprsize]\n%assign %%i %%i+1\n%endrep\n\n    mov      in0q, [in0q]\n    mov      outq, [outq]\n\n%assign %%i 1\n%rep %2-1\n    sub      in %+ %%i %+ q, in0q\n%assign %%i %%i+1\n%endrep\n\nalign 16\n.loop:\n    mova       m0, [in0q]\n\n%assign %%i 1\n%rep REPCOUNT-1\n    mova     m %+ %%i, [in0q + in %+ %%i %+ q]\n%assign %%i %%i+1\n%endrep\n\n%if %1 == 32\n\n%if %2 == 8\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n%elif %2 == 6\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3\n%elif %2 == 4\n    TRANSPOSE4x4D 0, 1, 2, 3, 4\n%else ; %2 == 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%else ; %1 == 16\n\n%if %2 == 8\n    packssdw   m0, [in0q + in4q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:7", "text": "SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    punpcklqdq m6, m0, m2\n    punpckhqdq m2, m4\n    shufps     m4, m0, 0xe4\n    punpcklqdq m0, m1, m3\n    punpckhqdq m3, m5\n    shufps     m5, m1, 0xe4\n    SWAP 0,6,1,4,5,3\n%elif %2 == 4\n    TRANSPOSE4x4D 0, 1, 2, 3, 4\n%else ; %2 == 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%else ; %1 == 16\n\n%if %2 == 8\n    packssdw   m0, [in0q + in4q]\n    packssdw   m1, [in0q + in5q]\n    packssdw   m2, [in0q + in6q]\n    packssdw   m3, [in0q + in7q]\n    TRANSPOSE2x4x4W 0, 1, 2, 3, 4\n%elif %2 == 6\n    packssdw   m0, [in0q + in3q]\n    packssdw   m1, [in0q + in4q]\n    packssdw   m2, [in0q + in5q]\n    pshufd     m3, m0,     q1032\n    punpcklwd  m0, m1\n    punpckhwd  m1, m2\n    punpcklwd  m2, m3\n\n    shufps     m3, m0, m2, q2020\n    shufps     m0, m1,     q2031\n    shufps     m2, m1,     q3131\n    shufps     m1, m2, m3, q3120\n    shufps     m3, m0,     q0220\n    shufps     m0, m2,     q3113\n    SWAP 2, 0, 3\n%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0\n%rep REPCOUNT\n    psll%4   m %+ %%i, m%3\n%assign %%i %%i+1\n%endrep\n\n%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/flacdsp.asm:8", "text": "%else ; %2 == 4\n    packssdw   m0, [in0q + in2q]\n    packssdw   m1, [in0q + in3q]\n    SBUTTERFLY wd, 0, 1, 2\n    SBUTTERFLY dq, 0, 1, 2\n%endif\n\n%endif\n\n%assign %%i 0\n%rep REPCOUNT\n    psll%4   m %+ %%i, m%3\n%assign %%i %%i+1\n%endrep\n\n%assign %%i 0\n%rep REPCOUNT\n    mova [outq + %%i*mmsize], m %+ %%i\n%assign %%i %%i+1\n%endrep\n\n    add      in0q, mmsize\n    add      outq, mmsize*REPCOUNT\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFLAC_DECORRELATE_16 indep2, 0, 1 ; Reuse stereo 16bits macro\nFLAC_DECORRELATE_INDEP 32, 2, 3, d\nFLAC_DECORRELATE_INDEP 16, 4, 3, w\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 16, 6, 4, w\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif\n\nINIT_XMM avx\nFLAC_DECORRELATE_INDEP 32, 4, 5, d\nFLAC_DECORRELATE_INDEP 32, 6, 7, d\n%if ARCH_X86_64\nFLAC_DECORRELATE_INDEP 16, 8, 5, w\nFLAC_DECORRELATE_INDEP 32, 8, 9, d\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/flacdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/flacdsp.asm", "line_start": 281, "line_end": 327}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fmtconvert.asm:1", "text": ";******************************************************************************\n;* x86 optimized Format Conversion Utils\n;* Copyright (c) 2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_int32_to_float_fmul_scalar(float *dst, const int32_t *src, float mul,\n;                                    int len);\n;------------------------------------------------------------------------------\n%macro INT32_TO_FLOAT_FMUL_SCALAR 1\n%if UNIX64\ncglobal int32_to_float_fmul_scalar, 3, 3, %1, dst, src, len\n%else\ncglobal int32_to_float_fmul_scalar, 4, 4, %1, dst, src, mul, len\n%endif\n%if WIN64\n    SWAP 0, 2\n%elif ARCH_X86_32\n    movss   m0, mulm\n%endif\n    SPLATD  m0\n    shl     lend, 2\n    add     srcq, lenq\n    add     dstq, lenq\n    neg     lenq\n.loop:\n    cvtdq2ps  m1, [srcq+lenq   ]\n    cvtdq2ps  m2, [srcq+lenq+16]\n    mulps     m1, m0\n    mulps     m2, m0\n    mova  [dstq+lenq   ], m1\n    mova  [dstq+lenq+16], m2\n    add     lenq, 32\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nINT32_TO_FLOAT_FMUL_SCALAR 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fmtconvert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/fmtconvert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fmtconvert.asm:2", "text": "SPLATD  m0\n    shl     lend, 2\n    add     srcq, lenq\n    add     dstq, lenq\n    neg     lenq\n.loop:\n    cvtdq2ps  m1, [srcq+lenq   ]\n    cvtdq2ps  m2, [srcq+lenq+16]\n    mulps     m1, m0\n    mulps     m2, m0\n    mova  [dstq+lenq   ], m1\n    mova  [dstq+lenq+16], m2\n    add     lenq, 32\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nINT32_TO_FLOAT_FMUL_SCALAR 3\n\n;------------------------------------------------------------------------------\n; void ff_int32_to_float_fmul_array8(FmtConvertContext *c, float *dst, const int32_t *src,\n;                                    const float *mul, int len);\n;------------------------------------------------------------------------------\n%macro INT32_TO_FLOAT_FMUL_ARRAY8 0\ncglobal int32_to_float_fmul_array8, 5, 5, 5, c, dst, src, mul, len\n    shl     lend, 2\n    add     srcq, lenq\n    add     dstq, lenq\n    neg     lenq\n.loop:\n    movss     m0, [mulq]\n    SPLATD    m0\n    cvtdq2ps  m1, [srcq+lenq   ]\n    cvtdq2ps  m2, [srcq+lenq+16]\n    mulps     m1, m0\n    mulps     m2, m0\n    mova  [dstq+lenq   ], m1\n    mova  [dstq+lenq+16], m2\n    add     mulq, 4\n    add     lenq, 32\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nINT32_TO_FLOAT_FMUL_ARRAY8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fmtconvert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/fmtconvert.asm", "line_start": 41, "line_end": 87}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized fullpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; void ff_put/avg_pixels(uint8_t *block, const uint8_t *pixels,\n;                        ptrdiff_t line_size, int h)\n%macro OP_PIXELS 2-3 0\n%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%else\n%define LOAD movu\n%define SAVE mova\n%endif\ncglobal %1_pixels%2x%2, 3,5+4*%3,%3 ? 4 : 0\n    mov         r3d, %2\n    jmp         %1_pixels%2_after_prologue\n\ncglobal %1_pixels%2, 4,5+4*%3,%3 ? 4 : 0\n%1_pixels%2_after_prologue:\n    lea          r4, [r2*3]\n.loop:\n%if %3\n; Use GPRs on UNIX64 for put8, but not on Win64 due to a lack of volatile GPRs\n    mov         r5q, [r1]\n    mov         r6q, [r1+r2]\n    mov         r7q, [r1+r2*2]\n    mov         r8q, [r1+r4]\n    mov        [r0], r5q\n    mov     [r0+r2], r6q\n    mov   [r0+r2*2], r7q\n    mov     [r0+r4], r8q\n%else\n    LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/fpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "cglobal %1_pixels%2, 4,5+4*%3,%3 ? 4 : 0\n%1_pixels%2_after_prologue:\n    lea          r4, [r2*3]\n.loop:\n%if %3\n; Use GPRs on UNIX64 for put8, but not on Win64 due to a lack of volatile GPRs\n    mov         r5q, [r1]\n    mov         r6q, [r1+r2]\n    mov         r7q, [r1+r2*2]\n    mov         r8q, [r1+r4]\n    mov        [r0], r5q\n    mov     [r0+r2], r6q\n    mov   [r0+r2*2], r7q\n    mov     [r0+r4], r8q\n%else\n    LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r4]\n%endif\n    SAVE       [r0], m0\n    SAVE    [r0+r2], m1\n    SAVE  [r0+r2*2], m2\n    SAVE    [r0+r4], m3\n%endif\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nOP_PIXELS avg, 8\n\nINIT_XMM sse2\nOP_PIXELS put, 8, UNIX64\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 85}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized fullpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; void ff_put/avg_pixels(uint8_t *block, const uint8_t *pixels,\n;                        ptrdiff_t line_size, int h)\n%macro OP_PIXELS 2\n%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%else\n%define LOAD movu\n%define SAVE mova\n%endif\ncglobal %1_pixels%2x%2, 3,5,4\n    mov         r3d, %2\n    jmp         %1_pixels%2_after_prologue\n\ncglobal %1_pixels%2, 4,5,4\n%1_pixels%2_after_prologue:\n    lea          r4, [r2*3]\n.loop:\n    LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r4]\n%endif\n    SAVE       [r0], m0\n    SAVE    [r0+r2], m1\n    SAVE  [r0+r2*2], m2\n    SAVE    [r0+r4], m3\n    sub         r3d, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "378d5bb08a460a3c34a3ea89cd442424e1d035df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/378d5bb08a460a3c34a3ea89cd442424e1d035df/libavcodec/x86/fpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "cglobal %1_pixels%2, 4,5,4\n%1_pixels%2_after_prologue:\n    lea          r4, [r2*3]\n.loop:\n    LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r4]\n%endif\n    SAVE       [r0], m0\n    SAVE    [r0+r2], m1\n    SAVE  [r0+r2*2], m2\n    SAVE    [r0+r4], m3\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\n\nINIT_MMX mmxext\nOP_PIXELS avg, 8\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "378d5bb08a460a3c34a3ea89cd442424e1d035df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/378d5bb08a460a3c34a3ea89cd442424e1d035df/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 75}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized fullpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; void ff_put/avg_pixels(uint8_t *block, const uint8_t *pixels,\n;                        ptrdiff_t line_size, int h)\n%macro OP_PIXELS 2\n%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%else\n%define LOAD movu\n%define SAVE mova\n%endif\ncglobal %1_pixels%2, 4,5,4\n    lea          r4, [r2*3]\n.loop:\n    LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r4]\n%endif\n    SAVE       [r0], m0\n    SAVE    [r0+r2], m1\n    SAVE  [r0+r2*2], m2\n    SAVE    [r0+r4], m3\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "279b6f3cf56dbfcfb3980a1d955d66628e80aa24", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/279b6f3cf56dbfcfb3980a1d955d66628e80aa24/libavcodec/x86/fpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r4]\n%endif\n    SAVE       [r0], m0\n    SAVE    [r0+r2], m1\n    SAVE  [r0+r2*2], m2\n    SAVE    [r0+r4], m3\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\n\nINIT_MMX mmxext\nOP_PIXELS avg, 8\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "279b6f3cf56dbfcfb3980a1d955d66628e80aa24", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/279b6f3cf56dbfcfb3980a1d955d66628e80aa24/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 70}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "LOAD         m0, [r1]\n    LOAD         m1, [r1+r2]\n    LOAD         m2, [r1+r2*2]\n    LOAD         m3, [r1+r4]\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r4]\n%endif\n    SAVE       [r0], m0\n    SAVE    [r0+r2], m1\n    SAVE  [r0+r2*2], m2\n    SAVE    [r0+r4], m3\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "e340f31b898e51d12ec1ced52fcbf03fb4635533", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e340f31b898e51d12ec1ced52fcbf03fb4635533/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized fullpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; void ff_put/avg_pixels(uint8_t *block, const uint8_t *pixels,\n;                        ptrdiff_t line_size, int h)\n%macro OP_PIXELS 2\n%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%define LEN  mmsize\n%else\n%define LOAD movu\n%define SAVE mova\n%define LEN  %2\n%endif\ncglobal %1_pixels%2, 4,5,4\n    lea          r4, [r2*3]\n.loop:\n%assign %%i 0\n%rep LEN/mmsize\n    LOAD         m0, [r1 + %%i]\n    LOAD         m1, [r1+r2 + %%i]\n    LOAD         m2, [r1+r2*2 + %%i]\n    LOAD         m3, [r1+r4 + %%i]\n%ifidn %1, avg\n    pavgb        m0, [r0 + %%i]\n    pavgb        m1, [r0+r2 + %%i]\n    pavgb        m2, [r0+r2*2 + %%i]\n    pavgb        m3, [r0+r4 + %%i]\n%endif\n    SAVE       [r0 + %%i], m0\n    SAVE    [r0+r2 + %%i], m1\n    SAVE  [r0+r2*2 + %%i], m2\n    SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "2cf9e733c6a666600423a0967f23341d9f09e3c8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2cf9e733c6a666600423a0967f23341d9f09e3c8/libavcodec/x86/fpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "lea          r4, [r2*3]\n.loop:\n%assign %%i 0\n%rep LEN/mmsize\n    LOAD         m0, [r1 + %%i]\n    LOAD         m1, [r1+r2 + %%i]\n    LOAD         m2, [r1+r2*2 + %%i]\n    LOAD         m3, [r1+r4 + %%i]\n%ifidn %1, avg\n    pavgb        m0, [r0 + %%i]\n    pavgb        m1, [r0+r2 + %%i]\n    pavgb        m2, [r0+r2*2 + %%i]\n    pavgb        m3, [r0+r4 + %%i]\n%endif\n    SAVE       [r0 + %%i], m0\n    SAVE    [r0+r2 + %%i], m1\n    SAVE  [r0+r2*2 + %%i], m2\n    SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "2cf9e733c6a666600423a0967f23341d9f09e3c8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2cf9e733c6a666600423a0967f23341d9f09e3c8/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "lea          r4, [r2*3]\n.loop:\n%assign %%i 0\n%rep LEN/mmsize\n    LOAD         m0, [r1 + %%i]\n    LOAD         m1, [r1+r2 + %%i]\n    LOAD         m2, [r1+r2*2 + %%i]\n    LOAD         m3, [r1+r4 + %%i]\n%ifidn %1, avg\n    pavgb        m0, [r0 + %%i]\n    pavgb        m1, [r0+r2 + %%i]\n    pavgb        m2, [r0+r2*2 + %%i]\n    pavgb        m3, [r0+r4 + %%i]\n%endif\n    SAVE       [r0 + %%i], m0\n    SAVE    [r0+r2 + %%i], m1\n    SAVE  [r0+r2*2 + %%i], m2\n    SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\nOP_PIXELS put, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "a172d80703cd7779a58e9b671886a8c5383ce4d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a172d80703cd7779a58e9b671886a8c5383ce4d1/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 79}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized fullpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro PAVGB_MMX 4\n    LOAD   %3, %1\n    por    %3, %2\n    pxor   %2, %1\n    pand   %2, %4\n    psrlq  %2, 1\n    psubb  %3, %2\n    SWAP   %2, %3\n%endmacro\n\n; void ff_put/avg_pixels(uint8_t *block, const uint8_t *pixels,\n;                        ptrdiff_t line_size, int h)\n%macro OP_PIXELS 2\n%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%define LEN  mmsize\n%else\n%define LOAD movu\n%define SAVE mova\n%define LEN  %2\n%endif\ncglobal %1_pixels%2, 4,5,4\n    lea          r4, [r2*3]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    pcmpeqd      m6, m6\n    paddb        m6, m6\n%endif\n%endif\n.loop:\n%assign %%i 0\n%rep LEN/mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "32178c2f28f6d33907b979fd448802f6d0eda3f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/32178c2f28f6d33907b979fd448802f6d0eda3f4/libavcodec/x86/fpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%define LEN  mmsize\n%else\n%define LOAD movu\n%define SAVE mova\n%define LEN  %2\n%endif\ncglobal %1_pixels%2, 4,5,4\n    lea          r4, [r2*3]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    pcmpeqd      m6, m6\n    paddb        m6, m6\n%endif\n%endif\n.loop:\n%assign %%i 0\n%rep LEN/mmsize\n    LOAD         m0, [r1 + %%i]\n    LOAD         m1, [r1+r2 + %%i]\n    LOAD         m2, [r1+r2*2 + %%i]\n    LOAD         m3, [r1+r4 + %%i]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    PAVGB_MMX    [r0 + %%i], m0, m4, m6\n    PAVGB_MMX    [r0+r2 + %%i], m1, m5, m6\n    PAVGB_MMX    [r0+r2*2 + %%i], m2, m4, m6\n    PAVGB_MMX    [r0+r4 + %%i], m3, m5, m6\n%else\n    pavgb        m0, [r0 + %%i]\n    pavgb        m1, [r0+r2 + %%i]\n    pavgb        m2, [r0+r2*2 + %%i]\n    pavgb        m3, [r0+r4 + %%i]\n%endif\n%endif\n    SAVE       [r0 + %%i], m0\n    SAVE    [r0+r2 + %%i], m1\n    SAVE  [r0+r2*2 + %%i], m2\n    SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\nOP_PIXELS put, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "32178c2f28f6d33907b979fd448802f6d0eda3f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/32178c2f28f6d33907b979fd448802f6d0eda3f4/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:3", "text": "SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 8\nOP_PIXELS put, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "32178c2f28f6d33907b979fd448802f6d0eda3f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/32178c2f28f6d33907b979fd448802f6d0eda3f4/libavcodec/x86/fpel.asm", "line_start": 81, "line_end": 102}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%define LEN  mmsize\n%else\n%define LOAD movu\n%define SAVE mova\n%define LEN  %2\n%endif\ncglobal %1_pixels%2, 4,5,4\n    lea          r4, [r2*3]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    pcmpeqd      m6, m6\n    paddb        m6, m6\n%endif\n%endif\n.loop:\n%assign %%i 0\n%rep LEN/mmsize\n    LOAD         m0, [r1 + %%i]\n    LOAD         m1, [r1+r2 + %%i]\n    LOAD         m2, [r1+r2*2 + %%i]\n    LOAD         m3, [r1+r4 + %%i]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    PAVGB_MMX    [r0 + %%i], m0, m4, m6\n    PAVGB_MMX    [r0+r2 + %%i], m1, m5, m6\n    PAVGB_MMX    [r0+r2*2 + %%i], m2, m4, m6\n    PAVGB_MMX    [r0+r4 + %%i], m3, m5, m6\n%else\n    pavgb        m0, [r0 + %%i]\n    pavgb        m1, [r0+r2 + %%i]\n    pavgb        m2, [r0+r2*2 + %%i]\n    pavgb        m3, [r0+r4 + %%i]\n%endif\n%endif\n    SAVE       [r0 + %%i], m0\n    SAVE    [r0+r2 + %%i], m1\n    SAVE  [r0+r2*2 + %%i], m2\n    SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 4\nOP_PIXELS put, 8\nOP_PIXELS put, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "7cad4dba505f9ad0adf013dd5bdf02a57249eecc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7cad4dba505f9ad0adf013dd5bdf02a57249eecc/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:3", "text": "SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 4\nOP_PIXELS put, 8\nOP_PIXELS put, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "7cad4dba505f9ad0adf013dd5bdf02a57249eecc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7cad4dba505f9ad0adf013dd5bdf02a57249eecc/libavcodec/x86/fpel.asm", "line_start": 81, "line_end": 103}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:2", "text": "%if %2 == mmsize/2\n%define LOAD movh\n%define SAVE movh\n%define LEN  mmsize\n%else\n%define LOAD movu\n%define SAVE mova\n%define LEN  %2\n%endif\ncglobal %1_pixels%2, 4,5,4\n    lea          r4, [r2*3]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    pcmpeqd      m6, m6\n    paddb        m6, m6\n%endif\n%endif\n.loop:\n%assign %%i 0\n%rep LEN/mmsize\n    LOAD         m0, [r1 + %%i]\n    LOAD         m1, [r1+r2 + %%i]\n    LOAD         m2, [r1+r2*2 + %%i]\n    LOAD         m3, [r1+r4 + %%i]\n%ifidn %1, avg\n%if notcpuflag(mmxext)\n    PAVGB_MMX    [r0 + %%i], m0, m4, m6\n    PAVGB_MMX    [r0+r2 + %%i], m1, m5, m6\n    PAVGB_MMX    [r0+r2*2 + %%i], m2, m4, m6\n    PAVGB_MMX    [r0+r4 + %%i], m3, m5, m6\n%else\n    pavgb        m0, [r0 + %%i]\n    pavgb        m1, [r0+r2 + %%i]\n    pavgb        m2, [r0+r2*2 + %%i]\n    pavgb        m3, [r0+r4 + %%i]\n%endif\n%endif\n    SAVE       [r0 + %%i], m0\n    SAVE    [r0+r2 + %%i], m1\n    SAVE  [r0+r2*2 + %%i], m2\n    SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 4\nOP_PIXELS put, 8\nOP_PIXELS put, 16\nOP_PIXELS avg, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/fpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/fpel.asm:3", "text": "SAVE    [r0+r4 + %%i], m3\n%assign %%i %%i+mmsize\n%endrep\n    sub         r3d, 4\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmx\nOP_PIXELS put, 4\nOP_PIXELS put, 8\nOP_PIXELS put, 16\nOP_PIXELS avg, 16\n\nINIT_MMX mmxext\nOP_PIXELS avg, 4\nOP_PIXELS avg, 8\nOP_PIXELS avg, 16\n\nINIT_XMM sse2\nOP_PIXELS put, 16\nOP_PIXELS avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/fpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/fpel.asm", "line_start": 81, "line_end": 104}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/g722dsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized DSP functions for G722 coding\n;*\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_qmf_coeffs:  dw   3, -210,  -11, -805,  -11,  951,  53, 3876\npw_qmf_coeffs2: dw  12, 3876, -156,  951,   32, -805, 362, -210\npw_qmf_coeffs3: dw 362,    0 ,  32,    0, -156,    0,  12,    0\npw_qmf_coeffs4: dw  53,    0,  -11,    0,  -11,    0,   3,    0\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal g722_apply_qmf, 2, 2, 5, prev, out\n    movu m0, [prevq+mmsize*0]\n    movu m1, [prevq+mmsize*1]\n    movu m2, [prevq+mmsize*2]\n    punpcklwd m3, m0, m1\n    punpckhwd m0, m1\n    punpcklwd m4, m2, m2\n    punpckhwd m2, m2\n    pmaddwd   m3, [pw_qmf_coeffs ]\n    pmaddwd   m0, [pw_qmf_coeffs2]\n    pmaddwd   m4, [pw_qmf_coeffs3]\n    pmaddwd   m2, [pw_qmf_coeffs4]\n    paddd     m0, m3\n    paddd     m2, m4\n    paddd     m0, m2\n    pshufd    m2, m0, q0032\n    paddd     m0, m2\n    pshufd    m0, m0, q0001\n    movq  [outq], m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/g722dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/g722dsp.asm", "line_start": 1, "line_end": 54}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized H.263 loop filter\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern h263_loop_filter_strength\npb_FC: times 16 db 0xFC\n\nSECTION .text\n\n%macro H263_LOOP_FILTER 5\n    pxor         m7, m7\n    movq         m0, [%1]\n    movq         m6, [%4]\n    mova         m5, m0\n    punpcklbw    m0, m7\n    punpcklbw    m6, m7\n    psubw        m0, m6\n    movq         m2, [%2]\n    movq         m1, [%3]\n    mova         m3, m2\n    mova         m4, m1\n    punpcklbw    m2, m7\n    punpcklbw    m1, m7\n    psubw        m1, m2\n    psllw        m1, 2\n    paddw        m1, m0\n    pxor         m6, m6\n    pcmpgtw      m6, m1\n    pxor         m1, m6\n    psubw        m1, m6\n    psrlw        m1, 3\n    packuswb     m1, m7\n    packsswb     m6, m7\n    movd         m2, %5\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    psubusb      m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h263_loopfilter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:2", "text": "movq         m1, [%3]\n    mova         m3, m2\n    mova         m4, m1\n    punpcklbw    m2, m7\n    punpcklbw    m1, m7\n    psubw        m1, m2\n    psllw        m1, 2\n    paddw        m1, m0\n    pxor         m6, m6\n    pcmpgtw      m6, m1\n    pxor         m1, m6\n    psubw        m1, m6\n    psrlw        m1, 3\n    packuswb     m1, m7\n    packsswb     m6, m7\n    movd         m2, %5\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    psubusb      m2, m1\n    mova         m7, m2\n    psubusb      m7, m1\n    psubb        m2, m7\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m3, m2\n    psubusb      m4, m2\n    pxor         m7, m7\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m2, m2\n    packsswb     m0, m7\n    pcmpgtb      m7, m0\n    pxor         m0, m7\n    psubb        m0, m7\n    mova         m1, m0\n    psubusb      m0, m2\n    psubb        m1, m0\n    pand         m1, [pb_FC]\n    psrlw        m1, 2\n    pxor         m1, m7\n    psubb        m1, m7\n    movq         m6, [%4]\n    psubb        m5, m1\n    paddb        m6, m1\n%endmacro\n\nINIT_XMM sse2\n; void ff_h263_v_loop_filter_sse2(uint8_t *src, int stride, int qscale)\ncglobal h263_v_loop_filter, 3,5,8\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r3, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r3+r2]\n    shl         r2d, 1\n\n    mov          r3, r0\n    sub          r3, r1\n    mov          r4, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h263_loopfilter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:3", "text": "pxor         m1, m7\n    psubb        m1, m7\n    movq         m6, [%4]\n    psubb        m5, m1\n    paddb        m6, m1\n%endmacro\n\nINIT_XMM sse2\n; void ff_h263_v_loop_filter_sse2(uint8_t *src, int stride, int qscale)\ncglobal h263_v_loop_filter, 3,5,8\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r3, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r3+r2]\n    shl         r2d, 1\n\n    mov          r3, r0\n    sub          r3, r1\n    mov          r4, r3\n    sub          r4, r1\n    H263_LOOP_FILTER r4, r3, r0, r0+r1, r2d\n\n    movq       [r3], m3\n    movq       [r0], m4\n    movq       [r4], m5\n    movq    [r0+r1], m6\n    RET\n\n%macro TRANSPOSE4X4 2\n    movd         %1, [%2]\n    movd         m2, [%2+r1]\n    movd         m3, [%2+r1*2]\n    movd         m4, [%2+r3]\n    punpcklbw    %1, m2\n    punpcklbw    m3, m4\n    punpcklwd    %1, m3\n%endmacro\n\n\n; void ff_h263_h_loop_filter_sse2(uint8_t *src, int stride, int qscale)\nINIT_XMM sse2\ncglobal h263_h_loop_filter, 3,5,8,32\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r4, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r4+r2]\n    shl         r2d, 1\n\n    sub          r0, 2\n    lea          r3, [r1*3]\n    lea          r4, [r0+r1*4]\n\n    TRANSPOSE4X4 m0, r0\n    TRANSPOSE4X4 m1, r4\n    mova         m2, m0\n    punpckldq    m0, m1\n    mova      [rsp], m0\n    punpckhdq    m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h263_loopfilter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:4", "text": "; void ff_h263_h_loop_filter_sse2(uint8_t *src, int stride, int qscale)\nINIT_XMM sse2\ncglobal h263_h_loop_filter, 3,5,8,32\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r4, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r4+r2]\n    shl         r2d, 1\n\n    sub          r0, 2\n    lea          r3, [r1*3]\n    lea          r4, [r0+r1*4]\n\n    TRANSPOSE4X4 m0, r0\n    TRANSPOSE4X4 m1, r4\n    mova         m2, m0\n    punpckldq    m0, m1\n    mova      [rsp], m0\n    punpckhdq    m2, m1\n    mova   [rsp+16], m2\n\n    H263_LOOP_FILTER rsp, rsp+8, rsp+16, rsp+24, r2d\n\n    punpcklbw    m5, m3\n    punpcklbw    m4, m6\n    mova         m0, m5\n    punpcklwd    m5, m4\n    punpckhwd    m0, m4\n    movd       [r0], m5\n    movd       [r4], m0\n    pshufd       m1, m5, 0x1\n    pshufd       m2, m0, 0x1\n    movd  [r0+r1*1], m1\n    movd  [r4+r1*1], m2\n    punpckhdq    m5, m5\n    punpckhdq    m0, m0\n    movd  [r0+r1*2], m5\n    movd  [r4+r1*2], m0\n    punpckhdq    m5, m5\n    punpckhdq    m0, m0\n    movd    [r0+r3], m5\n    movd    [r4+r3], m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h263_loopfilter.asm", "line_start": 121, "line_end": 164}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized H.263 loop filter\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pb_FC\ncextern h263_loop_filter_strength\n\nSECTION .text\n\n%macro H263_LOOP_FILTER 5\n    pxor         m7, m7\n    movq         m0, [%1]\n    movq         m6, [%4]\n    mova         m5, m0\n    punpcklbw    m0, m7\n    punpcklbw    m6, m7\n    psubw        m0, m6\n    movq         m2, [%2]\n    movq         m1, [%3]\n    mova         m3, m2\n    mova         m4, m1\n    punpcklbw    m2, m7\n    punpcklbw    m1, m7\n    psubw        m1, m2\n    psllw        m1, 2\n    paddw        m1, m0\n    pxor         m6, m6\n    pcmpgtw      m6, m1\n    pxor         m1, m6\n    psubw        m1, m6\n    psrlw        m1, 3\n    packuswb     m1, m7\n    packsswb     m6, m7\n    movd         m2, %5\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    psubusb      m2, m1\n    mova         m7, m2\n    psubusb      m7, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "ab7d1c64c9aa9186acb1d988d020e59f2d3defce", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ab7d1c64c9aa9186acb1d988d020e59f2d3defce/libavcodec/x86/h263_loopfilter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:2", "text": "mova         m4, m1\n    punpcklbw    m2, m7\n    punpcklbw    m1, m7\n    psubw        m1, m2\n    psllw        m1, 2\n    paddw        m1, m0\n    pxor         m6, m6\n    pcmpgtw      m6, m1\n    pxor         m1, m6\n    psubw        m1, m6\n    psrlw        m1, 3\n    packuswb     m1, m7\n    packsswb     m6, m7\n    movd         m2, %5\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    psubusb      m2, m1\n    mova         m7, m2\n    psubusb      m7, m1\n    psubb        m2, m7\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m3, m2\n    psubusb      m4, m2\n    pxor         m7, m7\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m2, m2\n    packsswb     m0, m7\n    pcmpgtb      m7, m0\n    pxor         m0, m7\n    psubb        m0, m7\n    mova         m1, m0\n    psubusb      m0, m2\n    psubb        m1, m0\n    pand         m1, [pb_FC]\n    psrlw        m1, 2\n    pxor         m1, m7\n    psubb        m1, m7\n    movq         m6, [%4]\n    psubb        m5, m1\n    paddb        m6, m1\n%endmacro\n\nINIT_XMM sse2\n; void ff_h263_v_loop_filter_sse2(uint8_t *src, int stride, int qscale)\ncglobal h263_v_loop_filter, 3,5,8\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r3, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r3+r2]\n    shl         r2d, 1\n\n    mov          r3, r0\n    sub          r3, r1\n    mov          r4, r3\n    sub          r4, r1\n    H263_LOOP_FILTER r4, r3, r0, r0+r1, r2d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "ab7d1c64c9aa9186acb1d988d020e59f2d3defce", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ab7d1c64c9aa9186acb1d988d020e59f2d3defce/libavcodec/x86/h263_loopfilter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:3", "text": "movq         m6, [%4]\n    psubb        m5, m1\n    paddb        m6, m1\n%endmacro\n\nINIT_XMM sse2\n; void ff_h263_v_loop_filter_sse2(uint8_t *src, int stride, int qscale)\ncglobal h263_v_loop_filter, 3,5,8\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r3, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r3+r2]\n    shl         r2d, 1\n\n    mov          r3, r0\n    sub          r3, r1\n    mov          r4, r3\n    sub          r4, r1\n    H263_LOOP_FILTER r4, r3, r0, r0+r1, r2d\n\n    movq       [r3], m3\n    movq       [r0], m4\n    movq       [r4], m5\n    movq    [r0+r1], m6\n    RET\n\n%macro TRANSPOSE4X4 2\n    movd         %1, [%2]\n    movd         m2, [%2+r1]\n    movd         m3, [%2+r1*2]\n    movd         m4, [%2+r3]\n    punpcklbw    %1, m2\n    punpcklbw    m3, m4\n    punpcklwd    %1, m3\n%endmacro\n\n\n; void ff_h263_h_loop_filter_sse2(uint8_t *src, int stride, int qscale)\nINIT_XMM sse2\ncglobal h263_h_loop_filter, 3,5,8,32\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r4, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r4+r2]\n    shl         r2d, 1\n\n    sub          r0, 2\n    lea          r3, [r1*3]\n    lea          r4, [r0+r1*4]\n\n    TRANSPOSE4X4 m0, r0\n    TRANSPOSE4X4 m1, r4\n    mova         m2, m0\n    punpckldq    m0, m1\n    mova      [rsp], m0\n    punpckhdq    m2, m1\n    mova   [rsp+16], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "ab7d1c64c9aa9186acb1d988d020e59f2d3defce", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ab7d1c64c9aa9186acb1d988d020e59f2d3defce/libavcodec/x86/h263_loopfilter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:4", "text": "cglobal h263_h_loop_filter, 3,5,8,32\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r4, [h263_loop_filter_strength]\n    movzx       r2d, BYTE [r4+r2]\n    shl         r2d, 1\n\n    sub          r0, 2\n    lea          r3, [r1*3]\n    lea          r4, [r0+r1*4]\n\n    TRANSPOSE4X4 m0, r0\n    TRANSPOSE4X4 m1, r4\n    mova         m2, m0\n    punpckldq    m0, m1\n    mova      [rsp], m0\n    punpckhdq    m2, m1\n    mova   [rsp+16], m2\n\n    H263_LOOP_FILTER rsp, rsp+8, rsp+16, rsp+24, r2d\n\n    punpcklbw    m5, m3\n    punpcklbw    m4, m6\n    mova         m0, m5\n    punpcklwd    m5, m4\n    punpckhwd    m0, m4\n    movd       [r0], m5\n    movd       [r4], m0\n    pshufd       m1, m5, 0x1\n    pshufd       m2, m0, 0x1\n    movd  [r0+r1*1], m1\n    movd  [r4+r1*1], m2\n    punpckhdq    m5, m5\n    punpckhdq    m0, m0\n    movd  [r0+r1*2], m5\n    movd  [r4+r1*2], m0\n    punpckhdq    m5, m5\n    punpckhdq    m0, m0\n    movd    [r0+r3], m5\n    movd    [r4+r3], m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "ab7d1c64c9aa9186acb1d988d020e59f2d3defce", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ab7d1c64c9aa9186acb1d988d020e59f2d3defce/libavcodec/x86/h263_loopfilter.asm", "line_start": 121, "line_end": 162}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:1", "text": ";******************************************************************************\n;* MMX-optimized H.263 loop filter\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ncextern pb_FC\ncextern h263_loop_filter_strength\n\nSECTION .text\n\n%macro H263_LOOP_FILTER 5\n    pxor         m7, m7\n    mova         m0, [%1]\n    mova         m1, [%1]\n    mova         m2, [%4]\n    mova         m3, [%4]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    psubw        m0, m2\n    psubw        m1, m3\n    mova         m2, [%2]\n    mova         m3, [%2]\n    mova         m4, [%3]\n    mova         m5, [%3]\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    punpcklbw    m4, m7\n    punpckhbw    m5, m7\n    psubw        m4, m2\n    psubw        m5, m3\n    psllw        m4, 2\n    psllw        m5, 2\n    paddw        m4, m0\n    paddw        m5, m1\n    pxor         m6, m6\n    pcmpgtw      m6, m4\n    pcmpgtw      m7, m5\n    pxor         m4, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h263_loopfilter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:2", "text": "psubw        m0, m2\n    psubw        m1, m3\n    mova         m2, [%2]\n    mova         m3, [%2]\n    mova         m4, [%3]\n    mova         m5, [%3]\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    punpcklbw    m4, m7\n    punpckhbw    m5, m7\n    psubw        m4, m2\n    psubw        m5, m3\n    psllw        m4, 2\n    psllw        m5, 2\n    paddw        m4, m0\n    paddw        m5, m1\n    pxor         m6, m6\n    pcmpgtw      m6, m4\n    pcmpgtw      m7, m5\n    pxor         m4, m6\n    pxor         m5, m7\n    psubw        m4, m6\n    psubw        m5, m7\n    psrlw        m4, 3\n    psrlw        m5, 3\n    packuswb     m4, m5\n    packsswb     m6, m7\n    pxor         m7, m7\n    movd         m2, %5\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    punpcklbw    m2, m2\n    psubusb      m2, m4\n    mova         m3, m2\n    psubusb      m3, m4\n    psubb        m2, m3\n    mova         m3, [%2]\n    mova         m4, [%3]\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m3, m2\n    psubusb      m4, m2\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m2, m2\n    packsswb     m0, m1\n    pcmpgtb      m7, m0\n    pxor         m0, m7\n    psubb        m0, m7\n    mova         m1, m0\n    psubusb      m0, m2\n    psubb        m1, m0\n    pand         m1, [pb_FC]\n    psrlw        m1, 2\n    pxor         m1, m7\n    psubb        m1, m7\n    mova         m5, [%1]\n    mova         m6, [%4]\n    psubb        m5, m1\n    paddb        m6, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h263_loopfilter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:3", "text": "paddusb      m3, m2\n    psubusb      m4, m2\n    pxor         m3, m6\n    pxor         m4, m6\n    paddusb      m2, m2\n    packsswb     m0, m1\n    pcmpgtb      m7, m0\n    pxor         m0, m7\n    psubb        m0, m7\n    mova         m1, m0\n    psubusb      m0, m2\n    psubb        m1, m0\n    pand         m1, [pb_FC]\n    psrlw        m1, 2\n    pxor         m1, m7\n    psubb        m1, m7\n    mova         m5, [%1]\n    mova         m6, [%4]\n    psubb        m5, m1\n    paddb        m6, m1\n%endmacro\n\nINIT_MMX mmx\n; void ff_h263_v_loop_filter_mmx(uint8_t *src, int stride, int qscale)\ncglobal h263_v_loop_filter, 3,5\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r4, [h263_loop_filter_strength]\n    movzx       r3d, BYTE [r4+r2]\n    movsx        r2, r3b\n    shl          r2, 1\n\n    mov          r3, r0\n    sub          r3, r1\n    mov          r4, r3\n    sub          r4, r1\n    H263_LOOP_FILTER r4, r3, r0, r0+r1, r2d\n\n    mova       [r3], m3\n    mova       [r0], m4\n    mova       [r4], m5\n    mova    [r0+r1], m6\n    RET\n\n%macro TRANSPOSE4X4 2\n    movd      m0, [%1]\n    movd      m1, [%1+r1]\n    movd      m2, [%1+r1*2]\n    movd      m3, [%1+r3]\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    mova      m1, m0\n    punpcklwd m0, m2\n    punpckhwd m1, m2\n    movd [%2+ 0], m0\n    punpckhdq m0, m0\n    movd [%2+ 8], m0\n    movd [%2+16], m1\n    punpckhdq m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h263_loopfilter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:4", "text": "mova       [r0], m4\n    mova       [r4], m5\n    mova    [r0+r1], m6\n    RET\n\n%macro TRANSPOSE4X4 2\n    movd      m0, [%1]\n    movd      m1, [%1+r1]\n    movd      m2, [%1+r1*2]\n    movd      m3, [%1+r3]\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    mova      m1, m0\n    punpcklwd m0, m2\n    punpckhwd m1, m2\n    movd [%2+ 0], m0\n    punpckhdq m0, m0\n    movd [%2+ 8], m0\n    movd [%2+16], m1\n    punpckhdq m1, m1\n    movd [%2+24], m1\n%endmacro\n\n\n; void ff_h263_h_loop_filter_mmx(uint8_t *src, int stride, int qscale)\nINIT_MMX mmx\ncglobal h263_h_loop_filter, 3,5,0,32\n    movsxdifnidn r1, r1d\n    movsxdifnidn r2, r2d\n\n    lea          r4, [h263_loop_filter_strength]\n    movzx       r3d, BYTE [r4+r2]\n    movsx        r2, r3b\n    shl          r2, 1\n\n    sub          r0, 2\n    lea          r3, [r1*3]\n\n    TRANSPOSE4X4 r0, rsp\n    lea          r4, [r0+r1*4]\n    TRANSPOSE4X4 r4, rsp+4\n\n    H263_LOOP_FILTER rsp, rsp+8, rsp+16, rsp+24, r2d\n\n    mova         m1, m5\n    mova         m0, m4\n    punpcklbw    m5, m3\n    punpcklbw    m4, m6\n    punpckhbw    m1, m3\n    punpckhbw    m0, m6\n    mova         m3, m5\n    mova         m6, m1\n    punpcklwd    m5, m4\n    punpcklwd    m1, m0\n    punpckhwd    m3, m4\n    punpckhwd    m6, m0\n    movd       [r0], m5\n    punpckhdq    m5, m5\n    movd  [r0+r1*1], m5\n    movd  [r0+r1*2], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h263_loopfilter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h263_loopfilter.asm:5", "text": "TRANSPOSE4X4 r4, rsp+4\n\n    H263_LOOP_FILTER rsp, rsp+8, rsp+16, rsp+24, r2d\n\n    mova         m1, m5\n    mova         m0, m4\n    punpcklbw    m5, m3\n    punpcklbw    m4, m6\n    punpckhbw    m1, m3\n    punpckhbw    m0, m6\n    mova         m3, m5\n    mova         m6, m1\n    punpcklwd    m5, m4\n    punpcklwd    m1, m0\n    punpckhwd    m3, m4\n    punpckhwd    m6, m0\n    movd       [r0], m5\n    punpckhdq    m5, m5\n    movd  [r0+r1*1], m5\n    movd  [r0+r1*2], m3\n    punpckhdq    m3, m3\n    movd    [r0+r3], m3\n    movd       [r4], m1\n    punpckhdq    m1, m1\n    movd  [r4+r1*1], m1\n    movd  [r4+r1*2], m6\n    punpckhdq    m6, m6\n    movd    [r4+r3], m6\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h263_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h263_loopfilter.asm", "line_start": 161, "line_end": 189}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:1", "text": ";******************************************************************************\n;* MMX/SSSE3-optimized functions for H.264 chroma MC\n;* Copyright (c) 2005 Zoltan Hidvegi <hzoli -a- hzoli -d- com>,\n;*               2005-2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"config_components.asm\"\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\ncextern pw_4\ncextern pw_8\npw_28: times 8 dw 28\ncextern pw_32\ncextern pw_64\n\ncextern rv40_bias\n\nSECTION .text\n\n%macro mv0_pixels_mc8 1\n    lea           r4, [r2*2 ]\n.next4rows:\n    movq          m0, [r1   ]\n    movq          m1, [r1+r2]\n    add           r1, r4\n%ifidn %1,avg\n    movq          m2, [r0]\n    movq          m3, [r0+r2]\n    pavgb         m0, m2\n    pavgb         m1, m3\n%endif\n    movq     [r0   ], m0\n    movq     [r0+r2], m1\n    add           r0, r4\n    movq          m0, [r1   ]\n    movq          m1, [r1+r2]\n    add           r1, r4\n%ifidn %1,avg\n    movq          m2, [r0]\n    movq          m3, [r0+r2]\n    pavgb         m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:2", "text": ".next4rows:\n    movq          m0, [r1   ]\n    movq          m1, [r1+r2]\n    add           r1, r4\n%ifidn %1,avg\n    movq          m2, [r0]\n    movq          m3, [r0+r2]\n    pavgb         m0, m2\n    pavgb         m1, m3\n%endif\n    movq     [r0   ], m0\n    movq     [r0+r2], m1\n    add           r0, r4\n    movq          m0, [r1   ]\n    movq          m1, [r1+r2]\n    add           r1, r4\n%ifidn %1,avg\n    movq          m2, [r0]\n    movq          m3, [r0+r2]\n    pavgb         m0, m2\n    pavgb         m1, m3\n%endif\n    movq     [r0   ], m0\n    movq     [r0+r2], m1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc2_mmx_func 2\ncglobal %1_%2_chroma_mc2, 6, 7, 0\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)\n\n    movd          m5, r4d\n    movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    movd          m2, [r1]\n    punpcklbw     m2, m7\n    pshufw        m2, m2, 0x94    ; mm0 = src[0,1,1,2]\n\n.nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    movd          m0, [r1]\n    punpcklbw     m0, m7\n    pshufw        m0, m0, 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:3", "text": "movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    movd          m2, [r1]\n    punpcklbw     m2, m7\n    pshufw        m2, m2, 0x94    ; mm0 = src[0,1,1,2]\n\n.nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    movd          m0, [r1]\n    punpcklbw     m0, m7\n    pshufw        m0, m0, 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow\n    RET\n%endmacro\n\n%define rnd_1d_h264 pw_4\n%define rnd_2d_h264 pw_32\n%define rnd_1d_vc1  pw_3\n%define rnd_2d_vc1  pw_28\n\n%macro NOTHING 2-3\n%endmacro\n%macro DIRECT_AVG 2\n    PAVGB         %1, %2\n%endmacro\n%macro COPY_AVG 3\n    movd          %2, %3\n    PAVGB         %1, %2\n%endmacro\n\n\nINIT_MMX mmxext\n%define CHROMAMC_AVG  NOTHING\n%define CHROMAMC_AVG4 NOTHING\nchroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:4", "text": "%endmacro\n%macro COPY_AVG 3\n    movd          %2, %3\n    PAVGB         %1, %2\n%endmacro\n\n\nINIT_MMX mmxext\n%define CHROMAMC_AVG  NOTHING\n%define CHROMAMC_AVG4 NOTHING\nchroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n..@%1_%2_chroma_mc8_no_filter_ %+ cpuname:\n    mv0_pixels_mc8 %1\n    RET\n\n.at_least_one_non_zero:\n    test         r5d, r5d\n    je .my_is_zero\n    test         r4d, r4d\n    je .mx_is_zero\n\n    ; general case, bilinear\n    movdqa        m5, [rnd_2d_%2]\n..@%1_%2_chroma_mc8_both_nonzero_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    sub           r4, r6\n    mov           r6, 8\n    add           r4, 8           ; x*288+8 = x<<8 | (8-x)\n    sub          r6d, r5d\n    imul          r6, r4          ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movq          m0, [r1  ]\n    movq          m1, [r1+1]\n    pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:5", "text": "sub          r6d, r5d\n    imul          r6, r4          ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movq          m0, [r1  ]\n    movq          m1, [r1+1]\n    pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movdqa        m0, m4\n    psrlw         m3, 6\n%ifidn %1, avg\n    movq          m2, [r0   ]\n    movhps        m2, [r0+r2]\n%endif\n    packuswb      m1, m3\n    CHROMAMC_AVG  m1, m2\n    movq     [r0   ], m1\n    movhps   [r0+r2], m1\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n\n.my_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_my_zero_ %+ cpuname:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:6", "text": "CHROMAMC_AVG  m1, m2\n    movq     [r0   ], m1\n    movhps   [r0+r2], m1\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n\n.my_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_my_zero_ %+ cpuname:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    lea           r1, [r1+r2*2]\n    jg .next2xrows\n    RET\n\n.mx_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:7", "text": "sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    lea           r1, [r1+r2*2]\n    jg .next2xrows\n    RET\n\n.mx_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2yrows\n    RET\n%endmacro\n\n%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7+UNIX64, 8\n    mova          m5, [pw_32]\n..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    movd          m0, [r1]\n    sub          r6d, 8\n    sub          r4d, r6d         ; x << 8 | (8-x)\n    mov          r6d, r5d\n    shl          r5d, 16\n    movd          m1, [r1+1]\n    sub          r6d, 8\n    sub          r5d, r6d         ; y << 16 | (8-y)\n    imul         r4d, r5d         ; xy << 24 | (8-x)y << 16 | x(8-y) << 8 | (8-x)(8-y)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:8", "text": "lea           r0, [r0+r2*2]\n    jg .next2yrows\n    RET\n%endmacro\n\n%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7+UNIX64, 8\n    mova          m5, [pw_32]\n..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    movd          m0, [r1]\n    sub          r6d, 8\n    sub          r4d, r6d         ; x << 8 | (8-x)\n    mov          r6d, r5d\n    shl          r5d, 16\n    movd          m1, [r1+1]\n    sub          r6d, 8\n    sub          r5d, r6d         ; y << 16 | (8-y)\n    imul         r4d, r5d         ; xy << 24 | (8-x)y << 16 | x(8-y) << 8 | (8-x)(8-y)\n    add           r1, r2\n\n    movd          m6, r4d         ; ABCD\n    punpcklwd     m6, m6          ; ABABCDCD\n    pshufd        m7, m6, 0x55    ; CDCDCDCDCDCDCDCD\n    punpcklbw     m0, m1\n    pshufd        m6, m6, 0x0     ; ABABABABABABABAB\n\n.next2rows:\n    movd          m1, [r1]\n    movd          m2, [r1+1]\n    movd          m3, [r1+r2]\n    movd          m4, [r1+r2+1]\n    punpcklbw     m1, m2\n    punpcklqdq    m0, m1\n    pmaddubsw     m0, m6\n    punpcklbw     m3, m4\n    punpcklqdq    m1, m3\n    pmaddubsw     m1, m7\n%ifidn %1, avg\n    movd          m2, [r0]\n    movd          m4, [r0+r2]\n%endif\n    paddw         m0, m5\n    lea           r1, [r1+r2*2]\n    paddw         m0, m1\n    psrlw         m0, 6\n    packuswb      m0, m0\n    pshufd        m1, m0, 0x1\n%ifidn %1, avg\n    pavgb         m0, m2\n    pavgb         m1, m4\n%endif\n    sub          r3d, 2\n    movd        [r0], m0\n    movd     [r0+r2], m1\n    mova          m0, m3\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:9", "text": "movd          m2, [r0]\n    movd          m4, [r0+r2]\n%endif\n    paddw         m0, m5\n    lea           r1, [r1+r2*2]\n    paddw         m0, m1\n    psrlw         m0, 6\n    packuswb      m0, m0\n    pshufd        m1, m0, 0x1\n%ifidn %1, avg\n    pavgb         m0, m2\n    pavgb         m1, m4\n%endif\n    sub          r3d, 2\n    movd        [r0], m0\n    movd     [r0+r2], m1\n    mova          m0, m3\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif\n    mov          r6d, r5d\n    and          r6d, 6         ; &~1 for mx/my=[0,7]\n    lea          r6d, [r6d*4+r4d]\n    sar          r6d, 1\n%if PIC && UNIX64\n    movd          %1, [r7+4*r6]\n%else\n    movd          %1, [rv40_bias+4*r6]\n%endif\n%else  ; PIC && !UNIX64, de facto WIN64\n    lea           r6, [rv40_bias]\n%ifidn r5d, r5m ; always false for currently supported calling conventions\n    push          r5\n%endif\n    and          r5d, 6         ; &~1 for mx/my=[0,7]\n    lea          r5d, [r5d*4+r4d]\n    sar          r5d, 1\n    movd          %1, [r6+4*r5]\n%ifidn r5d, r5m\n    pop           r5\n%else\n    mov          r5d, r5m\n%endif\n%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:10", "text": "push          r5\n%endif\n    and          r5d, 6         ; &~1 for mx/my=[0,7]\n    lea          r5d, [r5d*4+r4d]\n    sar          r5d, 1\n    movd          %1, [r6+4*r5]\n%ifidn r5d, r5m\n    pop           r5\n%else\n    mov          r5d, r5m\n%endif\n%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d\n    je           ..@%1_h264_chroma_mc8_mx_zero_ %+ cpuname\n    jmp          ..@%1_h264_chroma_mc8_both_nonzero_ %+ cpuname\n%endif\n%endmacro\n\n%macro rv40_chroma_mc4_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc4, 6, 7+UNIX64, 8\n    rv40_get_bias m5\n    jmp           ..@%1_h264_chroma_mc4_after_init_ %+ cpuname\n%endif\n%endmacro\n\nINIT_XMM ssse3\n%define CHROMAMC_AVG NOTHING\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nrv40_chroma_mc8_func put\nchroma_mc4_ssse3_func put, h264\nrv40_chroma_mc4_func put\n\n%define CHROMAMC_AVG DIRECT_AVG\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nrv40_chroma_mc8_func avg\nchroma_mc4_ssse3_func avg, h264\nrv40_chroma_mc4_func avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 361, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:11", "text": "INIT_XMM ssse3\n%define CHROMAMC_AVG NOTHING\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nrv40_chroma_mc8_func put\nchroma_mc4_ssse3_func put, h264\nrv40_chroma_mc4_func put\n\n%define CHROMAMC_AVG DIRECT_AVG\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nrv40_chroma_mc8_func avg\nchroma_mc4_ssse3_func avg, h264\nrv40_chroma_mc4_func avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc.asm", "line_start": 401, "line_end": 415}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:1", "text": ";******************************************************************************\n;* MMX/SSSE3-optimized functions for H.264 chroma MC\n;* Copyright (c) 2005 Zoltan Hidvegi <hzoli -a- hzoli -d- com>,\n;*               2005-2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"config_components.asm\"\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\ncextern pw_4\ncextern pw_8\npw_28: times 8 dw 28\ncextern pw_32\ncextern pw_64\n\ncextern rv40_bias\n\nSECTION .text\n\n%macro mv0_pixels_mc8 0\n    lea           r4, [r2*2 ]\n.next4rows:\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:2", "text": ".next4rows:\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc2_mmx_func 2\ncglobal %1_%2_chroma_mc2, 6, 7, 0\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)\n\n    movd          m5, r4d\n    movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    movd          m2, [r1]\n    punpcklbw     m2, m7\n    pshufw        m2, m2, 0x94    ; mm0 = src[0,1,1,2]\n\n.nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    movd          m0, [r1]\n    punpcklbw     m0, m7\n    pshufw        m0, m0, 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:3", "text": ".nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    movd          m0, [r1]\n    punpcklbw     m0, m7\n    pshufw        m0, m0, 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow\n    RET\n%endmacro\n\n%define rnd_1d_h264 pw_4\n%define rnd_2d_h264 pw_32\n%define rnd_1d_vc1  pw_3\n%define rnd_2d_vc1  pw_28\n\n%macro NOTHING 2-3\n%endmacro\n%macro DIRECT_AVG 2\n    PAVGB         %1, %2\n%endmacro\n%macro COPY_AVG 3\n    movd          %2, %3\n    PAVGB         %1, %2\n%endmacro\n\n\nINIT_MMX mmxext\n%define CHROMAMC_AVG  NOTHING\n%define CHROMAMC_AVG4 NOTHING\nchroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n..@%1_%2_chroma_mc8_no_filter_ %+ cpuname:\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n    test         r5d, r5d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:4", "text": "%define CHROMAMC_AVG  NOTHING\n%define CHROMAMC_AVG4 NOTHING\nchroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n..@%1_%2_chroma_mc8_no_filter_ %+ cpuname:\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n    test         r5d, r5d\n    je .my_is_zero\n    test         r4d, r4d\n    je .mx_is_zero\n\n    ; general case, bilinear\n    movdqa        m5, [rnd_2d_%2]\n..@%1_%2_chroma_mc8_both_nonzero_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    sub           r4, r6\n    mov           r6, 8\n    add           r4, 8           ; x*288+8 = x<<8 | (8-x)\n    sub          r6d, r5d\n    imul          r6, r4          ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movq          m0, [r1  ]\n    movq          m1, [r1+1]\n    pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:5", "text": "pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movdqa        m0, m4\n    psrlw         m3, 6\n%ifidn %1, avg\n    movq          m2, [r0   ]\n    movhps        m2, [r0+r2]\n%endif\n    packuswb      m1, m3\n    CHROMAMC_AVG  m1, m2\n    movq     [r0   ], m1\n    movhps   [r0+r2], m1\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n\n.my_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_my_zero_ %+ cpuname:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:6", "text": ".my_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_my_zero_ %+ cpuname:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    lea           r1, [r1+r2*2]\n    jg .next2xrows\n    RET\n\n.mx_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:7", "text": "..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2yrows\n    RET\n%endmacro\n\n%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7+UNIX64, 8\n    mova          m5, [pw_32]\n..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    movd          m0, [r1]\n    sub          r6d, 8\n    sub          r4d, r6d         ; x << 8 | (8-x)\n    mov          r6d, r5d\n    shl          r5d, 16\n    movd          m1, [r1+1]\n    sub          r6d, 8\n    sub          r5d, r6d         ; y << 16 | (8-y)\n    imul         r4d, r5d         ; xy << 24 | (8-x)y << 16 | x(8-y) << 8 | (8-x)(8-y)\n    add           r1, r2\n\n    movd          m6, r4d         ; ABCD\n    punpcklwd     m6, m6          ; ABABCDCD\n    pshufd        m7, m6, 0x55    ; CDCDCDCDCDCDCDCD\n    punpcklbw     m0, m1\n    pshufd        m6, m6, 0x0     ; ABABABABABABABAB", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:8", "text": "..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    movd          m0, [r1]\n    sub          r6d, 8\n    sub          r4d, r6d         ; x << 8 | (8-x)\n    mov          r6d, r5d\n    shl          r5d, 16\n    movd          m1, [r1+1]\n    sub          r6d, 8\n    sub          r5d, r6d         ; y << 16 | (8-y)\n    imul         r4d, r5d         ; xy << 24 | (8-x)y << 16 | x(8-y) << 8 | (8-x)(8-y)\n    add           r1, r2\n\n    movd          m6, r4d         ; ABCD\n    punpcklwd     m6, m6          ; ABABCDCD\n    pshufd        m7, m6, 0x55    ; CDCDCDCDCDCDCDCD\n    punpcklbw     m0, m1\n    pshufd        m6, m6, 0x0     ; ABABABABABABABAB\n\n.next2rows:\n    movd          m1, [r1]\n    movd          m2, [r1+1]\n    movd          m3, [r1+r2]\n    movd          m4, [r1+r2+1]\n    punpcklbw     m1, m2\n    punpcklqdq    m0, m1\n    pmaddubsw     m0, m6\n    punpcklbw     m3, m4\n    punpcklqdq    m1, m3\n    pmaddubsw     m1, m7\n%ifidn %1, avg\n    movd          m2, [r0]\n    movd          m4, [r0+r2]\n%endif\n    paddw         m0, m5\n    lea           r1, [r1+r2*2]\n    paddw         m0, m1\n    psrlw         m0, 6\n    packuswb      m0, m0\n    pshufd        m1, m0, 0x1\n%ifidn %1, avg\n    pavgb         m0, m2\n    pavgb         m1, m4\n%endif\n    sub          r3d, 2\n    movd        [r0], m0\n    movd     [r0+r2], m1\n    mova          m0, m3\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:9", "text": "pshufd        m1, m0, 0x1\n%ifidn %1, avg\n    pavgb         m0, m2\n    pavgb         m1, m4\n%endif\n    sub          r3d, 2\n    movd        [r0], m0\n    movd     [r0+r2], m1\n    mova          m0, m3\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif\n    mov          r6d, r5d\n    and          r6d, 6         ; &~1 for mx/my=[0,7]\n    lea          r6d, [r6d*4+r4d]\n    sar          r6d, 1\n%if PIC && UNIX64\n    movd          %1, [r7+4*r6]\n%else\n    movd          %1, [rv40_bias+4*r6]\n%endif\n%else  ; PIC && !UNIX64, de facto WIN64\n    lea           r6, [rv40_bias]\n%ifidn r5d, r5m ; always false for currently supported calling conventions\n    push          r5\n%endif\n    and          r5d, 6         ; &~1 for mx/my=[0,7]\n    lea          r5d, [r5d*4+r4d]\n    sar          r5d, 1\n    movd          %1, [r6+4*r5]\n%ifidn r5d, r5m\n    pop           r5\n%else\n    mov          r5d, r5m\n%endif\n%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:10", "text": "%else\n    mov          r5d, r5m\n%endif\n%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d\n    je           ..@%1_h264_chroma_mc8_mx_zero_ %+ cpuname\n    jmp          ..@%1_h264_chroma_mc8_both_nonzero_ %+ cpuname\n%endif\n%endmacro\n\n%macro rv40_chroma_mc4_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc4, 6, 7+UNIX64, 8\n    rv40_get_bias m5\n    jmp           ..@%1_h264_chroma_mc4_after_init_ %+ cpuname\n%endif\n%endmacro\n\nINIT_XMM ssse3\n%define CHROMAMC_AVG NOTHING\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nrv40_chroma_mc8_func put\nchroma_mc4_ssse3_func put, h264\nrv40_chroma_mc4_func put\n\n%define CHROMAMC_AVG DIRECT_AVG\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nrv40_chroma_mc8_func avg\nchroma_mc4_ssse3_func avg, h264\nrv40_chroma_mc4_func avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "79080a547a39b0257bec081f72963b8f51e94416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79080a547a39b0257bec081f72963b8f51e94416/libavcodec/x86/h264_chromamc.asm", "line_start": 361, "line_end": 407}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:7", "text": "..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2yrows\n    RET\n%endmacro\n\n%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7+UNIX64, 0\n    movq          m5, [pw_32]\n..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov           r6, r4\n    shl          r4d, 8\n    sub          r4d, r6d\n    mov           r6, 8\n    add          r4d, 8           ; x*288+8\n    sub          r6d, r5d\n    imul         r6d, r4d         ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movd          m0, [r1  ]\n    pshufw        m7, m7, 0\n    punpcklbw     m0, [r1+1]\n    pshufw        m6, m6, 0\n\n.next2rows:\n    movd          m1, [r1+r2*1  ]\n    movd          m3, [r1+r2*2  ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83/libavcodec/x86/h264_chromamc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:8", "text": "..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov           r6, r4\n    shl          r4d, 8\n    sub          r4d, r6d\n    mov           r6, 8\n    add          r4d, 8           ; x*288+8\n    sub          r6d, r5d\n    imul         r6d, r4d         ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movd          m0, [r1  ]\n    pshufw        m7, m7, 0\n    punpcklbw     m0, [r1+1]\n    pshufw        m6, m6, 0\n\n.next2rows:\n    movd          m1, [r1+r2*1  ]\n    movd          m3, [r1+r2*2  ]\n    punpcklbw     m1, [r1+r2*1+1]\n    punpcklbw     m3, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    movq          m2, m1\n    movq          m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movq          m0, m4\n    psrlw         m3, 6\n    packuswb      m1, m1\n    packuswb      m3, m3\n    CHROMAMC_AVG  m1, [r0  ]\n    CHROMAMC_AVG  m3, [r0+r2]\n    movd     [r0   ], m1\n    movd     [r0+r2], m3\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif\n    mov          r6d, r5d\n    and          r6d, 6         ; &~1 for mx/my=[0,7]\n    lea          r6d, [r6d*4+r4d]\n    sar          r6d, 1\n%if PIC && UNIX64\n    movd          %1, [r7+4*r6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83/libavcodec/x86/h264_chromamc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:9", "text": "movd     [r0   ], m1\n    movd     [r0+r2], m3\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif\n    mov          r6d, r5d\n    and          r6d, 6         ; &~1 for mx/my=[0,7]\n    lea          r6d, [r6d*4+r4d]\n    sar          r6d, 1\n%if PIC && UNIX64\n    movd          %1, [r7+4*r6]\n%else\n    movd          %1, [rv40_bias+4*r6]\n%endif\n%else  ; PIC && !UNIX64, de facto WIN64\n    lea           r6, [rv40_bias]\n%ifidn r5d, r5m ; always false for currently supported calling conventions\n    push          r5\n%endif\n    and          r5d, 6         ; &~1 for mx/my=[0,7]\n    lea          r5d, [r5d*4+r4d]\n    sar          r5d, 1\n    movd          %1, [r6+4*r5]\n%ifidn r5d, r5m\n    pop           r5\n%else\n    mov          r5d, r5m\n%endif\n%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d\n    je           ..@%1_h264_chroma_mc8_mx_zero_ %+ cpuname\n    jmp          ..@%1_h264_chroma_mc8_both_nonzero_ %+ cpuname\n%endif\n%endmacro\n\n%macro rv40_chroma_mc4_func 1 ; put vs avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83/libavcodec/x86/h264_chromamc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:10", "text": "%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d\n    je           ..@%1_h264_chroma_mc8_mx_zero_ %+ cpuname\n    jmp          ..@%1_h264_chroma_mc8_both_nonzero_ %+ cpuname\n%endif\n%endmacro\n\n%macro rv40_chroma_mc4_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc4, 6, 7+UNIX64, 0\n    rv40_get_bias m5\n    jmp           ..@%1_h264_chroma_mc4_after_init_ %+ cpuname\n%endif\n%endmacro\n\n%define CHROMAMC_AVG NOTHING\nINIT_XMM ssse3\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nrv40_chroma_mc8_func put\nINIT_MMX ssse3\nchroma_mc4_ssse3_func put, h264\nrv40_chroma_mc4_func put\n\n%define CHROMAMC_AVG DIRECT_AVG\nINIT_XMM ssse3\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nrv40_chroma_mc8_func avg\nINIT_MMX ssse3\nchroma_mc4_ssse3_func avg, h264\nrv40_chroma_mc4_func avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b45cf22184bd2a94ac7b7fdea8eb8f1620d83/libavcodec/x86/h264_chromamc.asm", "line_start": 361, "line_end": 404}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:1", "text": ";******************************************************************************\n;* MMX/SSSE3-optimized functions for H.264 chroma MC\n;* Copyright (c) 2005 Zoltan Hidvegi <hzoli -a- hzoli -d- com>,\n;*               2005-2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"config_components.asm\"\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nrnd_rv40_2d_tbl: times 4 dw  0\n                 times 4 dw 16\n                 times 4 dw 32\n                 times 4 dw 16\n                 times 4 dw 32\n                 times 4 dw 28\n                 times 4 dw 32\n                 times 4 dw 28\n                 times 4 dw  0\n                 times 4 dw 32\n                 times 4 dw 16\n                 times 4 dw 32\n                 times 4 dw 32\n                 times 4 dw 28\n                 times 4 dw 32\n                 times 4 dw 28\nrnd_rv40_1d_tbl: times 4 dw  0\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  0\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:2", "text": "times 4 dw 28\n                 times 4 dw 32\n                 times 4 dw 28\nrnd_rv40_1d_tbl: times 4 dw  0\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  0\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n\ncextern pw_3\ncextern pw_4\ncextern pw_8\npw_28: times 8 dw 28\ncextern pw_32\ncextern pw_64\n\ncextern rv40_bias\n\nSECTION .text\n\n%macro mv0_pixels_mc8 0\n    lea           r4, [r2*2 ]\n.next4rows:\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc8_mmx_func 2-3\n%ifidn %2, rv40\n%if PIC\n%define rnd_1d_rv40 r8\n%define rnd_2d_rv40 r8\n%define extra_regs 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:3", "text": "movq     [r0+r2], mm1\n    add           r0, r4\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc8_mmx_func 2-3\n%ifidn %2, rv40\n%if PIC\n%define rnd_1d_rv40 r8\n%define rnd_2d_rv40 r8\n%define extra_regs 2\n%else ; no-PIC\n%define rnd_1d_rv40 rnd_rv40_1d_tbl\n%define rnd_2d_rv40 rnd_rv40_2d_tbl\n%define extra_regs 1\n%endif ; PIC\n%else\n%define extra_regs 0\n%endif ; rv40\n; void ff_put/avg_h264_chroma_mc8_*(uint8_t *dst /* align 8 */,\n;                                   const uint8_t *src /* align 1 */,\n;                                   ptrdiff_t stride, int h, int mx, int my)\ncglobal %1_%2_chroma_mc8%3, 6, 7 + extra_regs, 0\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n%ifidn %2, rv40\n%if ARCH_X86_64\n    mov           r7, r5\n    and           r7, 6         ; &~1 for mx/my=[0,7]\n    lea           r7, [r7*4+r4]\n    sar          r7d, 1\n%define rnd_bias r7\n%define dest_reg r0\n%else ; x86-32\n    mov           r0, r5\n    and           r0, 6         ; &~1 for mx/my=[0,7]\n    lea           r0, [r0*4+r4]\n    sar          r0d, 1\n%define rnd_bias r0\n%define dest_reg r5\n%endif\n%else ; vc1, h264\n%define rnd_bias  0\n%define dest_reg r0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:4", "text": "%ifidn %2, rv40\n%if ARCH_X86_64\n    mov           r7, r5\n    and           r7, 6         ; &~1 for mx/my=[0,7]\n    lea           r7, [r7*4+r4]\n    sar          r7d, 1\n%define rnd_bias r7\n%define dest_reg r0\n%else ; x86-32\n    mov           r0, r5\n    and           r0, 6         ; &~1 for mx/my=[0,7]\n    lea           r0, [r0*4+r4]\n    sar          r0d, 1\n%define rnd_bias r0\n%define dest_reg r5\n%endif\n%else ; vc1, h264\n%define rnd_bias  0\n%define dest_reg r0\n%endif\n\n    test         r5d, r5d\n    mov           r6, 1\n    je .my_is_zero\n    test         r4d, r4d\n    mov           r6, r2        ; dxy = x ? 1 : stride\n    jne .both_non_zero\n.my_is_zero:\n    ; mx == 0 XOR my == 0 - 1 dimensional filter only\n    or           r4d, r5d       ; x + y\n\n%ifidn %2, rv40\n%if PIC\n    lea           r8, [rnd_rv40_1d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n\n    movd          m5, r4d\n    movq          m4, [pw_8]\n    movq          m6, [rnd_1d_%2+rnd_bias*8] ; mm6 = rnd >> 3\n    punpcklwd     m5, m5\n    punpckldq     m5, m5        ; mm5 = B = x\n    pxor          m7, m7\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movq          m0, [r1   ]   ; mm0 = src[0..7]\n    movq          m2, [r1+r6]   ; mm1 = src[1..8]\n\n    movq          m1, m0\n    movq          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, m4        ; [mm0,mm1] = A * src[0..7]\n    pmullw        m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:5", "text": "movd          m5, r4d\n    movq          m4, [pw_8]\n    movq          m6, [rnd_1d_%2+rnd_bias*8] ; mm6 = rnd >> 3\n    punpcklwd     m5, m5\n    punpckldq     m5, m5        ; mm5 = B = x\n    pxor          m7, m7\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movq          m0, [r1   ]   ; mm0 = src[0..7]\n    movq          m2, [r1+r6]   ; mm1 = src[1..8]\n\n    movq          m1, m0\n    movq          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, m4        ; [mm0,mm1] = A * src[0..7]\n    pmullw        m1, m4\n    pmullw        m2, m5        ; [mm2,mm3] = B * src[1..8]\n    pmullw        m3, m5\n\n    paddw         m0, m6\n    paddw         m1, m6\n    paddw         m0, m2\n    paddw         m1, m3\n    psrlw         m0, 3\n    psrlw         m1, 3\n    packuswb      m0, m1\n    CHROMAMC_AVG  m0, [dest_reg]\n    movq  [dest_reg], m0        ; dst[0..7] = (A * src[0..7] + B * src[1..8] + (rnd >> 3)) >> 3\n\n    add     dest_reg, r2\n    add           r1, r2\n    dec           r3d\n    jne .next1drow\n    RET\n\n.both_non_zero: ; general case, bilinear\n    movd          m4, r4d         ; x\n    movd          m6, r5d         ; y\n%ifidn %2, rv40\n%if PIC\n    lea           r8, [rnd_rv40_2d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n    mov           r6, rsp         ; backup stack pointer\n    and          rsp, ~(mmsize-1) ; align stack\n    sub          rsp, 16          ; AA and DD\n\n    punpcklwd     m4, m4\n    punpcklwd     m6, m6\n    punpckldq     m4, m4          ; mm4 = x words\n    punpckldq     m6, m6          ; mm6 = y words\n    movq          m5, m4\n    pmullw        m4, m6          ; mm4 = x * y", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:6", "text": "movd          m4, r4d         ; x\n    movd          m6, r5d         ; y\n%ifidn %2, rv40\n%if PIC\n    lea           r8, [rnd_rv40_2d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n    mov           r6, rsp         ; backup stack pointer\n    and          rsp, ~(mmsize-1) ; align stack\n    sub          rsp, 16          ; AA and DD\n\n    punpcklwd     m4, m4\n    punpcklwd     m6, m6\n    punpckldq     m4, m4          ; mm4 = x words\n    punpckldq     m6, m6          ; mm6 = y words\n    movq          m5, m4\n    pmullw        m4, m6          ; mm4 = x * y\n    psllw         m5, 3\n    psllw         m6, 3\n    movq          m7, m5\n    paddw         m7, m6\n    movq     [rsp+8], m4          ; DD = x * y\n    psubw         m5, m4          ; mm5 = B = 8x - xy\n    psubw         m6, m4          ; mm6 = C = 8y - xy\n    paddw         m4, [pw_64]\n    psubw         m4, m7          ; mm4 = A = xy - (8x+8y) + 64\n    pxor          m7, m7\n    movq     [rsp  ], m4\n\n    movq          m0, [r1  ]      ; mm0 = src[0..7]\n    movq          m1, [r1+1]      ; mm1 = src[1..8]\n.next2drow:\n    add           r1, r2\n\n    movq          m2, m0\n    movq          m3, m1\n    punpckhbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, [rsp]\n    pmullw        m2, [rsp]\n    pmullw        m1, m5\n    pmullw        m3, m5\n    paddw         m2, m1          ; mm2 = A * src[0..3] + B * src[1..4]\n    paddw         m3, m0          ; mm3 = A * src[4..7] + B * src[5..8]\n\n    movq          m0, [r1]\n    movq          m1, m0\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    pmullw        m0, m6\n    pmullw        m1, m6\n    paddw         m2, m0\n    paddw         m3, m1          ; [mm2,mm3] += C * src[0..7]\n\n    movq          m1, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:7", "text": "punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, [rsp]\n    pmullw        m2, [rsp]\n    pmullw        m1, m5\n    pmullw        m3, m5\n    paddw         m2, m1          ; mm2 = A * src[0..3] + B * src[1..4]\n    paddw         m3, m0          ; mm3 = A * src[4..7] + B * src[5..8]\n\n    movq          m0, [r1]\n    movq          m1, m0\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    pmullw        m0, m6\n    pmullw        m1, m6\n    paddw         m2, m0\n    paddw         m3, m1          ; [mm2,mm3] += C * src[0..7]\n\n    movq          m1, [r1+1]\n    movq          m0, m1\n    movq          m4, m1\n    punpcklbw     m0, m7\n    punpckhbw     m4, m7\n    pmullw        m0, [rsp+8]\n    pmullw        m4, [rsp+8]\n    paddw         m2, m0\n    paddw         m3, m4          ; [mm2,mm3] += D * src[1..8]\n    movq          m0, [r1]\n\n    paddw         m2, [rnd_2d_%2+rnd_bias*8]\n    paddw         m3, [rnd_2d_%2+rnd_bias*8]\n    psrlw         m2, 6\n    psrlw         m3, 6\n    packuswb      m2, m3\n    CHROMAMC_AVG  m2, [dest_reg]\n    movq  [dest_reg], m2          ; dst[0..7] = ([mm2,mm3] + rnd) >> 6\n\n    add     dest_reg, r2\n    dec          r3d\n    jne .next2drow\n    mov          rsp, r6          ; restore stack pointer\n    RET\n%endmacro\n\n%macro chroma_mc4_mmx_func 2\n%define extra_regs 0\n%ifidn %2, rv40\n%if PIC\n%define extra_regs 1\n%endif ; PIC\n%endif ; rv40\ncglobal %1_%2_chroma_mc4, 6, 6 + extra_regs, 0\n    pxor          m7, m7\n    movd          m2, r4d         ; x\n    movd          m3, r5d         ; y\n    movq          m4, [pw_8]\n    movq          m5, [pw_8]\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:8", "text": "jne .next2drow\n    mov          rsp, r6          ; restore stack pointer\n    RET\n%endmacro\n\n%macro chroma_mc4_mmx_func 2\n%define extra_regs 0\n%ifidn %2, rv40\n%if PIC\n%define extra_regs 1\n%endif ; PIC\n%endif ; rv40\ncglobal %1_%2_chroma_mc4, 6, 6 + extra_regs, 0\n    pxor          m7, m7\n    movd          m2, r4d         ; x\n    movd          m3, r5d         ; y\n    movq          m4, [pw_8]\n    movq          m5, [pw_8]\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    psubw         m4, m2\n    psubw         m5, m3\n\n%ifidn %2, rv40\n%if PIC\n   lea            r6, [rnd_rv40_2d_tbl]\n%define rnd_2d_rv40 r6\n%else\n%define rnd_2d_rv40 rnd_rv40_2d_tbl\n%endif\n    and           r5, 6         ; &~1 for mx/my=[0,7]\n    lea           r5, [r5*4+r4]\n    sar          r5d, 1\n%define rnd_bias r5\n%else ; vc1, h264\n%define rnd_bias 0\n%endif\n\n    movd          m0, [r1  ]\n    movd          m6, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m6, m7\n    pmullw        m0, m4\n    pmullw        m6, m2\n    paddw         m6, m0\n\n.next2rows:\n    movd          m0, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4\n    pmullw        m1, m2\n    paddw         m1, m0\n    movq          m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:9", "text": "movd          m0, [r1  ]\n    movd          m6, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m6, m7\n    pmullw        m0, m4\n    pmullw        m6, m2\n    paddw         m6, m0\n\n.next2rows:\n    movd          m0, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4\n    pmullw        m1, m2\n    paddw         m1, m0\n    movq          m0, m1\n\n    pmullw        m6, m5\n    pmullw        m1, m3\n    paddw         m6, [rnd_2d_%2+rnd_bias*8]\n    paddw         m1, m6\n    psrlw         m1, 6\n    packuswb      m1, m1\n    CHROMAMC_AVG4 m1, m6, [r0]\n    movd        [r0], m1\n    add           r0, r2\n\n    movd          m6, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m6, m7\n    punpcklbw     m1, m7\n    pmullw        m6, m4\n    pmullw        m1, m2\n    paddw         m1, m6\n    movq          m6, m1\n    pmullw        m0, m5\n    pmullw        m1, m3\n    paddw         m0, [rnd_2d_%2+rnd_bias*8]\n    paddw         m1, m0\n    psrlw         m1, 6\n    packuswb      m1, m1\n    CHROMAMC_AVG4 m1, m0, [r0]\n    movd        [r0], m1\n    add           r0, r2\n    sub          r3d, 2\n    jnz .next2rows\n    RET\n%endmacro\n\n%macro chroma_mc2_mmx_func 2\ncglobal %1_%2_chroma_mc2, 6, 7, 0\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:10", "text": "pmullw        m1, m3\n    paddw         m0, [rnd_2d_%2+rnd_bias*8]\n    paddw         m1, m0\n    psrlw         m1, 6\n    packuswb      m1, m1\n    CHROMAMC_AVG4 m1, m0, [r0]\n    movd        [r0], m1\n    add           r0, r2\n    sub          r3d, 2\n    jnz .next2rows\n    RET\n%endmacro\n\n%macro chroma_mc2_mmx_func 2\ncglobal %1_%2_chroma_mc2, 6, 7, 0\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)\n\n    movd          m5, r4d\n    movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    movd          m2, [r1]\n    punpcklbw     m2, m7\n    pshufw        m2, m2, 0x94    ; mm0 = src[0,1,1,2]\n\n.nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    movd          m0, [r1]\n    punpcklbw     m0, m7\n    pshufw        m0, m0, 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow\n    RET\n%endmacro\n\n%define rnd_1d_h264 pw_4\n%define rnd_2d_h264 pw_32\n%define rnd_1d_vc1  pw_3\n%define rnd_2d_vc1  pw_28", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:11", "text": "pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow\n    RET\n%endmacro\n\n%define rnd_1d_h264 pw_4\n%define rnd_2d_h264 pw_32\n%define rnd_1d_vc1  pw_3\n%define rnd_2d_vc1  pw_28\n\n%macro NOTHING 2-3\n%endmacro\n%macro DIRECT_AVG 2\n    PAVGB         %1, %2\n%endmacro\n%macro COPY_AVG 3\n    movd          %2, %3\n    PAVGB         %1, %2\n%endmacro\n\nINIT_MMX mmx\n%define CHROMAMC_AVG  NOTHING\n%define CHROMAMC_AVG4 NOTHING\nchroma_mc8_mmx_func put, h264, _rnd\nchroma_mc8_mmx_func put, vc1,  _nornd\nchroma_mc8_mmx_func put, rv40\nchroma_mc4_mmx_func put, h264\nchroma_mc4_mmx_func put, rv40\n\nINIT_MMX mmxext\nchroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc8_mmx_func avg, h264, _rnd\nchroma_mc8_mmx_func avg, vc1,  _nornd\nchroma_mc8_mmx_func avg, rv40\nchroma_mc4_mmx_func avg, h264\nchroma_mc4_mmx_func avg, rv40\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n..@%1_%2_chroma_mc8_no_filter_ %+ cpuname:\n    mv0_pixels_mc8\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:12", "text": "chroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc8_mmx_func avg, h264, _rnd\nchroma_mc8_mmx_func avg, vc1,  _nornd\nchroma_mc8_mmx_func avg, rv40\nchroma_mc4_mmx_func avg, h264\nchroma_mc4_mmx_func avg, rv40\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n..@%1_%2_chroma_mc8_no_filter_ %+ cpuname:\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n    test         r5d, r5d\n    je .my_is_zero\n    test         r4d, r4d\n    je .mx_is_zero\n\n    ; general case, bilinear\n    movdqa        m5, [rnd_2d_%2]\n..@%1_%2_chroma_mc8_both_nonzero_ %+ cpuname:\n    mov          r6d, r4d\n    shl          r4d, 8\n    sub           r4, r6\n    mov           r6, 8\n    add           r4, 8           ; x*288+8 = x<<8 | (8-x)\n    sub          r6d, r5d\n    imul          r6, r4          ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movq          m0, [r1  ]\n    movq          m1, [r1+1]\n    pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:13", "text": "movd          m6, r4d\n    movq          m0, [r1  ]\n    movq          m1, [r1+1]\n    pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movdqa        m0, m4\n    psrlw         m3, 6\n%ifidn %1, avg\n    movq          m2, [r0   ]\n    movhps        m2, [r0+r2]\n%endif\n    packuswb      m1, m3\n    CHROMAMC_AVG  m1, m2\n    movq     [r0   ], m1\n    movhps   [r0+r2], m1\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n\n.my_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_my_zero_ %+ cpuname:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:14", "text": "jg .next2rows\n    RET\n\n.my_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_my_zero_ %+ cpuname:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    lea           r1, [r1+r2*2]\n    jg .next2xrows\n    RET\n\n.mx_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:15", "text": ".mx_is_zero:\n    movdqa        m6, [rnd_1d_%2]\n..@%1_%2_chroma_mc8_mx_zero_ %+ cpuname:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2yrows\n    RET\n%endmacro\n\n%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7+UNIX64, 0\n    movq          m5, [pw_32]\n..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov           r6, r4\n    shl          r4d, 8\n    sub          r4d, r6d\n    mov           r6, 8\n    add          r4d, 8           ; x*288+8\n    sub          r6d, r5d\n    imul         r6d, r4d         ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movd          m0, [r1  ]\n    pshufw        m7, m7, 0\n    punpcklbw     m0, [r1+1]\n    pshufw        m6, m6, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:16", "text": "%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7+UNIX64, 0\n    movq          m5, [pw_32]\n..@%1_%2_chroma_mc4_after_init_ %+ cpuname:\n    mov           r6, r4\n    shl          r4d, 8\n    sub          r4d, r6d\n    mov           r6, 8\n    add          r4d, 8           ; x*288+8\n    sub          r6d, r5d\n    imul         r6d, r4d         ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movd          m0, [r1  ]\n    pshufw        m7, m7, 0\n    punpcklbw     m0, [r1+1]\n    pshufw        m6, m6, 0\n\n.next2rows:\n    movd          m1, [r1+r2*1  ]\n    movd          m3, [r1+r2*2  ]\n    punpcklbw     m1, [r1+r2*1+1]\n    punpcklbw     m3, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    movq          m2, m1\n    movq          m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movq          m0, m4\n    psrlw         m3, 6\n    packuswb      m1, m1\n    packuswb      m3, m3\n    CHROMAMC_AVG  m1, [r0  ]\n    CHROMAMC_AVG  m3, [r0+r2]\n    movd     [r0   ], m1\n    movd     [r0+r2], m3\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif\n    mov          r6d, r5d\n    and          r6d, 6         ; &~1 for mx/my=[0,7]\n    lea          r6d, [r6d*4+r4d]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:17", "text": "packuswb      m3, m3\n    CHROMAMC_AVG  m1, [r0  ]\n    CHROMAMC_AVG  m3, [r0+r2]\n    movd     [r0   ], m1\n    movd     [r0+r2], m3\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%macro rv40_get_bias 1 ; dst reg\n%if !PIC || UNIX64\n    ; on UNIX64 we have enough volatile registers\n%if PIC && UNIX64\n    lea           r7, [rv40_bias]\n%endif\n    mov          r6d, r5d\n    and          r6d, 6         ; &~1 for mx/my=[0,7]\n    lea          r6d, [r6d*4+r4d]\n    sar          r6d, 1\n%if PIC && UNIX64\n    movd          %1, [r7+4*r6]\n%else\n    movd          %1, [rv40_bias+4*r6]\n%endif\n%else  ; PIC && !UNIX64, de facto WIN64\n    lea           r6, [rv40_bias]\n%ifidn r5d, r5m ; always false for currently supported calling conventions\n    push          r5\n%endif\n    and          r5d, 6         ; &~1 for mx/my=[0,7]\n    lea          r5d, [r5d*4+r4d]\n    sar          r5d, 1\n    movd          %1, [r6+4*r5]\n%ifidn r5d, r5m\n    pop           r5\n%else\n    mov          r5d, r5m\n%endif\n%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d\n    je           ..@%1_h264_chroma_mc8_mx_zero_ %+ cpuname\n    jmp          ..@%1_h264_chroma_mc8_both_nonzero_ %+ cpuname\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:18", "text": "%endif\n    SPLATW        %1, %1\n%endmacro\n\n%macro rv40_chroma_mc8_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc8, 6, 7+UNIX64, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jz           ..@%1_h264_chroma_mc8_no_filter_ %+ cpuname\n    rv40_get_bias m5\n    ; the bilinear code expects bias in m5, the one-dimensional code in m6\n    mova          m6, m5\n    psraw         m6, 3\n    test         r5d, r5d\n    je           ..@%1_h264_chroma_mc8_my_zero_ %+ cpuname\n    test         r4d, r4d\n    je           ..@%1_h264_chroma_mc8_mx_zero_ %+ cpuname\n    jmp          ..@%1_h264_chroma_mc8_both_nonzero_ %+ cpuname\n%endif\n%endmacro\n\n%macro rv40_chroma_mc4_func 1 ; put vs avg\n%if CONFIG_RV40_DECODER\n    cglobal rv40_%1_chroma_mc4, 6, 7+UNIX64, 0\n    rv40_get_bias m5\n    jmp           ..@%1_h264_chroma_mc4_after_init_ %+ cpuname\n%endif\n%endmacro\n\n%define CHROMAMC_AVG NOTHING\nINIT_XMM ssse3\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nrv40_chroma_mc8_func put\nINIT_MMX ssse3\nchroma_mc4_ssse3_func put, h264\nrv40_chroma_mc4_func put\n\n%define CHROMAMC_AVG DIRECT_AVG\nINIT_XMM ssse3\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nrv40_chroma_mc8_func avg\nINIT_MMX ssse3\nchroma_mc4_ssse3_func avg, h264\nrv40_chroma_mc4_func avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb054ee89bcb9e4a035b86a42b6b3e5e6b78fec5/libavcodec/x86/h264_chromamc.asm", "line_start": 681, "line_end": 727}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:1", "text": ";******************************************************************************\n;* MMX/SSSE3-optimized functions for H.264 chroma MC\n;* Copyright (c) 2005 Zoltan Hidvegi <hzoli -a- hzoli -d- com>,\n;*               2005-2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nrnd_rv40_2d_tbl: times 4 dw  0\n                 times 4 dw 16\n                 times 4 dw 32\n                 times 4 dw 16\n                 times 4 dw 32\n                 times 4 dw 28\n                 times 4 dw 32\n                 times 4 dw 28\n                 times 4 dw  0\n                 times 4 dw 32\n                 times 4 dw 16\n                 times 4 dw 32\n                 times 4 dw 32\n                 times 4 dw 28\n                 times 4 dw 32\n                 times 4 dw 28\nrnd_rv40_1d_tbl: times 4 dw  0\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  0\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n\ncextern pw_3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:2", "text": "times 4 dw 32\n                 times 4 dw 28\nrnd_rv40_1d_tbl: times 4 dw  0\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  0\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n\ncextern pw_3\ncextern pw_4\ncextern pw_8\npw_28: times 8 dw 28\ncextern pw_32\ncextern pw_64\n\nSECTION .text\n\n%macro mv0_pixels_mc8 0\n    lea           r4, [r2*2 ]\n.next4rows:\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc8_mmx_func 2-3\n%ifidn %2, rv40\n%if PIC\n%define rnd_1d_rv40 r8\n%define rnd_2d_rv40 r8\n%define extra_regs 2\n%else ; no-PIC\n%define rnd_1d_rv40 rnd_rv40_1d_tbl\n%define rnd_2d_rv40 rnd_rv40_2d_tbl", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:3", "text": "movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc8_mmx_func 2-3\n%ifidn %2, rv40\n%if PIC\n%define rnd_1d_rv40 r8\n%define rnd_2d_rv40 r8\n%define extra_regs 2\n%else ; no-PIC\n%define rnd_1d_rv40 rnd_rv40_1d_tbl\n%define rnd_2d_rv40 rnd_rv40_2d_tbl\n%define extra_regs 1\n%endif ; PIC\n%else\n%define extra_regs 0\n%endif ; rv40\n; void ff_put/avg_h264_chroma_mc8_*(uint8_t *dst /* align 8 */,\n;                                   const uint8_t *src /* align 1 */,\n;                                   ptrdiff_t stride, int h, int mx, int my)\ncglobal %1_%2_chroma_mc8%3, 6, 7 + extra_regs, 0\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n%ifidn %2, rv40\n%if ARCH_X86_64\n    mov           r7, r5\n    and           r7, 6         ; &~1 for mx/my=[0,7]\n    lea           r7, [r7*4+r4]\n    sar          r7d, 1\n%define rnd_bias r7\n%define dest_reg r0\n%else ; x86-32\n    mov           r0, r5\n    and           r0, 6         ; &~1 for mx/my=[0,7]\n    lea           r0, [r0*4+r4]\n    sar          r0d, 1\n%define rnd_bias r0\n%define dest_reg r5\n%endif\n%else ; vc1, h264\n%define rnd_bias  0\n%define dest_reg r0\n%endif\n\n    test         r5d, r5d\n    mov           r6, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:4", "text": "and           r7, 6         ; &~1 for mx/my=[0,7]\n    lea           r7, [r7*4+r4]\n    sar          r7d, 1\n%define rnd_bias r7\n%define dest_reg r0\n%else ; x86-32\n    mov           r0, r5\n    and           r0, 6         ; &~1 for mx/my=[0,7]\n    lea           r0, [r0*4+r4]\n    sar          r0d, 1\n%define rnd_bias r0\n%define dest_reg r5\n%endif\n%else ; vc1, h264\n%define rnd_bias  0\n%define dest_reg r0\n%endif\n\n    test         r5d, r5d\n    mov           r6, 1\n    je .my_is_zero\n    test         r4d, r4d\n    mov           r6, r2        ; dxy = x ? 1 : stride\n    jne .both_non_zero\n.my_is_zero:\n    ; mx == 0 XOR my == 0 - 1 dimensional filter only\n    or           r4d, r5d       ; x + y\n\n%ifidn %2, rv40\n%if PIC\n    lea           r8, [rnd_rv40_1d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n\n    movd          m5, r4d\n    movq          m4, [pw_8]\n    movq          m6, [rnd_1d_%2+rnd_bias*8] ; mm6 = rnd >> 3\n    punpcklwd     m5, m5\n    punpckldq     m5, m5        ; mm5 = B = x\n    pxor          m7, m7\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movq          m0, [r1   ]   ; mm0 = src[0..7]\n    movq          m2, [r1+r6]   ; mm1 = src[1..8]\n\n    movq          m1, m0\n    movq          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, m4        ; [mm0,mm1] = A * src[0..7]\n    pmullw        m1, m4\n    pmullw        m2, m5        ; [mm2,mm3] = B * src[1..8]\n    pmullw        m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:5", "text": "punpcklwd     m5, m5\n    punpckldq     m5, m5        ; mm5 = B = x\n    pxor          m7, m7\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movq          m0, [r1   ]   ; mm0 = src[0..7]\n    movq          m2, [r1+r6]   ; mm1 = src[1..8]\n\n    movq          m1, m0\n    movq          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, m4        ; [mm0,mm1] = A * src[0..7]\n    pmullw        m1, m4\n    pmullw        m2, m5        ; [mm2,mm3] = B * src[1..8]\n    pmullw        m3, m5\n\n    paddw         m0, m6\n    paddw         m1, m6\n    paddw         m0, m2\n    paddw         m1, m3\n    psrlw         m0, 3\n    psrlw         m1, 3\n    packuswb      m0, m1\n    CHROMAMC_AVG  m0, [dest_reg]\n    movq  [dest_reg], m0        ; dst[0..7] = (A * src[0..7] + B * src[1..8] + (rnd >> 3)) >> 3\n\n    add     dest_reg, r2\n    add           r1, r2\n    dec           r3d\n    jne .next1drow\n    RET\n\n.both_non_zero: ; general case, bilinear\n    movd          m4, r4d         ; x\n    movd          m6, r5d         ; y\n%ifidn %2, rv40\n%if PIC\n    lea           r8, [rnd_rv40_2d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n    mov           r6, rsp         ; backup stack pointer\n    and          rsp, ~(mmsize-1) ; align stack\n    sub          rsp, 16          ; AA and DD\n\n    punpcklwd     m4, m4\n    punpcklwd     m6, m6\n    punpckldq     m4, m4          ; mm4 = x words\n    punpckldq     m6, m6          ; mm6 = y words\n    movq          m5, m4\n    pmullw        m4, m6          ; mm4 = x * y\n    psllw         m5, 3\n    psllw         m6, 3\n    movq          m7, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:6", "text": "%if PIC\n    lea           r8, [rnd_rv40_2d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n    mov           r6, rsp         ; backup stack pointer\n    and          rsp, ~(mmsize-1) ; align stack\n    sub          rsp, 16          ; AA and DD\n\n    punpcklwd     m4, m4\n    punpcklwd     m6, m6\n    punpckldq     m4, m4          ; mm4 = x words\n    punpckldq     m6, m6          ; mm6 = y words\n    movq          m5, m4\n    pmullw        m4, m6          ; mm4 = x * y\n    psllw         m5, 3\n    psllw         m6, 3\n    movq          m7, m5\n    paddw         m7, m6\n    movq     [rsp+8], m4          ; DD = x * y\n    psubw         m5, m4          ; mm5 = B = 8x - xy\n    psubw         m6, m4          ; mm6 = C = 8y - xy\n    paddw         m4, [pw_64]\n    psubw         m4, m7          ; mm4 = A = xy - (8x+8y) + 64\n    pxor          m7, m7\n    movq     [rsp  ], m4\n\n    movq          m0, [r1  ]      ; mm0 = src[0..7]\n    movq          m1, [r1+1]      ; mm1 = src[1..8]\n.next2drow:\n    add           r1, r2\n\n    movq          m2, m0\n    movq          m3, m1\n    punpckhbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, [rsp]\n    pmullw        m2, [rsp]\n    pmullw        m1, m5\n    pmullw        m3, m5\n    paddw         m2, m1          ; mm2 = A * src[0..3] + B * src[1..4]\n    paddw         m3, m0          ; mm3 = A * src[4..7] + B * src[5..8]\n\n    movq          m0, [r1]\n    movq          m1, m0\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    pmullw        m0, m6\n    pmullw        m1, m6\n    paddw         m2, m0\n    paddw         m3, m1          ; [mm2,mm3] += C * src[0..7]\n\n    movq          m1, [r1+1]\n    movq          m0, m1\n    movq          m4, m1\n    punpcklbw     m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:7", "text": "pmullw        m0, [rsp]\n    pmullw        m2, [rsp]\n    pmullw        m1, m5\n    pmullw        m3, m5\n    paddw         m2, m1          ; mm2 = A * src[0..3] + B * src[1..4]\n    paddw         m3, m0          ; mm3 = A * src[4..7] + B * src[5..8]\n\n    movq          m0, [r1]\n    movq          m1, m0\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    pmullw        m0, m6\n    pmullw        m1, m6\n    paddw         m2, m0\n    paddw         m3, m1          ; [mm2,mm3] += C * src[0..7]\n\n    movq          m1, [r1+1]\n    movq          m0, m1\n    movq          m4, m1\n    punpcklbw     m0, m7\n    punpckhbw     m4, m7\n    pmullw        m0, [rsp+8]\n    pmullw        m4, [rsp+8]\n    paddw         m2, m0\n    paddw         m3, m4          ; [mm2,mm3] += D * src[1..8]\n    movq          m0, [r1]\n\n    paddw         m2, [rnd_2d_%2+rnd_bias*8]\n    paddw         m3, [rnd_2d_%2+rnd_bias*8]\n    psrlw         m2, 6\n    psrlw         m3, 6\n    packuswb      m2, m3\n    CHROMAMC_AVG  m2, [dest_reg]\n    movq  [dest_reg], m2          ; dst[0..7] = ([mm2,mm3] + rnd) >> 6\n\n    add     dest_reg, r2\n    dec          r3d\n    jne .next2drow\n    mov          rsp, r6          ; restore stack pointer\n    RET\n%endmacro\n\n%macro chroma_mc4_mmx_func 2\n%define extra_regs 0\n%ifidn %2, rv40\n%if PIC\n%define extra_regs 1\n%endif ; PIC\n%endif ; rv40\ncglobal %1_%2_chroma_mc4, 6, 6 + extra_regs, 0\n    pxor          m7, m7\n    movd          m2, r4d         ; x\n    movd          m3, r5d         ; y\n    movq          m4, [pw_8]\n    movq          m5, [pw_8]\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    psubw         m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:8", "text": "%endmacro\n\n%macro chroma_mc4_mmx_func 2\n%define extra_regs 0\n%ifidn %2, rv40\n%if PIC\n%define extra_regs 1\n%endif ; PIC\n%endif ; rv40\ncglobal %1_%2_chroma_mc4, 6, 6 + extra_regs, 0\n    pxor          m7, m7\n    movd          m2, r4d         ; x\n    movd          m3, r5d         ; y\n    movq          m4, [pw_8]\n    movq          m5, [pw_8]\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    psubw         m4, m2\n    psubw         m5, m3\n\n%ifidn %2, rv40\n%if PIC\n   lea            r6, [rnd_rv40_2d_tbl]\n%define rnd_2d_rv40 r6\n%else\n%define rnd_2d_rv40 rnd_rv40_2d_tbl\n%endif\n    and           r5, 6         ; &~1 for mx/my=[0,7]\n    lea           r5, [r5*4+r4]\n    sar          r5d, 1\n%define rnd_bias r5\n%else ; vc1, h264\n%define rnd_bias 0\n%endif\n\n    movd          m0, [r1  ]\n    movd          m6, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m6, m7\n    pmullw        m0, m4\n    pmullw        m6, m2\n    paddw         m6, m0\n\n.next2rows:\n    movd          m0, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4\n    pmullw        m1, m2\n    paddw         m1, m0\n    movq          m0, m1\n\n    pmullw        m6, m5\n    pmullw        m1, m3\n    paddw         m6, [rnd_2d_%2+rnd_bias*8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:9", "text": "punpcklbw     m0, m7\n    punpcklbw     m6, m7\n    pmullw        m0, m4\n    pmullw        m6, m2\n    paddw         m6, m0\n\n.next2rows:\n    movd          m0, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4\n    pmullw        m1, m2\n    paddw         m1, m0\n    movq          m0, m1\n\n    pmullw        m6, m5\n    pmullw        m1, m3\n    paddw         m6, [rnd_2d_%2+rnd_bias*8]\n    paddw         m1, m6\n    psrlw         m1, 6\n    packuswb      m1, m1\n    CHROMAMC_AVG4 m1, m6, [r0]\n    movd        [r0], m1\n    add           r0, r2\n\n    movd          m6, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m6, m7\n    punpcklbw     m1, m7\n    pmullw        m6, m4\n    pmullw        m1, m2\n    paddw         m1, m6\n    movq          m6, m1\n    pmullw        m0, m5\n    pmullw        m1, m3\n    paddw         m0, [rnd_2d_%2+rnd_bias*8]\n    paddw         m1, m0\n    psrlw         m1, 6\n    packuswb      m1, m1\n    CHROMAMC_AVG4 m1, m0, [r0]\n    movd        [r0], m1\n    add           r0, r2\n    sub          r3d, 2\n    jnz .next2rows\n    RET\n%endmacro\n\n%macro chroma_mc2_mmx_func 2\ncglobal %1_%2_chroma_mc2, 6, 7, 0\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:10", "text": "psrlw         m1, 6\n    packuswb      m1, m1\n    CHROMAMC_AVG4 m1, m0, [r0]\n    movd        [r0], m1\n    add           r0, r2\n    sub          r3d, 2\n    jnz .next2rows\n    RET\n%endmacro\n\n%macro chroma_mc2_mmx_func 2\ncglobal %1_%2_chroma_mc2, 6, 7, 0\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)\n\n    movd          m5, r4d\n    movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    movd          m2, [r1]\n    punpcklbw     m2, m7\n    pshufw        m2, m2, 0x94    ; mm0 = src[0,1,1,2]\n\n.nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    movd          m0, [r1]\n    punpcklbw     m0, m7\n    pshufw        m0, m0, 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [rnd_2d_%2]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow\n    RET\n%endmacro\n\n%define rnd_1d_h264 pw_4\n%define rnd_2d_h264 pw_32\n%define rnd_1d_vc1  pw_3\n%define rnd_2d_vc1  pw_28\n\n%macro NOTHING 2-3\n%endmacro\n%macro DIRECT_AVG 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:11", "text": "psrlw         m1, 6\n    packssdw      m1, m7\n    packuswb      m1, m7\n    CHROMAMC_AVG4 m1, m3, [r0]\n    movd         r5d, m1\n    mov         [r0], r5w\n    add           r0, r2\n    sub          r3d, 1\n    jnz .nextrow\n    RET\n%endmacro\n\n%define rnd_1d_h264 pw_4\n%define rnd_2d_h264 pw_32\n%define rnd_1d_vc1  pw_3\n%define rnd_2d_vc1  pw_28\n\n%macro NOTHING 2-3\n%endmacro\n%macro DIRECT_AVG 2\n    PAVGB         %1, %2\n%endmacro\n%macro COPY_AVG 3\n    movd          %2, %3\n    PAVGB         %1, %2\n%endmacro\n\nINIT_MMX mmx\n%define CHROMAMC_AVG  NOTHING\n%define CHROMAMC_AVG4 NOTHING\nchroma_mc8_mmx_func put, h264, _rnd\nchroma_mc8_mmx_func put, vc1,  _nornd\nchroma_mc8_mmx_func put, rv40\nchroma_mc4_mmx_func put, h264\nchroma_mc4_mmx_func put, rv40\n\nINIT_MMX mmxext\nchroma_mc2_mmx_func put, h264\n\n%define CHROMAMC_AVG  DIRECT_AVG\n%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc8_mmx_func avg, h264, _rnd\nchroma_mc8_mmx_func avg, vc1,  _nornd\nchroma_mc8_mmx_func avg, rv40\nchroma_mc4_mmx_func avg, h264\nchroma_mc4_mmx_func avg, rv40\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n    test         r5d, r5d\n    je .my_is_zero", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:12", "text": "%define CHROMAMC_AVG4 COPY_AVG\nchroma_mc8_mmx_func avg, h264, _rnd\nchroma_mc8_mmx_func avg, vc1,  _nornd\nchroma_mc8_mmx_func avg, rv40\nchroma_mc4_mmx_func avg, h264\nchroma_mc4_mmx_func avg, rv40\nchroma_mc2_mmx_func avg, h264\n\n%macro chroma_mc8_ssse3_func 2-3\ncglobal %1_%2_chroma_mc8%3, 6, 7, 8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n    test         r5d, r5d\n    je .my_is_zero\n    test         r4d, r4d\n    je .mx_is_zero\n\n    ; general case, bilinear\n    mov          r6d, r4d\n    shl          r4d, 8\n    sub           r4, r6\n    mov           r6, 8\n    add           r4, 8           ; x*288+8 = x<<8 | (8-x)\n    sub          r6d, r5d\n    imul          r6, r4          ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movdqa        m5, [rnd_2d_%2]\n    movq          m0, [r1  ]\n    movq          m1, [r1+1]\n    pshuflw       m7, m7, 0\n    pshuflw       m6, m6, 0\n    punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:13", "text": "punpcklbw     m0, m1\n    movlhps       m7, m7\n    movlhps       m6, m6\n\n.next2rows:\n    movq          m1, [r1+r2*1   ]\n    movq          m2, [r1+r2*1+1]\n    movq          m3, [r1+r2*2  ]\n    movq          m4, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m1, m2\n    movdqa        m2, m1\n    punpcklbw     m3, m4\n    movdqa        m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movdqa        m0, m4\n    psrlw         m3, 6\n%ifidn %1, avg\n    movq          m2, [r0   ]\n    movhps        m2, [r0+r2]\n%endif\n    packuswb      m1, m3\n    CHROMAMC_AVG  m1, m2\n    movq     [r0   ], m1\n    movhps   [r0+r2], m1\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n\n.my_is_zero:\n    mov          r5d, r4d\n    shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    movdqa        m6, [rnd_1d_%2]\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:14", "text": "shl          r4d, 8\n    add           r4, 8\n    sub           r4, r5          ; 255*x+8 = x<<8 | (8-x)\n    movd          m7, r4d\n    movdqa        m6, [rnd_1d_%2]\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2xrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1   +1]\n    movq          m2, [r1+r2  ]\n    movq          m3, [r1+r2+1]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    lea           r1, [r1+r2*2]\n    jg .next2xrows\n    RET\n\n.mx_is_zero:\n    mov          r4d, r5d\n    shl          r5d, 8\n    add           r5, 8\n    sub           r5, r4          ; 255*y+8 = y<<8 | (8-y)\n    movd          m7, r5d\n    movdqa        m6, [rnd_1d_%2]\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:15", "text": "movd          m7, r5d\n    movdqa        m6, [rnd_1d_%2]\n    pshuflw       m7, m7, 0\n    movlhps       m7, m7\n\n.next2yrows:\n    movq          m0, [r1     ]\n    movq          m1, [r1+r2  ]\n    movdqa        m2, m1\n    movq          m3, [r1+r2*2]\n    lea           r1, [r1+r2*2]\n    punpcklbw     m0, m1\n    punpcklbw     m2, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m2, m7\n%ifidn %1, avg\n    movq          m4, [r0   ]\n    movhps        m4, [r0+r2]\n%endif\n    paddw         m0, m6\n    paddw         m2, m6\n    psrlw         m0, 3\n    psrlw         m2, 3\n    packuswb      m0, m2\n    CHROMAMC_AVG  m0, m4\n    movq     [r0   ], m0\n    movhps   [r0+r2], m0\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2yrows\n    RET\n%endmacro\n\n%macro chroma_mc4_ssse3_func 2\ncglobal %1_%2_chroma_mc4, 6, 7, 0\n    mov           r6, r4\n    shl          r4d, 8\n    sub          r4d, r6d\n    mov           r6, 8\n    add          r4d, 8           ; x*288+8\n    sub          r6d, r5d\n    imul         r6d, r4d         ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movq          m5, [pw_32]\n    movd          m0, [r1  ]\n    pshufw        m7, m7, 0\n    punpcklbw     m0, [r1+1]\n    pshufw        m6, m6, 0\n\n.next2rows:\n    movd          m1, [r1+r2*1  ]\n    movd          m3, [r1+r2*2  ]\n    punpcklbw     m1, [r1+r2*1+1]\n    punpcklbw     m3, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    movq          m2, m1\n    movq          m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:16", "text": "sub          r6d, r5d\n    imul         r6d, r4d         ; (8-y)*(x*255+8) = (8-y)*x<<8 | (8-y)*(8-x)\n    imul         r4d, r5d         ;    y *(x*255+8) =    y *x<<8 |    y *(8-x)\n\n    movd          m7, r6d\n    movd          m6, r4d\n    movq          m5, [pw_32]\n    movd          m0, [r1  ]\n    pshufw        m7, m7, 0\n    punpcklbw     m0, [r1+1]\n    pshufw        m6, m6, 0\n\n.next2rows:\n    movd          m1, [r1+r2*1  ]\n    movd          m3, [r1+r2*2  ]\n    punpcklbw     m1, [r1+r2*1+1]\n    punpcklbw     m3, [r1+r2*2+1]\n    lea           r1, [r1+r2*2]\n    movq          m2, m1\n    movq          m4, m3\n    pmaddubsw     m0, m7\n    pmaddubsw     m1, m6\n    pmaddubsw     m2, m7\n    pmaddubsw     m3, m6\n    paddw         m0, m5\n    paddw         m2, m5\n    paddw         m1, m0\n    paddw         m3, m2\n    psrlw         m1, 6\n    movq          m0, m4\n    psrlw         m3, 6\n    packuswb      m1, m1\n    packuswb      m3, m3\n    CHROMAMC_AVG  m1, [r0  ]\n    CHROMAMC_AVG  m3, [r0+r2]\n    movd     [r0   ], m1\n    movd     [r0+r2], m3\n    sub          r3d, 2\n    lea           r0, [r0+r2*2]\n    jg .next2rows\n    RET\n%endmacro\n\n%define CHROMAMC_AVG NOTHING\nINIT_XMM ssse3\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nINIT_MMX ssse3\nchroma_mc4_ssse3_func put, h264\n\n%define CHROMAMC_AVG DIRECT_AVG\nINIT_XMM ssse3\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nINIT_MMX ssse3\nchroma_mc4_ssse3_func avg, h264", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 601, "line_end": 656}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:17", "text": "RET\n%endmacro\n\n%define CHROMAMC_AVG NOTHING\nINIT_XMM ssse3\nchroma_mc8_ssse3_func put, h264, _rnd\nchroma_mc8_ssse3_func put, vc1,  _nornd\nINIT_MMX ssse3\nchroma_mc4_ssse3_func put, h264\n\n%define CHROMAMC_AVG DIRECT_AVG\nINIT_XMM ssse3\nchroma_mc8_ssse3_func avg, h264, _rnd\nchroma_mc8_ssse3_func avg, vc1,  _nornd\nINIT_MMX ssse3\nchroma_mc4_ssse3_func avg, h264", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_chromamc.asm", "line_start": 641, "line_end": 656}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:2", "text": "times 4 dw 32\n                 times 4 dw 28\nrnd_rv40_1d_tbl: times 4 dw  0\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  0\n                 times 4 dw  4\n                 times 4 dw  2\n                 times 4 dw  4\n                 times 4 dw  4\n                 times 4 dw  3\n                 times 4 dw  4\n                 times 4 dw  3\n\ncextern pw_3\ncextern pw_4\ncextern pw_8\npw_28: times 8 dw 28\ncextern pw_32\ncextern pw_64\n\nSECTION .text\n\n%macro mv0_pixels_mc8 0\n    lea           r4, [r2*2 ]\n.next4rows:\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    movq         mm0, [r1   ]\n    movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc8_mmx_func 2-3\n%ifidn %2, rv40\n%ifdef PIC\n%define rnd_1d_rv40 r8\n%define rnd_2d_rv40 r8\n%define extra_regs 2\n%else ; no-PIC\n%define rnd_1d_rv40 rnd_rv40_1d_tbl\n%define rnd_2d_rv40 rnd_rv40_2d_tbl", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:3", "text": "movq         mm1, [r1+r2]\n    add           r1, r4\n    CHROMAMC_AVG mm0, [r0   ]\n    CHROMAMC_AVG mm1, [r0+r2]\n    movq     [r0   ], mm0\n    movq     [r0+r2], mm1\n    add           r0, r4\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n%macro chroma_mc8_mmx_func 2-3\n%ifidn %2, rv40\n%ifdef PIC\n%define rnd_1d_rv40 r8\n%define rnd_2d_rv40 r8\n%define extra_regs 2\n%else ; no-PIC\n%define rnd_1d_rv40 rnd_rv40_1d_tbl\n%define rnd_2d_rv40 rnd_rv40_2d_tbl\n%define extra_regs 1\n%endif ; PIC\n%else\n%define extra_regs 0\n%endif ; rv40\n; void ff_put/avg_h264_chroma_mc8_*(uint8_t *dst /* align 8 */,\n;                                   const uint8_t *src /* align 1 */,\n;                                   ptrdiff_t stride, int h, int mx, int my)\ncglobal %1_%2_chroma_mc8%3, 6, 7 + extra_regs, 0\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n    mv0_pixels_mc8\n    RET\n\n.at_least_one_non_zero:\n%ifidn %2, rv40\n%if ARCH_X86_64\n    mov           r7, r5\n    and           r7, 6         ; &~1 for mx/my=[0,7]\n    lea           r7, [r7*4+r4]\n    sar          r7d, 1\n%define rnd_bias r7\n%define dest_reg r0\n%else ; x86-32\n    mov           r0, r5\n    and           r0, 6         ; &~1 for mx/my=[0,7]\n    lea           r0, [r0*4+r4]\n    sar          r0d, 1\n%define rnd_bias r0\n%define dest_reg r5\n%endif\n%else ; vc1, h264\n%define rnd_bias  0\n%define dest_reg r0\n%endif\n\n    test         r5d, r5d\n    mov           r6, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:4", "text": "and           r7, 6         ; &~1 for mx/my=[0,7]\n    lea           r7, [r7*4+r4]\n    sar          r7d, 1\n%define rnd_bias r7\n%define dest_reg r0\n%else ; x86-32\n    mov           r0, r5\n    and           r0, 6         ; &~1 for mx/my=[0,7]\n    lea           r0, [r0*4+r4]\n    sar          r0d, 1\n%define rnd_bias r0\n%define dest_reg r5\n%endif\n%else ; vc1, h264\n%define rnd_bias  0\n%define dest_reg r0\n%endif\n\n    test         r5d, r5d\n    mov           r6, 1\n    je .my_is_zero\n    test         r4d, r4d\n    mov           r6, r2        ; dxy = x ? 1 : stride\n    jne .both_non_zero\n.my_is_zero:\n    ; mx == 0 XOR my == 0 - 1 dimensional filter only\n    or           r4d, r5d       ; x + y\n\n%ifidn %2, rv40\n%ifdef PIC\n    lea           r8, [rnd_rv40_1d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n\n    movd          m5, r4d\n    movq          m4, [pw_8]\n    movq          m6, [rnd_1d_%2+rnd_bias*8] ; mm6 = rnd >> 3\n    punpcklwd     m5, m5\n    punpckldq     m5, m5        ; mm5 = B = x\n    pxor          m7, m7\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movq          m0, [r1   ]   ; mm0 = src[0..7]\n    movq          m2, [r1+r6]   ; mm1 = src[1..8]\n\n    movq          m1, m0\n    movq          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, m4        ; [mm0,mm1] = A * src[0..7]\n    pmullw        m1, m4\n    pmullw        m2, m5        ; [mm2,mm3] = B * src[1..8]\n    pmullw        m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:5", "text": "punpcklwd     m5, m5\n    punpckldq     m5, m5        ; mm5 = B = x\n    pxor          m7, m7\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movq          m0, [r1   ]   ; mm0 = src[0..7]\n    movq          m2, [r1+r6]   ; mm1 = src[1..8]\n\n    movq          m1, m0\n    movq          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, m4        ; [mm0,mm1] = A * src[0..7]\n    pmullw        m1, m4\n    pmullw        m2, m5        ; [mm2,mm3] = B * src[1..8]\n    pmullw        m3, m5\n\n    paddw         m0, m6\n    paddw         m1, m6\n    paddw         m0, m2\n    paddw         m1, m3\n    psrlw         m0, 3\n    psrlw         m1, 3\n    packuswb      m0, m1\n    CHROMAMC_AVG  m0, [dest_reg]\n    movq  [dest_reg], m0        ; dst[0..7] = (A * src[0..7] + B * src[1..8] + (rnd >> 3)) >> 3\n\n    add     dest_reg, r2\n    add           r1, r2\n    dec           r3d\n    jne .next1drow\n    RET\n\n.both_non_zero: ; general case, bilinear\n    movd          m4, r4d         ; x\n    movd          m6, r5d         ; y\n%ifidn %2, rv40\n%ifdef PIC\n    lea           r8, [rnd_rv40_2d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n    mov           r6, rsp         ; backup stack pointer\n    and          rsp, ~(mmsize-1) ; align stack\n    sub          rsp, 16          ; AA and DD\n\n    punpcklwd     m4, m4\n    punpcklwd     m6, m6\n    punpckldq     m4, m4          ; mm4 = x words\n    punpckldq     m6, m6          ; mm6 = y words\n    movq          m5, m4\n    pmullw        m4, m6          ; mm4 = x * y\n    psllw         m5, 3\n    psllw         m6, 3\n    movq          m7, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:6", "text": "%ifdef PIC\n    lea           r8, [rnd_rv40_2d_tbl]\n%endif\n%if ARCH_X86_64 == 0\n    mov           r5, r0m\n%endif\n%endif\n    mov           r6, rsp         ; backup stack pointer\n    and          rsp, ~(mmsize-1) ; align stack\n    sub          rsp, 16          ; AA and DD\n\n    punpcklwd     m4, m4\n    punpcklwd     m6, m6\n    punpckldq     m4, m4          ; mm4 = x words\n    punpckldq     m6, m6          ; mm6 = y words\n    movq          m5, m4\n    pmullw        m4, m6          ; mm4 = x * y\n    psllw         m5, 3\n    psllw         m6, 3\n    movq          m7, m5\n    paddw         m7, m6\n    movq     [rsp+8], m4          ; DD = x * y\n    psubw         m5, m4          ; mm5 = B = 8x - xy\n    psubw         m6, m4          ; mm6 = C = 8y - xy\n    paddw         m4, [pw_64]\n    psubw         m4, m7          ; mm4 = A = xy - (8x+8y) + 64\n    pxor          m7, m7\n    movq     [rsp  ], m4\n\n    movq          m0, [r1  ]      ; mm0 = src[0..7]\n    movq          m1, [r1+1]      ; mm1 = src[1..8]\n.next2drow:\n    add           r1, r2\n\n    movq          m2, m0\n    movq          m3, m1\n    punpckhbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    pmullw        m0, [rsp]\n    pmullw        m2, [rsp]\n    pmullw        m1, m5\n    pmullw        m3, m5\n    paddw         m2, m1          ; mm2 = A * src[0..3] + B * src[1..4]\n    paddw         m3, m0          ; mm3 = A * src[4..7] + B * src[5..8]\n\n    movq          m0, [r1]\n    movq          m1, m0\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    pmullw        m0, m6\n    pmullw        m1, m6\n    paddw         m2, m0\n    paddw         m3, m1          ; [mm2,mm3] += C * src[0..7]\n\n    movq          m1, [r1+1]\n    movq          m0, m1\n    movq          m4, m1\n    punpcklbw     m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:7", "text": "pmullw        m0, [rsp]\n    pmullw        m2, [rsp]\n    pmullw        m1, m5\n    pmullw        m3, m5\n    paddw         m2, m1          ; mm2 = A * src[0..3] + B * src[1..4]\n    paddw         m3, m0          ; mm3 = A * src[4..7] + B * src[5..8]\n\n    movq          m0, [r1]\n    movq          m1, m0\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    pmullw        m0, m6\n    pmullw        m1, m6\n    paddw         m2, m0\n    paddw         m3, m1          ; [mm2,mm3] += C * src[0..7]\n\n    movq          m1, [r1+1]\n    movq          m0, m1\n    movq          m4, m1\n    punpcklbw     m0, m7\n    punpckhbw     m4, m7\n    pmullw        m0, [rsp+8]\n    pmullw        m4, [rsp+8]\n    paddw         m2, m0\n    paddw         m3, m4          ; [mm2,mm3] += D * src[1..8]\n    movq          m0, [r1]\n\n    paddw         m2, [rnd_2d_%2+rnd_bias*8]\n    paddw         m3, [rnd_2d_%2+rnd_bias*8]\n    psrlw         m2, 6\n    psrlw         m3, 6\n    packuswb      m2, m3\n    CHROMAMC_AVG  m2, [dest_reg]\n    movq  [dest_reg], m2          ; dst[0..7] = ([mm2,mm3] + rnd) >> 6\n\n    add     dest_reg, r2\n    dec          r3d\n    jne .next2drow\n    mov          rsp, r6          ; restore stack pointer\n    RET\n%endmacro\n\n%macro chroma_mc4_mmx_func 2\n%define extra_regs 0\n%ifidn %2, rv40\n%ifdef PIC\n%define extra_regs 1\n%endif ; PIC\n%endif ; rv40\ncglobal %1_%2_chroma_mc4, 6, 6 + extra_regs, 0\n    pxor          m7, m7\n    movd          m2, r4d         ; x\n    movd          m3, r5d         ; y\n    movq          m4, [pw_8]\n    movq          m5, [pw_8]\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    psubw         m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc.asm:8", "text": "%endmacro\n\n%macro chroma_mc4_mmx_func 2\n%define extra_regs 0\n%ifidn %2, rv40\n%ifdef PIC\n%define extra_regs 1\n%endif ; PIC\n%endif ; rv40\ncglobal %1_%2_chroma_mc4, 6, 6 + extra_regs, 0\n    pxor          m7, m7\n    movd          m2, r4d         ; x\n    movd          m3, r5d         ; y\n    movq          m4, [pw_8]\n    movq          m5, [pw_8]\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    punpcklwd     m2, m2\n    punpcklwd     m3, m3\n    psubw         m4, m2\n    psubw         m5, m3\n\n%ifidn %2, rv40\n%ifdef PIC\n   lea            r6, [rnd_rv40_2d_tbl]\n%define rnd_2d_rv40 r6\n%else\n%define rnd_2d_rv40 rnd_rv40_2d_tbl\n%endif\n    and           r5, 6         ; &~1 for mx/my=[0,7]\n    lea           r5, [r5*4+r4]\n    sar          r5d, 1\n%define rnd_bias r5\n%else ; vc1, h264\n%define rnd_bias 0\n%endif\n\n    movd          m0, [r1  ]\n    movd          m6, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m6, m7\n    pmullw        m0, m4\n    pmullw        m6, m2\n    paddw         m6, m0\n\n.next2rows:\n    movd          m0, [r1  ]\n    movd          m1, [r1+1]\n    add           r1, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4\n    pmullw        m1, m2\n    paddw         m1, m0\n    movq          m0, m1\n\n    pmullw        m6, m5\n    pmullw        m1, m3\n    paddw         m6, [rnd_2d_%2+rnd_bias*8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_chromamc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized 10-bit H.264 chroma MC code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_4\ncextern pw_8\ncextern pw_32\ncextern pw_64\n\nSECTION .text\n\n\n%macro MV0_PIXELS_MC8 0\n    lea           r4, [r2*3   ]\n    lea           r5, [r2*4   ]\n.next4rows:\n    movu          m0, [r1     ]\n    movu          m1, [r1+r2  ]\n    CHROMAMC_AVG  m0, [r0     ]\n    CHROMAMC_AVG  m1, [r0+r2  ]\n    mova   [r0     ], m0\n    mova   [r0+r2  ], m1\n    movu          m0, [r1+r2*2]\n    movu          m1, [r1+r4  ]\n    CHROMAMC_AVG  m0, [r0+r2*2]\n    CHROMAMC_AVG  m1, [r0+r4  ]\n    mova   [r0+r2*2], m0\n    mova   [r0+r4  ], m1\n    add           r1, r5\n    add           r0, r5\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_put/avg_h264_chroma_mc8(pixel *dst, const pixel *src, ptrdiff_t stride,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:2", "text": "movu          m0, [r1     ]\n    movu          m1, [r1+r2  ]\n    CHROMAMC_AVG  m0, [r0     ]\n    CHROMAMC_AVG  m1, [r0+r2  ]\n    mova   [r0     ], m0\n    mova   [r0+r2  ], m1\n    movu          m0, [r1+r2*2]\n    movu          m1, [r1+r4  ]\n    CHROMAMC_AVG  m0, [r0+r2*2]\n    CHROMAMC_AVG  m1, [r0+r4  ]\n    mova   [r0+r2*2], m0\n    mova   [r0+r4  ], m1\n    add           r1, r5\n    add           r0, r5\n    sub          r3d, 4\n    jne .next4rows\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_put/avg_h264_chroma_mc8(pixel *dst, const pixel *src, ptrdiff_t stride,\n;                                 int h, int mx, int my)\n;-----------------------------------------------------------------------------\n%macro CHROMA_MC8 1\ncglobal %1_h264_chroma_mc8_10, 6,7,8\n    mov          r6d, r5d\n    or           r6d, r4d\n    jne .at_least_one_non_zero\n    ; mx == 0 AND my == 0 - no filter needed\n    MV0_PIXELS_MC8\n    RET\n\n.at_least_one_non_zero:\n    mov          r6d, 2\n    test         r5d, r5d\n    je .x_interpolation\n    mov           r6, r2        ; dxy = x ? 1 : stride\n    test         r4d, r4d\n    jne .xy_interpolation\n.x_interpolation:\n    ; mx == 0 XOR my == 0 - 1 dimensional filter only\n    or           r4d, r5d       ; x + y\n    movd          m5, r4d\n    mova          m4, [pw_8]\n    mova          m6, [pw_4]    ; mm6 = rnd >> 3\n    SPLATW        m5, m5        ; mm5 = B = x\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movu          m0, [r1   ]   ; mm0 = src[0..7]\n    movu          m2, [r1+r6]   ; mm2 = src[1..8]\n\n    pmullw        m0, m4        ; mm0 = A * src[0..7]\n    pmullw        m2, m5        ; mm2 = B * src[1..8]\n\n    paddw         m0, m6\n    paddw         m0, m2\n    psrlw         m0, 3\n    CHROMAMC_AVG  m0, [r0]\n    mova        [r0], m0        ; dst[0..7] = (A * src[0..7] + B * src[1..8] + (rnd >> 3)) >> 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:3", "text": "or           r4d, r5d       ; x + y\n    movd          m5, r4d\n    mova          m4, [pw_8]\n    mova          m6, [pw_4]    ; mm6 = rnd >> 3\n    SPLATW        m5, m5        ; mm5 = B = x\n    psubw         m4, m5        ; mm4 = A = 8-x\n\n.next1drow:\n    movu          m0, [r1   ]   ; mm0 = src[0..7]\n    movu          m2, [r1+r6]   ; mm2 = src[1..8]\n\n    pmullw        m0, m4        ; mm0 = A * src[0..7]\n    pmullw        m2, m5        ; mm2 = B * src[1..8]\n\n    paddw         m0, m6\n    paddw         m0, m2\n    psrlw         m0, 3\n    CHROMAMC_AVG  m0, [r0]\n    mova        [r0], m0        ; dst[0..7] = (A * src[0..7] + B * src[1..8] + (rnd >> 3)) >> 3\n\n    add           r0, r2\n    add           r1, r2\n    dec           r3d\n    jne .next1drow\n    RET\n\n.xy_interpolation: ; general case, bilinear\n    movd          m4, r4m         ; x\n    movd          m6, r5m         ; y\n\n    SPLATW        m4, m4          ; mm4 = x words\n    SPLATW        m6, m6          ; mm6 = y words\n    psllw         m5, m4, 3       ; mm5 = 8x\n    pmullw        m4, m6          ; mm4 = x * y\n    psllw         m6, 3           ; mm6 = 8y\n    paddw         m1, m5, m6      ; mm7 = 8x+8y\n    mova          m7, m4          ; DD = x * y\n    psubw         m5, m4          ; mm5 = B = 8x - xy\n    psubw         m6, m4          ; mm6 = C = 8y - xy\n    paddw         m4, [pw_64]\n    psubw         m4, m1          ; mm4 = A = xy - (8x+8y) + 64\n\n    movu          m0, [r1  ]      ; mm0 = src[0..7]\n    movu          m1, [r1+2]      ; mm1 = src[1..8]\n.next2drow:\n    add           r1, r2\n\n    pmullw        m2, m0, m4\n    pmullw        m1, m5\n    paddw         m2, m1          ; mm2 = A * src[0..7] + B * src[1..8]\n\n    movu          m0, [r1]\n    movu          m1, [r1+2]\n    pmullw        m3, m0, m6\n    paddw         m2, m3          ; mm2 += C * src[0..7+strde]\n    pmullw        m3, m1, m7\n    paddw         m2, m3          ; mm2 += D * src[1..8+strde]\n\n    paddw         m2, [pw_32]\n    psrlw         m2, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:4", "text": "psubw         m4, m1          ; mm4 = A = xy - (8x+8y) + 64\n\n    movu          m0, [r1  ]      ; mm0 = src[0..7]\n    movu          m1, [r1+2]      ; mm1 = src[1..8]\n.next2drow:\n    add           r1, r2\n\n    pmullw        m2, m0, m4\n    pmullw        m1, m5\n    paddw         m2, m1          ; mm2 = A * src[0..7] + B * src[1..8]\n\n    movu          m0, [r1]\n    movu          m1, [r1+2]\n    pmullw        m3, m0, m6\n    paddw         m2, m3          ; mm2 += C * src[0..7+strde]\n    pmullw        m3, m1, m7\n    paddw         m2, m3          ; mm2 += D * src[1..8+strde]\n\n    paddw         m2, [pw_32]\n    psrlw         m2, 6\n    CHROMAMC_AVG  m2, [r0]\n    mova        [r0], m2          ; dst[0..7] = (mm2 + 32) >> 6\n\n    add           r0, r2\n    dec          r3d\n    jne .next2drow\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_put/avg_h264_chroma_mc4(pixel *dst, pixel *src, ptrdiff_t stride,\n;                                 int h, int mx, int my)\n;-----------------------------------------------------------------------------\n;TODO: xmm mc4\n%macro MC4_OP 2\n    movq          %1, [r1  ]\n    movq          m1, [r1+2]\n    add           r1, r2\n    pmullw        %1, m4\n    pmullw        m1, m2\n    paddw         m1, %1\n    mova          %1, m1\n\n    pmullw        %2, m5\n    pmullw        m1, m3\n    paddw         %2, [pw_32]\n    paddw         m1, %2\n    psrlw         m1, 6\n    CHROMAMC_AVG  m1, %2, [r0]\n    movq        [r0], m1\n    add           r0, r2\n%endmacro\n\n%macro CHROMA_MC4 1\ncglobal %1_h264_chroma_mc4_10, 6,6,7\n    movd          m2, r4m         ; x\n    movd          m3, r5m         ; y\n    mova          m4, [pw_8]\n    mova          m5, m4\n    SPLATW        m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:5", "text": "paddw         m1, %1\n    mova          %1, m1\n\n    pmullw        %2, m5\n    pmullw        m1, m3\n    paddw         %2, [pw_32]\n    paddw         m1, %2\n    psrlw         m1, 6\n    CHROMAMC_AVG  m1, %2, [r0]\n    movq        [r0], m1\n    add           r0, r2\n%endmacro\n\n%macro CHROMA_MC4 1\ncglobal %1_h264_chroma_mc4_10, 6,6,7\n    movd          m2, r4m         ; x\n    movd          m3, r5m         ; y\n    mova          m4, [pw_8]\n    mova          m5, m4\n    SPLATW        m2, m2\n    SPLATW        m3, m3\n    psubw         m4, m2\n    psubw         m5, m3\n\n    movq          m0, [r1  ]\n    movq          m6, [r1+2]\n    add           r1, r2\n    pmullw        m0, m4\n    pmullw        m6, m2\n    paddw         m6, m0\n\n.next2rows:\n    MC4_OP m0, m6\n    MC4_OP m6, m0\n    sub   r3d, 2\n    jnz .next2rows\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_put/avg_h264_chroma_mc2(pixel *dst, const pixel *src, ptrdiff_t stride,\n;                                 int h, int mx, int my)\n;-----------------------------------------------------------------------------\n%macro CHROMA_MC2 1\ncglobal %1_h264_chroma_mc2_10, 6,7\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)\n\n    movd          m5, r4d\n    movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    pshufw        m2, [r1], 0x94    ; mm0 = src[0,1,1,2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:6", "text": "; void ff_put/avg_h264_chroma_mc2(pixel *dst, const pixel *src, ptrdiff_t stride,\n;                                 int h, int mx, int my)\n;-----------------------------------------------------------------------------\n%macro CHROMA_MC2 1\ncglobal %1_h264_chroma_mc2_10, 6,7\n    mov          r6d, r4d\n    shl          r4d, 16\n    sub          r4d, r6d\n    add          r4d, 8\n    imul         r5d, r4d         ; x*y<<16 | y*(8-x)\n    shl          r4d, 3\n    sub          r4d, r5d         ; x*(8-y)<<16 | (8-x)*(8-y)\n\n    movd          m5, r4d\n    movd          m6, r5d\n    punpckldq     m5, m5          ; mm5 = {A,B,A,B}\n    punpckldq     m6, m6          ; mm6 = {C,D,C,D}\n    pxor          m7, m7\n    pshufw        m2, [r1], 0x94    ; mm0 = src[0,1,1,2]\n\n.nextrow:\n    add           r1, r2\n    movq          m1, m2\n    pmaddwd       m1, m5          ; mm1 = A * src[0,1] + B * src[1,2]\n    pshufw        m0, [r1], 0x94    ; mm0 = src[0,1,1,2]\n    movq          m2, m0\n    pmaddwd       m0, m6\n    paddw         m1, [pw_32]\n    paddw         m1, m0          ; mm1 += C * src[0,1] + D * src[1,2]\n    psrlw         m1, 6\n    packssdw      m1, m7\n    CHROMAMC_AVG  m1, m3, [r0]\n    movd        [r0], m1\n    add           r0, r2\n    dec          r3d\n    jnz .nextrow\n    RET\n%endmacro\n\n%macro NOTHING 2-3\n%endmacro\n%macro AVG 2-3\n%if %0==3\n    movq          %2, %3\n%endif\n    pavgw         %1, %2\n%endmacro\n\n%define CHROMAMC_AVG  NOTHING\nINIT_XMM sse2\nCHROMA_MC8 put\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nCHROMA_MC8 put\n%endif\nINIT_MMX mmxext\nCHROMA_MC4 put\nCHROMA_MC2 put\n\n%define CHROMAMC_AVG  AVG", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_chromamc_10bit.asm:7", "text": "%endmacro\n%macro AVG 2-3\n%if %0==3\n    movq          %2, %3\n%endif\n    pavgw         %1, %2\n%endmacro\n\n%define CHROMAMC_AVG  NOTHING\nINIT_XMM sse2\nCHROMA_MC8 put\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nCHROMA_MC8 put\n%endif\nINIT_MMX mmxext\nCHROMA_MC4 put\nCHROMA_MC2 put\n\n%define CHROMAMC_AVG  AVG\nINIT_XMM sse2\nCHROMA_MC8 avg\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nCHROMA_MC8 avg\n%endif\nINIT_MMX mmxext\nCHROMA_MC4 avg\nCHROMA_MC2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_chromamc_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_chromamc_10bit.asm", "line_start": 241, "line_end": 269}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized H.264 deblocking code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Loren Merritt <lorenm@u.washington.edu>\n;*          Fiona Glaser <fiona@x264.com>\n;*          Oskar Arvidsson <oskar@irock.se>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_A1: times 16 db 0xA1\npb_3_1: times 4 db 3, 1\n\nSECTION .text\n\ncextern pb_0\ncextern pb_1\ncextern pb_3\n\n; in: 2 rows of 8 words in %1, %2\n; out: 8 rows of 4 bytes in %3..%10\n%macro TRANSPOSE8x4B_STORE 10\n    punpcklwd   m6, %1, %2\n    movd        %3, m6\n    pshufd      m7, m6, 00110001b\n    punpckhqdq  m6, m6\n    movd        %4, m7\n    punpckhqdq  m7, m7\n    punpckhwd   %1, %2\n    movd        %5, m6\n    movd        %6, m7\n    pshufd      m6, %1, 00110001b\n    movd        %7, %1\n    punpckhqdq  %1, %1\n    movd        %8, m6\n    punpckhqdq  m6, m6\n    movd        %9, %1\n    movd       %10, m6\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:2", "text": "; out: 8 rows of 4 bytes in %3..%10\n%macro TRANSPOSE8x4B_STORE 10\n    punpcklwd   m6, %1, %2\n    movd        %3, m6\n    pshufd      m7, m6, 00110001b\n    punpckhqdq  m6, m6\n    movd        %4, m7\n    punpckhqdq  m7, m7\n    punpckhwd   %1, %2\n    movd        %5, m6\n    movd        %6, m7\n    pshufd      m6, %1, 00110001b\n    movd        %7, %1\n    punpckhqdq  %1, %1\n    movd        %8, m6\n    punpckhqdq  m6, m6\n    movd        %9, %1\n    movd       %10, m6\n%endmacro\n\n%macro SBUTTERFLY3 4\n    punpckh%1  %4, %2, %3\n    punpckl%1  %2, %3\n%endmacro\n\n; in: 8 rows of 8 (only the middle 6 pels are used) in %1..%8\n; out: 6 rows of 8 in [%9+0*16] .. [%9+5*16]\n%macro TRANSPOSE6x8_MEM 9\n    RESET_MM_PERMUTATION\n    movq  m0, %1\n    movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    movq  [%9+0x10], m3\n    SBUTTERFLY3 bw, m6, %8, m7\n    SBUTTERFLY wd, 0, 2, 3\n    SBUTTERFLY wd, 4, 6, 3\n    punpckhdq m0, m4\n    movq  [%9+0x00], m0\n    SBUTTERFLY3 wd, m1, [%9+0x10], m3\n    SBUTTERFLY wd, 5, 7, 0\n    SBUTTERFLY dq, 1, 5, 0\n    SBUTTERFLY dq, 2, 6, 0\n    punpckldq m3, m7\n    movq  [%9+0x10], m2\n    movq  [%9+0x20], m6\n    movq  [%9+0x30], m1\n    movq  [%9+0x40], m5\n    movq  [%9+0x50], m3\n    RESET_MM_PERMUTATION\n%endmacro\n\n; in: 8 rows of 8 in %1..%8\n; out: 8 rows of 8 in %9..%16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:3", "text": "SBUTTERFLY3 bw, m6, %8, m7\n    SBUTTERFLY wd, 0, 2, 3\n    SBUTTERFLY wd, 4, 6, 3\n    punpckhdq m0, m4\n    movq  [%9+0x00], m0\n    SBUTTERFLY3 wd, m1, [%9+0x10], m3\n    SBUTTERFLY wd, 5, 7, 0\n    SBUTTERFLY dq, 1, 5, 0\n    SBUTTERFLY dq, 2, 6, 0\n    punpckldq m3, m7\n    movq  [%9+0x10], m2\n    movq  [%9+0x20], m6\n    movq  [%9+0x30], m1\n    movq  [%9+0x40], m5\n    movq  [%9+0x50], m3\n    RESET_MM_PERMUTATION\n%endmacro\n\n; in: 8 rows of 8 in %1..%8\n; out: 8 rows of 8 in %9..%16\n%macro TRANSPOSE8x8_MEM 16\n    RESET_MM_PERMUTATION\n    movq  m0, %1\n    movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    SBUTTERFLY3 bw, m6, %8, m7\n    movq  %9,  m5\n    SBUTTERFLY wd, 0, 2, 5\n    SBUTTERFLY wd, 4, 6, 5\n    SBUTTERFLY wd, 1, 3, 5\n    movq  %11, m6\n    movq  m6,  %9\n    SBUTTERFLY wd, 6, 7, 5\n    SBUTTERFLY dq, 0, 4, 5\n    SBUTTERFLY dq, 1, 6, 5\n    movq  %9,  m0\n    movq  %10, m4\n    movq  %13, m1\n    movq  %14, m6\n    SBUTTERFLY3 dq, m2, %11, m0\n    SBUTTERFLY dq, 3, 7, 4\n    movq  %11, m2\n    movq  %12, m0\n    movq  %15, m3\n    movq  %16, m7\n    RESET_MM_PERMUTATION\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT 5\n%if avx_enabled == 0\n    mova    %5, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:4", "text": "SBUTTERFLY dq, 0, 4, 5\n    SBUTTERFLY dq, 1, 6, 5\n    movq  %9,  m0\n    movq  %10, m4\n    movq  %13, m1\n    movq  %14, m6\n    SBUTTERFLY3 dq, m2, %11, m0\n    SBUTTERFLY dq, 3, 7, 4\n    movq  %11, m2\n    movq  %12, m0\n    movq  %15, m3\n    movq  %16, m7\n    RESET_MM_PERMUTATION\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT 5\n%if avx_enabled == 0\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%else\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%endif\n    por     %4, %5\n    psubusb %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT2 5\n%if ARCH_X86_64\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%else\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1\n; clobbers: m4,m6\n%macro LOAD_MASK 2-3\n    movd     m4, %1\n    movd     m5, %2\n%if cpuflag(ssse3)\n    pxor     m6, m6\n    pshufb   m4, m6\n    pshufb   m5, m6\n%else\n    SPLATW   m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:5", "text": "psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1\n; clobbers: m4,m6\n%macro LOAD_MASK 2-3\n    movd     m4, %1\n    movd     m5, %2\n%if cpuflag(ssse3)\n    pxor     m6, m6\n    pshufb   m4, m6\n    pshufb   m5, m6\n%else\n    SPLATW   m4, m4\n    SPLATW   m5, m5\n    packuswb m4, m4  ; 16x alpha-1\n    packuswb m5, m5  ; 16x beta-1\n%endif\n%if %0>2\n    mova     %3, m4\n%endif\n    DIFF_GT  m1, m2, m4, m7, m6 ; |p0-q0| > alpha-1\n    DIFF_GT  m0, m1, m5, m4, m6 ; |p1-p0| > beta-1\n    por      m7, m4\n    DIFF_GT  m3, m2, m5, m4, m6 ; |q1-q0| > beta-1\n    por      m7, m4\n    pxor     m6, m6\n    pcmpeqb  m7, m6\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m4, m6, m3\n    psubusb m3, m6\n    pminub  m4, m7\n    pminub  m3, m7\n    psubusb m1, m4\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:6", "text": "pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m4, m6, m3\n    psubusb m3, m6\n    pminub  m4, m7\n    pminub  m3, m7\n    psubusb m1, m4\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m4\n%endmacro\n\n; in: m1=p0 m2=q0\n;     %1=p1 %2=q2 %3=[q2] %4=[q1] %5=tc0 %6=tmp\n; out: [q1] = clip( (q2+((p0+q0+1)>>1))>>1, q1-tc0, q1+tc0 )\n; clobbers: q2, tmp, tc0\n%macro LUMA_Q1 6\n    pavgb   %6, m1, m2\n    pavgb   %2, %6       ; avg(p2,avg(p0,q0))\n    pxor    %6, %3\n    pand    %6, [pb_1]   ; (p2^avg(p0,q0))&1\n    psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:7", "text": "; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [base3_q] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [base3_q], [base3_q + stride_q], m6, m4\n\n    movdqa  m4, [pix_q + 2*stride_q] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 5,9,8,0x60+16*WIN64\n    INIT_MMX cpuname\n    lea    r8,  [r1+r1*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n    mov    r7,  r1\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:8", "text": "DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 5,9,8,0x60+16*WIN64\n    INIT_MMX cpuname\n    lea    r8,  [r1+r1*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n    mov    r7,  r1\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r1, r8), pix_tmp\n    lea    r6, [r6+r1*8]\n    lea    r5, [r5+r1*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r1, r8), pix_tmp+8\n\n    ; vertical filter\n    ; alpha, beta, tc0 are still in r2d, r3d, r4\n    ; don't backup r6, r5, r7, r8 because deblock_v_luma_sse2 doesn't use them\n    lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    add    r6, 2\n    add    r5, 2\n\n    INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    punpckhbw  m4, m0, m1\n    punpckhbw  m5, m2, m3\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r6, r5, r7, r8)\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r6, r5, r7, r8)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:9", "text": "INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    punpckhbw  m4, m0, m1\n    punpckhbw  m5, m2, m3\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r6, r5, r7, r8)\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r6, r5, r7, r8)\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0\n\ncglobal deblock_h_luma_mbaff_8, 5, 9, 10, 8*16, pix_, stride_, alpha_, beta_, tc0_, base3_, stride3_\n    dec    alpha_d\n    dec    beta_d\n    mov    base3_q,    pix_q\n    lea    stride3_q, [3*stride_q]\n    add    base3_q,    stride3_q\n\n    movq m0, [pix_q - 4]\n    movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:10", "text": "TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5\n\n    LOAD_MASK alpha_d, beta_d\n    movd m8, [tc0_q]\n    punpcklbw m8, m8\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [rsp + 16] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%1], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%1] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    INIT_MMX cpuname\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": "psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    INIT_MMX cpuname\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_v_luma_8\n    ADD    esp, 20\n\n    INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    mov        r0, r0mp\n    punpcklbw  m4, m0, m1\n    sub        r0, 2\n    punpcklbw  m5, m2, m3\n    lea        r1, [r0+r4]\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r0, r1, r3, r4)\n\n    punpckhbw   m0, m1\n    lea    r0, [r0+r3*8]\n    punpckhbw   m2, m3\n    lea    r1, [r1+r3*8]\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r0, r1, r3, r4)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    mov        r0, r0mp\n    punpcklbw  m4, m0, m1\n    sub        r0, 2\n    punpcklbw  m5, m2, m3\n    lea        r1, [r0+r4]\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r0, r1, r3, r4)\n\n    punpckhbw   m0, m1\n    lea    r0, [r0+r3*8]\n    punpckhbw   m2, m3\n    lea    r1, [r1+r3*8]\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:15", "text": "mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0\n    pxor  t2, t0\n    pand  t2, mpb_1\n    psubb t0, t2 ; p1' = (p2+p1+p0+q0+2)/4;\n\n%if ARCH_X86_64\n    pavgb t1, p2, q1\n    psubb t2, p2, q1\n%else\n    mova  t1, p2\n    mova  t2, p2\n    pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:16", "text": "psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3\n    paddb t2, t1, p2\n    pavgb t1, p2\n    pavgb t1, t0 ; (p3+p2+1)/2 + (p2+p1+p0+q0+2)/4\n    paddb t2, t2\n    paddb t2, t4 ; 2*p3+3*p2+p1+p0+q0\n    psrlw t2, 2\n    pavgb t2, mpb_0\n    pxor  t2, t1\n    pand  t2, mpb_1\n    psubb t1, t2 ; p2' = (2*p3+3*p2+p1+p0+q0+4)/8\n\n    pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, ptrdiff_t stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    lea    r8,  [r1*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n    mov    r7,  r1\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r1, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r1*8]\n    lea    r5, [r5+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r1, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "lea    r6, [r6+r1*8]\n    lea    r5, [r5+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r1, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_v_luma_intra_8\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1176}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1176}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:6", "text": "pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m4, m6, m3\n    psubusb m3, m6\n    pminub  m4, m7\n    pminub  m3, m7\n    psubusb m1, m4\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m4\n%endmacro\n\n; in: m1=p0 m2=q0\n;     %1=p1 %2=q2 %3=[q2] %4=[q1] %5=tc0 %6=tmp\n; out: [q1] = clip( (q2+((p0+q0+1)>>1))>>1, q1-tc0, q1+tc0 )\n; clobbers: q2, tmp, tc0\n%macro LUMA_Q1 6\n    pavgb   %6, m1, m2\n    pavgb   %2, %6       ; avg(p2,avg(p0,q0))\n    pxor    %6, %3\n    pand    %6, [pb_1]   ; (p2^avg(p0,q0))&1\n    psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:7", "text": "; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [base3_q] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [base3_q], [base3_q + stride_q], m6, m4\n\n    movdqa  m4, [pix_q + 2*stride_q] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 5,9,8,0x60+16*WIN64\n    INIT_MMX cpuname\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:8", "text": "DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 5,9,8,0x60+16*WIN64\n    INIT_MMX cpuname\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp+8\n\n    ; vertical filter\n    ; alpha, beta, tc0 are still in r2d, r3d, r4\n    ; don't backup r6, r5, r7, r8 because deblock_v_luma_sse2 doesn't use them\n    lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    add    r6, 2\n    add    r5, 2\n\n    INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    punpckhbw  m4, m0, m1\n    punpckhbw  m5, m2, m3\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r6, r5, r7, r8)\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r6, r5, r7, r8)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:9", "text": "INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    punpckhbw  m4, m0, m1\n    punpckhbw  m5, m2, m3\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r6, r5, r7, r8)\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r6, r5, r7, r8)\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0\n\ncglobal deblock_h_luma_mbaff_8, 5, 9, 10, 8*16, pix_, stride_, alpha_, beta_, tc0_, base3_, stride3_\n    movsxd stride_q,   stride_d\n    dec    alpha_d\n    dec    beta_d\n    mov    base3_q,    pix_q\n    lea    stride3_q, [3*stride_q]\n    add    base3_q,    stride3_q\n\n    movq m0, [pix_q - 4]\n    movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:10", "text": "movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5\n\n    LOAD_MASK alpha_d, beta_d\n    movd m8, [tc0_q]\n    punpcklbw m8, m8\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [rsp + 16] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%1], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%1] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    INIT_MMX cpuname\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": "mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    INIT_MMX cpuname\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_v_luma_8\n    ADD    esp, 20\n\n    INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    mov        r0, r0mp\n    punpcklbw  m4, m0, m1\n    sub        r0, 2\n    punpcklbw  m5, m2, m3\n    lea        r1, [r0+r4]\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r0, r1, r3, r4)\n\n    punpckhbw   m0, m1\n    lea    r0, [r0+r3*8]\n    punpckhbw   m2, m3\n    lea    r1, [r1+r3*8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    ; the two middle rows are still in the proper registers\n    mova       m3, [pix_tmp+0x40]\n\n    mov        r0, r0mp\n    punpcklbw  m4, m0, m1\n    sub        r0, 2\n    punpcklbw  m5, m2, m3\n    lea        r1, [r0+r4]\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r0, r1, r3, r4)\n\n    punpckhbw   m0, m1\n    lea    r0, [r0+r3*8]\n    punpckhbw   m2, m3\n    lea    r1, [r1+r3*8]\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:15", "text": "%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0\n    pxor  t2, t0\n    pand  t2, mpb_1\n    psubb t0, t2 ; p1' = (p2+p1+p0+q0+2)/4;\n\n%if ARCH_X86_64\n    pavgb t1, p2, q1\n    psubb t2, p2, q1\n%else\n    mova  t1, p2\n    mova  t2, p2\n    pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:16", "text": "pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3\n    paddb t2, t1, p2\n    pavgb t1, p2\n    pavgb t1, t0 ; (p3+p2+1)/2 + (p2+p1+p0+q0+2)/4\n    paddb t2, t2\n    paddb t2, t4 ; 2*p3+3*p2+p1+p0+q0\n    psrlw t2, 2\n    pavgb t2, mpb_0\n    pxor  t2, t1\n    pand  t2, mpb_1\n    psubb t1, t2 ; p2' = (2*p3+3*p2+p1+p0+q0+4)/8\n\n    pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    movsxd r7,  r1d\n    lea    r8,  [r7*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_v_luma_intra_8\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "INIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1179}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "db66e057ebfe0c94a8340b6d3ac83ad173ef52e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/db66e057ebfe0c94a8340b6d3ac83ad173ef52e9/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1179}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:8", "text": "DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 5,9,8,0x60+16*WIN64\n    INIT_MMX cpuname\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp+8\n\n    ; vertical filter\n    ; alpha, beta, tc0 are still in r2d, r3d, r4\n    ; don't backup r6, r5, r7, r8 because deblock_v_luma_sse2 doesn't use them\n    lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    add    r6, 2\n    add    r5, 2\n\n    INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    mova       m1, [pix_tmp+0x20]\n    mova       m2, [pix_tmp+0x30]\n    mova       m3, [pix_tmp+0x40]\n\n    punpckhbw  m4, m0, m1\n    punpckhbw  m5, m2, m3\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r6, r5, r7, r8)\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:9", "text": "INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    mova       m1, [pix_tmp+0x20]\n    mova       m2, [pix_tmp+0x30]\n    mova       m3, [pix_tmp+0x40]\n\n    punpckhbw  m4, m0, m1\n    punpckhbw  m5, m2, m3\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r6, r5, r7, r8)\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r6, r5, r7, r8)\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0\n\ncglobal deblock_h_luma_mbaff_8, 5, 9, 10, 8*16, pix_, stride_, alpha_, beta_, tc0_, base3_, stride3_\n    movsxd stride_q,   stride_d\n    dec    alpha_d\n    dec    beta_d\n    mov    base3_q,    pix_q\n    lea    stride3_q, [3*stride_q]\n    add    base3_q,    stride3_q\n\n    movq m0, [pix_q - 4]\n    movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:10", "text": "movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5\n\n    LOAD_MASK alpha_d, beta_d\n    movd m8, [tc0_q]\n    punpcklbw m8, m8\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [rsp + 16] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "%else\n\n%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%1], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%1] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    INIT_MMX cpuname\n    mov    r0, r0mp\n    mov    r3, r1m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": "pand    m6, [esp] ; mask\n    mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    INIT_MMX cpuname\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_v_luma_8\n    ADD    esp, 20\n\n    INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    mova       m1, [pix_tmp+0x20]\n    mova       m2, [pix_tmp+0x30]\n    mova       m3, [pix_tmp+0x40]\n\n    mov        r0, r0mp\n    punpcklbw  m4, m0, m1\n    sub        r0, 2\n    punpcklbw  m5, m2, m3\n    lea        r1, [r0+r4]\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r0, r1, r3, r4)\n\n    punpckhbw   m0, m1\n    lea    r0, [r0+r3*8]\n    punpckhbw   m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "INIT_XMM cpuname\n\n    ; transpose 16x4 (only the middle 4 rows were changed by the filter)\n    mova       m0, [pix_tmp+0x10]\n    mova       m1, [pix_tmp+0x20]\n    mova       m2, [pix_tmp+0x30]\n    mova       m3, [pix_tmp+0x40]\n\n    mov        r0, r0mp\n    punpcklbw  m4, m0, m1\n    sub        r0, 2\n    punpcklbw  m5, m2, m3\n    lea        r1, [r0+r4]\n\n    TRANSPOSE8x4B_STORE m4, m5, PASS8ROWS(r0, r1, r3, r4)\n\n    punpckhbw   m0, m1\n    lea    r0, [r0+r3*8]\n    punpckhbw   m2, m3\n    lea    r1, [r1+r3*8]\n\n    TRANSPOSE8x4B_STORE m0, m2, PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:15", "text": "pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0\n    pxor  t2, t0\n    pand  t2, mpb_1\n    psubb t0, t2 ; p1' = (p2+p1+p0+q0+2)/4;\n\n%if ARCH_X86_64\n    pavgb t1, p2, q1\n    psubb t2, p2, q1\n%else\n    mova  t1, p2\n    mova  t2, p2\n    pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:16", "text": "psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3\n    paddb t2, t1, p2\n    pavgb t1, p2\n    pavgb t1, t0 ; (p3+p2+1)/2 + (p2+p1+p0+q0+2)/4\n    paddb t2, t2\n    paddb t2, t4 ; 2*p3+3*p2+p1+p0+q0\n    psrlw t2, 2\n    pavgb t2, mpb_0\n    pxor  t2, t1\n    pand  t2, mpb_1\n    psubb t1, t2 ; p2' = (2*p3+3*p2+p1+p0+q0+4)/8\n\n    pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    movsxd r7,  r1d\n    lea    r8,  [r7*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_v_luma_intra_8\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "8428a412bcda3dea67ced77f8732e9b771811889", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8428a412bcda3dea67ced77f8732e9b771811889/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1181}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized H.264 deblocking code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Loren Merritt <lorenm@u.washington.edu>\n;*          Fiona Glaser <fiona@x264.com>\n;*          Oskar Arvidsson <oskar@irock.se>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_A1: times 16 db 0xA1\npb_3_1: times 4 db 3, 1\n\nSECTION .text\n\ncextern pb_0\ncextern pb_1\ncextern pb_3\n\n; in: 4 rows of 8 bytes in m0..m3\n; out: 8 rows of 4 bytes in %1..%8\n%macro TRANSPOSE8x4B_STORE 8\n    punpckhdq  m4, m0, m0\n    punpckhdq  m5, m1, m1\n    punpckhdq  m6, m2, m2\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    punpcklwd  m1, m0, m2\n    punpckhwd  m0, m2\n    movh       %1, m1\n    punpckhdq  m1, m1\n    movh       %2, m1\n    movh       %3, m0\n    punpckhdq  m0, m0\n    movh       %4, m0\n\n    punpckhdq  m3, m3\n    punpcklbw  m4, m5\n    punpcklbw  m6, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:2", "text": "; out: 8 rows of 4 bytes in %1..%8\n%macro TRANSPOSE8x4B_STORE 8\n    punpckhdq  m4, m0, m0\n    punpckhdq  m5, m1, m1\n    punpckhdq  m6, m2, m2\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    punpcklwd  m1, m0, m2\n    punpckhwd  m0, m2\n    movh       %1, m1\n    punpckhdq  m1, m1\n    movh       %2, m1\n    movh       %3, m0\n    punpckhdq  m0, m0\n    movh       %4, m0\n\n    punpckhdq  m3, m3\n    punpcklbw  m4, m5\n    punpcklbw  m6, m3\n    punpcklwd  m5, m4, m6\n    punpckhwd  m4, m6\n    movh       %5, m5\n    punpckhdq  m5, m5\n    movh       %6, m5\n    movh       %7, m4\n    punpckhdq  m4, m4\n    movh       %8, m4\n%endmacro\n\n%macro SBUTTERFLY3 4\n    punpckh%1  %4, %2, %3\n    punpckl%1  %2, %3\n%endmacro\n\n; in: 8 rows of 8 (only the middle 6 pels are used) in %1..%8\n; out: 6 rows of 8 in [%9+0*16] .. [%9+5*16]\n%macro TRANSPOSE6x8_MEM 9\n    RESET_MM_PERMUTATION\n    movq  m0, %1\n    movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    movq  [%9+0x10], m3\n    SBUTTERFLY3 bw, m6, %8, m7\n    SBUTTERFLY wd, 0, 2, 3\n    SBUTTERFLY wd, 4, 6, 3\n    punpckhdq m0, m4\n    movq  [%9+0x00], m0\n    SBUTTERFLY3 wd, m1, [%9+0x10], m3\n    SBUTTERFLY wd, 5, 7, 0\n    SBUTTERFLY dq, 1, 5, 0\n    SBUTTERFLY dq, 2, 6, 0\n    punpckldq m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:3", "text": "movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    movq  [%9+0x10], m3\n    SBUTTERFLY3 bw, m6, %8, m7\n    SBUTTERFLY wd, 0, 2, 3\n    SBUTTERFLY wd, 4, 6, 3\n    punpckhdq m0, m4\n    movq  [%9+0x00], m0\n    SBUTTERFLY3 wd, m1, [%9+0x10], m3\n    SBUTTERFLY wd, 5, 7, 0\n    SBUTTERFLY dq, 1, 5, 0\n    SBUTTERFLY dq, 2, 6, 0\n    punpckldq m3, m7\n    movq  [%9+0x10], m2\n    movq  [%9+0x20], m6\n    movq  [%9+0x30], m1\n    movq  [%9+0x40], m5\n    movq  [%9+0x50], m3\n    RESET_MM_PERMUTATION\n%endmacro\n\n; in: 8 rows of 8 in %1..%8\n; out: 8 rows of 8 in %9..%16\n%macro TRANSPOSE8x8_MEM 16\n    RESET_MM_PERMUTATION\n    movq  m0, %1\n    movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    SBUTTERFLY3 bw, m6, %8, m7\n    movq  %9,  m5\n    SBUTTERFLY wd, 0, 2, 5\n    SBUTTERFLY wd, 4, 6, 5\n    SBUTTERFLY wd, 1, 3, 5\n    movq  %11, m6\n    movq  m6,  %9\n    SBUTTERFLY wd, 6, 7, 5\n    SBUTTERFLY dq, 0, 4, 5\n    SBUTTERFLY dq, 1, 6, 5\n    movq  %9,  m0\n    movq  %10, m4\n    movq  %13, m1\n    movq  %14, m6\n    SBUTTERFLY3 dq, m2, %11, m0\n    SBUTTERFLY dq, 3, 7, 4\n    movq  %11, m2\n    movq  %12, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:4", "text": "SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    SBUTTERFLY3 bw, m6, %8, m7\n    movq  %9,  m5\n    SBUTTERFLY wd, 0, 2, 5\n    SBUTTERFLY wd, 4, 6, 5\n    SBUTTERFLY wd, 1, 3, 5\n    movq  %11, m6\n    movq  m6,  %9\n    SBUTTERFLY wd, 6, 7, 5\n    SBUTTERFLY dq, 0, 4, 5\n    SBUTTERFLY dq, 1, 6, 5\n    movq  %9,  m0\n    movq  %10, m4\n    movq  %13, m1\n    movq  %14, m6\n    SBUTTERFLY3 dq, m2, %11, m0\n    SBUTTERFLY dq, 3, 7, 4\n    movq  %11, m2\n    movq  %12, m0\n    movq  %15, m3\n    movq  %16, m7\n    RESET_MM_PERMUTATION\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT 5\n%if avx_enabled == 0\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%else\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%endif\n    por     %4, %5\n    psubusb %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT2 5\n%if ARCH_X86_64\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%else\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:5", "text": "; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT2 5\n%if ARCH_X86_64\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%else\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1\n; clobbers: m4,m6\n%macro LOAD_MASK 2-3\n    movd     m4, %1\n    movd     m5, %2\n%if cpuflag(ssse3)\n    pxor     m6, m6\n    pshufb   m4, m6\n    pshufb   m5, m6\n%else\n    SPLATW   m4, m4\n    SPLATW   m5, m5\n    packuswb m4, m4  ; 16x alpha-1\n    packuswb m5, m5  ; 16x beta-1\n%endif\n%if %0>2\n    mova     %3, m4\n%endif\n    DIFF_GT  m1, m2, m4, m7, m6 ; |p0-q0| > alpha-1\n    DIFF_GT  m0, m1, m5, m4, m6 ; |p1-p0| > beta-1\n    por      m7, m4\n    DIFF_GT  m3, m2, m5, m4, m6 ; |q1-q0| > beta-1\n    por      m7, m4\n    pxor     m6, m6\n    pcmpeqb  m7, m6\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:6", "text": "DIFF_GT  m3, m2, m5, m4, m6 ; |q1-q0| > beta-1\n    por      m7, m4\n    pxor     m6, m6\n    pcmpeqb  m7, m6\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m4, m6, m3\n    psubusb m3, m6\n    pminub  m4, m7\n    pminub  m3, m7\n    psubusb m1, m4\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m4\n%endmacro\n\n; in: m1=p0 m2=q0\n;     %1=p1 %2=q2 %3=[q2] %4=[q1] %5=tc0 %6=tmp\n; out: [q1] = clip( (q2+((p0+q0+1)>>1))>>1, q1-tc0, q1+tc0 )\n; clobbers: q2, tmp, tc0\n%macro LUMA_Q1 6\n    pavgb   %6, m1, m2\n    pavgb   %2, %6       ; avg(p2,avg(p0,q0))\n    pxor    %6, %3\n    pand    %6, [pb_1]   ; (p2^avg(p0,q0))&1\n    psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:7", "text": "psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [base3_q] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [base3_q], [base3_q + stride_q], m6, m4\n\n    movdqa  m4, [pix_q + 2*stride_q] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:8", "text": "LUMA_Q1 m0, m3, [base3_q], [base3_q + stride_q], m6, m4\n\n    movdqa  m4, [pix_q + 2*stride_q] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 5,9,0,0x60+16*WIN64\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp+8\n\n    ; vertical filter\n    ; alpha, beta, tc0 are still in r2d, r3d, r4\n    ; don't backup r6, r5, r7, r8 because deblock_v_luma_sse2 doesn't use them\n    lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    add    r6, 2\n    add    r5, 2\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:9", "text": "lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    add    r6, 2\n    add    r5, 2\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0\n\ncglobal deblock_h_luma_mbaff_8, 5, 9, 10, 8*16, pix_, stride_, alpha_, beta_, tc0_, base3_, stride3_\n    movsxd stride_q,   stride_d\n    dec    alpha_d\n    dec    beta_d\n    mov    base3_q,    pix_q\n    lea    stride3_q, [3*stride_q]\n    add    base3_q,    stride3_q\n\n    movq m0, [pix_q - 4]\n    movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:10", "text": "movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5\n\n    LOAD_MASK alpha_d, beta_d\n    movd m8, [tc0_q]\n    punpcklbw m8, m8\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [rsp + 16] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "INIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 1\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, ptrdiff_t stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_8, 5,5,8,2*%1\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%1], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%1] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": "pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%1] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_v_luma_8\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_v_luma_8\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:15", "text": "%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0\n    pxor  t2, t0\n    pand  t2, mpb_1\n    psubb t0, t2 ; p1' = (p2+p1+p0+q0+2)/4;\n\n%if ARCH_X86_64\n    pavgb t1, p2, q1\n    psubb t2, p2, q1\n%else\n    mova  t1, p2\n    mova  t2, p2\n    pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:16", "text": "pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3\n    paddb t2, t1, p2\n    pavgb t1, p2\n    pavgb t1, t0 ; (p3+p2+1)/2 + (p2+p1+p0+q0+2)/4\n    paddb t2, t2\n    paddb t2, t4 ; 2*p3+3*p2+p1+p0+q0\n    psrlw t2, 2\n    pavgb t2, mpb_0\n    pxor  t2, t1\n    pand  t2, mpb_1\n    psubb t1, t2 ; p2' = (2*p3+3*p2+p1+p0+q0+4)/8\n\n    pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_v_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_v_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    movsxd r7,  r1d\n    lea    r8,  [r7*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_v_luma_intra_8\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "9882973935a28939ef5dc253ac93da58c65feb1b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9882973935a28939ef5dc253ac93da58c65feb1b/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1182}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:6", "text": "DIFF_GT  m3, m2, m5, m4, m6 ; |q1-q0| > beta-1\n    por      m7, m4\n    pxor     m6, m6\n    pcmpeqb  m7, m6\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m6, m3\n    psubusb m3, [pb_A1]\n    pminub  m6, m7\n    pminub  m3, m7\n    psubusb m1, m6\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m6\n%endmacro\n\n; in: m1=p0 m2=q0\n;     %1=p1 %2=q2 %3=[q2] %4=[q1] %5=tc0 %6=tmp\n; out: [q1] = clip( (q2+((p0+q0+1)>>1))>>1, q1-tc0, q1+tc0 )\n; clobbers: q2, tmp, tc0\n%macro LUMA_Q1 6\n    pavgb   %6, m1, m2\n    pavgb   %2, %6       ; avg(p2,avg(p0,q0))\n    pxor    %6, %3\n    pand    %6, [pb_1]   ; (p2^avg(p0,q0))&1\n    psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "b1140d3c982e0720d2dd638f2d7ae0ca6552ac13", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1140d3c982e0720d2dd638f2d7ae0ca6552ac13/libavcodec/x86/h264_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 2\n;-----------------------------------------------------------------------------\n; void ff_deblock_v8_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                         int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_%1_luma_8, 5,5,8,2*%2\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "INIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 2\n;-----------------------------------------------------------------------------\n; void ff_deblock_v8_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                         int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_%1_luma_8, 5,5,8,2*%2\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%2], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%2] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%2] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": "pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%2] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_%1_luma_8\n%ifidn %1, v8\n    add    dword [esp   ], 8 ; pix_tmp+0x38\n    add    dword [esp+16], 2 ; tc0+2\n    call   deblock_%1_luma_8\n%endif\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_%1_luma_8\n%ifidn %1, v8\n    add    dword [esp   ], 8 ; pix_tmp+0x38\n    add    dword [esp+16], 2 ; tc0+2\n    call   deblock_%1_luma_8\n%endif\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA v, 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA v, 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:15", "text": "%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0\n    pxor  t2, t0\n    pand  t2, mpb_1\n    psubb t0, t2 ; p1' = (p2+p1+p0+q0+2)/4;\n\n%if ARCH_X86_64\n    pavgb t1, p2, q1\n    psubb t2, p2, q1\n%else\n    mova  t1, p2\n    mova  t2, p2\n    pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:16", "text": "pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3\n    paddb t2, t1, p2\n    pavgb t1, p2\n    pavgb t1, t0 ; (p3+p2+1)/2 + (p2+p1+p0+q0+2)/4\n    paddb t2, t2\n    paddb t2, t4 ; 2*p3+3*p2+p1+p0+q0\n    psrlw t2, 2\n    pavgb t2, mpb_0\n    pxor  t2, t1\n    pand  t2, mpb_1\n    psubb t1, t2 ; p2' = (2*p3+3*p2+p1+p0+q0+4)/8\n\n    pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_%1_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_%1_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    movsxd r7,  r1d\n    lea    r8,  [r7*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_%1_luma_intra_8\n%ifidn %1, v8\n    add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_%1_luma_intra_8\n%ifidn %1, v8\n    add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": ";-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "899475326b0983bc9970330acee7bb3e4f44a00c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/899475326b0983bc9970330acee7bb3e4f44a00c/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1191}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:5", "text": "; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT2 5\n%if ARCH_X86_64\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%else\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1\n; clobbers: m4,m6\n%macro LOAD_MASK 2-3\n    movd     m4, %1\n    movd     m5, %2\n    SPLATW   m4, m4\n    SPLATW   m5, m5\n    packuswb m4, m4  ; 16x alpha-1\n    packuswb m5, m5  ; 16x beta-1\n%if %0>2\n    mova     %3, m4\n%endif\n    DIFF_GT  m1, m2, m4, m7, m6 ; |p0-q0| > alpha-1\n    DIFF_GT  m0, m1, m5, m4, m6 ; |p1-p0| > beta-1\n    por      m7, m4\n    DIFF_GT  m3, m2, m5, m4, m6 ; |q1-q0| > beta-1\n    por      m7, m4\n    pxor     m6, m6\n    pcmpeqb  m7, m6\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m6, m3\n    psubusb m3, [pb_A1]\n    pminub  m6, m7\n    pminub  m3, m7\n    psubusb m1, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:6", "text": "; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m6, m3\n    psubusb m3, [pb_A1]\n    pminub  m6, m7\n    pminub  m3, m7\n    psubusb m1, m6\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m6\n%endmacro\n\n; in: m1=p0 m2=q0\n;     %1=p1 %2=q2 %3=[q2] %4=[q1] %5=tc0 %6=tmp\n; out: [q1] = clip( (q2+((p0+q0+1)>>1))>>1, q1-tc0, q1+tc0 )\n; clobbers: q2, tmp, tc0\n%macro LUMA_Q1 6\n    pavgb   %6, m1, m2\n    pavgb   %2, %6       ; avg(p2,avg(p0,q0))\n    pxor    %6, %3\n    pand    %6, [pb_1]   ; (p2^avg(p0,q0))&1\n    psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:7", "text": "%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [base3_q] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [base3_q], [base3_q + stride_q], m6, m4\n\n    movdqa  m4, [pix_q + 2*stride_q] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 5,9,0,0x60+16*WIN64\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:8", "text": "psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 5,9,0,0x60+16*WIN64\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp+8\n\n    ; vertical filter\n    ; alpha, beta, tc0 are still in r2d, r3d, r4\n    ; don't backup r6, r5, r7, r8 because deblock_v_luma_sse2 doesn't use them\n    lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    add    r6, 2\n    add    r5, 2\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:9", "text": "; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    add    r6, 2\n    add    r5, 2\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0\n\ncglobal deblock_h_luma_mbaff_8, 5, 9, 10, 8*16, pix_, stride_, alpha_, beta_, tc0_, base3_, stride3_\n    movsxd stride_q,   stride_d\n    dec    alpha_d\n    dec    beta_d\n    mov    base3_q,    pix_q\n    lea    stride3_q, [3*stride_q]\n    add    base3_q,    stride3_q\n\n    movq m0, [pix_q - 4]\n    movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 2\n;-----------------------------------------------------------------------------\n; void ff_deblock_v8_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                         int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_%1_luma_8, 5,5,8,2*%2\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "%macro DEBLOCK_LUMA 2\n;-----------------------------------------------------------------------------\n; void ff_deblock_v8_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                         int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_%1_luma_8, 5,5,8,2*%2\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%2], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%2] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%2] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": "mova    m5, [esp+%2] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_%1_luma_8\n%ifidn %1, v8\n    add    dword [esp   ], 8 ; pix_tmp+0x38\n    add    dword [esp+16], 2 ; tc0+2\n    call   deblock_%1_luma_8\n%endif\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "add    dword [esp+16], 2 ; tc0+2\n    call   deblock_%1_luma_8\n%endif\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA v, 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA v, 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_%1_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_%1_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_%1_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_%1_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    neg     r4\n    dec     r3d        ; beta-1\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_%1_luma_intra_8\n%ifidn %1, v8\n    add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a22149ab3d2f7e9e66ae0b82f8fc0861eec7d98b/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1185}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_%1_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_%1_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    jl .end\n    neg     r4\n    dec     r3d        ; beta-1\n    jl .end\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n.end:\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    movsxd r7,  r1d\n    lea    r8,  [r7*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_%1_luma_intra_8\n%ifidn %1, v8\n    add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "PUSH   r0\n    call   deblock_%1_luma_intra_8\n%ifidn %1, v8\n    add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "%rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "RET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "982244818bd5e543f042cb49a0a74155d4bd1430", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982244818bd5e543f042cb49a0a74155d4bd1430/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1188}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized H.264 deblocking code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Loren Merritt <lorenm@u.washington.edu>\n;*          Fiona Glaser <fiona@x264.com>\n;*          Oskar Arvidsson <oskar@irock.se>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_A1: times 16 db 0xA1\npb_3_1: times 4 db 3, 1\n\nSECTION .text\n\ncextern pb_0\ncextern pb_1\ncextern pb_3\n\n%define PASS8ROWS(base, base3, stride, stride3, offset) \\\n    PASS8ROWS(base+offset, base3+offset, stride, stride3)\n\n; in: 8 rows of 4 bytes in %4..%11\n; out: 4 rows of 8 bytes in m0..m3\n%macro TRANSPOSE4x8_LOAD 11\n    movh       m0, %4\n    movh       m2, %5\n    movh       m1, %6\n    movh       m3, %7\n    punpckl%1  m0, m2\n    punpckl%1  m1, m3\n    mova       m2, m0\n    punpckl%2  m0, m1\n    punpckh%2  m2, m1\n\n    movh       m4, %8\n    movh       m6, %9\n    movh       m5, %10\n    movh       m7, %11\n    punpckl%1  m4, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:2", "text": "PASS8ROWS(base+offset, base3+offset, stride, stride3)\n\n; in: 8 rows of 4 bytes in %4..%11\n; out: 4 rows of 8 bytes in m0..m3\n%macro TRANSPOSE4x8_LOAD 11\n    movh       m0, %4\n    movh       m2, %5\n    movh       m1, %6\n    movh       m3, %7\n    punpckl%1  m0, m2\n    punpckl%1  m1, m3\n    mova       m2, m0\n    punpckl%2  m0, m1\n    punpckh%2  m2, m1\n\n    movh       m4, %8\n    movh       m6, %9\n    movh       m5, %10\n    movh       m7, %11\n    punpckl%1  m4, m6\n    punpckl%1  m5, m7\n    mova       m6, m4\n    punpckl%2  m4, m5\n    punpckh%2  m6, m5\n\n    punpckh%3  m1, m0, m4\n    punpckh%3  m3, m2, m6\n    punpckl%3  m0, m4\n    punpckl%3  m2, m6\n%endmacro\n\n; in: 4 rows of 8 bytes in m0..m3\n; out: 8 rows of 4 bytes in %1..%8\n%macro TRANSPOSE8x4B_STORE 8\n    punpckhdq  m4, m0, m0\n    punpckhdq  m5, m1, m1\n    punpckhdq  m6, m2, m2\n\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    punpcklwd  m1, m0, m2\n    punpckhwd  m0, m2\n    movh       %1, m1\n    punpckhdq  m1, m1\n    movh       %2, m1\n    movh       %3, m0\n    punpckhdq  m0, m0\n    movh       %4, m0\n\n    punpckhdq  m3, m3\n    punpcklbw  m4, m5\n    punpcklbw  m6, m3\n    punpcklwd  m5, m4, m6\n    punpckhwd  m4, m6\n    movh       %5, m5\n    punpckhdq  m5, m5\n    movh       %6, m5\n    movh       %7, m4\n    punpckhdq  m4, m4\n    movh       %8, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:3", "text": "punpcklwd  m1, m0, m2\n    punpckhwd  m0, m2\n    movh       %1, m1\n    punpckhdq  m1, m1\n    movh       %2, m1\n    movh       %3, m0\n    punpckhdq  m0, m0\n    movh       %4, m0\n\n    punpckhdq  m3, m3\n    punpcklbw  m4, m5\n    punpcklbw  m6, m3\n    punpcklwd  m5, m4, m6\n    punpckhwd  m4, m6\n    movh       %5, m5\n    punpckhdq  m5, m5\n    movh       %6, m5\n    movh       %7, m4\n    punpckhdq  m4, m4\n    movh       %8, m4\n%endmacro\n\n%macro TRANSPOSE4x8B_LOAD 8\n    TRANSPOSE4x8_LOAD bw, wd, dq, %1, %2, %3, %4, %5, %6, %7, %8\n%endmacro\n\n%macro SBUTTERFLY3 4\n    punpckh%1  %4, %2, %3\n    punpckl%1  %2, %3\n%endmacro\n\n; in: 8 rows of 8 (only the middle 6 pels are used) in %1..%8\n; out: 6 rows of 8 in [%9+0*16] .. [%9+5*16]\n%macro TRANSPOSE6x8_MEM 9\n    RESET_MM_PERMUTATION\n    movq  m0, %1\n    movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    movq  [%9+0x10], m3\n    SBUTTERFLY3 bw, m6, %8, m7\n    SBUTTERFLY wd, 0, 2, 3\n    SBUTTERFLY wd, 4, 6, 3\n    punpckhdq m0, m4\n    movq  [%9+0x00], m0\n    SBUTTERFLY3 wd, m1, [%9+0x10], m3\n    SBUTTERFLY wd, 5, 7, 0\n    SBUTTERFLY dq, 1, 5, 0\n    SBUTTERFLY dq, 2, 6, 0\n    punpckldq m3, m7\n    movq  [%9+0x10], m2\n    movq  [%9+0x20], m6\n    movq  [%9+0x30], m1\n    movq  [%9+0x40], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:4", "text": "movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    movq  [%9+0x10], m3\n    SBUTTERFLY3 bw, m6, %8, m7\n    SBUTTERFLY wd, 0, 2, 3\n    SBUTTERFLY wd, 4, 6, 3\n    punpckhdq m0, m4\n    movq  [%9+0x00], m0\n    SBUTTERFLY3 wd, m1, [%9+0x10], m3\n    SBUTTERFLY wd, 5, 7, 0\n    SBUTTERFLY dq, 1, 5, 0\n    SBUTTERFLY dq, 2, 6, 0\n    punpckldq m3, m7\n    movq  [%9+0x10], m2\n    movq  [%9+0x20], m6\n    movq  [%9+0x30], m1\n    movq  [%9+0x40], m5\n    movq  [%9+0x50], m3\n    RESET_MM_PERMUTATION\n%endmacro\n\n; in: 8 rows of 8 in %1..%8\n; out: 8 rows of 8 in %9..%16\n%macro TRANSPOSE8x8_MEM 16\n    RESET_MM_PERMUTATION\n    movq  m0, %1\n    movq  m1, %2\n    movq  m2, %3\n    movq  m3, %4\n    movq  m4, %5\n    movq  m5, %6\n    movq  m6, %7\n    SBUTTERFLY bw, 0, 1, 7\n    SBUTTERFLY bw, 2, 3, 7\n    SBUTTERFLY bw, 4, 5, 7\n    SBUTTERFLY3 bw, m6, %8, m7\n    movq  %9,  m5\n    SBUTTERFLY wd, 0, 2, 5\n    SBUTTERFLY wd, 4, 6, 5\n    SBUTTERFLY wd, 1, 3, 5\n    movq  %11, m6\n    movq  m6,  %9\n    SBUTTERFLY wd, 6, 7, 5\n    SBUTTERFLY dq, 0, 4, 5\n    SBUTTERFLY dq, 1, 6, 5\n    movq  %9,  m0\n    movq  %10, m4\n    movq  %13, m1\n    movq  %14, m6\n    SBUTTERFLY3 dq, m2, %11, m0\n    SBUTTERFLY dq, 3, 7, 4\n    movq  %11, m2\n    movq  %12, m0\n    movq  %15, m3\n    movq  %16, m7\n    RESET_MM_PERMUTATION\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:5", "text": "SBUTTERFLY wd, 0, 2, 5\n    SBUTTERFLY wd, 4, 6, 5\n    SBUTTERFLY wd, 1, 3, 5\n    movq  %11, m6\n    movq  m6,  %9\n    SBUTTERFLY wd, 6, 7, 5\n    SBUTTERFLY dq, 0, 4, 5\n    SBUTTERFLY dq, 1, 6, 5\n    movq  %9,  m0\n    movq  %10, m4\n    movq  %13, m1\n    movq  %14, m6\n    SBUTTERFLY3 dq, m2, %11, m0\n    SBUTTERFLY dq, 3, 7, 4\n    movq  %11, m2\n    movq  %12, m0\n    movq  %15, m3\n    movq  %16, m7\n    RESET_MM_PERMUTATION\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT 5\n%if avx_enabled == 0\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%else\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%endif\n    por     %4, %5\n    psubusb %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|>%3\n; clobbers: %5\n%macro DIFF_GT2 5\n%if ARCH_X86_64\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%else\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1\n; clobbers: m4,m6\n%macro LOAD_MASK 2-3\n    movd     m4, %1\n    movd     m5, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:6", "text": "%if ARCH_X86_64\n    psubusb %5, %2, %1\n    psubusb %4, %1, %2\n%else\n    mova    %5, %2\n    mova    %4, %1\n    psubusb %5, %1\n    psubusb %4, %2\n%endif\n    psubusb %5, %3\n    psubusb %4, %3\n    pcmpeqb %4, %5\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 %1=alpha-1 %2=beta-1\n; out: m5=beta-1, m7=mask, %3=alpha-1\n; clobbers: m4,m6\n%macro LOAD_MASK 2-3\n    movd     m4, %1\n    movd     m5, %2\n    SPLATW   m4, m4\n    SPLATW   m5, m5\n    packuswb m4, m4  ; 16x alpha-1\n    packuswb m5, m5  ; 16x beta-1\n%if %0>2\n    mova     %3, m4\n%endif\n    DIFF_GT  m1, m2, m4, m7, m6 ; |p0-q0| > alpha-1\n    DIFF_GT  m0, m1, m5, m4, m6 ; |p1-p0| > beta-1\n    por      m7, m4\n    DIFF_GT  m3, m2, m5, m4, m6 ; |q1-q0| > beta-1\n    por      m7, m4\n    pxor     m6, m6\n    pcmpeqb  m7, m6\n%endmacro\n\n; in: m0=p1 m1=p0 m2=q0 m3=q1 m7=(tc&mask)\n; out: m1=p0' m2=q0'\n; clobbers: m0,3-6\n%macro DEBLOCK_P0_Q0 0\n    pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m6, m3\n    psubusb m3, [pb_A1]\n    pminub  m6, m7\n    pminub  m3, m7\n    psubusb m1, m6\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m6\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:7", "text": "pcmpeqb m4, m4\n    pxor    m5, m1, m2   ; p0^q0\n    pxor    m3, m4\n    pand    m5, [pb_1]   ; (p0^q0)&1\n    pavgb   m3, m0       ; (p1 - q1 + 256)>>1\n    pxor    m4, m1\n    pavgb   m3, [pb_3]   ; (((p1 - q1 + 256)>>1)+4)>>1 = 64+2+(p1-q1)>>2\n    pavgb   m4, m2       ; (q0 - p0 + 256)>>1\n    pavgb   m3, m5\n    mova    m6, [pb_A1]\n    paddusb m3, m4       ; d+128+33\n    psubusb m6, m3\n    psubusb m3, [pb_A1]\n    pminub  m6, m7\n    pminub  m3, m7\n    psubusb m1, m6\n    psubusb m2, m3\n    paddusb m1, m3\n    paddusb m2, m6\n%endmacro\n\n; in: m1=p0 m2=q0\n;     %1=p1 %2=q2 %3=[q2] %4=[q1] %5=tc0 %6=tmp\n; out: [q1] = clip( (q2+((p0+q0+1)>>1))>>1, q1-tc0, q1+tc0 )\n; clobbers: q2, tmp, tc0\n%macro LUMA_Q1 6\n    pavgb   %6, m1, m2\n    pavgb   %2, %6       ; avg(p2,avg(p0,q0))\n    pxor    %6, %3\n    pand    %6, [pb_1]   ; (p2^avg(p0,q0))&1\n    psubusb %2, %6       ; (p2+((p0+q0+1)>>1))>>1\n    psubusb %6, %1, %5\n    paddusb %5, %1\n    pmaxub  %2, %6\n    pminub  %2, %5\n    mova    %4, %2\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:8", "text": "; void ff_deblock_v_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA 0\ncglobal deblock_v_luma_8, 5,5,10, pix_, stride_, alpha_, beta_, base3_\n    movd    m8, [r4] ; tc0\n    lea     r4, [stride_q*3]\n    dec     alpha_d        ; alpha-1\n    neg     r4\n    dec     beta_d        ; beta-1\n    add     base3_q, pix_q     ; pix-3*stride\n\n    mova    m0, [base3_q + stride_q]   ; p1\n    mova    m1, [base3_q + 2*stride_q] ; p0\n    mova    m2, [pix_q]      ; q0\n    mova    m3, [pix_q + stride_q]   ; q1\n    LOAD_MASK r2d, r3d\n\n    punpcklbw m8, m8\n    punpcklbw m8, m8 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [base3_q] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [base3_q], [base3_q + stride_q], m6, m4\n\n    movdqa  m4, [pix_q + 2*stride_q] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [pix_q + stride_q]\n    LUMA_Q1 m3, m4, [pix_q + 2*stride_q], [pix_q + stride_q], m8, m6\n\n    DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 5,9,0,0x60+16*WIN64\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:9", "text": "DEBLOCK_P0_Q0\n    mova    [base3_q + 2*stride_q], m1\n    mova    [pix_q], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 5,9,0,0x60+16*WIN64\n    movsxd r7,  r1d\n    lea    r8,  [r7+r7*2]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x30 ; shadow space + r4\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r6, r5, r7, r8), pix_tmp+8\n\n    ; vertical filter\n    ; alpha, beta, tc0 are still in r2d, r3d, r4\n    ; don't backup r6, r5, r7, r8 because deblock_v_luma_sse2 doesn't use them\n    lea    r0, [pix_tmp+0x30]\n    mov    r1d, 0x10\n%if WIN64\n    mov    [rsp+0x20], r4\n%endif\n    call   deblock_v_luma_8\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    add    r6, 2\n    add    r5, 2\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:10", "text": "movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r6, r5, r7, r8)\n\n    RET\n%endmacro\n\n%macro DEBLOCK_H_LUMA_MBAFF 0\n\ncglobal deblock_h_luma_mbaff_8, 5, 9, 10, 8*16, pix_, stride_, alpha_, beta_, tc0_, base3_, stride3_\n    movsxd stride_q,   stride_d\n    dec    alpha_d\n    dec    beta_d\n    mov    base3_q,    pix_q\n    lea    stride3_q, [3*stride_q]\n    add    base3_q,    stride3_q\n\n    movq m0, [pix_q - 4]\n    movq m1, [pix_q + stride_q - 4]\n    movq m2, [pix_q + 2*stride_q - 4]\n    movq m3, [base3_q - 4]\n    movq m4, [base3_q + stride_q - 4]\n    movq m5, [base3_q + 2*stride_q - 4]\n    movq m6, [base3_q + stride3_q - 4]\n    movq m7, [base3_q + 4*stride_q - 4]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n\n    %assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5\n\n    LOAD_MASK alpha_d, beta_d\n    movd m8, [tc0_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:11", "text": "%assign i 0\n    %rep 8\n        movq [rsp + 16*i], m %+ i\n        %assign i i+1\n    %endrep\n\n    ; p2 = m1 [rsp + 16]\n    ; p1 = m2 [rsp + 32]\n    ; p0 = m3 [rsp + 48]\n    ; q0 = m4 [rsp + 64]\n    ; q1 = m5 [rsp + 80]\n    ; q2 = m6 [rsp + 96]\n\n    SWAP 0, 2\n    SWAP 1, 3\n    SWAP 2, 4\n    SWAP 3, 5\n\n    LOAD_MASK alpha_d, beta_d\n    movd m8, [tc0_q]\n    punpcklbw m8, m8\n    pcmpeqb m9, m9\n    pcmpeqb m9, m8\n    pandn   m9, m7\n    pand    m8, m9\n\n    movdqa  m3, [rsp + 16] ; p2\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m9\n    psubb   m7, m8, m6\n    pand    m6, m8\n    LUMA_Q1 m0, m3, [rsp + 16], [rsp + 32], m6, m4\n\n    movdqa  m4, [rsp + 96] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, m9\n    pand    m8, m6\n    psubb   m7, m6\n    mova    m3, [rsp + 80]\n    LUMA_Q1 m3, m4, [rsp + 96], [rsp + 80], m8, m6\n\n    DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:12", "text": "DEBLOCK_P0_Q0\n    SWAP 1, 3\n    SWAP 2, 4\n    movq m0, [rsp]\n    movq m1, [rsp + 16]\n    movq m2, [rsp + 32]\n    movq m5, [rsp + 80]\n    movq m6, [rsp + 96]\n    movq m7, [rsp + 112]\n\n    TRANSPOSE_8X8B 0,1,2,3,4,5,6,7\n    movq [pix_q - 4], m0\n    movq [pix_q + stride_q - 4], m1\n    movq [pix_q + 2*stride_q - 4], m2\n    movq [base3_q - 4], m3\n    movq [base3_q + stride_q - 4], m4\n    movq [base3_q + 2*stride_q - 4], m5\n    movq [base3_q + stride3_q - 4], m6\n    movq [base3_q + 4*stride_q - 4], m7\n\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_H_LUMA_MBAFF\nDEBLOCK_LUMA\n%endif\n\n%else\n\n%macro DEBLOCK_LUMA 2\n;-----------------------------------------------------------------------------\n; void ff_deblock_v8_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                         int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_%1_luma_8, 5,5,8,2*%2\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:13", "text": ";                         int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_%1_luma_8, 5,5,8,2*%2\n    lea     r4, [r1*3]\n    dec     r2     ; alpha-1\n    neg     r4\n    dec     r3     ; beta-1\n    add     r4, r0 ; pix-3*stride\n\n    mova    m0, [r4+r1]   ; p1\n    mova    m1, [r4+2*r1] ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LOAD_MASK r2, r3\n\n    mov     r3, r4mp\n    pcmpeqb m3, m3\n    movd    m4, [r3] ; tc0\n    punpcklbw m4, m4\n    punpcklbw m4, m4 ; tc = 4x tc0[3], 4x tc0[2], 4x tc0[1], 4x tc0[0]\n    mova   [esp+%2], m4 ; tc\n    pcmpgtb m4, m3\n    mova    m3, [r4] ; p2\n    pand    m4, m7\n    mova   [esp], m4 ; mask\n\n    DIFF_GT2 m1, m3, m5, m6, m7 ; |p2-p0| > beta-1\n    pand    m6, m4\n    pand    m4, [esp+%2] ; tc\n    psubb   m7, m4, m6\n    pand    m6, m4\n    LUMA_Q1 m0, m3, [r4], [r4+r1], m6, m4\n\n    mova    m4, [r0+2*r1] ; q2\n    DIFF_GT2 m2, m4, m5, m6, m3 ; |q2-q0| > beta-1\n    pand    m6, [esp] ; mask\n    mova    m5, [esp+%2] ; tc\n    psubb   m7, m6\n    pand    m5, m6\n    mova    m3, [r0+r1]\n    LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:14", "text": "LUMA_Q1 m3, m4, [r0+2*r1], [r0+r1], m5, m6\n\n    DEBLOCK_P0_Q0\n    mova    [r4+2*r1], m1\n    mova    [r0], m2\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma(uint8_t *pix, int stride, int alpha, int beta,\n;                        int8_t *tc0)\n;-----------------------------------------------------------------------------\nINIT_MMX cpuname\ncglobal deblock_h_luma_8, 0,5,8,0x60+12\n    mov    r0, r0mp\n    mov    r3, r1m\n    lea    r4, [r3*3]\n    sub    r0, 4\n    lea    r1, [r0+r4]\n%define pix_tmp esp+12\n\n    ; transpose 6x16 -> tmp space\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    TRANSPOSE6x8_MEM  PASS8ROWS(r0, r1, r3, r4), pix_tmp+8\n\n    ; vertical filter\n    lea    r0, [pix_tmp+0x30]\n    PUSH   dword r4m\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   dword r0\n    call   deblock_%1_luma_8\n%ifidn %1, v8\n    add    dword [esp   ], 8 ; pix_tmp+0x38\n    add    dword [esp+16], 2 ; tc0+2\n    call   deblock_%1_luma_8\n%endif\n    ADD    esp, 20\n\n    ; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:15", "text": "; transpose 16x4 -> original space  (only the middle 4 rows were changed by the filter)\n    mov    r0, r0mp\n    sub    r0, 2\n\n    movq   m0, [pix_tmp+0x10]\n    movq   m1, [pix_tmp+0x20]\n    lea    r1, [r0+r4]\n    movq   m2, [pix_tmp+0x30]\n    movq   m3, [pix_tmp+0x40]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    lea    r0, [r0+r3*8]\n    lea    r1, [r1+r3*8]\n    movq   m0, [pix_tmp+0x18]\n    movq   m1, [pix_tmp+0x28]\n    movq   m2, [pix_tmp+0x38]\n    movq   m3, [pix_tmp+0x48]\n    TRANSPOSE8x4B_STORE  PASS8ROWS(r0, r1, r3, r4)\n\n    RET\n%endmacro ; DEBLOCK_LUMA\n\nINIT_XMM sse2\nDEBLOCK_LUMA v, 16\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA v, 16\n%endif\n\n%endif ; ARCH\n\n\n\n%macro LUMA_INTRA_P012 4 ; p0..p3 in memory\n%if ARCH_X86_64\n    pavgb t0, p2, p1\n    pavgb t1, p0, q0\n%else\n    mova  t0, p2\n    mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:16", "text": "mova  t1, p0\n    pavgb t0, p1\n    pavgb t1, q0\n%endif\n    pavgb t0, t1 ; ((p2+p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    mova  t5, t1\n%if ARCH_X86_64\n    paddb t2, p2, p1\n    paddb t3, p0, q0\n%else\n    mova  t2, p2\n    mova  t3, p0\n    paddb t2, p1\n    paddb t3, q0\n%endif\n    paddb t2, t3\n    mova  t3, t2\n    mova  t4, t2\n    psrlw t2, 1\n    pavgb t2, mpb_0\n    pxor  t2, t0\n    pand  t2, mpb_1\n    psubb t0, t2 ; p1' = (p2+p1+p0+q0+2)/4;\n\n%if ARCH_X86_64\n    pavgb t1, p2, q1\n    psubb t2, p2, q1\n%else\n    mova  t1, p2\n    mova  t2, p2\n    pavgb t1, q1\n    psubb t2, q1\n%endif\n    paddb t3, t3\n    psubb t3, t2 ; p2+2*p1+2*p0+2*q0+q1\n    pand  t2, mpb_1\n    psubb t1, t2\n    pavgb t1, p1\n    pavgb t1, t5 ; (((p2+q1)/2 + p1+1)/2 + (p0+q0+1)/2 + 1)/2\n    psrlw t3, 2\n    pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:17", "text": "pavgb t3, mpb_0\n    pxor  t3, t1\n    pand  t3, mpb_1\n    psubb t1, t3 ; p0'a = (p2+2*p1+2*p0+2*q0+q1+4)/8\n\n    pxor  t3, p0, q1\n    pavgb t2, p0, q1\n    pand  t3, mpb_1\n    psubb t2, t3\n    pavgb t2, p1 ; p0'b = (2*p1+p0+q0+2)/4\n\n    pxor  t1, t2\n    pxor  t2, p0\n    pand  t1, mask1p\n    pand  t2, mask0\n    pxor  t1, t2\n    pxor  t1, p0\n    mova  %1, t1 ; store p0\n\n    mova  t1, %4 ; p3\n    paddb t2, t1, p2\n    pavgb t1, p2\n    pavgb t1, t0 ; (p3+p2+1)/2 + (p2+p1+p0+q0+2)/4\n    paddb t2, t2\n    paddb t2, t4 ; 2*p3+3*p2+p1+p0+q0\n    psrlw t2, 2\n    pavgb t2, mpb_0\n    pxor  t2, t1\n    pand  t2, mpb_1\n    psubb t1, t2 ; p2' = (2*p3+3*p2+p1+p0+q0+4)/8\n\n    pxor  t0, p1\n    pxor  t1, p2\n    pand  t0, mask1p\n    pand  t1, mask1p\n    pxor  t0, p1\n    pxor  t1, p2\n    mova  %2, t0 ; store p1\n    mova  %3, t1 ; store p2\n%endmacro\n\n%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:18", "text": "%macro LUMA_INTRA_SWAP_PQ 0\n    %define q1 m0\n    %define q0 m1\n    %define p0 m2\n    %define p1 m3\n    %define p2 q2\n    %define mask1p mask1q\n%endmacro\n\n%macro DEBLOCK_LUMA_INTRA 1\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n%if ARCH_X86_64\n    %define p2 m8\n    %define q2 m9\n    %define t4 m10\n    %define t5 m11\n    %define mask0 m12\n    %define mask1p m13\n%if WIN64\n    %define mask1q [rsp]\n%else\n    %define mask1q [rsp-24]\n%endif\n    %define mpb_0 m14\n    %define mpb_1 m15\n%else\n    %define spill(x) [esp+16*x]\n    %define p2 [r4+r1]\n    %define q2 [r0+2*r1]\n    %define t4 spill(0)\n    %define t5 spill(1)\n    %define mask0 spill(2)\n    %define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_%1_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_%1_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    jl .end\n    neg     r4\n    dec     r3d        ; beta-1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:19", "text": "%define mask1p spill(3)\n    %define mask1q spill(4)\n    %define mpb_0 [pb_0]\n    %define mpb_1 [pb_1]\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\n%if WIN64\ncglobal deblock_%1_luma_intra_8, 4,6,16,0x10\n%else\ncglobal deblock_%1_luma_intra_8, 4,6,16,ARCH_X86_64*0x50-0x50\n%endif\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    dec     r2d        ; alpha-1\n    jl .end\n    neg     r4\n    dec     r3d        ; beta-1\n    jl .end\n    add     r4, r0     ; pix-4*stride\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n%if ARCH_X86_64\n    pxor    mpb_0, mpb_0\n    mova    mpb_1, [pb_1]\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    SWAP    7, 12 ; m12=mask0\n    pavgb   t5, mpb_0\n    pavgb   t5, mpb_1 ; alpha/4+1\n    movdqa  p2, [r4+r1]\n    movdqa  q2, [r0+2*r1]\n    DIFF_GT2 p0, q0, t5, t0, t3 ; t0 = |p0-q0| > alpha/4+1\n    DIFF_GT2 p0, p2, m5, t2, t5 ; mask1 = |p2-p0| > beta-1\n    DIFF_GT2 q0, q2, m5, t4, t5 ; t4 = |q2-q0| > beta-1\n    pand    t0, mask0\n    pand    t4, t0\n    pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:20", "text": "pand    t2, t0\n    mova    mask1q, t4\n    mova    mask1p, t2\n%else\n    LOAD_MASK r2d, r3d, t5 ; m5=beta-1, t5=alpha-1, m7=mask0\n    mova    m4, t5\n    mova    mask0, m7\n    pavgb   m4, [pb_0]\n    pavgb   m4, [pb_1] ; alpha/4+1\n    DIFF_GT2 p0, q0, m4, m6, m7 ; m6 = |p0-q0| > alpha/4+1\n    pand    m6, mask0\n    DIFF_GT2 p0, p2, m5, m4, m7 ; m4 = |p2-p0| > beta-1\n    pand    m4, m6\n    mova    mask1p, m4\n    DIFF_GT2 q0, q2, m5, m4, m7 ; m4 = |q2-q0| > beta-1\n    pand    m4, m6\n    mova    mask1q, m4\n%endif\n    LUMA_INTRA_P012 [r4+r5], [r4+2*r1], [r4+r1], [r4]\n    LUMA_INTRA_SWAP_PQ\n    LUMA_INTRA_P012 [r0], [r0+r1], [r0+2*r1], [r0+r5]\n.end:\n    RET\n\nINIT_MMX cpuname\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra(uint8_t *pix, int stride, int alpha, int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_8, 4,9,0,0x80\n    movsxd r7,  r1d\n    lea    r8,  [r7*3]\n    lea    r6,  [r0-4]\n    lea    r5,  [r0-4+r8]\n%if WIN64\n    %define pix_tmp rsp+0x20 ; shadow space\n%else\n    %define pix_tmp rsp\n%endif\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:21", "text": "; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r6, [r6+r7*8]\n    lea    r5, [r5+r7*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r6, r5, r7, r8), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    mov    r1,  0x10\n    call   deblock_v_luma_intra_8\n\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    lea    r5, [r6+r8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    shl    r7,  3\n    sub    r6,  r7\n    sub    r5,  r7\n    shr    r7,  3\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r6, r5, r7, r8)\n    RET\n%else\ncglobal deblock_h_luma_intra_8, 2,4,8,0x80\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    %define pix_tmp rsp\n\n    ; transpose 8x16 -> tmp space\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(r0, r2, r1, r3), PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30)\n\n    lea    r0,  [pix_tmp+0x40]\n    PUSH   dword r3m\n    PUSH   dword r2m\n    PUSH   dword 16\n    PUSH   r0\n    call   deblock_%1_luma_intra_8\n%ifidn %1, v8\n    add    dword [rsp], 8 ; pix_tmp+8\n    call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:22", "text": "call   deblock_%1_luma_intra_8\n%endif\n    ADD    esp, 16\n\n    mov    r1,  r1m\n    mov    r0,  r0mp\n    lea    r3,  [r1*3]\n    sub    r0,  4\n    lea    r2,  [r0+r3]\n    ; transpose 16x6 -> original space (but we can't write only 6 pixels, so really 16x8)\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp, pix_tmp+0x30, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    lea    r0,  [r0+r1*8]\n    lea    r2,  [r2+r1*8]\n    TRANSPOSE8x8_MEM  PASS8ROWS(pix_tmp+8, pix_tmp+0x38, 0x10, 0x30), PASS8ROWS(r0, r2, r1, r3)\n    RET\n%endif ; ARCH_X86_64\n%endmacro ; DEBLOCK_LUMA_INTRA\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA v\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA v\n%endif\n\n%macro LOAD_8_ROWS 8\n    movd m0, %1\n    movd m1, %2\n    movd m2, %3\n    movd m3, %4\n    movd m4, %5\n    movd m5, %6\n    movd m6, %7\n    movd m7, %8\n%endmacro\n\n%macro STORE_8_ROWS 8\n    movd %1, m0\n    movd %2, m1\n    movd %3, m2\n    movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:23", "text": "movd %4, m3\n    movd %5, m4\n    movd %6, m5\n    movd %7, m6\n    movd %8, m7\n%endmacro\n\n%macro TRANSPOSE_8x4B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpcklbw m4, m5\n    punpcklbw m6, m7\n    punpcklwd m0, m2\n    punpcklwd m4, m6\n    punpckhdq m2, m0, m4\n    punpckldq m0, m4\n    MOVHL m1, m0\n    MOVHL m3, m2\n%endmacro\n\n%macro TRANSPOSE_4x8B_XMM 0\n    punpcklbw m0, m1\n    punpcklbw m2, m3\n    punpckhwd m4, m0, m2\n    punpcklwd m0, m2\n    MOVHL m6, m4\n    MOVHL m2, m0\n    pshufd m1, m0, 1\n    pshufd m3, m2, 1\n    pshufd m5, m4, 1\n    pshufd m7, m6, 1\n%endmacro\n\n%macro CHROMA_INTER_BODY_XMM 1\n    LOAD_MASK alpha_d, beta_d\n    movd m6, [tc0_q]\n    %rep %1\n        punpcklbw m6, m6\n    %endrep\n    pand m7, m6\n    DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:24", "text": "DEBLOCK_P0_Q0\n%endmacro\n\n%macro CHROMA_INTRA_BODY_XMM 0\n    LOAD_MASK alpha_d, beta_d\n    mova    m5,  m1\n    mova    m6,  m2\n    pxor    m4,  m1, m3\n    pand    m4, [pb_1]\n    pavgb   m1,  m3\n    psubusb m1,  m4\n    pavgb   m1,  m0\n    pxor    m4,  m2, m0\n    pand    m4, [pb_1]\n    pavgb   m2,  m0\n    psubusb m2,  m4\n    pavgb   m2,  m3\n    psubb   m1,  m5\n    psubb   m2,  m6\n    pand    m1,  m7\n    pand    m2,  m7\n    paddb   m1,  m5\n    paddb   m2,  m6\n%endmacro\n\n%macro CHROMA_V_START_XMM 1\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    mov %1, pix_q\n    sub %1, stride_q\n    sub %1, stride_q\n%endmacro\n\n%macro CHROMA_H_START_XMM 2\n    movsxdifnidn stride_q, stride_d\n    dec alpha_d\n    dec beta_d\n    lea %2, [3*stride_q]\n    mov %1,  pix_q\n    add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:25", "text": "add %1,  %2\n%endmacro\n\n%macro DEBLOCK_CHROMA_XMM 1\n\nINIT_XMM %1\n\ncglobal deblock_v_chroma_8, 5, 6, 8, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_V_START_XMM r5\n    movq m0, [r5]\n    movq m1, [r5 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTER_BODY_XMM 1\n    movq [r5 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 1\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_h_chroma422_8, 5, 7, 8, 0-16, pix_, stride_, alpha_, beta_, tc0_\n    CHROMA_H_START_XMM r5, r6\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:26", "text": "TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r5,    [r5    + 8*stride_q]\n    add tc0_q,  2\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\n    TRANSPOSE_8x4B_XMM\n    movq [rsp], m0\n    movq [rsp + 8], m3\n    CHROMA_INTER_BODY_XMM 2\n    movq m0, [rsp]\n    movq m3, [rsp + 8]\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r5 - 2, stride_q, r6)\nRET\n\ncglobal deblock_v_chroma_intra_8, 4, 5, 8, pix_, stride_, alpha_, beta_\n    CHROMA_V_START_XMM r4\n    movq m0, [r4]\n    movq m1, [r4 + stride_q]\n    movq m2, [pix_q]\n    movq m3, [pix_q + stride_q]\n    CHROMA_INTRA_BODY_XMM\n    movq [r4 + stride_q], m1\n    movq [pix_q], m2\nRET\n\ncglobal deblock_h_chroma_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\ncglobal deblock_h_chroma422_intra_8, 4, 6, 8, pix_, stride_, alpha_, beta_\n    CHROMA_H_START_XMM r4, r5\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:27", "text": "LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n\n    lea pix_q, [pix_q + 8*stride_q]\n    lea r4,    [r4    + 8*stride_q]\n\n    LOAD_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\n    TRANSPOSE_8x4B_XMM\n    CHROMA_INTRA_BODY_XMM\n    TRANSPOSE_4x8B_XMM\n    STORE_8_ROWS PASS8ROWS(pix_q - 2, r4 - 2, stride_q, r5)\nRET\n\n%endmacro ; DEBLOCK_CHROMA_XMM\n\nDEBLOCK_CHROMA_XMM sse2\nDEBLOCK_CHROMA_XMM avx\n\n;-----------------------------------------------------------------------------\n; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],\n;                                   int8_t ref[2][40], int16_t mv[2][40][2],\n;                                   int bidir,    int edges,    int step,\n;                                   int mask_mv0, int mask_mv1, int field);\n;\n; bidir    is 0 or 1\n; edges    is 1 or 4\n; step     is 1 or 2\n; mask_mv0 is 0 or 3\n; mask_mv1 is 0 or 1\n; field    is 0 or 1\n;-----------------------------------------------------------------------------\n%macro loop_filter_strength_iteration 7 ; edges, step, mask_mv,\n                                        ; dir, d_idx, mask_dir, bidir\n%define edgesd    %1\n%define stepd     %2\n%define mask_mvd  %3\n%define dir       %4\n%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:28", "text": "%define d_idx     %5\n%define mask_dir  %6\n%define bidir     %7\n    xor          b_idxd, b_idxd ; for (b_idx = 0; b_idx < edges; b_idx += step)\n%%.b_idx_loop:\n%if mask_dir == 0\n    pxor             m0, m0\n%endif\n    test         b_idxd, dword mask_mvd\n    jnz %%.skip_loop_iter                       ; if (!(b_idx & mask_mv))\n%if bidir == 1\n    movd             m2, [refq+b_idxq+d_idx+12] ; { ref0[bn] }\n    punpckldq        m2, [refq+b_idxq+d_idx+52] ; { ref0[bn], ref1[bn] }\n    pshufw           m0, [refq+b_idxq+12], 0x44 ; { ref0[b],  ref0[b]  }\n    pshufw           m1, [refq+b_idxq+52], 0x44 ; { ref1[b],  ref1[b]  }\n    pshufw           m3, m2, 0x4E               ; { ref1[bn], ref0[bn] }\n    psubb            m0, m2                     ; { ref0[b] != ref0[bn],\n                                                ;   ref0[b] != ref1[bn] }\n    psubb            m1, m3                     ; { ref1[b] != ref1[bn],\n                                                ;   ref1[b] != ref0[bn] }\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    por              m0, m1\n    mova             m1, [mvq+b_idxq*4+(d_idx+52)*4]\n    mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:29", "text": "mova             m2, [mvq+b_idxq*4+(d_idx+52)*4+mmsize]\n    mova             m3, m1\n    mova             m4, m2\n    psubw            m1, [mvq+b_idxq*4+12*4]\n    psubw            m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m3, [mvq+b_idxq*4+52*4]\n    psubw            m4, [mvq+b_idxq*4+52*4+mmsize]\n    packsswb         m1, m2\n    packsswb         m3, m4\n    paddb            m1, m6\n    paddb            m3, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    psubusb          m3, m5\n    packsswb         m1, m3\n\n    pshufw           m1, m1, 0x4E\n    por              m0, m1\n    pshufw           m1, m0, 0x4E\n    pminub           m0, m1\n%else ; bidir == 0\n    movd             m0, [refq+b_idxq+12]\n    psubb            m0, [refq+b_idxq+d_idx+12] ; ref[b] != ref[bn]\n\n    mova             m1, [mvq+b_idxq*4+12*4]\n    mova             m2, [mvq+b_idxq*4+12*4+mmsize]\n    psubw            m1, [mvq+b_idxq*4+(d_idx+12)*4]\n    psubw            m2, [mvq+b_idxq*4+(d_idx+12)*4+mmsize]\n    packsswb         m1, m2\n    paddb            m1, m6\n    psubusb          m1, m5 ; abs(mv[b] - mv[bn]) >= limit\n    packsswb         m1, m1\n    por              m0, m1\n%endif ; bidir == 1/0\n\n%%.skip_loop_iter:\n    movd             m1, [nnzq+b_idxq+12]\n    por              m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]\n\n    pminub           m1, m7\n    pminub           m0, m7\n    psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:30", "text": "psllw            m1, 1\n    pxor             m2, m2\n    pmaxub           m1, m0\n    punpcklbw        m1, m2\n    movq [bsq+b_idxq+32*dir], m1\n\n    add          b_idxd, dword stepd\n    cmp          b_idxd, dword edgesd\n    jl %%.b_idx_loop\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \\\n                                            step, mask_mv0, mask_mv1, field\n%define b_idxq bidirq\n%define b_idxd bidird\n    cmp    dword fieldm, 0\n    mova             m7, [pb_1]\n    mova             m5, [pb_3]\n    je .nofield\n    mova             m5, [pb_3_1]\n.nofield:\n    mova             m6, m5\n    paddb            m5, m5\n\n    shl     dword stepd, 3\n    shl    dword edgesd, 3\n%if ARCH_X86_32\n%define mask_mv0d mask_mv0m\n%define mask_mv1d mask_mv1m\n%endif\n    shl dword mask_mv1d, 3\n    shl dword mask_mv0d, 3\n\n    cmp    dword bidird, 0\n    jne .bidir\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 0\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 0\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock.asm:31", "text": "mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET\n\n.bidir:\n    loop_filter_strength_iteration edgesd, stepd, mask_mv1d, 1, -8,  0, 1\n    loop_filter_strength_iteration     32,     8, mask_mv0d, 0, -1, -1, 1\n\n    mova             m0, [bsq+mmsize*0]\n    mova             m1, [bsq+mmsize*1]\n    mova             m2, [bsq+mmsize*2]\n    mova             m3, [bsq+mmsize*3]\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    mova  [bsq+mmsize*0], m0\n    mova  [bsq+mmsize*1], m1\n    mova  [bsq+mmsize*2], m2\n    mova  [bsq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock.asm", "line_start": 1201, "line_end": 1224}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:1", "text": ";*****************************************************************************\n;* SSE2/AVX-optimized 10-bit H.264 deblocking code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Oskar Arvidsson <oskar@irock.se>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\ncextern pw_2\ncextern pw_3\ncextern pw_4\ncextern pw_1023\n%define pw_pixel_max pw_1023\n\n; out: %4 = |%1-%2|-%3\n; clobbers: %5\n%macro ABS_SUB 5\n    psubusw %5, %2, %1\n    psubusw %4, %1, %2\n    por     %4, %5\n    psubw   %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|<%3\n%macro DIFF_LT   5\n    psubusw %4, %2, %1\n    psubusw %5, %1, %2\n    por     %5, %4 ; |%1-%2|\n    pxor    %4, %4\n    psubw   %5, %3 ; |%1-%2|-%3\n    pcmpgtw %4, %5 ; 0 > |%1-%2|-%3\n%endmacro\n\n%macro LOAD_AB 4\n    movd       %1, %3\n    movd       %2, %4\n    SPLATW     %1, %1\n    SPLATW     %2, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:2", "text": "psubusw %4, %1, %2\n    por     %4, %5\n    psubw   %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|<%3\n%macro DIFF_LT   5\n    psubusw %4, %2, %1\n    psubusw %5, %1, %2\n    por     %5, %4 ; |%1-%2|\n    pxor    %4, %4\n    psubw   %5, %3 ; |%1-%2|-%3\n    pcmpgtw %4, %5 ; 0 > |%1-%2|-%3\n%endmacro\n\n%macro LOAD_AB 4\n    movd       %1, %3\n    movd       %2, %4\n    SPLATW     %1, %1\n    SPLATW     %2, %2\n%endmacro\n\n; in:  %2=tc reg\n; out: %1=splatted tc\n%macro LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n    pshuflw     %1, %1, 01010000b\n    pshufd      %1, %1, 01010000b\n    psraw       %1, 6\n%endmacro\n\n; in: %1=p1, %2=p0, %3=q0, %4=q1\n;     %5=alpha, %6=beta, %7-%9=tmp\n; out: %7=mask\n%macro LOAD_MASK 9\n    ABS_SUB     %2, %3, %5, %8, %7 ; |p0-q0| - alpha\n    ABS_SUB     %1, %2, %6, %9, %7 ; |p1-p0| - beta\n    pand        %8, %9\n    ABS_SUB     %3, %4, %6, %9, %7 ; |q1-q0| - beta\n    pxor        %7, %7\n    pand        %8, %9\n    pcmpgtw     %7, %8\n%endmacro\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', m2=q0'\n%macro DEBLOCK_P0_Q0 7\n    psubw   %3, %4\n    pxor    %7, %7\n    paddw   %3, [pw_4]\n    psubw   %7, %5\n    psubw   %6, %2, %1\n    psllw   %6, 2\n    paddw   %3, %6\n    psraw   %3, 3\n    mova    %6, [pw_pixel_max]\n    CLIPW   %3, %7, %5\n    pxor    %7, %7\n    paddw   %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:3", "text": "pxor        %7, %7\n    pand        %8, %9\n    pcmpgtw     %7, %8\n%endmacro\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', m2=q0'\n%macro DEBLOCK_P0_Q0 7\n    psubw   %3, %4\n    pxor    %7, %7\n    paddw   %3, [pw_4]\n    psubw   %7, %5\n    psubw   %6, %2, %1\n    psllw   %6, 2\n    paddw   %3, %6\n    psraw   %3, 3\n    mova    %6, [pw_pixel_max]\n    CLIPW   %3, %7, %5\n    pxor    %7, %7\n    paddw   %1, %3\n    psubw   %2, %3\n    CLIPW   %1, %7, %6\n    CLIPW   %2, %7, %6\n%endmacro\n\n; in: %1=x2, %2=x1, %3=p0, %4=q0 %5=mask&tc, %6=tmp\n%macro LUMA_Q1 6\n    pavgw       %6, %3, %4      ; (p0+q0+1)>>1\n    paddw       %1, %6\n    pxor        %6, %6\n    psraw       %1, 1\n    psubw       %6, %5\n    psubw       %1, %2\n    CLIPW       %1, %6, %5\n    paddw       %1, %2\n%endmacro\n\n%macro LUMA_DEBLOCK_ONE 3\n    DIFF_LT     m5, %1, bm, m4, m6\n    pxor        m6, m6\n    mova        %3, m4\n    pcmpgtw     m6, tcm\n    pand        m4, tcm\n    pandn       m6, m7\n    pand        m4, m6\n    LUMA_Q1 m5, %2, m1, m2, m4, m6\n%endmacro\n\n%macro LUMA_H_STORE 2\n    movq        [r0-4], m0\n    movhps      [r0+r1-4], m0\n    movq        [r0+r1*2-4], m1\n    movhps      [%1-4], m1\n    movq        [%1+r1-4], m2\n    movhps      [%1+r1*2-4], m2\n    movq        [%1+%2-4], m3\n    movhps      [%1+r1*4-4], m3\n%endmacro\n\n%macro DEBLOCK_LUMA 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:4", "text": "mova        %3, m4\n    pcmpgtw     m6, tcm\n    pand        m4, tcm\n    pandn       m6, m7\n    pand        m4, m6\n    LUMA_Q1 m5, %2, m1, m2, m4, m6\n%endmacro\n\n%macro LUMA_H_STORE 2\n    movq        [r0-4], m0\n    movhps      [r0+r1-4], m0\n    movq        [r0+r1*2-4], m1\n    movhps      [%1-4], m1\n    movq        [%1+r1-4], m2\n    movhps      [%1+r1*2-4], m2\n    movq        [%1+%2-4], m3\n    movhps      [%1+r1*4-4], m3\n%endmacro\n\n%macro DEBLOCK_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                           int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_10, 5,5,8,-5*mmsize\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define am  [rsp+mmsize*3]\n    %define bm  [rsp+mmsize*4]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, 32/mmsize\n    mov         r2, r0\n    sub         r0, r1\n    mova        am, m4\n    sub         r0, r1\n    mova        bm, m5\n    sub         r0, r1\n.loop:\n    mova        m0, [r0+r1]\n    mova        m1, [r0+r1*2]\n    mova        m2, [r2]\n    mova        m3, [r2+r1]\n\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    mova        m5, [r0]\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova   [r0+r1], m5\n\n    mova        m5, [r2+r1*2]\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova   [r2+r1], m5\n\n    pxor        m5, m5\n    mova        m6, tcm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:5", "text": ".loop:\n    mova        m0, [r0+r1]\n    mova        m1, [r0+r1*2]\n    mova        m2, [r2]\n    mova        m3, [r2+r1]\n\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    mova        m5, [r0]\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova   [r0+r1], m5\n\n    mova        m5, [r2+r1*2]\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova   [r2+r1], m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova [r0+r1*2], m1\n    mova      [r2], m2\n\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, mmsize/8\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,6,8,-7*mmsize\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define p1m [rsp+mmsize*3]\n    %define p2m [rsp+mmsize*4]\n    %define am  [rsp+mmsize*5]\n    %define bm  [rsp+mmsize*6]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, r1\n    mova        am, m4\n    add         r3, r1\n    mov         r5, 32/mmsize\n    mova        bm, m5\n    add         r3, r1\n    mov         r2, r0\n    add         r2, r3\n.loop:\n    movu        m5, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m3, [r2-8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:6", "text": "%define p1m [rsp+mmsize*3]\n    %define p2m [rsp+mmsize*4]\n    %define am  [rsp+mmsize*5]\n    %define bm  [rsp+mmsize*6]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, r1\n    mova        am, m4\n    add         r3, r1\n    mov         r5, 32/mmsize\n    mova        bm, m5\n    add         r3, r1\n    mov         r2, r0\n    add         r2, r3\n.loop:\n    movu        m5, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m3, [r2-8]\n    TRANSPOSE4x4W 5, 0, 2, 3, 6\n    mova       tcm, m3\n\n    movu        m4, [r2+r1-8]\n    movu        m1, [r2+r1*2-8]\n    movu        m3, [r2+r3-8]\n    movu        m7, [r2+r1*4-8]\n    TRANSPOSE4x4W 4, 1, 3, 7, 6\n\n    mova        m6, tcm\n    punpcklqdq  m6, m7\n    punpckhqdq  m5, m4\n    SBUTTERFLY qdq, 0, 1, 7\n    SBUTTERFLY qdq, 2, 3, 7\n\n    mova       p2m, m6\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova       p1m, m5\n\n    mova        m5, p2m\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova       p2m, m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova        m0, p1m\n    mova        m3, p2m\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r2, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:7", "text": "LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova       p1m, m5\n\n    mova        m5, p2m\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova       p2m, m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova        m0, p1m\n    mova        m3, p2m\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r2, r3\n\n    add         r4, mmsize/8\n    lea         r0, [r0+r1*(mmsize/2)]\n    lea         r2, [r2+r1*(mmsize/2)]\n    dec         r5\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64\n; in:  m0=p1, m1=p0, m2=q0, m3=q1, m8=p2, m9=q2\n;      m12=alpha, m13=beta\n; out: m0=p1', m3=q1', m1=p0', m2=q0'\n; clobbers: m4, m5, m6, m7, m10, m11, m14\n%macro DEBLOCK_LUMA_INTER_SSE2 0\n    LOAD_MASK   m0, m1, m2, m3, m12, m13, m7, m4, m6\n    LOAD_TC     m6, r4\n    DIFF_LT     m8, m1, m13, m10, m4\n    DIFF_LT     m9, m2, m13, m11, m4\n    pand        m6, m7\n\n    mova       m14, m6\n    pxor        m4, m4\n    pcmpgtw     m6, m4\n    pand        m6, m14\n\n    mova        m5, m10\n    pand        m5, m6\n    LUMA_Q1 m8, m0, m1, m2, m5, m4\n\n    mova        m5, m11\n    pand        m5, m6\n    LUMA_Q1 m9, m3, m1, m2, m5, m4\n\n    pxor        m4, m4\n    psubw       m6, m10\n    pcmpgtw     m4, m14\n    pandn       m4, m7\n    psubw       m6, m11\n    pand        m4, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m4, m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:8", "text": "mova       m14, m6\n    pxor        m4, m4\n    pcmpgtw     m6, m4\n    pand        m6, m14\n\n    mova        m5, m10\n    pand        m5, m6\n    LUMA_Q1 m8, m0, m1, m2, m5, m4\n\n    mova        m5, m11\n    pand        m5, m6\n    LUMA_Q1 m9, m3, m1, m2, m5, m4\n\n    pxor        m4, m4\n    psubw       m6, m10\n    pcmpgtw     m4, m14\n    pandn       m4, m7\n    psubw       m6, m11\n    pand        m4, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m4, m5, m6\n\n    SWAP         0, 8\n    SWAP         3, 9\n%endmacro\n\n%macro DEBLOCK_LUMA_64 0\ncglobal deblock_v_luma_10, 5,5,15\n    %define p2 m8\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define q2 m9\n    %define mask0 m7\n    %define mask1 m10\n    %define mask2 m11\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r0\n    sub         r0, r1\n    sub         r0, r1\n    sub         r0, r1\n    mov         r3, 2\n.loop:\n    mova        p2, [r0]\n    mova        p1, [r0+r1]\n    mova        p0, [r0+r1*2]\n    mova        q0, [r2]\n    mova        q1, [r2+r1]\n    mova        q2, [r2+r1*2]\n    DEBLOCK_LUMA_INTER_SSE2\n    mova   [r0+r1], p1\n    mova [r0+r1*2], p0\n    mova      [r2], q0\n    mova   [r2+r1], q1\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, 2\n    dec         r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:9", "text": "sub         r0, r1\n    sub         r0, r1\n    sub         r0, r1\n    mov         r3, 2\n.loop:\n    mova        p2, [r0]\n    mova        p1, [r0+r1]\n    mova        p0, [r0+r1*2]\n    mova        q0, [r2]\n    mova        q1, [r2+r1]\n    mova        q2, [r2+r1*2]\n    DEBLOCK_LUMA_INTER_SSE2\n    mova   [r0+r1], p1\n    mova [r0+r1*2], p0\n    mova      [r2], q0\n    mova   [r2+r1], q1\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, 2\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,7,15\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r1\n    add         r2, r1\n    add         r2, r1\n    mov         r5, r0\n    add         r5, r2\n    mov         r6, 2\n.loop:\n    movu        m8, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m9, [r5-8]\n    movu        m5, [r5+r1-8]\n    movu        m1, [r5+r1*2-8]\n    movu        m3, [r5+r2-8]\n    movu        m7, [r5+r1*4-8]\n\n    TRANSPOSE4x4W 8, 0, 2, 9, 10\n    TRANSPOSE4x4W 5, 1, 3, 7, 10\n\n    punpckhqdq  m8, m5\n    SBUTTERFLY qdq, 0, 1, 10\n    SBUTTERFLY qdq, 2, 3, 10\n    punpcklqdq  m9, m7\n\n    DEBLOCK_LUMA_INTER_SSE2\n\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r5, r2\n    add         r4, 2\n    lea         r0, [r0+r1*8]\n    lea         r5, [r5+r1*8]\n    dec         r6\n    jg .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:10", "text": "movu        m3, [r5+r2-8]\n    movu        m7, [r5+r1*4-8]\n\n    TRANSPOSE4x4W 8, 0, 2, 9, 10\n    TRANSPOSE4x4W 5, 1, 3, 7, 10\n\n    punpckhqdq  m8, m5\n    SBUTTERFLY qdq, 0, 1, 10\n    SBUTTERFLY qdq, 2, 3, 10\n    punpcklqdq  m9, m7\n\n    DEBLOCK_LUMA_INTER_SSE2\n\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r5, r2\n    add         r4, 2\n    lea         r0, [r0+r1*8]\n    lea         r5, [r5+r1*8]\n    dec         r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_64\n%endif\n%endif\n\n%macro SWAPMOVA 2\n%ifid %1\n    SWAP %1, %2\n%else\n    mova %1, %2\n%endif\n%endmacro\n\n; in: t0-t2: tmp registers\n;     %1=p0 %2=p1 %3=p2 %4=p3 %5=q0 %6=q1 %7=mask0\n;     %8=mask1p %9=2 %10=p0' %11=p1' %12=p2'\n%macro LUMA_INTRA_P012 12 ; p0..p3 in memory\n%if ARCH_X86_64\n    paddw     t0, %3, %2\n    mova      t2, %4\n    paddw     t2, %3\n%else\n    mova      t0, %3\n    mova      t2, %4\n    paddw     t0, %2\n    paddw     t2, %3\n%endif\n    paddw     t0, %1\n    paddw     t2, t2\n    paddw     t0, %5\n    paddw     t2, %9\n    paddw     t0, %9    ; (p2 + p1 + p0 + q0 + 2)\n    paddw     t2, t0    ; (2*p3 + 3*p2 + p1 + p0 + q0 + 4)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:11", "text": ";     %1=p0 %2=p1 %3=p2 %4=p3 %5=q0 %6=q1 %7=mask0\n;     %8=mask1p %9=2 %10=p0' %11=p1' %12=p2'\n%macro LUMA_INTRA_P012 12 ; p0..p3 in memory\n%if ARCH_X86_64\n    paddw     t0, %3, %2\n    mova      t2, %4\n    paddw     t2, %3\n%else\n    mova      t0, %3\n    mova      t2, %4\n    paddw     t0, %2\n    paddw     t2, %3\n%endif\n    paddw     t0, %1\n    paddw     t2, t2\n    paddw     t0, %5\n    paddw     t2, %9\n    paddw     t0, %9    ; (p2 + p1 + p0 + q0 + 2)\n    paddw     t2, t0    ; (2*p3 + 3*p2 + p1 + p0 + q0 + 4)\n\n    psrlw     t2, 3\n    psrlw     t1, t0, 2\n    psubw     t2, %3\n    psubw     t1, %2\n    pand      t2, %8\n    pand      t1, %8\n    paddw     t2, %3\n    paddw     t1, %2\n    SWAPMOVA %11, t1\n\n    psubw     t1, t0, %3\n    paddw     t0, t0\n    psubw     t1, %5\n    psubw     t0, %3\n    paddw     t1, %6\n    paddw     t1, %2\n    paddw     t0, %6\n    psrlw     t1, 2     ; (2*p1 + p0 + q1 + 2)/4\n    psrlw     t0, 3     ; (p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4)>>3\n\n    pxor      t0, t1\n    pxor      t1, %1\n    pand      t0, %8\n    pand      t1, %7\n    pxor      t0, t1\n    pxor      t0, %1\n    SWAPMOVA %10, t0\n    SWAPMOVA %12, t2\n%endmacro\n\n%macro LUMA_INTRA_INIT 1\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n    %assign i 4\n%rep %1\n    CAT_XDEFINE t, i, [rsp+mmsize*(i-4)]\n    %assign i i+1\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:12", "text": "pxor      t0, t1\n    pxor      t1, %1\n    pand      t0, %8\n    pand      t1, %7\n    pxor      t0, t1\n    pxor      t0, %1\n    SWAPMOVA %10, t0\n    SWAPMOVA %12, t2\n%endmacro\n\n%macro LUMA_INTRA_INIT 1\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n    %assign i 4\n%rep %1\n    CAT_XDEFINE t, i, [rsp+mmsize*(i-4)]\n    %assign i i+1\n%endrep\n%endmacro\n\n; in: %1-%3=tmp, %4=p2, %5=q2\n%macro LUMA_INTRA_INTER 5\n    LOAD_AB t0, t1, r2d, r3d\n    mova    %1, t0\n    LOAD_MASK m0, m1, m2, m3, %1, t1, t0, t2, t3\n%if ARCH_X86_64\n    mova    %2, t0        ; mask0\n    psrlw   t3, %1, 2\n%else\n    mova    t3, %1\n    mova    %2, t0        ; mask0\n    psrlw   t3, 2\n%endif\n    paddw   t3, [pw_2]    ; alpha/4+2\n    DIFF_LT m1, m2, t3, t2, t0 ; t2 = |p0-q0| < alpha/4+2\n    pand    t2, %2\n    mova    t3, %5        ; q2\n    mova    %1, t2        ; mask1\n    DIFF_LT t3, m2, t1, t2, t0 ; t2 = |q2-q0| < beta\n    pand    t2, %1\n    mova    t3, %4        ; p2\n    mova    %3, t2        ; mask1q\n    DIFF_LT t3, m1, t1, t2, t0 ; t2 = |p2-p0| < beta\n    pand    t2, %1\n    mova    %1, t2        ; mask1p\n%endmacro\n\n%macro LUMA_H_INTRA_LOAD 0\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r5-8]\n    movu    m2, [r4-8]\n    movu    m3, [r4+r1-8]\n    movu    t2, [r4+r1*2-8]\n    movu    t3, [r4+r5-8]\n    TRANSPOSE8x8W 4, 5, 0, 1, 2, 3, 6, 7, t4, t5\n    mova    t4, t0        ; p3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:13", "text": "DIFF_LT t3, m2, t1, t2, t0 ; t2 = |q2-q0| < beta\n    pand    t2, %1\n    mova    t3, %4        ; p2\n    mova    %3, t2        ; mask1q\n    DIFF_LT t3, m1, t1, t2, t0 ; t2 = |p2-p0| < beta\n    pand    t2, %1\n    mova    %1, t2        ; mask1p\n%endmacro\n\n%macro LUMA_H_INTRA_LOAD 0\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r5-8]\n    movu    m2, [r4-8]\n    movu    m3, [r4+r1-8]\n    movu    t2, [r4+r1*2-8]\n    movu    t3, [r4+r5-8]\n    TRANSPOSE8x8W 4, 5, 0, 1, 2, 3, 6, 7, t4, t5\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n    mova    t6, t2        ; q2\n    mova    t7, t3        ; q3\n%endmacro\n\n; in: %1=q3 %2=q2' %3=q1' %4=q0' %5=p0' %6=p1' %7=p2' %8=p3 %9=tmp\n%macro LUMA_H_INTRA_STORE 9\n    TRANSPOSE2x4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r5-8], m%4\n    movhps     [r4-8], m%1\n    movhps     [r4+r1-8], m%2\n    movhps     [r4+r1*2-8], m%3\n    movhps     [r4+r5-8], m%4\n%ifnum %8\n    SWAP       %1, %8\n%else\n    mova       m%1, %8\n%endif\n    TRANSPOSE2x4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r5], m%1\n    movhps     [r4], m%5\n    movhps     [r4+r1], m%6\n    movhps     [r4+r1*2], m%7\n    movhps     [r4+r5], m%1\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA_INTRA_64 0\ncglobal deblock_v_luma_intra_10, 4,7,16\n    %define t0 m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:14", "text": "%endif\n    TRANSPOSE2x4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r5], m%1\n    movhps     [r4], m%5\n    movhps     [r4+r1], m%6\n    movhps     [r4+r1*2], m%7\n    movhps     [r4+r5], m%1\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA_INTRA_64 0\ncglobal deblock_v_luma_intra_10, 4,7,16\n    %define t0 m1\n    %define t1 m2\n    %define t2 m4\n    %define p2 m8\n    %define p1 m9\n    %define p0 m10\n    %define q0 m11\n    %define q1 m12\n    %define q2 m13\n    %define aa m5\n    %define bb m14\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    neg     r4\n    add     r4, r0     ; pix-4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n    LOAD_AB aa, bb, r2d, r3d\n.loop:\n    mova    p2, [r4+r1]\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n    mova    q2, [r0+2*r1]\n\n    LOAD_MASK p1, p0, q0, q1, aa, bb, m3, t0, t1\n    mova    t2, aa\n    psrlw   t2, 2\n    paddw   t2, m0 ; alpha/4+2\n    DIFF_LT p0, q0, t2, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT p2, p0, bb, t1, t0 ; m7 = |p2-p0| < beta\n    DIFF_LT q2, q0, bb, m7, t0 ; t1 = |q2-q0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n    LUMA_INTRA_P012 p0, p1, p2, [r4], q0, q1, m3, m6, m0, [r4+r5], [r4+2*r1], [r4+r1]\n    LUMA_INTRA_P012 q0, q1, q2, [r0+r5], p0, p1, m3, m7, m0, [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:15", "text": "mova    p2, [r4+r1]\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n    mova    q2, [r0+2*r1]\n\n    LOAD_MASK p1, p0, q0, q1, aa, bb, m3, t0, t1\n    mova    t2, aa\n    psrlw   t2, 2\n    paddw   t2, m0 ; alpha/4+2\n    DIFF_LT p0, q0, t2, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT p2, p0, bb, t1, t0 ; m7 = |p2-p0| < beta\n    DIFF_LT q2, q0, bb, m7, t0 ; t1 = |q2-q0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n    LUMA_INTRA_P012 p0, p1, p2, [r4], q0, q1, m3, m6, m0, [r4+r5], [r4+2*r1], [r4+r1]\n    LUMA_INTRA_P012 q0, q1, q2, [r0+r5], p0, p1, m3, m7, m0, [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,16,mmsize\n    %define t0 m15\n    %define t1 m14\n    %define t2 m2\n    %define q3 m5\n    %define q2 m8\n    %define q1 m9\n    %define q0 m10\n    %define p0 m11\n    %define p1 m12\n    %define p2 m13\n    %define p3 m4\n    %define spill [rsp]\n    lea     r4, [r0+r1*4] ; pix+4*stride\n    lea     r5, [r1*3] ; 3*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    movu    q3, [r0-8]\n    movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1\n\n    LOAD_AB m1, m2, r2d, r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:16", "text": "%define p3 m4\n    %define spill [rsp]\n    lea     r4, [r0+r1*4] ; pix+4*stride\n    lea     r5, [r1*3] ; 3*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    movu    q3, [r0-8]\n    movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1\n\n    LOAD_AB m1, m2, r2d, r3d\n    LOAD_MASK q1, q0, p0, p1, m1, m2, m3, t0, t1\n    psrlw   m1, 2\n    paddw   m1, m0 ; alpha/4+2\n    DIFF_LT p0, q0, m1, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT q2, q0, m2, t1, t0 ; t1 = |q2-q0| < beta\n    DIFF_LT p0, p2, m2, m7, t0 ; m7 = |p2-p0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n\n    mova spill, q3\n    LUMA_INTRA_P012 q0, q1, q2, q3, p0, p1, m3, m6, m0, m5, m1, q2\n    LUMA_INTRA_P012 p0, p1, p2, p3, q0, q1, m3, m7, m0, p0, m6, p2\n    mova    m7, spill\n\n    LUMA_H_INTRA_STORE 7, 8, 1, 5, 11, 6, 13, 4, 14\n\n    lea     r0, [r0+r1*8]\n    lea     r4, [r4+r1*8]\n    dec     r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA_64\n%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8,-3*mmsize\n    LUMA_INTRA_INIT 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:17", "text": "jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA_64\n%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8,-3*mmsize\n    LUMA_INTRA_INIT 3\n    lea     r4, [r1*4]\n    lea     r5, [r1*3]\n    neg     r4\n    add     r4, r0\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    mova    m0, [r4+r1*2] ; p1\n    mova    m1, [r4+r5]   ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LUMA_INTRA_INTER t4, t5, t6, [r4+r1], [r0+r1*2]\n    LUMA_INTRA_P012 m1, m0, t3, [r4], m2, m3, t5, t4, [pw_2], [r4+r5], [r4+2*r1], [r4+r1]\n    mova    t3, [r0+r1*2] ; q2\n    LUMA_INTRA_P012 m2, m3, t3, [r0+r5], m1, m0, t5, t6, [pw_2], [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,8,-8*mmsize\n    LUMA_INTRA_INIT 8\n    lea     r4, [r0+r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:18", "text": "RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,8,-8*mmsize\n    LUMA_INTRA_INIT 8\n    lea     r4, [r0+r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5\n\n    mova    m2, t4\n    mova    m0, t11\n    mova    m1, t5\n    mova    m3, t8\n    mova    m6, t6\n\n    LUMA_H_INTRA_STORE 2, 0, 1, 3, 4, 6, 5, t7, 7\n\n    lea     r0, [r0+r1*(mmsize/2)]\n    lea     r4, [r4+r1*(mmsize/2)]\n    dec     r6\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64 == 0\nINIT_XMM sse2\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2\n    psraw   %7, 2\n    psubw   %6, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:19", "text": "%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2\n    psraw   %7, 2\n    psubw   %6, %1\n    psubw   %7, %2\n    pand    %6, %5\n    pand    %7, %5\n    paddw   %1, %6\n    paddw   %2, %7\n%endmacro\n\n%macro CHROMA_V_LOAD 1\n    mova        m0, [r0]    ; p1\n    mova        m1, [r0+r1] ; p0\n    mova        m2, [%1]    ; q0\n    mova        m3, [%1+r1] ; q1\n%endmacro\n\n%macro CHROMA_V_STORE 0\n    mova [r0+1*r1], m1\n    mova [r0+2*r1], m2\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:20", "text": "; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5\n    punpckldq        m4, m5\n\n    punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6\n    punpcklqdq       m2, m6\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 words in %1..%8\n%macro TRANSPOSE8x4W_STORE 8\n    TRANSPOSE4x4W     0, 1, 2, 3, 4\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:21", "text": "%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n%endmacro\n\n%macro CHROMA_V_LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n    punpcklwd   %1, %1\n    psraw       %1, 6\n%endmacro\n\n%macro DEBLOCK_CHROMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_10, 5,6,8\n    mov         r5, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r5\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                   int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_intra_10, 4,5,8\n    mov         r4, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:22", "text": "LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                   int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_intra_10, 4,5,8\n    mov         r4, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r4\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    CHROMA_DEBLOCK_P0_Q0_INTRA m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma_10, 5, 7, 8, 0-2*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n        CHROMA_H_LOAD r5, r6, [rsp], [rsp + mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]\n\nRET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma422_10(uint16_t *pix, int stride, int alpha, int beta,\n;                                int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma422_10, 5, 7, 8, 0-3*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n\n    movd m0, [tc0_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:23", "text": "LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]\n\nRET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma422_10(uint16_t *pix, int stride, int alpha, int beta,\n;                                int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma422_10, 5, 7, 8, 0-3*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n\n    movd m0, [tc0_q]\n    punpcklbw m0, m0\n    psraw m0, 6\n    movq [rsp], m0\n\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n    mov r4, -8\n    .loop:\n\n        CHROMA_H_LOAD r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        movd             m6, [rsp + r4 + 8]\n        punpcklwd        m6,  m6\n        punpcklwd        m6,  m6\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_CHROMA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_CHROMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 881, "line_end": 938}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:24", "text": "pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_CHROMA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_CHROMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 921, "line_end": 938}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:15", "text": "mova    p2, [r4+r1]\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n    mova    q2, [r0+2*r1]\n\n    LOAD_MASK p1, p0, q0, q1, aa, bb, m3, t0, t1\n    mova    t2, aa\n    psrlw   t2, 2\n    paddw   t2, m0 ; alpha/4+2\n    DIFF_LT p0, q0, t2, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT p2, p0, bb, t1, t0 ; m7 = |p2-p0| < beta\n    DIFF_LT q2, q0, bb, m7, t0 ; t1 = |q2-q0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n    LUMA_INTRA_P012 p0, p1, p2, [r4], q0, q1, m3, m6, m0, [r4+r5], [r4+2*r1], [r4+r1]\n    LUMA_INTRA_P012 q0, q1, q2, [r0+r5], p0, p1, m3, m7, m0, [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,16,mmsize\n    %define t0 m15\n    %define t1 m14\n    %define t2 m2\n    %define q3 m5\n    %define q2 m8\n    %define q1 m9\n    %define q0 m10\n    %define p0 m11\n    %define p1 m12\n    %define p2 m13\n    %define p3 m4\n    %define spill [rsp]\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    movu    q3, [r0-8]\n    movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:16", "text": "%define p3 m4\n    %define spill [rsp]\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    movu    q3, [r0-8]\n    movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1\n\n    LOAD_AB m1, m2, r2d, r3d\n    LOAD_MASK q1, q0, p0, p1, m1, m2, m3, t0, t1\n    psrlw   m1, 2\n    paddw   m1, m0 ; alpha/4+2\n    DIFF_LT p0, q0, m1, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT q2, q0, m2, t1, t0 ; t1 = |q2-q0| < beta\n    DIFF_LT p0, p2, m2, m7, t0 ; m7 = |p2-p0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n\n    mova spill, q3\n    LUMA_INTRA_P012 q0, q1, q2, q3, p0, p1, m3, m6, m0, m5, m1, q2\n    LUMA_INTRA_P012 p0, p1, p2, p3, q0, q1, m3, m7, m0, p0, m6, p2\n    mova    m7, spill\n\n    LUMA_H_INTRA_STORE 7, 8, 1, 5, 11, 6, 13, 4, 14\n\n    lea     r0, [r0+r1*8]\n    lea     r4, [r4+r1*8]\n    dec     r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA_64\n%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8,-3*mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:17", "text": "dec     r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA_64\n%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8,-3*mmsize\n    LUMA_INTRA_INIT 3\n    lea     r4, [r1*4]\n    lea     r5, [r1*3]\n    neg     r4\n    add     r4, r0\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    mova    m0, [r4+r1*2] ; p1\n    mova    m1, [r4+r5]   ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LUMA_INTRA_INTER t4, t5, t6, [r4+r1], [r0+r1*2]\n    LUMA_INTRA_P012 m1, m0, t3, [r4], m2, m3, t5, t4, [pw_2], [r4+r5], [r4+2*r1], [r4+r1]\n    mova    t3, [r0+r1*2] ; q2\n    LUMA_INTRA_P012 m2, m3, t3, [r0+r5], m1, m0, t5, t6, [pw_2], [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,8,-8*mmsize\n    LUMA_INTRA_INIT 8\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:18", "text": "jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,8,-8*mmsize\n    LUMA_INTRA_INIT 8\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5\n\n    mova    m2, t4\n    mova    m0, t11\n    mova    m1, t5\n    mova    m3, t8\n    mova    m6, t6\n\n    LUMA_H_INTRA_STORE 2, 0, 1, 3, 4, 6, 5, t7, 7\n\n    lea     r0, [r0+r1*(mmsize/2)]\n    lea     r4, [r4+r1*(mmsize/2)]\n    dec     r6\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64 == 0\nINIT_XMM sse2\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:19", "text": "DEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2\n    psraw   %7, 2\n    psubw   %6, %1\n    psubw   %7, %2\n    pand    %6, %5\n    pand    %7, %5\n    paddw   %1, %6\n    paddw   %2, %7\n%endmacro\n\n%macro CHROMA_V_LOAD 1\n    mova        m0, [r0]    ; p1\n    mova        m1, [r0+r1] ; p0\n    mova        m2, [%1]    ; q0\n    mova        m3, [%1+r1] ; q1\n%endmacro\n\n%macro CHROMA_V_STORE 0\n    mova [r0+1*r1], m1\n    mova [r0+2*r1], m2\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:20", "text": "; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5\n    punpckldq        m4, m5\n\n    punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6\n    punpcklqdq       m2, m6\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 words in %1..%8\n%macro TRANSPOSE8x4W_STORE 8\n    TRANSPOSE4x4W     0, 1, 2, 3, 4\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:21", "text": "movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n%endmacro\n\n%macro CHROMA_V_LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n    punpcklwd   %1, %1\n    psraw       %1, 6\n%endmacro\n\n%macro DEBLOCK_CHROMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_10, 5,6,8\n    mov         r5, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r5\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                   int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_intra_10, 4,5,8\n    mov         r4, r0\n    sub         r0, r1\n    sub         r0, r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:22", "text": "CHROMA_V_LOAD r5\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                   int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_intra_10, 4,5,8\n    mov         r4, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r4\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    CHROMA_DEBLOCK_P0_Q0_INTRA m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma_10, 5, 7, 8, 0-2*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n        CHROMA_H_LOAD r5, r6, [rsp], [rsp + mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]\n\nRET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma422_10(uint16_t *pix, int stride, int alpha, int beta,\n;                                int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma422_10, 5, 7, 8, 0-3*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:23", "text": "CHROMA_H_LOAD r5, r6, [rsp], [rsp + mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]\n\nRET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma422_10(uint16_t *pix, int stride, int alpha, int beta,\n;                                int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma422_10, 5, 7, 8, 0-3*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n\n    movd m0, [tc0_q]\n    punpcklbw m0, m0\n    psraw m0, 6\n    movq [rsp], m0\n\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n    mov r4, -8\n    .loop:\n\n        CHROMA_H_LOAD r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        movd             m6, [rsp + r4 + 8]\n        punpcklwd        m6,  m6\n        punpcklwd        m6,  m6\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_CHROMA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_CHROMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:24", "text": "psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_CHROMA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_CHROMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "aab0946eae1fbcfa3fff2f1f6660146ce14bab22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/aab0946eae1fbcfa3fff2f1f6660146ce14bab22/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 921, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized 10-bit H.264 deblocking code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Oskar Arvidsson <oskar@irock.se>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\ncextern pw_2\ncextern pw_3\ncextern pw_4\ncextern pw_1023\n%define pw_pixel_max pw_1023\n\n; out: %4 = |%1-%2|-%3\n; clobbers: %5\n%macro ABS_SUB 5\n    psubusw %5, %2, %1\n    psubusw %4, %1, %2\n    por     %4, %5\n    psubw   %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|<%3\n%macro DIFF_LT   5\n    psubusw %4, %2, %1\n    psubusw %5, %1, %2\n    por     %5, %4 ; |%1-%2|\n    pxor    %4, %4\n    psubw   %5, %3 ; |%1-%2|-%3\n    pcmpgtw %4, %5 ; 0 > |%1-%2|-%3\n%endmacro\n\n%macro LOAD_AB 4\n    movd       %1, %3\n    movd       %2, %4\n    SPLATW     %1, %1\n    SPLATW     %2, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:2", "text": "psubusw %4, %1, %2\n    por     %4, %5\n    psubw   %4, %3\n%endmacro\n\n; out: %4 = |%1-%2|<%3\n%macro DIFF_LT   5\n    psubusw %4, %2, %1\n    psubusw %5, %1, %2\n    por     %5, %4 ; |%1-%2|\n    pxor    %4, %4\n    psubw   %5, %3 ; |%1-%2|-%3\n    pcmpgtw %4, %5 ; 0 > |%1-%2|-%3\n%endmacro\n\n%macro LOAD_AB 4\n    movd       %1, %3\n    movd       %2, %4\n    SPLATW     %1, %1\n    SPLATW     %2, %2\n%endmacro\n\n; in:  %2=tc reg\n; out: %1=splatted tc\n%macro LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n%if mmsize == 8\n    pshufw      %1, %1, 0\n%else\n    pshuflw     %1, %1, 01010000b\n    pshufd      %1, %1, 01010000b\n%endif\n    psraw       %1, 6\n%endmacro\n\n; in: %1=p1, %2=p0, %3=q0, %4=q1\n;     %5=alpha, %6=beta, %7-%9=tmp\n; out: %7=mask\n%macro LOAD_MASK 9\n    ABS_SUB     %2, %3, %5, %8, %7 ; |p0-q0| - alpha\n    ABS_SUB     %1, %2, %6, %9, %7 ; |p1-p0| - beta\n    pand        %8, %9\n    ABS_SUB     %3, %4, %6, %9, %7 ; |q1-q0| - beta\n    pxor        %7, %7\n    pand        %8, %9\n    pcmpgtw     %7, %8\n%endmacro\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', m2=q0'\n%macro DEBLOCK_P0_Q0 7\n    psubw   %3, %4\n    pxor    %7, %7\n    paddw   %3, [pw_4]\n    psubw   %7, %5\n    psubw   %6, %2, %1\n    psllw   %6, 2\n    paddw   %3, %6\n    psraw   %3, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:3", "text": "ABS_SUB     %2, %3, %5, %8, %7 ; |p0-q0| - alpha\n    ABS_SUB     %1, %2, %6, %9, %7 ; |p1-p0| - beta\n    pand        %8, %9\n    ABS_SUB     %3, %4, %6, %9, %7 ; |q1-q0| - beta\n    pxor        %7, %7\n    pand        %8, %9\n    pcmpgtw     %7, %8\n%endmacro\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', m2=q0'\n%macro DEBLOCK_P0_Q0 7\n    psubw   %3, %4\n    pxor    %7, %7\n    paddw   %3, [pw_4]\n    psubw   %7, %5\n    psubw   %6, %2, %1\n    psllw   %6, 2\n    paddw   %3, %6\n    psraw   %3, 3\n    mova    %6, [pw_pixel_max]\n    CLIPW   %3, %7, %5\n    pxor    %7, %7\n    paddw   %1, %3\n    psubw   %2, %3\n    CLIPW   %1, %7, %6\n    CLIPW   %2, %7, %6\n%endmacro\n\n; in: %1=x2, %2=x1, %3=p0, %4=q0 %5=mask&tc, %6=tmp\n%macro LUMA_Q1 6\n    pavgw       %6, %3, %4      ; (p0+q0+1)>>1\n    paddw       %1, %6\n    pxor        %6, %6\n    psraw       %1, 1\n    psubw       %6, %5\n    psubw       %1, %2\n    CLIPW       %1, %6, %5\n    paddw       %1, %2\n%endmacro\n\n%macro LUMA_DEBLOCK_ONE 3\n    DIFF_LT     m5, %1, bm, m4, m6\n    pxor        m6, m6\n    mova        %3, m4\n    pcmpgtw     m6, tcm\n    pand        m4, tcm\n    pandn       m6, m7\n    pand        m4, m6\n    LUMA_Q1 m5, %2, m1, m2, m4, m6\n%endmacro\n\n%macro LUMA_H_STORE 2\n%if mmsize == 8\n    movq        [r0-4], m0\n    movq        [r0+r1-4], m1\n    movq        [r0+r1*2-4], m2\n    movq        [r0+%2-4], m3\n%else\n    movq        [r0-4], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:4", "text": "%macro LUMA_DEBLOCK_ONE 3\n    DIFF_LT     m5, %1, bm, m4, m6\n    pxor        m6, m6\n    mova        %3, m4\n    pcmpgtw     m6, tcm\n    pand        m4, tcm\n    pandn       m6, m7\n    pand        m4, m6\n    LUMA_Q1 m5, %2, m1, m2, m4, m6\n%endmacro\n\n%macro LUMA_H_STORE 2\n%if mmsize == 8\n    movq        [r0-4], m0\n    movq        [r0+r1-4], m1\n    movq        [r0+r1*2-4], m2\n    movq        [r0+%2-4], m3\n%else\n    movq        [r0-4], m0\n    movhps      [r0+r1-4], m0\n    movq        [r0+r1*2-4], m1\n    movhps      [%1-4], m1\n    movq        [%1+r1-4], m2\n    movhps      [%1+r1*2-4], m2\n    movq        [%1+%2-4], m3\n    movhps      [%1+r1*4-4], m3\n%endif\n%endmacro\n\n%macro DEBLOCK_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                           int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_10, 5,5,8,-5*mmsize\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define am  [rsp+mmsize*3]\n    %define bm  [rsp+mmsize*4]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, 32/mmsize\n    mov         r2, r0\n    sub         r0, r1\n    mova        am, m4\n    sub         r0, r1\n    mova        bm, m5\n    sub         r0, r1\n.loop:\n    mova        m0, [r0+r1]\n    mova        m1, [r0+r1*2]\n    mova        m2, [r2]\n    mova        m3, [r2+r1]\n\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:5", "text": "%define bm  [rsp+mmsize*4]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, 32/mmsize\n    mov         r2, r0\n    sub         r0, r1\n    mova        am, m4\n    sub         r0, r1\n    mova        bm, m5\n    sub         r0, r1\n.loop:\n    mova        m0, [r0+r1]\n    mova        m1, [r0+r1*2]\n    mova        m2, [r2]\n    mova        m3, [r2+r1]\n\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    mova        m5, [r0]\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova   [r0+r1], m5\n\n    mova        m5, [r2+r1*2]\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova   [r2+r1], m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova [r0+r1*2], m1\n    mova      [r2], m2\n\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, mmsize/8\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,6,8,-7*mmsize\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define p1m [rsp+mmsize*3]\n    %define p2m [rsp+mmsize*4]\n    %define am  [rsp+mmsize*5]\n    %define bm  [rsp+mmsize*6]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, r1\n    mova        am, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:6", "text": "add         r0, mmsize\n    add         r2, mmsize\n    add         r4, mmsize/8\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,6,8,-7*mmsize\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define p1m [rsp+mmsize*3]\n    %define p2m [rsp+mmsize*4]\n    %define am  [rsp+mmsize*5]\n    %define bm  [rsp+mmsize*6]\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, r1\n    mova        am, m4\n    add         r3, r1\n    mov         r5, 32/mmsize\n    mova        bm, m5\n    add         r3, r1\n%if mmsize == 16\n    mov         r2, r0\n    add         r2, r3\n%endif\n.loop:\n%if mmsize == 8\n    movq        m2, [r0-8]     ; y q2 q1 q0\n    movq        m7, [r0+0]\n    movq        m5, [r0+r1-8]\n    movq        m3, [r0+r1+0]\n    movq        m0, [r0+r1*2-8]\n    movq        m6, [r0+r1*2+0]\n    movq        m1, [r0+r3-8]\n    TRANSPOSE4x4W 2, 5, 0, 1, 4\n    SWAP         2, 7\n    movq        m7, [r0+r3]\n    TRANSPOSE4x4W 2, 3, 6, 7, 4\n%else\n    movu        m5, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m3, [r2-8]\n    TRANSPOSE4x4W 5, 0, 2, 3, 6\n    mova       tcm, m3\n\n    movu        m4, [r2+r1-8]\n    movu        m1, [r2+r1*2-8]\n    movu        m3, [r2+r3-8]\n    movu        m7, [r2+r1*4-8]\n    TRANSPOSE4x4W 4, 1, 3, 7, 6\n\n    mova        m6, tcm\n    punpcklqdq  m6, m7\n    punpckhqdq  m5, m4\n    SBUTTERFLY qdq, 0, 1, 7\n    SBUTTERFLY qdq, 2, 3, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:7", "text": "TRANSPOSE4x4W 2, 3, 6, 7, 4\n%else\n    movu        m5, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m3, [r2-8]\n    TRANSPOSE4x4W 5, 0, 2, 3, 6\n    mova       tcm, m3\n\n    movu        m4, [r2+r1-8]\n    movu        m1, [r2+r1*2-8]\n    movu        m3, [r2+r3-8]\n    movu        m7, [r2+r1*4-8]\n    TRANSPOSE4x4W 4, 1, 3, 7, 6\n\n    mova        m6, tcm\n    punpcklqdq  m6, m7\n    punpckhqdq  m5, m4\n    SBUTTERFLY qdq, 0, 1, 7\n    SBUTTERFLY qdq, 2, 3, 7\n%endif\n\n    mova       p2m, m6\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova       p1m, m5\n\n    mova        m5, p2m\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova       p2m, m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova        m0, p1m\n    mova        m3, p2m\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r2, r3\n\n    add         r4, mmsize/8\n    lea         r0, [r0+r1*(mmsize/2)]\n    lea         r2, [r2+r1*(mmsize/2)]\n    dec         r5\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64\n; in:  m0=p1, m1=p0, m2=q0, m3=q1, m8=p2, m9=q2\n;      m12=alpha, m13=beta\n; out: m0=p1', m3=q1', m1=p0', m2=q0'\n; clobbers: m4, m5, m6, m7, m10, m11, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:8", "text": "pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova        m0, p1m\n    mova        m3, p2m\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r2, r3\n\n    add         r4, mmsize/8\n    lea         r0, [r0+r1*(mmsize/2)]\n    lea         r2, [r2+r1*(mmsize/2)]\n    dec         r5\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64\n; in:  m0=p1, m1=p0, m2=q0, m3=q1, m8=p2, m9=q2\n;      m12=alpha, m13=beta\n; out: m0=p1', m3=q1', m1=p0', m2=q0'\n; clobbers: m4, m5, m6, m7, m10, m11, m14\n%macro DEBLOCK_LUMA_INTER_SSE2 0\n    LOAD_MASK   m0, m1, m2, m3, m12, m13, m7, m4, m6\n    LOAD_TC     m6, r4\n    DIFF_LT     m8, m1, m13, m10, m4\n    DIFF_LT     m9, m2, m13, m11, m4\n    pand        m6, m7\n\n    mova       m14, m6\n    pxor        m4, m4\n    pcmpgtw     m6, m4\n    pand        m6, m14\n\n    mova        m5, m10\n    pand        m5, m6\n    LUMA_Q1 m8, m0, m1, m2, m5, m4\n\n    mova        m5, m11\n    pand        m5, m6\n    LUMA_Q1 m9, m3, m1, m2, m5, m4\n\n    pxor        m4, m4\n    psubw       m6, m10\n    pcmpgtw     m4, m14\n    pandn       m4, m7\n    psubw       m6, m11\n    pand        m4, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m4, m5, m6\n\n    SWAP         0, 8\n    SWAP         3, 9\n%endmacro\n\n%macro DEBLOCK_LUMA_64 0\ncglobal deblock_v_luma_10, 5,5,15\n    %define p2 m8\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define q2 m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:9", "text": "pxor        m4, m4\n    psubw       m6, m10\n    pcmpgtw     m4, m14\n    pandn       m4, m7\n    psubw       m6, m11\n    pand        m4, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m4, m5, m6\n\n    SWAP         0, 8\n    SWAP         3, 9\n%endmacro\n\n%macro DEBLOCK_LUMA_64 0\ncglobal deblock_v_luma_10, 5,5,15\n    %define p2 m8\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define q2 m9\n    %define mask0 m7\n    %define mask1 m10\n    %define mask2 m11\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r0\n    sub         r0, r1\n    sub         r0, r1\n    sub         r0, r1\n    mov         r3, 2\n.loop:\n    mova        p2, [r0]\n    mova        p1, [r0+r1]\n    mova        p0, [r0+r1*2]\n    mova        q0, [r2]\n    mova        q1, [r2+r1]\n    mova        q2, [r2+r1*2]\n    DEBLOCK_LUMA_INTER_SSE2\n    mova   [r0+r1], p1\n    mova [r0+r1*2], p0\n    mova      [r2], q0\n    mova   [r2+r1], q1\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, 2\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,7,15\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r1\n    add         r2, r1\n    add         r2, r1\n    mov         r5, r0\n    add         r5, r2\n    mov         r6, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:10", "text": "mova [r0+r1*2], p0\n    mova      [r2], q0\n    mova   [r2+r1], q1\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, 2\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,7,15\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r1\n    add         r2, r1\n    add         r2, r1\n    mov         r5, r0\n    add         r5, r2\n    mov         r6, 2\n.loop:\n    movu        m8, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m9, [r5-8]\n    movu        m5, [r5+r1-8]\n    movu        m1, [r5+r1*2-8]\n    movu        m3, [r5+r2-8]\n    movu        m7, [r5+r1*4-8]\n\n    TRANSPOSE4x4W 8, 0, 2, 9, 10\n    TRANSPOSE4x4W 5, 1, 3, 7, 10\n\n    punpckhqdq  m8, m5\n    SBUTTERFLY qdq, 0, 1, 10\n    SBUTTERFLY qdq, 2, 3, 10\n    punpcklqdq  m9, m7\n\n    DEBLOCK_LUMA_INTER_SSE2\n\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r5, r2\n    add         r4, 2\n    lea         r0, [r0+r1*8]\n    lea         r5, [r5+r1*8]\n    dec         r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_64\n%endif\n%endif\n\n%macro SWAPMOVA 2\n%ifid %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:11", "text": "TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r5, r2\n    add         r4, 2\n    lea         r0, [r0+r1*8]\n    lea         r5, [r5+r1*8]\n    dec         r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_64\n%endif\n%endif\n\n%macro SWAPMOVA 2\n%ifid %1\n    SWAP %1, %2\n%else\n    mova %1, %2\n%endif\n%endmacro\n\n; in: t0-t2: tmp registers\n;     %1=p0 %2=p1 %3=p2 %4=p3 %5=q0 %6=q1 %7=mask0\n;     %8=mask1p %9=2 %10=p0' %11=p1' %12=p2'\n%macro LUMA_INTRA_P012 12 ; p0..p3 in memory\n%if ARCH_X86_64\n    paddw     t0, %3, %2\n    mova      t2, %4\n    paddw     t2, %3\n%else\n    mova      t0, %3\n    mova      t2, %4\n    paddw     t0, %2\n    paddw     t2, %3\n%endif\n    paddw     t0, %1\n    paddw     t2, t2\n    paddw     t0, %5\n    paddw     t2, %9\n    paddw     t0, %9    ; (p2 + p1 + p0 + q0 + 2)\n    paddw     t2, t0    ; (2*p3 + 3*p2 + p1 + p0 + q0 + 4)\n\n    psrlw     t2, 3\n    psrlw     t1, t0, 2\n    psubw     t2, %3\n    psubw     t1, %2\n    pand      t2, %8\n    pand      t1, %8\n    paddw     t2, %3\n    paddw     t1, %2\n    SWAPMOVA %11, t1\n\n    psubw     t1, t0, %3\n    paddw     t0, t0\n    psubw     t1, %5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:12", "text": "paddw     t0, %1\n    paddw     t2, t2\n    paddw     t0, %5\n    paddw     t2, %9\n    paddw     t0, %9    ; (p2 + p1 + p0 + q0 + 2)\n    paddw     t2, t0    ; (2*p3 + 3*p2 + p1 + p0 + q0 + 4)\n\n    psrlw     t2, 3\n    psrlw     t1, t0, 2\n    psubw     t2, %3\n    psubw     t1, %2\n    pand      t2, %8\n    pand      t1, %8\n    paddw     t2, %3\n    paddw     t1, %2\n    SWAPMOVA %11, t1\n\n    psubw     t1, t0, %3\n    paddw     t0, t0\n    psubw     t1, %5\n    psubw     t0, %3\n    paddw     t1, %6\n    paddw     t1, %2\n    paddw     t0, %6\n    psrlw     t1, 2     ; (2*p1 + p0 + q1 + 2)/4\n    psrlw     t0, 3     ; (p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4)>>3\n\n    pxor      t0, t1\n    pxor      t1, %1\n    pand      t0, %8\n    pand      t1, %7\n    pxor      t0, t1\n    pxor      t0, %1\n    SWAPMOVA %10, t0\n    SWAPMOVA %12, t2\n%endmacro\n\n%macro LUMA_INTRA_INIT 1\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n    %assign i 4\n%rep %1\n    CAT_XDEFINE t, i, [rsp+mmsize*(i-4)]\n    %assign i i+1\n%endrep\n%endmacro\n\n; in: %1-%3=tmp, %4=p2, %5=q2\n%macro LUMA_INTRA_INTER 5\n    LOAD_AB t0, t1, r2d, r3d\n    mova    %1, t0\n    LOAD_MASK m0, m1, m2, m3, %1, t1, t0, t2, t3\n%if ARCH_X86_64\n    mova    %2, t0        ; mask0\n    psrlw   t3, %1, 2\n%else\n    mova    t3, %1\n    mova    %2, t0        ; mask0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:13", "text": "%define t2 m6\n    %define t3 m7\n    %assign i 4\n%rep %1\n    CAT_XDEFINE t, i, [rsp+mmsize*(i-4)]\n    %assign i i+1\n%endrep\n%endmacro\n\n; in: %1-%3=tmp, %4=p2, %5=q2\n%macro LUMA_INTRA_INTER 5\n    LOAD_AB t0, t1, r2d, r3d\n    mova    %1, t0\n    LOAD_MASK m0, m1, m2, m3, %1, t1, t0, t2, t3\n%if ARCH_X86_64\n    mova    %2, t0        ; mask0\n    psrlw   t3, %1, 2\n%else\n    mova    t3, %1\n    mova    %2, t0        ; mask0\n    psrlw   t3, 2\n%endif\n    paddw   t3, [pw_2]    ; alpha/4+2\n    DIFF_LT m1, m2, t3, t2, t0 ; t2 = |p0-q0| < alpha/4+2\n    pand    t2, %2\n    mova    t3, %5        ; q2\n    mova    %1, t2        ; mask1\n    DIFF_LT t3, m2, t1, t2, t0 ; t2 = |q2-q0| < beta\n    pand    t2, %1\n    mova    t3, %4        ; p2\n    mova    %3, t2        ; mask1q\n    DIFF_LT t3, m1, t1, t2, t0 ; t2 = |p2-p0| < beta\n    pand    t2, %1\n    mova    %1, t2        ; mask1p\n%endmacro\n\n%macro LUMA_H_INTRA_LOAD 0\n%if mmsize == 8\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r4-8]\n    TRANSPOSE4x4W 4, 5, 0, 1, 2\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n\n    movu    m2, [r0]\n    movu    m3, [r0+r1]\n    movu    t0, [r0+r1*2]\n    movu    t1, [r0+r4]\n    TRANSPOSE4x4W 2, 3, 4, 5, 6\n    mova    t6, t0        ; q2\n    mova    t7, t1        ; q3\n%else\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r5-8]\n    movu    m2, [r4-8]\n    movu    m3, [r4+r1-8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:14", "text": "movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r4-8]\n    TRANSPOSE4x4W 4, 5, 0, 1, 2\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n\n    movu    m2, [r0]\n    movu    m3, [r0+r1]\n    movu    t0, [r0+r1*2]\n    movu    t1, [r0+r4]\n    TRANSPOSE4x4W 2, 3, 4, 5, 6\n    mova    t6, t0        ; q2\n    mova    t7, t1        ; q3\n%else\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r5-8]\n    movu    m2, [r4-8]\n    movu    m3, [r4+r1-8]\n    movu    t2, [r4+r1*2-8]\n    movu    t3, [r4+r5-8]\n    TRANSPOSE8x8W 4, 5, 0, 1, 2, 3, 6, 7, t4, t5\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n    mova    t6, t2        ; q2\n    mova    t7, t3        ; q3\n%endif\n%endmacro\n\n; in: %1=q3 %2=q2' %3=q1' %4=q0' %5=p0' %6=p1' %7=p2' %8=p3 %9=tmp\n%macro LUMA_H_INTRA_STORE 9\n%if mmsize == 8\n    TRANSPOSE4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r4-8], m%4\n    movq       m%1, %8\n    TRANSPOSE4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r4], m%1\n%else\n    TRANSPOSE2x4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r5-8], m%4\n    movhps     [r4-8], m%1\n    movhps     [r4+r1-8], m%2\n    movhps     [r4+r1*2-8], m%3\n    movhps     [r4+r5-8], m%4\n%ifnum %8\n    SWAP       %1, %8\n%else\n    mova       m%1, %8\n%endif\n    TRANSPOSE2x4x4W %5, %6, %7, %1, %9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:15", "text": "movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r4], m%1\n%else\n    TRANSPOSE2x4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r5-8], m%4\n    movhps     [r4-8], m%1\n    movhps     [r4+r1-8], m%2\n    movhps     [r4+r1*2-8], m%3\n    movhps     [r4+r5-8], m%4\n%ifnum %8\n    SWAP       %1, %8\n%else\n    mova       m%1, %8\n%endif\n    TRANSPOSE2x4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r5], m%1\n    movhps     [r4], m%5\n    movhps     [r4+r1], m%6\n    movhps     [r4+r1*2], m%7\n    movhps     [r4+r5], m%1\n%endif\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA_INTRA_64 0\ncglobal deblock_v_luma_intra_10, 4,7,16\n    %define t0 m1\n    %define t1 m2\n    %define t2 m4\n    %define p2 m8\n    %define p1 m9\n    %define p0 m10\n    %define q0 m11\n    %define q1 m12\n    %define q2 m13\n    %define aa m5\n    %define bb m14\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    neg     r4\n    add     r4, r0     ; pix-4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n    LOAD_AB aa, bb, r2d, r3d\n.loop:\n    mova    p2, [r4+r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:16", "text": "%define t2 m4\n    %define p2 m8\n    %define p1 m9\n    %define p0 m10\n    %define q0 m11\n    %define q1 m12\n    %define q2 m13\n    %define aa m5\n    %define bb m14\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    neg     r4\n    add     r4, r0     ; pix-4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n    LOAD_AB aa, bb, r2d, r3d\n.loop:\n    mova    p2, [r4+r1]\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n    mova    q2, [r0+2*r1]\n\n    LOAD_MASK p1, p0, q0, q1, aa, bb, m3, t0, t1\n    mova    t2, aa\n    psrlw   t2, 2\n    paddw   t2, m0 ; alpha/4+2\n    DIFF_LT p0, q0, t2, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT p2, p0, bb, t1, t0 ; m7 = |p2-p0| < beta\n    DIFF_LT q2, q0, bb, m7, t0 ; t1 = |q2-q0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n    LUMA_INTRA_P012 p0, p1, p2, [r4], q0, q1, m3, m6, m0, [r4+r5], [r4+2*r1], [r4+r1]\n    LUMA_INTRA_P012 q0, q1, q2, [r0+r5], p0, p1, m3, m7, m0, [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,16,mmsize\n    %define t0 m15\n    %define t1 m14\n    %define t2 m2\n    %define q3 m5\n    %define q2 m8\n    %define q1 m9\n    %define q0 m10\n    %define p0 m11\n    %define p1 m12\n    %define p2 m13\n    %define p3 m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:17", "text": "dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,16,mmsize\n    %define t0 m15\n    %define t1 m14\n    %define t2 m2\n    %define q3 m5\n    %define q2 m8\n    %define q1 m9\n    %define q0 m10\n    %define p0 m11\n    %define p1 m12\n    %define p2 m13\n    %define p3 m4\n    %define spill [rsp]\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    movu    q3, [r0-8]\n    movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1\n\n    LOAD_AB m1, m2, r2d, r3d\n    LOAD_MASK q1, q0, p0, p1, m1, m2, m3, t0, t1\n    psrlw   m1, 2\n    paddw   m1, m0 ; alpha/4+2\n    DIFF_LT p0, q0, m1, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT q2, q0, m2, t1, t0 ; t1 = |q2-q0| < beta\n    DIFF_LT p0, p2, m2, m7, t0 ; m7 = |p2-p0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n\n    mova spill, q3\n    LUMA_INTRA_P012 q0, q1, q2, q3, p0, p1, m3, m6, m0, m5, m1, q2\n    LUMA_INTRA_P012 p0, p1, p2, p3, q0, q1, m3, m7, m0, p0, m6, p2\n    mova    m7, spill\n\n    LUMA_H_INTRA_STORE 7, 8, 1, 5, 11, 6, 13, 4, 14\n\n    lea     r0, [r0+r1*8]\n    lea     r4, [r4+r1*8]\n    dec     r6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:18", "text": "LOAD_MASK q1, q0, p0, p1, m1, m2, m3, t0, t1\n    psrlw   m1, 2\n    paddw   m1, m0 ; alpha/4+2\n    DIFF_LT p0, q0, m1, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT q2, q0, m2, t1, t0 ; t1 = |q2-q0| < beta\n    DIFF_LT p0, p2, m2, m7, t0 ; m7 = |p2-p0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n\n    mova spill, q3\n    LUMA_INTRA_P012 q0, q1, q2, q3, p0, p1, m3, m6, m0, m5, m1, q2\n    LUMA_INTRA_P012 p0, p1, p2, p3, q0, q1, m3, m7, m0, p0, m6, p2\n    mova    m7, spill\n\n    LUMA_H_INTRA_STORE 7, 8, 1, 5, 11, 6, 13, 4, 14\n\n    lea     r0, [r0+r1*8]\n    lea     r4, [r4+r1*8]\n    dec     r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA_64\n%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8,-3*mmsize\n    LUMA_INTRA_INIT 3\n    lea     r4, [r1*4]\n    lea     r5, [r1*3]\n    neg     r4\n    add     r4, r0\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    mova    m0, [r4+r1*2] ; p1\n    mova    m1, [r4+r5]   ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LUMA_INTRA_INTER t4, t5, t6, [r4+r1], [r0+r1*2]\n    LUMA_INTRA_P012 m1, m0, t3, [r4], m2, m3, t5, t4, [pw_2], [r4+r5], [r4+2*r1], [r4+r1]\n    mova    t3, [r0+r1*2] ; q2\n    LUMA_INTRA_P012 m2, m3, t3, [r0+r5], m1, m0, t5, t6, [pw_2], [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:19", "text": "lea     r4, [r1*4]\n    lea     r5, [r1*3]\n    neg     r4\n    add     r4, r0\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    mova    m0, [r4+r1*2] ; p1\n    mova    m1, [r4+r5]   ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LUMA_INTRA_INTER t4, t5, t6, [r4+r1], [r0+r1*2]\n    LUMA_INTRA_P012 m1, m0, t3, [r4], m2, m3, t5, t4, [pw_2], [r4+r5], [r4+2*r1], [r4+r1]\n    mova    t3, [r0+r1*2] ; q2\n    LUMA_INTRA_P012 m2, m3, t3, [r0+r5], m1, m0, t5, t6, [pw_2], [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,8,-8*mmsize\n    LUMA_INTRA_INIT 8\n%if mmsize == 8\n    lea     r4, [r1*3]\n    mov     r5, 32/mmsize\n%else\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 32/mmsize\n%endif\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5\n\n    mova    m2, t4\n    mova    m0, t11\n    mova    m1, t5\n    mova    m3, t8\n    mova    m6, t6\n\n    LUMA_H_INTRA_STORE 2, 0, 1, 3, 4, 6, 5, t7, 7\n\n    lea     r0, [r0+r1*(mmsize/2)]\n%if mmsize == 8\n    dec     r5\n%else\n    lea     r4, [r4+r1*(mmsize/2)]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:20", "text": "LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5\n\n    mova    m2, t4\n    mova    m0, t11\n    mova    m1, t5\n    mova    m3, t8\n    mova    m6, t6\n\n    LUMA_H_INTRA_STORE 2, 0, 1, 3, 4, 6, 5, t7, 7\n\n    lea     r0, [r0+r1*(mmsize/2)]\n%if mmsize == 8\n    dec     r5\n%else\n    lea     r4, [r4+r1*(mmsize/2)]\n    dec     r6\n%endif\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64 == 0\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\nINIT_XMM sse2\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2\n    psraw   %7, 2\n    psubw   %6, %1\n    psubw   %7, %2\n    pand    %6, %5\n    pand    %7, %5\n    paddw   %1, %6\n    paddw   %2, %7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:21", "text": "%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2\n    psraw   %7, 2\n    psubw   %6, %1\n    psubw   %7, %2\n    pand    %6, %5\n    pand    %7, %5\n    paddw   %1, %6\n    paddw   %2, %7\n%endmacro\n\n%macro CHROMA_V_LOAD 1\n    mova        m0, [r0]    ; p1\n    mova        m1, [r0+r1] ; p0\n    mova        m2, [%1]    ; q0\n    mova        m3, [%1+r1] ; q1\n%endmacro\n\n%macro CHROMA_V_STORE 0\n    mova [r0+1*r1], m1\n    mova [r0+2*r1], m2\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5\n    punpckldq        m4, m5\n\n    punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:22", "text": "movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5\n    punpckldq        m4, m5\n\n    punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6\n    punpcklqdq       m2, m6\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 words in %1..%8\n%macro TRANSPOSE8x4W_STORE 8\n    TRANSPOSE4x4W     0, 1, 2, 3, 4\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride (unused on mmx)\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    %if mmsize == 8\n        movq m0, [pix_q - 4]\n        movq m1, [pix_q +   stride_q - 4]\n        movq m2, [pix_q + 2*stride_q - 4]\n        movq m3, [%1 - 4]\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    %endif\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride (unused on mmx)\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:23", "text": "%macro CHROMA_H_LOAD 4\n    %if mmsize == 8\n        movq m0, [pix_q - 4]\n        movq m1, [pix_q +   stride_q - 4]\n        movq m2, [pix_q + 2*stride_q - 4]\n        movq m3, [%1 - 4]\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    %endif\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride (unused on mmx)\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n        movq [pix_q - 4],              m0\n        movq [pix_q +   stride_q - 4], m1\n        movq [pix_q + 2*stride_q - 4], m2\n        movq [%1 - 4],                 m3\n    %else\n        TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    %endif\n%endmacro\n\n%macro CHROMA_V_LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n    punpcklwd   %1, %1\n    psraw       %1, 6\n%endmacro\n\n%macro DEBLOCK_CHROMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_10, 5,7-(mmsize/16),8*(mmsize/16)\n    mov         r5, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r5\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:24", "text": "; void ff_deblock_v_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_10, 5,7-(mmsize/16),8*(mmsize/16)\n    mov         r5, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r5\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                   int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_intra_10, 4,6-(mmsize/16),8*(mmsize/16)\n    mov         r4, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r4\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    CHROMA_DEBLOCK_P0_Q0_INTRA m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma_10, 5, 7, 8, 0-2*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n        CHROMA_H_LOAD r5, r6, [rsp], [rsp + mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:25", "text": ";                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma_10, 5, 7, 8, 0-2*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n        CHROMA_H_LOAD r5, r6, [rsp], [rsp + mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]\n\nRET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma422_10(uint16_t *pix, int stride, int alpha, int beta,\n;                                int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma422_10, 5, 7, 8, 0-3*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n\n    movd m0, [tc0_q]\n    punpcklbw m0, m0\n    psraw m0, 6\n    movq [rsp], m0\n\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n    mov r4, -8\n    .loop:\n\n        CHROMA_H_LOAD r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        movd             m6, [rsp + r4 + 8]\n        punpcklwd        m6,  m6\n        punpcklwd        m6,  m6\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:26", "text": ".loop:\n\n        CHROMA_H_LOAD r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        movd             m6, [rsp + r4 + 8]\n        punpcklwd        m6,  m6\n        punpcklwd        m6,  m6\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_CHROMA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_CHROMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "dbdf514c17a081328fa9f035cf03cb9b74c85567", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbdf514c17a081328fa9f035cf03cb9b74c85567/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 1001, "line_end": 1029}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:4", "text": "%macro LUMA_DEBLOCK_ONE 3\n    DIFF_LT     m5, %1, bm, m4, m6\n    pxor        m6, m6\n    mova        %3, m4\n    pcmpgtw     m6, tcm\n    pand        m4, tcm\n    pandn       m6, m7\n    pand        m4, m6\n    LUMA_Q1 m5, %2, m1, m2, m4, m6\n%endmacro\n\n%macro LUMA_H_STORE 2\n%if mmsize == 8\n    movq        [r0-4], m0\n    movq        [r0+r1-4], m1\n    movq        [r0+r1*2-4], m2\n    movq        [r0+%2-4], m3\n%else\n    movq        [r0-4], m0\n    movhps      [r0+r1-4], m0\n    movq        [r0+r1*2-4], m1\n    movhps      [%1-4], m1\n    movq        [%1+r1-4], m2\n    movhps      [%1+r1*2-4], m2\n    movq        [%1+%2-4], m3\n    movhps      [%1+r1*4-4], m3\n%endif\n%endmacro\n\n%macro DEBLOCK_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                           int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_10, 5,5,8*(mmsize/16)\n    %assign pad 5*mmsize+12-(stack_offset&15)\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define am  [rsp+mmsize*3]\n    %define bm  [rsp+mmsize*4]\n    SUB        rsp, pad\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, 32/mmsize\n    mov         r2, r0\n    sub         r0, r1\n    mova        am, m4\n    sub         r0, r1\n    mova        bm, m5\n    sub         r0, r1\n.loop:\n    mova        m0, [r0+r1]\n    mova        m1, [r0+r1*2]\n    mova        m2, [r2]\n    mova        m3, [r2+r1]\n\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:5", "text": "%define am  [rsp+mmsize*3]\n    %define bm  [rsp+mmsize*4]\n    SUB        rsp, pad\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, 32/mmsize\n    mov         r2, r0\n    sub         r0, r1\n    mova        am, m4\n    sub         r0, r1\n    mova        bm, m5\n    sub         r0, r1\n.loop:\n    mova        m0, [r0+r1]\n    mova        m1, [r0+r1*2]\n    mova        m2, [r2]\n    mova        m3, [r2+r1]\n\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    mova        m5, [r0]\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova   [r0+r1], m5\n\n    mova        m5, [r2+r1*2]\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova   [r2+r1], m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova [r0+r1*2], m1\n    mova      [r2], m2\n\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, mmsize/8\n    dec         r3\n    jg .loop\n    ADD         rsp, pad\n    RET\n\ncglobal deblock_h_luma_10, 5,6,8*(mmsize/16)\n    %assign pad 7*mmsize+12-(stack_offset&15)\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define p1m [rsp+mmsize*3]\n    %define p2m [rsp+mmsize*4]\n    %define am  [rsp+mmsize*5]\n    %define bm  [rsp+mmsize*6]\n    SUB        rsp, pad", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:6", "text": "mova      [r2], m2\n\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, mmsize/8\n    dec         r3\n    jg .loop\n    ADD         rsp, pad\n    RET\n\ncglobal deblock_h_luma_10, 5,6,8*(mmsize/16)\n    %assign pad 7*mmsize+12-(stack_offset&15)\n    %define tcm [rsp]\n    %define ms1 [rsp+mmsize]\n    %define ms2 [rsp+mmsize*2]\n    %define p1m [rsp+mmsize*3]\n    %define p2m [rsp+mmsize*4]\n    %define am  [rsp+mmsize*5]\n    %define bm  [rsp+mmsize*6]\n    SUB        rsp, pad\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB     m4, m5, r2d, r3d\n    mov         r3, r1\n    mova        am, m4\n    add         r3, r1\n    mov         r5, 32/mmsize\n    mova        bm, m5\n    add         r3, r1\n%if mmsize == 16\n    mov         r2, r0\n    add         r2, r3\n%endif\n.loop:\n%if mmsize == 8\n    movq        m2, [r0-8]     ; y q2 q1 q0\n    movq        m7, [r0+0]\n    movq        m5, [r0+r1-8]\n    movq        m3, [r0+r1+0]\n    movq        m0, [r0+r1*2-8]\n    movq        m6, [r0+r1*2+0]\n    movq        m1, [r0+r3-8]\n    TRANSPOSE4x4W 2, 5, 0, 1, 4\n    SWAP         2, 7\n    movq        m7, [r0+r3]\n    TRANSPOSE4x4W 2, 3, 6, 7, 4\n%else\n    movu        m5, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m3, [r2-8]\n    TRANSPOSE4x4W 5, 0, 2, 3, 6\n    mova       tcm, m3\n\n    movu        m4, [r2+r1-8]\n    movu        m1, [r2+r1*2-8]\n    movu        m3, [r2+r3-8]\n    movu        m7, [r2+r1*4-8]\n    TRANSPOSE4x4W 4, 1, 3, 7, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:7", "text": "movq        m6, [r0+r1*2+0]\n    movq        m1, [r0+r3-8]\n    TRANSPOSE4x4W 2, 5, 0, 1, 4\n    SWAP         2, 7\n    movq        m7, [r0+r3]\n    TRANSPOSE4x4W 2, 3, 6, 7, 4\n%else\n    movu        m5, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m3, [r2-8]\n    TRANSPOSE4x4W 5, 0, 2, 3, 6\n    mova       tcm, m3\n\n    movu        m4, [r2+r1-8]\n    movu        m1, [r2+r1*2-8]\n    movu        m3, [r2+r3-8]\n    movu        m7, [r2+r1*4-8]\n    TRANSPOSE4x4W 4, 1, 3, 7, 6\n\n    mova        m6, tcm\n    punpcklqdq  m6, m7\n    punpckhqdq  m5, m4\n    SBUTTERFLY qdq, 0, 1, 7\n    SBUTTERFLY qdq, 2, 3, 7\n%endif\n\n    mova       p2m, m6\n    LOAD_MASK   m0, m1, m2, m3, am, bm, m7, m4, m6\n    LOAD_TC     m6, r4\n    mova       tcm, m6\n\n    LUMA_DEBLOCK_ONE m1, m0, ms1\n    mova       p1m, m5\n\n    mova        m5, p2m\n    LUMA_DEBLOCK_ONE m2, m3, ms2\n    mova       p2m, m5\n\n    pxor        m5, m5\n    mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova        m0, p1m\n    mova        m3, p2m\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r2, r3\n\n    add         r4, mmsize/8\n    lea         r0, [r0+r1*(mmsize/2)]\n    lea         r2, [r2+r1*(mmsize/2)]\n    dec         r5\n    jg .loop\n    ADD        rsp, pad\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:8", "text": "mova        m6, tcm\n    pcmpgtw     m5, tcm\n    psubw       m6, ms1\n    pandn       m5, m7\n    psubw       m6, ms2\n    pand        m5, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m5, m7, m6\n    mova        m0, p1m\n    mova        m3, p2m\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r2, r3\n\n    add         r4, mmsize/8\n    lea         r0, [r0+r1*(mmsize/2)]\n    lea         r2, [r2+r1*(mmsize/2)]\n    dec         r5\n    jg .loop\n    ADD        rsp, pad\n    RET\n%endmacro\n\n%if ARCH_X86_64\n; in:  m0=p1, m1=p0, m2=q0, m3=q1, m8=p2, m9=q2\n;      m12=alpha, m13=beta\n; out: m0=p1', m3=q1', m1=p0', m2=q0'\n; clobbers: m4, m5, m6, m7, m10, m11, m14\n%macro DEBLOCK_LUMA_INTER_SSE2 0\n    LOAD_MASK   m0, m1, m2, m3, m12, m13, m7, m4, m6\n    LOAD_TC     m6, r4\n    DIFF_LT     m8, m1, m13, m10, m4\n    DIFF_LT     m9, m2, m13, m11, m4\n    pand        m6, m7\n\n    mova       m14, m6\n    pxor        m4, m4\n    pcmpgtw     m6, m4\n    pand        m6, m14\n\n    mova        m5, m10\n    pand        m5, m6\n    LUMA_Q1 m8, m0, m1, m2, m5, m4\n\n    mova        m5, m11\n    pand        m5, m6\n    LUMA_Q1 m9, m3, m1, m2, m5, m4\n\n    pxor        m4, m4\n    psubw       m6, m10\n    pcmpgtw     m4, m14\n    pandn       m4, m7\n    psubw       m6, m11\n    pand        m4, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m4, m5, m6\n\n    SWAP         0, 8\n    SWAP         3, 9\n%endmacro\n\n%macro DEBLOCK_LUMA_64 0\ncglobal deblock_v_luma_10, 5,5,15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:9", "text": "LUMA_Q1 m8, m0, m1, m2, m5, m4\n\n    mova        m5, m11\n    pand        m5, m6\n    LUMA_Q1 m9, m3, m1, m2, m5, m4\n\n    pxor        m4, m4\n    psubw       m6, m10\n    pcmpgtw     m4, m14\n    pandn       m4, m7\n    psubw       m6, m11\n    pand        m4, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m4, m5, m6\n\n    SWAP         0, 8\n    SWAP         3, 9\n%endmacro\n\n%macro DEBLOCK_LUMA_64 0\ncglobal deblock_v_luma_10, 5,5,15\n    %define p2 m8\n    %define p1 m0\n    %define p0 m1\n    %define q0 m2\n    %define q1 m3\n    %define q2 m9\n    %define mask0 m7\n    %define mask1 m10\n    %define mask2 m11\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r0\n    sub         r0, r1\n    sub         r0, r1\n    sub         r0, r1\n    mov         r3, 2\n.loop:\n    mova        p2, [r0]\n    mova        p1, [r0+r1]\n    mova        p0, [r0+r1*2]\n    mova        q0, [r2]\n    mova        q1, [r2+r1]\n    mova        q2, [r2+r1*2]\n    DEBLOCK_LUMA_INTER_SSE2\n    mova   [r0+r1], p1\n    mova [r0+r1*2], p0\n    mova      [r2], q0\n    mova   [r2+r1], q1\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, 2\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,7,15\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:10", "text": "mova        p0, [r0+r1*2]\n    mova        q0, [r2]\n    mova        q1, [r2+r1]\n    mova        q2, [r2+r1*2]\n    DEBLOCK_LUMA_INTER_SSE2\n    mova   [r0+r1], p1\n    mova [r0+r1*2], p0\n    mova      [r2], q0\n    mova   [r2+r1], q1\n    add         r0, mmsize\n    add         r2, mmsize\n    add         r4, 2\n    dec         r3\n    jg .loop\n    RET\n\ncglobal deblock_h_luma_10, 5,7,15\n    shl        r2d, 2\n    shl        r3d, 2\n    LOAD_AB    m12, m13, r2d, r3d\n    mov         r2, r1\n    add         r2, r1\n    add         r2, r1\n    mov         r5, r0\n    add         r5, r2\n    mov         r6, 2\n.loop:\n    movu        m8, [r0-8]     ; y q2 q1 q0 p0 p1 p2 x\n    movu        m0, [r0+r1-8]\n    movu        m2, [r0+r1*2-8]\n    movu        m9, [r5-8]\n    movu        m5, [r5+r1-8]\n    movu        m1, [r5+r1*2-8]\n    movu        m3, [r5+r2-8]\n    movu        m7, [r5+r1*4-8]\n\n    TRANSPOSE4x4W 8, 0, 2, 9, 10\n    TRANSPOSE4x4W 5, 1, 3, 7, 10\n\n    punpckhqdq  m8, m5\n    SBUTTERFLY qdq, 0, 1, 10\n    SBUTTERFLY qdq, 2, 3, 10\n    punpcklqdq  m9, m7\n\n    DEBLOCK_LUMA_INTER_SSE2\n\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r5, r2\n    add         r4, 2\n    lea         r0, [r0+r1*8]\n    lea         r5, [r5+r1*8]\n    dec         r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:11", "text": "SBUTTERFLY qdq, 0, 1, 10\n    SBUTTERFLY qdq, 2, 3, 10\n    punpcklqdq  m9, m7\n\n    DEBLOCK_LUMA_INTER_SSE2\n\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    LUMA_H_STORE r5, r2\n    add         r4, 2\n    lea         r0, [r0+r1*8]\n    lea         r5, [r5+r1*8]\n    dec         r6\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_64\n%endif\n%endif\n\n%macro SWAPMOVA 2\n%ifid %1\n    SWAP %1, %2\n%else\n    mova %1, %2\n%endif\n%endmacro\n\n; in: t0-t2: tmp registers\n;     %1=p0 %2=p1 %3=p2 %4=p3 %5=q0 %6=q1 %7=mask0\n;     %8=mask1p %9=2 %10=p0' %11=p1' %12=p2'\n%macro LUMA_INTRA_P012 12 ; p0..p3 in memory\n%if ARCH_X86_64\n    paddw     t0, %3, %2\n    mova      t2, %4\n    paddw     t2, %3\n%else\n    mova      t0, %3\n    mova      t2, %4\n    paddw     t0, %2\n    paddw     t2, %3\n%endif\n    paddw     t0, %1\n    paddw     t2, t2\n    paddw     t0, %5\n    paddw     t2, %9\n    paddw     t0, %9    ; (p2 + p1 + p0 + q0 + 2)\n    paddw     t2, t0    ; (2*p3 + 3*p2 + p1 + p0 + q0 + 4)\n\n    psrlw     t2, 3\n    psrlw     t1, t0, 2\n    psubw     t2, %3\n    psubw     t1, %2\n    pand      t2, %8\n    pand      t1, %8\n    paddw     t2, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:12", "text": "%else\n    mova      t0, %3\n    mova      t2, %4\n    paddw     t0, %2\n    paddw     t2, %3\n%endif\n    paddw     t0, %1\n    paddw     t2, t2\n    paddw     t0, %5\n    paddw     t2, %9\n    paddw     t0, %9    ; (p2 + p1 + p0 + q0 + 2)\n    paddw     t2, t0    ; (2*p3 + 3*p2 + p1 + p0 + q0 + 4)\n\n    psrlw     t2, 3\n    psrlw     t1, t0, 2\n    psubw     t2, %3\n    psubw     t1, %2\n    pand      t2, %8\n    pand      t1, %8\n    paddw     t2, %3\n    paddw     t1, %2\n    SWAPMOVA %11, t1\n\n    psubw     t1, t0, %3\n    paddw     t0, t0\n    psubw     t1, %5\n    psubw     t0, %3\n    paddw     t1, %6\n    paddw     t1, %2\n    paddw     t0, %6\n    psrlw     t1, 2     ; (2*p1 + p0 + q1 + 2)/4\n    psrlw     t0, 3     ; (p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4)>>3\n\n    pxor      t0, t1\n    pxor      t1, %1\n    pand      t0, %8\n    pand      t1, %7\n    pxor      t0, t1\n    pxor      t0, %1\n    SWAPMOVA %10, t0\n    SWAPMOVA %12, t2\n%endmacro\n\n%macro LUMA_INTRA_INIT 1\n    %xdefine pad %1*mmsize+((gprsize*3) % mmsize)-(stack_offset&15)\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n    %assign i 4\n%rep %1\n    CAT_XDEFINE t, i, [rsp+mmsize*(i-4)]\n    %assign i i+1\n%endrep\n    SUB    rsp, pad\n%endmacro\n\n; in: %1-%3=tmp, %4=p2, %5=q2\n%macro LUMA_INTRA_INTER 5\n    LOAD_AB t0, t1, r2d, r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:13", "text": "SWAPMOVA %12, t2\n%endmacro\n\n%macro LUMA_INTRA_INIT 1\n    %xdefine pad %1*mmsize+((gprsize*3) % mmsize)-(stack_offset&15)\n    %define t0 m4\n    %define t1 m5\n    %define t2 m6\n    %define t3 m7\n    %assign i 4\n%rep %1\n    CAT_XDEFINE t, i, [rsp+mmsize*(i-4)]\n    %assign i i+1\n%endrep\n    SUB    rsp, pad\n%endmacro\n\n; in: %1-%3=tmp, %4=p2, %5=q2\n%macro LUMA_INTRA_INTER 5\n    LOAD_AB t0, t1, r2d, r3d\n    mova    %1, t0\n    LOAD_MASK m0, m1, m2, m3, %1, t1, t0, t2, t3\n%if ARCH_X86_64\n    mova    %2, t0        ; mask0\n    psrlw   t3, %1, 2\n%else\n    mova    t3, %1\n    mova    %2, t0        ; mask0\n    psrlw   t3, 2\n%endif\n    paddw   t3, [pw_2]    ; alpha/4+2\n    DIFF_LT m1, m2, t3, t2, t0 ; t2 = |p0-q0| < alpha/4+2\n    pand    t2, %2\n    mova    t3, %5        ; q2\n    mova    %1, t2        ; mask1\n    DIFF_LT t3, m2, t1, t2, t0 ; t2 = |q2-q0| < beta\n    pand    t2, %1\n    mova    t3, %4        ; p2\n    mova    %3, t2        ; mask1q\n    DIFF_LT t3, m1, t1, t2, t0 ; t2 = |p2-p0| < beta\n    pand    t2, %1\n    mova    %1, t2        ; mask1p\n%endmacro\n\n%macro LUMA_H_INTRA_LOAD 0\n%if mmsize == 8\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r4-8]\n    TRANSPOSE4x4W 4, 5, 0, 1, 2\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n\n    movu    m2, [r0]\n    movu    m3, [r0+r1]\n    movu    t0, [r0+r1*2]\n    movu    t1, [r0+r4]\n    TRANSPOSE4x4W 2, 3, 4, 5, 6\n    mova    t6, t0        ; q2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:14", "text": "pand    t2, %1\n    mova    %1, t2        ; mask1p\n%endmacro\n\n%macro LUMA_H_INTRA_LOAD 0\n%if mmsize == 8\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r4-8]\n    TRANSPOSE4x4W 4, 5, 0, 1, 2\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n\n    movu    m2, [r0]\n    movu    m3, [r0+r1]\n    movu    t0, [r0+r1*2]\n    movu    t1, [r0+r4]\n    TRANSPOSE4x4W 2, 3, 4, 5, 6\n    mova    t6, t0        ; q2\n    mova    t7, t1        ; q3\n%else\n    movu    t0, [r0-8]\n    movu    t1, [r0+r1-8]\n    movu    m0, [r0+r1*2-8]\n    movu    m1, [r0+r5-8]\n    movu    m2, [r4-8]\n    movu    m3, [r4+r1-8]\n    movu    t2, [r4+r1*2-8]\n    movu    t3, [r4+r5-8]\n    TRANSPOSE8x8W 4, 5, 0, 1, 2, 3, 6, 7, t4, t5\n    mova    t4, t0        ; p3\n    mova    t5, t1        ; p2\n    mova    t6, t2        ; q2\n    mova    t7, t3        ; q3\n%endif\n%endmacro\n\n; in: %1=q3 %2=q2' %3=q1' %4=q0' %5=p0' %6=p1' %7=p2' %8=p3 %9=tmp\n%macro LUMA_H_INTRA_STORE 9\n%if mmsize == 8\n    TRANSPOSE4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r4-8], m%4\n    movq       m%1, %8\n    TRANSPOSE4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r4], m%1\n%else\n    TRANSPOSE2x4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r5-8], m%4\n    movhps     [r4-8], m%1\n    movhps     [r4+r1-8], m%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:15", "text": "%if mmsize == 8\n    TRANSPOSE4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r4-8], m%4\n    movq       m%1, %8\n    TRANSPOSE4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r4], m%1\n%else\n    TRANSPOSE2x4x4W %1, %2, %3, %4, %9\n    movq       [r0-8], m%1\n    movq       [r0+r1-8], m%2\n    movq       [r0+r1*2-8], m%3\n    movq       [r0+r5-8], m%4\n    movhps     [r4-8], m%1\n    movhps     [r4+r1-8], m%2\n    movhps     [r4+r1*2-8], m%3\n    movhps     [r4+r5-8], m%4\n%ifnum %8\n    SWAP       %1, %8\n%else\n    mova       m%1, %8\n%endif\n    TRANSPOSE2x4x4W %5, %6, %7, %1, %9\n    movq       [r0], m%5\n    movq       [r0+r1], m%6\n    movq       [r0+r1*2], m%7\n    movq       [r0+r5], m%1\n    movhps     [r4], m%5\n    movhps     [r4+r1], m%6\n    movhps     [r4+r1*2], m%7\n    movhps     [r4+r5], m%1\n%endif\n%endmacro\n\n%if ARCH_X86_64\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA_INTRA_64 0\ncglobal deblock_v_luma_intra_10, 4,7,16\n    %define t0 m1\n    %define t1 m2\n    %define t2 m4\n    %define p2 m8\n    %define p1 m9\n    %define p0 m10\n    %define q0 m11\n    %define q1 m12\n    %define q2 m13\n    %define aa m5\n    %define bb m14\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    neg     r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:16", "text": ";-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\n%macro DEBLOCK_LUMA_INTRA_64 0\ncglobal deblock_v_luma_intra_10, 4,7,16\n    %define t0 m1\n    %define t1 m2\n    %define t2 m4\n    %define p2 m8\n    %define p1 m9\n    %define p0 m10\n    %define q0 m11\n    %define q1 m12\n    %define q2 m13\n    %define aa m5\n    %define bb m14\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    neg     r4\n    add     r4, r0     ; pix-4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n    LOAD_AB aa, bb, r2d, r3d\n.loop:\n    mova    p2, [r4+r1]\n    mova    p1, [r4+2*r1]\n    mova    p0, [r4+r5]\n    mova    q0, [r0]\n    mova    q1, [r0+r1]\n    mova    q2, [r0+2*r1]\n\n    LOAD_MASK p1, p0, q0, q1, aa, bb, m3, t0, t1\n    mova    t2, aa\n    psrlw   t2, 2\n    paddw   t2, m0 ; alpha/4+2\n    DIFF_LT p0, q0, t2, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT p2, p0, bb, t1, t0 ; m7 = |p2-p0| < beta\n    DIFF_LT q2, q0, bb, m7, t0 ; t1 = |q2-q0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n    LUMA_INTRA_P012 p0, p1, p2, [r4], q0, q1, m3, m6, m0, [r4+r5], [r4+2*r1], [r4+r1]\n    LUMA_INTRA_P012 q0, q1, q2, [r0+r5], p0, p1, m3, m7, m0, [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,16\n    %define t0 m15\n    %define t1 m14\n    %define t2 m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:17", "text": "DIFF_LT q2, q0, bb, m7, t0 ; t1 = |q2-q0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n    LUMA_INTRA_P012 p0, p1, p2, [r4], q0, q1, m3, m6, m0, [r4+r5], [r4+2*r1], [r4+r1]\n    LUMA_INTRA_P012 q0, q1, q2, [r0+r5], p0, p1, m3, m7, m0, [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,16\n    %define t0 m15\n    %define t1 m14\n    %define t2 m2\n    %define q3 m5\n    %define q2 m8\n    %define q1 m9\n    %define q0 m10\n    %define p0 m11\n    %define p1 m12\n    %define p2 m13\n    %define p3 m4\n    %define spill [rsp]\n    %assign pad 24-(stack_offset&15)\n    SUB     rsp, pad\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 2\n    mova    m0, [pw_2]\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    movu    q3, [r0-8]\n    movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1\n\n    LOAD_AB m1, m2, r2d, r3d\n    LOAD_MASK q1, q0, p0, p1, m1, m2, m3, t0, t1\n    psrlw   m1, 2\n    paddw   m1, m0 ; alpha/4+2\n    DIFF_LT p0, q0, m1, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT q2, q0, m2, t1, t0 ; t1 = |q2-q0| < beta\n    DIFF_LT p0, p2, m2, m7, t0 ; m7 = |p2-p0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:18", "text": "movu    q2, [r0+r1-8]\n    movu    q1, [r0+r1*2-8]\n    movu    q0, [r0+r5-8]\n    movu    p0, [r4-8]\n    movu    p1, [r4+r1-8]\n    movu    p2, [r4+r1*2-8]\n    movu    p3, [r4+r5-8]\n    TRANSPOSE8x8W 5, 8, 9, 10, 11, 12, 13, 4, 1\n\n    LOAD_AB m1, m2, r2d, r3d\n    LOAD_MASK q1, q0, p0, p1, m1, m2, m3, t0, t1\n    psrlw   m1, 2\n    paddw   m1, m0 ; alpha/4+2\n    DIFF_LT p0, q0, m1, m6, t0 ; m6 = |p0-q0| < alpha/4+2\n    DIFF_LT q2, q0, m2, t1, t0 ; t1 = |q2-q0| < beta\n    DIFF_LT p0, p2, m2, m7, t0 ; m7 = |p2-p0| < beta\n    pand    m6, m3\n    pand    m7, m6\n    pand    m6, t1\n\n    mova spill, q3\n    LUMA_INTRA_P012 q0, q1, q2, q3, p0, p1, m3, m6, m0, m5, m1, q2\n    LUMA_INTRA_P012 p0, p1, p2, p3, q0, q1, m3, m7, m0, p0, m6, p2\n    mova    m7, spill\n\n    LUMA_H_INTRA_STORE 7, 8, 1, 5, 11, 6, 13, 4, 14\n\n    lea     r0, [r0+r1*8]\n    lea     r4, [r4+r1*8]\n    dec     r6\n    jg .loop\n    ADD    rsp, pad\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_LUMA_INTRA_64\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA_INTRA_64\n%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8*(mmsize/16)\n    LUMA_INTRA_INIT 3\n    lea     r4, [r1*4]\n    lea     r5, [r1*3]\n    neg     r4\n    add     r4, r0\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    mova    m0, [r4+r1*2] ; p1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:19", "text": "%endif\n\n%endif\n\n%macro DEBLOCK_LUMA_INTRA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_luma_intra_10, 4,7,8*(mmsize/16)\n    LUMA_INTRA_INIT 3\n    lea     r4, [r1*4]\n    lea     r5, [r1*3]\n    neg     r4\n    add     r4, r0\n    mov     r6, 32/mmsize\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    mova    m0, [r4+r1*2] ; p1\n    mova    m1, [r4+r5]   ; p0\n    mova    m2, [r0]      ; q0\n    mova    m3, [r0+r1]   ; q1\n    LUMA_INTRA_INTER t4, t5, t6, [r4+r1], [r0+r1*2]\n    LUMA_INTRA_P012 m1, m0, t3, [r4], m2, m3, t5, t4, [pw_2], [r4+r5], [r4+2*r1], [r4+r1]\n    mova    t3, [r0+r1*2] ; q2\n    LUMA_INTRA_P012 m2, m3, t3, [r0+r5], m1, m0, t5, t6, [pw_2], [r0], [r0+r1], [r0+2*r1]\n    add     r0, mmsize\n    add     r4, mmsize\n    dec     r6\n    jg .loop\n    ADD    rsp, pad\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_luma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                 int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_luma_intra_10, 4,7,8*(mmsize/16)\n    LUMA_INTRA_INIT 8\n%if mmsize == 8\n    lea     r4, [r1*3]\n    mov     r5, 32/mmsize\n%else\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 32/mmsize\n%endif\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5\n\n    mova    m2, t4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:20", "text": "%if mmsize == 8\n    lea     r4, [r1*3]\n    mov     r5, 32/mmsize\n%else\n    lea     r4, [r1*4]\n    lea     r5, [r1*3] ; 3*stride\n    add     r4, r0     ; pix+4*stride\n    mov     r6, 32/mmsize\n%endif\n    shl    r2d, 2\n    shl    r3d, 2\n.loop:\n    LUMA_H_INTRA_LOAD\n    LUMA_INTRA_INTER t8, t9, t10, t5, t6\n\n    LUMA_INTRA_P012 m1, m0, t3, t4, m2, m3, t9, t8, [pw_2], t8, t5, t11\n    mova    t3, t6     ; q2\n    LUMA_INTRA_P012 m2, m3, t3, t7, m1, m0, t9, t10, [pw_2], m4, t6, m5\n\n    mova    m2, t4\n    mova    m0, t11\n    mova    m1, t5\n    mova    m3, t8\n    mova    m6, t6\n\n    LUMA_H_INTRA_STORE 2, 0, 1, 3, 4, 6, 5, t7, 7\n\n    lea     r0, [r0+r1*(mmsize/2)]\n%if mmsize == 8\n    dec     r5\n%else\n    lea     r4, [r4+r1*(mmsize/2)]\n    dec     r6\n%endif\n    jg .loop\n    ADD    rsp, pad\n    RET\n%endmacro\n\n%if ARCH_X86_64 == 0\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\nINIT_XMM sse2\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:21", "text": "%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\nINIT_XMM sse2\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_LUMA\nDEBLOCK_LUMA_INTRA\n%endif\n%endif\n\n; in: %1=p0, %2=q0, %3=p1, %4=q1, %5=mask, %6=tmp, %7=tmp\n; out: %1=p0', %2=q0'\n%macro CHROMA_DEBLOCK_P0_Q0_INTRA 7\n    mova    %6, [pw_2]\n    paddw   %6, %3\n    paddw   %6, %4\n    paddw   %7, %6, %2\n    paddw   %6, %1\n    paddw   %6, %3\n    paddw   %7, %4\n    psraw   %6, 2\n    psraw   %7, 2\n    psubw   %6, %1\n    psubw   %7, %2\n    pand    %6, %5\n    pand    %7, %5\n    paddw   %1, %6\n    paddw   %2, %7\n%endmacro\n\n%macro CHROMA_V_LOAD 1\n    mova        m0, [r0]    ; p1\n    mova        m1, [r0+r1] ; p0\n    mova        m2, [%1]    ; q0\n    mova        m3, [%1+r1] ; q1\n%endmacro\n\n%macro CHROMA_V_STORE 0\n    mova [r0+1*r1], m1\n    mova [r0+2*r1], m2\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:22", "text": "%endmacro\n\n%macro CHROMA_V_STORE 0\n    mova [r0+1*r1], m1\n    mova [r0+2*r1], m2\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5\n    punpckldq        m4, m5\n\n    punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6\n    punpcklqdq       m2, m6\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 words in %1..%8\n%macro TRANSPOSE8x4W_STORE 8\n    TRANSPOSE4x4W     0, 1, 2, 3, 4\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride (unused on mmx)\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    %if mmsize == 8\n        movq m0, [pix_q - 4]\n        movq m1, [pix_q +   stride_q - 4]\n        movq m2, [pix_q + 2*stride_q - 4]\n        movq m3, [%1 - 4]\n        TRANSPOSE4x4W 0, 1, 2, 3, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:23", "text": "movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride (unused on mmx)\n; %3, %4 = place to store p1 and q1 values\n%macro CHROMA_H_LOAD 4\n    %if mmsize == 8\n        movq m0, [pix_q - 4]\n        movq m1, [pix_q +   stride_q - 4]\n        movq m2, [pix_q + 2*stride_q - 4]\n        movq m3, [%1 - 4]\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        TRANSPOSE4x8W_LOAD PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    %endif\n    mova %3, m0\n    mova %4, m3\n%endmacro\n\n; %1 = base + 3*stride\n; %2 = 3*stride (unused on mmx)\n; %3, %4 = place to load p1 and q1 values\n%macro CHROMA_H_STORE 4\n    mova m0, %3\n    mova m3, %4\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n        movq [pix_q - 4],              m0\n        movq [pix_q +   stride_q - 4], m1\n        movq [pix_q + 2*stride_q - 4], m2\n        movq [%1 - 4],                 m3\n    %else\n        TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    %endif\n%endmacro\n\n%macro CHROMA_V_LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n    punpcklwd   %1, %1\n    psraw       %1, 6\n%endmacro\n\n%macro DEBLOCK_CHROMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_10, 5,7-(mmsize/16),8*(mmsize/16)\n    mov         r5, r0\n    sub         r0, r1\n    sub         r0, r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:24", "text": "TRANSPOSE8x4W_STORE PASS8ROWS(pix_q-4, %1-4, stride_q, %2)\n    %endif\n%endmacro\n\n%macro CHROMA_V_LOAD_TC 2\n    movd        %1, [%2]\n    punpcklbw   %1, %1\n    punpcklwd   %1, %1\n    psraw       %1, 6\n%endmacro\n\n%macro DEBLOCK_CHROMA 0\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_10, 5,7-(mmsize/16),8*(mmsize/16)\n    mov         r5, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r5\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    pxor        m4, m4\n    CHROMA_V_LOAD_TC m6, r4\n    psubw       m6, [pw_3]\n    pmaxsw      m6, m4\n    pand        m7, m6\n    DEBLOCK_P0_Q0 m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_v_chroma_intra_10(uint16_t *pix, int stride, int alpha,\n;                                   int beta)\n;-----------------------------------------------------------------------------\ncglobal deblock_v_chroma_intra_10, 4,6-(mmsize/16),8*(mmsize/16)\n    mov         r4, r0\n    sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r4\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    CHROMA_DEBLOCK_P0_Q0_INTRA m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma_10, 5, 7, 8, 0-2*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:25", "text": "sub         r0, r1\n    sub         r0, r1\n    shl        r2d, 2\n    shl        r3d, 2\n    CHROMA_V_LOAD r4\n    LOAD_AB     m4, m5, r2d, r3d\n    LOAD_MASK   m0, m1, m2, m3, m4, m5, m7, m6, m4\n    CHROMA_DEBLOCK_P0_Q0_INTRA m1, m2, m0, m3, m7, m5, m6\n    CHROMA_V_STORE\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma_10(uint16_t *pix, int stride, int alpha, int beta,\n;                             int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma_10, 5, 7, 8, 0-2*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n        CHROMA_H_LOAD r5, r6, [rsp], [rsp + mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        CHROMA_V_LOAD_TC m6,  tc0_q\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp], [rsp + mmsize]\n\nRET\n\n;-----------------------------------------------------------------------------\n; void ff_deblock_h_chroma422_10(uint16_t *pix, int stride, int alpha, int beta,\n;                                int8_t *tc0)\n;-----------------------------------------------------------------------------\ncglobal deblock_h_chroma422_10, 5, 7, 8, 0-3*mmsize, pix_, stride_, alpha_, beta_, tc0_\n    shl alpha_d,  2\n    shl beta_d,   2\n\n    movd m0, [tc0_q]\n    punpcklbw m0, m0\n    psraw m0, 6\n    movq [rsp], m0\n\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n    mov r4, -8\n    .loop:\n\n        CHROMA_H_LOAD r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        movd             m6, [rsp + r4 + 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_deblock_10bit.asm:26", "text": "shl alpha_d,  2\n    shl beta_d,   2\n\n    movd m0, [tc0_q]\n    punpcklbw m0, m0\n    psraw m0, 6\n    movq [rsp], m0\n\n    mov r5,       pix_q\n    lea r6,      [3*stride_q]\n    add r5,       r6\n\n    mov r4, -8\n    .loop:\n\n        CHROMA_H_LOAD r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n        LOAD_AB          m4,  m5, alpha_d, beta_d\n        LOAD_MASK        m0,  m1, m2, m3, m4, m5, m7, m6, m4\n        pxor             m4,  m4\n        movd             m6, [rsp + r4 + 8]\n        punpcklwd        m6,  m6\n        punpcklwd        m6,  m6\n        psubw            m6, [pw_3]\n        pmaxsw           m6,  m4\n        pand             m7,  m6\n        DEBLOCK_P0_Q0    m1,  m2, m0, m3, m7, m5, m6\n        CHROMA_H_STORE r5, r6, [rsp + 1*mmsize], [rsp + 2*mmsize]\n\n        lea pix_q, [pix_q + (mmsize/2)*stride_q]\n        lea r5,    [r5 +    (mmsize/2)*stride_q]\n        add r4, (mmsize/4)\n    jl .loop\nRET\n\n%endmacro\n\nINIT_XMM sse2\nDEBLOCK_CHROMA\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEBLOCK_CHROMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_deblock_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_deblock_10bit.asm", "line_start": 1001, "line_end": 1042}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2-optimized H.264 iDCT\n;*****************************************************************************\n;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2003-2008 x264 project\n;*\n;* Authors: Laurent Aimar <fenrir@via.ecp.fr>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Holger Lubitz <hal@duncan.ol.sub.de>\n;*          Min Chen <chenm001.163.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscan8_mem: db  4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n           db  6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n           db  4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n           db  6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n           db  4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n           db  6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n           db  4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n           db  6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n           db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\n\nSECTION .text\n\n; %1=callee, %2=dst to jump to if tail call is impossible (can be empty,\n; then no jmp is performed), %3=current iteration, %4=last iteration\n%macro TAIL_CALL_IF_LAST 4\n%if (%3 == %4) && !has_epilogue", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:2", "text": "db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\n\nSECTION .text\n\n; %1=callee, %2=dst to jump to if tail call is impossible (can be empty,\n; then no jmp is performed), %3=current iteration, %4=last iteration\n%macro TAIL_CALL_IF_LAST 4\n%if (%3 == %4) && !has_epilogue\n    jmp         %1\n%else\n    call        %1\n    %ifnempty %2\n        jmp      %2\n    %endif\n%endif\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs\n    movq         m0, [%2]\n    movq         m1, [%2+8]\n    movq         m2, [%2+16]\n    movq         m3, [%2+24]\n\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    mova         m6, [pw_32]\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    %if mmsize == 16\n        mova    [%2+ 0], m7\n        mova    [%2+16], m7\n    %else\n        movq    [%2+ 0], m7\n        movq    [%2+ 8], m7\n        movq    [%2+16], m7\n        movq    [%2+24], m7\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:3", "text": "TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    %if mmsize == 16\n        mova    [%2+ 0], m7\n        mova    [%2+16], m7\n    %else\n        movq    [%2+ 0], m7\n        movq    [%2+ 8], m7\n        movq    [%2+16], m7\n        movq    [%2+24], m7\n    %endif\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3\n\n    psubw        m0, m3\n    psubw        m5, m3\n    psraw        m3, 1\n    paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n%if ARCH_X86_64\n    SUMSUB_BA    w, 5, 2, 8\n    SUMSUB_BA    w, 6, 5, 8\n    SUMSUB_BA    w, 4, 2, 8\n    SUMSUB_BA    w, 7, 6, 8\n    SUMSUB_BA    w, 0, 4, 8\n    SUMSUB_BA    w, 3, 2, 8\n    SUMSUB_BA    w, 1, 5, 8\n%else\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n%endif\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:5", "text": "%endif\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:6", "text": "STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:7", "text": "psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": "DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32\n    test        r5d, 3\n    jnz .nextblock\n    rep ret\n\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "h264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 3\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n; requires m5 to contain pw_1\n%macro DEQUANT 1\n    movd        m4, t3d\n    pshufd      m4, m4, 0\n    punpcklwd   m0, m5\n    punpcklwd   m1, m5\n    punpcklwd   m2, m5\n    punpcklwd   m3, m5\n    pmaddwd     m0, m4\n    pmaddwd     m1, m4\n    pmaddwd     m2, m4\n    pmaddwd     m3, m4\n    psrad       m0, %1\n    psrad       m1, %1\n    psrad       m2, %1\n    psrad       m3, %1\n%endmacro\n\n%macro STORE_WORDS 10\n%if ARCH_X86_64\n    movq        t0, %1\n    movq        t1, %2\n    psrldq      %1, 8\n    psrldq      %2, 8\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movq        t0, %1\n    movq        t1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "psrad       m0, %1\n    psrad       m1, %1\n    psrad       m2, %1\n    psrad       m3, %1\n%endmacro\n\n%macro STORE_WORDS 10\n%if ARCH_X86_64\n    movq        t0, %1\n    movq        t1, %2\n    psrldq      %1, 8\n    psrldq      %2, 8\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movq        t0, %1\n    movq        t1, %2\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%else\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%endif\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%endif\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 6\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2\n    punpckhdq   m4, m2\n    movhlps     m1, m0\n    movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    WIN64_PUSH_XMM 7\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    WIN64_PUSH_XMM 7\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ > 2 || (__NASM_MAJOR__ == 2 && __NASM_MINOR__ >= 4)\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:19", "text": "paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct.asm", "line_start": 721, "line_end": 760}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:5", "text": "mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:6", "text": "%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:7", "text": "paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": "INIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32\n    test        r5d, 3\n    jnz .nextblock\n    rep ret\n\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 3\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n; requires m5 to contain pw_1\n%macro DEQUANT 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n; requires m5 to contain pw_1\n%macro DEQUANT 1\n    movd        m4, t3d\n    pshufd      m4, m4, 0\n    punpcklwd   m0, m5\n    punpcklwd   m1, m5\n    punpcklwd   m2, m5\n    punpcklwd   m3, m5\n    pmaddwd     m0, m4\n    pmaddwd     m1, m4\n    pmaddwd     m2, m4\n    pmaddwd     m3, m4\n    psrad       m0, %1\n    psrad       m1, %1\n    psrad       m2, %1\n    psrad       m3, %1\n%endmacro\n\n%macro STORE_WORDS 10\n%if ARCH_X86_64\n    movq        t0, %1\n    movq        t1, %2\n    psrldq      %1, 8\n    psrldq      %2, 8\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movq        t0, %1\n    movq        t1, %2\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%else\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "psrldq      %1, 8\n    psrldq      %2, 8\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movq        t0, %1\n    movq        t1, %2\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%else\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%endif\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 6\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 6\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2\n    punpckhdq   m4, m2\n    movhlps     m1, m0\n    movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    WIN64_PUSH_XMM 7\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ > 2 || (__NASM_MAJOR__ == 2 && __NASM_MINOR__ >= 4)\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    WIN64_PUSH_XMM 7\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ > 2 || (__NASM_MAJOR__ == 2 && __NASM_MINOR__ >= 4)\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:19", "text": "movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "c1aed854915bc5d1125e5616da3f798013aff6e5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1aed854915bc5d1125e5616da3f798013aff6e5/libavcodec/x86/h264_idct.asm", "line_start": 721, "line_end": 750}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "psrldq      %1, 8\n    psrldq      %2, 8\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movq        t0, %1\n    movq        t1, %2\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    shr         t0, 32\n    shr         t1, 32\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%else\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%3*32], t0w\n    mov [t2+%7*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%4*32], t0w\n    mov [t2+%8*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    psrldq      %1, 4\n    psrldq      %2, 4\n    mov [t2+%5*32], t0w\n    mov [t2+%9*32], t1w\n    movd       t0d, %1\n    movd       t1d, %2\n    mov [t2+%6*32], t0w\n    mov [t2+%10*32], t1w\n%endif\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "5b5d51cbc11ecaba29c570f4ab3f617158228a7f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5b5d51cbc11ecaba29c570f4ab3f617158228a7f/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2\n    punpckhdq   m4, m2\n    movhlps     m1, m0\n    movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ > 2 || (__NASM_MAJOR__ == 2 && __NASM_MINOR__ >= 4)\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "5b5d51cbc11ecaba29c570f4ab3f617158228a7f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5b5d51cbc11ecaba29c570f4ab3f617158228a7f/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ > 2 || (__NASM_MAJOR__ == 2 && __NASM_MINOR__ >= 4)\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "5b5d51cbc11ecaba29c570f4ab3f617158228a7f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5b5d51cbc11ecaba29c570f4ab3f617158228a7f/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:19", "text": "pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "5b5d51cbc11ecaba29c570f4ab3f617158228a7f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5b5d51cbc11ecaba29c570f4ab3f617158228a7f/libavcodec/x86/h264_idct.asm", "line_start": 721, "line_end": 749}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0, m1,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2, m3,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2\n    punpckhdq   m4, m2\n    movhlps     m1, m0\n    movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "89f984e3d1d8f1f009c616e0c6425094395fdbdc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89f984e3d1d8f1f009c616e0c6425094395fdbdc/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "89f984e3d1d8f1f009c616e0c6425094395fdbdc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89f984e3d1d8f1f009c616e0c6425094395fdbdc/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n; requires m5 to contain pw_1\n%macro DEQUANT 1\n    movd        m4, t3d\n    pshufd      m4, m4, 0\n    punpcklwd   m0, m5\n    punpcklwd   m1, m5\n    punpcklwd   m2, m5\n    punpcklwd   m3, m5\n    pmaddwd     m0, m4\n    pmaddwd     m1, m4\n    pmaddwd     m2, m4\n    pmaddwd     m3, m4\n    psrad       m0, %1\n    psrad       m1, %1\n    psrad       m2, %1\n    psrad       m3, %1\n    packssdw    m0, m1\n    packssdw    m2, m3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "e6ae2802a39b24324bd6c394c073a26900a39f23", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e6ae2802a39b24324bd6c394c073a26900a39f23/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    pcmpeqw     m5, m5\n    punpckldq   m0, m2\n    punpckhdq   m4, m2\n    movhlps     m1, m0\n    movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "e6ae2802a39b24324bd6c394c073a26900a39f23", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e6ae2802a39b24324bd6c394c073a26900a39f23/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n    psrlw       m5, 15\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "e6ae2802a39b24324bd6c394c073a26900a39f23", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e6ae2802a39b24324bd6c394c073a26900a39f23/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "e6ae2802a39b24324bd6c394c073a26900a39f23", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e6ae2802a39b24324bd6c394c073a26900a39f23/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 727}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2-optimized H.264 iDCT\n;*****************************************************************************\n;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2003-2008 x264 project\n;*\n;* Authors: Laurent Aimar <fenrir@via.ecp.fr>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Holger Lubitz <hal@duncan.ol.sub.de>\n;*          Min Chen <chenm001.163.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscan8_mem: db  4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n           db  6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n           db  4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n           db  6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n           db  4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n           db  6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n           db  4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n           db  6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n           db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=callee, %2=dst to jump to if tail call is impossible (can be empty,\n; then no jmp is performed), %3=current iteration, %4=last iteration\n%macro TAIL_CALL_IF_LAST 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:2", "text": "db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=callee, %2=dst to jump to if tail call is impossible (can be empty,\n; then no jmp is performed), %3=current iteration, %4=last iteration\n%macro TAIL_CALL_IF_LAST 4\n%if (%3 == %4) && !has_epilogue\n    jmp         %1\n%else\n    call        %1\n    %ifnempty %2\n        jmp      %2\n    %endif\n%endif\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs\n    movq         m0, [%2]\n    movq         m1, [%2+8]\n    movq         m2, [%2+16]\n    movq         m3, [%2+24]\n\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    mova         m6, [pw_32]\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    %if mmsize == 16\n        mova    [%2+ 0], m7\n        mova    [%2+16], m7\n    %else\n        movq    [%2+ 0], m7\n        movq    [%2+ 8], m7\n        movq    [%2+16], m7\n        movq    [%2+24], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:3", "text": "%if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    %if mmsize == 16\n        mova    [%2+ 0], m7\n        mova    [%2+16], m7\n    %else\n        movq    [%2+ 0], m7\n        movq    [%2+ 8], m7\n        movq    [%2+16], m7\n        movq    [%2+24], m7\n    %endif\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3\n\n    psubw        m0, m3\n    psubw        m5, m3\n    psraw        m3, 1\n    paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "psraw        m3, 1\n    paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:5", "text": "mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:6", "text": "SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:7", "text": "%1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "INIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": ".no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32\n    test        r5d, 3\n    jnz .nextblock\n    rep ret\n\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 3\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd        m4, t3d\n    movq        m5, [pw_1]\n    pshufd      m4, m4, 0\n    punpcklwd   m0, m5\n    punpcklwd   m1, m5\n    punpcklwd   m2, m5\n    punpcklwd   m3, m5\n    pmaddwd     m0, m4\n    pmaddwd     m1, m4\n    pmaddwd     m2, m4\n    pmaddwd     m3, m4\n    psrad       m0, %1\n    psrad       m1, %1\n    psrad       m2, %1\n    psrad       m3, %1\n    packssdw    m0, m1\n    packssdw    m2, m3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS m0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS m2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    mova        m4, m0\n    punpckldq   m0, m2\n    punpckhdq   m4, m2\n    movhlps     m1, m0\n    movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "movhlps     m3, m4\n    SWAP 2, 4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd        m6, t1d\n    DEQUANT_STORE m6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "ada0a81577b8e6724545514024ae41f48633af46", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada0a81577b8e6724545514024ae41f48633af46/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 726}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1\n    psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "012c25bac4b65ff1064ac7a52e2ecce49770f351", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/012c25bac4b65ff1064ac7a52e2ecce49770f351/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "packssdw  xmm2, xmm3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "012c25bac4b65ff1064ac7a52e2ecce49770f351", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/012c25bac4b65ff1064ac7a52e2ecce49770f351/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "012c25bac4b65ff1064ac7a52e2ecce49770f351", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/012c25bac4b65ff1064ac7a52e2ecce49770f351/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "012c25bac4b65ff1064ac7a52e2ecce49770f351", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/012c25bac4b65ff1064ac7a52e2ecce49770f351/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 724}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:2", "text": "db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=callee, %2=dst to jump to if tail call is impossible (can be empty,\n; then no jmp is performed), %3=current iteration, %4=last iteration\n%macro TAIL_CALL_IF_LAST 4\n%if (%3 == %4) && !has_epilogue\n    jmp         %1\n%else\n    call        %1\n    %ifnempty %2\n        jmp      %2\n    %endif\n%endif\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs\n    movq         m0, [%2]\n    movq         m1, [%2+8]\n    movq         m2, [%2+16]\n    movq         m3, [%2+24]\n\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    mova         m6, [pw_32]\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    movq    [%2+ 0], m7\n    movq    [%2+ 8], m7\n    movq    [%2+16], m7\n    movq    [%2+24], m7\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:3", "text": "%if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    movq    [%2+ 0], m7\n    movq    [%2+ 8], m7\n    movq    [%2+16], m7\n    movq    [%2+24], m7\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3\n\n    psubw        m0, m3\n    psubw        m5, m3\n    psraw        m3, 1\n    paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:5", "text": "; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:6", "text": "mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:7", "text": "psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": "%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "h264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32\n    test        r5d, 3\n    jnz .nextblock\n    rep ret\n\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": ".cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 7\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 7\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 3\n.cycle%1end:\n%if %1 == 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_add8x4_idct_sse2, .cycle%1end, %1, 3\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    TAIL_CALL_IF_LAST h264_idct_dc_add8_mmxext, , %1, 3\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1\n    psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b9cbbd9074974234a319f042a21875b69b18c6f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b9cbbd9074974234a319f042a21875b69b18c6f2/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 719}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2-optimized H.264 iDCT\n;*****************************************************************************\n;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2003-2008 x264 project\n;*\n;* Authors: Laurent Aimar <fenrir@via.ecp.fr>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Holger Lubitz <hal@duncan.ol.sub.de>\n;*          Min Chen <chenm001.163.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscan8_mem: db  4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n           db  6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n           db  4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n           db  6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n           db  4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n           db  6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n           db  4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n           db  6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n           db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:2", "text": "db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs\n    movq         m0, [%2]\n    movq         m1, [%2+8]\n    movq         m2, [%2+16]\n    movq         m3, [%2+24]\n\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    mova         m6, [pw_32]\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    movq    [%2+ 0], m7\n    movq    [%2+ 8], m7\n    movq    [%2+16], m7\n    movq    [%2+24], m7\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:3", "text": "movq    [%2+ 8], m7\n    movq    [%2+16], m7\n    movq    [%2+24], m7\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3\n\n    psubw        m0, m3\n    psubw        m5, m3\n    psraw        m3, 1\n    paddw        m0, m7\n    psubw        m5, m7\n    psraw        m7, 1\n    psubw        m0, m3\n    psubw        m5, m7\n\n    psraw        m7, m1, 2\n    SWAP 7,1\n    psraw        m3, m4, 2\n    paddw        m3, m0\n    psraw        m0, 2\n    paddw        m1, m5\n    psraw        m5, 2\n    psubw        m0, m4\n    psubw        m7, m5\n\n    psraw        m5, m6, 1\n    SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=ptrdiff_t stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:5", "text": "IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:6", "text": "; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:7", "text": "cglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": "movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    TAIL_CALL    h264_idct_add8_mmx_plane, 0\n\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx       r6d, byte [scan8+r5]\n    movzx       r6d, byte [r4+r6]\n    or          r6w, word [r2]\n    test        r6d, r6d\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32\n    test        r5d, 3\n    jnz .nextblock\n    rep ret\n\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc         r5d\n    add          r2, 32\n    test        r5d, 3\n    jnz .nextblock\n    rep ret\n\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1\n    psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "01ff05e4bc0b8f80da8db3a664270bf7976d81f0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01ff05e4bc0b8f80da8db3a664270bf7976d81f0/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 708}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\nh264_idct_add8_mmx_plane:\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc          r5\n    add          r2, 32\n    test         r5, 3\n    jnz .nextblock\n    rep ret", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": "movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc          r5\n    add          r2, 32\n    test         r5, 3\n    jnz .nextblock\n    rep ret\n\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n    RET ; TODO: check rep ret after a function call\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n    RET ; TODO: check rep ret after a function call\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = ptrdiff_t stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = ptrdiff_t stride\nh264_add8x4_idct_sse2:\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1\n    psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "b51cbd4116f3e612d148abffa47471acccf19a72", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b51cbd4116f3e612d148abffa47471acccf19a72/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2-optimized H.264 iDCT\n;*****************************************************************************\n;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2003-2008 x264 project\n;*\n;* Authors: Laurent Aimar <fenrir@via.ecp.fr>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Holger Lubitz <hal@duncan.ol.sub.de>\n;*          Min Chen <chenm001.163.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscan8_mem: db  4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n           db  6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n           db  4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n           db  6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n           db  4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n           db  6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n           db  4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n           db  6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n           db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:2", "text": "db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%if PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs\n    movq         m0, [%2]\n    movq         m1, [%2+8]\n    movq         m2, [%2+16]\n    movq         m3, [%2+24]\n\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    mova         m6, [pw_32]\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    movq    [%2+ 0], m7\n    movq    [%2+ 8], m7\n    movq    [%2+16], m7\n    movq    [%2+24], m7\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\nh264_idct_add8_mmx_plane:\n    movsxdifnidn r3, r3d\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc          r5\n    add          r2, 32\n    test         r5, 3\n    jnz .nextblock", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": ".nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc          r5\n    add          r2, 32\n    test         r5, 3\n    jnz .nextblock\n    rep ret\n\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n    RET ; TODO: check rep ret after a function call\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = int stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movsxdifnidn r3, r3d\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n    RET ; TODO: check rep ret after a function call\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = int stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movsxdifnidn r3, r3d\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = int stride\nh264_add8x4_idct_sse2:\n    movsxdifnidn r3, r3d\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "cglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": ".cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_sse2(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1\n    psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%endmacro\n\n%macro STORE_WORDS 9\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%endmacro\n\n%macro DEQUANT_STORE 1\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "18019f177e660b38725c4fb91334a6c25801ebdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/18019f177e660b38725c4fb91334a6c25801ebdd/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 712}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:4", "text": "SWAP 5,6\n    psraw        m4, m2, 1\n    paddw        m6, m2\n    psubw        m4, m5\n\n    mova         m2, %1\n    mova         m5, %2\n    SUMSUB_BA    w, 5, 2\n    SUMSUB_BA    w, 6, 5\n    SUMSUB_BA    w, 4, 2\n    SUMSUB_BA    w, 7, 6\n    SUMSUB_BA    w, 0, 4\n    SUMSUB_BA    w, 3, 2\n    SUMSUB_BA    w, 1, 5\n    SWAP         7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112]\n    mova         m6, [%1+ 96]\n    mova         m5, [%1+ 80]\n    mova         m3, [%1+ 48]\n    mova         m2, [%1+ 32]\n    mova         m1, [%1+ 16]\n    IDCT8_1D   [%1], [%1+ 64]\n%endmacro\n\n; %1=int16_t *block, %2=int16_t *dstblock\n%macro IDCT8_ADD_MMX_START 2\n    IDCT8_1D_FULL %1\n    mova       [%1], m7\n    TRANSPOSE4x4W 0, 1, 2, 3, 7\n    mova         m7, [%1]\n    mova    [%2   ], m0\n    mova    [%2+16], m1\n    mova    [%2+32], m2\n    mova    [%2+48], m3\n    TRANSPOSE4x4W 4, 5, 6, 7, 3\n    mova    [%2+ 8], m4\n    mova    [%2+24], m5\n    mova    [%2+40], m6\n    mova    [%2+56], m7\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_MMX_END 3-4\n    IDCT8_1D_FULL %2\n    mova    [%2   ], m5\n    mova    [%2+16], m6\n    mova    [%2+32], m7\n\n    pxor         m7, m7\n%if %0 == 4\n    movq   [%4+  0], m7\n    movq   [%4+  8], m7\n    movq   [%4+ 16], m7\n    movq   [%4+ 24], m7\n    movq   [%4+ 32], m7\n    movq   [%4+ 40], m7\n    movq   [%4+ 48], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:5", "text": "mova    [%2+40], m6\n    mova    [%2+56], m7\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_MMX_END 3-4\n    IDCT8_1D_FULL %2\n    mova    [%2   ], m5\n    mova    [%2+16], m6\n    mova    [%2+32], m7\n\n    pxor         m7, m7\n%if %0 == 4\n    movq   [%4+  0], m7\n    movq   [%4+  8], m7\n    movq   [%4+ 16], m7\n    movq   [%4+ 24], m7\n    movq   [%4+ 32], m7\n    movq   [%4+ 40], m7\n    movq   [%4+ 48], m7\n    movq   [%4+ 56], m7\n    movq   [%4+ 64], m7\n    movq   [%4+ 72], m7\n    movq   [%4+ 80], m7\n    movq   [%4+ 88], m7\n    movq   [%4+ 96], m7\n    movq   [%4+104], m7\n    movq   [%4+112], m7\n    movq   [%4+120], m7\n%endif\n    STORE_DIFFx2 m0, m1, m5, m6, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m5, m6, m7, 6, %1, %3\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n    mova         m2, [%2+32]\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m4, m0, m5, m6, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m1, m2, m5, m6, m7, 6, %1, %3\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:6", "text": "%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_SSE 4\n    IDCT8_1D_FULL %2\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%2], [%2+16]\n%endif\n    paddw        m0, [pw_32]\n\n%if ARCH_X86_64 == 0\n    mova    [%2   ], m0\n    mova    [%2+16], m4\n    IDCT8_1D   [%2], [%2+ 16]\n    mova    [%2   ], m6\n    mova    [%2+16], m7\n%else\n    SWAP          0, 8\n    SWAP          4, 9\n    IDCT8_1D     m8, m9\n    SWAP          6, 8\n    SWAP          7, 9\n%endif\n\n    pxor         m7, m7\n    lea          %4, [%3*3]\n    STORE_DIFF   m0, m6, m7, [%1     ]\n    STORE_DIFF   m1, m6, m7, [%1+%3  ]\n    STORE_DIFF   m2, m6, m7, [%1+%3*2]\n    STORE_DIFF   m3, m6, m7, [%1+%4  ]\n%if ARCH_X86_64 == 0\n    mova         m0, [%2   ]\n    mova         m1, [%2+16]\n%else\n    SWAP          0, 8\n    SWAP          1, 9\n%endif\n    mova   [%2+  0], m7\n    mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:7", "text": "mova   [%2+ 16], m7\n    mova   [%2+ 32], m7\n    mova   [%2+ 48], m7\n    mova   [%2+ 64], m7\n    mova   [%2+ 80], m7\n    mova   [%2+ 96], m7\n    mova   [%2+112], m7\n    lea          %1, [%1+%3*4]\n    STORE_DIFF   m4, m6, m7, [%1     ]\n    STORE_DIFF   m5, m6, m7, [%1+%3  ]\n    STORE_DIFF   m0, m6, m7, [%1+%3*2]\n    STORE_DIFF   m1, m6, m7, [%1+%4  ]\n%endmacro\n\nINIT_XMM sse2\n; void ff_h264_idct8_add_8_sse2(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_add_8, 3, 4, 10\n    movsxdifnidn  r2, r2d\n    IDCT8_ADD_SSE r0, r1, r2, r3\n    RET\n\n%macro DC_ADD_MMXEXT_INIT 2\n    add          %1, 32\n    sar          %1, 6\n    movd         m0, %1d\n    lea          %1, [%2*3]\n    pshufw       m0, m0, 0\n    pxor         m1, m1\n    psubw        m1, m0\n    packuswb     m0, m0\n    packuswb     m1, m1\n%endmacro\n\n%macro DC_ADD_MMXEXT_OP 4\n    %1           m2, [%2     ]\n    %1           m3, [%2+%3  ]\n    %1           m4, [%2+%3*2]\n    %1           m5, [%2+%4  ]\n    paddusb      m2, m0\n    paddusb      m3, m0\n    paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": ";                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\nh264_idct_add8_mmx_plane:\n    movsxdifnidn r3, r3d\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\nh264_idct_add8_mmx_plane:\n    movsxdifnidn r3, r3d\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc          r5\n    add          r2, 32\n    test         r5, 3\n    jnz .nextblock\n    rep ret\n\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "%if PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n    RET ; TODO: check rep ret after a function call\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = int stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movsxdifnidn r3, r3d\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = int stride\nh264_add8x4_idct_sse2:\n    movsxdifnidn r3, r3d\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:12", "text": "psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = int stride\nh264_add8x4_idct_sse2:\n    movsxdifnidn r3, r3d\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]\n    movhps m3, [r2+56]\n    IDCT4_1D w,0,1,2,3,4,5\n    TRANSPOSE2x4x4W 0,1,2,3,4\n    paddw m0, [pw_32]\n    IDCT4_1D w,0,1,2,3,4,5\n    pxor  m7, m7\n    mova [r2+ 0], m7\n    mova [r2+16], m7\n    mova [r2+32], m7\n    mova [r2+48], m7\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, r0, r3\n    lea   r0, [r0+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, r0, r3\n    ret\n\n%macro add16_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:13", "text": "%if ARCH_X86_64\n    add         r0, r5\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16_8, 5, 5 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r5, r0\n%endif\n    ; unrolling of the loop leads to an average performance gain of\n    ; 20-25%\n    add16_sse2_cycle 0, 0xc\n    add16_sse2_cycle 1, 0x14\n    add16_sse2_cycle 2, 0xe\n    add16_sse2_cycle 3, 0x16\n    add16_sse2_cycle 4, 0x1c\n    add16_sse2_cycle 5, 0x24\n    add16_sse2_cycle 6, 0x1e\n    add16_sse2_cycle 7, 0x26\nRET\n\n%macro add16intra_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:14", "text": "add         r0, r0m\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n    mov        r0d, dword [r1+%1*8]\n%if ARCH_X86_64\n    add         r0, r7\n%else\n    add         r0, r0m\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 < 7\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add16intra_8_sse2(uint8_t *dst, const int *block_offset,\n;                                     int16_t *block, int stride,\n;                                     const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add16intra_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov         r7, r0\n%endif\n    add16intra_sse2_cycle 0, 0xc\n    add16intra_sse2_cycle 1, 0x14\n    add16intra_sse2_cycle 2, 0xe\n    add16intra_sse2_cycle 3, 0x16\n    add16intra_sse2_cycle 4, 0x1c\n    add16intra_sse2_cycle 5, 0x24\n    add16intra_sse2_cycle 6, 0x1e\n    add16intra_sse2_cycle 7, 0x26\nRET\n\n%macro add8_sse2_cycle 2\n    movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:15", "text": "movzx       r0, word [r4+%2]\n    test        r0, r0\n    jz .try%1dc\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_add8x4_idct_sse2\n    jmp .cycle%1end\n.try%1dc:\n    movsx       r0, word [r2   ]\n    or         r0w, word [r2+32]\n    jz .cycle%1end\n%if ARCH_X86_64\n    mov        r0d, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n    add         r0, [r7]\n%else\n    mov         r0, r0m\n    mov         r0, [r0]\n    add         r0, dword [r1+(%1&1)*8+64*(1+(%1>>1))]\n%endif\n    call        h264_idct_dc_add8_mmxext\n.cycle%1end:\n%if %1 == 1\n    add         r2, 384+64\n%elif %1 < 3\n    add         r2, 64\n%endif\n%endmacro\n\n; void ff_h264_idct_add8_8_sse2(uint8_t **dest, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6 * 8])\ncglobal h264_idct_add8_8, 5, 7 + ARCH_X86_64, 8\n    movsxdifnidn r3, r3d\n    add          r2, 512\n%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_mmx(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:16", "text": "%if ARCH_X86_64\n    mov          r7, r0\n%endif\n    add8_sse2_cycle 0, 0x34\n    add8_sse2_cycle 1, 0x3c\n%if ARCH_X86_64\n    add          r7, gprsize\n%else\n    add        r0mp, gprsize\n%endif\n    add8_sse2_cycle 2, 0x5c\n    add8_sse2_cycle 3, 0x64\nRET\n\n;void ff_h264_luma_dc_dequant_idct_mmx(int16_t *output, int16_t *input, int qmul)\n\n%macro WALSH4_1D 5\n    SUMSUB_BADC w, %4, %3, %2, %1, %5\n    SUMSUB_BADC w, %4, %2, %3, %1, %5\n    SWAP %1, %4, %3\n%endmacro\n\n%macro DEQUANT 1-3\n%if cpuflag(sse2)\n    movd      xmm4, t3d\n    movq      xmm5, [pw_1]\n    pshufd    xmm4, xmm4, 0\n    movq2dq   xmm0, m0\n    movq2dq   xmm1, m1\n    movq2dq   xmm2, m2\n    movq2dq   xmm3, m3\n    punpcklwd xmm0, xmm5\n    punpcklwd xmm1, xmm5\n    punpcklwd xmm2, xmm5\n    punpcklwd xmm3, xmm5\n    pmaddwd   xmm0, xmm4\n    pmaddwd   xmm1, xmm4\n    pmaddwd   xmm2, xmm4\n    pmaddwd   xmm3, xmm4\n    psrad     xmm0, %1\n    psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%else\n    mova        m7, [pw_1]\n    mova        m4, %1\n    punpcklwd   %1, m7\n    punpckhwd   m4, m7\n    mova        m5, %2\n    punpcklwd   %2, m7\n    punpckhwd   m5, m7\n    movd        m7, t3d\n    punpckldq   m7, m7\n    pmaddwd     %1, m7\n    pmaddwd     %2, m7\n    pmaddwd     m4, m7\n    pmaddwd     m5, m7\n    psrad       %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:17", "text": "psrad     xmm1, %1\n    psrad     xmm2, %1\n    psrad     xmm3, %1\n    packssdw  xmm0, xmm1\n    packssdw  xmm2, xmm3\n%else\n    mova        m7, [pw_1]\n    mova        m4, %1\n    punpcklwd   %1, m7\n    punpckhwd   m4, m7\n    mova        m5, %2\n    punpcklwd   %2, m7\n    punpckhwd   m5, m7\n    movd        m7, t3d\n    punpckldq   m7, m7\n    pmaddwd     %1, m7\n    pmaddwd     %2, m7\n    pmaddwd     m4, m7\n    pmaddwd     m5, m7\n    psrad       %1, %3\n    psrad       %2, %3\n    psrad       m4, %3\n    psrad       m5, %3\n    packssdw    %1, m4\n    packssdw    %2, m5\n%endif\n%endmacro\n\n%macro STORE_WORDS 5-9\n%if cpuflag(sse)\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    psrldq  %1, 4\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n    movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%else\n    movd  t0d, %1\n    psrlq  %1, 32\n    movd  t1d, %1\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%else\n    movd  t0d, %1\n    psrlq  %1, 32\n    movd  t1d, %1\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n%endif\n%endmacro\n\n%macro DEQUANT_STORE 1\n%if cpuflag(sse2)\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%else\n    DEQUANT     m0, m1, %1\n    STORE_WORDS m0,  0,  1,  4,  5\n    STORE_WORDS m1,  2,  3,  6,  7\n\n    DEQUANT     m2, m3, %1\n    STORE_WORDS m2,  8,  9, 12, 13\n    STORE_WORDS m3, 10, 11, 14, 15\n%endif\n%endmacro\n\nINIT_XMM sse2\ncglobal h264_luma_dc_dequant_idct, 3, 4, 7\nINIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:19", "text": "INIT_MMX cpuname\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:20", "text": "%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 761, "line_end": 811}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:21", "text": "movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "7c003b63c85aadf57ca10be849bd9895a4eeeb87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7c003b63c85aadf57ca10be849bd9895a4eeeb87/libavcodec/x86/h264_idct.asm", "line_start": 801, "line_end": 811}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:18", "text": "movd  t0d, %1\n    psrldq  %1, 4\n    movd  t1d, %1\n    mov [t2+%6*32], t0w\n    mov [t2+%8*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%7*32], t0w\n    mov [t2+%9*32], t1w\n%else\n    movd  t0d, %1\n    psrlq  %1, 32\n    movd  t1d, %1\n    mov [t2+%2*32], t0w\n    mov [t2+%4*32], t1w\n    shr   t0d, 16\n    shr   t1d, 16\n    mov [t2+%3*32], t0w\n    mov [t2+%5*32], t1w\n%endif\n%endmacro\n\n%macro DEQUANT_STORE 1\n%if cpuflag(sse2)\n    DEQUANT     %1\n    STORE_WORDS xmm0,  0,  1,  4,  5,  2,  3,  6,  7\n    STORE_WORDS xmm2,  8,  9, 12, 13, 10, 11, 14, 15\n%else\n    DEQUANT     m0, m1, %1\n    STORE_WORDS m0,  0,  1,  4,  5\n    STORE_WORDS m1,  2,  3,  6,  7\n\n    DEQUANT     m2, m3, %1\n    STORE_WORDS m2,  8,  9, 12, 13\n    STORE_WORDS m3, 10, 11, 14, 15\n%endif\n%endmacro\n\n%macro IDCT_DC_DEQUANT 1\ncglobal h264_luma_dc_dequant_idct, 3, 4, %1\n    ; manually spill XMM registers for Win64 because\n    ; the code here is initialized with INIT_MMX\n    WIN64_SPILL_XMM %1\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:19", "text": "; manually spill XMM registers for Win64 because\n    ; the code here is initialized with INIT_MMX\n    WIN64_SPILL_XMM %1\n    movq        m3, [r1+24]\n    movq        m2, [r1+16]\n    movq        m1, [r1+ 8]\n    movq        m0, [r1+ 0]\n    WALSH4_1D    0,1,2,3,4\n    TRANSPOSE4x4W 0,1,2,3,4\n    WALSH4_1D    0,1,2,3,4\n\n; shift, tmp, output, qmul\n%if WIN64\n    DECLARE_REG_TMP 0,3,1,2\n    ; we can't avoid this, because r0 is the shift register (ecx) on win64\n    xchg        r0, t2\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 3,1,0,2\n%else\n    DECLARE_REG_TMP 1,3,0,2\n%endif\n\n    cmp        t3d, 32767\n    jg .big_qmul\n    add        t3d, 128 << 16\n    DEQUANT_STORE 8\n    RET\n.big_qmul:\n    bsr        t0d, t3d\n    add        t3d, 128 << 16\n    mov        t1d, 7\n    cmp        t0d, t1d\n    cmovg      t0d, t1d\n    inc        t1d\n    shr        t3d, t0b\n    sub        t1d, t0d\n    movd      xmm6, t1d\n    DEQUANT_STORE xmm6\n    RET\n%endmacro\n\nINIT_MMX sse2\nIDCT_DC_DEQUANT 7\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_idct.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:20", "text": "INIT_MMX sse2\nIDCT_DC_DEQUANT 7\n\n%ifdef __NASM_VER__\n%if __NASM_MAJOR__ >= 2 && __NASM_MINOR__ >= 4\n%unmacro STORE_DIFFx2 8 ; remove macro from x86util.asm but yasm doesn't have this yet\n%endif\n%endif\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movd       %3, [%7]\n    movd       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movd     [%7], %3\n    movd  [%7+%8], %4\n%endmacro\n\n%macro DC_ADD_INIT 1\n    add      %1d, 32\n    sar      %1d, 6\n    movd     m0, %1d\n    pshuflw  m0, m0, 0\n    lea      %1, [3*stride_q]\n    pxor     m1, m1\n    psubw    m1, m0\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n%macro IDCT_XMM 1\n\nINIT_XMM %1\n\ncglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_idct.asm", "line_start": 761, "line_end": 817}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:21", "text": "cglobal h264_idct_add_8, 3, 3, 8, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    IDCT4_ADD    dst_q, block_q, stride_q\nRET\n\ncglobal h264_idct_dc_add_8, 3, 4, 6, dst_, block_, stride_\n    movsxdifnidn stride_q, stride_d\n    movsx             r3d, word [block_q]\n    mov   dword [block_q], 0\n    DC_ADD_INIT r3\n    DC_ADD_MMXEXT_OP movd, dst_q, stride_q, r3\nRET\n\n%endmacro\n\nIDCT_XMM sse2\nIDCT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/h264_idct.asm", "line_start": 801, "line_end": 817}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2-optimized H.264 iDCT\n;*****************************************************************************\n;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2003-2008 x264 project\n;*\n;* Authors: Laurent Aimar <fenrir@via.ecp.fr>\n;*          Loren Merritt <lorenm@u.washington.edu>\n;*          Holger Lubitz <hal@duncan.ol.sub.de>\n;*          Min Chen <chenm001.163.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscan8_mem: db  4+ 1*8, 5+ 1*8, 4+ 2*8, 5+ 2*8\n           db  6+ 1*8, 7+ 1*8, 6+ 2*8, 7+ 2*8\n           db  4+ 3*8, 5+ 3*8, 4+ 4*8, 5+ 4*8\n           db  6+ 3*8, 7+ 3*8, 6+ 4*8, 7+ 4*8\n           db  4+ 6*8, 5+ 6*8, 4+ 7*8, 5+ 7*8\n           db  6+ 6*8, 7+ 6*8, 6+ 7*8, 7+ 7*8\n           db  4+ 8*8, 5+ 8*8, 4+ 9*8, 5+ 9*8\n           db  6+ 8*8, 7+ 8*8, 6+ 9*8, 7+ 9*8\n           db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%ifdef PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:2", "text": "db  4+11*8, 5+11*8, 4+12*8, 5+12*8\n           db  6+11*8, 7+11*8, 6+12*8, 7+12*8\n           db  4+13*8, 5+13*8, 4+14*8, 5+14*8\n           db  6+13*8, 7+13*8, 6+14*8, 7+14*8\n%ifdef PIC\n%define npicregs 1\n%define scan8 picregq\n%else\n%define npicregs 0\n%define scan8 scan8_mem\n%endif\n\ncextern pw_32\ncextern pw_1\n\nSECTION .text\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT4_ADD 3\n    ; Load dct coeffs\n    movq         m0, [%2]\n    movq         m1, [%2+8]\n    movq         m2, [%2+16]\n    movq         m3, [%2+24]\n\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    mova         m6, [pw_32]\n    %if mmsize == 8\n        TRANSPOSE4x4W 0, 1, 2, 3, 4\n    %else\n        punpcklwd m0, m1\n        punpcklwd m2, m3\n        SBUTTERFLY dq, 0, 2, 4\n        MOVHL m1, m0\n        MOVHL m3, m2\n    %endif\n    paddw        m0, m6\n    IDCT4_1D      w, 0, 1, 2, 3, 4, 5\n    pxor         m7, m7\n    movq    [%2+ 0], m7\n    movq    [%2+ 8], m7\n    movq    [%2+16], m7\n    movq    [%2+24], m7\n\n    STORE_DIFFx2 m0, m1, m4, m5, m7, 6, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, m7, 6, %1, %3\n%endmacro\n\n%macro IDCT8_1D 2\n    psraw        m0, m1, 1\n    SWAP 0, 1\n    psraw        m4, m5, 1\n    paddw        m4, m5\n    paddw        m1, m0\n    paddw        m4, m7\n    paddw        m1, m5\n    psubw        m4, m0\n    paddw        m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:8", "text": "paddusb      m4, m0\n    paddusb      m5, m0\n    psubusb      m2, m1\n    psubusb      m3, m1\n    psubusb      m4, m1\n    psubusb      m5, m1\n    %1    [%2     ], m2\n    %1    [%2+%3  ], m3\n    %1    [%2+%3*2], m4\n    %1    [%2+%4  ], m5\n%endmacro\n\nINIT_MMX mmxext\n%if ARCH_X86_64\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 3, 4, 0\n    movsxd       r2, r2d\n    movsx        r3, word [r1]\n    mov  dword [r1], 0\n    DC_ADD_MMXEXT_INIT r3, r2\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    lea          r0, [r0+r2*4]\n    DC_ADD_MMXEXT_OP mova, r0, r2, r3\n    RET\n%else\n; void ff_h264_idct8_dc_add_8_mmxext(uint8_t *dst, int16_t *block, int stride)\ncglobal h264_idct8_dc_add_8, 2, 3, 0\n    movsx        r2, word [r1]\n    mov  dword [r1], 0\n    mov          r1, r2m\n    DC_ADD_MMXEXT_INIT r2, r1\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    lea          r0, [r0+r1*4]\n    DC_ADD_MMXEXT_OP mova, r0, r1, r2\n    RET\n%endif\n\nINIT_XMM sse2\n; void ff_h264_idct8_add4_8_sse2(uint8_t *dst, const int *block_offset,\n;                                int16_t *block, int stride,\n;                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%ifdef PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:9", "text": ";                                const uint8_t nnzc[6 * 8])\ncglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n    xor          r5, r5\n%ifdef PIC\n    lea     picregq, [scan8_mem]\n%endif\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    test         r6, r6\n    jz .skipblock\n    cmp          r6, 1\n    jnz .no_dc\n    movsx        r6, word [r2]\n    test         r6, r6\n    jz .no_dc\nINIT_MMX cpuname\n    mov   word [r2], 0\n    DC_ADD_MMXEXT_INIT r6, r3\n%if ARCH_X86_64 == 0\n%define dst2q r1\n%define dst2d r1d\n%endif\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n    lea       dst2q, [dst2q+r3*4]\n    DC_ADD_MMXEXT_OP mova, dst2q, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n.no_dc:\nINIT_XMM cpuname\n    mov       dst2d, dword [r1+r5*4]\n    add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\nh264_idct_add8_mmx_plane:\n    movsxdifnidn r3, r3d\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:10", "text": "add       dst2q, r0\n    IDCT8_ADD_SSE dst2q, r2, r3, r6\n%if ARCH_X86_64 == 0\n    mov          r1, r1m\n%endif\n.skipblock:\n    add          r5, 4\n    add          r2, 128\n    cmp          r5, 16\n    jl .nextblock\n    RET\n\nINIT_MMX mmx\nh264_idct_add8_mmx_plane:\n    movsxdifnidn r3, r3d\n.nextblock:\n    movzx        r6, byte [scan8+r5]\n    movzx        r6, byte [r4+r6]\n    or          r6w, word [r2]\n    test         r6, r6\n    jz .skipblock\n%if ARCH_X86_64\n    mov         r0d, dword [r1+r5*4]\n    add          r0, [dst2q]\n%else\n    mov          r0, r1m ; XXX r1m here is actually r0m of the calling func\n    mov          r0, [r0]\n    add          r0, dword [r1+r5*4]\n%endif\n    IDCT4_ADD    r0, r2, r3\n.skipblock:\n    inc          r5\n    add          r2, 32\n    test         r5, 3\n    jnz .nextblock\n    rep ret\n\ncglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg\n    movsxdifnidn r3, r3d\n%ifdef PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct.asm:11", "text": "%ifdef PIC\n    lea     picregq, [scan8_mem]\n%endif\n%if ARCH_X86_64\n    mov       dst2q, r0\n%endif\n\n    mov          r5, 16  ; i\n    add          r2, 512 ; i * 16 * sizeof(dctcoef) ; #define dctcoef int16_t\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n%if ARCH_X86_64\n    add       dst2q, gprsize ; dest[1]\n%else\n    add        r0mp, gprsize\n%endif\n\n    add r5, 4   ; set to 32\n    add r2, 256 ; set to i * 16 * sizeof(dctcoef)\n\n    call         h264_idct_add8_mmx_plane\n    add r5, 4\n    call         h264_idct_add8_mmx_plane\n\n    RET ; TODO: check rep ret after a function call\n\n; r0 = uint8_t *dst, r2 = int16_t *block, r3 = int stride, r6=clobbered\nh264_idct_dc_add8_mmxext:\n    movsxdifnidn r3, r3d\n    movd         m0, [r2   ]          ;  0 0 X D\n    mov word [r2+ 0], 0\n    punpcklwd    m0, [r2+32]          ;  x X d D\n    mov word [r2+32], 0\n    paddsw       m0, [pw_32]\n    psraw        m0, 6\n    punpcklwd    m0, m0               ;  d d D D\n    pxor         m1, m1               ;  0 0 0 0\n    psubw        m1, m0               ; -d-d-D-D\n    packuswb     m0, m1               ; -d-d-D-D d d D D\n    pshufw       m1, m0, 0xFA         ; -d-d-d-d-D-D-D-D\n    punpcklwd    m0, m0               ;  d d d d D D D D\n    lea          r6, [r3*3]\n    DC_ADD_MMXEXT_OP movq, r0, r3, r6\n    ret\n\nALIGN 16\nINIT_XMM sse2\n; r0 = uint8_t *dst (clobbered), r2 = int16_t *block, r3 = int stride\nh264_add8x4_idct_sse2:\n    movsxdifnidn r3, r3d\n    movq   m0, [r2+ 0]\n    movq   m1, [r2+ 8]\n    movq   m2, [r2+16]\n    movq   m3, [r2+24]\n    movhps m0, [r2+32]\n    movhps m1, [r2+40]\n    movhps m2, [r2+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized 10-bit H.264 iDCT code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\ncextern pw_1023\n%define pw_pixel_max pw_1023\ncextern pd_32\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro STORE_DIFFx2 6\n    psrad       %1, 6\n    psrad       %2, 6\n    packssdw    %1, %2\n    movq        %3, [%5]\n    movhps      %3, [%5+%6]\n    paddsw      %1, %3\n    CLIPW       %1, %4, [pw_pixel_max]\n    movq      [%5], %1\n    movhps [%5+%6], %1\n%endmacro\n\n%macro STORE_DIFF16 5\n    psrad       %1, 6\n    psrad       %2, 6\n    packssdw    %1, %2\n    paddsw      %1, [%5]\n    CLIPW       %1, %3, %4\n    mova      [%5], %1\n%endmacro\n\n;dst, in, stride\n%macro IDCT4_ADD_10 3\n    mova  m0, [%2+ 0]\n    mova  m1, [%2+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:2", "text": "movhps      %3, [%5+%6]\n    paddsw      %1, %3\n    CLIPW       %1, %4, [pw_pixel_max]\n    movq      [%5], %1\n    movhps [%5+%6], %1\n%endmacro\n\n%macro STORE_DIFF16 5\n    psrad       %1, 6\n    psrad       %2, 6\n    packssdw    %1, %2\n    paddsw      %1, [%5]\n    CLIPW       %1, %3, %4\n    mova      [%5], %1\n%endmacro\n\n;dst, in, stride\n%macro IDCT4_ADD_10 3\n    mova  m0, [%2+ 0]\n    mova  m1, [%2+16]\n    mova  m2, [%2+32]\n    mova  m3, [%2+48]\n    IDCT4_1D d,0,1,2,3,4,5\n    TRANSPOSE4x4D 0,1,2,3,4\n    paddd m0, [pd_32]\n    IDCT4_1D d,0,1,2,3,4,5\n    pxor  m5, m5\n    mova [%2+ 0], m5\n    mova [%2+16], m5\n    mova [%2+32], m5\n    mova [%2+48], m5\n    STORE_DIFFx2 m0, m1, m4, m5, %1, %3\n    lea   %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, %1, %3\n%endmacro\n\n%macro IDCT_ADD_10 0\ncglobal h264_idct_add_10, 3,3\n    movsxdifnidn r2, r2d\n    IDCT4_ADD_10 r0, r1, r2\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_ADD_10\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD_10\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_add16_10(pixel *dst, const int *block_offset,\n;                            int16_t *block, int stride,\n;                            const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------\n;;;;;;; NO FATE SAMPLES TRIGGER THIS\n%macro ADD4x4IDCT 0\nadd4x4_idct %+ SUFFIX:\n    add   r5, r0\n    mova  m0, [r2+ 0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:3", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_ADD_10\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD_10\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_add16_10(pixel *dst, const int *block_offset,\n;                            int16_t *block, int stride,\n;                            const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------\n;;;;;;; NO FATE SAMPLES TRIGGER THIS\n%macro ADD4x4IDCT 0\nadd4x4_idct %+ SUFFIX:\n    add   r5, r0\n    mova  m0, [r2+ 0]\n    mova  m1, [r2+16]\n    mova  m2, [r2+32]\n    mova  m3, [r2+48]\n    IDCT4_1D d,0,1,2,3,4,5\n    TRANSPOSE4x4D 0,1,2,3,4\n    paddd m0, [pd_32]\n    IDCT4_1D d,0,1,2,3,4,5\n    pxor  m5, m5\n    mova  [r2+ 0], m5\n    mova  [r2+16], m5\n    mova  [r2+32], m5\n    mova  [r2+48], m5\n    STORE_DIFFx2 m0, m1, m4, m5, r5, r3\n    lea   r5, [r5+r3*2]\n    STORE_DIFFx2 m2, m3, m4, m5, r5, r3\n    ret\n%endmacro\n\nINIT_XMM sse2\nALIGN 16\nADD4x4IDCT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nALIGN 16\nADD4x4IDCT\n%endif\n\n%macro ADD16_OP 2\n    cmp          byte [r4+%2], 0\n    jz .skipblock%1\n    mov         r5d, [r1+%1*4]\n    call add4x4_idct %+ SUFFIX\n.skipblock%1:\n%if %1<15\n    add          r2, 64\n%endif\n%endmacro\n\n%macro IDCT_ADD16_10 0\ncglobal h264_idct_add16_10, 5,6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:4", "text": "ADD4x4IDCT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nALIGN 16\nADD4x4IDCT\n%endif\n\n%macro ADD16_OP 2\n    cmp          byte [r4+%2], 0\n    jz .skipblock%1\n    mov         r5d, [r1+%1*4]\n    call add4x4_idct %+ SUFFIX\n.skipblock%1:\n%if %1<15\n    add          r2, 64\n%endif\n%endmacro\n\n%macro IDCT_ADD16_10 0\ncglobal h264_idct_add16_10, 5,6\n    movsxdifnidn r3, r3d\n    ADD16_OP 0, 4+1*8\n    ADD16_OP 1, 5+1*8\n    ADD16_OP 2, 4+2*8\n    ADD16_OP 3, 5+2*8\n    ADD16_OP 4, 6+1*8\n    ADD16_OP 5, 7+1*8\n    ADD16_OP 6, 6+2*8\n    ADD16_OP 7, 7+2*8\n    ADD16_OP 8, 4+3*8\n    ADD16_OP 9, 5+3*8\n    ADD16_OP 10, 4+4*8\n    ADD16_OP 11, 5+4*8\n    ADD16_OP 12, 6+3*8\n    ADD16_OP 13, 7+3*8\n    ADD16_OP 14, 6+4*8\n    ADD16_OP 15, 7+4*8\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_ADD16_10\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD16_10\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_dc_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro IDCT_DC_ADD_OP_10 3\n    pxor      m5, m5\n%if avx_enabled\n    paddw     m1, m0, [%1+0   ]\n    paddw     m2, m0, [%1+%2  ]\n    paddw     m3, m0, [%1+%2*2]\n    paddw     m4, m0, [%1+%3  ]\n%else\n    mova      m1, [%1+0   ]\n    mova      m2, [%1+%2  ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:5", "text": "INIT_XMM sse2\nIDCT_ADD16_10\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD16_10\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_dc_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro IDCT_DC_ADD_OP_10 3\n    pxor      m5, m5\n%if avx_enabled\n    paddw     m1, m0, [%1+0   ]\n    paddw     m2, m0, [%1+%2  ]\n    paddw     m3, m0, [%1+%2*2]\n    paddw     m4, m0, [%1+%3  ]\n%else\n    mova      m1, [%1+0   ]\n    mova      m2, [%1+%2  ]\n    mova      m3, [%1+%2*2]\n    mova      m4, [%1+%3  ]\n    paddw     m1, m0\n    paddw     m2, m0\n    paddw     m3, m0\n    paddw     m4, m0\n%endif\n    CLIPW     m1, m5, m6\n    CLIPW     m2, m5, m6\n    CLIPW     m3, m5, m6\n    CLIPW     m4, m5, m6\n    mova [%1+0   ], m1\n    mova [%1+%2  ], m2\n    mova [%1+%2*2], m3\n    mova [%1+%3  ], m4\n%endmacro\n\nINIT_MMX mmxext\ncglobal h264_idct_dc_add_10,3,3\n    movsxdifnidn r2, r2d\n    movd      m0, [r1]\n    mov dword [r1], 0\n    paddd     m0, [pd_32]\n    psrad     m0, 6\n    lea       r1, [r2*3]\n    pshufw    m0, m0, 0\n    mova      m6, [pw_pixel_max]\n    IDCT_DC_ADD_OP_10 r0, r2, r1\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct8_dc_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro IDCT8_DC_ADD 0\ncglobal h264_idct8_dc_add_10,3,4,7\n    movsxdifnidn r2, r2d\n    movd      m0, [r1]\n    mov dword[r1], 0\n    paddd     m0, [pd_32]\n    psrad     m0, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:6", "text": "movd      m0, [r1]\n    mov dword [r1], 0\n    paddd     m0, [pd_32]\n    psrad     m0, 6\n    lea       r1, [r2*3]\n    pshufw    m0, m0, 0\n    mova      m6, [pw_pixel_max]\n    IDCT_DC_ADD_OP_10 r0, r2, r1\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct8_dc_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro IDCT8_DC_ADD 0\ncglobal h264_idct8_dc_add_10,3,4,7\n    movsxdifnidn r2, r2d\n    movd      m0, [r1]\n    mov dword[r1], 0\n    paddd     m0, [pd_32]\n    psrad     m0, 6\n    lea       r1, [r2*3]\n    SPLATW    m0, m0, 0\n    mova      m6, [pw_pixel_max]\n    IDCT_DC_ADD_OP_10 r0, r2, r1\n    lea       r0, [r0+r2*4]\n    IDCT_DC_ADD_OP_10 r0, r2, r1\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT8_DC_ADD\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT8_DC_ADD\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_add16intra_10(pixel *dst, const int *block_offset,\n;                                 int16_t *block, int stride,\n;                                 const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------\n%macro AC 1\n.ac%1:\n    mov  r5d, [r1+(%1+0)*4]\n    call add4x4_idct %+ SUFFIX\n    mov  r5d, [r1+(%1+1)*4]\n    add  r2, 64\n    call add4x4_idct %+ SUFFIX\n    add  r2, 64\n    jmp .skipadd%1\n%endmacro\n\n%assign last_block 16\n%macro ADD16_OP_INTRA 2\n    cmp      word [r4+%2], 0\n    jnz .ac%1\n    mov      r5d, [r2+ 0]\n    or       r5d, [r2+64]\n    jz .skipblock%1\n    mov      r5d, [r1+(%1+0)*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:7", "text": ";-----------------------------------------------------------------------------\n%macro AC 1\n.ac%1:\n    mov  r5d, [r1+(%1+0)*4]\n    call add4x4_idct %+ SUFFIX\n    mov  r5d, [r1+(%1+1)*4]\n    add  r2, 64\n    call add4x4_idct %+ SUFFIX\n    add  r2, 64\n    jmp .skipadd%1\n%endmacro\n\n%assign last_block 16\n%macro ADD16_OP_INTRA 2\n    cmp      word [r4+%2], 0\n    jnz .ac%1\n    mov      r5d, [r2+ 0]\n    or       r5d, [r2+64]\n    jz .skipblock%1\n    mov      r5d, [r1+(%1+0)*4]\n    call idct_dc_add %+ SUFFIX\n.skipblock%1:\n%if %1<last_block-2\n    add       r2, 128\n%endif\n.skipadd%1:\n%endmacro\n\n%macro IDCT_ADD16INTRA_10 0\nidct_dc_add %+ SUFFIX:\n    add       r5, r0\n    movq      m0, [r2+ 0]\n    movhps    m0, [r2+64]\n    mov dword [r2+ 0], 0\n    mov dword [r2+64], 0\n    paddd     m0, [pd_32]\n    psrad     m0, 6\n    pshufhw   m0, m0, 0\n    pshuflw   m0, m0, 0\n    lea       r6, [r3*3]\n    mova      m6, [pw_pixel_max]\n    IDCT_DC_ADD_OP_10 r5, r3, r6\n    ret\n\ncglobal h264_idct_add16intra_10,5,7,8\n    movsxdifnidn r3, r3d\n    ADD16_OP_INTRA 0, 4+1*8\n    ADD16_OP_INTRA 2, 4+2*8\n    ADD16_OP_INTRA 4, 6+1*8\n    ADD16_OP_INTRA 6, 6+2*8\n    ADD16_OP_INTRA 8, 4+3*8\n    ADD16_OP_INTRA 10, 4+4*8\n    ADD16_OP_INTRA 12, 6+3*8\n    ADD16_OP_INTRA 14, 6+4*8\n    RET\n    AC 8\n    AC 10\n    AC 12\n    AC 14\n    AC 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:8", "text": "mova      m6, [pw_pixel_max]\n    IDCT_DC_ADD_OP_10 r5, r3, r6\n    ret\n\ncglobal h264_idct_add16intra_10,5,7,8\n    movsxdifnidn r3, r3d\n    ADD16_OP_INTRA 0, 4+1*8\n    ADD16_OP_INTRA 2, 4+2*8\n    ADD16_OP_INTRA 4, 6+1*8\n    ADD16_OP_INTRA 6, 6+2*8\n    ADD16_OP_INTRA 8, 4+3*8\n    ADD16_OP_INTRA 10, 4+4*8\n    ADD16_OP_INTRA 12, 6+3*8\n    ADD16_OP_INTRA 14, 6+4*8\n    RET\n    AC 8\n    AC 10\n    AC 12\n    AC 14\n    AC 0\n    AC 2\n    AC 4\n    AC 6\n%endmacro\n\nINIT_XMM sse2\nIDCT_ADD16INTRA_10\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD16INTRA_10\n%endif\n\n%assign last_block 36\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_add8_10(pixel **dst, const int *block_offset,\n;                           int16_t *block, int stride,\n;                           const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------\n%macro IDCT_ADD8 0\ncglobal h264_idct_add8_10,5,8,7\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov      r7, r0\n%endif\n    add      r2, 1024\n    mov      r0, [r0]\n    ADD16_OP_INTRA 16, 4+ 6*8\n    ADD16_OP_INTRA 18, 4+ 7*8\n    add      r2, 1024-128*2\n%if ARCH_X86_64\n    mov      r0, [r7+gprsize]\n%else\n    mov      r0, r0m\n    mov      r0, [r0+gprsize]\n%endif\n    ADD16_OP_INTRA 32, 4+11*8\n    ADD16_OP_INTRA 34, 4+12*8\n    RET\n    AC 16\n    AC 18", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:9", "text": "movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov      r7, r0\n%endif\n    add      r2, 1024\n    mov      r0, [r0]\n    ADD16_OP_INTRA 16, 4+ 6*8\n    ADD16_OP_INTRA 18, 4+ 7*8\n    add      r2, 1024-128*2\n%if ARCH_X86_64\n    mov      r0, [r7+gprsize]\n%else\n    mov      r0, r0m\n    mov      r0, [r0+gprsize]\n%endif\n    ADD16_OP_INTRA 32, 4+11*8\n    ADD16_OP_INTRA 34, 4+12*8\n    RET\n    AC 16\n    AC 18\n    AC 32\n    AC 34\n\n%endmacro ; IDCT_ADD8\n\nINIT_XMM sse2\nIDCT_ADD8\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD8\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct_add8_422_10(pixel **dst, const int *block_offset,\n;                               int16_t *block, int stride,\n;                               const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------\n%assign last_block 44\n\n%macro IDCT_ADD8_422 0\n\ncglobal h264_idct_add8_422_10, 5, 8, 7\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov      r7, r0\n%endif\n\n    add      r2, 1024\n    mov      r0, [r0]\n    ADD16_OP_INTRA 16, 4+ 6*8\n    ADD16_OP_INTRA 18, 4+ 7*8\n    ADD16_OP_INTRA 24, 4+ 8*8 ; i+4\n    ADD16_OP_INTRA 26, 4+ 9*8 ; i+4\n    add      r2, 1024-128*4\n\n%if ARCH_X86_64\n    mov      r0, [r7+gprsize]\n%else\n    mov      r0, r0m\n    mov      r0, [r0+gprsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:10", "text": "cglobal h264_idct_add8_422_10, 5, 8, 7\n    movsxdifnidn r3, r3d\n%if ARCH_X86_64\n    mov      r7, r0\n%endif\n\n    add      r2, 1024\n    mov      r0, [r0]\n    ADD16_OP_INTRA 16, 4+ 6*8\n    ADD16_OP_INTRA 18, 4+ 7*8\n    ADD16_OP_INTRA 24, 4+ 8*8 ; i+4\n    ADD16_OP_INTRA 26, 4+ 9*8 ; i+4\n    add      r2, 1024-128*4\n\n%if ARCH_X86_64\n    mov      r0, [r7+gprsize]\n%else\n    mov      r0, r0m\n    mov      r0, [r0+gprsize]\n%endif\n\n    ADD16_OP_INTRA 32, 4+11*8\n    ADD16_OP_INTRA 34, 4+12*8\n    ADD16_OP_INTRA 40, 4+13*8 ; i+4\n    ADD16_OP_INTRA 42, 4+14*8 ; i+4\nRET\n    AC 16\n    AC 18\n    AC 24 ; i+4\n    AC 26 ; i+4\n    AC 32\n    AC 34\n    AC 40 ; i+4\n    AC 42 ; i+4\n\n%endmacro\n\nINIT_XMM sse2\nIDCT_ADD8_422\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD8_422\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct8_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro IDCT8_1D 2\n    SWAP      0, 1\n    psrad     m4, m5, 1\n    psrad     m1, m0, 1\n    paddd     m4, m5\n    paddd     m1, m0\n    paddd     m4, m7\n    paddd     m1, m5\n    psubd     m4, m0\n    paddd     m1, m3\n\n    psubd     m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:11", "text": "%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT_ADD8_422\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct8_add_10(pixel *dst, int16_t *block, int stride)\n;-----------------------------------------------------------------------------\n%macro IDCT8_1D 2\n    SWAP      0, 1\n    psrad     m4, m5, 1\n    psrad     m1, m0, 1\n    paddd     m4, m5\n    paddd     m1, m0\n    paddd     m4, m7\n    paddd     m1, m5\n    psubd     m4, m0\n    paddd     m1, m3\n\n    psubd     m0, m3\n    psubd     m5, m3\n    paddd     m0, m7\n    psubd     m5, m7\n    psrad     m3, 1\n    psrad     m7, 1\n    psubd     m0, m3\n    psubd     m5, m7\n\n    SWAP      1, 7\n    psrad     m1, m7, 2\n    psrad     m3, m4, 2\n    paddd     m3, m0\n    psrad     m0, 2\n    paddd     m1, m5\n    psrad     m5, 2\n    psubd     m0, m4\n    psubd     m7, m5\n\n    SWAP      5, 6\n    psrad     m4, m2, 1\n    psrad     m6, m5, 1\n    psubd     m4, m5\n    paddd     m6, m2\n\n    mova      m2, %1\n    mova      m5, %2\n    SUMSUB_BA d, 5, 2\n    SUMSUB_BA d, 6, 5\n    SUMSUB_BA d, 4, 2\n    SUMSUB_BA d, 7, 6\n    SUMSUB_BA d, 0, 4\n    SUMSUB_BA d, 3, 2\n    SUMSUB_BA d, 1, 5\n    SWAP      7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112*2]\n    mova         m6, [%1+ 96*2]\n    mova         m5, [%1+ 80*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:12", "text": "psrad     m6, m5, 1\n    psubd     m4, m5\n    paddd     m6, m2\n\n    mova      m2, %1\n    mova      m5, %2\n    SUMSUB_BA d, 5, 2\n    SUMSUB_BA d, 6, 5\n    SUMSUB_BA d, 4, 2\n    SUMSUB_BA d, 7, 6\n    SUMSUB_BA d, 0, 4\n    SUMSUB_BA d, 3, 2\n    SUMSUB_BA d, 1, 5\n    SWAP      7, 6, 4, 5, 2, 3, 1, 0 ; 70315246 -> 01234567\n%endmacro\n\n%macro IDCT8_1D_FULL 1\n    mova         m7, [%1+112*2]\n    mova         m6, [%1+ 96*2]\n    mova         m5, [%1+ 80*2]\n    mova         m3, [%1+ 48*2]\n    mova         m2, [%1+ 32*2]\n    mova         m1, [%1+ 16*2]\n    IDCT8_1D   [%1], [%1+ 64*2]\n%endmacro\n\n; %1=int16_t *block, %2=int16_t *dstblock\n%macro IDCT8_ADD_SSE_START 2\n    IDCT8_1D_FULL %1\n%if ARCH_X86_64\n    TRANSPOSE4x4D  0,1,2,3,8\n    mova    [%2    ], m0\n    TRANSPOSE4x4D  4,5,6,7,8\n    mova    [%2+8*2], m4\n%else\n    mova         [%1], m7\n    TRANSPOSE4x4D   0,1,2,3,7\n    mova           m7, [%1]\n    mova    [%2     ], m0\n    mova    [%2+16*2], m1\n    mova    [%2+32*2], m2\n    mova    [%2+48*2], m3\n    TRANSPOSE4x4D   4,5,6,7,3\n    mova    [%2+ 8*2], m4\n    mova    [%2+24*2], m5\n    mova    [%2+40*2], m6\n    mova    [%2+56*2], m7\n%endif\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_SSE_END 3\n    IDCT8_1D_FULL %2\n    mova  [%2     ], m6\n    mova  [%2+16*2], m7\n\n    pxor         m7, m7\n    STORE_DIFFx2 m0, m1, m6, m7, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m6, m7, %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:13", "text": "mova    [%2+32*2], m2\n    mova    [%2+48*2], m3\n    TRANSPOSE4x4D   4,5,6,7,3\n    mova    [%2+ 8*2], m4\n    mova    [%2+24*2], m5\n    mova    [%2+40*2], m6\n    mova    [%2+56*2], m7\n%endif\n%endmacro\n\n; %1=uint8_t *dst, %2=int16_t *block, %3=int stride\n%macro IDCT8_ADD_SSE_END 3\n    IDCT8_1D_FULL %2\n    mova  [%2     ], m6\n    mova  [%2+16*2], m7\n\n    pxor         m7, m7\n    STORE_DIFFx2 m0, m1, m6, m7, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m2, m3, m6, m7, %1, %3\n    mova         m0, [%2     ]\n    mova         m1, [%2+16*2]\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m4, m5, m6, m7, %1, %3\n    lea          %1, [%1+%3*2]\n    STORE_DIFFx2 m0, m1, m6, m7, %1, %3\n%endmacro\n\n%macro IDCT8_ADD 0\ncglobal h264_idct8_add_10, 3,4,16\n    movsxdifnidn r2, r2d\n%if UNIX64 == 0\n    %assign pad 16-gprsize-(stack_offset&15)\n    sub  rsp, pad\n    call h264_idct8_add1_10 %+ SUFFIX\n    add  rsp, pad\n    RET\n%endif\n\nALIGN 16\n; TODO: does not need to use stack\nh264_idct8_add1_10 %+ SUFFIX:\n%assign pad 256+16-gprsize\n    sub          rsp, pad\n    add   dword [r1], 32\n\n%if ARCH_X86_64\n    IDCT8_ADD_SSE_START r1, rsp\n    SWAP 1,  9\n    SWAP 2, 10\n    SWAP 3, 11\n    SWAP 5, 13\n    SWAP 6, 14\n    SWAP 7, 15\n    IDCT8_ADD_SSE_START r1+16, rsp+128\n    PERMUTE 1,9, 2,10, 3,11, 5,1, 6,2, 7,3, 9,13, 10,14, 11,15, 13,5, 14,6, 15,7\n    IDCT8_1D [rsp], [rsp+128]\n    SWAP 0,  8\n    SWAP 1,  9\n    SWAP 2, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:14", "text": "; TODO: does not need to use stack\nh264_idct8_add1_10 %+ SUFFIX:\n%assign pad 256+16-gprsize\n    sub          rsp, pad\n    add   dword [r1], 32\n\n%if ARCH_X86_64\n    IDCT8_ADD_SSE_START r1, rsp\n    SWAP 1,  9\n    SWAP 2, 10\n    SWAP 3, 11\n    SWAP 5, 13\n    SWAP 6, 14\n    SWAP 7, 15\n    IDCT8_ADD_SSE_START r1+16, rsp+128\n    PERMUTE 1,9, 2,10, 3,11, 5,1, 6,2, 7,3, 9,13, 10,14, 11,15, 13,5, 14,6, 15,7\n    IDCT8_1D [rsp], [rsp+128]\n    SWAP 0,  8\n    SWAP 1,  9\n    SWAP 2, 10\n    SWAP 3, 11\n    SWAP 4, 12\n    SWAP 5, 13\n    SWAP 6, 14\n    SWAP 7, 15\n    IDCT8_1D [rsp+16], [rsp+144]\n    psrad         m8, 6\n    psrad         m0, 6\n    packssdw      m8, m0\n    paddsw        m8, [r0]\n    pxor          m0, m0\n    mova    [r1+  0], m0\n    mova    [r1+ 16], m0\n    mova    [r1+ 32], m0\n    mova    [r1+ 48], m0\n    mova    [r1+ 64], m0\n    mova    [r1+ 80], m0\n    mova    [r1+ 96], m0\n    mova    [r1+112], m0\n    mova    [r1+128], m0\n    mova    [r1+144], m0\n    mova    [r1+160], m0\n    mova    [r1+176], m0\n    mova    [r1+192], m0\n    mova    [r1+208], m0\n    mova    [r1+224], m0\n    mova    [r1+240], m0\n    CLIPW         m8, m0, [pw_pixel_max]\n    mova        [r0], m8\n    mova          m8, [pw_pixel_max]\n    STORE_DIFF16  m9, m1, m0, m8, r0+r2\n    lea           r0, [r0+r2*2]\n    STORE_DIFF16 m10, m2, m0, m8, r0\n    STORE_DIFF16 m11, m3, m0, m8, r0+r2\n    lea           r0, [r0+r2*2]\n    STORE_DIFF16 m12, m4, m0, m8, r0\n    STORE_DIFF16 m13, m5, m0, m8, r0+r2\n    lea           r0, [r0+r2*2]\n    STORE_DIFF16 m14, m6, m0, m8, r0\n    STORE_DIFF16 m15, m7, m0, m8, r0+r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:15", "text": "mova    [r1+144], m0\n    mova    [r1+160], m0\n    mova    [r1+176], m0\n    mova    [r1+192], m0\n    mova    [r1+208], m0\n    mova    [r1+224], m0\n    mova    [r1+240], m0\n    CLIPW         m8, m0, [pw_pixel_max]\n    mova        [r0], m8\n    mova          m8, [pw_pixel_max]\n    STORE_DIFF16  m9, m1, m0, m8, r0+r2\n    lea           r0, [r0+r2*2]\n    STORE_DIFF16 m10, m2, m0, m8, r0\n    STORE_DIFF16 m11, m3, m0, m8, r0+r2\n    lea           r0, [r0+r2*2]\n    STORE_DIFF16 m12, m4, m0, m8, r0\n    STORE_DIFF16 m13, m5, m0, m8, r0+r2\n    lea           r0, [r0+r2*2]\n    STORE_DIFF16 m14, m6, m0, m8, r0\n    STORE_DIFF16 m15, m7, m0, m8, r0+r2\n%else\n    IDCT8_ADD_SSE_START r1,    rsp\n    IDCT8_ADD_SSE_START r1+16, rsp+128\n    lea           r3, [r0+8]\n    IDCT8_ADD_SSE_END r0, rsp,    r2\n    IDCT8_ADD_SSE_END r3, rsp+16, r2\n    mova    [r1+  0], m7\n    mova    [r1+ 16], m7\n    mova    [r1+ 32], m7\n    mova    [r1+ 48], m7\n    mova    [r1+ 64], m7\n    mova    [r1+ 80], m7\n    mova    [r1+ 96], m7\n    mova    [r1+112], m7\n    mova    [r1+128], m7\n    mova    [r1+144], m7\n    mova    [r1+160], m7\n    mova    [r1+176], m7\n    mova    [r1+192], m7\n    mova    [r1+208], m7\n    mova    [r1+224], m7\n    mova    [r1+240], m7\n%endif ; ARCH_X86_64\n\n    add          rsp, pad\n    ret\n%endmacro\n\nINIT_XMM sse2\nIDCT8_ADD\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT8_ADD\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct8_add4_10(pixel **dst, const int *block_offset,\n;                            int16_t *block, int stride,\n;                            const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:16", "text": "mova    [r1+224], m7\n    mova    [r1+240], m7\n%endif ; ARCH_X86_64\n\n    add          rsp, pad\n    ret\n%endmacro\n\nINIT_XMM sse2\nIDCT8_ADD\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT8_ADD\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_h264_idct8_add4_10(pixel **dst, const int *block_offset,\n;                            int16_t *block, int stride,\n;                            const uint8_t nnzc[6*8])\n;-----------------------------------------------------------------------------\n;;;;;;; NO FATE SAMPLES TRIGGER THIS\n%macro IDCT8_ADD4_OP 2\n    cmp       byte [r4+%2], 0\n    jz .skipblock%1\n    mov      r0d, [r6+%1*4]\n    add       r0, r5\n    call h264_idct8_add1_10 %+ SUFFIX\n.skipblock%1:\n%if %1<12\n    add       r1, 256\n%endif\n%endmacro\n\n%macro IDCT8_ADD4 0\ncglobal h264_idct8_add4_10, 0,7,16\n    movsxdifnidn r3, r3d\n    %assign pad 16-gprsize-(stack_offset&15)\n    SUB      rsp, pad\n    mov       r5, r0mp\n    mov       r6, r1mp\n    mov       r1, r2mp\n    mov      r2d, r3m\n    movifnidn r4, r4mp\n    IDCT8_ADD4_OP  0, 4+1*8\n    IDCT8_ADD4_OP  4, 6+1*8\n    IDCT8_ADD4_OP  8, 4+3*8\n    IDCT8_ADD4_OP 12, 6+3*8\n    ADD       rsp, pad\n    RET\n%endmacro ; IDCT8_ADD4\n\nINIT_XMM sse2\nIDCT8_ADD4\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT8_ADD4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 601, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_idct_10bit.asm:17", "text": "mov       r1, r2mp\n    mov      r2d, r3m\n    movifnidn r4, r4mp\n    IDCT8_ADD4_OP  0, 4+1*8\n    IDCT8_ADD4_OP  4, 6+1*8\n    IDCT8_ADD4_OP  8, 4+3*8\n    IDCT8_ADD4_OP 12, 6+3*8\n    ADD       rsp, pad\n    RET\n%endmacro ; IDCT8_ADD4\n\nINIT_XMM sse2\nIDCT8_ADD4\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nIDCT8_ADD4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_idct_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_idct_10bit.asm", "line_start": 641, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized 10-bit H.264 intra prediction code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_1023\n%define pw_pixel_max pw_1023\ncextern pw_512\ncextern pw_16\ncextern pw_8\ncextern pw_4\ncextern pw_2\ncextern pw_1\ncextern pd_16\n\npw_m32101234: dw -3, -2, -1, 0, 1, 2, 3, 4\npw_m3:        times 8 dw -3\npd_17:        times 4 dd 17\n\nSECTION .text\n\n; dest, left, right, src\n; output: %1 = (t[n-1] + t[n]*2 + t[n+1] + 2) >> 2\n%macro PRED4x4_LOWPASS 4\n    paddw       %2, %3\n    psrlw       %2, 1\n    pavgw       %1, %4, %2\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_down_right_10(pixel *src, const pixel *topright,\n;                               ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED4x4_DR 0\ncglobal pred4x4_down_right_10, 3, 3\n    sub       r0, r2\n    lea       r1, [r0+r2*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:2", "text": "pd_17:        times 4 dd 17\n\nSECTION .text\n\n; dest, left, right, src\n; output: %1 = (t[n-1] + t[n]*2 + t[n+1] + 2) >> 2\n%macro PRED4x4_LOWPASS 4\n    paddw       %2, %3\n    psrlw       %2, 1\n    pavgw       %1, %4, %2\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_down_right_10(pixel *src, const pixel *topright,\n;                               ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED4x4_DR 0\ncglobal pred4x4_down_right_10, 3, 3\n    sub       r0, r2\n    lea       r1, [r0+r2*2]\n    movhps    m1, [r1-8]\n    movhps    m2, [r0+r2*1-8]\n    movhps    m4, [r0-8]\n    punpckhwd m2, m4\n    movq      m3, [r0]\n    punpckhdq m1, m2\n    PALIGNR   m3, m1, 10, m1\n    movhps    m4, [r1+r2*1-8]\n    PALIGNR   m0, m3, m4, 14, m4\n    movhps    m4, [r1+r2*2-8]\n    PALIGNR   m2, m0, m4, 14, m4\n    PRED4x4_LOWPASS m0, m2, m3, m0\n    movq      [r1+r2*2], m0\n    psrldq    m0, 2\n    movq      [r1+r2*1], m0\n    psrldq    m0, 2\n    movq      [r0+r2*2], m0\n    psrldq    m0, 2\n    movq      [r0+r2*1], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_DR\nINIT_XMM ssse3\nPRED4x4_DR\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_DR\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_pred4x4_vertical_right_10(pixel *src, const pixel *topright,\n;                                   ptrdiff_t stride)\n;------------------------------------------------------------------------------\n%macro PRED4x4_VR 0\ncglobal pred4x4_vertical_right_10, 3, 3, 6\n    sub     r0, r2\n    lea     r1, [r0+r2*2]\n    movq    m5, [r0]            ; ........t3t2t1t0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:3", "text": "%endmacro\n\nINIT_XMM sse2\nPRED4x4_DR\nINIT_XMM ssse3\nPRED4x4_DR\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_DR\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_pred4x4_vertical_right_10(pixel *src, const pixel *topright,\n;                                   ptrdiff_t stride)\n;------------------------------------------------------------------------------\n%macro PRED4x4_VR 0\ncglobal pred4x4_vertical_right_10, 3, 3, 6\n    sub     r0, r2\n    lea     r1, [r0+r2*2]\n    movq    m5, [r0]            ; ........t3t2t1t0\n    movhps  m1, [r0-8]\n    PALIGNR m0, m5, m1, 14, m1  ; ......t3t2t1t0lt\n    pavgw   m5, m0\n    movhps  m1, [r0+r2*1-8]\n    PALIGNR m0, m1, 14, m1      ; ....t3t2t1t0ltl0\n    movhps  m2, [r0+r2*2-8]\n    PALIGNR m1, m0, m2, 14, m2  ; ..t3t2t1t0ltl0l1\n    movhps  m3, [r1+r2*1-8]\n    PALIGNR m2, m1, m3, 14, m3  ; t3t2t1t0ltl0l1l2\n    PRED4x4_LOWPASS m1, m0, m2, m1\n    pslldq  m0, m1, 12\n    psrldq  m1, 4\n    movq    [r0+r2*1], m5\n    movq    [r0+r2*2], m1\n    PALIGNR m5, m0, 14, m2\n    pslldq  m0, 2\n    movq    [r1+r2*1], m5\n    PALIGNR m1, m0, 14, m0\n    movq    [r1+r2*2], m1\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_VR\nINIT_XMM ssse3\nPRED4x4_VR\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_VR\n%endif\n\n;-------------------------------------------------------------------------------\n; void ff_pred4x4_horizontal_down_10(pixel *src, const pixel *topright,\n;                                    ptrdiff_t stride)\n;-------------------------------------------------------------------------------\n%macro PRED4x4_HD 0\ncglobal pred4x4_horizontal_down_10, 3, 3\n    sub        r0, r2\n    lea        r1, [r0+r2*2]\n    movq       m0, [r0-8]      ; lt ..", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:4", "text": "%endmacro\n\nINIT_XMM sse2\nPRED4x4_VR\nINIT_XMM ssse3\nPRED4x4_VR\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_VR\n%endif\n\n;-------------------------------------------------------------------------------\n; void ff_pred4x4_horizontal_down_10(pixel *src, const pixel *topright,\n;                                    ptrdiff_t stride)\n;-------------------------------------------------------------------------------\n%macro PRED4x4_HD 0\ncglobal pred4x4_horizontal_down_10, 3, 3\n    sub        r0, r2\n    lea        r1, [r0+r2*2]\n    movq       m0, [r0-8]      ; lt ..\n    movhps     m0, [r0]\n    pslldq     m0, 2           ; t2 t1 t0 lt .. .. .. ..\n    movq       m1, [r1+r2*2-8] ; l3\n    movq       m3, [r1+r2*1-8]\n    punpcklwd  m1, m3          ; l2 l3\n    movq       m2, [r0+r2*2-8] ; l1\n    movq       m3, [r0+r2*1-8]\n    punpcklwd  m2, m3          ; l0 l1\n    punpckhdq  m1, m2          ; l0 l1 l2 l3\n    punpckhqdq m1, m0          ; t2 t1 t0 lt l0 l1 l2 l3\n    psrldq     m0, m1, 4       ; .. .. t2 t1 t0 lt l0 l1\n    psrldq     m3, m1, 2       ; .. t2 t1 t0 lt l0 l1 l2\n    pavgw      m5, m1, m3\n    PRED4x4_LOWPASS m3, m1, m0, m3\n    punpcklwd  m5, m3\n    psrldq     m3, 8\n    PALIGNR    m3, m5, 12, m4\n    movq       [r1+r2*2], m5\n    movhps     [r0+r2*2], m5\n    psrldq     m5, 4\n    movq       [r1+r2*1], m5\n    movq       [r0+r2*1], m3\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_HD\nINIT_XMM ssse3\nPRED4x4_HD\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_HD\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_dc_10(pixel *src, const pixel *topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmxext\ncglobal pred4x4_dc_10, 3, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:5", "text": "movq       [r1+r2*1], m5\n    movq       [r0+r2*1], m3\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_HD\nINIT_XMM ssse3\nPRED4x4_HD\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_HD\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_dc_10(pixel *src, const pixel *topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmxext\ncglobal pred4x4_dc_10, 3, 3\n    sub    r0, r2\n    lea    r1, [r0+r2*2]\n    movq   m2, [r0+r2*1-8]\n    paddw  m2, [r0+r2*2-8]\n    paddw  m2, [r1+r2*1-8]\n    paddw  m2, [r1+r2*2-8]\n    psrlq  m2, 48\n    movq   m0, [r0]\n    HADDW  m0, m1\n    paddw  m0, [pw_4]\n    paddw  m0, m2\n    psrlw  m0, 3\n    SPLATW m0, m0, 0\n    movq   [r0+r2*1], m0\n    movq   [r0+r2*2], m0\n    movq   [r1+r2*1], m0\n    movq   [r1+r2*2], m0\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_down_left_10(pixel *src, const pixel *topright,\n;                              ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED4x4_DL 0\ncglobal pred4x4_down_left_10, 3, 3\n    sub        r0, r2\n    movq       m0, [r0]\n    movhps     m0, [r1]\n    psrldq     m2, m0, 2\n    pslldq     m3, m0, 2\n    pshufhw    m2, m2, 10100100b\n    PRED4x4_LOWPASS m0, m3, m2, m0\n    lea        r1, [r0+r2*2]\n    movhps     [r1+r2*2], m0\n    psrldq     m0, 2\n    movq       [r0+r2*1], m0\n    psrldq     m0, 2\n    movq       [r0+r2*2], m0\n    psrldq     m0, 2\n    movq       [r1+r2*1], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:6", "text": "; void ff_pred4x4_down_left_10(pixel *src, const pixel *topright,\n;                              ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED4x4_DL 0\ncglobal pred4x4_down_left_10, 3, 3\n    sub        r0, r2\n    movq       m0, [r0]\n    movhps     m0, [r1]\n    psrldq     m2, m0, 2\n    pslldq     m3, m0, 2\n    pshufhw    m2, m2, 10100100b\n    PRED4x4_LOWPASS m0, m3, m2, m0\n    lea        r1, [r0+r2*2]\n    movhps     [r1+r2*2], m0\n    psrldq     m0, 2\n    movq       [r0+r2*1], m0\n    psrldq     m0, 2\n    movq       [r0+r2*2], m0\n    psrldq     m0, 2\n    movq       [r1+r2*1], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_DL\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_DL\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_vertical_left_10(pixel *src, const pixel *topright,\n;                                  ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED4x4_VL 0\ncglobal pred4x4_vertical_left_10, 3, 3\n    sub        r0, r2\n    movu       m1, [r0]\n    movhps     m1, [r1]\n    psrldq     m0, m1, 2\n    psrldq     m2, m1, 4\n    pavgw      m4, m0, m1\n    PRED4x4_LOWPASS m0, m1, m2, m0\n    lea        r1, [r0+r2*2]\n    movq       [r0+r2*1], m4\n    movq       [r0+r2*2], m0\n    psrldq     m4, 2\n    psrldq     m0, 2\n    movq       [r1+r2*1], m4\n    movq       [r1+r2*2], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_VL\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_VL\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:7", "text": "psrldq     m2, m1, 4\n    pavgw      m4, m0, m1\n    PRED4x4_LOWPASS m0, m1, m2, m0\n    lea        r1, [r0+r2*2]\n    movq       [r0+r2*1], m4\n    movq       [r0+r2*2], m0\n    psrldq     m4, 2\n    psrldq     m0, 2\n    movq       [r1+r2*1], m4\n    movq       [r1+r2*2], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED4x4_VL\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED4x4_VL\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred4x4_horizontal_up_10(pixel *src, const pixel *topright,\n;                                  ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_MMX mmxext\ncglobal pred4x4_horizontal_up_10, 3, 3\n    sub       r0, r2\n    lea       r1, [r0+r2*2]\n    movq      m0, [r0+r2*1-8]\n    punpckhwd m0, [r0+r2*2-8]\n    movq      m1, [r1+r2*1-8]\n    punpckhwd m1, [r1+r2*2-8]\n    punpckhdq m0, m1\n    pshufw    m1, m1, 0xFF\n    movq      [r1+r2*2], m1\n    movd      [r1+r2*1+4], m1\n    pshufw    m2, m0, 11111001b\n    movq      m1, m2\n    pavgw     m2, m0\n\n    pshufw    m5, m0, 11111110b\n    PRED4x4_LOWPASS m1, m0, m5, m1\n    movq      m6, m2\n    punpcklwd m6, m1\n    movq      [r0+r2*1], m6\n    psrlq     m2, 16\n    psrlq     m1, 16\n    punpcklwd m2, m1\n    movq      [r0+r2*2], m2\n    psrlq     m2, 32\n    movd      [r1+r2*1], m2\n    RET\n\n\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8_vertical_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8_vertical_10, 2, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:8", "text": "pshufw    m5, m0, 11111110b\n    PRED4x4_LOWPASS m1, m0, m5, m1\n    movq      m6, m2\n    punpcklwd m6, m1\n    movq      [r0+r2*1], m6\n    psrlq     m2, 16\n    psrlq     m1, 16\n    punpcklwd m2, m1\n    movq      [r0+r2*2], m2\n    psrlq     m2, 32\n    movd      [r1+r2*1], m2\n    RET\n\n\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8_vertical_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8_vertical_10, 2, 2\n    sub  r0, r1\n    mova m0, [r0]\n%rep 3\n    mova [r0+r1*1], m0\n    mova [r0+r1*2], m0\n    lea  r0, [r0+r1*2]\n%endrep\n    mova [r0+r1*1], m0\n    mova [r0+r1*2], m0\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8_horizontal_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8_horizontal_10, 2, 3\n    mov         r2d, 4\n.loop:\n    movq         m0, [r0+r1*0-8]\n    movq         m1, [r0+r1*1-8]\n    pshuflw      m0, m0, 0xff\n    pshuflw      m1, m1, 0xff\n    punpcklqdq   m0, m0\n    punpcklqdq   m1, m1\n    mova  [r0+r1*0], m0\n    mova  [r0+r1*1], m1\n    lea          r0, [r0+r1*2]\n    dec          r2d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_predict_8x8_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro MOV8 2-3\n; sort of a hack, but it works\n    movdqa    [%1], %2\n%endmacro\n\n%macro PRED8x8_DC 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:9", "text": "pshuflw      m0, m0, 0xff\n    pshuflw      m1, m1, 0xff\n    punpcklqdq   m0, m0\n    punpcklqdq   m1, m1\n    mova  [r0+r1*0], m0\n    mova  [r0+r1*1], m1\n    lea          r0, [r0+r1*2]\n    dec          r2d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_predict_8x8_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro MOV8 2-3\n; sort of a hack, but it works\n    movdqa    [%1], %2\n%endmacro\n\n%macro PRED8x8_DC 1\ncglobal pred8x8_dc_10, 2, 6\n    sub         r0, r1\n    pxor        m4, m4\n    movq        m0, [r0+0]\n    movq        m1, [r0+8]\n    punpcklwd   m0, m1\n    movhlps     m1, m0\n    paddw       m0, m1\n    %1          m2, m0, 00001110b\n    paddw       m0, m2\n\n    lea         r5, [r1*3]\n    lea         r4, [r0+r1*4]\n    movzx      r2d, word [r0+r1*1-2]\n    movzx      r3d, word [r0+r1*2-2]\n    add        r2d, r3d\n    movzx      r3d, word [r0+r5*1-2]\n    add        r2d, r3d\n    movzx      r3d, word [r4-2]\n    add        r2d, r3d\n    movd        m2, r2d            ; s2\n\n    movzx      r2d, word [r4+r1*1-2]\n    movzx      r3d, word [r4+r1*2-2]\n    add        r2d, r3d\n    movzx      r3d, word [r4+r5*1-2]\n    add        r2d, r3d\n    movzx      r3d, word [r4+r1*4-2]\n    add        r2d, r3d\n    movd        m3, r2d            ; s3\n\n    punpcklwd   m2, m3\n    punpckldq   m0, m2            ; s0, s1, s2, s3\n    %1          m3, m0, 11110110b ; s2, s1, s3, s3\n    %1          m0, m0, 01110100b ; s0, s1, s3, s1\n    paddw       m0, m3\n    psrlw       m0, 2\n    pavgw       m0, m4            ; s0+s2, s1, s3, s1+s3\n    punpcklwd   m0, m0\n    pshufd      m3, m0, 11111010b", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:10", "text": "movd        m2, r2d            ; s2\n\n    movzx      r2d, word [r4+r1*1-2]\n    movzx      r3d, word [r4+r1*2-2]\n    add        r2d, r3d\n    movzx      r3d, word [r4+r5*1-2]\n    add        r2d, r3d\n    movzx      r3d, word [r4+r1*4-2]\n    add        r2d, r3d\n    movd        m3, r2d            ; s3\n\n    punpcklwd   m2, m3\n    punpckldq   m0, m2            ; s0, s1, s2, s3\n    %1          m3, m0, 11110110b ; s2, s1, s3, s3\n    %1          m0, m0, 01110100b ; s0, s1, s3, s1\n    paddw       m0, m3\n    psrlw       m0, 2\n    pavgw       m0, m4            ; s0+s2, s1, s3, s1+s3\n    punpcklwd   m0, m0\n    pshufd      m3, m0, 11111010b\n    punpckldq   m0, m0\n    SWAP         0,1\n    MOV8   r0+r1*1, m1, m2\n    MOV8   r0+r1*2, m1, m2\n    MOV8   r0+r5*1, m1, m2\n    MOV8   r0+r1*4, m1, m2\n    MOV8   r4+r1*1, m3, m4\n    MOV8   r4+r1*2, m3, m4\n    MOV8   r4+r5*1, m3, m4\n    MOV8   r4+r1*4, m3, m4\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8_DC pshuflw\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8_top_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8_top_dc_10, 2, 4\n    sub         r0, r1\n    mova        m0, [r0]\n    pshuflw     m1, m0, 0x4e\n    pshufhw     m1, m1, 0x4e\n    paddw       m0, m1\n    pshuflw     m1, m0, 0xb1\n    pshufhw     m1, m1, 0xb1\n    paddw       m0, m1\n    lea         r2, [r1*3]\n    lea         r3, [r0+r1*4]\n    paddw       m0, [pw_2]\n    psrlw       m0, 2\n    mova [r0+r1*1], m0\n    mova [r0+r1*2], m0\n    mova [r0+r2*1], m0\n    mova [r0+r1*4], m0\n    mova [r3+r1*1], m0\n    mova [r3+r1*2], m0\n    mova [r3+r2*1], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:11", "text": "cglobal pred8x8_top_dc_10, 2, 4\n    sub         r0, r1\n    mova        m0, [r0]\n    pshuflw     m1, m0, 0x4e\n    pshufhw     m1, m1, 0x4e\n    paddw       m0, m1\n    pshuflw     m1, m0, 0xb1\n    pshufhw     m1, m1, 0xb1\n    paddw       m0, m1\n    lea         r2, [r1*3]\n    lea         r3, [r0+r1*4]\n    paddw       m0, [pw_2]\n    psrlw       m0, 2\n    mova [r0+r1*1], m0\n    mova [r0+r1*2], m0\n    mova [r0+r2*1], m0\n    mova [r0+r1*4], m0\n    mova [r3+r1*1], m0\n    mova [r3+r1*2], m0\n    mova [r3+r2*1], m0\n    mova [r3+r1*4], m0\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8_plane_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8_plane_10, 2, 7, 7\n    sub       r0, r1\n    lea       r2, [r1*3]\n    lea       r3, [r0+r1*4]\n    mova      m2, [r0]\n    pmaddwd   m2, [pw_m32101234]\n    HADDD     m2, m1\n    movd      m0, [r0-4]\n    psrld     m0, 14\n    psubw     m2, m0               ; H\n    movd      m0, [r3+r1*4-4]\n    movd      m1, [r0+12]\n    paddw     m0, m1\n    psllw     m0, 4                ; 16*(src[7*stride-1] + src[-stride+7])\n    movzx    r4d, word [r3+r1*1-2] ; src[4*stride-1]\n    movzx    r5d, word [r0+r2*1-2] ; src[2*stride-1]\n    sub      r4d, r5d\n    movzx    r6d, word [r3+r1*2-2] ; src[5*stride-1]\n    movzx    r5d, word [r0+r1*2-2] ; src[1*stride-1]\n    sub      r6d, r5d\n    lea      r4d, [r4+r6*2]\n    movzx    r5d, word [r3+r2*1-2] ; src[6*stride-1]\n    movzx    r6d, word [r0+r1*1-2] ; src[0*stride-1]\n    sub      r5d, r6d\n    lea      r5d, [r5*3]\n    add      r4d, r5d\n    movzx    r6d, word [r3+r1*4-2] ; src[7*stride-1]\n    movzx    r5d, word [r0+r1*0-2] ; src[ -stride-1]\n    sub      r6d, r5d\n    lea      r4d, [r4+r6*4]\n    movd      m3, r4d              ; V\n    punpckldq m2, m3\n    pmaddwd   m2, [pd_17]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:12", "text": "psllw     m0, 4                ; 16*(src[7*stride-1] + src[-stride+7])\n    movzx    r4d, word [r3+r1*1-2] ; src[4*stride-1]\n    movzx    r5d, word [r0+r2*1-2] ; src[2*stride-1]\n    sub      r4d, r5d\n    movzx    r6d, word [r3+r1*2-2] ; src[5*stride-1]\n    movzx    r5d, word [r0+r1*2-2] ; src[1*stride-1]\n    sub      r6d, r5d\n    lea      r4d, [r4+r6*2]\n    movzx    r5d, word [r3+r2*1-2] ; src[6*stride-1]\n    movzx    r6d, word [r0+r1*1-2] ; src[0*stride-1]\n    sub      r5d, r6d\n    lea      r5d, [r5*3]\n    add      r4d, r5d\n    movzx    r6d, word [r3+r1*4-2] ; src[7*stride-1]\n    movzx    r5d, word [r0+r1*0-2] ; src[ -stride-1]\n    sub      r6d, r5d\n    lea      r4d, [r4+r6*4]\n    movd      m3, r4d              ; V\n    punpckldq m2, m3\n    pmaddwd   m2, [pd_17]\n    paddd     m2, [pd_16]\n    psrad     m2, 5                ; b, c\n\n    mova      m3, [pw_pixel_max]\n    pxor      m1, m1\n    SPLATW    m0, m0, 1\n    SPLATW    m4, m2, 2\n    SPLATW    m2, m2, 0\n    pmullw    m2, [pw_m32101234]   ; b\n    pmullw    m5, m4, [pw_m3]      ; c\n    paddw     m5, [pw_16]\n    mov      r2d, 8\n    add       r0, r1\n.loop:\n    paddsw    m6, m2, m5\n    paddsw    m6, m0\n    psraw     m6, 5\n    CLIPW     m6, m1, m3\n    mova    [r0], m6\n    paddw     m5, m4\n    add       r0, r1\n    dec r2d\n    jg .loop\n    RET\n\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_128_dc_10(pixel *src, int has_topleft, int has_topright,\n;                            ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8l_128_dc_10, 4, 4\n    mova      m0, [pw_512] ; (1<<(BIT_DEPTH-1))\n    lea       r1, [r3*3]\n    lea       r2, [r0+r3*4]\n    MOV8 r0+r3*0, m0, m0\n    MOV8 r0+r3*1, m0, m0\n    MOV8 r0+r3*2, m0, m0\n    MOV8 r0+r1*1, m0, m0\n    MOV8 r2+r3*0, m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:13", "text": "add       r0, r1\n    dec r2d\n    jg .loop\n    RET\n\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_128_dc_10(pixel *src, int has_topleft, int has_topright,\n;                            ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred8x8l_128_dc_10, 4, 4\n    mova      m0, [pw_512] ; (1<<(BIT_DEPTH-1))\n    lea       r1, [r3*3]\n    lea       r2, [r0+r3*4]\n    MOV8 r0+r3*0, m0, m0\n    MOV8 r0+r3*1, m0, m0\n    MOV8 r0+r3*2, m0, m0\n    MOV8 r0+r1*1, m0, m0\n    MOV8 r2+r3*0, m0, m0\n    MOV8 r2+r3*1, m0, m0\n    MOV8 r2+r3*2, m0, m0\n    MOV8 r2+r1*1, m0, m0\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_top_dc_10(pixel *src, int has_topleft, int has_topright,\n;                            ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_TOP_DC 0\ncglobal pred8x8l_top_dc_10, 4, 4, 6\n    sub         r0, r3\n    mova        m0, [r0]\n    shr        r1d, 14\n    shr        r2d, 13\n    neg         r1\n    pslldq      m1, m0, 2\n    psrldq      m2, m0, 2\n    pinsrw      m1, [r0+r1], 0\n    pinsrw      m2, [r0+r2+14], 7\n    lea         r1, [r3*3]\n    lea         r2, [r0+r3*4]\n    PRED4x4_LOWPASS m0, m2, m1, m0\n    HADDW       m0, m1\n    paddw       m0, [pw_4]\n    psrlw       m0, 3\n    SPLATW      m0, m0, 0\n    mova [r0+r3*1], m0\n    mova [r0+r3*2], m0\n    mova [r0+r1*1], m0\n    mova [r0+r3*4], m0\n    mova [r2+r3*1], m0\n    mova [r2+r3*2], m0\n    mova [r2+r1*1], m0\n    mova [r2+r3*4], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_TOP_DC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:14", "text": "lea         r1, [r3*3]\n    lea         r2, [r0+r3*4]\n    PRED4x4_LOWPASS m0, m2, m1, m0\n    HADDW       m0, m1\n    paddw       m0, [pw_4]\n    psrlw       m0, 3\n    SPLATW      m0, m0, 0\n    mova [r0+r3*1], m0\n    mova [r0+r3*2], m0\n    mova [r0+r1*1], m0\n    mova [r0+r3*4], m0\n    mova [r2+r3*1], m0\n    mova [r2+r3*2], m0\n    mova [r2+r1*1], m0\n    mova [r2+r3*4], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_TOP_DC\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_TOP_DC\n%endif\n\n;-------------------------------------------------------------------------------\n; void ff_pred8x8l_dc_10(pixel *src, int has_topleft, int has_topright,\n;                        ptrdiff_t stride)\n;-------------------------------------------------------------------------------\n;TODO: see if scalar is faster\n%macro PRED8x8L_DC 0\ncglobal pred8x8l_dc_10, 4, 6, 6\n    sub         r0, r3\n    lea         r4, [r0+r3*4]\n    lea         r5, [r3*3]\n    mova        m0, [r0+r3*2-16]\n    punpckhwd   m0, [r0+r3*1-16]\n    mova        m1, [r4+r3*0-16]\n    punpckhwd   m1, [r0+r5*1-16]\n    punpckhdq   m1, m0\n    mova        m2, [r4+r3*2-16]\n    punpckhwd   m2, [r4+r3*1-16]\n    mova        m3, [r4+r3*4-16]\n    punpckhwd   m3, [r4+r5*1-16]\n    punpckhdq   m3, m2\n    punpckhqdq  m3, m1\n    mova        m0, [r0]\n    shr        r1d, 14\n    shr        r2d, 13\n    neg         r1\n    pslldq      m1, m0, 2\n    psrldq      m2, m0, 2\n    pinsrw      m1, [r0+r1], 0\n    pinsrw      m2, [r0+r2+14], 7\n    not         r1\n    and         r1, r3\n    pslldq      m4, m3, 2\n    psrldq      m5, m3, 2\n    pshuflw     m4, m4, 11100101b\n    pinsrw      m5, [r0+r1-2], 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:15", "text": "mova        m2, [r4+r3*2-16]\n    punpckhwd   m2, [r4+r3*1-16]\n    mova        m3, [r4+r3*4-16]\n    punpckhwd   m3, [r4+r5*1-16]\n    punpckhdq   m3, m2\n    punpckhqdq  m3, m1\n    mova        m0, [r0]\n    shr        r1d, 14\n    shr        r2d, 13\n    neg         r1\n    pslldq      m1, m0, 2\n    psrldq      m2, m0, 2\n    pinsrw      m1, [r0+r1], 0\n    pinsrw      m2, [r0+r2+14], 7\n    not         r1\n    and         r1, r3\n    pslldq      m4, m3, 2\n    psrldq      m5, m3, 2\n    pshuflw     m4, m4, 11100101b\n    pinsrw      m5, [r0+r1-2], 7\n    PRED4x4_LOWPASS m3, m4, m5, m3\n    PRED4x4_LOWPASS m0, m2, m1, m0\n    paddw       m0, m3\n    HADDW       m0, m1\n    paddw       m0, [pw_8]\n    psrlw       m0, 4\n    SPLATW      m0, m0\n    mova [r0+r3*1], m0\n    mova [r0+r3*2], m0\n    mova [r0+r5*1], m0\n    mova [r0+r3*4], m0\n    mova [r4+r3*1], m0\n    mova [r4+r3*2], m0\n    mova [r4+r5*1], m0\n    mova [r4+r3*4], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_DC\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_DC\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_vertical_10(pixel *src, int has_topleft, int has_topright,\n;                              ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_VERTICAL 0\ncglobal pred8x8l_vertical_10, 4, 4, 6\n    sub         r0, r3\n    mova        m0, [r0]\n    shr        r1d, 14\n    shr        r2d, 13\n    neg         r1\n    pslldq      m1, m0, 2\n    psrldq      m2, m0, 2\n    pinsrw      m1, [r0+r1], 0\n    pinsrw      m2, [r0+r2+14], 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:16", "text": "%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_DC\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_vertical_10(pixel *src, int has_topleft, int has_topright,\n;                              ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_VERTICAL 0\ncglobal pred8x8l_vertical_10, 4, 4, 6\n    sub         r0, r3\n    mova        m0, [r0]\n    shr        r1d, 14\n    shr        r2d, 13\n    neg         r1\n    pslldq      m1, m0, 2\n    psrldq      m2, m0, 2\n    pinsrw      m1, [r0+r1], 0\n    pinsrw      m2, [r0+r2+14], 7\n    lea         r1, [r3*3]\n    lea         r2, [r0+r3*4]\n    PRED4x4_LOWPASS m0, m2, m1, m0\n    mova [r0+r3*1], m0\n    mova [r0+r3*2], m0\n    mova [r0+r1*1], m0\n    mova [r0+r3*4], m0\n    mova [r2+r3*1], m0\n    mova [r2+r3*2], m0\n    mova [r2+r1*1], m0\n    mova [r2+r3*4], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_VERTICAL\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_VERTICAL\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_horizontal_10(uint8_t *src, int has_topleft,\n;                                int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_HORIZONTAL 0\ncglobal pred8x8l_horizontal_10, 4, 4, 5\n    mova        m0, [r0-16]\n    shr        r1d, 14\n    dec         r1\n    and         r1, r3\n    sub         r1, r3\n    punpckhwd   m0, [r0+r1-16]\n    mova        m1, [r0+r3*2-16]\n    punpckhwd   m1, [r0+r3*1-16]\n    lea         r2, [r0+r3*4]\n    lea         r1, [r3*3]\n    punpckhdq   m1, m0\n    mova        m2, [r2+r3*0-16]\n    punpckhwd   m2, [r0+r1-16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:17", "text": ";-----------------------------------------------------------------------------\n; void ff_pred8x8l_horizontal_10(uint8_t *src, int has_topleft,\n;                                int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_HORIZONTAL 0\ncglobal pred8x8l_horizontal_10, 4, 4, 5\n    mova        m0, [r0-16]\n    shr        r1d, 14\n    dec         r1\n    and         r1, r3\n    sub         r1, r3\n    punpckhwd   m0, [r0+r1-16]\n    mova        m1, [r0+r3*2-16]\n    punpckhwd   m1, [r0+r3*1-16]\n    lea         r2, [r0+r3*4]\n    lea         r1, [r3*3]\n    punpckhdq   m1, m0\n    mova        m2, [r2+r3*0-16]\n    punpckhwd   m2, [r0+r1-16]\n    mova        m3, [r2+r3*2-16]\n    punpckhwd   m3, [r2+r3*1-16]\n    punpckhdq   m3, m2\n    punpckhqdq  m3, m1\n    PALIGNR     m4, m3, [r2+r1-16], 14, m0\n    pslldq      m0, m4, 2\n    pshuflw     m0, m0, 11100101b\n    PRED4x4_LOWPASS m4, m3, m0, m4\n    punpckhwd   m3, m4, m4\n    punpcklwd   m4, m4\n    pshufd      m0, m3, 0xff\n    pshufd      m1, m3, 0xaa\n    pshufd      m2, m3, 0x55\n    pshufd      m3, m3, 0x00\n    mova [r0+r3*0], m0\n    mova [r0+r3*1], m1\n    mova [r0+r3*2], m2\n    mova [r0+r1*1], m3\n    pshufd      m0, m4, 0xff\n    pshufd      m1, m4, 0xaa\n    pshufd      m2, m4, 0x55\n    pshufd      m3, m4, 0x00\n    mova [r2+r3*0], m0\n    mova [r2+r3*1], m1\n    mova [r2+r3*2], m2\n    mova [r2+r1*1], m3\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_HORIZONTAL\nINIT_XMM ssse3\nPRED8x8L_HORIZONTAL\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_HORIZONTAL\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_down_left_10(pixel *src, int has_topleft, int has_topright,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:18", "text": "pshufd      m2, m4, 0x55\n    pshufd      m3, m4, 0x00\n    mova [r2+r3*0], m0\n    mova [r2+r3*1], m1\n    mova [r2+r3*2], m2\n    mova [r2+r1*1], m3\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_HORIZONTAL\nINIT_XMM ssse3\nPRED8x8L_HORIZONTAL\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_HORIZONTAL\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_down_left_10(pixel *src, int has_topleft, int has_topright,\n;                               ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_DOWN_LEFT 0\ncglobal pred8x8l_down_left_10, 4, 4, 7\n    sub         r0, r3\n    mova        m3, [r0]\n    shr        r1d, 14\n    neg         r1\n    shr        r2d, 13\n    pslldq      m1, m3, 2\n    psrldq      m2, m3, 2\n    pinsrw      m1, [r0+r1], 0\n    pinsrw      m2, [r0+r2+14], 7\n    PRED4x4_LOWPASS m6, m2, m1, m3\n    jz .fix_tr ; flags from shr r2d\n    mova        m1, [r0+16]\n    psrldq      m5, m1, 2\n    PALIGNR     m2, m1, m3, 14, m3\n    pshufhw     m5, m5, 10100100b\n    PRED4x4_LOWPASS m1, m2, m5, m1\n.do_topright:\n    lea         r1, [r3*3]\n    psrldq      m5, m1, 14\n    lea         r2, [r0+r3*4]\n    PALIGNR     m2, m1, m6,  2, m0\n    PALIGNR     m3, m1, m6, 14, m0\n    PALIGNR     m5, m1,  2, m0\n    pslldq      m4, m6, 2\n    PRED4x4_LOWPASS m6, m4, m2, m6\n    PRED4x4_LOWPASS m1, m3, m5, m1\n    mova [r2+r3*4], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r2+r1*1], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r2+r3*2], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r2+r3*1], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:19", "text": ".do_topright:\n    lea         r1, [r3*3]\n    psrldq      m5, m1, 14\n    lea         r2, [r0+r3*4]\n    PALIGNR     m2, m1, m6,  2, m0\n    PALIGNR     m3, m1, m6, 14, m0\n    PALIGNR     m5, m1,  2, m0\n    pslldq      m4, m6, 2\n    PRED4x4_LOWPASS m6, m4, m2, m6\n    PRED4x4_LOWPASS m1, m3, m5, m1\n    mova [r2+r3*4], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r2+r1*1], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r2+r3*2], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r2+r3*1], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*4], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r1*1], m1\n    PALIGNR     m1, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*2], m1\n    PALIGNR     m1, m6, 14, m6\n    mova [r0+r3*1], m1\n    RET\n.fix_tr:\n    punpckhwd   m3, m3\n    pshufd      m1, m3, 0xFF\n    jmp .do_topright\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_DOWN_LEFT\nINIT_XMM ssse3\nPRED8x8L_DOWN_LEFT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_DOWN_LEFT\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_down_right_10(pixel *src, int has_topleft,\n;                                int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_DOWN_RIGHT 0\n; standard forbids this when has_topleft is false\n; no need to check\ncglobal pred8x8l_down_right_10, 4, 5, 8\n    sub         r0, r3\n    lea         r4, [r0+r3*4]\n    lea         r1, [r3*3]\n    mova        m0, [r0+r3*1-16]\n    punpckhwd   m0, [r0+r3*0-16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:20", "text": "INIT_XMM ssse3\nPRED8x8L_DOWN_LEFT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_DOWN_LEFT\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_down_right_10(pixel *src, int has_topleft,\n;                                int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_DOWN_RIGHT 0\n; standard forbids this when has_topleft is false\n; no need to check\ncglobal pred8x8l_down_right_10, 4, 5, 8\n    sub         r0, r3\n    lea         r4, [r0+r3*4]\n    lea         r1, [r3*3]\n    mova        m0, [r0+r3*1-16]\n    punpckhwd   m0, [r0+r3*0-16]\n    mova        m1, [r0+r1*1-16]\n    punpckhwd   m1, [r0+r3*2-16]\n    punpckhdq   m1, m0\n    mova        m2, [r4+r3*1-16]\n    punpckhwd   m2, [r4+r3*0-16]\n    mova        m3, [r4+r1*1-16]\n    punpckhwd   m3, [r4+r3*2-16]\n    punpckhdq   m3, m2\n    punpckhqdq  m3, m1\n    mova        m0, [r4+r3*4-16]\n    mova        m1, [r0]\n    PALIGNR     m4, m3, m0, 14, m0\n    PALIGNR     m1, m3,  2, m2\n    pslldq      m0, m4, 2\n    pshuflw     m0, m0, 11100101b\n    PRED4x4_LOWPASS m6, m1, m4, m3\n    PRED4x4_LOWPASS m4, m3, m0, m4\n    mova        m3, [r0]\n    shr        r2d, 13\n    pslldq      m1, m3, 2\n    psrldq      m2, m3, 2\n    pinsrw      m1, [r0-2], 0\n    pinsrw      m2, [r0+r2+14], 7\n    PRED4x4_LOWPASS m3, m2, m1, m3\n    PALIGNR     m2, m3, m6,  2, m0\n    PALIGNR     m5, m3, m6, 14, m0\n    psrldq      m7, m3, 2\n    PRED4x4_LOWPASS m6, m4, m2, m6\n    PRED4x4_LOWPASS m3, m5, m7, m3\n    mova [r4+r3*4], m6\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*1], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*2], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r1*1], m3\n    PALIGNR     m3, m6, 14, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:21", "text": "psrldq      m2, m3, 2\n    pinsrw      m1, [r0-2], 0\n    pinsrw      m2, [r0+r2+14], 7\n    PRED4x4_LOWPASS m3, m2, m1, m3\n    PALIGNR     m2, m3, m6,  2, m0\n    PALIGNR     m5, m3, m6, 14, m0\n    psrldq      m7, m3, 2\n    PRED4x4_LOWPASS m6, m4, m2, m6\n    PRED4x4_LOWPASS m3, m5, m7, m3\n    mova [r4+r3*4], m6\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*1], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*2], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r1*1], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r0+r3*4], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r4+r3*1], m3\n    PALIGNR     m3, m6, 14, m2\n    pslldq      m6, 2\n    mova [r4+r3*2], m3\n    PALIGNR     m3, m6, 14, m6\n    mova [r4+r1*1], m3\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_DOWN_RIGHT\nINIT_XMM ssse3\nPRED8x8L_DOWN_RIGHT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_DOWN_RIGHT\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_vertical_right_10(pixel *src, int has_topleft,\n;                                    int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_VERTICAL_RIGHT 0\n; likewise with 8x8l_down_right\ncglobal pred8x8l_vertical_right_10, 4, 5, 7\n    sub         r0, r3\n    lea         r4, [r0+r3*4]\n    lea         r1, [r3*3]\n    mova        m0, [r0+r3*1-16]\n    punpckhwd   m0, [r0+r3*0-16]\n    mova        m1, [r0+r1*1-16]\n    punpckhwd   m1, [r0+r3*2-16]\n    punpckhdq   m1, m0\n    mova        m2, [r4+r3*1-16]\n    punpckhwd   m2, [r4+r3*0-16]\n    mova        m3, [r4+r1*1-16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:22", "text": "%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_vertical_right_10(pixel *src, int has_topleft,\n;                                    int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_VERTICAL_RIGHT 0\n; likewise with 8x8l_down_right\ncglobal pred8x8l_vertical_right_10, 4, 5, 7\n    sub         r0, r3\n    lea         r4, [r0+r3*4]\n    lea         r1, [r3*3]\n    mova        m0, [r0+r3*1-16]\n    punpckhwd   m0, [r0+r3*0-16]\n    mova        m1, [r0+r1*1-16]\n    punpckhwd   m1, [r0+r3*2-16]\n    punpckhdq   m1, m0\n    mova        m2, [r4+r3*1-16]\n    punpckhwd   m2, [r4+r3*0-16]\n    mova        m3, [r4+r1*1-16]\n    punpckhwd   m3, [r4+r3*2-16]\n    punpckhdq   m3, m2\n    punpckhqdq  m3, m1\n    mova        m0, [r4+r3*4-16]\n    mova        m1, [r0]\n    PALIGNR     m4, m3, m0, 14, m0\n    PALIGNR     m1, m3,  2, m2\n    PRED4x4_LOWPASS m3, m1, m4, m3\n    mova        m2, [r0]\n    shr        r2d, 13\n    pslldq      m1, m2, 2\n    psrldq      m5, m2, 2\n    pinsrw      m1, [r0-2], 0\n    pinsrw      m5, [r0+r2+14], 7\n    PRED4x4_LOWPASS m2, m5, m1, m2\n    PALIGNR     m6, m2, m3, 12, m1\n    PALIGNR     m5, m2, m3, 14, m0\n    PRED4x4_LOWPASS m0, m6, m2, m5\n    pavgw       m2, m5\n    mova [r0+r3*2], m0\n    mova [r0+r3*1], m2\n    pslldq      m6, m3, 4\n    pslldq      m1, m3, 2\n    PRED4x4_LOWPASS m1, m3, m6, m1\n    PALIGNR     m2, m1, 14, m4\n    mova [r0+r1*1], m2\n    pslldq      m1, 2\n    PALIGNR     m0, m1, 14, m3\n    mova [r0+r3*4], m0\n    pslldq      m1, 2\n    PALIGNR     m2, m1, 14, m4\n    mova [r4+r3*1], m2\n    pslldq      m1, 2\n    PALIGNR     m0, m1, 14, m3\n    mova [r4+r3*2], m0\n    pslldq      m1, 2\n    PALIGNR     m2, m1, 14, m4\n    mova [r4+r1*1], m2\n    pslldq      m1, 2\n    PALIGNR     m0, m1, 14, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:23", "text": "mova [r0+r3*1], m2\n    pslldq      m6, m3, 4\n    pslldq      m1, m3, 2\n    PRED4x4_LOWPASS m1, m3, m6, m1\n    PALIGNR     m2, m1, 14, m4\n    mova [r0+r1*1], m2\n    pslldq      m1, 2\n    PALIGNR     m0, m1, 14, m3\n    mova [r0+r3*4], m0\n    pslldq      m1, 2\n    PALIGNR     m2, m1, 14, m4\n    mova [r4+r3*1], m2\n    pslldq      m1, 2\n    PALIGNR     m0, m1, 14, m3\n    mova [r4+r3*2], m0\n    pslldq      m1, 2\n    PALIGNR     m2, m1, 14, m4\n    mova [r4+r1*1], m2\n    pslldq      m1, 2\n    PALIGNR     m0, m1, 14, m1\n    mova [r4+r3*4], m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_VERTICAL_RIGHT\nINIT_XMM ssse3\nPRED8x8L_VERTICAL_RIGHT\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_VERTICAL_RIGHT\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_pred8x8l_horizontal_up_10(pixel *src, int has_topleft,\n;                                   int has_topright, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro PRED8x8L_HORIZONTAL_UP 0\ncglobal pred8x8l_horizontal_up_10, 4, 4, 6\n    mova        m0, [r0+r3*0-16]\n    punpckhwd   m0, [r0+r3*1-16]\n    shr        r1d, 14\n    dec         r1\n    and         r1, r3\n    sub         r1, r3\n    mova        m4, [r0+r1*1-16]\n    lea         r1, [r3*3]\n    lea         r2, [r0+r3*4]\n    mova        m1, [r0+r3*2-16]\n    punpckhwd   m1, [r0+r1*1-16]\n    punpckhdq   m0, m1\n    mova        m2, [r2+r3*0-16]\n    punpckhwd   m2, [r2+r3*1-16]\n    mova        m3, [r2+r3*2-16]\n    punpckhwd   m3, [r2+r1*1-16]\n    punpckhdq   m2, m3\n    punpckhqdq  m0, m2\n    PALIGNR     m1, m0, m4, 14, m4\n    psrldq      m2, m0, 2\n    pshufhw     m2, m2, 10100100b", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:24", "text": "punpckhwd   m0, [r0+r3*1-16]\n    shr        r1d, 14\n    dec         r1\n    and         r1, r3\n    sub         r1, r3\n    mova        m4, [r0+r1*1-16]\n    lea         r1, [r3*3]\n    lea         r2, [r0+r3*4]\n    mova        m1, [r0+r3*2-16]\n    punpckhwd   m1, [r0+r1*1-16]\n    punpckhdq   m0, m1\n    mova        m2, [r2+r3*0-16]\n    punpckhwd   m2, [r2+r3*1-16]\n    mova        m3, [r2+r3*2-16]\n    punpckhwd   m3, [r2+r1*1-16]\n    punpckhdq   m2, m3\n    punpckhqdq  m0, m2\n    PALIGNR     m1, m0, m4, 14, m4\n    psrldq      m2, m0, 2\n    pshufhw     m2, m2, 10100100b\n    PRED4x4_LOWPASS m0, m1, m2, m0\n    psrldq      m1, m0, 2\n    psrldq      m2, m0, 4\n    pshufhw     m1, m1, 10100100b\n    pshufhw     m2, m2, 01010100b\n    pavgw       m4, m0, m1\n    PRED4x4_LOWPASS m1, m2, m0, m1\n    punpckhwd   m5, m4, m1\n    punpcklwd   m4, m1\n    mova [r2+r3*0], m5\n    mova [r0+r3*0], m4\n    pshufd      m0, m5, 11111001b\n    pshufd      m1, m5, 11111110b\n    pshufd      m2, m5, 11111111b\n    mova [r2+r3*1], m0\n    mova [r2+r3*2], m1\n    mova [r2+r1*1], m2\n    PALIGNR     m2, m5, m4, 4, m0\n    PALIGNR     m3, m5, m4, 8, m1\n    PALIGNR     m5, m5, m4, 12, m4\n    mova [r0+r3*1], m2\n    mova [r0+r3*2], m3\n    mova [r0+r1*1], m5\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_HORIZONTAL_UP\nINIT_XMM ssse3\nPRED8x8L_HORIZONTAL_UP\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_HORIZONTAL_UP\n%endif\n\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_vertical_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro MOV16 3-5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:25", "text": "mova [r0+r3*1], m2\n    mova [r0+r3*2], m3\n    mova [r0+r1*1], m5\n    RET\n%endmacro\n\nINIT_XMM sse2\nPRED8x8L_HORIZONTAL_UP\nINIT_XMM ssse3\nPRED8x8L_HORIZONTAL_UP\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPRED8x8L_HORIZONTAL_UP\n%endif\n\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_vertical_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\n%macro MOV16 3-5\n    mova [%1+     0], %2\n    mova [%1+mmsize], %3\n%endmacro\n\nINIT_XMM sse2\ncglobal pred16x16_vertical_10, 2, 3\n    sub   r0, r1\n    mov  r2d, 8\n    mova  m0, [r0+ 0]\n    mova  m1, [r0+mmsize]\n.loop:\n    MOV16 r0+r1*1, m0, m1, m2, m3\n    MOV16 r0+r1*2, m0, m1, m2, m3\n    lea   r0, [r0+r1*2]\n    dec   r2d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_horizontal_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_horizontal_10, 2, 3\n    mov   r2d, 8\n.vloop:\n    movd   m0, [r0+r1*0-4]\n    movd   m1, [r0+r1*1-4]\n    SPLATW m0, m0, 1\n    SPLATW m1, m1, 1\n    MOV16  r0+r1*0, m0, m0, m0, m0\n    MOV16  r0+r1*1, m1, m1, m1, m1\n    lea    r0, [r0+r1*2]\n    dec    r2d\n    jg .vloop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:26", "text": ";-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_horizontal_10, 2, 3\n    mov   r2d, 8\n.vloop:\n    movd   m0, [r0+r1*0-4]\n    movd   m1, [r0+r1*1-4]\n    SPLATW m0, m0, 1\n    SPLATW m1, m1, 1\n    MOV16  r0+r1*0, m0, m0, m0, m0\n    MOV16  r0+r1*1, m1, m1, m1, m1\n    lea    r0, [r0+r1*2]\n    dec    r2d\n    jg .vloop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_dc_10, 2, 6\n    mov        r5, r0\n    sub        r0, r1\n    mova       m0, [r0+0]\n    paddw      m0, [r0+mmsize]\n    HADDW      m0, m2\n\n    lea        r0, [r0+r1-2]\n    movzx     r3d, word [r0]\n    movzx     r4d, word [r0+r1]\n%rep 7\n    lea        r0, [r0+r1*2]\n    movzx     r2d, word [r0]\n    add       r3d, r2d\n    movzx     r2d, word [r0+r1]\n    add       r4d, r2d\n%endrep\n    lea       r3d, [r3+r4+16]\n\n    movd       m1, r3d\n    paddw      m0, m1\n    psrlw      m0, 5\n    SPLATW     m0, m0\n    mov       r3d, 8\n.loop:\n    MOV16 r5+r1*0, m0, m0, m0, m0\n    MOV16 r5+r1*1, m0, m0, m0, m0\n    lea        r5, [r5+r1*2]\n    dec       r3d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_top_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_top_dc_10, 2, 3\n    sub        r0, r1\n    mova       m0, [r0+0]\n    paddw      m0, [r0+mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:27", "text": "paddw      m0, m1\n    psrlw      m0, 5\n    SPLATW     m0, m0\n    mov       r3d, 8\n.loop:\n    MOV16 r5+r1*0, m0, m0, m0, m0\n    MOV16 r5+r1*1, m0, m0, m0, m0\n    lea        r5, [r5+r1*2]\n    dec       r3d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_top_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_top_dc_10, 2, 3\n    sub        r0, r1\n    mova       m0, [r0+0]\n    paddw      m0, [r0+mmsize]\n    HADDW      m0, m2\n\n    SPLATW     m0, m0\n    paddw      m0, [pw_8]\n    psrlw      m0, 4\n    mov       r2d, 8\n.loop:\n    MOV16 r0+r1*1, m0, m0, m0, m0\n    MOV16 r0+r1*2, m0, m0, m0, m0\n    lea        r0, [r0+r1*2]\n    dec       r2d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_left_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_left_dc_10, 2, 6\n    mov        r5, r0\n\n    sub        r0, 2\n    movzx     r3d, word [r0]\n    movzx     r4d, word [r0+r1]\n%rep 7\n    lea        r0, [r0+r1*2]\n    movzx     r2d, word [r0]\n    add       r3d, r2d\n    movzx     r2d, word [r0+r1]\n    add       r4d, r2d\n%endrep\n    lea       r3d, [r3+r4+8]\n    shr       r3d, 4\n\n    movd       m0, r3d\n    SPLATW     m0, m0\n    mov       r3d, 8\n.loop:\n    MOV16 r5+r1*0, m0, m0, m0, m0\n    MOV16 r5+r1*1, m0, m0, m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_intrapred_10bit.asm:28", "text": "sub        r0, 2\n    movzx     r3d, word [r0]\n    movzx     r4d, word [r0+r1]\n%rep 7\n    lea        r0, [r0+r1*2]\n    movzx     r2d, word [r0]\n    add       r3d, r2d\n    movzx     r2d, word [r0+r1]\n    add       r4d, r2d\n%endrep\n    lea       r3d, [r3+r4+8]\n    shr       r3d, 4\n\n    movd       m0, r3d\n    SPLATW     m0, m0\n    mov       r3d, 8\n.loop:\n    MOV16 r5+r1*0, m0, m0, m0, m0\n    MOV16 r5+r1*1, m0, m0, m0, m0\n    lea        r5, [r5+r1*2]\n    dec       r3d\n    jg .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_pred16x16_128_dc_10(pixel *src, ptrdiff_t stride)\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pred16x16_128_dc_10, 2,3\n    mova       m0, [pw_512]\n    mov       r2d, 8\n.loop:\n    MOV16 r0+r1*0, m0, m0, m0, m0\n    MOV16 r0+r1*1, m0, m0, m0, m0\n    lea        r0, [r0+r1*2]\n    dec       r2d\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_intrapred_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_intrapred_10bit.asm", "line_start": 1081, "line_end": 1119}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized 10-bit H.264 qpel code\n;*****************************************************************************\n;* Copyright (C) 2011 x264 project\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\ncextern pd_65535\ncextern pw_1023\n%define pw_pixel_max pw_1023\ncextern pw_16\ncextern pw_1\ncextern pb_0\n\npad10: times 8 dw 10*1023\npad20: times 8 dw 20*1023\npad30: times 8 dw 30*1023\ndepad: times 4 dd 32*20*1023 + 512\ndepad2: times 8 dw 20*1023 + 16*1022 + 16\nunpad: times 8 dw 16*1022/32 ; needs to be mod 16\n\ntap1: times 4 dw  1, -5\ntap2: times 4 dw 20, 20\ntap3: times 4 dw -5,  1\n\nSECTION .text\n\n\n%macro AVG_MOV 2\n    pavgw %2, %1\n    mova  %1, %2\n%endmacro\n\n%macro ADDW 3\n%if mmsize == 8\n    paddw %1, %2\n%else\n    movu  %3, %2\n    paddw %1, %3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:2", "text": "unpad: times 8 dw 16*1022/32 ; needs to be mod 16\n\ntap1: times 4 dw  1, -5\ntap2: times 4 dw 20, 20\ntap3: times 4 dw -5,  1\n\nSECTION .text\n\n\n%macro AVG_MOV 2\n    pavgw %2, %1\n    mova  %1, %2\n%endmacro\n\n%macro ADDW 3\n%if mmsize == 8\n    paddw %1, %2\n%else\n    movu  %3, %2\n    paddw %1, %3\n%endif\n%endmacro\n\n%macro FILT_H 4\n    paddw  %1, %4\n    psubw  %1, %2  ; a-b\n    psraw  %1, 2   ; (a-b)/4\n    psubw  %1, %2  ; (a-b)/4-b\n    paddw  %1, %3  ; (a-b)/4-b+c\n    psraw  %1, 2   ; ((a-b)/4-b+c)/4\n    paddw  %1, %3  ; ((a-b)/4-b+c)/4+c = (a-5*b+20*c)/16\n%endmacro\n\n%macro PRELOAD_V 0\n    lea      r3, [r2*3]\n    sub      r1, r3\n    movu     m0, [r1+r2]\n    movu     m1, [r1+r2*2]\n    add      r1, r3\n    movu     m2, [r1]\n    movu     m3, [r1+r2]\n    movu     m4, [r1+r2*2]\n    add      r1, r3\n%endmacro\n\n%macro FILT_V 8\n    movu     %6, [r1]\n    paddw    %1, %6\n    mova     %7, %2\n    paddw    %7, %5\n    mova     %8, %3\n    paddw    %8, %4\n    FILT_H   %1, %7, %8, [pw_16]\n    psraw    %1, 1\n    CLIPW    %1, [pb_0], [pw_pixel_max]\n%endmacro\n\n%macro MC 1\n%define OP_MOV mova\nINIT_MMX mmxext", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:3", "text": "movu     m3, [r1+r2]\n    movu     m4, [r1+r2*2]\n    add      r1, r3\n%endmacro\n\n%macro FILT_V 8\n    movu     %6, [r1]\n    paddw    %1, %6\n    mova     %7, %2\n    paddw    %7, %5\n    mova     %8, %3\n    paddw    %8, %4\n    FILT_H   %1, %7, %8, [pw_16]\n    psraw    %1, 1\n    CLIPW    %1, [pb_0], [pw_pixel_max]\n%endmacro\n\n%macro MC 1\n%define OP_MOV mova\nINIT_MMX mmxext\n%1 put, 4\nINIT_XMM sse2\n%1 put, 8\n\n%define OP_MOV AVG_MOV\nINIT_MMX mmxext\n%1 avg, 4\nINIT_XMM sse2\n%1 avg, 8\n%endmacro\n\n%macro MCAxA_OP 7\n%if ARCH_X86_32\ncglobal %1_h264_qpel%4_%2_10, %5,%6,%7\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    mov  r0, r0m\n    mov  r1, r1m\n    add  r0, %3*2\n    add  r1, %3*2\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    mov  r0, r0m\n    mov  r1, r1m\n    lea  r0, [r0+r2*%3]\n    lea  r1, [r1+r2*%3]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    mov  r0, r0m\n    mov  r1, r1m\n    lea  r0, [r0+r2*%3+%3*2]\n    lea  r1, [r1+r2*%3+%3*2]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    RET\n%else ; ARCH_X86_64\ncglobal %1_h264_qpel%4_%2_10, %5,%6 + 2,%7\n    mov r%6, r0\n%assign p1 %6+1\n    mov r %+ p1, r1\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    lea  r0, [r%6+%3*2]\n    lea  r1, [r %+ p1+%3*2]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:4", "text": "mov  r0, r0m\n    mov  r1, r1m\n    lea  r0, [r0+r2*%3]\n    lea  r1, [r1+r2*%3]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    mov  r0, r0m\n    mov  r1, r1m\n    lea  r0, [r0+r2*%3+%3*2]\n    lea  r1, [r1+r2*%3+%3*2]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    RET\n%else ; ARCH_X86_64\ncglobal %1_h264_qpel%4_%2_10, %5,%6 + 2,%7\n    mov r%6, r0\n%assign p1 %6+1\n    mov r %+ p1, r1\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    lea  r0, [r%6+%3*2]\n    lea  r1, [r %+ p1+%3*2]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    lea  r0, [r%6+r2*%3]\n    lea  r1, [r %+ p1+r2*%3]\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    lea  r0, [r%6+r2*%3+%3*2]\n    lea  r1, [r %+ p1+r2*%3+%3*2]\n%if UNIX64 == 0 ; fall through to function\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    RET\n%endif\n%endif\n%endmacro\n\n;cpu, put/avg, mc, 4/8, ...\n%macro cglobal_mc 6\n%assign i %3*2\n%if cpuflag(sse2)\nMCAxA_OP %1, %2, %3, i, %4,%5,%6\n%endif\n\ncglobal %1_h264_qpel%3_%2_10, %4,%5,%6\n%if UNIX64 == 0 ; no prologue or epilogue for UNIX64\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    RET\n%endif\n\nstub_%1_h264_qpel%3_%2_10 %+ SUFFIX:\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc00(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro COPY4 0\n    movu          m0, [r1     ]\n    OP_MOV [r0     ], m0\n    movu          m0, [r1+r2  ]\n    OP_MOV [r0+r2  ], m0\n    movu          m0, [r1+r2*2]\n    OP_MOV [r0+r2*2], m0\n    movu          m0, [r1+r3  ]\n    OP_MOV [r0+r3  ], m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:5", "text": "%if UNIX64 == 0 ; no prologue or epilogue for UNIX64\n    call stub_%1_h264_qpel%3_%2_10 %+ SUFFIX\n    RET\n%endif\n\nstub_%1_h264_qpel%3_%2_10 %+ SUFFIX:\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc00(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro COPY4 0\n    movu          m0, [r1     ]\n    OP_MOV [r0     ], m0\n    movu          m0, [r1+r2  ]\n    OP_MOV [r0+r2  ], m0\n    movu          m0, [r1+r2*2]\n    OP_MOV [r0+r2*2], m0\n    movu          m0, [r1+r3  ]\n    OP_MOV [r0+r3  ], m0\n%endmacro\n\n%macro MC00 1\nINIT_MMX mmxext\ncglobal_mc %1, mc00, 4, 3,4,0\n    lea           r3, [r2*3]\n    COPY4\n    ret\n\nINIT_XMM sse2\ncglobal %1_h264_qpel8_mc00_10, 3,4\n    lea  r3, [r2*3]\n    COPY4\n    lea  r0, [r0+r2*4]\n    lea  r1, [r1+r2*4]\n    COPY4\n    RET\n\ncglobal %1_h264_qpel16_mc00_10, 3,4\n    mov r3d, 8\n.loop:\n    movu           m0, [r1      ]\n    movu           m1, [r1   +16]\n    OP_MOV [r0      ], m0\n    OP_MOV [r0   +16], m1\n    movu           m0, [r1+r2   ]\n    movu           m1, [r1+r2+16]\n    OP_MOV [r0+r2   ], m0\n    OP_MOV [r0+r2+16], m1\n    lea            r0, [r0+r2*2]\n    lea            r1, [r1+r2*2]\n    dec r3d\n    jg .loop\n    RET\n%endmacro\n\n%define OP_MOV mova\nMC00 put\n\n%define OP_MOV AVG_MOV", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:6", "text": ".loop:\n    movu           m0, [r1      ]\n    movu           m1, [r1   +16]\n    OP_MOV [r0      ], m0\n    OP_MOV [r0   +16], m1\n    movu           m0, [r1+r2   ]\n    movu           m1, [r1+r2+16]\n    OP_MOV [r0+r2   ], m0\n    OP_MOV [r0+r2+16], m1\n    lea            r0, [r0+r2*2]\n    lea            r1, [r1+r2*2]\n    dec r3d\n    jg .loop\n    RET\n%endmacro\n\n%define OP_MOV mova\nMC00 put\n\n%define OP_MOV AVG_MOV\nMC00 avg\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc20(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC_CACHE 1\n%define OP_MOV mova\nINIT_MMX mmxext\n%1 put, 4\nINIT_XMM ssse3, cache64\n%1 put, 8\nINIT_XMM sse2\n%1 put, 8\n\n%define OP_MOV AVG_MOV\nINIT_MMX mmxext\n%1 avg, 4\nINIT_XMM ssse3, cache64\n%1 avg, 8\nINIT_XMM sse2\n%1 avg, 8\n%endmacro\n\n%macro MC20 2\ncglobal_mc %1, mc20, %2, 3,4,9\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:7", "text": "%1 avg, 8\n%endmacro\n\n%macro MC20 2\ncglobal_mc %1, mc20, %2, 3,4,9\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5\n    ADDW     m4, [r1+2], m5\n%else ; movu is slow on these processors\n%if mmsize==16\n    movu     m2, [r1-4]\n    movu     m0, [r1+6]\n    mova     m6, m0\n    psrldq   m0, 6\n\n    paddw    m6, m2\n    PALIGNR  m3, m0, m2, 2, m5\n    PALIGNR  m7, m0, m2, 8, m5\n    paddw    m3, m7\n    PALIGNR  m4, m0, m2, 4, m5\n    PALIGNR  m7, m0, m2, 6, m5\n    paddw    m4, m7\n    SWAP      2, 6\n%else\n    movu     m2, [r1-4]\n    movu     m6, [r1+4]\n    PALIGNR  m3, m6, m2, 2, m5\n    paddw    m3, m6\n    PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    dec     r3d\n    jg .nextrow\n    rep ret\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:8", "text": "paddw    m3, m6\n    PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    dec     r3d\n    jg .nextrow\n    rep ret\n%endmacro\n\nMC_CACHE MC20\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc30(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC30 2\ncglobal_mc %1, mc30, %2, 3,5,9\n    lea r4, [r1+2]\n    jmp stub_%1_h264_qpel%2_mc10_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC_CACHE MC30\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc10(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC10 2\ncglobal_mc %1, mc10, %2, 3,5,9\n    mov      r4, r1\n.body:\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5\n    ADDW     m4, [r1+2], m5\n%else ; movu is slow on these processors\n%if mmsize==16\n    movu     m2, [r1-4]\n    movu     m0, [r1+6]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:9", "text": "mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5\n    ADDW     m4, [r1+2], m5\n%else ; movu is slow on these processors\n%if mmsize==16\n    movu     m2, [r1-4]\n    movu     m0, [r1+6]\n    mova     m6, m0\n    psrldq   m0, 6\n\n    paddw    m6, m2\n    PALIGNR  m3, m0, m2, 2, m5\n    PALIGNR  m7, m0, m2, 8, m5\n    paddw    m3, m7\n    PALIGNR  m4, m0, m2, 4, m5\n    PALIGNR  m7, m0, m2, 6, m5\n    paddw    m4, m7\n    SWAP      2, 6\n%else\n    movu     m2, [r1-4]\n    movu     m6, [r1+4]\n    PALIGNR  m3, m6, m2, 2, m5\n    paddw    m3, m6\n    PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    movu     m3, [r4]\n    pavgw    m2, m3\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    add      r4, r2\n    dec     r3d\n    jg .nextrow\n    rep ret\n%endmacro\n\nMC_CACHE MC10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:10", "text": "%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    movu     m3, [r4]\n    pavgw    m2, m3\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    add      r4, r2\n    dec     r3d\n    jg .nextrow\n    rep ret\n%endmacro\n\nMC_CACHE MC10\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc02(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro V_FILT 10\nv_filt%9_%10_10:\n    add    r4, r2\n.no_addr4:\n    FILT_V m0, m1, m2, m3, m4, m5, m6, m7\n    add    r1, r2\n    add    r0, r2\n    ret\n%endmacro\n\nINIT_MMX mmxext\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 4\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 4, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\nINIT_XMM sse2\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 6\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 8, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC02 2\ncglobal_mc %1, mc02, %2, 3,4,8\n    PRELOAD_V\n\n    sub      r0, r2\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10.no_addr4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:11", "text": "%endrep\n\nINIT_XMM sse2\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 6\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 8, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC02 2\ncglobal_mc %1, mc02, %2, 3,4,8\n    PRELOAD_V\n\n    sub      r0, r2\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10.no_addr4\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC02\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc01(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC01 2\ncglobal_mc %1, mc01, %2, 3,5,8\n    mov      r4, r1\n.body:\n    PRELOAD_V\n\n    sub      r4, r2\n    sub      r0, r2\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    movu     m7, [r4]\n    pavgw    m0, m7\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC01\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc03(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC03 2\ncglobal_mc %1, mc03, %2, 3,5,8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:12", "text": "%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    movu     m7, [r4]\n    pavgw    m0, m7\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC01\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc03(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC03 2\ncglobal_mc %1, mc03, %2, 3,5,8\n    lea r4, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc01_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC03\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc11(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro H_FILT_AVG 2-3\nh_filt%1_%2_10:\n;FILT_H with fewer registers and averaged with the FILT_V result\n;m6,m7 are tmp registers, m0 is the FILT_V result, the rest are to be used next in the next iteration\n;unfortunately I need three registers, so m5 will have to be re-read from memory\n    movu     m5, [r4-4]\n    ADDW     m5, [r4+6], m7\n    movu     m6, [r4-2]\n    ADDW     m6, [r4+4], m7\n    paddw    m5, [pw_16]\n    psubw    m5, m6  ; a-b\n    psraw    m5, 2   ; (a-b)/4\n    psubw    m5, m6  ; (a-b)/4-b\n    movu     m6, [r4+0]\n    ADDW     m6, [r4+2], m7\n    paddw    m5, m6  ; (a-b)/4-b+c\n    psraw    m5, 2   ; ((a-b)/4-b+c)/4\n    paddw    m5, m6  ; ((a-b)/4-b+c)/4+c = (a-5*b+20*c)/16\n    psraw    m5, 1\n    CLIPW    m5, [pb_0], [pw_pixel_max]\n;avg FILT_V, FILT_H\n    pavgw    m0, m5\n%if %0!=4\n    movu     m5, [r1+r5]\n%endif\n    ret\n%endmacro\n\nINIT_MMX mmxext\nRESET_MM_PERMUTATION\n%assign i 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:13", "text": "psraw    m5, 2   ; (a-b)/4\n    psubw    m5, m6  ; (a-b)/4-b\n    movu     m6, [r4+0]\n    ADDW     m6, [r4+2], m7\n    paddw    m5, m6  ; (a-b)/4-b+c\n    psraw    m5, 2   ; ((a-b)/4-b+c)/4\n    paddw    m5, m6  ; ((a-b)/4-b+c)/4+c = (a-5*b+20*c)/16\n    psraw    m5, 1\n    CLIPW    m5, [pb_0], [pw_pixel_max]\n;avg FILT_V, FILT_H\n    pavgw    m0, m5\n%if %0!=4\n    movu     m5, [r1+r5]\n%endif\n    ret\n%endmacro\n\nINIT_MMX mmxext\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 3\nH_FILT_AVG 4, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\nH_FILT_AVG 4, i, 0\n\nINIT_XMM sse2\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 6\n%if i==1\nH_FILT_AVG 8, i, 0\n%else\nH_FILT_AVG 8, i\n%endif\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC11 2\n; this REALLY needs x86_64\ncglobal_mc %1, mc11, %2, 3,6,8\n    mov      r4, r1\n.body:\n    PRELOAD_V\n\n    sub      r0, r2\n    sub      r4, r2\n    mov      r5, r2\n    neg      r5\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    call h_filt%2_ %+ i %+ _10\n%if %2==8 && i==1\n    movu     m5, [r1+r5]\n%endif\n    OP_MOV [r0], m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:14", "text": "%macro MC11 2\n; this REALLY needs x86_64\ncglobal_mc %1, mc11, %2, 3,6,8\n    mov      r4, r1\n.body:\n    PRELOAD_V\n\n    sub      r0, r2\n    sub      r4, r2\n    mov      r5, r2\n    neg      r5\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    call h_filt%2_ %+ i %+ _10\n%if %2==8 && i==1\n    movu     m5, [r1+r5]\n%endif\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC11\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc31(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC31 2\ncglobal_mc %1, mc31, %2, 3,6,8\n    mov r4, r1\n    add r1, 2\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC31\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc13(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC13 2\ncglobal_mc %1, mc13, %2, 3,7,12\n    lea r4, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC13\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc33(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC33 2\ncglobal_mc %1, mc33, %2, 3,6,8\n    lea r4, [r1+r2]\n    add r1, 2\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:15", "text": ";-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc13(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC13 2\ncglobal_mc %1, mc13, %2, 3,7,12\n    lea r4, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC13\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc33(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC33 2\ncglobal_mc %1, mc33, %2, 3,6,8\n    lea r4, [r1+r2]\n    add r1, 2\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC33\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc22(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro FILT_H2 3\n    psubw  %1, %2  ; a-b\n    psubw  %2, %3  ; b-c\n    psllw  %2, 2\n    psubw  %1, %2  ; a-5*b+4*c\n    psllw  %3, 4\n    paddw  %1, %3  ; a-5*b+20*c\n%endmacro\n\n%macro FILT_VNRD 8\n    movu     %6, [r1]\n    paddw    %1, %6\n    mova     %7, %2\n    paddw    %7, %5\n    mova     %8, %3\n    paddw    %8, %4\n    FILT_H2  %1, %7, %8\n%endmacro\n\n%macro HV 1\n%if mmsize==16\n%define PAD 12\n%define COUNT 2\n%else\n%define PAD 4\n%define COUNT 3\n%endif\nput_hv%1_10:\n    neg      r2           ; This actually saves instructions\n    lea      r1, [r1+r2*2-mmsize+PAD]\n    lea      r4, [rsp+PAD+gprsize]\n    mov     r3d, COUNT\n.v_loop:\n    movu     m0, [r1]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:16", "text": "mova     %8, %3\n    paddw    %8, %4\n    FILT_H2  %1, %7, %8\n%endmacro\n\n%macro HV 1\n%if mmsize==16\n%define PAD 12\n%define COUNT 2\n%else\n%define PAD 4\n%define COUNT 3\n%endif\nput_hv%1_10:\n    neg      r2           ; This actually saves instructions\n    lea      r1, [r1+r2*2-mmsize+PAD]\n    lea      r4, [rsp+PAD+gprsize]\n    mov     r3d, COUNT\n.v_loop:\n    movu     m0, [r1]\n    sub      r1, r2\n    movu     m1, [r1]\n    sub      r1, r2\n    movu     m2, [r1]\n    sub      r1, r2\n    movu     m3, [r1]\n    sub      r1, r2\n    movu     m4, [r1]\n    sub      r1, r2\n%assign i 0\n%rep %1-1\n    FILT_VNRD m0, m1, m2, m3, m4, m5, m6, m7\n    psubw    m0, [pad20]\n    movu     [r4+i*mmsize*3], m0\n    sub      r1, r2\n    SWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n    FILT_VNRD m0, m1, m2, m3, m4, m5, m6, m7\n    psubw    m0, [pad20]\n    movu     [r4+i*mmsize*3], m0\n    add      r4, mmsize\n    lea      r1, [r1+r2*8+mmsize]\n%if %1==8\n    lea      r1, [r1+r2*4]\n%endif\n    dec      r3d\n    jg .v_loop\n    neg      r2\n    ret\n%endmacro\n\nINIT_MMX mmxext\nHV 4\nINIT_XMM sse2\nHV 8\n\n%macro H_LOOP 1\n%if num_mmregs > 8\n    %define s1 m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:17", "text": "movu     [r4+i*mmsize*3], m0\n    add      r4, mmsize\n    lea      r1, [r1+r2*8+mmsize]\n%if %1==8\n    lea      r1, [r1+r2*4]\n%endif\n    dec      r3d\n    jg .v_loop\n    neg      r2\n    ret\n%endmacro\n\nINIT_MMX mmxext\nHV 4\nINIT_XMM sse2\nHV 8\n\n%macro H_LOOP 1\n%if num_mmregs > 8\n    %define s1 m8\n    %define s2 m9\n    %define s3 m10\n    %define d1 m11\n%else\n    %define s1 [tap1]\n    %define s2 [tap2]\n    %define s3 [tap3]\n    %define d1 [depad]\n%endif\nh%1_loop_op:\n    movu       m1, [r1+mmsize-4]\n    movu       m2, [r1+mmsize-2]\n    mova       m3, [r1+mmsize+0]\n    movu       m4, [r1+mmsize+2]\n    movu       m5, [r1+mmsize+4]\n    movu       m6, [r1+mmsize+6]\n%if num_mmregs > 8\n    pmaddwd    m1, s1\n    pmaddwd    m2, s1\n    pmaddwd    m3, s2\n    pmaddwd    m4, s2\n    pmaddwd    m5, s3\n    pmaddwd    m6, s3\n    paddd      m1, d1\n    paddd      m2, d1\n%else\n    mova       m0, s1\n    pmaddwd    m1, m0\n    pmaddwd    m2, m0\n    mova       m0, s2\n    pmaddwd    m3, m0\n    pmaddwd    m4, m0\n    mova       m0, s3\n    pmaddwd    m5, m0\n    pmaddwd    m6, m0\n    mova       m0, d1\n    paddd      m1, m0\n    paddd      m2, m0\n%endif\n    paddd      m3, m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:18", "text": "pmaddwd    m4, s2\n    pmaddwd    m5, s3\n    pmaddwd    m6, s3\n    paddd      m1, d1\n    paddd      m2, d1\n%else\n    mova       m0, s1\n    pmaddwd    m1, m0\n    pmaddwd    m2, m0\n    mova       m0, s2\n    pmaddwd    m3, m0\n    pmaddwd    m4, m0\n    mova       m0, s3\n    pmaddwd    m5, m0\n    pmaddwd    m6, m0\n    mova       m0, d1\n    paddd      m1, m0\n    paddd      m2, m0\n%endif\n    paddd      m3, m5\n    paddd      m4, m6\n    paddd      m1, m3\n    paddd      m2, m4\n    psrad      m1, 10\n    psrad      m2, 10\n    pslld      m2, 16\n    pand       m1, [pd_65535]\n    por        m1, m2\n%if num_mmregs <= 8\n    pxor       m0, m0\n%endif\n    CLIPW      m1, m0, m7\n    add        r1, mmsize*3\n    ret\n%endmacro\n\nINIT_MMX mmxext\nH_LOOP 4\nINIT_XMM sse2\nH_LOOP 8\n\n%macro MC22 2\ncglobal_mc %1, mc22, %2, 3,7,12\n%define PAD mmsize*8*4*2      ; SIZE*16*4*sizeof(pixel)\n    mov      r6, rsp          ; backup stack pointer\n    and     rsp, ~(mmsize-1)  ; align stack\n    sub     rsp, PAD\n\n    call put_hv%2_10\n\n    mov       r3d, %2\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    pxor       m0, m0\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]\n%endif\n    mov        r1, rsp", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:19", "text": "%macro MC22 2\ncglobal_mc %1, mc22, %2, 3,7,12\n%define PAD mmsize*8*4*2      ; SIZE*16*4*sizeof(pixel)\n    mov      r6, rsp          ; backup stack pointer\n    and     rsp, ~(mmsize-1)  ; align stack\n    sub     rsp, PAD\n\n    call put_hv%2_10\n\n    mov       r3d, %2\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    pxor       m0, m0\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]\n%endif\n    mov        r1, rsp\n.h_loop:\n    call h%2_loop_op\n\n    OP_MOV   [r0], m1\n    add        r0, r2\n    dec       r3d\n    jg .h_loop\n\n    mov     rsp, r6          ; restore stack pointer\n    ret\n%endmacro\n\nMC MC22\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc12(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC12 2\ncglobal_mc %1, mc12, %2, 3,7,12\n%define PAD mmsize*8*4*2        ; SIZE*16*4*sizeof(pixel)\n    mov        r6, rsp          ; backup stack pointer\n    and       rsp, ~(mmsize-1)  ; align stack\n    sub       rsp, PAD\n\n    call put_hv%2_10\n\n    xor       r4d, r4d\n.body:\n    mov       r3d, %2\n    pxor       m0, m0\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]\n%endif\n    mov        r1, rsp\n.h_loop:\n    call h%2_loop_op", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:20", "text": "mov        r6, rsp          ; backup stack pointer\n    and       rsp, ~(mmsize-1)  ; align stack\n    sub       rsp, PAD\n\n    call put_hv%2_10\n\n    xor       r4d, r4d\n.body:\n    mov       r3d, %2\n    pxor       m0, m0\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]\n%endif\n    mov        r1, rsp\n.h_loop:\n    call h%2_loop_op\n\n    movu       m3, [r1+r4-2*mmsize] ; movu needed for mc32, etc\n    paddw      m3, [depad2]\n    psrlw      m3, 5\n    psubw      m3, [unpad]\n    CLIPW      m3, m0, m7\n    pavgw      m1, m3\n\n    OP_MOV   [r0], m1\n    add        r0, r2\n    dec       r3d\n    jg .h_loop\n\n    mov     rsp, r6          ; restore stack pointer\n    ret\n%endmacro\n\nMC MC12\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc32(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC32 2\ncglobal_mc %1, mc32, %2, 3,7,12\n%define PAD mmsize*8*3*2  ; SIZE*16*4*sizeof(pixel)\n    mov  r6, rsp          ; backup stack pointer\n    and rsp, ~(mmsize-1)  ; align stack\n    sub rsp, PAD\n\n    call put_hv%2_10\n\n    mov r4d, 2            ; sizeof(pixel)\n    jmp stub_%1_h264_qpel%2_mc12_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC32\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc21(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:21", "text": "; void ff_h264_qpel_mc32(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC32 2\ncglobal_mc %1, mc32, %2, 3,7,12\n%define PAD mmsize*8*3*2  ; SIZE*16*4*sizeof(pixel)\n    mov  r6, rsp          ; backup stack pointer\n    and rsp, ~(mmsize-1)  ; align stack\n    sub rsp, PAD\n\n    call put_hv%2_10\n\n    mov r4d, 2            ; sizeof(pixel)\n    jmp stub_%1_h264_qpel%2_mc12_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC32\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc21(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro H_NRD 1\nput_h%1_10:\n    add       rsp, gprsize\n    mov       r3d, %1\n    xor       r4d, r4d\n    mova       m6, [pad20]\n.nextrow:\n    movu       m2, [r5-4]\n    movu       m3, [r5-2]\n    movu       m4, [r5+0]\n    ADDW       m2, [r5+6], m5\n    ADDW       m3, [r5+4], m5\n    ADDW       m4, [r5+2], m5\n\n    FILT_H2    m2, m3, m4\n    psubw      m2, m6\n    mova [rsp+r4], m2\n    add       r4d, mmsize*3\n    add        r5, r2\n    dec       r3d\n    jg .nextrow\n    sub       rsp, gprsize\n    ret\n%endmacro\n\nINIT_MMX mmxext\nH_NRD 4\nINIT_XMM sse2\nH_NRD 8\n\n%macro MC21 2\ncglobal_mc %1, mc21, %2, 3,7,12\n    mov   r5, r1\n.body:\n%define PAD mmsize*8*3*2   ; SIZE*16*4*sizeof(pixel)\n    mov   r6, rsp          ; backup stack pointer\n    and  rsp, ~(mmsize-1)  ; align stack\n\n    sub  rsp, PAD\n    call put_h%2_10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:22", "text": "jg .nextrow\n    sub       rsp, gprsize\n    ret\n%endmacro\n\nINIT_MMX mmxext\nH_NRD 4\nINIT_XMM sse2\nH_NRD 8\n\n%macro MC21 2\ncglobal_mc %1, mc21, %2, 3,7,12\n    mov   r5, r1\n.body:\n%define PAD mmsize*8*3*2   ; SIZE*16*4*sizeof(pixel)\n    mov   r6, rsp          ; backup stack pointer\n    and  rsp, ~(mmsize-1)  ; align stack\n\n    sub  rsp, PAD\n    call put_h%2_10\n\n    sub  rsp, PAD\n    call put_hv%2_10\n\n    mov r4d, PAD-mmsize    ; H buffer\n    jmp stub_%1_h264_qpel%2_mc12_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC21\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc23(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC23 2\ncglobal_mc %1, mc23, %2, 3,7,12\n    lea   r5, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc21_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC23", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 841, "line_end": 880}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:6", "text": ".loop:\n    movu           m0, [r1      ]\n    movu           m1, [r1   +16]\n    OP_MOV [r0      ], m0\n    OP_MOV [r0   +16], m1\n    movu           m0, [r1+r2   ]\n    movu           m1, [r1+r2+16]\n    OP_MOV [r0+r2   ], m0\n    OP_MOV [r0+r2+16], m1\n    lea            r0, [r0+r2*2]\n    lea            r1, [r1+r2*2]\n    dec r3d\n    jg .loop\n    RET\n%endmacro\n\n%define OP_MOV mova\nMC00 put\n\n%define OP_MOV AVG_MOV\nMC00 avg\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc20(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC_CACHE 1\n%define OP_MOV mova\nINIT_MMX mmxext\n%1 put, 4\nINIT_XMM sse2, cache64\n%1 put, 8\nINIT_XMM ssse3, cache64\n%1 put, 8\nINIT_XMM sse2\n%1 put, 8\n\n%define OP_MOV AVG_MOV\nINIT_MMX mmxext\n%1 avg, 4\nINIT_XMM sse2, cache64\n%1 avg, 8\nINIT_XMM ssse3, cache64\n%1 avg, 8\nINIT_XMM sse2\n%1 avg, 8\n%endmacro\n\n%macro MC20 2\ncglobal_mc %1, mc20, %2, 3,4,9\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:7", "text": "%1 avg, 8\nINIT_XMM ssse3, cache64\n%1 avg, 8\nINIT_XMM sse2\n%1 avg, 8\n%endmacro\n\n%macro MC20 2\ncglobal_mc %1, mc20, %2, 3,4,9\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5\n    ADDW     m4, [r1+2], m5\n%else ; movu is slow on these processors\n%if mmsize==16\n    movu     m2, [r1-4]\n    movu     m0, [r1+6]\n    mova     m6, m0\n    psrldq   m0, 6\n\n    paddw    m6, m2\n    PALIGNR  m3, m0, m2, 2, m5\n    PALIGNR  m7, m0, m2, 8, m5\n    paddw    m3, m7\n    PALIGNR  m4, m0, m2, 4, m5\n    PALIGNR  m7, m0, m2, 6, m5\n    paddw    m4, m7\n    SWAP      2, 6\n%else\n    movu     m2, [r1-4]\n    movu     m6, [r1+4]\n    PALIGNR  m3, m6, m2, 2, m5\n    paddw    m3, m6\n    PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    dec     r3d", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:8", "text": "%else\n    movu     m2, [r1-4]\n    movu     m6, [r1+4]\n    PALIGNR  m3, m6, m2, 2, m5\n    paddw    m3, m6\n    PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    dec     r3d\n    jg .nextrow\n    rep ret\n%endmacro\n\nMC_CACHE MC20\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc30(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC30 2\ncglobal_mc %1, mc30, %2, 3,5,9\n    lea r4, [r1+2]\n    jmp stub_%1_h264_qpel%2_mc10_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC_CACHE MC30\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc10(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC10 2\ncglobal_mc %1, mc10, %2, 3,5,9\n    mov      r4, r1\n.body:\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5\n    ADDW     m4, [r1+2], m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:9", "text": "%macro MC10 2\ncglobal_mc %1, mc10, %2, 3,5,9\n    mov      r4, r1\n.body:\n    mov     r3d, %2\n    mova     m1, [pw_pixel_max]\n%if num_mmregs > 8\n    mova     m8, [pw_16]\n    %define p16 m8\n%else\n    %define p16 [pw_16]\n%endif\n.nextrow:\n%if %0 == 4\n    movu     m2, [r1-4]\n    movu     m3, [r1-2]\n    movu     m4, [r1+0]\n    ADDW     m2, [r1+6], m5\n    ADDW     m3, [r1+4], m5\n    ADDW     m4, [r1+2], m5\n%else ; movu is slow on these processors\n%if mmsize==16\n    movu     m2, [r1-4]\n    movu     m0, [r1+6]\n    mova     m6, m0\n    psrldq   m0, 6\n\n    paddw    m6, m2\n    PALIGNR  m3, m0, m2, 2, m5\n    PALIGNR  m7, m0, m2, 8, m5\n    paddw    m3, m7\n    PALIGNR  m4, m0, m2, 4, m5\n    PALIGNR  m7, m0, m2, 6, m5\n    paddw    m4, m7\n    SWAP      2, 6\n%else\n    movu     m2, [r1-4]\n    movu     m6, [r1+4]\n    PALIGNR  m3, m6, m2, 2, m5\n    paddw    m3, m6\n    PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    movu     m3, [r4]\n    pavgw    m2, m3\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    add      r4, r2\n    dec     r3d\n    jg .nextrow\n    rep ret", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:10", "text": "PALIGNR  m4, m6, m2, 4, m5\n    PALIGNR  m7, m6, m2, 6, m5\n    paddw    m4, m7\n    paddw    m2, [r1+6]\n%endif\n%endif\n\n    FILT_H   m2, m3, m4, p16\n    psraw    m2, 1\n    pxor     m0, m0\n    CLIPW    m2, m0, m1\n    movu     m3, [r4]\n    pavgw    m2, m3\n    OP_MOV [r0], m2\n    add      r0, r2\n    add      r1, r2\n    add      r4, r2\n    dec     r3d\n    jg .nextrow\n    rep ret\n%endmacro\n\nMC_CACHE MC10\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc02(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro V_FILT 10\nv_filt%9_%10_10:\n    add    r4, r2\n.no_addr4:\n    FILT_V m0, m1, m2, m3, m4, m5, m6, m7\n    add    r1, r2\n    add    r0, r2\n    ret\n%endmacro\n\nINIT_MMX mmxext\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 4\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 4, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\nINIT_XMM sse2\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 6\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 8, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC02 2\ncglobal_mc %1, mc02, %2, 3,4,8\n    PRELOAD_V\n\n    sub      r0, r2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:11", "text": "%rep 4\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 4, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\nINIT_XMM sse2\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 6\nV_FILT m0, m1, m2, m3, m4, m5, m6, m7, 8, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC02 2\ncglobal_mc %1, mc02, %2, 3,4,8\n    PRELOAD_V\n\n    sub      r0, r2\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10.no_addr4\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC02\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc01(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC01 2\ncglobal_mc %1, mc01, %2, 3,5,8\n    mov      r4, r1\n.body:\n    PRELOAD_V\n\n    sub      r4, r2\n    sub      r0, r2\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    movu     m7, [r4]\n    pavgw    m0, m7\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC01\n\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:12", "text": "PRELOAD_V\n\n    sub      r4, r2\n    sub      r0, r2\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    movu     m7, [r4]\n    pavgw    m0, m7\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC01\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc03(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC03 2\ncglobal_mc %1, mc03, %2, 3,5,8\n    lea r4, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc01_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC03\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc11(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro H_FILT_AVG 2-3\nh_filt%1_%2_10:\n;FILT_H with fewer registers and averaged with the FILT_V result\n;m6,m7 are tmp registers, m0 is the FILT_V result, the rest are to be used next in the next iteration\n;unfortunately I need three registers, so m5 will have to be re-read from memory\n    movu     m5, [r4-4]\n    ADDW     m5, [r4+6], m7\n    movu     m6, [r4-2]\n    ADDW     m6, [r4+4], m7\n    paddw    m5, [pw_16]\n    psubw    m5, m6  ; a-b\n    psraw    m5, 2   ; (a-b)/4\n    psubw    m5, m6  ; (a-b)/4-b\n    movu     m6, [r4+0]\n    ADDW     m6, [r4+2], m7\n    paddw    m5, m6  ; (a-b)/4-b+c\n    psraw    m5, 2   ; ((a-b)/4-b+c)/4\n    paddw    m5, m6  ; ((a-b)/4-b+c)/4+c = (a-5*b+20*c)/16\n    psraw    m5, 1\n    CLIPW    m5, [pb_0], [pw_pixel_max]\n;avg FILT_V, FILT_H\n    pavgw    m0, m5\n%if %0!=4\n    movu     m5, [r1+r5]\n%endif\n    ret\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:13", "text": "movu     m6, [r4-2]\n    ADDW     m6, [r4+4], m7\n    paddw    m5, [pw_16]\n    psubw    m5, m6  ; a-b\n    psraw    m5, 2   ; (a-b)/4\n    psubw    m5, m6  ; (a-b)/4-b\n    movu     m6, [r4+0]\n    ADDW     m6, [r4+2], m7\n    paddw    m5, m6  ; (a-b)/4-b+c\n    psraw    m5, 2   ; ((a-b)/4-b+c)/4\n    paddw    m5, m6  ; ((a-b)/4-b+c)/4+c = (a-5*b+20*c)/16\n    psraw    m5, 1\n    CLIPW    m5, [pb_0], [pw_pixel_max]\n;avg FILT_V, FILT_H\n    pavgw    m0, m5\n%if %0!=4\n    movu     m5, [r1+r5]\n%endif\n    ret\n%endmacro\n\nINIT_MMX mmxext\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 3\nH_FILT_AVG 4, i\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\nH_FILT_AVG 4, i, 0\n\nINIT_XMM sse2\nRESET_MM_PERMUTATION\n%assign i 0\n%rep 6\n%if i==1\nH_FILT_AVG 8, i, 0\n%else\nH_FILT_AVG 8, i\n%endif\nSWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC11 2\n; this REALLY needs x86_64\ncglobal_mc %1, mc11, %2, 3,6,8\n    mov      r4, r1\n.body:\n    PRELOAD_V\n\n    sub      r0, r2\n    sub      r4, r2\n    mov      r5, r2\n    neg      r5\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    call h_filt%2_ %+ i %+ _10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:14", "text": "SWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n\n%macro MC11 2\n; this REALLY needs x86_64\ncglobal_mc %1, mc11, %2, 3,6,8\n    mov      r4, r1\n.body:\n    PRELOAD_V\n\n    sub      r0, r2\n    sub      r4, r2\n    mov      r5, r2\n    neg      r5\n%assign j 0\n%rep %2\n    %assign i (j % 6)\n    call v_filt%2_ %+ i %+ _10\n    call h_filt%2_ %+ i %+ _10\n%if %2==8 && i==1\n    movu     m5, [r1+r5]\n%endif\n    OP_MOV [r0], m0\n    SWAP 0,1,2,3,4,5\n    %assign j j+1\n%endrep\n    ret\n%endmacro\n\nMC MC11\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc31(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC31 2\ncglobal_mc %1, mc31, %2, 3,6,8\n    mov r4, r1\n    add r1, 2\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC31\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc13(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC13 2\ncglobal_mc %1, mc13, %2, 3,7,12\n    lea r4, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC13\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc33(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC33 2\ncglobal_mc %1, mc33, %2, 3,6,8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:15", "text": "%endmacro\n\nMC MC31\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc13(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC13 2\ncglobal_mc %1, mc13, %2, 3,7,12\n    lea r4, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC13\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc33(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC33 2\ncglobal_mc %1, mc33, %2, 3,6,8\n    lea r4, [r1+r2]\n    add r1, 2\n    jmp stub_%1_h264_qpel%2_mc11_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC33\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc22(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro FILT_H2 3\n    psubw  %1, %2  ; a-b\n    psubw  %2, %3  ; b-c\n    psllw  %2, 2\n    psubw  %1, %2  ; a-5*b+4*c\n    psllw  %3, 4\n    paddw  %1, %3  ; a-5*b+20*c\n%endmacro\n\n%macro FILT_VNRD 8\n    movu     %6, [r1]\n    paddw    %1, %6\n    mova     %7, %2\n    paddw    %7, %5\n    mova     %8, %3\n    paddw    %8, %4\n    FILT_H2  %1, %7, %8\n%endmacro\n\n%macro HV 1\n%if mmsize==16\n%define PAD 12\n%define COUNT 2\n%else\n%define PAD 4\n%define COUNT 3\n%endif\nput_hv%1_10:\n    neg      r2           ; This actually saves instructions\n    lea      r1, [r1+r2*2-mmsize+PAD]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:16", "text": "movu     %6, [r1]\n    paddw    %1, %6\n    mova     %7, %2\n    paddw    %7, %5\n    mova     %8, %3\n    paddw    %8, %4\n    FILT_H2  %1, %7, %8\n%endmacro\n\n%macro HV 1\n%if mmsize==16\n%define PAD 12\n%define COUNT 2\n%else\n%define PAD 4\n%define COUNT 3\n%endif\nput_hv%1_10:\n    neg      r2           ; This actually saves instructions\n    lea      r1, [r1+r2*2-mmsize+PAD]\n    lea      r4, [rsp+PAD+gprsize]\n    mov     r3d, COUNT\n.v_loop:\n    movu     m0, [r1]\n    sub      r1, r2\n    movu     m1, [r1]\n    sub      r1, r2\n    movu     m2, [r1]\n    sub      r1, r2\n    movu     m3, [r1]\n    sub      r1, r2\n    movu     m4, [r1]\n    sub      r1, r2\n%assign i 0\n%rep %1-1\n    FILT_VNRD m0, m1, m2, m3, m4, m5, m6, m7\n    psubw    m0, [pad20]\n    movu     [r4+i*mmsize*3], m0\n    sub      r1, r2\n    SWAP 0,1,2,3,4,5\n%assign i i+1\n%endrep\n    FILT_VNRD m0, m1, m2, m3, m4, m5, m6, m7\n    psubw    m0, [pad20]\n    movu     [r4+i*mmsize*3], m0\n    add      r4, mmsize\n    lea      r1, [r1+r2*8+mmsize]\n%if %1==8\n    lea      r1, [r1+r2*4]\n%endif\n    dec      r3d\n    jg .v_loop\n    neg      r2\n    ret\n%endmacro\n\nINIT_MMX mmxext\nHV 4\nINIT_XMM sse2\nHV 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:17", "text": "%assign i i+1\n%endrep\n    FILT_VNRD m0, m1, m2, m3, m4, m5, m6, m7\n    psubw    m0, [pad20]\n    movu     [r4+i*mmsize*3], m0\n    add      r4, mmsize\n    lea      r1, [r1+r2*8+mmsize]\n%if %1==8\n    lea      r1, [r1+r2*4]\n%endif\n    dec      r3d\n    jg .v_loop\n    neg      r2\n    ret\n%endmacro\n\nINIT_MMX mmxext\nHV 4\nINIT_XMM sse2\nHV 8\n\n%macro H_LOOP 1\n%if num_mmregs > 8\n    %define s1 m8\n    %define s2 m9\n    %define s3 m10\n    %define d1 m11\n%else\n    %define s1 [tap1]\n    %define s2 [tap2]\n    %define s3 [tap3]\n    %define d1 [depad]\n%endif\nh%1_loop_op:\n    movu       m1, [r1+mmsize-4]\n    movu       m2, [r1+mmsize-2]\n    mova       m3, [r1+mmsize+0]\n    movu       m4, [r1+mmsize+2]\n    movu       m5, [r1+mmsize+4]\n    movu       m6, [r1+mmsize+6]\n%if num_mmregs > 8\n    pmaddwd    m1, s1\n    pmaddwd    m2, s1\n    pmaddwd    m3, s2\n    pmaddwd    m4, s2\n    pmaddwd    m5, s3\n    pmaddwd    m6, s3\n    paddd      m1, d1\n    paddd      m2, d1\n%else\n    mova       m0, s1\n    pmaddwd    m1, m0\n    pmaddwd    m2, m0\n    mova       m0, s2\n    pmaddwd    m3, m0\n    pmaddwd    m4, m0\n    mova       m0, s3\n    pmaddwd    m5, m0\n    pmaddwd    m6, m0\n    mova       m0, d1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:18", "text": "%if num_mmregs > 8\n    pmaddwd    m1, s1\n    pmaddwd    m2, s1\n    pmaddwd    m3, s2\n    pmaddwd    m4, s2\n    pmaddwd    m5, s3\n    pmaddwd    m6, s3\n    paddd      m1, d1\n    paddd      m2, d1\n%else\n    mova       m0, s1\n    pmaddwd    m1, m0\n    pmaddwd    m2, m0\n    mova       m0, s2\n    pmaddwd    m3, m0\n    pmaddwd    m4, m0\n    mova       m0, s3\n    pmaddwd    m5, m0\n    pmaddwd    m6, m0\n    mova       m0, d1\n    paddd      m1, m0\n    paddd      m2, m0\n%endif\n    paddd      m3, m5\n    paddd      m4, m6\n    paddd      m1, m3\n    paddd      m2, m4\n    psrad      m1, 10\n    psrad      m2, 10\n    pslld      m2, 16\n    pand       m1, [pd_65535]\n    por        m1, m2\n%if num_mmregs <= 8\n    pxor       m0, m0\n%endif\n    CLIPW      m1, m0, m7\n    add        r1, mmsize*3\n    ret\n%endmacro\n\nINIT_MMX mmxext\nH_LOOP 4\nINIT_XMM sse2\nH_LOOP 8\n\n%macro MC22 2\ncglobal_mc %1, mc22, %2, 3,7,12\n%define PAD mmsize*8*4*2      ; SIZE*16*4*sizeof(pixel)\n    mov      r6, rsp          ; backup stack pointer\n    and     rsp, ~(mmsize-1)  ; align stack\n    sub     rsp, PAD\n\n    call put_hv%2_10\n\n    mov       r3d, %2\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    pxor       m0, m0\n    mova       m8, [tap1]\n    mova       m9, [tap2]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:19", "text": "INIT_MMX mmxext\nH_LOOP 4\nINIT_XMM sse2\nH_LOOP 8\n\n%macro MC22 2\ncglobal_mc %1, mc22, %2, 3,7,12\n%define PAD mmsize*8*4*2      ; SIZE*16*4*sizeof(pixel)\n    mov      r6, rsp          ; backup stack pointer\n    and     rsp, ~(mmsize-1)  ; align stack\n    sub     rsp, PAD\n\n    call put_hv%2_10\n\n    mov       r3d, %2\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    pxor       m0, m0\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]\n%endif\n    mov        r1, rsp\n.h_loop:\n    call h%2_loop_op\n\n    OP_MOV   [r0], m1\n    add        r0, r2\n    dec       r3d\n    jg .h_loop\n\n    mov     rsp, r6          ; restore stack pointer\n    ret\n%endmacro\n\nMC MC22\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc12(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC12 2\ncglobal_mc %1, mc12, %2, 3,7,12\n%define PAD mmsize*8*4*2        ; SIZE*16*4*sizeof(pixel)\n    mov        r6, rsp          ; backup stack pointer\n    and       rsp, ~(mmsize-1)  ; align stack\n    sub       rsp, PAD\n\n    call put_hv%2_10\n\n    xor       r4d, r4d\n.body:\n    mov       r3d, %2\n    pxor       m0, m0\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:20", "text": ";-----------------------------------------------------------------------------\n%macro MC12 2\ncglobal_mc %1, mc12, %2, 3,7,12\n%define PAD mmsize*8*4*2        ; SIZE*16*4*sizeof(pixel)\n    mov        r6, rsp          ; backup stack pointer\n    and       rsp, ~(mmsize-1)  ; align stack\n    sub       rsp, PAD\n\n    call put_hv%2_10\n\n    xor       r4d, r4d\n.body:\n    mov       r3d, %2\n    pxor       m0, m0\n    mova       m7, [pw_pixel_max]\n%if num_mmregs > 8\n    mova       m8, [tap1]\n    mova       m9, [tap2]\n    mova      m10, [tap3]\n    mova      m11, [depad]\n%endif\n    mov        r1, rsp\n.h_loop:\n    call h%2_loop_op\n\n    movu       m3, [r1+r4-2*mmsize] ; movu needed for mc32, etc\n    paddw      m3, [depad2]\n    psrlw      m3, 5\n    psubw      m3, [unpad]\n    CLIPW      m3, m0, m7\n    pavgw      m1, m3\n\n    OP_MOV   [r0], m1\n    add        r0, r2\n    dec       r3d\n    jg .h_loop\n\n    mov     rsp, r6          ; restore stack pointer\n    ret\n%endmacro\n\nMC MC12\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc32(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC32 2\ncglobal_mc %1, mc32, %2, 3,7,12\n%define PAD mmsize*8*3*2  ; SIZE*16*4*sizeof(pixel)\n    mov  r6, rsp          ; backup stack pointer\n    and rsp, ~(mmsize-1)  ; align stack\n    sub rsp, PAD\n\n    call put_hv%2_10\n\n    mov r4d, 2            ; sizeof(pixel)\n    jmp stub_%1_h264_qpel%2_mc12_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC32", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:21", "text": "MC MC12\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc32(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC32 2\ncglobal_mc %1, mc32, %2, 3,7,12\n%define PAD mmsize*8*3*2  ; SIZE*16*4*sizeof(pixel)\n    mov  r6, rsp          ; backup stack pointer\n    and rsp, ~(mmsize-1)  ; align stack\n    sub rsp, PAD\n\n    call put_hv%2_10\n\n    mov r4d, 2            ; sizeof(pixel)\n    jmp stub_%1_h264_qpel%2_mc12_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC32\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc21(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro H_NRD 1\nput_h%1_10:\n    add       rsp, gprsize\n    mov       r3d, %1\n    xor       r4d, r4d\n    mova       m6, [pad20]\n.nextrow:\n    movu       m2, [r5-4]\n    movu       m3, [r5-2]\n    movu       m4, [r5+0]\n    ADDW       m2, [r5+6], m5\n    ADDW       m3, [r5+4], m5\n    ADDW       m4, [r5+2], m5\n\n    FILT_H2    m2, m3, m4\n    psubw      m2, m6\n    mova [rsp+r4], m2\n    add       r4d, mmsize*3\n    add        r5, r2\n    dec       r3d\n    jg .nextrow\n    sub       rsp, gprsize\n    ret\n%endmacro\n\nINIT_MMX mmxext\nH_NRD 4\nINIT_XMM sse2\nH_NRD 8\n\n%macro MC21 2\ncglobal_mc %1, mc21, %2, 3,7,12\n    mov   r5, r1\n.body:\n%define PAD mmsize*8*3*2   ; SIZE*16*4*sizeof(pixel)\n    mov   r6, rsp          ; backup stack pointer", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_10bit.asm:22", "text": "mova [rsp+r4], m2\n    add       r4d, mmsize*3\n    add        r5, r2\n    dec       r3d\n    jg .nextrow\n    sub       rsp, gprsize\n    ret\n%endmacro\n\nINIT_MMX mmxext\nH_NRD 4\nINIT_XMM sse2\nH_NRD 8\n\n%macro MC21 2\ncglobal_mc %1, mc21, %2, 3,7,12\n    mov   r5, r1\n.body:\n%define PAD mmsize*8*3*2   ; SIZE*16*4*sizeof(pixel)\n    mov   r6, rsp          ; backup stack pointer\n    and  rsp, ~(mmsize-1)  ; align stack\n\n    sub  rsp, PAD\n    call put_h%2_10\n\n    sub  rsp, PAD\n    call put_hv%2_10\n\n    mov r4d, PAD-mmsize    ; H buffer\n    jmp stub_%1_h264_qpel%2_mc12_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC21\n\n;-----------------------------------------------------------------------------\n; void ff_h264_qpel_mc23(uint8_t *dst, uint8_t *src, int stride)\n;-----------------------------------------------------------------------------\n%macro MC23 2\ncglobal_mc %1, mc23, %2, 3,7,12\n    lea   r5, [r1+r2]\n    jmp stub_%1_h264_qpel%2_mc21_10 %+ SUFFIX %+ .body\n%endmacro\n\nMC MC23", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_10bit.asm", "line_start": 841, "line_end": 884}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/SSSE3-optimized H.264 QPEL code\n;*****************************************************************************\n;* Copyright (c) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2012 Daniel Kang\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_16\ncextern pw_5\ncextern pb_0\n\nSECTION .text\n\n; void ff_avg_pixels4_mmxext(uint8_t *block, const uint8_t *pixels,\n;                            ptrdiff_t line_size)\nINIT_MMX mmxext\ncglobal avg_pixels4, 3,4\n    lea          r3, [r2*3]\n    movh         m0, [r1]\n    movh         m1, [r1+r2]\n    movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r3]\n    movh       [r0], m0\n    movh    [r0+r2], m1\n    movh  [r0+r2*2], m2\n    movh    [r0+r3], m3\n    RET\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:2", "text": "movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r3]\n    movh       [r0], m0\n    movh    [r0+r2], m1\n    movh  [r0+r2*2], m2\n    movh    [r0+r3], m3\n    RET\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4x4_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4x4_l2, 4,4\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    lea          r1, [r1+2*r3]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    pxor          m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:3", "text": "pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r4d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:4", "text": "psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:5", "text": "psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg\n\n\n%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:6", "text": "punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,6 ; dst, src, src2, dstStride, srcStride\n    mova          m3, [pw_16]\n    mov          r5d, 8\n    pxor          m5, m5\n    mova          m4, [pw_5]\n.loop:\n    movh          m0, [r1]\n    movh          m1, [r1+1]\n    punpcklbw     m0, m5\n    punpcklbw     m1, m5\n    paddw         m0, m1\n    psllw         m0, 2\n    movh          m1, [r1-1]\n    movh          m2, [r1+2]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m1, m2\n    psubw         m0, m1\n    pmullw        m0, m4\n    movh          m1, [r1-2]\n    movh          m2, [r1+3]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m0, m1\n    paddw         m0, m2\n    paddw         m0, m3\n    psraw         m0, 5\n    packuswb      m0, m5\n    movh          m2, [r2]\n    pavgb         m0, m2\n    op_%1h        m0, [r0], m2\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m1, m2\n    psubw         m0, m1\n    pmullw        m0, m4\n    movh          m1, [r1-2]\n    movh          m2, [r1+3]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m0, m1\n    paddw         m0, m2\n    paddw         m0, m3\n    psraw         m0, 5\n    packuswb      m0, m5\n    movh          m2, [r2]\n    pavgb         m0, m2\n    op_%1h        m0, [r0], m2\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL16_H_LOWPASS_L2 1\n%if ARCH_X86_64\ncglobal %1_h264_qpel16_h_lowpass_l2, 5,6,9 ; dst, src, src2, dstStride, srcStride\n    mova          m8, [pw_16]\n%define PW_16 m8\n%else\ncglobal %1_h264_qpel16_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, srcStride\n%define PW_16 [pw_16]\n%endif\n    mov          r5d, 16\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m0, [r1]\n    movu          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpcklbw     m2, m7\n    punpckhbw     m1, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    movu          m2, [r1-1]\n    movu          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m0, [r1]\n    movu          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpcklbw     m2, m7\n    punpckhbw     m1, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    movu          m2, [r1-1]\n    movu          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpcklbw     m4, m7\n    punpckhbw     m3, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m3, m5\n    psubw         m0, m2\n    psubw         m1, m3\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movu          m2, [r1-2]\n    movu          m4, [r1+3]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpcklbw     m4, m7\n    punpckhbw     m3, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m3, m5\n    paddw         m0, m2\n    paddw         m1, m3\n    paddw         m0, PW_16\n    paddw         m1, PW_16\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    movu          m4, [r2]\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL16_H_LOWPASS_L2 put\nQPEL16_H_LOWPASS_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:9", "text": "paddw         m1, m3\n    paddw         m0, PW_16\n    paddw         m1, PW_16\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    movu          m4, [r2]\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL16_H_LOWPASS_L2 put\nQPEL16_H_LOWPASS_L2 avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1-2\n%ifnidn %2, last\n    mova      m6, m2\n%else\n    SWAP       6, 2\n%endif\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n%ifnidn %2, last\n    add       r0, r2\n%endif\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n%ifnidn %2, last\n    add       r0, r2\n%endif\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1, last\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "INIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1, last\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1-2 ; offset, last\n%ifnidn %2, last\n    mova           m6, m2\n%else\n    SWAP            2, 6\n%endif\n    movh           m5, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "FILT_V        %1\n    FILT_V        %1, last\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1-2 ; offset, last\n%ifnidn %2, last\n    mova           m6, m2\n%else\n    SWAP            2, 6\n%endif\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n%ifnidn %2, last\n    add            r0, r2\n%endif\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\nINIT_MMX mmxext\ncglobal put_h264_qpel4_hv_lowpass_v, 3,5 ; src, tmp, srcStride\n    mov          r4d, 3\n    mov           r3, r0\n    pxor          m7, m7\n.loop:\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24, last\n    add           r3, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "pxor          m7, m7\n.loop:\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24, last\n    add           r3, 4\n    add           r1, 8\n    mov           r0, r3\n    dec          r4d\n    jnz        .loop\n    RET\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48, last\n.end:\n    RET\n\n%macro HV2_LOWPASS 2\n    mova          %1, [r1+%2]\n    movu          m1, [r1+2+%2]\n    movu          m3, [r1+10+%2]\n    movu          m4, [r1+8+%2]\n    movu          m2, [r1+4+%2]\n    paddw         %1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48, last\n.end:\n    RET\n\n%macro HV2_LOWPASS 2\n    mova          %1, [r1+%2]\n    movu          m1, [r1+2+%2]\n    movu          m3, [r1+10+%2]\n    movu          m4, [r1+8+%2]\n    movu          m2, [r1+4+%2]\n    paddw         %1, m3\n    movu          m3, [r1+6+%2]\n    paddw         m1, m4\n    psubw         %1, m1\n    psraw         %1, 2\n    paddw         m2, m3\n    psubw         %1, m1\n    paddsw        %1, m2\n    psraw         %1, 2\n    paddw         %1, m2\n    psraw         %1, 6\n%endmacro\n\n%macro QPEL8AND16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    HV2_LOWPASS   m0, 0\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m3\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    HV2_LOWPASS   m0, 0\n    HV2_LOWPASS   m5, 16\n    packuswb      m0, m5\n    op_%1         m0, [r0], m3\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    HV2_LOWPASS   m0, 0\n    HV2_LOWPASS   m5, 16\n    packuswb      m0, m5\n    op_%1         m0, [r0], m3\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8AND16_HV2_LOWPASS_OP put\nQPEL8AND16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "cglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:23", "text": "paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 881, "line_end": 904}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:2", "text": "movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r3]\n    movh       [r0], m0\n    movh    [r0+r2], m1\n    movh  [r0+r2*2], m2\n    movh    [r0+r3], m3\n    RET\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 4,4\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    lea          r1, [r1+2*r3]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    pxor          m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3049694e9f51d883c54c2c5500c8fd9d388536f9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3049694e9f51d883c54c2c5500c8fd9d388536f9/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48, last\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4,6 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    movu          m1, [r1+2]\n    movu          m3, [r1+10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48, last\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4,6 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    movu          m1, [r1+2]\n    movu          m3, [r1+10]\n    movu          m4, [r1+8]\n    movu          m2, [r1+4]\n    movu          m5, [r1+6]\n    paddw         m0, m3\n    paddw         m1, m4\n    psubw         m0, m1\n    psraw         m0, 2\n    paddw         m2, m5\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "3ed590c7b9fb0663903a2927f713bec8ad0232b6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ed590c7b9fb0663903a2927f713bec8ad0232b6/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 887}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48, last\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48, last\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 897}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:23", "text": "psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "617c042093129758a53b01e6fc400356d8f4e566", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/617c042093129758a53b01e6fc400356d8f4e566/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 881, "line_end": 897}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "INIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\nINIT_MMX mmxext\ncglobal put_h264_qpel4_hv_lowpass_v, 3,5 ; src, tmp, srcStride\n    mov          r4d, 3\n    mov           r3, r0\n    pxor          m7, m7\n.loop:\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    add           r3, 4\n    add           r1, 8\n    mov           r0, r3\n    dec          r4d\n    jnz        .loop\n    RET\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    add           r3, 4\n    add           r1, 8\n    mov           r0, r3\n    dec          r4d\n    jnz        .loop\n    RET\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "INIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "INIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "INIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "29f439077a1b7a0a93832fdaefddcc0b7577c5e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/29f439077a1b7a0a93832fdaefddcc0b7577c5e7/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 885}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "INIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\nINIT_MMX mmxext\ncglobal put_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": ".loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4539f7e4d4953fbf2086cac0e54575627f7df1e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4539f7e4d4953fbf2086cac0e54575627f7df1e8/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 877}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "INIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m5\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "INIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "15a4289b79d8c2e2453921544f7983248ef498bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15a4289b79d8c2e2453921544f7983248ef498bd/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 876}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n%endif\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "%endif\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "8fad52bd57d5bcedce8dc4ae3166c1a50f895690", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fad52bd57d5bcedce8dc4ae3166c1a50f895690/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 880}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:2", "text": "movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n    pavgb        m2, [r0+r2*2]\n    pavgb        m3, [r0+r3]\n    movh       [r0], m0\n    movh    [r0+r2], m1\n    movh  [r0+r2*2], m2\n    movh    [r0+r3], m3\n    RET\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 4,4\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    lea          r1, [r1+2*r3]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:3", "text": "pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r4d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:4", "text": "paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:5", "text": "palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg\n\n\n%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:6", "text": "punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m3, [pw_16]\n    mov          r5d, 8\n    pxor          m5, m5\n    mova          m4, [pw_5]\n.loop:\n    movh          m0, [r1]\n    movh          m1, [r1+1]\n    punpcklbw     m0, m5\n    punpcklbw     m1, m5\n    paddw         m0, m1\n    psllw         m0, 2\n    movh          m1, [r1-1]\n    movh          m2, [r1+2]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m1, m2\n    psubw         m0, m1\n    pmullw        m0, m4\n    movh          m1, [r1-2]\n    movh          m2, [r1+3]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m0, m1\n    paddw         m0, m2\n    paddw         m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "movh          m0, [r1]\n    movh          m1, [r1+1]\n    punpcklbw     m0, m5\n    punpcklbw     m1, m5\n    paddw         m0, m1\n    psllw         m0, 2\n    movh          m1, [r1-1]\n    movh          m2, [r1+2]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m1, m2\n    psubw         m0, m1\n    pmullw        m0, m4\n    movh          m1, [r1-2]\n    movh          m2, [r1+3]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m0, m1\n    paddw         m0, m2\n    paddw         m0, m3\n    psraw         m0, 5\n    packuswb      m0, m5\n    movh          m2, [r2]\n    pavgb         m0, m2\n    op_%1h        m0, [r0], m2\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL16_H_LOWPASS_L2 1\n%if ARCH_X86_64\ncglobal %1_h264_qpel16_h_lowpass_l2, 5,6,9 ; dst, src, src2, dstStride, srcStride\n    mova          m8, [pw_16]\n%define PW_16 m8\n%else\ncglobal %1_h264_qpel16_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, srcStride\n%define PW_16 [pw_16]\n%endif\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m0, [r1]\n    movu          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpcklbw     m2, m7\n    punpckhbw     m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "cglobal %1_h264_qpel16_h_lowpass_l2, 5,6,9 ; dst, src, src2, dstStride, srcStride\n    mova          m8, [pw_16]\n%define PW_16 m8\n%else\ncglobal %1_h264_qpel16_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, srcStride\n%define PW_16 [pw_16]\n%endif\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m0, [r1]\n    movu          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpcklbw     m2, m7\n    punpckhbw     m1, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    movu          m2, [r1-1]\n    movu          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpcklbw     m4, m7\n    punpckhbw     m3, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m3, m5\n    psubw         m0, m2\n    psubw         m1, m3\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movu          m2, [r1-2]\n    movu          m4, [r1+3]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpcklbw     m4, m7\n    punpckhbw     m3, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m3, m5\n    paddw         m0, m2\n    paddw         m1, m3\n    paddw         m0, PW_16\n    paddw         m1, PW_16\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    movu          m4, [r2]\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:9", "text": "movu          m4, [r1+3]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpcklbw     m4, m7\n    punpckhbw     m3, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m3, m5\n    paddw         m0, m2\n    paddw         m1, m3\n    paddw         m0, PW_16\n    paddw         m1, PW_16\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    movu          m4, [r2]\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL16_H_LOWPASS_L2 put\nQPEL16_H_LOWPASS_L2 avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n%endif\n    movsxdifnidn  r2, r2d\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 5, 5, 3 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+48]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    pavgb         m0, [r2]\n    pshufd        m1, m0, 0xee ; low half of m1 is high half of m0\n    op_%1h        m0, [r0], m2\n    op_%1h        m1, [r0+r3], m2\n    add           r1, 48*2\n    add           r2, 8*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\n%macro PIXELS16_L2_SHIFT5 2\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\nPIXELS16_L2_SHIFT5 put, 16\nPIXELS16_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:23", "text": "psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "697da64c8eb208d33cd529d0d46bcabe25249759", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/697da64c8eb208d33cd529d0d46bcabe25249759/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 881, "line_end": 907}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "cd077e88d1ba20418a81187159f14ee74f4a6f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd077e88d1ba20418a81187159f14ee74f4a6f64/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "cd077e88d1ba20418a81187159f14ee74f4a6f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd077e88d1ba20418a81187159f14ee74f4a6f64/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "cd077e88d1ba20418a81187159f14ee74f4a6f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd077e88d1ba20418a81187159f14ee74f4a6f64/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 891}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:23", "text": "add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "cd077e88d1ba20418a81187159f14ee74f4a6f64", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd077e88d1ba20418a81187159f14ee74f4a6f64/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 881, "line_end": 891}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "movh          m0, [r1]\n    movh          m1, [r1+1]\n    punpcklbw     m0, m5\n    punpcklbw     m1, m5\n    paddw         m0, m1\n    psllw         m0, 2\n    movh          m1, [r1-1]\n    movh          m2, [r1+2]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m1, m2\n    psubw         m0, m1\n    pmullw        m0, m4\n    movh          m1, [r1-2]\n    movh          m2, [r1+3]\n    punpcklbw     m1, m5\n    punpcklbw     m2, m5\n    paddw         m0, m1\n    paddw         m0, m2\n    paddw         m0, m3\n    psraw         m0, 5\n    packuswb      m0, m5\n    movh          m2, [r2]\n    pavgb         m0, m2\n    op_%1h        m0, [r0], m2\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:9", "text": "INIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\nINIT_XMM sse2\ncglobal put_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n%endif\n    movsxdifnidn  r2, r2d\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "4880fa4dcaa8e38f6b99aaf4f771fd91b78de732", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4880fa4dcaa8e38f6b99aaf4f771fd91b78de732/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\n%if cpuflag(sse2)\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n%endif\n    movsxdifnidn  r2, r2d\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": ".loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "35aaf697e9c8c238ea2a1e0abf39e19833bd0652", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/35aaf697e9c8c238ea2a1e0abf39e19833bd0652/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 828}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:6", "text": "punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    mova          m0, [r1]\n    mova          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "mova          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4\n    psraw         m0, 5\n    psraw         m1, 5\n    mova          m4, [r2]\n    packuswb      m0, m1\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:9", "text": "movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\n%if cpuflag(sse2)\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "QPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "INIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n%endif\n    movsxdifnidn  r2, r2d\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\n%ifidn %1, avg\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,7 ; dst, tmp, dstStride\n%else\ncglobal %1_h264_qpel8_hv2_lowpass, 3,4,6 ; dst, tmp, dstStride\n%endif\n    movsxdifnidn  r2, r2d\n    mov          r3d, 8\n.loop:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "op_%1h        m0, [r0], m6\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n\ncglobal %1_h264_qpel16_hv2_lowpass, 3,4,8 ; dst, tmp, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 16\n.loop:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "fa9ea5113b48904daef9df6a282bd9c04c32258d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fa9ea5113b48904daef9df6a282bd9c04c32258d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "INIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 4,4 ; dst, tmp, dstStride, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 4,4,8 ; dst, tmp, dstStride, size\n    movsxdifnidn  r2, r2d\n    cmp          r3d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "dec          r3d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 4,4,8 ; dst, tmp, dstStride, size\n    movsxdifnidn  r2, r2d\n    cmp          r3d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "dec          r3d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r3d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "400203c00c3b5c766d2c3f79c72d644d3d38ee55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/400203c00c3b5c766d2c3f79c72d644d3d38ee55/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 839}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "QPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\n; unused is to match ssse3 and mmxext args\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 5,5 ; dst, tmp, dstStride, unused, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "INIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\n; unused is to match ssse3 and mmxext args\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 5,5 ; dst, tmp, dstStride, unused, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 5,5,8 ; dst, tmp, dstStride, tmpStride, size\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    cmp          r4d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 5,5,8 ; dst, tmp, dstStride, tmpStride, size\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    cmp          r4d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,4,4 ; dst, src16, src8, dstStride\n    movsxdifnidn  r3, r3d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2+2*4]\n    pavgb         m1, [r2+3*4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 5, 5, 4 ; dst, src16, src8, dstStride\n%else\ncglobal %1_pixels%2_l2_shift5, 5, 5 ; dst, src16, src8, dstStride\n%endif\n    movsxdifnidn  r3, r3d\n    mov          r4d, %2\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+%2]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*%2]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "sub          r4d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "b84c818c835f15710c21fd52f15c795ba8dc2afe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b84c818c835f15710c21fd52f15c795ba8dc2afe/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 841}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r2, [r2+r4*2]\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 6, 6, 4 ; dst, src16, src8, dstStride, src8Stride, h\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "810bd3e62a4935683f2299dc4ebce2fb05c0d764", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/810bd3e62a4935683f2299dc4ebce2fb05c0d764/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS_L2_SHIFT5 2\n%if cpuflag(sse2)\ncglobal %1_pixels%2_l2_shift5, 6, 6, 4 ; dst, src16, src8, dstStride, src8Stride, h\n%else\ncglobal %1_pixels%2_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n%endif\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    movu          m0, [r1]\n    movu          m1, [r1+%2]\n    movu          m2, [r1+48]\n    movu          m3, [r1+48+%2]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m1\n    op_%1         m2, [r0+r3], m1\n    lea           r2, [r2+2*r4]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "810bd3e62a4935683f2299dc4ebce2fb05c0d764", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/810bd3e62a4935683f2299dc4ebce2fb05c0d764/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2_SHIFT5 put, 8\nPIXELS_L2_SHIFT5 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2_SHIFT5 put, 16\nPIXELS_L2_SHIFT5 avg, 16\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "810bd3e62a4935683f2299dc4ebce2fb05c0d764", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/810bd3e62a4935683f2299dc4ebce2fb05c0d764/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "810bd3e62a4935683f2299dc4ebce2fb05c0d764", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/810bd3e62a4935683f2299dc4ebce2fb05c0d764/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 843}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r2, [r2+r4*2]\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "279b6f3cf56dbfcfb3980a1d955d66628e80aa24", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/279b6f3cf56dbfcfb3980a1d955d66628e80aa24/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    mova          m0, [r1]\n    mova          m1, [r1+8]\n    mova          m2, [r1+48]\n    mova          m3, [r1+48+8]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m4\n    op_%1         m2, [r0+r3], m5\n    lea           r2, [r2+2*r4]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "279b6f3cf56dbfcfb3980a1d955d66628e80aa24", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/279b6f3cf56dbfcfb3980a1d955d66628e80aa24/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "279b6f3cf56dbfcfb3980a1d955d66628e80aa24", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/279b6f3cf56dbfcfb3980a1d955d66628e80aa24/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/SSSE3-optimized H.264 QPEL code\n;*****************************************************************************\n;* Copyright (c) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2012 Daniel Kang\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\ncextern pw_16\ncextern pw_5\ncextern pb_0\n\nSECTION .text\n\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 4,4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:2", "text": "%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 4,4\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    lea          r1, [r1+2*r3]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r4d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:3", "text": "%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r4d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:4", "text": "INIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg\n\n\n%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:5", "text": "RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg\n\n\n%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:6", "text": "pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    mova          m0, [r1]\n    mova          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4\n    psraw         m0, 5\n    psraw         m1, 5\n    mova          m4, [r2]\n    packuswb      m0, m1\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "cglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\n%if cpuflag(sse2)\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\n; unused is to match ssse3 and mmxext args\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 5,5 ; dst, tmp, dstStride, unused, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 5,5,8 ; dst, tmp, dstStride, tmpStride, size\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    cmp          r4d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": ".loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "INIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r2, [r2+r4*2]\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    mova          m0, [r1]\n    mova          m1, [r1+8]\n    mova          m2, [r1+48]\n    mova          m3, [r1+48+8]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m4\n    op_%1         m2, [r0+r3], m5\n    lea           r2, [r2+2*r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    mova          m0, [r1]\n    mova          m1, [r1+8]\n    mova          m2, [r1+48]\n    mova          m3, [r1+48+8]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m4\n    op_%1         m2, [r0+r3], m5\n    lea           r2, [r2+2*r4]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/SSSE3-optimized H.264 QPEL code\n;*****************************************************************************\n;* Copyright (c) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2012 Daniel Kang\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\ncextern pw_16\ncextern pw_5\ncextern pb_0\n\nSECTION .text\n\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    pxor          m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:2", "text": "%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r4d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:3", "text": "psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:4", "text": "paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg\n\n\n%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:5", "text": "paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    mova          m0, [r1]\n    mova          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:6", "text": "mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4\n    psraw         m0, 5\n    psraw         m1, 5\n    mova          m4, [r2]\n    packuswb      m0, m1\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:9", "text": "%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\n%if cpuflag(sse2)\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\n; unused is to match ssse3 and mmxext args\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 5,5 ; dst, tmp, dstStride, unused, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "QPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\n; unused is to match ssse3 and mmxext args\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 5,5 ; dst, tmp, dstStride, unused, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 5,5,8 ; dst, tmp, dstStride, tmpStride, size\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    cmp          r4d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 5,5,8 ; dst, tmp, dstStride, tmpStride, size\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    cmp          r4d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "dec          r4d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r2, [r2+r4*2]\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    mova          m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    mova          m0, [r1]\n    mova          m1, [r1+8]\n    mova          m2, [r1+48]\n    mova          m3, [r1+48+8]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m4\n    op_%1         m2, [r0+r3], m5\n    lea           r2, [r2+2*r4]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "INIT_MMX mmxext\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "c7161befb4ae7d0f40e35676f52507e7de1c8b01", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7161befb4ae7d0f40e35676f52507e7de1c8b01/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 794}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:2", "text": "%endmacro\n\n%macro op_avg 2-3\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2-3\n    mova   %2, %1\n%endmacro\n\n%macro QPEL4_H_LOWPASS_OP 1\ncglobal %1_h264_qpel4_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r4d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5 ; dst, src, dstStride, srcStride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:3", "text": "psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    psraw         m0, 5\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m6\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_OP put\nQPEL4_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    mova          m0, [r1]\n    mova          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:4", "text": "mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m1\n    op_%1         m0, [r0], m4\n    add           r0, r2\n    add           r1, r3\n    dec          r4d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_OP put\nQPEL8_H_LOWPASS_OP avg\n\n%macro QPEL8_H_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass, 4,5,8 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:5", "text": "movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    mov          r4d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    movu          m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_OP_XMM put\nQPEL8_H_LOWPASS_OP_XMM avg\n\n\n%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:6", "text": "%macro QPEL4_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel4_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    pxor          m7, m7\n    mova          m4, [pw_5]\n    mova          m5, [pw_16]\n    mov          r5d, 4\n.loop:\n    movh          m1, [r1-1]\n    movh          m2, [r1+0]\n    movh          m3, [r1+1]\n    movh          m0, [r1+2]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m0, m7\n    paddw         m1, m0\n    paddw         m2, m3\n    movh          m0, [r1-2]\n    movh          m3, [r1+3]\n    punpcklbw     m0, m7\n    punpcklbw     m3, m7\n    paddw         m0, m3\n    psllw         m2, 2\n    psubw         m2, m1\n    pmullw        m2, m4\n    paddw         m0, m5\n    paddw         m0, m2\n    movh          m3, [r2]\n    psraw         m0, 5\n    packuswb      m0, m0\n    pavgb         m0, m3\n    op_%1h        m0, [r0], m6\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    mova          m0, [r1]\n    mova          m2, [r1+1]\n    mova          m1, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:7", "text": "jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_H_LOWPASS_L2_OP put\nQPEL4_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6 ; dst, src, src2, dstStride, srcStride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    mova          m0, [r1]\n    mova          m2, [r1+1]\n    mova          m1, m0\n    mova          m3, m2\n    punpcklbw     m0, m7\n    punpckhbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    paddw         m0, m2\n    paddw         m1, m3\n    psllw         m0, 2\n    psllw         m1, 2\n    mova          m2, [r1-1]\n    mova          m4, [r1+2]\n    mova          m3, m2\n    mova          m5, m4\n    punpcklbw     m2, m7\n    punpckhbw     m3, m7\n    punpcklbw     m4, m7\n    punpckhbw     m5, m7\n    paddw         m2, m4\n    paddw         m5, m3\n    psubw         m0, m2\n    psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4\n    psraw         m0, 5\n    psraw         m1, 5\n    mova          m4, [r2]\n    packuswb      m0, m1\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:8", "text": "psubw         m1, m5\n    pmullw        m0, m6\n    pmullw        m1, m6\n    movd          m2, [r1-2]\n    movd          m5, [r1+7]\n    punpcklbw     m2, m7\n    punpcklbw     m5, m7\n    paddw         m2, m3\n    paddw         m4, m5\n    mova          m5, [pw_16]\n    paddw         m2, m5\n    paddw         m4, m5\n    paddw         m0, m2\n    paddw         m1, m4\n    psraw         m0, 5\n    psraw         m1, 5\n    mova          m4, [r2]\n    packuswb      m0, m1\n    pavgb         m0, m4\n    op_%1         m0, [r0], m4\n    add           r0, r3\n    add           r1, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8_H_LOWPASS_L2_OP put\nQPEL8_H_LOWPASS_L2_OP avg\n\n\n%macro QPEL8_H_LOWPASS_L2_OP_XMM 1\ncglobal %1_h264_qpel8_h_lowpass_l2, 5,6,8 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 8\n    pxor          m7, m7\n    mova          m6, [pw_5]\n.loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:9", "text": ".loop:\n    lddqu         m1, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m7\n    punpcklbw     m0, m7\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m4, m0, 2\n    palignr       m3, m0, 4\n    palignr       m2, m0, 6\n    palignr       m1, m0, 8\n    palignr       m5, m0, 10\n    paddw         m0, m5\n    paddw         m2, m3\n    paddw         m1, m4\n    psllw         m2, 2\n    movh          m3, [r2]\n    psubw         m2, m1\n    paddw         m0, [pw_16]\n    pmullw        m2, m6\n    paddw         m2, m0\n    psraw         m2, 5\n    packuswb      m2, m2\n    pavgb         m2, m3\n    op_%1h        m2, [r0], m4\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8_H_LOWPASS_L2_OP_XMM put\nQPEL8_H_LOWPASS_L2_OP_XMM avg\n\n\n; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:10", "text": "; All functions that call this are required to have function arguments of\n; dst, src, dstStride, srcStride\n%macro FILT_V 1\n    mova      m6, m2\n    movh      m5, [r1]\n    paddw     m6, m3\n    psllw     m6, 2\n    psubw     m6, m1\n    psubw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, [pw_5]\n    paddw     m0, [pw_16]\n    add       r1, r3\n    paddw     m0, m5\n    paddw     m6, m0\n    psraw     m6, 5\n    packuswb  m6, m6\n    op_%1h    m6, [r0], m0 ; 1\n    add       r0, r2\n    SWAP       0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_V_LOWPASS_OP 1\ncglobal %1_h264_qpel4_v_lowpass, 4,4 ; dst, src, dstStride, srcStride\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\n%if cpuflag(sse2)\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:11", "text": "punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_V_LOWPASS_OP put\nQPEL4_V_LOWPASS_OP avg\n\n\n\n%macro QPEL8OR16_V_LOWPASS_OP 1\n%if cpuflag(sse2)\ncglobal %1_h264_qpel8or16_v_lowpass, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    sub           r1, r3\n    sub           r1, r3\n%else\ncglobal %1_h264_qpel8or16_v_lowpass_op, 5,5,8 ; dst, src, dstStride, srcStride, h\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n%endif\n    pxor          m7, m7\n    movh          m0, [r1]\n    movh          m1, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m2, [r1]\n    movh          m3, [r1+r3]\n    lea           r1, [r1+2*r3]\n    movh          m4, [r1]\n    add           r1, r3\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:12", "text": "punpcklbw     m4, m7\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    cmp          r4d, 16\n    jne         .end\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n    FILT_V        %1\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_V_LOWPASS_OP put\nQPEL8OR16_V_LOWPASS_OP avg\n\n\n; All functions that use this are required to have args:\n; src, tmp, srcSize\n%macro FILT_HV 1 ; offset\n    mova           m6, m2\n    movh           m5, [r0]\n    paddw          m6, m3\n    psllw          m6, 2\n    paddw          m0, [pw_16]\n    psubw          m6, m1\n    psubw          m6, m4\n    punpcklbw      m5, m7\n    pmullw         m6, [pw_5]\n    paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:13", "text": "paddw          m0, m5\n    add            r0, r2\n    paddw          m6, m0\n    mova      [r1+%1], m6\n    SWAP            0, 1, 2, 3, 4, 5\n%endmacro\n\n%macro QPEL4_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel4_hv_lowpass_v, 3,3 ; src, tmp, srcStride\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV       0*24\n    FILT_HV       1*24\n    FILT_HV       2*24\n    FILT_HV       3*24\n    RET\n\ncglobal %1_h264_qpel4_hv_lowpass_h, 3,4 ; tmp, dst, dstStride\n    movsxdifnidn  r2, r2d\n    mov          r3d, 4\n.loop:\n    mova          m0, [r0]\n    paddw         m0, [r0+10]\n    mova          m1, [r0+2]\n    paddw         m1, [r0+8]\n    mova          m2, [r0+4]\n    paddw         m2, [r0+6]\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:14", "text": "psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddsw        m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r1], m7\n    add           r0, 24\n    add           r1, r2\n    dec          r3d\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL4_HV1_LOWPASS_OP put\nQPEL4_HV1_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV1_LOWPASS_OP 1\ncglobal %1_h264_qpel8or16_hv1_lowpass_op, 4,4,8 ; src, tmp, srcStride, size\n    movsxdifnidn  r2, r2d\n    pxor          m7, m7\n    movh          m0, [r0]\n    movh          m1, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m2, [r0]\n    movh          m3, [r0+r2]\n    lea           r0, [r0+2*r2]\n    movh          m4, [r0]\n    add           r0, r2\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpcklbw     m3, m7\n    punpcklbw     m4, m7\n    FILT_HV     0*48\n    FILT_HV     1*48\n    FILT_HV     2*48\n    FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:15", "text": "FILT_HV     3*48\n    FILT_HV     4*48\n    FILT_HV     5*48\n    FILT_HV     6*48\n    FILT_HV     7*48\n    cmp          r3d, 16\n    jne         .end\n    FILT_HV     8*48\n    FILT_HV     9*48\n    FILT_HV    10*48\n    FILT_HV    11*48\n    FILT_HV    12*48\n    FILT_HV    13*48\n    FILT_HV    14*48\n    FILT_HV    15*48\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nQPEL8OR16_HV1_LOWPASS_OP put\n\n\n\n%macro QPEL8OR16_HV2_LOWPASS_OP 1\n; unused is to match ssse3 and mmxext args\ncglobal %1_h264_qpel8or16_hv2_lowpass_op, 5,5 ; dst, tmp, dstStride, unused, h\n    movsxdifnidn  r2, r2d\n.loop:\n    mova          m0, [r1]\n    mova          m3, [r1+8]\n    mova          m1, [r1+2]\n    mova          m4, [r1+10]\n    paddw         m0, m4\n    paddw         m1, m3\n    paddw         m3, [r1+18]\n    paddw         m4, [r1+16]\n    mova          m2, [r1+4]\n    mova          m5, [r1+12]\n    paddw         m2, [r1+6]\n    paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:16", "text": "paddw         m5, [r1+14]\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddsw        m0, m2\n    paddsw        m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m0, m3\n    op_%1         m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nQPEL8OR16_HV2_LOWPASS_OP put\nQPEL8OR16_HV2_LOWPASS_OP avg\n\n%macro QPEL8OR16_HV2_LOWPASS_OP_XMM 1\ncglobal %1_h264_qpel8or16_hv2_lowpass, 5,5,8 ; dst, tmp, dstStride, tmpStride, size\n    movsxdifnidn  r2, r2d\n    movsxdifnidn  r3, r3d\n    cmp          r4d, 16\n    je         .op16\n.loop8:\n    mova          m1, [r1+16]\n    mova          m0, [r1]\n    mova          m2, m1\n    mova          m3, m1\n    mova          m4, m1\n    mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m7\n    add           r1, 48\n    add           r0, r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:17", "text": "mova          m5, m1\n    palignr       m5, m0, 10\n    palignr       m4, m0, 8\n    palignr       m3, m0, 6\n    palignr       m2, m0, 4\n    palignr       m1, m0, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    psubw         m0, m1\n    psraw         m0, 2\n    psubw         m0, m1\n    paddw         m0, m2\n    psraw         m0, 2\n    paddw         m0, m2\n    psraw         m0, 6\n    packuswb      m0, m0\n    op_%1h        m0, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne       .loop8\n    jmp        .done\n.op16:\n    mova          m4, [r1+32]\n    mova          m5, [r1+16]\n    mova          m7, [r1]\n    mova          m3, m4\n    mova          m2, m4\n    mova          m1, m4\n    mova          m0, m4\n    palignr       m0, m5, 10\n    palignr       m1, m5, 8\n    palignr       m2, m5, 6\n    palignr       m3, m5, 4\n    palignr       m4, m5, 2\n    paddw         m0, m5\n    paddw         m1, m4\n    paddw         m2, m3\n    mova          m6, m5\n    mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:18", "text": "mova          m4, m5\n    mova          m3, m5\n    palignr       m4, m7, 8\n    palignr       m6, m7, 2\n    palignr       m3, m7, 10\n    paddw         m4, m6\n    mova          m6, m5\n    palignr       m5, m7, 6\n    palignr       m6, m7, 4\n    paddw         m3, m7\n    paddw         m5, m6\n    psubw         m0, m1\n    psubw         m3, m4\n    psraw         m0, 2\n    psraw         m3, 2\n    psubw         m0, m1\n    psubw         m3, m4\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 2\n    psraw         m3, 2\n    paddw         m0, m2\n    paddw         m3, m5\n    psraw         m0, 6\n    psraw         m3, 6\n    packuswb      m3, m0\n    op_%1         m3, [r0], m7\n    add           r1, 48\n    add           r0, r2\n    dec          r4d\n    jne        .op16\n.done:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL8OR16_HV2_LOWPASS_OP_XMM put\nQPEL8OR16_HV2_LOWPASS_OP_XMM avg\n\n\n%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r2, [r2+r4*2]\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:19", "text": "%macro PIXELS4_L2_SHIFT5 1\ncglobal %1_pixels4_l2_shift5,6,6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mova          m0, [r1]\n    mova          m1, [r1+24]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    lea           r2, [r2+r4*2]\n    lea           r0, [r0+r3*2]\n    mova          m0, [r1+48]\n    mova          m1, [r1+72]\n    psraw         m0, 5\n    psraw         m1, 5\n    packuswb      m0, m0\n    packuswb      m1, m1\n    pavgb         m0, [r2]\n    pavgb         m1, [r2+r4]\n    op_%1h        m0, [r0], m4\n    op_%1h        m1, [r0+r3], m5\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2_SHIFT5 put\nPIXELS4_L2_SHIFT5 avg\n\n\n%macro PIXELS8_L2_SHIFT5 1\ncglobal %1_pixels8_l2_shift5, 6, 6 ; dst, src16, src8, dstStride, src8Stride, h\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n.loop:\n    mova          m0, [r1]\n    mova          m1, [r1+8]\n    mova          m2, [r1+48]\n    mova          m3, [r1+48+8]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m4\n    op_%1         m2, [r0+r3], m5\n    lea           r2, [r2+2*r4]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:20", "text": "mova          m1, [r1+8]\n    mova          m2, [r1+48]\n    mova          m3, [r1+48+8]\n    psraw         m0, 5\n    psraw         m1, 5\n    psraw         m2, 5\n    psraw         m3, 5\n    packuswb      m0, m1\n    packuswb      m2, m3\n    pavgb         m0, [r2]\n    pavgb         m2, [r2+r4]\n    op_%1         m0, [r0], m4\n    op_%1         m2, [r0+r3], m5\n    lea           r2, [r2+2*r4]\n    add           r1, 48*2\n    lea           r0, [r0+2*r3]\n    sub          r5d, 2\n    jne        .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2_SHIFT5 put\nPIXELS8_L2_SHIFT5 avg\n\n\n%if ARCH_X86_64\n%macro QPEL16_H_LOWPASS_L2_OP 1\ncglobal %1_h264_qpel16_h_lowpass_l2, 5, 6, 16 ; dst, src, src2, dstStride, src2Stride\n    movsxdifnidn  r3, r3d\n    movsxdifnidn  r4, r4d\n    mov          r5d, 16\n    pxor         m15, m15\n    mova         m14, [pw_5]\n    mova         m13, [pw_16]\n.loop:\n    lddqu         m1, [r1+6]\n    lddqu         m7, [r1-2]\n    mova          m0, m1\n    punpckhbw     m1, m15\n    punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:21", "text": "punpcklbw     m0, m15\n    punpcklbw     m7, m15\n    mova          m2, m1\n    mova          m6, m0\n    mova          m3, m1\n    mova          m8, m0\n    mova          m4, m1\n    mova          m9, m0\n    mova         m12, m0\n    mova         m11, m1\n    palignr      m11, m0, 10\n    palignr      m12, m7, 10\n    palignr       m4, m0, 2\n    palignr       m9, m7, 2\n    palignr       m3, m0, 4\n    palignr       m8, m7, 4\n    palignr       m2, m0, 6\n    palignr       m6, m7, 6\n    paddw        m11, m0\n    palignr       m1, m0, 8\n    palignr       m0, m7, 8\n    paddw         m7, m12\n    paddw         m2, m3\n    paddw         m6, m8\n    paddw         m1, m4\n    paddw         m0, m9\n    psllw         m2, 2\n    psllw         m6, 2\n    psubw         m2, m1\n    psubw         m6, m0\n    paddw        m11, m13\n    paddw         m7, m13\n    pmullw        m2, m14\n    pmullw        m6, m14\n    lddqu         m3, [r2]\n    paddw         m2, m11\n    paddw         m6, m7\n    psraw         m2, 5\n    psraw         m6, 5\n    packuswb      m6, m2\n    pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 801, "line_end": 854}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_qpel_8bit.asm:22", "text": "pavgb         m6, m3\n    op_%1         m6, [r0], m11\n    add           r1, r3\n    add           r0, r3\n    add           r2, r4\n    dec          r5d\n    jg         .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nQPEL16_H_LOWPASS_L2_OP put\nQPEL16_H_LOWPASS_L2_OP avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_qpel_8bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_qpel_8bit.asm", "line_start": 841, "line_end": 854}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:1", "text": ";*****************************************************************************\n;* SSE2-optimized weighted prediction code\n;*****************************************************************************\n;* Copyright (c) 2004-2005 Michael Niedermayer, Loren Merritt\n;* Copyright (C) 2010 Eli Friedman <eli.friedman@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; biweight pred:\n;\n; void ff_h264_biweight_16_sse2(uint8_t *dst, uint8_t *src, int stride,\n;                               int height, int log2_denom, int weightd,\n;                               int weights, int offset);\n; and\n; void ff_h264_weight_16_sse2(uint8_t *dst, int stride, int height,\n;                             int log2_denom, int weight, int offset);\n;-----------------------------------------------------------------------------\n\n%macro WEIGHT_SETUP 0\n    add        r5, r5\n    inc        r5\n    movd       m3, r4d\n    movd       m5, r5d\n    movd       m6, r3d\n    pslld      m5, m6\n    psrld      m5, 1\n%if mmsize == 16\n    pshuflw    m3, m3, 0\n    pshuflw    m5, m5, 0\n    punpcklqdq m3, m3\n    punpcklqdq m5, m5\n%else\n    pshufw     m3, m3, 0\n    pshufw     m5, m5, 0\n%endif\n    pxor       m7, m7\n%endmacro\n\n%macro WEIGHT_OP 2\n    movh          m0, [r0+%1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:2", "text": "inc        r5\n    movd       m3, r4d\n    movd       m5, r5d\n    movd       m6, r3d\n    pslld      m5, m6\n    psrld      m5, 1\n%if mmsize == 16\n    pshuflw    m3, m3, 0\n    pshuflw    m5, m5, 0\n    punpcklqdq m3, m3\n    punpcklqdq m5, m5\n%else\n    pshufw     m3, m3, 0\n    pshufw     m5, m5, 0\n%endif\n    pxor       m7, m7\n%endmacro\n\n%macro WEIGHT_OP 2\n    movh          m0, [r0+%1]\n    movh          m1, [r0+%2]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m3\n    pmullw        m1, m3\n    paddsw        m0, m5\n    paddsw        m1, m5\n    psraw         m0, m6\n    psraw         m1, m6\n    packuswb      m0, m1\n%endmacro\n\n%macro WEIGHT_FUNC_MM 2\ncglobal h264_weight_%1, 6, 6, %2\n    WEIGHT_SETUP\n.nextrow:\n    WEIGHT_OP 0, mmsize/2\n    mova     [r0], m0\n    add        r0, r1\n    dec        r2d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nWEIGHT_FUNC_MM 16, 8\n\n%macro WEIGHT_FUNC_HALF_MM 2\ncglobal h264_weight_%1, 6, 6, %2\n    WEIGHT_SETUP\n    sar       r2d, 1\n    lea        r3, [r1*2]\n.nextrow:\n    WEIGHT_OP 0, r1\n    movh     [r0], m0\n%if mmsize == 16\n    movhps   [r0+r1], m0\n%else\n    psrlq      m0, 32\n    movh     [r0+r1], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:3", "text": "jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nWEIGHT_FUNC_MM 16, 8\n\n%macro WEIGHT_FUNC_HALF_MM 2\ncglobal h264_weight_%1, 6, 6, %2\n    WEIGHT_SETUP\n    sar       r2d, 1\n    lea        r3, [r1*2]\n.nextrow:\n    WEIGHT_OP 0, r1\n    movh     [r0], m0\n%if mmsize == 16\n    movhps   [r0+r1], m0\n%else\n    psrlq      m0, 32\n    movh     [r0+r1], m0\n%endif\n    add        r0, r3\n    dec        r2d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_MMX mmxext\nWEIGHT_FUNC_HALF_MM 4, 0\nINIT_XMM sse2\nWEIGHT_FUNC_HALF_MM 8, 8\n\n%macro BIWEIGHT_SETUP 0\n%if ARCH_X86_64\n%define off_regd r7d\n%else\n%define off_regd r3d\n%endif\n    mov  off_regd, r7m\n    add  off_regd, 1\n    or   off_regd, 1\n    add       r4d, 1\n    cmp       r6d, 128\n    je .nonnormal\n    cmp       r5d, 128\n    jne .normal\n.nonnormal:\n    sar       r5d, 1\n    sar       r6d, 1\n    sar  off_regd, 1\n    sub       r4d, 1\n.normal:\n%if cpuflag(ssse3)\n    movd       m4, r5d\n    movd       m0, r6d\n%else\n    movd       m3, r5d\n    movd       m4, r6d\n%endif\n    movd       m5, off_regd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:4", "text": "or   off_regd, 1\n    add       r4d, 1\n    cmp       r6d, 128\n    je .nonnormal\n    cmp       r5d, 128\n    jne .normal\n.nonnormal:\n    sar       r5d, 1\n    sar       r6d, 1\n    sar  off_regd, 1\n    sub       r4d, 1\n.normal:\n%if cpuflag(ssse3)\n    movd       m4, r5d\n    movd       m0, r6d\n%else\n    movd       m3, r5d\n    movd       m4, r6d\n%endif\n    movd       m5, off_regd\n    movd       m6, r4d\n    pslld      m5, m6\n    psrld      m5, 1\n%if cpuflag(ssse3)\n    punpcklbw  m4, m0\n    pshuflw    m4, m4, 0\n    pshuflw    m5, m5, 0\n    punpcklqdq m4, m4\n    punpcklqdq m5, m5\n\n%else\n%if mmsize == 16\n    pshuflw    m3, m3, 0\n    pshuflw    m4, m4, 0\n    pshuflw    m5, m5, 0\n    punpcklqdq m3, m3\n    punpcklqdq m4, m4\n    punpcklqdq m5, m5\n%else\n    pshufw     m3, m3, 0\n    pshufw     m4, m4, 0\n    pshufw     m5, m5, 0\n%endif\n    pxor       m7, m7\n%endif\n%endmacro\n\n%macro BIWEIGHT_STEPA 3\n    movh       m%1, [r0+%3]\n    movh       m%2, [r1+%3]\n    punpcklbw  m%1, m7\n    punpcklbw  m%2, m7\n    pmullw     m%1, m3\n    pmullw     m%2, m4\n    paddsw     m%1, m%2\n%endmacro\n\n%macro BIWEIGHT_STEPB 0\n    paddsw     m0, m5\n    paddsw     m1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:5", "text": "pshufw     m4, m4, 0\n    pshufw     m5, m5, 0\n%endif\n    pxor       m7, m7\n%endif\n%endmacro\n\n%macro BIWEIGHT_STEPA 3\n    movh       m%1, [r0+%3]\n    movh       m%2, [r1+%3]\n    punpcklbw  m%1, m7\n    punpcklbw  m%2, m7\n    pmullw     m%1, m3\n    pmullw     m%2, m4\n    paddsw     m%1, m%2\n%endmacro\n\n%macro BIWEIGHT_STEPB 0\n    paddsw     m0, m5\n    paddsw     m1, m5\n    psraw      m0, m6\n    psraw      m1, m6\n    packuswb   m0, m1\n%endmacro\n\n%macro BIWEIGHT_FUNC_MM 2\ncglobal h264_biweight_%1, 7, 8, %2\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n.nextrow:\n    BIWEIGHT_STEPA 0, 1, 0\n    BIWEIGHT_STEPA 1, 2, mmsize/2\n    BIWEIGHT_STEPB\n    mova       [r0], m0\n    add        r0, r2\n    add        r1, r2\n    dec        r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nBIWEIGHT_FUNC_MM 16, 8\n\n%macro BIWEIGHT_FUNC_HALF_MM 2\ncglobal h264_biweight_%1, 7, 8, %2\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n    sar       r3d, 1\n    lea        r4, [r2*2]\n.nextrow:\n    BIWEIGHT_STEPA 0, 1, 0\n    BIWEIGHT_STEPA 1, 2, r2\n    BIWEIGHT_STEPB\n    movh       [r0], m0\n%if mmsize == 16\n    movhps     [r0+r2], m0\n%else\n    psrlq      m0, 32\n    movh       [r0+r2], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:6", "text": "INIT_XMM sse2\nBIWEIGHT_FUNC_MM 16, 8\n\n%macro BIWEIGHT_FUNC_HALF_MM 2\ncglobal h264_biweight_%1, 7, 8, %2\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n    sar       r3d, 1\n    lea        r4, [r2*2]\n.nextrow:\n    BIWEIGHT_STEPA 0, 1, 0\n    BIWEIGHT_STEPA 1, 2, r2\n    BIWEIGHT_STEPB\n    movh       [r0], m0\n%if mmsize == 16\n    movhps     [r0+r2], m0\n%else\n    psrlq      m0, 32\n    movh       [r0+r2], m0\n%endif\n    add        r0, r4\n    add        r1, r4\n    dec        r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_MMX mmxext\nBIWEIGHT_FUNC_HALF_MM 4, 0\nINIT_XMM sse2\nBIWEIGHT_FUNC_HALF_MM 8, 8\n\n%macro BIWEIGHT_SSSE3_OP 0\n    pmaddubsw  m0, m4\n    pmaddubsw  m2, m4\n    paddsw     m0, m5\n    paddsw     m2, m5\n    psraw      m0, m6\n    psraw      m2, m6\n    packuswb   m0, m2\n%endmacro\n\nINIT_XMM ssse3\ncglobal h264_biweight_16, 7, 8, 8\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n\n.nextrow:\n    movh       m0, [r0]\n    movh       m2, [r0+8]\n    movh       m3, [r1+8]\n    punpcklbw  m0, [r1]\n    punpcklbw  m2, m3\n    BIWEIGHT_SSSE3_OP\n    mova       [r0], m0\n    add        r0, r2\n    add        r1, r2\n    dec        r3d\n    jnz .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:7", "text": "packuswb   m0, m2\n%endmacro\n\nINIT_XMM ssse3\ncglobal h264_biweight_16, 7, 8, 8\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n\n.nextrow:\n    movh       m0, [r0]\n    movh       m2, [r0+8]\n    movh       m3, [r1+8]\n    punpcklbw  m0, [r1]\n    punpcklbw  m2, m3\n    BIWEIGHT_SSSE3_OP\n    mova       [r0], m0\n    add        r0, r2\n    add        r1, r2\n    dec        r3d\n    jnz .nextrow\n    RET\n\nINIT_XMM ssse3\ncglobal h264_biweight_8, 7, 8, 8\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n    sar       r3d, 1\n    lea        r4, [r2*2]\n\n.nextrow:\n    movh       m0, [r0]\n    movh       m1, [r1]\n    movh       m2, [r0+r2]\n    movh       m3, [r1+r2]\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    BIWEIGHT_SSSE3_OP\n    movh       [r0], m0\n    movhps     [r0+r2], m0\n    add        r0, r4\n    add        r1, r4\n    dec        r3d\n    jnz .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight.asm", "line_start": 241, "line_end": 284}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:5", "text": "pshufw     m4, m4, 0\n    pshufw     m5, m5, 0\n%endif\n    pxor       m7, m7\n%endif\n%endmacro\n\n%macro BIWEIGHT_STEPA 3\n    movh       m%1, [r0+%3]\n    movh       m%2, [r1+%3]\n    punpcklbw  m%1, m7\n    punpcklbw  m%2, m7\n    pmullw     m%1, m3\n    pmullw     m%2, m4\n    paddsw     m%1, m%2\n%endmacro\n\n%macro BIWEIGHT_STEPB 0\n    paddsw     m0, m5\n    paddsw     m1, m5\n    psraw      m0, m6\n    psraw      m1, m6\n    packuswb   m0, m1\n%endmacro\n\n%macro BIWEIGHT_FUNC_MM 2\ncglobal h264_biweight_%1, 7, 8, %2\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n.nextrow:\n    BIWEIGHT_STEPA 0, 1, 0\n    BIWEIGHT_STEPA 1, 2, mmsize/2\n    BIWEIGHT_STEPB\n    mova       [r0], m0\n    add        r0, r2\n    add        r1, r2\n    dec        r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nBIWEIGHT_FUNC_MM 16, 8\n\n%macro BIWEIGHT_FUNC_HALF_MM 2\ncglobal h264_biweight_%1, 7, 8, %2\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n    sar        r3, 1\n    lea        r4, [r2*2]\n.nextrow:\n    BIWEIGHT_STEPA 0, 1, 0\n    BIWEIGHT_STEPA 1, 2, r2\n    BIWEIGHT_STEPB\n    movh       [r0], m0\n%if mmsize == 16\n    movhps     [r0+r2], m0\n%else\n    psrlq      m0, 32\n    movh       [r0+r2], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_weight.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:6", "text": "INIT_XMM sse2\nBIWEIGHT_FUNC_MM 16, 8\n\n%macro BIWEIGHT_FUNC_HALF_MM 2\ncglobal h264_biweight_%1, 7, 8, %2\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n    sar        r3, 1\n    lea        r4, [r2*2]\n.nextrow:\n    BIWEIGHT_STEPA 0, 1, 0\n    BIWEIGHT_STEPA 1, 2, r2\n    BIWEIGHT_STEPB\n    movh       [r0], m0\n%if mmsize == 16\n    movhps     [r0+r2], m0\n%else\n    psrlq      m0, 32\n    movh       [r0+r2], m0\n%endif\n    add        r0, r4\n    add        r1, r4\n    dec        r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_MMX mmxext\nBIWEIGHT_FUNC_HALF_MM 4, 0\nINIT_XMM sse2\nBIWEIGHT_FUNC_HALF_MM 8, 8\n\n%macro BIWEIGHT_SSSE3_OP 0\n    pmaddubsw  m0, m4\n    pmaddubsw  m2, m4\n    paddsw     m0, m5\n    paddsw     m2, m5\n    psraw      m0, m6\n    psraw      m2, m6\n    packuswb   m0, m2\n%endmacro\n\nINIT_XMM ssse3\ncglobal h264_biweight_16, 7, 8, 8\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n\n.nextrow:\n    movh       m0, [r0]\n    movh       m2, [r0+8]\n    movh       m3, [r1+8]\n    punpcklbw  m0, [r1]\n    punpcklbw  m2, m3\n    BIWEIGHT_SSSE3_OP\n    mova       [r0], m0\n    add        r0, r2\n    add        r1, r2\n    dec        r3d\n    jnz .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_weight.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight.asm:7", "text": "packuswb   m0, m2\n%endmacro\n\nINIT_XMM ssse3\ncglobal h264_biweight_16, 7, 8, 8\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n\n.nextrow:\n    movh       m0, [r0]\n    movh       m2, [r0+8]\n    movh       m3, [r1+8]\n    punpcklbw  m0, [r1]\n    punpcklbw  m2, m3\n    BIWEIGHT_SSSE3_OP\n    mova       [r0], m0\n    add        r0, r2\n    add        r1, r2\n    dec        r3d\n    jnz .nextrow\n    RET\n\nINIT_XMM ssse3\ncglobal h264_biweight_8, 7, 8, 8\n    BIWEIGHT_SETUP\n    movifnidn r3d, r3m\n    sar        r3, 1\n    lea        r4, [r2*2]\n\n.nextrow:\n    movh       m0, [r0]\n    movh       m1, [r1]\n    movh       m2, [r0+r2]\n    movh       m3, [r1+r2]\n    punpcklbw  m0, m1\n    punpcklbw  m2, m3\n    BIWEIGHT_SSSE3_OP\n    movh       [r0], m0\n    movhps     [r0+r2], m0\n    add        r0, r4\n    add        r1, r4\n    dec        r3d\n    jnz .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/h264_weight.asm", "line_start": 241, "line_end": 284}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:1", "text": ";*****************************************************************************\n;* MMX/SSE2/AVX-optimized 10-bit H.264 weighted prediction code\n;*****************************************************************************\n;* Copyright (C) 2005-2011 x264 project\n;*\n;* Authors: Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\nsq_1: dq 1\n      dq 0\n\ncextern pw_1\ncextern pw_1023\n%define pw_pixel_max pw_1023\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_h264_weight_16_10(uint8_t *dst, int stride, int height,\n;                           int log2_denom, int weight, int offset);\n;-----------------------------------------------------------------------------\n%macro WEIGHT_PROLOGUE 0\n.prologue:\n    PROLOGUE 0,6,8\n    movifnidn  r0, r0mp\n    movifnidn r1d, r1m\n    movifnidn r2d, r2m\n    movifnidn r4d, r4m\n    movifnidn r5d, r5m\n%endmacro\n\n%macro WEIGHT_SETUP 0\n    mova       m0, [pw_1]\n    movd       m2, r3m\n    pslld      m0, m2       ; 1<<log2_denom\n    SPLATW     m0, m0\n    shl        r5, 19       ; *8, move to upper half of dword\n    lea        r5, [r5+r4*2+0x10000]\n    movd       m3, r5d      ; weight<<1 | 1+(offset<<(3))\n    pshufd     m3, m3, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:2", "text": ";-----------------------------------------------------------------------------\n%macro WEIGHT_PROLOGUE 0\n.prologue:\n    PROLOGUE 0,6,8\n    movifnidn  r0, r0mp\n    movifnidn r1d, r1m\n    movifnidn r2d, r2m\n    movifnidn r4d, r4m\n    movifnidn r5d, r5m\n%endmacro\n\n%macro WEIGHT_SETUP 0\n    mova       m0, [pw_1]\n    movd       m2, r3m\n    pslld      m0, m2       ; 1<<log2_denom\n    SPLATW     m0, m0\n    shl        r5, 19       ; *8, move to upper half of dword\n    lea        r5, [r5+r4*2+0x10000]\n    movd       m3, r5d      ; weight<<1 | 1+(offset<<(3))\n    pshufd     m3, m3, 0\n    mova       m4, [pw_pixel_max]\n    paddw      m2, [sq_1]   ; log2_denom+1\n%if notcpuflag(sse4)\n    pxor       m7, m7\n%endif\n%endmacro\n\n%macro WEIGHT_OP 1-2\n%if %0==1\n    mova        m5, [r0+%1]\n    punpckhwd   m6, m5, m0\n    punpcklwd   m5, m0\n%else\n    movq        m5, [r0+%1]\n    movq        m6, [r0+%2]\n    punpcklwd   m5, m0\n    punpcklwd   m6, m0\n%endif\n    pmaddwd     m5, m3\n    pmaddwd     m6, m3\n    psrad       m5, m2\n    psrad       m6, m2\n%if cpuflag(sse4)\n    packusdw    m5, m6\n    pminsw      m5, m4\n%else\n    packssdw    m5, m6\n    CLIPW       m5, m7, m4\n%endif\n%endmacro\n\n%macro WEIGHT_FUNC_DBL 0\ncglobal h264_weight_16_10\n    WEIGHT_PROLOGUE\n    WEIGHT_SETUP\n.nextrow:\n    WEIGHT_OP  0\n    mova [r0   ], m5\n    WEIGHT_OP 16\n    mova [r0+16], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:3", "text": "psrad       m5, m2\n    psrad       m6, m2\n%if cpuflag(sse4)\n    packusdw    m5, m6\n    pminsw      m5, m4\n%else\n    packssdw    m5, m6\n    CLIPW       m5, m7, m4\n%endif\n%endmacro\n\n%macro WEIGHT_FUNC_DBL 0\ncglobal h264_weight_16_10\n    WEIGHT_PROLOGUE\n    WEIGHT_SETUP\n.nextrow:\n    WEIGHT_OP  0\n    mova [r0   ], m5\n    WEIGHT_OP 16\n    mova [r0+16], m5\n    add       r0, r1\n    dec       r2d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nWEIGHT_FUNC_DBL\nINIT_XMM sse4\nWEIGHT_FUNC_DBL\n\n\n%macro WEIGHT_FUNC_MM 0\ncglobal h264_weight_8_10\n    WEIGHT_PROLOGUE\n    WEIGHT_SETUP\n.nextrow:\n    WEIGHT_OP   0\n    mova     [r0], m5\n    add        r0, r1\n    dec        r2d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nWEIGHT_FUNC_MM\nINIT_XMM sse4\nWEIGHT_FUNC_MM\n\n\n%macro WEIGHT_FUNC_HALF_MM 0\ncglobal h264_weight_4_10\n    WEIGHT_PROLOGUE\n    sar         r2d, 1\n    WEIGHT_SETUP\n    lea         r3, [r1*2]\n.nextrow:\n    WEIGHT_OP    0, r1\n    movh      [r0], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:4", "text": "dec        r2d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nWEIGHT_FUNC_MM\nINIT_XMM sse4\nWEIGHT_FUNC_MM\n\n\n%macro WEIGHT_FUNC_HALF_MM 0\ncglobal h264_weight_4_10\n    WEIGHT_PROLOGUE\n    sar         r2d, 1\n    WEIGHT_SETUP\n    lea         r3, [r1*2]\n.nextrow:\n    WEIGHT_OP    0, r1\n    movh      [r0], m5\n    movhps [r0+r1], m5\n    add         r0, r3\n    dec         r2d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nWEIGHT_FUNC_HALF_MM\nINIT_XMM sse4\nWEIGHT_FUNC_HALF_MM\n\n\n;-----------------------------------------------------------------------------\n; void ff_h264_biweight_16_10(uint8_t *dst, uint8_t *src, int stride,\n;                             int height, int log2_denom, int weightd,\n;                             int weights, int offset);\n;-----------------------------------------------------------------------------\n%if ARCH_X86_32\nDECLARE_REG_TMP 3\n%else\nDECLARE_REG_TMP 7\n%endif\n\n%macro BIWEIGHT_PROLOGUE 0\n.prologue:\n    PROLOGUE 0,8,8\n    movifnidn  r0, r0mp\n    movifnidn  r1, r1mp\n    movifnidn r2d, r2m\n    movifnidn r5d, r5m\n    movifnidn r6d, r6m\n    movifnidn t0d, r7m\n%endmacro\n\n%macro BIWEIGHT_SETUP 0\n    lea        t0, [t0*4+1] ; (offset<<2)+1\n    or         t0, 1\n    shl        r6, 16\n    or         r5, r6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:5", "text": "%else\nDECLARE_REG_TMP 7\n%endif\n\n%macro BIWEIGHT_PROLOGUE 0\n.prologue:\n    PROLOGUE 0,8,8\n    movifnidn  r0, r0mp\n    movifnidn  r1, r1mp\n    movifnidn r2d, r2m\n    movifnidn r5d, r5m\n    movifnidn r6d, r6m\n    movifnidn t0d, r7m\n%endmacro\n\n%macro BIWEIGHT_SETUP 0\n    lea        t0, [t0*4+1] ; (offset<<2)+1\n    or         t0, 1\n    shl        r6, 16\n    or         r5, r6\n    movd       m4, r5d      ; weightd | weights\n    movd       m5, t0d      ; (offset+1)|1\n    movd       m6, r4m      ; log2_denom\n    pslld      m5, m6       ; (((offset<<2)+1)|1)<<log2_denom\n    paddd      m6, [sq_1]\n    pshufd     m4, m4, 0\n    pshufd     m5, m5, 0\n    mova       m3, [pw_pixel_max]\n    movifnidn r3d, r3m\n%if notcpuflag(sse4)\n    pxor       m7, m7\n%endif\n%endmacro\n\n%macro BIWEIGHT 1-2\n%if %0==1\n    mova       m0, [r0+%1]\n    mova       m1, [r1+%1]\n    punpckhwd  m2, m0, m1\n    punpcklwd  m0, m1\n%else\n    movq       m0, [r0+%1]\n    movq       m1, [r1+%1]\n    punpcklwd  m0, m1\n    movq       m2, [r0+%2]\n    movq       m1, [r1+%2]\n    punpcklwd  m2, m1\n%endif\n    pmaddwd    m0, m4\n    pmaddwd    m2, m4\n    paddd      m0, m5\n    paddd      m2, m5\n    psrad      m0, m6\n    psrad      m2, m6\n%if cpuflag(sse4)\n    packusdw   m0, m2\n    pminsw     m0, m3\n%else\n    packssdw   m0, m2\n    CLIPW      m0, m7, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:6", "text": "%else\n    movq       m0, [r0+%1]\n    movq       m1, [r1+%1]\n    punpcklwd  m0, m1\n    movq       m2, [r0+%2]\n    movq       m1, [r1+%2]\n    punpcklwd  m2, m1\n%endif\n    pmaddwd    m0, m4\n    pmaddwd    m2, m4\n    paddd      m0, m5\n    paddd      m2, m5\n    psrad      m0, m6\n    psrad      m2, m6\n%if cpuflag(sse4)\n    packusdw   m0, m2\n    pminsw     m0, m3\n%else\n    packssdw   m0, m2\n    CLIPW      m0, m7, m3\n%endif\n%endmacro\n\n%macro BIWEIGHT_FUNC_DBL 0\ncglobal h264_biweight_16_10\n    BIWEIGHT_PROLOGUE\n    BIWEIGHT_SETUP\n.nextrow:\n    BIWEIGHT   0\n    mova [r0   ], m0\n    BIWEIGHT  16\n    mova [r0+16], m0\n    add       r0, r2\n    add       r1, r2\n    dec       r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nBIWEIGHT_FUNC_DBL\nINIT_XMM sse4\nBIWEIGHT_FUNC_DBL\n\n%macro BIWEIGHT_FUNC 0\ncglobal h264_biweight_8_10\n    BIWEIGHT_PROLOGUE\n    BIWEIGHT_SETUP\n.nextrow:\n    BIWEIGHT  0\n    mova   [r0], m0\n    add      r0, r2\n    add      r1, r2\n    dec      r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nBIWEIGHT_FUNC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h264_weight_10bit.asm:7", "text": "BIWEIGHT_FUNC_DBL\nINIT_XMM sse4\nBIWEIGHT_FUNC_DBL\n\n%macro BIWEIGHT_FUNC 0\ncglobal h264_biweight_8_10\n    BIWEIGHT_PROLOGUE\n    BIWEIGHT_SETUP\n.nextrow:\n    BIWEIGHT  0\n    mova   [r0], m0\n    add      r0, r2\n    add      r1, r2\n    dec      r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nBIWEIGHT_FUNC\nINIT_XMM sse4\nBIWEIGHT_FUNC\n\n%macro BIWEIGHT_FUNC_HALF 0\ncglobal h264_biweight_4_10\n    BIWEIGHT_PROLOGUE\n    BIWEIGHT_SETUP\n    sar        r3d, 1\n    lea        r4, [r2*2]\n.nextrow:\n    BIWEIGHT     0, r2\n    movh   [r0   ], m0\n    movhps [r0+r2], m0\n    add         r0, r4\n    add         r1, r4\n    dec         r3d\n    jnz .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nBIWEIGHT_FUNC_HALF\nINIT_XMM sse4\nBIWEIGHT_FUNC_HALF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h264_weight_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h264_weight_10bit.asm", "line_start": 241, "line_end": 284}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:1", "text": "; /*\n; * Provide SSE luma and chroma mc functions for HEVC/VVC decoding\n; * Copyright (c) 2013 Pierre-Edouard LEPERE\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\ncextern pw_255\ncextern pw_512\ncextern pw_2048\ncextern pw_1023\ncextern pw_1024\ncextern pw_4096\ncextern pw_8192\n%define scale_8 pw_512\n%define scale_10 pw_2048\n%define scale_12 pw_8192\n%define max_pixels_8 pw_255\n%define max_pixels_10 pw_1023\nmax_pixels_12:          times 16 dw ((1 << 12)-1)\ncextern pb_0\n\nSECTION .text\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n%macro VPBROADCASTW 2\n%if notcpuflag(avx2)\n    movd           %1, %2\n    pshuflw        %1, %1, 0\n    punpcklwd      %1, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:2", "text": "SECTION .text\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n%macro VPBROADCASTW 2\n%if notcpuflag(avx2)\n    movd           %1, %2\n    pshuflw        %1, %1, 0\n    punpcklwd      %1, %1\n%else\n    vpbroadcastw   %1, %2\n%endif\n%endmacro\n\n%macro MC_4TAP_FILTER 4 ; bitdepth, filter, a, b,\n%if cpuflag(avx2)\n    VPBROADCASTW   %3, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW   %4, [%2q + 1 * 2]  ; coeff 2, 3\n%if %1 != 8\n    pmovsxbw       %3, xmm%3\n    pmovsxbw       %4, xmm%4\n%endif\n%else\n    movd           %3, [%2q]          ; coeff 0, 1, 2, 3\n%if %1 != 8\n    pmovsxbw       %3, %3             ; coeff 0, 1, 2, 3 (words)\n%else\n    punpcklwd      %3, %3             ; coeff 0,1,0,1,2,3,2,3\n%endif\n    pshufd         %4, %3, q1111\n    pshufd         %3, %3, q0000\n%endif\n%endmacro\n\n%macro MC_4TAP_HV_FILTER 1\n%if cpuflag(avx2)\n    VPBROADCASTW  m12, [vfq + 0 * 2]  ; vf 0, 1\n    VPBROADCASTW  m13, [vfq + 1 * 2]  ; vf 2, 3\n    VPBROADCASTW  m14, [hfq + 0 * 2]  ; hf 0, 1\n    VPBROADCASTW  m15, [hfq + 1 * 2]  ; hf 2, 3\n\n    pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n%else\n    movd          m12, [vfq]          ; vf 0,1,2,3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:3", "text": "pshufd         %4, %3, q1111\n    pshufd         %3, %3, q0000\n%endif\n%endmacro\n\n%macro MC_4TAP_HV_FILTER 1\n%if cpuflag(avx2)\n    VPBROADCASTW  m12, [vfq + 0 * 2]  ; vf 0, 1\n    VPBROADCASTW  m13, [vfq + 1 * 2]  ; vf 2, 3\n    VPBROADCASTW  m14, [hfq + 0 * 2]  ; hf 0, 1\n    VPBROADCASTW  m15, [hfq + 1 * 2]  ; hf 2, 3\n\n    pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n%else\n    movd          m12, [vfq]          ; vf 0,1,2,3\n    movd          m14, [hfq]          ; hf 0,1,2,3\n\n    pmovsxbw      m12, m12            ; vf 0,1,2,3 (words)\n%if %1 != 8\n    pmovsxbw      m14, m14            ; hf 0,1,2,3 (words)\n%else\n    punpcklwd     m14, m14            ; hf 0,1,0,1,2,3,2,3\n%endif\n    pshufd        m13, m12, q1111\n    pshufd        m12, m12, q0000\n    pshufd        m15, m14, q1111\n    pshufd        m14, m14, q0000\n%endif\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro MC_8TAP_SAVE_FILTER 5    ;offset, mm registers\n    mova [rsp + %1 + 0*mmsize], %2\n    mova [rsp + %1 + 1*mmsize], %3\n    mova [rsp + %1 + 2*mmsize], %4\n    mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n%if cpuflag(avx2)\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW                      m13, [%2q + 1 * 2]  ; coeff 2, 3\n    VPBROADCASTW                      m14, [%2q + 2 * 2]  ; coeff 4, 5\n    VPBROADCASTW                      m15, [%2q + 3 * 2]  ; coeff 6, 7\n\n%if %1 != 8\n    pmovsxbw                          m12, xm12\n    pmovsxbw                          m13, xm13\n    pmovsxbw                          m14, xm14\n    pmovsxbw                          m15, xm15\n%endif\n%else\n%if %1 != 8\n    pmovsxbw                          m15, [%2q]          ; coeffs 0-7 (words)\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:4", "text": "mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n%if cpuflag(avx2)\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW                      m13, [%2q + 1 * 2]  ; coeff 2, 3\n    VPBROADCASTW                      m14, [%2q + 2 * 2]  ; coeff 4, 5\n    VPBROADCASTW                      m15, [%2q + 3 * 2]  ; coeff 6, 7\n\n%if %1 != 8\n    pmovsxbw                          m12, xm12\n    pmovsxbw                          m13, xm13\n    pmovsxbw                          m14, xm14\n    pmovsxbw                          m15, xm15\n%endif\n%else\n%if %1 != 8\n    pmovsxbw                          m15, [%2q]          ; coeffs 0-7 (words)\n%else\n    movq                              m15, [%2q]          ; coeffs 0-7\n    punpcklwd                         m15, m15\n%endif\n    pshufd                            m12, m15, q0000\n    pshufd                            m13, m15, q1111\n    pshufd                            m14, m15, q2222\n    pshufd                            m15, m15, q3333\n%endif\n%if %0 == 3\n    MC_8TAP_SAVE_FILTER     %3, m12, m13, m14, m15\n%endif\n%endmacro\n\n%macro MC_4TAP_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:5", "text": "%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 7\n    SBUTTERFLY        wd, 2, 3, 7\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_H_LOAD 4\n%assign %%stride (%1+7)/8\n%if %1 == 8\n%if %3 <= 4\n%define %%load movd\n%elif %3 == 8\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif\n    %%load            m0, [%2-3*%%stride]        ;load data from source\n    %%load            m1, [%2-2*%%stride]\n    %%load            m2, [%2-%%stride  ]\n    %%load            m3, [%2           ]\n    %%load            m4, [%2+%%stride  ]\n    %%load            m5, [%2+2*%%stride]\n    %%load            m6, [%2+3*%%stride]\n    %%load            m7, [%2+4*%%stride]\n\n%if %1 == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:6", "text": "%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif\n    %%load            m0, [%2-3*%%stride]        ;load data from source\n    %%load            m1, [%2-2*%%stride]\n    %%load            m2, [%2-%%stride  ]\n    %%load            m3, [%2           ]\n    %%load            m4, [%2+%%stride  ]\n    %%load            m5, [%2+2*%%stride]\n    %%load            m6, [%2+3*%%stride]\n    %%load            m7, [%2+4*%%stride]\n\n%if %1 == 8\n%if %3 > 8\n    SBUTTERFLY        wd, 0, 1, %4\n    SBUTTERFLY        wd, 2, 3, %4\n    SBUTTERFLY        wd, 4, 5, %4\n    SBUTTERFLY        wd, 6, 7, %4\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %3 > 4\n    SBUTTERFLY        dq, 0, 1, %4\n    SBUTTERFLY        dq, 2, 3, %4\n    SBUTTERFLY        dq, 4, 5, %4\n    SBUTTERFLY        dq, 6, 7, %4\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride\n    movu              m1, [%5q+   %3q     ]      ;load x- 2*srcstride\n    movu              m2, [%5q+ 2*%3q     ]      ;load x-srcstride\n    movu              m3, [%2       ]      ;load x\n    movu              m4, [%2+   %3q]      ;load x+stride\n    movu              m5, [%2+ 2*%3q]      ;load x+2*stride\n    movu              m6, [%2+r3srcq]      ;load x+3*stride\n    movu              m7, [%2+ 4*%3q]      ;load x+4*stride\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:7", "text": "punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride\n    movu              m1, [%5q+   %3q     ]      ;load x- 2*srcstride\n    movu              m2, [%5q+ 2*%3q     ]      ;load x-srcstride\n    movu              m3, [%2       ]      ;load x\n    movu              m4, [%2+   %3q]      ;load x+stride\n    movu              m5, [%2+ 2*%3q]      ;load x+2*stride\n    movu              m6, [%2+r3srcq]      ;load x+3*stride\n    movu              m7, [%2+ 4*%3q]      ;load x+4*stride\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 8\n    SBUTTERFLY        bw, 2, 3, 8\n    SBUTTERFLY        bw, 4, 5, 8\n    SBUTTERFLY        bw, 6, 7, 8\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 8\n    SBUTTERFLY        wd, 2, 3, 8\n    SBUTTERFLY        wd, 4, 5, 8\n    SBUTTERFLY        wd, 6, 7, 8\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_12STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_12STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_12STORE12 3\n    PEL_12STORE8     %1, %2, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:8", "text": "%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_12STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_12STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_12STORE12 3\n    PEL_12STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_12STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_12STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n\n%macro PEL_10STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_10STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_10STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    PEL_10STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_10STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n%macro PEL_10STORE32 3\n    PEL_10STORE16     %1, %2, %3\n    movu         [%1+32], %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:9", "text": "movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    PEL_10STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_10STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n%macro PEL_10STORE32 3\n    PEL_10STORE16     %1, %2, %3\n    movu         [%1+32], %3\n%endmacro\n\n%macro PEL_8STORE2 3\n    pextrw          [%1], %2, 0\n%endmacro\n%macro PEL_8STORE4 3\n    movd            [%1], %2\n%endmacro\n%macro PEL_8STORE6 3\n    movd            [%1], %2\n    pextrw        [%1+4], %2, 2\n%endmacro\n%macro PEL_8STORE8 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_8STORE12 3\n    movq            [%1], %2\n    psrldq            %2, 8\n    movd          [%1+8], %2\n%endmacro\n%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    movu          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro\n\n%macro LOOP_END 3\n    add              %1q, dststrideq             ; dst += dststride\n    add              %2q, %3q                    ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n%endmacro\n\n\n%macro MC_PIXEL_COMPUTE 2-3 ;width, bitdepth", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:10", "text": "%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    movu          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro\n\n%macro LOOP_END 3\n    add              %1q, dststrideq             ; dst += dststride\n    add              %2q, %3q                    ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n%endmacro\n\n\n%macro MC_PIXEL_COMPUTE 2-3 ;width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && %0 ==3\n%if %1 > 16\n    vextracti128 xm1, m0, 1\n    pmovzxbw      m1, xm1\n    psllw         m1, 14-%2\n%endif\n    pmovzxbw      m0, xm0\n%else ; not avx\n%if %1 > 8\n    punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro MC_4TAP_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:11", "text": "%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10\n%endif\n    pmaddubsw      %%reg0, %3   ;x1*c1+x2*c2\n    pmaddubsw      %%reg2, %4   ;x3*c3+x4*c4\n    paddw          %%reg0, %%reg2\n%if %2 > 8\n    pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n    psrad          %%reg1, %1-8\n%endif\n    psrad          %%reg0, %1-8\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro MC_8TAP_HV_COMPUTE 4     ; width, bitdepth, filter\n\n%if %2 == 8\n    pmaddubsw         m0, [%3q+0*mmsize]    ;x1*c1+x2*c2\n    pmaddubsw         m2, [%3q+1*mmsize]    ;x3*c3+x4*c4\n    pmaddubsw         m4, [%3q+2*mmsize]    ;x5*c5+x6*c6\n    pmaddubsw         m6, [%3q+3*mmsize]    ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [%3q+0*mmsize]\n    pmaddwd           m2, [%3q+1*mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:12", "text": "psrad          %%reg1, %1-8\n%endif\n    psrad          %%reg0, %1-8\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro MC_8TAP_HV_COMPUTE 4     ; width, bitdepth, filter\n\n%if %2 == 8\n    pmaddubsw         m0, [%3q+0*mmsize]    ;x1*c1+x2*c2\n    pmaddubsw         m2, [%3q+1*mmsize]    ;x3*c3+x4*c4\n    pmaddubsw         m4, [%3q+2*mmsize]    ;x5*c5+x6*c6\n    pmaddubsw         m6, [%3q+3*mmsize]    ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [%3q+0*mmsize]\n    pmaddwd           m2, [%3q+1*mmsize]\n    pmaddwd           m4, [%3q+2*mmsize]\n    pmaddwd           m6, [%3q+3*mmsize]\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n    psrad             m0, %2-8\n%if %1 > 4\n    pmaddwd           m1, [%3q+0*mmsize]\n    pmaddwd           m3, [%3q+1*mmsize]\n    pmaddwd           m5, [%3q+2*mmsize]\n    pmaddwd           m7, [%3q+3*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n    psrad             m1, %2-8\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n\n%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301\n    vinserti128 m2, m2, xm3, 1\n    SWAP 3, 10\n\n\n    vperm2i128 m10, m4,  m5, q0301\n    vinserti128 m4, m4, xm5, 1\n    SWAP 5, 10\n\n    vperm2i128 m10, m6,  m7, q0301\n    vinserti128 m6, m6, xm7, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:13", "text": "%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301\n    vinserti128 m2, m2, xm3, 1\n    SWAP 3, 10\n\n\n    vperm2i128 m10, m4,  m5, q0301\n    vinserti128 m4, m4, xm5, 1\n    SWAP 5, 10\n\n    vperm2i128 m10, m6,  m7, q0301\n    vinserti128 m6, m6, xm7, 1\n    SWAP 7, 10\n%endif\n\n    pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n    psrad             m0, %2-8\n%if %1 > 4\n    pmaddwd           m1, m12\n    pmaddwd           m3, m13\n    pmaddwd           m5, m14\n    pmaddwd           m7, m15\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n    psrad             m1, %2-8\n%endif\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:14", "text": "pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n    psrad             m0, %2-8\n%if %1 > 4\n    pmaddwd           m1, m12\n    pmaddwd           m3, m13\n    pmaddwd           m5, m14\n    pmaddwd           m7, m15\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n    psrad             m1, %2-8\n%endif\n%endif\n%endmacro\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void %1_put_pixels(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                         int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_PIXELS 3\n    MC_PIXELS       %1, %2, %3\n    MC_UNI_PIXELS   %1, %2, %3\n%endmacro\n\n%macro MC_PIXELS 3\ncglobal %1_put_pixels%2_%3, 5, 5, 3, dst, dststride, src, srcstride, height\n    pxor              m2, m2\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    MC_PIXEL_COMPUTE  %2, %3, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END         dst, src, srcstride\n    RET\n%endmacro\n\n%macro MC_UNI_PIXELS 3\ncglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:15", "text": "%macro PUT_PIXELS 3\n    MC_PIXELS       %1, %2, %3\n    MC_UNI_PIXELS   %1, %2, %3\n%endmacro\n\n%macro MC_PIXELS 3\ncglobal %1_put_pixels%2_%3, 5, 5, 3, dst, dststride, src, srcstride, height\n    pxor              m2, m2\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    MC_PIXEL_COMPUTE  %2, %3, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END         dst, src, srcstride\n    RET\n%endmacro\n\n%macro MC_UNI_PIXELS 3\ncglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP 3\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\n; ******************************\n; void %1_put_4tap_hX(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_4tap_h%2_%3, 6, 6, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    MC_4TAP_FILTER       %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m4, m5, 1\n    PEL_10STORE%2      dstq, m0, m1\n    LOOP_END            dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_hX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_h%2_%3, 6, 7, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    movdqa            m6, [scale_%3]\n    MC_4TAP_FILTER    %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:16", "text": "cglobal %1_put_4tap_h%2_%3, 6, 6, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    MC_4TAP_FILTER       %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m4, m5, 1\n    PEL_10STORE%2      dstq, m0, m1\n    LOOP_END            dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_hX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_h%2_%3, 6, 7, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    movdqa            m6, [scale_%3]\n    MC_4TAP_FILTER    %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void %1_put_4tap_v(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END          dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_vX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    movdqa            m6, [scale_%3]\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER       %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:17", "text": "PEL_10STORE%2     dstq, m0, m1\n    LOOP_END          dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_vX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    movdqa            m6, [scale_%3]\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER       %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP_HV 3\n; ******************************\n; void put_4tap_hv(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:18", "text": "add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %2 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m2, m0, xm4, 1\n    vperm2i128        m3, m0, m4, q0301\n    PEL_10STORE%2     dstq, m2, m3\n%else\n    PEL_10STORE%2     dstq, m0, m4\n%endif\n%else\n    PEL_10STORE%2     dstq, m0, m1\n%endif\n    movdqa            m4, m5\n    movdqa            m5, m6\n    movdqa            m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    LOOP_END         dst, src, srcstride\n    RET\n\ncglobal %1_put_uni_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:19", "text": "PEL_10STORE%2     dstq, m0, m4\n%endif\n%else\n    PEL_10STORE%2     dstq, m0, m1\n%endif\n    movdqa            m4, m5\n    movdqa            m5, m6\n    movdqa            m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    LOOP_END         dst, src, srcstride\n    RET\n\ncglobal %1_put_uni_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m8, m1\n%endif\n    SWAP                 m4, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m10, m1\n%endif\n    SWAP                 m6, m0\n    add                srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m11, m1\n%endif\n    mova                 m7, m0\n    punpcklwd            m0, m4, m5\n    punpcklwd            m2, m6, m7\n%if %2 > 4\n    punpckhwd            m1, m4, m5\n    punpckhwd            m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd            m4, m8, m9\n    punpcklwd            m2, m10, m11\n    punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:20", "text": "add                srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m11, m1\n%endif\n    mova                 m7, m0\n    punpcklwd            m0, m4, m5\n    punpcklwd            m2, m6, m7\n%if %2 > 4\n    punpckhwd            m1, m4, m5\n    punpckhwd            m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd            m4, m8, m9\n    punpcklwd            m2, m10, m11\n    punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n    UNI_COMPUTE          %2, %3, m0, m4, [scale_%3]\n%else\n    UNI_COMPUTE          %2, %3, m0, m1, [scale_%3]\n%endif\n    PEL_%3STORE%2      dstq, m0, m1\n    mova                 m4, m5\n    mova                 m5, m6\n    mova                 m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_8TAP 3\ncglobal %1_put_8tap_h%2_%3, 6, 6, 16, dst, dststride, src, srcstride, height, hf\n    MC_8TAP_FILTER          %3, hf\n.loop:\n    MC_8TAP_H_LOAD          %3, srcq, %2, 10\n    MC_8TAP_COMPUTE         %2, %3, 1\n%if %3 > 8\n    packssdw                m0, m1\n%endif\n    PEL_10STORE%2         dstq, m0, m1\n    LOOP_END               dst, src, srcstride\n    RET\n\n; ******************************", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:21", "text": "; ******************************\n; void put_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_8TAP 3\ncglobal %1_put_8tap_h%2_%3, 6, 6, 16, dst, dststride, src, srcstride, height, hf\n    MC_8TAP_FILTER          %3, hf\n.loop:\n    MC_8TAP_H_LOAD          %3, srcq, %2, 10\n    MC_8TAP_COMPUTE         %2, %3, 1\n%if %3 > 8\n    packssdw                m0, m1\n%endif\n    PEL_10STORE%2         dstq, m0, m1\n    LOOP_END               dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_h%2_%3, 6, 7, 16 , dst, dststride, src, srcstride, height, hf\n    mova                 m9, [scale_%3]\n    MC_8TAP_FILTER       %3, hf\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 10\n    MC_8TAP_COMPUTE      %2, %3\n%if %3 > 8\n    packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n\n\n; ******************************\n; void put_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                      int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_8tap_v%2_%3, 7, 8, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER        %3, vf\n    lea               r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD        %3, srcq, srcstride, %2, r7\n    MC_8TAP_COMPUTE       %2, %3, 1\n%if %3 > 8\n    packssdw              m0, m1\n%endif\n    PEL_10STORE%2       dstq, m0, m1\n    LOOP_END             dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:22", "text": "; ******************************\n; void put_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                      int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_8tap_v%2_%3, 7, 8, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER        %3, vf\n    lea               r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD        %3, srcq, srcstride, %2, r7\n    MC_8TAP_COMPUTE       %2, %3, 1\n%if %3 > 8\n    packssdw              m0, m1\n%endif\n    PEL_10STORE%2       dstq, m0, m1\n    LOOP_END             dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_v%2_%3, 7, 9, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER    %3, vf\n    movdqa            m9, [scale_%3]\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD    %3, srcq, srcstride, %2, r8\n    MC_8TAP_COMPUTE   %2, %3\n%if %3 > 8\n    packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n\n; ******************************\n; void put_8tap_hvX_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                     int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n%macro PUT_8TAP_HV 3\ncglobal %1_put_8tap_hv%2_%3, 7, 8, 16, 0 - mmsize*8, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           14, vf, 4*mmsize\n    lea                     vfq, [rsp + 4*mmsize]\n\n    lea                  r3srcq, [srcstrideq*3]\n    sub                    srcq, r3srcq\n\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:23", "text": "%endmacro\n\n\n; ******************************\n; void put_8tap_hvX_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                     int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n%macro PUT_8TAP_HV 3\ncglobal %1_put_8tap_hv%2_%3, 7, 8, 16, 0 - mmsize*8, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           14, vf, 4*mmsize\n    lea                     vfq, [rsp + 4*mmsize]\n\n    lea                  r3srcq, [srcstrideq*3]\n    sub                    srcq, r3srcq\n\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m9, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m10, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m13, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m14, m0\n    add                    srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m15, m0\n    punpcklwd                m0, m8, m9\n    punpcklwd                m2, m10, m11\n    punpcklwd                m4, m12, m13\n    punpcklwd                m6, m14, m15\n%if %2 > 4\n    punpckhwd                m1, m8, m9\n    punpckhwd                m3, m10, m11\n    punpckhwd                m5, m12, m13\n    punpckhwd                m7, m14, m15\n%endif\n%if %2 <= 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:24", "text": "add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m14, m0\n    add                    srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m15, m0\n    punpcklwd                m0, m8, m9\n    punpcklwd                m2, m10, m11\n    punpcklwd                m4, m12, m13\n    punpcklwd                m6, m14, m15\n%if %2 > 4\n    punpckhwd                m1, m8, m9\n    punpckhwd                m3, m10, m11\n    punpckhwd                m5, m12, m13\n    punpckhwd                m7, m14, m15\n%endif\n%if %2 <= 4\n    movq                     m8, m9\n    movq                     m9, m10\n    movq                    m10, m11\n    movq                    m11, m12\n    movq                    m12, m13\n    movq                    m13, m14\n    movq                    m14, m15\n%else\n    movdqa                   m8, m9\n    movdqa                   m9, m10\n    movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE       %2, 14, vf, ackssdw\n    PEL_10STORE%2          dstq, m0, m1\n\n    LOOP_END                dst, src, srcstride\n    RET\n\n\ncglobal %1_put_uni_8tap_hv%2_%3, 7, 9, 16, 0 - 8*mmsize, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           14, vf, 4*mmsize\n    lea                     vfq, [rsp + 4*mmsize]\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:25", "text": "RET\n\n\ncglobal %1_put_uni_8tap_hv%2_%3, 7, 9, 16, 0 - 8*mmsize, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           14, vf, 4*mmsize\n    lea                     vfq, [rsp + 4*mmsize]\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %2 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13\n    punpckhwd         m7, m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE   %2, 14, vf, ackusdw\n    UNI_COMPUTE       %2, %3, m0, m1, [scale_%3]\n    PEL_%3STORE%2   dstq, m0, m1\n\n%if %2 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:26", "text": "MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %2 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13\n    punpckhwd         m7, m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE   %2, 14, vf, ackusdw\n    UNI_COMPUTE       %2, %3, m0, m1, [scale_%3]\n    PEL_%3STORE%2   dstq, m0, m1\n\n%if %2 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    mova            m8, m9\n    mova            m9, m10\n    mova           m10, m11\n    mova           m11, m12\n    mova           m12, m13\n    mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n%macro H2656PUT_PIXELS 2\n    PUT_PIXELS h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP 2\n    PUT_4TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP_HV 2\n    PUT_4TAP_HV h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP 2\n    PUT_8TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP_HV 2\n    PUT_8TAP_HV h2656, %1, %2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:27", "text": "%macro H2656PUT_PIXELS 2\n    PUT_PIXELS h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP 2\n    PUT_4TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP_HV 2\n    PUT_4TAP_HV h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP 2\n    PUT_8TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP_HV 2\n    PUT_8TAP_HV h2656, %1, %2\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM sse4\nH2656PUT_PIXELS  2, 8\nH2656PUT_PIXELS  4, 8\nH2656PUT_PIXELS  6, 8\nH2656PUT_PIXELS  8, 8\nH2656PUT_PIXELS 12, 8\nH2656PUT_PIXELS 16, 8\n\nH2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10\n\nH2656PUT_PIXELS 2, 12\nH2656PUT_PIXELS 4, 12\nH2656PUT_PIXELS 6, 12\nH2656PUT_PIXELS 8, 12\n\nH2656PUT_4TAP 2,  8\nH2656PUT_4TAP 4,  8\nH2656PUT_4TAP 6,  8\nH2656PUT_4TAP 8,  8\n\nH2656PUT_4TAP 12,  8\nH2656PUT_4TAP 16, 8\n\nH2656PUT_4TAP 2, 10\nH2656PUT_4TAP 4, 10\nH2656PUT_4TAP 6, 10\nH2656PUT_4TAP 8, 10\n\nH2656PUT_4TAP 2, 12\nH2656PUT_4TAP 4, 12\nH2656PUT_4TAP 6, 12\nH2656PUT_4TAP 8, 12\n\nH2656PUT_4TAP_HV 2,  8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:28", "text": "H2656PUT_4TAP 2,  8\nH2656PUT_4TAP 4,  8\nH2656PUT_4TAP 6,  8\nH2656PUT_4TAP 8,  8\n\nH2656PUT_4TAP 12,  8\nH2656PUT_4TAP 16, 8\n\nH2656PUT_4TAP 2, 10\nH2656PUT_4TAP 4, 10\nH2656PUT_4TAP 6, 10\nH2656PUT_4TAP 8, 10\n\nH2656PUT_4TAP 2, 12\nH2656PUT_4TAP 4, 12\nH2656PUT_4TAP 6, 12\nH2656PUT_4TAP 8, 12\n\nH2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8\nH2656PUT_8TAP 16, 8\n\nH2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10\nH2656PUT_8TAP_HV 8, 10\n\nH2656PUT_8TAP_HV 4, 12\nH2656PUT_8TAP_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:29", "text": "H2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10\nH2656PUT_8TAP_HV 8, 10\n\nH2656PUT_8TAP_HV 4, 12\nH2656PUT_8TAP_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1121, "line_end": 1160}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:2", "text": "SECTION .text\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n%macro VPBROADCASTW 2\n%if notcpuflag(avx2)\n    movd           %1, %2\n    pshuflw        %1, %1, 0\n    punpcklwd      %1, %1\n%else\n    vpbroadcastw   %1, %2\n%endif\n%endmacro\n\n%macro MC_4TAP_FILTER 4 ; bitdepth, filter, a, b,\n    VPBROADCASTW   %3, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW   %4, [%2q + 1 * 2]  ; coeff 2, 3\n%if %1 != 8\n    pmovsxbw       %3, xmm%3\n    pmovsxbw       %4, xmm%4\n%endif\n%endmacro\n\n%macro MC_4TAP_HV_FILTER 1\n    VPBROADCASTW  m12, [vfq + 0 * 2]  ; vf 0, 1\n    VPBROADCASTW  m13, [vfq + 1 * 2]  ; vf 2, 3\n    VPBROADCASTW  m14, [hfq + 0 * 2]  ; hf 0, 1\n    VPBROADCASTW  m15, [hfq + 1 * 2]  ; hf 2, 3\n\n    pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro MC_8TAP_SAVE_FILTER 5    ;offset, mm registers\n    mova [rsp + %1 + 0*mmsize], %2\n    mova [rsp + %1 + 1*mmsize], %3\n    mova [rsp + %1 + 2*mmsize], %4\n    mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW                      m13, [%2q + 1 * 2]  ; coeff 2, 3\n    VPBROADCASTW                      m14, [%2q + 2 * 2]  ; coeff 4, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "a72b00675cfc8e52d4f5cc966997da798d920fea", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a72b00675cfc8e52d4f5cc966997da798d920fea/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:3", "text": "pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro MC_8TAP_SAVE_FILTER 5    ;offset, mm registers\n    mova [rsp + %1 + 0*mmsize], %2\n    mova [rsp + %1 + 1*mmsize], %3\n    mova [rsp + %1 + 2*mmsize], %4\n    mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW                      m13, [%2q + 1 * 2]  ; coeff 2, 3\n    VPBROADCASTW                      m14, [%2q + 2 * 2]  ; coeff 4, 5\n    VPBROADCASTW                      m15, [%2q + 3 * 2]  ; coeff 6, 7\n\n%if %1 != 8\n    pmovsxbw                          m12, xm12\n    pmovsxbw                          m13, xm13\n    pmovsxbw                          m14, xm14\n    pmovsxbw                          m15, xm15\n%endif\n%if %0 == 3\n    MC_8TAP_SAVE_FILTER     %3, m12, m13, m14, m15\n%endif\n%endmacro\n\n%macro MC_4TAP_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "a72b00675cfc8e52d4f5cc966997da798d920fea", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a72b00675cfc8e52d4f5cc966997da798d920fea/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:3", "text": "pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro MC_8TAP_SAVE_FILTER 5    ;offset, mm registers\n    mova [rsp + %1 + 0*mmsize], %2\n    mova [rsp + %1 + 1*mmsize], %3\n    mova [rsp + %1 + 2*mmsize], %4\n    mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW                      m13, [%2q + 1 * 2]  ; coeff 2, 3\n    VPBROADCASTW                      m14, [%2q + 2 * 2]  ; coeff 4, 5\n    VPBROADCASTW                      m15, [%2q + 3 * 2]  ; coeff 6, 7\n%if %0 == 3\n    MC_8TAP_SAVE_FILTER                %3, m12, m13, m14, m15\n%endif\n\n%if %1 != 8\n    pmovsxbw                          m12, xm12\n    pmovsxbw                          m13, xm13\n    pmovsxbw                          m14, xm14\n    pmovsxbw                          m15, xm15\n    %if %0 == 3\n    MC_8TAP_SAVE_FILTER     %3 + 4*mmsize, m12, m13, m14, m15\n    %endif\n%elif %0 == 3\n    pmovsxbw                          m8, xm12\n    pmovsxbw                          m9, xm13\n    pmovsxbw                         m10, xm14\n    pmovsxbw                         m11, xm15\n    MC_8TAP_SAVE_FILTER     %3 + 4*mmsize, m8, m9, m10, m11\n%endif\n\n%endmacro\n\n%macro MC_4TAP_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:4", "text": "%endmacro\n\n%macro MC_4TAP_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 7\n    SBUTTERFLY        wd, 2, 3, 7\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_H_LOAD 4\n%assign %%stride (%1+7)/8\n%if %1 == 8\n%if %3 <= 4\n%define %%load movd\n%elif %3 == 8\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:5", "text": "%macro MC_8TAP_H_LOAD 4\n%assign %%stride (%1+7)/8\n%if %1 == 8\n%if %3 <= 4\n%define %%load movd\n%elif %3 == 8\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif\n    %%load            m0, [%2-3*%%stride]        ;load data from source\n    %%load            m1, [%2-2*%%stride]\n    %%load            m2, [%2-%%stride  ]\n    %%load            m3, [%2           ]\n    %%load            m4, [%2+%%stride  ]\n    %%load            m5, [%2+2*%%stride]\n    %%load            m6, [%2+3*%%stride]\n    %%load            m7, [%2+4*%%stride]\n\n%if %1 == 8\n%if %3 > 8\n    SBUTTERFLY        wd, 0, 1, %4\n    SBUTTERFLY        wd, 2, 3, %4\n    SBUTTERFLY        wd, 4, 5, %4\n    SBUTTERFLY        wd, 6, 7, %4\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %3 > 4\n    SBUTTERFLY        dq, 0, 1, %4\n    SBUTTERFLY        dq, 2, 3, %4\n    SBUTTERFLY        dq, 4, 5, %4\n    SBUTTERFLY        dq, 6, 7, %4\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:6", "text": "%endif\n%else\n%if %3 > 4\n    SBUTTERFLY        dq, 0, 1, %4\n    SBUTTERFLY        dq, 2, 3, %4\n    SBUTTERFLY        dq, 4, 5, %4\n    SBUTTERFLY        dq, 6, 7, %4\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride\n    movu              m1, [%5q+   %3q     ]      ;load x- 2*srcstride\n    movu              m2, [%5q+ 2*%3q     ]      ;load x-srcstride\n    movu              m3, [%2       ]      ;load x\n    movu              m4, [%2+   %3q]      ;load x+stride\n    movu              m5, [%2+ 2*%3q]      ;load x+2*stride\n    movu              m6, [%2+r3srcq]      ;load x+3*stride\n    movu              m7, [%2+ 4*%3q]      ;load x+4*stride\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 8\n    SBUTTERFLY        bw, 2, 3, 8\n    SBUTTERFLY        bw, 4, 5, 8\n    SBUTTERFLY        bw, 6, 7, 8\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 8\n    SBUTTERFLY        wd, 2, 3, 8\n    SBUTTERFLY        wd, 4, 5, 8\n    SBUTTERFLY        wd, 6, 7, 8\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:7", "text": "%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 8\n    SBUTTERFLY        wd, 2, 3, 8\n    SBUTTERFLY        wd, 4, 5, 8\n    SBUTTERFLY        wd, 6, 7, 8\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_12STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_12STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_12STORE12 3\n    PEL_12STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_12STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_12STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n\n%macro PEL_10STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_10STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_10STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    PEL_10STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:8", "text": "%macro PEL_10STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_10STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_10STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    PEL_10STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_10STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n%macro PEL_10STORE32 3\n    PEL_10STORE16     %1, %2, %3\n    movu         [%1+32], %3\n%endmacro\n\n%macro PEL_8STORE2 3\n    pextrw          [%1], %2, 0\n%endmacro\n%macro PEL_8STORE4 3\n    movd            [%1], %2\n%endmacro\n%macro PEL_8STORE6 3\n    movd            [%1], %2\n    pextrw        [%1+4], %2, 2\n%endmacro\n%macro PEL_8STORE8 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_8STORE12 3\n    movq            [%1], %2\n    psrldq            %2, 8\n    movd          [%1+8], %2\n%endmacro\n%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    movu          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:9", "text": "pextrw        [%1+4], %2, 2\n%endmacro\n%macro PEL_8STORE8 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_8STORE12 3\n    movq            [%1], %2\n    psrldq            %2, 8\n    movd          [%1+8], %2\n%endmacro\n%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    movu          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro\n\n%macro LOOP_END 3\n    add              %1q, dststrideq             ; dst += dststride\n    add              %2q, %3q                    ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n%endmacro\n\n\n%macro MC_PIXEL_COMPUTE 2-3 ;width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && %0 ==3\n%if %1 > 16\n    vextracti128 xm1, m0, 1\n    pmovzxbw      m1, xm1\n    psllw         m1, 14-%2\n%endif\n    pmovzxbw      m0, xm0\n%else ; not avx\n%if %1 > 8\n    punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro MC_4TAP_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:10", "text": "punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro MC_4TAP_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10\n%endif\n    pmaddubsw      %%reg0, %3   ;x1*c1+x2*c2\n    pmaddubsw      %%reg2, %4   ;x3*c3+x4*c4\n    paddw          %%reg0, %%reg2\n%if %2 > 8\n    pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n    psrad          %%reg1, %1-8\n%endif\n    psrad          %%reg0, %1-8\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro MC_8TAP_HV_COMPUTE 4     ; width, bitdepth, filter\n\n%if %2 == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:11", "text": "paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n    psrad          %%reg1, %1-8\n%endif\n    psrad          %%reg0, %1-8\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro MC_8TAP_HV_COMPUTE 4     ; width, bitdepth, filter\n\n%if %2 == 8\n    pmaddubsw         m0, [%3q+0*mmsize]    ;x1*c1+x2*c2\n    pmaddubsw         m2, [%3q+1*mmsize]    ;x3*c3+x4*c4\n    pmaddubsw         m4, [%3q+2*mmsize]    ;x5*c5+x6*c6\n    pmaddubsw         m6, [%3q+3*mmsize]    ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [%3q+4*mmsize]\n    pmaddwd           m2, [%3q+5*mmsize]\n    pmaddwd           m4, [%3q+6*mmsize]\n    pmaddwd           m6, [%3q+7*mmsize]\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n    psrad             m0, %2-8\n%if %1 > 4\n    pmaddwd           m1, [%3q+4*mmsize]\n    pmaddwd           m3, [%3q+5*mmsize]\n    pmaddwd           m5, [%3q+6*mmsize]\n    pmaddwd           m7, [%3q+7*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n    psrad             m1, %2-8\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n\n%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:12", "text": "pmaddwd           m7, [%3q+7*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n    psrad             m1, %2-8\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n\n%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301\n    vinserti128 m2, m2, xm3, 1\n    SWAP 3, 10\n\n\n    vperm2i128 m10, m4,  m5, q0301\n    vinserti128 m4, m4, xm5, 1\n    SWAP 5, 10\n\n    vperm2i128 m10, m6,  m7, q0301\n    vinserti128 m6, m6, xm7, 1\n    SWAP 7, 10\n%endif\n\n    pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n    psrad             m0, %2-8\n%if %1 > 4\n    pmaddwd           m1, m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:13", "text": "%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n    psrad             m0, %2-8\n%if %1 > 4\n    pmaddwd           m1, m12\n    pmaddwd           m3, m13\n    pmaddwd           m5, m14\n    pmaddwd           m7, m15\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n    psrad             m1, %2-8\n%endif\n%endif\n%endmacro\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void %1_put_pixels(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                         int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_PIXELS 3\n    MC_PIXELS       %1, %2, %3\n    MC_UNI_PIXELS   %1, %2, %3\n%endmacro\n\n%macro MC_PIXELS 3\ncglobal %1_put_pixels%2_%3, 5, 5, 3, dst, dststride, src, srcstride, height\n    pxor              m2, m2\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:14", "text": "CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void %1_put_pixels(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                         int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_PIXELS 3\n    MC_PIXELS       %1, %2, %3\n    MC_UNI_PIXELS   %1, %2, %3\n%endmacro\n\n%macro MC_PIXELS 3\ncglobal %1_put_pixels%2_%3, 5, 5, 3, dst, dststride, src, srcstride, height\n    pxor              m2, m2\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    MC_PIXEL_COMPUTE  %2, %3, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END         dst, src, srcstride\n    RET\n%endmacro\n\n%macro MC_UNI_PIXELS 3\ncglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP 3\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\n; ******************************\n; void %1_put_4tap_hX(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_4tap_h%2_%3, 6, 6, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    MC_4TAP_FILTER       %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m4, m5, 1\n    PEL_10STORE%2      dstq, m0, m1\n    LOOP_END            dst, src, srcstride\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:15", "text": "%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\n; ******************************\n; void %1_put_4tap_hX(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_4tap_h%2_%3, 6, 6, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    MC_4TAP_FILTER       %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m4, m5, 1\n    PEL_10STORE%2      dstq, m0, m1\n    LOOP_END            dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_hX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_h%2_%3, 6, 7, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    movdqa            m6, [scale_%3]\n    MC_4TAP_FILTER    %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void %1_put_4tap_v(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END          dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_vX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    movdqa            m6, [scale_%3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:16", "text": "; void %1_put_4tap_v(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END          dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_vX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    movdqa            m6, [scale_%3]\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER       %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP_HV 3\n; ******************************\n; void put_4tap_hv(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:17", "text": "cglobal %1_put_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %2 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m2, m0, xm4, 1\n    vperm2i128        m3, m0, m4, q0301\n    PEL_10STORE%2     dstq, m2, m3\n%else\n    PEL_10STORE%2     dstq, m0, m4\n%endif\n%else\n    PEL_10STORE%2     dstq, m0, m1\n%endif\n    movdqa            m4, m5\n    movdqa            m5, m6\n    movdqa            m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova              m8, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:18", "text": "punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m2, m0, xm4, 1\n    vperm2i128        m3, m0, m4, q0301\n    PEL_10STORE%2     dstq, m2, m3\n%else\n    PEL_10STORE%2     dstq, m0, m4\n%endif\n%else\n    PEL_10STORE%2     dstq, m0, m1\n%endif\n    movdqa            m4, m5\n    movdqa            m5, m6\n    movdqa            m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    LOOP_END         dst, src, srcstride\n    RET\n\ncglobal %1_put_uni_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m8, m1\n%endif\n    SWAP                 m4, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m10, m1\n%endif\n    SWAP                 m6, m0\n    add                srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m11, m1\n%endif\n    mova                 m7, m0\n    punpcklwd            m0, m4, m5\n    punpcklwd            m2, m6, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:19", "text": "SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m10, m1\n%endif\n    SWAP                 m6, m0\n    add                srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m11, m1\n%endif\n    mova                 m7, m0\n    punpcklwd            m0, m4, m5\n    punpcklwd            m2, m6, m7\n%if %2 > 4\n    punpckhwd            m1, m4, m5\n    punpckhwd            m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd            m4, m8, m9\n    punpcklwd            m2, m10, m11\n    punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n    UNI_COMPUTE          %2, %3, m0, m4, [scale_%3]\n%else\n    UNI_COMPUTE          %2, %3, m0, m1, [scale_%3]\n%endif\n    PEL_%3STORE%2      dstq, m0, m1\n    mova                 m4, m5\n    mova                 m5, m6\n    mova                 m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_8TAP 3\ncglobal %1_put_8tap_h%2_%3, 6, 6, 16, dst, dststride, src, srcstride, height, hf\n    MC_8TAP_FILTER          %3, hf\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:20", "text": "mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_8TAP 3\ncglobal %1_put_8tap_h%2_%3, 6, 6, 16, dst, dststride, src, srcstride, height, hf\n    MC_8TAP_FILTER          %3, hf\n.loop:\n    MC_8TAP_H_LOAD          %3, srcq, %2, 10\n    MC_8TAP_COMPUTE         %2, %3, 1\n%if %3 > 8\n    packssdw                m0, m1\n%endif\n    PEL_10STORE%2         dstq, m0, m1\n    LOOP_END               dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_h%2_%3, 6, 7, 16 , dst, dststride, src, srcstride, height, hf\n    mova                 m9, [scale_%3]\n    MC_8TAP_FILTER       %3, hf\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 10\n    MC_8TAP_COMPUTE      %2, %3\n%if %3 > 8\n    packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n\n\n; ******************************\n; void put_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                      int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_8tap_v%2_%3, 7, 8, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER        %3, vf\n    lea               r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD        %3, srcq, srcstride, %2, r7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:21", "text": "packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n\n\n; ******************************\n; void put_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                      int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_8tap_v%2_%3, 7, 8, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER        %3, vf\n    lea               r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD        %3, srcq, srcstride, %2, r7\n    MC_8TAP_COMPUTE       %2, %3, 1\n%if %3 > 8\n    packssdw              m0, m1\n%endif\n    PEL_10STORE%2       dstq, m0, m1\n    LOOP_END             dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_v%2_%3, 7, 9, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER    %3, vf\n    movdqa            m9, [scale_%3]\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD    %3, srcq, srcstride, %2, r8\n    MC_8TAP_COMPUTE   %2, %3\n%if %3 > 8\n    packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n\n; ******************************\n; void put_8tap_hvX_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                     int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n%macro PUT_8TAP_HV 3\ncglobal %1_put_8tap_hv%2_%3, 7, 8, 16, 0 - mmsize*16, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:22", "text": "packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n\n; ******************************\n; void put_8tap_hvX_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                     int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n%macro PUT_8TAP_HV 3\ncglobal %1_put_8tap_hv%2_%3, 7, 8, 16, 0 - mmsize*16, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n\n    lea                  r3srcq, [srcstrideq*3]\n    sub                    srcq, r3srcq\n\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m9, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m10, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m13, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m14, m0\n    add                    srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m15, m0\n    punpcklwd                m0, m8, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:23", "text": "MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m13, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m14, m0\n    add                    srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m15, m0\n    punpcklwd                m0, m8, m9\n    punpcklwd                m2, m10, m11\n    punpcklwd                m4, m12, m13\n    punpcklwd                m6, m14, m15\n%if %2 > 4\n    punpckhwd                m1, m8, m9\n    punpckhwd                m3, m10, m11\n    punpckhwd                m5, m12, m13\n    punpckhwd                m7, m14, m15\n%endif\n%if %2 <= 4\n    movq                     m8, m9\n    movq                     m9, m10\n    movq                    m10, m11\n    movq                    m11, m12\n    movq                    m12, m13\n    movq                    m13, m14\n    movq                    m14, m15\n%else\n    movdqa                   m8, m9\n    movdqa                   m9, m10\n    movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE       %2, 14, vf, ackssdw\n    PEL_10STORE%2          dstq, m0, m1\n\n    LOOP_END                dst, src, srcstride\n    RET\n\n\ncglobal %1_put_uni_8tap_hv%2_%3, 7, 9, 16, 0 - 16*mmsize, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:24", "text": "movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE       %2, 14, vf, ackssdw\n    PEL_10STORE%2          dstq, m0, m1\n\n    LOOP_END                dst, src, srcstride\n    RET\n\n\ncglobal %1_put_uni_8tap_hv%2_%3, 7, 9, 16, 0 - 16*mmsize, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %2 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:25", "text": "MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %2 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13\n    punpckhwd         m7, m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE   %2, 14, vf, ackusdw\n    UNI_COMPUTE       %2, %3, m0, m1, [scale_%3]\n    PEL_%3STORE%2   dstq, m0, m1\n\n%if %2 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    mova            m8, m9\n    mova            m9, m10\n    mova           m10, m11\n    mova           m11, m12\n    mova           m12, m13\n    mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n%macro H2656PUT_PIXELS 2\n    PUT_PIXELS h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP 2\n    PUT_4TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP_HV 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:26", "text": "mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n%macro H2656PUT_PIXELS 2\n    PUT_PIXELS h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP 2\n    PUT_4TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP_HV 2\n    PUT_4TAP_HV h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP 2\n    PUT_8TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP_HV 2\n    PUT_8TAP_HV h2656, %1, %2\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM sse4\nH2656PUT_PIXELS  2, 8\nH2656PUT_PIXELS  4, 8\nH2656PUT_PIXELS  6, 8\nH2656PUT_PIXELS  8, 8\nH2656PUT_PIXELS 12, 8\nH2656PUT_PIXELS 16, 8\n\nH2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10\n\nH2656PUT_PIXELS 2, 12\nH2656PUT_PIXELS 4, 12\nH2656PUT_PIXELS 6, 12\nH2656PUT_PIXELS 8, 12\n\nH2656PUT_4TAP 2,  8\nH2656PUT_4TAP 4,  8\nH2656PUT_4TAP 6,  8\nH2656PUT_4TAP 8,  8\n\nH2656PUT_4TAP 12,  8\nH2656PUT_4TAP 16, 8\n\nH2656PUT_4TAP 2, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:27", "text": "H2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10\n\nH2656PUT_PIXELS 2, 12\nH2656PUT_PIXELS 4, 12\nH2656PUT_PIXELS 6, 12\nH2656PUT_PIXELS 8, 12\n\nH2656PUT_4TAP 2,  8\nH2656PUT_4TAP 4,  8\nH2656PUT_4TAP 6,  8\nH2656PUT_4TAP 8,  8\n\nH2656PUT_4TAP 12,  8\nH2656PUT_4TAP 16, 8\n\nH2656PUT_4TAP 2, 10\nH2656PUT_4TAP 4, 10\nH2656PUT_4TAP 6, 10\nH2656PUT_4TAP 8, 10\n\nH2656PUT_4TAP 2, 12\nH2656PUT_4TAP 4, 12\nH2656PUT_4TAP 6, 12\nH2656PUT_4TAP 8, 12\n\nH2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8\nH2656PUT_8TAP 16, 8\n\nH2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:28", "text": "H2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8\nH2656PUT_8TAP 16, 8\n\nH2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10\nH2656PUT_8TAP_HV 8, 10\n\nH2656PUT_8TAP_HV 4, 12\nH2656PUT_8TAP_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1081, "line_end": 1130}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:29", "text": "H2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "88870f33abea3788287cd501aea6782c94b2df68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/88870f33abea3788287cd501aea6782c94b2df68/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1121, "line_end": 1130}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:10", "text": "punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro MC_4TAP_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10\n%endif\n    pmaddubsw      %%reg0, %3   ;x1*c1+x2*c2\n    pmaddubsw      %%reg2, %4   ;x3*c3+x4*c4\n    paddw          %%reg0, %%reg2\n%if %2 > 8\n    pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n%if %1 != 8\n    psrad          %%reg1, %1-8\n%endif\n%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:11", "text": "paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n%if %1 != 8\n    psrad          %%reg1, %1-8\n%endif\n%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro MC_8TAP_HV_COMPUTE 4     ; width, bitdepth, filter\n\n%if %2 == 8\n    pmaddubsw         m0, [%3q+0*mmsize]    ;x1*c1+x2*c2\n    pmaddubsw         m2, [%3q+1*mmsize]    ;x3*c3+x4*c4\n    pmaddubsw         m4, [%3q+2*mmsize]    ;x5*c5+x6*c6\n    pmaddubsw         m6, [%3q+3*mmsize]    ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [%3q+4*mmsize]\n    pmaddwd           m2, [%3q+5*mmsize]\n    pmaddwd           m4, [%3q+6*mmsize]\n    pmaddwd           m6, [%3q+7*mmsize]\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [%3q+4*mmsize]\n    pmaddwd           m3, [%3q+5*mmsize]\n    pmaddwd           m5, [%3q+6*mmsize]\n    pmaddwd           m7, [%3q+7*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n\n%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:12", "text": "psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [%3q+4*mmsize]\n    pmaddwd           m3, [%3q+5*mmsize]\n    pmaddwd           m5, [%3q+6*mmsize]\n    pmaddwd           m7, [%3q+7*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n\n%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301\n    vinserti128 m2, m2, xm3, 1\n    SWAP 3, 10\n\n\n    vperm2i128 m10, m4,  m5, q0301\n    vinserti128 m4, m4, xm5, 1\n    SWAP 5, 10\n\n    vperm2i128 m10, m6,  m7, q0301\n    vinserti128 m6, m6, xm7, 1\n    SWAP 7, 10\n%endif\n\n    pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:13", "text": "pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, m12\n    pmaddwd           m3, m13\n    pmaddwd           m5, m14\n    pmaddwd           m7, m15\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n%endif\n%endmacro\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void %1_put_pixels(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:14", "text": "%endif\n%endmacro\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void %1_put_pixels(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                         int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_PIXELS 3\n    MC_PIXELS       %1, %2, %3\n    MC_UNI_PIXELS   %1, %2, %3\n%endmacro\n\n%macro MC_PIXELS 3\ncglobal %1_put_pixels%2_%3, 5, 5, 3, dst, dststride, src, srcstride, height\n    pxor              m2, m2\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    MC_PIXEL_COMPUTE  %2, %3, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END         dst, src, srcstride\n    RET\n%endmacro\n\n%macro MC_UNI_PIXELS 3\ncglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP 3\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\n; ******************************\n; void %1_put_4tap_hX(int16_t *dst, ptrdiff_t dststride,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:15", "text": "cglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP 3\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\n; ******************************\n; void %1_put_4tap_hX(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_4tap_h%2_%3, 6, 6, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    MC_4TAP_FILTER       %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m4, m5, 1\n    PEL_10STORE%2      dstq, m0, m1\n    LOOP_END            dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_hX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_h%2_%3, 6, 7, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    movdqa            m6, [scale_%3]\n    MC_4TAP_FILTER    %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void %1_put_4tap_v(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:16", "text": ".loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void %1_put_4tap_v(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END          dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_vX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    movdqa            m6, [scale_%3]\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER       %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP_HV 3\n; ******************************\n; void put_4tap_hv(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m8, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:17", "text": "add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP_HV 3\n; ******************************\n; void put_4tap_hv(int16_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %2 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m2, m0, xm4, 1\n    vperm2i128        m3, m0, m4, q0301", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:18", "text": "%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %2 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m2, m0, xm4, 1\n    vperm2i128        m3, m0, m4, q0301\n    PEL_10STORE%2     dstq, m2, m3\n%else\n    PEL_10STORE%2     dstq, m0, m4\n%endif\n%else\n    PEL_10STORE%2     dstq, m0, m1\n%endif\n    movdqa            m4, m5\n    movdqa            m5, m6\n    movdqa            m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    LOOP_END         dst, src, srcstride\n    RET\n\ncglobal %1_put_uni_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m8, m1\n%endif\n    SWAP                 m4, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m10, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:19", "text": "sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m8, m1\n%endif\n    SWAP                 m4, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m10, m1\n%endif\n    SWAP                 m6, m0\n    add                srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m11, m1\n%endif\n    mova                 m7, m0\n    punpcklwd            m0, m4, m5\n    punpcklwd            m2, m6, m7\n%if %2 > 4\n    punpckhwd            m1, m4, m5\n    punpckhwd            m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd            m4, m8, m9\n    punpcklwd            m2, m10, m11\n    punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n    UNI_COMPUTE          %2, %3, m0, m4, [scale_%3]\n%else\n    UNI_COMPUTE          %2, %3, m0, m1, [scale_%3]\n%endif\n    PEL_%3STORE%2      dstq, m0, m1\n    mova                 m4, m5\n    mova                 m5, m6\n    mova                 m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:20", "text": "punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n    UNI_COMPUTE          %2, %3, m0, m4, [scale_%3]\n%else\n    UNI_COMPUTE          %2, %3, m0, m1, [scale_%3]\n%endif\n    PEL_%3STORE%2      dstq, m0, m1\n    mova                 m4, m5\n    mova                 m5, m6\n    mova                 m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_8TAP 3\ncglobal %1_put_8tap_h%2_%3, 6, 6, 16, dst, dststride, src, srcstride, height, hf\n    MC_8TAP_FILTER          %3, hf\n.loop:\n    MC_8TAP_H_LOAD          %3, srcq, %2, 10\n    MC_8TAP_COMPUTE         %2, %3, 1\n%if %3 > 8\n    packssdw                m0, m1\n%endif\n    PEL_10STORE%2         dstq, m0, m1\n    LOOP_END               dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_h%2_%3, 6, 7, 16 , dst, dststride, src, srcstride, height, hf\n    mova                 m9, [scale_%3]\n    MC_8TAP_FILTER       %3, hf\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 10\n    MC_8TAP_COMPUTE      %2, %3\n%if %3 > 8\n    packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:21", "text": "; ******************************\n; void put_uni_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_h%2_%3, 6, 7, 16 , dst, dststride, src, srcstride, height, hf\n    mova                 m9, [scale_%3]\n    MC_8TAP_FILTER       %3, hf\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 10\n    MC_8TAP_COMPUTE      %2, %3\n%if %3 > 8\n    packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n\n\n; ******************************\n; void put_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                      int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_8tap_v%2_%3, 7, 8, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER        %3, vf\n    lea               r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD        %3, srcq, srcstride, %2, r7\n    MC_8TAP_COMPUTE       %2, %3, 1\n%if %3 > 8\n    packssdw              m0, m1\n%endif\n    PEL_10STORE%2       dstq, m0, m1\n    LOOP_END             dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_v%2_%3, 7, 9, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER    %3, vf\n    movdqa            m9, [scale_%3]\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD    %3, srcq, srcstride, %2, r8\n    MC_8TAP_COMPUTE   %2, %3\n%if %3 > 8\n    packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:22", "text": "; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_v%2_%3, 7, 9, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER    %3, vf\n    movdqa            m9, [scale_%3]\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD    %3, srcq, srcstride, %2, r8\n    MC_8TAP_COMPUTE   %2, %3\n%if %3 > 8\n    packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n\n; ******************************\n; void put_8tap_hvX_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                     int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n%macro PUT_8TAP_HV 3\ncglobal %1_put_8tap_hv%2_%3, 7, 8, 16, 0 - mmsize*16, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n\n    lea                  r3srcq, [srcstrideq*3]\n    sub                    srcq, r3srcq\n\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m9, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m10, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:23", "text": "MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m9, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m10, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m13, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m14, m0\n    add                    srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m15, m0\n    punpcklwd                m0, m8, m9\n    punpcklwd                m2, m10, m11\n    punpcklwd                m4, m12, m13\n    punpcklwd                m6, m14, m15\n%if %2 > 4\n    punpckhwd                m1, m8, m9\n    punpckhwd                m3, m10, m11\n    punpckhwd                m5, m12, m13\n    punpckhwd                m7, m14, m15\n%endif\n%if %2 <= 4\n    movq                     m8, m9\n    movq                     m9, m10\n    movq                    m10, m11\n    movq                    m11, m12\n    movq                    m12, m13\n    movq                    m13, m14\n    movq                    m14, m15\n%else\n    movdqa                   m8, m9\n    movdqa                   m9, m10\n    movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE       %2, 14, vf, ackssdw\n    PEL_10STORE%2          dstq, m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:24", "text": "%endif\n%if %2 <= 4\n    movq                     m8, m9\n    movq                     m9, m10\n    movq                    m10, m11\n    movq                    m11, m12\n    movq                    m12, m13\n    movq                    m13, m14\n    movq                    m14, m15\n%else\n    movdqa                   m8, m9\n    movdqa                   m9, m10\n    movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE       %2, 14, vf, ackssdw\n    PEL_10STORE%2          dstq, m0, m1\n\n    LOOP_END                dst, src, srcstride\n    RET\n\n\ncglobal %1_put_uni_8tap_hv%2_%3, 7, 9, 16, 0 - 16*mmsize, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:25", "text": "MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %2 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13\n    punpckhwd         m7, m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE   %2, 14, vf, ackusdw\n    UNI_COMPUTE       %2, %3, m0, m1, [scale_%3]\n    PEL_%3STORE%2   dstq, m0, m1\n\n%if %2 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    mova            m8, m9\n    mova            m9, m10\n    mova           m10, m11\n    mova           m11, m12\n    mova           m12, m13\n    mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:26", "text": "movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    mova            m8, m9\n    mova            m9, m10\n    mova           m10, m11\n    mova           m11, m12\n    mova           m12, m13\n    mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n%macro H2656PUT_PIXELS 2\n    PUT_PIXELS h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP 2\n    PUT_4TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP_HV 2\n    PUT_4TAP_HV h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP 2\n    PUT_8TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP_HV 2\n    PUT_8TAP_HV h2656, %1, %2\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM sse4\nH2656PUT_PIXELS  2, 8\nH2656PUT_PIXELS  4, 8\nH2656PUT_PIXELS  6, 8\nH2656PUT_PIXELS  8, 8\nH2656PUT_PIXELS 12, 8\nH2656PUT_PIXELS 16, 8\n\nH2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10\n\nH2656PUT_PIXELS 2, 12\nH2656PUT_PIXELS 4, 12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:27", "text": "PUT_8TAP_HV h2656, %1, %2\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM sse4\nH2656PUT_PIXELS  2, 8\nH2656PUT_PIXELS  4, 8\nH2656PUT_PIXELS  6, 8\nH2656PUT_PIXELS  8, 8\nH2656PUT_PIXELS 12, 8\nH2656PUT_PIXELS 16, 8\n\nH2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10\n\nH2656PUT_PIXELS 2, 12\nH2656PUT_PIXELS 4, 12\nH2656PUT_PIXELS 6, 12\nH2656PUT_PIXELS 8, 12\n\nH2656PUT_4TAP 2,  8\nH2656PUT_4TAP 4,  8\nH2656PUT_4TAP 6,  8\nH2656PUT_4TAP 8,  8\n\nH2656PUT_4TAP 12,  8\nH2656PUT_4TAP 16, 8\n\nH2656PUT_4TAP 2, 10\nH2656PUT_4TAP 4, 10\nH2656PUT_4TAP 6, 10\nH2656PUT_4TAP 8, 10\n\nH2656PUT_4TAP 2, 12\nH2656PUT_4TAP 4, 12\nH2656PUT_4TAP 6, 12\nH2656PUT_4TAP 8, 12\n\nH2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:28", "text": "H2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8\nH2656PUT_8TAP 16, 8\n\nH2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10\nH2656PUT_8TAP_HV 8, 10\n\nH2656PUT_8TAP_HV 4, 12\nH2656PUT_8TAP_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:29", "text": "H2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "3693acb855239d8b262cab0684826444981e4471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3693acb855239d8b262cab0684826444981e4471/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1121, "line_end": 1142}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:28", "text": "H2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8\nH2656PUT_8TAP 16, 8\n\nH2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10\nH2656PUT_8TAP_HV 8, 10\n\nH2656PUT_8TAP_HV 4, 12\nH2656PUT_8TAP_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 32, 8\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "fc5ff6b0b837c8c24904a5be87fd0607526f5989", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fc5ff6b0b837c8c24904a5be87fd0607526f5989/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:29", "text": "H2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 32, 8\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "fc5ff6b0b837c8c24904a5be87fd0607526f5989", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fc5ff6b0b837c8c24904a5be87fd0607526f5989/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1121, "line_end": 1143}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:1", "text": "; /*\n; * Provide SSE luma and chroma mc functions for HEVC/VVC decoding\n; * Copyright (c) 2013 Pierre-Edouard LEPERE\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 64\n\nSECTION_RODATA 32\ncextern pw_255\ncextern pw_512\ncextern pw_2048\ncextern pw_1023\ncextern pw_1024\ncextern pw_4096\ncextern pw_8192\n%define scale_8 pw_512\n%define scale_10 pw_2048\n%define scale_12 pw_8192\n%define max_pixels_8 pw_255\n%define max_pixels_10 pw_1023\nmax_pixels_12:          times 16 dw ((1 << 12)-1)\ncextern pb_0\n\nSECTION .text\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n%macro VPBROADCASTW 2\n%if notcpuflag(avx2)\n    movd           %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:2", "text": "cextern pb_0\n\nSECTION .text\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n%macro VPBROADCASTW 2\n%if notcpuflag(avx2)\n    movd           %1, %2\n    pshuflw        %1, %1, 0\n    punpcklwd      %1, %1\n%else\n    vpbroadcastw   %1, %2\n%endif\n%endmacro\n\n%macro MC_4TAP_FILTER 4 ; bitdepth, filter, a, b,\n    VPBROADCASTW   %3, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW   %4, [%2q + 1 * 2]  ; coeff 2, 3\n%if %1 != 8\n    pmovsxbw       %3, xmm%3\n    pmovsxbw       %4, xmm%4\n%endif\n%endmacro\n\n%macro MC_4TAP_HV_FILTER 1\n    VPBROADCASTW  m12, [vfq + 0 * 2]  ; vf 0, 1\n    VPBROADCASTW  m13, [vfq + 1 * 2]  ; vf 2, 3\n    VPBROADCASTW  m14, [hfq + 0 * 2]  ; hf 0, 1\n    VPBROADCASTW  m15, [hfq + 1 * 2]  ; hf 2, 3\n\n    pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro MC_8TAP_SAVE_FILTER 5    ;offset, mm registers\n    mova [rsp + %1 + 0*mmsize], %2\n    mova [rsp + %1 + 1*mmsize], %3\n    mova [rsp + %1 + 2*mmsize], %4\n    mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:3", "text": "VPBROADCASTW  m15, [hfq + 1 * 2]  ; hf 2, 3\n\n    pmovsxbw      m12, xm12\n    pmovsxbw      m13, xm13\n%if %1 != 8\n    pmovsxbw      m14, xm14\n    pmovsxbw      m15, xm15\n%endif\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro MC_8TAP_SAVE_FILTER 5    ;offset, mm registers\n    mova [rsp + %1 + 0*mmsize], %2\n    mova [rsp + %1 + 1*mmsize], %3\n    mova [rsp + %1 + 2*mmsize], %4\n    mova [rsp + %1 + 3*mmsize], %5\n%endmacro\n\n%macro MC_8TAP_FILTER 2-3 ;bitdepth, filter, offset\n    VPBROADCASTW                      m12, [%2q + 0 * 2]  ; coeff 0, 1\n    VPBROADCASTW                      m13, [%2q + 1 * 2]  ; coeff 2, 3\n    VPBROADCASTW                      m14, [%2q + 2 * 2]  ; coeff 4, 5\n    VPBROADCASTW                      m15, [%2q + 3 * 2]  ; coeff 6, 7\n%if %0 == 3\n    MC_8TAP_SAVE_FILTER                %3, m12, m13, m14, m15\n%endif\n\n%if %1 != 8\n    pmovsxbw                          m12, xm12\n    pmovsxbw                          m13, xm13\n    pmovsxbw                          m14, xm14\n    pmovsxbw                          m15, xm15\n    %if %0 == 3\n    MC_8TAP_SAVE_FILTER     %3 + 4*mmsize, m12, m13, m14, m15\n    %endif\n%elif %0 == 3\n    pmovsxbw                          m8, xm12\n    pmovsxbw                          m9, xm13\n    pmovsxbw                         m10, xm14\n    pmovsxbw                         m11, xm15\n    MC_8TAP_SAVE_FILTER     %3 + 4*mmsize, m8, m9, m10, m11\n%endif\n\n%endmacro\n\n%macro MC_4TAP_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:4", "text": "MC_8TAP_SAVE_FILTER     %3 + 4*mmsize, m8, m9, m10, m11\n%endif\n\n%endmacro\n\n%macro MC_4TAP_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 7\n    SBUTTERFLY        wd, 2, 3, 7\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_H_LOAD 4\n%assign %%stride (%1+7)/8\n%if %1 == 8\n%if %3 <= 4\n%define %%load movd\n%elif %3 == 8\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:5", "text": "%endif\n%endmacro\n\n%macro MC_8TAP_H_LOAD 4\n%assign %%stride (%1+7)/8\n%if %1 == 8\n%if %3 <= 4\n%define %%load movd\n%elif %3 == 8\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif\n    %%load            m0, [%2-3*%%stride]        ;load data from source\n    %%load            m1, [%2-2*%%stride]\n    %%load            m2, [%2-%%stride  ]\n    %%load            m3, [%2           ]\n    %%load            m4, [%2+%%stride  ]\n    %%load            m5, [%2+2*%%stride]\n    %%load            m6, [%2+3*%%stride]\n    %%load            m7, [%2+4*%%stride]\n\n%if %1 == 8\n%if %3 > 8\n    SBUTTERFLY        wd, 0, 1, %4\n    SBUTTERFLY        wd, 2, 3, %4\n    SBUTTERFLY        wd, 4, 5, %4\n    SBUTTERFLY        wd, 6, 7, %4\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %3 > 4\n    SBUTTERFLY        dq, 0, 1, %4\n    SBUTTERFLY        dq, 2, 3, %4\n    SBUTTERFLY        dq, 4, 5, %4\n    SBUTTERFLY        dq, 6, 7, %4\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_V_LOAD 5\n    lea              %5q, [%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:6", "text": "punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %3 > 4\n    SBUTTERFLY        dq, 0, 1, %4\n    SBUTTERFLY        dq, 2, 3, %4\n    SBUTTERFLY        dq, 4, 5, %4\n    SBUTTERFLY        dq, 6, 7, %4\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro MC_8TAP_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride\n    movu              m1, [%5q+   %3q     ]      ;load x- 2*srcstride\n    movu              m2, [%5q+ 2*%3q     ]      ;load x-srcstride\n    movu              m3, [%2       ]      ;load x\n    movu              m4, [%2+   %3q]      ;load x+stride\n    movu              m5, [%2+ 2*%3q]      ;load x+2*stride\n    movu              m6, [%2+r3srcq]      ;load x+3*stride\n    movu              m7, [%2+ 4*%3q]      ;load x+4*stride\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 8\n    SBUTTERFLY        bw, 2, 3, 8\n    SBUTTERFLY        bw, 4, 5, 8\n    SBUTTERFLY        bw, 6, 7, 8\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 8\n    SBUTTERFLY        wd, 2, 3, 8\n    SBUTTERFLY        wd, 4, 5, 8\n    SBUTTERFLY        wd, 6, 7, 8\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:7", "text": "%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 8\n    SBUTTERFLY        wd, 2, 3, 8\n    SBUTTERFLY        wd, 4, 5, 8\n    SBUTTERFLY        wd, 6, 7, 8\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_12STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_12STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_12STORE12 3\n    PEL_12STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_12STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_12STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n\n%macro PEL_10STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_10STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_10STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    PEL_10STORE8     %1, %2, %3\n    movq        [%1+16], %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:8", "text": "%endif\n%endmacro\n\n%macro PEL_10STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_10STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_10STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqu         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    PEL_10STORE8     %1, %2, %3\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_10STORE8      %1, %2, %3\n    movdqu       [%1+16], %3\n%endif\n%endmacro\n%macro PEL_10STORE32 3\n    PEL_10STORE16     %1, %2, %3\n    movu         [%1+32], %3\n%endmacro\n\n%macro PEL_8STORE2 3\n    pextrw          [%1], %2, 0\n%endmacro\n%macro PEL_8STORE4 3\n    movd            [%1], %2\n%endmacro\n%macro PEL_8STORE6 3\n    movd            [%1], %2\n    pextrw        [%1+4], %2, 2\n%endmacro\n%macro PEL_8STORE8 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_8STORE12 3\n    movq            [%1], %2\n    psrldq            %2, 8\n    movd          [%1+8], %2\n%endmacro\n%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    movu          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:9", "text": "%macro PEL_8STORE6 3\n    movd            [%1], %2\n    pextrw        [%1+4], %2, 2\n%endmacro\n%macro PEL_8STORE8 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_8STORE12 3\n    movq            [%1], %2\n    psrldq            %2, 8\n    movd          [%1+8], %2\n%endmacro\n%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    movu          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro\n\n%macro LOOP_END 3\n    add              %1q, 2*MAX_PB_SIZE          ; dst += dststride\n    add              %2q, %3q                    ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n%endmacro\n\n\n%macro MC_PIXEL_COMPUTE 2-3 ;width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && %0 ==3\n%if %1 > 16\n    vextracti128 xm1, m0, 1\n    pmovzxbw      m1, xm1\n    psllw         m1, 14-%2\n%endif\n    pmovzxbw      m0, xm0\n%else ; not avx\n%if %1 > 8\n    punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro MC_4TAP_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:10", "text": "%else ; not avx\n%if %1 > 8\n    punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro MC_4TAP_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10\n%endif\n    pmaddubsw      %%reg0, %3   ;x1*c1+x2*c2\n    pmaddubsw      %%reg2, %4   ;x3*c3+x4*c4\n    paddw          %%reg0, %%reg2\n%if %2 > 8\n    pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n%if %1 != 8\n    psrad          %%reg1, %1-8\n%endif\n%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:11", "text": "pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n%if %1 != 8\n    psrad          %%reg1, %1-8\n%endif\n%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro MC_8TAP_HV_COMPUTE 4     ; width, bitdepth, filter\n\n%if %2 == 8\n    pmaddubsw         m0, [%3q+0*mmsize]    ;x1*c1+x2*c2\n    pmaddubsw         m2, [%3q+1*mmsize]    ;x3*c3+x4*c4\n    pmaddubsw         m4, [%3q+2*mmsize]    ;x5*c5+x6*c6\n    pmaddubsw         m6, [%3q+3*mmsize]    ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [%3q+4*mmsize]\n    pmaddwd           m2, [%3q+5*mmsize]\n    pmaddwd           m4, [%3q+6*mmsize]\n    pmaddwd           m6, [%3q+7*mmsize]\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [%3q+4*mmsize]\n    pmaddwd           m3, [%3q+5*mmsize]\n    pmaddwd           m5, [%3q+6*mmsize]\n    pmaddwd           m7, [%3q+7*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:12", "text": "paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [%3q+4*mmsize]\n    pmaddwd           m3, [%3q+5*mmsize]\n    pmaddwd           m5, [%3q+6*mmsize]\n    pmaddwd           m7, [%3q+7*mmsize]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n\n%macro MC_8TAP_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301\n    vinserti128 m2, m2, xm3, 1\n    SWAP 3, 10\n\n\n    vperm2i128 m10, m4,  m5, q0301\n    vinserti128 m4, m4, xm5, 1\n    SWAP 5, 10\n\n    vperm2i128 m10, m6,  m7, q0301\n    vinserti128 m6, m6, xm7, 1\n    SWAP 7, 10\n%endif\n\n    pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:13", "text": "SWAP 7, 10\n%endif\n\n    pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, m12\n    pmaddwd           m3, m13\n    pmaddwd           m5, m14\n    pmaddwd           m7, m15\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n%endif\n%endmacro\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:14", "text": "%endif\n%endif\n%endif\n%endmacro\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void %1_put_pixels(int16_t *dst, const uint8_t *_src, ptrdiff_t srcstride,\n;                         int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_PIXELS 3\n    MC_PIXELS       %1, %2, %3\n    MC_UNI_PIXELS   %1, %2, %3\n%endmacro\n\n%macro MC_PIXELS 3\ncglobal %1_put_pixels%2_%3, 4, 4, 3, dst, src, srcstride, height\n    pxor              m2, m2\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    MC_PIXEL_COMPUTE  %2, %3, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END         dst, src, srcstride\n    RET\n%endmacro\n\n%macro MC_UNI_PIXELS 3\ncglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP 3\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:15", "text": "%macro MC_UNI_PIXELS 3\ncglobal %1_put_uni_pixels%2_%3, 5, 5, 2, dst, dststride, src, srcstride, height\n.loop:\n    SIMPLE_LOAD       %2, %3, srcq, m0\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP 3\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\n; ******************************\n; void %1_put_4tap_hX(int16_t *dst,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_4tap_h%2_%3, 5, 5, XMM_REGS, dst, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    MC_4TAP_FILTER       %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m4, m5, 1\n    PEL_10STORE%2      dstq, m0, m1\n    LOOP_END            dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_hX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_h%2_%3, 6, 7, XMM_REGS, dst, dststride, src, srcstride, height, hf\n%assign %%stride ((%3 + 7)/8)\n    movdqa            m6, [scale_%3]\n    MC_4TAP_FILTER    %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void %1_put_4tap_v(int16_t *dst,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 6, 6, XMM_REGS, dst, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:16", "text": "movdqa            m6, [scale_%3]\n    MC_4TAP_FILTER    %3, hf, m4, m5\n.loop:\n    MC_4TAP_LOAD      %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void %1_put_4tap_v(int16_t *dst,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_v%2_%3, 6, 6, XMM_REGS, dst, src, srcstride, height, r3src, vf\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER    %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5, 1\n    PEL_10STORE%2     dstq, m0, m1\n    LOOP_END          dst, src, srcstride\n    RET\n\n; ******************************\n; void %1_put_uni_4tap_vX(uint8_t *dst, ptrdiff_t dststride,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width);\n; ******************************\ncglobal %1_put_uni_4tap_v%2_%3, 7, 7, XMM_REGS, dst, dststride, src, srcstride, height, r3src, vf\n    movdqa            m6, [scale_%3]\n    sub             srcq, srcstrideq\n    MC_4TAP_FILTER       %3, vf, m4, m5\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_4TAP_LOAD      %3, srcq, srcstride, %2\n    MC_4TAP_COMPUTE   %3, %2, m4, m5\n    UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP_HV 3\n; ******************************\n; void put_4tap_hv(int16_t *dst,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_hv%2_%3, 6, 7, 16 , dst, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:17", "text": "UNI_COMPUTE       %2, %3, m0, m1, m6\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro PUT_4TAP_HV 3\n; ******************************\n; void put_4tap_hv(int16_t *dst,\n;      const uint8_t *_src, ptrdiff_t _srcstride, int height, int8_t *hf, int8_t *vf, int width)\n; ******************************\ncglobal %1_put_4tap_hv%2_%3, 6, 7, 16 , dst, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                 srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %2 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:18", "text": "MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %2 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m2, m0, xm4, 1\n    vperm2i128        m3, m0, m4, q0301\n    PEL_10STORE%2     dstq, m2, m3\n%else\n    PEL_10STORE%2     dstq, m0, m4\n%endif\n%else\n    PEL_10STORE%2     dstq, m0, m1\n%endif\n    movdqa            m4, m5\n    movdqa            m5, m6\n    movdqa            m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    LOOP_END         dst, src, srcstride\n    RET\n\ncglobal %1_put_uni_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m8, m1\n%endif\n    SWAP                 m4, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:19", "text": "cglobal %1_put_uni_4tap_hv%2_%3, 7, 8, 16 , dst, dststride, src, srcstride, height, hf, vf, r3src\n%assign %%stride ((%3 + 7)/8)\n    sub                srcq, srcstrideq\n    MC_4TAP_HV_FILTER    %3\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m8, m1\n%endif\n    SWAP                 m4, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                 m9, m1\n%endif\n    SWAP                 m5, m0\n    add                srcq, srcstrideq\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m10, m1\n%endif\n    SWAP                 m6, m0\n    add                srcq, srcstrideq\n.loop:\n    MC_4TAP_LOAD         %3, srcq-%%stride, %%stride, %2\n    MC_4TAP_COMPUTE      %3, %2, m14, m15\n%if (%2 > 8 && (%3 == 8))\n    SWAP                m11, m1\n%endif\n    mova                 m7, m0\n    punpcklwd            m0, m4, m5\n    punpcklwd            m2, m6, m7\n%if %2 > 4\n    punpckhwd            m1, m4, m5\n    punpckhwd            m3, m6, m7\n%endif\n    MC_4TAP_COMPUTE      14, %2, m12, m13\n%if (%2 > 8 && (%3 == 8))\n    punpcklwd            m4, m8, m9\n    punpcklwd            m2, m10, m11\n    punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n    UNI_COMPUTE          %2, %3, m0, m4, [scale_%3]\n%else\n    UNI_COMPUTE          %2, %3, m0, m1, [scale_%3]\n%endif\n    PEL_%3STORE%2      dstq, m0, m1\n    mova                 m4, m5\n    mova                 m5, m6\n    mova                 m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:20", "text": "punpcklwd            m4, m8, m9\n    punpcklwd            m2, m10, m11\n    punpckhwd            m8, m8, m9\n    punpckhwd            m3, m10, m11\n    MC_4TAP_COMPUTE      14, %2, m12, m13, m4, m2, m8, m3\n    UNI_COMPUTE          %2, %3, m0, m4, [scale_%3]\n%else\n    UNI_COMPUTE          %2, %3, m0, m1, [scale_%3]\n%endif\n    PEL_%3STORE%2      dstq, m0, m1\n    mova                 m4, m5\n    mova                 m5, m6\n    mova                 m6, m7\n%if (%2 > 8 && (%3 == 8))\n    mova                 m8, m9\n    mova                 m9, m10\n    mova                m10, m11\n%endif\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_8tap_hX_X_X(int16_t *dst, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n\n%macro PUT_8TAP 3\ncglobal %1_put_8tap_h%2_%3, 5, 5, 16, dst, src, srcstride, height, hf\n    MC_8TAP_FILTER          %3, hf\n.loop:\n    MC_8TAP_H_LOAD          %3, srcq, %2, 10\n    MC_8TAP_COMPUTE         %2, %3, 1\n%if %3 > 8\n    packssdw                m0, m1\n%endif\n    PEL_10STORE%2         dstq, m0, m1\n    LOOP_END               dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_h%2_%3, 6, 7, 16 , dst, dststride, src, srcstride, height, hf\n    mova                 m9, [scale_%3]\n    MC_8TAP_FILTER       %3, hf\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 10\n    MC_8TAP_COMPUTE      %2, %3\n%if %3 > 8\n    packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:21", "text": "LOOP_END               dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_hX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_h%2_%3, 6, 7, 16 , dst, dststride, src, srcstride, height, hf\n    mova                 m9, [scale_%3]\n    MC_8TAP_FILTER       %3, hf\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 10\n    MC_8TAP_COMPUTE      %2, %3\n%if %3 > 8\n    packssdw             m0, m1\n%endif\n    UNI_COMPUTE          %2, %3, m0, m1, m9\n    PEL_%3STORE%2      dstq, m0, m1\n    add                dstq, dststrideq             ; dst += dststride\n    add                srcq, srcstrideq             ; src += srcstride\n    dec             heightd                         ; cmp height\n    jnz               .loop                         ; height loop\n    RET\n\n\n; ******************************\n; void put_8tap_vX_X_X(int16_t *dst, const uint8_t *_src, ptrdiff_t srcstride,\n;                      int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_8tap_v%2_%3, 6, 8, 16, dst, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER        %3, vf\n    lea               r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD        %3, srcq, srcstride, %2, r7\n    MC_8TAP_COMPUTE       %2, %3, 1\n%if %3 > 8\n    packssdw              m0, m1\n%endif\n    PEL_10STORE%2       dstq, m0, m1\n    LOOP_END             dst, src, srcstride\n    RET\n\n; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_v%2_%3, 7, 9, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER    %3, vf\n    movdqa            m9, [scale_%3]\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD    %3, srcq, srcstride, %2, r8\n    MC_8TAP_COMPUTE   %2, %3\n%if %3 > 8\n    packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:22", "text": "RET\n\n; ******************************\n; void put_uni_8tap_vX_X_X(int16_t *dst, ptrdiff_t dststride, const uint8_t *_src, ptrdiff_t srcstride,\n;                       int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\ncglobal %1_put_uni_8tap_v%2_%3, 7, 9, 16, dst, dststride, src, srcstride, height, r3src, vf\n    MC_8TAP_FILTER    %3, vf\n    movdqa            m9, [scale_%3]\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    MC_8TAP_V_LOAD    %3, srcq, srcstride, %2, r8\n    MC_8TAP_COMPUTE   %2, %3\n%if %3 > 8\n    packssdw          m0, m1\n%endif\n    UNI_COMPUTE       %2, %3, m0, m1, m9\n    PEL_%3STORE%2   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n\n; ******************************\n; void put_8tap_hvX_X(int16_t *dst, const uint8_t *_src, ptrdiff_t srcstride,\n;                     int height, const int8_t *hf, const int8_t *vf, int width)\n; ******************************\n%macro PUT_8TAP_HV 3\ncglobal %1_put_8tap_hv%2_%3, 6, 7, 16, 0 - mmsize*16, dst, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n\n    lea                  r3srcq, [srcstrideq*3]\n    sub                    srcq, r3srcq\n\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m9, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m10, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:23", "text": "MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m8, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                     m9, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m10, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m11, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m12, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m13, m0\n    add                    srcq, srcstrideq\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m14, m0\n    add                    srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD           %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE       %2, %3, hf, ackssdw\n    SWAP                    m15, m0\n    punpcklwd                m0, m8, m9\n    punpcklwd                m2, m10, m11\n    punpcklwd                m4, m12, m13\n    punpcklwd                m6, m14, m15\n%if %2 > 4\n    punpckhwd                m1, m8, m9\n    punpckhwd                m3, m10, m11\n    punpckhwd                m5, m12, m13\n    punpckhwd                m7, m14, m15\n%endif\n%if %2 <= 4\n    movq                     m8, m9\n    movq                     m9, m10\n    movq                    m10, m11\n    movq                    m11, m12\n    movq                    m12, m13\n    movq                    m13, m14\n    movq                    m14, m15\n%else\n    movdqa                   m8, m9\n    movdqa                   m9, m10\n    movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:24", "text": "punpckhwd                m5, m12, m13\n    punpckhwd                m7, m14, m15\n%endif\n%if %2 <= 4\n    movq                     m8, m9\n    movq                     m9, m10\n    movq                    m10, m11\n    movq                    m11, m12\n    movq                    m12, m13\n    movq                    m13, m14\n    movq                    m14, m15\n%else\n    movdqa                   m8, m9\n    movdqa                   m9, m10\n    movdqa                  m10, m11\n    movdqa                  m11, m12\n    movdqa                  m12, m13\n    movdqa                  m13, m14\n    movdqa                  m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE       %2, 14, vf, ackssdw\n    PEL_10STORE%2          dstq, m0, m1\n\n    LOOP_END                dst, src, srcstride\n    RET\n\n\ncglobal %1_put_uni_8tap_hv%2_%3, 7, 9, 16, 0 - 16*mmsize, dst, dststride, src, srcstride, height, hf, vf, r3src\n    MC_8TAP_FILTER           %3, hf, 0\n    lea                     hfq, [rsp]\n    MC_8TAP_FILTER           %3, vf, 8*mmsize\n    lea                     vfq, [rsp + 8*mmsize]\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:25", "text": "SWAP              m9, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq\n.loop:\n    MC_8TAP_H_LOAD       %3, srcq, %2, 15\n    MC_8TAP_HV_COMPUTE   %2, %3, hf, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %2 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13\n    punpckhwd         m7, m14, m15\n%endif\n    MC_8TAP_HV_COMPUTE   %2, 14, vf, ackusdw\n    UNI_COMPUTE       %2, %3, m0, m1, [scale_%3]\n    PEL_%3STORE%2   dstq, m0, m1\n\n%if %2 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    mova            m8, m9\n    mova            m9, m10\n    mova           m10, m11\n    mova           m11, m12\n    mova           m12, m13\n    mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:26", "text": "%if %2 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    mova            m8, m9\n    mova            m9, m10\n    mova           m10, m11\n    mova           m11, m12\n    mova           m12, m13\n    mova           m13, m14\n    mova           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n%endmacro\n\n%macro H2656PUT_PIXELS 2\n    PUT_PIXELS h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP 2\n    PUT_4TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_4TAP_HV 2\n    PUT_4TAP_HV h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP 2\n    PUT_8TAP h2656, %1, %2\n%endmacro\n\n%macro H2656PUT_8TAP_HV 2\n    PUT_8TAP_HV h2656, %1, %2\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM sse4\nH2656PUT_PIXELS  2, 8\nH2656PUT_PIXELS  4, 8\nH2656PUT_PIXELS  6, 8\nH2656PUT_PIXELS  8, 8\nH2656PUT_PIXELS 12, 8\nH2656PUT_PIXELS 16, 8\n\nH2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:27", "text": "%macro H2656PUT_8TAP_HV 2\n    PUT_8TAP_HV h2656, %1, %2\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM sse4\nH2656PUT_PIXELS  2, 8\nH2656PUT_PIXELS  4, 8\nH2656PUT_PIXELS  6, 8\nH2656PUT_PIXELS  8, 8\nH2656PUT_PIXELS 12, 8\nH2656PUT_PIXELS 16, 8\n\nH2656PUT_PIXELS 2, 10\nH2656PUT_PIXELS 4, 10\nH2656PUT_PIXELS 6, 10\nH2656PUT_PIXELS 8, 10\n\nH2656PUT_PIXELS 2, 12\nH2656PUT_PIXELS 4, 12\nH2656PUT_PIXELS 6, 12\nH2656PUT_PIXELS 8, 12\n\nH2656PUT_4TAP 2,  8\nH2656PUT_4TAP 4,  8\nH2656PUT_4TAP 6,  8\nH2656PUT_4TAP 8,  8\n\nH2656PUT_4TAP 12,  8\nH2656PUT_4TAP 16, 8\n\nH2656PUT_4TAP 2, 10\nH2656PUT_4TAP 4, 10\nH2656PUT_4TAP 6, 10\nH2656PUT_4TAP 8, 10\n\nH2656PUT_4TAP 2, 12\nH2656PUT_4TAP 4, 12\nH2656PUT_4TAP 6, 12\nH2656PUT_4TAP 8, 12\n\nH2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:28", "text": "H2656PUT_4TAP 6, 12\nH2656PUT_4TAP 8, 12\n\nH2656PUT_4TAP_HV 2,  8\nH2656PUT_4TAP_HV 4,  8\nH2656PUT_4TAP_HV 6,  8\nH2656PUT_4TAP_HV 8,  8\nH2656PUT_4TAP_HV 16, 8\n\nH2656PUT_4TAP_HV 2, 10\nH2656PUT_4TAP_HV 4, 10\nH2656PUT_4TAP_HV 6, 10\nH2656PUT_4TAP_HV 8, 10\n\nH2656PUT_4TAP_HV 2, 12\nH2656PUT_4TAP_HV 4, 12\nH2656PUT_4TAP_HV 6, 12\nH2656PUT_4TAP_HV 8, 12\n\nH2656PUT_8TAP  4,  8\nH2656PUT_8TAP  8,  8\nH2656PUT_8TAP 12, 8\nH2656PUT_8TAP 16, 8\n\nH2656PUT_8TAP 4, 10\nH2656PUT_8TAP 8, 10\n\nH2656PUT_8TAP 4, 12\nH2656PUT_8TAP 8, 12\n\nH2656PUT_8TAP_HV 4, 8\nH2656PUT_8TAP_HV 8, 8\n\nH2656PUT_8TAP_HV 4, 10\nH2656PUT_8TAP_HV 8, 10\n\nH2656PUT_8TAP_HV 4, 12\nH2656PUT_8TAP_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 32, 8\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_inter.asm:29", "text": "INIT_YMM avx2\n\nH2656PUT_PIXELS  32, 8\nH2656PUT_PIXELS  16, 10\nH2656PUT_PIXELS  16, 12\n\nH2656PUT_8TAP 32,  8\nH2656PUT_8TAP 16, 10\nH2656PUT_8TAP 16, 12\n\nH2656PUT_8TAP_HV 32, 8\nH2656PUT_8TAP_HV 16, 10\nH2656PUT_8TAP_HV 16, 12\n\nH2656PUT_4TAP 32,  8\nH2656PUT_4TAP 16, 10\nH2656PUT_4TAP 16, 12\n\nH2656PUT_4TAP_HV 32, 8\nH2656PUT_4TAP_HV 16, 10\nH2656PUT_4TAP_HV 16, 12\n\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_inter.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/h26x/h2656_inter.asm", "line_start": 1121, "line_end": 1145}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC/VVC 8bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npb_edge_shuffle: times 2 db 1, 2, 0, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1\npb_eo:                   db -1, 0, 1, 0, 0, -1, 0, 1, -1, -1, 1, 1, 1, -1, -1, 1\ncextern pb_1\ncextern pb_2\n\nSECTION .text\n\n;******************************************************************************\n;SAO Band Filter\n;******************************************************************************\n\n%macro H2656_SAO_BAND_FILTER_INIT 0\n    and            leftq, 31\n    movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]\n    SPLATW            m5, [offsetq + 4]\n    SPLATW            m6, [offsetq + 6]\n    SPLATW            m7, [offsetq + 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:2", "text": "movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]\n    SPLATW            m5, [offsetq + 4]\n    SPLATW            m6, [offsetq + 6]\n    SPLATW            m7, [offsetq + 8]\n%else\n    movq              m7, [offsetq + 2]\n    SPLATW            m4, m7, 0\n    SPLATW            m5, m7, 1\n    SPLATW            m6, m7, 2\n    SPLATW            m7, m7, 3\n%endif\n\n%if ARCH_X86_64\n    pxor             m14, m14\n\n%else ; ARCH_X86_32\n    mova  [rsp+mmsize*0], m0\n    mova  [rsp+mmsize*1], m1\n    mova  [rsp+mmsize*2], m2\n    mova  [rsp+mmsize*3], m3\n    mova  [rsp+mmsize*4], m4\n    mova  [rsp+mmsize*5], m5\n    mova  [rsp+mmsize*6], m6\n    pxor              m0, m0\n    %assign MMSIZE mmsize\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n%macro H2656_SAO_BAND_FILTER_COMPUTE 2\n    psraw             %1, %2, 3\n%if ARCH_X86_64\n    pcmpeqw          m10, %1, m0\n    pcmpeqw          m11, %1, m1\n    pcmpeqw          m12, %1, m2\n    pcmpeqw           %1, m3\n    pand             m10, m4\n    pand             m11, m5\n    pand             m12, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:3", "text": "%assign MMSIZE mmsize\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n%macro H2656_SAO_BAND_FILTER_COMPUTE 2\n    psraw             %1, %2, 3\n%if ARCH_X86_64\n    pcmpeqw          m10, %1, m0\n    pcmpeqw          m11, %1, m1\n    pcmpeqw          m12, %1, m2\n    pcmpeqw           %1, m3\n    pand             m10, m4\n    pand             m11, m5\n    pand             m12, m6\n    pand              %1, m7\n    por              m10, m11\n    por              m12, %1\n    por              m10, m12\n    paddw             %2, m10\n%else ; ARCH_X86_32\n    pcmpeqw           m4, %1, [rsp+MMSIZE*0]\n    pcmpeqw           m5, %1, [rsp+MMSIZE*1]\n    pcmpeqw           m6, %1, [rsp+MMSIZE*2]\n    pcmpeqw           %1, [rsp+MMSIZE*3]\n    pand              m4, [rsp+MMSIZE*4]\n    pand              m5, [rsp+MMSIZE*5]\n    pand              m6, [rsp+MMSIZE*6]\n    pand              %1, m7\n    por               m4, m5\n    por               m6, %1\n    por               m4, m6\n    paddw             %2, m4\n%endif ; ARCH\n%endmacro\n\n;void ff_{hevc, vvc}_sao_band_filter_<width>_8_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                             int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro H2656_SAO_BAND_FILTER 3\ncglobal %1_sao_band_filter_%2_8, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    H2656_SAO_BAND_FILTER_INIT\n\nalign 16\n.loop:\n%if %2 == 8\n    movq              m8, [srcq]\n    punpcklbw         m8, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m8\n    packuswb          m8, m14\n    movq          [dstq], m8\n%endif ; %2 == 8\n\n%assign i 0\n%rep %3\n    mova             m13, [srcq + i]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:4", "text": ";void ff_{hevc, vvc}_sao_band_filter_<width>_8_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                             int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro H2656_SAO_BAND_FILTER 3\ncglobal %1_sao_band_filter_%2_8, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    H2656_SAO_BAND_FILTER_INIT\n\nalign 16\n.loop:\n%if %2 == 8\n    movq              m8, [srcq]\n    punpcklbw         m8, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m8\n    packuswb          m8, m14\n    movq          [dstq], m8\n%endif ; %2 == 8\n\n%assign i 0\n%rep %3\n    mova             m13, [srcq + i]\n    punpcklbw         m8, m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9,  m8\n    punpckhbw        m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m13\n    packuswb          m8, m13\n    mova      [dstq + i], m8\n%assign i i+mmsize\n%endrep\n\n%if %2 == 48 || %2 == 80 || %2 == 112\nINIT_XMM cpuname\n\n    mova             m13, [srcq + i]\n    punpcklbw         m8, m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9,  m8\n    punpckhbw        m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m13\n    packuswb          m8, m13\n    mova      [dstq + i], m8\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif ; %2 == 48 || %2 == 80 || %2 == 112\n\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro H2656_SAO_EDGE_FILTER_INIT 0\n%if WIN64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:5", "text": "INIT_YMM cpuname\n%endif\n%endif ; %2 == 48 || %2 == 80 || %2 == 112\n\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro H2656_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE\n    imul       b_strideq, EDGE_SRCSTRIDE\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]\n    add        b_strideq, tmpq\n%endmacro\n\n%macro H2656_SAO_EDGE_FILTER_COMPUTE 1\n    pminub            m4, m1, m2\n    pminub            m5, m1, m3\n    pcmpeqb           m2, m4\n    pcmpeqb           m3, m5\n    pcmpeqb           m4, m1\n    pcmpeqb           m5, m1\n    psubb             m4, m2\n    psubb             m5, m3\n    paddb             m4, m6\n    paddb             m4, m5\n\n    pshufb            m2, m0, m4\n%if %1 > 8\n    punpckhbw         m5, m7, m1\n    punpckhbw         m4, m2, m7\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m5, m4\n    pmaddubsw         m3, m2\n    packuswb          m3, m5\n%else\n    punpcklbw         m3, m7, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:6", "text": "pcmpeqb           m2, m4\n    pcmpeqb           m3, m5\n    pcmpeqb           m4, m1\n    pcmpeqb           m5, m1\n    psubb             m4, m2\n    psubb             m5, m3\n    paddb             m4, m6\n    paddb             m4, m5\n\n    pshufb            m2, m0, m4\n%if %1 > 8\n    punpckhbw         m5, m7, m1\n    punpckhbw         m4, m2, m7\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m5, m4\n    pmaddubsw         m3, m2\n    packuswb          m3, m5\n%else\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m3, m2\n    packuswb          m3, m3\n%endif\n%endmacro\n\n;void ff_{hevc, vvc}_sao_edge_filter_<width>_8_<opt>(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride_dst, int16_t *sao_offset_val,\n;                                             int eo, int width, int height);\n%macro H2656_SAO_EDGE_FILTER 3-4\n%if ARCH_X86_64\ncglobal %1_sao_edge_filter_%2_8, 4, 9, 8, dst, src, dststride, offset, eo, a_stride, b_stride, height, tmp\n%define tmp2q heightq\n    H2656_SAO_EDGE_FILTER_INIT\n    mov          heightd, r6m\n\n%else ; ARCH_X86_32\ncglobal %1_sao_edge_filter_%2_8, 1, 6, 8, dst, src, dststride, a_stride, b_stride, height\n%define eoq   srcq\n%define tmpq  heightq\n%define tmp2q dststrideq\n%define offsetq heightq\n    H2656_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n%endif ; ARCH\n\n%if mmsize > 16\n    vbroadcasti128    m0, [offsetq]\n%else\n    movu              m0, [offsetq]\n%endif\n    mova              m1, [pb_edge_shuffle]\n    packsswb          m0, m0\n    mova              m7, [pb_1]\n    pshufb            m0, m1\n    mova              m6, [pb_2]\n%if ARCH_X86_32\n    mov          heightd, r6m\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:7", "text": "%define offsetq heightq\n    H2656_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n%endif ; ARCH\n\n%if mmsize > 16\n    vbroadcasti128    m0, [offsetq]\n%else\n    movu              m0, [offsetq]\n%endif\n    mova              m1, [pb_edge_shuffle]\n    packsswb          m0, m0\n    mova              m7, [pb_1]\n    pshufb            m0, m1\n    mova              m6, [pb_2]\n%if ARCH_X86_32\n    mov          heightd, r6m\n%endif\n\nalign 16\n.loop:\n\n%if %2 == 8\n    movq              m1, [srcq]\n    movq              m2, [srcq + a_strideq]\n    movq              m3, [srcq + b_strideq]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    movq          [dstq], m3\n%endif\n\n%assign i 0\n%rep %3\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    mov%4     [dstq + i], m3\n%assign i i+mmsize\n%endrep\n\n%if %2 == 48 || %2 == 80 || %2 == 112\nINIT_XMM cpuname\n\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    mova      [dstq + i], m3\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif ; %2 == 48 || %2 == 80 || %2 == 112\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:8", "text": "%endrep\n\n%if %2 == 48 || %2 == 80 || %2 == 112\nINIT_XMM cpuname\n\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    mova      [dstq + i], m3\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif ; %2 == 48 || %2 == 80 || %2 == 112\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 281, "line_end": 301}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:4", "text": ";void ff_{hevc, vvc}_sao_band_filter_<width>_8_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                             int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro H2656_SAO_BAND_FILTER 3\ncglobal %1_sao_band_filter_%2_8, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    H2656_SAO_BAND_FILTER_INIT\n\nalign 16\n.loop:\n%if %2 == 8\n    movq              m8, [srcq]\n    punpcklbw         m8, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m8\n    packuswb          m8, m14\n    movq          [dstq], m8\n%endif ; %2 == 8\n\n%assign i 0\n%rep %3\n    mova             m13, [srcq + i]\n    punpcklbw         m8, m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9,  m8\n    punpckhbw        m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m13\n    packuswb          m8, m13\n    mova      [dstq + i], m8\n%assign i i+mmsize\n%endrep\n\n%if %2 == 48\nINIT_XMM cpuname\n\n    mova             m13, [srcq + i]\n    punpcklbw         m8, m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9,  m8\n    punpckhbw        m13, m14\n    H2656_SAO_BAND_FILTER_COMPUTE m9, m13\n    packuswb          m8, m13\n    mova      [dstq + i], m8\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif ; %2 == 48\n\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro H2656_SAO_EDGE_FILTER_INIT 0\n%if WIN64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:5", "text": "INIT_YMM cpuname\n%endif\n%endif ; %2 == 48\n\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro H2656_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE\n    imul       b_strideq, EDGE_SRCSTRIDE\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]\n    add        b_strideq, tmpq\n%endmacro\n\n%macro H2656_SAO_EDGE_FILTER_COMPUTE 1\n    pminub            m4, m1, m2\n    pminub            m5, m1, m3\n    pcmpeqb           m2, m4\n    pcmpeqb           m3, m5\n    pcmpeqb           m4, m1\n    pcmpeqb           m5, m1\n    psubb             m4, m2\n    psubb             m5, m3\n    paddb             m4, m6\n    paddb             m4, m5\n\n    pshufb            m2, m0, m4\n%if %1 > 8\n    punpckhbw         m5, m7, m1\n    punpckhbw         m4, m2, m7\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m5, m4\n    pmaddubsw         m3, m2\n    packuswb          m3, m5\n%else\n    punpcklbw         m3, m7, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:7", "text": "%define offsetq heightq\n    H2656_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n%endif ; ARCH\n\n%if mmsize > 16\n    vbroadcasti128    m0, [offsetq]\n%else\n    movu              m0, [offsetq]\n%endif\n    mova              m1, [pb_edge_shuffle]\n    packsswb          m0, m0\n    mova              m7, [pb_1]\n    pshufb            m0, m1\n    mova              m6, [pb_2]\n%if ARCH_X86_32\n    mov          heightd, r6m\n%endif\n\nalign 16\n.loop:\n\n%if %2 == 8\n    movq              m1, [srcq]\n    movq              m2, [srcq + a_strideq]\n    movq              m3, [srcq + b_strideq]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    movq          [dstq], m3\n%endif\n\n%assign i 0\n%rep %3\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    mov%4     [dstq + i], m3\n%assign i i+mmsize\n%endrep\n\n%if %2 == 48\nINIT_XMM cpuname\n\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    mova      [dstq + i], m3\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao.asm:8", "text": "%endrep\n\n%if %2 == 48\nINIT_XMM cpuname\n\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    H2656_SAO_EDGE_FILTER_COMPUTE %2\n    mova      [dstq + i], m3\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/h26x/h2656_sao.asm", "line_start": 281, "line_end": 301}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC/VVC 10/12bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npw_m2:     times 16 dw -2\npw_mask10: times 16 dw 0x03FF\npw_mask12: times 16 dw 0x0FFF\npb_eo:              db -1, 0, 1, 0, 0, -1, 0, 1, -1, -1, 1, 1, 1, -1, -1, 1\ncextern pw_m1\ncextern pw_1\ncextern pw_2\n\nSECTION .text\n\n;******************************************************************************\n;SAO Band Filter\n;******************************************************************************\n\n%macro H2656_SAO_BAND_FILTER_INIT 1\n    and            leftq, 31\n    movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:2", "text": "%macro H2656_SAO_BAND_FILTER_INIT 1\n    and            leftq, 31\n    movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]\n    SPLATW            m5, [offsetq + 4]\n    SPLATW            m6, [offsetq + 6]\n    SPLATW            m7, [offsetq + 8]\n%else\n    movq              m7, [offsetq + 2]\n    SPLATW            m4, m7, 0\n    SPLATW            m5, m7, 1\n    SPLATW            m6, m7, 2\n    SPLATW            m7, m7, 3\n%endif\n\n%if ARCH_X86_64\n    mova             m13, [pw_mask %+ %1]\n    pxor             m14, m14\n\n%else ; ARCH_X86_32\n    mova  [rsp+mmsize*0], m0\n    mova  [rsp+mmsize*1], m1\n    mova  [rsp+mmsize*2], m2\n    mova  [rsp+mmsize*3], m3\n    mova  [rsp+mmsize*4], m4\n    mova  [rsp+mmsize*5], m5\n    mova  [rsp+mmsize*6], m6\n    mova              m1, [pw_mask %+ %1]\n    pxor              m0, m0\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n;void ff_{hevc, vvc}_sao_band_filter_<width>_<depth>_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                                   int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro H2656_SAO_BAND_FILTER 4\ncglobal %1_sao_band_filter_%3_%2, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    H2656_SAO_BAND_FILTER_INIT %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:3", "text": "mova  [rsp+mmsize*4], m4\n    mova  [rsp+mmsize*5], m5\n    mova  [rsp+mmsize*6], m6\n    mova              m1, [pw_mask %+ %1]\n    pxor              m0, m0\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n;void ff_{hevc, vvc}_sao_band_filter_<width>_<depth>_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                                   int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro H2656_SAO_BAND_FILTER 4\ncglobal %1_sao_band_filter_%3_%2, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    H2656_SAO_BAND_FILTER_INIT %2\n\nalign 16\n.loop:\n\n%assign i 0\n%assign j 0\n%rep %4\n%assign k 8+(j&1)\n%assign l 9-(j&1)\n    mova          m %+ k, [srcq + i]\n    psraw         m %+ l, m %+ k, %2-5\n%if ARCH_X86_64\n    pcmpeqw          m10, m %+ l, m0\n    pcmpeqw          m11, m %+ l, m1\n    pcmpeqw          m12, m %+ l, m2\n    pcmpeqw       m %+ l, m3\n    pand             m10, m4\n    pand             m11, m5\n    pand             m12, m6\n    pand          m %+ l, m7\n    por              m10, m11\n    por              m12, m %+ l\n    por              m10, m12\n    paddw         m %+ k, m10\n%else ; ARCH_X86_32\n    pcmpeqw           m4, m %+ l, [rsp+mmsize*0]\n    pcmpeqw           m5, m %+ l, [rsp+mmsize*1]\n    pcmpeqw           m6, m %+ l, [rsp+mmsize*2]\n    pcmpeqw       m %+ l, [rsp+mmsize*3]\n    pand              m4, [rsp+mmsize*4]\n    pand              m5, [rsp+mmsize*5]\n    pand              m6, [rsp+mmsize*6]\n    pand          m %+ l, m7\n    por               m4, m5\n    por               m6, m %+ l\n    por               m4, m6\n    paddw         m %+ k, m4\n%endif ; ARCH\n    CLIPW             m %+ k, m14, m13\n    mova      [dstq + i], m %+ k\n%assign i i+mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:4", "text": "por              m12, m %+ l\n    por              m10, m12\n    paddw         m %+ k, m10\n%else ; ARCH_X86_32\n    pcmpeqw           m4, m %+ l, [rsp+mmsize*0]\n    pcmpeqw           m5, m %+ l, [rsp+mmsize*1]\n    pcmpeqw           m6, m %+ l, [rsp+mmsize*2]\n    pcmpeqw       m %+ l, [rsp+mmsize*3]\n    pand              m4, [rsp+mmsize*4]\n    pand              m5, [rsp+mmsize*5]\n    pand              m6, [rsp+mmsize*6]\n    pand          m %+ l, m7\n    por               m4, m5\n    por               m6, m %+ l\n    por               m4, m6\n    paddw         m %+ k, m4\n%endif ; ARCH\n    CLIPW             m %+ k, m14, m13\n    mova      [dstq + i], m %+ k\n%assign i i+mmsize\n%assign j j+1\n%endrep\n\n    add             dstq, dststrideq\n    add             srcq, srcstrideq\n    dec          heightd\n    jg .loop\n    RET\n%endmacro\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro PMINUW 4\n%if cpuflag(sse4)\n    pminuw            %1, %2, %3\n%else\n    psubusw           %4, %2, %3\n    psubw             %1, %2, %4\n%endif\n%endmacro\n\n%macro H2656_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE >> 1\n    imul       b_strideq, EDGE_SRCSTRIDE >> 1\n    movsx           tmpq, byte [tmp2q+eoq*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:5", "text": "%else\n    psubusw           %4, %2, %3\n    psubw             %1, %2, %4\n%endif\n%endmacro\n\n%macro H2656_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE >> 1\n    imul       b_strideq, EDGE_SRCSTRIDE >> 1\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]\n    add        b_strideq, tmpq\n%endmacro\n\n;void ff_{hevc, vvc}_sao_edge_filter_<width>_<depth>_<opt>(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride_dst, int16_t *sao_offset_val,\n;                                                   int eo, int width, int height);\n%macro H2656_SAO_EDGE_FILTER 4\n%if ARCH_X86_64\ncglobal %1_sao_edge_filter_%3_%2, 4, 9, 16, dst, src, dststride, offset, eo, a_stride, b_stride, height, tmp\n%define tmp2q heightq\n    H2656_SAO_EDGE_FILTER_INIT\n    mov          heightd, r6m\n    add        a_strideq, a_strideq\n    add        b_strideq, b_strideq\n\n%else ; ARCH_X86_32\ncglobal %1_sao_edge_filter_%3_%2, 1, 6, 8, 5*mmsize, dst, src, dststride, a_stride, b_stride, height\n%define eoq   srcq\n%define tmpq  heightq\n%define tmp2q dststrideq\n%define offsetq heightq\n%define m8 m1\n%define m9 m2\n%define m10 m3\n%define m11 m4\n%define m12 m5\n    H2656_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n    add        a_strideq, a_strideq\n    add        b_strideq, b_strideq\n\n%endif ; ARCH\n\n%if mmsize > 16\n    SPLATW            m8, [offsetq+2]\n    SPLATW            m9, [offsetq+4]\n    SPLATW           m10, [offsetq+0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:6", "text": "%define tmp2q dststrideq\n%define offsetq heightq\n%define m8 m1\n%define m9 m2\n%define m10 m3\n%define m11 m4\n%define m12 m5\n    H2656_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n    add        a_strideq, a_strideq\n    add        b_strideq, b_strideq\n\n%endif ; ARCH\n\n%if mmsize > 16\n    SPLATW            m8, [offsetq+2]\n    SPLATW            m9, [offsetq+4]\n    SPLATW           m10, [offsetq+0]\n    SPLATW           m11, [offsetq+6]\n    SPLATW           m12, [offsetq+8]\n%else\n    movq             m10, [offsetq+0]\n    movd             m12, [offsetq+6]\n    SPLATW            m8, xm10, 1\n    SPLATW            m9, xm10, 2\n    SPLATW           m10, xm10, 0\n    SPLATW           m11, xm12, 0\n    SPLATW           m12, xm12, 1\n%endif\n    pxor              m0, m0\n%if ARCH_X86_64\n    mova             m13, [pw_m1]\n    mova             m14, [pw_1]\n    mova             m15, [pw_2]\n%else\n    mov          heightd, r6m\n    mova  [rsp+mmsize*0], m8\n    mova  [rsp+mmsize*1], m9\n    mova  [rsp+mmsize*2], m10\n    mova  [rsp+mmsize*3], m11\n    mova  [rsp+mmsize*4], m12\n%endif\n\nalign 16\n.loop:\n\n%assign i 0\n%rep %4\n    mova              m1, [srcq + i]\n    movu              m2, [srcq+a_strideq + i]\n    movu              m3, [srcq+b_strideq + i]\n    PMINUW            m4, m1, m2, m6\n    PMINUW            m5, m1, m3, m7\n    pcmpeqw           m2, m4\n    pcmpeqw           m3, m5\n    pcmpeqw           m4, m1\n    pcmpeqw           m5, m1\n    psubw             m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:7", "text": "mova  [rsp+mmsize*2], m10\n    mova  [rsp+mmsize*3], m11\n    mova  [rsp+mmsize*4], m12\n%endif\n\nalign 16\n.loop:\n\n%assign i 0\n%rep %4\n    mova              m1, [srcq + i]\n    movu              m2, [srcq+a_strideq + i]\n    movu              m3, [srcq+b_strideq + i]\n    PMINUW            m4, m1, m2, m6\n    PMINUW            m5, m1, m3, m7\n    pcmpeqw           m2, m4\n    pcmpeqw           m3, m5\n    pcmpeqw           m4, m1\n    pcmpeqw           m5, m1\n    psubw             m4, m2\n    psubw             m5, m3\n\n    paddw             m4, m5\n    pcmpeqw           m2, m4, [pw_m2]\n%if ARCH_X86_64\n    pcmpeqw           m3, m4, m13\n    pcmpeqw           m5, m4, m0\n    pcmpeqw           m6, m4, m14\n    pcmpeqw           m7, m4, m15\n    pand              m2, m8\n    pand              m3, m9\n    pand              m5, m10\n    pand              m6, m11\n    pand              m7, m12\n%else\n    pcmpeqw           m3, m4, [pw_m1]\n    pcmpeqw           m5, m4, m0\n    pcmpeqw           m6, m4, [pw_1]\n    pcmpeqw           m7, m4, [pw_2]\n    pand              m2, [rsp+mmsize*0]\n    pand              m3, [rsp+mmsize*1]\n    pand              m5, [rsp+mmsize*2]\n    pand              m6, [rsp+mmsize*3]\n    pand              m7, [rsp+mmsize*4]\n%endif\n    paddw             m2, m3\n    paddw             m5, m6\n    paddw             m2, m7\n    paddw             m2, m1\n    paddw             m2, m5\n    CLIPW             m2, m0, [pw_mask %+ %2]\n    mova      [dstq + i], m2\n%assign i i+mmsize\n%endrep\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/h26x/h2656_sao_10bit.asm:8", "text": "pand              m3, [rsp+mmsize*1]\n    pand              m5, [rsp+mmsize*2]\n    pand              m6, [rsp+mmsize*3]\n    pand              m7, [rsp+mmsize*4]\n%endif\n    paddw             m2, m3\n    paddw             m5, m6\n    paddw             m2, m7\n    paddw             m2, m1\n    paddw             m2, m5\n    CLIPW             m2, m0, [pw_mask %+ %2]\n    mova      [dstq + i], m2\n%assign i i+mmsize\n%endrep\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/h26x/h2656_sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/h26x/h2656_sao_10bit.asm", "line_start": 281, "line_end": 301}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:1", "text": "; *****************************************************************************\n; * Provide SIMD optimizations for add_residual functions for HEVC decoding\n; * Copyright (c) 2014 Pierre-Edouard LEPERE\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; ******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\ncextern pw_1023\n%define max_pixels_10 pw_1023\n\n; the add_res macros and functions were largely inspired by h264_idct.asm from the x264 project\n%macro ADD_RES_MMX_4_8 1\n    mova              m0, [r1+%1]\n    mova              m2, [r1+%1+8]\n\n    movd              m1, [r0]\n    movd              m3, [r0+r2]\n    punpcklbw         m1, m4\n    punpcklbw         m3, m4\n\n    paddsw            m0, m1\n    paddsw            m2, m3\n    packuswb          m0, m4\n    packuswb          m2, m4\n\n    movd            [r0], m0\n    movd         [r0+r2], m2\n%endmacro\n\n\nINIT_MMX mmxext\n; void ff_hevc_add_residual_4_8_mmxext(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_4_8, 3, 3, 6\n    pxor              m4, m4\n    ADD_RES_MMX_4_8    0\n    lea               r0, [r0+r2*2]\n    ADD_RES_MMX_4_8   16\n    RET\n\n%macro ADD_RES_SSE_8_8 1\n    movq              m0, [r0]\n    movq              m1, [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:2", "text": "packuswb          m0, m4\n    packuswb          m2, m4\n\n    movd            [r0], m0\n    movd         [r0+r2], m2\n%endmacro\n\n\nINIT_MMX mmxext\n; void ff_hevc_add_residual_4_8_mmxext(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_4_8, 3, 3, 6\n    pxor              m4, m4\n    ADD_RES_MMX_4_8    0\n    lea               r0, [r0+r2*2]\n    ADD_RES_MMX_4_8   16\n    RET\n\n%macro ADD_RES_SSE_8_8 1\n    movq              m0, [r0]\n    movq              m1, [r0+r2]\n    punpcklbw         m0, m4\n    punpcklbw         m1, m4\n    paddsw            m0, [r1+%1]\n    paddsw            m1, [r1+%1+16]\n    packuswb          m0, m1\n\n    movq              m2, [r0+r2*2]\n    movq              m3, [r0+r3]\n    punpcklbw         m2, m4\n    punpcklbw         m3, m4\n    paddsw            m2, [r1+%1+32]\n    paddsw            m3, [r1+%1+48]\n    packuswb          m2, m3\n\n    movq            [r0], m0\n    movhps       [r0+r2], m0\n    movq       [r0+r2*2], m2\n    movhps       [r0+r3], m2\n%endmacro\n\n%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n%if cpuflag(avx2)\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n    paddsw            m1, m5\n    paddsw            m2, m6\n%else\n    paddsw            m1, [r1+%1]\n    paddsw            m2, [r1+%1+16]\n%endif\n\n    mova              m3, [%3]\n    mova              m4, m3\n    punpcklbw         m3, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:3", "text": "%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n%if cpuflag(avx2)\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n    paddsw            m1, m5\n    paddsw            m2, m6\n%else\n    paddsw            m1, [r1+%1]\n    paddsw            m2, [r1+%1+16]\n%endif\n\n    mova              m3, [%3]\n    mova              m4, m3\n    punpcklbw         m3, m0\n    punpckhbw         m4, m0\n%if cpuflag(avx2)\n    mova             xm5, [r1+%1+mmsize*2]\n    mova             xm6, [r1+%1+mmsize*2+16]\n    vinserti128       m5, m5, [r1+%1+96], 1\n    vinserti128       m6, m6, [r1+%1+112], 1\n    paddsw            m3, m5\n    paddsw            m4, m6\n%else\n    paddsw            m3, [r1+%1+mmsize*2]\n    paddsw            m4, [r1+%1+mmsize*2+16]\n%endif\n\n    packuswb          m1, m2\n    packuswb          m3, m4\n    mova            [%2], m1\n    mova            [%3], m3\n%endmacro\n\n\nINIT_XMM sse2\n; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 5\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8    0\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8   64\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 5\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:4", "text": "INIT_XMM sse2\n; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 5\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8    0\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8   64\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 5\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]\n    dec                r4d\n    jg .loop\n    RET\n\n; void ff_hevc_add_residual_32_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 5\n    pxor                m0, m0\n    mov                r4d, 16\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,    r0+16\n    ADD_RES_SSE_16_32_8 64, r0+r2, r0+r2+16\n    add                 r1, 128\n    lea                 r0, [r0+r2*2]\n    dec                r4d\n    jg .loop\n    RET\n\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL\n\n%macro ADD_RES_SSE_8_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+16]\n    mova              m2, [%4+32]\n    mova              m3, [%4+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:5", "text": "; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL\n\n%macro ADD_RES_SSE_8_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+16]\n    mova              m2, [%4+32]\n    mova              m3, [%4+48]\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_MMX_4_10 3\n    mova              m0, [%1+0]\n    mova              m1, [%1+%2]\n    paddw             m0, [%3]\n    paddw             m1, [%3+8]\n    CLIPW             m0, m2, m3\n    CLIPW             m1, m2, m3\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n%endmacro\n\n%macro ADD_RES_SSE_16_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+16]\n    mova              m2, [%3+32]\n    mova              m3, [%3+48]\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+16]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:6", "text": "CLIPW             m1, m2, m3\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n%endmacro\n\n%macro ADD_RES_SSE_16_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+16]\n    mova              m2, [%3+32]\n    mova              m3, [%3+48]\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+16]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+16], m3\n%endmacro\n\n%macro ADD_RES_SSE_32_10 2\n    mova              m0, [%2]\n    mova              m1, [%2+16]\n    mova              m2, [%2+32]\n    mova              m3, [%2+48]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+32]\n    paddw             m3, [%1+48]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:7", "text": "mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_AVX2_32_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+32]\n    mova              m2, [%3+64]\n    mova              m3, [%3+96]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+32]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+32]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1+16\n    RET\n\nINIT_XMM sse2\ncglobal hevc_add_residual_8_10, 3, 4, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:8", "text": "mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1+16\n    RET\n\nINIT_XMM sse2\ncglobal hevc_add_residual_8_10, 3, 4, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n    lea               r3, [r2*3]\n\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_10  r0, r2, r3, r1+64\n    RET\n\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 8\n.loop:\n    ADD_RES_SSE_16_10 r0, r2, r1\n    lea               r0, [r0+r2*2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n    lea                r3, [r2*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:9", "text": "cglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n    lea                r3, [r2*3]\n\n    mov               r4d, 4\n.loop:\n    ADD_RES_AVX2_16_10 r0, r2, r3, r1\n    lea                r0, [r0+r2*4]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n\n    mov               r4d, 16\n.loop:\n    ADD_RES_AVX2_32_10 r0, r2, r1\n    lea                r0, [r0+r2*2]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/add_res.asm", "line_start": 321, "line_end": 362}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:1", "text": "; *****************************************************************************\n; * Provide SIMD optimizations for add_residual functions for HEVC decoding\n; * Copyright (c) 2014 Pierre-Edouard LEPERE\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; ******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\ncextern pw_1023\n%define max_pixels_10 pw_1023\n\n; the add_res macros and functions were largely inspired by h264_idct.asm from the x264 project\n%macro ADD_RES_MMX_4_8 0\n    mova              m0, [r1]\n    mova              m2, [r1+8]\n\n    movd              m1, [r0]\n    movd              m3, [r0+r2]\n    punpcklbw         m1, m4\n    punpcklbw         m3, m4\n\n    paddsw            m0, m1\n    paddsw            m2, m3\n    packuswb          m0, m4\n    packuswb          m2, m4\n\n    movd            [r0], m0\n    movd         [r0+r2], m2\n%endmacro\n\n\nINIT_MMX mmxext\n; void ff_hevc_add_residual_4_8_mmxext(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_4_8, 3, 3, 6\n    pxor              m4, m4\n    ADD_RES_MMX_4_8\n    add               r1, 16\n    lea               r0, [r0+r2*2]\n    ADD_RES_MMX_4_8\n    RET\n\n%macro ADD_RES_SSE_8_8 0\n    movq              m0, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:2", "text": "packuswb          m0, m4\n    packuswb          m2, m4\n\n    movd            [r0], m0\n    movd         [r0+r2], m2\n%endmacro\n\n\nINIT_MMX mmxext\n; void ff_hevc_add_residual_4_8_mmxext(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_4_8, 3, 3, 6\n    pxor              m4, m4\n    ADD_RES_MMX_4_8\n    add               r1, 16\n    lea               r0, [r0+r2*2]\n    ADD_RES_MMX_4_8\n    RET\n\n%macro ADD_RES_SSE_8_8 0\n    movq              m0, [r0]\n    movq              m1, [r0+r2]\n    punpcklbw         m0, m4\n    punpcklbw         m1, m4\n    paddsw            m0, [r1]\n    paddsw            m1, [r1+16]\n    packuswb          m0, m1\n\n    movq              m2, [r0+r2*2]\n    movq              m3, [r0+r3]\n    punpcklbw         m2, m4\n    punpcklbw         m3, m4\n    paddsw            m2, [r1+32]\n    paddsw            m3, [r1+48]\n    packuswb          m2, m3\n\n    movq            [r0], m0\n    movhps       [r0+r2], m0\n    movq       [r0+r2*2], m2\n    movhps       [r0+r3], m2\n%endmacro\n\n%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n%if cpuflag(avx2)\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n    paddsw            m1, m5\n    paddsw            m2, m6\n%else\n    paddsw            m1, [r1+%1]\n    paddsw            m2, [r1+%1+16]\n%endif\n\n    mova              m3, [%3]\n    mova              m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:3", "text": "%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n%if cpuflag(avx2)\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n    paddsw            m1, m5\n    paddsw            m2, m6\n%else\n    paddsw            m1, [r1+%1]\n    paddsw            m2, [r1+%1+16]\n%endif\n\n    mova              m3, [%3]\n    mova              m4, m3\n    punpcklbw         m3, m0\n    punpckhbw         m4, m0\n%if cpuflag(avx2)\n    mova             xm5, [r1+%1+mmsize*2]\n    mova             xm6, [r1+%1+mmsize*2+16]\n    vinserti128       m5, m5, [r1+%1+96], 1\n    vinserti128       m6, m6, [r1+%1+112], 1\n    paddsw            m3, m5\n    paddsw            m4, m6\n%else\n    paddsw            m3, [r1+%1+mmsize*2]\n    paddsw            m4, [r1+%1+mmsize*2+16]\n%endif\n\n    packuswb          m1, m2\n    packuswb          m3, m4\n    mova            [%2], m1\n    mova            [%3], m3\n%endmacro\n\n\nINIT_XMM sse2\n; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 5\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8\n    add               r1, 64\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 5\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:4", "text": "INIT_XMM sse2\n; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 5\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8\n    add               r1, 64\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 5\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]\n    dec                r4d\n    jg .loop\n    RET\n\n; void ff_hevc_add_residual_32_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 5\n    pxor                m0, m0\n    mov                r4d, 16\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,    r0+16\n    ADD_RES_SSE_16_32_8 64, r0+r2, r0+r2+16\n    add                 r1, 128\n    lea                 r0, [r0+r2*2]\n    dec                r4d\n    jg .loop\n    RET\n\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL\n\n%macro ADD_RES_SSE_8_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:5", "text": "%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL\n\n%macro ADD_RES_SSE_8_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+16]\n    mova              m2, [%4+32]\n    mova              m3, [%4+48]\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_MMX_4_10 3\n    mova              m0, [%1+0]\n    mova              m1, [%1+%2]\n    paddw             m0, [%3]\n    paddw             m1, [%3+8]\n    CLIPW             m0, m2, m3\n    CLIPW             m1, m2, m3\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n%endmacro\n\n%macro ADD_RES_SSE_16_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+16]\n    mova              m2, [%3+32]\n    mova              m3, [%3+48]\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+16]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:6", "text": "paddw             m1, [%3+8]\n    CLIPW             m0, m2, m3\n    CLIPW             m1, m2, m3\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n%endmacro\n\n%macro ADD_RES_SSE_16_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+16]\n    mova              m2, [%3+32]\n    mova              m3, [%3+48]\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+16]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+16], m3\n%endmacro\n\n%macro ADD_RES_SSE_32_10 2\n    mova              m0, [%2]\n    mova              m1, [%2+16]\n    mova              m2, [%2+32]\n    mova              m3, [%2+48]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+32]\n    paddw             m3, [%1+48]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:7", "text": "mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_AVX2_32_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+32]\n    mova              m2, [%3+64]\n    mova              m3, [%3+96]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+32]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+32]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    add               r1, 16\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    RET\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:8", "text": "CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    add               r1, 16\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    RET\n\nINIT_XMM sse2\ncglobal hevc_add_residual_8_10, 3, 4, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n    lea               r3, [r2*3]\n\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    lea               r0, [r0+r2*4]\n    add               r1, 64\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    RET\n\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 8\n.loop:\n    ADD_RES_SSE_16_10 r0, r2, r1\n    lea               r0, [r0+r2*2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:9", "text": "dec              r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n    lea                r3, [r2*3]\n\n    mov               r4d, 4\n.loop:\n    ADD_RES_AVX2_16_10 r0, r2, r3, r1\n    lea                r0, [r0+r2*4]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n\n    mov               r4d, 16\n.loop:\n    ADD_RES_AVX2_32_10 r0, r2, r1\n    lea                r0, [r0+r2*2]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f4d9fb0bd0a284853da04cb8bd538bb9a77e0db0/libavcodec/x86/hevc/add_res.asm", "line_start": 321, "line_end": 366}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:2", "text": "packuswb          m0, m4\n    packuswb          m2, m4\n\n    movd            [r0], m0\n    movd         [r0+r2], m2\n%endmacro\n\n\nINIT_MMX mmxext\n; void ff_hevc_add_residual_4_8_mmxext(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_4_8, 3, 3, 6\n    pxor              m4, m4\n    ADD_RES_MMX_4_8\n    add               r1, 16\n    lea               r0, [r0+r2*2]\n    ADD_RES_MMX_4_8\n    RET\n\n%macro ADD_RES_SSE_8_8 0\n    movq              m0, [r0]\n    movq              m1, [r0+r2]\n    punpcklbw         m0, m4\n    punpcklbw         m1, m4\n    mova              m2, [r1]\n    mova              m3, [r1+16]\n    paddsw            m0, m2\n    paddsw            m1, m3\n    packuswb          m0, m1\n\n    movq              m2, [r0+r2*2]\n    movq              m3, [r0+r3]\n    punpcklbw         m2, m4\n    punpcklbw         m3, m4\n    mova              m6, [r1+32]\n    mova              m7, [r1+48]\n    paddsw            m2, m6\n    paddsw            m3, m7\n    packuswb          m2, m3\n\n    movq            [r0], m0\n    movhps       [r0+r2], m0\n    movq       [r0+r2*2], m2\n    movhps       [r0+r3], m2\n%endmacro\n\n%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n%if cpuflag(avx2)\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n%endif\n    paddsw            m1, m5\n    paddsw            m2, m6\n\n    mova              m3, [%3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73/libavcodec/x86/hevc/add_res.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:3", "text": "movhps       [r0+r2], m0\n    movq       [r0+r2*2], m2\n    movhps       [r0+r3], m2\n%endmacro\n\n%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n%if cpuflag(avx2)\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n%endif\n    paddsw            m1, m5\n    paddsw            m2, m6\n\n    mova              m3, [%3]\n    mova              m4, m3\n    punpcklbw         m3, m0\n    punpckhbw         m4, m0\n    mova             xm5, [r1+%1+mmsize*2]\n    mova             xm6, [r1+%1+mmsize*2+16]\n%if cpuflag(avx2)\n    vinserti128       m5, m5, [r1+%1+96], 1\n    vinserti128       m6, m6, [r1+%1+112], 1\n%endif\n    paddsw            m3, m5\n    paddsw            m4, m6\n\n    packuswb          m1, m2\n    packuswb          m3, m4\n    mova            [%2], m1\n    mova            [%3], m3\n%endmacro\n\n\nINIT_XMM sse2\n; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 8\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8\n    add               r1, 64\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 7\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73/libavcodec/x86/hevc/add_res.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:4", "text": "; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 8\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8\n    add               r1, 64\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 7\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]\n    dec                r4d\n    jg .loop\n    RET\n\n; void ff_hevc_add_residual_32_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                m0, m0\n    mov                r4d, 16\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,    r0+16\n    ADD_RES_SSE_16_32_8 64, r0+r2, r0+r2+16\n    add                 r1, 128\n    lea                 r0, [r0+r2*2]\n    dec                r4d\n    jg .loop\n    RET\n\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL\n\n%macro ADD_RES_SSE_8_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+16]\n    mova              m2, [%4+32]\n    mova              m3, [%4+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73/libavcodec/x86/hevc/add_res.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:7", "text": "mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_AVX2_32_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+32]\n    mova              m2, [%3+64]\n    mova              m3, [%3+96]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+32]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+32]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    add               r1, 16\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    RET\n\nINIT_XMM sse2\ncglobal hevc_add_residual_8_10, 3, 4, 6\n    pxor              m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73/libavcodec/x86/hevc/add_res.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:8", "text": "mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    add               r1, 16\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    RET\n\nINIT_XMM sse2\ncglobal hevc_add_residual_8_10, 3, 4, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n    lea               r3, [r2*3]\n\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    lea               r0, [r0+r2*4]\n    add               r1, 64\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    RET\n\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 8\n.loop:\n    ADD_RES_SSE_16_10 r0, r2, r1\n    lea               r0, [r0+r2*2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73/libavcodec/x86/hevc/add_res.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/add_res.asm:9", "text": "RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n    lea                r3, [r2*3]\n\n    mov               r4d, 4\n.loop:\n    ADD_RES_AVX2_16_10 r0, r2, r3, r1\n    lea                r0, [r0+r2*4]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n\n    mov               r4d, 16\n.loop:\n    ADD_RES_AVX2_32_10 r0, r2, r1\n    lea                r0, [r0+r2*2]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/add_res.asm", "license": "LGPL-2.1", "commit": "23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23efbb5e2e26b39a0532a4773b2cb7cafe0e0b73/libavcodec/x86/hevc/add_res.asm", "line_start": 321, "line_end": 364}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:1", "text": ";*****************************************************************************\n;* SSE2-optimized HEVC deblocking code\n;*****************************************************************************\n;* Copyright (C) 2013 VTT\n;*\n;* Authors: Seppo Tomperi <seppo.tomperi@vtt.fi>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_1023\n%define pw_pixel_max_10 pw_1023\npw_pixel_max_12: times 8 dw ((1 << 12)-1)\npw_m2:           times 8 dw -2\npd_1 :           times 4 dd  1\n\ncextern pw_4\ncextern pw_8\ncextern pw_m1\n\nSECTION .text\nINIT_XMM sse2\n\n; in: 8 rows of 4 bytes in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8B_LOAD 8\n    movd             m0, %1\n    movd             m2, %2\n    movd             m1, %3\n    movd             m3, %4\n\n    punpcklbw        m0, m2\n    punpcklbw        m1, m3\n    punpcklwd        m0, m1\n\n    movd             m4, %5\n    movd             m6, %6\n    movd             m5, %7\n    movd             m3, %8\n\n    punpcklbw        m4, m6\n    punpcklbw        m5, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:2", "text": "; in: 8 rows of 4 bytes in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8B_LOAD 8\n    movd             m0, %1\n    movd             m2, %2\n    movd             m1, %3\n    movd             m3, %4\n\n    punpcklbw        m0, m2\n    punpcklbw        m1, m3\n    punpcklwd        m0, m1\n\n    movd             m4, %5\n    movd             m6, %6\n    movd             m5, %7\n    movd             m3, %8\n\n    punpcklbw        m4, m6\n    punpcklbw        m5, m3\n    punpcklwd        m4, m5\n\n    punpckhdq        m2, m0, m4\n    punpckldq        m0, m4\n\n    pxor             m5, m5\n    punpckhbw        m1, m0, m5\n    punpcklbw        m0, m5\n    punpckhbw        m3, m2, m5\n    punpcklbw        m2, m5\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 bytes in %1..%8\n%macro TRANSPOSE8x4B_STORE 8\n    packuswb         m0, m2\n    packuswb         m1, m3\n    SBUTTERFLY bw, 0, 1, 2\n    SBUTTERFLY wd, 0, 1, 2\n\n    movd             %1, m0\n    pshufd           m0, m0, 0x39\n    movd             %2, m0\n    pshufd           m0, m0, 0x39\n    movd             %3, m0\n    pshufd           m0, m0, 0x39\n    movd             %4, m0\n\n    movd             %5, m1\n    pshufd           m1, m1, 0x39\n    movd             %6, m1\n    pshufd           m1, m1, 0x39\n    movd             %7, m1\n    pshufd           m1, m1, 0x39\n    movd             %8, m1\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:3", "text": "movd             %1, m0\n    pshufd           m0, m0, 0x39\n    movd             %2, m0\n    pshufd           m0, m0, 0x39\n    movd             %3, m0\n    pshufd           m0, m0, 0x39\n    movd             %4, m0\n\n    movd             %5, m1\n    pshufd           m1, m1, 0x39\n    movd             %6, m1\n    pshufd           m1, m1, 0x39\n    movd             %7, m1\n    pshufd           m1, m1, 0x39\n    movd             %8, m1\n%endmacro\n\n; in: 8 rows of 4 words in %4..%11\n; out: 4 rows of 8 words in m0..m3\n%macro TRANSPOSE4x8W_LOAD 8\n    movq             m0, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklwd        m0, m2\n    punpcklwd        m1, m3\n    punpckhdq        m2, m0, m1\n    punpckldq        m0, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq             m3, %8\n\n    punpcklwd        m4, m6\n    punpcklwd        m5, m3\n    punpckhdq        m6, m4, m5\n    punpckldq        m4, m5\n\n    punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6\n    punpcklqdq       m2, m6\n\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 words in %1..%8\n%macro TRANSPOSE8x4W_STORE 9\n    TRANSPOSE4x4W     0, 1, 2, 3, 4\n\n    pxor             m5, m5; zeros reg\n    CLIPW            m0, m5, %9\n    CLIPW            m1, m5, %9\n    CLIPW            m2, m5, %9\n    CLIPW            m3, m5, %9\n\n    movq             %1, m0\n    movhps           %2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:4", "text": "punpckhqdq       m1, m0, m4\n    punpcklqdq       m0, m4\n    punpckhqdq       m3, m2, m6\n    punpcklqdq       m2, m6\n\n%endmacro\n\n; in: 4 rows of 8 words in m0..m3\n; out: 8 rows of 4 words in %1..%8\n%macro TRANSPOSE8x4W_STORE 9\n    TRANSPOSE4x4W     0, 1, 2, 3, 4\n\n    pxor             m5, m5; zeros reg\n    CLIPW            m0, m5, %9\n    CLIPW            m1, m5, %9\n    CLIPW            m2, m5, %9\n    CLIPW            m3, m5, %9\n\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; in: 8 rows of 8 bytes in %1..%8\n; out: 8 rows of 8 words in m0..m7\n%macro TRANSPOSE8x8B_LOAD 8\n    movq             m7, %1\n    movq             m2, %2\n    movq             m1, %3\n    movq             m3, %4\n\n    punpcklbw        m7, m2\n    punpcklbw        m1, m3\n    punpcklwd        m3, m7, m1\n    punpckhwd        m7, m1\n\n    movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq            m15, %8\n\n    punpcklbw        m4, m6\n    punpcklbw        m5, m15\n    punpcklwd        m9, m4, m5\n    punpckhwd        m4, m5\n\n    punpckldq        m1, m3, m9;  0, 1\n    punpckhdq        m3, m9;  2, 3\n\n    punpckldq        m5, m7, m4;  4, 5\n    punpckhdq        m7, m4;  6, 7\n\n    pxor            m13, m13\n\n    punpcklbw        m0, m1, m13; 0 in 16 bit", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:5", "text": "movq             m4, %5\n    movq             m6, %6\n    movq             m5, %7\n    movq            m15, %8\n\n    punpcklbw        m4, m6\n    punpcklbw        m5, m15\n    punpcklwd        m9, m4, m5\n    punpckhwd        m4, m5\n\n    punpckldq        m1, m3, m9;  0, 1\n    punpckhdq        m3, m9;  2, 3\n\n    punpckldq        m5, m7, m4;  4, 5\n    punpckhdq        m7, m4;  6, 7\n\n    pxor            m13, m13\n\n    punpcklbw        m0, m1, m13; 0 in 16 bit\n    punpckhbw        m1, m13; 1 in 16 bit\n\n    punpcklbw        m2, m3, m13; 2\n    punpckhbw        m3, m13; 3\n\n    punpcklbw        m4, m5, m13; 4\n    punpckhbw        m5, m13; 5\n\n    punpcklbw        m6, m7, m13; 6\n    punpckhbw        m7, m13; 7\n%endmacro\n\n\n; in: 8 rows of 8 words in m0..m8\n; out: 8 rows of 8 bytes in %1..%8\n%macro TRANSPOSE8x8B_STORE 8\n    packuswb         m0, m4\n    packuswb         m1, m5\n    packuswb         m2, m6\n    packuswb         m3, m7\n    TRANSPOSE2x4x4B   0, 1, 2, 3, 4\n\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; in: 8 rows of 8 words in %1..%8\n; out: 8 rows of 8 words in m0..m7\n%macro TRANSPOSE8x8W_LOAD 8\n    movdqu           m0, %1\n    movdqu           m1, %2\n    movdqu           m2, %3\n    movdqu           m3, %4\n    movdqu           m4, %5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:6", "text": "TRANSPOSE2x4x4B   0, 1, 2, 3, 4\n\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; in: 8 rows of 8 words in %1..%8\n; out: 8 rows of 8 words in m0..m7\n%macro TRANSPOSE8x8W_LOAD 8\n    movdqu           m0, %1\n    movdqu           m1, %2\n    movdqu           m2, %3\n    movdqu           m3, %4\n    movdqu           m4, %5\n    movdqu           m5, %6\n    movdqu           m6, %7\n    movdqu           m7, %8\n    TRANSPOSE8x8W     0, 1, 2, 3, 4, 5, 6, 7, 8\n%endmacro\n\n; in: 8 rows of 8 words in m0..m8\n; out: 8 rows of 8 words in %1..%8\n%macro TRANSPOSE8x8W_STORE 9\n    TRANSPOSE8x8W     0, 1, 2, 3, 4, 5, 6, 7, 8\n\n    pxor             m8, m8\n    CLIPW            m0, m8, %9\n    CLIPW            m1, m8, %9\n    CLIPW            m2, m8, %9\n    CLIPW            m3, m8, %9\n    CLIPW            m4, m8, %9\n    CLIPW            m5, m8, %9\n    CLIPW            m6, m8, %9\n    CLIPW            m7, m8, %9\n\n    movdqu           %1, m0\n    movdqu           %2, m1\n    movdqu           %3, m2\n    movdqu           %4, m3\n    movdqu           %5, m4\n    movdqu           %6, m5\n    movdqu           %7, m6\n    movdqu           %8, m7\n%endmacro\n\n\n; in: %2 clobbered\n; out: %1\n; mask in m11\n; clobbers m10\n%macro MASKED_COPY 2\n    pand             %2, m11 ; and mask\n    pandn           m10, m11, %1; and -mask\n    por              %1, %2, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:7", "text": "movdqu           %1, m0\n    movdqu           %2, m1\n    movdqu           %3, m2\n    movdqu           %4, m3\n    movdqu           %5, m4\n    movdqu           %6, m5\n    movdqu           %7, m6\n    movdqu           %8, m7\n%endmacro\n\n\n; in: %2 clobbered\n; out: %1\n; mask in m11\n; clobbers m10\n%macro MASKED_COPY 2\n    pand             %2, m11 ; and mask\n    pandn           m10, m11, %1; and -mask\n    por              %1, %2, m10\n%endmacro\n\n; in: %2 clobbered\n; out: %1\n; mask in %3, will be clobbered\n%macro MASKED_COPY2 3\n    pand             %2, %3 ; and mask\n    pandn            %3, %1; and -mask\n    por              %1, %2, %3\n%endmacro\n\nALIGN 16\n; input in m0 ... m3 and tcs in r2. Output in m1 and m2\n%macro CHROMA_DEBLOCK_BODY 1\n    psubw            m4, m2, m1; q0 - p0\n    psubw            m5, m0, m3; p1 - q1\n    psllw            m4, 2; << 2\n    paddw            m5, m4;\n\n    ;tc calculations\n    movq             m6, [tcq]; tc0\n    punpcklwd        m6, m6\n    pshufd           m6, m6, 0xA0; tc0, tc1\n%if cpuflag(ssse3)\n    psignw           m4, m6, [pw_m1]; -tc0, -tc1\n%else\n    pmullw           m4, m6, [pw_m1]; -tc0, -tc1\n%endif\n    ;end tc calculations\n\n    paddw            m5, [pw_4]; +4\n    psraw            m5, 3; >> 3\n\n%if %1 > 8\n    psllw            m4, %1-8; << (BIT_DEPTH - 8)\n    psllw            m6, %1-8; << (BIT_DEPTH - 8)\n%endif\n    pmaxsw           m5, m4\n    pminsw           m5, m6\n    paddw            m1, m5; p0 + delta0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:8", "text": "movq             m6, [tcq]; tc0\n    punpcklwd        m6, m6\n    pshufd           m6, m6, 0xA0; tc0, tc1\n%if cpuflag(ssse3)\n    psignw           m4, m6, [pw_m1]; -tc0, -tc1\n%else\n    pmullw           m4, m6, [pw_m1]; -tc0, -tc1\n%endif\n    ;end tc calculations\n\n    paddw            m5, [pw_4]; +4\n    psraw            m5, 3; >> 3\n\n%if %1 > 8\n    psllw            m4, %1-8; << (BIT_DEPTH - 8)\n    psllw            m6, %1-8; << (BIT_DEPTH - 8)\n%endif\n    pmaxsw           m5, m4\n    pminsw           m5, m6\n    paddw            m1, m5; p0 + delta0\n    psubw            m2, m5; q0 - delta0\n%endmacro\n\n; input in m0 ... m7, beta in r2 tcs in r3. Output in m1...m6\n%macro LUMA_DEBLOCK_BODY 2\n    psllw            m9, m2, 1; *2\n    psubw           m10, m1, m9\n    paddw           m10, m3\n    ABS1            m10, m11 ; 0dp0, 0dp3 , 1dp0, 1dp3\n\n    psllw            m9, m5, 1; *2\n    psubw           m11, m6, m9\n    paddw           m11, m4\n    ABS1            m11, m13 ; 0dq0, 0dq3 , 1dq0, 1dq3\n\n    ;beta calculations\n%if %1 > 8\n    shl             betaq, %1 - 8\n%endif\n    movd            m13, betad\n    SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r10, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test           r10d, r10d\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:9", "text": "SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r10, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test           r10d, r10d\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2\n    psraw           m15, m13, 2;   beta >> 2\n    psllw            m8, m9, 1;\n    pcmpgtw         m15, m8; (d0 << 1) < beta_2, (d3 << 1) < beta_2\n    movmskps        r6, m15;\n    ;end weak / strong decision\n\n    ; weak filter nd_p/q calculation\n    psrlq            m8, m10, 48\n    paddw            m8, m10\n    pshufd           m8, m8, 0x8\n    movq            r7q, m8\n\n    psrlq            m8, m11, 48\n    paddw            m8, m11\n    pshufd           m8, m8, 0x8\n    movq            r8q, m8\n    ; end calc for weak filter\n\n    ; filtering mask\n    mov              r9, r10\n    shr             r9d, 3\n    movd            m15, r9d\n    and            r10d, 1\n    movd            m11, r10d\n    shufps          m11, m15, 0\n    shl             r9d, 1\n    or             r10d, r9d\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov             r9d, [tcq];\n%if %1 > 8\n    shl             r9d, %1 - 8\n%endif\n    movd             m9, r9d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl             r3d, %1 - 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:10", "text": "shr             r9d, 3\n    movd            m15, r9d\n    and            r10d, 1\n    movd            m11, r10d\n    shufps          m11, m15, 0\n    shl             r9d, 1\n    or             r10d, r9d\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov             r9d, [tcq];\n%if %1 > 8\n    shl             r9d, %1 - 8\n%endif\n    movd             m9, r9d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl             r3d, %1 - 8\n%endif\n    add             r9d, r3d; tc0 + tc1\n    jz             .bypassluma\n    movd             m8, r3d; tc1\n    punpcklwd        m9, m9\n    punpcklwd        m8, m8\n    shufps           m9, m8, 0; tc0, tc1\n    psllw            m8, m9, 2; tc << 2\n    pavgw            m8, m9; tc25 = ((tc * 5 + 1) >> 1)\n    ;end tc25 calculations\n\n    ;----beta_3 comparison-----\n    psubw           m12, m0, m3;      p3 - p0\n    ABS1            m12, m14; abs(p3 - p0)\n\n    psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r9d, m13;\n    and             r6d, r9d; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    pcmpgtw          m8, m12; tc25 comparisons\n    movmskps        r9d, m8;\n    and             r6d, r9d; strong mask, beta_2, beta_3 and tc25 comparisons\n    ;----tc25 comparison end---\n    mov             r9d, r6d;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:11", "text": "pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r9d, m13;\n    and             r6d, r9d; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    pcmpgtw          m8, m12; tc25 comparisons\n    movmskps        r9d, m8;\n    and             r6d, r9d; strong mask, beta_2, beta_3 and tc25 comparisons\n    ;----tc25 comparison end---\n    mov             r9d, r6d;\n    shr             r9d, 1;\n    and             r6d, r9d; strong mask, bits 2 and 0\n\n    pmullw          m14, m9, [pw_m2]; -tc * 2\n    paddw            m9, m9\n\n    and             r6, 5; 0b101\n    mov             r9d, r6d; strong mask\n    shr             r6, 2;\n    movd            m12, r6d; store to xmm for mask generation\n    shl             r6, 1\n    and             r9d, 1\n    movd            m10, r9d; store to xmm for mask generation\n    or              r6d, r9d; final strong mask, bits 1 and 0\n    jz      .weakfilter\n\n    shufps          m10, m12, 0\n    pcmpeqd         m10, [pd_1]; strong mask\n\n    mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13; p2 + p1 + p0 + q0 + 2\n    psraw           m15, 2;  (p2 + p1 + p0 + q0 + 2) >> 2\n    psubw           m15, m2;((p2 + p1 + p0 + q0 + 2) >> 2) - p1\n    pmaxsw          m15, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:12", "text": "pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13; p2 + p1 + p0 + q0 + 2\n    psraw           m15, 2;  (p2 + p1 + p0 + q0 + 2) >> 2\n    psubw           m15, m2;((p2 + p1 + p0 + q0 + 2) >> 2) - p1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m2; p1'\n\n    paddw            m8, m1, m0;     p3 +   p2\n    paddw            m8, m8;   2*p3 + 2*p2\n    paddw            m8, m1;   2*p3 + 3*p2\n    paddw            m8, m10;  2*p3 + 3*p2 + p1 + p0 + q0\n    paddw           m13, m13\n    paddw            m8, m13;  2*p3 + 3*p2 + p1 + p0 + q0 + 4\n    psraw            m8, 3;   (2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3\n    psubw            m8, m1; ((2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3) - p2\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m1; p2'\n    MASKED_COPY      m1, m8\n\n    paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m5; q1'", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:13", "text": "paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m5; q1'\n\n    paddw           m13, m7;      q3 + 2\n    paddw           m13, m6;      q3 +  q2 + 2\n    paddw           m13, m13;   2*q3 + 2*q2 + 4\n    paddw           m13, m6;    2*q3 + 3*q2 + 4\n    paddw           m13, m10;   2*q3 + 3*q2 + q1 + q0 + p0 + 4\n    psraw           m13, 3;    (2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3\n    psubw           m13, m6;  ((2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3) - q2\n    pmaxsw          m13, m14\n    pminsw          m13, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m13, m6; q2'\n\n    MASKED_COPY      m6, m13\n    MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6d, r10d; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov              r9, r6\n    shr             r9d, 1\n    movd            m12, r9d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov            r10d, betad\n    shr            r10d, 1;\n    add           betad, r10d\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)\n    psubw           m10, m5, m2 ; q1 - p1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:14", "text": "jz             .store\n\n    ; weak filtering mask\n    mov              r9, r6\n    shr             r9d, 1\n    movd            m12, r9d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov            r10d, betad\n    shr            r10d, 1;\n    add           betad, r10d\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)\n    psubw           m10, m5, m2 ; q1 - p1\n    psubw           m12, m10 ; 3 * (q0 - p0) - (q1 - p1)\n%if %1 < 12\n    paddw           m10, m12, m12\n    paddw           m12, [pw_8]; + 8\n    paddw           m12, m10 ; 9 * (q0 - p0) - 3 * ( q1 - p1 )\n    psraw           m12, 4; >> 4 , delta0\n    PABSW           m13, m12; abs(delta0)\n%elif cpuflag(ssse3)\n    pabsw           m13, m12\n    paddw           m10, m13, m13\n    paddw           m13, [pw_8]\n    paddw           m13, m10 ; abs(9 * (q0 - p0) - 3 * ( q1 - p1 ))\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    paddw           m13, m10\n    psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:15", "text": "pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc\n\n    pmaxsw          m12, m14\n    pminsw          m12, m9;  av_clip(delta0, -tc, tc)\n\n    psraw            m9, 1;   tc -> tc / 2\n%if cpuflag(ssse3)\n    psignw          m14, m9, [pw_m1]; -tc / 2\n%else\n    pmullw          m14, m9, [pw_m1]; -tc / 2\n%endif\n\n    pavgw           m15, m1, m3;   (p2 + p0 + 1) >> 1\n    psubw           m15, m2;  ((p2 + p0 + 1) >> 1) - p1\n    paddw           m15, m12; ((p2 + p0 + 1) >> 1) - p1 + delta0\n    psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movq            m13, r7q; 1dp0 + 1dp3, 0dp0 + 0dp3\n    punpcklwd       m13, m13\n    pshufd          m13, m13, 10100000b\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movq            m13, r8q;\n    punpcklwd       m13, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:16", "text": "SPLATW          m10, m10, 0\n\n    movq            m13, r7q; 1dp0 + 1dp3, 0dp0 + 0dp3\n    punpcklwd       m13, m13\n    pshufd          m13, m13, 10100000b\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movq            m13, r8q;\n    punpcklwd       m13, m13\n    movhlps         m15, m13\n    pshufd          m13, m13, 10100000b\n\n    pcmpgtw         m10, m13; compare to ((beta+(beta>>1))>>3)\n    pand            m10, m11\n    MASKED_COPY2     m5, m8, m10; write q1'\n\n    paddw           m15, m3, m12 ; p0 + delta0\n    MASKED_COPY      m3, m15\n\n    psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:17", "text": "sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 12\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_12]\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:18", "text": "movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 10\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_10]\n    CLIPW           m2, m5, [pw_pixel_max_10]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n\ncglobal hevc_h_loop_filter_chroma_12, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:19", "text": "movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:20", "text": "cglobal hevc_v_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:21", "text": "packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:22", "text": ".bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/deblock.asm", "line_start": 841, "line_end": 883}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:9", "text": "SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r10, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test           r10d, r10d\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2\n    psraw           m15, m13, 2;   beta >> 2\n    psllw            m8, m9, 1;\n    pcmpgtw         m15, m8; (d0 << 1) < beta_2, (d3 << 1) < beta_2\n    movmskps        r6, m15;\n    ;end weak / strong decision\n\n    ; weak filter nd_p/q calculation\n    psrlq            m8, m10, 48\n    paddw            m8, m10\n    pshufd           m8, m8, 0x8\n    movq            r7q, m8\n\n    psrlq            m8, m11, 48\n    paddw            m8, m11\n    pshufd           m8, m8, 0x8\n    movq            r8q, m8\n    ; end calc for weak filter\n\n    ; filtering mask\n    mov              r9, r10\n    shr             r9d, 3\n    movd            m15, r9d\n    and            r10d, 1\n    movd            m11, r10d\n    shufps          m11, m15, 0\n    shl             r9d, 1\n    or             r10d, r9d\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov             r9d, [tcq];\n%if %1 > 8\n    shl             r9d, %1 - 8\n%endif\n    movd             m8, r9d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl             r3d, %1 - 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:10", "text": "shr             r9d, 3\n    movd            m15, r9d\n    and            r10d, 1\n    movd            m11, r10d\n    shufps          m11, m15, 0\n    shl             r9d, 1\n    or             r10d, r9d\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov             r9d, [tcq];\n%if %1 > 8\n    shl             r9d, %1 - 8\n%endif\n    movd             m8, r9d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl             r3d, %1 - 8\n%endif\n    add             r9d, r3d; tc0 + tc1\n    jz             .bypassluma\n    movd             m9, r3d; tc1\n    punpcklwd        m8, m8\n    punpcklwd        m9, m9\n    shufps           m8, m9, 0; tc0, tc1\n    mova             m9, m8\n    psllw            m8, 2; tc << 2\n    pavgw            m8, m9; tc25 = ((tc * 5 + 1) >> 1)\n    ;end tc25 calculations\n\n    ;----beta_3 comparison-----\n    psubw           m12, m0, m3;      p3 - p0\n    ABS1            m12, m14; abs(p3 - p0)\n\n    psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r9d, m13;\n    and             r6d, r9d; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    pcmpgtw          m8, m12; tc25 comparisons\n    movmskps        r9d, m8;\n    and             r6d, r9d; strong mask, beta_2, beta_3 and tc25 comparisons\n    ;----tc25 comparison end---", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:11", "text": "pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r9d, m13;\n    and             r6d, r9d; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    pcmpgtw          m8, m12; tc25 comparisons\n    movmskps        r9d, m8;\n    and             r6d, r9d; strong mask, beta_2, beta_3 and tc25 comparisons\n    ;----tc25 comparison end---\n    mov             r9d, r6d;\n    shr             r9d, 1;\n    and             r6d, r9d; strong mask, bits 2 and 0\n\n    pmullw          m14, m9, [pw_m2]; -tc * 2\n    paddw            m9, m9\n\n    and             r6, 5; 0b101\n    mov             r9d, r6d; strong mask\n    shr             r6, 2;\n    movd            m12, r6d; store to xmm for mask generation\n    shl             r6, 1\n    and             r9d, 1\n    movd            m10, r9d; store to xmm for mask generation\n    or              r6d, r9d; final strong mask, bits 1 and 0\n    jz      .weakfilter\n\n    shufps          m10, m12, 0\n    pcmpeqd         m10, [pd_1]; strong mask\n\n    mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13; p2 + p1 + p0 + q0 + 2\n    psraw           m15, 2;  (p2 + p1 + p0 + q0 + 2) >> 2\n    psubw           m15, m2;((p2 + p1 + p0 + q0 + 2) >> 2) - p1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:12", "text": "mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13; p2 + p1 + p0 + q0 + 2\n    psraw           m15, 2;  (p2 + p1 + p0 + q0 + 2) >> 2\n    psubw           m15, m2;((p2 + p1 + p0 + q0 + 2) >> 2) - p1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m2; p1'\n\n    paddw            m8, m1, m0;     p3 +   p2\n    paddw            m8, m8;   2*p3 + 2*p2\n    paddw            m8, m1;   2*p3 + 3*p2\n    paddw            m8, m10;  2*p3 + 3*p2 + p1 + p0 + q0\n    paddw           m13, m13\n    paddw            m8, m13;  2*p3 + 3*p2 + p1 + p0 + q0 + 4\n    psraw            m8, 3;   (2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3\n    psubw            m8, m1; ((2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3) - p2\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m1; p2'\n    MASKED_COPY      m1, m8\n\n    paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:13", "text": "paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m5; q1'\n\n    paddw           m13, m7;      q3 + 2\n    paddw           m13, m6;      q3 +  q2 + 2\n    paddw           m13, m13;   2*q3 + 2*q2 + 4\n    paddw           m13, m6;    2*q3 + 3*q2 + 4\n    paddw           m13, m10;   2*q3 + 3*q2 + q1 + q0 + p0 + 4\n    psraw           m13, 3;    (2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3\n    psubw           m13, m6;  ((2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3) - q2\n    pmaxsw          m13, m14\n    pminsw          m13, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m13, m6; q2'\n\n    MASKED_COPY      m6, m13\n    MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6d, r10d; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov              r9, r6\n    shr             r9d, 1\n    movd            m12, r9d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov            r10d, betad\n    shr            r10d, 1;\n    add           betad, r10d\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:14", "text": "and             r6d, r10d; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov              r9, r6\n    shr             r9d, 1\n    movd            m12, r9d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov            r10d, betad\n    shr            r10d, 1;\n    add           betad, r10d\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)\n    psubw           m10, m5, m2 ; q1 - p1\n    psubw           m12, m10 ; 3 * (q0 - p0) - (q1 - p1)\n%if %1 < 12\n    paddw           m10, m12, m12\n    paddw           m12, [pw_8]; + 8\n    paddw           m12, m10 ; 9 * (q0 - p0) - 3 * ( q1 - p1 )\n    psraw           m12, 4; >> 4 , delta0\n    PABSW           m13, m12; abs(delta0)\n%elif cpuflag(ssse3)\n    pabsw           m13, m12\n    paddw           m10, m13, m13\n    paddw           m13, [pw_8]\n    paddw           m13, m10 ; abs(9 * (q0 - p0) - 3 * ( q1 - p1 ))\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    paddw           m13, m10\n    psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:15", "text": "pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc\n\n    pmaxsw          m12, m14\n    pminsw          m12, m9;  av_clip(delta0, -tc, tc)\n\n    psraw            m9, 1;   tc -> tc / 2\n%if cpuflag(ssse3)\n    psignw          m14, m9, [pw_m1]; -tc / 2\n%else\n    pmullw          m14, m9, [pw_m1]; -tc / 2\n%endif\n\n    pavgw           m15, m1, m3;   (p2 + p0 + 1) >> 1\n    psubw           m15, m2;  ((p2 + p0 + 1) >> 1) - p1\n    paddw           m15, m12; ((p2 + p0 + 1) >> 1) - p1 + delta0\n    psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movq            m13, r7q; 1dp0 + 1dp3, 0dp0 + 0dp3\n    punpcklwd       m13, m13\n    pshufd          m13, m13, 10100000b\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movq            m13, r8q;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:16", "text": "movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movq            m13, r7q; 1dp0 + 1dp3, 0dp0 + 0dp3\n    punpcklwd       m13, m13\n    pshufd          m13, m13, 10100000b\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movq            m13, r8q;\n    punpcklwd       m13, m13\n    movhlps         m15, m13\n    pshufd          m13, m13, 10100000b\n\n    pcmpgtw         m10, m13; compare to ((beta+(beta>>1))>>3)\n    pand            m10, m11\n    MASKED_COPY2     m5, m8, m10; write q1'\n\n    paddw           m15, m3, m12 ; p0 + delta0\n    MASKED_COPY      m3, m15\n\n    psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:17", "text": "cglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 12\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_12]\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:18", "text": "movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 10\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_10]\n    CLIPW           m2, m5, [pw_pixel_max_10]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n\ncglobal hevc_h_loop_filter_chroma_12, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:19", "text": "CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:20", "text": "cglobal hevc_v_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:21", "text": ".store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:22", "text": "movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 11, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "2729c529880cd0d3c8d0925003fd33f694ef0870", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2729c529880cd0d3c8d0925003fd33f694ef0870/libavcodec/x86/hevc/deblock.asm", "line_start": 841, "line_end": 884}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:8", "text": "movq             m6, [tcq]; tc0\n    punpcklwd        m6, m6\n    pshufd           m6, m6, 0xA0; tc0, tc1\n%if cpuflag(ssse3)\n    psignw           m4, m6, [pw_m1]; -tc0, -tc1\n%else\n    pmullw           m4, m6, [pw_m1]; -tc0, -tc1\n%endif\n    ;end tc calculations\n\n    paddw            m5, [pw_4]; +4\n    psraw            m5, 3; >> 3\n\n%if %1 > 8\n    psllw            m4, %1-8; << (BIT_DEPTH - 8)\n    psllw            m6, %1-8; << (BIT_DEPTH - 8)\n%endif\n    pmaxsw           m5, m4\n    pminsw           m5, m6\n    paddw            m1, m5; p0 + delta0\n    psubw            m2, m5; q0 - delta0\n%endmacro\n\n; input in m0 ... m7, beta in r2 tcs in r3. Output in m1...m6\n%macro LUMA_DEBLOCK_BODY 2\n    psllw            m9, m2, 1; *2\n    psubw           m10, m1, m9\n    paddw           m10, m3\n    ABS1            m10, m11 ; 0dp0, 0dp3 , 1dp0, 1dp3\n\n    psllw            m9, m5, 1; *2\n    psubw           m11, m6, m9\n    paddw           m11, m4\n    ABS1            m11, m13 ; 0dq0, 0dq3 , 1dq0, 1dq3\n\n    ;beta calculations\n%if %1 > 8\n    shl             betaq, %1 - 8\n%endif\n    movd            m13, betad\n    SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r12, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test            r12, r12\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:9", "text": "SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r12, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test            r12, r12\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2\n    psraw           m15, m13, 2;   beta >> 2\n    psllw            m8, m9, 1;\n    pcmpgtw         m15, m8; (d0 << 1) < beta_2, (d3 << 1) < beta_2\n    movmskps        r6, m15;\n    ;end weak / strong decision\n\n    ; weak filter nd_p/q calculation\n    pshufd           m8, m10, 0x31\n    psrld            m8, 16\n    paddw            m8, m10\n    movd            r7d, m8\n    pshufd           m8, m8, 0x4E\n    movd            r8d, m8\n\n    pshufd           m8, m11, 0x31\n    psrld            m8, 16\n    paddw            m8, m11\n    movd            r9d, m8\n    pshufd           m8, m8, 0x4E\n    movd           r10d, m8\n    ; end calc for weak filter\n\n    ; filtering mask\n    mov             r11, r12\n    shr             r11, 3\n    movd            m15, r11d\n    and             r12, 1\n    movd            m11, r12d\n    shufps          m11, m15, 0\n    shl             r11, 1\n    or              r12, r11\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov            r11d, [tcq];\n%if %1 > 8\n    shl             r11, %1 - 8\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:10", "text": "; end calc for weak filter\n\n    ; filtering mask\n    mov             r11, r12\n    shr             r11, 3\n    movd            m15, r11d\n    and             r12, 1\n    movd            m11, r12d\n    shufps          m11, m15, 0\n    shl             r11, 1\n    or              r12, r11\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov            r11d, [tcq];\n%if %1 > 8\n    shl             r11, %1 - 8\n%endif\n    movd             m8, r11d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl              r3, %1 - 8\n%endif\n    add            r11d, r3d; tc0 + tc1\n    jz             .bypassluma\n    movd             m9, r3d; tc1\n    punpcklwd        m8, m8\n    punpcklwd        m9, m9\n    shufps           m8, m9, 0; tc0, tc1\n    mova             m9, m8\n    psllw            m8, 2; tc << 2\n    pavgw            m8, m9; tc25 = ((tc * 5 + 1) >> 1)\n    ;end tc25 calculations\n\n    ;----beta_3 comparison-----\n    psubw           m12, m0, m3;      p3 - p0\n    ABS1            m12, m14; abs(p3 - p0)\n\n    psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r11, m13;\n    and             r6, r11; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:11", "text": "psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r11, m13;\n    and             r6, r11; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    pcmpgtw          m8, m12; tc25 comparisons\n    movmskps        r11, m8;\n    and             r6, r11; strong mask, beta_2, beta_3 and tc25 comparisons\n    ;----tc25 comparison end---\n    mov             r11, r6;\n    shr             r11, 1;\n    and             r6, r11; strong mask, bits 2 and 0\n\n    pmullw          m14, m9, [pw_m2]; -tc * 2\n    paddw            m9, m9\n\n    and             r6, 5; 0b101\n    mov             r11, r6; strong mask\n    shr             r6, 2;\n    movd            m12, r6d; store to xmm for mask generation\n    shl             r6, 1\n    and             r11, 1\n    movd            m10, r11d; store to xmm for mask generation\n    or              r6, r11; final strong mask, bits 1 and 0\n    jz      .weakfilter\n\n    shufps          m10, m12, 0\n    pcmpeqd         m10, [pd_1]; strong mask\n\n    mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:12", "text": "shufps          m10, m12, 0\n    pcmpeqd         m10, [pd_1]; strong mask\n\n    mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13; p2 + p1 + p0 + q0 + 2\n    psraw           m15, 2;  (p2 + p1 + p0 + q0 + 2) >> 2\n    psubw           m15, m2;((p2 + p1 + p0 + q0 + 2) >> 2) - p1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m2; p1'\n\n    paddw            m8, m1, m0;     p3 +   p2\n    paddw            m8, m8;   2*p3 + 2*p2\n    paddw            m8, m1;   2*p3 + 3*p2\n    paddw            m8, m10;  2*p3 + 3*p2 + p1 + p0 + q0\n    paddw           m13, m13\n    paddw            m8, m13;  2*p3 + 3*p2 + p1 + p0 + q0 + 4\n    psraw            m8, 3;   (2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3\n    psubw            m8, m1; ((2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3) - p2\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m1; p2'\n    MASKED_COPY      m1, m8\n\n    paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:13", "text": "paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m5; q1'\n\n    paddw           m13, m7;      q3 + 2\n    paddw           m13, m6;      q3 +  q2 + 2\n    paddw           m13, m13;   2*q3 + 2*q2 + 4\n    paddw           m13, m6;    2*q3 + 3*q2 + 4\n    paddw           m13, m10;   2*q3 + 3*q2 + q1 + q0 + p0 + 4\n    psraw           m13, 3;    (2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3\n    psubw           m13, m6;  ((2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3) - q2\n    pmaxsw          m13, m14\n    pminsw          m13, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m13, m6; q2'\n\n    MASKED_COPY      m6, m13\n    MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r12; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r12, betaq\n    shr             r12, 1;\n    add             betaq, r12\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:14", "text": "MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r12; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r12, betaq\n    shr             r12, 1;\n    add             betaq, r12\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)\n    psubw           m10, m5, m2 ; q1 - p1\n    psubw           m12, m10 ; 3 * (q0 - p0) - (q1 - p1)\n%if %1 < 12\n    paddw           m10, m12, m12\n    paddw           m12, [pw_8]; + 8\n    paddw           m12, m10 ; 9 * (q0 - p0) - 3 * ( q1 - p1 )\n    psraw           m12, 4; >> 4 , delta0\n    PABSW           m13, m12; abs(delta0)\n%elif cpuflag(ssse3)\n    pabsw           m13, m12\n    paddw           m10, m13, m13\n    paddw           m13, [pw_8]\n    paddw           m13, m10 ; abs(9 * (q0 - p0) - 3 * ( q1 - p1 ))\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    paddw           m13, m10\n    psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:15", "text": "psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc\n\n    pmaxsw          m12, m14\n    pminsw          m12, m9;  av_clip(delta0, -tc, tc)\n\n    psraw            m9, 1;   tc -> tc / 2\n%if cpuflag(ssse3)\n    psignw          m14, m9, [pw_m1]; -tc / 2\n%else\n    pmullw          m14, m9, [pw_m1]; -tc / 2\n%endif\n\n    pavgw           m15, m1, m3;   (p2 + p0 + 1) >> 1\n    psubw           m15, m2;  ((p2 + p0 + 1) >> 1) - p1\n    paddw           m15, m12; ((p2 + p0 + 1) >> 1) - p1 + delta0\n    psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movd            m13, r7d; 1dp0 + 1dp3\n    movd             m8, r8d; 0dp0 + 0dp3\n    punpcklwd        m8, m8\n    punpcklwd       m13, m13\n    shufps          m13, m8, 0;\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:16", "text": "pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movd            m13, r7d; 1dp0 + 1dp3\n    movd             m8, r8d; 0dp0 + 0dp3\n    punpcklwd        m8, m8\n    punpcklwd       m13, m13\n    shufps          m13, m8, 0;\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movd            m13, r9d;\n    movd            m15, r10d;\n    punpcklwd       m15, m15\n    punpcklwd       m13, m13\n    shufps          m13, m15, 0; dq0 + dq3\n\n    pcmpgtw         m10, m13; compare to ((beta+(beta>>1))>>3)\n    pand            m10, m11\n    MASKED_COPY2     m5, m8, m10; write q1'\n\n    paddw           m15, m3, m12 ; p0 + delta0\n    MASKED_COPY      m3, m15\n\n    psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:17", "text": "%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 12\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_12]\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:18", "text": ";-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 10\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_10]\n    CLIPW           m2, m5, [pw_pixel_max_10]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n\ncglobal hevc_h_loop_filter_chroma_12, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:19", "text": "movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:20", "text": "add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:21", "text": "punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:22", "text": "CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 13, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 841, "line_end": 891}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:23", "text": "RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "084325222901741d35a8969d187b73a66014e599", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/084325222901741d35a8969d187b73a66014e599/libavcodec/x86/hevc/deblock.asm", "line_start": 881, "line_end": 891}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:8", "text": "movq             m6, [tcq]; tc0\n    punpcklwd        m6, m6\n    pshufd           m6, m6, 0xA0; tc0, tc1\n%if cpuflag(ssse3)\n    psignw           m4, m6, [pw_m1]; -tc0, -tc1\n%else\n    pmullw           m4, m6, [pw_m1]; -tc0, -tc1\n%endif\n    ;end tc calculations\n\n    paddw            m5, [pw_4]; +4\n    psraw            m5, 3; >> 3\n\n%if %1 > 8\n    psllw            m4, %1-8; << (BIT_DEPTH - 8)\n    psllw            m6, %1-8; << (BIT_DEPTH - 8)\n%endif\n    pmaxsw           m5, m4\n    pminsw           m5, m6\n    paddw            m1, m5; p0 + delta0\n    psubw            m2, m5; q0 - delta0\n%endmacro\n\n; input in m0 ... m7, beta in r2 tcs in r3. Output in m1...m6\n%macro LUMA_DEBLOCK_BODY 2\n    psllw            m9, m2, 1; *2\n    psubw           m10, m1, m9\n    paddw           m10, m3\n    ABS1            m10, m11 ; 0dp0, 0dp3 , 1dp0, 1dp3\n\n    psllw            m9, m5, 1; *2\n    psubw           m11, m6, m9\n    paddw           m11, m4\n    ABS1            m11, m13 ; 0dq0, 0dq3 , 1dq0, 1dq3\n\n    ;beta calculations\n%if %1 > 8\n    shl             betaq, %1 - 8\n%endif\n    movd            m13, betad\n    SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r13, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test            r13, r13\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:9", "text": "SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r13, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test            r13, r13\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2\n    psraw           m15, m13, 2;   beta >> 2\n    psllw            m8, m9, 1;\n    pcmpgtw         m15, m8; (d0 << 1) < beta_2, (d3 << 1) < beta_2\n    movmskps        r6, m15;\n    ;end weak / strong decision\n\n    ; weak filter nd_p/q calculation\n    pshufd           m8, m10, 0x31\n    psrld            m8, 16\n    paddw            m8, m10\n    movd            r7d, m8\n    pshufd           m8, m8, 0x4E\n    movd            r8d, m8\n\n    pshufd           m8, m11, 0x31\n    psrld            m8, 16\n    paddw            m8, m11\n    movd            r9d, m8\n    pshufd           m8, m8, 0x4E\n    movd           r10d, m8\n    ; end calc for weak filter\n\n    ; filtering mask\n    mov             r11, r13\n    shr             r11, 3\n    movd            m15, r11d\n    and             r13, 1\n    movd            m11, r13d\n    shufps          m11, m15, 0\n    shl             r11, 1\n    or              r13, r11\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov            r11d, [tcq];\n%if %1 > 8\n    shl             r11, %1 - 8\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:10", "text": "; end calc for weak filter\n\n    ; filtering mask\n    mov             r11, r13\n    shr             r11, 3\n    movd            m15, r11d\n    and             r13, 1\n    movd            m11, r13d\n    shufps          m11, m15, 0\n    shl             r11, 1\n    or              r13, r11\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov            r11d, [tcq];\n%if %1 > 8\n    shl             r11, %1 - 8\n%endif\n    movd             m8, r11d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl              r3, %1 - 8\n%endif\n    add            r11d, r3d; tc0 + tc1\n    jz             .bypassluma\n    movd             m9, r3d; tc1\n    punpcklwd        m8, m8\n    punpcklwd        m9, m9\n    shufps           m8, m9, 0; tc0, tc1\n    mova             m9, m8\n    psllw            m8, 2; tc << 2\n    pavgw            m8, m9; tc25 = ((tc * 5 + 1) >> 1)\n    ;end tc25 calculations\n\n    ;----beta_3 comparison-----\n    psubw           m12, m0, m3;      p3 - p0\n    ABS1            m12, m14; abs(p3 - p0)\n\n    psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r11, m13;\n    and             r6, r11; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:13", "text": "paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m5; q1'\n\n    paddw           m13, m7;      q3 + 2\n    paddw           m13, m6;      q3 +  q2 + 2\n    paddw           m13, m13;   2*q3 + 2*q2 + 4\n    paddw           m13, m6;    2*q3 + 3*q2 + 4\n    paddw           m13, m10;   2*q3 + 3*q2 + q1 + q0 + p0 + 4\n    psraw           m13, 3;    (2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3\n    psubw           m13, m6;  ((2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3) - q2\n    pmaxsw          m13, m14\n    pminsw          m13, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m13, m6; q2'\n\n    MASKED_COPY      m6, m13\n    MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r13; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r13, betaq\n    shr             r13, 1;\n    add             betaq, r13\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:14", "text": "MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r13; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r13, betaq\n    shr             r13, 1;\n    add             betaq, r13\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)\n    psubw           m10, m5, m2 ; q1 - p1\n    psubw           m12, m10 ; 3 * (q0 - p0) - (q1 - p1)\n%if %1 < 12\n    paddw           m10, m12, m12\n    paddw           m12, [pw_8]; + 8\n    paddw           m12, m10 ; 9 * (q0 - p0) - 3 * ( q1 - p1 )\n    psraw           m12, 4; >> 4 , delta0\n    PABSW           m13, m12; abs(delta0)\n%elif cpuflag(ssse3)\n    pabsw           m13, m12\n    paddw           m10, m13, m13\n    paddw           m13, [pw_8]\n    paddw           m13, m10 ; abs(9 * (q0 - p0) - 3 * ( q1 - p1 ))\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    paddw           m13, m10\n    psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:19", "text": "movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:20", "text": "add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:21", "text": "punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/deblock.asm:22", "text": "CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/deblock.asm", "license": "LGPL-2.1", "commit": "0aad8b860aee7966b5b54c491cccf21d137d4c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0aad8b860aee7966b5b54c491cccf21d137d4c7a/libavcodec/x86/hevc/deblock.asm", "line_start": 841, "line_end": 891}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/dequant.asm:1", "text": ";*****************************************************************************\n;* SSSE3-optimized HEVC dequant code\n;*****************************************************************************\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM ssse3\n; void ff_hevc_dequant_8_ssse3(int16_t *coeffs, int16_t log2_size)\ncglobal hevc_dequant_8, 2, 3+UNIX64, 3\n\n; coeffs, log2_size (in ecx), tmp/size\n%if WIN64\n    DECLARE_REG_TMP 1,0,2\n    ; r0 is the shift register (ecx) on win64\n    xchg          r0, r1\n%elif ARCH_X86_64\n    DECLARE_REG_TMP 0,3,1\n    ; r3 is ecx\n    mov          t1d, r1d\n%else\n    ; r1 is ecx\n    DECLARE_REG_TMP 0,1,2\n%endif\n\n    mov          t2d, 256\n    shl          t2d, t1b\n    movd          m0, t2d\n    add          t1d, t1d\n    SPLATW        m0, m0\n    mov          t2d, 1\n    shl          t2d, t1b\n.loop:\n    mova          m1, [t0]\n    mova          m2, [t0+mmsize]\n    pmulhrsw      m1, m0\n    pmulhrsw      m2, m0\n    mova        [t0], m1\n    mova [t0+mmsize], m2\n    add           t0, 2*mmsize\n    sub          t2d, mmsize\n    jg         .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/dequant.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/dequant.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:1", "text": ";*******************************************************************************\n;* SIMD-optimized IDCT functions for HEVC decoding\n;* Copyright (c) 2014 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;* Copyright (c) 2016 Alexandra Hájková\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pd_64\npd_2048: times 4 dd 2048\npd_512: times 4 dd 512\n\n; 4x4 transform coeffs\ncextern pw_64\npw_64_m64: times 4 dw 64, -64\npw_83_36: times 4 dw 83, 36\npw_36_m83: times 4 dw 36, -83\n\n; 8x8 transform coeffs\npw_89_75: times 4 dw 89, 75\npw_50_18: times 4 dw 50, 18\n\npw_75_m18: times 4 dw 75, -18\npw_m89_m50: times 4 dw -89, -50\n\npw_50_m89: times 4 dw 50, -89\npw_18_75: times 4 dw 18, 75\n\npw_18_m50: times 4 dw 18, -50\npw_75_m89: times 4 dw 75, -89\n\n; 16x16 transformation coeffs\ntrans_coeffs16: times 4 dw 90, 87\ntimes 4 dw 80, 70\ntimes 4 dw 57, 43\ntimes 4 dw 25, 9\n\ntimes 4 dw 87, 57\ntimes 4 dw 9, -43\ntimes 4 dw -80, -90\ntimes 4 dw -70, -25", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:2", "text": "pw_75_m18: times 4 dw 75, -18\npw_m89_m50: times 4 dw -89, -50\n\npw_50_m89: times 4 dw 50, -89\npw_18_75: times 4 dw 18, 75\n\npw_18_m50: times 4 dw 18, -50\npw_75_m89: times 4 dw 75, -89\n\n; 16x16 transformation coeffs\ntrans_coeffs16: times 4 dw 90, 87\ntimes 4 dw 80, 70\ntimes 4 dw 57, 43\ntimes 4 dw 25, 9\n\ntimes 4 dw 87, 57\ntimes 4 dw 9, -43\ntimes 4 dw -80, -90\ntimes 4 dw -70, -25\n\ntimes 4 dw 80, 9\ntimes 4 dw -70, -87\ntimes 4 dw -25, 57\ntimes 4 dw 90, 43\n\ntimes 4 dw 70, -43\ntimes 4 dw -87, 9\ntimes 4 dw 90, 25\ntimes 4 dw -80, -57\n\ntimes 4 dw 57, -80\ntimes 4 dw -25, 90\ntimes 4 dw -9, -87\ntimes 4 dw 43, 70\n\ntimes 4 dw 43, -90\ntimes 4 dw 57, 25\ntimes 4 dw -87, 70\ntimes 4 dw 9, -80\n\ntimes 4 dw 25, -70\ntimes 4 dw 90, -80\ntimes 4 dw 43, 9\ntimes 4 dw -57, 87\n\ntimes 4 dw 9, -25\ntimes 4 dw 43, -57\ntimes 4 dw 70, -80\ntimes 4 dw 87, -90\n\n; 32x32 transform coeffs\ntrans_coeff32: times 8 dw 90\ntimes 4 dw 88, 85\ntimes 4 dw 82, 78\ntimes 4 dw 73, 67\ntimes 4 dw 61, 54\ntimes 4 dw 46, 38\ntimes 4 dw 31, 22\ntimes 4 dw 13, 4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:3", "text": "times 4 dw 25, -70\ntimes 4 dw 90, -80\ntimes 4 dw 43, 9\ntimes 4 dw -57, 87\n\ntimes 4 dw 9, -25\ntimes 4 dw 43, -57\ntimes 4 dw 70, -80\ntimes 4 dw 87, -90\n\n; 32x32 transform coeffs\ntrans_coeff32: times 8 dw 90\ntimes 4 dw 88, 85\ntimes 4 dw 82, 78\ntimes 4 dw 73, 67\ntimes 4 dw 61, 54\ntimes 4 dw 46, 38\ntimes 4 dw 31, 22\ntimes 4 dw 13, 4\n\ntimes 4 dw 90, 82\ntimes 4 dw 67, 46\ntimes 4 dw 22, -4\ntimes 4 dw -31, -54\ntimes 4 dw -73, -85\ntimes 4 dw -90, -88\ntimes 4 dw -78, -61\ntimes 4 dw -38, -13\n\ntimes 4 dw 88, 67\ntimes 4 dw 31, -13\ntimes 4 dw -54, -82\ntimes 4 dw -90, -78\ntimes 4 dw -46, -4\ntimes 4 dw 38, 73\ntimes 4 dw 90, 85\ntimes 4 dw 61, 22\n\ntimes 4 dw 85, 46\ntimes 4 dw -13, -67\ntimes 4 dw -90, -73\ntimes 4 dw -22, 38\ntimes 4 dw 82, 88\ntimes 4 dw 54, -4\ntimes 4 dw -61, -90\ntimes 4 dw -78, -31\n\ntimes 4 dw 82, 22\ntimes 4 dw -54, -90\ntimes 4 dw -61, 13\ntimes 4 dw 78, 85\ntimes 4 dw 31, -46\ntimes 4 dw -90, -67\ntimes 4 dw 4, 73\ntimes 4 dw 88, 38\n\ntimes 4 dw 78, -4\ntimes 4 dw -82, -73\ntimes 4 dw 13, 85", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:4", "text": "times 4 dw -13, -67\ntimes 4 dw -90, -73\ntimes 4 dw -22, 38\ntimes 4 dw 82, 88\ntimes 4 dw 54, -4\ntimes 4 dw -61, -90\ntimes 4 dw -78, -31\n\ntimes 4 dw 82, 22\ntimes 4 dw -54, -90\ntimes 4 dw -61, 13\ntimes 4 dw 78, 85\ntimes 4 dw 31, -46\ntimes 4 dw -90, -67\ntimes 4 dw 4, 73\ntimes 4 dw 88, 38\n\ntimes 4 dw 78, -4\ntimes 4 dw -82, -73\ntimes 4 dw 13, 85\ntimes 4 dw 67, -22\ntimes 4 dw -88, -61\ntimes 4 dw 31, 90\ntimes 4 dw 54, -38\ntimes 4 dw -90, -46\n\ntimes 4 dw 73, -31\ntimes 4 dw -90, -22\ntimes 4 dw 78, 67\ntimes 4 dw -38, -90\ntimes 4 dw -13, 82\ntimes 4 dw 61, -46\ntimes 4 dw -88, -4\ntimes 4 dw 85, 54\n\ntimes 4 dw 67, -54\ntimes 4 dw -78, 38\ntimes 4 dw 85, -22\ntimes 4 dw -90, 4\ntimes 4 dw 90, 13\ntimes 4 dw -88, -31\ntimes 4 dw 82, 46\ntimes 4 dw -73, -61\n\ntimes 4 dw 61, -73\ntimes 4 dw -46, 82\ntimes 4 dw 31, -88\ntimes 4 dw -13, 90\ntimes 4 dw -4, -90\ntimes 4 dw 22, 85\ntimes 4 dw -38, -78\ntimes 4 dw 54, 67\n\ntimes 4 dw 54, -85\ntimes 4 dw -4, 88\ntimes 4 dw -46, -61\ntimes 4 dw 82, 13\ntimes 4 dw -90, 38\ntimes 4 dw 67, -78\ntimes 4 dw -22, 90", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:5", "text": "times 4 dw -88, -31\ntimes 4 dw 82, 46\ntimes 4 dw -73, -61\n\ntimes 4 dw 61, -73\ntimes 4 dw -46, 82\ntimes 4 dw 31, -88\ntimes 4 dw -13, 90\ntimes 4 dw -4, -90\ntimes 4 dw 22, 85\ntimes 4 dw -38, -78\ntimes 4 dw 54, 67\n\ntimes 4 dw 54, -85\ntimes 4 dw -4, 88\ntimes 4 dw -46, -61\ntimes 4 dw 82, 13\ntimes 4 dw -90, 38\ntimes 4 dw 67, -78\ntimes 4 dw -22, 90\ntimes 4 dw -31, -73\n\ntimes 4 dw 46, -90\ntimes 4 dw 38, 54\ntimes 4 dw -90, 31\ntimes 4 dw 61, -88\ntimes 4 dw 22, 67\ntimes 4 dw -85, 13\ntimes 4 dw 73, -82\ntimes 4 dw 4, 78\n\ntimes 4 dw 38, -88\ntimes 4 dw 73, -4\ntimes 4 dw -67, 90\ntimes 4 dw -46, -31\ntimes 4 dw 85, -78\ntimes 4 dw 13, 61\ntimes 4 dw -90, 54\ntimes 4 dw 22, -82\n\ntimes 4 dw 31, -78\ntimes 4 dw 90, -61\ntimes 4 dw 4, 54\ntimes 4 dw -88, 82\ntimes 4 dw -38, -22\ntimes 4 dw 73, -90\ntimes 4 dw 67, -13\ntimes 4 dw -46, 85\n\ntimes 4 dw 22, -61\ntimes 4 dw 85, -90\ntimes 4 dw 73, -38\ntimes 4 dw -4, 46\ntimes 4 dw -78, 90\ntimes 4 dw -82, 54\ntimes 4 dw -13, -31\ntimes 4 dw 67, -88\n\ntimes 4 dw 13, -38\ntimes 4 dw 61, -78", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:6", "text": "times 4 dw 31, -78\ntimes 4 dw 90, -61\ntimes 4 dw 4, 54\ntimes 4 dw -88, 82\ntimes 4 dw -38, -22\ntimes 4 dw 73, -90\ntimes 4 dw 67, -13\ntimes 4 dw -46, 85\n\ntimes 4 dw 22, -61\ntimes 4 dw 85, -90\ntimes 4 dw 73, -38\ntimes 4 dw -4, 46\ntimes 4 dw -78, 90\ntimes 4 dw -82, 54\ntimes 4 dw -13, -31\ntimes 4 dw 67, -88\n\ntimes 4 dw 13, -38\ntimes 4 dw 61, -78\ntimes 4 dw 88, -90\ntimes 4 dw 85, -73\ntimes 4 dw 54, -31\ntimes 4 dw 4, 22\ntimes 4 dw -46, 67\ntimes 4 dw -82, 90\n\ntimes 4 dw 4, -13\ntimes 4 dw 22, -31\ntimes 4 dw 38, -46\ntimes 4 dw 54, -61\ntimes 4 dw 67, -73\ntimes 4 dw 78, -82\ntimes 4 dw 85, -88\ntimes 4 dw 90, -90\n\nSECTION .text\n\n; void ff_hevc_idct_HxW_dc_{8,10}_<opt>(int16_t *coeffs)\n; %1 = HxW\n; %2 = number of loops\n; %3 = bitdepth\n%macro IDCT_DC 3\ncglobal hevc_idct_%1x%1_dc_%3, 1, 2, 1, coeff, tmp\n    movsx             tmpd, word [coeffq]\n    add               tmpd, (1 << (14 - %3)) + 1\n    sar               tmpd, (15 - %3)\n    movd               xm0, tmpd\n    SPLATW              m0, xm0\n    DEFINE_ARGS coeff, cnt\n    mov               cntd, %2\n.loop:\n    mova [coeffq+mmsize*0], m0\n    mova [coeffq+mmsize*1], m0\n    mova [coeffq+mmsize*2], m0\n    mova [coeffq+mmsize*3], m0\n    add  coeffq, mmsize*8\n    mova [coeffq+mmsize*-4], m0\n    mova [coeffq+mmsize*-3], m0\n    mova [coeffq+mmsize*-2], m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:7", "text": "; %2 = number of loops\n; %3 = bitdepth\n%macro IDCT_DC 3\ncglobal hevc_idct_%1x%1_dc_%3, 1, 2, 1, coeff, tmp\n    movsx             tmpd, word [coeffq]\n    add               tmpd, (1 << (14 - %3)) + 1\n    sar               tmpd, (15 - %3)\n    movd               xm0, tmpd\n    SPLATW              m0, xm0\n    DEFINE_ARGS coeff, cnt\n    mov               cntd, %2\n.loop:\n    mova [coeffq+mmsize*0], m0\n    mova [coeffq+mmsize*1], m0\n    mova [coeffq+mmsize*2], m0\n    mova [coeffq+mmsize*3], m0\n    add  coeffq, mmsize*8\n    mova [coeffq+mmsize*-4], m0\n    mova [coeffq+mmsize*-3], m0\n    mova [coeffq+mmsize*-2], m0\n    mova [coeffq+mmsize*-1], m0\n    dec  cntd\n    jg  .loop\n    RET\n%endmacro\n\n; %1 = HxW\n; %2 = bitdepth\n%macro IDCT_DC_NL 2 ; No loop\ncglobal hevc_idct_%1x%1_dc_%2, 1, 2, 1, coeff, tmp\n    movsx             tmpd, word [coeffq]\n    add               tmpd, (1 << (14 - %2)) + 1\n    sar               tmpd, (15 - %2)\n    movd                m0, tmpd\n    SPLATW              m0, xm0\n%assign %%offset 0\n%rep 2*%1*%1/mmsize\n    mova [coeffq+%%offset], m0\n    %assign %%offset %%offset+mmsize\n%endrep\n    RET\n%endmacro\n\n; IDCT 4x4, expects input in m0, m1\n; %1 - shift\n; %2 - 1/0 - SCALE and Transpose or not\n; %3 - 1/0 add constant or not\n%macro TR_4x4 3\n    ; interleaves src0 with src2 to m0\n    ;         and src1 with scr3 to m2\n    ; src0: 00 01 02 03     m0: 00 20 01 21 02 22 03 23\n    ; src1: 10 11 12 13 -->\n    ; src2: 20 21 22 23     m1: 10 30 11 31 12 32 13 33\n    ; src3: 30 31 32 33\n\n    SBUTTERFLY wd, 0, 1, 2\n\n    pmaddwd m2, m0, [pw_64]    ; e0\n    pmaddwd m3, m1, [pw_83_36] ; o0\n    pmaddwd m0, [pw_64_m64]    ; e1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:8", "text": "RET\n%endmacro\n\n; IDCT 4x4, expects input in m0, m1\n; %1 - shift\n; %2 - 1/0 - SCALE and Transpose or not\n; %3 - 1/0 add constant or not\n%macro TR_4x4 3\n    ; interleaves src0 with src2 to m0\n    ;         and src1 with scr3 to m2\n    ; src0: 00 01 02 03     m0: 00 20 01 21 02 22 03 23\n    ; src1: 10 11 12 13 -->\n    ; src2: 20 21 22 23     m1: 10 30 11 31 12 32 13 33\n    ; src3: 30 31 32 33\n\n    SBUTTERFLY wd, 0, 1, 2\n\n    pmaddwd m2, m0, [pw_64]    ; e0\n    pmaddwd m3, m1, [pw_83_36] ; o0\n    pmaddwd m0, [pw_64_m64]    ; e1\n    pmaddwd m1, [pw_36_m83]    ; o1\n\n%if %3 == 1\n    %assign %%add 1 << (%1 - 1)\n    mova  m4, [pd_ %+ %%add]\n    paddd m2, m4\n    paddd m0, m4\n%endif\n\n    SUMSUB_BADC d, 3, 2, 1, 0, 4\n\n%if %2 == 1\n    psrad m3, %1 ; e0 + o0\n    psrad m1, %1 ; e1 + o1\n    psrad m2, %1 ; e0 - o0\n    psrad m0, %1 ; e1 - o1\n    ;clip16\n    packssdw m3, m1\n    packssdw m0, m2\n    ; Transpose\n    SBUTTERFLY wd, 3, 0, 1\n    SBUTTERFLY wd, 3, 0, 1\n    SWAP 3, 1, 0\n%else\n    SWAP 3, 2, 0\n%endif\n%endmacro\n\n%macro DEFINE_BIAS 1\n    %assign shift (20 - %1)\n    %assign c_add (1 << (shift - 1))\n    %define arr_add pd_ %+ c_add\n%endmacro\n\n; %1 - bit_depth\n; %2 - register add constant\n; is loaded to\n; shift = 20 - bit_depth\n%macro LOAD_BIAS 2\n    DEFINE_BIAS %1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:9", "text": "SBUTTERFLY wd, 3, 0, 1\n    SBUTTERFLY wd, 3, 0, 1\n    SWAP 3, 1, 0\n%else\n    SWAP 3, 2, 0\n%endif\n%endmacro\n\n%macro DEFINE_BIAS 1\n    %assign shift (20 - %1)\n    %assign c_add (1 << (shift - 1))\n    %define arr_add pd_ %+ c_add\n%endmacro\n\n; %1 - bit_depth\n; %2 - register add constant\n; is loaded to\n; shift = 20 - bit_depth\n%macro LOAD_BIAS 2\n    DEFINE_BIAS %1\n    mova %2, [arr_add]\n%endmacro\n\n; %1, %2 - registers to load packed 16 bit values to\n; %3, %4, %5, %6 - vertical offsets\n; %7 - horizontal offset\n%macro LOAD_BLOCK 7\n    movq   %1, [r0 + %3 + %7]\n    movhps %1, [r0 + %5 + %7]\n    movq   %2, [r0 + %4 + %7]\n    movhps %2, [r0 + %6 + %7]\n%endmacro\n\n; void ff_hevc_idct_4x4__{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_4x4 1\ncglobal hevc_idct_4x4_%1, 1, 1, 5, coeffs\n    mova m0, [coeffsq]\n    mova m1, [coeffsq + 16]\n\n    TR_4x4 7, 1, 1\n    TR_4x4 20 - %1, 1, 1\n\n    mova [coeffsq],      m0\n    mova [coeffsq + 16], m1\n    RET\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e8[0] + o8[0] --> + %1\n; 4 at one time (4 columns)                        1 e8[1] + o8[1]\n; from %5: e8/16 + o8/16, with %1 offset                  ...\n; and  %3: e8/16 - o8/16, with %2 offset           6 e8[1] - o8[1]\n; %4 - shift                                       7 e8[0] - o8[0] --> + %2\n%macro STORE_8 7\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3\n    movq     [coeffsq + %1], %5\n    movhps   [coeffsq + %2], %5\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:10", "text": "TR_4x4 7, 1, 1\n    TR_4x4 20 - %1, 1, 1\n\n    mova [coeffsq],      m0\n    mova [coeffsq + 16], m1\n    RET\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e8[0] + o8[0] --> + %1\n; 4 at one time (4 columns)                        1 e8[1] + o8[1]\n; from %5: e8/16 + o8/16, with %1 offset                  ...\n; and  %3: e8/16 - o8/16, with %2 offset           6 e8[1] - o8[1]\n; %4 - shift                                       7 e8[0] - o8[0] --> + %2\n%macro STORE_8 7\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3\n    movq     [coeffsq + %1], %5\n    movhps   [coeffsq + %2], %5\n%endmacro\n\n; %1 - horizontal offset\n; %2 - shift\n; %3, %4 - transform coeffs\n; %5 - vertical offset for e8 + o8\n; %6 - vertical offset for e8 - o8\n; %7 - register with e8 inside\n; %8 - block_size\n; %9 - register to store e8 +o8\n; %10 - register to store e8 - o8\n%macro E8_O8 10\n    pmaddwd m6, m4, %3\n    pmaddwd m7, m5, %4\n\n    paddd m6, m7\n    paddd m7, m6, %7 ; o8 + e8\n    psubd %7, m6     ; e8 - o8\n%if %8 == 8\n    STORE_8 %5 + %1, %6 + %1, %7, %2, m7, 0, 0\n%else\n    SWAP m7, %9\n    SWAP %7, %10\n%endif\n%endmacro\n\n; 8x4 residuals are processed and stored\n; %1 - horizontal offset\n; %2 - shift\n; %3 - offset of the even row\n; %4 - step: 1 for 8x8, 2 for 16x16, 4 for 32x32\n; %5 - offset of the odd row\n; %6 - block size\n; %7 - 1/0 add a constant in TR_4x4 or not\n; I want to add a constant for 8x8 transform but not for 16x16 and 32x32\n%macro TR_8x4 7\n    ; load 4 columns of even rows\n    LOAD_BLOCK  m0, m1, 0, 2 * %4 * %3, %4 * %3, 3 * %4 * %3, %1\n\n    TR_4x4 %2, 0, %7 ; e8: m0, m1, m2, m3, for 4 columns only", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:11", "text": "SWAP m7, %9\n    SWAP %7, %10\n%endif\n%endmacro\n\n; 8x4 residuals are processed and stored\n; %1 - horizontal offset\n; %2 - shift\n; %3 - offset of the even row\n; %4 - step: 1 for 8x8, 2 for 16x16, 4 for 32x32\n; %5 - offset of the odd row\n; %6 - block size\n; %7 - 1/0 add a constant in TR_4x4 or not\n; I want to add a constant for 8x8 transform but not for 16x16 and 32x32\n%macro TR_8x4 7\n    ; load 4 columns of even rows\n    LOAD_BLOCK  m0, m1, 0, 2 * %4 * %3, %4 * %3, 3 * %4 * %3, %1\n\n    TR_4x4 %2, 0, %7 ; e8: m0, m1, m2, m3, for 4 columns only\n\n    ; load 4 columns of odd rows\n    LOAD_BLOCK m4, m5, %4 * %5, 3 * %4 * %5, 5 * %4 * %5, 7 * %4 * %5, %1\n\n    ; 00 01 02 03\n    ; 10 11 12 13      m4: 10 30 11 31 12 32 13 33\n\n    ; ...        -- >\n    ;                  m5: 50 70 51 71 52 72 53 73\n    ; 70 71 72 73\n    SBUTTERFLY wd, 4, 5, 6\n\n    E8_O8 %1, %2, [pw_89_75],  [pw_50_18],   0,      %5 * 7, m0, %6, m8, m15\n    E8_O8 %1, %2, [pw_75_m18], [pw_m89_m50], %5,     %5 * 6, m1, %6, m9, m14\n    E8_O8 %1, %2, [pw_50_m89], [pw_18_75],   %5 * 2, %5 * 5, m2, %6, m10, m13\n    E8_O8 %1, %2, [pw_18_m50], [pw_75_m89],  %5 * 3, %5 * 4, m3, %6, m11, m12\n%endmacro\n\n%macro STORE_PACKED 7\n    movq   [r0 + %3 + %7], %1\n    movhps [r0 + %4 + %7], %1\n    movq   [r0 + %5 + %7], %2\n    movhps [r0 + %6 + %7], %2\n%endmacro\n\n; transpose 4x4 block packed\n; in %1 and %2 registers\n; %3 - temporary register\n%macro TRANSPOSE_4x4 3\n    SBUTTERFLY wd, %1, %2, %3\n    SBUTTERFLY dq, %1, %2, %3\n%endmacro\n\n; %1 - horizontal offset of the block i\n; %2 - vertical offset of the block i\n; %3 - width in bytes\n; %4 - vertical offset for the block j\n; %5 - horizontal offset for the block j\n%macro SWAP_BLOCKS 5\n    ; M_j\n    LOAD_BLOCK m4, m5, %4, %4 + %3, %4 + 2 * %3, %4 + 3 * %3, %5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:12", "text": "movq   [r0 + %5 + %7], %2\n    movhps [r0 + %6 + %7], %2\n%endmacro\n\n; transpose 4x4 block packed\n; in %1 and %2 registers\n; %3 - temporary register\n%macro TRANSPOSE_4x4 3\n    SBUTTERFLY wd, %1, %2, %3\n    SBUTTERFLY dq, %1, %2, %3\n%endmacro\n\n; %1 - horizontal offset of the block i\n; %2 - vertical offset of the block i\n; %3 - width in bytes\n; %4 - vertical offset for the block j\n; %5 - horizontal offset for the block j\n%macro SWAP_BLOCKS 5\n    ; M_j\n    LOAD_BLOCK m4, m5, %4, %4 + %3, %4 + 2 * %3, %4 + 3 * %3, %5\n    TRANSPOSE_4x4 4, 5, 6\n\n    ; M_i\n    LOAD_BLOCK m6, m7, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n\n    STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n\n    ; transpose and store M_i\n    SWAP m6, m4\n    SWAP m7, m5\n    TRANSPOSE_4x4 4, 5, 6\n    STORE_PACKED m4, m5, %4, %4 + %3, %4 + 2 * %3, %4 + 3 * %3, %5\n%endmacro\n\n; %1 - horizontal offset\n; %2 - vertical offset of the block\n; %3 - width in bytes\n%macro TRANSPOSE_BLOCK 3\n    LOAD_BLOCK m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n    TRANSPOSE_4x4 4, 5, 6\n    STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n%endmacro\n\n%macro TRANSPOSE_8x8 0\ncglobal hevc_idct_transpose_8x8, 0, 0, 0\n    ; M1 M2 ^T = M1^t M3^t\n    ; M3 M4      M2^t M4^t\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 16\n\n    ; M2 and M3\n    SWAP_BLOCKS 0, 64, 16, 0, 8\n\n    ; M4\n    TRANSPOSE_BLOCK 8, 64, 16\n\n    ret\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:13", "text": "STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n%endmacro\n\n%macro TRANSPOSE_8x8 0\ncglobal hevc_idct_transpose_8x8, 0, 0, 0\n    ; M1 M2 ^T = M1^t M3^t\n    ; M3 M4      M2^t M4^t\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 16\n\n    ; M2 and M3\n    SWAP_BLOCKS 0, 64, 16, 0, 8\n\n    ; M4\n    TRANSPOSE_BLOCK 8, 64, 16\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_8x8_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_8x8 1\ncglobal hevc_idct_8x8_%1, 1, 1, 8, coeffs\n    TR_8x4 0, 7, 32, 1, 16, 8, 1\n    TR_8x4 8, 7, 32, 1, 16, 8, 1\n\n    call hevc_idct_transpose_8x8_ %+ cpuname\n\n    DEFINE_BIAS %1\n    TR_8x4 0, shift, 32, 1, 16, 8, 1\n    TR_8x4 8, shift, 32, 1, 16, 8, 1\n\n    TAIL_CALL hevc_idct_transpose_8x8_ %+ cpuname, 1\n%endmacro\n\n; store intermedite e32 coeffs on stack\n; as 16x4 matrix\n; from m10: e8 + o8, with %6 offset\n; and  %3:  e8 - o8, with %7 offset\n; %4 - shift, unused here\n%macro STORE_16 7\n    mova [rsp + %6], %5\n    mova [rsp + %7], %3\n%endmacro\n\n; %1, %2 - transform constants\n; %3, %4 - regs with interleaved coeffs\n; %5 - 1/0 SWAP or add\n; %6, %7 - registers for intermediate sums\n; %8 - accumulator register\n%macro ADD_ROWS 8\n    pmaddwd %6, %3, %1\n    pmaddwd %7, %4, %2\n    paddd   %6, %7\n%if %5 == 1\n    SWAP %6, %8\n%else\n    paddd %8, %6\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:14", "text": "; %4 - shift, unused here\n%macro STORE_16 7\n    mova [rsp + %6], %5\n    mova [rsp + %7], %3\n%endmacro\n\n; %1, %2 - transform constants\n; %3, %4 - regs with interleaved coeffs\n; %5 - 1/0 SWAP or add\n; %6, %7 - registers for intermediate sums\n; %8 - accumulator register\n%macro ADD_ROWS 8\n    pmaddwd %6, %3, %1\n    pmaddwd %7, %4, %2\n    paddd   %6, %7\n%if %5 == 1\n    SWAP %6, %8\n%else\n    paddd %8, %6\n%endif\n%endmacro\n\n; %1 - transform coeffs\n; %2, %3 offsets for storing e+o/e-o back to coeffsq\n; %4 - shift\n; %5 - add\n; %6 - block_size\n; %7 - register with e16\n; %8, %9 - stack offsets for storing e+o/e-o\n%macro E16_O16 9\n    ADD_ROWS [%1],          [%1 +     16], m0, m1, 1, m5, m6, m7\n    ADD_ROWS [%1 + 2 * 16], [%1 + 3 * 16], m2, m3, 0, m5, m6, m7\n\n%if %6 == 8\n    paddd %7, %5\n%endif\n\n    paddd m4, m7, %7 ; o16 + e16\n    psubd %7, m7     ; e16 - o16\n    STORE_%6 %2, %3, %7, %4, m4, %8, %9\n%endmacro\n\n%macro TR_16x4 10\n    ; produce 8x4 matrix of e16 coeffs\n    ; for 4 first rows and store it on stack (128 bytes)\n    TR_8x4 %1, 7, %4, %5, %6, %8, 0\n\n    ; load 8 even rows\n    LOAD_BLOCK m0, m1, %9 * %6, %9 * 3 * %6, %9 * 5 * %6, %9 * 7 * %6, %1\n    LOAD_BLOCK m2, m3, %9 * 9 * %6, %9 * 11 * %6, %9 * 13 * %6, %9 * 15 * %6, %1\n\n    SBUTTERFLY wd, 0, 1, 4\n    SBUTTERFLY wd, 2, 3, 4\n\n    E16_O16 trans_coeffs16,               0 + %1, 15 * %6 + %1, %2, %3, %7, m8,       0, 15 * 16\n    mova m8, %3\n    E16_O16 trans_coeffs16 +     64,     %6 + %1, 14 * %6 + %1, %2, m8, %7, m9,      16, 14 * 16\n    E16_O16 trans_coeffs16 + 2 * 64, 2 * %6 + %1, 13 * %6 + %1, %2, m8, %7, m10, 2 * 16, 13 * 16\n    E16_O16 trans_coeffs16 + 3 * 64, 3 * %6 + %1, 12 * %6 + %1, %2, m8, %7, m11, 3 * 16, 12 * 16\n    E16_O16 trans_coeffs16 + 4 * 64, 4 * %6 + %1, 11 * %6 + %1, %2, m8, %7, m12, 4 * 16, 11 * 16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:15", "text": "%endmacro\n\n%macro TR_16x4 10\n    ; produce 8x4 matrix of e16 coeffs\n    ; for 4 first rows and store it on stack (128 bytes)\n    TR_8x4 %1, 7, %4, %5, %6, %8, 0\n\n    ; load 8 even rows\n    LOAD_BLOCK m0, m1, %9 * %6, %9 * 3 * %6, %9 * 5 * %6, %9 * 7 * %6, %1\n    LOAD_BLOCK m2, m3, %9 * 9 * %6, %9 * 11 * %6, %9 * 13 * %6, %9 * 15 * %6, %1\n\n    SBUTTERFLY wd, 0, 1, 4\n    SBUTTERFLY wd, 2, 3, 4\n\n    E16_O16 trans_coeffs16,               0 + %1, 15 * %6 + %1, %2, %3, %7, m8,       0, 15 * 16\n    mova m8, %3\n    E16_O16 trans_coeffs16 +     64,     %6 + %1, 14 * %6 + %1, %2, m8, %7, m9,      16, 14 * 16\n    E16_O16 trans_coeffs16 + 2 * 64, 2 * %6 + %1, 13 * %6 + %1, %2, m8, %7, m10, 2 * 16, 13 * 16\n    E16_O16 trans_coeffs16 + 3 * 64, 3 * %6 + %1, 12 * %6 + %1, %2, m8, %7, m11, 3 * 16, 12 * 16\n    E16_O16 trans_coeffs16 + 4 * 64, 4 * %6 + %1, 11 * %6 + %1, %2, m8, %7, m12, 4 * 16, 11 * 16\n    E16_O16 trans_coeffs16 + 5 * 64, 5 * %6 + %1, 10 * %6 + %1, %2, m8, %7, m13, 5 * 16, 10 * 16\n    E16_O16 trans_coeffs16 + 6 * 64, 6 * %6 + %1,  9 * %6 + %1, %2, m8, %7, m14, 6 * 16,  9 * 16\n    E16_O16 trans_coeffs16 + 7 * 64, 7 * %6 + %1,  8 * %6 + %1, %2, m8, %7, m15, 7 * 16,  8 * 16\n%endmacro\n\n%macro TRANSPOSE_16x16 0\ncglobal hevc_idct_transpose_16x16, 0, 0, 0\n; M1  M2  M3  M4 ^T      m1 m5 m9  m13   M_i^T = m_i\n; M5  M6  M7  M8    -->  m2 m6 m10 m14\n; M9  M10 M11 M12        m3 m7 m11 m15\n; M13 M14 M15 M16        m4 m8 m12 m16\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 32\n\n    ; M5, M2\n    SWAP_BLOCKS 0, 128, 32, 0, 8\n    ; M9, M3\n    SWAP_BLOCKS 0, 256, 32, 0, 16\n    ; M13, M4\n    SWAP_BLOCKS 0, 384, 32, 0, 24\n\n    ;M6\n    TRANSPOSE_BLOCK 8, 128, 32\n\n    ; M10, M7\n    SWAP_BLOCKS 8, 256, 32, 128, 16\n    ; M14, M8\n    SWAP_BLOCKS 8, 384, 32, 128, 24\n\n    ;M11\n    TRANSPOSE_BLOCK 16, 256, 32\n\n    ; M15, M12\n    SWAP_BLOCKS 16, 384, 32, 256, 24\n\n    ;M16\n    TRANSPOSE_BLOCK 24, 384, 32\n\n    ret", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:16", "text": "SWAP_BLOCKS 0, 384, 32, 0, 24\n\n    ;M6\n    TRANSPOSE_BLOCK 8, 128, 32\n\n    ; M10, M7\n    SWAP_BLOCKS 8, 256, 32, 128, 16\n    ; M14, M8\n    SWAP_BLOCKS 8, 384, 32, 128, 24\n\n    ;M11\n    TRANSPOSE_BLOCK 16, 256, 32\n\n    ; M15, M12\n    SWAP_BLOCKS 16, 384, 32, 256, 24\n\n    ;M16\n    TRANSPOSE_BLOCK 24, 384, 32\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_16x16_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_16x16 1\ncglobal hevc_idct_16x16_%1, 1, 2, 16, coeffs\n    mov r1d, 3\n.loop16:\n    TR_16x4 8 * r1, 7, [pd_64], 64, 2, 32, 8, 16, 1, 0\n    dec r1d\n    jge .loop16\n\n    call hevc_idct_transpose_16x16_ %+ cpuname\n\n    DEFINE_BIAS %1\n    mov r1d, 3\n.loop16_2:\n    TR_16x4 8 * r1, shift, [arr_add], 64, 2, 32, 8, 16, 1, 1\n    dec r1d\n    jge .loop16_2\n\n    TAIL_CALL hevc_idct_transpose_16x16_ %+ cpuname, 1\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e32[0] + o32[0] --> %1\n; 4 at one time (4 columns)                        1 e32[1] + o32[1]\n; %1 - address to store e32 + o32\n; %2 - address to store e32 - e32\n; %5 - reg with e32 + o32                                  ...\n; %3 - reg with e32 - o32                          30 e32[1] - o32[1]\n; %4 - shift                                       31 e32[0] - o32[0] --> %2\n%macro STORE_32 5\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3\n    movq     [%1], %5\n    movhps   [%2], %5\n%endmacro\n\n; %1 - transform coeffs", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:17", "text": "TAIL_CALL hevc_idct_transpose_16x16_ %+ cpuname, 1\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e32[0] + o32[0] --> %1\n; 4 at one time (4 columns)                        1 e32[1] + o32[1]\n; %1 - address to store e32 + o32\n; %2 - address to store e32 - e32\n; %5 - reg with e32 + o32                                  ...\n; %3 - reg with e32 - o32                          30 e32[1] - o32[1]\n; %4 - shift                                       31 e32[0] - o32[0] --> %2\n%macro STORE_32 5\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3\n    movq     [%1], %5\n    movhps   [%2], %5\n%endmacro\n\n; %1 - transform coeffs\n; %2 - stack offset for e32\n; %2, %3 offsets for storing e+o/e-o back to coeffsq\n; %4 - shift\n; %5 - stack offset of e32\n%macro E32_O32 5\n    ADD_ROWS [%1],          [%1 +     16], m0, m1, 1, m8, m9, m10\n    ADD_ROWS [%1 + 2 * 16], [%1 + 3 * 16], m2, m3, 0, m8, m9, m10\n    ADD_ROWS [%1 + 4 * 16], [%1 + 5 * 16], m4, m5, 0, m8, m9, m10\n    ADD_ROWS [%1 + 6 * 16], [%1 + 7 * 16], m6, m7, 0, m8, m9, m10\n\n    paddd m11, m14, [rsp + %5]\n    paddd m12, m10, m11 ; o32 + e32\n    psubd m11, m10      ; e32 - o32\n    STORE_32 %2, %3, m11, %4, m12\n%endmacro\n\n; %1 - horizontal offset\n; %2 - bitdepth\n%macro TR_32x4 3\n    TR_16x4 %1, 7, [pd_64], 128, 4, 64, 16, 16, 2, 0\n\n    LOAD_BLOCK m0, m1,      64,  3 * 64,  5 * 64,  7 * 64, %1\n    LOAD_BLOCK m2, m3,  9 * 64, 11 * 64, 13 * 64, 15 * 64, %1\n    LOAD_BLOCK m4, m5, 17 * 64, 19 * 64, 21 * 64, 23 * 64, %1\n    LOAD_BLOCK m6, m7, 25 * 64, 27 * 64, 29 * 64, 31 * 64, %1\n\n    SBUTTERFLY wd, 0, 1, 8\n    SBUTTERFLY wd, 2, 3, 8\n    SBUTTERFLY wd, 4, 5, 8\n    SBUTTERFLY wd, 6, 7, 8\n\n%if %3 == 1\n    %assign shift 7\n    mova m14, [pd_64]\n%else\n    LOAD_BIAS %2, m14\n%endif\n\n    lea r2, [trans_coeff32 + 15 * 128]\n    lea r3, [coeffsq + %1]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:18", "text": "LOAD_BLOCK m0, m1,      64,  3 * 64,  5 * 64,  7 * 64, %1\n    LOAD_BLOCK m2, m3,  9 * 64, 11 * 64, 13 * 64, 15 * 64, %1\n    LOAD_BLOCK m4, m5, 17 * 64, 19 * 64, 21 * 64, 23 * 64, %1\n    LOAD_BLOCK m6, m7, 25 * 64, 27 * 64, 29 * 64, 31 * 64, %1\n\n    SBUTTERFLY wd, 0, 1, 8\n    SBUTTERFLY wd, 2, 3, 8\n    SBUTTERFLY wd, 4, 5, 8\n    SBUTTERFLY wd, 6, 7, 8\n\n%if %3 == 1\n    %assign shift 7\n    mova m14, [pd_64]\n%else\n    LOAD_BIAS %2, m14\n%endif\n\n    lea r2, [trans_coeff32 + 15 * 128]\n    lea r3, [coeffsq + %1]\n    lea r4, [r3 + 16 * 64]\n    mov r5d, 15 * 16\n%%loop:\n    E32_O32 r2, r3 + r5 * 4, r4, shift, r5\n    sub r2, 128\n    add r4, 64\n    sub r5d, 16\n    jge %%loop\n%endmacro\n\n%macro TRANSPOSE_32x32 0\ncglobal hevc_idct_transpose_32x32, 0, 0, 0\n    ; M0  M1 ... M7\n    ; M8         M15\n    ;\n    ; ...\n    ;\n    ; M56        M63\n\n    TRANSPOSE_BLOCK 0, 0, 64 ; M1\n    mov r1d, 7\n    mov r2d, 7 * 256\n.loop_transpose:\n    SWAP_BLOCKS 0, r2, 64, 0, r1 * 8\n    sub r2d, 256\n    dec r1d\n    jg .loop_transpose\n\n    TRANSPOSE_BLOCK 8, 256, 64 ; M9\n    mov r1d, 6\n    mov r2d, 512\n    mov r3d, 16\n.loop_transpose2:\n    SWAP_BLOCKS 8, r2, 64, 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose2\n\n    TRANSPOSE_BLOCK 2 * 8, 2 * 256, 64 ; M9", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:19", "text": "mov r1d, 7\n    mov r2d, 7 * 256\n.loop_transpose:\n    SWAP_BLOCKS 0, r2, 64, 0, r1 * 8\n    sub r2d, 256\n    dec r1d\n    jg .loop_transpose\n\n    TRANSPOSE_BLOCK 8, 256, 64 ; M9\n    mov r1d, 6\n    mov r2d, 512\n    mov r3d, 16\n.loop_transpose2:\n    SWAP_BLOCKS 8, r2, 64, 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose2\n\n    TRANSPOSE_BLOCK 2 * 8, 2 * 256, 64 ; M9\n    mov r1d, 5\n    mov r2d, 768\n    mov r3d, 24\n.loop_transpose3:\n    SWAP_BLOCKS 2 * 8, r2, 64, 2 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose3\n\n    TRANSPOSE_BLOCK 3 * 8, 3 * 256, 64 ; M27\n    mov r1d, 4\n    mov r2d, 1024\n    mov r3d, 32\n.loop_transpose4:\n    SWAP_BLOCKS 3 * 8, r2, 64, 3 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose4\n\n    TRANSPOSE_BLOCK 4 * 8, 4 * 256, 64 ; M36\n    mov r1d, 3\n    mov r2d, 1280\n    mov r3d, 40\n.loop_transpose5:\n    SWAP_BLOCKS 4 * 8, r2, 64, 4 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose5\n\n    TRANSPOSE_BLOCK 5 * 8, 5 * 256, 64 ; M45\n    SWAP_BLOCKS 5 * 8, 6 * 256, 64, 5 * 256, 6 * 8\n    SWAP_BLOCKS 5 * 8, 7 * 256, 64, 5 * 256, 7 * 8\n\n    TRANSPOSE_BLOCK 6 * 8, 6 * 256, 64 ; M54\n    SWAP_BLOCKS 6 * 8, 7 * 256, 64, 6 * 256, 7 * 8\n\n    TRANSPOSE_BLOCK 7 * 8, 7 * 256, 64 ; M63", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:20", "text": "TRANSPOSE_BLOCK 4 * 8, 4 * 256, 64 ; M36\n    mov r1d, 3\n    mov r2d, 1280\n    mov r3d, 40\n.loop_transpose5:\n    SWAP_BLOCKS 4 * 8, r2, 64, 4 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose5\n\n    TRANSPOSE_BLOCK 5 * 8, 5 * 256, 64 ; M45\n    SWAP_BLOCKS 5 * 8, 6 * 256, 64, 5 * 256, 6 * 8\n    SWAP_BLOCKS 5 * 8, 7 * 256, 64, 5 * 256, 7 * 8\n\n    TRANSPOSE_BLOCK 6 * 8, 6 * 256, 64 ; M54\n    SWAP_BLOCKS 6 * 8, 7 * 256, 64, 6 * 256, 7 * 8\n\n    TRANSPOSE_BLOCK 7 * 8, 7 * 256, 64 ; M63\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_32x32_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_32x32 1\ncglobal hevc_idct_32x32_%1, 1, 6, 16, 256, coeffs\n    mov r1d, 7\n.loop32:\n    TR_32x4 8 * r1, %1, 1\n    dec r1d\n    jge .loop32\n\n    call hevc_idct_transpose_32x32_ %+ cpuname\n\n    mov r1d, 7\n.loop32_2:\n    TR_32x4 8 * r1, %1, 0\n    dec r1d\n    jge .loop32_2\n\n    TAIL_CALL hevc_idct_transpose_32x32_ %+ cpuname, 1\n%endmacro\n\n%macro INIT_IDCT_DC 1\nINIT_XMM sse2\nIDCT_DC_NL  4,      %1\nIDCT_DC_NL  8,      %1\nIDCT_DC    16,  4,  %1\nIDCT_DC    32, 16,  %1\n\n%if HAVE_AVX2_EXTERNAL\n    INIT_YMM avx2\n    IDCT_DC    16,  2,  %1\n    IDCT_DC    32,  8,  %1\n%endif ;HAVE_AVX2_EXTERNAL\n%endmacro\n\n%macro INIT_IDCT 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:21", "text": "jge .loop32_2\n\n    TAIL_CALL hevc_idct_transpose_32x32_ %+ cpuname, 1\n%endmacro\n\n%macro INIT_IDCT_DC 1\nINIT_XMM sse2\nIDCT_DC_NL  4,      %1\nIDCT_DC_NL  8,      %1\nIDCT_DC    16,  4,  %1\nIDCT_DC    32, 16,  %1\n\n%if HAVE_AVX2_EXTERNAL\n    INIT_YMM avx2\n    IDCT_DC    16,  2,  %1\n    IDCT_DC    32,  8,  %1\n%endif ;HAVE_AVX2_EXTERNAL\n%endmacro\n\n%macro INIT_IDCT 2\nINIT_XMM %2\n%if %1 == 8\n    TRANSPOSE_8x8\n    %if ARCH_X86_64\n        TRANSPOSE_16x16\n        TRANSPOSE_32x32\n    %endif\n%endif\n%if ARCH_X86_64\n    IDCT_32x32 %1\n    IDCT_16x16 %1\n%endif\nIDCT_8x8 %1\nIDCT_4x4 %1\n%endmacro\n\nINIT_IDCT_DC 8\nINIT_IDCT_DC 10\nINIT_IDCT_DC 12\nINIT_IDCT 8, sse2\nINIT_IDCT 8, avx\nINIT_IDCT 10, sse2\nINIT_IDCT 10, avx\n;INIT_IDCT 12, sse2\n;INIT_IDCT 12, avx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/idct.asm", "line_start": 801, "line_end": 845}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:7", "text": "; %2 = number of loops\n; %3 = bitdepth\n%macro IDCT_DC 3\ncglobal hevc_idct_%1x%1_dc_%3, 1, 2, 1, coeff, tmp\n    movsx             tmpd, word [coeffq]\n    add               tmpd, (1 << (14 - %3)) + 1\n    sar               tmpd, (15 - %3)\n    movd               xm0, tmpd\n    SPLATW              m0, xm0\n    DEFINE_ARGS coeff, cnt\n    mov               cntd, %2\n.loop:\n    mova [coeffq+mmsize*0], m0\n    mova [coeffq+mmsize*1], m0\n    mova [coeffq+mmsize*2], m0\n    mova [coeffq+mmsize*3], m0\n    add  coeffq, mmsize*8\n    mova [coeffq+mmsize*-4], m0\n    mova [coeffq+mmsize*-3], m0\n    mova [coeffq+mmsize*-2], m0\n    mova [coeffq+mmsize*-1], m0\n    dec  cntd\n    jg  .loop\n    RET\n%endmacro\n\n; %1 = HxW\n; %2 = bitdepth\n%macro IDCT_DC_NL 2 ; No loop\ncglobal hevc_idct_%1x%1_dc_%2, 1, 2, 1, coeff, tmp\n    movsx             tmpd, word [coeffq]\n    add               tmpd, (1 << (14 - %2)) + 1\n    sar               tmpd, (15 - %2)\n    movd                m0, tmpd\n    SPLATW              m0, xm0\n    mova [coeffq+mmsize*0], m0\n    mova [coeffq+mmsize*1], m0\n    mova [coeffq+mmsize*2], m0\n    mova [coeffq+mmsize*3], m0\n%if mmsize == 16\n    mova [coeffq+mmsize*4], m0\n    mova [coeffq+mmsize*5], m0\n    mova [coeffq+mmsize*6], m0\n    mova [coeffq+mmsize*7], m0\n%endif\n    RET\n%endmacro\n\n; IDCT 4x4, expects input in m0, m1\n; %1 - shift\n; %2 - 1/0 - SCALE and Transpose or not\n; %3 - 1/0 add constant or not\n%macro TR_4x4 3\n    ; interleaves src0 with src2 to m0\n    ;         and src1 with scr3 to m2\n    ; src0: 00 01 02 03     m0: 00 20 01 21 02 22 03 23\n    ; src1: 10 11 12 13 -->\n    ; src2: 20 21 22 23     m1: 10 30 11 31 12 32 13 33\n    ; src3: 30 31 32 33", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:8", "text": "mova [coeffq+mmsize*4], m0\n    mova [coeffq+mmsize*5], m0\n    mova [coeffq+mmsize*6], m0\n    mova [coeffq+mmsize*7], m0\n%endif\n    RET\n%endmacro\n\n; IDCT 4x4, expects input in m0, m1\n; %1 - shift\n; %2 - 1/0 - SCALE and Transpose or not\n; %3 - 1/0 add constant or not\n%macro TR_4x4 3\n    ; interleaves src0 with src2 to m0\n    ;         and src1 with scr3 to m2\n    ; src0: 00 01 02 03     m0: 00 20 01 21 02 22 03 23\n    ; src1: 10 11 12 13 -->\n    ; src2: 20 21 22 23     m1: 10 30 11 31 12 32 13 33\n    ; src3: 30 31 32 33\n\n    SBUTTERFLY wd, 0, 1, 2\n\n    pmaddwd m2, m0, [pw_64]    ; e0\n    pmaddwd m3, m1, [pw_83_36] ; o0\n    pmaddwd m0, [pw_64_m64]    ; e1\n    pmaddwd m1, [pw_36_m83]    ; o1\n\n%if %3 == 1\n    %assign %%add 1 << (%1 - 1)\n    mova  m4, [pd_ %+ %%add]\n    paddd m2, m4\n    paddd m0, m4\n%endif\n\n    SUMSUB_BADC d, 3, 2, 1, 0, 4\n\n%if %2 == 1\n    psrad m3, %1 ; e0 + o0\n    psrad m1, %1 ; e1 + o1\n    psrad m2, %1 ; e0 - o0\n    psrad m0, %1 ; e1 - o1\n    ;clip16\n    packssdw m3, m1\n    packssdw m0, m2\n    ; Transpose\n    SBUTTERFLY wd, 3, 0, 1\n    SBUTTERFLY wd, 3, 0, 1\n    SWAP 3, 1, 0\n%else\n    SWAP 3, 2, 0\n%endif\n%endmacro\n\n%macro DEFINE_BIAS 1\n    %assign shift (20 - %1)\n    %assign c_add (1 << (shift - 1))\n    %define arr_add pd_ %+ c_add\n%endmacro\n\n; %1 - bit_depth", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:9", "text": "psrad m0, %1 ; e1 - o1\n    ;clip16\n    packssdw m3, m1\n    packssdw m0, m2\n    ; Transpose\n    SBUTTERFLY wd, 3, 0, 1\n    SBUTTERFLY wd, 3, 0, 1\n    SWAP 3, 1, 0\n%else\n    SWAP 3, 2, 0\n%endif\n%endmacro\n\n%macro DEFINE_BIAS 1\n    %assign shift (20 - %1)\n    %assign c_add (1 << (shift - 1))\n    %define arr_add pd_ %+ c_add\n%endmacro\n\n; %1 - bit_depth\n; %2 - register add constant\n; is loaded to\n; shift = 20 - bit_depth\n%macro LOAD_BIAS 2\n    DEFINE_BIAS %1\n    mova %2, [arr_add]\n%endmacro\n\n; %1, %2 - registers to load packed 16 bit values to\n; %3, %4, %5, %6 - vertical offsets\n; %7 - horizontal offset\n%macro LOAD_BLOCK 7\n    movq   %1, [r0 + %3 + %7]\n    movhps %1, [r0 + %5 + %7]\n    movq   %2, [r0 + %4 + %7]\n    movhps %2, [r0 + %6 + %7]\n%endmacro\n\n; void ff_hevc_idct_4x4__{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_4x4 1\ncglobal hevc_idct_4x4_%1, 1, 1, 5, coeffs\n    mova m0, [coeffsq]\n    mova m1, [coeffsq + 16]\n\n    TR_4x4 7, 1, 1\n    TR_4x4 20 - %1, 1, 1\n\n    mova [coeffsq],      m0\n    mova [coeffsq + 16], m1\n    RET\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e8[0] + o8[0] --> + %1\n; 4 at one time (4 columns)                        1 e8[1] + o8[1]\n; from %5: e8/16 + o8/16, with %1 offset                  ...\n; and  %3: e8/16 - o8/16, with %2 offset           6 e8[1] - o8[1]\n; %4 - shift                                       7 e8[0] - o8[0] --> + %2\n%macro STORE_8 7\n    psrad    %5, %4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:10", "text": "%macro IDCT_4x4 1\ncglobal hevc_idct_4x4_%1, 1, 1, 5, coeffs\n    mova m0, [coeffsq]\n    mova m1, [coeffsq + 16]\n\n    TR_4x4 7, 1, 1\n    TR_4x4 20 - %1, 1, 1\n\n    mova [coeffsq],      m0\n    mova [coeffsq + 16], m1\n    RET\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e8[0] + o8[0] --> + %1\n; 4 at one time (4 columns)                        1 e8[1] + o8[1]\n; from %5: e8/16 + o8/16, with %1 offset                  ...\n; and  %3: e8/16 - o8/16, with %2 offset           6 e8[1] - o8[1]\n; %4 - shift                                       7 e8[0] - o8[0] --> + %2\n%macro STORE_8 7\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3\n    movq     [coeffsq + %1], %5\n    movhps   [coeffsq + %2], %5\n%endmacro\n\n; %1 - horizontal offset\n; %2 - shift\n; %3, %4 - transform coeffs\n; %5 - vertical offset for e8 + o8\n; %6 - vertical offset for e8 - o8\n; %7 - register with e8 inside\n; %8 - block_size\n; %9 - register to store e8 +o8\n; %10 - register to store e8 - o8\n%macro E8_O8 10\n    pmaddwd m6, m4, %3\n    pmaddwd m7, m5, %4\n\n    paddd m6, m7\n    paddd m7, m6, %7 ; o8 + e8\n    psubd %7, m6     ; e8 - o8\n%if %8 == 8\n    STORE_8 %5 + %1, %6 + %1, %7, %2, m7, 0, 0\n%else\n    SWAP m7, %9\n    SWAP %7, %10\n%endif\n%endmacro\n\n; 8x4 residuals are processed and stored\n; %1 - horizontal offset\n; %2 - shift\n; %3 - offset of the even row\n; %4 - step: 1 for 8x8, 2 for 16x16, 4 for 32x32\n; %5 - offset of the odd row\n; %6 - block size\n; %7 - 1/0 add a constant in TR_4x4 or not\n; I want to add a constant for 8x8 transform but not for 16x16 and 32x32\n%macro TR_8x4 7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:11", "text": "paddd m7, m6, %7 ; o8 + e8\n    psubd %7, m6     ; e8 - o8\n%if %8 == 8\n    STORE_8 %5 + %1, %6 + %1, %7, %2, m7, 0, 0\n%else\n    SWAP m7, %9\n    SWAP %7, %10\n%endif\n%endmacro\n\n; 8x4 residuals are processed and stored\n; %1 - horizontal offset\n; %2 - shift\n; %3 - offset of the even row\n; %4 - step: 1 for 8x8, 2 for 16x16, 4 for 32x32\n; %5 - offset of the odd row\n; %6 - block size\n; %7 - 1/0 add a constant in TR_4x4 or not\n; I want to add a constant for 8x8 transform but not for 16x16 and 32x32\n%macro TR_8x4 7\n    ; load 4 columns of even rows\n    LOAD_BLOCK  m0, m1, 0, 2 * %4 * %3, %4 * %3, 3 * %4 * %3, %1\n\n    TR_4x4 %2, 0, %7 ; e8: m0, m1, m2, m3, for 4 columns only\n\n    ; load 4 columns of odd rows\n    LOAD_BLOCK m4, m5, %4 * %5, 3 * %4 * %5, 5 * %4 * %5, 7 * %4 * %5, %1\n\n    ; 00 01 02 03\n    ; 10 11 12 13      m4: 10 30 11 31 12 32 13 33\n\n    ; ...        -- >\n    ;                  m5: 50 70 51 71 52 72 53 73\n    ; 70 71 72 73\n    SBUTTERFLY wd, 4, 5, 6\n\n    E8_O8 %1, %2, [pw_89_75],  [pw_50_18],   0,      %5 * 7, m0, %6, m8, m15\n    E8_O8 %1, %2, [pw_75_m18], [pw_m89_m50], %5,     %5 * 6, m1, %6, m9, m14\n    E8_O8 %1, %2, [pw_50_m89], [pw_18_75],   %5 * 2, %5 * 5, m2, %6, m10, m13\n    E8_O8 %1, %2, [pw_18_m50], [pw_75_m89],  %5 * 3, %5 * 4, m3, %6, m11, m12\n%endmacro\n\n%macro STORE_PACKED 7\n    movq   [r0 + %3 + %7], %1\n    movhps [r0 + %4 + %7], %1\n    movq   [r0 + %5 + %7], %2\n    movhps [r0 + %6 + %7], %2\n%endmacro\n\n; transpose 4x4 block packed\n; in %1 and %2 registers\n; %3 - temporary register\n%macro TRANSPOSE_4x4 3\n    SBUTTERFLY wd, %1, %2, %3\n    SBUTTERFLY dq, %1, %2, %3\n%endmacro\n\n; %1 - horizontal offset of the block i\n; %2 - vertical offset of the block i\n; %3 - width in bytes", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:12", "text": "%endmacro\n\n%macro STORE_PACKED 7\n    movq   [r0 + %3 + %7], %1\n    movhps [r0 + %4 + %7], %1\n    movq   [r0 + %5 + %7], %2\n    movhps [r0 + %6 + %7], %2\n%endmacro\n\n; transpose 4x4 block packed\n; in %1 and %2 registers\n; %3 - temporary register\n%macro TRANSPOSE_4x4 3\n    SBUTTERFLY wd, %1, %2, %3\n    SBUTTERFLY dq, %1, %2, %3\n%endmacro\n\n; %1 - horizontal offset of the block i\n; %2 - vertical offset of the block i\n; %3 - width in bytes\n; %4 - vertical offset for the block j\n; %5 - horizontal offset for the block j\n%macro SWAP_BLOCKS 5\n    ; M_j\n    LOAD_BLOCK m4, m5, %4, %4 + %3, %4 + 2 * %3, %4 + 3 * %3, %5\n    TRANSPOSE_4x4 4, 5, 6\n\n    ; M_i\n    LOAD_BLOCK m6, m7, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n\n    STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n\n    ; transpose and store M_i\n    SWAP m6, m4\n    SWAP m7, m5\n    TRANSPOSE_4x4 4, 5, 6\n    STORE_PACKED m4, m5, %4, %4 + %3, %4 + 2 * %3, %4 + 3 * %3, %5\n%endmacro\n\n; %1 - horizontal offset\n; %2 - vertical offset of the block\n; %3 - width in bytes\n%macro TRANSPOSE_BLOCK 3\n    LOAD_BLOCK m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n    TRANSPOSE_4x4 4, 5, 6\n    STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n%endmacro\n\n%macro TRANSPOSE_8x8 0\ncglobal hevc_idct_transpose_8x8, 0, 0, 0\n    ; M1 M2 ^T = M1^t M3^t\n    ; M3 M4      M2^t M4^t\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 16\n\n    ; M2 and M3\n    SWAP_BLOCKS 0, 64, 16, 0, 8\n\n    ; M4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:13", "text": "; %2 - vertical offset of the block\n; %3 - width in bytes\n%macro TRANSPOSE_BLOCK 3\n    LOAD_BLOCK m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n    TRANSPOSE_4x4 4, 5, 6\n    STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n%endmacro\n\n%macro TRANSPOSE_8x8 0\ncglobal hevc_idct_transpose_8x8, 0, 0, 0\n    ; M1 M2 ^T = M1^t M3^t\n    ; M3 M4      M2^t M4^t\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 16\n\n    ; M2 and M3\n    SWAP_BLOCKS 0, 64, 16, 0, 8\n\n    ; M4\n    TRANSPOSE_BLOCK 8, 64, 16\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_8x8_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_8x8 1\ncglobal hevc_idct_8x8_%1, 1, 1, 8, coeffs\n    TR_8x4 0, 7, 32, 1, 16, 8, 1\n    TR_8x4 8, 7, 32, 1, 16, 8, 1\n\n    call hevc_idct_transpose_8x8_ %+ cpuname\n\n    DEFINE_BIAS %1\n    TR_8x4 0, shift, 32, 1, 16, 8, 1\n    TR_8x4 8, shift, 32, 1, 16, 8, 1\n\n    TAIL_CALL hevc_idct_transpose_8x8_ %+ cpuname, 1\n%endmacro\n\n; store intermedite e32 coeffs on stack\n; as 16x4 matrix\n; from m10: e8 + o8, with %6 offset\n; and  %3:  e8 - o8, with %7 offset\n; %4 - shift, unused here\n%macro STORE_16 7\n    mova [rsp + %6], %5\n    mova [rsp + %7], %3\n%endmacro\n\n; %1, %2 - transform constants\n; %3, %4 - regs with interleaved coeffs\n; %5 - 1/0 SWAP or add\n; %6, %7 - registers for intermediate sums\n; %8 - accumulator register\n%macro ADD_ROWS 8\n    pmaddwd %6, %3, %1\n    pmaddwd %7, %4, %2\n    paddd   %6, %7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:14", "text": "; store intermedite e32 coeffs on stack\n; as 16x4 matrix\n; from m10: e8 + o8, with %6 offset\n; and  %3:  e8 - o8, with %7 offset\n; %4 - shift, unused here\n%macro STORE_16 7\n    mova [rsp + %6], %5\n    mova [rsp + %7], %3\n%endmacro\n\n; %1, %2 - transform constants\n; %3, %4 - regs with interleaved coeffs\n; %5 - 1/0 SWAP or add\n; %6, %7 - registers for intermediate sums\n; %8 - accumulator register\n%macro ADD_ROWS 8\n    pmaddwd %6, %3, %1\n    pmaddwd %7, %4, %2\n    paddd   %6, %7\n%if %5 == 1\n    SWAP %6, %8\n%else\n    paddd %8, %6\n%endif\n%endmacro\n\n; %1 - transform coeffs\n; %2, %3 offsets for storing e+o/e-o back to coeffsq\n; %4 - shift\n; %5 - add\n; %6 - block_size\n; %7 - register with e16\n; %8, %9 - stack offsets for storing e+o/e-o\n%macro E16_O16 9\n    ADD_ROWS [%1],          [%1 +     16], m0, m1, 1, m5, m6, m7\n    ADD_ROWS [%1 + 2 * 16], [%1 + 3 * 16], m2, m3, 0, m5, m6, m7\n\n%if %6 == 8\n    paddd %7, %5\n%endif\n\n    paddd m4, m7, %7 ; o16 + e16\n    psubd %7, m7     ; e16 - o16\n    STORE_%6 %2, %3, %7, %4, m4, %8, %9\n%endmacro\n\n%macro TR_16x4 10\n    ; produce 8x4 matrix of e16 coeffs\n    ; for 4 first rows and store it on stack (128 bytes)\n    TR_8x4 %1, 7, %4, %5, %6, %8, 0\n\n    ; load 8 even rows\n    LOAD_BLOCK m0, m1, %9 * %6, %9 * 3 * %6, %9 * 5 * %6, %9 * 7 * %6, %1\n    LOAD_BLOCK m2, m3, %9 * 9 * %6, %9 * 11 * %6, %9 * 13 * %6, %9 * 15 * %6, %1\n\n    SBUTTERFLY wd, 0, 1, 4\n    SBUTTERFLY wd, 2, 3, 4\n\n    E16_O16 trans_coeffs16,               0 + %1, 15 * %6 + %1, %2, %3, %7, m8,       0, 15 * 16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:15", "text": "%endif\n\n    paddd m4, m7, %7 ; o16 + e16\n    psubd %7, m7     ; e16 - o16\n    STORE_%6 %2, %3, %7, %4, m4, %8, %9\n%endmacro\n\n%macro TR_16x4 10\n    ; produce 8x4 matrix of e16 coeffs\n    ; for 4 first rows and store it on stack (128 bytes)\n    TR_8x4 %1, 7, %4, %5, %6, %8, 0\n\n    ; load 8 even rows\n    LOAD_BLOCK m0, m1, %9 * %6, %9 * 3 * %6, %9 * 5 * %6, %9 * 7 * %6, %1\n    LOAD_BLOCK m2, m3, %9 * 9 * %6, %9 * 11 * %6, %9 * 13 * %6, %9 * 15 * %6, %1\n\n    SBUTTERFLY wd, 0, 1, 4\n    SBUTTERFLY wd, 2, 3, 4\n\n    E16_O16 trans_coeffs16,               0 + %1, 15 * %6 + %1, %2, %3, %7, m8,       0, 15 * 16\n    mova m8, %3\n    E16_O16 trans_coeffs16 +     64,     %6 + %1, 14 * %6 + %1, %2, m8, %7, m9,      16, 14 * 16\n    E16_O16 trans_coeffs16 + 2 * 64, 2 * %6 + %1, 13 * %6 + %1, %2, m8, %7, m10, 2 * 16, 13 * 16\n    E16_O16 trans_coeffs16 + 3 * 64, 3 * %6 + %1, 12 * %6 + %1, %2, m8, %7, m11, 3 * 16, 12 * 16\n    E16_O16 trans_coeffs16 + 4 * 64, 4 * %6 + %1, 11 * %6 + %1, %2, m8, %7, m12, 4 * 16, 11 * 16\n    E16_O16 trans_coeffs16 + 5 * 64, 5 * %6 + %1, 10 * %6 + %1, %2, m8, %7, m13, 5 * 16, 10 * 16\n    E16_O16 trans_coeffs16 + 6 * 64, 6 * %6 + %1,  9 * %6 + %1, %2, m8, %7, m14, 6 * 16,  9 * 16\n    E16_O16 trans_coeffs16 + 7 * 64, 7 * %6 + %1,  8 * %6 + %1, %2, m8, %7, m15, 7 * 16,  8 * 16\n%endmacro\n\n%macro TRANSPOSE_16x16 0\ncglobal hevc_idct_transpose_16x16, 0, 0, 0\n; M1  M2  M3  M4 ^T      m1 m5 m9  m13   M_i^T = m_i\n; M5  M6  M7  M8    -->  m2 m6 m10 m14\n; M9  M10 M11 M12        m3 m7 m11 m15\n; M13 M14 M15 M16        m4 m8 m12 m16\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 32\n\n    ; M5, M2\n    SWAP_BLOCKS 0, 128, 32, 0, 8\n    ; M9, M3\n    SWAP_BLOCKS 0, 256, 32, 0, 16\n    ; M13, M4\n    SWAP_BLOCKS 0, 384, 32, 0, 24\n\n    ;M6\n    TRANSPOSE_BLOCK 8, 128, 32\n\n    ; M10, M7\n    SWAP_BLOCKS 8, 256, 32, 128, 16\n    ; M14, M8\n    SWAP_BLOCKS 8, 384, 32, 128, 24\n\n    ;M11\n    TRANSPOSE_BLOCK 16, 256, 32\n\n    ; M15, M12\n    SWAP_BLOCKS 16, 384, 32, 256, 24", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:16", "text": "; M5, M2\n    SWAP_BLOCKS 0, 128, 32, 0, 8\n    ; M9, M3\n    SWAP_BLOCKS 0, 256, 32, 0, 16\n    ; M13, M4\n    SWAP_BLOCKS 0, 384, 32, 0, 24\n\n    ;M6\n    TRANSPOSE_BLOCK 8, 128, 32\n\n    ; M10, M7\n    SWAP_BLOCKS 8, 256, 32, 128, 16\n    ; M14, M8\n    SWAP_BLOCKS 8, 384, 32, 128, 24\n\n    ;M11\n    TRANSPOSE_BLOCK 16, 256, 32\n\n    ; M15, M12\n    SWAP_BLOCKS 16, 384, 32, 256, 24\n\n    ;M16\n    TRANSPOSE_BLOCK 24, 384, 32\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_16x16_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_16x16 1\ncglobal hevc_idct_16x16_%1, 1, 2, 16, coeffs\n    mov r1d, 3\n.loop16:\n    TR_16x4 8 * r1, 7, [pd_64], 64, 2, 32, 8, 16, 1, 0\n    dec r1d\n    jge .loop16\n\n    call hevc_idct_transpose_16x16_ %+ cpuname\n\n    DEFINE_BIAS %1\n    mov r1d, 3\n.loop16_2:\n    TR_16x4 8 * r1, shift, [arr_add], 64, 2, 32, 8, 16, 1, 1\n    dec r1d\n    jge .loop16_2\n\n    TAIL_CALL hevc_idct_transpose_16x16_ %+ cpuname, 1\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e32[0] + o32[0] --> %1\n; 4 at one time (4 columns)                        1 e32[1] + o32[1]\n; %1 - address to store e32 + o32\n; %2 - address to store e32 - e32\n; %5 - reg with e32 + o32                                  ...\n; %3 - reg with e32 - o32                          30 e32[1] - o32[1]\n; %4 - shift                                       31 e32[0] - o32[0] --> %2\n%macro STORE_32 5\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:17", "text": "mov r1d, 3\n.loop16_2:\n    TR_16x4 8 * r1, shift, [arr_add], 64, 2, 32, 8, 16, 1, 1\n    dec r1d\n    jge .loop16_2\n\n    TAIL_CALL hevc_idct_transpose_16x16_ %+ cpuname, 1\n%endmacro\n\n; scale, pack (clip16) and store the residuals     0 e32[0] + o32[0] --> %1\n; 4 at one time (4 columns)                        1 e32[1] + o32[1]\n; %1 - address to store e32 + o32\n; %2 - address to store e32 - e32\n; %5 - reg with e32 + o32                                  ...\n; %3 - reg with e32 - o32                          30 e32[1] - o32[1]\n; %4 - shift                                       31 e32[0] - o32[0] --> %2\n%macro STORE_32 5\n    psrad    %5, %4\n    psrad    %3, %4\n    packssdw %5, %3\n    movq     [%1], %5\n    movhps   [%2], %5\n%endmacro\n\n; %1 - transform coeffs\n; %2 - stack offset for e32\n; %2, %3 offsets for storing e+o/e-o back to coeffsq\n; %4 - shift\n; %5 - stack offset of e32\n%macro E32_O32 5\n    ADD_ROWS [%1],          [%1 +     16], m0, m1, 1, m8, m9, m10\n    ADD_ROWS [%1 + 2 * 16], [%1 + 3 * 16], m2, m3, 0, m8, m9, m10\n    ADD_ROWS [%1 + 4 * 16], [%1 + 5 * 16], m4, m5, 0, m8, m9, m10\n    ADD_ROWS [%1 + 6 * 16], [%1 + 7 * 16], m6, m7, 0, m8, m9, m10\n\n    paddd m11, m14, [rsp + %5]\n    paddd m12, m10, m11 ; o32 + e32\n    psubd m11, m10      ; e32 - o32\n    STORE_32 %2, %3, m11, %4, m12\n%endmacro\n\n; %1 - horizontal offset\n; %2 - bitdepth\n%macro TR_32x4 3\n    TR_16x4 %1, 7, [pd_64], 128, 4, 64, 16, 16, 2, 0\n\n    LOAD_BLOCK m0, m1,      64,  3 * 64,  5 * 64,  7 * 64, %1\n    LOAD_BLOCK m2, m3,  9 * 64, 11 * 64, 13 * 64, 15 * 64, %1\n    LOAD_BLOCK m4, m5, 17 * 64, 19 * 64, 21 * 64, 23 * 64, %1\n    LOAD_BLOCK m6, m7, 25 * 64, 27 * 64, 29 * 64, 31 * 64, %1\n\n    SBUTTERFLY wd, 0, 1, 8\n    SBUTTERFLY wd, 2, 3, 8\n    SBUTTERFLY wd, 4, 5, 8\n    SBUTTERFLY wd, 6, 7, 8\n\n%if %3 == 1\n    %assign shift 7\n    mova m14, [pd_64]\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:18", "text": "; %1 - horizontal offset\n; %2 - bitdepth\n%macro TR_32x4 3\n    TR_16x4 %1, 7, [pd_64], 128, 4, 64, 16, 16, 2, 0\n\n    LOAD_BLOCK m0, m1,      64,  3 * 64,  5 * 64,  7 * 64, %1\n    LOAD_BLOCK m2, m3,  9 * 64, 11 * 64, 13 * 64, 15 * 64, %1\n    LOAD_BLOCK m4, m5, 17 * 64, 19 * 64, 21 * 64, 23 * 64, %1\n    LOAD_BLOCK m6, m7, 25 * 64, 27 * 64, 29 * 64, 31 * 64, %1\n\n    SBUTTERFLY wd, 0, 1, 8\n    SBUTTERFLY wd, 2, 3, 8\n    SBUTTERFLY wd, 4, 5, 8\n    SBUTTERFLY wd, 6, 7, 8\n\n%if %3 == 1\n    %assign shift 7\n    mova m14, [pd_64]\n%else\n    LOAD_BIAS %2, m14\n%endif\n\n    lea r2, [trans_coeff32 + 15 * 128]\n    lea r3, [coeffsq + %1]\n    lea r4, [r3 + 16 * 64]\n    mov r5d, 15 * 16\n%%loop:\n    E32_O32 r2, r3 + r5 * 4, r4, shift, r5\n    sub r2, 128\n    add r4, 64\n    sub r5d, 16\n    jge %%loop\n%endmacro\n\n%macro TRANSPOSE_32x32 0\ncglobal hevc_idct_transpose_32x32, 0, 0, 0\n    ; M0  M1 ... M7\n    ; M8         M15\n    ;\n    ; ...\n    ;\n    ; M56        M63\n\n    TRANSPOSE_BLOCK 0, 0, 64 ; M1\n    mov r1d, 7\n    mov r2d, 7 * 256\n.loop_transpose:\n    SWAP_BLOCKS 0, r2, 64, 0, r1 * 8\n    sub r2d, 256\n    dec r1d\n    jg .loop_transpose\n\n    TRANSPOSE_BLOCK 8, 256, 64 ; M9\n    mov r1d, 6\n    mov r2d, 512\n    mov r3d, 16\n.loop_transpose2:\n    SWAP_BLOCKS 8, r2, 64, 256, r3\n    add r3d, 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:19", "text": "; ...\n    ;\n    ; M56        M63\n\n    TRANSPOSE_BLOCK 0, 0, 64 ; M1\n    mov r1d, 7\n    mov r2d, 7 * 256\n.loop_transpose:\n    SWAP_BLOCKS 0, r2, 64, 0, r1 * 8\n    sub r2d, 256\n    dec r1d\n    jg .loop_transpose\n\n    TRANSPOSE_BLOCK 8, 256, 64 ; M9\n    mov r1d, 6\n    mov r2d, 512\n    mov r3d, 16\n.loop_transpose2:\n    SWAP_BLOCKS 8, r2, 64, 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose2\n\n    TRANSPOSE_BLOCK 2 * 8, 2 * 256, 64 ; M9\n    mov r1d, 5\n    mov r2d, 768\n    mov r3d, 24\n.loop_transpose3:\n    SWAP_BLOCKS 2 * 8, r2, 64, 2 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose3\n\n    TRANSPOSE_BLOCK 3 * 8, 3 * 256, 64 ; M27\n    mov r1d, 4\n    mov r2d, 1024\n    mov r3d, 32\n.loop_transpose4:\n    SWAP_BLOCKS 3 * 8, r2, 64, 3 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose4\n\n    TRANSPOSE_BLOCK 4 * 8, 4 * 256, 64 ; M36\n    mov r1d, 3\n    mov r2d, 1280\n    mov r3d, 40\n.loop_transpose5:\n    SWAP_BLOCKS 4 * 8, r2, 64, 4 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose5\n\n    TRANSPOSE_BLOCK 5 * 8, 5 * 256, 64 ; M45\n    SWAP_BLOCKS 5 * 8, 6 * 256, 64, 5 * 256, 6 * 8\n    SWAP_BLOCKS 5 * 8, 7 * 256, 64, 5 * 256, 7 * 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:20", "text": "SWAP_BLOCKS 3 * 8, r2, 64, 3 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose4\n\n    TRANSPOSE_BLOCK 4 * 8, 4 * 256, 64 ; M36\n    mov r1d, 3\n    mov r2d, 1280\n    mov r3d, 40\n.loop_transpose5:\n    SWAP_BLOCKS 4 * 8, r2, 64, 4 * 256, r3\n    add r3d, 8\n    add r2d, 256\n    dec r1d\n    jg .loop_transpose5\n\n    TRANSPOSE_BLOCK 5 * 8, 5 * 256, 64 ; M45\n    SWAP_BLOCKS 5 * 8, 6 * 256, 64, 5 * 256, 6 * 8\n    SWAP_BLOCKS 5 * 8, 7 * 256, 64, 5 * 256, 7 * 8\n\n    TRANSPOSE_BLOCK 6 * 8, 6 * 256, 64 ; M54\n    SWAP_BLOCKS 6 * 8, 7 * 256, 64, 6 * 256, 7 * 8\n\n    TRANSPOSE_BLOCK 7 * 8, 7 * 256, 64 ; M63\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_32x32_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_32x32 1\ncglobal hevc_idct_32x32_%1, 1, 6, 16, 256, coeffs\n    mov r1d, 7\n.loop32:\n    TR_32x4 8 * r1, %1, 1\n    dec r1d\n    jge .loop32\n\n    call hevc_idct_transpose_32x32_ %+ cpuname\n\n    mov r1d, 7\n.loop32_2:\n    TR_32x4 8 * r1, %1, 0\n    dec r1d\n    jge .loop32_2\n\n    TAIL_CALL hevc_idct_transpose_32x32_ %+ cpuname, 1\n%endmacro\n\n%macro INIT_IDCT_DC 1\nINIT_MMX mmxext\nIDCT_DC_NL  4,      %1\n\nINIT_XMM sse2\nIDCT_DC_NL  8,      %1\nIDCT_DC    16,  4,  %1\nIDCT_DC    32, 16,  %1\n\n%if HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:21", "text": "mov r1d, 7\n.loop32_2:\n    TR_32x4 8 * r1, %1, 0\n    dec r1d\n    jge .loop32_2\n\n    TAIL_CALL hevc_idct_transpose_32x32_ %+ cpuname, 1\n%endmacro\n\n%macro INIT_IDCT_DC 1\nINIT_MMX mmxext\nIDCT_DC_NL  4,      %1\n\nINIT_XMM sse2\nIDCT_DC_NL  8,      %1\nIDCT_DC    16,  4,  %1\nIDCT_DC    32, 16,  %1\n\n%if HAVE_AVX2_EXTERNAL\n    INIT_YMM avx2\n    IDCT_DC    16,  2,  %1\n    IDCT_DC    32,  8,  %1\n%endif ;HAVE_AVX2_EXTERNAL\n%endmacro\n\n%macro INIT_IDCT 2\nINIT_XMM %2\n%if %1 == 8\n    TRANSPOSE_8x8\n    %if ARCH_X86_64\n        TRANSPOSE_16x16\n        TRANSPOSE_32x32\n    %endif\n%endif\n%if ARCH_X86_64\n    IDCT_32x32 %1\n    IDCT_16x16 %1\n%endif\nIDCT_8x8 %1\nIDCT_4x4 %1\n%endmacro\n\nINIT_IDCT_DC 8\nINIT_IDCT_DC 10\nINIT_IDCT_DC 12\nINIT_IDCT 8, sse2\nINIT_IDCT 8, avx\nINIT_IDCT 10, sse2\nINIT_IDCT 10, avx\n;INIT_IDCT 12, sse2\n;INIT_IDCT 12, avx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 801, "line_end": 852}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:22", "text": "IDCT_4x4 %1\n%endmacro\n\nINIT_IDCT_DC 8\nINIT_IDCT_DC 10\nINIT_IDCT_DC 12\nINIT_IDCT 8, sse2\nINIT_IDCT 8, avx\nINIT_IDCT 10, sse2\nINIT_IDCT 10, avx\n;INIT_IDCT 12, sse2\n;INIT_IDCT 12, avx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libavcodec/x86/hevc/idct.asm", "line_start": 841, "line_end": 852}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:13", "text": "; %2 - vertical offset of the block\n; %3 - width in bytes\n%macro TRANSPOSE_BLOCK 3\n    LOAD_BLOCK m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n    TRANSPOSE_4x4 4, 5, 6\n    STORE_PACKED m4, m5, %2, %2 + %3, %2 + 2 * %3, %2 + 3 * %3, %1\n%endmacro\n\n%macro TRANSPOSE_8x8 0\ncglobal hevc_idct_transpose_8x8, 0, 0, 0\n    ; M1 M2 ^T = M1^t M3^t\n    ; M3 M4      M2^t M4^t\n\n    ; M1 4x4 block\n    TRANSPOSE_BLOCK 0, 0, 16\n\n    ; M2 and M3\n    SWAP_BLOCKS 0, 64, 16, 0, 8\n\n    ; M4\n    TRANSPOSE_BLOCK 8, 64, 16\n\n    ret\n%endmacro\n\n; void ff_hevc_idct_8x8_{8,10}_<opt>(int16_t *coeffs, int col_limit)\n; %1 = bitdepth\n%macro IDCT_8x8 1\ncglobal hevc_idct_8x8_%1, 1, 1, 8, coeffs\n    TR_8x4 0, 7, 32, 1, 16, 8, 1\n    TR_8x4 8, 7, 32, 1, 16, 8, 1\n\n    call hevc_idct_transpose_8x8_ %+ cpuname\n\n    DEFINE_BIAS %1\n    TR_8x4 0, shift, 32, 1, 16, 8, 1\n    TR_8x4 8, shift, 32, 1, 16, 8, 1\n\n    TAIL_CALL hevc_idct_transpose_8x8_ %+ cpuname, 1\n%endmacro\n\n; store intermedite e32 coeffs on stack\n; as 16x4 matrix\n; from m10: e8 + o8, with %6 offset\n; and  %3:  e8 - o8, with %7 offset\n; %4 - shift, unused here\n%macro STORE_16 7\n    mova [rsp + %6], %5\n    mova [rsp + %7], %3\n%endmacro\n\n; %1, %2 - transform constants\n; %3, %4 - regs with interleaved coeffs\n; %5 - 1/0 SWAP or add\n; %6, %7 - registers for intermidiate sums\n; %8 - accumulator register\n%macro ADD_ROWS 8\n    pmaddwd %6, %3, %1\n    pmaddwd %7, %4, %2\n    paddd   %6, %7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "8bb682d454990a1049a21f1f51442205ea3337e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8bb682d454990a1049a21f1f51442205ea3337e9/libavcodec/x86/hevc/idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/idct.asm:14", "text": "; store intermedite e32 coeffs on stack\n; as 16x4 matrix\n; from m10: e8 + o8, with %6 offset\n; and  %3:  e8 - o8, with %7 offset\n; %4 - shift, unused here\n%macro STORE_16 7\n    mova [rsp + %6], %5\n    mova [rsp + %7], %3\n%endmacro\n\n; %1, %2 - transform constants\n; %3, %4 - regs with interleaved coeffs\n; %5 - 1/0 SWAP or add\n; %6, %7 - registers for intermidiate sums\n; %8 - accumulator register\n%macro ADD_ROWS 8\n    pmaddwd %6, %3, %1\n    pmaddwd %7, %4, %2\n    paddd   %6, %7\n%if %5 == 1\n    SWAP %6, %8\n%else\n    paddd %8, %6\n%endif\n%endmacro\n\n; %1 - transform coeffs\n; %2, %3 offsets for storing e+o/e-o back to coeffsq\n; %4 - shift\n; %5 - add\n; %6 - block_size\n; %7 - register with e16\n; %8, %9 - stack offsets for storing e+o/e-o\n%macro E16_O16 9\n    ADD_ROWS [%1],          [%1 +     16], m0, m1, 1, m5, m6, m7\n    ADD_ROWS [%1 + 2 * 16], [%1 + 3 * 16], m2, m3, 0, m5, m6, m7\n\n%if %6 == 8\n    paddd %7, %5\n%endif\n\n    paddd m4, m7, %7 ; o16 + e16\n    psubd %7, m7     ; e16 - o16\n    STORE_%6 %2, %3, %7, %4, m4, %8, %9\n%endmacro\n\n%macro TR_16x4 10\n    ; produce 8x4 matrix of e16 coeffs\n    ; for 4 first rows and store it on stack (128 bytes)\n    TR_8x4 %1, 7, %4, %5, %6, %8, 0\n\n    ; load 8 even rows\n    LOAD_BLOCK m0, m1, %9 * %6, %9 * 3 * %6, %9 * 5 * %6, %9 * 7 * %6, %1\n    LOAD_BLOCK m2, m3, %9 * 9 * %6, %9 * 11 * %6, %9 * 13 * %6, %9 * 15 * %6, %1\n\n    SBUTTERFLY wd, 0, 1, 4\n    SBUTTERFLY wd, 2, 3, 4\n\n    E16_O16 trans_coeffs16,               0 + %1, 15 * %6 + %1, %2, %3, %7, m8,       0, 15 * 16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/idct.asm", "license": "LGPL-2.1", "commit": "8bb682d454990a1049a21f1f51442205ea3337e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8bb682d454990a1049a21f1f51442205ea3337e9/libavcodec/x86/hevc/idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:1", "text": "; /*\n; * Provide SSE luma and chroma mc functions for HEVC decoding\n; * Copyright (c) 2013 Pierre-Edouard LEPERE\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\ncextern pw_255\ncextern pw_512\ncextern pw_2048\ncextern pw_8192\ncextern pw_1023\ncextern pw_1024\ncextern pw_4096\n%define pw_8 pw_512\n%define pw_10 pw_2048\n%define pw_12 pw_8192\n%define pw_bi_10 pw_1024\n%define pw_bi_12 pw_4096\n%define max_pixels_8 pw_255\n%define max_pixels_10 pw_1023\npw_bi_8:                times 16 dw  (1 <<  8)\nmax_pixels_12:          times 16 dw ((1 << 12)-1)\ncextern pd_1\ncextern pb_0\n\n%macro EPEL_TABLE 4\nhevc_epel_filters_%4_%1 times %2 d%3 -2, 58\n                        times %2 d%3 10, -2\n                        times %2 d%3 -4, 54\n                        times %2 d%3 16, -2\n                        times %2 d%3 -6, 46\n                        times %2 d%3 28, -4\n                        times %2 d%3 -4, 36\n                        times %2 d%3 36, -4\n                        times %2 d%3 -4, 28\n                        times %2 d%3 46, -6\n                        times %2 d%3 -2, 16\n                        times %2 d%3 54, -4\n                        times %2 d%3 -2, 10\n                        times %2 d%3 58, -2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:2", "text": "cextern pb_0\n\n%macro EPEL_TABLE 4\nhevc_epel_filters_%4_%1 times %2 d%3 -2, 58\n                        times %2 d%3 10, -2\n                        times %2 d%3 -4, 54\n                        times %2 d%3 16, -2\n                        times %2 d%3 -6, 46\n                        times %2 d%3 28, -4\n                        times %2 d%3 -4, 36\n                        times %2 d%3 36, -4\n                        times %2 d%3 -4, 28\n                        times %2 d%3 46, -6\n                        times %2 d%3 -2, 16\n                        times %2 d%3 54, -4\n                        times %2 d%3 -2, 10\n                        times %2 d%3 58, -2\n%endmacro\n\n\nEPEL_TABLE  8,16, b, avx2\nEPEL_TABLE 10, 8, w, avx2\n\nEPEL_TABLE  8, 8, b, sse4\nEPEL_TABLE 10, 4, w, sse4\nEPEL_TABLE 12, 4, w, sse4\n\n%macro QPEL_TABLE 4\nhevc_qpel_filters_%4_%1 times %2 d%3  -1,  4\n                        times %2 d%3 -10, 58\n                        times %2 d%3  17, -5\n                        times %2 d%3   1,  0\n                        times %2 d%3  -1,  4\n                        times %2 d%3 -11, 40\n                        times %2 d%3  40,-11\n                        times %2 d%3   4, -1\n                        times %2 d%3   0,  1\n                        times %2 d%3  -5, 17\n                        times %2 d%3  58,-10\n                        times %2 d%3   4, -1\n%endmacro\n\nQPEL_TABLE  8, 8, b, sse4\nQPEL_TABLE 10, 4, w, sse4\nQPEL_TABLE 12, 4, w, sse4\n\nQPEL_TABLE  8,16, b, avx2\nQPEL_TABLE 10, 8, w, avx2\n\nQPEL_TABLE  4, 1, b, avx512icl_h\nQPEL_TABLE  8, 1, b, avx512icl_h\nQPEL_TABLE  8, 1, d, avx512icl_v\nQPEL_TABLE 16, 1, b, avx512icl_h\nQPEL_TABLE 32, 1, b, avx512icl_h\nQPEL_TABLE 64, 1, b, avx512icl_h\n\npb_qpel_shuffle_index: db  0,  1,  2,  3\n                       db  1,  2,  3,  4\n                       db  2,  3,  4,  5\n                       db  3,  4,  5,  6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:3", "text": "%endmacro\n\nQPEL_TABLE  8, 8, b, sse4\nQPEL_TABLE 10, 4, w, sse4\nQPEL_TABLE 12, 4, w, sse4\n\nQPEL_TABLE  8,16, b, avx2\nQPEL_TABLE 10, 8, w, avx2\n\nQPEL_TABLE  4, 1, b, avx512icl_h\nQPEL_TABLE  8, 1, b, avx512icl_h\nQPEL_TABLE  8, 1, d, avx512icl_v\nQPEL_TABLE 16, 1, b, avx512icl_h\nQPEL_TABLE 32, 1, b, avx512icl_h\nQPEL_TABLE 64, 1, b, avx512icl_h\n\npb_qpel_shuffle_index: db  0,  1,  2,  3\n                       db  1,  2,  3,  4\n                       db  2,  3,  4,  5\n                       db  3,  4,  5,  6\n                       db  4,  5,  6,  7\n                       db  5,  6,  7,  8\n                       db  6,  7,  8,  9\n                       db  7,  8,  9, 10\n                       db  8,  9, 10, 11\n                       db  9, 10, 11, 12\n                       db 10, 11, 12, 13\n                       db 11, 12, 13, 14\n                       db 12, 13, 14, 15\n                       db 13, 14, 15, 16\n                       db 14, 15, 16, 17\n                       db 15, 16, 17, 18\n                       db  4,  5,  6,  7\n                       db  5,  6,  7,  8\n                       db  6,  7,  8,  9\n                       db  7,  8,  9, 10\n                       db  8,  9, 10, 11\n                       db  9, 10, 11, 12\n                       db 10, 11, 12, 13\n                       db 11, 12, 13, 14\n                       db 12, 13, 14, 15\n                       db 13, 14, 15, 16\n                       db 14, 15, 16, 17\n                       db 15, 16, 17, 18\n                       db 16, 17, 18, 19\n                       db 17, 18, 19, 20\n                       db 18, 19, 20, 21\n                       db 19, 20, 21, 22\n\nSECTION .text\n\n%define MAX_PB_SIZE  64\n\n%define hevc_qpel_filters_sse4_14 hevc_qpel_filters_sse4_10\n\n%define hevc_qpel_filters_avx2_14 hevc_qpel_filters_avx2_10\n\n%if ARCH_X86_64\n\n%macro SIMPLE_BILOAD 4   ;width, tab, r1, r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:4", "text": "db 12, 13, 14, 15\n                       db 13, 14, 15, 16\n                       db 14, 15, 16, 17\n                       db 15, 16, 17, 18\n                       db 16, 17, 18, 19\n                       db 17, 18, 19, 20\n                       db 18, 19, 20, 21\n                       db 19, 20, 21, 22\n\nSECTION .text\n\n%define MAX_PB_SIZE  64\n\n%define hevc_qpel_filters_sse4_14 hevc_qpel_filters_sse4_10\n\n%define hevc_qpel_filters_avx2_14 hevc_qpel_filters_avx2_10\n\n%if ARCH_X86_64\n\n%macro SIMPLE_BILOAD 4   ;width, tab, r1, r2\n%if %1 <= 4\n    movq              %3, [%2]                                              ; load data from source2\n%elif %1 <= 8\n    movdqa            %3, [%2]                                              ; load data from source2\n%elif %1 <= 12\n%if cpuflag(avx2)\n    mova              %3, [%2]\n%else\n    movdqa            %3, [%2]                                              ; load data from source2\n    movq              %4, [%2+16]                                           ; load data from source2\n%endif ;avx\n%elif %1 <= 16\n%if cpuflag(avx2)\n    mova              %3, [%2]\n%else\n    movdqa            %3, [%2]                                              ; load data from source2\n    movdqa            %4, [%2+16]                                           ; load data from source2\n%endif ; avx\n%else ; %1 = 32\n    mova              %3, [%2]\n    mova              %4, [%2+32]\n%endif\n%endmacro\n\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n\n%macro EPEL_FILTER 5 ; bit depth, filter index, xmma, xmmb, gprtmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:5", "text": "mova              %4, [%2+32]\n%endif\n%endmacro\n\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n\n%macro EPEL_FILTER 5 ; bit depth, filter index, xmma, xmmb, gprtmp\n%if cpuflag(avx2)\n%assign %%offset 32\n%if PIC\n    lea              %5q, [hevc_epel_filters_avx2_%1]\n    %define FILTER %5q\n%else\n    %define FILTER hevc_epel_filters_avx2_%1\n%endif\n%else\n%assign %%offset 16\n%if PIC\n    lea              %5q, [hevc_epel_filters_sse4_%1]\n    %define FILTER %5q\n%else\n    %define FILTER hevc_epel_filters_sse4_%1\n%endif\n%endif ;cpuflag(avx2)\n    sub              %2q, 1\n%if cpuflag(avx2)\n    shl              %2q, 6                      ; multiply by 64\n  %else\n    shl              %2q, 5                      ; multiply by 32\n%endif\n    mova           %3, [FILTER + %2q]        ; get 2 first values of filters\n    mova           %4, [FILTER + %2q+%%offset]     ; get 2 last values of filters\n%endmacro\n\n%macro EPEL_HV_FILTER 1\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  6\n%define %%table  hevc_epel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  5\n%define %%table  hevc_epel_filters_sse4_%1\n%endif\n\n%if PIC\n    lea           r3srcq, [%%table]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:6", "text": "%else\n    shl              %2q, 5                      ; multiply by 32\n%endif\n    mova           %3, [FILTER + %2q]        ; get 2 first values of filters\n    mova           %4, [FILTER + %2q+%%offset]     ; get 2 last values of filters\n%endmacro\n\n%macro EPEL_HV_FILTER 1\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  6\n%define %%table  hevc_epel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  5\n%define %%table  hevc_epel_filters_sse4_%1\n%endif\n\n%if PIC\n    lea           r3srcq, [%%table]\n    %define FILTER r3srcq\n%else\n    %define FILTER %%table\n%endif\n    sub              mxq, 1\n    sub              myq, 1\n    shl              mxq, %%shift                ; multiply by 32\n    shl              myq, %%shift                ; multiply by 32\n    mova             m14, [FILTER + mxq]        ; get 2 first values of filters\n    mova             m15, [FILTER + mxq+%%offset]     ; get 2 last values of filters\n\n%if cpuflag(avx2)\n%define %%table  hevc_epel_filters_avx2_10\n%else\n%define %%table  hevc_epel_filters_sse4_10\n%endif\n%if PIC\n    lea           r3srcq, [%%table]\n    %define FILTER r3srcq\n%else\n    %define FILTER %%table\n%endif\n    mova             m12, [FILTER + myq]        ; get 2 first values of filters\n    mova             m13, [FILTER + myq+%%offset]     ; get 2 last values of filters\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro QPEL_FILTER 2\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  7\n%define %%table  hevc_qpel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  6\n%define %%table  hevc_qpel_filters_sse4_%1\n%endif\n\n%if PIC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:7", "text": "%define FILTER %%table\n%endif\n    mova             m12, [FILTER + myq]        ; get 2 first values of filters\n    mova             m13, [FILTER + myq+%%offset]     ; get 2 last values of filters\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro QPEL_FILTER 2\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  7\n%define %%table  hevc_qpel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  6\n%define %%table  hevc_qpel_filters_sse4_%1\n%endif\n\n%if PIC\n    lea         rfilterq, [%%table]\n%else\n    %define rfilterq %%table\n%endif\n    sub              %2q, 1\n    shl              %2q, %%shift                        ; multiply by 32\n    mova             m12, [rfilterq + %2q]               ; get 4 first values of filters\n    mova             m13, [rfilterq + %2q +   %%offset]  ; get 4 first values of filters\n    mova             m14, [rfilterq + %2q + 2*%%offset]  ; get 4 first values of filters\n    mova             m15, [rfilterq + %2q + 3*%%offset]  ; get 4 first values of filters\n%endmacro\n\n%macro EPEL_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:8", "text": "%%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 7\n    SBUTTERFLY        wd, 2, 3, 7\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n%endif\n%endif\n%endmacro\n\n\n%macro QPEL_H_LOAD 4\n%assign %%stride (%1+7)/8\n%if %1 == 8\n%if %3 <= 4\n%define %%load movd\n%elif %3 == 8\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif\n    %%load            m0, [%2-3*%%stride]        ;load data from source\n    %%load            m1, [%2-2*%%stride]\n    %%load            m2, [%2-%%stride  ]\n    %%load            m3, [%2           ]\n    %%load            m4, [%2+%%stride  ]\n    %%load            m5, [%2+2*%%stride]\n    %%load            m6, [%2+3*%%stride]\n    %%load            m7, [%2+4*%%stride]\n\n%if %1 == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:9", "text": "%endif\n%else\n%if %3 == 2\n%define %%load movd\n%elif %3 == 4\n%define %%load movq\n%else\n%define %%load movu\n%endif\n%endif\n    %%load            m0, [%2-3*%%stride]        ;load data from source\n    %%load            m1, [%2-2*%%stride]\n    %%load            m2, [%2-%%stride  ]\n    %%load            m3, [%2           ]\n    %%load            m4, [%2+%%stride  ]\n    %%load            m5, [%2+2*%%stride]\n    %%load            m6, [%2+3*%%stride]\n    %%load            m7, [%2+4*%%stride]\n\n%if %1 == 8\n%if %3 > 8\n    SBUTTERFLY        wd, 0, 1, %4\n    SBUTTERFLY        wd, 2, 3, %4\n    SBUTTERFLY        wd, 4, 5, %4\n    SBUTTERFLY        wd, 6, 7, %4\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %3 > 4\n    SBUTTERFLY        dq, 0, 1, %4\n    SBUTTERFLY        dq, 2, 3, %4\n    SBUTTERFLY        dq, 4, 5, %4\n    SBUTTERFLY        dq, 6, 7, %4\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro QPEL_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride\n    movu              m1, [%5q+   %3q     ]      ;load x- 2*srcstride\n    movu              m2, [%5q+ 2*%3q     ]      ;load x-srcstride\n    movu              m3, [%2       ]      ;load x\n    movu              m4, [%2+   %3q]      ;load x+stride\n    movu              m5, [%2+ 2*%3q]      ;load x+2*stride\n    movu              m6, [%2+r3srcq]      ;load x+3*stride\n    movu              m7, [%2+ 4*%3q]      ;load x+4*stride\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:10", "text": "punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro QPEL_V_LOAD 5\n    lea              %5q, [%2]\n    sub              %5q, r3srcq\n    movu              m0, [%5q            ]      ;load x- 3*srcstride\n    movu              m1, [%5q+   %3q     ]      ;load x- 2*srcstride\n    movu              m2, [%5q+ 2*%3q     ]      ;load x-srcstride\n    movu              m3, [%2       ]      ;load x\n    movu              m4, [%2+   %3q]      ;load x+stride\n    movu              m5, [%2+ 2*%3q]      ;load x+2*stride\n    movu              m6, [%2+r3srcq]      ;load x+3*stride\n    movu              m7, [%2+ 4*%3q]      ;load x+4*stride\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 8\n    SBUTTERFLY        bw, 2, 3, 8\n    SBUTTERFLY        bw, 4, 5, 8\n    SBUTTERFLY        bw, 6, 7, 8\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n    punpcklbw         m4, m5\n    punpcklbw         m6, m7\n%endif\n%else\n%if %4 > 4\n    SBUTTERFLY        wd, 0, 1, 8\n    SBUTTERFLY        wd, 2, 3, 8\n    SBUTTERFLY        wd, 4, 5, 8\n    SBUTTERFLY        wd, 6, 7, 8\n%else\n    punpcklwd         m0, m1\n    punpcklwd         m2, m3\n    punpcklwd         m4, m5\n    punpcklwd         m6, m7\n%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_12STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_12STORE8 3\n    movdqa         [%1], %2\n%endmacro\n%macro PEL_12STORE12 3\n    movdqa         [%1], %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:11", "text": "%endif\n%endif\n%endmacro\n\n%macro PEL_12STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_12STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_12STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_12STORE8 3\n    movdqa         [%1], %2\n%endmacro\n%macro PEL_12STORE12 3\n    movdqa         [%1], %2\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_12STORE16 3\n    PEL_12STORE8      %1, %2, %3\n    movdqa       [%1+16], %3\n%endmacro\n\n%macro PEL_10STORE2 3\n    movd           [%1], %2\n%endmacro\n%macro PEL_10STORE4 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_10STORE6 3\n    movq           [%1], %2\n    psrldq            %2, 8\n    movd         [%1+8], %2\n%endmacro\n%macro PEL_10STORE8 3\n    movdqa         [%1], %2\n%endmacro\n%macro PEL_10STORE12 3\n    movdqa         [%1], %2\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_10STORE8      %1, %2, %3\n    movdqa       [%1+16], %3\n%endif\n%endmacro\n\n%macro PEL_10STORE32 3\n    PEL_10STORE16     %1, %2, %3\n    movu         [%1+32], %3\n%endmacro\n\n%macro PEL_8STORE2 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:12", "text": "%endmacro\n%macro PEL_10STORE12 3\n    movdqa         [%1], %2\n    movq        [%1+16], %3\n%endmacro\n%macro PEL_10STORE16 3\n%if cpuflag(avx2)\n    movu            [%1], %2\n%else\n    PEL_10STORE8      %1, %2, %3\n    movdqa       [%1+16], %3\n%endif\n%endmacro\n\n%macro PEL_10STORE32 3\n    PEL_10STORE16     %1, %2, %3\n    movu         [%1+32], %3\n%endmacro\n\n%macro PEL_8STORE2 3\n    pextrw          [%1], %2, 0\n%endmacro\n%macro PEL_8STORE4 3\n    movd            [%1], %2\n%endmacro\n%macro PEL_8STORE6 3\n    movd            [%1], %2\n    pextrw        [%1+4], %2, 2\n%endmacro\n%macro PEL_8STORE8 3\n    movq           [%1], %2\n%endmacro\n%macro PEL_8STORE12 3\n    movq            [%1], %2\n    psrldq            %2, 8\n    movd          [%1+8], %2\n%endmacro\n%macro PEL_8STORE16 3\n%if cpuflag(avx2)\n    movdqu        [%1], %2\n%else\n    mova          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro\n\n%macro LOOP_END 3\n    add              %1q, 2*MAX_PB_SIZE          ; dst += dststride\n    add              %2q, %3q                    ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n%endmacro\n\n\n%macro MC_PIXEL_COMPUTE 2-3 ;width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && %0 ==3\n%if %1 > 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:13", "text": "%else\n    mova          [%1], %2\n%endif ; avx\n%endmacro\n%macro PEL_8STORE32 3\n    movu          [%1], %2\n%endmacro\n\n%macro LOOP_END 3\n    add              %1q, 2*MAX_PB_SIZE          ; dst += dststride\n    add              %2q, %3q                    ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n%endmacro\n\n\n%macro MC_PIXEL_COMPUTE 2-3 ;width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && %0 ==3\n%if %1 > 16\n    vextracti128 xm1, m0, 1\n    pmovzxbw      m1, xm1\n    psllw         m1, 14-%2\n%endif\n    pmovzxbw      m0, xm0\n%else ; not avx\n%if %1 > 8\n    punpckhbw     m1, m0, m2\n    psllw         m1, 14-%2\n%endif\n    punpcklbw     m0, m2\n%endif\n%endif ;avx\n    psllw         m0, 14-%2\n%endmacro\n\n%macro EPEL_COMPUTE 4-8 ; bitdepth, width, filter1, filter2, HV/m0, m2, m1, m3\n%if %0 == 8\n%define %%reg0 %5\n%define %%reg2 %6\n%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:14", "text": "%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10\n%endif\n    pmaddubsw      %%reg0, %3   ;x1*c1+x2*c2\n    pmaddubsw      %%reg2, %4   ;x3*c3+x4*c4\n    paddw          %%reg0, %%reg2\n%if %2 > 8\n    pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n%if %1 != 8\n    psrad          %%reg1, %1-8\n%endif\n%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro QPEL_HV_COMPUTE 4     ; width, bitdepth, filter idx\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%define %%table  hevc_qpel_filters_avx2_%2\n%else\n%assign %%offset 16\n%define %%table  hevc_qpel_filters_sse4_%2\n%endif\n\n%if PIC\n    lea         rfilterq, [%%table]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:15", "text": "%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro QPEL_HV_COMPUTE 4     ; width, bitdepth, filter idx\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%define %%table  hevc_qpel_filters_avx2_%2\n%else\n%assign %%offset 16\n%define %%table  hevc_qpel_filters_sse4_%2\n%endif\n\n%if PIC\n    lea         rfilterq, [%%table]\n%else\n    %define rfilterq %%table\n%endif\n\n%if %2 == 8\n    pmaddubsw         m0, [rfilterq + %3q*8   ]   ;x1*c1+x2*c2\n    pmaddubsw         m2, [rfilterq + %3q*8+%%offset]   ;x3*c3+x4*c4\n    pmaddubsw         m4, [rfilterq + %3q*8+2*%%offset]   ;x5*c5+x6*c6\n    pmaddubsw         m6, [rfilterq + %3q*8+3*%%offset]   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [rfilterq + %3q*8   ]\n    pmaddwd           m2, [rfilterq + %3q*8+%%offset]\n    pmaddwd           m4, [rfilterq + %3q*8+2*%%offset]\n    pmaddwd           m6, [rfilterq + %3q*8+3*%%offset]\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [rfilterq + %3q*8   ]\n    pmaddwd           m3, [rfilterq + %3q*8+%%offset]\n    pmaddwd           m5, [rfilterq + %3q*8+2*%%offset]\n    pmaddwd           m7, [rfilterq + %3q*8+3*%%offset]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n%macro QPEL_COMPUTE 2-3     ; width, bitdepth", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:16", "text": "%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [rfilterq + %3q*8   ]\n    pmaddwd           m3, [rfilterq + %3q*8+%%offset]\n    pmaddwd           m5, [rfilterq + %3q*8+2*%%offset]\n    pmaddwd           m7, [rfilterq + %3q*8+3*%%offset]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n%macro QPEL_COMPUTE 2-3     ; width, bitdepth\n%if %2 == 8\n%if cpuflag(avx2) && (%0 == 3)\n\n    vperm2i128 m10, m0,  m1, q0301\n    vinserti128 m0, m0, xm1, 1\n    SWAP 1, 10\n\n    vperm2i128 m10, m2,  m3, q0301\n    vinserti128 m2, m2, xm3, 1\n    SWAP 3, 10\n\n\n    vperm2i128 m10, m4,  m5, q0301\n    vinserti128 m4, m4, xm5, 1\n    SWAP 5, 10\n\n    vperm2i128 m10, m6,  m7, q0301\n    vinserti128 m6, m6, xm7, 1\n    SWAP 7, 10\n%endif\n\n    pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:17", "text": "pmaddubsw         m0, m12   ;x1*c1+x2*c2\n    pmaddubsw         m2, m13   ;x3*c3+x4*c4\n    pmaddubsw         m4, m14   ;x5*c5+x6*c6\n    pmaddubsw         m6, m15   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%if %1 > 8\n    pmaddubsw         m1, m12\n    pmaddubsw         m3, m13\n    pmaddubsw         m5, m14\n    pmaddubsw         m7, m15\n    paddw             m1, m3\n    paddw             m5, m7\n    paddw             m1, m5\n%endif\n%else\n    pmaddwd           m0, m12\n    pmaddwd           m2, m13\n    pmaddwd           m4, m14\n    pmaddwd           m6, m15\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, m12\n    pmaddwd           m3, m13\n    pmaddwd           m5, m14\n    pmaddwd           m7, m15\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n%endif\n%endmacro\n\n%macro BI_COMPUTE 7-8     ; width, bitd, src1l, src1h, scr2l, scr2h, pw\n    paddsw            %3, %5\n%if %1 > 8\n    paddsw            %4, %6\n%endif\n    UNI_COMPUTE       %1, %2, %3, %4, %7\n%if %0 == 8 && cpuflag(avx2) && (%2 == 8)\n    vpermq            %3, %3, 216\n    vpermq            %4, %4, 216\n%endif\n%endmacro\n\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:18", "text": "%endif\n%endmacro\n\n%macro BI_COMPUTE 7-8     ; width, bitd, src1l, src1h, scr2l, scr2h, pw\n    paddsw            %3, %5\n%if %1 > 8\n    paddsw            %4, %6\n%endif\n    UNI_COMPUTE       %1, %2, %3, %4, %7\n%if %0 == 8 && cpuflag(avx2) && (%2 == 8)\n    vpermq            %3, %3, 216\n    vpermq            %4, %4, 216\n%endif\n%endmacro\n\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void put_hevc_mc_pixels(int16_t *dst, ptrdiff_t dststride,\n;                         const uint8_t *_src, ptrdiff_t _srcstride,\n;                         int height, int mx, int my)\n; ******************************\n\n%macro HEVC_BI_PEL_PIXELS 2\ncglobal hevc_put_bi_pel_pixels%1_%2, 6, 6, 6, dst, dststride, src, srcstride, src2, height\n    pxor              m2, m2\n    movdqa            m5, [pw_bi_%2]\n.loop:\n    SIMPLE_LOAD       %1, %2, srcq, m0\n    SIMPLE_BILOAD     %1, src2q, m3, m4\n    MC_PIXEL_COMPUTE  %1, %2, 1\n    BI_COMPUTE        %1, %2, m0, m1, m3, m4, m5, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_epel_hX(int16_t *dst, ptrdiff_t dststride,\n;                       const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:19", "text": "movdqa            m5, [pw_bi_%2]\n.loop:\n    SIMPLE_LOAD       %1, %2, srcq, m0\n    SIMPLE_BILOAD     %1, src2q, m3, m4\n    MC_PIXEL_COMPUTE  %1, %2, 1\n    BI_COMPUTE        %1, %2, m0, m1, m3, m4, m5, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_epel_hX(int16_t *dst, ptrdiff_t dststride,\n;                       const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width);\n; ******************************\n\n\n%macro HEVC_PUT_HEVC_EPEL 2\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\ncglobal hevc_put_bi_epel_h%1_%2, 7, 8, XMM_REGS, dst, dststride, src, srcstride, src2, height, mx, rfilter\n%assign %%stride ((%2 + 7)/8)\n    movdqa            m6, [pw_bi_%2]\n    EPEL_FILTER       %2, mx, m4, m5, rfilter\n.loop:\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m4, m5, 1\n    SIMPLE_BILOAD     %1, src2q, m2, m3\n    BI_COMPUTE        %1, %2, m0, m1, m2, m3, m6, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void put_hevc_epel_v(int16_t *dst, ptrdiff_t dststride,\n;                      const uint8_t *_src, ptrdiff_t _srcstride,\n;                      int height, int mx, int my, int width)\n; ******************************\n\ncglobal hevc_put_bi_epel_v%1_%2, 6, 8, XMM_REGS, dst, dststride, src, srcstride, src2, height, r3src, my\n    movifnidn        myd, mym\n    movdqa            m6, [pw_bi_%2]\n    sub             srcq, srcstrideq\n    EPEL_FILTER       %2, my, m4, m5, r3src\n    lea           r3srcq, [srcstrideq*3]\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:20", "text": "add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void put_hevc_epel_v(int16_t *dst, ptrdiff_t dststride,\n;                      const uint8_t *_src, ptrdiff_t _srcstride,\n;                      int height, int mx, int my, int width)\n; ******************************\n\ncglobal hevc_put_bi_epel_v%1_%2, 6, 8, XMM_REGS, dst, dststride, src, srcstride, src2, height, r3src, my\n    movifnidn        myd, mym\n    movdqa            m6, [pw_bi_%2]\n    sub             srcq, srcstrideq\n    EPEL_FILTER       %2, my, m4, m5, r3src\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    EPEL_LOAD         %2, srcq, srcstride, %1\n    EPEL_COMPUTE      %2, %1, m4, m5, 1\n    SIMPLE_BILOAD     %1, src2q, m2, m3\n    BI_COMPUTE        %1, %2, m0, m1, m2, m3, m6, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_epel_hv(int16_t *dst, ptrdiff_t dststride,\n;                       const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width)\n; ******************************\n\n%macro HEVC_PUT_HEVC_EPEL_HV 2\n\ncglobal hevc_put_bi_epel_hv%1_%2, 8, 9, 16, dst, dststride, src, srcstride, src2, height, mx, my, r3src\n%assign %%stride ((%2 + 7)/8)\n    sub             srcq, srcstrideq\n    EPEL_HV_FILTER    %2\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:21", "text": "%macro HEVC_PUT_HEVC_EPEL_HV 2\n\ncglobal hevc_put_bi_epel_hv%1_%2, 8, 9, 16, dst, dststride, src, srcstride, src2, height, mx, my, r3src\n%assign %%stride ((%2 + 7)/8)\n    sub             srcq, srcstrideq\n    EPEL_HV_FILTER    %2\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %1 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    EPEL_COMPUTE      14, %1, m12, m13\n%if (%1 > 8 && (%2 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    EPEL_COMPUTE      14, %1, m12, m13, m4, m2, m8, m3\n    SIMPLE_BILOAD     %1, src2q, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m1, m8, xm3, 1\n    vperm2i128        m2, m8, m3, q0301\n    BI_COMPUTE        %1, %2, m0, m4, m1, m2, [pw_bi_%2]\n%else\n    BI_COMPUTE        %1, %2, m0, m4, m8, m3, [pw_bi_%2]\n%endif\n%else\n    SIMPLE_BILOAD     %1, src2q, m8, m9\n    BI_COMPUTE        %1, %2, m0, m1, m8, m9, [pw_bi_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:22", "text": "EPEL_COMPUTE      14, %1, m12, m13\n%if (%1 > 8 && (%2 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    EPEL_COMPUTE      14, %1, m12, m13, m4, m2, m8, m3\n    SIMPLE_BILOAD     %1, src2q, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m1, m8, xm3, 1\n    vperm2i128        m2, m8, m3, q0301\n    BI_COMPUTE        %1, %2, m0, m4, m1, m2, [pw_bi_%2]\n%else\n    BI_COMPUTE        %1, %2, m0, m4, m8, m3, [pw_bi_%2]\n%endif\n%else\n    SIMPLE_BILOAD     %1, src2q, m8, m9\n    BI_COMPUTE        %1, %2, m0, m1, m8, m9, [pw_bi_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m4\n    mova              m4, m5\n    mova              m5, m6\n    mova              m6, m7\n%if (%1 > 8 && (%2 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_hevc_qpel_hX_X_X(int16_t *dst, ptrdiff_t dststride,\n;                           const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width)\n; ******************************\n\n%macro HEVC_PUT_HEVC_QPEL 2\n\ncglobal hevc_put_bi_qpel_h%1_%2, 7, 8, 16 , dst, dststride, src, srcstride, src2, height, mx, rfilter\n    movdqa            m9, [pw_bi_%2]\n    QPEL_FILTER       %2, mx\n.loop:\n    QPEL_H_LOAD       %2, srcq, %1, 10\n    QPEL_COMPUTE      %1, %2, 1\n%if %2 > 8\n    packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:23", "text": "; ******************************\n\n%macro HEVC_PUT_HEVC_QPEL 2\n\ncglobal hevc_put_bi_qpel_h%1_%2, 7, 8, 16 , dst, dststride, src, srcstride, src2, height, mx, rfilter\n    movdqa            m9, [pw_bi_%2]\n    QPEL_FILTER       %2, mx\n.loop:\n    QPEL_H_LOAD       %2, srcq, %1, 10\n    QPEL_COMPUTE      %1, %2, 1\n%if %2 > 8\n    packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n\n; ******************************\n; void put_hevc_qpel_vX_X_X(int16_t *dst, ptrdiff_t dststride,\n;                           const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width)\n; ******************************\n\n\ncglobal hevc_put_bi_qpel_v%1_%2, 6, 10, 16, dst, dststride, src, srcstride, src2, height, r3src, my, rfilter\n    movifnidn        myd, mym\n    movdqa            m9, [pw_bi_%2]\n    lea           r3srcq, [srcstrideq*3]\n    QPEL_FILTER       %2, my\n.loop:\n    QPEL_V_LOAD       %2, srcq, srcstride, %1, r9\n    QPEL_COMPUTE      %1, %2, 1\n%if %2 > 8\n    packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_qpel_hvX_X(int16_t *dst, ptrdiff_t dststride,\n;                          const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my)\n; ******************************\n%macro HEVC_PUT_HEVC_QPEL_HV 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:24", "text": "packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_qpel_hvX_X(int16_t *dst, ptrdiff_t dststride,\n;                          const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my)\n; ******************************\n%macro HEVC_PUT_HEVC_QPEL_HV 2\n\ncglobal hevc_put_bi_qpel_hv%1_%2, 8, 10, 16, dst, dststride, src, srcstride, src2, height, mx, my, r3src, rfilter\n%if cpuflag(avx2)\n%assign %%shift  4\n%else\n%assign %%shift  3\n%endif\n    sub              mxq, 1\n    sub              myq, 1\n    shl              mxq, %%shift                ; multiply by 32\n    shl              myq, %%shift                ; multiply by 32\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m14, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:25", "text": "add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m14, m0\n    add             srcq, srcstrideq\n.loop:\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m15, m0\n    punpcklwd         m0, m8, m9\n    punpcklwd         m2, m10, m11\n    punpcklwd         m4, m12, m13\n    punpcklwd         m6, m14, m15\n%if %1 > 4\n    punpckhwd         m1, m8, m9\n    punpckhwd         m3, m10, m11\n    punpckhwd         m5, m12, m13\n    punpckhwd         m7, m14, m15\n%endif\n    QPEL_HV_COMPUTE   %1, 14, my, ackssdw\n    SIMPLE_BILOAD     %1, src2q, m8, m9 ;m9 not used in this case\n    BI_COMPUTE        %1, %2, m0, m1, m8, m9, [pw_bi_%2]\n    PEL_%2STORE%1   dstq, m0, m1\n\n%if %1 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    movdqa            m8, m9\n    movdqa            m9, m10\n    movdqa           m10, m11\n    movdqa           m11, m12\n    movdqa           m12, m13\n    movdqa           m13, m14\n    movdqa           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:26", "text": "%if %1 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    movdqa            m8, m9\n    movdqa            m9, m10\n    movdqa           m10, m11\n    movdqa           m11, m12\n    movdqa           m12, m13\n    movdqa           m13, m14\n    movdqa           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro WEIGHTING_FUNCS 2\n%if WIN64 || ARCH_X86_32\ncglobal hevc_put_uni_w%1_%2, 4, 5, 7, dst, dststride, src, height, denom, wx, ox\n    mov             r4d, denomm\n%define SHIFT  r4d\n%else\ncglobal hevc_put_uni_w%1_%2, 6, 6, 7, dst, dststride, src, height, denom, wx, ox\n%define SHIFT  denomd\n%endif\n    lea           SHIFT, [SHIFT+14-%2]          ; shift = 14 - bitd + denom\n%if %1 <= 4\n    pxor             m1, m1\n%endif\n    movd             m2, wxm        ; WX\n    movd             m4, SHIFT      ; shift\n%if %1 <= 4\n    punpcklwd        m2, m1\n%else\n    punpcklwd        m2, m2\n%endif\n    dec           SHIFT\n    movdqu           m5, [pd_1]\n    movd             m6, SHIFT\n    pshufd           m2, m2, 0\n    mov           SHIFT, oxm\n    pslld            m5, m6\n%if %2 != 8\n    shl           SHIFT, %2-8       ; ox << (bitd - 8)\n%endif\n    movd             m3, SHIFT      ; OX\n    pshufd           m3, m3, 0\n%if WIN64 || ARCH_X86_32\n    mov           SHIFT, heightm\n%endif\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:27", "text": "%if %1 <= 4\n    punpcklwd        m2, m1\n%else\n    punpcklwd        m2, m2\n%endif\n    dec           SHIFT\n    movdqu           m5, [pd_1]\n    movd             m6, SHIFT\n    pshufd           m2, m2, 0\n    mov           SHIFT, oxm\n    pslld            m5, m6\n%if %2 != 8\n    shl           SHIFT, %2-8       ; ox << (bitd - 8)\n%endif\n    movd             m3, SHIFT      ; OX\n    pshufd           m3, m3, 0\n%if WIN64 || ARCH_X86_32\n    mov           SHIFT, heightm\n%endif\n.loop:\n   SIMPLE_LOAD        %1, 10, srcq, m0\n%if %1 <= 4\n    punpcklwd         m0, m1\n    pmaddwd           m0, m2\n    paddd             m0, m5\n    psrad             m0, m4\n    paddd             m0, m3\n%else\n    pmulhw            m6, m0, m2\n    pmullw            m0, m2\n    punpckhwd         m1, m0, m6\n    punpcklwd         m0, m6\n    paddd             m0, m5\n    paddd             m1, m5\n    psrad             m0, m4\n    psrad             m1, m4\n    paddd             m0, m3\n    paddd             m1, m3\n%endif\n    packssdw          m0, m1\n%if %2 == 8\n    packuswb          m0, m0\n%else\n    CLIPW             m0, [pb_0], [max_pixels_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\ncglobal hevc_put_bi_w%1_%2, 4, 6, 10, dst, dststride, src, src2, height, denom, wx0, wx1, ox0, ox1\n    movifnidn        r5d, denomm\n%if %1 <= 4\n    pxor              m1, m1\n%endif\n    movd              m2, wx0m         ; WX0\n    lea              r5d, [r5d+14-%2]  ; shift = 14 - bitd + denom\n    movd              m3, wx1m         ; WX1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:28", "text": "%if %2 == 8\n    packuswb          m0, m0\n%else\n    CLIPW             m0, [pb_0], [max_pixels_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\ncglobal hevc_put_bi_w%1_%2, 4, 6, 10, dst, dststride, src, src2, height, denom, wx0, wx1, ox0, ox1\n    movifnidn        r5d, denomm\n%if %1 <= 4\n    pxor              m1, m1\n%endif\n    movd              m2, wx0m         ; WX0\n    lea              r5d, [r5d+14-%2]  ; shift = 14 - bitd + denom\n    movd              m3, wx1m         ; WX1\n    movd              m0, r5d          ; shift\n%if %1 <= 4\n    punpcklwd         m2, m1\n    punpcklwd         m3, m1\n%else\n    punpcklwd         m2, m2\n    punpcklwd         m3, m3\n%endif\n    inc              r5d\n    movd              m5, r5d          ; shift+1\n    pshufd            m2, m2, 0\n    mov              r5d, ox0m\n    pshufd            m3, m3, 0\n    add              r5d, ox1m\n%if %2 != 8\n    shl              r5d, %2-8         ; ox << (bitd - 8)\n%endif\n    inc              r5d\n    movd              m4, r5d          ; offset\n    pshufd            m4, m4, 0\n%if UNIX64\n%define h heightd\n%else\n    mov              r5d, heightm\n%define h r5d\n%endif\n    pslld             m4, m0\n\n.loop:\n   SIMPLE_LOAD        %1, 10, srcq,  m0\n   SIMPLE_LOAD        %1, 10, src2q, m8\n%if %1 <= 4\n    punpcklwd         m0, m1\n    punpcklwd         m8, m1\n    pmaddwd           m0, m3\n    pmaddwd           m8, m2\n    paddd             m0, m4\n    paddd             m0, m8\n    psrad             m0, m5\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:29", "text": "%if UNIX64\n%define h heightd\n%else\n    mov              r5d, heightm\n%define h r5d\n%endif\n    pslld             m4, m0\n\n.loop:\n   SIMPLE_LOAD        %1, 10, srcq,  m0\n   SIMPLE_LOAD        %1, 10, src2q, m8\n%if %1 <= 4\n    punpcklwd         m0, m1\n    punpcklwd         m8, m1\n    pmaddwd           m0, m3\n    pmaddwd           m8, m2\n    paddd             m0, m4\n    paddd             m0, m8\n    psrad             m0, m5\n%else\n    pmulhw            m6, m0, m3\n    pmullw            m0, m3\n    pmulhw            m7, m8, m2\n    pmullw            m8, m2\n    punpckhwd         m1, m0, m6\n    punpcklwd         m0, m6\n    punpckhwd         m9, m8, m7\n    punpcklwd         m8, m7\n    paddd             m0, m8\n    paddd             m1, m9\n    paddd             m0, m4\n    paddd             m1, m4\n    psrad             m0, m5\n    psrad             m1, m5\n%endif\n    packssdw          m0, m1\n%if %2 == 8\n    packuswb          m0, m0\n%else\n     CLIPW            m0, [pb_0], [max_pixels_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src2 += srcstride\n    dec                h                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\nINIT_XMM sse4                                    ; adds ff_ and _sse4 to function name\n\nWEIGHTING_FUNCS 4, 8\nWEIGHTING_FUNCS 6, 8\nWEIGHTING_FUNCS 8, 8\n\nWEIGHTING_FUNCS 4, 10\nWEIGHTING_FUNCS 6, 10\nWEIGHTING_FUNCS 8, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:30", "text": "%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src2 += srcstride\n    dec                h                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\nINIT_XMM sse4                                    ; adds ff_ and _sse4 to function name\n\nWEIGHTING_FUNCS 4, 8\nWEIGHTING_FUNCS 6, 8\nWEIGHTING_FUNCS 8, 8\n\nWEIGHTING_FUNCS 4, 10\nWEIGHTING_FUNCS 6, 10\nWEIGHTING_FUNCS 8, 10\n\nWEIGHTING_FUNCS 4, 12\nWEIGHTING_FUNCS 6, 12\nWEIGHTING_FUNCS 8, 12\n\nHEVC_BI_PEL_PIXELS  4, 8\nHEVC_BI_PEL_PIXELS  6, 8\nHEVC_BI_PEL_PIXELS  8, 8\nHEVC_BI_PEL_PIXELS 12, 8\nHEVC_BI_PEL_PIXELS 16, 8\n\nHEVC_BI_PEL_PIXELS 4, 10\nHEVC_BI_PEL_PIXELS 6, 10\nHEVC_BI_PEL_PIXELS 8, 10\n\nHEVC_BI_PEL_PIXELS 4, 12\nHEVC_BI_PEL_PIXELS 6, 12\nHEVC_BI_PEL_PIXELS 8, 12\n\nHEVC_PUT_HEVC_EPEL 4,  8\nHEVC_PUT_HEVC_EPEL 6,  8\nHEVC_PUT_HEVC_EPEL 8,  8\nHEVC_PUT_HEVC_EPEL 12, 8\nHEVC_PUT_HEVC_EPEL 16, 8\n\n\nHEVC_PUT_HEVC_EPEL 4, 10\nHEVC_PUT_HEVC_EPEL 6, 10\nHEVC_PUT_HEVC_EPEL 8, 10\n\nHEVC_PUT_HEVC_EPEL 4, 12\nHEVC_PUT_HEVC_EPEL 6, 12\nHEVC_PUT_HEVC_EPEL 8, 12\n\nHEVC_PUT_HEVC_EPEL_HV 4,  8\nHEVC_PUT_HEVC_EPEL_HV 6,  8\nHEVC_PUT_HEVC_EPEL_HV 8,  8\nHEVC_PUT_HEVC_EPEL_HV 16, 8\n\nHEVC_PUT_HEVC_EPEL_HV 4, 10\nHEVC_PUT_HEVC_EPEL_HV 6, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:31", "text": "HEVC_PUT_HEVC_EPEL 8,  8\nHEVC_PUT_HEVC_EPEL 12, 8\nHEVC_PUT_HEVC_EPEL 16, 8\n\n\nHEVC_PUT_HEVC_EPEL 4, 10\nHEVC_PUT_HEVC_EPEL 6, 10\nHEVC_PUT_HEVC_EPEL 8, 10\n\nHEVC_PUT_HEVC_EPEL 4, 12\nHEVC_PUT_HEVC_EPEL 6, 12\nHEVC_PUT_HEVC_EPEL 8, 12\n\nHEVC_PUT_HEVC_EPEL_HV 4,  8\nHEVC_PUT_HEVC_EPEL_HV 6,  8\nHEVC_PUT_HEVC_EPEL_HV 8,  8\nHEVC_PUT_HEVC_EPEL_HV 16, 8\n\nHEVC_PUT_HEVC_EPEL_HV 4, 10\nHEVC_PUT_HEVC_EPEL_HV 6, 10\nHEVC_PUT_HEVC_EPEL_HV 8, 10\n\nHEVC_PUT_HEVC_EPEL_HV 4, 12\nHEVC_PUT_HEVC_EPEL_HV 6, 12\nHEVC_PUT_HEVC_EPEL_HV 8, 12\n\nHEVC_PUT_HEVC_QPEL 4,  8\nHEVC_PUT_HEVC_QPEL 8,  8\nHEVC_PUT_HEVC_QPEL 12, 8\nHEVC_PUT_HEVC_QPEL 16, 8\n\nHEVC_PUT_HEVC_QPEL 4, 10\nHEVC_PUT_HEVC_QPEL 8, 10\n\nHEVC_PUT_HEVC_QPEL 4, 12\nHEVC_PUT_HEVC_QPEL 8, 12\n\nHEVC_PUT_HEVC_QPEL_HV 4, 8\nHEVC_PUT_HEVC_QPEL_HV 8, 8\n\nHEVC_PUT_HEVC_QPEL_HV 4, 10\nHEVC_PUT_HEVC_QPEL_HV 8, 10\n\nHEVC_PUT_HEVC_QPEL_HV 4, 12\nHEVC_PUT_HEVC_QPEL_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2  ; adds ff_ and _avx2 to function name & enables 256b registers : m0 for 256b, xm0 for 128b. cpuflag(avx2) = 1 / notcpuflag(avx) = 0\n\nHEVC_BI_PEL_PIXELS 32, 8\nHEVC_BI_PEL_PIXELS 16, 10\n\nHEVC_PUT_HEVC_EPEL 32, 8\nHEVC_PUT_HEVC_EPEL 16, 10\n\nHEVC_PUT_HEVC_EPEL_HV 16, 10\nHEVC_PUT_HEVC_EPEL_HV 32, 8\n\nHEVC_PUT_HEVC_QPEL 32, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1201, "line_end": 1260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:32", "text": "HEVC_PUT_HEVC_QPEL_HV 4, 10\nHEVC_PUT_HEVC_QPEL_HV 8, 10\n\nHEVC_PUT_HEVC_QPEL_HV 4, 12\nHEVC_PUT_HEVC_QPEL_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2  ; adds ff_ and _avx2 to function name & enables 256b registers : m0 for 256b, xm0 for 128b. cpuflag(avx2) = 1 / notcpuflag(avx) = 0\n\nHEVC_BI_PEL_PIXELS 32, 8\nHEVC_BI_PEL_PIXELS 16, 10\n\nHEVC_PUT_HEVC_EPEL 32, 8\nHEVC_PUT_HEVC_EPEL 16, 10\n\nHEVC_PUT_HEVC_EPEL_HV 16, 10\nHEVC_PUT_HEVC_EPEL_HV 32, 8\n\nHEVC_PUT_HEVC_QPEL 32, 8\n\nHEVC_PUT_HEVC_QPEL 16, 10\n\nHEVC_PUT_HEVC_QPEL_HV 16, 10\n\n%endif ;AVX2\n%endif ; ARCH_X86_64\n\n%macro QPEL_FILTER_H 5\n%define %%table hevc_qpel_filters_avx512icl_h_%1\n%assign %%offset 4\n    dec %2q\n    shl %2q, 3\n%if PIC\n    lea %5q, [%%table]\n    %define FILTER %5q\n%else\n    %define FILTER %%table\n%endif\n    vpbroadcastd m%3, [FILTER + %2q + 0*%%offset]\n    vpbroadcastd m%4, [FILTER + %2q + 1*%%offset]\n%endmacro\n\n%macro QPEL_FILTER_V 5\n    vpbroadcastd m%3, [%5 + %2q + 4*%4]\n%endmacro\n\n%macro QPEL_LOAD_SHUF 2\n    movu m%1, [pb_qpel_shuffle_index +  0]\n    movu m%2, [pb_qpel_shuffle_index + 64]\n%endmacro\n\n; required: m0-m5\n; %1: dst register index\n; %2: name for src\n; %3: optional offset\n%macro QPEL_H_LOAD_COMPUTE 2-3\n%assign %%offset 0\n%if %0 == 3\n%assign %%offset %3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1241, "line_end": 1300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:33", "text": "%endmacro\n\n%macro QPEL_FILTER_V 5\n    vpbroadcastd m%3, [%5 + %2q + 4*%4]\n%endmacro\n\n%macro QPEL_LOAD_SHUF 2\n    movu m%1, [pb_qpel_shuffle_index +  0]\n    movu m%2, [pb_qpel_shuffle_index + 64]\n%endmacro\n\n; required: m0-m5\n; %1: dst register index\n; %2: name for src\n; %3: optional offset\n%macro QPEL_H_LOAD_COMPUTE 2-3\n%assign %%offset 0\n%if %0 == 3\n%assign %%offset %3\n%endif\n    pxor            m%1, m%1\n%if mmsize == 64\n    movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else\n    vpmovdw          [dstq], m6\n%endif\n%if %1 > 16\n    QPEL_H_LOAD_COMPUTE   7, src, 16\n    vpmovdw     [dstq + 32], m7\n%endif\n%if %1 > 32\n    QPEL_H_LOAD_COMPUTE   6, src, 32\n    QPEL_H_LOAD_COMPUTE   7, src, 48\n    vpmovdw     [dstq + 64], m6\n    vpmovdw     [dstq + 96], m7\n%endif\n    LOOP_END            dst, src, srcstride\n    RET\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_HV_AVX512ICL 2\ncglobal hevc_put_qpel_hv%1_%2, 6, 7, 27, dst, src, srcstride, height, mx, my, tmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1281, "line_end": 1340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:34", "text": "movq             [dstq], xm6\n%else\n    vpmovdw          [dstq], m6\n%endif\n%if %1 > 16\n    QPEL_H_LOAD_COMPUTE   7, src, 16\n    vpmovdw     [dstq + 32], m7\n%endif\n%if %1 > 32\n    QPEL_H_LOAD_COMPUTE   6, src, 32\n    QPEL_H_LOAD_COMPUTE   7, src, 48\n    vpmovdw     [dstq + 64], m6\n    vpmovdw     [dstq + 96], m7\n%endif\n    LOOP_END            dst, src, srcstride\n    RET\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_HV_AVX512ICL 2\ncglobal hevc_put_qpel_hv%1_%2, 6, 7, 27, dst, src, srcstride, height, mx, my, tmp\n%assign %%shift 6\n%assign %%extra 7\n    QPEL_FILTER_H    %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF    2, 3\n    lea            tmpq, [srcstrideq*3]\n    sub            srcq, tmpq\n    sub             myq, 1\n    shl             myq, 5\n%define %%table hevc_qpel_filters_avx512icl_v_%1\n%if PIC\n    lea tmpq, [%%table]\n    %define FILTER tmpq\n%else\n    %define FILTER %%table\n%endif\n%assign %%i 6\n%assign %%j 0\n%rep %1\n    QPEL_FILTER_V %1, my, %%i, %%j, FILTER\n    %assign %%i %%i+1\n    %assign %%j %%j+1\n%endrep\n%rep %%extra\n    QPEL_H_LOAD_COMPUTE %%i, src\n    add srcq, srcstrideq\n%assign %%i %%i+1\n%endrep\n.loop:\n    QPEL_H_LOAD_COMPUTE %%i, src\n    vpmulld           m22, m14, m6\n    vpmulld           m23, m15, m7\n    vpmulld           m24, m16, m8\n    vpmulld           m25, m17, m9\n    vpaddd            m26, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpmulld           m22, m18, m10\n    vpmulld           m23, m19, m11\n    vpmulld           m24, m20, m12\n    vpmulld           m25, m21, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1321, "line_end": 1380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:35", "text": "%assign %%j %%j+1\n%endrep\n%rep %%extra\n    QPEL_H_LOAD_COMPUTE %%i, src\n    add srcq, srcstrideq\n%assign %%i %%i+1\n%endrep\n.loop:\n    QPEL_H_LOAD_COMPUTE %%i, src\n    vpmulld           m22, m14, m6\n    vpmulld           m23, m15, m7\n    vpmulld           m24, m16, m8\n    vpmulld           m25, m17, m9\n    vpaddd            m26, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpmulld           m22, m18, m10\n    vpmulld           m23, m19, m11\n    vpmulld           m24, m20, m12\n    vpmulld           m25, m21, m13\n    vpaddd            m22, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpaddd            m22, m26\n    mova              m14, m15\n    mova              m15, m16\n    mova              m16, m17\n    mova              m17, m18\n    mova              m18, m19\n    mova              m19, m20\n    mova              m20, m21\n    vpsrad            m22, %%shift\n    vpmovdw        [dstq], m22\n    LOOP_END          dst, src, srcstride\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\n\nINIT_XMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 4, 8\n\nINIT_YMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 8, 8\nHEVC_PUT_HEVC_QPEL_HV_AVX512ICL 8, 8\n\nINIT_ZMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 16, 8\nHEVC_PUT_HEVC_QPEL_AVX512ICL 32, 8\nHEVC_PUT_HEVC_QPEL_AVX512ICL 64, 8\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1361, "line_end": 1415}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:36", "text": "INIT_XMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 4, 8\n\nINIT_YMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 8, 8\nHEVC_PUT_HEVC_QPEL_HV_AVX512ICL 8, 8\n\nINIT_ZMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 16, 8\nHEVC_PUT_HEVC_QPEL_AVX512ICL 32, 8\nHEVC_PUT_HEVC_QPEL_AVX512ICL 64, 8\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/mc.asm", "line_start": 1401, "line_end": 1415}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:29", "text": "%if UNIX64\n%define h heightd\n%else\n    mov              r5d, heightm\n%define h r5d\n%endif\n    pslld             m4, m0\n\n.loop:\n   SIMPLE_LOAD        %1, 10, srcq,  m0\n   SIMPLE_LOAD        %1, 10, src2q, m8\n%if %1 <= 4\n    punpcklwd         m0, m1\n    punpcklwd         m8, m1\n    pmaddwd           m0, m3\n    pmaddwd           m8, m2\n    paddd             m0, m4\n    paddd             m0, m8\n    psrad             m0, m5\n%else\n    pmulhw            m6, m0, m3\n    pmullw            m0, m3\n    pmulhw            m7, m8, m2\n    pmullw            m8, m2\n    punpckhwd         m1, m0, m6\n    punpcklwd         m0, m6\n    punpckhwd         m9, m8, m7\n    punpcklwd         m8, m7\n    paddd             m0, m8\n    paddd             m1, m9\n    paddd             m0, m4\n    paddd             m1, m4\n    psrad             m0, m5\n    psrad             m1, m5\n%endif\n    packssdw          m0, m1\n%if %2 == 8\n    packuswb          m0, m0\n%else\n     CLIPW            m0, [pb_0], [max_pixels_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src2 += srcstride\n    dec                h                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\nINIT_XMM sse4                                    ; adds ff_ and _sse4 to function name\n\nWEIGHTING_FUNCS 2, 8\nWEIGHTING_FUNCS 4, 8\nWEIGHTING_FUNCS 6, 8\nWEIGHTING_FUNCS 8, 8\n\nWEIGHTING_FUNCS 2, 10\nWEIGHTING_FUNCS 4, 10\nWEIGHTING_FUNCS 6, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:30", "text": "%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src2 += srcstride\n    dec                h                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\nINIT_XMM sse4                                    ; adds ff_ and _sse4 to function name\n\nWEIGHTING_FUNCS 2, 8\nWEIGHTING_FUNCS 4, 8\nWEIGHTING_FUNCS 6, 8\nWEIGHTING_FUNCS 8, 8\n\nWEIGHTING_FUNCS 2, 10\nWEIGHTING_FUNCS 4, 10\nWEIGHTING_FUNCS 6, 10\nWEIGHTING_FUNCS 8, 10\n\nWEIGHTING_FUNCS 2, 12\nWEIGHTING_FUNCS 4, 12\nWEIGHTING_FUNCS 6, 12\nWEIGHTING_FUNCS 8, 12\n\nHEVC_BI_PEL_PIXELS  2, 8\nHEVC_BI_PEL_PIXELS  4, 8\nHEVC_BI_PEL_PIXELS  6, 8\nHEVC_BI_PEL_PIXELS  8, 8\nHEVC_BI_PEL_PIXELS 12, 8\nHEVC_BI_PEL_PIXELS 16, 8\n\nHEVC_BI_PEL_PIXELS 2, 10\nHEVC_BI_PEL_PIXELS 4, 10\nHEVC_BI_PEL_PIXELS 6, 10\nHEVC_BI_PEL_PIXELS 8, 10\n\nHEVC_BI_PEL_PIXELS 2, 12\nHEVC_BI_PEL_PIXELS 4, 12\nHEVC_BI_PEL_PIXELS 6, 12\nHEVC_BI_PEL_PIXELS 8, 12\n\nHEVC_PUT_HEVC_EPEL 2,  8\nHEVC_PUT_HEVC_EPEL 4,  8\nHEVC_PUT_HEVC_EPEL 6,  8\nHEVC_PUT_HEVC_EPEL 8,  8\nHEVC_PUT_HEVC_EPEL 12, 8\nHEVC_PUT_HEVC_EPEL 16, 8\n\n\nHEVC_PUT_HEVC_EPEL 2, 10\nHEVC_PUT_HEVC_EPEL 4, 10\nHEVC_PUT_HEVC_EPEL 6, 10\nHEVC_PUT_HEVC_EPEL 8, 10\n\nHEVC_PUT_HEVC_EPEL 2, 12\nHEVC_PUT_HEVC_EPEL 4, 12\nHEVC_PUT_HEVC_EPEL 6, 12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:31", "text": "HEVC_BI_PEL_PIXELS 4, 12\nHEVC_BI_PEL_PIXELS 6, 12\nHEVC_BI_PEL_PIXELS 8, 12\n\nHEVC_PUT_HEVC_EPEL 2,  8\nHEVC_PUT_HEVC_EPEL 4,  8\nHEVC_PUT_HEVC_EPEL 6,  8\nHEVC_PUT_HEVC_EPEL 8,  8\nHEVC_PUT_HEVC_EPEL 12, 8\nHEVC_PUT_HEVC_EPEL 16, 8\n\n\nHEVC_PUT_HEVC_EPEL 2, 10\nHEVC_PUT_HEVC_EPEL 4, 10\nHEVC_PUT_HEVC_EPEL 6, 10\nHEVC_PUT_HEVC_EPEL 8, 10\n\nHEVC_PUT_HEVC_EPEL 2, 12\nHEVC_PUT_HEVC_EPEL 4, 12\nHEVC_PUT_HEVC_EPEL 6, 12\nHEVC_PUT_HEVC_EPEL 8, 12\n\nHEVC_PUT_HEVC_EPEL_HV 2,  8\nHEVC_PUT_HEVC_EPEL_HV 4,  8\nHEVC_PUT_HEVC_EPEL_HV 6,  8\nHEVC_PUT_HEVC_EPEL_HV 8,  8\nHEVC_PUT_HEVC_EPEL_HV 16, 8\n\nHEVC_PUT_HEVC_EPEL_HV 2, 10\nHEVC_PUT_HEVC_EPEL_HV 4, 10\nHEVC_PUT_HEVC_EPEL_HV 6, 10\nHEVC_PUT_HEVC_EPEL_HV 8, 10\n\nHEVC_PUT_HEVC_EPEL_HV 2, 12\nHEVC_PUT_HEVC_EPEL_HV 4, 12\nHEVC_PUT_HEVC_EPEL_HV 6, 12\nHEVC_PUT_HEVC_EPEL_HV 8, 12\n\nHEVC_PUT_HEVC_QPEL 4,  8\nHEVC_PUT_HEVC_QPEL 8,  8\nHEVC_PUT_HEVC_QPEL 12, 8\nHEVC_PUT_HEVC_QPEL 16, 8\n\nHEVC_PUT_HEVC_QPEL 4, 10\nHEVC_PUT_HEVC_QPEL 8, 10\n\nHEVC_PUT_HEVC_QPEL 4, 12\nHEVC_PUT_HEVC_QPEL 8, 12\n\nHEVC_PUT_HEVC_QPEL_HV 2, 8\nHEVC_PUT_HEVC_QPEL_HV 4, 8\nHEVC_PUT_HEVC_QPEL_HV 6, 8\nHEVC_PUT_HEVC_QPEL_HV 8, 8\n\nHEVC_PUT_HEVC_QPEL_HV 2, 10\nHEVC_PUT_HEVC_QPEL_HV 4, 10\nHEVC_PUT_HEVC_QPEL_HV 6, 10\nHEVC_PUT_HEVC_QPEL_HV 8, 10\n\nHEVC_PUT_HEVC_QPEL_HV 2, 12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1201, "line_end": 1260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:32", "text": "HEVC_PUT_HEVC_QPEL 12, 8\nHEVC_PUT_HEVC_QPEL 16, 8\n\nHEVC_PUT_HEVC_QPEL 4, 10\nHEVC_PUT_HEVC_QPEL 8, 10\n\nHEVC_PUT_HEVC_QPEL 4, 12\nHEVC_PUT_HEVC_QPEL 8, 12\n\nHEVC_PUT_HEVC_QPEL_HV 2, 8\nHEVC_PUT_HEVC_QPEL_HV 4, 8\nHEVC_PUT_HEVC_QPEL_HV 6, 8\nHEVC_PUT_HEVC_QPEL_HV 8, 8\n\nHEVC_PUT_HEVC_QPEL_HV 2, 10\nHEVC_PUT_HEVC_QPEL_HV 4, 10\nHEVC_PUT_HEVC_QPEL_HV 6, 10\nHEVC_PUT_HEVC_QPEL_HV 8, 10\n\nHEVC_PUT_HEVC_QPEL_HV 2, 12\nHEVC_PUT_HEVC_QPEL_HV 4, 12\nHEVC_PUT_HEVC_QPEL_HV 6, 12\nHEVC_PUT_HEVC_QPEL_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2  ; adds ff_ and _avx2 to function name & enables 256b registers : m0 for 256b, xm0 for 128b. cpuflag(avx2) = 1 / notcpuflag(avx) = 0\n\nHEVC_BI_PEL_PIXELS 32, 8\nHEVC_BI_PEL_PIXELS 16, 10\n\nHEVC_PUT_HEVC_EPEL 32, 8\nHEVC_PUT_HEVC_EPEL 16, 10\n\nHEVC_PUT_HEVC_EPEL_HV 16, 10\nHEVC_PUT_HEVC_EPEL_HV 32, 8\n\nHEVC_PUT_HEVC_QPEL 32, 8\n\nHEVC_PUT_HEVC_QPEL 16, 10\n\nHEVC_PUT_HEVC_QPEL_HV 16, 10\n\n%endif ;AVX2\n%endif ; ARCH_X86_64\n\n%macro QPEL_FILTER_H 5\n%define %%table hevc_qpel_filters_avx512icl_h_%1\n%assign %%offset 4\n    dec %2q\n    shl %2q, 3\n%if PIC\n    lea %5q, [%%table]\n    %define FILTER %5q\n%else\n    %define FILTER %%table\n%endif\n    vpbroadcastd m%3, [FILTER + %2q + 0*%%offset]\n    vpbroadcastd m%4, [FILTER + %2q + 1*%%offset]\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1241, "line_end": 1300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:33", "text": "HEVC_PUT_HEVC_QPEL_HV 16, 10\n\n%endif ;AVX2\n%endif ; ARCH_X86_64\n\n%macro QPEL_FILTER_H 5\n%define %%table hevc_qpel_filters_avx512icl_h_%1\n%assign %%offset 4\n    dec %2q\n    shl %2q, 3\n%if PIC\n    lea %5q, [%%table]\n    %define FILTER %5q\n%else\n    %define FILTER %%table\n%endif\n    vpbroadcastd m%3, [FILTER + %2q + 0*%%offset]\n    vpbroadcastd m%4, [FILTER + %2q + 1*%%offset]\n%endmacro\n\n%macro QPEL_FILTER_V 5\n    vpbroadcastd m%3, [%5 + %2q + 4*%4]\n%endmacro\n\n%macro QPEL_LOAD_SHUF 2\n    movu m%1, [pb_qpel_shuffle_index +  0]\n    movu m%2, [pb_qpel_shuffle_index + 64]\n%endmacro\n\n; required: m0-m5\n; %1: dst register index\n; %2: name for src\n; %3: optional offset\n%macro QPEL_H_LOAD_COMPUTE 2-3\n%assign %%offset 0\n%if %0 == 3\n%assign %%offset %3\n%endif\n    pxor            m%1, m%1\n%if mmsize == 64\n    movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1281, "line_end": 1340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:34", "text": "movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else\n    vpmovdw          [dstq], m6\n%endif\n%if %1 > 16\n    QPEL_H_LOAD_COMPUTE   7, src, 16\n    vpmovdw     [dstq + 32], m7\n%endif\n%if %1 > 32\n    QPEL_H_LOAD_COMPUTE   6, src, 32\n    QPEL_H_LOAD_COMPUTE   7, src, 48\n    vpmovdw     [dstq + 64], m6\n    vpmovdw     [dstq + 96], m7\n%endif\n    LOOP_END            dst, src, srcstride\n    RET\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_HV_AVX512ICL 2\ncglobal hevc_put_qpel_hv%1_%2, 6, 7, 27, dst, src, srcstride, height, mx, my, tmp\n%assign %%shift 6\n%assign %%extra 7\n    QPEL_FILTER_H    %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF    2, 3\n    lea            tmpq, [srcstrideq*3]\n    sub            srcq, tmpq\n    sub             myq, 1\n    shl             myq, 5\n%define %%table hevc_qpel_filters_avx512icl_v_%1\n%if PIC\n    lea tmpq, [%%table]\n    %define FILTER tmpq\n%else\n    %define FILTER %%table\n%endif\n%assign %%i 6\n%assign %%j 0\n%rep %1\n    QPEL_FILTER_V %1, my, %%i, %%j, FILTER\n    %assign %%i %%i+1\n    %assign %%j %%j+1\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1321, "line_end": 1380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:35", "text": "QPEL_FILTER_H    %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF    2, 3\n    lea            tmpq, [srcstrideq*3]\n    sub            srcq, tmpq\n    sub             myq, 1\n    shl             myq, 5\n%define %%table hevc_qpel_filters_avx512icl_v_%1\n%if PIC\n    lea tmpq, [%%table]\n    %define FILTER tmpq\n%else\n    %define FILTER %%table\n%endif\n%assign %%i 6\n%assign %%j 0\n%rep %1\n    QPEL_FILTER_V %1, my, %%i, %%j, FILTER\n    %assign %%i %%i+1\n    %assign %%j %%j+1\n%endrep\n%rep %%extra\n    QPEL_H_LOAD_COMPUTE %%i, src\n    add srcq, srcstrideq\n%assign %%i %%i+1\n%endrep\n.loop:\n    QPEL_H_LOAD_COMPUTE %%i, src\n    vpmulld           m22, m14, m6\n    vpmulld           m23, m15, m7\n    vpmulld           m24, m16, m8\n    vpmulld           m25, m17, m9\n    vpaddd            m26, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpmulld           m22, m18, m10\n    vpmulld           m23, m19, m11\n    vpmulld           m24, m20, m12\n    vpmulld           m25, m21, m13\n    vpaddd            m22, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpaddd            m22, m26\n    mova              m14, m15\n    mova              m15, m16\n    mova              m16, m17\n    mova              m17, m18\n    mova              m18, m19\n    mova              m19, m20\n    mova              m20, m21\n    vpsrad            m22, %%shift\n    vpmovdw        [dstq], m22\n    LOOP_END          dst, src, srcstride\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\n\nINIT_XMM avx512icl", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1361, "line_end": 1420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/mc.asm:36", "text": "vpaddd            m26, m24\n    vpaddd            m22, m26\n    mova              m14, m15\n    mova              m15, m16\n    mova              m16, m17\n    mova              m17, m18\n    mova              m18, m19\n    mova              m19, m20\n    mova              m20, m21\n    vpsrad            m22, %%shift\n    vpmovdw        [dstq], m22\n    LOOP_END          dst, src, srcstride\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\n\nINIT_XMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 4, 8\n\nINIT_YMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 8, 8\nHEVC_PUT_HEVC_QPEL_HV_AVX512ICL 8, 8\n\nINIT_ZMM avx512icl\nHEVC_PUT_HEVC_QPEL_AVX512ICL 16, 8\nHEVC_PUT_HEVC_QPEL_AVX512ICL 32, 8\nHEVC_PUT_HEVC_QPEL_AVX512ICL 64, 8\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/mc.asm", "license": "LGPL-2.1", "commit": "2da40904f3997358156b4f80e8882de632d5fd00", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2da40904f3997358156b4f80e8882de632d5fd00/libavcodec/x86/hevc/mc.asm", "line_start": 1401, "line_end": 1433}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC 8bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define MAX_PB_SIZE  64\n%include \"libavcodec/x86/h26x/h2656_sao.asm\"\n\n%macro HEVC_SAO_BAND_FILTER 2\n    H2656_SAO_BAND_FILTER hevc, %1, %2\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 0\nHEVC_SAO_BAND_FILTER  8, 0\nHEVC_SAO_BAND_FILTER 16, 1\nHEVC_SAO_BAND_FILTER 32, 2\nHEVC_SAO_BAND_FILTER 48, 2\nHEVC_SAO_BAND_FILTER 64, 4\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER  8, 0\nHEVC_SAO_BAND_FILTER 16, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 32, 1\nHEVC_SAO_BAND_FILTER 48, 1\nHEVC_SAO_BAND_FILTER 64, 2\n%endif\n\n%macro HEVC_SAO_EDGE_FILTER 2-3\n    H2656_SAO_EDGE_FILTER hevc, %{1:-1}\n%endmacro\n\nINIT_XMM ssse3\nHEVC_SAO_EDGE_FILTER  8, 0\nHEVC_SAO_EDGE_FILTER 16, 1, a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/sao.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao.asm:2", "text": "INIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER  8, 0\nHEVC_SAO_BAND_FILTER 16, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 32, 1\nHEVC_SAO_BAND_FILTER 48, 1\nHEVC_SAO_BAND_FILTER 64, 2\n%endif\n\n%macro HEVC_SAO_EDGE_FILTER 2-3\n    H2656_SAO_EDGE_FILTER hevc, %{1:-1}\n%endmacro\n\nINIT_XMM ssse3\nHEVC_SAO_EDGE_FILTER  8, 0\nHEVC_SAO_EDGE_FILTER 16, 1, a\nHEVC_SAO_EDGE_FILTER 32, 2, a\nHEVC_SAO_EDGE_FILTER 48, 2, a\nHEVC_SAO_EDGE_FILTER 64, 4, a\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 32, 1, a\nHEVC_SAO_EDGE_FILTER 48, 1, u\nHEVC_SAO_EDGE_FILTER 64, 2, a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/sao.asm", "line_start": 41, "line_end": 70}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao_10bit.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC 10/12bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define MAX_PB_SIZE  64\n%include \"libavcodec/x86/h26x/h2656_sao_10bit.asm\"\n\n%macro HEVC_SAO_BAND_FILTER 3\n    H2656_SAO_BAND_FILTER hevc, %1, %2, %3\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 1\n    HEVC_SAO_BAND_FILTER %1,  8, 1\n    HEVC_SAO_BAND_FILTER %1, 16, 2\n    HEVC_SAO_BAND_FILTER %1, 32, 4\n    HEVC_SAO_BAND_FILTER %1, 48, 6\n    HEVC_SAO_BAND_FILTER %1, 64, 8\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 0\n    HEVC_SAO_BAND_FILTER_FUNCS 10\n    HEVC_SAO_BAND_FILTER_FUNCS 12\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    HEVC_SAO_BAND_FILTER %1,  8, 1\n    INIT_YMM avx2\n    HEVC_SAO_BAND_FILTER %1, 16, 1\n    HEVC_SAO_BAND_FILTER %1, 32, 2\n    HEVC_SAO_BAND_FILTER %1, 48, 3\n    HEVC_SAO_BAND_FILTER %1, 64, 4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/sao_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao_10bit.asm:2", "text": "HEVC_SAO_BAND_FILTER_FUNCS 12\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    HEVC_SAO_BAND_FILTER %1,  8, 1\n    INIT_YMM avx2\n    HEVC_SAO_BAND_FILTER %1, 16, 1\n    HEVC_SAO_BAND_FILTER %1, 32, 2\n    HEVC_SAO_BAND_FILTER %1, 48, 3\n    HEVC_SAO_BAND_FILTER %1, 64, 4\n%endmacro\n\n    HEVC_SAO_BAND_FILTER_FUNCS_AVX2 10\n    HEVC_SAO_BAND_FILTER_FUNCS_AVX2 12\n\n%endif\n\n%macro HEVC_SAO_EDGE_FILTER 3\n    H2656_SAO_EDGE_FILTER hevc, %1, %2, %3\n%endmacro\n\n%macro HEVC_SAO_EDGE_FILTER_FUNCS 1\n    HEVC_SAO_EDGE_FILTER %1,  8, 1\n    HEVC_SAO_EDGE_FILTER %1, 16, 2\n    HEVC_SAO_EDGE_FILTER %1, 32, 4\n    HEVC_SAO_EDGE_FILTER %1, 48, 6\n    HEVC_SAO_EDGE_FILTER %1, 64, 8\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_EDGE_FILTER_FUNCS 10\nHEVC_SAO_EDGE_FILTER_FUNCS 12\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro HEVC_SAO_EDGE_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    HEVC_SAO_EDGE_FILTER %1,  8, 1\n    INIT_YMM avx2\n    HEVC_SAO_EDGE_FILTER %1, 16, 1\n    HEVC_SAO_EDGE_FILTER %1, 32, 2\n    HEVC_SAO_EDGE_FILTER %1, 48, 3\n    HEVC_SAO_EDGE_FILTER %1, 64, 4\n%endmacro\n\nHEVC_SAO_EDGE_FILTER_FUNCS_AVX2 10\nHEVC_SAO_EDGE_FILTER_FUNCS_AVX2 12\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/sao_10bit.asm", "line_start": 41, "line_end": 97}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao_10bit.asm:3", "text": "%if HAVE_AVX2_EXTERNAL\n\n%macro HEVC_SAO_EDGE_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    HEVC_SAO_EDGE_FILTER %1,  8, 1\n    INIT_YMM avx2\n    HEVC_SAO_EDGE_FILTER %1, 16, 1\n    HEVC_SAO_EDGE_FILTER %1, 32, 2\n    HEVC_SAO_EDGE_FILTER %1, 48, 3\n    HEVC_SAO_EDGE_FILTER %1, 64, 4\n%endmacro\n\nHEVC_SAO_EDGE_FILTER_FUNCS_AVX2 10\nHEVC_SAO_EDGE_FILTER_FUNCS_AVX2 12\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hevc/sao_10bit.asm", "line_start": 81, "line_end": 97}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao_10bit.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC 10/12bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define MAX_PB_SIZE  64\n%include \"libavcodec/x86/h26x/h2656_sao_10bit.asm\"\n\n%macro HEVC_SAO_BAND_FILTER 3\n    H2656_SAO_BAND_FILTER hevc, %1, %2, %3\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 0\nHEVC_SAO_BAND_FILTER 10,  8, 1\nHEVC_SAO_BAND_FILTER 10, 16, 2\nHEVC_SAO_BAND_FILTER 10, 32, 4\nHEVC_SAO_BAND_FILTER 10, 48, 6\nHEVC_SAO_BAND_FILTER 10, 64, 8\n\nHEVC_SAO_BAND_FILTER 12,  8, 1\nHEVC_SAO_BAND_FILTER 12, 16, 2\nHEVC_SAO_BAND_FILTER 12, 32, 4\nHEVC_SAO_BAND_FILTER 12, 48, 6\nHEVC_SAO_BAND_FILTER 12, 64, 8\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 10, 16, 1\nHEVC_SAO_BAND_FILTER 10, 32, 2\nHEVC_SAO_BAND_FILTER 10, 48, 3\nHEVC_SAO_BAND_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 12,  8, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/hevc/sao_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao_10bit.asm:2", "text": "HEVC_SAO_BAND_FILTER 12, 48, 6\nHEVC_SAO_BAND_FILTER 12, 64, 8\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 10, 16, 1\nHEVC_SAO_BAND_FILTER 10, 32, 2\nHEVC_SAO_BAND_FILTER 10, 48, 3\nHEVC_SAO_BAND_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 12,  8, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 12, 16, 1\nHEVC_SAO_BAND_FILTER 12, 32, 2\nHEVC_SAO_BAND_FILTER 12, 48, 3\nHEVC_SAO_BAND_FILTER 12, 64, 4\n%endif\n\n%macro HEVC_SAO_EDGE_FILTER 3\n    H2656_SAO_EDGE_FILTER hevc, %1, %2, %3\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_EDGE_FILTER 10,  8, 1\nHEVC_SAO_EDGE_FILTER 10, 16, 2\nHEVC_SAO_EDGE_FILTER 10, 32, 4\nHEVC_SAO_EDGE_FILTER 10, 48, 6\nHEVC_SAO_EDGE_FILTER 10, 64, 8\n\nHEVC_SAO_EDGE_FILTER 12,  8, 1\nHEVC_SAO_EDGE_FILTER 12, 16, 2\nHEVC_SAO_EDGE_FILTER 12, 32, 4\nHEVC_SAO_EDGE_FILTER 12, 48, 6\nHEVC_SAO_EDGE_FILTER 12, 64, 8\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 10, 16, 1\nHEVC_SAO_EDGE_FILTER 10, 32, 2\nHEVC_SAO_EDGE_FILTER 10, 48, 3\nHEVC_SAO_EDGE_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 12,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 12, 16, 1\nHEVC_SAO_EDGE_FILTER 12, 32, 2\nHEVC_SAO_EDGE_FILTER 12, 48, 3\nHEVC_SAO_EDGE_FILTER 12, 64, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/hevc/sao_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc/sao_10bit.asm:3", "text": "HEVC_SAO_EDGE_FILTER 12, 32, 4\nHEVC_SAO_EDGE_FILTER 12, 48, 6\nHEVC_SAO_EDGE_FILTER 12, 64, 8\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 10, 16, 1\nHEVC_SAO_EDGE_FILTER 10, 32, 2\nHEVC_SAO_EDGE_FILTER 10, 48, 3\nHEVC_SAO_EDGE_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 12,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 12, 16, 1\nHEVC_SAO_EDGE_FILTER 12, 32, 2\nHEVC_SAO_EDGE_FILTER 12, 48, 3\nHEVC_SAO_EDGE_FILTER 12, 64, 4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "dbd859a1866f287021b40b2cf6b66d11f130c25a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dbd859a1866f287021b40b2cf6b66d11f130c25a/libavcodec/x86/hevc/sao_10bit.asm", "line_start": 81, "line_end": 101}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:3", "text": "movhps       [r0+r2], m0\n    movq       [r0+r2*2], m2\n    movhps       [r0+r3], m2\n%endmacro\n\n%macro ADD_RES_SSE_16_32_8 3\n    mova              m1, [%2]\n    mova              m2, m1\n    punpcklbw         m1, m0\n    punpckhbw         m2, m0\n    mova             xm5, [r1+%1]\n    mova             xm6, [r1+%1+16]\n%if cpuflag(avx2)\n    vinserti128       m5, m5, [r1+%1+32], 1\n    vinserti128       m6, m6, [r1+%1+48], 1\n%endif\n    paddsw            m1, m5\n    paddsw            m2, m6\n\n    mova              m3, [%3]\n    mova              m4, m3\n    punpcklbw         m3, m0\n    punpckhbw         m4, m0\n    mova             xm5, [r1+%1+mmsize*2]\n    mova             xm6, [r1+%1+mmsize*2+16]\n%if cpuflag(avx2)\n    vinserti128       m5, m5, [r1+%1+96], 1\n    vinserti128       m6, m6, [r1+%1+112], 1\n%endif\n    paddsw            m3, m5\n    paddsw            m4, m6\n\n    packuswb          m1, m2\n    packuswb          m3, m4\n    mova            [%2], m1\n    mova            [%3], m3\n%endmacro\n\n\n%macro TRANSFORM_ADD_8 0\n; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 8\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8\n    add               r1, 64\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 7\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:4", "text": "; void ff_hevc_add_residual_8_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_8_8, 3, 4, 8\n    pxor              m4, m4\n    lea               r3, [r2*3]\n    ADD_RES_SSE_8_8\n    add               r1, 64\n    lea               r0, [r0+r2*4]\n    ADD_RES_SSE_8_8\n    RET\n\n; void ff_hevc_add_residual_16_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_16_8, 3, 5, 7\n    pxor                m0, m0\n    lea                 r3, [r2*3]\n    mov                r4d, 4\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 64, r0+r2*2, r0+r3\n    add                 r1, 128\n    lea                 r0, [r0+r2*4]\n    dec                r4d\n    jg .loop\n    RET\n\n; void ff_hevc_add_residual_32_8_<opt>(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                m0, m0\n    mov                r4d, 16\n.loop:\n    ADD_RES_SSE_16_32_8  0, r0,    r0+16\n    ADD_RES_SSE_16_32_8 64, r0+r2, r0+r2+16\n    add                 r1, 128\n    lea                 r0, [r0+r2*2]\n    dec                r4d\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nTRANSFORM_ADD_8\nINIT_XMM avx\nTRANSFORM_ADD_8\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:5", "text": "INIT_XMM avx\nTRANSFORM_ADD_8\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n; void ff_hevc_add_residual_32_8_avx2(uint8_t *dst, const int16_t *res, ptrdiff_t stride)\ncglobal hevc_add_residual_32_8, 3, 5, 7\n    pxor                 m0, m0\n    lea                  r3, [r2*3]\n    mov                 r4d, 8\n.loop:\n    ADD_RES_SSE_16_32_8   0, r0,      r0+r2\n    ADD_RES_SSE_16_32_8 128, r0+r2*2, r0+r3\n    add                  r1, 256\n    lea                  r0, [r0+r2*4]\n    dec                 r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL\n\n%macro ADD_RES_SSE_8_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+16]\n    mova              m2, [%4+32]\n    mova              m3, [%4+48]\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_MMX_4_10 3\n    mova              m0, [%1+0]\n    mova              m1, [%1+%2]\n    paddw             m0, [%3]\n    paddw             m1, [%3+8]\n    CLIPW             m0, m2, m3\n    CLIPW             m1, m2, m3\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n%endmacro\n\n%macro ADD_RES_SSE_16_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+16]\n    mova              m2, [%3+32]\n    mova              m3, [%3+48]\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+16]\n    CLIPW             m0, m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:6", "text": "mova              m0, [%1+0]\n    mova              m1, [%1+%2]\n    paddw             m0, [%3]\n    paddw             m1, [%3+8]\n    CLIPW             m0, m2, m3\n    CLIPW             m1, m2, m3\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n%endmacro\n\n%macro ADD_RES_SSE_16_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+16]\n    mova              m2, [%3+32]\n    mova              m3, [%3+48]\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+16]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+16], m3\n%endmacro\n\n%macro ADD_RES_SSE_32_10 2\n    mova              m0, [%2]\n    mova              m1, [%2+16]\n    mova              m2, [%2+32]\n    mova              m3, [%2+48]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+16]\n    paddw             m2, [%1+32]\n    paddw             m3, [%1+48]\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:7", "text": "CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+16], m1\n    mova         [%1+32], m2\n    mova         [%1+48], m3\n%endmacro\n\n%macro ADD_RES_AVX2_16_10 4\n    mova              m0, [%4]\n    mova              m1, [%4+32]\n    mova              m2, [%4+64]\n    mova              m3, [%4+96]\n\n    paddw             m0, [%1+0]\n    paddw             m1, [%1+%2]\n    paddw             m2, [%1+%2*2]\n    paddw             m3, [%1+%3]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova          [%1+0], m0\n    mova         [%1+%2], m1\n    mova       [%1+%2*2], m2\n    mova         [%1+%3], m3\n%endmacro\n\n%macro ADD_RES_AVX2_32_10 3\n    mova              m0, [%3]\n    mova              m1, [%3+32]\n    mova              m2, [%3+64]\n    mova              m3, [%3+96]\n\n    paddw             m0, [%1]\n    paddw             m1, [%1+32]\n    paddw             m2, [%1+%2]\n    paddw             m3, [%1+%2+32]\n\n    CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    add               r1, 16\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:8", "text": "CLIPW             m0, m4, m5\n    CLIPW             m1, m4, m5\n    CLIPW             m2, m4, m5\n    CLIPW             m3, m4, m5\n    mova            [%1], m0\n    mova         [%1+32], m1\n    mova         [%1+%2], m2\n    mova      [%1+%2+32], m3\n%endmacro\n\n; void ff_hevc_add_residual_<4|8|16|32>_10(pixel *dst, const int16_t *block, ptrdiff_t stride)\nINIT_MMX mmxext\ncglobal hevc_add_residual_4_10, 3, 3, 6\n    pxor              m2, m2\n    mova              m3, [max_pixels_10]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    add               r1, 16\n    lea               r0, [r0+2*r2]\n    ADD_RES_MMX_4_10  r0, r2, r1\n    RET\n\nINIT_XMM sse2\ncglobal hevc_add_residual_8_10, 3, 4, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n    lea               r3, [r2*3]\n\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    lea               r0, [r0+r2*4]\n    add               r1, 64\n    ADD_RES_SSE_8_10  r0, r2, r3, r1\n    RET\n\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 8\n.loop:\n    ADD_RES_SSE_16_10 r0, r2, r1\n    lea               r0, [r0+r2*2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_add_res.asm:9", "text": "ADD_RES_SSE_16_10 r0, r2, r1\n    lea               r0, [r0+r2*2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor              m4, m4\n    mova              m5, [max_pixels_10]\n\n    mov              r4d, 32\n.loop:\n    ADD_RES_SSE_32_10 r0, r1\n    lea               r0, [r0+r2]\n    add               r1, 64\n    dec              r4d\n    jg .loop\n    RET\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncglobal hevc_add_residual_16_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n    lea                r3, [r2*3]\n\n    mov               r4d, 4\n.loop:\n    ADD_RES_AVX2_16_10 r0, r2, r3, r1\n    lea                r0, [r0+r2*4]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n\ncglobal hevc_add_residual_32_10, 3, 5, 6\n    pxor               m4, m4\n    mova               m5, [max_pixels_10]\n\n    mov               r4d, 16\n.loop:\n    ADD_RES_AVX2_32_10 r0, r2, r1\n    lea                r0, [r0+r2*2]\n    add                r1, 128\n    dec               r4d\n    jg .loop\n    RET\n%endif ;HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_add_res.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_add_res.asm", "line_start": 321, "line_end": 369}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:6", "text": "TRANSPOSE2x4x4B   0, 1, 2, 3, 4\n\n    movq             %1, m0\n    movhps           %2, m0\n    movq             %3, m1\n    movhps           %4, m1\n    movq             %5, m2\n    movhps           %6, m2\n    movq             %7, m3\n    movhps           %8, m3\n%endmacro\n\n; in: 8 rows of 8 words in %1..%8\n; out: 8 rows of 8 words in m0..m7\n%macro TRANSPOSE8x8W_LOAD 8\n    movdqu           m0, %1\n    movdqu           m1, %2\n    movdqu           m2, %3\n    movdqu           m3, %4\n    movdqu           m4, %5\n    movdqu           m5, %6\n    movdqu           m6, %7\n    movdqu           m7, %8\n    TRANSPOSE8x8W     0, 1, 2, 3, 4, 5, 6, 7, 8\n%endmacro\n\n; in: 8 rows of 8 words in m0..m8\n; out: 8 rows of 8 words in %1..%8\n%macro TRANSPOSE8x8W_STORE 9\n    TRANSPOSE8x8W     0, 1, 2, 3, 4, 5, 6, 7, 8\n\n    pxor             m8, m8\n    CLIPW            m0, m8, %9\n    CLIPW            m1, m8, %9\n    CLIPW            m2, m8, %9\n    CLIPW            m3, m8, %9\n    CLIPW            m4, m8, %9\n    CLIPW            m5, m8, %9\n    CLIPW            m6, m8, %9\n    CLIPW            m7, m8, %9\n\n    movdqu           %1, m0\n    movdqu           %2, m1\n    movdqu           %3, m2\n    movdqu           %4, m3\n    movdqu           %5, m4\n    movdqu           %6, m5\n    movdqu           %7, m6\n    movdqu           %8, m7\n%endmacro\n\n\n; in: %2 clobbered\n; out: %1\n; mask in m11\n; clobbers m10\n%macro MASKED_COPY 2\n    pand             %2, m11 ; and mask\n    pandn           m10, m11, %1; and -mask\n    por              %2, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:7", "text": "movdqu           %1, m0\n    movdqu           %2, m1\n    movdqu           %3, m2\n    movdqu           %4, m3\n    movdqu           %5, m4\n    movdqu           %6, m5\n    movdqu           %7, m6\n    movdqu           %8, m7\n%endmacro\n\n\n; in: %2 clobbered\n; out: %1\n; mask in m11\n; clobbers m10\n%macro MASKED_COPY 2\n    pand             %2, m11 ; and mask\n    pandn           m10, m11, %1; and -mask\n    por              %2, m10\n    mova             %1, %2\n%endmacro\n\n; in: %2 clobbered\n; out: %1\n; mask in %3, will be clobbered\n%macro MASKED_COPY2 3\n    pand             %2, %3 ; and mask\n    pandn            %3, %1; and -mask\n    por              %2, %3\n    mova             %1, %2\n%endmacro\n\nALIGN 16\n; input in m0 ... m3 and tcs in r2. Output in m1 and m2\n%macro CHROMA_DEBLOCK_BODY 1\n    psubw            m4, m2, m1; q0 - p0\n    psubw            m5, m0, m3; p1 - q1\n    psllw            m4, 2; << 2\n    paddw            m5, m4;\n\n    ;tc calculations\n    movq             m6, [tcq]; tc0\n    punpcklwd        m6, m6\n    pshufd           m6, m6, 0xA0; tc0, tc1\n%if cpuflag(ssse3)\n    psignw           m4, m6, [pw_m1]; -tc0, -tc1\n%else\n    pmullw           m4, m6, [pw_m1]; -tc0, -tc1\n%endif\n    ;end tc calculations\n\n    paddw            m5, [pw_4]; +4\n    psraw            m5, 3; >> 3\n\n%if %1 > 8\n    psllw            m4, %1-8; << (BIT_DEPTH - 8)\n    psllw            m6, %1-8; << (BIT_DEPTH - 8)\n%endif\n    pmaxsw           m5, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:8", "text": ";tc calculations\n    movq             m6, [tcq]; tc0\n    punpcklwd        m6, m6\n    pshufd           m6, m6, 0xA0; tc0, tc1\n%if cpuflag(ssse3)\n    psignw           m4, m6, [pw_m1]; -tc0, -tc1\n%else\n    pmullw           m4, m6, [pw_m1]; -tc0, -tc1\n%endif\n    ;end tc calculations\n\n    paddw            m5, [pw_4]; +4\n    psraw            m5, 3; >> 3\n\n%if %1 > 8\n    psllw            m4, %1-8; << (BIT_DEPTH - 8)\n    psllw            m6, %1-8; << (BIT_DEPTH - 8)\n%endif\n    pmaxsw           m5, m4\n    pminsw           m5, m6\n    paddw            m1, m5; p0 + delta0\n    psubw            m2, m5; q0 - delta0\n%endmacro\n\n; input in m0 ... m7, beta in r2 tcs in r3. Output in m1...m6\n%macro LUMA_DEBLOCK_BODY 2\n    psllw            m9, m2, 1; *2\n    psubw           m10, m1, m9\n    paddw           m10, m3\n    ABS1            m10, m11 ; 0dp0, 0dp3 , 1dp0, 1dp3\n\n    psllw            m9, m5, 1; *2\n    psubw           m11, m6, m9\n    paddw           m11, m4\n    ABS1            m11, m13 ; 0dq0, 0dq3 , 1dq0, 1dq3\n\n    ;beta calculations\n%if %1 > 8\n    shl             betaq, %1 - 8\n%endif\n    movd            m13, betad\n    SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r13, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test            r13, r13\n    je              .bypassluma", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:9", "text": "%endif\n    movd            m13, betad\n    SPLATW          m13, m13, 0\n    ;end beta calculations\n\n    paddw            m9, m10, m11;   0d0, 0d3  ,  1d0, 1d3\n\n    pshufhw         m14, m9, 0x0f ;0b00001111;  0d3 0d3 0d0 0d0 in high\n    pshuflw         m14, m14, 0x0f ;0b00001111;  1d3 1d3 1d0 1d0 in low\n\n    pshufhw          m9, m9, 0xf0 ;0b11110000; 0d0 0d0 0d3 0d3\n    pshuflw          m9, m9, 0xf0 ;0b11110000; 1d0 1d0 1d3 1d3\n\n    paddw           m14, m9; 0d0+0d3, 1d0+1d3\n\n    ;compare\n    pcmpgtw         m15, m13, m14\n    movmskps        r13, m15 ;filtering mask 0d0 + 0d3 < beta0 (bit 2 or 3) , 1d0 + 1d3 < beta1 (bit 0 or 1)\n    test            r13, r13\n    je              .bypassluma\n\n    ;weak / strong decision compare to beta_2\n    psraw           m15, m13, 2;   beta >> 2\n    psllw            m8, m9, 1;\n    pcmpgtw         m15, m8; (d0 << 1) < beta_2, (d3 << 1) < beta_2\n    movmskps        r6, m15;\n    ;end weak / strong decision\n\n    ; weak filter nd_p/q calculation\n    pshufd           m8, m10, 0x31\n    psrld            m8, 16\n    paddw            m8, m10\n    movd            r7d, m8\n    pshufd           m8, m8, 0x4E\n    movd            r8d, m8\n\n    pshufd           m8, m11, 0x31\n    psrld            m8, 16\n    paddw            m8, m11\n    movd            r9d, m8\n    pshufd           m8, m8, 0x4E\n    movd           r10d, m8\n    ; end calc for weak filter\n\n    ; filtering mask\n    mov             r11, r13\n    shr             r11, 3\n    movd            m15, r11d\n    and             r13, 1\n    movd            m11, r13d\n    shufps          m11, m15, 0\n    shl             r11, 1\n    or              r13, r11\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov            r11d, [tcq];\n%if %1 > 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:10", "text": "pshufd           m8, m8, 0x4E\n    movd           r10d, m8\n    ; end calc for weak filter\n\n    ; filtering mask\n    mov             r11, r13\n    shr             r11, 3\n    movd            m15, r11d\n    and             r13, 1\n    movd            m11, r13d\n    shufps          m11, m15, 0\n    shl             r11, 1\n    or              r13, r11\n\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    ;decide between strong and weak filtering\n    ;tc25 calculations\n    mov            r11d, [tcq];\n%if %1 > 8\n    shl             r11, %1 - 8\n%endif\n    movd             m8, r11d; tc0\n    mov             r3d, [tcq+4];\n%if %1 > 8\n    shl              r3, %1 - 8\n%endif\n    add            r11d, r3d; tc0 + tc1\n    jz             .bypassluma\n    movd             m9, r3d; tc1\n    punpcklwd        m8, m8\n    punpcklwd        m9, m9\n    shufps           m8, m9, 0; tc0, tc1\n    mova             m9, m8\n    psllw            m8, 2; tc << 2\n    pavgw            m8, m9; tc25 = ((tc * 5 + 1) >> 1)\n    ;end tc25 calculations\n\n    ;----beta_3 comparison-----\n    psubw           m12, m0, m3;      p3 - p0\n    ABS1            m12, m14; abs(p3 - p0)\n\n    psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r11, m13;\n    and             r6, r11; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:11", "text": "ABS1            m12, m14; abs(p3 - p0)\n\n    psubw           m15, m7, m4;      q3 - q0\n    ABS1            m15, m14; abs(q3 - q0)\n\n    paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    psraw           m13, 3; beta >> 3\n    pcmpgtw         m13, m12;\n    movmskps        r11, m13;\n    and             r6, r11; strong mask , beta_2 and beta_3 comparisons\n    ;----beta_3 comparison end-----\n    ;----tc25 comparison---\n    psubw           m12, m3, m4;      p0 - q0\n    ABS1            m12, m14; abs(p0 - q0)\n\n    pshufhw         m12, m12, 0xf0 ;0b11110000;\n    pshuflw         m12, m12, 0xf0 ;0b11110000;\n\n    pcmpgtw          m8, m12; tc25 comparisons\n    movmskps        r11, m8;\n    and             r6, r11; strong mask, beta_2, beta_3 and tc25 comparisons\n    ;----tc25 comparison end---\n    mov             r11, r6;\n    shr             r11, 1;\n    and             r6, r11; strong mask, bits 2 and 0\n\n    pmullw          m14, m9, [pw_m2]; -tc * 2\n    paddw            m9, m9\n\n    and             r6, 5; 0b101\n    mov             r11, r6; strong mask\n    shr             r6, 2;\n    movd            m12, r6d; store to xmm for mask generation\n    shl             r6, 1\n    and             r11, 1\n    movd            m10, r11d; store to xmm for mask generation\n    or              r6, r11; final strong mask, bits 1 and 0\n    jz      .weakfilter\n\n    shufps          m10, m12, 0\n    pcmpeqd         m10, [pd_1]; strong mask\n\n    mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:12", "text": "or              r6, r11; final strong mask, bits 1 and 0\n    jz      .weakfilter\n\n    shufps          m10, m12, 0\n    pcmpeqd         m10, [pd_1]; strong mask\n\n    mova            m13, [pw_4]; 4 in every cell\n    pand            m11, m10; combine filtering mask and strong mask\n    paddw           m12, m2, m3;          p1 +   p0\n    paddw           m12, m4;          p1 +   p0 +   q0\n    mova            m10, m12; copy\n    paddw           m12, m12;       2*p1 + 2*p0 + 2*q0\n    paddw           m12, m1;   p2 + 2*p1 + 2*p0 + 2*q0\n    paddw           m12, m5;   p2 + 2*p1 + 2*p0 + 2*q0 + q1\n    paddw           m12, m13;  p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4\n    psraw           m12, 3;  ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3)\n    psubw           m12, m3; ((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4) >> 3) - p0\n    pmaxsw          m12, m14\n    pminsw          m12, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m12, m3; p0'\n\n    paddw           m15, m1, m10; p2 + p1 + p0 + q0\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13; p2 + p1 + p0 + q0 + 2\n    psraw           m15, 2;  (p2 + p1 + p0 + q0 + 2) >> 2\n    psubw           m15, m2;((p2 + p1 + p0 + q0 + 2) >> 2) - p1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m2; p1'\n\n    paddw            m8, m1, m0;     p3 +   p2\n    paddw            m8, m8;   2*p3 + 2*p2\n    paddw            m8, m1;   2*p3 + 3*p2\n    paddw            m8, m10;  2*p3 + 3*p2 + p1 + p0 + q0\n    paddw           m13, m13\n    paddw            m8, m13;  2*p3 + 3*p2 + p1 + p0 + q0 + 4\n    psraw            m8, 3;   (2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3\n    psubw            m8, m1; ((2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3) - p2\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m1; p2'\n    MASKED_COPY      m1, m8\n\n    paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:13", "text": "paddw            m8, m1; p2'\n    MASKED_COPY      m1, m8\n\n    paddw            m8, m3, m4;         p0 +   q0\n    paddw            m8, m5;         p0 +   q0 +   q1\n    paddw            m8, m8;       2*p0 + 2*q0 + 2*q1\n    paddw            m8, m2;  p1 + 2*p0 + 2*q0 + 2*q1\n    paddw            m8, m6;  p1 + 2*p0 + 2*q0 + 2*q1 + q2\n    paddw            m8, m13; p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4\n    psraw            m8, 3;  (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >>3\n    psubw            m8, m4;\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw            m8, m4; q0'\n    MASKED_COPY      m2, m15\n\n    paddw           m15, m3, m4;   p0 + q0\n    paddw           m15, m5;   p0 + q0 + q1\n    mova            m10, m15;\n    paddw           m15, m6;   p0 + q0 + q1 + q2\n    psrlw           m13, 1; 2 in every cell\n    paddw           m15, m13;  p0 + q0 + q1 + q2 + 2\n    psraw           m15, 2;   (p0 + q0 + q1 + q2 + 2) >> 2\n    psubw           m15, m5; ((p0 + q0 + q1 + q2 + 2) >> 2) - q1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m15, m5; q1'\n\n    paddw           m13, m7;      q3 + 2\n    paddw           m13, m6;      q3 +  q2 + 2\n    paddw           m13, m13;   2*q3 + 2*q2 + 4\n    paddw           m13, m6;    2*q3 + 3*q2 + 4\n    paddw           m13, m10;   2*q3 + 3*q2 + q1 + q0 + p0 + 4\n    psraw           m13, 3;    (2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3\n    psubw           m13, m6;  ((2*q3 + 3*q2 + q1 + q0 + p0 + 4) >> 3) - q2\n    pmaxsw          m13, m14\n    pminsw          m13, m9; av_clip( , -2 * tc, 2 * tc)\n    paddw           m13, m6; q2'\n\n    MASKED_COPY      m6, m13\n    MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r13; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r13, betaq\n    shr             r13, 1;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:14", "text": "MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r13; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r13, betaq\n    shr             r13, 1;\n    add             betaq, r13\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    psubw           m12, m4, m3 ; q0 - p0\n    paddw           m10, m12, m12\n    paddw           m12, m10 ; 3 * (q0 - p0)\n    psubw           m10, m5, m2 ; q1 - p1\n    psubw           m12, m10 ; 3 * (q0 - p0) - (q1 - p1)\n%if %1 < 12\n    paddw           m10, m12, m12\n    paddw           m12, [pw_8]; + 8\n    paddw           m12, m10 ; 9 * (q0 - p0) - 3 * ( q1 - p1 )\n    psraw           m12, 4; >> 4 , delta0\n    PABSW           m13, m12; abs(delta0)\n%elif cpuflag(ssse3)\n    pabsw           m13, m12\n    paddw           m10, m13, m13\n    paddw           m13, [pw_8]\n    paddw           m13, m10 ; abs(9 * (q0 - p0) - 3 * ( q1 - p1 ))\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    paddw           m13, m10\n    psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:15", "text": "pcmpgtw         m10, m12\n    paddw           m13, m10\n    psrlw           m13, 4; >> 4, abs(delta0)\n    psignw          m10, m13, m12\n    SWAP             10, 12\n%else\n    pxor            m10, m10\n    pcmpgtw         m10, m12\n    pxor            m12, m10\n    psubw           m12, m10 ; abs()\n    paddw           m13, m12, m12\n    paddw           m12, [pw_8]\n    paddw           m13, m12 ; 3*abs(m12)\n    paddw           m13, m10\n    psrlw           m13, 4\n    pxor            m12, m13, m10\n    psubw           m12, m10\n%endif\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc\n\n    pmaxsw          m12, m14\n    pminsw          m12, m9;  av_clip(delta0, -tc, tc)\n\n    psraw            m9, 1;   tc -> tc / 2\n%if cpuflag(ssse3)\n    psignw          m14, m9, [pw_m1]; -tc / 2\n%else\n    pmullw          m14, m9, [pw_m1]; -tc / 2\n%endif\n\n    pavgw           m15, m1, m3;   (p2 + p0 + 1) >> 1\n    psubw           m15, m2;  ((p2 + p0 + 1) >> 1) - p1\n    paddw           m15, m12; ((p2 + p0 + 1) >> 1) - p1 + delta0\n    psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movd            m13, r7d; 1dp0 + 1dp3\n    movd             m8, r8d; 0dp0 + 0dp3\n    punpcklwd        m8, m8\n    punpcklwd       m13, m13\n    shufps          m13, m8, 0;\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:16", "text": "psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movd            m13, r7d; 1dp0 + 1dp3\n    movd             m8, r8d; 0dp0 + 0dp3\n    punpcklwd        m8, m8\n    punpcklwd       m13, m13\n    shufps          m13, m8, 0;\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movd            m13, r9d;\n    movd            m15, r10d;\n    punpcklwd       m15, m15\n    punpcklwd       m13, m13\n    shufps          m13, m15, 0; dq0 + dq3\n\n    pcmpgtw         m10, m13; compare to ((beta+(beta>>1))>>3)\n    pand            m10, m11\n    MASKED_COPY2     m5, m8, m10; write q1'\n\n    paddw           m15, m3, m12 ; p0 + delta0\n    MASKED_COPY      m3, m15\n\n    psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:17", "text": "psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 12\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_12]\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:18", "text": "; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 10\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_10]\n    CLIPW           m2, m5, [pw_pixel_max_10]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n\ncglobal hevc_h_loop_filter_chroma_12, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:19", "text": "sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:20", "text": "lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:21", "text": "punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:22", "text": "CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 841, "line_end": 893}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:23", "text": "movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6083f503d5bd7f9a2540c3e30d95e7add765d1e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6083f503d5bd7f9a2540c3e30d95e7add765d1e/libavcodec/x86/hevc_deblock.asm", "line_start": 881, "line_end": 893}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:14", "text": "MASKED_COPY      m5, m15\n    MASKED_COPY      m4, m8\n    MASKED_COPY      m3, m12\n\n.weakfilter:\n    not             r6; strong mask -> weak mask\n    and             r6, r13; final weak filtering mask, bits 0 and 1\n    jz             .store\n\n    ; weak filtering mask\n    mov             r11, r6\n    shr             r11, 1\n    movd            m12, r11d\n    and             r6, 1\n    movd            m11, r6d\n    shufps          m11, m12, 0\n    pcmpeqd         m11, [pd_1]; filtering mask\n\n    mov             r13, betaq\n    shr             r13, 1;\n    add             betaq, r13\n    shr             betaq, 3; ((beta + (beta >> 1)) >> 3))\n\n    mova            m13, [pw_8]\n    psubw           m12, m4, m3 ; q0 - p0\n    psllw           m10, m12, 3; 8 * (q0 - p0)\n    paddw           m12, m10 ; 9 * (q0 - p0)\n\n    psubw           m10, m5, m2 ; q1 - p1\n    psllw            m8, m10, 1; 2 * ( q1 - p1 )\n    paddw           m10, m8; 3 * ( q1 - p1 )\n    psubw           m12, m10; 9 * (q0 - p0) - 3 * ( q1 - p1 )\n    paddw           m12, m13; + 8\n    psraw           m12, 4; >> 4 , delta0\n    PABSW           m13, m12; abs(delta0)\n\n\n    psllw           m10, m9, 2; 8 * tc\n    paddw           m10, m9; 10 * tc\n    pcmpgtw         m10, m13\n    pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc\n\n    pmaxsw          m12, m14\n    pminsw          m12, m9;  av_clip(delta0, -tc, tc)\n\n    psraw            m9, 1;   tc -> tc / 2\n%if cpuflag(ssse3)\n    psignw          m14, m9, [pw_m1]; -tc / 2\n%else\n    pmullw          m14, m9, [pw_m1]; -tc / 2\n%endif\n\n    pavgw           m15, m1, m3;   (p2 + p0 + 1) >> 1\n    psubw           m15, m2;  ((p2 + p0 + 1) >> 1) - p1\n    paddw           m15, m12; ((p2 + p0 + 1) >> 1) - p1 + delta0\n    psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:15", "text": "pand            m11, m10\n\n    psraw            m9, 1;   tc * 2 -> tc\n    psraw           m14, 1; -tc * 2 -> -tc\n\n    pmaxsw          m12, m14\n    pminsw          m12, m9;  av_clip(delta0, -tc, tc)\n\n    psraw            m9, 1;   tc -> tc / 2\n%if cpuflag(ssse3)\n    psignw          m14, m9, [pw_m1]; -tc / 2\n%else\n    pmullw          m14, m9, [pw_m1]; -tc / 2\n%endif\n\n    pavgw           m15, m1, m3;   (p2 + p0 + 1) >> 1\n    psubw           m15, m2;  ((p2 + p0 + 1) >> 1) - p1\n    paddw           m15, m12; ((p2 + p0 + 1) >> 1) - p1 + delta0\n    psraw           m15, 1;   (((p2 + p0 + 1) >> 1) - p1 + delta0) >> 1\n    pmaxsw          m15, m14\n    pminsw          m15, m9; av_clip(deltap1, -tc/2, tc/2)\n    paddw           m15, m2; p1'\n\n    ;beta calculations\n    movd            m10, betad\n    SPLATW          m10, m10, 0\n\n    movd            m13, r7d; 1dp0 + 1dp3\n    movd             m8, r8d; 0dp0 + 0dp3\n    punpcklwd        m8, m8\n    punpcklwd       m13, m13\n    shufps          m13, m8, 0;\n    pcmpgtw          m8, m10, m13\n    pand             m8, m11\n    ;end beta calculations\n    MASKED_COPY2     m2, m15, m8; write p1'\n\n    pavgw            m8, m6, m4;   (q2 + q0 + 1) >> 1\n    psubw            m8, m5;  ((q2 + q0 + 1) >> 1) - q1\n    psubw            m8, m12; ((q2 + q0 + 1) >> 1) - q1 - delta0)\n    psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movd            m13, r9d;\n    movd            m15, r10d;\n    punpcklwd       m15, m15\n    punpcklwd       m13, m13\n    shufps          m13, m15, 0; dq0 + dq3\n\n    pcmpgtw         m10, m13; compare to ((beta+(beta>>1))>>3)\n    pand            m10, m11\n    MASKED_COPY2     m5, m8, m10; write q1'\n\n    paddw           m15, m3, m12 ; p0 + delta0\n    MASKED_COPY      m3, m15\n\n    psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:16", "text": "psraw            m8, 1;   ((q2 + q0 + 1) >> 1) - q1 - delta0) >> 1\n    pmaxsw           m8, m14\n    pminsw           m8, m9; av_clip(deltaq1, -tc/2, tc/2)\n    paddw            m8, m5; q1'\n\n    movd            m13, r9d;\n    movd            m15, r10d;\n    punpcklwd       m15, m15\n    punpcklwd       m13, m13\n    shufps          m13, m15, 0; dq0 + dq3\n\n    pcmpgtw         m10, m13; compare to ((beta+(beta>>1))>>3)\n    pand            m10, m11\n    MASKED_COPY2     m5, m8, m10; write q1'\n\n    paddw           m15, m3, m12 ; p0 + delta0\n    MASKED_COPY      m3, m15\n\n    psubw            m8, m4, m12 ; q0 - delta0\n    MASKED_COPY      m4, m8\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\n%macro LOOP_FILTER_CHROMA 0\ncglobal hevc_v_loop_filter_chroma_8, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 2\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8B_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 8\n    TRANSPOSE8x4B_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    RET\n\ncglobal hevc_v_loop_filter_chroma_10, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 12\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_12]\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:17", "text": "mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 10\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_10]\n    RET\n\ncglobal hevc_v_loop_filter_chroma_12, 3, 5, 7, pix, stride, tc, pix0, r3stride\n    sub            pixq, 4\n    lea       r3strideq, [3*strideq]\n    mov           pix0q, pixq\n    add            pixq, r3strideq\n    TRANSPOSE4x8W_LOAD  PASS8ROWS(pix0q, pixq, strideq, r3strideq)\n    CHROMA_DEBLOCK_BODY 12\n    TRANSPOSE8x4W_STORE PASS8ROWS(pix0q, pixq, strideq, r3strideq), [pw_pixel_max_12]\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_chroma(uint8_t *_pix, ptrdiff_t _stride, int32_t *tc,\n;                                   uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_chroma_8, 3, 4, 7, pix, stride, tc, pix0\n    mov           pix0q, pixq\n    sub           pix0q, strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];    p1\n    movq             m1, [pix0q+strideq]; p0\n    movq             m2, [pixq];    q0\n    movq             m3, [pixq+strideq]; q1\n    pxor             m5, m5; zeros reg\n    punpcklbw        m0, m5\n    punpcklbw        m1, m5\n    punpcklbw        m2, m5\n    punpcklbw        m3, m5\n    CHROMA_DEBLOCK_BODY  8\n    packuswb         m1, m2\n    movh[pix0q+strideq], m1\n    movhps       [pixq], m1\n    RET\n\ncglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 10\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_10]\n    CLIPW           m2, m5, [pw_pixel_max_10]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n\ncglobal hevc_h_loop_filter_chroma_12, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:18", "text": "cglobal hevc_h_loop_filter_chroma_10, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 10\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_10]\n    CLIPW           m2, m5, [pw_pixel_max_10]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n\ncglobal hevc_h_loop_filter_chroma_12, 3, 4, 7, pix, stride, tc, pix0\n    mov          pix0q, pixq\n    sub          pix0q, strideq\n    sub          pix0q, strideq\n    movu            m0, [pix0q];    p1\n    movu            m1, [pix0q+strideq]; p0\n    movu            m2, [pixq];    q0\n    movu            m3, [pixq+strideq]; q1\n    CHROMA_DEBLOCK_BODY 12\n    pxor            m5, m5; zeros reg\n    CLIPW           m1, m5, [pw_pixel_max_12]\n    CLIPW           m2, m5, [pw_pixel_max_12]\n    movu [pix0q+strideq], m1\n    movu        [pixq], m2\n    RET\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_CHROMA\nINIT_XMM avx\nLOOP_FILTER_CHROMA\n\n%if ARCH_X86_64\n%macro LOOP_FILTER_LUMA 0\n;-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:19", "text": ";-----------------------------------------------------------------------------\n; void ff_hevc_v_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_v_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 4\n    lea           pix0q, [3 * r1]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8B_LOAD  PASS8ROWS(src3strideq, pixq, r1, pix0q)\n    LUMA_DEBLOCK_BODY 8, v\n.store:\n    TRANSPOSE8x8B_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q)\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 10, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_10]\n.bypassluma:\n    RET\n\ncglobal hevc_v_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    sub            pixq, 8\n    lea           pix0q, [3 * strideq]\n    mov     src3strideq, pixq\n    add            pixq, pix0q\n    TRANSPOSE8x8W_LOAD  PASS8ROWS(src3strideq, pixq, strideq, pix0q)\n    LUMA_DEBLOCK_BODY 12, v\n.store:\n    TRANSPOSE8x8W_STORE PASS8ROWS(src3strideq, pixq, r1, pix0q), [pw_pixel_max_12]\n.bypassluma:\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:20", "text": ";-----------------------------------------------------------------------------\n; void ff_hevc_h_loop_filter_luma(uint8_t *_pix, ptrdiff_t _stride, int beta,\n;                                 int32_t *tc, uint8_t *_no_p, uint8_t *_no_q);\n;-----------------------------------------------------------------------------\ncglobal hevc_h_loop_filter_luma_8, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea     src3strideq, [3 * strideq]\n    mov           pix0q, pixq\n    sub           pix0q, src3strideq\n    sub           pix0q, strideq\n    movq             m0, [pix0q];               p3\n    movq             m1, [pix0q +     strideq]; p2\n    movq             m2, [pix0q + 2 * strideq]; p1\n    movq             m3, [pix0q + src3strideq]; p0\n    movq             m4, [pixq];                q0\n    movq             m5, [pixq +     strideq];  q1\n    movq             m6, [pixq + 2 * strideq];  q2\n    movq             m7, [pixq + src3strideq];  q3\n    pxor             m8, m8\n    punpcklbw        m0, m8\n    punpcklbw        m1, m8\n    punpcklbw        m2, m8\n    punpcklbw        m3, m8\n    punpcklbw        m4, m8\n    punpcklbw        m5, m8\n    punpcklbw        m6, m8\n    punpcklbw        m7, m8\n    LUMA_DEBLOCK_BODY 8, h\n.store:\n    packuswb          m1, m2\n    packuswb          m3, m4\n    packuswb          m5, m6\n    movh   [pix0q +     strideq], m1\n    movhps [pix0q + 2 * strideq], m1\n    movh   [pix0q + src3strideq], m3\n    movhps [pixq               ], m3\n    movh   [pixq  +     strideq], m5\n    movhps [pixq  + 2 * strideq], m5\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:21", "text": "cglobal hevc_h_loop_filter_luma_10, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             10, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_10]\n    CLIPW                         m2, m8, [pw_pixel_max_10]\n    CLIPW                         m3, m8, [pw_pixel_max_10]\n    CLIPW                         m4, m8, [pw_pixel_max_10]\n    CLIPW                         m5, m8, [pw_pixel_max_10]\n    CLIPW                         m6, m8, [pw_pixel_max_10]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\ncglobal hevc_h_loop_filter_luma_12, 4, 14, 16, pix, stride, beta, tc, pix0, src3stride\n    lea                  src3strideq, [3 * strideq]\n    mov                        pix0q, pixq\n    sub                        pix0q, src3strideq\n    sub                        pix0q, strideq\n    movdqu                        m0, [pix0q];               p3\n    movdqu                        m1, [pix0q +     strideq]; p2\n    movdqu                        m2, [pix0q + 2 * strideq]; p1\n    movdqu                        m3, [pix0q + src3strideq]; p0\n    movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_deblock.asm:22", "text": "movdqu                        m4, [pixq];                q0\n    movdqu                        m5, [pixq  +     strideq]; q1\n    movdqu                        m6, [pixq  + 2 * strideq]; q2\n    movdqu                        m7, [pixq  + src3strideq]; q3\n    LUMA_DEBLOCK_BODY             12, h\n.store:\n    pxor                          m8, m8; zeros reg\n    CLIPW                         m1, m8, [pw_pixel_max_12]\n    CLIPW                         m2, m8, [pw_pixel_max_12]\n    CLIPW                         m3, m8, [pw_pixel_max_12]\n    CLIPW                         m4, m8, [pw_pixel_max_12]\n    CLIPW                         m5, m8, [pw_pixel_max_12]\n    CLIPW                         m6, m8, [pw_pixel_max_12]\n    movdqu     [pix0q +     strideq], m1;  p2\n    movdqu     [pix0q + 2 * strideq], m2;  p1\n    movdqu     [pix0q + src3strideq], m3;  p0\n    movdqu     [pixq               ], m4;  q0\n    movdqu     [pixq  +     strideq], m5;  q1\n    movdqu     [pixq  + 2 * strideq], m6;  q2\n.bypassluma:\n    RET\n\n%endmacro\n\nINIT_XMM sse2\nLOOP_FILTER_LUMA\nINIT_XMM ssse3\nLOOP_FILTER_LUMA\nINIT_XMM avx\nLOOP_FILTER_LUMA\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_deblock.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_deblock.asm", "line_start": 841, "line_end": 871}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_idct.asm:1", "text": ";*******************************************************************************\n;* SIMD-optimized IDCT functions for HEVC decoding\n;* Copyright (c) 2014 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;* Copyright (c) 2016 Alexandra Hájková\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npd_64: times 4 dd 64\npd_2048: times 4 dd 2048\npd_512: times 4 dd 512\n\n; 4x4 transform coeffs\ncextern pw_64\npw_64_m64: times 4 dw 64, -64\npw_83_36: times 4 dw 83, 36\npw_36_m83: times 4 dw 36, -83\n\n; 8x8 transform coeffs\npw_89_75: times 4 dw 89, 75\npw_50_18: times 4 dw 50, 18\n\npw_75_m18: times 4 dw 75, -18\npw_m89_m50: times 4 dw -89, -50\n\npw_50_m89: times 4 dw 50, -89\npw_18_75: times 4 dw 18, 75\n\npw_18_m50: times 4 dw 18, -50\npw_75_m89: times 4 dw 75, -89\n\n; 16x16 transformation coeffs\ntrans_coeffs16: times 4 dw 90, 87\ntimes 4 dw 80, 70\ntimes 4 dw 57, 43\ntimes 4 dw 25, 9\n\ntimes 4 dw 87, 57\ntimes 4 dw 9, -43\ntimes 4 dw -80, -90\ntimes 4 dw -70, -25", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:18", "text": "%endif\n%endmacro\n\n%macro BI_COMPUTE 7-8     ; width, bitd, src1l, src1h, scr2l, scr2h, pw\n    paddsw            %3, %5\n%if %1 > 8\n    paddsw            %4, %6\n%endif\n    UNI_COMPUTE       %1, %2, %3, %4, %7\n%if %0 == 8 && cpuflag(avx2) && (%2 == 8)\n    vpermq            %3, %3, 216\n    vpermq            %4, %4, 216\n%endif\n%endmacro\n\n%macro UNI_COMPUTE 5\n    pmulhrsw          %3, %5\n%if %1 > 8 || (%2 > 8 && %1 > 4)\n    pmulhrsw          %4, %5\n%endif\n%if %2 == 8\n    packuswb          %3, %4\n%else\n    CLIPW             %3, [pb_0], [max_pixels_%2]\n%if (%1 > 8 && notcpuflag(avx)) || %1 > 16\n    CLIPW             %4, [pb_0], [max_pixels_%2]\n%endif\n%endif\n%endmacro\n\n\n; ******************************\n; void put_hevc_mc_pixels(int16_t *dst, ptrdiff_t dststride,\n;                         const uint8_t *_src, ptrdiff_t _srcstride,\n;                         int height, int mx, int my)\n; ******************************\n\n%macro HEVC_BI_PEL_PIXELS 2\ncglobal hevc_put_hevc_bi_pel_pixels%1_%2, 6, 6, 6, dst, dststride, src, srcstride, src2, height\n    pxor              m2, m2\n    movdqa            m5, [pw_bi_%2]\n.loop:\n    SIMPLE_LOAD       %1, %2, srcq, m0\n    SIMPLE_BILOAD     %1, src2q, m3, m4\n    MC_PIXEL_COMPUTE  %1, %2, 1\n    BI_COMPUTE        %1, %2, m0, m1, m3, m4, m5, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_epel_hX(int16_t *dst, ptrdiff_t dststride,\n;                       const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:19", "text": "movdqa            m5, [pw_bi_%2]\n.loop:\n    SIMPLE_LOAD       %1, %2, srcq, m0\n    SIMPLE_BILOAD     %1, src2q, m3, m4\n    MC_PIXEL_COMPUTE  %1, %2, 1\n    BI_COMPUTE        %1, %2, m0, m1, m3, m4, m5, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_epel_hX(int16_t *dst, ptrdiff_t dststride,\n;                       const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width);\n; ******************************\n\n\n%macro HEVC_PUT_HEVC_EPEL 2\n%if cpuflag(avx2)\n%define XMM_REGS  11\n%else\n%define XMM_REGS  8\n%endif\n\ncglobal hevc_put_hevc_bi_epel_h%1_%2, 7, 8, XMM_REGS, dst, dststride, src, srcstride, src2, height, mx, rfilter\n%assign %%stride ((%2 + 7)/8)\n    movdqa            m6, [pw_bi_%2]\n    EPEL_FILTER       %2, mx, m4, m5, rfilter\n.loop:\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m4, m5, 1\n    SIMPLE_BILOAD     %1, src2q, m2, m3\n    BI_COMPUTE        %1, %2, m0, m1, m2, m3, m6, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void put_hevc_epel_v(int16_t *dst, ptrdiff_t dststride,\n;                      const uint8_t *_src, ptrdiff_t _srcstride,\n;                      int height, int mx, int my, int width)\n; ******************************\n\ncglobal hevc_put_hevc_bi_epel_v%1_%2, 6, 8, XMM_REGS, dst, dststride, src, srcstride, src2, height, r3src, my\n    movifnidn        myd, mym\n    movdqa            m6, [pw_bi_%2]\n    sub             srcq, srcstrideq\n    EPEL_FILTER       %2, my, m4, m5, r3src\n    lea           r3srcq, [srcstrideq*3]\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:20", "text": "add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n; ******************************\n; void put_hevc_epel_v(int16_t *dst, ptrdiff_t dststride,\n;                      const uint8_t *_src, ptrdiff_t _srcstride,\n;                      int height, int mx, int my, int width)\n; ******************************\n\ncglobal hevc_put_hevc_bi_epel_v%1_%2, 6, 8, XMM_REGS, dst, dststride, src, srcstride, src2, height, r3src, my\n    movifnidn        myd, mym\n    movdqa            m6, [pw_bi_%2]\n    sub             srcq, srcstrideq\n    EPEL_FILTER       %2, my, m4, m5, r3src\n    lea           r3srcq, [srcstrideq*3]\n.loop:\n    EPEL_LOAD         %2, srcq, srcstride, %1\n    EPEL_COMPUTE      %2, %1, m4, m5, 1\n    SIMPLE_BILOAD     %1, src2q, m2, m3\n    BI_COMPUTE        %1, %2, m0, m1, m2, m3, m6, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_epel_hv(int16_t *dst, ptrdiff_t dststride,\n;                       const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width)\n; ******************************\n\n%macro HEVC_PUT_HEVC_EPEL_HV 2\n\ncglobal hevc_put_hevc_bi_epel_hv%1_%2, 8, 9, 16, dst, dststride, src, srcstride, src2, height, mx, my, r3src\n%assign %%stride ((%2 + 7)/8)\n    sub             srcq, srcstrideq\n    EPEL_HV_FILTER    %2\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:21", "text": "%macro HEVC_PUT_HEVC_EPEL_HV 2\n\ncglobal hevc_put_hevc_bi_epel_hv%1_%2, 8, 9, 16, dst, dststride, src, srcstride, src2, height, mx, my, r3src\n%assign %%stride ((%2 + 7)/8)\n    sub             srcq, srcstrideq\n    EPEL_HV_FILTER    %2\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m8, m1\n%endif\n    SWAP              m4, m0\n    add             srcq, srcstrideq\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP              m9, m1\n%endif\n    SWAP              m5, m0\n    add             srcq, srcstrideq\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP             m10, m1\n%endif\n    SWAP              m6, m0\n    add             srcq, srcstrideq\n.loop:\n    EPEL_LOAD         %2, srcq-%%stride, %%stride, %1\n    EPEL_COMPUTE      %2, %1, m14, m15\n%if (%1 > 8 && (%2 == 8))\n    SWAP             m11, m1\n%endif\n    SWAP              m7, m0\n    punpcklwd         m0, m4, m5\n    punpcklwd         m2, m6, m7\n%if %1 > 4\n    punpckhwd         m1, m4, m5\n    punpckhwd         m3, m6, m7\n%endif\n    EPEL_COMPUTE      14, %1, m12, m13\n%if (%1 > 8 && (%2 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    EPEL_COMPUTE      14, %1, m12, m13, m4, m2, m8, m3\n    SIMPLE_BILOAD     %1, src2q, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m1, m8, xm3, 1\n    vperm2i128        m2, m8, m3, q0301\n    BI_COMPUTE        %1, %2, m0, m4, m1, m2, [pw_bi_%2]\n%else\n    BI_COMPUTE        %1, %2, m0, m4, m8, m3, [pw_bi_%2]\n%endif\n%else\n    SIMPLE_BILOAD     %1, src2q, m8, m9\n    BI_COMPUTE        %1, %2, m0, m1, m8, m9, [pw_bi_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:22", "text": "EPEL_COMPUTE      14, %1, m12, m13\n%if (%1 > 8 && (%2 == 8))\n    punpcklwd         m4, m8, m9\n    punpcklwd         m2, m10, m11\n    punpckhwd         m8, m8, m9\n    punpckhwd         m3, m10, m11\n    EPEL_COMPUTE      14, %1, m12, m13, m4, m2, m8, m3\n    SIMPLE_BILOAD     %1, src2q, m8, m3\n%if cpuflag(avx2)\n    vinserti128       m1, m8, xm3, 1\n    vperm2i128        m2, m8, m3, q0301\n    BI_COMPUTE        %1, %2, m0, m4, m1, m2, [pw_bi_%2]\n%else\n    BI_COMPUTE        %1, %2, m0, m4, m8, m3, [pw_bi_%2]\n%endif\n%else\n    SIMPLE_BILOAD     %1, src2q, m8, m9\n    BI_COMPUTE        %1, %2, m0, m1, m8, m9, [pw_bi_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m4\n    mova              m4, m5\n    mova              m5, m6\n    mova              m6, m7\n%if (%1 > 8 && (%2 == 8))\n    mova              m8, m9\n    mova              m9, m10\n    mova             m10, m11\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n; ******************************\n; void put_hevc_qpel_hX_X_X(int16_t *dst, ptrdiff_t dststride,\n;                           const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width)\n; ******************************\n\n%macro HEVC_PUT_HEVC_QPEL 2\n\ncglobal hevc_put_hevc_bi_qpel_h%1_%2, 7, 8, 16 , dst, dststride, src, srcstride, src2, height, mx, rfilter\n    movdqa            m9, [pw_bi_%2]\n    QPEL_FILTER       %2, mx\n.loop:\n    QPEL_H_LOAD       %2, srcq, %1, 10\n    QPEL_COMPUTE      %1, %2, 1\n%if %2 > 8\n    packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:23", "text": "; ******************************\n\n%macro HEVC_PUT_HEVC_QPEL 2\n\ncglobal hevc_put_hevc_bi_qpel_h%1_%2, 7, 8, 16 , dst, dststride, src, srcstride, src2, height, mx, rfilter\n    movdqa            m9, [pw_bi_%2]\n    QPEL_FILTER       %2, mx\n.loop:\n    QPEL_H_LOAD       %2, srcq, %1, 10\n    QPEL_COMPUTE      %1, %2, 1\n%if %2 > 8\n    packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\n\n; ******************************\n; void put_hevc_qpel_vX_X_X(int16_t *dst, ptrdiff_t dststride,\n;                           const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my, int width)\n; ******************************\n\n\ncglobal hevc_put_hevc_bi_qpel_v%1_%2, 6, 10, 16, dst, dststride, src, srcstride, src2, height, r3src, my, rfilter\n    movifnidn        myd, mym\n    movdqa            m9, [pw_bi_%2]\n    lea           r3srcq, [srcstrideq*3]\n    QPEL_FILTER       %2, my\n.loop:\n    QPEL_V_LOAD       %2, srcq, srcstride, %1, r9\n    QPEL_COMPUTE      %1, %2, 1\n%if %2 > 8\n    packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_qpel_hvX_X(int16_t *dst, ptrdiff_t dststride,\n;                          const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my)\n; ******************************\n%macro HEVC_PUT_HEVC_QPEL_HV 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:24", "text": "packssdw          m0, m1\n%endif\n    SIMPLE_BILOAD     %1, src2q, m10, m11\n    BI_COMPUTE        %1, %2, m0, m1, m10, m11, m9, 1\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n; ******************************\n; void put_hevc_qpel_hvX_X(int16_t *dst, ptrdiff_t dststride,\n;                          const uint8_t *_src, ptrdiff_t _srcstride,\n;                       int height, int mx, int my)\n; ******************************\n%macro HEVC_PUT_HEVC_QPEL_HV 2\n\ncglobal hevc_put_hevc_bi_qpel_hv%1_%2, 8, 10, 16, dst, dststride, src, srcstride, src2, height, mx, my, r3src, rfilter\n%if cpuflag(avx2)\n%assign %%shift  4\n%else\n%assign %%shift  3\n%endif\n    sub              mxq, 1\n    sub              myq, 1\n    shl              mxq, %%shift                ; multiply by 32\n    shl              myq, %%shift                ; multiply by 32\n    lea           r3srcq, [srcstrideq*3]\n    sub             srcq, r3srcq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP              m8, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP              m9, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m10, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m11, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m12, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m13, m0\n    add             srcq, srcstrideq\n    QPEL_H_LOAD       %2, srcq, %1, 15\n    QPEL_HV_COMPUTE   %1, %2, mx, ackssdw\n    SWAP             m14, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:26", "text": "%if %1 <= 4\n    movq              m8, m9\n    movq              m9, m10\n    movq             m10, m11\n    movq             m11, m12\n    movq             m12, m13\n    movq             m13, m14\n    movq             m14, m15\n%else\n    movdqa            m8, m9\n    movdqa            m9, m10\n    movdqa           m10, m11\n    movdqa           m11, m12\n    movdqa           m12, m13\n    movdqa           m13, m14\n    movdqa           m14, m15\n%endif\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    add            src2q, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n%macro WEIGHTING_FUNCS 2\n%if WIN64 || ARCH_X86_32\ncglobal hevc_put_hevc_uni_w%1_%2, 4, 5, 7, dst, dststride, src, height, denom, wx, ox\n    mov             r4d, denomm\n%define SHIFT  r4d\n%else\ncglobal hevc_put_hevc_uni_w%1_%2, 6, 6, 7, dst, dststride, src, height, denom, wx, ox\n%define SHIFT  denomd\n%endif\n    lea           SHIFT, [SHIFT+14-%2]          ; shift = 14 - bitd + denom\n%if %1 <= 4\n    pxor             m1, m1\n%endif\n    movd             m2, wxm        ; WX\n    movd             m4, SHIFT      ; shift\n%if %1 <= 4\n    punpcklwd        m2, m1\n%else\n    punpcklwd        m2, m2\n%endif\n    dec           SHIFT\n    movdqu           m5, [pd_1]\n    movd             m6, SHIFT\n    pshufd           m2, m2, 0\n    mov           SHIFT, oxm\n    pslld            m5, m6\n%if %2 != 8\n    shl           SHIFT, %2-8       ; ox << (bitd - 8)\n%endif\n    movd             m3, SHIFT      ; OX\n    pshufd           m3, m3, 0\n%if WIN64 || ARCH_X86_32\n    mov           SHIFT, heightm\n%endif\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:27", "text": "%if %1 <= 4\n    punpcklwd        m2, m1\n%else\n    punpcklwd        m2, m2\n%endif\n    dec           SHIFT\n    movdqu           m5, [pd_1]\n    movd             m6, SHIFT\n    pshufd           m2, m2, 0\n    mov           SHIFT, oxm\n    pslld            m5, m6\n%if %2 != 8\n    shl           SHIFT, %2-8       ; ox << (bitd - 8)\n%endif\n    movd             m3, SHIFT      ; OX\n    pshufd           m3, m3, 0\n%if WIN64 || ARCH_X86_32\n    mov           SHIFT, heightm\n%endif\n.loop:\n   SIMPLE_LOAD        %1, 10, srcq, m0\n%if %1 <= 4\n    punpcklwd         m0, m1\n    pmaddwd           m0, m2\n    paddd             m0, m5\n    psrad             m0, m4\n    paddd             m0, m3\n%else\n    pmulhw            m6, m0, m2\n    pmullw            m0, m2\n    punpckhwd         m1, m0, m6\n    punpcklwd         m0, m6\n    paddd             m0, m5\n    paddd             m1, m5\n    psrad             m0, m4\n    psrad             m1, m4\n    paddd             m0, m3\n    paddd             m1, m3\n%endif\n    packssdw          m0, m1\n%if %2 == 8\n    packuswb          m0, m0\n%else\n    CLIPW             m0, [pb_0], [max_pixels_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\ncglobal hevc_put_hevc_bi_w%1_%2, 4, 6, 10, dst, dststride, src, src2, height, denom, wx0, wx1, ox0, ox1\n    movifnidn        r5d, denomm\n%if %1 <= 4\n    pxor              m1, m1\n%endif\n    movd              m2, wx0m         ; WX0\n    lea              r5d, [r5d+14-%2]  ; shift = 14 - bitd + denom\n    movd              m3, wx1m         ; WX1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:28", "text": "%if %2 == 8\n    packuswb          m0, m0\n%else\n    CLIPW             m0, [pb_0], [max_pixels_%2]\n%endif\n    PEL_%2STORE%1   dstq, m0, m1\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, 2*MAX_PB_SIZE          ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n\ncglobal hevc_put_hevc_bi_w%1_%2, 4, 6, 10, dst, dststride, src, src2, height, denom, wx0, wx1, ox0, ox1\n    movifnidn        r5d, denomm\n%if %1 <= 4\n    pxor              m1, m1\n%endif\n    movd              m2, wx0m         ; WX0\n    lea              r5d, [r5d+14-%2]  ; shift = 14 - bitd + denom\n    movd              m3, wx1m         ; WX1\n    movd              m0, r5d          ; shift\n%if %1 <= 4\n    punpcklwd         m2, m1\n    punpcklwd         m3, m1\n%else\n    punpcklwd         m2, m2\n    punpcklwd         m3, m3\n%endif\n    inc              r5d\n    movd              m5, r5d          ; shift+1\n    pshufd            m2, m2, 0\n    mov              r5d, ox0m\n    pshufd            m3, m3, 0\n    add              r5d, ox1m\n%if %2 != 8\n    shl              r5d, %2-8         ; ox << (bitd - 8)\n%endif\n    inc              r5d\n    movd              m4, r5d          ; offset\n    pshufd            m4, m4, 0\n%if UNIX64\n%define h heightd\n%else\n    mov              r5d, heightm\n%define h r5d\n%endif\n    pslld             m4, m0\n\n.loop:\n   SIMPLE_LOAD        %1, 10, srcq,  m0\n   SIMPLE_LOAD        %1, 10, src2q, m8\n%if %1 <= 4\n    punpcklwd         m0, m1\n    punpcklwd         m8, m1\n    pmaddwd           m0, m3\n    pmaddwd           m8, m2\n    paddd             m0, m4\n    paddd             m0, m8\n    psrad             m0, m5\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:33", "text": "HEVC_PUT_HEVC_QPEL_HV 16, 10\n\n%endif ;AVX2\n%endif ; ARCH_X86_64\n\n%macro QPEL_FILTER_H 5\n%define %%table hevc_qpel_filters_avx512icl_h_%1\n%assign %%offset 4\n    dec %2q\n    shl %2q, 3\n%if PIC\n    lea %5q, [%%table]\n    %define FILTER %5q\n%else\n    %define FILTER %%table\n%endif\n    vpbroadcastd m%3, [FILTER + %2q + 0*%%offset]\n    vpbroadcastd m%4, [FILTER + %2q + 1*%%offset]\n%endmacro\n\n%macro QPEL_FILTER_V 5\n    vpbroadcastd m%3, [%5 + %2q + 4*%4]\n%endmacro\n\n%macro QPEL_LOAD_SHUF 2\n    movu m%1, [pb_qpel_shuffle_index +  0]\n    movu m%2, [pb_qpel_shuffle_index + 64]\n%endmacro\n\n; required: m0-m5\n; %1: dst register index\n; %2: name for src\n; %3: optional offset\n%macro QPEL_H_LOAD_COMPUTE 2-3\n%assign %%offset 0\n%if %0 == 3\n%assign %%offset %3\n%endif\n    pxor            m%1, m%1\n%if mmsize == 64\n    movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_hevc_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 1281, "line_end": 1340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:34", "text": "movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_hevc_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else\n    vpmovdw          [dstq], m6\n%endif\n%if %1 > 16\n    QPEL_H_LOAD_COMPUTE   7, src, 16\n    vpmovdw     [dstq + 32], m7\n%endif\n%if %1 > 32\n    QPEL_H_LOAD_COMPUTE   6, src, 32\n    QPEL_H_LOAD_COMPUTE   7, src, 48\n    vpmovdw     [dstq + 64], m6\n    vpmovdw     [dstq + 96], m7\n%endif\n    LOOP_END            dst, src, srcstride\n    RET\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_HV_AVX512ICL 2\ncglobal hevc_put_hevc_qpel_hv%1_%2, 6, 7, 27, dst, src, srcstride, height, mx, my, tmp\n%assign %%shift 6\n%assign %%extra 7\n    QPEL_FILTER_H    %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF    2, 3\n    lea            tmpq, [srcstrideq*3]\n    sub            srcq, tmpq\n    sub             myq, 1\n    shl             myq, 5\n%define %%table hevc_qpel_filters_avx512icl_v_%1\n%if PIC\n    lea tmpq, [%%table]\n    %define FILTER tmpq\n%else\n    %define FILTER %%table\n%endif\n%assign %%i 6\n%assign %%j 0\n%rep %1\n    QPEL_FILTER_V %1, my, %%i, %%j, FILTER\n    %assign %%i %%i+1\n    %assign %%j %%j+1\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/hevc_mc.asm", "line_start": 1321, "line_end": 1380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:5", "text": "mova              %4, [%2+32]\n%endif\n%endmacro\n\n%macro SIMPLE_LOAD 4    ;width, bitd, tab, r1\n%if %1 == 2 || (%2 == 8 && %1 <= 4)\n    movd              %4, [%3]                                               ; load data from source\n%elif %1 == 4 || (%2 == 8 && %1 <= 8)\n    movq              %4, [%3]                                               ; load data from source\n%elif notcpuflag(avx)\n    movu              %4, [%3]                                               ; load data from source\n%elif %1 <= 8 || (%2 == 8 && %1 <= 16)\n    movdqu           %4, [%3]\n%else\n    movu              %4, [%3]\n%endif\n%endmacro\n\n\n%macro EPEL_FILTER 5 ; bit depth, filter index, xmma, xmmb, gprtmp\n%if cpuflag(avx2)\n%assign %%offset 32\n%ifdef PIC\n    lea              %5q, [hevc_epel_filters_avx2_%1]\n    %define FILTER %5q\n%else\n    %define FILTER hevc_epel_filters_avx2_%1\n%endif\n%else\n%assign %%offset 16\n%ifdef PIC\n    lea              %5q, [hevc_epel_filters_sse4_%1]\n    %define FILTER %5q\n%else\n    %define FILTER hevc_epel_filters_sse4_%1\n%endif\n%endif ;cpuflag(avx2)\n    sub              %2q, 1\n%if cpuflag(avx2)\n    shl              %2q, 6                      ; multiply by 64\n  %else\n    shl              %2q, 5                      ; multiply by 32\n%endif\n    mova           %3, [FILTER + %2q]        ; get 2 first values of filters\n    mova           %4, [FILTER + %2q+%%offset]     ; get 2 last values of filters\n%endmacro\n\n%macro EPEL_HV_FILTER 1\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  6\n%define %%table  hevc_epel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  5\n%define %%table  hevc_epel_filters_sse4_%1\n%endif\n\n%ifdef PIC\n    lea           r3srcq, [%%table]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:6", "text": "%else\n    shl              %2q, 5                      ; multiply by 32\n%endif\n    mova           %3, [FILTER + %2q]        ; get 2 first values of filters\n    mova           %4, [FILTER + %2q+%%offset]     ; get 2 last values of filters\n%endmacro\n\n%macro EPEL_HV_FILTER 1\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  6\n%define %%table  hevc_epel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  5\n%define %%table  hevc_epel_filters_sse4_%1\n%endif\n\n%ifdef PIC\n    lea           r3srcq, [%%table]\n    %define FILTER r3srcq\n%else\n    %define FILTER %%table\n%endif\n    sub              mxq, 1\n    sub              myq, 1\n    shl              mxq, %%shift                ; multiply by 32\n    shl              myq, %%shift                ; multiply by 32\n    mova             m14, [FILTER + mxq]        ; get 2 first values of filters\n    mova             m15, [FILTER + mxq+%%offset]     ; get 2 last values of filters\n\n%if cpuflag(avx2)\n%define %%table  hevc_epel_filters_avx2_10\n%else\n%define %%table  hevc_epel_filters_sse4_10\n%endif\n%ifdef PIC\n    lea           r3srcq, [%%table]\n    %define FILTER r3srcq\n%else\n    %define FILTER %%table\n%endif\n    mova             m12, [FILTER + myq]        ; get 2 first values of filters\n    mova             m13, [FILTER + myq+%%offset]     ; get 2 last values of filters\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro QPEL_FILTER 2\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  7\n%define %%table  hevc_qpel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  6\n%define %%table  hevc_qpel_filters_sse4_%1\n%endif\n\n%ifdef PIC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:7", "text": "%define FILTER %%table\n%endif\n    mova             m12, [FILTER + myq]        ; get 2 first values of filters\n    mova             m13, [FILTER + myq+%%offset]     ; get 2 last values of filters\n    lea           r3srcq, [srcstrideq*3]\n%endmacro\n\n%macro QPEL_FILTER 2\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%assign %%shift  7\n%define %%table  hevc_qpel_filters_avx2_%1\n%else\n%assign %%offset 16\n%assign %%shift  6\n%define %%table  hevc_qpel_filters_sse4_%1\n%endif\n\n%ifdef PIC\n    lea         rfilterq, [%%table]\n%else\n    %define rfilterq %%table\n%endif\n    sub              %2q, 1\n    shl              %2q, %%shift                        ; multiply by 32\n    mova             m12, [rfilterq + %2q]               ; get 4 first values of filters\n    mova             m13, [rfilterq + %2q +   %%offset]  ; get 4 first values of filters\n    mova             m14, [rfilterq + %2q + 2*%%offset]  ; get 4 first values of filters\n    mova             m15, [rfilterq + %2q + 3*%%offset]  ; get 4 first values of filters\n%endmacro\n\n%macro EPEL_LOAD 4\n%if (%1 == 8 && %4 <= 4)\n%define %%load movd\n%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)\n%define %%load movq\n%else\n%define %%load movdqu\n%endif\n\n    %%load            m0, [%2q ]\n%ifnum %3\n    %%load            m1, [%2q+  %3]\n    %%load            m2, [%2q+2*%3]\n    %%load            m3, [%2q+3*%3]\n%else\n    %%load            m1, [%2q+  %3q]\n    %%load            m2, [%2q+2*%3q]\n    %%load            m3, [%2q+r3srcq]\n%endif\n%if %1 == 8\n%if %4 > 8\n    SBUTTERFLY        bw, 0, 1, 7\n    SBUTTERFLY        bw, 2, 3, 7\n%else\n    punpcklbw         m0, m1\n    punpcklbw         m2, m3\n%endif\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:14", "text": "%define %%reg1 %7\n%define %%reg3 %8\n%else\n%define %%reg0 m0\n%define %%reg2 m2\n%define %%reg1 m1\n%define %%reg3 m3\n%endif\n%if %1 == 8\n%if cpuflag(avx2) && (%0 == 5)\n%if %2 > 16\n    vperm2i128    m10, m0, m1, q0301\n%endif\n    vinserti128    m0, m0, xm1, 1\n    mova           m1, m10\n%if %2 > 16\n    vperm2i128    m10, m2, m3, q0301\n%endif\n    vinserti128    m2, m2, xm3, 1\n    mova           m3, m10\n%endif\n    pmaddubsw      %%reg0, %3   ;x1*c1+x2*c2\n    pmaddubsw      %%reg2, %4   ;x3*c3+x4*c4\n    paddw          %%reg0, %%reg2\n%if %2 > 8\n    pmaddubsw      %%reg1, %3\n    pmaddubsw      %%reg3, %4\n    paddw          %%reg1, %%reg3\n%endif\n%else\n    pmaddwd        %%reg0, %3\n    pmaddwd        %%reg2, %4\n    paddd          %%reg0, %%reg2\n%if %2 > 4\n    pmaddwd        %%reg1, %3\n    pmaddwd        %%reg3, %4\n    paddd          %%reg1, %%reg3\n%if %1 != 8\n    psrad          %%reg1, %1-8\n%endif\n%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro QPEL_HV_COMPUTE 4     ; width, bitdepth, filter idx\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%define %%table  hevc_qpel_filters_avx2_%2\n%else\n%assign %%offset 16\n%define %%table  hevc_qpel_filters_sse4_%2\n%endif\n\n%ifdef PIC\n    lea         rfilterq, [%%table]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:15", "text": "%endif\n%if %1 != 8\n    psrad          %%reg0, %1-8\n%endif\n    packssdw       %%reg0, %%reg1\n%endif\n%endmacro\n\n%macro QPEL_HV_COMPUTE 4     ; width, bitdepth, filter idx\n\n%if cpuflag(avx2)\n%assign %%offset 32\n%define %%table  hevc_qpel_filters_avx2_%2\n%else\n%assign %%offset 16\n%define %%table  hevc_qpel_filters_sse4_%2\n%endif\n\n%ifdef PIC\n    lea         rfilterq, [%%table]\n%else\n    %define rfilterq %%table\n%endif\n\n%if %2 == 8\n    pmaddubsw         m0, [rfilterq + %3q*8   ]   ;x1*c1+x2*c2\n    pmaddubsw         m2, [rfilterq + %3q*8+%%offset]   ;x3*c3+x4*c4\n    pmaddubsw         m4, [rfilterq + %3q*8+2*%%offset]   ;x5*c5+x6*c6\n    pmaddubsw         m6, [rfilterq + %3q*8+3*%%offset]   ;x7*c7+x8*c8\n    paddw             m0, m2\n    paddw             m4, m6\n    paddw             m0, m4\n%else\n    pmaddwd           m0, [rfilterq + %3q*8   ]\n    pmaddwd           m2, [rfilterq + %3q*8+%%offset]\n    pmaddwd           m4, [rfilterq + %3q*8+2*%%offset]\n    pmaddwd           m6, [rfilterq + %3q*8+3*%%offset]\n    paddd             m0, m2\n    paddd             m4, m6\n    paddd             m0, m4\n%if %2 != 8\n    psrad             m0, %2-8\n%endif\n%if %1 > 4\n    pmaddwd           m1, [rfilterq + %3q*8   ]\n    pmaddwd           m3, [rfilterq + %3q*8+%%offset]\n    pmaddwd           m5, [rfilterq + %3q*8+2*%%offset]\n    pmaddwd           m7, [rfilterq + %3q*8+3*%%offset]\n    paddd             m1, m3\n    paddd             m5, m7\n    paddd             m1, m5\n%if %2 != 8\n    psrad             m1, %2-8\n%endif\n%endif\n    p%4               m0, m1\n%endif\n%endmacro\n\n%macro QPEL_COMPUTE 2-3     ; width, bitdepth", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:32", "text": "HEVC_PUT_HEVC_QPEL 12, 8\nHEVC_PUT_HEVC_QPEL 16, 8\n\nHEVC_PUT_HEVC_QPEL 4, 10\nHEVC_PUT_HEVC_QPEL 8, 10\n\nHEVC_PUT_HEVC_QPEL 4, 12\nHEVC_PUT_HEVC_QPEL 8, 12\n\nHEVC_PUT_HEVC_QPEL_HV 2, 8\nHEVC_PUT_HEVC_QPEL_HV 4, 8\nHEVC_PUT_HEVC_QPEL_HV 6, 8\nHEVC_PUT_HEVC_QPEL_HV 8, 8\n\nHEVC_PUT_HEVC_QPEL_HV 2, 10\nHEVC_PUT_HEVC_QPEL_HV 4, 10\nHEVC_PUT_HEVC_QPEL_HV 6, 10\nHEVC_PUT_HEVC_QPEL_HV 8, 10\n\nHEVC_PUT_HEVC_QPEL_HV 2, 12\nHEVC_PUT_HEVC_QPEL_HV 4, 12\nHEVC_PUT_HEVC_QPEL_HV 6, 12\nHEVC_PUT_HEVC_QPEL_HV 8, 12\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2  ; adds ff_ and _avx2 to function name & enables 256b registers : m0 for 256b, xm0 for 128b. cpuflag(avx2) = 1 / notcpuflag(avx) = 0\n\nHEVC_BI_PEL_PIXELS 32, 8\nHEVC_BI_PEL_PIXELS 16, 10\n\nHEVC_PUT_HEVC_EPEL 32, 8\nHEVC_PUT_HEVC_EPEL 16, 10\n\nHEVC_PUT_HEVC_EPEL_HV 16, 10\nHEVC_PUT_HEVC_EPEL_HV 32, 8\n\nHEVC_PUT_HEVC_QPEL 32, 8\n\nHEVC_PUT_HEVC_QPEL 16, 10\n\nHEVC_PUT_HEVC_QPEL_HV 16, 10\n\n%endif ;AVX2\n%endif ; ARCH_X86_64\n\n%macro QPEL_FILTER_H 5\n%define %%table hevc_qpel_filters_avx512icl_h_%1\n%assign %%offset 4\n    dec %2q\n    shl %2q, 3\n%ifdef PIC\n    lea %5q, [%%table]\n    %define FILTER %5q\n%else\n    %define FILTER %%table\n%endif\n    vpbroadcastd m%3, [FILTER + %2q + 0*%%offset]\n    vpbroadcastd m%4, [FILTER + %2q + 1*%%offset]\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 1241, "line_end": 1300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:33", "text": "HEVC_PUT_HEVC_QPEL_HV 16, 10\n\n%endif ;AVX2\n%endif ; ARCH_X86_64\n\n%macro QPEL_FILTER_H 5\n%define %%table hevc_qpel_filters_avx512icl_h_%1\n%assign %%offset 4\n    dec %2q\n    shl %2q, 3\n%ifdef PIC\n    lea %5q, [%%table]\n    %define FILTER %5q\n%else\n    %define FILTER %%table\n%endif\n    vpbroadcastd m%3, [FILTER + %2q + 0*%%offset]\n    vpbroadcastd m%4, [FILTER + %2q + 1*%%offset]\n%endmacro\n\n%macro QPEL_FILTER_V 5\n    vpbroadcastd m%3, [%5 + %2q + 4*%4]\n%endmacro\n\n%macro QPEL_LOAD_SHUF 2\n    movu m%1, [pb_qpel_shuffle_index +  0]\n    movu m%2, [pb_qpel_shuffle_index + 64]\n%endmacro\n\n; required: m0-m5\n; %1: dst register index\n; %2: name for src\n; %3: optional offset\n%macro QPEL_H_LOAD_COMPUTE 2-3\n%assign %%offset 0\n%if %0 == 3\n%assign %%offset %3\n%endif\n    pxor            m%1, m%1\n%if mmsize == 64\n    movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_hevc_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 1281, "line_end": 1340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:34", "text": "movu            ym4, [%2q + %%offset - 3]\n%else\n    movu            xm4, [%2q + %%offset - 3]\n%endif\n    vpermb           m5, m2, m4\n    vpermb           m4, m3, m4\n    vpdpbusd        m%1, m5, m0\n    vpdpbusd        m%1, m4, m1\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_AVX512ICL 2\ncglobal hevc_put_hevc_qpel_h%1_%2, 5, 6, 8, dst, src, srcstride, height, mx, tmp\n    QPEL_FILTER_H   %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF   2, 3\n.loop:\n    QPEL_H_LOAD_COMPUTE   6, src\n%if %1 == 4\n    vpmovdw             xm6, m6\n    movq             [dstq], xm6\n%else\n    vpmovdw          [dstq], m6\n%endif\n%if %1 > 16\n    QPEL_H_LOAD_COMPUTE   7, src, 16\n    vpmovdw     [dstq + 32], m7\n%endif\n%if %1 > 32\n    QPEL_H_LOAD_COMPUTE   6, src, 32\n    QPEL_H_LOAD_COMPUTE   7, src, 48\n    vpmovdw     [dstq + 64], m6\n    vpmovdw     [dstq + 96], m7\n%endif\n    LOOP_END            dst, src, srcstride\n    RET\n%endmacro\n\n%macro HEVC_PUT_HEVC_QPEL_HV_AVX512ICL 2\ncglobal hevc_put_hevc_qpel_hv%1_%2, 6, 7, 27, dst, src, srcstride, height, mx, my, tmp\n%assign %%shift 6\n%assign %%extra 7\n    QPEL_FILTER_H    %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF    2, 3\n    lea            tmpq, [srcstrideq*3]\n    sub            srcq, tmpq\n    sub             myq, 1\n    shl             myq, 5\n%define %%table hevc_qpel_filters_avx512icl_v_%1\n%ifdef PIC\n    lea tmpq, [%%table]\n    %define FILTER tmpq\n%else\n    %define FILTER %%table\n%endif\n%assign %%i 6\n%assign %%j 0\n%rep %1\n    QPEL_FILTER_V %1, my, %%i, %%j, FILTER\n    %assign %%i %%i+1\n    %assign %%j %%j+1\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 1321, "line_end": 1380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_mc.asm:35", "text": "QPEL_FILTER_H    %1, mx, 0, 1, tmp\n    QPEL_LOAD_SHUF    2, 3\n    lea            tmpq, [srcstrideq*3]\n    sub            srcq, tmpq\n    sub             myq, 1\n    shl             myq, 5\n%define %%table hevc_qpel_filters_avx512icl_v_%1\n%ifdef PIC\n    lea tmpq, [%%table]\n    %define FILTER tmpq\n%else\n    %define FILTER %%table\n%endif\n%assign %%i 6\n%assign %%j 0\n%rep %1\n    QPEL_FILTER_V %1, my, %%i, %%j, FILTER\n    %assign %%i %%i+1\n    %assign %%j %%j+1\n%endrep\n%rep %%extra\n    QPEL_H_LOAD_COMPUTE %%i, src\n    add srcq, srcstrideq\n%assign %%i %%i+1\n%endrep\n.loop:\n    QPEL_H_LOAD_COMPUTE %%i, src\n    vpmulld           m22, m14, m6\n    vpmulld           m23, m15, m7\n    vpmulld           m24, m16, m8\n    vpmulld           m25, m17, m9\n    vpaddd            m26, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpmulld           m22, m18, m10\n    vpmulld           m23, m19, m11\n    vpmulld           m24, m20, m12\n    vpmulld           m25, m21, m13\n    vpaddd            m22, m22, m23\n    vpaddd            m24, m25\n    vpaddd            m26, m24\n    vpaddd            m22, m26\n    mova              m14, m15\n    mova              m15, m16\n    mova              m16, m17\n    mova              m17, m18\n    mova              m18, m19\n    mova              m19, m20\n    mova              m20, m21\n    vpsrad            m22, %%shift\n    vpmovdw        [dstq], m22\n    LOOP_END          dst, src, srcstride\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\n\nINIT_XMM avx512icl", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_mc.asm", "license": "LGPL-2.1", "commit": "7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7d9f1f5485f5ceabc943b08f16fb9eb10ca6bbd5/libavcodec/x86/hevc_mc.asm", "line_start": 1361, "line_end": 1420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC 8bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npb_edge_shuffle: times 2 db 1, 2, 0, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1\npb_eo:                   db -1, 0, 1, 0, 0, -1, 0, 1, -1, -1, 1, 1, 1, -1, -1, 1\ncextern pb_1\ncextern pb_2\n\nSECTION .text\n\n;******************************************************************************\n;SAO Band Filter\n;******************************************************************************\n\n%macro HEVC_SAO_BAND_FILTER_INIT 0\n    and            leftq, 31\n    movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]\n    SPLATW            m5, [offsetq + 4]\n    SPLATW            m6, [offsetq + 6]\n    SPLATW            m7, [offsetq + 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:2", "text": "movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]\n    SPLATW            m5, [offsetq + 4]\n    SPLATW            m6, [offsetq + 6]\n    SPLATW            m7, [offsetq + 8]\n%else\n    movq              m7, [offsetq + 2]\n    SPLATW            m4, m7, 0\n    SPLATW            m5, m7, 1\n    SPLATW            m6, m7, 2\n    SPLATW            m7, m7, 3\n%endif\n\n%if ARCH_X86_64\n    pxor             m14, m14\n\n%else ; ARCH_X86_32\n    mova  [rsp+mmsize*0], m0\n    mova  [rsp+mmsize*1], m1\n    mova  [rsp+mmsize*2], m2\n    mova  [rsp+mmsize*3], m3\n    mova  [rsp+mmsize*4], m4\n    mova  [rsp+mmsize*5], m5\n    mova  [rsp+mmsize*6], m6\n    pxor              m0, m0\n    %assign MMSIZE mmsize\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_COMPUTE 2\n    psraw             %1, %2, 3\n%if ARCH_X86_64\n    pcmpeqw          m10, %1, m0\n    pcmpeqw          m11, %1, m1\n    pcmpeqw          m12, %1, m2\n    pcmpeqw           %1, m3\n    pand             m10, m4\n    pand             m11, m5\n    pand             m12, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:3", "text": "%assign MMSIZE mmsize\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_COMPUTE 2\n    psraw             %1, %2, 3\n%if ARCH_X86_64\n    pcmpeqw          m10, %1, m0\n    pcmpeqw          m11, %1, m1\n    pcmpeqw          m12, %1, m2\n    pcmpeqw           %1, m3\n    pand             m10, m4\n    pand             m11, m5\n    pand             m12, m6\n    pand              %1, m7\n    por              m10, m11\n    por              m12, %1\n    por              m10, m12\n    paddw             %2, m10\n%else ; ARCH_X86_32\n    pcmpeqw           m4, %1, [rsp+MMSIZE*0]\n    pcmpeqw           m5, %1, [rsp+MMSIZE*1]\n    pcmpeqw           m6, %1, [rsp+MMSIZE*2]\n    pcmpeqw           %1, [rsp+MMSIZE*3]\n    pand              m4, [rsp+MMSIZE*4]\n    pand              m5, [rsp+MMSIZE*5]\n    pand              m6, [rsp+MMSIZE*6]\n    pand              %1, m7\n    por               m4, m5\n    por               m6, %1\n    por               m4, m6\n    paddw             %2, m4\n%endif ; ARCH\n%endmacro\n\n;void ff_hevc_sao_band_filter_<width>_8_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                             int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro HEVC_SAO_BAND_FILTER 2\ncglobal hevc_sao_band_filter_%1_8, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    HEVC_SAO_BAND_FILTER_INIT\n\nalign 16\n.loop:\n%if %1 == 8\n    movq              m8, [srcq]\n    punpcklbw         m8, m14\n    HEVC_SAO_BAND_FILTER_COMPUTE m9, m8\n    packuswb          m8, m14\n    movq          [dstq], m8\n%endif ; %1 == 8\n\n%assign i 0\n%rep %2\n    mova             m13, [srcq + i]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:4", "text": ";void ff_hevc_sao_band_filter_<width>_8_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                             int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro HEVC_SAO_BAND_FILTER 2\ncglobal hevc_sao_band_filter_%1_8, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    HEVC_SAO_BAND_FILTER_INIT\n\nalign 16\n.loop:\n%if %1 == 8\n    movq              m8, [srcq]\n    punpcklbw         m8, m14\n    HEVC_SAO_BAND_FILTER_COMPUTE m9, m8\n    packuswb          m8, m14\n    movq          [dstq], m8\n%endif ; %1 == 8\n\n%assign i 0\n%rep %2\n    mova             m13, [srcq + i]\n    punpcklbw         m8, m13, m14\n    HEVC_SAO_BAND_FILTER_COMPUTE m9,  m8\n    punpckhbw        m13, m14\n    HEVC_SAO_BAND_FILTER_COMPUTE m9, m13\n    packuswb          m8, m13\n    mova      [dstq + i], m8\n%assign i i+mmsize\n%endrep\n\n%if %1 == 48\nINIT_XMM cpuname\n\n    mova             m13, [srcq + i]\n    punpcklbw         m8, m13, m14\n    HEVC_SAO_BAND_FILTER_COMPUTE m9,  m8\n    punpckhbw        m13, m14\n    HEVC_SAO_BAND_FILTER_COMPUTE m9, m13\n    packuswb          m8, m13\n    mova      [dstq + i], m8\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif ; %1 == 48\n\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 0\nHEVC_SAO_BAND_FILTER  8, 0\nHEVC_SAO_BAND_FILTER 16, 1\nHEVC_SAO_BAND_FILTER 32, 2\nHEVC_SAO_BAND_FILTER 48, 2\nHEVC_SAO_BAND_FILTER 64, 4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:5", "text": "INIT_YMM cpuname\n%endif\n%endif ; %1 == 48\n\n    add             dstq, dststrideq             ; dst += dststride\n    add             srcq, srcstrideq             ; src += srcstride\n    dec          heightd                         ; cmp height\n    jnz               .loop                      ; height loop\n    RET\n%endmacro\n\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 0\nHEVC_SAO_BAND_FILTER  8, 0\nHEVC_SAO_BAND_FILTER 16, 1\nHEVC_SAO_BAND_FILTER 32, 2\nHEVC_SAO_BAND_FILTER 48, 2\nHEVC_SAO_BAND_FILTER 64, 4\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER  8, 0\nHEVC_SAO_BAND_FILTER 16, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 32, 1\nHEVC_SAO_BAND_FILTER 48, 1\nHEVC_SAO_BAND_FILTER 64, 2\n%endif\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define MAX_PB_SIZE  64\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro HEVC_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE\n    imul       b_strideq, EDGE_SRCSTRIDE\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]\n    add        b_strideq, tmpq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:6", "text": "%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro HEVC_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE\n    imul       b_strideq, EDGE_SRCSTRIDE\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]\n    add        b_strideq, tmpq\n%endmacro\n\n%macro HEVC_SAO_EDGE_FILTER_COMPUTE 1\n    pminub            m4, m1, m2\n    pminub            m5, m1, m3\n    pcmpeqb           m2, m4\n    pcmpeqb           m3, m5\n    pcmpeqb           m4, m1\n    pcmpeqb           m5, m1\n    psubb             m4, m2\n    psubb             m5, m3\n    paddb             m4, m6\n    paddb             m4, m5\n\n    pshufb            m2, m0, m4\n%if %1 > 8\n    punpckhbw         m5, m7, m1\n    punpckhbw         m4, m2, m7\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m5, m4\n    pmaddubsw         m3, m2\n    packuswb          m3, m5\n%else\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m3, m2\n    packuswb          m3, m3\n%endif\n%endmacro\n\n;void ff_hevc_sao_edge_filter_<width>_8_<opt>(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride_dst, int16_t *sao_offset_val,\n;                                             int eo, int width, int height);\n%macro HEVC_SAO_EDGE_FILTER 2-3\n%if ARCH_X86_64\ncglobal hevc_sao_edge_filter_%1_8, 4, 9, 8, dst, src, dststride, offset, eo, a_stride, b_stride, height, tmp\n%define tmp2q heightq\n    HEVC_SAO_EDGE_FILTER_INIT\n    mov          heightd, r6m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:7", "text": "pmaddubsw         m5, m4\n    pmaddubsw         m3, m2\n    packuswb          m3, m5\n%else\n    punpcklbw         m3, m7, m1\n    punpcklbw         m2, m7\n    pmaddubsw         m3, m2\n    packuswb          m3, m3\n%endif\n%endmacro\n\n;void ff_hevc_sao_edge_filter_<width>_8_<opt>(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride_dst, int16_t *sao_offset_val,\n;                                             int eo, int width, int height);\n%macro HEVC_SAO_EDGE_FILTER 2-3\n%if ARCH_X86_64\ncglobal hevc_sao_edge_filter_%1_8, 4, 9, 8, dst, src, dststride, offset, eo, a_stride, b_stride, height, tmp\n%define tmp2q heightq\n    HEVC_SAO_EDGE_FILTER_INIT\n    mov          heightd, r6m\n\n%else ; ARCH_X86_32\ncglobal hevc_sao_edge_filter_%1_8, 1, 6, 8, dst, src, dststride, a_stride, b_stride, height\n%define eoq   srcq\n%define tmpq  heightq\n%define tmp2q dststrideq\n%define offsetq heightq\n    HEVC_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n%endif ; ARCH\n\n%if mmsize > 16\n    vbroadcasti128    m0, [offsetq]\n%else\n    movu              m0, [offsetq]\n%endif\n    mova              m1, [pb_edge_shuffle]\n    packsswb          m0, m0\n    mova              m7, [pb_1]\n    pshufb            m0, m1\n    mova              m6, [pb_2]\n%if ARCH_X86_32\n    mov          heightd, r6m\n%endif\n\nalign 16\n.loop:\n\n%if %1 == 8\n    movq              m1, [srcq]\n    movq              m2, [srcq + a_strideq]\n    movq              m3, [srcq + b_strideq]\n    HEVC_SAO_EDGE_FILTER_COMPUTE %1\n    movq          [dstq], m3\n%endif\n\n%assign i 0\n%rep %2\n    mova              m1, [srcq + i]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:8", "text": "pshufb            m0, m1\n    mova              m6, [pb_2]\n%if ARCH_X86_32\n    mov          heightd, r6m\n%endif\n\nalign 16\n.loop:\n\n%if %1 == 8\n    movq              m1, [srcq]\n    movq              m2, [srcq + a_strideq]\n    movq              m3, [srcq + b_strideq]\n    HEVC_SAO_EDGE_FILTER_COMPUTE %1\n    movq          [dstq], m3\n%endif\n\n%assign i 0\n%rep %2\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    HEVC_SAO_EDGE_FILTER_COMPUTE %1\n    mov%3     [dstq + i], m3\n%assign i i+mmsize\n%endrep\n\n%if %1 == 48\nINIT_XMM cpuname\n\n    mova              m1, [srcq + i]\n    movu              m2, [srcq + a_strideq + i]\n    movu              m3, [srcq + b_strideq + i]\n    HEVC_SAO_EDGE_FILTER_COMPUTE %1\n    mova      [dstq + i], m3\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n%endif\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nHEVC_SAO_EDGE_FILTER  8, 0\nHEVC_SAO_EDGE_FILTER 16, 1, a\nHEVC_SAO_EDGE_FILTER 32, 2, a\nHEVC_SAO_EDGE_FILTER 48, 2, a\nHEVC_SAO_EDGE_FILTER 64, 4, a\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 32, 1, a\nHEVC_SAO_EDGE_FILTER 48, 1, u\nHEVC_SAO_EDGE_FILTER 64, 2, a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao.asm:9", "text": "add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nHEVC_SAO_EDGE_FILTER  8, 0\nHEVC_SAO_EDGE_FILTER 16, 1, a\nHEVC_SAO_EDGE_FILTER 32, 2, a\nHEVC_SAO_EDGE_FILTER 48, 2, a\nHEVC_SAO_EDGE_FILTER 64, 4, a\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 32, 1, a\nHEVC_SAO_EDGE_FILTER 48, 1, u\nHEVC_SAO_EDGE_FILTER 64, 2, a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao.asm", "line_start": 321, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for HEVC 10/12bit decoding\n;*\n;* Copyright (c) 2013 Pierre-Edouard LEPERE\n;* Copyright (c) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npw_m2:     times 16 dw -2\npw_mask10: times 16 dw 0x03FF\npw_mask12: times 16 dw 0x0FFF\npb_eo:              db -1, 0, 1, 0, 0, -1, 0, 1, -1, -1, 1, 1, 1, -1, -1, 1\ncextern pw_m1\ncextern pw_1\ncextern pw_2\n\nSECTION .text\n\n;******************************************************************************\n;SAO Band Filter\n;******************************************************************************\n\n%macro HEVC_SAO_BAND_FILTER_INIT 1\n    and            leftq, 31\n    movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:2", "text": "%macro HEVC_SAO_BAND_FILTER_INIT 1\n    and            leftq, 31\n    movd             xm0, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm1, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm2, leftd\n    add            leftq, 1\n    and            leftq, 31\n    movd             xm3, leftd\n\n    SPLATW            m0, xm0\n    SPLATW            m1, xm1\n    SPLATW            m2, xm2\n    SPLATW            m3, xm3\n%if mmsize > 16\n    SPLATW            m4, [offsetq + 2]\n    SPLATW            m5, [offsetq + 4]\n    SPLATW            m6, [offsetq + 6]\n    SPLATW            m7, [offsetq + 8]\n%else\n    movq              m7, [offsetq + 2]\n    SPLATW            m4, m7, 0\n    SPLATW            m5, m7, 1\n    SPLATW            m6, m7, 2\n    SPLATW            m7, m7, 3\n%endif\n\n%if ARCH_X86_64\n    mova             m13, [pw_mask %+ %1]\n    pxor             m14, m14\n\n%else ; ARCH_X86_32\n    mova  [rsp+mmsize*0], m0\n    mova  [rsp+mmsize*1], m1\n    mova  [rsp+mmsize*2], m2\n    mova  [rsp+mmsize*3], m3\n    mova  [rsp+mmsize*4], m4\n    mova  [rsp+mmsize*5], m5\n    mova  [rsp+mmsize*6], m6\n    mova              m1, [pw_mask %+ %1]\n    pxor              m0, m0\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n;void ff_hevc_sao_band_filter_<width>_<depth>_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                                   int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro HEVC_SAO_BAND_FILTER 3\ncglobal hevc_sao_band_filter_%2_%1, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    HEVC_SAO_BAND_FILTER_INIT %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:3", "text": "mova  [rsp+mmsize*4], m4\n    mova  [rsp+mmsize*5], m5\n    mova  [rsp+mmsize*6], m6\n    mova              m1, [pw_mask %+ %1]\n    pxor              m0, m0\n    %define m14 m0\n    %define m13 m1\n    %define  m9 m2\n    %define  m8 m3\n%endif ; ARCH\nDEFINE_ARGS dst, src, dststride, srcstride, offset, height\n    mov          heightd, r7m\n%endmacro\n\n;void ff_hevc_sao_band_filter_<width>_<depth>_<opt>(uint8_t *_dst, const uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src,\n;                                                   int16_t *sao_offset_val, int sao_left_class, int width, int height);\n%macro HEVC_SAO_BAND_FILTER 3\ncglobal hevc_sao_band_filter_%2_%1, 6, 6, 15, 7*mmsize*ARCH_X86_32, dst, src, dststride, srcstride, offset, left\n    HEVC_SAO_BAND_FILTER_INIT %1\n\nalign 16\n.loop:\n\n%assign i 0\n%assign j 0\n%rep %3\n%assign k 8+(j&1)\n%assign l 9-(j&1)\n    mova          m %+ k, [srcq + i]\n    psraw         m %+ l, m %+ k, %1-5\n%if ARCH_X86_64\n    pcmpeqw          m10, m %+ l, m0\n    pcmpeqw          m11, m %+ l, m1\n    pcmpeqw          m12, m %+ l, m2\n    pcmpeqw       m %+ l, m3\n    pand             m10, m4\n    pand             m11, m5\n    pand             m12, m6\n    pand          m %+ l, m7\n    por              m10, m11\n    por              m12, m %+ l\n    por              m10, m12\n    paddw         m %+ k, m10\n%else ; ARCH_X86_32\n    pcmpeqw           m4, m %+ l, [rsp+mmsize*0]\n    pcmpeqw           m5, m %+ l, [rsp+mmsize*1]\n    pcmpeqw           m6, m %+ l, [rsp+mmsize*2]\n    pcmpeqw       m %+ l, [rsp+mmsize*3]\n    pand              m4, [rsp+mmsize*4]\n    pand              m5, [rsp+mmsize*5]\n    pand              m6, [rsp+mmsize*6]\n    pand          m %+ l, m7\n    por               m4, m5\n    por               m6, m %+ l\n    por               m4, m6\n    paddw         m %+ k, m4\n%endif ; ARCH\n    CLIPW             m %+ k, m14, m13\n    mova      [dstq + i], m %+ k\n%assign i i+mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:4", "text": "por              m12, m %+ l\n    por              m10, m12\n    paddw         m %+ k, m10\n%else ; ARCH_X86_32\n    pcmpeqw           m4, m %+ l, [rsp+mmsize*0]\n    pcmpeqw           m5, m %+ l, [rsp+mmsize*1]\n    pcmpeqw           m6, m %+ l, [rsp+mmsize*2]\n    pcmpeqw       m %+ l, [rsp+mmsize*3]\n    pand              m4, [rsp+mmsize*4]\n    pand              m5, [rsp+mmsize*5]\n    pand              m6, [rsp+mmsize*6]\n    pand          m %+ l, m7\n    por               m4, m5\n    por               m6, m %+ l\n    por               m4, m6\n    paddw         m %+ k, m4\n%endif ; ARCH\n    CLIPW             m %+ k, m14, m13\n    mova      [dstq + i], m %+ k\n%assign i i+mmsize\n%assign j j+1\n%endrep\n\n    add             dstq, dststrideq\n    add             srcq, srcstrideq\n    dec          heightd\n    jg .loop\n    RET\n%endmacro\n\n%macro HEVC_SAO_BAND_FILTER_FUNCS 0\nHEVC_SAO_BAND_FILTER 10,  8, 1\nHEVC_SAO_BAND_FILTER 10, 16, 2\nHEVC_SAO_BAND_FILTER 10, 32, 4\nHEVC_SAO_BAND_FILTER 10, 48, 6\nHEVC_SAO_BAND_FILTER 10, 64, 8\n\nHEVC_SAO_BAND_FILTER 12,  8, 1\nHEVC_SAO_BAND_FILTER 12, 16, 2\nHEVC_SAO_BAND_FILTER 12, 32, 4\nHEVC_SAO_BAND_FILTER 12, 48, 6\nHEVC_SAO_BAND_FILTER 12, 64, 8\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 10, 16, 1\nHEVC_SAO_BAND_FILTER 10, 32, 2\nHEVC_SAO_BAND_FILTER 10, 48, 3\nHEVC_SAO_BAND_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 12,  8, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:5", "text": "HEVC_SAO_BAND_FILTER 12, 48, 6\nHEVC_SAO_BAND_FILTER 12, 64, 8\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nHEVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 10, 16, 1\nHEVC_SAO_BAND_FILTER 10, 32, 2\nHEVC_SAO_BAND_FILTER 10, 48, 3\nHEVC_SAO_BAND_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_BAND_FILTER 12,  8, 1\nINIT_YMM avx2\nHEVC_SAO_BAND_FILTER 12, 16, 1\nHEVC_SAO_BAND_FILTER 12, 32, 2\nHEVC_SAO_BAND_FILTER 12, 48, 3\nHEVC_SAO_BAND_FILTER 12, 64, 4\n%endif\n\n;******************************************************************************\n;SAO Edge Filter\n;******************************************************************************\n\n%define MAX_PB_SIZE  64\n%define PADDING_SIZE 64 ; AV_INPUT_BUFFER_PADDING_SIZE\n%define EDGE_SRCSTRIDE 2 * MAX_PB_SIZE + PADDING_SIZE\n\n%macro PMINUW 4\n%if cpuflag(sse4)\n    pminuw            %1, %2, %3\n%else\n    psubusw           %4, %2, %3\n    psubw             %1, %2, %4\n%endif\n%endmacro\n\n%macro HEVC_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE >> 1\n    imul       b_strideq, EDGE_SRCSTRIDE >> 1\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:6", "text": "psubw             %1, %2, %4\n%endif\n%endmacro\n\n%macro HEVC_SAO_EDGE_FILTER_INIT 0\n%if WIN64\n    movsxd           eoq, dword eom\n%elif ARCH_X86_64\n    movsxd           eoq, eod\n%else\n    mov              eoq, r4m\n%endif\n    lea            tmp2q, [pb_eo]\n    movsx      a_strideq, byte [tmp2q+eoq*4+1]\n    movsx      b_strideq, byte [tmp2q+eoq*4+3]\n    imul       a_strideq, EDGE_SRCSTRIDE >> 1\n    imul       b_strideq, EDGE_SRCSTRIDE >> 1\n    movsx           tmpq, byte [tmp2q+eoq*4]\n    add        a_strideq, tmpq\n    movsx           tmpq, byte [tmp2q+eoq*4+2]\n    add        b_strideq, tmpq\n%endmacro\n\n;void ff_hevc_sao_edge_filter_<width>_<depth>_<opt>(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride_dst, int16_t *sao_offset_val,\n;                                                   int eo, int width, int height);\n%macro HEVC_SAO_EDGE_FILTER 3\n%if ARCH_X86_64\ncglobal hevc_sao_edge_filter_%2_%1, 4, 9, 16, dst, src, dststride, offset, eo, a_stride, b_stride, height, tmp\n%define tmp2q heightq\n    HEVC_SAO_EDGE_FILTER_INIT\n    mov          heightd, r6m\n    add        a_strideq, a_strideq\n    add        b_strideq, b_strideq\n\n%else ; ARCH_X86_32\ncglobal hevc_sao_edge_filter_%2_%1, 1, 6, 8, 5*mmsize, dst, src, dststride, a_stride, b_stride, height\n%define eoq   srcq\n%define tmpq  heightq\n%define tmp2q dststrideq\n%define offsetq heightq\n%define m8 m1\n%define m9 m2\n%define m10 m3\n%define m11 m4\n%define m12 m5\n    HEVC_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n    add        a_strideq, a_strideq\n    add        b_strideq, b_strideq\n\n%endif ; ARCH\n\n%if mmsize > 16\n    SPLATW            m8, [offsetq+2]\n    SPLATW            m9, [offsetq+4]\n    SPLATW           m10, [offsetq+0]\n    SPLATW           m11, [offsetq+6]\n    SPLATW           m12, [offsetq+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:7", "text": "%define m8 m1\n%define m9 m2\n%define m10 m3\n%define m11 m4\n%define m12 m5\n    HEVC_SAO_EDGE_FILTER_INIT\n    mov             srcq, srcm\n    mov          offsetq, r3m\n    mov       dststrideq, dststridem\n    add        a_strideq, a_strideq\n    add        b_strideq, b_strideq\n\n%endif ; ARCH\n\n%if mmsize > 16\n    SPLATW            m8, [offsetq+2]\n    SPLATW            m9, [offsetq+4]\n    SPLATW           m10, [offsetq+0]\n    SPLATW           m11, [offsetq+6]\n    SPLATW           m12, [offsetq+8]\n%else\n    movq             m10, [offsetq+0]\n    movd             m12, [offsetq+6]\n    SPLATW            m8, xm10, 1\n    SPLATW            m9, xm10, 2\n    SPLATW           m10, xm10, 0\n    SPLATW           m11, xm12, 0\n    SPLATW           m12, xm12, 1\n%endif\n    pxor              m0, m0\n%if ARCH_X86_64\n    mova             m13, [pw_m1]\n    mova             m14, [pw_1]\n    mova             m15, [pw_2]\n%else\n    mov          heightd, r6m\n    mova  [rsp+mmsize*0], m8\n    mova  [rsp+mmsize*1], m9\n    mova  [rsp+mmsize*2], m10\n    mova  [rsp+mmsize*3], m11\n    mova  [rsp+mmsize*4], m12\n%endif\n\nalign 16\n.loop:\n\n%assign i 0\n%rep %3\n    mova              m1, [srcq + i]\n    movu              m2, [srcq+a_strideq + i]\n    movu              m3, [srcq+b_strideq + i]\n    PMINUW            m4, m1, m2, m6\n    PMINUW            m5, m1, m3, m7\n    pcmpeqw           m2, m4\n    pcmpeqw           m3, m5\n    pcmpeqw           m4, m1\n    pcmpeqw           m5, m1\n    psubw             m4, m2\n    psubw             m5, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:8", "text": "mova  [rsp+mmsize*4], m12\n%endif\n\nalign 16\n.loop:\n\n%assign i 0\n%rep %3\n    mova              m1, [srcq + i]\n    movu              m2, [srcq+a_strideq + i]\n    movu              m3, [srcq+b_strideq + i]\n    PMINUW            m4, m1, m2, m6\n    PMINUW            m5, m1, m3, m7\n    pcmpeqw           m2, m4\n    pcmpeqw           m3, m5\n    pcmpeqw           m4, m1\n    pcmpeqw           m5, m1\n    psubw             m4, m2\n    psubw             m5, m3\n\n    paddw             m4, m5\n    pcmpeqw           m2, m4, [pw_m2]\n%if ARCH_X86_64\n    pcmpeqw           m3, m4, m13\n    pcmpeqw           m5, m4, m0\n    pcmpeqw           m6, m4, m14\n    pcmpeqw           m7, m4, m15\n    pand              m2, m8\n    pand              m3, m9\n    pand              m5, m10\n    pand              m6, m11\n    pand              m7, m12\n%else\n    pcmpeqw           m3, m4, [pw_m1]\n    pcmpeqw           m5, m4, m0\n    pcmpeqw           m6, m4, [pw_1]\n    pcmpeqw           m7, m4, [pw_2]\n    pand              m2, [rsp+mmsize*0]\n    pand              m3, [rsp+mmsize*1]\n    pand              m5, [rsp+mmsize*2]\n    pand              m6, [rsp+mmsize*3]\n    pand              m7, [rsp+mmsize*4]\n%endif\n    paddw             m2, m3\n    paddw             m5, m6\n    paddw             m2, m7\n    paddw             m2, m1\n    paddw             m2, m5\n    CLIPW             m2, m0, [pw_mask %+ %1]\n    mova      [dstq + i], m2\n%assign i i+mmsize\n%endrep\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:9", "text": "pand              m6, [rsp+mmsize*3]\n    pand              m7, [rsp+mmsize*4]\n%endif\n    paddw             m2, m3\n    paddw             m5, m6\n    paddw             m2, m7\n    paddw             m2, m1\n    paddw             m2, m5\n    CLIPW             m2, m0, [pw_mask %+ %1]\n    mova      [dstq + i], m2\n%assign i i+mmsize\n%endrep\n\n    add             dstq, dststrideq\n    add             srcq, EDGE_SRCSTRIDE\n    dec          heightd\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nHEVC_SAO_EDGE_FILTER 10,  8, 1\nHEVC_SAO_EDGE_FILTER 10, 16, 2\nHEVC_SAO_EDGE_FILTER 10, 32, 4\nHEVC_SAO_EDGE_FILTER 10, 48, 6\nHEVC_SAO_EDGE_FILTER 10, 64, 8\n\nHEVC_SAO_EDGE_FILTER 12,  8, 1\nHEVC_SAO_EDGE_FILTER 12, 16, 2\nHEVC_SAO_EDGE_FILTER 12, 32, 4\nHEVC_SAO_EDGE_FILTER 12, 48, 6\nHEVC_SAO_EDGE_FILTER 12, 64, 8\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 10,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 10, 16, 1\nHEVC_SAO_EDGE_FILTER 10, 32, 2\nHEVC_SAO_EDGE_FILTER 10, 48, 3\nHEVC_SAO_EDGE_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 12,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 12, 16, 1\nHEVC_SAO_EDGE_FILTER 12, 32, 2\nHEVC_SAO_EDGE_FILTER 12, 48, 3\nHEVC_SAO_EDGE_FILTER 12, 64, 4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 321, "line_end": 370}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hevc_sao_10bit.asm:10", "text": "HEVC_SAO_EDGE_FILTER 10, 64, 4\n\nINIT_XMM avx2\nHEVC_SAO_EDGE_FILTER 12,  8, 1\nINIT_YMM avx2\nHEVC_SAO_EDGE_FILTER 12, 16, 1\nHEVC_SAO_EDGE_FILTER 12, 32, 2\nHEVC_SAO_EDGE_FILTER 12, 48, 3\nHEVC_SAO_EDGE_FILTER 12, 64, 4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hevc_sao_10bit.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hevc_sao_10bit.asm", "line_start": 361, "line_end": 370}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:1", "text": ";******************************************************************************\n;*\n;* Copyright (c) 2000-2001 Fabrice Bellard <fabrice@bellard.org>\n;* Copyright (c)      Nick Kurshev <nickols_k@mail.ru>\n;* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2002 Zdenek Kabelac <kabi@informatics.muni.cz>\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* SIMD-optimized halfpel functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ncextern pb_1\ncextern pw_1\ncextern pw_2\npb_interleave16: db 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15\n\ncextern pw_8192\n\nSECTION .text\n\n; void ff_put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    pavgb        m0, [r1]\n    pavgb        m1, [r1+r2]\n%endif\n    mova       [r0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:2", "text": "%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    pavgb        m0, [r1]\n    pavgb        m1, [r1+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r1, r4\n    add          r0, r4\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    pavgb        m0, [r1]\n    pavgb        m1, [r1+r2]\n%endif\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:3", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    pavgb        m0, m1\n    pavgb        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1]\n    mova         m1, [r1+1]\n    mova         m2, [r1+r2]\n    mova         m3, [r1+r2+1]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    pavgb        m0, m1\n    pavgb        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:4", "text": "mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pxor         m0, m4\n    pxor         m2, m4\n    pxor         m1, m4\n    pxor         m3, m4\n    pavgb        m0, m1\n    pavgb        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m2, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1+r2*2]\n    movu         m1, [r1+r2*2+1]\n    movu         m2, [r1+r4]\n    movu         m3, [r1+r4+1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m1\n    pavgb        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0+r2*2]\n    pavgb        m2, [r0+r4]\n%endif\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:5", "text": "pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m1\n    pavgb        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0+r2*2]\n    pavgb        m2, [r0+r4]\n%endif\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_X2 put\nINIT_XMM sse2\nNO_RND_PIXELS_X2 avg\nNO_RND_PIXELS_X2 put\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_y2, 4,5,3\n%else\ncglobal put_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    pavgb        m0, m1\n    pavgb        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    pavgb        m2, m1\n    pavgb        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:6", "text": "pavgb        m0, m1\n    pavgb        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    pavgb        m2, m1\n    pavgb        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2+r2]\n    mova         m0, [r1]\n    sub          r0, r2\n.loop:\n    mova         m1, [r1+r2]\n    mova         m2, [r1+r4]\n    add          r1, r4\n    psubusb      m1, m6\n    pavgb        m0, m1\n    pavgb        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    pavgb        m2, m1\n    pavgb        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_y2, 4,5,4\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:7", "text": "mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    pavgb        m2, m1\n    pavgb        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_y2, 4,5,4\n%else\n; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_y2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    movu         m0, [r1]\n    pcmpeqb      m3, m3\n    add          r1, r2\n    pxor         m0, m3\n.loop:\n    movu         m1, [r1]\n    movu         m2, [r1+r2]\n    pxor         m1, m3\n    pxor         m2, m3\n    pavgb        m0, m1\n    pavgb        m1, m2\n    pxor         m0, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    pavgb        m2, m1\n    pavgb        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m2,[r0+r2*2]\n    pavgb        m1,[r0+r4]\n%endif\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:8", "text": "%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    pavgb        m2, m1\n    pavgb        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m2,[r0+r2*2]\n    pavgb        m1,[r0+r4]\n%endif\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_Y2 put\nINIT_XMM sse2\nNO_RND_PIXELS_Y2 avg\nNO_RND_PIXELS_Y2 put\n\n; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_x2, 4,5,4\n%else\ncglobal avg_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    pavgb        m0, [r1+1]\n    pavgb        m2, [r1+r2+1]\n%endif\n    pavgb        m0, [r0]\n    pavgb        m2, [r0+r2]\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    pavgb        m0, [r1+1]\n    pavgb        m2, [r1+r2+1]\n%endif\n    pavgb        m0, [r0]\n    pavgb        m2, [r0+r2]\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    pavgb        m0, [r1+1]\n    pavgb        m2, [r1+r2+1]\n%endif\n    add          r0, r4\n    add          r1, r4\n    pavgb        m0, [r0]\n    pavgb        m2, [r0+r2]\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    pavgb        m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    pavgb        m0, m1\n    pavgb        m1, m2\n    pavgb        m0, [r0+r2]\n    pavgb        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    pavgb        m2, m1\n    pavgb        m1, m0\n    add          r0, r4\n    add          r1, r4\n    pavgb        m2, [r0+r2]\n    pavgb        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "INIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movh        m0, [r1+r4]\n    movh        m1, [r1+r4+1]\n    punpcklbw   m0, m1\n    pmaddubsw   m0, m4\n%ifidn %3, _no_rnd\n    paddw       m2, m3\n    paddw       m2, m0\n    psrlw       m2, 2\n%else\n    paddw       m2, m0\n    pmulhrsw    m2, m3\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m2, m2\n    pavgb       m2, m1\n%else\n    packuswb    m2, m2\n%endif\n    movh   [r0+r4], m2\n    add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n%ifidn %3, _no_rnd\n    paddw       m0, m3\n    paddw       m0, m2\n    psrlw       m0, 2\n%else\n    paddw       m0, m2\n    pmulhrsw    m0, m3\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n%ifidn %3, _no_rnd\n    paddw       m0, m3\n    paddw       m0, m2\n    psrlw       m0, 2\n%else\n    paddw       m0, m2\n    pmulhrsw    m0, m3\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0\n%endif\n    movh   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSET_PIXELS8_XY2 put, pw_1, _no_rnd\nSET_PIXELS8_XY2 avg, pw_8192\nSET_PIXELS8_XY2 put, pw_8192\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 2-3\ncglobal %1%3_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [%2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddw       m4, m0\n    paddw       m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddw       m4, m0\n    paddw       m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddw       m0, m2\n    paddw       m1, m3\n    paddw       m4, m6\n    paddw       m5, m6\n    paddw       m4, m0\n    paddw       m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    pavgb       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddw       m4, m2\n    paddw       m5, m3\n    paddw       m0, m6\n    paddw       m1, m6\n    paddw       m0, m4\n    paddw       m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    pavgb       m0, m3\n%else\n    packuswb    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddw       m4, m2\n    paddw       m5, m3\n    paddw       m0, m6\n    paddw       m1, m6\n    paddw       m0, m4\n    paddw       m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    pavgb       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2\nSET_PIXELS_XY2 put, pw_1, _no_rnd\nSET_PIXELS_XY2 avg, pw_1, _no_rnd\n\n%macro SSSE3_PIXELS_XY2 1-2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddw       m0, m2\n    paddw       m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:15", "text": "pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddw       m0, m2\n    paddw       m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddw       m2, m0\n    paddw       m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 561, "line_end": 612}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:16", "text": "pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/hpeldsp.asm", "line_start": 601, "line_end": 612}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:1", "text": ";******************************************************************************\n;*\n;* Copyright (c) 2000-2001 Fabrice Bellard <fabrice@bellard.org>\n;* Copyright (c)      Nick Kurshev <nickols_k@mail.ru>\n;* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2002 Zdenek Kabelac <kabi@informatics.muni.cz>\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* SIMD-optimized halfpel functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ncextern pb_1\ncextern pw_1\ncextern pw_2\npb_interleave16: db 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15\n\ncextern pw_8192\n\nSECTION .text\n\n; void ff_put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    mova       [r0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:2", "text": "%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r1, r4\n    add          r0, r4\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:3", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1]\n    mova         m1, [r1+1]\n    mova         m2, [r1+r2]\n    mova         m3, [r1+r2+1]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:4", "text": "mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pxor         m0, m4\n    pxor         m2, m4\n    pxor         m1, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m2, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1+r2*2]\n    movu         m1, [r1+r2*2+1]\n    movu         m2, [r1+r4]\n    movu         m3, [r1+r4+1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0+r2*2]\n    pavgb        m2, [r0+r4]\n%endif\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:5", "text": "pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0+r2*2]\n    pavgb        m2, [r0+r4]\n%endif\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_X2 put\nINIT_XMM sse2\nNO_RND_PIXELS_X2 avg\nNO_RND_PIXELS_X2 put\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_y2, 4,5,3\n%else\ncglobal put_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:6", "text": "PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2+r2]\n    mova         m0, [r1]\n    sub          r0, r2\n.loop:\n    mova         m1, [r1+r2]\n    mova         m2, [r1+r4]\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_y2, 4,5,4\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:7", "text": "mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_y2, 4,5,4\n%else\n; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_y2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    movu         m0, [r1]\n    pcmpeqb      m3, m3\n    add          r1, r2\n    pxor         m0, m3\n.loop:\n    movu         m1, [r1]\n    movu         m2, [r1+r2]\n    pxor         m1, m3\n    pxor         m2, m3\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    pxor         m0, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m2,[r0+r2*2]\n    pavgb        m1,[r0+r4]\n%endif\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:8", "text": "%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m2,[r0+r2*2]\n    pavgb        m1,[r0+r4]\n%endif\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_Y2 put\nINIT_XMM sse2\nNO_RND_PIXELS_Y2 avg\nNO_RND_PIXELS_Y2 put\n\n; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_x2, 4,5,4\n%else\ncglobal avg_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddw       m4, m0\n    paddw       m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddw       m0, m2\n    paddw       m1, m3\n    paddw       m4, m6\n    paddw       m5, m6\n    paddw       m4, m0\n    paddw       m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddw       m4, m2\n    paddw       m5, m3\n    paddw       m0, m6\n    paddw       m1, m6\n    paddw       m0, m4\n    paddw       m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddw       m4, m2\n    paddw       m5, m3\n    paddw       m0, m6\n    paddw       m1, m6\n    paddw       m0, m4\n    paddw       m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2\nSET_PIXELS_XY2 put, pw_1, _no_rnd\nSET_PIXELS_XY2 avg, pw_1, _no_rnd\n\n%macro SSSE3_PIXELS_XY2 1-2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddw       m0, m2\n    paddw       m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "c5e94a564cc18bafebbd85d613a8069e93525f65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c5e94a564cc18bafebbd85d613a8069e93525f65/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "INIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movh        m0, [r1+r4]\n    movh        m1, [r1+r4+1]\n    punpcklbw   m0, m1\n    pmaddubsw   m0, m4\n%ifidn %3, _no_rnd\n    paddusw     m2, m3\n    paddusw     m2, m0\n    psrlw       m2, 2\n%else\n    paddusw     m2, m0\n    pmulhrsw    m2, m3\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m2, m2\n    pavgb       m2, m1\n%else\n    packuswb    m2, m2\n%endif\n    movh   [r0+r4], m2\n    add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n%ifidn %3, _no_rnd\n    paddusw     m0, m3\n    paddusw     m0, m2\n    psrlw       m0, 2\n%else\n    paddusw     m0, m2\n    pmulhrsw    m0, m3\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "2be1b2ea96fc8ef79aa4eda26545895fa40a8118", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2be1b2ea96fc8ef79aa4eda26545895fa40a8118/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n%ifidn %3, _no_rnd\n    paddusw     m0, m3\n    paddusw     m0, m2\n    psrlw       m0, 2\n%else\n    paddusw     m0, m2\n    pmulhrsw    m0, m3\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0\n%endif\n    movh   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSET_PIXELS8_XY2 put, pw_1, _no_rnd\nSET_PIXELS8_XY2 avg, pw_8192\nSET_PIXELS8_XY2 put, pw_8192\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 2-3\ncglobal %1%3_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [%2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "2be1b2ea96fc8ef79aa4eda26545895fa40a8118", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2be1b2ea96fc8ef79aa4eda26545895fa40a8118/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "2be1b2ea96fc8ef79aa4eda26545895fa40a8118", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2be1b2ea96fc8ef79aa4eda26545895fa40a8118/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2\nSET_PIXELS_XY2 put, pw_1, _no_rnd\nSET_PIXELS_XY2 avg, pw_1, _no_rnd\n\n%macro SSSE3_PIXELS_XY2 1-2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "2be1b2ea96fc8ef79aa4eda26545895fa40a8118", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2be1b2ea96fc8ef79aa4eda26545895fa40a8118/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:15", "text": "pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "2be1b2ea96fc8ef79aa4eda26545895fa40a8118", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2be1b2ea96fc8ef79aa4eda26545895fa40a8118/libavcodec/x86/hpeldsp.asm", "line_start": 561, "line_end": 612}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "INIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movh        m0, [r1+r4]\n    movh        m1, [r1+r4+1]\n    punpcklbw   m0, m1\n    pmaddubsw   m0, m4\n%ifidn %3, _no_rnd\n    paddusw     m2, m3\n    paddusw     m2, m0\n    psrlw       m2, 2\n%else\n    paddusw     m2, m0\n    pmulhrsw    m2, [pw_8192]\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m2, m2\n    pavgb       m2, m1\n%else\n    packuswb    m2, m2\n%endif\n    movh   [r0+r4], m2\n    add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n%ifidn %3, _no_rnd\n    paddusw     m0, m3\n    paddusw     m0, m2\n    psrlw       m0, 2\n%else\n    paddusw     m0, m2\n    pmulhrsw    m0, [pw_8192]\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "36f92206bb90d6f0268749bd6fe6aa57974442db", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/36f92206bb90d6f0268749bd6fe6aa57974442db/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n%ifidn %3, _no_rnd\n    paddusw     m0, m3\n    paddusw     m0, m2\n    psrlw       m0, 2\n%else\n    paddusw     m0, m2\n    pmulhrsw    m0, [pw_8192]\n%endif\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0\n%endif\n    movh   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSET_PIXELS8_XY2 put, pw_1, _no_rnd\nSET_PIXELS8_XY2 avg, pw_8192\nSET_PIXELS8_XY2 put, pw_8192\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 2-3\ncglobal %1%3_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [%2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "36f92206bb90d6f0268749bd6fe6aa57974442db", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/36f92206bb90d6f0268749bd6fe6aa57974442db/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:1", "text": ";******************************************************************************\n;*\n;* Copyright (c) 2000-2001 Fabrice Bellard <fabrice@bellard.org>\n;* Copyright (c)      Nick Kurshev <nickols_k@mail.ru>\n;* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2002 Zdenek Kabelac <kabi@informatics.muni.cz>\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* SIMD-optimized halfpel functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ncextern pb_1\ncextern pw_1\ncextern pw_2\npb_interleave16: db 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15\npb_interleave8:  db 0, 4, 1, 5, 2, 6, 3, 7\n\ncextern pw_8192\n\nSECTION .text\n\n; void ff_put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:2", "text": "; void ff_put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r1, r4\n    add          r0, r4\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:3", "text": "jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1]\n    mova         m1, [r1+1]\n    mova         m2, [r1+r2]\n    mova         m3, [r1+r2+1]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:4", "text": "mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pxor         m0, m4\n    pxor         m2, m4\n    pxor         m1, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m2, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1+r2*2]\n    movu         m1, [r1+r2*2+1]\n    movu         m2, [r1+r4]\n    movu         m3, [r1+r4+1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0+r2*2]\n    pavgb        m2, [r0+r4]\n%endif\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:5", "text": "pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n%ifidn %1, avg\n    pavgb        m0, [r0+r2*2]\n    pavgb        m2, [r0+r4]\n%endif\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_X2 put\nINIT_XMM sse2\nNO_RND_PIXELS_X2 avg\nNO_RND_PIXELS_X2 put\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_y2, 4,5,3\n%else\ncglobal put_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:6", "text": "add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2+r2]\n    mova         m0, [r1]\n    sub          r0, r2\n.loop:\n    mova         m1, [r1+r2]\n    mova         m2, [r1+r4]\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_y2, 4,5,4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:7", "text": "mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 1\n%if cpuflag(sse2)\ncglobal %1_no_rnd_pixels16_y2, 4,5,4\n%else\n; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal %1_no_rnd_pixels8_y2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    movu         m0, [r1]\n    pcmpeqb      m3, m3\n    add          r1, r2\n    pxor         m0, m3\n.loop:\n    movu         m1, [r1]\n    movu         m2, [r1+r2]\n    pxor         m1, m3\n    pxor         m2, m3\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    pxor         m0, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m0, [r0]\n    pavgb        m1, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m2,[r0+r2*2]\n    pavgb        m1,[r0+r4]\n%endif\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:8", "text": "pavgb        m1, [r0+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n%ifidn %1, avg\n    pavgb        m2,[r0+r2*2]\n    pavgb        m1,[r0+r4]\n%endif\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_Y2 put\nINIT_XMM sse2\nNO_RND_PIXELS_Y2 avg\nNO_RND_PIXELS_Y2 put\n\n; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_x2, 4,5,4\n%else\ncglobal avg_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "AVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS8_XY2 2-3\ncglobal %1%3_pixels8_xy2, 4,5,5\n    mova        m4, [pb_1]\n    mova        m3, [%2]\n    movh        m0, [r1]\n    movh        m2, [r1+1]\n    punpcklbw   m2, m0\n    pmaddubsw   m2, m4\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movh        m0, [r1+r4]\n    movh        m1, [r1+r4+1]\n    punpcklbw   m0, m1\n    pmaddubsw   m0, m4\n    paddusw     m2, m3\n    paddusw     m2, m0\n    psrlw       m2, 2\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m2, m2\n    pavgb       m2, m1\n%else\n    packuswb    m2, m2\n%endif\n    movh   [r0+r4], m2\n    add         r4, r2\n\n    movh        m1, [r1+r4]\n    movh        m2, [r1+r4+1]\n    punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n    paddusw     m0, m3\n    paddusw     m0, m2\n    psrlw       m0, 2\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0\n%endif\n    movh   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "punpcklbw   m2, m1\n    pmaddubsw   m2, m4\n    paddusw     m0, m3\n    paddusw     m0, m2\n    psrlw       m0, 2\n%ifidn %1, avg\n    movh        m1, [r0+r4]\n    packuswb    m0, m0\n    pavgb       m0, m1\n%else\n    packuswb    m0, m0\n%endif\n    movh   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSET_PIXELS8_XY2 put, pw_1, _no_rnd\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 2-3\ncglobal %1%3_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [%2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": ".loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2\nSET_PIXELS_XY2 put, pw_1, _no_rnd\nSET_PIXELS_XY2 avg, pw_1, _no_rnd\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:15", "text": "movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "4c55724da86ddc5ef10966f287a3d50fe1a1cbbe", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c55724da86ddc5ef10966f287a3d50fe1a1cbbe/libavcodec/x86/hpeldsp.asm", "line_start": 561, "line_end": 609}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "AVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 2-3\ncglobal %1%3_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [%2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "f84e06026ac4546fcc5242813de506f997d2b6fa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f84e06026ac4546fcc5242813de506f997d2b6fa/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 2-3\ncglobal %1%3_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [%2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "f84e06026ac4546fcc5242813de506f997d2b6fa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f84e06026ac4546fcc5242813de506f997d2b6fa/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2\nSET_PIXELS_XY2 put, pw_1, _no_rnd\nSET_PIXELS_XY2 avg, pw_1, _no_rnd\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "f84e06026ac4546fcc5242813de506f997d2b6fa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f84e06026ac4546fcc5242813de506f997d2b6fa/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put, pw_2\nSET_PIXELS_XY2 avg, pw_2\nSET_PIXELS_XY2 put, pw_1, _no_rnd\nSET_PIXELS_XY2 avg, pw_1, _no_rnd\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "f84e06026ac4546fcc5242813de506f997d2b6fa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f84e06026ac4546fcc5242813de506f997d2b6fa/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "f84e06026ac4546fcc5242813de506f997d2b6fa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f84e06026ac4546fcc5242813de506f997d2b6fa/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 555}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:1", "text": ";******************************************************************************\n;*\n;* Copyright (c) 2000-2001 Fabrice Bellard <fabrice@bellard.org>\n;* Copyright (c)      Nick Kurshev <nickols_k@mail.ru>\n;* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2002 Zdenek Kabelac <kabi@informatics.muni.cz>\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* SIMD-optimized halfpel functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ncextern pb_1\ncextern pw_2\npb_interleave16: db 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15\npb_interleave8:  db 0, 4, 1, 5, 2, 6, 3, 7\n\ncextern pw_8192\n\nSECTION .text\n\n; void ff_put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    mova       [r0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "30c4007c65e1f73de5ce1b5eb459c71e0b21389a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30c4007c65e1f73de5ce1b5eb459c71e0b21389a/libavcodec/x86/hpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\ncglobal %1_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "30c4007c65e1f73de5ce1b5eb459c71e0b21389a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30c4007c65e1f73de5ce1b5eb459c71e0b21389a/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "INIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\ncglobal %1_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "30c4007c65e1f73de5ce1b5eb459c71e0b21389a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30c4007c65e1f73de5ce1b5eb459c71e0b21389a/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "30c4007c65e1f73de5ce1b5eb459c71e0b21389a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30c4007c65e1f73de5ce1b5eb459c71e0b21389a/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "30c4007c65e1f73de5ce1b5eb459c71e0b21389a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30c4007c65e1f73de5ce1b5eb459c71e0b21389a/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "30c4007c65e1f73de5ce1b5eb459c71e0b21389a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/30c4007c65e1f73de5ce1b5eb459c71e0b21389a/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 552}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:3", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1]\n    mova         m1, [r1+1]\n    mova         m2, [r1+r2]\n    mova         m3, [r1+r2+1]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 0\n%if cpuflag(sse2)\ncglobal put_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal put_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:4", "text": "mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_X2 0\n%if cpuflag(sse2)\ncglobal put_no_rnd_pixels16_x2, 4,5,5\n%else\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal put_no_rnd_pixels8_x2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    pcmpeqb      m4, m4\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pxor         m0, m4\n    pxor         m2, m4\n    pxor         m1, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1+r2*2]\n    movu         m1, [r1+r2*2+1]\n    movu         m2, [r1+r4]\n    movu         m3, [r1+r4+1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_X2\nINIT_XMM sse2\nNO_RND_PIXELS_X2\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:5", "text": "PAVGB        m2, m3\n    pxor         m0, m4\n    pxor         m2, m4\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_X2\nINIT_XMM sse2\nNO_RND_PIXELS_X2\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_y2, 4,5,3\n%else\ncglobal put_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:6", "text": "PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2+r2]\n    mova         m0, [r1]\n    sub          r0, r2\n.loop:\n    mova         m1, [r1+r2]\n    mova         m2, [r1+r4]\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 0\n%if cpuflag(sse2)\ncglobal put_no_rnd_pixels16_y2, 4,5,4\n%else\n; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal put_no_rnd_pixels8_y2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    movu         m0, [r1]\n    pcmpeqb      m3, m3\n    add          r1, r2\n    pxor         m0, m3\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:7", "text": "mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n%macro NO_RND_PIXELS_Y2 0\n%if cpuflag(sse2)\ncglobal put_no_rnd_pixels16_y2, 4,5,4\n%else\n; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\ncglobal put_no_rnd_pixels8_y2_exact, 4,5\n%endif\n    lea          r4, [r2*3]\n    movu         m0, [r1]\n    pcmpeqb      m3, m3\n    add          r1, r2\n    pxor         m0, m3\n.loop:\n    movu         m1, [r1]\n    movu         m2, [r1+r2]\n    pxor         m1, m3\n    pxor         m2, m3\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    pxor         m0, m3\n    pxor         m1, m3\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    movu         m1, [r1+r2*2]\n    movu         m0, [r1+r4]\n    pxor         m1, m3\n    pxor         m0, m3\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    pxor         m2, m3\n    pxor         m1, m3\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_Y2\nINIT_XMM sse2\nNO_RND_PIXELS_Y2\n\n; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_x2, 4,5,4\n%else\ncglobal avg_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:8", "text": "lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nNO_RND_PIXELS_Y2\nINIT_XMM sse2\nNO_RND_PIXELS_Y2\n\n; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_x2, 4,5,4\n%else\ncglobal avg_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\ncglobal %1_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:14", "text": "%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "1e677e696488d52068e83c669ae871caa7c34583", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e677e696488d52068e83c669ae871caa7c34583/libavcodec/x86/hpeldsp.asm", "line_start": 521, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:3", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1]\n    mova         m1, [r1+1]\n    mova         m2, [r1+r2]\n    mova         m3, [r1+r2+1]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2_exact, 4,5\n    lea          r4, [r2*3]\n    pcmpeqb      m6, m6\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    pxor         m0, m6\n    pxor         m2, m6\n    pxor         m1, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:4", "text": "mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2_exact, 4,5\n    lea          r4, [r2*3]\n    pcmpeqb      m6, m6\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    pxor         m0, m6\n    pxor         m2, m6\n    pxor         m1, m6\n    pxor         m3, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m6\n    pxor         m2, m6\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1+r2*2]\n    mova         m1, [r1+r2*2+1]\n    mova         m2, [r1+r4]\n    mova         m3, [r1+r4+1]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    pxor         m0, m6\n    pxor         m2, m6\n    mova  [r0+r2*2], m0\n    mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_y2, 4,5,3\n%else\ncglobal put_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:5", "text": "mova    [r0+r4], m2\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n\n\n; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_y2, 4,5,3\n%else\ncglobal put_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2+r2]\n    mova         m0, [r1]\n    sub          r0, r2\n.loop:\n    mova         m1, [r1+r2]\n    mova         m2, [r1+r4]\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:6", "text": "INIT_MMX mmxext\nPUT_PIXELS8_Y2\n; actually, put_pixels16_y2_sse2\nINIT_XMM sse2\nPUT_PIXELS8_Y2\n\n\n; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2+r2]\n    mova         m0, [r1]\n    sub          r0, r2\n.loop:\n    mova         m1, [r1+r2]\n    mova         m2, [r1+r4]\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m1, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_y2_exact, 4,5\n    lea          r4, [r2*3]\n    mova         m0, [r1]\n    pcmpeqb      m6, m6\n    add          r1, r2\n    pxor         m0, m6\n.loop:\n    mova         m1, [r1]\n    mova         m2, [r1+r2]\n    pxor         m1, m6\n    pxor         m2, m6\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    mova         m1, [r1+r2*2]\n    mova         m0, [r1+r4]\n    pxor         m1, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:7", "text": "cglobal put_no_rnd_pixels8_y2_exact, 4,5\n    lea          r4, [r2*3]\n    mova         m0, [r1]\n    pcmpeqb      m6, m6\n    add          r1, r2\n    pxor         m0, m6\n.loop:\n    mova         m1, [r1]\n    mova         m2, [r1+r2]\n    pxor         m1, m6\n    pxor         m2, m6\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    mova         m1, [r1+r2*2]\n    mova         m0, [r1+r4]\n    pxor         m1, m6\n    pxor         m0, m6\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    pxor         m2, m6\n    pxor         m1, m6\n    mova  [r0+r2*2], m2\n    mova    [r0+r4], m1\n    lea          r1, [r1+r2*4]\n    lea          r0, [r0+r2*4]\n    sub         r3d, 4\n    jg .loop\n    RET\n\n\n; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_x2, 4,5,4\n%else\ncglobal avg_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:8", "text": "%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    movu         m0, [r1]\n    movu         m2, [r1+r2]\n%if cpuflag(sse2)\n    movu         m1, [r1+1]\n    movu         m3, [r1+r2+1]\n    pavgb        m0, m1\n    pavgb        m2, m3\n%else\n    PAVGB        m0, [r1+1], m3, m5\n    PAVGB        m2, [r1+r2+1], m4, m5\n%endif\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m0, [r0], m3, m5\n    PAVGB        m2, [r0+r2], m4, m5\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\ncglobal %1_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\ncglobal %1_pixels16_xy2, 4,5,8\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "918d37d9d156f15b63952a22bfba0541dd087129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/918d37d9d156f15b63952a22bfba0541dd087129/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 516}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\n%if cpuflag(sse2)\ncglobal %1_pixels16_xy2, 4,5,8\n%else\ncglobal %1_pixels8_xy2, 4,5\n%endif\n    pxor        m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "e86f137514fb8a69cf145f26c83b1b053c727b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e86f137514fb8a69cf145f26c83b1b053c727b52/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\n%if cpuflag(sse2)\ncglobal %1_pixels16_xy2, 4,5,8\n%else\ncglobal %1_pixels8_xy2, 4,5\n%endif\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "e86f137514fb8a69cf145f26c83b1b053c727b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e86f137514fb8a69cf145f26c83b1b053c727b52/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2\n\n    movu        m2, [r1+r4]\n    movu        m4, [r1+r4+1]\n    mova        m3, m2\n    mova        m5, m4\n    punpcklbw   m2, m7\n    punpcklbw   m4, m7\n    punpckhbw   m3, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m2\n    paddusw     m5, m3\n    paddusw     m0, m6\n    paddusw     m1, m6\n    paddusw     m0, m4\n    paddusw     m1, m5\n    psrlw       m0, 2\n    psrlw       m1, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m0, m1\n    PAVGB       m0, m3\n%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSET_PIXELS_XY2 avg\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "e86f137514fb8a69cf145f26c83b1b053c727b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e86f137514fb8a69cf145f26c83b1b053c727b52/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:12", "text": "%else\n    packuswb    m0, m1\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSET_PIXELS_XY2 avg\nINIT_XMM sse2\nSET_PIXELS_XY2 put\nSET_PIXELS_XY2 avg\n\n%macro SSSE3_PIXELS_XY2 1-2\n%if %0 == 2 ; sse2\ncglobal %1_pixels16_xy2, 4,5,%2\n    mova        m4, [pb_interleave16]\n%else\ncglobal %1_pixels8_xy2, 4,5\n    mova        m4, [pb_interleave8]\n%endif\n    mova        m5, [pb_1]\n    movu        m0, [r1]\n    movu        m1, [r1+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m2, [r1+r4]\n    movu        m3, [r1+r4+1]\n    pmaddubsw   m2, m5\n    pmaddubsw   m3, m5\n    paddusw     m0, m2\n    paddusw     m1, m3\n    pmulhrsw    m0, [pw_8192]\n    pmulhrsw    m1, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "e86f137514fb8a69cf145f26c83b1b053c727b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e86f137514fb8a69cf145f26c83b1b053c727b52/libavcodec/x86/hpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:13", "text": "%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m0, m1\n    pshufb      m0, m4\n    pavgb       m0, m6\n%else\n    packuswb    m0, m1\n    pshufb      m0, m4\n%endif\n    mova   [r0+r4], m0\n    add         r4, r2\n\n    movu        m0, [r1+r4]\n    movu        m1, [r1+r4+1]\n    pmaddubsw   m0, m5\n    pmaddubsw   m1, m5\n    paddusw     m2, m0\n    paddusw     m3, m1\n    pmulhrsw    m2, [pw_8192]\n    pmulhrsw    m3, [pw_8192]\n%ifidn %1, avg\n    mova        m6, [r0+r4]\n    packuswb    m2, m3\n    pshufb      m2, m4\n    pavgb       m2, m6\n%else\n    packuswb    m2, m3\n    pshufb      m2, m4\n%endif\n    mova   [r0+r4], m2\n    add         r4, r2\n    sub        r3d, 2\n    jnz .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nSSSE3_PIXELS_XY2 put\nSSSE3_PIXELS_XY2 avg\nINIT_XMM ssse3\nSSSE3_PIXELS_XY2 put, 6\nSSSE3_PIXELS_XY2 avg, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "e86f137514fb8a69cf145f26c83b1b053c727b52", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e86f137514fb8a69cf145f26c83b1b053c727b52/libavcodec/x86/hpeldsp.asm", "line_start": 481, "line_end": 522}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:9", "text": "%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_X2\n; actually avg_pixels16_x2\nINIT_XMM sse2\nAVG_PIXELS8_X2\n\n\n; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro AVG_PIXELS8_Y2 0\n%if cpuflag(sse2)\ncglobal avg_pixels16_y2, 4,5,3\n%else\ncglobal avg_pixels8_y2, 4,5\n%endif\n    lea          r4, [r2*2]\n    movu         m0, [r1]\n    sub          r0, r2\n.loop:\n    movu         m1, [r1+r2]\n    movu         m2, [r1+r4]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m0\n    mova    [r0+r4], m1\n    movu         m1, [r1+r2]\n    movu         m0, [r1+r4]\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, [r0+r2]\n    PAVGB        m1, [r0+r4]\n    mova    [r0+r2], m2\n    mova    [r0+r4], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; Note this is not correctly rounded, and is therefore used for\n; not-bitexact output\nINIT_MMX mmxext\ncglobal avg_approx_pixels8_xy2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "8a7858dacf50797c7b81aad119e8811a849d0552", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7858dacf50797c7b81aad119e8811a849d0552/libavcodec/x86/hpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:10", "text": "sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nAVG_PIXELS8_Y2\n; actually avg_pixels16_y2\nINIT_XMM sse2\nAVG_PIXELS8_Y2\n\n\n; void ff_avg_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n; Note this is not correctly rounded, and is therefore used for\n; not-bitexact output\nINIT_MMX mmxext\ncglobal avg_approx_pixels8_xy2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n    mova         m0, [r1]\n    PAVGB        m0, [r1+1]\n.loop:\n    mova         m2, [r1+r4]\n    mova         m1, [r1+r2]\n    psubusb      m2, m6\n    PAVGB        m1, [r1+r2+1]\n    PAVGB        m2, [r1+r4+1]\n    add          r1, r4\n    PAVGB        m0, m1\n    PAVGB        m1, m2\n    PAVGB        m0, [r0]\n    PAVGB        m1, [r0+r2]\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    mova         m1, [r1+r2]\n    mova         m0, [r1+r4]\n    PAVGB        m1, [r1+r2+1]\n    PAVGB        m0, [r1+r4+1]\n    add          r0, r4\n    add          r1, r4\n    PAVGB        m2, m1\n    PAVGB        m1, m0\n    PAVGB        m2, [r0]\n    PAVGB        m1, [r0+r2]\n    mova       [r0], m2\n    mova    [r0+r2], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\n%if cpuflag(sse2)\ncglobal %1_pixels16_xy2, 4,5,8\n%else\ncglobal %1_pixels8_xy2, 4,5\n%endif\n    pxor        m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "8a7858dacf50797c7b81aad119e8811a849d0552", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7858dacf50797c7b81aad119e8811a849d0552/libavcodec/x86/hpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:11", "text": "PAVGB        m2, m1\n    PAVGB        m1, m0\n    PAVGB        m2, [r0]\n    PAVGB        m1, [r0+r2]\n    mova       [r0], m2\n    mova    [r0+r2], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n; void ff_avg_pixels16_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro SET_PIXELS_XY2 1\n%if cpuflag(sse2)\ncglobal %1_pixels16_xy2, 4,5,8\n%else\ncglobal %1_pixels8_xy2, 4,5\n%endif\n    pxor        m7, m7\n    mova        m6, [pw_2]\n    movu        m0, [r1]\n    movu        m4, [r1+1]\n    mova        m1, m0\n    mova        m5, m4\n    punpcklbw   m0, m7\n    punpcklbw   m4, m7\n    punpckhbw   m1, m7\n    punpckhbw   m5, m7\n    paddusw     m4, m0\n    paddusw     m5, m1\n    xor         r4, r4\n    add         r1, r2\n.loop:\n    movu        m0, [r1+r4]\n    movu        m2, [r1+r4+1]\n    mova        m1, m0\n    mova        m3, m2\n    punpcklbw   m0, m7\n    punpcklbw   m2, m7\n    punpckhbw   m1, m7\n    punpckhbw   m3, m7\n    paddusw     m0, m2\n    paddusw     m1, m3\n    paddusw     m4, m6\n    paddusw     m5, m6\n    paddusw     m4, m0\n    paddusw     m5, m1\n    psrlw       m4, 2\n    psrlw       m5, 2\n%ifidn %1, avg\n    mova        m3, [r0+r4]\n    packuswb    m4, m5\n    PAVGB       m4, m3\n%else\n    packuswb    m4, m5\n%endif\n    mova   [r0+r4], m4\n    add         r4, r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "8a7858dacf50797c7b81aad119e8811a849d0552", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7858dacf50797c7b81aad119e8811a849d0552/libavcodec/x86/hpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:2", "text": "%macro PUT_PIXELS8_X2 0\n%if cpuflag(sse2)\ncglobal put_pixels16_x2, 4,5,4\n%else\ncglobal put_pixels8_x2, 4,5\n%endif\n    lea          r4, [r2*2]\n.loop:\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r1, r4\n    add          r0, r4\n    movu         m0, [r1+1]\n    movu         m1, [r1+r2+1]\n%if cpuflag(sse2)\n    movu         m2, [r1]\n    movu         m3, [r1+r2]\n    pavgb        m0, m2\n    pavgb        m1, m3\n%else\n    PAVGB        m0, [r1]\n    PAVGB        m1, [r1+r2]\n%endif\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS_16 0\ncglobal put_pixels16_x2, 4,5\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r2]\n    mova         m2, [r1+8]\n    mova         m3, [r1+r2+8]\n    PAVGB        m0, [r1+1]\n    PAVGB        m1, [r1+r2+1]\n    PAVGB        m2, [r1+9]\n    PAVGB        m3, [r1+r2+9]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:3", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS8_X2\n\n\n; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n%macro PUT_PIXELS_16 0\ncglobal put_pixels16_x2, 4,5\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r2]\n    mova         m2, [r1+8]\n    mova         m3, [r1+r2+8]\n    PAVGB        m0, [r1+1]\n    PAVGB        m1, [r1+r2+1]\n    PAVGB        m2, [r1+9]\n    PAVGB        m3, [r1+r2+9]\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    mova     [r0+8], m2\n    mova  [r0+r2+8], m3\n    add          r1, r4\n    add          r0, r4\n    mova         m0, [r1]\n    mova         m1, [r1+r2]\n    mova         m2, [r1+8]\n    mova         m3, [r1+r2+8]\n    PAVGB        m0, [r1+1]\n    PAVGB        m1, [r1+r2+1]\n    PAVGB        m2, [r1+9]\n    PAVGB        m3, [r1+r2+9]\n    add          r1, r4\n    mova       [r0], m0\n    mova    [r0+r2], m1\n    mova     [r0+8], m2\n    mova  [r0+r2+8], m3\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS_16\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/hpeldsp.asm:4", "text": "sub         r3d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_PIXELS_16\n; The 8_X2 macro can easily be used here\nINIT_XMM sse2\nPUT_PIXELS8_X2\n\n\n; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2, 4,5\n    mova         m6, [pb_1]\n    lea          r4, [r2*2]\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    mova         m0, [r1]\n    mova         m1, [r1+1]\n    mova         m2, [r1+r2]\n    mova         m3, [r1+r2+1]\n    add          r0, r4\n    add          r1, r4\n    psubusb      m0, m6\n    psubusb      m2, m6\n    PAVGB        m0, m1\n    PAVGB        m2, m3\n    mova       [r0], m0\n    mova    [r0+r2], m2\n    add          r0, r4\n    sub         r3d, 4\n    jne .loop\n    RET\n\n\n; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels8_x2_exact, 4,5\n    lea          r4, [r2*3]\n    pcmpeqb      m6, m6\n.loop:\n    mova         m0, [r1]\n    mova         m2, [r1+r2]\n    mova         m1, [r1+1]\n    mova         m3, [r1+r2+1]\n    pxor         m0, m6\n    pxor         m2, m6\n    pxor         m1, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/hpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/hpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvdsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized HuffYUV functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2014 Christophe Gisquet\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%include \"libavcodec/x86/huffyuvdsp_template.asm\"\n\n;------------------------------------------------------------------------------\n; void (*add_int16)(uint16_t *dst, const uint16_t *src, unsigned mask, int w);\n;------------------------------------------------------------------------------\n\n%macro ADD_INT16 0\ncglobal add_int16, 4,4,5, dst, src, mask, w, tmp\n    test srcq, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, add\n.unaligned:\n    INT16_LOOP u, add\n%endmacro\n\nINIT_XMM sse2\nADD_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_INT16\n%endif\n\n; void add_hfyu_left_pred_bgr32(uint8_t *dst, const uint8_t *src,\n;                               intptr_t w, uint8_t *left)\nINIT_XMM sse2\ncglobal add_hfyu_left_pred_bgr32, 4,4,3, dst, src, w, left\n    shl           wq, 2\n    movd          m0, [leftq]\n    lea         dstq, [dstq + wq]\n    lea         srcq, [srcq + wq]\n    LSHIFT        m0, mmsize-4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvdsp.asm:2", "text": "INT16_LOOP u, add\n%endmacro\n\nINIT_XMM sse2\nADD_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_INT16\n%endif\n\n; void add_hfyu_left_pred_bgr32(uint8_t *dst, const uint8_t *src,\n;                               intptr_t w, uint8_t *left)\nINIT_XMM sse2\ncglobal add_hfyu_left_pred_bgr32, 4,4,3, dst, src, w, left\n    shl           wq, 2\n    movd          m0, [leftq]\n    lea         dstq, [dstq + wq]\n    lea         srcq, [srcq + wq]\n    LSHIFT        m0, mmsize-4\n    neg           wq\n.loop:\n    movu          m1, [srcq+wq]\n    mova          m2, m1\n    LSHIFT        m1, 4\n    paddb         m1, m2\n    pshufd        m0, m0, q3333\n    mova          m2, m1\n    LSHIFT        m1, 8\n    paddb         m1, m2\n    paddb         m0, m1\n    movu   [dstq+wq], m0\n    add           wq, mmsize\n    jl         .loop\n    movd          m0, [dstq-4]\n    movd     [leftq], m0\n    RET\n\n\n; void add_hfyu_median_prediction_mmxext(uint8_t *dst, const uint8_t *top, const uint8_t *diff, int mask, int w, int *left, int *left_top)\nINIT_MMX mmxext\ncglobal add_hfyu_median_pred_int16, 7,7,0, dst, top, diff, mask, w, left, left_top\n    add      wd, wd\n    movd    mm6, maskd\n    SPLATW  mm6, mm6\n    movq    mm0, [topq]\n    movq    mm2, mm0\n    movd    mm4, [left_topq]\n    psllq   mm2, 16\n    movq    mm1, mm0\n    por     mm4, mm2\n    movd    mm3, [leftq]\n    psubw   mm0, mm4 ; t-tl\n    add    dstq, wq\n    add    topq, wq\n    add   diffq, wq\n    neg      wq\n    jmp .skip\n.loop:\n    movq    mm4, [topq+wq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvdsp.asm:3", "text": "INIT_MMX mmxext\ncglobal add_hfyu_median_pred_int16, 7,7,0, dst, top, diff, mask, w, left, left_top\n    add      wd, wd\n    movd    mm6, maskd\n    SPLATW  mm6, mm6\n    movq    mm0, [topq]\n    movq    mm2, mm0\n    movd    mm4, [left_topq]\n    psllq   mm2, 16\n    movq    mm1, mm0\n    por     mm4, mm2\n    movd    mm3, [leftq]\n    psubw   mm0, mm4 ; t-tl\n    add    dstq, wq\n    add    topq, wq\n    add   diffq, wq\n    neg      wq\n    jmp .skip\n.loop:\n    movq    mm4, [topq+wq]\n    movq    mm0, mm4\n    psllq   mm4, 16\n    por     mm4, mm1\n    movq    mm1, mm0 ; t\n    psubw   mm0, mm4 ; t-tl\n.skip:\n    movq    mm2, [diffq+wq]\n%assign i 0\n%rep 4\n    movq    mm4, mm0\n    paddw   mm4, mm3 ; t-tl+l\n    pand    mm4, mm6\n    movq    mm5, mm3\n    pmaxsw  mm3, mm1\n    pminsw  mm5, mm1\n    pminsw  mm3, mm4\n    pmaxsw  mm3, mm5 ; median\n    paddw   mm3, mm2 ; +residual\n    pand    mm3, mm6\n%if i==0\n    movq    mm7, mm3\n    psllq   mm7, 48\n%else\n    movq    mm4, mm3\n    psrlq   mm7, 16\n    psllq   mm4, 48\n    por     mm7, mm4\n%endif\n%if i<3\n    psrlq   mm0, 16\n    psrlq   mm1, 16\n    psrlq   mm2, 16\n%endif\n%assign i i+1\n%endrep\n    movq [dstq+wq], mm7\n    add      wq, 8\n    jl .loop\n    movzx   r2d, word [dstq-2]\n    mov [leftq], r2d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvdsp.asm:4", "text": "movq    mm7, mm3\n    psllq   mm7, 48\n%else\n    movq    mm4, mm3\n    psrlq   mm7, 16\n    psllq   mm4, 48\n    por     mm7, mm4\n%endif\n%if i<3\n    psrlq   mm0, 16\n    psrlq   mm1, 16\n    psrlq   mm2, 16\n%endif\n%assign i i+1\n%endrep\n    movq [dstq+wq], mm7\n    add      wq, 8\n    jl .loop\n    movzx   r2d, word [dstq-2]\n    mov [leftq], r2d\n    movzx   r2d, word [topq-2]\n    mov [left_topq], r2d\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvdsp.asm", "line_start": 121, "line_end": 143}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvdsp_template.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized HuffYUV functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2014 Christophe Gisquet\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%macro INT16_LOOP 2 ; %1 = a/u (aligned/unaligned), %2 = add/sub\n    movd    xm4, maskd\n    SPLATW  m4, xm4\n    add     wd, wd\n    test    wq, 2*mmsize - 1\n    jz %%.tomainloop\n    push  tmpq\n%%.wordloop:\n    sub     wq, 2\n%ifidn %2, add\n    mov   tmpw, [srcq+wq]\n    add   tmpw, [dstq+wq]\n%else\n    mov   tmpw, [src1q+wq]\n    sub   tmpw, [src2q+wq]\n%endif\n    and   tmpw, maskw\n    mov     [dstq+wq], tmpw\n    test    wq, 2*mmsize - 1\n    jnz %%.wordloop\n    pop   tmpq\n%%.tomainloop:\n%ifidn %2, add\n    add     srcq, wq\n%else\n    add     src1q, wq\n    add     src2q, wq\n%endif\n    add     dstq, wq\n    neg     wq\n    jz      %%.end\n%%.loop:\n%ifidn %2, add\n    mov%1   m0, [srcq+wq]\n    mov%1   m1, [dstq+wq]\n    mov%1   m2, [srcq+wq+mmsize]\n    mov%1   m3, [dstq+wq+mmsize]\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvdsp_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvdsp_template.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvdsp_template.asm:2", "text": "test    wq, 2*mmsize - 1\n    jnz %%.wordloop\n    pop   tmpq\n%%.tomainloop:\n%ifidn %2, add\n    add     srcq, wq\n%else\n    add     src1q, wq\n    add     src2q, wq\n%endif\n    add     dstq, wq\n    neg     wq\n    jz      %%.end\n%%.loop:\n%ifidn %2, add\n    mov%1   m0, [srcq+wq]\n    mov%1   m1, [dstq+wq]\n    mov%1   m2, [srcq+wq+mmsize]\n    mov%1   m3, [dstq+wq+mmsize]\n%else\n    mov%1   m0, [src1q+wq]\n    mov%1   m1, [src2q+wq]\n    mov%1   m2, [src1q+wq+mmsize]\n    mov%1   m3, [src2q+wq+mmsize]\n%endif\n    p%2w    m0, m1\n    p%2w    m2, m3\n    pand    m0, m4\n    pand    m2, m4\n    mov%1   [dstq+wq]       , m0\n    mov%1   [dstq+wq+mmsize], m2\n    add     wq, 2*mmsize\n    jl %%.loop\n%%.end:\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvdsp_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvdsp_template.asm", "line_start": 41, "line_end": 76}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:1", "text": ";************************************************************************\n;* SIMD-optimized HuffYUV encoding functions\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>\n;* Conversion to NASM format by Tiancheng \"Timothy\" Gu <timothygu99@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%include \"libavcodec/x86/huffyuvdsp_template.asm\"\n\n;------------------------------------------------------------------------------\n; void ff_diff_int16(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                    unsigned mask, int w);\n;------------------------------------------------------------------------------\n\n%macro DIFF_INT16 0\ncglobal diff_int16, 5,5,5, dst, src1, src2, mask, w, tmp\n    test src1q, mmsize-1\n    jnz .unaligned\n    test src2q, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, sub\n.unaligned:\n    INT16_LOOP u, sub\n%endmacro\n\nINIT_XMM sse2\nDIFF_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_INT16\n%endif\n\n%macro SUB_HFYU_MEDIAN_PRED_INT16 1 ; u,s for pmaxuw vs pmaxsw\ncglobal sub_hfyu_median_pred_int16, 7,7,6, dst, src1, src2, mask, w, left, left_top\n    movd        xm5, maskd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:2", "text": "test src2q, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, sub\n.unaligned:\n    INT16_LOOP u, sub\n%endmacro\n\nINIT_XMM sse2\nDIFF_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_INT16\n%endif\n\n%macro SUB_HFYU_MEDIAN_PRED_INT16 1 ; u,s for pmaxuw vs pmaxsw\ncglobal sub_hfyu_median_pred_int16, 7,7,6, dst, src1, src2, mask, w, left, left_top\n    movd        xm5, maskd\n    lea          wd, [wd+wd-(mmsize-1)]\n    movu        xm0, [src1q]\n    movu        xm2, [src2q]\n    SPLATW       m5, xm5\n    add        dstq, wq\n    movd        xm1, [left_topq]\n    neg          wq\n    movd        xm3, [leftq]\n%if mmsize >= 32\n    movu        xm4, [src1q+14]\n%endif\n    sub       src1q, wq\n    pslldq      xm0, 2\n    pslldq      xm2, 2\n    por         xm0, xm1\n%if mmsize >= 32\n    vinserti128  m0, xm4, 1\n%endif\n    por         xm2, xm3\n%if mmsize >= 32\n    vinserti128  m2, [src2q+14], 1\n%endif\n    sub       src2q, wq\n    jmp       .init\n\n.loop:\n    movu         m0, [src1q + wq - 2]   ; lt\n    movu         m2, [src2q + wq - 2]   ; l\n.init:\n    movu         m1, [src1q + wq]       ; t\n    movu         m3, [src2q + wq]\n    psubw        m4, m2, m0             ; l - lt\n    pmax%1w      m0, m1, m2\n    paddw        m4, m1                 ; l - lt + t\n    pmin%1w      m2, m1\n    pand         m4, m5                 ; (l - lt + t)&mask\n    pmin%1w      m4, m0\n    pmax%1w      m4, m2                 ; pred\n    psubw        m3, m4                 ; l - pred\n    pand         m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:3", "text": "vinserti128  m2, [src2q+14], 1\n%endif\n    sub       src2q, wq\n    jmp       .init\n\n.loop:\n    movu         m0, [src1q + wq - 2]   ; lt\n    movu         m2, [src2q + wq - 2]   ; l\n.init:\n    movu         m1, [src1q + wq]       ; t\n    movu         m3, [src2q + wq]\n    psubw        m4, m2, m0             ; l - lt\n    pmax%1w      m0, m1, m2\n    paddw        m4, m1                 ; l - lt + t\n    pmin%1w      m2, m1\n    pand         m4, m5                 ; (l - lt + t)&mask\n    pmin%1w      m4, m0\n    pmax%1w      m4, m2                 ; pred\n    psubw        m3, m4                 ; l - pred\n    pand         m3, m5\n    movu [dstq + wq], m3\n    add          wq, mmsize\n    js        .loop\n\n    cmp          wd, mmsize-1\n    jne       .tail\n\n    movzx     src1d, word [src1q + (mmsize-1) - 2]\n    movzx     src2d, word [src2q + (mmsize-1) - 2]\n    mov [left_topq], src1d\n    mov     [leftq], src2d\n    RET\n.tail:\n    mov          wq, -1\n    jmp       .loop\n%endmacro\n\nINIT_XMM sse2\nSUB_HFYU_MEDIAN_PRED_INT16 s\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSUB_HFYU_MEDIAN_PRED_INT16 u\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/huffyuvencdsp.asm", "line_start": 81, "line_end": 124}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:1", "text": ";************************************************************************\n;* SIMD-optimized HuffYUV encoding functions\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>\n;* Conversion to NASM format by Tiancheng \"Timothy\" Gu <timothygu99@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%include \"libavcodec/x86/huffyuvdsp_template.asm\"\n\n;------------------------------------------------------------------------------\n; void ff_diff_int16(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                    unsigned mask, int w);\n;------------------------------------------------------------------------------\n\n%macro DIFF_INT16 0\ncglobal diff_int16, 5,5,5, dst, src1, src2, mask, w, tmp\n    test src1q, mmsize-1\n    jnz .unaligned\n    test src2q, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, sub\n.unaligned:\n    INT16_LOOP u, sub\n%endmacro\n\nINIT_XMM sse2\nDIFF_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_INT16\n%endif\n\nINIT_MMX mmxext\ncglobal sub_hfyu_median_pred_int16, 7,7,0, dst, src1, src2, mask, w, left, left_top\n    add      wd, wd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "154bcd10540f15a1c62cfefff1364a18a7ec4272", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/154bcd10540f15a1c62cfefff1364a18a7ec4272/libavcodec/x86/huffyuvencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:2", "text": "test src2q, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, sub\n.unaligned:\n    INT16_LOOP u, sub\n%endmacro\n\nINIT_XMM sse2\nDIFF_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_INT16\n%endif\n\nINIT_MMX mmxext\ncglobal sub_hfyu_median_pred_int16, 7,7,0, dst, src1, src2, mask, w, left, left_top\n    add      wd, wd\n    movd    mm7, maskd\n    SPLATW  mm7, mm7\n    movq    mm0, [src1q]\n    movq    mm2, [src2q]\n    psllq   mm0, 16\n    psllq   mm2, 16\n    movd    mm6, [left_topq]\n    por     mm0, mm6\n    movd    mm6, [leftq]\n    por     mm2, mm6\n    xor     maskq, maskq\n.loop:\n    movq    mm1, [src1q + maskq]\n    movq    mm3, [src2q + maskq]\n    movq    mm4, mm2\n    psubw   mm2, mm0\n    paddw   mm2, mm1\n    pand    mm2, mm7\n    movq    mm5, mm4\n    pmaxsw  mm4, mm1\n    pminsw  mm1, mm5\n    pminsw  mm4, mm2\n    pmaxsw  mm4, mm1\n    psubw   mm3, mm4\n    pand    mm3, mm7\n    movq    [dstq + maskq], mm3\n    add     maskq, 8\n    movq    mm0, [src1q + maskq - 2]\n    movq    mm2, [src2q + maskq - 2]\n    cmp     maskq, wq\n        jb .loop\n    movzx maskd, word [src1q + wq - 2]\n    mov [left_topq], maskd\n    movzx maskd, word [src2q + wq - 2]\n    mov [leftq], maskd\n    RET\n\n%macro SUB_HFYU_MEDIAN_PRED_INT16 1 ; u,s for pmaxuw vs pmaxsw\ncglobal sub_hfyu_median_pred_int16, 7,7,6, dst, src1, src2, mask, w, left, left_top\n    movd        xm5, maskd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "154bcd10540f15a1c62cfefff1364a18a7ec4272", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/154bcd10540f15a1c62cfefff1364a18a7ec4272/libavcodec/x86/huffyuvencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:3", "text": "pminsw  mm1, mm5\n    pminsw  mm4, mm2\n    pmaxsw  mm4, mm1\n    psubw   mm3, mm4\n    pand    mm3, mm7\n    movq    [dstq + maskq], mm3\n    add     maskq, 8\n    movq    mm0, [src1q + maskq - 2]\n    movq    mm2, [src2q + maskq - 2]\n    cmp     maskq, wq\n        jb .loop\n    movzx maskd, word [src1q + wq - 2]\n    mov [left_topq], maskd\n    movzx maskd, word [src2q + wq - 2]\n    mov [leftq], maskd\n    RET\n\n%macro SUB_HFYU_MEDIAN_PRED_INT16 1 ; u,s for pmaxuw vs pmaxsw\ncglobal sub_hfyu_median_pred_int16, 7,7,6, dst, src1, src2, mask, w, left, left_top\n    movd        xm5, maskd\n    lea          wd, [wd+wd-(mmsize-1)]\n    movu        xm0, [src1q]\n    movu        xm2, [src2q]\n    SPLATW       m5, xm5\n    add        dstq, wq\n    movd        xm1, [left_topq]\n    neg          wq\n    movd        xm3, [leftq]\n%if mmsize >= 32\n    movu        xm4, [src1q+14]\n%endif\n    sub       src1q, wq\n    pslldq      xm0, 2\n    pslldq      xm2, 2\n    por         xm0, xm1\n%if mmsize >= 32\n    vinserti128  m0, xm4, 1\n%endif\n    por         xm2, xm3\n%if mmsize >= 32\n    vinserti128  m2, [src2q+14], 1\n%endif\n    sub       src2q, wq\n    jmp       .init\n\n.loop:\n    movu         m0, [src1q + wq - 2]   ; lt\n    movu         m2, [src2q + wq - 2]   ; l\n.init:\n    movu         m1, [src1q + wq]       ; t\n    movu         m3, [src2q + wq]\n    psubw        m4, m2, m0             ; l - lt\n    pmax%1w      m0, m1, m2\n    paddw        m4, m1                 ; l - lt + t\n    pmin%1w      m2, m1\n    pand         m4, m5                 ; (l - lt + t)&mask\n    pmin%1w      m4, m0\n    pmax%1w      m4, m2                 ; pred\n    psubw        m3, m4                 ; l - pred\n    pand         m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "154bcd10540f15a1c62cfefff1364a18a7ec4272", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/154bcd10540f15a1c62cfefff1364a18a7ec4272/libavcodec/x86/huffyuvencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:2", "text": "test src2q, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, sub\n.unaligned:\n    INT16_LOOP u, sub\n%endmacro\n\nINIT_XMM sse2\nDIFF_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_INT16\n%endif\n\nINIT_MMX mmxext\ncglobal sub_hfyu_median_pred_int16, 7,7,0, dst, src1, src2, mask, w, left, left_top\n    add      wd, wd\n    movd    mm7, maskd\n    SPLATW  mm7, mm7\n    movq    mm0, [src1q]\n    movq    mm2, [src2q]\n    psllq   mm0, 16\n    psllq   mm2, 16\n    movd    mm6, [left_topq]\n    por     mm0, mm6\n    movd    mm6, [leftq]\n    por     mm2, mm6\n    xor     maskq, maskq\n.loop:\n    movq    mm1, [src1q + maskq]\n    movq    mm3, [src2q + maskq]\n    movq    mm4, mm2\n    psubw   mm2, mm0\n    paddw   mm2, mm1\n    pand    mm2, mm7\n    movq    mm5, mm4\n    pmaxsw  mm4, mm1\n    pminsw  mm1, mm5\n    pminsw  mm4, mm2\n    pmaxsw  mm4, mm1\n    psubw   mm3, mm4\n    pand    mm3, mm7\n    movq    [dstq + maskq], mm3\n    add     maskq, 8\n    movq    mm0, [src1q + maskq - 2]\n    movq    mm2, [src2q + maskq - 2]\n    cmp     maskq, wq\n        jb .loop\n    movzx maskd, word [src1q + wq - 2]\n    mov [left_topq], maskd\n    movzx maskd, word [src2q + wq - 2]\n    mov [leftq], maskd\n    RET\n\nINIT_XMM sse2\ncglobal sub_hfyu_median_pred_int16, 7,7,6, dst, src1, src2, mask, w, left, left_top\n    movd         m5, maskd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "e575c2d496efde0b552f3be37f8bd6f84fac030f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e575c2d496efde0b552f3be37f8bd6f84fac030f/libavcodec/x86/huffyuvencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:3", "text": "pminsw  mm1, mm5\n    pminsw  mm4, mm2\n    pmaxsw  mm4, mm1\n    psubw   mm3, mm4\n    pand    mm3, mm7\n    movq    [dstq + maskq], mm3\n    add     maskq, 8\n    movq    mm0, [src1q + maskq - 2]\n    movq    mm2, [src2q + maskq - 2]\n    cmp     maskq, wq\n        jb .loop\n    movzx maskd, word [src1q + wq - 2]\n    mov [left_topq], maskd\n    movzx maskd, word [src2q + wq - 2]\n    mov [leftq], maskd\n    RET\n\nINIT_XMM sse2\ncglobal sub_hfyu_median_pred_int16, 7,7,6, dst, src1, src2, mask, w, left, left_top\n    movd         m5, maskd\n    lea          wd, [wd+wd-(mmsize-1)]\n    movu         m0, [src1q]\n    movu         m2, [src2q]\n    SPLATW       m5, m5\n    add        dstq, wq\n    movd         m1, [left_topq]\n    neg          wq\n    movd         m3, [leftq]\n    sub       src1q, wq\n    sub       src2q, wq\n    pslldq       m0, 2\n    pslldq       m2, 2\n    por          m0, m1\n    por          m2, m3\n    jmp       .init\n\n.loop:\n    movu         m0, [src1q + wq - 2]   ; lt\n    movu         m2, [src2q + wq - 2]   ; l\n.init:\n    movu         m1, [src1q + wq]       ; t\n    movu         m3, [src2q + wq]\n    psubw        m4, m2, m0             ; l - lt\n    pmaxsw       m0, m1, m2\n    paddw        m4, m1                 ; l - lt + t\n    pminsw       m2, m1\n    pand         m4, m5                 ; (l - lt + t)&mask\n    pminsw       m4, m0\n    pmaxsw       m4, m2                 ; pred\n    psubw        m3, m4                 ; l - pred\n    pand         m3, m5\n    movu [dstq + wq], m3\n    add          wq, 16\n    js        .loop\n\n    cmp          wd, mmsize-1\n    jne       .tail\n\n    movzx     src1d, word [src1q + (mmsize-1) - 2]\n    movzx     src2d, word [src2q + (mmsize-1) - 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "e575c2d496efde0b552f3be37f8bd6f84fac030f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e575c2d496efde0b552f3be37f8bd6f84fac030f/libavcodec/x86/huffyuvencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:4", "text": "movu         m1, [src1q + wq]       ; t\n    movu         m3, [src2q + wq]\n    psubw        m4, m2, m0             ; l - lt\n    pmaxsw       m0, m1, m2\n    paddw        m4, m1                 ; l - lt + t\n    pminsw       m2, m1\n    pand         m4, m5                 ; (l - lt + t)&mask\n    pminsw       m4, m0\n    pmaxsw       m4, m2                 ; pred\n    psubw        m3, m4                 ; l - pred\n    pand         m3, m5\n    movu [dstq + wq], m3\n    add          wq, 16\n    js        .loop\n\n    cmp          wd, mmsize-1\n    jne       .tail\n\n    movzx     src1d, word [src1q + (mmsize-1) - 2]\n    movzx     src2d, word [src2q + (mmsize-1) - 2]\n    mov [left_topq], src1d\n    mov     [leftq], src2d\n    RET\n.tail:\n    mov          wq, -1\n    jmp       .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "e575c2d496efde0b552f3be37f8bd6f84fac030f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e575c2d496efde0b552f3be37f8bd6f84fac030f/libavcodec/x86/huffyuvencdsp.asm", "line_start": 121, "line_end": 146}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:2", "text": "test src2q, mmsize-1\n    jnz .unaligned\n    test dstq, mmsize-1\n    jnz .unaligned\n    INT16_LOOP a, sub\n.unaligned:\n    INT16_LOOP u, sub\n%endmacro\n\nINIT_XMM sse2\nDIFF_INT16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_INT16\n%endif\n\nINIT_MMX mmxext\ncglobal sub_hfyu_median_pred_int16, 7,7,0, dst, src1, src2, mask, w, left, left_top\n    add      wd, wd\n    movd    mm7, maskd\n    SPLATW  mm7, mm7\n    movq    mm0, [src1q]\n    movq    mm2, [src2q]\n    psllq   mm0, 16\n    psllq   mm2, 16\n    movd    mm6, [left_topq]\n    por     mm0, mm6\n    movd    mm6, [leftq]\n    por     mm2, mm6\n    xor     maskq, maskq\n.loop:\n    movq    mm1, [src1q + maskq]\n    movq    mm3, [src2q + maskq]\n    movq    mm4, mm2\n    psubw   mm2, mm0\n    paddw   mm2, mm1\n    pand    mm2, mm7\n    movq    mm5, mm4\n    pmaxsw  mm4, mm1\n    pminsw  mm1, mm5\n    pminsw  mm4, mm2\n    pmaxsw  mm4, mm1\n    psubw   mm3, mm4\n    pand    mm3, mm7\n    movq    [dstq + maskq], mm3\n    add     maskq, 8\n    movq    mm0, [src1q + maskq - 2]\n    movq    mm2, [src2q + maskq - 2]\n    cmp     maskq, wq\n        jb .loop\n    movzx maskd, word [src1q + wq - 2]\n    mov [left_topq], maskd\n    movzx maskd, word [src2q + wq - 2]\n    mov [leftq], maskd\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/huffyuvencdsp.asm", "line_start": 41, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/huffyuvencdsp.asm:3", "text": "pminsw  mm1, mm5\n    pminsw  mm4, mm2\n    pmaxsw  mm4, mm1\n    psubw   mm3, mm4\n    pand    mm3, mm7\n    movq    [dstq + maskq], mm3\n    add     maskq, 8\n    movq    mm0, [src1q + maskq - 2]\n    movq    mm2, [src2q + maskq - 2]\n    cmp     maskq, wq\n        jb .loop\n    movzx maskd, word [src1q + wq - 2]\n    mov [left_topq], maskd\n    movzx maskd, word [src2q + wq - 2]\n    mov [leftq], maskd\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/huffyuvencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/huffyuvencdsp.asm", "line_start": 81, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/idctdsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized IDCT-related routines\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_80\n\nSECTION .text\n\n;--------------------------------------------------------------------------\n;void ff_put_signed_pixels_clamped(const int16_t *block, uint8_t *pixels,\n;                                  ptrdiff_t line_size)\n;--------------------------------------------------------------------------\n\n%macro PUT_SIGNED_PIXELS_CLAMPED_HALF 1\n    mova     m1, [blockq+mmsize*0+%1]\n    mova     m2, [blockq+mmsize*2+%1]\n    packsswb m1, [blockq+mmsize*1+%1]\n    packsswb m2, [blockq+mmsize*3+%1]\n    paddb    m1, m0\n    paddb    m2, m0\n    movq     [pixelsq+lsizeq*0], m1\n    movhps   [pixelsq+lsizeq*1], m1\n    movq     [pixelsq+lsizeq*2], m2\n    movhps   [pixelsq+lsize3q ], m2\n%endmacro\n\nINIT_XMM sse2\ncglobal put_signed_pixels_clamped, 3, 4, 3, block, pixels, lsize, lsize3\n    mova     m0, [pb_80]\n    lea      lsize3q, [lsizeq*3]\n    PUT_SIGNED_PIXELS_CLAMPED_HALF 0\n    lea      pixelsq, [pixelsq+lsizeq*4]\n    PUT_SIGNED_PIXELS_CLAMPED_HALF 64\n    RET\n\n;--------------------------------------------------------------------------\n; void ff_put_pixels_clamped(const int16_t *block, uint8_t *pixels,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/idctdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/idctdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/idctdsp.asm:2", "text": "packsswb m2, [blockq+mmsize*3+%1]\n    paddb    m1, m0\n    paddb    m2, m0\n    movq     [pixelsq+lsizeq*0], m1\n    movhps   [pixelsq+lsizeq*1], m1\n    movq     [pixelsq+lsizeq*2], m2\n    movhps   [pixelsq+lsize3q ], m2\n%endmacro\n\nINIT_XMM sse2\ncglobal put_signed_pixels_clamped, 3, 4, 3, block, pixels, lsize, lsize3\n    mova     m0, [pb_80]\n    lea      lsize3q, [lsizeq*3]\n    PUT_SIGNED_PIXELS_CLAMPED_HALF 0\n    lea      pixelsq, [pixelsq+lsizeq*4]\n    PUT_SIGNED_PIXELS_CLAMPED_HALF 64\n    RET\n\n;--------------------------------------------------------------------------\n; void ff_put_pixels_clamped(const int16_t *block, uint8_t *pixels,\n;                            ptrdiff_t line_size);\n;--------------------------------------------------------------------------\n; %1 = block offset\n%macro PUT_PIXELS_CLAMPED_HALF 1\n    mova     m0, [blockq+mmsize*0+%1]\n    mova     m1, [blockq+mmsize*2+%1]\n    packuswb m0, [blockq+mmsize*1+%1]\n    packuswb m1, [blockq+mmsize*3+%1]\n    movq           [pixelsq], m0\n    movhps  [lsizeq+pixelsq], m0\n    movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endmacro\n\nINIT_XMM sse2\ncglobal put_pixels_clamped, 3, 4, 2, block, pixels, lsize, lsize3\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\n    RET\n\n;--------------------------------------------------------------------------\n; void ff_add_pixels_clamped(const int16_t *block, uint8_t *pixels,\n;                            ptrdiff_t line_size);\n;--------------------------------------------------------------------------\n; %1 = block offset\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n    packuswb   m0, m1\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/idctdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/idctdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/idctdsp.asm:3", "text": "RET\n\n;--------------------------------------------------------------------------\n; void ff_add_pixels_clamped(const int16_t *block, uint8_t *pixels,\n;                            ptrdiff_t line_size);\n;--------------------------------------------------------------------------\n; %1 = block offset\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n    packuswb   m0, m1\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endmacro\n\nINIT_XMM sse2\ncglobal add_pixels_clamped, 3, 3, 5, block, pixels, lsize\n    pxor       m4, m4\n    ADD_PIXELS_CLAMPED 0\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 32\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 64\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 96\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/idctdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/idctdsp.asm", "line_start": 81, "line_end": 112}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:1", "text": ";******************************************************************************\n;* 36 point SSE-optimized IMDCT transform\n;* Copyright (c) 2011 Vitor Sessak\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nps_mask:  dd 0, ~0, ~0, ~0\nps_mask2: dd 0, ~0,  0, ~0\nps_mask3: dd 0,  0,  0, ~0\nps_mask4: dd 0, ~0,  0,  0\n\nps_val1:  dd          -0.5,          -0.5, -0.8660254038, -0.8660254038\nps_val2:  dd           1.0,           1.0,  0.8660254038,  0.8660254038\nps_val3:  dd  0.1736481777,  0.1736481777,  0.3420201433,  0.3420201433\nps_val4:  dd -0.7660444431, -0.7660444431,  0.8660254038,  0.8660254038\nps_val5:  dd -0.9396926208, -0.9396926208, -0.9848077530, -0.9848077530\nps_val6:  dd           0.5,           0.5, -0.6427876097, -0.6427876097\nps_val7:  dd           1.0,           1.0, -0.6427876097, -0.6427876097\n\nps_p1p1m1m1: dd 0,          0, 0x80000000, 0x80000000\nps_p1m1p1m1: dd 0, 0x80000000,          0, 0x80000000\n\nps_cosh:       dd 1.0, 0.50190991877167369479,  1.0,  5.73685662283492756461\n               dd 1.0, 0.51763809020504152469,  1.0,  1.93185165257813657349\n               dd 1.0, 0.55168895948124587824, -1.0, -1.18310079157624925896\n               dd 1.0, 0.61038729438072803416, -1.0, -0.87172339781054900991\n               dd 1.0, 0.70710678118654752439,  0.0,  0.0\n\nps_cosh_sse3:  dd 1.0, -0.50190991877167369479,  1.0, -5.73685662283492756461\n               dd 1.0, -0.51763809020504152469,  1.0, -1.93185165257813657349\n               dd 1.0, -0.55168895948124587824, -1.0,  1.18310079157624925896\n               dd 1.0, -0.61038729438072803416, -1.0,  0.87172339781054900991\n               dd 1.0, -0.70710678118654752439,  0.0,  0.0\n\ncostabs:  times 4 dd  0.98480773\n          times 4 dd  0.93969262\n          times 4 dd  0.86602539\n          times 4 dd -0.76604444\n          times 4 dd -0.64278764\n          times 4 dd  0.50000000\n          times 4 dd -0.50000000", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:2", "text": "ps_cosh:       dd 1.0, 0.50190991877167369479,  1.0,  5.73685662283492756461\n               dd 1.0, 0.51763809020504152469,  1.0,  1.93185165257813657349\n               dd 1.0, 0.55168895948124587824, -1.0, -1.18310079157624925896\n               dd 1.0, 0.61038729438072803416, -1.0, -0.87172339781054900991\n               dd 1.0, 0.70710678118654752439,  0.0,  0.0\n\nps_cosh_sse3:  dd 1.0, -0.50190991877167369479,  1.0, -5.73685662283492756461\n               dd 1.0, -0.51763809020504152469,  1.0, -1.93185165257813657349\n               dd 1.0, -0.55168895948124587824, -1.0,  1.18310079157624925896\n               dd 1.0, -0.61038729438072803416, -1.0,  0.87172339781054900991\n               dd 1.0, -0.70710678118654752439,  0.0,  0.0\n\ncostabs:  times 4 dd  0.98480773\n          times 4 dd  0.93969262\n          times 4 dd  0.86602539\n          times 4 dd -0.76604444\n          times 4 dd -0.64278764\n          times 4 dd  0.50000000\n          times 4 dd -0.50000000\n          times 4 dd -0.34202015\n          times 4 dd -0.17364818\n          times 4 dd  0.50190992\n          times 4 dd  0.51763808\n          times 4 dd  0.55168896\n          times 4 dd  0.61038726\n          times 4 dd  0.70710677\n          times 4 dd  0.87172341\n          times 4 dd  1.18310082\n          times 4 dd  1.93185163\n          times 4 dd  5.73685646\n\n%define SBLIMIT 32\nSECTION .text\n\n%macro PSHUFD 3\n%if cpuflag(sse2) && notcpuflag(avx)\n    pshufd %1, %2, %3\n%else\n    shufps %1, %2, %2, %3\n%endif\n%endmacro\n\n; input  %2={x1,x2,x3,x4}, %3={y1,y2,y3,y4}\n; output %1={x3,x4,y1,y2}\n%macro BUILDINVHIGHLOW 3\n%if cpuflag(avx)\n    shufps %1, %2, %3, 0x4e\n%else\n    movlhps %1, %3\n    movhlps %1, %2\n%endif\n%endmacro\n\n; input  %2={x1,x2,x3,x4}, %3={y1,y2,y3,y4}\n; output %1={x4,y1,y2,y3}\n%macro ROTLEFT 3\n%if cpuflag(ssse3)\n    palignr  %1, %3, %2, 12\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:3", "text": "%endif\n%endmacro\n\n; input  %2={x1,x2,x3,x4}, %3={y1,y2,y3,y4}\n; output %1={x3,x4,y1,y2}\n%macro BUILDINVHIGHLOW 3\n%if cpuflag(avx)\n    shufps %1, %2, %3, 0x4e\n%else\n    movlhps %1, %3\n    movhlps %1, %2\n%endif\n%endmacro\n\n; input  %2={x1,x2,x3,x4}, %3={y1,y2,y3,y4}\n; output %1={x4,y1,y2,y3}\n%macro ROTLEFT 3\n%if cpuflag(ssse3)\n    palignr  %1, %3, %2, 12\n%else\n    BUILDINVHIGHLOW %1, %2, %3\n    shufps  %1, %1, %3, 0x99\n%endif\n%endmacro\n\n%macro INVERTHL 2\n%if cpuflag(sse2)\n    PSHUFD  %1, %2, 0x4e\n%else\n    movhlps %1, %2\n    movlhps %1, %2\n%endif\n%endmacro\n\n%macro BUTTERF 3\n    INVERTHL %2, %1\n    xorps    %1, [ps_p1p1m1m1]\n    addps    %1, %2\n%if cpuflag(sse3)\n    mulps    %1, %1, [ps_cosh_sse3 + %3]\n    PSHUFD   %2, %1, 0xb1\n    addsubps %1, %1, %2\n%else\n    mulps    %1, [ps_cosh + %3]\n    PSHUFD   %2, %1, 0xb1\n    xorps    %1, [ps_p1m1p1m1]\n    addps    %1, %2\n%endif\n%endmacro\n\n%macro BUTTERF2 3\n%if cpuflag(sse3)\n    mulps    %1, %1, [ps_cosh_sse3 + %3]\n    PSHUFD   %2, %1, 0xe1\n    addsubps %1, %1, %2\n%else\n    mulps    %1, [ps_cosh + %3]\n    PSHUFD   %2, %1, 0xe1\n    xorps    %1, [ps_p1m1p1m1]\n    addps    %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:4", "text": "PSHUFD   %2, %1, 0xb1\n    addsubps %1, %1, %2\n%else\n    mulps    %1, [ps_cosh + %3]\n    PSHUFD   %2, %1, 0xb1\n    xorps    %1, [ps_p1m1p1m1]\n    addps    %1, %2\n%endif\n%endmacro\n\n%macro BUTTERF2 3\n%if cpuflag(sse3)\n    mulps    %1, %1, [ps_cosh_sse3 + %3]\n    PSHUFD   %2, %1, 0xe1\n    addsubps %1, %1, %2\n%else\n    mulps    %1, [ps_cosh + %3]\n    PSHUFD   %2, %1, 0xe1\n    xorps    %1, [ps_p1m1p1m1]\n    addps    %1, %2\n%endif\n%endmacro\n\n%macro STORE 4\n%if cpuflag(sse4)\n    movss     [%3       ], %1\n    extractps dword [%3 +   %4], %1, 1\n    extractps dword [%3 + 2*%4], %1, 2\n    extractps dword [%3 + 3*%4], %1, 3\n%else\n    movhlps %2, %1\n    movss   [%3       ], %1\n    movss   [%3 + 2*%4], %2\n    shufps  %1, %1, 0xb1\n    movss   [%3 +   %4], %1\n    movhlps %2, %1\n    movss   [%3 + 3*%4], %2\n%endif\n%endmacro\n\n%macro LOAD 4\n    movlps  %1, [%3       ]\n    movhps  %1, [%3 +   %4]\n    movlps  %2, [%3 + 2*%4]\n    movhps  %2, [%3 + 3*%4]\n    shufps  %1, %2, 0x88\n%endmacro\n\n%macro LOADA64 2\n%if cpuflag(avx)\n   movu     %1, [%2]\n%else\n   movlps   %1, [%2]\n   movhps   %1, [%2 + 8]\n%endif\n%endmacro\n\n%macro DEFINE_IMDCT 0\ncglobal imdct36_float, 4,4,9, out, buf, in, win", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:5", "text": "%macro LOAD 4\n    movlps  %1, [%3       ]\n    movhps  %1, [%3 +   %4]\n    movlps  %2, [%3 + 2*%4]\n    movhps  %2, [%3 + 3*%4]\n    shufps  %1, %2, 0x88\n%endmacro\n\n%macro LOADA64 2\n%if cpuflag(avx)\n   movu     %1, [%2]\n%else\n   movlps   %1, [%2]\n   movhps   %1, [%2 + 8]\n%endif\n%endmacro\n\n%macro DEFINE_IMDCT 0\ncglobal imdct36_float, 4,4,9, out, buf, in, win\n\n    ; for(i=17;i>=1;i--) in[i] += in[i-1];\n    LOADA64 m0, inq\n    LOADA64 m1, inq + 16\n\n    ROTLEFT m5, m0, m1\n\n    PSHUFD  m6, m0, 0x93\n    andps   m6, m6, [ps_mask]\n    addps   m0, m0, m6\n\n    LOADA64 m2, inq + 32\n\n    ROTLEFT m7, m1, m2\n\n    addps   m1, m1, m5\n    LOADA64 m3, inq + 48\n\n    ROTLEFT m5, m2, m3\n\n    xorps   m4, m4, m4\n    movlps  m4, [inq+64]\n    BUILDINVHIGHLOW m6, m3, m4\n    shufps  m6, m6, m4, 0xa9\n\n    addps   m4, m4, m6\n    addps   m2, m2, m7\n    addps   m3, m3, m5\n\n    ; for(i=17;i>=3;i-=2) in[i] += in[i-2];\n    movlhps m5, m5, m0\n    andps   m5, m5, [ps_mask3]\n\n    BUILDINVHIGHLOW m7, m0, m1\n    andps   m7, m7, [ps_mask2]\n\n    addps   m0, m0, m5\n\n    BUILDINVHIGHLOW m6, m1, m2\n    andps   m6, m6, [ps_mask2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:6", "text": "movlps  m4, [inq+64]\n    BUILDINVHIGHLOW m6, m3, m4\n    shufps  m6, m6, m4, 0xa9\n\n    addps   m4, m4, m6\n    addps   m2, m2, m7\n    addps   m3, m3, m5\n\n    ; for(i=17;i>=3;i-=2) in[i] += in[i-2];\n    movlhps m5, m5, m0\n    andps   m5, m5, [ps_mask3]\n\n    BUILDINVHIGHLOW m7, m0, m1\n    andps   m7, m7, [ps_mask2]\n\n    addps   m0, m0, m5\n\n    BUILDINVHIGHLOW m6, m1, m2\n    andps   m6, m6, [ps_mask2]\n\n    addps  m1, m1, m7\n\n    BUILDINVHIGHLOW m7, m2, m3\n    andps   m7, m7, [ps_mask2]\n\n    addps   m2, m2, m6\n\n    movhlps m6, m6, m3\n    andps   m6, m6, [ps_mask4]\n\n    addps  m3, m3, m7\n    addps  m4, m4, m6\n\n    ; Populate tmp[]\n    movlhps m6, m1, m5    ; zero out high values\n    subps   m6, m6, m4\n\n    subps  m5, m0, m3\n\n%if ARCH_X86_64\n    SWAP   m5, m8\n%endif\n\n    mulps  m7, m2, [ps_val1]\n\n%if ARCH_X86_64\n    mulps  m5, m8, [ps_val2]\n%else\n    mulps  m5, m5, [ps_val2]\n%endif\n    addps  m7, m7, m5\n\n    mulps  m5, m6, [ps_val1]\n    subps  m7, m7, m5\n\n%if ARCH_X86_64\n    SWAP   m5, m8\n%else\n    subps  m5, m0, m3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:7", "text": "SWAP   m5, m8\n%endif\n\n    mulps  m7, m2, [ps_val1]\n\n%if ARCH_X86_64\n    mulps  m5, m8, [ps_val2]\n%else\n    mulps  m5, m5, [ps_val2]\n%endif\n    addps  m7, m7, m5\n\n    mulps  m5, m6, [ps_val1]\n    subps  m7, m7, m5\n\n%if ARCH_X86_64\n    SWAP   m5, m8\n%else\n    subps  m5, m0, m3\n%endif\n\n    subps  m5, m5, m6\n    addps  m5, m5, m2\n\n    shufps m6, m4, m3, 0xe4\n    subps  m6, m6, m2\n    mulps  m6, m6, [ps_val3]\n\n    addps  m4, m4, m1\n    mulps  m4, m4, [ps_val4]\n\n    shufps m1, m1, m0, 0xe4\n    addps  m1, m1, m2\n    mulps  m1, m1, [ps_val5]\n\n    mulps  m3, m3, [ps_val6]\n    mulps  m0, m0, [ps_val7]\n    addps  m0, m0, m3\n\n    xorps  m2, m1, [ps_p1p1m1m1]\n    subps  m2, m2, m4\n    addps  m2, m2, m0\n\n    addps  m3, m4, m0\n    subps  m3, m3, m6\n    xorps  m3, m3, [ps_p1p1m1m1]\n\n    shufps m0, m0, m4, 0xe4\n    subps  m0, m0, m1\n    addps  m0, m0, m6\n\n    BUILDINVHIGHLOW m4, m2, m3\n    shufps  m3, m3, m2, 0x4e\n\n    ; we have tmp = {SwAPLH(m0), SwAPLH(m7), m3, m4, m5}\n\n    BUTTERF  m0, m1, 0\n    BUTTERF  m7, m2, 16\n    BUTTERF  m3, m6, 32\n    BUTTERF  m4, m1, 48", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:8", "text": "subps  m2, m2, m4\n    addps  m2, m2, m0\n\n    addps  m3, m4, m0\n    subps  m3, m3, m6\n    xorps  m3, m3, [ps_p1p1m1m1]\n\n    shufps m0, m0, m4, 0xe4\n    subps  m0, m0, m1\n    addps  m0, m0, m6\n\n    BUILDINVHIGHLOW m4, m2, m3\n    shufps  m3, m3, m2, 0x4e\n\n    ; we have tmp = {SwAPLH(m0), SwAPLH(m7), m3, m4, m5}\n\n    BUTTERF  m0, m1, 0\n    BUTTERF  m7, m2, 16\n    BUTTERF  m3, m6, 32\n    BUTTERF  m4, m1, 48\n    BUTTERF2 m5, m1, 64\n\n    ; permutates:\n    ; m0    0  1  2  3     =>     2  6 10 14   m1\n    ; m7    4  5  6  7     =>     3  7 11 15   m2\n    ; m3    8  9 10 11     =>    17 13  9  5   m3\n    ; m4   12 13 14 15     =>    16 12  8  4   m5\n    ; m5   16 17 xx xx     =>     0  1 xx xx   m0\n\n    unpckhps m1, m0, m7\n    unpckhps m6, m3, m4\n    movhlps  m2, m6, m1\n    movlhps  m1, m1, m6\n\n    unpcklps m5, m5, m4\n    unpcklps m3, m3, m7\n    movhlps  m4, m3, m5\n    movlhps  m5, m5, m3\n    SWAP m4, m3\n    ; permutation done\n\n    PSHUFD  m6, m2, 0xb1\n    movss   m4, [bufq + 4*68]\n    movss   m7, [bufq + 4*64]\n    unpcklps  m7, m7, m4\n    mulps   m6, m6, [winq + 16*4]\n    addps   m6, m6, m7\n    movss   [outq + 64*SBLIMIT], m6\n    shufps  m6, m6, m6, 0xb1\n    movss   [outq + 68*SBLIMIT], m6\n\n    mulps   m6, m3, [winq + 4*4]\n    LOAD    m4, m7, bufq + 4*16, 16\n    addps   m6, m6, m4\n    STORE   m6, m7, outq + 16*SBLIMIT, 4*SBLIMIT\n\n    shufps  m4, m0, m3, 0xb5\n    mulps   m4, m4, [winq + 8*4]\n    LOAD    m7, m6, bufq + 4*32, 16\n    addps   m4, m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:9", "text": "PSHUFD  m6, m2, 0xb1\n    movss   m4, [bufq + 4*68]\n    movss   m7, [bufq + 4*64]\n    unpcklps  m7, m7, m4\n    mulps   m6, m6, [winq + 16*4]\n    addps   m6, m6, m7\n    movss   [outq + 64*SBLIMIT], m6\n    shufps  m6, m6, m6, 0xb1\n    movss   [outq + 68*SBLIMIT], m6\n\n    mulps   m6, m3, [winq + 4*4]\n    LOAD    m4, m7, bufq + 4*16, 16\n    addps   m6, m6, m4\n    STORE   m6, m7, outq + 16*SBLIMIT, 4*SBLIMIT\n\n    shufps  m4, m0, m3, 0xb5\n    mulps   m4, m4, [winq + 8*4]\n    LOAD    m7, m6, bufq + 4*32, 16\n    addps   m4, m4, m7\n    STORE   m4, m6, outq + 32*SBLIMIT, 4*SBLIMIT\n\n    shufps  m3, m3, m2, 0xb1\n    mulps   m3, m3, [winq + 12*4]\n    LOAD    m7, m6, bufq + 4*48, 16\n    addps   m3, m3, m7\n    STORE   m3, m7, outq + 48*SBLIMIT, 4*SBLIMIT\n\n    mulps   m2, m2, [winq]\n    LOAD    m6, m7, bufq, 16\n    addps   m2, m2, m6\n    STORE   m2, m7, outq, 4*SBLIMIT\n\n    mulps    m4, m1, [winq + 20*4]\n    STORE    m4, m7, bufq, 16\n\n    mulps    m3, m5, [winq + 24*4]\n    STORE    m3, m7, bufq + 4*16, 16\n\n    shufps   m0, m0, m5, 0xb0\n    mulps    m0, m0, [winq + 28*4]\n    STORE    m0, m7, bufq + 4*32, 16\n\n    shufps   m5, m5, m1, 0xb1\n    mulps    m5, m5, [winq + 32*4]\n    STORE    m5, m7, bufq + 4*48, 16\n\n    shufps   m1, m1, m1, 0xb1\n    mulps    m1, m1, [winq + 36*4]\n    movss    [bufq + 4*64], m1\n    shufps   m1, m1, 0xb1\n    movss    [bufq + 4*68], m1\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEFINE_IMDCT\n\nINIT_XMM sse3\nDEFINE_IMDCT", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:10", "text": "mulps    m0, m0, [winq + 28*4]\n    STORE    m0, m7, bufq + 4*32, 16\n\n    shufps   m5, m5, m1, 0xb1\n    mulps    m5, m5, [winq + 32*4]\n    STORE    m5, m7, bufq + 4*48, 16\n\n    shufps   m1, m1, m1, 0xb1\n    mulps    m1, m1, [winq + 36*4]\n    movss    [bufq + 4*64], m1\n    shufps   m1, m1, 0xb1\n    movss    [bufq + 4*68], m1\n    RET\n%endmacro\n\nINIT_XMM sse2\nDEFINE_IMDCT\n\nINIT_XMM sse3\nDEFINE_IMDCT\n\nINIT_XMM ssse3\nDEFINE_IMDCT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEFINE_IMDCT\n%endif\n\nINIT_XMM sse\n\n%if ARCH_X86_64\n%define SPILL SWAP\n%define UNSPILL SWAP\n%define SPILLED(x) m %+ x\n%else\n%define SPILLED(x) [tmpq+(x-8)*16 + 32*4]\n%macro SPILL 2 ; xmm#, mempos\n    movaps SPILLED(%2), m%1\n%endmacro\n%macro UNSPILL 2\n    movaps m%1, SPILLED(%2)\n%endmacro\n%endif\n\n%macro DEFINE_FOUR_IMDCT 0\ncglobal four_imdct36_float, 5,5,16, out, buf, in, win, tmp\n    movlps  m0, [inq+64]\n    movhps  m0, [inq+64 +   72]\n    movlps  m3, [inq+64 + 2*72]\n    movhps  m3, [inq+64 + 3*72]\n\n    shufps  m5, m0, m3, 0xdd\n    shufps  m0, m0, m3, 0x88\n\n    mova     m1, [inq+48]\n    movu     m6, [inq+48 +   72]\n    mova     m7, [inq+48 + 2*72]\n    movu     m3, [inq+48 + 3*72]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:11", "text": "%macro UNSPILL 2\n    movaps m%1, SPILLED(%2)\n%endmacro\n%endif\n\n%macro DEFINE_FOUR_IMDCT 0\ncglobal four_imdct36_float, 5,5,16, out, buf, in, win, tmp\n    movlps  m0, [inq+64]\n    movhps  m0, [inq+64 +   72]\n    movlps  m3, [inq+64 + 2*72]\n    movhps  m3, [inq+64 + 3*72]\n\n    shufps  m5, m0, m3, 0xdd\n    shufps  m0, m0, m3, 0x88\n\n    mova     m1, [inq+48]\n    movu     m6, [inq+48 +   72]\n    mova     m7, [inq+48 + 2*72]\n    movu     m3, [inq+48 + 3*72]\n\n    TRANSPOSE4x4PS 1, 6, 7, 3, 4\n\n    addps   m4, m6, m7\n    mova    [tmpq+4*28], m4\n\n    addps    m7, m3\n    addps    m6, m1\n    addps    m3, m0\n    addps    m0, m5\n    addps    m0, m7\n    addps    m7, m6\n    mova    [tmpq+4*12], m7\n    SPILL   3, 12\n\n    mova     m4, [inq+32]\n    movu     m5, [inq+32 +   72]\n    mova     m2, [inq+32 + 2*72]\n    movu     m7, [inq+32 + 3*72]\n\n    TRANSPOSE4x4PS 4, 5, 2, 7, 3\n\n    addps   m1, m7\n    SPILL   1, 11\n\n    addps   m3, m5, m2\n    SPILL   3, 13\n\n    addps    m7, m2\n    addps    m5, m4\n    addps    m6, m7\n    mova    [tmpq], m6\n    addps   m7, m5\n    mova    [tmpq+4*16], m7\n\n    mova    m2, [inq+16]\n    movu    m7, [inq+16 +   72]\n    mova    m1, [inq+16 + 2*72]\n    movu    m6, [inq+16 + 3*72]\n\n    TRANSPOSE4x4PS 2, 7, 1, 6, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:12", "text": "addps   m1, m7\n    SPILL   1, 11\n\n    addps   m3, m5, m2\n    SPILL   3, 13\n\n    addps    m7, m2\n    addps    m5, m4\n    addps    m6, m7\n    mova    [tmpq], m6\n    addps   m7, m5\n    mova    [tmpq+4*16], m7\n\n    mova    m2, [inq+16]\n    movu    m7, [inq+16 +   72]\n    mova    m1, [inq+16 + 2*72]\n    movu    m6, [inq+16 + 3*72]\n\n    TRANSPOSE4x4PS 2, 7, 1, 6, 3\n\n    addps   m4, m6\n    addps   m6, m1\n    addps   m1, m7\n    addps   m7, m2\n    addps   m5, m6\n    SPILL   5, 15\n    addps   m6, m7\n    mulps   m6, [costabs + 16*2]\n    mova    [tmpq+4*8], m6\n    SPILL   1, 10\n    SPILL   0, 14\n\n    mova    m1, [inq]\n    movu    m6, [inq +   72]\n    mova    m3, [inq + 2*72]\n    movu    m5, [inq + 3*72]\n\n    TRANSPOSE4x4PS 1, 6, 3, 5, 0\n\n    addps    m2, m5\n    addps    m5, m3\n    addps    m7, m5\n    addps    m3, m6\n    addps    m6, m1\n    SPILL    7, 8\n    addps    m5, m6\n    SPILL    6, 9\n    addps    m6, m4, SPILLED(12)\n    subps    m6, m2\n    UNSPILL  7, 11\n    SPILL    5, 11\n    subps    m5, m1, m7\n    mulps    m7, [costabs + 16*5]\n    addps    m7, m1\n    mulps    m0, m6, [costabs + 16*6]\n    addps    m0, m5\n    mova     [tmpq+4*24], m0\n    addps    m6, m5\n    mova     [tmpq+4*4], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:13", "text": "addps    m2, m5\n    addps    m5, m3\n    addps    m7, m5\n    addps    m3, m6\n    addps    m6, m1\n    SPILL    7, 8\n    addps    m5, m6\n    SPILL    6, 9\n    addps    m6, m4, SPILLED(12)\n    subps    m6, m2\n    UNSPILL  7, 11\n    SPILL    5, 11\n    subps    m5, m1, m7\n    mulps    m7, [costabs + 16*5]\n    addps    m7, m1\n    mulps    m0, m6, [costabs + 16*6]\n    addps    m0, m5\n    mova     [tmpq+4*24], m0\n    addps    m6, m5\n    mova     [tmpq+4*4], m6\n    addps    m6, m4, m2\n    mulps    m6, [costabs + 16*1]\n    subps    m4, SPILLED(12)\n    mulps    m4, [costabs + 16*8]\n    addps    m2, SPILLED(12)\n    mulps    m2, [costabs + 16*3]\n    subps    m5, m7, m6\n    subps    m5, m2\n    addps    m6, m7\n    addps    m6, m4\n    addps    m7, m2\n    subps    m7, m4\n    mova     [tmpq+4*20], m7\n    mova     m2, [tmpq+4*28]\n    mova     [tmpq+4*28], m5\n    UNSPILL  7, 13\n    subps    m5, m7, m2\n    mulps    m5, [costabs + 16*7]\n    UNSPILL  1, 10\n    mulps    m1, [costabs + 16*2]\n    addps    m4, m3, m2\n    mulps    m4, [costabs + 16*4]\n    addps    m2, m7\n    addps    m7, m3\n    mulps    m7, [costabs]\n    subps    m3, m2\n    mulps    m3, [costabs + 16*2]\n    addps    m2, m7, m5\n    addps    m2, m1\n    SPILL    2, 10\n    addps    m7, m4\n    subps    m7, m1\n    SPILL    7, 12\n    subps    m5, m4\n    subps    m5, m1\n    UNSPILL  0, 14\n    SPILL    5, 13\n    addps    m1, m0, SPILLED(15)\n    subps    m1, SPILLED(8)\n    mova     m4, [costabs + 16*5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:14", "text": "addps    m4, m3, m2\n    mulps    m4, [costabs + 16*4]\n    addps    m2, m7\n    addps    m7, m3\n    mulps    m7, [costabs]\n    subps    m3, m2\n    mulps    m3, [costabs + 16*2]\n    addps    m2, m7, m5\n    addps    m2, m1\n    SPILL    2, 10\n    addps    m7, m4\n    subps    m7, m1\n    SPILL    7, 12\n    subps    m5, m4\n    subps    m5, m1\n    UNSPILL  0, 14\n    SPILL    5, 13\n    addps    m1, m0, SPILLED(15)\n    subps    m1, SPILLED(8)\n    mova     m4, [costabs + 16*5]\n    mulps    m4, [tmpq]\n    UNSPILL  2, 9\n    addps    m4, m2\n    subps    m2, [tmpq]\n    mulps    m5, m1, [costabs + 16*6]\n    addps    m5, m2\n    SPILL    5, 9\n    addps    m2, m1\n    SPILL    2, 14\n    UNSPILL  5, 15\n    subps    m7, m5, m0\n    addps    m5, SPILLED(8)\n    mulps    m5, [costabs + 16*1]\n    mulps    m7, [costabs + 16*8]\n    addps    m0, SPILLED(8)\n    mulps    m0, [costabs + 16*3]\n    subps    m2, m4, m5\n    subps    m2, m0\n    SPILL    2, 15\n    addps    m5, m4\n    addps    m5, m7\n    addps    m4, m0\n    subps    m4, m7\n    SPILL    4, 8\n    mova     m7, [tmpq+4*16]\n    mova     m2, [tmpq+4*12]\n    addps    m0, m7, m2\n    subps    m0, SPILLED(11)\n    mulps    m0, [costabs + 16*2]\n    addps    m4, m7, SPILLED(11)\n    mulps    m4, [costabs]\n    subps    m7, m2\n    mulps    m7, [costabs + 16*7]\n    addps    m2, SPILLED(11)\n    mulps    m2, [costabs + 16*4]\n    addps    m1, m7, [tmpq+4*8]\n    addps    m1, m4\n    addps    m4, m2\n    subps    m4, [tmpq+4*8]\n    SPILL    4, 11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:15", "text": "addps    m5, m7\n    addps    m4, m0\n    subps    m4, m7\n    SPILL    4, 8\n    mova     m7, [tmpq+4*16]\n    mova     m2, [tmpq+4*12]\n    addps    m0, m7, m2\n    subps    m0, SPILLED(11)\n    mulps    m0, [costabs + 16*2]\n    addps    m4, m7, SPILLED(11)\n    mulps    m4, [costabs]\n    subps    m7, m2\n    mulps    m7, [costabs + 16*7]\n    addps    m2, SPILLED(11)\n    mulps    m2, [costabs + 16*4]\n    addps    m1, m7, [tmpq+4*8]\n    addps    m1, m4\n    addps    m4, m2\n    subps    m4, [tmpq+4*8]\n    SPILL    4, 11\n    subps    m7, m2\n    subps    m7, [tmpq+4*8]\n    addps    m4, m6, SPILLED(10)\n    subps    m6, SPILLED(10)\n    addps    m2, m5, m1\n    mulps    m2, [costabs + 16*9]\n    subps    m5, m1\n    mulps    m5, [costabs + 16*17]\n    subps    m1, m4, m2\n    addps    m4, m2\n    mulps    m2, m1, [winq+4*36]\n    addps    m2, [bufq+4*36]\n    mova     [outq+1152], m2\n    mulps    m1, [winq+4*32]\n    addps    m1, [bufq+4*32]\n    mova     [outq+1024], m1\n    mulps    m1, m4, [winq+4*116]\n    mova     [bufq+4*36], m1\n    mulps    m4, [winq+4*112]\n    mova     [bufq+4*32], m4\n    addps    m2, m6, m5\n    subps    m6, m5\n    mulps    m1, m6, [winq+4*68]\n    addps    m1, [bufq+4*68]\n    mova     [outq+2176], m1\n    mulps    m6, [winq]\n    addps    m6, [bufq]\n    mova     [outq], m6\n    mulps    m1, m2, [winq+4*148]\n    mova     [bufq+4*68], m1\n    mulps    m2, [winq+4*80]\n    mova     [bufq], m2\n    addps    m5, m3, [tmpq+4*24]\n    mova     m2, [tmpq+4*24]\n    subps    m2, m3\n    mova     m1, SPILLED(9)\n    subps    m1, m0\n    mulps    m1, [costabs + 16*10]\n    addps    m0, SPILLED(9)\n    mulps    m0, [costabs + 16*16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:16", "text": "addps    m2, m6, m5\n    subps    m6, m5\n    mulps    m1, m6, [winq+4*68]\n    addps    m1, [bufq+4*68]\n    mova     [outq+2176], m1\n    mulps    m6, [winq]\n    addps    m6, [bufq]\n    mova     [outq], m6\n    mulps    m1, m2, [winq+4*148]\n    mova     [bufq+4*68], m1\n    mulps    m2, [winq+4*80]\n    mova     [bufq], m2\n    addps    m5, m3, [tmpq+4*24]\n    mova     m2, [tmpq+4*24]\n    subps    m2, m3\n    mova     m1, SPILLED(9)\n    subps    m1, m0\n    mulps    m1, [costabs + 16*10]\n    addps    m0, SPILLED(9)\n    mulps    m0, [costabs + 16*16]\n    addps    m6, m5, m1\n    subps    m5, m1\n    mulps    m3, m5, [winq+4*40]\n    addps    m3, [bufq+4*40]\n    mova     [outq+1280], m3\n    mulps    m5, [winq+4*28]\n    addps    m5, [bufq+4*28]\n    mova     [outq+896], m5\n    mulps    m1, m6, [winq+4*120]\n    mova     [bufq+4*40], m1\n    mulps    m6, [winq+4*108]\n    mova     [bufq+4*28], m6\n    addps    m1, m2, m0\n    subps    m2, m0\n    mulps    m5, m2, [winq+4*64]\n    addps    m5, [bufq+4*64]\n    mova     [outq+2048], m5\n    mulps    m2, [winq+4*4]\n    addps    m2, [bufq+4*4]\n    mova     [outq+128], m2\n    mulps    m0, m1, [winq+4*144]\n    mova     [bufq+4*64], m0\n    mulps    m1, [winq+4*84]\n    mova     [bufq+4*4], m1\n    mova     m1, [tmpq+4*28]\n    mova     m5, m1\n    addps    m1, SPILLED(13)\n    subps    m5, SPILLED(13)\n    UNSPILL  3, 15\n    addps    m2, m7, m3\n    mulps    m2, [costabs + 16*11]\n    subps    m3, m7\n    mulps    m3, [costabs + 16*15]\n    addps    m0, m2, m1\n    subps    m1, m2\n    SWAP     m0, m2\n    mulps    m6, m1, [winq+4*44]\n    addps    m6, [bufq+4*44]\n    mova     [outq+1408], m6\n    mulps    m1, [winq+4*24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:17", "text": "mulps    m0, m1, [winq+4*144]\n    mova     [bufq+4*64], m0\n    mulps    m1, [winq+4*84]\n    mova     [bufq+4*4], m1\n    mova     m1, [tmpq+4*28]\n    mova     m5, m1\n    addps    m1, SPILLED(13)\n    subps    m5, SPILLED(13)\n    UNSPILL  3, 15\n    addps    m2, m7, m3\n    mulps    m2, [costabs + 16*11]\n    subps    m3, m7\n    mulps    m3, [costabs + 16*15]\n    addps    m0, m2, m1\n    subps    m1, m2\n    SWAP     m0, m2\n    mulps    m6, m1, [winq+4*44]\n    addps    m6, [bufq+4*44]\n    mova     [outq+1408], m6\n    mulps    m1, [winq+4*24]\n    addps    m1, [bufq+4*24]\n    mova     [outq+768], m1\n    mulps    m0, m2, [winq+4*124]\n    mova     [bufq+4*44], m0\n    mulps    m2, [winq+4*104]\n    mova     [bufq+4*24], m2\n    addps    m0, m5, m3\n    subps    m5, m3\n    mulps    m1, m5, [winq+4*60]\n    addps    m1, [bufq+4*60]\n    mova     [outq+1920], m1\n    mulps    m5, [winq+4*8]\n    addps    m5, [bufq+4*8]\n    mova     [outq+256], m5\n    mulps    m1, m0, [winq+4*140]\n    mova     [bufq+4*60], m1\n    mulps    m0, [winq+4*88]\n    mova     [bufq+4*8], m0\n    mova     m1, [tmpq+4*20]\n    addps    m1, SPILLED(12)\n    mova     m2, [tmpq+4*20]\n    subps    m2, SPILLED(12)\n    UNSPILL  7, 8\n    subps    m0, m7, SPILLED(11)\n    addps    m7, SPILLED(11)\n    mulps    m4, m7, [costabs + 16*12]\n    mulps    m0, [costabs + 16*14]\n    addps    m5, m1, m4\n    subps    m1, m4\n    mulps    m7, m1, [winq+4*48]\n    addps    m7, [bufq+4*48]\n    mova     [outq+1536], m7\n    mulps    m1, [winq+4*20]\n    addps    m1, [bufq+4*20]\n    mova     [outq+640], m1\n    mulps    m1, m5, [winq+4*128]\n    mova     [bufq+4*48], m1\n    mulps    m5, [winq+4*100]\n    mova     [bufq+4*20], m5\n    addps    m6, m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:18", "text": "mova     m2, [tmpq+4*20]\n    subps    m2, SPILLED(12)\n    UNSPILL  7, 8\n    subps    m0, m7, SPILLED(11)\n    addps    m7, SPILLED(11)\n    mulps    m4, m7, [costabs + 16*12]\n    mulps    m0, [costabs + 16*14]\n    addps    m5, m1, m4\n    subps    m1, m4\n    mulps    m7, m1, [winq+4*48]\n    addps    m7, [bufq+4*48]\n    mova     [outq+1536], m7\n    mulps    m1, [winq+4*20]\n    addps    m1, [bufq+4*20]\n    mova     [outq+640], m1\n    mulps    m1, m5, [winq+4*128]\n    mova     [bufq+4*48], m1\n    mulps    m5, [winq+4*100]\n    mova     [bufq+4*20], m5\n    addps    m6, m2, m0\n    subps    m2, m0\n    mulps    m1, m2, [winq+4*56]\n    addps    m1, [bufq+4*56]\n    mova     [outq+1792], m1\n    mulps    m2, [winq+4*12]\n    addps    m2, [bufq+4*12]\n    mova     [outq+384], m2\n    mulps    m0, m6, [winq+4*136]\n    mova    [bufq+4*56], m0\n    mulps    m6, [winq+4*92]\n    mova     [bufq+4*12], m6\n    UNSPILL  0, 14\n    mulps    m0, [costabs + 16*13]\n    mova     m3, [tmpq+4*4]\n    addps    m2, m0, m3\n    subps    m3, m0\n    mulps    m0, m3, [winq+4*52]\n    addps    m0, [bufq+4*52]\n    mova     [outq+1664], m0\n    mulps    m3, [winq+4*16]\n    addps    m3, [bufq+4*16]\n    mova     [outq+512], m3\n    mulps    m0, m2, [winq+4*132]\n    mova     [bufq+4*52], m0\n    mulps    m2, [winq+4*96]\n    mova     [bufq+4*16], m2\n    RET\n%endmacro\n\nINIT_XMM sse\nDEFINE_FOUR_IMDCT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEFINE_FOUR_IMDCT\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 681, "line_end": 736}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/imdct36.asm:19", "text": "addps    m3, [bufq+4*16]\n    mova     [outq+512], m3\n    mulps    m0, m2, [winq+4*132]\n    mova     [bufq+4*52], m0\n    mulps    m2, [winq+4*96]\n    mova     [bufq+4*16], m2\n    RET\n%endmacro\n\nINIT_XMM sse\nDEFINE_FOUR_IMDCT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nDEFINE_FOUR_IMDCT\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/imdct36.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/imdct36.asm", "line_start": 721, "line_end": 736}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/jpeg2000dsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized JPEG2000 DSP functions\n;* Copyright (c) 2014 Nicolas Bertrand\n;* Copyright (c) 2015 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npf_ict0: times 8 dd 1.402\npf_ict1: times 8 dd 0.34413\npf_ict2: times 8 dd 0.71414\npf_ict3: times 8 dd 1.772\n\nSECTION .text\n\n;***********************************************************************\n; ff_ict_float_<opt>(float *src0, float *src1, float *src2, int csize)\n;***********************************************************************\n%macro ICT_FLOAT 1\ncglobal ict_float, 4, 4, %1, src0, src1, src2, csize\n    shl  csized, 2\n    add   src0q, csizeq\n    add   src1q, csizeq\n    add   src2q, csizeq\n    neg  csizeq\n    movaps   m6, [pf_ict0]\n    movaps   m7, [pf_ict1]\n    %define ICT0 m6\n    %define ICT1 m7\n\n%if ARCH_X86_64\n    movaps   m8, [pf_ict2]\n    %define ICT2 m8\n%if cpuflag(avx)\n    movaps   m3, [pf_ict3]\n    %define ICT3 m3\n%else\n    movaps   m9, [pf_ict3]\n    %define ICT3 m9\n%endif\n\n%else ; ARCH_X86_32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/jpeg2000dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/jpeg2000dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/jpeg2000dsp.asm:2", "text": "add   src1q, csizeq\n    add   src2q, csizeq\n    neg  csizeq\n    movaps   m6, [pf_ict0]\n    movaps   m7, [pf_ict1]\n    %define ICT0 m6\n    %define ICT1 m7\n\n%if ARCH_X86_64\n    movaps   m8, [pf_ict2]\n    %define ICT2 m8\n%if cpuflag(avx)\n    movaps   m3, [pf_ict3]\n    %define ICT3 m3\n%else\n    movaps   m9, [pf_ict3]\n    %define ICT3 m9\n%endif\n\n%else ; ARCH_X86_32\n    %define ICT2 [pf_ict2]\n%if cpuflag(avx)\n    movaps   m3, [pf_ict3]\n    %define ICT3 m3\n%else\n    %define ICT3 [pf_ict3]\n%endif\n\n%endif ; ARCH\n\nalign 16\n.loop:\n    movaps   m0, [src0q+csizeq]\n    movaps   m1, [src1q+csizeq]\n    movaps   m2, [src2q+csizeq]\n\n%if cpuflag(fma4) || cpuflag(fma3)\n%if cpuflag(fma4)\n    fnmaddps  m5, m1, ICT1, m0\n    fmaddps   m4, m2, ICT0, m0\n%else ; fma3\n    movaps    m5, m1\n    movaps    m4, m2\n    fnmaddps  m5, m5, ICT1, m0\n    fmaddps   m4, m4, ICT0, m0\n%endif\n    fmaddps   m0, m1, ICT3, m0\n    fnmaddps  m5, m2, ICT2, m5\n%else ; non FMA\n%if cpuflag(avx)\n    mulps    m5, m1, ICT1\n    mulps    m4, m2, ICT0\n    mulps    m1, m1, ICT3\n    mulps    m2, m2, ICT2\n    subps    m5, m0, m5\n%else ; sse\n    movaps   m3, m1\n    movaps   m4, m2\n    movaps   m5, m0\n    mulps    m3, ICT1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/jpeg2000dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/jpeg2000dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/jpeg2000dsp.asm:3", "text": "%else ; fma3\n    movaps    m5, m1\n    movaps    m4, m2\n    fnmaddps  m5, m5, ICT1, m0\n    fmaddps   m4, m4, ICT0, m0\n%endif\n    fmaddps   m0, m1, ICT3, m0\n    fnmaddps  m5, m2, ICT2, m5\n%else ; non FMA\n%if cpuflag(avx)\n    mulps    m5, m1, ICT1\n    mulps    m4, m2, ICT0\n    mulps    m1, m1, ICT3\n    mulps    m2, m2, ICT2\n    subps    m5, m0, m5\n%else ; sse\n    movaps   m3, m1\n    movaps   m4, m2\n    movaps   m5, m0\n    mulps    m3, ICT1\n    mulps    m4, ICT0\n    mulps    m1, ICT3\n    mulps    m2, ICT2\n    subps    m5, m3\n%endif\n    addps    m4, m4, m0\n    addps    m0, m0, m1\n    subps    m5, m5, m2\n%endif\n\n    movaps   [src0q+csizeq], m4\n    movaps   [src2q+csizeq], m0\n    movaps   [src1q+csizeq], m5\n    add  csizeq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nICT_FLOAT 10\nINIT_YMM avx\nICT_FLOAT 9\n%if HAVE_FMA4_EXTERNAL\nINIT_XMM fma4\nICT_FLOAT 9\n%endif\nINIT_YMM fma3\nICT_FLOAT 9\n\n;***************************************************************************\n; ff_rct_int_<opt>(int32_t *src0, int32_t *src1, int32_t *src2, int csize)\n;***************************************************************************\n%macro RCT_INT 0\ncglobal rct_int, 4, 4, 4, src0, src1, src2, csize\n    shl  csized, 2\n    add   src0q, csizeq\n    add   src1q, csizeq\n    add   src2q, csizeq\n    neg  csizeq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/jpeg2000dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/jpeg2000dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/jpeg2000dsp.asm:4", "text": "INIT_YMM avx\nICT_FLOAT 9\n%if HAVE_FMA4_EXTERNAL\nINIT_XMM fma4\nICT_FLOAT 9\n%endif\nINIT_YMM fma3\nICT_FLOAT 9\n\n;***************************************************************************\n; ff_rct_int_<opt>(int32_t *src0, int32_t *src1, int32_t *src2, int csize)\n;***************************************************************************\n%macro RCT_INT 0\ncglobal rct_int, 4, 4, 4, src0, src1, src2, csize\n    shl  csized, 2\n    add   src0q, csizeq\n    add   src1q, csizeq\n    add   src2q, csizeq\n    neg  csizeq\n\nalign 16\n.loop:\n    mova   m1, [src1q+csizeq]\n    mova   m2, [src2q+csizeq]\n    mova   m0, [src0q+csizeq]\n    paddd  m3, m1, m2\n    psrad  m3, 2\n    psubd  m0, m3\n    paddd  m1, m0\n    paddd  m2, m0\n    mova   [src1q+csizeq], m0\n    mova   [src2q+csizeq], m1\n    mova   [src0q+csizeq], m2\n    add  csizeq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nRCT_INT\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRCT_INT\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/jpeg2000dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/jpeg2000dsp.asm", "line_start": 121, "line_end": 164}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_audiodsp.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2008 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; int ff_scalarproduct_and_madd_int16(int16_t *v1, int16_t *v2, int16_t *v3,\n;                                     int order, int mul)\nINIT_XMM sse2\ncglobal scalarproduct_and_madd_int16, 4,4,8, v1, v2, v3, order, mul\n    shl orderd, 1\n    movd    m7, mulm\n    pshuflw m7, m7, 0\n    punpcklqdq m7, m7\n    pxor    m6, m6\n    add v1q, orderq\n    add v2q, orderq\n    add v3q, orderq\n    neg orderq\n.loop:\n    movu    m0, [v2q + orderq]\n    movu    m1, [v2q + orderq + mmsize]\n    mova    m4, [v1q + orderq]\n    mova    m5, [v1q + orderq + mmsize]\n    movu    m2, [v3q + orderq]\n    movu    m3, [v3q + orderq + mmsize]\n    pmaddwd m0, m4\n    pmaddwd m1, m5\n    pmullw  m2, m7\n    pmullw  m3, m7\n    paddd   m6, m0\n    paddd   m6, m1\n    paddw   m2, m4\n    paddw   m3, m5\n    mova    [v1q + orderq], m2\n    mova    [v1q + orderq + mmsize], m3\n    add     orderq, mmsize*2\n    jl .loop\n    HADDD   m6, m0\n    movd   eax, m6\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_audiodsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_audiodsp.asm:2", "text": "mova    m4, [v1q + orderq]\n    mova    m5, [v1q + orderq + mmsize]\n    movu    m2, [v3q + orderq]\n    movu    m3, [v3q + orderq + mmsize]\n    pmaddwd m0, m4\n    pmaddwd m1, m5\n    pmullw  m2, m7\n    pmullw  m3, m7\n    paddd   m6, m0\n    paddd   m6, m1\n    paddw   m2, m4\n    paddw   m3, m5\n    mova    [v1q + orderq], m2\n    mova    [v1q + orderq + mmsize], m3\n    add     orderq, mmsize*2\n    jl .loop\n    HADDD   m6, m0\n    movd   eax, m6\n    RET\n\nINIT_XMM sse4\n; int ff_scalarproduct_and_madd_int32(int16_t *v1, int32_t *v2, int16_t *v3,\n;                                     int order, int mul)\ncglobal scalarproduct_and_madd_int32, 4,4,8, v1, v2, v3, order, mul\n    shl orderd, 1\n    movd    m7, mulm\n    SPLATW  m7, m7\n    pxor    m6, m6\n    add v1q, orderq\n    lea v2q, [v2q + 2*orderq]\n    add v3q, orderq\n    neg orderq\n.loop:\n    mova    m3, [v1q + orderq]\n    movu    m0, [v2q + 2*orderq]\n    pmovsxwd m4, m3\n    movu    m1, [v2q + 2*orderq + mmsize]\n    movhlps m5, m3\n    movu    m2, [v3q + orderq]\n    pmovsxwd m5, m5\n    pmullw  m2, m7\n    pmulld  m0, m4\n    pmulld  m1, m5\n    paddw   m2, m3\n    paddd   m6, m0\n    paddd   m6, m1\n    mova    [v1q + orderq], m2\n    add     orderq, 16\n    jl .loop\n    HADDD   m6, m0\n    movd   eax, m6\n    RET\n\n%macro SCALARPRODUCT_LOOP 1\nalign 16\n.loop%1:\n    sub     orderq, mmsize*2\n%if %1\n    mova    m1, m4\n    mova    m4, [v2q + orderq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_audiodsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_audiodsp.asm:3", "text": "pmullw  m2, m7\n    pmulld  m0, m4\n    pmulld  m1, m5\n    paddw   m2, m3\n    paddd   m6, m0\n    paddd   m6, m1\n    mova    [v1q + orderq], m2\n    add     orderq, 16\n    jl .loop\n    HADDD   m6, m0\n    movd   eax, m6\n    RET\n\n%macro SCALARPRODUCT_LOOP 1\nalign 16\n.loop%1:\n    sub     orderq, mmsize*2\n%if %1\n    mova    m1, m4\n    mova    m4, [v2q + orderq]\n    mova    m0, [v2q + orderq + mmsize]\n    palignr m1, m0, %1\n    palignr m0, m4, %1\n    mova    m3, m5\n    mova    m5, [v3q + orderq]\n    mova    m2, [v3q + orderq + mmsize]\n    palignr m3, m2, %1\n    palignr m2, m5, %1\n%else\n    mova    m0, [v2q + orderq]\n    mova    m1, [v2q + orderq + mmsize]\n    mova    m2, [v3q + orderq]\n    mova    m3, [v3q + orderq + mmsize]\n%endif\n    %define t0  [v1q + orderq]\n    %define t1  [v1q + orderq + mmsize]\n%if ARCH_X86_64\n    mova    m8, t0\n    mova    m9, t1\n    %define t0  m8\n    %define t1  m9\n%endif\n    pmaddwd m0, t0\n    pmaddwd m1, t1\n    pmullw  m2, m7\n    pmullw  m3, m7\n    paddw   m2, t0\n    paddw   m3, t1\n    paddd   m6, m0\n    paddd   m6, m1\n    mova    [v1q + orderq], m2\n    mova    [v1q + orderq + mmsize], m3\n    jg .loop%1\n%if %1\n    jmp .end\n%endif\n%endmacro\n\n; int ff_scalarproduct_and_madd_int16(int16_t *v1, int16_t *v2, int16_t *v3,\n;                                     int order, int mul)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_audiodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_audiodsp.asm:4", "text": "%define t1  m9\n%endif\n    pmaddwd m0, t0\n    pmaddwd m1, t1\n    pmullw  m2, m7\n    pmullw  m3, m7\n    paddw   m2, t0\n    paddw   m3, t1\n    paddd   m6, m0\n    paddd   m6, m1\n    mova    [v1q + orderq], m2\n    mova    [v1q + orderq + mmsize], m3\n    jg .loop%1\n%if %1\n    jmp .end\n%endif\n%endmacro\n\n; int ff_scalarproduct_and_madd_int16(int16_t *v1, int16_t *v2, int16_t *v3,\n;                                     int order, int mul)\nINIT_XMM ssse3\ncglobal scalarproduct_and_madd_int16, 4,5,10, v1, v2, v3, order, mul\n    shl orderd, 1\n    movd    m7, mulm\n    pshuflw m7, m7, 0\n    punpcklqdq m7, m7\n    pxor    m6, m6\n    mov    r4d, v2d\n    and    r4d, 15\n    and    v2q, ~15\n    and    v3q, ~15\n    mova    m4, [v2q + orderq]\n    mova    m5, [v3q + orderq]\n    ; linear is faster than branch tree or jump table, because the branches taken are cyclic (i.e. predictable)\n    cmp    r4d, 0\n    je .loop0\n    cmp    r4d, 2\n    je .loop2\n    cmp    r4d, 4\n    je .loop4\n    cmp    r4d, 6\n    je .loop6\n    cmp    r4d, 8\n    je .loop8\n    cmp    r4d, 10\n    je .loop10\n    cmp    r4d, 12\n    je .loop12\nSCALARPRODUCT_LOOP 14\nSCALARPRODUCT_LOOP 12\nSCALARPRODUCT_LOOP 10\nSCALARPRODUCT_LOOP 8\nSCALARPRODUCT_LOOP 6\nSCALARPRODUCT_LOOP 4\nSCALARPRODUCT_LOOP 2\nSCALARPRODUCT_LOOP 0\n.end:\n    HADDD   m6, m0\n    movd   eax, m6\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_audiodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_audiodsp.asm:5", "text": "cmp    r4d, 6\n    je .loop6\n    cmp    r4d, 8\n    je .loop8\n    cmp    r4d, 10\n    je .loop10\n    cmp    r4d, 12\n    je .loop12\nSCALARPRODUCT_LOOP 14\nSCALARPRODUCT_LOOP 12\nSCALARPRODUCT_LOOP 10\nSCALARPRODUCT_LOOP 8\nSCALARPRODUCT_LOOP 6\nSCALARPRODUCT_LOOP 4\nSCALARPRODUCT_LOOP 2\nSCALARPRODUCT_LOOP 0\n.end:\n    HADDD   m6, m0\n    movd   eax, m6\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_audiodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_audiodsp.asm", "line_start": 161, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:1", "text": ";******************************************************************************\n;* SIMD lossless video DSP utils\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2014 Michael Niedermayer\n;* Copyright (c) 2017 Jokyo Images\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_15\npb_zzzzzzzz77777777: times 8 db -1\n                     times 8 db 7\npb_ef: times 8 db 14,15\npb_zzzz3333zzzzbbbb: db -1,-1,-1,-1,3,3,3,3,-1,-1,-1,-1,11,11,11,11\npb_zz11zz55zz99zzdd: db -1,-1,1,1,-1,-1,5,5,-1,-1,9,9,-1,-1,13,13\npb_zzzz2323zzzzabab: db -1,-1,-1,-1, 2, 3, 2, 3,-1,-1,-1,-1,10,11,10,11\npb_zzzzzzzz67676767: db -1,-1,-1,-1,-1,-1,-1,-1, 6, 7, 6, 7, 6, 7, 6, 7\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_add_median_pred(uint8_t *dst, const uint8_t *top,\n;                         const uint8_t *diff, int w,\n;                         int *left, int *left_top)\n;------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal add_median_pred, 6,6,8, dst, top, diff, w, left, left_top\n    movu    m0, [topq]\n    mova    m2, m0\n    movd    m4, [left_topq]\n    LSHIFT  m2, 1\n    mova    m1, m0\n    por     m4, m2\n    movd    m3, [leftq]\n    psubb   m0, m4 ; t-tl\n    add    dstq, wq\n    add    topq, wq\n    add   diffq, wq\n    neg      wq\n    jmp .skip\n.loop:\n    movu    m4, [topq+wq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:2", "text": ";                         const uint8_t *diff, int w,\n;                         int *left, int *left_top)\n;------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal add_median_pred, 6,6,8, dst, top, diff, w, left, left_top\n    movu    m0, [topq]\n    mova    m2, m0\n    movd    m4, [left_topq]\n    LSHIFT  m2, 1\n    mova    m1, m0\n    por     m4, m2\n    movd    m3, [leftq]\n    psubb   m0, m4 ; t-tl\n    add    dstq, wq\n    add    topq, wq\n    add   diffq, wq\n    neg      wq\n    jmp .skip\n.loop:\n    movu    m4, [topq+wq]\n    mova    m0, m4\n    LSHIFT  m4, 1\n    por     m4, m1\n    mova    m1, m0 ; t\n    psubb   m0, m4 ; t-tl\n.skip:\n    movu    m2, [diffq+wq]\n%assign i 0\n%rep mmsize\n    mova    m4, m0\n    paddb   m4, m3 ; t-tl+l\n    mova    m5, m3\n    pmaxub  m3, m1\n    pminub  m5, m1\n    pminub  m3, m4\n    pmaxub  m3, m5 ; median\n    paddb   m3, m2 ; +residual\n%if i==0\n    mova    m7, m3\n    LSHIFT  m7, mmsize-1\n%else\n    mova    m6, m3\n    RSHIFT  m7, 1\n    LSHIFT  m6, mmsize-1\n    por     m7, m6\n%endif\n%if i<mmsize-1\n    RSHIFT  m0, 1\n    RSHIFT  m1, 1\n    RSHIFT  m2, 1\n%endif\n%assign i i+1\n%endrep\n    movu [dstq+wq], m7\n    add      wq, mmsize\n    jl .loop\n    movzx   r2d, byte [dstq-1]\n    mov [leftq], r2d\n    movzx   r2d, byte [topq-1]\n    mov [left_topq], r2d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:3", "text": "%else\n    mova    m6, m3\n    RSHIFT  m7, 1\n    LSHIFT  m6, mmsize-1\n    por     m7, m6\n%endif\n%if i<mmsize-1\n    RSHIFT  m0, 1\n    RSHIFT  m1, 1\n    RSHIFT  m2, 1\n%endif\n%assign i i+1\n%endrep\n    movu [dstq+wq], m7\n    add      wq, mmsize\n    jl .loop\n    movzx   r2d, byte [dstq-1]\n    mov [leftq], r2d\n    movzx   r2d, byte [topq-1]\n    mov [left_topq], r2d\n    RET\n\n\n%macro ADD_LEFT_LOOP 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    pshufb  xm0, xm5\n    mov%2   m1, [srcq+wq]\n    psllw   m2, m1, 8\n    paddb   m1, m2\n    pshufb  m2, m1, m3\n    paddb   m1, m2\n    pshufb  m2, m1, m4\n    paddb   m1, m2\n    pshufb  m2, m1, m6\n    paddb   m1, m2\n    paddb   xm0, xm1\n    mov%1   [dstq+wq], xm0\n\n%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n    mov%1   [dstq+wq+16], xm0\n%endif\n    add     wq, mmsize\n    jl %%.loop\n%if mmsize == 32\n    movzx   eax, byte [dstq - 1]\n%else;\n    mov     eax, mmsize-1\n    sub     eax, wd\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n%endif\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:4", "text": "%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n    mov%1   [dstq+wq+16], xm0\n%endif\n    add     wq, mmsize\n    jl %%.loop\n%if mmsize == 32\n    movzx   eax, byte [dstq - 1]\n%else;\n    mov     eax, mmsize-1\n    sub     eax, wd\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n%endif\n    RET\n%endmacro\n\n;------------------------------------------------------------------------------\n; int ff_add_left_pred(uint8_t *dst, const uint8_t *src, int w, int left)\n;------------------------------------------------------------------------------\n%macro ADD_LEFT_PRED_UNALIGNED 0\ncglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left\n    mova    xm5, [pb_15]\n    VBROADCASTI128    m6, [pb_zzzzzzzz77777777]\n    VBROADCASTI128    m4, [pb_zzzz3333zzzzbbbb]\n    VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]\n    movd    xm0, leftm\n    pslldq  xm0, 15\n%if notcpuflag(avx2)\n    test    srcq, mmsize - 1\n    jnz .src_unaligned\n    test    dstq, mmsize - 1\n    jnz .dst_unaligned\n    ADD_LEFT_LOOP a, a\n.dst_unaligned:\n    ADD_LEFT_LOOP u, a\n.src_unaligned:\n%endif\n    ADD_LEFT_LOOP u, u\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_LEFT_PRED_UNALIGNED\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:5", "text": "ADD_LEFT_LOOP u, a\n.src_unaligned:\n%endif\n    ADD_LEFT_LOOP u, u\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_LEFT_PRED_UNALIGNED\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq\n    and  sizeq, -2*mmsize\n    jz  .2\n    add   dstq, sizeq\n    add   srcq, sizeq\n    neg  sizeq\n.1:\n    mova    m0, [srcq + sizeq]\n    mova    m1, [srcq + sizeq + mmsize]\n    paddb   m0, [dstq + sizeq]\n    paddb   m1, [dstq + sizeq + mmsize]\n    mova   [dstq + sizeq], m0\n    mova   [dstq + sizeq + mmsize], m1\n    add  sizeq, 2*mmsize\n    jl .1\n.2:\n    and     wq, 2*mmsize-1\n    jz    .end\n    add   dstq, wq\n    add   srcq, wq\n    neg     wq\n.3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:6", "text": ".3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    mov%2   m1, [srcq+wq]\n    mova    m2, m1\n    pslld   m1, 16\n    paddw   m1, m2\n    mova    m2, m1\n\n    pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n    mova    m2, m1\n    pshufb  m1, m4\n    paddw   m1, m2\n    paddw   m0, m1\n    pand    m0, m6\n    mov%1   [dstq+wq], m0\n    add     wq, mmsize\n    jl %%.loop\n    mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,7, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:7", "text": "mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,7, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    movd    m6, maskm\n    pslldq  m0, 14\n    SPLATW  m6, m6\n    test    srcq, 15\n    jnz .src_unaligned\n    test    dstq, 15\n    jnz .dst_unaligned\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n.dst_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, a\n.src_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, u\n\n\n;---------------------------------------------------------------------------------------------\n; void add_gradient_pred(uint8_t *src, const ptrdiff_t stride, const ptrdiff_t width)\n;---------------------------------------------------------------------------------------------\n%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:8", "text": ";load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])\n\n    psubb    m2, m3; A - B\n\n; prefix sum A-B\n    pslldq   m3, m2, 1\n    paddb    m2, m3\n    pslldq   m3, m2, 2\n    paddb    m2, m3\n    pslldq   m3, m2, 4\n    paddb    m2, m3\n    pslldq   m3, m2, 8\n    paddb    m2, m3\n\n; prefix sum current val\n    pslldq   m3, m4, 1\n    paddb    m4, m3\n    pslldq   m3, m4, 2\n    paddb    m4, m3\n    pslldq   m3, m4, 4\n    paddb    m4, m3\n    pslldq   m3, m4, 8\n    paddb    m4, m3\n\n; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif\n\n    add         widthq, mmsize\n    jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:9", "text": "paddb    m4, m3\n\n; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif\n\n    add         widthq, mmsize\n    jl .loop\n    RET\n\n%endmacro\n\nINIT_XMM ssse3\nADD_GRADIENT_PRED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_GRADIENT_PRED\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videodsp.asm", "line_start": 321, "line_end": 351}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:6", "text": ".3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    mov%2   m1, [srcq+wq]\n    mova    m2, m1\n    pslld   m1, 16\n    paddw   m1, m2\n    mova    m2, m1\n\n    pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n    mova    m2, m1\n    pshufb  m1, m4\n    paddw   m1, m2\n    paddw   m0, m1\n    pand    m0, m7\n    mov%1   [dstq+wq], m0\n    add     wq, mmsize\n    jl %%.loop\n    mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "9314d5cae8a9abf98ae82e764f3d0e5d3588b5c0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9314d5cae8a9abf98ae82e764f3d0e5d3588b5c0/libavcodec/x86/lossless_videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:7", "text": "mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    pslldq  m0, 14\n    movd    m7, maskm\n    SPLATW  m7 ,m7\n    test    srcq, 15\n    jnz .src_unaligned\n    test    dstq, 15\n    jnz .dst_unaligned\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n.dst_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, a\n.src_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, u\n\n\n;---------------------------------------------------------------------------------------------\n; void add_gradient_pred(uint8_t *src, const ptrdiff_t stride, const ptrdiff_t width)\n;---------------------------------------------------------------------------------------------\n%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "9314d5cae8a9abf98ae82e764f3d0e5d3588b5c0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9314d5cae8a9abf98ae82e764f3d0e5d3588b5c0/libavcodec/x86/lossless_videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:4", "text": "%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n    mov%1   [dstq+wq+16], xm0\n%endif\n    add     wq, mmsize\n    jl %%.loop\n%if mmsize == 32\n    movzx   eax, byte [dstq - 1]\n%else;\n    mov     eax, mmsize-1\n    sub     eax, wd\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n%endif\n    RET\n%endmacro\n\n;------------------------------------------------------------------------------\n; int ff_add_left_pred(uint8_t *dst, const uint8_t *src, int w, int left)\n;------------------------------------------------------------------------------\n%macro ADD_LEFT_PRED_UNALIGNED 0\ncglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left\n    mova    xm5, [pb_15]\n    VBROADCASTI128    m6, [pb_zzzzzzzz77777777]\n    VBROADCASTI128    m4, [pb_zzzz3333zzzzbbbb]\n    VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]\n    movd    xm0, leftm\n    pslldq  xm0, 15\n    test    srcq, mmsize - 1\n    jnz .src_unaligned\n    test    dstq, mmsize - 1\n    jnz .dst_unaligned\n    ADD_LEFT_LOOP a, a\n.dst_unaligned:\n    ADD_LEFT_LOOP u, a\n.src_unaligned:\n    ADD_LEFT_LOOP u, u\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_LEFT_PRED_UNALIGNED\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq\n    and  sizeq, -2*mmsize\n    jz  .2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "6368d2baaea8121f9fa23fb40edb5308690d699d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6368d2baaea8121f9fa23fb40edb5308690d699d/libavcodec/x86/lossless_videodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:5", "text": ".src_unaligned:\n    ADD_LEFT_LOOP u, u\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_LEFT_PRED_UNALIGNED\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq\n    and  sizeq, -2*mmsize\n    jz  .2\n    add   dstq, sizeq\n    add   srcq, sizeq\n    neg  sizeq\n.1:\n    mova    m0, [srcq + sizeq]\n    mova    m1, [srcq + sizeq + mmsize]\n    paddb   m0, [dstq + sizeq]\n    paddb   m1, [dstq + sizeq + mmsize]\n    mova   [dstq + sizeq], m0\n    mova   [dstq + sizeq + mmsize], m1\n    add  sizeq, 2*mmsize\n    jl .1\n.2:\n    and     wq, 2*mmsize-1\n    jz    .end\n    add   dstq, wq\n    add   srcq, wq\n    neg     wq\n.3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "6368d2baaea8121f9fa23fb40edb5308690d699d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6368d2baaea8121f9fa23fb40edb5308690d699d/libavcodec/x86/lossless_videodsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:6", "text": "add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    mov%2   m1, [srcq+wq]\n    mova    m2, m1\n    pslld   m1, 16\n    paddw   m1, m2\n    mova    m2, m1\n\n    pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n    mova    m2, m1\n    pshufb  m1, m4\n    paddw   m1, m2\n    paddw   m0, m1\n    pand    m0, m7\n    mov%1   [dstq+wq], m0\n    add     wq, mmsize\n    jl %%.loop\n    mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    pslldq  m0, 14\n    movd    m7, maskm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "6368d2baaea8121f9fa23fb40edb5308690d699d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6368d2baaea8121f9fa23fb40edb5308690d699d/libavcodec/x86/lossless_videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:7", "text": "mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    pslldq  m0, 14\n    movd    m7, maskm\n    SPLATW  m7 ,m7\n    test    srcq, 15\n    jnz .src_unaligned\n    test    dstq, 15\n    jnz .dst_unaligned\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n.dst_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, a\n.src_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, u\n\n\n;---------------------------------------------------------------------------------------------\n; void add_gradient_pred(uint8_t *src, const ptrdiff_t stride, const ptrdiff_t width)\n;---------------------------------------------------------------------------------------------\n%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])\n\n    psubb    m2, m3; A - B", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "6368d2baaea8121f9fa23fb40edb5308690d699d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6368d2baaea8121f9fa23fb40edb5308690d699d/libavcodec/x86/lossless_videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:8", "text": "movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])\n\n    psubb    m2, m3; A - B\n\n; prefix sum A-B\n    pslldq   m3, m2, 1\n    paddb    m2, m3\n    pslldq   m3, m2, 2\n    paddb    m2, m3\n    pslldq   m3, m2, 4\n    paddb    m2, m3\n    pslldq   m3, m2, 8\n    paddb    m2, m3\n\n; prefix sum current val\n    pslldq   m3, m4, 1\n    paddb    m4, m3\n    pslldq   m3, m4, 2\n    paddb    m4, m3\n    pslldq   m3, m4, 4\n    paddb    m4, m3\n    pslldq   m3, m4, 8\n    paddb    m4, m3\n\n; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif\n\n    add         widthq, mmsize\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "6368d2baaea8121f9fa23fb40edb5308690d699d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6368d2baaea8121f9fa23fb40edb5308690d699d/libavcodec/x86/lossless_videodsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:9", "text": "; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif\n\n    add         widthq, mmsize\n    jl .loop\n    RET\n\n%endmacro\n\nINIT_XMM ssse3\nADD_GRADIENT_PRED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_GRADIENT_PRED\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "6368d2baaea8121f9fa23fb40edb5308690d699d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6368d2baaea8121f9fa23fb40edb5308690d699d/libavcodec/x86/lossless_videodsp.asm", "line_start": 321, "line_end": 349}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:3", "text": "%else\n    mova    m6, m3\n    RSHIFT  m7, 1\n    LSHIFT  m6, mmsize-1\n    por     m7, m6\n%endif\n%if i<mmsize-1\n    RSHIFT  m0, 1\n    RSHIFT  m1, 1\n    RSHIFT  m2, 1\n%endif\n%assign i i+1\n%endrep\n    movu [dstq+wq], m7\n    add      wq, mmsize\n    jl .loop\n    movzx   r2d, byte [dstq-1]\n    mov [leftq], r2d\n    movzx   r2d, byte [topq-1]\n    mov [left_topq], r2d\n    RET\n\n\n%macro ADD_LEFT_LOOP 2 ; %1 = dst_is_aligned, %2 = src_is_aligned\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    pshufb  xm0, xm5\n%if %2\n    mova    m1, [srcq+wq]\n%else\n    movu    m1, [srcq+wq]\n%endif\n    psllw   m2, m1, 8\n    paddb   m1, m2\n    pshufb  m2, m1, m3\n    paddb   m1, m2\n    pshufb  m2, m1, m4\n    paddb   m1, m2\n    pshufb  m2, m1, m6\n    paddb   m1, m2\n    paddb   xm0, xm1\n%if %1\n    mova    [dstq+wq], xm0\n%else\n    movq    [dstq+wq], xm0\n    movhps  [dstq+wq+8], xm0\n%endif\n\n%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n%if %1\n    mova    [dstq+wq+16], xm0\n%else;\n    movq    [dstq+wq+16], xm0\n    movhps  [dstq+wq+16+8], xm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:4", "text": "pshufb  m2, m1, m6\n    paddb   m1, m2\n    paddb   xm0, xm1\n%if %1\n    mova    [dstq+wq], xm0\n%else\n    movq    [dstq+wq], xm0\n    movhps  [dstq+wq+8], xm0\n%endif\n\n%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n%if %1\n    mova    [dstq+wq+16], xm0\n%else;\n    movq    [dstq+wq+16], xm0\n    movhps  [dstq+wq+16+8], xm0\n%endif\n%endif\n    add     wq, mmsize\n    jl %%.loop\n%if mmsize == 32\n    movzx   eax, byte [dstq - 1]\n%else;\n    mov     eax, mmsize-1\n    sub     eax, wd\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n%endif\n    RET\n%endmacro\n\n;------------------------------------------------------------------------------\n; int ff_add_left_pred(uint8_t *dst, const uint8_t *src, int w, int left)\n;------------------------------------------------------------------------------\n%macro ADD_LEFT_PRED_UNALIGNED 0\ncglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left\n    mova    xm5, [pb_15]\n    VBROADCASTI128    m6, [pb_zzzzzzzz77777777]\n    VBROADCASTI128    m4, [pb_zzzz3333zzzzbbbb]\n    VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]\n    movd    xm0, leftm\n    pslldq  xm0, 15\n    test    srcq, mmsize - 1\n    jnz .src_unaligned\n    test    dstq, mmsize - 1\n    jnz .dst_unaligned\n    ADD_LEFT_LOOP 1, 1\n.dst_unaligned:\n    ADD_LEFT_LOOP 0, 1\n.src_unaligned:\n    ADD_LEFT_LOOP 0, 0\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:5", "text": "cglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left\n    mova    xm5, [pb_15]\n    VBROADCASTI128    m6, [pb_zzzzzzzz77777777]\n    VBROADCASTI128    m4, [pb_zzzz3333zzzzbbbb]\n    VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]\n    movd    xm0, leftm\n    pslldq  xm0, 15\n    test    srcq, mmsize - 1\n    jnz .src_unaligned\n    test    dstq, mmsize - 1\n    jnz .dst_unaligned\n    ADD_LEFT_LOOP 1, 1\n.dst_unaligned:\n    ADD_LEFT_LOOP 0, 1\n.src_unaligned:\n    ADD_LEFT_LOOP 0, 0\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_LEFT_PRED_UNALIGNED\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq\n    and  sizeq, -2*mmsize\n    jz  .2\n    add   dstq, sizeq\n    add   srcq, sizeq\n    neg  sizeq\n.1:\n    mova    m0, [srcq + sizeq]\n    mova    m1, [srcq + sizeq + mmsize]\n    paddb   m0, [dstq + sizeq]\n    paddb   m1, [dstq + sizeq + mmsize]\n    mova   [dstq + sizeq], m0\n    mova   [dstq + sizeq + mmsize], m1\n    add  sizeq, 2*mmsize\n    jl .1\n.2:\n    and     wq, 2*mmsize-1\n    jz    .end\n    add   dstq, wq\n    add   srcq, wq\n    neg     wq\n.3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:6", "text": "paddb   m0, [dstq + sizeq]\n    paddb   m1, [dstq + sizeq + mmsize]\n    mova   [dstq + sizeq], m0\n    mova   [dstq + sizeq + mmsize], m1\n    add  sizeq, 2*mmsize\n    jl .1\n.2:\n    and     wq, 2*mmsize-1\n    jz    .end\n    add   dstq, wq\n    add   srcq, wq\n    neg     wq\n.3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    mov%2   m1, [srcq+wq]\n    mova    m2, m1\n    pslld   m1, 16\n    paddw   m1, m2\n    mova    m2, m1\n\n    pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n    mova    m2, m1\n    pshufb  m1, m4\n    paddw   m1, m2\n    paddw   m0, m1\n    pand    m0, m7\n%ifidn %1, a\n    mova    [dstq+wq], m0\n%else\n    movq    [dstq+wq], m0\n    movhps  [dstq+wq+8], m0\n%endif\n    add     wq, mmsize\n    jl %%.loop\n    mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:7", "text": "pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n    mova    m2, m1\n    pshufb  m1, m4\n    paddw   m1, m2\n    paddw   m0, m1\n    pand    m0, m7\n%ifidn %1, a\n    mova    [dstq+wq], m0\n%else\n    movq    [dstq+wq], m0\n    movhps  [dstq+wq+8], m0\n%endif\n    add     wq, mmsize\n    jl %%.loop\n    mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    pslldq  m0, 14\n    movd    m7, maskm\n    SPLATW  m7 ,m7\n    test    srcq, 15\n    jnz .src_unaligned\n    test    dstq, 15\n    jnz .dst_unaligned\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n.dst_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, a\n.src_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, u\n\n\n;---------------------------------------------------------------------------------------------\n; void add_gradient_pred(uint8_t *src, const ptrdiff_t stride, const ptrdiff_t width)\n;---------------------------------------------------------------------------------------------\n%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:8", "text": "test    srcq, 15\n    jnz .src_unaligned\n    test    dstq, 15\n    jnz .dst_unaligned\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n.dst_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, a\n.src_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, u\n\n\n;---------------------------------------------------------------------------------------------\n; void add_gradient_pred(uint8_t *src, const ptrdiff_t stride, const ptrdiff_t width)\n;---------------------------------------------------------------------------------------------\n%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])\n\n    psubb    m2, m3; A - B\n\n; prefix sum A-B\n    pslldq   m3, m2, 1\n    paddb    m2, m3\n    pslldq   m3, m2, 2\n    paddb    m2, m3\n    pslldq   m3, m2, 4\n    paddb    m2, m3\n    pslldq   m3, m2, 8\n    paddb    m2, m3\n\n; prefix sum current val\n    pslldq   m3, m4, 1\n    paddb    m4, m3\n    pslldq   m3, m4, 2\n    paddb    m4, m3\n    pslldq   m3, m4, 4\n    paddb    m4, m3\n    pslldq   m3, m4, 8\n    paddb    m4, m3\n\n; last sum", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:9", "text": "pslldq   m3, m2, 1\n    paddb    m2, m3\n    pslldq   m3, m2, 2\n    paddb    m2, m3\n    pslldq   m3, m2, 4\n    paddb    m2, m3\n    pslldq   m3, m2, 8\n    paddb    m2, m3\n\n; prefix sum current val\n    pslldq   m3, m4, 1\n    paddb    m4, m3\n    pslldq   m3, m4, 2\n    paddb    m4, m3\n    pslldq   m3, m4, 4\n    paddb    m4, m3\n    pslldq   m3, m4, 8\n    paddb    m4, m3\n\n; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif\n\n    add         widthq, mmsize\n    jl .loop\n    RET\n\n%endmacro\n\nINIT_XMM ssse3\nADD_GRADIENT_PRED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_GRADIENT_PRED\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "a6b8939e1e2bf03e0936262086f88f85e87ab236", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a6b8939e1e2bf03e0936262086f88f85e87ab236/libavcodec/x86/lossless_videodsp.asm", "line_start": 321, "line_end": 368}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:1", "text": ";******************************************************************************\n;* SIMD lossless video DSP utils\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2014 Michael Niedermayer\n;* Copyright (c) 2017 Jokyo Images\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_15\npb_zzzzzzzz77777777: times 8 db -1\npb_7: times 8 db 7\npb_ef: times 8 db 14,15\npb_67: times 8 db  6, 7\npb_zzzz3333zzzzbbbb: db -1,-1,-1,-1,3,3,3,3,-1,-1,-1,-1,11,11,11,11\npb_zz11zz55zz99zzdd: db -1,-1,1,1,-1,-1,5,5,-1,-1,9,9,-1,-1,13,13\npb_zzzz2323zzzzabab: db -1,-1,-1,-1, 2, 3, 2, 3,-1,-1,-1,-1,10,11,10,11\npb_zzzzzzzz67676767: db -1,-1,-1,-1,-1,-1,-1,-1, 6, 7, 6, 7, 6, 7, 6, 7\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_add_median_pred(uint8_t *dst, const uint8_t *top,\n;                         const uint8_t *diff, int w,\n;                         int *left, int *left_top)\n;------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal add_median_pred, 6,6,8, dst, top, diff, w, left, left_top\n    movu    m0, [topq]\n    mova    m2, m0\n    movd    m4, [left_topq]\n    LSHIFT  m2, 1\n    mova    m1, m0\n    por     m4, m2\n    movd    m3, [leftq]\n    psubb   m0, m4 ; t-tl\n    add    dstq, wq\n    add    topq, wq\n    add   diffq, wq\n    neg      wq\n    jmp .skip\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:2", "text": "; void ff_add_median_pred(uint8_t *dst, const uint8_t *top,\n;                         const uint8_t *diff, int w,\n;                         int *left, int *left_top)\n;------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal add_median_pred, 6,6,8, dst, top, diff, w, left, left_top\n    movu    m0, [topq]\n    mova    m2, m0\n    movd    m4, [left_topq]\n    LSHIFT  m2, 1\n    mova    m1, m0\n    por     m4, m2\n    movd    m3, [leftq]\n    psubb   m0, m4 ; t-tl\n    add    dstq, wq\n    add    topq, wq\n    add   diffq, wq\n    neg      wq\n    jmp .skip\n.loop:\n    movu    m4, [topq+wq]\n    mova    m0, m4\n    LSHIFT  m4, 1\n    por     m4, m1\n    mova    m1, m0 ; t\n    psubb   m0, m4 ; t-tl\n.skip:\n    movu    m2, [diffq+wq]\n%assign i 0\n%rep mmsize\n    mova    m4, m0\n    paddb   m4, m3 ; t-tl+l\n    mova    m5, m3\n    pmaxub  m3, m1\n    pminub  m5, m1\n    pminub  m3, m4\n    pmaxub  m3, m5 ; median\n    paddb   m3, m2 ; +residual\n%if i==0\n    mova    m7, m3\n    LSHIFT  m7, mmsize-1\n%else\n    mova    m6, m3\n    RSHIFT  m7, 1\n    LSHIFT  m6, mmsize-1\n    por     m7, m6\n%endif\n%if i<mmsize-1\n    RSHIFT  m0, 1\n    RSHIFT  m1, 1\n    RSHIFT  m2, 1\n%endif\n%assign i i+1\n%endrep\n    movu [dstq+wq], m7\n    add      wq, mmsize\n    jl .loop\n    movzx   r2d, byte [dstq-1]\n    mov [leftq], r2d\n    movzx   r2d, byte [topq-1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:3", "text": "LSHIFT  m7, mmsize-1\n%else\n    mova    m6, m3\n    RSHIFT  m7, 1\n    LSHIFT  m6, mmsize-1\n    por     m7, m6\n%endif\n%if i<mmsize-1\n    RSHIFT  m0, 1\n    RSHIFT  m1, 1\n    RSHIFT  m2, 1\n%endif\n%assign i i+1\n%endrep\n    movu [dstq+wq], m7\n    add      wq, mmsize\n    jl .loop\n    movzx   r2d, byte [dstq-1]\n    mov [leftq], r2d\n    movzx   r2d, byte [topq-1]\n    mov [left_topq], r2d\n    RET\n\n\n%macro ADD_LEFT_LOOP 2 ; %1 = dst_is_aligned, %2 = src_is_aligned\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    pshufb  xm0, xm5\n%if %2\n    mova    m1, [srcq+wq]\n%else\n    movu    m1, [srcq+wq]\n%endif\n    psllw   m2, m1, 8\n    paddb   m1, m2\n    pshufb  m2, m1, m3\n    paddb   m1, m2\n    pshufb  m2, m1, m4\n    paddb   m1, m2\n%if mmsize >= 16\n    pshufb  m2, m1, m6\n    paddb   m1, m2\n%endif\n    paddb   xm0, xm1\n%if %1\n    mova    [dstq+wq], xm0\n%else\n    movq    [dstq+wq], xm0\n    movhps  [dstq+wq+8], xm0\n%endif\n\n%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n%if %1\n    mova    [dstq+wq+16], xm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:4", "text": "paddb   m1, m2\n%if mmsize >= 16\n    pshufb  m2, m1, m6\n    paddb   m1, m2\n%endif\n    paddb   xm0, xm1\n%if %1\n    mova    [dstq+wq], xm0\n%else\n    movq    [dstq+wq], xm0\n    movhps  [dstq+wq+8], xm0\n%endif\n\n%if mmsize == 32\n    vextracti128    xm2, m1, 1 ; get second lane of the ymm\n    pshufb          xm0, xm5   ; set alls val to last val of the first lane\n    paddb           xm0, xm2\n;store val\n%if %1\n    mova    [dstq+wq+16], xm0\n%else;\n    movq    [dstq+wq+16], xm0\n    movhps  [dstq+wq+16+8], xm0\n%endif\n%endif\n    add     wq, mmsize\n    jl %%.loop\n%if mmsize == 32\n    movzx   eax, byte [dstq - 1]\n%else;\n    mov     eax, mmsize-1\n    sub     eax, wd\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n%endif\n    RET\n%endmacro\n\n;------------------------------------------------------------------------------\n; int ff_add_left_pred(uint8_t *dst, const uint8_t *src, int w, int left)\n;------------------------------------------------------------------------------\nINIT_MMX ssse3\ncglobal add_left_pred, 3,3,7, dst, src, w, left\n.skip_prologue:\n    mova    m5, [pb_7]\n    mova    m4, [pb_zzzz3333zzzzbbbb]\n    mova    m3, [pb_zz11zz55zz99zzdd]\n    movd    m0, leftm\n    psllq   m0, 56\n    ADD_LEFT_LOOP 1, 1\n\n%macro ADD_LEFT_PRED_UNALIGNED 0\ncglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left\n    mova    xm5, [pb_15]\n    VBROADCASTI128    m6, [pb_zzzzzzzz77777777]\n    VBROADCASTI128    m4, [pb_zzzz3333zzzzbbbb]\n    VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]\n    movd    xm0, leftm\n    pslldq  xm0, 15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:5", "text": "; int ff_add_left_pred(uint8_t *dst, const uint8_t *src, int w, int left)\n;------------------------------------------------------------------------------\nINIT_MMX ssse3\ncglobal add_left_pred, 3,3,7, dst, src, w, left\n.skip_prologue:\n    mova    m5, [pb_7]\n    mova    m4, [pb_zzzz3333zzzzbbbb]\n    mova    m3, [pb_zz11zz55zz99zzdd]\n    movd    m0, leftm\n    psllq   m0, 56\n    ADD_LEFT_LOOP 1, 1\n\n%macro ADD_LEFT_PRED_UNALIGNED 0\ncglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left\n    mova    xm5, [pb_15]\n    VBROADCASTI128    m6, [pb_zzzzzzzz77777777]\n    VBROADCASTI128    m4, [pb_zzzz3333zzzzbbbb]\n    VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]\n    movd    xm0, leftm\n    pslldq  xm0, 15\n    test    srcq, mmsize - 1\n    jnz .src_unaligned\n    test    dstq, mmsize - 1\n    jnz .dst_unaligned\n    ADD_LEFT_LOOP 1, 1\n.dst_unaligned:\n    ADD_LEFT_LOOP 0, 1\n.src_unaligned:\n    ADD_LEFT_LOOP 0, 0\n%endmacro\n\nINIT_XMM ssse3\nADD_LEFT_PRED_UNALIGNED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_LEFT_PRED_UNALIGNED\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq\n    and  sizeq, -2*mmsize\n    jz  .2\n    add   dstq, sizeq\n    add   srcq, sizeq\n    neg  sizeq\n.1:\n    mova    m0, [srcq + sizeq]\n    mova    m1, [srcq + sizeq + mmsize]\n    paddb   m0, [dstq + sizeq]\n    paddb   m1, [dstq + sizeq + mmsize]\n    mova   [dstq + sizeq], m0\n    mova   [dstq + sizeq + mmsize], m1\n    add  sizeq, 2*mmsize\n    jl .1\n.2:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:6", "text": "; void ff_add_bytes(uint8_t *dst, uint8_t *src, ptrdiff_t w);\n;------------------------------------------------------------------------------\n%macro ADD_BYTES 0\ncglobal add_bytes, 3,4,2, dst, src, w, size\n    mov  sizeq, wq\n    and  sizeq, -2*mmsize\n    jz  .2\n    add   dstq, sizeq\n    add   srcq, sizeq\n    neg  sizeq\n.1:\n    mova    m0, [srcq + sizeq]\n    mova    m1, [srcq + sizeq + mmsize]\n    paddb   m0, [dstq + sizeq]\n    paddb   m1, [dstq + sizeq + mmsize]\n    mova   [dstq + sizeq], m0\n    mova   [dstq + sizeq + mmsize], m1\n    add  sizeq, 2*mmsize\n    jl .1\n.2:\n    and     wq, 2*mmsize-1\n    jz    .end\n    add   dstq, wq\n    add   srcq, wq\n    neg     wq\n.3:\n    mov  sizeb, [srcq + wq]\n    add [dstq + wq], sizeb\n    inc     wq\n    jl .3\n.end:\n    RET\n%endmacro\n\nINIT_XMM sse2\nADD_BYTES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_BYTES\n%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    mov%2   m1, [srcq+wq]\n    mova    m2, m1\n    pslld   m1, 16\n    paddw   m1, m2\n    mova    m2, m1\n\n    pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n%if mmsize == 16\n    mova    m2, m1\n    pshufb  m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:7", "text": "%endif\n\n%macro ADD_HFYU_LEFT_LOOP_INT16 2 ; %1 = dst alignment (a/u), %2 = src alignment (a/u)\n    add     wd, wd\n    add     srcq, wq\n    add     dstq, wq\n    neg     wq\n%%.loop:\n    mov%2   m1, [srcq+wq]\n    mova    m2, m1\n    pslld   m1, 16\n    paddw   m1, m2\n    mova    m2, m1\n\n    pshufb  m1, m3\n    paddw   m1, m2\n    pshufb  m0, m5\n%if mmsize == 16\n    mova    m2, m1\n    pshufb  m1, m4\n    paddw   m1, m2\n%endif\n    paddw   m0, m1\n    pand    m0, m7\n%ifidn %1, a\n    mova    [dstq+wq], m0\n%else\n    movq    [dstq+wq], m0\n    movhps  [dstq+wq+8], m0\n%endif\n    add     wq, mmsize\n    jl %%.loop\n    mov     eax, mmsize-1\n    sub     eax, wd\n    mov     wd, eax\n    shl     wd, 8\n    lea     eax, [wd+eax-1]\n    movd    m1, eax\n    pshufb  m0, m1\n    movd    eax, m0\n    RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_MMX ssse3\ncglobal add_left_pred_int16, 4,4,8, dst, src, mask, w, left\n.skip_prologue:\n    mova    m5, [pb_67]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    psllq   m0, 48\n    movd    m7, maskm\n    SPLATW  m7 ,m7\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:8", "text": "RET\n%endmacro\n\n;---------------------------------------------------------------------------------------------\n; int add_left_pred_int16(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int left)\n;---------------------------------------------------------------------------------------------\nINIT_MMX ssse3\ncglobal add_left_pred_int16, 4,4,8, dst, src, mask, w, left\n.skip_prologue:\n    mova    m5, [pb_67]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    psllq   m0, 48\n    movd    m7, maskm\n    SPLATW  m7 ,m7\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n\nINIT_XMM ssse3\ncglobal add_left_pred_int16_unaligned, 4,4,8, dst, src, mask, w, left\n    mova    m5, [pb_ef]\n    mova    m4, [pb_zzzzzzzz67676767]\n    mova    m3, [pb_zzzz2323zzzzabab]\n    movd    m0, leftm\n    pslldq  m0, 14\n    movd    m7, maskm\n    SPLATW  m7 ,m7\n    test    srcq, 15\n    jnz .src_unaligned\n    test    dstq, 15\n    jnz .dst_unaligned\n    ADD_HFYU_LEFT_LOOP_INT16 a, a\n.dst_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, a\n.src_unaligned:\n    ADD_HFYU_LEFT_LOOP_INT16 u, u\n\n\n;---------------------------------------------------------------------------------------------\n; void add_gradient_pred(uint8_t *src, const ptrdiff_t stride, const ptrdiff_t width)\n;---------------------------------------------------------------------------------------------\n%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:9", "text": "%macro ADD_GRADIENT_PRED 0\ncglobal add_gradient_pred, 3,4,5, src, stride, width, tmp\n    mova         xm0, [pb_15]\n\n;load src - 1 in xm1\n    movd         xm1, [srcq-1]\n%if cpuflag(avx2)\n    vpbroadcastb xm1, xm1\n%else\n    pxor         xm2, xm2\n    pshufb       xm1, xm2\n%endif\n\n    add    srcq, widthq\n    neg  widthq\n    neg strideq\n\n.loop:\n    lea    tmpq, [srcq + strideq]\n    mova     m2, [tmpq + widthq] ; A = src[x-stride]\n    movu     m3, [tmpq + widthq - 1] ; B = src[x - (stride + 1)]\n    mova     m4, [srcq + widthq] ; current val (src[x])\n\n    psubb    m2, m3; A - B\n\n; prefix sum A-B\n    pslldq   m3, m2, 1\n    paddb    m2, m3\n    pslldq   m3, m2, 2\n    paddb    m2, m3\n    pslldq   m3, m2, 4\n    paddb    m2, m3\n    pslldq   m3, m2, 8\n    paddb    m2, m3\n\n; prefix sum current val\n    pslldq   m3, m4, 1\n    paddb    m4, m3\n    pslldq   m3, m4, 2\n    paddb    m4, m3\n    pslldq   m3, m4, 4\n    paddb    m4, m3\n    pslldq   m3, m4, 8\n    paddb    m4, m3\n\n; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videodsp.asm:10", "text": "pslldq   m3, m4, 4\n    paddb    m4, m3\n    pslldq   m3, m4, 8\n    paddb    m4, m3\n\n; last sum\n    paddb                    m2, m4 ; current + (A - B)\n\n    paddb                   xm1, xm2 ; += C\n    mova        [srcq + widthq], xm1 ; store\n\n    pshufb                  xm1, xm0 ; put last val in all val of xm1\n\n%if mmsize == 32\n    vextracti128            xm2, m2, 1 ; get second lane of the ymm\n    paddb                   xm1, xm2; += C\n\n    mova   [srcq + widthq + 16], xm1 ; store\n    pshufb                  xm1, xm0 ; put last val in all val of m1\n%endif\n\n    add         widthq, mmsize\n    jl .loop\n    RET\n\n%endmacro\n\nINIT_XMM ssse3\nADD_GRADIENT_PRED\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nADD_GRADIENT_PRED\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videodsp.asm", "line_start": 361, "line_end": 394}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:1", "text": ";************************************************************************\n;* SIMD-optimized lossless video encoding functions\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>\n;* Conversion to NASM format by Tiancheng \"Timothy\" Gu <timothygu99@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pb_80\n\nSECTION .text\n\n; void ff_diff_bytes(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                    intptr_t w);\n%macro DIFF_BYTES_PROLOGUE 0\n%if ARCH_X86_32\ncglobal diff_bytes, 3,5,2, dst, src1, src2\n%define wq r4q\n    DECLARE_REG_TMP 3\n    mov               wq, r3mp\n%else\ncglobal diff_bytes, 4,5,2, dst, src1, src2, w\n    DECLARE_REG_TMP 4\n%endif ; ARCH_X86_32\n%define i t0q\n%endmacro\n\n; labels to jump to if w < regsize and w < 0\n%macro DIFF_BYTES_LOOP_PREP 2\n    mov                i, wq\n    and                i, -2 * regsize\n        js            %2\n        jz            %1\n    add             dstq, i\n    add            src1q, i\n    add            src2q, i\n    neg                i\n%endmacro\n\n; mov type used for src1q, dstq, first reg, second reg\n%macro DIFF_BYTES_LOOP_CORE 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:2", "text": "cglobal diff_bytes, 4,5,2, dst, src1, src2, w\n    DECLARE_REG_TMP 4\n%endif ; ARCH_X86_32\n%define i t0q\n%endmacro\n\n; labels to jump to if w < regsize and w < 0\n%macro DIFF_BYTES_LOOP_PREP 2\n    mov                i, wq\n    and                i, -2 * regsize\n        js            %2\n        jz            %1\n    add             dstq, i\n    add            src1q, i\n    add            src2q, i\n    neg                i\n%endmacro\n\n; mov type used for src1q, dstq, first reg, second reg\n%macro DIFF_BYTES_LOOP_CORE 4\n%if mmsize != 16\n    mov%1             %3, [src1q + i]\n    mov%1             %4, [src1q + i + regsize]\n    psubb             %3, [src2q + i]\n    psubb             %4, [src2q + i + regsize]\n    mov%2           [dstq + i], %3\n    mov%2 [regsize + dstq + i], %4\n%else\n    ; SSE enforces alignment of psubb operand\n    mov%1             %3, [src1q + i]\n    movu              %4, [src2q + i]\n    psubb             %3, %4\n    mov%2     [dstq + i], %3\n    mov%1             %3, [src1q + i + regsize]\n    movu              %4, [src2q + i + regsize]\n    psubb             %3, %4\n    mov%2 [regsize + dstq + i], %3\n%endif\n%endmacro\n\n%macro DIFF_BYTES_BODY 2 ; mov type used for src1q, for dstq\n    %define regsize mmsize\n.loop_%1%2:\n    DIFF_BYTES_LOOP_CORE %1, %2, m0, m1\n    add                i, 2 * regsize\n        jl    .loop_%1%2\n.skip_main_%1%2:\n    and               wq, 2 * regsize - 1\n        jz     .end_%1%2\n%if mmsize > 16\n    ; fall back to narrower xmm\n    %define regsize (mmsize / 2)\n    DIFF_BYTES_LOOP_PREP .setup_loop_gpr_aa, .end_aa\n.loop2_%1%2:\n    DIFF_BYTES_LOOP_CORE %1, %2, xm0, xm1\n    add                i, 2 * regsize\n        jl   .loop2_%1%2\n.setup_loop_gpr_%1%2:\n    and               wq, 2 * regsize - 1\n        jz     .end_%1%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:3", "text": "%macro DIFF_BYTES_BODY 2 ; mov type used for src1q, for dstq\n    %define regsize mmsize\n.loop_%1%2:\n    DIFF_BYTES_LOOP_CORE %1, %2, m0, m1\n    add                i, 2 * regsize\n        jl    .loop_%1%2\n.skip_main_%1%2:\n    and               wq, 2 * regsize - 1\n        jz     .end_%1%2\n%if mmsize > 16\n    ; fall back to narrower xmm\n    %define regsize (mmsize / 2)\n    DIFF_BYTES_LOOP_PREP .setup_loop_gpr_aa, .end_aa\n.loop2_%1%2:\n    DIFF_BYTES_LOOP_CORE %1, %2, xm0, xm1\n    add                i, 2 * regsize\n        jl   .loop2_%1%2\n.setup_loop_gpr_%1%2:\n    and               wq, 2 * regsize - 1\n        jz     .end_%1%2\n%endif\n    add             dstq, wq\n    add            src1q, wq\n    add            src2q, wq\n    neg               wq\n.loop_gpr_%1%2:\n    mov              t0b, [src1q + wq]\n    sub              t0b, [src2q + wq]\n    mov      [dstq + wq], t0b\n    inc               wq\n        jl .loop_gpr_%1%2\n.end_%1%2:\n    RET\n%endmacro\n\nINIT_XMM sse2\nDIFF_BYTES_PROLOGUE\n    %define regsize mmsize\n    DIFF_BYTES_LOOP_PREP .skip_main_aa, .end_aa\n    test            dstq, regsize - 1\n        jnz     .loop_uu\n    test           src1q, regsize - 1\n        jnz     .loop_ua\n    DIFF_BYTES_BODY    a, a\n    DIFF_BYTES_BODY    u, a\n    DIFF_BYTES_BODY    u, u\n%undef i\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_BYTES_PROLOGUE\n    %define regsize mmsize\n    ; Directly using unaligned SSE2 version is marginally faster than\n    ; branching based on arguments.\n    DIFF_BYTES_LOOP_PREP .skip_main_uu, .end_uu\n    test            dstq, regsize - 1\n        jnz     .loop_uu\n    test           src1q, regsize - 1\n        jnz     .loop_ua\n    DIFF_BYTES_BODY    a, a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:4", "text": "jnz     .loop_uu\n    test           src1q, regsize - 1\n        jnz     .loop_ua\n    DIFF_BYTES_BODY    a, a\n    DIFF_BYTES_BODY    u, a\n    DIFF_BYTES_BODY    u, u\n%undef i\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_BYTES_PROLOGUE\n    %define regsize mmsize\n    ; Directly using unaligned SSE2 version is marginally faster than\n    ; branching based on arguments.\n    DIFF_BYTES_LOOP_PREP .skip_main_uu, .end_uu\n    test            dstq, regsize - 1\n        jnz     .loop_uu\n    test           src1q, regsize - 1\n        jnz     .loop_ua\n    DIFF_BYTES_BODY    a, a\n    DIFF_BYTES_BODY    u, a\n    DIFF_BYTES_BODY    u, u\n%undef i\n%endif\n\n;--------------------------------------------------------------------------------------------------\n;void sub_median_pred(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                     intptr_t w, int *left, int *left_top)\n;--------------------------------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal sub_median_pred, 6, 7, 6, dst, src1, src2, w, l, lt\n    movu          m0, [src1q]       ; LT\n    movu          m4, [src2q]       ; L\n    movd          m1, [ltq]         ; LT\n    movd          m3, [lq]          ; L\n    xor          r6d, r6d\n    pslldq        m0, 1\n    pslldq        m4, 1\n    por           m0, m1            ; LT\n    por           m4, m3            ; L\n    jmp .first_iteration\n.loop:\n    movu          m4, [src2q+r6q-1] ; L\n    movu          m0, [src1q+r6q-1] ; LT\n.first_iteration:\n    movu          m1, [src1q+r6q]   ; T\n    movu          m3, [src2q+r6q]   ; X\n    psubb         m2, m4, m0        ; L - LT\n    paddb         m2, m1            ; L + T - LT\n    pmaxub        m5, m4, m1        ; max(T, L)\n    pminub        m1, m4            ; min(T, L)\n    pminub        m5, m2\n    pmaxub        m5, m1\n    psubb         m3, m5            ; dst - pred\n    movu  [dstq+r6q], m3\n    add          r6d, 16\n    cmp          r6d, wd\n    jb         .loop\n    movzx      src1d, BYTE [src1q+wq-1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:5", "text": "por           m4, m3            ; L\n    jmp .first_iteration\n.loop:\n    movu          m4, [src2q+r6q-1] ; L\n    movu          m0, [src1q+r6q-1] ; LT\n.first_iteration:\n    movu          m1, [src1q+r6q]   ; T\n    movu          m3, [src2q+r6q]   ; X\n    psubb         m2, m4, m0        ; L - LT\n    paddb         m2, m1            ; L + T - LT\n    pmaxub        m5, m4, m1        ; max(T, L)\n    pminub        m1, m4            ; min(T, L)\n    pminub        m5, m2\n    pmaxub        m5, m1\n    psubb         m3, m5            ; dst - pred\n    movu  [dstq+r6q], m3\n    add          r6d, 16\n    cmp          r6d, wd\n    jb         .loop\n    movzx      src1d, BYTE [src1q+wq-1]\n    movzx      src2d, BYTE [src2q+wq-1]\n    mov        [ltq], src1d\n    mov         [lq], src2d\n    RET\n\n;--------------------------------------------------------------------------------------------------\n;void sub_left_predict(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height)\n;--------------------------------------------------------------------------------------------------\n\nINIT_XMM avx\ncglobal sub_left_predict, 5,6,5, dst, src, stride, width, height, x\n    mova             m1, [pb_80] ; prev initial\n    add            dstq, widthq\n    add            srcq, widthq\n    lea              xd, [widthq-1]\n    neg          widthq\n    and              xd, 15\n    pinsrb           m4, m1, xd, 15\n    mov              xq, widthq\n\n    .loop:\n        movu                     m0, [srcq + widthq]\n        palignr                  m2, m0, m1, 15\n        movu                     m1, [srcq + widthq + 16]\n        palignr                  m3, m1, m0, 15\n        psubb                    m2, m0, m2\n        psubb                    m3, m1, m3\n        movu        [dstq + widthq], m2\n        movu   [dstq + widthq + 16], m3\n        add                  widthq, 2 * 16\n        jl .loop\n\n    add   srcq, strideq\n    sub   dstq, xq ; dst + width\n    test    xd, 16\n    jz .mod32\n    mova    m1, m0\n\n.mod32:\n    pshufb    m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:6", "text": ".loop:\n        movu                     m0, [srcq + widthq]\n        palignr                  m2, m0, m1, 15\n        movu                     m1, [srcq + widthq + 16]\n        palignr                  m3, m1, m0, 15\n        psubb                    m2, m0, m2\n        psubb                    m3, m1, m3\n        movu        [dstq + widthq], m2\n        movu   [dstq + widthq + 16], m3\n        add                  widthq, 2 * 16\n        jl .loop\n\n    add   srcq, strideq\n    sub   dstq, xq ; dst + width\n    test    xd, 16\n    jz .mod32\n    mova    m1, m0\n\n.mod32:\n    pshufb    m1, m4\n    mov   widthq, xq\n    dec  heightd\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 201, "line_end": 224}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lossless_videoencdsp.asm:4", "text": "jnz     .loop_uu\n    test           src1q, regsize - 1\n        jnz     .loop_ua\n    DIFF_BYTES_BODY    a, a\n    DIFF_BYTES_BODY    u, a\n    DIFF_BYTES_BODY    u, u\n%undef i\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nDIFF_BYTES_PROLOGUE\n    %define regsize mmsize\n    ; Directly using unaligned SSE2 version is marginally faster than\n    ; branching based on arguments.\n    DIFF_BYTES_LOOP_PREP .skip_main_uu, .end_uu\n    test            dstq, regsize - 1\n        jnz     .loop_uu\n    test           src1q, regsize - 1\n        jnz     .loop_ua\n    DIFF_BYTES_BODY    a, a\n    DIFF_BYTES_BODY    u, a\n    DIFF_BYTES_BODY    u, u\n%undef i\n%endif\n\n\n;--------------------------------------------------------------------------------------------------\n;void sub_left_predict(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height)\n;--------------------------------------------------------------------------------------------------\n\nINIT_XMM avx\ncglobal sub_left_predict, 5,6,5, dst, src, stride, width, height, x\n    mova             m1, [pb_80] ; prev initial\n    add            dstq, widthq\n    add            srcq, widthq\n    lea              xd, [widthq-1]\n    neg          widthq\n    and              xd, 15\n    pinsrb           m4, m1, xd, 15\n    mov              xq, widthq\n\n    .loop:\n        movu                     m0, [srcq + widthq]\n        palignr                  m2, m0, m1, 15\n        movu                     m1, [srcq + widthq + 16]\n        palignr                  m3, m1, m0, 15\n        psubb                    m2, m0, m2\n        psubb                    m3, m1, m3\n        movu        [dstq + widthq], m2\n        movu   [dstq + widthq + 16], m3\n        add                  widthq, 2 * 16\n        jl .loop\n\n    add   srcq, strideq\n    sub   dstq, xq ; dst + width\n    test    xd, 16\n    jz .mod32\n    mova    m1, m0\n\n.mod32:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lossless_videoencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lossless_videoencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:1", "text": ";******************************************************************************\n;* Copyright (c) Lynne\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\none_tab: times 4 dq 1.0\nseq_tab_avx2: dq 3.0, 2.0, 1.0, 0.0\nsub_tab: dq -1.0, -2.0, -3.0, -4.0\nadd_tab_avx2: times 4 dq  4.0\ndec_tab_avx2: times 4 dq -4.0\nadd_tab_sse2: times 2 dq  2.0\ndec_tab_sse2: times 2 dq -2.0\ndec_tab_scalar: times 2 dq -1.0\nseq_tab_sse2: dq 1.0, 0.0\n\nSECTION .text\n\n%macro APPLY_WELCH_FN 0\ncglobal lpc_apply_welch_window, 3, 5, 8, data, len, out, off1, off2\n    cmp lenq, 0\n    je .end_e\n    cmp lenq, 2\n    je .two\n    cmp lenq, 1\n    je .one\n\n    movapd m6, [one_tab]\n\n    movd xm1, lend\n    cvtdq2pd xm1, xm1      ; len\n%if cpuflag(avx2)\n    vbroadcastsd m1, xm1\n%else\n    shufpd m1, m1, 00b\n%endif\n\n    addpd m0, m6, m6       ; 2.0\n    subpd m1, m6           ; len - 1\n    divpd m0, m1           ; 2.0 / (len - 1)\n\n    mov off1q, lenq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:2", "text": "cmp lenq, 2\n    je .two\n    cmp lenq, 1\n    je .one\n\n    movapd m6, [one_tab]\n\n    movd xm1, lend\n    cvtdq2pd xm1, xm1      ; len\n%if cpuflag(avx2)\n    vbroadcastsd m1, xm1\n%else\n    shufpd m1, m1, 00b\n%endif\n\n    addpd m0, m6, m6       ; 2.0\n    subpd m1, m6           ; len - 1\n    divpd m0, m1           ; 2.0 / (len - 1)\n\n    mov off1q, lenq\n    and off1q, 1\n    je .even\n\n    movapd m5, m0\n    addpd m0, [sub_tab]\n\n    lea off2q, [lenq*4 - mmsize/2]\n    sub lenq, mmsize/4     ; avoid overwriting\n    xor off1q, off1q\n\n    cmp lenq, mmsize/4\n    jl .scalar_o\n\n%if cpuflag(avx2)\n    movapd m7, [dec_tab_avx2]\n%else\n    movapd m7, [dec_tab_sse2]\n%endif\n\n.loop_o:\n    movapd m1, m6\n%if cpuflag(avx2)\n    fnmaddpd m1, m0, m0, m1\n    vpermpd m2, m1, q0123\n%else\n    mulpd m2, m0, m0\n    subpd m1, m2\n    shufpd m2, m1, m1, 01b\n%endif\n\n    cvtdq2pd m3, [dataq + off1q]\n    cvtdq2pd m4, [dataq + off2q]\n\n    mulpd m1, m3\n    mulpd m2, m4\n\n    movupd [outq + off1q*2], m1\n    movupd [outq + off2q*2], m2\n\n    addpd m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:3", "text": "movapd m1, m6\n%if cpuflag(avx2)\n    fnmaddpd m1, m0, m0, m1\n    vpermpd m2, m1, q0123\n%else\n    mulpd m2, m0, m0\n    subpd m1, m2\n    shufpd m2, m1, m1, 01b\n%endif\n\n    cvtdq2pd m3, [dataq + off1q]\n    cvtdq2pd m4, [dataq + off2q]\n\n    mulpd m1, m3\n    mulpd m2, m4\n\n    movupd [outq + off1q*2], m1\n    movupd [outq + off2q*2], m2\n\n    addpd m0, m7\n    add off1q, mmsize/2\n    sub off2q, mmsize/2\n    sub lenq, mmsize/4\n    jg .loop_o\n\n    add lend, (mmsize/4 - 1)\n    cmp lend, 0\n    je .end_o\n    sub lenq, (mmsize/4 - 1)\n\n.scalar_o:\n    movapd xm7, [dec_tab_scalar]\n\n    ; Set offsets\n    add off2q, (mmsize/4) + 4*cpuflag(avx2)\n    add lenq, mmsize/4 - 2\n\n.loop_o_scalar:\n    movapd xm1, xm6\n%if cpuflag(avx2)\n    fnmaddpd xm1, xm0, xm0, xm1\n%else\n    mulpd xm2, xm0, xm0\n    subpd xm1, xm2\n%endif\n\n    cvtdq2pd xm3, [dataq + off1q]\n    cvtdq2pd xm4, [dataq + off2q]\n\n    mulpd xm3, xm1\n    mulpd xm4, xm1\n\n    movlpd [outq + off1q*2], xm3\n    movlpd [outq + off2q*2], xm4\n\n    addpd xm0, xm7\n\n    add off1q, 4\n    sub off2q, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:4", "text": "fnmaddpd xm1, xm0, xm0, xm1\n%else\n    mulpd xm2, xm0, xm0\n    subpd xm1, xm2\n%endif\n\n    cvtdq2pd xm3, [dataq + off1q]\n    cvtdq2pd xm4, [dataq + off2q]\n\n    mulpd xm3, xm1\n    mulpd xm4, xm1\n\n    movlpd [outq + off1q*2], xm3\n    movlpd [outq + off2q*2], xm4\n\n    addpd xm0, xm7\n\n    add off1q, 4\n    sub off2q, 4\n\n    sub lenq, 2\n    jg .loop_o_scalar\n\n.end_o:\n    xorpd xm3, xm3\n    movlpd [outq + off1q*2], xm3\n    RET\n\n.even:\n%if cpuflag(avx2)\n    addpd m0, [seq_tab_avx2]\n%else\n    addpd m0, [seq_tab_sse2]\n%endif\n\n    mov off1d, lend\n    shr off1d, 1\n    movd xm1, off1d\n    cvtdq2pd xm1, xm1      ; len/2\n%if cpuflag(avx2)\n    vbroadcastsd m1, xm1\n%else\n    shufpd m1, m1, 00b\n%endif\n    subpd m0, m1\n\n%if cpuflag(avx2)\n    movapd m7, [add_tab_avx2]\n%else\n    movapd m7, [add_tab_sse2]\n%endif\n\n    lea off2q, [lenq*2]\n    lea off1q, [lenq*2 - mmsize/2]\n    sub lenq, mmsize/4\n\n    cmp lenq, mmsize/4\n    jl .scalar_e\n\n.loop_e:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:5", "text": "vbroadcastsd m1, xm1\n%else\n    shufpd m1, m1, 00b\n%endif\n    subpd m0, m1\n\n%if cpuflag(avx2)\n    movapd m7, [add_tab_avx2]\n%else\n    movapd m7, [add_tab_sse2]\n%endif\n\n    lea off2q, [lenq*2]\n    lea off1q, [lenq*2 - mmsize/2]\n    sub lenq, mmsize/4\n\n    cmp lenq, mmsize/4\n    jl .scalar_e\n\n.loop_e:\n    movapd m1, m6\n%if cpuflag(avx2)\n    fnmaddpd m1, m0, m0, m1\n%else\n    mulpd m2, m0, m0\n    subpd m1, m2\n%endif\n%if cpuflag(avx2)\n    vpermpd m2, m1, q0123\n%else\n    shufpd m2, m1, m1, 01b\n%endif\n\n    cvtdq2pd m3, [dataq + off1q]\n    cvtdq2pd m4, [dataq + off2q]\n\n    mulpd m1, m3\n    mulpd m2, m4\n\n    movupd [outq + off1q*2], m1\n    movupd [outq + off2q*2], m2\n\n    addpd m0, m7\n    add off2q, mmsize/2\n    sub off1q, mmsize/2\n    sub lenq, mmsize/4\n    jge .loop_e\n\n.scalar_e:\n    subpd xm0, xm7\n    movapd xm7, [dec_tab_scalar]\n    subpd xm0, xm7\n\n    add off1q, (mmsize/2)\n    sub off2q, (mmsize/2) - 8*cpuflag(avx2)\n    add lenq, 6 + 4*cpuflag(avx2)\n\n    addpd xm0, [sub_tab]\n\n.loop_e_scalar:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:6", "text": "movupd [outq + off2q*2], m2\n\n    addpd m0, m7\n    add off2q, mmsize/2\n    sub off1q, mmsize/2\n    sub lenq, mmsize/4\n    jge .loop_e\n\n.scalar_e:\n    subpd xm0, xm7\n    movapd xm7, [dec_tab_scalar]\n    subpd xm0, xm7\n\n    add off1q, (mmsize/2)\n    sub off2q, (mmsize/2) - 8*cpuflag(avx2)\n    add lenq, 6 + 4*cpuflag(avx2)\n\n    addpd xm0, [sub_tab]\n\n.loop_e_scalar:\n    movapd xm1, xm6\n%if cpuflag(avx2)\n    fnmaddpd xm1, xm0, xm0, xm1\n%else\n    mulpd xm2, xm0, xm0\n    subpd xm1, xm2\n%endif\n\n    cvtdq2pd xm3, [dataq + off1q]\n    cvtdq2pd xm4, [dataq + off2q]\n\n    mulpd xm3, xm1\n    shufpd xm1, xm1, 00b\n    mulpd xm4, xm1\n\n    movlpd [outq + off1q*2], xm3\n    movhpd [outq + off2q*2 + 8], xm4\n\n    subpd xm0, xm7\n\n    add off2q, 4\n    sub off1q, 4\n    sub lenq, 2\n    jg .loop_e_scalar\n    RET\n\n.two:\n    xorpd xm0, xm0\n    movhpd [outq + 8], xm0\n.one:\n    xorpd xm0, xm0\n    movhpd [outq], xm0\n.end_e:\n    RET\n%endmacro\n\nINIT_XMM sse2\nAPPLY_WELCH_FN\n\nINIT_YMM avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:7", "text": "add off2q, 4\n    sub off1q, 4\n    sub lenq, 2\n    jg .loop_e_scalar\n    RET\n\n.two:\n    xorpd xm0, xm0\n    movhpd [outq + 8], xm0\n.one:\n    xorpd xm0, xm0\n    movhpd [outq], xm0\n.end_e:\n    RET\n%endmacro\n\nINIT_XMM sse2\nAPPLY_WELCH_FN\n\nINIT_YMM avx2\nAPPLY_WELCH_FN", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/lpc.asm", "line_start": 241, "line_end": 261}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:6", "text": "movupd [outq + off2q*2], m2\n\n    addpd m0, m7\n    add off2q, mmsize/2\n    sub off1q, mmsize/2\n    sub lenq, mmsize/4\n    jge .loop_e\n\n.scalar_e:\n    subpd xm0, xm7\n    movapd xm7, [dec_tab_scalar]\n    subpd xm0, xm7\n\n    add off1q, (mmsize/2)\n    sub off2q, (mmsize/2) - 8*cpuflag(avx2)\n    add lenq, 6 + 4*cpuflag(avx2)\n\n    addpd xm0, [sub_tab]\n\n.loop_e_scalar:\n    movapd xm1, xm6\n%if cpuflag(avx2)\n    fnmaddpd xm1, xm0, xm0, xm1\n%else\n    mulpd xm2, xm0, xm0\n    subpd xm1, xm2\n%endif\n\n    cvtdq2pd xm3, [dataq + off1q]\n    cvtdq2pd xm4, [dataq + off2q]\n\n    mulpd xm3, xm1\n    shufpd xm1, xm1, 00b\n    mulpd xm4, xm1\n\n    movlpd [outq + off1q*2], xm3\n    movhpd [outq + off2q*2 + 8], xm4\n\n    subpd xm0, xm7\n\n    add off2q, 4\n    sub off1q, 4\n    sub lenq, 2\n    jg .loop_e_scalar\n    RET\n\n.two:\n    xorpd xm0, xm0\n    movhpd [outq + 8], xm0\n.one:\n    xorpd xm0, xm0\n    movhpd [outq], xm0\n.end_e:\n    RET\n%endmacro\n\nINIT_XMM sse2\nAPPLY_WELCH_FN\n\n%if HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lpc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/lpc.asm:7", "text": "add off2q, 4\n    sub off1q, 4\n    sub lenq, 2\n    jg .loop_e_scalar\n    RET\n\n.two:\n    xorpd xm0, xm0\n    movhpd [outq + 8], xm0\n.one:\n    xorpd xm0, xm0\n    movhpd [outq], xm0\n.end_e:\n    RET\n%endmacro\n\nINIT_XMM sse2\nAPPLY_WELCH_FN\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nAPPLY_WELCH_FN\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/lpc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/lpc.asm", "line_start": 241, "line_end": 263}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized motion compensation estimation\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_1\ncextern pb_80\ncextern pw_2\n\npb_unpack1: db 0, 0xFF, 1, 0xFF, 2, 0xFF, 3, 0xFF, 4, 0xFF, 5, 0xFF, 6, 0xFF, 0xFF, 0xFF\npb_unpack2: db 1, 0xFF, 2, 0xFF, 3, 0xFF, 4, 0xFF, 5, 0xFF, 6, 0xFF, 7, 0xFF, 0xFF, 0xFF\n\nSECTION .text\n\n%macro DIFF_PIXELS_1 4\n    movh            %1, %3\n    movh            %2, %4\n    punpcklbw       %2, %1\n    punpcklbw       %1, %1\n    psubw           %1, %2\n%endmacro\n\n; %1=const uint8_t *pix1, %2=const uint8_t *pix2, %3=static offset, %4=stride, %5=stride*3\n; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:2", "text": "punpcklbw       %1, %1\n    psubw           %1, %2\n%endmacro\n\n; %1=const uint8_t *pix1, %2=const uint8_t *pix2, %3=static offset, %4=stride, %5=stride*3\n; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else\n    mova          [%6], m0\n    DIFF_PIXELS_1   m7, m0, [%1+%4*4+%3], [%2+%4*4+%3]\n    mova            m0, [%6]\n%endif\n    sub             %1, %5\n    sub             %2, %5\n%endmacro\n\n%macro HADAMARD8 0\n%if ARCH_X86_64\n    SUMSUB_BADC       w, 0, 1, 2, 3, 8\n    SUMSUB_BADC       w, 4, 5, 6, 7, 8\n    SUMSUB_BADC       w, 0, 2, 1, 3, 8\n    SUMSUB_BADC       w, 4, 6, 5, 7, 8\n    SUMSUB_BADC       w, 0, 4, 1, 5, 8\n    SUMSUB_BADC       w, 2, 6, 3, 7, 8\n%else\n    SUMSUB_BADC       w, 0, 1, 2, 3\n    SUMSUB_BADC       w, 4, 5, 6, 7\n    SUMSUB_BADC       w, 0, 2, 1, 3\n    SUMSUB_BADC       w, 4, 6, 5, 7\n    SUMSUB_BADC       w, 0, 4, 1, 5\n    SUMSUB_BADC       w, 2, 6, 3, 7\n%endif\n%endmacro\n\n%macro ABS1_SUM 3\n    ABS1            %1, %2\n    paddusw         %3, %1\n%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:3", "text": "SUMSUB_BADC       w, 4, 6, 5, 7\n    SUMSUB_BADC       w, 0, 4, 1, 5\n    SUMSUB_BADC       w, 2, 6, 3, 7\n%endif\n%endmacro\n\n%macro ABS1_SUM 3\n    ABS1            %1, %2\n    paddusw         %3, %1\n%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0\n    mova            m2, [%1]\n    ABS1_SUM        m2, m7, m1\n    paddusw         m0, m1\n%endmacro\n\n; FIXME: HSUM saturates at 64k, while an 8x8 hadamard or dct block can get up to\n; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%endmacro\n\n%macro HADAMARD8_DIFF 1\ncglobal hadamard8_diff16, 5, 6, %1, 2*mmsize*ARCH_X86_32\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%endmacro\n\n%macro HADAMARD8_DIFF 1\ncglobal hadamard8_diff16, 5, 6, %1, 2*mmsize*ARCH_X86_32\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n    RET\n\ncglobal hadamard8_diff, 4, 4, %1, 2*mmsize*ARCH_X86_32\n    TAIL_CALL hadamard8x8_diff %+ SUFFIX, 0\n\n; r1, r2 and r3 are not clobbered in this function, so 16x16 can\n; simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling function)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "TAIL_CALL hadamard8x8_diff %+ SUFFIX, 0\n\n; r1, r2 and r3 are not clobbered in this function, so 16x16 can\n; simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling function)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n%endmacro\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_sse2(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": ".next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2\n    pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]\n%else\n    pxor       m4, m4\n%endif\n    sub        hd, 2\n    pxor       m0, m0\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n.loop:\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": ";int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": ";%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 811}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 811}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:2", "text": "punpcklbw       %1, %1\n    psubw           %1, %2\n%endmacro\n\n; %1=const uint8_t *pix1, %2=const uint8_t *pix2, %3=static offset, %4=stride, %5=stride*3\n; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else\n    mova          [%6], m0\n    DIFF_PIXELS_1   m7, m0, [%1+%4*4+%3], [%2+%4*4+%3]\n    mova            m0, [%6]\n%endif\n    sub             %1, %5\n    sub             %2, %5\n%endmacro\n\n%macro HADAMARD8 0\n    SUMSUB_BADC       w, 0, 1, 2, 3\n    SUMSUB_BADC       w, 4, 5, 6, 7\n    SUMSUB_BADC       w, 0, 2, 1, 3\n    SUMSUB_BADC       w, 4, 6, 5, 7\n    SUMSUB_BADC       w, 0, 4, 1, 5\n    SUMSUB_BADC       w, 2, 6, 3, 7\n%endmacro\n\n%macro ABS1_SUM 3\n    ABS1            %1, %2\n    paddusw         %3, %1\n%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:3", "text": "%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0\n    mova            m2, [%1]\n    ABS1_SUM        m2, m7, m1\n    paddusw         m0, m1\n%endmacro\n\n; FIXME: HSUM saturates at 64k, while an 8x8 hadamard or dct block can get up to\n; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%endmacro\n\n%macro HADAMARD8_DIFF 1\ncglobal hadamard8_diff16, 5, 6, %1, 2*mmsize*ARCH_X86_32\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "movd            %3, %1\n%endmacro\n\n%macro HADAMARD8_DIFF 1\ncglobal hadamard8_diff16, 5, 6, %1, 2*mmsize*ARCH_X86_32\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n    RET\n\ncglobal hadamard8_diff, 4, 4, %1, 2*mmsize*ARCH_X86_32\n    TAIL_CALL hadamard8x8_diff %+ SUFFIX, 0\n\n; r1, r2 and r3 are not clobbered in this function, so 16x16 can\n; simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling function)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n%endmacro\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n%endmacro\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_sse2(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2\n    pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]\n%else\n    pxor       m4, m4\n%endif\n    sub        hd, 2\n    pxor       m0, m0\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n.loop:\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "INIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "81362b319ea7244d8d17110adfa59f10c7e78268", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81362b319ea7244d8d17110adfa59f10c7e78268/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 802}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:3", "text": "%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0\n    mova            m2, [%1]\n    ABS1_SUM        m2, m7, m1\n    paddusw         m0, m1\n%endmacro\n\n; FIXME: HSUM saturates at 64k, while an 8x8 hadamard or dct block can get up to\n; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%endmacro\n\n%macro hadamard8_16_wrapper 2\ncglobal hadamard8_diff, 4, 4, %1, %2*mmsize\n    call hadamard8x8_diff %+ SUFFIX\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1, %2*mmsize\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "movd            %3, %1\n%endmacro\n\n%macro hadamard8_16_wrapper 2\ncglobal hadamard8_diff, 4, 4, %1, %2*mmsize\n    call hadamard8x8_diff %+ SUFFIX\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1, %2*mmsize\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n    RET\n%endmacro\n\n%macro HADAMARD8_DIFF 1\n; r1, r2 and r3 are not clobbered in this function, so 16x16 can\n; simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling function)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 2*ARCH_X86_32\n%endmacro\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 2*ARCH_X86_32\n%endmacro\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_sse2(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2\n    pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]\n%else\n    pxor       m4, m4\n%endif\n    sub        hd, 2\n    pxor       m0, m0\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n.loop:\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "cglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "23720df371d7da9ea8074b01753497f7194973f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23720df371d7da9ea8074b01753497f7194973f4/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 807}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:3", "text": "%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0\n    mova            m2, [%1]\n    ABS1_SUM        m2, m7, m1\n    paddusw         m0, m1\n%endmacro\n\n; FIXME: HSUM saturates at 64k, while an 8x8 hadamard or dct block can get up to\n; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n%if cpuflag(sse2)\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmxext)\n    pshufw          %2, %1, 0xE\n    paddusw         %1, %2\n    pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "6588bf368613a7fdc1970c77030a94f31fcfa970", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6588bf368613a7fdc1970c77030a94f31fcfa970/libavcodec/x86/me_cmp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmxext)\n    pshufw          %2, %1, 0xE\n    paddusw         %1, %2\n    pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5\n    mova [%1+mmsize*0], %2\n    mova [%1+mmsize*1], %3\n    mova [%1+mmsize*2], %4\n    mova [%1+mmsize*3], %5\n%endmacro\n\n%macro LOAD4 5\n    mova            %2, [%1+mmsize*0]\n    mova            %3, [%1+mmsize*1]\n    mova            %4, [%1+mmsize*2]\n    mova            %5, [%1+mmsize*3]\n%endmacro\n\n%macro hadamard8_16_wrapper 2\ncglobal hadamard8_diff, 4, 4, %1, %2*mmsize\n    call hadamard8x8_diff %+ SUFFIX\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1, %2*mmsize\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "6588bf368613a7fdc1970c77030a94f31fcfa970", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6588bf368613a7fdc1970c77030a94f31fcfa970/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n    RET\n%endmacro\n\n%macro HADAMARD8_DIFF 0-1\n%if cpuflag(sse2)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 2*ARCH_X86_32\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling func\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n\n    ; first 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4              rsp+gprsize, m0, m1, m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "6588bf368613a7fdc1970c77030a94f31fcfa970", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6588bf368613a7fdc1970c77030a94f31fcfa970/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "ret\n\nhadamard8_16_wrapper %1, 2*ARCH_X86_32\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling func\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n\n    ; first 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4              rsp+gprsize, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n    STORE4         rsp+gprsize+0x40, m4, m5, m6, m7\n\n    ; second 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 13\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "6588bf368613a7fdc1970c77030a94f31fcfa970", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6588bf368613a7fdc1970c77030a94f31fcfa970/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 13\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_sse2(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "6588bf368613a7fdc1970c77030a94f31fcfa970", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6588bf368613a7fdc1970c77030a94f31fcfa970/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmxext)\n    pshufw          %2, %1, 0xE\n    paddusw         %1, %2\n    pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5\n    mova [%1+mmsize*0], %2\n    mova [%1+mmsize*1], %3\n    mova [%1+mmsize*2], %4\n    mova [%1+mmsize*3], %5\n%endmacro\n\n%macro LOAD4 5\n    mova            %2, [%1+mmsize*0]\n    mova            %3, [%1+mmsize*1]\n    mova            %4, [%1+mmsize*2]\n    mova            %5, [%1+mmsize*3]\n%endmacro\n\n%macro hadamard8_16_wrapper 2\ncglobal hadamard8_diff, 4, 4, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n    call hadamard8x8_diff %+ SUFFIX\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n%endmacro\n\n%macro HADAMARD8_DIFF 0-1\n%if cpuflag(sse2)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "%macro HADAMARD8_DIFF 0-1\n%if cpuflag(sse2)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling func\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n\n    ; first 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4              rsp+gprsize, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n    STORE4         rsp+gprsize+0x40, m4, m5, m6, m7\n\n    ; second 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_sse2(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "INIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_sse2(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]        ; m1 = pix1[0][0-15]\n    movu      m2, [pix2q]        ; m2 = pix2[0][0-15]\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15]\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15]\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": ";int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2\n    pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]\n%else\n    pxor       m4, m4\n%endif\n    sub        hd, 2\n    pxor       m0, m0\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n.loop:\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "%else\n    pxor       m4, m4\n%endif\n    sub        hd, 2\n    pxor       m0, m0\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n.loop:\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "align 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": ";                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": ";int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "8157aa1a3fd136c0bf565f9d866a4b687ada9c7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8157aa1a3fd136c0bf565f9d866a4b687ada9c7a/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 902}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "INIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n%if %1 <= mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n    dec       hd\n%endif\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2\n    pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_ssse3(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16, %2-5=m#, %6 = src\n%macro HF_NOISE_PART1 6\n%if %1 == mmsize\n    movu      m%2, [%6]\n    mova      m%3, m%2\n    pslldq    m%2, 1\n    psrldq    m%3, 1\n    psrldq    m%2, 1\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%else\n    movh      m%2, [%6]\n    pshufb    m%3, m%2, m5\n    pshufb    m%2, m%2, m4\n    psubw     m%2, m%3\n%endif\n%endmacro\n\n; %1 = 8/16, %2-5 = m#\n%macro HF_NOISE_PART2 5\n%if %1 == mmsize\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]\n%else\n    pxor       m4, m4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "psubw     m%4, m%5\n    pabsw     m%2, m%2\n    pabsw     m%4, m%4\n    paddw     m%2, m%4\n%else\n    psubw     m%2, m%3\n    pabsw     m%2, m%2\n%endif\n    paddw      m0, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,(%1 == 8) ? 6 : 8, pix1, lsize, h\n%if %1 == 8\n    mova       m4, [pb_unpack1]\n    mova       m5, [pb_unpack2]\n%else\n    pxor       m4, m4\n%endif\n    sub        hd, 2\n    pxor       m0, m0\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n.loop:\n    HF_NOISE_PART1 %1, 1, 2, 5, 7, pix1q\n    HF_NOISE_PART2 %1, 3, 1, 6, 5\n    HF_NOISE_PART1 %1, 3, 2, 6, 7, pix1q+lsizeq\n    lea     pix1q, [pix1q+2*lsizeq]\n    HF_NOISE_PART2 %1, 1, 3, 5, 6\n    sub        hd, 2\n        jne .loop\n\n%if %1 == 8\n    pxor       m4, m4\n%endif\n    movhlps    m1, m0\n    paddw      m0, m1\n    punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "punpcklwd  m0, m4\n    HADDD      m0, m1\n    movd      eax, m0   ; eax = result of hf_noise;\n    RET                 ; return eax;\n%endmacro\n\nINIT_XMM ssse3\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "INIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "3f596ec4789d38cbd865bf99420032c2a5253808", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f596ec4789d38cbd865bf99420032c2a5253808/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 919}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized motion compensation estimation\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pb_1\ncextern pb_80\ncextern pw_2\n\nSECTION .text\n\n%macro DIFF_PIXELS_1 4\n    movh            %1, %3\n    movh            %2, %4\n    punpcklbw       %2, %1\n    punpcklbw       %1, %1\n    psubw           %1, %2\n%endmacro\n\n; %1=const uint8_t *pix1, %2=const uint8_t *pix2, %3=static offset, %4=stride, %5=stride*3\n; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else\n    mova          [%6], m0\n    DIFF_PIXELS_1   m7, m0, [%1+%4*4+%3], [%2+%4*4+%3]\n    mova            m0, [%6]\n%endif\n    sub             %1, %5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:2", "text": "; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else\n    mova          [%6], m0\n    DIFF_PIXELS_1   m7, m0, [%1+%4*4+%3], [%2+%4*4+%3]\n    mova            m0, [%6]\n%endif\n    sub             %1, %5\n    sub             %2, %5\n%endmacro\n\n%macro HADAMARD8 0\n    SUMSUB_BADC       w, 0, 1, 2, 3\n    SUMSUB_BADC       w, 4, 5, 6, 7\n    SUMSUB_BADC       w, 0, 2, 1, 3\n    SUMSUB_BADC       w, 4, 6, 5, 7\n    SUMSUB_BADC       w, 0, 4, 1, 5\n    SUMSUB_BADC       w, 2, 6, 3, 7\n%endmacro\n\n%macro ABS1_SUM 3\n    ABS1            %1, %2\n    paddusw         %3, %1\n%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:3", "text": "paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0\n    mova            m2, [%1]\n    ABS1_SUM        m2, m7, m1\n    paddusw         m0, m1\n%endmacro\n\n; FIXME: HSUM saturates at 64k, while an 8x8 hadamard or dct block can get up to\n; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n%if cpuflag(sse2)\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmxext)\n    pshufw          %2, %1, 0xE\n    paddusw         %1, %2\n    pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5\n    mova [%1+mmsize*0], %2\n    mova [%1+mmsize*1], %3\n    mova [%1+mmsize*2], %4\n    mova [%1+mmsize*3], %5\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5\n    mova [%1+mmsize*0], %2\n    mova [%1+mmsize*1], %3\n    mova [%1+mmsize*2], %4\n    mova [%1+mmsize*3], %5\n%endmacro\n\n%macro LOAD4 5\n    mova            %2, [%1+mmsize*0]\n    mova            %3, [%1+mmsize*1]\n    mova            %4, [%1+mmsize*2]\n    mova            %5, [%1+mmsize*3]\n%endmacro\n\n%macro hadamard8_16_wrapper 2\ncglobal hadamard8_diff, 4, 4, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n    call hadamard8x8_diff %+ SUFFIX\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "cglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n%endmacro\n\n%macro HADAMARD8_DIFF 0-1\n%if cpuflag(sse2)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling func\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n\n    ; first 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4              rsp+gprsize, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n    STORE4         rsp+gprsize+0x40, m4, m5, m6, m7\n\n    ; second 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": ";               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,%1 < mmsize ? 6 : 8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n%if %1 < mmsize\n    movh      m1, [pix1q]\n    movh      m2, [pix2q]\n    movh      m3, [pix1q+lsizeq]\n    movh      m4, [pix2q+lsizeq]\n    punpcklbw m1, m0\n    punpcklbw m2, m0\n    punpcklbw m3, m0\n    punpcklbw m4, m0\n    psubw     m1, m2\n    psubw     m3, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n%else\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n%endif\n    paddd     m5, m1\n    paddd     m5, m3\n\n%if %1 <= mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n    dec       hd\n%endif\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "INIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 8\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_mmx(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16. %2-5=m#\n%macro HF_NOISE_PART1 5\n    mova      m%2, [pix1q]\n%if %1 == 8\n    mova      m%3, m%2\n    psllq     m%2, 8\n    psrlq     m%3, 8\n    psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "SUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_mmx(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16. %2-5=m#\n%macro HF_NOISE_PART1 5\n    mova      m%2, [pix1q]\n%if %1 == 8\n    mova      m%3, m%2\n    psllq     m%2, 8\n    psrlq     m%3, 8\n    psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3\n    pxor       m1, m1\n    pcmpgtw    m3, m%1\n    pcmpgtw    m1, m%2\n    pxor      m%1, m3\n    pxor      m%2, m1\n    psubw     m%1, m3\n    psubw     m%2, m1\n    paddw     m%2, m%1\n    paddw      m6, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,0, pix1, lsize, h\n    sub        hd, 2\n    pxor       m7, m7\n    pxor       m6, m6\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "paddw     m%2, m%1\n    paddw      m6, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,0, pix1, lsize, h\n    sub        hd, 2\n    pxor       m7, m7\n    pxor       m6, m6\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro\n\nINIT_MMX mmx\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": ";---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": ".loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": ";int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "INIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "INIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "86062cfa031b431efb4010036bc7428b5b806178", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86062cfa031b431efb4010036bc7428b5b806178/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 909}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": ";               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m5, m5         ; m5 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m6, m1\n    mova      m7, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m6\n    psubusb   m4, m7\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m5, m1\n    paddd     m5, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n    dec       hd\n%endif\n    jnz .next2lines", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m5, m1\n    paddd     m5, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n    dec       hd\n%endif\n    jnz .next2lines\n\n    HADDD     m5, m1\n    movd     eax, m5         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_mmx(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16. %2-5=m#\n%macro HF_NOISE_PART1 5\n    mova      m%2, [pix1q]\n%if %1 == 8\n    mova      m%3, m%2\n    psllq     m%2, 8\n    psrlq     m%3, 8\n    psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3\n    pxor       m1, m1\n    pcmpgtw    m3, m%1\n    pcmpgtw    m1, m%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3\n    pxor       m1, m1\n    pcmpgtw    m3, m%1\n    pcmpgtw    m1, m%2\n    pxor      m%1, m3\n    pxor      m%2, m1\n    psubw     m%1, m3\n    psubw     m%2, m1\n    paddw     m%2, m%1\n    paddw      m6, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,0, pix1, lsize, h\n    sub        hd, 2\n    pxor       m7, m7\n    pxor       m6, m6\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro\n\nINIT_MMX mmx\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": ";------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": ";int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 893}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "232e72d00edb7470cc8adbdf77247f33a147c26a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/232e72d00edb7470cc8adbdf77247f33a147c26a/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 893}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "87cfbcb74a6e02cdab1f9b16390deeef62a14c81", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/87cfbcb74a6e02cdab1f9b16390deeef62a14c81/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": ";               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m5, m1\n    mova      m6, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m5\n    psubusb   m4, m6\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n    dec       hd\n%endif\n    jnz .next2lines", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "87cfbcb74a6e02cdab1f9b16390deeef62a14c81", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/87cfbcb74a6e02cdab1f9b16390deeef62a14c81/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n    sub       hd, 2\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n    dec       hd\n%endif\n    jnz .next2lines\n\n    HADDD     m7, m1\n    movd     eax, m7         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "87cfbcb74a6e02cdab1f9b16390deeef62a14c81", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/87cfbcb74a6e02cdab1f9b16390deeef62a14c81/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n%if %1 == mmsize\n    shr       hd, 1\n%endif\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": ";               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n%if %1 == mmsize\n    shr       hd, 1\n%endif\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m5, m1\n    mova      m6, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m5\n    psubusb   m4, m6\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n%endif\n    dec       hd\n    jnz .next2lines\n\n    HADDD     m7, m1\n    movd     eax, m7         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": "; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_mmx(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16. %2-5=m#\n%macro HF_NOISE_PART1 5\n    mova      m%2, [pix1q]\n%if %1 == 8\n    mova      m%3, m%2\n    psllq     m%2, 8\n    psrlq     m%3, 8\n    psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3\n    pxor       m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3\n    pxor       m1, m1\n    pcmpgtw    m3, m%1\n    pcmpgtw    m1, m%2\n    pxor      m%1, m3\n    pxor      m%2, m1\n    psubw     m%1, m3\n    psubw     m%2, m1\n    paddw     m%2, m%1\n    paddw      m6, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,0, pix1, lsize, h\n    sub        hd, 2\n    pxor       m7, m7\n    pxor       m6, m6\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro\n\nINIT_MMX mmx\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro SAD 1-2\n%ifidn %2, u\ncglobal sad%1u, 5, 5, 5, v, pix1, pix2, stride, h\n%else\ncglobal sad%1,  5, 5, 3, v, pix1, pix2, stride, h\n%endif\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m0, [pix1q]\n    movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "movu      m3, [pix1q+strideq]\n    psadbw    m2, m0\n    psadbw    m1, m3\n%else\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m1\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n%ifidn %2, u\n    movu      m3, [pix1q]\n    movu      m4, [pix1q+strideq]\n    psadbw    m0, m3\n    psadbw    m1, m4\n%else\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n%endif\n    paddw     m2, m0\n    paddw     m2, m1\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nINIT_XMM sse2\nSAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "SAD 16\nSAD 16, u\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": "lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": ";-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_INTRA 2\n%ifidn %2, u\ncglobal vsad_intra%1u, 5, 5, 3, v, pix1, pix2, lsize, h\n%else\ncglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "cglobal vsad_intra%1,  5, 5, 3, v, pix1, pix2, lsize, h\n%endif\n    mov%2     m0, [pix1q]\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n    mov%2     m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mov%2     m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA  8, a\nINIT_XMM sse2\nVSAD_INTRA 16, a\nVSAD_INTRA 16, u\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16, %2 = a/u (whether pix1 is aligned or not)\n%macro VSAD_APPROX 2\n%ifidn %2, u\ncglobal vsad%1u_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "%else\ncglobal vsad%1_approx,  5, 5, 5, v, pix1, pix2, lsize, h\n%endif\n    mova   m1, [pb_80]\n    mov%2  m0, [pix1q]\n    mov%2  m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mov%2  m2, [pix1q]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mov%2  m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 895}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8,  a\nINIT_XMM sse2\nVSAD_APPROX 16, a\nVSAD_APPROX 16, u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d91b1559e0f61b7ee486c46854013d6c9ddb3e84", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d91b1559e0f61b7ee486c46854013d6c9ddb3e84/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 895}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro\n\nINIT_MMX mmx\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD 1\ncglobal sad%1, 5, 5, 3, v, pix1, pix2, stride, h\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m0\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m0\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nSAD 16\nINIT_XMM sse2\nSAD 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_INTRA 1\ncglobal vsad_intra%1, 5, 5, 3, v, pix1, pix2, lsize, h\n    mova      m0, [pix1q]\n%if %1 == mmsize\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n%else\n    mova      m2, [pix1q+lsizeq]\n    mova      m3, [pix1q+8]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m0, m2\n    psadbw    m3, m4\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n%if %1 == mmsize\n    mova      m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "%else\n    mova      m2, [pix1q+lsizeq]\n    mova      m3, [pix1q+8]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m0, m2\n    psadbw    m3, m4\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n%if %1 == mmsize\n    mova      m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3\n    paddw     m0, m2\n    paddw     m0, m4\n    mova      m2, [pix1q+lsizeq]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m1, m2\n    psadbw    m3, m4\n    paddw     m0, m1\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA 8\nVSAD_INTRA 16\nINIT_XMM sse2\nVSAD_INTRA 16\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_APPROX 1\ncglobal vsad%1_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n    mova   m1, [pb_80]\n    mova   m0, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA 8\nVSAD_INTRA 16\nINIT_XMM sse2\nVSAD_INTRA 16\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_APPROX 1\ncglobal vsad%1_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n    mova   m1, [pb_80]\n    mova   m0, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n    mova   m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m0, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m0, m1\n    pxor   m3, m1\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m0, m4\n    psadbw m3, m5\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mova   m2, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m0, m4\n    psadbw m3, m5\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mova   m2, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mova   m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m2, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m2, m1\n    pxor   m3, m1\n    psadbw m4, m2\n    psadbw m5, m3\n    paddw  m0, m4\n    paddw  m0, m5\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m2, m4\n    psadbw m3, m5\n    paddw  m0, m2\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:24", "text": "paddw  m0, m5\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m2, m4\n    psadbw m3, m5\n    paddw  m0, m2\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8\nVSAD_APPROX 16\nINIT_XMM sse2\nVSAD_APPROX 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "69a700043d79517b3b1896e2a737d07801150cdf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/69a700043d79517b3b1896e2a737d07801150cdf/libavcodec/x86/me_cmp.asm", "line_start": 921, "line_end": 948}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": ";------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1\n    paddw     m0, m2\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1\n    paddw     m0, m2\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nSAD_X2 16\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m4, [pix2q+8]\n    movu      m5, [pix2q+strideq+8]\n    movu      m6, [pix2q+2*strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": ";------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m4, [pix2q+8]\n    movu      m5, [pix2q+strideq+8]\n    movu      m6, [pix2q+2*strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nSAD_Y2 16\nINIT_XMM sse2\nSAD_Y2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n\n;%1 = 8/16, %2 = aligned mov, %3 = unaligned mov\n%macro SAD_XY2 3\ncglobal sad%1_xy2, 5, 5, mmsize == 16 ? 8 + ARCH_X86_64 : 7, v, pix1, pix2, stride, h\n    mov%3     m2, [pix2q]\n    mov%3     m3, [pix2q+1]\n%if %1 == mmsize\n%if ARCH_X86_64\n    mova      m8, [pw_2]\n    %define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "%define PW_2 m8\n%else\n    %define PW_2 [pw_2]\n%endif\n%else ; %1 != mmsize\n    mova      m6, [pw_2]\n    %define PW_2 m6\n%endif\n    pxor      m1, m1\n    add    pix2q, strideq\n%if %1 != mmsize/2\n    mova      m6, m2\n    mova      m7, m3\n    punpckhbw m6, m1\n    punpckhbw m7, m1\n    paddw     m6, m7\n%endif\n    punpcklbw m2, m1\n    punpcklbw m3, m1\n    paddw     m2, m3\n    mova      m0, m1\n\n.loop:\n    mov%3     m3, [pix2q]\n    mov%3     m4, [pix2q+1]\n%if %1 != mmsize/2\n    mova      m5, m3\n    mova      m7, m4\n    punpckhbw m5, m1\n    punpckhbw m7, m1\n    paddw     m7, m5\n    paddw     m7, PW_2\n    paddw     m6, m7\n    psraw     m6, 2\n%endif\n    mov%2     m5, [pix1q]\n    punpcklbw m3, m1\n    punpcklbw m4, m1\n    paddw     m3, m4\n    paddw     m3, PW_2\n    paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "paddw     m2, m3\n    psraw     m2, 2\n    packuswb  m2, m6\n    psadbw    m2, m5\n    paddw     m0, m2\n\n    mov%3     m2, [pix2q+strideq]\n    mov%3     m4, [pix2q+strideq+1]\n%if %1 != mmsize/2\n    mova      m5, m2\n    mova      m6, m4\n    punpckhbw m5, m1\n    punpckhbw m6, m1\n    paddw     m6, m5\n    paddw     m7, m6\n    psraw     m7, 2\n%endif\n    mov%2     m5, [pix1q+strideq]\n    punpcklbw m2, m1\n    punpcklbw m4, m1\n    paddw     m2, m4\n    paddw     m3, m2\n    psraw     m3, 2\n    packuswb  m3, m7\n    psadbw    m3, m5\n    paddw     m0, m3\n\n    sub       hd, 2\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    jnz    .loop\n\n%if %1 == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "INIT_XMM sse2\nSAD_XY2  8, h, h\nSAD_XY2 16, a, u\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    movu      m7, [pix2q+2*strideq+8]\n    pavgb     m5, [pix2q+1+8]\n    pavgb     m6, [pix2q+strideq+1+8]\n    pavgb     m7, [pix2q+2*strideq+1+8]\n    psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m6, [pix2q+8]\n    movu      m7, [pix2q+strideq+8]\n    pavgb     m6, [pix2q+8+1]\n    pavgb     m7, [pix2q+strideq+8+1]\n    psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nSAD_APPROX_XY2 16\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_INTRA 1\ncglobal vsad_intra%1, 5, 5, 3, v, pix1, pix2, lsize, h\n    mova      m0, [pix1q]\n%if %1 == mmsize\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n%else\n    mova      m2, [pix1q+lsizeq]\n    mova      m3, [pix1q+8]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m0, m2\n    psadbw    m3, m4\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n%if %1 == mmsize\n    mova      m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "psadbw    m0, m2\n    psadbw    m3, m4\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n%if %1 == mmsize\n    mova      m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3\n    paddw     m0, m2\n    paddw     m0, m4\n    mova      m2, [pix1q+lsizeq]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m1, m2\n    psadbw    m3, m4\n    paddw     m0, m1\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA 8\nVSAD_INTRA 16\nINIT_XMM sse2\nVSAD_INTRA 16\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_APPROX 1\ncglobal vsad%1_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n    mova   m1, [pb_80]\n    mova   m0, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n    mova   m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:24", "text": "INIT_MMX mmxext\nVSAD_INTRA 8\nVSAD_INTRA 16\nINIT_XMM sse2\nVSAD_INTRA 16\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_APPROX 1\ncglobal vsad%1_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n    mova   m1, [pb_80]\n    mova   m0, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n    mova   m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m0, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m0, m1\n    pxor   m3, m1\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m0, m4\n    psadbw m3, m5\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mova   m2, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:25", "text": "pxor   m5, m1\n    psadbw m0, m4\n    psadbw m3, m5\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mova   m2, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mova   m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m2, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m2, m1\n    pxor   m3, m1\n    psadbw m4, m2\n    psadbw m5, m3\n    paddw  m0, m4\n    paddw  m0, m5\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m2, m4\n    psadbw m3, m5\n    paddw  m0, m2\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:26", "text": "psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m2, m4\n    psadbw m3, m5\n    paddw  m0, m2\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8\nVSAD_APPROX 16\nINIT_XMM sse2\nVSAD_APPROX 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "20c4608af84f96692fe6e912eea22a2f6ee92297", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/20c4608af84f96692fe6e912eea22a2f6ee92297/libavcodec/x86/me_cmp.asm", "line_start": 1001, "line_end": 1024}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized motion compensation estimation\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_1\ncextern pb_80\n\nSECTION .text\n\n%macro DIFF_PIXELS_1 4\n    movh            %1, %3\n    movh            %2, %4\n    punpcklbw       %2, %1\n    punpcklbw       %1, %1\n    psubw           %1, %2\n%endmacro\n\n; %1=const uint8_t *pix1, %2=const uint8_t *pix2, %3=static offset, %4=stride, %5=stride*3\n; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else\n    mova          [%6], m0\n    DIFF_PIXELS_1   m7, m0, [%1+%4*4+%3], [%2+%4*4+%3]\n    mova            m0, [%6]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:2", "text": "; %1=const uint8_t *pix1, %2=const uint8_t *pix2, %3=static offset, %4=stride, %5=stride*3\n; %6=temporary storage location\n; this macro requires $mmsize stack space (aligned) on %6 (except on SSE+x86-64)\n%macro DIFF_PIXELS_8 6\n    DIFF_PIXELS_1   m0, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m1, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m2, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    add             %1, %5\n    add             %2, %5\n    DIFF_PIXELS_1   m3, m7, [%1     +%3], [%2     +%3]\n    DIFF_PIXELS_1   m4, m7, [%1+%4  +%3], [%2+%4  +%3]\n    DIFF_PIXELS_1   m5, m7, [%1+%4*2+%3], [%2+%4*2+%3]\n    DIFF_PIXELS_1   m6, m7, [%1+%5  +%3], [%2+%5  +%3]\n%ifdef m8\n    DIFF_PIXELS_1   m7, m8, [%1+%4*4+%3], [%2+%4*4+%3]\n%else\n    mova          [%6], m0\n    DIFF_PIXELS_1   m7, m0, [%1+%4*4+%3], [%2+%4*4+%3]\n    mova            m0, [%6]\n%endif\n    sub             %1, %5\n    sub             %2, %5\n%endmacro\n\n%macro HADAMARD8 0\n    SUMSUB_BADC       w, 0, 1, 2, 3\n    SUMSUB_BADC       w, 4, 5, 6, 7\n    SUMSUB_BADC       w, 0, 2, 1, 3\n    SUMSUB_BADC       w, 4, 6, 5, 7\n    SUMSUB_BADC       w, 0, 4, 1, 5\n    SUMSUB_BADC       w, 2, 6, 3, 7\n%endmacro\n\n%macro ABS1_SUM 3\n    ABS1            %1, %2\n    paddusw         %3, %1\n%endmacro\n\n%macro ABS2_SUM 6\n    ABS2            %1, %2, %3, %4\n    paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:3", "text": "paddusw         %5, %1\n    paddusw         %6, %2\n%endmacro\n\n%macro ABS_SUM_8x8_64 1\n    ABS2            m0, m1, m8, m9\n    ABS2_SUM        m2, m3, m8, m9, m0, m1\n    ABS2_SUM        m4, m5, m8, m9, m0, m1\n    ABS2_SUM        m6, m7, m8, m9, m0, m1\n    paddusw         m0, m1\n%endmacro\n\n%macro ABS_SUM_8x8_32 1\n    mova          [%1], m7\n    ABS1            m0, m7\n    ABS1            m1, m7\n    ABS1_SUM        m2, m7, m0\n    ABS1_SUM        m3, m7, m1\n    ABS1_SUM        m4, m7, m0\n    ABS1_SUM        m5, m7, m1\n    ABS1_SUM        m6, m7, m0\n    mova            m2, [%1]\n    ABS1_SUM        m2, m7, m1\n    paddusw         m0, m1\n%endmacro\n\n; FIXME: HSUM saturates at 64k, while an 8x8 hadamard or dct block can get up to\n; about 100k on extreme inputs. But that's very unlikely to occur in natural video,\n; and it's even more unlikely to not have any alternative mvs/modes with lower cost.\n%macro HSUM 3\n%if cpuflag(sse2)\n    movhlps         %2, %1\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0xE\n    paddusw         %1, %2\n    pshuflw         %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmxext)\n    pshufw          %2, %1, 0xE\n    paddusw         %1, %2\n    pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5\n    mova [%1+mmsize*0], %2\n    mova [%1+mmsize*1], %3\n    mova [%1+mmsize*2], %4\n    mova [%1+mmsize*3], %5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:4", "text": "paddusw         %1, %2\n    pshufw          %2, %1, 0x1\n    paddusw         %1, %2\n    movd            %3, %1\n%elif cpuflag(mmx)\n    mova            %2, %1\n    psrlq           %1, 32\n    paddusw         %1, %2\n    mova            %2, %1\n    psrlq           %1, 16\n    paddusw         %1, %2\n    movd            %3, %1\n%endif\n%endmacro\n\n%macro STORE4 5\n    mova [%1+mmsize*0], %2\n    mova [%1+mmsize*1], %3\n    mova [%1+mmsize*2], %4\n    mova [%1+mmsize*3], %5\n%endmacro\n\n%macro LOAD4 5\n    mova            %2, [%1+mmsize*0]\n    mova            %3, [%1+mmsize*1]\n    mova            %4, [%1+mmsize*2]\n    mova            %5, [%1+mmsize*3]\n%endmacro\n\n%macro hadamard8_16_wrapper 2\ncglobal hadamard8_diff, 4, 4, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n    call hadamard8x8_diff %+ SUFFIX\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n\ncglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "cglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n%endmacro\n\n%macro HADAMARD8_DIFF 0-1\n%if cpuflag(sse2)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MPVEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling func\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n\n    ; first 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4              rsp+gprsize, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n    STORE4         rsp+gprsize+0x40, m4, m5, m6, m7\n\n    ; second 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n%if %1 == mmsize\n    shr       hd, 1\n%endif\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "; int ff_sse*_*(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n%if %1 == mmsize\n    shr       hd, 1\n%endif\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m5, m1\n    mova      m6, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m5\n    psubusb   m4, m6\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:9", "text": "punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq\n%endif\n    dec       hd\n    jnz .next2lines\n\n    HADDD     m7, m1\n    movd     eax, m7         ; return value\n    RET\n%endmacro\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 8\n\nINIT_MMX mmx\nSUM_SQUARED_ERRORS 16\n\nINIT_XMM sse2\nSUM_SQUARED_ERRORS 16\n\n;-----------------------------------------------\n;int ff_sum_abs_dctelem(const int16_t *block)\n;-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:10", "text": ";-----------------------------------------------\n; %1 = number of xmm registers used\n; %2 = number of inline loops\n\n%macro SUM_ABS_DCTELEM 2\ncglobal sum_abs_dctelem, 1, 1, %1, block\n    pxor    m0, m0\n    pxor    m1, m1\n%assign %%i 0\n%rep %2\n    mova      m2, [blockq+mmsize*(0+%%i)]\n    mova      m3, [blockq+mmsize*(1+%%i)]\n    mova      m4, [blockq+mmsize*(2+%%i)]\n    mova      m5, [blockq+mmsize*(3+%%i)]\n    ABS1_SUM  m2, m6, m0\n    ABS1_SUM  m3, m6, m1\n    ABS1_SUM  m4, m6, m0\n    ABS1_SUM  m5, m6, m1\n%assign %%i %%i+4\n%endrep\n    paddusw m0, m1\n    HSUM    m0, m1, eax\n    and     eax, 0xFFFF\n    RET\n%endmacro\n\nINIT_XMM sse2\nSUM_ABS_DCTELEM 7, 2\nINIT_XMM ssse3\nSUM_ABS_DCTELEM 6, 2\n\n;------------------------------------------------------------------------------\n; int ff_hf_noise*_mmx(const uint8_t *pix1, ptrdiff_t lsize, int h)\n;------------------------------------------------------------------------------\n; %1 = 8/16. %2-5=m#\n%macro HF_NOISE_PART1 5\n    mova      m%2, [pix1q]\n%if %1 == 8\n    mova      m%3, m%2\n    psllq     m%2, 8\n    psrlq     m%3, 8\n    psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:11", "text": "psrlq     m%3, 8\n    psrlq     m%2, 8\n%else\n    mova      m%3, [pix1q+1]\n%endif\n    mova      m%4, m%2\n    mova      m%5, m%3\n    punpcklbw m%2, m7\n    punpcklbw m%3, m7\n    punpckhbw m%4, m7\n    punpckhbw m%5, m7\n    psubw     m%2, m%3\n    psubw     m%4, m%5\n%endmacro\n\n; %1-2 = m#\n%macro HF_NOISE_PART2 4\n    psubw     m%1, m%3\n    psubw     m%2, m%4\n    pxor       m3, m3\n    pxor       m1, m1\n    pcmpgtw    m3, m%1\n    pcmpgtw    m1, m%2\n    pxor      m%1, m3\n    pxor      m%2, m1\n    psubw     m%1, m3\n    psubw     m%2, m1\n    paddw     m%2, m%1\n    paddw      m6, m%2\n%endmacro\n\n; %1 = 8/16\n%macro HF_NOISE 1\ncglobal hf_noise%1, 3,3,0, pix1, lsize, h\n    sub        hd, 2\n    pxor       m7, m7\n    pxor       m6, m6\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro\n\nINIT_MMX mmx\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD 1\ncglobal sad%1, 5, 5, 3, v, pix1, pix2, stride, h\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m0\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m0\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nSAD 16\nINIT_XMM sse2\nSAD 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "SAD 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1\n    paddw     m0, m2\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1\n    paddw     m0, m2\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nSAD_X2 16\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m4, [pix2q+8]\n    movu      m5, [pix2q+strideq+8]\n    movu      m6, [pix2q+2*strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": ";int ff_sad_y2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m4, [pix2q+8]\n    movu      m5, [pix2q+strideq+8]\n    movu      m6, [pix2q+2*strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nSAD_Y2 16\nINIT_XMM sse2\nSAD_Y2 16\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:18", "text": "movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    movu      m7, [pix2q+2*strideq+8]\n    pavgb     m5, [pix2q+1+8]\n    pavgb     m6, [pix2q+strideq+1+8]\n    pavgb     m7, [pix2q+2*strideq+1+8]\n    psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m6, [pix2q+8]\n    movu      m7, [pix2q+strideq+8]\n    pavgb     m6, [pix2q+8+1]\n    pavgb     m7, [pix2q+strideq+8+1]\n    psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nSAD_APPROX_XY2 16\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_INTRA 1\ncglobal vsad_intra%1, 5, 5, 3, v, pix1, pix2, lsize, h\n    mova      m0, [pix1q]\n%if %1 == mmsize\n    mova      m2, [pix1q+lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nSAD_APPROX_XY2 16\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_INTRA 1\ncglobal vsad_intra%1, 5, 5, 3, v, pix1, pix2, lsize, h\n    mova      m0, [pix1q]\n%if %1 == mmsize\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n%else\n    mova      m2, [pix1q+lsizeq]\n    mova      m3, [pix1q+8]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m0, m2\n    psadbw    m3, m4\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n%if %1 == mmsize\n    mova      m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3\n    paddw     m0, m2\n    paddw     m0, m4\n    mova      m2, [pix1q+lsizeq]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m1, m2\n    psadbw    m3, m4\n    paddw     m0, m1\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3\n    paddw     m0, m2\n    paddw     m0, m4\n    mova      m2, [pix1q+lsizeq]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m1, m2\n    psadbw    m3, m4\n    paddw     m0, m1\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA 8\nVSAD_INTRA 16\nINIT_XMM sse2\nVSAD_INTRA 16\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MPVEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_APPROX 1\ncglobal vsad%1_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n    mova   m1, [pb_80]\n    mova   m0, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n    mova   m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m0, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m0, m1\n    pxor   m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:22", "text": "%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n    mova   m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m0, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m0, m1\n    pxor   m3, m1\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m0, m4\n    psadbw m3, m5\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n\n.loop:\n    lea pix1q, [pix1q + 2*lsizeq]\n    lea pix2q, [pix2q + 2*lsizeq]\n    mova   m2, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n%if mmsize == 16\n    movu   m3, [pix2q]\n    psubb  m2, m3\n%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mova   m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m2, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m2, m1\n    pxor   m3, m1\n    psadbw m4, m2\n    psadbw m5, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:23", "text": "%else\n    psubb  m2, [pix2q]\n%endif\n    pxor   m2, m1\n    psadbw m4, m2\n    paddw  m0, m4\n    mova   m4, [pix1q+lsizeq]\n    movu   m3, [pix2q+lsizeq]\n    psubb  m4, m3\n    pxor   m4, m1\n    psadbw m2, m4\n    paddw  m0, m2\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m2, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m2, m1\n    pxor   m3, m1\n    psadbw m4, m2\n    psadbw m5, m3\n    paddw  m0, m4\n    paddw  m0, m5\n    mova   m4, [pix1q+lsizeq]\n    mova   m5, [pix1q+lsizeq+8]\n    psubb  m4, [pix2q+lsizeq]\n    psubb  m5, [pix2q+lsizeq+8]\n    pxor   m4, m1\n    pxor   m5, m1\n    psadbw m2, m4\n    psadbw m3, m5\n    paddw  m0, m2\n    paddw  m0, m3\n%endif\n    sub    hd, 2\n    jg  .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd  eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_APPROX 8\nVSAD_APPROX 16\nINIT_XMM sse2\nVSAD_APPROX 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "a064d34a32a860d237d31f014002c6134a286656", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a064d34a32a860d237d31f014002c6134a286656/libavcodec/x86/me_cmp.asm", "line_start": 881, "line_end": 929}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:5", "text": "cglobal hadamard8_diff16, 5, 6, %1\n%ifndef m8\n    %assign pad %2*mmsize-(4+stack_offset&(mmsize-1))\n    SUB            rsp, pad\n%endif\n\n    call hadamard8x8_diff %+ SUFFIX\n    mov            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    cmp            r4d, 16\n    jne .done\n\n    lea             r1, [r1+r3*8-8]\n    lea             r2, [r2+r3*8-8]\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n    add             r1, 8\n    add             r2, 8\n    call hadamard8x8_diff %+ SUFFIX\n    add            r5d, eax\n\n.done:\n    mov            eax, r5d\n%ifndef m8\n    ADD            rsp, pad\n%endif\n    RET\n%endmacro\n\n%macro HADAMARD8_DIFF 0-1\n%if cpuflag(sse2)\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MpegEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:6", "text": "DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize\n    HADAMARD8\n%if ARCH_X86_64\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7,  8\n%else\n    TRANSPOSE8x8W                 0,  1,  2,  3,  4,  5,  6,  7, [rsp+gprsize], [rsp+mmsize+gprsize]\n%endif\n    HADAMARD8\n    ABS_SUM_8x8         rsp+gprsize\n    HSUM                        m0, m1, eax\n    and                         eax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper %1, 3\n%elif cpuflag(mmx)\nALIGN 16\n; int ff_hadamard8_diff_ ## cpu(MpegEncContext *s, const uint8_t *src1,\n;                               const uint8_t *src2, ptrdiff_t stride, int h)\n; r0 = void *s = unused, int h = unused (always 8)\n; note how r1, r2 and r3 are not clobbered in this function, so 16x16\n; can simply call this 2x2x (and that's why we access rsp+gprsize\n; everywhere, which is rsp of calling func\nhadamard8x8_diff %+ SUFFIX:\n    lea                          r0, [r3*3]\n\n    ; first 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  0, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4              rsp+gprsize, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n    STORE4         rsp+gprsize+0x40, m4, m5, m6, m7\n\n    ; second 4x8 pixels\n    DIFF_PIXELS_8                r1, r2,  4, r3, r0, rsp+gprsize+0x60\n    HADAMARD8\n    mova         [rsp+gprsize+0x60], m7\n    TRANSPOSE4x4W                 0,  1,  2,  3,  7\n    STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:7", "text": "STORE4         rsp+gprsize+0x20, m0, m1, m2, m3\n    mova                         m7, [rsp+gprsize+0x60]\n    TRANSPOSE4x4W                 4,  5,  6,  7,  0\n\n    LOAD4          rsp+gprsize+0x40, m0, m1, m2, m3\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize+0x60\n    mova         [rsp+gprsize+0x60], m0\n\n    LOAD4          rsp+gprsize     , m0, m1, m2, m3\n    LOAD4          rsp+gprsize+0x20, m4, m5, m6, m7\n    HADAMARD8\n    ABS_SUM_8x8_32 rsp+gprsize\n    paddusw                      m0, [rsp+gprsize+0x60]\n\n    HSUM                         m0, m1, eax\n    and                         rax, 0xFFFF\n    ret\n\nhadamard8_16_wrapper 0, 14\n%endif\n%endmacro\n\n%if HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nHADAMARD8_DIFF\n%endif\n\nINIT_XMM sse2\n%if ARCH_X86_64\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\n%else\n%define ABS_SUM_8x8 ABS_SUM_8x8_32\n%endif\nHADAMARD8_DIFF 10\n\nINIT_XMM ssse3\n%define ABS_SUM_8x8 ABS_SUM_8x8_64\nHADAMARD8_DIFF 9\n\n; int ff_sse*_*(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n%if %1 == mmsize\n    shr       hd, 1\n%endif\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:8", "text": "; int ff_sse*_*(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;               ptrdiff_t line_size, int h)\n\n%macro SUM_SQUARED_ERRORS 1\ncglobal sse%1, 5,5,8, v, pix1, pix2, lsize, h\n%if %1 == mmsize\n    shr       hd, 1\n%endif\n    pxor      m0, m0         ; mm0 = 0\n    pxor      m7, m7         ; mm7 holds the sum\n\n.next2lines: ; FIXME why are these unaligned movs? pix1[] is aligned\n    movu      m1, [pix1q]    ; m1 = pix1[0][0-15], [0-7] for mmx\n    movu      m2, [pix2q]    ; m2 = pix2[0][0-15], [0-7] for mmx\n%if %1 == mmsize\n    movu      m3, [pix1q+lsizeq] ; m3 = pix1[1][0-15], [0-7] for mmx\n    movu      m4, [pix2q+lsizeq] ; m4 = pix2[1][0-15], [0-7] for mmx\n%else  ; %1 / 2 == mmsize; mmx only\n    mova      m3, [pix1q+8]  ; m3 = pix1[0][8-15]\n    mova      m4, [pix2q+8]  ; m4 = pix2[0][8-15]\n%endif\n\n    ; todo: mm1-mm2, mm3-mm4\n    ; algo: subtract mm1 from mm2 with saturation and vice versa\n    ;       OR the result to get the absolute difference\n    mova      m5, m1\n    mova      m6, m3\n    psubusb   m1, m2\n    psubusb   m3, m4\n    psubusb   m2, m5\n    psubusb   m4, m6\n\n    por       m2, m1\n    por       m4, m3\n\n    ; now convert to 16-bit vectors so we can square them\n    mova      m1, m2\n    mova      m3, m4\n\n    punpckhbw m2, m0\n    punpckhbw m4, m0\n    punpcklbw m1, m0         ; mm1 not spread over (mm1,mm2)\n    punpcklbw m3, m0         ; mm4 not spread over (mm3,mm4)\n\n    pmaddwd   m2, m2\n    pmaddwd   m4, m4\n    pmaddwd   m1, m1\n    pmaddwd   m3, m3\n\n    paddd     m1, m2\n    paddd     m3, m4\n    paddd     m7, m1\n    paddd     m7, m3\n\n%if %1 == mmsize\n    lea    pix1q, [pix1q + 2*lsizeq]\n    lea    pix2q, [pix2q + 2*lsizeq]\n%else\n    add    pix1q, lsizeq\n    add    pix2q, lsizeq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:12", "text": "HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n.loop:\n    HF_NOISE_PART1 %1, 0, 1, 2, 3\n    HF_NOISE_PART2     4, 5, 0, 2\n    add     pix1q, lsizeq\n    HF_NOISE_PART1 %1, 4, 1, 5, 3\n    HF_NOISE_PART2     0, 2, 4, 5\n    add     pix1q, lsizeq\n    sub        hd, 2\n        jne .loop\n\n    mova       m0, m6\n    punpcklwd  m0, m7\n    punpckhwd  m6, m7\n    paddd      m6, m0\n    mova       m0, m6\n    psrlq      m6, 32\n    paddd      m0, m6\n    movd      eax, m0   ; eax = result of hf_noise8;\n    RET                 ; return eax;\n%endmacro\n\nINIT_MMX mmx\nHF_NOISE 8\nHF_NOISE 16\n\n;---------------------------------------------------------------------------------------\n;int ff_sad_<opt>(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;---------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD 1\ncglobal sad%1, 5, 5, 3, v, pix1, pix2, stride, h\n    movu      m2, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m2, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m0\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:13", "text": "movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+strideq*2]\n    lea    pix2q, [pix2q+strideq*2]\n    movu      m0, [pix2q]\n    movu      m1, [pix2q+strideq]\n    psadbw    m0, [pix1q]\n    psadbw    m1, [pix1q+strideq]\n    paddw     m2, m0\n    paddw     m2, m1\n%if %1 != mmsize\n    movu      m0, [pix2q+8]\n    movu      m1, [pix2q+strideq+8]\n    psadbw    m0, [pix1q+8]\n    psadbw    m1, [pix1q+strideq+8]\n    paddw     m2, m0\n    paddw     m2, m1\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m0, m2\n    paddw     m2, m0\n%endif\n    movd     eax, m2\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD 8\nSAD 16\nINIT_XMM sse2\nSAD 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:14", "text": "SAD 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_x2_<opt>(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_X2 1\ncglobal sad%1_x2, 5, 5, 5, v, pix1, pix2, stride, h\n    movu      m0, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m0, m3\n    pavgb     m2, m4\n%else\n    pavgb     m0, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m0, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1\n    paddw     m0, m2\n%endif\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m1, [pix2q]\n    movu      m2, [pix2q+strideq]\n%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:15", "text": "%if mmsize == 16\n    movu      m3, [pix2q+1]\n    movu      m4, [pix2q+strideq+1]\n    pavgb     m1, m3\n    pavgb     m2, m4\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m2, [pix2q+strideq+1]\n%endif\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n%if %1 != mmsize\n    movu      m1, [pix2q+8]\n    movu      m2, [pix2q+strideq+8]\n    pavgb     m1, [pix2q+9]\n    pavgb     m2, [pix2q+strideq+9]\n    psadbw    m1, [pix1q+8]\n    psadbw    m2, [pix1q+strideq+8]\n    paddw     m0, m1\n    paddw     m0, m2\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_X2 8\nSAD_X2 16\nINIT_XMM sse2\nSAD_X2 16\n\n;------------------------------------------------------------------------------------------\n;int ff_sad_y2_<opt>(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m4, [pix2q+8]\n    movu      m5, [pix2q+strideq+8]\n    movu      m6, [pix2q+2*strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:16", "text": ";int ff_sad_y2_<opt>(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_Y2 1\ncglobal sad%1_y2, 5, 5, 4, v, pix1, pix2, stride, h\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m4, [pix2q+8]\n    movu      m5, [pix2q+strideq+8]\n    movu      m6, [pix2q+2*strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    add    pix2q, strideq\n    sub       hd, 2\n\nalign 16\n.loop:\n    lea    pix1q, [pix1q+2*strideq]\n    lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:17", "text": "paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]\n    movu      m6, [pix2q+strideq+8]\n    pavgb     m4, m5\n    pavgb     m5, m6\n    psadbw    m4, [pix1q+8]\n    psadbw    m5, [pix1q+strideq+8]\n    paddw     m0, m4\n    paddw     m0, m5\n    mova      m4, m6\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_Y2 8\nSAD_Y2 16\nINIT_XMM sse2\nSAD_Y2 16\n\n;-------------------------------------------------------------------------------------------\n;int ff_sad_approx_xy2_<opt>(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h);\n;-------------------------------------------------------------------------------------------\n;%1 = 8/16\n%macro SAD_APPROX_XY2 1\ncglobal sad%1_approx_xy2, 5, 5, 7, v, pix1, pix2, stride, h\n    mova      m4, [pb_1]\n    movu      m1, [pix2q]\n    movu      m0, [pix2q+strideq]\n    movu      m3, [pix2q+2*strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    movu      m2, [pix2q+2*strideq+1]\n    pavgb     m1, m5\n    pavgb     m0, m6\n    pavgb     m3, m2\n%else\n    pavgb     m1, [pix2q+1]\n    pavgb     m0, [pix2q+strideq+1]\n    pavgb     m3, [pix2q+2*strideq+1]\n%endif\n    psubusb   m0, m4\n    pavgb     m1, m0\n    pavgb     m0, m3\n    psadbw    m1, [pix1q]\n    psadbw    m0, [pix1q+strideq]\n    paddw     m0, m1\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m5, [pix2q+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:19", "text": "lea    pix2q, [pix2q+2*strideq]\n    movu      m2, [pix2q]\n    movu      m3, [pix2q+strideq]\n%if mmsize == 16\n    movu      m5, [pix2q+1]\n    movu      m6, [pix2q+strideq+1]\n    pavgb     m2, m5\n    pavgb     m3, m6\n%else\n    pavgb     m2, [pix2q+1]\n    pavgb     m3, [pix2q+strideq+1]\n%endif\n    psubusb   m2, m4\n    pavgb     m1, m2\n    pavgb     m2, m3\n    psadbw    m1, [pix1q]\n    psadbw    m2, [pix1q+strideq]\n    paddw     m0, m1\n    paddw     m0, m2\n    mova      m1, m3\n%if %1 != mmsize\n    movu      m6, [pix2q+8]\n    movu      m7, [pix2q+strideq+8]\n    pavgb     m6, [pix2q+8+1]\n    pavgb     m7, [pix2q+strideq+8+1]\n    psubusb   m6, m4\n    pavgb     m5, m6\n    pavgb     m6, m7\n    psadbw    m5, [pix1q+8]\n    psadbw    m6, [pix1q+strideq+8]\n    paddw     m0, m5\n    paddw     m0, m6\n    mova      m5, m7\n%endif\n    sub       hd, 2\n    jg .loop\n%if mmsize == 16\n    movhlps   m1, m0\n    paddw     m0, m1\n%endif\n    movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nSAD_APPROX_XY2 16\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_INTRA 1\ncglobal vsad_intra%1, 5, 5, 3, v, pix1, pix2, lsize, h\n    mova      m0, [pix1q]\n%if %1 == mmsize\n    mova      m2, [pix1q+lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:20", "text": "movd     eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nSAD_APPROX_XY2 8\nSAD_APPROX_XY2 16\nINIT_XMM sse2\nSAD_APPROX_XY2 16\n\n;--------------------------------------------------------------------\n;int ff_vsad_intra(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                  ptrdiff_t line_size, int h);\n;--------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_INTRA 1\ncglobal vsad_intra%1, 5, 5, 3, v, pix1, pix2, lsize, h\n    mova      m0, [pix1q]\n%if %1 == mmsize\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m0, m2\n%else\n    mova      m2, [pix1q+lsizeq]\n    mova      m3, [pix1q+8]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m0, m2\n    psadbw    m3, m4\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n\n.loop:\n    lea    pix1q, [pix1q + 2*lsizeq]\n%if %1 == mmsize\n    mova      m1, [pix1q]\n    psadbw    m2, m1\n    paddw     m0, m2\n    mova      m2, [pix1q+lsizeq]\n    psadbw    m1, m2\n    paddw     m0, m1\n%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3\n    paddw     m0, m2\n    paddw     m0, m4\n    mova      m2, [pix1q+lsizeq]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m1, m2\n    psadbw    m3, m4\n    paddw     m0, m1\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/me_cmp.asm:21", "text": "%else\n    mova      m1, [pix1q]\n    mova      m3, [pix1q+8]\n    psadbw    m2, m1\n    psadbw    m4, m3\n    paddw     m0, m2\n    paddw     m0, m4\n    mova      m2, [pix1q+lsizeq]\n    mova      m4, [pix1q+lsizeq+8]\n    psadbw    m1, m2\n    psadbw    m3, m4\n    paddw     m0, m1\n    paddw     m0, m3\n%endif\n    sub       hd, 2\n    jg     .loop\n\n%if mmsize == 16\n    pshufd m1, m0, 0xe\n    paddd  m0, m1\n%endif\n    movd eax, m0\n    RET\n%endmacro\n\nINIT_MMX mmxext\nVSAD_INTRA 8\nVSAD_INTRA 16\nINIT_XMM sse2\nVSAD_INTRA 16\n\n;---------------------------------------------------------------------\n;int ff_vsad_approx(MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2,\n;                   ptrdiff_t line_size, int h);\n;---------------------------------------------------------------------\n; %1 = 8/16\n%macro VSAD_APPROX 1\ncglobal vsad%1_approx, 5, 5, 5, v, pix1, pix2, lsize, h\n    mova   m1, [pb_80]\n    mova   m0, [pix1q]\n%if %1 == mmsize ; vsad8_mmxext, vsad16_sse2\n    mova   m4, [pix1q+lsizeq]\n%if mmsize == 16\n    movu   m3, [pix2q]\n    movu   m2, [pix2q+lsizeq]\n    psubb  m0, m3\n    psubb  m4, m2\n%else\n    psubb  m0, [pix2q]\n    psubb  m4, [pix2q+lsizeq]\n%endif\n    pxor   m0, m1\n    pxor   m4, m1\n    psadbw m0, m4\n%else ; vsad16_mmxext\n    mova   m3, [pix1q+8]\n    psubb  m0, [pix2q]\n    psubb  m3, [pix2q+8]\n    pxor   m0, m1\n    pxor   m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/me_cmp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/me_cmp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mlpdsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized MLP DSP functions\n;* Copyright (c) 2014 James Almer <jamrial@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%if ARCH_X86_64\n\n%macro SHLX 2\n%if cpuflag(bmi2)\n   shlx %1, %1, %2q\n%else\n   shl  %1, %2b\n%endif\n%endmacro\n\n%macro REMATRIX 0\n    movdqa        m0, [samplesq]\n    movdqa        m1, [coeffsq ]\n    pshufd        m2, m0, q2301\n    pshufd        m3, m1, q2301\n    pmuldq        m0, m1\n    pmuldq        m3, m2\n    paddq         m0, m3\n%if notcpuflag(avx2)\n    movdqa        m1, [samplesq + 16]\n    movdqa        m2, [coeffsq  + 16]\n    pshufd        m3, m1, q2301\n    pshufd        m4, m2, q2301\n    pmuldq        m1, m2\n    pmuldq        m4, m3\n    paddq         m0, m1\n    paddq         m0, m4\n%else\n    vextracti128 xm1, m0, 1\n    paddq        xm0, xm1\n%endif\n%endmacro\n\n%macro LOOP_END 0\n    pshufd       xm1, xm0, q0032", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mlpdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mlpdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mlpdsp.asm:2", "text": "pmuldq        m0, m1\n    pmuldq        m3, m2\n    paddq         m0, m3\n%if notcpuflag(avx2)\n    movdqa        m1, [samplesq + 16]\n    movdqa        m2, [coeffsq  + 16]\n    pshufd        m3, m1, q2301\n    pshufd        m4, m2, q2301\n    pmuldq        m1, m2\n    pmuldq        m4, m3\n    paddq         m0, m1\n    paddq         m0, m4\n%else\n    vextracti128 xm1, m0, 1\n    paddq        xm0, xm1\n%endif\n%endmacro\n\n%macro LOOP_END 0\n    pshufd       xm1, xm0, q0032\n    paddq        xm0, xm1\n    movq      accumq, xm0\n    movzx     blsbsd, byte [blsbs_ptrq]             ; load *bypassed_lsbs\n    sar       accumq, 14                            ; accum >>= 14\n    and       accumd, maskd                         ; accum &= mask\n    add       accumd, blsbsd                        ; accum += *bypassed_lsbs\n    mov   [samplesq + dest_chq], accumd             ; samples[dest_ch] = accum\n    add   blsbs_ptrq, 8                             ; bypassed_lsbs += MAX_CHANNELS;\n    add     samplesq, 32                            ; samples += MAX_CHANNELS;\n    cmp   blsbs_ptrq, cntq\n%endmacro\n\n%macro LOOP_SHIFT_END 0\n    pshufd       xm1, xm0, q0032\n    paddq        xm0, xm1\n    movq      accumq, xm0\n    and       indexd, auspd                         ; index &= access_unit_size_pow2;\n    movsx     noiseq, byte [noise_bufferq + indexq] ; load noise_buffer[index]\n    add       indexd, index2d                       ; index += index2\n    SHLX      noiseq, mns                           ; noise_buffer[index] <<= matrix_noise_shift\n    add       accumq, noiseq                        ; accum += noise_buffer[index]\n    movzx     noised, byte [blsbs_ptrq]             ; load *bypassed_lsbs (reuse tmp noise register)\n    sar       accumq, 14                            ; accum >>= 14\n    and       accumd, maskd                         ; accum &= mask\n    add       accumd, noised                        ; accum += *bypassed_lsbs\n    mov   [samplesq + dest_chq], accumd             ; samples[dest_ch] = accum\n    add   blsbs_ptrq, 8                             ; bypassed_lsbs += MAX_CHANNELS;\n    add     samplesq, 32                            ; samples += MAX_CHANNELS;\n    cmp   blsbs_ptrq, cntq\n%endmacro\n\n;void ff_mlp_rematrix_channel(int32_t *samples, const int32_t *coeffs,\n;                             const uint8_t *bypassed_lsbs, const int8_t *noise_buffer,\n;                             int index, unsigned int dest_ch, uint16_t blockpos,\n;                             unsigned int maxchan, int matrix_noise_shift,\n;                             int access_unit_size_pow2, int32_t mask)\n%macro MLP_REMATRIX_CHANNEL 0\ncglobal mlp_rematrix_channel, 0, 13, 5, samples, coeffs, blsbs_ptr, blsbs, \\\n                                        index, dest_ch, blockpos, maxchan, mns, \\\n                                        accum, mask, cnt", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mlpdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mlpdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mlpdsp.asm:3", "text": "add       accumq, noiseq                        ; accum += noise_buffer[index]\n    movzx     noised, byte [blsbs_ptrq]             ; load *bypassed_lsbs (reuse tmp noise register)\n    sar       accumq, 14                            ; accum >>= 14\n    and       accumd, maskd                         ; accum &= mask\n    add       accumd, noised                        ; accum += *bypassed_lsbs\n    mov   [samplesq + dest_chq], accumd             ; samples[dest_ch] = accum\n    add   blsbs_ptrq, 8                             ; bypassed_lsbs += MAX_CHANNELS;\n    add     samplesq, 32                            ; samples += MAX_CHANNELS;\n    cmp   blsbs_ptrq, cntq\n%endmacro\n\n;void ff_mlp_rematrix_channel(int32_t *samples, const int32_t *coeffs,\n;                             const uint8_t *bypassed_lsbs, const int8_t *noise_buffer,\n;                             int index, unsigned int dest_ch, uint16_t blockpos,\n;                             unsigned int maxchan, int matrix_noise_shift,\n;                             int access_unit_size_pow2, int32_t mask)\n%macro MLP_REMATRIX_CHANNEL 0\ncglobal mlp_rematrix_channel, 0, 13, 5, samples, coeffs, blsbs_ptr, blsbs, \\\n                                        index, dest_ch, blockpos, maxchan, mns, \\\n                                        accum, mask, cnt\n    mov         mnsd, mnsm                          ; load matrix_noise_shift\n    movzx  blockposq, word blockposm                ; load and zero extend blockpos (16bit)\n    mov     maxchand, maxchanm                      ; load maxchan\n    mov        maskd, maskm                         ; load mask\n%if WIN64\n    mov     dest_chd, dest_chm                      ; load dest_chd (not needed on UNIX64)\n%endif\n    shl     dest_chd, 2\n    lea         cntq, [blsbs_ptrq + blockposq*8]\n    test        mnsd, mnsd                          ; is matrix_noise_shift != 0?\n    jne .shift                                      ; jump if true\n    cmp     maxchand, 4                             ; is maxchan < 4?\n    jl .loop4                                       ; jump if true\n\nalign 16\n.loop8:\n    ; Process 5 or more channels\n    REMATRIX\n    LOOP_END\n    jne .loop8\n    RET\n\nalign 16\n.loop4:\n    ; Process up to 4 channels\n    movdqa       xm0, [samplesq]\n    movdqa       xm1, [coeffsq ]\n    pshufd       xm2, xm0, q2301\n    pshufd       xm3, xm1, q2301\n    pmuldq       xm0, xm1\n    pmuldq       xm3, xm2\n    paddq        xm0, xm3\n    LOOP_END\n    jne .loop4\n    RET\n\n.shift:\n%if WIN64\n    mov       indexd, indexm         ; load index (not needed on UNIX64)\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mlpdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mlpdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mlpdsp.asm:4", "text": "RET\n\nalign 16\n.loop4:\n    ; Process up to 4 channels\n    movdqa       xm0, [samplesq]\n    movdqa       xm1, [coeffsq ]\n    pshufd       xm2, xm0, q2301\n    pshufd       xm3, xm1, q2301\n    pmuldq       xm0, xm1\n    pmuldq       xm3, xm2\n    paddq        xm0, xm3\n    LOOP_END\n    jne .loop4\n    RET\n\n.shift:\n%if WIN64\n    mov       indexd, indexm         ; load index (not needed on UNIX64)\n%endif\n    mov          r9d, r9m            ; load access_unit_size_pow2\n%if cpuflag(bmi2)\n    ; bmi2 has shift functions that accept any gpr, not just cl, so keep things in place.\n    DEFINE_ARGS samples, coeffs, blsbs_ptr, noise_buffer, \\\n                index, dest_ch, accum, index2, mns, \\\n                ausp, mask, cnt, noise\n    add         mnsd, 7              ; matrix_noise_shift += 7\n%else ; sse4\n    mov           r6, rcx            ; move rcx elsewhere so we can use cl for matrix_noise_shift\n%if WIN64\n    ; r0 = rcx\n    DEFINE_ARGS mns, coeffs, blsbs_ptr, noise_buffer, index, dest_ch, samples, \\\n                index2, accum, ausp, mask, cnt, noise\n%else ; UNIX64\n    ; r3 = rcx\n    DEFINE_ARGS samples, coeffs, blsbs_ptr, mns, index, dest_ch, noise_buffer, \\\n                index2, accum, ausp, mask, cnt, noise\n%endif\n    lea         mnsd, [r8 + 7]       ; rcx = matrix_noise_shift + 7\n%endif ; cpuflag\n    sub        auspd, 1              ; access_unit_size_pow2 -= 1\n    cmp          r7d, 4              ; is maxchan < 4?\n    lea      index2q, [indexq*2 + 1] ; index2 = 2 * index + 1;\n    jl .loop4_shift                  ; jump if maxchan < 4\n\nalign 16\n.loop8_shift:\n    ; Process 5 or more channels\n    REMATRIX\n    LOOP_SHIFT_END\n    jne .loop8_shift\n    RET\n\nalign 16\n.loop4_shift:\n    ; Process up to 4 channels\n    movdqa       xm0, [samplesq]\n    movdqa       xm1, [coeffsq ]\n    pshufd       xm2, xm0, q2301\n    pshufd       xm3, xm1, q2301", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mlpdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mlpdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mlpdsp.asm:5", "text": "sub        auspd, 1              ; access_unit_size_pow2 -= 1\n    cmp          r7d, 4              ; is maxchan < 4?\n    lea      index2q, [indexq*2 + 1] ; index2 = 2 * index + 1;\n    jl .loop4_shift                  ; jump if maxchan < 4\n\nalign 16\n.loop8_shift:\n    ; Process 5 or more channels\n    REMATRIX\n    LOOP_SHIFT_END\n    jne .loop8_shift\n    RET\n\nalign 16\n.loop4_shift:\n    ; Process up to 4 channels\n    movdqa       xm0, [samplesq]\n    movdqa       xm1, [coeffsq ]\n    pshufd       xm2, xm0, q2301\n    pshufd       xm3, xm1, q2301\n    pmuldq       xm0, xm1\n    pmuldq       xm3, xm2\n    paddq        xm0, xm3\n    LOOP_SHIFT_END\n    jne .loop4_shift\n    RET\n%endmacro\n\nINIT_XMM sse4\nMLP_REMATRIX_CHANNEL\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2, bmi2\nMLP_REMATRIX_CHANNEL\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mlpdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mlpdsp.asm", "line_start": 161, "line_end": 196}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized MPEG encoding functions\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; void ff_add_8x8basis_ssse3(int16_t rem[64], const int16_t basis[64], int scale)\nINIT_XMM ssse3\ncglobal add_8x8basis, 3, 3+ARCH_X86_64, 4, rem, basis, scale\n    movd            m0, scaled\n    add         scaled, 1024\n    add         basisq, 128\n    add           remq, 128\n%if ARCH_X86_64\n%define OFF r3q\n    mov            r3q, -128\n    cmp         scaled, 2047\n%else\n%define OFF r2q\n    cmp         scaled, 2047\n    mov            r2q, -128\n%endif\n    ja     .huge_scale\n\n    punpcklwd       m0, m0\n    pshufd          m0, m0, 0x0\n    psllw           m0, 5\n.loop1:\n    mova            m1, [basisq+OFF]\n    mova            m2, [basisq+OFF+16]\n    pmulhrsw        m1, m0\n    pmulhrsw        m2, m0\n    paddw           m1, [remq+OFF]\n    paddw           m2, [remq+OFF+16]\n    mova    [remq+OFF], m1\n    mova [remq+OFF+16], m2\n    add            OFF, 32\n    js          .loop1\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:2", "text": "cmp         scaled, 2047\n    mov            r2q, -128\n%endif\n    ja     .huge_scale\n\n    punpcklwd       m0, m0\n    pshufd          m0, m0, 0x0\n    psllw           m0, 5\n.loop1:\n    mova            m1, [basisq+OFF]\n    mova            m2, [basisq+OFF+16]\n    pmulhrsw        m1, m0\n    pmulhrsw        m2, m0\n    paddw           m1, [remq+OFF]\n    paddw           m2, [remq+OFF+16]\n    mova    [remq+OFF], m1\n    mova [remq+OFF+16], m2\n    add            OFF, 32\n    js          .loop1\n    RET\n\n.huge_scale:\n    pslld           m0, 6\n    punpcklwd       m0, m0\n    pshufd          m1, m0, 0x55\n    psrlw           m0, 1\n    pshufd          m0, m0, 0x0\n.loop2:\n    mova            m2, [basisq+OFF]\n    pmulhrsw        m3, m2, m0\n    pmullw          m2, m1\n    paddw           m2, m3\n    paddw           m2, [remq+OFF]\n    mova    [remq+OFF], m2\n    add            OFF, 16\n    js          .loop2\n    RET\n\n\nINIT_XMM sse2\ncglobal mpv_denoise_dct, 3, 4, 7, block, sum, offset\n    pxor            m6, m6\n    lea             r3, [sumq+256]\n.loop:\n    mova            m2, [blockq]\n    mova            m3, [blockq+16]\n    mova            m0, m6\n    mova            m1, m6\n    pcmpgtw         m0, m2\n    pcmpgtw         m1, m3\n    pxor            m2, m0\n    pxor            m3, m1\n    psubw           m2, m0\n    psubw           m3, m1\n    psubusw         m4, m2, [offsetq]\n    psubusw         m5, m3, [offsetq+16]\n    pxor            m4, m0\n    pxor            m5, m1\n    add        offsetq, 32\n    psubw           m4, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:3", "text": "cglobal mpv_denoise_dct, 3, 4, 7, block, sum, offset\n    pxor            m6, m6\n    lea             r3, [sumq+256]\n.loop:\n    mova            m2, [blockq]\n    mova            m3, [blockq+16]\n    mova            m0, m6\n    mova            m1, m6\n    pcmpgtw         m0, m2\n    pcmpgtw         m1, m3\n    pxor            m2, m0\n    pxor            m3, m1\n    psubw           m2, m0\n    psubw           m3, m1\n    psubusw         m4, m2, [offsetq]\n    psubusw         m5, m3, [offsetq+16]\n    pxor            m4, m0\n    pxor            m5, m1\n    add        offsetq, 32\n    psubw           m4, m0\n    psubw           m5, m1\n    mova      [blockq], m4\n    mova   [blockq+16], m5\n    mova            m0, m2\n    mova            m1, m3\n    add         blockq, 32\n    punpcklwd       m0, m6\n    punpckhwd       m2, m6\n    punpcklwd       m1, m6\n    punpckhwd       m3, m6\n    paddd           m0, [sumq]\n    paddd           m2, [sumq+16]\n    paddd           m1, [sumq+32]\n    paddd           m3, [sumq+48]\n    mova        [sumq], m0\n    mova     [sumq+16], m2\n    mova     [sumq+32], m1\n    mova     [sumq+48], m3\n    add           sumq, 64\n    cmp           sumq, r3\n    jb           .loop\n    RET\n\n\n; int ff_pix_sum16(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of loops\n; %2 = number of GPRs used\n%macro PIX_SUM16 3\ncglobal pix_sum16, 2, %2, 6\n    mov          r2, %1\n    lea          r3, [r1*3]\n%if notcpuflag(xop)\n    pxor         m5, m5\n%endif\n    pxor         m4, m4\n.loop:\n%if cpuflag(xop)\n    vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:4", "text": "jb           .loop\n    RET\n\n\n; int ff_pix_sum16(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of loops\n; %2 = number of GPRs used\n%macro PIX_SUM16 3\ncglobal pix_sum16, 2, %2, 6\n    mov          r2, %1\n    lea          r3, [r1*3]\n%if notcpuflag(xop)\n    pxor         m5, m5\n%endif\n    pxor         m4, m4\n.loop:\n%if cpuflag(xop)\n    vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0\n    paddw        m3, m2\n    paddw        m3, m1\n    paddw        m4, m3\n    lea          r0, [r0+r1*%3]\n    dec r2\n    jne .loop\n    pshufd       m0, m4, q0032\n    paddd        m4, m0\n    movd        eax, m4\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_SUM16  4, 4, 4\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nPIX_SUM16  4, 4, 4\n%endif\n\n; int ff_pix_norm1(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of xmm registers used\n; %2 = number of loops\n%macro PIX_NORM1 2\ncglobal pix_norm1, 2, 3, %1\n    mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:5", "text": "movd        eax, m4\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_SUM16  4, 4, 4\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nPIX_SUM16  4, 4, 4\n%endif\n\n; int ff_pix_norm1(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of xmm registers used\n; %2 = number of loops\n%macro PIX_NORM1 2\ncglobal pix_norm1, 2, 3, %1\n    mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3\n    paddd        m5, m2\n    paddd        m5, m4\n    lea          r0, [r0+r1*2]\n    dec r2\n    jne .loop\n    HADDD        m5, m1\n    movd        eax, m5\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_NORM1 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 161, "line_end": 204}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized MPEG encoding functions\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal mpv_denoise_dct, 3, 4, 7, block, sum, offset\n    pxor            m6, m6\n    lea             r3, [sumq+256]\n.loop:\n    mova            m2, [blockq]\n    mova            m3, [blockq+16]\n    mova            m0, m6\n    mova            m1, m6\n    pcmpgtw         m0, m2\n    pcmpgtw         m1, m3\n    pxor            m2, m0\n    pxor            m3, m1\n    psubw           m2, m0\n    psubw           m3, m1\n    psubusw         m4, m2, [offsetq]\n    psubusw         m5, m3, [offsetq+16]\n    pxor            m4, m0\n    pxor            m5, m1\n    add        offsetq, 32\n    psubw           m4, m0\n    psubw           m5, m1\n    mova      [blockq], m4\n    mova   [blockq+16], m5\n    mova            m0, m2\n    mova            m1, m3\n    add         blockq, 32\n    punpcklwd       m0, m6\n    punpckhwd       m2, m6\n    punpcklwd       m1, m6\n    punpckhwd       m3, m6\n    paddd           m0, [sumq]\n    paddd           m2, [sumq+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d633fa0433de093c9a1257aed519b806b1054f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d633fa0433de093c9a1257aed519b806b1054f21/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:2", "text": "psubw           m2, m0\n    psubw           m3, m1\n    psubusw         m4, m2, [offsetq]\n    psubusw         m5, m3, [offsetq+16]\n    pxor            m4, m0\n    pxor            m5, m1\n    add        offsetq, 32\n    psubw           m4, m0\n    psubw           m5, m1\n    mova      [blockq], m4\n    mova   [blockq+16], m5\n    mova            m0, m2\n    mova            m1, m3\n    add         blockq, 32\n    punpcklwd       m0, m6\n    punpckhwd       m2, m6\n    punpcklwd       m1, m6\n    punpckhwd       m3, m6\n    paddd           m0, [sumq]\n    paddd           m2, [sumq+16]\n    paddd           m1, [sumq+32]\n    paddd           m3, [sumq+48]\n    mova        [sumq], m0\n    mova     [sumq+16], m2\n    mova     [sumq+32], m1\n    mova     [sumq+48], m3\n    add           sumq, 64\n    cmp           sumq, r3\n    jb           .loop\n    RET\n\n\n; int ff_pix_sum16(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of loops\n; %2 = number of GPRs used\n%macro PIX_SUM16 3\ncglobal pix_sum16, 2, %2, 6\n    mov          r2, %1\n    lea          r3, [r1*3]\n%if notcpuflag(xop)\n    pxor         m5, m5\n%endif\n    pxor         m4, m4\n.loop:\n%if cpuflag(xop)\n    vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d633fa0433de093c9a1257aed519b806b1054f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d633fa0433de093c9a1257aed519b806b1054f21/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:3", "text": "pxor         m5, m5\n%endif\n    pxor         m4, m4\n.loop:\n%if cpuflag(xop)\n    vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0\n    paddw        m3, m2\n    paddw        m3, m1\n    paddw        m4, m3\n    lea          r0, [r0+r1*%3]\n    dec r2\n    jne .loop\n    pshufd       m0, m4, q0032\n    paddd        m4, m0\n    movd        eax, m4\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_SUM16  4, 4, 4\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nPIX_SUM16  4, 4, 4\n%endif\n\n; int ff_pix_norm1(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of xmm registers used\n; %2 = number of loops\n%macro PIX_NORM1 2\ncglobal pix_norm1, 2, 3, %1\n    mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d633fa0433de093c9a1257aed519b806b1054f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d633fa0433de093c9a1257aed519b806b1054f21/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:4", "text": "; %1 = number of xmm registers used\n; %2 = number of loops\n%macro PIX_NORM1 2\ncglobal pix_norm1, 2, 3, %1\n    mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3\n    paddd        m5, m2\n    paddd        m5, m4\n    lea          r0, [r0+r1*2]\n    dec r2\n    jne .loop\n    HADDD        m5, m1\n    movd        eax, m5\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_NORM1 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d633fa0433de093c9a1257aed519b806b1054f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d633fa0433de093c9a1257aed519b806b1054f21/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 121, "line_end": 152}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized MPEG encoding functions\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n; int ff_pix_sum16(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of loops\n; %2 = number of GPRs used\n%macro PIX_SUM16 3\ncglobal pix_sum16, 2, %2, 6\n    mov          r2, %1\n    lea          r3, [r1*3]\n%if notcpuflag(xop)\n    pxor         m5, m5\n%endif\n    pxor         m4, m4\n.loop:\n%if cpuflag(xop)\n    vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0\n    paddw        m3, m2\n    paddw        m3, m1\n    paddw        m4, m3\n    lea          r0, [r0+r1*%3]\n    dec r2\n    jne .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "8d439b24839d486d1fcc858a2a5eb7ecd700e3a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d439b24839d486d1fcc858a2a5eb7ecd700e3a9/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:2", "text": "vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0\n    paddw        m3, m2\n    paddw        m3, m1\n    paddw        m4, m3\n    lea          r0, [r0+r1*%3]\n    dec r2\n    jne .loop\n    pshufd       m0, m4, q0032\n    paddd        m4, m0\n    movd        eax, m4\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_SUM16  4, 4, 4\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nPIX_SUM16  4, 4, 4\n%endif\n\n; int ff_pix_norm1(const uint8_t *pix, ptrdiff_t line_size)\n; %1 = number of xmm registers used\n; %2 = number of loops\n%macro PIX_NORM1 2\ncglobal pix_norm1, 2, 3, %1\n    mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3\n    paddd        m5, m2\n    paddd        m5, m4\n    lea          r0, [r0+r1*2]\n    dec r2\n    jne .loop\n    HADDD        m5, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "8d439b24839d486d1fcc858a2a5eb7ecd700e3a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d439b24839d486d1fcc858a2a5eb7ecd700e3a9/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:3", "text": "pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3\n    paddd        m5, m2\n    paddd        m5, m4\n    lea          r0, [r0+r1*2]\n    dec r2\n    jne .loop\n    HADDD        m5, m1\n    movd        eax, m5\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_NORM1 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "8d439b24839d486d1fcc858a2a5eb7ecd700e3a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8d439b24839d486d1fcc858a2a5eb7ecd700e3a9/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 81, "line_end": 106}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized MPEG encoding functions\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n; int ff_pix_sum16(const uint8_t *pix, int line_size)\n; %1 = number of loops\n; %2 = number of GPRs used\n%macro PIX_SUM16 3\ncglobal pix_sum16, 2, %2, 6\n    movsxdifnidn r1, r1d\n    mov          r2, %1\n    lea          r3, [r1*3]\n%if notcpuflag(xop)\n    pxor         m5, m5\n%endif\n    pxor         m4, m4\n.loop:\n%if cpuflag(xop)\n    vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0\n    paddw        m3, m2\n    paddw        m3, m1\n    paddw        m4, m3\n    lea          r0, [r0+r1*%3]\n    dec r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:2", "text": "vphaddubq    m0, [r0]\n    vphaddubq    m1, [r0+r1]\n    vphaddubq    m2, [r0+r1*2]\n    vphaddubq    m3, [r0+r3]\n%else\n    mova         m0, [r0]\n    mova         m1, [r0+r1]\n    mova         m2, [r0+r1*2]\n    mova         m3, [r0+r3]\n    psadbw       m0, m5\n    psadbw       m1, m5\n    psadbw       m2, m5\n    psadbw       m3, m5\n%endif ; cpuflag(xop)\n    paddw        m1, m0\n    paddw        m3, m2\n    paddw        m3, m1\n    paddw        m4, m3\n    lea          r0, [r0+r1*%3]\n    dec r2\n    jne .loop\n    pshufd       m0, m4, q0032\n    paddd        m4, m0\n    movd        eax, m4\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_SUM16  4, 4, 4\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nPIX_SUM16  4, 4, 4\n%endif\n\n; int ff_pix_norm1(const uint8_t *pix, int line_size)\n; %1 = number of xmm registers used\n; %2 = number of loops\n%macro PIX_NORM1 2\ncglobal pix_norm1, 2, 3, %1\n    movsxdifnidn r1, r1d\n    mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3\n    paddd        m5, m2\n    paddd        m5, m4\n    lea          r0, [r0+r1*2]\n    dec r2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/mpegvideoencdsp.asm:3", "text": "mov          r2, %2\n    pxor         m0, m0\n    pxor         m5, m5\n.loop:\n    mova         m2, [r0+0]\n    mova         m3, [r0+r1]\n    punpckhbw    m1, m2, m0\n    punpcklbw    m2, m0\n    punpckhbw    m4, m3, m0\n    punpcklbw    m3, m0\n    pmaddwd      m1, m1\n    pmaddwd      m2, m2\n    pmaddwd      m3, m3\n    pmaddwd      m4, m4\n    paddd        m2, m1\n    paddd        m4, m3\n    paddd        m5, m2\n    paddd        m5, m4\n    lea          r0, [r0+r1*2]\n    dec r2\n    jne .loop\n    HADDD        m5, m1\n    movd        eax, m5\n    RET\n%endmacro\n\nINIT_XMM sse2\nPIX_NORM1 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/mpegvideoencdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/mpegvideoencdsp.asm", "line_start": 81, "line_end": 108}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/opusdsp.asm:1", "text": ";******************************************************************************\n;* Opus SIMD functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nSECTION .text\n\nINIT_XMM fma3\n%if UNIX64\ncglobal opus_deemphasis, 4, 4, 8, out, in, weights, len\n%else\ncglobal opus_deemphasis, 5, 5, 8, out, in, coeff, weights, len\n%endif\n%if ARCH_X86_32\n    VBROADCASTSS m0, coeffm\n%elif WIN64\n    shufps m0, m2, m2, 0\n%else\n    shufps m0, m0, 0\n%endif\n\n    movaps m4, [weightsq]\n    VBROADCASTSS m5, m4\n    shufps m6, m4, m4, q1111\n    shufps m7, m4, m4, q2222\n\n.loop:\n    movaps  m1, [inq]                ; x0, x1, x2, x3\n\n    pslldq  m2, m1, 4                ;  0, x0, x1, x2\n    pslldq  m3, m1, 8                ;  0,  0, x0, x1\n\n    fmaddps m2, m2, m5, m1           ; x + c1*x[0-2]\n    pslldq  m1, 12                   ;  0,  0,  0, x0\n\n    fmaddps m2, m3, m6, m2           ; x + c1*x[0-2] + c2*x[0-1]\n    fmaddps m1, m1, m7, m2           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0]\n    fmaddps m0, m0, m4, m1           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0] + c*s\n\n    movaps [outq], m0\n    shufps m0, m0, q3333             ; new state", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/opusdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/opusdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/opusdsp.asm:2", "text": "movaps m4, [weightsq]\n    VBROADCASTSS m5, m4\n    shufps m6, m4, m4, q1111\n    shufps m7, m4, m4, q2222\n\n.loop:\n    movaps  m1, [inq]                ; x0, x1, x2, x3\n\n    pslldq  m2, m1, 4                ;  0, x0, x1, x2\n    pslldq  m3, m1, 8                ;  0,  0, x0, x1\n\n    fmaddps m2, m2, m5, m1           ; x + c1*x[0-2]\n    pslldq  m1, 12                   ;  0,  0,  0, x0\n\n    fmaddps m2, m3, m6, m2           ; x + c1*x[0-2] + c2*x[0-1]\n    fmaddps m1, m1, m7, m2           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0]\n    fmaddps m0, m0, m4, m1           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0] + c*s\n\n    movaps [outq], m0\n    shufps m0, m0, q3333             ; new state\n\n    add inq,  mmsize\n    add outq, mmsize\n    sub lend, mmsize >> 2\n    jg .loop\n\n%if ARCH_X86_64 == 0\n    movss r0m, m0\n    fld dword r0m\n%endif\n    RET\n\n\nINIT_XMM fma3\ncglobal opus_postfilter, 4, 4, 8, data, period, gains, len\n    VBROADCASTSS m0, [gainsq + 0]\n    VBROADCASTSS m1, [gainsq + 4]\n    VBROADCASTSS m2, [gainsq + 8]\n\n    shl periodd, 2\n    add periodq, 8\n    neg periodq\n\n    movups  m3, [dataq + periodq]\n    mulps   m3, m2\n\n.loop:\n    movups  m4, [dataq + periodq +  4]\n    movups  m5, [dataq + periodq +  8]\n    movups  m6, [dataq + periodq + 12]\n    movups  m7, [dataq + periodq + 16]\n\n    fmaddps m3, m7, m2, m3\n    addps   m6, m4\n\n    fmaddps m5, m5, m0, [dataq]\n    fmaddps m6, m6, m1, m3\n\n    addps   m5, m6\n    mulps   m3, m7, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/opusdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/opusdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/opusdsp.asm:3", "text": "add periodq, 8\n    neg periodq\n\n    movups  m3, [dataq + periodq]\n    mulps   m3, m2\n\n.loop:\n    movups  m4, [dataq + periodq +  4]\n    movups  m5, [dataq + periodq +  8]\n    movups  m6, [dataq + periodq + 12]\n    movups  m7, [dataq + periodq + 16]\n\n    fmaddps m3, m7, m2, m3\n    addps   m6, m4\n\n    fmaddps m5, m5, m0, [dataq]\n    fmaddps m6, m6, m1, m3\n\n    addps   m5, m6\n    mulps   m3, m7, m2\n\n    movaps  [dataq], m5\n\n    add dataq, mmsize\n    sub lend,  mmsize >> 2\n    jg .loop\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/opusdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/opusdsp.asm", "line_start": 81, "line_end": 108}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/opusdsp.asm:1", "text": ";******************************************************************************\n;* Opus SIMD functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n         ; 0.85..^1    0.85..^2    0.85..^3    0.85..^4\ntab_st: dd 0x3f599a00, 0x3f38f671, 0x3f1d382a, 0x3f05a32f\n\nSECTION .text\n\nINIT_XMM fma3\n%if UNIX64\ncglobal opus_deemphasis, 3, 3, 8, out, in, len\n%else\ncglobal opus_deemphasis, 4, 4, 8, out, in, coeff, len\n%endif\n%if ARCH_X86_32\n    VBROADCASTSS m0, coeffm\n%elif WIN64\n    shufps m0, m2, m2, 0\n%else\n    shufps m0, m0, 0\n%endif\n\n    movaps m4, [tab_st]\n    VBROADCASTSS m5, m4\n    shufps m6, m4, m4, q1111\n    shufps m7, m4, m4, q2222\n\n.loop:\n    movaps  m1, [inq]                ; x0, x1, x2, x3\n\n    pslldq  m2, m1, 4                ;  0, x0, x1, x2\n    pslldq  m3, m1, 8                ;  0,  0, x0, x1\n\n    fmaddps m2, m2, m5, m1           ; x + c1*x[0-2]\n    pslldq  m1, 12                   ;  0,  0,  0, x0\n\n    fmaddps m2, m3, m6, m2           ; x + c1*x[0-2] + c2*x[0-1]\n    fmaddps m1, m1, m7, m2           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0]\n    fmaddps m0, m0, m4, m1           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0] + c*s", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/opusdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/opusdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/opusdsp.asm:2", "text": "shufps m0, m0, 0\n%endif\n\n    movaps m4, [tab_st]\n    VBROADCASTSS m5, m4\n    shufps m6, m4, m4, q1111\n    shufps m7, m4, m4, q2222\n\n.loop:\n    movaps  m1, [inq]                ; x0, x1, x2, x3\n\n    pslldq  m2, m1, 4                ;  0, x0, x1, x2\n    pslldq  m3, m1, 8                ;  0,  0, x0, x1\n\n    fmaddps m2, m2, m5, m1           ; x + c1*x[0-2]\n    pslldq  m1, 12                   ;  0,  0,  0, x0\n\n    fmaddps m2, m3, m6, m2           ; x + c1*x[0-2] + c2*x[0-1]\n    fmaddps m1, m1, m7, m2           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0]\n    fmaddps m0, m0, m4, m1           ; x + c1*x[0-2] + c2*x[0-1] + c3*x[0] + c*s\n\n    movaps [outq], m0\n    shufps m0, m0, q3333             ; new state\n\n    add inq,  mmsize\n    add outq, mmsize\n    sub lend, mmsize >> 2\n    jg .loop\n\n%if ARCH_X86_64 == 0\n    movss r0m, m0\n    fld dword r0m\n%endif\n    RET\n\n\nINIT_XMM fma3\ncglobal opus_postfilter, 4, 4, 8, data, period, gains, len\n    VBROADCASTSS m0, [gainsq + 0]\n    VBROADCASTSS m1, [gainsq + 4]\n    VBROADCASTSS m2, [gainsq + 8]\n\n    shl periodd, 2\n    add periodq, 8\n    neg periodq\n\n    movups  m3, [dataq + periodq]\n    mulps   m3, m2\n\n.loop:\n    movups  m4, [dataq + periodq +  4]\n    movups  m5, [dataq + periodq +  8]\n    movups  m6, [dataq + periodq + 12]\n    movups  m7, [dataq + periodq + 16]\n\n    fmaddps m3, m7, m2, m3\n    addps   m6, m4\n\n    fmaddps m5, m5, m0, [dataq]\n    fmaddps m6, m6, m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/opusdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/opusdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/opusdsp.asm:3", "text": "VBROADCASTSS m2, [gainsq + 8]\n\n    shl periodd, 2\n    add periodq, 8\n    neg periodq\n\n    movups  m3, [dataq + periodq]\n    mulps   m3, m2\n\n.loop:\n    movups  m4, [dataq + periodq +  4]\n    movups  m5, [dataq + periodq +  8]\n    movups  m6, [dataq + periodq + 12]\n    movups  m7, [dataq + periodq + 16]\n\n    fmaddps m3, m7, m2, m3\n    addps   m6, m4\n\n    fmaddps m5, m5, m0, [dataq]\n    fmaddps m6, m6, m1, m3\n\n    addps   m5, m6\n    mulps   m3, m7, m2\n\n    movaps  [dataq], m5\n\n    add dataq, mmsize\n    sub lend,  mmsize >> 2\n    jg .loop\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/opusdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/opusdsp.asm", "line_start": 81, "line_end": 111}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pixblockdsp.asm:1", "text": ";*****************************************************************************\n;* SIMD-optimized pixel operations\n;*****************************************************************************\n;* Copyright (c) 2000, 2001 Fabrice Bellard\n;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal get_pixels, 3, 4, 5\n    lea          r3, [r2*3]\n    pxor         m4, m4\n    movh         m0, [r1]\n    movh         m1, [r1+r2]\n    movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    lea          r1, [r1+r2*4]\n    punpcklbw    m0, m4\n    punpcklbw    m1, m4\n    punpcklbw    m2, m4\n    punpcklbw    m3, m4\n    mova       [r0], m0\n    mova  [r0+0x10], m1\n    mova  [r0+0x20], m2\n    mova  [r0+0x30], m3\n    movh         m0, [r1]\n    movh         m1, [r1+r2*1]\n    movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    punpcklbw    m0, m4\n    punpcklbw    m1, m4\n    punpcklbw    m2, m4\n    punpcklbw    m3, m4\n    mova  [r0+0x40], m0\n    mova  [r0+0x50], m1\n    mova  [r0+0x60], m2\n    mova  [r0+0x70], m3\n    RET\n\n; void ff_diff_pixels(int16_t *block, const uint8_t *s1, const uint8_t *s2,\n;                     ptrdiff_t stride);", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pixblockdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/pixblockdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pixblockdsp.asm:2", "text": "mova       [r0], m0\n    mova  [r0+0x10], m1\n    mova  [r0+0x20], m2\n    mova  [r0+0x30], m3\n    movh         m0, [r1]\n    movh         m1, [r1+r2*1]\n    movh         m2, [r1+r2*2]\n    movh         m3, [r1+r3]\n    punpcklbw    m0, m4\n    punpcklbw    m1, m4\n    punpcklbw    m2, m4\n    punpcklbw    m3, m4\n    mova  [r0+0x40], m0\n    mova  [r0+0x50], m1\n    mova  [r0+0x60], m2\n    mova  [r0+0x70], m3\n    RET\n\n; void ff_diff_pixels(int16_t *block, const uint8_t *s1, const uint8_t *s2,\n;                     ptrdiff_t stride);\nINIT_XMM sse2\ncglobal diff_pixels, 4,5,5\n    pxor         m4, m4\n    add          r0,  128\n    mov          r4, -128\n.loop:\n    movq         m0, [r1]\n    movq         m2, [r2]\n    movq         m1, [r1+r3]\n    movq         m3, [r2+r3]\n    punpcklbw    m0, m4\n    punpcklbw    m1, m4\n    punpcklbw    m2, m4\n    punpcklbw    m3, m4\n    psubw        m0, m2\n    psubw        m1, m3\n    mova  [r0+r4+0], m0\n    mova  [r0+r4+mmsize], m1\n    lea          r1, [r1+r3*2]\n    lea          r2, [r2+r3*2]\n    add          r4, 2 * mmsize\n    jne .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pixblockdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/pixblockdsp.asm", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:1", "text": ";******************************************************************************\n;* x86 optimizations for PNG decoding\n;*\n;* Copyright (c) 2008 Loren Merritt <lorenm@u.washington.edu>\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_255\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal add_bytes_l2, 4, 6, 2, dst, src1, src2, wa, w, i\n    xor                 id, id\n\n    ; vector loop\n    mov                 wd, wad\n    and                wad, ~(mmsize*2-1)\n    jz               .tail\n\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 id, mmsize*2\n    cmp                 id, wad\n    jl .loop_v\n\n    ; vector loop\n.tail:\n    mov                wad, wd\n    and                wad, ~7\n    jmp .end_l\n.loop_l:\n    movq                m0, [src2q+iq]\n    movq                m1, [src1q+iq]\n    paddb               m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/pngdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:2", "text": ".loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 id, mmsize*2\n    cmp                 id, wad\n    jl .loop_v\n\n    ; vector loop\n.tail:\n    mov                wad, wd\n    and                wad, ~7\n    jmp .end_l\n.loop_l:\n    movq                m0, [src2q+iq]\n    movq                m1, [src1q+iq]\n    paddb               m0, m1\n    movq  [dstq+iq       ], m0\n    add                 id, 8\n.end_l:\n    cmp                 id, wad\n    jl .loop_l\n\n    ; scalar loop for leftover\n    jmp .end_s\n.loop_s:\n    mov                wab, [src1q+iq]\n    add                wab, [src2q+iq]\n    mov          [dstq+iq], wab\n    inc                 id\n.end_s:\n    cmp                 id, wd\n    jl .loop_s\n    RET\n\nINIT_MMX ssse3\ncglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/pngdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:3", "text": "%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq\n.loop:\n    mova                m2, m1\n    movh                m1, [topq+dstq]\n    mova                m3, m2\n    punpcklbw           m1, m7\n    mova                m4, m2\n    psubw               m3, m1\n    psubw               m4, m0\n    mova                m5, m3\n    paddw               m5, m4\n    pabsw               m3, m3\n    pabsw               m4, m4\n    pabsw               m5, m5\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/pngdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:4", "text": "pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/pngdsp.asm", "line_start": 121, "line_end": 142}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:1", "text": ";******************************************************************************\n;* x86 optimizations for PNG decoding\n;*\n;* Copyright (c) 2008 Loren Merritt <lorenm@u.washington.edu>\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_255\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal add_bytes_l2, 4, 6, 2, dst, src1, src2, wa, w, i\n%if ARCH_X86_64\n    movsxd             waq, wad\n%endif\n    xor                 iq, iq\n\n    ; vector loop\n    mov                 wq, waq\n    and                waq, ~(mmsize*2-1)\n    jz               .tail\n\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n.tail:\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "a8679f456ff75250becc7c5b5a4e51ae09359900", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8679f456ff75250becc7c5b5a4e51ae09359900/libavcodec/x86/pngdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:2", "text": "and                waq, ~(mmsize*2-1)\n    jz               .tail\n\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n.tail:\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq                m0, [src2q+iq]\n    movq                m1, [src1q+iq]\n    paddb               m0, m1\n    movq  [dstq+iq       ], m0\n    add                 iq, 8\n.end_l:\n    cmp                 iq, waq\n    jl .loop_l\n\n    ; scalar loop for leftover\n    jmp .end_s\n.loop_s:\n    mov                wab, [src1q+iq]\n    add                wab, [src2q+iq]\n    mov          [dstq+iq], wab\n    inc                 iq\n.end_s:\n    cmp                 iq, wq\n    jl .loop_s\n    RET\n\nINIT_MMX ssse3\ncglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "a8679f456ff75250becc7c5b5a4e51ae09359900", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8679f456ff75250becc7c5b5a4e51ae09359900/libavcodec/x86/pngdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:3", "text": "INIT_MMX ssse3\ncglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq\n.loop:\n    mova                m2, m1\n    movh                m1, [topq+dstq]\n    mova                m3, m2\n    punpcklbw           m1, m7\n    mova                m4, m2\n    psubw               m3, m1\n    psubw               m4, m0\n    mova                m5, m3\n    paddw               m5, m4\n    pabsw               m3, m3\n    pabsw               m4, m4\n    pabsw               m5, m5\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "a8679f456ff75250becc7c5b5a4e51ae09359900", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8679f456ff75250becc7c5b5a4e51ae09359900/libavcodec/x86/pngdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:4", "text": "mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "a8679f456ff75250becc7c5b5a4e51ae09359900", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8679f456ff75250becc7c5b5a4e51ae09359900/libavcodec/x86/pngdsp.asm", "line_start": 121, "line_end": 145}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:1", "text": ";******************************************************************************\n;* x86 optimizations for PNG decoding\n;*\n;* Copyright (c) 2008 Loren Merritt <lorenm@u.washington.edu>\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_255\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal add_bytes_l2, 4, 6, 2, dst, src1, src2, wa, w, i\n%if ARCH_X86_64\n    movsxd             waq, wad\n%endif\n    xor                 iq, iq\n\n    ; vector loop\n    mov                 wq, waq\n    and                waq, ~(mmsize*2-1)\n    jmp .end_v\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n.end_v:\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq                m0, [src2q+iq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c/libavcodec/x86/pngdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:2", "text": "and                waq, ~(mmsize*2-1)\n    jmp .end_v\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n.end_v:\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq                m0, [src2q+iq]\n    movq                m1, [src1q+iq]\n    paddb               m0, m1\n    movq  [dstq+iq       ], m0\n    add                 iq, 8\n.end_l:\n    cmp                 iq, waq\n    jl .loop_l\n\n    ; scalar loop for leftover\n    jmp .end_s\n.loop_s:\n    mov                wab, [src1q+iq]\n    add                wab, [src2q+iq]\n    mov          [dstq+iq], wab\n    inc                 iq\n.end_s:\n    cmp                 iq, wq\n    jl .loop_s\n    RET\n\nINIT_MMX ssse3\ncglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c/libavcodec/x86/pngdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:3", "text": "INIT_MMX ssse3\ncglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq\n.loop:\n    mova                m2, m1\n    movh                m1, [topq+dstq]\n    mova                m3, m2\n    punpcklbw           m1, m7\n    mova                m4, m2\n    psubw               m3, m1\n    psubw               m4, m0\n    mova                m5, m3\n    paddw               m5, m4\n    pabsw               m3, m3\n    pabsw               m4, m4\n    pabsw               m5, m5\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c/libavcodec/x86/pngdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:4", "text": "pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0a28cf9ce452241a5e8d4c5a3532ab28f1ebb5c/libavcodec/x86/pngdsp.asm", "line_start": 121, "line_end": 144}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:1", "text": ";******************************************************************************\n;* x86 optimizations for PNG decoding\n;*\n;* Copyright (c) 2008 Loren Merritt <lorenm@u.washington.edu>\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_255\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal add_bytes_l2, 4, 6, 2, dst, src1, src2, wa, w, i\n%if ARCH_X86_64\n    movsxd             waq, wad\n%endif\n    xor                 iq, iq\n\n    ; vector loop\n    mov                 wq, waq\n    and                waq, ~(mmsize*2-1)\n    jmp .end_v\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n.end_v:\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq               mm0, [src1q+iq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "685011003fd9656a08492a40b375bf1c2b8f0ebb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/685011003fd9656a08492a40b375bf1c2b8f0ebb/libavcodec/x86/pngdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:2", "text": "and                waq, ~(mmsize*2-1)\n    jmp .end_v\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n.end_v:\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq               mm0, [src1q+iq]\n    paddb              mm0, [src2q+iq]\n    movq  [dstq+iq       ], mm0\n    add                 iq, 8\n.end_l:\n    cmp                 iq, waq\n    jl .loop_l\n\n    ; scalar loop for leftover\n    jmp .end_s\n.loop_s:\n    mov                wab, [src1q+iq]\n    add                wab, [src2q+iq]\n    mov          [dstq+iq], wab\n    inc                 iq\n.end_s:\n    cmp                 iq, wq\n    jl .loop_s\n    RET\n\nINIT_MMX ssse3\ncglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "685011003fd9656a08492a40b375bf1c2b8f0ebb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/685011003fd9656a08492a40b375bf1c2b8f0ebb/libavcodec/x86/pngdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:3", "text": "cglobal png_add_paeth_prediction, 5, 7, 0, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq\n.loop:\n    mova                m2, m1\n    movh                m1, [topq+dstq]\n    mova                m3, m2\n    punpcklbw           m1, m7\n    mova                m4, m2\n    psubw               m3, m1\n    psubw               m4, m0\n    mova                m5, m3\n    paddw               m5, m4\n    pabsw               m3, m3\n    pabsw               m4, m4\n    pabsw               m5, m5\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "685011003fd9656a08492a40b375bf1c2b8f0ebb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/685011003fd9656a08492a40b375bf1c2b8f0ebb/libavcodec/x86/pngdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:4", "text": "pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "685011003fd9656a08492a40b375bf1c2b8f0ebb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/685011003fd9656a08492a40b375bf1c2b8f0ebb/libavcodec/x86/pngdsp.asm", "line_start": 121, "line_end": 143}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:2", "text": "and                waq, ~(mmsize*2-1)\n    jmp .end_v\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n.end_v:\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq               mm0, [src1q+iq]\n    paddb              mm0, [src2q+iq]\n    movq  [dstq+iq       ], mm0\n    add                 iq, 8\n.end_l:\n    cmp                 iq, waq\n    jl .loop_l\n\n    ; scalar loop for leftover\n    jmp .end_s\n.loop_s:\n    mov                wab, [src1q+iq]\n    add                wab, [src2q+iq]\n    mov          [dstq+iq], wab\n    inc                 iq\n.end_s:\n    cmp                 iq, wq\n    jl .loop_s\n    RET\n\n%macro ADD_PAETH_PRED_FN 1\ncglobal png_add_paeth_prediction, 5, 7, %1, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "31daa7cd877c68f3503bdaae3f6e817f2e56d465", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/31daa7cd877c68f3503bdaae3f6e817f2e56d465/libavcodec/x86/pngdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:3", "text": "cglobal png_add_paeth_prediction, 5, 7, %1, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq\n.loop:\n    mova                m2, m1\n    movh                m1, [topq+dstq]\n    mova                m3, m2\n    punpcklbw           m1, m7\n    mova                m4, m2\n    psubw               m3, m1\n    psubw               m4, m0\n    mova                m5, m3\n    paddw               m5, m4\n%if cpuflag(ssse3)\n    pabsw               m3, m3\n    pabsw               m4, m4\n    pabsw               m5, m5\n%else ; !cpuflag(ssse3)\n    psubw               m7, m5\n    pmaxsw              m5, m7\n    pxor                m6, m6\n    pxor                m7, m7\n    psubw               m6, m3\n    psubw               m7, m4\n    pmaxsw              m3, m6\n    pmaxsw              m4, m7\n    pxor                m7, m7\n%endif ; cpuflag(ssse3)\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "31daa7cd877c68f3503bdaae3f6e817f2e56d465", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/31daa7cd877c68f3503bdaae3f6e817f2e56d465/libavcodec/x86/pngdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:4", "text": "psubw               m6, m3\n    psubw               m7, m4\n    pmaxsw              m3, m6\n    pmaxsw              m4, m7\n    pxor                m7, m7\n%endif ; cpuflag(ssse3)\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq\n    emms\n    RET\n%endmacro\n\nINIT_MMX mmxext\nADD_PAETH_PRED_FN 0\n\nINIT_MMX ssse3\nADD_PAETH_PRED_FN 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "31daa7cd877c68f3503bdaae3f6e817f2e56d465", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/31daa7cd877c68f3503bdaae3f6e817f2e56d465/libavcodec/x86/pngdsp.asm", "line_start": 121, "line_end": 162}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:2", "text": "and                waq, ~(mmsize*2-1)\n    jmp .end_v\n.loop_v:\n    movu                m0, [src2q+iq]\n    movu                m1, [src2q+iq+mmsize]\n    paddb               m0, [src1q+iq]\n    paddb               m1, [src1q+iq+mmsize]\n    movu  [dstq+iq       ], m0\n    movu  [dstq+iq+mmsize], m1\n    add                 iq, mmsize*2\n.end_v:\n    cmp                 iq, waq\n    jl .loop_v\n\n    ; vector loop\n    mov                waq, wq\n    and                waq, ~7\n    jmp .end_l\n.loop_l:\n    movq               mm0, [src1q+iq]\n    paddb              mm0, [src2q+iq]\n    movq  [dstq+iq       ], mm0\n    add                 iq, 8\n.end_l:\n    cmp                 iq, waq\n    jl .loop_l\n\n    ; scalar loop for leftover\n    jmp .end_s\n.loop_s:\n    mov                wab, [src1q+iq]\n    add                wab, [src2q+iq]\n    mov          [dstq+iq], wab\n    inc                 iq\n.end_s:\n    cmp                 iq, wq\n    jl .loop_s\n    RET\n\n%macro ADD_PAETH_PRED_FN 1\ncglobal add_png_paeth_prediction, 5, 7, %1, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "57a29f2e7dd2374a1df27316c6cf7c0225e86758", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/57a29f2e7dd2374a1df27316c6cf7c0225e86758/libavcodec/x86/pngdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:3", "text": "cglobal add_png_paeth_prediction, 5, 7, %1, dst, src, top, w, bpp, end, cntr\n%if ARCH_X86_64\n    movsxd            bppq, bppd\n    movsxd              wq, wd\n%endif\n    lea               endq, [dstq+wq-(mmsize/2-1)]\n    sub               topq, dstq\n    sub               srcq, dstq\n    sub               dstq, bppq\n    pxor                m7, m7\n\n    PUSH              dstq\n    lea              cntrq, [bppq-1]\n    shr              cntrq, 2 + mmsize/16\n.bpp_loop:\n    lea               dstq, [dstq+cntrq*(mmsize/2)]\n    movh                m0, [dstq]\n    movh                m1, [topq+dstq]\n    punpcklbw           m0, m7\n    punpcklbw           m1, m7\n    add               dstq, bppq\n.loop:\n    mova                m2, m1\n    movh                m1, [topq+dstq]\n    mova                m3, m2\n    punpcklbw           m1, m7\n    mova                m4, m2\n    psubw               m3, m1\n    psubw               m4, m0\n    mova                m5, m3\n    paddw               m5, m4\n%if cpuflag(ssse3)\n    pabsw               m3, m3\n    pabsw               m4, m4\n    pabsw               m5, m5\n%else ; !cpuflag(ssse3)\n    psubw               m7, m5\n    pmaxsw              m5, m7\n    pxor                m6, m6\n    pxor                m7, m7\n    psubw               m6, m3\n    psubw               m7, m4\n    pmaxsw              m3, m6\n    pmaxsw              m4, m7\n    pxor                m7, m7\n%endif ; cpuflag(ssse3)\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "57a29f2e7dd2374a1df27316c6cf7c0225e86758", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/57a29f2e7dd2374a1df27316c6cf7c0225e86758/libavcodec/x86/pngdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/pngdsp.asm:4", "text": "psubw               m6, m3\n    psubw               m7, m4\n    pmaxsw              m3, m6\n    pmaxsw              m4, m7\n    pxor                m7, m7\n%endif ; cpuflag(ssse3)\n    mova                m6, m4\n    pminsw              m6, m5\n    pcmpgtw             m3, m6\n    pcmpgtw             m4, m5\n    mova                m6, m4\n    pand                m4, m3\n    pandn               m6, m3\n    pandn               m3, m0\n    movh                m0, [srcq+dstq]\n    pand                m6, m1\n    pand                m2, m4\n    punpcklbw           m0, m7\n    paddw               m0, m6\n    paddw               m3, m2\n    paddw               m0, m3\n    pand                m0, [pw_255]\n    mova                m3, m0\n    packuswb            m3, m3\n    movh            [dstq], m3\n    add               dstq, bppq\n    cmp               dstq, endq\n    jl .loop\n\n    mov               dstq, [rsp]\n    dec              cntrq\n    jge .bpp_loop\n    POP               dstq\n    RET\n%endmacro\n\nINIT_MMX mmxext\nADD_PAETH_PRED_FN 0\n\nINIT_MMX ssse3\nADD_PAETH_PRED_FN 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/pngdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/pngdsp.asm", "line_start": 121, "line_end": 161}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/proresdsp.asm:1", "text": ";******************************************************************************\n;* x86-SIMD-optimized IDCT for prores\n;* this is identical to \"simple\" IDCT written by Michael Niedermayer\n;* except for the clip range\n;*\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA\n\npw_88:      times 8 dw 0x2008\ncextern pw_1\ncextern pw_4\ncextern pw_1019\n; Below are defined in simple_idct10.asm built from selecting idctdsp\ncextern w4_plus_w2_hi\ncextern w4_min_w2_hi\ncextern w4_plus_w6_hi\ncextern w4_min_w6_hi\ncextern w1_plus_w3_hi\ncextern w3_min_w1_hi\ncextern w7_plus_w3_hi\ncextern w3_min_w7_hi\ncextern w1_plus_w5\ncextern w5_min_w1\ncextern w5_plus_w7\ncextern w7_min_w5\n\n%include \"libavcodec/x86/simple_idct10_template.asm\"\n\nSECTION .text\n\ndefine_constants _hi\n\n%macro idct_fn 0\ncglobal prores_idct_put_10, 4, 4, 14, pixels, lsize, block, qmat\n    IDCT_FN    pw_1, 15, pw_88, 18, \"put\", pw_4, pw_1019, r3\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/proresdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/proresdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/proresdsp.asm:2", "text": "cextern w3_min_w1_hi\ncextern w7_plus_w3_hi\ncextern w3_min_w7_hi\ncextern w1_plus_w5\ncextern w5_min_w1\ncextern w5_plus_w7\ncextern w7_min_w5\n\n%include \"libavcodec/x86/simple_idct10_template.asm\"\n\nSECTION .text\n\ndefine_constants _hi\n\n%macro idct_fn 0\ncglobal prores_idct_put_10, 4, 4, 14, pixels, lsize, block, qmat\n    IDCT_FN    pw_1, 15, pw_88, 18, \"put\", pw_4, pw_1019, r3\n    RET\n%endmacro\n\nINIT_XMM sse2\nidct_fn\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nidct_fn\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/proresdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/proresdsp.asm", "line_start": 41, "line_end": 68}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/proresdsp.asm:1", "text": ";******************************************************************************\n;* x86-SIMD-optimized IDCT for prores\n;* this is identical to \"simple\" IDCT written by Michael Niedermayer\n;* except for the clip range\n;*\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA\n\npw_88:      times 8 dw 0x2008\ncextern pw_1\ncextern pw_4\ncextern pw_1019\n; Below are defined in simple_idct10.asm built from selecting idctdsp\ncextern w4_plus_w2_hi\ncextern w4_min_w2_hi\ncextern w4_plus_w6_hi\ncextern w4_min_w6_hi\ncextern w1_plus_w3_hi\ncextern w3_min_w1_hi\ncextern w7_plus_w3_hi\ncextern w3_min_w7_hi\ncextern w1_plus_w5\ncextern w5_min_w1\ncextern w5_plus_w7\ncextern w7_min_w5\n\n%include \"libavcodec/x86/simple_idct10_template.asm\"\n\nSECTION .text\n\ndefine_constants _hi\n\n%macro idct_fn 0\ncglobal prores_idct_put_10, 4, 4, 15, pixels, lsize, block, qmat\n    IDCT_FN    pw_1, 15, pw_88, 18, \"put\", pw_4, pw_1019, r3\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/proresdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/proresdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/proresdsp.asm:2", "text": "cextern w3_min_w1_hi\ncextern w7_plus_w3_hi\ncextern w3_min_w7_hi\ncextern w1_plus_w5\ncextern w5_min_w1\ncextern w5_plus_w7\ncextern w7_min_w5\n\n%include \"libavcodec/x86/simple_idct10_template.asm\"\n\nSECTION .text\n\ndefine_constants _hi\n\n%macro idct_fn 0\ncglobal prores_idct_put_10, 4, 4, 15, pixels, lsize, block, qmat\n    IDCT_FN    pw_1, 15, pw_88, 18, \"put\", pw_4, pw_1019, r3\n    RET\n%endmacro\n\nINIT_XMM sse2\nidct_fn\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nidct_fn\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/proresdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/proresdsp.asm", "line_start": 41, "line_end": 68}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n%macro PIXELS_L2 2 ; avg vs put, size\n%define OP op_%1\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels%2x%2_l2, 5,6,2\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+2*mmsize]\n    pavgb        m1, [r2+3*mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 4*mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": "cglobal %1_pixels%2x%2_l2, 5,6,2\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+2*mmsize]\n    pavgb        m1, [r2+3*mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 4*mmsize\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2 put, 8\nPIXELS_L2 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2 put, 16\nPIXELS_L2 avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 72}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n%macro PIXELS_L2 2-3 ; avg vs put, size, size+1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels8x9_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels%2x%3_l2, 5,6,2\n    movu         m0, [r1]\n    pavgb        m0, [r2]\n    add          r1, r4\n    add          r2, mmsize\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels%2x%2_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels%2x%2_l2, 5,6,2\n%1_pixels%2x%2_after_prologue_ %+ cpuname:\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": ";                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels%2x%3_l2, 5,6,2\n    movu         m0, [r1]\n    pavgb        m0, [r2]\n    add          r1, r4\n    add          r2, mmsize\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels%2x%2_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels%2x%2_l2, 5,6,2\n%1_pixels%2x%2_after_prologue_ %+ cpuname:\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+2*mmsize]\n    pavgb        m1, [r2+3*mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 4*mmsize\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2 put, 8, 9\nPIXELS_L2 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2 put, 16, 17\nPIXELS_L2 avg, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 86}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": ";                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels%2x%3_l2, 5,6,2\n    movu         m0, [r1]\n    pavgb        m0, [r2]\n    add          r1, r4\n    add          r2, mmsize\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels%2x%2_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels%2x%2_l2, 5,6,2\n%1_pixels%2x%2_after_prologue_ %+ cpuname:\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+2*mmsize]\n    pavgb        m1, [r2+3*mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 4*mmsize\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2 put, 8, 9\nPIXELS_L2 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2 put, 16, 17\nPIXELS_L2 avg, 16\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n; void ff_avg/put_pixels16x16_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                       ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels16x16_l2, 5,6\n%1_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "PIXELS_L2 put, 8, 9\nPIXELS_L2 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2 put, 16, 17\nPIXELS_L2 avg, 16\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n; void ff_avg/put_pixels16x16_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                       ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels16x16_l2, 5,6\n%1_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 120}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n%macro PIXELS_L2 2-3 ; avg vs put, size, size+1\n%define OP op_%1\n%ifidn %1, put\n%if notcpuflag(sse2) ; SSE2 currently only uses 16x16\n; void ff_put_pixels8x9_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels%2x%3_l2, 5,6,2\n    movu         m0, [r1]\n    pavgb        m0, [r2]\n    add          r1, r4\n    add          r2, mmsize\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels%2x%2_after_prologue_ %+ cpuname\n%endif\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels%2x%2_l2, 5,6,2\n%1_pixels%2x%2_after_prologue_ %+ cpuname:\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "b91081274f5a5b5f0f1ce820331f702378a425e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b91081274f5a5b5f0f1ce820331f702378a425e8/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": "; void ff_put_pixels8x9_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels%2x%3_l2, 5,6,2\n    movu         m0, [r1]\n    pavgb        m0, [r2]\n    add          r1, r4\n    add          r2, mmsize\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels%2x%2_after_prologue_ %+ cpuname\n%endif\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels%2x%2_l2, 5,6,2\n%1_pixels%2x%2_after_prologue_ %+ cpuname:\n    mov         r5d, %2\n.loop:\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    movu         m0, [r1]\n    movu         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+2*mmsize]\n    pavgb        m1, [r2+3*mmsize]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 4*mmsize\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS_L2 put, 8, 9\nPIXELS_L2 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2 put, 16, 17\nPIXELS_L2 avg, 16\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16x17_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels16x17_l2, 5,6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "b91081274f5a5b5f0f1ce820331f702378a425e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b91081274f5a5b5f0f1ce820331f702378a425e8/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "INIT_MMX mmxext\nPIXELS_L2 put, 8, 9\nPIXELS_L2 avg, 8\n\nINIT_XMM sse2\nPIXELS_L2 put, 16, 17\nPIXELS_L2 avg, 16\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16x17_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels16x17_l2, 5,6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels16x16_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels16x16_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                       ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels16x16_l2, 5,6\n%1_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "b91081274f5a5b5f0f1ce820331f702378a425e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b91081274f5a5b5f0f1ce820331f702378a425e8/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 138}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "b91081274f5a5b5f0f1ce820331f702378a425e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b91081274f5a5b5f0f1ce820331f702378a425e8/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 138}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n%macro PIXELS8_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels8x9_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels8x9_l2, 5,6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels8x8_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels8x8_l2, 5,6\n%1_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": ";                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels8x9_l2, 5,6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels8x8_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels8x8_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                     ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels8x8_l2, 5,6\n%1_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16x17_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels16x17_l2, 5,6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "INIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16x17_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_pixels16x17_l2, 5,6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    ; FIXME: avoid jump if prologue is empty\n    jmp          %1_pixels16x16_after_prologue_ %+ cpuname\n%endif\n; void ff_avg/put_pixels16x16_l2_mmxext(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                       ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal %1_pixels16x16_l2, 5,6\n%1_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n%macro PIXELS8_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels8_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%else\n; void ff_avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal avg_pixels8_l2, 5,6\n    mov         r5d, 8\n%endif\n.loop:\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": ";                               ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels8_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%else\n; void ff_avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal avg_pixels8_l2, 5,6\n    mov         r5d, 8\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels16_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "INIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels16_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n%else\n; void ff_avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal avg_pixels16_l2, 5,6\n    mov         r5d, 16\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 135}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "c4c616db53f02c590158e143f6a497bbfaf93f1d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c4c616db53f02c590158e143f6a497bbfaf93f1d/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 135}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 4,4\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    lea          r1, [r1+2*r3]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "1e11fdff520ef0df6baf557ae0436b4fe7e8765b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e11fdff520ef0df6baf557ae0436b4fe7e8765b/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": "%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   ptrdiff_t stride)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 4,4\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    lea          r1, [r1+2*r3]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r3]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n%macro PIXELS8_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels8_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%else\n; void ff_avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal avg_pixels8_l2, 5,6\n    mov         r5d, 8\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "1e11fdff520ef0df6baf557ae0436b4fe7e8765b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e11fdff520ef0df6baf557ae0436b4fe7e8765b/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%else\n; void ff_avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal avg_pixels8_l2, 5,6\n    mov         r5d, 8\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels16_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "1e11fdff520ef0df6baf557ae0436b4fe7e8765b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e11fdff520ef0df6baf557ae0436b4fe7e8765b/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "%macro PIXELS16_L2 1\n%define OP op_%1\n%ifidn %1, put\n; void ff_put_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\ncglobal put_pixels16_l2, 6,6\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n%else\n; void ff_avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal avg_pixels16_l2, 5,6\n    mov         r5d, 16\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "1e11fdff520ef0df6baf557ae0436b4fe7e8765b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e11fdff520ef0df6baf557ae0436b4fe7e8765b/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 171}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:5", "text": "OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "1e11fdff520ef0df6baf557ae0436b4fe7e8765b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e11fdff520ef0df6baf557ae0436b4fe7e8765b/libavcodec/x86/qpel.asm", "line_start": 161, "line_end": 171}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 6,6\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": "%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 6,6\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n; void ff_put/avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\n%macro PIXELS8_L2 1\n%define OP op_%1\ncglobal %1_pixels8_l2, 6,6\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n; void ff_put/avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                    ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\n%macro PIXELS16_L2 1\n%define OP op_%1\ncglobal %1_pixels16_l2, 6,6\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "cglobal %1_pixels16_l2, 6,6\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 161}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": "%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n; void ff_put/avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS8_L2 1\n%define OP op_%1\ncglobal %1_pixels8_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "movsxdifnidn r4, r4d\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n; void ff_put/avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                    int dstStride, int src1Stride, int h)\n%macro PIXELS16_L2 1\n%define OP op_%1\ncglobal %1_pixels16_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "; void ff_put/avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                    int dstStride, int src1Stride, int h)\n%macro PIXELS16_L2 1\n%define OP op_%1\ncglobal %1_pixels16_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n%ifidn %1, put\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n%endif\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cacf854fe7ad20a4eff5b2e9ef4e5a37f59d6e56/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 167}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized quarterpel functions\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2003-2013 Michael Niedermayer\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro op_avgh 3\n    movh   %3, %2\n    pavgb  %1, %3\n    movh   %2, %1\n%endmacro\n\n%macro op_avg 2\n    pavgb  %1, %2\n    mova   %2, %1\n%endmacro\n\n%macro op_puth 2-3\n    movh   %2, %1\n%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    test        r5d, 1\n    je        .loop\n    movd         m0, [r1]\n    movd         m1, [r2]\n    add          r1, r4\n    add          r2, 4\n    pavgb        m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpel.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:2", "text": "%endmacro\n\n%macro op_put 2\n    mova   %2, %1\n%endmacro\n\n; void ff_put/avg_pixels4_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS4_L2 1\n%define OP op_%1h\ncglobal %1_pixels4_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    test        r5d, 1\n    je        .loop\n    movd         m0, [r1]\n    movd         m1, [r2]\n    add          r1, r4\n    add          r2, 4\n    pavgb        m0, m1\n    OP           m0, [r0], m3\n    add          r0, r3\n    dec         r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+4]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+8]\n    pavgb        m1, [r2+12]\n    OP           m0, [r0], m3\n    OP           m1, [r0+r3], m3\n    lea          r0, [r0+2*r3]\n    add          r2, 16\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n; void ff_put/avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS8_L2 1\n%define OP op_%1\ncglobal %1_pixels8_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpel.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:3", "text": "add          r2, 16\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS4_L2 put\nPIXELS4_L2 avg\n\n; void ff_put/avg_pixels8_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                   int dstStride, int src1Stride, int h)\n%macro PIXELS8_L2 1\n%define OP op_%1\ncglobal %1_pixels8_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pavgb        m0, m1\n    OP           m0, [r0]\n    add          r0, r3\n    dec         r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    mova         m0, [r1]\n    mova         m1, [r1+r4]\n    lea          r1, [r1+2*r4]\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n; void ff_put/avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                    int dstStride, int src1Stride, int h)\n%macro PIXELS16_L2 1\n%define OP op_%1\ncglobal %1_pixels16_l2, 6,6\n    movsxdifnidn r3, r3d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpel.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:4", "text": "pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+r3]\n    lea          r0, [r0+2*r3]\n    add          r2, 32\n    sub         r5d, 4\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS8_L2 put\nPIXELS8_L2 avg\n\n; void ff_put/avg_pixels16_l2_mmxext(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                    int dstStride, int src1Stride, int h)\n%macro PIXELS16_L2 1\n%define OP op_%1\ncglobal %1_pixels16_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    test        r5d, 1\n    je        .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    add          r1, r4\n    add          r2, 16\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    dec         r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2]\n    pavgb        m1, [r2+8]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpel.asm", "line_start": 121, "line_end": 179}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpel.asm:5", "text": "OP           m1, [r0+8]\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    pavgb        m0, [r2+16]\n    pavgb        m1, [r2+24]\n    OP           m0, [r0]\n    OP           m1, [r0+8]\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne       .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPIXELS16_L2 put\nPIXELS16_L2 avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpel.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpel.asm", "line_start": 161, "line_end": 179}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\npw_15: times 8 dw 15\ncextern pw_16\npw_20: times 8 dw 20\n\ncoeff8_0: times 16 db 20  ; pb_20\ncoeff8_1: db -6,  3, -6,  3,  3, -6,  3, -6, -6,  3, -6,  3,  3, -6,  3, -6\ncoeff8_2: db -6,  3, -1,  0, -6,  3, -6,  3,  3, -6,  3, -6,  0, -1,  3, -6\ncoeff8_3: db -1, -1, -3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -3, -1, -1\nshuffle_mask8: db 3, 7, 0, 9, 0, 12, 0, 14, 1, 15, 3, 15, 6, 15, 8, 12\n\nshuffle_mask16_0: db 2, 1, 1, 0, 0, 0, 1, 0, 1,  2,  2,  3,  4,  3,  5,  4\nshuffle_mask16_1: db 5, 6, 6, 7, 8, 7, 9, 8, 9, 10, 10, 11, 12, 11, 13, 12\nshuffle_mask16_2: db 0, 1, 1, 2, 3, 2, 3, 3,  3, 2,  2,  1, -1, -1, -1, -1\ncoeff16_0: times 2 db -1,  3, -1,  3,  3, -1,  3, -1\ncoeff16_1: times 2 db 20, -6, 20, -6, -6, 20, -6, 20\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS_L2 1\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5\n    pcmpeqb      m4, m4\n    mov         r5d, %1\n.loop:\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+%1]\n    pxor         m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "shuffle_mask16_2: db 0, 1, 1, 2, 3, 2, 3, 3,  3, 2,  2,  1, -1, -1, -1, -1\ncoeff16_0: times 2 db -1,  3, -1,  3,  3, -1,  3, -1\ncoeff16_1: times 2 db 20, -6, 20, -6, -6, 20, -6, 20\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS_L2 1\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5\n    pcmpeqb      m4, m4\n    mov         r5d, %1\n.loop:\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+%1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16\n\n%macro L2 5\n%ifidn %2, l2\n%ifidn %1, put_no_rnd\n%ifn UNIX64\n    pcmpeqb      %5, %5\n%endif\n    pxor         %4, PW_FF\n    pxor         %3, PW_FF\n    pavgb        %3, %4\n    pxor         %3, PW_FF\n%else ; avg or put\n    pavgb        %3, %4\n%endif\n%endif\n%endmacro\n\n%macro MPEG4_QPEL16_H_LOWPASS 1-2 \"\"\n%ifidn %2, l2\ncglobal mpeg4_%1_qpel16_h_lowpass_l2, 6, 6, 8+UNIX64, dst, src, dstride, srcstride, h, offset\n%else\ncglobal mpeg4_%1_qpel16_h_lowpass, 5, 5, 8, dst, src, dstride, srcstride, h\n%endif\n    mova         m7, [coeff16_0]\n%define PW_FF m1\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb      m8, m8\n%define PW_FF m8\n%endif\n%endif\n%endif\n.loop:\n    movu         m0, [srcq]\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "cglobal mpeg4_%1_qpel16_h_lowpass, 5, 5, 8, dst, src, dstride, srcstride, h\n%endif\n    mova         m7, [coeff16_0]\n%define PW_FF m1\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb      m8, m8\n%define PW_FF m8\n%endif\n%endif\n%endif\n.loop:\n    movu         m0, [srcq]\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7\n    paddw        m4, [PW_ROUND]\n    palignr      m1, m6, m0, 4\n    pmaddubsw    m1, [coeff16_1]\n    paddw        m2, m5\n    palignr      m5, m6, m0, 8\n    pmaddubsw    m5, [coeff16_1]\n    palignr      m6, m0, 12\n%ifidn %2, l2\n    movu         m0, [srcq+offsetq]\n%endif\n    pmaddubsw    m6, m7\n    add        srcq, srcstrideq\n    paddw        m2, [PW_ROUND]\n    paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n    L2           %1, %2, m2, m0, m1\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n    L2           %1, %2, m2, m0, m1\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\nMPEG4_QPEL16_H_LOWPASS put, l2\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\nMPEG4_QPEL16_H_LOWPASS avg, l2\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\nMPEG4_QPEL16_H_LOWPASS put_no_rnd, l2\n\n%macro MPEG4_QPEL8_H_LOWPASS 1-2 \"\"\n%ifidn %2, l2\ncglobal mpeg4_%1_qpel8_h_lowpass_l2, 6, 6, 8+2*ARCH_X86_64+UNIX64, dst, src, dstride, srcstride, h, offset\n%else\ncglobal mpeg4_%1_qpel8_h_lowpass, 5, 5, 8+2*ARCH_X86_64, dst, src, dstride, srcstride, h\n%endif\n    mova         m4, [PW_ROUND]\n    mova         m5, [coeff8_0]\n%if ARCH_X86_64\n    mova         m8, [coeff8_1]\n    mova         m9, [coeff8_2]\n%endif\n%define PW_FF m0\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb     m10, m10\n%define PW_FF m10\n%endif\n%endif\n%endif\n    mova         m6, [coeff8_3]\n    mova         m7, [shuffle_mask8]\n.loop:\n    movq         m0, [srcq]\n    movq         m1, [srcq+1]\n    punpcklbw    m0, m1\n    pmaddubsw    m1, m0, m5\n    pshufd       m2, m0, q2301\n%if ARCH_X86_64\n    pmaddubsw    m2, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "%endif\n%define PW_FF m0\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb     m10, m10\n%define PW_FF m10\n%endif\n%endif\n%endif\n    mova         m6, [coeff8_3]\n    mova         m7, [shuffle_mask8]\n.loop:\n    movq         m0, [srcq]\n    movq         m1, [srcq+1]\n    punpcklbw    m0, m1\n    pmaddubsw    m1, m0, m5\n    pshufd       m2, m0, q2301\n%if ARCH_X86_64\n    pmaddubsw    m2, m8\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, m9\n%else\n    pmaddubsw    m2, [coeff8_1]\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, [coeff8_2]\n%endif\n    paddw        m1, m2\n%ifidn %1, avg\n    movq         m2, [dstq]\n%endif\n    pshufb       m0, m7\n    pmaddubsw    m0, m6\n    paddw        m1, m4\n    paddw        m1, m3\n%ifidn %2, l2\n    movq         m3, [srcq+offsetq]\n%endif\n    add        srcq, srcstrideq\n    paddw        m1, m0\n    psraw        m1, 5\n    packuswb     m1, m1\n    L2           %1, %2, m1, m3, m0\n%ifidn %1, avg\n    pavgb        m1, m2\n%endif\n    movq     [dstq], m1\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS put\nMPEG4_QPEL8_H_LOWPASS put, l2\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS avg\nMPEG4_QPEL8_H_LOWPASS avg, l2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psraw        m1, 5\n    packuswb     m1, m1\n    L2           %1, %2, m1, m3, m0\n%ifidn %1, avg\n    pavgb        m1, m2\n%endif\n    movq     [dstq], m1\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS put\nMPEG4_QPEL8_H_LOWPASS put, l2\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS avg\nMPEG4_QPEL8_H_LOWPASS avg, l2\n%define PW_ROUND pw_15\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\nMPEG4_QPEL8_H_LOWPASS put_no_rnd, l2\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal mpeg4_%1_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal mpeg4_%1_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal mpeg4_%1_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 404}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16\n\n%macro L2 5\n%ifidn %2, l2\n%ifidn %1, put_no_rnd\n%ifn UNIX64\n    pcmpeqb      %5, %5\n%endif\n    pxor         %4, PW_FF\n    pxor         %3, PW_FF\n    pavgb        %3, %4\n    pxor         %3, PW_FF\n%else ; avg or put\n    pavgb        %3, %4\n%endif\n%endif\n%endmacro\n\n%macro MPEG4_QPEL16_H_LOWPASS 1-2 \"\"\n%ifidn %2, l2\ncglobal %1_mpeg4_qpel16_h_lowpass_l2, 6, 6, 8+UNIX64, dst, src, dstride, srcstride, h, offset\n%else\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 8, dst, src, dstride, srcstride, h\n%endif\n    mova         m7, [coeff16_0]\n%define PW_FF m1\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb      m8, m8\n%define PW_FF m8\n%endif\n%endif\n%endif\n.loop:\n    movu         m0, [srcq]\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "23d3116af93027866689e52e50533cd3121679ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23d3116af93027866689e52e50533cd3121679ab/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "cglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 8, dst, src, dstride, srcstride, h\n%endif\n    mova         m7, [coeff16_0]\n%define PW_FF m1\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb      m8, m8\n%define PW_FF m8\n%endif\n%endif\n%endif\n.loop:\n    movu         m0, [srcq]\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7\n    paddw        m4, [PW_ROUND]\n    palignr      m1, m6, m0, 4\n    pmaddubsw    m1, [coeff16_1]\n    paddw        m2, m5\n    palignr      m5, m6, m0, 8\n    pmaddubsw    m5, [coeff16_1]\n    palignr      m6, m0, 12\n%ifidn %2, l2\n    movu         m0, [srcq+offsetq]\n%endif\n    pmaddubsw    m6, m7\n    add        srcq, srcstrideq\n    paddw        m2, [PW_ROUND]\n    paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n    L2           %1, %2, m2, m0, m1\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "23d3116af93027866689e52e50533cd3121679ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23d3116af93027866689e52e50533cd3121679ab/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n    L2           %1, %2, m2, m0, m1\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\nMPEG4_QPEL16_H_LOWPASS put, l2\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\nMPEG4_QPEL16_H_LOWPASS avg, l2\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\nMPEG4_QPEL16_H_LOWPASS put_no_rnd, l2\n\n%macro MPEG4_QPEL8_H_LOWPASS 1-2 \"\"\n%ifidn %2, l2\ncglobal %1_mpeg4_qpel8_h_lowpass_l2, 6, 6, 8+2*ARCH_X86_64+UNIX64, dst, src, dstride, srcstride, h, offset\n%else\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 8+2*ARCH_X86_64, dst, src, dstride, srcstride, h\n%endif\n    mova         m4, [PW_ROUND]\n    mova         m5, [coeff8_0]\n%if ARCH_X86_64\n    mova         m8, [coeff8_1]\n    mova         m9, [coeff8_2]\n%endif\n%define PW_FF m0\n%ifidn %1, put_no_rnd\n%ifidn %2, l2\n%if UNIX64\n    pcmpeqb     m10, m10\n%define PW_FF m10\n%endif\n%endif\n%endif\n    mova         m6, [coeff8_3]\n    mova         m7, [shuffle_mask8]\n.loop:\n    movq         m0, [srcq]\n    movq         m1, [srcq+1]\n    punpcklbw    m0, m1\n    pmaddubsw    m1, m0, m5\n    pshufd       m2, m0, q2301\n%if ARCH_X86_64\n    pmaddubsw    m2, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "23d3116af93027866689e52e50533cd3121679ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23d3116af93027866689e52e50533cd3121679ab/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psraw        m1, 5\n    packuswb     m1, m1\n    L2           %1, %2, m1, m3, m0\n%ifidn %1, avg\n    pavgb        m1, m2\n%endif\n    movq     [dstq], m1\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS put\nMPEG4_QPEL8_H_LOWPASS put, l2\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS avg\nMPEG4_QPEL8_H_LOWPASS avg, l2\n%define PW_ROUND pw_15\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\nMPEG4_QPEL8_H_LOWPASS put_no_rnd, l2\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "23d3116af93027866689e52e50533cd3121679ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23d3116af93027866689e52e50533cd3121679ab/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "23d3116af93027866689e52e50533cd3121679ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23d3116af93027866689e52e50533cd3121679ab/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "23d3116af93027866689e52e50533cd3121679ab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/23d3116af93027866689e52e50533cd3121679ab/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\npw_15: times 8 dw 15\ncextern pw_16\npw_20: times 8 dw 20\n\ncoeff8_0: times 16 db 20  ; pb_20\ncoeff8_1: db -6,  3, -6,  3,  3, -6,  3, -6, -6,  3, -6,  3,  3, -6,  3, -6\ncoeff8_2: db -6,  3, -1,  0, -6,  3, -6,  3,  3, -6,  3, -6,  0, -1,  3, -6\ncoeff8_3: db -1, -1, -3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -3, -1, -1\nshuffle_mask8: db 3, 7, 0, 9, 0, 12, 0, 14, 1, 15, 3, 15, 6, 15, 8, 12\n\nshuffle_mask16_0: db 2, 1, 1, 0, 0, 0, 1, 0, 1,  2,  2,  3,  4,  3,  5,  4\nshuffle_mask16_1: db 5, 6, 6, 7, 8, 7, 9, 8, 9, 10, 10, 11, 12, 11, 13, 12\nshuffle_mask16_2: db 0, 1, 1, 2, 3, 2, 3, 3,  3, 2,  2,  1, -1, -1, -1, -1\ncoeff16_0: times 2 db -1,  3, -1,  3,  3, -1,  3, -1\ncoeff16_1: times 2 db 20, -6, 20, -6, -6, 20, -6, 20\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS_L2 2\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%2_l2, 5,6,5\n    movu         m0, [r1]\n    mova         m1, [r2]\n    pcmpeqb      m4, m4\n    add          r1, r4\n    add          r2, %1\n    pxor         m0, m4\n    pxor         m1, m4\n    pavgb        m0, m1\n    pxor         m0, m4\n    mova       [r0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "shuffle_mask16_2: db 0, 1, 1, 2, 3, 2, 3, 3,  3, 2,  2,  1, -1, -1, -1, -1\ncoeff16_0: times 2 db -1,  3, -1,  3,  3, -1,  3, -1\ncoeff16_1: times 2 db 20, -6, 20, -6, -6, 20, -6, 20\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS_L2 2\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%2_l2, 5,6,5\n    movu         m0, [r1]\n    mova         m1, [r2]\n    pcmpeqb      m4, m4\n    add          r1, r4\n    add          r2, %1\n    pxor         m0, m4\n    pxor         m1, m4\n    pavgb        m0, m1\n    pxor         m0, m4\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5\n    pcmpeqb      m4, m4\nput_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname:\n    mov         r5d, %1\n.loop:\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+%1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8, 9\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16, 17\n\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 8, dst, src, dstride, srcstride, h\n    mova         m7, [coeff16_0]\n.loop:\n    movu         m0, [srcq]\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7\n    paddw        m4, [PW_ROUND]\n    palignr      m1, m6, m0, 4\n    pmaddubsw    m1, [coeff16_1]\n    add        srcq, srcstrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "mova         m7, [coeff16_0]\n.loop:\n    movu         m0, [srcq]\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7\n    paddw        m4, [PW_ROUND]\n    palignr      m1, m6, m0, 4\n    pmaddubsw    m1, [coeff16_1]\n    add        srcq, srcstrideq\n    paddw        m2, m5\n    palignr      m5, m6, m0, 8\n    pmaddubsw    m5, [coeff16_1]\n    palignr      m6, m0, 12\n    pmaddubsw    m6, m7\n    paddw        m2, [PW_ROUND]\n    paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 8+2*ARCH_X86_64, dst, src, dstride, srcstride, h\n    mova         m4, [PW_ROUND]\n    mova         m5, [coeff8_0]\n%if ARCH_X86_64\n    mova         m8, [coeff8_1]\n    mova         m9, [coeff8_2]\n%endif\n    mova         m6, [coeff8_3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 8+2*ARCH_X86_64, dst, src, dstride, srcstride, h\n    mova         m4, [PW_ROUND]\n    mova         m5, [coeff8_0]\n%if ARCH_X86_64\n    mova         m8, [coeff8_1]\n    mova         m9, [coeff8_2]\n%endif\n    mova         m6, [coeff8_3]\n    mova         m7, [shuffle_mask8]\n.loop:\n    movq         m0, [srcq]\n    movq         m1, [srcq+1]\n    punpcklbw    m0, m1\n    pmaddubsw    m1, m0, m5\n    pshufd       m2, m0, q2301\n%if ARCH_X86_64\n    pmaddubsw    m2, m8\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, m9\n%else\n    pmaddubsw    m2, [coeff8_1]\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, [coeff8_2]\n%endif\n    paddw        m1, m2\n%ifidn %1, avg\n    movq         m2, [dstq]\n%endif\n    pshufb       m0, m7\n    pmaddubsw    m0, m6\n    add        srcq, srcstrideq\n    paddw        m1, m4\n    paddw        m1, m3\n    paddw        m1, m0\n    psraw        m1, 5\n    packuswb     m1, m1\n%ifidn %1, avg\n    pavgb        m1, m2\n%endif\n    movq     [dstq], m1\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "pshufb       m0, m7\n    pmaddubsw    m0, m6\n    add        srcq, srcstrideq\n    paddw        m1, m4\n    paddw        m1, m3\n    paddw        m1, m0\n    psraw        m1, 5\n    packuswb     m1, m1\n%ifidn %1, avg\n    pavgb        m1, m2\n%endif\n    movq     [dstq], m1\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "f946cac2d9fd8a816a72fe4fad81587b14af53fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f946cac2d9fd8a816a72fe4fad81587b14af53fc/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 366}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8, 9\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16, 17\n\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "INIT_MMX mmxext\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 8, 16*notcpuflag(sse2), dst, src, dstride, srcstride, h\n%if notcpuflag(ssse3)\n    pxor         m7, m7\n%else\n    mova         m7, [coeff16_0]\n%endif\n.loop:\n    movu         m0, [srcq]\n%if cpuflag(ssse3)\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "RET\n\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 8, 16*notcpuflag(sse2), dst, src, dstride, srcstride, h\n%if notcpuflag(ssse3)\n    pxor         m7, m7\n%else\n    mova         m7, [coeff16_0]\n%endif\n.loop:\n    movu         m0, [srcq]\n%if cpuflag(ssse3)\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7\n    paddw        m4, [PW_ROUND]\n    palignr      m1, m6, m0, 4\n    pmaddubsw    m1, [coeff16_1]\n    add        srcq, srcstrideq\n    paddw        m2, m5\n    palignr      m5, m6, m0, 8\n    pmaddubsw    m5, [coeff16_1]\n    palignr      m6, m0, 12\n    pmaddubsw    m6, m7\n    paddw        m2, [PW_ROUND]\n    paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n%else\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n%else\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n%endif\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 8+2*ARCH_X86_64, dst, src, dstride, srcstride, h\n%if cpuflag(ssse3)\n    mova         m4, [PW_ROUND]\n    mova         m5, [coeff8_0]\n%if ARCH_X86_64\n    mova         m8, [coeff8_1]\n    mova         m9, [coeff8_2]\n%endif\n    mova         m6, [coeff8_3]\n    mova         m7, [shuffle_mask8]\n%else\n    pxor         m7, m7\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movq         m0, [srcq]\n    movq         m1, [srcq+1]\n    punpcklbw    m0, m1\n    pmaddubsw    m1, m0, m5\n    pshufd       m2, m0, q2301\n%if ARCH_X86_64\n    pmaddubsw    m2, m8\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, m9\n%else\n    pmaddubsw    m2, [coeff8_1]\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, [coeff8_2]\n%endif\n    paddw        m1, m2\n%ifidn %1, avg\n    movq         m2, [dstq]\n%endif\n    pshufb       m0, m7\n    pmaddubsw    m0, m6\n    add        srcq, srcstrideq\n    paddw        m1, m4\n    paddw        m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "pmaddubsw    m1, m0, m5\n    pshufd       m2, m0, q2301\n%if ARCH_X86_64\n    pmaddubsw    m2, m8\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, m9\n%else\n    pmaddubsw    m2, [coeff8_1]\n    pshufd       m3, m0, q3120\n    pmaddubsw    m3, [coeff8_2]\n%endif\n    paddw        m1, m2\n%ifidn %1, avg\n    movq         m2, [dstq]\n%endif\n    pshufb       m0, m7\n    pmaddubsw    m0, m6\n    add        srcq, srcstrideq\n    paddw        m1, m4\n    paddw        m1, m3\n    paddw        m1, m0\n    psraw        m1, 5\n    packuswb     m1, m1\n%ifidn %1, avg\n    pavgb        m1, m2\n%endif\n    movq     [dstq], m1\n%else\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n%endif\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:15", "text": "movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "1d040c527d5877ede8e54e0e4bb3f737b74f1f21", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1d040c527d5877ede8e54e0e4bb3f737b74f1f21/libavcodec/x86/qpeldsp.asm", "line_start": 561, "line_end": 602}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\npw_15: times 8 dw 15\ncextern pw_16\npw_20: times 8 dw 20\n\nshuffle_mask16_0: db 2, 1, 1, 0, 0, 0, 1, 0, 1,  2,  2,  3,  4,  3,  5,  4\nshuffle_mask16_1: db 5, 6, 6, 7, 8, 7, 9, 8, 9, 10, 10, 11, 12, 11, 13, 12\nshuffle_mask16_2: db 0, 1, 1, 2, 3, 2, 3, 3,  3, 2,  2,  1, -1, -1, -1, -1\ncoeff16_0: times 2 db -1,  3, -1,  3,  3, -1,  3, -1\ncoeff16_1: times 2 db 20, -6, 20, -6, -6, 20, -6, 20\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS_L2 2\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%2_l2, 5,6,5\n    movu         m0, [r1]\n    mova         m1, [r2]\n    pcmpeqb      m4, m4\n    add          r1, r4\n    add          r2, %1\n    pxor         m0, m4\n    pxor         m1, m4\n    pavgb        m0, m1\n    pxor         m0, m4\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "%macro PUT_NO_RND_PIXELS_L2 2\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%2_l2, 5,6,5\n    movu         m0, [r1]\n    mova         m1, [r2]\n    pcmpeqb      m4, m4\n    add          r1, r4\n    add          r2, %1\n    pxor         m0, m4\n    pxor         m1, m4\n    pavgb        m0, m1\n    pxor         m0, m4\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5\n    pcmpeqb      m4, m4\nput_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname:\n    mov         r5d, %1\n.loop:\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+%1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8, 9\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16, 17\n\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 8, 16*notcpuflag(sse2), dst, src, dstride, srcstride, h\n%if notcpuflag(ssse3)\n    pxor         m7, m7\n%else\n    mova         m7, [coeff16_0]\n%endif\n.loop:\n    movu         m0, [srcq]\n%if cpuflag(ssse3)\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "pxor         m7, m7\n%else\n    mova         m7, [coeff16_0]\n%endif\n.loop:\n    movu         m0, [srcq]\n%if cpuflag(ssse3)\n    pshufb       m1, m0, [shuffle_mask16_0]\n    pmaddubsw    m2, m1, m7\n    pshufb       m0, [shuffle_mask16_1]\n    pmaddubsw    m4, m0, m7\n    palignr      m3, m0, m1, 4\n    pmaddubsw    m3, [coeff16_1]\n    palignr      m5, m0, m1, 8\n    movd         m6, [srcq+13]\n    pmaddubsw    m5, [coeff16_1]\n    paddw        m2, m3\n    palignr      m3, m0, m1, 12\n    pshufb       m6, [shuffle_mask16_2]\n    pmaddubsw    m3, m7\n    paddw        m4, [PW_ROUND]\n    palignr      m1, m6, m0, 4\n    pmaddubsw    m1, [coeff16_1]\n    add        srcq, srcstrideq\n    paddw        m2, m5\n    palignr      m5, m6, m0, 8\n    pmaddubsw    m5, [coeff16_1]\n    palignr      m6, m0, 12\n    pmaddubsw    m6, m7\n    paddw        m2, [PW_ROUND]\n    paddw        m4, m1\n    paddw        m2, m3\n    paddw        m4, m5\n    psraw        m2, 5\n    paddw        m4, m6\n    psraw        m4, 5\n    packuswb     m2, m4\n%ifidn %1, avg\n    pavgb        m2, [dstq]\n%endif\n    mova     [dstq], m2\n%else\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "mova     [dstq], m2\n%else\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n%endif\n    add        dstq, dstrideq\n    dec          hd\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\nINIT_XMM ssse3\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0e1c1d6b3245a5bf46b5cb5c22cd16a9138a21b/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 545}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\npw_15: times 8 dw 15\ncextern pw_16\npw_20: times 8 dw 20\n\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS_L2 2\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%2_l2, 5,6,5\n    movu         m0, [r1]\n    mova         m1, [r2]\n    pcmpeqb      m4, m4\n    add          r1, r4\n    add          r2, %1\n    pxor         m0, m4\n    pxor         m1, m4\n    pavgb        m0, m1\n    pxor         m0, m4\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5\n    pcmpeqb      m4, m4\nput_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname:\n    mov         r5d, %1\n.loop:\n    movu         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "mova         m1, [r2]\n    pcmpeqb      m4, m4\n    add          r1, r4\n    add          r2, %1\n    pxor         m0, m4\n    pxor         m1, m4\n    pavgb        m0, m1\n    pxor         m0, m4\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels%1x%1_l2, 5,6,5\n    pcmpeqb      m4, m4\nput_no_rnd_pixels%1x%1_after_prologue_ %+ cpuname:\n    mov         r5d, %1\n.loop:\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+%1]\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    movu         m0, [r1]\n    add          r1, r4\n    movu         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "add          r1, r4\n    mova         m2, [r2+2*%1]\n    mova         m3, [r2+3*%1]\n    add          r2, 4*%1\n    pxor         m0, m4\n    pxor         m1, m4\n    pxor         m2, m4\n    pxor         m3, m4\n    pavgb        m0, m2\n    pavgb        m1, m3\n    pxor         m0, m4\n    pxor         m1, m4\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS_L2 8, 9\nINIT_XMM sse2\nPUT_NO_RND_PIXELS_L2 16, 17\n\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\nINIT_MMX mmxext\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 493}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "INIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "a3d747f3446e828c5e03880d0459d51994f6ec15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3d747f3446e828c5e03880d0459d51994f6ec15/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 493}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\npw_15: times 8 dw 15\ncextern pw_16\npw_20: times 8 dw 20\n\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS8_L2 0\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x9_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2\n\n\n; void ff_put_no_rnd_pixels16x17_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\n%macro PUT_NO_RND_PIXELS16_l2 0\ncglobal put_no_rnd_pixels16x17_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    jmp          put_no_rnd_pixels16x16_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    jmp          put_no_rnd_pixels16x16_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n    punpcklbw    m0, m2\n    mova       [r5], m0\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%define R5 rsp\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "dad0c010761cfaf98ddebdb188300f117c370295", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dad0c010761cfaf98ddebdb188300f117c370295/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 518}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m4\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n%if mmsize == 8\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    punpcklbw    m2, m4\n    punpckhbw    m3, m4\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "9beecb26704e8d9a4a27c07fd8da05eb94cf45ed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9beecb26704e8d9a4a27c07fd8da05eb94cf45ed/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 7, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m4, m4\n.looph:\n    movu         m0, [r1]\n    mova         m1, m0\n%if mmsize == 8\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    punpcklbw    m2, m4\n    punpckhbw    m3, m4\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n%else\n    punpcklbw    m0, m4\n    punpckhbw    m1, m4\n    mova       [r5], m0\n    mova [r5+0x110], m1\n%endif\n    add          r1, r3\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 16/(mmsize/2)\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+0 * mmsize]\n    mova         m1, [r5+1 * mmsize]\n    mova         m2, [r5+2 * mmsize]\n    mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "9beecb26704e8d9a4a27c07fd8da05eb94cf45ed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9beecb26704e8d9a4a27c07fd8da05eb94cf45ed/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "mova         m3, [r5+3 * mmsize]\n    add          r1, mmsize/2\n    QPEL_V_LOW [r5+2*mmsize],  [r5+1*mmsize],  [r5+0*mmsize],  [r5+4*mmsize],  [r0]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+0*mmsize],  [r5+0*mmsize],  [r5+5*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+0*mmsize],  [r5+1*mmsize],  [r5+6*mmsize],  [r0]\n    QPEL_V_LOW [r5+0*mmsize],  [r5+1*mmsize],  [r5+2*mmsize],  [r5+7*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+1*mmsize],  [r5+2*mmsize],  [r5+3*mmsize],  [r5+8*mmsize],  [r0]\n    QPEL_V_LOW [r5+2*mmsize],  [r5+3*mmsize],  [r5+4*mmsize],  [r5+9*mmsize],  [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+3*mmsize],  [r5+4*mmsize],  [r5+5*mmsize],  [r5+10*mmsize], [r0]\n    QPEL_V_LOW [r5+4*mmsize],  [r5+5*mmsize],  [r5+6*mmsize],  [r5+11*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+5*mmsize],  [r5+6*mmsize],  [r5+7*mmsize],  [r5+12*mmsize], [r0]\n    QPEL_V_LOW [r5+6*mmsize],  [r5+7*mmsize],  [r5+8*mmsize],  [r5+13*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+7*mmsize],  [r5+8*mmsize],  [r5+ 9*mmsize], [r5+14*mmsize], [r0]\n    QPEL_V_LOW [r5+8*mmsize],  [r5+9*mmsize],  [r5+10*mmsize], [r5+15*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 9*mmsize], [r5+10*mmsize], [r5+11*mmsize], [r5+16*mmsize], [r0]\n    QPEL_V_LOW [r5+10*mmsize], [r5+11*mmsize], [r5+12*mmsize], [r5+16*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+11*mmsize], [r5+12*mmsize], [r5+13*mmsize], [r5+15*mmsize], [r0]\n    QPEL_V_LOW [r5+12*mmsize], [r5+13*mmsize], [r5+14*mmsize], [r5+14*mmsize], [r0+r2]\n\n    add    r5, 17*mmsize\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "9beecb26704e8d9a4a27c07fd8da05eb94cf45ed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9beecb26704e8d9a4a27c07fd8da05eb94cf45ed/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 7, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m2, m2\n.looph:\n    movq         m0, [r1]\n    add          r1, r3\n%if mmsize == 8\n    mova         m1, m0\n    punpcklbw    m0, m2\n    punpckhbw    m1, m2\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n%else\n    punpcklbw    m0, m2\n    mova       [r5], m0\n%endif\n    add          r5, mmsize\n    dec r4d\n    jne .looph\n\n\n%if mmsize == 8\n    mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n%define R5 r5\n%else\n%define R5 rsp\n%endif\n\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "9beecb26704e8d9a4a27c07fd8da05eb94cf45ed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9beecb26704e8d9a4a27c07fd8da05eb94cf45ed/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n%define R5 r5\n%else\n%define R5 rsp\n%endif\n\n    mova         m0, [R5+0 * mmsize]\n    mova         m1, [R5+1 * mmsize]\n    mova         m2, [R5+2 * mmsize]\n    mova         m3, [R5+3 * mmsize]\n    QPEL_V_LOW [R5+2*mmsize], [R5+1*mmsize], [R5+0*mmsize], [R5+4*mmsize], [r0]\n    QPEL_V_LOW [R5+1*mmsize], [R5+0*mmsize], [R5+0*mmsize], [R5+5*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+0*mmsize], [R5+0*mmsize], [R5+1*mmsize], [R5+6*mmsize], [r0]\n    QPEL_V_LOW [R5+0*mmsize], [R5+1*mmsize], [R5+2*mmsize], [R5+7*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+1*mmsize], [R5+2*mmsize], [R5+3*mmsize], [R5+8*mmsize], [r0]\n    QPEL_V_LOW [R5+2*mmsize], [R5+3*mmsize], [R5+4*mmsize], [R5+8*mmsize], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [R5+3*mmsize], [R5+4*mmsize], [R5+5*mmsize], [R5+7*mmsize], [r0]\n    QPEL_V_LOW [R5+4*mmsize], [R5+5*mmsize], [R5+6*mmsize], [R5+6*mmsize], [r0+r2]\n\n%if mmsize == 8\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n%endif\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "9beecb26704e8d9a4a27c07fd8da05eb94cf45ed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9beecb26704e8d9a4a27c07fd8da05eb94cf45ed/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 578}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:15", "text": "MPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd\n\nINIT_XMM sse2\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "9beecb26704e8d9a4a27c07fd8da05eb94cf45ed", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9beecb26704e8d9a4a27c07fd8da05eb94cf45ed/libavcodec/x86/qpeldsp.asm", "line_start": 561, "line_end": 578}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pw_3\npw_15: times 4 dw 15\ncextern pw_16\npw_20: times 4 dw 20\n\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS8_L2 0\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x9_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "405465700cf8fd529f2dbbc0317eab6a9ede23f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/405465700cf8fd529f2dbbc0317eab6a9ede23f2/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m7\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "405465700cf8fd529f2dbbc0317eab6a9ede23f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/405465700cf8fd529f2dbbc0317eab6a9ede23f2/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 4\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    add          r1, 4\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "405465700cf8fd529f2dbbc0317eab6a9ede23f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/405465700cf8fd529f2dbbc0317eab6a9ede23f2/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "405465700cf8fd529f2dbbc0317eab6a9ede23f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/405465700cf8fd529f2dbbc0317eab6a9ede23f2/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 144\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "405465700cf8fd529f2dbbc0317eab6a9ede23f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/405465700cf8fd529f2dbbc0317eab6a9ede23f2/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "405465700cf8fd529f2dbbc0317eab6a9ede23f2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/405465700cf8fd529f2dbbc0317eab6a9ede23f2/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 544}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0, 8\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "188df9549c5c120728b43f953ec281e67e4bb3c3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/188df9549c5c120728b43f953ec281e67e4bb3c3/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "bcf7293a211b7c06e54d1c16a85f6c8e3826a7e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bcf7293a211b7c06e54d1c16a85f6c8e3826a7e8/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "bcf7293a211b7c06e54d1c16a85f6c8e3826a7e8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bcf7293a211b7c06e54d1c16a85f6c8e3826a7e8/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_1\ncextern pw_3\npw_15: times 4 dw 15\ncextern pw_16\npw_20: times 4 dw 20\n\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS8_L2 0\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x9_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2\n\n\n; void ff_put_no_rnd_pixels16x17_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\n%macro PUT_NO_RND_PIXELS16_l2 0\ncglobal put_no_rnd_pixels16x17_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    jmp          put_no_rnd_pixels16x16_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    jmp          put_no_rnd_pixels16x16_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0, 8\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m7\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 4\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    add          r1, 4\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "MPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "7b56259dd5bc3eb08c1dc2dfe6b31f71db160378", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7b56259dd5bc3eb08c1dc2dfe6b31f71db160378/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 545}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pb_1\ncextern pw_3\ncextern pw_15\ncextern pw_16\ncextern pw_20\n\n\nSECTION .text\n\n%macro PUT_NO_RND_PIXELS8_L2 0\n; void ff_put_no_rnd_pixels8x9_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x9_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]\n    add          r1, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    jmp          put_no_rnd_pixels8x8_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels8x8_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                 ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels8x8_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels8x8_after_prologue_ %+ cpuname:\n    mov         r5d, 8\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2\n\n\n; void ff_put_no_rnd_pixels16x17_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\n%macro PUT_NO_RND_PIXELS16_l2 0\ncglobal put_no_rnd_pixels16x17_l2, 5,6\n    pcmpeqb      m6, m6\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    jmp          put_no_rnd_pixels16x16_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    jmp          put_no_rnd_pixels16x16_after_prologue_ %+ cpuname\n\n; void ff_put_no_rnd_pixels16x16_l2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,\n;                                   ptrdiff_t dstStride, ptrdiff_t src1Stride)\ncglobal put_no_rnd_pixels16x16_l2, 5,6\n    pcmpeqb      m6, m6\nput_no_rnd_pixels16x16_after_prologue_ %+ cpuname:\n    mov         r5d, 16\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0, 8\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m7\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 4\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    add          r1, 4\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    mov    r0, r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    mov    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d3bd1318b3ef38c34af52ee65fedc27e183f06d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d3bd1318b3ef38c34af52ee65fedc27e183f06d9/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 543}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 4\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    add          r1, 4\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d46414b46becc927e89b7824424df9e34d05c8e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d46414b46becc927e89b7824424df9e34d05c8e7/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    mov         r4d, 2\n    mov          r1, r0\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    lea    r0, [r1+4]\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d46414b46becc927e89b7824424df9e34d05c8e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d46414b46becc927e89b7824424df9e34d05c8e7/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 14*dstStride\n    mov         r4d, 4\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*8]\n    lea          r1, [r1+r2*4]\n    lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "INIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 6*dstStride\n    mov         r4d, 2\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*4]\n    lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    add    r0, r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": ".loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "529a048c314d63741f3dd1e9ffbf77c5a68d2d0e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529a048c314d63741f3dd1e9ffbf77c5a68d2d0e/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 555}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pb_1\ncextern pw_3\ncextern pw_15\ncextern pw_16\ncextern pw_20\n\n\nSECTION .text\n\n; void ff_put_no_rnd_pixels8_l2(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                               ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\n%macro PUT_NO_RND_PIXELS8_L2 0\ncglobal put_no_rnd_pixels8_l2, 6,6\n    pcmpeqb      m6, m6\n    test        r5d, 1\n    je .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "je .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2\n\n\n; void ff_put_no_rnd_pixels16_l2(uint8_t *dst, uint8_t *src1, uint8_t *src2,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2\n\n\n; void ff_put_no_rnd_pixels16_l2(uint8_t *dst, uint8_t *src1, uint8_t *src2,\n;                                ptrdiff_t dstStride, ptrdiff_t src1Stride, int h)\n%macro PUT_NO_RND_PIXELS16_l2 0\ncglobal put_no_rnd_pixels16_l2, 6,6\n    pcmpeqb      m6, m6\n    test        r5d, 1\n    je .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0, 8\n    pxor         m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0, 8\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m7\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 14*dstStride\n    mov         r4d, 4\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 14*dstStride\n    mov         r4d, 4\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*8]\n    lea          r1, [r1+r2*4]\n    lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "MPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 6*dstStride\n    mov         r4d, 2\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*4]\n    lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52a77128fde66b4d3d9ecd5c72cb4cf8e8f0eed4/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 545}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:1", "text": ";******************************************************************************\n;* mpeg4 qpel\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2013 Daniel Kang\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ncextern pb_1\ncextern pw_3\ncextern pw_15\ncextern pw_16\ncextern pw_20\n\n\nSECTION .text\n\n; void ff_put_no_rnd_pixels8_l2(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)\n%macro PUT_NO_RND_PIXELS8_L2 0\ncglobal put_no_rnd_pixels8_l2, 6,6\n    movsxdifnidn r4, r4d\n    movsxdifnidn r3, r3d\n    pcmpeqb      m6, m6\n    test        r5d, 1\n    je .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:2", "text": "pcmpeqb      m6, m6\n    test        r5d, 1\n    je .loop\n    mova         m0, [r1]\n    mova         m1, [r2]\n    add          r1, r4\n    add          r2, 8\n    pxor         m0, m6\n    pxor         m1, m6\n    PAVGB        m0, m1\n    pxor         m0, m6\n    mova       [r0], m0\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    mova         m0, [r1]\n    add          r1, r4\n    mova         m1, [r1]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:3", "text": "pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    add          r0, r3\n    mova       [r0], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 4\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS8_L2\n\n\n; void ff_put_no_rnd_pixels16_l2(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)\n%macro PUT_NO_RND_PIXELS16_l2 0\ncglobal put_no_rnd_pixels16_l2, 6,6\n    movsxdifnidn r3, r3d\n    movsxdifnidn r4, r4d\n    pcmpeqb      m6, m6\n    test        r5d, 1\n    je .loop\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:4", "text": "pxor         m1, m6\n    add          r1, r4\n    add          r2, 16\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    dec r5d\n.loop:\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2]\n    mova         m3, [r2+8]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    mova         m0, [r1]\n    mova         m1, [r1+8]\n    add          r1, r4\n    mova         m2, [r2+16]\n    mova         m3, [r2+24]\n    pxor         m0, m6\n    pxor         m1, m6\n    pxor         m2, m6\n    pxor         m3, m6\n    PAVGB        m0, m2\n    PAVGB        m1, m3\n    pxor         m0, m6\n    pxor         m1, m6\n    mova       [r0], m0\n    mova     [r0+8], m1\n    add          r0, r3\n    add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:5", "text": "add          r2, 32\n    sub         r5d, 2\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nPUT_NO_RND_PIXELS16_l2\n\n%macro MPEG4_QPEL16_H_LOWPASS 1\ncglobal %1_mpeg4_qpel16_h_lowpass, 5, 5, 0, 16\n    movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:6", "text": "paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    mova    [rsp+8], m0\n    mova         m0, [r1+5]\n    mova         m5, m0\n    mova         m6, m0\n    psrlq        m0, 8\n    psrlq        m5, 16\n    punpcklbw    m0, m7\n    punpcklbw    m5, m7\n    paddw        m2, m0\n    paddw        m3, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    mova         m2, m6\n    psrlq        m6, 24\n    punpcklbw    m2, m7\n    punpcklbw    m6, m7\n    pmullw       m3, [pw_3]\n    paddw        m1, m2\n    paddw        m4, m6\n    pmullw       m1, [pw_20]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    mova         m1, [rsp+8]\n    packuswb     m1, m3\n    OP_MOV     [r0], m1, m4\n    mova         m1, [r1+9]\n    mova         m4, m1\n    mova         m3, m1\n    psrlq        m1, 8\n    psrlq        m4, 16\n    punpcklbw    m1, m7\n    punpcklbw    m4, m7\n    paddw        m5, m1\n    paddw        m0, m4\n    paddw        m5, m5\n    psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:7", "text": "psubw        m0, m5\n    mova         m5, m3\n    psrlq        m3, 24\n    pmullw       m0, [pw_3]\n    punpcklbw    m3, m7\n    paddw        m2, m3\n    psubw        m0, m2\n    mova         m2, m5\n    punpcklbw    m2, m7\n    punpckhbw    m5, m7\n    paddw        m6, m2\n    pmullw       m6, [pw_20]\n    paddw        m0, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    paddw        m3, m5\n    pshufw       m6, m5, 0xf9\n    paddw        m6, m4\n    pshufw       m4, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m4, m1\n    paddw        m5, m2\n    paddw        m6, m6\n    psubw        m4, m6\n    pmullw       m3, [pw_20]\n    pmullw       m4, [pw_3]\n    psubw        m3, m5\n    paddw        m4, [PW_ROUND]\n    paddw        m4, m3\n    psraw        m4, 5\n    packuswb     m0, m4\n    OP_MOV   [r0+8], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\n%macro PUT_OP 2-3\n    mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:8", "text": "mova %1, %2\n%endmacro\n\n%macro AVG_OP 2-3\n    mova  %3, %1\n    pavgb %2, %3\n    mova  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL16_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL16_H_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_H_LOWPASS 1\ncglobal %1_mpeg4_qpel8_h_lowpass, 5, 5, 0, 8\n    movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n    pxor         m7, m7\n.loop:\n    mova         m0, [r1]\n    mova         m1, m0\n    mova         m2, m0\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    pshufw       m5, m0, 0x90\n    pshufw       m6, m0, 0x41\n    mova         m3, m2\n    mova         m4, m2\n    psllq        m2, 8\n    psllq        m3, 16\n    psllq        m4, 24\n    punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:9", "text": "punpckhbw    m2, m7\n    punpckhbw    m3, m7\n    punpckhbw    m4, m7\n    paddw        m5, m3\n    paddw        m6, m2\n    paddw        m5, m5\n    psubw        m6, m5\n    pshufw       m5, m0, 0x6\n    pmullw       m6, [pw_3]\n    paddw        m0, m4\n    paddw        m5, m1\n    pmullw       m0, [pw_20]\n    psubw        m0, m5\n    paddw        m6, [PW_ROUND]\n    paddw        m0, m6\n    psraw        m0, 5\n    movh         m5, [r1+5]\n    punpcklbw    m5, m7\n    pshufw       m6, m5, 0xf9\n    paddw        m1, m5\n    paddw        m2, m6\n    pshufw       m6, m5, 0xbe\n    pshufw       m5, m5, 0x6f\n    paddw        m3, m6\n    paddw        m4, m5\n    paddw        m2, m2\n    psubw        m3, m2\n    pmullw       m1, [pw_20]\n    pmullw       m3, [pw_3]\n    psubw        m3, m4\n    paddw        m1, [PW_ROUND]\n    paddw        m3, m1\n    psraw        m3, 5\n    packuswb     m0, m3\n    OP_MOV     [r0], m0, m4\n    add          r1, r3\n    add          r0, r2\n    dec r4d\n    jne .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:10", "text": "%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OP\nMPEG4_QPEL8_H_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OP\nMPEG4_QPEL8_H_LOWPASS put_no_rnd\n\n\n\n%macro QPEL_V_LOW 5\n    paddw      m0, m1\n    mova       m4, [pw_20]\n    pmullw     m4, m0\n    mova       m0, %4\n    mova       m5, %1\n    paddw      m5, m0\n    psubw      m4, m5\n    mova       m5, %2\n    mova       m6, %3\n    paddw      m5, m3\n    paddw      m6, m2\n    paddw      m6, m6\n    psubw      m5, m6\n    pmullw     m5, [pw_3]\n    paddw      m4, [PW_ROUND]\n    paddw      m5, m4\n    psraw      m5, 5\n    packuswb   m5, m5\n    OP_MOV     %5, m5, m7\n    SWAP 0,1,2,3\n%endmacro\n\n%macro MPEG4_QPEL16_V_LOWPASS 1\ncglobal %1_mpeg4_qpel16_v_lowpass, 4, 6, 0, 544\n    movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:11", "text": "movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n\n    mov         r4d, 17\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    mova         m2, [r1+8]\n    mova         m3, [r1+8]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    punpcklbw    m2, m7\n    punpckhbw    m3, m7\n    mova       [r5], m0\n    mova  [r5+0x88], m1\n    mova [r5+0x110], m2\n    mova [r5+0x198], m3\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 14*dstStride\n    mov         r4d, 4\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*8]\n    lea          r1, [r1+r2*4]\n    lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:12", "text": "QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x48], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x50], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x58], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x28], [r5+0x30], [r5+0x38], [r5+0x60], [r0]\n    QPEL_V_LOW [r5+0x30], [r5+0x38], [r5+0x40], [r5+0x68], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x38], [r5+0x40], [r5+0x48], [r5+0x70], [r0]\n    QPEL_V_LOW [r5+0x40], [r5+0x48], [r5+0x50], [r5+0x78], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x48], [r5+0x50], [r5+0x58], [r5+0x80], [r0]\n    QPEL_V_LOW [r5+0x50], [r5+0x58], [r5+0x60], [r5+0x80], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x58], [r5+0x60], [r5+0x68], [r5+0x78], [r0]\n    QPEL_V_LOW [r5+0x60], [r5+0x68], [r5+0x70], [r5+0x70], [r0+r2]\n\n    add    r5, 0x88\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\n%macro PUT_OPH 2-3\n    movh %1, %2\n%endmacro\n\n%macro AVG_OPH 2-3\n    movh  %3, %1\n    pavgb %2, %3\n    movh  %1, %2\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n\n    mov         r4d, 9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:13", "text": "INIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL16_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL16_V_LOWPASS put_no_rnd\n\n\n\n%macro MPEG4_QPEL8_V_LOWPASS 1\ncglobal %1_mpeg4_qpel8_v_lowpass, 4, 6, 0, 288\n    movsxdifnidn r2, r2d\n    movsxdifnidn r3, r3d\n\n    mov         r4d, 9\n    mov          r5, rsp\n    pxor         m7, m7\n.looph:\n    mova         m0, [r1]\n    mova         m1, [r1]\n    punpcklbw    m0, m7\n    punpckhbw    m1, m7\n    mova       [r5], m0\n    mova  [r5+0x48], m1\n    add          r5, 8\n    add          r1, r3\n    dec r4d\n    jne .looph\n\n\n    ; NOTE: r1 CHANGES VALUES: r1 -> 4 - 6*dstStride\n    mov         r4d, 2\n    mov          r1, 4\n    neg          r2\n    lea          r1, [r1+r2*4]\n    lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/qpeldsp.asm:14", "text": "lea          r1, [r1+r2*2]\n    neg          r2\n    mov          r5, rsp\n.loopv:\n    pxor         m7, m7\n    mova         m0, [r5+ 0x0]\n    mova         m1, [r5+ 0x8]\n    mova         m2, [r5+0x10]\n    mova         m3, [r5+0x18]\n    QPEL_V_LOW [r5+0x10], [r5+ 0x8], [r5+ 0x0], [r5+0x20], [r0]\n    QPEL_V_LOW [r5+ 0x8], [r5+ 0x0], [r5+ 0x0], [r5+0x28], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x0], [r5+ 0x8], [r5+0x30], [r0]\n    QPEL_V_LOW [r5+ 0x0], [r5+ 0x8], [r5+0x10], [r5+0x38], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+ 0x8], [r5+0x10], [r5+0x18], [r5+0x40], [r0]\n    QPEL_V_LOW [r5+0x10], [r5+0x18], [r5+0x20], [r5+0x40], [r0+r2]\n    lea    r0, [r0+r2*2]\n    QPEL_V_LOW [r5+0x18], [r5+0x20], [r5+0x28], [r5+0x38], [r0]\n    QPEL_V_LOW [r5+0x20], [r5+0x28], [r5+0x30], [r5+0x30], [r0+r2]\n\n    add    r5, 0x48\n    add    r0, r1\n    dec r4d\n    jne .loopv\n    RET\n%endmacro\n\nINIT_MMX mmxext\n%define PW_ROUND pw_16\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put\n%define PW_ROUND pw_16\n%define OP_MOV AVG_OPH\nMPEG4_QPEL8_V_LOWPASS avg\n%define PW_ROUND pw_15\n%define OP_MOV PUT_OPH\nMPEG4_QPEL8_V_LOWPASS put_no_rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/qpeldsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/qpeldsp.asm", "line_start": 521, "line_end": 558}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:1", "text": ";******************************************************************************\n;* ASM-optimized functions for the RV30 and RV40 decoders\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n; 0 1 2 3 (words) -> 1 3 2 0 1 3 2 0 (words)\nshuffle: times 2 db 2, 3, 6, 7, 4, 5, 0, 1\n\npw_13:   times 8 dw 13\npw_17:   times 8 dw 17\npw_7:    times 8 dw  7\npw_col_coeffs: dw -17, -7, -13, 13, 7, -17, 13, 13\npd_512:  times 4 dd 0x200\n\nSECTION .text\n\n%macro IDCT_DC_NOROUND 1\n    imul   %1, 13*13*3\n    sar    %1, 11\n%endmacro\n\n%macro IDCT_DC_ROUND 1\n    imul   %1, 13*13\n    add    %1, 0x200\n    sar    %1, 10\n%endmacro\n\nINIT_XMM sse2\ncglobal rv34_idct_dc_noround, 1, 2, 1\n    movsx   r1, word [r0]\n    IDCT_DC_NOROUND r1\n    movd    m0, r1d\n    SPLATW  m0, m0\n    mova    [r0+ 0], m0\n    mova    [r0+16], m0\n    RET\n\n%macro COL_TRANSFORM  3\n    ; -17*c1-7*c3 | 13*c0-13*c2 | 7*c1-17*c3 | 13*c1+13*c2 = -z3 | z1 | z2 | z0\n    pmaddwd      %2, m7\n    movd         m3, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv34dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:2", "text": "%macro IDCT_DC_ROUND 1\n    imul   %1, 13*13\n    add    %1, 0x200\n    sar    %1, 10\n%endmacro\n\nINIT_XMM sse2\ncglobal rv34_idct_dc_noround, 1, 2, 1\n    movsx   r1, word [r0]\n    IDCT_DC_NOROUND r1\n    movd    m0, r1d\n    SPLATW  m0, m0\n    mova    [r0+ 0], m0\n    mova    [r0+16], m0\n    RET\n\n%macro COL_TRANSFORM  3\n    ; -17*c1-7*c3 | 13*c0-13*c2 | 7*c1-17*c3 | 13*c1+13*c2 = -z3 | z1 | z2 | z0\n    pmaddwd      %2, m7\n    movd         m3, %1\n    pshufd       %3, %2, q0123       ; z0 | z2 | z1 | -z3\n    psignd       %2, m7              ; z3 | z1 |-z2 | z0\n    paddd        %3, m5\n    paddd        %2, %3              ; z0+z3 | z1+z2 | z1-z2 | z0-z3 (+round)\n%ifidn %3,m1\n    pxor         m1, m1\n%endif\n    psrad        %2, 10\n    punpcklbw    m3, m1\n    packssdw     %2, %2\n    paddw        %2, m3\n    packuswb     %2, %2\n    movd         %1, %2\n%endmacro\n\nINIT_XMM ssse3\n; ff_rv34_idct_add_ssse3(uint8_t *dst, ptrdiff_t stride, int16_t *block)\ncglobal rv34_idct_add, 3, 3, 8, dst, stride, block\n    ; row transform\n    movq            m0, [blockq + 0*8]\n    movq            m1, [blockq + 1*8]\n    movq            m2, [blockq + 2*8]\n    movq            m3, [blockq + 3*8]\n    pxor            m7, m7\n    mova            m6, [shuffle]\n    mova [blockq +  0], m7\n    mova [blockq + 16], m7\n    mova            m4, m0\n    mova            m5, [pw_13]\n    paddsw          m0, m2                 ; b0 + b2\n    pshufb          m1, m6\n    psubsw          m4, m2                 ; b0 - b2\n    pmullw          m0, m5                 ; *13 = z0\n    pshufb          m3, m6\n    pmullw          m4, m5                 ; *13 = z1\n    mova            m5, m1\n    pmullw          m1, [pw_17]            ; b1*17\n    pmullw          m5, [pw_7]             ; b1* 7\n    pshufb          m0, m6\n    mova            m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv34dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:3", "text": "movq            m1, [blockq + 1*8]\n    movq            m2, [blockq + 2*8]\n    movq            m3, [blockq + 3*8]\n    pxor            m7, m7\n    mova            m6, [shuffle]\n    mova [blockq +  0], m7\n    mova [blockq + 16], m7\n    mova            m4, m0\n    mova            m5, [pw_13]\n    paddsw          m0, m2                 ; b0 + b2\n    pshufb          m1, m6\n    psubsw          m4, m2                 ; b0 - b2\n    pmullw          m0, m5                 ; *13 = z0\n    pshufb          m3, m6\n    pmullw          m4, m5                 ; *13 = z1\n    mova            m5, m1\n    pmullw          m1, [pw_17]            ; b1*17\n    pmullw          m5, [pw_7]             ; b1* 7\n    pshufb          m0, m6\n    mova            m2, m3\n    pmullw          m3, [pw_17]            ; b3*17\n    pmullw          m2, [pw_7]             ; b3* 7\n    pshufb          m4, m6\n    mova            m7, [pw_col_coeffs]\n    paddsw          m1, m2                 ; z3 = b1*17 + b3* 7\n    psubsw          m5, m3                 ; z2 = b1* 7 - b3*17\n    mova            m2, m0\n    mova            m6, m4\n    paddsw          m0, m1                 ; z0 + z3\n    paddsw          m4, m5                 ; z1 + z2\n    psubsw          m2, m1                 ; z0 - z3\n    psubsw          m6, m5                 ; z1 - z2\n    mova            m5, [pd_512]           ; 0x200\n    COL_TRANSFORM [dstq], m0, m1\n    COL_TRANSFORM [dstq+strideq], m4, m0\n    lea                dstq, [dstq + 2*strideq]\n    COL_TRANSFORM [dstq], m6, m0\n    COL_TRANSFORM [dstq+strideq], m2, m0\n    RET\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]\n    movd       m5, [r2+r1]\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv34dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:4", "text": "; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]\n    movd       m5, [r2+r1]\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd      [r0], m2\n%if cpuflag(sse4)\n    pextrd [r0+r1], m2, 1\n    pextrd    [r2], m2, 2\n    pextrd [r2+r1], m2, 3\n%else\n    psrldq     m2, 4\n    movd   [r0+r1], m2\n    psrldq     m2, 4\n    movd      [r2], m2\n    psrldq     m2, 4\n    movd   [r2+r1], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nRV34_IDCT_DC_ADD\nINIT_XMM sse4\nRV34_IDCT_DC_ADD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv34dsp.asm", "line_start": 121, "line_end": 163}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the RV30 and RV40 decoders\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npw_row_coeffs:  times 4 dw 13\n                times 4 dw 17\n                times 4 dw  7\npd_512: times 2 dd 0x200\npw_col_coeffs:  dw 13,  13,  13, -13\n                dw 17,   7,   7, -17\n                dw 13, -13,  13,  13\n                dw -7,  17, -17,  -7\n\nSECTION .text\n\n%macro IDCT_DC_NOROUND 1\n    imul   %1, 13*13*3\n    sar    %1, 11\n%endmacro\n\n%macro IDCT_DC_ROUND 1\n    imul   %1, 13*13\n    add    %1, 0x200\n    sar    %1, 10\n%endmacro\n\nINIT_XMM sse2\ncglobal rv34_idct_dc_noround, 1, 2, 1\n    movsx   r1, word [r0]\n    IDCT_DC_NOROUND r1\n    movd    m0, r1d\n    SPLATW  m0, m0\n    mova    [r0+ 0], m0\n    mova    [r0+16], m0\n    RET\n\n; Load coeffs and perform row transform\n; Output: coeffs in mm[0467], rounder in mm5\n%macro ROW_TRANSFORM  1\n    pxor        mm7, mm7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2/libavcodec/x86/rv34dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:2", "text": "%macro IDCT_DC_ROUND 1\n    imul   %1, 13*13\n    add    %1, 0x200\n    sar    %1, 10\n%endmacro\n\nINIT_XMM sse2\ncglobal rv34_idct_dc_noround, 1, 2, 1\n    movsx   r1, word [r0]\n    IDCT_DC_NOROUND r1\n    movd    m0, r1d\n    SPLATW  m0, m0\n    mova    [r0+ 0], m0\n    mova    [r0+16], m0\n    RET\n\n; Load coeffs and perform row transform\n; Output: coeffs in mm[0467], rounder in mm5\n%macro ROW_TRANSFORM  1\n    pxor        mm7, mm7\n    mova        mm0, [%1+ 0*8]\n    mova        mm1, [%1+ 1*8]\n    mova        mm2, [%1+ 2*8]\n    mova        mm3, [%1+ 3*8]\n    mova  [%1+ 0*8], mm7\n    mova  [%1+ 1*8], mm7\n    mova  [%1+ 2*8], mm7\n    mova  [%1+ 3*8], mm7\n    mova        mm4, mm0\n    mova        mm6, [pw_row_coeffs+ 0]\n    paddsw      mm0, mm2                ; b0 + b2\n    psubsw      mm4, mm2                ; b0 - b2\n    pmullw      mm0, mm6                ; *13 = z0\n    pmullw      mm4, mm6                ; *13 = z1\n    mova        mm5, mm1\n    pmullw      mm1, [pw_row_coeffs+ 8] ; b1*17\n    pmullw      mm5, [pw_row_coeffs+16] ; b1* 7\n    mova        mm7, mm3\n    pmullw      mm3, [pw_row_coeffs+ 8] ; b3*17\n    pmullw      mm7, [pw_row_coeffs+16] ; b3* 7\n    paddsw      mm1, mm7                ; z3 = b1*17 + b3* 7\n    psubsw      mm5, mm3                ; z2 = b1* 7 - b3*17\n    mova        mm7, mm0\n    mova        mm6, mm4\n    paddsw      mm0, mm1                ; z0 + z3\n    psubsw      mm7, mm1                ; z0 - z3\n    paddsw      mm4, mm5                ; z1 + z2\n    psubsw      mm6, mm5                ; z1 - z2\n    mova        mm5, [pd_512]           ; 0x200\n%endmacro\n\n; ff_rv34_idct_add_mmxext(uint8_t *dst, ptrdiff_t stride, int16_t *block);\n%macro COL_TRANSFORM  4\n    pshufw      mm3, %2, 0xDD        ; col. 1,3,1,3\n    pshufw       %2, %2, 0x88        ; col. 0,2,0,2\n    pmaddwd      %2, %3              ; 13*c0+13*c2 | 13*c0-13*c2 = z0 | z1\n    pmaddwd     mm3, %4              ; 17*c1+ 7*c3 |  7*c1-17*c3 = z3 | z2\n    paddd        %2, mm5\n    pshufw      mm1,  %2, 01001110b  ;    z1 | z0\n    pshufw      mm2, mm3, 01001110b  ;    z2 | z3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2/libavcodec/x86/rv34dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:3", "text": "paddsw      mm1, mm7                ; z3 = b1*17 + b3* 7\n    psubsw      mm5, mm3                ; z2 = b1* 7 - b3*17\n    mova        mm7, mm0\n    mova        mm6, mm4\n    paddsw      mm0, mm1                ; z0 + z3\n    psubsw      mm7, mm1                ; z0 - z3\n    paddsw      mm4, mm5                ; z1 + z2\n    psubsw      mm6, mm5                ; z1 - z2\n    mova        mm5, [pd_512]           ; 0x200\n%endmacro\n\n; ff_rv34_idct_add_mmxext(uint8_t *dst, ptrdiff_t stride, int16_t *block);\n%macro COL_TRANSFORM  4\n    pshufw      mm3, %2, 0xDD        ; col. 1,3,1,3\n    pshufw       %2, %2, 0x88        ; col. 0,2,0,2\n    pmaddwd      %2, %3              ; 13*c0+13*c2 | 13*c0-13*c2 = z0 | z1\n    pmaddwd     mm3, %4              ; 17*c1+ 7*c3 |  7*c1-17*c3 = z3 | z2\n    paddd        %2, mm5\n    pshufw      mm1,  %2, 01001110b  ;    z1 | z0\n    pshufw      mm2, mm3, 01001110b  ;    z2 | z3\n    paddd        %2, mm3             ; z0+z3 | z1+z2\n    psubd       mm1, mm2             ; z1-z2 | z0-z3\n    movd        mm3, %1\n    psrad        %2, 10\n    pxor        mm2, mm2\n    psrad       mm1, 10\n    punpcklbw   mm3, mm2\n    packssdw     %2, mm1\n    paddw        %2, mm3\n    packuswb     %2, %2\n    movd         %1, %2\n%endmacro\nINIT_MMX mmxext\ncglobal rv34_idct_add, 3, 3, 0, dst, s, b\n    ROW_TRANSFORM        bq\n    COL_TRANSFORM    [dstq], mm0, [pw_col_coeffs+ 0], [pw_col_coeffs+ 8]\n    mova                mm0, [pw_col_coeffs+ 0]\n    COL_TRANSFORM [dstq+sq], mm4, mm0, [pw_col_coeffs+ 8]\n    mova                mm4, [pw_col_coeffs+ 8]\n    lea                dstq, [dstq + 2*sq]\n    COL_TRANSFORM    [dstq], mm6, mm0, mm4\n    COL_TRANSFORM [dstq+sq], mm7, mm0, mm4\n    ret\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]\n    movd       m5, [r2+r1]\n    punpcklqdq m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2/libavcodec/x86/rv34dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:4", "text": "COL_TRANSFORM    [dstq], mm6, mm0, mm4\n    COL_TRANSFORM [dstq+sq], mm7, mm0, mm4\n    ret\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]\n    movd       m5, [r2+r1]\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd      [r0], m2\n%if cpuflag(sse4)\n    pextrd [r0+r1], m2, 1\n    pextrd    [r2], m2, 2\n    pextrd [r2+r1], m2, 3\n%else\n    psrldq     m2, 4\n    movd   [r0+r1], m2\n    psrldq     m2, 4\n    movd      [r2], m2\n    psrldq     m2, 4\n    movd   [r2+r1], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nRV34_IDCT_DC_ADD\nINIT_XMM sse4\nRV34_IDCT_DC_ADD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c90cf2aa1f62fb92e5d6dc1f3db7cd0188299ac2/libavcodec/x86/rv34dsp.asm", "line_start": 121, "line_end": 167}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the RV30 and RV40 decoders\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npw_row_coeffs:  times 4 dw 13\n                times 4 dw 17\n                times 4 dw  7\npd_512: times 2 dd 0x200\npw_col_coeffs:  dw 13,  13,  13, -13\n                dw 17,   7,   7, -17\n                dw 13, -13,  13,  13\n                dw -7,  17, -17,  -7\n\nSECTION .text\n\n%macro IDCT_DC_NOROUND 1\n    imul   %1, 13*13*3\n    sar    %1, 11\n%endmacro\n\n%macro IDCT_DC_ROUND 1\n    imul   %1, 13*13\n    add    %1, 0x200\n    sar    %1, 10\n%endmacro\n\nINIT_MMX mmxext\ncglobal rv34_idct_dc_noround, 1, 2, 0\n    movsx   r1, word [r0]\n    IDCT_DC_NOROUND r1\n    movd    m0, r1d\n    pshufw  m0, m0, 0\n    movq    [r0+ 0], m0\n    movq    [r0+ 8], m0\n    movq    [r0+16], m0\n    movq    [r0+24], m0\n    RET\n\n; Load coeffs and perform row transform\n; Output: coeffs in mm[0467], rounder in mm5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "782c4df28dc91a2b5160fe7a35ad18541e8c5029", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/782c4df28dc91a2b5160fe7a35ad18541e8c5029/libavcodec/x86/rv34dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:2", "text": "%macro IDCT_DC_ROUND 1\n    imul   %1, 13*13\n    add    %1, 0x200\n    sar    %1, 10\n%endmacro\n\nINIT_MMX mmxext\ncglobal rv34_idct_dc_noround, 1, 2, 0\n    movsx   r1, word [r0]\n    IDCT_DC_NOROUND r1\n    movd    m0, r1d\n    pshufw  m0, m0, 0\n    movq    [r0+ 0], m0\n    movq    [r0+ 8], m0\n    movq    [r0+16], m0\n    movq    [r0+24], m0\n    RET\n\n; Load coeffs and perform row transform\n; Output: coeffs in mm[0467], rounder in mm5\n%macro ROW_TRANSFORM  1\n    pxor        mm7, mm7\n    mova        mm0, [%1+ 0*8]\n    mova        mm1, [%1+ 1*8]\n    mova        mm2, [%1+ 2*8]\n    mova        mm3, [%1+ 3*8]\n    mova  [%1+ 0*8], mm7\n    mova  [%1+ 1*8], mm7\n    mova  [%1+ 2*8], mm7\n    mova  [%1+ 3*8], mm7\n    mova        mm4, mm0\n    mova        mm6, [pw_row_coeffs+ 0]\n    paddsw      mm0, mm2                ; b0 + b2\n    psubsw      mm4, mm2                ; b0 - b2\n    pmullw      mm0, mm6                ; *13 = z0\n    pmullw      mm4, mm6                ; *13 = z1\n    mova        mm5, mm1\n    pmullw      mm1, [pw_row_coeffs+ 8] ; b1*17\n    pmullw      mm5, [pw_row_coeffs+16] ; b1* 7\n    mova        mm7, mm3\n    pmullw      mm3, [pw_row_coeffs+ 8] ; b3*17\n    pmullw      mm7, [pw_row_coeffs+16] ; b3* 7\n    paddsw      mm1, mm7                ; z3 = b1*17 + b3* 7\n    psubsw      mm5, mm3                ; z2 = b1* 7 - b3*17\n    mova        mm7, mm0\n    mova        mm6, mm4\n    paddsw      mm0, mm1                ; z0 + z3\n    psubsw      mm7, mm1                ; z0 - z3\n    paddsw      mm4, mm5                ; z1 + z2\n    psubsw      mm6, mm5                ; z1 - z2\n    mova        mm5, [pd_512]           ; 0x200\n%endmacro\n\n; ff_rv34_idct_add_mmxext(uint8_t *dst, ptrdiff_t stride, int16_t *block);\n%macro COL_TRANSFORM  4\n    pshufw      mm3, %2, 0xDD        ; col. 1,3,1,3\n    pshufw       %2, %2, 0x88        ; col. 0,2,0,2\n    pmaddwd      %2, %3              ; 13*c0+13*c2 | 13*c0-13*c2 = z0 | z1\n    pmaddwd     mm3, %4              ; 17*c1+ 7*c3 |  7*c1-17*c3 = z3 | z2\n    paddd        %2, mm5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "782c4df28dc91a2b5160fe7a35ad18541e8c5029", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/782c4df28dc91a2b5160fe7a35ad18541e8c5029/libavcodec/x86/rv34dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:3", "text": "pmullw      mm3, [pw_row_coeffs+ 8] ; b3*17\n    pmullw      mm7, [pw_row_coeffs+16] ; b3* 7\n    paddsw      mm1, mm7                ; z3 = b1*17 + b3* 7\n    psubsw      mm5, mm3                ; z2 = b1* 7 - b3*17\n    mova        mm7, mm0\n    mova        mm6, mm4\n    paddsw      mm0, mm1                ; z0 + z3\n    psubsw      mm7, mm1                ; z0 - z3\n    paddsw      mm4, mm5                ; z1 + z2\n    psubsw      mm6, mm5                ; z1 - z2\n    mova        mm5, [pd_512]           ; 0x200\n%endmacro\n\n; ff_rv34_idct_add_mmxext(uint8_t *dst, ptrdiff_t stride, int16_t *block);\n%macro COL_TRANSFORM  4\n    pshufw      mm3, %2, 0xDD        ; col. 1,3,1,3\n    pshufw       %2, %2, 0x88        ; col. 0,2,0,2\n    pmaddwd      %2, %3              ; 13*c0+13*c2 | 13*c0-13*c2 = z0 | z1\n    pmaddwd     mm3, %4              ; 17*c1+ 7*c3 |  7*c1-17*c3 = z3 | z2\n    paddd        %2, mm5\n    pshufw      mm1,  %2, 01001110b  ;    z1 | z0\n    pshufw      mm2, mm3, 01001110b  ;    z2 | z3\n    paddd        %2, mm3             ; z0+z3 | z1+z2\n    psubd       mm1, mm2             ; z1-z2 | z0-z3\n    movd        mm3, %1\n    psrad        %2, 10\n    pxor        mm2, mm2\n    psrad       mm1, 10\n    punpcklbw   mm3, mm2\n    packssdw     %2, mm1\n    paddw        %2, mm3\n    packuswb     %2, %2\n    movd         %1, %2\n%endmacro\nINIT_MMX mmxext\ncglobal rv34_idct_add, 3, 3, 0, dst, s, b\n    ROW_TRANSFORM        bq\n    COL_TRANSFORM    [dstq], mm0, [pw_col_coeffs+ 0], [pw_col_coeffs+ 8]\n    mova                mm0, [pw_col_coeffs+ 0]\n    COL_TRANSFORM [dstq+sq], mm4, mm0, [pw_col_coeffs+ 8]\n    mova                mm4, [pw_col_coeffs+ 8]\n    lea                dstq, [dstq + 2*sq]\n    COL_TRANSFORM    [dstq], mm6, mm0, mm4\n    COL_TRANSFORM [dstq+sq], mm7, mm0, mm4\n    ret\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "782c4df28dc91a2b5160fe7a35ad18541e8c5029", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/782c4df28dc91a2b5160fe7a35ad18541e8c5029/libavcodec/x86/rv34dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:4", "text": "mova                mm4, [pw_col_coeffs+ 8]\n    lea                dstq, [dstq + 2*sq]\n    COL_TRANSFORM    [dstq], mm6, mm0, mm4\n    COL_TRANSFORM [dstq+sq], mm7, mm0, mm4\n    ret\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]\n    movd       m5, [r2+r1]\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd      [r0], m2\n%if cpuflag(sse4)\n    pextrd [r0+r1], m2, 1\n    pextrd    [r2], m2, 2\n    pextrd [r2+r1], m2, 3\n%else\n    psrldq     m2, 4\n    movd   [r0+r1], m2\n    psrldq     m2, 4\n    movd      [r2], m2\n    psrldq     m2, 4\n    movd   [r2+r1], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nRV34_IDCT_DC_ADD\nINIT_XMM sse4\nRV34_IDCT_DC_ADD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "782c4df28dc91a2b5160fe7a35ad18541e8c5029", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/782c4df28dc91a2b5160fe7a35ad18541e8c5029/libavcodec/x86/rv34dsp.asm", "line_start": 121, "line_end": 169}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:3", "text": "pmullw      mm3, [pw_row_coeffs+ 8] ; b3*17\n    pmullw      mm7, [pw_row_coeffs+16] ; b3* 7\n    paddsw      mm1, mm7                ; z3 = b1*17 + b3* 7\n    psubsw      mm5, mm3                ; z2 = b1* 7 - b3*17\n    mova        mm7, mm0\n    mova        mm6, mm4\n    paddsw      mm0, mm1                ; z0 + z3\n    psubsw      mm7, mm1                ; z0 - z3\n    paddsw      mm4, mm5                ; z1 + z2\n    psubsw      mm6, mm5                ; z1 - z2\n    mova        mm5, [pd_512]           ; 0x200\n%endmacro\n\n; ff_rv34_idct_add_mmxext(uint8_t *dst, ptrdiff_t stride, int16_t *block);\n%macro COL_TRANSFORM  4\n    pshufw      mm3, %2, 0xDD        ; col. 1,3,1,3\n    pshufw       %2, %2, 0x88        ; col. 0,2,0,2\n    pmaddwd      %2, %3              ; 13*c0+13*c2 | 13*c0-13*c2 = z0 | z1\n    pmaddwd     mm3, %4              ; 17*c1+ 7*c3 |  7*c1-17*c3 = z3 | z2\n    paddd        %2, mm5\n    pshufw      mm1,  %2, 01001110b  ;    z1 | z0\n    pshufw      mm2, mm3, 01001110b  ;    z2 | z3\n    paddd        %2, mm3             ; z0+z3 | z1+z2\n    psubd       mm1, mm2             ; z1-z2 | z0-z3\n    movd        mm3, %1\n    psrad        %2, 10\n    pxor        mm2, mm2\n    psrad       mm1, 10\n    punpcklbw   mm3, mm2\n    packssdw     %2, mm1\n    paddw        %2, mm3\n    packuswb     %2, %2\n    movd         %1, %2\n%endmacro\nINIT_MMX mmxext\ncglobal rv34_idct_add, 3,3,0, d, s, b\n    ROW_TRANSFORM       bq\n    COL_TRANSFORM     [dq], mm0, [pw_col_coeffs+ 0], [pw_col_coeffs+ 8]\n    mova               mm0, [pw_col_coeffs+ 0]\n    COL_TRANSFORM  [dq+sq], mm4, mm0, [pw_col_coeffs+ 8]\n    mova               mm4, [pw_col_coeffs+ 8]\n    lea                 dq, [dq + 2*sq]\n    COL_TRANSFORM     [dq], mm6, mm0, mm4\n    COL_TRANSFORM  [dq+sq], mm7, mm0, mm4\n    ret\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/rv34dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv34dsp.asm:4", "text": "mova               mm4, [pw_col_coeffs+ 8]\n    lea                 dq, [dq + 2*sq]\n    COL_TRANSFORM     [dq], mm6, mm0, mm4\n    COL_TRANSFORM  [dq+sq], mm7, mm0, mm4\n    ret\n\n; ff_rv34_idct_dc_add_sse4(uint8_t *dst, int stride, int dc);\n%macro RV34_IDCT_DC_ADD 0\ncglobal rv34_idct_dc_add, 3, 3, 6\n    ; load data\n    IDCT_DC_ROUND r2\n    pxor       m1, m1\n\n    ; calculate DC\n    movd       m0, r2d\n    lea        r2, [r0+r1*2]\n    movd       m2, [r0]\n    movd       m3, [r0+r1]\n    pshuflw    m0, m0, 0\n    movd       m4, [r2]\n    movd       m5, [r2+r1]\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd      [r0], m2\n%if cpuflag(sse4)\n    pextrd [r0+r1], m2, 1\n    pextrd    [r2], m2, 2\n    pextrd [r2+r1], m2, 3\n%else\n    psrldq     m2, 4\n    movd   [r0+r1], m2\n    psrldq     m2, 4\n    movd      [r2], m2\n    psrldq     m2, 4\n    movd   [r2+r1], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nRV34_IDCT_DC_ADD\nINIT_XMM sse4\nRV34_IDCT_DC_ADD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv34dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/rv34dsp.asm", "line_start": 121, "line_end": 169}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:1", "text": ";******************************************************************************\n;* ASM-optimized functions for the RV40 decoder\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1024:   times 8 dw 1 << (16 - 6) ; pw_1024\n\nsixtap_filter_hb_m:  times 8 db   1, -5\n                     times 8 db  52, 20\n                     ; multiplied by 2 to have the same shift\n                     times 8 db   2, -10\n                     times 8 db  40,  40\n                     ; back to normal\n                     times 8 db   1, -5\n                     times 8 db  20, 52\n\nsixtap_filter_v_m:   times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  52\n                     times 8 dw  20\n                     ; multiplied by 2 to have the same shift\n                     times 8 dw   2\n                     times 8 dw -10\n                     times 8 dw  40\n                     times 8 dw  40\n                     ; back to normal\n                     times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  20\n                     times 8 dw  52\n\n%if PIC\n%define sixtap_filter_hw   picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_v    picregq\n%define npicregs 1\n%else\n%define sixtap_filter_hw   sixtap_filter_hw_m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:2", "text": "times 8 dw  52\n                     times 8 dw  20\n                     ; multiplied by 2 to have the same shift\n                     times 8 dw   2\n                     times 8 dw -10\n                     times 8 dw  40\n                     times 8 dw  40\n                     ; back to normal\n                     times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  20\n                     times 8 dw  52\n\n%if PIC\n%define sixtap_filter_hw   picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_v    picregq\n%define npicregs 1\n%else\n%define sixtap_filter_hw   sixtap_filter_hw_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define npicregs 0\n%endif\n\nfilter_h6_shuf1: db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5,  5, 6,  6,  7,  7,  8\nfilter_h6_shuf2: db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7,  7, 8,  8,  9,  9, 10\nfilter_h6_shuf3: db 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9, 11, 10, 12, 11\n\ncextern  pw_32\ncextern  pw_16\ncextern  pw_512\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_[put|rv40]_rv40_qpel_[h|v]_<opt>(uint8_t *dst, int deststride,\n;                                          uint8_t *src, int srcstride,\n;                                          int len, int m);\n;----------------------------------------------------------------------\n%macro LOAD  2\n%if WIN64\n   movsxd   %1q, %1d\n%endif\n%if PIC\n   add      %1q, picregq\n%else\n   add      %1q, %2\n%endif\n%endmacro\n\n%macro STORE 3\n%ifidn %3, avg\n    movh      %2, [dstq]\n%endif\n    packuswb  %1, %1\n%ifidn %3, avg\n    PAVGB     %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:3", "text": ";                                          int len, int m);\n;----------------------------------------------------------------------\n%macro LOAD  2\n%if WIN64\n   movsxd   %1q, %1d\n%endif\n%if PIC\n   add      %1q, picregq\n%else\n   add      %1q, %2\n%endif\n%endmacro\n\n%macro STORE 3\n%ifidn %3, avg\n    movh      %2, [dstq]\n%endif\n    packuswb  %1, %1\n%ifidn %3, avg\n    PAVGB     %1, %2\n%endif\n    movh  [dstq], %1\n%endmacro\n\n%macro FILTER_V 1\ncglobal %1_rv40_qpel_v, 6,6+npicregs,12, dst, dststride, src, srcstride, height, my, picreg\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    pxor      m7, m7\n    LOAD      my, sixtap_filter_v\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n%ifdef m8\n    mova      m8, [myq+ 0]\n    mova      m9, [myq+16]\n    mova     m10, [myq+32]\n    mova     m11, [myq+48]\n%define COEFF05  m8\n%define COEFF14  m9\n%define COEFF2   m10\n%define COEFF3   m11\n%else\n%define COEFF05  [myq+ 0]\n%define COEFF14  [myq+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:4", "text": "movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n%ifdef m8\n    mova      m8, [myq+ 0]\n    mova      m9, [myq+16]\n    mova     m10, [myq+32]\n    mova     m11, [myq+48]\n%define COEFF05  m8\n%define COEFF14  m9\n%define COEFF2   m10\n%define COEFF3   m11\n%else\n%define COEFF05  [myq+ 0]\n%define COEFF14  [myq+16]\n%define COEFF2   [myq+32]\n%define COEFF3   [myq+48]\n%endif\n.nextrow:\n    mova      m6, m1\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    paddw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, COEFF14\n    paddw     m0, m5\n    pmullw    m0, COEFF05\n    paddw     m6, m0\n    mova      m0, m1\n    paddw     m6, [pw_32]\n    mova      m1, m2\n    pmullw    m2, COEFF2\n    paddw     m6, m2\n    mova      m2, m3\n    pmullw    m3, COEFF3\n    paddw     m6, m3\n\n    ; round/clip/store\n    mova      m3, m4\n    psraw     m6, 6\n    mova      m4, m5\n    STORE     m6, m5, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro\n\n%macro FILTER_H  1\ncglobal %1_rv40_qpel_h, 6, 6+npicregs, 12, dst, dststride, src, srcstride, height, mx, picreg\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:5", "text": "; round/clip/store\n    mova      m3, m4\n    psraw     m6, 6\n    mova      m4, m5\n    STORE     m6, m5, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro\n\n%macro FILTER_H  1\ncglobal %1_rv40_qpel_h, 6, 6+npicregs, 12, dst, dststride, src, srcstride, height, mx, picreg\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    pxor      m7, m7\n    LOAD      mx, sixtap_filter_v\n    mova      m6, [pw_32]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n%define COEFF05  m8\n%define COEFF14  m9\n%define COEFF2   m10\n%define COEFF3   m11\n%else\n%define COEFF05  [mxq+ 0]\n%define COEFF14  [mxq+16]\n%define COEFF2   [mxq+32]\n%define COEFF3   [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m5, [srcq+3]\n    movq      m1, [srcq-1]\n    movq      m4, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m5, m7\n    punpcklbw m1, m7\n    punpcklbw m4, m7\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    paddw     m0, m5\n    paddw     m1, m4\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, COEFF05\n    pmullw    m1, COEFF14\n    pmullw    m2, COEFF2\n    pmullw    m3, COEFF3\n    paddw     m0, m6\n    paddw     m1, m2\n    paddw     m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:6", "text": "movq      m5, [srcq+3]\n    movq      m1, [srcq-1]\n    movq      m4, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m5, m7\n    punpcklbw m1, m7\n    punpcklbw m4, m7\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    paddw     m0, m5\n    paddw     m1, m4\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, COEFF05\n    pmullw    m1, COEFF14\n    pmullw    m2, COEFF2\n    pmullw    m3, COEFF3\n    paddw     m0, m6\n    paddw     m1, m2\n    paddw     m0, m3\n    paddw     m0, m1\n    psraw     m0, 6\n    STORE     m0, m1, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM  sse2\nFILTER_H  put\nFILTER_H  avg\nFILTER_V  put\nFILTER_V  avg\n\n%macro FILTER_SSSE3 1\ncglobal %1_rv40_qpel_v, 6,6+npicregs,8, dst, dststride, src, srcstride, height, my, picreg\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    LOAD      my, sixtap_filter_hb\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    mova      m5, [myq]\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n\n.nextrow:\n    mova      m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:7", "text": "%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    LOAD      my, sixtap_filter_hb\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    mova      m5, [myq]\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n\n.nextrow:\n    mova      m6, m2\n    punpcklbw m0, m1\n    punpcklbw m6, m3\n    pmaddubsw m0, m5\n    pmaddubsw m6, [myq+16]\n    movh      m7, [srcq]      ; read new row\n    paddw     m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    mova      m2, m3\n    mova      m3, m4\n    mova      m4, m7\n    punpcklbw m7, m3\n    pmaddubsw m7, m5\n    paddw     m6, m7\n    pmulhrsw  m6, [pw_512]\n    STORE     m6, m7, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec       heightd                          ; next row\n    jg       .nextrow\n    RET\n\ncglobal %1_rv40_qpel_h, 6,6+npicregs,8, dst, dststride, src, srcstride, height, mx, picreg\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n    LOAD      mx, sixtap_filter_hb\n    mova      m5, [mxq] ; set up 6tap filter in bytes\n    mova      m6, [mxq+16]\n    mova      m7, [filter_h6_shuf1]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:8", "text": "dec       heightd                          ; next row\n    jg       .nextrow\n    RET\n\ncglobal %1_rv40_qpel_h, 6,6+npicregs,8, dst, dststride, src, srcstride, height, mx, picreg\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n    LOAD      mx, sixtap_filter_hb\n    mova      m5, [mxq] ; set up 6tap filter in bytes\n    mova      m6, [mxq+16]\n    mova      m7, [filter_h6_shuf1]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, m7\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m5\n    paddw     m0, m1\n    paddw     m0, m2\n    pmulhrsw  m0, [pw_512]\n    STORE     m0, m1, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFILTER_SSSE3  put\nFILTER_SSSE3  avg\n\n; %1=5-bit weights?, %2=dst %3=src1 %4=src3 %5=stride if SSE2\n%macro RV40_WCORE  4-5\n    movh       m4, [%3 + r6 + 0]\n    movh       m5, [%4 + r6 + 0]\n%if %0 == 4\n%define OFFSET r6 + mmsize / 2\n%else\n    ; 8x8 block and SSE2, stride was provided\n%define OFFSET r6\n    add        r6, r5\n%endif\n    movh       m6, [%3 + OFFSET]\n    movh       m7, [%4 + OFFSET]\n\n%if %1 == 0\n    ; 14-bit weights\n    punpcklbw  m4, m0\n    punpcklbw  m5, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:9", "text": "FILTER_SSSE3  avg\n\n; %1=5-bit weights?, %2=dst %3=src1 %4=src3 %5=stride if SSE2\n%macro RV40_WCORE  4-5\n    movh       m4, [%3 + r6 + 0]\n    movh       m5, [%4 + r6 + 0]\n%if %0 == 4\n%define OFFSET r6 + mmsize / 2\n%else\n    ; 8x8 block and SSE2, stride was provided\n%define OFFSET r6\n    add        r6, r5\n%endif\n    movh       m6, [%3 + OFFSET]\n    movh       m7, [%4 + OFFSET]\n\n%if %1 == 0\n    ; 14-bit weights\n    punpcklbw  m4, m0\n    punpcklbw  m5, m0\n    punpcklbw  m6, m0\n    punpcklbw  m7, m0\n\n    psllw      m4, 7\n    psllw      m5, 7\n    psllw      m6, 7\n    psllw      m7, 7\n    pmulhw     m4, m3\n    pmulhw     m5, m2\n    pmulhw     m6, m3\n    pmulhw     m7, m2\n\n    paddw      m4, m5\n    paddw      m6, m7\n%else\n    ; 5-bit weights\n%if cpuflag(ssse3)\n    punpcklbw  m4, m5\n    punpcklbw  m6, m7\n\n    pmaddubsw  m4, m3\n    pmaddubsw  m6, m3\n%else\n    punpcklbw  m4, m0\n    punpcklbw  m5, m0\n    punpcklbw  m6, m0\n    punpcklbw  m7, m0\n\n    pmullw     m4, m3\n    pmullw     m5, m2\n    pmullw     m6, m3\n    pmullw     m7, m2\n    paddw      m4, m5\n    paddw      m6, m7\n%endif\n\n%endif\n\n    ; bias and shift down\n%if cpuflag(ssse3)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:10", "text": "pmaddubsw  m4, m3\n    pmaddubsw  m6, m3\n%else\n    punpcklbw  m4, m0\n    punpcklbw  m5, m0\n    punpcklbw  m6, m0\n    punpcklbw  m7, m0\n\n    pmullw     m4, m3\n    pmullw     m5, m2\n    pmullw     m6, m3\n    pmullw     m7, m2\n    paddw      m4, m5\n    paddw      m6, m7\n%endif\n\n%endif\n\n    ; bias and shift down\n%if cpuflag(ssse3)\n    pmulhrsw   m4, m1\n    pmulhrsw   m6, m1\n%else\n    paddw      m4, m1\n    paddw      m6, m1\n    psrlw      m4, 5\n    psrlw      m6, 5\n%endif\n\n    packuswb   m4, m6\n%if %0 == 5\n    ; Only called for 8x8 blocks and SSE2\n    sub        r6, r5\n    movh       [%2 + r6], m4\n    add        r6, r5\n    movhps     [%2 + r6], m4\n%else\n    mova       [%2 + r6], m4\n%endif\n%endmacro\n\n\n%macro MAIN_LOOP   2\n%ifidn %1, 8\n    RV40_WCORE %2, r0, r1, r2, r5\n    ; Prepare 2 next lines\n    add        r6, r5\n%else\n    RV40_WCORE %2, r0, r1, r2\n    ; Prepare single next line\n    add        r6, r5\n%endif\n\n%endmacro\n\n; void ff_rv40_weight_func_%1(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w1, int w2, int stride)\n; %1=size  %2=num of xmm regs\n; The weights are FP0.14 notation of fractions depending on pts.\n; For timebases without rounding error (i.e. PAL), the fractions\n; can be simplified, and several operations can be avoided.", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:11", "text": "%macro MAIN_LOOP   2\n%ifidn %1, 8\n    RV40_WCORE %2, r0, r1, r2, r5\n    ; Prepare 2 next lines\n    add        r6, r5\n%else\n    RV40_WCORE %2, r0, r1, r2\n    ; Prepare single next line\n    add        r6, r5\n%endif\n\n%endmacro\n\n; void ff_rv40_weight_func_%1(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w1, int w2, int stride)\n; %1=size  %2=num of xmm regs\n; The weights are FP0.14 notation of fractions depending on pts.\n; For timebases without rounding error (i.e. PAL), the fractions\n; can be simplified, and several operations can be avoided.\n; Therefore, we check here whether they are multiples of 2^9 for\n; those simplifications to occur.\n%macro RV40_WEIGHT  3\ncglobal rv40_weight_func_%1_%2, 6, 7, 8\n%if cpuflag(ssse3)\n    mova       m1, [pw_1024]\n%else\n    mova       m1, [pw_16]\n%endif\n    pxor       m0, m0\n    ; Set loop counter and increments\n    mov        r6, r5\n    shl        r6, %3\n    add        r0, r6\n    add        r1, r6\n    add        r2, r6\n    neg        r6\n\n    movd       m2, r3d\n    movd       m3, r4d\n%ifidn %1,rnd\n%define  RND   0\n    SPLATW     m2, m2\n%else\n%define  RND   1\n%if cpuflag(ssse3)\n    punpcklbw  m3, m2\n%else\n    SPLATW     m2, m2\n%endif\n%endif\n    SPLATW     m3, m3\n\n.loop:\n    MAIN_LOOP  %2, RND\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:12", "text": "%ifidn %1,rnd\n%define  RND   0\n    SPLATW     m2, m2\n%else\n%define  RND   1\n%if cpuflag(ssse3)\n    punpcklbw  m3, m2\n%else\n    SPLATW     m2, m2\n%endif\n%endif\n    SPLATW     m3, m3\n\n.loop:\n    MAIN_LOOP  %2, RND\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nRV40_WEIGHT   rnd,    8, 3\nRV40_WEIGHT   rnd,   16, 4\nRV40_WEIGHT   nornd,  8, 3\nRV40_WEIGHT   nornd, 16, 4\n\nINIT_XMM ssse3\nRV40_WEIGHT   rnd,    8, 3\nRV40_WEIGHT   rnd,   16, 4\nRV40_WEIGHT   nornd,  8, 3\nRV40_WEIGHT   nornd, 16, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/rv40dsp.asm", "line_start": 441, "line_end": 470}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the RV40 decoder\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1024:   times 8 dw 1 << (16 - 6) ; pw_1024\n\nsixtap_filter_hb_m:  times 8 db   1, -5\n                     times 8 db  52, 20\n                     ; multiplied by 2 to have the same shift\n                     times 8 db   2, -10\n                     times 8 db  40,  40\n                     ; back to normal\n                     times 8 db   1, -5\n                     times 8 db  20, 52\n\nsixtap_filter_v_m:   times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  52\n                     times 8 dw  20\n                     ; multiplied by 2 to have the same shift\n                     times 8 dw   2\n                     times 8 dw -10\n                     times 8 dw  40\n                     times 8 dw  40\n                     ; back to normal\n                     times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  20\n                     times 8 dw  52\n\n%if PIC\n%define sixtap_filter_hw   picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_v    picregq\n%define npicregs 1\n%else\n%define sixtap_filter_hw   sixtap_filter_hw_m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/rv40dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the RV40 decoder\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1024:   times 8 dw 1 << (16 - 6) ; pw_1024\n\nsixtap_filter_hb_m:  times 8 db   1, -5\n                     times 8 db  52, 20\n                     ; multiplied by 2 to have the same shift\n                     times 8 db   2, -10\n                     times 8 db  40,  40\n                     ; back to normal\n                     times 8 db   1, -5\n                     times 8 db  20, 52\n\nsixtap_filter_v_m:   times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  52\n                     times 8 dw  20\n                     ; multiplied by 2 to have the same shift\n                     times 8 dw   2\n                     times 8 dw -10\n                     times 8 dw  40\n                     times 8 dw  40\n                     ; back to normal\n                     times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  20\n                     times 8 dw  52\n\n%ifdef PIC\n%define sixtap_filter_hw   picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_v    picregq\n%define npicregs 1\n%else\n%define sixtap_filter_hw   sixtap_filter_hw_m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:2", "text": "times 8 dw  52\n                     times 8 dw  20\n                     ; multiplied by 2 to have the same shift\n                     times 8 dw   2\n                     times 8 dw -10\n                     times 8 dw  40\n                     times 8 dw  40\n                     ; back to normal\n                     times 8 dw   1\n                     times 8 dw  -5\n                     times 8 dw  20\n                     times 8 dw  52\n\n%ifdef PIC\n%define sixtap_filter_hw   picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_v    picregq\n%define npicregs 1\n%else\n%define sixtap_filter_hw   sixtap_filter_hw_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define npicregs 0\n%endif\n\nfilter_h6_shuf1: db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5,  5, 6,  6,  7,  7,  8\nfilter_h6_shuf2: db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7,  7, 8,  8,  9,  9, 10\nfilter_h6_shuf3: db 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9, 11, 10, 12, 11\n\ncextern  pw_32\ncextern  pw_16\ncextern  pw_512\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_[put|rv40]_rv40_qpel_[h|v]_<opt>(uint8_t *dst, int deststride,\n;                                          uint8_t *src, int srcstride,\n;                                          int len, int m);\n;----------------------------------------------------------------------\n%macro LOAD  2\n%if WIN64\n   movsxd   %1q, %1d\n%endif\n%ifdef PIC\n   add      %1q, picregq\n%else\n   add      %1q, %2\n%endif\n%endmacro\n\n%macro STORE 3\n%ifidn %3, avg\n    movh      %2, [dstq]\n%endif\n    packuswb  %1, %1\n%ifidn %3, avg\n    PAVGB     %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:3", "text": ";                                          int len, int m);\n;----------------------------------------------------------------------\n%macro LOAD  2\n%if WIN64\n   movsxd   %1q, %1d\n%endif\n%ifdef PIC\n   add      %1q, picregq\n%else\n   add      %1q, %2\n%endif\n%endmacro\n\n%macro STORE 3\n%ifidn %3, avg\n    movh      %2, [dstq]\n%endif\n    packuswb  %1, %1\n%ifidn %3, avg\n    PAVGB     %1, %2\n%endif\n    movh  [dstq], %1\n%endmacro\n\n%macro FILTER_V 1\ncglobal %1_rv40_qpel_v, 6,6+npicregs,12, dst, dststride, src, srcstride, height, my, picreg\n%ifdef PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    pxor      m7, m7\n    LOAD      my, sixtap_filter_v\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n%ifdef m8\n    mova      m8, [myq+ 0]\n    mova      m9, [myq+16]\n    mova     m10, [myq+32]\n    mova     m11, [myq+48]\n%define COEFF05  m8\n%define COEFF14  m9\n%define COEFF2   m10\n%define COEFF3   m11\n%else\n%define COEFF05  [myq+ 0]\n%define COEFF14  [myq+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:4", "text": "movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n%ifdef m8\n    mova      m8, [myq+ 0]\n    mova      m9, [myq+16]\n    mova     m10, [myq+32]\n    mova     m11, [myq+48]\n%define COEFF05  m8\n%define COEFF14  m9\n%define COEFF2   m10\n%define COEFF3   m11\n%else\n%define COEFF05  [myq+ 0]\n%define COEFF14  [myq+16]\n%define COEFF2   [myq+32]\n%define COEFF3   [myq+48]\n%endif\n.nextrow:\n    mova      m6, m1\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    paddw     m6, m4\n    punpcklbw m5, m7\n    pmullw    m6, COEFF14\n    paddw     m0, m5\n    pmullw    m0, COEFF05\n    paddw     m6, m0\n    mova      m0, m1\n    paddw     m6, [pw_32]\n    mova      m1, m2\n    pmullw    m2, COEFF2\n    paddw     m6, m2\n    mova      m2, m3\n    pmullw    m3, COEFF3\n    paddw     m6, m3\n\n    ; round/clip/store\n    mova      m3, m4\n    psraw     m6, 6\n    mova      m4, m5\n    STORE     m6, m5, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro\n\n%macro FILTER_H  1\ncglobal %1_rv40_qpel_h, 6, 6+npicregs, 12, dst, dststride, src, srcstride, height, mx, picreg\n%ifdef PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:5", "text": "; round/clip/store\n    mova      m3, m4\n    psraw     m6, 6\n    mova      m4, m5\n    STORE     m6, m5, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro\n\n%macro FILTER_H  1\ncglobal %1_rv40_qpel_h, 6, 6+npicregs, 12, dst, dststride, src, srcstride, height, mx, picreg\n%ifdef PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    pxor      m7, m7\n    LOAD      mx, sixtap_filter_v\n    mova      m6, [pw_32]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n%define COEFF05  m8\n%define COEFF14  m9\n%define COEFF2   m10\n%define COEFF3   m11\n%else\n%define COEFF05  [mxq+ 0]\n%define COEFF14  [mxq+16]\n%define COEFF2   [mxq+32]\n%define COEFF3   [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m5, [srcq+3]\n    movq      m1, [srcq-1]\n    movq      m4, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m5, m7\n    punpcklbw m1, m7\n    punpcklbw m4, m7\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    paddw     m0, m5\n    paddw     m1, m4\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, COEFF05\n    pmullw    m1, COEFF14\n    pmullw    m2, COEFF2\n    pmullw    m3, COEFF3\n    paddw     m0, m6\n    paddw     m1, m2\n    paddw     m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:6", "text": "movq      m5, [srcq+3]\n    movq      m1, [srcq-1]\n    movq      m4, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m5, m7\n    punpcklbw m1, m7\n    punpcklbw m4, m7\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    paddw     m0, m5\n    paddw     m1, m4\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, COEFF05\n    pmullw    m1, COEFF14\n    pmullw    m2, COEFF2\n    pmullw    m3, COEFF3\n    paddw     m0, m6\n    paddw     m1, m2\n    paddw     m0, m3\n    paddw     m0, m1\n    psraw     m0, 6\n    STORE     m0, m1, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM  sse2\nFILTER_H  put\nFILTER_H  avg\nFILTER_V  put\nFILTER_V  avg\n\n%macro FILTER_SSSE3 1\ncglobal %1_rv40_qpel_v, 6,6+npicregs,8, dst, dststride, src, srcstride, height, my, picreg\n%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    LOAD      my, sixtap_filter_hb\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    mova      m5, [myq]\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n\n.nextrow:\n    mova      m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:7", "text": "%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    LOAD      my, sixtap_filter_hb\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    mova      m5, [myq]\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n\n.nextrow:\n    mova      m6, m2\n    punpcklbw m0, m1\n    punpcklbw m6, m3\n    pmaddubsw m0, m5\n    pmaddubsw m6, [myq+16]\n    movh      m7, [srcq]      ; read new row\n    paddw     m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    mova      m2, m3\n    mova      m3, m4\n    mova      m4, m7\n    punpcklbw m7, m3\n    pmaddubsw m7, m5\n    paddw     m6, m7\n    pmulhrsw  m6, [pw_512]\n    STORE     m6, m7, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec       heightd                          ; next row\n    jg       .nextrow\n    RET\n\ncglobal %1_rv40_qpel_h, 6,6+npicregs,8, dst, dststride, src, srcstride, height, mx, picreg\n%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n    LOAD      mx, sixtap_filter_hb\n    mova      m5, [mxq] ; set up 6tap filter in bytes\n    mova      m6, [mxq+16]\n    mova      m7, [filter_h6_shuf1]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:8", "text": "dec       heightd                          ; next row\n    jg       .nextrow\n    RET\n\ncglobal %1_rv40_qpel_h, 6,6+npicregs,8, dst, dststride, src, srcstride, height, mx, picreg\n%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n    LOAD      mx, sixtap_filter_hb\n    mova      m5, [mxq] ; set up 6tap filter in bytes\n    mova      m6, [mxq+16]\n    mova      m7, [filter_h6_shuf1]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, m7\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m5\n    paddw     m0, m1\n    paddw     m0, m2\n    pmulhrsw  m0, [pw_512]\n    STORE     m0, m1, %1\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFILTER_SSSE3  put\nFILTER_SSSE3  avg\n\n; %1=5-bit weights?, %2=dst %3=src1 %4=src3 %5=stride if SSE2\n%macro RV40_WCORE  4-5\n    movh       m4, [%3 + r6 + 0]\n    movh       m5, [%4 + r6 + 0]\n%if %0 == 4\n%define OFFSET r6 + mmsize / 2\n%else\n    ; 8x8 block and SSE2, stride was provided\n%define OFFSET r6\n    add        r6, r5\n%endif\n    movh       m6, [%3 + OFFSET]\n    movh       m7, [%4 + OFFSET]\n\n%if %1 == 0\n    ; 14-bit weights\n    punpcklbw  m4, m0\n    punpcklbw  m5, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/rv40dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:10", "text": "pmaddubsw  m4, m3\n    pmaddubsw  m6, m3\n%else\n    punpcklbw  m4, m0\n    punpcklbw  m5, m0\n    punpcklbw  m6, m0\n    punpcklbw  m7, m0\n\n    pmullw     m4, m3\n    pmullw     m5, m2\n    pmullw     m6, m3\n    pmullw     m7, m2\n    paddw      m4, m5\n    paddw      m6, m7\n%endif\n\n%endif\n\n    ; bias and shift down\n%if cpuflag(ssse3)\n    pmulhrsw   m4, m1\n    pmulhrsw   m6, m1\n%else\n    paddw      m4, m1\n    paddw      m6, m1\n    psrlw      m4, 5\n    psrlw      m6, 5\n%endif\n\n    packuswb   m4, m6\n%if %0 == 5\n    ; Only called for 8x8 blocks and SSE2\n    sub        r6, r5\n    movh       [%2 + r6], m4\n    add        r6, r5\n    movhps     [%2 + r6], m4\n%else\n    mova       [%2 + r6], m4\n%endif\n%endmacro\n\n\n%macro MAIN_LOOP   2\n%if mmsize == 8\n    RV40_WCORE %2, r0, r1, r2\n%if %1 == 16\n    RV40_WCORE %2, r0 + 8, r1 + 8, r2 + 8\n%endif\n\n    ; Prepare for next loop\n    add        r6, r5\n%else\n%ifidn %1, 8\n    RV40_WCORE %2, r0, r1, r2, r5\n    ; Prepare 2 next lines\n    add        r6, r5\n%else\n    RV40_WCORE %2, r0, r1, r2\n    ; Prepare single next line\n    add        r6, r5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/rv40dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:11", "text": "%macro MAIN_LOOP   2\n%if mmsize == 8\n    RV40_WCORE %2, r0, r1, r2\n%if %1 == 16\n    RV40_WCORE %2, r0 + 8, r1 + 8, r2 + 8\n%endif\n\n    ; Prepare for next loop\n    add        r6, r5\n%else\n%ifidn %1, 8\n    RV40_WCORE %2, r0, r1, r2, r5\n    ; Prepare 2 next lines\n    add        r6, r5\n%else\n    RV40_WCORE %2, r0, r1, r2\n    ; Prepare single next line\n    add        r6, r5\n%endif\n%endif\n\n%endmacro\n\n; void ff_rv40_weight_func_%1(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w1, int w2, int stride)\n; %1=size  %2=num of xmm regs\n; The weights are FP0.14 notation of fractions depending on pts.\n; For timebases without rounding error (i.e. PAL), the fractions\n; can be simplified, and several operations can be avoided.\n; Therefore, we check here whether they are multiples of 2^9 for\n; those simplifications to occur.\n%macro RV40_WEIGHT  3\ncglobal rv40_weight_func_%1_%2, 6, 7, 8\n%if cpuflag(ssse3)\n    mova       m1, [pw_1024]\n%else\n    mova       m1, [pw_16]\n%endif\n    pxor       m0, m0\n    ; Set loop counter and increments\n    mov        r6, r5\n    shl        r6, %3\n    add        r0, r6\n    add        r1, r6\n    add        r2, r6\n    neg        r6\n\n    movd       m2, r3d\n    movd       m3, r4d\n%ifidn %1,rnd\n%define  RND   0\n    SPLATW     m2, m2\n%else\n%define  RND   1\n%if cpuflag(ssse3)\n    punpcklbw  m3, m2\n%else\n    SPLATW     m2, m2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/rv40dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/rv40dsp.asm:12", "text": "; Set loop counter and increments\n    mov        r6, r5\n    shl        r6, %3\n    add        r0, r6\n    add        r1, r6\n    add        r2, r6\n    neg        r6\n\n    movd       m2, r3d\n    movd       m3, r4d\n%ifidn %1,rnd\n%define  RND   0\n    SPLATW     m2, m2\n%else\n%define  RND   1\n%if cpuflag(ssse3)\n    punpcklbw  m3, m2\n%else\n    SPLATW     m2, m2\n%endif\n%endif\n    SPLATW     m3, m3\n\n.loop:\n    MAIN_LOOP  %2, RND\n    jnz        .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nRV40_WEIGHT   rnd,    8, 3\nRV40_WEIGHT   rnd,   16, 4\nRV40_WEIGHT   nornd,  8, 3\nRV40_WEIGHT   nornd, 16, 4\n\nINIT_XMM ssse3\nRV40_WEIGHT   rnd,    8, 3\nRV40_WEIGHT   rnd,   16, 4\nRV40_WEIGHT   nornd,  8, 3\nRV40_WEIGHT   nornd, 16, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/rv40dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/rv40dsp.asm", "line_start": 441, "line_end": 480}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SBC encoder DSP functions\n;*\n;* Copyright (C) 2017  Aurelien Jacobs <aurel@gnuage.org>\n;* Copyright (C) 2008-2010  Nokia Corporation\n;* Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>\n;* Copyright (C) 2004-2005  Henryk Ploetz <henryk@ploetzli.ch>\n;* Copyright (C) 2005-2006  Brad Midgley <bmidgley@xmission.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro NIDN 3\n%ifnidn %2, %3\n    %1            %2, %3\n%endif\n%endmacro\n\n%macro ANALYZE_MAC 6 ; out1, out2, tmp1, tmp2, offset, aligned\n    mov%6             %3, [inq+%5]\n    mov%6             %4, [inq+%5+mmsize]\n%if %5 == 0\n    pcmpeqd           m0, m0\n    psrld             m0, 31\n%endif\n    pmaddwd           %3, [constsq+%5]\n    pmaddwd           %4, [constsq+%5+mmsize]\n%if %5 == 0\n    pslld             m0, 15         ; 1 << (SBC_PROTO_FIXED_SCALE - 1) as dword\n%endif\n    NIDN paddd,       %1, %3\n    NIDN paddd,       %2, %4\n%endmacro\n\n;*******************************************************************\n;void ff_sbc_analyze_4(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_4, 3, 3, 5, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,  0, u\n    ANALYZE_MAC       m1, m2, m3, m4, 32, u\n    movu              m3, [inq+64]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbcdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:2", "text": "pcmpeqd           m0, m0\n    psrld             m0, 31\n%endif\n    pmaddwd           %3, [constsq+%5]\n    pmaddwd           %4, [constsq+%5+mmsize]\n%if %5 == 0\n    pslld             m0, 15         ; 1 << (SBC_PROTO_FIXED_SCALE - 1) as dword\n%endif\n    NIDN paddd,       %1, %3\n    NIDN paddd,       %2, %4\n%endmacro\n\n;*******************************************************************\n;void ff_sbc_analyze_4(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_4, 3, 3, 5, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,  0, u\n    ANALYZE_MAC       m1, m2, m3, m4, 32, u\n    movu              m3, [inq+64]\n    paddd             m1, m0\n    pmaddwd           m3, [constsq+64]\n    paddd             m1, m2\n    paddd             m1, m3\n\n    psrad             m1, 16\n    packssdw          m1, m1\n    pshufd            m2, m1, q0000\n    pmaddwd           m2, [constsq+80]\n    pshufd            m1, m1, q1111\n    pmaddwd           m1, [constsq+96]\n    paddd             m1, m2\n\n    mova          [outq], m1\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_8, 3, 3, 6, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,   0, a\n    ANALYZE_MAC       m1, m2, m3, m4,  32, a\n    paddd             m1, m0\n    ANALYZE_MAC       m1, m2, m3, m4,  64, a\n    ANALYZE_MAC       m1, m2, m3, m4,  96, a\n    paddd             m2, m0\n    ANALYZE_MAC       m1, m2, m3, m4, 128, a\n\n    psrad             m1, 16\n    psrad             m2, 16\n    packssdw          m1, m2\n\n    pshufd            m2, m1, q0000\n    pmaddwd           m0, m2, [constsq+160]\n    pshufd            m3, m1, q1111\n    pmaddwd           m2, [constsq+176]\n    pmaddwd           m4, m3, [constsq+192]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbcdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:3", "text": ";*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_8, 3, 3, 6, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,   0, a\n    ANALYZE_MAC       m1, m2, m3, m4,  32, a\n    paddd             m1, m0\n    ANALYZE_MAC       m1, m2, m3, m4,  64, a\n    ANALYZE_MAC       m1, m2, m3, m4,  96, a\n    paddd             m2, m0\n    ANALYZE_MAC       m1, m2, m3, m4, 128, a\n\n    psrad             m1, 16\n    psrad             m2, 16\n    packssdw          m1, m2\n\n    pshufd            m2, m1, q0000\n    pmaddwd           m0, m2, [constsq+160]\n    pshufd            m3, m1, q1111\n    pmaddwd           m2, [constsq+176]\n    pmaddwd           m4, m3, [constsq+192]\n    pshufd            m5, m1, q2222\n    pmaddwd           m3, [constsq+208]\n    paddd             m0, m4\n    pmaddwd           m4, m5, [constsq+224]\n    pshufd            m1, m1, q3333\n    pmaddwd           m5, [constsq+240]\n    paddd             m2, m3\n    pmaddwd           m3, m1, [constsq+256]\n    paddd             m0, m4\n    pmaddwd           m1, [constsq+272]\n    paddd             m0, m3\n    paddd             m2, m5\n\n    mova          [outq], m0\n    paddd             m2, m1\n    mova       [outq+16], m2\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_XMM sse4\ncglobal sbc_calc_scalefactors, 5, 6, 5, sb_sample_f, scale_factor, blocks, channels, subbands, step\n    shl          blocksd, 6\n    pcmpeqd           m3, m3\n    shl        subbandsd, 2\n    mov            stepd, 48\n    add     sb_sample_fq, blocksq\n    psrld             m4, m3, 25      ; pd_127\n    neg          blocksq\n    shl        channelsd, 5\n    sub            stepd, subbandsd   ; step = subbands == 4 ? 32 : 16\n    pxor              m2, m2\n\n.loop_1:\n    lea        subbandsq, [blocksq+64]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbcdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:4", "text": ";*******************************************************************\n;void ff_sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_XMM sse4\ncglobal sbc_calc_scalefactors, 5, 6, 5, sb_sample_f, scale_factor, blocks, channels, subbands, step\n    shl          blocksd, 6\n    pcmpeqd           m3, m3\n    shl        subbandsd, 2\n    mov            stepd, 48\n    add     sb_sample_fq, blocksq\n    psrld             m4, m3, 25      ; pd_127\n    neg          blocksq\n    shl        channelsd, 5\n    sub            stepd, subbandsd   ; step = subbands == 4 ? 32 : 16\n    pxor              m2, m2\n\n.loop_1:\n    lea        subbandsq, [blocksq+64]\n\n    pabsd             m0, [sb_sample_fq+blocksq]\n.loop_2:\n    pabsd             m1, [sb_sample_fq+subbandsq]\n    pmaxud            m0, m1\n    add        subbandsq, 64\n    js           .loop_2\n\n    paddd             m0, m3          ; max - 1, representable as signed value\n    pmaxsd            m0, m2\n\n    ; We have to calculate log2(x|(1<<15))-15. This equals log2(x>>15) for x >= 2^15\n    ; and x>>15 is exactly representable as a float, so one can get the log2\n    ; by converting to float and subtracting 127 from the exponent.\n    ; For x < 2^15 the result is correct when using saturated subtraction.\n    psrld             m0, 15\n    cvtdq2ps          m0, m0\n    add     sb_sample_fq, stepq\n    psrld             m0, 23          ; exponent\n    psubusw           m0, m4          ; same as saturated dword subtraction\n    mova [scale_factorq], m0\n\n    add    scale_factorq, stepq\n    sub        channelsd, stepd\n    jg           .loop_1\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbcdsp.asm", "line_start": 121, "line_end": 167}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SBC encoder DSP functions\n;*\n;* Copyright (C) 2017  Aurelien Jacobs <aurel@gnuage.org>\n;* Copyright (C) 2008-2010  Nokia Corporation\n;* Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>\n;* Copyright (C) 2004-2005  Henryk Ploetz <henryk@ploetzli.ch>\n;* Copyright (C) 2005-2006  Brad Midgley <bmidgley@xmission.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscale_mask: times 2 dd 0x8000    ; 1 << (SBC_PROTO_FIXED_SCALE - 1)\n\nSECTION .text\n\n%macro NIDN 3\n%ifnidn %2, %3\n    %1            %2, %3\n%endif\n%endmacro\n\n%macro ANALYZE_MAC 6 ; out1, out2, tmp1, tmp2, offset, aligned\n    mov%6             %3, [inq+%5]\n    mov%6             %4, [inq+%5+mmsize]\n%if %5 == 0\n    pcmpeqd           m0, m0\n    psrld             m0, 31\n%endif\n    pmaddwd           %3, [constsq+%5]\n    pmaddwd           %4, [constsq+%5+mmsize]\n%if %5 == 0\n    pslld             m0, 15         ; 1 << (SBC_PROTO_FIXED_SCALE - 1) as dword\n%endif\n    NIDN paddd,       %1, %3\n    NIDN paddd,       %2, %4\n%endmacro\n\n;*******************************************************************\n;void ff_sbc_analyze_4(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "cd886bf0a5dd8984dab002e40e396b7c96d38781", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd886bf0a5dd8984dab002e40e396b7c96d38781/libavcodec/x86/sbcdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:2", "text": "%macro ANALYZE_MAC 6 ; out1, out2, tmp1, tmp2, offset, aligned\n    mov%6             %3, [inq+%5]\n    mov%6             %4, [inq+%5+mmsize]\n%if %5 == 0\n    pcmpeqd           m0, m0\n    psrld             m0, 31\n%endif\n    pmaddwd           %3, [constsq+%5]\n    pmaddwd           %4, [constsq+%5+mmsize]\n%if %5 == 0\n    pslld             m0, 15         ; 1 << (SBC_PROTO_FIXED_SCALE - 1) as dword\n%endif\n    NIDN paddd,       %1, %3\n    NIDN paddd,       %2, %4\n%endmacro\n\n;*******************************************************************\n;void ff_sbc_analyze_4(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_4, 3, 3, 5, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,  0, u\n    ANALYZE_MAC       m1, m2, m3, m4, 32, u\n    movu              m3, [inq+64]\n    paddd             m1, m0\n    pmaddwd           m3, [constsq+64]\n    paddd             m1, m2\n    paddd             m1, m3\n\n    psrad             m1, 16\n    packssdw          m1, m1\n    pshufd            m2, m1, q0000\n    pmaddwd           m2, [constsq+80]\n    pshufd            m1, m1, q1111\n    pmaddwd           m1, [constsq+96]\n    paddd             m1, m2\n\n    mova          [outq], m1\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_8, 3, 3, 6, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,   0, a\n    ANALYZE_MAC       m1, m2, m3, m4,  32, a\n    paddd             m1, m0\n    ANALYZE_MAC       m1, m2, m3, m4,  64, a\n    ANALYZE_MAC       m1, m2, m3, m4,  96, a\n    paddd             m2, m0\n    ANALYZE_MAC       m1, m2, m3, m4, 128, a\n\n    psrad             m1, 16\n    psrad             m2, 16\n    packssdw          m1, m2\n\n    pshufd            m2, m1, q0000", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "cd886bf0a5dd8984dab002e40e396b7c96d38781", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd886bf0a5dd8984dab002e40e396b7c96d38781/libavcodec/x86/sbcdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:3", "text": ";*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_XMM sse2\ncglobal sbc_analyze_8, 3, 3, 6, in, out, consts\n    ANALYZE_MAC       m1, m2, m1, m2,   0, a\n    ANALYZE_MAC       m1, m2, m3, m4,  32, a\n    paddd             m1, m0\n    ANALYZE_MAC       m1, m2, m3, m4,  64, a\n    ANALYZE_MAC       m1, m2, m3, m4,  96, a\n    paddd             m2, m0\n    ANALYZE_MAC       m1, m2, m3, m4, 128, a\n\n    psrad             m1, 16\n    psrad             m2, 16\n    packssdw          m1, m2\n\n    pshufd            m2, m1, q0000\n    pmaddwd           m0, m2, [constsq+160]\n    pshufd            m3, m1, q1111\n    pmaddwd           m2, [constsq+176]\n    pmaddwd           m4, m3, [constsq+192]\n    pshufd            m5, m1, q2222\n    pmaddwd           m3, [constsq+208]\n    paddd             m0, m4\n    pmaddwd           m4, m5, [constsq+224]\n    pshufd            m1, m1, q3333\n    pmaddwd           m5, [constsq+240]\n    paddd             m2, m3\n    pmaddwd           m3, m1, [constsq+256]\n    paddd             m0, m4\n    pmaddwd           m1, [constsq+272]\n    paddd             m0, m3\n    paddd             m2, m5\n\n    mova          [outq], m0\n    paddd             m2, m1\n    mova       [outq+16], m2\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    add           subbandsd, 32\n\n.loop_1:\n    sub           subbandsq, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "cd886bf0a5dd8984dab002e40e396b7c96d38781", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd886bf0a5dd8984dab002e40e396b7c96d38781/libavcodec/x86/sbcdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:4", "text": "RET\n\n\n;*******************************************************************\n;void ff_sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    add           subbandsd, 32\n\n.loop_1:\n    sub           subbandsq, 8\n    lea           ptrq, [sb_sample_fq + subbandsq]\n\n    ; blk = (blocks - 1) * 64;\n    lea           blkq, [blocksq - 1]\n    shl           blkd, 6\n\n    movq          m0, m3\n.loop_2:\n    movq          m1, [ptrq+blkq]\n    pxor          m2, m2\n    pcmpgtd       m1, m2\n    paddd         m1, [ptrq+blkq]\n    pcmpgtd       m2, m1\n    pxor          m1, m2\n\n    por           m0, m1\n\n    sub           blkq, 64\n    jns           .loop_2\n\n    movd          blkd, m0\n    psrlq         m0,   32\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq], blkd\n\n    movd          blkd, m0\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq + 4], blkd\n\n    cmp           subbandsq, 0\n    jg            .loop_1\n\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "cd886bf0a5dd8984dab002e40e396b7c96d38781", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd886bf0a5dd8984dab002e40e396b7c96d38781/libavcodec/x86/sbcdsp.asm", "line_start": 121, "line_end": 176}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:5", "text": "movd          blkd, m0\n    psrlq         m0,   32\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq], blkd\n\n    movd          blkd, m0\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq + 4], blkd\n\n    cmp           subbandsq, 0\n    jg            .loop_1\n\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "cd886bf0a5dd8984dab002e40e396b7c96d38781", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cd886bf0a5dd8984dab002e40e396b7c96d38781/libavcodec/x86/sbcdsp.asm", "line_start": 161, "line_end": 176}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SBC encoder DSP functions\n;*\n;* Copyright (C) 2017  Aurelien Jacobs <aurel@gnuage.org>\n;* Copyright (C) 2008-2010  Nokia Corporation\n;* Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>\n;* Copyright (C) 2004-2005  Henryk Ploetz <henryk@ploetzli.ch>\n;* Copyright (C) 2005-2006  Brad Midgley <bmidgley@xmission.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nscale_mask: times 2 dd 0x8000    ; 1 << (SBC_PROTO_FIXED_SCALE - 1)\n\nSECTION .text\n\n%macro NIDN 3\n%ifnidn %2, %3\n    %1            %2, %3\n%endif\n%endmacro\n\n%macro ANALYZE_MAC 9 ; out1, out2, in1, in2, tmp1, tmp2, add1, add2, offset\n    NIDN movq,    %5, %3\n    NIDN movq,    %6, %4\n    pmaddwd       %5, [constsq+%9]\n    pmaddwd       %6, [constsq+%9+8]\n    NIDN paddd,   %1, %7\n    NIDN paddd,   %2, %8\n%endmacro\n\n%macro ANALYZE_MAC_IN 7 ; out1, out2, tmp1, tmp2, add1, add2, offset\n    ANALYZE_MAC   %1, %2, [inq+%7], [inq+%7+8], %3, %4, %5, %6, %7\n%endmacro\n\n%macro ANALYZE_MAC_REG 7 ; out1, out2, in, tmp1, tmp2, offset, pack\n%ifidn %7, pack\n    psrad         %3, 16    ; SBC_PROTO_FIXED_SCALE\n    packssdw      %3, %3\n%endif\n    ANALYZE_MAC   %1, %2, %3, %3, %4, %5, %4, %5, %6\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75/libavcodec/x86/sbcdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:2", "text": "%macro ANALYZE_MAC 9 ; out1, out2, in1, in2, tmp1, tmp2, add1, add2, offset\n    NIDN movq,    %5, %3\n    NIDN movq,    %6, %4\n    pmaddwd       %5, [constsq+%9]\n    pmaddwd       %6, [constsq+%9+8]\n    NIDN paddd,   %1, %7\n    NIDN paddd,   %2, %8\n%endmacro\n\n%macro ANALYZE_MAC_IN 7 ; out1, out2, tmp1, tmp2, add1, add2, offset\n    ANALYZE_MAC   %1, %2, [inq+%7], [inq+%7+8], %3, %4, %5, %6, %7\n%endmacro\n\n%macro ANALYZE_MAC_REG 7 ; out1, out2, in, tmp1, tmp2, offset, pack\n%ifidn %7, pack\n    psrad         %3, 16    ; SBC_PROTO_FIXED_SCALE\n    packssdw      %3, %3\n%endif\n    ANALYZE_MAC   %1, %2, %3, %3, %4, %5, %4, %5, %6\n%endmacro\n\n;*******************************************************************\n;void ff_sbc_analyze_4(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_analyze_4, 3, 3, 4, in, out, consts\n    ANALYZE_MAC_IN   m0, m1, m0, m1, [scale_mask], [scale_mask], 0\n    ANALYZE_MAC_IN   m0, m1, m2, m3, m2, m3, 16\n    ANALYZE_MAC_IN   m0, m1, m2, m3, m2, m3, 32\n    ANALYZE_MAC_IN   m0, m1, m2, m3, m2, m3, 48\n    ANALYZE_MAC_IN   m0, m1, m2, m3, m2, m3, 64\n\n    ANALYZE_MAC_REG  m0, m2, m0, m0, m2, 80, pack\n    ANALYZE_MAC_REG  m0, m2, m1, m1, m3, 96, pack\n\n    movq          [outq  ], m0\n    movq          [outq+8], m2\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_analyze_8, 3, 3, 4, in, out, consts\n    ANALYZE_MAC_IN   m0, m1, m0, m1, [scale_mask], [scale_mask],  0\n    ANALYZE_MAC_IN   m2, m3, m2, m3, [scale_mask], [scale_mask], 16\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  32\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  48\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  64\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  80\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  96\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 112\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5, 128\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 144\n\n    ANALYZE_MAC_REG  m4, m5, m0, m4, m5, 160, pack\n    ANALYZE_MAC_REG  m4, m5, m1, m6, m7, 192, pack\n    ANALYZE_MAC_REG  m4, m5, m2, m6, m7, 224, pack", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75/libavcodec/x86/sbcdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:3", "text": ";*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_analyze_8, 3, 3, 4, in, out, consts\n    ANALYZE_MAC_IN   m0, m1, m0, m1, [scale_mask], [scale_mask],  0\n    ANALYZE_MAC_IN   m2, m3, m2, m3, [scale_mask], [scale_mask], 16\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  32\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  48\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  64\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  80\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  96\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 112\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5, 128\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 144\n\n    ANALYZE_MAC_REG  m4, m5, m0, m4, m5, 160, pack\n    ANALYZE_MAC_REG  m4, m5, m1, m6, m7, 192, pack\n    ANALYZE_MAC_REG  m4, m5, m2, m6, m7, 224, pack\n    ANALYZE_MAC_REG  m4, m5, m3, m6, m7, 256, pack\n\n    movq          [outq  ], m4\n    movq          [outq+8], m5\n\n    ANALYZE_MAC_REG  m0, m5, m0, m0, m5, 176, no\n    ANALYZE_MAC_REG  m0, m5, m1, m1, m7, 208, no\n    ANALYZE_MAC_REG  m0, m5, m2, m2, m7, 240, no\n    ANALYZE_MAC_REG  m0, m5, m3, m3, m7, 272, no\n\n    movq          [outq+16], m0\n    movq          [outq+24], m5\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    add           subbandsd, 32\n\n.loop_1:\n    sub           subbandsq, 8\n    lea           ptrq, [sb_sample_fq + subbandsq]\n\n    ; blk = (blocks - 1) * 64;\n    lea           blkq, [blocksq - 1]\n    shl           blkd, 6\n\n    movq          m0, m3\n.loop_2:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75/libavcodec/x86/sbcdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:4", "text": ";*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    add           subbandsd, 32\n\n.loop_1:\n    sub           subbandsq, 8\n    lea           ptrq, [sb_sample_fq + subbandsq]\n\n    ; blk = (blocks - 1) * 64;\n    lea           blkq, [blocksq - 1]\n    shl           blkd, 6\n\n    movq          m0, m3\n.loop_2:\n    movq          m1, [ptrq+blkq]\n    pxor          m2, m2\n    pcmpgtd       m1, m2\n    paddd         m1, [ptrq+blkq]\n    pcmpgtd       m2, m1\n    pxor          m1, m2\n\n    por           m0, m1\n\n    sub           blkq, 64\n    jns           .loop_2\n\n    movd          blkd, m0\n    psrlq         m0,   32\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq], blkd\n\n    movd          blkd, m0\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq + 4], blkd\n\n    cmp           subbandsq, 0\n    jg            .loop_1\n\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b5ce98b3ff4266e45898153b8ea1c5e6ddae0a75/libavcodec/x86/sbcdsp.asm", "line_start": 121, "line_end": 168}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:3", "text": ";*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_analyze_8, 3, 3, 4, in, out, consts\n    ANALYZE_MAC_IN   m0, m1, m0, m1, [scale_mask], [scale_mask],  0\n    ANALYZE_MAC_IN   m2, m3, m2, m3, [scale_mask], [scale_mask], 16\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  32\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  48\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  64\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  80\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  96\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 112\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5, 128\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 144\n\n    ANALYZE_MAC_REG  m4, m5, m0, m4, m5, 160, pack\n    ANALYZE_MAC_REG  m4, m5, m1, m6, m7, 192, pack\n    ANALYZE_MAC_REG  m4, m5, m2, m6, m7, 224, pack\n    ANALYZE_MAC_REG  m4, m5, m3, m6, m7, 256, pack\n\n    movq          [outq  ], m4\n    movq          [outq+8], m5\n\n    ANALYZE_MAC_REG  m0, m5, m0, m0, m5, 176, no\n    ANALYZE_MAC_REG  m0, m5, m1, m1, m7, 208, no\n    ANALYZE_MAC_REG  m0, m5, m2, m2, m7, 240, no\n    ANALYZE_MAC_REG  m0, m5, m3, m3, m7, 272, no\n\n    movq          [outq+16], m0\n    movq          [outq+24], m5\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_calc_scalefactors(int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    add           subbandsd, 32\n\n.loop_1:\n    sub           subbandsq, 8\n    lea           ptrq, [sb_sample_fq + subbandsq]\n\n    ; blk = (blocks - 1) * 64;\n    lea           blkq, [blocksq - 1]\n    shl           blkd, 6\n\n    movq          m0, m3\n.loop_2:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "0a81a1ce6645931ea79d07737edc7548ec984520", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a81a1ce6645931ea79d07737edc7548ec984520/libavcodec/x86/sbcdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:3", "text": ";*******************************************************************\n;void ff_sbc_analyze_8(const int16_t *in, int32_t *out, const int16_t *consts);\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_analyze_8, 3, 3, 4, in, out, consts\n    ANALYZE_MAC_IN   m0, m1, m0, m1, [scale_mask], [scale_mask],  0\n    ANALYZE_MAC_IN   m2, m3, m2, m3, [scale_mask], [scale_mask], 16\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  32\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  48\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  64\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7,  80\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5,  96\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 112\n    ANALYZE_MAC_IN   m0, m1, m4, m5, m4, m5, 128\n    ANALYZE_MAC_IN   m2, m3, m6, m7, m6, m7, 144\n\n    ANALYZE_MAC_REG  m4, m5, m0, m4, m5, 160, pack\n    ANALYZE_MAC_REG  m4, m5, m1, m6, m7, 192, pack\n    ANALYZE_MAC_REG  m4, m5, m2, m6, m7, 224, pack\n    ANALYZE_MAC_REG  m4, m5, m3, m6, m7, 256, pack\n\n    movq          [outq  ], m4\n    movq          [outq+8], m5\n\n    ANALYZE_MAC_REG  m0, m5, m0, m0, m5, 176, no\n    ANALYZE_MAC_REG  m0, m5, m1, m1, m7, 208, no\n    ANALYZE_MAC_REG  m0, m5, m2, m2, m7, 240, no\n    ANALYZE_MAC_REG  m0, m5, m3, m3, m7, 272, no\n\n    movq          [outq+16], m0\n    movq          [outq+24], m5\n\n    RET\n\n\n;*******************************************************************\n;void ff_sbc_calc_scalefactors(int32_t sb_sample_f[16][2][8],\n;                              uint32_t scale_factor[2][8],\n;                              int blocks, int channels, int subbands)\n;*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    shl           subbandsd, 1\n\n.loop_1:\n    sub           subbandsq, 8\n    lea           ptrq, [sb_sample_fq + subbandsq]\n\n    ; blk = (blocks - 1) * 64;\n    lea           blkq, [blocksq - 1]\n    shl           blkd, 6\n\n    movq          m0, m3\n.loop_2:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/sbcdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbcdsp.asm:4", "text": ";*******************************************************************\nINIT_MMX mmx\ncglobal sbc_calc_scalefactors, 5, 7, 4, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk\n    ; subbands = 4 * subbands * channels\n    movq          m3, [scale_mask]\n    shl           subbandsd, 2\n    cmp           channelsd, 2\n    jl            .loop_1\n    shl           subbandsd, 1\n\n.loop_1:\n    sub           subbandsq, 8\n    lea           ptrq, [sb_sample_fq + subbandsq]\n\n    ; blk = (blocks - 1) * 64;\n    lea           blkq, [blocksq - 1]\n    shl           blkd, 6\n\n    movq          m0, m3\n.loop_2:\n    movq          m1, [ptrq+blkq]\n    pxor          m2, m2\n    pcmpgtd       m1, m2\n    paddd         m1, [ptrq+blkq]\n    pcmpgtd       m2, m1\n    pxor          m1, m2\n\n    por           m0, m1\n\n    sub           blkq, 64\n    jns           .loop_2\n\n    movd          blkd, m0\n    psrlq         m0,   32\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq], blkd\n\n    movd          blkd, m0\n    bsr           blkd, blkd\n    sub           blkd, 15    ; SCALE_OUT_BITS\n    mov           [scale_factorq + subbandsq + 4], blkd\n\n    cmp           subbandsq, 0\n    jg            .loop_1\n\n    emms\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbcdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/sbcdsp.asm", "line_start": 121, "line_end": 168}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:1", "text": ";******************************************************************************\n;* AAC Spectral Band Replication decoding functions\n;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n; mask equivalent for multiply by -1.0 1.0\nps_mask         times 2 dd 1<<31, 0\nps_mask2        times 2 dd 0, 1<<31\nps_mask3        dd  0, 0, 0, 1<<31\nps_noise0       times 2 dd  1.0,  0.0,\nps_noise2       times 2 dd -1.0,  0.0\nps_noise13      dd  0.0,  1.0, 0.0, -1.0\n                dd  0.0, -1.0, 0.0,  1.0\n                dd  0.0,  1.0, 0.0, -1.0\ncextern         sbr_noise_table\ncextern         ps_neg\n\nSECTION .text\n\nINIT_XMM sse\ncglobal sbr_sum_square, 2, 3, 6\n    mov        r2d, r1d\n    xorps       m0, m0\n    xorps       m1, m1\n    sar         r2, 3\n    jz          .prepare\n.loop:\n    movu        m2, [r0 +  0]\n    movu        m3, [r0 + 16]\n    movu        m4, [r0 + 32]\n    movu        m5, [r0 + 48]\n    mulps       m2, m2\n    mulps       m3, m3\n    mulps       m4, m4\n    mulps       m5, m5\n    addps       m0, m2\n    addps       m1, m3\n    addps       m0, m4\n    addps       m1, m5\n    add         r0, 64\n    dec         r2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:2", "text": "mov        r2d, r1d\n    xorps       m0, m0\n    xorps       m1, m1\n    sar         r2, 3\n    jz          .prepare\n.loop:\n    movu        m2, [r0 +  0]\n    movu        m3, [r0 + 16]\n    movu        m4, [r0 + 32]\n    movu        m5, [r0 + 48]\n    mulps       m2, m2\n    mulps       m3, m3\n    mulps       m4, m4\n    mulps       m5, m5\n    addps       m0, m2\n    addps       m1, m3\n    addps       m0, m4\n    addps       m1, m5\n    add         r0, 64\n    dec         r2\n    jnz         .loop\n.prepare:\n    and         r1, 7\n    sar         r1, 1\n    jz          .end\n; len is a multiple of 2, thus there are at least 4 elements to process\n.endloop:\n    movu        m2, [r0]\n    add         r0, 16\n    mulps       m2, m2\n    dec         r1\n    addps       m0, m2\n    jnz         .endloop\n.end:\n    addps       m0, m1\n    movhlps     m2, m0\n    addps       m0, m2\n    movss       m1, m0\n    shufps      m0, m0, 1\n    addss       m0, m1\n%if ARCH_X86_64 == 0\n    movss       r0m,  m0\n    fld         dword r0m\n%endif\n    RET\n\n%define STEP  40*4*2\ncglobal sbr_hf_g_filt, 5, 6, 5\n    lea         r1, [r1 + 8*r4] ; offset by ixh elements into X_high\n    mov         r5, r3\n    and         r3, 0xFC\n    lea         r2, [r2 + r3*4]\n    lea         r0, [r0 + r3*8]\n    neg         r3\n    jz          .loop1\n.loop4:\n    movlps      m0, [r2 + 4*r3 + 0]\n    movlps      m1, [r2 + 4*r3 + 8]\n    movlps      m2, [r1 + 0*STEP]\n    movlps      m3, [r1 + 2*STEP]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:3", "text": "%if ARCH_X86_64 == 0\n    movss       r0m,  m0\n    fld         dword r0m\n%endif\n    RET\n\n%define STEP  40*4*2\ncglobal sbr_hf_g_filt, 5, 6, 5\n    lea         r1, [r1 + 8*r4] ; offset by ixh elements into X_high\n    mov         r5, r3\n    and         r3, 0xFC\n    lea         r2, [r2 + r3*4]\n    lea         r0, [r0 + r3*8]\n    neg         r3\n    jz          .loop1\n.loop4:\n    movlps      m0, [r2 + 4*r3 + 0]\n    movlps      m1, [r2 + 4*r3 + 8]\n    movlps      m2, [r1 + 0*STEP]\n    movlps      m3, [r1 + 2*STEP]\n    movhps      m2, [r1 + 1*STEP]\n    movhps      m3, [r1 + 3*STEP]\n    unpcklps    m0, m0\n    unpcklps    m1, m1\n    mulps       m0, m2\n    mulps       m1, m3\n    movu        [r0 + 8*r3 +  0], m0\n    movu        [r0 + 8*r3 + 16], m1\n    add         r1, 4*STEP\n    add         r3, 4\n    jnz         .loop4\n    and         r5, 3 ; number of single element loops\n    jz          .end\n.loop1: ; element 0 and 1 can be computed at the same time\n    movss       m0, [r2]\n    movlps      m2, [r1]\n    unpcklps    m0, m0\n    mulps       m2, m0\n    movlps    [r0], m2\n    add         r0, 8\n    add         r2, 4\n    add         r1, STEP\n    dec         r5\n    jnz         .loop1\n.end:\n    RET\n\n; void ff_sbr_hf_gen_sse(float (*X_high)[2], const float (*X_low)[2],\n;                        const float alpha0[2], const float alpha1[2],\n;                        float bw, int start, int end)\n;\ncglobal sbr_hf_gen, 4,4,8, X_high, X_low, alpha0, alpha1, BW, S, E\n    ; load alpha factors\n%define bw m0\n%if ARCH_X86_64 == 0 || WIN64\n    movss      bw, BWm\n%endif\n    movlps     m2, [alpha1q]\n    movlps     m1, [alpha0q]\n    shufps     bw, bw, 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:4", "text": "add         r2, 4\n    add         r1, STEP\n    dec         r5\n    jnz         .loop1\n.end:\n    RET\n\n; void ff_sbr_hf_gen_sse(float (*X_high)[2], const float (*X_low)[2],\n;                        const float alpha0[2], const float alpha1[2],\n;                        float bw, int start, int end)\n;\ncglobal sbr_hf_gen, 4,4,8, X_high, X_low, alpha0, alpha1, BW, S, E\n    ; load alpha factors\n%define bw m0\n%if ARCH_X86_64 == 0 || WIN64\n    movss      bw, BWm\n%endif\n    movlps     m2, [alpha1q]\n    movlps     m1, [alpha0q]\n    shufps     bw, bw, 0\n    mulps      m2, bw             ; (a1[0] a1[1])*bw\n    mulps      m1, bw             ; (a0[0] a0[1])*bw    = (a2 a3)\n    mulps      m2, bw             ; (a1[0] a1[1])*bw*bw = (a0 a1)\n    mova       m3, m1\n    mova       m4, m2\n\n    ; Set pointers\n%if ARCH_X86_64 == 0 || WIN64\n    ; start and end 6th and 7th args on stack\n    mov        r2d, Sm\n    mov        r3d, Em\n    DEFINE_ARGS X_high, X_low, start, end\n%else\n; BW does not actually occupy a register, so shift by 1\n    DEFINE_ARGS X_high, X_low, alpha0, alpha1, start, end\n    movsxd  startq, startd\n    movsxd    endq, endd\n%endif\n    sub     startq, endq         ; neg num of loops\n    lea    X_highq, [X_highq + endq*2*4]\n    lea     X_lowq, [X_lowq  + endq*2*4 - 2*2*4]\n    shl     startq, 3            ; offset from num loops\n\n    mova        m0, [X_lowq + startq]\n    shufps      m3, m3, q1111\n    shufps      m4, m4, q1111\n    xorps       m3, [ps_mask]\n    shufps      m1, m1, q0000\n    shufps      m2, m2, q0000\n    xorps       m4, [ps_mask]\n.loop2:\n    movu        m7, [X_lowq + startq + 8]       ; BbCc\n    mova        m6, m0\n    mova        m5, m7\n    shufps      m0, m0, q2301                   ; aAbB\n    shufps      m7, m7, q2301                   ; bBcC\n    mulps       m0, m4\n    mulps       m7, m3\n    mulps       m6, m2\n    mulps       m5, m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:5", "text": "lea     X_lowq, [X_lowq  + endq*2*4 - 2*2*4]\n    shl     startq, 3            ; offset from num loops\n\n    mova        m0, [X_lowq + startq]\n    shufps      m3, m3, q1111\n    shufps      m4, m4, q1111\n    xorps       m3, [ps_mask]\n    shufps      m1, m1, q0000\n    shufps      m2, m2, q0000\n    xorps       m4, [ps_mask]\n.loop2:\n    movu        m7, [X_lowq + startq + 8]       ; BbCc\n    mova        m6, m0\n    mova        m5, m7\n    shufps      m0, m0, q2301                   ; aAbB\n    shufps      m7, m7, q2301                   ; bBcC\n    mulps       m0, m4\n    mulps       m7, m3\n    mulps       m6, m2\n    mulps       m5, m1\n    addps       m7, m0\n    mova        m0, [X_lowq + startq + 16]      ; CcDd\n    addps       m7, m0\n    addps       m6, m5\n    addps       m7, m6\n    mova  [X_highq + startq], m7\n    add     startq, 16\n    jnz         .loop2\n    RET\n\ncglobal sbr_sum64x5, 1,2,4,z\n    lea    r1q, [zq+ 256]\n.loop:\n    mova    m0, [zq+   0]\n    mova    m2, [zq+  16]\n    mova    m1, [zq+ 256]\n    mova    m3, [zq+ 272]\n    addps   m0, [zq+ 512]\n    addps   m2, [zq+ 528]\n    addps   m1, [zq+ 768]\n    addps   m3, [zq+ 784]\n    addps   m0, [zq+1024]\n    addps   m2, [zq+1040]\n    addps   m0, m1\n    addps   m2, m3\n    mova  [zq], m0\n    mova  [zq+16], m2\n    add     zq, 32\n    cmp     zq, r1q\n    jne  .loop\n    RET\n\nINIT_XMM sse\ncglobal sbr_qmf_post_shuffle, 2,3,4,W,z\n    lea              r2q, [zq + (64-4)*4]\n    mova              m3, [ps_neg]\n.loop:\n    mova              m1, [zq]\n    xorps             m0, m3, [r2q]\n    shufps            m0, m0, m0, q0123", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:6", "text": "addps   m3, [zq+ 784]\n    addps   m0, [zq+1024]\n    addps   m2, [zq+1040]\n    addps   m0, m1\n    addps   m2, m3\n    mova  [zq], m0\n    mova  [zq+16], m2\n    add     zq, 32\n    cmp     zq, r1q\n    jne  .loop\n    RET\n\nINIT_XMM sse\ncglobal sbr_qmf_post_shuffle, 2,3,4,W,z\n    lea              r2q, [zq + (64-4)*4]\n    mova              m3, [ps_neg]\n.loop:\n    mova              m1, [zq]\n    xorps             m0, m3, [r2q]\n    shufps            m0, m0, m0, q0123\n    unpcklps          m2, m0, m1\n    unpckhps          m0, m0, m1\n    mova       [Wq +  0], m2\n    mova       [Wq + 16], m0\n    add               Wq, 32\n    sub              r2q, 16\n    add               zq, 16\n    cmp               zq, r2q\n    jl             .loop\n    RET\n\nINIT_XMM sse\ncglobal sbr_neg_odd_64, 1,2,4,z\n    lea        r1q, [zq+256]\n.loop:\n    mova        m0, [zq+ 0]\n    mova        m1, [zq+16]\n    mova        m2, [zq+32]\n    mova        m3, [zq+48]\n    xorps       m0, [ps_mask2]\n    xorps       m1, [ps_mask2]\n    xorps       m2, [ps_mask2]\n    xorps       m3, [ps_mask2]\n    mova   [zq+ 0], m0\n    mova   [zq+16], m1\n    mova   [zq+32], m2\n    mova   [zq+48], m3\n    add         zq, 64\n    cmp         zq, r1q\n    jne      .loop\n    RET\n\n; void ff_sbr_qmf_deint_bfly_sse2(float *v, const float *src0, const float *src1)\nINIT_XMM sse2\ncglobal sbr_qmf_deint_bfly, 3,5,8, v,src0,src1,vrev,c\n    mov               cq, 64*4-2*mmsize\n    lea            vrevq, [vq + 64*4]\n.loop:\n    mova              m0, [src0q+cq]\n    mova              m1, [src1q]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:7", "text": "xorps       m1, [ps_mask2]\n    xorps       m2, [ps_mask2]\n    xorps       m3, [ps_mask2]\n    mova   [zq+ 0], m0\n    mova   [zq+16], m1\n    mova   [zq+32], m2\n    mova   [zq+48], m3\n    add         zq, 64\n    cmp         zq, r1q\n    jne      .loop\n    RET\n\n; void ff_sbr_qmf_deint_bfly_sse2(float *v, const float *src0, const float *src1)\nINIT_XMM sse2\ncglobal sbr_qmf_deint_bfly, 3,5,8, v,src0,src1,vrev,c\n    mov               cq, 64*4-2*mmsize\n    lea            vrevq, [vq + 64*4]\n.loop:\n    mova              m0, [src0q+cq]\n    mova              m1, [src1q]\n    mova              m4, [src0q+cq+mmsize]\n    mova              m5, [src1q+mmsize]\n    pshufd            m2, m0, q0123\n    pshufd            m3, m1, q0123\n    pshufd            m6, m4, q0123\n    pshufd            m7, m5, q0123\n    addps             m5, m2\n    subps             m0, m7\n    addps             m1, m6\n    subps             m4, m3\n    mova         [vrevq], m1\n    mova  [vrevq+mmsize], m5\n    mova         [vq+cq], m0\n    mova  [vq+cq+mmsize], m4\n    add            src1q, 2*mmsize\n    add            vrevq, 2*mmsize\n    sub               cq, 2*mmsize\n    jge            .loop\n    RET\n\nINIT_XMM sse2\ncglobal sbr_qmf_pre_shuffle, 1,4,6,z\n%define OFFSET  (32*4-2*mmsize)\n    mov       r3q, OFFSET\n    lea       r1q, [zq + (32+1)*4]\n    lea       r2q, [zq + 64*4]\n    mova       m5, [ps_neg]\n.loop:\n    movu       m0, [r1q]\n    movu       m2, [r1q + mmsize]\n    movu       m1, [zq + r3q + 4 + mmsize]\n    movu       m3, [zq + r3q + 4]\n\n    pxor       m2, m5\n    pxor       m0, m5\n    pshufd     m2, m2, q0123\n    pshufd     m0, m0, q0123\n    SBUTTERFLY dq, 2, 3, 4\n    SBUTTERFLY dq, 0, 1, 4\n    mova  [r2q + 2*r3q + 0*mmsize], m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:8", "text": "INIT_XMM sse2\ncglobal sbr_qmf_pre_shuffle, 1,4,6,z\n%define OFFSET  (32*4-2*mmsize)\n    mov       r3q, OFFSET\n    lea       r1q, [zq + (32+1)*4]\n    lea       r2q, [zq + 64*4]\n    mova       m5, [ps_neg]\n.loop:\n    movu       m0, [r1q]\n    movu       m2, [r1q + mmsize]\n    movu       m1, [zq + r3q + 4 + mmsize]\n    movu       m3, [zq + r3q + 4]\n\n    pxor       m2, m5\n    pxor       m0, m5\n    pshufd     m2, m2, q0123\n    pshufd     m0, m0, q0123\n    SBUTTERFLY dq, 2, 3, 4\n    SBUTTERFLY dq, 0, 1, 4\n    mova  [r2q + 2*r3q + 0*mmsize], m2\n    mova  [r2q + 2*r3q + 1*mmsize], m3\n    mova  [r2q + 2*r3q + 2*mmsize], m0\n    mova  [r2q + 2*r3q + 3*mmsize], m1\n    add       r1q, 2*mmsize\n    sub       r3q, 2*mmsize\n    jge      .loop\n    movq       m2, [zq]\n    movq    [r2q], m2\n    RET\n\n%if PIC\n%define NREGS 1\n%if UNIX64\n%define NOISE_TABLE r6q ; r5q is m_max\n%else\n%define NOISE_TABLE r5q\n%endif\n%else\n%define NREGS 0\n%define NOISE_TABLE sbr_noise_table\n%endif\n\n%macro LOAD_NST  1\n%if PIC\n    lea  NOISE_TABLE, [%1]\n    mova          m0, [kxq + NOISE_TABLE]\n%else\n    mova          m0, [kxq + %1]\n%endif\n%endmacro\n\nINIT_XMM sse2\n; sbr_hf_apply_noise_0(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_0, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    mova       m0, [ps_noise0]\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_1(float (*Y)[2], const float *s_m,", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:9", "text": "%endif\n\n%macro LOAD_NST  1\n%if PIC\n    lea  NOISE_TABLE, [%1]\n    mova          m0, [kxq + NOISE_TABLE]\n%else\n    mova          m0, [kxq + %1]\n%endif\n%endmacro\n\nINIT_XMM sse2\n; sbr_hf_apply_noise_0(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_0, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    mova       m0, [ps_noise0]\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_1(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_1, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    and       kxq, 1\n    shl       kxq, 4\n    LOAD_NST  ps_noise13\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_2(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_2, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    mova       m0, [ps_noise2]\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_3(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_3, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    and       kxq, 1\n    shl       kxq, 4\n    LOAD_NST  ps_noise13+16\n\napply_noise_main:\n%if ARCH_X86_64 == 0 || WIN64\n    mov       kxd, m_maxm\n    DEFINE_ARGS Y, s_m, q_filt, noise, count\n%else\n    DEFINE_ARGS Y, s_m, q_filt, noise, kx, count\n%endif\n    movsxdifnidn    noiseq, noised\n    dec    noiseq\n    shl    countd, 2\n%if PIC\n    lea NOISE_TABLE, [sbr_noise_table]\n%endif\n    lea        Yq, [Yq + 2*countq]\n    add      s_mq, countq\n    add   q_filtq, countq\n    shl    noiseq, 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:10", "text": "shl       kxq, 4\n    LOAD_NST  ps_noise13+16\n\napply_noise_main:\n%if ARCH_X86_64 == 0 || WIN64\n    mov       kxd, m_maxm\n    DEFINE_ARGS Y, s_m, q_filt, noise, count\n%else\n    DEFINE_ARGS Y, s_m, q_filt, noise, kx, count\n%endif\n    movsxdifnidn    noiseq, noised\n    dec    noiseq\n    shl    countd, 2\n%if PIC\n    lea NOISE_TABLE, [sbr_noise_table]\n%endif\n    lea        Yq, [Yq + 2*countq]\n    add      s_mq, countq\n    add   q_filtq, countq\n    shl    noiseq, 3\n    pxor       m5, m5\n    neg    countq\n.loop:\n    mova       m1, [q_filtq + countq]\n    movu       m3, [noiseq + NOISE_TABLE + 1*mmsize]\n    movu       m4, [noiseq + NOISE_TABLE + 2*mmsize]\n    add    noiseq, 2*mmsize\n    and    noiseq, 0x1ff<<3\n    punpckhdq  m2, m1, m1\n    punpckldq  m1, m1\n    mulps      m1, m3 ; m2 = q_filt[m] * ff_sbr_noise_table[noise]\n    mulps      m2, m4 ; m2 = q_filt[m] * ff_sbr_noise_table[noise]\n    mova       m3, [s_mq + countq]\n    ; TODO: replace by a vpermd in AVX2\n    punpckhdq  m4, m3, m3\n    punpckldq  m3, m3\n    pcmpeqd    m6, m3, m5 ; m6 == 0\n    pcmpeqd    m7, m4, m5 ; m7 == 0\n    mulps      m3, m0 ; s_m[m] * phi_sign\n    mulps      m4, m0 ; s_m[m] * phi_sign\n    pand       m1, m6\n    pand       m2, m7\n    movu       m6, [Yq + 2*countq]\n    movu       m7, [Yq + 2*countq + mmsize]\n    addps      m3, m1\n    addps      m4, m2\n    addps      m6, m3\n    addps      m7, m4\n    movu    [Yq + 2*countq], m6\n    movu    [Yq + 2*countq + mmsize], m7\n    add    countq, mmsize\n    jl      .loop\n    RET\n\nINIT_XMM sse\ncglobal sbr_qmf_deint_neg, 2,4,4,v,src,vrev,c\n%define COUNT  32*4\n%define OFFSET 32*4\n    mov        cq, -COUNT\n    lea     vrevq, [vq + OFFSET + COUNT]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:11", "text": "pand       m1, m6\n    pand       m2, m7\n    movu       m6, [Yq + 2*countq]\n    movu       m7, [Yq + 2*countq + mmsize]\n    addps      m3, m1\n    addps      m4, m2\n    addps      m6, m3\n    addps      m7, m4\n    movu    [Yq + 2*countq], m6\n    movu    [Yq + 2*countq + mmsize], m7\n    add    countq, mmsize\n    jl      .loop\n    RET\n\nINIT_XMM sse\ncglobal sbr_qmf_deint_neg, 2,4,4,v,src,vrev,c\n%define COUNT  32*4\n%define OFFSET 32*4\n    mov        cq, -COUNT\n    lea     vrevq, [vq + OFFSET + COUNT]\n    add        vq, OFFSET-mmsize\n    add      srcq, 2*COUNT\n    mova       m3, [ps_neg]\n.loop:\n    mova       m0, [srcq + 2*cq + 0*mmsize]\n    mova       m1, [srcq + 2*cq + 1*mmsize]\n    shufps     m2, m0, m1, q2020\n    shufps     m1, m0, q1313\n    xorps      m2, m3\n    mova     [vq], m1\n    mova  [vrevq + cq], m2\n    sub        vq, mmsize\n    add        cq, mmsize\n    jl      .loop\n    RET\n\n%macro SBR_AUTOCORRELATE 0\ncglobal sbr_autocorrelate, 2,3,8,32, x, phi, cnt\n    mov   cntq, 37*8\n    add     xq, cntq\n    neg   cntq\n\n%if cpuflag(sse3)\n%define   MOVH  movsd\n    movddup m5, [xq+cntq]\n%else\n%define   MOVH  movlps\n    movlps  m5, [xq+cntq]\n    movlhps m5, m5\n%endif\n    MOVH    m7, [xq+cntq+8 ]\n    MOVH    m1, [xq+cntq+16]\n    shufps  m7, m7, q0110\n    shufps  m1, m1, q0110\n    mulps   m3, m5, m7   ;              x[0][0] * x[1][0], x[0][1] * x[1][1], x[0][0] * x[1][1], x[0][1] * x[1][0]\n    mulps   m4, m5, m5   ;              x[0][0] * x[0][0], x[0][1] * x[0][1];\n    mulps   m5, m1       ; real_sum2  = x[0][0] * x[2][0], x[0][1] * x[2][1]; imag_sum2 = x[0][0] * x[2][1], x[0][1] * x[2][0]\n    movaps  [rsp   ], m3\n    movaps  [rsp+16], m4\n    add   cntq, 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:12", "text": "neg   cntq\n\n%if cpuflag(sse3)\n%define   MOVH  movsd\n    movddup m5, [xq+cntq]\n%else\n%define   MOVH  movlps\n    movlps  m5, [xq+cntq]\n    movlhps m5, m5\n%endif\n    MOVH    m7, [xq+cntq+8 ]\n    MOVH    m1, [xq+cntq+16]\n    shufps  m7, m7, q0110\n    shufps  m1, m1, q0110\n    mulps   m3, m5, m7   ;              x[0][0] * x[1][0], x[0][1] * x[1][1], x[0][0] * x[1][1], x[0][1] * x[1][0]\n    mulps   m4, m5, m5   ;              x[0][0] * x[0][0], x[0][1] * x[0][1];\n    mulps   m5, m1       ; real_sum2  = x[0][0] * x[2][0], x[0][1] * x[2][1]; imag_sum2 = x[0][0] * x[2][1], x[0][1] * x[2][0]\n    movaps  [rsp   ], m3\n    movaps  [rsp+16], m4\n    add   cntq, 8\n\n    MOVH    m2, [xq+cntq+16]\n    movlhps m7, m7\n    shufps  m2, m2, q0110\n    mulps   m6, m7, m1   ; real_sum1  = x[1][0] * x[2][0], x[1][1] * x[2][1]; imag_sum1 += x[1][0] * x[2][1], x[1][1] * x[2][0]\n    mulps   m4, m7, m2\n    mulps   m7, m7       ; real_sum0  = x[1][0] * x[1][0], x[1][1] * x[1][1];\n    addps   m5, m4       ; real_sum2 += x[1][0] * x[3][0], x[1][1] * x[3][1]; imag_sum2 += x[1][0] * x[3][1], x[1][1] * x[3][0]\n\nalign 16\n.loop:\n    add   cntq, 8\n    MOVH    m0, [xq+cntq+16]\n    movlhps m1, m1\n    shufps  m0, m0, q0110\n    mulps   m3, m1, m2\n    mulps   m4, m1, m0\n    mulps   m1, m1\n    addps   m6, m3       ; real_sum1 += x[i][0] * x[i + 1][0], x[i][1] * x[i + 1][1]; imag_sum1 += x[i][0] * x[i + 1][1], x[i][1] * x[i + 1][0];\n    addps   m5, m4       ; real_sum2 += x[i][0] * x[i + 2][0], x[i][1] * x[i + 2][1]; imag_sum2 += x[i][0] * x[i + 2][1], x[i][1] * x[i + 2][0];\n    addps   m7, m1       ; real_sum0 += x[i][0] * x[i][0],     x[i][1] * x[i][1];\n    add   cntq, 8\n    MOVH    m1, [xq+cntq+16]\n    movlhps m2, m2\n    shufps  m1, m1, q0110\n    mulps   m3, m2, m0\n    mulps   m4, m2, m1\n    mulps   m2, m2\n    addps   m6, m3       ; real_sum1 += x[i][0] * x[i + 1][0], x[i][1] * x[i + 1][1]; imag_sum1 += x[i][0] * x[i + 1][1], x[i][1] * x[i + 1][0];\n    addps   m5, m4       ; real_sum2 += x[i][0] * x[i + 2][0], x[i][1] * x[i + 2][1]; imag_sum2 += x[i][0] * x[i + 2][1], x[i][1] * x[i + 2][0];\n    addps   m7, m2       ; real_sum0 += x[i][0] * x[i][0],     x[i][1] * x[i][1];\n    add   cntq, 8\n    MOVH    m2, [xq+cntq+16]\n    movlhps m0, m0\n    shufps  m2, m2, q0110\n    mulps   m3, m0, m1\n    mulps   m4, m0, m2\n    mulps   m0, m0\n    addps   m6, m3       ; real_sum1 += x[i][0] * x[i + 1][0], x[i][1] * x[i + 1][1]; imag_sum1 += x[i][0] * x[i + 1][1], x[i][1] * x[i + 1][0];\n    addps   m5, m4       ; real_sum2 += x[i][0] * x[i + 2][0], x[i][1] * x[i + 2][1]; imag_sum2 += x[i][0] * x[i + 2][1], x[i][1] * x[i + 2][0];", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:13", "text": "addps   m7, m1       ; real_sum0 += x[i][0] * x[i][0],     x[i][1] * x[i][1];\n    add   cntq, 8\n    MOVH    m1, [xq+cntq+16]\n    movlhps m2, m2\n    shufps  m1, m1, q0110\n    mulps   m3, m2, m0\n    mulps   m4, m2, m1\n    mulps   m2, m2\n    addps   m6, m3       ; real_sum1 += x[i][0] * x[i + 1][0], x[i][1] * x[i + 1][1]; imag_sum1 += x[i][0] * x[i + 1][1], x[i][1] * x[i + 1][0];\n    addps   m5, m4       ; real_sum2 += x[i][0] * x[i + 2][0], x[i][1] * x[i + 2][1]; imag_sum2 += x[i][0] * x[i + 2][1], x[i][1] * x[i + 2][0];\n    addps   m7, m2       ; real_sum0 += x[i][0] * x[i][0],     x[i][1] * x[i][1];\n    add   cntq, 8\n    MOVH    m2, [xq+cntq+16]\n    movlhps m0, m0\n    shufps  m2, m2, q0110\n    mulps   m3, m0, m1\n    mulps   m4, m0, m2\n    mulps   m0, m0\n    addps   m6, m3       ; real_sum1 += x[i][0] * x[i + 1][0], x[i][1] * x[i + 1][1]; imag_sum1 += x[i][0] * x[i + 1][1], x[i][1] * x[i + 1][0];\n    addps   m5, m4       ; real_sum2 += x[i][0] * x[i + 2][0], x[i][1] * x[i + 2][1]; imag_sum2 += x[i][0] * x[i + 2][1], x[i][1] * x[i + 2][0];\n    addps   m7, m0       ; real_sum0 += x[i][0] * x[i][0],     x[i][1] * x[i][1];\n    jl .loop\n\n    movlhps m1, m1\n    mulps   m2, m1\n    mulps   m1, m1\n    addps   m2, m6       ; real_sum1 + x[38][0] * x[39][0], x[38][1] * x[39][1]; imag_sum1 + x[38][0] * x[39][1], x[38][1] * x[39][0];\n    addps   m1, m7       ; real_sum0 + x[38][0] * x[38][0], x[38][1] * x[38][1];\n    addps   m6, [rsp   ] ; real_sum1 + x[ 0][0] * x[ 1][0], x[ 0][1] * x[ 1][1]; imag_sum1 + x[ 0][0] * x[ 1][1], x[ 0][1] * x[ 1][0];\n    addps   m7, [rsp+16] ; real_sum0 + x[ 0][0] * x[ 0][0], x[ 0][1] * x[ 0][1];\n\n    xorps   m2, [ps_mask3]\n    xorps   m5, [ps_mask3]\n    xorps   m6, [ps_mask3]\n    HADDPS  m2, m5, m3\n    HADDPS  m7, m6, m4\n%if cpuflag(sse3)\n    movshdup m0, m1\n%else\n    movss   m0, m1\n    shufps  m1, m1, q0001\n%endif\n    addss   m1, m0\n    movaps  [phiq     ], m2\n    movhps  [phiq+0x18], m7\n    movss   [phiq+0x28], m7\n    movss   [phiq+0x10], m1\n    RET\n%endmacro\n\nINIT_XMM sse\nSBR_AUTOCORRELATE\nINIT_XMM sse3\nSBR_AUTOCORRELATE", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 481, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:14", "text": "shufps  m1, m1, q0001\n%endif\n    addss   m1, m0\n    movaps  [phiq     ], m2\n    movhps  [phiq+0x18], m7\n    movss   [phiq+0x28], m7\n    movss   [phiq+0x10], m1\n    RET\n%endmacro\n\nINIT_XMM sse\nSBR_AUTOCORRELATE\nINIT_XMM sse3\nSBR_AUTOCORRELATE", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/sbrdsp.asm", "line_start": 521, "line_end": 534}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:8", "text": "INIT_XMM sse2\ncglobal sbr_qmf_pre_shuffle, 1,4,6,z\n%define OFFSET  (32*4-2*mmsize)\n    mov       r3q, OFFSET\n    lea       r1q, [zq + (32+1)*4]\n    lea       r2q, [zq + 64*4]\n    mova       m5, [ps_neg]\n.loop:\n    movu       m0, [r1q]\n    movu       m2, [r1q + mmsize]\n    movu       m1, [zq + r3q + 4 + mmsize]\n    movu       m3, [zq + r3q + 4]\n\n    pxor       m2, m5\n    pxor       m0, m5\n    pshufd     m2, m2, q0123\n    pshufd     m0, m0, q0123\n    SBUTTERFLY dq, 2, 3, 4\n    SBUTTERFLY dq, 0, 1, 4\n    mova  [r2q + 2*r3q + 0*mmsize], m2\n    mova  [r2q + 2*r3q + 1*mmsize], m3\n    mova  [r2q + 2*r3q + 2*mmsize], m0\n    mova  [r2q + 2*r3q + 3*mmsize], m1\n    add       r1q, 2*mmsize\n    sub       r3q, 2*mmsize\n    jge      .loop\n    movq       m2, [zq]\n    movq    [r2q], m2\n    RET\n\n%ifdef PIC\n%define NREGS 1\n%if UNIX64\n%define NOISE_TABLE r6q ; r5q is m_max\n%else\n%define NOISE_TABLE r5q\n%endif\n%else\n%define NREGS 0\n%define NOISE_TABLE sbr_noise_table\n%endif\n\n%macro LOAD_NST  1\n%ifdef PIC\n    lea  NOISE_TABLE, [%1]\n    mova          m0, [kxq + NOISE_TABLE]\n%else\n    mova          m0, [kxq + %1]\n%endif\n%endmacro\n\nINIT_XMM sse2\n; sbr_hf_apply_noise_0(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_0, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    mova       m0, [ps_noise0]\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_1(float (*Y)[2], const float *s_m,", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/sbrdsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:9", "text": "%endif\n\n%macro LOAD_NST  1\n%ifdef PIC\n    lea  NOISE_TABLE, [%1]\n    mova          m0, [kxq + NOISE_TABLE]\n%else\n    mova          m0, [kxq + %1]\n%endif\n%endmacro\n\nINIT_XMM sse2\n; sbr_hf_apply_noise_0(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_0, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    mova       m0, [ps_noise0]\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_1(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_1, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    and       kxq, 1\n    shl       kxq, 4\n    LOAD_NST  ps_noise13\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_2(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_2, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    mova       m0, [ps_noise2]\n    jmp apply_noise_main\n\n; sbr_hf_apply_noise_3(float (*Y)[2], const float *s_m,\n;                      const float *q_filt, int noise,\n;                      int kx, int m_max)\ncglobal sbr_hf_apply_noise_3, 5,5+NREGS+UNIX64,8, Y,s_m,q_filt,noise,kx,m_max\n    and       kxq, 1\n    shl       kxq, 4\n    LOAD_NST  ps_noise13+16\n\napply_noise_main:\n%if ARCH_X86_64 == 0 || WIN64\n    mov       kxd, m_maxm\n    DEFINE_ARGS Y, s_m, q_filt, noise, count\n%else\n    DEFINE_ARGS Y, s_m, q_filt, noise, kx, count\n%endif\n    movsxdifnidn    noiseq, noised\n    dec    noiseq\n    shl    countd, 2\n%ifdef PIC\n    lea NOISE_TABLE, [sbr_noise_table]\n%endif\n    lea        Yq, [Yq + 2*countq]\n    add      s_mq, countq\n    add   q_filtq, countq\n    shl    noiseq, 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/sbrdsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/sbrdsp.asm:10", "text": "shl       kxq, 4\n    LOAD_NST  ps_noise13+16\n\napply_noise_main:\n%if ARCH_X86_64 == 0 || WIN64\n    mov       kxd, m_maxm\n    DEFINE_ARGS Y, s_m, q_filt, noise, count\n%else\n    DEFINE_ARGS Y, s_m, q_filt, noise, kx, count\n%endif\n    movsxdifnidn    noiseq, noised\n    dec    noiseq\n    shl    countd, 2\n%ifdef PIC\n    lea NOISE_TABLE, [sbr_noise_table]\n%endif\n    lea        Yq, [Yq + 2*countq]\n    add      s_mq, countq\n    add   q_filtq, countq\n    shl    noiseq, 3\n    pxor       m5, m5\n    neg    countq\n.loop:\n    mova       m1, [q_filtq + countq]\n    movu       m3, [noiseq + NOISE_TABLE + 1*mmsize]\n    movu       m4, [noiseq + NOISE_TABLE + 2*mmsize]\n    add    noiseq, 2*mmsize\n    and    noiseq, 0x1ff<<3\n    punpckhdq  m2, m1, m1\n    punpckldq  m1, m1\n    mulps      m1, m3 ; m2 = q_filt[m] * ff_sbr_noise_table[noise]\n    mulps      m2, m4 ; m2 = q_filt[m] * ff_sbr_noise_table[noise]\n    mova       m3, [s_mq + countq]\n    ; TODO: replace by a vpermd in AVX2\n    punpckhdq  m4, m3, m3\n    punpckldq  m3, m3\n    pcmpeqd    m6, m3, m5 ; m6 == 0\n    pcmpeqd    m7, m4, m5 ; m7 == 0\n    mulps      m3, m0 ; s_m[m] * phi_sign\n    mulps      m4, m0 ; s_m[m] * phi_sign\n    pand       m1, m6\n    pand       m2, m7\n    movu       m6, [Yq + 2*countq]\n    movu       m7, [Yq + 2*countq + mmsize]\n    addps      m3, m1\n    addps      m4, m2\n    addps      m6, m3\n    addps      m7, m4\n    movu    [Yq + 2*countq], m6\n    movu    [Yq + 2*countq + mmsize], m7\n    add    countq, mmsize\n    jl      .loop\n    RET\n\nINIT_XMM sse\ncglobal sbr_qmf_deint_neg, 2,4,4,v,src,vrev,c\n%define COUNT  32*4\n%define OFFSET 32*4\n    mov        cq, -COUNT\n    lea     vrevq, [vq + OFFSET + COUNT]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/sbrdsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/sbrdsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:1", "text": ";\n; Simple IDCT SSE2\n;\n; Copyright (c) 2001, 2002 Michael Niedermayer <michaelni@gmx.at>\n;\n; Conversion from gcc syntax to x264asm syntax with minimal modifications\n; by James Darnley <jdarnley@obe.tv>.\n;\n; This file is part of FFmpeg.\n;\n; FFmpeg is free software; you can redistribute it and/or\n; modify it under the terms of the GNU Lesser General Public\n; License as published by the Free Software Foundation; either\n; version 2.1 of the License, or (at your option) any later version.\n;\n; FFmpeg is distributed in the hope that it will be useful,\n; but WITHOUT ANY WARRANTY; without even the implied warranty of\n; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; Lesser General Public License for more details.\n;\n; You should have received a copy of the GNU Lesser General Public\n; License along with FFmpeg; if not, write to the Free Software\n; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;/\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%if ARCH_X86_32\ncextern pb_80\n\nd40000: dd 4 << 16, 0 ; must be 16-byte aligned\nwm1010: dw 0, 0xffff, 0, 0xffff\n\n; 23170.475006\n; 22725.260826\n; 21406.727617\n; 19265.545870\n; 16384.000000\n; 12872.826198\n; 8866.956905\n; 4520.335430\n\n%define C0 23170 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C1 22725 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C2 21407 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C3 19266 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C4 16383 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) - 0.5\n%define C5 12873 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C6 8867  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C7 4520  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n\n%define ROW_SHIFT 11\n%define COL_SHIFT 20 ; 6\n\ncoeffs:\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:2", "text": "; 12872.826198\n; 8866.956905\n; 4520.335430\n\n%define C0 23170 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C1 22725 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C2 21407 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C3 19266 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C4 16383 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) - 0.5\n%define C5 12873 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C6 8867  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C7 4520  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n\n%define ROW_SHIFT 11\n%define COL_SHIFT 20 ; 6\n\ncoeffs:\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 1\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 1\n    dw 1 << (ROW_SHIFT - 1), 0\n\n    dw C4,  C4,  C4,  C4, C4,  C4,  C4,  C4\n    dw C4, -C4,  C4, -C4, C4, -C4,  C4, -C4\n\n    dw C2,  C6,  C2,  C6, C2,  C6,  C2,  C6\n    dw C6, -C2,  C6, -C2, C6, -C2,  C6, -C2\n\n    dw C1,  C3,  C1,  C3, C1,  C3,  C1,  C3\n    dw C5,  C7,  C5,  C7, C5,  C7,  C5,  C7\n\n    dw  C3, -C7,  C3, -C7,  C3, -C7,  C3, -C7\n    dw -C1, -C5, -C1, -C5, -C1, -C5, -C1, -C5\n\n    dw C5, -C1,  C5, -C1, C5, -C1,  C5, -C1\n    dw C7,  C3,  C7,  C3, C7,  C3,  C7,  C3\n\n    dw C7, -C5,  C7, -C5, C7, -C5,  C7, -C5\n    dw C3, -C1,  C3, -C1, C3, -C1,  C3, -C1\n\nSECTION .text\n\n%macro DC_COND_IDCT 7\n    movq             m0, [blockq + %1]  ; R4     R0      r4      r0\n    movq             m1, [blockq + %2]  ; R6     R2      r6      r2\n    movq             m2, [blockq + %3]  ; R3     R1      r3      r1\n    movq             m3, [blockq + %4]  ; R7     R5      r7      r5\n    movq             m4, [wm1010]\n    pand             m4, m0\n    por              m4, m1\n    por              m4, m2\n    por              m4, m3\n    packssdw         m4, m4\n    movd            t0d, m4\n    or              t0d, t0d\n    jz              %%1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:3", "text": "dw C7, -C5,  C7, -C5, C7, -C5,  C7, -C5\n    dw C3, -C1,  C3, -C1, C3, -C1,  C3, -C1\n\nSECTION .text\n\n%macro DC_COND_IDCT 7\n    movq             m0, [blockq + %1]  ; R4     R0      r4      r0\n    movq             m1, [blockq + %2]  ; R6     R2      r6      r2\n    movq             m2, [blockq + %3]  ; R3     R1      r3      r1\n    movq             m3, [blockq + %4]  ; R7     R5      r7      r5\n    movq             m4, [wm1010]\n    pand             m4, m0\n    por              m4, m1\n    por              m4, m2\n    por              m4, m3\n    packssdw         m4, m4\n    movd            t0d, m4\n    or              t0d, t0d\n    jz              %%1\n    movq             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    movq             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    movq             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    movq             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    movq             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    paddd            m4, [coeffs + 16]\n    movq             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    movq             m5, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m5, m3             ; C7R7+C5R5      C7r7+C5r5\n    paddd            m0, [coeffs + 16]\n    paddd            m1, m0             ; A1             a1\n    paddd            m0, m0\n    psubd            m0, m1             ; A2             a2\n    pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m5             ; B0             b0\n    movq             m5, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m5, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    paddd            m5, m2             ; B1             b1\n    psrad            m7, %7\n    psrad            m4, %7\n    movq             m2, m1             ; A1             a1\n    paddd            m1, m5             ; A1+B1          a1+b1\n    psubd            m2, m5             ; A1-B1          a1-b1\n    psrad            m1, %7\n    psrad            m2, %7\n    packssdw         m7, m1             ; A1+B1  a1+b1   A0+B0   a0+b0\n    pshufd           m7, m7, 0xD8\n    packssdw         m2, m4             ; A0-B0  a0-b0   A1-B1   a1-b1\n    pshufd           m2, m2, 0xD8\n    movq           [%5], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:4", "text": "pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m5             ; B0             b0\n    movq             m5, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m5, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    paddd            m5, m2             ; B1             b1\n    psrad            m7, %7\n    psrad            m4, %7\n    movq             m2, m1             ; A1             a1\n    paddd            m1, m5             ; A1+B1          a1+b1\n    psubd            m2, m5             ; A1-B1          a1-b1\n    psrad            m1, %7\n    psrad            m2, %7\n    packssdw         m7, m1             ; A1+B1  a1+b1   A0+B0   a0+b0\n    pshufd           m7, m7, 0xD8\n    packssdw         m2, m4             ; A0-B0  a0-b0   A1-B1   a1-b1\n    pshufd           m2, m2, 0xD8\n    movq           [%5], m7\n    movq             m1, [blockq + %3]  ; R3     R1      r3      r1\n    movq             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    movq      [24 + %5], m2\n    pmaddwd          m4, m1             ; -C1R3+C5R1     -C1r3+C5r1\n    movq             m7, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m1, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd          m7, m3             ; C3R7+C7R5      C3r7+C7r5\n    movq             m2, m0             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m4, m7             ; B2             b2\n    paddd            m2, m4             ; A2+B2          a2+b2\n    psubd            m0, m4             ; a2-B2          a2-b2\n    psrad            m2, %7\n    psrad            m0, %7\n    movq             m4, m6             ; A3             a3\n    paddd            m3, m1             ; B3             b3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m4, m3             ; a3-B3          a3-b3\n    psrad            m6, %7\n    packssdw         m2, m6             ; A3+B3  a3+b3   A2+B2   a2+b2\n    pshufd           m2, m2, 0xD8\n    movq       [8 + %5], m2\n    psrad            m4, %7\n    packssdw         m4, m0             ; A2-B2  a2-b2   A3-B3   a3-b3\n    pshufd           m4, m4, 0xD8\n    movq      [16 + %5], m4\n    jmp             %%2\n%%1:\n    pslld            m0, 16\n    ; d40000 is only eight bytes long, so this will clobber\n    ; the upper half of m0 with wm1010. It doesn't matter due to pshufd below.\n    paddd            m0, [d40000]\n    psrad            m0, 13\n    packssdw         m0, m0\n    pshufd           m0, m0, 0x0\n    mova           [%5], m0\n    mova      [16 + %5], m0\n%%2:\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:5", "text": "pshufd           m2, m2, 0xD8\n    movq       [8 + %5], m2\n    psrad            m4, %7\n    packssdw         m4, m0             ; A2-B2  a2-b2   A3-B3   a3-b3\n    pshufd           m4, m4, 0xD8\n    movq      [16 + %5], m4\n    jmp             %%2\n%%1:\n    pslld            m0, 16\n    ; d40000 is only eight bytes long, so this will clobber\n    ; the upper half of m0 with wm1010. It doesn't matter due to pshufd below.\n    paddd            m0, [d40000]\n    psrad            m0, 13\n    packssdw         m0, m0\n    pshufd           m0, m0, 0x0\n    mova           [%5], m0\n    mova      [16 + %5], m0\n%%2:\n%endmacro\n\n%macro Z_COND_IDCT 8\n    movq             m0, [blockq + %1]  ; R4     R0      r4      r0\n    movq             m1, [blockq + %2]  ; R6     R2      r6      r2\n    movq             m2, [blockq + %3]  ; R3     R1      r3      r1\n    movq             m3, [blockq + %4]  ; R7     R5      r7      r5\n    movq             m4, m0\n    por              m4, m1\n    por              m4, m2\n    por              m4, m3\n    packssdw         m4, m4\n    movd            t0d, m4\n    or              t0d, t0d\n    jz               %8\n    movq             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    movq             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    movq             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    movq             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    movq             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    paddd            m4, [coeffs]\n    movq             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    movq             m5, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m5, m3             ; C7R7+C5R5      C7r7+C5r5\n    paddd            m0, [coeffs]\n    paddd            m1, m0             ; A1             a1\n    paddd            m0, m0\n    psubd            m0, m1             ; A2             a2\n    pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m5             ; B0             b0\n    movq             m5, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m5, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:6", "text": "pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    movq             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    paddd            m4, [coeffs]\n    movq             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    movq             m5, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m5, m3             ; C7R7+C5R5      C7r7+C5r5\n    paddd            m0, [coeffs]\n    paddd            m1, m0             ; A1             a1\n    paddd            m0, m0\n    psubd            m0, m1             ; A2             a2\n    pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m5             ; B0             b0\n    movq             m5, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m5, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    paddd            m5, m2             ; B1             b1\n    psrad            m7, %7\n    psrad            m4, %7\n    movq             m2, m1             ; A1             a1\n    paddd            m1, m5             ; A1+B1          a1+b1\n    psubd            m2, m5             ; A1-B1          a1-b1\n    psrad            m1, %7\n    psrad            m2, %7\n    packssdw         m7, m1             ; A1+B1  a1+b1   A0+B0   a0+b0\n    pshufd           m7, m7, 0xD8\n    packssdw         m2, m4             ; A0-B0  a0-b0   A1-B1   a1-b1\n    pshufd           m2, m2, 0xD8\n    movq           [%5], m7\n    movq             m1, [blockq + %3]  ; R3     R1      r3      r1\n    movq             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    movq      [24 + %5], m2\n    pmaddwd          m4, m1             ; -C1R3+C5R1     -C1r3+C5r1\n    movq             m7, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m1, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd          m7, m3             ; C3R7+C7R5      C3r7+C7r5\n    movq             m2, m0             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m4, m7             ; B2             b2\n    paddd            m2, m4             ; A2+B2          a2+b2\n    psubd            m0, m4             ; a2-B2          a2-b2\n    psrad            m2, %7\n    psrad            m0, %7\n    movq             m4, m6             ; A3             a3\n    paddd            m3, m1             ; B3             b3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m4, m3             ; a3-B3          a3-b3\n    psrad            m6, %7\n    packssdw         m2, m6             ; A3+B3  a3+b3   A2+B2   a2+b2\n    pshufd           m2, m2, 0xD8\n    movq       [8 + %5], m2\n    psrad            m4, %7\n    packssdw         m4, m0             ; A2-B2  a2-b2   A3-B3   a3-b3\n    pshufd           m4, m4, 0xD8\n    movq      [16 + %5], m4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:7", "text": "movq             m2, m0             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m4, m7             ; B2             b2\n    paddd            m2, m4             ; A2+B2          a2+b2\n    psubd            m0, m4             ; a2-B2          a2-b2\n    psrad            m2, %7\n    psrad            m0, %7\n    movq             m4, m6             ; A3             a3\n    paddd            m3, m1             ; B3             b3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m4, m3             ; a3-B3          a3-b3\n    psrad            m6, %7\n    packssdw         m2, m6             ; A3+B3  a3+b3   A2+B2   a2+b2\n    pshufd           m2, m2, 0xD8\n    movq       [8 + %5], m2\n    psrad            m4, %7\n    packssdw         m4, m0             ; A2-B2  a2-b2   A3-B3   a3-b3\n    pshufd           m4, m4, 0xD8\n    movq      [16 + %5], m4\n%endmacro\n\n%macro IDCT1 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m1, %2             ; R6     R2      r6      r2\n    mova             m2, %3             ; R3     R1      r3      r1\n    mova             m3, %4             ; R7     R5      r7      r5\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    mova             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    paddd            m0, m1             ; A1             a1\n    psubd            m5, m1             ; A2             a2\n    mova             m1, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m1, m3             ; C7R7+C5R5      C7r7+C5r5\n    pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m1             ; B0             b0\n    mova             m1, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m1, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    paddd            m1, m2             ; B1             b1\n    psrad            m7, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m1             ; A1+B1          a1+b1\n    psubd            m2, m1             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m7, m7             ; A0+B0  a0+b0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:8", "text": "paddd            m0, m1             ; A1             a1\n    psubd            m5, m1             ; A2             a2\n    mova             m1, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m1, m3             ; C7R7+C5R5      C7r7+C5r5\n    pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m1             ; B0             b0\n    mova             m1, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m1, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    paddd            m1, m2             ; B1             b1\n    psrad            m7, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m1             ; A1+B1          a1+b1\n    psubd            m2, m1             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m7, m7             ; A0+B0  a0+b0\n    movq           [%5], m7\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m2, m2             ; A1-B1  a1-b1\n    movq      [96 + %5], m2\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m0, %3             ; R3     R1      r3      r1\n    mova             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    pmaddwd          m4, m0             ; -C1R3+C5R1     -C1r3+C5r1\n    mova             m7, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m0, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd          m7, m3             ; C3R7+C7R5      C3r7+C7r5\n    mova             m2, m5             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m4, m7             ; B2             b2\n    paddd            m2, m4             ; A2+B2          a2+b2\n    psubd            m5, m4             ; a2-B2          a2-b2\n    psrad            m2, %6\n    psrad            m5, %6\n    mova             m4, m6             ; A3             a3\n    paddd            m3, m0             ; B3             b3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m4, m3             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m4, %6\n    packssdw         m2, m2             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m2\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT2 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m1, %2             ; R6     R2      r6      r2\n    mova             m3, %4             ; R7     R5      r7      r5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:9", "text": "mova             m4, m6             ; A3             a3\n    paddd            m3, m0             ; B3             b3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m4, m3             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m4, %6\n    packssdw         m2, m2             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m2\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT2 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m1, %2             ; R6     R2      r6      r2\n    mova             m3, %4             ; R7     R5      r7      r5\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    mova             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    paddd            m0, m1             ; A1             a1\n    psubd            m5, m1             ; A2             a2\n    mova             m1, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m1, m3             ; C7R7+C5R5      C7r7+C5r5\n    mova             m7, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m7, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m1, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m1             ; A0-B0          a0-b0\n    psrad            m1, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m7             ; A1+B1          a1+b1\n    psubd            m2, m7             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m1, m1             ; A0+B0  a0+b0\n    movq           [%5], m1\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m2, m2             ; A1-B1  a1-b1\n    movq      [96 + %5], m2\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m1, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m1, m3             ; C3R7+C7R5      C3r7+C7r5\n    mova             m2, m5             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:10", "text": "psubd            m4, m1             ; A0-B0          a0-b0\n    psrad            m1, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m7             ; A1+B1          a1+b1\n    psubd            m2, m7             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m1, m1             ; A0+B0  a0+b0\n    movq           [%5], m1\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m2, m2             ; A1-B1  a1-b1\n    movq      [96 + %5], m2\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m1, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m1, m3             ; C3R7+C7R5      C3r7+C7r5\n    mova             m2, m5             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m2, m1             ; A2+B2          a2+b2\n    psubd            m5, m1             ; a2-B2          a2-b2\n    psrad            m2, %6\n    psrad            m5, %6\n    mova             m1, m6             ; A3             a3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m1, m3             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m1, %6\n    packssdw         m2, m2             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m2\n    packssdw         m1, m1             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m1\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT3 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m3, %4             ; R7     R5      r7      r5\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m1, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m1, m3             ; C7R7+C5R5      C7r7+C5r5\n    mova             m7, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m7, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m1, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m1             ; A0-B0          a0-b0\n    psrad            m1, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m7             ; A1+B1          a1+b1\n    psubd            m2, m7             ; A1-B1          a1-b1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:11", "text": "mova             m0, %1             ; R4     R0      r4      r0\n    mova             m3, %4             ; R7     R5      r7      r5\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m1, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m1, m3             ; C7R7+C5R5      C7r7+C5r5\n    mova             m7, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m7, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m1, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m1             ; A0-B0          a0-b0\n    psrad            m1, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m7             ; A1+B1          a1+b1\n    psubd            m2, m7             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m1, m1             ; A0+B0  a0+b0\n    movq           [%5], m1\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m2, m2             ; A1-B1  a1-b1\n    movq      [96 + %5], m2\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m1, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m1, m3             ; C3R7+C7R5      C3r7+C7r5\n    mova             m2, m5             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m2, m1             ; A2+B2          a2+b2\n    psubd            m5, m1             ; a2-B2          a2-b2\n    psrad            m2, %6\n    psrad            m5, %6\n    mova             m1, m6             ; A3             a3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m1, m3             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m1, %6\n    packssdw         m2, m2             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m2\n    packssdw         m1, m1             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m1\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT4 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m2, %3             ; R3     R1      r3      r1\n    mova             m3, %4             ; R7     R5      r7      r5\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:12", "text": "psubd            m1, m3             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m1, %6\n    packssdw         m2, m2             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m2\n    packssdw         m1, m1             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m1\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT4 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m2, %3             ; R3     R1      r3      r1\n    mova             m3, %4             ; R7     R5      r7      r5\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m1, [coeffs + 112] ; C7     C5      C7      C5\n    pmaddwd          m1, m3             ; C7R7+C5R5      C7r7+C5r5\n    pmaddwd          m2, [coeffs + 128] ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m1             ; B0             b0\n    mova             m1, [coeffs + 144] ; -C5    -C1     -C5     -C1\n    pmaddwd          m1, m3             ; -C5R7-C1R5     -C5r7-C1r5\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    paddd            m1, m2             ; B1             b1\n    psrad            m7, %6\n    psrad            m4, %6\n    mova             m2, m0             ; A1             a1\n    paddd            m0, m1             ; A1+B1          a1+b1\n    psubd            m2, m1             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m7, m7             ; A0+B0  a0+b0\n    movq           [%5], m7\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m2, m2             ; A1-B1  a1-b1\n    movq      [96 + %5], m2\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m0, %3             ; R3     R1      r3      r1\n    mova             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    pmaddwd          m4, m0             ; -C1R3+C5R1     -C1r3+C5r1\n    mova             m7, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m0, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd          m7, m3             ; C3R7+C7R5      C3r7+C7r5\n    mova             m2, m5             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m4, m7             ; B2             b2\n    paddd            m2, m4             ; A2+B2          a2+b2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:13", "text": "psrad            m0, %6\n    psrad            m2, %6\n    packssdw         m7, m7             ; A0+B0  a0+b0\n    movq           [%5], m7\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m2, m2             ; A1-B1  a1-b1\n    movq      [96 + %5], m2\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m0, %3             ; R3     R1      r3      r1\n    mova             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    pmaddwd          m4, m0             ; -C1R3+C5R1     -C1r3+C5r1\n    mova             m7, [coeffs + 176] ; C3     C7      C3      C7\n    pmaddwd          m0, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd          m7, m3             ; C3R7+C7R5      C3r7+C7r5\n    mova             m2, m5             ; A2             a2\n    pmaddwd          m3, [coeffs + 208] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd            m4, m7             ; B2             b2\n    paddd            m2, m4             ; A2+B2          a2+b2\n    psubd            m5, m4             ; a2-B2          a2-b2\n    psrad            m2, %6\n    psrad            m5, %6\n    mova             m4, m6             ; A3             a3\n    paddd            m3, m0             ; B3             b3\n    paddd            m6, m3             ; A3+B3          a3+b3\n    psubd            m4, m3             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m4, %6\n    packssdw         m2, m2             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m2\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT5 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m2, %3             ; R3     R1      r3      r1\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m3, [coeffs + 128]\n    pmaddwd          m3, m2             ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    psrad            m7, %6\n    psrad            m4, %6\n    mova             m1, m0             ; A1             a1\n    paddd            m0, m3             ; A1+B1          a1+b1\n    psubd            m1, m3             ; A1-B1          a1-b1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:14", "text": "mova             m0, %1             ; R4     R0      r4      r0\n    mova             m2, %3             ; R3     R1      r3      r1\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m3, [coeffs + 128]\n    pmaddwd          m3, m2             ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    psrad            m7, %6\n    psrad            m4, %6\n    mova             m1, m0             ; A1             a1\n    paddd            m0, m3             ; A1+B1          a1+b1\n    psubd            m1, m3             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m1, %6\n    packssdw         m7, m7             ; A0+B0  a0+b0\n    movq           [%5], m7\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m1, m1             ; A1-B1  a1-b1\n    movq      [96 + %5], m1\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    pmaddwd          m4, m2             ; -C1R3+C5R1     -C1r3+C5r1\n    pmaddwd          m2, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    mova             m1, m5             ; A2             a2\n    paddd            m1, m4             ; A2+B2          a2+b2\n    psubd            m5, m4             ; a2-B2          a2-b2\n    psrad            m1, %6\n    psrad            m5, %6\n    mova             m4, m6             ; A3             a3\n    paddd            m6, m2             ; A3+B3          a3+b3\n    psubd            m4, m2             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m4, %6\n    packssdw         m1, m1             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m1\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT6 6\n    movq             m0, [%1]           ; R4     R0      r4      r0\n    movhps           m0, [%1 + 16]\n    movq             m1, [%2]           ; R6     R2      r6      r2\n    movhps           m1, [%2 + 16]\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:15", "text": "psubd            m4, m2             ; a3-B3          a3-b3\n    psrad            m6, %6\n    psrad            m4, %6\n    packssdw         m1, m1             ; A2+B2  a2+b2\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [32 + %5], m1\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [48 + %5], m6\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT6 6\n    movq             m0, [%1]           ; R4     R0      r4      r0\n    movhps           m0, [%1 + 16]\n    movq             m1, [%2]           ; R6     R2      r6      r2\n    movhps           m1, [%2 + 16]\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    mova             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    paddd            m0, m1             ; A1             a1\n    psubd            m5, m1             ; A2             a2\n    movq             m2, [%1 + 8]       ; R4     R0      r4      r0\n    movhps           m2, [%1 + 24]\n    movq             m3, [%2 + 8]       ; R6     R2      r6      r2\n    movhps           m3, [%2 + 24]\n    mova             m1, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m1, m2             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m2, m7             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m7, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m7, m3             ; C6R6+C2R2      C6r6+C2r2\n    pmaddwd          m3, [coeffs + 80]  ; -C2R6+C6R2     -C2r6+C6r2\n    paddd            m7, m1             ; A0             a0\n    paddd            m1, m1             ; 2C0            2c0\n    psubd            m1, m7             ; A3             a3\n    paddd            m3, m2             ; A1             a1\n    paddd            m2, m2             ; 2C1            2c1\n    psubd            m2, m3             ; A2             a2\n    psrad            m4, %6\n    psrad            m7, %6\n    psrad            m3, %6\n    packssdw         m4, m7             ; A0     a0\n    pshufd           m4, m4, 0xD8\n    mova           [%5], m4\n    psrad            m0, %6\n    packssdw         m0, m3             ; A1     a1\n    pshufd           m0, m0, 0xD8\n    mova      [16 + %5], m0\n    mova      [96 + %5], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:16", "text": "mova             m7, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m7, m3             ; C6R6+C2R2      C6r6+C2r2\n    pmaddwd          m3, [coeffs + 80]  ; -C2R6+C6R2     -C2r6+C6r2\n    paddd            m7, m1             ; A0             a0\n    paddd            m1, m1             ; 2C0            2c0\n    psubd            m1, m7             ; A3             a3\n    paddd            m3, m2             ; A1             a1\n    paddd            m2, m2             ; 2C1            2c1\n    psubd            m2, m3             ; A2             a2\n    psrad            m4, %6\n    psrad            m7, %6\n    psrad            m3, %6\n    packssdw         m4, m7             ; A0     a0\n    pshufd           m4, m4, 0xD8\n    mova           [%5], m4\n    psrad            m0, %6\n    packssdw         m0, m3             ; A1     a1\n    pshufd           m0, m0, 0xD8\n    mova      [16 + %5], m0\n    mova      [96 + %5], m0\n    mova     [112 + %5], m4\n    psrad            m5, %6\n    psrad            m6, %6\n    psrad            m2, %6\n    packssdw         m5, m2             ; A2-B2  a2-b2\n    pshufd           m5, m5, 0xD8\n    mova      [32 + %5], m5\n    psrad            m1, %6\n    packssdw         m6, m1             ; A3+B3  a3+b3\n    pshufd           m6, m6, 0xD8\n    mova      [48 + %5], m6\n    mova      [64 + %5], m6\n    mova      [80 + %5], m5\n%endmacro\n\n%macro IDCT7 6\n    mova             m0, %1             ; R4     R0      r4      r0\n    mova             m1, %2             ; R6     R2      r6      r2\n    mova             m2, %3             ; R3     R1      r3      r1\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    mova             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    paddd            m0, m1             ; A1             a1\n    psubd            m5, m1             ; A2             a2\n    mova             m1, [coeffs + 128]\n    pmaddwd          m1, m2             ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:17", "text": "pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m5, [coeffs + 64]  ; C6     C2      C6      C2\n    pmaddwd          m5, m1             ; C6R6+C2R2      C6r6+C2r2\n    mova             m6, [coeffs + 80]  ; -C2    C6      -C2     C6\n    pmaddwd          m1, m6             ; -C2R6+C6R2     -C2r6+C6r2\n    mova             m6, m4             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 96]  ; C3     C1      C3      C1\n    pmaddwd          m7, m2             ; C3R3+C1R1      C3r3+C1r1\n    paddd            m4, m5             ; A0             a0\n    psubd            m6, m5             ; A3             a3\n    mova             m5, m0             ; -C4R4+C4R0     -C4r4+C4r0\n    paddd            m0, m1             ; A1             a1\n    psubd            m5, m1             ; A2             a2\n    mova             m1, [coeffs + 128]\n    pmaddwd          m1, m2             ; -C7R3+C3R1     -C7r3+C3r1\n    paddd            m7, m4             ; A0+B0          a0+b0\n    paddd            m4, m4             ; 2A0            2a0\n    psubd            m4, m7             ; A0-B0          a0-b0\n    psrad            m7, %6\n    psrad            m4, %6\n    mova             m3, m0             ; A1             a1\n    paddd            m0, m1             ; A1+B1          a1+b1\n    psubd            m3, m1             ; A1-B1          a1-b1\n    psrad            m0, %6\n    psrad            m3, %6\n    packssdw         m7, m7             ; A0+B0  a0+b0\n    movq           [%5], m7\n    packssdw         m0, m0             ; A1+B1  a1+b1\n    movq      [16 + %5], m0\n    packssdw         m3, m3             ; A1-B1  a1-b1\n    movq      [96 + %5], m3\n    packssdw         m4, m4             ; A0-B0  a0-b0\n    movq     [112 + %5], m4\n    mova             m4, [coeffs + 160] ; -C1    C5      -C1     C5\n    pmaddwd          m4, m2             ; -C1R3+C5R1     -C1r3+C5r1\n    pmaddwd          m2, [coeffs + 192] ; -C5R3+C7R1     -C5r3+C7r1\n    mova             m3, m5             ; A2             a2\n    paddd            m3, m4             ; A2+B2          a2+b2\n    psubd            m5, m4             ; a2-B2          a2-b2\n    psrad            m3, %6\n    psrad            m5, %6\n    mova             m4, m6             ; A3             a3\n    paddd            m6, m2             ; A3+B3          a3+b3\n    psubd            m4, m2             ; a3-B3          a3-b3\n    psrad            m6, %6\n    packssdw         m3, m3             ; A2+B2  a2+b2\n    movq      [32 + %5], m3\n    psrad            m4, %6\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [48 + %5], m6\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT8 6\n    movq             m0, [%1]           ; R4     R0      r4      r0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:18", "text": "psubd            m5, m4             ; a2-B2          a2-b2\n    psrad            m3, %6\n    psrad            m5, %6\n    mova             m4, m6             ; A3             a3\n    paddd            m6, m2             ; A3+B3          a3+b3\n    psubd            m4, m2             ; a3-B3          a3-b3\n    psrad            m6, %6\n    packssdw         m3, m3             ; A2+B2  a2+b2\n    movq      [32 + %5], m3\n    psrad            m4, %6\n    packssdw         m6, m6             ; A3+B3  a3+b3\n    movq      [48 + %5], m6\n    packssdw         m4, m4             ; A3-B3  a3-b3\n    packssdw         m5, m5             ; A2-B2  a2-b2\n    movq      [64 + %5], m4\n    movq      [80 + %5], m5\n%endmacro\n\n%macro IDCT8 6\n    movq             m0, [%1]           ; R4     R0      r4      r0\n    movhps           m0, [%1 + 16]\n    mova             m4, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m4, m0             ; C4R4+C4R0      C4r4+C4r0\n    mova             m5, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m0, m5             ; -C4R4+C4R0     -C4r4+C4r0\n    psrad            m4, %6\n    psrad            m0, %6\n    movq             m2, [%1 + 8]       ; R4     R0      r4      r0\n    movhps           m2, [%1 + 24]\n    mova             m1, [coeffs + 32]  ; C4     C4      C4      C4\n    pmaddwd          m1, m2             ; C4R4+C4R0      C4r4+C4r0\n    mova             m7, [coeffs + 48]  ; -C4    C4      -C4     C4\n    pmaddwd          m2, m7             ; -C4R4+C4R0     -C4r4+C4r0\n    mova             m7, [coeffs + 64]  ; C6     C2      C6      C2\n    psrad            m1, %6\n    packssdw         m4, m1             ; A0     a0\n    pshufd           m4, m4, 0xD8\n    mova           [%5], m4\n    psrad            m2, %6\n    packssdw         m0, m2             ; A1     a1\n    pshufd           m0, m0, 0xD8\n    mova      [16 + %5], m0\n    mova      [96 + %5], m0\n    mova     [112 + %5], m4\n    mova      [32 + %5], m0\n    mova      [48 + %5], m4\n    mova      [64 + %5], m4\n    mova      [80 + %5], m0\n%endmacro\n\n%macro IDCT 0\n    DC_COND_IDCT  0,   8,  16,  24, rsp +  0, null, 11\n    Z_COND_IDCT  32,  40,  48,  56, rsp + 32, null, 11, %%4\n    Z_COND_IDCT  64,  72,  80,  88, rsp + 64, null, 11, %%2\n    Z_COND_IDCT  96, 104, 112, 120, rsp + 96, null, 11, %%1\n\n    IDCT1 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT1 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:19", "text": "pshufd           m0, m0, 0xD8\n    mova      [16 + %5], m0\n    mova      [96 + %5], m0\n    mova     [112 + %5], m4\n    mova      [32 + %5], m0\n    mova      [48 + %5], m4\n    mova      [64 + %5], m4\n    mova      [80 + %5], m0\n%endmacro\n\n%macro IDCT 0\n    DC_COND_IDCT  0,   8,  16,  24, rsp +  0, null, 11\n    Z_COND_IDCT  32,  40,  48,  56, rsp + 32, null, 11, %%4\n    Z_COND_IDCT  64,  72,  80,  88, rsp + 64, null, 11, %%2\n    Z_COND_IDCT  96, 104, 112, 120, rsp + 96, null, 11, %%1\n\n    IDCT1 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT1 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%4:\n    Z_COND_IDCT 64,  72,  80,  88, rsp + 64, null, 11, %%6\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%5\n\n    IDCT2 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT2 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%6:\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%7\n\n    IDCT3 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT3 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%2:\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%3\n\n    IDCT4 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT4 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%3:\n\n    IDCT5 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT5 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%5:\n\n    IDCT6 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    jmp %%9\n\n    ALIGN 16\n    %%1:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:20", "text": "IDCT4 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT4 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%3:\n\n    IDCT5 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT5 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%5:\n\n    IDCT6 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    jmp %%9\n\n    ALIGN 16\n    %%1:\n\n    IDCT7 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT7 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%7:\n\n    IDCT8 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n\n    %%9:\n%endmacro\n\n%macro PUT_PIXELS_CLAMPED_HALF 1\n    mova     m0, [blockq+mmsize*0+%1]\n    mova     m1, [blockq+mmsize*2+%1]\n    packuswb m0, [blockq+mmsize*1+%1]\n    packuswb m1, [blockq+mmsize*3+%1]\n    movq           [pixelsq], m0\n    movhps  [lsizeq+pixelsq], m0\n    movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endmacro\n\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n    packuswb   m0, m1\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:21", "text": "movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endmacro\n\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n    packuswb   m0, m1\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endmacro\n\nINIT_XMM sse2\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\nRET\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\nRET\n\ncglobal simple_idct_add, 3, 4, 8, 128, pixels, lsize, block, t0\n    IDCT\n    pxor       m4, m4\n    ADD_PIXELS_CLAMPED 0\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 32\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 64\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 96\nRET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct.asm", "line_start": 801, "line_end": 844}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:1", "text": ";\n; Simple IDCT MMX\n;\n; Copyright (c) 2001, 2002 Michael Niedermayer <michaelni@gmx.at>\n;\n; Conversion from gcc syntax to x264asm syntax with minimal modifications\n; by James Darnley <jdarnley@obe.tv>.\n;\n; This file is part of FFmpeg.\n;\n; FFmpeg is free software; you can redistribute it and/or\n; modify it under the terms of the GNU Lesser General Public\n; License as published by the Free Software Foundation; either\n; version 2.1 of the License, or (at your option) any later version.\n;\n; FFmpeg is distributed in the hope that it will be useful,\n; but WITHOUT ANY WARRANTY; without even the implied warranty of\n; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; Lesser General Public License for more details.\n;\n; You should have received a copy of the GNU Lesser General Public\n; License along with FFmpeg; if not, write to the Free Software\n; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;/\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%if ARCH_X86_32\ncextern pb_80\n\nwm1010: dw 0, 0xffff, 0, 0xffff\nd40000: dd 4 << 16, 0\n\n; 23170.475006\n; 22725.260826\n; 21406.727617\n; 19265.545870\n; 16384.000000\n; 12872.826198\n; 8866.956905\n; 4520.335430\n\n%define C0 23170 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C1 22725 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C2 21407 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C3 19266 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C4 16383 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) - 0.5\n%define C5 12873 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C6 8867  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C7 4520  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n\n%define ROW_SHIFT 11\n%define COL_SHIFT 20 ; 6\n\ncoeffs:\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:2", "text": "; 12872.826198\n; 8866.956905\n; 4520.335430\n\n%define C0 23170 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C1 22725 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C2 21407 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C3 19266 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C4 16383 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) - 0.5\n%define C5 12873 ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C6 8867  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n%define C7 4520  ; cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5\n\n%define ROW_SHIFT 11\n%define COL_SHIFT 20 ; 6\n\ncoeffs:\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 0\n    dw 1 << (ROW_SHIFT - 1), 1\n    dw 1 << (ROW_SHIFT - 1), 0\n\n    dw C4,  C4,  C4,  C4\n    dw C4, -C4,  C4, -C4\n\n    dw C2,  C6,  C2,  C6\n    dw C6, -C2,  C6, -C2\n\n    dw C1,  C3,  C1,  C3\n    dw C5,  C7,  C5,  C7\n\n    dw C3, -C7,  C3, -C7\n    dw -C1, -C5, -C1, -C5\n\n    dw C5, -C1,  C5, -C1\n    dw C7,  C3,  C7,  C3\n\n    dw C7, -C5,  C7, -C5\n    dw C3, -C1,  C3, -C1\n\nSECTION .text\n\n%macro DC_COND_IDCT 7\n    movq            mm0, [blockq + %1]  ; R4     R0      r4      r0\n    movq            mm1, [blockq + %2]  ; R6     R2      r6      r2\n    movq            mm2, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm3, [blockq + %4]  ; R7     R5      r7      r5\n    movq            mm4, [wm1010]\n    pand            mm4, mm0\n    por             mm4, mm1\n    por             mm4, mm2\n    por             mm4, mm3\n    packssdw        mm4, mm4\n    movd            t0d, mm4\n    or              t0d, t0d\n    jz              %%1\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:3", "text": "SECTION .text\n\n%macro DC_COND_IDCT 7\n    movq            mm0, [blockq + %1]  ; R4     R0      r4      r0\n    movq            mm1, [blockq + %2]  ; R6     R2      r6      r2\n    movq            mm2, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm3, [blockq + %4]  ; R7     R5      r7      r5\n    movq            mm4, [wm1010]\n    pand            mm4, mm0\n    por             mm4, mm1\n    por             mm4, mm2\n    por             mm4, mm3\n    packssdw        mm4, mm4\n    movd            t0d, mm4\n    or              t0d, t0d\n    jz              %%1\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    paddd           mm4, [coeffs + 8]\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm5, mm3            ; C7R7+C5R5      C7r7+C5r5\n    paddd           mm0, [coeffs + 8]\n    paddd           mm1, mm0            ; A1             a1\n    paddd           mm0, mm0\n    psubd           mm0, mm1            ; A2             a2\n    pmaddwd         mm2, [coeffs + 64]  ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm5            ; B0             b0\n    movq            mm5, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm5, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    paddd           mm5, mm2            ; B1             b1\n    psrad           mm7, %7\n    psrad           mm4, %7\n    movq            mm2, mm1            ; A1             a1\n    paddd           mm1, mm5            ; A1+B1          a1+b1\n    psubd           mm2, mm5            ; A1-B1          a1-b1\n    psrad           mm1, %7\n    psrad           mm2, %7\n    packssdw        mm7, mm1            ; A1+B1  a1+b1   A0+B0   a0+b0\n    packssdw        mm2, mm4            ; A0-B0  a0-b0   A1-B1   a1-b1\n    movq           [%5], mm7\n    movq            mm1, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    movq      [24 + %5], mm2\n    pmaddwd         mm4, mm1            ; -C1R3+C5R1     -C1r3+C5r1\n    movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:4", "text": "paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    paddd           mm5, mm2            ; B1             b1\n    psrad           mm7, %7\n    psrad           mm4, %7\n    movq            mm2, mm1            ; A1             a1\n    paddd           mm1, mm5            ; A1+B1          a1+b1\n    psubd           mm2, mm5            ; A1-B1          a1-b1\n    psrad           mm1, %7\n    psrad           mm2, %7\n    packssdw        mm7, mm1            ; A1+B1  a1+b1   A0+B0   a0+b0\n    packssdw        mm2, mm4            ; A0-B0  a0-b0   A1-B1   a1-b1\n    movq           [%5], mm7\n    movq            mm1, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    movq      [24 + %5], mm2\n    pmaddwd         mm4, mm1            ; -C1R3+C5R1     -C1r3+C5r1\n    movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd         mm7, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm0            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm4, mm7            ; B2             b2\n    paddd           mm2, mm4            ; A2+B2          a2+b2\n    psubd           mm0, mm4            ; a2-B2          a2-b2\n    psrad           mm2, %7\n    psrad           mm0, %7\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm3, mm1            ; B3             b3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm4, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %7\n    packssdw        mm2, mm6            ; A3+B3  a3+b3   A2+B2   a2+b2\n    movq       [8 + %5], mm2\n    psrad           mm4, %7\n    packssdw        mm4, mm0            ; A2-B2  a2-b2   A3-B3   a3-b3\n    movq      [16 + %5], mm4\n    jmp             %%2\n%%1:\n    pslld           mm0, 16\n    paddd           mm0, [d40000]\n    psrad           mm0, 13\n    packssdw        mm0, mm0\n    movq           [%5], mm0\n    movq       [8 + %5], mm0\n    movq      [16 + %5], mm0\n    movq      [24 + %5], mm0\n%%2:\n%endmacro\n\n%macro Z_COND_IDCT 8\n    movq            mm0, [blockq + %1]  ; R4     R0      r4      r0\n    movq            mm1, [blockq + %2]  ; R6     R2      r6      r2\n    movq            mm2, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm3, [blockq + %4]  ; R7     R5      r7      r5\n    movq            mm4, mm0\n    por             mm4, mm1\n    por             mm4, mm2\n    por             mm4, mm3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:5", "text": "pslld           mm0, 16\n    paddd           mm0, [d40000]\n    psrad           mm0, 13\n    packssdw        mm0, mm0\n    movq           [%5], mm0\n    movq       [8 + %5], mm0\n    movq      [16 + %5], mm0\n    movq      [24 + %5], mm0\n%%2:\n%endmacro\n\n%macro Z_COND_IDCT 8\n    movq            mm0, [blockq + %1]  ; R4     R0      r4      r0\n    movq            mm1, [blockq + %2]  ; R6     R2      r6      r2\n    movq            mm2, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm3, [blockq + %4]  ; R7     R5      r7      r5\n    movq            mm4, mm0\n    por             mm4, mm1\n    por             mm4, mm2\n    por             mm4, mm3\n    packssdw        mm4, mm4\n    movd            t0d, mm4\n    or              t0d, t0d\n    jz               %8\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    paddd           mm4, [coeffs]\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm5, mm3            ; C7R7+C5R5      C7r7+C5r5\n    paddd           mm0, [coeffs]\n    paddd           mm1, mm0            ; A1             a1\n    paddd           mm0, mm0\n    psubd           mm0, mm1            ; A2             a2\n    pmaddwd         mm2, [coeffs + 64]  ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm5            ; B0             b0\n    movq            mm5, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm5, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    paddd           mm5, mm2            ; B1             b1\n    psrad           mm7, %7\n    psrad           mm4, %7\n    movq            mm2, mm1            ; A1             a1\n    paddd           mm1, mm5            ; A1+B1          a1+b1\n    psubd           mm2, mm5            ; A1-B1          a1-b1\n    psrad           mm1, %7\n    psrad           mm2, %7\n    packssdw        mm7, mm1            ; A1+B1  a1+b1   A0+B0   a0+b0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:6", "text": "paddd           mm0, [coeffs]\n    paddd           mm1, mm0            ; A1             a1\n    paddd           mm0, mm0\n    psubd           mm0, mm1            ; A2             a2\n    pmaddwd         mm2, [coeffs + 64]  ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm5            ; B0             b0\n    movq            mm5, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm5, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    paddd           mm5, mm2            ; B1             b1\n    psrad           mm7, %7\n    psrad           mm4, %7\n    movq            mm2, mm1            ; A1             a1\n    paddd           mm1, mm5            ; A1+B1          a1+b1\n    psubd           mm2, mm5            ; A1-B1          a1-b1\n    psrad           mm1, %7\n    psrad           mm2, %7\n    packssdw        mm7, mm1            ; A1+B1  a1+b1   A0+B0   a0+b0\n    packssdw        mm2, mm4            ; A0-B0  a0-b0   A1-B1   a1-b1\n    movq           [%5], mm7\n    movq            mm1, [blockq + %3]  ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    movq      [24 + %5], mm2\n    pmaddwd         mm4, mm1            ; -C1R3+C5R1     -C1r3+C5r1\n    movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd         mm7, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm0            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm4, mm7            ; B2             b2\n    paddd           mm2, mm4            ; A2+B2          a2+b2\n    psubd           mm0, mm4            ; a2-B2          a2-b2\n    psrad           mm2, %7\n    psrad           mm0, %7\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm3, mm1            ; B3             b3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm4, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %7\n    packssdw        mm2, mm6            ; A3+B3  a3+b3   A2+B2   a2+b2\n    movq       [8 + %5], mm2\n    psrad           mm4, %7\n    packssdw        mm4, mm0            ; A2-B2  a2-b2   A3-B3   a3-b3\n    movq      [16 + %5], mm4\n%endmacro\n\n%macro IDCT1 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm1, %2             ; R6     R2      r6      r2\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:7", "text": "psrad           mm6, %7\n    packssdw        mm2, mm6            ; A3+B3  a3+b3   A2+B2   a2+b2\n    movq       [8 + %5], mm2\n    psrad           mm4, %7\n    packssdw        mm4, mm0            ; A2-B2  a2-b2   A3-B3   a3-b3\n    movq      [16 + %5], mm4\n%endmacro\n\n%macro IDCT1 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm1, %2             ; R6     R2      r6      r2\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    paddd           mm0, mm1            ; A1             a1\n    psubd           mm5, mm1            ; A2             a2\n    movq            mm1, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm1, mm3            ; C7R7+C5R5      C7r7+C5r5\n    pmaddwd         mm2, [coeffs + 64]  ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm1            ; B0             b0\n    movq            mm1, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm1, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    paddd           mm1, mm2            ; B1             b1\n    psrad           mm7, %6\n    psrad           mm4, %6\n    movq            mm2, mm0            ; A1             a1\n    paddd           mm0, mm1            ; A1+B1          a1+b1\n    psubd           mm2, mm1            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm2, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm2, mm2            ; A1-B1  a1-b1\n    movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm0, %3             ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm0            ; -C1R3+C5R1     -C1r3+C5r1\n    movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm0, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd         mm7, mm3            ; C3R7+C7R5      C3r7+C7r5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:8", "text": "psrad           mm4, %6\n    movq            mm2, mm0            ; A1             a1\n    paddd           mm0, mm1            ; A1+B1          a1+b1\n    psubd           mm2, mm1            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm2, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm2, mm2            ; A1-B1  a1-b1\n    movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm0, %3             ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm0            ; -C1R3+C5R1     -C1r3+C5r1\n    movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm0, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd         mm7, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm4, mm7            ; B2             b2\n    paddd           mm2, mm4            ; A2+B2          a2+b2\n    psubd           mm5, mm4            ; a2-B2          a2-b2\n    psrad           mm2, %6\n    psrad           mm5, %6\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm3, mm0            ; B3             b3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm4, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm4, %6\n    packssdw        mm2, mm2            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm2\n    packssdw        mm4, mm4            ; A3-B3  a3-b3\n    packssdw        mm5, mm5            ; A2-B2  a2-b2\n    movd      [48 + %5], mm6\n    movd      [64 + %5], mm4\n    movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT2 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm1, %2             ; R6     R2      r6      r2\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    paddd           mm0, mm1            ; A1             a1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:9", "text": "movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT2 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm1, %2             ; R6     R2      r6      r2\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    paddd           mm0, mm1            ; A1             a1\n    psubd           mm5, mm1            ; A2             a2\n    movq            mm1, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm1, mm3            ; C7R7+C5R5      C7r7+C5r5\n    movq            mm7, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm7, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm1, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm1            ; A0-B0          a0-b0\n    psrad           mm1, %6\n    psrad           mm4, %6\n    movq            mm2, mm0            ; A1             a1\n    paddd           mm0, mm7            ; A1+B1          a1+b1\n    psubd           mm2, mm7            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm2, %6\n    packssdw        mm1, mm1            ; A0+B0  a0+b0\n    movd           [%5], mm1\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm2, mm2            ; A1-B1  a1-b1\n    movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm1, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm2, mm1            ; A2+B2          a2+b2\n    psubd           mm5, mm1            ; a2-B2          a2-b2\n    psrad           mm2, %6\n    psrad           mm5, %6\n    movq            mm1, mm6            ; A3             a3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm1, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm1, %6\n    packssdw        mm2, mm2            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm2\n    packssdw        mm1, mm1            ; A3-B3  a3-b3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:10", "text": "movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm1, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm2, mm1            ; A2+B2          a2+b2\n    psubd           mm5, mm1            ; a2-B2          a2-b2\n    psrad           mm2, %6\n    psrad           mm5, %6\n    movq            mm1, mm6            ; A3             a3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm1, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm1, %6\n    packssdw        mm2, mm2            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm2\n    packssdw        mm1, mm1            ; A3-B3  a3-b3\n    packssdw        mm5, mm5            ; A2-B2  a2-b2\n    movd      [48 + %5], mm6\n    movd      [64 + %5], mm1\n    movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT3 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm1, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm1, mm3            ; C7R7+C5R5      C7r7+C5r5\n    movq            mm7, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm7, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm1, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm1            ; A0-B0          a0-b0\n    psrad           mm1, %6\n    psrad           mm4, %6\n    movq            mm2, mm0            ; A1             a1\n    paddd           mm0, mm7            ; A1+B1          a1+b1\n    psubd           mm2, mm7            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm2, %6\n    packssdw        mm1, mm1            ; A0+B0  a0+b0\n    movd           [%5], mm1\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm2, mm2            ; A1-B1  a1-b1\n    movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm1, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:11", "text": "paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm1            ; A0-B0          a0-b0\n    psrad           mm1, %6\n    psrad           mm4, %6\n    movq            mm2, mm0            ; A1             a1\n    paddd           mm0, mm7            ; A1+B1          a1+b1\n    psubd           mm2, mm7            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm2, %6\n    packssdw        mm1, mm1            ; A0+B0  a0+b0\n    movd           [%5], mm1\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm2, mm2            ; A1-B1  a1-b1\n    movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm1, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm1, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm2, mm1            ; A2+B2          a2+b2\n    psubd           mm5, mm1            ; a2-B2          a2-b2\n    psrad           mm2, %6\n    psrad           mm5, %6\n    movq            mm1, mm6            ; A3             a3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm1, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm1, %6\n    packssdw        mm2, mm2            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm2\n    packssdw        mm1, mm1            ; A3-B3  a3-b3\n    packssdw        mm5, mm5            ; A2-B2  a2-b2\n    movd      [48 + %5], mm6\n    movd      [64 + %5], mm1\n    movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT4 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm1, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm1, mm3            ; C7R7+C5R5      C7r7+C5r5\n    pmaddwd         mm2, [coeffs + 64]  ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm1            ; B0             b0\n    movq            mm1, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm1, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:12", "text": "%macro IDCT4 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm3, %4             ; R7     R5      r7      r5\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm1, [coeffs + 56]  ; C7     C5      C7      C5\n    pmaddwd         mm1, mm3            ; C7R7+C5R5      C7r7+C5r5\n    pmaddwd         mm2, [coeffs + 64]  ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm1            ; B0             b0\n    movq            mm1, [coeffs + 72]  ; -C5    -C1     -C5     -C1\n    pmaddwd         mm1, mm3            ; -C5R7-C1R5     -C5r7-C1r5\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    paddd           mm1, mm2            ; B1             b1\n    psrad           mm7, %6\n    psrad           mm4, %6\n    movq            mm2, mm0            ; A1             a1\n    paddd           mm0, mm1            ; A1+B1          a1+b1\n    psubd           mm2, mm1            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm2, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm2, mm2            ; A1-B1  a1-b1\n    movd      [96 + %5], mm2\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm0, %3             ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm0            ; -C1R3+C5R1     -C1r3+C5r1\n    movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm0, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd         mm7, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm4, mm7            ; B2             b2\n    paddd           mm2, mm4            ; A2+B2          a2+b2\n    psubd           mm5, mm4            ; a2-B2          a2-b2\n    psrad           mm2, %6\n    psrad           mm5, %6\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm3, mm0            ; B3             b3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm4, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm4, %6\n    packssdw        mm2, mm2            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm2\n    packssdw        mm4, mm4            ; A3-B3  a3-b3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:13", "text": "movq            mm7, [coeffs + 88]  ; C3     C7      C3      C7\n    pmaddwd         mm0, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    pmaddwd         mm7, mm3            ; C3R7+C7R5      C3r7+C7r5\n    movq            mm2, mm5            ; A2             a2\n    pmaddwd         mm3, [coeffs + 104] ; -C1R7+C3R5     -C1r7+C3r5\n    paddd           mm4, mm7            ; B2             b2\n    paddd           mm2, mm4            ; A2+B2          a2+b2\n    psubd           mm5, mm4            ; a2-B2          a2-b2\n    psrad           mm2, %6\n    psrad           mm5, %6\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm3, mm0            ; B3             b3\n    paddd           mm6, mm3            ; A3+B3          a3+b3\n    psubd           mm4, mm3            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm4, %6\n    packssdw        mm2, mm2            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm2\n    packssdw        mm4, mm4            ; A3-B3  a3-b3\n    packssdw        mm5, mm5            ; A2-B2  a2-b2\n    movd      [48 + %5], mm6\n    movd      [64 + %5], mm4\n    movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT5 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm3, [coeffs + 64]\n    pmaddwd         mm3, mm2            ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    psrad           mm7, %6\n    psrad           mm4, %6\n    movq            mm1, mm0            ; A1             a1\n    paddd           mm0, mm3            ; A1+B1          a1+b1\n    psubd           mm1, mm3            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm1, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm1, mm1            ; A1-B1  a1-b1\n    movd      [96 + %5], mm1\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm2            ; -C1R3+C5R1     -C1r3+C5r1\n    pmaddwd         mm2, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:14", "text": "paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    psrad           mm7, %6\n    psrad           mm4, %6\n    movq            mm1, mm0            ; A1             a1\n    paddd           mm0, mm3            ; A1+B1          a1+b1\n    psubd           mm1, mm3            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm1, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm1, mm1            ; A1-B1  a1-b1\n    movd      [96 + %5], mm1\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm2            ; -C1R3+C5R1     -C1r3+C5r1\n    pmaddwd         mm2, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    movq            mm1, mm5            ; A2             a2\n    paddd           mm1, mm4            ; A2+B2          a2+b2\n    psubd           mm5, mm4            ; a2-B2          a2-b2\n    psrad           mm1, %6\n    psrad           mm5, %6\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm6, mm2            ; A3+B3          a3+b3\n    psubd           mm4, mm2            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    psrad           mm4, %6\n    packssdw        mm1, mm1            ; A2+B2  a2+b2\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [32 + %5], mm1\n    packssdw        mm4, mm4            ; A3-B3  a3-b3\n    packssdw        mm5, mm5            ; A2-B2  a2-b2\n    movd      [48 + %5], mm6\n    movd      [64 + %5], mm4\n    movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT6 6\n    movq            mm0, [%1]           ; R4     R0      r4      r0\n    movq            mm1, [%2]           ; R6     R2      r6      r2\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    paddd           mm0, mm1            ; A1             a1\n    psubd           mm5, mm1            ; A2             a2\n    movq            mm2, [8 + %1]       ; R4     R0      r4      r0\n    movq            mm3, [8 + %2]       ; R6     R2      r6      r2\n    movq            mm1, [coeffs + 16]  ; C4     C4      C4      C4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:15", "text": "%macro IDCT6 6\n    movq            mm0, [%1]           ; R4     R0      r4      r0\n    movq            mm1, [%2]           ; R6     R2      r6      r2\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    paddd           mm0, mm1            ; A1             a1\n    psubd           mm5, mm1            ; A2             a2\n    movq            mm2, [8 + %1]       ; R4     R0      r4      r0\n    movq            mm3, [8 + %2]       ; R6     R2      r6      r2\n    movq            mm1, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm1, mm2            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm2, mm7            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm7, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm7, mm3            ; C6R6+C2R2      C6r6+C2r2\n    pmaddwd         mm3, [coeffs + 40]  ; -C2R6+C6R2     -C2r6+C6r2\n    paddd           mm7, mm1            ; A0             a0\n    paddd           mm1, mm1            ; 2C0            2c0\n    psubd           mm1, mm7            ; A3             a3\n    paddd           mm3, mm2            ; A1             a1\n    paddd           mm2, mm2            ; 2C1            2c1\n    psubd           mm2, mm3            ; A2             a2\n    psrad           mm4, %6\n    psrad           mm7, %6\n    psrad           mm3, %6\n    packssdw        mm4, mm7            ; A0     a0\n    movq           [%5], mm4\n    psrad           mm0, %6\n    packssdw        mm0, mm3            ; A1     a1\n    movq      [16 + %5], mm0\n    movq      [96 + %5], mm0\n    movq     [112 + %5], mm4\n    psrad           mm5, %6\n    psrad           mm6, %6\n    psrad           mm2, %6\n    packssdw        mm5, mm2            ; A2-B2  a2-b2\n    movq      [32 + %5], mm5\n    psrad           mm1, %6\n    packssdw        mm6, mm1            ; A3+B3  a3+b3\n    movq      [48 + %5], mm6\n    movq      [64 + %5], mm6\n    movq      [80 + %5], mm5\n%endmacro\n\n%macro IDCT7 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm1, %2             ; R6     R2      r6      r2\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:16", "text": "movq      [96 + %5], mm0\n    movq     [112 + %5], mm4\n    psrad           mm5, %6\n    psrad           mm6, %6\n    psrad           mm2, %6\n    packssdw        mm5, mm2            ; A2-B2  a2-b2\n    movq      [32 + %5], mm5\n    psrad           mm1, %6\n    packssdw        mm6, mm1            ; A3+B3  a3+b3\n    movq      [48 + %5], mm6\n    movq      [64 + %5], mm6\n    movq      [80 + %5], mm5\n%endmacro\n\n%macro IDCT7 6\n    movq            mm0, %1             ; R4     R0      r4      r0\n    movq            mm1, %2             ; R6     R2      r6      r2\n    movq            mm2, %3             ; R3     R1      r3      r1\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm5, [coeffs + 32]  ; C6     C2      C6      C2\n    pmaddwd         mm5, mm1            ; C6R6+C2R2      C6r6+C2r2\n    movq            mm6, [coeffs + 40]  ; -C2    C6      -C2     C6\n    pmaddwd         mm1, mm6            ; -C2R6+C6R2     -C2r6+C6r2\n    movq            mm6, mm4            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 48]  ; C3     C1      C3      C1\n    pmaddwd         mm7, mm2            ; C3R3+C1R1      C3r3+C1r1\n    paddd           mm4, mm5            ; A0             a0\n    psubd           mm6, mm5            ; A3             a3\n    movq            mm5, mm0            ; -C4R4+C4R0     -C4r4+C4r0\n    paddd           mm0, mm1            ; A1             a1\n    psubd           mm5, mm1            ; A2             a2\n    movq            mm1, [coeffs + 64]\n    pmaddwd         mm1, mm2            ; -C7R3+C3R1     -C7r3+C3r1\n    paddd           mm7, mm4            ; A0+B0          a0+b0\n    paddd           mm4, mm4            ; 2A0            2a0\n    psubd           mm4, mm7            ; A0-B0          a0-b0\n    psrad           mm7, %6\n    psrad           mm4, %6\n    movq            mm3, mm0            ; A1             a1\n    paddd           mm0, mm1            ; A1+B1          a1+b1\n    psubd           mm3, mm1            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm3, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm3, mm3            ; A1-B1  a1-b1\n    movd      [96 + %5], mm3\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm2            ; -C1R3+C5R1     -C1r3+C5r1\n    pmaddwd         mm2, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    movq            mm3, mm5            ; A2             a2\n    paddd           mm3, mm4            ; A2+B2          a2+b2\n    psubd           mm5, mm4            ; a2-B2          a2-b2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:17", "text": "psrad           mm4, %6\n    movq            mm3, mm0            ; A1             a1\n    paddd           mm0, mm1            ; A1+B1          a1+b1\n    psubd           mm3, mm1            ; A1-B1          a1-b1\n    psrad           mm0, %6\n    psrad           mm3, %6\n    packssdw        mm7, mm7            ; A0+B0  a0+b0\n    movd           [%5], mm7\n    packssdw        mm0, mm0            ; A1+B1  a1+b1\n    movd      [16 + %5], mm0\n    packssdw        mm3, mm3            ; A1-B1  a1-b1\n    movd      [96 + %5], mm3\n    packssdw        mm4, mm4            ; A0-B0  a0-b0\n    movd     [112 + %5], mm4\n    movq            mm4, [coeffs + 80]  ; -C1    C5      -C1     C5\n    pmaddwd         mm4, mm2            ; -C1R3+C5R1     -C1r3+C5r1\n    pmaddwd         mm2, [coeffs + 96]  ; -C5R3+C7R1     -C5r3+C7r1\n    movq            mm3, mm5            ; A2             a2\n    paddd           mm3, mm4            ; A2+B2          a2+b2\n    psubd           mm5, mm4            ; a2-B2          a2-b2\n    psrad           mm3, %6\n    psrad           mm5, %6\n    movq            mm4, mm6            ; A3             a3\n    paddd           mm6, mm2            ; A3+B3          a3+b3\n    psubd           mm4, mm2            ; a3-B3          a3-b3\n    psrad           mm6, %6\n    packssdw        mm3, mm3            ; A2+B2  a2+b2\n    movd      [32 + %5], mm3\n    psrad           mm4, %6\n    packssdw        mm6, mm6            ; A3+B3  a3+b3\n    movd      [48 + %5], mm6\n    packssdw        mm4, mm4            ; A3-B3  a3-b3\n    packssdw        mm5, mm5            ; A2-B2  a2-b2\n    movd      [64 + %5], mm4\n    movd      [80 + %5], mm5\n%endmacro\n\n%macro IDCT8 6\n    movq            mm0, [%1]           ; R4     R0      r4      r0\n    movq            mm4, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    psrad           mm4, %6\n    psrad           mm0, %6\n    movq            mm2, [8 + %1]       ; R4     R0      r4      r0\n    movq            mm1, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm1, mm2            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm2, mm7            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm7, [coeffs + 32]  ; C6     C2      C6      C2\n    psrad           mm1, %6\n    packssdw        mm4, mm1            ; A0     a0\n    movq           [%5], mm4\n    psrad           mm2, %6\n    packssdw        mm0, mm2            ; A1     a1\n    movq      [16 + %5], mm0\n    movq      [96 + %5], mm0\n    movq     [112 + %5], mm4\n    movq      [32 + %5], mm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:18", "text": "pmaddwd         mm4, mm0            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm5, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm0, mm5            ; -C4R4+C4R0     -C4r4+C4r0\n    psrad           mm4, %6\n    psrad           mm0, %6\n    movq            mm2, [8 + %1]       ; R4     R0      r4      r0\n    movq            mm1, [coeffs + 16]  ; C4     C4      C4      C4\n    pmaddwd         mm1, mm2            ; C4R4+C4R0      C4r4+C4r0\n    movq            mm7, [coeffs + 24]  ; -C4    C4      -C4     C4\n    pmaddwd         mm2, mm7            ; -C4R4+C4R0     -C4r4+C4r0\n    movq            mm7, [coeffs + 32]  ; C6     C2      C6      C2\n    psrad           mm1, %6\n    packssdw        mm4, mm1            ; A0     a0\n    movq           [%5], mm4\n    psrad           mm2, %6\n    packssdw        mm0, mm2            ; A1     a1\n    movq      [16 + %5], mm0\n    movq      [96 + %5], mm0\n    movq     [112 + %5], mm4\n    movq      [32 + %5], mm0\n    movq      [48 + %5], mm4\n    movq      [64 + %5], mm4\n    movq      [80 + %5], mm0\n%endmacro\n\n%macro IDCT 0\n    DC_COND_IDCT  0,   8,  16,  24, rsp +  0, null, 11\n    Z_COND_IDCT  32,  40,  48,  56, rsp + 32, null, 11, %%4\n    Z_COND_IDCT  64,  72,  80,  88, rsp + 64, null, 11, %%2\n    Z_COND_IDCT  96, 104, 112, 120, rsp + 96, null, 11, %%1\n\n    IDCT1 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT1 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT1 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT1 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%4:\n    Z_COND_IDCT 64,  72,  80,  88, rsp + 64, null, 11, %%6\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%5\n\n    IDCT2 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT2 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT2 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT2 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%6:\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%7\n\n    IDCT3 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT3 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT3 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT3 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%2:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:19", "text": "Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%5\n\n    IDCT2 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT2 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT2 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT2 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%6:\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%7\n\n    IDCT3 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT3 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT3 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT3 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%2:\n    Z_COND_IDCT 96, 104, 112, 120, rsp + 96, null, 11, %%3\n\n    IDCT4 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT4 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT4 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT4 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%3:\n\n    IDCT5 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT5 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT5 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT5 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%5:\n\n    IDCT6 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    IDCT6 rsp + 16, rsp + 80, rsp + 48, rsp + 112, blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%1:\n\n    IDCT7 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT7 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT7 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT7 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%7:\n\n    IDCT8 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    IDCT8 rsp + 16, rsp + 80, rsp + 48, rsp + 112, blockq +  8, 20\n\n    %%9:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:20", "text": "IDCT6 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    IDCT6 rsp + 16, rsp + 80, rsp + 48, rsp + 112, blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%1:\n\n    IDCT7 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT7 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT7 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT7 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%7:\n\n    IDCT8 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    IDCT8 rsp + 16, rsp + 80, rsp + 48, rsp + 112, blockq +  8, 20\n\n    %%9:\n%endmacro\n\n%macro PUT_PIXELS_CLAMPED_HALF 1\n    mova     m0, [blockq+mmsize*0+%1]\n    mova     m1, [blockq+mmsize*2+%1]\n    packuswb m0, [blockq+mmsize*1+%1]\n    packuswb m1, [blockq+mmsize*3+%1]\n    movq           [pixelsq], m0\n    movhps  [lsizeq+pixelsq], m0\n    movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endmacro\n\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n    packuswb   m0, m1\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endmacro\n\nINIT_MMX mmx\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\n    emms\nRET\n\nINIT_XMM sse2\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:21", "text": "paddsw     m0, m2\n    paddsw     m1, m3\n    packuswb   m0, m1\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endmacro\n\nINIT_MMX mmx\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\n    emms\nRET\n\nINIT_XMM sse2\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\nRET\n\ncglobal simple_idct_add, 3, 4, 8, 128, pixels, lsize, block, t0\n    IDCT\n    pxor       m4, m4\n    ADD_PIXELS_CLAMPED 0\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 32\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 64\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 96\nRET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d25b3497f2cd341e54911c8356eeccd66d38092a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d25b3497f2cd341e54911c8356eeccd66d38092a/libavcodec/x86/simple_idct.asm", "line_start": 801, "line_end": 836}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:20", "text": "IDCT6 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    IDCT6 rsp + 16, rsp + 80, rsp + 48, rsp + 112, blockq +  8, 20\n    jmp %%9\n\n    ALIGN 16\n    %%1:\n\n    IDCT7 [rsp +  0], [rsp + 64], [rsp + 32], [rsp +  96], blockq +  0, 20\n    IDCT7 [rsp +  8], [rsp + 72], [rsp + 40], [rsp + 104], blockq +  4, 20\n    IDCT7 [rsp + 16], [rsp + 80], [rsp + 48], [rsp + 112], blockq +  8, 20\n    IDCT7 [rsp + 24], [rsp + 88], [rsp + 56], [rsp + 120], blockq + 12, 20\n    jmp %%9\n\n    ALIGN 16\n    %%7:\n\n    IDCT8 rsp +  0, rsp + 64, rsp + 32, rsp +  96, blockq +  0, 20\n    IDCT8 rsp + 16, rsp + 80, rsp + 48, rsp + 112, blockq +  8, 20\n\n    %%9:\n%endmacro\n\n%macro PUT_PIXELS_CLAMPED_HALF 1\n    mova     m0, [blockq+mmsize*0+%1]\n    mova     m1, [blockq+mmsize*2+%1]\n%if mmsize == 8\n    mova     m2, [blockq+mmsize*4+%1]\n    mova     m3, [blockq+mmsize*6+%1]\n%endif\n    packuswb m0, [blockq+mmsize*1+%1]\n    packuswb m1, [blockq+mmsize*3+%1]\n%if mmsize == 8\n    packuswb m2, [blockq+mmsize*5+%1]\n    packuswb m3, [blockq+mmsize*7+%1]\n    movq           [pixelsq], m0\n    movq    [lsizeq+pixelsq], m1\n    movq  [2*lsizeq+pixelsq], m2\n    movq   [lsize3q+pixelsq], m3\n%else\n    movq           [pixelsq], m0\n    movhps  [lsizeq+pixelsq], m0\n    movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endif\n%endmacro\n\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n%if mmsize == 8\n    mova       m5, [blockq+mmsize*2+%1]\n    mova       m6, [blockq+mmsize*3+%1]\n%endif\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n%if mmsize == 8\n    mova       m7, m2\n    punpcklbw  m2, m4\n    punpckhbw  m7, m4\n    paddsw     m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "7ed1e806e76092df27d7f984a554546a1cf1a175", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7ed1e806e76092df27d7f984a554546a1cf1a175/libavcodec/x86/simple_idct.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:21", "text": "movhps  [lsizeq+pixelsq], m0\n    movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endif\n%endmacro\n\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n%if mmsize == 8\n    mova       m5, [blockq+mmsize*2+%1]\n    mova       m6, [blockq+mmsize*3+%1]\n%endif\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n%if mmsize == 8\n    mova       m7, m2\n    punpcklbw  m2, m4\n    punpckhbw  m7, m4\n    paddsw     m0, m2\n    paddsw     m1, m7\n    mova       m7, m3\n    punpcklbw  m3, m4\n    punpckhbw  m7, m4\n    paddsw     m5, m3\n    paddsw     m6, m7\n%else\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n%endif\n    packuswb   m0, m1\n%if mmsize == 8\n    packuswb   m5, m6\n    movq       [pixelsq], m0\n    movq       [pixelsq+lsizeq], m5\n%else\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endif\n%endmacro\n\nINIT_MMX mmx\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\n    emms\nRET\n\nINIT_XMM sse2\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "7ed1e806e76092df27d7f984a554546a1cf1a175", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7ed1e806e76092df27d7f984a554546a1cf1a175/libavcodec/x86/simple_idct.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:22", "text": "%endif\n%endmacro\n\nINIT_MMX mmx\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\n    emms\nRET\n\nINIT_XMM sse2\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\nRET\n\ncglobal simple_idct_add, 3, 4, 8, 128, pixels, lsize, block, t0\n    IDCT\n    pxor       m4, m4\n    ADD_PIXELS_CLAMPED 0\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 32\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 64\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 96\nRET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "7ed1e806e76092df27d7f984a554546a1cf1a175", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7ed1e806e76092df27d7f984a554546a1cf1a175/libavcodec/x86/simple_idct.asm", "line_start": 841, "line_end": 872}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:21", "text": "movhps  [lsizeq+pixelsq], m0\n    movq  [2*lsizeq+pixelsq], m1\n    movhps [lsize3q+pixelsq], m1\n%endif\n%endmacro\n\n%macro ADD_PIXELS_CLAMPED 1\n    mova       m0, [blockq+mmsize*0+%1]\n    mova       m1, [blockq+mmsize*1+%1]\n%if mmsize == 8\n    mova       m5, [blockq+mmsize*2+%1]\n    mova       m6, [blockq+mmsize*3+%1]\n%endif\n    movq       m2, [pixelsq]\n    movq       m3, [pixelsq+lsizeq]\n%if mmsize == 8\n    mova       m7, m2\n    punpcklbw  m2, m4\n    punpckhbw  m7, m4\n    paddsw     m0, m2\n    paddsw     m1, m7\n    mova       m7, m3\n    punpcklbw  m3, m4\n    punpckhbw  m7, m4\n    paddsw     m5, m3\n    paddsw     m6, m7\n%else\n    punpcklbw  m2, m4\n    punpcklbw  m3, m4\n    paddsw     m0, m2\n    paddsw     m1, m3\n%endif\n    packuswb   m0, m1\n%if mmsize == 8\n    packuswb   m5, m6\n    movq       [pixelsq], m0\n    movq       [pixelsq+lsizeq], m5\n%else\n    movq       [pixelsq], m0\n    movhps     [pixelsq+lsizeq], m0\n%endif\n%endmacro\n\nINIT_MMX mmx\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\nRET\n\nINIT_XMM sse2\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\nRET\n\ncglobal simple_idct_add, 3, 4, 8, 128, pixels, lsize, block, t0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct.asm:22", "text": "%endif\n%endmacro\n\nINIT_MMX mmx\n\ncglobal simple_idct, 1, 2, 8, 128, block, t0\n    IDCT\nRET\n\nINIT_XMM sse2\n\ncglobal simple_idct_put, 3, 5, 8, 128, pixels, lsize, block, lsize3, t0\n    IDCT\n    lea lsize3q, [lsizeq*3]\n    PUT_PIXELS_CLAMPED_HALF 0\n    lea pixelsq, [pixelsq+lsizeq*4]\n    PUT_PIXELS_CLAMPED_HALF 64\nRET\n\ncglobal simple_idct_add, 3, 4, 8, 128, pixels, lsize, block, t0\n    IDCT\n    pxor       m4, m4\n    ADD_PIXELS_CLAMPED 0\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 32\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 64\n    lea        pixelsq, [pixelsq+lsizeq*2]\n    ADD_PIXELS_CLAMPED 96\nRET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct.asm", "line_start": 841, "line_end": 871}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:1", "text": ";******************************************************************************\n;* x86-SIMD-optimized IDCT for prores\n;* this is identical to \"simple\" IDCT written by Michael Niedermayer\n;* except for the clip range\n;*\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2015 Christophe Gisquet\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA\n\ncextern pw_2\ncextern pw_16\ncextern pw_32\ncextern pw_1023\ncextern pw_4095\npd_round_11: times 4 dd 1<<(11-1)\npd_round_12: times 4 dd 1<<(12-1)\npd_round_15: times 4 dd 1<<(15-1)\npd_round_19: times 4 dd 1<<(19-1)\npd_round_20: times 4 dd 1<<(20-1)\n\n%macro CONST_DEC  3\nconst %1\ntimes 4 dw %2, %3\n%endmacro\n\n%define W1sh2 22725 ; W1 = 90901 = 22725<<2 + 1\n%define W2sh2 21407 ; W2 = 85627 = 21407<<2 - 1\n%define W3sh2 19265 ; W3 = 77062 = 19265<<2 + 2\n%define W4sh2 16384 ; W4 = 65535 = 16384<<2 - 1\n%define W3sh2_lo 19266\n%define W4sh2_lo 16383\n%define W5sh2 12873 ; W5 = 51491 = 12873<<2 - 1\n%define W6sh2  8867 ; W6 = 35468 =  8867<<2\n%define W7sh2  4520 ; W7 = 18081 =  4520<<2 + 1\n\nCONST_DEC  w4_plus_w2_hi,   W4sh2, +W2sh2\nCONST_DEC  w4_min_w2_hi,    W4sh2, -W2sh2\nCONST_DEC  w4_plus_w6_hi,   W4sh2, +W6sh2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:2", "text": "pd_round_20: times 4 dd 1<<(20-1)\n\n%macro CONST_DEC  3\nconst %1\ntimes 4 dw %2, %3\n%endmacro\n\n%define W1sh2 22725 ; W1 = 90901 = 22725<<2 + 1\n%define W2sh2 21407 ; W2 = 85627 = 21407<<2 - 1\n%define W3sh2 19265 ; W3 = 77062 = 19265<<2 + 2\n%define W4sh2 16384 ; W4 = 65535 = 16384<<2 - 1\n%define W3sh2_lo 19266\n%define W4sh2_lo 16383\n%define W5sh2 12873 ; W5 = 51491 = 12873<<2 - 1\n%define W6sh2  8867 ; W6 = 35468 =  8867<<2\n%define W7sh2  4520 ; W7 = 18081 =  4520<<2 + 1\n\nCONST_DEC  w4_plus_w2_hi,   W4sh2, +W2sh2\nCONST_DEC  w4_min_w2_hi,    W4sh2, -W2sh2\nCONST_DEC  w4_plus_w6_hi,   W4sh2, +W6sh2\nCONST_DEC  w4_min_w6_hi,    W4sh2, -W6sh2\nCONST_DEC  w1_plus_w3_hi,   W1sh2, +W3sh2\nCONST_DEC  w3_min_w1_hi,    W3sh2, -W1sh2\nCONST_DEC  w7_plus_w3_hi,   W7sh2, +W3sh2\nCONST_DEC  w3_min_w7_hi,    W3sh2, -W7sh2\nCONST_DEC  w1_plus_w5,   W1sh2, +W5sh2\nCONST_DEC  w5_min_w1,    W5sh2, -W1sh2\nCONST_DEC  w5_plus_w7,   W5sh2, +W7sh2\nCONST_DEC  w7_min_w5,    W7sh2, -W5sh2\nCONST_DEC  w4_plus_w2_lo,   W4sh2_lo, +W2sh2\nCONST_DEC  w4_min_w2_lo,    W4sh2_lo, -W2sh2\nCONST_DEC  w4_plus_w6_lo,   W4sh2_lo, +W6sh2\nCONST_DEC  w4_min_w6_lo,    W4sh2_lo, -W6sh2\nCONST_DEC  w1_plus_w3_lo,   W1sh2,    +W3sh2_lo\nCONST_DEC  w3_min_w1_lo,    W3sh2_lo, -W1sh2\nCONST_DEC  w7_plus_w3_lo,   W7sh2,    +W3sh2_lo\nCONST_DEC  w3_min_w7_lo,    W3sh2_lo, -W7sh2\n\n%include \"libavcodec/x86/simple_idct10_template.asm\"\n\nSECTION .text\n\n%macro STORE_HI_LO 12\n    movq   %1, %9\n    movq   %3, %10\n    movq   %5, %11\n    movq   %7, %12\n    movhps %2, %9\n    movhps %4, %10\n    movhps %6, %11\n    movhps %8, %12\n%endmacro\n\n%macro LOAD_ZXBW_8 16\n    pmovzxbw %1, %9\n    pmovzxbw %2, %10\n    pmovzxbw %3, %11\n    pmovzxbw %4, %12\n    pmovzxbw %5, %13\n    pmovzxbw %6, %14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:3", "text": "SECTION .text\n\n%macro STORE_HI_LO 12\n    movq   %1, %9\n    movq   %3, %10\n    movq   %5, %11\n    movq   %7, %12\n    movhps %2, %9\n    movhps %4, %10\n    movhps %6, %11\n    movhps %8, %12\n%endmacro\n\n%macro LOAD_ZXBW_8 16\n    pmovzxbw %1, %9\n    pmovzxbw %2, %10\n    pmovzxbw %3, %11\n    pmovzxbw %4, %12\n    pmovzxbw %5, %13\n    pmovzxbw %6, %14\n    pmovzxbw %7, %15\n    pmovzxbw %8, %16\n%endmacro\n\n%macro LOAD_ZXBW_4 9\n    movh %1, %5\n    movh %2, %6\n    movh %3, %7\n    movh %4, %8\n    punpcklbw %1, %9\n    punpcklbw %2, %9\n    punpcklbw %3, %9\n    punpcklbw %4, %9\n%endmacro\n\n%define PASS4ROWS(base, stride, stride3) \\\n    [base], [base + stride], [base + 2*stride], [base + stride3]\n\n%macro idct_fn 0\n\ndefine_constants _lo\n\ncglobal simple_idct8, 1, 1, 16, block\n    IDCT_FN    \"\", 11, pw_32, 20, \"store\"\nRET\n\ncglobal simple_idct8_put, 3, 4, 16, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea       r3, [3*lsizeq]\n    lea       r2, [pixelsq + r3]\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r2, lsizeq, r3), m8, m1, m4, m9\nRET\n\ncglobal simple_idct8_add, 3, 4, 16, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea r2, [3*lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:4", "text": "define_constants _lo\n\ncglobal simple_idct8, 1, 1, 16, block\n    IDCT_FN    \"\", 11, pw_32, 20, \"store\"\nRET\n\ncglobal simple_idct8_put, 3, 4, 16, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea       r3, [3*lsizeq]\n    lea       r2, [pixelsq + r3]\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r2, lsizeq, r3), m8, m1, m4, m9\nRET\n\ncglobal simple_idct8_add, 3, 4, 16, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea r2, [3*lsizeq]\n    %if cpuflag(sse4)\n        lea r3, [pixelsq + r2]\n        LOAD_ZXBW_8 m3, m5, m6, m7, m12, m13, m14, m15, PASS8ROWS(pixelsq, r3, lsizeq, r2)\n        paddsw m8, m3\n        paddsw m0, m5\n        paddsw m1, m6\n        paddsw m2, m7\n        paddsw m4, m12\n        paddsw m11, m13\n        paddsw m9, m14\n        paddsw m10, m15\n    %else\n        pxor m12, m12\n        LOAD_ZXBW_4 m3, m5, m6, m7, PASS4ROWS(pixelsq, lsizeq, r2), m12\n        paddsw m8, m3\n        paddsw m0, m5\n        paddsw m1, m6\n        paddsw m2, m7\n        lea r3, [pixelsq + 4*lsizeq]\n        LOAD_ZXBW_4 m3, m5, m6, m7, PASS4ROWS(r3, lsizeq, r2), m12\n        paddsw m4, m3\n        paddsw m11, m5\n        paddsw m9, m6\n        paddsw m10, m7\n        lea r3, [pixelsq + r2]\n    %endif\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r3, lsizeq, r2), m8, m1, m4, m9\nRET\n\ndefine_constants _hi\n\ncglobal simple_idct10, 1, 1, 14, block\n    IDCT_FN    \"\", 12, \"\", 19, \"store\"\n    RET\n\ncglobal simple_idct10_put, 3, 3, 14, pixels, lsize, block", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:5", "text": "paddsw m4, m3\n        paddsw m11, m5\n        paddsw m9, m6\n        paddsw m10, m7\n        lea r3, [pixelsq + r2]\n    %endif\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r3, lsizeq, r2), m8, m1, m4, m9\nRET\n\ndefine_constants _hi\n\ncglobal simple_idct10, 1, 1, 14, block\n    IDCT_FN    \"\", 12, \"\", 19, \"store\"\n    RET\n\ncglobal simple_idct10_put, 3, 3, 14, pixels, lsize, block\n    IDCT_FN    \"\", 12, \"\", 19, \"put\", 0, pw_1023\n    RET\n\ncglobal simple_idct12, 1, 1, 14, block\n    ; coeffs are already 15bits, adding the offset would cause\n    ; overflow in the input\n    IDCT_FN    \"\", 15, pw_2, 16, \"store\"\n    RET\n\ncglobal simple_idct12_put, 3, 3, 14, pixels, lsize, block\n    ; range isn't known, so the C simple_idct range is used\n    ; Also, using a bias on input overflows, so use the bias\n    ; on output of the first butterfly instead\n    IDCT_FN    \"\", 15, pw_2, 16, \"put\", 0, pw_4095\n    RET\n%endmacro\n\nINIT_XMM sse2\nidct_fn\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nidct_fn\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10.asm", "line_start": 161, "line_end": 205}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:3", "text": "SECTION .text\n\n%macro STORE_HI_LO 12\n    movq   %1, %9\n    movq   %3, %10\n    movq   %5, %11\n    movq   %7, %12\n    movhps %2, %9\n    movhps %4, %10\n    movhps %6, %11\n    movhps %8, %12\n%endmacro\n\n%macro LOAD_ZXBW_8 16\n    pmovzxbw %1, %9\n    pmovzxbw %2, %10\n    pmovzxbw %3, %11\n    pmovzxbw %4, %12\n    pmovzxbw %5, %13\n    pmovzxbw %6, %14\n    pmovzxbw %7, %15\n    pmovzxbw %8, %16\n%endmacro\n\n%macro LOAD_ZXBW_4 9\n    movh %1, %5\n    movh %2, %6\n    movh %3, %7\n    movh %4, %8\n    punpcklbw %1, %9\n    punpcklbw %2, %9\n    punpcklbw %3, %9\n    punpcklbw %4, %9\n%endmacro\n\n%define PASS4ROWS(base, stride, stride3) \\\n    [base], [base + stride], [base + 2*stride], [base + stride3]\n\n%macro idct_fn 0\n\ndefine_constants _lo\n\ncglobal simple_idct8, 1, 1, 16, 32, block\n    IDCT_FN    \"\", 11, pw_32, 20, \"store\"\nRET\n\ncglobal simple_idct8_put, 3, 4, 16, 32, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea       r3, [3*lsizeq]\n    lea       r2, [pixelsq + r3]\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r2, lsizeq, r3), m8, m1, m4, m9\nRET\n\ncglobal simple_idct8_add, 3, 4, 16, 32, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea r2, [3*lsizeq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:4", "text": "define_constants _lo\n\ncglobal simple_idct8, 1, 1, 16, 32, block\n    IDCT_FN    \"\", 11, pw_32, 20, \"store\"\nRET\n\ncglobal simple_idct8_put, 3, 4, 16, 32, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea       r3, [3*lsizeq]\n    lea       r2, [pixelsq + r3]\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r2, lsizeq, r3), m8, m1, m4, m9\nRET\n\ncglobal simple_idct8_add, 3, 4, 16, 32, pixels, lsize, block\n    IDCT_FN    \"\", 11, pw_32, 20\n    lea r2, [3*lsizeq]\n    %if cpuflag(sse4)\n        lea r3, [pixelsq + r2]\n        LOAD_ZXBW_8 m3, m5, m6, m7, m12, m13, m14, m15, PASS8ROWS(pixelsq, r3, lsizeq, r2)\n        paddsw m8, m3\n        paddsw m0, m5\n        paddsw m1, m6\n        paddsw m2, m7\n        paddsw m4, m12\n        paddsw m11, m13\n        paddsw m9, m14\n        paddsw m10, m15\n    %else\n        pxor m12, m12\n        LOAD_ZXBW_4 m3, m5, m6, m7, PASS4ROWS(pixelsq, lsizeq, r2), m12\n        paddsw m8, m3\n        paddsw m0, m5\n        paddsw m1, m6\n        paddsw m2, m7\n        lea r3, [pixelsq + 4*lsizeq]\n        LOAD_ZXBW_4 m3, m5, m6, m7, PASS4ROWS(r3, lsizeq, r2), m12\n        paddsw m4, m3\n        paddsw m11, m5\n        paddsw m9, m6\n        paddsw m10, m7\n        lea r3, [pixelsq + r2]\n    %endif\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r3, lsizeq, r2), m8, m1, m4, m9\nRET\n\ndefine_constants _hi\n\ncglobal simple_idct10, 1, 1, 16, block\n    IDCT_FN    \"\", 12, \"\", 19, \"store\"\n    RET\n\ncglobal simple_idct10_put, 3, 3, 16, pixels, lsize, block", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10.asm:5", "text": "paddsw m4, m3\n        paddsw m11, m5\n        paddsw m9, m6\n        paddsw m10, m7\n        lea r3, [pixelsq + r2]\n    %endif\n    packuswb  m8, m0\n    packuswb  m1, m2\n    packuswb  m4, m11\n    packuswb  m9, m10\n    STORE_HI_LO PASS8ROWS(pixelsq, r3, lsizeq, r2), m8, m1, m4, m9\nRET\n\ndefine_constants _hi\n\ncglobal simple_idct10, 1, 1, 16, block\n    IDCT_FN    \"\", 12, \"\", 19, \"store\"\n    RET\n\ncglobal simple_idct10_put, 3, 3, 16, pixels, lsize, block\n    IDCT_FN    \"\", 12, \"\", 19, \"put\", 0, pw_1023\n    RET\n\ncglobal simple_idct12, 1, 1, 16, block\n    ; coeffs are already 15bits, adding the offset would cause\n    ; overflow in the input\n    IDCT_FN    \"\", 15, pw_2, 16, \"store\"\n    RET\n\ncglobal simple_idct12_put, 3, 3, 16, pixels, lsize, block\n    ; range isn't known, so the C simple_idct range is used\n    ; Also, using a bias on input overflows, so use the bias\n    ; on output of the first butterfly instead\n    IDCT_FN    \"\", 15, pw_2, 16, \"put\", 0, pw_4095\n    RET\n%endmacro\n\nINIT_XMM sse2\nidct_fn\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nidct_fn\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10.asm", "line_start": 161, "line_end": 205}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:1", "text": ";******************************************************************************\n;* x86-SIMD-optimized IDCT for prores\n;* this is identical to \"simple\" IDCT written by Michael Niedermayer\n;* except for the clip range\n;*\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* 51, Inc., Foundation Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n; add SECTION_RODATA and proper include before including this file!\n\n%if ARCH_X86_64\n\n%macro define_constants 1\n    %undef w4_plus_w2\n    %undef w4_min_w2\n    %undef w4_plus_w6\n    %undef w4_min_w6\n    %undef w1_plus_w3\n    %undef w3_min_w1\n    %undef w7_plus_w3\n    %undef w3_min_w7\n    %define w4_plus_w2 w4_plus_w2%1\n    %define w4_min_w2  w4_min_w2%1\n    %define w4_plus_w6 w4_plus_w6%1\n    %define w4_min_w6  w4_min_w6%1\n    %define w1_plus_w3 w1_plus_w3%1\n    %define w3_min_w1  w3_min_w1%1\n    %define w7_plus_w3 w7_plus_w3%1\n    %define w3_min_w7  w3_min_w7%1\n%endmacro\n\n; interleave data while maintaining source\n; %1=type, %2=dstlo, %3=dsthi, %4=src, %5=interleave\n%macro SBUTTERFLY3 5\n    punpckl%1   m%2, m%4, m%5\n    punpckh%1   m%3, m%4, m%5\n%endmacro\n\n; %1/%2=src1/dst1, %3/%4=dst2, %5/%6=src2, %7=shift\n; action: %3/%4 = %1/%2 - %5/%6; %1/%2 += %5/%6\n;         %1/%2/%3/%4 >>= %7; dword -> word (in %1/%3)\n%macro SUMSUB_SHPK 7\n    psubd       %3,  %1,  %5       ; { a0 - b0 }[0-3]\n    psubd       %4,  %2,  %6       ; { a0 - b0 }[4-7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:2", "text": "%define w4_min_w6  w4_min_w6%1\n    %define w1_plus_w3 w1_plus_w3%1\n    %define w3_min_w1  w3_min_w1%1\n    %define w7_plus_w3 w7_plus_w3%1\n    %define w3_min_w7  w3_min_w7%1\n%endmacro\n\n; interleave data while maintaining source\n; %1=type, %2=dstlo, %3=dsthi, %4=src, %5=interleave\n%macro SBUTTERFLY3 5\n    punpckl%1   m%2, m%4, m%5\n    punpckh%1   m%3, m%4, m%5\n%endmacro\n\n; %1/%2=src1/dst1, %3/%4=dst2, %5/%6=src2, %7=shift\n; action: %3/%4 = %1/%2 - %5/%6; %1/%2 += %5/%6\n;         %1/%2/%3/%4 >>= %7; dword -> word (in %1/%3)\n%macro SUMSUB_SHPK 7\n    psubd       %3,  %1,  %5       ; { a0 - b0 }[0-3]\n    psubd       %4,  %2,  %6       ; { a0 - b0 }[4-7]\n    paddd       %1,  %5            ; { a0 + b0 }[0-3]\n    paddd       %2,  %6            ; { a0 + b0 }[4-7]\n    psrad       %1,  %7\n    psrad       %2,  %7\n    psrad       %3,  %7\n    psrad       %4,  %7\n    packssdw    %1,  %2            ; row[0]\n    packssdw    %3,  %4            ; row[7]\n%endmacro\n\n; %1 = initial bias (\"\" if nop)\n; %2 = number of bits to shift at the end\n; %3 = qmat (for prores)\n%macro IDCT_1D 2-3\n    ; a0 = (W4 * row[0]) + (1 << (15 - 1));\n    ; a1 = a0;\n    ; a2 = a0;\n    ; a3 = a0;\n    ; a0 += W2 * row[2];\n    ; a1 += W6 * row[2];\n    ; a2 -= W6 * row[2];\n    ; a3 -= W2 * row[2];\n%ifstr %1\n    mova        m11, [pd_round_ %+ %2]\n%else\n    paddw       m10, [%1]\n%endif\n    SBUTTERFLY3 wd,  0,  1, 10,  8 ; { row[0], row[2] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w4_plus_w6]\n    pmaddwd     m3,  m1, [w4_plus_w6]\n    pmaddwd     m4,  m0, [w4_min_w6]\n    pmaddwd     m5,  m1, [w4_min_w6]\n    pmaddwd     m6,  m0, [w4_min_w2]\n    pmaddwd     m7,  m1, [w4_min_w2]\n    pmaddwd     m0, [w4_plus_w2]\n    pmaddwd     m1, [w4_plus_w2]\n%ifstr %1\n    ; Adding 1<<(%2-1) for >=15 bits values\n    paddd       m2, m11\n    paddd       m3, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:3", "text": "; a2 -= W6 * row[2];\n    ; a3 -= W2 * row[2];\n%ifstr %1\n    mova        m11, [pd_round_ %+ %2]\n%else\n    paddw       m10, [%1]\n%endif\n    SBUTTERFLY3 wd,  0,  1, 10,  8 ; { row[0], row[2] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w4_plus_w6]\n    pmaddwd     m3,  m1, [w4_plus_w6]\n    pmaddwd     m4,  m0, [w4_min_w6]\n    pmaddwd     m5,  m1, [w4_min_w6]\n    pmaddwd     m6,  m0, [w4_min_w2]\n    pmaddwd     m7,  m1, [w4_min_w2]\n    pmaddwd     m0, [w4_plus_w2]\n    pmaddwd     m1, [w4_plus_w2]\n%ifstr %1\n    ; Adding 1<<(%2-1) for >=15 bits values\n    paddd       m2, m11\n    paddd       m3, m11\n    paddd       m4, m11\n    paddd       m5, m11\n    paddd       m6, m11\n    paddd       m7, m11\n    paddd       m0, m11\n    paddd       m1, m11\n%endif\n\n    ; a0: -1*row[0]-1*row[2]\n    ; a1: -1*row[0]\n    ; a2: -1*row[0]\n    ; a3: -1*row[0]+1*row[2]\n\n    ; a0 +=   W4*row[4] + W6*row[6]; i.e. -1*row[4]\n    ; a1 -=   W4*row[4] + W2*row[6]; i.e. -1*row[4]-1*row[6]\n    ; a2 -=   W4*row[4] - W2*row[6]; i.e. -1*row[4]+1*row[6]\n    ; a3 +=   W4*row[4] - W6*row[6]; i.e. -1*row[4]\n    SBUTTERFLY3 wd,  8,  9, 13, 12 ; { row[4], row[6] }[0-3]/[4-7]\n    pmaddwd     m10, m8, [w4_plus_w6]\n    pmaddwd     m11, m9, [w4_plus_w6]\n    paddd       m0,  m10            ; a0[0-3]\n    paddd       m1,  m11            ; a0[4-7]\n    pmaddwd     m10, m8, [w4_min_w6]\n    pmaddwd     m11, m9, [w4_min_w6]\n    paddd       m6,  m10           ; a3[0-3]\n    paddd       m7,  m11           ; a3[4-7]\n    pmaddwd     m10, m8, [w4_min_w2]\n    pmaddwd     m11, m9, [w4_min_w2]\n    pmaddwd     m8, [w4_plus_w2]\n    pmaddwd     m9, [w4_plus_w2]\n    psubd       m4,  m10           ; a2[0-3] intermediate\n    psubd       m5,  m11           ; a2[4-7] intermediate\n    psubd       m2,  m8            ; a1[0-3] intermediate\n    psubd       m3,  m9            ; a1[4-7] intermediate\n\n    ; load/store\n    mova   [blockq+  0], m0\n    mova   [blockq+ 32], m2\n    mova   [blockq+ 64], m4\n    mova   [blockq+ 96], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:4", "text": "paddd       m0,  m10            ; a0[0-3]\n    paddd       m1,  m11            ; a0[4-7]\n    pmaddwd     m10, m8, [w4_min_w6]\n    pmaddwd     m11, m9, [w4_min_w6]\n    paddd       m6,  m10           ; a3[0-3]\n    paddd       m7,  m11           ; a3[4-7]\n    pmaddwd     m10, m8, [w4_min_w2]\n    pmaddwd     m11, m9, [w4_min_w2]\n    pmaddwd     m8, [w4_plus_w2]\n    pmaddwd     m9, [w4_plus_w2]\n    psubd       m4,  m10           ; a2[0-3] intermediate\n    psubd       m5,  m11           ; a2[4-7] intermediate\n    psubd       m2,  m8            ; a1[0-3] intermediate\n    psubd       m3,  m9            ; a1[4-7] intermediate\n\n    ; load/store\n    mova   [blockq+  0], m0\n    mova   [blockq+ 32], m2\n    mova   [blockq+ 64], m4\n    mova   [blockq+ 96], m6\n    mova        m10,[blockq+ 16]       ; { row[1] }[0-7]\n    mova        m8, [blockq+ 48]       ; { row[3] }[0-7]\n    mova        m13,[blockq+ 80]       ; { row[5] }[0-7]\n    mova        m11,[blockq+112]       ; { row[7] }[0-7]\n    mova   [blockq+ 16], m1\n    mova   [blockq+ 48], m3\n    mova   [blockq+ 80], m5\n    mova   [blockq+112], m7\n%if %0 == 3\n    pmullw      m10,[%3+ 16]\n    pmullw      m8, [%3+ 48]\n    pmullw      m13,[%3+ 80]\n    pmullw      m11,[%3+112]\n%endif\n\n    ; b0 = MUL(W1, row[1]);\n    ; MAC(b0, W3, row[3]);\n    ; b1 = MUL(W3, row[1]);\n    ; MAC(b1, -W7, row[3]);\n    ; b2 = MUL(W5, row[1]);\n    ; MAC(b2, -W1, row[3]);\n    ; b3 = MUL(W7, row[1]);\n    ; MAC(b3, -W5, row[3]);\n    SBUTTERFLY3 wd,  0,  1, 10, 8  ; { row[1], row[3] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w3_min_w7]\n    pmaddwd     m3,  m1, [w3_min_w7]\n    pmaddwd     m4,  m0, [w5_min_w1]\n    pmaddwd     m5,  m1, [w5_min_w1]\n    pmaddwd     m6,  m0, [w7_min_w5]\n    pmaddwd     m7,  m1, [w7_min_w5]\n    pmaddwd     m0, [w1_plus_w3]\n    pmaddwd     m1, [w1_plus_w3]\n\n    ; b0: +1*row[1]+2*row[3]\n    ; b1: +2*row[1]-1*row[3]\n    ; b2: -1*row[1]-1*row[3]\n    ; b3: +1*row[1]+1*row[3]\n\n    ; MAC(b0,  W5, row[5]);\n    ; MAC(b0,  W7, row[7]);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:5", "text": "; MAC(b2, -W1, row[3]);\n    ; b3 = MUL(W7, row[1]);\n    ; MAC(b3, -W5, row[3]);\n    SBUTTERFLY3 wd,  0,  1, 10, 8  ; { row[1], row[3] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w3_min_w7]\n    pmaddwd     m3,  m1, [w3_min_w7]\n    pmaddwd     m4,  m0, [w5_min_w1]\n    pmaddwd     m5,  m1, [w5_min_w1]\n    pmaddwd     m6,  m0, [w7_min_w5]\n    pmaddwd     m7,  m1, [w7_min_w5]\n    pmaddwd     m0, [w1_plus_w3]\n    pmaddwd     m1, [w1_plus_w3]\n\n    ; b0: +1*row[1]+2*row[3]\n    ; b1: +2*row[1]-1*row[3]\n    ; b2: -1*row[1]-1*row[3]\n    ; b3: +1*row[1]+1*row[3]\n\n    ; MAC(b0,  W5, row[5]);\n    ; MAC(b0,  W7, row[7]);\n    ; MAC(b1, -W1, row[5]);\n    ; MAC(b1, -W5, row[7]);\n    ; MAC(b2,  W7, row[5]);\n    ; MAC(b2,  W3, row[7]);\n    ; MAC(b3,  W3, row[5]);\n    ; MAC(b3, -W1, row[7]);\n    SBUTTERFLY3 wd,  8,  9, 13, 11 ; { row[5], row[7] }[0-3]/[4-7]\n\n    ; b0: -1*row[5]+1*row[7]\n    ; b1: -1*row[5]+1*row[7]\n    ; b2: +1*row[5]+2*row[7]\n    ; b3: +2*row[5]-1*row[7]\n\n    pmaddwd     m10, m8, [w1_plus_w5]\n    pmaddwd     m11, m9, [w1_plus_w5]\n    pmaddwd     m12, m8, [w5_plus_w7]\n    pmaddwd     m13, m9, [w5_plus_w7]\n    psubd       m2,  m10           ; b1[0-3]\n    psubd       m3,  m11           ; b1[4-7]\n    paddd       m0,  m12            ; b0[0-3]\n    paddd       m1,  m13            ; b0[4-7]\n    pmaddwd     m12, m8, [w7_plus_w3]\n    pmaddwd     m13, m9, [w7_plus_w3]\n    pmaddwd     m8, [w3_min_w1]\n    pmaddwd     m9, [w3_min_w1]\n    paddd       m4,  m12           ; b2[0-3]\n    paddd       m5,  m13           ; b2[4-7]\n    paddd       m6,  m8            ; b3[0-3]\n    paddd       m7,  m9            ; b3[4-7]\n\n    ; row[0] = (a0 + b0) >> 15;\n    ; row[7] = (a0 - b0) >> 15;\n    ; row[1] = (a1 + b1) >> 15;\n    ; row[6] = (a1 - b1) >> 15;\n    ; row[2] = (a2 + b2) >> 15;\n    ; row[5] = (a2 - b2) >> 15;\n    ; row[3] = (a3 + b3) >> 15;\n    ; row[4] = (a3 - b3) >> 15;\n    mova        m8, [blockq+ 0]        ; a0[0-3]\n    mova        m9, [blockq+16]        ; a0[4-7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:6", "text": "paddd       m1,  m13            ; b0[4-7]\n    pmaddwd     m12, m8, [w7_plus_w3]\n    pmaddwd     m13, m9, [w7_plus_w3]\n    pmaddwd     m8, [w3_min_w1]\n    pmaddwd     m9, [w3_min_w1]\n    paddd       m4,  m12           ; b2[0-3]\n    paddd       m5,  m13           ; b2[4-7]\n    paddd       m6,  m8            ; b3[0-3]\n    paddd       m7,  m9            ; b3[4-7]\n\n    ; row[0] = (a0 + b0) >> 15;\n    ; row[7] = (a0 - b0) >> 15;\n    ; row[1] = (a1 + b1) >> 15;\n    ; row[6] = (a1 - b1) >> 15;\n    ; row[2] = (a2 + b2) >> 15;\n    ; row[5] = (a2 - b2) >> 15;\n    ; row[3] = (a3 + b3) >> 15;\n    ; row[4] = (a3 - b3) >> 15;\n    mova        m8, [blockq+ 0]        ; a0[0-3]\n    mova        m9, [blockq+16]        ; a0[4-7]\n    SUMSUB_SHPK m8,  m9,  m10, m11, m0,  m1,  %2\n    mova        m0, [blockq+32]        ; a1[0-3]\n    mova        m1, [blockq+48]        ; a1[4-7]\n    SUMSUB_SHPK m0,  m1,  m9,  m11, m2,  m3,  %2\n    mova        m1, [blockq+64]        ; a2[0-3]\n    mova        m2, [blockq+80]        ; a2[4-7]\n    SUMSUB_SHPK m1,  m2,  m11, m3,  m4,  m5,  %2\n    mova        m2, [blockq+96]        ; a3[0-3]\n    mova        m3, [blockq+112]       ; a3[4-7]\n    SUMSUB_SHPK m2,  m3,  m4,  m5,  m6,  m7,  %2\n%endmacro\n\n; void ff_prores_idct_put_10_<opt>(uint8_t *pixels, ptrdiff_t stride,\n;                                  int16_t *block, const int16_t *qmat);\n\n; %1 = row shift\n; %2 = row bias macro\n; %3 = column shift\n; %4 = column bias macro\n; %5 = final action (nothing, \"store\", \"put\", \"add\")\n; %6 = min pixel value\n; %7 = max pixel value\n; %8 = qmat (for prores)\n\n%macro IDCT_FN 4-8\n    ; for (i = 0; i < 8; i++)\n    ;     idctRowCondDC(block + i*8);\n    mova        m10,[blockq+ 0]        ; { row[0] }[0-7]\n    mova        m8, [blockq+32]        ; { row[2] }[0-7]\n    mova        m13,[blockq+64]        ; { row[4] }[0-7]\n    mova        m12,[blockq+96]        ; { row[6] }[0-7]\n\n%if %0 == 8\n    pmullw      m10,[%8+ 0]\n    pmullw      m8, [%8+32]\n    pmullw      m13,[%8+64]\n    pmullw      m12,[%8+96]\n\n    IDCT_1D     %1, %2, %8\n%elif %2 == 11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:7", "text": "; %6 = min pixel value\n; %7 = max pixel value\n; %8 = qmat (for prores)\n\n%macro IDCT_FN 4-8\n    ; for (i = 0; i < 8; i++)\n    ;     idctRowCondDC(block + i*8);\n    mova        m10,[blockq+ 0]        ; { row[0] }[0-7]\n    mova        m8, [blockq+32]        ; { row[2] }[0-7]\n    mova        m13,[blockq+64]        ; { row[4] }[0-7]\n    mova        m12,[blockq+96]        ; { row[6] }[0-7]\n\n%if %0 == 8\n    pmullw      m10,[%8+ 0]\n    pmullw      m8, [%8+32]\n    pmullw      m13,[%8+64]\n    pmullw      m12,[%8+96]\n\n    IDCT_1D     %1, %2, %8\n%elif %2 == 11\n    ; This copies the DC-only shortcut.  When there is only a DC coefficient the\n    ; C shifts the value and splats it to all coeffs rather than multiplying and\n    ; doing the full IDCT.  This causes a difference on 8-bit because the\n    ; coefficient is 16383 rather than 16384 (which you can get with shifting).\n    por      m1,  m8, m13\n    por      m1,  m12\n    por      m1, [blockq+ 16]       ; { row[1] }[0-7]\n    por      m1, [blockq+ 48]       ; { row[3] }[0-7]\n    por      m1, [blockq+ 80]       ; { row[5] }[0-7]\n    por      m1, [blockq+112]       ; { row[7] }[0-7]\n    pxor     m2,  m2\n    pcmpeqw  m1,  m2\n    psllw   m15,  m10, 3\n    pand    m15,  m1\n%if avx_enabled\n    pcmpeqb  m3,  m3\n    pxor    m14,  m1, m3\n%else\n    pcmpeqb m14, m14\n    pxor    m14,  m1\n%endif\n\n    IDCT_1D  %1,  %2\n\n    pand     m8,  m14\n    pand     m0,  m14\n    por      m8,  m15\n    por      m0,  m15\n    pand     m1,  m14\n    pand     m2,  m14\n    por      m1,  m15\n    por      m2,  m15\n    pand     m4,  m14\n    pand     m11, m14\n    por      m4,  m15\n    por      m11, m15\n    pand     m9,  m14\n    pand     m10, m14\n    por      m9,  m15\n    por      m10, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:8", "text": "%endif\n\n    IDCT_1D  %1,  %2\n\n    pand     m8,  m14\n    pand     m0,  m14\n    por      m8,  m15\n    por      m0,  m15\n    pand     m1,  m14\n    pand     m2,  m14\n    por      m1,  m15\n    por      m2,  m15\n    pand     m4,  m14\n    pand     m11, m14\n    por      m4,  m15\n    por      m11, m15\n    pand     m9,  m14\n    pand     m10, m14\n    por      m9,  m15\n    por      m10, m15\n%else\n    IDCT_1D     %1, %2\n%endif\n\n    ; transpose for second part of IDCT\n    TRANSPOSE8x8W 8, 0, 1, 2, 4, 11, 9, 10, 3\n    mova   [blockq+ 16], m0\n    mova   [blockq+ 48], m2\n    mova   [blockq+ 80], m11\n    mova   [blockq+112], m10\n    SWAP         8,  10\n    SWAP         1,   8\n    SWAP         4,  13\n    SWAP         9,  12\n\n    ; for (i = 0; i < 8; i++)\n    ;     idctSparseColAdd(dest + i, line_size, block + i);\n    IDCT_1D     %3, %4\n\n    ; clip/store\n%if %0 >= 5\n%ifidn %5,\"store\"\n    ; No clamping, means pure idct\n    mova  [blockq+  0], m8\n    mova  [blockq+ 16], m0\n    mova  [blockq+ 32], m1\n    mova  [blockq+ 48], m2\n    mova  [blockq+ 64], m4\n    mova  [blockq+ 80], m11\n    mova  [blockq+ 96], m9\n    mova  [blockq+112], m10\n%elifidn %5,\"put\"\n%ifidn %6, 0\n    pxor        m3, m3\n%else\n    mova        m3, [%6]\n%endif ; ifidn %6, 0\n    mova        m5, [%7]\n    pmaxsw      m8,  m3\n    pmaxsw      m0,  m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:9", "text": "%if %0 >= 5\n%ifidn %5,\"store\"\n    ; No clamping, means pure idct\n    mova  [blockq+  0], m8\n    mova  [blockq+ 16], m0\n    mova  [blockq+ 32], m1\n    mova  [blockq+ 48], m2\n    mova  [blockq+ 64], m4\n    mova  [blockq+ 80], m11\n    mova  [blockq+ 96], m9\n    mova  [blockq+112], m10\n%elifidn %5,\"put\"\n%ifidn %6, 0\n    pxor        m3, m3\n%else\n    mova        m3, [%6]\n%endif ; ifidn %6, 0\n    mova        m5, [%7]\n    pmaxsw      m8,  m3\n    pmaxsw      m0,  m3\n    pmaxsw      m1,  m3\n    pmaxsw      m2,  m3\n    pmaxsw      m4,  m3\n    pmaxsw      m11, m3\n    pmaxsw      m9,  m3\n    pmaxsw      m10, m3\n    pminsw      m8,  m5\n    pminsw      m0,  m5\n    pminsw      m1,  m5\n    pminsw      m2,  m5\n    pminsw      m4,  m5\n    pminsw      m11, m5\n    pminsw      m9,  m5\n    pminsw      m10, m5\n\n    lea         r2, [r1*3]\n    mova  [r0     ], m8\n    mova  [r0+r1  ], m0\n    mova  [r0+r1*2], m1\n    mova  [r0+r2  ], m2\n    lea         r0, [r0+r1*4]\n    mova  [r0     ], m4\n    mova  [r0+r1  ], m11\n    mova  [r0+r1*2], m9\n    mova  [r0+r2  ], m10\n%endif ; %5 action\n%endif; if %0 >= 5\n%endmacro\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 321, "line_end": 370}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:10", "text": "lea         r0, [r0+r1*4]\n    mova  [r0     ], m4\n    mova  [r0+r1  ], m11\n    mova  [r0+r1*2], m9\n    mova  [r0+r2  ], m10\n%endif ; %5 action\n%endif; if %0 >= 5\n%endmacro\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/simple_idct10_template.asm", "line_start": 361, "line_end": 370}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:2", "text": "%define w4_min_w6  w4_min_w6%1\n    %define w1_plus_w3 w1_plus_w3%1\n    %define w3_min_w1  w3_min_w1%1\n    %define w7_plus_w3 w7_plus_w3%1\n    %define w3_min_w7  w3_min_w7%1\n%endmacro\n\n; interleave data while maintaining source\n; %1=type, %2=dstlo, %3=dsthi, %4=src, %5=interleave\n%macro SBUTTERFLY3 5\n    punpckl%1   m%2, m%4, m%5\n    punpckh%1   m%3, m%4, m%5\n%endmacro\n\n; %1/%2=src1/dst1, %3/%4=dst2, %5/%6=src2, %7=shift\n; action: %3/%4 = %1/%2 - %5/%6; %1/%2 += %5/%6\n;         %1/%2/%3/%4 >>= %7; dword -> word (in %1/%3)\n%macro SUMSUB_SHPK 7\n    psubd       %3,  %1,  %5       ; { a0 - b0 }[0-3]\n    psubd       %4,  %2,  %6       ; { a0 - b0 }[4-7]\n    paddd       %1,  %5            ; { a0 + b0 }[0-3]\n    paddd       %2,  %6            ; { a0 + b0 }[4-7]\n    psrad       %1,  %7\n    psrad       %2,  %7\n    psrad       %3,  %7\n    psrad       %4,  %7\n    packssdw    %1,  %2            ; row[0]\n    packssdw    %3,  %4            ; row[7]\n%endmacro\n\n; %1 = initial bias (\"\" if nop)\n; %2 = number of bits to shift at the end\n; %3 = qmat (for prores)\n%macro IDCT_1D 2-3\n    ; a0 = (W4 * row[0]) + (1 << (15 - 1));\n    ; a1 = a0;\n    ; a2 = a0;\n    ; a3 = a0;\n    ; a0 += W2 * row[2];\n    ; a1 += W6 * row[2];\n    ; a2 -= W6 * row[2];\n    ; a3 -= W2 * row[2];\n%ifstr %1\n    mova        m15, [pd_round_ %+ %2]\n%else\n    paddw       m10, [%1]\n%endif\n    SBUTTERFLY3 wd,  0,  1, 10,  8 ; { row[0], row[2] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w4_plus_w6]\n    pmaddwd     m3,  m1, [w4_plus_w6]\n    pmaddwd     m4,  m0, [w4_min_w6]\n    pmaddwd     m5,  m1, [w4_min_w6]\n    pmaddwd     m6,  m0, [w4_min_w2]\n    pmaddwd     m7,  m1, [w4_min_w2]\n    pmaddwd     m0, [w4_plus_w2]\n    pmaddwd     m1, [w4_plus_w2]\n%ifstr %1\n    ; Adding 1<<(%2-1) for >=15 bits values\n    paddd       m2, m15\n    paddd       m3, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:3", "text": "; a2 -= W6 * row[2];\n    ; a3 -= W2 * row[2];\n%ifstr %1\n    mova        m15, [pd_round_ %+ %2]\n%else\n    paddw       m10, [%1]\n%endif\n    SBUTTERFLY3 wd,  0,  1, 10,  8 ; { row[0], row[2] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w4_plus_w6]\n    pmaddwd     m3,  m1, [w4_plus_w6]\n    pmaddwd     m4,  m0, [w4_min_w6]\n    pmaddwd     m5,  m1, [w4_min_w6]\n    pmaddwd     m6,  m0, [w4_min_w2]\n    pmaddwd     m7,  m1, [w4_min_w2]\n    pmaddwd     m0, [w4_plus_w2]\n    pmaddwd     m1, [w4_plus_w2]\n%ifstr %1\n    ; Adding 1<<(%2-1) for >=15 bits values\n    paddd       m2, m15\n    paddd       m3, m15\n    paddd       m4, m15\n    paddd       m5, m15\n    paddd       m6, m15\n    paddd       m7, m15\n    paddd       m0, m15\n    paddd       m1, m15\n%endif\n\n    ; a0: -1*row[0]-1*row[2]\n    ; a1: -1*row[0]\n    ; a2: -1*row[0]\n    ; a3: -1*row[0]+1*row[2]\n\n    ; a0 +=   W4*row[4] + W6*row[6]; i.e. -1*row[4]\n    ; a1 -=   W4*row[4] + W2*row[6]; i.e. -1*row[4]-1*row[6]\n    ; a2 -=   W4*row[4] - W2*row[6]; i.e. -1*row[4]+1*row[6]\n    ; a3 +=   W4*row[4] - W6*row[6]; i.e. -1*row[4]\n    SBUTTERFLY3 wd,  8,  9, 13, 12 ; { row[4], row[6] }[0-3]/[4-7]\n    pmaddwd     m10, m8, [w4_plus_w6]\n    pmaddwd     m11, m9, [w4_plus_w6]\n    paddd       m0,  m10            ; a0[0-3]\n    paddd       m1,  m11            ; a0[4-7]\n    pmaddwd     m10, m8, [w4_min_w6]\n    pmaddwd     m11, m9, [w4_min_w6]\n    paddd       m6,  m10           ; a3[0-3]\n    paddd       m7,  m11           ; a3[4-7]\n    pmaddwd     m10, m8, [w4_min_w2]\n    pmaddwd     m11, m9, [w4_min_w2]\n    pmaddwd     m8, [w4_plus_w2]\n    pmaddwd     m9, [w4_plus_w2]\n    psubd       m4,  m10           ; a2[0-3] intermediate\n    psubd       m5,  m11           ; a2[4-7] intermediate\n    psubd       m2,  m8            ; a1[0-3] intermediate\n    psubd       m3,  m9            ; a1[4-7] intermediate\n\n    ; load/store\n    mova   [blockq+  0], m0\n    mova   [blockq+ 32], m2\n    mova   [blockq+ 64], m4\n    mova   [blockq+ 96], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:4", "text": "paddd       m0,  m10            ; a0[0-3]\n    paddd       m1,  m11            ; a0[4-7]\n    pmaddwd     m10, m8, [w4_min_w6]\n    pmaddwd     m11, m9, [w4_min_w6]\n    paddd       m6,  m10           ; a3[0-3]\n    paddd       m7,  m11           ; a3[4-7]\n    pmaddwd     m10, m8, [w4_min_w2]\n    pmaddwd     m11, m9, [w4_min_w2]\n    pmaddwd     m8, [w4_plus_w2]\n    pmaddwd     m9, [w4_plus_w2]\n    psubd       m4,  m10           ; a2[0-3] intermediate\n    psubd       m5,  m11           ; a2[4-7] intermediate\n    psubd       m2,  m8            ; a1[0-3] intermediate\n    psubd       m3,  m9            ; a1[4-7] intermediate\n\n    ; load/store\n    mova   [blockq+  0], m0\n    mova   [blockq+ 32], m2\n    mova   [blockq+ 64], m4\n    mova   [blockq+ 96], m6\n    mova        m10,[blockq+ 16]       ; { row[1] }[0-7]\n    mova        m8, [blockq+ 48]       ; { row[3] }[0-7]\n    mova        m13,[blockq+ 80]       ; { row[5] }[0-7]\n    mova        m14,[blockq+112]       ; { row[7] }[0-7]\n    mova   [blockq+ 16], m1\n    mova   [blockq+ 48], m3\n    mova   [blockq+ 80], m5\n    mova   [blockq+112], m7\n%if %0 == 3\n    pmullw      m10,[%3+ 16]\n    pmullw      m8, [%3+ 48]\n    pmullw      m13,[%3+ 80]\n    pmullw      m14,[%3+112]\n%endif\n\n    ; b0 = MUL(W1, row[1]);\n    ; MAC(b0, W3, row[3]);\n    ; b1 = MUL(W3, row[1]);\n    ; MAC(b1, -W7, row[3]);\n    ; b2 = MUL(W5, row[1]);\n    ; MAC(b2, -W1, row[3]);\n    ; b3 = MUL(W7, row[1]);\n    ; MAC(b3, -W5, row[3]);\n    SBUTTERFLY3 wd,  0,  1, 10, 8  ; { row[1], row[3] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w3_min_w7]\n    pmaddwd     m3,  m1, [w3_min_w7]\n    pmaddwd     m4,  m0, [w5_min_w1]\n    pmaddwd     m5,  m1, [w5_min_w1]\n    pmaddwd     m6,  m0, [w7_min_w5]\n    pmaddwd     m7,  m1, [w7_min_w5]\n    pmaddwd     m0, [w1_plus_w3]\n    pmaddwd     m1, [w1_plus_w3]\n\n    ; b0: +1*row[1]+2*row[3]\n    ; b1: +2*row[1]-1*row[3]\n    ; b2: -1*row[1]-1*row[3]\n    ; b3: +1*row[1]+1*row[3]\n\n    ; MAC(b0,  W5, row[5]);\n    ; MAC(b0,  W7, row[7]);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:5", "text": "; MAC(b2, -W1, row[3]);\n    ; b3 = MUL(W7, row[1]);\n    ; MAC(b3, -W5, row[3]);\n    SBUTTERFLY3 wd,  0,  1, 10, 8  ; { row[1], row[3] }[0-3]/[4-7]\n    pmaddwd     m2,  m0, [w3_min_w7]\n    pmaddwd     m3,  m1, [w3_min_w7]\n    pmaddwd     m4,  m0, [w5_min_w1]\n    pmaddwd     m5,  m1, [w5_min_w1]\n    pmaddwd     m6,  m0, [w7_min_w5]\n    pmaddwd     m7,  m1, [w7_min_w5]\n    pmaddwd     m0, [w1_plus_w3]\n    pmaddwd     m1, [w1_plus_w3]\n\n    ; b0: +1*row[1]+2*row[3]\n    ; b1: +2*row[1]-1*row[3]\n    ; b2: -1*row[1]-1*row[3]\n    ; b3: +1*row[1]+1*row[3]\n\n    ; MAC(b0,  W5, row[5]);\n    ; MAC(b0,  W7, row[7]);\n    ; MAC(b1, -W1, row[5]);\n    ; MAC(b1, -W5, row[7]);\n    ; MAC(b2,  W7, row[5]);\n    ; MAC(b2,  W3, row[7]);\n    ; MAC(b3,  W3, row[5]);\n    ; MAC(b3, -W1, row[7]);\n    SBUTTERFLY3 wd,  8,  9, 13, 14 ; { row[5], row[7] }[0-3]/[4-7]\n\n    ; b0: -1*row[5]+1*row[7]\n    ; b1: -1*row[5]+1*row[7]\n    ; b2: +1*row[5]+2*row[7]\n    ; b3: +2*row[5]-1*row[7]\n\n    pmaddwd     m10, m8, [w1_plus_w5]\n    pmaddwd     m11, m9, [w1_plus_w5]\n    pmaddwd     m12, m8, [w5_plus_w7]\n    pmaddwd     m13, m9, [w5_plus_w7]\n    psubd       m2,  m10           ; b1[0-3]\n    psubd       m3,  m11           ; b1[4-7]\n    paddd       m0,  m12            ; b0[0-3]\n    paddd       m1,  m13            ; b0[4-7]\n    pmaddwd     m12, m8, [w7_plus_w3]\n    pmaddwd     m13, m9, [w7_plus_w3]\n    pmaddwd     m8, [w3_min_w1]\n    pmaddwd     m9, [w3_min_w1]\n    paddd       m4,  m12           ; b2[0-3]\n    paddd       m5,  m13           ; b2[4-7]\n    paddd       m6,  m8            ; b3[0-3]\n    paddd       m7,  m9            ; b3[4-7]\n\n    ; row[0] = (a0 + b0) >> 15;\n    ; row[7] = (a0 - b0) >> 15;\n    ; row[1] = (a1 + b1) >> 15;\n    ; row[6] = (a1 - b1) >> 15;\n    ; row[2] = (a2 + b2) >> 15;\n    ; row[5] = (a2 - b2) >> 15;\n    ; row[3] = (a3 + b3) >> 15;\n    ; row[4] = (a3 - b3) >> 15;\n    mova        m8, [blockq+ 0]        ; a0[0-3]\n    mova        m9, [blockq+16]        ; a0[4-7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:7", "text": "; %6 = min pixel value\n; %7 = max pixel value\n; %8 = qmat (for prores)\n\n%macro IDCT_FN 4-8\n    ; for (i = 0; i < 8; i++)\n    ;     idctRowCondDC(block + i*8);\n    mova        m10,[blockq+ 0]        ; { row[0] }[0-7]\n    mova        m8, [blockq+32]        ; { row[2] }[0-7]\n    mova        m13,[blockq+64]        ; { row[4] }[0-7]\n    mova        m12,[blockq+96]        ; { row[6] }[0-7]\n\n%if %0 == 8\n    pmullw      m10,[%8+ 0]\n    pmullw      m8, [%8+32]\n    pmullw      m13,[%8+64]\n    pmullw      m12,[%8+96]\n\n    IDCT_1D     %1, %2, %8\n%elif %2 == 11\n    ; This copies the DC-only shortcut.  When there is only a DC coefficient the\n    ; C shifts the value and splats it to all coeffs rather than multiplying and\n    ; doing the full IDCT.  This causes a difference on 8-bit because the\n    ; coefficient is 16383 rather than 16384 (which you can get with shifting).\n    por      m1,  m8, m13\n    por      m1,  m12\n    por      m1, [blockq+ 16]       ; { row[1] }[0-7]\n    por      m1, [blockq+ 48]       ; { row[3] }[0-7]\n    por      m1, [blockq+ 80]       ; { row[5] }[0-7]\n    por      m1, [blockq+112]       ; { row[7] }[0-7]\n    pxor     m2,  m2\n    pcmpeqw  m1,  m2\n    psllw    m2,  m10, 3\n    pand     m2,  m1\n    pcmpeqb  m3,  m3\n    pxor     m1,  m3\n    mova    [rsp],    m1\n    mova    [rsp+16], m2\n\n    IDCT_1D  %1,  %2\n\n    mova     m5, [rsp]\n    mova     m6, [rsp+16]\n    pand     m8,  m5\n    por      m8,  m6\n    pand     m0,  m5\n    por      m0,  m6\n    pand     m1,  m5\n    por      m1,  m6\n    pand     m2,  m5\n    por      m2,  m6\n    pand     m4,  m5\n    por      m4,  m6\n    pand     m11, m5\n    por      m11, m6\n    pand     m9,  m5\n    por      m9,  m6\n    pand     m10, m5\n    por      m10, m6\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:8", "text": "mova     m5, [rsp]\n    mova     m6, [rsp+16]\n    pand     m8,  m5\n    por      m8,  m6\n    pand     m0,  m5\n    por      m0,  m6\n    pand     m1,  m5\n    por      m1,  m6\n    pand     m2,  m5\n    por      m2,  m6\n    pand     m4,  m5\n    por      m4,  m6\n    pand     m11, m5\n    por      m11, m6\n    pand     m9,  m5\n    por      m9,  m6\n    pand     m10, m5\n    por      m10, m6\n%else\n    IDCT_1D     %1, %2\n%endif\n\n    ; transpose for second part of IDCT\n    TRANSPOSE8x8W 8, 0, 1, 2, 4, 11, 9, 10, 3\n    mova   [blockq+ 16], m0\n    mova   [blockq+ 48], m2\n    mova   [blockq+ 80], m11\n    mova   [blockq+112], m10\n    SWAP         8,  10\n    SWAP         1,   8\n    SWAP         4,  13\n    SWAP         9,  12\n\n    ; for (i = 0; i < 8; i++)\n    ;     idctSparseColAdd(dest + i, line_size, block + i);\n    IDCT_1D     %3, %4\n\n    ; clip/store\n%if %0 >= 5\n%ifidn %5,\"store\"\n    ; No clamping, means pure idct\n    mova  [blockq+  0], m8\n    mova  [blockq+ 16], m0\n    mova  [blockq+ 32], m1\n    mova  [blockq+ 48], m2\n    mova  [blockq+ 64], m4\n    mova  [blockq+ 80], m11\n    mova  [blockq+ 96], m9\n    mova  [blockq+112], m10\n%elifidn %5,\"put\"\n%ifidn %6, 0\n    pxor        m3, m3\n%else\n    mova        m3, [%6]\n%endif ; ifidn %6, 0\n    mova        m5, [%7]\n    pmaxsw      m8,  m3\n    pmaxsw      m0,  m3\n    pmaxsw      m1,  m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/simple_idct10_template.asm:9", "text": "%ifidn %5,\"store\"\n    ; No clamping, means pure idct\n    mova  [blockq+  0], m8\n    mova  [blockq+ 16], m0\n    mova  [blockq+ 32], m1\n    mova  [blockq+ 48], m2\n    mova  [blockq+ 64], m4\n    mova  [blockq+ 80], m11\n    mova  [blockq+ 96], m9\n    mova  [blockq+112], m10\n%elifidn %5,\"put\"\n%ifidn %6, 0\n    pxor        m3, m3\n%else\n    mova        m3, [%6]\n%endif ; ifidn %6, 0\n    mova        m5, [%7]\n    pmaxsw      m8,  m3\n    pmaxsw      m0,  m3\n    pmaxsw      m1,  m3\n    pmaxsw      m2,  m3\n    pmaxsw      m4,  m3\n    pmaxsw      m11, m3\n    pmaxsw      m9,  m3\n    pmaxsw      m10, m3\n    pminsw      m8,  m5\n    pminsw      m0,  m5\n    pminsw      m1,  m5\n    pminsw      m2,  m5\n    pminsw      m4,  m5\n    pminsw      m11, m5\n    pminsw      m9,  m5\n    pminsw      m10, m5\n\n    lea         r2, [r1*3]\n    mova  [r0     ], m8\n    mova  [r0+r1  ], m0\n    mova  [r0+r1*2], m1\n    mova  [r0+r2  ], m2\n    lea         r0, [r0+r1*4]\n    mova  [r0     ], m4\n    mova  [r0+r1  ], m11\n    mova  [r0+r1*2], m9\n    mova  [r0+r2  ], m10\n%endif ; %5 action\n%endif; if %0 >= 5\n%endmacro\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/simple_idct10_template.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/simple_idct10_template.asm", "line_start": 321, "line_end": 369}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/snowdsp.asm:1", "text": ";*\n;* ASM optimized Snow DSP functions\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern snow_inner_add_yblock_c\n\nSECTION .text\n\n%assign FRAC_BITS     4\n%assign LOG2_OBMC_MAX 6\n\n%macro ADD_YBLOCK_PROLOGUE 1\n%assign stack_offset 0\n%if ARCH_X86_32\n    PROLOGUE 1, 7, 7+(%1>>4), obmc, offset, dst8, lines, b_h, src_x, dst\n    ; copy all four block pointers to the stack to be able to load\n    ; them via esp\n    mov             r2, r2m\n    mov           b_hd, b_hm\n    mov         src_xd, src_xm\n    movups          m1, [r2]\n    mov         linesq, r7m\n    shl         src_xd, 1              ; convert src_x from IDWTELEM to bytes\n    mov          dst8q, r9m\n    mov         src_xm, src_xd\n    ; Just reuse the space for the arguments to store the block pointers.\n%if HAVE_ALIGNED_STACK\n    movaps         r0m, m1\n%else\n    movups         r0m, m1\n%endif\n    %define src_strideq r6m\n%else ; X64\n    PROLOGUE 1, 12, 7+(%1>>4), obmc, offset, dst8, lines, b_h, src_x, src_stride, dst, block0, block1, block2, block3\n    mov        block0q, [r2q]\n    mov        block1q, [r2q +   gprsize]\n    mov        block2q, [r2q + 2*gprsize]\n    mov        block3q, [r2q + 3*gprsize]\n    movifnidn     b_hd, b_hm\n    movifnidn   src_xd, src_xm\n    shl         src_xd, 1              ; convert src_x from IDWTELEM to bytes and zero-extend it\n    movsxd src_strideq, src_stridem", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/snowdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/snowdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/snowdsp.asm:2", "text": "shl         src_xd, 1              ; convert src_x from IDWTELEM to bytes\n    mov          dst8q, r9m\n    mov         src_xm, src_xd\n    ; Just reuse the space for the arguments to store the block pointers.\n%if HAVE_ALIGNED_STACK\n    movaps         r0m, m1\n%else\n    movups         r0m, m1\n%endif\n    %define src_strideq r6m\n%else ; X64\n    PROLOGUE 1, 12, 7+(%1>>4), obmc, offset, dst8, lines, b_h, src_x, src_stride, dst, block0, block1, block2, block3\n    mov        block0q, [r2q]\n    mov        block1q, [r2q +   gprsize]\n    mov        block2q, [r2q + 2*gprsize]\n    mov        block3q, [r2q + 3*gprsize]\n    movifnidn     b_hd, b_hm\n    movifnidn   src_xd, src_xm\n    shl         src_xd, 1              ; convert src_x from IDWTELEM to bytes and zero-extend it\n    movsxd src_strideq, src_stridem\n    mov         linesq, r7mp\n    mov          dst8q, r9mp\n%endif\n    xor        offsetd, offsetd\n    psllw           m0, FRAC_BITS - 1  ; pw_m8\n%endmacro\n\n%macro LOAD_BLOCKPOINTER_FOR_X86_32 2\n%if ARCH_X86_32\n    ; we put block #i into the spot of register r#i\n    mov             r5, r %+ %1 %+ m\n    mov             r6, r %+ %2 %+ m\n    %xdefine block%1q r5\n    %xdefine block%2q r6\n%endif\n%endmacro\n\nINIT_XMM ssse3\n; void ff_snow_inner_add_yblock_ssse3(const uint8_t *obmc, const int obmc_stride,\n;                                     uint8_t **block, int b_w, int b_h, int src_x,\n;                                     int src_stride, IDWTELEM *const *lines,\n;                                     int add, uint8_t *dst8);\n; Don't use cglobal to load args, as we may want to perform\n; a tail call to ff_snow_inner_add_yblock.\ncglobal snow_inner_add_yblock\n    pcmpeqw         m0, m0\n%if ARCH_X86_32\n    mov            r0d, r3m     ; block width\n    cmp            r0d, 16\n    je            .w16\n    cmp            r0d, 8\n    jne snow_inner_add_yblock_c\n    cmp           r1mp, 16\n    jne snow_inner_add_yblock_c\n%else\n    ; all arguments used to check for support are already in registers\n    cmp            r3d, 16\n    je            .w16\n    cmp            r3d, 8\n    jne snow_inner_add_yblock_c", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/snowdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/snowdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/snowdsp.asm:3", "text": ";                                     int src_stride, IDWTELEM *const *lines,\n;                                     int add, uint8_t *dst8);\n; Don't use cglobal to load args, as we may want to perform\n; a tail call to ff_snow_inner_add_yblock.\ncglobal snow_inner_add_yblock\n    pcmpeqw         m0, m0\n%if ARCH_X86_32\n    mov            r0d, r3m     ; block width\n    cmp            r0d, 16\n    je            .w16\n    cmp            r0d, 8\n    jne snow_inner_add_yblock_c\n    cmp           r1mp, 16\n    jne snow_inner_add_yblock_c\n%else\n    ; all arguments used to check for support are already in registers\n    cmp            r3d, 16\n    je            .w16\n    cmp            r3d, 8\n    jne snow_inner_add_yblock_c\n    cmp            r1d, 16\n    jne snow_inner_add_yblock_c\n%endif\n    ADD_YBLOCK_PROLOGUE 8\n    .loop8:\n        LOAD_BLOCKPOINTER_FOR_X86_32 1, 3\n        movq            m3, [block3q+offsetq]\n        movq            m4, [block1q+offsetq]\n        mova            m1, [obmcq]\n        mova            m2, [obmcq+16*8]\n%if ARCH_X86_64\n        mov           dstq, [linesq]\n%endif\n        LOAD_BLOCKPOINTER_FOR_X86_32 0, 2\n        movq            m5, [block2q+offsetq]\n        movq            m6, [block0q+offsetq]\n        punpcklbw       m3, m4\n%if ARCH_X86_32\n        mov           dstq, [linesq]\n        add           dstq, src_xm\n%endif\n        SBUTTERFLY      bw, 1, 2, 4\n%if ARCH_X86_64\n        movu            m4, [dstq+src_xq]\n%else\n        movu            m4, [dstq]\n%endif\n        pmaddubsw       m3, m1\n        add          obmcq, 16\n        punpcklbw       m5, m6\n        pmaddubsw       m5, m2\n        add         linesq, gprsize\n        paddw           m3, m5\n        psubw           m4, m0         ; + 1<<(FRAC_BITS-1)\n        psrlw           m3, LOG2_OBMC_MAX - FRAC_BITS\n        paddw           m3, m4\n        psraw           m3, FRAC_BITS\n        packuswb        m3, m3\n        movq [dst8q+offsetq], m3\n        add        offsetq, src_strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/snowdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/snowdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/snowdsp.asm:4", "text": "%endif\n        SBUTTERFLY      bw, 1, 2, 4\n%if ARCH_X86_64\n        movu            m4, [dstq+src_xq]\n%else\n        movu            m4, [dstq]\n%endif\n        pmaddubsw       m3, m1\n        add          obmcq, 16\n        punpcklbw       m5, m6\n        pmaddubsw       m5, m2\n        add         linesq, gprsize\n        paddw           m3, m5\n        psubw           m4, m0         ; + 1<<(FRAC_BITS-1)\n        psrlw           m3, LOG2_OBMC_MAX - FRAC_BITS\n        paddw           m3, m4\n        psraw           m3, FRAC_BITS\n        packuswb        m3, m3\n        movq [dst8q+offsetq], m3\n        add        offsetq, src_strideq\n        dec           b_hd\n        jnz         .loop8\n    RET\n    .w16:\n    ADD_YBLOCK_PROLOGUE 16\n    .loop16:\n        LOAD_BLOCKPOINTER_FOR_X86_32 2, 3\n        mova            m3, [block3q+offsetq]\n        mova            m4, [block2q+offsetq]\n        mova            m1, [obmcq]\n        mova            m2, [obmcq+16]\n        LOAD_BLOCKPOINTER_FOR_X86_32 0, 1\n        SBUTTERFLY      bw, 3, 4, 7\n        mova            m5, [block1q+offsetq]\n        mova            m6, [block0q+offsetq]\n        SBUTTERFLY      bw, 1, 2, 7\n        mov           dstq, [linesq]\n        pmaddubsw       m3, m1\n        mova            m1, [obmcq+32*16]\n        pmaddubsw       m4, m2\n        mova            m2, [obmcq+32*16+16]\n%if ARCH_X86_32\n        add           dstq, src_xm\n%endif\n        SBUTTERFLY      bw, 5, 6, 7\n        SBUTTERFLY      bw, 1, 2, 7\n        pmaddubsw       m5, m1\n        add         linesq, gprsize\n        pmaddubsw       m6, m2\n        paddw           m3, m5\n        paddw           m4, m6\n        psrlw           m3, LOG2_OBMC_MAX - FRAC_BITS\n        psrlw           m4, LOG2_OBMC_MAX - FRAC_BITS\n        add          obmcq, 32\n%if ARCH_X86_32\n        paddw           m3, [dstq]\n        paddw           m4, [dstq+16]\n%else\n        paddw           m3, [dstq+src_xq]\n        paddw           m4, [dstq+src_xq+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/snowdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/snowdsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/snowdsp.asm:5", "text": "mova            m2, [obmcq+32*16+16]\n%if ARCH_X86_32\n        add           dstq, src_xm\n%endif\n        SBUTTERFLY      bw, 5, 6, 7\n        SBUTTERFLY      bw, 1, 2, 7\n        pmaddubsw       m5, m1\n        add         linesq, gprsize\n        pmaddubsw       m6, m2\n        paddw           m3, m5\n        paddw           m4, m6\n        psrlw           m3, LOG2_OBMC_MAX - FRAC_BITS\n        psrlw           m4, LOG2_OBMC_MAX - FRAC_BITS\n        add          obmcq, 32\n%if ARCH_X86_32\n        paddw           m3, [dstq]\n        paddw           m4, [dstq+16]\n%else\n        paddw           m3, [dstq+src_xq]\n        paddw           m4, [dstq+src_xq+16]\n%endif\n        psubw           m3, m0         ; + 1<<(FRAC_BITS-1)\n        psubw           m4, m0         ; + 1<<(FRAC_BITS-1)\n        psraw           m3, FRAC_BITS\n        psraw           m4, FRAC_BITS\n        packuswb        m3, m4\n        movu [dst8q+offsetq], m3\n        add        offsetq, src_strideq\n        dec           b_hd\n        jnz        .loop16\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/snowdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/snowdsp.asm", "line_start": 161, "line_end": 191}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/svq1enc.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized SVQ1 encoder functions\n;* Copyright (c) 2007 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal ssd_int8_vs_int16, 3, 3, 3, pix1, pix2, size\n    pxor m0, m0\n.loop:\n    sub       sizeq, 8\n    movq      m1, [pix1q + sizeq]\n    mova      m2, [pix2q + sizeq*2]\n    punpcklbw m1, m1\n    psraw     m1, 8\n    psubw     m2, m1\n    pmaddwd   m2, m2\n    paddd     m0, m2\n    jg .loop\n    HADDD     m0, m1\n    movd     eax, m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/svq1enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/svq1enc.asm", "line_start": 1, "line_end": 41}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/synth_filter.asm:1", "text": ";******************************************************************************\n;* SSE-optimized functions for the DCA decoder\n;* Copyright (C) 2012-2014 Christophe Gisquet <christophe.gisquet@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro SETZERO 1\n%if cpuflag(sse2) && notcpuflag(avx)\n    pxor          %1, %1\n%else\n    xorps         %1, %1, %1\n%endif\n%endmacro\n\n%macro SHUF 3\n%if cpuflag(avx)\n    mova          %3, [%2 - 16]\n    vperm2f128    %1, %3, %3, 1\n    vshufps       %1, %1, %1, q0123\n%elif cpuflag(sse2)\n    pshufd        %1, [%2], q0123\n%else\n    mova          %1, [%2]\n    shufps        %1, %1, q0123\n%endif\n%endmacro\n\n%macro INNER_LOOP   1\n    ; reading backwards:  ptr1 = synth_buf + j + i; ptr2 = synth_buf + j - i\n    ;~ a += window[i + j]      * (-synth_buf[15 - i + j])\n    ;~ b += window[i + j + 16] * (synth_buf[i + j])\n    SHUF          m5,  ptr2 + j + (15 - 3) * 4, m6\n    mova          m6, [ptr1 + j]\n%if ARCH_X86_64\n    SHUF         m11,  ptr2 + j + (15 - 3) * 4 - mmsize, m12\n    mova         m12, [ptr1 + j + mmsize]\n%endif\n%if cpuflag(fma3)\n    fmaddps       m2, m6,  [win + %1 + j + 16 * 4], m2\n    fnmaddps      m1, m5,  [win + %1 + j], m1\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/synth_filter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/synth_filter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/synth_filter.asm:2", "text": "%else\n    mova          %1, [%2]\n    shufps        %1, %1, q0123\n%endif\n%endmacro\n\n%macro INNER_LOOP   1\n    ; reading backwards:  ptr1 = synth_buf + j + i; ptr2 = synth_buf + j - i\n    ;~ a += window[i + j]      * (-synth_buf[15 - i + j])\n    ;~ b += window[i + j + 16] * (synth_buf[i + j])\n    SHUF          m5,  ptr2 + j + (15 - 3) * 4, m6\n    mova          m6, [ptr1 + j]\n%if ARCH_X86_64\n    SHUF         m11,  ptr2 + j + (15 - 3) * 4 - mmsize, m12\n    mova         m12, [ptr1 + j + mmsize]\n%endif\n%if cpuflag(fma3)\n    fmaddps       m2, m6,  [win + %1 + j + 16 * 4], m2\n    fnmaddps      m1, m5,  [win + %1 + j], m1\n%if ARCH_X86_64\n    fmaddps       m8, m12, [win + %1 + j + mmsize + 16 * 4], m8\n    fnmaddps      m7, m11, [win + %1 + j + mmsize], m7\n%endif\n%else ; non-FMA\n    mulps         m6, m6,  [win + %1 + j + 16 * 4]\n    mulps         m5, m5,  [win + %1 + j]\n%if ARCH_X86_64\n    mulps        m12, m12, [win + %1 + j + mmsize + 16 * 4]\n    mulps        m11, m11, [win + %1 + j + mmsize]\n%endif\n    addps         m2, m2, m6\n    subps         m1, m1, m5\n%if ARCH_X86_64\n    addps         m8, m8, m12\n    subps         m7, m7, m11\n%endif\n%endif ; cpuflag(fma3)\n    ;~ c += window[i + j + 32] * (synth_buf[16 + i + j])\n    ;~ d += window[i + j + 48] * (synth_buf[31 - i + j])\n    SHUF          m6,  ptr2 + j + (31 - 3) * 4, m5\n    mova          m5, [ptr1 + j + 16 * 4]\n%if ARCH_X86_64\n    SHUF         m12,  ptr2 + j + (31 - 3) * 4 - mmsize, m11\n    mova         m11, [ptr1 + j + mmsize + 16 * 4]\n%endif\n%if cpuflag(fma3)\n    fmaddps       m3, m5,  [win + %1 + j + 32 * 4], m3\n    fmaddps       m4, m6,  [win + %1 + j + 48 * 4], m4\n%if ARCH_X86_64\n    fmaddps       m9, m11, [win + %1 + j + mmsize + 32 * 4], m9\n    fmaddps      m10, m12, [win + %1 + j + mmsize + 48 * 4], m10\n%endif\n%else ; non-FMA\n    mulps         m5, m5,  [win + %1 + j + 32 * 4]\n    mulps         m6, m6,  [win + %1 + j + 48 * 4]\n%if ARCH_X86_64\n    mulps        m11, m11, [win + %1 + j + mmsize + 32 * 4]\n    mulps        m12, m12, [win + %1 + j + mmsize + 48 * 4]\n%endif\n    addps         m3, m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/synth_filter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/synth_filter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/synth_filter.asm:3", "text": "mova          m5, [ptr1 + j + 16 * 4]\n%if ARCH_X86_64\n    SHUF         m12,  ptr2 + j + (31 - 3) * 4 - mmsize, m11\n    mova         m11, [ptr1 + j + mmsize + 16 * 4]\n%endif\n%if cpuflag(fma3)\n    fmaddps       m3, m5,  [win + %1 + j + 32 * 4], m3\n    fmaddps       m4, m6,  [win + %1 + j + 48 * 4], m4\n%if ARCH_X86_64\n    fmaddps       m9, m11, [win + %1 + j + mmsize + 32 * 4], m9\n    fmaddps      m10, m12, [win + %1 + j + mmsize + 48 * 4], m10\n%endif\n%else ; non-FMA\n    mulps         m5, m5,  [win + %1 + j + 32 * 4]\n    mulps         m6, m6,  [win + %1 + j + 48 * 4]\n%if ARCH_X86_64\n    mulps        m11, m11, [win + %1 + j + mmsize + 32 * 4]\n    mulps        m12, m12, [win + %1 + j + mmsize + 48 * 4]\n%endif\n    addps         m3, m3, m5\n    addps         m4, m4, m6\n%if ARCH_X86_64\n    addps         m9, m9, m11\n    addps        m10, m10, m12\n%endif\n%endif ; cpuflag(fma3)\n    sub            j, 64 * 4\n%endmacro\n\n; void ff_synth_filter_inner_<opt>(float *synth_buf, float synth_buf2[32],\n;                                  const float window[512], float out[32],\n;                                  intptr_t offset, float scale)\n%macro SYNTH_FILTER 0\ncglobal synth_filter_inner, 0, 6 + 4 * ARCH_X86_64, 7 + 6 * ARCH_X86_64, \\\n                              synth_buf, synth_buf2, window, out, off, scale\n%define scale m0\n%if ARCH_X86_32 || WIN64\n%if notcpuflag(avx)\n    movd       scale, scalem\n    SPLATD        m0\n%else\n    VBROADCASTSS  m0, scalem\n%endif\n; Make sure offset is in a register and not on the stack\n%define OFFQ  r4q\n%else\n    SPLATD      xmm0\n%if cpuflag(avx)\n    vinsertf128   m0, m0, xmm0, 1\n%endif\n%define OFFQ  offq\n%endif\n    ; prepare inner counter limit 1\n    mov          r5q, 480\n    sub          r5q, offmp\n    and          r5q, -64\n    shl          r5q, 2\n%if ARCH_X86_32 || notcpuflag(avx)\n    mov         OFFQ, r5q\n%define i        r5q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/synth_filter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/synth_filter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/synth_filter.asm:4", "text": "%else\n    VBROADCASTSS  m0, scalem\n%endif\n; Make sure offset is in a register and not on the stack\n%define OFFQ  r4q\n%else\n    SPLATD      xmm0\n%if cpuflag(avx)\n    vinsertf128   m0, m0, xmm0, 1\n%endif\n%define OFFQ  offq\n%endif\n    ; prepare inner counter limit 1\n    mov          r5q, 480\n    sub          r5q, offmp\n    and          r5q, -64\n    shl          r5q, 2\n%if ARCH_X86_32 || notcpuflag(avx)\n    mov         OFFQ, r5q\n%define i        r5q\n    mov            i, 16 * 4 - (ARCH_X86_64 + 1) * mmsize  ; main loop counter\n%else\n%define i 0\n%define OFFQ  r5q\n%endif\n\n%define buf2     synth_buf2q\n%if ARCH_X86_32\n    mov         buf2, synth_buf2mp\n%endif\n.mainloop:\n    ; m1 = a  m2 = b  m3 = c  m4 = d\n    SETZERO       m3\n    SETZERO       m4\n    mova          m1, [buf2 + i]\n    mova          m2, [buf2 + i + 16 * 4]\n%if ARCH_X86_32\n%define ptr1     r0q\n%define ptr2     r1q\n%define win      r2q\n%define j        r3q\n    mov          win, windowm\n    mov         ptr1, synth_bufm\n%if ARCH_X86_32 || notcpuflag(avx)\n    add          win, i\n    add         ptr1, i\n%endif\n%else ; ARCH_X86_64\n%define ptr1     r6q\n%define ptr2     r7q ; must be loaded\n%define win      r8q\n%define j        r9q\n    SETZERO       m9\n    SETZERO      m10\n    mova          m7, [buf2 + i + mmsize]\n    mova          m8, [buf2 + i + mmsize + 16 * 4]\n    lea          win, [windowq + i]\n    lea         ptr1, [synth_bufq + i]\n%endif\n    mov         ptr2, synth_bufmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/synth_filter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/synth_filter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/synth_filter.asm:5", "text": "%define j        r3q\n    mov          win, windowm\n    mov         ptr1, synth_bufm\n%if ARCH_X86_32 || notcpuflag(avx)\n    add          win, i\n    add         ptr1, i\n%endif\n%else ; ARCH_X86_64\n%define ptr1     r6q\n%define ptr2     r7q ; must be loaded\n%define win      r8q\n%define j        r9q\n    SETZERO       m9\n    SETZERO      m10\n    mova          m7, [buf2 + i + mmsize]\n    mova          m8, [buf2 + i + mmsize + 16 * 4]\n    lea          win, [windowq + i]\n    lea         ptr1, [synth_bufq + i]\n%endif\n    mov         ptr2, synth_bufmp\n    ; prepare the inner loop counter\n    mov            j, OFFQ\n%if ARCH_X86_32 || notcpuflag(avx)\n    sub         ptr2, i\n%endif\n.loop1:\n    INNER_LOOP  0\n    jge       .loop1\n\n    mov            j, 448 * 4\n    sub            j, OFFQ\n    jz          .end\n    sub         ptr1, j\n    sub         ptr2, j\n    add          win, OFFQ ; now at j-64, so define OFFSET\n    sub            j, 64 * 4\n.loop2:\n    INNER_LOOP  64 * 4\n    jge       .loop2\n\n.end:\n%if ARCH_X86_32\n    mov         buf2, synth_buf2m ; needed for next iteration anyway\n    mov         outq, outmp       ; j, which will be set again during it\n%endif\n    ;~ out[i]      = a * scale;\n    ;~ out[i + 16] = b * scale;\n    mulps         m1, m1, scale\n    mulps         m2, m2, scale\n%if ARCH_X86_64\n    mulps         m7, m7, scale\n    mulps         m8, m8, scale\n%endif\n    ;~ synth_buf2[i]      = c;\n    ;~ synth_buf2[i + 16] = d;\n    mova   [buf2 + i +  0 * 4], m3\n    mova   [buf2 + i + 16 * 4], m4\n%if ARCH_X86_64\n    mova   [buf2 + i +  0 * 4 + mmsize], m9\n    mova   [buf2 + i + 16 * 4 + mmsize], m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/synth_filter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/synth_filter.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/synth_filter.asm:6", "text": ".end:\n%if ARCH_X86_32\n    mov         buf2, synth_buf2m ; needed for next iteration anyway\n    mov         outq, outmp       ; j, which will be set again during it\n%endif\n    ;~ out[i]      = a * scale;\n    ;~ out[i + 16] = b * scale;\n    mulps         m1, m1, scale\n    mulps         m2, m2, scale\n%if ARCH_X86_64\n    mulps         m7, m7, scale\n    mulps         m8, m8, scale\n%endif\n    ;~ synth_buf2[i]      = c;\n    ;~ synth_buf2[i + 16] = d;\n    mova   [buf2 + i +  0 * 4], m3\n    mova   [buf2 + i + 16 * 4], m4\n%if ARCH_X86_64\n    mova   [buf2 + i +  0 * 4 + mmsize], m9\n    mova   [buf2 + i + 16 * 4 + mmsize], m10\n%endif\n    ;~ out[i]      = a;\n    ;~ out[i + 16] = a;\n    mova   [outq + i +  0 * 4], m1\n    mova   [outq + i + 16 * 4], m2\n%if ARCH_X86_64\n    mova   [outq + i +  0 * 4 + mmsize], m7\n    mova   [outq + i + 16 * 4 + mmsize], m8\n%endif\n%if ARCH_X86_32 || notcpuflag(avx)\n    sub            i, (ARCH_X86_64 + 1) * mmsize\n    jge    .mainloop\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nSYNTH_FILTER\nINIT_YMM avx\nSYNTH_FILTER\nINIT_YMM fma3\nSYNTH_FILTER", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/synth_filter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/synth_filter.asm", "line_start": 201, "line_end": 242}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/takdsp.asm:1", "text": ";******************************************************************************\n;* TAK DSP SIMD optimizations\n;*\n;* Copyright (C) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npd_128: times 4 dd 128\n\nSECTION .text\n\n%macro TAK_DECORRELATE 0\ncglobal tak_decorrelate_ls, 3, 3, 2, p1, p2, length\n    shl                     lengthd, 2\n    add                         p1q, lengthq\n    add                         p2q, lengthq\n    neg                     lengthq\n.loop:\n    mova                         m0, [p1q+lengthq+mmsize*0]\n    mova                         m1, [p1q+lengthq+mmsize*1]\n    paddd                        m0, [p2q+lengthq+mmsize*0]\n    paddd                        m1, [p2q+lengthq+mmsize*1]\n    mova     [p2q+lengthq+mmsize*0], m0\n    mova     [p2q+lengthq+mmsize*1], m1\n    add                     lengthq, mmsize*2\n    jl .loop\n    RET\n\ncglobal tak_decorrelate_sr, 3, 3, 2, p1, p2, length\n    shl                     lengthd, 2\n    add                         p1q, lengthq\n    add                         p2q, lengthq\n    neg                     lengthq\n\n.loop:\n    mova                         m0, [p2q+lengthq+mmsize*0]\n    mova                         m1, [p2q+lengthq+mmsize*1]\n    psubd                        m0, [p1q+lengthq+mmsize*0]\n    psubd                        m1, [p1q+lengthq+mmsize*1]\n    mova     [p1q+lengthq+mmsize*0], m0\n    mova     [p1q+lengthq+mmsize*1], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/takdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/takdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/takdsp.asm:2", "text": "paddd                        m1, [p2q+lengthq+mmsize*1]\n    mova     [p2q+lengthq+mmsize*0], m0\n    mova     [p2q+lengthq+mmsize*1], m1\n    add                     lengthq, mmsize*2\n    jl .loop\n    RET\n\ncglobal tak_decorrelate_sr, 3, 3, 2, p1, p2, length\n    shl                     lengthd, 2\n    add                         p1q, lengthq\n    add                         p2q, lengthq\n    neg                     lengthq\n\n.loop:\n    mova                         m0, [p2q+lengthq+mmsize*0]\n    mova                         m1, [p2q+lengthq+mmsize*1]\n    psubd                        m0, [p1q+lengthq+mmsize*0]\n    psubd                        m1, [p1q+lengthq+mmsize*1]\n    mova     [p1q+lengthq+mmsize*0], m0\n    mova     [p1q+lengthq+mmsize*1], m1\n    add                     lengthq, mmsize*2\n    jl .loop\n    RET\n\ncglobal tak_decorrelate_sm, 3, 3, 6, p1, p2, length\n    shl                     lengthd, 2\n    add                         p1q, lengthq\n    add                         p2q, lengthq\n    neg                     lengthq\n\n.loop:\n    mova                         m0, [p1q+lengthq]\n    mova                         m1, [p2q+lengthq]\n    mova                         m3, [p1q+lengthq+mmsize]\n    mova                         m4, [p2q+lengthq+mmsize]\n    psrad                        m2, m1, 1\n    psrad                        m5, m4, 1\n    psubd                        m0, m2\n    psubd                        m3, m5\n    paddd                        m1, m0\n    paddd                        m4, m3\n    mova              [p1q+lengthq], m0\n    mova              [p2q+lengthq], m1\n    mova       [p1q+lengthq+mmsize], m3\n    mova       [p2q+lengthq+mmsize], m4\n    add                     lengthq, mmsize*2\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nTAK_DECORRELATE\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nTAK_DECORRELATE\n%endif\n\n%macro TAK_DECORRELATE_SF 0\ncglobal tak_decorrelate_sf, 3, 3, 5, p1, p2, length, dshift, dfactor\n    shl             lengthd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/takdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/takdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/takdsp.asm:3", "text": "paddd                        m4, m3\n    mova              [p1q+lengthq], m0\n    mova              [p2q+lengthq], m1\n    mova       [p1q+lengthq+mmsize], m3\n    mova       [p2q+lengthq+mmsize], m4\n    add                     lengthq, mmsize*2\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nTAK_DECORRELATE\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nTAK_DECORRELATE\n%endif\n\n%macro TAK_DECORRELATE_SF 0\ncglobal tak_decorrelate_sf, 3, 3, 5, p1, p2, length, dshift, dfactor\n    shl             lengthd, 2\n    add                 p1q, lengthq\n    add                 p2q, lengthq\n    neg             lengthq\n\n    movd                xm2, dshiftm\n%if UNIX64\n    movd                xm3, dfactorm\n    VPBROADCASTD         m3, xm3\n%else\n    VPBROADCASTD         m3, dfactorm\n%endif\n    VBROADCASTI128       m4, [pd_128]\n\n.loop:\n    mova                 m1, [p2q+lengthq]\n    psrad                m1, xm2\n    pmulld               m1, m3\n    paddd                m1, m4\n    psrad                m1, 8\n    pslld                m1, xm2\n    psubd                m1, [p1q+lengthq]\n    mova      [p1q+lengthq], m1\n    add             lengthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse4\nTAK_DECORRELATE_SF\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nTAK_DECORRELATE_SF\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/takdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/takdsp.asm", "line_start": 81, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/takdsp.asm:4", "text": "psubd                m1, [p1q+lengthq]\n    mova      [p1q+lengthq], m1\n    add             lengthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse4\nTAK_DECORRELATE_SF\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nTAK_DECORRELATE_SF\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/takdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/takdsp.asm", "line_start": 121, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ttadsp.asm:1", "text": ";******************************************************************************\n;* TTA DSP SIMD optimizations\n;*\n;* Copyright (C) 2014 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npd_n0113: dd ~0, ~1, ~1, ~3\npd_1224:  dd 1, 2, 2, 4\n\nSECTION .text\n\n%macro TTA_FILTER 2\nINIT_XMM %1\ncglobal tta_filter_process, 5,5,%2, qm, dx, dl, error, in, shift, round\n    mova       m2, [qmq       ]\n    mova       m3, [qmq + 0x10]\n    mova       m4, [dxq       ]\n    mova       m5, [dxq + 0x10]\n\n    movd       m6, [errorq]         ; if (filter->error < 0) {\n    SPLATD     m6                   ;     for (int i = 0; i < 8; i++)\n    psignd     m0, m4, m6           ;         filter->qm[i] -= filter->dx[i];\n    psignd     m1, m5, m6           ; } else if (filter->error > 0) {\n    paddd      m2, m0               ;     for (int i = 0; i < 8; i++)\n    paddd      m3, m1               ;         filter->qm[i] += filter->dx[i];\n    mova       [qmq       ], m2     ; }\n    mova       [qmq + 0x10], m3     ;\n\n    mova       m0, [dlq       ]\n    mova       m1, [dlq + 0x10]\n\n%if cpuflag(sse4)\n    pmulld     m2, m0\n    pmulld     m3, m1\n%else\n    pshufd     m6, m0, 0xb1\n    pshufd     m7, m2, 0xb1\n    pmuludq    m6, m7\n    pshufd     m6, m6, 0xd8\n    pmuludq    m2, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ttadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ttadsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ttadsp.asm:2", "text": "SPLATD     m6                   ;     for (int i = 0; i < 8; i++)\n    psignd     m0, m4, m6           ;         filter->qm[i] -= filter->dx[i];\n    psignd     m1, m5, m6           ; } else if (filter->error > 0) {\n    paddd      m2, m0               ;     for (int i = 0; i < 8; i++)\n    paddd      m3, m1               ;         filter->qm[i] += filter->dx[i];\n    mova       [qmq       ], m2     ; }\n    mova       [qmq + 0x10], m3     ;\n\n    mova       m0, [dlq       ]\n    mova       m1, [dlq + 0x10]\n\n%if cpuflag(sse4)\n    pmulld     m2, m0\n    pmulld     m3, m1\n%else\n    pshufd     m6, m0, 0xb1\n    pshufd     m7, m2, 0xb1\n    pmuludq    m6, m7\n    pshufd     m6, m6, 0xd8\n    pmuludq    m2, m0\n    pshufd     m2, m2, 0xd8\n    punpckldq  m2, m6\n\n    pshufd     m6, m1, 0xb1\n    pshufd     m7, m3, 0xb1\n    pmuludq    m6, m7\n    pshufd     m6, m6, 0xd8\n    pmuludq    m3, m1\n    pshufd     m3, m3, 0xd8\n    punpckldq  m3, m6\n%endif\n    ; Using horizontal add (phaddd) seems to be slower than shuffling stuff around\n    paddd      m2, m3               ; int sum = filter->round +\n                                    ;           filter->dl[0] * filter->qm[0] +\n    pshufd     m3, m2, 0xe          ;           filter->dl[1] * filter->qm[1] +\n    paddd      m2, m3               ;           filter->dl[2] * filter->qm[2] +\n                                    ;           filter->dl[3] * filter->qm[3] +\n    movd       m6, roundm           ;           filter->dl[4] * filter->qm[4] +\n    paddd      m6, m2               ;           filter->dl[5] * filter->qm[5] +\n    pshufd     m2, m2, 0x1          ;           filter->dl[6] * filter->qm[6] +\n    paddd      m6, m2               ;           filter->dl[7] * filter->qm[7];\n\n    palignr    m5, m4, 4            ; filter->dx[0] = filter->dx[1]; filter->dx[1] = filter->dx[2];\n                                    ; filter->dx[2] = filter->dx[3]; filter->dx[3] = filter->dx[4];\n\n    palignr    m2, m1, m0, 4        ; filter->dl[0] = filter->dl[1]; filter->dl[1] = filter->dl[2];\n                                    ; filter->dl[2] = filter->dl[3]; filter->dl[3] = filter->dl[4];\n\n    psrad      m4, m1, 30           ; filter->dx[4] = ((filter->dl[4] >> 30) | 1);\n    por        m4, [pd_1224 ]       ; filter->dx[5] = ((filter->dl[5] >> 30) | 2) & ~1;\n    pand       m4, [pd_n0113]       ; filter->dx[6] = ((filter->dl[6] >> 30) | 2) & ~1;\n                                    ; filter->dx[7] = ((filter->dl[7] >> 30) | 4) & ~3;\n\n    mova       [dlq       ], m2\n    mova       [dxq       ], m5\n    mova       [dxq + 0x10], m4\n    movd       m0, [inq]            ; filter->error = *in;\n    movd       [errorq], m0         ;\n\n    movd       m2, shiftm           ; *in += (sum >> filter->shift);", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ttadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ttadsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ttadsp.asm:3", "text": "paddd      m6, m2               ;           filter->dl[7] * filter->qm[7];\n\n    palignr    m5, m4, 4            ; filter->dx[0] = filter->dx[1]; filter->dx[1] = filter->dx[2];\n                                    ; filter->dx[2] = filter->dx[3]; filter->dx[3] = filter->dx[4];\n\n    palignr    m2, m1, m0, 4        ; filter->dl[0] = filter->dl[1]; filter->dl[1] = filter->dl[2];\n                                    ; filter->dl[2] = filter->dl[3]; filter->dl[3] = filter->dl[4];\n\n    psrad      m4, m1, 30           ; filter->dx[4] = ((filter->dl[4] >> 30) | 1);\n    por        m4, [pd_1224 ]       ; filter->dx[5] = ((filter->dl[5] >> 30) | 2) & ~1;\n    pand       m4, [pd_n0113]       ; filter->dx[6] = ((filter->dl[6] >> 30) | 2) & ~1;\n                                    ; filter->dx[7] = ((filter->dl[7] >> 30) | 4) & ~3;\n\n    mova       [dlq       ], m2\n    mova       [dxq       ], m5\n    mova       [dxq + 0x10], m4\n    movd       m0, [inq]            ; filter->error = *in;\n    movd       [errorq], m0         ;\n\n    movd       m2, shiftm           ; *in += (sum >> filter->shift);\n    psrad      m6, m2               ;\n    paddd      m0, m6               ;\n    movd       [inq], m0            ;\n\n    psrldq     m1, 4                ;\n    pslldq     m0, 12               ; filter->dl[4] = -filter->dl[5];\n    pshufd     m0, m0, 0xf0         ; filter->dl[5] = -filter->dl[6];\n    psubd      m0, m1               ; filter->dl[6] = *in - filter->dl[7];\n    psrldq     m1, m0, 4            ; filter->dl[7] = *in;\n    pshufd     m1, m1, 0xf4         ; filter->dl[5] += filter->dl[6];\n    paddd      m0, m1               ; filter->dl[4] += filter->dl[5];\n    psrldq     m1, 4                ;\n    paddd      m0, m1               ;\n    mova       [dlq + 0x10], m0     ;\n    RET\n%endmacro\n\nTTA_FILTER ssse3, 8\nTTA_FILTER sse4,  7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ttadsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ttadsp.asm", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ttaencdsp.asm:1", "text": ";******************************************************************************\n;* TTA Encoder DSP SIMD optimizations\n;*\n;* Copyright (C) 2014-2016 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npd_n0113: dd ~0, ~1, ~1, ~3\npd_1224:  dd 1, 2, 2, 4\n\nSECTION .text\n\n%macro TTAENC_FILTER 2\nINIT_XMM %1\ncglobal ttaenc_filter_process, 5,5,%2, qm, dx, dl, error, in, shift, round\n    mova       m2, [qmq       ]\n    mova       m3, [qmq + 0x10]\n    mova       m4, [dxq       ]\n    mova       m5, [dxq + 0x10]\n\n    movd       m6, [errorq]         ; if (filter->error < 0) {\n    SPLATD     m6                   ;     for (int i = 0; i < 8; i++)\n    psignd     m0, m4, m6           ;         filter->qm[i] -= filter->dx[i];\n    psignd     m1, m5, m6           ; } else if (filter->error > 0) {\n    paddd      m2, m0               ;     for (int i = 0; i < 8; i++)\n    paddd      m3, m1               ;         filter->qm[i] += filter->dx[i];\n    mova       [qmq       ], m2     ; }\n    mova       [qmq + 0x10], m3     ;\n\n    mova       m0, [dlq       ]\n    mova       m1, [dlq + 0x10]\n\n%if cpuflag(sse4)\n    pmulld     m2, m0\n    pmulld     m3, m1\n%else\n    pshufd     m6, m0, 0xb1\n    pshufd     m7, m2, 0xb1\n    pmuludq    m6, m7\n    pshufd     m6, m6, 0xd8\n    pmuludq    m2, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ttaencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ttaencdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ttaencdsp.asm:2", "text": "SPLATD     m6                   ;     for (int i = 0; i < 8; i++)\n    psignd     m0, m4, m6           ;         filter->qm[i] -= filter->dx[i];\n    psignd     m1, m5, m6           ; } else if (filter->error > 0) {\n    paddd      m2, m0               ;     for (int i = 0; i < 8; i++)\n    paddd      m3, m1               ;         filter->qm[i] += filter->dx[i];\n    mova       [qmq       ], m2     ; }\n    mova       [qmq + 0x10], m3     ;\n\n    mova       m0, [dlq       ]\n    mova       m1, [dlq + 0x10]\n\n%if cpuflag(sse4)\n    pmulld     m2, m0\n    pmulld     m3, m1\n%else\n    pshufd     m6, m0, 0xb1\n    pshufd     m7, m2, 0xb1\n    pmuludq    m6, m7\n    pshufd     m6, m6, 0xd8\n    pmuludq    m2, m0\n    pshufd     m2, m2, 0xd8\n    punpckldq  m2, m6\n\n    pshufd     m6, m1, 0xb1\n    pshufd     m7, m3, 0xb1\n    pmuludq    m6, m7\n    pshufd     m6, m6, 0xd8\n    pmuludq    m3, m1\n    pshufd     m3, m3, 0xd8\n    punpckldq  m3, m6\n%endif\n    ; Using horizontal add (phaddd) seems to be slower than shuffling stuff around\n    paddd      m2, m3               ; int sum = filter->round +\n                                    ;           filter->dl[0] * filter->qm[0] +\n    pshufd     m3, m2, 0xe          ;           filter->dl[1] * filter->qm[1] +\n    paddd      m2, m3               ;           filter->dl[2] * filter->qm[2] +\n                                    ;           filter->dl[3] * filter->qm[3] +\n    movd       m6, roundm           ;           filter->dl[4] * filter->qm[4] +\n    paddd      m6, m2               ;           filter->dl[5] * filter->qm[5] +\n    pshufd     m2, m2, 0x1          ;           filter->dl[6] * filter->qm[6] +\n    paddd      m6, m2               ;           filter->dl[7] * filter->qm[7];\n\n    palignr    m5, m4, 4            ; filter->dx[0] = filter->dx[1]; filter->dx[1] = filter->dx[2];\n                                    ; filter->dx[2] = filter->dx[3]; filter->dx[3] = filter->dx[4];\n\n    palignr    m2, m1, m0, 4        ; filter->dl[0] = filter->dl[1]; filter->dl[1] = filter->dl[2];\n                                    ; filter->dl[2] = filter->dl[3]; filter->dl[3] = filter->dl[4];\n\n    psrad      m4, m1, 30           ; filter->dx[4] = ((filter->dl[4] >> 30) | 1);\n    por        m4, [pd_1224 ]       ; filter->dx[5] = ((filter->dl[5] >> 30) | 2) & ~1;\n    pand       m4, [pd_n0113]       ; filter->dx[6] = ((filter->dl[6] >> 30) | 2) & ~1;\n                                    ; filter->dx[7] = ((filter->dl[7] >> 30) | 4) & ~3;\n\n    mova       [dlq       ], m2\n    mova       [dxq       ], m5\n    mova       [dxq + 0x10], m4\n\n    movd       m2, shiftm           ;\n    movd       m0, [inq]            ;\n    psrad      m6, m2               ;", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ttaencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ttaencdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/ttaencdsp.asm:3", "text": "paddd      m6, m2               ;           filter->dl[7] * filter->qm[7];\n\n    palignr    m5, m4, 4            ; filter->dx[0] = filter->dx[1]; filter->dx[1] = filter->dx[2];\n                                    ; filter->dx[2] = filter->dx[3]; filter->dx[3] = filter->dx[4];\n\n    palignr    m2, m1, m0, 4        ; filter->dl[0] = filter->dl[1]; filter->dl[1] = filter->dl[2];\n                                    ; filter->dl[2] = filter->dl[3]; filter->dl[3] = filter->dl[4];\n\n    psrad      m4, m1, 30           ; filter->dx[4] = ((filter->dl[4] >> 30) | 1);\n    por        m4, [pd_1224 ]       ; filter->dx[5] = ((filter->dl[5] >> 30) | 2) & ~1;\n    pand       m4, [pd_n0113]       ; filter->dx[6] = ((filter->dl[6] >> 30) | 2) & ~1;\n                                    ; filter->dx[7] = ((filter->dl[7] >> 30) | 4) & ~3;\n\n    mova       [dlq       ], m2\n    mova       [dxq       ], m5\n    mova       [dxq + 0x10], m4\n\n    movd       m2, shiftm           ;\n    movd       m0, [inq]            ;\n    psrad      m6, m2               ;\n    psubd      m3, m0, m6           ;\n    movd       [inq], m3            ; *in -= (sum >> filter->shift);\n    movd       [errorq], m3         ; filter->error = *in;\n\n    psrldq     m1, 4                ;\n    pslldq     m0, 12               ; filter->dl[4] = -filter->dl[5];\n    pshufd     m0, m0, 0xf0         ; filter->dl[5] = -filter->dl[6];\n    psubd      m0, m1               ; filter->dl[6] = *in - filter->dl[7];\n    psrldq     m1, m0, 4            ; filter->dl[7] = *in;\n    pshufd     m1, m1, 0xf4         ; filter->dl[5] += filter->dl[6];\n    paddd      m0, m1               ; filter->dl[4] += filter->dl[5];\n    psrldq     m1, 4                ;\n    paddd      m0, m1               ;\n    mova       [dlq + 0x10], m0     ;\n    RET\n%endmacro\n\nTTAENC_FILTER ssse3, 8\nTTAENC_FILTER sse4,  7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/ttaencdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/ttaencdsp.asm", "line_start": 81, "line_end": 119}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/utvideodsp.asm:1", "text": ";******************************************************************************\n;* SIMD-optimized UTVideo functions\n;* Copyright (c) 2017 Paul B Mahol\n;* Copyright (c) 2017 Jokyo Images\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_80\ncextern pw_512\ncextern pw_1023\n\nSECTION .text\n\n;-------------------------------------------------------------------------------------------\n; void restore_rgb_planes(uint8_t *src_r, uint8_t *src_g, uint8_t *src_b,\n;                         ptrdiff_t linesize_r, ptrdiff_t linesize_g, ptrdiff_t linesize_b,\n;                         int width, int height)\n;-------------------------------------------------------------------------------------------\n%macro RESTORE_RGB_PLANES 0\ncglobal restore_rgb_planes, 7 + ARCH_X86_64, 7 + ARCH_X86_64 * 2, 4, src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, w, h, x\n    movsxdifnidn wq, wd\n    add      src_rq, wq\n    add      src_gq, wq\n    add      src_bq, wq\n    neg          wq\n%if ARCH_X86_64 == 0\n    mov          wm, wq\nDEFINE_ARGS src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, x\n%define wq r6m\n%define hd r7mp\n%endif\n    mova         m3, [pb_80]\n.nextrow:\n    mov          xq, wq\n\n    .loop:\n        mova           m0, [src_rq + xq]\n        mova           m1, [src_gq + xq]\n        mova           m2, [src_bq + xq]\n        psubb          m1, m3\n        paddb          m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/utvideodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/utvideodsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/utvideodsp.asm:2", "text": "add      src_rq, wq\n    add      src_gq, wq\n    add      src_bq, wq\n    neg          wq\n%if ARCH_X86_64 == 0\n    mov          wm, wq\nDEFINE_ARGS src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, x\n%define wq r6m\n%define hd r7mp\n%endif\n    mova         m3, [pb_80]\n.nextrow:\n    mov          xq, wq\n\n    .loop:\n        mova           m0, [src_rq + xq]\n        mova           m1, [src_gq + xq]\n        mova           m2, [src_bq + xq]\n        psubb          m1, m3\n        paddb          m0, m1\n        paddb          m2, m1\n        mova  [src_rq+xq], m0\n        mova  [src_bq+xq], m2\n        add            xq, mmsize\n    jl .loop\n\n    add        src_rq, linesize_rq\n    add        src_gq, linesize_gq\n    add        src_bq, linesize_bq\n    sub        hd, 1\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nRESTORE_RGB_PLANES\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRESTORE_RGB_PLANES\n%endif\n\n;-------------------------------------------------------------------------------------------\n; void restore_rgb_planes10(uint16_t *src_r, uint16_t *src_g, uint16_t *src_b,\n;                         ptrdiff_t linesize_r, ptrdiff_t linesize_g, ptrdiff_t linesize_b,\n;                         int width, int height)\n;-------------------------------------------------------------------------------------------\n%macro RESTORE_RGB_PLANES10 0\ncglobal restore_rgb_planes10, 7 + ARCH_X86_64, 7 + ARCH_X86_64 * 2, 5, src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, w, h, x\n    shl          wd, 1\n    shl linesize_rq, 1\n    shl linesize_gq, 1\n    shl linesize_bq, 1\n    add      src_rq, wq\n    add      src_gq, wq\n    add      src_bq, wq\n    mova         m3, [pw_512]\n    mova         m4, [pw_1023]\n    neg          wq\n%if ARCH_X86_64 == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/utvideodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/utvideodsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/utvideodsp.asm:3", "text": "%endif\n\n;-------------------------------------------------------------------------------------------\n; void restore_rgb_planes10(uint16_t *src_r, uint16_t *src_g, uint16_t *src_b,\n;                         ptrdiff_t linesize_r, ptrdiff_t linesize_g, ptrdiff_t linesize_b,\n;                         int width, int height)\n;-------------------------------------------------------------------------------------------\n%macro RESTORE_RGB_PLANES10 0\ncglobal restore_rgb_planes10, 7 + ARCH_X86_64, 7 + ARCH_X86_64 * 2, 5, src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, w, h, x\n    shl          wd, 1\n    shl linesize_rq, 1\n    shl linesize_gq, 1\n    shl linesize_bq, 1\n    add      src_rq, wq\n    add      src_gq, wq\n    add      src_bq, wq\n    mova         m3, [pw_512]\n    mova         m4, [pw_1023]\n    neg          wq\n%if ARCH_X86_64 == 0\n    mov          wm, wq\nDEFINE_ARGS src_r, src_g, src_b, linesize_r, linesize_g, linesize_b, x\n%define wq r6m\n%define hd r7mp\n%endif\n.nextrow:\n    mov          xq, wq\n\n    .loop:\n        mova           m0, [src_rq + xq]\n        mova           m1, [src_gq + xq]\n        mova           m2, [src_bq + xq]\n        psubw          m1, m3\n        paddw          m0, m1\n        paddw          m2, m1\n        pand           m0, m4\n        pand           m2, m4\n        mova  [src_rq+xq], m0\n        mova  [src_bq+xq], m2\n        add            xq, mmsize\n    jl .loop\n\n    add        src_rq, linesize_rq\n    add        src_gq, linesize_gq\n    add        src_bq, linesize_bq\n    sub        hd, 1\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nRESTORE_RGB_PLANES10\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRESTORE_RGB_PLANES10\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/utvideodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/utvideodsp.asm", "line_start": 81, "line_end": 137}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/utvideodsp.asm:4", "text": "jl .loop\n\n    add        src_rq, linesize_rq\n    add        src_gq, linesize_gq\n    add        src_bq, linesize_bq\n    sub        hd, 1\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nRESTORE_RGB_PLANES10\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRESTORE_RGB_PLANES10\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/utvideodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/utvideodsp.asm", "line_start": 121, "line_end": 137}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210.asm:1", "text": ";******************************************************************************\n;* V210 SIMD unpack\n;* Copyright (c) 2011 Loren Merritt <lorenm@u.washington.edu>\n;* Copyright (c) 2011 Kieran Kunhya <kieran@kunhya.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 64\n\nperm_y:\n    db  0,1,   4,5,   6,7,   8,9,  12,13, 14,15, 16,17, 20,21\n    db 22,23, 24,25, 28,29, 30,31, 32,33, 36,37, 38,39, 40,41\n    db 44,45, 46,47, 48,49, 52,53, 54,55, 56,57, 60,61, 62,63\ntimes 16 db 0xff ; align to 64\n\nperm_uv:\n    db  0,1,   4,5,  10,11, 16,17, 20,21, 26,27, 32,33, 36,37\n    db 42,43, 48,49, 52,53, 58,59\ntimes 8 db 0xff ; align to 32\n    db  2,3,   8,9,  12,13, 18,19, 24,25, 28,29, 34,35, 40,41\n    db 44,45, 50,51, 56,57, 60,61\ntimes 8 db 0xff ; align to 32\n\n; for AVX2 version only\nv210_luma_permute: dd 0,1,2,4,5,6,7,7  ; 32-byte alignment required\nv210_chroma_shuf2: db 0,1,2,3,4,5,8,9,10,11,12,13,-1,-1,-1,-1\nv210_luma_shuf_avx2: db 0,1,4,5,6,7,8,9,12,13,14,15,-1,-1,-1,-1\nv210_chroma_shuf_avx2: db 0,1,4,5,10,11,-1,-1,2,3,8,9,12,13,-1,-1\n\nv210_mult: dw 64,4,64,4,64,4,64,4\nv210_luma_shuf: db 8,9,0,1,2,3,12,13,4,5,6,7,-1,-1,-1,-1\nv210_chroma_shuf: db 0,1,8,9,6,7,-1,-1,2,3,4,5,12,13,-1,-1\n\nshift: times 4 dw 6, 2\nkmask: dw 0x5555, 0xaaaa\n\nSECTION .text\n\n%macro v210_planar_unpack 1\n\n; v210_planar_unpack(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)\ncglobal v210_planar_unpack_%1, 5, 5, 6 + 2 * cpuflag(avx2), src, y, u, v, w\n    movsxdifnidn wq, wd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210.asm:2", "text": "; for AVX2 version only\nv210_luma_permute: dd 0,1,2,4,5,6,7,7  ; 32-byte alignment required\nv210_chroma_shuf2: db 0,1,2,3,4,5,8,9,10,11,12,13,-1,-1,-1,-1\nv210_luma_shuf_avx2: db 0,1,4,5,6,7,8,9,12,13,14,15,-1,-1,-1,-1\nv210_chroma_shuf_avx2: db 0,1,4,5,10,11,-1,-1,2,3,8,9,12,13,-1,-1\n\nv210_mult: dw 64,4,64,4,64,4,64,4\nv210_luma_shuf: db 8,9,0,1,2,3,12,13,4,5,6,7,-1,-1,-1,-1\nv210_chroma_shuf: db 0,1,8,9,6,7,-1,-1,2,3,4,5,12,13,-1,-1\n\nshift: times 4 dw 6, 2\nkmask: dw 0x5555, 0xaaaa\n\nSECTION .text\n\n%macro v210_planar_unpack 1\n\n; v210_planar_unpack(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)\ncglobal v210_planar_unpack_%1, 5, 5, 6 + 2 * cpuflag(avx2), src, y, u, v, w\n    movsxdifnidn wq, wd\n    lea    yq, [yq+2*wq]\n    add    uq, wq\n    add    vq, wq\n    neg    wq\n\n    VBROADCASTI128   m3, [v210_mult]\n\n%if cpuflag(avx2)\n    VBROADCASTI128   m4, [v210_luma_shuf_avx2]\n    VBROADCASTI128   m5, [v210_chroma_shuf_avx2]\n    mova             m6, [v210_luma_permute]\n    VBROADCASTI128   m7, [v210_chroma_shuf2]\n%else\n    VBROADCASTI128   m4, [v210_luma_shuf]\n    VBROADCASTI128   m5, [v210_chroma_shuf]\n%endif\n\n.loop:\n%ifidn %1, unaligned\n    movu   m0, [srcq]  ; yB v5 yA  u5 y9 v4  y8 u4 y7  v3 y6 u3  y5 v2 y4  u2 y3 v1  y2 u1 y1  v0 y0 u0\n%else\n    mova   m0, [srcq]\n%endif\n\n    pmullw m1, m0, m3 ; shifts the 1st and 3rd sample of each dword into the high 10 bits of each word\n    pslld  m0, 12     ; shifts the 2nd sample of each dword into the high 10 bits of each dword\n    psrlw  m1, 6      ; shifts the 1st and 3rd samples back into the low 10 bits\n    psrld  m0, 22     ; shifts the 2nd sample back into the low 10 bits of each dword\n\n%if cpuflag(avx2)\n    vpblendd m2, m1, m0, 0x55 ; merge the odd dwords from m0 and even from m1 ; yB yA 00 y9 y8 y7 00 y6 y5 y4 00 y3 y2 y1 00 y0\n    pshufb m2, m4                      ; 00 00 yB yA y9 y8 y7 y6 00 00 y5 y4 y3 y2 y1 y0\n    vpermd m2, m6, m2                  ; 00 00 00 00 yB yA y9 y8 y7 y6 y5 y4 y3 y2 y1 y0\n    movu   [yq+2*wq], m2\n\n    vpblendd m1, m1, m0, 0xaa ; merge the even dwords from m0 and odd from m1 ; 00 v5 u5 v4 00 u4 v3 u3 00 v2 u2 v1 00 u1 v0 u0\n    pshufb m1, m5                      ; 00 v5 v4 v3 00 u5 u4 u3 00 v2 v1 v0 00 u2 u1 u0\n    vpermq m1, m1, 0xd8                ; 00 v5 v4 v3 00 v2 v1 v0 00 u5 u4 u3 00 u2 u1 u0\n    pshufb m1, m7                      ; 00 00 v5 v4 v3 v2 v1 v0 00 00 u5 u4 u3 u2 u1 u0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210.asm:3", "text": "%else\n    mova   m0, [srcq]\n%endif\n\n    pmullw m1, m0, m3 ; shifts the 1st and 3rd sample of each dword into the high 10 bits of each word\n    pslld  m0, 12     ; shifts the 2nd sample of each dword into the high 10 bits of each dword\n    psrlw  m1, 6      ; shifts the 1st and 3rd samples back into the low 10 bits\n    psrld  m0, 22     ; shifts the 2nd sample back into the low 10 bits of each dword\n\n%if cpuflag(avx2)\n    vpblendd m2, m1, m0, 0x55 ; merge the odd dwords from m0 and even from m1 ; yB yA 00 y9 y8 y7 00 y6 y5 y4 00 y3 y2 y1 00 y0\n    pshufb m2, m4                      ; 00 00 yB yA y9 y8 y7 y6 00 00 y5 y4 y3 y2 y1 y0\n    vpermd m2, m6, m2                  ; 00 00 00 00 yB yA y9 y8 y7 y6 y5 y4 y3 y2 y1 y0\n    movu   [yq+2*wq], m2\n\n    vpblendd m1, m1, m0, 0xaa ; merge the even dwords from m0 and odd from m1 ; 00 v5 u5 v4 00 u4 v3 u3 00 v2 u2 v1 00 u1 v0 u0\n    pshufb m1, m5                      ; 00 v5 v4 v3 00 u5 u4 u3 00 v2 v1 v0 00 u2 u1 u0\n    vpermq m1, m1, 0xd8                ; 00 v5 v4 v3 00 v2 v1 v0 00 u5 u4 u3 00 u2 u1 u0\n    pshufb m1, m7                      ; 00 00 v5 v4 v3 v2 v1 v0 00 00 u5 u4 u3 u2 u1 u0\n\n    movu   [uq+wq], xm1\n    vextracti128 [vq+wq], m1, 1\n%else\n    shufps m2, m1, m0, 0x8d            ; 00 y9 00 y6 yB yA y8 y7 00 y3 00 y0 y5 y4 y2 y1\n    pshufb m2, m4                      ; 00 00 yB yA y9 y8 y7 y6 00 00 y5 y4 y3 y2 y1 y0\n    movu   [yq+2*wq], m2\n\n    shufps m1, m0, 0xd8                ; 00 v5 00 u4 u5 v4 v3 u3 00 v2 00 u1 u2 v1 v0 u0\n    pshufb m1, m5                      ; 00 v5 v4 v3 00 u5 u4 u3 00 v2 v1 v0 00 u2 u1 u0\n\n    movq   [uq+wq], m1\n    movhps [vq+wq], m1\n%endif\n\n    add srcq, mmsize\n    add wq, (mmsize*3)/8\n    jl  .loop\n\n    RET\n%endmacro\n\nINIT_XMM ssse3\nv210_planar_unpack unaligned\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nv210_planar_unpack unaligned\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nv210_planar_unpack unaligned\n%endif\n\nINIT_XMM ssse3\nv210_planar_unpack aligned\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nv210_planar_unpack aligned", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210.asm:4", "text": "INIT_XMM ssse3\nv210_planar_unpack unaligned\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nv210_planar_unpack unaligned\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nv210_planar_unpack unaligned\n%endif\n\nINIT_XMM ssse3\nv210_planar_unpack aligned\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nv210_planar_unpack aligned\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nv210_planar_unpack aligned\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\n\nINIT_ZMM avx512icl\n\ncglobal v210_planar_unpack, 5, 5, 6, src, y, u, v, w\n    movsxdifnidn wq, wd\n    lea    yq, [yq+2*wq]\n    add    uq, wq\n    add    vq, wq\n    neg    wq\n\n    kmovw k1, [kmask]   ; odd dword mask\n    kmovw k2, [kmask+2] ; even dword mask\n\n    VBROADCASTI128 m0, [shift]\n    mova           m1, [perm_y]\n    mova           m2, [perm_uv]\n\n    .loop:\n        movu    m3, [srcq]\n        vpsllvw m4, m3, m0\n        pslld   m5, m3, 12\n        psrlw   m4, 6\n        psrld   m5, 22\n\n        vpblendmd m3{k1}, m4, m5\n        vpermb    m3, m1, m3 ; could use vpcompressw\n        movu      [yq+2*wq], m3\n\n        vpblendmd     m5{k2}, m4, m5\n        vpermb        m5, m2, m5\n        movu          [uq+wq], ym5\n        vextracti32x8 [vq+wq], zm5, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210.asm:5", "text": "VBROADCASTI128 m0, [shift]\n    mova           m1, [perm_y]\n    mova           m2, [perm_uv]\n\n    .loop:\n        movu    m3, [srcq]\n        vpsllvw m4, m3, m0\n        pslld   m5, m3, 12\n        psrlw   m4, 6\n        psrld   m5, 22\n\n        vpblendmd m3{k1}, m4, m5\n        vpermb    m3, m1, m3 ; could use vpcompressw\n        movu      [yq+2*wq], m3\n\n        vpblendmd     m5{k2}, m4, m5\n        vpermb        m5, m2, m5\n        movu          [uq+wq], ym5\n        vextracti32x8 [vq+wq], zm5, 1\n\n        add srcq, mmsize\n        add wq, (mmsize*3)/8\n    jl  .loop\nRET\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210.asm", "line_start": 161, "line_end": 187}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:1", "text": ";******************************************************************************\n;* V210 SIMD pack\n;* Copyright (c) 2014 Kieran Kunhya <kierank@obe.tv>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 64\n\ncextern pw_4\n%define v210_enc_min_10 pw_4\nv210_enc_max_10: times 16 dw 0x3fb\n\nv210_enc_luma_mult_10: times 2 dw 4,1,16,4,1,16,0,0\nv210_enc_luma_shuf_10: times 2 db -1,0,1,-1,2,3,4,5,-1,6,7,-1,8,9,10,11\n\nv210_enc_chroma_mult_10: times 2 dw 1,4,16,0,16,1,4,0\nv210_enc_chroma_shuf_10: times 2 db 0,1,8,9,-1,2,3,-1,10,11,4,5,-1,12,13,-1\n\ncextern pb_1\n%define v210_enc_min_8 pb_1\ncextern pb_FE\n%define v210_enc_max_8 pb_FE\n\nv210_enc_luma_shuf_8: times 2 db 6,-1,7,-1,8,-1,9,-1,10,-1,11,-1,-1,-1,-1,-1\nv210_enc_luma_mult_8: times 2 dw 16,4,64,16,4,64,0,0\n\nv210_enc_chroma_shuf1_8: times 2 db 0,-1,1,-1,2,-1,3,-1,8,-1,9,-1,10,-1,11,-1\nv210_enc_chroma_shuf2_8: times 2 db 3,-1,4,-1,5,-1,7,-1,11,-1,12,-1,13,-1,15,-1\n\nv210_enc_chroma_mult_8: times 2 dw 4,16,64,0,64,4,16,0\n\nv210enc_8_permb: db 32, 0,48,-1 ,  1,33, 2,-1 , 49, 3,34,-1 ,  4,50, 5,-1\n                 db 35, 6,51,-1 ,  7,36, 8,-1 , 52, 9,37,-1 , 10,53,11,-1\n                 db 38,12,54,-1 , 13,39,14,-1 , 55,15,40,-1 , 16,56,17,-1\n                 db 41,18,57,-1 , 19,42,20,-1 , 58,21,43,-1 , 22,59,23,-1\nv210enc_8_shufb: db  0, 8, 1,-1 ,  9, 2,10,-1 ,  3,11, 4,-1 , 12, 5,13,-1\n                 db  2,10, 3,-1 , 11, 4,12,-1 ,  5,13, 6,-1 , 14, 7,15,-1\nv210enc_8_permd: dd 0,1,4,5, 1,2,5,6\nv210enc_8_mult: db 4, 0, 64, 0\nv210enc_8_mask: dd 255<<12\n\nicl_perm_y: ; vpermb does not set bytes to zero when the high bit is set unlike pshufb\n%assign i 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:2", "text": "v210_enc_luma_shuf_8: times 2 db 6,-1,7,-1,8,-1,9,-1,10,-1,11,-1,-1,-1,-1,-1\nv210_enc_luma_mult_8: times 2 dw 16,4,64,16,4,64,0,0\n\nv210_enc_chroma_shuf1_8: times 2 db 0,-1,1,-1,2,-1,3,-1,8,-1,9,-1,10,-1,11,-1\nv210_enc_chroma_shuf2_8: times 2 db 3,-1,4,-1,5,-1,7,-1,11,-1,12,-1,13,-1,15,-1\n\nv210_enc_chroma_mult_8: times 2 dw 4,16,64,0,64,4,16,0\n\nv210enc_8_permb: db 32, 0,48,-1 ,  1,33, 2,-1 , 49, 3,34,-1 ,  4,50, 5,-1\n                 db 35, 6,51,-1 ,  7,36, 8,-1 , 52, 9,37,-1 , 10,53,11,-1\n                 db 38,12,54,-1 , 13,39,14,-1 , 55,15,40,-1 , 16,56,17,-1\n                 db 41,18,57,-1 , 19,42,20,-1 , 58,21,43,-1 , 22,59,23,-1\nv210enc_8_shufb: db  0, 8, 1,-1 ,  9, 2,10,-1 ,  3,11, 4,-1 , 12, 5,13,-1\n                 db  2,10, 3,-1 , 11, 4,12,-1 ,  5,13, 6,-1 , 14, 7,15,-1\nv210enc_8_permd: dd 0,1,4,5, 1,2,5,6\nv210enc_8_mult: db 4, 0, 64, 0\nv210enc_8_mask: dd 255<<12\n\nicl_perm_y: ; vpermb does not set bytes to zero when the high bit is set unlike pshufb\n%assign i 0\n%rep 8\n    db -1,i+0,i+1,-1 , i+2,i+3,i+4,i+5\n    %assign i i+6\n%endrep\n\nicl_perm_uv: ; vpermb does not set bytes to zero when the high bit is set unlike pshufb\n%assign i 0\n%rep 4\n    db i+0,i+1,i+32,i+33 , -1,i+2,i+3,-1 , i+34,i+35,i+4,i+5 , -1,i+36,i+37,-1\n    %assign i i+6\n%endrep\n\nicl_perm_y_kmask:  times 8 db 1111_0110b\nicl_perm_uv_kmask: times 8 db 0110_1111b\n\nicl_shift_y:  times 10 dw 2,0,4\n              times 4 db 0 ; padding to 64 bytes\nicl_shift_uv: times 5 dw 0,2,4\n              times 2 db 0 ; padding to 32 bytes\n              times 5 dw 4,0,2\n              times 2 db 0 ; padding to 32 bytes\n\nv210enc_10_permd_y:  dd 0,1,2,-1 , 3,4,5,-1\nv210enc_10_shufb_y:  db -1,0,1,-1 , 2,3,4,5 , -1,6,7,-1 , 8,9,10,11\nv210enc_10_permd_uv: dd 0,1,4,5 , 1,2,5,6\nv210enc_10_shufb_uv: db 0,1, 8, 9 , -1,2,3,-1 , 10,11,4,5 , -1,12,13,-1\n                     db 2,3,10,11 , -1,4,5,-1 , 12,13,6,7 , -1,14,15,-1\n\nSECTION .text\n\n%macro v210_planar_pack_10 0\n\n; v210_planar_pack_10(const uint16_t *y, const uint16_t *u, const uint16_t *v, uint8_t *dst, ptrdiff_t width)\ncglobal v210_planar_pack_10, 5, 5, 4+cpuflag(avx2), y, u, v, dst, width\n    lea     yq, [yq+2*widthq]\n    add     uq, widthq\n    add     vq, widthq\n    neg     widthq\n\n    mova    m2, [v210_enc_min_10]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:3", "text": "times 2 db 0 ; padding to 32 bytes\n\nv210enc_10_permd_y:  dd 0,1,2,-1 , 3,4,5,-1\nv210enc_10_shufb_y:  db -1,0,1,-1 , 2,3,4,5 , -1,6,7,-1 , 8,9,10,11\nv210enc_10_permd_uv: dd 0,1,4,5 , 1,2,5,6\nv210enc_10_shufb_uv: db 0,1, 8, 9 , -1,2,3,-1 , 10,11,4,5 , -1,12,13,-1\n                     db 2,3,10,11 , -1,4,5,-1 , 12,13,6,7 , -1,14,15,-1\n\nSECTION .text\n\n%macro v210_planar_pack_10 0\n\n; v210_planar_pack_10(const uint16_t *y, const uint16_t *u, const uint16_t *v, uint8_t *dst, ptrdiff_t width)\ncglobal v210_planar_pack_10, 5, 5, 4+cpuflag(avx2), y, u, v, dst, width\n    lea     yq, [yq+2*widthq]\n    add     uq, widthq\n    add     vq, widthq\n    neg     widthq\n\n    mova    m2, [v210_enc_min_10]\n    mova    m3, [v210_enc_max_10]\n\n.loop:\n    movu        xm0, [yq+2*widthq]\n%if cpuflag(avx2)\n    vinserti128 m0,   m0, [yq+widthq*2+12], 1\n%endif\n    CLIPW   m0, m2, m3\n\n    movq         xm1, [uq+widthq]\n    movhps       xm1, [vq+widthq]\n%if cpuflag(avx2)\n    movq         xm4, [uq+widthq+6]\n    movhps       xm4, [vq+widthq+6]\n    vinserti128  m1,   m1, xm4, 1\n%endif\n    CLIPW   m1, m2, m3\n\n    pmullw  m0, [v210_enc_luma_mult_10]\n    pshufb  m0, [v210_enc_luma_shuf_10]\n\n    pmullw  m1, [v210_enc_chroma_mult_10]\n    pshufb  m1, [v210_enc_chroma_shuf_10]\n\n    por     m0, m1\n\n    movu    [dstq], m0\n\n    add     dstq, mmsize\n    add     widthq, (mmsize*3)/8\n    jl .loop\n\n    RET\n%endmacro\n\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nv210_planar_pack_10\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:4", "text": "pmullw  m1, [v210_enc_chroma_mult_10]\n    pshufb  m1, [v210_enc_chroma_shuf_10]\n\n    por     m0, m1\n\n    movu    [dstq], m0\n\n    add     dstq, mmsize\n    add     widthq, (mmsize*3)/8\n    jl .loop\n\n    RET\n%endmacro\n\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nv210_planar_pack_10\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nv210_planar_pack_10\n%endif\n\n%macro v210_planar_pack_10_new 0\n\ncglobal v210_planar_pack_10, 5, 5, 8+2*notcpuflag(avx512icl), y, u, v, dst, width\n    lea     yq, [yq+2*widthq]\n    add     uq, widthq\n    add     vq, widthq\n    neg     widthq\n\n    %if cpuflag(avx512icl)\n        movu  m6, [icl_perm_y]\n        movu  m7, [icl_perm_uv]\n        kmovq k1, [icl_perm_y_kmask]\n        kmovq k2, [icl_perm_uv_kmask]\n    %else\n        movu           m6, [v210enc_10_permd_y]\n        VBROADCASTI128 m7, [v210enc_10_shufb_y]\n        movu           m8, [v210enc_10_permd_uv]\n        movu           m9, [v210enc_10_shufb_uv]\n    %endif\n    movu  m2, [icl_shift_y]\n    movu  m3, [icl_shift_uv]\n    VBROADCASTI128 m4, [v210_enc_min_10] ; only ymm sized\n    VBROADCASTI128 m5, [v210_enc_max_10] ; only ymm sized\n\n    .loop:\n        movu m0, [yq + widthq*2]\n        %if cpuflag(avx512icl)\n            movu         ym1, [uq + widthq*1]\n            vinserti32x8 zm1, [vq + widthq*1], 1\n        %else\n            movu         xm1, [uq + widthq*1]\n            vinserti128  ym1, [vq + widthq*1], 1\n        %endif\n        CLIPW m0, m4, m5\n        CLIPW m1, m4, m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:5", "text": "VBROADCASTI128 m7, [v210enc_10_shufb_y]\n        movu           m8, [v210enc_10_permd_uv]\n        movu           m9, [v210enc_10_shufb_uv]\n    %endif\n    movu  m2, [icl_shift_y]\n    movu  m3, [icl_shift_uv]\n    VBROADCASTI128 m4, [v210_enc_min_10] ; only ymm sized\n    VBROADCASTI128 m5, [v210_enc_max_10] ; only ymm sized\n\n    .loop:\n        movu m0, [yq + widthq*2]\n        %if cpuflag(avx512icl)\n            movu         ym1, [uq + widthq*1]\n            vinserti32x8 zm1, [vq + widthq*1], 1\n        %else\n            movu         xm1, [uq + widthq*1]\n            vinserti128  ym1, [vq + widthq*1], 1\n        %endif\n        CLIPW m0, m4, m5\n        CLIPW m1, m4, m5\n\n        vpsllvw m0, m2\n        vpsllvw m1, m3\n        %if cpuflag(avx512icl)\n            vpermb  m0{k1}{z}, m6, m0 ; make space for uv where the k-mask sets to zero\n            vpermb  m1{k2}{z}, m7, m1 ; interleave uv and make space for y where the k-mask sets to zero\n        %else\n            vpermd m0, m6, m0\n            pshufb m0, m7\n            vpermd m1, m8, m1\n            pshufb m1, m9\n        %endif\n        por     m0, m1\n\n        movu  [dstq], m0\n        add     dstq, mmsize\n        add   widthq, (mmsize*3)/8\n    jl .loop\nRET\n\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512_EXTERNAL\nINIT_YMM avx512\nv210_planar_pack_10_new\n%endif\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nv210_planar_pack_10_new\n%endif\n\n%macro v210_planar_pack_8 0\n\n; v210_planar_pack_8(const uint8_t *y, const uint8_t *u, const uint8_t *v, uint8_t *dst, ptrdiff_t width)\ncglobal v210_planar_pack_8, 5, 5, 7, y, u, v, dst, width\n    add     yq, widthq\n    shr     widthq, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:6", "text": "%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512_EXTERNAL\nINIT_YMM avx512\nv210_planar_pack_10_new\n%endif\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nv210_planar_pack_10_new\n%endif\n\n%macro v210_planar_pack_8 0\n\n; v210_planar_pack_8(const uint8_t *y, const uint8_t *u, const uint8_t *v, uint8_t *dst, ptrdiff_t width)\ncglobal v210_planar_pack_8, 5, 5, 7, y, u, v, dst, width\n    add     yq, widthq\n    shr     widthq, 1\n    add     uq, widthq\n    add     vq, widthq\n    neg     widthq\n\n    mova    m4, [v210_enc_min_8]\n    mova    m5, [v210_enc_max_8]\n    pxor    m6, m6\n\n.loop:\n    movu        xm1, [yq+widthq*2]\n%if cpuflag(avx2)\n    vinserti128 m1,   m1, [yq+widthq*2+12], 1\n%endif\n    CLIPUB  m1, m4, m5\n\n    punpcklbw m0, m1, m6\n    ; can't unpack high bytes in the same way because we process\n    ; only six bytes at a time\n    pshufb  m1, [v210_enc_luma_shuf_8]\n\n    pmullw  m0, [v210_enc_luma_mult_8]\n    pmullw  m1, [v210_enc_luma_mult_8]\n    pshufb  m0, [v210_enc_luma_shuf_10]\n    pshufb  m1, [v210_enc_luma_shuf_10]\n\n    movq         xm3, [uq+widthq]\n    movhps       xm3, [vq+widthq]\n%if cpuflag(avx2)\n    movq         xm2, [uq+widthq+6]\n    movhps       xm2, [vq+widthq+6]\n    vinserti128  m3,   m3, xm2, 1\n%endif\n    CLIPUB  m3, m4, m5\n\n    ; shuffle and multiply to get the same packing as in 10-bit\n    pshufb  m2, m3, [v210_enc_chroma_shuf1_8]\n    pshufb  m3, [v210_enc_chroma_shuf2_8]\n\n    pmullw  m2, [v210_enc_chroma_mult_8]\n    pmullw  m3, [v210_enc_chroma_mult_8]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:7", "text": "pmullw  m0, [v210_enc_luma_mult_8]\n    pmullw  m1, [v210_enc_luma_mult_8]\n    pshufb  m0, [v210_enc_luma_shuf_10]\n    pshufb  m1, [v210_enc_luma_shuf_10]\n\n    movq         xm3, [uq+widthq]\n    movhps       xm3, [vq+widthq]\n%if cpuflag(avx2)\n    movq         xm2, [uq+widthq+6]\n    movhps       xm2, [vq+widthq+6]\n    vinserti128  m3,   m3, xm2, 1\n%endif\n    CLIPUB  m3, m4, m5\n\n    ; shuffle and multiply to get the same packing as in 10-bit\n    pshufb  m2, m3, [v210_enc_chroma_shuf1_8]\n    pshufb  m3, [v210_enc_chroma_shuf2_8]\n\n    pmullw  m2, [v210_enc_chroma_mult_8]\n    pmullw  m3, [v210_enc_chroma_mult_8]\n    pshufb  m2, [v210_enc_chroma_shuf_10]\n    pshufb  m3, [v210_enc_chroma_shuf_10]\n\n    por     m0, m2\n    por     m1, m3\n\n    movu         [dstq],    xm0\n    movu         [dstq+16], xm1\n%if cpuflag(avx2)\n    vextracti128 [dstq+32], m0, 1\n    vextracti128 [dstq+48], m1, 1\n%endif\n\n    add     dstq, 2*mmsize\n    add     widthq, (mmsize*3)/8\n    jl .loop\n\n    RET\n%endmacro\n\n%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nv210_planar_pack_8\n%endif\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nv210_planar_pack_8\n%endif\n\n%macro v210_planar_pack_8_new 0\n\ncglobal v210_planar_pack_8, 5, 5, 7+notcpuflag(avx512icl), y, u, v, dst, width\n    add     yq, widthq\n    shr     widthq, 1\n    add     uq, widthq\n    add     vq, widthq\n    neg     widthq\n\n    %if cpuflag(avx512icl)\n        mova m2, [v210enc_8_permb]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:8", "text": "%if HAVE_SSSE3_EXTERNAL\nINIT_XMM ssse3\nv210_planar_pack_8\n%endif\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nv210_planar_pack_8\n%endif\n\n%macro v210_planar_pack_8_new 0\n\ncglobal v210_planar_pack_8, 5, 5, 7+notcpuflag(avx512icl), y, u, v, dst, width\n    add     yq, widthq\n    shr     widthq, 1\n    add     uq, widthq\n    add     vq, widthq\n    neg     widthq\n\n    %if cpuflag(avx512icl)\n        mova m2, [v210enc_8_permb]\n    %else\n        mova m2, [v210enc_8_permd]\n    %endif\n    vpbroadcastd   m3, [v210enc_8_mult]\n    VBROADCASTI128 m4, [v210_enc_min_8] ; only ymm sized\n    VBROADCASTI128 m5, [v210_enc_max_8] ; only ymm sized\n    vpbroadcastd   m6, [v210enc_8_mask]\n    %if notcpuflag(avx512icl)\n        movu m7, [v210enc_8_shufb]\n    %endif\n\n    .loop:\n        %if cpuflag(avx512icl)\n            movu         ym1, [yq + 2*widthq]\n            vinserti32x4  m1, [uq + 1*widthq], 2\n            vinserti32x4  m1, [vq + 1*widthq], 3\n            vpermb        m1, m2, m1                 ; uyvx yuyx vyux yvyx\n        %else\n            movq         xm0, [uq + 1*widthq]        ; uuuu uuxx\n            movq         xm1, [vq + 1*widthq]        ; vvvv vvxx\n            punpcklbw    xm1, xm0, xm1               ; uvuv uvuv uvuv xxxx\n            vinserti128   m1, m1, [yq + 2*widthq], 1 ; uvuv uvuv uvuv xxxx yyyy yyyy yyyy xxxx\n            vpermd        m1, m2, m1                 ; uvuv uvxx yyyy yyxx xxuv uvuv xxyy yyyy\n            pshufb        m1, m7                     ; uyv0 yuy0 vyu0 yvy0\n        %endif\n        CLIPUB       m1, m4, m5\n\n        pmaddubsw  m0, m1, m3 ; shift high and low samples of each dword and mask out other bits\n        pslld      m1,  4     ; shift center sample of each dword\n        %if cpuflag(avx512)\n            vpternlogd m0, m1, m6, 0xd8 ; C?B:A ; merge and mask out bad bits from B\n        %else\n            pand       m1, m6, m1\n            por        m0, m0, m1\n        %endif\n\n        movu  [dstq], m0\n        add     dstq, mmsize\n        add   widthq, (mmsize*3)/16\n    jl .loop", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/v210enc.asm:9", "text": "punpcklbw    xm1, xm0, xm1               ; uvuv uvuv uvuv xxxx\n            vinserti128   m1, m1, [yq + 2*widthq], 1 ; uvuv uvuv uvuv xxxx yyyy yyyy yyyy xxxx\n            vpermd        m1, m2, m1                 ; uvuv uvxx yyyy yyxx xxuv uvuv xxyy yyyy\n            pshufb        m1, m7                     ; uyv0 yuy0 vyu0 yvy0\n        %endif\n        CLIPUB       m1, m4, m5\n\n        pmaddubsw  m0, m1, m3 ; shift high and low samples of each dword and mask out other bits\n        pslld      m1,  4     ; shift center sample of each dword\n        %if cpuflag(avx512)\n            vpternlogd m0, m1, m6, 0xd8 ; C?B:A ; merge and mask out bad bits from B\n        %else\n            pand       m1, m6, m1\n            por        m0, m0, m1\n        %endif\n\n        movu  [dstq], m0\n        add     dstq, mmsize\n        add   widthq, (mmsize*3)/16\n    jl .loop\nRET\n\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nv210_planar_pack_8_new\n%endif\n\n%if HAVE_AVX512_EXTERNAL\nINIT_YMM avx512\nv210_planar_pack_8_new\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nv210_planar_pack_8_new\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/v210enc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/v210enc.asm", "line_start": 321, "line_end": 358}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:1", "text": ";******************************************************************************\n;* VC1 loopfilter optimizations\n;* Copyright (c) 2009 David Conrad\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_4\ncextern pw_5\n\nSECTION .text\n\n; dst_low, dst_high (src), zero\n; zero-extends one vector from 8 to 16 bits\n%macro UNPACK_8TO16 4\n    mova      m%2, m%3\n    punpckh%1 m%3, m%4\n    punpckl%1 m%2, m%4\n%endmacro\n\n%macro STORE_4_WORDS 6\n%if cpuflag(sse4)\n    pextrw %1, %5, %6+0\n    pextrw %2, %5, %6+1\n    pextrw %3, %5, %6+2\n    pextrw %4, %5, %6+3\n%else\n    movd  %6d, %5\n%if mmsize==16\n    psrldq %5, 4\n%else\n    psrlq  %5, 32\n%endif\n    mov    %1, %6w\n    shr    %6, 16\n    mov    %2, %6w\n    movd  %6d, %5\n    mov    %3, %6w\n    shr    %6, 16\n    mov    %4, %6w\n%endif\n%endmacro\n\n; in:  p1 p0 q0 q1, clobbers p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:2", "text": "pextrw %3, %5, %6+2\n    pextrw %4, %5, %6+3\n%else\n    movd  %6d, %5\n%if mmsize==16\n    psrldq %5, 4\n%else\n    psrlq  %5, 32\n%endif\n    mov    %1, %6w\n    shr    %6, 16\n    mov    %2, %6w\n    movd  %6d, %5\n    mov    %3, %6w\n    shr    %6, 16\n    mov    %4, %6w\n%endif\n%endmacro\n\n; in:  p1 p0 q0 q1, clobbers p0\n; out: p1 = (2*(p1 - q1) - 5*(p0 - q0) + 4) >> 3\n%macro VC1_LOOP_FILTER_A0 4\n    psubw  %1, %4\n    psubw  %2, %3\n    paddw  %1, %1\n    pmullw %2, [pw_5]\n    psubw  %1, %2\n    paddw  %1, [pw_4]\n    psraw  %1, 3\n%endmacro\n\n; in: p0 q0 a0 a1 a2\n;     m0 m1 m7 m6 m5\n; %1: size\n; out: m0=p0' m1=q0'\n%macro VC1_FILTER 1\n    PABSW   m4, m7\n    PABSW   m3, m6\n    PABSW   m2, m5\n    mova    m6, m4\n    pminsw  m3, m2\n    pcmpgtw m6, m3  ; if (a2 < a0 || a1 < a0)\n    psubw   m3, m4\n    pmullw  m3, [pw_5]   ; 5*(a3 - a0)\n    PABSW   m2, m3\n    psraw   m2, 3   ; abs(d/8)\n    pxor    m7, m3  ; d_sign ^= a0_sign\n\n    pxor    m5, m5\n    movd    m3, r2d\n%if %1 > 4\n    punpcklbw m3, m3\n%endif\n    punpcklbw m3, m5\n    pcmpgtw m3, m4  ; if (a0 < pq)\n    pand    m6, m3\n\n    mova    m3, m0\n    psubw   m3, m1\n    PABSW   m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:3", "text": "pminsw  m3, m2\n    pcmpgtw m6, m3  ; if (a2 < a0 || a1 < a0)\n    psubw   m3, m4\n    pmullw  m3, [pw_5]   ; 5*(a3 - a0)\n    PABSW   m2, m3\n    psraw   m2, 3   ; abs(d/8)\n    pxor    m7, m3  ; d_sign ^= a0_sign\n\n    pxor    m5, m5\n    movd    m3, r2d\n%if %1 > 4\n    punpcklbw m3, m3\n%endif\n    punpcklbw m3, m5\n    pcmpgtw m3, m4  ; if (a0 < pq)\n    pand    m6, m3\n\n    mova    m3, m0\n    psubw   m3, m1\n    PABSW   m4, m3\n    psraw   m4, 1\n    pxor    m3, m7  ; d_sign ^ clip_sign\n    psraw   m3, 15\n    pminsw  m2, m4  ; min(d, clip)\n    pcmpgtw m4, m5\n    pand    m6, m4  ; filt3 (C return value)\n\n; each set of 4 pixels is not filtered if the 3rd is not\n%if mmsize==16\n    pshuflw m4, m6, 0xaa\n%if %1 > 4\n    pshufhw m4, m4, 0xaa\n%endif\n%else\n    pshufw  m4, m6, 0xaa\n%endif\n    pandn   m3, m4\n    pand    m2, m6\n    pand    m3, m2  ; d final\n\n    psraw   m7, 15\n    pxor    m3, m7\n    psubw   m3, m7\n    psubw   m0, m3\n    paddw   m1, m3\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n; 1st param: size of filter\n; 2nd param: mov suffix equivalent to the filter size\n%macro VC1_V_LOOP_FILTER 2\n    pxor      m5, m5\n    mov%2     m6, [r4]\n    mov%2     m4, [r4+r1]\n    mov%2     m7, [r4+2*r1]\n    mov%2     m0, [r4+r3]\n    punpcklbw m6, m5\n    punpcklbw m4, m5\n    punpcklbw m7, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:4", "text": "psraw   m7, 15\n    pxor    m3, m7\n    psubw   m3, m7\n    psubw   m0, m3\n    paddw   m1, m3\n    packuswb m0, m0\n    packuswb m1, m1\n%endmacro\n\n; 1st param: size of filter\n; 2nd param: mov suffix equivalent to the filter size\n%macro VC1_V_LOOP_FILTER 2\n    pxor      m5, m5\n    mov%2     m6, [r4]\n    mov%2     m4, [r4+r1]\n    mov%2     m7, [r4+2*r1]\n    mov%2     m0, [r4+r3]\n    punpcklbw m6, m5\n    punpcklbw m4, m5\n    punpcklbw m7, m5\n    punpcklbw m0, m5\n\n    VC1_LOOP_FILTER_A0 m6, m4, m7, m0\n    mov%2     m1, [r0]\n    mov%2     m2, [r0+r1]\n    punpcklbw m1, m5\n    punpcklbw m2, m5\n    mova      m4, m0\n    VC1_LOOP_FILTER_A0 m7, m4, m1, m2\n    mov%2     m3, [r0+2*r1]\n    mov%2     m4, [r0+r3]\n    punpcklbw m3, m5\n    punpcklbw m4, m5\n    mova      m5, m1\n    VC1_LOOP_FILTER_A0 m5, m2, m3, m4\n\n    VC1_FILTER %1\n    mov%2 [r4+r3], m0\n    mov%2 [r0],    m1\n%endmacro\n\n; 1st param: size of filter\n;     NOTE: UNPACK_8TO16 this number of 8 bit numbers are in half a register\n; 2nd (optional) param: temp register to use for storing words\n%macro VC1_H_LOOP_FILTER 1-2\n%if %1 == 4\n    movq      m0, [r0     -4]\n    movq      m1, [r0+  r1-4]\n    movq      m2, [r0+2*r1-4]\n    movq      m3, [r0+  r3-4]\n    TRANSPOSE4x4B 0, 1, 2, 3, 4\n%else\n    movq      m0, [r0     -4]\n    movq      m4, [r0+  r1-4]\n    movq      m1, [r0+2*r1-4]\n    movq      m5, [r0+  r3-4]\n    movq      m2, [r4     -4]\n    movq      m6, [r4+  r1-4]\n    movq      m3, [r4+2*r1-4]\n    movq      m7, [r4+  r3-4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:5", "text": "; 1st param: size of filter\n;     NOTE: UNPACK_8TO16 this number of 8 bit numbers are in half a register\n; 2nd (optional) param: temp register to use for storing words\n%macro VC1_H_LOOP_FILTER 1-2\n%if %1 == 4\n    movq      m0, [r0     -4]\n    movq      m1, [r0+  r1-4]\n    movq      m2, [r0+2*r1-4]\n    movq      m3, [r0+  r3-4]\n    TRANSPOSE4x4B 0, 1, 2, 3, 4\n%else\n    movq      m0, [r0     -4]\n    movq      m4, [r0+  r1-4]\n    movq      m1, [r0+2*r1-4]\n    movq      m5, [r0+  r3-4]\n    movq      m2, [r4     -4]\n    movq      m6, [r4+  r1-4]\n    movq      m3, [r4+2*r1-4]\n    movq      m7, [r4+  r3-4]\n    punpcklbw m0, m4\n    punpcklbw m1, m5\n    punpcklbw m2, m6\n    punpcklbw m3, m7\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n%endif\n    pxor      m5, m5\n\n    UNPACK_8TO16 bw, 6, 0, 5\n    UNPACK_8TO16 bw, 7, 1, 5\n    VC1_LOOP_FILTER_A0 m6, m0, m7, m1\n    UNPACK_8TO16 bw, 4, 2, 5\n    mova    m0, m1                      ; m0 = p0\n    VC1_LOOP_FILTER_A0 m7, m1, m4, m2\n    UNPACK_8TO16 bw, 1, 3, 5\n    mova    m5, m4\n    VC1_LOOP_FILTER_A0 m5, m2, m1, m3\n    SWAP 1, 4                           ; m1 = q0\n\n    VC1_FILTER %1\n    punpcklbw m0, m1\n%if %0 > 1\n    STORE_4_WORDS [r0-1], [r0+r1-1], [r0+2*r1-1], [r0+r3-1], m0, %2\n%if %1 > 4\n    psrldq m0, 4\n    STORE_4_WORDS [r4-1], [r4+r1-1], [r4+2*r1-1], [r4+r3-1], m0, %2\n%endif\n%else\n    STORE_4_WORDS [r0-1], [r0+r1-1], [r0+2*r1-1], [r0+r3-1], m0, 0\n    STORE_4_WORDS [r4-1], [r4+r1-1], [r4+2*r1-1], [r4+r3-1], m0, 4\n%endif\n%endmacro\n\n\n%macro START_V_FILTER 0\n    mov  r4, r0\n    lea  r3, [4*r1]\n    sub  r4, r3\n    lea  r3, [r1+2*r1]\n    imul r2, 0x01010101", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:6", "text": "punpcklbw m0, m1\n%if %0 > 1\n    STORE_4_WORDS [r0-1], [r0+r1-1], [r0+2*r1-1], [r0+r3-1], m0, %2\n%if %1 > 4\n    psrldq m0, 4\n    STORE_4_WORDS [r4-1], [r4+r1-1], [r4+2*r1-1], [r4+r3-1], m0, %2\n%endif\n%else\n    STORE_4_WORDS [r0-1], [r0+r1-1], [r0+2*r1-1], [r0+r3-1], m0, 0\n    STORE_4_WORDS [r4-1], [r4+r1-1], [r4+2*r1-1], [r4+r3-1], m0, 4\n%endif\n%endmacro\n\n\n%macro START_V_FILTER 0\n    mov  r4, r0\n    lea  r3, [4*r1]\n    sub  r4, r3\n    lea  r3, [r1+2*r1]\n    imul r2, 0x01010101\n%endmacro\n\n%macro START_H_FILTER 1\n    lea  r3, [r1+2*r1]\n%if %1 > 4\n    lea  r4, [r0+4*r1]\n%endif\n    imul r2, 0x01010101\n%endmacro\n\nINIT_XMM sse2\n; void ff_vc1_v_loop_filter8_sse2(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter8, 3,5,8\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 8, q\n    RET\n\n; void ff_vc1_h_loop_filter8_sse2(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,6,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8, r5\n    RET\n\nINIT_MMX ssse3\n; void ff_vc1_v_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter4, 3,5,0\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 4, d\n    RET\n\n; void ff_vc1_h_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter4, 3,5,0\n    START_H_FILTER 4\n    VC1_H_LOOP_FILTER 4, r4\n    RET\n\nINIT_XMM ssse3\n; void ff_vc1_v_loop_filter8_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter8, 3,5,8\n    START_V_FILTER", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:7", "text": "VC1_H_LOOP_FILTER 8, r5\n    RET\n\nINIT_MMX ssse3\n; void ff_vc1_v_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter4, 3,5,0\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 4, d\n    RET\n\n; void ff_vc1_h_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter4, 3,5,0\n    START_H_FILTER 4\n    VC1_H_LOOP_FILTER 4, r4\n    RET\n\nINIT_XMM ssse3\n; void ff_vc1_v_loop_filter8_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter8, 3,5,8\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 8, q\n    RET\n\n; void ff_vc1_h_loop_filter8_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,6,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8, r5\n    RET\n\nINIT_XMM sse4\n; void ff_vc1_h_loop_filter8_sse4(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,5,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 241, "line_end": 275}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:6", "text": "punpcklbw m0, m1\n%if %0 > 1\n    STORE_4_WORDS [r0-1], [r0+r1-1], [r0+2*r1-1], [r0+r3-1], m0, %2\n%if %1 > 4\n    psrldq m0, 4\n    STORE_4_WORDS [r4-1], [r4+r1-1], [r4+2*r1-1], [r4+r3-1], m0, %2\n%endif\n%else\n    STORE_4_WORDS [r0-1], [r0+r1-1], [r0+2*r1-1], [r0+r3-1], m0, 0\n    STORE_4_WORDS [r4-1], [r4+r1-1], [r4+2*r1-1], [r4+r3-1], m0, 4\n%endif\n%endmacro\n\n\n%macro START_V_FILTER 0\n    mov  r4, r0\n    lea  r3, [4*r1]\n    sub  r4, r3\n    lea  r3, [r1+2*r1]\n    imul r2, 0x01010101\n%endmacro\n\n%macro START_H_FILTER 1\n    lea  r3, [r1+2*r1]\n%if %1 > 4\n    lea  r4, [r0+4*r1]\n%endif\n    imul r2, 0x01010101\n%endmacro\n\n; void ff_vc1_v_loop_filter4_mmxext(uint8_t *src, ptrdiff_t stride, int pq)\nINIT_MMX mmxext\ncglobal vc1_v_loop_filter4, 3,5,0\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 4, d\n    RET\n\n; void ff_vc1_h_loop_filter4_mmxext(uint8_t *src, ptrdiff_t stride, int pq)\nINIT_MMX mmxext\ncglobal vc1_h_loop_filter4, 3,5,0\n    START_H_FILTER 4\n    VC1_H_LOOP_FILTER 4, r4\n    RET\n\nINIT_XMM sse2\n; void ff_vc1_v_loop_filter8_sse2(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter8, 3,5,8\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 8, q\n    RET\n\n; void ff_vc1_h_loop_filter8_sse2(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,6,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8, r5\n    RET\n\nINIT_MMX ssse3\n; void ff_vc1_v_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter4, 3,5,0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_loopfilter.asm:7", "text": "START_H_FILTER 4\n    VC1_H_LOOP_FILTER 4, r4\n    RET\n\nINIT_XMM sse2\n; void ff_vc1_v_loop_filter8_sse2(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter8, 3,5,8\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 8, q\n    RET\n\n; void ff_vc1_h_loop_filter8_sse2(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,6,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8, r5\n    RET\n\nINIT_MMX ssse3\n; void ff_vc1_v_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter4, 3,5,0\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 4, d\n    RET\n\n; void ff_vc1_h_loop_filter4_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter4, 3,5,0\n    START_H_FILTER 4\n    VC1_H_LOOP_FILTER 4, r4\n    RET\n\nINIT_XMM ssse3\n; void ff_vc1_v_loop_filter8_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_v_loop_filter8, 3,5,8\n    START_V_FILTER\n    VC1_V_LOOP_FILTER 8, q\n    RET\n\n; void ff_vc1_h_loop_filter8_ssse3(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,6,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8, r5\n    RET\n\nINIT_XMM sse4\n; void ff_vc1_h_loop_filter8_sse4(uint8_t *src, ptrdiff_t stride, int pq)\ncglobal vc1_h_loop_filter8, 3,5,8\n    START_H_FILTER 8\n    VC1_H_LOOP_FILTER 8\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vc1dsp_loopfilter.asm", "line_start": 241, "line_end": 289}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:1", "text": ";******************************************************************************\n;* VC1 motion compensation optimizations\n;* Copyright (c) 2007 Christophe GISQUET <christophe.gisquet@free.fr>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_9\ncextern pw_128\n\nSECTION .text\n\n%if HAVE_MMX_INLINE\n\n; XXX some of these macros are not used right now, but they will in the future\n;     when more functions are ported.\n\n%macro OP_PUT 2 ; dst, src\n%endmacro\n\n%macro OP_AVG 2 ; dst, src\n    pavgb           %1, %2\n%endmacro\n\n%macro NORMALIZE_MMX 1 ; shift\n    paddw           m3, m7 ; +bias-r\n    paddw           m4, m7 ; +bias-r\n    psraw           m3, %1\n    psraw           m4, %1\n%endmacro\n\n%macro TRANSFER_DO_PACK 2 ; op, dst\n    packuswb        m3, m4\n    %1              m3, [%2]\n    mova          [%2], m3\n%endmacro\n\n%macro TRANSFER_DONT_PACK 2 ; op, dst\n    %1              m3, [%2]\n    %1              m3, [%2 + mmsize]\n    mova          [%2], m3\n    mova [mmsize + %2], m4\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:2", "text": "%macro NORMALIZE_MMX 1 ; shift\n    paddw           m3, m7 ; +bias-r\n    paddw           m4, m7 ; +bias-r\n    psraw           m3, %1\n    psraw           m4, %1\n%endmacro\n\n%macro TRANSFER_DO_PACK 2 ; op, dst\n    packuswb        m3, m4\n    %1              m3, [%2]\n    mova          [%2], m3\n%endmacro\n\n%macro TRANSFER_DONT_PACK 2 ; op, dst\n    %1              m3, [%2]\n    %1              m3, [%2 + mmsize]\n    mova          [%2], m3\n    mova [mmsize + %2], m4\n%endmacro\n\n; see MSPEL_FILTER13_CORE for use as UNPACK macro\n%macro DO_UNPACK 1 ; reg\n    punpcklbw       %1, m0\n%endmacro\n%macro DONT_UNPACK 1 ; reg\n%endmacro\n\n; Compute the rounder 32-r or 8-r and unpacks it to m7\n%macro LOAD_ROUNDER_MMX 1 ; round\n    movd      m7, %1\n    punpcklwd m7, m7\n    punpckldq m7, m7\n%endmacro\n\n%macro SHIFT2_LINE 5 ; off, r0, r1, r2, r3\n    paddw          m%3, m%4\n    movh           m%2, [srcq + stride_neg2]\n    pmullw         m%3, m6\n    punpcklbw      m%2, m0\n    movh           m%5, [srcq + strideq]\n    psubw          m%3, m%2\n    punpcklbw      m%5, m0\n    paddw          m%3, m7\n    psubw          m%3, m%5\n    psraw          m%3, shift\n    movu   [dstq + %1], m%3\n    add           srcq, strideq\n%endmacro\n\nINIT_MMX mmx\n; void ff_vc1_put_ver_16b_shift2_mmx(int16_t *dst, const uint8_t *src,\n;                                    x86_reg stride, int rnd, int64_t shift)\n; Sacrificing m6 makes it possible to pipeline loads from src\n%if ARCH_X86_32\ncglobal vc1_put_ver_16b_shift2, 3,6,0, dst, src, stride\n    DECLARE_REG_TMP     3, 4, 5\n    %define rnd r3mp\n    %define shift qword r4m\n%else ; X86_64\ncglobal vc1_put_ver_16b_shift2, 4,7,0, dst, src, stride", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:3", "text": "psubw          m%3, m%2\n    punpcklbw      m%5, m0\n    paddw          m%3, m7\n    psubw          m%3, m%5\n    psraw          m%3, shift\n    movu   [dstq + %1], m%3\n    add           srcq, strideq\n%endmacro\n\nINIT_MMX mmx\n; void ff_vc1_put_ver_16b_shift2_mmx(int16_t *dst, const uint8_t *src,\n;                                    x86_reg stride, int rnd, int64_t shift)\n; Sacrificing m6 makes it possible to pipeline loads from src\n%if ARCH_X86_32\ncglobal vc1_put_ver_16b_shift2, 3,6,0, dst, src, stride\n    DECLARE_REG_TMP     3, 4, 5\n    %define rnd r3mp\n    %define shift qword r4m\n%else ; X86_64\ncglobal vc1_put_ver_16b_shift2, 4,7,0, dst, src, stride\n    DECLARE_REG_TMP     4, 5, 6\n    %define   rnd r3d\n    ; We need shift either in memory or in a mm reg as it's used in psraw\n    ; On WIN64, the arg is already on the stack\n    ; On UNIX64, m5 doesn't seem to be used\n%if WIN64\n    %define shift r4mp\n%else ; UNIX64\n    %define shift m5\n    mova shift, r4q\n%endif ; WIN64\n%endif ; X86_32\n%define stride_neg2 t0q\n%define stride_9minus4 t1q\n%define i t2q\n    mov       stride_neg2, strideq\n    neg       stride_neg2\n    add       stride_neg2, stride_neg2\n    lea    stride_9minus4, [strideq * 9 - 4]\n    mov                 i, 3\n    LOAD_ROUNDER_MMX  rnd\n    mova               m6, [pw_9]\n    pxor               m0, m0\n.loop:\n    movh               m2, [srcq]\n    add              srcq, strideq\n    movh               m3, [srcq]\n    punpcklbw          m2, m0\n    punpcklbw          m3, m0\n    SHIFT2_LINE         0, 1, 2, 3, 4\n    SHIFT2_LINE        24, 2, 3, 4, 1\n    SHIFT2_LINE        48, 3, 4, 1, 2\n    SHIFT2_LINE        72, 4, 1, 2, 3\n    SHIFT2_LINE        96, 1, 2, 3, 4\n    SHIFT2_LINE       120, 2, 3, 4, 1\n    SHIFT2_LINE       144, 3, 4, 1, 2\n    SHIFT2_LINE       168, 4, 1, 2, 3\n    sub              srcq, stride_9minus4\n    add              dstq, 8\n    dec                 i", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:4", "text": "LOAD_ROUNDER_MMX  rnd\n    mova               m6, [pw_9]\n    pxor               m0, m0\n.loop:\n    movh               m2, [srcq]\n    add              srcq, strideq\n    movh               m3, [srcq]\n    punpcklbw          m2, m0\n    punpcklbw          m3, m0\n    SHIFT2_LINE         0, 1, 2, 3, 4\n    SHIFT2_LINE        24, 2, 3, 4, 1\n    SHIFT2_LINE        48, 3, 4, 1, 2\n    SHIFT2_LINE        72, 4, 1, 2, 3\n    SHIFT2_LINE        96, 1, 2, 3, 4\n    SHIFT2_LINE       120, 2, 3, 4, 1\n    SHIFT2_LINE       144, 3, 4, 1, 2\n    SHIFT2_LINE       168, 4, 1, 2, 3\n    sub              srcq, stride_9minus4\n    add              dstq, 8\n    dec                 i\n        jnz         .loop\n    RET\n%undef rnd\n%undef shift\n%undef stride_neg2\n%undef stride_9minus4\n%undef i\n\n; void ff_vc1_*_hor_16b_shift2_mmx(uint8_t *dst, x86_reg stride,\n;                                  const int16_t *src, int rnd);\n; Data is already unpacked, so some operations can directly be made from\n; memory.\n%macro HOR_16B_SHIFT2 2 ; op, opname\ncglobal vc1_%2_hor_16b_shift2, 4, 5, 0, dst, stride, src, rnd, h\n    mov                hq, 8\n    sub              srcq, 2\n    sub              rndd, (-1+9+9-1) * 1024 ; add -1024 bias\n    LOAD_ROUNDER_MMX rndd\n    mova               m5, [pw_9]\n    mova               m6, [pw_128]\n    pxor               m0, m0\n\n.loop:\n    mova               m1, [srcq + 2 * 0]\n    mova               m2, [srcq + 2 * 0 + mmsize]\n    mova               m3, [srcq + 2 * 1]\n    mova               m4, [srcq + 2 * 1 + mmsize]\n    paddw              m3, [srcq + 2 * 2]\n    paddw              m4, [srcq + 2 * 2 + mmsize]\n    paddw              m1, [srcq + 2 * 3]\n    paddw              m2, [srcq + 2 * 3 + mmsize]\n    pmullw             m3, m5\n    pmullw             m4, m5\n    psubw              m3, m1\n    psubw              m4, m2\n    NORMALIZE_MMX      7\n    ; remove bias\n    paddw              m3, m6\n    paddw              m4, m6\n    TRANSFER_DO_PACK   %1, dstq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:5", "text": "pxor               m0, m0\n\n.loop:\n    mova               m1, [srcq + 2 * 0]\n    mova               m2, [srcq + 2 * 0 + mmsize]\n    mova               m3, [srcq + 2 * 1]\n    mova               m4, [srcq + 2 * 1 + mmsize]\n    paddw              m3, [srcq + 2 * 2]\n    paddw              m4, [srcq + 2 * 2 + mmsize]\n    paddw              m1, [srcq + 2 * 3]\n    paddw              m2, [srcq + 2 * 3 + mmsize]\n    pmullw             m3, m5\n    pmullw             m4, m5\n    psubw              m3, m1\n    psubw              m4, m2\n    NORMALIZE_MMX      7\n    ; remove bias\n    paddw              m3, m6\n    paddw              m4, m6\n    TRANSFER_DO_PACK   %1, dstq\n    add              srcq, 24\n    add              dstq, strideq\n    dec                hq\n        jnz         .loop\n\n    RET\n%endmacro\n\nINIT_MMX mmx\nHOR_16B_SHIFT2 OP_PUT, put\n\nINIT_MMX mmxext\nHOR_16B_SHIFT2 OP_AVG, avg\n%endif ; HAVE_MMX_INLINE\n\n%macro INV_TRANS_INIT 0\n    movsxdifnidn linesizeq, linesized\n    movd       m0, blockd\n    SPLATW     m0, m0\n    pxor       m1, m1\n    psubw      m1, m0\n    packuswb   m0, m0\n    packuswb   m1, m1\n\n    DEFINE_ARGS dest, linesize, linesize3\n    lea    linesize3q, [linesizeq*3]\n%endmacro\n\n%macro INV_TRANS_PROCESS 1\n    mov%1                  m2, [destq+linesizeq*0]\n    mov%1                  m3, [destq+linesizeq*1]\n    mov%1                  m4, [destq+linesizeq*2]\n    mov%1                  m5, [destq+linesize3q]\n    paddusb                m2, m0\n    paddusb                m3, m0\n    paddusb                m4, m0\n    paddusb                m5, m0\n    psubusb                m2, m1\n    psubusb                m3, m1\n    psubusb                m4, m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:6", "text": "psubw      m1, m0\n    packuswb   m0, m0\n    packuswb   m1, m1\n\n    DEFINE_ARGS dest, linesize, linesize3\n    lea    linesize3q, [linesizeq*3]\n%endmacro\n\n%macro INV_TRANS_PROCESS 1\n    mov%1                  m2, [destq+linesizeq*0]\n    mov%1                  m3, [destq+linesizeq*1]\n    mov%1                  m4, [destq+linesizeq*2]\n    mov%1                  m5, [destq+linesize3q]\n    paddusb                m2, m0\n    paddusb                m3, m0\n    paddusb                m4, m0\n    paddusb                m5, m0\n    psubusb                m2, m1\n    psubusb                m3, m1\n    psubusb                m4, m1\n    psubusb                m5, m1\n    mov%1 [linesizeq*0+destq], m2\n    mov%1 [linesizeq*1+destq], m3\n    mov%1 [linesizeq*2+destq], m4\n    mov%1 [linesize3q +destq], m5\n%endmacro\n\n; ff_vc1_inv_trans_?x?_dc_mmxext(uint8_t *dest, ptrdiff_t linesize, int16_t *block)\nINIT_MMX mmxext\ncglobal vc1_inv_trans_4x4_dc, 3,4,0, dest, linesize, block\n    movsx         r3d, WORD [blockq]\n    mov        blockd, r3d             ; dc\n    shl        blockd, 4               ; 16 * dc\n    lea        blockd, [blockq+r3+4]   ; 17 * dc + 4\n    sar        blockd, 3               ; >> 3\n    mov           r3d, blockd          ; dc\n    shl        blockd, 4               ; 16 * dc\n    lea        blockd, [blockq+r3+64]  ; 17 * dc + 64\n    sar        blockd, 7               ; >> 7\n\n    INV_TRANS_INIT\n\n    INV_TRANS_PROCESS h\n    RET\n\nINIT_MMX mmxext\ncglobal vc1_inv_trans_4x8_dc, 3,4,0, dest, linesize, block\n    movsx         r3d, WORD [blockq]\n    mov        blockd, r3d             ; dc\n    shl        blockd, 4               ; 16 * dc\n    lea        blockd, [blockq+r3+4]   ; 17 * dc + 4\n    sar        blockd, 3               ; >> 3\n    shl        blockd, 2               ;  4 * dc\n    lea        blockd, [blockq*3+64]   ; 12 * dc + 64\n    sar        blockd, 7               ; >> 7\n\n    INV_TRANS_INIT\n\n    INV_TRANS_PROCESS h\n    lea         destq, [destq+linesizeq*4]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:7", "text": "INV_TRANS_INIT\n\n    INV_TRANS_PROCESS h\n    RET\n\nINIT_MMX mmxext\ncglobal vc1_inv_trans_4x8_dc, 3,4,0, dest, linesize, block\n    movsx         r3d, WORD [blockq]\n    mov        blockd, r3d             ; dc\n    shl        blockd, 4               ; 16 * dc\n    lea        blockd, [blockq+r3+4]   ; 17 * dc + 4\n    sar        blockd, 3               ; >> 3\n    shl        blockd, 2               ;  4 * dc\n    lea        blockd, [blockq*3+64]   ; 12 * dc + 64\n    sar        blockd, 7               ; >> 7\n\n    INV_TRANS_INIT\n\n    INV_TRANS_PROCESS h\n    lea         destq, [destq+linesizeq*4]\n    INV_TRANS_PROCESS h\n    RET\n\nINIT_MMX mmxext\ncglobal vc1_inv_trans_8x4_dc, 3,4,0, dest, linesize, block\n    movsx      blockd, WORD [blockq]   ; dc\n    lea        blockd, [blockq*3+1]    ;  3 * dc + 1\n    sar        blockd, 1               ; >> 1\n    mov           r3d, blockd          ; dc\n    shl        blockd, 4               ; 16 * dc\n    lea        blockd, [blockq+r3+64]  ; 17 * dc + 64\n    sar        blockd, 7               ; >> 7\n\n    INV_TRANS_INIT\n\n    INV_TRANS_PROCESS a\n    RET\n\nINIT_MMX mmxext\ncglobal vc1_inv_trans_8x8_dc, 3,3,0, dest, linesize, block\n    movsx      blockd, WORD [blockq]   ; dc\n    lea        blockd, [blockq*3+1]    ;  3 * dc + 1\n    sar        blockd, 1               ; >> 1\n    lea        blockd, [blockq*3+16]   ;  3 * dc + 16\n    sar        blockd, 5               ; >> 5\n\n    INV_TRANS_INIT\n\n    INV_TRANS_PROCESS a\n    lea         destq, [destq+linesizeq*4]\n    INV_TRANS_PROCESS a\n    RET", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 241, "line_end": 292}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vc1dsp_mc.asm:8", "text": "movsx      blockd, WORD [blockq]   ; dc\n    lea        blockd, [blockq*3+1]    ;  3 * dc + 1\n    sar        blockd, 1               ; >> 1\n    lea        blockd, [blockq*3+16]   ;  3 * dc + 16\n    sar        blockd, 5               ; >> 5\n\n    INV_TRANS_INIT\n\n    INV_TRANS_PROCESS a\n    lea         destq, [destq+linesizeq*4]\n    INV_TRANS_PROCESS a\n    RET", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vc1dsp_mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vc1dsp_mc.asm", "line_start": 281, "line_end": 292}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:1", "text": ";******************************************************************************\n;* Core video DSP functions\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n; slow vertical extension loop function. Works with variable-width, and\n; does per-line reading/writing of source data\n\n%macro V_COPY_ROW 2 ; type (top/body/bottom), h\n.%1_y_loop:                                     ; do {\n    mov              wq, r7mp                   ;   initialize w (r7mp = wmp)\n.%1_x_loop:                                     ;   do {\n    movu             m0, [srcq+wq]              ;     m0 = read($mmsize)\n    movu      [dstq+wq], m0                     ;     write(m0, $mmsize)\n    add              wq, mmsize                 ;     w -= $mmsize\n    cmp              wq, -mmsize                ;   } while (w > $mmsize);\n    jl .%1_x_loop\n    movu             m0, [srcq-mmsize]          ;     m0 = read($mmsize)\n    movu  [dstq-mmsize], m0                     ;     write(m0, $mmsize)\n%ifidn %1, body                                 ;   if ($type == body) {\n    add            srcq, src_strideq            ;     src += src_stride\n%endif                                          ;   }\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec              %2                         ; } while (--$h);\n    jnz .%1_y_loop\n%endmacro\n\n; .----. <- zero\n; |    |    <- top is copied from first line in body of source\n; |----| <- start_y\n; |    |    <- body is copied verbatim (line-by-line) from source\n; |----| <- end_y\n; |    |    <- bottom is copied from last line in body of source\n; '----' <- bh\nINIT_XMM sse\n%if ARCH_X86_64\ncglobal emu_edge_vvar, 7, 8, 1, dst, dst_stride, src, src_stride, \\\n                                start_y, end_y, bh, w\n%else ; x86-32\ncglobal emu_edge_vvar, 1, 6, 1, dst, src, start_y, end_y, bh, w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:2", "text": "add            srcq, src_strideq            ;     src += src_stride\n%endif                                          ;   }\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec              %2                         ; } while (--$h);\n    jnz .%1_y_loop\n%endmacro\n\n; .----. <- zero\n; |    |    <- top is copied from first line in body of source\n; |----| <- start_y\n; |    |    <- body is copied verbatim (line-by-line) from source\n; |----| <- end_y\n; |    |    <- bottom is copied from last line in body of source\n; '----' <- bh\nINIT_XMM sse\n%if ARCH_X86_64\ncglobal emu_edge_vvar, 7, 8, 1, dst, dst_stride, src, src_stride, \\\n                                start_y, end_y, bh, w\n%else ; x86-32\ncglobal emu_edge_vvar, 1, 6, 1, dst, src, start_y, end_y, bh, w\n%define src_strideq r3mp\n%define dst_strideq r1mp\n    mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%endif\n    sub             bhq, end_yq                 ; bh    -= end_q\n    sub          end_yq, start_yq               ; end_q -= start_q\n    add            srcq, r7mp                   ; (r7mp = wmp)\n    add            dstq, r7mp                   ; (r7mp = wmp)\n    neg            r7mp                         ; (r7mp = wmp)\n    test       start_yq, start_yq               ; if (start_q) {\n    jz .body\n    V_COPY_ROW      top, start_yq               ;   v_copy_row(top, start_yq)\n.body:                                          ; }\n    V_COPY_ROW     body, end_yq                 ; v_copy_row(body, end_yq)\n    test            bhq, bhq                    ; if (bh) {\n    jz .end\n    sub            srcq, src_strideq            ;   src -= src_stride\n    V_COPY_ROW   bottom, bhq                    ;   v_copy_row(bottom, bh)\n.end:                                           ; }\n    RET\n\n%macro hvar_fn 0\ncglobal emu_edge_hvar, 5, 6, 1, dst, dst_stride, start_x, n_words, h, w\n    lea            dstq, [dstq+n_wordsq*2]\n    neg        n_wordsq\n    lea        start_xq, [start_xq+n_wordsq*2]\n.y_loop:                                        ; do {\n%if cpuflag(avx2)\n    vpbroadcastb     m0, [dstq+start_xq]\n    mov              wq, n_wordsq               ;   initialize w\n%else\n    movzx            wd, byte [dstq+start_xq]   ;   w = read(1)\n    imul             wd, 0x01010101             ;   w *= 0x01010101\n    movd             m0, wd\n    mov              wq, n_wordsq               ;   initialize w\n    pshufd           m0, m0, q0000              ;   splat\n%endif ; avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:3", "text": "V_COPY_ROW   bottom, bhq                    ;   v_copy_row(bottom, bh)\n.end:                                           ; }\n    RET\n\n%macro hvar_fn 0\ncglobal emu_edge_hvar, 5, 6, 1, dst, dst_stride, start_x, n_words, h, w\n    lea            dstq, [dstq+n_wordsq*2]\n    neg        n_wordsq\n    lea        start_xq, [start_xq+n_wordsq*2]\n.y_loop:                                        ; do {\n%if cpuflag(avx2)\n    vpbroadcastb     m0, [dstq+start_xq]\n    mov              wq, n_wordsq               ;   initialize w\n%else\n    movzx            wd, byte [dstq+start_xq]   ;   w = read(1)\n    imul             wd, 0x01010101             ;   w *= 0x01010101\n    movd             m0, wd\n    mov              wq, n_wordsq               ;   initialize w\n    pshufd           m0, m0, q0000              ;   splat\n%endif ; avx2\n.x_loop:                                        ;   do {\n    movu    [dstq+wq*2], m0                     ;     write($reg, $mmsize)\n    add              wq, mmsize/2               ;     w -= $mmsize/2\n    cmp              wq, -(mmsize/2)            ;   } while (w > $mmsize/2)\n    jl .x_loop\n    movu  [dstq-mmsize], m0                     ;   write($reg, $mmsize)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec              hq                         ; } while (h--)\n    jnz .y_loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nhvar_fn\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nhvar_fn\n%endif\n\n; macro to read/write a horizontal number of pixels (%2) to/from registers\n; on sse, - fills xmm0-15 for consecutive sets of 16 pixels\n;         - if (%2 & 8)  fills 8 bytes into xmm$next\n;         - if (%2 & 4)  fills 4 bytes into xmm$next\n;         - if (%2 & 3)  fills 1, 2 or 4 bytes in eax\n; writing data out is in the same way\n%macro READ_NUM_BYTES 2\n%assign %%off 0     ; offset in source buffer\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n    movu   xmm %+ %%xmm_idx, [srcq+%%off]\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %%off+mmsize\n%endrep ; %2/mmsize\n\n%if (%2-%%off) >= 8\n%if %2 > 16 && (%2-%%off) > 8\n    movu   xmm %+ %%xmm_idx, [srcq+%2-16]\n%assign %%xmm_idx %%xmm_idx+1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:4", "text": "; macro to read/write a horizontal number of pixels (%2) to/from registers\n; on sse, - fills xmm0-15 for consecutive sets of 16 pixels\n;         - if (%2 & 8)  fills 8 bytes into xmm$next\n;         - if (%2 & 4)  fills 4 bytes into xmm$next\n;         - if (%2 & 3)  fills 1, 2 or 4 bytes in eax\n; writing data out is in the same way\n%macro READ_NUM_BYTES 2\n%assign %%off 0     ; offset in source buffer\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n    movu   xmm %+ %%xmm_idx, [srcq+%%off]\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %%off+mmsize\n%endrep ; %2/mmsize\n\n%if (%2-%%off) >= 8\n%if %2 > 16 && (%2-%%off) > 8\n    movu   xmm %+ %%xmm_idx, [srcq+%2-16]\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %2\n%else\n    movq   xmm %+ %%xmm_idx, [srcq+%%off]\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %%off+8\n%endif\n%endif ; (%2-%%off) >= 8\n\n%if (%2-%%off) >= 4\n%if %2 > 8 && (%2-%%off) > 4\n    movq   xmm %+ %%xmm_idx, [srcq+%2-8]\n%assign %%off %2\n%else\n    movd   xmm %+ %%xmm_idx, [srcq+%%off]\n%assign %%off %%off+4\n%endif\n%assign %%xmm_idx %%xmm_idx+1\n%endif ; (%2-%%off) >= 4\n\n%if (%2-%%off) >= 1\n%if %2 >= 4\n    movd xmm %+ %%xmm_idx, [srcq+%2-4]\n%elif (%2-%%off) == 1\n    mov            valb, [srcq+%2-1]\n%elif (%2-%%off) == 2\n    mov            valw, [srcq+%2-2]\n%else\n    mov            valb, [srcq+%2-1]\n    ror            vald, 16\n    mov            valw, [srcq+%2-3]\n%endif\n%endif ; (%2-%%off) >= 1\n%endmacro ; READ_NUM_BYTES\n\n%macro WRITE_NUM_BYTES 2\n%assign %%off 0     ; offset in destination buffer\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n    movu   [dstq+%%off], xmm %+ %%xmm_idx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:5", "text": "%if %2 >= 4\n    movd xmm %+ %%xmm_idx, [srcq+%2-4]\n%elif (%2-%%off) == 1\n    mov            valb, [srcq+%2-1]\n%elif (%2-%%off) == 2\n    mov            valw, [srcq+%2-2]\n%else\n    mov            valb, [srcq+%2-1]\n    ror            vald, 16\n    mov            valw, [srcq+%2-3]\n%endif\n%endif ; (%2-%%off) >= 1\n%endmacro ; READ_NUM_BYTES\n\n%macro WRITE_NUM_BYTES 2\n%assign %%off 0     ; offset in destination buffer\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n    movu   [dstq+%%off], xmm %+ %%xmm_idx\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %%off+mmsize\n%endrep ; %2/mmsize\n\n%if (%2-%%off) >= 8\n%if %2 > 16 && (%2-%%off) > 8\n    movu   [dstq+%2-16], xmm %+ %%xmm_idx\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %2\n%else\n    movq   [dstq+%%off], xmm %+ %%xmm_idx\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %%off+8\n%endif\n%endif ; (%2-%%off) >= 8\n\n%if (%2-%%off) >= 4\n%if %2 > 8 && (%2-%%off) > 4\n    movq    [dstq+%2-8], xmm %+ %%xmm_idx\n%assign %%off %2\n%else\n    movd   [dstq+%%off], xmm %+ %%xmm_idx\n%assign %%off %%off+4\n%endif\n%assign %%xmm_idx %%xmm_idx+1\n%endif ; (%2-%%off) >= 4\n\n%if (%2-%%off) >= 1\n%if %2 >= 4\n    movd    [dstq+%2-4], xmm %+ %%xmm_idx\n%elif (%2-%%off) == 1\n    mov     [dstq+%2-1], valb\n%elif (%2-%%off) == 2\n    mov     [dstq+%2-2], valw\n%else\n    mov     [dstq+%2-3], valw\n    ror            vald, 16\n    mov     [dstq+%2-1], valb\n%ifnidn %1, body\n    ror            vald, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:6", "text": "%else\n    movd   [dstq+%%off], xmm %+ %%xmm_idx\n%assign %%off %%off+4\n%endif\n%assign %%xmm_idx %%xmm_idx+1\n%endif ; (%2-%%off) >= 4\n\n%if (%2-%%off) >= 1\n%if %2 >= 4\n    movd    [dstq+%2-4], xmm %+ %%xmm_idx\n%elif (%2-%%off) == 1\n    mov     [dstq+%2-1], valb\n%elif (%2-%%off) == 2\n    mov     [dstq+%2-2], valw\n%else\n    mov     [dstq+%2-3], valw\n    ror            vald, 16\n    mov     [dstq+%2-1], valb\n%ifnidn %1, body\n    ror            vald, 16\n%endif\n%endif\n%endif ; (%2-%%off) >= 1\n%endmacro ; WRITE_NUM_BYTES\n\n; vertical top/bottom extend and body copy fast loops\n; these are function pointers to set-width line copy functions, i.e.\n; they read a fixed number of pixels into set registers, and write\n; those out into the destination buffer\n%macro VERTICAL_EXTEND 2\n%assign %%n %1\n%rep 1+%2-%1\n%if %%n <= 3\n%if ARCH_X86_64\ncglobal emu_edge_vfix %+ %%n, 6, 8, 0, dst, dst_stride, src, src_stride, \\\n                                       start_y, end_y, val, bh\n    mov             bhq, r6mp                   ; r6mp = bhmp\n%else ; x86-32\ncglobal emu_edge_vfix %+ %%n, 0, 6, 0, val, dst, src, start_y, end_y, bh\n    mov            dstq, r0mp\n    mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%define dst_strideq r1mp\n%define src_strideq r3mp\n%endif ; x86-64/32\n%else\n%if ARCH_X86_64\ncglobal emu_edge_vfix %+ %%n, 7, 7, 1, dst, dst_stride, src, src_stride, \\\n                                       start_y, end_y, bh\n%else ; x86-32\ncglobal emu_edge_vfix %+ %%n, 1, 5, 1, dst, src, start_y, end_y, bh\n    mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%define dst_strideq r1mp\n%define src_strideq r3mp\n%endif ; x86-64/32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:7", "text": "mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%define dst_strideq r1mp\n%define src_strideq r3mp\n%endif ; x86-64/32\n%else\n%if ARCH_X86_64\ncglobal emu_edge_vfix %+ %%n, 7, 7, 1, dst, dst_stride, src, src_stride, \\\n                                       start_y, end_y, bh\n%else ; x86-32\ncglobal emu_edge_vfix %+ %%n, 1, 5, 1, dst, src, start_y, end_y, bh\n    mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%define dst_strideq r1mp\n%define src_strideq r3mp\n%endif ; x86-64/32\n%endif\n    ; FIXME move this to c wrapper?\n    sub             bhq, end_yq                 ; bh    -= end_y\n    sub          end_yq, start_yq               ; end_y -= start_y\n\n    ; extend pixels above body\n    test       start_yq, start_yq               ; if (start_y) {\n    jz .body_loop\n    READ_NUM_BYTES  top, %%n                    ;   $variable_regs = read($n)\n.top_loop:                                      ;   do {\n    WRITE_NUM_BYTES top, %%n                    ;     write($variable_regs, $n)\n    add            dstq, dst_strideq            ;     dst += linesize\n    dec        start_yq                         ;   } while (--start_y)\n    jnz .top_loop                               ; }\n\n    ; copy body pixels\n.body_loop:                                     ; do {\n    READ_NUM_BYTES  body, %%n                   ;   $variable_regs = read($n)\n    WRITE_NUM_BYTES body, %%n                   ;   write($variable_regs, $n)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    add            srcq, src_strideq            ;   src += src_stride\n    dec          end_yq                         ; } while (--end_y)\n    jnz .body_loop\n\n    ; copy bottom pixels\n    test            bhq, bhq                    ; if (block_h) {\n    jz .end\n    sub            srcq, src_strideq            ;   src -= linesize\n    READ_NUM_BYTES  bottom, %%n                 ;   $variable_regs = read($n)\n.bottom_loop:                                   ;   do {\n    WRITE_NUM_BYTES bottom, %%n                 ;     write($variable_regs, $n)\n    add            dstq, dst_strideq            ;     dst += linesize\n    dec             bhq                         ;   } while (--bh)\n    jnz .bottom_loop                            ; }\n\n.end:\n    RET\n%assign %%n %%n+1\n%endrep ; 1+%2-%1\n%endmacro ; VERTICAL_EXTEND", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:8", "text": "add            srcq, src_strideq            ;   src += src_stride\n    dec          end_yq                         ; } while (--end_y)\n    jnz .body_loop\n\n    ; copy bottom pixels\n    test            bhq, bhq                    ; if (block_h) {\n    jz .end\n    sub            srcq, src_strideq            ;   src -= linesize\n    READ_NUM_BYTES  bottom, %%n                 ;   $variable_regs = read($n)\n.bottom_loop:                                   ;   do {\n    WRITE_NUM_BYTES bottom, %%n                 ;     write($variable_regs, $n)\n    add            dstq, dst_strideq            ;     dst += linesize\n    dec             bhq                         ;   } while (--bh)\n    jnz .bottom_loop                            ; }\n\n.end:\n    RET\n%assign %%n %%n+1\n%endrep ; 1+%2-%1\n%endmacro ; VERTICAL_EXTEND\n\nINIT_XMM sse2\nVERTICAL_EXTEND 1, 22\n\n; left/right (horizontal) fast extend functions\n; these are essentially identical to the vertical extend ones above,\n; just left/right separated because number of pixels to extend is\n; obviously not the same on both sides.\n\n%macro READ_V_PIXEL 2\n%if cpuflag(avx2)\n    vpbroadcastb     m0, %2\n%else\n    movzx          vald, byte %2\n    imul           vald, 0x01010101\n%if %1 >= 8\n    movd             m0, vald\n    pshufd           m0, m0, q0000\n%endif ; %1 > 16\n%endif ; avx2\n%endmacro ; READ_V_PIXEL\n\n%macro WRITE_V_PIXEL 2\n%assign %%off 0\n\n%if %1 >= 8\n\n%rep %1/mmsize\n    movu     [%2+%%off], m0\n%assign %%off %%off+mmsize\n%endrep ; %1/mmsize\n\n%if %1-%%off >= 8\n%if %1 > 16 && %1-%%off > 8\n    movu     [%2+%1-16], m0\n%assign %%off %1\n%else\n    movq     [%2+%%off], m0\n%assign %%off %%off+8\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:9", "text": "%endmacro ; READ_V_PIXEL\n\n%macro WRITE_V_PIXEL 2\n%assign %%off 0\n\n%if %1 >= 8\n\n%rep %1/mmsize\n    movu     [%2+%%off], m0\n%assign %%off %%off+mmsize\n%endrep ; %1/mmsize\n\n%if %1-%%off >= 8\n%if %1 > 16 && %1-%%off > 8\n    movu     [%2+%1-16], m0\n%assign %%off %1\n%else\n    movq     [%2+%%off], m0\n%assign %%off %%off+8\n%endif\n%endif ; %1-%%off >= 8\n\n%if %1-%%off >= 4\n%if %1 > 8 && %1-%%off > 4\n    movq      [%2+%1-8], m0\n%assign %%off %1\n%else\n    movd     [%2+%%off], m0\n%assign %%off %%off+4\n%endif\n%endif ; %1-%%off >= 4\n\n%else ; %1 < 8\n\n%rep %1/4\n    mov      [%2+%%off], vald\n%assign %%off %%off+4\n%endrep ; %1/4\n\n%endif ; %1 >=/< 8\n\n%if %1-%%off == 2\n%if cpuflag(avx2)\n    movd     [%2+%%off-2], m0\n%else\n    mov      [%2+%%off], valw\n%endif ; avx2\n%endif ; (%1-%%off)/2\n%endmacro ; WRITE_V_PIXEL\n\n%macro H_EXTEND 2\n%assign %%n %1\n%rep 1+(%2-%1)/2\n%if cpuflag(avx2)\ncglobal emu_edge_hfix %+ %%n, 4, 4, 1, dst, dst_stride, start_x, bh\n%else\ncglobal emu_edge_hfix %+ %%n, 4, 5, 1, dst, dst_stride, start_x, bh, val\n%endif\n.loop_y:                                        ; do {\n    READ_V_PIXEL    %%n, [dstq+start_xq]        ;   $variable_regs = read($n)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:10", "text": "%if %1-%%off == 2\n%if cpuflag(avx2)\n    movd     [%2+%%off-2], m0\n%else\n    mov      [%2+%%off], valw\n%endif ; avx2\n%endif ; (%1-%%off)/2\n%endmacro ; WRITE_V_PIXEL\n\n%macro H_EXTEND 2\n%assign %%n %1\n%rep 1+(%2-%1)/2\n%if cpuflag(avx2)\ncglobal emu_edge_hfix %+ %%n, 4, 4, 1, dst, dst_stride, start_x, bh\n%else\ncglobal emu_edge_hfix %+ %%n, 4, 5, 1, dst, dst_stride, start_x, bh, val\n%endif\n.loop_y:                                        ; do {\n    READ_V_PIXEL    %%n, [dstq+start_xq]        ;   $variable_regs = read($n)\n    WRITE_V_PIXEL   %%n, dstq                   ;   write($variable_regs, $n)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec             bhq                         ; } while (--bh)\n    jnz .loop_y\n    RET\n%assign %%n %%n+2\n%endrep ; 1+(%2-%1)/2\n%endmacro ; H_EXTEND\n\nINIT_XMM sse2\nH_EXTEND 2, 22\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nH_EXTEND 8, 22\n%endif\n\nINIT_MMX mmxext\ncglobal prefetch, 3, 3, 0, buf, stride, h\n.loop:\n    prefetcht0 [bufq]\n    add      bufq, strideq\n    dec        hd\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/videodsp.asm", "line_start": 361, "line_end": 405}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:3", "text": "V_COPY_ROW   bottom, bhq                    ;   v_copy_row(bottom, bh)\n.end:                                           ; }\n    RET\n\n%macro hvar_fn 0\ncglobal emu_edge_hvar, 5, 6, 1, dst, dst_stride, start_x, n_words, h, w\n    lea            dstq, [dstq+n_wordsq*2]\n    neg        n_wordsq\n    lea        start_xq, [start_xq+n_wordsq*2]\n.y_loop:                                        ; do {\n%if cpuflag(avx2)\n    vpbroadcastb     m0, [dstq+start_xq]\n    mov              wq, n_wordsq               ;   initialize w\n%else\n    movzx            wd, byte [dstq+start_xq]   ;   w = read(1)\n    imul             wd, 0x01010101             ;   w *= 0x01010101\n    movd             m0, wd\n    mov              wq, n_wordsq               ;   initialize w\n    pshufd           m0, m0, q0000              ;   splat\n%endif ; avx2\n.x_loop:                                        ;   do {\n    movu    [dstq+wq*2], m0                     ;     write($reg, $mmsize)\n    add              wq, mmsize/2               ;     w -= $mmsize/2\n    cmp              wq, -(mmsize/2)            ;   } while (w > $mmsize/2)\n    jl .x_loop\n    movu  [dstq-mmsize], m0                     ;   write($reg, $mmsize)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec              hq                         ; } while (h--)\n    jnz .y_loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nhvar_fn\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nhvar_fn\n%endif\n\n; macro to read/write a horizontal number of pixels (%2) to/from registers\n; on sse, - fills xmm0-15 for consecutive sets of 16 pixels\n;         - if (%2 & 8)  fills 8 bytes into xmm$next\n;         - if (%2 & 4)  fills 4 bytes into xmm$next\n;         - if (%2 & 3)  fills 1, 2 or 4 bytes in eax\n; on mmx, - fills mm0-7 for consecutive sets of 8 pixels\n;         - if (%2 & 4)  fills 4 bytes into mm$next\n;         - if (%2 & 3)  fills 1, 2 or 4 bytes in eax\n; writing data out is in the same way\n%macro READ_NUM_BYTES 2\n%assign %%off 0     ; offset in source buffer\n%assign %%mmx_idx 0 ; mmx register index\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n%if mmsize == 16\n    movu   xmm %+ %%xmm_idx, [srcq+%%off]\n%assign %%xmm_idx %%xmm_idx+1\n%else ; mmx\n    movu    mm %+ %%mmx_idx, [srcq+%%off]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:4", "text": "; macro to read/write a horizontal number of pixels (%2) to/from registers\n; on sse, - fills xmm0-15 for consecutive sets of 16 pixels\n;         - if (%2 & 8)  fills 8 bytes into xmm$next\n;         - if (%2 & 4)  fills 4 bytes into xmm$next\n;         - if (%2 & 3)  fills 1, 2 or 4 bytes in eax\n; on mmx, - fills mm0-7 for consecutive sets of 8 pixels\n;         - if (%2 & 4)  fills 4 bytes into mm$next\n;         - if (%2 & 3)  fills 1, 2 or 4 bytes in eax\n; writing data out is in the same way\n%macro READ_NUM_BYTES 2\n%assign %%off 0     ; offset in source buffer\n%assign %%mmx_idx 0 ; mmx register index\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n%if mmsize == 16\n    movu   xmm %+ %%xmm_idx, [srcq+%%off]\n%assign %%xmm_idx %%xmm_idx+1\n%else ; mmx\n    movu    mm %+ %%mmx_idx, [srcq+%%off]\n%assign %%mmx_idx %%mmx_idx+1\n%endif\n%assign %%off %%off+mmsize\n%endrep ; %2/mmsize\n\n%if mmsize == 16\n%if (%2-%%off) >= 8\n%if %2 > 16 && (%2-%%off) > 8\n    movu   xmm %+ %%xmm_idx, [srcq+%2-16]\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %2\n%else\n    movq    mm %+ %%mmx_idx, [srcq+%%off]\n%assign %%mmx_idx %%mmx_idx+1\n%assign %%off %%off+8\n%endif\n%endif ; (%2-%%off) >= 8\n%endif\n\n%if (%2-%%off) >= 4\n%if %2 > 8 && (%2-%%off) > 4\n    movq    mm %+ %%mmx_idx, [srcq+%2-8]\n%assign %%off %2\n%else\n    movd    mm %+ %%mmx_idx, [srcq+%%off]\n%assign %%off %%off+4\n%endif\n%assign %%mmx_idx %%mmx_idx+1\n%endif ; (%2-%%off) >= 4\n\n%if (%2-%%off) >= 1\n%if %2 >= 4\n    movd mm %+ %%mmx_idx, [srcq+%2-4]\n%elif (%2-%%off) == 1\n    mov            valb, [srcq+%2-1]\n%elif (%2-%%off) == 2\n    mov            valw, [srcq+%2-2]\n%else\n    mov            valb, [srcq+%2-1]\n    ror            vald, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:5", "text": "%if %2 > 8 && (%2-%%off) > 4\n    movq    mm %+ %%mmx_idx, [srcq+%2-8]\n%assign %%off %2\n%else\n    movd    mm %+ %%mmx_idx, [srcq+%%off]\n%assign %%off %%off+4\n%endif\n%assign %%mmx_idx %%mmx_idx+1\n%endif ; (%2-%%off) >= 4\n\n%if (%2-%%off) >= 1\n%if %2 >= 4\n    movd mm %+ %%mmx_idx, [srcq+%2-4]\n%elif (%2-%%off) == 1\n    mov            valb, [srcq+%2-1]\n%elif (%2-%%off) == 2\n    mov            valw, [srcq+%2-2]\n%else\n    mov            valb, [srcq+%2-1]\n    ror            vald, 16\n    mov            valw, [srcq+%2-3]\n%endif\n%endif ; (%2-%%off) >= 1\n%endmacro ; READ_NUM_BYTES\n\n%macro WRITE_NUM_BYTES 2\n%assign %%off 0     ; offset in destination buffer\n%assign %%mmx_idx 0 ; mmx register index\n%assign %%xmm_idx 0 ; xmm register index\n\n%rep %2/mmsize\n%if mmsize == 16\n    movu   [dstq+%%off], xmm %+ %%xmm_idx\n%assign %%xmm_idx %%xmm_idx+1\n%else ; mmx\n    movu   [dstq+%%off], mm %+ %%mmx_idx\n%assign %%mmx_idx %%mmx_idx+1\n%endif\n%assign %%off %%off+mmsize\n%endrep ; %2/mmsize\n\n%if mmsize == 16\n%if (%2-%%off) >= 8\n%if %2 > 16 && (%2-%%off) > 8\n    movu   [dstq+%2-16], xmm %+ %%xmm_idx\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %2\n%else\n    movq   [dstq+%%off], mm %+ %%mmx_idx\n%assign %%mmx_idx %%mmx_idx+1\n%assign %%off %%off+8\n%endif\n%endif ; (%2-%%off) >= 8\n%endif\n\n%if (%2-%%off) >= 4\n%if %2 > 8 && (%2-%%off) > 4\n    movq    [dstq+%2-8], mm %+ %%mmx_idx\n%assign %%off %2\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:6", "text": "%if mmsize == 16\n%if (%2-%%off) >= 8\n%if %2 > 16 && (%2-%%off) > 8\n    movu   [dstq+%2-16], xmm %+ %%xmm_idx\n%assign %%xmm_idx %%xmm_idx+1\n%assign %%off %2\n%else\n    movq   [dstq+%%off], mm %+ %%mmx_idx\n%assign %%mmx_idx %%mmx_idx+1\n%assign %%off %%off+8\n%endif\n%endif ; (%2-%%off) >= 8\n%endif\n\n%if (%2-%%off) >= 4\n%if %2 > 8 && (%2-%%off) > 4\n    movq    [dstq+%2-8], mm %+ %%mmx_idx\n%assign %%off %2\n%else\n    movd   [dstq+%%off], mm %+ %%mmx_idx\n%assign %%off %%off+4\n%endif\n%assign %%mmx_idx %%mmx_idx+1\n%endif ; (%2-%%off) >= 4\n\n%if (%2-%%off) >= 1\n%if %2 >= 4\n    movd    [dstq+%2-4], mm %+ %%mmx_idx\n%elif (%2-%%off) == 1\n    mov     [dstq+%2-1], valb\n%elif (%2-%%off) == 2\n    mov     [dstq+%2-2], valw\n%else\n    mov     [dstq+%2-3], valw\n    ror            vald, 16\n    mov     [dstq+%2-1], valb\n%ifnidn %1, body\n    ror            vald, 16\n%endif\n%endif\n%endif ; (%2-%%off) >= 1\n%endmacro ; WRITE_NUM_BYTES\n\n; vertical top/bottom extend and body copy fast loops\n; these are function pointers to set-width line copy functions, i.e.\n; they read a fixed number of pixels into set registers, and write\n; those out into the destination buffer\n%macro VERTICAL_EXTEND 2\n%assign %%n %1\n%rep 1+%2-%1\n%if %%n <= 3\n%if ARCH_X86_64\ncglobal emu_edge_vfix %+ %%n, 6, 8, 0, dst, dst_stride, src, src_stride, \\\n                                       start_y, end_y, val, bh\n    mov             bhq, r6mp                   ; r6mp = bhmp\n%else ; x86-32\ncglobal emu_edge_vfix %+ %%n, 0, 6, 0, val, dst, src, start_y, end_y, bh\n    mov            dstq, r0mp\n    mov            srcq, r2mp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:7", "text": "%endif\n%endif ; (%2-%%off) >= 1\n%endmacro ; WRITE_NUM_BYTES\n\n; vertical top/bottom extend and body copy fast loops\n; these are function pointers to set-width line copy functions, i.e.\n; they read a fixed number of pixels into set registers, and write\n; those out into the destination buffer\n%macro VERTICAL_EXTEND 2\n%assign %%n %1\n%rep 1+%2-%1\n%if %%n <= 3\n%if ARCH_X86_64\ncglobal emu_edge_vfix %+ %%n, 6, 8, 0, dst, dst_stride, src, src_stride, \\\n                                       start_y, end_y, val, bh\n    mov             bhq, r6mp                   ; r6mp = bhmp\n%else ; x86-32\ncglobal emu_edge_vfix %+ %%n, 0, 6, 0, val, dst, src, start_y, end_y, bh\n    mov            dstq, r0mp\n    mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%define dst_strideq r1mp\n%define src_strideq r3mp\n%endif ; x86-64/32\n%else\n%if ARCH_X86_64\ncglobal emu_edge_vfix %+ %%n, 7, 7, 1, dst, dst_stride, src, src_stride, \\\n                                       start_y, end_y, bh\n%else ; x86-32\ncglobal emu_edge_vfix %+ %%n, 1, 5, 1, dst, src, start_y, end_y, bh\n    mov            srcq, r2mp\n    mov        start_yq, r4mp\n    mov          end_yq, r5mp\n    mov             bhq, r6mp\n%define dst_strideq r1mp\n%define src_strideq r3mp\n%endif ; x86-64/32\n%endif\n    ; FIXME move this to c wrapper?\n    sub             bhq, end_yq                 ; bh    -= end_y\n    sub          end_yq, start_yq               ; end_y -= start_y\n\n    ; extend pixels above body\n    test       start_yq, start_yq               ; if (start_y) {\n    jz .body_loop\n    READ_NUM_BYTES  top, %%n                    ;   $variable_regs = read($n)\n.top_loop:                                      ;   do {\n    WRITE_NUM_BYTES top, %%n                    ;     write($variable_regs, $n)\n    add            dstq, dst_strideq            ;     dst += linesize\n    dec        start_yq                         ;   } while (--start_y)\n    jnz .top_loop                               ; }\n\n    ; copy body pixels\n.body_loop:                                     ; do {\n    READ_NUM_BYTES  body, %%n                   ;   $variable_regs = read($n)\n    WRITE_NUM_BYTES body, %%n                   ;   write($variable_regs, $n)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    add            srcq, src_strideq            ;   src += src_stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:8", "text": "; FIXME move this to c wrapper?\n    sub             bhq, end_yq                 ; bh    -= end_y\n    sub          end_yq, start_yq               ; end_y -= start_y\n\n    ; extend pixels above body\n    test       start_yq, start_yq               ; if (start_y) {\n    jz .body_loop\n    READ_NUM_BYTES  top, %%n                    ;   $variable_regs = read($n)\n.top_loop:                                      ;   do {\n    WRITE_NUM_BYTES top, %%n                    ;     write($variable_regs, $n)\n    add            dstq, dst_strideq            ;     dst += linesize\n    dec        start_yq                         ;   } while (--start_y)\n    jnz .top_loop                               ; }\n\n    ; copy body pixels\n.body_loop:                                     ; do {\n    READ_NUM_BYTES  body, %%n                   ;   $variable_regs = read($n)\n    WRITE_NUM_BYTES body, %%n                   ;   write($variable_regs, $n)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    add            srcq, src_strideq            ;   src += src_stride\n    dec          end_yq                         ; } while (--end_y)\n    jnz .body_loop\n\n    ; copy bottom pixels\n    test            bhq, bhq                    ; if (block_h) {\n    jz .end\n    sub            srcq, src_strideq            ;   src -= linesize\n    READ_NUM_BYTES  bottom, %%n                 ;   $variable_regs = read($n)\n.bottom_loop:                                   ;   do {\n    WRITE_NUM_BYTES bottom, %%n                 ;     write($variable_regs, $n)\n    add            dstq, dst_strideq            ;     dst += linesize\n    dec             bhq                         ;   } while (--bh)\n    jnz .bottom_loop                            ; }\n\n.end:\n    RET\n%assign %%n %%n+1\n%endrep ; 1+%2-%1\n%endmacro ; VERTICAL_EXTEND\n\nINIT_MMX mmx\nVERTICAL_EXTEND 1, 15\n\nINIT_XMM sse\nVERTICAL_EXTEND 16, 22\n\n; left/right (horizontal) fast extend functions\n; these are essentially identical to the vertical extend ones above,\n; just left/right separated because number of pixels to extend is\n; obviously not the same on both sides.\n\n%macro READ_V_PIXEL 2\n%if cpuflag(avx2)\n    vpbroadcastb     m0, %2\n%else\n    movzx          vald, byte %2\n    imul           vald, 0x01010101\n%if %1 >= 8\n    movd             m0, vald\n%if mmsize == 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:9", "text": "INIT_MMX mmx\nVERTICAL_EXTEND 1, 15\n\nINIT_XMM sse\nVERTICAL_EXTEND 16, 22\n\n; left/right (horizontal) fast extend functions\n; these are essentially identical to the vertical extend ones above,\n; just left/right separated because number of pixels to extend is\n; obviously not the same on both sides.\n\n%macro READ_V_PIXEL 2\n%if cpuflag(avx2)\n    vpbroadcastb     m0, %2\n%else\n    movzx          vald, byte %2\n    imul           vald, 0x01010101\n%if %1 >= 8\n    movd             m0, vald\n%if mmsize == 16\n    pshufd           m0, m0, q0000\n%else\n    punpckldq        m0, m0\n%endif ; mmsize == 16\n%endif ; %1 > 16\n%endif ; avx2\n%endmacro ; READ_V_PIXEL\n\n%macro WRITE_V_PIXEL 2\n%assign %%off 0\n\n%if %1 >= 8\n\n%rep %1/mmsize\n    movu     [%2+%%off], m0\n%assign %%off %%off+mmsize\n%endrep ; %1/mmsize\n\n%if mmsize == 16\n%if %1-%%off >= 8\n%if %1 > 16 && %1-%%off > 8\n    movu     [%2+%1-16], m0\n%assign %%off %1\n%else\n    movq     [%2+%%off], m0\n%assign %%off %%off+8\n%endif\n%endif ; %1-%%off >= 8\n%endif ; mmsize == 16\n\n%if %1-%%off >= 4\n%if %1 > 8 && %1-%%off > 4\n    movq      [%2+%1-8], m0\n%assign %%off %1\n%else\n    movd     [%2+%%off], m0\n%assign %%off %%off+4\n%endif\n%endif ; %1-%%off >= 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:10", "text": "%if %1 > 16 && %1-%%off > 8\n    movu     [%2+%1-16], m0\n%assign %%off %1\n%else\n    movq     [%2+%%off], m0\n%assign %%off %%off+8\n%endif\n%endif ; %1-%%off >= 8\n%endif ; mmsize == 16\n\n%if %1-%%off >= 4\n%if %1 > 8 && %1-%%off > 4\n    movq      [%2+%1-8], m0\n%assign %%off %1\n%else\n    movd     [%2+%%off], m0\n%assign %%off %%off+4\n%endif\n%endif ; %1-%%off >= 4\n\n%else ; %1 < 8\n\n%rep %1/4\n    mov      [%2+%%off], vald\n%assign %%off %%off+4\n%endrep ; %1/4\n\n%endif ; %1 >=/< 8\n\n%if %1-%%off == 2\n%if cpuflag(avx2)\n    movd     [%2+%%off-2], m0\n%else\n    mov      [%2+%%off], valw\n%endif ; avx2\n%endif ; (%1-%%off)/2\n%endmacro ; WRITE_V_PIXEL\n\n%macro H_EXTEND 2\n%assign %%n %1\n%rep 1+(%2-%1)/2\n%if cpuflag(avx2)\ncglobal emu_edge_hfix %+ %%n, 4, 4, 1, dst, dst_stride, start_x, bh\n%else\ncglobal emu_edge_hfix %+ %%n, 4, 5, 1, dst, dst_stride, start_x, bh, val\n%endif\n.loop_y:                                        ; do {\n    READ_V_PIXEL    %%n, [dstq+start_xq]        ;   $variable_regs = read($n)\n    WRITE_V_PIXEL   %%n, dstq                   ;   write($variable_regs, $n)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec             bhq                         ; } while (--bh)\n    jnz .loop_y\n    RET\n%assign %%n %%n+2\n%endrep ; 1+(%2-%1)/2\n%endmacro ; H_EXTEND\n\nINIT_MMX mmx\nH_EXTEND 2, 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/videodsp.asm:11", "text": "%rep 1+(%2-%1)/2\n%if cpuflag(avx2)\ncglobal emu_edge_hfix %+ %%n, 4, 4, 1, dst, dst_stride, start_x, bh\n%else\ncglobal emu_edge_hfix %+ %%n, 4, 5, 1, dst, dst_stride, start_x, bh, val\n%endif\n.loop_y:                                        ; do {\n    READ_V_PIXEL    %%n, [dstq+start_xq]        ;   $variable_regs = read($n)\n    WRITE_V_PIXEL   %%n, dstq                   ;   write($variable_regs, $n)\n    add            dstq, dst_strideq            ;   dst += dst_stride\n    dec             bhq                         ; } while (--bh)\n    jnz .loop_y\n    RET\n%assign %%n %%n+2\n%endrep ; 1+(%2-%1)/2\n%endmacro ; H_EXTEND\n\nINIT_MMX mmx\nH_EXTEND 2, 14\n\nINIT_XMM sse2\nH_EXTEND 16, 22\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nH_EXTEND 8, 22\n%endif\n\nINIT_MMX mmxext\ncglobal prefetch, 3, 3, 0, buf, stride, h\n.loop:\n    prefetcht0 [bufq]\n    add      bufq, strideq\n    dec        hd\n    jg .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/videodsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/videodsp.asm", "line_start": 401, "line_end": 436}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vorbisdsp.asm:1", "text": ";******************************************************************************\n;* Vorbis x86 optimizations\n;* Copyright (C) 2006 Loren Merritt <lorenm@u.washington.edu>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npdw_80000000: times 4 dd 0x80000000\n\nSECTION .text\n\nINIT_XMM sse\ncglobal vorbis_inverse_coupling, 3, 3, 6, mag, ang, block_size\n    mova                     m5, [pdw_80000000]\n    shl             block_sized, 2\n    add                    magq, block_sizeq\n    add                    angq, block_sizeq\n    neg             block_sizeq\n\nalign 16\n.loop:\n    mova                     m0, [magq+block_sizeq]\n    mova                     m1, [angq+block_sizeq]\n    xorps                    m2, m2\n    xorps                    m3, m3\n    cmpleps                  m2, m0     ; m <= 0.0\n    cmpleps                  m3, m1     ; a <= 0.0\n    andps                    m2, m5     ; keep only the sign bit\n    xorps                    m1, m2\n    mova                     m4, m3\n    andps                    m3, m1\n    andnps                   m4, m1\n    addps                    m3, m0     ; a = m + ((a < 0) & (a ^ sign(m)))\n    subps                    m0, m4     ; m = m + ((a > 0) & (a ^ sign(m)))\n    mova     [angq+block_sizeq], m3\n    mova     [magq+block_sizeq], m0\n    add             block_sizeq, mmsize\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vorbisdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vorbisdsp.asm", "line_start": 1, "line_end": 57}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized functions for the VP3 decoder\n;* Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n; ASM-optimized functions cribbed from the original VP3 source code.\n\nSECTION_RODATA\n\nvp3_idct_data: times 8 dw 64277\n               times 8 dw 60547\n               times 8 dw 54491\n               times 8 dw 46341\n               times 8 dw 36410\n               times 8 dw 25080\n               times 8 dw 12785\n\ncextern pb_80\n\ncextern pw_4\ncextern pw_8\n\nSECTION .text\n\n; in:  p0 in m5, p1 in m4, p2 in m2, p3 in m1, all unpacked;\n;      m0 must be zeroed\n; out: p1 in m4, p2 in m2\n%macro VP3_LOOP_FILTER 0\n    psubw         m5, m1\n    mova          m3, m2\n    paddw         m5, [pw_4]\n    psubw         m3, m4\n    mova          m1, m3\n    paddw         m1, m5\n    mova          m5, [r2+516]  ; 2 * filter limit\n    paddw         m3, m3\n    paddw         m3, m1\n    psraw         m3, 3\n\n    ; We use that clamp(2clamp(x,2f),2f)-clamp(x,2f)\n    ; (with f = filter limit and clamping to the interval [-f,f])\n    ; gives the desired filter value", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:2", "text": "SECTION .text\n\n; in:  p0 in m5, p1 in m4, p2 in m2, p3 in m1, all unpacked;\n;      m0 must be zeroed\n; out: p1 in m4, p2 in m2\n%macro VP3_LOOP_FILTER 0\n    psubw         m5, m1\n    mova          m3, m2\n    paddw         m5, [pw_4]\n    psubw         m3, m4\n    mova          m1, m3\n    paddw         m1, m5\n    mova          m5, [r2+516]  ; 2 * filter limit\n    paddw         m3, m3\n    paddw         m3, m1\n    psraw         m3, 3\n\n    ; We use that clamp(2clamp(x,2f),2f)-clamp(x,2f)\n    ; (with f = filter limit and clamping to the interval [-f,f])\n    ; gives the desired filter value\n    psubw         m0, m5\n    pminsw        m3, m5\n    pmaxsw        m3, m0\n    mova          m1, m3\n    paddw         m1, m1\n    pminsw        m1, m5\n    pmaxsw        m1, m0\n    psubw         m1, m3\n    psubw         m2, m1\n    paddw         m4, m1\n\n    packuswb      m4, m4\n    packuswb      m2, m2\n%endmacro\n\n%macro STORE_4_WORDS 1\n%if ARCH_X86_64\n    movq          r2, %1\n    mov  [r0     -1], r2w\n    shr           r2, 16\n    mov  [r0+r1  -1], r2w\n    shr           r2, 16\n%else\n    movd         r2d, %1\n    mov  [r0     -1], r2w\n    psrlq         %1, 32\n    shr          r2d, 16\n    mov  [r0+r1  -1], r2w\n    movd         r2d, %1\n%endif\n    mov  [r0+r1*2-1], r2w\n    shr          r2d, 16\n    mov  [r0+r3  -1], r2w\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_v_loop_filter, 3, 3, 6\n    movq          m1, [r0+r1  ]\n    neg           r1\n    movq          m2, [r0     ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:3", "text": "mov  [r0+r1  -1], r2w\n    shr           r2, 16\n%else\n    movd         r2d, %1\n    mov  [r0     -1], r2w\n    psrlq         %1, 32\n    shr          r2d, 16\n    mov  [r0+r1  -1], r2w\n    movd         r2d, %1\n%endif\n    mov  [r0+r1*2-1], r2w\n    shr          r2d, 16\n    mov  [r0+r3  -1], r2w\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_v_loop_filter, 3, 3, 6\n    movq          m1, [r0+r1  ]\n    neg           r1\n    movq          m2, [r0     ]\n    movq          m4, [r0+r1  ]\n    movq          m5, [r0+r1*2]\n\n    pxor          m0, m0\n    punpcklbw     m1, m0\n    punpcklbw     m2, m0\n    punpcklbw     m4, m0\n    punpcklbw     m5, m0\n\n    VP3_LOOP_FILTER\n\n    movq     [r0+r1], m4\n    movq     [r0   ], m2\n    RET\n\n%macro TRANSPOSE4x4 1\n    movd         %1, [r0     -2]\n    movd         m2, [r0+r1  -2]\n    movd         m3, [r0+r1*2-2]\n    movd         m4, [r0+r3  -2]\n    punpcklbw    %1, m2\n    punpcklbw    m3, m4\n    punpcklwd    %1, m3\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_h_loop_filter, 3, 4, 6\n    lea           r3, [r1*3]\n\n    TRANSPOSE4x4  m5\n    lea           r0, [r0+r1*4]\n    TRANSPOSE4x4  m0\n    mova          m2, m5\n    punpckldq     m5, m0\n    punpckhdq     m2, m0\n    pxor          m0, m0\n    mova          m4, m5\n    punpcklbw     m5, m0\n    punpckhbw     m4, m0\n    mova          m1, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:4", "text": "punpcklbw    %1, m2\n    punpcklbw    m3, m4\n    punpcklwd    %1, m3\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_h_loop_filter, 3, 4, 6\n    lea           r3, [r1*3]\n\n    TRANSPOSE4x4  m5\n    lea           r0, [r0+r1*4]\n    TRANSPOSE4x4  m0\n    mova          m2, m5\n    punpckldq     m5, m0\n    punpckhdq     m2, m0\n    pxor          m0, m0\n    mova          m4, m5\n    punpcklbw     m5, m0\n    punpckhbw     m4, m0\n    mova          m1, m2\n    punpcklbw     m2, m0\n    punpckhbw     m1, m0\n\n    VP3_LOOP_FILTER\n\n    punpcklbw     m4, m2\n    mova          m2, m4\n    punpckhqdq    m2, m2\n\n    STORE_4_WORDS m2\n    sub           r0, r3\n    sub           r0, r1\n    STORE_4_WORDS m4\n    RET\n\n%macro PAVGB_NO_RND 0\n    pxor          m0, m4\n    pxor          m1, m4\n    pavgb         m0, m1\n    pxor          m0, m4\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_put_no_rnd_pixels8_l2_sse2(uint8_t *dst, const uint8_t *a,\n;                                        const uint8_t *b, ptrdiff_t stride,\n;                                        int h)\ncglobal vp3_put_no_rnd_pixels8_l2, 5, 6, 5, dst, src1, src2, stride, h, stride3\n    lea    stride3q,[strideq+strideq*2]\n    pcmpeqb       m4, m4\n.loop:\n    movq          m0, [src1q]\n    movq          m1, [src2q]\n    movhps        m0, [src1q+strideq]\n    movhps        m1, [src2q+strideq]\n    PAVGB_NO_RND\n    movq      [dstq], m0\n    movhps [dstq+strideq], m0\n\n    movq          m0, [src1q+strideq*2]\n    movq          m1, [src2q+strideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:5", "text": "%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_put_no_rnd_pixels8_l2_sse2(uint8_t *dst, const uint8_t *a,\n;                                        const uint8_t *b, ptrdiff_t stride,\n;                                        int h)\ncglobal vp3_put_no_rnd_pixels8_l2, 5, 6, 5, dst, src1, src2, stride, h, stride3\n    lea    stride3q,[strideq+strideq*2]\n    pcmpeqb       m4, m4\n.loop:\n    movq          m0, [src1q]\n    movq          m1, [src2q]\n    movhps        m0, [src1q+strideq]\n    movhps        m1, [src2q+strideq]\n    PAVGB_NO_RND\n    movq      [dstq], m0\n    movhps [dstq+strideq], m0\n\n    movq          m0, [src1q+strideq*2]\n    movq          m1, [src2q+strideq*2]\n    movhps        m0, [src1q+stride3q]\n    movhps        m1, [src2q+stride3q]\n    PAVGB_NO_RND\n    movq   [dstq+strideq*2], m0\n    movhps [dstq+stride3q],  m0\n\n    lea    src1q, [src1q+strideq*4]\n    lea    src2q, [src2q+strideq*4]\n    lea    dstq,  [dstq+strideq*4]\n    sub    hd, 4\n    jnz .loop\n    RET\n\n%macro VP3_1D_IDCT_SSE2 1\n%ifn %1\n    movdqa        m2, I(3)      ; xmm2 = i3\n%else\n    SWAP           0, 2, 3, 1\n    SWAP           7, 5\n%endif\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n%ifn %1\n    movdqa        m7, I(5)      ; xmm7 = i5\n%endif\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n%ifn %1\n    movdqa        m3, I(1)      ; xmm3 = i1\n%endif\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:6", "text": "movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n%ifn %1\n    movdqa        m7, I(5)      ; xmm7 = i5\n%endif\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n%ifn %1\n    movdqa        m3, I(1)      ; xmm3 = i1\n%endif\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1\n    movdqa        m2, I(2)      ; xmm2 = i2\n    pmulhw        m7, m1        ; xmm7 = c7 * i7\n    paddw         m5, m1        ; xmm5 = c1 * i7\n    movdqa        m1, m2        ; xmm1 = i2\n    pmulhw        m2, C(2)      ; xmm2 = i2 * c2 -i2\n    psubsw        m3, m5        ; xmm3 = c7 * i1 - c1 * i7 = B\n    movdqa        m5, I(6)      ; xmm5 = i6\n    paddsw        m0, m7        ; xmm0 = c1 * i1 + c7 * i7 = A\n    movdqa        m7, m5        ; xmm7 = i6\n    psubsw        m0, m4        ; xmm0 = A - C\n    pmulhw        m5, C(2)      ; xmm5 = c2 * i6 - i6\n    paddw         m2, m1        ; xmm2 = i2 * c2\n    pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:7", "text": "pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4\n    paddsw        m1, m5        ; xmm1 = B. + H = H.\n    pmulhw        m4, m3        ; xmm4 = ( c4 - 1 ) * ( i0 + i4 )\n    paddw         m6, m0        ; xmm6 = c4 * ( i0 - i4 )\n    psubsw        m6, m2        ; xmm6 = F - A. = F.\n    paddsw        m2, m2        ; xmm2 = A. + A.\n    movdqa        m0, I(1)      ; Load        C. from I(1)\n    paddsw        m2, m6        ; xmm2 = F + A. = A..\n    paddw         m4, m3        ; xmm4 = c4 * ( i0 + i4 ) = 3\n    psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 1-*\n    %rep %0\n        mova    O(%1), m%1\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro VP3_IDCT 0\n%define I(x) [blockq+16*x]\n%define O(x) [blockq+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2 0\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [blockq], [blockq+16]\n%endif\n        PUT_BLOCK 0, 2, 4, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2 1\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_put_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_put, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n\n    lea          s3q, [sq*3]\n    packsswb      m0, m1\n    mova          m1, [pb_80]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [blockq], [blockq+16]\n%endif\n        PUT_BLOCK 0, 2, 4, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2 1\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_put_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_put, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n\n    lea          s3q, [sq*3]\n    packsswb      m0, m1\n    mova          m1, [pb_80]\n    packsswb      m2, m3\n    packsswb      m4, m5\n    packsswb      m6, m7\n    paddb         m0, m1\n    paddb         m2, m1\n    paddb         m4, m1\n    paddb         m6, m1\n    movq   [dstq   ], m0\n    movhps [dstq+sq], m0\n    movq [dstq+sq*2], m2\n    movhps [dstq+s3q], m2\n    lea         dstq, [dstq+sq*4]\n    movq   [dstq   ], m4\n    movhps [dstq+sq], m4\n    movq [dstq+sq*2], m6\n    movhps [dstq+s3q], m6\n\n    pxor          m0, m0\n%assign offset 0\n%rep 128/mmsize\n    mova [blockq+offset], m0\n%assign offset offset+mmsize\n%endrep\n    RET\n\n%macro IDCT_ADD 9\n    movq          %1, [dstq]\n    movq          %2, [dstq+sq]\n    movq          %3, [dstq+sq*2]\n    movq          %4, [dstq+s3q]\n    punpcklbw     %1, %5\n    punpcklbw     %2, %5\n    punpcklbw     %3, %5\n    punpcklbw     %4, %5\n    paddsw        %1, %6\n    paddsw        %2, %7\n    paddsw        %3, %8\n    paddsw        %4, %9\n    packuswb      %1, %2\n    packuswb      %3, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": "mova [blockq+offset], m0\n%assign offset offset+mmsize\n%endrep\n    RET\n\n%macro IDCT_ADD 9\n    movq          %1, [dstq]\n    movq          %2, [dstq+sq]\n    movq          %3, [dstq+sq*2]\n    movq          %4, [dstq+s3q]\n    punpcklbw     %1, %5\n    punpcklbw     %2, %5\n    punpcklbw     %3, %5\n    punpcklbw     %4, %5\n    paddsw        %1, %6\n    paddsw        %2, %7\n    paddsw        %3, %8\n    paddsw        %4, %9\n    packuswb      %1, %2\n    packuswb      %3, %4\n    movq   [dstq   ], %1\n    movhps [dstq+sq], %1\n    movq [dstq+sq*2], %3\n    movhps [dstq+s3q], %3\n%endmacro\n\n; void ff_vp3_idct_add_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_add, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n    PUT_BLOCK 3, 4, 5, 6, 7\n\n    lea          s3q, [sq*3]\n    pxor          m3, m3\n    IDCT_ADD m4, m5, m6, m7, m3, m0, m1, m2, [blockq+48]\n    lea         dstq, [dstq+sq*4]\n    IDCT_ADD m4, m5, m6, m7, m3, [blockq+64], [blockq+80], [blockq+96], [blockq+112]\n\n%assign i 0\n%rep 128/mmsize\n    mova  [blockq+i], m3\n%assign i i+mmsize\n%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [dstq     ]\n    movq          m3, [dstq+sq  ]\n    paddusb       m2, m0\n    movq          m4, [dstq+sq*2]\n    paddusb       m3, m0\n    movq          m5, [dstq+s3q ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq [dstq     ], m2\n    psubusb       m4, m1\n    movq [dstq+sq  ], m3\n    psubusb       m5, m1\n    movq [dstq+sq*2], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "%assign i i+mmsize\n%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [dstq     ]\n    movq          m3, [dstq+sq  ]\n    paddusb       m2, m0\n    movq          m4, [dstq+sq*2]\n    paddusb       m3, m0\n    movq          m5, [dstq+s3q ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq [dstq     ], m2\n    psubusb       m4, m1\n    movq [dstq+sq  ], m3\n    psubusb       m5, m1\n    movq [dstq+sq*2], m4\n    movq [dstq+s3q ], m5\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_dc_add_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_dc_add, 3, 4, 6, dst, s, block, dc\n    movsx        dcd, word [blockq]\n    mov word [blockq], 0\n%define s3q blockq\n    lea          s3q, [sq*3]\n    add          dcd, 15\n    sar          dcd, 5\n    movd          m0, dcd\n    SPLATW        m0, m0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea         dstq, [dstq+sq*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 442}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the VP3 decoder\n;* Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n; MMX-optimized functions cribbed from the original VP3 source code.\n\nSECTION_RODATA\n\nvp3_idct_data: times 8 dw 64277\n               times 8 dw 60547\n               times 8 dw 54491\n               times 8 dw 46341\n               times 8 dw 36410\n               times 8 dw 25080\n               times 8 dw 12785\n\ncextern pb_80\n\ncextern pw_4\ncextern pw_8\n\nSECTION .text\n\n; in:  p0 in m5, p1 in m4, p2 in m2, p3 in m1, all unpacked;\n;      m0 must be zeroed\n; out: p1 in m4, p2 in m2\n%macro VP3_LOOP_FILTER 0\n    psubw         m5, m1\n    mova          m3, m2\n    paddw         m5, [pw_4]\n    psubw         m3, m4\n    mova          m1, m3\n    paddw         m1, m5\n    mova          m5, [r2+516]  ; 2 * filter limit\n    paddw         m3, m3\n    paddw         m3, m1\n    psraw         m3, 3\n\n    ; We use that clamp(2clamp(x,2f),2f)-clamp(x,2f)\n    ; (with f = filter limit and clamping to the interval [-f,f])\n    ; gives the desired filter value", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e7a613b2744745cd8e6c9508529da54c6ee1491e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7a613b2744745cd8e6c9508529da54c6ee1491e/libavcodec/x86/vp3dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "%assign i i+mmsize\n%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [dstq     ]\n    movq          m3, [dstq+sq  ]\n    paddusb       m2, m0\n    movq          m4, [dstq+sq*2]\n    paddusb       m3, m0\n    movq          m5, [dstq+s3q ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq [dstq     ], m2\n    psubusb       m4, m1\n    movq [dstq+sq  ], m3\n    psubusb       m5, m1\n    movq [dstq+sq*2], m4\n    movq [dstq+s3q ], m5\n%endmacro\n\nINIT_MMX mmxext\n; void ff_vp3_idct_dc_add_mmxext(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_dc_add, 3, 4, 0, dst, s, block, dc\n    movsx        dcd, word [blockq]\n    mov word [blockq], 0\n%define s3q blockq\n    lea          s3q, [sq*3]\n    add          dcd, 15\n    sar          dcd, 5\n    movd          m0, dcd\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea         dstq, [dstq+sq*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e7a613b2744745cd8e6c9508529da54c6ee1491e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7a613b2744745cd8e6c9508529da54c6ee1491e/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 442}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:5", "text": "%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_put_no_rnd_pixels8_l2_sse2(uint8_t *dst, const uint8_t *a,\n;                                        const uint8_t *b, ptrdiff_t stride,\n;                                        int h)\ncglobal vp3_put_no_rnd_pixels8_l2, 5, 6, 5, dst, src1, src2, stride, h, stride3\n    lea    stride3q,[strideq+strideq*2]\n    pcmpeqb       m4, m4\n.loop:\n    movq          m0, [src1q]\n    movq          m1, [src2q]\n    movhps        m0, [src1q+strideq]\n    movhps        m1, [src2q+strideq]\n    PAVGB_NO_RND\n    movq      [dstq], m0\n    movhps [dstq+strideq], m0\n\n    movq          m0, [src1q+strideq*2]\n    movq          m1, [src2q+strideq*2]\n    movhps        m0, [src1q+stride3q]\n    movhps        m1, [src2q+stride3q]\n    PAVGB_NO_RND\n    movq   [dstq+strideq*2], m0\n    movhps [dstq+stride3q],  m0\n\n    lea    src1q, [src1q+strideq*4]\n    lea    src2q, [src2q+strideq*4]\n    lea    dstq,  [dstq+strideq*4]\n    sub    hd, 4\n    jnz .loop\n    RET\n\n%macro VP3_1D_IDCT_SSE2 0\n    movdqa        m2, I(3)      ; xmm2 = i3\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n    movdqa        m7, I(5)      ; xmm7 = i5\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1\n    movdqa        m2, I(2)      ; xmm2 = i2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:6", "text": "pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1\n    movdqa        m2, I(2)      ; xmm2 = i2\n    pmulhw        m7, m1        ; xmm7 = c7 * i7\n    paddw         m5, m1        ; xmm5 = c1 * i7\n    movdqa        m1, m2        ; xmm1 = i2\n    pmulhw        m2, C(2)      ; xmm2 = i2 * c2 -i2\n    psubsw        m3, m5        ; xmm3 = c7 * i1 - c1 * i7 = B\n    movdqa        m5, I(6)      ; xmm5 = i6\n    paddsw        m0, m7        ; xmm0 = c1 * i1 + c7 * i7 = A\n    movdqa        m7, m5        ; xmm7 = i6\n    psubsw        m0, m4        ; xmm0 = A - C\n    pmulhw        m5, C(2)      ; xmm5 = c2 * i6 - i6\n    paddw         m2, m1        ; xmm2 = i2 * c2\n    pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4\n    paddsw        m1, m5        ; xmm1 = B. + H = H.", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:7", "text": "psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4\n    paddsw        m1, m5        ; xmm1 = B. + H = H.\n    pmulhw        m4, m3        ; xmm4 = ( c4 - 1 ) * ( i0 + i4 )\n    paddw         m6, m0        ; xmm6 = c4 * ( i0 - i4 )\n    psubsw        m6, m2        ; xmm6 = F - A. = F.\n    paddsw        m2, m2        ; xmm2 = A. + A.\n    movdqa        m0, I(1)      ; Load        C. from I(1)\n    paddsw        m2, m6        ; xmm2 = F + A. = A..\n    paddw         m4, m3        ; xmm4 = c4 * ( i0 + i4 ) = 3\n    psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 0\n%define I(x) [blockq+16*x]\n%define O(x) [blockq+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [blockq], [blockq+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_put_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_put, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n\n    mova          m4, [pb_80]\n    lea          s3q, [sq*3]\n    mova          m0, [r2+mmsize*0]\n    mova          m1, [r2+mmsize*2]\n    mova          m2, [r2+mmsize*4]\n    mova          m3, [r2+mmsize*6]\n    packsswb      m0, [r2+mmsize*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_put_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_put, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n\n    mova          m4, [pb_80]\n    lea          s3q, [sq*3]\n    mova          m0, [r2+mmsize*0]\n    mova          m1, [r2+mmsize*2]\n    mova          m2, [r2+mmsize*4]\n    mova          m3, [r2+mmsize*6]\n    packsswb      m0, [r2+mmsize*1]\n    packsswb      m1, [r2+mmsize*3]\n    packsswb      m2, [r2+mmsize*5]\n    packsswb      m3, [r2+mmsize*7]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [dstq   ], m0\n    movhps [dstq+sq], m0\n    movq [dstq+sq*2], m1\n    movhps [dstq+s3q], m1\n    lea         dstq, [dstq+sq*4]\n    movq   [dstq   ], m2\n    movhps [dstq+sq], m2\n    movq [dstq+sq*2], m3\n    movhps [dstq+s3q], m3\n\n    pxor          m0, m0\n%assign offset 0\n%rep 128/mmsize\n    mova [blockq+offset], m0\n%assign offset offset+mmsize\n%endrep\n    RET\n\n; void ff_vp3_idct_add_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_add, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n\n    lea          s3q, [sq*3]\n    pxor          m4, m4\n%assign i 0\n%rep 2\n    movq          m0, [dstq]\n    movq          m1, [dstq+sq]\n    movq          m2, [dstq+sq*2]\n    movq          m3, [dstq+s3q]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": "mova [blockq+offset], m0\n%assign offset offset+mmsize\n%endrep\n    RET\n\n; void ff_vp3_idct_add_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_add, 3, 4, 9, dst, s, block, s3\n    VP3_IDCT\n\n    lea          s3q, [sq*3]\n    pxor          m4, m4\n%assign i 0\n%rep 2\n    movq          m0, [dstq]\n    movq          m1, [dstq+sq]\n    movq          m2, [dstq+sq*2]\n    movq          m3, [dstq+s3q]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [blockq+ 0+i]\n    paddsw        m1, [blockq+16+i]\n    paddsw        m2, [blockq+32+i]\n    paddsw        m3, [blockq+48+i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [dstq   ], m0\n    movhps [dstq+sq], m0\n    movq [dstq+sq*2], m2\n    movhps [dstq+s3q], m2\n%if i == 0\n    lea         dstq, [dstq+sq*4]\n%endif\n%assign i i+64\n%endrep\n%assign i 0\n%rep 128/mmsize\n    mova  [blockq+i], m4\n%assign i i+mmsize\n%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [dstq     ]\n    movq          m3, [dstq+sq  ]\n    paddusb       m2, m0\n    movq          m4, [dstq+sq*2]\n    paddusb       m3, m0\n    movq          m5, [dstq+s3q ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq [dstq     ], m2\n    psubusb       m4, m1\n    movq [dstq+sq  ], m3\n    psubusb       m5, m1\n    movq [dstq+sq*2], m4\n    movq [dstq+s3q ], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [dstq     ]\n    movq          m3, [dstq+sq  ]\n    paddusb       m2, m0\n    movq          m4, [dstq+sq*2]\n    paddusb       m3, m0\n    movq          m5, [dstq+s3q ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq [dstq     ], m2\n    psubusb       m4, m1\n    movq [dstq+sq  ], m3\n    psubusb       m5, m1\n    movq [dstq+sq*2], m4\n    movq [dstq+s3q ], m5\n%endmacro\n\nINIT_MMX mmxext\n; void ff_vp3_idct_dc_add_mmxext(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_dc_add, 3, 4, 0, dst, s, block, dc\n    movsx        dcd, word [blockq]\n    mov word [blockq], 0\n%define s3q blockq\n    lea          s3q, [sq*3]\n    add          dcd, 15\n    sar          dcd, 5\n    movd          m0, dcd\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea         dstq, [dstq+sq*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "ed59fc77e8a560b85ed337e25a953864d59cc8de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed59fc77e8a560b85ed337e25a953864d59cc8de/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 441}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 1\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_put_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n    mova          m0, [r2+mmsize*0]\n    mova          m1, [r2+mmsize*2]\n    mova          m2, [r2+mmsize*4]\n    mova          m3, [r2+mmsize*6]\n    packsswb      m0, [r2+mmsize*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "c1af56357b098f26ad7ef3990f9ebbfee6b93902", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1af56357b098f26ad7ef3990f9ebbfee6b93902/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\nINIT_XMM sse2\n; void ff_vp3_idct_put_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n    mova          m0, [r2+mmsize*0]\n    mova          m1, [r2+mmsize*2]\n    mova          m2, [r2+mmsize*4]\n    mova          m3, [r2+mmsize*6]\n    packsswb      m0, [r2+mmsize*1]\n    packsswb      m1, [r2+mmsize*3]\n    packsswb      m2, [r2+mmsize*5]\n    packsswb      m3, [r2+mmsize*7]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n    lea           r0, [r0+r1*4]\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n\n    pxor          m0, m0\n%assign offset 0\n%rep 128/mmsize\n    mova [r2+offset], m0\n%assign offset offset+mmsize\n%endrep\n    RET\n\n; void ff_vp3_idct_add_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "c1af56357b098f26ad7ef3990f9ebbfee6b93902", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1af56357b098f26ad7ef3990f9ebbfee6b93902/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": "mova [r2+offset], m0\n%assign offset offset+mmsize\n%endrep\n    RET\n\n; void ff_vp3_idct_add_sse2(uint8_t *dest, ptrdiff_t stride, int16_t *block)\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+i]\n    paddsw        m1, [r2+16+i]\n    paddsw        m2, [r2+32+i]\n    paddsw        m3, [r2+48+i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign i i+64\n%endrep\n%assign i 0\n%rep 128/mmsize\n    mova    [r2+i], m4\n%assign i i+mmsize\n%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "c1af56357b098f26ad7ef3990f9ebbfee6b93902", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1af56357b098f26ad7ef3990f9ebbfee6b93902/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "%endrep\n    RET\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "c1af56357b098f26ad7ef3990f9ebbfee6b93902", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c1af56357b098f26ad7ef3990f9ebbfee6b93902/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 439}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 1\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "84b9de0633850721e5a3fecf906535226fd19ee9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/84b9de0633850721e5a3fecf906535226fd19ee9/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]\n    packsswb      m0, [r2+mmsize*1+%%i]\n    packsswb      m1, [r2+mmsize*3+%%i]\n    packsswb      m2, [r2+mmsize*5+%%i]\n    packsswb      m3, [r2+mmsize*7+%%i]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "84b9de0633850721e5a3fecf906535226fd19ee9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/84b9de0633850721e5a3fecf906535226fd19ee9/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": "%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+%%i]\n    paddsw        m1, [r2+16+%%i]\n    paddsw        m2, [r2+32+%%i]\n    paddsw        m3, [r2+48+%%i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "84b9de0633850721e5a3fecf906535226fd19ee9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/84b9de0633850721e5a3fecf906535226fd19ee9/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "84b9de0633850721e5a3fecf906535226fd19ee9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/84b9de0633850721e5a3fecf906535226fd19ee9/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 447}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the VP3 decoder\n;* Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n; MMX-optimized functions cribbed from the original VP3 source code.\n\nSECTION_RODATA\n\nvp3_idct_data: times 8 dw 64277\n               times 8 dw 60547\n               times 8 dw 54491\n               times 8 dw 46341\n               times 8 dw 36410\n               times 8 dw 25080\n               times 8 dw 12785\n\ncextern pb_80\ncextern pb_FE\n\ncextern pw_4\ncextern pw_8\n\nSECTION .text\n\n; in:  p0 in m5, p1 in m4, p2 in m2, p3 in m1, all unpacked;\n;      m0 must be zeroed\n; out: p1 in m4, p2 in m2\n%macro VP3_LOOP_FILTER 0\n    psubw         m5, m1\n    mova          m3, m2\n    paddw         m5, [pw_4]\n    psubw         m3, m4\n    mova          m1, m3\n    paddw         m1, m5\n    mova          m5, [r2+516]  ; 2 * filter limit\n    paddw         m3, m3\n    paddw         m3, m1\n    psraw         m3, 3\n\n    ; We use that clamp(2clamp(x,2f),2f)-clamp(x,2f)\n    ; (with f = filter limit and clamping to the interval [-f,f])", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:2", "text": "SECTION .text\n\n; in:  p0 in m5, p1 in m4, p2 in m2, p3 in m1, all unpacked;\n;      m0 must be zeroed\n; out: p1 in m4, p2 in m2\n%macro VP3_LOOP_FILTER 0\n    psubw         m5, m1\n    mova          m3, m2\n    paddw         m5, [pw_4]\n    psubw         m3, m4\n    mova          m1, m3\n    paddw         m1, m5\n    mova          m5, [r2+516]  ; 2 * filter limit\n    paddw         m3, m3\n    paddw         m3, m1\n    psraw         m3, 3\n\n    ; We use that clamp(2clamp(x,2f),2f)-clamp(x,2f)\n    ; (with f = filter limit and clamping to the interval [-f,f])\n    ; gives the desired filter value\n    psubw         m0, m5\n    pminsw        m3, m5\n    pmaxsw        m3, m0\n    mova          m1, m3\n    paddw         m1, m1\n    pminsw        m1, m5\n    pmaxsw        m1, m0\n    psubw         m1, m3\n    psubw         m2, m1\n    paddw         m4, m1\n\n    packuswb      m4, m4\n    packuswb      m2, m2\n%endmacro\n\n%macro STORE_4_WORDS 1\n%if ARCH_X86_64\n    movq          r2, %1\n    mov  [r0     -1], r2w\n    shr           r2, 16\n    mov  [r0+r1  -1], r2w\n    shr           r2, 16\n%else\n    movd         r2d, %1\n    mov  [r0     -1], r2w\n    psrlq         %1, 32\n    shr          r2d, 16\n    mov  [r0+r1  -1], r2w\n    movd         r2d, %1\n%endif\n    mov  [r0+r1*2-1], r2w\n    shr          r2d, 16\n    mov  [r0+r3  -1], r2w\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_v_loop_filter, 3, 3, 6\n    movq          m1, [r0+r1  ]\n    neg           r1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:3", "text": "shr           r2, 16\n    mov  [r0+r1  -1], r2w\n    shr           r2, 16\n%else\n    movd         r2d, %1\n    mov  [r0     -1], r2w\n    psrlq         %1, 32\n    shr          r2d, 16\n    mov  [r0+r1  -1], r2w\n    movd         r2d, %1\n%endif\n    mov  [r0+r1*2-1], r2w\n    shr          r2d, 16\n    mov  [r0+r3  -1], r2w\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_v_loop_filter, 3, 3, 6\n    movq          m1, [r0+r1  ]\n    neg           r1\n    movq          m2, [r0     ]\n    movq          m4, [r0+r1  ]\n    movq          m5, [r0+r1*2]\n\n    pxor          m0, m0\n    punpcklbw     m1, m0\n    punpcklbw     m2, m0\n    punpcklbw     m4, m0\n    punpcklbw     m5, m0\n\n    VP3_LOOP_FILTER\n\n    movq     [r0+r1], m4\n    movq     [r0   ], m2\n    RET\n\n%macro TRANSPOSE4x4 1\n    movd         %1, [r0     -2]\n    movd         m2, [r0+r1  -2]\n    movd         m3, [r0+r1*2-2]\n    movd         m4, [r0+r3  -2]\n    punpcklbw    %1, m2\n    punpcklbw    m3, m4\n    punpcklwd    %1, m3\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_h_loop_filter, 3, 4, 6\n    lea           r3, [r1*3]\n\n    TRANSPOSE4x4  m5\n    lea           r0, [r0+r1*4]\n    TRANSPOSE4x4  m0\n    mova          m2, m5\n    punpckldq     m5, m0\n    punpckhdq     m2, m0\n    pxor          m0, m0\n    mova          m4, m5\n    punpcklbw     m5, m0\n    punpckhbw     m4, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:4", "text": "movd         m4, [r0+r3  -2]\n    punpcklbw    %1, m2\n    punpcklbw    m3, m4\n    punpcklwd    %1, m3\n%endmacro\n\nINIT_XMM sse2\ncglobal vp3_h_loop_filter, 3, 4, 6\n    lea           r3, [r1*3]\n\n    TRANSPOSE4x4  m5\n    lea           r0, [r0+r1*4]\n    TRANSPOSE4x4  m0\n    mova          m2, m5\n    punpckldq     m5, m0\n    punpckhdq     m2, m0\n    pxor          m0, m0\n    mova          m4, m5\n    punpcklbw     m5, m0\n    punpckhbw     m4, m0\n    mova          m1, m2\n    punpcklbw     m2, m0\n    punpckhbw     m1, m0\n\n    VP3_LOOP_FILTER\n\n    punpcklbw     m4, m2\n    mova          m2, m4\n    punpckhqdq    m2, m2\n\n    STORE_4_WORDS m2\n    sub           r0, r3\n    sub           r0, r1\n    STORE_4_WORDS m4\n    RET\n\n%macro PAVGB_NO_RND 0\n    mova   m4, m0\n    mova   m5, m2\n    pand   m4, m1\n    pand   m5, m3\n    pxor   m1, m0\n    pxor   m3, m2\n    pand   m1, m6\n    pand   m3, m6\n    psrlq  m1, 1\n    psrlq  m3, 1\n    paddb  m4, m1\n    paddb  m5, m3\n%endmacro\n\nINIT_MMX mmx\ncglobal put_vp_no_rnd_pixels8_l2, 5, 6, 0, dst, src1, src2, stride, h, stride3\n    mova   m6, [pb_FE]\n    lea    stride3q,[strideq+strideq*2]\n.loop:\n    mova   m0, [src1q]\n    mova   m1, [src2q]\n    mova   m2, [src1q+strideq]\n    mova   m3, [src2q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:5", "text": "pand   m5, m3\n    pxor   m1, m0\n    pxor   m3, m2\n    pand   m1, m6\n    pand   m3, m6\n    psrlq  m1, 1\n    psrlq  m3, 1\n    paddb  m4, m1\n    paddb  m5, m3\n%endmacro\n\nINIT_MMX mmx\ncglobal put_vp_no_rnd_pixels8_l2, 5, 6, 0, dst, src1, src2, stride, h, stride3\n    mova   m6, [pb_FE]\n    lea    stride3q,[strideq+strideq*2]\n.loop:\n    mova   m0, [src1q]\n    mova   m1, [src2q]\n    mova   m2, [src1q+strideq]\n    mova   m3, [src2q+strideq]\n    PAVGB_NO_RND\n    mova   [dstq], m4\n    mova   [dstq+strideq], m5\n\n    mova   m0, [src1q+strideq*2]\n    mova   m1, [src2q+strideq*2]\n    mova   m2, [src1q+stride3q]\n    mova   m3, [src2q+stride3q]\n    PAVGB_NO_RND\n    mova   [dstq+strideq*2], m4\n    mova   [dstq+stride3q],  m5\n\n    lea    src1q, [src1q+strideq*4]\n    lea    src2q, [src2q+strideq*4]\n    lea    dstq,  [dstq+strideq*4]\n    sub    hd, 4\n    jnz .loop\n    RET\n\n%macro VP3_1D_IDCT_SSE2 0\n    movdqa        m2, I(3)      ; xmm2 = i3\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n    movdqa        m7, I(5)      ; xmm7 = i5\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:6", "text": "movdqa        m2, I(3)      ; xmm2 = i3\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n    movdqa        m7, I(5)      ; xmm7 = i5\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1\n    movdqa        m2, I(2)      ; xmm2 = i2\n    pmulhw        m7, m1        ; xmm7 = c7 * i7\n    paddw         m5, m1        ; xmm5 = c1 * i7\n    movdqa        m1, m2        ; xmm1 = i2\n    pmulhw        m2, C(2)      ; xmm2 = i2 * c2 -i2\n    psubsw        m3, m5        ; xmm3 = c7 * i1 - c1 * i7 = B\n    movdqa        m5, I(6)      ; xmm5 = i6\n    paddsw        m0, m7        ; xmm0 = c1 * i1 + c7 * i7 = A\n    movdqa        m7, m5        ; xmm7 = i6\n    psubsw        m0, m4        ; xmm0 = A - C\n    pmulhw        m5, C(2)      ; xmm5 = c2 * i6 - i6\n    paddw         m2, m1        ; xmm2 = i2 * c2\n    pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:7", "text": "psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4\n    paddsw        m1, m5        ; xmm1 = B. + H = H.\n    pmulhw        m4, m3        ; xmm4 = ( c4 - 1 ) * ( i0 + i4 )\n    paddw         m6, m0        ; xmm6 = c4 * ( i0 - i4 )\n    psubsw        m6, m2        ; xmm6 = F - A. = F.\n    paddsw        m2, m2        ; xmm2 = A. + A.\n    movdqa        m0, I(1)      ; Load        C. from I(1)\n    paddsw        m2, m6        ; xmm2 = F + A. = A..\n    paddw         m4, m3        ; xmm4 = c4 * ( i0 + i4 ) = 3\n    psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 1\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]\n    packsswb      m0, [r2+mmsize*1+%%i]\n    packsswb      m1, [r2+mmsize*3+%%i]\n    packsswb      m2, [r2+mmsize*5+%%i]\n    packsswb      m3, [r2+mmsize*7+%%i]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": "%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+%%i]\n    paddsw        m1, [r2+16+%%i]\n    paddsw        m2, [r2+32+%%i]\n    paddsw        m3, [r2+48+%%i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 453}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:12", "text": "lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "9f560c8c1aaa7ba733d4c0f3f330c2787da2041c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f560c8c1aaa7ba733d4c0f3f330c2787da2041c/libavcodec/x86/vp3dsp.asm", "line_start": 441, "line_end": 453}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:5", "text": "pand   m5, m3\n    pxor   m1, m0\n    pxor   m3, m2\n    pand   m1, m6\n    pand   m3, m6\n    psrlq  m1, 1\n    psrlq  m3, 1\n    paddb  m4, m1\n    paddb  m5, m3\n%endmacro\n\nINIT_MMX mmx\ncglobal put_vp_no_rnd_pixels8_l2, 5, 6, 0, dst, src1, src2, stride, h, stride3\n    mova   m6, [pb_FE]\n    lea    stride3q,[strideq+strideq*2]\n.loop:\n    mova   m0, [src1q]\n    mova   m1, [src2q]\n    mova   m2, [src1q+strideq]\n    mova   m3, [src2q+strideq]\n    PAVGB_NO_RND\n    mova   [dstq], m4\n    mova   [dstq+strideq], m5\n\n    mova   m0, [src1q+strideq*2]\n    mova   m1, [src2q+strideq*2]\n    mova   m2, [src1q+stride3q]\n    mova   m3, [src2q+stride3q]\n    PAVGB_NO_RND\n    mova   [dstq+strideq*2], m4\n    mova   [dstq+stride3q],  m5\n\n    lea    src1q, [src1q+strideq*4]\n    lea    src2q, [src2q+strideq*4]\n    lea    dstq,  [dstq+strideq*4]\n    sub    hd, 4\n    jnz .loop\n    RET\n\n; from original comments: The Macro does IDct on 4 1-D Dcts\n%macro BeginIDCT 0\n    movq          m2, I(3)\n    movq          m6, C(3)\n    movq          m4, m2\n    movq          m7, J(5)\n    pmulhw        m4, m6        ; r4 = c3*i3 - i3\n    movq          m1, C(5)\n    pmulhw        m6, m7        ; r6 = c3*i5 - i5\n    movq          m5, m1\n    pmulhw        m1, m2        ; r1 = c5*i3 - i3\n    movq          m3, I(1)\n    pmulhw        m5, m7        ; r5 = c5*i5 - i5\n    movq          m0, C(1)\n    paddw         m4, m2        ; r4 = c3*i3\n    paddw         m6, m7        ; r6 = c3*i5\n    paddw         m2, m1        ; r2 = c5*i3\n    movq          m1, J(7)\n    paddw         m7, m5        ; r7 = c5*i5\n    movq          m5, m0        ; r5 = c1\n    pmulhw        m0, m3        ; r0 = c1*i1 - i1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:6", "text": "%macro BeginIDCT 0\n    movq          m2, I(3)\n    movq          m6, C(3)\n    movq          m4, m2\n    movq          m7, J(5)\n    pmulhw        m4, m6        ; r4 = c3*i3 - i3\n    movq          m1, C(5)\n    pmulhw        m6, m7        ; r6 = c3*i5 - i5\n    movq          m5, m1\n    pmulhw        m1, m2        ; r1 = c5*i3 - i3\n    movq          m3, I(1)\n    pmulhw        m5, m7        ; r5 = c5*i5 - i5\n    movq          m0, C(1)\n    paddw         m4, m2        ; r4 = c3*i3\n    paddw         m6, m7        ; r6 = c3*i5\n    paddw         m2, m1        ; r2 = c5*i3\n    movq          m1, J(7)\n    paddw         m7, m5        ; r7 = c5*i5\n    movq          m5, m0        ; r5 = c1\n    pmulhw        m0, m3        ; r0 = c1*i1 - i1\n    paddsw        m4, m7        ; r4 = C = c3*i3 + c5*i5\n    pmulhw        m5, m1        ; r5 = c1*i7 - i7\n    movq          m7, C(7)\n    psubsw        m6, m2        ; r6 = D = c3*i5 - c5*i3\n    paddw         m0, m3        ; r0 = c1*i1\n    pmulhw        m3, m7        ; r3 = c7*i1\n    movq          m2, I(2)\n    pmulhw        m7, m1        ; r7 = c7*i7\n    paddw         m5, m1        ; r5 = c1*i7\n    movq          m1, m2        ; r1 = i2\n    pmulhw        m2, C(2)      ; r2 = c2*i2 - i2\n    psubsw        m3, m5        ; r3 = B = c7*i1 - c1*i7\n    movq          m5, J(6)\n    paddsw        m0, m7        ; r0 = A = c1*i1 + c7*i7\n    movq          m7, m5        ; r7 = i6\n    psubsw        m0, m4        ; r0 = A - C\n    pmulhw        m5, C(2)      ; r5 = c2*i6 - i6\n    paddw         m2, m1        ; r2 = c2*i2\n    pmulhw        m1, C(6)      ; r1 = c6*i2\n    paddsw        m4, m4        ; r4 = C + C\n    paddsw        m4, m0        ; r4 = C. = A + C\n    psubsw        m3, m6        ; r3 = B - D\n    paddw         m5, m7        ; r5 = c2*i6\n    paddsw        m6, m6        ; r6 = D + D\n    pmulhw        m7, C(6)      ; r7 = c6*i6\n    paddsw        m6, m3        ; r6 = D. = B + D\n    movq        I(1), m4        ; save C. at I(1)\n    psubsw        m1, m5        ; r1 = H = c6*i2 - c2*i6\n    movq          m4, C(4)\n    movq          m5, m3        ; r5 = B - D\n    pmulhw        m3, m4        ; r3 = (c4 - 1) * (B - D)\n    paddsw        m7, m2        ; r3 = (c4 - 1) * (B - D)\n    movq        I(2), m6        ; save D. at I(2)\n    movq          m2, m0        ; r2 = A - C\n    movq          m6, I(0)\n    pmulhw        m0, m4        ; r0 = (c4 - 1) * (A - C)\n    paddw         m5, m3        ; r5 = B. = c4 * (B - D)\n    movq          m3, J(4)\n    psubsw        m5, m1        ; r5 = B.. = B. - H\n    paddw         m2, m0        ; r0 = A. = c4 * (A - C)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:7", "text": "paddsw        m4, m0        ; r4 = C. = A + C\n    psubsw        m3, m6        ; r3 = B - D\n    paddw         m5, m7        ; r5 = c2*i6\n    paddsw        m6, m6        ; r6 = D + D\n    pmulhw        m7, C(6)      ; r7 = c6*i6\n    paddsw        m6, m3        ; r6 = D. = B + D\n    movq        I(1), m4        ; save C. at I(1)\n    psubsw        m1, m5        ; r1 = H = c6*i2 - c2*i6\n    movq          m4, C(4)\n    movq          m5, m3        ; r5 = B - D\n    pmulhw        m3, m4        ; r3 = (c4 - 1) * (B - D)\n    paddsw        m7, m2        ; r3 = (c4 - 1) * (B - D)\n    movq        I(2), m6        ; save D. at I(2)\n    movq          m2, m0        ; r2 = A - C\n    movq          m6, I(0)\n    pmulhw        m0, m4        ; r0 = (c4 - 1) * (A - C)\n    paddw         m5, m3        ; r5 = B. = c4 * (B - D)\n    movq          m3, J(4)\n    psubsw        m5, m1        ; r5 = B.. = B. - H\n    paddw         m2, m0        ; r0 = A. = c4 * (A - C)\n    psubsw        m6, m3        ; r6 = i0 - i4\n    movq          m0, m6\n    pmulhw        m6, m4        ; r6 = (c4 - 1) * (i0 - i4)\n    paddsw        m3, m3        ; r3 = i4 + i4\n    paddsw        m1, m1        ; r1 = H + H\n    paddsw        m3, m0        ; r3 = i0 + i4\n    paddsw        m1, m5        ; r1 = H. = B + H\n    pmulhw        m4, m3        ; r4 = (c4 - 1) * (i0 + i4)\n    paddsw        m6, m0        ; r6 = F = c4 * (i0 - i4)\n    psubsw        m6, m2        ; r6 = F. = F - A.\n    paddsw        m2, m2        ; r2 = A. + A.\n    movq          m0, I(1)      ; r0 = C.\n    paddsw        m2, m6        ; r2 = A.. = F + A.\n    paddw         m4, m3        ; r4 = E = c4 * (i0 + i4)\n    psubsw        m2, m1        ; r2 = R2 = A.. - H.\n%endmacro\n\n; RowIDCT gets ready to transpose\n%macro RowIDCT 0\n    BeginIDCT\n    movq          m3, I(2)      ; r3 = D.\n    psubsw        m4, m7        ; r4 = E. = E - G\n    paddsw        m1, m1        ; r1 = H. + H.\n    paddsw        m7, m7        ; r7 = G + G\n    paddsw        m1, m2        ; r1 = R1 = A.. + H.\n    paddsw        m7, m4        ; r1 = R1 = A.. + H.\n    psubsw        m4, m3        ; r4 = R4 = E. - D.\n    paddsw        m3, m3\n    psubsw        m6, m5        ; r6 = R6 = F. - B..\n    paddsw        m5, m5\n    paddsw        m3, m4        ; r3 = R3 = E. + D.\n    paddsw        m5, m6        ; r5 = R5 = F. + B..\n    psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m0, m0\n    movq        I(1), m1        ; save R1\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n%endmacro\n\n; Column IDCT normalizes and stores final results\n%macro ColumnIDCT 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "movq          m3, I(2)      ; r3 = D.\n    psubsw        m4, m7        ; r4 = E. = E - G\n    paddsw        m1, m1        ; r1 = H. + H.\n    paddsw        m7, m7        ; r7 = G + G\n    paddsw        m1, m2        ; r1 = R1 = A.. + H.\n    paddsw        m7, m4        ; r1 = R1 = A.. + H.\n    psubsw        m4, m3        ; r4 = R4 = E. - D.\n    paddsw        m3, m3\n    psubsw        m6, m5        ; r6 = R6 = F. - B..\n    paddsw        m5, m5\n    paddsw        m3, m4        ; r3 = R3 = E. + D.\n    paddsw        m5, m6        ; r5 = R5 = F. + B..\n    psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m0, m0\n    movq        I(1), m1        ; save R1\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n%endmacro\n\n; Column IDCT normalizes and stores final results\n%macro ColumnIDCT 0\n    BeginIDCT\n    paddsw        m2, OC_8      ; adjust R2 (and R1) for shift\n    paddsw        m1, m1        ; r1 = H. + H.\n    paddsw        m1, m2        ; r1 = R1 = A.. + H.\n    psraw         m2, 4         ; r2 = NR2\n    psubsw        m4, m7        ; r4 = E. = E - G\n    psraw         m1, 4         ; r1 = NR2\n    movq          m3, I(2)      ; r3 = D.\n    paddsw        m7, m7        ; r7 = G + G\n    movq        I(2), m2        ; store NR2 at I2\n    paddsw        m7, m4        ; r7 = G. = E + G\n    movq        I(1), m1        ; store NR1 at I1\n    psubsw        m4, m3        ; r4 = R4 = E. - D.\n    paddsw        m4, OC_8      ; adjust R4 (and R3) for shift\n    paddsw        m3, m3        ; r3 = D. + D.\n    paddsw        m3, m4        ; r3 = R3 = E. + D.\n    psraw         m4, 4         ; r4 = NR4\n    psubsw        m6, m5        ; r6 = R6 = F. - B..\n    psraw         m3, 4         ; r3 = NR3\n    paddsw        m6, OC_8      ; adjust R6 (and R5) for shift\n    paddsw        m5, m5        ; r5 = B.. + B..\n    paddsw        m5, m6        ; r5 = R5 = F. + B..\n    psraw         m6, 4         ; r6 = NR6\n    movq        J(4), m4        ; store NR4 at J4\n    psraw         m5, 4         ; r5 = NR5\n    movq        I(3), m3        ; store NR3 at I3\n    psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m7, OC_8      ; adjust R7 (and R0) for shift\n    paddsw        m0, m0        ; r0 = C. + C.\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n    psraw         m7, 4         ; r7 = NR7\n    movq        J(6), m6        ; store NR6 at J6\n    psraw         m0, 4         ; r0 = NR0\n    movq        J(5), m5        ; store NR5 at J5\n    movq        J(7), m7        ; store NR7 at J7\n    movq        I(0), m0        ; store NR0 at I0\n%endmacro\n\n; Following macro does two 4x4 transposes in place.\n;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "paddsw        m5, m5        ; r5 = B.. + B..\n    paddsw        m5, m6        ; r5 = R5 = F. + B..\n    psraw         m6, 4         ; r6 = NR6\n    movq        J(4), m4        ; store NR4 at J4\n    psraw         m5, 4         ; r5 = NR5\n    movq        I(3), m3        ; store NR3 at I3\n    psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m7, OC_8      ; adjust R7 (and R0) for shift\n    paddsw        m0, m0        ; r0 = C. + C.\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n    psraw         m7, 4         ; r7 = NR7\n    movq        J(6), m6        ; store NR6 at J6\n    psraw         m0, 4         ; r0 = NR0\n    movq        J(5), m5        ; store NR5 at J5\n    movq        J(7), m7        ; store NR7 at J7\n    movq        I(0), m0        ; store NR0 at I0\n%endmacro\n\n; Following macro does two 4x4 transposes in place.\n;\n; At entry (we assume):\n;\n;   r0 = a3 a2 a1 a0\n;   I(1) = b3 b2 b1 b0\n;   r2 = c3 c2 c1 c0\n;   r3 = d3 d2 d1 d0\n;\n;   r4 = e3 e2 e1 e0\n;   r5 = f3 f2 f1 f0\n;   r6 = g3 g2 g1 g0\n;   r7 = h3 h2 h1 h0\n;\n; At exit, we have:\n;\n;   I(0) = d0 c0 b0 a0\n;   I(1) = d1 c1 b1 a1\n;   I(2) = d2 c2 b2 a2\n;   I(3) = d3 c3 b3 a3\n;\n;   J(4) = h0 g0 f0 e0\n;   J(5) = h1 g1 f1 e1\n;   J(6) = h2 g2 f2 e2\n;   J(7) = h3 g3 f3 e3\n;\n;  I(0) I(1) I(2) I(3)  is the transpose of r0 I(1) r2 r3.\n;  J(4) J(5) J(6) J(7)  is the transpose of r4 r5 r6 r7.\n;\n;  Since r1 is free at entry, we calculate the Js first.\n%macro Transpose 0\n    movq          m1, m4        ; r1 = e3 e2 e1 e0\n    punpcklwd     m4, m5        ; r4 = f1 e1 f0 e0\n    movq        I(0), m0        ; save a3 a2 a1 a0\n    punpckhwd     m1, m5        ; r1 = f3 e3 f2 e2\n    movq          m0, m6        ; r0 = g3 g2 g1 g0\n    punpcklwd     m6, m7        ; r6 = h1 g1 h0 g0\n    movq          m5, m4        ; r5 = f1 e1 f0 e0\n    punpckldq     m4, m6        ; r4 = h0 g0 f0 e0 = R4\n    punpckhdq     m5, m6        ; r5 = h1 g1 f1 e1 = R5\n    movq          m6, m1        ; r6 = f3 e3 f2 e2\n    movq        J(4), m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": ";   J(5) = h1 g1 f1 e1\n;   J(6) = h2 g2 f2 e2\n;   J(7) = h3 g3 f3 e3\n;\n;  I(0) I(1) I(2) I(3)  is the transpose of r0 I(1) r2 r3.\n;  J(4) J(5) J(6) J(7)  is the transpose of r4 r5 r6 r7.\n;\n;  Since r1 is free at entry, we calculate the Js first.\n%macro Transpose 0\n    movq          m1, m4        ; r1 = e3 e2 e1 e0\n    punpcklwd     m4, m5        ; r4 = f1 e1 f0 e0\n    movq        I(0), m0        ; save a3 a2 a1 a0\n    punpckhwd     m1, m5        ; r1 = f3 e3 f2 e2\n    movq          m0, m6        ; r0 = g3 g2 g1 g0\n    punpcklwd     m6, m7        ; r6 = h1 g1 h0 g0\n    movq          m5, m4        ; r5 = f1 e1 f0 e0\n    punpckldq     m4, m6        ; r4 = h0 g0 f0 e0 = R4\n    punpckhdq     m5, m6        ; r5 = h1 g1 f1 e1 = R5\n    movq          m6, m1        ; r6 = f3 e3 f2 e2\n    movq        J(4), m4\n    punpckhwd     m0, m7        ; r0 = h3 g3 h2 g2\n    movq        J(5), m5\n    punpckhdq     m6, m0        ; r6 = h3 g3 f3 e3 = R7\n    movq          m4, I(0)      ; r4 = a3 a2 a1 a0\n    punpckldq     m1, m0        ; r1 = h2 g2 f2 e2 = R6\n    movq          m5, I(1)      ; r5 = b3 b2 b1 b0\n    movq          m0, m4        ; r0 = a3 a2 a1 a0\n    movq        J(7), m6\n    punpcklwd     m0, m5        ; r0 = b1 a1 b0 a0\n    movq        J(6), m1\n    punpckhwd     m4, m5        ; r4 = b3 a3 b2 a2\n    movq          m5, m2        ; r5 = c3 c2 c1 c0\n    punpcklwd     m2, m3        ; r2 = d1 c1 d0 c0\n    movq          m1, m0        ; r1 = b1 a1 b0 a0\n    punpckldq     m0, m2        ; r0 = d0 c0 b0 a0 = R0\n    punpckhdq     m1, m2        ; r1 = d1 c1 b1 a1 = R1\n    movq          m2, m4        ; r2 = b3 a3 b2 a2\n    movq        I(0), m0\n    punpckhwd     m5, m3        ; r5 = d3 c3 d2 c2\n    movq        I(1), m1\n    punpckhdq     m4, m5        ; r4 = d3 c3 b3 a3 = R3\n    punpckldq     m2, m5        ; r2 = d2 c2 b2 a2 = R2\n    movq        I(3), m4\n    movq        I(2), m2\n%endmacro\n\n%macro VP3_1D_IDCT_SSE2 0\n    movdqa        m2, I(3)      ; xmm2 = i3\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n    movdqa        m7, I(5)      ; xmm7 = i5\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "punpckhdq     m4, m5        ; r4 = d3 c3 b3 a3 = R3\n    punpckldq     m2, m5        ; r2 = d2 c2 b2 a2 = R2\n    movq        I(3), m4\n    movq        I(2), m2\n%endmacro\n\n%macro VP3_1D_IDCT_SSE2 0\n    movdqa        m2, I(3)      ; xmm2 = i3\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n    movdqa        m7, I(5)      ; xmm7 = i5\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1\n    movdqa        m2, I(2)      ; xmm2 = i2\n    pmulhw        m7, m1        ; xmm7 = c7 * i7\n    paddw         m5, m1        ; xmm5 = c1 * i7\n    movdqa        m1, m2        ; xmm1 = i2\n    pmulhw        m2, C(2)      ; xmm2 = i2 * c2 -i2\n    psubsw        m3, m5        ; xmm3 = c7 * i1 - c1 * i7 = B\n    movdqa        m5, I(6)      ; xmm5 = i6\n    paddsw        m0, m7        ; xmm0 = c1 * i1 + c7 * i7 = A\n    movdqa        m7, m5        ; xmm7 = i6\n    psubsw        m0, m4        ; xmm0 = A - C\n    pmulhw        m5, C(2)      ; xmm5 = c2 * i6 - i6\n    paddw         m2, m1        ; xmm2 = i2 * c2\n    pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:12", "text": "movdqa        m7, m5        ; xmm7 = i6\n    psubsw        m0, m4        ; xmm0 = A - C\n    pmulhw        m5, C(2)      ; xmm5 = c2 * i6 - i6\n    paddw         m2, m1        ; xmm2 = i2 * c2\n    pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4\n    paddsw        m1, m5        ; xmm1 = B. + H = H.\n    pmulhw        m4, m3        ; xmm4 = ( c4 - 1 ) * ( i0 + i4 )\n    paddw         m6, m0        ; xmm6 = c4 * ( i0 - i4 )\n    psubsw        m6, m2        ; xmm6 = F - A. = F.\n    paddsw        m2, m2        ; xmm2 = A. + A.\n    movdqa        m0, I(1)      ; Load        C. from I(1)\n    paddsw        m2, m6        ; xmm2 = F + A. = A..\n    paddw         m4, m3        ; xmm4 = c4 * ( i0 + i4 ) = 3\n    psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:13", "text": "psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 1\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:14", "text": "%macro VP3_IDCT 1\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]\n    packsswb      m0, [r2+mmsize*1+%%i]\n    packsswb      m1, [r2+mmsize*3+%%i]\n    packsswb      m2, [r2+mmsize*5+%%i]\n    packsswb      m3, [r2+mmsize*7+%%i]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:15", "text": "paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+%%i]\n    paddsw        m1, [r2+16+%%i]\n    paddsw        m2, [r2+32+%%i]\n    paddsw        m3, [r2+48+%%i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:16", "text": "paddsw        m2, [r2+32+%%i]\n    paddsw        m3, [r2+48+%%i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:17", "text": "movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "a677b382981a599f85943c14d6b0b5f253de7ec7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a677b382981a599f85943c14d6b0b5f253de7ec7/libavcodec/x86/vp3dsp.asm", "line_start": 641, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:13", "text": "psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 1\n%if mmsize == 16\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9/libavcodec/x86/vp3dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:14", "text": "%macro VP3_IDCT 1\n%if mmsize == 16\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%else ; mmsize == 8\n    ; eax = quantized input\n    ; ebx = dequantizer matrix\n    ; ecx = IDCT constants\n    ;  M(I) = ecx + MaskOffset(0) + I * 8\n    ;  C(I) = ecx + CosineOffset(32) + (I-1) * 8\n    ; edx = output\n    ; r0..r7 = mm0..mm7\n%define OC_8 [pw_8]\n%define C(x) [vp3_idct_data+16*(x-1)]\n\n    ; at this point, function has completed dequantization + dezigzag +\n    ; partial transposition; now do the idct itself\n%define I(x) [%1+16*x]\n%define J(x) [%1+16*x]\n    RowIDCT\n    Transpose\n\n%define I(x) [%1+16*x+8]\n%define J(x) [%1+16*x+8]\n    RowIDCT\n    Transpose\n\n%define I(x) [%1+16* x]\n%define J(x) [%1+16*(x-4)+8]\n    ColumnIDCT\n\n%define I(x) [%1+16* x   +64]\n%define J(x) [%1+16*(x-4)+72]\n    ColumnIDCT\n%endif ; mmsize == 16/8\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9/libavcodec/x86/vp3dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:15", "text": "RowIDCT\n    Transpose\n\n%define I(x) [%1+16* x]\n%define J(x) [%1+16*(x-4)+8]\n    ColumnIDCT\n\n%define I(x) [%1+16* x   +64]\n%define J(x) [%1+16*(x-4)+72]\n    ColumnIDCT\n%endif ; mmsize == 16/8\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]\n    packsswb      m0, [r2+mmsize*1+%%i]\n    packsswb      m1, [r2+mmsize*3+%%i]\n    packsswb      m2, [r2+mmsize*5+%%i]\n    packsswb      m3, [r2+mmsize*7+%%i]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9/libavcodec/x86/vp3dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:16", "text": "movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+%%i]\n    paddsw        m1, [r2+16+%%i]\n    paddsw        m2, [r2+32+%%i]\n    paddsw        m3, [r2+48+%%i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9/libavcodec/x86/vp3dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:17", "text": "%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9/libavcodec/x86/vp3dsp.asm", "line_start": 641, "line_end": 692}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:18", "text": "add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3ca57ae8f21da56b1fe86dd575bc17c58bc6dc9/libavcodec/x86/vp3dsp.asm", "line_start": 681, "line_end": 692}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the VP3 decoder\n;* Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n; MMX-optimized functions cribbed from the original VP3 source code.\n\nSECTION_RODATA\n\nvp3_idct_data: times 8 dw 64277\n               times 8 dw 60547\n               times 8 dw 54491\n               times 8 dw 46341\n               times 8 dw 36410\n               times 8 dw 25080\n               times 8 dw 12785\n\npb_7:  times 8 db 0x07\npb_1F: times 8 db 0x1f\npb_81: times 8 db 0x81\n\ncextern pb_1\ncextern pb_3\ncextern pb_80\ncextern pb_FE\n\ncextern pw_8\n\nSECTION .text\n\n; this is off by one or two for some cases when filter_limit is greater than 63\n; in:  p0 in mm6, p1 in mm4, p2 in mm2, p3 in mm1\n; out: p1 in mm4, p2 in mm3\n%macro VP3_LOOP_FILTER 0\n    movq          m7, m6\n    pand          m6, [pb_7]    ; p0&7\n    psrlw         m7, 3\n    pand          m7, [pb_1F]   ; p0>>3\n    movq          m3, m2        ; p2\n    pxor          m2, m4\n    pand          m2, [pb_1]    ; (p2^p1)&1\n    movq          m5, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:2", "text": "cextern pb_3\ncextern pb_80\ncextern pb_FE\n\ncextern pw_8\n\nSECTION .text\n\n; this is off by one or two for some cases when filter_limit is greater than 63\n; in:  p0 in mm6, p1 in mm4, p2 in mm2, p3 in mm1\n; out: p1 in mm4, p2 in mm3\n%macro VP3_LOOP_FILTER 0\n    movq          m7, m6\n    pand          m6, [pb_7]    ; p0&7\n    psrlw         m7, 3\n    pand          m7, [pb_1F]   ; p0>>3\n    movq          m3, m2        ; p2\n    pxor          m2, m4\n    pand          m2, [pb_1]    ; (p2^p1)&1\n    movq          m5, m2\n    paddb         m2, m2\n    paddb         m2, m5        ; 3*(p2^p1)&1\n    paddb         m2, m6        ; extra bits lost in shifts\n    pcmpeqb       m0, m0\n    pxor          m1, m0        ; 255 - p3\n    pavgb         m1, m2        ; (256 - p3 + extrabits) >> 1\n    pxor          m0, m4        ; 255 - p1\n    pavgb         m0, m3        ; (256 + p2-p1) >> 1\n    paddb         m1, [pb_3]\n    pavgb         m1, m0        ; 128+2+(   p2-p1  - p3) >> 2\n    pavgb         m1, m0        ; 128+1+(3*(p2-p1) - p3) >> 3\n    paddusb       m7, m1        ; d+128+1\n    movq          m6, [pb_81]\n    psubusb       m6, m7\n    psubusb       m7, [pb_81]\n\n    movq          m5, [r2+516]  ; flim\n    pminub        m6, m5\n    pminub        m7, m5\n    movq          m0, m6\n    movq          m1, m7\n    paddb         m6, m6\n    paddb         m7, m7\n    pminub        m6, m5\n    pminub        m7, m5\n    psubb         m6, m0\n    psubb         m7, m1\n    paddusb       m4, m7\n    psubusb       m4, m6\n    psubusb       m3, m7\n    paddusb       m3, m6\n%endmacro\n\n%macro STORE_4_WORDS 1\n    movd         r2d, %1\n    mov  [r0     -1], r2w\n    psrlq         %1, 32\n    shr           r2, 16\n    mov  [r0+r1  -1], r2w\n    movd         r2d, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:3", "text": "movq          m1, m7\n    paddb         m6, m6\n    paddb         m7, m7\n    pminub        m6, m5\n    pminub        m7, m5\n    psubb         m6, m0\n    psubb         m7, m1\n    paddusb       m4, m7\n    psubusb       m4, m6\n    psubusb       m3, m7\n    paddusb       m3, m6\n%endmacro\n\n%macro STORE_4_WORDS 1\n    movd         r2d, %1\n    mov  [r0     -1], r2w\n    psrlq         %1, 32\n    shr           r2, 16\n    mov  [r0+r1  -1], r2w\n    movd         r2d, %1\n    mov  [r0+r1*2-1], r2w\n    shr           r2, 16\n    mov  [r0+r3  -1], r2w\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_v_loop_filter, 3, 4\n    mov           r3, r1\n    neg           r1\n    movq          m6, [r0+r1*2]\n    movq          m4, [r0+r1  ]\n    movq          m2, [r0     ]\n    movq          m1, [r0+r3  ]\n\n    VP3_LOOP_FILTER\n\n    movq     [r0+r1], m4\n    movq     [r0   ], m3\n    RET\n\ncglobal vp3_h_loop_filter, 3, 4\n    lea           r3, [r1*3]\n\n    movd          m6, [r0     -2]\n    movd          m4, [r0+r1  -2]\n    movd          m2, [r0+r1*2-2]\n    movd          m1, [r0+r3  -2]\n    lea           r0, [r0+r1*4  ]\n    punpcklbw     m6, [r0     -2]\n    punpcklbw     m4, [r0+r1  -2]\n    punpcklbw     m2, [r0+r1*2-2]\n    punpcklbw     m1, [r0+r3  -2]\n    sub           r0, r3\n    sub           r0, r1\n\n    TRANSPOSE4x4B  6, 4, 2, 1, 0\n    VP3_LOOP_FILTER\n    SBUTTERFLY    bw, 4, 3, 5\n\n    STORE_4_WORDS m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:4", "text": "cglobal vp3_h_loop_filter, 3, 4\n    lea           r3, [r1*3]\n\n    movd          m6, [r0     -2]\n    movd          m4, [r0+r1  -2]\n    movd          m2, [r0+r1*2-2]\n    movd          m1, [r0+r3  -2]\n    lea           r0, [r0+r1*4  ]\n    punpcklbw     m6, [r0     -2]\n    punpcklbw     m4, [r0+r1  -2]\n    punpcklbw     m2, [r0+r1*2-2]\n    punpcklbw     m1, [r0+r3  -2]\n    sub           r0, r3\n    sub           r0, r1\n\n    TRANSPOSE4x4B  6, 4, 2, 1, 0\n    VP3_LOOP_FILTER\n    SBUTTERFLY    bw, 4, 3, 5\n\n    STORE_4_WORDS m4\n    lea           r0, [r0+r1*4  ]\n    STORE_4_WORDS m3\n    RET\n\n%macro PAVGB_NO_RND 0\n    mova   m4, m0\n    mova   m5, m2\n    pand   m4, m1\n    pand   m5, m3\n    pxor   m1, m0\n    pxor   m3, m2\n    pand   m1, m6\n    pand   m3, m6\n    psrlq  m1, 1\n    psrlq  m3, 1\n    paddb  m4, m1\n    paddb  m5, m3\n%endmacro\n\nINIT_MMX mmx\ncglobal put_vp_no_rnd_pixels8_l2, 5, 6, 0, dst, src1, src2, stride, h, stride3\n    mova   m6, [pb_FE]\n    lea    stride3q,[strideq+strideq*2]\n.loop:\n    mova   m0, [src1q]\n    mova   m1, [src2q]\n    mova   m2, [src1q+strideq]\n    mova   m3, [src2q+strideq]\n    PAVGB_NO_RND\n    mova   [dstq], m4\n    mova   [dstq+strideq], m5\n\n    mova   m0, [src1q+strideq*2]\n    mova   m1, [src2q+strideq*2]\n    mova   m2, [src1q+stride3q]\n    mova   m3, [src2q+stride3q]\n    PAVGB_NO_RND\n    mova   [dstq+strideq*2], m4\n    mova   [dstq+stride3q],  m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:5", "text": "cglobal put_vp_no_rnd_pixels8_l2, 5, 6, 0, dst, src1, src2, stride, h, stride3\n    mova   m6, [pb_FE]\n    lea    stride3q,[strideq+strideq*2]\n.loop:\n    mova   m0, [src1q]\n    mova   m1, [src2q]\n    mova   m2, [src1q+strideq]\n    mova   m3, [src2q+strideq]\n    PAVGB_NO_RND\n    mova   [dstq], m4\n    mova   [dstq+strideq], m5\n\n    mova   m0, [src1q+strideq*2]\n    mova   m1, [src2q+strideq*2]\n    mova   m2, [src1q+stride3q]\n    mova   m3, [src2q+stride3q]\n    PAVGB_NO_RND\n    mova   [dstq+strideq*2], m4\n    mova   [dstq+stride3q],  m5\n\n    lea    src1q, [src1q+strideq*4]\n    lea    src2q, [src2q+strideq*4]\n    lea    dstq,  [dstq+strideq*4]\n    sub    hd, 4\n    jnz .loop\n    RET\n\n; from original comments: The Macro does IDct on 4 1-D Dcts\n%macro BeginIDCT 0\n    movq          m2, I(3)\n    movq          m6, C(3)\n    movq          m4, m2\n    movq          m7, J(5)\n    pmulhw        m4, m6        ; r4 = c3*i3 - i3\n    movq          m1, C(5)\n    pmulhw        m6, m7        ; r6 = c3*i5 - i5\n    movq          m5, m1\n    pmulhw        m1, m2        ; r1 = c5*i3 - i3\n    movq          m3, I(1)\n    pmulhw        m5, m7        ; r5 = c5*i5 - i5\n    movq          m0, C(1)\n    paddw         m4, m2        ; r4 = c3*i3\n    paddw         m6, m7        ; r6 = c3*i5\n    paddw         m2, m1        ; r2 = c5*i3\n    movq          m1, J(7)\n    paddw         m7, m5        ; r7 = c5*i5\n    movq          m5, m0        ; r5 = c1\n    pmulhw        m0, m3        ; r0 = c1*i1 - i1\n    paddsw        m4, m7        ; r4 = C = c3*i3 + c5*i5\n    pmulhw        m5, m1        ; r5 = c1*i7 - i7\n    movq          m7, C(7)\n    psubsw        m6, m2        ; r6 = D = c3*i5 - c5*i3\n    paddw         m0, m3        ; r0 = c1*i1\n    pmulhw        m3, m7        ; r3 = c7*i1\n    movq          m2, I(2)\n    pmulhw        m7, m1        ; r7 = c7*i7\n    paddw         m5, m1        ; r5 = c1*i7\n    movq          m1, m2        ; r1 = i2\n    pmulhw        m2, C(2)      ; r2 = c2*i2 - i2\n    psubsw        m3, m5        ; r3 = B = c7*i1 - c1*i7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:6", "text": "movq          m0, C(1)\n    paddw         m4, m2        ; r4 = c3*i3\n    paddw         m6, m7        ; r6 = c3*i5\n    paddw         m2, m1        ; r2 = c5*i3\n    movq          m1, J(7)\n    paddw         m7, m5        ; r7 = c5*i5\n    movq          m5, m0        ; r5 = c1\n    pmulhw        m0, m3        ; r0 = c1*i1 - i1\n    paddsw        m4, m7        ; r4 = C = c3*i3 + c5*i5\n    pmulhw        m5, m1        ; r5 = c1*i7 - i7\n    movq          m7, C(7)\n    psubsw        m6, m2        ; r6 = D = c3*i5 - c5*i3\n    paddw         m0, m3        ; r0 = c1*i1\n    pmulhw        m3, m7        ; r3 = c7*i1\n    movq          m2, I(2)\n    pmulhw        m7, m1        ; r7 = c7*i7\n    paddw         m5, m1        ; r5 = c1*i7\n    movq          m1, m2        ; r1 = i2\n    pmulhw        m2, C(2)      ; r2 = c2*i2 - i2\n    psubsw        m3, m5        ; r3 = B = c7*i1 - c1*i7\n    movq          m5, J(6)\n    paddsw        m0, m7        ; r0 = A = c1*i1 + c7*i7\n    movq          m7, m5        ; r7 = i6\n    psubsw        m0, m4        ; r0 = A - C\n    pmulhw        m5, C(2)      ; r5 = c2*i6 - i6\n    paddw         m2, m1        ; r2 = c2*i2\n    pmulhw        m1, C(6)      ; r1 = c6*i2\n    paddsw        m4, m4        ; r4 = C + C\n    paddsw        m4, m0        ; r4 = C. = A + C\n    psubsw        m3, m6        ; r3 = B - D\n    paddw         m5, m7        ; r5 = c2*i6\n    paddsw        m6, m6        ; r6 = D + D\n    pmulhw        m7, C(6)      ; r7 = c6*i6\n    paddsw        m6, m3        ; r6 = D. = B + D\n    movq        I(1), m4        ; save C. at I(1)\n    psubsw        m1, m5        ; r1 = H = c6*i2 - c2*i6\n    movq          m4, C(4)\n    movq          m5, m3        ; r5 = B - D\n    pmulhw        m3, m4        ; r3 = (c4 - 1) * (B - D)\n    paddsw        m7, m2        ; r3 = (c4 - 1) * (B - D)\n    movq        I(2), m6        ; save D. at I(2)\n    movq          m2, m0        ; r2 = A - C\n    movq          m6, I(0)\n    pmulhw        m0, m4        ; r0 = (c4 - 1) * (A - C)\n    paddw         m5, m3        ; r5 = B. = c4 * (B - D)\n    movq          m3, J(4)\n    psubsw        m5, m1        ; r5 = B.. = B. - H\n    paddw         m2, m0        ; r0 = A. = c4 * (A - C)\n    psubsw        m6, m3        ; r6 = i0 - i4\n    movq          m0, m6\n    pmulhw        m6, m4        ; r6 = (c4 - 1) * (i0 - i4)\n    paddsw        m3, m3        ; r3 = i4 + i4\n    paddsw        m1, m1        ; r1 = H + H\n    paddsw        m3, m0        ; r3 = i0 + i4\n    paddsw        m1, m5        ; r1 = H. = B + H\n    pmulhw        m4, m3        ; r4 = (c4 - 1) * (i0 + i4)\n    paddsw        m6, m0        ; r6 = F = c4 * (i0 - i4)\n    psubsw        m6, m2        ; r6 = F. = F - A.\n    paddsw        m2, m2        ; r2 = A. + A.\n    movq          m0, I(1)      ; r0 = C.", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:7", "text": "movq        I(2), m6        ; save D. at I(2)\n    movq          m2, m0        ; r2 = A - C\n    movq          m6, I(0)\n    pmulhw        m0, m4        ; r0 = (c4 - 1) * (A - C)\n    paddw         m5, m3        ; r5 = B. = c4 * (B - D)\n    movq          m3, J(4)\n    psubsw        m5, m1        ; r5 = B.. = B. - H\n    paddw         m2, m0        ; r0 = A. = c4 * (A - C)\n    psubsw        m6, m3        ; r6 = i0 - i4\n    movq          m0, m6\n    pmulhw        m6, m4        ; r6 = (c4 - 1) * (i0 - i4)\n    paddsw        m3, m3        ; r3 = i4 + i4\n    paddsw        m1, m1        ; r1 = H + H\n    paddsw        m3, m0        ; r3 = i0 + i4\n    paddsw        m1, m5        ; r1 = H. = B + H\n    pmulhw        m4, m3        ; r4 = (c4 - 1) * (i0 + i4)\n    paddsw        m6, m0        ; r6 = F = c4 * (i0 - i4)\n    psubsw        m6, m2        ; r6 = F. = F - A.\n    paddsw        m2, m2        ; r2 = A. + A.\n    movq          m0, I(1)      ; r0 = C.\n    paddsw        m2, m6        ; r2 = A.. = F + A.\n    paddw         m4, m3        ; r4 = E = c4 * (i0 + i4)\n    psubsw        m2, m1        ; r2 = R2 = A.. - H.\n%endmacro\n\n; RowIDCT gets ready to transpose\n%macro RowIDCT 0\n    BeginIDCT\n    movq          m3, I(2)      ; r3 = D.\n    psubsw        m4, m7        ; r4 = E. = E - G\n    paddsw        m1, m1        ; r1 = H. + H.\n    paddsw        m7, m7        ; r7 = G + G\n    paddsw        m1, m2        ; r1 = R1 = A.. + H.\n    paddsw        m7, m4        ; r1 = R1 = A.. + H.\n    psubsw        m4, m3        ; r4 = R4 = E. - D.\n    paddsw        m3, m3\n    psubsw        m6, m5        ; r6 = R6 = F. - B..\n    paddsw        m5, m5\n    paddsw        m3, m4        ; r3 = R3 = E. + D.\n    paddsw        m5, m6        ; r5 = R5 = F. + B..\n    psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m0, m0\n    movq        I(1), m1        ; save R1\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n%endmacro\n\n; Column IDCT normalizes and stores final results\n%macro ColumnIDCT 0\n    BeginIDCT\n    paddsw        m2, OC_8      ; adjust R2 (and R1) for shift\n    paddsw        m1, m1        ; r1 = H. + H.\n    paddsw        m1, m2        ; r1 = R1 = A.. + H.\n    psraw         m2, 4         ; r2 = NR2\n    psubsw        m4, m7        ; r4 = E. = E - G\n    psraw         m1, 4         ; r1 = NR2\n    movq          m3, I(2)      ; r3 = D.\n    paddsw        m7, m7        ; r7 = G + G\n    movq        I(2), m2        ; store NR2 at I2\n    paddsw        m7, m4        ; r7 = G. = E + G\n    movq        I(1), m1        ; store NR1 at I1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:8", "text": "psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m0, m0\n    movq        I(1), m1        ; save R1\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n%endmacro\n\n; Column IDCT normalizes and stores final results\n%macro ColumnIDCT 0\n    BeginIDCT\n    paddsw        m2, OC_8      ; adjust R2 (and R1) for shift\n    paddsw        m1, m1        ; r1 = H. + H.\n    paddsw        m1, m2        ; r1 = R1 = A.. + H.\n    psraw         m2, 4         ; r2 = NR2\n    psubsw        m4, m7        ; r4 = E. = E - G\n    psraw         m1, 4         ; r1 = NR2\n    movq          m3, I(2)      ; r3 = D.\n    paddsw        m7, m7        ; r7 = G + G\n    movq        I(2), m2        ; store NR2 at I2\n    paddsw        m7, m4        ; r7 = G. = E + G\n    movq        I(1), m1        ; store NR1 at I1\n    psubsw        m4, m3        ; r4 = R4 = E. - D.\n    paddsw        m4, OC_8      ; adjust R4 (and R3) for shift\n    paddsw        m3, m3        ; r3 = D. + D.\n    paddsw        m3, m4        ; r3 = R3 = E. + D.\n    psraw         m4, 4         ; r4 = NR4\n    psubsw        m6, m5        ; r6 = R6 = F. - B..\n    psraw         m3, 4         ; r3 = NR3\n    paddsw        m6, OC_8      ; adjust R6 (and R5) for shift\n    paddsw        m5, m5        ; r5 = B.. + B..\n    paddsw        m5, m6        ; r5 = R5 = F. + B..\n    psraw         m6, 4         ; r6 = NR6\n    movq        J(4), m4        ; store NR4 at J4\n    psraw         m5, 4         ; r5 = NR5\n    movq        I(3), m3        ; store NR3 at I3\n    psubsw        m7, m0        ; r7 = R7 = G. - C.\n    paddsw        m7, OC_8      ; adjust R7 (and R0) for shift\n    paddsw        m0, m0        ; r0 = C. + C.\n    paddsw        m0, m7        ; r0 = R0 = G. + C.\n    psraw         m7, 4         ; r7 = NR7\n    movq        J(6), m6        ; store NR6 at J6\n    psraw         m0, 4         ; r0 = NR0\n    movq        J(5), m5        ; store NR5 at J5\n    movq        J(7), m7        ; store NR7 at J7\n    movq        I(0), m0        ; store NR0 at I0\n%endmacro\n\n; Following macro does two 4x4 transposes in place.\n;\n; At entry (we assume):\n;\n;   r0 = a3 a2 a1 a0\n;   I(1) = b3 b2 b1 b0\n;   r2 = c3 c2 c1 c0\n;   r3 = d3 d2 d1 d0\n;\n;   r4 = e3 e2 e1 e0\n;   r5 = f3 f2 f1 f0\n;   r6 = g3 g2 g1 g0\n;   r7 = h3 h2 h1 h0\n;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:9", "text": "psraw         m0, 4         ; r0 = NR0\n    movq        J(5), m5        ; store NR5 at J5\n    movq        J(7), m7        ; store NR7 at J7\n    movq        I(0), m0        ; store NR0 at I0\n%endmacro\n\n; Following macro does two 4x4 transposes in place.\n;\n; At entry (we assume):\n;\n;   r0 = a3 a2 a1 a0\n;   I(1) = b3 b2 b1 b0\n;   r2 = c3 c2 c1 c0\n;   r3 = d3 d2 d1 d0\n;\n;   r4 = e3 e2 e1 e0\n;   r5 = f3 f2 f1 f0\n;   r6 = g3 g2 g1 g0\n;   r7 = h3 h2 h1 h0\n;\n; At exit, we have:\n;\n;   I(0) = d0 c0 b0 a0\n;   I(1) = d1 c1 b1 a1\n;   I(2) = d2 c2 b2 a2\n;   I(3) = d3 c3 b3 a3\n;\n;   J(4) = h0 g0 f0 e0\n;   J(5) = h1 g1 f1 e1\n;   J(6) = h2 g2 f2 e2\n;   J(7) = h3 g3 f3 e3\n;\n;  I(0) I(1) I(2) I(3)  is the transpose of r0 I(1) r2 r3.\n;  J(4) J(5) J(6) J(7)  is the transpose of r4 r5 r6 r7.\n;\n;  Since r1 is free at entry, we calculate the Js first.\n%macro Transpose 0\n    movq          m1, m4        ; r1 = e3 e2 e1 e0\n    punpcklwd     m4, m5        ; r4 = f1 e1 f0 e0\n    movq        I(0), m0        ; save a3 a2 a1 a0\n    punpckhwd     m1, m5        ; r1 = f3 e3 f2 e2\n    movq          m0, m6        ; r0 = g3 g2 g1 g0\n    punpcklwd     m6, m7        ; r6 = h1 g1 h0 g0\n    movq          m5, m4        ; r5 = f1 e1 f0 e0\n    punpckldq     m4, m6        ; r4 = h0 g0 f0 e0 = R4\n    punpckhdq     m5, m6        ; r5 = h1 g1 f1 e1 = R5\n    movq          m6, m1        ; r6 = f3 e3 f2 e2\n    movq        J(4), m4\n    punpckhwd     m0, m7        ; r0 = h3 g3 h2 g2\n    movq        J(5), m5\n    punpckhdq     m6, m0        ; r6 = h3 g3 f3 e3 = R7\n    movq          m4, I(0)      ; r4 = a3 a2 a1 a0\n    punpckldq     m1, m0        ; r1 = h2 g2 f2 e2 = R6\n    movq          m5, I(1)      ; r5 = b3 b2 b1 b0\n    movq          m0, m4        ; r0 = a3 a2 a1 a0\n    movq        J(7), m6\n    punpcklwd     m0, m5        ; r0 = b1 a1 b0 a0\n    movq        J(6), m1\n    punpckhwd     m4, m5        ; r4 = b3 a3 b2 a2\n    movq          m5, m2        ; r5 = c3 c2 c1 c0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:10", "text": "punpckhwd     m1, m5        ; r1 = f3 e3 f2 e2\n    movq          m0, m6        ; r0 = g3 g2 g1 g0\n    punpcklwd     m6, m7        ; r6 = h1 g1 h0 g0\n    movq          m5, m4        ; r5 = f1 e1 f0 e0\n    punpckldq     m4, m6        ; r4 = h0 g0 f0 e0 = R4\n    punpckhdq     m5, m6        ; r5 = h1 g1 f1 e1 = R5\n    movq          m6, m1        ; r6 = f3 e3 f2 e2\n    movq        J(4), m4\n    punpckhwd     m0, m7        ; r0 = h3 g3 h2 g2\n    movq        J(5), m5\n    punpckhdq     m6, m0        ; r6 = h3 g3 f3 e3 = R7\n    movq          m4, I(0)      ; r4 = a3 a2 a1 a0\n    punpckldq     m1, m0        ; r1 = h2 g2 f2 e2 = R6\n    movq          m5, I(1)      ; r5 = b3 b2 b1 b0\n    movq          m0, m4        ; r0 = a3 a2 a1 a0\n    movq        J(7), m6\n    punpcklwd     m0, m5        ; r0 = b1 a1 b0 a0\n    movq        J(6), m1\n    punpckhwd     m4, m5        ; r4 = b3 a3 b2 a2\n    movq          m5, m2        ; r5 = c3 c2 c1 c0\n    punpcklwd     m2, m3        ; r2 = d1 c1 d0 c0\n    movq          m1, m0        ; r1 = b1 a1 b0 a0\n    punpckldq     m0, m2        ; r0 = d0 c0 b0 a0 = R0\n    punpckhdq     m1, m2        ; r1 = d1 c1 b1 a1 = R1\n    movq          m2, m4        ; r2 = b3 a3 b2 a2\n    movq        I(0), m0\n    punpckhwd     m5, m3        ; r5 = d3 c3 d2 c2\n    movq        I(1), m1\n    punpckhdq     m4, m5        ; r4 = d3 c3 b3 a3 = R3\n    punpckldq     m2, m5        ; r2 = d2 c2 b2 a2 = R2\n    movq        I(3), m4\n    movq        I(2), m2\n%endmacro\n\n%macro VP3_1D_IDCT_SSE2 0\n    movdqa        m2, I(3)      ; xmm2 = i3\n    movdqa        m6, C(3)      ; xmm6 = c3\n    movdqa        m4, m2        ; xmm4 = i3\n    movdqa        m7, I(5)      ; xmm7 = i5\n    pmulhw        m4, m6        ; xmm4 = c3 * i3 - i3\n    movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:11", "text": "movdqa        m1, C(5)      ; xmm1 = c5\n    pmulhw        m6, m7        ; xmm6 = c3 * i5 - i5\n    movdqa        m5, m1        ; xmm5 = c5\n    pmulhw        m1, m2        ; xmm1 = c5 * i3 - i3\n    movdqa        m3, I(1)      ; xmm3 = i1\n    pmulhw        m5, m7        ; xmm5 = c5 * i5 - i5\n    movdqa        m0, C(1)      ; xmm0 = c1\n    paddw         m4, m2        ; xmm4 = c3 * i3\n    paddw         m6, m7        ; xmm6 = c3 * i5\n    paddw         m2, m1        ; xmm2 = c5 * i3\n    movdqa        m1, I(7)      ; xmm1 = i7\n    paddw         m7, m5        ; xmm7 = c5 * i5\n    movdqa        m5, m0        ; xmm5 = c1\n    pmulhw        m0, m3        ; xmm0 = c1 * i1 - i1\n    paddsw        m4, m7        ; xmm4 = c3 * i3 + c5 * i5 = C\n    pmulhw        m5, m1        ; xmm5 = c1 * i7 - i7\n    movdqa        m7, C(7)      ; xmm7 = c7\n    psubsw        m6, m2        ; xmm6 = c3 * i5 - c5 * i3 = D\n    paddw         m0, m3        ; xmm0 = c1 * i1\n    pmulhw        m3, m7        ; xmm3 = c7 * i1\n    movdqa        m2, I(2)      ; xmm2 = i2\n    pmulhw        m7, m1        ; xmm7 = c7 * i7\n    paddw         m5, m1        ; xmm5 = c1 * i7\n    movdqa        m1, m2        ; xmm1 = i2\n    pmulhw        m2, C(2)      ; xmm2 = i2 * c2 -i2\n    psubsw        m3, m5        ; xmm3 = c7 * i1 - c1 * i7 = B\n    movdqa        m5, I(6)      ; xmm5 = i6\n    paddsw        m0, m7        ; xmm0 = c1 * i1 + c7 * i7 = A\n    movdqa        m7, m5        ; xmm7 = i6\n    psubsw        m0, m4        ; xmm0 = A - C\n    pmulhw        m5, C(2)      ; xmm5 = c2 * i6 - i6\n    paddw         m2, m1        ; xmm2 = i2 * c2\n    pmulhw        m1, C(6)      ; xmm1 = c6 * i2\n    paddsw        m4, m4        ; xmm4 = C + C\n    paddsw        m4, m0        ; xmm4 = A + C = C.\n    psubsw        m3, m6        ; xmm3 = B - D\n    paddw         m5, m7        ; xmm5 = c2 * i6\n    paddsw        m6, m6        ; xmm6 = D + D\n    pmulhw        m7, C(6)      ; xmm7 = c6 * i6\n    paddsw        m6, m3        ; xmm6 = B + D = D.\n    movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:12", "text": "movdqa      I(1), m4        ; Save C. at I(1)\n    psubsw        m1, m5        ; xmm1 = c6 * i2 - c2 * i6 = H\n    movdqa        m4, C(4)      ; xmm4 = C4\n    movdqa        m5, m3        ; xmm5 = B - D\n    pmulhw        m3, m4        ; xmm3 = ( c4 -1 ) * ( B - D )\n    paddsw        m7, m2        ; xmm7 = c2 * i2 + c6 * i6 = G\n    movdqa      I(2), m6        ; save D. at I(2)\n    movdqa        m2, m0        ; xmm2 = A - C\n    movdqa        m6, I(0)      ; xmm6 = i0\n    pmulhw        m0, m4        ; xmm0 = ( c4 - 1 ) * ( A - C ) = A.\n    paddw         m5, m3        ; xmm5 = c4 * ( B - D ) = B.\n    movdqa        m3, I(4)      ; xmm3 = i4\n    psubsw        m5, m1        ; xmm5 = B. - H = B..\n    paddw         m2, m0        ; xmm2 = c4 * ( A - C) = A.\n    psubsw        m6, m3        ; xmm6 = i0 - i4\n    movdqa        m0, m6        ; xmm0 = i0 - i4\n    pmulhw        m6, m4        ; xmm6 = (c4 - 1) * (i0 - i4) = F\n    paddsw        m3, m3        ; xmm3 = i4 + i4\n    paddsw        m1, m1        ; xmm1 = H + H\n    paddsw        m3, m0        ; xmm3 = i0 + i4\n    paddsw        m1, m5        ; xmm1 = B. + H = H.\n    pmulhw        m4, m3        ; xmm4 = ( c4 - 1 ) * ( i0 + i4 )\n    paddw         m6, m0        ; xmm6 = c4 * ( i0 - i4 )\n    psubsw        m6, m2        ; xmm6 = F - A. = F.\n    paddsw        m2, m2        ; xmm2 = A. + A.\n    movdqa        m0, I(1)      ; Load        C. from I(1)\n    paddsw        m2, m6        ; xmm2 = F + A. = A..\n    paddw         m4, m3        ; xmm4 = c4 * ( i0 + i4 ) = 3\n    psubsw        m2, m1        ; xmm2 = A.. - H. = R2\n    ADD(m2)                     ; Adjust R2 and R1 before shifting\n    paddsw        m1, m1        ; xmm1 = H. + H.\n    paddsw        m1, m2        ; xmm1 = A.. + H. = R1\n    SHIFT(m2)                   ; xmm2 = op2\n    psubsw        m4, m7        ; xmm4 = E - G = E.\n    SHIFT(m1)                   ; xmm1 = op1\n    movdqa        m3, I(2)      ; Load D. from I(2)\n    paddsw        m7, m7        ; xmm7 = G + G\n    paddsw        m7, m4        ; xmm7 = E + G = G.\n    psubsw        m4, m3        ; xmm4 = E. - D. = R4\n    ADD(m4)                     ; Adjust R4 and R3 before shifting\n    paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:13", "text": "paddsw        m3, m3        ; xmm3 = D. + D.\n    paddsw        m3, m4        ; xmm3 = E. + D. = R3\n    SHIFT(m4)                   ; xmm4 = op4\n    psubsw        m6, m5        ; xmm6 = F. - B..= R6\n    SHIFT(m3)                   ; xmm3 = op3\n    ADD(m6)                     ; Adjust R6 and R5 before shifting\n    paddsw        m5, m5        ; xmm5 = B.. + B..\n    paddsw        m5, m6        ; xmm5 = F. + B.. = R5\n    SHIFT(m6)                   ; xmm6 = op6\n    SHIFT(m5)                   ; xmm5 = op5\n    psubsw        m7, m0        ; xmm7 = G. - C. = R7\n    ADD(m7)                     ; Adjust R7 and R0 before shifting\n    paddsw        m0, m0        ; xmm0 = C. + C.\n    paddsw        m0, m7        ; xmm0 = G. + C.\n    SHIFT(m7)                   ; xmm7 = op7\n    SHIFT(m0)                   ; xmm0 = op0\n%endmacro\n\n%macro PUT_BLOCK 8\n    movdqa      O(0), m%1\n    movdqa      O(1), m%2\n    movdqa      O(2), m%3\n    movdqa      O(3), m%4\n    movdqa      O(4), m%5\n    movdqa      O(5), m%6\n    movdqa      O(6), m%7\n    movdqa      O(7), m%8\n%endmacro\n\n%macro VP3_IDCT 1\n%if mmsize == 16\n%define I(x) [%1+16*x]\n%define O(x) [%1+16*x]\n%define C(x) [vp3_idct_data+16*(x-1)]\n%define SHIFT(x)\n%define ADD(x)\n        VP3_1D_IDCT_SSE2\n%if ARCH_X86_64\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n        TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%else ; mmsize == 8\n    ; eax = quantized input\n    ; ebx = dequantizer matrix\n    ; ecx = IDCT constants\n    ;  M(I) = ecx + MaskOffset(0) + I * 8\n    ;  C(I) = ecx + CosineOffset(32) + (I-1) * 8\n    ; edx = output\n    ; r0..r7 = mm0..mm7\n%define OC_8 [pw_8]\n%define C(x) [vp3_idct_data+16*(x-1)]\n\n    ; at this point, function has completed dequantization + dezigzag +", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:14", "text": "TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [%1], [%1+16]\n%endif\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n\n%define SHIFT(x) psraw  x, 4\n%define ADD(x)   paddsw x, [pw_8]\n        VP3_1D_IDCT_SSE2\n        PUT_BLOCK 0, 1, 2, 3, 4, 5, 6, 7\n%else ; mmsize == 8\n    ; eax = quantized input\n    ; ebx = dequantizer matrix\n    ; ecx = IDCT constants\n    ;  M(I) = ecx + MaskOffset(0) + I * 8\n    ;  C(I) = ecx + CosineOffset(32) + (I-1) * 8\n    ; edx = output\n    ; r0..r7 = mm0..mm7\n%define OC_8 [pw_8]\n%define C(x) [vp3_idct_data+16*(x-1)]\n\n    ; at this point, function has completed dequantization + dezigzag +\n    ; partial transposition; now do the idct itself\n%define I(x) [%1+16*x]\n%define J(x) [%1+16*x]\n    RowIDCT\n    Transpose\n\n%define I(x) [%1+16*x+8]\n%define J(x) [%1+16*x+8]\n    RowIDCT\n    Transpose\n\n%define I(x) [%1+16* x]\n%define J(x) [%1+16*(x-4)+8]\n    ColumnIDCT\n\n%define I(x) [%1+16* x   +64]\n%define J(x) [%1+16*(x-4)+72]\n    ColumnIDCT\n%endif ; mmsize == 16/8\n%endmacro\n\n%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]\n    packsswb      m0, [r2+mmsize*1+%%i]\n    packsswb      m1, [r2+mmsize*3+%%i]\n    packsswb      m2, [r2+mmsize*5+%%i]\n    packsswb      m3, [r2+mmsize*7+%%i]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:15", "text": "%macro vp3_idct_funcs 0\ncglobal vp3_idct_put, 3, 4, 9\n    VP3_IDCT      r2\n\n    mova          m4, [pb_80]\n    lea           r3, [r1*3]\n%assign %%i 0\n%rep 16/mmsize\n    mova          m0, [r2+mmsize*0+%%i]\n    mova          m1, [r2+mmsize*2+%%i]\n    mova          m2, [r2+mmsize*4+%%i]\n    mova          m3, [r2+mmsize*6+%%i]\n    packsswb      m0, [r2+mmsize*1+%%i]\n    packsswb      m1, [r2+mmsize*3+%%i]\n    packsswb      m2, [r2+mmsize*5+%%i]\n    packsswb      m3, [r2+mmsize*7+%%i]\n    paddb         m0, m4\n    paddb         m1, m4\n    paddb         m2, m4\n    paddb         m3, m4\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m1\n    movhps [r0+r3  ], m1\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n    movq   [r0     ], m2\n    movhps [r0+r1  ], m2\n    movq   [r0+r1*2], m3\n    movhps [r0+r3  ], m3\n%assign %%i %%i+8\n%endrep\n\n    pxor          m0, m0\n%assign %%offset 0\n%rep 128/mmsize\n    mova [r2+%%offset], m0\n%assign %%offset %%offset+mmsize\n%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+%%i]\n    paddsw        m1, [r2+16+%%i]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:16", "text": "%endrep\n    RET\n\ncglobal vp3_idct_add, 3, 4, 9\n    VP3_IDCT      r2\n\n    lea           r3, [r1*3]\n    pxor          m4, m4\n%assign %%i 0\n%rep 2\n    movq          m0, [r0]\n    movq          m1, [r0+r1]\n    movq          m2, [r0+r1*2]\n    movq          m3, [r0+r3]\n    punpcklbw     m0, m4\n    punpcklbw     m1, m4\n    punpcklbw     m2, m4\n    punpcklbw     m3, m4\n    paddsw        m0, [r2+ 0+%%i]\n    paddsw        m1, [r2+16+%%i]\n    paddsw        m2, [r2+32+%%i]\n    paddsw        m3, [r2+48+%%i]\n    packuswb      m0, m1\n    packuswb      m2, m3\n    movq   [r0     ], m0\n    movhps [r0+r1  ], m0\n    movq   [r0+r1*2], m2\n    movhps [r0+r3  ], m2\n%if %%i == 0\n    lea           r0, [r0+r1*4]\n%endif\n%assign %%i %%i+64\n%endrep\n%assign %%i 0\n%rep 128/mmsize\n    mova    [r2+%%i], m4\n%assign %%i %%i+mmsize\n%endrep\n    RET\n%endmacro\n\nINIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp3dsp.asm:17", "text": "INIT_XMM sse2\nvp3_idct_funcs\n\n%macro DC_ADD 0\n    movq          m2, [r0     ]\n    movq          m3, [r0+r1  ]\n    paddusb       m2, m0\n    movq          m4, [r0+r1*2]\n    paddusb       m3, m0\n    movq          m5, [r0+r2  ]\n    paddusb       m4, m0\n    paddusb       m5, m0\n    psubusb       m2, m1\n    psubusb       m3, m1\n    movq   [r0     ], m2\n    psubusb       m4, m1\n    movq   [r0+r1  ], m3\n    psubusb       m5, m1\n    movq   [r0+r1*2], m4\n    movq   [r0+r2  ], m5\n%endmacro\n\nINIT_MMX mmxext\ncglobal vp3_idct_dc_add, 3, 4\n    movsx         r3, word [r2]\n    mov    word [r2], 0\n    lea           r2, [r1*3]\n    add           r3, 15\n    sar           r3, 5\n    movd          m0, r3d\n    pshufw        m0, m0, 0x0\n    pxor          m1, m1\n    psubw         m1, m0\n    packuswb      m0, m0\n    packuswb      m1, m1\n    DC_ADD\n    lea           r0, [r0+r1*4]\n    DC_ADD\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp3dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp3dsp.asm", "line_start": 641, "line_end": 680}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized functions for the VP6 decoder\n;* Copyright (C) 2009  Sebastien Lucas <sebastien.lucas@gmail.com>\n;* Copyright (C) 2009  Zuxy Meng <zuxy.meng@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_64\n\nSECTION .text\n\n%macro DIAG4 7\n%if %7\n    mova          m0, [%1+%2]\n    mova          m1, [%1+%3]\n%else\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n%endif\n    pmullw        m0, m4         ; src[x-8 ] * biweight [0]\n    pmullw        m1, m5         ; src[x   ] * biweight [1]\n    paddw         m0, m1\n%if %7\n    mova          m1, [%1+%4]\n    mova          m2, [%1+%5]\n%else\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n%endif\n    paddw         m0, [pw_64]    ; Add 64\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    psraw         m0, 7\n%if %7\n    packuswb      m0, m0\n    movq        [%6], m0\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp6dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:2", "text": "paddw         m0, m1\n%if %7\n    mova          m1, [%1+%4]\n    mova          m2, [%1+%5]\n%else\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n%endif\n    paddw         m0, [pw_64]    ; Add 64\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    psraw         m0, 7\n%if %7\n    packuswb      m0, m0\n    movq        [%6], m0\n%else\n    pmaxsw        m0, m7         ; clip to 0-255 range\n    mova        [%6], m0\n%endif\n%endmacro\n\n%macro SPLAT4REGS 0\n    punpcklwd    m3, m3\n    pshufd       m4, m3, 0x0\n    pshufd       m5, m3, 0x55\n    pshufd       m6, m3, 0xAA\n    pshufd       m3, m3, 0xFF\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])\nINIT_XMM sse2\ncglobal vp6_filter_diag4, 5, 6, 8, -16*11\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov         r5d, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3, 0\n    add          r3, 16\n    add          r1, r2\n    dec         r5d\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+16]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -16, 0, 16, 32, r0, 1\n    add          r3, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp6dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:3", "text": "movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov         r5d, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3, 0\n    add          r3, 16\n    add          r1, r2\n    dec         r5d\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+16]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -16, 0, 16, 32, r0, 1\n    add          r3, 16\n    add          r0, r2\n    dec         r1d\n    jnz .nextcol\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp6dsp.asm", "line_start": 81, "line_end": 105}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized functions for the VP6 decoder\n;* Copyright (C) 2009  Sebastien Lucas <sebastien.lucas@gmail.com>\n;* Copyright (C) 2009  Zuxy Meng <zuxy.meng@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_64\n\nSECTION .text\n\n%macro DIAG4 6\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4         ; src[x-8 ] * biweight [0]\n    pmullw        m1, m5         ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    paddw         m0, [pw_64]    ; Add 64\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    punpcklwd    m3, m3\n    pshufd       m4, m3, 0x0\n    pshufd       m5, m3, 0x55\n    pshufd       m6, m3, 0xAA\n    pshufd       m3, m3, 0xFF\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "300cd2c2f225e483fc3c3bb632eddd3a4c7b4af9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/300cd2c2f225e483fc3c3bb632eddd3a4c7b4af9/libavcodec/x86/vp6dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:2", "text": "paddw         m0, [pw_64]    ; Add 64\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    punpcklwd    m3, m3\n    pshufd       m4, m3, 0x0\n    pshufd       m5, m3, 0x55\n    pshufd       m6, m3, 0xAA\n    pshufd       m3, m3, 0xFF\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])\nINIT_XMM sse2\ncglobal vp6_filter_diag4, 5, 6, 8, -8*11\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov         r5d, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3\n    add          r3, 8\n    add          r1, r2\n    dec         r5d\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec         r1d\n    jnz .nextcol\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "300cd2c2f225e483fc3c3bb632eddd3a4c7b4af9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/300cd2c2f225e483fc3c3bb632eddd3a4c7b4af9/libavcodec/x86/vp6dsp.asm", "line_start": 41, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:3", "text": "lea          r3, [rsp+8]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec         r1d\n    jnz .nextcol\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "300cd2c2f225e483fc3c3bb632eddd3a4c7b4af9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/300cd2c2f225e483fc3c3bb632eddd3a4c7b4af9/libavcodec/x86/vp6dsp.asm", "line_start": 81, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized functions for the VP6 decoder\n;* Copyright (C) 2009  Sebastien Lucas <sebastien.lucas@gmail.com>\n;* Copyright (C) 2009  Zuxy Meng <zuxy.meng@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_64\n\nSECTION .text\n\n%macro DIAG4 6\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4         ; src[x-8 ] * biweight [0]\n    pmullw        m1, m5         ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    punpcklwd    m3, m3\n    pshufd       m4, m3, 0x0\n    pshufd       m5, m3, 0x55\n    pshufd       m6, m3, 0xAA\n    pshufd       m3, m3, 0xFF\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "dcc101167cccf338e009c2188e79471415e102ca", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dcc101167cccf338e009c2188e79471415e102ca/libavcodec/x86/vp6dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:2", "text": "pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    punpcklwd    m3, m3\n    pshufd       m4, m3, 0x0\n    pshufd       m5, m3, 0x55\n    pshufd       m6, m3, 0xAA\n    pshufd       m3, m3, 0xFF\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])\nINIT_XMM sse2\ncglobal vp6_filter_diag4, 5, 6, 8, -8*11\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov         r5d, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3\n    add          r3, 8\n    add          r1, r2\n    dec         r5d\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec         r1d\n    jnz .nextcol\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "dcc101167cccf338e009c2188e79471415e102ca", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dcc101167cccf338e009c2188e79471415e102ca/libavcodec/x86/vp6dsp.asm", "line_start": 41, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:1", "text": ";******************************************************************************\n;* SSE2-optimized functions for the VP6 decoder\n;* Copyright (C) 2009  Sebastien Lucas <sebastien.lucas@gmail.com>\n;* Copyright (C) 2009  Zuxy Meng <zuxy.meng@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_64\n\nSECTION .text\n\n%macro DIAG4 6\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4         ; src[x-8 ] * biweight [0]\n    pmullw        m1, m5         ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    pshuflw      m4, m3, 0x0\n    pshuflw      m5, m3, 0x55\n    pshuflw      m6, m3, 0xAA\n    pshuflw      m3, m3, 0xFF\n    punpcklqdq   m4, m4\n    punpcklqdq   m5, m5\n    punpcklqdq   m6, m6\n    punpcklqdq   m3, m3\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "111fabf5b40841ef324f0f9f474bfaaef57f7a8a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/111fabf5b40841ef324f0f9f474bfaaef57f7a8a/libavcodec/x86/vp6dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:2", "text": "pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    pshuflw      m4, m3, 0x0\n    pshuflw      m5, m3, 0x55\n    pshuflw      m6, m3, 0xAA\n    pshuflw      m3, m3, 0xFF\n    punpcklqdq   m4, m4\n    punpcklqdq   m5, m5\n    punpcklqdq   m6, m6\n    punpcklqdq   m3, m3\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])\nINIT_XMM sse2\ncglobal vp6_filter_diag4, 5, 6, 8, -8*11\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov         r5d, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3\n    add          r3, 8\n    add          r1, r2\n    dec         r5d\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec         r1d\n    jnz .nextcol\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "111fabf5b40841ef324f0f9f474bfaaef57f7a8a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/111fabf5b40841ef324f0f9f474bfaaef57f7a8a/libavcodec/x86/vp6dsp.asm", "line_start": 41, "line_end": 93}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:3", "text": "movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov         r1d, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec         r1d\n    jnz .nextcol\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "111fabf5b40841ef324f0f9f474bfaaef57f7a8a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/111fabf5b40841ef324f0f9f474bfaaef57f7a8a/libavcodec/x86/vp6dsp.asm", "line_start": 81, "line_end": 93}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:2", "text": "pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    pshuflw      m4, m3, 0x0\n    pshuflw      m5, m3, 0x55\n    pshuflw      m6, m3, 0xAA\n    pshuflw      m3, m3, 0xFF\n    punpcklqdq   m4, m4\n    punpcklqdq   m5, m5\n    punpcklqdq   m6, m6\n    punpcklqdq   m3, m3\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])\nINIT_XMM sse2\ncglobal vp6_filter_diag4, 5, 7, 8\n    mov          r5, rsp         ; backup stack pointer\n    and         rsp, ~(mmsize-1) ; align stack\n    sub         rsp, 8*11\n\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov          r6, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3\n    add          r3, 8\n    add          r1, r2\n    dec          r6\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov          r6, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec          r6\n    jnz .nextcol\n\n    mov         rsp, r5          ; restore stack pointer\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "363a34a7cb1bb73549b0273a291657eb868218da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/363a34a7cb1bb73549b0273a291657eb868218da/libavcodec/x86/vp6dsp.asm", "line_start": 41, "line_end": 98}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:3", "text": "add          r1, r2\n    dec          r6\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov          r6, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec          r6\n    jnz .nextcol\n\n    mov         rsp, r5          ; restore stack pointer\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "363a34a7cb1bb73549b0273a291657eb868218da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/363a34a7cb1bb73549b0273a291657eb868218da/libavcodec/x86/vp6dsp.asm", "line_start": 81, "line_end": 98}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the VP6 decoder\n;* Copyright (C) 2009  Sebastien Lucas <sebastien.lucas@gmail.com>\n;* Copyright (C) 2009  Zuxy Meng <zuxy.meng@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_64\n\nSECTION .text\n\n%macro DIAG4 6\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4         ; src[x-8 ] * biweight [0]\n    pmullw        m1, m5         ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endmacro\n\n%macro SPLAT4REGS 0\n    pshuflw      m4, m3, 0x0\n    pshuflw      m5, m3, 0x55\n    pshuflw      m6, m3, 0xAA\n    pshuflw      m3, m3, 0xFF\n    punpcklqdq   m4, m4\n    punpcklqdq   m5, m5\n    punpcklqdq   m6, m6\n    punpcklqdq   m3, m3\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "f43b5f109832d3197773c67b50f70a7103a36503", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f43b5f109832d3197773c67b50f70a7103a36503/libavcodec/x86/vp6dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:1", "text": ";******************************************************************************\n;* MMX/SSE2-optimized functions for the VP6 decoder\n;* Copyright (C) 2009  Sebastien Lucas <sebastien.lucas@gmail.com>\n;* Copyright (C) 2009  Zuxy Meng <zuxy.meng@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\ncextern pw_64\n\nSECTION .text\n\n%macro DIAG4 6\n%if mmsize == 8\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    movq          m3, m0\n    movq          m4, m1\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    punpckhbw     m3, m7\n    punpckhbw     m4, m7\n    pmullw        m0, [rsp+8*11] ; src[x-8 ] * biweight [0]\n    pmullw        m1, [rsp+8*12] ; src[x   ] * biweight [1]\n    pmullw        m3, [rsp+8*11] ; src[x-8 ] * biweight [0]\n    pmullw        m4, [rsp+8*12] ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    paddw         m3, m4\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    movq          m4, m1\n    movq          m5, m2\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m4, m7\n    punpckhbw     m5, m7\n    pmullw        m1, [rsp+8*13] ; src[x+8 ] * biweight [2]\n    pmullw        m2, [rsp+8*14] ; src[x+16] * biweight [3]\n    pmullw        m4, [rsp+8*13] ; src[x+8 ] * biweight [2]\n    pmullw        m5, [rsp+8*14] ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddw         m4, m5\n    paddsw        m0, m1\n    paddsw        m3, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp6dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:2", "text": "pmullw        m3, [rsp+8*11] ; src[x-8 ] * biweight [0]\n    pmullw        m4, [rsp+8*12] ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    paddw         m3, m4\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    movq          m4, m1\n    movq          m5, m2\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    punpckhbw     m4, m7\n    punpckhbw     m5, m7\n    pmullw        m1, [rsp+8*13] ; src[x+8 ] * biweight [2]\n    pmullw        m2, [rsp+8*14] ; src[x+16] * biweight [3]\n    pmullw        m4, [rsp+8*13] ; src[x+8 ] * biweight [2]\n    pmullw        m5, [rsp+8*14] ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddw         m4, m5\n    paddsw        m0, m1\n    paddsw        m3, m4\n    paddsw        m0, m6         ; Add 64\n    paddsw        m3, m6         ; Add 64\n    psraw         m0, 7\n    psraw         m3, 7\n    packuswb      m0, m3\n    movq        [%6], m0\n%else ; mmsize == 16\n    movq          m0, [%1+%2]\n    movq          m1, [%1+%3]\n    punpcklbw     m0, m7\n    punpcklbw     m1, m7\n    pmullw        m0, m4         ; src[x-8 ] * biweight [0]\n    pmullw        m1, m5         ; src[x   ] * biweight [1]\n    paddw         m0, m1\n    movq          m1, [%1+%4]\n    movq          m2, [%1+%5]\n    punpcklbw     m1, m7\n    punpcklbw     m2, m7\n    pmullw        m1, m6         ; src[x+8 ] * biweight [2]\n    pmullw        m2, m3         ; src[x+16] * biweight [3]\n    paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endif ; mmsize == 8/16\n%endmacro\n\n%macro SPLAT4REGS 0\n%if mmsize == 8\n    movq         m5, m3\n    punpcklwd    m3, m3\n    movq         m4, m3\n    punpckldq    m3, m3\n    punpckhdq    m4, m4\n    punpckhwd    m5, m5\n    movq         m2, m5\n    punpckhdq    m2, m2\n    punpckldq    m5, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp6dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:3", "text": "paddw         m1, m2\n    paddsw        m0, m1\n    paddsw        m0, [pw_64]    ; Add 64\n    psraw         m0, 7\n    packuswb      m0, m0\n    movq        [%6], m0\n%endif ; mmsize == 8/16\n%endmacro\n\n%macro SPLAT4REGS 0\n%if mmsize == 8\n    movq         m5, m3\n    punpcklwd    m3, m3\n    movq         m4, m3\n    punpckldq    m3, m3\n    punpckhdq    m4, m4\n    punpckhwd    m5, m5\n    movq         m2, m5\n    punpckhdq    m2, m2\n    punpckldq    m5, m5\n    movq [rsp+8*11], m3\n    movq [rsp+8*12], m4\n    movq [rsp+8*13], m5\n    movq [rsp+8*14], m2\n%else ; mmsize == 16\n    pshuflw      m4, m3, 0x0\n    pshuflw      m5, m3, 0x55\n    pshuflw      m6, m3, 0xAA\n    pshuflw      m3, m3, 0xFF\n    punpcklqdq   m4, m4\n    punpcklqdq   m5, m5\n    punpcklqdq   m6, m6\n    punpcklqdq   m3, m3\n%endif ; mmsize == 8/16\n%endmacro\n\n; void ff_vp6_filter_diag4_<opt>(uint8_t *dst, uint8_t *src, ptrdiff_t stride,\n;                                const int16_t h_weight[4], const int16_t v_weights[4])\nINIT_XMM sse2\ncglobal vp6_filter_diag4, 5, 7, 8\n    mov          r5, rsp         ; backup stack pointer\n    and         rsp, ~(mmsize-1) ; align stack\n    sub         rsp, 8*11\n\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov          r6, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3\n    add          r3, 8\n    add          r1, r2\n    dec          r6\n    jnz .nextrow\n\n    movq         m3, [r4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp6dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp6dsp.asm:4", "text": "mov          r5, rsp         ; backup stack pointer\n    and         rsp, ~(mmsize-1) ; align stack\n    sub         rsp, 8*11\n\n    sub          r1, r2\n\n    pxor         m7, m7\n    movq         m3, [r3]\n    SPLAT4REGS\n\n    mov          r3, rsp\n    mov          r6, 11\n.nextrow:\n    DIAG4        r1, -1, 0, 1, 2, r3\n    add          r3, 8\n    add          r1, r2\n    dec          r6\n    jnz .nextrow\n\n    movq         m3, [r4]\n    SPLAT4REGS\n\n    lea          r3, [rsp+8]\n    mov          r6, 8\n.nextcol:\n    DIAG4        r3, -8, 0, 8, 16, r0\n    add          r3, 8\n    add          r0, r2\n    dec          r6\n    jnz .nextcol\n\n    mov         rsp, r5          ; restore stack pointer\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp6dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp6dsp.asm", "line_start": 121, "line_end": 153}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:1", "text": ";******************************************************************************\n;* VP8 ASM optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfourtap_filter4_b_m: times 4 db  -6, 123\n                     times 4 db  12,  -1\n                     times 4 db  -9,  93\n                     times 4 db  50,  -6\n                     times 4 db  -6,  50\n                     times 4 db  93,  -9\n                     times 4 db  -1,  12\n                     times 4 db 123,  -6\n\nsixtap_filter4_hb_m: times 8 db   2, -11\n                     times 4 db 108,  -8\n                     times 4 db  36,   1\n                     times 8 db   3, -16\n                     times 4 db  77, -16\n                     times 4 db  77,   3\n                     times 8 db   1,  -8\n                     times 4 db  36, -11\n                     times 4 db 108,   2\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_b_m:   times 8 db   2,  36\n                     times 8 db -11,  -8\n                     times 8 db 108,   1\n                     times 8 db   3,  77\n                     times 8 db -16, -16\n                     times 8 db  77,   3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:2", "text": "times 4 db  77,   3\n                     times 8 db   1,  -8\n                     times 4 db  36, -11\n                     times 4 db 108,   2\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_b_m:   times 8 db   2,  36\n                     times 8 db -11,  -8\n                     times 8 db 108,   1\n                     times 8 db   3,  77\n                     times 8 db -16, -16\n                     times 8 db  77,   3\n                     times 8 db   1, 108\n                     times 8 db  -8, -11\n                     times 8 db  36,   2\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "sixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_b   picregq\n%define fourtap_filter4_b  picregq\n%define sixtap_filter_b    picregq\n%define sixtap_filter4_hb  picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_b   fourtap_filter_b_m\n%define fourtap_filter4_b  fourtap_filter4_b_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define sixtap_filter4_hb  sixtap_filter4_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter4_h4_shuf: db 0, 1, 1, 2, 2, 3, 3, 4, 2, 3, 3,  4, 4,  5, 5,  6\nfilter4_h6_shuf: db 1, 3, 2, 4, 3, 5, 4, 6, 2, 4, 3,  5, 4,  6, 5,  7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "%define sixtap_filter4_hb  picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_b   fourtap_filter_b_m\n%define fourtap_filter4_b  fourtap_filter4_b_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define sixtap_filter4_hb  sixtap_filter4_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter4_h4_shuf: db 0, 1, 1, 2, 2, 3, 3, 4, 2, 3, 3,  4, 4,  5, 5,  6\nfilter4_h6_shuf: db 1, 3, 2, 4, 3, 5, 4, 6, 2, 4, 3,  5, 4,  6, 5,  7\n\nfilter_h4_shuf1: db 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5,  7, 6,  8, 7,  9\nfilter_h4_shuf2: db 1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6,  8, 7,  9, 8, 10\n\nfilter_h6_shuf1: db 0, 3, 1, 4, 2, 5, 3, 6, 4, 7, 5,  8, 6,  9, 7, 10\nfilter_h6_shuf2: db 1, 4, 2, 5, 3, 6, 4, 7, 5, 8, 6,  9, 7, 10, 8, 11\nfilter_h6_shuf3: db 2, 5, 3, 6, 4, 7, 5, 8, 6, 9, 7, 10, 8, 11, 9, 12\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7, 7,  8\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq\n%endif\n\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 6+2*(%1==8), dst, dststride, src, srcstride, height, mx, picreg\n%if %1 == 4\n    mova      m3, [filter4_h6_shuf]\n%if PIC\n    lea  picregq, [sixtap_filter4_hb_m]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": ";-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq\n%endif\n\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 6+2*(%1==8), dst, dststride, src, srcstride, height, mx, picreg\n%if %1 == 4\n    mova      m3, [filter4_h6_shuf]\n%if PIC\n    lea  picregq, [sixtap_filter4_hb_m]\n%endif\n    shl      mxd, 4\n    mova      m4, [sixtap_filter4_hb+mxq-32]\n    mova      m5, [sixtap_filter4_hb+mxq-16]\n%else\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    mova      m5, [sixtap_filter_b+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_b+mxq*8-32]\n    mova      m7, [sixtap_filter_b+mxq*8-16]\n%endif\n\n.nextrow:\n%if %1 == 4\n    ; we need nine bytes, so two loads\n    movq      m1, [srcq-1]\n    movq      m0, [srcq-2]\n    punpcklbw m0, m1\n    pshufb    m1, m3\n    pmaddubsw m1, m5\n    pmaddubsw m0, m4\n    movhlps   m2, m1\n%else\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, [filter_h6_shuf1]\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n%endif\n    add     srcq, srcstrideq\n    paddw     m0, m1\n    paddsw    m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "movq      m0, [srcq-2]\n    punpcklbw m0, m1\n    pshufb    m1, m3\n    pmaddubsw m1, m5\n    pmaddubsw m0, m4\n    movhlps   m2, m1\n%else\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, [filter_h6_shuf1]\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n%endif\n    add     srcq, srcstrideq\n    paddw     m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 6+!!(%1 == 8), dst, dststride, src, srcstride, height, mx, picreg\n    mova      m2, [pw_256]\n%if %1 == 8\n    shl      mxd, 4\n    mova      m3, [filter_h4_shuf1]\n    mova      m4, [filter_h4_shuf2]\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_b+mxq]\n%else\n    shl      mxd, 3\n    mova      m3, [filter4_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter4_b_m]\n%endif\n    mova      m5, [fourtap_filter4_b+mxq-8]\n%endif\n\n.nextrow:\n%if %1 == 4\n    movq      m0, [srcq-1]\n    pshufb    m0, m3\n    pmaddubsw m0, m5\n    movhlps   m1, m0\n%else\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "mova      m6, [fourtap_filter_b+mxq]\n%else\n    shl      mxd, 3\n    mova      m3, [filter4_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter4_b_m]\n%endif\n    mova      m5, [fourtap_filter4_b+mxq-8]\n%endif\n\n.nextrow:\n%if %1 == 4\n    movq      m0, [srcq-1]\n    pshufb    m0, m3\n    pmaddubsw m0, m5\n    movhlps   m1, m0\n%else\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4\n.next2rows:\n    movd       m3, [srcq]\n    movd       m4, [srcq+srcstrideq]\n    punpcklbw  m1, m3\n    punpcklqdq m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4\n.next2rows:\n    movd       m3, [srcq]\n    movd       m4, [srcq+srcstrideq]\n    punpcklbw  m1, m3\n    punpcklqdq m0, m1\n    punpcklbw  m2, m4\n    pmaddubsw  m0, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, m6\n    lea     srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    pmulhrsw   m1, m7\n    mova       m0, m2\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m2, m4\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    mova       m1, m3\n    lea      dstq, [dstq+2*dststrideq]\n    sub   heightd, 2\n    jg .next2rows\n%else\n.nextrow:\n    movh      m3, [srcq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": ".next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFILTER_SSSE3 4\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFILTER_SSSE3 4\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddw     m0, m1\n    paddw     m2, m3\n    paddw     m0, m4\n    paddsw    m0, m2\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddw     m0, m1\n    paddw     m2, m3\n    paddw     m0, m4\n    paddsw    m0, m2\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddw     m1, m4\n    paddw     m0, m5\n    paddw     m1, m2\n    paddw     m0, m3\n    paddw     m1, m6\n    paddsw    m0, m1\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddw     m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddw     m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddw     m4, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddw     m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddw     m4, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddw     m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddw     m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddw     m6, [pw_64]\n    paddw     m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddw     m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "cglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddw     m0, m1\n    paddw     m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddw     m0, m1\n    paddw     m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddw     m0, m1\n    paddw     m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:26", "text": ";           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:27", "text": ";-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 1041, "line_end": 1092}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:28", "text": "movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp.asm", "line_start": 1081, "line_end": 1092}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFILTER_SSSE3 4\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "cglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "575e9e9c0825114ae61e9e487291b54be09866b4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/575e9e9c0825114ae61e9e487291b54be09866b4/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:1", "text": ";******************************************************************************\n;* VP8 ASM optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfourtap_filter4_b_m: times 4 db  -6, 123\n                     times 4 db  12,  -1\n                     times 4 db  -9,  93\n                     times 4 db  50,  -6\n                     times 4 db  -6,  50\n                     times 4 db  93,  -9\n                     times 4 db  -1,  12\n                     times 4 db 123,  -6\n\nsixtap_filter4_hb_m: times 8 db   2, -11\n                     times 4 db 108,  -8\n                     times 4 db  36,   1\n                     times 8 db   3, -16\n                     times 4 db  77, -16\n                     times 4 db  77,   3\n                     times 8 db   1,  -8\n                     times 4 db  36, -11\n                     times 4 db 108,   2\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:2", "text": "times 4 db  77,   3\n                     times 8 db   1,  -8\n                     times 4 db  36, -11\n                     times 4 db 108,   2\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nsixtap_filter_b_m:   times 8 db   2,  36\n                     times 8 db -11,  -8\n                     times 8 db 108,   1\n                     times 8 db   3,  77\n                     times 8 db -16, -16\n                     times 8 db  77,   3\n                     times 8 db   1, 108\n                     times 8 db  -8, -11\n                     times 8 db  36,   2\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "times 8 db  -8, -11\n                     times 8 db  36,   2\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define fourtap_filter_b   picregq\n%define fourtap_filter4_b  picregq\n%define sixtap_filter_hb   picregq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define fourtap_filter_b   picregq\n%define fourtap_filter4_b  picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_b    picregq\n%define sixtap_filter4_hb  picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define fourtap_filter_b   fourtap_filter_b_m\n%define fourtap_filter4_b  fourtap_filter4_b_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define sixtap_filter4_hb  sixtap_filter4_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter4_h4_shuf: db 0, 1, 1, 2, 2, 3, 3, 4, 2, 3, 3,  4, 4,  5, 5,  6\nfilter4_h6_shuf: db 1, 3, 2, 4, 3, 5, 4, 6, 2, 4, 3,  5, 4,  6, 5,  7\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": "filter4_h4_shuf: db 0, 1, 1, 2, 2, 3, 3, 4, 2, 3, 3,  4, 4,  5, 5,  6\nfilter4_h6_shuf: db 1, 3, 2, 4, 3, 5, 4, 6, 2, 4, 3,  5, 4,  6, 5,  7\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq\n%endif\n\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 6+2*(%1==8), dst, dststride, src, srcstride, height, mx, picreg\n%if %1 == 4\n    mova      m3, [filter4_h6_shuf]\n%if PIC\n    lea  picregq, [sixtap_filter4_hb_m]\n%endif\n    shl      mxd, 4\n    mova      m4, [sixtap_filter4_hb+mxq-32]\n    mova      m5, [sixtap_filter4_hb+mxq-16]\n%else\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n%endif\n\n.nextrow:\n%if %1 == 4\n    ; we need nine bytes, so two loads\n    movq      m1, [srcq-1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "%endif\n    shl      mxd, 4\n    mova      m4, [sixtap_filter4_hb+mxq-32]\n    mova      m5, [sixtap_filter4_hb+mxq-16]\n%else\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n%endif\n\n.nextrow:\n%if %1 == 4\n    ; we need nine bytes, so two loads\n    movq      m1, [srcq-1]\n    movq      m0, [srcq-2]\n    punpcklbw m0, m1\n    pshufb    m1, m3\n    pmaddubsw m1, m5\n    pmaddubsw m0, m4\n    movhlps   m2, m1\n%else\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n    pshufb    m0, [filter_h6_shuf1]\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n%endif\n    add     srcq, srcstrideq\n    paddw     m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 6+!!(%1 == 8), dst, dststride, src, srcstride, height, mx, picreg\n    mova      m2, [pw_256]\n%if %1 == 8\n    shl      mxd, 4\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 6+!!(%1 == 8), dst, dststride, src, srcstride, height, mx, picreg\n    mova      m2, [pw_256]\n%if %1 == 8\n    shl      mxd, 4\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n%else\n    shl      mxd, 3\n    mova      m3, [filter4_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter4_b_m]\n%endif\n    mova      m5, [fourtap_filter4_b+mxq-8]\n%endif\n\n.nextrow:\n%if %1 == 4\n    movq      m0, [srcq-1]\n    pshufb    m0, m3\n    pmaddubsw m0, m5\n    movhlps   m1, m0\n%else\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4\n.next2rows:\n    movd       m3, [srcq]\n    movd       m4, [srcq+srcstrideq]\n    punpcklbw  m1, m3\n    punpcklqdq m0, m1\n    punpcklbw  m2, m4\n    pmaddubsw  m0, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, m6\n    lea     srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    pmulhrsw   m1, m7\n    mova       m0, m2\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m2, m4\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    mova       m1, m3\n    lea      dstq, [dstq+2*dststrideq]\n    sub   heightd, 2\n    jg .next2rows\n%else\n.nextrow:\n    movh      m3, [srcq]      ; read new row", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "punpcklbw  m2, m4\n    pmaddubsw  m0, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, m6\n    lea     srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    pmulhrsw   m1, m7\n    mova       m0, m2\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m2, m4\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    mova       m1, m3\n    lea      dstq, [dstq+2*dststrideq]\n    sub   heightd, 2\n    jg .next2rows\n%else\n.nextrow:\n    movh      m3, [srcq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_XMM ssse3\nFILTER_SSSE3 4\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": ".nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": ";-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "cglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:26", "text": "; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:27", "text": "movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:28", "text": "shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "99fb257f58026590729aa63f18c5c18f55f48c99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/99fb257f58026590729aa63f18c5c18f55f48c99/libavcodec/x86/vp8dsp.asm", "line_start": 1081, "line_end": 1112}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:1", "text": ";******************************************************************************\n;* VP8 ASM optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfourtap_filter4_b_m: times 4 db  -6, 123\n                     times 4 db  12,  -1\n                     times 4 db  -9,  93\n                     times 4 db  50,  -6\n                     times 4 db  -6,  50\n                     times 4 db  93,  -9\n                     times 4 db  -1,  12\n                     times 4 db 123,  -6\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:2", "text": "times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nsixtap_filter_b_m:   times 8 db   2,  36\n                     times 8 db -11,  -8\n                     times 8 db 108,   1\n                     times 8 db   3,  77\n                     times 8 db -16, -16\n                     times 8 db  77,   3\n                     times 8 db   1, 108\n                     times 8 db  -8, -11\n                     times 8 db  36,   2\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define fourtap_filter_b   picregq\n%define fourtap_filter4_b  picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_b    picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define fourtap_filter_b   fourtap_filter_b_m\n%define fourtap_filter4_b  fourtap_filter4_b_m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define fourtap_filter_b   picregq\n%define fourtap_filter4_b  picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_b    picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define fourtap_filter_b   fourtap_filter_b_m\n%define fourtap_filter4_b  fourtap_filter4_b_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter4_h4_shuf: db 0, 1, 1, 2, 2, 3, 3, 4, 2, 3, 3,  4, 4,  5, 5,  6\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": "cextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq\n%endif\n\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM ssse3\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 6+!!(%1 == 8), dst, dststride, src, srcstride, height, mx, picreg\n    mova      m2, [pw_256]\n%if %1 == 8\n    shl      mxd, 4\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n%else\n    shl      mxd, 3\n    mova      m3, [filter4_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter4_b_m]\n%endif\n    mova      m5, [fourtap_filter4_b+mxq-8]\n%endif\n\n.nextrow:\n%if %1 == 4\n    movq      m0, [srcq-1]\n    pshufb    m0, m3\n    pmaddubsw m0, m5\n    movhlps   m1, m0\n%else\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "mova      m5, [fourtap_filter4_b+mxq-8]\n%endif\n\n.nextrow:\n%if %1 == 4\n    movq      m0, [srcq-1]\n    pshufb    m0, m3\n    pmaddubsw m0, m5\n    movhlps   m1, m0\n%else\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    MOV   [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4\n.next2rows:\n    movd       m3, [srcq]\n    movd       m4, [srcq+srcstrideq]\n    punpcklbw  m1, m3\n    punpcklqdq m0, m1\n    punpcklbw  m2, m4\n    pmaddubsw  m0, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, m6\n    lea     srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    pmulhrsw   m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4\n.next2rows:\n    movd       m3, [srcq]\n    movd       m4, [srcq+srcstrideq]\n    punpcklbw  m1, m3\n    punpcklqdq m0, m1\n    punpcklbw  m2, m4\n    pmaddubsw  m0, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, m6\n    lea     srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    pmulhrsw   m1, m7\n    mova       m0, m2\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m2, m4\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    mova       m1, m3\n    lea      dstq, [dstq+2*dststrideq]\n    sub   heightd, 2\n    jg .next2rows\n%else\n.nextrow:\n    movh      m3, [srcq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:26", "text": "SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:27", "text": "movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3135bc0d3a5c1f4fd0cd006eb1f5e1986aeb4ab7/libavcodec/x86/vp8dsp.asm", "line_start": 1041, "line_end": 1086}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:1", "text": ";******************************************************************************\n;* VP8 ASM optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nfourtap_filter_b_m:  times 8 db  -6,  12\n                     times 8 db 123,  -1\n                     times 8 db  -9,  50\n                     times 8 db  93,  -6\n                     times 8 db  -6,  93\n                     times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nsixtap_filter_b_m:   times 8 db   2,  36\n                     times 8 db -11,  -8\n                     times 8 db 108,   1\n                     times 8 db   3,  77\n                     times 8 db -16, -16\n                     times 8 db  77,   3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:2", "text": "times 8 db  50,  -9\n                     times 8 db  -1, 123\n                     times 8 db  12,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nsixtap_filter_b_m:   times 8 db   2,  36\n                     times 8 db -11,  -8\n                     times 8 db 108,   1\n                     times 8 db   3,  77\n                     times 8 db -16, -16\n                     times 8 db  77,   3\n                     times 8 db   1, 108\n                     times 8 db  -8, -11\n                     times 8 db  36,   2\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "sixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define fourtap_filter_b   picregq\n%define sixtap_filter_hb   picregq\n%define sixtap_filter_b    picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define fourtap_filter_b   fourtap_filter_b_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "%define sixtap_filter_b    picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define fourtap_filter_b   fourtap_filter_b_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq\n%endif\n\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": ";                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\n%if %1 == 4\n%define MOV movd\n%else\n%define MOV movq\n%endif\n\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM ssse3\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "INIT_XMM ssse3\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+picregq]\n    MOV       m1, [srcq]\n    MOV       m2, [srcq+srcstrideq]\n    lea     srcq, [srcq+2*srcstrideq]\n    punpcklbw m0, m2\n\n%if %1 == 4\n.next2rows:\n    movd       m3, [srcq]\n    movd       m4, [srcq+srcstrideq]\n    punpcklbw  m1, m3\n    punpcklqdq m0, m1\n    punpcklbw  m2, m4\n    pmaddubsw  m0, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, m6\n    lea     srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    pmulhrsw   m1, m7\n    mova       m0, m2\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m2, m4\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    mova       m1, m3\n    lea      dstq, [dstq+2*dststrideq]\n    sub   heightd, 2\n    jg .next2rows\n%else\n.nextrow:\n    movh      m3, [srcq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "sub   heightd, 2\n    jg .next2rows\n%else\n.nextrow:\n    movh      m3, [srcq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_MMX ssse3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "INIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:26", "text": "DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 1001, "line_end": 1058}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:27", "text": "movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "714cbf1c70a8312ea11f1fb718d56762ff6658cb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/714cbf1c70a8312ea11f1fb718d56762ff6658cb/libavcodec/x86/vp8dsp.asm", "line_start": 1041, "line_end": 1058}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+picregq]\n    movh      m1, [srcq]\n    movh      m2, [srcq+srcstrideq]\n    punpcklbw m0, m2\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    pmaddubsw m0, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "f0178068299aa74fb119179d6f0df926dbeba57f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0178068299aa74fb119179d6f0df926dbeba57f/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "cglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+picregq]\n    movh      m1, [srcq]\n    movh      m2, [srcq+srcstrideq]\n    punpcklbw m0, m2\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM ssse3\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "f0178068299aa74fb119179d6f0df926dbeba57f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0178068299aa74fb119179d6f0df926dbeba57f/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    MOV       m0, [srcq+2*picregq]\n    MOV       m1, [srcq+picregq]\n    MOV       m2, [srcq]\n    MOV       m3, [srcq+srcstrideq]\n    MOV       m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n%if %1 == 4\n    punpcklqdq m0, m1\n\n.next2rows:\n    movd       m5, [srcq+srcstrideq]\n    movd       m6, [srcq+2*srcstrideq]\n    pmaddubsw  m0, [myq-48]\n    punpcklbw  m2, m5\n    punpcklqdq m1, m2\n    pmaddubsw  m1, [myq-32]\n    punpcklbw  m3, m6\n    punpcklqdq m2, m3\n    paddw      m0, m1\n    pmaddubsw  m1, m2, [myq-16]\n    lea      srcq, [srcq+2*srcstrideq]\n    paddsw     m1, m0\n    mova       m0, m2\n    pmulhrsw   m1, [pw_256]\n    mova       m2, m4\n    packuswb   m1, m1\n    movd   [dstq], m1\n    mova       m4, m6\n    psrldq     m1, 4\n    movd [dstq+dststrideq], m1\n    lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "f0178068299aa74fb119179d6f0df926dbeba57f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0178068299aa74fb119179d6f0df926dbeba57f/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "lea      dstq, [dstq+2*dststrideq]\n    mova       m1, m3\n    mova       m3, m5\n    sub   heightd, 2\n    jg .next2rows\n%else\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n%endif\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "f0178068299aa74fb119179d6f0df926dbeba57f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f0178068299aa74fb119179d6f0df926dbeba57f/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "%define sixtap_filter_b    picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define fourtap_filter_b   fourtap_filter_b_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define sixtap_filter_b    sixtap_filter_b_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": ";                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_b_m]\n%endif\n    mova      m5, [fourtap_filter_b+myq-16]\n    mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+picregq]\n    movh      m1, [srcq]\n    movh      m2, [srcq+srcstrideq]\n    punpcklbw m0, m2\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "mova      m6, [fourtap_filter_b+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+picregq]\n    movh      m1, [srcq]\n    movh      m2, [srcq+srcstrideq]\n    punpcklbw m0, m2\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    pmaddubsw m0, m5\n    punpcklbw m1, m3\n    pmaddubsw m4, m1, m6\n    add     srcq, srcstrideq\n    paddsw    m4, m0\n    mova      m0, m1\n    pmulhrsw  m4, m7\n    mova      m1, m2\n    packuswb  m4, m4\n    mova      m2, m3\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_b_m]\n%endif\n    lea      myq, [sixtap_filter_b+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m3\n    punpcklbw m1, m4\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    pmaddubsw m0, [myq-48]\n    punpcklbw m2, m5\n    pmaddubsw m6, m1, [myq-32]\n    pmaddubsw m7, m2, [myq-16]\n    add     srcq, srcstrideq\n    paddw     m6, m0\n    mova      m0, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "INIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "INIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "VP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "INIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "7411998757ab0ba32c19326da6eb0d348abe5129", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7411998757ab0ba32c19326da6eb0d348abe5129/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 994}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:1", "text": ";******************************************************************************\n;* VP8 ASM optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:2", "text": "times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define sixtap_filter_hb   picregq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "bilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hb  picregq\n%define sixtap_filter_hb   picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "filter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": "%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+picregq]\n    movh      m1, [srcq]\n    movh      m2, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    add      srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n    pmulhrsw  m4, m7\n    packuswb  m4, m4\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "packuswb  m4, m4\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]\n    pmaddubsw m7, [myq-16]\n    add      srcq, srcstrideq\n    paddsw    m6, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    add     srcq, srcstrideq\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    add     srcq, srcstrideq\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n    movh      m0, [srcq+srcstrideq*0]\n.nextrow:\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n    mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "mova      m0, m2\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "cglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "%4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 974}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "76900089fb905bb70d5b292219f7715c04090541", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/76900089fb905bb70d5b292219f7715c04090541/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 974}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    add     srcq, srcstrideq\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "cglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    lea     srcq, [srcq+srcstrideq*2]\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": ".nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    lea     srcq, [srcq+srcstrideq*2]\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": ".nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "%4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": ";           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "86aa1b81ec0029b7f15bed7d91dcd8c5323876f1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/86aa1b81ec0029b7f15bed7d91dcd8c5323876f1/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 973}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "filter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": "%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+picregq]\n    movh      m1, [srcq]\n    movh      m2, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    paddsw    m4, m2\n    mova      m2, m3\n    pmulhrsw  m4, m7\n    packuswb  m4, m4\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n\n.nextrow:\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]\n    pmaddubsw m7, [myq-16]\n    paddsw    m6, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    mov  picregq, srcstrideq\n    neg  picregq\n    movh      m0, [srcq+2*picregq]\n    movh      m1, [srcq+picregq]\n    movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "movh      m2, [srcq]\n    movh      m3, [srcq+srcstrideq]\n    movh      m4, [srcq+2*srcstrideq]\n    lea     srcq, [srcq+srcstrideq*2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "cglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": ";           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "e59ed3470d05a126193d6af73a5a92562c2418b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e59ed3470d05a126193d6af73a5a92562c2418b0/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 971}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    paddsw    m4, m2\n    mova      m2, m3\n    pmulhrsw  m4, m7\n    packuswb  m4, m4\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]\n    pmaddubsw m7, [myq-16]\n    paddsw    m6, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel8_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel8_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": ".nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_XMM sse2\ncglobal put_vp8_pixels8, 5, 5+2*ARCH_X86_64, 2, dst, dststride, src, srcstride, height\n.nextrow:\n%if ARCH_X86_64\n    mov     r5q, [srcq+srcstrideq*0]\n    mov     r6q, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    mov [dstq+dststrideq*0], r5q\n    mov [dstq+dststrideq*1], r6q\n%else\n    movq     m0, [srcq+srcstrideq*0]\n    movq     m1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], m0\n    movq [dstq+dststrideq*1], m1\n%endif\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "8fb6b0c73318718c2b18056aaecc91fabc7dafb9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8fb6b0c73318718c2b18056aaecc91fabc7dafb9/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": ".nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_MMX mmx\ncglobal put_vp8_pixels8, 5, 5, 0, dst, dststride, src, srcstride, height\n.nextrow:\n    movq    mm0, [srcq+srcstrideq*0]\n    movq    mm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], mm0\n    movq [dstq+dststrideq*1], mm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": ".nextrow:\n    movq    mm0, [srcq+srcstrideq*0]\n    movq    mm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], mm0\n    movq [dstq+dststrideq*1], mm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "ed5e0f9c68c773d302fe766e9a924a17f293244d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ed5e0f9c68c773d302fe766e9a924a17f293244d/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 965}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:1", "text": ";******************************************************************************\n;* VP8 MMXEXT optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nfourtap_filter_hw_m: times 4 dw  -6, 123\n                     times 4 dw  12,  -1\n                     times 4 dw  -9,  93\n                     times 4 dw  50,  -6\n                     times 4 dw  -6,  50\n                     times 4 dw  93,  -9\n                     times 4 dw  -1,  12\n                     times 4 dw 123,  -6\n\nsixtap_filter_hw_m:  times 4 dw   2, -11\n                     times 4 dw 108,  36\n                     times 4 dw  -8,   1\n                     times 4 dw   3, -16\n                     times 4 dw  77,  77\n                     times 4 dw -16,   3\n                     times 4 dw   1,  -8\n                     times 4 dw  36, 108\n                     times 4 dw -11,   2\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:2", "text": "times 4 dw -16,   3\n                     times 4 dw   1,  -8\n                     times 4 dw  36, 108\n                     times 4 dw -11,   2\n\nfourtap_filter_hb_m: times 8 db  -6, 123\n                     times 8 db  12,  -1\n                     times 8 db  -9,  93\n                     times 8 db  50,  -6\n                     times 8 db  -6,  50\n                     times 8 db  93,  -9\n                     times 8 db  -1,  12\n                     times 8 db 123,  -6\n\nsixtap_filter_hb_m:  times 8 db   2,   1\n                     times 8 db -11, 108\n                     times 8 db  36,  -8\n                     times 8 db   3,   3\n                     times 8 db -16,  77\n                     times 8 db  77, -16\n                     times 8 db   1,   2\n                     times 8 db  -8,  36\n                     times 8 db 108, -11\n\nfourtap_filter_v_m:  times 8 dw  -6\n                     times 8 dw 123\n                     times 8 dw  12\n                     times 8 dw  -1\n                     times 8 dw  -9\n                     times 8 dw  93\n                     times 8 dw  50\n                     times 8 dw  -6\n                     times 8 dw  -6\n                     times 8 dw  50\n                     times 8 dw  93\n                     times 8 dw  -9\n                     times 8 dw  -1\n                     times 8 dw  12\n                     times 8 dw 123\n                     times 8 dw  -6\n\nsixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "sixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%if PIC\n%define fourtap_filter_hw  picregq\n%define sixtap_filter_hw   picregq\n%define fourtap_filter_hb  picregq\n%define sixtap_filter_hb   picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hw  fourtap_filter_hw_m\n%define sixtap_filter_hw   sixtap_filter_hw_m\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "%define sixtap_filter_hb   picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hw  fourtap_filter_hw_m\n%define sixtap_filter_hw   sixtap_filter_hw_m\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": ";                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    paddsw    m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    paddsw    m4, m2\n    mova      m2, m3\n    pmulhrsw  m4, m7\n    packuswb  m4, m4\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]\n    pmaddubsw m7, [myq-16]\n    paddsw    m6, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\n; 4x4 block, H-only 4-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h4, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    shl       mxd, 4\n%if PIC\n    lea   picregq, [fourtap_filter_hw_m]\n%endif\n    movq      mm4, [fourtap_filter_hw+mxq-16] ; set up 4tap filter in words\n    movq      mm5, [fourtap_filter_hw+mxq]\n    movq      mm7, [pw_64]\n    pxor      mm6, mm6\n\n.nextrow:\n    movq      mm1, [srcq-1]                ; (ABCDEFGH) load 8 horizontal pixels\n\n    ; first set of 2 pixels", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "FILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\n; 4x4 block, H-only 4-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h4, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    shl       mxd, 4\n%if PIC\n    lea   picregq, [fourtap_filter_hw_m]\n%endif\n    movq      mm4, [fourtap_filter_hw+mxq-16] ; set up 4tap filter in words\n    movq      mm5, [fourtap_filter_hw+mxq]\n    movq      mm7, [pw_64]\n    pxor      mm6, mm6\n\n.nextrow:\n    movq      mm1, [srcq-1]                ; (ABCDEFGH) load 8 horizontal pixels\n\n    ; first set of 2 pixels\n    movq      mm2, mm1                     ; byte ABCD..\n    punpcklbw mm1, mm6                     ; byte->word ABCD\n    pshufw    mm0, mm2, 9                  ; byte CDEF..\n    punpcklbw mm0, mm6                     ; byte->word CDEF\n    pshufw    mm3, mm1, 0x94               ; word ABBC\n    pshufw    mm1, mm0, 0x94               ; word CDDE\n    pmaddwd   mm3, mm4                     ; multiply 2px with F0/F1\n    movq      mm0, mm1                     ; backup for second set of pixels\n    pmaddwd   mm1, mm5                     ; multiply 2px with F2/F3\n    paddd     mm3, mm1                     ; finish 1st 2px\n\n    ; second set of 2 pixels, use backup of above\n    punpckhbw mm2, mm6                     ; byte->word EFGH\n    pmaddwd   mm0, mm4                     ; multiply backed up 2px with F0/F1\n    pshufw    mm1, mm2, 0x94               ; word EFFG\n    pmaddwd   mm1, mm5                     ; multiply 2px with F2/F3\n    paddd     mm0, mm1                     ; finish 2nd 2px\n\n    ; merge two sets of 2 pixels into one set of 4, round/clip/store\n    packssdw  mm3, mm0                     ; merge dword->word (4px)\n    paddsw    mm3, mm7                     ; rounding\n    psraw     mm3, 7\n    packuswb  mm3, mm6                     ; clip and word->bytes\n    movd   [dstq], mm3                     ; store\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\n; 4x4 block, H-only 6-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h6, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    lea       mxd, [mxq*3]\n%if PIC\n    lea   picregq, [sixtap_filter_hw_m]\n%endif\n    movq      mm4, [sixtap_filter_hw+mxq*8-48] ; set up 4tap filter in words", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "paddsw    mm3, mm7                     ; rounding\n    psraw     mm3, 7\n    packuswb  mm3, mm6                     ; clip and word->bytes\n    movd   [dstq], mm3                     ; store\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\n; 4x4 block, H-only 6-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h6, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    lea       mxd, [mxq*3]\n%if PIC\n    lea   picregq, [sixtap_filter_hw_m]\n%endif\n    movq      mm4, [sixtap_filter_hw+mxq*8-48] ; set up 4tap filter in words\n    movq      mm5, [sixtap_filter_hw+mxq*8-32]\n    movq      mm6, [sixtap_filter_hw+mxq*8-16]\n    movq      mm7, [pw_64]\n    pxor      mm3, mm3\n\n.nextrow:\n    movq      mm1, [srcq-2]                ; (ABCDEFGH) load 8 horizontal pixels\n\n    ; first set of 2 pixels\n    movq      mm2, mm1                     ; byte ABCD..\n    punpcklbw mm1, mm3                     ; byte->word ABCD\n    pshufw    mm0, mm2, 0x9                ; byte CDEF..\n    punpckhbw mm2, mm3                     ; byte->word EFGH\n    punpcklbw mm0, mm3                     ; byte->word CDEF\n    pshufw    mm1, mm1, 0x94               ; word ABBC\n    pshufw    mm2, mm2, 0x94               ; word EFFG\n    pmaddwd   mm1, mm4                     ; multiply 2px with F0/F1\n    pshufw    mm3, mm0, 0x94               ; word CDDE\n    movq      mm0, mm3                     ; backup for second set of pixels\n    pmaddwd   mm3, mm5                     ; multiply 2px with F2/F3\n    paddd     mm1, mm3                     ; add to 1st 2px cache\n    movq      mm3, mm2                     ; backup for second set of pixels\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm1, mm2                     ; finish 1st 2px\n\n    ; second set of 2 pixels, use backup of above\n    movd      mm2, [srcq+3]                ; byte FGHI (prevent overreads)\n    pmaddwd   mm0, mm4                     ; multiply 1st backed up 2px with F0/F1\n    pmaddwd   mm3, mm5                     ; multiply 2nd backed up 2px with F2/F3\n    paddd     mm0, mm3                     ; add to 2nd 2px cache\n    pxor      mm3, mm3\n    punpcklbw mm2, mm3                     ; byte->word FGHI\n    pshufw    mm2, mm2, 0xE9               ; word GHHI\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm0, mm2                     ; finish 2nd 2px\n\n    ; merge two sets of 2 pixels into one set of 4, round/clip/store\n    packssdw  mm1, mm0                     ; merge dword->word (4px)\n    paddsw    mm1, mm7                     ; rounding\n    psraw     mm1, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "paddd     mm1, mm3                     ; add to 1st 2px cache\n    movq      mm3, mm2                     ; backup for second set of pixels\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm1, mm2                     ; finish 1st 2px\n\n    ; second set of 2 pixels, use backup of above\n    movd      mm2, [srcq+3]                ; byte FGHI (prevent overreads)\n    pmaddwd   mm0, mm4                     ; multiply 1st backed up 2px with F0/F1\n    pmaddwd   mm3, mm5                     ; multiply 2nd backed up 2px with F2/F3\n    paddd     mm0, mm3                     ; add to 2nd 2px cache\n    pxor      mm3, mm3\n    punpcklbw mm2, mm3                     ; byte->word FGHI\n    pshufw    mm2, mm2, 0xE9               ; word GHHI\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm0, mm2                     ; finish 2nd 2px\n\n    ; merge two sets of 2 pixels into one set of 4, round/clip/store\n    packssdw  mm1, mm0                     ; merge dword->word (4px)\n    paddsw    mm1, mm7                     ; rounding\n    psraw     mm1, 7\n    packuswb  mm1, mm3                     ; clip and word->bytes\n    movd   [dstq], mm1                     ; store\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "lea      mxd, [mxq*3]\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_V 1\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%if PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%if PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:16", "text": "lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    mova      m5, m1\n    pmullw    m5, [myq+16]\n    mova      m6, m4\n    pmullw    m6, [myq+64]\n    paddsw    m6, m5\n\n    ; then calculate positive taps\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m5, m7\n    pmullw    m0, [myq+0]\n    paddsw    m6, m0\n    mova      m0, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m6, m2\n    mova      m2, m3\n    pmullw    m3, [myq+48]\n    paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX mmxext\nFILTER_V 4\nINIT_XMM sse2\nFILTER_V 8\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%if PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:21", "text": "pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX mmxext\nFILTER_BILINEAR 4\nINIT_XMM sse2\nFILTER_BILINEAR 8\nINIT_MMX ssse3\nFILTER_BILINEAR 4\nINIT_XMM ssse3\nFILTER_BILINEAR 8\n\nINIT_MMX mmx\ncglobal put_vp8_pixels8, 5, 5, 0, dst, dststride, src, srcstride, height\n.nextrow:\n    movq    mm0, [srcq+srcstrideq*0]\n    movq    mm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movq [dstq+dststrideq*0], mm0\n    movq [dstq+dststrideq*1], mm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:22", "text": "RET\n\nINIT_XMM sse\ncglobal put_vp8_pixels16, 5, 5, 2, dst, dststride, src, srcstride, height\n.nextrow:\n    movups xmm0, [srcq+srcstrideq*0]\n    movups xmm1, [srcq+srcstrideq*1]\n    lea    srcq, [srcq+srcstrideq*2]\n    movaps [dstq+dststrideq*0], xmm0\n    movaps [dstq+dststrideq*1], xmm1\n    lea    dstq, [dstq+dststrideq*2]\n    sub heightd, 2\n    jg .nextrow\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n%macro ADD_DC 4\n    %4        m2, [dst1q+%3]\n    %4        m3, [dst1q+strideq+%3]\n    %4        m4, [dst2q+%3]\n    %4        m5, [dst2q+strideq+%3]\n    paddusb   m2, %1\n    paddusb   m3, %1\n    paddusb   m4, %1\n    paddusb   m5, %1\n    psubusb   m2, %2\n    psubusb   m3, %2\n    psubusb   m4, %2\n    psubusb   m5, %2\n    %4 [dst1q+%3], m2\n    %4 [dst1q+strideq+%3], m3\n    %4 [dst2q+%3], m4\n    %4 [dst2q+strideq+%3], m5\n%endmacro\n\n%macro VP8_IDCT_DC_ADD 0\ncglobal vp8_idct_dc_add, 3, 3, 6, dst, block, stride\n    ; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:23", "text": "; load data\n    movd       m0, [blockq]\n    pxor       m1, m1\n\n    ; calculate DC\n    paddw      m0, [pw_4]\n    movd [blockq], m1\n    DEFINE_ARGS dst1, dst2, stride\n    lea     dst2q, [dst1q+strideq*2]\n    movd       m2, [dst1q]\n    movd       m3, [dst1q+strideq]\n    movd       m4, [dst2q]\n    movd       m5, [dst2q+strideq]\n    psraw      m0, 3\n    pshuflw    m0, m0, 0\n    punpcklqdq m0, m0\n    punpckldq  m2, m3\n    punpckldq  m4, m5\n    punpcklbw  m2, m1\n    punpcklbw  m4, m1\n    paddw      m2, m0\n    paddw      m4, m0\n    packuswb   m2, m4\n    movd   [dst1q], m2\n%if cpuflag(sse4)\n    pextrd [dst1q+strideq], m2, 1\n    pextrd [dst2q], m2, 2\n    pextrd [dst2q+strideq], m2, 3\n%else\n    psrldq     m2, 4\n    movd [dst1q+strideq], m2\n    psrldq     m2, 4\n    movd [dst2q], m2\n    psrldq     m2, 4\n    movd [dst2q+strideq], m2\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nVP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:24", "text": "VP8_IDCT_DC_ADD\nINIT_XMM sse4\nVP8_IDCT_DC_ADD\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4y_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal vp8_idct_dc_add4y, 3, 3, 6, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m1, m1\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m1\n    movd [blockq+32*1], m1\n    movd [blockq+32*2], m1\n    movd [blockq+32*3], m1\n    psraw     m0, 3\n    psubw     m1, m0\n    packuswb  m0, m0\n    packuswb  m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n    punpcklbw m0, m0\n    punpcklbw m1, m1\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m1, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:25", "text": "; void ff_vp8_idct_dc_add4uv_<opt>(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\nINIT_MMX mmx\ncglobal vp8_idct_dc_add4uv, 3, 3, 0, dst, block, stride\n    ; load data\n    movd      m0, [blockq+32*0] ; A\n    movd      m1, [blockq+32*2] ; C\n    punpcklwd m0, [blockq+32*1] ; A B\n    punpcklwd m1, [blockq+32*3] ; C D\n    punpckldq m0, m1        ; A B C D\n    pxor      m6, m6\n\n    ; calculate DC\n    paddw     m0, [pw_4]\n    movd [blockq+32*0], m6\n    movd [blockq+32*1], m6\n    movd [blockq+32*2], m6\n    movd [blockq+32*3], m6\n    psraw     m0, 3\n    psubw     m6, m0\n    packuswb  m0, m0\n    packuswb  m6, m6\n    punpcklbw m0, m0 ; AABBCCDD\n    punpcklbw m6, m6 ; AABBCCDD\n    movq      m1, m0\n    movq      m7, m6\n    punpcklbw m0, m0 ; AAAABBBB\n    punpckhbw m1, m1 ; CCCCDDDD\n    punpcklbw m6, m6 ; AAAABBBB\n    punpckhbw m7, m7 ; CCCCDDDD\n\n    ; add DC\n    DEFINE_ARGS dst1, dst2, stride\n    lea    dst2q, [dst1q+strideq*2]\n    ADD_DC    m0, m6, 0, mova\n    lea    dst1q, [dst1q+strideq*4]\n    lea    dst2q, [dst2q+strideq*4]\n    ADD_DC    m1, m7, 0, mova\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:26", "text": ";-----------------------------------------------------------------------------\n; void ff_vp8_idct_add_<opt>(uint8_t *dst, int16_t block[16], ptrdiff_t stride);\n;-----------------------------------------------------------------------------\n\n; calculate %1=mul_35468(%1)-mul_20091(%2); %2=mul_20091(%1)+mul_35468(%2)\n;           this macro assumes that m6/m7 have words for 20091/17734 loaded\n%macro VP8_MULTIPLY_SUMSUB 4\n    mova      %3, %1\n    mova      %4, %2\n    pmulhw    %3, m6 ;20091(1)\n    pmulhw    %4, m6 ;20091(2)\n    paddw     %3, %1\n    paddw     %4, %2\n    paddw     %1, %1\n    paddw     %2, %2\n    pmulhw    %1, m7 ;35468(1)\n    pmulhw    %2, m7 ;35468(2)\n    psubw     %1, %4\n    paddw     %2, %3\n%endmacro\n\n; calculate x0=%1+%3; x1=%1-%3\n;           x2=mul_35468(%2)-mul_20091(%4); x3=mul_20091(%2)+mul_35468(%4)\n;           %1=x0+x3 (tmp0); %2=x1+x2 (tmp1); %3=x1-x2 (tmp2); %4=x0-x3 (tmp3)\n;           %5/%6 are temporary registers\n;           we assume m6/m7 have constant words 20091/17734 loaded in them\n%macro VP8_IDCT_TRANSFORM4x4_1D 6\n    SUMSUB_BA         w, %3,  %1,  %5     ;t0, t1\n    VP8_MULTIPLY_SUMSUB m%2, m%4, m%5,m%6 ;t2, t3\n    SUMSUB_BA         w, %4,  %3,  %5     ;tmp0, tmp3\n    SUMSUB_BA         w, %2,  %1,  %5     ;tmp1, tmp2\n    SWAP                 %4,  %1\n    SWAP                 %4,  %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_idct_add, 3, 3, 0, dst, block, stride\n    ; load block data\n    movq         m0, [blockq+ 0]\n    movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:27", "text": "movq         m1, [blockq+ 8]\n    movq         m2, [blockq+16]\n    movq         m3, [blockq+24]\n    movq         m6, [pw_20091]\n    movq         m7, [pw_17734]\n    xorps      xmm0, xmm0\n    movaps [blockq+ 0], xmm0\n    movaps [blockq+16], xmm0\n\n    ; actual IDCT\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n    paddw        m0, [pw_4]\n    VP8_IDCT_TRANSFORM4x4_1D 0, 1, 2, 3, 4, 5\n    TRANSPOSE4x4W            0, 1, 2, 3, 4\n\n    ; store\n    pxor         m4, m4\n    DEFINE_ARGS dst1, dst2, stride\n    lea       dst2q, [dst1q+2*strideq]\n    STORE_DIFFx2 m0, m1, m6, m7, m4, 3, dst1q, strideq\n    STORE_DIFFx2 m2, m3, m6, m7, m4, 3, dst2q, strideq\n\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_luma_dc_wht(int16_t block[4][4][16], int16_t dc[16])\n;-----------------------------------------------------------------------------\n\n%macro SCATTER_WHT 3\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(0+%3)], dc1w\n    mov [blockq+2*16*(1+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    psrlq m%1, 32\n    psrlq m%2, 32\n    mov [blockq+2*16*(4+%3)], dc1w\n    mov [blockq+2*16*(5+%3)], dc2w\n    movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:28", "text": "movd dc1d, m%1\n    movd dc2d, m%2\n    mov [blockq+2*16*(8+%3)], dc1w\n    mov [blockq+2*16*(9+%3)], dc2w\n    shr  dc1d, 16\n    shr  dc2d, 16\n    mov [blockq+2*16*(12+%3)], dc1w\n    mov [blockq+2*16*(13+%3)], dc2w\n%endmacro\n\n%macro HADAMARD4_1D 4\n    SUMSUB_BADC w, %2, %1, %4, %3\n    SUMSUB_BADC w, %4, %2, %3, %1\n    SWAP %1, %4, %3\n%endmacro\n\nINIT_MMX sse\ncglobal vp8_luma_dc_wht, 2, 3, 0, block, dc1, dc2\n    movq          m0, [dc1q]\n    movq          m1, [dc1q+8]\n    movq          m2, [dc1q+16]\n    movq          m3, [dc1q+24]\n    xorps      xmm0, xmm0\n    movaps [dc1q+ 0], xmm0\n    movaps [dc1q+16], xmm0\n    HADAMARD4_1D  0, 1, 2, 3\n    TRANSPOSE4x4W 0, 1, 2, 3, 4\n    paddw         m0, [pw_3]\n    HADAMARD4_1D  0, 1, 2, 3\n    psraw         m0, 3\n    psraw         m1, 3\n    psraw         m2, 3\n    psraw         m3, 3\n    SCATTER_WHT   0, 1, 0\n    SCATTER_WHT   2, 3, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/afa471d0efed1df5dca6eeeb2fcdd211ae4cad4e/libavcodec/x86/vp8dsp.asm", "line_start": 1081, "line_end": 1116}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:3", "text": "sixtap_filter_v_m:   times 8 dw   2\n                     times 8 dw -11\n                     times 8 dw 108\n                     times 8 dw  36\n                     times 8 dw  -8\n                     times 8 dw   1\n                     times 8 dw   3\n                     times 8 dw -16\n                     times 8 dw  77\n                     times 8 dw  77\n                     times 8 dw -16\n                     times 8 dw   3\n                     times 8 dw   1\n                     times 8 dw  -8\n                     times 8 dw  36\n                     times 8 dw 108\n                     times 8 dw -11\n                     times 8 dw   2\n\nbilinear_filter_vw_m: times 8 dw 1\n                      times 8 dw 2\n                      times 8 dw 3\n                      times 8 dw 4\n                      times 8 dw 5\n                      times 8 dw 6\n                      times 8 dw 7\n\nbilinear_filter_vb_m: times 8 db 7, 1\n                      times 8 db 6, 2\n                      times 8 db 5, 3\n                      times 8 db 4, 4\n                      times 8 db 3, 5\n                      times 8 db 2, 6\n                      times 8 db 1, 7\n\n%ifdef PIC\n%define fourtap_filter_hw  picregq\n%define sixtap_filter_hw   picregq\n%define fourtap_filter_hb  picregq\n%define sixtap_filter_hb   picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hw  fourtap_filter_hw_m\n%define sixtap_filter_hw   sixtap_filter_hw_m\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:4", "text": "%define sixtap_filter_hb   picregq\n%define fourtap_filter_v   picregq\n%define sixtap_filter_v    picregq\n%define bilinear_filter_vw picregq\n%define bilinear_filter_vb picregq\n%define npicregs 1\n%else\n%define fourtap_filter_hw  fourtap_filter_hw_m\n%define sixtap_filter_hw   sixtap_filter_hw_m\n%define fourtap_filter_hb  fourtap_filter_hb_m\n%define sixtap_filter_hb   sixtap_filter_hb_m\n%define fourtap_filter_v   fourtap_filter_v_m\n%define sixtap_filter_v    sixtap_filter_v_m\n%define bilinear_filter_vw bilinear_filter_vw_m\n%define bilinear_filter_vb bilinear_filter_vb_m\n%define npicregs 0\n%endif\n\nfilter_h2_shuf:  db 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,  6, 6,  7,  7,  8\nfilter_h4_shuf:  db 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,  8, 8,  9,  9, 10\n\nfilter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11,  7, 12\nfilter_h6_shuf2: db 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,  7, 7,  8,  8,  9\nfilter_h6_shuf3: db 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,  9, 9, 10, 10, 11\n\npw_20091: times 4 dw 20091\npw_17734: times 4 dw 17734\n\ncextern pw_3\ncextern pw_4\ncextern pw_64\ncextern pw_256\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; subpel MC functions:\n;\n; void ff_put_vp8_epel<size>_h<htap>v<vtap>_<opt>(uint8_t *dst, ptrdiff_t deststride,\n;                                                 const uint8_t *src, ptrdiff_t srcstride,\n;                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:5", "text": ";                                                 int height,   int mx, int my);\n;-------------------------------------------------------------------------------\n\n%macro FILTER_SSSE3 1\ncglobal put_vp8_epel%1_h6, 6, 6 + npicregs, 8, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    mova      m3, [filter_h6_shuf2]\n    mova      m4, [filter_h6_shuf3]\n%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    mova      m5, [sixtap_filter_hb+mxq*8-48] ; set up 6tap filter in bytes\n    mova      m6, [sixtap_filter_hb+mxq*8-32]\n    mova      m7, [sixtap_filter_hb+mxq*8-16]\n\n.nextrow:\n    movu      m0, [srcq-2]\n    mova      m1, m0\n    mova      m2, m0\n%if mmsize == 8\n; For epel4, we need 9 bytes, but only 8 get loaded; to compensate, do the\n; shuffle with a memory operand\n    punpcklbw m0, [srcq+3]\n%else\n    pshufb    m0, [filter_h6_shuf1]\n%endif\n    pshufb    m1, m3\n    pshufb    m2, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    pmaddubsw m2, m7\n    paddsw    m0, m1\n    paddsw    m0, m2\n    pmulhrsw  m0, [pw_256]\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%ifdef PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:6", "text": "dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_h4, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n    mova      m2, [pw_256]\n    mova      m3, [filter_h2_shuf]\n    mova      m4, [filter_h4_shuf]\n%ifdef PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+mxq-16] ; set up 4tap filter in bytes\n    mova      m6, [fourtap_filter_hb+mxq]\n\n.nextrow:\n    movu      m0, [srcq-1]\n    mova      m1, m0\n    pshufb    m0, m3\n    pshufb    m1, m4\n    pmaddubsw m0, m5\n    pmaddubsw m1, m6\n    paddsw    m0, m1\n    pmulhrsw  m0, m2\n    packuswb  m0, m0\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%ifdef PIC\n    lea  picregq, [fourtap_filter_hb_m]\n%endif\n    mova      m5, [fourtap_filter_hb+myq-16]\n    mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    paddsw    m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:7", "text": "mova      m6, [fourtap_filter_hb+myq]\n    mova      m7, [pw_256]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n\n.nextrow:\n    movh      m3, [srcq+2*srcstrideq]      ; read new row\n    mova      m4, m0\n    mova      m0, m1\n    punpcklbw m4, m1\n    mova      m1, m2\n    punpcklbw m2, m3\n    pmaddubsw m4, m5\n    pmaddubsw m2, m6\n    paddsw    m4, m2\n    mova      m2, m3\n    pmulhrsw  m4, m7\n    packuswb  m4, m4\n    movh  [dstq], m4\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    lea      myd, [myq*3]\n%ifdef PIC\n    lea  picregq, [sixtap_filter_hb_m]\n%endif\n    lea      myq, [sixtap_filter_hb+myq*8]\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:8", "text": "sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n\n.nextrow:\n    movh      m5, [srcq+2*srcstrideq]      ; read new row\n    mova      m6, m0\n    punpcklbw m6, m5\n    mova      m0, m1\n    punpcklbw m1, m2\n    mova      m7, m3\n    punpcklbw m7, m4\n    pmaddubsw m6, [myq-48]\n    pmaddubsw m1, [myq-32]\n    pmaddubsw m7, [myq-16]\n    paddsw    m6, m1\n    paddsw    m6, m7\n    mova      m1, m2\n    mova      m2, m3\n    pmulhrsw  m6, [pw_256]\n    mova      m3, m4\n    packuswb  m6, m6\n    mova      m4, m5\n    movh  [dstq], m6\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX ssse3\nFILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\n; 4x4 block, H-only 4-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h4, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    shl       mxd, 4\n%ifdef PIC\n    lea   picregq, [fourtap_filter_hw_m]\n%endif\n    movq      mm4, [fourtap_filter_hw+mxq-16] ; set up 4tap filter in words\n    movq      mm5, [fourtap_filter_hw+mxq]\n    movq      mm7, [pw_64]\n    pxor      mm6, mm6\n\n.nextrow:\n    movq      mm1, [srcq-1]                ; (ABCDEFGH) load 8 horizontal pixels\n\n    ; first set of 2 pixels", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:9", "text": "FILTER_SSSE3 4\nINIT_XMM ssse3\nFILTER_SSSE3 8\n\n; 4x4 block, H-only 4-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h4, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    shl       mxd, 4\n%ifdef PIC\n    lea   picregq, [fourtap_filter_hw_m]\n%endif\n    movq      mm4, [fourtap_filter_hw+mxq-16] ; set up 4tap filter in words\n    movq      mm5, [fourtap_filter_hw+mxq]\n    movq      mm7, [pw_64]\n    pxor      mm6, mm6\n\n.nextrow:\n    movq      mm1, [srcq-1]                ; (ABCDEFGH) load 8 horizontal pixels\n\n    ; first set of 2 pixels\n    movq      mm2, mm1                     ; byte ABCD..\n    punpcklbw mm1, mm6                     ; byte->word ABCD\n    pshufw    mm0, mm2, 9                  ; byte CDEF..\n    punpcklbw mm0, mm6                     ; byte->word CDEF\n    pshufw    mm3, mm1, 0x94               ; word ABBC\n    pshufw    mm1, mm0, 0x94               ; word CDDE\n    pmaddwd   mm3, mm4                     ; multiply 2px with F0/F1\n    movq      mm0, mm1                     ; backup for second set of pixels\n    pmaddwd   mm1, mm5                     ; multiply 2px with F2/F3\n    paddd     mm3, mm1                     ; finish 1st 2px\n\n    ; second set of 2 pixels, use backup of above\n    punpckhbw mm2, mm6                     ; byte->word EFGH\n    pmaddwd   mm0, mm4                     ; multiply backed up 2px with F0/F1\n    pshufw    mm1, mm2, 0x94               ; word EFFG\n    pmaddwd   mm1, mm5                     ; multiply 2px with F2/F3\n    paddd     mm0, mm1                     ; finish 2nd 2px\n\n    ; merge two sets of 2 pixels into one set of 4, round/clip/store\n    packssdw  mm3, mm0                     ; merge dword->word (4px)\n    paddsw    mm3, mm7                     ; rounding\n    psraw     mm3, 7\n    packuswb  mm3, mm6                     ; clip and word->bytes\n    movd   [dstq], mm3                     ; store\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\n; 4x4 block, H-only 6-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h6, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    lea       mxd, [mxq*3]\n%ifdef PIC\n    lea   picregq, [sixtap_filter_hw_m]\n%endif\n    movq      mm4, [sixtap_filter_hw+mxq*8-48] ; set up 4tap filter in words", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:10", "text": "paddsw    mm3, mm7                     ; rounding\n    psraw     mm3, 7\n    packuswb  mm3, mm6                     ; clip and word->bytes\n    movd   [dstq], mm3                     ; store\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\n; 4x4 block, H-only 6-tap filter\nINIT_MMX mmxext\ncglobal put_vp8_epel4_h6, 6, 6 + npicregs, 0, dst, dststride, src, srcstride, height, mx, picreg\n    lea       mxd, [mxq*3]\n%ifdef PIC\n    lea   picregq, [sixtap_filter_hw_m]\n%endif\n    movq      mm4, [sixtap_filter_hw+mxq*8-48] ; set up 4tap filter in words\n    movq      mm5, [sixtap_filter_hw+mxq*8-32]\n    movq      mm6, [sixtap_filter_hw+mxq*8-16]\n    movq      mm7, [pw_64]\n    pxor      mm3, mm3\n\n.nextrow:\n    movq      mm1, [srcq-2]                ; (ABCDEFGH) load 8 horizontal pixels\n\n    ; first set of 2 pixels\n    movq      mm2, mm1                     ; byte ABCD..\n    punpcklbw mm1, mm3                     ; byte->word ABCD\n    pshufw    mm0, mm2, 0x9                ; byte CDEF..\n    punpckhbw mm2, mm3                     ; byte->word EFGH\n    punpcklbw mm0, mm3                     ; byte->word CDEF\n    pshufw    mm1, mm1, 0x94               ; word ABBC\n    pshufw    mm2, mm2, 0x94               ; word EFFG\n    pmaddwd   mm1, mm4                     ; multiply 2px with F0/F1\n    pshufw    mm3, mm0, 0x94               ; word CDDE\n    movq      mm0, mm3                     ; backup for second set of pixels\n    pmaddwd   mm3, mm5                     ; multiply 2px with F2/F3\n    paddd     mm1, mm3                     ; add to 1st 2px cache\n    movq      mm3, mm2                     ; backup for second set of pixels\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm1, mm2                     ; finish 1st 2px\n\n    ; second set of 2 pixels, use backup of above\n    movd      mm2, [srcq+3]                ; byte FGHI (prevent overreads)\n    pmaddwd   mm0, mm4                     ; multiply 1st backed up 2px with F0/F1\n    pmaddwd   mm3, mm5                     ; multiply 2nd backed up 2px with F2/F3\n    paddd     mm0, mm3                     ; add to 2nd 2px cache\n    pxor      mm3, mm3\n    punpcklbw mm2, mm3                     ; byte->word FGHI\n    pshufw    mm2, mm2, 0xE9               ; word GHHI\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm0, mm2                     ; finish 2nd 2px\n\n    ; merge two sets of 2 pixels into one set of 4, round/clip/store\n    packssdw  mm1, mm0                     ; merge dword->word (4px)\n    paddsw    mm1, mm7                     ; rounding\n    psraw     mm1, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:11", "text": "paddd     mm1, mm3                     ; add to 1st 2px cache\n    movq      mm3, mm2                     ; backup for second set of pixels\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm1, mm2                     ; finish 1st 2px\n\n    ; second set of 2 pixels, use backup of above\n    movd      mm2, [srcq+3]                ; byte FGHI (prevent overreads)\n    pmaddwd   mm0, mm4                     ; multiply 1st backed up 2px with F0/F1\n    pmaddwd   mm3, mm5                     ; multiply 2nd backed up 2px with F2/F3\n    paddd     mm0, mm3                     ; add to 2nd 2px cache\n    pxor      mm3, mm3\n    punpcklbw mm2, mm3                     ; byte->word FGHI\n    pshufw    mm2, mm2, 0xE9               ; word GHHI\n    pmaddwd   mm2, mm6                     ; multiply 2px with F4/F5\n    paddd     mm0, mm2                     ; finish 2nd 2px\n\n    ; merge two sets of 2 pixels into one set of 4, round/clip/store\n    packssdw  mm1, mm0                     ; merge dword->word (4px)\n    paddsw    mm1, mm7                     ; rounding\n    psraw     mm1, 7\n    packuswb  mm1, mm3                     ; clip and word->bytes\n    movd   [dstq], mm1                     ; store\n\n    ; go to next line\n    add      dstq, dststrideq\n    add      srcq, srcstrideq\n    dec   heightd                          ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h4, 6, 6 + npicregs, 10, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 5\n%ifdef PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      mxq, [fourtap_filter_v+mxq-32]\n    pxor      m7, m7\n    mova      m4, [pw_64]\n    mova      m5, [mxq+ 0]\n    mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:12", "text": "mova      m6, [mxq+16]\n%ifdef m8\n    mova      m8, [mxq+32]\n    mova      m9, [mxq+48]\n%endif\n.nextrow:\n    movq      m0, [srcq-1]\n    movq      m1, [srcq-0]\n    movq      m2, [srcq+1]\n    movq      m3, [srcq+2]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    pmullw    m0, m5\n    pmullw    m1, m6\n%ifdef m8\n    pmullw    m2, m8\n    pmullw    m3, m9\n%else\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n%endif\n    paddsw    m0, m1\n    paddsw    m2, m3\n    paddsw    m0, m2\n    paddsw    m0, m4\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\nINIT_XMM sse2\ncglobal put_vp8_epel8_h6, 6, 6 + npicregs, 14, dst, dststride, src, srcstride, height, mx, picreg\n    lea      mxd, [mxq*3]\n    shl      mxd, 4\n%ifdef PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:13", "text": "lea      mxd, [mxq*3]\n    shl      mxd, 4\n%ifdef PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      mxq, [sixtap_filter_v+mxq-96]\n    pxor      m7, m7\n    mova      m6, [pw_64]\n%ifdef m8\n    mova      m8, [mxq+ 0]\n    mova      m9, [mxq+16]\n    mova     m10, [mxq+32]\n    mova     m11, [mxq+48]\n    mova     m12, [mxq+64]\n    mova     m13, [mxq+80]\n%endif\n.nextrow:\n    movq      m0, [srcq-2]\n    movq      m1, [srcq-1]\n    movq      m2, [srcq-0]\n    movq      m3, [srcq+1]\n    movq      m4, [srcq+2]\n    movq      m5, [srcq+3]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    punpcklbw m5, m7\n%ifdef m8\n    pmullw    m0, m8\n    pmullw    m1, m9\n    pmullw    m2, m10\n    pmullw    m3, m11\n    pmullw    m4, m12\n    pmullw    m5, m13\n%else\n    pmullw    m0, [mxq+ 0]\n    pmullw    m1, [mxq+16]\n    pmullw    m2, [mxq+32]\n    pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:14", "text": "pmullw    m3, [mxq+48]\n    pmullw    m4, [mxq+64]\n    pmullw    m5, [mxq+80]\n%endif\n    paddsw    m1, m4\n    paddsw    m0, m5\n    paddsw    m1, m2\n    paddsw    m0, m3\n    paddsw    m0, m1\n    paddsw    m0, m6\n    psraw     m0, 7\n    packuswb  m0, m7\n    movh  [dstq], m0        ; store\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd            ; next row\n    jg .nextrow\n    RET\n\n%macro FILTER_V 1\n; 4x4 block, V-only 4-tap filter\ncglobal put_vp8_epel%1_v4, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 5\n%ifdef PIC\n    lea  picregq, [fourtap_filter_v_m]\n%endif\n    lea      myq, [fourtap_filter_v+myq-32]\n    mova      m6, [pw_64]\n    pxor      m7, m7\n    mova      m5, [myq+48]\n\n    ; read 3 lines\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+  srcstrideq]\n    movh      m2, [srcq+2*srcstrideq]\n    add     srcq, srcstrideq\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:15", "text": "punpcklbw m1, m7\n    punpcklbw m2, m7\n\n.nextrow:\n    ; first calculate negative taps (to prevent losing positive overflows)\n    movh      m4, [srcq+2*srcstrideq]      ; read new row\n    punpcklbw m4, m7\n    mova      m3, m4\n    pmullw    m0, [myq+0]\n    pmullw    m4, m5\n    paddsw    m4, m0\n\n    ; then calculate positive taps\n    mova      m0, m1\n    pmullw    m1, [myq+16]\n    paddsw    m4, m1\n    mova      m1, m2\n    pmullw    m2, [myq+32]\n    paddsw    m4, m2\n    mova      m2, m3\n\n    ; round/clip/store\n    paddsw    m4, m6\n    psraw     m4, 7\n    packuswb  m4, m7\n    movh  [dstq], m4\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n\n\n; 4x4 block, V-only 6-tap filter\ncglobal put_vp8_epel%1_v6, 7, 7, 8, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n    lea      myq, [myq*3]\n%ifdef PIC\n    lea  picregq, [sixtap_filter_v_m]\n%endif\n    lea      myq, [sixtap_filter_v+myq-96]\n    pxor      m7, m7\n\n    ; read 5 lines\n    sub     srcq, srcstrideq\n    sub     srcq, srcstrideq\n    movh      m0, [srcq]\n    movh      m1, [srcq+srcstrideq]\n    movh      m2, [srcq+srcstrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    add     srcq, srcstrideq\n    movh      m3, [srcq]\n    movh      m4, [srcq+srcstrideq]\n    punpcklbw m0, m7\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:17", "text": "paddsw    m6, m3\n    mova      m3, m4\n    mova      m4, m5\n    pmullw    m5, [myq+80]\n    paddsw    m6, m5\n\n    ; round/clip/store\n    paddsw    m6, [pw_64]\n    psraw     m6, 7\n    packuswb  m6, m7\n    movh  [dstq], m6\n\n    ; go to next line\n    add     dstq, dststrideq\n    add     srcq, srcstrideq\n    dec  heightd                           ; next row\n    jg .nextrow\n    RET\n%endmacro\n\nINIT_MMX mmxext\nFILTER_V 4\nINIT_XMM sse2\nFILTER_V 8\n\n%macro FILTER_BILINEAR 1\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 5, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%ifdef PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m3, [bilinear_filter_vb+myq-16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m2, [srcq+srcstrideq*2]\n    punpcklbw m0, m1\n    punpcklbw m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%ifdef PIC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:18", "text": "pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_v, 7, 7, 7, dst, dststride, src, srcstride, height, picreg, my\n    shl      myd, 4\n%ifdef PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+myq-1*16]\n    neg      myq\n    mova      m4, [bilinear_filter_vw+myq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0]\n    movh      m1, [srcq+srcstrideq*1]\n    movh      m3, [srcq+srcstrideq*2]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m3, m6\n    mova      m2, m1\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:19", "text": "psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n\n%if cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 5, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%ifdef PIC\n    lea  picregq, [bilinear_filter_vb_m]\n%endif\n    pxor      m4, m4\n    mova      m2, [filter_h2_shuf]\n    mova      m3, [bilinear_filter_vb+mxq-16]\n.nextrow:\n    movu      m0, [srcq+srcstrideq*0]\n    movu      m1, [srcq+srcstrideq*1]\n    pshufb    m0, m2\n    pshufb    m1, m2\n    pmaddubsw m0, m3\n    pmaddubsw m1, m3\n    psraw     m0, 2\n    psraw     m1, 2\n    pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%ifdef PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp.asm:20", "text": "pavgw     m0, m4\n    pavgw     m1, m4\n%if mmsize==8\n    packuswb  m0, m0\n    packuswb  m1, m1\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m1\n%else\n    packuswb  m0, m1\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%else ; cpuflag(ssse3)\ncglobal put_vp8_bilinear%1_h, 6, 6 + npicregs, 7, dst, dststride, src, srcstride, height, mx, picreg\n    shl      mxd, 4\n%ifdef PIC\n    lea  picregq, [bilinear_filter_vw_m]\n%endif\n    pxor      m6, m6\n    mova      m5, [bilinear_filter_vw+mxq-1*16]\n    neg      mxq\n    mova      m4, [bilinear_filter_vw+mxq+7*16]\n.nextrow:\n    movh      m0, [srcq+srcstrideq*0+0]\n    movh      m1, [srcq+srcstrideq*0+1]\n    movh      m2, [srcq+srcstrideq*1+0]\n    movh      m3, [srcq+srcstrideq*1+1]\n    punpcklbw m0, m6\n    punpcklbw m1, m6\n    punpcklbw m2, m6\n    punpcklbw m3, m6\n    pmullw    m0, m4\n    pmullw    m1, m5\n    pmullw    m2, m4\n    pmullw    m3, m5\n    paddsw    m0, m1\n    paddsw    m2, m3\n    psraw     m0, 2\n    psraw     m2, 2\n    pavgw     m0, m6\n    pavgw     m2, m6\n%if mmsize == 8\n    packuswb  m0, m0\n    packuswb  m2, m2\n    movh   [dstq+dststrideq*0], m0\n    movh   [dstq+dststrideq*1], m2\n%else\n    packuswb  m0, m2\n    movh   [dstq+dststrideq*0], m0\n    movhps [dstq+dststrideq*1], m0\n%endif\n%endif ; cpuflag(ssse3)\n\n    lea     dstq, [dstq+dststrideq*2]\n    lea     srcq, [srcq+srcstrideq*2]\n    sub  heightd, 2\n    jg .nextrow\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:1", "text": ";******************************************************************************\n;* VP8 ASM optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_27:    times 8 dw 27\npw_63:    times 8 dw 63\n\npb_4:     times 16 db 4\npb_F8:    times 16 db 0xF8\npb_FE:    times 16 db 0xFE\npb_27_63: times 8 db 27, 63\npb_18_63: times 8 db 18, 63\npb_9_63:  times 8 db  9, 63\n\ncextern pb_1\ncextern pb_3\ncextern pw_9\ncextern pw_18\ncextern pb_80\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter_simple_<opt>(uint8_t *dst, ptrdiff_t stride, int flim);\n;-----------------------------------------------------------------------------\n\n; macro called with 7 mm register indexes as argument, and 5 regular registers\n; first 11 mean the same as READ_8x4_TRANSPOSED above\n; fifth regular register is scratchspace to reach the bottom 8 rows, it\n; will be set to second regular register + 8*stride at the end\n%macro READ_16x4_INTERLEAVED 12\n    ; transpose 16 (A-P) rows of 4 pixels each\n    lea           %12, [r0+8*r2]\n\n    ; read (and interleave) those addressable by %8 (=r0), A/C/D/E/I/K/L/M\n    movd          m%1, [%8+%10*4]   ; A0-3\n    movd          m%3, [%12+%10*4]  ; I0-3\n    movd          m%2, [%8+%10*2]   ; C0-3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:2", "text": "cextern pb_80\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter_simple_<opt>(uint8_t *dst, ptrdiff_t stride, int flim);\n;-----------------------------------------------------------------------------\n\n; macro called with 7 mm register indexes as argument, and 5 regular registers\n; first 11 mean the same as READ_8x4_TRANSPOSED above\n; fifth regular register is scratchspace to reach the bottom 8 rows, it\n; will be set to second regular register + 8*stride at the end\n%macro READ_16x4_INTERLEAVED 12\n    ; transpose 16 (A-P) rows of 4 pixels each\n    lea           %12, [r0+8*r2]\n\n    ; read (and interleave) those addressable by %8 (=r0), A/C/D/E/I/K/L/M\n    movd          m%1, [%8+%10*4]   ; A0-3\n    movd          m%3, [%12+%10*4]  ; I0-3\n    movd          m%2, [%8+%10*2]   ; C0-3\n    movd          m%4, [%12+%10*2]  ; K0-3\n    movd          m%6, [%8+%10]     ; D0-3\n    movd          m%5, [%12+%10]    ; L0-3\n    movd          m%7, [%12]        ; M0-3\n    add           %12, %11\n    punpcklbw     m%1, m%3          ; A/I\n    movd          m%3, [%8]         ; E0-3\n    punpcklbw     m%2, m%4          ; C/K\n    punpcklbw     m%6, m%5          ; D/L\n    punpcklbw     m%3, m%7          ; E/M\n    punpcklbw     m%2, m%6          ; C/D/K/L interleaved\n\n    ; read (and interleave) those addressable by %9 (=r4), B/F/G/H/J/N/O/P\n    movd         m%5, [%9+%10*4]   ; B0-3\n    movd         m%4, [%12+%10*4]  ; J0-3\n    movd         m%7, [%9]         ; F0-3\n    movd         m%6, [%12]        ; N0-3\n    punpcklbw    m%5, m%4          ; B/J\n    punpcklbw    m%7, m%6          ; F/N\n    punpcklbw    m%1, m%5          ; A/B/I/J interleaved\n    punpcklbw    m%3, m%7          ; E/F/M/N interleaved\n    movd         m%4, [%9+%11]     ; G0-3\n    movd         m%6, [%12+%11]    ; O0-3\n    movd         m%5, [%9+%11*2]   ; H0-3\n    movd         m%7, [%12+%11*2]  ; P0-3\n    punpcklbw    m%4, m%6          ; G/O\n    punpcklbw    m%5, m%7          ; H/P\n    punpcklbw    m%4, m%5          ; G/H/O/P interleaved\n%endmacro\n\n; write 4 xmm registers of 4 dwords each\n; arguments same as WRITE_2x4D, but with an extra register, so that the 5 regular\n; registers contain buf+4*stride, buf+5*stride, buf+12*stride, -stride and +stride\n; we add 1*stride to the third regular registry in the process\n; the 10th argument is 16 if it's a Y filter (i.e. all regular registers cover the\n; same memory region), or 8 if they cover two separate buffers (third one points to\n; a different memory region than the first two), allowing for more optimal code for\n; the 16-width case\n%macro WRITE_4x4D 10\n    ; write out (4 dwords per register), start with dwords zero", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:3", "text": "punpcklbw    m%3, m%7          ; E/F/M/N interleaved\n    movd         m%4, [%9+%11]     ; G0-3\n    movd         m%6, [%12+%11]    ; O0-3\n    movd         m%5, [%9+%11*2]   ; H0-3\n    movd         m%7, [%12+%11*2]  ; P0-3\n    punpcklbw    m%4, m%6          ; G/O\n    punpcklbw    m%5, m%7          ; H/P\n    punpcklbw    m%4, m%5          ; G/H/O/P interleaved\n%endmacro\n\n; write 4 xmm registers of 4 dwords each\n; arguments same as WRITE_2x4D, but with an extra register, so that the 5 regular\n; registers contain buf+4*stride, buf+5*stride, buf+12*stride, -stride and +stride\n; we add 1*stride to the third regular registry in the process\n; the 10th argument is 16 if it's a Y filter (i.e. all regular registers cover the\n; same memory region), or 8 if they cover two separate buffers (third one points to\n; a different memory region than the first two), allowing for more optimal code for\n; the 16-width case\n%macro WRITE_4x4D 10\n    ; write out (4 dwords per register), start with dwords zero\n    movd    [%5+%8*4], m%1\n    movd         [%5], m%2\n    movd    [%7+%8*4], m%3\n    movd         [%7], m%4\n\n    ; store dwords 1\n    psrldq        m%1, 4\n    psrldq        m%2, 4\n    psrldq        m%3, 4\n    psrldq        m%4, 4\n    movd    [%6+%8*4], m%1\n    movd         [%6], m%2\n%if %10 == 16\n    movd    [%6+%9*4], m%3\n%endif\n    movd      [%7+%9], m%4\n\n    ; write dwords 2\n    psrldq        m%1, 4\n    psrldq        m%2, 4\n%if %10 == 8\n    movd    [%5+%8*2], m%1\n    movd          %5d, m%3\n%endif\n    psrldq        m%3, 4\n    psrldq        m%4, 4\n%if %10 == 16\n    movd    [%5+%8*2], m%1\n%endif\n    movd      [%6+%9], m%2\n    movd    [%7+%8*2], m%3\n    movd    [%7+%9*2], m%4\n    add            %7, %9\n\n    ; store dwords 3\n    psrldq        m%1, 4\n    psrldq        m%2, 4\n    psrldq        m%3, 4\n    psrldq        m%4, 4\n%if %10 == 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:4", "text": "%if %10 == 8\n    movd    [%5+%8*2], m%1\n    movd          %5d, m%3\n%endif\n    psrldq        m%3, 4\n    psrldq        m%4, 4\n%if %10 == 16\n    movd    [%5+%8*2], m%1\n%endif\n    movd      [%6+%9], m%2\n    movd    [%7+%8*2], m%3\n    movd    [%7+%9*2], m%4\n    add            %7, %9\n\n    ; store dwords 3\n    psrldq        m%1, 4\n    psrldq        m%2, 4\n    psrldq        m%3, 4\n    psrldq        m%4, 4\n%if %10 == 8\n    mov     [%7+%8*4], %5d\n    movd    [%6+%8*2], m%1\n%else\n    movd      [%5+%8], m%1\n%endif\n    movd    [%6+%9*2], m%2\n    movd    [%7+%8*2], m%3\n    movd    [%7+%9*2], m%4\n%endmacro\n\n%macro WRITE_8W 5\n%if cpuflag(sse4)\n    pextrw    [%3+%4*4], %1, 0\n    pextrw    [%2+%4*4], %1, 1\n    pextrw    [%3+%4*2], %1, 2\n    pextrw    [%3+%4  ], %1, 3\n    pextrw    [%3     ], %1, 4\n    pextrw    [%2     ], %1, 5\n    pextrw    [%2+%5  ], %1, 6\n    pextrw    [%2+%5*2], %1, 7\n%else\n    movd            %2d, %1\n    psrldq           %1, 4\n    mov       [%3+%4*4], %2w\n    shr              %2, 16\n    add              %3, %5\n    mov       [%3+%4*4], %2w\n\n    movd            %2d, %1\n    psrldq           %1, 4\n    add              %3, %4\n    mov       [%3+%4*2], %2w\n    shr              %2, 16\n    mov       [%3+%4  ], %2w\n\n    movd            %2d, %1\n    psrldq           %1, 4\n    mov       [%3     ], %2w\n    shr              %2, 16\n    mov       [%3+%5  ], %2w", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:5", "text": "%else\n    movd            %2d, %1\n    psrldq           %1, 4\n    mov       [%3+%4*4], %2w\n    shr              %2, 16\n    add              %3, %5\n    mov       [%3+%4*4], %2w\n\n    movd            %2d, %1\n    psrldq           %1, 4\n    add              %3, %4\n    mov       [%3+%4*2], %2w\n    shr              %2, 16\n    mov       [%3+%4  ], %2w\n\n    movd            %2d, %1\n    psrldq           %1, 4\n    mov       [%3     ], %2w\n    shr              %2, 16\n    mov       [%3+%5  ], %2w\n\n    movd            %2d, %1\n    add              %3, %5\n    mov       [%3+%5  ], %2w\n    shr              %2, 16\n    mov       [%3+%5*2], %2w\n%endif\n%endmacro\n\n%macro SIMPLE_LOOPFILTER 2\ncglobal vp8_%1_loop_filter_simple, 3, %2, 8, dst, stride, flim, cntr\n%if cpuflag(ssse3)\n    pxor           m0, m0\n%endif\n    SPLATB_REG     m7, flim, m0     ; splat \"flim\" into register\n\n    ; set up indexes to address 4 rows\n    DEFINE_ARGS dst1, mstride, stride, dst3, dst2\n    mov       strideq, mstrideq\n    neg      mstrideq\n%ifidn %1, h\n    lea         dst1q, [dst1q+4*strideq-2]\n%endif\n\n%ifidn %1, v\n    ; read 4 half/full rows of pixels\n    mova           m0, [dst1q+mstrideq*2]    ; p1\n    mova           m1, [dst1q+mstrideq]      ; p0\n    mova           m2, [dst1q]               ; q0\n    mova           m3, [dst1q+ strideq]      ; q1\n%else ; h\n    lea         dst2q, [dst1q+ strideq]\n\n    READ_16x4_INTERLEAVED 0, 1, 2, 3, 4, 5, 6, dst1q, dst2q, mstrideq, strideq, dst3q\n    TRANSPOSE4x4W         0, 1, 2, 3, 4\n%endif\n\n    ; simple_limit\n    mova           m5, m2           ; m5=backup of q0\n    mova           m6, m1           ; m6=backup of p0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:6", "text": "%ifidn %1, h\n    lea         dst1q, [dst1q+4*strideq-2]\n%endif\n\n%ifidn %1, v\n    ; read 4 half/full rows of pixels\n    mova           m0, [dst1q+mstrideq*2]    ; p1\n    mova           m1, [dst1q+mstrideq]      ; p0\n    mova           m2, [dst1q]               ; q0\n    mova           m3, [dst1q+ strideq]      ; q1\n%else ; h\n    lea         dst2q, [dst1q+ strideq]\n\n    READ_16x4_INTERLEAVED 0, 1, 2, 3, 4, 5, 6, dst1q, dst2q, mstrideq, strideq, dst3q\n    TRANSPOSE4x4W         0, 1, 2, 3, 4\n%endif\n\n    ; simple_limit\n    mova           m5, m2           ; m5=backup of q0\n    mova           m6, m1           ; m6=backup of p0\n    psubusb        m1, m2           ; p0-q0\n    psubusb        m2, m6           ; q0-p0\n    por            m1, m2           ; FFABS(p0-q0)\n    paddusb        m1, m1           ; m1=FFABS(p0-q0)*2\n\n    mova           m4, m3\n    mova           m2, m0\n    psubusb        m3, m0           ; q1-p1\n    psubusb        m0, m4           ; p1-q1\n    por            m3, m0           ; FFABS(p1-q1)\n    mova           m0, [pb_80]\n    pxor           m2, m0\n    pxor           m4, m0\n    psubsb         m2, m4           ; m2=p1-q1 (signed) backup for below\n    pand           m3, [pb_FE]\n    psrlq          m3, 1            ; m3=FFABS(p1-q1)/2, this can be used signed\n    paddusb        m3, m1\n    psubusb        m3, m7\n    pxor           m1, m1\n    pcmpeqb        m3, m1           ; abs(p0-q0)*2+abs(p1-q1)/2<=flim mask(0xff/0x0)\n\n    ; filter_common (use m2/p1-q1, m4=q0, m6=p0, m5/q0-p0 and m3/mask)\n    mova           m4, m5\n    pxor           m5, m0\n    pxor           m0, m6\n    psubsb         m5, m0           ; q0-p0 (signed)\n    paddsb         m2, m5\n    paddsb         m2, m5\n    paddsb         m2, m5           ; a=(p1-q1) + 3*(q0-p0)\n    pand           m2, m3           ; apply filter mask (m3)\n\n    mova           m3, [pb_F8]\n    mova           m1, m2\n    paddsb         m2, [pb_4]       ; f1<<3=a+4\n    paddsb         m1, [pb_3]       ; f2<<3=a+3\n    pand           m2, m3\n    pand           m1, m3           ; cache f2<<3\n\n    pxor           m0, m0\n    pxor           m3, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:7", "text": "; filter_common (use m2/p1-q1, m4=q0, m6=p0, m5/q0-p0 and m3/mask)\n    mova           m4, m5\n    pxor           m5, m0\n    pxor           m0, m6\n    psubsb         m5, m0           ; q0-p0 (signed)\n    paddsb         m2, m5\n    paddsb         m2, m5\n    paddsb         m2, m5           ; a=(p1-q1) + 3*(q0-p0)\n    pand           m2, m3           ; apply filter mask (m3)\n\n    mova           m3, [pb_F8]\n    mova           m1, m2\n    paddsb         m2, [pb_4]       ; f1<<3=a+4\n    paddsb         m1, [pb_3]       ; f2<<3=a+3\n    pand           m2, m3\n    pand           m1, m3           ; cache f2<<3\n\n    pxor           m0, m0\n    pxor           m3, m3\n    pcmpgtb        m0, m2           ; which values are <0?\n    psubb          m3, m2           ; -f1<<3\n    psrlq          m2, 3            ; +f1\n    psrlq          m3, 3            ; -f1\n    pand           m3, m0\n    pandn          m0, m2\n    psubusb        m4, m0\n    paddusb        m4, m3           ; q0-f1\n\n    pxor           m0, m0\n    pxor           m3, m3\n    pcmpgtb        m0, m1           ; which values are <0?\n    psubb          m3, m1           ; -f2<<3\n    psrlq          m1, 3            ; +f2\n    psrlq          m3, 3            ; -f2\n    pand           m3, m0\n    pandn          m0, m1\n    paddusb        m6, m0\n    psubusb        m6, m3           ; p0+f2\n\n    ; store\n%ifidn %1, v\n    mova      [dst1q], m4\n    mova [dst1q+mstrideq], m6\n%else ; h\n    inc        dst1q\n    SBUTTERFLY    bw, 6, 4, 0\n\n%if cpuflag(sse4)\n    inc         dst2q\n%endif\n    WRITE_8W       m6, dst2q, dst1q, mstrideq, strideq\n    lea         dst2q, [dst3q+mstrideq+1]\n%if cpuflag(sse4)\n    inc         dst3q\n%endif\n    WRITE_8W       m4, dst3q, dst2q, mstrideq, strideq\n%endif\n\n    RET", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:8", "text": "; store\n%ifidn %1, v\n    mova      [dst1q], m4\n    mova [dst1q+mstrideq], m6\n%else ; h\n    inc        dst1q\n    SBUTTERFLY    bw, 6, 4, 0\n\n%if cpuflag(sse4)\n    inc         dst2q\n%endif\n    WRITE_8W       m6, dst2q, dst1q, mstrideq, strideq\n    lea         dst2q, [dst3q+mstrideq+1]\n%if cpuflag(sse4)\n    inc         dst3q\n%endif\n    WRITE_8W       m4, dst3q, dst2q, mstrideq, strideq\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nSIMPLE_LOOPFILTER v, 3\nSIMPLE_LOOPFILTER h, 5\nINIT_XMM ssse3\nSIMPLE_LOOPFILTER v, 3\nSIMPLE_LOOPFILTER h, 5\nINIT_XMM sse4\nSIMPLE_LOOPFILTER h, 5\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter<size>_inner_<opt>(uint8_t *dst, [uint8_t *v,] ptrdiff_t stride,\n;                                               int flimE, int flimI, int hev_thr);\n;-----------------------------------------------------------------------------\n\n%macro INNER_LOOPFILTER 2\n%define stack_size 0\n%ifndef m8   ; stack layout: [0]=E, [1]=I, [2]=hev_thr\n%ifidn %1, v ;               [3]=hev() result\n%define stack_size mmsize * -4\n%else ; h    ; extra storage space for transposes\n%define stack_size mmsize * -5\n%endif\n%endif\n\n%if %2 == 8 ; chroma\ncglobal vp8_%1_loop_filter8uv_inner, 6, 6, 13, stack_size, dst, dst8, stride, flimE, flimI, hevthr\n%else ; luma\ncglobal vp8_%1_loop_filter16y_inner, 5, 5, 13, stack_size, dst, stride, flimE, flimI, hevthr\n%endif\n\n%if cpuflag(ssse3)\n    pxor             m7, m7\n%endif\n\n%ifndef m8\n    ; splat function arguments\n    SPLATB_REG       m0, flimEq, m7   ; E\n    SPLATB_REG       m1, flimIq, m7   ; I", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:9", "text": "%define stack_size mmsize * -4\n%else ; h    ; extra storage space for transposes\n%define stack_size mmsize * -5\n%endif\n%endif\n\n%if %2 == 8 ; chroma\ncglobal vp8_%1_loop_filter8uv_inner, 6, 6, 13, stack_size, dst, dst8, stride, flimE, flimI, hevthr\n%else ; luma\ncglobal vp8_%1_loop_filter16y_inner, 5, 5, 13, stack_size, dst, stride, flimE, flimI, hevthr\n%endif\n\n%if cpuflag(ssse3)\n    pxor             m7, m7\n%endif\n\n%ifndef m8\n    ; splat function arguments\n    SPLATB_REG       m0, flimEq, m7   ; E\n    SPLATB_REG       m1, flimIq, m7   ; I\n    SPLATB_REG       m2, hevthrq, m7  ; hev_thresh\n\n%define m_flimE    [rsp]\n%define m_flimI    [rsp+mmsize]\n%define m_hevthr   [rsp+mmsize*2]\n%define m_maskres  [rsp+mmsize*3]\n%define m_p0backup [rsp+mmsize*3]\n%define m_q0backup [rsp+mmsize*4]\n\n    mova        m_flimE, m0\n    mova        m_flimI, m1\n    mova       m_hevthr, m2\n%else\n%define m_flimE    m9\n%define m_flimI    m10\n%define m_hevthr   m11\n%define m_maskres  m12\n%define m_p0backup m12\n%define m_q0backup m8\n\n    ; splat function arguments\n    SPLATB_REG  m_flimE, flimEq, m7   ; E\n    SPLATB_REG  m_flimI, flimIq, m7   ; I\n    SPLATB_REG m_hevthr, hevthrq, m7  ; hev_thresh\n%endif\n\n%if %2 == 8 ; chroma\n    DEFINE_ARGS dst1, dst8, mstride, stride, dst2\n%else\n    DEFINE_ARGS dst1, mstride, stride, dst2, dst8\n%endif\n    mov         strideq, mstrideq\n    neg        mstrideq\n%ifidn %1, h\n    lea           dst1q, [dst1q+strideq*4-4]\n%if %2 == 8 ; chroma\n    lea           dst8q, [dst8q+strideq*4-4]\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:10", "text": "; splat function arguments\n    SPLATB_REG  m_flimE, flimEq, m7   ; E\n    SPLATB_REG  m_flimI, flimIq, m7   ; I\n    SPLATB_REG m_hevthr, hevthrq, m7  ; hev_thresh\n%endif\n\n%if %2 == 8 ; chroma\n    DEFINE_ARGS dst1, dst8, mstride, stride, dst2\n%else\n    DEFINE_ARGS dst1, mstride, stride, dst2, dst8\n%endif\n    mov         strideq, mstrideq\n    neg        mstrideq\n%ifidn %1, h\n    lea           dst1q, [dst1q+strideq*4-4]\n%if %2 == 8 ; chroma\n    lea           dst8q, [dst8q+strideq*4-4]\n%endif\n%endif\n\n    ; read\n    lea           dst2q, [dst1q+strideq]\n%ifidn %1, v\n%if %2 == 8\n%define movrow movh\n%else\n%define movrow mova\n%endif\n    movrow           m0, [dst1q+mstrideq*4] ; p3\n    movrow           m1, [dst2q+mstrideq*4] ; p2\n    movrow           m2, [dst1q+mstrideq*2] ; p1\n    movrow           m5, [dst2q]            ; q1\n    movrow           m6, [dst2q+ strideq*1] ; q2\n    movrow           m7, [dst2q+ strideq*2] ; q3\n%if %2 == 8\n    movhps           m0, [dst8q+mstrideq*4]\n    movhps           m2, [dst8q+mstrideq*2]\n    add           dst8q, strideq\n    movhps           m1, [dst8q+mstrideq*4]\n    movhps           m5, [dst8q]\n    movhps           m6, [dst8q+ strideq  ]\n    movhps           m7, [dst8q+ strideq*2]\n    add           dst8q, mstrideq\n%endif\n%else ; h\n%if %2 == 16\n    lea           dst8q, [dst1q+ strideq*8]\n%endif\n\n    ; read 16 rows of 8px each, interleave\n    movh             m0, [dst1q+mstrideq*4]\n    movh             m1, [dst8q+mstrideq*4]\n    movh             m2, [dst1q+mstrideq*2]\n    movh             m5, [dst8q+mstrideq*2]\n    movh             m3, [dst1q+mstrideq  ]\n    movh             m6, [dst8q+mstrideq  ]\n    movh             m4, [dst1q]\n    movh             m7, [dst8q]\n    punpcklbw        m0, m1          ; A/I\n    punpcklbw        m2, m5          ; C/K", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:11", "text": "movhps           m6, [dst8q+ strideq  ]\n    movhps           m7, [dst8q+ strideq*2]\n    add           dst8q, mstrideq\n%endif\n%else ; h\n%if %2 == 16\n    lea           dst8q, [dst1q+ strideq*8]\n%endif\n\n    ; read 16 rows of 8px each, interleave\n    movh             m0, [dst1q+mstrideq*4]\n    movh             m1, [dst8q+mstrideq*4]\n    movh             m2, [dst1q+mstrideq*2]\n    movh             m5, [dst8q+mstrideq*2]\n    movh             m3, [dst1q+mstrideq  ]\n    movh             m6, [dst8q+mstrideq  ]\n    movh             m4, [dst1q]\n    movh             m7, [dst8q]\n    punpcklbw        m0, m1          ; A/I\n    punpcklbw        m2, m5          ; C/K\n    punpcklbw        m3, m6          ; D/L\n    punpcklbw        m4, m7          ; E/M\n\n    add           dst8q, strideq\n    movh             m1, [dst2q+mstrideq*4]\n    movh             m6, [dst8q+mstrideq*4]\n    movh             m5, [dst2q]\n    movh             m7, [dst8q]\n    punpcklbw        m1, m6          ; B/J\n    punpcklbw        m5, m7          ; F/N\n    movh             m6, [dst2q+ strideq  ]\n    movh             m7, [dst8q+ strideq  ]\n    punpcklbw        m6, m7          ; G/O\n\n    ; 8x16 transpose\n    TRANSPOSE4x4B     0, 1, 2, 3, 7\n%ifdef m8\n    SWAP              1, 8\n%else\n    mova     m_q0backup, m1\n%endif\n    movh             m7, [dst2q+ strideq*2]\n    movh             m1, [dst8q+ strideq*2]\n    punpcklbw        m7, m1          ; H/P\n    TRANSPOSE4x4B     4, 5, 6, 7, 1\n    SBUTTERFLY       dq, 0, 4, 1     ; p3/p2\n    SBUTTERFLY       dq, 2, 6, 1     ; q0/q1\n    SBUTTERFLY       dq, 3, 7, 1     ; q2/q3\n%ifdef m8\n    SWAP              1, 8\n    SWAP              2, 8\n%else\n    mova             m1, m_q0backup\n    mova     m_q0backup, m2          ; store q0\n%endif\n    SBUTTERFLY       dq, 1, 5, 2     ; p1/p0\n%ifdef m12\n    SWAP              5, 12\n%else\n    mova     m_p0backup, m5          ; store p0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:12", "text": "%endif\n    movh             m7, [dst2q+ strideq*2]\n    movh             m1, [dst8q+ strideq*2]\n    punpcklbw        m7, m1          ; H/P\n    TRANSPOSE4x4B     4, 5, 6, 7, 1\n    SBUTTERFLY       dq, 0, 4, 1     ; p3/p2\n    SBUTTERFLY       dq, 2, 6, 1     ; q0/q1\n    SBUTTERFLY       dq, 3, 7, 1     ; q2/q3\n%ifdef m8\n    SWAP              1, 8\n    SWAP              2, 8\n%else\n    mova             m1, m_q0backup\n    mova     m_q0backup, m2          ; store q0\n%endif\n    SBUTTERFLY       dq, 1, 5, 2     ; p1/p0\n%ifdef m12\n    SWAP              5, 12\n%else\n    mova     m_p0backup, m5          ; store p0\n%endif\n    SWAP              1, 4\n    SWAP              2, 4\n    SWAP              6, 3\n    SWAP              5, 3\n%endif\n\n    ; normal_limit for p3-p2, p2-p1, q3-q2 and q2-q1\n    mova             m4, m1\n    SWAP              4, 1\n    psubusb          m4, m0          ; p2-p3\n    psubusb          m0, m1          ; p3-p2\n    por              m0, m4          ; abs(p3-p2)\n\n    mova             m4, m2\n    SWAP              4, 2\n    psubusb          m4, m1          ; p1-p2\n    psubusb          m1, m2          ; p2-p1\n    por              m1, m4          ; abs(p2-p1)\n\n    mova             m4, m6\n    SWAP              4, 6\n    psubusb          m4, m7          ; q2-q3\n    psubusb          m7, m6          ; q3-q2\n    por              m7, m4          ; abs(q3-q2)\n\n    mova             m4, m5\n    SWAP              4, 5\n    psubusb          m4, m6          ; q1-q2\n    psubusb          m6, m5          ; q2-q1\n    por              m6, m4          ; abs(q2-q1)\n\n    pmaxub           m0, m1\n    pmaxub           m6, m7\n    pmaxub           m0, m6\n\n    ; normal_limit and high_edge_variance for p1-p0, q1-q0\n    SWAP              7, 3           ; now m7 is zero\n%ifidn %1, v\n    movrow           m3, [dst1q+mstrideq  ] ; p0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:13", "text": "mova             m4, m6\n    SWAP              4, 6\n    psubusb          m4, m7          ; q2-q3\n    psubusb          m7, m6          ; q3-q2\n    por              m7, m4          ; abs(q3-q2)\n\n    mova             m4, m5\n    SWAP              4, 5\n    psubusb          m4, m6          ; q1-q2\n    psubusb          m6, m5          ; q2-q1\n    por              m6, m4          ; abs(q2-q1)\n\n    pmaxub           m0, m1\n    pmaxub           m6, m7\n    pmaxub           m0, m6\n\n    ; normal_limit and high_edge_variance for p1-p0, q1-q0\n    SWAP              7, 3           ; now m7 is zero\n%ifidn %1, v\n    movrow           m3, [dst1q+mstrideq  ] ; p0\n%if %2 == 8\n    movhps           m3, [dst8q+mstrideq  ]\n%endif\n%elifdef m12\n    SWAP              3, 12\n%else\n    mova             m3, m_p0backup\n%endif\n\n    mova             m1, m2\n    SWAP              1, 2\n    mova             m6, m3\n    SWAP              3, 6\n    psubusb          m1, m3          ; p1-p0\n    psubusb          m6, m2          ; p0-p1\n    por              m1, m6          ; abs(p1-p0)\n    pmaxub           m0, m1          ; max_I\n    SWAP              1, 4           ; max_hev_thresh\n\n    SWAP              6, 4           ; now m6 is I\n%ifidn %1, v\n    movrow           m4, [dst1q]     ; q0\n%if %2 == 8\n    movhps           m4, [dst8q]\n%endif\n%elifdef m8\n    SWAP              4, 8\n%else\n    mova             m4, m_q0backup\n%endif\n    mova             m1, m4\n    SWAP              1, 4\n    mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:14", "text": "%ifidn %1, v\n    movrow           m4, [dst1q]     ; q0\n%if %2 == 8\n    movhps           m4, [dst8q]\n%endif\n%elifdef m8\n    SWAP              4, 8\n%else\n    mova             m4, m_q0backup\n%endif\n    mova             m1, m4\n    SWAP              1, 4\n    mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1\n    psubusb          m0, m_flimI\n    psubusb          m6, m_hevthr\n    pcmpeqb          m0, m7          ; max(abs(..)) <= I\n    pcmpeqb          m6, m7          ; !(max(abs..) > thresh)\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova      m_maskres, m6          ; !(abs(p1-p0) > hev_t || abs(q1-q0) > hev_t)\n%endif\n\n    ; simple_limit\n    mova             m1, m3\n    SWAP              1, 3\n    mova             m6, m4          ; keep copies of p0/q0 around for later use\n    SWAP              6, 4\n    psubusb          m1, m4          ; p0-q0\n    psubusb          m6, m3          ; q0-p0\n    por              m1, m6          ; abs(q0-p0)\n    paddusb          m1, m1          ; m1=2*abs(q0-p0)\n\n    mova             m7, m2\n    SWAP              7, 2\n    mova             m6, m5\n    SWAP              6, 5\n    psubusb          m7, m5          ; p1-q1\n    psubusb          m6, m2          ; q1-p1\n    por              m7, m6          ; abs(q1-p1)\n    pxor             m6, m6\n    pand             m7, [pb_FE]\n    psrlq            m7, 1           ; abs(q1-p1)/2\n    paddusb          m7, m1          ; abs(q0-p0)*2+abs(q1-p1)/2\n    psubusb          m7, m_flimE\n    pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:15", "text": "mova             m7, m2\n    SWAP              7, 2\n    mova             m6, m5\n    SWAP              6, 5\n    psubusb          m7, m5          ; p1-q1\n    psubusb          m6, m2          ; q1-p1\n    por              m7, m6          ; abs(q1-p1)\n    pxor             m6, m6\n    pand             m7, [pb_FE]\n    psrlq            m7, 1           ; abs(q1-p1)/2\n    paddusb          m7, m1          ; abs(q0-p0)*2+abs(q1-p1)/2\n    psubusb          m7, m_flimE\n    pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32\n%define m_pb_80 [pb_80]\n%endif\n    mova             m1, m4\n    mova             m7, m3\n    pxor             m1, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m1, m7          ; (signed) q0-p0\n    mova             m6, m2\n    mova             m7, m5\n    pxor             m6, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m6, m7          ; (signed) p1-q1\n    mova             m7, m_maskres\n    pandn            m7, m6\n    paddsb           m7, m1\n    paddsb           m7, m1\n    paddsb           m7, m1          ; 3*(q0-p0)+is4tap?(p1-q1)\n\n    pand             m7, m0\n    mova             m1, [pb_F8]\n    mova             m6, m7\n    paddsb           m7, [pb_3]\n    paddsb           m6, [pb_4]\n    pand             m7, m1\n    pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:16", "text": "mova             m6, m7\n    paddsb           m7, [pb_3]\n    paddsb           m6, [pb_4]\n    pand             m7, m1\n    pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6\n    psubb            m1, m6\n    psrlq            m6, 3           ; +f1\n    psrlq            m1, 3           ; -f1\n    pand             m1, m0\n    pandn            m0, m6\n    psubusb          m4, m0\n    paddusb          m4, m1          ; q0-f1\n\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova             m6, m_maskres\n%endif\n    pxor             m7, m7\n    pand             m0, m6\n    pand             m1, m6\n    psubusb          m1, [pb_1]\n    pavgb            m0, m7          ; a\n    pavgb            m1, m7          ; -a\n    psubusb          m5, m0\n    psubusb          m2, m1\n    paddusb          m5, m1          ; q1-a\n    paddusb          m2, m0          ; p1+a\n\n    ; store\n%ifidn %1, v\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow      [dst1q], m4\n    movrow [dst1q+ strideq  ], m5\n%if %2 == 8\n    movhps [dst8q+mstrideq*2], m2\n    movhps [dst8q+mstrideq  ], m3\n    movhps      [dst8q], m4\n    movhps [dst8q+ strideq  ], m5\n%endif\n%else ; h\n    add           dst1q, 2\n    add           dst2q, 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:17", "text": "psubusb          m2, m1\n    paddusb          m5, m1          ; q1-a\n    paddusb          m2, m0          ; p1+a\n\n    ; store\n%ifidn %1, v\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow      [dst1q], m4\n    movrow [dst1q+ strideq  ], m5\n%if %2 == 8\n    movhps [dst8q+mstrideq*2], m2\n    movhps [dst8q+mstrideq  ], m3\n    movhps      [dst8q], m4\n    movhps [dst8q+ strideq  ], m5\n%endif\n%else ; h\n    add           dst1q, 2\n    add           dst2q, 2\n\n    ; 4x8/16 transpose\n    TRANSPOSE4x4B     2, 3, 4, 5, 6\n\n    lea           dst8q, [dst8q+mstrideq  +2]\n    WRITE_4x4D        2, 3, 4, 5, dst1q, dst2q, dst8q, mstrideq, strideq, %2\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nINNER_LOOPFILTER v, 16\nINNER_LOOPFILTER h, 16\nINNER_LOOPFILTER v,  8\nINNER_LOOPFILTER h,  8\n\nINIT_XMM ssse3\nINNER_LOOPFILTER v, 16\nINNER_LOOPFILTER h, 16\nINNER_LOOPFILTER v,  8\nINNER_LOOPFILTER h,  8\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter<size>_mbedge_<opt>(uint8_t *dst, [uint8_t *v,] ptrdiff_t stride,\n;                                                int flimE, int flimI, int hev_thr);\n;-----------------------------------------------------------------------------\n\n%macro MBEDGE_LOOPFILTER 2\n%define stack_size 0\n%ifndef m8       ; stack layout: [0]=E, [1]=I, [2]=hev_thr\n                 ;               [3]=hev() result\n                 ;               [4]=filter tmp result\n                 ;               [5]/[6] = p2/q2 backup\n                 ;               [7]=lim_res sign result\n%define stack_size mmsize * -7\n%endif\n\n%if %2 == 8 ; chroma\ncglobal vp8_%1_loop_filter8uv_mbedge, 6, 6, 15, stack_size, dst1, dst8, stride, flimE, flimI, hevthr\n%else ; luma", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:18", "text": "INNER_LOOPFILTER h,  8\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter<size>_mbedge_<opt>(uint8_t *dst, [uint8_t *v,] ptrdiff_t stride,\n;                                                int flimE, int flimI, int hev_thr);\n;-----------------------------------------------------------------------------\n\n%macro MBEDGE_LOOPFILTER 2\n%define stack_size 0\n%ifndef m8       ; stack layout: [0]=E, [1]=I, [2]=hev_thr\n                 ;               [3]=hev() result\n                 ;               [4]=filter tmp result\n                 ;               [5]/[6] = p2/q2 backup\n                 ;               [7]=lim_res sign result\n%define stack_size mmsize * -7\n%endif\n\n%if %2 == 8 ; chroma\ncglobal vp8_%1_loop_filter8uv_mbedge, 6, 6, 15, stack_size, dst1, dst8, stride, flimE, flimI, hevthr\n%else ; luma\ncglobal vp8_%1_loop_filter16y_mbedge, 5, 5, 15, stack_size, dst1, stride, flimE, flimI, hevthr\n%endif\n\n%if cpuflag(ssse3)\n    pxor             m7, m7\n%endif\n\n%ifndef m8\n    ; splat function arguments\n    SPLATB_REG       m0, flimEq, m7   ; E\n    SPLATB_REG       m1, flimIq, m7   ; I\n    SPLATB_REG       m2, hevthrq, m7  ; hev_thresh\n\n%define m_flimE    [rsp]\n%define m_flimI    [rsp+mmsize]\n%define m_hevthr   [rsp+mmsize*2]\n%define m_maskres  [rsp+mmsize*3]\n%define m_limres   [rsp+mmsize*4]\n%define m_p0backup [rsp+mmsize*3]\n%define m_q0backup [rsp+mmsize*4]\n%define m_p2backup [rsp+mmsize*5]\n%define m_q2backup [rsp+mmsize*6]\n%define m_limsign  [rsp]\n\n    mova        m_flimE, m0\n    mova        m_flimI, m1\n    mova       m_hevthr, m2\n%else ; sse2 on x86-64\n%define m_flimE    m9\n%define m_flimI    m10\n%define m_hevthr   m11\n%define m_maskres  m12\n%define m_limres   m8\n%define m_p0backup m12\n%define m_q0backup m8\n%define m_p2backup m13\n%define m_q2backup m14\n%define m_limsign  m9\n\n    ; splat function arguments", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:19", "text": "%define m_p2backup [rsp+mmsize*5]\n%define m_q2backup [rsp+mmsize*6]\n%define m_limsign  [rsp]\n\n    mova        m_flimE, m0\n    mova        m_flimI, m1\n    mova       m_hevthr, m2\n%else ; sse2 on x86-64\n%define m_flimE    m9\n%define m_flimI    m10\n%define m_hevthr   m11\n%define m_maskres  m12\n%define m_limres   m8\n%define m_p0backup m12\n%define m_q0backup m8\n%define m_p2backup m13\n%define m_q2backup m14\n%define m_limsign  m9\n\n    ; splat function arguments\n    SPLATB_REG  m_flimE, flimEq, m7   ; E\n    SPLATB_REG  m_flimI, flimIq, m7   ; I\n    SPLATB_REG m_hevthr, hevthrq, m7  ; hev_thresh\n%endif\n\n%if %2 == 8 ; chroma\n    DEFINE_ARGS dst1, dst8, mstride, stride, dst2\n%else\n    DEFINE_ARGS dst1, mstride, stride, dst2, dst8\n%endif\n    mov         strideq, mstrideq\n    neg        mstrideq\n%ifidn %1, h\n    lea           dst1q, [dst1q+strideq*4-4]\n%if %2 == 8 ; chroma\n    lea           dst8q, [dst8q+strideq*4-4]\n%endif\n%endif\n\n    ; read\n    lea           dst2q, [dst1q+ strideq  ]\n%ifidn %1, v\n%if %2 == 8\n%define movrow movh\n%else\n%define movrow mova\n%endif\n    movrow           m0, [dst1q+mstrideq*4] ; p3\n    movrow           m1, [dst2q+mstrideq*4] ; p2\n    movrow           m2, [dst1q+mstrideq*2] ; p1\n    movrow           m5, [dst2q]            ; q1\n    movrow           m6, [dst2q+ strideq  ] ; q2\n    movrow           m7, [dst2q+ strideq*2] ; q3\n%if %2 == 8\n    movhps           m0, [dst8q+mstrideq*4]\n    movhps           m2, [dst8q+mstrideq*2]\n    add           dst8q, strideq\n    movhps           m1, [dst8q+mstrideq*4]\n    movhps           m5, [dst8q]\n    movhps           m6, [dst8q+ strideq  ]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:20", "text": "lea           dst2q, [dst1q+ strideq  ]\n%ifidn %1, v\n%if %2 == 8\n%define movrow movh\n%else\n%define movrow mova\n%endif\n    movrow           m0, [dst1q+mstrideq*4] ; p3\n    movrow           m1, [dst2q+mstrideq*4] ; p2\n    movrow           m2, [dst1q+mstrideq*2] ; p1\n    movrow           m5, [dst2q]            ; q1\n    movrow           m6, [dst2q+ strideq  ] ; q2\n    movrow           m7, [dst2q+ strideq*2] ; q3\n%if %2 == 8\n    movhps           m0, [dst8q+mstrideq*4]\n    movhps           m2, [dst8q+mstrideq*2]\n    add           dst8q, strideq\n    movhps           m1, [dst8q+mstrideq*4]\n    movhps           m5, [dst8q]\n    movhps           m6, [dst8q+ strideq  ]\n    movhps           m7, [dst8q+ strideq*2]\n    add           dst8q, mstrideq\n%endif\n%else ; h\n%if %2 == 16\n    lea           dst8q, [dst1q+ strideq*8  ]\n%endif\n\n    ; read 16 rows of 8px each, interleave\n    movh             m0, [dst1q+mstrideq*4]\n    movh             m1, [dst8q+mstrideq*4]\n    movh             m2, [dst1q+mstrideq*2]\n    movh             m5, [dst8q+mstrideq*2]\n    movh             m3, [dst1q+mstrideq  ]\n    movh             m6, [dst8q+mstrideq  ]\n    movh             m4, [dst1q]\n    movh             m7, [dst8q]\n    punpcklbw        m0, m1          ; A/I\n    punpcklbw        m2, m5          ; C/K\n    punpcklbw        m3, m6          ; D/L\n    punpcklbw        m4, m7          ; E/M\n\n    add           dst8q, strideq\n    movh             m1, [dst2q+mstrideq*4]\n    movh             m6, [dst8q+mstrideq*4]\n    movh             m5, [dst2q]\n    movh             m7, [dst8q]\n    punpcklbw        m1, m6          ; B/J\n    punpcklbw        m5, m7          ; F/N\n    movh             m6, [dst2q+ strideq  ]\n    movh             m7, [dst8q+ strideq  ]\n    punpcklbw        m6, m7          ; G/O\n\n    ; 8x16 transpose\n    TRANSPOSE4x4B     0, 1, 2, 3, 7\n%ifdef m8\n    SWAP              1, 8\n%else\n    mova     m_q0backup, m1\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:21", "text": "punpcklbw        m4, m7          ; E/M\n\n    add           dst8q, strideq\n    movh             m1, [dst2q+mstrideq*4]\n    movh             m6, [dst8q+mstrideq*4]\n    movh             m5, [dst2q]\n    movh             m7, [dst8q]\n    punpcklbw        m1, m6          ; B/J\n    punpcklbw        m5, m7          ; F/N\n    movh             m6, [dst2q+ strideq  ]\n    movh             m7, [dst8q+ strideq  ]\n    punpcklbw        m6, m7          ; G/O\n\n    ; 8x16 transpose\n    TRANSPOSE4x4B     0, 1, 2, 3, 7\n%ifdef m8\n    SWAP              1, 8\n%else\n    mova     m_q0backup, m1\n%endif\n    movh             m7, [dst2q+ strideq*2]\n    movh             m1, [dst8q+ strideq*2]\n    punpcklbw        m7, m1          ; H/P\n    TRANSPOSE4x4B     4, 5, 6, 7, 1\n    SBUTTERFLY       dq, 0, 4, 1     ; p3/p2\n    SBUTTERFLY       dq, 2, 6, 1     ; q0/q1\n    SBUTTERFLY       dq, 3, 7, 1     ; q2/q3\n%ifdef m8\n    SWAP              1, 8\n    SWAP              2, 8\n%else\n    mova             m1, m_q0backup\n    mova     m_q0backup, m2          ; store q0\n%endif\n    SBUTTERFLY       dq, 1, 5, 2     ; p1/p0\n%ifdef m12\n    SWAP              5, 12\n%else\n    mova     m_p0backup, m5          ; store p0\n%endif\n    SWAP              1, 4\n    SWAP              2, 4\n    SWAP              6, 3\n    SWAP              5, 3\n%endif\n\n    ; normal_limit for p3-p2, p2-p1, q3-q2 and q2-q1\n    mova             m4, m1\n    SWAP              4, 1\n    psubusb          m4, m0          ; p2-p3\n    psubusb          m0, m1          ; p3-p2\n    por              m0, m4          ; abs(p3-p2)\n\n    mova             m4, m2\n    SWAP              4, 2\n    psubusb          m4, m1          ; p1-p2\n    mova     m_p2backup, m1\n    psubusb          m1, m2          ; p2-p1\n    por              m1, m4          ; abs(p2-p1)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:22", "text": "SWAP              1, 4\n    SWAP              2, 4\n    SWAP              6, 3\n    SWAP              5, 3\n%endif\n\n    ; normal_limit for p3-p2, p2-p1, q3-q2 and q2-q1\n    mova             m4, m1\n    SWAP              4, 1\n    psubusb          m4, m0          ; p2-p3\n    psubusb          m0, m1          ; p3-p2\n    por              m0, m4          ; abs(p3-p2)\n\n    mova             m4, m2\n    SWAP              4, 2\n    psubusb          m4, m1          ; p1-p2\n    mova     m_p2backup, m1\n    psubusb          m1, m2          ; p2-p1\n    por              m1, m4          ; abs(p2-p1)\n\n    mova             m4, m6\n    SWAP              4, 6\n    psubusb          m4, m7          ; q2-q3\n    psubusb          m7, m6          ; q3-q2\n    por              m7, m4          ; abs(q3-q2)\n\n    mova             m4, m5\n    SWAP              4, 5\n    psubusb          m4, m6          ; q1-q2\n    mova     m_q2backup, m6\n    psubusb          m6, m5          ; q2-q1\n    por              m6, m4          ; abs(q2-q1)\n\n    pmaxub           m0, m1\n    pmaxub           m6, m7\n    pmaxub           m0, m6\n\n    ; normal_limit and high_edge_variance for p1-p0, q1-q0\n    SWAP              7, 3           ; now m7 is zero\n%ifidn %1, v\n    movrow           m3, [dst1q+mstrideq  ] ; p0\n%if %2 == 8\n    movhps           m3, [dst8q+mstrideq  ]\n%endif\n%elifdef m12\n    SWAP              3, 12\n%else\n    mova             m3, m_p0backup\n%endif\n\n    mova             m1, m2\n    SWAP              1, 2\n    mova             m6, m3\n    SWAP              3, 6\n    psubusb          m1, m3          ; p1-p0\n    psubusb          m6, m2          ; p0-p1\n    por              m1, m6          ; abs(p1-p0)\n    pmaxub           m0, m1          ; max_I\n    SWAP              1, 4           ; max_hev_thresh", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:23", "text": "movrow           m3, [dst1q+mstrideq  ] ; p0\n%if %2 == 8\n    movhps           m3, [dst8q+mstrideq  ]\n%endif\n%elifdef m12\n    SWAP              3, 12\n%else\n    mova             m3, m_p0backup\n%endif\n\n    mova             m1, m2\n    SWAP              1, 2\n    mova             m6, m3\n    SWAP              3, 6\n    psubusb          m1, m3          ; p1-p0\n    psubusb          m6, m2          ; p0-p1\n    por              m1, m6          ; abs(p1-p0)\n    pmaxub           m0, m1          ; max_I\n    SWAP              1, 4           ; max_hev_thresh\n\n    SWAP              6, 4           ; now m6 is I\n%ifidn %1, v\n    movrow           m4, [dst1q]     ; q0\n%if %2 == 8\n    movhps           m4, [dst8q]\n%endif\n%elifdef m8\n    SWAP              4, 8\n%else\n    mova             m4, m_q0backup\n%endif\n    mova             m1, m4\n    SWAP              1, 4\n    mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1\n    psubusb          m0, m_flimI\n    psubusb          m6, m_hevthr\n    pcmpeqb          m0, m7          ; max(abs(..)) <= I\n    pcmpeqb          m6, m7          ; !(max(abs..) > thresh)\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova      m_maskres, m6          ; !(abs(p1-p0) > hev_t || abs(q1-q0) > hev_t)\n%endif\n\n    ; simple_limit\n    mova             m1, m3\n    SWAP              1, 3\n    mova             m6, m4          ; keep copies of p0/q0 around for later use\n    SWAP              6, 4\n    psubusb          m1, m4          ; p0-q0\n    psubusb          m6, m3          ; q0-p0\n    por              m1, m6          ; abs(q0-p0)\n    paddusb          m1, m1          ; m1=2*abs(q0-p0)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:24", "text": "pmaxub           m6, m1\n    psubusb          m0, m_flimI\n    psubusb          m6, m_hevthr\n    pcmpeqb          m0, m7          ; max(abs(..)) <= I\n    pcmpeqb          m6, m7          ; !(max(abs..) > thresh)\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova      m_maskres, m6          ; !(abs(p1-p0) > hev_t || abs(q1-q0) > hev_t)\n%endif\n\n    ; simple_limit\n    mova             m1, m3\n    SWAP              1, 3\n    mova             m6, m4          ; keep copies of p0/q0 around for later use\n    SWAP              6, 4\n    psubusb          m1, m4          ; p0-q0\n    psubusb          m6, m3          ; q0-p0\n    por              m1, m6          ; abs(q0-p0)\n    paddusb          m1, m1          ; m1=2*abs(q0-p0)\n\n    mova             m7, m2\n    SWAP              7, 2\n    mova             m6, m5\n    SWAP              6, 5\n    psubusb          m7, m5          ; p1-q1\n    psubusb          m6, m2          ; q1-p1\n    por              m7, m6          ; abs(q1-p1)\n    pxor             m6, m6\n    pand             m7, [pb_FE]\n    psrlq            m7, 1           ; abs(q1-p1)/2\n    paddusb          m7, m1          ; abs(q0-p0)*2+abs(q1-p1)/2\n    psubusb          m7, m_flimE\n    pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32\n%define m_pb_80 [pb_80]\n%endif\n    mova             m1, m4\n    mova             m7, m3\n    pxor             m1, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m1, m7          ; (signed) q0-p0\n    mova             m6, m2\n    mova             m7, m5\n    pxor             m6, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m6, m7          ; (signed) p1-q1\n    mova             m7, m_maskres\n    paddsb           m6, m1\n    paddsb           m6, m1\n    paddsb           m6, m1\n    pand             m6, m0\n%ifdef m8\n    mova       m_limres, m6          ; 3*(qp-p0)+(p1-q1) masked for filter_mbedge", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:25", "text": "%else ; x86-32\n%define m_pb_80 [pb_80]\n%endif\n    mova             m1, m4\n    mova             m7, m3\n    pxor             m1, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m1, m7          ; (signed) q0-p0\n    mova             m6, m2\n    mova             m7, m5\n    pxor             m6, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m6, m7          ; (signed) p1-q1\n    mova             m7, m_maskres\n    paddsb           m6, m1\n    paddsb           m6, m1\n    paddsb           m6, m1\n    pand             m6, m0\n%ifdef m8\n    mova       m_limres, m6          ; 3*(qp-p0)+(p1-q1) masked for filter_mbedge\n    pand       m_limres, m7\n%else\n    mova             m0, m6\n    pand             m0, m7\n    mova       m_limres, m0\n%endif\n    pandn            m7, m6          ; 3*(q0-p0)+(p1-q1) masked for filter_common\n\n    mova             m1, [pb_F8]\n    mova             m6, m7\n    paddsb           m7, [pb_3]\n    paddsb           m6, [pb_4]\n    pand             m7, m1\n    pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6\n    psubb            m1, m6\n    psrlq            m6, 3           ; +f1\n    psrlq            m1, 3           ; -f1\n    pand             m1, m0\n    pandn            m0, m6\n    psubusb          m4, m0\n    paddusb          m4, m1          ; q0-f1\n\n    ; filter_mbedge (m2-m5 = p1-q1; lim_res carries w)\n%if cpuflag(ssse3)\n    mova             m7, [pb_1]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:26", "text": "psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6\n    psubb            m1, m6\n    psrlq            m6, 3           ; +f1\n    psrlq            m1, 3           ; -f1\n    pand             m1, m0\n    pandn            m0, m6\n    psubusb          m4, m0\n    paddusb          m4, m1          ; q0-f1\n\n    ; filter_mbedge (m2-m5 = p1-q1; lim_res carries w)\n%if cpuflag(ssse3)\n    mova             m7, [pb_1]\n%else\n    mova             m7, [pw_63]\n%endif\n%ifdef m8\n    SWAP              1, 8\n%else\n    mova             m1, m_limres\n%endif\n    pxor             m0, m0\n    mova             m6, m1\n    pcmpgtb          m0, m1         ; which are negative\n%if cpuflag(ssse3)\n    punpcklbw        m6, m7         ; interleave with \"1\" for rounding\n    punpckhbw        m1, m7\n%else\n    punpcklbw        m6, m0         ; signed byte->word\n    punpckhbw        m1, m0\n%endif\n    mova      m_limsign, m0\n%if cpuflag(ssse3)\n    mova             m7, [pb_27_63]\n%ifndef m8\n    mova       m_limres, m1\n%endif\n%ifdef m10\n    SWAP              0, 10         ; don't lose lim_sign copy\n%endif\n    mova             m0, m7\n    pmaddubsw        m7, m6\n    SWAP              6, 7\n    pmaddubsw        m0, m1\n    SWAP              1, 0\n%ifdef m10\n    SWAP              0, 10\n%else\n    mova             m0, m_limsign\n%endif\n%else\n    mova      m_maskres, m6         ; backup for later in filter\n    mova       m_limres, m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:27", "text": "mova             m7, [pb_27_63]\n%ifndef m8\n    mova       m_limres, m1\n%endif\n%ifdef m10\n    SWAP              0, 10         ; don't lose lim_sign copy\n%endif\n    mova             m0, m7\n    pmaddubsw        m7, m6\n    SWAP              6, 7\n    pmaddubsw        m0, m1\n    SWAP              1, 0\n%ifdef m10\n    SWAP              0, 10\n%else\n    mova             m0, m_limsign\n%endif\n%else\n    mova      m_maskres, m6         ; backup for later in filter\n    mova       m_limres, m1\n    pmullw          m6, [pw_27]\n    pmullw          m1, [pw_27]\n    paddw           m6, m7\n    paddw           m1, m7\n%endif\n    psraw           m6, 7\n    psraw           m1, 7\n    packsswb        m6, m1          ; a0\n    pxor            m1, m1\n    psubb           m1, m6\n    pand            m1, m0          ; -a0\n    pandn           m0, m6          ; +a0\n%if cpuflag(ssse3)\n    mova            m6, [pb_18_63]  ; pipelining\n%endif\n    psubusb         m3, m1\n    paddusb         m4, m1\n    paddusb         m3, m0          ; p0+a0\n    psubusb         m4, m0          ; q0-a0\n\n%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%ifdef m10\n    SWAP             0, 10\n%endif\n    mova            m0, m_limsign\n%else\n    mova            m6, m_maskres\n    mova            m1, m_limres\n    pmullw          m6, [pw_18]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:28", "text": "%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%ifdef m10\n    SWAP             0, 10\n%endif\n    mova            m0, m_limsign\n%else\n    mova            m6, m_maskres\n    mova            m1, m_limres\n    pmullw          m6, [pw_18]\n    pmullw          m1, [pw_18]\n    paddw           m6, m7\n    paddw           m1, m7\n%endif\n    mova            m0, m_limsign\n    psraw           m6, 7\n    psraw           m1, 7\n    packsswb        m6, m1          ; a1\n    pxor            m1, m1\n    psubb           m1, m6\n    pand            m1, m0          ; -a1\n    pandn           m0, m6          ; +a1\n%if cpuflag(ssse3)\n    mova            m6, [pb_9_63]\n%endif\n    psubusb         m2, m1\n    paddusb         m5, m1\n    paddusb         m2, m0          ; p1+a1\n    psubusb         m5, m0          ; q1-a1\n\n%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%else\n%ifdef m8\n    SWAP             6, 12\n    SWAP             1, 8\n%else\n    mova            m6, m_maskres\n    mova            m1, m_limres\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:29", "text": "%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%else\n%ifdef m8\n    SWAP             6, 12\n    SWAP             1, 8\n%else\n    mova            m6, m_maskres\n    mova            m1, m_limres\n%endif\n    pmullw          m6, [pw_9]\n    pmullw          m1, [pw_9]\n    paddw           m6, m7\n    paddw           m1, m7\n%endif\n%ifdef m9\n    SWAP             7, 9\n%else\n    mova            m7, m_limsign\n%endif\n    psraw           m6, 7\n    psraw           m1, 7\n    packsswb        m6, m1          ; a1\n    pxor            m0, m0\n    psubb           m0, m6\n    pand            m0, m7          ; -a1\n    pandn           m7, m6          ; +a1\n%ifdef m8\n    SWAP             1, 13\n    SWAP             6, 14\n%else\n    mova            m1, m_p2backup\n    mova            m6, m_q2backup\n%endif\n    psubusb         m1, m0\n    paddusb         m6, m0\n    paddusb         m1, m7          ; p1+a1\n    psubusb         m6, m7          ; q1-a1\n\n    ; store\n%ifidn %1, v\n    movrow [dst2q+mstrideq*4], m1\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow     [dst1q], m4\n    movrow     [dst2q], m5\n    movrow [dst2q+ strideq  ], m6\n%if %2 == 8\n    add           dst8q, mstrideq\n    movhps [dst8q+mstrideq*2], m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:30", "text": "%else\n    mova            m1, m_p2backup\n    mova            m6, m_q2backup\n%endif\n    psubusb         m1, m0\n    paddusb         m6, m0\n    paddusb         m1, m7          ; p1+a1\n    psubusb         m6, m7          ; q1-a1\n\n    ; store\n%ifidn %1, v\n    movrow [dst2q+mstrideq*4], m1\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow     [dst1q], m4\n    movrow     [dst2q], m5\n    movrow [dst2q+ strideq  ], m6\n%if %2 == 8\n    add           dst8q, mstrideq\n    movhps [dst8q+mstrideq*2], m1\n    movhps [dst8q+mstrideq  ], m2\n    movhps     [dst8q], m3\n    add          dst8q, strideq\n    movhps     [dst8q], m4\n    movhps [dst8q+ strideq  ], m5\n    movhps [dst8q+ strideq*2], m6\n%endif\n%else ; h\n    inc          dst1q\n    inc          dst2q\n\n    ; 4x8/16 transpose\n    TRANSPOSE4x4B    1, 2, 3, 4, 0\n    SBUTTERFLY      bw, 5, 6, 0\n\n    lea          dst8q, [dst8q+mstrideq+1]\n    WRITE_4x4D       1, 2, 3, 4, dst1q, dst2q, dst8q, mstrideq, strideq, %2\n    lea          dst1q, [dst2q+mstrideq+4]\n    lea          dst8q, [dst8q+mstrideq+4]\n%if cpuflag(sse4)\n    add          dst2q, 4\n%endif\n    WRITE_8W        m5, dst2q, dst1q,  mstrideq, strideq\n%if cpuflag(sse4)\n    lea          dst2q, [dst8q+ strideq  ]\n%endif\n    WRITE_8W        m6, dst2q, dst8q, mstrideq, strideq\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nMBEDGE_LOOPFILTER v, 16\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER v,  8\nMBEDGE_LOOPFILTER h,  8\n\nINIT_XMM ssse3\nMBEDGE_LOOPFILTER v, 16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:31", "text": "add          dst2q, 4\n%endif\n    WRITE_8W        m5, dst2q, dst1q,  mstrideq, strideq\n%if cpuflag(sse4)\n    lea          dst2q, [dst8q+ strideq  ]\n%endif\n    WRITE_8W        m6, dst2q, dst8q, mstrideq, strideq\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nMBEDGE_LOOPFILTER v, 16\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER v,  8\nMBEDGE_LOOPFILTER h,  8\n\nINIT_XMM ssse3\nMBEDGE_LOOPFILTER v, 16\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER v,  8\nMBEDGE_LOOPFILTER h,  8\n\nINIT_XMM sse4\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER h,  8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1201, "line_end": 1227}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:1", "text": ";******************************************************************************\n;* VP8 MMXEXT optimizations\n;* Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com>\n;* Copyright (c) 2010 Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_27:    times 8 dw 27\npw_63:    times 8 dw 63\n\npb_4:     times 16 db 4\npb_F8:    times 16 db 0xF8\npb_FE:    times 16 db 0xFE\npb_27_63: times 8 db 27, 63\npb_18_63: times 8 db 18, 63\npb_9_63:  times 8 db  9, 63\n\ncextern pb_1\ncextern pb_3\ncextern pw_9\ncextern pw_18\ncextern pb_80\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter_simple_<opt>(uint8_t *dst, ptrdiff_t stride, int flim);\n;-----------------------------------------------------------------------------\n\n; macro called with 7 mm register indexes as argument, and 5 regular registers\n; first 11 mean the same as READ_8x4_TRANSPOSED above\n; fifth regular register is scratchspace to reach the bottom 8 rows, it\n; will be set to second regular register + 8*stride at the end\n%macro READ_16x4_INTERLEAVED 12\n    ; transpose 16 (A-P) rows of 4 pixels each\n    lea           %12, [r0+8*r2]\n\n    ; read (and interleave) those addressable by %8 (=r0), A/C/D/E/I/K/L/M\n    movd          m%1, [%8+%10*4]   ; A0-3\n    movd          m%3, [%12+%10*4]  ; I0-3\n    movd          m%2, [%8+%10*2]   ; C0-3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:10", "text": "; splat function arguments\n    SPLATB_REG  m_flimE, flimEq, m7   ; E\n    SPLATB_REG  m_flimI, flimIq, m7   ; I\n    SPLATB_REG m_hevthr, hevthrq, m7  ; hev_thresh\n%endif\n\n%if %2 == 8 ; chroma\n    DEFINE_ARGS dst1, dst8, mstride, stride, dst2\n%else\n    DEFINE_ARGS dst1, mstride, stride, dst2, dst8\n%endif\n    mov         strideq, mstrideq\n    neg        mstrideq\n%ifidn %1, h\n    lea           dst1q, [dst1q+strideq*4-4]\n%if %2 == 8 ; chroma\n    lea           dst8q, [dst8q+strideq*4-4]\n%endif\n%endif\n\n    ; read\n    lea           dst2q, [dst1q+strideq]\n%ifidn %1, v\n%if %2 == 8 && mmsize == 16\n%define movrow movh\n%else\n%define movrow mova\n%endif\n    movrow           m0, [dst1q+mstrideq*4] ; p3\n    movrow           m1, [dst2q+mstrideq*4] ; p2\n    movrow           m2, [dst1q+mstrideq*2] ; p1\n    movrow           m5, [dst2q]            ; q1\n    movrow           m6, [dst2q+ strideq*1] ; q2\n    movrow           m7, [dst2q+ strideq*2] ; q3\n%if mmsize == 16 && %2 == 8\n    movhps           m0, [dst8q+mstrideq*4]\n    movhps           m2, [dst8q+mstrideq*2]\n    add           dst8q, strideq\n    movhps           m1, [dst8q+mstrideq*4]\n    movhps           m5, [dst8q]\n    movhps           m6, [dst8q+ strideq  ]\n    movhps           m7, [dst8q+ strideq*2]\n    add           dst8q, mstrideq\n%endif\n%else ; h\n%if %2 == 16\n    lea           dst8q, [dst1q+ strideq*8]\n%endif\n\n    ; read 16 rows of 8px each, interleave\n    movh             m0, [dst1q+mstrideq*4]\n    movh             m1, [dst8q+mstrideq*4]\n    movh             m2, [dst1q+mstrideq*2]\n    movh             m5, [dst8q+mstrideq*2]\n    movh             m3, [dst1q+mstrideq  ]\n    movh             m6, [dst8q+mstrideq  ]\n    movh             m4, [dst1q]\n    movh             m7, [dst8q]\n    punpcklbw        m0, m1          ; A/I\n    punpcklbw        m2, m5          ; C/K", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:13", "text": "mova             m4, m6\n    SWAP              4, 6\n    psubusb          m4, m7          ; q2-q3\n    psubusb          m7, m6          ; q3-q2\n    por              m7, m4          ; abs(q3-q2)\n\n    mova             m4, m5\n    SWAP              4, 5\n    psubusb          m4, m6          ; q1-q2\n    psubusb          m6, m5          ; q2-q1\n    por              m6, m4          ; abs(q2-q1)\n\n    pmaxub           m0, m1\n    pmaxub           m6, m7\n    pmaxub           m0, m6\n\n    ; normal_limit and high_edge_variance for p1-p0, q1-q0\n    SWAP              7, 3           ; now m7 is zero\n%ifidn %1, v\n    movrow           m3, [dst1q+mstrideq  ] ; p0\n%if mmsize == 16 && %2 == 8\n    movhps           m3, [dst8q+mstrideq  ]\n%endif\n%elifdef m12\n    SWAP              3, 12\n%else\n    mova             m3, m_p0backup\n%endif\n\n    mova             m1, m2\n    SWAP              1, 2\n    mova             m6, m3\n    SWAP              3, 6\n    psubusb          m1, m3          ; p1-p0\n    psubusb          m6, m2          ; p0-p1\n    por              m1, m6          ; abs(p1-p0)\n    pmaxub           m0, m1          ; max_I\n    SWAP              1, 4           ; max_hev_thresh\n\n    SWAP              6, 4           ; now m6 is I\n%ifidn %1, v\n    movrow           m4, [dst1q]     ; q0\n%if mmsize == 16 && %2 == 8\n    movhps           m4, [dst8q]\n%endif\n%elifdef m8\n    SWAP              4, 8\n%else\n    mova             m4, m_q0backup\n%endif\n    mova             m1, m4\n    SWAP              1, 4\n    mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:14", "text": "%ifidn %1, v\n    movrow           m4, [dst1q]     ; q0\n%if mmsize == 16 && %2 == 8\n    movhps           m4, [dst8q]\n%endif\n%elifdef m8\n    SWAP              4, 8\n%else\n    mova             m4, m_q0backup\n%endif\n    mova             m1, m4\n    SWAP              1, 4\n    mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1\n    psubusb          m0, m_flimI\n    psubusb          m6, m_hevthr\n    pcmpeqb          m0, m7          ; max(abs(..)) <= I\n    pcmpeqb          m6, m7          ; !(max(abs..) > thresh)\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova      m_maskres, m6          ; !(abs(p1-p0) > hev_t || abs(q1-q0) > hev_t)\n%endif\n\n    ; simple_limit\n    mova             m1, m3\n    SWAP              1, 3\n    mova             m6, m4          ; keep copies of p0/q0 around for later use\n    SWAP              6, 4\n    psubusb          m1, m4          ; p0-q0\n    psubusb          m6, m3          ; q0-p0\n    por              m1, m6          ; abs(q0-p0)\n    paddusb          m1, m1          ; m1=2*abs(q0-p0)\n\n    mova             m7, m2\n    SWAP              7, 2\n    mova             m6, m5\n    SWAP              6, 5\n    psubusb          m7, m5          ; p1-q1\n    psubusb          m6, m2          ; q1-p1\n    por              m7, m6          ; abs(q1-p1)\n    pxor             m6, m6\n    pand             m7, [pb_FE]\n    psrlq            m7, 1           ; abs(q1-p1)/2\n    paddusb          m7, m1          ; abs(q0-p0)*2+abs(q1-p1)/2\n    psubusb          m7, m_flimE\n    pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64 && sse2\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32 or mmx/mmxext", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:15", "text": "mova             m7, m2\n    SWAP              7, 2\n    mova             m6, m5\n    SWAP              6, 5\n    psubusb          m7, m5          ; p1-q1\n    psubusb          m6, m2          ; q1-p1\n    por              m7, m6          ; abs(q1-p1)\n    pxor             m6, m6\n    pand             m7, [pb_FE]\n    psrlq            m7, 1           ; abs(q1-p1)/2\n    paddusb          m7, m1          ; abs(q0-p0)*2+abs(q1-p1)/2\n    psubusb          m7, m_flimE\n    pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64 && sse2\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32 or mmx/mmxext\n%define m_pb_80 [pb_80]\n%endif\n    mova             m1, m4\n    mova             m7, m3\n    pxor             m1, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m1, m7          ; (signed) q0-p0\n    mova             m6, m2\n    mova             m7, m5\n    pxor             m6, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m6, m7          ; (signed) p1-q1\n    mova             m7, m_maskres\n    pandn            m7, m6\n    paddsb           m7, m1\n    paddsb           m7, m1\n    paddsb           m7, m1          ; 3*(q0-p0)+is4tap?(p1-q1)\n\n    pand             m7, m0\n    mova             m1, [pb_F8]\n    mova             m6, m7\n    paddsb           m7, [pb_3]\n    paddsb           m6, [pb_4]\n    pand             m7, m1\n    pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:16", "text": "mova             m6, m7\n    paddsb           m7, [pb_3]\n    paddsb           m6, [pb_4]\n    pand             m7, m1\n    pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6\n    psubb            m1, m6\n    psrlq            m6, 3           ; +f1\n    psrlq            m1, 3           ; -f1\n    pand             m1, m0\n    pandn            m0, m6\n    psubusb          m4, m0\n    paddusb          m4, m1          ; q0-f1\n\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova             m6, m_maskres\n%endif\n    pxor             m7, m7\n    pand             m0, m6\n    pand             m1, m6\n    psubusb          m1, [pb_1]\n    pavgb            m0, m7          ; a\n    pavgb            m1, m7          ; -a\n    psubusb          m5, m0\n    psubusb          m2, m1\n    paddusb          m5, m1          ; q1-a\n    paddusb          m2, m0          ; p1+a\n\n    ; store\n%ifidn %1, v\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow      [dst1q], m4\n    movrow [dst1q+ strideq  ], m5\n%if mmsize == 16 && %2 == 8\n    movhps [dst8q+mstrideq*2], m2\n    movhps [dst8q+mstrideq  ], m3\n    movhps      [dst8q], m4\n    movhps [dst8q+ strideq  ], m5\n%endif\n%else ; h\n    add           dst1q, 2\n    add           dst2q, 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:17", "text": "psubusb          m2, m1\n    paddusb          m5, m1          ; q1-a\n    paddusb          m2, m0          ; p1+a\n\n    ; store\n%ifidn %1, v\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow      [dst1q], m4\n    movrow [dst1q+ strideq  ], m5\n%if mmsize == 16 && %2 == 8\n    movhps [dst8q+mstrideq*2], m2\n    movhps [dst8q+mstrideq  ], m3\n    movhps      [dst8q], m4\n    movhps [dst8q+ strideq  ], m5\n%endif\n%else ; h\n    add           dst1q, 2\n    add           dst2q, 2\n\n    ; 4x8/16 transpose\n    TRANSPOSE4x4B     2, 3, 4, 5, 6\n\n    lea           dst8q, [dst8q+mstrideq  +2]\n    WRITE_4x4D        2, 3, 4, 5, dst1q, dst2q, dst8q, mstrideq, strideq, %2\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nINNER_LOOPFILTER v, 16\nINNER_LOOPFILTER h, 16\nINNER_LOOPFILTER v,  8\nINNER_LOOPFILTER h,  8\n\nINIT_XMM ssse3\nINNER_LOOPFILTER v, 16\nINNER_LOOPFILTER h, 16\nINNER_LOOPFILTER v,  8\nINNER_LOOPFILTER h,  8\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter<size>_mbedge_<opt>(uint8_t *dst, [uint8_t *v,] ptrdiff_t stride,\n;                                                int flimE, int flimI, int hev_thr);\n;-----------------------------------------------------------------------------\n\n%macro MBEDGE_LOOPFILTER 2\n%define stack_size 0\n%ifndef m8       ; stack layout: [0]=E, [1]=I, [2]=hev_thr\n%if mmsize == 16 ;               [3]=hev() result\n                 ;               [4]=filter tmp result\n                 ;               [5]/[6] = p2/q2 backup\n                 ;               [7]=lim_res sign result\n%define stack_size mmsize * -7\n%else ; 8        ; extra storage space for transposes\n%define stack_size mmsize * -8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:18", "text": "INNER_LOOPFILTER h,  8\n\n;-----------------------------------------------------------------------------\n; void ff_vp8_h/v_loop_filter<size>_mbedge_<opt>(uint8_t *dst, [uint8_t *v,] ptrdiff_t stride,\n;                                                int flimE, int flimI, int hev_thr);\n;-----------------------------------------------------------------------------\n\n%macro MBEDGE_LOOPFILTER 2\n%define stack_size 0\n%ifndef m8       ; stack layout: [0]=E, [1]=I, [2]=hev_thr\n%if mmsize == 16 ;               [3]=hev() result\n                 ;               [4]=filter tmp result\n                 ;               [5]/[6] = p2/q2 backup\n                 ;               [7]=lim_res sign result\n%define stack_size mmsize * -7\n%else ; 8        ; extra storage space for transposes\n%define stack_size mmsize * -8\n%endif\n%endif\n\n%if %2 == 8 ; chroma\ncglobal vp8_%1_loop_filter8uv_mbedge, 6, 6, 15, stack_size, dst1, dst8, stride, flimE, flimI, hevthr\n%else ; luma\ncglobal vp8_%1_loop_filter16y_mbedge, 5, 5, 15, stack_size, dst1, stride, flimE, flimI, hevthr\n%endif\n\n%if cpuflag(ssse3)\n    pxor             m7, m7\n%endif\n\n%ifndef m8\n    ; splat function arguments\n    SPLATB_REG       m0, flimEq, m7   ; E\n    SPLATB_REG       m1, flimIq, m7   ; I\n    SPLATB_REG       m2, hevthrq, m7  ; hev_thresh\n\n%define m_flimE    [rsp]\n%define m_flimI    [rsp+mmsize]\n%define m_hevthr   [rsp+mmsize*2]\n%define m_maskres  [rsp+mmsize*3]\n%define m_limres   [rsp+mmsize*4]\n%define m_p0backup [rsp+mmsize*3]\n%define m_q0backup [rsp+mmsize*4]\n%define m_p2backup [rsp+mmsize*5]\n%define m_q2backup [rsp+mmsize*6]\n%if mmsize == 16\n%define m_limsign  [rsp]\n%else\n%define m_limsign  [rsp+mmsize*7]\n%endif\n\n    mova        m_flimE, m0\n    mova        m_flimI, m1\n    mova       m_hevthr, m2\n%else ; sse2 on x86-64\n%define m_flimE    m9\n%define m_flimI    m10\n%define m_hevthr   m11\n%define m_maskres  m12\n%define m_limres   m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:19", "text": "%define m_limres   [rsp+mmsize*4]\n%define m_p0backup [rsp+mmsize*3]\n%define m_q0backup [rsp+mmsize*4]\n%define m_p2backup [rsp+mmsize*5]\n%define m_q2backup [rsp+mmsize*6]\n%if mmsize == 16\n%define m_limsign  [rsp]\n%else\n%define m_limsign  [rsp+mmsize*7]\n%endif\n\n    mova        m_flimE, m0\n    mova        m_flimI, m1\n    mova       m_hevthr, m2\n%else ; sse2 on x86-64\n%define m_flimE    m9\n%define m_flimI    m10\n%define m_hevthr   m11\n%define m_maskres  m12\n%define m_limres   m8\n%define m_p0backup m12\n%define m_q0backup m8\n%define m_p2backup m13\n%define m_q2backup m14\n%define m_limsign  m9\n\n    ; splat function arguments\n    SPLATB_REG  m_flimE, flimEq, m7   ; E\n    SPLATB_REG  m_flimI, flimIq, m7   ; I\n    SPLATB_REG m_hevthr, hevthrq, m7  ; hev_thresh\n%endif\n\n%if %2 == 8 ; chroma\n    DEFINE_ARGS dst1, dst8, mstride, stride, dst2\n%else\n    DEFINE_ARGS dst1, mstride, stride, dst2, dst8\n%endif\n    mov         strideq, mstrideq\n    neg        mstrideq\n%ifidn %1, h\n    lea           dst1q, [dst1q+strideq*4-4]\n%if %2 == 8 ; chroma\n    lea           dst8q, [dst8q+strideq*4-4]\n%endif\n%endif\n\n    ; read\n    lea           dst2q, [dst1q+ strideq  ]\n%ifidn %1, v\n%if %2 == 8 && mmsize == 16\n%define movrow movh\n%else\n%define movrow mova\n%endif\n    movrow           m0, [dst1q+mstrideq*4] ; p3\n    movrow           m1, [dst2q+mstrideq*4] ; p2\n    movrow           m2, [dst1q+mstrideq*2] ; p1\n    movrow           m5, [dst2q]            ; q1\n    movrow           m6, [dst2q+ strideq  ] ; q2\n    movrow           m7, [dst2q+ strideq*2] ; q3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:20", "text": "lea           dst1q, [dst1q+strideq*4-4]\n%if %2 == 8 ; chroma\n    lea           dst8q, [dst8q+strideq*4-4]\n%endif\n%endif\n\n    ; read\n    lea           dst2q, [dst1q+ strideq  ]\n%ifidn %1, v\n%if %2 == 8 && mmsize == 16\n%define movrow movh\n%else\n%define movrow mova\n%endif\n    movrow           m0, [dst1q+mstrideq*4] ; p3\n    movrow           m1, [dst2q+mstrideq*4] ; p2\n    movrow           m2, [dst1q+mstrideq*2] ; p1\n    movrow           m5, [dst2q]            ; q1\n    movrow           m6, [dst2q+ strideq  ] ; q2\n    movrow           m7, [dst2q+ strideq*2] ; q3\n%if mmsize == 16 && %2 == 8\n    movhps           m0, [dst8q+mstrideq*4]\n    movhps           m2, [dst8q+mstrideq*2]\n    add           dst8q, strideq\n    movhps           m1, [dst8q+mstrideq*4]\n    movhps           m5, [dst8q]\n    movhps           m6, [dst8q+ strideq  ]\n    movhps           m7, [dst8q+ strideq*2]\n    add           dst8q, mstrideq\n%endif\n%else ; h\n%if %2 == 16\n    lea           dst8q, [dst1q+ strideq*8  ]\n%endif\n\n    ; read 16 rows of 8px each, interleave\n    movh             m0, [dst1q+mstrideq*4]\n    movh             m1, [dst8q+mstrideq*4]\n    movh             m2, [dst1q+mstrideq*2]\n    movh             m5, [dst8q+mstrideq*2]\n    movh             m3, [dst1q+mstrideq  ]\n    movh             m6, [dst8q+mstrideq  ]\n    movh             m4, [dst1q]\n    movh             m7, [dst8q]\n    punpcklbw        m0, m1          ; A/I\n    punpcklbw        m2, m5          ; C/K\n    punpcklbw        m3, m6          ; D/L\n    punpcklbw        m4, m7          ; E/M\n\n    add           dst8q, strideq\n    movh             m1, [dst2q+mstrideq*4]\n    movh             m6, [dst8q+mstrideq*4]\n    movh             m5, [dst2q]\n    movh             m7, [dst8q]\n    punpcklbw        m1, m6          ; B/J\n    punpcklbw        m5, m7          ; F/N\n    movh             m6, [dst2q+ strideq  ]\n    movh             m7, [dst8q+ strideq  ]\n    punpcklbw        m6, m7          ; G/O", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:21", "text": "movh             m3, [dst1q+mstrideq  ]\n    movh             m6, [dst8q+mstrideq  ]\n    movh             m4, [dst1q]\n    movh             m7, [dst8q]\n    punpcklbw        m0, m1          ; A/I\n    punpcklbw        m2, m5          ; C/K\n    punpcklbw        m3, m6          ; D/L\n    punpcklbw        m4, m7          ; E/M\n\n    add           dst8q, strideq\n    movh             m1, [dst2q+mstrideq*4]\n    movh             m6, [dst8q+mstrideq*4]\n    movh             m5, [dst2q]\n    movh             m7, [dst8q]\n    punpcklbw        m1, m6          ; B/J\n    punpcklbw        m5, m7          ; F/N\n    movh             m6, [dst2q+ strideq  ]\n    movh             m7, [dst8q+ strideq  ]\n    punpcklbw        m6, m7          ; G/O\n\n    ; 8x16 transpose\n    TRANSPOSE4x4B     0, 1, 2, 3, 7\n%ifdef m8\n    SWAP              1, 8\n%else\n    mova     m_q0backup, m1\n%endif\n    movh             m7, [dst2q+ strideq*2]\n    movh             m1, [dst8q+ strideq*2]\n    punpcklbw        m7, m1          ; H/P\n    TRANSPOSE4x4B     4, 5, 6, 7, 1\n    SBUTTERFLY       dq, 0, 4, 1     ; p3/p2\n    SBUTTERFLY       dq, 2, 6, 1     ; q0/q1\n    SBUTTERFLY       dq, 3, 7, 1     ; q2/q3\n%ifdef m8\n    SWAP              1, 8\n    SWAP              2, 8\n%else\n    mova             m1, m_q0backup\n    mova     m_q0backup, m2          ; store q0\n%endif\n    SBUTTERFLY       dq, 1, 5, 2     ; p1/p0\n%ifdef m12\n    SWAP              5, 12\n%else\n    mova     m_p0backup, m5          ; store p0\n%endif\n    SWAP              1, 4\n    SWAP              2, 4\n    SWAP              6, 3\n    SWAP              5, 3\n%endif\n\n    ; normal_limit for p3-p2, p2-p1, q3-q2 and q2-q1\n    mova             m4, m1\n    SWAP              4, 1\n    psubusb          m4, m0          ; p2-p3\n    psubusb          m0, m1          ; p3-p2\n    por              m0, m4          ; abs(p3-p2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:22", "text": "%endif\n    SBUTTERFLY       dq, 1, 5, 2     ; p1/p0\n%ifdef m12\n    SWAP              5, 12\n%else\n    mova     m_p0backup, m5          ; store p0\n%endif\n    SWAP              1, 4\n    SWAP              2, 4\n    SWAP              6, 3\n    SWAP              5, 3\n%endif\n\n    ; normal_limit for p3-p2, p2-p1, q3-q2 and q2-q1\n    mova             m4, m1\n    SWAP              4, 1\n    psubusb          m4, m0          ; p2-p3\n    psubusb          m0, m1          ; p3-p2\n    por              m0, m4          ; abs(p3-p2)\n\n    mova             m4, m2\n    SWAP              4, 2\n    psubusb          m4, m1          ; p1-p2\n    mova     m_p2backup, m1\n    psubusb          m1, m2          ; p2-p1\n    por              m1, m4          ; abs(p2-p1)\n\n    mova             m4, m6\n    SWAP              4, 6\n    psubusb          m4, m7          ; q2-q3\n    psubusb          m7, m6          ; q3-q2\n    por              m7, m4          ; abs(q3-q2)\n\n    mova             m4, m5\n    SWAP              4, 5\n    psubusb          m4, m6          ; q1-q2\n    mova     m_q2backup, m6\n    psubusb          m6, m5          ; q2-q1\n    por              m6, m4          ; abs(q2-q1)\n\n    pmaxub           m0, m1\n    pmaxub           m6, m7\n    pmaxub           m0, m6\n\n    ; normal_limit and high_edge_variance for p1-p0, q1-q0\n    SWAP              7, 3           ; now m7 is zero\n%ifidn %1, v\n    movrow           m3, [dst1q+mstrideq  ] ; p0\n%if mmsize == 16 && %2 == 8\n    movhps           m3, [dst8q+mstrideq  ]\n%endif\n%elifdef m12\n    SWAP              3, 12\n%else\n    mova             m3, m_p0backup\n%endif\n\n    mova             m1, m2\n    SWAP              1, 2\n    mova             m6, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:23", "text": "pmaxub           m0, m1\n    pmaxub           m6, m7\n    pmaxub           m0, m6\n\n    ; normal_limit and high_edge_variance for p1-p0, q1-q0\n    SWAP              7, 3           ; now m7 is zero\n%ifidn %1, v\n    movrow           m3, [dst1q+mstrideq  ] ; p0\n%if mmsize == 16 && %2 == 8\n    movhps           m3, [dst8q+mstrideq  ]\n%endif\n%elifdef m12\n    SWAP              3, 12\n%else\n    mova             m3, m_p0backup\n%endif\n\n    mova             m1, m2\n    SWAP              1, 2\n    mova             m6, m3\n    SWAP              3, 6\n    psubusb          m1, m3          ; p1-p0\n    psubusb          m6, m2          ; p0-p1\n    por              m1, m6          ; abs(p1-p0)\n    pmaxub           m0, m1          ; max_I\n    SWAP              1, 4           ; max_hev_thresh\n\n    SWAP              6, 4           ; now m6 is I\n%ifidn %1, v\n    movrow           m4, [dst1q]     ; q0\n%if mmsize == 16 && %2 == 8\n    movhps           m4, [dst8q]\n%endif\n%elifdef m8\n    SWAP              4, 8\n%else\n    mova             m4, m_q0backup\n%endif\n    mova             m1, m4\n    SWAP              1, 4\n    mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1\n    psubusb          m0, m_flimI\n    psubusb          m6, m_hevthr\n    pcmpeqb          m0, m7          ; max(abs(..)) <= I\n    pcmpeqb          m6, m7          ; !(max(abs..) > thresh)\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova      m_maskres, m6          ; !(abs(p1-p0) > hev_t || abs(q1-q0) > hev_t)\n%endif\n\n    ; simple_limit\n    mova             m1, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:24", "text": "mova             m7, m5\n    SWAP              7, 5\n    psubusb          m1, m5          ; q0-q1\n    psubusb          m7, m4          ; q1-q0\n    por              m1, m7          ; abs(q1-q0)\n    pxor             m7, m7\n    pmaxub           m0, m1\n    pmaxub           m6, m1\n    psubusb          m0, m_flimI\n    psubusb          m6, m_hevthr\n    pcmpeqb          m0, m7          ; max(abs(..)) <= I\n    pcmpeqb          m6, m7          ; !(max(abs..) > thresh)\n%ifdef m12\n    SWAP              6, 12\n%else\n    mova      m_maskres, m6          ; !(abs(p1-p0) > hev_t || abs(q1-q0) > hev_t)\n%endif\n\n    ; simple_limit\n    mova             m1, m3\n    SWAP              1, 3\n    mova             m6, m4          ; keep copies of p0/q0 around for later use\n    SWAP              6, 4\n    psubusb          m1, m4          ; p0-q0\n    psubusb          m6, m3          ; q0-p0\n    por              m1, m6          ; abs(q0-p0)\n    paddusb          m1, m1          ; m1=2*abs(q0-p0)\n\n    mova             m7, m2\n    SWAP              7, 2\n    mova             m6, m5\n    SWAP              6, 5\n    psubusb          m7, m5          ; p1-q1\n    psubusb          m6, m2          ; q1-p1\n    por              m7, m6          ; abs(q1-p1)\n    pxor             m6, m6\n    pand             m7, [pb_FE]\n    psrlq            m7, 1           ; abs(q1-p1)/2\n    paddusb          m7, m1          ; abs(q0-p0)*2+abs(q1-p1)/2\n    psubusb          m7, m_flimE\n    pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64 && sse2\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32 or mmx/mmxext\n%define m_pb_80 [pb_80]\n%endif\n    mova             m1, m4\n    mova             m7, m3\n    pxor             m1, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m1, m7          ; (signed) q0-p0\n    mova             m6, m2\n    mova             m7, m5\n    pxor             m6, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m6, m7          ; (signed) p1-q1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:25", "text": "pcmpeqb          m7, m6          ; abs(q0-p0)*2+abs(q1-p1)/2 <= E\n    pand             m0, m7          ; normal_limit result\n\n    ; filter_common; at this point, m2-m5=p1-q1 and m0 is filter_mask\n%ifdef m8 ; x86-64 && sse2\n    mova             m8, [pb_80]\n%define m_pb_80 m8\n%else ; x86-32 or mmx/mmxext\n%define m_pb_80 [pb_80]\n%endif\n    mova             m1, m4\n    mova             m7, m3\n    pxor             m1, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m1, m7          ; (signed) q0-p0\n    mova             m6, m2\n    mova             m7, m5\n    pxor             m6, m_pb_80\n    pxor             m7, m_pb_80\n    psubsb           m6, m7          ; (signed) p1-q1\n    mova             m7, m_maskres\n    paddsb           m6, m1\n    paddsb           m6, m1\n    paddsb           m6, m1\n    pand             m6, m0\n%ifdef m8\n    mova       m_limres, m6          ; 3*(qp-p0)+(p1-q1) masked for filter_mbedge\n    pand       m_limres, m7\n%else\n    mova             m0, m6\n    pand             m0, m7\n    mova       m_limres, m0\n%endif\n    pandn            m7, m6          ; 3*(q0-p0)+(p1-q1) masked for filter_common\n\n    mova             m1, [pb_F8]\n    mova             m6, m7\n    paddsb           m7, [pb_3]\n    paddsb           m6, [pb_4]\n    pand             m7, m1\n    pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6\n    psubb            m1, m6\n    psrlq            m6, 3           ; +f1\n    psrlq            m1, 3           ; -f1\n    pand             m1, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:26", "text": "pand             m6, m1\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m1, m7\n    psubb            m0, m7\n    psrlq            m7, 3           ; +f2\n    psrlq            m0, 3           ; -f2\n    pand             m0, m1\n    pandn            m1, m7\n    psubusb          m3, m0\n    paddusb          m3, m1          ; p0+f2\n\n    pxor             m1, m1\n    pxor             m0, m0\n    pcmpgtb          m0, m6\n    psubb            m1, m6\n    psrlq            m6, 3           ; +f1\n    psrlq            m1, 3           ; -f1\n    pand             m1, m0\n    pandn            m0, m6\n    psubusb          m4, m0\n    paddusb          m4, m1          ; q0-f1\n\n    ; filter_mbedge (m2-m5 = p1-q1; lim_res carries w)\n%if cpuflag(ssse3)\n    mova             m7, [pb_1]\n%else\n    mova             m7, [pw_63]\n%endif\n%ifdef m8\n    SWAP              1, 8\n%else\n    mova             m1, m_limres\n%endif\n    pxor             m0, m0\n    mova             m6, m1\n    pcmpgtb          m0, m1         ; which are negative\n%if cpuflag(ssse3)\n    punpcklbw        m6, m7         ; interleave with \"1\" for rounding\n    punpckhbw        m1, m7\n%else\n    punpcklbw        m6, m0         ; signed byte->word\n    punpckhbw        m1, m0\n%endif\n    mova      m_limsign, m0\n%if cpuflag(ssse3)\n    mova             m7, [pb_27_63]\n%ifndef m8\n    mova       m_limres, m1\n%endif\n%ifdef m10\n    SWAP              0, 10         ; don't lose lim_sign copy\n%endif\n    mova             m0, m7\n    pmaddubsw        m7, m6\n    SWAP              6, 7\n    pmaddubsw        m0, m1\n    SWAP              1, 0\n%ifdef m10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:27", "text": "punpckhbw        m1, m7\n%else\n    punpcklbw        m6, m0         ; signed byte->word\n    punpckhbw        m1, m0\n%endif\n    mova      m_limsign, m0\n%if cpuflag(ssse3)\n    mova             m7, [pb_27_63]\n%ifndef m8\n    mova       m_limres, m1\n%endif\n%ifdef m10\n    SWAP              0, 10         ; don't lose lim_sign copy\n%endif\n    mova             m0, m7\n    pmaddubsw        m7, m6\n    SWAP              6, 7\n    pmaddubsw        m0, m1\n    SWAP              1, 0\n%ifdef m10\n    SWAP              0, 10\n%else\n    mova             m0, m_limsign\n%endif\n%else\n    mova      m_maskres, m6         ; backup for later in filter\n    mova       m_limres, m1\n    pmullw          m6, [pw_27]\n    pmullw          m1, [pw_27]\n    paddw           m6, m7\n    paddw           m1, m7\n%endif\n    psraw           m6, 7\n    psraw           m1, 7\n    packsswb        m6, m1          ; a0\n    pxor            m1, m1\n    psubb           m1, m6\n    pand            m1, m0          ; -a0\n    pandn           m0, m6          ; +a0\n%if cpuflag(ssse3)\n    mova            m6, [pb_18_63]  ; pipelining\n%endif\n    psubusb         m3, m1\n    paddusb         m4, m1\n    paddusb         m3, m0          ; p0+a0\n    psubusb         m4, m0          ; q0-a0\n\n%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%ifdef m10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:28", "text": "mova            m6, [pb_18_63]  ; pipelining\n%endif\n    psubusb         m3, m1\n    paddusb         m4, m1\n    paddusb         m3, m0          ; p0+a0\n    psubusb         m4, m0          ; q0-a0\n\n%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%ifdef m10\n    SWAP             0, 10\n%endif\n    mova            m0, m_limsign\n%else\n    mova            m6, m_maskres\n    mova            m1, m_limres\n    pmullw          m6, [pw_18]\n    pmullw          m1, [pw_18]\n    paddw           m6, m7\n    paddw           m1, m7\n%endif\n    mova            m0, m_limsign\n    psraw           m6, 7\n    psraw           m1, 7\n    packsswb        m6, m1          ; a1\n    pxor            m1, m1\n    psubb           m1, m6\n    pand            m1, m0          ; -a1\n    pandn           m0, m6          ; +a1\n%if cpuflag(ssse3)\n    mova            m6, [pb_9_63]\n%endif\n    psubusb         m2, m1\n    paddusb         m5, m1\n    paddusb         m2, m0          ; p1+a1\n    psubusb         m5, m0          ; q1-a1\n\n%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:29", "text": "mova            m6, [pb_9_63]\n%endif\n    psubusb         m2, m1\n    paddusb         m5, m1\n    paddusb         m2, m0          ; p1+a1\n    psubusb         m5, m0          ; q1-a1\n\n%if cpuflag(ssse3)\n    SWAP             6, 7\n%ifdef m10\n    SWAP             1, 10\n%else\n    mova            m1, m_limres\n%endif\n    mova            m0, m7\n    pmaddubsw       m7, m6\n    SWAP             6, 7\n    pmaddubsw       m0, m1\n    SWAP             1, 0\n%else\n%ifdef m8\n    SWAP             6, 12\n    SWAP             1, 8\n%else\n    mova            m6, m_maskres\n    mova            m1, m_limres\n%endif\n    pmullw          m6, [pw_9]\n    pmullw          m1, [pw_9]\n    paddw           m6, m7\n    paddw           m1, m7\n%endif\n%ifdef m9\n    SWAP             7, 9\n%else\n    mova            m7, m_limsign\n%endif\n    psraw           m6, 7\n    psraw           m1, 7\n    packsswb        m6, m1          ; a1\n    pxor            m0, m0\n    psubb           m0, m6\n    pand            m0, m7          ; -a1\n    pandn           m7, m6          ; +a1\n%ifdef m8\n    SWAP             1, 13\n    SWAP             6, 14\n%else\n    mova            m1, m_p2backup\n    mova            m6, m_q2backup\n%endif\n    psubusb         m1, m0\n    paddusb         m6, m0\n    paddusb         m1, m7          ; p1+a1\n    psubusb         m6, m7          ; q1-a1\n\n    ; store\n%ifidn %1, v\n    movrow [dst2q+mstrideq*4], m1\n    movrow [dst1q+mstrideq*2], m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:30", "text": "pxor            m0, m0\n    psubb           m0, m6\n    pand            m0, m7          ; -a1\n    pandn           m7, m6          ; +a1\n%ifdef m8\n    SWAP             1, 13\n    SWAP             6, 14\n%else\n    mova            m1, m_p2backup\n    mova            m6, m_q2backup\n%endif\n    psubusb         m1, m0\n    paddusb         m6, m0\n    paddusb         m1, m7          ; p1+a1\n    psubusb         m6, m7          ; q1-a1\n\n    ; store\n%ifidn %1, v\n    movrow [dst2q+mstrideq*4], m1\n    movrow [dst1q+mstrideq*2], m2\n    movrow [dst1q+mstrideq  ], m3\n    movrow     [dst1q], m4\n    movrow     [dst2q], m5\n    movrow [dst2q+ strideq  ], m6\n%if mmsize == 16 && %2 == 8\n    add           dst8q, mstrideq\n    movhps [dst8q+mstrideq*2], m1\n    movhps [dst8q+mstrideq  ], m2\n    movhps     [dst8q], m3\n    add          dst8q, strideq\n    movhps     [dst8q], m4\n    movhps [dst8q+ strideq  ], m5\n    movhps [dst8q+ strideq*2], m6\n%endif\n%else ; h\n    inc          dst1q\n    inc          dst2q\n\n    ; 4x8/16 transpose\n    TRANSPOSE4x4B    1, 2, 3, 4, 0\n    SBUTTERFLY      bw, 5, 6, 0\n\n    lea          dst8q, [dst8q+mstrideq+1]\n    WRITE_4x4D       1, 2, 3, 4, dst1q, dst2q, dst8q, mstrideq, strideq, %2\n    lea          dst1q, [dst2q+mstrideq+4]\n    lea          dst8q, [dst8q+mstrideq+4]\n%if cpuflag(sse4)\n    add          dst2q, 4\n%endif\n    WRITE_8W        m5, dst2q, dst1q,  mstrideq, strideq\n%if cpuflag(sse4)\n    lea          dst2q, [dst8q+ strideq  ]\n%endif\n    WRITE_8W        m6, dst2q, dst8q, mstrideq, strideq\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp8dsp_loopfilter.asm:31", "text": "SBUTTERFLY      bw, 5, 6, 0\n\n    lea          dst8q, [dst8q+mstrideq+1]\n    WRITE_4x4D       1, 2, 3, 4, dst1q, dst2q, dst8q, mstrideq, strideq, %2\n    lea          dst1q, [dst2q+mstrideq+4]\n    lea          dst8q, [dst8q+mstrideq+4]\n%if cpuflag(sse4)\n    add          dst2q, 4\n%endif\n    WRITE_8W        m5, dst2q, dst1q,  mstrideq, strideq\n%if cpuflag(sse4)\n    lea          dst2q, [dst8q+ strideq  ]\n%endif\n    WRITE_8W        m6, dst2q, dst8q, mstrideq, strideq\n%endif\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nMBEDGE_LOOPFILTER v, 16\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER v,  8\nMBEDGE_LOOPFILTER h,  8\n\nINIT_XMM ssse3\nMBEDGE_LOOPFILTER v, 16\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER v,  8\nMBEDGE_LOOPFILTER h,  8\n\nINIT_XMM sse4\nMBEDGE_LOOPFILTER h, 16\nMBEDGE_LOOPFILTER h,  8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp8dsp_loopfilter.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp8dsp_loopfilter.asm", "line_start": 1201, "line_end": 1234}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:1", "text": ";******************************************************************************\n;* VP9 IDCT SIMD optimizations\n;*\n;* Copyright (C) 2025 Two Orioles, LLC\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64 && HAVE_AVX512ICL_EXTERNAL\n\nSECTION_RODATA 64\n\n; The following set of constants are ordered to form the\n; qword shuffle mask { 0,  2,  4,  6,  1,  3,  5,  7 }\n%define deintq_perm pd_5520\npd_5520:     dd 5520\npd_9760:     dd 9760\npd_10394:    dd 10394\npd_15426:    dd 15426\npd_804:      dd 804\npd_2404:     dd 2404\npd_6270:     dd 6270\npd_9102:     dd 9102\npd_11585:    dd 11585\npd_12665:    dd 12665\npd_7723:     dd 7723\npd_14811:    dd 14811\npd_7005:     dd 7005\npd_14053:    dd 14053\npd_8423:     dd 8423\npd_13623:    dd 13623\n\npixel_clip:  times 2 dw 0x7c00\npixel_clip6: dd 2031648 ; 32 + (pixel_clip << 6)\npd_532480:   dd 532480  ; 8192 + (32 << 14)\npd_8192:     dd 8192\n\npd_1606:     dd 1606\npd_3196:     dd 3196\npd_3981:     dd 3981\npd_4756:     dd 4756\npd_11003:    dd 11003\npd_12140:    dd 12140\npd_13160:    dd 13160", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:2", "text": "pd_12665:    dd 12665\npd_7723:     dd 7723\npd_14811:    dd 14811\npd_7005:     dd 7005\npd_14053:    dd 14053\npd_8423:     dd 8423\npd_13623:    dd 13623\n\npixel_clip:  times 2 dw 0x7c00\npixel_clip6: dd 2031648 ; 32 + (pixel_clip << 6)\npd_532480:   dd 532480  ; 8192 + (32 << 14)\npd_8192:     dd 8192\n\npd_1606:     dd 1606\npd_3196:     dd 3196\npd_3981:     dd 3981\npd_4756:     dd 4756\npd_11003:    dd 11003\npd_12140:    dd 12140\npd_13160:    dd 13160\npd_14449:    dd 14449\npd_15137:    dd 15137\npd_15679:    dd 15679\npd_15893:    dd 15893\npd_16069:    dd 16069\npd_16207:    dd 16207\npd_16305:    dd 16305\npd_16364:    dd 16364\n\nSECTION .text\n\n%define o_base (deintq_perm+128)\n%define o(x) (r5 - o_base + (x))\n%define m(x) mangle(private_prefix %+ _ %+ x %+ SUFFIX)\n\n; dst1 = (src1 * coef1 - src2 * coef2 + rnd) >> 12\n; dst2 = (src1 * coef2 + src2 * coef1 + rnd) >> 12\n; skip round/shift if rnd is not a number\n%macro ITX_MULSUB_2D 8-9 0 ; dst/src[1-2], tmp[1-3], rnd, coef[1-2], inv_dst2\n%if %8 < 32\n    pmulld              m%4, m%1, m%8\n    pmulld              m%3, m%2, m%8\n%else\n    vpbroadcastd        m%3, [o(pd_%8)]\n    pmulld              m%4, m%1, m%3\n    pmulld              m%3, m%2\n%endif\n%if %7 < 32\n    pmulld              m%1, m%7\n    pmulld              m%2, m%7\n%else\n    vpbroadcastd        m%5, [o(pd_%7)]\n    pmulld              m%1, m%5\n    pmulld              m%2, m%5\n%endif\n%if %9\n    psubd               m%4, m%6, m%4\n    psubd               m%2, m%4, m%2\n%else\n%ifnum %6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:3", "text": "pmulld              m%4, m%1, m%8\n    pmulld              m%3, m%2, m%8\n%else\n    vpbroadcastd        m%3, [o(pd_%8)]\n    pmulld              m%4, m%1, m%3\n    pmulld              m%3, m%2\n%endif\n%if %7 < 32\n    pmulld              m%1, m%7\n    pmulld              m%2, m%7\n%else\n    vpbroadcastd        m%5, [o(pd_%7)]\n    pmulld              m%1, m%5\n    pmulld              m%2, m%5\n%endif\n%if %9\n    psubd               m%4, m%6, m%4\n    psubd               m%2, m%4, m%2\n%else\n%ifnum %6\n    paddd               m%4, m%6\n%endif\n    paddd               m%2, m%4\n%endif\n%ifnum %6\n    paddd               m%1, m%6\n%endif\n    psubd               m%1, m%3\n%ifnum %6\n    psrad               m%2, 14\n    psrad               m%1, 14\n%endif\n%endmacro\n\n%macro WRAP_YMM 1+\n    INIT_YMM cpuname\n    %1\n    INIT_ZMM cpuname\n%endmacro\n\n%macro TRANSPOSE_4D 5 ; in[1-4], tmp\n    punpckhdq           m%5, m%3, m%4 ; c2 d2 c3 d3\n    punpckldq           m%3, m%4      ; c0 d0 c1 d1\n    punpckhdq           m%4, m%1, m%2 ; a2 b2 a3 b3\n    punpckldq           m%1, m%2      ; a0 b0 a1 b1\n    punpckhqdq          m%2, m%1, m%3 ; a1 b1 c1 d1\n    punpcklqdq          m%1, m%3      ; a0 b0 c0 d0\n    punpcklqdq          m%3, m%4, m%5 ; a2 b2 c2 d2\n    punpckhqdq          m%4, m%5      ; a3 b3 c3 d3\n%endmacro\n\n%macro TRANSPOSE_4DQ 5 ; in[1-4], tmp\n    vshufi32x4          m%5, m%3, m%4, q3232 ; c2 c3 d2 d3\n    vinserti32x8        m%3, ym%4, 1         ; c0 c1 d0 d1\n    vshufi32x4          m%4, m%1, m%2, q3232 ; a2 a3 b2 b3\n    vinserti32x8        m%1, ym%2, 1         ; a0 a1 b0 b1\n    vshufi32x4          m%2, m%1, m%3, q3131 ; a1 b1 c1 d1\n    vshufi32x4          m%1, m%3, q2020      ; a0 b0 c0 d0\n    vshufi32x4          m%3, m%4, m%5, q2020 ; a2 b2 c2 d2\n    vshufi32x4          m%4, m%5, q3131      ; a3 b3 c3 d3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:4", "text": "%macro TRANSPOSE_4D 5 ; in[1-4], tmp\n    punpckhdq           m%5, m%3, m%4 ; c2 d2 c3 d3\n    punpckldq           m%3, m%4      ; c0 d0 c1 d1\n    punpckhdq           m%4, m%1, m%2 ; a2 b2 a3 b3\n    punpckldq           m%1, m%2      ; a0 b0 a1 b1\n    punpckhqdq          m%2, m%1, m%3 ; a1 b1 c1 d1\n    punpcklqdq          m%1, m%3      ; a0 b0 c0 d0\n    punpcklqdq          m%3, m%4, m%5 ; a2 b2 c2 d2\n    punpckhqdq          m%4, m%5      ; a3 b3 c3 d3\n%endmacro\n\n%macro TRANSPOSE_4DQ 5 ; in[1-4], tmp\n    vshufi32x4          m%5, m%3, m%4, q3232 ; c2 c3 d2 d3\n    vinserti32x8        m%3, ym%4, 1         ; c0 c1 d0 d1\n    vshufi32x4          m%4, m%1, m%2, q3232 ; a2 a3 b2 b3\n    vinserti32x8        m%1, ym%2, 1         ; a0 a1 b0 b1\n    vshufi32x4          m%2, m%1, m%3, q3131 ; a1 b1 c1 d1\n    vshufi32x4          m%1, m%3, q2020      ; a0 b0 c0 d0\n    vshufi32x4          m%3, m%4, m%5, q2020 ; a2 b2 c2 d2\n    vshufi32x4          m%4, m%5, q3131      ; a3 b3 c3 d3\n%endmacro\n\n%macro INV_TXFM_FN 3-4 0 ; type1, type2, size, eob_offset\ncglobal vp9_i%1_i%2_%3_add_10, 4, 5, 0, dst, stride, c, eob, tx2\n    %define %%p1 m(vp9_i%1_%3_internal_10)\n    lea                  r5, [o_base]\n    ; Jump to the 1st txfm function if we're not taking the fast path, which\n    ; in turn performs an indirect jump to the 2nd txfm function.\n    lea                tx2q, [m(vp9_i%2_%3_internal_10).pass2]\n%ifidn %1_%2, dct_dct\n    dec                eobd\n    jnz %%p1\n%else\n%if %4\n    add                eobd, %4\n%endif\n    ; jump to the 1st txfm function unless it's located directly after this\n    times ((%%end - %%p1) >> 31) & 1 jmp %%p1\nALIGN function_align\n%%end:\n%endif\n%endmacro\n\n%macro INV_TXFM_16X16_FN 2-3 0 ; type1, type2, eob_offset\n    INV_TXFM_FN          %1, %2, 16x16, %3\n%ifidn %1_%2, dct_dct\n    imul                r6d, [cq], 11585\n    vpbroadcastd        ym3, [o(pixel_clip)]\n    mov                [cq], r3d\n    add                 r6d, 8192\n    sar                 r6d, 14\n    imul                r6d, 11585\n    or                  r3d, 8\n    add                 r6d, 532480\n    sar                 r6d, 20\n    vpbroadcastw        ym2, r6d\n    paddsw              ym2, ym3\n.dconly_loop:\n    paddsw              ym0, ym2, [dstq+strideq*0]\n    paddsw              ym1, ym2, [dstq+strideq*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:5", "text": "%endif\n%endmacro\n\n%macro INV_TXFM_16X16_FN 2-3 0 ; type1, type2, eob_offset\n    INV_TXFM_FN          %1, %2, 16x16, %3\n%ifidn %1_%2, dct_dct\n    imul                r6d, [cq], 11585\n    vpbroadcastd        ym3, [o(pixel_clip)]\n    mov                [cq], r3d\n    add                 r6d, 8192\n    sar                 r6d, 14\n    imul                r6d, 11585\n    or                  r3d, 8\n    add                 r6d, 532480\n    sar                 r6d, 20\n    vpbroadcastw        ym2, r6d\n    paddsw              ym2, ym3\n.dconly_loop:\n    paddsw              ym0, ym2, [dstq+strideq*0]\n    paddsw              ym1, ym2, [dstq+strideq*1]\n    psubusw             ym0, ym3\n    psubusw             ym1, ym3\n    mova   [dstq+strideq*0], ym0\n    mova   [dstq+strideq*1], ym1\n    lea                dstq, [dstq+strideq*2]\n    dec                 r3d\n    jg .dconly_loop\n    RET\n%endif\n%endmacro\n\n%macro IDCT16_PART1 0\n%if mmsize == 64\n.main_part1_fast:\n%endif\n    pmulld              m15, m1, [o(pd_16305)] {bcstd} ; t15a\n    pmulld               m1, [o(pd_1606)] {bcstd}      ; t8a\n    pmulld               m9, m7, [o(pd_10394)] {bcstd} ; t9a\n    pmulld               m7, [o(pd_12665)] {bcstd}     ; t14a\n    pmulld              m11, m5, [o(pd_14449)] {bcstd} ; t13a\n    pmulld               m5, [o(pd_7723)] {bcstd}      ; t10a\n    pmulld              m13, m3, [o(pd_4756)] {bcstd}  ; t11a\n    pmulld               m3, [o(pd_15679)] {bcstd}     ; t12a\n    pmulld              m10, m6, [o(pd_9102)] {bcstd}  ; t5a\n    pmulld               m6, [o(pd_13623)] {bcstd}     ; t6a\n    pmulld              m14, m2, [o(pd_16069)] {bcstd} ; t7a\n    pmulld               m2, [o(pd_3196)] {bcstd}      ; t4a\n    pmulld              m12, m4, [o(pd_15137)] {bcstd} ; t3\n    pmulld               m4, [o(pd_6270)] {bcstd}      ; t2\n    pmulld               m0, m21\n    REPX  {psubd x, m20, x}, m9, m13, m10\n    paddd                m0, m20\n    mova                m18, m0\n%if mmsize == 64 ; for the ymm variant we only ever use the fast path\n    jmp %%main_part1b\n.main_part1:\n    ITX_MULSUB_2D         1, 15, 16, 17, 18, _,  1606, 16305 ; t8a,  t15a\n    ITX_MULSUB_2D         9,  7, 16, 17, 18, _, 12665, 10394 ; t9a,  t14a\n    ITX_MULSUB_2D         5, 11, 16, 17, 18, _,  7723, 14449 ; t10a, t13a\n    ITX_MULSUB_2D        13,  3, 16, 17, 18, _, 15679,  4756 ; t11a, t12a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:6", "text": "pmulld               m5, [o(pd_7723)] {bcstd}      ; t10a\n    pmulld              m13, m3, [o(pd_4756)] {bcstd}  ; t11a\n    pmulld               m3, [o(pd_15679)] {bcstd}     ; t12a\n    pmulld              m10, m6, [o(pd_9102)] {bcstd}  ; t5a\n    pmulld               m6, [o(pd_13623)] {bcstd}     ; t6a\n    pmulld              m14, m2, [o(pd_16069)] {bcstd} ; t7a\n    pmulld               m2, [o(pd_3196)] {bcstd}      ; t4a\n    pmulld              m12, m4, [o(pd_15137)] {bcstd} ; t3\n    pmulld               m4, [o(pd_6270)] {bcstd}      ; t2\n    pmulld               m0, m21\n    REPX  {psubd x, m20, x}, m9, m13, m10\n    paddd                m0, m20\n    mova                m18, m0\n%if mmsize == 64 ; for the ymm variant we only ever use the fast path\n    jmp %%main_part1b\n.main_part1:\n    ITX_MULSUB_2D         1, 15, 16, 17, 18, _,  1606, 16305 ; t8a,  t15a\n    ITX_MULSUB_2D         9,  7, 16, 17, 18, _, 12665, 10394 ; t9a,  t14a\n    ITX_MULSUB_2D         5, 11, 16, 17, 18, _,  7723, 14449 ; t10a, t13a\n    ITX_MULSUB_2D        13,  3, 16, 17, 18, _, 15679,  4756 ; t11a, t12a\n    ITX_MULSUB_2D        10,  6, 16, 17, 18, _, 13623,  9102 ; t5a,  t6a\n    ITX_MULSUB_2D         2, 14, 16, 17, 18, _,  3196, 16069 ; t4a,  t7a\n    ITX_MULSUB_2D         4, 12, 16, 17, 18, _,  6270, 15137 ; t2,  t3\n    pmulld               m0, m21\n    pmulld               m8, m21\n    REPX     {paddd x, m20}, m0, m9, m13, m10\n    psubd               m18, m0, m8   ; t1\n    paddd                m0, m8       ; t0\n%%main_part1b:\n%endif\n    vpbroadcastd        m19, [o(pd_15137)]\n    vpbroadcastd        m16, [o(pd_6270)]\n    REPX     {paddd x, m20}, m15, m7, m1, m11, m3, m5\n    REPX     {psrad x, 14 }, m15, m7, m1, m9, m11, m3, m5, m13\n    paddd               m17, m15, m7  ; t15\n    psubd               m15, m7       ; t14\n    psubd                m7, m3, m11  ; t13\n    paddd                m3, m11      ; t12\n    psubd               m11, m13, m5  ; t10\n    paddd                m5, m13      ; t11\n    psubd               m13, m1, m9   ; t9\n    paddd                m1, m9       ; t8\n    ITX_MULSUB_2D        15, 13, 8, 9, _, 20, 16, 19         ; t9a,  t14a\n    ITX_MULSUB_2D         7, 11, 8, 9, _, 20, 16, 19, 2      ; t13a, t10a\n    paddd               m16, m1, m5   ; t8a\n    psubd                m1, m5       ; t11a\n    paddd                m8, m15, m11 ; t9\n    psubd               m15, m11      ; t10\n    psubd               m11, m17, m3  ; t12a\n    paddd               m17, m3       ; t15a\n    psubd                m9, m13, m7  ; t13\n    paddd               m13, m7       ; t14\n    REPX    {pmulld x, m21}, m11, m9, m1, m15\n    REPX     {paddd x, m20}, m2, m6, m14\n    REPX     {psrad x, 14 }, m10, m2, m6, m14\n    psubd                m3, m2, m10  ; t5a\n    paddd               m10, m2       ; t4\n    paddd               m11, m20\n    psubd                m5, m11, m1  ; t11\n    paddd               m11, m1       ; t12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:7", "text": "psubd               m13, m1, m9   ; t9\n    paddd                m1, m9       ; t8\n    ITX_MULSUB_2D        15, 13, 8, 9, _, 20, 16, 19         ; t9a,  t14a\n    ITX_MULSUB_2D         7, 11, 8, 9, _, 20, 16, 19, 2      ; t13a, t10a\n    paddd               m16, m1, m5   ; t8a\n    psubd                m1, m5       ; t11a\n    paddd                m8, m15, m11 ; t9\n    psubd               m15, m11      ; t10\n    psubd               m11, m17, m3  ; t12a\n    paddd               m17, m3       ; t15a\n    psubd                m9, m13, m7  ; t13\n    paddd               m13, m7       ; t14\n    REPX    {pmulld x, m21}, m11, m9, m1, m15\n    REPX     {paddd x, m20}, m2, m6, m14\n    REPX     {psrad x, 14 }, m10, m2, m6, m14\n    psubd                m3, m2, m10  ; t5a\n    paddd               m10, m2       ; t4\n    paddd               m11, m20\n    psubd                m5, m11, m1  ; t11\n    paddd               m11, m1       ; t12\n    psubd                m1, m14, m6  ; t6a\n    paddd               m14, m6       ; t7\n    pmulld               m1, m21\n    pmulld               m3, m21\n    paddd                m4, m20\n    paddd               m12, m20\n    REPX     {psrad x, 14 }, m4, m12, m0, m18\n    paddd                m9, m20\n    paddd                m2, m9, m15  ; t13a\n    psubd                m9, m15      ; t10a\n    paddd                m1, m20\n    psubd                m6, m1, m3   ; t5\n    paddd                m1, m3       ; t6\n    REPX      {psrad x, 14}, m6, m1, m11, m5, m2, m9\n%endmacro\n\n%macro IDCT16_PART2 0\n    psubd                m3, m0, m12 ; t3\n    paddd                m0, m12     ; t0\n    psubd               m12, m18, m4 ; t2\n    paddd               m18, m4      ; t1\n    psubd                m4, m3, m10 ; t4\n    paddd                m3, m10     ; t3\n    psubd               m10, m12, m6 ; t5\n    paddd               m12, m6      ; t2\n    psubd                m6, m18, m1 ; t6\n    paddd                m1, m18     ; t1\n    psubd                m7, m0, m14 ; t7\n    paddd                m0, m14     ; t0\n    psubd               m15, m0, m17 ; out15\n    paddd                m0, m17     ; out0\n    psubd               m14, m1, m13 ; out14\n    paddd                m1, m13     ; out1\n    psubd               m13, m12, m2 ; out13\n    paddd                m2, m12     ; out2\n    psubd               m12, m3, m11 ; out12\n    paddd                m3, m11     ; out3\n    psubd               m11, m4, m5  ; out11\n    paddd                m4, m5      ; out4\n    paddd                m5, m10, m9 ; out5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:8", "text": "paddd               m18, m4      ; t1\n    psubd                m4, m3, m10 ; t4\n    paddd                m3, m10     ; t3\n    psubd               m10, m12, m6 ; t5\n    paddd               m12, m6      ; t2\n    psubd                m6, m18, m1 ; t6\n    paddd                m1, m18     ; t1\n    psubd                m7, m0, m14 ; t7\n    paddd                m0, m14     ; t0\n    psubd               m15, m0, m17 ; out15\n    paddd                m0, m17     ; out0\n    psubd               m14, m1, m13 ; out14\n    paddd                m1, m13     ; out1\n    psubd               m13, m12, m2 ; out13\n    paddd                m2, m12     ; out2\n    psubd               m12, m3, m11 ; out12\n    paddd                m3, m11     ; out3\n    psubd               m11, m4, m5  ; out11\n    paddd                m4, m5      ; out4\n    paddd                m5, m10, m9 ; out5\n    psubd               m10, m9      ; out10\n    psubd                m9, m6, m8  ; out9\n    paddd                m6, m8      ; out6\n    psubd                m8, m7, m16 ; out8\n    paddd                m7, m16     ; out7\n%endmacro\n\nINIT_ZMM avx512icl\nINV_TXFM_16X16_FN dct, dct\nINV_TXFM_16X16_FN dct, adst, 39-23-1\n\ncglobal vp9_idct_16x16_internal_10, 0, 7, 22, dst, stride, c, eob, tx2\n    mova                 m0, [cq+64* 0]\n    mova                 m1, [cq+64* 1]\n    mova                 m2, [cq+64* 2]\n    mova                 m3, [cq+64* 3]\n    mova                 m4, [cq+64* 4]\n    mova                 m5, [cq+64* 5]\n    mova                 m6, [cq+64* 6]\n    mova                 m7, [cq+64* 7]\n    vpbroadcastd        m20, [o(pd_8192)]\n    vpbroadcastd        m21, [o(pd_11585)]\n    sub                eobd, 38\n    jl .pass1_fast\n    mova                 m8, [cq+64* 8]\n    mova                 m9, [cq+64* 9]\n    mova                m10, [cq+64*10]\n    mova                m11, [cq+64*11]\n    mova                m12, [cq+64*12]\n    mova                m13, [cq+64*13]\n    mova                m14, [cq+64*14]\n    mova                m15, [cq+64*15]\n    call .main_part1\n    call .main_part2\n.pass1_end:\n    TRANSPOSE_4DQ         0,  4,  8, 12, 16\n    TRANSPOSE_4DQ         1,  5,  9, 13, 16\n    TRANSPOSE_4DQ         2,  6, 10, 14, 16\n    TRANSPOSE_4DQ         3,  7, 11, 15, 16\n    TRANSPOSE_4D          8,  9, 10, 11, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:9", "text": "vpbroadcastd        m20, [o(pd_8192)]\n    vpbroadcastd        m21, [o(pd_11585)]\n    sub                eobd, 38\n    jl .pass1_fast\n    mova                 m8, [cq+64* 8]\n    mova                 m9, [cq+64* 9]\n    mova                m10, [cq+64*10]\n    mova                m11, [cq+64*11]\n    mova                m12, [cq+64*12]\n    mova                m13, [cq+64*13]\n    mova                m14, [cq+64*14]\n    mova                m15, [cq+64*15]\n    call .main_part1\n    call .main_part2\n.pass1_end:\n    TRANSPOSE_4DQ         0,  4,  8, 12, 16\n    TRANSPOSE_4DQ         1,  5,  9, 13, 16\n    TRANSPOSE_4DQ         2,  6, 10, 14, 16\n    TRANSPOSE_4DQ         3,  7, 11, 15, 16\n    TRANSPOSE_4D          8,  9, 10, 11, 16\n    TRANSPOSE_4D         12, 13, 14, 15, 16\n    mov                 r6d, 64*12\n    jmp .pass1_transpose_end\n.pass1_fast:\n    WRAP_YMM IDCT16_PART1\n    WRAP_YMM IDCT16_PART2\n.pass1_fast_end:\n    vinserti32x8         m0, ym4, 1\n    vinserti32x8         m8, ym12, 1\n    vinserti32x8         m1, ym5, 1\n    vinserti32x8         m9, ym13, 1\n    vinserti32x8         m2, ym6, 1\n    vinserti32x8        m10, ym14, 1\n    vinserti32x8         m3, ym7, 1\n    vinserti32x8        m11, ym15, 1\n    vshufi32x4           m4, m0, m8, q3131\n    vshufi32x4           m0, m8, q2020\n    vshufi32x4           m5, m1, m9, q3131\n    vshufi32x4           m1, m9, q2020\n    vshufi32x4           m6, m2, m10, q3131\n    vshufi32x4           m2, m10, q2020\n    vshufi32x4           m7, m3, m11, q3131\n    vshufi32x4           m3, m11, q2020\n    mov                 r6d, 64*4\n.pass1_transpose_end:\n    pxor                m16, m16\n.zero_loop:\n    mova       [cq+r6+64*0], m16\n    mova       [cq+r6+64*1], m16\n    mova       [cq+r6+64*2], m16\n    mova       [cq+r6+64*3], m16\n    sub                 r6d, 64*4\n    jge .zero_loop\n    TRANSPOSE_4D          0,  1,  2,  3, 16\n    TRANSPOSE_4D          4,  5,  6,  7, 16\n    jmp                tx2q\n.pass2:\n    test               eobd, eobd\n    jl .pass2_fast\n    call .main_part1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:10", "text": "vshufi32x4           m2, m10, q2020\n    vshufi32x4           m7, m3, m11, q3131\n    vshufi32x4           m3, m11, q2020\n    mov                 r6d, 64*4\n.pass1_transpose_end:\n    pxor                m16, m16\n.zero_loop:\n    mova       [cq+r6+64*0], m16\n    mova       [cq+r6+64*1], m16\n    mova       [cq+r6+64*2], m16\n    mova       [cq+r6+64*3], m16\n    sub                 r6d, 64*4\n    jge .zero_loop\n    TRANSPOSE_4D          0,  1,  2,  3, 16\n    TRANSPOSE_4D          4,  5,  6,  7, 16\n    jmp                tx2q\n.pass2:\n    test               eobd, eobd\n    jl .pass2_fast\n    call .main_part1\n    jmp .pass2_end\n.pass2_fast:\n    call .main_part1_fast\n.pass2_end:\n    vpbroadcastd         m3, [o(pixel_clip6)]\n    paddd                m0, m3\n    paddd               m18, m3\n    call .main_part2\n    REPX       {psrad x, 6}, m0, m1, m2, m3\n    packssdw             m0, m1\n    lea                  r6, [strideq*3]\n    packssdw             m1, m2, m3\n    mova                 m2, [o(deintq_perm)]\n    vpbroadcastd         m3, [o(pixel_clip)]\n    REPX       {psrad x, 6}, m4, m5, m6, m7\n    call .write_16x4\n    packssdw             m0, m4, m5\n    packssdw             m1, m6, m7\n    REPX       {psrad x, 6}, m8, m9, m10, m11\n    call .write_16x4\n    packssdw             m0, m8, m9\n    packssdw             m1, m10, m11\n.pass2_end2:\n    REPX       {psrad x, 6}, m12, m13, m14, m15\n    call .write_16x4\n    packssdw             m0, m12, m13\n    packssdw             m1, m14, m15\n    call .write_16x4\n    RET\nALIGN function_align\n.write_16x4:\n    mova               ym16, [dstq+strideq*0]\n    vinserti32x8        m16, [dstq+strideq*1], 1\n    mova               ym17, [dstq+strideq*2]\n    vinserti32x8        m17, [dstq+r6       ], 1\n    vpermq               m0, m2, m0\n    vpermq               m1, m2, m1\n    paddsw              m16, m0\n    paddsw              m17, m1\n    psubusw             m16, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:11", "text": "packssdw             m0, m8, m9\n    packssdw             m1, m10, m11\n.pass2_end2:\n    REPX       {psrad x, 6}, m12, m13, m14, m15\n    call .write_16x4\n    packssdw             m0, m12, m13\n    packssdw             m1, m14, m15\n    call .write_16x4\n    RET\nALIGN function_align\n.write_16x4:\n    mova               ym16, [dstq+strideq*0]\n    vinserti32x8        m16, [dstq+strideq*1], 1\n    mova               ym17, [dstq+strideq*2]\n    vinserti32x8        m17, [dstq+r6       ], 1\n    vpermq               m0, m2, m0\n    vpermq               m1, m2, m1\n    paddsw              m16, m0\n    paddsw              m17, m1\n    psubusw             m16, m3\n    psubusw             m17, m3\n    mova          [dstq+strideq*0], ym16\n    vextracti32x8 [dstq+strideq*1], m16, 1\n    mova          [dstq+strideq*2], ym17\n    vextracti32x8 [dstq+r6       ], m17, 1\n    lea                dstq, [dstq+strideq*4]\n    ret\nALIGN function_align\n    IDCT16_PART1\n    ret\nALIGN function_align\n.main_part2:\n    IDCT16_PART2\n    ret\n\n%macro IADST16_PART1 0\n%if mmsize == 64\n.main_part1_fast:\n%endif\n    pmulld              m15, m0, [o(pd_16364)] {bcstd} ; t1\n    pmulld               m0, [o(pd_804)] {bcstd}       ; t0\n    pmulld              m13, m2, [o(pd_15893)] {bcstd} ; t3\n    pmulld               m2, [o(pd_3981)] {bcstd}      ; t2\n    pmulld              m11, m4, [o(pd_14811)] {bcstd} ; t5\n    pmulld               m4, [o(pd_7005)] {bcstd}      ; t4\n    pmulld               m9, m6, [o(pd_13160)] {bcstd} ; t7\n    pmulld               m6, [o(pd_9760)] {bcstd}      ; t6\n    pmulld               m8, m7, [o(pd_11003)] {bcstd} ; t8\n    pmulld               m7, [o(pd_12140)] {bcstd}     ; t9\n    pmulld              m10, m5, [o(pd_8423)] {bcstd}  ; t10\n    pmulld               m5, [o(pd_14053)] {bcstd}     ; t11\n    pmulld              m12, m3, [o(pd_5520)] {bcstd}  ; t12\n    pmulld               m3, [o(pd_15426)] {bcstd}     ; t13\n    pmulld              m14, m1, [o(pd_2404)] {bcstd}  ; t14\n    pmulld               m1, [o(pd_16207)] {bcstd}     ; t15\n    REPX  {psubd x, m20, x}, m15, m13, m11, m9\n%if mmsize == 64 ; for the ymm variant we only ever use the fast path\n    jmp %%main_part1b\nALIGN function_align\n.main_part1:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:12", "text": "pmulld               m0, [o(pd_804)] {bcstd}       ; t0\n    pmulld              m13, m2, [o(pd_15893)] {bcstd} ; t3\n    pmulld               m2, [o(pd_3981)] {bcstd}      ; t2\n    pmulld              m11, m4, [o(pd_14811)] {bcstd} ; t5\n    pmulld               m4, [o(pd_7005)] {bcstd}      ; t4\n    pmulld               m9, m6, [o(pd_13160)] {bcstd} ; t7\n    pmulld               m6, [o(pd_9760)] {bcstd}      ; t6\n    pmulld               m8, m7, [o(pd_11003)] {bcstd} ; t8\n    pmulld               m7, [o(pd_12140)] {bcstd}     ; t9\n    pmulld              m10, m5, [o(pd_8423)] {bcstd}  ; t10\n    pmulld               m5, [o(pd_14053)] {bcstd}     ; t11\n    pmulld              m12, m3, [o(pd_5520)] {bcstd}  ; t12\n    pmulld               m3, [o(pd_15426)] {bcstd}     ; t13\n    pmulld              m14, m1, [o(pd_2404)] {bcstd}  ; t14\n    pmulld               m1, [o(pd_16207)] {bcstd}     ; t15\n    REPX  {psubd x, m20, x}, m15, m13, m11, m9\n%if mmsize == 64 ; for the ymm variant we only ever use the fast path\n    jmp %%main_part1b\nALIGN function_align\n.main_part1:\n    ITX_MULSUB_2D        15,  0, 16, 17, 18, _,   804, 16364 ; t1,  t0\n    ITX_MULSUB_2D        13,  2, 16, 17, 18, _,  3981, 15893 ; t3,  t2\n    ITX_MULSUB_2D        11,  4, 16, 17, 18, _,  7005, 14811 ; t5,  t4\n    ITX_MULSUB_2D         9,  6, 16, 17, 18, _,  9760, 13160 ; t7,  t6\n    ITX_MULSUB_2D         7,  8, 16, 17, 18, _, 12140, 11003 ; t9,  t8\n    ITX_MULSUB_2D         5, 10, 16, 17, 18, _, 14053,  8423 ; t11, t10\n    ITX_MULSUB_2D         3, 12, 16, 17, 18, _, 15426,  5520 ; t13, t12\n    ITX_MULSUB_2D         1, 14, 16, 17, 18, _, 16207,  2404 ; t15, t14\n    REPX     {paddd x, m20}, m15, m13, m11, m9\n%%main_part1b:\n%endif\n    REPX     {paddd x, m20}, m0, m2, m4, m6\n    psubd               m16, m2, m10  ; t10a\n    paddd                m2, m10      ; t2a\n    psubd               m10, m9, m1   ; t15a\n    paddd                m9, m1       ; t7a\n    psubd                m1, m13, m5  ; t11a\n    paddd               m13, m5       ; t3a\n    psubd                m5, m6, m14  ; t14a\n    paddd                m6, m14      ; t6a\n    REPX      {psrad x, 14}, m16, m10, m1, m5\n    psubd               m14, m0, m8   ; t8a\n    paddd                m0, m8       ; t0a\n    psubd                m8, m15, m7  ; t9a\n    paddd               m15, m7       ; t1a\n    psubd                m7, m4, m12  ; t12a\n    paddd                m4, m12      ; t4a\n    paddd               m12, m11, m3  ; t5a\n    psubd               m11, m3       ; t13a\n    REPX      {psrad x, 14}, m14, m8, m7, m11\n    vpbroadcastd        m19, [o(pd_9102)]\n    vpbroadcastd        m18, [o(pd_13623)]\n    ITX_MULSUB_2D        16, 1, 3, 17, _, _, 18, 19 ; t11, t10\n    ITX_MULSUB_2D        10, 5, 3, 17, _, _, 19, 18 ; t14, t15\n    vpbroadcastd        m19, [o(pd_16069)]\n    vpbroadcastd        m18, [o(pd_3196)]\n    ITX_MULSUB_2D        14, 8, 3, 17, _, _, 18, 19 ; t9,  t8\n    ITX_MULSUB_2D        11, 7, 3, 17, _, _, 19, 18 ; t12, t13\n    vpbroadcastd        m19, [o(pd_6270)]\n    vpbroadcastd        m18, [o(pd_15137)]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:13", "text": "REPX      {psrad x, 14}, m16, m10, m1, m5\n    psubd               m14, m0, m8   ; t8a\n    paddd                m0, m8       ; t0a\n    psubd                m8, m15, m7  ; t9a\n    paddd               m15, m7       ; t1a\n    psubd                m7, m4, m12  ; t12a\n    paddd                m4, m12      ; t4a\n    paddd               m12, m11, m3  ; t5a\n    psubd               m11, m3       ; t13a\n    REPX      {psrad x, 14}, m14, m8, m7, m11\n    vpbroadcastd        m19, [o(pd_9102)]\n    vpbroadcastd        m18, [o(pd_13623)]\n    ITX_MULSUB_2D        16, 1, 3, 17, _, _, 18, 19 ; t11, t10\n    ITX_MULSUB_2D        10, 5, 3, 17, _, _, 19, 18 ; t14, t15\n    vpbroadcastd        m19, [o(pd_16069)]\n    vpbroadcastd        m18, [o(pd_3196)]\n    ITX_MULSUB_2D        14, 8, 3, 17, _, _, 18, 19 ; t9,  t8\n    ITX_MULSUB_2D        11, 7, 3, 17, _, _, 19, 18 ; t12, t13\n    vpbroadcastd        m19, [o(pd_6270)]\n    vpbroadcastd        m18, [o(pd_15137)]\n    REPX      {psrad x, 14}, m15, m12, m0, m4\n    psubd                m3, m15, m12 ; t5\n    paddd               m15, m12      ; t1\n    psubd               m12, m0, m4   ; t4\n    paddd                m0, m4       ; t0\n    REPX      {psrad x, 14}, m2, m6, m13, m9\n    psubd                m4, m2, m6   ; t6\n    paddd                m2, m6       ; t2\n    psubd                m6, m13, m9  ; t7\n    paddd                m9, m13      ; t3\n    REPX     {paddd x, m20}, m8, m14, m1, m16\n    psubd               m13, m8, m11  ; t12a\n    paddd                m8, m11      ; t8a\n    psubd               m11, m14, m7  ; t13a\n    paddd               m14, m7       ; t9a\n    psubd                m7, m1, m10  ; t14a\n    paddd                m1, m10      ; t10a\n    psubd               m10, m16, m5  ; t15a\n    paddd               m16, m5       ; t11a\n    REPX      {psrad x, 14}, m13, m11, m7, m10\n    ITX_MULSUB_2D        12,  3, 5, 17, _, _, 19, 18 ; t5a, t4a\n    ITX_MULSUB_2D         6,  4, 5, 17, _, _, 18, 19 ; t6a, t7a\n    ITX_MULSUB_2D        13, 11, 5, 17, _, _, 19, 18 ; t13, t12\n    ITX_MULSUB_2D        10,  7, 5, 17, _, _, 18, 19 ; t14, t15\n    REPX      {psrad x, 14}, m8, m1, m14, m16\n    psubd                m5, m8, m1   ;  t10\n    paddd                m1, m8       ; -out1\n    psubd                m8, m15, m9  ;  t3a\n    paddd               m15, m9       ; -out15\n    psubd                m9, m14, m16 ;  t11\n    paddd               m14, m16      ;  out14\n    psubd               m16, m0, m2   ;  t2a\n    paddd                m0, m2       ;  out0\n    REPX     {paddd x, m20}, m11, m13, m12, m3\n    paddd                m2, m11, m10 ;  out2\n    psubd               m11, m10      ;  t14a\n    psubd               m10, m13, m7  ;  t15a\n    paddd               m13, m7       ; -out13\n    psubd                m7, m12, m4  ;  t7\n    paddd               m12, m4       ;  out12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:14", "text": "ITX_MULSUB_2D        12,  3, 5, 17, _, _, 19, 18 ; t5a, t4a\n    ITX_MULSUB_2D         6,  4, 5, 17, _, _, 18, 19 ; t6a, t7a\n    ITX_MULSUB_2D        13, 11, 5, 17, _, _, 19, 18 ; t13, t12\n    ITX_MULSUB_2D        10,  7, 5, 17, _, _, 18, 19 ; t14, t15\n    REPX      {psrad x, 14}, m8, m1, m14, m16\n    psubd                m5, m8, m1   ;  t10\n    paddd                m1, m8       ; -out1\n    psubd                m8, m15, m9  ;  t3a\n    paddd               m15, m9       ; -out15\n    psubd                m9, m14, m16 ;  t11\n    paddd               m14, m16      ;  out14\n    psubd               m16, m0, m2   ;  t2a\n    paddd                m0, m2       ;  out0\n    REPX     {paddd x, m20}, m11, m13, m12, m3\n    paddd                m2, m11, m10 ;  out2\n    psubd               m11, m10      ;  t14a\n    psubd               m10, m13, m7  ;  t15a\n    paddd               m13, m7       ; -out13\n    psubd                m7, m12, m4  ;  t7\n    paddd               m12, m4       ;  out12\n    psubd                m4, m3, m6   ;  t6\n    paddd                m3, m6       ; -out3\n    REPX      {psrad x, 14}, m10, m7, m11, m4\n    REPX    {pmulld x, m21}, m9, m10, m7, m8, m5, m11, m4, m16\n    REPX      {psrad x, 14}, m2, m13, m12, m3\n%endmacro\n\n%macro IADST16_PART2 0\n    paddd                m9, m20\n    psubd               m10, m20, m10\n    paddd                m7, m20\n    psubd                m8, m20, m8\n    paddd                m6, m9, m5   ; out6\n    psubd                m9, m5       ; out9\n    psubd                m5, m10, m11 ; out5\n    paddd               m10, m11      ; out10\n    psubd               m11, m7, m4   ; out11\n    paddd                m4, m7       ; out4\n    psubd                m7, m8, m16  ; out7\n    paddd                m8, m16      ; out8\n%endmacro\n\n%macro IADST16_PASS1_END 0\n    pxor                m16, m16\n    psubd                m1, m16, m1\n    psubd                m3, m16, m3\n    psubd               m13, m16, m13\n    psubd               m15, m16, m15\n    REPX      {psrad x, 14}, m4, m5, m6, m7, m8, m9, m10, m11\n%endmacro\n\nINV_TXFM_16X16_FN adst, dct, 39-18\nINV_TXFM_16X16_FN adst, adst\n\ncglobal vp9_iadst_16x16_internal_10, 0, 7, 22, dst, stride, c, eob, tx2\n    mova                 m0, [cq+64* 0]\n    mova                 m1, [cq+64* 1]\n    mova                 m2, [cq+64* 2]\n    mova                 m3, [cq+64* 3]\n    mova                 m4, [cq+64* 4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:15", "text": "%endmacro\n\n%macro IADST16_PASS1_END 0\n    pxor                m16, m16\n    psubd                m1, m16, m1\n    psubd                m3, m16, m3\n    psubd               m13, m16, m13\n    psubd               m15, m16, m15\n    REPX      {psrad x, 14}, m4, m5, m6, m7, m8, m9, m10, m11\n%endmacro\n\nINV_TXFM_16X16_FN adst, dct, 39-18\nINV_TXFM_16X16_FN adst, adst\n\ncglobal vp9_iadst_16x16_internal_10, 0, 7, 22, dst, stride, c, eob, tx2\n    mova                 m0, [cq+64* 0]\n    mova                 m1, [cq+64* 1]\n    mova                 m2, [cq+64* 2]\n    mova                 m3, [cq+64* 3]\n    mova                 m4, [cq+64* 4]\n    mova                 m5, [cq+64* 5]\n    mova                 m6, [cq+64* 6]\n    mova                 m7, [cq+64* 7]\n    vpbroadcastd        m20, [o(pd_8192)]\n    vpbroadcastd        m21, [o(pd_11585)]\n    sub                eobd, 39\n    jl .pass1_fast\n    mova                 m8, [cq+64* 8]\n    mova                 m9, [cq+64* 9]\n    mova                m10, [cq+64*10]\n    mova                m11, [cq+64*11]\n    mova                m12, [cq+64*12]\n    mova                m13, [cq+64*13]\n    mova                m14, [cq+64*14]\n    mova                m15, [cq+64*15]\n    call .main_part1\n    call .main_part2\n    IADST16_PASS1_END\n    jmp m(vp9_idct_16x16_internal_10).pass1_end\n.pass1_fast:\n    WRAP_YMM IADST16_PART1\n    WRAP_YMM IADST16_PART2\n    WRAP_YMM IADST16_PASS1_END\n    jmp m(vp9_idct_16x16_internal_10).pass1_fast_end\n.pass2:\n    test               eobd, eobd\n    jl .pass2_fast\n    call .main_part1\n    jmp .pass2_end\n.pass2_fast:\n    call .main_part1_fast\n.pass2_end:\n    vpbroadcastd        m20, [o(pd_532480)]\n    call .main_part2\n    vpbroadcastd        m16, [o(pixel_clip6)]\n    REPX     {paddd x, m16}, m0, m2, m12, m14\n    REPX  {psubd x, m16, x}, m1, m3, m13, m15\n    REPX       {psrad x, 6}, m0, m1, m2, m3\n    packssdw             m0, m1\n    lea                  r6, [strideq*3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:16", "text": "WRAP_YMM IADST16_PART1\n    WRAP_YMM IADST16_PART2\n    WRAP_YMM IADST16_PASS1_END\n    jmp m(vp9_idct_16x16_internal_10).pass1_fast_end\n.pass2:\n    test               eobd, eobd\n    jl .pass2_fast\n    call .main_part1\n    jmp .pass2_end\n.pass2_fast:\n    call .main_part1_fast\n.pass2_end:\n    vpbroadcastd        m20, [o(pd_532480)]\n    call .main_part2\n    vpbroadcastd        m16, [o(pixel_clip6)]\n    REPX     {paddd x, m16}, m0, m2, m12, m14\n    REPX  {psubd x, m16, x}, m1, m3, m13, m15\n    REPX       {psrad x, 6}, m0, m1, m2, m3\n    packssdw             m0, m1\n    lea                  r6, [strideq*3]\n    packssdw             m1, m2, m3\n    mova                 m2, [o(deintq_perm)]\n    vpbroadcastd         m3, [o(pixel_clip)]\n    REPX      {psrad x, 20}, m4, m5, m6, m7\n    call m(vp9_idct_16x16_internal_10).write_16x4\n    packssdw             m0, m4, m5\n    packssdw             m1, m6, m7\n    paddsw               m0, m3\n    paddsw               m1, m3\n    REPX      {psrad x, 20}, m8, m9, m10, m11\n    call m(vp9_idct_16x16_internal_10).write_16x4\n    packssdw             m0, m8, m9\n    packssdw             m1, m10, m11\n    paddsw               m0, m3\n    paddsw               m1, m3\n    jmp m(vp9_idct_16x16_internal_10).pass2_end2\nALIGN function_align\n    IADST16_PART1\n    ret\nALIGN function_align\n.main_part2:\n    IADST16_PART2\n    ret\n\ncglobal vp9_idct_idct_32x32_add_10, 4, 7, 23, 64*64, dst, stride, c, eob\n%undef cmp\n    lea                  r5, [o_base]\n    dec                eobd\n    jnz .pass1\n    imul                r6d, [cq], 11585\n    vpbroadcastd         m3, [o(pixel_clip)]\n    mov                [cq], r3d\n    add                 r6d, 8192\n    sar                 r6d, 14\n    imul                r6d, 11585\n    or                  r3d, 16\n    add                 r6d, 532480\n    sar                 r6d, 20\n    vpbroadcastw         m2, r6d\n    paddsw               m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:17", "text": ".main_part2:\n    IADST16_PART2\n    ret\n\ncglobal vp9_idct_idct_32x32_add_10, 4, 7, 23, 64*64, dst, stride, c, eob\n%undef cmp\n    lea                  r5, [o_base]\n    dec                eobd\n    jnz .pass1\n    imul                r6d, [cq], 11585\n    vpbroadcastd         m3, [o(pixel_clip)]\n    mov                [cq], r3d\n    add                 r6d, 8192\n    sar                 r6d, 14\n    imul                r6d, 11585\n    or                  r3d, 16\n    add                 r6d, 532480\n    sar                 r6d, 20\n    vpbroadcastw         m2, r6d\n    paddsw               m2, m3\n.dconly_loop:\n    paddsw               m0, m2, [dstq+strideq*0]\n    paddsw               m1, m2, [dstq+strideq*1]\n    psubusw              m0, m3\n    psubusw              m1, m3\n    mova   [dstq+strideq*0], m0\n    mova   [dstq+strideq*1], m1\n    lea                dstq, [dstq+strideq*2]\n    dec                 r3d\n    jg .dconly_loop\n    RET\n.pass1:\n    vpbroadcastd        m20, [o(pd_8192)]\n    vpbroadcastd        m21, [o(pd_11585)]\n    cmp                eobd, 135\n    jl .pass1_fast\n    add                  cq, 64\n    lea                  r4, [rsp+64*8]\n    cmp                eobd, 579\n    jl .pass1_right_fast\n    mov                 r6d, 128*28\n    call .pass1_main\n    jmp .pass1_right_end\n.pass1_right_fast: ; bottomright quadrant is zero\n    mova                 m0, [cq+128* 1]\n    mova                 m1, [cq+128* 3]\n    mova                 m2, [cq+128* 5]\n    mova                 m3, [cq+128* 7]\n    mova                 m4, [cq+128* 9]\n    mova                 m5, [cq+128*11]\n    mova                 m6, [cq+128*13]\n    mova                 m7, [cq+128*15]\n    call .main_fast\n    mova                 m0, [cq+128* 0]\n    mova                 m1, [cq+128* 2]\n    mova                 m2, [cq+128* 4]\n    mova                 m3, [cq+128* 6]\n    mova                 m4, [cq+128* 8]\n    mova                 m5, [cq+128*10]\n    mova                 m6, [cq+128*12]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:18", "text": "mov                 r6d, 128*28\n    call .pass1_main\n    jmp .pass1_right_end\n.pass1_right_fast: ; bottomright quadrant is zero\n    mova                 m0, [cq+128* 1]\n    mova                 m1, [cq+128* 3]\n    mova                 m2, [cq+128* 5]\n    mova                 m3, [cq+128* 7]\n    mova                 m4, [cq+128* 9]\n    mova                 m5, [cq+128*11]\n    mova                 m6, [cq+128*13]\n    mova                 m7, [cq+128*15]\n    call .main_fast\n    mova                 m0, [cq+128* 0]\n    mova                 m1, [cq+128* 2]\n    mova                 m2, [cq+128* 4]\n    mova                 m3, [cq+128* 6]\n    mova                 m4, [cq+128* 8]\n    mova                 m5, [cq+128*10]\n    mova                 m6, [cq+128*12]\n    mova                 m7, [cq+128*14]\n    call m(vp9_idct_16x16_internal_10).main_part1_fast\n    mov                 r6d, 128*12\n    call .pass1_main_end\n.pass1_right_end:\n    mova         [r4+64* 8], m0\n    mova         [r4+64* 9], m1\n    mova         [r4+64*10], m2\n    mova         [r4+64*11], m3\n    mova         [r4+64*12], m4\n    mova         [r4+64*13], m5\n    mova         [r4+64*14], m6\n    mova         [r4+64*15], m7\n    mova         [r4+64*16], m16\n    mova         [r4+64*17], m17\n    mova         [r4+64*18], m18\n    mova         [r4+64*19], m19\n    mova         [r4+64*20], m8\n    mova         [r4+64*21], m9\n    mova         [r4+64*22], m10\n    mova         [r4+64*23], m11\n    sub                  cq, 64\n    sub                  r4, 64*8\n    mov                 r6d, 128*28\n    call .pass1_main\n    mova                m12, [r4+64*20]\n    mova                m13, [r4+64*21]\n    mova                m14, [r4+64*22]\n    mova                m15, [r4+64*23]\n    mova         [r4+64*20], m8\n    mova         [r4+64*21], m9\n    mova         [r4+64*22], m10\n    mova         [r4+64*23], m11\n    mova                 m8, [r4+64*16]\n    mova                 m9, [r4+64*17]\n    mova                m10, [r4+64*18]\n    mova                m11, [r4+64*19]\n    mova         [r4+64*16], m16\n    mova         [r4+64*17], m17\n    mova         [r4+64*18], m18", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:19", "text": "mova         [r4+64*23], m11\n    sub                  cq, 64\n    sub                  r4, 64*8\n    mov                 r6d, 128*28\n    call .pass1_main\n    mova                m12, [r4+64*20]\n    mova                m13, [r4+64*21]\n    mova                m14, [r4+64*22]\n    mova                m15, [r4+64*23]\n    mova         [r4+64*20], m8\n    mova         [r4+64*21], m9\n    mova         [r4+64*22], m10\n    mova         [r4+64*23], m11\n    mova                 m8, [r4+64*16]\n    mova                 m9, [r4+64*17]\n    mova                m10, [r4+64*18]\n    mova                m11, [r4+64*19]\n    mova         [r4+64*16], m16\n    mova         [r4+64*17], m17\n    mova         [r4+64*18], m18\n    mova         [r4+64*19], m19\n    call .main\n    mova                 m0, [r4+64*16]\n    mova                 m1, [r4+64*17]\n    mova                 m2, [r4+64*18]\n    mova                 m3, [r4+64*19]\n    mova                 m4, [r4+64*20]\n    mova                 m5, [r4+64*21]\n    mova                 m6, [r4+64*22]\n    mova                 m7, [r4+64*23]\n    mova                 m8, [r4+64*24]\n    mova                 m9, [r4+64*25]\n    mova                m10, [r4+64*26]\n    mova                m11, [r4+64*27]\n    mova                m12, [r4+64*28]\n    mova                m13, [r4+64*29]\n    mova                m14, [r4+64*30]\n    mova                m15, [r4+64*31]\n    call m(vp9_idct_16x16_internal_10).main_part1\n    call .pass2_main_left\n    mova                 m8, [r4+64* 8]\n    mova                 m9, [r4+64* 9]\n    mova                m10, [r4+64*10]\n    mova                m11, [r4+64*11]\n    mova                m12, [r4+64*12]\n    mova                m13, [r4+64*13]\n    mova                m14, [r4+64*14]\n    mova                m15, [r4+64*15]\n    TRANSPOSE_4DQ         8, 10, 12, 14, 16\n    TRANSPOSE_4DQ         9, 11, 13, 15, 16\n    call .main\n    call .pass2_main_right\n    mova                 m8, [r4+64*24]\n    mova                 m9, [r4+64*25]\n    mova                m10, [r4+64*26]\n    mova                m11, [r4+64*27]\n    mova                m12, [r4+64*28]\n    mova                m13, [r4+64*29]\n    mova                m14, [r4+64*30]\n    mova                m15, [r4+64*31]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:20", "text": "mova                 m8, [r4+64* 8]\n    mova                 m9, [r4+64* 9]\n    mova                m10, [r4+64*10]\n    mova                m11, [r4+64*11]\n    mova                m12, [r4+64*12]\n    mova                m13, [r4+64*13]\n    mova                m14, [r4+64*14]\n    mova                m15, [r4+64*15]\n    TRANSPOSE_4DQ         8, 10, 12, 14, 16\n    TRANSPOSE_4DQ         9, 11, 13, 15, 16\n    call .main\n    call .pass2_main_right\n    mova                 m8, [r4+64*24]\n    mova                 m9, [r4+64*25]\n    mova                m10, [r4+64*26]\n    mova                m11, [r4+64*27]\n    mova                m12, [r4+64*28]\n    mova                m13, [r4+64*29]\n    mova                m14, [r4+64*30]\n    mova                m15, [r4+64*31]\n    TRANSPOSE_4DQ         8, 10, 12, 14, 16\n    TRANSPOSE_4DQ         9, 11, 13, 15, 16\n    call m(vp9_idct_16x16_internal_10).main_part1\n    jmp .pass2_end\n.pass1_fast:\n    mova                 m0, [cq+128* 1]\n    mova                 m1, [cq+128* 3]\n    mova                 m2, [cq+128* 5]\n    mova                 m3, [cq+128* 7]\n    mova                 m4, [cq+128* 9]\n    mova                 m5, [cq+128*11]\n    mova                 m6, [cq+128*13]\n    mova                 m7, [cq+128*15]\n    mov                  r4, rsp\n    call .main_fast\n    mova                 m0, [cq+128* 0]\n    mova                 m1, [cq+128* 2]\n    mova                 m2, [cq+128* 4]\n    mova                 m3, [cq+128* 6]\n    mova                 m4, [cq+128* 8]\n    mova                 m5, [cq+128*10]\n    mova                 m6, [cq+128*12]\n    mova                 m7, [cq+128*14]\n    call m(vp9_idct_16x16_internal_10).main_part1_fast\n    call m(vp9_idct_16x16_internal_10).main_part2\n    mov                 r6d, 128*12\n    call .pass1_main_end2\n    mova         [r4+64*16], m16\n    mova         [r4+64*17], m17\n    mova         [r4+64*18], m18\n    mova         [r4+64*19], m19\n    mova         [r4+64*20], m8\n    mova         [r4+64*21], m9\n    mova         [r4+64*22], m10\n    mova         [r4+64*23], m11\n    call .main_fast\n    mova                 m0, [r4+64*16]\n    mova                 m1, [r4+64*17]\n    mova                 m2, [r4+64*18]\n    mova                 m3, [r4+64*19]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:21", "text": "mova                 m5, [cq+128*10]\n    mova                 m6, [cq+128*12]\n    mova                 m7, [cq+128*14]\n    call m(vp9_idct_16x16_internal_10).main_part1_fast\n    call m(vp9_idct_16x16_internal_10).main_part2\n    mov                 r6d, 128*12\n    call .pass1_main_end2\n    mova         [r4+64*16], m16\n    mova         [r4+64*17], m17\n    mova         [r4+64*18], m18\n    mova         [r4+64*19], m19\n    mova         [r4+64*20], m8\n    mova         [r4+64*21], m9\n    mova         [r4+64*22], m10\n    mova         [r4+64*23], m11\n    call .main_fast\n    mova                 m0, [r4+64*16]\n    mova                 m1, [r4+64*17]\n    mova                 m2, [r4+64*18]\n    mova                 m3, [r4+64*19]\n    mova                 m4, [r4+64*20]\n    mova                 m5, [r4+64*21]\n    mova                 m6, [r4+64*22]\n    mova                 m7, [r4+64*23]\n    call m(vp9_idct_16x16_internal_10).main_part1_fast\n    call .pass2_main_left\n    call .main_fast\n    call .pass2_main_right\n    call m(vp9_idct_16x16_internal_10).main_part1_fast\n.pass2_end:\n    paddd                m0, m22\n    paddd               m18, m22\n    call m(vp9_idct_16x16_internal_10).main_part2\n    mova                m20, [o(deintq_perm)]\n    rorx                 r2, strideq, 59 ; strideq*32\n    vpbroadcastd        m21, [o(pixel_clip)]\n    add                  r2, dstq\n%assign i 0\n%rep 16\n    mova                m16, [r4+64*(15-i)]\n    mova                m17, [r4+64*(i-16)]\n    mova                m18, [r4-64*(17+i)]\n    paddd               m19, m %+ i, m16\n    psubd                m0, m %+ i, m16\n    call .write_32x2\n    %assign i i+1\n%endrep\n    RET\nALIGN function_align\n.write_32x2:\n    paddd               m16, m17, m18\n    psubd               m17, m18\n    REPX       {psrad x, 6}, m19, m16, m0, m17\n    packssdw            m16, m19\n    packssdw            m17, m0\n    sub                  r2, strideq\n    vpermq              m16, m20, m16\n    vpermq              m17, m20, m17\n    paddsw              m16, [dstq]\n    paddsw              m17, [r2  ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:22", "text": "mova                m17, [r4+64*(i-16)]\n    mova                m18, [r4-64*(17+i)]\n    paddd               m19, m %+ i, m16\n    psubd                m0, m %+ i, m16\n    call .write_32x2\n    %assign i i+1\n%endrep\n    RET\nALIGN function_align\n.write_32x2:\n    paddd               m16, m17, m18\n    psubd               m17, m18\n    REPX       {psrad x, 6}, m19, m16, m0, m17\n    packssdw            m16, m19\n    packssdw            m17, m0\n    sub                  r2, strideq\n    vpermq              m16, m20, m16\n    vpermq              m17, m20, m17\n    paddsw              m16, [dstq]\n    paddsw              m17, [r2  ]\n    psubusw             m16, m21\n    psubusw             m17, m21\n    mova             [dstq], m16\n    mova             [r2  ], m17\n    add                dstq, strideq\n    ret\nALIGN function_align\n.pass1_main:\n    mova                 m0, [cq+128* 1]\n    mova                 m1, [cq+128* 3]\n    mova                 m2, [cq+128* 5]\n    mova                 m3, [cq+128* 7]\n    mova                 m4, [cq+128* 9]\n    mova                 m5, [cq+128*11]\n    mova                 m6, [cq+128*13]\n    mova                 m7, [cq+128*15]\n    mova                 m8, [cq+128*17]\n    mova                 m9, [cq+128*19]\n    mova                m10, [cq+128*21]\n    mova                m11, [cq+128*23]\n    mova                m12, [cq+128*25]\n    mova                m13, [cq+128*27]\n    mova                m14, [cq+128*29]\n    mova                m15, [cq+128*31]\n    call .main\n    mova                 m0, [cq+128* 0]\n    mova                 m1, [cq+128* 2]\n    mova                 m2, [cq+128* 4]\n    mova                 m3, [cq+128* 6]\n    mova                 m4, [cq+128* 8]\n    mova                 m5, [cq+128*10]\n    mova                 m6, [cq+128*12]\n    mova                 m7, [cq+128*14]\n    mova                 m8, [cq+128*16]\n    mova                 m9, [cq+128*18]\n    mova                m10, [cq+128*20]\n    mova                m11, [cq+128*22]\n    mova                m12, [cq+128*24]\n    mova                m13, [cq+128*26]\n    mova                m14, [cq+128*28]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:23", "text": "mova                m12, [cq+128*25]\n    mova                m13, [cq+128*27]\n    mova                m14, [cq+128*29]\n    mova                m15, [cq+128*31]\n    call .main\n    mova                 m0, [cq+128* 0]\n    mova                 m1, [cq+128* 2]\n    mova                 m2, [cq+128* 4]\n    mova                 m3, [cq+128* 6]\n    mova                 m4, [cq+128* 8]\n    mova                 m5, [cq+128*10]\n    mova                 m6, [cq+128*12]\n    mova                 m7, [cq+128*14]\n    mova                 m8, [cq+128*16]\n    mova                 m9, [cq+128*18]\n    mova                m10, [cq+128*20]\n    mova                m11, [cq+128*22]\n    mova                m12, [cq+128*24]\n    mova                m13, [cq+128*26]\n    mova                m14, [cq+128*28]\n    mova                m15, [cq+128*30]\n    call m(vp9_idct_16x16_internal_10).main_part1\n.pass1_main_end:\n    call m(vp9_idct_16x16_internal_10).main_part2\n.pass1_main_end2:\n    pxor                m16, m16\n.pass1_zero_loop:\n    mova      [cq+r6+128*0], m16\n    mova      [cq+r6+128*1], m16\n    mova      [cq+r6+128*2], m16\n    mova      [cq+r6+128*3], m16\n    sub                 r6d, 128*4\n    jge .pass1_zero_loop\n    mova                m16, [r4+64*15]\n    mova                m19, [r4+64*14]\n    mova                m22, [r4+64*13]\n    mova                m17, [r4+64*12]\n    psubd               m18, m0, m16\n    paddd               m16, m0\n    paddd                m0, m19, m1\n    psubd               m19, m1, m19\n    paddd                m1, m17, m3\n    psubd                m3, m17\n    paddd               m17, m2, m22\n    psubd                m2, m22\n    TRANSPOSE_4D          3,  2, 19, 18, 22 ; 28 29 30 31\n    TRANSPOSE_4D         16,  0, 17,  1, 22 ;  0  1  2  3\n    mova         [r4+64*54], m3\n    mova         [r4+64*55], m19\n    mova         [r4+64*38], m2\n    mova         [r4+64*39], m18\n    mova                 m2, [r4+64*11]\n    mova                m19, [r4+64*10]\n    mova                 m3, [r4+64* 9]\n    mova                m22, [r4+64* 8]\n    paddd               m18, m4, m2\n    psubd                m4, m2\n    paddd                m2, m5, m19\n    psubd                m5, m19\n    paddd               m19, m6, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:24", "text": "psubd               m19, m1, m19\n    paddd                m1, m17, m3\n    psubd                m3, m17\n    paddd               m17, m2, m22\n    psubd                m2, m22\n    TRANSPOSE_4D          3,  2, 19, 18, 22 ; 28 29 30 31\n    TRANSPOSE_4D         16,  0, 17,  1, 22 ;  0  1  2  3\n    mova         [r4+64*54], m3\n    mova         [r4+64*55], m19\n    mova         [r4+64*38], m2\n    mova         [r4+64*39], m18\n    mova                 m2, [r4+64*11]\n    mova                m19, [r4+64*10]\n    mova                 m3, [r4+64* 9]\n    mova                m22, [r4+64* 8]\n    paddd               m18, m4, m2\n    psubd                m4, m2\n    paddd                m2, m5, m19\n    psubd                m5, m19\n    paddd               m19, m6, m3\n    psubd                m6, m3\n    paddd                m3, m7, m22\n    psubd                m7, m22\n    TRANSPOSE_4D          7,  6,  5,  4, 22 ; 24 25 26 27\n    TRANSPOSE_4D         18,  2, 19,  3, 22 ;  4  5  6  7\n    mova         [r4+64*52], m7\n    mova         [r4+64*53], m5\n    mova         [r4+64*36], m6\n    mova         [r4+64*37], m4\n    mova                 m7, [r4+64* 7]\n    mova                 m4, [r4+64* 6]\n    mova                 m5, [r4+64* 5]\n    mova                m22, [r4+64* 4]\n    psubd                m6, m8, m7\n    paddd                m8, m7\n    psubd                m7, m9, m4\n    paddd                m4, m9\n    paddd                m9, m10, m5\n    psubd               m10, m5\n    paddd                m5, m11, m22\n    psubd               m11, m22\n    TRANSPOSE_4D         11, 10,  7,  6, 22 ; 20 21 22 23\n    TRANSPOSE_4D          8,  4,  9,  5, 22 ;  8  9 10 11\n    mova         [r4+64*50], m11\n    mova         [r4+64*51], m7\n    mova         [r4+64*34], m10\n    mova         [r4+64*35], m6\n    mova                 m6, [r4+64* 3]\n    mova                m11, [r4+64* 2]\n    mova                 m7, [r4+64* 1]\n    mova                m22, [r4+64* 0]\n    paddd               m10, m12, m6\n    psubd               m12, m6\n    paddd                m6, m13, m11\n    psubd               m13, m11\n    paddd               m11, m14, m7\n    psubd               m14, m7\n    paddd                m7, m15, m22\n    psubd               m15, m22\n    TRANSPOSE_4D         15, 14, 13, 12, 22 ; 16 17 18 19", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:25", "text": "psubd               m11, m22\n    TRANSPOSE_4D         11, 10,  7,  6, 22 ; 20 21 22 23\n    TRANSPOSE_4D          8,  4,  9,  5, 22 ;  8  9 10 11\n    mova         [r4+64*50], m11\n    mova         [r4+64*51], m7\n    mova         [r4+64*34], m10\n    mova         [r4+64*35], m6\n    mova                 m6, [r4+64* 3]\n    mova                m11, [r4+64* 2]\n    mova                 m7, [r4+64* 1]\n    mova                m22, [r4+64* 0]\n    paddd               m10, m12, m6\n    psubd               m12, m6\n    paddd                m6, m13, m11\n    psubd               m13, m11\n    paddd               m11, m14, m7\n    psubd               m14, m7\n    paddd                m7, m15, m22\n    psubd               m15, m22\n    TRANSPOSE_4D         15, 14, 13, 12, 22 ; 16 17 18 19\n    TRANSPOSE_4D         10,  6, 11,  7, 22 ; 12 13 14 15\n    mova         [r4+64*48], m15\n    mova         [r4+64*49], m13\n    mova         [r4+64*32], m14\n    mova         [r4+64*33], m12\n    TRANSPOSE_4DQ         0,  2,  4,  6, 22\n    TRANSPOSE_4DQ         1,  3,  5,  7, 22\n    TRANSPOSE_4DQ        16, 18,  8, 10, 22\n    TRANSPOSE_4DQ        17, 19,  9, 11, 22\n    ret\nALIGN function_align\n.pass2_main_left:\n    vpbroadcastd        m22, [o(pixel_clip6)]\n    paddd                m0, m22\n    paddd               m18, m22\n    call m(vp9_idct_16x16_internal_10).main_part2\n    mova         [r4+64*16], m0\n    mova         [r4+64*17], m1\n    mova         [r4+64*18], m2\n    mova         [r4+64*19], m3\n    mova         [r4+64*20], m4\n    mova         [r4+64*21], m5\n    mova         [r4+64*22], m6\n    mova         [r4+64*23], m7\n    mova         [r4+64*24], m8\n    mova         [r4+64*25], m9\n    mova         [r4+64*26], m10\n    mova         [r4+64*27], m11\n    mova         [r4+64*28], m12\n    mova         [r4+64*29], m13\n    mova         [r4+64*30], m14\n    mova         [r4+64*31], m15\n    add                  r4, 64*32\n    mova                 m0, [r4+64* 0]\n    mova                 m1, [r4+64* 1]\n    mova                 m2, [r4+64* 2]\n    mova                 m3, [r4+64* 3]\n    mova                 m4, [r4+64* 4]\n    mova                 m5, [r4+64* 5]\n    mova                 m6, [r4+64* 6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:26", "text": "mova         [r4+64*20], m4\n    mova         [r4+64*21], m5\n    mova         [r4+64*22], m6\n    mova         [r4+64*23], m7\n    mova         [r4+64*24], m8\n    mova         [r4+64*25], m9\n    mova         [r4+64*26], m10\n    mova         [r4+64*27], m11\n    mova         [r4+64*28], m12\n    mova         [r4+64*29], m13\n    mova         [r4+64*30], m14\n    mova         [r4+64*31], m15\n    add                  r4, 64*32\n    mova                 m0, [r4+64* 0]\n    mova                 m1, [r4+64* 1]\n    mova                 m2, [r4+64* 2]\n    mova                 m3, [r4+64* 3]\n    mova                 m4, [r4+64* 4]\n    mova                 m5, [r4+64* 5]\n    mova                 m6, [r4+64* 6]\n    mova                 m7, [r4+64* 7]\n    jmp .pass2_main_transpose\nALIGN function_align\n.pass2_main_right:\n    mova                 m0, [r4+64*16]\n    mova                 m1, [r4+64*17]\n    mova                 m2, [r4+64*18]\n    mova                 m3, [r4+64*19]\n    mova                 m4, [r4+64*20]\n    mova                 m5, [r4+64*21]\n    mova                 m6, [r4+64*22]\n    mova                 m7, [r4+64*23]\n.pass2_main_transpose:\n    TRANSPOSE_4DQ         0, 2, 4, 6, 8\n    TRANSPOSE_4DQ         1, 3, 5, 7, 8\n    ret\nALIGN function_align\n.main_fast:\n    pmulld              m15, m0, [o(pd_16364)] {1to16} ; t31a\n    pmulld               m0, [o(pd_804)] {1to16}       ; t16a\n    pmulld               m8, m7, [o(pd_11003)] {1to16} ; t17a\n    pmulld               m7, [o(pd_12140)] {1to16}     ; t30a\n    pmulld              m11, m4, [o(pd_14811)] {1to16} ; t29a\n    pmulld               m4, [o(pd_7005)] {1to16}      ; t18a\n    pmulld              m12, m3, [o(pd_5520)] {1to16}  ; t19a\n    pmulld               m3, [o(pd_15426)] {1to16}     ; t28a\n    pmulld              m13, m2, [o(pd_15893)] {1to16} ; t27a\n    pmulld               m2, [o(pd_3981)] {1to16}      ; t20a\n    pmulld              m10, m5, [o(pd_8423)] {1to16}  ; t21a\n    pmulld               m5, [o(pd_14053)] {1to16}     ; t26a\n    pmulld               m9, m6, [o(pd_13160)] {1to16} ; t25a\n    pmulld               m6, [o(pd_9760)] {1to16}      ; t22a\n    pmulld              m14, m1, [o(pd_2404)] {1to16}  ; t23a\n    pmulld               m1, [o(pd_16207)] {1to16}     ; t24a\n    REPX  {psubd x, m20, x}, m8, m12, m10, m14\n    jmp .main2\nALIGN function_align\n.main:\n    ITX_MULSUB_2D         0, 15, 16, 17, 18, _,   804, 16364 ; t16a, t31a\n    ITX_MULSUB_2D         8,  7, 16, 17, 18, _, 12140, 11003 ; t17a, t30a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:27", "text": "pmulld               m8, m7, [o(pd_11003)] {1to16} ; t17a\n    pmulld               m7, [o(pd_12140)] {1to16}     ; t30a\n    pmulld              m11, m4, [o(pd_14811)] {1to16} ; t29a\n    pmulld               m4, [o(pd_7005)] {1to16}      ; t18a\n    pmulld              m12, m3, [o(pd_5520)] {1to16}  ; t19a\n    pmulld               m3, [o(pd_15426)] {1to16}     ; t28a\n    pmulld              m13, m2, [o(pd_15893)] {1to16} ; t27a\n    pmulld               m2, [o(pd_3981)] {1to16}      ; t20a\n    pmulld              m10, m5, [o(pd_8423)] {1to16}  ; t21a\n    pmulld               m5, [o(pd_14053)] {1to16}     ; t26a\n    pmulld               m9, m6, [o(pd_13160)] {1to16} ; t25a\n    pmulld               m6, [o(pd_9760)] {1to16}      ; t22a\n    pmulld              m14, m1, [o(pd_2404)] {1to16}  ; t23a\n    pmulld               m1, [o(pd_16207)] {1to16}     ; t24a\n    REPX  {psubd x, m20, x}, m8, m12, m10, m14\n    jmp .main2\nALIGN function_align\n.main:\n    ITX_MULSUB_2D         0, 15, 16, 17, 18, _,   804, 16364 ; t16a, t31a\n    ITX_MULSUB_2D         8,  7, 16, 17, 18, _, 12140, 11003 ; t17a, t30a\n    ITX_MULSUB_2D         4, 11, 16, 17, 18, _,  7005, 14811 ; t18a, t29a\n    ITX_MULSUB_2D        12,  3, 16, 17, 18, _, 15426,  5520 ; t19a, t28a\n    ITX_MULSUB_2D         2, 13, 16, 17, 18, _,  3981, 15893 ; t20a, t27a\n    ITX_MULSUB_2D        10,  5, 16, 17, 18, _, 14053,  8423 ; t21a, t26a\n    ITX_MULSUB_2D         6,  9, 16, 17, 18, _,  9760, 13160 ; t22a, t25a\n    ITX_MULSUB_2D        14,  1, 16, 17, 18, _, 16207,  2404 ; t23a, t24a\n    REPX     {paddd x, m20}, m8, m12, m10, m14\n.main2:\n    REPX     {paddd x, m20}, m0, m15, m7, m4, m3, m11\n    REPX     {psrad x, 14 }, m8, m0, m15, m7, m12, m4, m3, m11\n    psubd               m16, m0, m8   ; t17\n    paddd                m0, m8       ; t16\n    psubd                m8, m15, m7  ; t30\n    paddd               m15, m7       ; t31\n    paddd                m7, m12, m4  ; t19\n    psubd               m12, m4       ; t18\n    paddd                m4, m3, m11  ; t28\n    psubd                m3, m11      ; t29\n    REPX     {paddd x, m20}, m2, m13, m5, m6, m1, m9\n    REPX     {psrad x, 14 }, m10, m2, m13, m5, m14, m6, m1, m9\n    psubd               m11, m2, m10  ; t21\n    paddd                m2, m10      ; t20\n    psubd               m10, m13, m5  ; t26\n    paddd               m13, m5       ; t27\n    psubd                m5, m14, m6  ; t22\n    paddd                m6, m14      ; t23\n    psubd               m14, m1, m9   ; t25\n    paddd                m9, m1       ; t24\n    vpbroadcastd        m19, [o(pd_16069)]\n    vpbroadcastd        m18, [o(pd_3196)]\n    ITX_MULSUB_2D         8, 16,  1, 17, _, 20, 18, 19    ; t17a, t30a\n    ITX_MULSUB_2D         3, 12,  1, 17, _, 20, 18, 19, 1 ; t29a, t18a\n    vpbroadcastd        m19, [o(pd_9102)]\n    vpbroadcastd        m18, [o(pd_13623)]\n    ITX_MULSUB_2D        10, 11,  1, 17, _, 20, 18, 19    ; t21a, t26a\n    ITX_MULSUB_2D        14,  5,  1, 17, _, 20, 18, 19, 1 ; t25a, t22a\n    paddd                m1, m6, m2   ; t23a\n    psubd                m6, m2       ; t20a\n    psubd                m2, m9, m13  ; t27a\n    paddd                m9, m13      ; t24a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:28", "text": "psubd               m11, m2, m10  ; t21\n    paddd                m2, m10      ; t20\n    psubd               m10, m13, m5  ; t26\n    paddd               m13, m5       ; t27\n    psubd                m5, m14, m6  ; t22\n    paddd                m6, m14      ; t23\n    psubd               m14, m1, m9   ; t25\n    paddd                m9, m1       ; t24\n    vpbroadcastd        m19, [o(pd_16069)]\n    vpbroadcastd        m18, [o(pd_3196)]\n    ITX_MULSUB_2D         8, 16,  1, 17, _, 20, 18, 19    ; t17a, t30a\n    ITX_MULSUB_2D         3, 12,  1, 17, _, 20, 18, 19, 1 ; t29a, t18a\n    vpbroadcastd        m19, [o(pd_9102)]\n    vpbroadcastd        m18, [o(pd_13623)]\n    ITX_MULSUB_2D        10, 11,  1, 17, _, 20, 18, 19    ; t21a, t26a\n    ITX_MULSUB_2D        14,  5,  1, 17, _, 20, 18, 19, 1 ; t25a, t22a\n    paddd                m1, m6, m2   ; t23a\n    psubd                m6, m2       ; t20a\n    psubd                m2, m9, m13  ; t27a\n    paddd                m9, m13      ; t24a\n    psubd               m13, m15, m4  ; t28a\n    paddd               m15, m4       ; t31a\n    psubd                m4, m8, m12  ; t18\n    paddd                m8, m12      ; t17\n    psubd               m12, m0, m7   ; t19a\n    paddd                m0, m7       ; t16a\n    psubd                m7, m16, m3  ; t29\n    paddd                m3, m16      ; t30\n    paddd               m16, m5, m10  ; t22\n    psubd                m5, m10      ; t21\n    psubd               m10, m14, m11 ; t26\n    paddd               m14, m11      ; t25\n    vpbroadcastd        m19, [o(pd_15137)]\n    vpbroadcastd        m18, [o(pd_6270)]\n    ITX_MULSUB_2D        13, 12, 11, 17, _, 20, 18, 19    ; t19,  t28\n    ITX_MULSUB_2D         2,  6, 11, 17, _, 20, 18, 19, 1 ; t27,  t20\n    ITX_MULSUB_2D         7,  4, 11, 17, _, 20, 18, 19    ; t18a, t29a\n    ITX_MULSUB_2D        10,  5, 11, 17, _, 20, 18, 19, 1 ; t26a, t21a\n    psubd               m11, m0, m1   ; t23\n    paddd                m0, m1       ; t16\n    paddd                m1, m16, m8  ; t17a\n    psubd               m16, m8, m16  ; t22a\n    psubd                m8, m15, m9  ; t24\n    paddd               m15, m9       ; t31\n    psubd                m9, m3, m14  ; t25a\n    paddd               m14, m3       ; t30a\n    paddd                m3, m6, m13  ; t19a\n    psubd                m6, m13, m6  ; t20a\n    paddd               m13, m10, m4  ; t29\n    psubd               m10, m4, m10  ; t26\n    psubd                m4, m12, m2  ; t27a\n    paddd               m12, m2       ; t28a\n    paddd                m2, m7, m5   ; t18\n    psubd                m7, m5       ; t21\n    REPX    {pmulld x, m21}, m10, m8, m4, m9, m7, m11, m6, m16\n    mova         [r4+64* 0], m0\n    mova         [r4+64* 1], m1\n    mova         [r4+64* 2], m2\n    mova         [r4+64* 3], m3\n    mova         [r4+64*12], m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:29", "text": "paddd                m1, m16, m8  ; t17a\n    psubd               m16, m8, m16  ; t22a\n    psubd                m8, m15, m9  ; t24\n    paddd               m15, m9       ; t31\n    psubd                m9, m3, m14  ; t25a\n    paddd               m14, m3       ; t30a\n    paddd                m3, m6, m13  ; t19a\n    psubd                m6, m13, m6  ; t20a\n    paddd               m13, m10, m4  ; t29\n    psubd               m10, m4, m10  ; t26\n    psubd                m4, m12, m2  ; t27a\n    paddd               m12, m2       ; t28a\n    paddd                m2, m7, m5   ; t18\n    psubd                m7, m5       ; t21\n    REPX    {pmulld x, m21}, m10, m8, m4, m9, m7, m11, m6, m16\n    mova         [r4+64* 0], m0\n    mova         [r4+64* 1], m1\n    mova         [r4+64* 2], m2\n    mova         [r4+64* 3], m3\n    mova         [r4+64*12], m12\n    mova         [r4+64*13], m13\n    mova         [r4+64*14], m14\n    mova         [r4+64*15], m15\n    REPX    {paddd  x, m20}, m10, m8, m4, m9\n    psubd                m5, m10, m7  ; t21a\n    paddd               m10, m7       ; t26a\n    psubd                m7, m8, m11  ; t23a\n    paddd                m8, m11      ; t24a\n    REPX    {psrad  x, 14 }, m5, m10, m7, m8\n    paddd               m11, m4, m6   ; t27\n    psubd                m4, m6       ; t20\n    psubd                m6, m9, m16  ; t22\n    paddd                m9, m16      ; t25\n    REPX    {psrad  x, 14 }, m11, m4, m6, m9\n    mova         [r4+64* 4], m4\n    mova         [r4+64* 5], m5\n    mova         [r4+64* 6], m6\n    mova         [r4+64* 7], m7\n    mova         [r4+64* 8], m8\n    mova         [r4+64* 9], m9\n    mova         [r4+64*10], m10\n    mova         [r4+64*11], m11\n    ret\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 1121, "line_end": 1165}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_16bpp_avx512.asm:1", "text": ";******************************************************************************\n;* VP9 IDCT SIMD optimizations\n;*\n;* Copyright (C) 2025 Two Orioles, LLC\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64 && HAVE_AVX512ICL_EXTERNAL\n\nSECTION_RODATA 64\n\n; Thw following set of constants are ordered to form the\n; qword shuffle mask { 0,  2,  4,  6,  1,  3,  5,  7 }\n%define deintq_perm pd_5520\npd_5520:     dd 5520\npd_9760:     dd 9760\npd_10394:    dd 10394\npd_15426:    dd 15426\npd_804:      dd 804\npd_2404:     dd 2404\npd_6270:     dd 6270\npd_9102:     dd 9102\npd_11585:    dd 11585\npd_12665:    dd 12665\npd_7723:     dd 7723\npd_14811:    dd 14811\npd_7005:     dd 7005\npd_14053:    dd 14053\npd_8423:     dd 8423\npd_13623:    dd 13623\n\npixel_clip:  times 2 dw 0x7c00\npixel_clip6: dd 2031648 ; 32 + (pixel_clip << 6)\npd_532480:   dd 532480  ; 8192 + (32 << 14)\npd_8192:     dd 8192\n\npd_1606:     dd 1606\npd_3196:     dd 3196\npd_3981:     dd 3981\npd_4756:     dd 4756\npd_11003:    dd 11003\npd_12140:    dd 12140\npd_13160:    dd 13160", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "license": "LGPL-2.1", "commit": "eda0ac7e5f09e179bcdc946ddef543e8c44a4792", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eda0ac7e5f09e179bcdc946ddef543e8c44a4792/libavcodec/x86/vp9itxfm_16bpp_avx512.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_template.asm:1", "text": ";******************************************************************************\n;* VP9 IDCT SIMD optimizations\n;*\n;* Copyright (C) 2013 Clément Bœsch <u pkh me>\n;* Copyright (C) 2013 Ronald S. Bultje <rsbultje gmail com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%macro VP9_IWHT4_1D 0\n    SWAP                 1, 2, 3\n    paddw               m0, m2\n    psubw               m3, m1\n    psubw               m4, m0, m3\n    psraw               m4, 1\n    psubw               m5, m4, m1\n    SWAP                 5, 1\n    psubw               m4, m2\n    SWAP                 4, 2\n    psubw               m0, m1\n    paddw               m3, m2\n    SWAP                 3, 2, 1\n%endmacro\n\n; (a*x + b*y + round) >> shift\n%macro VP9_MULSUB_2W_2X 5 ; dst1, dst2/src, round, coefs1, coefs2\n    pmaddwd            m%1, m%2, %4\n    pmaddwd            m%2,  %5\n    paddd              m%1,  %3\n    paddd              m%2,  %3\n    psrad              m%1,  14\n    psrad              m%2,  14\n%endmacro\n\n%macro VP9_MULSUB_2W_4X 7 ; dst1, dst2, coef1, coef2, rnd, tmp1/src, tmp2\n    VP9_MULSUB_2W_2X    %7,  %6,  %5, [pw_m%3_%4], [pw_%4_%3]\n    VP9_MULSUB_2W_2X    %1,  %2,  %5, [pw_m%3_%4], [pw_%4_%3]\n    packssdw           m%1, m%7\n    packssdw           m%2, m%6\n%endmacro\n\n%macro VP9_UNPACK_MULSUB_2W_4X 7-9 ; dst1, dst2, (src1, src2,) coef1, coef2, rnd, tmp1, tmp2\n%if %0 == 7\n    punpckhwd          m%6, m%2, m%1\n    punpcklwd          m%2, m%1\n    VP9_MULSUB_2W_4X   %1, %2, %3, %4, %5, %6, %7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_template.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_template.asm:2", "text": "pmaddwd            m%1, m%2, %4\n    pmaddwd            m%2,  %5\n    paddd              m%1,  %3\n    paddd              m%2,  %3\n    psrad              m%1,  14\n    psrad              m%2,  14\n%endmacro\n\n%macro VP9_MULSUB_2W_4X 7 ; dst1, dst2, coef1, coef2, rnd, tmp1/src, tmp2\n    VP9_MULSUB_2W_2X    %7,  %6,  %5, [pw_m%3_%4], [pw_%4_%3]\n    VP9_MULSUB_2W_2X    %1,  %2,  %5, [pw_m%3_%4], [pw_%4_%3]\n    packssdw           m%1, m%7\n    packssdw           m%2, m%6\n%endmacro\n\n%macro VP9_UNPACK_MULSUB_2W_4X 7-9 ; dst1, dst2, (src1, src2,) coef1, coef2, rnd, tmp1, tmp2\n%if %0 == 7\n    punpckhwd          m%6, m%2, m%1\n    punpcklwd          m%2, m%1\n    VP9_MULSUB_2W_4X   %1, %2, %3, %4, %5, %6, %7\n%else\n    punpckhwd          m%8, m%4, m%3\n    punpcklwd          m%2, m%4, m%3\n    VP9_MULSUB_2W_4X   %1, %2, %5, %6, %7, %8, %9\n%endif\n%endmacro\n\n%macro VP9_IDCT4_1D_FINALIZE 0\n    SUMSUB_BA            w, 3, 2, 4                         ; m3=t3+t0, m2=-t3+t0\n    SUMSUB_BA            w, 1, 0, 4                         ; m1=t2+t1, m0=-t2+t1\n    SWAP                 0, 3, 2                            ; 3102 -> 0123\n%endmacro\n\n%macro VP9_IDCT4_1D 0\n%if cpuflag(ssse3)\n    SUMSUB_BA            w, 2, 0, 4                         ; m2=IN(0)+IN(2) m0=IN(0)-IN(2)\n    pmulhrsw            m2, m6                              ; m2=t0\n    pmulhrsw            m0, m6                              ; m0=t1\n%else ; <= sse2\n    VP9_UNPACK_MULSUB_2W_4X 0, 2, 11585, 11585, m7, 4, 5    ; m0=t1, m1=t0\n%endif\n    VP9_UNPACK_MULSUB_2W_4X 1, 3, 15137, 6270, m7, 4, 5     ; m1=t2, m3=t3\n    VP9_IDCT4_1D_FINALIZE\n%endmacro\n\n%macro VP9_IADST4_1D 0\n    movq2dq           xmm0, m0\n    movq2dq           xmm1, m1\n    movq2dq           xmm2, m2\n    movq2dq           xmm3, m3\n%if cpuflag(ssse3)\n    paddw               m3, m0\n%endif\n    punpcklwd         xmm0, xmm1\n    punpcklwd         xmm2, xmm3\n    pmaddwd           xmm1, xmm0, [pw_5283_13377]\n    pmaddwd           xmm4, xmm0, [pw_9929_13377]\n%if notcpuflag(ssse3)\n    pmaddwd           xmm6, xmm0, [pw_13377_0]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_template.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_template.asm:3", "text": "%endif\n    VP9_UNPACK_MULSUB_2W_4X 1, 3, 15137, 6270, m7, 4, 5     ; m1=t2, m3=t3\n    VP9_IDCT4_1D_FINALIZE\n%endmacro\n\n%macro VP9_IADST4_1D 0\n    movq2dq           xmm0, m0\n    movq2dq           xmm1, m1\n    movq2dq           xmm2, m2\n    movq2dq           xmm3, m3\n%if cpuflag(ssse3)\n    paddw               m3, m0\n%endif\n    punpcklwd         xmm0, xmm1\n    punpcklwd         xmm2, xmm3\n    pmaddwd           xmm1, xmm0, [pw_5283_13377]\n    pmaddwd           xmm4, xmm0, [pw_9929_13377]\n%if notcpuflag(ssse3)\n    pmaddwd           xmm6, xmm0, [pw_13377_0]\n%endif\n    pmaddwd           xmm0, [pw_15212_m13377]\n    pmaddwd           xmm3, xmm2, [pw_15212_9929]\n%if notcpuflag(ssse3)\n    pmaddwd           xmm7, xmm2, [pw_m13377_13377]\n%endif\n    pmaddwd           xmm2, [pw_m5283_m15212]\n%if cpuflag(ssse3)\n    psubw               m3, m2\n%else\n    paddd             xmm6, xmm7\n%endif\n    paddd             xmm0, xmm2\n    paddd             xmm3, xmm5\n    paddd             xmm2, xmm5\n%if notcpuflag(ssse3)\n    paddd             xmm6, xmm5\n%endif\n    paddd             xmm1, xmm3\n    paddd             xmm0, xmm3\n    paddd             xmm4, xmm2\n    psrad             xmm1, 14\n    psrad             xmm0, 14\n    psrad             xmm4, 14\n%if cpuflag(ssse3)\n    pmulhrsw            m3, [pw_13377x2]        ; out2\n%else\n    psrad             xmm6, 14\n%endif\n    packssdw          xmm0, xmm0\n    packssdw          xmm1, xmm1\n    packssdw          xmm4, xmm4\n%if notcpuflag(ssse3)\n    packssdw          xmm6, xmm6\n%endif\n    movdq2q             m0, xmm0                ; out3\n    movdq2q             m1, xmm1                ; out0\n    movdq2q             m2, xmm4                ; out1\n%if notcpuflag(ssse3)\n    movdq2q             m3, xmm6                ; out2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_template.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9itxfm_template.asm:4", "text": "psrad             xmm1, 14\n    psrad             xmm0, 14\n    psrad             xmm4, 14\n%if cpuflag(ssse3)\n    pmulhrsw            m3, [pw_13377x2]        ; out2\n%else\n    psrad             xmm6, 14\n%endif\n    packssdw          xmm0, xmm0\n    packssdw          xmm1, xmm1\n    packssdw          xmm4, xmm4\n%if notcpuflag(ssse3)\n    packssdw          xmm6, xmm6\n%endif\n    movdq2q             m0, xmm0                ; out3\n    movdq2q             m1, xmm1                ; out0\n    movdq2q             m2, xmm4                ; out1\n%if notcpuflag(ssse3)\n    movdq2q             m3, xmm6                ; out2\n%endif\n    SWAP                 0, 1, 2, 3\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9itxfm_template.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9itxfm_template.asm", "line_start": 121, "line_end": 142}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:1", "text": ";******************************************************************************\n;* VP9 loop filter SIMD optimizations\n;*\n;* Copyright (C) 2013-2014 Clément Bœsch <u pkh me>\n;* Copyright (C) 2014 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern pb_3\ncextern pb_80\n\npb_4:   times 16 db 0x04\npb_10:  times 16 db 0x10\npb_40:  times 16 db 0x40\npb_81:  times 16 db 0x81\npb_f8:  times 16 db 0xf8\npb_fe:  times 16 db 0xfe\npb_ff:  times 16 db 0xff\n\ncextern pw_4\ncextern pw_8\n\n; with mix functions, two 8-bit thresholds are stored in a 16-bit storage,\n; the following mask is used to splat both in the same register\nmask_mix: times 8 db 0\n          times 8 db 1\n\nmask_mix84: times 8 db 0xff\n            times 8 db 0x00\nmask_mix48: times 8 db 0x00\n            times 8 db 0xff\n\nSECTION .text\n\n%macro SCRATCH 3\n%ifdef m8\n    SWAP                %1, %2\n%else\n    mova              [%3], m%1\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:2", "text": "; with mix functions, two 8-bit thresholds are stored in a 16-bit storage,\n; the following mask is used to splat both in the same register\nmask_mix: times 8 db 0\n          times 8 db 1\n\nmask_mix84: times 8 db 0xff\n            times 8 db 0x00\nmask_mix48: times 8 db 0x00\n            times 8 db 0xff\n\nSECTION .text\n\n%macro SCRATCH 3\n%ifdef m8\n    SWAP                %1, %2\n%else\n    mova              [%3], m%1\n%endif\n%endmacro\n\n%macro UNSCRATCH 3\n%ifdef m8\n    SWAP                %1, %2\n%else\n    mova               m%1, [%3]\n%endif\n%endmacro\n\n; %1 = abs(%2-%3)\n%macro ABSSUB 4 ; dst, src1 (RO), src2 (RO), tmp\n%ifdef m8\n    psubusb             %1, %3, %2\n    psubusb             %4, %2, %3\n%else\n    mova                %1, %3\n    mova                %4, %2\n    psubusb             %1, %2\n    psubusb             %4, %3\n%endif\n    por                 %1, %4\n%endmacro\n\n; %1 = %1>%2\n%macro CMP_GT 2-3 ; src/dst, cmp, pb_80\n%if %0 == 3\n    pxor                %1, %3\n%endif\n    pcmpgtb             %1, %2\n%endmacro\n\n; %1 = abs(%2-%3) > %4\n%macro ABSSUB_GT 5-6 [pb_80]; dst, src1, src2, cmp, tmp, [pb_80]\n    ABSSUB              %1, %2, %3, %5      ; dst = abs(src1-src2)\n    CMP_GT              %1, %4, %6          ; dst > cmp\n%endmacro\n\n%macro MASK_APPLY 4 ; %1=new_data/dst %2=old_data %3=mask %4=tmp\n    pand                %1, %3              ; new &= mask\n    pandn               %4, %3, %2          ; tmp = ~mask & old", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:3", "text": "por                 %1, %4\n%endmacro\n\n; %1 = %1>%2\n%macro CMP_GT 2-3 ; src/dst, cmp, pb_80\n%if %0 == 3\n    pxor                %1, %3\n%endif\n    pcmpgtb             %1, %2\n%endmacro\n\n; %1 = abs(%2-%3) > %4\n%macro ABSSUB_GT 5-6 [pb_80]; dst, src1, src2, cmp, tmp, [pb_80]\n    ABSSUB              %1, %2, %3, %5      ; dst = abs(src1-src2)\n    CMP_GT              %1, %4, %6          ; dst > cmp\n%endmacro\n\n%macro MASK_APPLY 4 ; %1=new_data/dst %2=old_data %3=mask %4=tmp\n    pand                %1, %3              ; new &= mask\n    pandn               %4, %3, %2          ; tmp = ~mask & old\n    por                 %1, %4              ; new&mask | old&~mask\n%endmacro\n\n%macro UNPACK 4\n%ifdef m8\n    punpck%1bw          %2, %3, %4\n%else\n    mova                %2, %3\n    punpck%1bw          %2, %4\n%endif\n%endmacro\n\n%macro FILTER_SUBx2_ADDx2 11 ; %1=dst %2=h/l %3=cache %4=stack_off %5=sub1 %6=sub2 %7=add1\n                             ; %8=add2 %9=rshift, [unpack], [unpack_is_mem_on_x86_32]\n    psubw               %3, [rsp+%4+%5*mmsize*2]\n    psubw               %3, [rsp+%4+%6*mmsize*2]\n    paddw               %3, [rsp+%4+%7*mmsize*2]\n%ifnidn %10, \"\"\n%if %11 == 0\n    punpck%2bw          %1, %10, m0\n%else\n    UNPACK          %2, %1, %10, m0\n%endif\n    mova [rsp+%4+%8*mmsize*2], %1\n    paddw               %3, %1\n%else\n    paddw               %3, [rsp+%4+%8*mmsize*2]\n%endif\n    psraw               %1, %3, %9\n%endmacro\n\n; FIXME interleave l/h better (for instruction pairing)\n%macro FILTER_INIT 9 ; tmp1, tmp2, cacheL, cacheH, dstp, stack_off, filterid, mask, source\n    FILTER%7_INIT       %1, l, %3, %6 +      0\n    FILTER%7_INIT       %2, h, %4, %6 + mmsize\n    packuswb            %1, %2\n    MASK_APPLY          %1, %9, %8, %2\n    mova                %5, %1\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:4", "text": "%else\n    UNPACK          %2, %1, %10, m0\n%endif\n    mova [rsp+%4+%8*mmsize*2], %1\n    paddw               %3, %1\n%else\n    paddw               %3, [rsp+%4+%8*mmsize*2]\n%endif\n    psraw               %1, %3, %9\n%endmacro\n\n; FIXME interleave l/h better (for instruction pairing)\n%macro FILTER_INIT 9 ; tmp1, tmp2, cacheL, cacheH, dstp, stack_off, filterid, mask, source\n    FILTER%7_INIT       %1, l, %3, %6 +      0\n    FILTER%7_INIT       %2, h, %4, %6 + mmsize\n    packuswb            %1, %2\n    MASK_APPLY          %1, %9, %8, %2\n    mova                %5, %1\n%endmacro\n\n\n%macro FILTER_UPDATE 12-16 \"\", \"\", \"\", 0 ; tmp1, tmp2, cacheL, cacheH, dstp, stack_off, -, -, +, +, rshift,\n                                         ; mask, [source], [unpack + src], [unpack_is_mem_on_x86_32]\n; FIXME interleave this properly with the subx2/addx2\n%ifnidn %15, \"\"\n%if %16 == 0 || ARCH_X86_64\n    mova               %14, %15\n%endif\n%endif\n    FILTER_SUBx2_ADDx2  %1, l, %3, %6 +      0, %7, %8, %9, %10, %11, %14, %16\n    FILTER_SUBx2_ADDx2  %2, h, %4, %6 + mmsize, %7, %8, %9, %10, %11, %14, %16\n    packuswb            %1, %2\n%ifnidn %13, \"\"\n    MASK_APPLY          %1, %13, %12, %2\n%else\n    MASK_APPLY          %1, %5, %12, %2\n%endif\n    mova                %5, %1\n%endmacro\n\n%macro SRSHIFT3B_2X 4 ; reg1, reg2, [pb_10], tmp\n    mova                %4, [pb_f8]\n    pand                %1, %4\n    pand                %2, %4\n    psrlq               %1, 3\n    psrlq               %2, 3\n    pxor                %1, %3\n    pxor                %2, %3\n    psubb               %1, %3\n    psubb               %2, %3\n%endmacro\n\n%macro EXTRACT_POS_NEG 3 ; i8, neg, pos\n    pxor                %3, %3\n    pxor                %2, %2\n    pcmpgtb             %3, %1                          ; i8 < 0 mask\n    psubb               %2, %1                          ; neg values (only the originally - will be kept)\n    pand                %2, %3                          ; negative values of i8 (but stored as +)\n    pandn               %3, %1                          ; positive values of i8\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:5", "text": "%macro SRSHIFT3B_2X 4 ; reg1, reg2, [pb_10], tmp\n    mova                %4, [pb_f8]\n    pand                %1, %4\n    pand                %2, %4\n    psrlq               %1, 3\n    psrlq               %2, 3\n    pxor                %1, %3\n    pxor                %2, %3\n    psubb               %1, %3\n    psubb               %2, %3\n%endmacro\n\n%macro EXTRACT_POS_NEG 3 ; i8, neg, pos\n    pxor                %3, %3\n    pxor                %2, %2\n    pcmpgtb             %3, %1                          ; i8 < 0 mask\n    psubb               %2, %1                          ; neg values (only the originally - will be kept)\n    pand                %2, %3                          ; negative values of i8 (but stored as +)\n    pandn               %3, %1                          ; positive values of i8\n%endmacro\n\n; clip_u8(u8 + i8)\n%macro SIGN_ADD 4 ; dst, u8, i8, tmp1\n    EXTRACT_POS_NEG     %3, %4, %1\n    paddusb             %1, %2                          ; add the positives\n    psubusb             %1, %4                          ; sub the negatives\n%endmacro\n\n; clip_u8(u8 - i8)\n%macro SIGN_SUB 4 ; dst, u8, i8, tmp1\n    EXTRACT_POS_NEG     %3, %1, %4\n    paddusb             %1, %2                          ; add the negatives\n    psubusb             %1, %4                          ; sub the positives\n%endmacro\n\n%macro FILTER6_INIT 4 ; %1=dst %2=h/l %3=cache, %4=stack_off\n    UNPACK          %2, %1, rp3, m0                     ; p3: B->W\n    mova [rsp+%4+0*mmsize*2], %1\n    paddw               %3, %1, %1                      ; p3*2\n    paddw               %3, %1                          ; p3*3\n    punpck%2bw          %1, m1,  m0                     ; p2: B->W\n    mova [rsp+%4+1*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2\n    paddw               %3, %1                          ; p3*3 + p2*2\n    UNPACK          %2, %1, rp1, m0                     ; p1: B->W\n    mova [rsp+%4+2*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2*2 + p1\n    UNPACK          %2, %1, rp0, m0                     ; p0: B->W\n    mova [rsp+%4+3*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2*2 + p1 + p0\n    UNPACK          %2, %1, rq0, m0                     ; q0: B->W\n    mova [rsp+%4+4*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2*2 + p1 + p0 + q0\n    paddw               %3, [pw_4]                      ; p3*3 + p2*2 + p1 + p0 + q0 + 4\n    psraw               %1, %3, 3                       ; (p3*3 + p2*2 + p1 + p0 + q0 + 4) >> 3\n%endmacro\n\n%macro FILTER14_INIT 4 ; %1=dst %2=h/l %3=cache, %4=stack_off\n    punpck%2bw          %1, m2, m0                      ; p7: B->W\n    mova [rsp+%4+ 8*mmsize*2], %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:6", "text": "punpck%2bw          %1, m1,  m0                     ; p2: B->W\n    mova [rsp+%4+1*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2\n    paddw               %3, %1                          ; p3*3 + p2*2\n    UNPACK          %2, %1, rp1, m0                     ; p1: B->W\n    mova [rsp+%4+2*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2*2 + p1\n    UNPACK          %2, %1, rp0, m0                     ; p0: B->W\n    mova [rsp+%4+3*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2*2 + p1 + p0\n    UNPACK          %2, %1, rq0, m0                     ; q0: B->W\n    mova [rsp+%4+4*mmsize*2], %1\n    paddw               %3, %1                          ; p3*3 + p2*2 + p1 + p0 + q0\n    paddw               %3, [pw_4]                      ; p3*3 + p2*2 + p1 + p0 + q0 + 4\n    psraw               %1, %3, 3                       ; (p3*3 + p2*2 + p1 + p0 + q0 + 4) >> 3\n%endmacro\n\n%macro FILTER14_INIT 4 ; %1=dst %2=h/l %3=cache, %4=stack_off\n    punpck%2bw          %1, m2, m0                      ; p7: B->W\n    mova [rsp+%4+ 8*mmsize*2], %1\n    psllw               %3, %1, 3                       ; p7*8\n    psubw               %3, %1                          ; p7*7\n    punpck%2bw          %1, m3, m0                      ; p6: B->W\n    mova [rsp+%4+ 9*mmsize*2], %1\n    paddw               %3, %1                          ; p7*7 + p6\n    paddw               %3, %1                          ; p7*7 + p6*2\n    UNPACK          %2, %1, rp5, m0                     ; p5: B->W\n    mova [rsp+%4+10*mmsize*2], %1\n    paddw               %3, %1                          ; p7*7 + p6*2 + p5\n    UNPACK          %2, %1, rp4, m0                     ; p4: B->W\n    mova [rsp+%4+11*mmsize*2], %1\n    paddw               %3, %1                          ; p7*7 + p6*2 + p5 + p4\n    paddw               %3, [rsp+%4+ 0*mmsize*2]        ; p7*7 + p6*2 + p5 + p4 + p3\n    paddw               %3, [rsp+%4+ 1*mmsize*2]        ; p7*7 + p6*2 + p5 + .. + p2\n    paddw               %3, [rsp+%4+ 2*mmsize*2]        ; p7*7 + p6*2 + p5 + .. + p1\n    paddw               %3, [rsp+%4+ 3*mmsize*2]        ; p7*7 + p6*2 + p5 + .. + p0\n    paddw               %3, [rsp+%4+ 4*mmsize*2]        ; p7*7 + p6*2 + p5 + .. + p0 + q0\n    paddw               %3, [pw_8]                      ; p7*7 + p6*2 + p5 + .. + p0 + q0 + 8\n    psraw               %1, %3, 4                       ; (p7*7 + p6*2 + p5 + .. + p0 + q0 + 8) >> 4\n%endmacro\n\n%macro TRANSPOSE16x16B 17\n    mova %17, m%16\n    SBUTTERFLY bw,  %1,  %2,  %16\n    SBUTTERFLY bw,  %3,  %4,  %16\n    SBUTTERFLY bw,  %5,  %6,  %16\n    SBUTTERFLY bw,  %7,  %8,  %16\n    SBUTTERFLY bw,  %9,  %10, %16\n    SBUTTERFLY bw,  %11, %12, %16\n    SBUTTERFLY bw,  %13, %14, %16\n    mova m%16,  %17\n    mova  %17, m%14\n    SBUTTERFLY bw,  %15, %16, %14\n    SBUTTERFLY wd,  %1,  %3,  %14\n    SBUTTERFLY wd,  %2,  %4,  %14\n    SBUTTERFLY wd,  %5,  %7,  %14\n    SBUTTERFLY wd,  %6,  %8,  %14\n    SBUTTERFLY wd,  %9,  %11, %14\n    SBUTTERFLY wd,  %10, %12, %14\n    SBUTTERFLY wd,  %13, %15, %14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:7", "text": "%macro TRANSPOSE16x16B 17\n    mova %17, m%16\n    SBUTTERFLY bw,  %1,  %2,  %16\n    SBUTTERFLY bw,  %3,  %4,  %16\n    SBUTTERFLY bw,  %5,  %6,  %16\n    SBUTTERFLY bw,  %7,  %8,  %16\n    SBUTTERFLY bw,  %9,  %10, %16\n    SBUTTERFLY bw,  %11, %12, %16\n    SBUTTERFLY bw,  %13, %14, %16\n    mova m%16,  %17\n    mova  %17, m%14\n    SBUTTERFLY bw,  %15, %16, %14\n    SBUTTERFLY wd,  %1,  %3,  %14\n    SBUTTERFLY wd,  %2,  %4,  %14\n    SBUTTERFLY wd,  %5,  %7,  %14\n    SBUTTERFLY wd,  %6,  %8,  %14\n    SBUTTERFLY wd,  %9,  %11, %14\n    SBUTTERFLY wd,  %10, %12, %14\n    SBUTTERFLY wd,  %13, %15, %14\n    mova m%14,  %17\n    mova  %17, m%12\n    SBUTTERFLY wd,  %14, %16, %12\n    SBUTTERFLY dq,  %1,  %5,  %12\n    SBUTTERFLY dq,  %2,  %6,  %12\n    SBUTTERFLY dq,  %3,  %7,  %12\n    SBUTTERFLY dq,  %4,  %8,  %12\n    SBUTTERFLY dq,  %9,  %13, %12\n    SBUTTERFLY dq,  %10, %14, %12\n    SBUTTERFLY dq,  %11, %15, %12\n    mova m%12, %17\n    mova  %17, m%8\n    SBUTTERFLY dq,  %12, %16, %8\n    SBUTTERFLY qdq, %1,  %9,  %8\n    SBUTTERFLY qdq, %2,  %10, %8\n    SBUTTERFLY qdq, %3,  %11, %8\n    SBUTTERFLY qdq, %4,  %12, %8\n    SBUTTERFLY qdq, %5,  %13, %8\n    SBUTTERFLY qdq, %6,  %14, %8\n    SBUTTERFLY qdq, %7,  %15, %8\n    mova m%8, %17\n    mova %17, m%1\n    SBUTTERFLY qdq, %8,  %16, %1\n    mova m%1, %17\n    SWAP %2,  %9\n    SWAP %3,  %5\n    SWAP %4,  %13\n    SWAP %6,  %11\n    SWAP %8,  %15\n    SWAP %12, %14\n%endmacro\n\n%macro TRANSPOSE8x8B 13\n    SBUTTERFLY bw,  %1, %2, %7\n    movdq%10 m%7, %9\n    movdqa %11, m%2\n    SBUTTERFLY bw,  %3, %4, %2\n    SBUTTERFLY bw,  %5, %6, %2\n    SBUTTERFLY bw,  %7, %8, %2\n    SBUTTERFLY wd,  %1, %3, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:8", "text": "mova m%8, %17\n    mova %17, m%1\n    SBUTTERFLY qdq, %8,  %16, %1\n    mova m%1, %17\n    SWAP %2,  %9\n    SWAP %3,  %5\n    SWAP %4,  %13\n    SWAP %6,  %11\n    SWAP %8,  %15\n    SWAP %12, %14\n%endmacro\n\n%macro TRANSPOSE8x8B 13\n    SBUTTERFLY bw,  %1, %2, %7\n    movdq%10 m%7, %9\n    movdqa %11, m%2\n    SBUTTERFLY bw,  %3, %4, %2\n    SBUTTERFLY bw,  %5, %6, %2\n    SBUTTERFLY bw,  %7, %8, %2\n    SBUTTERFLY wd,  %1, %3, %2\n    movdqa m%2, %11\n    movdqa %11, m%3\n    SBUTTERFLY wd,  %2, %4, %3\n    SBUTTERFLY wd,  %5, %7, %3\n    SBUTTERFLY wd,  %6, %8, %3\n    SBUTTERFLY dq, %1, %5, %3\n    SBUTTERFLY dq, %2, %6, %3\n    movdqa m%3, %11\n    movh   %12, m%2\n    movhps %13, m%2\n    SBUTTERFLY dq, %3, %7, %2\n    SBUTTERFLY dq, %4, %8, %2\n    SWAP %2, %5\n    SWAP %4, %7\n%endmacro\n\n%macro DEFINE_REAL_P7_TO_Q7 0-1 0\n%define P7 dstq  + 4*mstrideq  + %1\n%define P6 dstq  +   mstride3q + %1\n%define P5 dstq  + 2*mstrideq  + %1\n%define P4 dstq  +   mstrideq  + %1\n%define P3 dstq                + %1\n%define P2 dstq  +    strideq  + %1\n%define P1 dstq  + 2* strideq  + %1\n%define P0 dstq  +    stride3q + %1\n%define Q0 dstq  + 4* strideq  + %1\n%define Q1 dst2q +   mstride3q + %1\n%define Q2 dst2q + 2*mstrideq  + %1\n%define Q3 dst2q +   mstrideq  + %1\n%define Q4 dst2q               + %1\n%define Q5 dst2q +    strideq  + %1\n%define Q6 dst2q + 2* strideq  + %1\n%define Q7 dst2q +    stride3q + %1\n%endmacro\n\n%macro DEFINE_TRANSPOSED_P7_TO_Q7 0-1 0\n%define P3 rsp +  0*mmsize + %1\n%define P2 rsp +  1*mmsize + %1\n%define P1 rsp +  2*mmsize + %1\n%define P0 rsp +  3*mmsize + %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:9", "text": "%define P4 dstq  +   mstrideq  + %1\n%define P3 dstq                + %1\n%define P2 dstq  +    strideq  + %1\n%define P1 dstq  + 2* strideq  + %1\n%define P0 dstq  +    stride3q + %1\n%define Q0 dstq  + 4* strideq  + %1\n%define Q1 dst2q +   mstride3q + %1\n%define Q2 dst2q + 2*mstrideq  + %1\n%define Q3 dst2q +   mstrideq  + %1\n%define Q4 dst2q               + %1\n%define Q5 dst2q +    strideq  + %1\n%define Q6 dst2q + 2* strideq  + %1\n%define Q7 dst2q +    stride3q + %1\n%endmacro\n\n%macro DEFINE_TRANSPOSED_P7_TO_Q7 0-1 0\n%define P3 rsp +  0*mmsize + %1\n%define P2 rsp +  1*mmsize + %1\n%define P1 rsp +  2*mmsize + %1\n%define P0 rsp +  3*mmsize + %1\n%define Q0 rsp +  4*mmsize + %1\n%define Q1 rsp +  5*mmsize + %1\n%define Q2 rsp +  6*mmsize + %1\n%define Q3 rsp +  7*mmsize + %1\n%if mmsize == 16\n%define P7 rsp +  8*mmsize + %1\n%define P6 rsp +  9*mmsize + %1\n%define P5 rsp + 10*mmsize + %1\n%define P4 rsp + 11*mmsize + %1\n%define Q4 rsp + 12*mmsize + %1\n%define Q5 rsp + 13*mmsize + %1\n%define Q6 rsp + 14*mmsize + %1\n%define Q7 rsp + 15*mmsize + %1\n%endif\n%endmacro\n\n; ..............AB -> AAAAAAAABBBBBBBB\n%macro SPLATB_MIX 1-2 [mask_mix]\n%if cpuflag(ssse3)\n    pshufb     %1, %2\n%else\n    punpcklbw  %1, %1\n    punpcklwd  %1, %1\n    punpckldq  %1, %1\n%endif\n%endmacro\n\n%macro LOOPFILTER 5 ; %1=v/h %2=size1 %3+%4=stack, %5=mmx/32bit stack only\n%assign %%ext 0\n%if ARCH_X86_32 || mmsize == 8\n%assign %%ext %5\n%endif\n\n%if UNIX64\ncglobal vp9_loop_filter_%1_%2_ %+ mmsize, 5, 9, 16, %3 + %4 + %%ext, dst, stride, E, I, H, mstride, dst2, stride3, mstride3\n%else\n%if WIN64\ncglobal vp9_loop_filter_%1_%2_ %+ mmsize, 4, 8, 16, %3 + %4 + %%ext, dst, stride, E, I, mstride, dst2, stride3, mstride3\n%else\ncglobal vp9_loop_filter_%1_%2_ %+ mmsize, 2, 6, 16, %3 + %4 + %%ext, dst, stride, mstride, dst2, stride3, mstride3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:10", "text": "%else\n    punpcklbw  %1, %1\n    punpcklwd  %1, %1\n    punpckldq  %1, %1\n%endif\n%endmacro\n\n%macro LOOPFILTER 5 ; %1=v/h %2=size1 %3+%4=stack, %5=mmx/32bit stack only\n%assign %%ext 0\n%if ARCH_X86_32 || mmsize == 8\n%assign %%ext %5\n%endif\n\n%if UNIX64\ncglobal vp9_loop_filter_%1_%2_ %+ mmsize, 5, 9, 16, %3 + %4 + %%ext, dst, stride, E, I, H, mstride, dst2, stride3, mstride3\n%else\n%if WIN64\ncglobal vp9_loop_filter_%1_%2_ %+ mmsize, 4, 8, 16, %3 + %4 + %%ext, dst, stride, E, I, mstride, dst2, stride3, mstride3\n%else\ncglobal vp9_loop_filter_%1_%2_ %+ mmsize, 2, 6, 16, %3 + %4 + %%ext, dst, stride, mstride, dst2, stride3, mstride3\n%define Ed dword r2m\n%define Id dword r3m\n%endif\n%define Hd dword r4m\n%endif\n\n    mov               mstrideq, strideq\n    neg               mstrideq\n\n    lea               stride3q, [strideq*3]\n    lea              mstride3q, [mstrideq*3]\n\n%ifidn %1, h\n%if %2 != 16\n%if mmsize == 16\n%define movx movh\n%else\n%define movx mova\n%endif\n    lea                   dstq, [dstq + 4*strideq - 4]\n%else\n%define movx movu\n    lea                   dstq, [dstq + 4*strideq - 8] ; go from top center (h pos) to center left (v pos)\n%endif\n%else\n    lea                   dstq, [dstq + 4*mstrideq]\n%endif\n    ; FIXME we shouldn't need two dts registers if mmsize == 8\n    lea                  dst2q, [dstq + 8*strideq]\n\n    DEFINE_REAL_P7_TO_Q7\n\n%ifidn %1, h\n    movx                    m0, [P7]\n    movx                    m1, [P6]\n    movx                    m2, [P5]\n    movx                    m3, [P4]\n    movx                    m4, [P3]\n    movx                    m5, [P2]\n%if (ARCH_X86_64 && mmsize == 16) || %2 > 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:11", "text": "%else\n%define movx movu\n    lea                   dstq, [dstq + 4*strideq - 8] ; go from top center (h pos) to center left (v pos)\n%endif\n%else\n    lea                   dstq, [dstq + 4*mstrideq]\n%endif\n    ; FIXME we shouldn't need two dts registers if mmsize == 8\n    lea                  dst2q, [dstq + 8*strideq]\n\n    DEFINE_REAL_P7_TO_Q7\n\n%ifidn %1, h\n    movx                    m0, [P7]\n    movx                    m1, [P6]\n    movx                    m2, [P5]\n    movx                    m3, [P4]\n    movx                    m4, [P3]\n    movx                    m5, [P2]\n%if (ARCH_X86_64 && mmsize == 16) || %2 > 16\n    movx                    m6, [P1]\n%endif\n    movx                    m7, [P0]\n%ifdef m8\n    movx                    m8, [Q0]\n    movx                    m9, [Q1]\n    movx                   m10, [Q2]\n    movx                   m11, [Q3]\n    movx                   m12, [Q4]\n    movx                   m13, [Q5]\n    movx                   m14, [Q6]\n    movx                   m15, [Q7]\n    DEFINE_TRANSPOSED_P7_TO_Q7\n%if %2 == 16\n    TRANSPOSE16x16B 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, [rsp]\n    mova           [P7],  m0\n    mova           [P6],  m1\n    mova           [P5],  m2\n    mova           [P4],  m3\n%else ; %2 == 44/48/84/88\n    ; 8x16 transpose\n    punpcklbw        m0,  m1\n    punpcklbw        m2,  m3\n    punpcklbw        m4,  m5\n    punpcklbw        m6,  m7\n    punpcklbw        m8,  m9\n    punpcklbw       m10, m11\n    punpcklbw       m12, m13\n    punpcklbw       m14, m15\n    TRANSPOSE8x8W     0, 2, 4, 6, 8, 10, 12, 14, 15\n    SWAP              0,  4\n    SWAP              2,  5\n    SWAP              0,  6\n    SWAP              0,  7\n    SWAP             10,  9\n    SWAP             12, 10\n    SWAP             14, 11\n%endif ; %2\n    mova           [P3],  m4\n    mova           [P2],  m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:12", "text": "; 8x16 transpose\n    punpcklbw        m0,  m1\n    punpcklbw        m2,  m3\n    punpcklbw        m4,  m5\n    punpcklbw        m6,  m7\n    punpcklbw        m8,  m9\n    punpcklbw       m10, m11\n    punpcklbw       m12, m13\n    punpcklbw       m14, m15\n    TRANSPOSE8x8W     0, 2, 4, 6, 8, 10, 12, 14, 15\n    SWAP              0,  4\n    SWAP              2,  5\n    SWAP              0,  6\n    SWAP              0,  7\n    SWAP             10,  9\n    SWAP             12, 10\n    SWAP             14, 11\n%endif ; %2\n    mova           [P3],  m4\n    mova           [P2],  m5\n    mova           [P1],  m6\n    mova           [P0],  m7\n    mova           [Q0],  m8\n    mova           [Q1],  m9\n    mova           [Q2], m10\n    mova           [Q3], m11\n%if %2 == 16\n    mova           [Q4], m12\n    mova           [Q5], m13\n    mova           [Q6], m14\n    mova           [Q7], m15\n%endif ; %2\n%else ; x86-32\n%if %2 == 16\n    TRANSPOSE8x8B    0, 1, 2, 3, 4, 5, 6, 7, [P1], u, [rsp+%3+%4], [rsp+64], [rsp+80]\n    DEFINE_TRANSPOSED_P7_TO_Q7\n    movh          [P7], m0\n    movh          [P5], m1\n    movh          [P3], m2\n    movh          [P1], m3\n    movh          [Q2], m5\n    movh          [Q4], m6\n    movh          [Q6], m7\n    movhps        [P6], m0\n    movhps        [P4], m1\n    movhps        [P2], m2\n    movhps        [P0], m3\n    movhps        [Q3], m5\n    movhps        [Q5], m6\n    movhps        [Q7], m7\n    DEFINE_REAL_P7_TO_Q7\n    movx                    m0, [Q0]\n    movx                    m1, [Q1]\n    movx                    m2, [Q2]\n    movx                    m3, [Q3]\n    movx                    m4, [Q4]\n    movx                    m5, [Q5]\n    movx                    m7, [Q7]\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [Q6], u, [rsp+%3+%4], [rsp+72], [rsp+88]\n    DEFINE_TRANSPOSED_P7_TO_Q7 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:13", "text": "movh          [Q2], m5\n    movh          [Q4], m6\n    movh          [Q6], m7\n    movhps        [P6], m0\n    movhps        [P4], m1\n    movhps        [P2], m2\n    movhps        [P0], m3\n    movhps        [Q3], m5\n    movhps        [Q5], m6\n    movhps        [Q7], m7\n    DEFINE_REAL_P7_TO_Q7\n    movx                    m0, [Q0]\n    movx                    m1, [Q1]\n    movx                    m2, [Q2]\n    movx                    m3, [Q3]\n    movx                    m4, [Q4]\n    movx                    m5, [Q5]\n    movx                    m7, [Q7]\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [Q6], u, [rsp+%3+%4], [rsp+72], [rsp+88]\n    DEFINE_TRANSPOSED_P7_TO_Q7 8\n    movh          [P7], m0\n    movh          [P5], m1\n    movh          [P3], m2\n    movh          [P1], m3\n    movh          [Q2], m5\n    movh          [Q4], m6\n    movh          [Q6], m7\n    movhps        [P6], m0\n    movhps        [P4], m1\n    movhps        [P2], m2\n    movhps        [P0], m3\n    movhps        [Q3], m5\n    movhps        [Q5], m6\n    movhps        [Q7], m7\n    DEFINE_TRANSPOSED_P7_TO_Q7\n%elif %2 > 16 ; %2 == 44/48/84/88\n    punpcklbw        m0, m1\n    punpcklbw        m2, m3\n    punpcklbw        m4, m5\n    punpcklbw        m6, m7\n    movx             m1, [Q0]\n    movx             m3, [Q1]\n    movx             m5, [Q2]\n    movx             m7, [Q3]\n    punpcklbw        m1, m3\n    punpcklbw        m5, m7\n    movx             m3, [Q4]\n    movx             m7, [Q5]\n    punpcklbw        m3, m7\n    mova          [rsp], m3\n    movx             m3, [Q6]\n    movx             m7, [Q7]\n    punpcklbw        m3, m7\n    DEFINE_TRANSPOSED_P7_TO_Q7\n    TRANSPOSE8x8W     0, 2, 4, 6, 1, 5, 7, 3, [rsp], [Q0], 1\n    mova           [P3],  m0\n    mova           [P2],  m2\n    mova           [P1],  m4\n    mova           [P0],  m6\n    mova           [Q1],  m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:14", "text": "movx             m1, [Q0]\n    movx             m3, [Q1]\n    movx             m5, [Q2]\n    movx             m7, [Q3]\n    punpcklbw        m1, m3\n    punpcklbw        m5, m7\n    movx             m3, [Q4]\n    movx             m7, [Q5]\n    punpcklbw        m3, m7\n    mova          [rsp], m3\n    movx             m3, [Q6]\n    movx             m7, [Q7]\n    punpcklbw        m3, m7\n    DEFINE_TRANSPOSED_P7_TO_Q7\n    TRANSPOSE8x8W     0, 2, 4, 6, 1, 5, 7, 3, [rsp], [Q0], 1\n    mova           [P3],  m0\n    mova           [P2],  m2\n    mova           [P1],  m4\n    mova           [P0],  m6\n    mova           [Q1],  m5\n    mova           [Q2],  m7\n    mova           [Q3],  m3\n%else ; %2 == 4 || %2 == 8\n    SBUTTERFLY       bw, 0, 1, 6\n    SBUTTERFLY       bw, 2, 3, 6\n    SBUTTERFLY       bw, 4, 5, 6\n    mova [rsp+4*mmsize], m5\n    mova             m6, [P1]\n    SBUTTERFLY       bw, 6, 7, 5\n    DEFINE_TRANSPOSED_P7_TO_Q7\n    TRANSPOSE4x4W     0, 2, 4, 6, 5\n    mova           [P3], m0\n    mova           [P2], m2\n    mova           [P1], m4\n    mova           [P0], m6\n    mova             m5, [rsp+4*mmsize]\n    TRANSPOSE4x4W     1, 3, 5, 7, 0\n    mova           [Q0], m1\n    mova           [Q1], m3\n    mova           [Q2], m5\n    mova           [Q3], m7\n%endif ; %2\n%endif ; x86-32/64\n%endif ; %1 == h\n\n    ; calc fm mask\n%if %2 == 16 || mmsize == 8\n%if cpuflag(ssse3)\n    pxor                m0, m0\n%endif\n    SPLATB_REG          m2, I, m0                       ; I I I I ...\n    SPLATB_REG          m3, E, m0                       ; E E E E ...\n%else\n%if cpuflag(ssse3)\n    mova                m0, [mask_mix]\n%endif\n    movd                m2, Id\n    movd                m3, Ed\n    SPLATB_MIX          m2, m0\n    SPLATB_MIX          m3, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:15", "text": "mova           [Q3], m7\n%endif ; %2\n%endif ; x86-32/64\n%endif ; %1 == h\n\n    ; calc fm mask\n%if %2 == 16 || mmsize == 8\n%if cpuflag(ssse3)\n    pxor                m0, m0\n%endif\n    SPLATB_REG          m2, I, m0                       ; I I I I ...\n    SPLATB_REG          m3, E, m0                       ; E E E E ...\n%else\n%if cpuflag(ssse3)\n    mova                m0, [mask_mix]\n%endif\n    movd                m2, Id\n    movd                m3, Ed\n    SPLATB_MIX          m2, m0\n    SPLATB_MIX          m3, m0\n%endif\n    mova                m0, [pb_80]\n    pxor                m2, m0\n    pxor                m3, m0\n%ifdef m8\n%ifidn %1, v\n    mova                m8, [P3]\n    mova                m9, [P2]\n    mova               m10, [P1]\n    mova               m11, [P0]\n    mova               m12, [Q0]\n    mova               m13, [Q1]\n    mova               m14, [Q2]\n    mova               m15, [Q3]\n%else\n    ; In case of horizontal, P3..Q3 are already present in some registers due\n    ; to the previous transpose, so we just swap registers.\n    SWAP                 8,  4, 12\n    SWAP                 9,  5, 13\n    SWAP                10,  6, 14\n    SWAP                11,  7, 15\n%endif\n%define rp3 m8\n%define rp2 m9\n%define rp1 m10\n%define rp0 m11\n%define rq0 m12\n%define rq1 m13\n%define rq2 m14\n%define rq3 m15\n%else\n%define rp3 [P3]\n%define rp2 [P2]\n%define rp1 [P1]\n%define rp0 [P0]\n%define rq0 [Q0]\n%define rq1 [Q1]\n%define rq2 [Q2]\n%define rq3 [Q3]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:16", "text": "SWAP                11,  7, 15\n%endif\n%define rp3 m8\n%define rp2 m9\n%define rp1 m10\n%define rp0 m11\n%define rq0 m12\n%define rq1 m13\n%define rq2 m14\n%define rq3 m15\n%else\n%define rp3 [P3]\n%define rp2 [P2]\n%define rp1 [P1]\n%define rp0 [P0]\n%define rq0 [Q0]\n%define rq1 [Q1]\n%define rq2 [Q2]\n%define rq3 [Q3]\n%endif\n    ABSSUB_GT           m5, rp3, rp2, m2, m7, m0        ; m5 = abs(p3-p2) <= I\n    ABSSUB_GT           m1, rp2, rp1, m2, m7, m0        ; m1 = abs(p2-p1) <= I\n    por                 m5, m1\n    ABSSUB_GT           m1, rp1, rp0, m2, m7, m0        ; m1 = abs(p1-p0) <= I\n    por                 m5, m1\n    ABSSUB_GT           m1, rq0, rq1, m2, m7, m0        ; m1 = abs(q1-q0) <= I\n    por                 m5, m1\n    ABSSUB_GT           m1, rq1, rq2, m2, m7, m0        ; m1 = abs(q2-q1) <= I\n    por                 m5, m1\n    ABSSUB_GT           m1, rq2, rq3, m2, m7, m0        ; m1 = abs(q3-q2) <= I\n    por                 m5, m1\n    ABSSUB              m1, rp0, rq0, m7                ; abs(p0-q0)\n    paddusb             m1, m1                          ; abs(p0-q0) * 2\n    ABSSUB              m2, rp1, rq1, m7                ; abs(p1-q1)\n    pand                m2, [pb_fe]                     ; drop lsb so shift can work\n    psrlq               m2, 1                           ; abs(p1-q1)/2\n    paddusb             m1, m2                          ; abs(p0-q0)*2 + abs(p1-q1)/2\n    pxor                m1, m0\n    pcmpgtb             m1, m3\n    por                 m1, m5                          ; fm final value\n    SWAP                 1, 3\n    pxor                m3, [pb_ff]\n\n    ; (m3: fm, m8..15: p3 p2 p1 p0 q0 q1 q2 q3)\n    ; calc flat8in (if not 44_16) and hev masks\n%if %2 != 44 && %2 != 4\n    mova                m6, [pb_81]                     ; [1 1 1 1 ...] ^ 0x80\n    ABSSUB_GT           m2, rp3, rp0, m6, m5            ; abs(p3 - p0) <= 1\n%ifdef m8\n    mova                m8, [pb_80]\n%define rb80 m8\n%else\n%define rb80 [pb_80]\n%endif\n    ABSSUB_GT           m1, rp2, rp0, m6, m5, rb80      ; abs(p2 - p0) <= 1\n    por                 m2, m1\n    ABSSUB              m4, rp1, rp0, m5                ; abs(p1 - p0)\n%if %2 <= 16\n%if cpuflag(ssse3)\n    pxor                m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:17", "text": "SWAP                 1, 3\n    pxor                m3, [pb_ff]\n\n    ; (m3: fm, m8..15: p3 p2 p1 p0 q0 q1 q2 q3)\n    ; calc flat8in (if not 44_16) and hev masks\n%if %2 != 44 && %2 != 4\n    mova                m6, [pb_81]                     ; [1 1 1 1 ...] ^ 0x80\n    ABSSUB_GT           m2, rp3, rp0, m6, m5            ; abs(p3 - p0) <= 1\n%ifdef m8\n    mova                m8, [pb_80]\n%define rb80 m8\n%else\n%define rb80 [pb_80]\n%endif\n    ABSSUB_GT           m1, rp2, rp0, m6, m5, rb80      ; abs(p2 - p0) <= 1\n    por                 m2, m1\n    ABSSUB              m4, rp1, rp0, m5                ; abs(p1 - p0)\n%if %2 <= 16\n%if cpuflag(ssse3)\n    pxor                m0, m0\n%endif\n    SPLATB_REG          m7, H, m0                       ; H H H H ...\n%else\n    movd                m7, Hd\n    SPLATB_MIX          m7\n%endif\n    pxor                m7, rb80\n    pxor                m4, rb80\n    pcmpgtb             m0, m4, m7                      ; abs(p1 - p0) > H (1/2 hev condition)\n    CMP_GT              m4, m6                          ; abs(p1 - p0) <= 1\n    por                 m2, m4                          ; (flat8in)\n    ABSSUB              m4, rq1, rq0, m1                ; abs(q1 - q0)\n    pxor                m4, rb80\n    pcmpgtb             m5, m4, m7                      ; abs(q1 - q0) > H (2/2 hev condition)\n    por                 m0, m5                          ; hev final value\n    CMP_GT              m4, m6                          ; abs(q1 - q0) <= 1\n    por                 m2, m4                          ; (flat8in)\n    ABSSUB_GT           m1, rq2, rq0, m6, m5, rb80      ; abs(q2 - q0) <= 1\n    por                 m2, m1\n    ABSSUB_GT           m1, rq3, rq0, m6, m5, rb80      ; abs(q3 - q0) <= 1\n    por                 m2, m1                          ; flat8in final value\n    pxor                m2, [pb_ff]\n%if %2 == 84 || %2 == 48\n    pand                m2, [mask_mix%2]\n%endif\n%else\n    mova                m6, [pb_80]\n%if %2 == 44\n    movd                m7, Hd\n    SPLATB_MIX          m7\n%else\n%if cpuflag(ssse3)\n    pxor                m0, m0\n%endif\n    SPLATB_REG          m7, H, m0                       ; H H H H ...\n%endif\n    pxor                m7, m6\n    ABSSUB              m4, rp1, rp0, m1                ; abs(p1 - p0)\n    pxor                m4, m6\n    pcmpgtb             m0, m4, m7                      ; abs(p1 - p0) > H (1/2 hev condition)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:18", "text": "por                 m2, m1                          ; flat8in final value\n    pxor                m2, [pb_ff]\n%if %2 == 84 || %2 == 48\n    pand                m2, [mask_mix%2]\n%endif\n%else\n    mova                m6, [pb_80]\n%if %2 == 44\n    movd                m7, Hd\n    SPLATB_MIX          m7\n%else\n%if cpuflag(ssse3)\n    pxor                m0, m0\n%endif\n    SPLATB_REG          m7, H, m0                       ; H H H H ...\n%endif\n    pxor                m7, m6\n    ABSSUB              m4, rp1, rp0, m1                ; abs(p1 - p0)\n    pxor                m4, m6\n    pcmpgtb             m0, m4, m7                      ; abs(p1 - p0) > H (1/2 hev condition)\n    ABSSUB              m4, rq1, rq0, m1                ; abs(q1 - q0)\n    pxor                m4, m6\n    pcmpgtb             m5, m4, m7                      ; abs(q1 - q0) > H (2/2 hev condition)\n    por                 m0, m5                          ; hev final value\n%endif\n\n%if %2 == 16\n    ; (m0: hev, m2: flat8in, m3: fm, m6: pb_81, m9..15: p2 p1 p0 q0 q1 q2 q3)\n    ; calc flat8out mask\n%ifdef m8\n    mova                m8, [P7]\n    mova                m9, [P6]\n%define rp7 m8\n%define rp6 m9\n%else\n%define rp7 [P7]\n%define rp6 [P6]\n%endif\n    ABSSUB_GT           m1, rp7, rp0, m6, m5            ; abs(p7 - p0) <= 1\n    ABSSUB_GT           m7, rp6, rp0, m6, m5            ; abs(p6 - p0) <= 1\n    por                 m1, m7\n%ifdef m8\n    mova                m8, [P5]\n    mova                m9, [P4]\n%define rp5 m8\n%define rp4 m9\n%else\n%define rp5 [P5]\n%define rp4 [P4]\n%endif\n    ABSSUB_GT           m7, rp5, rp0, m6, m5            ; abs(p5 - p0) <= 1\n    por                 m1, m7\n    ABSSUB_GT           m7, rp4, rp0, m6, m5            ; abs(p4 - p0) <= 1\n    por                 m1, m7\n%ifdef m8\n    mova                m14, [Q4]\n    mova                m15, [Q5]\n%define rq4 m14\n%define rq5 m15\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:19", "text": "por                 m1, m7\n%ifdef m8\n    mova                m8, [P5]\n    mova                m9, [P4]\n%define rp5 m8\n%define rp4 m9\n%else\n%define rp5 [P5]\n%define rp4 [P4]\n%endif\n    ABSSUB_GT           m7, rp5, rp0, m6, m5            ; abs(p5 - p0) <= 1\n    por                 m1, m7\n    ABSSUB_GT           m7, rp4, rp0, m6, m5            ; abs(p4 - p0) <= 1\n    por                 m1, m7\n%ifdef m8\n    mova                m14, [Q4]\n    mova                m15, [Q5]\n%define rq4 m14\n%define rq5 m15\n%else\n%define rq4 [Q4]\n%define rq5 [Q5]\n%endif\n    ABSSUB_GT           m7, rq4, rq0, m6, m5            ; abs(q4 - q0) <= 1\n    por                 m1, m7\n    ABSSUB_GT           m7, rq5, rq0, m6, m5            ; abs(q5 - q0) <= 1\n    por                 m1, m7\n%ifdef m8\n    mova                m14, [Q6]\n    mova                m15, [Q7]\n%define rq6 m14\n%define rq7 m15\n%else\n%define rq6 [Q6]\n%define rq7 [Q7]\n%endif\n    ABSSUB_GT           m7, rq6, rq0, m6, m5            ; abs(q4 - q0) <= 1\n    por                 m1, m7\n    ABSSUB_GT           m7, rq7, rq0, m6, m5            ; abs(q5 - q0) <= 1\n    por                 m1, m7                          ; flat8out final value\n    pxor                m1, [pb_ff]\n%endif\n\n    ; if (fm) {\n    ;     if (out && in) filter_14()\n    ;     else if (in)   filter_6()\n    ;     else if (hev)  filter_2()\n    ;     else           filter_4()\n    ; }\n    ;\n    ; f14:                                                                            fm &  out &  in\n    ; f6:  fm & ~f14 & in        => fm & ~(out & in) & in                          => fm & ~out &  in\n    ; f2:  fm & ~f14 & ~f6 & hev => fm & ~(out & in) & ~(~out & in) & hev          => fm &  ~in &  hev\n    ; f4:  fm & ~f14 & ~f6 & ~f2 => fm & ~(out & in) & ~(~out & in) & ~(~in & hev) => fm &  ~in & ~hev\n\n    ; (m0: hev, [m1: flat8out], [m2: flat8in], m3: fm, m8..15: p5 p4 p1 p0 q0 q1 q6 q7)\n    ; filter2()\n%if %2 != 44 && %2 != 4\n    mova                m6, [pb_80]                     ; already in m6 if 44_16\n    SCRATCH              2, 15, rsp+%3+%4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:20", "text": "pxor                m1, [pb_ff]\n%endif\n\n    ; if (fm) {\n    ;     if (out && in) filter_14()\n    ;     else if (in)   filter_6()\n    ;     else if (hev)  filter_2()\n    ;     else           filter_4()\n    ; }\n    ;\n    ; f14:                                                                            fm &  out &  in\n    ; f6:  fm & ~f14 & in        => fm & ~(out & in) & in                          => fm & ~out &  in\n    ; f2:  fm & ~f14 & ~f6 & hev => fm & ~(out & in) & ~(~out & in) & hev          => fm &  ~in &  hev\n    ; f4:  fm & ~f14 & ~f6 & ~f2 => fm & ~(out & in) & ~(~out & in) & ~(~in & hev) => fm &  ~in & ~hev\n\n    ; (m0: hev, [m1: flat8out], [m2: flat8in], m3: fm, m8..15: p5 p4 p1 p0 q0 q1 q6 q7)\n    ; filter2()\n%if %2 != 44 && %2 != 4\n    mova                m6, [pb_80]                     ; already in m6 if 44_16\n    SCRATCH              2, 15, rsp+%3+%4\n%if %2 == 16\n    SCRATCH              1,  8, rsp+%3+%4+16\n%endif\n%endif\n    pxor                m2, m6, rq0                     ; q0 ^ 0x80\n    pxor                m4, m6, rp0                     ; p0 ^ 0x80\n    psubsb              m2, m4                          ; (signed) q0 - p0\n    pxor                m4, m6, rp1                     ; p1 ^ 0x80\n    pxor                m5, m6, rq1                     ; q1 ^ 0x80\n    psubsb              m4, m5                          ; (signed) p1 - q1\n    paddsb              m4, m2                          ;   (q0 - p0) + (p1 - q1)\n    paddsb              m4, m2                          ; 2*(q0 - p0) + (p1 - q1)\n    paddsb              m4, m2                          ; 3*(q0 - p0) + (p1 - q1)\n    paddsb              m6, m4, [pb_4]                  ; m6: f1 = clip(f + 4, 127)\n    paddsb              m4, [pb_3]                      ; m4: f2 = clip(f + 3, 127)\n%ifdef m8\n    mova                m14, [pb_10]                    ; will be reused in filter4()\n%define rb10 m14\n%else\n%define rb10 [pb_10]\n%endif\n    SRSHIFT3B_2X        m6, m4, rb10, m7                ; f1 and f2 sign byte shift by 3\n    SIGN_SUB            m7, rq0, m6, m5                 ; m7 = q0 - f1\n    SIGN_ADD            m1, rp0, m4, m5                 ; m1 = p0 + f2\n%if %2 != 44 && %2 != 4\n%ifdef m8\n    pandn               m6, m15, m3                     ;  ~mask(in) & mask(fm)\n%else\n    mova                m6, [rsp+%3+%4]\n    pandn               m6, m3\n%endif\n    pand                m6, m0                          ; (~mask(in) & mask(fm)) & mask(hev)\n%else\n    pand                m6, m3, m0\n%endif\n    MASK_APPLY          m7, rq0, m6, m5                 ; m7 = filter2(q0) & mask / we write it in filter4()\n    MASK_APPLY          m1, rp0, m6, m5                 ; m1 = filter2(p0) & mask / we write it in filter4()\n\n    ; (m0: hev, m1: p0', m2: q0-p0, m3: fm, m7: q0', [m8: flat8out], m10..13: p1 p0 q0 q1, m14: pb_10, [m15: flat8in], )\n    ; filter4()", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:21", "text": "%endif\n    SRSHIFT3B_2X        m6, m4, rb10, m7                ; f1 and f2 sign byte shift by 3\n    SIGN_SUB            m7, rq0, m6, m5                 ; m7 = q0 - f1\n    SIGN_ADD            m1, rp0, m4, m5                 ; m1 = p0 + f2\n%if %2 != 44 && %2 != 4\n%ifdef m8\n    pandn               m6, m15, m3                     ;  ~mask(in) & mask(fm)\n%else\n    mova                m6, [rsp+%3+%4]\n    pandn               m6, m3\n%endif\n    pand                m6, m0                          ; (~mask(in) & mask(fm)) & mask(hev)\n%else\n    pand                m6, m3, m0\n%endif\n    MASK_APPLY          m7, rq0, m6, m5                 ; m7 = filter2(q0) & mask / we write it in filter4()\n    MASK_APPLY          m1, rp0, m6, m5                 ; m1 = filter2(p0) & mask / we write it in filter4()\n\n    ; (m0: hev, m1: p0', m2: q0-p0, m3: fm, m7: q0', [m8: flat8out], m10..13: p1 p0 q0 q1, m14: pb_10, [m15: flat8in], )\n    ; filter4()\n    paddsb              m4, m2, m2                      ; 2 * (q0 - p0)\n    paddsb              m2, m4                          ; 3 * (q0 - p0)\n    paddsb              m6, m2, [pb_4]                  ; m6:  f1 = clip(f + 4, 127)\n    paddsb              m2, [pb_3]                      ; m2: f2 = clip(f + 3, 127)\n    SRSHIFT3B_2X        m6, m2, rb10, m4                ; f1 and f2 sign byte shift by 3\n%if %2 != 44 && %2 != 4\n%ifdef m8\n    pandn               m5, m15, m3                     ;               ~mask(in) & mask(fm)\n%else\n    mova                m5, [rsp+%3+%4]\n    pandn               m5, m3\n%endif\n    pandn               m0, m5                          ; ~mask(hev) & (~mask(in) & mask(fm))\n%else\n    pandn               m0, m3\n%endif\n    SIGN_SUB            m5, rq0, m6, m4                 ; q0 - f1\n    MASK_APPLY          m5, m7, m0, m4                  ; filter4(q0) & mask\n    mova                [Q0], m5\n    SIGN_ADD            m7, rp0, m2, m4                 ; p0 + f2\n    MASK_APPLY          m7, m1, m0, m4                  ; filter4(p0) & mask\n    mova                [P0], m7\n    paddb               m6, [pb_80]                     ;\n    pxor                m1, m1                          ;   f=(f1+1)>>1\n    pavgb               m6, m1                          ;\n    psubb               m6, [pb_40]                     ;\n    SIGN_ADD            m1, rp1, m6, m2                 ; p1 + f\n    SIGN_SUB            m4, rq1, m6, m2                 ; q1 - f\n    MASK_APPLY          m1, rp1, m0, m2                 ; m1 = filter4(p1)\n    MASK_APPLY          m4, rq1, m0, m2                 ; m4 = filter4(q1)\n    mova                [P1], m1\n    mova                [Q1], m4\n\n%if %2 != 44 && %2 != 4\n    UNSCRATCH            2, 15, rsp+%3+%4\n%endif\n\n    ; ([m1: flat8out], m2: flat8in, m3: fm, m10..13: p1 p0 q0 q1)\n    ; filter6()\n%if %2 != 44 && %2 != 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:22", "text": "MASK_APPLY          m7, m1, m0, m4                  ; filter4(p0) & mask\n    mova                [P0], m7\n    paddb               m6, [pb_80]                     ;\n    pxor                m1, m1                          ;   f=(f1+1)>>1\n    pavgb               m6, m1                          ;\n    psubb               m6, [pb_40]                     ;\n    SIGN_ADD            m1, rp1, m6, m2                 ; p1 + f\n    SIGN_SUB            m4, rq1, m6, m2                 ; q1 - f\n    MASK_APPLY          m1, rp1, m0, m2                 ; m1 = filter4(p1)\n    MASK_APPLY          m4, rq1, m0, m2                 ; m4 = filter4(q1)\n    mova                [P1], m1\n    mova                [Q1], m4\n\n%if %2 != 44 && %2 != 4\n    UNSCRATCH            2, 15, rsp+%3+%4\n%endif\n\n    ; ([m1: flat8out], m2: flat8in, m3: fm, m10..13: p1 p0 q0 q1)\n    ; filter6()\n%if %2 != 44 && %2 != 4\n    pxor                m0, m0\n%if %2 != 16\n    pand                m3, m2\n%else\n    pand                m2, m3                          ;               mask(fm) & mask(in)\n%ifdef m8\n    pandn               m3, m8, m2                      ; ~mask(out) & (mask(fm) & mask(in))\n%else\n    mova                m3, [rsp+%3+%4+16]\n    pandn               m3, m2\n%endif\n%endif\n%ifdef m8\n    mova               m14, [P3]\n    mova                m9, [Q3]\n%define rp3 m14\n%define rq3 m9\n%else\n%define rp3 [P3]\n%define rq3 [Q3]\n%endif\n    mova                m1, [P2]\n    FILTER_INIT         m4, m5, m6, m7, [P2], %4, 6,             m3,  m1             ; [p2]\n    mova                m1, [Q2]\n    FILTER_UPDATE       m4, m5, m6, m7, [P1], %4, 0, 1, 2, 5, 3, m3,  \"\", rq1, \"\", 1 ; [p1] -p3 -p2 +p1 +q1\n    FILTER_UPDATE       m4, m5, m6, m7, [P0], %4, 0, 2, 3, 6, 3, m3,  \"\", m1         ; [p0] -p3 -p1 +p0 +q2\n    FILTER_UPDATE       m4, m5, m6, m7, [Q0], %4, 0, 3, 4, 7, 3, m3,  \"\", rq3, \"\", 1 ; [q0] -p3 -p0 +q0 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q1], %4, 1, 4, 5, 7, 3, m3,  \"\"             ; [q1] -p2 -q0 +q1 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q2], %4, 2, 5, 6, 7, 3, m3,  m1             ; [q2] -p1 -q1 +q2 +q3\n%endif\n\n%if %2 == 16\n    UNSCRATCH            1,  8, rsp+%3+%4+16\n%endif\n\n    ; (m0: 0, [m1: flat8out], m2: fm & flat8in, m8..15: q2 q3 p1 p0 q0 q1 p3 p2)\n    ; filter14()\n    ;\n    ;                            m2  m3  m8  m9 m14 m15 m10 m11 m12 m13\n    ;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:23", "text": "%endif\n    mova                m1, [P2]\n    FILTER_INIT         m4, m5, m6, m7, [P2], %4, 6,             m3,  m1             ; [p2]\n    mova                m1, [Q2]\n    FILTER_UPDATE       m4, m5, m6, m7, [P1], %4, 0, 1, 2, 5, 3, m3,  \"\", rq1, \"\", 1 ; [p1] -p3 -p2 +p1 +q1\n    FILTER_UPDATE       m4, m5, m6, m7, [P0], %4, 0, 2, 3, 6, 3, m3,  \"\", m1         ; [p0] -p3 -p1 +p0 +q2\n    FILTER_UPDATE       m4, m5, m6, m7, [Q0], %4, 0, 3, 4, 7, 3, m3,  \"\", rq3, \"\", 1 ; [q0] -p3 -p0 +q0 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q1], %4, 1, 4, 5, 7, 3, m3,  \"\"             ; [q1] -p2 -q0 +q1 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q2], %4, 2, 5, 6, 7, 3, m3,  m1             ; [q2] -p1 -q1 +q2 +q3\n%endif\n\n%if %2 == 16\n    UNSCRATCH            1,  8, rsp+%3+%4+16\n%endif\n\n    ; (m0: 0, [m1: flat8out], m2: fm & flat8in, m8..15: q2 q3 p1 p0 q0 q1 p3 p2)\n    ; filter14()\n    ;\n    ;                            m2  m3  m8  m9 m14 m15 m10 m11 m12 m13\n    ;\n    ;                                    q2  q3  p3  p2  p1  p0  q0  q1\n    ; p6  -7                     p7  p6  p5  p4   .   .   .   .   .\n    ; p5  -6  -p7 -p6 +p5 +q1     .   .   .                           .\n    ; p4  -5  -p7 -p5 +p4 +q2     .       .   .                      q2\n    ; p3  -4  -p7 -p4 +p3 +q3     .           .   .                  q3\n    ; p2  -3  -p7 -p3 +p2 +q4     .               .   .              q4\n    ; p1  -2  -p7 -p2 +p1 +q5     .                   .   .          q5\n    ; p0  -1  -p7 -p1 +p0 +q6     .                       .   .      q6\n    ; q0  +0  -p7 -p0 +q0 +q7     .                           .   .  q7\n    ; q1  +1  -p6 -q0 +q1 +q7    q1   .                           .   .\n    ; q2  +2  -p5 -q1 +q2 +q7     .  q2   .                           .\n    ; q3  +3  -p4 -q2 +q3 +q7         .  q3   .                       .\n    ; q4  +4  -p3 -q3 +q4 +q7             .  q4   .                   .\n    ; q5  +5  -p2 -q4 +q5 +q7                 .  q5   .               .\n    ; q6  +6  -p1 -q5 +q6 +q7                     .  q6   .           .\n\n%if %2 == 16\n    pand            m1, m2                                                              ; mask(out) & (mask(fm) & mask(in))\n    mova            m2, [P7]\n    mova            m3, [P6]\n%ifdef m8\n    mova            m8, [P5]\n    mova            m9, [P4]\n%define rp5 m8\n%define rp4 m9\n%define rp5s m8\n%define rp4s m9\n%define rp3s m14\n%define rq4 m8\n%define rq5 m9\n%define rq6 m14\n%define rq7 m15\n%define rq4s m8\n%define rq5s m9\n%define rq6s m14\n%else\n%define rp5 [P5]\n%define rp4 [P4]\n%define rp5s \"\"\n%define rp4s \"\"", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:24", "text": "%ifdef m8\n    mova            m8, [P5]\n    mova            m9, [P4]\n%define rp5 m8\n%define rp4 m9\n%define rp5s m8\n%define rp4s m9\n%define rp3s m14\n%define rq4 m8\n%define rq5 m9\n%define rq6 m14\n%define rq7 m15\n%define rq4s m8\n%define rq5s m9\n%define rq6s m14\n%else\n%define rp5 [P5]\n%define rp4 [P4]\n%define rp5s \"\"\n%define rp4s \"\"\n%define rp3s \"\"\n%define rq4 [Q4]\n%define rq5 [Q5]\n%define rq6 [Q6]\n%define rq7 [Q7]\n%define rq4s \"\"\n%define rq5s \"\"\n%define rq6s \"\"\n%endif\n    FILTER_INIT     m4, m5, m6, m7, [P6], %4, 14,                m1,  m3            ; [p6]\n    FILTER_UPDATE   m4, m5, m6, m7, [P5], %4,  8,  9, 10,  5, 4, m1, rp5s           ; [p5] -p7 -p6 +p5 +q1\n    FILTER_UPDATE   m4, m5, m6, m7, [P4], %4,  8, 10, 11,  6, 4, m1, rp4s           ; [p4] -p7 -p5 +p4 +q2\n    FILTER_UPDATE   m4, m5, m6, m7, [P3], %4,  8, 11,  0,  7, 4, m1, rp3s           ; [p3] -p7 -p4 +p3 +q3\n    FILTER_UPDATE   m4, m5, m6, m7, [P2], %4,  8,  0,  1, 12, 4, m1,  \"\", rq4, [Q4], 1 ; [p2] -p7 -p3 +p2 +q4\n    FILTER_UPDATE   m4, m5, m6, m7, [P1], %4,  8,  1,  2, 13, 4, m1,  \"\", rq5, [Q5], 1 ; [p1] -p7 -p2 +p1 +q5\n    FILTER_UPDATE   m4, m5, m6, m7, [P0], %4,  8,  2,  3, 14, 4, m1,  \"\", rq6, [Q6], 1 ; [p0] -p7 -p1 +p0 +q6\n    FILTER_UPDATE   m4, m5, m6, m7, [Q0], %4,  8,  3,  4, 15, 4, m1,  \"\", rq7, [Q7], 1 ; [q0] -p7 -p0 +q0 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q1], %4,  9,  4,  5, 15, 4, m1,  \"\"            ; [q1] -p6 -q0 +q1 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q2], %4, 10,  5,  6, 15, 4, m1,  \"\"            ; [q2] -p5 -q1 +q2 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q3], %4, 11,  6,  7, 15, 4, m1,  \"\"            ; [q3] -p4 -q2 +q3 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q4], %4,  0,  7, 12, 15, 4, m1, rq4s           ; [q4] -p3 -q3 +q4 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q5], %4,  1, 12, 13, 15, 4, m1, rq5s           ; [q5] -p2 -q4 +q5 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q6], %4,  2, 13, 14, 15, 4, m1, rq6s           ; [q6] -p1 -q5 +q6 +q7\n%endif\n\n%ifidn %1, h\n%if %2 == 16\n    mova                    m0, [P7]\n    mova                    m1, [P6]\n    mova                    m2, [P5]\n    mova                    m3, [P4]\n    mova                    m4, [P3]\n    mova                    m5, [P2]\n%if ARCH_X86_64\n    mova                    m6, [P1]\n%endif\n    mova                    m7, [P0]\n%if ARCH_X86_64\n    mova                    m8, [Q0]\n    mova                    m9, [Q1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:25", "text": "FILTER_UPDATE   m4, m5, m6, m7, [Q4], %4,  0,  7, 12, 15, 4, m1, rq4s           ; [q4] -p3 -q3 +q4 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q5], %4,  1, 12, 13, 15, 4, m1, rq5s           ; [q5] -p2 -q4 +q5 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q6], %4,  2, 13, 14, 15, 4, m1, rq6s           ; [q6] -p1 -q5 +q6 +q7\n%endif\n\n%ifidn %1, h\n%if %2 == 16\n    mova                    m0, [P7]\n    mova                    m1, [P6]\n    mova                    m2, [P5]\n    mova                    m3, [P4]\n    mova                    m4, [P3]\n    mova                    m5, [P2]\n%if ARCH_X86_64\n    mova                    m6, [P1]\n%endif\n    mova                    m7, [P0]\n%if ARCH_X86_64\n    mova                    m8, [Q0]\n    mova                    m9, [Q1]\n    mova                   m10, [Q2]\n    mova                   m11, [Q3]\n    mova                   m12, [Q4]\n    mova                   m13, [Q5]\n    mova                   m14, [Q6]\n    mova                   m15, [Q7]\n    TRANSPOSE16x16B 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, [rsp]\n    DEFINE_REAL_P7_TO_Q7\n    movu  [P7],  m0\n    movu  [P6],  m1\n    movu  [P5],  m2\n    movu  [P4],  m3\n    movu  [P3],  m4\n    movu  [P2],  m5\n    movu  [P1],  m6\n    movu  [P0],  m7\n    movu  [Q0],  m8\n    movu  [Q1],  m9\n    movu  [Q2], m10\n    movu  [Q3], m11\n    movu  [Q4], m12\n    movu  [Q5], m13\n    movu  [Q6], m14\n    movu  [Q7], m15\n%else\n    DEFINE_REAL_P7_TO_Q7\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [rsp+32], a, [rsp+%3+%4], [Q0], [Q1]\n    movh   [P7],  m0\n    movh   [P5],  m1\n    movh   [P3],  m2\n    movh   [P1],  m3\n    movh   [Q2],  m5\n    movh   [Q4],  m6\n    movh   [Q6],  m7\n    movhps [P6],  m0\n    movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:26", "text": "movu  [Q4], m12\n    movu  [Q5], m13\n    movu  [Q6], m14\n    movu  [Q7], m15\n%else\n    DEFINE_REAL_P7_TO_Q7\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [rsp+32], a, [rsp+%3+%4], [Q0], [Q1]\n    movh   [P7],  m0\n    movh   [P5],  m1\n    movh   [P3],  m2\n    movh   [P1],  m3\n    movh   [Q2],  m5\n    movh   [Q4],  m6\n    movh   [Q6],  m7\n    movhps [P6],  m0\n    movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6\n    movhps [Q7],  m7\n    DEFINE_TRANSPOSED_P7_TO_Q7\n    mova                    m0, [Q0]\n    mova                    m1, [Q1]\n    mova                    m2, [Q2]\n    mova                    m3, [Q3]\n    mova                    m4, [Q4]\n    mova                    m5, [Q5]\n    mova                    m7, [Q7]\n    DEFINE_REAL_P7_TO_Q7 8\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [rsp+224], a, [rsp+%3+%4], [Q0], [Q1]\n    movh   [P7],  m0\n    movh   [P5],  m1\n    movh   [P3],  m2\n    movh   [P1],  m3\n    movh   [Q2],  m5\n    movh   [Q4],  m6\n    movh   [Q6],  m7\n    movhps [P6],  m0\n    movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6\n    movhps [Q7],  m7\n%endif\n%elif %2 == 44 || %2 == 4\n    SWAP 0, 1   ; m0 = p1\n    SWAP 1, 7   ; m1 = p0\n    SWAP 2, 5   ; m2 = q0\n    SWAP 3, 4   ; m3 = q1\n    DEFINE_REAL_P7_TO_Q7 2\n    SBUTTERFLY  bw, 0, 1, 4\n    SBUTTERFLY  bw, 2, 3, 4\n    SBUTTERFLY  wd, 0, 2, 4\n    SBUTTERFLY  wd, 1, 3, 4\n%if mmsize == 16\n    movd  [P7], m0\n    movd  [P3], m2\n    movd  [Q0], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:27", "text": "movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6\n    movhps [Q7],  m7\n%endif\n%elif %2 == 44 || %2 == 4\n    SWAP 0, 1   ; m0 = p1\n    SWAP 1, 7   ; m1 = p0\n    SWAP 2, 5   ; m2 = q0\n    SWAP 3, 4   ; m3 = q1\n    DEFINE_REAL_P7_TO_Q7 2\n    SBUTTERFLY  bw, 0, 1, 4\n    SBUTTERFLY  bw, 2, 3, 4\n    SBUTTERFLY  wd, 0, 2, 4\n    SBUTTERFLY  wd, 1, 3, 4\n%if mmsize == 16\n    movd  [P7], m0\n    movd  [P3], m2\n    movd  [Q0], m1\n    movd  [Q4], m3\n    psrldq  m0, 4\n    psrldq  m1, 4\n    psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P6], m0\n    movd  [P2], m2\n    movd  [Q1], m1\n    movd  [Q5], m3\n    psrldq  m0, 4\n    psrldq  m1, 4\n    psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P5], m0\n    movd  [P1], m2\n    movd  [Q2], m1\n    movd  [Q6], m3\n    psrldq  m0, 4\n    psrldq  m1, 4\n    psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P4], m0\n    movd  [P0], m2\n    movd  [Q3], m1\n    movd  [Q7], m3\n%else\n    movd  [P7], m0\n    movd  [P5], m2\n    movd  [P3], m1\n    movd  [P1], m3\n    psrlq   m0, 32\n    psrlq   m2, 32\n    psrlq   m1, 32\n    psrlq   m3, 32\n    movd  [P6], m0\n    movd  [P4], m2\n    movd  [P2], m1\n    movd  [P0], m3\n%endif\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:28", "text": "psrldq  m3, 4\n    movd  [P4], m0\n    movd  [P0], m2\n    movd  [Q3], m1\n    movd  [Q7], m3\n%else\n    movd  [P7], m0\n    movd  [P5], m2\n    movd  [P3], m1\n    movd  [P1], m3\n    psrlq   m0, 32\n    psrlq   m2, 32\n    psrlq   m1, 32\n    psrlq   m3, 32\n    movd  [P6], m0\n    movd  [P4], m2\n    movd  [P2], m1\n    movd  [P0], m3\n%endif\n%else\n    ; the following code do a transpose of 8 full lines to 16 half\n    ; lines (high part). It is inlined to avoid the need of a staging area\n    mova                    m0, [P3]\n    mova                    m1, [P2]\n    mova                    m2, [P1]\n    mova                    m3, [P0]\n    mova                    m4, [Q0]\n    mova                    m5, [Q1]\n%ifdef m8\n    mova                    m6, [Q2]\n%endif\n    mova                    m7, [Q3]\n    DEFINE_REAL_P7_TO_Q7\n%ifdef m8\n    SBUTTERFLY  bw,  0,  1, 8\n    SBUTTERFLY  bw,  2,  3, 8\n    SBUTTERFLY  bw,  4,  5, 8\n    SBUTTERFLY  bw,  6,  7, 8\n    SBUTTERFLY  wd,  0,  2, 8\n    SBUTTERFLY  wd,  1,  3, 8\n    SBUTTERFLY  wd,  4,  6, 8\n    SBUTTERFLY  wd,  5,  7, 8\n    SBUTTERFLY  dq,  0,  4, 8\n    SBUTTERFLY  dq,  1,  5, 8\n    SBUTTERFLY  dq,  2,  6, 8\n    SBUTTERFLY  dq,  3,  7, 8\n%else\n    SBUTTERFLY  bw,  0,  1, 6\n    mova [rsp+mmsize*4], m1\n    mova        m6, [rsp+mmsize*6]\n    SBUTTERFLY  bw,  2,  3, 1\n    SBUTTERFLY  bw,  4,  5, 1\n    SBUTTERFLY  bw,  6,  7, 1\n    SBUTTERFLY  wd,  0,  2, 1\n    mova [rsp+mmsize*6], m2\n    mova        m1, [rsp+mmsize*4]\n    SBUTTERFLY  wd,  1,  3, 2\n    SBUTTERFLY  wd,  4,  6, 2\n    SBUTTERFLY  wd,  5,  7, 2\n    SBUTTERFLY  dq,  0,  4, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:29", "text": "SBUTTERFLY  wd,  4,  6, 8\n    SBUTTERFLY  wd,  5,  7, 8\n    SBUTTERFLY  dq,  0,  4, 8\n    SBUTTERFLY  dq,  1,  5, 8\n    SBUTTERFLY  dq,  2,  6, 8\n    SBUTTERFLY  dq,  3,  7, 8\n%else\n    SBUTTERFLY  bw,  0,  1, 6\n    mova [rsp+mmsize*4], m1\n    mova        m6, [rsp+mmsize*6]\n    SBUTTERFLY  bw,  2,  3, 1\n    SBUTTERFLY  bw,  4,  5, 1\n    SBUTTERFLY  bw,  6,  7, 1\n    SBUTTERFLY  wd,  0,  2, 1\n    mova [rsp+mmsize*6], m2\n    mova        m1, [rsp+mmsize*4]\n    SBUTTERFLY  wd,  1,  3, 2\n    SBUTTERFLY  wd,  4,  6, 2\n    SBUTTERFLY  wd,  5,  7, 2\n    SBUTTERFLY  dq,  0,  4, 2\n    SBUTTERFLY  dq,  1,  5, 2\n%if mmsize == 16\n    movh      [Q0], m1\n    movhps    [Q1], m1\n%else\n    mova      [P3], m1\n%endif\n    mova        m2, [rsp+mmsize*6]\n    SBUTTERFLY  dq,  2,  6, 1\n    SBUTTERFLY  dq,  3,  7, 1\n%endif\n    SWAP         3, 6\n    SWAP         1, 4\n%if mmsize == 16\n    movh      [P7], m0\n    movhps    [P6], m0\n    movh      [P5], m1\n    movhps    [P4], m1\n    movh      [P3], m2\n    movhps    [P2], m2\n    movh      [P1], m3\n    movhps    [P0], m3\n%ifdef m8\n    movh      [Q0], m4\n    movhps    [Q1], m4\n%endif\n    movh      [Q2], m5\n    movhps    [Q3], m5\n    movh      [Q4], m6\n    movhps    [Q5], m6\n    movh      [Q6], m7\n    movhps    [Q7], m7\n%else\n    mova      [P7], m0\n    mova      [P6], m1\n    mova      [P5], m2\n    mova      [P4], m3\n    mova      [P2], m5\n    mova      [P1], m6\n    mova      [P0], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:30", "text": "movh      [P1], m3\n    movhps    [P0], m3\n%ifdef m8\n    movh      [Q0], m4\n    movhps    [Q1], m4\n%endif\n    movh      [Q2], m5\n    movhps    [Q3], m5\n    movh      [Q4], m6\n    movhps    [Q5], m6\n    movh      [Q6], m7\n    movhps    [Q7], m7\n%else\n    mova      [P7], m0\n    mova      [P6], m1\n    mova      [P5], m2\n    mova      [P4], m3\n    mova      [P2], m5\n    mova      [P1], m6\n    mova      [P0], m7\n%endif\n%endif\n%endif\n\n    RET\n%endmacro\n\n%macro LPF_16_VH 5\nINIT_XMM %5\nLOOPFILTER v, %1, %2,  0, %4\nLOOPFILTER h, %1, %2, %3, %4\n%endmacro\n\n%macro LPF_16_VH_ALL_OPTS 4\nLPF_16_VH %1, %2, %3, %4, sse2\nLPF_16_VH %1, %2, %3, %4, ssse3\nLPF_16_VH %1, %2, %3, %4, avx\n%endmacro\n\nLPF_16_VH_ALL_OPTS 16, 512, 256, 32\nLPF_16_VH_ALL_OPTS 44,   0, 128,  0\nLPF_16_VH_ALL_OPTS 48, 256, 128, 16\nLPF_16_VH_ALL_OPTS 84, 256, 128, 16\nLPF_16_VH_ALL_OPTS 88, 256, 128, 16\n\nINIT_MMX mmxext\nLOOPFILTER v, 4,   0,  0, 0\nLOOPFILTER h, 4,   0, 64, 0\nLOOPFILTER v, 8, 128,  0, 8\nLOOPFILTER h, 8, 128, 64, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1161, "line_end": 1210}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:31", "text": "LPF_16_VH_ALL_OPTS 44,   0, 128,  0\nLPF_16_VH_ALL_OPTS 48, 256, 128, 16\nLPF_16_VH_ALL_OPTS 84, 256, 128, 16\nLPF_16_VH_ALL_OPTS 88, 256, 128, 16\n\nINIT_MMX mmxext\nLOOPFILTER v, 4,   0,  0, 0\nLOOPFILTER h, 4,   0, 64, 0\nLOOPFILTER v, 8, 128,  0, 8\nLOOPFILTER h, 8, 128, 64, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf.asm", "line_start": 1201, "line_end": 1210}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:21", "text": "%endif\n    SRSHIFT3B_2X        m6, m4, rb10, m7                ; f1 and f2 sign byte shift by 3\n    SIGN_SUB            m7, rq0, m6, m5                 ; m7 = q0 - f1\n    SIGN_ADD            m1, rp0, m4, m5                 ; m1 = p0 + f2\n%if %2 != 44 && %2 != 4\n%ifdef m8\n    pandn               m6, m15, m3                     ;  ~mask(in) & mask(fm)\n%else\n    mova                m6, [rsp+%3+%4]\n    pandn               m6, m3\n%endif\n    pand                m6, m0                          ; (~mask(in) & mask(fm)) & mask(hev)\n%else\n    pand                m6, m3, m0\n%endif\n    MASK_APPLY          m7, rq0, m6, m5                 ; m7 = filter2(q0) & mask / we write it in filter4()\n    MASK_APPLY          m1, rp0, m6, m5                 ; m1 = filter2(p0) & mask / we write it in filter4()\n\n    ; (m0: hev, m1: p0', m2: q0-p0, m3: fm, m7: q0', [m8: flat8out], m10..13: p1 p0 q0 q1, m14: pb_10, [m15: flat8in], )\n    ; filter4()\n    mova                m4, m2\n    paddsb              m2, m4                          ; 2 * (q0 - p0)\n    paddsb              m2, m4                          ; 3 * (q0 - p0)\n    paddsb              m6, m2, [pb_4]                  ; m6:  f1 = clip(f + 4, 127)\n    paddsb              m2, [pb_3]                      ; m2: f2 = clip(f + 3, 127)\n    SRSHIFT3B_2X        m6, m2, rb10, m4                ; f1 and f2 sign byte shift by 3\n%if %2 != 44 && %2 != 4\n%ifdef m8\n    pandn               m5, m15, m3                     ;               ~mask(in) & mask(fm)\n%else\n    mova                m5, [rsp+%3+%4]\n    pandn               m5, m3\n%endif\n    pandn               m0, m5                          ; ~mask(hev) & (~mask(in) & mask(fm))\n%else\n    pandn               m0, m3\n%endif\n    SIGN_SUB            m5, rq0, m6, m4                 ; q0 - f1\n    MASK_APPLY          m5, m7, m0, m4                  ; filter4(q0) & mask\n    mova                [Q0], m5\n    SIGN_ADD            m7, rp0, m2, m4                 ; p0 + f2\n    MASK_APPLY          m7, m1, m0, m4                  ; filter4(p0) & mask\n    mova                [P0], m7\n    paddb               m6, [pb_80]                     ;\n    pxor                m1, m1                          ;   f=(f1+1)>>1\n    pavgb               m6, m1                          ;\n    psubb               m6, [pb_40]                     ;\n    SIGN_ADD            m1, rp1, m6, m2                 ; p1 + f\n    SIGN_SUB            m4, rq1, m6, m2                 ; q1 - f\n    MASK_APPLY          m1, rp1, m0, m2                 ; m1 = filter4(p1)\n    MASK_APPLY          m4, rq1, m0, m2                 ; m4 = filter4(q1)\n    mova                [P1], m1\n    mova                [Q1], m4\n\n%if %2 != 44 && %2 != 4\n    UNSCRATCH            2, 15, rsp+%3+%4\n%endif\n\n    ; ([m1: flat8out], m2: flat8in, m3: fm, m10..13: p1 p0 q0 q1)\n    ; filter6()", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:22", "text": "SIGN_ADD            m7, rp0, m2, m4                 ; p0 + f2\n    MASK_APPLY          m7, m1, m0, m4                  ; filter4(p0) & mask\n    mova                [P0], m7\n    paddb               m6, [pb_80]                     ;\n    pxor                m1, m1                          ;   f=(f1+1)>>1\n    pavgb               m6, m1                          ;\n    psubb               m6, [pb_40]                     ;\n    SIGN_ADD            m1, rp1, m6, m2                 ; p1 + f\n    SIGN_SUB            m4, rq1, m6, m2                 ; q1 - f\n    MASK_APPLY          m1, rp1, m0, m2                 ; m1 = filter4(p1)\n    MASK_APPLY          m4, rq1, m0, m2                 ; m4 = filter4(q1)\n    mova                [P1], m1\n    mova                [Q1], m4\n\n%if %2 != 44 && %2 != 4\n    UNSCRATCH            2, 15, rsp+%3+%4\n%endif\n\n    ; ([m1: flat8out], m2: flat8in, m3: fm, m10..13: p1 p0 q0 q1)\n    ; filter6()\n%if %2 != 44 && %2 != 4\n    pxor                m0, m0\n%if %2 != 16\n    pand                m3, m2\n%else\n    pand                m2, m3                          ;               mask(fm) & mask(in)\n%ifdef m8\n    pandn               m3, m8, m2                      ; ~mask(out) & (mask(fm) & mask(in))\n%else\n    mova                m3, [rsp+%3+%4+16]\n    pandn               m3, m2\n%endif\n%endif\n%ifdef m8\n    mova               m14, [P3]\n    mova                m9, [Q3]\n%define rp3 m14\n%define rq3 m9\n%else\n%define rp3 [P3]\n%define rq3 [Q3]\n%endif\n    mova                m1, [P2]\n    FILTER_INIT         m4, m5, m6, m7, [P2], %4, 6,             m3,  m1             ; [p2]\n    mova                m1, [Q2]\n    FILTER_UPDATE       m4, m5, m6, m7, [P1], %4, 0, 1, 2, 5, 3, m3,  \"\", rq1, \"\", 1 ; [p1] -p3 -p2 +p1 +q1\n    FILTER_UPDATE       m4, m5, m6, m7, [P0], %4, 0, 2, 3, 6, 3, m3,  \"\", m1         ; [p0] -p3 -p1 +p0 +q2\n    FILTER_UPDATE       m4, m5, m6, m7, [Q0], %4, 0, 3, 4, 7, 3, m3,  \"\", rq3, \"\", 1 ; [q0] -p3 -p0 +q0 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q1], %4, 1, 4, 5, 7, 3, m3,  \"\"             ; [q1] -p2 -q0 +q1 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q2], %4, 2, 5, 6, 7, 3, m3,  m1             ; [q2] -p1 -q1 +q2 +q3\n%endif\n\n%if %2 == 16\n    UNSCRATCH            1,  8, rsp+%3+%4+16\n%endif\n\n    ; (m0: 0, [m1: flat8out], m2: fm & flat8in, m8..15: q2 q3 p1 p0 q0 q1 p3 p2)\n    ; filter14()\n    ;\n    ;                            m2  m3  m8  m9 m14 m15 m10 m11 m12 m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:23", "text": "%define rq3 [Q3]\n%endif\n    mova                m1, [P2]\n    FILTER_INIT         m4, m5, m6, m7, [P2], %4, 6,             m3,  m1             ; [p2]\n    mova                m1, [Q2]\n    FILTER_UPDATE       m4, m5, m6, m7, [P1], %4, 0, 1, 2, 5, 3, m3,  \"\", rq1, \"\", 1 ; [p1] -p3 -p2 +p1 +q1\n    FILTER_UPDATE       m4, m5, m6, m7, [P0], %4, 0, 2, 3, 6, 3, m3,  \"\", m1         ; [p0] -p3 -p1 +p0 +q2\n    FILTER_UPDATE       m4, m5, m6, m7, [Q0], %4, 0, 3, 4, 7, 3, m3,  \"\", rq3, \"\", 1 ; [q0] -p3 -p0 +q0 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q1], %4, 1, 4, 5, 7, 3, m3,  \"\"             ; [q1] -p2 -q0 +q1 +q3\n    FILTER_UPDATE       m4, m5, m6, m7, [Q2], %4, 2, 5, 6, 7, 3, m3,  m1             ; [q2] -p1 -q1 +q2 +q3\n%endif\n\n%if %2 == 16\n    UNSCRATCH            1,  8, rsp+%3+%4+16\n%endif\n\n    ; (m0: 0, [m1: flat8out], m2: fm & flat8in, m8..15: q2 q3 p1 p0 q0 q1 p3 p2)\n    ; filter14()\n    ;\n    ;                            m2  m3  m8  m9 m14 m15 m10 m11 m12 m13\n    ;\n    ;                                    q2  q3  p3  p2  p1  p0  q0  q1\n    ; p6  -7                     p7  p6  p5  p4   .   .   .   .   .\n    ; p5  -6  -p7 -p6 +p5 +q1     .   .   .                           .\n    ; p4  -5  -p7 -p5 +p4 +q2     .       .   .                      q2\n    ; p3  -4  -p7 -p4 +p3 +q3     .           .   .                  q3\n    ; p2  -3  -p7 -p3 +p2 +q4     .               .   .              q4\n    ; p1  -2  -p7 -p2 +p1 +q5     .                   .   .          q5\n    ; p0  -1  -p7 -p1 +p0 +q6     .                       .   .      q6\n    ; q0  +0  -p7 -p0 +q0 +q7     .                           .   .  q7\n    ; q1  +1  -p6 -q0 +q1 +q7    q1   .                           .   .\n    ; q2  +2  -p5 -q1 +q2 +q7     .  q2   .                           .\n    ; q3  +3  -p4 -q2 +q3 +q7         .  q3   .                       .\n    ; q4  +4  -p3 -q3 +q4 +q7             .  q4   .                   .\n    ; q5  +5  -p2 -q4 +q5 +q7                 .  q5   .               .\n    ; q6  +6  -p1 -q5 +q6 +q7                     .  q6   .           .\n\n%if %2 == 16\n    pand            m1, m2                                                              ; mask(out) & (mask(fm) & mask(in))\n    mova            m2, [P7]\n    mova            m3, [P6]\n%ifdef m8\n    mova            m8, [P5]\n    mova            m9, [P4]\n%define rp5 m8\n%define rp4 m9\n%define rp5s m8\n%define rp4s m9\n%define rp3s m14\n%define rq4 m8\n%define rq5 m9\n%define rq6 m14\n%define rq7 m15\n%define rq4s m8\n%define rq5s m9\n%define rq6s m14\n%else\n%define rp5 [P5]\n%define rp4 [P4]\n%define rp5s \"\"", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:24", "text": "mova            m3, [P6]\n%ifdef m8\n    mova            m8, [P5]\n    mova            m9, [P4]\n%define rp5 m8\n%define rp4 m9\n%define rp5s m8\n%define rp4s m9\n%define rp3s m14\n%define rq4 m8\n%define rq5 m9\n%define rq6 m14\n%define rq7 m15\n%define rq4s m8\n%define rq5s m9\n%define rq6s m14\n%else\n%define rp5 [P5]\n%define rp4 [P4]\n%define rp5s \"\"\n%define rp4s \"\"\n%define rp3s \"\"\n%define rq4 [Q4]\n%define rq5 [Q5]\n%define rq6 [Q6]\n%define rq7 [Q7]\n%define rq4s \"\"\n%define rq5s \"\"\n%define rq6s \"\"\n%endif\n    FILTER_INIT     m4, m5, m6, m7, [P6], %4, 14,                m1,  m3            ; [p6]\n    FILTER_UPDATE   m4, m5, m6, m7, [P5], %4,  8,  9, 10,  5, 4, m1, rp5s           ; [p5] -p7 -p6 +p5 +q1\n    FILTER_UPDATE   m4, m5, m6, m7, [P4], %4,  8, 10, 11,  6, 4, m1, rp4s           ; [p4] -p7 -p5 +p4 +q2\n    FILTER_UPDATE   m4, m5, m6, m7, [P3], %4,  8, 11,  0,  7, 4, m1, rp3s           ; [p3] -p7 -p4 +p3 +q3\n    FILTER_UPDATE   m4, m5, m6, m7, [P2], %4,  8,  0,  1, 12, 4, m1,  \"\", rq4, [Q4], 1 ; [p2] -p7 -p3 +p2 +q4\n    FILTER_UPDATE   m4, m5, m6, m7, [P1], %4,  8,  1,  2, 13, 4, m1,  \"\", rq5, [Q5], 1 ; [p1] -p7 -p2 +p1 +q5\n    FILTER_UPDATE   m4, m5, m6, m7, [P0], %4,  8,  2,  3, 14, 4, m1,  \"\", rq6, [Q6], 1 ; [p0] -p7 -p1 +p0 +q6\n    FILTER_UPDATE   m4, m5, m6, m7, [Q0], %4,  8,  3,  4, 15, 4, m1,  \"\", rq7, [Q7], 1 ; [q0] -p7 -p0 +q0 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q1], %4,  9,  4,  5, 15, 4, m1,  \"\"            ; [q1] -p6 -q0 +q1 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q2], %4, 10,  5,  6, 15, 4, m1,  \"\"            ; [q2] -p5 -q1 +q2 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q3], %4, 11,  6,  7, 15, 4, m1,  \"\"            ; [q3] -p4 -q2 +q3 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q4], %4,  0,  7, 12, 15, 4, m1, rq4s           ; [q4] -p3 -q3 +q4 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q5], %4,  1, 12, 13, 15, 4, m1, rq5s           ; [q5] -p2 -q4 +q5 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q6], %4,  2, 13, 14, 15, 4, m1, rq6s           ; [q6] -p1 -q5 +q6 +q7\n%endif\n\n%ifidn %1, h\n%if %2 == 16\n    mova                    m0, [P7]\n    mova                    m1, [P6]\n    mova                    m2, [P5]\n    mova                    m3, [P4]\n    mova                    m4, [P3]\n    mova                    m5, [P2]\n%if ARCH_X86_64\n    mova                    m6, [P1]\n%endif\n    mova                    m7, [P0]\n%if ARCH_X86_64\n    mova                    m8, [Q0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:25", "text": "FILTER_UPDATE   m4, m5, m6, m7, [Q3], %4, 11,  6,  7, 15, 4, m1,  \"\"            ; [q3] -p4 -q2 +q3 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q4], %4,  0,  7, 12, 15, 4, m1, rq4s           ; [q4] -p3 -q3 +q4 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q5], %4,  1, 12, 13, 15, 4, m1, rq5s           ; [q5] -p2 -q4 +q5 +q7\n    FILTER_UPDATE   m4, m5, m6, m7, [Q6], %4,  2, 13, 14, 15, 4, m1, rq6s           ; [q6] -p1 -q5 +q6 +q7\n%endif\n\n%ifidn %1, h\n%if %2 == 16\n    mova                    m0, [P7]\n    mova                    m1, [P6]\n    mova                    m2, [P5]\n    mova                    m3, [P4]\n    mova                    m4, [P3]\n    mova                    m5, [P2]\n%if ARCH_X86_64\n    mova                    m6, [P1]\n%endif\n    mova                    m7, [P0]\n%if ARCH_X86_64\n    mova                    m8, [Q0]\n    mova                    m9, [Q1]\n    mova                   m10, [Q2]\n    mova                   m11, [Q3]\n    mova                   m12, [Q4]\n    mova                   m13, [Q5]\n    mova                   m14, [Q6]\n    mova                   m15, [Q7]\n    TRANSPOSE16x16B 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, [rsp]\n    DEFINE_REAL_P7_TO_Q7\n    movu  [P7],  m0\n    movu  [P6],  m1\n    movu  [P5],  m2\n    movu  [P4],  m3\n    movu  [P3],  m4\n    movu  [P2],  m5\n    movu  [P1],  m6\n    movu  [P0],  m7\n    movu  [Q0],  m8\n    movu  [Q1],  m9\n    movu  [Q2], m10\n    movu  [Q3], m11\n    movu  [Q4], m12\n    movu  [Q5], m13\n    movu  [Q6], m14\n    movu  [Q7], m15\n%else\n    DEFINE_REAL_P7_TO_Q7\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [rsp+32], a, [rsp+%3+%4], [Q0], [Q1]\n    movh   [P7],  m0\n    movh   [P5],  m1\n    movh   [P3],  m2\n    movh   [P1],  m3\n    movh   [Q2],  m5\n    movh   [Q4],  m6\n    movh   [Q6],  m7\n    movhps [P6],  m0\n    movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:26", "text": "movu  [Q3], m11\n    movu  [Q4], m12\n    movu  [Q5], m13\n    movu  [Q6], m14\n    movu  [Q7], m15\n%else\n    DEFINE_REAL_P7_TO_Q7\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [rsp+32], a, [rsp+%3+%4], [Q0], [Q1]\n    movh   [P7],  m0\n    movh   [P5],  m1\n    movh   [P3],  m2\n    movh   [P1],  m3\n    movh   [Q2],  m5\n    movh   [Q4],  m6\n    movh   [Q6],  m7\n    movhps [P6],  m0\n    movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6\n    movhps [Q7],  m7\n    DEFINE_TRANSPOSED_P7_TO_Q7\n    mova                    m0, [Q0]\n    mova                    m1, [Q1]\n    mova                    m2, [Q2]\n    mova                    m3, [Q3]\n    mova                    m4, [Q4]\n    mova                    m5, [Q5]\n    mova                    m7, [Q7]\n    DEFINE_REAL_P7_TO_Q7 8\n    TRANSPOSE8x8B 0, 1, 2, 3, 4, 5, 6, 7, [rsp+224], a, [rsp+%3+%4], [Q0], [Q1]\n    movh   [P7],  m0\n    movh   [P5],  m1\n    movh   [P3],  m2\n    movh   [P1],  m3\n    movh   [Q2],  m5\n    movh   [Q4],  m6\n    movh   [Q6],  m7\n    movhps [P6],  m0\n    movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6\n    movhps [Q7],  m7\n%endif\n%elif %2 == 44 || %2 == 4\n    SWAP 0, 1   ; m0 = p1\n    SWAP 1, 7   ; m1 = p0\n    SWAP 2, 5   ; m2 = q0\n    SWAP 3, 4   ; m3 = q1\n    DEFINE_REAL_P7_TO_Q7 2\n    SBUTTERFLY  bw, 0, 1, 4\n    SBUTTERFLY  bw, 2, 3, 4\n    SBUTTERFLY  wd, 0, 2, 4\n    SBUTTERFLY  wd, 1, 3, 4\n%if mmsize == 16\n    movd  [P7], m0\n    movd  [P3], m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:27", "text": "movhps [P4],  m1\n    movhps [P2],  m2\n    movhps [P0],  m3\n    movhps [Q3],  m5\n    movhps [Q5],  m6\n    movhps [Q7],  m7\n%endif\n%elif %2 == 44 || %2 == 4\n    SWAP 0, 1   ; m0 = p1\n    SWAP 1, 7   ; m1 = p0\n    SWAP 2, 5   ; m2 = q0\n    SWAP 3, 4   ; m3 = q1\n    DEFINE_REAL_P7_TO_Q7 2\n    SBUTTERFLY  bw, 0, 1, 4\n    SBUTTERFLY  bw, 2, 3, 4\n    SBUTTERFLY  wd, 0, 2, 4\n    SBUTTERFLY  wd, 1, 3, 4\n%if mmsize == 16\n    movd  [P7], m0\n    movd  [P3], m2\n    movd  [Q0], m1\n    movd  [Q4], m3\n    psrldq  m0, 4\n    psrldq  m1, 4\n    psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P6], m0\n    movd  [P2], m2\n    movd  [Q1], m1\n    movd  [Q5], m3\n    psrldq  m0, 4\n    psrldq  m1, 4\n    psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P5], m0\n    movd  [P1], m2\n    movd  [Q2], m1\n    movd  [Q6], m3\n    psrldq  m0, 4\n    psrldq  m1, 4\n    psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P4], m0\n    movd  [P0], m2\n    movd  [Q3], m1\n    movd  [Q7], m3\n%else\n    movd  [P7], m0\n    movd  [P5], m2\n    movd  [P3], m1\n    movd  [P1], m3\n    psrlq   m0, 32\n    psrlq   m2, 32\n    psrlq   m1, 32\n    psrlq   m3, 32\n    movd  [P6], m0\n    movd  [P4], m2\n    movd  [P2], m1\n    movd  [P0], m3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:28", "text": "psrldq  m2, 4\n    psrldq  m3, 4\n    movd  [P4], m0\n    movd  [P0], m2\n    movd  [Q3], m1\n    movd  [Q7], m3\n%else\n    movd  [P7], m0\n    movd  [P5], m2\n    movd  [P3], m1\n    movd  [P1], m3\n    psrlq   m0, 32\n    psrlq   m2, 32\n    psrlq   m1, 32\n    psrlq   m3, 32\n    movd  [P6], m0\n    movd  [P4], m2\n    movd  [P2], m1\n    movd  [P0], m3\n%endif\n%else\n    ; the following code do a transpose of 8 full lines to 16 half\n    ; lines (high part). It is inlined to avoid the need of a staging area\n    mova                    m0, [P3]\n    mova                    m1, [P2]\n    mova                    m2, [P1]\n    mova                    m3, [P0]\n    mova                    m4, [Q0]\n    mova                    m5, [Q1]\n%ifdef m8\n    mova                    m6, [Q2]\n%endif\n    mova                    m7, [Q3]\n    DEFINE_REAL_P7_TO_Q7\n%ifdef m8\n    SBUTTERFLY  bw,  0,  1, 8\n    SBUTTERFLY  bw,  2,  3, 8\n    SBUTTERFLY  bw,  4,  5, 8\n    SBUTTERFLY  bw,  6,  7, 8\n    SBUTTERFLY  wd,  0,  2, 8\n    SBUTTERFLY  wd,  1,  3, 8\n    SBUTTERFLY  wd,  4,  6, 8\n    SBUTTERFLY  wd,  5,  7, 8\n    SBUTTERFLY  dq,  0,  4, 8\n    SBUTTERFLY  dq,  1,  5, 8\n    SBUTTERFLY  dq,  2,  6, 8\n    SBUTTERFLY  dq,  3,  7, 8\n%else\n    SBUTTERFLY  bw,  0,  1, 6\n    mova [rsp+mmsize*4], m1\n    mova        m6, [rsp+mmsize*6]\n    SBUTTERFLY  bw,  2,  3, 1\n    SBUTTERFLY  bw,  4,  5, 1\n    SBUTTERFLY  bw,  6,  7, 1\n    SBUTTERFLY  wd,  0,  2, 1\n    mova [rsp+mmsize*6], m2\n    mova        m1, [rsp+mmsize*4]\n    SBUTTERFLY  wd,  1,  3, 2\n    SBUTTERFLY  wd,  4,  6, 2\n    SBUTTERFLY  wd,  5,  7, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:29", "text": "SBUTTERFLY  wd,  1,  3, 8\n    SBUTTERFLY  wd,  4,  6, 8\n    SBUTTERFLY  wd,  5,  7, 8\n    SBUTTERFLY  dq,  0,  4, 8\n    SBUTTERFLY  dq,  1,  5, 8\n    SBUTTERFLY  dq,  2,  6, 8\n    SBUTTERFLY  dq,  3,  7, 8\n%else\n    SBUTTERFLY  bw,  0,  1, 6\n    mova [rsp+mmsize*4], m1\n    mova        m6, [rsp+mmsize*6]\n    SBUTTERFLY  bw,  2,  3, 1\n    SBUTTERFLY  bw,  4,  5, 1\n    SBUTTERFLY  bw,  6,  7, 1\n    SBUTTERFLY  wd,  0,  2, 1\n    mova [rsp+mmsize*6], m2\n    mova        m1, [rsp+mmsize*4]\n    SBUTTERFLY  wd,  1,  3, 2\n    SBUTTERFLY  wd,  4,  6, 2\n    SBUTTERFLY  wd,  5,  7, 2\n    SBUTTERFLY  dq,  0,  4, 2\n    SBUTTERFLY  dq,  1,  5, 2\n%if mmsize == 16\n    movh      [Q0], m1\n    movhps    [Q1], m1\n%else\n    mova      [P3], m1\n%endif\n    mova        m2, [rsp+mmsize*6]\n    SBUTTERFLY  dq,  2,  6, 1\n    SBUTTERFLY  dq,  3,  7, 1\n%endif\n    SWAP         3, 6\n    SWAP         1, 4\n%if mmsize == 16\n    movh      [P7], m0\n    movhps    [P6], m0\n    movh      [P5], m1\n    movhps    [P4], m1\n    movh      [P3], m2\n    movhps    [P2], m2\n    movh      [P1], m3\n    movhps    [P0], m3\n%ifdef m8\n    movh      [Q0], m4\n    movhps    [Q1], m4\n%endif\n    movh      [Q2], m5\n    movhps    [Q3], m5\n    movh      [Q4], m6\n    movhps    [Q5], m6\n    movh      [Q6], m7\n    movhps    [Q7], m7\n%else\n    mova      [P7], m0\n    mova      [P6], m1\n    mova      [P5], m2\n    mova      [P4], m3\n    mova      [P2], m5\n    mova      [P1], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:30", "text": "movhps    [P2], m2\n    movh      [P1], m3\n    movhps    [P0], m3\n%ifdef m8\n    movh      [Q0], m4\n    movhps    [Q1], m4\n%endif\n    movh      [Q2], m5\n    movhps    [Q3], m5\n    movh      [Q4], m6\n    movhps    [Q5], m6\n    movh      [Q6], m7\n    movhps    [Q7], m7\n%else\n    mova      [P7], m0\n    mova      [P6], m1\n    mova      [P5], m2\n    mova      [P4], m3\n    mova      [P2], m5\n    mova      [P1], m6\n    mova      [P0], m7\n%endif\n%endif\n%endif\n\n    RET\n%endmacro\n\n%macro LPF_16_VH 5\nINIT_XMM %5\nLOOPFILTER v, %1, %2,  0, %4\nLOOPFILTER h, %1, %2, %3, %4\n%endmacro\n\n%macro LPF_16_VH_ALL_OPTS 4\nLPF_16_VH %1, %2, %3, %4, sse2\nLPF_16_VH %1, %2, %3, %4, ssse3\nLPF_16_VH %1, %2, %3, %4, avx\n%endmacro\n\nLPF_16_VH_ALL_OPTS 16, 512, 256, 32\nLPF_16_VH_ALL_OPTS 44,   0, 128,  0\nLPF_16_VH_ALL_OPTS 48, 256, 128, 16\nLPF_16_VH_ALL_OPTS 84, 256, 128, 16\nLPF_16_VH_ALL_OPTS 88, 256, 128, 16\n\nINIT_MMX mmxext\nLOOPFILTER v, 4,   0,  0, 0\nLOOPFILTER h, 4,   0, 64, 0\nLOOPFILTER v, 8, 128,  0, 8\nLOOPFILTER h, 8, 128, 64, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 1161, "line_end": 1211}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf.asm:31", "text": "LPF_16_VH_ALL_OPTS 16, 512, 256, 32\nLPF_16_VH_ALL_OPTS 44,   0, 128,  0\nLPF_16_VH_ALL_OPTS 48, 256, 128, 16\nLPF_16_VH_ALL_OPTS 84, 256, 128, 16\nLPF_16_VH_ALL_OPTS 88, 256, 128, 16\n\nINIT_MMX mmxext\nLOOPFILTER v, 4,   0,  0, 0\nLOOPFILTER h, 4,   0, 64, 0\nLOOPFILTER v, 8, 128,  0, 8\nLOOPFILTER h, 8, 128, 64, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9lpf.asm", "line_start": 1201, "line_end": 1211}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:1", "text": ";******************************************************************************\n;* VP9 loop filter SIMD optimizations\n;*\n;* Copyright (C) 2015 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_511: times 16 dw 511\npw_2047: times 16 dw 2047\npw_16384: times 16 dw 16384\npw_m512: times 16 dw -512\npw_m2048: times 16 dw -2048\n\ncextern pw_1\ncextern pw_3\ncextern pw_4\ncextern pw_8\ncextern pw_16\ncextern pw_256\ncextern pw_1023\ncextern pw_4095\ncextern pw_m1\n\nSECTION .text\n\n%macro SCRATCH 3-4\n%if ARCH_X86_64\n    SWAP                %1, %2\n%if %0 == 4\n%define reg_%4 m%2\n%endif\n%else\n    mova              [%3], m%1\n%if %0 == 4\n%define reg_%4 [%3]\n%endif\n%endif\n%endmacro\n\n%macro UNSCRATCH 3-4\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:2", "text": "cextern pw_m1\n\nSECTION .text\n\n%macro SCRATCH 3-4\n%if ARCH_X86_64\n    SWAP                %1, %2\n%if %0 == 4\n%define reg_%4 m%2\n%endif\n%else\n    mova              [%3], m%1\n%if %0 == 4\n%define reg_%4 [%3]\n%endif\n%endif\n%endmacro\n\n%macro UNSCRATCH 3-4\n%if ARCH_X86_64\n    SWAP                %1, %2\n%else\n    mova               m%1, [%3]\n%endif\n%if %0 == 4\n%undef reg_%4\n%endif\n%endmacro\n\n%macro PRELOAD 2-3\n%if ARCH_X86_64\n    mova               m%1, [%2]\n%if %0 == 3\n%define reg_%3 m%1\n%endif\n%elif %0 == 3\n%define reg_%3 [%2]\n%endif\n%endmacro\n\n; calculate p or q portion of flat8out\n%macro FLAT8OUT_HALF 0\n    psubw               m4, m0                      ; q4-q0\n    psubw               m5, m0                      ; q5-q0\n    psubw               m6, m0                      ; q6-q0\n    psubw               m7, m0                      ; q7-q0\n    ABS2                m4, m5, m2, m3              ; abs(q4-q0) | abs(q5-q0)\n    ABS2                m6, m7, m2, m3              ; abs(q6-q0) | abs(q7-q0)\n    pcmpgtw             m4, reg_F                   ; abs(q4-q0) > F\n    pcmpgtw             m5, reg_F                   ; abs(q5-q0) > F\n    pcmpgtw             m6, reg_F                   ; abs(q6-q0) > F\n    pcmpgtw             m7, reg_F                   ; abs(q7-q0) > F\n    por                 m5, m4\n    por                 m7, m6\n    por                 m7, m5                      ; !flat8out, q portion\n%endmacro\n\n; calculate p or q portion of flat8in/hev/fm (excluding mb_edge condition)\n%macro FLAT8IN_HALF 1\n%if %1 > 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:3", "text": "; calculate p or q portion of flat8out\n%macro FLAT8OUT_HALF 0\n    psubw               m4, m0                      ; q4-q0\n    psubw               m5, m0                      ; q5-q0\n    psubw               m6, m0                      ; q6-q0\n    psubw               m7, m0                      ; q7-q0\n    ABS2                m4, m5, m2, m3              ; abs(q4-q0) | abs(q5-q0)\n    ABS2                m6, m7, m2, m3              ; abs(q6-q0) | abs(q7-q0)\n    pcmpgtw             m4, reg_F                   ; abs(q4-q0) > F\n    pcmpgtw             m5, reg_F                   ; abs(q5-q0) > F\n    pcmpgtw             m6, reg_F                   ; abs(q6-q0) > F\n    pcmpgtw             m7, reg_F                   ; abs(q7-q0) > F\n    por                 m5, m4\n    por                 m7, m6\n    por                 m7, m5                      ; !flat8out, q portion\n%endmacro\n\n; calculate p or q portion of flat8in/hev/fm (excluding mb_edge condition)\n%macro FLAT8IN_HALF 1\n%if %1 > 4\n    psubw               m4, m3, m0                  ; q3-q0\n    psubw               m5, m2, m0                  ; q2-q0\n    ABS2                m4, m5, m6, m7              ; abs(q3-q0) | abs(q2-q0)\n    pcmpgtw             m4, reg_F                   ; abs(q3-q0) > F\n    pcmpgtw             m5, reg_F                   ; abs(q2-q0) > F\n%endif\n    psubw               m3, m2                      ; q3-q2\n    psubw               m2, m1                      ; q2-q1\n    ABS2                m3, m2, m6, m7              ; abs(q3-q2) | abs(q2-q1)\n    pcmpgtw             m3, reg_I                   ; abs(q3-q2) > I\n    pcmpgtw             m2, reg_I                   ; abs(q2-q1) > I\n%if %1 > 4\n    por                 m4, m5\n%endif\n    por                 m2, m3\n    psubw               m3, m1, m0                  ; q1-q0\n    ABS1                m3, m5                      ; abs(q1-q0)\n%if %1 > 4\n    pcmpgtw             m6, m3, reg_F               ; abs(q1-q0) > F\n%endif\n    pcmpgtw             m7, m3, reg_H               ; abs(q1-q0) > H\n    pcmpgtw             m3, reg_I                   ; abs(q1-q0) > I\n%if %1 > 4\n    por                 m4, m6\n%endif\n    por                 m2, m3\n%endmacro\n\n; one step in filter_14/filter_6\n;\n; take sum $reg, downshift, apply mask and write into dst\n;\n; if sub2/add1-2 are present, add/sub as appropriate to prepare for the next\n; step's sum $reg. This is omitted for the last row in each filter.\n;\n; if dont_store is set, don't write the result into memory, instead keep the\n; values in register so we can write it out later\n%macro FILTER_STEP 6-10 \"\", \"\", \"\", 0 ; tmp, reg, mask, shift, dst, \\\n                                      ; src/sub1, sub2, add1, add2, dont_store\n    psrlw               %1, %2, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:4", "text": "pcmpgtw             m7, m3, reg_H               ; abs(q1-q0) > H\n    pcmpgtw             m3, reg_I                   ; abs(q1-q0) > I\n%if %1 > 4\n    por                 m4, m6\n%endif\n    por                 m2, m3\n%endmacro\n\n; one step in filter_14/filter_6\n;\n; take sum $reg, downshift, apply mask and write into dst\n;\n; if sub2/add1-2 are present, add/sub as appropriate to prepare for the next\n; step's sum $reg. This is omitted for the last row in each filter.\n;\n; if dont_store is set, don't write the result into memory, instead keep the\n; values in register so we can write it out later\n%macro FILTER_STEP 6-10 \"\", \"\", \"\", 0 ; tmp, reg, mask, shift, dst, \\\n                                      ; src/sub1, sub2, add1, add2, dont_store\n    psrlw               %1, %2, %4\n    psubw               %1, %6                      ; abs->delta\n%ifnidn %7, \"\"\n    psubw               %2, %6\n    psubw               %2, %7\n    paddw               %2, %8\n    paddw               %2, %9\n%endif\n    pand                %1, reg_%3                  ; apply mask\n%if %10 == 1\n    paddw               %6, %1                      ; delta->abs\n%else\n    paddw               %1, %6                      ; delta->abs\n    mova              [%5], %1\n%endif\n%endmacro\n\n; FIXME avx2 versions for 16_16 and mix2_{4,8}{4,8}\n\n%macro LOOP_FILTER 3 ; dir[h/v], wd[4/8/16], bpp[10/12]\n\n%if ARCH_X86_64\n%if %2 == 16\n%assign %%num_xmm_regs 16\n%elif %2 == 8\n%assign %%num_xmm_regs 15\n%else ; %2 == 4\n%assign %%num_xmm_regs 14\n%endif ; %2\n%assign %%bak_mem 0\n%else ; ARCH_X86_32\n%assign %%num_xmm_regs 8\n%if %2 == 16\n%assign %%bak_mem 7\n%elif %2 == 8\n%assign %%bak_mem 6\n%else ; %2 == 4\n%assign %%bak_mem 5\n%endif ; %2\n%endif ; ARCH_X86_64/32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:5", "text": "%if ARCH_X86_64\n%if %2 == 16\n%assign %%num_xmm_regs 16\n%elif %2 == 8\n%assign %%num_xmm_regs 15\n%else ; %2 == 4\n%assign %%num_xmm_regs 14\n%endif ; %2\n%assign %%bak_mem 0\n%else ; ARCH_X86_32\n%assign %%num_xmm_regs 8\n%if %2 == 16\n%assign %%bak_mem 7\n%elif %2 == 8\n%assign %%bak_mem 6\n%else ; %2 == 4\n%assign %%bak_mem 5\n%endif ; %2\n%endif ; ARCH_X86_64/32\n\n%if %2 == 16\n%ifidn %1, v\n%assign %%num_gpr_regs 6\n%else ; %1 == h\n%assign %%num_gpr_regs 5\n%endif ; %1\n%assign %%wd_mem 6\n%else ; %2 == 8/4\n%assign %%num_gpr_regs 5\n%if ARCH_X86_32 && %2 == 8\n%assign %%wd_mem 2\n%else ; ARCH_X86_64 || %2 == 4\n%assign %%wd_mem 0\n%endif ; ARCH_X86_64/32 etc.\n%endif ; %2\n\n%ifidn %1, v\n%assign %%tsp_mem 0\n%elif %2 == 16 ; && %1 == h\n%assign %%tsp_mem 16\n%else ; %1 == h && %1 == 8/4\n%assign %%tsp_mem 8\n%endif ; %1/%2\n\n%assign %%off %%wd_mem\n%assign %%tspoff %%bak_mem+%%wd_mem\n%assign %%stack_mem ((%%bak_mem+%%wd_mem+%%tsp_mem)*mmsize)\n\n%if %3 == 10\n%define %%maxsgn 511\n%define %%minsgn m512\n%define %%maxusgn 1023\n%define %%maxf 4\n%else ; %3 == 12\n%define %%maxsgn 2047\n%define %%minsgn m2048\n%define %%maxusgn 4095\n%define %%maxf 16\n%endif ; %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:6", "text": "%else ; %1 == h && %1 == 8/4\n%assign %%tsp_mem 8\n%endif ; %1/%2\n\n%assign %%off %%wd_mem\n%assign %%tspoff %%bak_mem+%%wd_mem\n%assign %%stack_mem ((%%bak_mem+%%wd_mem+%%tsp_mem)*mmsize)\n\n%if %3 == 10\n%define %%maxsgn 511\n%define %%minsgn m512\n%define %%maxusgn 1023\n%define %%maxf 4\n%else ; %3 == 12\n%define %%maxsgn 2047\n%define %%minsgn m2048\n%define %%maxusgn 4095\n%define %%maxf 16\n%endif ; %3\n\ncglobal vp9_loop_filter_%1_%2_%3, 5, %%num_gpr_regs, %%num_xmm_regs, %%stack_mem, dst, stride, E, I, H\n    ; prepare E, I and H masks\n    shl                 Ed, %3-8\n    shl                 Id, %3-8\n    shl                 Hd, %3-8\n%if cpuflag(ssse3)\n    mova                m0, [pw_256]\n%endif\n    movd                m1, Ed\n    movd                m2, Id\n    movd                m3, Hd\n%if cpuflag(ssse3)\n    pshufb              m1, m0                      ; E << (bit_depth - 8)\n    pshufb              m2, m0                      ; I << (bit_depth - 8)\n    pshufb              m3, m0                      ; H << (bit_depth - 8)\n%else\n    punpcklwd           m1, m1\n    punpcklwd           m2, m2\n    punpcklwd           m3, m3\n    pshufd              m1, m1, q0000\n    pshufd              m2, m2, q0000\n    pshufd              m3, m3, q0000\n%endif\n    SCRATCH              1,  8, rsp+(%%off+0)*mmsize,  E\n    SCRATCH              2,  9, rsp+(%%off+1)*mmsize,  I\n    SCRATCH              3, 10, rsp+(%%off+2)*mmsize,  H\n%if %2 > 4\n    PRELOAD                 11, pw_ %+ %%maxf, F\n%endif\n\n    ; set up variables to load data\n%ifidn %1, v\n    DEFINE_ARGS dst8, stride, stride3, dst0, dst4, dst12\n    lea           stride3q, [strideq*3]\n    neg            strideq\n%if %2 == 16\n    lea              dst0q, [dst8q+strideq*8]\n%else\n    lea              dst4q, [dst8q+strideq*4]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:7", "text": "pshufd              m2, m2, q0000\n    pshufd              m3, m3, q0000\n%endif\n    SCRATCH              1,  8, rsp+(%%off+0)*mmsize,  E\n    SCRATCH              2,  9, rsp+(%%off+1)*mmsize,  I\n    SCRATCH              3, 10, rsp+(%%off+2)*mmsize,  H\n%if %2 > 4\n    PRELOAD                 11, pw_ %+ %%maxf, F\n%endif\n\n    ; set up variables to load data\n%ifidn %1, v\n    DEFINE_ARGS dst8, stride, stride3, dst0, dst4, dst12\n    lea           stride3q, [strideq*3]\n    neg            strideq\n%if %2 == 16\n    lea              dst0q, [dst8q+strideq*8]\n%else\n    lea              dst4q, [dst8q+strideq*4]\n%endif\n    neg            strideq\n%if %2 == 16\n    lea             dst12q, [dst8q+strideq*4]\n    lea              dst4q, [dst0q+strideq*4]\n%endif\n\n%if %2 == 16\n%define %%p7 dst0q\n%define %%p6 dst0q+strideq\n%define %%p5 dst0q+strideq*2\n%define %%p4 dst0q+stride3q\n%endif\n%define %%p3 dst4q\n%define %%p2 dst4q+strideq\n%define %%p1 dst4q+strideq*2\n%define %%p0 dst4q+stride3q\n%define %%q0 dst8q\n%define %%q1 dst8q+strideq\n%define %%q2 dst8q+strideq*2\n%define %%q3 dst8q+stride3q\n%if %2 == 16\n%define %%q4 dst12q\n%define %%q5 dst12q+strideq\n%define %%q6 dst12q+strideq*2\n%define %%q7 dst12q+stride3q\n%endif\n%else ; %1 == h\n    DEFINE_ARGS dst0, stride, stride3, dst4\n    lea           stride3q, [strideq*3]\n    lea              dst4q, [dst0q+strideq*4]\n\n%define %%p3 rsp+(%%tspoff+0)*mmsize\n%define %%p2 rsp+(%%tspoff+1)*mmsize\n%define %%p1 rsp+(%%tspoff+2)*mmsize\n%define %%p0 rsp+(%%tspoff+3)*mmsize\n%define %%q0 rsp+(%%tspoff+4)*mmsize\n%define %%q1 rsp+(%%tspoff+5)*mmsize\n%define %%q2 rsp+(%%tspoff+6)*mmsize\n%define %%q3 rsp+(%%tspoff+7)*mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:8", "text": "%if %2 == 16\n%define %%q4 dst12q\n%define %%q5 dst12q+strideq\n%define %%q6 dst12q+strideq*2\n%define %%q7 dst12q+stride3q\n%endif\n%else ; %1 == h\n    DEFINE_ARGS dst0, stride, stride3, dst4\n    lea           stride3q, [strideq*3]\n    lea              dst4q, [dst0q+strideq*4]\n\n%define %%p3 rsp+(%%tspoff+0)*mmsize\n%define %%p2 rsp+(%%tspoff+1)*mmsize\n%define %%p1 rsp+(%%tspoff+2)*mmsize\n%define %%p0 rsp+(%%tspoff+3)*mmsize\n%define %%q0 rsp+(%%tspoff+4)*mmsize\n%define %%q1 rsp+(%%tspoff+5)*mmsize\n%define %%q2 rsp+(%%tspoff+6)*mmsize\n%define %%q3 rsp+(%%tspoff+7)*mmsize\n\n%if %2 < 16\n    movu                m0, [dst0q+strideq*0-8]\n    movu                m1, [dst0q+strideq*1-8]\n    movu                m2, [dst0q+strideq*2-8]\n    movu                m3, [dst0q+stride3q -8]\n    movu                m4, [dst4q+strideq*0-8]\n    movu                m5, [dst4q+strideq*1-8]\n    movu                m6, [dst4q+strideq*2-8]\n    movu                m7, [dst4q+stride3q -8]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        0, 1, 2, 3, 4, 5, 6, 7, 12\n%else\n    TRANSPOSE8x8W        0, 1, 2, 3, 4, 5, 6, 7, [%%p0], [%%q0]\n%endif\n\n    mova            [%%p3], m0\n    mova            [%%p2], m1\n    mova            [%%p1], m2\n    mova            [%%p0], m3\n%if ARCH_X86_64\n    mova            [%%q0], m4\n%endif\n    mova            [%%q1], m5\n    mova            [%%q2], m6\n    mova            [%%q3], m7\n\n    ; FIXME investigate if we can _not_ load q0-3 below if h, and adjust register\n    ; order here accordingly\n%else ; %2 == 16\n\n%define %%p7 rsp+(%%tspoff+ 8)*mmsize\n%define %%p6 rsp+(%%tspoff+ 9)*mmsize\n%define %%p5 rsp+(%%tspoff+10)*mmsize\n%define %%p4 rsp+(%%tspoff+11)*mmsize\n%define %%q4 rsp+(%%tspoff+12)*mmsize\n%define %%q5 rsp+(%%tspoff+13)*mmsize\n%define %%q6 rsp+(%%tspoff+14)*mmsize\n%define %%q7 rsp+(%%tspoff+15)*mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:9", "text": "%if ARCH_X86_64\n    mova            [%%q0], m4\n%endif\n    mova            [%%q1], m5\n    mova            [%%q2], m6\n    mova            [%%q3], m7\n\n    ; FIXME investigate if we can _not_ load q0-3 below if h, and adjust register\n    ; order here accordingly\n%else ; %2 == 16\n\n%define %%p7 rsp+(%%tspoff+ 8)*mmsize\n%define %%p6 rsp+(%%tspoff+ 9)*mmsize\n%define %%p5 rsp+(%%tspoff+10)*mmsize\n%define %%p4 rsp+(%%tspoff+11)*mmsize\n%define %%q4 rsp+(%%tspoff+12)*mmsize\n%define %%q5 rsp+(%%tspoff+13)*mmsize\n%define %%q6 rsp+(%%tspoff+14)*mmsize\n%define %%q7 rsp+(%%tspoff+15)*mmsize\n\n    mova                m0, [dst0q+strideq*0-16]\n    mova                m1, [dst0q+strideq*1-16]\n    mova                m2, [dst0q+strideq*2-16]\n    mova                m3, [dst0q+stride3q -16]\n    mova                m4, [dst4q+strideq*0-16]\n    mova                m5, [dst4q+strideq*1-16]\n%if ARCH_X86_64\n    mova                m6, [dst4q+strideq*2-16]\n%endif\n    mova                m7, [dst4q+stride3q -16]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        0, 1, 2, 3, 4, 5, 6, 7, 12\n%else\n    TRANSPOSE8x8W        0, 1, 2, 3, 4, 5, 6, 7, [dst4q+strideq*2-16], [%%p3], 1\n%endif\n\n    mova            [%%p7], m0\n    mova            [%%p6], m1\n    mova            [%%p5], m2\n    mova            [%%p4], m3\n%if ARCH_X86_64\n    mova            [%%p3], m4\n%endif\n    mova            [%%p2], m5\n    mova            [%%p1], m6\n    mova            [%%p0], m7\n\n    mova                m0, [dst0q+strideq*0]\n    mova                m1, [dst0q+strideq*1]\n    mova                m2, [dst0q+strideq*2]\n    mova                m3, [dst0q+stride3q ]\n    mova                m4, [dst4q+strideq*0]\n    mova                m5, [dst4q+strideq*1]\n%if ARCH_X86_64\n    mova                m6, [dst4q+strideq*2]\n%endif\n    mova                m7, [dst4q+stride3q ]\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:10", "text": "mova            [%%p4], m3\n%if ARCH_X86_64\n    mova            [%%p3], m4\n%endif\n    mova            [%%p2], m5\n    mova            [%%p1], m6\n    mova            [%%p0], m7\n\n    mova                m0, [dst0q+strideq*0]\n    mova                m1, [dst0q+strideq*1]\n    mova                m2, [dst0q+strideq*2]\n    mova                m3, [dst0q+stride3q ]\n    mova                m4, [dst4q+strideq*0]\n    mova                m5, [dst4q+strideq*1]\n%if ARCH_X86_64\n    mova                m6, [dst4q+strideq*2]\n%endif\n    mova                m7, [dst4q+stride3q ]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        0, 1, 2, 3, 4, 5, 6, 7, 12\n%else\n    TRANSPOSE8x8W        0, 1, 2, 3, 4, 5, 6, 7, [dst4q+strideq*2], [%%q4], 1\n%endif\n\n    mova            [%%q0], m0\n    mova            [%%q1], m1\n    mova            [%%q2], m2\n    mova            [%%q3], m3\n%if ARCH_X86_64\n    mova            [%%q4], m4\n%endif\n    mova            [%%q5], m5\n    mova            [%%q6], m6\n    mova            [%%q7], m7\n\n    ; FIXME investigate if we can _not_ load q0|q4-7 below if h, and adjust register\n    ; order here accordingly\n%endif ; %2\n%endif ; %1\n\n    ; load q0|q4-7 data\n    mova                m0, [%%q0]\n%if %2 == 16\n    mova                m4, [%%q4]\n    mova                m5, [%%q5]\n    mova                m6, [%%q6]\n    mova                m7, [%%q7]\n\n    ; flat8out q portion\n    FLAT8OUT_HALF\n    SCRATCH              7, 15, rsp+(%%off+6)*mmsize, F8O\n%endif\n\n    ; load q1-3 data\n    mova                m1, [%%q1]\n    mova                m2, [%%q2]\n    mova                m3, [%%q3]\n\n    ; r6-8|pw_4[m8-11]=reg_E/I/H/F", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:11", "text": "; load q0|q4-7 data\n    mova                m0, [%%q0]\n%if %2 == 16\n    mova                m4, [%%q4]\n    mova                m5, [%%q5]\n    mova                m6, [%%q6]\n    mova                m7, [%%q7]\n\n    ; flat8out q portion\n    FLAT8OUT_HALF\n    SCRATCH              7, 15, rsp+(%%off+6)*mmsize, F8O\n%endif\n\n    ; load q1-3 data\n    mova                m1, [%%q1]\n    mova                m2, [%%q2]\n    mova                m3, [%%q3]\n\n    ; r6-8|pw_4[m8-11]=reg_E/I/H/F\n    ; r9[m15]=!flatout[q]\n    ; m12-14=free\n    ; m0-3=q0-q3\n    ; m4-7=free\n\n    ; flat8in|fm|hev q portion\n    FLAT8IN_HALF        %2\n    SCRATCH              7, 13, rsp+(%%off+4)*mmsize, HEV\n%if %2 > 4\n    SCRATCH              4, 14, rsp+(%%off+5)*mmsize, F8I\n%endif\n\n    ; r6-8|pw_4[m8-11]=reg_E/I/H/F\n    ; r9[m15]=!flat8out[q]\n    ; r10[m13]=hev[q]\n    ; r11[m14]=!flat8in[q]\n    ; m2=!fm[q]\n    ; m0,1=q0-q1\n    ; m2-7=free\n    ; m12=free\n\n    ; load p0-1\n    mova                m3, [%%p0]\n    mova                m4, [%%p1]\n\n    ; fm mb_edge portion\n    psubw               m5, m3, m0                  ; q0-p0\n    psubw               m6, m4, m1                  ; q1-p1\n%if ARCH_X86_64\n    ABS2                m5, m6, m7, m12             ; abs(q0-p0) | abs(q1-p1)\n%else\n    ABS1                m5, m7                      ; abs(q0-p0)\n    ABS1                m6, m7                      ; abs(q1-p1)\n%endif\n    paddw               m5, m5\n    psraw               m6, 1\n    paddw               m6, m5                      ; abs(q0-p0)*2+(abs(q1-p1)>>1)\n    pcmpgtw             m6, reg_E\n    por                 m2, m6\n    SCRATCH              2, 12, rsp+(%%off+3)*mmsize, FM", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:12", "text": "; load p0-1\n    mova                m3, [%%p0]\n    mova                m4, [%%p1]\n\n    ; fm mb_edge portion\n    psubw               m5, m3, m0                  ; q0-p0\n    psubw               m6, m4, m1                  ; q1-p1\n%if ARCH_X86_64\n    ABS2                m5, m6, m7, m12             ; abs(q0-p0) | abs(q1-p1)\n%else\n    ABS1                m5, m7                      ; abs(q0-p0)\n    ABS1                m6, m7                      ; abs(q1-p1)\n%endif\n    paddw               m5, m5\n    psraw               m6, 1\n    paddw               m6, m5                      ; abs(q0-p0)*2+(abs(q1-p1)>>1)\n    pcmpgtw             m6, reg_E\n    por                 m2, m6\n    SCRATCH              2, 12, rsp+(%%off+3)*mmsize, FM\n\n    ; r6-8|pw_4[m8-11]=reg_E/I/H/F\n    ; r9[m15]=!flat8out[q]\n    ; r10[m13]=hev[q]\n    ; r11[m14]=!flat8in[q]\n    ; r12[m12]=!fm[q]\n    ; m3-4=q0-1\n    ; m0-2/5-7=free\n\n    ; load p4-7 data\n    SWAP                 3, 0                       ; p0\n    SWAP                 4, 1                       ; p1\n%if %2 == 16\n    mova                m7, [%%p7]\n    mova                m6, [%%p6]\n    mova                m5, [%%p5]\n    mova                m4, [%%p4]\n\n    ; flat8out p portion\n    FLAT8OUT_HALF\n    por                 m7, reg_F8O\n    SCRATCH              7, 15, rsp+(%%off+6)*mmsize, F8O\n%endif\n\n    ; r6-8|pw_4[m8-11]=reg_E/I/H/F\n    ; r9[m15]=!flat8out\n    ; r10[m13]=hev[q]\n    ; r11[m14]=!flat8in[q]\n    ; r12[m12]=!fm[q]\n    ; m0=p0\n    ; m1-7=free\n\n    ; load p2-3 data\n    mova                m2, [%%p2]\n    mova                m3, [%%p3]\n\n    ; flat8in|fm|hev p portion\n    FLAT8IN_HALF        %2\n    por                 m7, reg_HEV\n%if %2 > 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:13", "text": "por                 m7, reg_F8O\n    SCRATCH              7, 15, rsp+(%%off+6)*mmsize, F8O\n%endif\n\n    ; r6-8|pw_4[m8-11]=reg_E/I/H/F\n    ; r9[m15]=!flat8out\n    ; r10[m13]=hev[q]\n    ; r11[m14]=!flat8in[q]\n    ; r12[m12]=!fm[q]\n    ; m0=p0\n    ; m1-7=free\n\n    ; load p2-3 data\n    mova                m2, [%%p2]\n    mova                m3, [%%p3]\n\n    ; flat8in|fm|hev p portion\n    FLAT8IN_HALF        %2\n    por                 m7, reg_HEV\n%if %2 > 4\n    por                 m4, reg_F8I\n%endif\n    por                 m2, reg_FM\n%if %2 > 4\n    por                 m4, m2                      ; !flat8|!fm\n%if %2 == 16\n    por                 m5, m4, reg_F8O             ; !flat16|!fm\n    pandn               m2, m4                      ; filter4_mask\n    pandn               m4, m5                      ; filter8_mask\n    pxor                m5, [pw_m1]                 ; filter16_mask\n    SCRATCH              5, 15, rsp+(%%off+6)*mmsize, F16M\n%else\n    pandn               m2, m4                      ; filter4_mask\n    pxor                m4, [pw_m1]                 ; filter8_mask\n%endif\n    SCRATCH              4, 14, rsp+(%%off+5)*mmsize, F8M\n%else\n    pxor                m2, [pw_m1]                 ; filter4_mask\n%endif\n    SCRATCH              7, 13, rsp+(%%off+4)*mmsize, HEV\n    SCRATCH              2, 12, rsp+(%%off+3)*mmsize, F4M\n\n    ; r9[m15]=filter16_mask\n    ; r10[m13]=hev\n    ; r11[m14]=filter8_mask\n    ; r12[m12]=filter4_mask\n    ; m0,1=p0-p1\n    ; m2-7=free\n    ; m8-11=free\n\n%if %2 > 4\n%if %2 == 16\n    ; filter_14\n    mova                m2, [%%p7]\n    mova                m3, [%%p6]\n    mova                m6, [%%p5]\n    mova                m7, [%%p4]\n    PRELOAD              8, %%p3, P3\n    PRELOAD              9, %%p2, P2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:14", "text": "SCRATCH              2, 12, rsp+(%%off+3)*mmsize, F4M\n\n    ; r9[m15]=filter16_mask\n    ; r10[m13]=hev\n    ; r11[m14]=filter8_mask\n    ; r12[m12]=filter4_mask\n    ; m0,1=p0-p1\n    ; m2-7=free\n    ; m8-11=free\n\n%if %2 > 4\n%if %2 == 16\n    ; filter_14\n    mova                m2, [%%p7]\n    mova                m3, [%%p6]\n    mova                m6, [%%p5]\n    mova                m7, [%%p4]\n    PRELOAD              8, %%p3, P3\n    PRELOAD              9, %%p2, P2\n%endif\n    PRELOAD             10, %%q0, Q0\n    PRELOAD             11, %%q1, Q1\n%if %2 == 16\n    psllw               m4, m2, 3\n    paddw               m5, m3, m3\n    paddw               m4, m6\n    paddw               m5, m7\n    paddw               m4, reg_P3\n    paddw               m5, reg_P2\n    paddw               m4, m1\n    paddw               m5, m0\n    paddw               m4, reg_Q0                  ; q0+p1+p3+p5+p7*8\n    psubw               m5, m2                      ; p0+p2+p4+p6*2-p7\n    paddw               m4, [pw_8]\n    paddw               m5, m4                      ; q0+p0+p1+p2+p3+p4+p5+p6*2+p7*7+8\n\n    ; below, we use r0-5 for storing pre-filter pixels for subsequent subtraction\n    ; at the end of the filter\n\n    mova    [rsp+0*mmsize], m3\n    FILTER_STEP         m4, m5, F16M, 4, %%p6, m3,     m2,             m6,     reg_Q1\n%endif\n    mova                m3, [%%q2]\n%if %2 == 16\n    mova    [rsp+1*mmsize], m6\n    FILTER_STEP         m4, m5, F16M, 4, %%p5, m6,     m2,             m7,     m3\n%endif\n    mova                m6, [%%q3]\n%if %2 == 16\n    mova    [rsp+2*mmsize], m7\n    FILTER_STEP         m4, m5, F16M, 4, %%p4, m7,     m2,             reg_P3, m6\n    mova                m7, [%%q4]\n%if ARCH_X86_64\n    mova    [rsp+3*mmsize], reg_P3\n%else\n    mova                m4, reg_P3\n    mova    [rsp+3*mmsize], m4\n%endif\n    FILTER_STEP         m4, m5, F16M, 4, %%p3, reg_P3, m2,             reg_P2, m7\n    PRELOAD              8, %%q5, Q5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:15", "text": "FILTER_STEP         m4, m5, F16M, 4, %%p6, m3,     m2,             m6,     reg_Q1\n%endif\n    mova                m3, [%%q2]\n%if %2 == 16\n    mova    [rsp+1*mmsize], m6\n    FILTER_STEP         m4, m5, F16M, 4, %%p5, m6,     m2,             m7,     m3\n%endif\n    mova                m6, [%%q3]\n%if %2 == 16\n    mova    [rsp+2*mmsize], m7\n    FILTER_STEP         m4, m5, F16M, 4, %%p4, m7,     m2,             reg_P3, m6\n    mova                m7, [%%q4]\n%if ARCH_X86_64\n    mova    [rsp+3*mmsize], reg_P3\n%else\n    mova                m4, reg_P3\n    mova    [rsp+3*mmsize], m4\n%endif\n    FILTER_STEP         m4, m5, F16M, 4, %%p3, reg_P3, m2,             reg_P2, m7\n    PRELOAD              8, %%q5, Q5\n%if ARCH_X86_64\n    mova    [rsp+4*mmsize], reg_P2\n%else\n    mova                m4, reg_P2\n    mova    [rsp+4*mmsize], m4\n%endif\n    FILTER_STEP         m4, m5, F16M, 4, %%p2, reg_P2, m2,             m1,     reg_Q5\n    PRELOAD              9, %%q6, Q6\n    mova    [rsp+5*mmsize], m1\n    FILTER_STEP         m4, m5, F16M, 4, %%p1, m1,     m2,             m0,     reg_Q6\n    mova                m1, [%%q7]\n    FILTER_STEP         m4, m5, F16M, 4, %%p0, m0,     m2,             reg_Q0, m1,     1\n    FILTER_STEP         m4, m5, F16M, 4, %%q0, reg_Q0, [rsp+0*mmsize], reg_Q1, m1,     ARCH_X86_64\n    FILTER_STEP         m4, m5, F16M, 4, %%q1, reg_Q1, [rsp+1*mmsize], m3,     m1,     ARCH_X86_64\n    FILTER_STEP         m4, m5, F16M, 4, %%q2, m3,     [rsp+2*mmsize], m6,     m1,     1\n    FILTER_STEP         m4, m5, F16M, 4, %%q3, m6,     [rsp+3*mmsize], m7,     m1\n    FILTER_STEP         m4, m5, F16M, 4, %%q4, m7,     [rsp+4*mmsize], reg_Q5, m1\n    FILTER_STEP         m4, m5, F16M, 4, %%q5, reg_Q5, [rsp+5*mmsize], reg_Q6, m1\n    FILTER_STEP         m4, m5, F16M, 4, %%q6, reg_Q6\n\n    mova                m7, [%%p1]\n%else\n    SWAP                 1, 7\n%endif\n\n    mova                m2, [%%p3]\n    mova                m1, [%%p2]\n\n    ; reg_Q0-1 (m10-m11)\n    ; m0=p0\n    ; m1=p2\n    ; m2=p3\n    ; m3=q2\n    ; m4-5=free\n    ; m6=q3\n    ; m7=p1\n    ; m8-9 unused\n\n    ; filter_6\n    psllw               m4, m2, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:16", "text": "mova                m7, [%%p1]\n%else\n    SWAP                 1, 7\n%endif\n\n    mova                m2, [%%p3]\n    mova                m1, [%%p2]\n\n    ; reg_Q0-1 (m10-m11)\n    ; m0=p0\n    ; m1=p2\n    ; m2=p3\n    ; m3=q2\n    ; m4-5=free\n    ; m6=q3\n    ; m7=p1\n    ; m8-9 unused\n\n    ; filter_6\n    psllw               m4, m2, 2\n    paddw               m5, m1, m1\n    paddw               m4, m7\n    psubw               m5, m2\n    paddw               m4, m0\n    paddw               m5, reg_Q0\n    paddw               m4, [pw_4]\n    paddw               m5, m4\n\n%if ARCH_X86_64\n    mova                m8, m1\n    mova                m9, m7\n%else\n    mova    [rsp+0*mmsize], m1\n    mova    [rsp+1*mmsize], m7\n%endif\n%ifidn %1, v\n    FILTER_STEP         m4, m5, F8M, 3, %%p2, m1,     m2,             m7,     reg_Q1\n%else\n    FILTER_STEP         m4, m5, F8M, 3, %%p2, m1,     m2,             m7,     reg_Q1, 1\n%endif\n    FILTER_STEP         m4, m5, F8M, 3, %%p1, m7,     m2,             m0,     m3, 1\n    FILTER_STEP         m4, m5, F8M, 3, %%p0, m0,     m2,             reg_Q0, m6, 1\n%if ARCH_X86_64\n    FILTER_STEP         m4, m5, F8M, 3, %%q0, reg_Q0, m8,             reg_Q1, m6, ARCH_X86_64\n    FILTER_STEP         m4, m5, F8M, 3, %%q1, reg_Q1, m9,             m3,     m6, ARCH_X86_64\n%else\n    FILTER_STEP         m4, m5, F8M, 3, %%q0, reg_Q0, [rsp+0*mmsize], reg_Q1, m6, ARCH_X86_64\n    FILTER_STEP         m4, m5, F8M, 3, %%q1, reg_Q1, [rsp+1*mmsize], m3,     m6, ARCH_X86_64\n%endif\n    FILTER_STEP         m4, m5, F8M, 3, %%q2, m3\n\n    UNSCRATCH            2, 10, %%q0\n    UNSCRATCH            6, 11, %%q1\n%else\n    SWAP                 1, 7\n    mova                m2, [%%q0]\n    mova                m6, [%%q1]\n%endif\n    UNSCRATCH            3, 13, rsp+(%%off+4)*mmsize, HEV", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:17", "text": "FILTER_STEP         m4, m5, F8M, 3, %%p1, m7,     m2,             m0,     m3, 1\n    FILTER_STEP         m4, m5, F8M, 3, %%p0, m0,     m2,             reg_Q0, m6, 1\n%if ARCH_X86_64\n    FILTER_STEP         m4, m5, F8M, 3, %%q0, reg_Q0, m8,             reg_Q1, m6, ARCH_X86_64\n    FILTER_STEP         m4, m5, F8M, 3, %%q1, reg_Q1, m9,             m3,     m6, ARCH_X86_64\n%else\n    FILTER_STEP         m4, m5, F8M, 3, %%q0, reg_Q0, [rsp+0*mmsize], reg_Q1, m6, ARCH_X86_64\n    FILTER_STEP         m4, m5, F8M, 3, %%q1, reg_Q1, [rsp+1*mmsize], m3,     m6, ARCH_X86_64\n%endif\n    FILTER_STEP         m4, m5, F8M, 3, %%q2, m3\n\n    UNSCRATCH            2, 10, %%q0\n    UNSCRATCH            6, 11, %%q1\n%else\n    SWAP                 1, 7\n    mova                m2, [%%q0]\n    mova                m6, [%%q1]\n%endif\n    UNSCRATCH            3, 13, rsp+(%%off+4)*mmsize, HEV\n\n    ; m0=p0\n    ; m1=p2\n    ; m2=q0\n    ; m3=hev_mask\n    ; m4-5=free\n    ; m6=q1\n    ; m7=p1\n\n    ; filter_4\n    psubw               m4, m7, m6              ; p1-q1\n    psubw               m5, m2, m0              ; q0-p0\n    pand                m4, m3\n    pminsw              m4, [pw_ %+ %%maxsgn]\n    pmaxsw              m4, [pw_ %+ %%minsgn]   ; clip_intp2(p1-q1, 9) -> f\n    paddw               m4, m5\n    paddw               m5, m5\n    paddw               m4, m5                  ; 3*(q0-p0)+f\n    pminsw              m4, [pw_ %+ %%maxsgn]\n    pmaxsw              m4, [pw_ %+ %%minsgn]   ; clip_intp2(3*(q0-p0)+f, 9) -> f\n    pand                m4, reg_F4M\n    paddw               m5, m4, [pw_4]\n    paddw               m4, [pw_3]\n    pminsw              m5, [pw_ %+ %%maxsgn]\n    pminsw              m4, [pw_ %+ %%maxsgn]\n    psraw               m5, 3                   ; min_intp2(f+4, 9)>>3 -> f1\n    psraw               m4, 3                   ; min_intp2(f+3, 9)>>3 -> f2\n    psubw               m2, m5                  ; q0-f1\n    paddw               m0, m4                  ; p0+f2\n    pandn               m3, m5                  ; f1 & !hev (for p1/q1 adj)\n    pxor                m4, m4\n    mova                m5, [pw_ %+ %%maxusgn]\n    pmaxsw              m2, m4\n    pmaxsw              m0, m4\n    pminsw              m2, m5\n    pminsw              m0, m5\n%if cpuflag(ssse3)\n    pmulhrsw            m3, [pw_16384]          ; (f1+1)>>1\n%else\n    paddw               m3, [pw_1]\n    psraw               m3, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:18", "text": "paddw               m5, m4, [pw_4]\n    paddw               m4, [pw_3]\n    pminsw              m5, [pw_ %+ %%maxsgn]\n    pminsw              m4, [pw_ %+ %%maxsgn]\n    psraw               m5, 3                   ; min_intp2(f+4, 9)>>3 -> f1\n    psraw               m4, 3                   ; min_intp2(f+3, 9)>>3 -> f2\n    psubw               m2, m5                  ; q0-f1\n    paddw               m0, m4                  ; p0+f2\n    pandn               m3, m5                  ; f1 & !hev (for p1/q1 adj)\n    pxor                m4, m4\n    mova                m5, [pw_ %+ %%maxusgn]\n    pmaxsw              m2, m4\n    pmaxsw              m0, m4\n    pminsw              m2, m5\n    pminsw              m0, m5\n%if cpuflag(ssse3)\n    pmulhrsw            m3, [pw_16384]          ; (f1+1)>>1\n%else\n    paddw               m3, [pw_1]\n    psraw               m3, 1\n%endif\n    paddw               m7, m3                  ; p1+f\n    psubw               m6, m3                  ; q1-f\n    pmaxsw              m7, m4\n    pmaxsw              m6, m4\n    pminsw              m7, m5\n    pminsw              m6, m5\n\n    ; store\n%ifidn %1, v\n    mova            [%%p1], m7\n    mova            [%%p0], m0\n    mova            [%%q0], m2\n    mova            [%%q1], m6\n%else ; %1 == h\n%if %2 == 4\n    TRANSPOSE4x4W        7, 0, 2, 6, 1\n    movh   [dst0q+strideq*0-4], m7\n    movhps [dst0q+strideq*1-4], m7\n    movh   [dst0q+strideq*2-4], m0\n    movhps [dst0q+stride3q -4], m0\n    movh   [dst4q+strideq*0-4], m2\n    movhps [dst4q+strideq*1-4], m2\n    movh   [dst4q+strideq*2-4], m6\n    movhps [dst4q+stride3q -4], m6\n%elif %2 == 8\n    mova                m3, [%%p3]\n    mova                m4, [%%q2]\n    mova                m5, [%%q3]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        3, 1, 7, 0, 2, 6, 4, 5, 8\n%else\n    TRANSPOSE8x8W        3, 1, 7, 0, 2, 6, 4, 5, [%%q2], [%%q0], 1\n    mova                m2, [%%q0]\n%endif\n\n    movu [dst0q+strideq*0-8], m3\n    movu [dst0q+strideq*1-8], m1\n    movu [dst0q+strideq*2-8], m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:19", "text": "movhps [dst0q+stride3q -4], m0\n    movh   [dst4q+strideq*0-4], m2\n    movhps [dst4q+strideq*1-4], m2\n    movh   [dst4q+strideq*2-4], m6\n    movhps [dst4q+stride3q -4], m6\n%elif %2 == 8\n    mova                m3, [%%p3]\n    mova                m4, [%%q2]\n    mova                m5, [%%q3]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        3, 1, 7, 0, 2, 6, 4, 5, 8\n%else\n    TRANSPOSE8x8W        3, 1, 7, 0, 2, 6, 4, 5, [%%q2], [%%q0], 1\n    mova                m2, [%%q0]\n%endif\n\n    movu [dst0q+strideq*0-8], m3\n    movu [dst0q+strideq*1-8], m1\n    movu [dst0q+strideq*2-8], m7\n    movu [dst0q+stride3q -8], m0\n    movu [dst4q+strideq*0-8], m2\n    movu [dst4q+strideq*1-8], m6\n    movu [dst4q+strideq*2-8], m4\n    movu [dst4q+stride3q -8], m5\n%else ; %2 == 16\n    SCRATCH              2, 8, %%q0\n    SCRATCH              6, 9, %%q1\n    mova                m2, [%%p7]\n    mova                m3, [%%p6]\n    mova                m4, [%%p5]\n    mova                m5, [%%p4]\n    mova                m6, [%%p3]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        2, 3, 4, 5, 6, 1, 7, 0, 10\n%else\n    mova            [%%p1], m7\n    TRANSPOSE8x8W        2, 3, 4, 5, 6, 1, 7, 0, [%%p1], [dst4q+strideq*0-16], 1\n%endif\n\n    mova [dst0q+strideq*0-16], m2\n    mova [dst0q+strideq*1-16], m3\n    mova [dst0q+strideq*2-16], m4\n    mova [dst0q+stride3q -16], m5\n%if ARCH_X86_64\n    mova [dst4q+strideq*0-16], m6\n%endif\n    mova [dst4q+strideq*1-16], m1\n    mova [dst4q+strideq*2-16], m7\n    mova [dst4q+stride3q -16], m0\n\n    UNSCRATCH            2, 8, %%q0\n    UNSCRATCH            6, 9, %%q1\n    mova                m0, [%%q2]\n    mova                m1, [%%q3]\n    mova                m3, [%%q4]\n    mova                m4, [%%q5]\n%if ARCH_X86_64\n    mova                m5, [%%q6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:20", "text": "mova [dst0q+strideq*0-16], m2\n    mova [dst0q+strideq*1-16], m3\n    mova [dst0q+strideq*2-16], m4\n    mova [dst0q+stride3q -16], m5\n%if ARCH_X86_64\n    mova [dst4q+strideq*0-16], m6\n%endif\n    mova [dst4q+strideq*1-16], m1\n    mova [dst4q+strideq*2-16], m7\n    mova [dst4q+stride3q -16], m0\n\n    UNSCRATCH            2, 8, %%q0\n    UNSCRATCH            6, 9, %%q1\n    mova                m0, [%%q2]\n    mova                m1, [%%q3]\n    mova                m3, [%%q4]\n    mova                m4, [%%q5]\n%if ARCH_X86_64\n    mova                m5, [%%q6]\n%endif\n    mova                m7, [%%q7]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W        2, 6, 0, 1, 3, 4, 5, 7, 8\n%else\n    TRANSPOSE8x8W        2, 6, 0, 1, 3, 4, 5, 7, [%%q6], [dst4q+strideq*0], 1\n%endif\n\n    mova [dst0q+strideq*0], m2\n    mova [dst0q+strideq*1], m6\n    mova [dst0q+strideq*2], m0\n    mova [dst0q+stride3q ], m1\n%if ARCH_X86_64\n    mova [dst4q+strideq*0], m3\n%endif\n    mova [dst4q+strideq*1], m4\n    mova [dst4q+strideq*2], m5\n    mova [dst4q+stride3q ], m7\n%endif ; %2\n%endif ; %1\n    RET\n%endmacro\n\n%macro LOOP_FILTER_CPUSETS 3\nINIT_XMM sse2\nLOOP_FILTER %1, %2, %3\nINIT_XMM ssse3\nLOOP_FILTER %1, %2, %3\nINIT_XMM avx\nLOOP_FILTER %1, %2, %3\n%endmacro\n\n%macro LOOP_FILTER_WDSETS 2\nLOOP_FILTER_CPUSETS %1,  4, %2\nLOOP_FILTER_CPUSETS %1,  8, %2\nLOOP_FILTER_CPUSETS %1, 16, %2\n%endmacro\n\nLOOP_FILTER_WDSETS h, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9lpf_16bpp.asm:21", "text": "%endif ; %1\n    RET\n%endmacro\n\n%macro LOOP_FILTER_CPUSETS 3\nINIT_XMM sse2\nLOOP_FILTER %1, %2, %3\nINIT_XMM ssse3\nLOOP_FILTER %1, %2, %3\nINIT_XMM avx\nLOOP_FILTER %1, %2, %3\n%endmacro\n\n%macro LOOP_FILTER_WDSETS 2\nLOOP_FILTER_CPUSETS %1,  4, %2\nLOOP_FILTER_CPUSETS %1,  8, %2\nLOOP_FILTER_CPUSETS %1, 16, %2\n%endmacro\n\nLOOP_FILTER_WDSETS h, 10\nLOOP_FILTER_WDSETS v, 10\nLOOP_FILTER_WDSETS h, 12\nLOOP_FILTER_WDSETS v, 12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9lpf_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9lpf_16bpp.asm", "line_start": 801, "line_end": 823}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:1", "text": ";******************************************************************************\n;* VP9 motion compensation SIMD optimizations\n;*\n;* Copyright (c) 2013 Ronald S. Bultje <rsbultje gmail com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\ncextern pw_256\ncextern pw_64\n\n%macro F8_SSSE3_TAPS 8\ntimes 16 db %1, %2\ntimes 16 db %3, %4\ntimes 16 db %5, %6\ntimes 16 db %7, %8\n%endmacro\n\n%macro F8_SSE2_TAPS 8\ntimes 8 dw %1\ntimes 8 dw %2\ntimes 8 dw %3\ntimes 8 dw %4\ntimes 8 dw %5\ntimes 8 dw %6\ntimes 8 dw %7\ntimes 8 dw %8\n%endmacro\n\n%macro F8_16BPP_TAPS 8\ntimes 8 dw %1, %2\ntimes 8 dw %3, %4\ntimes 8 dw %5, %6\ntimes 8 dw %7, %8\n%endmacro\n\n%macro FILTER 1\nconst filters_%1 ; smooth\n                    F8_TAPS -3, -1,  32,  64,  38,   1, -3,  0\n                    F8_TAPS -2, -2,  29,  63,  41,   2, -3,  0\n                    F8_TAPS -2, -2,  26,  63,  43,   4, -4,  0\n                    F8_TAPS -2, -3,  24,  62,  46,   5, -4,  0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:2", "text": "times 8 dw %4\ntimes 8 dw %5\ntimes 8 dw %6\ntimes 8 dw %7\ntimes 8 dw %8\n%endmacro\n\n%macro F8_16BPP_TAPS 8\ntimes 8 dw %1, %2\ntimes 8 dw %3, %4\ntimes 8 dw %5, %6\ntimes 8 dw %7, %8\n%endmacro\n\n%macro FILTER 1\nconst filters_%1 ; smooth\n                    F8_TAPS -3, -1,  32,  64,  38,   1, -3,  0\n                    F8_TAPS -2, -2,  29,  63,  41,   2, -3,  0\n                    F8_TAPS -2, -2,  26,  63,  43,   4, -4,  0\n                    F8_TAPS -2, -3,  24,  62,  46,   5, -4,  0\n                    F8_TAPS -2, -3,  21,  60,  49,   7, -4,  0\n                    F8_TAPS -1, -4,  18,  59,  51,   9, -4,  0\n                    F8_TAPS -1, -4,  16,  57,  53,  12, -4, -1\n                    F8_TAPS -1, -4,  14,  55,  55,  14, -4, -1\n                    F8_TAPS -1, -4,  12,  53,  57,  16, -4, -1\n                    F8_TAPS  0, -4,   9,  51,  59,  18, -4, -1\n                    F8_TAPS  0, -4,   7,  49,  60,  21, -3, -2\n                    F8_TAPS  0, -4,   5,  46,  62,  24, -3, -2\n                    F8_TAPS  0, -4,   4,  43,  63,  26, -2, -2\n                    F8_TAPS  0, -3,   2,  41,  63,  29, -2, -2\n                    F8_TAPS  0, -3,   1,  38,  64,  32, -1, -3\n                    ; regular\n                    F8_TAPS  0,  1,  -5, 126,   8,  -3,  1,  0\n                    F8_TAPS -1,  3, -10, 122,  18,  -6,  2,  0\n                    F8_TAPS -1,  4, -13, 118,  27,  -9,  3, -1\n                    F8_TAPS -1,  4, -16, 112,  37, -11,  4, -1\n                    F8_TAPS -1,  5, -18, 105,  48, -14,  4, -1\n                    F8_TAPS -1,  5, -19,  97,  58, -16,  5, -1\n                    F8_TAPS -1,  6, -19,  88,  68, -18,  5, -1\n                    F8_TAPS -1,  6, -19,  78,  78, -19,  6, -1\n                    F8_TAPS -1,  5, -18,  68,  88, -19,  6, -1\n                    F8_TAPS -1,  5, -16,  58,  97, -19,  5, -1\n                    F8_TAPS -1,  4, -14,  48, 105, -18,  5, -1\n                    F8_TAPS -1,  4, -11,  37, 112, -16,  4, -1\n                    F8_TAPS -1,  3,  -9,  27, 118, -13,  4, -1\n                    F8_TAPS  0,  2,  -6,  18, 122, -10,  3, -1\n                    F8_TAPS  0,  1,  -3,   8, 126,  -5,  1,  0\n                    ; sharp\n                    F8_TAPS -1,  3,  -7, 127,   8,  -3,  1,  0\n                    F8_TAPS -2,  5, -13, 125,  17,  -6,  3, -1\n                    F8_TAPS -3,  7, -17, 121,  27, -10,  5, -2\n                    F8_TAPS -4,  9, -20, 115,  37, -13,  6, -2\n                    F8_TAPS -4, 10, -23, 108,  48, -16,  8, -3\n                    F8_TAPS -4, 10, -24, 100,  59, -19,  9, -3\n                    F8_TAPS -4, 11, -24,  90,  70, -21, 10, -4\n                    F8_TAPS -4, 11, -23,  80,  80, -23, 11, -4\n                    F8_TAPS -4, 10, -21,  70,  90, -24, 11, -4\n                    F8_TAPS -3,  9, -19,  59, 100, -24, 10, -4\n                    F8_TAPS -3,  8, -16,  48, 108, -23, 10, -4\n                    F8_TAPS -2,  6, -13,  37, 115, -20,  9, -4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:3", "text": "F8_TAPS -1,  5, -18,  68,  88, -19,  6, -1\n                    F8_TAPS -1,  5, -16,  58,  97, -19,  5, -1\n                    F8_TAPS -1,  4, -14,  48, 105, -18,  5, -1\n                    F8_TAPS -1,  4, -11,  37, 112, -16,  4, -1\n                    F8_TAPS -1,  3,  -9,  27, 118, -13,  4, -1\n                    F8_TAPS  0,  2,  -6,  18, 122, -10,  3, -1\n                    F8_TAPS  0,  1,  -3,   8, 126,  -5,  1,  0\n                    ; sharp\n                    F8_TAPS -1,  3,  -7, 127,   8,  -3,  1,  0\n                    F8_TAPS -2,  5, -13, 125,  17,  -6,  3, -1\n                    F8_TAPS -3,  7, -17, 121,  27, -10,  5, -2\n                    F8_TAPS -4,  9, -20, 115,  37, -13,  6, -2\n                    F8_TAPS -4, 10, -23, 108,  48, -16,  8, -3\n                    F8_TAPS -4, 10, -24, 100,  59, -19,  9, -3\n                    F8_TAPS -4, 11, -24,  90,  70, -21, 10, -4\n                    F8_TAPS -4, 11, -23,  80,  80, -23, 11, -4\n                    F8_TAPS -4, 10, -21,  70,  90, -24, 11, -4\n                    F8_TAPS -3,  9, -19,  59, 100, -24, 10, -4\n                    F8_TAPS -3,  8, -16,  48, 108, -23, 10, -4\n                    F8_TAPS -2,  6, -13,  37, 115, -20,  9, -4\n                    F8_TAPS -2,  5, -10,  27, 121, -17,  7, -3\n                    F8_TAPS -1,  3,  -6,  17, 125, -13,  5, -2\n                    F8_TAPS  0,  1,  -3,   8, 127,  -7,  3, -1\n%endmacro\n\n%define F8_TAPS F8_SSSE3_TAPS\n; int8_t ff_filters_ssse3[3][15][4][32]\nFILTER ssse3\n%define F8_TAPS F8_SSE2_TAPS\n; int16_t ff_filters_sse2[3][15][8][8]\nFILTER sse2\n%define F8_TAPS F8_16BPP_TAPS\n; int16_t ff_filters_16bpp[3][15][4][16]\nFILTER 16bpp\n\nSECTION .text\n\n%macro filter_sse2_h_fn 1\n%assign %%px mmsize/2\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _8, 6, 6, 15, dst, dstride, src, sstride, h, filtery\n    pxor        m5, m5\n    mova        m6, [pw_64]\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 16]\n    mova        m9, [filteryq+ 32]\n    mova       m10, [filteryq+ 48]\n    mova       m11, [filteryq+ 64]\n    mova       m12, [filteryq+ 80]\n    mova       m13, [filteryq+ 96]\n    mova       m14, [filteryq+112]\n%endif\n.loop:\n    movh        m0, [srcq-3]\n    movh        m1, [srcq-2]\n    movh        m2, [srcq-1]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+1]\n    punpcklbw   m0, m5\n    punpcklbw   m1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:4", "text": "pxor        m5, m5\n    mova        m6, [pw_64]\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 16]\n    mova        m9, [filteryq+ 32]\n    mova       m10, [filteryq+ 48]\n    mova       m11, [filteryq+ 64]\n    mova       m12, [filteryq+ 80]\n    mova       m13, [filteryq+ 96]\n    mova       m14, [filteryq+112]\n%endif\n.loop:\n    movh        m0, [srcq-3]\n    movh        m1, [srcq-2]\n    movh        m2, [srcq-1]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+1]\n    punpcklbw   m0, m5\n    punpcklbw   m1, m5\n    punpcklbw   m2, m5\n    punpcklbw   m3, m5\n    punpcklbw   m4, m5\n    pmullw      m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmullw      m1, m8\n    pmullw      m2, m9\n    pmullw      m3, m10\n    pmullw      m4, m11\n%else\n    pmullw      m1, [filteryq+ 16]\n    pmullw      m2, [filteryq+ 32]\n    pmullw      m3, [filteryq+ 48]\n    pmullw      m4, [filteryq+ 64]\n%endif\n    paddw       m0, m1\n    paddw       m2, m3\n    paddw       m0, m4\n    movh        m1, [srcq+2]\n    movh        m3, [srcq+3]\n    movh        m4, [srcq+4]\n    add       srcq, sstrideq\n    punpcklbw   m1, m5\n    punpcklbw   m3, m5\n    punpcklbw   m4, m5\n%if ARCH_X86_64 && mmsize > 8\n    pmullw      m1, m12\n    pmullw      m3, m13\n    pmullw      m4, m14\n%else\n    pmullw      m1, [filteryq+ 80]\n    pmullw      m3, [filteryq+ 96]\n    pmullw      m4, [filteryq+112]\n%endif\n    paddw       m0, m1\n    paddw       m3, m4\n    paddw       m0, m6\n    paddw       m2, m3\n    paddsw      m0, m2\n    psraw       m0, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:5", "text": "movh        m4, [srcq+4]\n    add       srcq, sstrideq\n    punpcklbw   m1, m5\n    punpcklbw   m3, m5\n    punpcklbw   m4, m5\n%if ARCH_X86_64 && mmsize > 8\n    pmullw      m1, m12\n    pmullw      m3, m13\n    pmullw      m4, m14\n%else\n    pmullw      m1, [filteryq+ 80]\n    pmullw      m3, [filteryq+ 96]\n    pmullw      m4, [filteryq+112]\n%endif\n    paddw       m0, m1\n    paddw       m3, m4\n    paddw       m0, m6\n    paddw       m2, m3\n    paddsw      m0, m2\n    psraw       m0, 7\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    packuswb    m0, m0\n%ifidn %1, avg\n    pavgb       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nfilter_sse2_h_fn put\nfilter_sse2_h_fn avg\n\nINIT_XMM sse2\nfilter_sse2_h_fn put\nfilter_sse2_h_fn avg\n\n%macro filter_h_fn 1\n%assign %%px mmsize/2\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _8, 6, 6, 11, dst, dstride, src, sstride, h, filtery\n    mova        m6, [pw_256]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movh        m0, [srcq-3]\n    movh        m1, [srcq-2]\n    movh        m2, [srcq-1]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+1]\n    movh        m5, [srcq+2]\n    punpcklbw   m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:6", "text": "filter_sse2_h_fn avg\n\n%macro filter_h_fn 1\n%assign %%px mmsize/2\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _8, 6, 6, 11, dst, dstride, src, sstride, h, filtery\n    mova        m6, [pw_256]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movh        m0, [srcq-3]\n    movh        m1, [srcq-2]\n    movh        m2, [srcq-1]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+1]\n    movh        m5, [srcq+2]\n    punpcklbw   m0, m1\n    punpcklbw   m2, m3\n    movh        m1, [srcq+3]\n    movh        m3, [srcq+4]\n    add       srcq, sstrideq\n    punpcklbw   m4, m5\n    punpcklbw   m1, m3\n    pmaddubsw   m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddubsw   m2, m8\n    pmaddubsw   m4, m9\n    pmaddubsw   m1, m10\n%else\n    pmaddubsw   m2, [filteryq+32]\n    pmaddubsw   m4, [filteryq+64]\n    pmaddubsw   m1, [filteryq+96]\n%endif\n    paddw       m0, m4\n    paddw       m2, m1\n    paddsw      m0, m2\n    pmulhrsw    m0, m6\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    packuswb    m0, m0\n%ifidn %1, avg\n    pavgb       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nfilter_h_fn put\nfilter_h_fn avg\n\nINIT_XMM ssse3\nfilter_h_fn put", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:7", "text": "%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    packuswb    m0, m0\n%ifidn %1, avg\n    pavgb       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nfilter_h_fn put\nfilter_h_fn avg\n\nINIT_XMM ssse3\nfilter_h_fn put\nfilter_h_fn avg\n\n%if ARCH_X86_64\n%macro filter_hx2_fn 1\n%assign %%px mmsize\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _8, 6, 6, 14, dst, dstride, src, sstride, h, filtery\n    mova       m13, [pw_256]\n    mova        m8, [filteryq+ 0]\n    mova        m9, [filteryq+32]\n    mova       m10, [filteryq+64]\n    mova       m11, [filteryq+96]\n.loop:\n    movu        m0, [srcq-3]\n    movu        m1, [srcq-2]\n    movu        m2, [srcq-1]\n    movu        m3, [srcq+0]\n    movu        m4, [srcq+1]\n    movu        m5, [srcq+2]\n    movu        m6, [srcq+3]\n    movu        m7, [srcq+4]\n    add       srcq, sstrideq\n    SBUTTERFLY  bw, 0, 1, 12\n    SBUTTERFLY  bw, 2, 3, 12\n    SBUTTERFLY  bw, 4, 5, 12\n    SBUTTERFLY  bw, 6, 7, 12\n    pmaddubsw   m0, m8\n    pmaddubsw   m1, m8\n    pmaddubsw   m2, m9\n    pmaddubsw   m3, m9\n    pmaddubsw   m4, m10\n    pmaddubsw   m5, m10\n    pmaddubsw   m6, m11\n    pmaddubsw   m7, m11\n    paddw       m0, m4\n    paddw       m1, m5\n    paddw       m2, m6\n    paddw       m3, m7\n    paddsw      m0, m2\n    paddsw      m1, m3\n    pmulhrsw    m0, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:8", "text": "add       srcq, sstrideq\n    SBUTTERFLY  bw, 0, 1, 12\n    SBUTTERFLY  bw, 2, 3, 12\n    SBUTTERFLY  bw, 4, 5, 12\n    SBUTTERFLY  bw, 6, 7, 12\n    pmaddubsw   m0, m8\n    pmaddubsw   m1, m8\n    pmaddubsw   m2, m9\n    pmaddubsw   m3, m9\n    pmaddubsw   m4, m10\n    pmaddubsw   m5, m10\n    pmaddubsw   m6, m11\n    pmaddubsw   m7, m11\n    paddw       m0, m4\n    paddw       m1, m5\n    paddw       m2, m6\n    paddw       m3, m7\n    paddsw      m0, m2\n    paddsw      m1, m3\n    pmulhrsw    m0, m13\n    pmulhrsw    m1, m13\n    packuswb    m0, m1\n%ifidn %1, avg\n    pavgb       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nfilter_hx2_fn put\nfilter_hx2_fn avg\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_hx2_fn put\nfilter_hx2_fn avg\n%endif\n\n%endif ; ARCH_X86_64\n\n%macro filter_sse2_v_fn 1\n%assign %%px mmsize/2\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 6, 8, 15, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 4, 7, 15, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    pxor        m5, m5\n    mova        m6, [pw_64]\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:9", "text": "%endif\n\n%endif ; ARCH_X86_64\n\n%macro filter_sse2_v_fn 1\n%assign %%px mmsize/2\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 6, 8, 15, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 4, 7, 15, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    pxor        m5, m5\n    mova        m6, [pw_64]\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 16]\n    mova        m9, [filteryq+ 32]\n    mova       m10, [filteryq+ 48]\n    mova       m11, [filteryq+ 64]\n    mova       m12, [filteryq+ 80]\n    mova       m13, [filteryq+ 96]\n    mova       m14, [filteryq+112]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movh        m0, [srcq]\n    movh        m1, [srcq+sstrideq]\n    movh        m2, [srcq+sstrideq*2]\n    movh        m3, [srcq+sstride3q]\n    add       srcq, sstrideq\n    movh        m4, [src4q]\n    punpcklbw   m0, m5\n    punpcklbw   m1, m5\n    punpcklbw   m2, m5\n    punpcklbw   m3, m5\n    punpcklbw   m4, m5\n    pmullw      m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmullw      m1, m8\n    pmullw      m2, m9\n    pmullw      m3, m10\n    pmullw      m4, m11\n%else\n    pmullw      m1, [filteryq+ 16]\n    pmullw      m2, [filteryq+ 32]\n    pmullw      m3, [filteryq+ 48]\n    pmullw      m4, [filteryq+ 64]\n%endif\n    paddw       m0, m1\n    paddw       m2, m3\n    paddw       m0, m4\n    movh        m1, [src4q+sstrideq]\n    movh        m3, [src4q+sstrideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:10", "text": "punpcklbw   m2, m5\n    punpcklbw   m3, m5\n    punpcklbw   m4, m5\n    pmullw      m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmullw      m1, m8\n    pmullw      m2, m9\n    pmullw      m3, m10\n    pmullw      m4, m11\n%else\n    pmullw      m1, [filteryq+ 16]\n    pmullw      m2, [filteryq+ 32]\n    pmullw      m3, [filteryq+ 48]\n    pmullw      m4, [filteryq+ 64]\n%endif\n    paddw       m0, m1\n    paddw       m2, m3\n    paddw       m0, m4\n    movh        m1, [src4q+sstrideq]\n    movh        m3, [src4q+sstrideq*2]\n    movh        m4, [src4q+sstride3q]\n    add      src4q, sstrideq\n    punpcklbw   m1, m5\n    punpcklbw   m3, m5\n    punpcklbw   m4, m5\n%if ARCH_X86_64 && mmsize > 8\n    pmullw      m1, m12\n    pmullw      m3, m13\n    pmullw      m4, m14\n%else\n    pmullw      m1, [filteryq+ 80]\n    pmullw      m3, [filteryq+ 96]\n    pmullw      m4, [filteryq+112]\n%endif\n    paddw       m0, m1\n    paddw       m3, m4\n    paddw       m0, m6\n    paddw       m2, m3\n    paddsw      m0, m2\n    psraw       m0, 7\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    packuswb    m0, m0\n%ifidn %1, avg\n    pavgb       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nfilter_sse2_v_fn put\nfilter_sse2_v_fn avg\n\nINIT_XMM sse2\nfilter_sse2_v_fn put", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:11", "text": "%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    packuswb    m0, m0\n%ifidn %1, avg\n    pavgb       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nfilter_sse2_v_fn put\nfilter_sse2_v_fn avg\n\nINIT_XMM sse2\nfilter_sse2_v_fn put\nfilter_sse2_v_fn avg\n\n%macro filter_v_fn 1\n%assign %%px mmsize/2\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 6, 8, 11, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 4, 7, 11, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m6, [pw_256]\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just more generally\n    ; unroll this to prevent multiple loads of the same data?\n    movh        m0, [srcq]\n    movh        m1, [srcq+sstrideq]\n    movh        m2, [srcq+sstrideq*2]\n    movh        m3, [srcq+sstride3q]\n    movh        m4, [src4q]\n    movh        m5, [src4q+sstrideq]\n    punpcklbw   m0, m1\n    punpcklbw   m2, m3\n    movh        m1, [src4q+sstrideq*2]\n    movh        m3, [src4q+sstride3q]\n    add       srcq, sstrideq\n    add      src4q, sstrideq\n    punpcklbw   m4, m5\n    punpcklbw   m1, m3\n    pmaddubsw   m0, m7\n%if ARCH_X86_64 && mmsize > 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:12", "text": "%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just more generally\n    ; unroll this to prevent multiple loads of the same data?\n    movh        m0, [srcq]\n    movh        m1, [srcq+sstrideq]\n    movh        m2, [srcq+sstrideq*2]\n    movh        m3, [srcq+sstride3q]\n    movh        m4, [src4q]\n    movh        m5, [src4q+sstrideq]\n    punpcklbw   m0, m1\n    punpcklbw   m2, m3\n    movh        m1, [src4q+sstrideq*2]\n    movh        m3, [src4q+sstride3q]\n    add       srcq, sstrideq\n    add      src4q, sstrideq\n    punpcklbw   m4, m5\n    punpcklbw   m1, m3\n    pmaddubsw   m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddubsw   m2, m8\n    pmaddubsw   m4, m9\n    pmaddubsw   m1, m10\n%else\n    pmaddubsw   m2, [filteryq+32]\n    pmaddubsw   m4, [filteryq+64]\n    pmaddubsw   m1, [filteryq+96]\n%endif\n    paddw       m0, m4\n    paddw       m2, m1\n    paddsw      m0, m2\n    pmulhrsw    m0, m6\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    packuswb    m0, m0\n%ifidn %1, avg\n    pavgb       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nfilter_v_fn put\nfilter_v_fn avg\n\nINIT_XMM ssse3\nfilter_v_fn put\nfilter_v_fn avg\n\n%if ARCH_X86_64\n\n%macro filter_vx2_fn 1\n%assign %%px mmsize\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 6, 8, 14, dst, dstride, src, sstride, h, filtery, src4, sstride3\n    mova       m13, [pw_256]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:13", "text": "add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_MMX ssse3\nfilter_v_fn put\nfilter_v_fn avg\n\nINIT_XMM ssse3\nfilter_v_fn put\nfilter_v_fn avg\n\n%if ARCH_X86_64\n\n%macro filter_vx2_fn 1\n%assign %%px mmsize\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _8, 6, 8, 14, dst, dstride, src, sstride, h, filtery, src4, sstride3\n    mova       m13, [pw_256]\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m8, [filteryq+ 0]\n    mova        m9, [filteryq+32]\n    mova       m10, [filteryq+64]\n    mova       m11, [filteryq+96]\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movu        m0, [srcq]\n    movu        m1, [srcq+sstrideq]\n    movu        m2, [srcq+sstrideq*2]\n    movu        m3, [srcq+sstride3q]\n    movu        m4, [src4q]\n    movu        m5, [src4q+sstrideq]\n    movu        m6, [src4q+sstrideq*2]\n    movu        m7, [src4q+sstride3q]\n    add       srcq, sstrideq\n    add      src4q, sstrideq\n    SBUTTERFLY  bw, 0, 1, 12\n    SBUTTERFLY  bw, 2, 3, 12\n    SBUTTERFLY  bw, 4, 5, 12\n    SBUTTERFLY  bw, 6, 7, 12\n    pmaddubsw   m0, m8\n    pmaddubsw   m1, m8\n    pmaddubsw   m2, m9\n    pmaddubsw   m3, m9\n    pmaddubsw   m4, m10\n    pmaddubsw   m5, m10\n    pmaddubsw   m6, m11\n    pmaddubsw   m7, m11\n    paddw       m0, m4\n    paddw       m1, m5\n    paddw       m2, m6\n    paddw       m3, m7\n    paddsw      m0, m2\n    paddsw      m1, m3\n    pmulhrsw    m0, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:14", "text": "add      src4q, sstrideq\n    SBUTTERFLY  bw, 0, 1, 12\n    SBUTTERFLY  bw, 2, 3, 12\n    SBUTTERFLY  bw, 4, 5, 12\n    SBUTTERFLY  bw, 6, 7, 12\n    pmaddubsw   m0, m8\n    pmaddubsw   m1, m8\n    pmaddubsw   m2, m9\n    pmaddubsw   m3, m9\n    pmaddubsw   m4, m10\n    pmaddubsw   m5, m10\n    pmaddubsw   m6, m11\n    pmaddubsw   m7, m11\n    paddw       m0, m4\n    paddw       m1, m5\n    paddw       m2, m6\n    paddw       m3, m7\n    paddsw      m0, m2\n    paddsw      m1, m3\n    pmulhrsw    m0, m13\n    pmulhrsw    m1, m13\n    packuswb    m0, m1\n%ifidn %1, avg\n    pavgb       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n%endmacro\n\nINIT_XMM ssse3\nfilter_vx2_fn put\nfilter_vx2_fn avg\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_vx2_fn put\nfilter_vx2_fn avg\n%endif\n\n%endif ; ARCH_X86_64\n\n%macro fpel_fn 6-8 0, 4\n%if %2 == 4\n%define %%srcfn movh\n%define %%dstfn movh\n%else\n%define %%srcfn movu\n%define %%dstfn mova\n%endif\n\n%if %7 == 8\n%define %%pavg pavgb\n%define %%szsuf _8\n%elif %7 == 16\n%define %%pavg pavgw\n%define %%szsuf _16\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:15", "text": "%endif\n\n%endif ; ARCH_X86_64\n\n%macro fpel_fn 6-8 0, 4\n%if %2 == 4\n%define %%srcfn movh\n%define %%dstfn movh\n%else\n%define %%srcfn movu\n%define %%dstfn mova\n%endif\n\n%if %7 == 8\n%define %%pavg pavgb\n%define %%szsuf _8\n%elif %7 == 16\n%define %%pavg pavgw\n%define %%szsuf _16\n%else\n%define %%szsuf\n%endif\n\n%if %2 <= mmsize\ncglobal vp9_%1%2 %+ %%szsuf, 5, 7, 4, dst, dstride, src, sstride, h, dstride3, sstride3\n    lea  sstride3q, [sstrideq*3]\n    lea  dstride3q, [dstrideq*3]\n%else\ncglobal vp9_%1%2 %+ %%szsuf, 5, 5, %8, dst, dstride, src, sstride, h\n%endif\n.loop:\n    %%srcfn     m0, [srcq]\n    %%srcfn     m1, [srcq+s%3]\n    %%srcfn     m2, [srcq+s%4]\n    %%srcfn     m3, [srcq+s%5]\n%if %2/mmsize == 8\n    %%srcfn     m4, [srcq+mmsize*4]\n    %%srcfn     m5, [srcq+mmsize*5]\n    %%srcfn     m6, [srcq+mmsize*6]\n    %%srcfn     m7, [srcq+mmsize*7]\n%endif\n    lea       srcq, [srcq+sstrideq*%6]\n%ifidn %1, avg\n    %%pavg      m0, [dstq]\n    %%pavg      m1, [dstq+d%3]\n    %%pavg      m2, [dstq+d%4]\n%if %2 == 4\n    %%srcfn     m4, [dstq+d%5]\n    %%pavg      m3, m4\n%else\n    %%pavg      m3, [dstq+d%5]\n%endif\n%if %2/mmsize == 8\n    %%pavg      m4, [dstq+mmsize*4]\n    %%pavg      m5, [dstq+mmsize*5]\n    %%pavg      m6, [dstq+mmsize*6]\n    %%pavg      m7, [dstq+mmsize*7]\n%endif\n%endif\n    %%dstfn [dstq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:16", "text": "%endif\n    lea       srcq, [srcq+sstrideq*%6]\n%ifidn %1, avg\n    %%pavg      m0, [dstq]\n    %%pavg      m1, [dstq+d%3]\n    %%pavg      m2, [dstq+d%4]\n%if %2 == 4\n    %%srcfn     m4, [dstq+d%5]\n    %%pavg      m3, m4\n%else\n    %%pavg      m3, [dstq+d%5]\n%endif\n%if %2/mmsize == 8\n    %%pavg      m4, [dstq+mmsize*4]\n    %%pavg      m5, [dstq+mmsize*5]\n    %%pavg      m6, [dstq+mmsize*6]\n    %%pavg      m7, [dstq+mmsize*7]\n%endif\n%endif\n    %%dstfn [dstq], m0\n    %%dstfn [dstq+d%3], m1\n    %%dstfn [dstq+d%4], m2\n    %%dstfn [dstq+d%5], m3\n%if %2/mmsize == 8\n    %%dstfn [dstq+mmsize*4], m4\n    %%dstfn [dstq+mmsize*5], m5\n    %%dstfn [dstq+mmsize*6], m6\n    %%dstfn [dstq+mmsize*7], m7\n%endif\n    lea       dstq, [dstq+dstrideq*%6]\n    sub         hd, %6\n    jnz .loop\n    RET\n%endmacro\n\n%define d16 16\n%define s16 16\n%define d32 32\n%define s32 32\nINIT_MMX mmx\nfpel_fn put, 4,  strideq, strideq*2, stride3q, 4\nfpel_fn put, 8,  strideq, strideq*2, stride3q, 4\nINIT_MMX mmxext\nfpel_fn avg, 4,  strideq, strideq*2, stride3q, 4, 8\nfpel_fn avg, 8,  strideq, strideq*2, stride3q, 4, 8\nINIT_XMM sse\nfpel_fn put, 16, strideq, strideq*2, stride3q, 4\nfpel_fn put, 32, mmsize,  strideq,   strideq+mmsize, 2\nfpel_fn put, 64, mmsize,  mmsize*2,  mmsize*3, 1\nfpel_fn put, 128, mmsize, mmsize*2,  mmsize*3, 1, 0, 8\nINIT_XMM sse2\nfpel_fn avg, 16, strideq, strideq*2, stride3q, 4, 8\nfpel_fn avg, 32, mmsize,  strideq,   strideq+mmsize, 2, 8\nfpel_fn avg, 64, mmsize,  mmsize*2,  mmsize*3, 1, 8\nINIT_YMM avx\nfpel_fn put, 32, strideq, strideq*2, stride3q, 4\nfpel_fn put, 64, mmsize,  strideq,   strideq+mmsize, 2\nfpel_fn put, 128, mmsize, mmsize*2,     mmsize*3, 1\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc.asm:17", "text": "fpel_fn put, 4,  strideq, strideq*2, stride3q, 4\nfpel_fn put, 8,  strideq, strideq*2, stride3q, 4\nINIT_MMX mmxext\nfpel_fn avg, 4,  strideq, strideq*2, stride3q, 4, 8\nfpel_fn avg, 8,  strideq, strideq*2, stride3q, 4, 8\nINIT_XMM sse\nfpel_fn put, 16, strideq, strideq*2, stride3q, 4\nfpel_fn put, 32, mmsize,  strideq,   strideq+mmsize, 2\nfpel_fn put, 64, mmsize,  mmsize*2,  mmsize*3, 1\nfpel_fn put, 128, mmsize, mmsize*2,  mmsize*3, 1, 0, 8\nINIT_XMM sse2\nfpel_fn avg, 16, strideq, strideq*2, stride3q, 4, 8\nfpel_fn avg, 32, mmsize,  strideq,   strideq+mmsize, 2, 8\nfpel_fn avg, 64, mmsize,  mmsize*2,  mmsize*3, 1, 8\nINIT_YMM avx\nfpel_fn put, 32, strideq, strideq*2, stride3q, 4\nfpel_fn put, 64, mmsize,  strideq,   strideq+mmsize, 2\nfpel_fn put, 128, mmsize, mmsize*2,     mmsize*3, 1\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfpel_fn avg, 32, strideq, strideq*2, stride3q, 4, 8\nfpel_fn avg, 64, mmsize,  strideq,   strideq+mmsize, 2, 8\n%endif\nINIT_MMX mmxext\nfpel_fn avg,  8,  strideq, strideq*2, stride3q, 4, 16\nINIT_XMM sse2\nfpel_fn avg,  16, strideq, strideq*2, stride3q, 4, 16\nfpel_fn avg,  32, mmsize,  strideq,   strideq+mmsize, 2, 16\nfpel_fn avg,  64, mmsize,  mmsize*2,  mmsize*3, 1, 16\nfpel_fn avg, 128, mmsize,  mmsize*2,  mmsize*3, 1, 16, 8\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfpel_fn avg,  32, strideq, strideq*2, stride3q, 4, 16\nfpel_fn avg,  64, mmsize,  strideq,   strideq+mmsize, 2, 16\nfpel_fn avg, 128, mmsize,  mmsize*2,  mmsize*3, 1, 16\n%endif\n%undef s16\n%undef d16\n%undef s32\n%undef d32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc.asm", "line_start": 641, "line_end": 680}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:1", "text": ";******************************************************************************\n;* VP9 MC SIMD optimizations\n;*\n;* Copyright (c) 2015 Ronald S. Bultje <rsbultje gmail com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\ncextern pd_64\ncextern pw_1023\ncextern pw_4095\n\nSECTION .text\n\n%macro filter_h4_fn 1-2 12\ncglobal vp9_%1_8tap_1d_h_4_10, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movh        m0, [srcq-6]\n    movh        m1, [srcq-4]\n    movh        m2, [srcq-2]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+2]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+32]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:2", "text": "mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movh        m0, [srcq-6]\n    movh        m1, [srcq-4]\n    movh        m2, [srcq-2]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+2]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+32]\n%endif\n    movu        m1, [srcq+4]\n    movu        m3, [srcq+6]\n    paddd       m0, m2\n    movu        m2, [srcq+8]\n    add       srcq, sstrideq\n    punpcklwd   m4, m1\n    punpcklwd   m3, m2\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m3, m10\n%else\n    pmaddwd     m4, [filteryq+64]\n    pmaddwd     m3, [filteryq+96]\n%endif\n    paddd       m0, m4\n    paddd       m0, m3\n    paddd       m0, m6\n    psrad       m0, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n%else\n    packssdw    m0, m0\n%endif\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:3", "text": "%else\n    packssdw    m0, m0\n%endif\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\ncglobal vp9_%1_8tap_1d_h_4_12, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_h_4_10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_h4_fn put\nfilter_h4_fn avg\n\n%macro filter_h_fn 1-2 12\n%assign %%px mmsize/2\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _10, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movu        m0, [srcq-6]\n    movu        m1, [srcq-4]\n    movu        m2, [srcq-2]\n    movu        m3, [srcq+0]\n    movu        m4, [srcq+2]\n    pmaddwd     m0, m7\n    pmaddwd     m1, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n    pmaddwd     m3, m8\n    pmaddwd     m4, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:4", "text": "%endif\n    mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movu        m0, [srcq-6]\n    movu        m1, [srcq-4]\n    movu        m2, [srcq-2]\n    movu        m3, [srcq+0]\n    movu        m4, [srcq+2]\n    pmaddwd     m0, m7\n    pmaddwd     m1, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n    pmaddwd     m3, m8\n    pmaddwd     m4, m9\n%else\n    pmaddwd     m2, [filteryq+32]\n    pmaddwd     m3, [filteryq+32]\n    pmaddwd     m4, [filteryq+64]\n%endif\n    paddd       m0, m2\n    paddd       m1, m3\n    paddd       m0, m4\n    movu        m2, [srcq+4]\n    movu        m3, [srcq+6]\n    movu        m4, [srcq+8]\n    add       srcq, sstrideq\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m9\n    pmaddwd     m3, m10\n    pmaddwd     m4, m10\n%else\n    pmaddwd     m2, [filteryq+64]\n    pmaddwd     m3, [filteryq+96]\n    pmaddwd     m4, [filteryq+96]\n%endif\n    paddd       m1, m2\n    paddd       m0, m3\n    paddd       m1, m4\n    paddd       m0, m6\n    paddd       m1, m6\n    psrad       m0, 7\n    psrad       m1, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n    packusdw    m1, m1\n%else\n    packssdw    m0, m0\n    packssdw    m1, m1\n%endif\n    punpcklwd   m0, m1\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:5", "text": "%endif\n    paddd       m1, m2\n    paddd       m0, m3\n    paddd       m1, m4\n    paddd       m0, m6\n    paddd       m1, m6\n    psrad       m0, 7\n    psrad       m1, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n    packusdw    m1, m1\n%else\n    packssdw    m0, m0\n    packssdw    m1, m1\n%endif\n    punpcklwd   m0, m1\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _12, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_h_ %+ %%px %+ _10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_h_fn put\nfilter_h_fn avg\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_h_fn put\nfilter_h_fn avg\n%endif\n\n%macro filter_v4_fn 1-2 12\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_10, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_10, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:6", "text": "filter_h_fn put\nfilter_h_fn avg\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_h_fn put\nfilter_h_fn avg\n%endif\n\n%macro filter_v4_fn 1-2 12\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_10, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_10, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 32]\n    mova        m9, [filteryq+ 64]\n    mova       m10, [filteryq+ 96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movh        m0, [srcq]\n    movh        m1, [srcq+sstrideq]\n    movh        m2, [srcq+sstrideq*2]\n    movh        m3, [srcq+sstride3q]\n    add       srcq, sstrideq\n    movh        m4, [src4q]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+ 32]\n%endif\n    movh        m1, [src4q+sstrideq]\n    movh        m3, [src4q+sstrideq*2]\n    paddd       m0, m2\n    movh        m2, [src4q+sstride3q]\n    add      src4q, sstrideq\n    punpcklwd   m4, m1\n    punpcklwd   m3, m2\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m3, m10\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:7", "text": "movh        m4, [src4q]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+ 32]\n%endif\n    movh        m1, [src4q+sstrideq]\n    movh        m3, [src4q+sstrideq*2]\n    paddd       m0, m2\n    movh        m2, [src4q+sstride3q]\n    add      src4q, sstrideq\n    punpcklwd   m4, m1\n    punpcklwd   m3, m2\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m3, m10\n%else\n    pmaddwd     m4, [filteryq+ 64]\n    pmaddwd     m3, [filteryq+ 96]\n%endif\n    paddd       m0, m4\n    paddd       m0, m3\n    paddd       m0, m6\n    psrad       m0, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n%else\n    packssdw    m0, m0\n%endif\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:8", "text": "pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_v_4_10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_v4_fn put\nfilter_v4_fn avg\n\n%macro filter_v_fn 1-2 13\n%assign %%px mmsize/2\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _10, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _10, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m12, m12\n%endif\n%if ARCH_X86_64\n    mova       m11, [pd_64]\n%endif\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 32]\n    mova        m9, [filteryq+ 64]\n    mova       m10, [filteryq+ 96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movu        m0, [srcq]\n    movu        m1, [srcq+sstrideq]\n    movu        m2, [srcq+sstrideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:9", "text": "%endif\n%if ARCH_X86_64\n    mova       m11, [pd_64]\n%endif\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 32]\n    mova        m9, [filteryq+ 64]\n    mova       m10, [filteryq+ 96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movu        m0, [srcq]\n    movu        m1, [srcq+sstrideq]\n    movu        m2, [srcq+sstrideq*2]\n    movu        m3, [srcq+sstride3q]\n    add       srcq, sstrideq\n    movu        m4, [src4q]\n    SBUTTERFLY  wd, 0, 1, 6\n    SBUTTERFLY  wd, 2, 3, 6\n    pmaddwd     m0, m7\n    pmaddwd     m1, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n    pmaddwd     m3, m8\n%else\n    pmaddwd     m2, [filteryq+ 32]\n    pmaddwd     m3, [filteryq+ 32]\n%endif\n    paddd       m0, m2\n    paddd       m1, m3\n    movu        m2, [src4q+sstrideq]\n    movu        m3, [src4q+sstrideq*2]\n    SBUTTERFLY  wd, 4, 2, 6\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m2, m9\n%else\n    pmaddwd     m4, [filteryq+ 64]\n    pmaddwd     m2, [filteryq+ 64]\n%endif\n    paddd       m0, m4\n    paddd       m1, m2\n    movu        m4, [src4q+sstride3q]\n    add      src4q, sstrideq\n    SBUTTERFLY  wd, 3, 4, 6\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m3, m10\n    pmaddwd     m4, m10\n%else\n    pmaddwd     m3, [filteryq+ 96]\n    pmaddwd     m4, [filteryq+ 96]\n%endif\n    paddd       m0, m3\n    paddd       m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:10", "text": "pmaddwd     m4, m9\n    pmaddwd     m2, m9\n%else\n    pmaddwd     m4, [filteryq+ 64]\n    pmaddwd     m2, [filteryq+ 64]\n%endif\n    paddd       m0, m4\n    paddd       m1, m2\n    movu        m4, [src4q+sstride3q]\n    add      src4q, sstrideq\n    SBUTTERFLY  wd, 3, 4, 6\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m3, m10\n    pmaddwd     m4, m10\n%else\n    pmaddwd     m3, [filteryq+ 96]\n    pmaddwd     m4, [filteryq+ 96]\n%endif\n    paddd       m0, m3\n    paddd       m1, m4\n%if ARCH_X86_64\n    paddd       m0, m11\n    paddd       m1, m11\n%else\n    paddd       m0, [pd_64]\n    paddd       m1, [pd_64]\n%endif\n    psrad       m0, 7\n    psrad       m1, 7\n%if cpuflag(sse4)\n    packusdw    m0, m1\n%else\n    packssdw    m0, m1\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m12\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_v_ %+ %%px %+ _10 %+ SUFFIX).body", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:11", "text": "pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_v_ %+ %%px %+ _10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_v_fn put\nfilter_v_fn avg\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_v_fn put\nfilter_v_fn avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 401, "line_end": 430}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:1", "text": ";******************************************************************************\n;* VP9 MC SIMD optimizations\n;*\n;* Copyright (c) 2015 Ronald S. Bultje <rsbultje gmail com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npd_64: times 8 dd 64\n\ncextern pw_1023\ncextern pw_4095\n\nSECTION .text\n\n%macro filter_h4_fn 1-2 12\ncglobal vp9_%1_8tap_1d_h_4_10, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movh        m0, [srcq-6]\n    movh        m1, [srcq-4]\n    movh        m2, [srcq-2]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+2]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:2", "text": "mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movh        m0, [srcq-6]\n    movh        m1, [srcq-4]\n    movh        m2, [srcq-2]\n    movh        m3, [srcq+0]\n    movh        m4, [srcq+2]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+32]\n%endif\n    movu        m1, [srcq+4]\n    movu        m3, [srcq+6]\n    paddd       m0, m2\n    movu        m2, [srcq+8]\n    add       srcq, sstrideq\n    punpcklwd   m4, m1\n    punpcklwd   m3, m2\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m3, m10\n%else\n    pmaddwd     m4, [filteryq+64]\n    pmaddwd     m3, [filteryq+96]\n%endif\n    paddd       m0, m4\n    paddd       m0, m3\n    paddd       m0, m6\n    psrad       m0, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n%else\n    packssdw    m0, m0\n%endif\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:3", "text": "packusdw    m0, m0\n%else\n    packssdw    m0, m0\n%endif\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\ncglobal vp9_%1_8tap_1d_h_4_12, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_h_4_10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_h4_fn put\nfilter_h4_fn avg\n\n%macro filter_h_fn 1-2 12\n%assign %%px mmsize/2\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _10, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movu        m0, [srcq-6]\n    movu        m1, [srcq-4]\n    movu        m2, [srcq-2]\n    movu        m3, [srcq+0]\n    movu        m4, [srcq+2]\n    pmaddwd     m0, m7\n    pmaddwd     m1, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n    pmaddwd     m3, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:4", "text": "pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    mova        m7, [filteryq+ 0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+32]\n    mova        m9, [filteryq+64]\n    mova       m10, [filteryq+96]\n%endif\n.loop:\n    movu        m0, [srcq-6]\n    movu        m1, [srcq-4]\n    movu        m2, [srcq-2]\n    movu        m3, [srcq+0]\n    movu        m4, [srcq+2]\n    pmaddwd     m0, m7\n    pmaddwd     m1, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n    pmaddwd     m3, m8\n    pmaddwd     m4, m9\n%else\n    pmaddwd     m2, [filteryq+32]\n    pmaddwd     m3, [filteryq+32]\n    pmaddwd     m4, [filteryq+64]\n%endif\n    paddd       m0, m2\n    paddd       m1, m3\n    paddd       m0, m4\n    movu        m2, [srcq+4]\n    movu        m3, [srcq+6]\n    movu        m4, [srcq+8]\n    add       srcq, sstrideq\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m9\n    pmaddwd     m3, m10\n    pmaddwd     m4, m10\n%else\n    pmaddwd     m2, [filteryq+64]\n    pmaddwd     m3, [filteryq+96]\n    pmaddwd     m4, [filteryq+96]\n%endif\n    paddd       m1, m2\n    paddd       m0, m3\n    paddd       m1, m4\n    paddd       m0, m6\n    paddd       m1, m6\n    psrad       m0, 7\n    psrad       m1, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n    packusdw    m1, m1\n%else\n    packssdw    m0, m0\n    packssdw    m1, m1\n%endif\n    punpcklwd   m0, m1\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:5", "text": "pmaddwd     m4, [filteryq+96]\n%endif\n    paddd       m1, m2\n    paddd       m0, m3\n    paddd       m1, m4\n    paddd       m0, m6\n    paddd       m1, m6\n    psrad       m0, 7\n    psrad       m1, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n    packusdw    m1, m1\n%else\n    packssdw    m0, m0\n    packssdw    m1, m1\n%endif\n    punpcklwd   m0, m1\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\ncglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _12, 6, 6, %2, dst, dstride, src, sstride, h, filtery\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_h_ %+ %%px %+ _10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_h_fn put\nfilter_h_fn avg\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_h_fn put\nfilter_h_fn avg\n%endif\n\n%macro filter_v4_fn 1-2 12\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_10, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_10, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:6", "text": "INIT_XMM sse2\nfilter_h_fn put\nfilter_h_fn avg\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_h_fn put\nfilter_h_fn avg\n%endif\n\n%macro filter_v4_fn 1-2 12\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_10, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_10, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m11, m11\n%endif\n    mova        m6, [pd_64]\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 32]\n    mova        m9, [filteryq+ 64]\n    mova       m10, [filteryq+ 96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movh        m0, [srcq]\n    movh        m1, [srcq+sstrideq]\n    movh        m2, [srcq+sstrideq*2]\n    movh        m3, [srcq+sstride3q]\n    add       srcq, sstrideq\n    movh        m4, [src4q]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+ 32]\n%endif\n    movh        m1, [src4q+sstrideq]\n    movh        m3, [src4q+sstrideq*2]\n    paddd       m0, m2\n    movh        m2, [src4q+sstride3q]\n    add      src4q, sstrideq\n    punpcklwd   m4, m1\n    punpcklwd   m3, m2\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m3, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:7", "text": "add       srcq, sstrideq\n    movh        m4, [src4q]\n    punpcklwd   m0, m1\n    punpcklwd   m2, m3\n    pmaddwd     m0, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n%else\n    pmaddwd     m2, [filteryq+ 32]\n%endif\n    movh        m1, [src4q+sstrideq]\n    movh        m3, [src4q+sstrideq*2]\n    paddd       m0, m2\n    movh        m2, [src4q+sstride3q]\n    add      src4q, sstrideq\n    punpcklwd   m4, m1\n    punpcklwd   m3, m2\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m3, m10\n%else\n    pmaddwd     m4, [filteryq+ 64]\n    pmaddwd     m3, [filteryq+ 96]\n%endif\n    paddd       m0, m4\n    paddd       m0, m3\n    paddd       m0, m6\n    psrad       m0, 7\n%if cpuflag(sse4)\n    packusdw    m0, m0\n%else\n    packssdw    m0, m0\n%endif\n%ifidn %1, avg\n    movh        m1, [dstq]\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m11\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:8", "text": "%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, m1\n%endif\n    movh    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_4_12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_4_12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_v_4_10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_v4_fn put\nfilter_v4_fn avg\n\n%macro filter_v_fn 1-2 13\n%assign %%px mmsize/2\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _10, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _10, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%define hd r4mp\n%endif\n    mova        m5, [pw_1023]\n.body:\n%if notcpuflag(sse4) && ARCH_X86_64\n    pxor       m12, m12\n%endif\n%if ARCH_X86_64\n    mova       m11, [pd_64]\n%endif\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 32]\n    mova        m9, [filteryq+ 64]\n    mova       m10, [filteryq+ 96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movu        m0, [srcq]\n    movu        m1, [srcq+sstrideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:9", "text": "pxor       m12, m12\n%endif\n%if ARCH_X86_64\n    mova       m11, [pd_64]\n%endif\n    lea  sstride3q, [sstrideq*3]\n    lea      src4q, [srcq+sstrideq]\n    sub       srcq, sstride3q\n    mova        m7, [filteryq+  0]\n%if ARCH_X86_64 && mmsize > 8\n    mova        m8, [filteryq+ 32]\n    mova        m9, [filteryq+ 64]\n    mova       m10, [filteryq+ 96]\n%endif\n.loop:\n    ; FIXME maybe reuse loads from previous rows, or just\n    ; more generally unroll this to prevent multiple loads of\n    ; the same data?\n    movu        m0, [srcq]\n    movu        m1, [srcq+sstrideq]\n    movu        m2, [srcq+sstrideq*2]\n    movu        m3, [srcq+sstride3q]\n    add       srcq, sstrideq\n    movu        m4, [src4q]\n    SBUTTERFLY  wd, 0, 1, 6\n    SBUTTERFLY  wd, 2, 3, 6\n    pmaddwd     m0, m7\n    pmaddwd     m1, m7\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m2, m8\n    pmaddwd     m3, m8\n%else\n    pmaddwd     m2, [filteryq+ 32]\n    pmaddwd     m3, [filteryq+ 32]\n%endif\n    paddd       m0, m2\n    paddd       m1, m3\n    movu        m2, [src4q+sstrideq]\n    movu        m3, [src4q+sstrideq*2]\n    SBUTTERFLY  wd, 4, 2, 6\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m2, m9\n%else\n    pmaddwd     m4, [filteryq+ 64]\n    pmaddwd     m2, [filteryq+ 64]\n%endif\n    paddd       m0, m4\n    paddd       m1, m2\n    movu        m4, [src4q+sstride3q]\n    add      src4q, sstrideq\n    SBUTTERFLY  wd, 3, 4, 6\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m3, m10\n    pmaddwd     m4, m10\n%else\n    pmaddwd     m3, [filteryq+ 96]\n    pmaddwd     m4, [filteryq+ 96]\n%endif\n    paddd       m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:10", "text": "%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m4, m9\n    pmaddwd     m2, m9\n%else\n    pmaddwd     m4, [filteryq+ 64]\n    pmaddwd     m2, [filteryq+ 64]\n%endif\n    paddd       m0, m4\n    paddd       m1, m2\n    movu        m4, [src4q+sstride3q]\n    add      src4q, sstrideq\n    SBUTTERFLY  wd, 3, 4, 6\n%if ARCH_X86_64 && mmsize > 8\n    pmaddwd     m3, m10\n    pmaddwd     m4, m10\n%else\n    pmaddwd     m3, [filteryq+ 96]\n    pmaddwd     m4, [filteryq+ 96]\n%endif\n    paddd       m0, m3\n    paddd       m1, m4\n%if ARCH_X86_64\n    paddd       m0, m11\n    paddd       m1, m11\n%else\n    paddd       m0, [pd_64]\n    paddd       m1, [pd_64]\n%endif\n    psrad       m0, 7\n    psrad       m1, 7\n%if cpuflag(sse4)\n    packusdw    m0, m1\n%else\n    packssdw    m0, m1\n%endif\n    pminsw      m0, m5\n%if notcpuflag(sse4)\n%if ARCH_X86_64\n    pmaxsw      m0, m12\n%else\n    pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vp9mc_16bpp.asm:11", "text": "pxor        m2, m2\n    pmaxsw      m0, m2\n%endif\n%endif\n%ifidn %1, avg\n    pavgw       m0, [dstq]\n%endif\n    mova    [dstq], m0\n    add       dstq, dstrideq\n    dec         hd\n    jg .loop\n    RET\n\n%if ARCH_X86_64\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 6, 8, %2, dst, dstride, src, sstride, h, filtery, src4, sstride3\n%else\ncglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 4, 7, %2, dst, dstride, src, sstride, filtery, src4, sstride3\n    mov   filteryq, r5mp\n%endif\n    mova        m5, [pw_4095]\n    jmp mangle(private_prefix %+ _ %+ vp9_%1_8tap_1d_v_ %+ %%px %+ _10 %+ SUFFIX).body\n%endmacro\n\nINIT_XMM sse2\nfilter_v_fn put\nfilter_v_fn avg\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nfilter_v_fn put\nfilter_v_fn avg\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vp9mc_16bpp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/vp9mc_16bpp.asm", "line_start": 401, "line_end": 431}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:1", "text": ";******************************************************************************\n;* VVC Adaptive Loop Filter SIMD optimizations\n;*\n;* Copyright (c) 2023-2024 Nuo Mi <nuomi2021@gmail.com>\n;* Copyright (c) 2023-2024 Wu Jianhua <toqsxw@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%macro PARAM_SHUFFE 1\n%assign i (%1  * 2)\n%assign j ((i + 1) << 8) + (i)\nparam_shuffe_ %+ %1:\n%rep 2\n    times 4 dw j\n    times 4 dw (j + 0x0808)\n%endrep\n%endmacro\n\nPARAM_SHUFFE 0\nPARAM_SHUFFE 1\nPARAM_SHUFFE 2\nPARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS 4\n    movu                    m%1, [%4q + 0 * mmsize]\n    movu                    m%2, [%4q + 1 * mmsize]\n    movu                    m%3, [%4q + 2 * mmsize]\n    ; we process mmsize/(2*ALF_BLOCK_SIZE) alf blocks,\n    ; consuming ALF_NUM_COEFF_LUMA int16_t coeffs per alf block\n    add                     %4q, 3 * mmsize\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS        %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%else\n    LOAD_LUMA_PARAMS_W8  %1, %2, %3, %4, %5\n%endif\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    vpbroadcastq            m%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n%if ps != 1 || UNIX64\n    psubw            m11, m14, m12                           ;-clip", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:4", "text": "%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n%if ps != 1 || UNIX64\n    psubw            m11, m14, m12                           ;-clip\n%else\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n%endif\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10\n    pmaddwd          m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posd, 0\n    je       %%vb_bottom\n    cmp          vb_posd, 4\n    jne         %%vb_end\n%%vb_above:\n    ; above: vb_pos == 4\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    cmp               %1, 3\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    cmp               %1, 1\n    cmova            s3q, s1q\n    cmova            s4q, s2q\n\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom: vb_pos == 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    cmp               %1, 3\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    cmp               %1, 1\n    cmova            s3q, s1q\n    cmova            s4q, s2q\n\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom: vb_pos == 0\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp               %1, 0\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    cmp               %1, 2\n    cmovb            s3q, s1q\n    cmovb            s4q, s2q\n\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%else ; chroma\n    cmp          vb_posd, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%%vb_above:\n    cmp               %1, 1\n%%vb_bottom:\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    mov              s3q, s1q\n    mov              s4q, s2q\n%endif\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "jge      %%vb_bottom\n%%vb_above:\n    cmp               %1, 1\n%%vb_bottom:\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    mov              s3q, s1q\n    mov              s4q, s2q\n%endif\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posd, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posd, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posd, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s6q clipq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s6q clipq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n%ifnidn %2, 0\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4 + %2]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4 + %2]\n%endif\n\n%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bd, luma/chroma, bd of implementation to use)\n%macro ALF_FILTER 3\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%assign ps (%1+7) / 8 ; pixel size\n\n; ******************************\n; void ff_vvc_alf_filter_%2_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, int width, int height,\n;      const int16_t *filter, const int16_t *clip, int vb_pos);\n; ******************************\ncglobal vvc_alf_filter_%2_%1\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%endmacro\n\n; FILTER(bd, luma/chroma, bd of implementation to use)\n%macro ALF_FILTER 3\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%assign ps (%1+7) / 8 ; pixel size\n\n; ******************************\n; void ff_vvc_alf_filter_%2_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, int width, int height,\n;      const int16_t *filter, const int16_t *clip, int vb_pos);\n; ******************************\ncglobal vvc_alf_filter_%2_%1\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%elif WIN64 && (ps != 1)\n; Swap m5 and m15, so that the register for the maximum pixel value\n; ends up in a volatile register\n    SWAP 5,15\n%endif\n%if ps != 1\n  ; create pw_pixelmax for clipping\n  pcmpeqw         m15, m15\n  psrlw           m15, 16 - %1\n%endif\n\n%if %1 != %3\n    jmp vvc_alf_filter_%2_%3_prologue\n%else\nvvc_alf_filter_%2_%1_prologue:\n    PROLOGUE 9, 14+LUMA, UNIX64 ? 16 : (12+2*(ps!=1)+2*LUMA), dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, \\\n    x, s1, s2, s3, s4, s5\n%if ps != 1 || UNIX64\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "jmp vvc_alf_filter_%2_%3_prologue\n%else\nvvc_alf_filter_%2_%1_prologue:\n    PROLOGUE 9, 14+LUMA, UNIX64 ? 16 : (12+2*(ps!=1)+2*LUMA), dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, \\\n    x, s1, s2, s3, s4, s5\n%if ps != 1 || UNIX64\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps\n\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nSAVE_MM_PERMUTATION\nINIT_XMM cpuname\nLOAD_MM_PERMUTATION\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd, 0\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 12, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                xm11, xm11 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                xm11, xm11 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw           m4, m4, m5, 0xaa             ; ne\n        pblendw          m10, m1, m2, 0xaa             ; w\n        pblendw           m5, m5, m6, 0xaa             ; e\n        pblendw           m3, m2, m3, 0xaa             ; sw\n        pblendw           m2, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m2                       ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw             m5, m10                      ; w + e\n        psubw             m5, m1                       ; (w + e) - d\n        pabsw             m5, m5                       ; hor\n\n        pblendw           m6, m6, m7, 0xaa             ; se\n        paddw             m8, m6                       ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw             m4, m3                       ; ne + sw\n        psubw             m4, m1                       ; (nw + se) - d\n        pabsw             m4, m4                       ; di1\n\n        phaddw            m9, m5                       ; vh,  each word represent 2x2 pixels", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m2                       ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw             m5, m10                      ; w + e\n        psubw             m5, m1                       ; (w + e) - d\n        pabsw             m5, m5                       ; hor\n\n        pblendw           m6, m6, m7, 0xaa             ; se\n        paddw             m8, m6                       ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw             m4, m3                       ; ne + sw\n        psubw             m4, m1                       ; (nw + se) - d\n        pabsw             m4, m4                       ; di1\n\n        phaddw            m9, m5                       ; vh,  each word represent 2x2 pixels\n        phaddw            m8, m4                       ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m11, m11, xm0, 1\n        pblendw           m1,  m0, m11, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm11, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd             xm8, yd\n    movd             xm4, vb_posd\n    pcmpeqb          xm5, xm5\n    pcmpeqd          xm8, xm4      ; y == vb_pos\n    pxor             xm8, xm5      ; y != vb_pos\n    vpbroadcastd      m8, xm8\n\n    vpbroadcastd      m9, [dw3]\n    paddd             m9, m8        ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m10, [gradq + sum_stride3q], m8\n\n    ; extent to dword to avoid overflow", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd             xm8, yd\n    movd             xm4, vb_posd\n    pcmpeqb          xm5, xm5\n    pcmpeqd          xm8, xm4      ; y == vb_pos\n    pxor             xm8, xm5      ; y != vb_pos\n    vpbroadcastd      m8, xm8\n\n    vpbroadcastd      m9, [dw3]\n    paddd             m9, m8        ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m10, [gradq + sum_stride3q], m8\n\n    ; extent to dword to avoid overflow\n    punpckhwd         m4, m0, m10\n    punpcklwd         m0, m0, m10\n    punpckhwd         m5, m1, m10\n    punpcklwd         m1, m1, m10\n    punpckhwd         m6, m2, m10\n    paddd             m4, m5\n    punpcklwd         m5, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n\n    paddd             m0, m1\n    paddd             m6, m7\n    paddd             m5, m3\n\n    ; sum of the first row\n    paddd             m0, m0, m5         ; low\n    paddd             m1, m4, m6         ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb          m2, m10, m2, m8\n\n    movu              m3, [gradq + sum_strideq]\n    movu              m4, [gradq + 2 * sum_strideq]\n    movu              m5, [gradq + sum_stride3q]\n\n    punpckhwd         m6, m2, m10\n    punpcklwd         m2, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n    punpckhwd         m8, m4, m10\n    punpcklwd         m4, m4, m10\n    paddd             m6, m7\n    punpckhwd         m7, m5, m10\n    punpcklwd         m5, m5, m10\n\n    paddd             m2, m3\n    paddd             m8, m7\n    paddd             m4, m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "pblendvb          m2, m10, m2, m8\n\n    movu              m3, [gradq + sum_strideq]\n    movu              m4, [gradq + 2 * sum_strideq]\n    movu              m5, [gradq + sum_stride3q]\n\n    punpckhwd         m6, m2, m10\n    punpcklwd         m2, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n    punpckhwd         m8, m4, m10\n    punpcklwd         m4, m4, m10\n    paddd             m6, m7\n    punpckhwd         m7, m5, m10\n    punpcklwd         m5, m5, m10\n\n    paddd             m2, m3\n    paddd             m8, m7\n    paddd             m4, m5\n\n    ; sum of the second row\n    paddd             m2, m2, m4         ; low\n    paddd             m3, m8, m6         ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m3, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd      m1, [dw3]\n    paddd             m7, m7\n    paddd             m7, m4\n    paddd             m7, m1\n    SAVE_CLASSIFY_PARAM transpose_idx, 7\n\n    psrlq             m1, m8, 32\n    psrlq             m2, m6, 32\n    pmuldq            m4, m1, m2         ; d1 * hv0 high\n    psrlq             m1, m3, 32\n    psrlq             m2, m5, 32\n    pmuldq            m7, m1, m2         ; d0 * hv1 high\n    pcmpgtq           m7, m4, m7         ; dir1 - 1 high", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m3, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd      m1, [dw3]\n    paddd             m7, m7\n    paddd             m7, m4\n    paddd             m7, m1\n    SAVE_CLASSIFY_PARAM transpose_idx, 7\n\n    psrlq             m1, m8, 32\n    psrlq             m2, m6, 32\n    pmuldq            m4, m1, m2         ; d1 * hv0 high\n    psrlq             m1, m3, 32\n    psrlq             m2, m5, 32\n    pmuldq            m7, m1, m2         ; d0 * hv1 high\n    pcmpgtq           m7, m4, m7         ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m3, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m7, 0xaa   ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m3, m1     ; hvd0\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m9             ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m11\n%else\n    psrld             m0, 7\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd      m0, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "vpbroadcastd      m0, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 14, 11+(ps!=1), class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n    movd            xm11, bit_depthd\n    vpbroadcastd     m11, xm11\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": ";      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 14, 11+(ps!=1), class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n    movd            xm11, bit_depthd\n    vpbroadcastd     m11, xm11\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor            xm10, xm10\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": ".loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   12, 10\nALF_FILTER   10, 10\nALF_CLASSIFY 16\nALF_FILTER   8,  8\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 909}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%else\n    LOAD_LUMA_PARAMS_W8  %1, %2, %3, %4, %5\n%endif\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    vpbroadcastq            m%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:4", "text": "%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10\n    pmaddwd          m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posd, 0\n    je       %%vb_bottom\n    cmp          vb_posd, 4\n    jne         %%vb_end\n%%vb_above:\n    ; above: vb_pos == 4\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    cmp               %1, 3\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    cmp               %1, 1\n    cmova            s3q, s1q\n    cmova            s4q, s2q\n\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom: vb_pos == 0\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    cmp               %1, 3\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    cmp               %1, 1\n    cmova            s3q, s1q\n    cmova            s4q, s2q\n\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom: vb_pos == 0\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp               %1, 0\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    cmp               %1, 2\n    cmovb            s3q, s1q\n    cmovb            s4q, s2q\n\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%else ; chroma\n    cmp          vb_posd, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%%vb_above:\n    cmp               %1, 1\n%%vb_bottom:\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    mov              s3q, s1q\n    mov              s4q, s2q\n%endif\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    mov              s3q, s1q\n    mov              s4q, s2q\n%endif\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posd, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posd, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posd, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s6q clipq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n%ifnidn %2, 0\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4 + %2]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4 + %2]\n%endif\n\n%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bd, luma/chroma, bd of implementation to use)\n%macro ALF_FILTER 3\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%assign ps (%1+7) / 8 ; pixel size\n\n; ******************************\n; void ff_vvc_alf_filter_%2_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, int width, int height,\n;      const int16_t *filter, const int16_t *clip, int vb_pos);\n; ******************************\ncglobal vvc_alf_filter_%2_%1\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%assign ps (%1+7) / 8 ; pixel size\n\n; ******************************\n; void ff_vvc_alf_filter_%2_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, int width, int height,\n;      const int16_t *filter, const int16_t *clip, int vb_pos);\n; ******************************\ncglobal vvc_alf_filter_%2_%1\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%elif WIN64 && (ps != 1)\n; Swap m5 and m15, so that the register for the maximum pixel value\n; ends up in a volatile register\n    SWAP 5,15\n%endif\n%if ps != 1\n  ; create pw_pixelmax for clipping\n  pcmpeqw         m15, m15\n  psrlw           m15, 16 - %1\n%endif\n\n%if %1 != %3\n    jmp vvc_alf_filter_%2_%3_prologue\n%else\nvvc_alf_filter_%2_%1_prologue:\n    PROLOGUE 9, 14+LUMA, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, \\\n    x, s1, s2, s3, s4, s5\n%if ps != 1\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps\n\n        sub       widthd, 16\n        jmp      .loop_w", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "x, s1, s2, s3, s4, s5\n%if ps != 1\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps\n\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nSAVE_MM_PERMUTATION\nINIT_XMM cpuname\nLOAD_MM_PERMUTATION\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd, 0\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 12, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                xm11, xm11 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": ".loop_h:\n    xor                   xd,  xd\n    pxor                xm11, xm11 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw           m4, m4, m5, 0xaa             ; ne\n        pblendw          m10, m1, m2, 0xaa             ; w\n        pblendw           m5, m5, m6, 0xaa             ; e\n        pblendw           m3, m2, m3, 0xaa             ; sw\n        pblendw           m2, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m2                       ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw             m5, m10                      ; w + e\n        psubw             m5, m1                       ; (w + e) - d\n        pabsw             m5, m5                       ; hor\n\n        pblendw           m6, m6, m7, 0xaa             ; se\n        paddw             m8, m6                       ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw             m4, m3                       ; ne + sw\n        psubw             m4, m1                       ; (nw + se) - d\n        pabsw             m4, m4                       ; di1\n\n        phaddw            m9, m5                       ; vh,  each word represent 2x2 pixels\n        phaddw            m8, m4                       ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m11, m11, xm0, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "pabsw             m9, m9                       ; ver\n\n        paddw             m5, m10                      ; w + e\n        psubw             m5, m1                       ; (w + e) - d\n        pabsw             m5, m5                       ; hor\n\n        pblendw           m6, m6, m7, 0xaa             ; se\n        paddw             m8, m6                       ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw             m4, m3                       ; ne + sw\n        psubw             m4, m1                       ; (nw + se) - d\n        pabsw             m4, m4                       ; di1\n\n        phaddw            m9, m5                       ; vh,  each word represent 2x2 pixels\n        phaddw            m8, m4                       ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m11, m11, xm0, 1\n        pblendw           m1,  m0, m11, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm11, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd             xm8, yd\n    movd             xm4, vb_posd\n    pcmpeqb          xm5, xm5\n    pcmpeqd          xm8, xm4      ; y == vb_pos\n    pxor             xm8, xm5      ; y != vb_pos\n    vpbroadcastd      m8, xm8\n\n    vpbroadcastd      m9, [dw3]\n    paddd             m9, m8        ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m10, [gradq + sum_stride3q], m8\n\n    ; extent to dword to avoid overflow\n    punpckhwd         m4, m0, m10\n    punpcklwd         m0, m0, m10\n    punpckhwd         m5, m1, m10\n    punpcklwd         m1, m1, m10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd             xm8, yd\n    movd             xm4, vb_posd\n    pcmpeqb          xm5, xm5\n    pcmpeqd          xm8, xm4      ; y == vb_pos\n    pxor             xm8, xm5      ; y != vb_pos\n    vpbroadcastd      m8, xm8\n\n    vpbroadcastd      m9, [dw3]\n    paddd             m9, m8        ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m10, [gradq + sum_stride3q], m8\n\n    ; extent to dword to avoid overflow\n    punpckhwd         m4, m0, m10\n    punpcklwd         m0, m0, m10\n    punpckhwd         m5, m1, m10\n    punpcklwd         m1, m1, m10\n    punpckhwd         m6, m2, m10\n    paddd             m4, m5\n    punpcklwd         m5, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n\n    paddd             m0, m1\n    paddd             m6, m7\n    paddd             m5, m3\n\n    ; sum of the first row\n    paddd             m0, m0, m5         ; low\n    paddd             m1, m4, m6         ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb          m2, m10, m2, m8\n\n    movu              m3, [gradq + sum_strideq]\n    movu              m4, [gradq + 2 * sum_strideq]\n    movu              m5, [gradq + sum_stride3q]\n\n    punpckhwd         m6, m2, m10\n    punpcklwd         m2, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n    punpckhwd         m8, m4, m10\n    punpcklwd         m4, m4, m10\n    paddd             m6, m7\n    punpckhwd         m7, m5, m10\n    punpcklwd         m5, m5, m10\n\n    paddd             m2, m3\n    paddd             m8, m7\n    paddd             m4, m5\n\n    ; sum of the second row\n    paddd             m2, m2, m4         ; low\n    paddd             m3, m8, m6         ; high", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "movu              m5, [gradq + sum_stride3q]\n\n    punpckhwd         m6, m2, m10\n    punpcklwd         m2, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n    punpckhwd         m8, m4, m10\n    punpcklwd         m4, m4, m10\n    paddd             m6, m7\n    punpckhwd         m7, m5, m10\n    punpcklwd         m5, m5, m10\n\n    paddd             m2, m3\n    paddd             m8, m7\n    paddd             m4, m5\n\n    ; sum of the second row\n    paddd             m2, m2, m4         ; low\n    paddd             m3, m8, m6         ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m3, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd      m1, [dw3]\n    paddd             m7, m7\n    paddd             m7, m4\n    paddd             m7, m1\n    SAVE_CLASSIFY_PARAM transpose_idx, 7\n\n    psrlq             m1, m8, 32\n    psrlq             m2, m6, 32\n    pmuldq            m4, m1, m2         ; d1 * hv0 high\n    psrlq             m1, m3, 32\n    psrlq             m2, m5, 32\n    pmuldq            m7, m1, m2         ; d0 * hv1 high\n    pcmpgtq           m7, m4, m7         ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m3, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pminsd            m3, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd      m1, [dw3]\n    paddd             m7, m7\n    paddd             m7, m4\n    paddd             m7, m1\n    SAVE_CLASSIFY_PARAM transpose_idx, 7\n\n    psrlq             m1, m8, 32\n    psrlq             m2, m6, 32\n    pmuldq            m4, m1, m2         ; d1 * hv0 high\n    psrlq             m1, m3, 32\n    psrlq             m2, m5, 32\n    pmuldq            m7, m1, m2         ; d0 * hv1 high\n    pcmpgtq           m7, m4, m7         ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m3, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m7, 0xaa   ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m3, m1     ; hvd0\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m9             ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m11\n%else\n    psrld             m0, 7\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd      m0, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": ";   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 14, 11+(ps!=1), class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n    movd            xm11, bit_depthd\n    vpbroadcastd     m11, xm11\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "ALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 14, 11+(ps!=1), class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n    movd            xm11, bit_depthd\n    vpbroadcastd     m11, xm11\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor            xm10, xm10\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   12, 10\nALF_FILTER   10, 10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   12, 10\nALF_FILTER   10, 10\nALF_CLASSIFY 16\nALF_FILTER   8,  8\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8901f858eb14f720e316ea5c1f195cf004956f55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8901f858eb14f720e316ea5c1f195cf004956f55/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 905}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pminsd            m3, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd      m1, [dw3]\n    paddd             m7, m7\n    paddd             m7, m4\n    paddd             m7, m1\n    SAVE_CLASSIFY_PARAM transpose_idx, 7\n\n    psrlq             m1, m8, 32\n    psrlq             m2, m6, 32\n    pmuldq            m4, m1, m2         ; d1 * hv0 high\n    psrlq             m1, m3, 32\n    psrlq             m2, m5, 32\n    pmuldq            m7, m1, m2         ; d0 * hv1 high\n    pcmpgtq           m7, m4, m7         ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m3, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m7, 0xaa   ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m3, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m9             ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 7\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd      m0, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a3dfc511a5f1532e39a2c62e9bd7644573c17c93", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3dfc511a5f1532e39a2c62e9bd7644573c17c93/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd      m0, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 14, 11, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a3dfc511a5f1532e39a2c62e9bd7644573c17c93", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3dfc511a5f1532e39a2c62e9bd7644573c17c93/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": ";void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 14, 11, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor            xm10, xm10\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a3dfc511a5f1532e39a2c62e9bd7644573c17c93", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3dfc511a5f1532e39a2c62e9bd7644573c17c93/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   12, 10\nALF_FILTER   10, 10\nALF_CLASSIFY 16\nALF_FILTER   8,  8\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a3dfc511a5f1532e39a2c62e9bd7644573c17c93", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a3dfc511a5f1532e39a2c62e9bd7644573c17c93/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 908}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd      m0, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m0\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m2, m3, 3\n    paddd             m2, m3\n    pcmpgtd           m8, m2             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m0\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 11, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5de2c4c89e08ffde8d1801b6e1f885903302c370", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5de2c4c89e08ffde8d1801b6e1f885903302c370/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": ";void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 11, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor            xm10, xm10\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5de2c4c89e08ffde8d1801b6e1f885903302c370", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5de2c4c89e08ffde8d1801b6e1f885903302c370/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd             xm8, yd\n    movd             xm4, vb_posd\n    pcmpeqb          xm5, xm5\n    pcmpeqd          xm8, xm4      ; y == vb_pos\n    pxor             xm8, xm5      ; y != vb_pos\n    vpbroadcastd      m8, xm8\n\n    vpbroadcastd      m9, [dw3]\n    paddd             m9, m8        ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m10, [gradq + sum_stride3q], m8\n\n    ; extent to dword to avoid overflow\n    punpckhwd         m4, m0, m10\n    punpcklwd         m0, m0, m10\n    punpckhwd         m5, m1, m10\n    punpcklwd         m1, m1, m10\n    punpckhwd         m6, m2, m10\n    punpcklwd         m2, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n\n    paddd             m4, m5\n    paddd             m0, m1\n    paddd             m6, m7\n    paddd             m2, m3\n\n    ; sum of the first row\n    paddd             m0, m0, m2         ; low\n    paddd             m1, m4, m6         ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb          m2, m10, [gradq], m8\n\n    movu              m3, [gradq + sum_strideq]\n    movu              m4, [gradq + 2 * sum_strideq]\n    movu              m5, [gradq + sum_stride3q]\n\n    punpckhwd         m6, m2, m10\n    punpcklwd         m2, m2, m10\n    punpckhwd         m7, m3, m10\n    punpcklwd         m3, m3, m10\n    punpckhwd         m8, m4, m10\n    punpcklwd         m4, m4, m10\n    paddd             m6, m7\n    punpckhwd         m7, m5, m10\n    punpcklwd         m5, m5, m10\n\n    paddd             m2, m3\n    paddd             m8, m7\n    paddd             m4, m5\n\n    ; sum of the second row\n    paddd             m2, m2, m4         ; low\n    paddd             m3, m8, m6         ; high", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d727b7a64e90e6f9c058a6996cd7770e9751ded9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d727b7a64e90e6f9c058a6996cd7770e9751ded9/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    paddd            m14, m13       ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "b1d6f31d65af457f5a7cc4057ded743ff33e3e4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1d6f31d65af457f5a7cc4057ded743ff33e3e4a/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    paddd            m14, m13       ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "b1d6f31d65af457f5a7cc4057ded743ff33e3e4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1d6f31d65af457f5a7cc4057ded743ff33e3e4a/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "b1d6f31d65af457f5a7cc4057ded743ff33e3e4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1d6f31d65af457f5a7cc4057ded743ff33e3e4a/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 7\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "b1d6f31d65af457f5a7cc4057ded743ff33e3e4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1d6f31d65af457f5a7cc4057ded743ff33e3e4a/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "b1d6f31d65af457f5a7cc4057ded743ff33e3e4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1d6f31d65af457f5a7cc4057ded743ff33e3e4a/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": ";void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "b1d6f31d65af457f5a7cc4057ded743ff33e3e4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1d6f31d65af457f5a7cc4057ded743ff33e3e4a/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "2cce9a82795152d0472193cbfdd0a079606301d2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2cce9a82795152d0472193cbfdd0a079606301d2/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "0ddece40c558c0e84395fb5ef805dc9b018ebf81", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0ddece40c558c0e84395fb5ef805dc9b018ebf81/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": ".loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "0ddece40c558c0e84395fb5ef805dc9b018ebf81", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0ddece40c558c0e84395fb5ef805dc9b018ebf81/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "0ddece40c558c0e84395fb5ef805dc9b018ebf81", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0ddece40c558c0e84395fb5ef805dc9b018ebf81/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posd, 0\n    je       %%vb_bottom\n    cmp          vb_posd, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posd, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posd", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posd, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posd\n    cmp          vb_posd, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posd, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "inc          vb_posd\n    cmp          vb_posd, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posd, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posd, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posd, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posd, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "cmp          vb_posd, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s6q clipq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%endmacro\n\n%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s6q clipq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n%ifnidn %2, 0\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4 + %2]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4 + %2]\n%endif\n\n%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bd, luma/chroma, bd of implementation to use)\n%macro ALF_FILTER 3\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%assign ps (%1+7) / 8 ; pixel size\n\n; ******************************\n; void ff_vvc_alf_filter_%2_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, int width, int height,\n;      const int16_t *filter, const int16_t *clip, int vb_pos);\n; ******************************\ncglobal vvc_alf_filter_%2_%1\n%if !LUMA", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "pop clipq\n%endif\n%endmacro\n\n; FILTER(bd, luma/chroma, bd of implementation to use)\n%macro ALF_FILTER 3\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%assign ps (%1+7) / 8 ; pixel size\n\n; ******************************\n; void ff_vvc_alf_filter_%2_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, int width, int height,\n;      const int16_t *filter, const int16_t *clip, int vb_pos);\n; ******************************\ncglobal vvc_alf_filter_%2_%1\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%elif WIN64 && (ps != 1)\n; Swap m5 and m15, so that the register for the maximum pixel value\n; ends up in a volatile register\n    SWAP 5,15\n%endif\n%if ps != 1\n  ; create pw_pixelmax for clipping\n  pcmpeqw         m15, m15\n  psrlw           m15, 16 - %1\n%endif\n\n%if %1 != %3\n    jmp vvc_alf_filter_%2_%3_prologue\n%else\nvvc_alf_filter_%2_%1_prologue:\n    PROLOGUE 9, 14+LUMA, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, \\\n    x, s1, s2, s3, s4, s5\n%if ps != 1\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "%if %1 != %3\n    jmp vvc_alf_filter_%2_%3_prologue\n%else\nvvc_alf_filter_%2_%1_prologue:\n    PROLOGUE 9, 14+LUMA, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, \\\n    x, s1, s2, s3, s4, s5\n%if ps != 1\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps\n\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nSAVE_MM_PERMUTATION\nINIT_XMM cpuname\nLOAD_MM_PERMUTATION\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd, 0\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": ".w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endif\n%endmacro\n\n; FILTER(bd, bd of implementation to use)\n%macro ALF_FILTER 2\n    ALF_FILTER  %1, luma,   %2\n    ALF_FILTER  %1, chroma, %2\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    paddd            m14, m13       ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    paddd            m14, m13       ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   12, 10\nALF_FILTER   10, 10\nALF_CLASSIFY 16\nALF_FILTER   8,  8\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1960320112f97bc00744511cb80b8e2cfff4cc4a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1960320112f97bc00744511cb80b8e2cfff4cc4a/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 914}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s5q clipq\n    %define s6q pixel_maxq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%endmacro\n\n%macro FILTER_16x4 2\n%if LUMA\n    push clipq\n    %define s5q clipq\n    %define s6q pixel_maxq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n%ifnidn %2, 0\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4 + %2]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4 + %2]\n%endif\n\n%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 10, 15, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, pixel_max, \\\n    x, s1, s2, s3, s4\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps\n\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": ".loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16, 16 * ps\n\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd, 0\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    paddd            m14, m13       ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    paddd            m14, m13       ; ac = (y != vb_pos) ? 2 : 3\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 899}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "467f8d8415e8818f8ef60aa099f5d5201b0c6dc6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/467f8d8415e8818f8ef60aa099f5d5201b0c6dc6/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 899}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    %define s5q clipq\n    %define s6q pixel_maxq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "cb5f6c055b1f3934dc0893c86f49684bd3190a7d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb5f6c055b1f3934dc0893c86f49684bd3190a7d/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    %define s5q clipq\n    %define s6q pixel_maxq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 10, 15, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, pixel_max, \\\n    x, s1, s2, s3, s4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "cb5f6c055b1f3934dc0893c86f49684bd3190a7d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb5f6c055b1f3934dc0893c86f49684bd3190a7d/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 10, 15, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, pixel_max, \\\n    x, s1, s2, s3, s4\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "cb5f6c055b1f3934dc0893c86f49684bd3190a7d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb5f6c055b1f3934dc0893c86f49684bd3190a7d/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "cb5f6c055b1f3934dc0893c86f49684bd3190a7d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cb5f6c055b1f3934dc0893c86f49684bd3190a7d/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    %define s5q clipq\n    %define s6q pixel_maxq\n%endif\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n%if LUMA\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 10, 15, 12+2*(ps!=1)+2*LUMA, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, pixel_max, \\\n    x, s1, s2, s3, s4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "38062ebd18cf2f0de3720bdef054e941d69b6336", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/38062ebd18cf2f0de3720bdef054e941d69b6336/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 10, 15, 12+2*(ps!=1)+2*LUMA, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, vb_pos, pixel_max, \\\n    x, s1, s2, s3, s4\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "38062ebd18cf2f0de3720bdef054e941d69b6336", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/38062ebd18cf2f0de3720bdef054e941d69b6336/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS 4\n    movu                    m%1, [%4q + 2 * offsetq + 0 * mmsize] ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * mmsize]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * mmsize]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS        %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%else\n    LOAD_LUMA_PARAMS_W8  %1, %2, %3, %4, %5\n%endif\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    vpbroadcastq            m%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    lea                 offsetq, [3 * xq]           ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:4", "text": "LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10\n    pmaddwd          m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posd, 0\n    je       %%vb_bottom\n    cmp          vb_posd, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posd, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posd\n%if LUMA\n    cmp          vb_posd, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posd, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posd\n    cmp          vb_posd, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posd, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posd, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posd, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posd, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posd, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 12+2*(ps!=1)+2*LUMA, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xd, xd\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xd, xd\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d2e7fe5b19b2c5b42d0f574f6c21c82e8c92737c/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 913}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:1", "text": ";******************************************************************************\n;* VVC Adaptive Loop Filter SIMD optimizations\n;*\n;* Copyright (c) 2023-2024 Nuo Mi <nuomi2021@gmail.com>\n;* Copyright (c) 2023-2024 Wu Jianhua <toqsxw@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%macro PARAM_SHUFFE 1\n%assign i (%1  * 2)\n%assign j ((i + 1) << 8) + (i)\nparam_shuffe_ %+ %1:\n%rep 2\n    times 4 dw j\n    times 4 dw (j + 0x0808)\n%endrep\n%endmacro\n\nPARAM_SHUFFE 0\nPARAM_SHUFFE 1\nPARAM_SHUFFE 2\nPARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS 4\n    movu                    m%1, [%4q + 2 * offsetq + 0 * mmsize] ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * mmsize]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * mmsize]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS        %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%else\n    LOAD_LUMA_PARAMS_W8  %1, %2, %3, %4, %5\n%endif\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    vpbroadcastq            m%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    lea                 offsetq, [3 * xq]           ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:4", "text": "LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10\n    pmaddwd          m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posd, 0\n    je       %%vb_bottom\n    cmp          vb_posd, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posd, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posd\n%if LUMA", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posd\n    cmp          vb_posd, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posd, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posd, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posd\n    cmp          vb_posd, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posd, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "cmp          vb_posd, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posd\n%if LUMA\n    cmp          vb_posd, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posd, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posd, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posd, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posd, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "%else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xd, xd\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xd\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xd\n    cmp               xd, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 12+2*(ps!=1)+2*LUMA, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xd, xd\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "%endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xd, xd\n\n    .loop_w:\n        cmp       widthd, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        sub       widthd, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthd, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthd\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": ".w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posd, 4\n    sub          heightd, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        pshufb            m1, m0, [CLASSIFY_SHUFFE]    ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    movd            xm13, yd\n    movd            xm12, vb_posd\n    pcmpeqb         xm11, xm11\n    pcmpeqd         xm13, xm12      ; y == vb_pos\n    pxor            xm13, xm11      ; y != vb_pos\n    vpbroadcastd     m13, xm13\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "5da3cab645114e7501f09c61c794631f90a7f54e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5da3cab645114e7501f09c61c794631f90a7f54e/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 914}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthd, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "c9da0193fff60438326570f659bdf7d9ce8d0ee5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9da0193fff60438326570f659bdf7d9ce8d0ee5/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 915}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posq, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posq\n    cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "%else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 12+2*(ps!=1)+2*LUMA, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "%endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": ".w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a489a623fbffcef69b60c84176e88503cc656659", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a489a623fbffcef69b60c84176e88503cc656659/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%else\n    LOAD_LUMA_PARAMS_W8  %1, %2, %3, %4, %5\n%endif\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    lea                 offsetq, [3 * xq]           ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posq, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posq\n    cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "inc          vb_posq\n    cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 12+2*(ps!=1)+2*LUMA, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if !LUMA\n; chroma does not use registers m5 and m8. Swap them to reduce the amount\n; of nonvolatile registers on Win64. It also reduces codesize generally\n; as encodings with high registers (m8-m15) take more bytes.\n    %if ps != 1\n        SWAP 5,15\n        SWAP 8,14\n    %else\n        SWAP 5,12\n        SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "SWAP 8,13\n    %endif\n%endif\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": ".w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    vpermq                  m%2, m%2, 11011000b\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vextracti128           xm%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    movhps        [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    punpckhqdq             xm%2, xm%2\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vextracti128          xm%2, m%2, 1\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": ";*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "df7885d6c371dfb3b25862978a040eb0f2785516", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/df7885d6c371dfb3b25862978a040eb0f2785516/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 917}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    je                   %%end\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": "xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "1bc91eb5525bd7d6587598e0ea889db4649d0ce0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1bc91eb5525bd7d6587598e0ea889db4649d0ce0/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 919}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": ".loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e4a9d54e48073cb6a1b7363e6b5e88a1e62584f5/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 920}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 14+2*(ps!=1), 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n%if LUMA\nINIT_XMM cpuname\n%endif\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n%if LUMA\nINIT_YMM cpuname\n%endif\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:23", "text": ".loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a2d9cd6dcbf11baafa0ad6e1e1ff42f5af223c69/libavcodec/x86/vvc/alf.asm", "line_start": 881, "line_end": 908}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * mmsize] ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * mmsize]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * mmsize]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS        %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "01a897020e4d5d794cf16984796d4c8a2518bfaf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01a897020e4d5d794cf16984796d4c8a2518bfaf/libavcodec/x86/vvc/alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W8 5\n    LOAD_LUMA_PARAMS       %2, %3, %5, %4\n    ;m%2 = 01 00\n    ;m%3 = 03 02\n    ;m%5 = 05 04\n\n    shufpd                  m%1, m%2, m%3, 10b          ;03 00\n    shufpd                  m%2, m%2, m%5, 01b          ;04 01\n    shufpd                  m%3, m%3, m%5, 10b          ;05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n%if mmsize == 32\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%else\n    LOAD_LUMA_PARAMS_W8  %1, %2, %3, %4, %5\n%endif\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "01a897020e4d5d794cf16984796d4c8a2518bfaf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/01a897020e4d5d794cf16984796d4c8a2518bfaf/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS_W16 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * 32]   ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * 32]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * 32]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS_W16    %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:4", "text": "%define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10\n    pmaddwd          m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posq, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posq\n    cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    vextracti128    xm%2, m%2, 1\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width, tmp reg)\n%macro STORE_PIXELS 4\n    %ifidn %3, 16\n        %if ps == 1\n            vextracti128 xm%4, m%2, 1\n            packuswb     xm%2, xm%4\n        %endif\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            %if ps == 1\n                packuswb     xm%2, xm%2\n            %endif\n            STORE_PIXELS_W8   %1, %2\n        %else\n            %if ps == 1\n                packuswb      m%2, m%2\n            %endif\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1, 2\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 14+2*(ps!=1), 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 14+2*(ps!=1), 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": ".loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "9cb5280c0e4c0f1e832276d160055d3f9a71b17e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9cb5280c0e4c0f1e832276d160055d3f9a71b17e/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 887}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    je .end\n    %if ps == 2\n        vpermq      m%2,  m%2, q0302\n    %else\n        vpermq      m%2,  m%2, q0101\n    %endif\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            STORE_PIXELS_W8   %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "%endif\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            STORE_PIXELS_W8   %1, %2\n        %else\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 14+2*(ps!=1), 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 14+2*(ps!=1), 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n%endif\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": ".loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56a4c15c23b5fd8a1c599c1106cf3b6e5efa5e9c/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    cmp %3, 12\n    %if ps == 2\n        vpermq      m%2,  m%2, q0302\n    %else\n        vpermq      m%2,  m%2, q0101\n    %endif\n    jl .end\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "43cc8f05df89253accba434979713af51a8924df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/43cc8f05df89253accba434979713af51a8924df/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "%endif\n    jl .end\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            STORE_PIXELS_W8   %1, %2\n        %else\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "43cc8f05df89253accba434979713af51a8924df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/43cc8f05df89253accba434979713af51a8924df/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n%if ps != 1\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n%endif\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n%define ps (%1 / 8) ; pixel size\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 14+2*(ps!=1), 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%if ps != 1\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "43cc8f05df89253accba434979713af51a8924df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/43cc8f05df89253accba434979713af51a8924df/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "%endif\n    jl .end\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            STORE_PIXELS_W8   %1, %2\n        %else\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n%if ps != 1\n    sub       bit_depthq, 1\n%endif\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "a8b3b9c26fb33928f50a2fbc48a35652573c58eb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8b3b9c26fb33928f50a2fbc48a35652573c58eb/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 883}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:1", "text": ";******************************************************************************\n;* VVC Adaptive Loop Filter SIMD optimizations\n;*\n;* Copyright (c) 2023-2024 Nuo Mi <nuomi2021@gmail.com>\n;* Copyright (c) 2023-2024 Wu Jianhua <toqsxw@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%macro PARAM_SHUFFE 1\n%assign i (%1  * 2)\n%assign j ((i + 1) << 8) + (i)\nparam_shuffe_ %+ %1:\n%rep 2\n    times 4 dw j\n    times 4 dw (j + 0x0808)\n%endrep\n%endmacro\n\nPARAM_SHUFFE 0\nPARAM_SHUFFE 1\nPARAM_SHUFFE 2\nPARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nTRANSPOSE_PERMUTE:          dd 0, 1, 4, 5, 2, 3, 6, 7\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nTRANSPOSE_PERMUTE:          dd 0, 1, 4, 5, 2, 3, 6, 7\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ncextern pd_64\ndd448: times 8             dd 512 - 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS_W16 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * 32]   ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * 32]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * 32]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS_W16    %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:3", "text": "shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:4", "text": "%define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    psubw             m9, m2\n    CLIPW             m9, m11, m12\n\n    psubw            m10, m2\n    CLIPW            m10, m11, m12\n\n    punpckhwd        m13, m9, m10\n    punpcklwd         m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    punpcklwd        m10, m12, m12\n    punpckhwd        m12, m12, m12\n\n    pmaddwd           m9, m10\n    pmaddwd          m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:5", "text": "; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posq, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:6", "text": "dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posq\n    cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:7", "text": "; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:8", "text": "packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [pd_64]\n    vpbroadcastd      m1, [pd_64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:9", "text": "movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2\n    %endif\n%endmacro\n\n; STORE_PIXELS_W4(dst, src, offset)\n%macro STORE_PIXELS_W4 3\n    %if ps == 2\n        movq   [%1 + %3 * ps], xm%2\n    %else\n        movd        [%1 + %3], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8LE 3\n    cmp %3, 8\n    jl .w4\n    STORE_PIXELS_W8 %1, %2\n    cmp %3, 12\n    %if ps == 2\n        vpermq      m%2,  m%2, q0302\n    %else\n        vpermq      m%2,  m%2, q0101\n    %endif\n    jl .end\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:10", "text": "vpermq      m%2,  m%2, q0101\n    %endif\n    jl .end\n    STORE_PIXELS_W4 %1, %2, 8\n    jmp .end\n.w4:\n    STORE_PIXELS_W4 %1, %2, 0\n.end:\n%endmacro\n\n; STORE_PIXELS(dst, src, width)\n%macro STORE_PIXELS 3\n    %if ps == 1\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n    %endif\n\n    %ifidn %3, 16\n        STORE_PIXELS_W16  %1, %2\n    %else\n        %if LUMA\n            STORE_PIXELS_W8   %1, %2\n        %else\n            STORE_PIXELS_W8LE %1, %2, %3\n        %endif\n    %endif\n%endmacro\n\n%macro FILTER_16x4 1\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:11", "text": "%define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS    dstq, 0, %1\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:12", "text": "%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x30, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    push          widthq\n    xor               xq, xq\n\n    .loop_w:\n        cmp       widthq, 16\n        jl   .loop_w_end\n\n        LOAD_PARAMS\n        FILTER_16x4   16\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        sub       widthq, 16\n        jmp      .loop_w\n\n.loop_w_end:\n    cmp           widthq, 0\n    je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:13", "text": "je            .w_end\n\n    LOAD_PARAMS\n    FILTER_16x4  widthq\n\n.w_end:\n\n    pop           widthq\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:14", "text": "lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:15", "text": "pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:16", "text": "add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:17", "text": "SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:18", "text": "paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pblendvb          m3, m6, m9, m1     ; hvd0\n\n%if ps != 1  ; high bit depth\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n%endif\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n%if ps != 1\n    vpsrlvd           m0, m0, m5\n%else\n    psrld             m0, 8\n%endif\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "94f9ad8061371d1ac946beed42db49d5d2fe2499", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/94f9ad8061371d1ac946beed42db49d5d2fe2499/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 884}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:19", "text": "; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n    vpsrlvd           m0, m0, m5\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8bb682d454990a1049a21f1f51442205ea3337e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8bb682d454990a1049a21f1f51442205ea3337e9/libavcodec/x86/vvc/alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:20", "text": "pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n    vpsrlvd           m0, m0, m5\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8bb682d454990a1049a21f1f51442205ea3337e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8bb682d454990a1049a21f1f51442205ea3337e9/libavcodec/x86/vvc/alf.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:21", "text": "ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n    sub       bit_depthq, 1\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8bb682d454990a1049a21f1f51442205ea3337e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8bb682d454990a1049a21f1f51442205ea3337e9/libavcodec/x86/vvc/alf.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/alf.asm:22", "text": "sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/alf.asm", "license": "LGPL-2.1", "commit": "8bb682d454990a1049a21f1f51442205ea3337e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8bb682d454990a1049a21f1f51442205ea3337e9/libavcodec/x86/vvc/alf.asm", "line_start": 841, "line_end": 876}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:1", "text": "; /*\n; * Provide AVX2 luma dmvr functions for VVC decoding\n; * Copyright (c) 2024 Nuo Mi\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE             128\n\nSECTION_RODATA 32\n\nshift_12   times 2  dw 1 << (15 - (12 - 10))\nshift3_8   times 2  dw 1 << (15 - (8 - 6))\nshift3_10  times 2  dw 1 << (15 - (10 - 6))\nshift3_12  times 2  dw 1 << (15 - (12 - 6))\npw_16      times 2  dw 16\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\nSECTION .text\n\n%define pstride (bd / 10 + 1)\n\n; LOAD(dst, src)\n%macro LOAD_W16 2\n%if bd == 8\n    pmovzxbw               %1, %2\n%else\n    movu                   %1, %2\n%endif\n%endmacro\n\n%macro SHIFT_W16 2\n%if bd == 8\n    psllw                  %1, (10 - bd)\n%elif bd == 10\n    ; nothing\n%else\n    pmulhrsw               %1, %2\n%endif\n%endmacro\n\n%macro SAVE_W16 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:2", "text": "; LOAD(dst, src)\n%macro LOAD_W16 2\n%if bd == 8\n    pmovzxbw               %1, %2\n%else\n    movu                   %1, %2\n%endif\n%endmacro\n\n%macro SHIFT_W16 2\n%if bd == 8\n    psllw                  %1, (10 - bd)\n%elif bd == 10\n    ; nothing\n%else\n    pmulhrsw               %1, %2\n%endif\n%endmacro\n\n%macro SAVE_W16 2\n    movu                   %1, %2\n%endmacro\n\n; NEXT_4_LINES(is_h)\n%macro NEXT_4_LINES 1\n    lea                 dstq, [dstq + dsq*4]\n    lea                 srcq, [srcq + ssq*4]\n%if %1\n    lea                src1q, [srcq + pstride]\n%endif\n%endmacro\n\n\n; DMVR_4xW16(dst, dst_stride, dst_stride3, src, src_stride, src_stride3)\n%macro DMVR_4xW16 6\n    LOAD_W16               m0, [%4]\n    LOAD_W16               m1, [%4 + %5]\n    LOAD_W16               m2, [%4 + 2 * %5]\n    LOAD_W16               m3, [%4 + %6]\n\n    SHIFT_W16              m0, m4\n    SHIFT_W16              m1, m4\n    SHIFT_W16              m2, m4\n    SHIFT_W16              m3, m4\n\n    SAVE_W16    [%1]         , m0\n    SAVE_W16    [%1 + %2]    , m1\n    SAVE_W16    [%1 + 2 * %2], m2\n    SAVE_W16    [%1 + %3]    , m3\n%endmacro\n\n; buf += -stride * h + off\n; OFFSET_TO_W4(buf, stride, off)\n%macro OFFSET_TO_W4 3\n    mov                    id, hd\n    imul                   iq, %2\n    sub                    %1, iq\n    lea                    %1, [%1 + %3]\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:3", "text": "SHIFT_W16              m0, m4\n    SHIFT_W16              m1, m4\n    SHIFT_W16              m2, m4\n    SHIFT_W16              m3, m4\n\n    SAVE_W16    [%1]         , m0\n    SAVE_W16    [%1 + %2]    , m1\n    SAVE_W16    [%1 + 2 * %2], m2\n    SAVE_W16    [%1 + %3]    , m3\n%endmacro\n\n; buf += -stride * h + off\n; OFFSET_TO_W4(buf, stride, off)\n%macro OFFSET_TO_W4 3\n    mov                    id, hd\n    imul                   iq, %2\n    sub                    %1, iq\n    lea                    %1, [%1 + %3]\n%endmacro\n\n%macro OFFSET_TO_W4 0\n    OFFSET_TO_W4         srcq, ssq, 16 * (bd / 10 + 1)\n    OFFSET_TO_W4         dstq, dsq, 16 * 2\n%endmacro\n\n; void ff_vvc_dmvr_%1_avx2(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride,\n;     int height, intptr_t mx, intptr_t my, int width);\n%macro DMVR_AVX2 1\ncglobal vvc_dmvr_%1, 4, 9, 5, dst, src, ss, h, ds, ds3, w, ss3, i\n%define bd %1\n\n    LOAD_STRIDES\n\n%if %1 > 10\n    vpbroadcastd          m4, [shift_%1]\n%endif\n\n    mov                   wd, wm\n    mov                   id, hd\n.w16:\n    sub                   id, 4\n    jl              .w16_end\n    DMVR_4xW16          dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16\n    jl               .w4_end\n\n    OFFSET_TO_W4\n.w4:\n    sub                   hd, 4\n    jl               .w4_end\n    DMVR_4xW16          dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w4\n.w4_end:\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:4", "text": "sub                   id, 4\n    jl              .w16_end\n    DMVR_4xW16          dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16\n    jl               .w4_end\n\n    OFFSET_TO_W4\n.w4:\n    sub                   hd, 4\n    jl               .w4_end\n    DMVR_4xW16          dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w4\n.w4_end:\n\n    RET\n%endmacro\n\n; LOAD_COEFFS(coeffs0, coeffs1, src)\n%macro LOAD_COEFFS 3\n    movd                xm%2, %3\n    vpbroadcastw         m%2, xm%2\n    vpbroadcastd         m%1, [pw_16]\n    psubw                m%1, m%2\n%endmacro\n\n; LOAD_SHIFT(shift, src)\n%macro LOAD_SHIFT 2\n    vpbroadcastd           %1, [%2]\n%if bd == 12\n    psllw                  %1, 1                        ; avoid signed mul for pmulhrsw\n%endif\n%endmacro\n\n; LOAD_STRIDES(shift, src)\n%macro LOAD_STRIDES 0\n    mov                  dsq, MAX_PB_SIZE * 2\n    lea                 ss3q, [ssq*3]\n    lea                 ds3q, [dsq*3]\n%endmacro\n\n; BILINEAR(dst/src0, src1, coeff0, coeff1, round, tmp)\n%macro BILINEAR 6\n    pmullw                 %1, %3\n    pmullw                 %6, %2, %4\n    paddw                  %1, %6\n%if bd == 12\n    psrlw                  %1, 1                        ; avoid signed mul for pmulhrsw\n%endif\n    pmulhrsw               %1, %5\n%endmacro\n\n; DMVR_H_1xW16(dst, src0, src1, offset, tmp)\n%macro DMVR_H_1xW16 5\n    LOAD_W16               %1, [%2 + %4]\n    LOAD_W16               %5, [%3 + %4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:5", "text": "mov                  dsq, MAX_PB_SIZE * 2\n    lea                 ss3q, [ssq*3]\n    lea                 ds3q, [dsq*3]\n%endmacro\n\n; BILINEAR(dst/src0, src1, coeff0, coeff1, round, tmp)\n%macro BILINEAR 6\n    pmullw                 %1, %3\n    pmullw                 %6, %2, %4\n    paddw                  %1, %6\n%if bd == 12\n    psrlw                  %1, 1                        ; avoid signed mul for pmulhrsw\n%endif\n    pmulhrsw               %1, %5\n%endmacro\n\n; DMVR_H_1xW16(dst, src0, src1, offset, tmp)\n%macro DMVR_H_1xW16 5\n    LOAD_W16               %1, [%2 + %4]\n    LOAD_W16               %5, [%3 + %4]\n    BILINEAR               %1, %5, m10, m11, m12, %5\n%endmacro\n\n; DMVR_H_4xW16(dst, dst_stride, dst_stride3, src, src_stride, src_stride3, src1)\n%macro DMVR_H_4xW16 7\n    DMVR_H_1xW16           m0, %4, %7,      0, m4\n    DMVR_H_1xW16           m1, %4, %7,     %5, m5\n    DMVR_H_1xW16           m2, %4, %7, 2 * %5, m6\n    DMVR_H_1xW16           m3, %4, %7,     %6, m7\n\n    SAVE_W16    [%1]         , m0\n    SAVE_W16    [%1 + %2]    , m1\n    SAVE_W16    [%1 + 2 * %2], m2\n    SAVE_W16    [%1 + %3]    , m3\n%endmacro\n\n; void ff_vvc_dmvr_h_%1_avx2(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride,\n;     int height, intptr_t mx, intptr_t my, int width);\n%macro DMVR_H_AVX2 1\ncglobal vvc_dmvr_h_%1, 4, 10, 13, dst, src, ss, h, ds, ds3, w, ss3, src1, i\n%define bd %1\n\n    LOAD_COEFFS           10, 11, dsm\n    LOAD_SHIFT           m12, shift3_%1\n\n    LOAD_STRIDES\n    lea                src1q, [srcq + pstride]\n\n    mov                   wd, wm\n    mov                   id, hd\n.w16:\n    sub                   id, 4\n    jl              .w16_end\n    DMVR_H_4xW16        dstq, dsq, ds3q, srcq, ssq, ss3q, src1q\n    NEXT_4_LINES           1\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16\n    jl               .w4_end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:6", "text": "%define bd %1\n\n    LOAD_COEFFS           10, 11, dsm\n    LOAD_SHIFT           m12, shift3_%1\n\n    LOAD_STRIDES\n    lea                src1q, [srcq + pstride]\n\n    mov                   wd, wm\n    mov                   id, hd\n.w16:\n    sub                   id, 4\n    jl              .w16_end\n    DMVR_H_4xW16        dstq, dsq, ds3q, srcq, ssq, ss3q, src1q\n    NEXT_4_LINES           1\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16\n    jl               .w4_end\n\n    OFFSET_TO_W4\n    lea                src1q, [srcq + pstride]\n.w4:\n    sub                   hd, 4\n    jl               .w4_end\n    DMVR_H_4xW16        dstq, dsq, ds3q, srcq, ssq, ss3q, src1q\n    NEXT_4_LINES           1\n    jmp                 .w4\n.w4_end:\n\n    RET\n%endmacro\n\n; DMVR_V_4xW16(dst, dst_stride, dst_stride3, src, src_stride, src_stride3)\n%macro DMVR_V_4xW16 6\n    LOAD_W16               m1, [%4 + %5]\n    LOAD_W16               m2, [%4 + 2 * %5]\n    LOAD_W16               m3, [%4 + %6]\n    LOAD_W16               m4, [%4 + 4 * %5]\n\n    BILINEAR               m0, m1, m8, m9, m10, m11\n    BILINEAR               m1, m2, m8, m9, m10, m12\n    BILINEAR               m2, m3, m8, m9, m10, m13\n    BILINEAR               m3, m4, m8, m9, m10, m14\n\n    SAVE_W16    [%1]         , m0\n    SAVE_W16    [%1 + %2]    , m1\n    SAVE_W16    [%1 + 2 * %2], m2\n    SAVE_W16    [%1 + %3]    , m3\n\n    ; why can't we use SWAP m0, m4 here?\n    movaps                 m0, m4\n%endmacro\n\n; void ff_vvc_dmvr_v_%1_avx2(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride,\n;     int height, intptr_t mx, intptr_t my, int width);\n%macro DMVR_V_AVX2 1\ncglobal vvc_dmvr_v_%1, 4, 9, 15, dst, src, ss, h, ds, ds3, w, ss3, i\n%define bd %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:7", "text": "BILINEAR               m0, m1, m8, m9, m10, m11\n    BILINEAR               m1, m2, m8, m9, m10, m12\n    BILINEAR               m2, m3, m8, m9, m10, m13\n    BILINEAR               m3, m4, m8, m9, m10, m14\n\n    SAVE_W16    [%1]         , m0\n    SAVE_W16    [%1 + %2]    , m1\n    SAVE_W16    [%1 + 2 * %2], m2\n    SAVE_W16    [%1 + %3]    , m3\n\n    ; why can't we use SWAP m0, m4 here?\n    movaps                 m0, m4\n%endmacro\n\n; void ff_vvc_dmvr_v_%1_avx2(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride,\n;     int height, intptr_t mx, intptr_t my, int width);\n%macro DMVR_V_AVX2 1\ncglobal vvc_dmvr_v_%1, 4, 9, 15, dst, src, ss, h, ds, ds3, w, ss3, i\n%define bd %1\n\n    LOAD_COEFFS            8, 9, ds3m\n    LOAD_SHIFT           m10, shift3_%1\n\n    LOAD_STRIDES\n\n    mov                   wd, wm\n    mov                   id, hd\n    LOAD_W16              m0, [srcq]\n.w16:\n    sub                   id, 4\n    jl              .w16_end\n    DMVR_V_4xW16        dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16\n    jl               .w4_end\n\n    OFFSET_TO_W4\n    LOAD_W16              m0, [srcq]\n.w4:\n    sub                   hd, 4\n    jl               .w4_end\n    DMVR_V_4xW16        dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w4\n.w4_end:\n\n    RET\n%endmacro\n\n; DMVR_HV_4xW16(dst, dst_stride, dst_stride3, src, src_stride, src_stride3, src1)\n%macro DMVR_HV_4xW16 7\n    DMVR_H_1xW16           m1, %4, %7,     %5, m6\n    DMVR_H_1xW16           m2, %4, %7, 2 * %5, m7\n    DMVR_H_1xW16           m3, %4, %7,     %6, m8\n    DMVR_H_1xW16           m4, %4, %7, 4 * %5, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:8", "text": "OFFSET_TO_W4\n    LOAD_W16              m0, [srcq]\n.w4:\n    sub                   hd, 4\n    jl               .w4_end\n    DMVR_V_4xW16        dstq, dsq, ds3q, srcq, ssq, ss3q\n    NEXT_4_LINES           0\n    jmp                 .w4\n.w4_end:\n\n    RET\n%endmacro\n\n; DMVR_HV_4xW16(dst, dst_stride, dst_stride3, src, src_stride, src_stride3, src1)\n%macro DMVR_HV_4xW16 7\n    DMVR_H_1xW16           m1, %4, %7,     %5, m6\n    DMVR_H_1xW16           m2, %4, %7, 2 * %5, m7\n    DMVR_H_1xW16           m3, %4, %7,     %6, m8\n    DMVR_H_1xW16           m4, %4, %7, 4 * %5, m9\n\n    BILINEAR               m0, m1, m13, m14, m15, m6\n    BILINEAR               m1, m2, m13, m14, m15, m7\n    BILINEAR               m2, m3, m13, m14, m15, m8\n    BILINEAR               m3, m4, m13, m14, m15, m9\n\n    SAVE_W16    [%1]         , m0\n    SAVE_W16    [%1 + %2]    , m1\n    SAVE_W16    [%1 + 2 * %2], m2\n    SAVE_W16    [%1 + %3]    , m3\n\n    ; why can't we use SWAP m0, m4 here?\n    movaps                 m0, m4\n%endmacro\n\n; void ff_vvc_dmvr_hv_%1_avx2(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride,\n;     int height, intptr_t mx, intptr_t my, int width);\n%macro DMVR_HV_AVX2 1\ncglobal vvc_dmvr_hv_%1, 7, 10, 16, dst, src, ss, h, ds, ds3, w, ss3, src1, i\n%define bd %1\n\n    LOAD_COEFFS           10, 11, dsm\n    LOAD_SHIFT           m12, shift3_%1\n\n    LOAD_COEFFS           13, 14, ds3m\n    LOAD_SHIFT           m15, shift3_10\n\n    LOAD_STRIDES\n    lea                src1q, [srcq + pstride]\n\n    mov                   id, hd\n    DMVR_H_1xW16          m0, srcq, src1q, 0, m5\n.w16:\n    sub                   id, 4\n    jl              .w16_end\n    DMVR_HV_4xW16       dstq, dsq, ds3q, srcq, ssq, ss3q, src1q\n    NEXT_4_LINES           1\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:9", "text": "LOAD_COEFFS           10, 11, dsm\n    LOAD_SHIFT           m12, shift3_%1\n\n    LOAD_COEFFS           13, 14, ds3m\n    LOAD_SHIFT           m15, shift3_10\n\n    LOAD_STRIDES\n    lea                src1q, [srcq + pstride]\n\n    mov                   id, hd\n    DMVR_H_1xW16          m0, srcq, src1q, 0, m5\n.w16:\n    sub                   id, 4\n    jl              .w16_end\n    DMVR_HV_4xW16       dstq, dsq, ds3q, srcq, ssq, ss3q, src1q\n    NEXT_4_LINES           1\n    jmp                 .w16\n.w16_end:\n\n    sub                   wd, 16\n    jl               .w4_end\n\n    OFFSET_TO_W4\n    lea                src1q, [srcq + pstride]\n\n    DMVR_H_1xW16          m0, srcq, src1q, 0, m5\n.w4:\n    sub                   hd, 4\n    jl               .w4_end\n    DMVR_HV_4xW16       dstq, dsq, ds3q, srcq, ssq, ss3q, src1q\n    NEXT_4_LINES           1\n    jmp                 .w4\n.w4_end:\n\n    RET\n%endmacro\n\n%macro VVC_DMVR_AVX2 1\n    DMVR_AVX2    %1\n    DMVR_H_AVX2  %1\n    DMVR_V_AVX2  %1\n    DMVR_HV_AVX2 %1\n%endmacro\n\nINIT_YMM avx2\n\nVVC_DMVR_AVX2 8\nVVC_DMVR_AVX2 10\nVVC_DMVR_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 321, "line_end": 373}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/dmvr.asm:10", "text": "DMVR_V_AVX2  %1\n    DMVR_HV_AVX2 %1\n%endmacro\n\nINIT_YMM avx2\n\nVVC_DMVR_AVX2 8\nVVC_DMVR_AVX2 10\nVVC_DMVR_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/dmvr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/dmvr.asm", "line_start": 361, "line_end": 373}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:1", "text": "; /*\n; * Provide SIMD MC functions for VVC decoding\n; *\n; * Copyright © 2021, VideoLAN and dav1d authors\n; * Copyright © 2021, Two Orioles, LLC\n; * All rights reserved.\n; *\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 128\n\nSECTION_RODATA\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro AVG_JMP_TABLE 4-*\n    %xdefine %1_%2_%4_table (%%table - 2*%5)\n    %xdefine %%base %1_%2_%4_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%3_%4)\n    %%table:\n    %rep %0 - 4\n        dd %%prefix %+ .w%5 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, 10, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, 10, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "%xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%3_%4)\n    %%table:\n    %rep %0 - 4\n        dd %%prefix %+ .w%5 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, 10, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, 10, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2-3 1; bpc, op, instantiate implementation\n   jmp                  wq\n\n%if %3\nINIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": "movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1, 8\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endif\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": "AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endif\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 2 ; bpc, width\n%if %2 > 2\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n%endif\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n%if %2 == 2\n    packssdw             m0, m0\n%else\n    packssdw             m0, m5\n%endif\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:5", "text": "%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        movu                    [dstq], xm0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        movq                    [dstq], xm0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0,\n;                        const int16_t *src1, int width, int height);\n%macro VVC_AVG_AVX2 3\ncglobal vvc_avg_%2, 4, 7, 5, dst, stride, src0, src1, w, h\n    movifnidn            hd, hm\n\n    pcmpeqw              m2, m2\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n%endif\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    psrlw                m4, m2, 16-%2      ; pixel max\n    psubw                m2, m4, m2         ; 1 << bpp\n    add                  wq, r6\n    AVG_FN               %1, AVG, %3\n%endmacro\n\n;void ff_vvc_w_avg_%2_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;                         const int16_t *src0, const int16_t *src1, int width, int height,\n;                         int denom, intptr_t w0, int w1, int o);\n%macro VVC_W_AVG_AVX2 3\ncglobal vvc_w_avg_%2, 4, 7+2*UNIX64, 6+2*(%1 != 8), dst, stride, src0, src1, w, h\n%if UNIX64\n    ; r6-r8 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 6, 7, 8\n%else ; Win64\n    ; r4-r6 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 4, 5, 6\n%endif\n\n    mov                 t1d, r6m                ; denom\n    mov                 t0d, r9m                ; o0 + o1\n    movifnidn           t2d, r8m                ; w1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "add                  wq, r6\n    AVG_FN               %1, AVG, %3\n%endmacro\n\n;void ff_vvc_w_avg_%2_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;                         const int16_t *src0, const int16_t *src1, int width, int height,\n;                         int denom, intptr_t w0, int w1, int o);\n%macro VVC_W_AVG_AVX2 3\ncglobal vvc_w_avg_%2, 4, 7+2*UNIX64, 6+2*(%1 != 8), dst, stride, src0, src1, w, h\n%if UNIX64\n    ; r6-r8 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 6, 7, 8\n%else ; Win64\n    ; r4-r6 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 4, 5, 6\n%endif\n\n    mov                 t1d, r6m                ; denom\n    mov                 t0d, r9m                ; o0 + o1\n    movifnidn           t2d, r8m                ; w1\n    add                 t1d, 15-%2\n%if %2 != 8\n    shl                 t0d, %2 - 8\n%endif\n    movd                xm2, t1d                ; shift\n    inc                 t0d                     ; ((o0 + o1) << (BIT_DEPTH - 8)) + 1\n    shl                 t2d, 16\n    movd                xm4, t0d\n    mov                 t2w, r7m                ; w0\n    movd                xm3, t2d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pcmpeqw              m7, m7\n    pxor                 m6, m6                 ; pixel min\n    psrlw                m7, 16-%2              ; pixel max\n%endif\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n\n    pslld               xm4, xm2\n    psrad               xm4, 1\n    vpbroadcastd         m4, xm4                 ; offset\n\n    movifnidn            hd, hm\n\n    add                 wq, r6\n    AVG_FN              %1, W_AVG, %3\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16, 12, 0\n\nVVC_W_AVG_AVX2 16, 12, 0\n\nVVC_AVG_AVX2 16, 10, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "movsxd              wq, dword [r6+wq*4]\n\n    pslld               xm4, xm2\n    psrad               xm4, 1\n    vpbroadcastd         m4, xm4                 ; offset\n\n    movifnidn            hd, hm\n\n    add                 wq, r6\n    AVG_FN              %1, W_AVG, %3\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16, 12, 0\n\nVVC_W_AVG_AVX2 16, 12, 0\n\nVVC_AVG_AVX2 16, 10, 1\n\nVVC_W_AVG_AVX2 16, 10, 1\n\nVVC_AVG_AVX2 8, 8, 1\n\nVVC_W_AVG_AVX2 8, 8, 1\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 308}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0,\n;                        const int16_t *src1, int width, int height);\n%macro VVC_AVG_AVX2 3\ncglobal vvc_avg_%2, 4, 7, 5, dst, stride, src0, src1, w, h\n    movifnidn            hd, hm\n\n    pcmpeqw              m2, m2\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n%endif\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    psrlw                m4, m2, 16-%2      ; pixel max\n    psubw                m2, m4, m2         ; 1 << bpp\n    add                  wq, r6\n    AVG_FN               %1, AVG, %3\n%endmacro\n\n;void ff_vvc_w_avg_%2_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;                         const int16_t *src0, const int16_t *src1, int width, int height,\n;                         int denom, intptr_t w0, int w1, int o0, int o1);\n%macro VVC_W_AVG_AVX2 3\ncglobal vvc_w_avg_%2, 4, 7+2*UNIX64, 6+2*(%1 != 8), dst, stride, src0, src1, w, h\n%if UNIX64\n    ; r6-r8 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 6, 7, 8\n%else ; Win64\n    ; r4-r6 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 4, 5, 6\n%endif\n\n    mov                 t1d, r6m                ; denom\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "81fb70c833ac675ac8e09b38ad845a90de4c3e1c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81fb70c833ac675ac8e09b38ad845a90de4c3e1c/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "add                  wq, r6\n    AVG_FN               %1, AVG, %3\n%endmacro\n\n;void ff_vvc_w_avg_%2_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;                         const int16_t *src0, const int16_t *src1, int width, int height,\n;                         int denom, intptr_t w0, int w1, int o0, int o1);\n%macro VVC_W_AVG_AVX2 3\ncglobal vvc_w_avg_%2, 4, 7+2*UNIX64, 6+2*(%1 != 8), dst, stride, src0, src1, w, h\n%if UNIX64\n    ; r6-r8 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 6, 7, 8\n%else ; Win64\n    ; r4-r6 are volatile and not used for parameter passing\n    DECLARE_REG_TMP 4, 5, 6\n%endif\n\n    mov                 t1d, r6m                ; denom\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    movifnidn           t2d, r8m                ; w1\n    add                 t1d, 15-%2\n%if %2 != 8\n    shl                 t0d, %2 - 8\n%endif\n    movd                xm2, t1d                ; shift\n    inc                 t0d                     ; ((o0 + o1) << (BIT_DEPTH - 8)) + 1\n    shl                 t2d, 16\n    movd                xm4, t0d\n    mov                 t2w, r7m                ; w0\n    movd                xm3, t2d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pcmpeqw              m7, m7\n    pxor                 m6, m6                 ; pixel min\n    psrlw                m7, 16-%2              ; pixel max\n%endif\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n\n    pslld               xm4, xm2\n    psrad               xm4, 1\n    vpbroadcastd         m4, xm4                 ; offset\n\n    movifnidn            hd, hm\n\n    add                 wq, r6\n    AVG_FN              %1, W_AVG, %3\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16, 12, 0\n\nVVC_W_AVG_AVX2 16, 12, 0\n\nVVC_AVG_AVX2 16, 10, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "81fb70c833ac675ac8e09b38ad845a90de4c3e1c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81fb70c833ac675ac8e09b38ad845a90de4c3e1c/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n\n    pslld               xm4, xm2\n    psrad               xm4, 1\n    vpbroadcastd         m4, xm4                 ; offset\n\n    movifnidn            hd, hm\n\n    add                 wq, r6\n    AVG_FN              %1, W_AVG, %3\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16, 12, 0\n\nVVC_W_AVG_AVX2 16, 12, 0\n\nVVC_AVG_AVX2 16, 10, 1\n\nVVC_W_AVG_AVX2 16, 10, 1\n\nVVC_AVG_AVX2 8, 8, 1\n\nVVC_W_AVG_AVX2 8, 8, 1\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "81fb70c833ac675ac8e09b38ad845a90de4c3e1c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/81fb70c833ac675ac8e09b38ad845a90de4c3e1c/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 309}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:1", "text": "; /*\n; * Provide SIMD MC functions for VVC decoding\n; *\n; * Copyright © 2021, VideoLAN and dav1d authors\n; * Copyright © 2021, Two Orioles, LLC\n; * All rights reserved.\n; *\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 128\n\nSECTION_RODATA\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro AVG_JMP_TABLE 4-*\n    %xdefine %1_%2_%4_table (%%table - 2*%5)\n    %xdefine %%base %1_%2_%4_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%3_%4)\n    %%table:\n    %rep %0 - 4\n        dd %%prefix %+ .w%5 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, 10, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8,  8bpc, avx2,             2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, 16bpc, avx2,             2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "ea78402e9c78173118fb1e71d4192cb6840388e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ea78402e9c78173118fb1e71d4192cb6840388e7/libavcodec/x86/vvc/mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "%xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%3_%4)\n    %%table:\n    %rep %0 - 4\n        dd %%prefix %+ .w%5 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, 10, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8,  8bpc, avx2,             2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, 16bpc, avx2,             2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2-3 1; bpc, op, instantiate implementation\n   jmp                  wq\n\n%if %3\nINIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "ea78402e9c78173118fb1e71d4192cb6840388e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ea78402e9c78173118fb1e71d4192cb6840388e7/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1_avx2(uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0,\n;                        const int16_t *src1, int width, int height);\n%macro VVC_AVG_AVX2 3\ncglobal vvc_avg_%2, 4, 7, 5, dst, stride, src0, src1, w, h\n    movifnidn            hd, hm\n\n    pcmpeqw              m2, m2\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n%endif\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    psrlw                m4, m2, 16-%2      ; pixel max\n    psubw                m2, m4, m2         ; 1 << bpp\n    add                  wq, r6\n    AVG_FN               %1, AVG, %3\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "ea78402e9c78173118fb1e71d4192cb6840388e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ea78402e9c78173118fb1e71d4192cb6840388e7/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "add                  wq, r6\n    AVG_FN               %1, AVG, %3\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n%endif\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 7\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16, 12, 0\n\nVVC_AVG_AVX2 16, 10, 1\n\nVVC_AVG_AVX2 8, 8, 1\n\nVVC_W_AVG_AVX2 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "ea78402e9c78173118fb1e71d4192cb6840388e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ea78402e9c78173118fb1e71d4192cb6840388e7/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16, 12, 0\n\nVVC_AVG_AVX2 16, 10, 1\n\nVVC_AVG_AVX2 8, 8, 1\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "ea78402e9c78173118fb1e71d4192cb6840388e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ea78402e9c78173118fb1e71d4192cb6840388e7/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 305}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:1", "text": "; /*\n; * Provide SIMD MC functions for VVC decoding\n; *\n; * Copyright © 2021, VideoLAN and dav1d authors\n; * Copyright © 2021, Two Orioles, LLC\n; * All rights reserved.\n; *\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 128\n\nSECTION_RODATA\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "%xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\nINIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": "pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1, 8\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": "AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 2 ; bpc, width\n%if %2 > 2\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n%endif\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n%if %2 == 2\n    packssdw             m0, m0\n%else\n    packssdw             m0, m5\n%endif\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n%endif\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "movd                xm0, bdd\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n%endif\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 7\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "neg                 ecx\n    add                 ecx, 7\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "5a60b3f1a618ec9981f2950558df59087f799995", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5a60b3f1a618ec9981f2950558df59087f799995/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 310}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:1", "text": "; /*\n; * Provide SIMD MC functions for VVC decoding\n; *\n; * Copyright © 2021, VideoLAN and dav1d authors\n; * Copyright © 2021, Two Orioles, LLC\n; * All rights reserved.\n; *\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 128\n\nSECTION_RODATA\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\npw_0    times 2 dw   0\npw_4    times 2 dw   4\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\nINIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": ".w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1, 8\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": ".w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 2 ; bpc, width\n%if %2 > 2\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n%endif\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n%if %2 == 2\n    packssdw             m0, m0\n%else\n    packssdw             m0, m5\n%endif\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:5", "text": "%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        movu                    [dstq], xm0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        movq                    [dstq], xm0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n%endif\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n%endif\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f8ff4c183d3d91156d9b1054b8e070dbbfd5fb/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 316}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:1", "text": "; /*\n; * Provide SIMD MC functions for VVC decoding\n; *\n; * Copyright © 2021, VideoLAN and dav1d authors\n; * Copyright © 2021, Two Orioles, LLC\n; * All rights reserved.\n; *\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 128\n\nSECTION_RODATA 32\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\npw_0    times 2 dw   0\npw_1    times 2 dw   1\npw_4    times 2 dw   4\npw_12   times 2 dw  12\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "pw_12   times 2 dw  12\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1, 16\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\nINIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": "INIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1, 4\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1, 8\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": "AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   2 ; bpc, width\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 2 ; bpc, width\n%if %2 > 2\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n%endif\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n%if %2 == 2\n    packssdw             m0, m0\n%else\n    packssdw             m0, m5\n%endif\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:5", "text": "packssdw             m0, m5\n%endif\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        movu                    [dstq], xm0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        movq                    [dstq], xm0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "vpermq                      m0, m0, 1000b\n        movq                    [dstq], xm0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n%endif\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n%endif\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "eabf52e787f60ad57d9bce28bcce0cca730da6da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eabf52e787f60ad57d9bce28bcce0cca730da6da/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 318}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "pw_12   times 2 dw  12\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\nINIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": "INIT_XMM cpuname\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\nINIT_YMM cpuname\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   1\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": "AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   1\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 1\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n    packssdw             m0, m5\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:5", "text": "%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        movu                    [dstq], xm0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        movq                    [dstq], xm0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n%endif\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n%endif\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "9317fb2b2ed2e7b7718f99f3521997425134a78d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9317fb2b2ed2e7b7718f99f3521997425134a78d/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 312}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:2", "text": "pw_12   times 2 dw  12\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2                 %1\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2                 %1\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": ".w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\n.w8:\n    movu               xm0, [src0q]\n    movu               xm1, [src1q]\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   1\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": ".w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   1\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 1\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n    packssdw             m0, m5\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0\n        pextrq [dstq + strideq], xm0, 1\n    %else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:5", "text": "movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        movq             [dstq], xm0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        movd             [dstq], xm0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        movu                    [dstq], xm0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        movq                    [dstq], xm0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        movu               [dstq + %2 * strideq + %3 * 16], xm0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n%endif\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:7", "text": "psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n%if %1 != 8\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n%endif\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:8", "text": "cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/caa0ae0cfb35de0ae3fd5f346caef89d62eeaf7c/libavcodec/x86/vvc/mc.asm", "line_start": 281, "line_end": 310}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:3", "text": ".w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2                   %1\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\n.w8:\n    vinserti128         m0, m0, [src0q], 0\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q], 0\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2                  %1\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   1\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff/libavcodec/x86/vvc/mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:4", "text": ".w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   1\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n%if %1 != 8\n    CLIPW                m0, m3, m4\n%endif\n%endmacro\n\n%macro W_AVG 1\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n    packssdw             m0, m5\n%if %1 != 8\n    CLIPW                m0, m6, m7\n%endif\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        pextrq           [dstq], xm0, 0\n        pextrq [dstq + strideq], xm0, 1\n    %else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff/libavcodec/x86/vvc/mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:5", "text": "movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        pextrq           [dstq], xm0, 0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        vextracti128            [dstq], m0, 0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        pextrq                  [dstq], xm0, 0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        vextracti128       [dstq + %2 * strideq + %3 * 16], m0, 0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff/libavcodec/x86/vvc/mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/mc.asm:6", "text": "movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        vextracti128       [dstq + %2 * strideq + %3 * 16], m0, 0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n%if %1 != 8\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n%endif\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/mc.asm", "license": "LGPL-2.1", "commit": "7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7bf9c1e3f6effbe7d2dd53096bf2a7dbbb07d7ff/libavcodec/x86/vvc/mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:1", "text": "; /*\n; * Provide AVX2 luma optical flow functions for VVC decoding\n; * Copyright (c) 2024 Nuo Mi\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE             128\n%define SRC_STRIDE              (MAX_PB_SIZE * 2)\n%define SRC_PS                  2                                                       ; source pixel size, sizeof(int16_t)\n%define BDOF_STACK_SIZE         10                                                      ; (4 + 1) * 2, 4 lines + the first line, *2 for h and v\n%define bdof_stack_offset(line) ((line) * 2 % BDOF_STACK_SIZE * mmsize)\n%define SHIFT                   6\n%define SHIFT2                  4\n\nSECTION_RODATA 32\npd_15                   times 8 dd 15\npd_m15                  times 8 dd -15\n\npb_shuffle     times 2 db   0, 1, 0xff, 0xff, 8, 9, 0xff, 0xff, 6, 7, 0xff, 0xff, 14, 15, 0xff, 0xff\npd_perm_w16            dd   0, 1, 2, 4, 3, 5, 6, 7\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\nSECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n%endmacro\n\n%macro SAVE 2-3 \"\"; dst, src, jump target\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n\n    packuswb                   m%2, m%2\n\n    cmp                         wd, 16\n    je                       %%w16_8\n    movq                        %1, xm%2\n%ifnidn %3, \"\"\n    jmp                         %3\n%else\n    jmp                      %%end\n%endif\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n%ifnidn %3, \"\"\n    jmp                         %3\n%else\n    jmp                      %%end\n%endif\n\n%%w16_8:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "je                       %%w16_8\n    movq                        %1, xm%2\n%ifnidn %3, \"\"\n    jmp                         %3\n%else\n    jmp                      %%end\n%endif\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n%ifnidn %3, \"\"\n    jmp                         %3\n%else\n    jmp                      %%end\n%endif\n\n%%w16_8:\n    vpermq                     m%2, m%2, q0020\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 3-4 \"\"; block_num, vx, vy, jump target\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4-5 ; src/dst, shuffle, perm, tmp, [dst]\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n%if %0 == 4\n    paddw   %1, %4\n%else\n    paddw   %5, %1, %4\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4-5 ; src/dst, shuffle, perm, tmp, [dst]\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n%if %0 == 4\n    paddw   %1, %4\n%else\n    paddw   %5, %1, %4\n%endif\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3-4 ; src/dst, shuffle, tmp, [dst]\n    pshufb  xm%3, xm%1, xm%2\n%if %0 == 3\n    paddw   xm%1, xm%3\n%else\n    paddw   xm%4, xm%1, xm%3\n%endif\n%endmacro\n\n%macro BDOF_PROF_GRAD 2-3 0 ; line_no, last_line, assign (instead of add) to dst regs\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:5", "text": "%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    ; use t0, t1 as temporary buffers\n    mova                        t0, [pb_shuffle]\n\n    psignw                      m7, ndiff, m8           ; sgxdi\n    psignw                      m9, ndiff, m6           ; sgydi\n    psignw                     m10, m8, m6              ; sgxgy\n\n    pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8             6, i0, i1\n    SUM_MIN_BLOCK_W8             7, i0, i1\n    SUM_MIN_BLOCK_W8             8, i0, i1\n    SUM_MIN_BLOCK_W8             9, i0, i1\n%if (%3)\n    SUM_MIN_BLOCK_W8            10, i0, i1, 13\n%else\n    SUM_MIN_BLOCK_W8            10, i0, i1\n%endif\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8             6, i0, i1\n    SUM_MIN_BLOCK_W8             7, i0, i1\n    SUM_MIN_BLOCK_W8             8, i0, i1\n    SUM_MIN_BLOCK_W8             9, i0, i1\n%if (%3)\n    SUM_MIN_BLOCK_W8            10, i0, i1, 13\n%else\n    SUM_MIN_BLOCK_W8            10, i0, i1\n%endif\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n%if (%3)\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11, m13\n%else\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n%endif\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n%if (%3)\n    paddw                       m12, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n%else\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n%endif\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%elifn (%3)\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n%if (%3)\n    paddw                       m12, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n%else\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n%endif\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%elifn (%3)\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 3 ; dst, src, tmp\n    cvtdq2ps             %1, %2\n    ; The exponent contains log2 biased by 127 unless the value is zero.\n    ; dst is only used as shift count where the value to be shifted is\n    ; always zero if src is zero, so avoid using saturated subtraction.\n    pcmpeqd              %3, %3\n    psrld                %3, 25        ; pd_127\n    psrld                %1, 23        ; floating point exponent\n    psubd                %1, %3\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                 m%1, m%1, q3120\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq             xm8, xm%1, xm7           ; 4 (sgx2, sgy2)\n    punpckhqdq             xm9, xm%1, xm7           ; 4 (sgxdi, sgydi)\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovzxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    LOG2                   m10, m8, m7              ; 4 (log2(sgx2), log2(sgy2))\n\n    pslld                   m9, 2                   ; 4 (sgxdi, sgydi)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (4vx)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                 m%1, m%1, q3120\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq             xm8, xm%1, xm7           ; 4 (sgx2, sgy2)\n    punpckhqdq             xm9, xm%1, xm7           ; 4 (sgxdi, sgydi)\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovzxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    LOG2                   m10, m8, m7              ; 4 (log2(sgx2), log2(sgy2))\n\n    pslld                   m9, 2                   ; 4 (sgxdi, sgydi)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (4vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n%if (%1) != 1\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n%endif\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n%if (%1) != 1\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n%endif\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0, 1\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    BDOF_PROF_GRAD  1 * 4 + 1, 0\n    BDOF_PROF_GRAD  1 * 4 + 2, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 409}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4-5 ; src/dst, shuffle, perm, tmp, [dst]\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n%if %0 == 4\n    paddw   %1, %4\n%else\n    paddw   %5, %1, %4\n%endif\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3-4 ; src/dst, shuffle, tmp, [dst]\n    pshufb  %3, %1, %2\n%if %0 == 3\n    paddw   %1, %3\n%else\n    paddw   %4, %1, %3\n%endif\n%endmacro\n\n%macro BDOF_PROF_GRAD 2-3 0 ; line_no, last_line, assign (instead of add) to dst regs\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "1785542a806082cb8ff258da462c15b84b9b6552", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1785542a806082cb8ff258da462c15b84b9b6552/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:5", "text": "%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    ; use t0, t1 as temporary buffers\n    mova                        t0, [pb_shuffle]\n\n    psignw                      m7, ndiff, m8           ; sgxdi\n    psignw                      m9, ndiff, m6           ; sgydi\n    psignw                     m10, m8, m6              ; sgxgy\n\n    pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n%if (%3)\n    SUM_MIN_BLOCK_W8           m10, t0, m11, m13\n%else\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n%endif\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "1785542a806082cb8ff258da462c15b84b9b6552", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1785542a806082cb8ff258da462c15b84b9b6552/libavcodec/x86/vvc/of.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n%if (%3)\n    SUM_MIN_BLOCK_W8           m10, t0, m11, m13\n%else\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n%endif\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n%if (%3)\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11, m13\n%else\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n%endif\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n%if (%3)\n    paddw                       m12, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n%else\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n%endif\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%elifn (%3)\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "1785542a806082cb8ff258da462c15b84b9b6552", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1785542a806082cb8ff258da462c15b84b9b6552/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "je                       %%w16_8\n    movq                        %1, xm%2\n%ifnidn %3, \"\"\n    jmp                         %3\n%else\n    jmp                      %%end\n%endif\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n%ifnidn %3, \"\"\n    jmp                         %3\n%else\n    jmp                      %%end\n%endif\n\n%%w16_8:\n    vpermq                     m%2, m%2, q0020\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 3-4 \"\"; block_num, vx, vy, jump target\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:5", "text": "%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    ; use t0, t1 as temporary buffers\n    mova                        t0, [pb_shuffle]\n\n    psignw                      m7, ndiff, m8           ; sgxdi\n    psignw                      m9, ndiff, m6           ; sgydi\n    psignw                     m10, m8, m6              ; sgxgy\n\n    pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%else\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 3 ; dst, src, tmp\n    cvtdq2ps             %1, %2\n    ; The exponent contains log2 biased by 127 unless the value is zero.\n    ; dst is only used as shift count where the value to be shifted is\n    ; always zero if src is zero, so avoid using saturated subtraction.\n    pcmpeqd              %3, %3\n    psrld                %3, 25        ; pd_127\n    psrld                %1, 23        ; floating point exponent\n    psubd                %1, %3\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 3 ; dst, src, tmp\n    cvtdq2ps             %1, %2\n    ; The exponent contains log2 biased by 127 unless the value is zero.\n    ; dst is only used as shift count where the value to be shifted is\n    ; always zero if src is zero, so avoid using saturated subtraction.\n    pcmpeqd              %3, %3\n    psrld                %3, 25        ; pd_127\n    psrld                %1, 23        ; floating point exponent\n    psubd                %1, %3\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                 m%1, m%1, q3120\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq             xm8, xm%1, xm7           ; 4 (sgx2, sgy2)\n    punpckhqdq             xm9, xm%1, xm7           ; 4 (sgxdi, sgydi)\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovzxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    LOG2                   m10, m8, m7              ; 4 (log2(sgx2), log2(sgy2))\n\n    pslld                   m9, 2                   ; 4 (sgxdi, sgydi)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (4vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n%if (%1) != 1\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n%endif\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    BDOF_PROF_GRAD  1 * 4 + 1, 0\n    BDOF_PROF_GRAD  1 * 4 + 2, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    BDOF_PROF_GRAD  1 * 4 + 1, 0\n    BDOF_PROF_GRAD  1 * 4 + 2, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "06fa26d2e8ac587831ff5e474dba4177f600ba9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/06fa26d2e8ac587831ff5e474dba4177f600ba9c/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 391}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "002b3bc1b3729f5044ae64033eeb9d80406d4d1a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/002b3bc1b3729f5044ae64033eeb9d80406d4d1a/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "002b3bc1b3729f5044ae64033eeb9d80406d4d1a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/002b3bc1b3729f5044ae64033eeb9d80406d4d1a/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "002b3bc1b3729f5044ae64033eeb9d80406d4d1a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/002b3bc1b3729f5044ae64033eeb9d80406d4d1a/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 386}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 3 ; dst, src, tmp\n    cvtdq2ps             %1, %2\n    ; The exponent contains log2 biased by 127 unless the value is zero.\n    ; dst is only used as shift count where the value to be shifted is\n    ; always zero if src is zero, so avoid using saturated subtraction.\n    pcmpeqd              %3, %3\n    psrld                %3, 25        ; pd_127\n    psrld                %1, 23        ; floating point exponent\n    psubd                %1, %3\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq             xm8, xm%1, xm7           ; 4 (sgx2, sgy2)\n    punpckhqdq             xm9, xm%1, xm7           ; 4 (sgxdi, sgydi)\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovzxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    LOG2                   m10, m8, m7              ; 4 (log2(sgx2), log2(sgy2))\n\n    pslld                   m9, 2                   ; 4 (sgxdi, sgydi)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (4vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "ada58bd0e22611d1f6a39af5d9237ef3d8e7d912", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada58bd0e22611d1f6a39af5d9237ef3d8e7d912/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "pshufhw                m%1, m%1, q0000          ; 4 (4vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "ada58bd0e22611d1f6a39af5d9237ef3d8e7d912", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada58bd0e22611d1f6a39af5d9237ef3d8e7d912/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "ada58bd0e22611d1f6a39af5d9237ef3d8e7d912", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada58bd0e22611d1f6a39af5d9237ef3d8e7d912/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "ada58bd0e22611d1f6a39af5d9237ef3d8e7d912", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ada58bd0e22611d1f6a39af5d9237ef3d8e7d912/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 387}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 3 ; dst, src, tmp\n    cvtdq2ps             %1, %2\n    ; The exponent contains log2 biased by 127 unless the value is zero.\n    ; dst is only used as shift count where the value to be shifted is\n    ; always zero if src is zero, so avoid using saturated subtraction.\n    pcmpeqd              %3, %3\n    psrld                %3, 25        ; pd_127\n    psrld                %1, 23        ; floating point exponent\n    psubd                %1, %3\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovzxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    LOG2                   m10, m8, m7              ; 4 (log2(sgx2), log2(sgy2))\n\n    pslld                   m9, 2                   ; 4 (sgxdi, sgydi)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (4vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "ad34eb2ae6c54f0dcbb707e77f52bde455a82c2e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ad34eb2ae6c54f0dcbb707e77f52bde455a82c2e/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 3 ; dst, src, tmp\n    cvtdq2ps             %1, %2\n    ; The exponent contains log2 biased by 127 unless the value is zero.\n    ; dst is only used as shift count where the value to be shifted is\n    ; always zero if src is zero, so avoid using saturated subtraction.\n    pcmpeqd              %3, %3\n    psrld                %3, 25        ; pd_127\n    psrld                %1, 23        ; floating point exponent\n    psubd                %1, %3\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovzxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    LOG2                   m10, m8, m7              ; 4 (log2(sgx2), log2(sgy2))\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2570f5d3072cfe6795b1bdfd480625bc27dd5f6e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2570f5d3072cfe6795b1bdfd480625bc27dd5f6e/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2570f5d3072cfe6795b1bdfd480625bc27dd5f6e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2570f5d3072cfe6795b1bdfd480625bc27dd5f6e/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%else\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d\n%endif\n%endmacro\n\n%macro LOG2 2 ; dst, src\n    LOG2                 %1, %2, 0\n    LOG2                 %1, %2, 1\n    LOG2                 %1, %2, 2\n    LOG2                 %1, %2, 3\n    LOG2                 %1, %2, 4\n    LOG2                 %1, %2, 5\n    LOG2                 %1, %2, 6\n    LOG2                 %1, %2, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    vpsravd                m11, m9, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "cglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/03b83f8feb1e8fc0d815ac6f0a31a1a63b5a2439/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 407}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d\n%endif\n%endmacro\n\n%macro LOG2 2 ; dst, src\n    LOG2                 %1, %2, 0\n    LOG2                 %1, %2, 1\n    LOG2                 %1, %2, 2\n    LOG2                 %1, %2, 3\n    LOG2                 %1, %2, 4\n    LOG2                 %1, %2, 5\n    LOG2                 %1, %2, 6\n    LOG2                 %1, %2, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2159e40ab31856613266d69d7d2ba579f0df407d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2159e40ab31856613266d69d7d2ba579f0df407d/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2159e40ab31856613266d69d7d2ba579f0df407d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2159e40ab31856613266d69d7d2ba579f0df407d/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n%if UNIX64\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13\n%else\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, .end\n%endif\n\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2159e40ab31856613266d69d7d2ba579f0df407d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2159e40ab31856613266d69d7d2ba579f0df407d/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n%if UNIX64\n    RET\n%else\n    jmp                   .end\n%endif\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2159e40ab31856613266d69d7d2ba579f0df407d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2159e40ab31856613266d69d7d2ba579f0df407d/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 410}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:11", "text": ".end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2159e40ab31856613266d69d7d2ba579f0df407d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2159e40ab31856613266d69d7d2ba579f0df407d/libavcodec/x86/vvc/of.asm", "line_start": 401, "line_end": 410}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n\n    packuswb                   m%2, m%2\n\n    cmp                         wd, 16\n    je                       %%w16_8\n    movq                        %1, xm%2\n    jmp                      %%end\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n    jmp                      %%end\n\n%%w16_8:\n    vpermq                     m%2, m%2, q0020\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "je                       %%w16_8\n    movq                        %1, xm%2\n    jmp                      %%end\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n    jmp                      %%end\n\n%%w16_8:\n    vpermq                     m%2, m%2, q0020\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 4 ; block_num, vx, vy, bd\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    ; use t0, t1 as temporary buffers\n    mova                        t0, [pb_shuffle]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:5", "text": "; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    ; use t0, t1 as temporary buffers\n    mova                        t0, [pb_shuffle]\n\n    psignw                      m7, ndiff, m8           ; sgxdi\n    psignw                      m9, ndiff, m6           ; sgydi\n    psignw                     m10, m8, m6              ; sgxgy\n\n    pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%else\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d\n%endif\n%endmacro\n\n%macro LOG2 2 ; dst, src\n    LOG2                 %1, %2, 0\n    LOG2                 %1, %2, 1\n    LOG2                 %1, %2, 2\n    LOG2                 %1, %2, 3\n    LOG2                 %1, %2, 4\n    LOG2                 %1, %2, 5\n    LOG2                 %1, %2, 6\n    LOG2                 %1, %2, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, bd\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, bd\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n%macro BDOF_WRAPPER 2 ; bpp, is_nonadjacent\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, const int16_t *src0,\n;                          const int16_t *src1, const int w, const int h)\ncglobal vvc_apply_bdof_%1\n    ; r6 is not used for parameter passing and is volatile both on UNIX64\n    ; and Win64, so it can be freely used\n    mov                    r6d, (1<<%1)-1\n%if %2\n    jmp        vvc_apply_bdof_ %+ cpuname\n%endif\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "BDOF_WRAPPER 12, 1\n    BDOF_WRAPPER  8, 1\n    BDOF_WRAPPER 10, 0\n\nvvc_apply_bdof_ %+ cpuname:\n; the prologue on Win64 is big (10 xmm regs need saving), so use PROLOGUE\n; to avoid duplicating it.\nPROLOGUE 6, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "2a93d099689be86a2b5f942244e3683e995cfd73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a93d099689be86a2b5f942244e3683e995cfd73/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 393}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n\n    packuswb                   m%2, m%2\n    vpermq                     m%2, m%2, q0020\n\n    cmp                         wd, 16\n    je                       %%w16_8\n    movq                        %1, xm%2\n    jmp                      %%end\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n    jmp                      %%end\n\n%%w16_8:\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "9fe9fd95b6e87b8d23505f3e52337547cdfe4460", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9fe9fd95b6e87b8d23505f3e52337547cdfe4460/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "cmp                         wd, 16\n    je                       %%w16_8\n    movq                        %1, xm%2\n    jmp                      %%end\n\n%%save_16bpc:\n    CLIPW                      m%2, m9, m10\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n    jmp                      %%end\n\n%%w16_8:\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 4 ; block_num, vx, vy, bd\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "9fe9fd95b6e87b8d23505f3e52337547cdfe4460", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9fe9fd95b6e87b8d23505f3e52337547cdfe4460/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n    CLIPW                         %1, m9, m10\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n\n    packuswb                   m%2, m%2\n    vpermq                     m%2, m%2, q0020\n\n    cmp                         wd, 16\n    je                       %%w16_8\n    movq                        %1, xm%2\n    jmp                      %%end\n\n%%save_16bpc:\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n    jmp                      %%end\n\n%%w16_8:\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "83694749ad0c0510907c961422b525dbd2fb731f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83694749ad0c0510907c961422b525dbd2fb731f/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "cmp                         wd, 16\n    je                       %%w16_8\n    movq                        %1, xm%2\n    jmp                      %%end\n\n%%save_16bpc:\n    cmp                         wd, 16\n    jne                       %%w8_16\n    movu                        %1, m%2\n    jmp                      %%end\n\n%%w16_8:\n%%w8_16:\n    movu                        %1, xm%2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 4 ; block_num, vx, vy, bd\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "83694749ad0c0510907c961422b525dbd2fb731f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83694749ad0c0510907c961422b525dbd2fb731f/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, bd\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "d6ed5d6e3d1def6d918160f4a236030a4e7ac30e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6ed5d6e3d1def6d918160f4a236030a4e7ac30e/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "d6ed5d6e3d1def6d918160f4a236030a4e7ac30e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6ed5d6e3d1def6d918160f4a236030a4e7ac30e/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 381}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n    CLIPW                         %1, m9, m10\n%endmacro\n\n%macro SAVE_8BPC 3 ; dst, src, jmp dst\n    packuswb                   m%2, m%2\n    vpermq                     m%2, m%2, q0020\n\n    cmp                         wd, 16\n    je                       %%w16\n    movq                        %1, xm%2\n    jmp                         %3\n%%w16:\n    movu                        %1, xm%2\n    jmp                         %3\n%endmacro\n\n%macro SAVE_16BPC 2 ; dst, src\n    cmp                         wd, 16\n    je                       %%w16\n    movu                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, m%2\n%%wend:\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "e7e19fcb1bd7c07af90d50c556e560c6a087cf45", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7e19fcb1bd7c07af90d50c556e560c6a087cf45/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "movq                        %1, xm%2\n    jmp                         %3\n%%w16:\n    movu                        %1, xm%2\n    jmp                         %3\n%endmacro\n\n%macro SAVE_16BPC 2 ; dst, src\n    cmp                         wd, 16\n    je                       %%w16\n    movu                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, m%2\n%%wend:\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n    SAVE_8BPC                   %1, %2, %%end\n%%save_16bpc:\n    SAVE_16BPC                   %1, %2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 4 ; block_num, vx, vy, bd\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "e7e19fcb1bd7c07af90d50c556e560c6a087cf45", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7e19fcb1bd7c07af90d50c556e560c6a087cf45/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "e7e19fcb1bd7c07af90d50c556e560c6a087cf45", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7e19fcb1bd7c07af90d50c556e560c6a087cf45/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, bd\n%else\n    mova                   m14, m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "e7e19fcb1bd7c07af90d50c556e560c6a087cf45", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7e19fcb1bd7c07af90d50c556e560c6a087cf45/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, bd\n%else\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endif\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "e7e19fcb1bd7c07af90d50c556e560c6a087cf45", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7e19fcb1bd7c07af90d50c556e560c6a087cf45/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "e7e19fcb1bd7c07af90d50c556e560c6a087cf45", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e7e19fcb1bd7c07af90d50c556e560c6a087cf45/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 389}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n    CLIPW                         %1, m9, m10\n%endmacro\n\n%macro SAVE_8BPC 2 ; dst, src\n    packuswb                   m%2, m%2\n    vpermq                     m%2, m%2, q0020\n\n    cmp                         wd, 16\n    je                       %%w16\n    movq                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, xm%2\n%%wend:\n%endmacro\n\n%macro SAVE_16BPC 2 ; dst, src\n    cmp                         wd, 16\n    je                       %%w16\n    movu                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, m%2\n%%wend:\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "movq                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, xm%2\n%%wend:\n%endmacro\n\n%macro SAVE_16BPC 2 ; dst, src\n    cmp                         wd, 16\n    je                       %%w16\n    movu                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, m%2\n%%wend:\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n    SAVE_8BPC                   %1, %2\n    jmp                      %%end\n%%save_16bpc:\n    SAVE_16BPC                   %1, %2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 4 ; block_num, vx, vy, bd\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:5", "text": "%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    ; use t0, t1 as temporary buffers\n    mova                        t0, [pb_shuffle]\n\n    psignw                      m7, ndiff, m8           ; sgxdi\n    psignw                      m9, ndiff, m6           ; sgydi\n    psignw                     m10, m8, m6              ; sgxgy\n\n    pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    cmp                         wd, 16\n\n    je                       %%w16\n    SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0\n    ; pad for top and directly output to m12, m13\n    paddw                      m12, m8,  m8\n    paddw                      m13, m10, m10\n%else\n%if (%2)\n    ; pad for bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endif\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d\n%endif\n%endmacro\n\n%macro LOG2 2 ; dst, src\n    LOG2                 %1, %2, 0\n    LOG2                 %1, %2, 1\n    LOG2                 %1, %2, 2\n    LOG2                 %1, %2, 3\n    LOG2                 %1, %2, 4\n    LOG2                 %1, %2, 5\n    LOG2                 %1, %2, 6\n    LOG2                 %1, %2, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n%if (%2)\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n    BDOF_VX_VY              12, 13\n    APPLY_BDOF_MIN_BLOCK    %1, m12, m13, bd\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "dee361a5bfe4869c2c3b29c50c97b134e3031880", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/dee361a5bfe4869c2c3b29c50c97b134e3031880/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "c6205355b452590fbb3037646561a5ce32a97862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c6205355b452590fbb3037646561a5ce32a97862/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n%endif\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "c6205355b452590fbb3037646561a5ce32a97862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c6205355b452590fbb3037646561a5ce32a97862/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "c6205355b452590fbb3037646561a5ce32a97862", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c6205355b452590fbb3037646561a5ce32a97862/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 386}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0 || (%2)\n    ; pad for top and bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "f177672df2772e2325f7b6f842967ee0bb945220", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f177672df2772e2325f7b6f842967ee0bb945220/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 3 ; dst, src, offset\n    pextrw              tmp0d, xm%2,  %3\n    bsr                 tmp0d, tmp0d\n%if %3 != 0\n    pinsrw               xm%1, tmp0d, %3\n%else\n    movd                 xm%1, tmp0d\n%endif\n%endmacro\n\n%macro LOG2 2 ; dst, src\n    LOG2                 %1, %2, 0\n    LOG2                 %1, %2, 1\n    LOG2                 %1, %2, 2\n    LOG2                 %1, %2, 3\n    LOG2                 %1, %2, 4\n    LOG2                 %1, %2, 5\n    LOG2                 %1, %2, 6\n    LOG2                 %1, %2, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "f177672df2772e2325f7b6f842967ee0bb945220", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f177672df2772e2325f7b6f842967ee0bb945220/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "f177672df2772e2325f7b6f842967ee0bb945220", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f177672df2772e2325f7b6f842967ee0bb945220/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n%endif\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "f177672df2772e2325f7b6f842967ee0bb945220", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f177672df2772e2325f7b6f842967ee0bb945220/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "f177672df2772e2325f7b6f842967ee0bb945220", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f177672df2772e2325f7b6f842967ee0bb945220/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 383}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    LOG2                    10, 8                   ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "af3f8f5bd2ed0d55cf8614064d722b533eef77e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af3f8f5bd2ed0d55cf8614064d722b533eef77e9/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n%endif\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "af3f8f5bd2ed0d55cf8614064d722b533eef77e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af3f8f5bd2ed0d55cf8614064d722b533eef77e9/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:10", "text": "sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "af3f8f5bd2ed0d55cf8614064d722b533eef77e9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af3f8f5bd2ed0d55cf8614064d722b533eef77e9/libavcodec/x86/vvc/of.asm", "line_start": 361, "line_end": 387}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0 || (%2)\n    ; pad for top and bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 2 ; dst/src, offset\n    pextrw              tmp0d, xm%1,  %2\n    bsr                 tmp0d, tmp0d\n    pinsrw               xm%1, tmp0d, %2\n%endmacro\n\n%macro LOG2 1 ; dst/src", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 2 ; dst/src, offset\n    pextrw              tmp0d, xm%1,  %2\n    bsr                 tmp0d, tmp0d\n    pinsrw               xm%1, tmp0d, %2\n%endmacro\n\n%macro LOG2 1 ; dst/src\n    LOG2                 %1, 0\n    LOG2                 %1, 1\n    LOG2                 %1, 2\n    LOG2                 %1, 3\n    LOG2                 %1, 4\n    LOG2                 %1, 5\n    LOG2                 %1, 6\n    LOG2                 %1, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    mova                   m10, m8\n    LOG2                    10                      ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "LOG2                    10                      ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n%endif\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro\n\nVVC_OF_AVX2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/19dc7b79a4e7d2f9804d48369dbb132a39e1ac5d/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:1", "text": "; /*\n; * Provide AVX2 luma optical flow functions for VVC decoding\n; * Copyright (c) 2024 Nuo Mi\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE             128\n%define SRC_STRIDE              (MAX_PB_SIZE * 2)\n%define SRC_PS                  2                                                       ; source pixel size, sizeof(int16_t)\n%define BDOF_STACK_SIZE         10                                                      ; (4 + 1) * 2, 4 lines + the first line, *2 for h and v\n%define bdof_stack_offset(line) ((line) * 2 % BDOF_STACK_SIZE * mmsize)\n%define SHIFT                   6\n%define SHIFT2                  4\n\nSECTION_RODATA 32\npd_15                   times 8 dd 15\npd_m15                  times 8 dd -15\n\npb_shuffle_w8  times 2 db   0, 1, 0xff, 0xff, 8, 9, 0xff, 0xff, 6, 7, 0xff, 0xff, 14, 15, 0xff, 0xff\npb_shuffle_w16 times 2 db   0, 1, 0xff, 0xff, 6, 7, 0xff, 0xff, 8, 9, 0xff, 0xff, 14, 15, 0xff, 0xff\npd_perm_w16            dd   0, 2, 1, 4, 3, 6, 5, 7\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\n\nSECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:2", "text": "SECTION .text\n\nINIT_YMM avx2\n\n; dst = (src0 >> shift) - (src1 >> shift)\n%macro DIFF 5 ; dst, src0, src1, shift, tmp\n    psraw   %1, %2, %4\n    psraw   %5, %3, %4\n    psubw   %1, %5\n%endmacro\n\n%macro LOAD_GRAD_H 4 ; dst, src, off, tmp\n    movu    %1, [%2 + %3 + 2 * SRC_PS]\n    movu    %4, [%2 + %3]\n\n    DIFF    %1, %1, %4, SHIFT, %4\n%endmacro\n\n%macro SUM_GRAD 2 ;(dst/grad0, grad1)\n    paddw  %1, %2\n    psraw  %1, 1    ; shift3\n%endmacro\n\n%macro APPLY_BDOF_MIN_BLOCK_LINE 5 ; dst, vx, vy, tmp, line_num\n%define off bdof_stack_offset(%5)\n    pmullw                        %1, %2, [rsp + off + 0 * mmsize]               ; vx * (gradient_h[0] - gradient_h[1])\n    pmullw                        %4, %3, [rsp + off + 1 * mmsize]               ; vy * (gradient_v[0] - gradient_v[1])\n    paddw                         %1, [src0q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddw                         %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS]\n    paddsw                        %1, %4                                         ; src0[x] + src1[x] + bdof_offset\n    pmulhrsw                      %1, m11\n    CLIPW                         %1, m9, m10\n%endmacro\n\n%macro SAVE_8BPC 2 ; dst, src\n    packuswb                   m%2, m%2\n    vpermq                     m%2, m%2, q0020\n\n    cmp                         wd, 16\n    je                       %%w16\n    movq                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, xm%2\n%%wend:\n%endmacro\n\n%macro SAVE_16BPC 2 ; dst, src\n    cmp                         wd, 16\n    je                       %%w16\n    movu                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, m%2\n%%wend:\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:3", "text": "je                       %%w16\n    movq                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, xm%2\n%%wend:\n%endmacro\n\n%macro SAVE_16BPC 2 ; dst, src\n    cmp                         wd, 16\n    je                       %%w16\n    movu                        %1, xm%2\n    jmp                     %%wend\n%%w16:\n    movu                        %1, m%2\n%%wend:\n%endmacro\n\n%macro SAVE 2 ; dst, src\n    cmp                 pixel_maxd, (1 << 8) - 1\n    jne               %%save_16bpc\n    SAVE_8BPC                   %1, %2\n    jmp                      %%end\n%%save_16bpc:\n    SAVE_16BPC                   %1, %2\n%%end:\n%endmacro\n\n; [rsp + even * mmsize] are gradient_h[0] - gradient_h[1]\n; [rsp +  odd * mmsize] are gradient_v[0] - gradient_v[1]\n%macro APPLY_BDOF_MIN_BLOCK 4 ; block_num, vx, vy, bd\n    pxor                          m9, m9\n\n    movd                        xm10, pixel_maxd\n    vpbroadcastw                 m10, xm10\n\n    lea                        tmp0d, [pixel_maxd + 1]\n    movd                        xm11, tmp0d\n    VPBROADCASTW                 m11, xm11                 ;shift_4 for pmulhrsw\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:4", "text": "APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 0\n    SAVE                        [dstq + 0 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 1\n    SAVE                        [dstq + 1 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 2\n    SAVE                        [dstq + 2 * dsq], 6\n\n    APPLY_BDOF_MIN_BLOCK_LINE    m6, %2, %3, m7, (%1) * 4 + 3\n    SAVE                        [dstq + ds3q], 6\n%endmacro\n\n%macro SUM_MIN_BLOCK_W16 4 ; src/dst, shuffle, perm, tmp\n    pshufb  %4, %1, %2\n    vpermd  %4, %3, %4\n    paddw   %1, %4\n%endmacro\n\n%macro SUM_MIN_BLOCK_W8 3 ; src/dst, shuffle, tmp\n    pshufb  %3, %1, %2\n    paddw   %1, %3\n%endmacro\n\n%macro BDOF_PROF_GRAD 2 ; line_no, last_line\n%assign i0 (%1 + 0) % 3\n%assign j0 (%1 + 1) % 3\n%assign k0 (%1 + 2) % 3\n%assign i1 3 + (%1 + 0) % 3\n%assign j1 3 + (%1 + 1) % 3\n%assign k1 3 + (%1 + 2) % 3\n\n; we cached src0 in m0 to m2\n%define t0 m %+ i0\n%define c0 m %+ j0\n%define b0 m %+ k0\n\n; we cached src1 in m3 to m5\n%define t1 m %+ i1\n%define c1 m %+ j1\n%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:5", "text": "%define b1 m %+ k1\n%define ndiff t1\n%define off bdof_stack_offset(%1)\n\n    movu                        b0, [src0q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n    movu                        b1, [src1q + (%1 + 2) * SRC_STRIDE + SRC_PS]\n\n    ; gradient_v[0], gradient_v[1]\n    DIFF                        m6,  b0,  t0, SHIFT, t0\n    DIFF                        m7,  b1,  t1, SHIFT, t1\n\n    ; save gradient_v[0] - gradient_v[1]\n    psubw                      m10, m6, m7\n    mova      [rsp + off + mmsize], m10\n\n    ; gradient_h[0], gradient_h[1]\n    LOAD_GRAD_H                 m8, src0q, (%1 + 1) * SRC_STRIDE, t0\n    LOAD_GRAD_H                 m9, src1q, (%1 + 1) * SRC_STRIDE, t1\n\n    ; save gradient_h[0] - gradient_h[1]\n    psubw                      m11, m8, m9\n    mova               [rsp + off], m11\n\n    SUM_GRAD                    m8, m9                  ; temph\n    SUM_GRAD                    m6, m7                  ; tempv\n\n    DIFF                     ndiff, c1, c0, SHIFT2, t0  ; -diff\n\n    psignw                      m7, ndiff, m8           ; sgxdi\n    psignw                      m9, ndiff, m6           ; sgydi\n    psignw                     m10, m8, m6              ; sgxgy\n\n    pabsw                       m6, m6                  ; sgy2\n    pabsw                       m8, m8                  ; sgx2\n\n    ; use t0, t1 as temporary buffers\n    cmp                         wd, 16\n\n    je                       %%w16\n    mova                        t0, [pb_shuffle_w8]\n    SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t0, [pb_shuffle_w16]\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:6", "text": "SUM_MIN_BLOCK_W8            m6, t0, m11\n    SUM_MIN_BLOCK_W8            m7, t0, m11\n    SUM_MIN_BLOCK_W8            m8, t0, m11\n    SUM_MIN_BLOCK_W8            m9, t0, m11\n    SUM_MIN_BLOCK_W8           m10, t0, m11\n    jmp                     %%wend\n\n%%w16:\n    mova                        t0, [pb_shuffle_w16]\n    mova                        t1, [pd_perm_w16]\n    SUM_MIN_BLOCK_W16           m6, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m7, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m8, t0, t1, m11\n    SUM_MIN_BLOCK_W16           m9, t0, t1, m11\n    SUM_MIN_BLOCK_W16          m10, t0, t1, m11\n\n%%wend:\n    vpblendd                    m11, m8, m7, 10101010b\n    vpblendd                     m7, m8, m7, 01010101b\n    pshufd                       m7, m7, q2301\n    paddw                        m8, m7, m11                ;4 x (2sgx2, 2sgxdi)\n\n    vpblendd                    m11, m6, m9, 10101010b\n    vpblendd                     m9, m6, m9, 01010101b\n    pshufd                       m9, m9, q2301\n    paddw                        m6, m9, m11                ;4 x (2sgy2, 2sgydi)\n\n    vpblendw                    m11, m8, m6, 10101010b\n    vpblendw                     m6, m8, m6, 01010101b\n    pshuflw                      m6, m6, q2301\n    pshufhw                      m6, m6, q2301\n    paddw                        m8, m6, m11                ; 4 x (4sgx2, 4sgy2, 4sgxdi, 4sgydi)\n\n%if (%1) == 0 || (%2)\n    ; pad for top and bottom\n    paddw                       m8, m8\n    paddw                      m10, m10\n%endif\n\n    paddw                      m12, m8\n    paddw                      m13, m10\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 2 ; dst/src, offset\n    pextrw              tmp0d, xm%1,  %2\n    bsr                 tmp0d, tmp0d\n    pinsrw               xm%1, tmp0d, %2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:7", "text": "paddw                      m13, m10\n%endmacro\n\n\n%macro LOG2 5 ; log_sum, src, cmp, shift, tmp\n    pcmpgtw               %5, %2, %3\n    pandd                 %5, %4\n    paddw                 %1, %5\n\n    psrlw                 %2, %5\n    psrlw                 %4, 1\n    psrlw                 %3, %4\n%endmacro\n\n%macro LOG2 2 ; dst/src, offset\n    pextrw              tmp0d, xm%1,  %2\n    bsr                 tmp0d, tmp0d\n    pinsrw               xm%1, tmp0d, %2\n%endmacro\n\n%macro LOG2 1 ; dst/src\n    LOG2                 %1, 0\n    LOG2                 %1, 1\n    LOG2                 %1, 2\n    LOG2                 %1, 3\n    LOG2                 %1, 4\n    LOG2                 %1, 5\n    LOG2                 %1, 6\n    LOG2                 %1, 7\n%endmacro\n\n; %1: 4 (sgx2, sgy2, sgxdi, gydi)\n; %2: 4 (4sgxgy)\n%macro BDOF_VX_VY 2       ;\n    pshufd                  m6, m%1, q0032\n    punpckldq              m%1, m6\n    vextracti128           xm7, m%1, 1\n\n    punpcklqdq              m8, m%1, m7             ; 4 (sgx2, sgy2)\n    punpckhqdq              m9, m%1, m7             ; 4 (sgxdi, sgydi)\n    mova                   m10, m8\n    LOG2                    10                      ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:8", "text": "mova                   m10, m8\n    LOG2                    10                      ; 4 (log2(sgx2), log2(sgy2))\n\n    ; Promote to dword since vpsrlvw is AVX-512 only\n    pmovsxwd                m8, xm8\n    pmovsxwd                m9, xm9\n    pmovsxwd               m10, xm10\n\n    pslld                   m9, 2                   ; 4 (log2(sgx2) << 2, log2(sgy2) << 2)\n\n    psignd                 m11, m9, m8\n    vpsravd                m11, m11, m10\n    CLIPD                  m11, [pd_m15], [pd_15]   ; 4 (vx, junk)\n\n    pshuflw                m%1, m11, q0000\n    pshufhw                m%1, m%1, q0000          ; 4 (2junk, 2vx)\n\n    psllq                   m6, m%2, 32\n    paddw                  m%2, m6\n\n    pmaddwd                m%2, m%1                 ; 4 (junk, vx * sgxgy)\n    psrad                  m%2, 1\n    psubd                   m9, m%2                 ; 4 (junk, (sgydi << 2) - (vx * sgxgy >> 1))\n\n    psignd                  m9, m8\n    vpsravd                m%2, m9, m10\n    CLIPD                  m%2, [pd_m15], [pd_15]   ; 4 (junk, vy)\n\n    pshuflw                m%2, m%2, q2222\n    pshufhw                m%2, m%2, q2222          ; 4 (4vy)\n%endmacro\n\n\n%macro BDOF_MINI_BLOCKS 2 ; (block_num, last_block)\n\n%if (%1) == 0\n    movu                    m0, [src0q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m1, [src0q + 1 * SRC_STRIDE + SRC_PS]\n    movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]\n    movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/of.asm:9", "text": "pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n%endif\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 9, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/of.asm", "license": "LGPL-2.1", "commit": "8e82416434962b2c68a7bd794d76e998f1990f68", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8e82416434962b2c68a7bd794d76e998f1990f68/libavcodec/x86/vvc/of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sad.asm:1", "text": "; /*\n; * Provide SIMD DMVR SAD functions for VVC decoding\n; *\n; * Copyright (c) 2024 Stone Chen\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n%define MAX_PB_SIZE 128\n%define ROWS 2\n\nSECTION_RODATA\n\npw_1: times 2 dw 1\n\n; DMVR SAD is only calculated on even rows to reduce complexity\n; Additionally the only valid sizes are 8x16, 16x8, and 16x16\nSECTION .text\n\n%macro MIN_MAX_SAD 3\n    pminuw           %3, %2, %1\n    pmaxuw           %1, %2, %1\n    psubusw          %1, %1, %3\n%endmacro\n\n%macro HORIZ_ADD 3  ; xm0, xm1, m1\n    vextracti128     %1, %3, q0001  ;        3        2      1          0\n    paddd            %1, %2         ; xm0 (7 + 3) (6 + 2) (5 + 1)   (4 + 0)\n    pshufd           %2, %1, q0032  ; xm1    -      -     (7 + 3)   (6 + 2)\n    paddd            %1, %1, %2     ; xm0    _      _     (5 1 7 3) (4 0 6 2)\n    pshufd           %2, %1, q0001  ; xm1    _      _     (5 1 7 3) (5 1 7 3)\n    paddd            %1, %1, %2     ;                               (01234567)\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\n\ncglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_idx\n    movsxdifnidn    dxq, dxd\n    movsxdifnidn    dyq, dyd\n\n    sub             dxq, 2\n    sub             dyq, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sad.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sad.asm:2", "text": "%macro HORIZ_ADD 3  ; xm0, xm1, m1\n    vextracti128     %1, %3, q0001  ;        3        2      1          0\n    paddd            %1, %2         ; xm0 (7 + 3) (6 + 2) (5 + 1)   (4 + 0)\n    pshufd           %2, %1, q0032  ; xm1    -      -     (7 + 3)   (6 + 2)\n    paddd            %1, %1, %2     ; xm0    _      _     (5 1 7 3) (4 0 6 2)\n    pshufd           %2, %1, q0001  ; xm1    _      _     (5 1 7 3) (5 1 7 3)\n    paddd            %1, %1, %2     ;                               (01234567)\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\n\ncglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_idx\n    movsxdifnidn    dxq, dxd\n    movsxdifnidn    dyq, dyd\n\n    sub             dxq, 2\n    sub             dyq, 2\n\n    mov             off1q, 2\n    mov             off2q, 2\n\n    add             off1q, dyq\n    sub             off2q, dyq\n\n    shl             off1q, 7\n    shl             off2q, 7\n\n    add             off1q, dxq\n    sub             off2q, dxq\n\n    lea             src1q, [src1q + off1q * 2 + 2 * 2]\n    lea             src2q, [src2q + off2q * 2 + 2 * 2]\n\n    pxor               m3, m3\n    vpbroadcastd       m4, [pw_1]\n\n    cmp          block_wd, 16\n    je         vvc_sad_16\n\n    vvc_sad_8:\n        .loop_height:\n        movu              xm0, [src1q]\n        vinserti128        m0, m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1\n        movu              xm1, [src2q]\n        vinserti128        m1, m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1\n\n        MIN_MAX_SAD        m1, m0, m2\n        pmaddwd            m1, m4\n        paddd              m3, m1\n\n        add         src1q, 2 * MAX_PB_SIZE * ROWS * 2\n        add         src2q, 2 * MAX_PB_SIZE * ROWS * 2\n\n        sub      block_hd, 4\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sad.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sad.asm:3", "text": "je         vvc_sad_16\n\n    vvc_sad_8:\n        .loop_height:\n        movu              xm0, [src1q]\n        vinserti128        m0, m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1\n        movu              xm1, [src2q]\n        vinserti128        m1, m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1\n\n        MIN_MAX_SAD        m1, m0, m2\n        pmaddwd            m1, m4\n        paddd              m3, m1\n\n        add         src1q, 2 * MAX_PB_SIZE * ROWS * 2\n        add         src2q, 2 * MAX_PB_SIZE * ROWS * 2\n\n        sub      block_hd, 4\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n    vvc_sad_16:\n        sar      block_wd, 4\n        .loop_height:\n        mov         off1q, src1q\n        mov         off2q, src2q\n        mov      row_idxd, block_wd\n\n        .loop_width:\n            movu               m0, [src1q]\n            movu               m1, [src2q]\n            MIN_MAX_SAD        m1, m0, m2\n            pmaddwd            m1, m4\n            paddd              m3, m1\n\n            add             src1q, 32\n            add             src2q, 32\n            dec          row_idxd\n            jg        .loop_width\n\n        lea         src1q, [off1q + ROWS * MAX_PB_SIZE * 2]\n        lea         src2q, [off2q + ROWS * MAX_PB_SIZE * 2]\n\n        sub      block_hd, 2\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sad.asm", "line_start": 81, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sad.asm:4", "text": "jg        .loop_width\n\n        lea         src1q, [off1q + ROWS * MAX_PB_SIZE * 2]\n        lea         src2q, [off2q + ROWS * MAX_PB_SIZE * 2]\n\n        sub      block_hd, 2\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sad.asm", "line_start": 121, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for VVC 8bit decoding\n;*\n;* Copyright (c) 2024 Shaun Loo\n;* Copyright (c) 2024 Nuo Mi\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define MAX_PB_SIZE  128\n%include \"libavcodec/x86/h26x/h2656_sao.asm\"\n\n%macro VVC_SAO_BAND_FILTER 2\n    H2656_SAO_BAND_FILTER vvc, %1, %2\n%endmacro\n\n%macro VVC_SAO_BAND_FILTER_FUNCS 0\nVVC_SAO_BAND_FILTER   8, 0\nVVC_SAO_BAND_FILTER  16, 1\nVVC_SAO_BAND_FILTER  32, 2\nVVC_SAO_BAND_FILTER  48, 2\nVVC_SAO_BAND_FILTER  64, 4\nVVC_SAO_BAND_FILTER  80, 4\nVVC_SAO_BAND_FILTER  96, 6\nVVC_SAO_BAND_FILTER 112, 6\nVVC_SAO_BAND_FILTER 128, 8\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nVVC_SAO_BAND_FILTER   8, 0\nVVC_SAO_BAND_FILTER  16, 1\nINIT_YMM avx2\nVVC_SAO_BAND_FILTER  32, 1\nVVC_SAO_BAND_FILTER  48, 1\nVVC_SAO_BAND_FILTER  64, 2\nVVC_SAO_BAND_FILTER  80, 2\nVVC_SAO_BAND_FILTER  96, 3\nVVC_SAO_BAND_FILTER 112, 3\nVVC_SAO_BAND_FILTER 128, 4\n%endif\n\n%macro VVC_SAO_EDGE_FILTER 2-3\n    H2656_SAO_EDGE_FILTER vvc, %{1:-1}\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sao.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao.asm:2", "text": "%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nVVC_SAO_BAND_FILTER   8, 0\nVVC_SAO_BAND_FILTER  16, 1\nINIT_YMM avx2\nVVC_SAO_BAND_FILTER  32, 1\nVVC_SAO_BAND_FILTER  48, 1\nVVC_SAO_BAND_FILTER  64, 2\nVVC_SAO_BAND_FILTER  80, 2\nVVC_SAO_BAND_FILTER  96, 3\nVVC_SAO_BAND_FILTER 112, 3\nVVC_SAO_BAND_FILTER 128, 4\n%endif\n\n%macro VVC_SAO_EDGE_FILTER 2-3\n    H2656_SAO_EDGE_FILTER vvc, %{1:-1}\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_XMM avx2\nVVC_SAO_EDGE_FILTER  8, 0\nVVC_SAO_EDGE_FILTER 16, 1, a\nINIT_YMM avx2\nVVC_SAO_EDGE_FILTER  32, 1, a\nVVC_SAO_EDGE_FILTER  48, 1, u\nVVC_SAO_EDGE_FILTER  64, 2, a\nVVC_SAO_EDGE_FILTER  80, 2, u\nVVC_SAO_EDGE_FILTER  96, 3, a\nVVC_SAO_EDGE_FILTER 112, 3, u\nVVC_SAO_EDGE_FILTER 128, 4, a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sao.asm", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao_10bit.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for VVC 10/12bit decoding\n;*\n;* Copyright (c) 2024 Shaun Loo\n;* Copyright (c) 2024 Nuo Mi\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define MAX_PB_SIZE  128\n%include \"libavcodec/x86/h26x/h2656_sao_10bit.asm\"\n\n%macro VVC_SAO_BAND_FILTER 3\n    H2656_SAO_BAND_FILTER vvc, %1, %2, %3\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_BAND_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_BAND_FILTER %1,   8, 1\n    INIT_YMM avx2\n    VVC_SAO_BAND_FILTER %1,  16, 1\n    VVC_SAO_BAND_FILTER %1,  32, 2\n    VVC_SAO_BAND_FILTER %1,  48, 3\n    VVC_SAO_BAND_FILTER %1,  64, 4\n    VVC_SAO_BAND_FILTER %1,  80, 5\n    VVC_SAO_BAND_FILTER %1,  96, 6\n    VVC_SAO_BAND_FILTER %1, 112, 7\n    VVC_SAO_BAND_FILTER %1, 128, 8\n%endmacro\n\nVVC_SAO_BAND_FILTER_FUNCS_AVX2 10\nVVC_SAO_BAND_FILTER_FUNCS_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER 3\n    H2656_SAO_EDGE_FILTER vvc, %1, %2, %3\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_EDGE_FILTER %1,   8, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sao_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao_10bit.asm:2", "text": "VVC_SAO_BAND_FILTER %1,  80, 5\n    VVC_SAO_BAND_FILTER %1,  96, 6\n    VVC_SAO_BAND_FILTER %1, 112, 7\n    VVC_SAO_BAND_FILTER %1, 128, 8\n%endmacro\n\nVVC_SAO_BAND_FILTER_FUNCS_AVX2 10\nVVC_SAO_BAND_FILTER_FUNCS_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER 3\n    H2656_SAO_EDGE_FILTER vvc, %1, %2, %3\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_EDGE_FILTER %1,   8, 1\n    INIT_YMM avx2\n    VVC_SAO_EDGE_FILTER %1,  16, 1\n    VVC_SAO_EDGE_FILTER %1,  32, 2\n    VVC_SAO_EDGE_FILTER %1,  48, 3\n    VVC_SAO_EDGE_FILTER %1,  64, 4\n    VVC_SAO_EDGE_FILTER %1,  80, 5\n    VVC_SAO_EDGE_FILTER %1,  96, 6\n    VVC_SAO_EDGE_FILTER %1, 112, 7\n    VVC_SAO_EDGE_FILTER %1, 128, 8\n%endmacro\n\nVVC_SAO_EDGE_FILTER_FUNCS_AVX2 10\nVVC_SAO_EDGE_FILTER_FUNCS_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/vvc/sao_10bit.asm", "line_start": 41, "line_end": 75}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao_10bit.asm:1", "text": ";******************************************************************************\n;* SIMD optimized SAO functions for VVC 10/12bit decoding\n;*\n;* Copyright (c) 2024 Shaun Loo\n;* Copyright (c) 2024 Nuo Mi\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define MAX_PB_SIZE  128\n%include \"libavcodec/x86/h26x/h2656_sao_10bit.asm\"\n\n%macro VVC_SAO_BAND_FILTER 3\n    H2656_SAO_BAND_FILTER vvc, %1, %2, %3\n%endmacro\n\n%macro VVC_SAO_BAND_FILTER_FUNCS 1\n    VVC_SAO_BAND_FILTER %1,   8,  1\n    VVC_SAO_BAND_FILTER %1,  16,  2\n    VVC_SAO_BAND_FILTER %1,  32,  4\n    VVC_SAO_BAND_FILTER %1,  48,  6\n    VVC_SAO_BAND_FILTER %1,  64,  8\n    VVC_SAO_BAND_FILTER %1,  80, 10\n    VVC_SAO_BAND_FILTER %1,  96, 12\n    VVC_SAO_BAND_FILTER %1, 112, 14\n    VVC_SAO_BAND_FILTER %1, 128, 16\n%endmacro\n\n%macro VVC_SAO_BAND_FILTER_FUNCS 0\n    VVC_SAO_BAND_FILTER_FUNCS 10\n    VVC_SAO_BAND_FILTER_FUNCS 12\n%endmacro\n\nINIT_XMM sse2\nVVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nVVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_BAND_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_BAND_FILTER %1,   8, 1\n    INIT_YMM avx2\n    VVC_SAO_BAND_FILTER %1,  16, 1\n    VVC_SAO_BAND_FILTER %1,  32, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "bed176995787ac141c7378d652b3f20ea00d5a56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bed176995787ac141c7378d652b3f20ea00d5a56/libavcodec/x86/vvc/sao_10bit.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao_10bit.asm:2", "text": "%endmacro\n\n%macro VVC_SAO_BAND_FILTER_FUNCS 0\n    VVC_SAO_BAND_FILTER_FUNCS 10\n    VVC_SAO_BAND_FILTER_FUNCS 12\n%endmacro\n\nINIT_XMM sse2\nVVC_SAO_BAND_FILTER_FUNCS\nINIT_XMM avx\nVVC_SAO_BAND_FILTER_FUNCS\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_BAND_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_BAND_FILTER %1,   8, 1\n    INIT_YMM avx2\n    VVC_SAO_BAND_FILTER %1,  16, 1\n    VVC_SAO_BAND_FILTER %1,  32, 2\n    VVC_SAO_BAND_FILTER %1,  48, 3\n    VVC_SAO_BAND_FILTER %1,  64, 4\n    VVC_SAO_BAND_FILTER %1,  80, 5\n    VVC_SAO_BAND_FILTER %1,  96, 6\n    VVC_SAO_BAND_FILTER %1, 112, 7\n    VVC_SAO_BAND_FILTER %1, 128, 8\n%endmacro\n\nVVC_SAO_BAND_FILTER_FUNCS_AVX2 10\nVVC_SAO_BAND_FILTER_FUNCS_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER 3\n    H2656_SAO_EDGE_FILTER vvc, %1, %2, %3\n%endmacro\n\n%macro VVC_SAO_EDGE_FILTER_FUNCS 1\n    VVC_SAO_EDGE_FILTER %1,   8,  1\n    VVC_SAO_EDGE_FILTER %1,  16,  2\n    VVC_SAO_EDGE_FILTER %1,  32,  4\n    VVC_SAO_EDGE_FILTER %1,  48,  6\n    VVC_SAO_EDGE_FILTER %1,  64,  8\n    VVC_SAO_EDGE_FILTER %1,  80, 10\n    VVC_SAO_EDGE_FILTER %1,  96, 12\n    VVC_SAO_EDGE_FILTER %1, 112, 14\n    VVC_SAO_EDGE_FILTER %1, 128, 16\n%endmacro\n\nINIT_XMM sse2\nVVC_SAO_EDGE_FILTER_FUNCS 10\nVVC_SAO_EDGE_FILTER_FUNCS 12\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_EDGE_FILTER %1,   8, 1\n    INIT_YMM avx2\n    VVC_SAO_EDGE_FILTER %1,  16, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "bed176995787ac141c7378d652b3f20ea00d5a56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bed176995787ac141c7378d652b3f20ea00d5a56/libavcodec/x86/vvc/sao_10bit.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/sao_10bit.asm:3", "text": "VVC_SAO_EDGE_FILTER %1,  32,  4\n    VVC_SAO_EDGE_FILTER %1,  48,  6\n    VVC_SAO_EDGE_FILTER %1,  64,  8\n    VVC_SAO_EDGE_FILTER %1,  80, 10\n    VVC_SAO_EDGE_FILTER %1,  96, 12\n    VVC_SAO_EDGE_FILTER %1, 112, 14\n    VVC_SAO_EDGE_FILTER %1, 128, 16\n%endmacro\n\nINIT_XMM sse2\nVVC_SAO_EDGE_FILTER_FUNCS 10\nVVC_SAO_EDGE_FILTER_FUNCS 12\n\n%if HAVE_AVX2_EXTERNAL\n\n%macro VVC_SAO_EDGE_FILTER_FUNCS_AVX2 1\n    INIT_XMM avx2\n    VVC_SAO_EDGE_FILTER %1,   8, 1\n    INIT_YMM avx2\n    VVC_SAO_EDGE_FILTER %1,  16, 1\n    VVC_SAO_EDGE_FILTER %1,  32, 2\n    VVC_SAO_EDGE_FILTER %1,  48, 3\n    VVC_SAO_EDGE_FILTER %1,  64, 4\n    VVC_SAO_EDGE_FILTER %1,  80, 5\n    VVC_SAO_EDGE_FILTER %1,  96, 6\n    VVC_SAO_EDGE_FILTER %1, 112, 7\n    VVC_SAO_EDGE_FILTER %1, 128, 8\n%endmacro\n\nVVC_SAO_EDGE_FILTER_FUNCS_AVX2 10\nVVC_SAO_EDGE_FILTER_FUNCS_AVX2 12\n\n%endif ; HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/sao_10bit.asm", "license": "LGPL-2.1", "commit": "bed176995787ac141c7378d652b3f20ea00d5a56", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bed176995787ac141c7378d652b3f20ea00d5a56/libavcodec/x86/vvc/sao_10bit.asm", "line_start": 81, "line_end": 113}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:1", "text": ";******************************************************************************\n;* VVC Adaptive Loop Filter SIMD optimizations\n;*\n;* Copyright (c) 2023-2024 Nuo Mi <nuomi2021@gmail.com>\n;* Copyright (c) 2023-2024 Wu Jianhua <toqsxw@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%macro PARAM_SHUFFE 1\n%assign i (%1  * 2)\n%assign j ((i + 1) << 8) + (i)\nparam_shuffe_ %+ %1:\n%rep 2\n    times 4 dw j\n    times 4 dw (j + 0x0808)\n%endrep\n%endmacro\n\nPARAM_SHUFFE 0\nPARAM_SHUFFE 1\nPARAM_SHUFFE 2\nPARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nTRANSPOSE_PERMUTE:          dd 0, 1, 4, 5, 2, 3, 6, 7\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ndd448: times 8             dd 512 - 64\ndw64: times 8              dd 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "6b0e6a98b57a80c1165d7a3012e0440029088406", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6b0e6a98b57a80c1165d7a3012e0440029088406/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nTRANSPOSE_PERMUTE:          dd 0, 1, 4, 5, 2, 3, 6, 7\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ndd448: times 8             dd 512 - 64\ndw64: times 8              dd 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS_W16 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * 32]   ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * 32]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * 32]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS_W16    %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    shufpd                  m%5, m%1, m%2, 0011b        ;06 02 05 01\n    shufpd                  m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    shufpd                  m%1, m%1, m%6, 1100b        ;06 03 09 00\n    shufpd                  m%2, m%2, m%6, 0110b        ;10 07 01 04\n    shufpd                  m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    shufpd                  m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "6b0e6a98b57a80c1165d7a3012e0440029088406", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6b0e6a98b57a80c1165d7a3012e0440029088406/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:7", "text": "; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    psrad             m0, SHIFT\n    psrad             m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    psrad             m0, SHIFT + 3\n    psrad             m1, SHIFT + 3\n%%shift_end:\n    packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "6b0e6a98b57a80c1165d7a3012e0440029088406", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6b0e6a98b57a80c1165d7a3012e0440029088406/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:8", "text": "packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS_W16(dst, src)\n%macro STORE_PIXELS_W16 2\n    %if ps == 2\n        movu       [%1],  m%2\n    %else\n        movu       [%1], xm%2\n    %endif\n%endmacro\n\n%macro STORE_PIXELS_W8 2\n    %if ps == 2\n        movu       [%1], xm%2\n    %else\n        movq       [%1], xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "6b0e6a98b57a80c1165d7a3012e0440029088406", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6b0e6a98b57a80c1165d7a3012e0440029088406/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:8", "text": "packssdw          m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS(dst, src)\n%macro STORE_PIXELS 2\n    %if ps == 2\n        movu         %1, m%2\n    %else\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:9", "text": "movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS(dst, src)\n%macro STORE_PIXELS 2\n    %if ps == 2\n        movu         %1, m%2\n    %else\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    ; sum += curr\n    paddsw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:10", "text": "; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xq, xq\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:11", "text": "; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xq, xq\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xq, 16\n        cmp           xq, widthq\n        jl       .loop_w\n\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq   + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:12", "text": "ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:13", "text": "cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:14", "text": "psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:15", "text": "movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:16", "text": "vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:17", "text": "paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:18", "text": "psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n    vpsrlvd           m0, m0, m5\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:19", "text": "paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n    sub       bit_depthq, 1\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:20", "text": "and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 761, "line_end": 811}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:21", "text": "%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "9950f1486493cfb1b039ea89c51f40484839a6c1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9950f1486493cfb1b039ea89c51f40484839a6c1/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 801, "line_end": 811}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:10", "text": "; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xd, xd\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "09d3370c2884f4535d738e9baea008738cfb602b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/09d3370c2884f4535d738e9baea008738cfb602b/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:11", "text": "; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xd, xd\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        cmp           xd, widthd\n        jl       .loop_w\n\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "09d3370c2884f4535d738e9baea008738cfb602b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/09d3370c2884f4535d738e9baea008738cfb602b/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:9", "text": "movu      %1, %2\n%else\n    pmovzxbw  %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS(dst, src)\n%macro STORE_PIXELS 2\n    %if ps == 2\n        movu         %1, m%2\n    %else\n        packuswb    m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    paddw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:10", "text": "; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xd, xd\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        cmp           xd, widthd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:11", "text": "cglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xd, xd\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        cmp           xd, widthd\n        jl       .loop_w\n\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:12", "text": "%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:13", "text": "LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        pblendw           m8, m0, m1, 0xaa             ; nw\n        pblendw           m9, m0, m5, 0x55             ; n\n        pblendw          m10, m4, m5, 0xaa             ; ne\n        pblendw          m11, m1, m2, 0xaa             ; w\n        pblendw          m12, m5, m6, 0xaa             ; e\n        pblendw          m13, m2, m3, 0xaa             ; sw\n        pblendw          m14, m2, m7, 0x55             ; s\n\n        pblendw           m0, m1, m6, 0x55\n        paddw             m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        paddw             m9, m14                      ; n + s\n        psubw             m9, m0                       ; (n + s) - c\n        pabsw             m9, m9                       ; ver\n\n        paddw            m11, m12                      ; w + e\n        psubw            m11, m1                       ; (w + e) - d\n        pabsw            m11, m11                      ; hor\n\n        pblendw          m14, m6, m7, 0xaa             ; se\n        paddw             m8, m14                      ; nw + se\n        psubw             m8, m1                       ; (nw + se) - d\n        pabsw             m8, m8                       ; di0\n\n        paddw            m10, m13                      ; ne + sw\n        psubw            m10, m1                       ; (nw + se) - d\n        pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:14", "text": "pabsw            m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        pblendw           m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:15", "text": "%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    pcmpeqd          m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:16", "text": "pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    punpcklwd         m4, m0, m15\n    punpckhwd         m5, m0, m15\n    punpcklwd         m6, m1, m15\n    punpckhwd         m7, m1, m15\n    punpcklwd         m8, m2, m15\n    punpckhwd         m9, m2, m15\n    punpcklwd        m10, m3, m15\n    punpckhwd        m11, m3, m15\n\n    paddd             m0, m4, m6\n    paddd             m1, m5, m7\n    paddd             m2, m8, m10\n    paddd             m3, m9, m11\n\n    ; sum of the first row\n    paddd             m0, m2           ; low\n    paddd             m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    punpcklwd         m4,  m10, m15\n    punpckhwd         m5,  m10, m15\n    punpcklwd         m6,  m11, m15\n    punpckhwd         m7,  m11, m15\n    punpcklwd         m8,  m12, m15\n    punpckhwd         m9,  m12, m15\n    punpcklwd        m10,  m13, m15\n    punpckhwd        m11,  m13, m15\n\n    paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:17", "text": "paddd             m2, m4, m6\n    paddd             m3, m5, m7\n    paddd             m4, m8, m10\n    paddd             m5, m9, m11\n\n    ; sum of the second row\n    paddd             m2, m4        ; low\n    paddd             m3, m5        ; high\n\n    punpckldq         m4, m0, m2\n    punpckhdq         m5, m0, m2\n    punpckldq         m6, m1, m3\n    punpckhdq         m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    punpckldq         m0, m4, m6         ; sum_v\n    punpckhdq         m1, m4, m6         ; sum_h\n    punpckldq         m2, m5, m7         ; sum_d0\n    punpckhdq         m3, m5, m7         ; sum_d1\n\n    pcmpgtd           m4, m0, m1         ; dir_hv - 1\n    pmaxsd            m5, m0, m1         ; hv1\n    pminsd            m6, m0, m1         ; hv0\n\n    paddd             m0, m1;            ; sum_hv\n\n    pcmpgtd           m7, m2, m3         ; dir_d - 1\n    pmaxsd            m8, m2, m3         ; d1\n    pminsd            m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    paddd            m11, m7, m7\n    paddd            m11, m4\n    paddd            m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    psrlq            m10, m8, 32\n    psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:18", "text": "psrlq            m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    psrlq             m1,  m9, 32\n    psrlq             m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    pcmpgtq          m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    pcmpgtq           m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    pmulld            m0, m14            ; sum_hv * ac\n    vpsrlvd           m0, m0, m5\n    pminsd            m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    pslld             m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:19", "text": "pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n; ******************************\n;void ff_vvc_alf_classify(int *class_idx, int *transpose_idx, const int *gradient_sum,\n;      intptr_t width, intptr_t height, intptr_t vb_pos, int *gradient_tmp, intptr_t bit_depth);\n; ******************************\n%macro ALF_CLASSIFY 1\n%define ps (%1 / 8)\nALF_CLASSIFY_GRAD %1\ncglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, gradient_sum, width, height, vb_pos, bit_depth, \\\n    x, y, grad, sum_stride, sum_stride3, temp, w\n\n    sub       bit_depthq, 1\n\n    ; now we can use gradient to get class idx and transpose idx\n    lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]\n    add      sum_strideq, 15\n    and      sum_strideq, ~15               ; align to 16\n    add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:20", "text": "add      sum_strideq, sum_strideq       ; two rows a time\n\n    add    gradient_sumq, 8                 ; first 4 words are garbage\n\n    lea     sum_stride3q, [3 * sum_strideq]\n\n    xor               yd, yd\n    and          vb_posd, ~7                ; floor align to 8\n    pxor             m15, m15\n\n.loop_sum_h:\n    xor               xd,  xd\n    .loop_sum_w16:\n        lea           wd, [widthd]\n        sub           wd, xd\n        cmp           wd, 16\n        jl .loop_sum_w16_end\n\n        ALF_CLASSIFY_16x8\n\n        add           xd, 16\n        jmp .loop_sum_w16\n    .loop_sum_w16_end:\n\n    cmp               wd, 0\n    je   .loop_sum_w_end\n\n    ALF_CLASSIFY_Wx8\n\n.loop_sum_w_end:\n    lea    gradient_sumq, [gradient_sumq + 4 * sum_strideq]\n    lea   transpose_idxq, [transpose_idxq + 2 * widthq]\n    lea       class_idxq, [class_idxq + 2 * widthq]\n\n    add               yd, 8\n    cmp               yd, heightd\n    jl        .loop_sum_h\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 761, "line_end": 810}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:21", "text": "%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\nALF_CLASSIFY 16\nALF_CLASSIFY 8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "3d1597d3e2ff9a6625af23be63131142a910d403", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3d1597d3e2ff9a6625af23be63131142a910d403/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 801, "line_end": 810}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:2", "text": "PARAM_SHUFFE 3\n\nCLASSIFY_SHUFFE: times 2    db 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13\nTRANSPOSE_PERMUTE:          dd 0, 1, 4, 5, 2, 3, 6, 7\nARG_VAR_SHUFFE: times 2     db 0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4\n\ndd448: times 8             dd 512 - 64\ndw64: times 8              dd 64\ndd2:  times 8              dd 2\ndw3:  times 8              dd 3\ndw5:  times 8              dd 5\ndd15: times 8              dd 15\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS_W16 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * 32]   ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * 32]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * 32]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS_W16    %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    vshufpd                 m%5, m%1, m%2, 0011b        ;06 02 05 01\n    vshufpd                 m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    vshufpd                 m%1, m%1, m%6, 1100b        ;06 03 09 00\n    vshufpd                 m%2, m%2, m%6, 0110b        ;10 07 01 04\n    vshufpd                 m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    vshufpd                 m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:3", "text": "vshufpd                 m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    vshufpd                 m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    vpsubw            m9, m2\n    CLIPW             m9, m11, m12\n\n    vpsubw           m10, m2\n    CLIPW            m10, m11, m12\n\n    vpunpckhwd       m13, m9, m10\n    vpunpcklwd        m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    vpunpcklwd       m10, m12, m12\n    vpunpckhwd       m12, m12, m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:4", "text": "%define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    vpsubw            m9, m2\n    CLIPW             m9, m11, m12\n\n    vpsubw           m10, m2\n    CLIPW            m10, m11, m12\n\n    vpunpckhwd       m13, m9, m10\n    vpunpcklwd        m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    vpunpcklwd       m10, m12, m12\n    vpunpckhwd       m12, m12, m12\n\n    vpmaddwd          m9, m10\n    vpmaddwd         m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:7", "text": "; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    vpsrad            m0, SHIFT\n    vpsrad            m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    vpsrad            m0, SHIFT + 3\n    vpsrad            m1, SHIFT + 3\n%%shift_end:\n    vpackssdw         m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:8", "text": "vpackssdw         m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    vpmovzxbw %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS(dst, src)\n%macro STORE_PIXELS 2\n    %if ps == 2\n        movu         %1, m%2\n    %else\n        vpackuswb   m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:9", "text": "movu      %1, %2\n%else\n    vpmovzxbw %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS(dst, src)\n%macro STORE_PIXELS 2\n    %if ps == 2\n        movu         %1, m%2\n    %else\n        vpackuswb   m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    paddw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:12", "text": "%endmacro\n\n%define ALF_GRADIENT_BORDER 2\n%define ALF_BORDER_LUMA     3\n\n; ******************************\n; void ff_vvc_alf_classify_grad(int *gradient_sum, const uint8_t *src,\n;      ptrdiff_t src_stride,  intptr_t width, intptr_t height, intptr_t vb_pos);\n; ******************************\n%macro ALF_CLASSIFY_GRAD 1\ncglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, gradient_sum, src, src_stride, width, height, vb_pos, \\\n    x, y, s0, s1, s2, s3, vb_pos_below, src_stride3\n\n    lea         src_stride3q, [src_strideq * 2 + src_strideq]\n\n    lea        vb_pos_belowd, [vb_posd + ALF_GRADIENT_BORDER]\n\n    ; src = src - ALF_BORDER_LUMA * src_stride - ALF_BORDER_LUMA\n    sub                 srcq, src_stride3q\n    sub                 srcq, ALF_BORDER_LUMA * ps\n\n    add               widthd, ALF_GRADIENT_BORDER * 2\n    add              heightd, ALF_GRADIENT_BORDER * 2\n\n    xor                   yd, yd\n\n.loop_h:\n    xor                   xd,  xd\n    pxor                 m15, m15 ; prev\n    .loop_w:\n        lea              s0q, [srcq + xq * ps]\n        lea              s1q, [s0q + src_strideq]\n        lea              s2q, [s0q + 2 * src_strideq]\n        lea              s3q, [s0q + src_stride3q]\n\n        cmp               yd, vb_pos_belowd\n        cmove            s0q, s1q\n\n        cmp               yd, vb_posd\n        cmove            s3q, s2q\n\n        LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        vpblendw          m8, m0, m1, 0xaa             ; nw\n        vpblendw          m9, m0, m5, 0x55             ; n\n        vpblendw         m10, m4, m5, 0xaa             ; ne\n        vpblendw         m11, m1, m2, 0xaa             ; w\n        vpblendw         m12, m5, m6, 0xaa             ; e\n        vpblendw         m13, m2, m3, 0xaa             ; sw\n        vpblendw         m14, m2, m7, 0x55             ; s\n\n        vpblendw          m0, m1, m6, 0x55", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:13", "text": "LOAD_PIXELS       m0, [s0q]\n        LOAD_PIXELS       m1, [s1q]\n        LOAD_PIXELS       m2, [s2q]\n        LOAD_PIXELS       m3, [s3q]\n\n        LOAD_PIXELS       m4, [s0q + 2 * ps]\n        LOAD_PIXELS       m5, [s1q + 2 * ps]\n        LOAD_PIXELS       m6, [s2q + 2 * ps]\n        LOAD_PIXELS       m7, [s3q + 2 * ps]\n\n        vpblendw          m8, m0, m1, 0xaa             ; nw\n        vpblendw          m9, m0, m5, 0x55             ; n\n        vpblendw         m10, m4, m5, 0xaa             ; ne\n        vpblendw         m11, m1, m2, 0xaa             ; w\n        vpblendw         m12, m5, m6, 0xaa             ; e\n        vpblendw         m13, m2, m3, 0xaa             ; sw\n        vpblendw         m14, m2, m7, 0x55             ; s\n\n        vpblendw          m0, m1, m6, 0x55\n        vpaddw            m0, m0                       ; c\n\n        movu              m1, [CLASSIFY_SHUFFE]\n        pshufb            m1, m0, m1                   ; d\n\n        vpaddw            m9, m14                      ; n + s\n        vpsubw            m9, m0                       ; (n + s) - c\n        vpabsw            m9, m9                       ; ver\n\n        vpaddw           m11, m12                      ; w + e\n        vpsubw           m11, m1                       ; (w + e) - d\n        vpabsw           m11, m11                      ; hor\n\n        vpblendw         m14, m6, m7, 0xaa             ; se\n        vpaddw            m8, m14                      ; nw + se\n        vpsubw            m8, m1                       ; (nw + se) - d\n        vpabsw            m8, m8                       ; di0\n\n        vpaddw           m10, m13                      ; ne + sw\n        vpsubw           m10, m1                       ; (nw + se) - d\n        vpabsw           m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        vpblendw          m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:14", "text": "vpabsw           m10, m10                      ; di1\n\n        phaddw            m9,  m11                     ; vh,  each word represent 2x2 pixels\n        phaddw            m8,  m10                     ; di,  each word represent 2x2 pixels\n        phaddw            m0,  m9, m8                  ; all = each word represent 4x2 pixels, order is v_h_d0_d1 x 4\n\n        vinserti128      m15, m15, xm0, 1\n        vpblendw          m1,  m0, m15, 0xaa           ; t\n\n        phaddw            m1,  m0                      ; each word represent 8x2 pixels, adjacent word share 4x2 pixels\n\n        vextracti128    xm15, m0, 1                    ; prev\n\n        movu [gradient_sumq], m1\n\n        add    gradient_sumq, 32\n        add               xd, 16\n        cmp               xd, widthd\n        jl           .loop_w\n\n    lea                 srcq, [srcq + 2 * src_strideq]\n    add                   yd, 2\n    cmp                   yd, heightd\n    jl               .loop_h\n    RET\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W16(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W16 2\n    lea                   tempq, [%1q + xq]\n    movu                [tempq], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movu       [tempq + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W8\n%macro SAVE_CLASSIFY_PARAM_W8 2\n    movq                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movq          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:15", "text": "%endmacro\n\n; SAVE_CLASSIFY_PARAM_W4\n%macro SAVE_CLASSIFY_PARAM_W4 2\n    movd                   [%1], xm%2\n    vperm2i128              m%2, m%2, m%2, 1\n    movd          [%1 + widthq], xm%2\n%endmacro\n\n; SAVE_CLASSIFY_PARAM_W(dest, src)\n%macro SAVE_CLASSIFY_PARAM_W 2\n    lea                  tempq, [%1q + xq]\n    cmp                     wd, 8\n    jl %%w4\n    SAVE_CLASSIFY_PARAM_W8 tempq, %2\n    vpermq                 m%2, m%2, 00010011b\n    add                  tempq, 8\n    cmp                     wd, 8\n    je                   %%end\n%%w4:\n    SAVE_CLASSIFY_PARAM_W4 tempq, %2\n%%end:\n%endmacro\n\n%macro ALF_CLASSIFY_H8 0\n    ; first line, sum of 16x4 pixels (includes borders)\n    lea            gradq, [gradient_sumq + 2 * xq]\n    movu              m0, [gradq]\n    movu              m1, [gradq + sum_strideq]\n    movu              m2, [gradq + 2 * sum_strideq]\n\n    pcmpeqb          m11, m11\n    movd            xm13, yd\n    vpbroadcastd     m13, xm13\n    movd            xm12, vb_posd\n    vpbroadcastd     m12, xm12\n    vpcmpeqd         m13, m12       ; y == vb_pos\n    pandn            m13, m11       ; y != vb_pos\n\n    vpbroadcastd     m14, [dw3]\n    pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    vpunpcklwd        m4, m0, m15\n    vpunpckhwd        m5, m0, m15\n    vpunpcklwd        m6, m1, m15\n    vpunpckhwd        m7, m1, m15\n    vpunpcklwd        m8, m2, m15\n    vpunpckhwd        m9, m2, m15\n    vpunpcklwd       m10, m3, m15\n    vpunpckhwd       m11, m3, m15\n\n    vpaddd            m0, m4, m6\n    vpaddd            m1, m5, m7\n    vpaddd            m2, m8, m10\n    vpaddd            m3, m9, m11\n\n    ; sum of the first row", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:16", "text": "pblendvb         m14, m14, [dd2], m13    ; ac\n\n    pblendvb          m3, m15, [gradq + sum_stride3q], m13\n\n    ; extent to dword to avoid overflow\n    vpunpcklwd        m4, m0, m15\n    vpunpckhwd        m5, m0, m15\n    vpunpcklwd        m6, m1, m15\n    vpunpckhwd        m7, m1, m15\n    vpunpcklwd        m8, m2, m15\n    vpunpckhwd        m9, m2, m15\n    vpunpcklwd       m10, m3, m15\n    vpunpckhwd       m11, m3, m15\n\n    vpaddd            m0, m4, m6\n    vpaddd            m1, m5, m7\n    vpaddd            m2, m8, m10\n    vpaddd            m3, m9, m11\n\n    ; sum of the first row\n    vpaddd            m0, m2           ; low\n    vpaddd            m1, m3           ; high\n\n    lea            gradq, [gradq + 2 * sum_strideq]\n\n    pblendvb         m10, m15, [gradq], m13\n\n    movu             m11, [gradq + sum_strideq]\n    movu             m12, [gradq + 2 * sum_strideq]\n    movu             m13, [gradq + sum_stride3q]\n\n    vpunpcklwd        m4,  m10, m15\n    vpunpckhwd        m5,  m10, m15\n    vpunpcklwd        m6,  m11, m15\n    vpunpckhwd        m7,  m11, m15\n    vpunpcklwd        m8,  m12, m15\n    vpunpckhwd        m9,  m12, m15\n    vpunpcklwd       m10,  m13, m15\n    vpunpckhwd       m11,  m13, m15\n\n    vpaddd            m2, m4, m6\n    vpaddd            m3, m5, m7\n    vpaddd            m4, m8, m10\n    vpaddd            m5, m9, m11\n\n    ; sum of the second row\n    vpaddd            m2, m4        ; low\n    vpaddd            m3, m5        ; high\n\n    vpunpckldq        m4, m0, m2\n    vpunpckhdq        m5, m0, m2\n    vpunpckldq        m6, m1, m3\n    vpunpckhdq        m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    vpunpckldq        m0, m4, m6         ; sum_v\n    vpunpckhdq        m1, m4, m6         ; sum_h\n    vpunpckldq        m2, m5, m7         ; sum_d0\n    vpunpckhdq        m3, m5, m7         ; sum_d1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:17", "text": "vpaddd            m2, m4, m6\n    vpaddd            m3, m5, m7\n    vpaddd            m4, m8, m10\n    vpaddd            m5, m9, m11\n\n    ; sum of the second row\n    vpaddd            m2, m4        ; low\n    vpaddd            m3, m5        ; high\n\n    vpunpckldq        m4, m0, m2\n    vpunpckhdq        m5, m0, m2\n    vpunpckldq        m6, m1, m3\n    vpunpckhdq        m7, m1, m3\n\n    ; each dword represent 4x2 alf blocks\n    ; the order is 01452367\n    vpunpckldq        m0, m4, m6         ; sum_v\n    vpunpckhdq        m1, m4, m6         ; sum_h\n    vpunpckldq        m2, m5, m7         ; sum_d0\n    vpunpckhdq        m3, m5, m7         ; sum_d1\n\n    vpcmpgtd          m4, m0, m1         ; dir_hv - 1\n    vpmaxsd           m5, m0, m1         ; hv1\n    vpminsd           m6, m0, m1         ; hv0\n\n    vpaddd            m0, m1;            ; sum_hv\n\n    vpcmpgtd          m7, m2, m3         ; dir_d - 1\n    vpmaxsd           m8, m2, m3         ; d1\n    vpminsd           m9, m2, m3         ; d0\n\n    ; *transpose_idx = dir_d * 2 + dir_hv;\n    vpbroadcastd     m10, [dw3]\n    vpaddd           m11, m7, m7\n    vpaddd           m11, m4\n    vpaddd           m10, m11\n    vpermq           m10, m10, 11011000b\n    SAVE_CLASSIFY_PARAM transpose_idx, 10\n\n    vpsrlq           m10, m8, 32\n    vpsrlq           m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    vpsrlq            m1,  m9, 32\n    vpsrlq            m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    vpcmpgtq         m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    vpcmpgtq          m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:18", "text": "vpsrlq           m11, m6, 32\n    pmuldq           m12, m10, m11       ; d1 * hv0 high\n    vpsrlq            m1,  m9, 32\n    vpsrlq            m2,  m5, 32\n    pmuldq            m3,  m1, m2        ; d0 * hv1 high\n    vpcmpgtq         m10, m12, m3        ; dir1 - 1 high\n\n    pmuldq            m1, m8, m6         ; d1 * hv0 low\n    pmuldq            m2, m9, m5         ; d0 * hv1 low\n    vpcmpgtq          m1, m2             ; dir1 - 1 low\n\n    vpblendd          m1, m1, m10, 0xaa  ; dir1 - 1\n\n    pblendvb          m2, m5, m8, m1     ; hvd1\n    pblendvb          m3, m6, m9, m1     ; hvd0\n\n    movd             xm5, bit_depthd\n    vpbroadcastd      m5, xm5\n\n    ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];\n    vpmulld           m0, m14            ; sum_hv * ac\n    vpsrlvd           m0, m0, m5\n    vpminsd           m0, [dd15]\n    movu              m6, [ARG_VAR_SHUFFE]\n    pshufb            m6, m0             ; class_idx\n\n    vpbroadcastd     m10, [dw5]\n\n    ; if (hvd1 * 2 > 9 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 2) * 5;\n    ; else if (hvd1 > 2 * hvd0)\n    ;   *class_idx += ((dir1 << 1) + 1) * 5;\n    paddd             m7,  m3, m3\n    pcmpgtd           m7,  m2, m7        ; hvd1 > 2 * hvd0\n    pand              m7, m10\n    paddd             m6,  m7            ; class_idx\n\n    paddd             m8, m2, m2\n    vpslld            m9, m3, 3\n    paddd             m9, m3\n    pcmpgtd           m8, m9             ; hvd1 * 2 > 9 * hvd0\n    pand              m8, m10\n    paddd             m6, m8             ; class_idx\n\n    pandn             m1, m7\n    paddd             m1, m1             ; dir1 << 1\n    paddd             m6, m1             ; class_idx\n    vpermq            m6, m6, 11011000b\n\n    SAVE_CLASSIFY_PARAM class_idx, 6\n%endmacro\n\n%macro ALF_CLASSIFY_16x8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W16\n    ALF_CLASSIFY_H8\n%undef SAVE_CLASSIFY_PARAM\n%endmacro\n\n%macro ALF_CLASSIFY_Wx8 0\n%define SAVE_CLASSIFY_PARAM SAVE_CLASSIFY_PARAM_W", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "abf69a39b524258701b167cbe418f7d8cf1ff78c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/abf69a39b524258701b167cbe418f7d8cf1ff78c/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:1", "text": ";******************************************************************************\n;* VVC Adaptive Loop Filter SIMD optimizations\n;*\n;* Copyright (c) 2023-2024 Nuo Mi <nuomi2021@gmail.com>\n;* Copyright (c) 2023-2024 Wu Jianhua <toqsxw@outlook.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%macro PARAM_SHUFFE 1\n%assign i (%1  * 2)\n%assign j ((i + 1) << 8) + (i)\nparam_shuffe_ %+ %1:\n%rep 2\n    times 4 dw j\n    times 4 dw (j + 0x0808)\n%endrep\n%endmacro\n\nPARAM_SHUFFE 0\nPARAM_SHUFFE 1\nPARAM_SHUFFE 2\nPARAM_SHUFFE 3\n\ndd448: times 8             dd 512 - 64\ndw64: times 8              dd 64\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS_W16 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * 32]   ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * 32]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * 32]\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:2", "text": "PARAM_SHUFFE 3\n\ndd448: times 8             dd 512 - 64\ndw64: times 8              dd 64\n\nSECTION .text\n\n\n%define ALF_NUM_COEFF_LUMA      12\n%define ALF_NUM_COEFF_CHROMA     6\n%define ALF_NUM_COEFF_CC         7\n\n;%1-%3 out\n;%4 clip or filter\n%macro LOAD_LUMA_PARAMS_W16 4\n    lea                 offsetq, [3 * xq]                       ;xq * ALF_NUM_COEFF_LUMA / ALF_BLOCK_SIZE\n    movu                    m%1, [%4q + 2 * offsetq + 0 * 32]   ; 2 * for sizeof(int16_t)\n    movu                    m%2, [%4q + 2 * offsetq + 1 * 32]\n    movu                    m%3, [%4q + 2 * offsetq + 2 * 32]\n%endmacro\n\n%macro LOAD_LUMA_PARAMS_W16 6\n    LOAD_LUMA_PARAMS_W16    %1, %2, %3, %4\n    ;m%1 = 03 02 01 00\n    ;m%2 = 07 06 05 04\n    ;m%3 = 11 10 09 08\n\n    vshufpd                 m%5, m%1, m%2, 0011b        ;06 02 05 01\n    vshufpd                 m%6, m%3, m%5, 1001b        ;06 10 01 09\n\n    vshufpd                 m%1, m%1, m%6, 1100b        ;06 03 09 00\n    vshufpd                 m%2, m%2, m%6, 0110b        ;10 07 01 04\n    vshufpd                 m%3, m%3, m%5, 0110b        ;02 11 05 08\n\n    vpermpd                 m%1, m%1, 01111000b         ;09 06 03 00\n    vshufpd                 m%2, m%2, m%2, 1001b        ;10 07 04 01\n    vpermpd                 m%3, m%3, 10000111b         ;11 08 05 02\n%endmacro\n\n; %1-%3 out\n; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:3", "text": "; %4    clip or filter\n; %5-%6 tmp\n%macro LOAD_LUMA_PARAMS 6\n    LOAD_LUMA_PARAMS_W16 %1, %2, %3, %4, %5, %6\n%endmacro\n\n%macro LOAD_CHROMA_PARAMS 4\n    ; LOAD_CHROMA_PARAMS_W %+ WIDTH %1, %2, %3, %4\n    movq                   xm%1, [%3q]\n    movd                   xm%2, [%3q + 8]\n    vpbroadcastq            m%1, xm%1\n    vpbroadcastq            m%2, xm%2\n%endmacro\n\n%macro LOAD_PARAMS 0\n%if LUMA\n    LOAD_LUMA_PARAMS          3, 4, 5, filter, 6, 7\n    LOAD_LUMA_PARAMS          6, 7, 8, clip,   9, 10\n%else\n    LOAD_CHROMA_PARAMS        3, 4, filter, 5\n    LOAD_CHROMA_PARAMS        6, 7, clip, 8\n%endif\n%endmacro\n\n; FILTER(param_idx)\n; input:   m2, m9, m10\n; output:  m0, m1\n; tmp:     m11-m13\n%macro FILTER 1\n    %assign i (%1 % 4)\n    %assign j (%1 / 4 + 3)\n    %assign k (%1 / 4 + 6)\n    %define filters m %+ j\n    %define clips m %+ k\n\n    pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip\n    pxor             m11, m11\n    psubw            m11, m12                                ;-clip\n\n    vpsubw            m9, m2\n    CLIPW             m9, m11, m12\n\n    vpsubw           m10, m2\n    CLIPW            m10, m11, m12\n\n    vpunpckhwd       m13, m9, m10\n    vpunpcklwd        m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    vpunpcklwd       m10, m12, m12\n    vpunpckhwd       m12, m12, m12\n\n    vpmaddwd          m9, m10\n    vpmaddwd         m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:4", "text": "CLIPW             m9, m11, m12\n\n    vpsubw           m10, m2\n    CLIPW            m10, m11, m12\n\n    vpunpckhwd       m13, m9, m10\n    vpunpcklwd        m9, m9, m10\n\n    pshufb           m12, filters, [param_shuffe_ %+ i]       ;filter\n    vpunpcklwd       m10, m12, m12\n    vpunpckhwd       m12, m12, m12\n\n    vpmaddwd          m9, m10\n    vpmaddwd         m12, m13\n\n    paddd             m0, m9\n    paddd             m1, m12\n%endmacro\n\n; FILTER(param_idx, bottom, top, byte_offset)\n; input:  param_idx, bottom, top, byte_offset\n; output: m0, m1\n; temp:   m9, m10\n%macro FILTER 4\n    LOAD_PIXELS      m10, [%2 + %4]\n    LOAD_PIXELS       m9,  [%3 - %4]\n    FILTER  %1\n%endmacro\n\n; GET_SRCS(line)\n; brief:  get source lines\n; input:  src, src_stride, vb_pos\n; output: s1...s6\n%macro GET_SRCS 1\n    lea              s1q, [srcq + src_strideq]\n    lea              s3q, [s1q  + src_strideq]\n%if LUMA\n    lea              s5q, [s3q  + src_strideq]\n%endif\n    neg      src_strideq\n    lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posq, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:5", "text": "lea              s2q, [srcq + src_strideq]\n    lea              s4q, [s2q  + src_strideq]\n%if LUMA\n    lea              s6q, [s4q  + src_strideq]\n%endif\n    neg      src_strideq\n\n%if LUMA\n    cmp          vb_posq, 0\n    je       %%vb_bottom\n    cmp          vb_posq, 4\n    jne         %%vb_end\n%else\n    cmp          vb_posq, 2\n    jne         %%vb_end\n    cmp               %1, 2\n    jge      %%vb_bottom\n%endif\n\n%%vb_above:\n    ; above\n    ; p1 = (y + i == vb_pos - 1) ? p0 : p1;\n    ; p2 = (y + i == vb_pos - 1) ? p0 : p2;\n    ; p3 = (y + i >= vb_pos - 2) ? p1 : p3;\n    ; p4 = (y + i >= vb_pos - 2) ? p2 : p4;\n    ; p5 = (y + i >= vb_pos - 3) ? p3 : p5;\n    ; p6 = (y + i >= vb_pos - 3) ? p4 : p6;\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    dec          vb_posq\n    cmp          vb_posq, %1\n    cmovbe           s3q, s1q\n    cmovbe           s4q, s2q\n\n    dec          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posq\n    cmp          vb_posq, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:6", "text": "cmovbe           s5q, s3q\n    cmovbe           s6q, s4q\n%endif\n    add          vb_posq, 3\n    jmp         %%vb_end\n\n%%vb_bottom:\n    ; bottom\n    ; p1 = (y + i == vb_pos    ) ? p0 : p1;\n    ; p2 = (y + i == vb_pos    ) ? p0 : p2;\n    ; p3 = (y + i <= vb_pos + 1) ? p1 : p3;\n    ; p4 = (y + i <= vb_pos + 1) ? p2 : p4;\n    ; p5 = (y + i <= vb_pos + 2) ? p3 : p5;\n    ; p6 = (y + i <= vb_pos + 2) ? p4 : p6;\n    cmp          vb_posq, %1\n    cmove            s1q, srcq\n    cmove            s2q, srcq\n\n    inc          vb_posq\n    cmp          vb_posq, %1\n    cmovae           s3q, s1q\n    cmovae           s4q, s2q\n\n    inc          vb_posq\n%if LUMA\n    cmp          vb_posq, %1\n    cmovae           s5q, s3q\n    cmovae           s6q, s4q\n%endif\n    sub          vb_posq, 2\n%%vb_end:\n%endmacro\n\n; SHIFT_VB(line)\n; brief: shift filter result\n; input:  m0, m1, vb_pos\n; output: m0\n; temp:   m9\n%macro SHIFT_VB 1\n%define SHIFT 7\n%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:7", "text": "%if LUMA\n    cmp               %1, 3\n    je      %%near_above\n    cmp               %1, 0\n    je      %%near_below\n    jmp          %%no_vb\n    %%near_above:\n        cmp      vb_posq, 4\n        je     %%near_vb\n        jmp      %%no_vb\n    %%near_below:\n        cmp      vb_posq, 0\n        je     %%near_vb\n%else\n    cmp               %1, 0\n    je           %%no_vb\n    cmp               %1, 3\n    je           %%no_vb\n    cmp          vb_posq, 2\n    je         %%near_vb\n%endif\n%%no_vb:\n    vpsrad            m0, SHIFT\n    vpsrad            m1, SHIFT\n    jmp      %%shift_end\n%%near_vb:\n    vpbroadcastd      m9, [dd448]\n    paddd             m0, m9\n    paddd             m1, m9\n    vpsrad            m0, SHIFT + 3\n    vpsrad            m1, SHIFT + 3\n%%shift_end:\n    vpackssdw         m0, m0, m1\n%endmacro\n\n; FILTER_VB(line)\n; brief: filter pixels for luma and chroma\n; input:  line\n; output: m0, m1\n; temp:   s0q...s1q\n%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:8", "text": "%macro FILTER_VB 1\n    vpbroadcastd      m0, [dw64]\n    vpbroadcastd      m1, [dw64]\n\n    GET_SRCS %1\n%if LUMA\n    FILTER         0,  s5q,  s6q,  0 * ps\n    FILTER         1,  s3q,  s4q,  1 * ps\n    FILTER         2,  s3q,  s4q,  0 * ps\n    FILTER         3,  s3q,  s4q, -1 * ps\n    FILTER         4,  s1q,  s2q,  2 * ps\n    FILTER         5,  s1q,  s2q,  1 * ps\n    FILTER         6,  s1q,  s2q,  0 * ps\n    FILTER         7,  s1q,  s2q, -1 * ps\n    FILTER         8,  s1q,  s2q, -2 * ps\n    FILTER         9, srcq, srcq,  3 * ps\n    FILTER        10, srcq, srcq,  2 * ps\n    FILTER        11, srcq, srcq,  1 * ps\n%else\n    FILTER         0,  s3q,  s4q,  0 * ps\n    FILTER         1,  s1q,  s2q,  1 * ps\n    FILTER         2,  s1q,  s2q,  0 * ps\n    FILTER         3,  s1q,  s2q, -1 * ps\n    FILTER         4, srcq, srcq,  2 * ps\n    FILTER         5, srcq, srcq,  1 * ps\n%endif\n    SHIFT_VB %1\n%endmacro\n\n; LOAD_PIXELS(dest, src)\n%macro LOAD_PIXELS 2\n%if ps == 2\n    movu      %1, %2\n%else\n    vpmovzxbw %1, %2\n%endif\n%endmacro\n\n; STORE_PIXELS(dst, src)\n%macro STORE_PIXELS 2\n    %if ps == 2\n        movu         %1, m%2\n    %else\n        vpackuswb   m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:9", "text": "%if ps == 2\n        movu         %1, m%2\n    %else\n        vpackuswb   m%2, m%2\n        vpermq      m%2, m%2, 0x8\n        movu         %1, xm%2\n    %endif\n%endmacro\n\n%macro FILTER_16x4 0\n%if LUMA\n    push clipq\n    push strideq\n    %define s1q clipq\n    %define s2q strideq\n%else\n    %define s1q s5q\n    %define s2q s6q\n%endif\n\n    %define s3q pixel_maxq\n    %define s4q offsetq\n    push xq\n\n    xor               xq, xq\n%%filter_16x4_loop:\n    LOAD_PIXELS       m2, [srcq]   ;p0\n\n    FILTER_VB         xq\n\n    paddw             m0, m2\n\n    ; clip to pixel\n    CLIPW             m0, m14, m15\n\n    STORE_PIXELS  [dstq], 0\n\n    lea             srcq, [srcq + src_strideq]\n    lea             dstq, [dstq + dst_strideq]\n    inc               xq\n    cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:10", "text": "cmp               xq, 4\n    jl %%filter_16x4_loop\n\n    mov               xq, src_strideq\n    neg               xq\n    lea             srcq, [srcq + xq * 4]\n    mov               xq, dst_strideq\n    neg               xq\n    lea             dstq, [dstq + xq * 4]\n\n    pop xq\n\n%if LUMA\n    pop strideq\n    pop clipq\n%endif\n%endmacro\n\n; FILTER(bpc, luma/chroma)\n%macro ALF_FILTER 2\n%xdefine BPC   %1\n%ifidn %2, luma\n    %xdefine LUMA 1\n%else\n    %xdefine LUMA 0\n%endif\n\n; ******************************\n; void vvc_alf_filter_%2_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;      const uint8_t *src, ptrdiff_t src_stride, const ptrdiff_t width, cosnt ptr_diff_t height,\n;      const int16_t *filter, const int16_t *clip, ptrdiff_t stride, ptrdiff_t vb_pos, ptrdiff_t pixel_max);\n; ******************************\ncglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_stride, width, height, filter, clip, stride, vb_pos, pixel_max, \\\n    offset, x, s5, s6\n%define ps (%1 / 8) ; pixel size\n    movd            xm15, pixel_maxd\n    vpbroadcastw     m15, xm15\n    pxor             m14, m14\n\n.loop:\n    push            srcq\n    push            dstq\n    xor               xd, xd\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        cmp           xd, widthd\n        jl       .loop_w\n\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_alf.asm:11", "text": "push            srcq\n    push            dstq\n    xor               xd, xd\n\n    .loop_w:\n        LOAD_PARAMS\n        FILTER_16x4\n\n        add         srcq, 16 * ps\n        add         dstq, 16 * ps\n        add           xd, 16\n        cmp           xd, widthd\n        jl       .loop_w\n\n    pop             dstq\n    pop             srcq\n    lea             srcq, [srcq + 4 * src_strideq]\n    lea             dstq, [dstq + 4 * dst_strideq]\n\n    lea          filterq, [filterq + 2 * strideq]\n    lea            clipq, [clipq + 2 * strideq]\n\n    sub          vb_posq, 4\n    sub          heightq, 4\n    jg             .loop\n    RET\n%endmacro\n\n; FILTER(bpc)\n%macro ALF_FILTER 1\n    ALF_FILTER  %1, luma\n    ALF_FILTER  %1, chroma\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nALF_FILTER   16\nALF_FILTER   8\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_alf.asm", "license": "LGPL-2.1", "commit": "ec2a7ef867619c24d5c62a01aae6b09f320e4774", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec2a7ef867619c24d5c62a01aae6b09f320e4774/libavcodec/x86/vvc/vvc_alf.asm", "line_start": 401, "line_end": 441}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:2", "text": "pw_12   times 2 dw  12\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:3", "text": ".w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\n.w8:\n    vinserti128         m0, m0, [src0q], 0\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q], 0\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   0\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n    CLIPW                m0, m3, m4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:4", "text": ".w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   0\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n    CLIPW                m0, m3, m4\n%endmacro\n\n%macro W_AVG 0\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n    packssdw             m0, m5\n    CLIPW                m0, m6, m7\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        pextrq           [dstq], xm0, 0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:5", "text": "%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        pextrq           [dstq], xm0, 0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        vextracti128            [dstq], m0, 0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        pextrq                  [dstq], xm0, 0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        vextracti128       [dstq + %2 * strideq + %3 * 16], m0, 0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 5, dst, stride, src0, src1, w, h, bd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:6", "text": "vextracti128       [dstq + %2 * strideq + %3 * 16], m0, 0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 5, dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 8, dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:7", "text": "AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 8, dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:8", "text": "vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "78a7927df78001baa6c17828c7f57105b9816458", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78a7927df78001baa6c17828c7f57105b9816458/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 281, "line_end": 302}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:1", "text": "; /*\n; * Provide SIMD MC functions for VVC decoding\n; *\n; * Copyright © 2021, VideoLAN and dav1d authors\n; * Copyright © 2021, Two Orioles, LLC\n; * All rights reserved.\n; *\n; * Copyright (c) 2023-2024 Nuo Mi\n; * Copyright (c) 2023-2024 Wu Jianhua\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n\n%define MAX_PB_SIZE 128\n\nSECTION_RODATA 32\n\npw_0    times 2 dw   0\npw_1    times 2 dw   1\npw_4    times 2 dw   4\npw_12   times 2 dw  12\npw_256  times 2 dw 256\n\n%macro AVG_JMP_TABLE 3-*\n    %xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\n%if ARCH_X86_64\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n%endif\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:2", "text": "%xdefine %1_%2_%3_table (%%table - 2*%4)\n    %xdefine %%base %1_%2_%3_table\n    %xdefine %%prefix mangle(private_prefix %+ _vvc_%1_%2bpc_%3)\n    %%table:\n    %rep %0 - 3\n        dd %%prefix %+ .w%4 - %%base\n        %rotate 1\n    %endrep\n%endmacro\n\n%if ARCH_X86_64\nAVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128\nAVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128\n%endif\n\nSECTION .text\n\n%macro AVG_W16_FN 3 ; bpc, op, count\n    %assign %%i 0\n    %rep %3\n        %define off %%i\n        AVG_LOAD_W16        0, off\n        %2\n        AVG_SAVE_W16       %1, 0, off\n\n\n        AVG_LOAD_W16        1, off\n        %2\n        AVG_SAVE_W16       %1, 1, off\n\n        %assign %%i %%i+1\n    %endrep\n%endmacro\n\n%macro AVG_FN 2 ; bpc, op\n   jmp                  wq\n\n.w2:\n    movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\n.w8:\n    vinserti128         m0, m0, [src0q], 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:3", "text": "movd                xm0, [src0q]\n    pinsrd              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movd                xm1, [src1q]\n    pinsrd              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W2          %1\n    AVG_LOOP_END        .w2\n\n.w4:\n    movq                xm0, [src0q]\n    pinsrq              xm0, [src0q + AVG_SRC_STRIDE], 1\n    movq                xm1, [src1q]\n    pinsrq              xm1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W4          %1\n\n    AVG_LOOP_END        .w4\n\n.w8:\n    vinserti128         m0, m0, [src0q], 0\n    vinserti128         m0, m0, [src0q + AVG_SRC_STRIDE], 1\n    vinserti128         m1, m1, [src1q], 0\n    vinserti128         m1, m1, [src1q + AVG_SRC_STRIDE], 1\n    %2\n    AVG_SAVE_W8         %1\n\n    AVG_LOOP_END       .w8\n\n.w16:\n    AVG_W16_FN          %1, %2, 1\n\n    AVG_LOOP_END       .w16\n\n.w32:\n    AVG_W16_FN          %1, %2, 2\n\n    AVG_LOOP_END       .w32\n\n.w64:\n    AVG_W16_FN          %1, %2, 4\n\n    AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   0\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n    CLIPW                m0, m3, m4\n%endmacro\n\n%macro W_AVG 0\n    punpckhwd            m5, m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:4", "text": "AVG_LOOP_END       .w64\n\n.w128:\n    AVG_W16_FN          %1, %2, 8\n\n    AVG_LOOP_END       .w128\n\n.ret:\n    RET\n%endmacro\n\n%macro AVG   0\n    paddsw               m0, m1\n    pmulhrsw             m0, m2\n    CLIPW                m0, m3, m4\n%endmacro\n\n%macro W_AVG 0\n    punpckhwd            m5, m0, m1\n    pmaddwd              m5, m3\n    paddd                m5, m4\n    psrad                m5, xm2\n\n    punpcklwd            m0, m0, m1\n    pmaddwd              m0, m3\n    paddd                m0, m4\n    psrad                m0, xm2\n\n    packssdw             m0, m5\n    CLIPW                m0, m6, m7\n%endmacro\n\n%macro AVG_LOAD_W16 2  ; line, offset\n    movu               m0, [src0q + %1 * AVG_SRC_STRIDE + %2 * 32]\n    movu               m1, [src1q + %1 * AVG_SRC_STRIDE + %2 * 32]\n%endmacro\n\n%macro AVG_SAVE_W2 1 ;bpc\n    %if %1 == 16\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        pextrq           [dstq], xm0, 0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:5", "text": "pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrw           [dstq], xm0, 0\n        pextrw [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W4 1 ;bpc\n    %if %1 == 16\n        pextrq           [dstq], xm0, 0\n        pextrq [dstq + strideq], xm0, 1\n    %else\n        packuswb           m0, m0\n        pextrd           [dstq], xm0, 0\n        pextrd [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W8 1 ;bpc\n    %if %1 == 16\n        vextracti128            [dstq], m0, 0\n        vextracti128  [dstq + strideq], m0, 1\n    %else\n        packuswb                    m0, m0\n        vpermq                      m0, m0, 1000b\n        pextrq                  [dstq], xm0, 0\n        pextrq        [dstq + strideq], xm0, 1\n    %endif\n%endmacro\n\n%macro AVG_SAVE_W16 3 ; bpc, line, offset\n    %if %1 == 16\n        movu               [dstq + %2 * strideq + %3 * 32], m0\n    %else\n        packuswb                                        m0, m0\n        vpermq                                          m0, m0, 1000b\n        vextracti128       [dstq + %2 * strideq + %3 * 16], m0, 0\n    %endif\n%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 5, dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:6", "text": "%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 5, dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 8, dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:7", "text": ";void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 8, 8, dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:8", "text": "lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8\n%endif\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bf62ddc7bf7a54f3a50e66dbd9b1edc70b5773ef/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 281, "line_end": 303}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:6", "text": "%endmacro\n\n%macro AVG_LOOP_END 1\n    sub                  hd, 2\n    je                 .ret\n\n    lea               src0q, [src0q + 2 * AVG_SRC_STRIDE]\n    lea               src1q, [src1q + 2 * AVG_SRC_STRIDE]\n    lea                dstq, [dstq + 2 * strideq]\n    jmp                  %1\n%endmacro\n\n%define AVG_SRC_STRIDE MAX_PB_SIZE*2\n\n;void ff_vvc_avg_%1bpc_avx2(uint8_t *dst, ptrdiff_t dst_stride,\n;   const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height, intptr_t pixel_max);\n%macro VVC_AVG_AVX2 1\ncglobal vvc_avg_%1bpc, 4, 7, 5, dst, stride, src0, src1, w, h, bd\n    movifnidn            hd, hm\n\n    pxor                 m3, m3             ; pixel min\n    vpbroadcastw         m4, bdm            ; pixel max\n\n    movifnidn           bdd, bdm\n    inc                 bdd\n    tzcnt               bdd, bdd            ; bit depth\n\n    sub                 bdd, 8\n    movd                xm0, bdd\n    vpbroadcastd         m1, [pw_4]\n    pminuw               m0, m1\n    vpbroadcastd         m2, [pw_256]\n    psllw                m2, xm0                ; shift\n\n    lea                  r6, [avg_%1 %+ SUFFIX %+ _table]\n    tzcnt                wd, wm\n    movsxd               wq, dword [r6+wq*4]\n    add                  wq, r6\n    AVG_FN               %1, AVG\n%endmacro\n\n;void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 7, 8, dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "326cc01de9551e71a5bb4784bc20434c005415bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/326cc01de9551e71a5bb4784bc20434c005415bd/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_mc.asm:7", "text": ";void ff_vvc_w_avg_%1bpc_avx(uint8_t *dst, ptrdiff_t dst_stride,\n;    const int16_t *src0, const int16_t *src1, intptr_t width, intptr_t height,\n;    intptr_t denom, intptr_t w0, intptr_t w1,  intptr_t o0, intptr_t o1, intptr_t pixel_max);\n%macro VVC_W_AVG_AVX2 1\ncglobal vvc_w_avg_%1bpc, 4, 7, 8, dst, stride, src0, src1, w, h, t0, t1\n\n    movifnidn            hd, hm\n\n    movifnidn           t0d, r8m                ; w1\n    shl                 t0d, 16\n    mov                 t0w, r7m                ; w0\n    movd                xm3, t0d\n    vpbroadcastd         m3, xm3                ; w0, w1\n\n    pxor                m6, m6                  ;pixel min\n    vpbroadcastw        m7, r11m                ;pixel max\n\n    mov                 t1q, rcx                ; save ecx\n    mov                 ecx, r11m\n    inc                 ecx                     ; bd\n    tzcnt               ecx, ecx\n    sub                 ecx, 8\n    mov                 t0d, r9m                ; o0\n    add                 t0d, r10m               ; o1\n    shl                 t0d, cl\n    inc                 t0d                     ;((o0 + o1) << (BIT_DEPTH - 8)) + 1\n\n    neg                 ecx\n    add                 ecx, 4                  ; bd - 12\n    cmovl               ecx, [pw_0]\n    add                 ecx, 3\n    add                 ecx, r6m\n    movd                xm2, ecx                ; shift\n\n    dec                ecx\n    shl                t0d, cl\n    movd               xm4, t0d\n    vpbroadcastd        m4, xm4                 ; offset\n    mov                rcx, t1q                 ; restore ecx\n\n    lea                 r6, [w_avg_%1 %+ SUFFIX %+ _table]\n    tzcnt               wd, wm\n    movsxd              wq, dword [r6+wq*4]\n    add                 wq, r6\n    AVG_FN              %1, W_AVG\n%endmacro\n\n%if ARCH_X86_64\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n\nVVC_AVG_AVX2 16\n\nVVC_AVG_AVX2 8\n\nVVC_W_AVG_AVX2 16\n\nVVC_W_AVG_AVX2 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_mc.asm", "license": "LGPL-2.1", "commit": "326cc01de9551e71a5bb4784bc20434c005415bd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/326cc01de9551e71a5bb4784bc20434c005415bd/libavcodec/x86/vvc/vvc_mc.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_of.asm:9", "text": "pxor                   m12, m12\n    pxor                   m13, m13\n\n    BDOF_PROF_GRAD           0, 0\n%endif\n\n    mova                   m14, m12\n    mova                   m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 1, 0\n    BDOF_PROF_GRAD  %1 * 4 + 2, 0\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    pxor                   m12, m12\n    pxor                   m13, m13\n    BDOF_PROF_GRAD  %1 * 4 + 3, %2\n%if (%2) == 0\n    BDOF_PROF_GRAD  %1 * 4 + 4, 0\n%endif\n    paddw                  m14, m12\n    paddw                  m15, m13\n\n    BDOF_VX_VY              14, 15\n    APPLY_BDOF_MIN_BLOCK    %1, m14, m15, bd\n    lea                   dstq, [dstq + 4 * dsq]\n%endmacro\n\n;void ff_vvc_apply_bdof_%1(uint8_t *dst, const ptrdiff_t dst_stride, int16_t *src0, int16_t *src1,\n;    const int w, const int h, const int int pixel_max)\n%macro BDOF_AVX2 0\ncglobal vvc_apply_bdof, 7, 10, 16, BDOF_STACK_SIZE*32, dst, ds, src0, src1, w, h, pixel_max, ds3, tmp0, tmp1\n\n    lea                   ds3q, [dsq * 3]\n    sub                  src0q, SRC_STRIDE + SRC_PS\n    sub                  src1q, SRC_STRIDE + SRC_PS\n\n    BDOF_MINI_BLOCKS         0, 0\n\n    cmp                     hd, 16\n    je                    .h16\n    BDOF_MINI_BLOCKS         1, 1\n    jmp                   .end\n\n.h16:\n    BDOF_MINI_BLOCKS         1, 0\n    BDOF_MINI_BLOCKS         2, 0\n    BDOF_MINI_BLOCKS         3, 1\n\n.end:\n    RET\n%endmacro\n\n%macro VVC_OF_AVX2 0\n    BDOF_AVX2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_of.asm", "license": "LGPL-2.1", "commit": "15eb10c6deea1103d5ae7c5acd36e10af511672b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/15eb10c6deea1103d5ae7c5acd36e10af511672b/libavcodec/x86/vvc/vvc_of.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_sad.asm:1", "text": "; /*\n; * Provide SIMD DMVR SAD functions for VVC decoding\n; *\n; * Copyright (c) 2024 Stone Chen\n; *\n; * This file is part of FFmpeg.\n; *\n; * FFmpeg is free software; you can redistribute it and/or\n; * modify it under the terms of the GNU Lesser General Public\n; * License as published by the Free Software Foundation; either\n; * version 2.1 of the License, or (at your option) any later version.\n; *\n; * FFmpeg is distributed in the hope that it will be useful,\n; * but WITHOUT ANY WARRANTY; without even the implied warranty of\n; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; * Lesser General Public License for more details.\n; *\n; * You should have received a copy of the GNU Lesser General Public\n; * License along with FFmpeg; if not, write to the Free Software\n; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n; */\n\n%include \"libavutil/x86/x86util.asm\"\n%define MAX_PB_SIZE 128\n%define ROWS 2\n\nSECTION_RODATA\n\npw_1: times 2 dw 1\n\n; DMVR SAD is only calculated on even rows to reduce complexity\nSECTION .text\n\n%macro MIN_MAX_SAD 3\n    pminuw           %3, %2, %1\n    pmaxuw           %1, %2, %1\n    psubusw          %1, %1, %3\n%endmacro\n\n%macro HORIZ_ADD 3  ; xm0, xm1, m1\n    vextracti128     %1, %3, q0001  ;        3        2      1          0\n    paddd            %1, %2         ; xm0 (7 + 3) (6 + 2) (5 + 1)   (4 + 0)\n    pshufd           %2, %1, q0032  ; xm1    -      -     (7 + 3)   (6 + 2)\n    paddd            %1, %1, %2     ; xm0    _      _     (5 1 7 3) (4 0 6 2)\n    pshufd           %2, %1, q0001  ; xm1    _      _     (5 1 7 3) (5 1 7 3)\n    paddd            %1, %1, %2     ;                               (01234567)\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\n\ncglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_idx\n    movsxdifnidn    dxq, dxd\n    movsxdifnidn    dyq, dyd\n\n    sub             dxq, 2\n    sub             dyq, 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_sad.asm", "license": "LGPL-2.1", "commit": "8155808ce6030a6aed3201cf426a256776a36392", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8155808ce6030a6aed3201cf426a256776a36392/libavcodec/x86/vvc/vvc_sad.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_sad.asm:2", "text": "vextracti128     %1, %3, q0001  ;        3        2      1          0\n    paddd            %1, %2         ; xm0 (7 + 3) (6 + 2) (5 + 1)   (4 + 0)\n    pshufd           %2, %1, q0032  ; xm1    -      -     (7 + 3)   (6 + 2)\n    paddd            %1, %1, %2     ; xm0    _      _     (5 1 7 3) (4 0 6 2)\n    pshufd           %2, %1, q0001  ; xm1    _      _     (5 1 7 3) (5 1 7 3)\n    paddd            %1, %1, %2     ;                               (01234567)\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\n\ncglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_idx\n    movsxdifnidn    dxq, dxd\n    movsxdifnidn    dyq, dyd\n\n    sub             dxq, 2\n    sub             dyq, 2\n\n    mov             off1q, 2\n    mov             off2q, 2\n\n    add             off1q, dyq\n    sub             off2q, dyq\n\n    shl             off1q, 7\n    shl             off2q, 7\n\n    add             off1q, dxq\n    sub             off2q, dxq\n\n    lea             src1q, [src1q + off1q * 2 + 2 * 2]\n    lea             src2q, [src2q + off2q * 2 + 2 * 2]\n\n    pxor               m3, m3\n    vpbroadcastd       m4, [pw_1]\n\n    cmp          block_wd, 16\n    jge    vvc_sad_16_128\n\n    vvc_sad_8:\n        .loop_height:\n        movu              xm0, [src1q]\n        vinserti128        m0, m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1\n        movu              xm1, [src2q]\n        vinserti128        m1, m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1\n\n        MIN_MAX_SAD        m1, m0, m2\n        pmaddwd            m1, m4\n        paddd              m3, m1\n\n        add         src1q, 2 * MAX_PB_SIZE * ROWS * 2\n        add         src2q, 2 * MAX_PB_SIZE * ROWS * 2\n\n        sub      block_hd, 4\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_sad.asm", "license": "LGPL-2.1", "commit": "8155808ce6030a6aed3201cf426a256776a36392", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8155808ce6030a6aed3201cf426a256776a36392/libavcodec/x86/vvc/vvc_sad.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_sad.asm:3", "text": "vvc_sad_8:\n        .loop_height:\n        movu              xm0, [src1q]\n        vinserti128        m0, m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1\n        movu              xm1, [src2q]\n        vinserti128        m1, m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1\n\n        MIN_MAX_SAD        m1, m0, m2\n        pmaddwd            m1, m4\n        paddd              m3, m1\n\n        add         src1q, 2 * MAX_PB_SIZE * ROWS * 2\n        add         src2q, 2 * MAX_PB_SIZE * ROWS * 2\n\n        sub      block_hd, 4\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n    vvc_sad_16_128:\n        sar      block_wd, 4\n        .loop_height:\n        mov         off1q, src1q\n        mov         off2q, src2q\n        mov      row_idxd, block_wd\n\n        .loop_width:\n            movu               m0, [src1q]\n            movu               m1, [src2q]\n            MIN_MAX_SAD        m1, m0, m2\n            pmaddwd            m1, m4\n            paddd              m3, m1\n\n            add             src1q, 32\n            add             src2q, 32\n            dec          row_idxd\n            jg        .loop_width\n\n        lea         src1q, [off1q + ROWS * MAX_PB_SIZE * 2]\n        lea         src2q, [off2q + ROWS * MAX_PB_SIZE * 2]\n\n        sub      block_hd, 2\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_sad.asm", "license": "LGPL-2.1", "commit": "8155808ce6030a6aed3201cf426a256776a36392", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8155808ce6030a6aed3201cf426a256776a36392/libavcodec/x86/vvc/vvc_sad.asm", "line_start": 81, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_sad.asm:4", "text": "lea         src1q, [off1q + ROWS * MAX_PB_SIZE * 2]\n        lea         src2q, [off2q + ROWS * MAX_PB_SIZE * 2]\n\n        sub      block_hd, 2\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_sad.asm", "license": "LGPL-2.1", "commit": "8155808ce6030a6aed3201cf426a256776a36392", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8155808ce6030a6aed3201cf426a256776a36392/libavcodec/x86/vvc/vvc_sad.asm", "line_start": 121, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_sad.asm:2", "text": "vextracti128     %1, %3, q0001  ;        3        2      1          0\n    paddd            %1, %2         ; xm0 (7 + 3) (6 + 2) (5 + 1)   (4 + 0)\n    pshufd           %2, %1, q0032  ; xm1    -      -     (7 + 3)   (6 + 2)\n    paddd            %1, %1, %2     ; xm0    _      _     (5 1 7 3) (4 0 6 2)\n    pshufd           %2, %1, q0001  ; xm1    _      _     (5 1 7 3) (5 1 7 3)\n    paddd            %1, %1, %2     ;                               (01234567)\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\n\ncglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_idx\n    movsxdifnidn    dxq, dxd\n    movsxdifnidn    dyq, dyd\n\n    sub             dxq, 2\n    sub             dyq, 2\n\n    mov             off1q, 2\n    mov             off2q, 2\n\n    add             off1q, dyq\n    sub             off2q, dyq\n\n    shl             off1q, 7\n    shl             off2q, 7\n\n    add             off1q, dxq\n    sub             off2q, dxq\n\n    lea             src1q, [src1q + off1q * 2 + 2 * 2]\n    lea             src2q, [src2q + off2q * 2 + 2 * 2]\n\n    pxor               m3, m3\n    vpbroadcastd       m4, [pw_1]\n\n    cmp          block_wd, 16\n    jge    vvc_sad_16_128\n\n    vvc_sad_8:\n        .loop_height:\n        movu              xm0, [src1q]\n        vinserti128        m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1\n        movu              xm1, [src2q]\n        vinserti128        m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1\n\n        MIN_MAX_SAD        m1, m0, m2\n        pmaddwd            m1, m4\n        paddd              m3, m1\n\n        add         src1q, 2 * MAX_PB_SIZE * ROWS * 2\n        add         src2q, 2 * MAX_PB_SIZE * ROWS * 2\n\n        sub      block_hd, 4\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_sad.asm", "license": "LGPL-2.1", "commit": "0e52a4e4347550ca1ccc1bf896b52824ed259158", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0e52a4e4347550ca1ccc1bf896b52824ed259158/libavcodec/x86/vvc/vvc_sad.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/vvc/vvc_sad.asm:3", "text": "vvc_sad_8:\n        .loop_height:\n        movu              xm0, [src1q]\n        vinserti128        m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1\n        movu              xm1, [src2q]\n        vinserti128        m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1\n\n        MIN_MAX_SAD        m1, m0, m2\n        pmaddwd            m1, m4\n        paddd              m3, m1\n\n        add         src1q, 2 * MAX_PB_SIZE * ROWS * 2\n        add         src2q, 2 * MAX_PB_SIZE * ROWS * 2\n\n        sub      block_hd, 4\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n    vvc_sad_16_128:\n        sar      block_wd, 4\n        .loop_height:\n        mov         off1q, src1q\n        mov         off2q, src2q\n        mov      row_idxd, block_wd\n\n        .loop_width:\n            movu               m0, [src1q]\n            movu               m1, [src2q]\n            MIN_MAX_SAD        m1, m0, m2\n            pmaddwd            m1, m4\n            paddd              m3, m1\n\n            add             src1q, 32\n            add             src2q, 32\n            dec          row_idxd\n            jg        .loop_width\n\n        lea         src1q, [off1q + ROWS * MAX_PB_SIZE * 2]\n        lea         src2q, [off2q + ROWS * MAX_PB_SIZE * 2]\n\n        sub      block_hd, 2\n        jg   .loop_height\n\n        HORIZ_ADD     xm0, xm3, m3\n        movd          eax, xm0\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/vvc/vvc_sad.asm", "license": "LGPL-2.1", "commit": "0e52a4e4347550ca1ccc1bf896b52824ed259158", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0e52a4e4347550ca1ccc1bf896b52824ed259158/libavcodec/x86/vvc/vvc_sad.asm", "line_start": 81, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:2", "text": "; http://www.elecard.com/peter/idct.html\n; http://www.linuxvideo.org/mpeg2dec/\n;\n; These examples contain code fragments for first stage iDCT 8x8\n; (for rows) and first stage DCT 8x8 (for columns)\n;\n; conversion to gcc syntax by Michael Niedermayer\n;\n; ======================================================================\n;\n; This file is part of FFmpeg.\n;\n; FFmpeg is free software; you can redistribute it and/or\n; modify it under the terms of the GNU Lesser General Public\n; License as published by the Free Software Foundation; either\n; version 2.1 of the License, or (at your option) any later version.\n;\n; FFmpeg is distributed in the hope that it will be useful,\n; but WITHOUT ANY WARRANTY; without even the implied warranty of\n; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; Lesser General Public License for more details.\n;\n; You should have received a copy of the GNU Lesser General Public License\n; along with FFmpeg; if not, write to the Free Software Foundation,\n; Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\ntan1:   times 8 dw 13036\ntan2:   times 8 dw 27146\ntan3:   times 8 dw 43790\nsqrt2:  times 8 dw 23170\n\n; SSE2 tables\niTab1:  dw 0x4000, 0x539f, 0xc000, 0xac61, 0x4000, 0xdd5d, 0x4000, 0xdd5d\n        dw 0x4000, 0x22a3, 0x4000, 0x22a3, 0xc000, 0x539f, 0x4000, 0xac61\n        dw 0x3249, 0x11a8, 0x4b42, 0xee58, 0x11a8, 0x4b42, 0x11a8, 0xcdb7\n        dw 0x58c5, 0x4b42, 0xa73b, 0xcdb7, 0x3249, 0xa73b, 0x4b42, 0xa73b\niTab2:  dw 0x58c5, 0x73fc, 0xa73b, 0x8c04, 0x58c5, 0xcff5, 0x58c5, 0xcff5\n        dw 0x58c5, 0x300b, 0x58c5, 0x300b, 0xa73b, 0x73fc, 0x58c5, 0x8c04\n        dw 0x45bf, 0x187e, 0x6862, 0xe782, 0x187e, 0x6862, 0x187e, 0xba41\n        dw 0x7b21, 0x6862, 0x84df, 0xba41, 0x45bf, 0x84df, 0x6862, 0x84df\niTab3:  dw 0x539f, 0x6d41, 0xac61, 0x92bf, 0x539f, 0xd2bf, 0x539f, 0xd2bf\n        dw 0x539f, 0x2d41, 0x539f, 0x2d41, 0xac61, 0x6d41, 0x539f, 0x92bf\n        dw 0x41b3, 0x1712, 0x6254, 0xe8ee, 0x1712, 0x6254, 0x1712, 0xbe4d\n        dw 0x73fc, 0x6254, 0x8c04, 0xbe4d, 0x41b3, 0x8c04, 0x6254, 0x8c04\niTab4:  dw 0x4b42, 0x6254, 0xb4be, 0x9dac, 0x4b42, 0xd746, 0x4b42, 0xd746\n        dw 0x4b42, 0x28ba, 0x4b42, 0x28ba, 0xb4be, 0x6254, 0x4b42, 0x9dac\n        dw 0x3b21, 0x14c3, 0x587e, 0xeb3d, 0x14c3, 0x587e, 0x14c3, 0xc4df\n        dw 0x6862, 0x587e, 0x979e, 0xc4df, 0x3b21, 0x979e, 0x587e, 0x979e\n\n; 4 first similar, then: 4*8->6*16  5*8->4*16  6/7*8->5*16\nwalkenIdctRounders: times 4 dd 65536\n                    times 4 dd  3597\n                    times 4 dd  2260\n                    times 4 dd  1203\n                    times 4 dd   120\n                    times 4 dd   512", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:3", "text": "dw 0x58c5, 0x300b, 0x58c5, 0x300b, 0xa73b, 0x73fc, 0x58c5, 0x8c04\n        dw 0x45bf, 0x187e, 0x6862, 0xe782, 0x187e, 0x6862, 0x187e, 0xba41\n        dw 0x7b21, 0x6862, 0x84df, 0xba41, 0x45bf, 0x84df, 0x6862, 0x84df\niTab3:  dw 0x539f, 0x6d41, 0xac61, 0x92bf, 0x539f, 0xd2bf, 0x539f, 0xd2bf\n        dw 0x539f, 0x2d41, 0x539f, 0x2d41, 0xac61, 0x6d41, 0x539f, 0x92bf\n        dw 0x41b3, 0x1712, 0x6254, 0xe8ee, 0x1712, 0x6254, 0x1712, 0xbe4d\n        dw 0x73fc, 0x6254, 0x8c04, 0xbe4d, 0x41b3, 0x8c04, 0x6254, 0x8c04\niTab4:  dw 0x4b42, 0x6254, 0xb4be, 0x9dac, 0x4b42, 0xd746, 0x4b42, 0xd746\n        dw 0x4b42, 0x28ba, 0x4b42, 0x28ba, 0xb4be, 0x6254, 0x4b42, 0x9dac\n        dw 0x3b21, 0x14c3, 0x587e, 0xeb3d, 0x14c3, 0x587e, 0x14c3, 0xc4df\n        dw 0x6862, 0x587e, 0x979e, 0xc4df, 0x3b21, 0x979e, 0x587e, 0x979e\n\n; 4 first similar, then: 4*8->6*16  5*8->4*16  6/7*8->5*16\nwalkenIdctRounders: times 4 dd 65536\n                    times 4 dd  3597\n                    times 4 dd  2260\n                    times 4 dd  1203\n                    times 4 dd   120\n                    times 4 dd   512\n\nSECTION .text\n\n; Temporary storage before the column pass\n%define ROW1 xmm6\n%define ROW3 xmm4\n%define ROW5 xmm5\n%define ROW7 xmm7\n\n%macro CLEAR_ODD 1\n    pxor      %1, %1\n%endmacro\n%macro PUT_ODD 1\n    pshufhw   %1, xmm2, 0x1B\n%endmacro\n\n%macro MOV32 2\n%if ARCH_X86_32\n    movdqa    %2, %1\n%endif\n%endmacro\n\n%macro CLEAR_EVEN 1\n%if ARCH_X86_64\n    CLEAR_ODD %1\n%endif\n%endmacro\n\n%macro PUT_EVEN 1\n%if ARCH_X86_64\n    PUT_ODD   %1\n%else\n    pshufhw xmm2, xmm2, 0x1B\n    movdqa    %1, xmm2\n%endif\n%endmacro\n\n%if ARCH_X86_64\n%define ROW0  xmm8\n%define REG0  ROW0\n%define ROW2  xmm9", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:4", "text": "%macro CLEAR_EVEN 1\n%if ARCH_X86_64\n    CLEAR_ODD %1\n%endif\n%endmacro\n\n%macro PUT_EVEN 1\n%if ARCH_X86_64\n    PUT_ODD   %1\n%else\n    pshufhw xmm2, xmm2, 0x1B\n    movdqa    %1, xmm2\n%endif\n%endmacro\n\n%if ARCH_X86_64\n%define ROW0  xmm8\n%define REG0  ROW0\n%define ROW2  xmm9\n%define REG2  ROW2\n%define ROW4  xmm10\n%define REG4  ROW4\n%define ROW6  xmm11\n%define REG6  ROW6\n%define XMMS  xmm12\n%define SREG2 REG2\n%define TAN3  xmm13\n%define TAN1  xmm14\n%else\n%define ROW0  [BLOCK + 0*16]\n%define REG0  xmm4\n%define ROW2  [BLOCK + 2*16]\n%define REG2  xmm4\n%define ROW4  [BLOCK + 4*16]\n%define REG4  xmm6\n%define ROW6  [BLOCK + 6*16]\n%define REG6  xmm6\n%define XMMS  xmm2\n%define SREG2 xmm7\n%define TAN3  xmm0\n%define TAN1  xmm2\n%endif\n\n%macro JZ  3\n    test    %1%3, %1%3\n    jz       .%2\n%endmacro\n\n%macro JNZ  3\n    test    %1%3, %1%3\n    jnz      .%2\n%endmacro\n\n%macro TEST_ONE_ROW 4 ; src, reg, clear, arg\n    %3        %4\n    mova       m1, [%1]\n    ; due to signed saturation, m1 is all zero iff m1 is all zero after packing\n    packsswb   m1, m1\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:5", "text": "%define TAN3  xmm0\n%define TAN1  xmm2\n%endif\n\n%macro JZ  3\n    test    %1%3, %1%3\n    jz       .%2\n%endmacro\n\n%macro JNZ  3\n    test    %1%3, %1%3\n    jnz      .%2\n%endmacro\n\n%macro TEST_ONE_ROW 4 ; src, reg, clear, arg\n    %3        %4\n    mova       m1, [%1]\n    ; due to signed saturation, m1 is all zero iff m1 is all zero after packing\n    packsswb   m1, m1\n%if ARCH_X86_64\n    movq       %2, m1\n%else\n    packsswb   m1, m1\n    movd       %2, m1\n%endif\n%endmacro\n\n;row1, row2, reg1, reg2, clear1, arg1, clear2, arg2\n%macro  TEST_TWO_ROWS  8\n    %5         %6\n    %7         %8\n    mova       m1, [%1]\n    packsswb   m1, [%2]\n    packsswb   m1, m1\n%if ARCH_X86_64\n    movq       %4, m1\n    mov       %3d, %4d\n    shr       %4q, 32\n%else\n    packsswb   m1, m1\n    movd       %3, m1\n    mov        %4, %3\n    shr        %4, 16\n    and        %3, 0xFFFF\n%endif\n%endmacro\n\n; IDCT pass on rows.\n%macro iMTX_MULT   4-5 ; src, table, put, arg, rounder\n    movdqa       xmm3, [%1]\n    movdqa       xmm0, xmm3\n    pshufd       xmm1, xmm3, 0x11 ; 4602\n    punpcklqdq   xmm0, xmm0       ; 0246\n    pmaddwd      xmm0, [%2]\n    pmaddwd      xmm1, [%2+16]\n    pshufd       xmm2, xmm3, 0xBB ; 5713\n    punpckhqdq   xmm3, xmm3       ; 1357\n    pmaddwd      xmm2, [%2+32]\n    pmaddwd      xmm3, [%2+48]\n    paddd        xmm0, xmm1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:6", "text": "movd       %3, m1\n    mov        %4, %3\n    shr        %4, 16\n    and        %3, 0xFFFF\n%endif\n%endmacro\n\n; IDCT pass on rows.\n%macro iMTX_MULT   4-5 ; src, table, put, arg, rounder\n    movdqa       xmm3, [%1]\n    movdqa       xmm0, xmm3\n    pshufd       xmm1, xmm3, 0x11 ; 4602\n    punpcklqdq   xmm0, xmm0       ; 0246\n    pmaddwd      xmm0, [%2]\n    pmaddwd      xmm1, [%2+16]\n    pshufd       xmm2, xmm3, 0xBB ; 5713\n    punpckhqdq   xmm3, xmm3       ; 1357\n    pmaddwd      xmm2, [%2+32]\n    pmaddwd      xmm3, [%2+48]\n    paddd        xmm0, xmm1\n    paddd        xmm2, xmm3\n%if %0 == 5\n    paddd        xmm0, [walkenIdctRounders+%5]\n%endif\n    movdqa       xmm3, xmm2\n    paddd        xmm2, xmm0\n    psubd        xmm0, xmm3\n    psrad        xmm2, 11\n    psrad        xmm0, 11\n    packssdw     xmm2, xmm0\n    %3           %4\n%endmacro\n\n%macro iLLM_HEAD 0\n    movdqa   TAN3, [tan3]\n    movdqa   TAN1, [tan1]\n%endmacro\n\n%macro FIRST_HALF 2  ; %1=dct  %2=type(normal,add,put)\n    psraw    xmm5, 6\n    psraw    REG0, 6\n    psraw    TAN3, 6\n    psraw    xmm3, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n%else\n    ; Must now load args as gprs are no longer used for masks\n    ; DEST is set to where address of dest was loaded\n    %if ARCH_X86_32\n        %if %2 == 2 ; Not enough xmms, store\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n        %endif\n    %xdefine DEST r2q ; BLOCK is r0, stride r1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:7", "text": "psraw    REG0, 6\n    psraw    TAN3, 6\n    psraw    xmm3, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n%else\n    ; Must now load args as gprs are no longer used for masks\n    ; DEST is set to where address of dest was loaded\n    %if ARCH_X86_32\n        %if %2 == 2 ; Not enough xmms, store\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n        %endif\n    %xdefine DEST r2q ; BLOCK is r0, stride r1\n    movifnidn DEST, destm\n    movifnidn strideq, stridem\n    %else\n    %xdefine DEST r0q\n    %endif\n    lea      r3q, [3*strideq]\n    %if %2 == 1\n    packuswb TAN3, xmm3\n    packuswb xmm5, REG0\n    movq     [DEST + strideq], TAN3\n    movhps   [DEST + 2*strideq], TAN3\n    ; REG0 and TAN3 are now available (and likely used in second half)\n    %endif\n%endif\n%endmacro\n\n%macro SECOND_HALF 6 ; %1=dct  %2=type(normal,add,put) 3-6: xmms\n    psraw    %3, 6\n    psraw    %4, 6\n    psraw    %5, 6\n    psraw    %6, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+0*16], %3\n    movdqa   [%1+3*16], %5\n    movdqa   [%1+4*16], %6\n    movdqa   [%1+7*16], %4\n%elif %2 == 1\n    packuswb %3, %5\n    packuswb %6, %4\n    ; address of dest may have been loaded\n    movq     [DEST], %3\n    movhps   [DEST + r3q], %3\n    lea      DEST, [DEST + 4*strideq]\n    movq     [DEST], %6\n    movhps   [DEST + r3q], %6\n    ; and now write remainder of first half\n    movq     [DEST + 2*strideq], xmm5\n    movhps   [DEST + strideq], xmm5\n%elif %2 == 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:8", "text": "psraw    %6, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+0*16], %3\n    movdqa   [%1+3*16], %5\n    movdqa   [%1+4*16], %6\n    movdqa   [%1+7*16], %4\n%elif %2 == 1\n    packuswb %3, %5\n    packuswb %6, %4\n    ; address of dest may have been loaded\n    movq     [DEST], %3\n    movhps   [DEST + r3q], %3\n    lea      DEST, [DEST + 4*strideq]\n    movq     [DEST], %6\n    movhps   [DEST + r3q], %6\n    ; and now write remainder of first half\n    movq     [DEST + 2*strideq], xmm5\n    movhps   [DEST + strideq], xmm5\n%elif %2 == 2\n    pxor        xmm0, xmm0\n    %if ARCH_X86_32\n    ; free: m3 REG0=m4 m5\n    ; input: m1, m7, m2, m6\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    paddsw      xmm3, %3\n    paddsw      xmm4, [%1 + 1*16]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw        %3, [%1 + 2*16]\n    paddsw      xmm5, %5\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw      xmm3, %6\n    paddsw      xmm4, [%1 + 5*16]\n    paddsw        %3, [%1 + 6*16]\n    paddsw      xmm5, %4\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:9", "text": "movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw      xmm3, %6\n    paddsw      xmm4, [%1 + 5*16]\n    paddsw        %3, [%1 + 6*16]\n    paddsw      xmm5, %4\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    %else\n    ; l1:TAN3=m13  l2:m3  l5:REG0=m8 l6=m5\n    ; input: m1, m7/SREG2=m9, TAN1=m14, REG4=m10\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %3\n    paddsw      xmm4, TAN3\n    paddsw     xmm12, xmm3\n    paddsw     xmm11, %5\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %6\n    paddsw      xmm4, REG0\n    paddsw     xmm12, xmm5\n    paddsw     xmm11, %4\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:10", "text": "movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %6\n    paddsw      xmm4, REG0\n    paddsw     xmm12, xmm5\n    paddsw     xmm11, %4\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    %endif\n%endif\n%endmacro\n\n\n; IDCT pass on columns.\n%macro iLLM_PASS  2  ; %1=dct  %2=type(normal,add,put)\n    movdqa   xmm1, TAN3\n    movdqa   xmm3, TAN1\n    pmulhw   TAN3, xmm4\n    pmulhw   xmm1, xmm5\n    paddsw   TAN3, xmm4\n    paddsw   xmm1, xmm5\n    psubsw   TAN3, xmm5\n    paddsw   xmm1, xmm4\n    pmulhw   xmm3, xmm7\n    pmulhw   TAN1, xmm6\n    paddsw   xmm3, xmm6\n    psubsw   TAN1, xmm7\n    movdqa   xmm7, xmm3\n    movdqa   xmm6, TAN1\n    psubsw   xmm3, xmm1\n    psubsw   TAN1, TAN3\n    paddsw   xmm1, xmm7\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm7, [tan2]\n    MOV32    ROW2, REG2\n    MOV32    ROW6, REG6\n    movdqa   xmm5, xmm7\n    pmulhw   xmm7, REG6\n    pmulhw   xmm5, REG2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:11", "text": "movdqa   xmm7, xmm3\n    movdqa   xmm6, TAN1\n    psubsw   xmm3, xmm1\n    psubsw   TAN1, TAN3\n    paddsw   xmm1, xmm7\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm7, [tan2]\n    MOV32    ROW2, REG2\n    MOV32    ROW6, REG6\n    movdqa   xmm5, xmm7\n    pmulhw   xmm7, REG6\n    pmulhw   xmm5, REG2\n    paddsw   xmm7, REG2\n    psubsw   xmm5, REG6\n    MOV32    ROW0, REG0\n    MOV32    ROW4, REG4\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, REG4\n    paddsw   REG4, XMMS\n    movdqa   XMMS, REG4\n    psubsw   REG4, xmm7\n    paddsw   xmm7, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, xmm7\n    movdqa   xmm4, REG4\n    psubsw   xmm7, xmm1\n    psubsw   REG4, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, xmm7, TAN1, REG4\n%endmacro\n\n; IDCT pass on columns, assuming rows 4-7 are zero\n%macro iLLM_PASS_SPARSE   2 ; %1=dct   %2=type(normal,put,add)\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, xmm4\n    movdqa   xmm3, xmm6\n    pmulhw   TAN1, xmm6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:12", "text": "MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, xmm7\n    movdqa   xmm4, REG4\n    psubsw   xmm7, xmm1\n    psubsw   REG4, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, xmm7, TAN1, REG4\n%endmacro\n\n; IDCT pass on columns, assuming rows 4-7 are zero\n%macro iLLM_PASS_SPARSE   2 ; %1=dct   %2=type(normal,put,add)\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, xmm4\n    movdqa   xmm3, xmm6\n    pmulhw   TAN1, xmm6\n    movdqa   xmm1, xmm4\n    psubsw   xmm3, xmm1\n    paddsw   xmm1, xmm6\n    movdqa   xmm6, TAN1\n    psubsw   TAN1, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm5, [tan2]\n    MOV32    ROW2, SREG2\n    pmulhw   xmm5, SREG2\n    MOV32    ROW0, REG0\n    movdqa   xmm6, REG0\n    psubsw   xmm6, SREG2\n    paddsw  SREG2, REG0\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, SREG2\n    movdqa   xmm4, xmm6\n    psubsw  SREG2, xmm1\n    psubsw   xmm6, TAN1\n    paddsw   xmm1, xmm0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:13", "text": "paddsw  SREG2, REG0\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, SREG2\n    movdqa   xmm4, xmm6\n    psubsw  SREG2, xmm1\n    psubsw   xmm6, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, SREG2, TAN1, xmm6\n%endmacro\n\n%macro IDCT_SSE2 1 ; 0=normal  1=put  2=add\n%if %1 == 0 || ARCH_X86_32\n    %define GPR0  r1\n    %define GPR1  r2\n    %define GPR2  r3\n    %define GPR3  r4\n    %define NUM_GPRS 5\n%else\n    %define GPR0  r3\n    %define GPR1  r4\n    %define GPR2  r5\n    %define GPR3  r6\n    %define NUM_GPRS 7\n%endif\n%if %1 == 0\ncglobal xvid_idct, 1, NUM_GPRS, 8+7*ARCH_X86_64, block\n%xdefine BLOCK blockq\n%else\n    %if %1 == 1\ncglobal xvid_idct_put, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %else\ncglobal xvid_idct_add, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %endif\n    %if ARCH_X86_64\n    %xdefine BLOCK blockq\n    %else\n    mov    r0q, blockm\n    %xdefine BLOCK r0q\n    %endif\n%endif\n    iMTX_MULT      BLOCK + 0*16, iTab1, PUT_EVEN, ROW0, 0*16\n    iMTX_MULT      BLOCK + 1*16, iTab2, PUT_ODD, ROW1,  1*16\n    iMTX_MULT      BLOCK + 2*16, iTab3, PUT_EVEN, ROW2, 2*16\n\n    TEST_TWO_ROWS  BLOCK + 3*16, BLOCK + 4*16, GPR0, GPR1, CLEAR_ODD, ROW3, CLEAR_EVEN, ROW4 ; a, c", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:14", "text": "cglobal xvid_idct, 1, NUM_GPRS, 8+7*ARCH_X86_64, block\n%xdefine BLOCK blockq\n%else\n    %if %1 == 1\ncglobal xvid_idct_put, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %else\ncglobal xvid_idct_add, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %endif\n    %if ARCH_X86_64\n    %xdefine BLOCK blockq\n    %else\n    mov    r0q, blockm\n    %xdefine BLOCK r0q\n    %endif\n%endif\n    iMTX_MULT      BLOCK + 0*16, iTab1, PUT_EVEN, ROW0, 0*16\n    iMTX_MULT      BLOCK + 1*16, iTab2, PUT_ODD, ROW1,  1*16\n    iMTX_MULT      BLOCK + 2*16, iTab3, PUT_EVEN, ROW2, 2*16\n\n    TEST_TWO_ROWS  BLOCK + 3*16, BLOCK + 4*16, GPR0, GPR1, CLEAR_ODD, ROW3, CLEAR_EVEN, ROW4 ; a, c\n    JZ   GPR0, col1, d\n    iMTX_MULT      BLOCK + 3*16, iTab4, PUT_ODD, ROW3,  3*16\n.col1:\n    TEST_TWO_ROWS  BLOCK + 5*16, BLOCK + 6*16, GPR0, GPR2, CLEAR_ODD, ROW5, CLEAR_EVEN, ROW6 ; a, d\n    TEST_ONE_ROW   BLOCK + 7*16, GPR3, CLEAR_ODD, ROW7 ; esi\n\n    iLLM_HEAD\n    JNZ  GPR1, 2, d\n    JNZ  GPR0, 3, d\n    JNZ  GPR2, 4, d\n    JNZ  GPR3, 5, q\n    iLLM_PASS_SPARSE BLOCK, %1\n    jmp .6\n.2:\n    iMTX_MULT     BLOCK + 4*16, iTab1, PUT_EVEN, ROW4\n.3:\n    iMTX_MULT     BLOCK + 5*16, iTab4, PUT_ODD, ROW5,  4*16\n    JZ   GPR2, col2, d\n.4:\n    iMTX_MULT     BLOCK + 6*16, iTab3, PUT_EVEN, ROW6, 5*16\n.col2:\n    JZ   GPR3, col3, q\n.5:\n    iMTX_MULT     BLOCK + 7*16, iTab2, PUT_ODD, ROW7,  5*16\n.col3:\n%if ARCH_X86_32\n    iLLM_HEAD\n%endif\n    iLLM_PASS     BLOCK, %1\n.6:\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_SSE2 0\nIDCT_SSE2 1\nIDCT_SSE2 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 521, "line_end": 577}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:15", "text": ".col2:\n    JZ   GPR3, col3, q\n.5:\n    iMTX_MULT     BLOCK + 7*16, iTab2, PUT_ODD, ROW7,  5*16\n.col3:\n%if ARCH_X86_32\n    iLLM_HEAD\n%endif\n    iLLM_PASS     BLOCK, %1\n.6:\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_SSE2 0\nIDCT_SSE2 1\nIDCT_SSE2 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavcodec/x86/xvididct.asm", "line_start": 561, "line_end": 577}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:2", "text": "; http://www.elecard.com/peter/idct.html\n; http://www.linuxvideo.org/mpeg2dec/\n;\n; These examples contain code fragments for first stage iDCT 8x8\n; (for rows) and first stage DCT 8x8 (for columns)\n;\n; conversion to gcc syntax by Michael Niedermayer\n;\n; ======================================================================\n;\n; This file is part of FFmpeg.\n;\n; FFmpeg is free software; you can redistribute it and/or\n; modify it under the terms of the GNU Lesser General Public\n; License as published by the Free Software Foundation; either\n; version 2.1 of the License, or (at your option) any later version.\n;\n; FFmpeg is distributed in the hope that it will be useful,\n; but WITHOUT ANY WARRANTY; without even the implied warranty of\n; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n; Lesser General Public License for more details.\n;\n; You should have received a copy of the GNU Lesser General Public License\n; along with FFmpeg; if not, write to the Free Software Foundation,\n; Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n; Similar to tg_1_16 in MMX code\ntan1:   times 8 dw 13036\ntan2:   times 8 dw 27146\ntan3:   times 8 dw 43790\nsqrt2:  times 8 dw 23170\n\n; SSE2 tables\niTab1:  dw 0x4000, 0x539f, 0xc000, 0xac61, 0x4000, 0xdd5d, 0x4000, 0xdd5d\n        dw 0x4000, 0x22a3, 0x4000, 0x22a3, 0xc000, 0x539f, 0x4000, 0xac61\n        dw 0x3249, 0x11a8, 0x4b42, 0xee58, 0x11a8, 0x4b42, 0x11a8, 0xcdb7\n        dw 0x58c5, 0x4b42, 0xa73b, 0xcdb7, 0x3249, 0xa73b, 0x4b42, 0xa73b\niTab2:  dw 0x58c5, 0x73fc, 0xa73b, 0x8c04, 0x58c5, 0xcff5, 0x58c5, 0xcff5\n        dw 0x58c5, 0x300b, 0x58c5, 0x300b, 0xa73b, 0x73fc, 0x58c5, 0x8c04\n        dw 0x45bf, 0x187e, 0x6862, 0xe782, 0x187e, 0x6862, 0x187e, 0xba41\n        dw 0x7b21, 0x6862, 0x84df, 0xba41, 0x45bf, 0x84df, 0x6862, 0x84df\niTab3:  dw 0x539f, 0x6d41, 0xac61, 0x92bf, 0x539f, 0xd2bf, 0x539f, 0xd2bf\n        dw 0x539f, 0x2d41, 0x539f, 0x2d41, 0xac61, 0x6d41, 0x539f, 0x92bf\n        dw 0x41b3, 0x1712, 0x6254, 0xe8ee, 0x1712, 0x6254, 0x1712, 0xbe4d\n        dw 0x73fc, 0x6254, 0x8c04, 0xbe4d, 0x41b3, 0x8c04, 0x6254, 0x8c04\niTab4:  dw 0x4b42, 0x6254, 0xb4be, 0x9dac, 0x4b42, 0xd746, 0x4b42, 0xd746\n        dw 0x4b42, 0x28ba, 0x4b42, 0x28ba, 0xb4be, 0x6254, 0x4b42, 0x9dac\n        dw 0x3b21, 0x14c3, 0x587e, 0xeb3d, 0x14c3, 0x587e, 0x14c3, 0xc4df\n        dw 0x6862, 0x587e, 0x979e, 0xc4df, 0x3b21, 0x979e, 0x587e, 0x979e\n\n; Similar to rounder_0 in MMX code\n; 4 first similar, then: 4*8->6*16  5*8->4*16  6/7*8->5*16\nwalkenIdctRounders: times 4 dd 65536\n                    times 4 dd  3597\n                    times 4 dd  2260\n                    times 4 dd  1203\n                    times 4 dd   120", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:3", "text": "iTab2:  dw 0x58c5, 0x73fc, 0xa73b, 0x8c04, 0x58c5, 0xcff5, 0x58c5, 0xcff5\n        dw 0x58c5, 0x300b, 0x58c5, 0x300b, 0xa73b, 0x73fc, 0x58c5, 0x8c04\n        dw 0x45bf, 0x187e, 0x6862, 0xe782, 0x187e, 0x6862, 0x187e, 0xba41\n        dw 0x7b21, 0x6862, 0x84df, 0xba41, 0x45bf, 0x84df, 0x6862, 0x84df\niTab3:  dw 0x539f, 0x6d41, 0xac61, 0x92bf, 0x539f, 0xd2bf, 0x539f, 0xd2bf\n        dw 0x539f, 0x2d41, 0x539f, 0x2d41, 0xac61, 0x6d41, 0x539f, 0x92bf\n        dw 0x41b3, 0x1712, 0x6254, 0xe8ee, 0x1712, 0x6254, 0x1712, 0xbe4d\n        dw 0x73fc, 0x6254, 0x8c04, 0xbe4d, 0x41b3, 0x8c04, 0x6254, 0x8c04\niTab4:  dw 0x4b42, 0x6254, 0xb4be, 0x9dac, 0x4b42, 0xd746, 0x4b42, 0xd746\n        dw 0x4b42, 0x28ba, 0x4b42, 0x28ba, 0xb4be, 0x6254, 0x4b42, 0x9dac\n        dw 0x3b21, 0x14c3, 0x587e, 0xeb3d, 0x14c3, 0x587e, 0x14c3, 0xc4df\n        dw 0x6862, 0x587e, 0x979e, 0xc4df, 0x3b21, 0x979e, 0x587e, 0x979e\n\n; Similar to rounder_0 in MMX code\n; 4 first similar, then: 4*8->6*16  5*8->4*16  6/7*8->5*16\nwalkenIdctRounders: times 4 dd 65536\n                    times 4 dd  3597\n                    times 4 dd  2260\n                    times 4 dd  1203\n                    times 4 dd   120\n                    times 4 dd   512\n                    times 2 dd     0\n\nSECTION .text\n\n; Temporary storage before the column pass\n%define ROW1 xmm6\n%define ROW3 xmm4\n%define ROW5 xmm5\n%define ROW7 xmm7\n\n%macro CLEAR_ODD 1\n    pxor      %1, %1\n%endmacro\n%macro PUT_ODD 1\n    pshufhw   %1, xmm2, 0x1B\n%endmacro\n\n%macro MOV32 2\n%if ARCH_X86_32\n    movdqa    %2, %1\n%endif\n%endmacro\n\n%macro CLEAR_EVEN 1\n%if ARCH_X86_64\n    CLEAR_ODD %1\n%endif\n%endmacro\n\n%macro PUT_EVEN 1\n%if ARCH_X86_64\n    PUT_ODD   %1\n%else\n    pshufhw xmm2, xmm2, 0x1B\n    movdqa    %1, xmm2\n%endif\n%endmacro\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:4", "text": "movdqa    %2, %1\n%endif\n%endmacro\n\n%macro CLEAR_EVEN 1\n%if ARCH_X86_64\n    CLEAR_ODD %1\n%endif\n%endmacro\n\n%macro PUT_EVEN 1\n%if ARCH_X86_64\n    PUT_ODD   %1\n%else\n    pshufhw xmm2, xmm2, 0x1B\n    movdqa    %1, xmm2\n%endif\n%endmacro\n\n%if ARCH_X86_64\n%define ROW0  xmm8\n%define REG0  ROW0\n%define ROW2  xmm9\n%define REG2  ROW2\n%define ROW4  xmm10\n%define REG4  ROW4\n%define ROW6  xmm11\n%define REG6  ROW6\n%define XMMS  xmm12\n%define SREG2 REG2\n%define TAN3  xmm13\n%define TAN1  xmm14\n%else\n%define ROW0  [BLOCK + 0*16]\n%define REG0  xmm4\n%define ROW2  [BLOCK + 2*16]\n%define REG2  xmm4\n%define ROW4  [BLOCK + 4*16]\n%define REG4  xmm6\n%define ROW6  [BLOCK + 6*16]\n%define REG6  xmm6\n%define XMMS  xmm2\n%define SREG2 xmm7\n%define TAN3  xmm0\n%define TAN1  xmm2\n%endif\n\n%macro JZ  3\n    test    %1%3, %1%3\n    jz       .%2\n%endmacro\n\n%macro JNZ  3\n    test    %1%3, %1%3\n    jnz      .%2\n%endmacro\n\n%macro TEST_ONE_ROW 4 ; src, reg, clear, arg\n    %3        %4\n    mova       m1, [%1]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:5", "text": "%define REG6  xmm6\n%define XMMS  xmm2\n%define SREG2 xmm7\n%define TAN3  xmm0\n%define TAN1  xmm2\n%endif\n\n%macro JZ  3\n    test    %1%3, %1%3\n    jz       .%2\n%endmacro\n\n%macro JNZ  3\n    test    %1%3, %1%3\n    jnz      .%2\n%endmacro\n\n%macro TEST_ONE_ROW 4 ; src, reg, clear, arg\n    %3        %4\n    mova       m1, [%1]\n    ; due to signed saturation, m1 is all zero iff m1 is all zero after packing\n    packsswb   m1, m1\n%if ARCH_X86_64\n    movq       %2, m1\n%else\n    packsswb   m1, m1\n    movd       %2, m1\n%endif\n%endmacro\n\n;row1, row2, reg1, reg2, clear1, arg1, clear2, arg2\n%macro  TEST_TWO_ROWS  8\n    %5         %6\n    %7         %8\n    mova       m1, [%1]\n    packsswb   m1, [%2]\n    packsswb   m1, m1\n%if ARCH_X86_64\n    movq       %4, m1\n    mov       %3d, %4d\n    shr       %4q, 32\n%else\n    packsswb   m1, m1\n    movd       %3, m1\n    mov        %4, %3\n    shr        %4, 16\n    and        %3, 0xFFFF\n%endif\n%endmacro\n\n; IDCT pass on rows.\n%macro iMTX_MULT   4-5 ; src, table, put, arg, rounder\n    movdqa       xmm3, [%1]\n    movdqa       xmm0, xmm3\n    pshufd       xmm1, xmm3, 0x11 ; 4602\n    punpcklqdq   xmm0, xmm0       ; 0246\n    pmaddwd      xmm0, [%2]\n    pmaddwd      xmm1, [%2+16]\n    pshufd       xmm2, xmm3, 0xBB ; 5713\n    punpckhqdq   xmm3, xmm3       ; 1357", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:6", "text": "shr       %4q, 32\n%else\n    packsswb   m1, m1\n    movd       %3, m1\n    mov        %4, %3\n    shr        %4, 16\n    and        %3, 0xFFFF\n%endif\n%endmacro\n\n; IDCT pass on rows.\n%macro iMTX_MULT   4-5 ; src, table, put, arg, rounder\n    movdqa       xmm3, [%1]\n    movdqa       xmm0, xmm3\n    pshufd       xmm1, xmm3, 0x11 ; 4602\n    punpcklqdq   xmm0, xmm0       ; 0246\n    pmaddwd      xmm0, [%2]\n    pmaddwd      xmm1, [%2+16]\n    pshufd       xmm2, xmm3, 0xBB ; 5713\n    punpckhqdq   xmm3, xmm3       ; 1357\n    pmaddwd      xmm2, [%2+32]\n    pmaddwd      xmm3, [%2+48]\n    paddd        xmm0, xmm1\n    paddd        xmm2, xmm3\n%if %0 == 5\n    paddd        xmm0, [walkenIdctRounders+%5]\n%endif\n    movdqa       xmm3, xmm2\n    paddd        xmm2, xmm0\n    psubd        xmm0, xmm3\n    psrad        xmm2, 11\n    psrad        xmm0, 11\n    packssdw     xmm2, xmm0\n    %3           %4\n%endmacro\n\n%macro iLLM_HEAD 0\n    movdqa   TAN3, [tan3]\n    movdqa   TAN1, [tan1]\n%endmacro\n\n%macro FIRST_HALF 2  ; %1=dct  %2=type(normal,add,put)\n    psraw    xmm5, 6\n    psraw    REG0, 6\n    psraw    TAN3, 6\n    psraw    xmm3, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n%else\n    ; Must now load args as gprs are no longer used for masks\n    ; DEST is set to where address of dest was loaded\n    %if ARCH_X86_32\n        %if %2 == 2 ; Not enough xmms, store\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:7", "text": "%macro FIRST_HALF 2  ; %1=dct  %2=type(normal,add,put)\n    psraw    xmm5, 6\n    psraw    REG0, 6\n    psraw    TAN3, 6\n    psraw    xmm3, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n%else\n    ; Must now load args as gprs are no longer used for masks\n    ; DEST is set to where address of dest was loaded\n    %if ARCH_X86_32\n        %if %2 == 2 ; Not enough xmms, store\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n        %endif\n    %xdefine DEST r2q ; BLOCK is r0, stride r1\n    movifnidn DEST, destm\n    movifnidn strideq, stridem\n    %else\n    %xdefine DEST r0q\n    %endif\n    lea      r3q, [3*strideq]\n    %if %2 == 1\n    packuswb TAN3, xmm3\n    packuswb xmm5, REG0\n    movq     [DEST + strideq], TAN3\n    movhps   [DEST + 2*strideq], TAN3\n    ; REG0 and TAN3 are now available (and likely used in second half)\n    %endif\n%endif\n%endmacro\n\n%macro SECOND_HALF 6 ; %1=dct  %2=type(normal,add,put) 3-6: xmms\n    psraw    %3, 6\n    psraw    %4, 6\n    psraw    %5, 6\n    psraw    %6, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+0*16], %3\n    movdqa   [%1+3*16], %5\n    movdqa   [%1+4*16], %6\n    movdqa   [%1+7*16], %4\n%elif %2 == 1\n    packuswb %3, %5\n    packuswb %6, %4\n    ; address of dest may have been loaded\n    movq     [DEST], %3\n    movhps   [DEST + r3q], %3\n    lea      DEST, [DEST + 4*strideq]\n    movq     [DEST], %6\n    movhps   [DEST + r3q], %6\n    ; and now write remainder of first half", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:8", "text": "psraw    %3, 6\n    psraw    %4, 6\n    psraw    %5, 6\n    psraw    %6, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+0*16], %3\n    movdqa   [%1+3*16], %5\n    movdqa   [%1+4*16], %6\n    movdqa   [%1+7*16], %4\n%elif %2 == 1\n    packuswb %3, %5\n    packuswb %6, %4\n    ; address of dest may have been loaded\n    movq     [DEST], %3\n    movhps   [DEST + r3q], %3\n    lea      DEST, [DEST + 4*strideq]\n    movq     [DEST], %6\n    movhps   [DEST + r3q], %6\n    ; and now write remainder of first half\n    movq     [DEST + 2*strideq], xmm5\n    movhps   [DEST + strideq], xmm5\n%elif %2 == 2\n    pxor        xmm0, xmm0\n    %if ARCH_X86_32\n    ; free: m3 REG0=m4 m5\n    ; input: m1, m7, m2, m6\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    paddsw      xmm3, %3\n    paddsw      xmm4, [%1 + 1*16]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw        %3, [%1 + 2*16]\n    paddsw      xmm5, %5\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw      xmm3, %6\n    paddsw      xmm4, [%1 + 5*16]\n    paddsw        %3, [%1 + 6*16]\n    paddsw      xmm5, %4\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:9", "text": "packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw      xmm3, %6\n    paddsw      xmm4, [%1 + 5*16]\n    paddsw        %3, [%1 + 6*16]\n    paddsw      xmm5, %4\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    %else\n    ; l1:TAN3=m13  l2:m3  l5:REG0=m8 l6=m5\n    ; input: m1, m7/SREG2=m9, TAN1=m14, REG4=m10\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %3\n    paddsw      xmm4, TAN3\n    paddsw     xmm12, xmm3\n    paddsw     xmm11, %5\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %6\n    paddsw      xmm4, REG0\n    paddsw     xmm12, xmm5\n    paddsw     xmm11, %4\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:10", "text": "packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %6\n    paddsw      xmm4, REG0\n    paddsw     xmm12, xmm5\n    paddsw     xmm11, %4\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    %endif\n%endif\n%endmacro\n\n\n; IDCT pass on columns.\n%macro iLLM_PASS  2  ; %1=dct  %2=type(normal,add,put)\n    movdqa   xmm1, TAN3\n    movdqa   xmm3, TAN1\n    pmulhw   TAN3, xmm4\n    pmulhw   xmm1, xmm5\n    paddsw   TAN3, xmm4\n    paddsw   xmm1, xmm5\n    psubsw   TAN3, xmm5\n    paddsw   xmm1, xmm4\n    pmulhw   xmm3, xmm7\n    pmulhw   TAN1, xmm6\n    paddsw   xmm3, xmm6\n    psubsw   TAN1, xmm7\n    movdqa   xmm7, xmm3\n    movdqa   xmm6, TAN1\n    psubsw   xmm3, xmm1\n    psubsw   TAN1, TAN3\n    paddsw   xmm1, xmm7\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm7, [tan2]\n    MOV32    ROW2, REG2\n    MOV32    ROW6, REG6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:11", "text": "pmulhw   TAN1, xmm6\n    paddsw   xmm3, xmm6\n    psubsw   TAN1, xmm7\n    movdqa   xmm7, xmm3\n    movdqa   xmm6, TAN1\n    psubsw   xmm3, xmm1\n    psubsw   TAN1, TAN3\n    paddsw   xmm1, xmm7\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm7, [tan2]\n    MOV32    ROW2, REG2\n    MOV32    ROW6, REG6\n    movdqa   xmm5, xmm7\n    pmulhw   xmm7, REG6\n    pmulhw   xmm5, REG2\n    paddsw   xmm7, REG2\n    psubsw   xmm5, REG6\n    MOV32    ROW0, REG0\n    MOV32    ROW4, REG4\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, REG4\n    paddsw   REG4, XMMS\n    movdqa   XMMS, REG4\n    psubsw   REG4, xmm7\n    paddsw   xmm7, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, xmm7\n    movdqa   xmm4, REG4\n    psubsw   xmm7, xmm1\n    psubsw   REG4, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, xmm7, TAN1, REG4\n%endmacro\n\n; IDCT pass on columns, assuming rows 4-7 are zero\n%macro iLLM_PASS_SPARSE   2 ; %1=dct   %2=type(normal,put,add)\n    pmulhw   TAN3, xmm4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:12", "text": "movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, xmm7\n    movdqa   xmm4, REG4\n    psubsw   xmm7, xmm1\n    psubsw   REG4, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, xmm7, TAN1, REG4\n%endmacro\n\n; IDCT pass on columns, assuming rows 4-7 are zero\n%macro iLLM_PASS_SPARSE   2 ; %1=dct   %2=type(normal,put,add)\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, xmm4\n    movdqa   xmm3, xmm6\n    pmulhw   TAN1, xmm6\n    movdqa   xmm1, xmm4\n    psubsw   xmm3, xmm1\n    paddsw   xmm1, xmm6\n    movdqa   xmm6, TAN1\n    psubsw   TAN1, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm5, [tan2]\n    MOV32    ROW2, SREG2\n    pmulhw   xmm5, SREG2\n    MOV32    ROW0, REG0\n    movdqa   xmm6, REG0\n    psubsw   xmm6, SREG2\n    paddsw  SREG2, REG0\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, SREG2\n    movdqa   xmm4, xmm6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:13", "text": "MOV32    ROW0, REG0\n    movdqa   xmm6, REG0\n    psubsw   xmm6, SREG2\n    paddsw  SREG2, REG0\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, SREG2\n    movdqa   xmm4, xmm6\n    psubsw  SREG2, xmm1\n    psubsw   xmm6, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, SREG2, TAN1, xmm6\n%endmacro\n\n%macro IDCT_SSE2 1 ; 0=normal  1=put  2=add\n%if %1 == 0 || ARCH_X86_32\n    %define GPR0  r1\n    %define GPR1  r2\n    %define GPR2  r3\n    %define GPR3  r4\n    %define NUM_GPRS 5\n%else\n    %define GPR0  r3\n    %define GPR1  r4\n    %define GPR2  r5\n    %define GPR3  r6\n    %define NUM_GPRS 7\n%endif\n%if %1 == 0\ncglobal xvid_idct, 1, NUM_GPRS, 8+7*ARCH_X86_64, block\n%xdefine BLOCK blockq\n%else\n    %if %1 == 1\ncglobal xvid_idct_put, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %else\ncglobal xvid_idct_add, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %endif\n    %if ARCH_X86_64\n    %xdefine BLOCK blockq\n    %else\n    mov    r0q, blockm\n    %xdefine BLOCK r0q\n    %endif\n%endif\n    iMTX_MULT      BLOCK + 0*16, iTab1, PUT_EVEN, ROW0, 0*16\n    iMTX_MULT      BLOCK + 1*16, iTab2, PUT_ODD, ROW1,  1*16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:14", "text": "%define NUM_GPRS 7\n%endif\n%if %1 == 0\ncglobal xvid_idct, 1, NUM_GPRS, 8+7*ARCH_X86_64, block\n%xdefine BLOCK blockq\n%else\n    %if %1 == 1\ncglobal xvid_idct_put, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %else\ncglobal xvid_idct_add, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %endif\n    %if ARCH_X86_64\n    %xdefine BLOCK blockq\n    %else\n    mov    r0q, blockm\n    %xdefine BLOCK r0q\n    %endif\n%endif\n    iMTX_MULT      BLOCK + 0*16, iTab1, PUT_EVEN, ROW0, 0*16\n    iMTX_MULT      BLOCK + 1*16, iTab2, PUT_ODD, ROW1,  1*16\n    iMTX_MULT      BLOCK + 2*16, iTab3, PUT_EVEN, ROW2, 2*16\n\n    TEST_TWO_ROWS  BLOCK + 3*16, BLOCK + 4*16, GPR0, GPR1, CLEAR_ODD, ROW3, CLEAR_EVEN, ROW4 ; a, c\n    JZ   GPR0, col1, d\n    iMTX_MULT      BLOCK + 3*16, iTab4, PUT_ODD, ROW3,  3*16\n.col1:\n    TEST_TWO_ROWS  BLOCK + 5*16, BLOCK + 6*16, GPR0, GPR2, CLEAR_ODD, ROW5, CLEAR_EVEN, ROW6 ; a, d\n    TEST_ONE_ROW   BLOCK + 7*16, GPR3, CLEAR_ODD, ROW7 ; esi\n\n    iLLM_HEAD\n    JNZ  GPR1, 2, d\n    JNZ  GPR0, 3, d\n    JNZ  GPR2, 4, d\n    JNZ  GPR3, 5, q\n    iLLM_PASS_SPARSE BLOCK, %1\n    jmp .6\n.2:\n    iMTX_MULT     BLOCK + 4*16, iTab1, PUT_EVEN, ROW4\n.3:\n    iMTX_MULT     BLOCK + 5*16, iTab4, PUT_ODD, ROW5,  4*16\n    JZ   GPR2, col2, d\n.4:\n    iMTX_MULT     BLOCK + 6*16, iTab3, PUT_EVEN, ROW6, 5*16\n.col2:\n    JZ   GPR3, col3, q\n.5:\n    iMTX_MULT     BLOCK + 7*16, iTab2, PUT_ODD, ROW7,  5*16\n.col3:\n%if ARCH_X86_32\n    iLLM_HEAD\n%endif\n    iLLM_PASS     BLOCK, %1\n.6:\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_SSE2 0\nIDCT_SSE2 1\nIDCT_SSE2 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:15", "text": "JZ   GPR2, col2, d\n.4:\n    iMTX_MULT     BLOCK + 6*16, iTab3, PUT_EVEN, ROW6, 5*16\n.col2:\n    JZ   GPR3, col3, q\n.5:\n    iMTX_MULT     BLOCK + 7*16, iTab2, PUT_ODD, ROW7,  5*16\n.col3:\n%if ARCH_X86_32\n    iLLM_HEAD\n%endif\n    iLLM_PASS     BLOCK, %1\n.6:\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_SSE2 0\nIDCT_SSE2 1\nIDCT_SSE2 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "b03b09aeda1cd890f71f9e6b0bec0a062af4e3be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b03b09aeda1cd890f71f9e6b0bec0a062af4e3be/libavcodec/x86/xvididct.asm", "line_start": 561, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:3", "text": "iTab2:  dw 0x58c5, 0x73fc, 0xa73b, 0x8c04, 0x58c5, 0xcff5, 0x58c5, 0xcff5\n        dw 0x58c5, 0x300b, 0x58c5, 0x300b, 0xa73b, 0x73fc, 0x58c5, 0x8c04\n        dw 0x45bf, 0x187e, 0x6862, 0xe782, 0x187e, 0x6862, 0x187e, 0xba41\n        dw 0x7b21, 0x6862, 0x84df, 0xba41, 0x45bf, 0x84df, 0x6862, 0x84df\niTab3:  dw 0x539f, 0x6d41, 0xac61, 0x92bf, 0x539f, 0xd2bf, 0x539f, 0xd2bf\n        dw 0x539f, 0x2d41, 0x539f, 0x2d41, 0xac61, 0x6d41, 0x539f, 0x92bf\n        dw 0x41b3, 0x1712, 0x6254, 0xe8ee, 0x1712, 0x6254, 0x1712, 0xbe4d\n        dw 0x73fc, 0x6254, 0x8c04, 0xbe4d, 0x41b3, 0x8c04, 0x6254, 0x8c04\niTab4:  dw 0x4b42, 0x6254, 0xb4be, 0x9dac, 0x4b42, 0xd746, 0x4b42, 0xd746\n        dw 0x4b42, 0x28ba, 0x4b42, 0x28ba, 0xb4be, 0x6254, 0x4b42, 0x9dac\n        dw 0x3b21, 0x14c3, 0x587e, 0xeb3d, 0x14c3, 0x587e, 0x14c3, 0xc4df\n        dw 0x6862, 0x587e, 0x979e, 0xc4df, 0x3b21, 0x979e, 0x587e, 0x979e\n\n; Similar to rounder_0 in MMX code\n; 4 first similar, then: 4*8->6*16  5*8->4*16  6/7*8->5*16\nwalkenIdctRounders: times 4 dd 65536\n                    times 4 dd  3597\n                    times 4 dd  2260\n                    times 4 dd  1203\n                    times 4 dd   120\n                    times 4 dd   512\n                    times 2 dd     0\n\npb_127: times 8 db 127\n\nSECTION .text\n\n; Temporary storage before the column pass\n%define ROW1 xmm6\n%define ROW3 xmm4\n%define ROW5 xmm5\n%define ROW7 xmm7\n\n%macro CLEAR_ODD 1\n    pxor      %1, %1\n%endmacro\n%macro PUT_ODD 1\n    pshufhw   %1, xmm2, 0x1B\n%endmacro\n\n%macro MOV32 2\n%if ARCH_X86_32\n    movdqa    %2, %1\n%endif\n%endmacro\n\n%macro CLEAR_EVEN 1\n%if ARCH_X86_64\n    CLEAR_ODD %1\n%endif\n%endmacro\n\n%macro PUT_EVEN 1\n%if ARCH_X86_64\n    PUT_ODD   %1\n%else\n    pshufhw xmm2, xmm2, 0x1B\n    movdqa    %1, xmm2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:4", "text": "%macro MOV32 2\n%if ARCH_X86_32\n    movdqa    %2, %1\n%endif\n%endmacro\n\n%macro CLEAR_EVEN 1\n%if ARCH_X86_64\n    CLEAR_ODD %1\n%endif\n%endmacro\n\n%macro PUT_EVEN 1\n%if ARCH_X86_64\n    PUT_ODD   %1\n%else\n    pshufhw xmm2, xmm2, 0x1B\n    movdqa    %1, xmm2\n%endif\n%endmacro\n\n%if ARCH_X86_64\n%define ROW0  xmm8\n%define REG0  ROW0\n%define ROW2  xmm9\n%define REG2  ROW2\n%define ROW4  xmm10\n%define REG4  ROW4\n%define ROW6  xmm11\n%define REG6  ROW6\n%define XMMS  xmm12\n%define SREG2 REG2\n%define TAN3  xmm13\n%define TAN1  xmm14\n%else\n%define ROW0  [BLOCK + 0*16]\n%define REG0  xmm4\n%define ROW2  [BLOCK + 2*16]\n%define REG2  xmm4\n%define ROW4  [BLOCK + 4*16]\n%define REG4  xmm6\n%define ROW6  [BLOCK + 6*16]\n%define REG6  xmm6\n%define XMMS  xmm2\n%define SREG2 xmm7\n%define TAN3  xmm0\n%define TAN1  xmm2\n%endif\n\n%macro JZ  2\n    test      %1, %1\n    jz       .%2\n%endmacro\n\n%macro JNZ  2\n    test      %1, %1\n    jnz      .%2\n%endmacro\n\n%macro TEST_ONE_ROW 4 ; src, reg, clear, arg", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:5", "text": "%define REG4  xmm6\n%define ROW6  [BLOCK + 6*16]\n%define REG6  xmm6\n%define XMMS  xmm2\n%define SREG2 xmm7\n%define TAN3  xmm0\n%define TAN1  xmm2\n%endif\n\n%macro JZ  2\n    test      %1, %1\n    jz       .%2\n%endmacro\n\n%macro JNZ  2\n    test      %1, %1\n    jnz      .%2\n%endmacro\n\n%macro TEST_ONE_ROW 4 ; src, reg, clear, arg\n    %3        %4\n    movq     mm1, [%1]\n    por      mm1, [%1 + 8]\n    paddusb  mm1, mm0\n    pmovmskb  %2, mm1\n%endmacro\n\n;row1, row2, reg1, reg2, clear1, arg1, clear2, arg2\n%macro  TEST_TWO_ROWS  8\n    %5         %6\n    %7         %8\n    movq      mm1, [%1 + 0]\n    por       mm1, [%1 + 8]\n    movq      mm2, [%2 + 0]\n    por       mm2, [%2 + 8]\n    paddusb   mm1, mm0\n    paddusb   mm2, mm0\n    pmovmskb   %3, mm1\n    pmovmskb   %4, mm2\n%endmacro\n\n; IDCT pass on rows.\n%macro iMTX_MULT   4-5 ; src, table, put, arg, rounder\n    movdqa       xmm3, [%1]\n    movdqa       xmm0, xmm3\n    pshufd       xmm1, xmm3, 0x11 ; 4602\n    punpcklqdq   xmm0, xmm0       ; 0246\n    pmaddwd      xmm0, [%2]\n    pmaddwd      xmm1, [%2+16]\n    pshufd       xmm2, xmm3, 0xBB ; 5713\n    punpckhqdq   xmm3, xmm3       ; 1357\n    pmaddwd      xmm2, [%2+32]\n    pmaddwd      xmm3, [%2+48]\n    paddd        xmm0, xmm1\n    paddd        xmm2, xmm3\n%if %0 == 5\n    paddd        xmm0, [walkenIdctRounders+%5]\n%endif\n    movdqa       xmm3, xmm2\n    paddd        xmm2, xmm0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:6", "text": "; IDCT pass on rows.\n%macro iMTX_MULT   4-5 ; src, table, put, arg, rounder\n    movdqa       xmm3, [%1]\n    movdqa       xmm0, xmm3\n    pshufd       xmm1, xmm3, 0x11 ; 4602\n    punpcklqdq   xmm0, xmm0       ; 0246\n    pmaddwd      xmm0, [%2]\n    pmaddwd      xmm1, [%2+16]\n    pshufd       xmm2, xmm3, 0xBB ; 5713\n    punpckhqdq   xmm3, xmm3       ; 1357\n    pmaddwd      xmm2, [%2+32]\n    pmaddwd      xmm3, [%2+48]\n    paddd        xmm0, xmm1\n    paddd        xmm2, xmm3\n%if %0 == 5\n    paddd        xmm0, [walkenIdctRounders+%5]\n%endif\n    movdqa       xmm3, xmm2\n    paddd        xmm2, xmm0\n    psubd        xmm0, xmm3\n    psrad        xmm2, 11\n    psrad        xmm0, 11\n    packssdw     xmm2, xmm0\n    %3           %4\n%endmacro\n\n%macro iLLM_HEAD 0\n    movdqa   TAN3, [tan3]\n    movdqa   TAN1, [tan1]\n%endmacro\n\n%macro FIRST_HALF 2  ; %1=dct  %2=type(normal,add,put)\n    psraw    xmm5, 6\n    psraw    REG0, 6\n    psraw    TAN3, 6\n    psraw    xmm3, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n%else\n    ; Must now load args as gprs are no longer used for masks\n    ; DEST is set to where address of dest was loaded\n    %if ARCH_X86_32\n        %if %2 == 2 ; Not enough xmms, store\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n        %endif\n    %xdefine DEST r2q ; BLOCK is r0, stride r1\n    movifnidn DEST, destm\n    movifnidn strideq, stridem\n    %else\n    %xdefine DEST r0q\n    %endif\n    lea      r3q, [3*strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:7", "text": "movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n%else\n    ; Must now load args as gprs are no longer used for masks\n    ; DEST is set to where address of dest was loaded\n    %if ARCH_X86_32\n        %if %2 == 2 ; Not enough xmms, store\n    movdqa   [%1+1*16], TAN3\n    movdqa   [%1+2*16], xmm3\n    movdqa   [%1+5*16], REG0\n    movdqa   [%1+6*16], xmm5\n        %endif\n    %xdefine DEST r2q ; BLOCK is r0, stride r1\n    movifnidn DEST, destm\n    movifnidn strideq, stridem\n    %else\n    %xdefine DEST r0q\n    %endif\n    lea      r3q, [3*strideq]\n    %if %2 == 1\n    packuswb TAN3, xmm3\n    packuswb xmm5, REG0\n    movq     [DEST + strideq], TAN3\n    movhps   [DEST + 2*strideq], TAN3\n    ; REG0 and TAN3 are now available (and likely used in second half)\n    %endif\n%endif\n%endmacro\n\n%macro SECOND_HALF 6 ; %1=dct  %2=type(normal,add,put) 3-6: xmms\n    psraw    %3, 6\n    psraw    %4, 6\n    psraw    %5, 6\n    psraw    %6, 6\n    ; dct coeffs must still be written for AC prediction\n%if %2 == 0\n    movdqa   [%1+0*16], %3\n    movdqa   [%1+3*16], %5\n    movdqa   [%1+4*16], %6\n    movdqa   [%1+7*16], %4\n%elif %2 == 1\n    packuswb %3, %5\n    packuswb %6, %4\n    ; address of dest may have been loaded\n    movq     [DEST], %3\n    movhps   [DEST + r3q], %3\n    lea      DEST, [DEST + 4*strideq]\n    movq     [DEST], %6\n    movhps   [DEST + r3q], %6\n    ; and now write remainder of first half\n    movq     [DEST + 2*strideq], xmm5\n    movhps   [DEST + strideq], xmm5\n%elif %2 == 2\n    pxor        xmm0, xmm0\n    %if ARCH_X86_32\n    ; free: m3 REG0=m4 m5\n    ; input: m1, m7, m2, m6\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:8", "text": "movdqa   [%1+7*16], %4\n%elif %2 == 1\n    packuswb %3, %5\n    packuswb %6, %4\n    ; address of dest may have been loaded\n    movq     [DEST], %3\n    movhps   [DEST + r3q], %3\n    lea      DEST, [DEST + 4*strideq]\n    movq     [DEST], %6\n    movhps   [DEST + r3q], %6\n    ; and now write remainder of first half\n    movq     [DEST + 2*strideq], xmm5\n    movhps   [DEST + strideq], xmm5\n%elif %2 == 2\n    pxor        xmm0, xmm0\n    %if ARCH_X86_32\n    ; free: m3 REG0=m4 m5\n    ; input: m1, m7, m2, m6\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    paddsw      xmm3, %3\n    paddsw      xmm4, [%1 + 1*16]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw        %3, [%1 + 2*16]\n    paddsw      xmm5, %5\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm3, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq          %3, [DEST+2*strideq]\n    movq        xmm5, [DEST+      r3q]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw      xmm3, %6\n    paddsw      xmm4, [%1 + 5*16]\n    paddsw        %3, [%1 + 6*16]\n    paddsw      xmm5, %4\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    %else\n    ; l1:TAN3=m13  l2:m3  l5:REG0=m8 l6=m5\n    ; input: m1, m7/SREG2=m9, TAN1=m14, REG4=m10\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:9", "text": "movq        xmm5, [DEST+      r3q]\n    punpcklbw   xmm3, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw     %3, xmm0\n    punpcklbw   xmm5, xmm0\n    paddsw      xmm3, %6\n    paddsw      xmm4, [%1 + 5*16]\n    paddsw        %3, [%1 + 6*16]\n    paddsw      xmm5, %4\n    packuswb    xmm3, xmm4\n    packuswb      %3, xmm5\n    movq    [DEST+0*strideq], xmm3\n    movhps  [DEST+1*strideq], xmm3\n    movq    [DEST+2*strideq], %3\n    movhps  [DEST+      r3q], %3\n    %else\n    ; l1:TAN3=m13  l2:m3  l5:REG0=m8 l6=m5\n    ; input: m1, m7/SREG2=m9, TAN1=m14, REG4=m10\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %3\n    paddsw      xmm4, TAN3\n    paddsw     xmm12, xmm3\n    paddsw     xmm11, %5\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    lea         DEST, [DEST+4*strideq]\n    movq        xmm2, [DEST+0*strideq]\n    movq        xmm4, [DEST+1*strideq]\n    movq       xmm12, [DEST+2*strideq]\n    movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %6\n    paddsw      xmm4, REG0\n    paddsw     xmm12, xmm5\n    paddsw     xmm11, %4\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    %endif\n%endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:10", "text": "movq       xmm11, [DEST+      r3q]\n    punpcklbw   xmm2, xmm0\n    punpcklbw   xmm4, xmm0\n    punpcklbw  xmm12, xmm0\n    punpcklbw  xmm11, xmm0\n    paddsw      xmm2, %6\n    paddsw      xmm4, REG0\n    paddsw     xmm12, xmm5\n    paddsw     xmm11, %4\n    packuswb    xmm2, xmm4\n    packuswb   xmm12, xmm11\n    movq    [DEST+0*strideq], xmm2\n    movhps  [DEST+1*strideq], xmm2\n    movq    [DEST+2*strideq], xmm12\n    movhps  [DEST+      r3q], xmm12\n    %endif\n%endif\n%endmacro\n\n\n; IDCT pass on columns.\n%macro iLLM_PASS  2  ; %1=dct  %2=type(normal,add,put)\n    movdqa   xmm1, TAN3\n    movdqa   xmm3, TAN1\n    pmulhw   TAN3, xmm4\n    pmulhw   xmm1, xmm5\n    paddsw   TAN3, xmm4\n    paddsw   xmm1, xmm5\n    psubsw   TAN3, xmm5\n    paddsw   xmm1, xmm4\n    pmulhw   xmm3, xmm7\n    pmulhw   TAN1, xmm6\n    paddsw   xmm3, xmm6\n    psubsw   TAN1, xmm7\n    movdqa   xmm7, xmm3\n    movdqa   xmm6, TAN1\n    psubsw   xmm3, xmm1\n    psubsw   TAN1, TAN3\n    paddsw   xmm1, xmm7\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm7, [tan2]\n    MOV32    ROW2, REG2\n    MOV32    ROW6, REG6\n    movdqa   xmm5, xmm7\n    pmulhw   xmm7, REG6\n    pmulhw   xmm5, REG2\n    paddsw   xmm7, REG2\n    psubsw   xmm5, REG6\n    MOV32    ROW0, REG0\n    MOV32    ROW4, REG4\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:11", "text": "movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm7, [tan2]\n    MOV32    ROW2, REG2\n    MOV32    ROW6, REG6\n    movdqa   xmm5, xmm7\n    pmulhw   xmm7, REG6\n    pmulhw   xmm5, REG2\n    paddsw   xmm7, REG2\n    psubsw   xmm5, REG6\n    MOV32    ROW0, REG0\n    MOV32    ROW4, REG4\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, REG4\n    paddsw   REG4, XMMS\n    movdqa   XMMS, REG4\n    psubsw   REG4, xmm7\n    paddsw   xmm7, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, xmm7\n    movdqa   xmm4, REG4\n    psubsw   xmm7, xmm1\n    psubsw   REG4, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, xmm7, TAN1, REG4\n%endmacro\n\n; IDCT pass on columns, assuming rows 4-7 are zero\n%macro iLLM_PASS_SPARSE   2 ; %1=dct   %2=type(normal,put,add)\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, xmm4\n    movdqa   xmm3, xmm6\n    pmulhw   TAN1, xmm6\n    movdqa   xmm1, xmm4\n    psubsw   xmm3, xmm1\n    paddsw   xmm1, xmm6\n    movdqa   xmm6, TAN1\n    psubsw   TAN1, TAN3\n    paddsw   TAN3, xmm6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:12", "text": "psubsw   xmm7, xmm1\n    psubsw   REG4, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, xmm7, TAN1, REG4\n%endmacro\n\n; IDCT pass on columns, assuming rows 4-7 are zero\n%macro iLLM_PASS_SPARSE   2 ; %1=dct   %2=type(normal,put,add)\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, xmm4\n    movdqa   xmm3, xmm6\n    pmulhw   TAN1, xmm6\n    movdqa   xmm1, xmm4\n    psubsw   xmm3, xmm1\n    paddsw   xmm1, xmm6\n    movdqa   xmm6, TAN1\n    psubsw   TAN1, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm6, xmm3\n    psubsw   xmm3, TAN3\n    paddsw   TAN3, xmm6\n    movdqa   xmm4, [sqrt2]\n    pmulhw   xmm3, xmm4\n    pmulhw   TAN3, xmm4\n    paddsw   TAN3, TAN3\n    paddsw   xmm3, xmm3\n    movdqa   xmm5, [tan2]\n    MOV32    ROW2, SREG2\n    pmulhw   xmm5, SREG2\n    MOV32    ROW0, REG0\n    movdqa   xmm6, REG0\n    psubsw   xmm6, SREG2\n    paddsw  SREG2, REG0\n    MOV32    TAN1, [BLOCK]\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm5\n    paddsw   xmm5, XMMS\n    movdqa   XMMS, xmm5\n    psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, SREG2\n    movdqa   xmm4, xmm6\n    psubsw  SREG2, xmm1\n    psubsw   xmm6, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, SREG2, TAN1, xmm6\n%endmacro\n\n%macro IDCT_SSE2 1 ; 0=normal  1=put  2=add", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:13", "text": "psubsw   xmm5, TAN3\n    paddsw   TAN3, XMMS\n    movdqa   XMMS, REG0\n    psubsw   REG0, xmm3\n    paddsw   xmm3, XMMS\n    MOV32    [BLOCK], TAN1\n\n    FIRST_HALF %1, %2\n\n    movdqa   xmm0, SREG2\n    movdqa   xmm4, xmm6\n    psubsw  SREG2, xmm1\n    psubsw   xmm6, TAN1\n    paddsw   xmm1, xmm0\n    paddsw   TAN1, xmm4\n\n    SECOND_HALF %1, %2, xmm1, SREG2, TAN1, xmm6\n%endmacro\n\n%macro IDCT_SSE2 1 ; 0=normal  1=put  2=add\n%if %1 == 0 || ARCH_X86_32\n    %define GPR0  r1d\n    %define GPR1  r2d\n    %define GPR2  r3d\n    %define GPR3  r4d\n    %define NUM_GPRS 5\n%else\n    %define GPR0  r3d\n    %define GPR1  r4d\n    %define GPR2  r5d\n    %define GPR3  r6d\n    %define NUM_GPRS 7\n%endif\n%if %1 == 0\ncglobal xvid_idct, 1, NUM_GPRS, 8+7*ARCH_X86_64, block\n%xdefine BLOCK blockq\n%else\n    %if %1 == 1\ncglobal xvid_idct_put, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %else\ncglobal xvid_idct_add, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %endif\n    %if ARCH_X86_64\n    %xdefine BLOCK blockq\n    %else\n    mov    r0q, blockm\n    %xdefine BLOCK r0q\n    %endif\n%endif\n    movq           mm0, [pb_127]\n    iMTX_MULT      BLOCK + 0*16, iTab1, PUT_EVEN, ROW0, 0*16\n    iMTX_MULT      BLOCK + 1*16, iTab2, PUT_ODD, ROW1,  1*16\n    iMTX_MULT      BLOCK + 2*16, iTab3, PUT_EVEN, ROW2, 2*16\n\n    TEST_TWO_ROWS  BLOCK + 3*16, BLOCK + 4*16, GPR0, GPR1, CLEAR_ODD, ROW3, CLEAR_EVEN, ROW4 ; a, c\n    JZ   GPR0, col1\n    iMTX_MULT      BLOCK + 3*16, iTab4, PUT_ODD, ROW3,  3*16\n.col1:\n    TEST_TWO_ROWS  BLOCK + 5*16, BLOCK + 6*16, GPR0, GPR2, CLEAR_ODD, ROW5, CLEAR_EVEN, ROW6 ; a, d\n    TEST_ONE_ROW   BLOCK + 7*16, GPR3, CLEAR_ODD, ROW7 ; esi", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:14", "text": "cglobal xvid_idct_add, 0, NUM_GPRS, 8+7*ARCH_X86_64, dest, stride, block\n    %endif\n    %if ARCH_X86_64\n    %xdefine BLOCK blockq\n    %else\n    mov    r0q, blockm\n    %xdefine BLOCK r0q\n    %endif\n%endif\n    movq           mm0, [pb_127]\n    iMTX_MULT      BLOCK + 0*16, iTab1, PUT_EVEN, ROW0, 0*16\n    iMTX_MULT      BLOCK + 1*16, iTab2, PUT_ODD, ROW1,  1*16\n    iMTX_MULT      BLOCK + 2*16, iTab3, PUT_EVEN, ROW2, 2*16\n\n    TEST_TWO_ROWS  BLOCK + 3*16, BLOCK + 4*16, GPR0, GPR1, CLEAR_ODD, ROW3, CLEAR_EVEN, ROW4 ; a, c\n    JZ   GPR0, col1\n    iMTX_MULT      BLOCK + 3*16, iTab4, PUT_ODD, ROW3,  3*16\n.col1:\n    TEST_TWO_ROWS  BLOCK + 5*16, BLOCK + 6*16, GPR0, GPR2, CLEAR_ODD, ROW5, CLEAR_EVEN, ROW6 ; a, d\n    TEST_ONE_ROW   BLOCK + 7*16, GPR3, CLEAR_ODD, ROW7 ; esi\n\n    iLLM_HEAD\n    JNZ  GPR1, 2\n    JNZ  GPR0, 3\n    JNZ  GPR2, 4\n    JNZ  GPR3, 5\n    iLLM_PASS_SPARSE BLOCK, %1\n    jmp .6\n.2:\n    iMTX_MULT     BLOCK + 4*16, iTab1, PUT_EVEN, ROW4\n.3:\n    iMTX_MULT     BLOCK + 5*16, iTab4, PUT_ODD, ROW5,  4*16\n    JZ   GPR2, col2\n.4:\n    iMTX_MULT     BLOCK + 6*16, iTab3, PUT_EVEN, ROW6, 5*16\n.col2:\n    JZ   GPR3, col3\n.5:\n    iMTX_MULT     BLOCK + 7*16, iTab2, PUT_ODD, ROW7,  5*16\n.col3:\n%if ARCH_X86_32\n    iLLM_HEAD\n%endif\n    iLLM_PASS     BLOCK, %1\n.6:\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_SSE2 0\nIDCT_SSE2 1\nIDCT_SSE2 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 521, "line_end": 572}
{"id": "FFmpeg/FFmpeg:libavcodec/x86/xvididct.asm:15", "text": "%if ARCH_X86_32\n    iLLM_HEAD\n%endif\n    iLLM_PASS     BLOCK, %1\n.6:\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDCT_SSE2 0\nIDCT_SSE2 1\nIDCT_SSE2 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavcodec/x86/xvididct.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavcodec/x86/xvididct.asm", "line_start": 561, "line_end": 572}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:1", "text": "/*\n * bwdif aarch64 NEON optimisations\n *\n * Copyright (c) 2023 John Cox <jc@kynesim.co.uk>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n\n#include \"libavutil/aarch64/asm.S\"\n\n// Space taken on the stack by an int (32-bit)\n#ifdef __APPLE__\n.set    SP_INT, 4\n#else\n.set    SP_INT, 8\n#endif\n\n.macro SQSHRUNN b, s0, s1, s2, s3, n\n        sqshrun         \\s0\\().4h, \\s0\\().4s, #\\n - 8\n        sqshrun2        \\s0\\().8h, \\s1\\().4s, #\\n - 8\n        sqshrun         \\s1\\().4h, \\s2\\().4s, #\\n - 8\n        sqshrun2        \\s1\\().8h, \\s3\\().4s, #\\n - 8\n        uzp2            \\b\\().16b, \\s0\\().16b, \\s1\\().16b\n.endm\n\n.macro SMULL4K a0, a1, a2, a3, s0, s1, k\n        smull           \\a0\\().4s, \\s0\\().4h, \\k\n        smull2          \\a1\\().4s, \\s0\\().8h, \\k\n        smull           \\a2\\().4s, \\s1\\().4h, \\k\n        smull2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm\n\n.macro UMULL4K a0, a1, a2, a3, s0, s1, k\n        umull           \\a0\\().4s, \\s0\\().4h, \\k\n        umull2          \\a1\\().4s, \\s0\\().8h, \\k\n        umull           \\a2\\().4s, \\s1\\().4h, \\k\n        umull2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm\n\n.macro UMLAL4K a0, a1, a2, a3, s0, s1, k\n        umlal           \\a0\\().4s, \\s0\\().4h, \\k\n        umlal2          \\a1\\().4s, \\s0\\().8h, \\k\n        umlal           \\a2\\().4s, \\s1\\().4h, \\k\n        umlal2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:2", "text": ".macro SMULL4K a0, a1, a2, a3, s0, s1, k\n        smull           \\a0\\().4s, \\s0\\().4h, \\k\n        smull2          \\a1\\().4s, \\s0\\().8h, \\k\n        smull           \\a2\\().4s, \\s1\\().4h, \\k\n        smull2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm\n\n.macro UMULL4K a0, a1, a2, a3, s0, s1, k\n        umull           \\a0\\().4s, \\s0\\().4h, \\k\n        umull2          \\a1\\().4s, \\s0\\().8h, \\k\n        umull           \\a2\\().4s, \\s1\\().4h, \\k\n        umull2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm\n\n.macro UMLAL4K a0, a1, a2, a3, s0, s1, k\n        umlal           \\a0\\().4s, \\s0\\().4h, \\k\n        umlal2          \\a1\\().4s, \\s0\\().8h, \\k\n        umlal           \\a2\\().4s, \\s1\\().4h, \\k\n        umlal2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm\n\n.macro UMLSL4K a0, a1, a2, a3, s0, s1, k\n        umlsl           \\a0\\().4s, \\s0\\().4h, \\k\n        umlsl2          \\a1\\().4s, \\s0\\().8h, \\k\n        umlsl           \\a2\\().4s, \\s1\\().4h, \\k\n        umlsl2          \\a3\\().4s, \\s1\\().8h, \\k\n.endm\n\n//      int b = m2s1 - m1;\n//      int f = p2s1 - p1;\n//      int dc = c0s1 - m1;\n//      int de = c0s1 - p1;\n//      int sp_max = FFMIN(p1 - c0s1, m1 - c0s1);\n//      sp_max = FFMIN(sp_max, FFMAX(-b,-f));\n//      int sp_min = FFMIN(c0s1 - p1, c0s1 - m1);\n//      sp_min = FFMIN(sp_min, FFMAX(b,f));\n//      diff = diff == 0 ? 0 : FFMAX3(diff, sp_min, sp_max);\n.macro SPAT_CHECK diff, m2s1, m1, c0s1, p1, p2s1, t0, t1, t2, t3\n        uqsub           \\t0\\().16b, \\p1\\().16b, \\c0s1\\().16b\n        uqsub           \\t2\\().16b, \\m1\\().16b, \\c0s1\\().16b\n        umin            \\t2\\().16b, \\t0\\().16b, \\t2\\().16b\n\n        uqsub           \\t1\\().16b, \\m1\\().16b, \\m2s1\\().16b\n        uqsub           \\t3\\().16b, \\p1\\().16b, \\p2s1\\().16b\n        umax            \\t3\\().16b, \\t3\\().16b, \\t1\\().16b\n        umin            \\t3\\().16b, \\t3\\().16b, \\t2\\().16b\n\n        uqsub           \\t0\\().16b, \\c0s1\\().16b, \\p1\\().16b\n        uqsub           \\t2\\().16b, \\c0s1\\().16b, \\m1\\().16b\n        umin            \\t2\\().16b, \\t0\\().16b, \\t2\\().16b\n\n        uqsub           \\t1\\().16b, \\m2s1\\().16b, \\m1\\().16b\n        uqsub           \\t0\\().16b, \\p2s1\\().16b, \\p1\\().16b\n        umax            \\t0\\().16b, \\t0\\().16b, \\t1\\().16b\n        umin            \\t2\\().16b, \\t2\\().16b, \\t0\\().16b\n\n        cmeq            \\t1\\().16b, \\diff\\().16b, #0\n        umax            \\diff\\().16b, \\diff\\().16b, \\t3\\().16b\n        umax            \\diff\\().16b, \\diff\\().16b, \\t2\\().16b\n        bic             \\diff\\().16b, \\diff\\().16b, \\t1\\().16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:3", "text": "umin            \\t2\\().16b, \\t0\\().16b, \\t2\\().16b\n\n        uqsub           \\t1\\().16b, \\m1\\().16b, \\m2s1\\().16b\n        uqsub           \\t3\\().16b, \\p1\\().16b, \\p2s1\\().16b\n        umax            \\t3\\().16b, \\t3\\().16b, \\t1\\().16b\n        umin            \\t3\\().16b, \\t3\\().16b, \\t2\\().16b\n\n        uqsub           \\t0\\().16b, \\c0s1\\().16b, \\p1\\().16b\n        uqsub           \\t2\\().16b, \\c0s1\\().16b, \\m1\\().16b\n        umin            \\t2\\().16b, \\t0\\().16b, \\t2\\().16b\n\n        uqsub           \\t1\\().16b, \\m2s1\\().16b, \\m1\\().16b\n        uqsub           \\t0\\().16b, \\p2s1\\().16b, \\p1\\().16b\n        umax            \\t0\\().16b, \\t0\\().16b, \\t1\\().16b\n        umin            \\t2\\().16b, \\t2\\().16b, \\t0\\().16b\n\n        cmeq            \\t1\\().16b, \\diff\\().16b, #0\n        umax            \\diff\\().16b, \\diff\\().16b, \\t3\\().16b\n        umax            \\diff\\().16b, \\diff\\().16b, \\t2\\().16b\n        bic             \\diff\\().16b, \\diff\\().16b, \\t1\\().16b\n.endm\n\n//      i0 = s0;\n//      if (i0 > d0 + diff0)\n//          i0 = d0 + diff0;\n//      else if (i0 < d0 - diff0)\n//          i0 = d0 - diff0;\n//\n// i0 = s0 is safe\n.macro DIFF_CLIP i0, s0, d0, diff, t0, t1\n        uqadd           \\t0\\().16b, \\d0\\().16b, \\diff\\().16b\n        uqsub           \\t1\\().16b, \\d0\\().16b, \\diff\\().16b\n        umin            \\i0\\().16b, \\s0\\().16b, \\t0\\().16b\n        umax            \\i0\\().16b, \\i0\\().16b, \\t1\\().16b\n.endm\n\n//      i0 = FFABS(m1 - p1) > td0 ? i1 : i2;\n//      DIFF_CLIP\n//\n// i0 = i1 is safe\n.macro INTERPOL i0, i1, i2, m1, d0, p1, td0, diff, t0, t1, t2\n        uabd            \\t0\\().16b, \\m1\\().16b, \\p1\\().16b\n        cmhi            \\t0\\().16b, \\t0\\().16b, \\td0\\().16b\n        bsl             \\t0\\().16b, \\i1\\().16b, \\i2\\().16b\n        DIFF_CLIP       \\i0, \\t0, \\d0, \\diff, \\t1, \\t2\n.endm\n\n.macro PUSH_VREGS\n        stp             d8,  d9,  [sp, #-64]!\n        stp             d10, d11, [sp, #16]\n        stp             d12, d13, [sp, #32]\n        stp             d14, d15, [sp, #48]\n.endm\n\n.macro POP_VREGS\n        ldp             d14, d15, [sp, #48]\n        ldp             d12, d13, [sp, #32]\n        ldp             d10, d11, [sp, #16]\n        ldp             d8,  d9,  [sp], #64\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:4", "text": ".macro INTERPOL i0, i1, i2, m1, d0, p1, td0, diff, t0, t1, t2\n        uabd            \\t0\\().16b, \\m1\\().16b, \\p1\\().16b\n        cmhi            \\t0\\().16b, \\t0\\().16b, \\td0\\().16b\n        bsl             \\t0\\().16b, \\i1\\().16b, \\i2\\().16b\n        DIFF_CLIP       \\i0, \\t0, \\d0, \\diff, \\t1, \\t2\n.endm\n\n.macro PUSH_VREGS\n        stp             d8,  d9,  [sp, #-64]!\n        stp             d10, d11, [sp, #16]\n        stp             d12, d13, [sp, #32]\n        stp             d14, d15, [sp, #48]\n.endm\n\n.macro POP_VREGS\n        ldp             d14, d15, [sp, #48]\n        ldp             d12, d13, [sp, #32]\n        ldp             d10, d11, [sp, #16]\n        ldp             d8,  d9,  [sp], #64\n.endm\n\n.macro LDR_COEFFS d, t0\n        movrel          \\t0, coeffs, 0\n        ld1             {\\d\\().8h}, [\\t0]\n.endm\n\n// static const uint16_t coef_lf[2] = { 4309, 213 };\n// static const uint16_t coef_hf[3] = { 5570, 3801, 1016 };\n// static const uint16_t coef_sp[2] = { 5077, 981 };\n\nconst coeffs, align=4   // align 4 means align on 2^4 boundary\n        .hword          4309 * 4, 213 * 4               // lf[0]*4 = v0.h[0]\n        .hword          5570, 3801, 1016, -3801         // hf[0] = v0.h[2], -hf[1] = v0.h[5]\n        .hword          5077, 981                       // sp[0] = v0.h[6]\nendconst\n\n// ===========================================================================\n//\n// void ff_bwdif_filter_line3_neon(\n//         void * dst1,         // x0\n//         int d_stride,        // w1\n//         const void * prev1,  // x2\n//         const void * cur1,   // x3\n//         const void * next1,  // x4\n//         int s_stride,        // w5\n//         int w,               // w6\n//         int parity,          // w7\n//         int clip_max);       // [sp, #0] (Ignored)\n\nfunction ff_bwdif_filter_line3_neon, export=1\n        // Sanity check w\n        cmp             w6, #0\n        ble             99f\n\n        LDR_COEFFS      v0, x17\n\n// #define prev2 cur\n//        const uint8_t * restrict next2 = parity ? prev : next;\n        cmp             w7, #0\n        csel            x17, x2, x4, ne", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:5", "text": "//         int d_stride,        // w1\n//         const void * prev1,  // x2\n//         const void * cur1,   // x3\n//         const void * next1,  // x4\n//         int s_stride,        // w5\n//         int w,               // w6\n//         int parity,          // w7\n//         int clip_max);       // [sp, #0] (Ignored)\n\nfunction ff_bwdif_filter_line3_neon, export=1\n        // Sanity check w\n        cmp             w6, #0\n        ble             99f\n\n        LDR_COEFFS      v0, x17\n\n// #define prev2 cur\n//        const uint8_t * restrict next2 = parity ? prev : next;\n        cmp             w7, #0\n        csel            x17, x2, x4, ne\n\n        // We want all the V registers - save all the ones we must\n        PUSH_VREGS\n\n        // Some rearrangement of initial values for nice layout of refs in regs\n        mov             w10, w6                         // w10 = loop count\n        neg             w9,  w5                         // w9  = mref\n        lsl             w8,  w9,  #1                    // w8 =  mref2\n        add             w7,  w9,  w9, lsl #1            // w7  = mref3\n        lsl             w6,  w9,  #2                    // w6  = mref4\n        mov             w11, w5                         // w11 = pref\n        lsl             w12, w5,  #1                    // w12 = pref2\n        add             w13, w5,  w5, lsl #1            // w13 = pref3\n        lsl             w14, w5,  #2                    // w14 = pref4\n        add             w15, w5,  w5, lsl #2            // w15 = pref5\n        add             w16, w14, w12                   // w16 = pref6\n\n        lsl             w5,  w1,  #1                    // w5 = d_stride * 2\n\n//         for (x = 0; x < w; x++) {\n//             int diff0, diff2;\n//             int d0, d2;\n//             int temporal_diff0, temporal_diff2;\n//\n//             int i1, i2;\n//             int j1, j2;\n//             int p6, p5, p4, p3, p2, p1, c0, m1, m2, m3, m4;\n\n10:\n//             c0 = prev2[0] + next2[0];                // c0 = v20, v21\n//             d0  = c0 >> 1;                           // d0 = v10\n//             temporal_diff0 = FFABS(prev2[0] - next2[0]); // td0 = v11\n        ldr             q31, [x3]\n        ldr             q21, [x17]\n        uhadd           v10.16b, v31.16b, v21.16b\n        uabd            v11.16b, v31.16b, v21.16b\n        uaddl           v20.8h,  v21.8b,  v31.8b\n        uaddl2          v21.8h,  v21.16b, v31.16b\n\n        ldr             q31, [x3, w6, sxtw]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:6", "text": "//             int diff0, diff2;\n//             int d0, d2;\n//             int temporal_diff0, temporal_diff2;\n//\n//             int i1, i2;\n//             int j1, j2;\n//             int p6, p5, p4, p3, p2, p1, c0, m1, m2, m3, m4;\n\n10:\n//             c0 = prev2[0] + next2[0];                // c0 = v20, v21\n//             d0  = c0 >> 1;                           // d0 = v10\n//             temporal_diff0 = FFABS(prev2[0] - next2[0]); // td0 = v11\n        ldr             q31, [x3]\n        ldr             q21, [x17]\n        uhadd           v10.16b, v31.16b, v21.16b\n        uabd            v11.16b, v31.16b, v21.16b\n        uaddl           v20.8h,  v21.8b,  v31.8b\n        uaddl2          v21.8h,  v21.16b, v31.16b\n\n        ldr             q31, [x3, w6, sxtw]\n        ldr             q23, [x17, w6, sxtw]\n\n//             i1 = coef_hf[0] * c0;                    // i1 = v2-v5\n        UMULL4K         v2, v3, v4, v5, v20, v21, v0.h[2]\n\n        ldr             q30, [x3, w14, sxtw]\n        ldr             q25, [x17, w14, sxtw]\n\n//             m4 = prev2[mrefs4] + next2[mrefs4];      // m4 = v22,v23\n        uaddl           v22.8h,  v23.8b,  v31.8b\n        uaddl2          v23.8h,  v23.16b, v31.16b\n\n//             p4 = prev2[prefs4] + next2[prefs4];      // p4 = v24,v25, (p4 >> 1) = v12\n        uhadd           v12.16b, v25.16b, v30.16b\n        uaddl           v24.8h,  v25.8b,  v30.8b\n        uaddl2          v25.8h,  v25.16b, v30.16b\n\n//             j1 = -coef_hf[1] * (c0 + p4);            // j1 = v6-v9  (-c0:v20,v21)\n        add             v20.8h,  v20.8h,  v24.8h\n        add             v21.8h,  v21.8h,  v25.8h\n        SMULL4K         v6, v7, v8, v9, v20, v21, v0.h[5]\n\n//             m3 = cur[mrefs3];                        // m3 = v20\n        ldr             q20, [x3, w7, sxtw]\n\n//             p3 = cur[prefs3];                        // p3 = v21\n        ldr             q21, [x3, w13, sxtw]\n\n//             i1 += coef_hf[2] * (m4 + p4);            // (-m4:v22,v23) (-p4:v24,v25)\n        add             v22.8h,  v22.8h,  v24.8h\n        add             v23.8h,  v23.8h,  v25.8h\n        UMLAL4K         v2, v3, v4, v5, v22, v23, v0.h[4]\n\n        ldr             q29, [x3, w8, sxtw]\n        ldr             q23, [x17, w8, sxtw]\n\n//             i1 -= coef_lf[1] * 4 * (m3 + p3);        // -\n        uaddl           v30.8h,  v20.8b,  v21.8b\n        uaddl2          v31.8h,  v20.16b, v21.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:7", "text": "SMULL4K         v6, v7, v8, v9, v20, v21, v0.h[5]\n\n//             m3 = cur[mrefs3];                        // m3 = v20\n        ldr             q20, [x3, w7, sxtw]\n\n//             p3 = cur[prefs3];                        // p3 = v21\n        ldr             q21, [x3, w13, sxtw]\n\n//             i1 += coef_hf[2] * (m4 + p4);            // (-m4:v22,v23) (-p4:v24,v25)\n        add             v22.8h,  v22.8h,  v24.8h\n        add             v23.8h,  v23.8h,  v25.8h\n        UMLAL4K         v2, v3, v4, v5, v22, v23, v0.h[4]\n\n        ldr             q29, [x3, w8, sxtw]\n        ldr             q23, [x17, w8, sxtw]\n\n//             i1 -= coef_lf[1] * 4 * (m3 + p3);        // -\n        uaddl           v30.8h,  v20.8b,  v21.8b\n        uaddl2          v31.8h,  v20.16b, v21.16b\n\n        ldr             q28, [x3, w16, sxtw]\n        ldr             q25, [x17, w16, sxtw]\n\n        UMLSL4K         v2, v3, v4, v5, v30, v31, v0.h[1]\n\n//             m2 = prev2[mrefs2] + next2[mrefs2];      // m2 = v22,v23, (m2 >> 1) = v13\n        uhadd           v13.16b, v23.16b, v29.16b\n        uaddl           v22.8h,  v23.8b,  v29.8b\n        uaddl2          v23.8h,  v23.16b, v29.16b\n\n        ldr             q31, [x3, w12, sxtw]\n        ldr             q27, [x17, w12, sxtw]\n\n//             p6 = prev2[prefs6] + next2[prefs6];      // p6 = v24,v25\n        uaddl           v24.8h,  v25.8b,  v28.8b\n        uaddl2          v25.8h,  v25.16b, v28.16b\n\n//             j1 += coef_hf[2] * (m2 + p6);            // (-p6:v24,v25)\n        add             v24.8h,  v24.8h,  v22.8h\n        add             v25.8h,  v25.8h,  v23.8h\n        UMLAL4K         v6, v7, v8, v9, v24, v25, v0.h[4]\n\n//             m1 = cur[mrefs];                         // m1 = v24\n        ldr             q24, [x3, w9, sxtw]\n\n//             p5 = cur[prefs5];                        // p5 = v25\n        ldr             q25, [x3, w15, sxtw]\n\n//             p2 = prev2[prefs2] + next2[prefs2];      // p2 = v26, v27\n//             temporal_diff2 = FFABS(prev2[prefs2] - next2[prefs2]); // td2 = v14\n//             d2  = p2 >> 1;                           // d2 = v15\n        uabd            v14.16b, v31.16b, v27.16b\n        uhadd           v15.16b, v31.16b, v27.16b\n        uaddl           v26.8h,  v27.8b,  v31.8b\n        uaddl2          v27.8h,  v27.16b, v31.16b\n\n//             j1 += coef_hf[0] * p2;                   // -\n        UMLAL4K         v6, v7, v8, v9, v26, v27, v0.h[2]\n\n//             i1 -= coef_hf[1] * (m2 + p2);            // (-m2:v22,v23*) (-p2:v26*,v27*)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:8", "text": "UMLAL4K         v6, v7, v8, v9, v24, v25, v0.h[4]\n\n//             m1 = cur[mrefs];                         // m1 = v24\n        ldr             q24, [x3, w9, sxtw]\n\n//             p5 = cur[prefs5];                        // p5 = v25\n        ldr             q25, [x3, w15, sxtw]\n\n//             p2 = prev2[prefs2] + next2[prefs2];      // p2 = v26, v27\n//             temporal_diff2 = FFABS(prev2[prefs2] - next2[prefs2]); // td2 = v14\n//             d2  = p2 >> 1;                           // d2 = v15\n        uabd            v14.16b, v31.16b, v27.16b\n        uhadd           v15.16b, v31.16b, v27.16b\n        uaddl           v26.8h,  v27.8b,  v31.8b\n        uaddl2          v27.8h,  v27.16b, v31.16b\n\n//             j1 += coef_hf[0] * p2;                   // -\n        UMLAL4K         v6, v7, v8, v9, v26, v27, v0.h[2]\n\n//             i1 -= coef_hf[1] * (m2 + p2);            // (-m2:v22,v23*) (-p2:v26*,v27*)\n        add             v22.8h,  v22.8h,  v26.8h\n        add             v23.8h,  v23.8h,  v27.8h\n        UMLSL4K         v2, v3, v4, v5, v22, v23, v0.h[3]\n\n//             p1 = cur[prefs];                         // p1 = v22\n        ldr             q22, [x3, w11, sxtw]\n\n//             j1 -= coef_lf[1] * 4 * (m1 + p5);        // -\n        uaddl           v26.8h,  v24.8b,  v25.8b\n        uaddl2          v27.8h,  v24.16b, v25.16b\n        UMLSL4K         v6, v7, v8, v9, v26, v27, v0.h[1]\n\n//             j2 = (coef_sp[0] * (p1 + p3) - coef_sp[1]  * (m1 + p5)) >> 13; // (-p5:v25*) j2=v16\n        uaddl           v18.8h,  v22.8b,  v21.8b\n        uaddl2          v19.8h,  v22.16b, v21.16b\n        UMULL4K         v28, v29, v30, v31, v18, v19, v0.h[6]\n\n        uaddl           v18.8h,  v24.8b,  v25.8b\n        uaddl2          v19.8h,  v24.16b, v25.16b\n        UMLSL4K         v28, v29, v30, v31, v18, v19, v0.h[7]\n\n        SQSHRUNN        v16, v28, v29, v30, v31, 13\n\n//             i2 = (coef_sp[0] * (m1 + p1) - coef_sp[1] * (m3 + p3)) >> 13; // (-m3:v20*) i2=v17\n        uaddl           v18.8h,  v22.8b,  v24.8b\n        uaddl2          v19.8h,  v22.16b, v24.16b\n        UMULL4K         v28, v29, v30, v31, v18, v19, v0.h[6]\n\n        uaddl           v18.8h,  v20.8b,  v21.8b\n        uaddl2          v19.8h,  v20.16b, v21.16b\n        UMLSL4K         v28, v29, v30, v31, v18, v19, v0.h[7]\n\n        SQSHRUNN        v17, v28, v29, v30, v31, 13\n\n//             i1 += coef_lf[0] * 4 * (m1 + p1);        // p1 = v22, m1 = v24\n        uaddl           v26.8h,  v24.8b,  v22.8b\n        uaddl2          v27.8h,  v24.16b, v22.16b\n        UMLAL4K         v2, v3, v4, v5, v26, v27, v0.h[0]\n\n        ldr             q31, [x2, w9, sxtw]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:9", "text": "SQSHRUNN        v16, v28, v29, v30, v31, 13\n\n//             i2 = (coef_sp[0] * (m1 + p1) - coef_sp[1] * (m3 + p3)) >> 13; // (-m3:v20*) i2=v17\n        uaddl           v18.8h,  v22.8b,  v24.8b\n        uaddl2          v19.8h,  v22.16b, v24.16b\n        UMULL4K         v28, v29, v30, v31, v18, v19, v0.h[6]\n\n        uaddl           v18.8h,  v20.8b,  v21.8b\n        uaddl2          v19.8h,  v20.16b, v21.16b\n        UMLSL4K         v28, v29, v30, v31, v18, v19, v0.h[7]\n\n        SQSHRUNN        v17, v28, v29, v30, v31, 13\n\n//             i1 += coef_lf[0] * 4 * (m1 + p1);        // p1 = v22, m1 = v24\n        uaddl           v26.8h,  v24.8b,  v22.8b\n        uaddl2          v27.8h,  v24.16b, v22.16b\n        UMLAL4K         v2, v3, v4, v5, v26, v27, v0.h[0]\n\n        ldr             q31, [x2, w9, sxtw]\n        ldr             q29, [x4, w9, sxtw]\n\n//             j1 += coef_lf[0] * 4 * (p1 + p3);        // p1 = v22, p3 = v21\n        uaddl           v26.8h,  v21.8b,  v22.8b\n        uaddl2          v27.8h,  v21.16b, v22.16b\n        UMLAL4K         v6, v7, v8, v9, v26, v27, v0.h[0]\n\n        ldr             q30, [x2, w11, sxtw]\n        ldr             q28, [x4, w11, sxtw]\n\n//             i1 >>= 15;                               // i1 = v2, -v3, -v4*, -v5*\n        SQSHRUNN        v2, v2, v3, v4, v5, 15\n\n//             j1 >>= 15;                               // j1 = v3, -v6*, -v7*, -v8*, -v9*\n        SQSHRUNN        v3, v6, v7, v8, v9, 15\n\n//             {\n//                 int t1 =(FFABS(prev[mrefs] - m1) + FFABS(prev[prefs] - p1)) >> 1;\n//                 int t2 =(FFABS(next[mrefs] - m1) + FFABS(next[prefs] - p1)) >> 1;\n        uabd            v30.16b, v22.16b, v30.16b\n        uabd            v31.16b, v24.16b, v31.16b\n        uabd            v28.16b, v22.16b, v28.16b\n        uabd            v29.16b, v24.16b, v29.16b\n        uhadd           v31.16b, v31.16b, v30.16b\n        uhadd           v29.16b, v29.16b, v28.16b\n\n        ldr             q27, [x2, w13, sxtw]\n        ldr             q26, [x4, w13, sxtw]\n\n//                 diff0 = FFMAX3(temporal_diff0 >> 1, t1, t2); // diff0=v18\n        ushr            v18.16b, v11.16b, #1\n        umax            v18.16b, v18.16b, v31.16b\n        umax            v18.16b, v18.16b, v29.16b\n//             }                                        // v28, v30 preserved for next block\n//             {  // tdiff2 = v14\n//                 int t1 =(FFABS(prev[prefs] - p1) + FFABS(prev[prefs3] - p3)) >> 1;\n//                 int t2 =(FFABS(next[prefs] - p1) + FFABS(next[prefs3] - p3)) >> 1;\n        uabd            v31.16b, v21.16b, v27.16b\n        uabd            v29.16b, v21.16b, v26.16b\n        uhadd           v31.16b, v31.16b, v30.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:10", "text": "uabd            v31.16b, v24.16b, v31.16b\n        uabd            v28.16b, v22.16b, v28.16b\n        uabd            v29.16b, v24.16b, v29.16b\n        uhadd           v31.16b, v31.16b, v30.16b\n        uhadd           v29.16b, v29.16b, v28.16b\n\n        ldr             q27, [x2, w13, sxtw]\n        ldr             q26, [x4, w13, sxtw]\n\n//                 diff0 = FFMAX3(temporal_diff0 >> 1, t1, t2); // diff0=v18\n        ushr            v18.16b, v11.16b, #1\n        umax            v18.16b, v18.16b, v31.16b\n        umax            v18.16b, v18.16b, v29.16b\n//             }                                        // v28, v30 preserved for next block\n//             {  // tdiff2 = v14\n//                 int t1 =(FFABS(prev[prefs] - p1) + FFABS(prev[prefs3] - p3)) >> 1;\n//                 int t2 =(FFABS(next[prefs] - p1) + FFABS(next[prefs3] - p3)) >> 1;\n        uabd            v31.16b, v21.16b, v27.16b\n        uabd            v29.16b, v21.16b, v26.16b\n        uhadd           v31.16b, v31.16b, v30.16b\n        uhadd           v29.16b, v29.16b, v28.16b\n\n//                 diff2 = FFMAX3(temporal_diff2 >> 1, t1, t2); // diff2=v19\n        ushr            v19.16b, v14.16b, #1\n        umax            v19.16b, v19.16b, v31.16b\n        umax            v19.16b, v19.16b, v29.16b\n//             }\n\n        // diff0 = v18, (m2 >> 1) = v13, m1 = v24, d0 = v10, p1 = v22, d2 = v15\n        SPAT_CHECK      v18, v13, v24, v10, v22, v15, v31, v30, v29, v28\n\n        //  diff2 = v19, d0 = v10, p1 = v22, d2 = v15, p3 = v21, (p4 >> 1) = v12\n        SPAT_CHECK      v19, v10, v22, v15, v21, v12, v31, v30, v29, v28\n\n        // j1 = v3, j2 = v16, p1 = v22, d2 = v15, p3 = v21, td2 = v14, diff2 = v19\n        INTERPOL        v3, v3, v16, v22, v15, v21, v14, v19, v31, v30, v29\n\n//                 dst[d_stride * 2] = av_clip_uint8(interpol);\n        str             q3,  [x0, w5, sxtw]\n\n//             dst[d_stride] = p1;\n        str             q22, [x0, w1, sxtw]\n\n        // i1 = v2, i2 = v17, m1 = v24, d0 = v10, p1 = v22, td2 = v11, diff2 = v18\n        INTERPOL        v2, v2, v17, v24, v10, v22, v11, v18, v31, v30, v29\n\n//                 dst[0] = av_clip_uint8(interpol);\n        str             q2,  [x0], #16\n//             }\n//\n//             dst++;\n//             cur++;\n//             prev++;\n//             prev2++;\n//             next++;\n//         }\n        subs            w10, w10, #16\n        add             x2,  x2,  #16\n        add             x3,  x3,  #16\n        add             x4,  x4,  #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:11", "text": "//             dst[d_stride] = p1;\n        str             q22, [x0, w1, sxtw]\n\n        // i1 = v2, i2 = v17, m1 = v24, d0 = v10, p1 = v22, td2 = v11, diff2 = v18\n        INTERPOL        v2, v2, v17, v24, v10, v22, v11, v18, v31, v30, v29\n\n//                 dst[0] = av_clip_uint8(interpol);\n        str             q2,  [x0], #16\n//             }\n//\n//             dst++;\n//             cur++;\n//             prev++;\n//             prev2++;\n//             next++;\n//         }\n        subs            w10, w10, #16\n        add             x2,  x2,  #16\n        add             x3,  x3,  #16\n        add             x4,  x4,  #16\n        add             x17, x17, #16\n        bgt             10b\n\n        POP_VREGS\n99:\n        ret\nendfunc\n\n// ===========================================================================\n//\n// void filter_line(\n//      void *dst1,     // x0\n//      void *prev1,    // x1\n//      void *cur1,     // x2\n//      void *next1,    // x3\n//      int w,          // w4\n//      int prefs,      // w5\n//      int mrefs,      // w6\n//      int prefs2,     // w7\n//      int mrefs2,     // [sp, #0]\n//      int prefs3,     // [sp, #SP_INT]\n//      int mrefs3,     // [sp, #SP_INT*2]\n//      int prefs4,     // [sp, #SP_INT*3]\n//      int mrefs4,     // [sp, #SP_INT*4]\n//      int parity,     // [sp, #SP_INT*5]\n//      int clip_max)   // [sp, #SP_INT*6]\n\nfunction ff_bwdif_filter_line_neon, export=1\n        // Sanity check w\n        cmp             w4, #0\n        ble             99f\n\n        // Rearrange regs to be the same as line3 for ease of debug!\n        mov             w10, w4                         // w10 = loop count\n        mov             w9,  w6                         // w9  = mref\n        mov             w12, w7                         // w12 = pref2\n        mov             w11, w5                         // w11 = pref\n        ldr             w8,  [sp, #0]                   // w8 =  mref2\n        ldr             w7,  [sp, #SP_INT*2]            // w7  = mref3\n        ldr             w6,  [sp, #SP_INT*4]            // w6  = mref4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:12", "text": "//      int prefs3,     // [sp, #SP_INT]\n//      int mrefs3,     // [sp, #SP_INT*2]\n//      int prefs4,     // [sp, #SP_INT*3]\n//      int mrefs4,     // [sp, #SP_INT*4]\n//      int parity,     // [sp, #SP_INT*5]\n//      int clip_max)   // [sp, #SP_INT*6]\n\nfunction ff_bwdif_filter_line_neon, export=1\n        // Sanity check w\n        cmp             w4, #0\n        ble             99f\n\n        // Rearrange regs to be the same as line3 for ease of debug!\n        mov             w10, w4                         // w10 = loop count\n        mov             w9,  w6                         // w9  = mref\n        mov             w12, w7                         // w12 = pref2\n        mov             w11, w5                         // w11 = pref\n        ldr             w8,  [sp, #0]                   // w8 =  mref2\n        ldr             w7,  [sp, #SP_INT*2]            // w7  = mref3\n        ldr             w6,  [sp, #SP_INT*4]            // w6  = mref4\n        ldr             w13, [sp, #SP_INT]              // w13 = pref3\n        ldr             w14, [sp, #SP_INT*3]            // w14 = pref4\n\n        mov             x4,  x3\n        mov             x3,  x2\n        mov             x2,  x1\n\n        LDR_COEFFS      v0, x17\n\n// #define prev2 cur\n//        const uint8_t * restrict next2 = parity ? prev : next;\n        ldr             w17, [sp, #SP_INT*5]            // parity\n        cmp             w17, #0\n        csel            x17, x2, x4, ne\n\n        PUSH_VREGS\n\n//         for (x = 0; x < w; x++) {\n//             int diff0, diff2;\n//             int d0, d2;\n//             int temporal_diff0, temporal_diff2;\n//\n//             int i1, i2;\n//             int j1, j2;\n//             int p6, p5, p4, p3, p2, p1, c0, m1, m2, m3, m4;\n\n10:\n//             c0 = prev2[0] + next2[0];            // c0 = v20, v21\n//             d0  = c0 >> 1;                       // d0 = v10\n//             temporal_diff0 = FFABS(prev2[0] - next2[0]); // td0 = v11\n        ldr             q31, [x3]\n        ldr             q21, [x17]\n        uhadd           v10.16b, v31.16b, v21.16b\n        uabd            v11.16b, v31.16b, v21.16b\n        uaddl           v20.8h,  v21.8b,  v31.8b\n        uaddl2          v21.8h,  v21.16b, v31.16b\n\n        ldr             q31, [x3, w6, sxtw]\n        ldr             q23, [x17, w6, sxtw]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:13", "text": "//             int temporal_diff0, temporal_diff2;\n//\n//             int i1, i2;\n//             int j1, j2;\n//             int p6, p5, p4, p3, p2, p1, c0, m1, m2, m3, m4;\n\n10:\n//             c0 = prev2[0] + next2[0];            // c0 = v20, v21\n//             d0  = c0 >> 1;                       // d0 = v10\n//             temporal_diff0 = FFABS(prev2[0] - next2[0]); // td0 = v11\n        ldr             q31, [x3]\n        ldr             q21, [x17]\n        uhadd           v10.16b, v31.16b, v21.16b\n        uabd            v11.16b, v31.16b, v21.16b\n        uaddl           v20.8h,  v21.8b,  v31.8b\n        uaddl2          v21.8h,  v21.16b, v31.16b\n\n        ldr             q31, [x3, w6, sxtw]\n        ldr             q23, [x17, w6, sxtw]\n\n//             i1 = coef_hf[0] * c0;                // i1 = v2-v5\n        UMULL4K         v2, v3, v4, v5, v20, v21, v0.h[2]\n\n        ldr             q30, [x3, w14, sxtw]\n        ldr             q25, [x17, w14, sxtw]\n\n//             m4 = prev2[mrefs4] + next2[mrefs4];  // m4 = v22,v23\n        uaddl           v22.8h,  v23.8b,  v31.8b\n        uaddl2          v23.8h,  v23.16b, v31.16b\n\n//             p4 = prev2[prefs4] + next2[prefs4];  // p4 = v24,v25, (p4 >> 1) = v12\n        uhadd           v12.16b, v25.16b, v30.16b\n        uaddl           v24.8h,  v25.8b,  v30.8b\n        uaddl2          v25.8h,  v25.16b, v30.16b\n\n//             m3 = cur[mrefs3];                    // m3 = v20\n        ldr             q20, [x3, w7, sxtw]\n\n//             p3 = cur[prefs3];                    // p3 = v21\n        ldr             q21, [x3, w13, sxtw]\n\n//             i1 += coef_hf[2] * (m4 + p4);        // (-m4:v22,v23) (-p4:v24,v25)\n        add             v22.8h,  v22.8h,  v24.8h\n        add             v23.8h,  v23.8h,  v25.8h\n        UMLAL4K         v2, v3, v4, v5, v22, v23, v0.h[4]\n\n        ldr             q29, [x3, w8, sxtw]\n        ldr             q23, [x17, w8, sxtw]\n\n//             i1 -= coef_lf[1] * 4 * (m3 + p3);    // -\n        uaddl           v30.8h,  v20.8b,  v21.8b\n        uaddl2          v31.8h,  v20.16b, v21.16b\n\n        UMLSL4K         v2, v3, v4, v5, v30, v31, v0.h[1]\n\n        ldr             q31, [x3, w12, sxtw]\n        ldr             q27, [x17, w12, sxtw]\n\n//             m2 = prev2[mrefs2] + next2[mrefs2];  // m2 = v22,v23, (m2 >> 1) = v13\n        uhadd           v13.16b, v23.16b, v29.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:14", "text": "//             i1 += coef_hf[2] * (m4 + p4);        // (-m4:v22,v23) (-p4:v24,v25)\n        add             v22.8h,  v22.8h,  v24.8h\n        add             v23.8h,  v23.8h,  v25.8h\n        UMLAL4K         v2, v3, v4, v5, v22, v23, v0.h[4]\n\n        ldr             q29, [x3, w8, sxtw]\n        ldr             q23, [x17, w8, sxtw]\n\n//             i1 -= coef_lf[1] * 4 * (m3 + p3);    // -\n        uaddl           v30.8h,  v20.8b,  v21.8b\n        uaddl2          v31.8h,  v20.16b, v21.16b\n\n        UMLSL4K         v2, v3, v4, v5, v30, v31, v0.h[1]\n\n        ldr             q31, [x3, w12, sxtw]\n        ldr             q27, [x17, w12, sxtw]\n\n//             m2 = prev2[mrefs2] + next2[mrefs2];  // m2 = v22,v23, (m2 >> 1) = v13\n        uhadd           v13.16b, v23.16b, v29.16b\n        uaddl           v22.8h,  v23.8b,  v29.8b\n        uaddl2          v23.8h,  v23.16b, v29.16b\n\n//             m1 = cur[mrefs];                     // m1 = v24\n        ldr             q24, [x3, w9, sxtw]\n\n//             p2 = prev2[prefs2] + next2[prefs2];  // p2 = v26, v27\n//             temporal_diff2 = FFABS(prev2[prefs2] - next2[prefs2]); // td2 = v14\n//             d2  = p2 >> 1;                       // d2 = v15\n        uabd            v14.16b, v31.16b, v27.16b\n        uhadd           v15.16b, v31.16b, v27.16b\n        uaddl           v26.8h,  v27.8b,  v31.8b\n        uaddl2          v27.8h,  v27.16b, v31.16b\n\n//             i1 -= coef_hf[1] * (m2 + p2);        // (-m2:v22,v23*) (-p2:v26*,v27*)\n        add             v22.8h,  v22.8h,  v26.8h\n        add             v23.8h,  v23.8h,  v27.8h\n        UMLSL4K         v2, v3, v4, v5, v22, v23, v0.h[3]\n\n//             p1 = cur[prefs];                     // p1 = v22\n        ldr             q22, [x3, w11, sxtw]\n\n//             i2 = (coef_sp[0] * (m1 + p1) - coef_sp[1] * (m3 + p3)) >> 13; // (-m3:v20*) i2=v17\n        uaddl           v18.8h,  v22.8b,  v24.8b\n        uaddl2          v19.8h,  v22.16b, v24.16b\n        UMULL4K         v28, v29, v30, v31, v18, v19, v0.h[6]\n\n        uaddl           v18.8h,  v20.8b,  v21.8b\n        uaddl2          v19.8h,  v20.16b, v21.16b\n        UMLSL4K         v28, v29, v30, v31, v18, v19, v0.h[7]\n\n        SQSHRUNN        v17, v28, v29, v30, v31, 13\n\n//             i1 += coef_lf[0] * 4 * (m1 + p1);    // p1 = v22, m1 = v24\n        uaddl           v26.8h,  v24.8b,  v22.8b\n        uaddl2          v27.8h,  v24.16b, v22.16b\n        UMLAL4K         v2, v3, v4, v5, v26, v27, v0.h[0]\n\n        ldr             q31, [x2, w9, sxtw]\n        ldr             q29, [x4, w9, sxtw]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:15", "text": "ldr             q22, [x3, w11, sxtw]\n\n//             i2 = (coef_sp[0] * (m1 + p1) - coef_sp[1] * (m3 + p3)) >> 13; // (-m3:v20*) i2=v17\n        uaddl           v18.8h,  v22.8b,  v24.8b\n        uaddl2          v19.8h,  v22.16b, v24.16b\n        UMULL4K         v28, v29, v30, v31, v18, v19, v0.h[6]\n\n        uaddl           v18.8h,  v20.8b,  v21.8b\n        uaddl2          v19.8h,  v20.16b, v21.16b\n        UMLSL4K         v28, v29, v30, v31, v18, v19, v0.h[7]\n\n        SQSHRUNN        v17, v28, v29, v30, v31, 13\n\n//             i1 += coef_lf[0] * 4 * (m1 + p1);    // p1 = v22, m1 = v24\n        uaddl           v26.8h,  v24.8b,  v22.8b\n        uaddl2          v27.8h,  v24.16b, v22.16b\n        UMLAL4K         v2, v3, v4, v5, v26, v27, v0.h[0]\n\n        ldr             q31, [x2, w9, sxtw]\n        ldr             q29, [x4, w9, sxtw]\n\n        ldr             q30, [x2, w11, sxtw]\n        ldr             q28, [x4, w11, sxtw]\n\n//             i1 >>= 15;                            // i1 = v2, -v3, -v4*, -v5*\n        SQSHRUNN        v2, v2, v3, v4, v5, 15\n\n//             {\n//                 int t1 =(FFABS(prev[mrefs] - m1) + FFABS(prev[prefs] - p1)) >> 1;\n//                 int t2 =(FFABS(next[mrefs] - m1) + FFABS(next[prefs] - p1)) >> 1;\n        uabd            v30.16b, v22.16b, v30.16b\n        uabd            v31.16b, v24.16b, v31.16b\n        uabd            v28.16b, v22.16b, v28.16b\n        uabd            v29.16b, v24.16b, v29.16b\n        uhadd           v31.16b, v31.16b, v30.16b\n        uhadd           v29.16b, v29.16b, v28.16b\n\n//                 diff0 = FFMAX3(temporal_diff0 >> 1, t1, t2); // diff0=v18\n        ushr            v18.16b, v11.16b, #1\n        umax            v18.16b, v18.16b, v31.16b\n        umax            v18.16b, v18.16b, v29.16b\n\n        // diff0 = v18, (m2 >> 1) = v13, m1 = v24, d0 = v10, p1 = v22, d2 = v15\n        SPAT_CHECK      v18, v13, v24, v10, v22, v15, v31, v30, v29, v28\n\n        // i1 = v2, i2 = v17, m1 = v24, d0 = v10, p1 = v22, td2 = v11, diff2 = v18\n        INTERPOL        v2, v2, v17, v24, v10, v22, v11, v18, v31, v30, v29\n\n//                 dst[0] = av_clip_uint8(interpol);\n        str             q2,  [x0], #16\n//             }\n//\n//             dst++;\n//             cur++;\n//             prev++;\n//             prev2++;\n//             next++;\n//         }\n\n        subs            w10, w10, #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:16", "text": "umax            v18.16b, v18.16b, v29.16b\n\n        // diff0 = v18, (m2 >> 1) = v13, m1 = v24, d0 = v10, p1 = v22, d2 = v15\n        SPAT_CHECK      v18, v13, v24, v10, v22, v15, v31, v30, v29, v28\n\n        // i1 = v2, i2 = v17, m1 = v24, d0 = v10, p1 = v22, td2 = v11, diff2 = v18\n        INTERPOL        v2, v2, v17, v24, v10, v22, v11, v18, v31, v30, v29\n\n//                 dst[0] = av_clip_uint8(interpol);\n        str             q2,  [x0], #16\n//             }\n//\n//             dst++;\n//             cur++;\n//             prev++;\n//             prev2++;\n//             next++;\n//         }\n\n        subs            w10, w10, #16\n        add             x2,  x2,  #16\n        add             x3,  x3,  #16\n        add             x4,  x4,  #16\n        add             x17, x17, #16\n        bgt             10b\n\n        POP_VREGS\n99:\n        ret\nendfunc\n\n// ============================================================================\n//\n// void ff_bwdif_filter_edge_neon(\n//      void *dst1,     // x0\n//      void *prev1,    // x1\n//      void *cur1,     // x2\n//      void *next1,    // x3\n//      int w,          // w4\n//      int prefs,      // w5\n//      int mrefs,      // w6\n//      int prefs2,     // w7\n//      int mrefs2,     // [sp, #0]\n//      int parity,     // [sp, #SP_INT]\n//      int clip_max,   // [sp, #SP_INT*2]  unused\n//      int spat);      // [sp, #SP_INT*3]\n\nfunction ff_bwdif_filter_edge_neon, export=1\n        // Sanity check w\n        cmp             w4, #0\n        ble             99f\n\n// #define prev2 cur\n//     const uint8_t * restrict next2 = parity ? prev : next;\n\n        ldr             w8,  [sp, #0]                   // mrefs2\n\n        ldr             w17, [sp, #SP_INT]              // parity\n        ldr             w16, [sp, #SP_INT*3]            // spat\n        cmp             w17, #0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:17", "text": "//      int mrefs,      // w6\n//      int prefs2,     // w7\n//      int mrefs2,     // [sp, #0]\n//      int parity,     // [sp, #SP_INT]\n//      int clip_max,   // [sp, #SP_INT*2]  unused\n//      int spat);      // [sp, #SP_INT*3]\n\nfunction ff_bwdif_filter_edge_neon, export=1\n        // Sanity check w\n        cmp             w4, #0\n        ble             99f\n\n// #define prev2 cur\n//     const uint8_t * restrict next2 = parity ? prev : next;\n\n        ldr             w8,  [sp, #0]                   // mrefs2\n\n        ldr             w17, [sp, #SP_INT]              // parity\n        ldr             w16, [sp, #SP_INT*3]            // spat\n        cmp             w17, #0\n        csel            x17, x1, x3, ne\n\n//     for (x = 0; x < w; x++) {\n\n10:\n//        int m1 = cur[mrefs];\n//        int d = (prev2[0] + next2[0]) >> 1;\n//        int p1 = cur[prefs];\n//        int temporal_diff0 = FFABS(prev2[0] - next2[0]);\n//        int temporal_diff1 =(FFABS(prev[mrefs] - m1) + FFABS(prev[prefs] - p1)) >> 1;\n//        int temporal_diff2 =(FFABS(next[mrefs] - m1) + FFABS(next[prefs] - p1)) >> 1;\n//        int diff = FFMAX3(temporal_diff0 >> 1, temporal_diff1, temporal_diff2);\n        ldr             q31, [x2]\n        ldr             q21, [x17]\n        uhadd           v16.16b, v31.16b, v21.16b       // d0 = v16\n        uabd            v17.16b, v31.16b, v21.16b       // td0 = v17\n        ldr             q24, [x2, w6, sxtw]             // m1 = v24\n        ldr             q22, [x2, w5, sxtw]             // p1 = v22\n\n        ldr             q0,  [x1, w6, sxtw]             // prev[mrefs]\n        ldr             q2,  [x1, w5, sxtw]             // prev[prefs]\n        ldr             q1,  [x3, w6, sxtw]             // next[mrefs]\n        ldr             q3,  [x3, w5, sxtw]             // next[prefs]\n\n        ushr            v29.16b, v17.16b, #1\n\n        uabd            v31.16b, v0.16b,  v24.16b\n        uabd            v30.16b, v2.16b,  v22.16b\n        uhadd           v0.16b,  v31.16b, v30.16b       // td1 = q0\n\n        uabd            v31.16b, v1.16b,  v24.16b\n        uabd            v30.16b, v3.16b,  v22.16b\n        uhadd           v1.16b,  v31.16b, v30.16b       // td2 = q1\n\n        umax            v0.16b,  v0.16b,  v29.16b\n        umax            v0.16b,  v0.16b,  v1.16b        // diff = v0\n\n//        if (spat) {\n//            SPAT_CHECK()\n//        }", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:18", "text": "ldr             q2,  [x1, w5, sxtw]             // prev[prefs]\n        ldr             q1,  [x3, w6, sxtw]             // next[mrefs]\n        ldr             q3,  [x3, w5, sxtw]             // next[prefs]\n\n        ushr            v29.16b, v17.16b, #1\n\n        uabd            v31.16b, v0.16b,  v24.16b\n        uabd            v30.16b, v2.16b,  v22.16b\n        uhadd           v0.16b,  v31.16b, v30.16b       // td1 = q0\n\n        uabd            v31.16b, v1.16b,  v24.16b\n        uabd            v30.16b, v3.16b,  v22.16b\n        uhadd           v1.16b,  v31.16b, v30.16b       // td2 = q1\n\n        umax            v0.16b,  v0.16b,  v29.16b\n        umax            v0.16b,  v0.16b,  v1.16b        // diff = v0\n\n//        if (spat) {\n//            SPAT_CHECK()\n//        }\n//        i0 = (m1 + p1) >> 1;\n        cbz             w16, 1f\n\n        ldr             q31, [x2,  w8, sxtw]\n        ldr             q18, [x17, w8, sxtw]\n        ldr             q30, [x2,  w7, sxtw]\n        ldr             q19, [x17, w7, sxtw]\n        uhadd           v18.16b, v18.16b, v31.16b\n        uhadd           v19.16b, v19.16b, v30.16b\n\n        SPAT_CHECK      v0, v18, v24, v16, v22, v19, v31, v30, v29, v28\n\n1:\n        uhadd           v2.16b,  v22.16b, v24.16b\n\n        // i0 = v2, s0 = v2, d0 = v16, diff = v0, t0 = v31, t1 = v30\n        DIFF_CLIP       v2, v2, v16, v0, v31, v30\n\n//        dst[0] = av_clip(interpol, 0, clip_max);\n        str             q2, [x0], #16\n\n//        dst++;\n//        cur++;\n//    }\n        subs            w4,  w4,  #16\n        add             x1,  x1,  #16\n        add             x2,  x2,  #16\n        add             x3,  x3,  #16\n        add             x17, x17, #16\n        bgt             10b\n\n99:\n        ret\nendfunc\n\n// ============================================================================\n//\n// void ff_bwdif_filter_intra_neon(\n//      void *dst1,     // x0\n//      void *cur1,     // x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:19", "text": "//        dst++;\n//        cur++;\n//    }\n        subs            w4,  w4,  #16\n        add             x1,  x1,  #16\n        add             x2,  x2,  #16\n        add             x3,  x3,  #16\n        add             x17, x17, #16\n        bgt             10b\n\n99:\n        ret\nendfunc\n\n// ============================================================================\n//\n// void ff_bwdif_filter_intra_neon(\n//      void *dst1,     // x0\n//      void *cur1,     // x1\n//      int w,          // w2\n//      int prefs,      // w3\n//      int mrefs,      // w4\n//      int prefs3,     // w5\n//      int mrefs3,     // w6\n//      int parity,     // w7       unused\n//      int clip_max)   // [sp, #0] unused\n\nfunction ff_bwdif_filter_intra_neon, export=1\n        cmp             w2, #0\n        ble             99f\n\n        LDR_COEFFS      v0, x17\n\n//    for (x = 0; x < w; x++) {\n10:\n\n//        interpol = (coef_sp[0] * (cur[mrefs] + cur[prefs]) - coef_sp[1] * (cur[mrefs3] + cur[prefs3])) >> 13;\n        ldr             q31, [x1, w4, sxtw]\n        ldr             q30, [x1, w3, sxtw]\n        ldr             q29, [x1, w6, sxtw]\n        ldr             q28, [x1, w5, sxtw]\n\n        uaddl           v20.8h,  v31.8b,  v30.8b\n        uaddl2          v21.8h,  v31.16b, v30.16b\n\n        UMULL4K         v2, v3, v4, v5, v20, v21, v0.h[6]\n\n        uaddl           v20.8h,  v29.8b,  v28.8b\n        uaddl2          v21.8h,  v29.16b, v28.16b\n\n        UMLSL4K         v2, v3, v4, v5, v20, v21, v0.h[7]\n\n//        dst[0] = av_clip(interpol, 0, clip_max);\n        SQSHRUNN        v2, v2, v3, v4, v5, 13\n        str             q2, [x0], #16\n\n//        dst++;\n//        cur++;\n//    }", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:20", "text": "ldr             q29, [x1, w6, sxtw]\n        ldr             q28, [x1, w5, sxtw]\n\n        uaddl           v20.8h,  v31.8b,  v30.8b\n        uaddl2          v21.8h,  v31.16b, v30.16b\n\n        UMULL4K         v2, v3, v4, v5, v20, v21, v0.h[6]\n\n        uaddl           v20.8h,  v29.8b,  v28.8b\n        uaddl2          v21.8h,  v29.16b, v28.16b\n\n        UMLSL4K         v2, v3, v4, v5, v20, v21, v0.h[7]\n\n//        dst[0] = av_clip(interpol, 0, clip_max);\n        SQSHRUNN        v2, v2, v3, v4, v5, 13\n        str             q2, [x0], #16\n\n//        dst++;\n//        cur++;\n//    }\n\n        subs            w2,  w2,  #16\n        add             x1,  x1,  #16\n        bgt             10b\n\n99:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 761, "line_end": 788}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_bwdif_neon.S:4", "text": ".macro INTERPOL i0, i1, i2, m1, d0, p1, td0, diff, t0, t1, t2\n        uabd            \\t0\\().16b, \\m1\\().16b, \\p1\\().16b\n        cmhi            \\t0\\().16b, \\t0\\().16b, \\td0\\().16b\n        bsl             \\t0\\().16b, \\i1\\().16b, \\i2\\().16b\n        DIFF_CLIP       \\i0, \\t0, \\d0, \\diff, \\t1, \\t2\n.endm\n\n.macro PUSH_VREGS\n        stp             d8,  d9,  [sp, #-64]!\n        stp             d10, d11, [sp, #16]\n        stp             d12, d13, [sp, #32]\n        stp             d14, d15, [sp, #48]\n.endm\n\n.macro POP_VREGS\n        ldp             d14, d15, [sp, #48]\n        ldp             d12, d13, [sp, #32]\n        ldp             d10, d11, [sp, #16]\n        ldp             d8,  d9,  [sp], #64\n.endm\n\n.macro LDR_COEFFS d, t0\n        movrel          \\t0, coeffs, 0\n        ld1             {\\d\\().8h}, [\\t0]\n.endm\n\n// static const uint16_t coef_lf[2] = { 4309, 213 };\n// static const uint16_t coef_hf[3] = { 5570, 3801, 1016 };\n// static const uint16_t coef_sp[2] = { 5077, 981 };\n\nconst coeffs, align=4   // align 4 means align on 2^4 boundry\n        .hword          4309 * 4, 213 * 4               // lf[0]*4 = v0.h[0]\n        .hword          5570, 3801, 1016, -3801         // hf[0] = v0.h[2], -hf[1] = v0.h[5]\n        .hword          5077, 981                       // sp[0] = v0.h[6]\nendconst\n\n// ===========================================================================\n//\n// void ff_bwdif_filter_line3_neon(\n//         void * dst1,         // x0\n//         int d_stride,        // w1\n//         const void * prev1,  // x2\n//         const void * cur1,   // x3\n//         const void * next1,  // x4\n//         int s_stride,        // w5\n//         int w,               // w6\n//         int parity,          // w7\n//         int clip_max);       // [sp, #0] (Ignored)\n\nfunction ff_bwdif_filter_line3_neon, export=1\n        // Sanity check w\n        cmp             w6, #0\n        ble             99f\n\n        LDR_COEFFS      v0, x17\n\n// #define prev2 cur\n//        const uint8_t * restrict next2 = parity ? prev : next;\n        cmp             w7, #0\n        csel            x17, x2, x4, ne", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_bwdif_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/aarch64/vf_bwdif_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:1", "text": "/*\n * Copyright (c) 2025 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define FF_ALPHA_TRANSPARENT        (1 << 0)\n#define FF_ALPHA_STRAIGHT           ((1 << 1) | FF_ALPHA_TRANSPARENT)\n\nconst mask\n        .byte           255, 255, 255, 255, 255, 255, 255, 255\n        .byte           255, 255, 255, 255, 255, 255, 255, 255\nmask_start:\n        .byte           0, 0, 0, 0, 0, 0, 0, 0\n        .byte           0, 0, 0, 0, 0, 0, 0, 0\n        .byte           255, 255, 255, 255, 255, 255, 255, 255\n        .byte           255, 255, 255, 255, 255, 255, 255, 255\nendconst\n\n.macro load_mask_zero, shift=0\n        movrel          x9, mask_start\n        sub             x9, x9, x7, lsl #(\\shift)\n        ldr             q3, [x9]\n.endm\n\n.macro load_mask, shift=0\n        movrel          x9, mask_start\n        sub             x9, x9, x7, lsl #(\\shift)\n        ld1             {v3.16b, v4.16b}, [x9]\n.endm\n\n/* x0: const uint8_t *data\n * x1: ptrdiff_t stride\n * x2: ptrdiff_t width\n * x3: ptrdiff_t height\n * w4: int mpeg_min\n * w5: int mpeg_max\n */\nfunction ff_detect_range_neon, export=1\n        ands            x7, x2, #15                 // width % 16\n        bic             x8, x2, #15                 // width / 16 * 16\n        bic             x6, x2, #31                 // width / 32 * 32\n        and             x10, x2, #16                // check x8 != x6\n        dup             v0.16b, w4                  // mpeg_min", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:2", "text": ".macro load_mask, shift=0\n        movrel          x9, mask_start\n        sub             x9, x9, x7, lsl #(\\shift)\n        ld1             {v3.16b, v4.16b}, [x9]\n.endm\n\n/* x0: const uint8_t *data\n * x1: ptrdiff_t stride\n * x2: ptrdiff_t width\n * x3: ptrdiff_t height\n * w4: int mpeg_min\n * w5: int mpeg_max\n */\nfunction ff_detect_range_neon, export=1\n        ands            x7, x2, #15                 // width % 16\n        bic             x8, x2, #15                 // width / 16 * 16\n        bic             x6, x2, #31                 // width / 32 * 32\n        and             x10, x2, #16                // check x8 != x6\n        dup             v0.16b, w4                  // mpeg_min\n        dup             v1.16b, w5                  // mpeg_max\n        movi            v2.16b, #0                  // cond\n        sub             x1, x1, x8\n        b.eq            1f\n        load_mask_zero\n1:\n        cbz             x6, 20f                     // width < 32\n        mov             x12, x6\n2:\n        ld1             {v5.16b, v6.16b}, [x0], #32\n        cmhi            v16.16b, v0.16b, v5.16b\n        cmhi            v17.16b, v5.16b, v1.16b\n        cmhi            v18.16b, v0.16b, v6.16b\n        cmhi            v19.16b, v6.16b, v1.16b\n        orr             v20.16b, v16.16b, v17.16b\n        orr             v21.16b, v18.16b, v19.16b\n        subs            x12, x12, #32\n        orr             v20.16b, v20.16b, v21.16b\n        orr             v2.16b, v2.16b, v20.16b\n        b.gt            2b\n20:\n        cbz             x10, 3f                     // width < 16\n        ldr             q20, [x0], #16\n        cmhi            v16.16b, v0.16b, v20.16b\n        cmhi            v17.16b, v20.16b, v1.16b\n        orr             v16.16b, v16.16b, v17.16b\n        orr             v2.16b, v2.16b, v16.16b\n3:\n        cbz             x7, 4f\n        ldr             q21, [x0]\n        cmhi            v18.16b, v0.16b, v21.16b\n        cmhi            v19.16b, v21.16b, v1.16b\n        orr             v16.16b, v18.16b, v19.16b\n        and             v16.16b, v16.16b, v3.16b\n        orr             v2.16b, v2.16b, v16.16b\n4:\n        umaxv           b4, v2.16b\n        subs            x3, x3, #1\n        umov            w9, v4.b[0]\n        add             x0, x0, x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:3", "text": "20:\n        cbz             x10, 3f                     // width < 16\n        ldr             q20, [x0], #16\n        cmhi            v16.16b, v0.16b, v20.16b\n        cmhi            v17.16b, v20.16b, v1.16b\n        orr             v16.16b, v16.16b, v17.16b\n        orr             v2.16b, v2.16b, v16.16b\n3:\n        cbz             x7, 4f\n        ldr             q21, [x0]\n        cmhi            v18.16b, v0.16b, v21.16b\n        cmhi            v19.16b, v21.16b, v1.16b\n        orr             v16.16b, v18.16b, v19.16b\n        and             v16.16b, v16.16b, v3.16b\n        orr             v2.16b, v2.16b, v16.16b\n4:\n        umaxv           b4, v2.16b\n        subs            x3, x3, #1\n        umov            w9, v4.b[0]\n        add             x0, x0, x1\n        cbnz            w9, 8f\n        b.gt            1b\n        mov             x0, #0\n        ret\n8:\n        mov             x0, #1\n        ret\nendfunc\n\n/* x0: const uint8_t *data\n * x1: ptrdiff_t stride\n * x2: ptrdiff_t width\n * x3: ptrdiff_t height\n * w4: int mpeg_min\n * w5: int mpeg_max\n */\nfunction ff_detect_range16_neon, export=1\n        ands            x7, x2, #7                  // width % 7\n        bic             x8, x2, #7                  // width / 8 * 8\n        bic             x6, x2, #15                 // width / 16 * 16\n        and             x10, x2, #8                 // check x8 != x6\n        dup             v0.8h, w4                   // mpeg_min\n        dup             v1.8h, w5                   // mpeg_max\n        movi            v2.16b, #0                  // cond\n        sub             x1, x1, x8, lsl #1\n        b.eq            1f\n        load_mask_zero  shift=1\n1:\n        cbz             x6, 20f                     // width < 16\n        mov             x12, x6\n2:\n        ld1             {v5.8h, v6.8h}, [x0], #32\n        cmhi            v16.8h, v0.8h, v5.8h\n        cmhi            v17.8h, v5.8h, v1.8h\n        cmhi            v18.8h, v0.8h, v6.8h\n        cmhi            v19.8h, v6.8h, v1.8h\n        orr             v20.16b, v16.16b, v17.16b\n        orr             v21.16b, v18.16b, v19.16b\n        subs            x12, x12, #16\n        orr             v20.16b, v20.16b, v21.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:4", "text": "and             x10, x2, #8                 // check x8 != x6\n        dup             v0.8h, w4                   // mpeg_min\n        dup             v1.8h, w5                   // mpeg_max\n        movi            v2.16b, #0                  // cond\n        sub             x1, x1, x8, lsl #1\n        b.eq            1f\n        load_mask_zero  shift=1\n1:\n        cbz             x6, 20f                     // width < 16\n        mov             x12, x6\n2:\n        ld1             {v5.8h, v6.8h}, [x0], #32\n        cmhi            v16.8h, v0.8h, v5.8h\n        cmhi            v17.8h, v5.8h, v1.8h\n        cmhi            v18.8h, v0.8h, v6.8h\n        cmhi            v19.8h, v6.8h, v1.8h\n        orr             v20.16b, v16.16b, v17.16b\n        orr             v21.16b, v18.16b, v19.16b\n        subs            x12, x12, #16\n        orr             v20.16b, v20.16b, v21.16b\n        orr             v2.16b, v2.16b, v20.16b\n        b.gt            2b\n20:\n        cbz             x10, 3f                     // width < 8\n        ldr             q20, [x0], #16\n        cmhi            v16.8h, v0.8h, v20.8h\n        cmhi            v17.8h, v20.8h, v1.8h\n        orr             v16.16b, v16.16b, v17.16b\n        orr             v2.16b, v2.16b, v16.16b\n3:\n        cbz             x7, 4f\n        ldr             q21, [x0]\n        cmhi            v18.8h, v0.8h, v21.8h\n        cmhi            v19.8h, v21.8h, v1.8h\n        orr             v16.16b, v18.16b, v19.16b\n        and             v16.16b, v16.16b, v3.16b\n        orr             v2.16b, v2.16b, v16.16b\n4:\n        umaxv           h4, v2.8h\n        subs            x3, x3, #1\n        umov            w9, v4.h[0]\n        add             x0, x0, x1\n        cbnz            w9, 8f\n        b.gt            1b\n        mov             x0, #0\n        ret\n8:\n        mov             x0, #1\n        ret\nendfunc\n\n/*\n * x0: const uint8_t *color,\n * x1: ptrdiff_t color_stride,\n * x2: const uint8_t *alpha,\n * x3: ptrdiff_t alpha_stride,\n * x4: ptrdiff_t width,\n * x5: ptrdiff_t height,\n * w6: int alpha_max,\n */", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:5", "text": "umov            w9, v4.h[0]\n        add             x0, x0, x1\n        cbnz            w9, 8f\n        b.gt            1b\n        mov             x0, #0\n        ret\n8:\n        mov             x0, #1\n        ret\nendfunc\n\n/*\n * x0: const uint8_t *color,\n * x1: ptrdiff_t color_stride,\n * x2: const uint8_t *alpha,\n * x3: ptrdiff_t alpha_stride,\n * x4: ptrdiff_t width,\n * x5: ptrdiff_t height,\n * w6: int alpha_max,\n */\nfunction ff_detect_alpha_full_neon, export=1\n        ands            x7, x4, #15             // width % 16\n        bic             x8, x4, #15             // width / 16 * 16\n        movi            v0.16b, #0\n        movi            v1.16b, #255\n        dup             v2.16b, w6              // alpha_max\n        sub             x1, x1, x8              // color_stride - aligned_width\n        sub             x3, x3, x8              // alpha_stride - aligned_width\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask\n1:\n        cbz             x8, 20f                 // width < 16\n        mov             x12, x8                 // w12: aligned_width\n2:\n        ldr             q5, [x0], #16\n        ldr             q6, [x2], #16\n        subs            x12, x12, #16\n        cmhi            v7.16b, v5.16b, v6.16b\n        cmeq            v16.16b, v6.16b, v2.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n        b.gt            2b\n20:\n        cbz             w7, 3f\n        // handle loop tail\n        ldr             q5, [x0]\n        ldr             q6, [x2]\n        cmhi            v7.16b, v5.16b, v6.16b\n        cmeq            v16.16b, v6.16b, v2.16b\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n3:\n        umaxv           b17, v0.16b\n        subs            x5, x5, #1\n        umov            w9, v17.b[0]\n        add             x0, x0, x1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:6", "text": "cmeq            v16.16b, v6.16b, v2.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n        b.gt            2b\n20:\n        cbz             w7, 3f\n        // handle loop tail\n        ldr             q5, [x0]\n        ldr             q6, [x2]\n        cmhi            v7.16b, v5.16b, v6.16b\n        cmeq            v16.16b, v6.16b, v2.16b\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n3:\n        umaxv           b17, v0.16b\n        subs            x5, x5, #1\n        umov            w9, v17.b[0]\n        add             x0, x0, x1\n        add             x2, x2, x3\n        cbnz            w9, 4f\n        b.gt            1b\n\n        uminv           b1, v1.16b\n        umov            w9, v1.b[0]\n        mov             x0, #0\n        cbnz            w9, 5f\n        mov             x0, #FF_ALPHA_TRANSPARENT\n        ret\n4:\n        mov             x0, #FF_ALPHA_STRAIGHT\n5:\n        ret\nendfunc\n\n/*\n * x0: const uint8_t *color,\n * x1: ptrdiff_t color_stride,\n * x2: const uint8_t *alpha,\n * x3: ptrdiff_t alpha_stride,\n * x4: ptrdiff_t width,\n * x5: ptrdiff_t height,\n * w6: int alpha_max,\n */\nfunction ff_detect_alpha16_full_neon, export=1\n        ands            x7, x4, #7              // width % 8\n        bic             x8, x4, #7              // width / 8 * 8\n        movi            v0.8h, #0\n        movi            v1.16b, #255\n        dup             v2.8h, w6               // alpha_max\n        sub             x1, x1, x8, lsl #1      // color_stride - (aligned_width * 2)\n        sub             x3, x3, x8, lsl #1      // alpha_stride - (aligned_width * 2)\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask       shift=1\n1:\n        cbz             x8, 20f                 // width < 8\n        mov             x12, x8                 // w12: aligned_width", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:7", "text": "* x3: ptrdiff_t alpha_stride,\n * x4: ptrdiff_t width,\n * x5: ptrdiff_t height,\n * w6: int alpha_max,\n */\nfunction ff_detect_alpha16_full_neon, export=1\n        ands            x7, x4, #7              // width % 8\n        bic             x8, x4, #7              // width / 8 * 8\n        movi            v0.8h, #0\n        movi            v1.16b, #255\n        dup             v2.8h, w6               // alpha_max\n        sub             x1, x1, x8, lsl #1      // color_stride - (aligned_width * 2)\n        sub             x3, x3, x8, lsl #1      // alpha_stride - (aligned_width * 2)\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask       shift=1\n1:\n        cbz             x8, 20f                 // width < 8\n        mov             x12, x8                 // w12: aligned_width\n2:\n        ldr             q5, [x0], #16\n        ldr             q6, [x2], #16\n        subs            x12, x12, #8\n        cmhi            v7.8h, v5.8h, v6.8h\n        cmeq            v16.8h, v6.8h, v2.8h\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n        b.gt            2b\n20:\n        cbz             w7, 3f\n        // handle loop tail\n        ldr             q5, [x0]\n        ldr             q6, [x2]\n        cmhi            v7.8h, v5.8h, v6.8h\n        cmeq            v16.8h, v6.8h, v2.8h\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n3:\n        umaxv           h17, v0.8h\n        subs            x5, x5, #1\n        umov            w9, v17.h[0]\n        add             x0, x0, x1\n        add             x2, x2, x3\n        cbnz            w9, 4f\n        b.gt            1b\n\n        uminv           h1, v1.8h\n        umov            w9, v1.h[0]\n        mov             x0, #0\n        cbnz            w9, 5f\n        mov             x0, #FF_ALPHA_TRANSPARENT\n        ret\n4:\n        mov             x0, #FF_ALPHA_STRAIGHT\n5:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:8", "text": "3:\n        umaxv           h17, v0.8h\n        subs            x5, x5, #1\n        umov            w9, v17.h[0]\n        add             x0, x0, x1\n        add             x2, x2, x3\n        cbnz            w9, 4f\n        b.gt            1b\n\n        uminv           h1, v1.8h\n        umov            w9, v1.h[0]\n        mov             x0, #0\n        cbnz            w9, 5f\n        mov             x0, #FF_ALPHA_TRANSPARENT\n        ret\n4:\n        mov             x0, #FF_ALPHA_STRAIGHT\n5:\n        ret\nendfunc\n\n/*\n * x0: const uint8_t *color,\n * x1: ptrdiff_t color_stride,\n * x2: const uint8_t *alpha,\n * x3: ptrdiff_t alpha_stride,\n * x4: ptrdiff_t width,\n * x5: ptrdiff_t height,\n * w6: int alpha_max,\n * w7: int mpeg_range\n * [sp]: int offset\n */\nfunction ff_detect_alpha_limited_neon, export=1\n        dup             v17.16b, w7             // mpeg_range\n        ldr             w13, [sp]\n        movi            v0.16b, #0\n        movi            v1.16b, #255\n        dup             v2.16b, w6              // alpha_max\n        ands            x7, x4, #15             // width % 16\n        bic             x8, x4, #15             // width / 16 * 16\n        dup             v18.8h, w13             // offset\n        sub             x1, x1, x8              // color_stride - aligned_width\n        sub             x3, x3, x8              // alpha_stride - aligned_width\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask\n1:\n        cbz             x8, 20f                     // width < 16\n        mov             x12, x8                     // w12: aligned_width\n2:\n        ldr             q5, [x0], #16               // color\n        ldr             q6, [x2], #16               // alpha\n        umull           v19.8h, v2.8b, v5.8b        // alpha_max * color\n        umull2          v20.8h, v2.16b, v5.16b      // alpha_max * color\n        umull           v21.8h, v17.8b, v6.8b       // range * alpha\n        umull2          v22.8h, v17.16b, v6.16b     // range * alpha\n        cmeq            v16.16b, v6.16b, v2.16b\n        subs            x12, x12, #16\n        uqsub           v19.8h, v19.8h, v18.8h      // alpha_max * color - offset", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:9", "text": "dup             v18.8h, w13             // offset\n        sub             x1, x1, x8              // color_stride - aligned_width\n        sub             x3, x3, x8              // alpha_stride - aligned_width\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask\n1:\n        cbz             x8, 20f                     // width < 16\n        mov             x12, x8                     // w12: aligned_width\n2:\n        ldr             q5, [x0], #16               // color\n        ldr             q6, [x2], #16               // alpha\n        umull           v19.8h, v2.8b, v5.8b        // alpha_max * color\n        umull2          v20.8h, v2.16b, v5.16b      // alpha_max * color\n        umull           v21.8h, v17.8b, v6.8b       // range * alpha\n        umull2          v22.8h, v17.16b, v6.16b     // range * alpha\n        cmeq            v16.16b, v6.16b, v2.16b\n        subs            x12, x12, #16\n        uqsub           v19.8h, v19.8h, v18.8h      // alpha_max * color - offset\n        uqsub           v20.8h, v20.8h, v18.8h      // alpha_max * color - offset\n\n        cmhi            v19.8h, v19.8h, v21.8h\n        cmhi            v20.8h, v20.8h, v22.8h\n        orr             v7.16b, v19.16b, v20.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n        b.gt            2b\n20:\n        cbz             w7, 3f\n        // handle loop tail\n        ldr             q5, [x0]\n        ldr             q6, [x2]\n        umull           v19.8h, v2.8b, v5.8b        // alpha_max * color\n        umull2          v20.8h, v2.16b, v5.16b      // alpha_max * color\n        umull           v21.8h, v17.8b, v6.8b       // range * alpha\n        umull2          v22.8h, v17.16b, v6.16b     // range * alpha\n        uqsub           v19.8h, v19.8h, v18.8h      // alpha_max * color - offset\n        uqsub           v20.8h, v20.8h, v18.8h      // alpha_max * color - offset\n\n        cmhi            v19.8h, v19.8h, v21.8h\n        cmhi            v20.8h, v20.8h, v22.8h\n        uqxtn           v7.8b, v19.8h\n        uqxtn2          v7.16b, v20.8h\n        cmeq            v16.16b, v6.16b, v2.16b\n\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n3:\n        umaxv           b23, v0.16b\n        subs            x5, x5, #1\n        umov            w9, v23.b[0]\n        add             x0, x0, x1\n        add             x2, x2, x3\n        cbnz            w9, 4f\n        b.gt            1b\n\n        uminv           b1, v1.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:10", "text": "cmhi            v19.8h, v19.8h, v21.8h\n        cmhi            v20.8h, v20.8h, v22.8h\n        uqxtn           v7.8b, v19.8h\n        uqxtn2          v7.16b, v20.8h\n        cmeq            v16.16b, v6.16b, v2.16b\n\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n3:\n        umaxv           b23, v0.16b\n        subs            x5, x5, #1\n        umov            w9, v23.b[0]\n        add             x0, x0, x1\n        add             x2, x2, x3\n        cbnz            w9, 4f\n        b.gt            1b\n\n        uminv           b1, v1.16b\n        umov            w9, v1.b[0]\n        mov             x0, #0\n        cbnz            w9, 5f\n        mov             x0, #FF_ALPHA_TRANSPARENT\n        ret\n4:\n        mov             x0, #FF_ALPHA_STRAIGHT\n5:\n        ret\nendfunc\n\n/*\n * x0: const uint8_t *color,\n * x1: ptrdiff_t color_stride,\n * x2: const uint8_t *alpha,\n * x3: ptrdiff_t alpha_stride,\n * x4: ptrdiff_t width,\n * x5: ptrdiff_t height,\n * w6: int alpha_max,\n * w7: int mpeg_range\n * [sp]: int offset\n */\nfunction ff_detect_alpha16_limited_neon, export=1\n        dup             v17.8h, w7                  // mpeg_range\n        ldr             w13, [sp]\n        movi            v0.8h, #0\n        movi            v1.16b, #255\n        dup             v2.8h, w6                   // alpha_max\n        ands            x7, x4, #7                  // width % 8\n        bic             x8, x4, #7                  // width / 8 * 8\n        dup             v18.4s, w13                 // offset\n        sub             x1, x1, x8, lsl #1          // color_stride - (aligned_width * 2)\n        sub             x3, x3, x8, lsl #1          // alpha_stride - (aligned_width * 2)\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask       shift=1\n1:\n        cbz             x8, 20f                     // width < 8\n        mov             x12, x8                     // w12: aligned_width", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:11", "text": "* [sp]: int offset\n */\nfunction ff_detect_alpha16_limited_neon, export=1\n        dup             v17.8h, w7                  // mpeg_range\n        ldr             w13, [sp]\n        movi            v0.8h, #0\n        movi            v1.16b, #255\n        dup             v2.8h, w6                   // alpha_max\n        ands            x7, x4, #7                  // width % 8\n        bic             x8, x4, #7                  // width / 8 * 8\n        dup             v18.4s, w13                 // offset\n        sub             x1, x1, x8, lsl #1          // color_stride - (aligned_width * 2)\n        sub             x3, x3, x8, lsl #1          // alpha_stride - (aligned_width * 2)\n        b.eq            1f\n\n        // Create mask for non-aligned width\n        load_mask       shift=1\n1:\n        cbz             x8, 20f                     // width < 8\n        mov             x12, x8                     // w12: aligned_width\n2:\n        ldr             q5, [x0], #16\n        ldr             q6, [x2], #16\n        umull           v19.4s, v2.4h, v5.4h        // alpha_max * color\n        umull2          v20.4s, v2.8h, v5.8h        // alpha_max * color\n        umull           v21.4s, v17.4h, v6.4h       // range * alpha\n        umull2          v22.4s, v17.8h, v6.8h       // range * alpha\n        cmeq            v16.8h, v6.8h, v2.8h\n        subs            x12, x12, #8\n        uqsub           v19.4s, v19.4s, v18.4s      // alpha_max * color - offset\n        uqsub           v20.4s, v20.4s, v18.4s      // alpha_max * color - offset\n\n        cmhi            v19.4s, v19.4s, v21.4s\n        cmhi            v20.4s, v20.4s, v22.4s\n        orr             v7.16b, v19.16b, v20.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n        b.gt            2b\n20:\n        cbz             w7, 3f\n        // handle loop tail\n        ldr             q5, [x0]\n        ldr             q6, [x2]\n        umull           v19.4s, v2.4h, v5.4h        // alpha_max * color\n        umull2          v20.4s, v2.8h, v5.8h        // alpha_max * color\n        umull           v21.4s, v17.4h, v6.4h       // range * alpha\n        umull2          v22.4s, v17.8h, v6.8h       // range * alpha\n        uqsub           v19.4s, v19.4s, v18.4s      // alpha_max * color - offset\n        uqsub           v20.4s, v20.4s, v18.4s      // alpha_max * color - offset\n\n        cmhi            v19.4s, v19.4s, v21.4s\n        cmhi            v20.4s, v20.4s, v22.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        cmeq            v16.8h, v6.8h, v2.8h\n\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_colordetect_neon.S:12", "text": "// handle loop tail\n        ldr             q5, [x0]\n        ldr             q6, [x2]\n        umull           v19.4s, v2.4h, v5.4h        // alpha_max * color\n        umull2          v20.4s, v2.8h, v5.8h        // alpha_max * color\n        umull           v21.4s, v17.4h, v6.4h       // range * alpha\n        umull2          v22.4s, v17.8h, v6.8h       // range * alpha\n        uqsub           v19.4s, v19.4s, v18.4s      // alpha_max * color - offset\n        uqsub           v20.4s, v20.4s, v18.4s      // alpha_max * color - offset\n\n        cmhi            v19.4s, v19.4s, v21.4s\n        cmhi            v20.4s, v20.4s, v22.4s\n        uqxtn           v7.4h, v19.4s\n        uqxtn2          v7.8h, v20.4s\n        cmeq            v16.8h, v6.8h, v2.8h\n\n        and             v7.16b, v7.16b, v3.16b\n        orr             v16.16b, v16.16b, v4.16b\n        orr             v0.16b, v0.16b, v7.16b\n        and             v1.16b, v1.16b, v16.16b\n3:\n        umaxv           s23, v0.4s\n        subs            x5, x5, #1\n        umov            w9, v23.s[0]\n        add             x0, x0, x1\n        add             x2, x2, x3\n        cbnz            w9, 4f\n        b.gt            1b\n\n        uminv           h1, v1.8h\n        umov            w9, v1.h[0]\n        mov             x0, #0\n        cbnz            w9, 5f\n        mov             x0, #FF_ALPHA_TRANSPARENT\n        ret\n4:\n        mov             x0, #FF_ALPHA_STRAIGHT\n5:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_colordetect_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_colordetect_neon.S", "line_start": 441, "line_end": 480}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_nlmeans_neon.S:1", "text": "/*\n * Copyright (c) 2018 Clément Bœsch <u pkh me>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// acc_sum_store(ABCD) = {X+A, X+A+B, X+A+B+C, X+A+B+C+D}\n.macro acc_sum_store x, xb\n        dup             v24.4s, v24.s[3]                                // ...X -> XXXX\n        ext             v25.16b, v26.16b, \\xb, #12                      // ext(0000,ABCD,12)=0ABC\n        add             v24.4s, v24.4s, \\x                              // XXXX+ABCD={X+A,X+B,X+C,X+D}\n        add             v24.4s, v24.4s, v25.4s                          // {X+A,X+B+A,X+C+B,X+D+C}       (+0ABC)\n        ext             v25.16b, v26.16b, v25.16b, #12                  // ext(0000,0ABC,12)=00AB\n        add             v24.4s, v24.4s, v25.4s                          // {X+A,X+B+A,X+C+B+A,X+D+C+B}   (+00AB)\n        ext             v25.16b, v26.16b, v25.16b, #12                  // ext(0000,00AB,12)=000A\n        add             v24.4s, v24.4s, v25.4s                          // {X+A,X+B+A,X+C+B+A,X+D+C+B+A} (+000A)\n        st1             {v24.4s}, [x0], #16                             // write 4x32-bit final values\n.endm\n\nfunction ff_compute_safe_ssd_integral_image_neon, export=1\n        movi            v26.4s, #0                                      // used as zero for the \"rotations\" in acc_sum_store\n        sub             x3, x3, w6, uxtw                                // s1 padding (s1_linesize - w)\n        sub             x5, x5, w6, uxtw                                // s2 padding (s2_linesize - w)\n        sub             x9, x0, w1, uxtw #2                             // dst_top\n        sub             x1, x1, w6, uxtw                                // dst padding (dst_linesize_32 - w)\n        lsl             x1, x1, #2                                      // dst padding expressed in bytes\n1:      mov             w10, w6                                         // width copy for each line\n        sub             x0, x0, #16                                     // beginning of the dst line minus 4 sums\n        sub             x8, x9, #4                                      // dst_top-1\n        ld1             {v24.4s}, [x0], #16                             // load ...X (contextual last sums)\n2:      ld1             {v0.16b}, [x2], #16                             // s1[x + 0..15]\n        ld1             {v1.16b}, [x4], #16                             // s2[x + 0..15]\n        ld1             {v16.4s,v17.4s}, [x8], #32                      // dst_top[x + 0..7 - 1]\n        usubl           v2.8h, v0.8b,  v1.8b                            // d[x + 0..7]  = s1[x + 0..7]  - s2[x + 0..7]\n        usubl2          v3.8h, v0.16b, v1.16b                           // d[x + 8..15] = s1[x + 8..15] - s2[x + 8..15]\n        ld1             {v18.4s,v19.4s}, [x8], #32                      // dst_top[x + 8..15 - 1]\n        smull           v4.4s, v2.4h, v2.4h                             // d[x + 0..3]^2\n        smull2          v5.4s, v2.8h, v2.8h                             // d[x + 4..7]^2\n        ld1             {v20.4s,v21.4s}, [x9], #32                      // dst_top[x + 0..7]\n        smull           v6.4s, v3.4h, v3.4h                             // d[x + 8..11]^2\n        smull2          v7.4s, v3.8h, v3.8h                             // d[x + 12..15]^2\n        ld1             {v22.4s,v23.4s}, [x9], #32                      // dst_top[x + 8..15]\n        sub             v0.4s, v20.4s, v16.4s                           // dst_top[x + 0..3] - dst_top[x + 0..3 - 1]\n        sub             v1.4s, v21.4s, v17.4s                           // dst_top[x + 4..7] - dst_top[x + 4..7 - 1]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_nlmeans_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_nlmeans_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_nlmeans_neon.S:2", "text": "sub             x1, x1, w6, uxtw                                // dst padding (dst_linesize_32 - w)\n        lsl             x1, x1, #2                                      // dst padding expressed in bytes\n1:      mov             w10, w6                                         // width copy for each line\n        sub             x0, x0, #16                                     // beginning of the dst line minus 4 sums\n        sub             x8, x9, #4                                      // dst_top-1\n        ld1             {v24.4s}, [x0], #16                             // load ...X (contextual last sums)\n2:      ld1             {v0.16b}, [x2], #16                             // s1[x + 0..15]\n        ld1             {v1.16b}, [x4], #16                             // s2[x + 0..15]\n        ld1             {v16.4s,v17.4s}, [x8], #32                      // dst_top[x + 0..7 - 1]\n        usubl           v2.8h, v0.8b,  v1.8b                            // d[x + 0..7]  = s1[x + 0..7]  - s2[x + 0..7]\n        usubl2          v3.8h, v0.16b, v1.16b                           // d[x + 8..15] = s1[x + 8..15] - s2[x + 8..15]\n        ld1             {v18.4s,v19.4s}, [x8], #32                      // dst_top[x + 8..15 - 1]\n        smull           v4.4s, v2.4h, v2.4h                             // d[x + 0..3]^2\n        smull2          v5.4s, v2.8h, v2.8h                             // d[x + 4..7]^2\n        ld1             {v20.4s,v21.4s}, [x9], #32                      // dst_top[x + 0..7]\n        smull           v6.4s, v3.4h, v3.4h                             // d[x + 8..11]^2\n        smull2          v7.4s, v3.8h, v3.8h                             // d[x + 12..15]^2\n        ld1             {v22.4s,v23.4s}, [x9], #32                      // dst_top[x + 8..15]\n        sub             v0.4s, v20.4s, v16.4s                           // dst_top[x + 0..3] - dst_top[x + 0..3 - 1]\n        sub             v1.4s, v21.4s, v17.4s                           // dst_top[x + 4..7] - dst_top[x + 4..7 - 1]\n        add             v0.4s, v0.4s, v4.4s                             // + d[x + 0..3]^2\n        add             v1.4s, v1.4s, v5.4s                             // + d[x + 4..7]^2\n        sub             v2.4s, v22.4s, v18.4s                           // dst_top[x +  8..11] - dst_top[x +  8..11 - 1]\n        sub             v3.4s, v23.4s, v19.4s                           // dst_top[x + 12..15] - dst_top[x + 12..15 - 1]\n        add             v2.4s, v2.4s, v6.4s                             // + d[x +  8..11]^2\n        add             v3.4s, v3.4s, v7.4s                             // + d[x + 12..15]^2\n        acc_sum_store   v0.4s, v0.16b                                   // accumulate and store dst[ 0..3]\n        acc_sum_store   v1.4s, v1.16b                                   // accumulate and store dst[ 4..7]\n        acc_sum_store   v2.4s, v2.16b                                   // accumulate and store dst[ 8..11]\n        acc_sum_store   v3.4s, v3.16b                                   // accumulate and store dst[12..15]\n        subs            w10, w10, #16                                   // width dec\n        b.ne            2b                                              // loop til next line\n        add             x2, x2, x3                                      // skip to next line (s1)\n        add             x4, x4, x5                                      // skip to next line (s2)\n        add             x0, x0, x1                                      // skip to next line (dst)\n        add             x9, x9, x1                                      // skip to next line (dst_top)\n        subs            w7, w7, #1                                      // height dec\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_compute_weights_line_neon, export=1\n        // x0 = iia, x1 = iib, x2 = iid, x3 = iie\n        // x4 = src, x5 = total_weight, x6 = sum, x7 = weight_lut\n        // stack: [sp+0] = max_meaningful_diff, [sp+8] = startx, [sp+16] = endx\n\n        ldr             w13, [sp, #0]                  // max_meaningful_diff\n        ldr             w9,  [sp, #8]                   // startx\n        ldr             w10, [sp, #16]                  // endx\n\n        cmp             w9, w10\n        b.ge            9f                              // if startx >= endx return\n\n        // Offset pointers\n        lsl             x11, x9, #2                     // startx * 4 (for uint32/float)\n        add             x0, x0, x11                     // iia += startx\n        add             x1, x1, x11                     // iib += startx\n        add             x2, x2, x11                     // iid += startx\n        add             x3, x3, x11                     // iie += startx\n        add             x5, x5, x11                     // total_weight += startx", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_nlmeans_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_nlmeans_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_nlmeans_neon.S:3", "text": "function ff_compute_weights_line_neon, export=1\n        // x0 = iia, x1 = iib, x2 = iid, x3 = iie\n        // x4 = src, x5 = total_weight, x6 = sum, x7 = weight_lut\n        // stack: [sp+0] = max_meaningful_diff, [sp+8] = startx, [sp+16] = endx\n\n        ldr             w13, [sp, #0]                  // max_meaningful_diff\n        ldr             w9,  [sp, #8]                   // startx\n        ldr             w10, [sp, #16]                  // endx\n\n        cmp             w9, w10\n        b.ge            9f                              // if startx >= endx return\n\n        // Offset pointers\n        lsl             x11, x9, #2                     // startx * 4 (for uint32/float)\n        add             x0, x0, x11                     // iia += startx\n        add             x1, x1, x11                     // iib += startx\n        add             x2, x2, x11                     // iid += startx\n        add             x3, x3, x11                     // iie += startx\n        add             x5, x5, x11                     // total_weight += startx\n        add             x6, x6, x11                     // sum += startx\n\n        // src is uint8, so offset is just startx\n        add             x4, x4, x9                      // src += startx\n\n        dup             v7.4s, w13                      // v7 = max_meaningful_diff (for vector ops)\n\n        sub             w10, w10, w9                    // count = endx - startx\n\n1:      // Main loop\n        cmp             w10, #4\n        b.lt            2f                              // Handle leftovers\n\n        // Load integral image values\n        ld1             {v0.4s}, [x0], #16              // iia\n        ld1             {v1.4s}, [x1], #16              // iib\n        ld1             {v2.4s}, [x2], #16              // iid\n        ld1             {v3.4s}, [x3], #16              // iie\n\n        // diff = a - b + e - d = e - d - b + a\n        sub             v0.4s, v0.4s, v1.4s             // v0 = a - b\n        sub             v3.4s, v3.4s, v2.4s             // v3 = e - d\n        add             v3.4s, v3.4s, v0.4s             // v3 = diff (a - b + e - d)\n\n        // min(diff, max)\n        umin            v3.4s, v3.4s, v7.4s\n\n        // Schedule independent loads early\n        ld1             {v0.4s}, [x5]                   // v0 = total_weight\n        ld1             {v1.s}[0], [x4], #4             // v1 = src pixels (low 4 bytes)\n        ld1             {v2.4s}, [x6]                   // v2 = sum\n\n        // Move to scalar registers to address lut\n        mov             w8,  v3.s[0]\n        mov             w9,  v3.s[1]\n        mov             w11, v3.s[2]\n        mov             w12, v3.s[3]\n\n        // Load 4 float weights using scalar registers\n        // Interleave with src conversion to hide latency", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_nlmeans_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_nlmeans_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_nlmeans_neon.S:4", "text": "sub             v0.4s, v0.4s, v1.4s             // v0 = a - b\n        sub             v3.4s, v3.4s, v2.4s             // v3 = e - d\n        add             v3.4s, v3.4s, v0.4s             // v3 = diff (a - b + e - d)\n\n        // min(diff, max)\n        umin            v3.4s, v3.4s, v7.4s\n\n        // Schedule independent loads early\n        ld1             {v0.4s}, [x5]                   // v0 = total_weight\n        ld1             {v1.s}[0], [x4], #4             // v1 = src pixels (low 4 bytes)\n        ld1             {v2.4s}, [x6]                   // v2 = sum\n\n        // Move to scalar registers to address lut\n        mov             w8,  v3.s[0]\n        mov             w9,  v3.s[1]\n        mov             w11, v3.s[2]\n        mov             w12, v3.s[3]\n\n        // Load 4 float weights using scalar registers\n        // Interleave with src conversion to hide latency\n        ldr             s3, [x7, w8, uxtw #2]           // w0 -> v3.s[0] (v3 is now free)\n        ldr             s4, [x7, w9, uxtw #2]           // w1 -> v4.s[0]\n        ldr             s5, [x7, w11, uxtw #2]          // w2 -> v5.s[0]\n        ldr             s6, [x7, w12, uxtw #2]          // w3 -> v6.s[0]\n\n        // Convert src pixels to float (independent of weights)\n        uxtl            v1.8h, v1.8b\n        uxtl            v1.4s, v1.4h\n        ucvtf           v1.4s, v1.4s\n\n        // Merge weights into v3.4s\n        trn1            v3.2s, v3.2s, v4.2s             // v3 = [w0, w1, ?, ?]\n        trn1            v5.2s, v5.2s, v6.2s             // v5 = [w2, w3, ?, ?]\n        trn1            v3.2d, v3.2d, v5.2d             // v3 = [w0, w1, w2, w3]\n\n        // Update total_weight and sum\n        fadd            v0.4s, v0.4s, v3.4s             // total_weight += weight\n        fmla            v2.4s, v1.4s, v3.4s             // sum += src * weight\n\n        // Store back\n        st1             {v0.4s}, [x5], #16\n        st1             {v2.4s}, [x6], #16\n\n        sub             w10, w10, #4\n        b               1b\n\n2:      // Leftovers\n        cmp             w10, #0\n        b.le            9f\n\n        // Single pixel handling\n        ldr             w8,  [x0], #4                   // iia (reuse w8)\n        ldr             w9,  [x1], #4                   // iib (reuse w9)\n        ldr             w11, [x2], #4                   // iid (reuse w11)\n        ldr             w12, [x3], #4                   // iie (reuse w12)\n\n        sub             w12, w12, w11\n        sub             w12, w12, w9\n        add             w12, w12, w8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_nlmeans_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_nlmeans_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_nlmeans_neon.S:5", "text": "st1             {v0.4s}, [x5], #16\n        st1             {v2.4s}, [x6], #16\n\n        sub             w10, w10, #4\n        b               1b\n\n2:      // Leftovers\n        cmp             w10, #0\n        b.le            9f\n\n        // Single pixel handling\n        ldr             w8,  [x0], #4                   // iia (reuse w8)\n        ldr             w9,  [x1], #4                   // iib (reuse w9)\n        ldr             w11, [x2], #4                   // iid (reuse w11)\n        ldr             w12, [x3], #4                   // iie (reuse w12)\n\n        sub             w12, w12, w11\n        sub             w12, w12, w9\n        add             w12, w12, w8\n\n        // min (unsigned comparison) - use preloaded w13\n        cmp             w12, w13\n        csel            w12, w12, w13, ls               // unsigned lower or same\n\n        // Load weight\n        ldr             s0, [x7, w12, uxtw #2]\n\n        // Load src\n        ldrb            w8, [x4], #1                    // src (reuse w8)\n        ucvtf           s1, w8\n\n        // Load acc\n        ldr             s2, [x5]\n        ldr             s3, [x6]\n\n        fadd            s2, s2, s0\n        fmadd           s3, s1, s0, s3\n\n        str             s2, [x5], #4\n        str             s3, [x6], #4\n\n        sub             w10, w10, #1\n        b               2b\n\n9:      ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_nlmeans_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/aarch64/vf_nlmeans_neon.S", "line_start": 161, "line_end": 206}
{"id": "FFmpeg/FFmpeg:libavfilter/aarch64/vf_nlmeans_neon.S:2", "text": "sub             x1, x1, w6, uxtw                                // dst padding (dst_linesize_32 - w)\n        lsl             x1, x1, #2                                      // dst padding expressed in bytes\n1:      mov             w10, w6                                         // width copy for each line\n        sub             x0, x0, #16                                     // beginning of the dst line minus 4 sums\n        sub             x8, x9, #4                                      // dst_top-1\n        ld1             {v24.4s}, [x0], #16                             // load ...X (contextual last sums)\n2:      ld1             {v0.16b}, [x2], #16                             // s1[x + 0..15]\n        ld1             {v1.16b}, [x4], #16                             // s2[x + 0..15]\n        ld1             {v16.4s,v17.4s}, [x8], #32                      // dst_top[x + 0..7 - 1]\n        usubl           v2.8h, v0.8b,  v1.8b                            // d[x + 0..7]  = s1[x + 0..7]  - s2[x + 0..7]\n        usubl2          v3.8h, v0.16b, v1.16b                           // d[x + 8..15] = s1[x + 8..15] - s2[x + 8..15]\n        ld1             {v18.4s,v19.4s}, [x8], #32                      // dst_top[x + 8..15 - 1]\n        smull           v4.4s, v2.4h, v2.4h                             // d[x + 0..3]^2\n        smull2          v5.4s, v2.8h, v2.8h                             // d[x + 4..7]^2\n        ld1             {v20.4s,v21.4s}, [x9], #32                      // dst_top[x + 0..7]\n        smull           v6.4s, v3.4h, v3.4h                             // d[x + 8..11]^2\n        smull2          v7.4s, v3.8h, v3.8h                             // d[x + 12..15]^2\n        ld1             {v22.4s,v23.4s}, [x9], #32                      // dst_top[x + 8..15]\n        sub             v0.4s, v20.4s, v16.4s                           // dst_top[x + 0..3] - dst_top[x + 0..3 - 1]\n        sub             v1.4s, v21.4s, v17.4s                           // dst_top[x + 4..7] - dst_top[x + 4..7 - 1]\n        add             v0.4s, v0.4s, v4.4s                             // + d[x + 0..3]^2\n        add             v1.4s, v1.4s, v5.4s                             // + d[x + 4..7]^2\n        sub             v2.4s, v22.4s, v18.4s                           // dst_top[x +  8..11] - dst_top[x +  8..11 - 1]\n        sub             v3.4s, v23.4s, v19.4s                           // dst_top[x + 12..15] - dst_top[x + 12..15 - 1]\n        add             v2.4s, v2.4s, v6.4s                             // + d[x +  8..11]^2\n        add             v3.4s, v3.4s, v7.4s                             // + d[x + 12..15]^2\n        acc_sum_store   v0.4s, v0.16b                                   // accumulate and store dst[ 0..3]\n        acc_sum_store   v1.4s, v1.16b                                   // accumulate and store dst[ 4..7]\n        acc_sum_store   v2.4s, v2.16b                                   // accumulate and store dst[ 8..11]\n        acc_sum_store   v3.4s, v3.16b                                   // accumulate and store dst[12..15]\n        subs            w10, w10, #16                                   // width dec\n        b.ne            2b                                              // loop til next line\n        add             x2, x2, x3                                      // skip to next line (s1)\n        add             x4, x4, x5                                      // skip to next line (s2)\n        add             x0, x0, x1                                      // skip to next line (dst)\n        add             x9, x9, x1                                      // skip to next line (dst_top)\n        subs            w7, w7, #1                                      // height dec\n        b.ne            1b\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/aarch64/vf_nlmeans_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/aarch64/vf_nlmeans_neon.S", "line_start": 41, "line_end": 80}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/af_afir_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n//  void ff_fcmul_add(float *sum, const float *t, const float *c, int len)\nfunc ff_fcmul_add_rvv, zve64f, zba\n        lpad    0\n        li          t1, 32\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vle64.v     v24, (a0)\n        sub         a3, a3, t0\n        vnsrl.wx    v16, v24, zero\n        vnsrl.wx    v20, v24, t1\n        vle64.v     v24, (a1)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v0, v24, zero\n        vnsrl.wx    v4, v24, t1\n        vle64.v     v24, (a2)\n        sh3add      a2, t0, a2\n        vnsrl.wx    v8, v24, zero\n        vnsrl.wx    v12, v24, t1\n        vfmacc.vv   v16, v0, v8\n        vfmacc.vv   v20, v4, v8\n        vfnmsac.vv  v16, v4, v12\n        vfmacc.vv   v20, v0, v12\n        vsseg2e32.v v16, (a0)\n        sh3add      a0, t0, a0\n        bgtz        a3, 1b\n\n        flw         fa0, 0(a1)\n        flw         fa1, 0(a2)\n        flw         fa2, 0(a0)\n        fmadd.s     fa2, fa0, fa1, fa2\n        fsw         fa2, 0(a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/af_afir_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/riscv/af_afir_rvv.S", "line_start": 1, "line_end": 56}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/af_afir_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n//  void ff_fcmul_add(float *sum, const float *t, const float *c, int len)\nfunc ff_fcmul_add_rvv, zve64f, zba\n        lpad    0\n        li          t1, 32\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vle64.v     v24, (a0)\n        sub         a3, a3, t0\n        vnsrl.wx    v16, v24, zero\n        vnsrl.wx    v20, v24, t1\n        vle64.v     v24, (a1)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v0, v24, zero\n        vnsrl.wx    v4, v24, t1\n        vle64.v     v24, (a2)\n        sh3add      a2, t0, a2\n        vnsrl.wx    v8, v24, zero\n        vnsrl.wx    v12, v24, t1\n        vfmacc.vv   v16, v0, v8\n        vfmacc.vv   v20, v4, v8\n        vfnmsac.vv  v16, v4, v12\n        vfmacc.vv   v20, v0, v12\n        vsseg2e32.v v16, (a0)\n        sh3add      a0, t0, a0\n        bgtz        a3, 1b\n\n        flw         fa0, 0(a1)\n        flw         fa1, 0(a2)\n        flw         fa2, 0(a0)\n        fmadd.s     fa2, fa0, fa1, fa2\n        fsw         fa2, 0(a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/af_afir_rvv.S", "license": "LGPL-2.1", "commit": "b5c111272b4470cfbd13c894cb7b8844e4f08dc9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b5c111272b4470cfbd13c894cb7b8844e4f08dc9/libavfilter/riscv/af_afir_rvv.S", "line_start": 1, "line_end": 56}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/af_afir_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n//  void ff_fcmul_add(float *sum, const float *t, const float *c, int len)\nfunc ff_fcmul_add_rvv, zve64f, zba\n        li          t1, 32\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vle64.v     v24, (a0)\n        sub         a3, a3, t0\n        vnsrl.wx    v16, v24, zero\n        vnsrl.wx    v20, v24, t1\n        vle64.v     v24, (a1)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v0, v24, zero\n        vnsrl.wx    v4, v24, t1\n        vle64.v     v24, (a2)\n        sh3add      a2, t0, a2\n        vnsrl.wx    v8, v24, zero\n        vnsrl.wx    v12, v24, t1\n        vfmacc.vv   v16, v0, v8\n        vfmacc.vv   v20, v4, v8\n        vfnmsac.vv  v16, v4, v12\n        vfmacc.vv   v20, v0, v12\n        vsseg2e32.v v16, (a0)\n        sh3add      a0, t0, a0\n        bgtz        a3, 1b\n\n        flw         fa0, 0(a1)\n        flw         fa1, 0(a2)\n        flw         fa2, 0(a0)\n        fmadd.s     fa2, fa0, fa1, fa2\n        fsw         fa2, 0(a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/af_afir_rvv.S", "license": "LGPL-2.1", "commit": "9108f3e5e11cc8bc9e44fdedf04a79378578a70c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9108f3e5e11cc8bc9e44fdedf04a79378578a70c/libavfilter/riscv/af_afir_rvv.S", "line_start": 1, "line_end": 55}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/af_afir_rvv.S:1", "text": "/*\n * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\n//  void ff_fcmul_add(float *sum, const float *t, const float *c, int len)\nfunc ff_fcmul_add_rvv, zve64f\n        li          t1, 32\n1:\n        vsetvli     t0, a3, e32, m4, ta, ma\n        vle64.v     v24, (a0)\n        sub         a3, a3, t0\n        vnsrl.wx    v16, v24, zero\n        vnsrl.wx    v20, v24, t1\n        vle64.v     v24, (a1)\n        sh3add      a1, t0, a1\n        vnsrl.wx    v0, v24, zero\n        vnsrl.wx    v4, v24, t1\n        vle64.v     v24, (a2)\n        sh3add      a2, t0, a2\n        vnsrl.wx    v8, v24, zero\n        vnsrl.wx    v12, v24, t1\n        vfmacc.vv   v16, v0, v8\n        vfmacc.vv   v20, v4, v8\n        vfnmsac.vv  v16, v4, v12\n        vfmacc.vv   v20, v0, v12\n        vsseg2e32.v v16, (a0)\n        sh3add      a0, t0, a0\n        bgtz        a3, 1b\n\n        flw         fa0, 0(a1)\n        flw         fa1, 0(a2)\n        flw         fa2, 0(a0)\n        fmadd.s     fa2, fa0, fa1, fa2\n        fsw         fa2, 0(a0)\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/af_afir_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/riscv/af_afir_rvv.S", "line_start": 1, "line_end": 55}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/vf_blackdetect_rvv.S:1", "text": "/*\n * Copyright © 2025 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_count_pixels_8_rvv, zve32x\n        lpad    0\n        mv      a5, zero\n        sub     a1, a1, a2\n1:\n        mv      t2, a2\n        addi    a3, a3, -1\n2:\n        vsetvli t1, t2, e8, m8, ta, ma\n        vle8.v  v8, (a0)\n        sub     t2, t2, t1\n        vmsleu.vx   v0, v8, a4\n        add     a0, t1, a0\n        vcpop.m t3, v0\n        add     a5, t3, a5\n        bnez    t2, 2b\n\n        add     a0, a0, a1\n        bnez    a3, 1b\n\n        mv      a0, a5\n        ret\nendfunc\n\nfunc ff_count_pixels_16_rvv, zve32x, zba\n        lpad    0\n        slli    t2, a2, 1\n        mv      a5, zero\n        sub     a1, a1, t2\n1:\n        mv      t2, a2\n        addi    a3, a3, -1\n2:\n        vsetvli t1, t2, e16, m8, ta, ma\n        vle16.v v8, (a0)\n        sub     t2, t2, t1\n        vmsleu.vx   v0, v8, a4\n        sh1add  a0, t1, a0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/vf_blackdetect_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/riscv/vf_blackdetect_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/vf_blackdetect_rvv.S:2", "text": "bnez    a3, 1b\n\n        mv      a0, a5\n        ret\nendfunc\n\nfunc ff_count_pixels_16_rvv, zve32x, zba\n        lpad    0\n        slli    t2, a2, 1\n        mv      a5, zero\n        sub     a1, a1, t2\n1:\n        mv      t2, a2\n        addi    a3, a3, -1\n2:\n        vsetvli t1, t2, e16, m8, ta, ma\n        vle16.v v8, (a0)\n        sub     t2, t2, t1\n        vmsleu.vx   v0, v8, a4\n        sh1add  a0, t1, a0\n        vcpop.m t3, v0\n        add     a5, t3, a5\n        bnez    t2, 2b\n\n        add     a0, a0, a1\n        bnez    a3, 1b\n\n        mv      a0, a5\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/vf_blackdetect_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/riscv/vf_blackdetect_rvv.S", "line_start": 41, "line_end": 70}
{"id": "FFmpeg/FFmpeg:libavfilter/riscv/vf_blackdetect_rvv.S:1", "text": "/*\n * Copyright © 2025 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_count_pixels_8_rvv, zve32x\n        lpad    0\n        mv      a5, zero\n        sub     a1, a1, a2\n1:\n        mv      t2, a2\n        addi    a3, a3, -1\n2:\n        vsetvli t1, t2, e8, m8, ta, ma\n        vle8.v  v8, (a0)\n        sub     t2, t2, t1\n        vmsleu.vx   v0, v8, a4\n        add     a0, t1, a0\n        vcpop.m t3, v0\n        add     a5, t3, a5\n        bnez    t2, 2b\n\n        add     a0, a0, a1\n        bnez    a3, 1b\n\n        mv      a0, a5\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/riscv/vf_blackdetect_rvv.S", "license": "LGPL-2.1", "commit": "570908af0963f03c8f7b629acde7edfa978c4a2e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/570908af0963f03c8f7b629acde7edfa978c4a2e/libavfilter/riscv/vf_blackdetect_rvv.S", "line_start": 1, "line_end": 45}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_afir.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for afir filter\n;* Copyright (c) 2017 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_fcmul_add(float *sum, const float *t, const float *c, int len)\n;------------------------------------------------------------------------------\n\n%macro FCMUL_ADD 0\ncglobal fcmul_add, 4,4,6, sum, t, c, len\n    shl       lend, 3\n    add         tq, lenq\n    add         cq, lenq\n    add       sumq, lenq\n    neg       lenq\nALIGN 16\n.loop:\n    movsldup  m0, [tq + lenq]\n    movsldup  m3, [tq + lenq+mmsize]\n    movaps    m1, [cq + lenq]\n    movaps    m4, [cq + lenq+mmsize]\n    mulps     m0, m0, m1\n    mulps     m3, m3, m4\n    shufps    m1, m1, m1, 0xb1\n    shufps    m4, m4, m4, 0xb1\n    movshdup  m2, [tq + lenq]\n    movshdup  m5, [tq + lenq+mmsize]\n    mulps     m2, m2, m1\n    mulps     m5, m5, m4\n    addsubps  m0, m0, m2\n    addsubps  m3, m3, m5\n    addps     m0, m0, [sumq + lenq]\n    addps     m3, m3, [sumq + lenq+mmsize]\n    movaps    [sumq + lenq], m0\n    movaps    [sumq + lenq+mmsize], m3\n    add       lenq, mmsize*2\n    jl .loop\n    movss xm0, [tq + lenq]\n    mulss xm0, [cq + lenq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_afir.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_afir.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_afir.asm:2", "text": "movaps    m1, [cq + lenq]\n    movaps    m4, [cq + lenq+mmsize]\n    mulps     m0, m0, m1\n    mulps     m3, m3, m4\n    shufps    m1, m1, m1, 0xb1\n    shufps    m4, m4, m4, 0xb1\n    movshdup  m2, [tq + lenq]\n    movshdup  m5, [tq + lenq+mmsize]\n    mulps     m2, m2, m1\n    mulps     m5, m5, m4\n    addsubps  m0, m0, m2\n    addsubps  m3, m3, m5\n    addps     m0, m0, [sumq + lenq]\n    addps     m3, m3, [sumq + lenq+mmsize]\n    movaps    [sumq + lenq], m0\n    movaps    [sumq + lenq+mmsize], m3\n    add       lenq, mmsize*2\n    jl .loop\n    movss xm0, [tq + lenq]\n    mulss xm0, [cq + lenq]\n    addss xm0, [sumq + lenq]\n    movss [sumq + lenq], xm0\n    RET\n%endmacro\n\nINIT_XMM sse3\nFCMUL_ADD\nINIT_YMM avx\nFCMUL_ADD\n\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\ncglobal fcmul_add, 4,4,4, sum, t, c, len\n    shl       lend, 3\n    add         tq, lenq\n    add         cq, lenq\n    add       sumq, lenq\n    neg       lenq\n.loop:\n    movaps    m0, [tq + lenq]\n    movaps    m1, [cq + lenq]\n    vpermilps m3, m0, 177\n    vpermilps m2, m1, 160\n    vpermilps m1, m1, 245\n    mulps     m1, m1, m3\n    vfmaddsub132ps m0, m1, m2\n    addps     m0, m0, [sumq + lenq]\n    movaps    [sumq + lenq], m0\n    add       lenq, mmsize\n    jl .loop\n    movss xm0, [tq + lenq]\n    mulss xm0, [cq + lenq]\n    addss xm0, [sumq + lenq]\n    movss [sumq + lenq], xm0\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_afir.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_afir.asm", "line_start": 41, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_afir.asm:3", "text": "movaps    m1, [cq + lenq]\n    vpermilps m3, m0, 177\n    vpermilps m2, m1, 160\n    vpermilps m1, m1, 245\n    mulps     m1, m1, m3\n    vfmaddsub132ps m0, m1, m2\n    addps     m0, m0, [sumq + lenq]\n    movaps    [sumq + lenq], m0\n    add       lenq, mmsize\n    jl .loop\n    movss xm0, [tq + lenq]\n    mulss xm0, [cq + lenq]\n    addss xm0, [sumq + lenq]\n    movss [sumq + lenq], xm0\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_afir.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_afir.asm", "line_start": 81, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_anlmdn.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for anlmdn filter\n;* Copyright (c) 2017 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; float ff_compute_distance_ssd(float *f1, const float *f2, ptrdiff_t len)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse\ncglobal compute_distance_ssd, 3,5,3, f1, f2, len, r, x\n    mov       xq, lenq\n    shl       xq, 2\n    neg       xq\n    add       f1q, xq\n    add       f2q, xq\n    xor       xq, xq\n    shl       lenq, 1\n    add       lenq, 1\n    shl       lenq, 2\n    mov       rq, lenq\n    and       rq, mmsize - 1\n    xorps     m0, m0\n    cmp       lenq, mmsize\n    jl .loop1\n    sub       lenq, rq\nALIGN 16\n    .loop0:\n        movups    m1, [f1q + xq]\n        movups    m2, [f2q + xq]\n        subps     m1, m2\n        mulps     m1, m1\n        addps     m0, m1\n        add       xq, mmsize\n        cmp       xq, lenq\n        jl .loop0\n\n    movhlps   xmm1, xmm0\n    addps     xmm0, xmm1\n    movss     xmm1, xmm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_anlmdn.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_anlmdn.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_anlmdn.asm:2", "text": "mov       rq, lenq\n    and       rq, mmsize - 1\n    xorps     m0, m0\n    cmp       lenq, mmsize\n    jl .loop1\n    sub       lenq, rq\nALIGN 16\n    .loop0:\n        movups    m1, [f1q + xq]\n        movups    m2, [f2q + xq]\n        subps     m1, m2\n        mulps     m1, m1\n        addps     m0, m1\n        add       xq, mmsize\n        cmp       xq, lenq\n        jl .loop0\n\n    movhlps   xmm1, xmm0\n    addps     xmm0, xmm1\n    movss     xmm1, xmm0\n    shufps    xmm0, xmm0, 1\n    addss     xmm0, xmm1\n\n    cmp       rq, 0\n    je .end\n    add       lenq, rq\n    .loop1:\n        movss    xm1, [f1q + xq]\n        subss    xm1, [f2q + xq]\n        mulss    xm1, xm1\n        addss    xm0, xm1\n        add       xq, 4\n        cmp       xq, lenq\n        jl .loop1\n    .end:\n%if ARCH_X86_64 == 0\n    movss     r0m, xm0\n    fld dword r0m\n%endif\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_anlmdn.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_anlmdn.asm", "line_start": 41, "line_end": 80}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_volume.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for volume filter\n;* Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npd_1_256:     times 4 dq 0x3F70000000000000\npd_int32_max: times 4 dq 0x41DFFFFFFFC00000\npw_1:         times 8 dw 1\npw_128:       times 8 dw 128\npq_128:       times 2 dq 128\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_scale_samples_s16(uint8_t *dst, const uint8_t *src, int len,\n;                           int volume)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal scale_samples_s16, 4,4,4, dst, src, len, volume\n    movd        m0, volumem\n    pshuflw     m0, m0, 0\n    punpcklwd   m0, [pw_1]\n    mova        m1, [pw_128]\n    lea       lenq, [lend*2-mmsize]\n.loop:\n    ; dst[i] = av_clip_int16((src[i] * volume + 128) >> 8);\n    mova        m2, [srcq+lenq]\n    punpcklwd   m3, m2, m1\n    punpckhwd   m2, m1\n    pmaddwd     m3, m0\n    pmaddwd     m2, m0\n    psrad       m3, 8\n    psrad       m2, 8\n    packssdw    m3, m2\n    mova  [dstq+lenq], m3\n    sub       lenq, mmsize\n    jge .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_volume.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_volume.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_volume.asm:2", "text": "movd        m0, volumem\n    pshuflw     m0, m0, 0\n    punpcklwd   m0, [pw_1]\n    mova        m1, [pw_128]\n    lea       lenq, [lend*2-mmsize]\n.loop:\n    ; dst[i] = av_clip_int16((src[i] * volume + 128) >> 8);\n    mova        m2, [srcq+lenq]\n    punpcklwd   m3, m2, m1\n    punpckhwd   m2, m1\n    pmaddwd     m3, m0\n    pmaddwd     m2, m0\n    psrad       m3, 8\n    psrad       m2, 8\n    packssdw    m3, m2\n    mova  [dstq+lenq], m3\n    sub       lenq, mmsize\n    jge .loop\n    RET\n\n;------------------------------------------------------------------------------\n; void ff_scale_samples_s32(uint8_t *dst, const uint8_t *src, int len,\n;                           int volume)\n;------------------------------------------------------------------------------\n\n%macro SCALE_SAMPLES_S32 0\ncglobal scale_samples_s32, 4,4,4, dst, src, len, volume\n%if ARCH_X86_32 && cpuflag(avx)\n    vbroadcastss   xmm2, volumem\n%else\n    movd           xmm2, volumed\n    pshufd         xmm2, xmm2, 0\n%endif\n    CVTDQ2PD         m2, xmm2\n    mulpd            m2, m2, [pd_1_256]\n    mova             m3, [pd_int32_max]\n    lea            lenq, [lend*4-mmsize]\n.loop:\n    CVTDQ2PD         m0, [srcq+lenq         ]\n    CVTDQ2PD         m1, [srcq+lenq+mmsize/2]\n    mulpd            m0, m0, m2\n    mulpd            m1, m1, m2\n    minpd            m0, m0, m3\n    minpd            m1, m1, m3\n    cvtpd2dq       xmm0, m0\n    cvtpd2dq       xmm1, m1\n%if cpuflag(avx)\n    vmovdqa [dstq+lenq         ], xmm0\n    vmovdqa [dstq+lenq+mmsize/2], xmm1\n%else\n    movq    [dstq+lenq         ], xmm0\n    movq    [dstq+lenq+mmsize/2], xmm1\n%endif\n    sub            lenq, mmsize\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define CVTDQ2PD cvtdq2pd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_volume.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_volume.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_volume.asm:3", "text": "mulpd            m0, m0, m2\n    mulpd            m1, m1, m2\n    minpd            m0, m0, m3\n    minpd            m1, m1, m3\n    cvtpd2dq       xmm0, m0\n    cvtpd2dq       xmm1, m1\n%if cpuflag(avx)\n    vmovdqa [dstq+lenq         ], xmm0\n    vmovdqa [dstq+lenq+mmsize/2], xmm1\n%else\n    movq    [dstq+lenq         ], xmm0\n    movq    [dstq+lenq+mmsize/2], xmm1\n%endif\n    sub            lenq, mmsize\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\n%define CVTDQ2PD cvtdq2pd\nSCALE_SAMPLES_S32\n%if HAVE_AVX_EXTERNAL\n%define CVTDQ2PD vcvtdq2pd\nINIT_YMM avx\nSCALE_SAMPLES_S32\n%endif\n%undef CVTDQ2PD\n\n; NOTE: This is not bit-identical with the C version because it clips to\n;       [-INT_MAX, INT_MAX] instead of [INT_MIN, INT_MAX]\n\nINIT_XMM ssse3, atom\ncglobal scale_samples_s32, 4,4,8, dst, src, len, volume\n    movd        m4, volumem\n    pshufd      m4, m4, 0\n    mova        m5, [pq_128]\n    pxor        m6, m6\n    lea       lenq, [lend*4-mmsize]\n.loop:\n    ; src[i] = av_clipl_int32((src[i] * volume + 128) >> 8);\n    mova        m7, [srcq+lenq]\n    pabsd       m3, m7\n    pshufd      m0, m3, q0100\n    pshufd      m1, m3, q0302\n    pmuludq     m0, m4\n    pmuludq     m1, m4\n    paddq       m0, m5\n    paddq       m1, m5\n    psrlq       m0, 7\n    psrlq       m1, 7\n    shufps      m2, m0, m1, q3131\n    shufps      m0, m0, m1, q2020\n    pcmpgtd     m2, m6\n    por         m0, m2\n    psrld       m0, 1\n    psignd      m0, m7\n    mova  [dstq+lenq], m0\n    sub       lenq, mmsize\n    jge .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_volume.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_volume.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/af_volume.asm:4", "text": "mova        m7, [srcq+lenq]\n    pabsd       m3, m7\n    pshufd      m0, m3, q0100\n    pshufd      m1, m3, q0302\n    pmuludq     m0, m4\n    pmuludq     m1, m4\n    paddq       m0, m5\n    paddq       m1, m5\n    psrlq       m0, 7\n    psrlq       m1, 7\n    shufps      m2, m0, m1, q3131\n    shufps      m0, m0, m1, q2020\n    pcmpgtd     m2, m6\n    por         m0, m2\n    psrld       m0, 1\n    psignd      m0, m7\n    mova  [dstq+lenq], m0\n    sub       lenq, mmsize\n    jge .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/af_volume.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/af_volume.asm", "line_start": 121, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for showcqt filter\n;*\n;* Copyright (C) 2016 Muhammad Faiz <mfcc64@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%if ARCH_X86_64\n%define pointer resq\n%else\n%define pointer resd\n%endif\n\nstruc Coeffs\n    .val:   pointer 1\n    .start: resd 1\n    .len:   resd 1\n    .sizeof:\nendstruc\n\n%macro CQT_CALC 9\n; %1 = a_re, %2 = a_im, %3 = b_re, %4 = b_im\n; %5 = m_re, %6 = m_im, %7 = tmp, %8 = coeffval, %9 = coeffsq_offset\n    mov     id, xd\n    add     id, [coeffsq + Coeffs.start + %9]\n    movaps  m%5, [srcq + 8 * iq]\n    movaps  m%7, [srcq + 8 * iq + mmsize]\n    shufps  m%6, m%5, m%7, q3131\n    shufps  m%5, m%5, m%7, q2020\n    sub     id, fft_lend\n    FMULADD_PS m%2, m%6, m%8, m%2, m%6\n    neg     id\n    FMULADD_PS m%1, m%5, m%8, m%1, m%5\n    movups  m%5, [srcq + 8 * iq - mmsize + 8]\n    movups  m%7, [srcq + 8 * iq - 2*mmsize + 8]\n    %if mmsize == 32\n    vperm2f128 m%5, m%5, m%5, 1\n    vperm2f128 m%7, m%7, m%7, 1\n    %endif\n    shufps  m%6, m%5, m%7, q1313\n    shufps  m%5, m%5, m%7, q0202", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/avf_showcqt.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:2", "text": "; %1 = a_re, %2 = a_im, %3 = b_re, %4 = b_im\n; %5 = m_re, %6 = m_im, %7 = tmp, %8 = coeffval, %9 = coeffsq_offset\n    mov     id, xd\n    add     id, [coeffsq + Coeffs.start + %9]\n    movaps  m%5, [srcq + 8 * iq]\n    movaps  m%7, [srcq + 8 * iq + mmsize]\n    shufps  m%6, m%5, m%7, q3131\n    shufps  m%5, m%5, m%7, q2020\n    sub     id, fft_lend\n    FMULADD_PS m%2, m%6, m%8, m%2, m%6\n    neg     id\n    FMULADD_PS m%1, m%5, m%8, m%1, m%5\n    movups  m%5, [srcq + 8 * iq - mmsize + 8]\n    movups  m%7, [srcq + 8 * iq - 2*mmsize + 8]\n    %if mmsize == 32\n    vperm2f128 m%5, m%5, m%5, 1\n    vperm2f128 m%7, m%7, m%7, 1\n    %endif\n    shufps  m%6, m%5, m%7, q1313\n    shufps  m%5, m%5, m%7, q0202\n    FMULADD_PS m%4, m%6, m%8, m%4, m%6\n    FMULADD_PS m%3, m%5, m%8, m%3, m%5\n%endmacro ; CQT_CALC\n\n%macro CQT_SEPARATE 6 ; a_re, a_im, b_re, b_im, tmp, tmp2\n    addps   m%5, m%4, m%2\n    subps   m%6, m%3, m%1\n    addps   m%1, m%1, m%3\n    subps   m%2, m%2, m%4\n    HADDPS  m%5, m%6, m%3\n    HADDPS  m%1, m%2, m%3\n    HADDPS  m%1, m%5, m%2\n    %if mmsize == 32\n    vextractf128 xmm%2, m%1, 1\n    addps   xmm%1, xmm%2\n    %endif\n%endmacro ; CQT_SEPARATE\n\n%macro DECLARE_CQT_CALC 0\n; ff_showcqt_cqt_calc_*(dst, src, coeffs, len, fft_len)\n%if ARCH_X86_64\ncglobal showcqt_cqt_calc, 5, 10, 12, dst, src, coeffs, len, fft_len, x, coeffs_val, coeffs_val2, i, coeffs_len\n    align   16\n    .loop_k:\n        mov     xd, [coeffsq + Coeffs.len]\n        xorps   m0, m0, m0\n        movaps  m1, m0\n        movaps  m2, m0\n        mov     coeffs_lend, [coeffsq + Coeffs.len + Coeffs.sizeof]\n        movaps  m3, m0\n        movaps  m8, m0\n        cmp     coeffs_lend, xd\n        movaps  m9, m0\n        movaps  m10, m0\n        movaps  m11, m0\n        cmova   coeffs_lend, xd\n        xor     xd, xd\n        test    coeffs_lend, coeffs_lend\n        jz      .check_loop_b\n        mov     coeffs_valq, [coeffsq + Coeffs.val]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/avf_showcqt.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:3", "text": "%if ARCH_X86_64\ncglobal showcqt_cqt_calc, 5, 10, 12, dst, src, coeffs, len, fft_len, x, coeffs_val, coeffs_val2, i, coeffs_len\n    align   16\n    .loop_k:\n        mov     xd, [coeffsq + Coeffs.len]\n        xorps   m0, m0, m0\n        movaps  m1, m0\n        movaps  m2, m0\n        mov     coeffs_lend, [coeffsq + Coeffs.len + Coeffs.sizeof]\n        movaps  m3, m0\n        movaps  m8, m0\n        cmp     coeffs_lend, xd\n        movaps  m9, m0\n        movaps  m10, m0\n        movaps  m11, m0\n        cmova   coeffs_lend, xd\n        xor     xd, xd\n        test    coeffs_lend, coeffs_lend\n        jz      .check_loop_b\n        mov     coeffs_valq, [coeffsq + Coeffs.val]\n        mov     coeffs_val2q, [coeffsq + Coeffs.val + Coeffs.sizeof]\n        align   16\n        .loop_ab:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            movaps  m7, [coeffs_val2q + 4 * xq]\n            CQT_CALC 8, 9, 10, 11, 4, 5, 6, 7, Coeffs.sizeof\n            add     xd, mmsize/4\n            cmp     xd, coeffs_lend\n            jb      .loop_ab\n        .check_loop_b:\n        cmp     xd, [coeffsq + Coeffs.len + Coeffs.sizeof]\n        jae     .check_loop_a\n        align   16\n        .loop_b:\n            movaps  m7, [coeffs_val2q + 4 * xq]\n            CQT_CALC 8, 9, 10, 11, 4, 5, 6, 7, Coeffs.sizeof\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len + Coeffs.sizeof]\n            jb      .loop_b\n        .loop_end:\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        CQT_SEPARATE 8, 9, 10, 11, 4, 5\n        mulps   xmm0, xmm0\n        mulps   xmm8, xmm8\n        HADDPS  xmm0, xmm8, xmm1\n        movaps  [dstq], xmm0\n        sub     lend, 2\n        lea     dstq, [dstq + 16]\n        lea     coeffsq, [coeffsq + 2*Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n        align   16\n        .check_loop_a:\n        cmp     xd, [coeffsq + Coeffs.len]\n        jae     .loop_end\n        align   16\n        .loop_a:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/avf_showcqt.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:4", "text": ".loop_end:\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        CQT_SEPARATE 8, 9, 10, 11, 4, 5\n        mulps   xmm0, xmm0\n        mulps   xmm8, xmm8\n        HADDPS  xmm0, xmm8, xmm1\n        movaps  [dstq], xmm0\n        sub     lend, 2\n        lea     dstq, [dstq + 16]\n        lea     coeffsq, [coeffsq + 2*Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n        align   16\n        .check_loop_a:\n        cmp     xd, [coeffsq + Coeffs.len]\n        jae     .loop_end\n        align   16\n        .loop_a:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]\n            jb      .loop_a\n        jmp     .loop_end\n%else\ncglobal showcqt_cqt_calc, 4, 7, 8, dst, src, coeffs, len, x, coeffs_val, i\n%define fft_lend r4m\n    align   16\n    .loop_k:\n        mov     xd, [coeffsq + Coeffs.len]\n        xorps   m0, m0, m0\n        movaps  m1, m0\n        movaps  m2, m0\n        movaps  m3, m0\n        test    xd, xd\n        jz      .store\n        mov     coeffs_valq, [coeffsq + Coeffs.val]\n        xor     xd, xd\n        align   16\n        .loop_x:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]\n            jb      .loop_x\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        mulps   xmm0, xmm0\n        HADDPS  xmm0, xmm0, xmm1\n        .store:\n        movlps  [dstq], xmm0\n        sub     lend, 1\n        lea     dstq, [dstq + 8]\n        lea     coeffsq, [coeffsq + Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n%endif ; ARCH_X86_64\n%endmacro ; DECLARE_CQT_CALC\n\nINIT_XMM sse\nDECLARE_CQT_CALC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/avf_showcqt.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:5", "text": "movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]\n            jb      .loop_x\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        mulps   xmm0, xmm0\n        HADDPS  xmm0, xmm0, xmm1\n        .store:\n        movlps  [dstq], xmm0\n        sub     lend, 1\n        lea     dstq, [dstq + 8]\n        lea     coeffsq, [coeffsq + Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n%endif ; ARCH_X86_64\n%endmacro ; DECLARE_CQT_CALC\n\nINIT_XMM sse\nDECLARE_CQT_CALC\nINIT_XMM sse3\nDECLARE_CQT_CALC\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nDECLARE_CQT_CALC\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nDECLARE_CQT_CALC\n%endif\n%if HAVE_FMA4_EXTERNAL\nINIT_XMM fma4\nDECLARE_CQT_CALC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/avf_showcqt.asm", "line_start": 161, "line_end": 194}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for showcqt filter\n;*\n;* Copyright (C) 2016 Muhammad Faiz <mfcc64@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n%define pointer resq\n%else\n%define pointer resd\n%endif\n\nstruc Coeffs\n    .val:   pointer 1\n    .start: resd 1\n    .len:   resd 1\n    .sizeof:\nendstruc\n\n%macro CQT_CALC 9\n; %1 = a_re, %2 = a_im, %3 = b_re, %4 = b_im\n; %5 = m_re, %6 = m_im, %7 = tmp, %8 = coeffval, %9 = coeffsq_offset\n    mov     id, xd\n    add     id, [coeffsq + Coeffs.start + %9]\n    movaps  m%5, [srcq + 8 * iq]\n    movaps  m%7, [srcq + 8 * iq + mmsize]\n    shufps  m%6, m%5, m%7, q3131\n    shufps  m%5, m%5, m%7, q2020\n    sub     id, fft_lend\n    FMULADD_PS m%2, m%6, m%8, m%2, m%6\n    neg     id\n    FMULADD_PS m%1, m%5, m%8, m%1, m%5\n    movups  m%5, [srcq + 8 * iq - mmsize + 8]\n    movups  m%7, [srcq + 8 * iq - 2*mmsize + 8]\n    %if mmsize == 32\n    vperm2f128 m%5, m%5, m%5, 1\n    vperm2f128 m%7, m%7, m%7, 1\n    %endif\n    shufps  m%6, m%5, m%7, q1313\n    shufps  m%5, m%5, m%7, q0202\n    FMULADD_PS m%4, m%6, m%8, m%4, m%6\n    FMULADD_PS m%3, m%5, m%8, m%3, m%5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/avf_showcqt.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:2", "text": "mov     id, xd\n    add     id, [coeffsq + Coeffs.start + %9]\n    movaps  m%5, [srcq + 8 * iq]\n    movaps  m%7, [srcq + 8 * iq + mmsize]\n    shufps  m%6, m%5, m%7, q3131\n    shufps  m%5, m%5, m%7, q2020\n    sub     id, fft_lend\n    FMULADD_PS m%2, m%6, m%8, m%2, m%6\n    neg     id\n    FMULADD_PS m%1, m%5, m%8, m%1, m%5\n    movups  m%5, [srcq + 8 * iq - mmsize + 8]\n    movups  m%7, [srcq + 8 * iq - 2*mmsize + 8]\n    %if mmsize == 32\n    vperm2f128 m%5, m%5, m%5, 1\n    vperm2f128 m%7, m%7, m%7, 1\n    %endif\n    shufps  m%6, m%5, m%7, q1313\n    shufps  m%5, m%5, m%7, q0202\n    FMULADD_PS m%4, m%6, m%8, m%4, m%6\n    FMULADD_PS m%3, m%5, m%8, m%3, m%5\n%endmacro ; CQT_CALC\n\n%macro CQT_SEPARATE 6 ; a_re, a_im, b_re, b_im, tmp, tmp2\n    addps   m%5, m%4, m%2\n    subps   m%6, m%3, m%1\n    addps   m%1, m%1, m%3\n    subps   m%2, m%2, m%4\n    HADDPS  m%5, m%6, m%3\n    HADDPS  m%1, m%2, m%3\n    HADDPS  m%1, m%5, m%2\n    %if mmsize == 32\n    vextractf128 xmm%2, m%1, 1\n    addps   xmm%1, xmm%2\n    %endif\n%endmacro ; CQT_SEPARATE\n\n%macro DECLARE_CQT_CALC 0\n; ff_showcqt_cqt_calc_*(dst, src, coeffs, len, fft_len)\n%if ARCH_X86_64\ncglobal showcqt_cqt_calc, 5, 10, 12, dst, src, coeffs, len, fft_len, x, coeffs_val, coeffs_val2, i, coeffs_len\n    align   16\n    .loop_k:\n        mov     xd, [coeffsq + Coeffs.len]\n        xorps   m0, m0, m0\n        movaps  m1, m0\n        movaps  m2, m0\n        mov     coeffs_lend, [coeffsq + Coeffs.len + Coeffs.sizeof]\n        movaps  m3, m0\n        movaps  m8, m0\n        cmp     coeffs_lend, xd\n        movaps  m9, m0\n        movaps  m10, m0\n        movaps  m11, m0\n        cmova   coeffs_lend, xd\n        xor     xd, xd\n        test    coeffs_lend, coeffs_lend\n        jz      .check_loop_b\n        mov     coeffs_valq, [coeffsq + Coeffs.val]\n        mov     coeffs_val2q, [coeffsq + Coeffs.val + Coeffs.sizeof]\n        align   16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/avf_showcqt.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:3", "text": "align   16\n    .loop_k:\n        mov     xd, [coeffsq + Coeffs.len]\n        xorps   m0, m0, m0\n        movaps  m1, m0\n        movaps  m2, m0\n        mov     coeffs_lend, [coeffsq + Coeffs.len + Coeffs.sizeof]\n        movaps  m3, m0\n        movaps  m8, m0\n        cmp     coeffs_lend, xd\n        movaps  m9, m0\n        movaps  m10, m0\n        movaps  m11, m0\n        cmova   coeffs_lend, xd\n        xor     xd, xd\n        test    coeffs_lend, coeffs_lend\n        jz      .check_loop_b\n        mov     coeffs_valq, [coeffsq + Coeffs.val]\n        mov     coeffs_val2q, [coeffsq + Coeffs.val + Coeffs.sizeof]\n        align   16\n        .loop_ab:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            movaps  m7, [coeffs_val2q + 4 * xq]\n            CQT_CALC 8, 9, 10, 11, 4, 5, 6, 7, Coeffs.sizeof\n            add     xd, mmsize/4\n            cmp     xd, coeffs_lend\n            jb      .loop_ab\n        .check_loop_b:\n        cmp     xd, [coeffsq + Coeffs.len + Coeffs.sizeof]\n        jae     .check_loop_a\n        align   16\n        .loop_b:\n            movaps  m7, [coeffs_val2q + 4 * xq]\n            CQT_CALC 8, 9, 10, 11, 4, 5, 6, 7, Coeffs.sizeof\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len + Coeffs.sizeof]\n            jb      .loop_b\n        .loop_end:\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        CQT_SEPARATE 8, 9, 10, 11, 4, 5\n        mulps   xmm0, xmm0\n        mulps   xmm8, xmm8\n        HADDPS  xmm0, xmm8, xmm1\n        movaps  [dstq], xmm0\n        sub     lend, 2\n        lea     dstq, [dstq + 16]\n        lea     coeffsq, [coeffsq + 2*Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n        align   16\n        .check_loop_a:\n        cmp     xd, [coeffsq + Coeffs.len]\n        jae     .loop_end\n        align   16\n        .loop_a:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/avf_showcqt.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:4", "text": "CQT_SEPARATE 8, 9, 10, 11, 4, 5\n        mulps   xmm0, xmm0\n        mulps   xmm8, xmm8\n        HADDPS  xmm0, xmm8, xmm1\n        movaps  [dstq], xmm0\n        sub     lend, 2\n        lea     dstq, [dstq + 16]\n        lea     coeffsq, [coeffsq + 2*Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n        align   16\n        .check_loop_a:\n        cmp     xd, [coeffsq + Coeffs.len]\n        jae     .loop_end\n        align   16\n        .loop_a:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]\n            jb      .loop_a\n        jmp     .loop_end\n%else\ncglobal showcqt_cqt_calc, 4, 7, 8, dst, src, coeffs, len, x, coeffs_val, i\n%define fft_lend r4m\n    align   16\n    .loop_k:\n        mov     xd, [coeffsq + Coeffs.len]\n        xorps   m0, m0, m0\n        movaps  m1, m0\n        movaps  m2, m0\n        movaps  m3, m0\n        test    xd, xd\n        jz      .store\n        mov     coeffs_valq, [coeffsq + Coeffs.val]\n        xor     xd, xd\n        align   16\n        .loop_x:\n            movaps  m7, [coeffs_valq + 4 * xq]\n            CQT_CALC 0, 1, 2, 3, 4, 5, 6, 7, 0\n            add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]\n            jb      .loop_x\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        mulps   xmm0, xmm0\n        HADDPS  xmm0, xmm0, xmm1\n        .store:\n        movlps  [dstq], xmm0\n        sub     lend, 1\n        lea     dstq, [dstq + 8]\n        lea     coeffsq, [coeffsq + Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n%endif ; ARCH_X86_64\n%endmacro ; DECLARE_CQT_CALC\n\nINIT_XMM sse\nDECLARE_CQT_CALC\nINIT_XMM sse3\nDECLARE_CQT_CALC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/avf_showcqt.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/avf_showcqt.asm:5", "text": "add     xd, mmsize/4\n            cmp     xd, [coeffsq + Coeffs.len]\n            jb      .loop_x\n        CQT_SEPARATE 0, 1, 2, 3, 4, 5\n        mulps   xmm0, xmm0\n        HADDPS  xmm0, xmm0, xmm1\n        .store:\n        movlps  [dstq], xmm0\n        sub     lend, 1\n        lea     dstq, [dstq + 8]\n        lea     coeffsq, [coeffsq + Coeffs.sizeof]\n        jnz     .loop_k\n        RET\n%endif ; ARCH_X86_64\n%endmacro ; DECLARE_CQT_CALC\n\nINIT_XMM sse\nDECLARE_CQT_CALC\nINIT_XMM sse3\nDECLARE_CQT_CALC\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nDECLARE_CQT_CALC\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nDECLARE_CQT_CALC\n%endif\n%if HAVE_FMA4_EXTERNAL\nINIT_XMM fma4\nDECLARE_CQT_CALC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/avf_showcqt.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/avf_showcqt.asm", "line_start": 161, "line_end": 192}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for colorspace filter\n;*\n;* Copyright (C) 2016 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1: times 8 dw 1\npw_2: times 8 dw 2\npw_4: times 8 dw 4\npw_8: times 8 dw 8\npw_16: times 8 dw 16\npw_64: times 8 dw 64\npw_128: times 8 dw 128\npw_256: times 8 dw 256\npw_512: times 8 dw 512\npw_1023: times 8 dw 1023\npw_1024: times 8 dw 1024\npw_2048: times 8 dw 2048\npw_4095: times 8 dw 4095\npw_8192: times 8 dw 8192\npw_16384: times 8 dw 16384\n\npd_1: times 4 dd 1\npd_2: times 4 dd 2\npd_128: times 4 dd 128\npd_512: times 4 dd 512\npd_2048: times 4 dd 2048\npd_8192: times 4 dd 8192\npd_32768: times 4 dd 32768\npd_131072: times 4 dd 131072\n\nSECTION .text\n\n; void ff_yuv2yuv_420p8to8_sse2(uint8_t *yuv_out[3], ptrdiff_t yuv_out_stride[3],\n;                               uint8_t *yuv_in[3], ptrdiff_t yuv_in_stride[3],\n;                               int w, int h, const int16_t yuv2yuv_coeffs[3][3][8],\n;                               const int16_t yuv_offset[2][8])\n\n%if ARCH_X86_64\n%macro YUV2YUV_FN 4 ; in_bitdepth, out_bitdepth, log2_chroma_w (horiz), log2_chroma_h (vert)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:2", "text": "pw_16384: times 8 dw 16384\n\npd_1: times 4 dd 1\npd_2: times 4 dd 2\npd_128: times 4 dd 128\npd_512: times 4 dd 512\npd_2048: times 4 dd 2048\npd_8192: times 4 dd 8192\npd_32768: times 4 dd 32768\npd_131072: times 4 dd 131072\n\nSECTION .text\n\n; void ff_yuv2yuv_420p8to8_sse2(uint8_t *yuv_out[3], ptrdiff_t yuv_out_stride[3],\n;                               uint8_t *yuv_in[3], ptrdiff_t yuv_in_stride[3],\n;                               int w, int h, const int16_t yuv2yuv_coeffs[3][3][8],\n;                               const int16_t yuv_offset[2][8])\n\n%if ARCH_X86_64\n%macro YUV2YUV_FN 4 ; in_bitdepth, out_bitdepth, log2_chroma_w (horiz), log2_chroma_h (vert)\n\n%assign %%sh (14 + %1 - %2)\n%assign %%rnd (1 << (%%sh - 1))\n%assign %%uvinoff (128 << (%1 - 8))\n%assign %%uvoutoff (128 << (%2 - 8))\n%if %3 == 0\n%assign %%ss 444\n%elif %4 == 0\n%assign %%ss 422\n%else ; %4 == 1\n%assign %%ss 420\n%endif ; %3/%4\n%if %2 != 8\n%assign %%maxval (1 << %2) - 1\n%endif ; %2 != 8\n\n%assign %%ypsh %%sh - 1\n%if %%ypsh > 14\n%assign %%yoffsh %%ypsh - 13\n%assign %%ypsh 14\n%else\n%assign %%yoffsh 1\n%endif\n%assign %%yprnd (1 << (%%yoffsh - 1))\n%assign %%ypmul (1 << %%ypsh)\n\ncglobal yuv2yuv_ %+ %%ss %+ p%1to%2, 8, 14, 16, 0 - (4 * mmsize), \\\n                                     yo, yos, yi, yis, w, h, c, yoff, ui, vi, uo, vo\n%if %3 == 1\n    inc             wd\n    sar             wd, 1\n%if %4 == 1\n    inc             hd\n    sar             hd, 1\n%endif ; %4 == 1\n%endif ; %3 == 1\n    mov [rsp+3*mmsize+0], wd\n    mov [rsp+3*mmsize+4], hd\n\n    mova           m10, [cq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:3", "text": "%else\n%assign %%yoffsh 1\n%endif\n%assign %%yprnd (1 << (%%yoffsh - 1))\n%assign %%ypmul (1 << %%ypsh)\n\ncglobal yuv2yuv_ %+ %%ss %+ p%1to%2, 8, 14, 16, 0 - (4 * mmsize), \\\n                                     yo, yos, yi, yis, w, h, c, yoff, ui, vi, uo, vo\n%if %3 == 1\n    inc             wd\n    sar             wd, 1\n%if %4 == 1\n    inc             hd\n    sar             hd, 1\n%endif ; %4 == 1\n%endif ; %3 == 1\n    mov [rsp+3*mmsize+0], wd\n    mov [rsp+3*mmsize+4], hd\n\n    mova           m10, [cq]\n    pxor           m11, m11\n    mova           m12, [pd_ %+ %%uvoutoff]\n    pslld          m12, %%sh\n    paddd          m12, [pd_ %+ %%rnd]\n    mova           m13, [pw_ %+ %%uvinoff]\n    mova           m14, [yoffq+ 0]      ; y_off_in\n    mova           m15, [yoffq+16]      ; y_off_out\n%if %%yoffsh != 0\n    psllw          m15, %%yoffsh\n%endif\n    paddw          m15, [pw_ %+ %%yprnd]\n    punpcklwd      m10, m15\n    mova           m15, [pw_ %+ %%ypmul]\n    movh            m0, [cq+1*16]       ; cyu\n    movh            m1, [cq+2*16]       ; cyv\n    movh            m2, [cq+4*16]       ; cuu\n    movh            m3, [cq+5*16]       ; cuv\n    movh            m4, [cq+7*16]       ; cvu\n    movh            m5, [cq+8*16]       ; cvv\n    punpcklwd       m0, m1\n    punpcklwd       m2, m3\n    punpcklwd       m4, m5\n    mova [rsp+0*mmsize], m0\n    mova [rsp+1*mmsize], m2\n    mova [rsp+2*mmsize], m4\n\n    DEFINE_ARGS yo, yos, yi, yis, ui, vi, uo, vo, uis, vis, uos, vos, x, tmp\n\n    mov            uiq, [yiq+gprsize*1]\n    mov            viq, [yiq+gprsize*2]\n    mov            yiq, [yiq+gprsize*0]\n    mov            uoq, [yoq+gprsize*1]\n    mov            voq, [yoq+gprsize*2]\n    mov            yoq, [yoq+gprsize*0]\n    mov           uisq, [yisq+gprsize*1]\n    mov           visq, [yisq+gprsize*2]\n    mov           yisq, [yisq+gprsize*0]\n    mov           uosq, [yosq+gprsize*1]\n    mov           vosq, [yosq+gprsize*2]\n    mov           yosq, [yosq+gprsize*0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:4", "text": "punpcklwd       m2, m3\n    punpcklwd       m4, m5\n    mova [rsp+0*mmsize], m0\n    mova [rsp+1*mmsize], m2\n    mova [rsp+2*mmsize], m4\n\n    DEFINE_ARGS yo, yos, yi, yis, ui, vi, uo, vo, uis, vis, uos, vos, x, tmp\n\n    mov            uiq, [yiq+gprsize*1]\n    mov            viq, [yiq+gprsize*2]\n    mov            yiq, [yiq+gprsize*0]\n    mov            uoq, [yoq+gprsize*1]\n    mov            voq, [yoq+gprsize*2]\n    mov            yoq, [yoq+gprsize*0]\n    mov           uisq, [yisq+gprsize*1]\n    mov           visq, [yisq+gprsize*2]\n    mov           yisq, [yisq+gprsize*0]\n    mov           uosq, [yosq+gprsize*1]\n    mov           vosq, [yosq+gprsize*2]\n    mov           yosq, [yosq+gprsize*0]\n\n.loop_v:\n    xor             xq, xq\n\n.loop_h:\n%if %4 == 1\n    lea           tmpq, [yiq+yisq]\n%endif ; %4 == 1\n%if %1 == 8\n    movu            m0, [yiq+xq*(1<<%3)]        ; y00/01\n%if %4 == 1\n    movu            m2, [tmpq+xq*2]             ; y10/11\n%endif ; %4 == 1\n%if %3 == 1\n    movh            m4, [uiq+xq]                ; u\n    movh            m5, [viq+xq]                ; v\n%else ; %3 != 1\n    movu            m4, [uiq+xq]                ; u\n    movu            m5, [viq+xq]                ; v\n%endif ; %3 ==/!= 1\n    punpckhbw       m1, m0, m11\n    punpcklbw       m0, m11\n%if %4 == 1\n    punpckhbw       m3, m2, m11\n    punpcklbw       m2, m11\n%endif ; %4 == 1\n%if %3 == 0\n    punpckhbw       m2, m4, m11\n    punpckhbw       m3, m5, m11\n%endif ; %3 == 0\n    punpcklbw       m4, m11\n    punpcklbw       m5, m11\n%else ; %1 != 8\n    movu            m0, [yiq+xq*(2<<%3)]        ; y00/01\n    movu            m1, [yiq+xq*(2<<%3)+mmsize] ; y00/01\n%if %4 == 1\n    movu            m2, [tmpq+xq*4]             ; y10/11\n    movu            m3, [tmpq+xq*4+mmsize]      ; y10/11\n%endif ; %4 == 1\n    movu            m4, [uiq+xq*2]              ; u", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:5", "text": "punpckhbw       m1, m0, m11\n    punpcklbw       m0, m11\n%if %4 == 1\n    punpckhbw       m3, m2, m11\n    punpcklbw       m2, m11\n%endif ; %4 == 1\n%if %3 == 0\n    punpckhbw       m2, m4, m11\n    punpckhbw       m3, m5, m11\n%endif ; %3 == 0\n    punpcklbw       m4, m11\n    punpcklbw       m5, m11\n%else ; %1 != 8\n    movu            m0, [yiq+xq*(2<<%3)]        ; y00/01\n    movu            m1, [yiq+xq*(2<<%3)+mmsize] ; y00/01\n%if %4 == 1\n    movu            m2, [tmpq+xq*4]             ; y10/11\n    movu            m3, [tmpq+xq*4+mmsize]      ; y10/11\n%endif ; %4 == 1\n    movu            m4, [uiq+xq*2]              ; u\n    movu            m5, [viq+xq*2]              ; v\n%if %3 == 0\n    movu            m2, [uiq+xq*2+mmsize]\n    movu            m3, [viq+xq*2+mmsize]\n%endif ; %3 == 0\n%endif ; %1 ==/!= 8\n    psubw           m0, m14\n    psubw           m1, m14\n%if %4 == 1\n    psubw           m2, m14\n    psubw           m3, m14\n%endif ; %4 == 1\n    psubw           m4, m13\n    psubw           m5, m13\n%if %3 == 0\n    psubw           m2, m13\n    psubw           m3, m13\n%endif ; %3 == 0\n\n    SBUTTERFLY   wd, 4, 5, 6\n    pmaddwd         m6, m4, [rsp+1*mmsize]\n    pmaddwd         m7, m5, [rsp+1*mmsize]\n%if %3 == 0\n    SBUTTERFLY   wd, 2, 3, 8\n    pmaddwd         m8, m2, [rsp+1*mmsize]\n    pmaddwd         m9, m3, [rsp+1*mmsize]\n%else ; %3 != 0\n    pmaddwd         m8, m4, [rsp+2*mmsize]\n    pmaddwd         m9, m5, [rsp+2*mmsize]\n%endif\n    paddd           m6, m12\n    paddd           m7, m12\n    paddd           m8, m12\n    paddd           m9, m12\n    psrad           m6, %%sh\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    packssdw        m6, m7\n    packssdw        m8, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:6", "text": "pmaddwd         m6, m4, [rsp+1*mmsize]\n    pmaddwd         m7, m5, [rsp+1*mmsize]\n%if %3 == 0\n    SBUTTERFLY   wd, 2, 3, 8\n    pmaddwd         m8, m2, [rsp+1*mmsize]\n    pmaddwd         m9, m3, [rsp+1*mmsize]\n%else ; %3 != 0\n    pmaddwd         m8, m4, [rsp+2*mmsize]\n    pmaddwd         m9, m5, [rsp+2*mmsize]\n%endif\n    paddd           m6, m12\n    paddd           m7, m12\n    paddd           m8, m12\n    paddd           m9, m12\n    psrad           m6, %%sh\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    packssdw        m6, m7\n    packssdw        m8, m9\n%if %2 == 8\n    packuswb        m6, m8\n%if %3 == 0\n    movu      [uoq+xq], m6\n%else ; %3 != 0\n    movh      [uoq+xq], m6\n    movhps    [voq+xq], m6\n%endif ; %3 ==/!= 0\n%else ; %2 != 8\n    CLIPW           m6, m11, [pw_ %+ %%maxval]\n    CLIPW           m8, m11, [pw_ %+ %%maxval]\n    movu    [uoq+xq*2], m6\n%if %3 == 0\n    movu    [uoq+xq*2+mmsize], m8\n%else ; %3 != 0\n    movu    [voq+xq*2], m8\n%endif ; %3 ==/!= 0\n%endif ; %2 ==/!= 8\n\n%if %3 == 0\n    pmaddwd         m6, m4, [rsp+2*mmsize]\n    pmaddwd         m7, m5, [rsp+2*mmsize]\n    pmaddwd         m8, m2, [rsp+2*mmsize]\n    pmaddwd         m9, m3, [rsp+2*mmsize]\n    paddd           m6, m12\n    paddd           m7, m12\n    paddd           m8, m12\n    paddd           m9, m12\n    psrad           m6, %%sh\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    packssdw        m6, m7\n    packssdw        m8, m9\n%if %2 == 8\n    packuswb        m6, m8\n    movu      [voq+xq], m6\n%else ; %2 != 8\n    CLIPW           m6, m11, [pw_ %+ %%maxval]\n    CLIPW           m8, m11, [pw_ %+ %%maxval]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:7", "text": "pmaddwd         m6, m4, [rsp+2*mmsize]\n    pmaddwd         m7, m5, [rsp+2*mmsize]\n    pmaddwd         m8, m2, [rsp+2*mmsize]\n    pmaddwd         m9, m3, [rsp+2*mmsize]\n    paddd           m6, m12\n    paddd           m7, m12\n    paddd           m8, m12\n    paddd           m9, m12\n    psrad           m6, %%sh\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    packssdw        m6, m7\n    packssdw        m8, m9\n%if %2 == 8\n    packuswb        m6, m8\n    movu      [voq+xq], m6\n%else ; %2 != 8\n    CLIPW           m6, m11, [pw_ %+ %%maxval]\n    CLIPW           m8, m11, [pw_ %+ %%maxval]\n    movu    [voq+xq*2], m6\n    movu    [voq+xq*2+mmsize], m8\n%endif ; %2 ==/!= 8\n%endif ; %3 == 0\n\n    pmaddwd         m4, [rsp+0*mmsize]\n    pmaddwd         m5, [rsp+0*mmsize]          ; uv_val\n%if %3 == 0\n    pmaddwd         m2, [rsp+0*mmsize]\n    pmaddwd         m3, [rsp+0*mmsize]\n%endif ; %3 == 0\n\n    ; unpack y pixels with m15 (shifted round + offset), then multiply\n    ; by m10, add uv pixels, and we're done!\n%if %3 == 1\n    punpckhdq       m8, m4, m4\n    punpckldq       m4, m4\n    punpckhdq       m9, m5, m5\n    punpckldq       m5, m5\n%else ; %3 != 1\n    SWAP             8, 5, 2\n    SWAP             3, 9\n%endif ; %3 ==/!= 1\n%if %4 == 1\n    punpckhwd       m6, m2, m15\n    punpcklwd       m2, m15\n    punpckhwd       m7, m3, m15\n    punpcklwd       m3, m15\n    pmaddwd         m2, m10\n    pmaddwd         m6, m10\n    pmaddwd         m3, m10\n    pmaddwd         m7, m10\n    paddd           m2, m4\n    paddd           m6, m8\n    paddd           m3, m5\n    paddd           m7, m9\n    psrad           m2, %%sh\n    psrad           m6, %%sh\n    psrad           m3, %%sh\n    psrad           m7, %%sh", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:8", "text": "SWAP             8, 5, 2\n    SWAP             3, 9\n%endif ; %3 ==/!= 1\n%if %4 == 1\n    punpckhwd       m6, m2, m15\n    punpcklwd       m2, m15\n    punpckhwd       m7, m3, m15\n    punpcklwd       m3, m15\n    pmaddwd         m2, m10\n    pmaddwd         m6, m10\n    pmaddwd         m3, m10\n    pmaddwd         m7, m10\n    paddd           m2, m4\n    paddd           m6, m8\n    paddd           m3, m5\n    paddd           m7, m9\n    psrad           m2, %%sh\n    psrad           m6, %%sh\n    psrad           m3, %%sh\n    psrad           m7, %%sh\n    packssdw        m2, m6\n    packssdw        m3, m7\n\n    lea           tmpq, [yoq+yosq]\n%if %2 == 8\n    packuswb        m2, m3\n    movu   [tmpq+xq*2], m2\n%else ; %2 != 8\n    CLIPW           m2, m11, [pw_ %+ %%maxval]\n    CLIPW           m3, m11, [pw_ %+ %%maxval]\n    movu   [tmpq+xq*4], m2\n    movu [tmpq+xq*4+mmsize], m3\n%endif ; %2 ==/!= 8\n%endif ; %4 == 1\n\n    punpckhwd       m6, m0, m15\n    punpcklwd       m0, m15\n    punpckhwd       m7, m1, m15\n    punpcklwd       m1, m15\n    pmaddwd         m0, m10\n    pmaddwd         m6, m10\n    pmaddwd         m1, m10\n    pmaddwd         m7, m10\n    paddd           m0, m4\n    paddd           m6, m8\n    paddd           m1, m5\n    paddd           m7, m9\n    psrad           m0, %%sh\n    psrad           m6, %%sh\n    psrad           m1, %%sh\n    psrad           m7, %%sh\n    packssdw        m0, m6\n    packssdw        m1, m7\n\n%if %2 == 8\n    packuswb        m0, m1\n    movu    [yoq+xq*(1<<%3)], m0\n%else ; %2 != 8\n    CLIPW           m0, m11, [pw_ %+ %%maxval]\n    CLIPW           m1, m11, [pw_ %+ %%maxval]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:9", "text": "pmaddwd         m6, m10\n    pmaddwd         m1, m10\n    pmaddwd         m7, m10\n    paddd           m0, m4\n    paddd           m6, m8\n    paddd           m1, m5\n    paddd           m7, m9\n    psrad           m0, %%sh\n    psrad           m6, %%sh\n    psrad           m1, %%sh\n    psrad           m7, %%sh\n    packssdw        m0, m6\n    packssdw        m1, m7\n\n%if %2 == 8\n    packuswb        m0, m1\n    movu    [yoq+xq*(1<<%3)], m0\n%else ; %2 != 8\n    CLIPW           m0, m11, [pw_ %+ %%maxval]\n    CLIPW           m1, m11, [pw_ %+ %%maxval]\n    movu  [yoq+xq*(2<<%3)], m0\n    movu [yoq+xq*(2<<%3)+mmsize], m1\n%endif ; %2 ==/!= 8\n\n    add             xq, mmsize >> %3\n    cmp             xd, dword [rsp+3*mmsize+0]\n    jl .loop_h\n\n%if %4 == 1\n    lea            yiq, [yiq+yisq*2]\n    lea            yoq, [yoq+yosq*2]\n%else ; %4 != 1\n    add            yiq, yisq\n    add            yoq, yosq\n%endif ; %4 ==/!= 1\n    add            uiq, uisq\n    add            viq, visq\n    add            uoq, uosq\n    add            voq, vosq\n    dec dword [rsp+3*mmsize+4]\n    jg .loop_v\n\n    RET\n%endmacro\n\n%macro YUV2YUV_FNS 2 ; ss_w, ss_h\nYUV2YUV_FN  8,  8, %1, %2\nYUV2YUV_FN 10,  8, %1, %2\nYUV2YUV_FN 12,  8, %1, %2\nYUV2YUV_FN  8, 10, %1, %2\nYUV2YUV_FN 10, 10, %1, %2\nYUV2YUV_FN 12, 10, %1, %2\nYUV2YUV_FN  8, 12, %1, %2\nYUV2YUV_FN 10, 12, %1, %2\nYUV2YUV_FN 12, 12, %1, %2\n%endmacro\n\nINIT_XMM sse2\nYUV2YUV_FNS 0, 0\nYUV2YUV_FNS 1, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:10", "text": "jg .loop_v\n\n    RET\n%endmacro\n\n%macro YUV2YUV_FNS 2 ; ss_w, ss_h\nYUV2YUV_FN  8,  8, %1, %2\nYUV2YUV_FN 10,  8, %1, %2\nYUV2YUV_FN 12,  8, %1, %2\nYUV2YUV_FN  8, 10, %1, %2\nYUV2YUV_FN 10, 10, %1, %2\nYUV2YUV_FN 12, 10, %1, %2\nYUV2YUV_FN  8, 12, %1, %2\nYUV2YUV_FN 10, 12, %1, %2\nYUV2YUV_FN 12, 12, %1, %2\n%endmacro\n\nINIT_XMM sse2\nYUV2YUV_FNS 0, 0\nYUV2YUV_FNS 1, 0\nYUV2YUV_FNS 1, 1\n\n; void ff_yuv2rgb_420p8_sse2(int16_t *rgb[3], ptrdiff_t rgb_stride,\n;                            uint8_t *yuv[3], ptrdiff_t yuv_stride[3],\n;                            int w, int h, const int16_t yuv2rgb_coeffs[3][3][8],\n;                            const int16_t yuv_offset[8])\n%macro YUV2RGB_FN 3 ; depth, log2_chroma_w (horiz), log2_chroma_h (vert)\n%assign %%sh (%1 - 1)\n%assign %%rnd (1 << (%%sh - 1))\n%assign %%uvoff (1 << (%1 - 1))\n%if %2 == 0\n%assign %%ss 444\n%elif %3 == 0\n%assign %%ss 422\n%else ; %3 == 1\n%assign %%ss 420\n%endif ; %2/%3\n\ncglobal yuv2rgb_ %+ %%ss %+ p%1, 8, 14, 16, 0 - 8 * mmsize, \\\n                                rgb, rgbs, yuv, yuvs, ww, h, c, yoff\n%if %2 == 1\n    inc            wwd\n    sar            wwd, 1\n%endif ; %2 == 1\n%if %3 == 1\n    inc             hd\n    sar             hd, 1\n%endif ; %3 == 1\n    pxor           m11, m11\n    mova           m15, [yoffq]                 ; yoff\n    movh           m14, [cq+  0]                ; cy\n    movh           m10, [cq+ 32]                ; crv\n    movh           m13, [cq+112]                ; cbu\n    movh           m12, [cq+ 64]                ; cgu\n    movh            m9, [cq+ 80]                ; cgv\n    punpcklwd      m14, [pw_ %+ %%rnd]          ; cy, rnd\n    punpcklwd      m13, m11                     ; cbu, 0\n    punpcklwd      m11, m10                     ; 0, crv\n    punpcklwd      m12, m9                      ; cgu, cgv\n    mova [rsp+0*mmsize], m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:11", "text": "%if %2 == 1\n    inc            wwd\n    sar            wwd, 1\n%endif ; %2 == 1\n%if %3 == 1\n    inc             hd\n    sar             hd, 1\n%endif ; %3 == 1\n    pxor           m11, m11\n    mova           m15, [yoffq]                 ; yoff\n    movh           m14, [cq+  0]                ; cy\n    movh           m10, [cq+ 32]                ; crv\n    movh           m13, [cq+112]                ; cbu\n    movh           m12, [cq+ 64]                ; cgu\n    movh            m9, [cq+ 80]                ; cgv\n    punpcklwd      m14, [pw_ %+ %%rnd]          ; cy, rnd\n    punpcklwd      m13, m11                     ; cbu, 0\n    punpcklwd      m11, m10                     ; 0, crv\n    punpcklwd      m12, m9                      ; cgu, cgv\n    mova [rsp+0*mmsize], m11\n    mova [rsp+1*mmsize], m12\n    mova [rsp+2*mmsize], m13\n    mova [rsp+3*mmsize], m14\n    pxor           m14, m14\n\n    DEFINE_ARGS r, rgbs, y, ys, ww, h, g, b, u, v, us, vs, x, tmp\n\n    mov             gq, [rq+1*gprsize]\n    mov             bq, [rq+2*gprsize]\n    mov             rq, [rq+0*gprsize]\n    mov             uq, [yq+1*gprsize]\n    mov             vq, [yq+2*gprsize]\n    mov             yq, [yq+0*gprsize]\n    mov            usq, [ysq+1*gprsize]\n    mov            vsq, [ysq+2*gprsize]\n    mov            ysq, [ysq+0*gprsize]\n\n.loop_v:\n    xor             xq, xq\n\n.loop_h:\n%if %3 == 1\n    lea           tmpq, [yq+ysq]\n%endif ; %3 == 1\n%if %1 == 8\n    movu            m0, [yq+xq*(1<<%2)]\n%if %3 == 1\n    movu            m2, [tmpq+xq*2]\n%endif ; %3 == 1\n%if %2 == 1\n    movh            m4, [uq+xq]\n    movh            m5, [vq+xq]\n%else ; %2 != 1\n    movu            m4, [uq+xq]\n    movu            m5, [vq+xq]\n%endif ; %2 ==/!= 1\n    punpckhbw       m1, m0, m14\n    punpcklbw       m0, m14\n%if %3 == 1\n    punpckhbw       m3, m2, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:12", "text": ".loop_h:\n%if %3 == 1\n    lea           tmpq, [yq+ysq]\n%endif ; %3 == 1\n%if %1 == 8\n    movu            m0, [yq+xq*(1<<%2)]\n%if %3 == 1\n    movu            m2, [tmpq+xq*2]\n%endif ; %3 == 1\n%if %2 == 1\n    movh            m4, [uq+xq]\n    movh            m5, [vq+xq]\n%else ; %2 != 1\n    movu            m4, [uq+xq]\n    movu            m5, [vq+xq]\n%endif ; %2 ==/!= 1\n    punpckhbw       m1, m0, m14\n    punpcklbw       m0, m14\n%if %3 == 1\n    punpckhbw       m3, m2, m14\n    punpcklbw       m2, m14\n%endif ; %3 == 1\n%if %2 == 0\n    punpckhbw       m2, m4, m14\n    punpckhbw       m3, m5, m14\n%endif ; %2 == 0\n    punpcklbw       m4, m14\n    punpcklbw       m5, m14\n%else ; %1 != 8\n    movu            m0, [yq+xq*(2<<%2)]\n    movu            m1, [yq+xq*(2<<%2)+mmsize]\n%if %3 == 1\n    movu            m2, [tmpq+xq*4]\n    movu            m3, [tmpq+xq*4+mmsize]\n%endif ; %3 == 1\n    movu            m4, [uq+xq*2]\n    movu            m5, [vq+xq*2]\n%if %2 == 0\n    movu            m2, [uq+xq*2+mmsize]\n    movu            m3, [vq+xq*2+mmsize]\n%endif ; %2 == 0\n%endif ; %1 ==/!= 8\n    psubw           m0, m15\n    psubw           m1, m15\n%if %3 == 1\n    psubw           m2, m15\n    psubw           m3, m15\n%endif ; %3 == 1\n    psubw           m4, [pw_ %+ %%uvoff]\n    psubw           m5, [pw_ %+ %%uvoff]\n    SBUTTERFLY   wd, 4, 5, 6\n%if %2 == 0\n    psubw           m2, [pw_ %+ %%uvoff]\n    psubw           m3, [pw_ %+ %%uvoff]\n    SBUTTERFLY   wd, 2, 3, 6\n%endif ; %2 == 0\n\n    ; calculate y+rnd full-resolution [0-3,6-9]\n    punpckhwd       m6, m0, [pw_1]              ; y, 1\n    punpcklwd       m0, [pw_1]                  ; y, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:13", "text": "%endif ; %2 == 0\n%endif ; %1 ==/!= 8\n    psubw           m0, m15\n    psubw           m1, m15\n%if %3 == 1\n    psubw           m2, m15\n    psubw           m3, m15\n%endif ; %3 == 1\n    psubw           m4, [pw_ %+ %%uvoff]\n    psubw           m5, [pw_ %+ %%uvoff]\n    SBUTTERFLY   wd, 4, 5, 6\n%if %2 == 0\n    psubw           m2, [pw_ %+ %%uvoff]\n    psubw           m3, [pw_ %+ %%uvoff]\n    SBUTTERFLY   wd, 2, 3, 6\n%endif ; %2 == 0\n\n    ; calculate y+rnd full-resolution [0-3,6-9]\n    punpckhwd       m6, m0, [pw_1]              ; y, 1\n    punpcklwd       m0, [pw_1]                  ; y, 1\n    punpckhwd       m7, m1, [pw_1]              ; y, 1\n    punpcklwd       m1, [pw_1]                  ; y, 1\n    pmaddwd         m0, [rsp+3*mmsize]\n    pmaddwd         m6, [rsp+3*mmsize]\n    pmaddwd         m1, [rsp+3*mmsize]\n    pmaddwd         m7, [rsp+3*mmsize]\n%if %3 == 1\n    punpckhwd       m8, m2, [pw_1]              ; y, 1\n    punpcklwd       m2, [pw_1]                  ; y, 1\n    punpckhwd       m9, m3, [pw_1]              ; y, 1\n    punpcklwd       m3, [pw_1]                  ; y, 1\n    pmaddwd         m2, [rsp+3*mmsize]\n    pmaddwd         m8, [rsp+3*mmsize]\n    pmaddwd         m3, [rsp+3*mmsize]\n    pmaddwd         m9, [rsp+3*mmsize]\n    mova [rsp+4*mmsize], m2\n    mova [rsp+5*mmsize], m8\n    mova [rsp+6*mmsize], m3\n    mova [rsp+7*mmsize], m9\n%endif ; %3 == 1\n\n    ; calculate r offsets (un-subsampled, then duplicate)\n    pmaddwd        m10, m4, [rsp+0*mmsize]\n%if %2 == 1\n    pmaddwd        m12, m5, [rsp+0*mmsize]\n    punpckhdq      m11, m10, m10\n    punpckldq      m10, m10\n    punpckhdq      m13, m12, m12\n    punpckldq      m12, m12\n%else ; %2 != 1\n    pmaddwd        m11, m5, [rsp+0*mmsize]\n    pmaddwd        m12, m2, [rsp+0*mmsize]\n    pmaddwd        m13, m3, [rsp+0*mmsize]\n%endif ; %2 ==/!= 1\n%if %3 == 1\n    paddd           m2, m10, [rsp+4*mmsize]\n    paddd           m3, m11, [rsp+5*mmsize]\n    paddd           m8, m12, [rsp+6*mmsize]\n    paddd           m9, m13, [rsp+7*mmsize]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:14", "text": "; calculate r offsets (un-subsampled, then duplicate)\n    pmaddwd        m10, m4, [rsp+0*mmsize]\n%if %2 == 1\n    pmaddwd        m12, m5, [rsp+0*mmsize]\n    punpckhdq      m11, m10, m10\n    punpckldq      m10, m10\n    punpckhdq      m13, m12, m12\n    punpckldq      m12, m12\n%else ; %2 != 1\n    pmaddwd        m11, m5, [rsp+0*mmsize]\n    pmaddwd        m12, m2, [rsp+0*mmsize]\n    pmaddwd        m13, m3, [rsp+0*mmsize]\n%endif ; %2 ==/!= 1\n%if %3 == 1\n    paddd           m2, m10, [rsp+4*mmsize]\n    paddd           m3, m11, [rsp+5*mmsize]\n    paddd           m8, m12, [rsp+6*mmsize]\n    paddd           m9, m13, [rsp+7*mmsize]\n%endif\n    paddd          m10, m0\n    paddd          m11, m6\n    paddd          m12, m1\n    paddd          m13, m7\n%if %3 == 1\n    psrad           m2, %%sh\n    psrad           m3, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n%endif ; %3 == 1\n    psrad          m10, %%sh\n    psrad          m11, %%sh\n    psrad          m12, %%sh\n    psrad          m13, %%sh\n%if %3 == 1\n    lea           tmpq, [rq+rgbsq*2]\n    packssdw        m2, m3\n    packssdw        m8, m9\n    mova [tmpq+xq*4], m2\n    mova [tmpq+xq*4+mmsize], m8\n%endif ; %3 == 1\n    packssdw       m10, m11\n    packssdw       m12, m13\n    mova   [rq+xq*(2 << %2)], m10\n    mova   [rq+xq*(2 << %2)+mmsize], m12\n\n    ; calculate g offsets (un-subsampled, then duplicate)\n    pmaddwd        m10, m4, [rsp+1*mmsize]\n%if %2 == 1\n    pmaddwd        m12, m5, [rsp+1*mmsize]\n    punpckhdq      m11, m10, m10\n    punpckldq      m10, m10\n    punpckhdq      m13, m12, m12\n    punpckldq      m12, m12\n%else ; %2 != 1\n    pmaddwd        m11, m5, [rsp+1*mmsize]\n    pmaddwd        m12, m2, [rsp+1*mmsize]\n    pmaddwd        m13, m3, [rsp+1*mmsize]\n%endif ; %2 ==/!= 1\n%if %3 == 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:15", "text": "%endif ; %3 == 1\n    packssdw       m10, m11\n    packssdw       m12, m13\n    mova   [rq+xq*(2 << %2)], m10\n    mova   [rq+xq*(2 << %2)+mmsize], m12\n\n    ; calculate g offsets (un-subsampled, then duplicate)\n    pmaddwd        m10, m4, [rsp+1*mmsize]\n%if %2 == 1\n    pmaddwd        m12, m5, [rsp+1*mmsize]\n    punpckhdq      m11, m10, m10\n    punpckldq      m10, m10\n    punpckhdq      m13, m12, m12\n    punpckldq      m12, m12\n%else ; %2 != 1\n    pmaddwd        m11, m5, [rsp+1*mmsize]\n    pmaddwd        m12, m2, [rsp+1*mmsize]\n    pmaddwd        m13, m3, [rsp+1*mmsize]\n%endif ; %2 ==/!= 1\n%if %3 == 1\n    paddd           m2, m10, [rsp+4*mmsize]\n    paddd           m3, m11, [rsp+5*mmsize]\n    paddd           m8, m12, [rsp+6*mmsize]\n    paddd           m9, m13, [rsp+7*mmsize]\n%endif ; %3 == 1\n    paddd          m10, m0\n    paddd          m11, m6\n    paddd          m12, m1\n    paddd          m13, m7\n%if %3 == 1\n    psrad           m2, %%sh\n    psrad           m3, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n%endif ; %3 == 1\n    psrad          m10, %%sh\n    psrad          m11, %%sh\n    psrad          m12, %%sh\n    psrad          m13, %%sh\n%if %3 == 1\n    lea           tmpq, [gq+rgbsq*2]\n    packssdw        m2, m3\n    packssdw        m8, m9\n    mova [tmpq+xq*4], m2\n    mova [tmpq+xq*4+mmsize], m8\n%endif ; %3 == 1\n    packssdw       m10, m11\n    packssdw       m12, m13\n    mova   [gq+xq*(2 << %2)], m10\n    mova   [gq+xq*(2 << %2)+mmsize], m12\n\n    ; calculate b offsets (un-subsampled, then duplicate)\n    pmaddwd         m4, [rsp+2*mmsize]\n    pmaddwd         m5, [rsp+2*mmsize]\n%if %2 == 1\n    punpckhdq       m2, m4, m4\n    punpckldq       m4, m4\n    punpckhdq       m3, m5, m5\n    punpckldq       m5, m5\n%else ; %2 != 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:16", "text": "lea           tmpq, [gq+rgbsq*2]\n    packssdw        m2, m3\n    packssdw        m8, m9\n    mova [tmpq+xq*4], m2\n    mova [tmpq+xq*4+mmsize], m8\n%endif ; %3 == 1\n    packssdw       m10, m11\n    packssdw       m12, m13\n    mova   [gq+xq*(2 << %2)], m10\n    mova   [gq+xq*(2 << %2)+mmsize], m12\n\n    ; calculate b offsets (un-subsampled, then duplicate)\n    pmaddwd         m4, [rsp+2*mmsize]\n    pmaddwd         m5, [rsp+2*mmsize]\n%if %2 == 1\n    punpckhdq       m2, m4, m4\n    punpckldq       m4, m4\n    punpckhdq       m3, m5, m5\n    punpckldq       m5, m5\n%else ; %2 != 1\n    pmaddwd         m2, [rsp+2*mmsize]\n    pmaddwd         m3, [rsp+2*mmsize]\n    SWAP             2, 5\n%endif ; %2 ==/!= 1\n    paddd           m0, m4\n    paddd           m6, m2\n    paddd           m1, m5\n    paddd           m7, m3\n%if %3 == 1\n    paddd           m4, [rsp+4*mmsize]\n    paddd           m2, [rsp+5*mmsize]\n    paddd           m5, [rsp+6*mmsize]\n    paddd           m3, [rsp+7*mmsize]\n%endif ; %3 == 1\n    psrad           m0, %%sh\n    psrad           m6, %%sh\n    psrad           m1, %%sh\n    psrad           m7, %%sh\n%if %3 == 1\n    psrad           m4, %%sh\n    psrad           m2, %%sh\n    psrad           m5, %%sh\n    psrad           m3, %%sh\n%endif ; %3 == 1\n    packssdw        m0, m6\n    packssdw        m1, m7\n    movu   [bq+xq*(2 << %2)], m0\n    movu   [bq+xq*(2 << %2)+mmsize], m1\n%if %3 == 1\n    lea           tmpq, [bq+rgbsq*2]\n    packssdw        m4, m2\n    packssdw        m5, m3\n    movu [tmpq+xq*4], m4\n    movu [tmpq+xq*4+mmsize], m5\n%endif ; %3 == 1\n\n    add             xd, mmsize >> %2\n    cmp             xd, wwd\n    jl .loop_h", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:17", "text": "psrad           m2, %%sh\n    psrad           m5, %%sh\n    psrad           m3, %%sh\n%endif ; %3 == 1\n    packssdw        m0, m6\n    packssdw        m1, m7\n    movu   [bq+xq*(2 << %2)], m0\n    movu   [bq+xq*(2 << %2)+mmsize], m1\n%if %3 == 1\n    lea           tmpq, [bq+rgbsq*2]\n    packssdw        m4, m2\n    packssdw        m5, m3\n    movu [tmpq+xq*4], m4\n    movu [tmpq+xq*4+mmsize], m5\n%endif ; %3 == 1\n\n    add             xd, mmsize >> %2\n    cmp             xd, wwd\n    jl .loop_h\n\n    lea             rq, [rq+rgbsq*(2 << %3)]\n    lea             gq, [gq+rgbsq*(2 << %3)]\n    lea             bq, [bq+rgbsq*(2 << %3)]\n%if %3 == 1\n    lea             yq, [yq+ysq*2]\n%else ; %3 != 0\n    add             yq, ysq\n%endif ; %3 ==/!= 1\n    add             uq, usq\n    add             vq, vsq\n    dec             hd\n    jg .loop_v\n\n    RET\n%endmacro\n\n%macro YUV2RGB_FNS 2\nYUV2RGB_FN  8, %1, %2\nYUV2RGB_FN 10, %1, %2\nYUV2RGB_FN 12, %1, %2\n%endmacro\n\nINIT_XMM sse2\nYUV2RGB_FNS 0, 0\nYUV2RGB_FNS 1, 0\nYUV2RGB_FNS 1, 1\n\n%macro RGB2YUV_FN 3 ; depth, log2_chroma_w (horiz), log2_chroma_h (vert)\n%assign %%sh 29 - %1\n%assign %%rnd (1 << (%%sh - 15))\n%assign %%uvrnd ((128 << (%1 - 8)) << (%%sh - 14))\n%if %1 != 8\n%assign %%maxval ((1 << %1) - 1)\n%endif ; %1 != 8\n%if %2 == 0\n%assign %%ss 444\n%elif %3 == 0\n%assign %%ss 422\n%else ; %3 == 1\n%assign %%ss 420", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:18", "text": "%endmacro\n\nINIT_XMM sse2\nYUV2RGB_FNS 0, 0\nYUV2RGB_FNS 1, 0\nYUV2RGB_FNS 1, 1\n\n%macro RGB2YUV_FN 3 ; depth, log2_chroma_w (horiz), log2_chroma_h (vert)\n%assign %%sh 29 - %1\n%assign %%rnd (1 << (%%sh - 15))\n%assign %%uvrnd ((128 << (%1 - 8)) << (%%sh - 14))\n%if %1 != 8\n%assign %%maxval ((1 << %1) - 1)\n%endif ; %1 != 8\n%if %2 == 0\n%assign %%ss 444\n%elif %3 == 0\n%assign %%ss 422\n%else ; %3 == 1\n%assign %%ss 420\n%endif ; %2/%3\n\ncglobal rgb2yuv_ %+ %%ss %+ p%1, 8, 14, 16, 0 - 6 * mmsize, \\\n                                 yuv, yuvs, rgb, rgbs, ww, h, c, off\n%if %2 == 1\n    inc            wwd\n    sar            wwd, 1\n%endif ; %2 == 1\n%if %3 == 1\n    inc             hd\n    sar             hd, 1\n%endif ; %3 == 1\n\n    ; prepare coeffs\n    movh            m8, [offq]\n    movh            m9, [pw_ %+ %%uvrnd]\n    psllw           m8, %%sh - 14\n    paddw           m9, [pw_ %+ %%rnd]\n    paddw           m8, [pw_ %+ %%rnd]\n    movh            m0, [cq+  0]\n    movh            m1, [cq+ 16]\n    movh            m2, [cq+ 32]\n    movh            m3, [cq+ 48]\n    movh            m4, [cq+ 64]\n    movh            m5, [cq+ 80]\n    movh            m6, [cq+112]\n    movh            m7, [cq+128]\n    punpcklwd       m0, m1\n    punpcklwd       m2, m8\n    punpcklwd       m3, m4\n    punpcklwd       m4, m5, m9\n    punpcklwd       m5, m6\n    punpcklwd       m7, m9\n\n    mova [rsp+0*mmsize], m0                 ; cry, cgy\n    mova [rsp+1*mmsize], m2                 ; cby, off + rnd\n    mova [rsp+2*mmsize], m3                 ; cru, cgu\n    mova [rsp+3*mmsize], m4                 ; cburv, uvoff + rnd\n    mova [rsp+4*mmsize], m5                 ; cburv, cgv\n    mova [rsp+5*mmsize], m7                 ; cbv, uvoff + rnd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:19", "text": "movh            m1, [cq+ 16]\n    movh            m2, [cq+ 32]\n    movh            m3, [cq+ 48]\n    movh            m4, [cq+ 64]\n    movh            m5, [cq+ 80]\n    movh            m6, [cq+112]\n    movh            m7, [cq+128]\n    punpcklwd       m0, m1\n    punpcklwd       m2, m8\n    punpcklwd       m3, m4\n    punpcklwd       m4, m5, m9\n    punpcklwd       m5, m6\n    punpcklwd       m7, m9\n\n    mova [rsp+0*mmsize], m0                 ; cry, cgy\n    mova [rsp+1*mmsize], m2                 ; cby, off + rnd\n    mova [rsp+2*mmsize], m3                 ; cru, cgu\n    mova [rsp+3*mmsize], m4                 ; cburv, uvoff + rnd\n    mova [rsp+4*mmsize], m5                 ; cburv, cgv\n    mova [rsp+5*mmsize], m7                 ; cbv, uvoff + rnd\n\n\n    DEFINE_ARGS y, ys, r, rgbs, ww, h, u, v, us, vs, g, b, tmp, x\n    mov             gq, [rq+gprsize*1]\n    mov             bq, [rq+gprsize*2]\n    mov             rq, [rq+gprsize*0]\n    mov             uq, [yq+gprsize*1]\n    mov             vq, [yq+gprsize*2]\n    mov             yq, [yq+gprsize*0]\n    mov            usq, [ysq+gprsize*1]\n    mov            vsq, [ysq+gprsize*2]\n    mov            ysq, [ysq+gprsize*0]\n\n    pxor           m15, m15\n.loop_v:\n    xor             xd, xd\n\n.loop_h:\n    ; top line y\n    mova            m0, [rq+xq*(2<<%2)]\n    mova            m3, [rq+xq*(2<<%2)+mmsize]\n    mova            m1, [gq+xq*(2<<%2)]\n    mova            m4, [gq+xq*(2<<%2)+mmsize]\n    mova            m2, [bq+xq*(2<<%2)]\n    mova            m5, [bq+xq*(2<<%2)+mmsize]\n\n    punpcklwd       m6, m0, m1\n    punpckhwd       m7, m0, m1\n    punpcklwd       m8, m3, m4\n    punpckhwd       m9, m3, m4\n    punpcklwd      m10, m2, [pw_16384]\n    punpckhwd      m11, m2, [pw_16384]\n    punpcklwd      m12, m5, [pw_16384]\n    punpckhwd      m13, m5, [pw_16384]\n\n    pmaddwd         m6, [rsp+0*mmsize]\n    pmaddwd         m7, [rsp+0*mmsize]\n    pmaddwd         m8, [rsp+0*mmsize]\n    pmaddwd         m9, [rsp+0*mmsize]\n    pmaddwd        m10, [rsp+1*mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:20", "text": "mova            m3, [rq+xq*(2<<%2)+mmsize]\n    mova            m1, [gq+xq*(2<<%2)]\n    mova            m4, [gq+xq*(2<<%2)+mmsize]\n    mova            m2, [bq+xq*(2<<%2)]\n    mova            m5, [bq+xq*(2<<%2)+mmsize]\n\n    punpcklwd       m6, m0, m1\n    punpckhwd       m7, m0, m1\n    punpcklwd       m8, m3, m4\n    punpckhwd       m9, m3, m4\n    punpcklwd      m10, m2, [pw_16384]\n    punpckhwd      m11, m2, [pw_16384]\n    punpcklwd      m12, m5, [pw_16384]\n    punpckhwd      m13, m5, [pw_16384]\n\n    pmaddwd         m6, [rsp+0*mmsize]\n    pmaddwd         m7, [rsp+0*mmsize]\n    pmaddwd         m8, [rsp+0*mmsize]\n    pmaddwd         m9, [rsp+0*mmsize]\n    pmaddwd        m10, [rsp+1*mmsize]\n    pmaddwd        m11, [rsp+1*mmsize]\n    pmaddwd        m12, [rsp+1*mmsize]\n    pmaddwd        m13, [rsp+1*mmsize]\n    paddd           m6, m10\n    paddd           m7, m11\n    paddd           m8, m12\n    paddd           m9, m13\n    psrad           m6, %%sh\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    packssdw        m6, m7\n    packssdw        m8, m9\n%if %1 == 8\n    packuswb        m6, m8\n    movu [yq+xq*(1<<%2)], m6\n%else\n    CLIPW           m6, m15, [pw_ %+ %%maxval]\n    CLIPW           m8, m15, [pw_ %+ %%maxval]\n    movu [yq+xq*(2<<%2)], m6\n    movu [yq+xq*(2<<%2)+mmsize], m8\n%endif\n\n%if %2 == 1\n    ; subsampling cached data\n    pmaddwd         m0, [pw_1]\n    pmaddwd         m1, [pw_1]\n    pmaddwd         m2, [pw_1]\n    pmaddwd         m3, [pw_1]\n    pmaddwd         m4, [pw_1]\n    pmaddwd         m5, [pw_1]\n\n%if %3 == 1\n    ; bottom line y, r/g portion only\n    lea           tmpq, [rgbsq+xq*2]\n    mova            m6, [rq+tmpq*2]\n    mova            m9, [rq+tmpq*2+mmsize]\n    mova            m7, [gq+tmpq*2]\n    mova           m10, [gq+tmpq*2+mmsize]\n    mova            m8, [bq+tmpq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:21", "text": "movu [yq+xq*(2<<%2)+mmsize], m8\n%endif\n\n%if %2 == 1\n    ; subsampling cached data\n    pmaddwd         m0, [pw_1]\n    pmaddwd         m1, [pw_1]\n    pmaddwd         m2, [pw_1]\n    pmaddwd         m3, [pw_1]\n    pmaddwd         m4, [pw_1]\n    pmaddwd         m5, [pw_1]\n\n%if %3 == 1\n    ; bottom line y, r/g portion only\n    lea           tmpq, [rgbsq+xq*2]\n    mova            m6, [rq+tmpq*2]\n    mova            m9, [rq+tmpq*2+mmsize]\n    mova            m7, [gq+tmpq*2]\n    mova           m10, [gq+tmpq*2+mmsize]\n    mova            m8, [bq+tmpq*2]\n    mova           m11, [bq+tmpq*2+mmsize]\n\n    punpcklwd      m12, m6, m7\n    punpckhwd      m13, m6, m7\n    punpcklwd      m14, m9, m10\n    punpckhwd      m15, m9, m10\n\n    ; release two more registers\n    pmaddwd         m6, [pw_1]\n    pmaddwd         m7, [pw_1]\n    pmaddwd         m9, [pw_1]\n    pmaddwd        m10, [pw_1]\n    paddd           m0, m6\n    paddd           m3, m9\n    paddd           m1, m7\n    paddd           m4, m10\n\n    ; bottom line y, b/rnd portion only\n    punpcklwd       m6, m8,  [pw_16384]\n    punpckhwd       m7, m8,  [pw_16384]\n    punpcklwd       m9, m11, [pw_16384]\n    punpckhwd      m10, m11, [pw_16384]\n\n    pmaddwd        m12, [rsp+0*mmsize]\n    pmaddwd        m13, [rsp+0*mmsize]\n    pmaddwd        m14, [rsp+0*mmsize]\n    pmaddwd        m15, [rsp+0*mmsize]\n    pmaddwd         m6, [rsp+1*mmsize]\n    pmaddwd         m7, [rsp+1*mmsize]\n    pmaddwd         m9, [rsp+1*mmsize]\n    pmaddwd        m10, [rsp+1*mmsize]\n    paddd          m12, m6\n    paddd          m13, m7\n    paddd          m14, m9\n    paddd          m15, m10\n    psrad          m12, %%sh\n    psrad          m13, %%sh\n    psrad          m14, %%sh\n    psrad          m15, %%sh\n    packssdw       m12, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:22", "text": "punpcklwd       m9, m11, [pw_16384]\n    punpckhwd      m10, m11, [pw_16384]\n\n    pmaddwd        m12, [rsp+0*mmsize]\n    pmaddwd        m13, [rsp+0*mmsize]\n    pmaddwd        m14, [rsp+0*mmsize]\n    pmaddwd        m15, [rsp+0*mmsize]\n    pmaddwd         m6, [rsp+1*mmsize]\n    pmaddwd         m7, [rsp+1*mmsize]\n    pmaddwd         m9, [rsp+1*mmsize]\n    pmaddwd        m10, [rsp+1*mmsize]\n    paddd          m12, m6\n    paddd          m13, m7\n    paddd          m14, m9\n    paddd          m15, m10\n    psrad          m12, %%sh\n    psrad          m13, %%sh\n    psrad          m14, %%sh\n    psrad          m15, %%sh\n    packssdw       m12, m13\n    packssdw       m14, m15\n    lea           tmpq, [yq+ysq]\n%if %1 == 8\n    packuswb       m12, m14\n    movu   [tmpq+xq*2], m12\n%else\n    pxor           m15, m15\n    CLIPW          m12, m15, [pw_ %+ %%maxval]\n    CLIPW          m14, m15, [pw_ %+ %%maxval]\n    movu   [tmpq+xq*4], m12\n    movu [tmpq+xq*4+mmsize], m14\n%endif\n\n    ; complete subsampling of r/g/b pixels for u/v\n    pmaddwd         m8, [pw_1]\n    pmaddwd        m11, [pw_1]\n    paddd           m2, m8\n    paddd           m5, m11\n    paddd           m0, [pd_2]\n    paddd           m1, [pd_2]\n    paddd           m2, [pd_2]\n    paddd           m3, [pd_2]\n    paddd           m4, [pd_2]\n    paddd           m5, [pd_2]\n    psrad           m0, 2\n    psrad           m1, 2\n    psrad           m2, 2\n    psrad           m3, 2\n    psrad           m4, 2\n    psrad           m5, 2\n%else ; %3 != 1\n    paddd           m0, [pd_1]\n    paddd           m1, [pd_1]\n    paddd           m2, [pd_1]\n    paddd           m3, [pd_1]\n    paddd           m4, [pd_1]\n    paddd           m5, [pd_1]\n    psrad           m0, 1\n    psrad           m1, 1\n    psrad           m2, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:23", "text": "paddd           m2, [pd_2]\n    paddd           m3, [pd_2]\n    paddd           m4, [pd_2]\n    paddd           m5, [pd_2]\n    psrad           m0, 2\n    psrad           m1, 2\n    psrad           m2, 2\n    psrad           m3, 2\n    psrad           m4, 2\n    psrad           m5, 2\n%else ; %3 != 1\n    paddd           m0, [pd_1]\n    paddd           m1, [pd_1]\n    paddd           m2, [pd_1]\n    paddd           m3, [pd_1]\n    paddd           m4, [pd_1]\n    paddd           m5, [pd_1]\n    psrad           m0, 1\n    psrad           m1, 1\n    psrad           m2, 1\n    psrad           m3, 1\n    psrad           m4, 1\n    psrad           m5, 1\n%endif ; %3 ==/!= 1\n    packssdw        m0, m3\n    packssdw        m1, m4\n    packssdw        m2, m5\n%endif ; %2 == 1\n\n    ; convert u/v pixels\n    SBUTTERFLY   wd, 0, 1, 6\n    punpckhwd       m6, m2, [pw_16384]\n    punpcklwd       m2, [pw_16384]\n\n    pmaddwd         m7, m0, [rsp+2*mmsize]\n    pmaddwd         m8, m1, [rsp+2*mmsize]\n    pmaddwd         m9, m2, [rsp+3*mmsize]\n    pmaddwd        m10, m6, [rsp+3*mmsize]\n    pmaddwd         m0, [rsp+4*mmsize]\n    pmaddwd         m1, [rsp+4*mmsize]\n    pmaddwd         m2, [rsp+5*mmsize]\n    pmaddwd         m6, [rsp+5*mmsize]\n    paddd           m7, m9\n    paddd           m8, m10\n    paddd           m0, m2\n    paddd           m1, m6\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m0, %%sh\n    psrad           m1, %%sh\n    packssdw        m7, m8\n    packssdw        m0, m1\n%if %2 == 1\n%if %1 == 8\n    packuswb        m7, m0\n    movh       [uq+xq], m7\n    movhps     [vq+xq], m7\n%else\n    CLIPW           m7, m15, [pw_ %+ %%maxval]\n    CLIPW           m0, m15, [pw_ %+ %%maxval]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:24", "text": "pmaddwd         m2, [rsp+5*mmsize]\n    pmaddwd         m6, [rsp+5*mmsize]\n    paddd           m7, m9\n    paddd           m8, m10\n    paddd           m0, m2\n    paddd           m1, m6\n    psrad           m7, %%sh\n    psrad           m8, %%sh\n    psrad           m0, %%sh\n    psrad           m1, %%sh\n    packssdw        m7, m8\n    packssdw        m0, m1\n%if %2 == 1\n%if %1 == 8\n    packuswb        m7, m0\n    movh       [uq+xq], m7\n    movhps     [vq+xq], m7\n%else\n    CLIPW           m7, m15, [pw_ %+ %%maxval]\n    CLIPW           m0, m15, [pw_ %+ %%maxval]\n    movu     [uq+xq*2], m7\n    movu     [vq+xq*2], m0\n%endif\n%else ; %2 != 1\n    ; second set of u/v pixels\n    SBUTTERFLY   wd, 3, 4, 6\n    punpckhwd       m6, m5, [pw_16384]\n    punpcklwd       m5, [pw_16384]\n\n    pmaddwd         m8, m3, [rsp+2*mmsize]\n    pmaddwd         m9, m4, [rsp+2*mmsize]\n    pmaddwd        m10, m5, [rsp+3*mmsize]\n    pmaddwd        m11, m6, [rsp+3*mmsize]\n    pmaddwd         m3, [rsp+4*mmsize]\n    pmaddwd         m4, [rsp+4*mmsize]\n    pmaddwd         m5, [rsp+5*mmsize]\n    pmaddwd         m6, [rsp+5*mmsize]\n    paddd           m8, m10\n    paddd           m9, m11\n    paddd           m3, m5\n    paddd           m4, m6\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    psrad           m3, %%sh\n    psrad           m4, %%sh\n    packssdw        m8, m9\n    packssdw        m3, m4\n\n%if %1 == 8\n    packuswb        m7, m8\n    packuswb        m0, m3\n    movu       [uq+xq], m7\n    movu       [vq+xq], m0\n%else\n    CLIPW           m7, m15, [pw_ %+ %%maxval]\n    CLIPW           m0, m15, [pw_ %+ %%maxval]\n    CLIPW           m8, m15, [pw_ %+ %%maxval]\n    CLIPW           m3, m15, [pw_ %+ %%maxval]\n    movu     [uq+xq*2], m7\n    movu [uq+xq*2+mmsize], m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:25", "text": "paddd           m4, m6\n    psrad           m8, %%sh\n    psrad           m9, %%sh\n    psrad           m3, %%sh\n    psrad           m4, %%sh\n    packssdw        m8, m9\n    packssdw        m3, m4\n\n%if %1 == 8\n    packuswb        m7, m8\n    packuswb        m0, m3\n    movu       [uq+xq], m7\n    movu       [vq+xq], m0\n%else\n    CLIPW           m7, m15, [pw_ %+ %%maxval]\n    CLIPW           m0, m15, [pw_ %+ %%maxval]\n    CLIPW           m8, m15, [pw_ %+ %%maxval]\n    CLIPW           m3, m15, [pw_ %+ %%maxval]\n    movu     [uq+xq*2], m7\n    movu [uq+xq*2+mmsize], m8\n    movu     [vq+xq*2], m0\n    movu [vq+xq*2+mmsize], m3\n%endif\n%endif ; %2 ==/!= 1\n\n    add             xq, mmsize >> %2\n    cmp             xd, wwd\n    jl .loop_h\n\n%if %3 == 0\n    add             yq, ysq\n%else ; %3 != 0\n    lea             yq, [yq+ysq*2]\n%endif ; %3 ==/!= 0\n    add             uq, usq\n    add             vq, vsq\n    lea             rq, [rq+rgbsq*(2<<%3)]\n    lea             gq, [gq+rgbsq*(2<<%3)]\n    lea             bq, [bq+rgbsq*(2<<%3)]\n    dec             hd\n    jg .loop_v\n\n    RET\n%endmacro\n\n%macro RGB2YUV_FNS 2\nRGB2YUV_FN  8, %1, %2\nRGB2YUV_FN 10, %1, %2\nRGB2YUV_FN 12, %1, %2\n%endmacro\n\nINIT_XMM sse2\nRGB2YUV_FNS 0, 0\nRGB2YUV_FNS 1, 0\nRGB2YUV_FNS 1, 1\n\n; void ff_multiply3x3_sse2(int16_t *data[3], ptrdiff_t stride,\n;                          int w, int h, const int16_t coeff[3][3][8])\nINIT_XMM sse2\ncglobal multiply3x3, 5, 7, 16, data, stride, ww, h, c", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:26", "text": "jg .loop_v\n\n    RET\n%endmacro\n\n%macro RGB2YUV_FNS 2\nRGB2YUV_FN  8, %1, %2\nRGB2YUV_FN 10, %1, %2\nRGB2YUV_FN 12, %1, %2\n%endmacro\n\nINIT_XMM sse2\nRGB2YUV_FNS 0, 0\nRGB2YUV_FNS 1, 0\nRGB2YUV_FNS 1, 1\n\n; void ff_multiply3x3_sse2(int16_t *data[3], ptrdiff_t stride,\n;                          int w, int h, const int16_t coeff[3][3][8])\nINIT_XMM sse2\ncglobal multiply3x3, 5, 7, 16, data, stride, ww, h, c\n    movh            m0, [cq+  0]\n    movh            m1, [cq+ 32]\n    movh            m2, [cq+ 48]\n    movh            m3, [cq+ 80]\n    movh            m4, [cq+ 96]\n    movh            m5, [cq+128]\n    punpcklwd       m0, [cq+ 16]\n    punpcklwd       m1, [pw_8192]\n    punpcklwd       m2, [cq+ 64]\n    punpcklwd       m3, [pw_8192]\n    punpcklwd       m4, [cq+112]\n    punpcklwd       m5, [pw_8192]\n\n    DEFINE_ARGS data0, stride, ww, h, data1, data2, x\n    shl        strideq, 1\n    mov         data1q, [data0q+gprsize*1]\n    mov         data2q, [data0q+gprsize*2]\n    mov         data0q, [data0q+gprsize*0]\n\n.loop_v:\n    xor             xd, xd\n\n.loop_h:\n    mova            m6, [data0q+xq*2]\n    mova            m7, [data1q+xq*2]\n    mova            m8, [data2q+xq*2]\n    SBUTTERFLY   wd, 6, 7, 9\n    punpckhwd       m9, m8, [pw_1]\n    punpcklwd       m8, [pw_1]\n\n    pmaddwd        m10, m6, m0\n    pmaddwd        m11, m7, m0\n    pmaddwd        m12, m8, m1\n    pmaddwd        m13, m9, m1\n    paddd          m10, m12\n    paddd          m11, m13\n    psrad          m10, 14\n    psrad          m11, 14\n\n    pmaddwd        m12, m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:27", "text": "xor             xd, xd\n\n.loop_h:\n    mova            m6, [data0q+xq*2]\n    mova            m7, [data1q+xq*2]\n    mova            m8, [data2q+xq*2]\n    SBUTTERFLY   wd, 6, 7, 9\n    punpckhwd       m9, m8, [pw_1]\n    punpcklwd       m8, [pw_1]\n\n    pmaddwd        m10, m6, m0\n    pmaddwd        m11, m7, m0\n    pmaddwd        m12, m8, m1\n    pmaddwd        m13, m9, m1\n    paddd          m10, m12\n    paddd          m11, m13\n    psrad          m10, 14\n    psrad          m11, 14\n\n    pmaddwd        m12, m6, m2\n    pmaddwd        m13, m7, m2\n    pmaddwd        m14, m8, m3\n    pmaddwd        m15, m9, m3\n    paddd          m12, m14\n    paddd          m13, m15\n    psrad          m12, 14\n    psrad          m13, 14\n\n    pmaddwd         m6, m4\n    pmaddwd         m7, m4\n    pmaddwd         m8, m5\n    pmaddwd         m9, m5\n    paddd           m6, m8\n    paddd           m7, m9\n    psrad           m6, 14\n    psrad           m7, 14\n\n    packssdw       m10, m11\n    packssdw       m12, m13\n    packssdw        m6, m7\n\n    mova [data0q+xq*2], m10\n    mova [data1q+xq*2], m12\n    mova [data2q+xq*2], m6\n\n    add             xd, mmsize / 2\n    cmp             xd, wwd\n    jl .loop_h\n\n    add         data0q, strideq\n    add         data1q, strideq\n    add         data2q, strideq\n    dec             hd\n    jg .loop_v\n\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 1041, "line_end": 1097}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/colorspacedsp.asm:28", "text": "mova [data0q+xq*2], m10\n    mova [data1q+xq*2], m12\n    mova [data2q+xq*2], m6\n\n    add             xd, mmsize / 2\n    cmp             xd, wwd\n    jl .loop_h\n\n    add         data0q, strideq\n    add         data1q, strideq\n    add         data2q, strideq\n    dec             hd\n    jg .loop_v\n\n    RET\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/colorspacedsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/colorspacedsp.asm", "line_start": 1081, "line_end": 1097}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for ebur128 filter\n;*\n;* Copyright (C) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nstruc Biquad\n    .b0 resq 1\n    .b1 resq 1\n    .b2 resq 1\n    .a1 resq 1\n    .a2 resq 1\nendstruc\n\nstruc DSP\n    .pre resq 5\n    .rlb resq 5\n    .y resq 1\n    .z resq 1\nendstruc\n\nSECTION_RODATA\n\nabs_mask: dq 0x7FFFFFFFFFFFFFFF\n\nSECTION .text\n\n%macro MOVNQ 3 ; num, dst, src\n%if %1 == 1\n    movsd %2, %3\n%else\n    movupd %2, %3\n%endif\n%endmacro\n\n%macro FILTER 11 ; y0, y1, y2, x, b0, b1, b2, a1, a2, samples, num_channels\n    ; Y[0] := b0 * X + Y1\n    ; Y[1] := b1 * X + Y2 - a1 * Y[0]\n    ; Y[2] := b2 * X - a2 * Y[0]\n    movsd %1, [%10 +  8]\n    movsd %3, [%10 + 16]\n%if %11 > 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/f_ebur128.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:2", "text": "abs_mask: dq 0x7FFFFFFFFFFFFFFF\n\nSECTION .text\n\n%macro MOVNQ 3 ; num, dst, src\n%if %1 == 1\n    movsd %2, %3\n%else\n    movupd %2, %3\n%endif\n%endmacro\n\n%macro FILTER 11 ; y0, y1, y2, x, b0, b1, b2, a1, a2, samples, num_channels\n    ; Y[0] := b0 * X + Y1\n    ; Y[1] := b1 * X + Y2 - a1 * Y[0]\n    ; Y[2] := b2 * X - a2 * Y[0]\n    movsd %1, [%10 +  8]\n    movsd %3, [%10 + 16]\n%if %11 > 1\n    movhpd %1, [%10 + 32]\n    movhpd %3, [%10 + 40]\n%endif\n\n    mulpd %2, %5, %4\n    addpd %1, %2\n\n    mulpd %2, %8, %1\n    subpd %3, %2\n    mulpd %2, %6, %4\n    addpd %2, %3\n\n    mulpd %3, %7, %4\n    mulpd %4, %9, %1\n    subpd %3, %4\n\n    movsd [%10 +  0], %1\n    movsd [%10 +  8], %2\n    movsd [%10 + 16], %3\n%if %11 > 1\n    movhpd [%10 + 24], %1\n    movhpd [%10 + 32], %2\n    movhpd [%10 + 40], %3\n%endif\n    add %10, 24 * %11\n%endmacro\n\n%macro filter_channels 1 ; num_channels\n    MOVNQ %1, m3, [samplesq]\n    add samplesq, 8 * %1\n\n    FILTER m0, m1, m2, m3, m4,  m5,  m6,  m7,  m8, r7q, %1\n    FILTER m3, m1, m2, m0, m9, m10, m11, m12, m13, r8q, %1\n\n    ; update sum and cache\n    mulpd m3, m3\n    subpd m0, m3, [cache400q]\n    subpd m1, m3, [cache3000q]\n    MOVNQ %1, [cache400q],  m3\n    MOVNQ %1, [cache3000q], m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/f_ebur128.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:3", "text": "movhpd [%10 + 24], %1\n    movhpd [%10 + 32], %2\n    movhpd [%10 + 40], %3\n%endif\n    add %10, 24 * %11\n%endmacro\n\n%macro filter_channels 1 ; num_channels\n    MOVNQ %1, m3, [samplesq]\n    add samplesq, 8 * %1\n\n    FILTER m0, m1, m2, m3, m4,  m5,  m6,  m7,  m8, r7q, %1\n    FILTER m3, m1, m2, m0, m9, m10, m11, m12, m13, r8q, %1\n\n    ; update sum and cache\n    mulpd m3, m3\n    subpd m0, m3, [cache400q]\n    subpd m1, m3, [cache3000q]\n    MOVNQ %1, [cache400q],  m3\n    MOVNQ %1, [cache3000q], m3\n    add cache400q,  8 * %1\n    add cache3000q, 8 * %1\n    addpd m0, [sum400q]\n    addpd m1, [sum3000q]\n    MOVNQ %1, [sum400q],  m0\n    MOVNQ %1, [sum3000q], m1\n    add sum400q,  8 * %1\n    add sum3000q, 8 * %1\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM avx\ncglobal ebur128_filter_channels, 7, 9, 14, dsp, samples, cache400, cache3000, sum400, sum3000, channels\n    movddup m4,  [dspq + DSP.pre + Biquad.b0]\n    movddup m5,  [dspq + DSP.pre + Biquad.b1]\n    movddup m6,  [dspq + DSP.pre + Biquad.b2]\n    movddup m7,  [dspq + DSP.pre + Biquad.a1]\n    movddup m8,  [dspq + DSP.pre + Biquad.a2]\n\n    movddup m9,  [dspq + DSP.rlb + Biquad.b0]\n    movddup m10, [dspq + DSP.rlb + Biquad.b1]\n    movddup m11, [dspq + DSP.rlb + Biquad.b2]\n    movddup m12, [dspq + DSP.rlb + Biquad.a1]\n    movddup m13, [dspq + DSP.rlb + Biquad.a2]\n\n    mov r7q, [dspq + DSP.y]\n    mov r8q, [dspq + DSP.z]\n\n    ; handle odd channel count\n    test channelsd, 1\n    jnz .tail\n\n.loop:\n    filter_channels 2\n    sub channelsd, 2\n    jg .loop\n    RET\n\n.tail:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/f_ebur128.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:4", "text": "movddup m9,  [dspq + DSP.rlb + Biquad.b0]\n    movddup m10, [dspq + DSP.rlb + Biquad.b1]\n    movddup m11, [dspq + DSP.rlb + Biquad.b2]\n    movddup m12, [dspq + DSP.rlb + Biquad.a1]\n    movddup m13, [dspq + DSP.rlb + Biquad.a2]\n\n    mov r7q, [dspq + DSP.y]\n    mov r8q, [dspq + DSP.z]\n\n    ; handle odd channel count\n    test channelsd, 1\n    jnz .tail\n\n.loop:\n    filter_channels 2\n    sub channelsd, 2\n    jg .loop\n    RET\n\n.tail:\n    filter_channels 1\n    dec channelsd\n    test channelsd, channelsd\n    jnz .loop\n    RET\n\ncglobal ebur128_find_peak_2ch, 4, 5, 3, ch_peaks, channels, samples, nb_samples\n    movddup m2, [abs_mask]\n    movupd m0, [ch_peaksq]\n.loop:\n    movupd m1, [samplesq]\n    add samplesq, mmsize\n    pand m1, m2\n    maxpd m0, m1\n    dec nb_samplesd\n    jg .loop\n    movupd [ch_peaksq], m0\n    shufpd m1, m0, m0, 1\n    maxpd m0, m1\n    movq rax, m0\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/f_ebur128.asm", "line_start": 121, "line_end": 163}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:4", "text": "movddup m9,  [dspq + DSP.rlb + Biquad.b0]\n    movddup m10, [dspq + DSP.rlb + Biquad.b1]\n    movddup m11, [dspq + DSP.rlb + Biquad.b2]\n    movddup m12, [dspq + DSP.rlb + Biquad.a1]\n    movddup m13, [dspq + DSP.rlb + Biquad.a2]\n\n    mov r7q, [dspq + DSP.y]\n    mov r8q, [dspq + DSP.z]\n\n    ; handle odd channel count\n    test channelsd, 1\n    jnz .tail\n\n.loop:\n    filter_channels 2\n    sub channelsd, 2\n    jg .loop\n    RET\n\n.tail:\n    filter_channels 1\n    dec channelsd\n    test channelsd, channelsd\n    jnz .loop\n    RET\n\ncglobal ebur128_find_peak_2ch, 4, 5, 3, ch_peaks, channels, samples, nb_samples\n    vpbroadcastq m2, [abs_mask]\n    movupd m0, [ch_peaksq]\n.loop:\n    movupd m1, [samplesq]\n    add samplesq, mmsize\n    pand m1, m2\n    maxpd m0, m1\n    dec nb_samplesd\n    jg .loop\n    movupd [ch_peaksq], m0\n    shufpd m1, m0, m0, 1\n    maxpd m0, m1\n    movq rax, m0\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "daef348574898f3126ae2b1b70e9a09f773bcca6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/daef348574898f3126ae2b1b70e9a09f773bcca6/libavfilter/x86/f_ebur128.asm", "line_start": 121, "line_end": 163}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for ebur128 filter\n;*\n;* Copyright (C) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nstruc Biquad\n    .b0 resq 1\n    .b1 resq 1\n    .b2 resq 1\n    .a1 resq 1\n    .a2 resq 1\nendstruc\n\nstruc DSP\n    .pre resq 5\n    .rlb resq 5\n    .y resq 1\n    .z resq 1\nendstruc\n\nSECTION .text\n\n%macro MOVNQ 3 ; num, dst, src\n%if %1 == 1\n    movsd %2, %3\n%else\n    movupd %2, %3\n%endif\n%endmacro\n\n%macro FILTER 11 ; y0, y1, y2, x, b0, b1, b2, a1, a2, samples, num_channels\n    ; Y[0] := b0 * X + Y1\n    ; Y[1] := b1 * X + Y2 - a1 * Y[0]\n    ; Y[2] := b2 * X - a2 * Y[0]\n    movsd %1, [%10 +  8]\n    movsd %3, [%10 + 16]\n%if %11 > 1\n    movhpd %1, [%10 + 32]\n    movhpd %3, [%10 + 40]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "53e03ec8afa8cc68bb14993b75ffc48f146c6b62", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/53e03ec8afa8cc68bb14993b75ffc48f146c6b62/libavfilter/x86/f_ebur128.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:2", "text": "%macro MOVNQ 3 ; num, dst, src\n%if %1 == 1\n    movsd %2, %3\n%else\n    movupd %2, %3\n%endif\n%endmacro\n\n%macro FILTER 11 ; y0, y1, y2, x, b0, b1, b2, a1, a2, samples, num_channels\n    ; Y[0] := b0 * X + Y1\n    ; Y[1] := b1 * X + Y2 - a1 * Y[0]\n    ; Y[2] := b2 * X - a2 * Y[0]\n    movsd %1, [%10 +  8]\n    movsd %3, [%10 + 16]\n%if %11 > 1\n    movhpd %1, [%10 + 32]\n    movhpd %3, [%10 + 40]\n%endif\n\n    mulpd %2, %5, %4\n    addpd %1, %2\n\n    mulpd %2, %8, %1\n    subpd %3, %2\n    mulpd %2, %6, %4\n    addpd %2, %3\n\n    mulpd %3, %7, %4\n    mulpd %4, %9, %1\n    subpd %3, %4\n\n    movsd [%10 +  0], %1\n    movsd [%10 +  8], %2\n    movsd [%10 + 16], %3\n%if %11 > 1\n    movhpd [%10 + 24], %1\n    movhpd [%10 + 32], %2\n    movhpd [%10 + 40], %3\n%endif\n    add %10, 24 * %11\n%endmacro\n\n%macro filter_channels 1 ; num_channels\n    MOVNQ %1, m3, [samplesq]\n    add samplesq, 8 * %1\n\n    FILTER m0, m1, m2, m3, m4,  m5,  m6,  m7,  m8, r7q, %1\n    FILTER m3, m1, m2, m0, m9, m10, m11, m12, m13, r8q, %1\n\n    ; update sum and cache\n    mulpd m3, m3\n    subpd m0, m3, [cache400q]\n    subpd m1, m3, [cache3000q]\n    MOVNQ %1, [cache400q],  m3\n    MOVNQ %1, [cache3000q], m3\n    add cache400q,  8 * %1\n    add cache3000q, 8 * %1\n    addpd m0, [sum400q]\n    addpd m1, [sum3000q]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "53e03ec8afa8cc68bb14993b75ffc48f146c6b62", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/53e03ec8afa8cc68bb14993b75ffc48f146c6b62/libavfilter/x86/f_ebur128.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:3", "text": "add %10, 24 * %11\n%endmacro\n\n%macro filter_channels 1 ; num_channels\n    MOVNQ %1, m3, [samplesq]\n    add samplesq, 8 * %1\n\n    FILTER m0, m1, m2, m3, m4,  m5,  m6,  m7,  m8, r7q, %1\n    FILTER m3, m1, m2, m0, m9, m10, m11, m12, m13, r8q, %1\n\n    ; update sum and cache\n    mulpd m3, m3\n    subpd m0, m3, [cache400q]\n    subpd m1, m3, [cache3000q]\n    MOVNQ %1, [cache400q],  m3\n    MOVNQ %1, [cache3000q], m3\n    add cache400q,  8 * %1\n    add cache3000q, 8 * %1\n    addpd m0, [sum400q]\n    addpd m1, [sum3000q]\n    MOVNQ %1, [sum400q],  m0\n    MOVNQ %1, [sum3000q], m1\n    add sum400q,  8 * %1\n    add sum3000q, 8 * %1\n%endmacro\n\n%if ARCH_X86_64\n\nINIT_XMM avx\ncglobal ebur128_filter_channels, 7, 9, 14, dsp, samples, cache400, cache3000, sum400, sum3000, channels\n    movddup m4,  [dspq + DSP.pre + Biquad.b0]\n    movddup m5,  [dspq + DSP.pre + Biquad.b1]\n    movddup m6,  [dspq + DSP.pre + Biquad.b2]\n    movddup m7,  [dspq + DSP.pre + Biquad.a1]\n    movddup m8,  [dspq + DSP.pre + Biquad.a2]\n\n    movddup m9,  [dspq + DSP.rlb + Biquad.b0]\n    movddup m10, [dspq + DSP.rlb + Biquad.b1]\n    movddup m11, [dspq + DSP.rlb + Biquad.b2]\n    movddup m12, [dspq + DSP.rlb + Biquad.a1]\n    movddup m13, [dspq + DSP.rlb + Biquad.a2]\n\n    mov r7q, [dspq + DSP.y]\n    mov r8q, [dspq + DSP.z]\n\n    ; handle odd channel count\n    test channelsd, 1\n    jnz .tail\n\n.loop:\n    filter_channels 2\n    sub channelsd, 2\n    jg .loop\n    RET\n\n.tail:\n    filter_channels 1\n    dec channelsd\n    test channelsd, channelsd\n    jnz .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "53e03ec8afa8cc68bb14993b75ffc48f146c6b62", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/53e03ec8afa8cc68bb14993b75ffc48f146c6b62/libavfilter/x86/f_ebur128.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/f_ebur128.asm:4", "text": "movddup m13, [dspq + DSP.rlb + Biquad.a2]\n\n    mov r7q, [dspq + DSP.y]\n    mov r8q, [dspq + DSP.z]\n\n    ; handle odd channel count\n    test channelsd, 1\n    jnz .tail\n\n.loop:\n    filter_channels 2\n    sub channelsd, 2\n    jg .loop\n    RET\n\n.tail:\n    filter_channels 1\n    dec channelsd\n    test channelsd, channelsd\n    jnz .loop\n    RET\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/f_ebur128.asm", "license": "LGPL-2.1", "commit": "53e03ec8afa8cc68bb14993b75ffc48f146c6b62", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/53e03ec8afa8cc68bb14993b75ffc48f146c6b62/libavfilter/x86/f_ebur128.asm", "line_start": 121, "line_end": 143}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/scene_sad.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for scene SAD\n;*\n;* Copyright (C) 2018 Marton Balint\n;*\n;* Based on vf_blend.asm, Copyright (C) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1: times 32 dw 1\n\nSECTION .text\n\n\n%macro SAD_INIT 1 ; depth\ncglobal scene_sad%1, 6, 7, 3, src1, stride1, src2, stride2, width, end, x\n    add     src1q, widthq\n    add     src2q, widthq\n    neg    widthq\n    pxor       m1, m1\n%endmacro\n\n%macro PSADQ 4 ; depth, dst, [src2], tmp\n%if %1 == 8\n        psadbw %2, %3\n%else\n        psubw     %2, %3\n        pabsw     %2, %2\n        pmaddwd   %2, [pw_1]\n    %if mmsize == 64\n        vextracti32x8 ymm%4, %2, 1\n        paddd     ymm%2, ymm%4\n        pmovzxdq  %2, ymm%2\n    %else\n        vextracti128 xmm%4, %2, 1\n        paddd     xmm%2, xmm%4\n        pmovzxdq  %2, xmm%2\n    %endif\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/scene_sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/scene_sad.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/scene_sad.asm:2", "text": "%macro PSADQ 4 ; depth, dst, [src2], tmp\n%if %1 == 8\n        psadbw %2, %3\n%else\n        psubw     %2, %3\n        pabsw     %2, %2\n        pmaddwd   %2, [pw_1]\n    %if mmsize == 64\n        vextracti32x8 ymm%4, %2, 1\n        paddd     ymm%2, ymm%4\n        pmovzxdq  %2, ymm%2\n    %else\n        vextracti128 xmm%4, %2, 1\n        paddd     xmm%2, xmm%4\n        pmovzxdq  %2, xmm%2\n    %endif\n%endif\n%endmacro\n\n%macro SAD_LOOP 1 ; depth\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [src1q + xq]\n        PSADQ %1,       m0, [src2q + xq], m2\n        paddq           m1, m0\n        add             xq, mmsize\n    jl .loop\n    add     src1q, stride1q\n    add     src2q, stride2q\n    sub      endd, 1\n    jg .nextrow\n\n    mov         r0q, r6mp\n    movu      [r0q], m1      ; sum\nRET\n%endmacro\n\n\n%macro SAD_FRAMES 1 ; depth\n    SAD_INIT %1\n    SAD_LOOP %1\n%endmacro\n\n\nINIT_XMM sse2\nSAD_FRAMES 8\n\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\nSAD_FRAMES 8\nSAD_FRAMES 16\n\n%endif\n\n%if HAVE_AVX512_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/scene_sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/scene_sad.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/scene_sad.asm:3", "text": "%macro SAD_FRAMES 1 ; depth\n    SAD_INIT %1\n    SAD_LOOP %1\n%endmacro\n\n\nINIT_XMM sse2\nSAD_FRAMES 8\n\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\nSAD_FRAMES 8\nSAD_FRAMES 16\n\n%endif\n\n%if HAVE_AVX512_EXTERNAL\n\nINIT_ZMM avx512\nSAD_FRAMES 8\nSAD_FRAMES 16\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/scene_sad.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/scene_sad.asm", "line_start": 81, "line_end": 105}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/scene_sad.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for scene SAD\n;*\n;* Copyright (C) 2018 Marton Balint\n;*\n;* Based on vf_blend.asm, Copyright (C) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n\n%macro SAD_INIT 0\ncglobal scene_sad, 6, 7, 2, src1, stride1, src2, stride2, width, end, x\n    add     src1q, widthq\n    add     src2q, widthq\n    neg    widthq\n    pxor       m1, m1\n%endmacro\n\n\n%macro SAD_LOOP 0\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [src1q + xq]\n        psadbw          m0, [src2q + xq]\n        paddq           m1, m0\n        add             xq, mmsize\n    jl .loop\n    add     src1q, stride1q\n    add     src2q, stride2q\n    sub      endd, 1\n    jg .nextrow\n\n    mov         r0q, r6mp\n    movu      [r0q], m1      ; sum\nRET\n%endmacro\n\n\n%macro SAD_FRAMES 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/scene_sad.asm", "license": "LGPL-2.1", "commit": "91f2d146d418d536e14b0d0c2d32f81cb95f6b7f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91f2d146d418d536e14b0d0c2d32f81cb95f6b7f/libavfilter/x86/scene_sad.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/scene_sad.asm:2", "text": "mov        xq, widthq\n\n    .loop:\n        movu            m0, [src1q + xq]\n        psadbw          m0, [src2q + xq]\n        paddq           m1, m0\n        add             xq, mmsize\n    jl .loop\n    add     src1q, stride1q\n    add     src2q, stride2q\n    sub      endd, 1\n    jg .nextrow\n\n    mov         r0q, r6mp\n    movu      [r0q], m1      ; sum\nRET\n%endmacro\n\n\n%macro SAD_FRAMES 0\n    SAD_INIT\n    SAD_LOOP\n%endmacro\n\n\nINIT_XMM sse2\nSAD_FRAMES\n\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\nSAD_FRAMES\n\n%endif\n\n%if HAVE_AVX512_EXTERNAL\n\nINIT_ZMM avx512\nSAD_FRAMES\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/scene_sad.asm", "license": "LGPL-2.1", "commit": "91f2d146d418d536e14b0d0c2d32f81cb95f6b7f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/91f2d146d418d536e14b0d0c2d32f81cb95f6b7f/libavfilter/x86/scene_sad.asm", "line_start": 41, "line_end": 81}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/scene_sad.asm:2", "text": "mov        xq, widthq\n\n    .loop:\n        movu            m0, [src1q + xq]\n        psadbw          m0, [src2q + xq]\n        paddq           m1, m0\n        add             xq, mmsize\n    jl .loop\n    add     src1q, stride1q\n    add     src2q, stride2q\n    sub      endd, 1\n    jg .nextrow\n\n    mov         r0q, r6mp\n    movu      [r0q], m1      ; sum\nRET\n%endmacro\n\n\n%macro SAD_FRAMES 0\n    SAD_INIT\n    SAD_LOOP\n%endmacro\n\n\nINIT_XMM sse2\nSAD_FRAMES\n\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\nSAD_FRAMES\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/scene_sad.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/scene_sad.asm", "line_start": 41, "line_end": 74}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for atadenoise filter\n;*\n;* Copyright (C) 2019 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA\npw_one:  times 8 dw 1\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_filter_row(const uint8_t *src, uint8_t *dst,\n;                    const uint8_t **srcf,\n;                    int w, int mid, int size,\n;                    int thra, int thrb)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8, 6,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    pcmpeqw        m10, m10\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:2", "text": "movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    pcmpeqw        m10, m10\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        mova       m12, m10\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n\n        .loop0:\n            inc              iq\n            dec              jq\n\n            mov          srcfxq, [srcfq + jq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw           m11, m1\n            pcmpgtw          m1, m4\n            mova             m6, m11\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw            m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:3", "text": "mova             m6, m11\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw            m3, m1\n            pcmpgtw          m1, m4\n            mova             m6, m3\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .finish\n\n            cmp              iq, sizeq\n            jl .loop0\n\n    .finish:\n        mova                 m9, m8\n        psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7\n\n        movd        [dstq + xq], m7\n\n        punpckhwd            m1, m2\n        punpckhwd            m6, m2\n        cvtdq2ps             m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:4", "text": "psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7\n\n        movd        [dstq + xq], m7\n\n        punpckhwd            m1, m2\n        punpckhwd            m6, m2\n        cvtdq2ps             m1, m1\n        cvtdq2ps             m6, m6\n        divps                m1, m6\n        cvttps2dq            m1, m1\n        packssdw             m1, m1\n        packuswb             m1, m1\n\n        movd    [dstq + xq + 4], m1\n\n        add                  xq, mmsize/2\n    jl .loop\n    RET\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8_serial, 6,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    pcmpeqw        m10, m10\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n        mova       m12, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:5", "text": "dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    pcmpeqw        m10, m10\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n        mova       m12, m10\n\n        .loop0:\n            dec              jq\n\n            mov          srcfxq, [srcfq + jq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw           m11, m1\n            pcmpgtw          m1, m4\n            mova             m6, m11\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .end_loop0\n\n            cmp              jq, 0\n            jg .loop0\n\n        .end_loop0:\n            mova       m12, m10\n\n        .loop1:\n            inc              iq\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:6", "text": "mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .end_loop0\n\n            cmp              jq, 0\n            jg .loop0\n\n        .end_loop0:\n            mova       m12, m10\n\n        .loop1:\n            inc              iq\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw            m3, m1\n            pcmpgtw          m1, m4\n            mova             m6, m3\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .finish\n\n            cmp              iq, sizeq\n            jl .loop1\n\n    .finish:\n        mova                 m9, m8\n        psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:7", "text": "cmp              iq, sizeq\n            jl .loop1\n\n    .finish:\n        mova                 m9, m8\n        psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7\n\n        movd        [dstq + xq], m7\n\n        punpckhwd            m1, m2\n        punpckhwd            m6, m2\n        cvtdq2ps             m1, m1\n        cvtdq2ps             m6, m6\n        divps                m1, m6\n        cvttps2dq            m1, m1\n        packssdw             m1, m1\n        packuswb             m1, m1\n\n        movd    [dstq + xq + 4], m1\n\n        add                  xq, mmsize/2\n    jl .loop\n    RET\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_atadenoise.asm", "line_start": 241, "line_end": 278}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for atadenoise filter\n;*\n;* Copyright (C) 2019 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA\npw_one:  times 8 dw 1\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_filter_row(const uint8_t *src, uint8_t *dst,\n;                    const uint8_t **srcf,\n;                    int w, int mid, int size,\n;                    int thra, int thrb)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8, 8,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    pcmpeqw        m10, m10\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "9fdd7e23e3ae7be4453e296fea27ddf6da69d805", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9fdd7e23e3ae7be4453e296fea27ddf6da69d805/libavfilter/x86/vf_atadenoise.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:4", "text": "psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7\n\n        movd        [dstq + xq], m7\n\n        punpckhwd            m1, m2\n        punpckhwd            m6, m2\n        cvtdq2ps             m1, m1\n        cvtdq2ps             m6, m6\n        divps                m1, m6\n        cvttps2dq            m1, m1\n        packssdw             m1, m1\n        packuswb             m1, m1\n\n        movd    [dstq + xq + 4], m1\n\n        add                  xq, mmsize/2\n    jl .loop\n    RET\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8_serial, 8,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    pcmpeqw        m10, m10\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n        mova       m12, m10", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "9fdd7e23e3ae7be4453e296fea27ddf6da69d805", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9fdd7e23e3ae7be4453e296fea27ddf6da69d805/libavfilter/x86/vf_atadenoise.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for atadenoise filter\n;*\n;* Copyright (C) 2019 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n\nSECTION_RODATA\npw_one:  times 8 dw 1\npw_ones: times 8 dw 65535\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_filter_row(const uint8_t *src, uint8_t *dst,\n;                    const uint8_t **srcf,\n;                    int w, int mid, int size,\n;                    int thra, int thrb)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8, 8,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    mova           m10, [pw_ones]\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719/libavfilter/x86/vf_atadenoise.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:2", "text": "cglobal atadenoise_filter_row8, 8,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    mova           m10, [pw_ones]\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n        mova       m12, [pw_ones]\n\n        .loop0:\n            inc              iq\n            dec              jq\n\n            mov          srcfxq, [srcfq + jq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw           m11, m1\n            pcmpgtw          m1, m4\n            mova             m6, m11\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719/libavfilter/x86/vf_atadenoise.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:3", "text": "pcmpgtw          m1, m4\n            mova             m6, m11\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw            m3, m1\n            pcmpgtw          m1, m4\n            mova             m6, m3\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .finish\n\n            cmp              iq, sizeq\n            jl .loop0\n\n    .finish:\n        mova                 m9, m8\n        psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7\n\n        movd        [dstq + xq], m7\n\n        punpckhwd            m1, m2\n        punpckhwd            m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719/libavfilter/x86/vf_atadenoise.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:4", "text": "mova                 m9, m8\n        psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7\n\n        movd        [dstq + xq], m7\n\n        punpckhwd            m1, m2\n        punpckhwd            m6, m2\n        cvtdq2ps             m1, m1\n        cvtdq2ps             m6, m6\n        divps                m1, m6\n        cvttps2dq            m1, m1\n        packssdw             m1, m1\n        packuswb             m1, m1\n\n        movd    [dstq + xq + 4], m1\n\n        add                  xq, mmsize/2\n    jl .loop\n    RET\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8_serial, 8,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    mova           m10, [pw_ones]\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n        mova       m12, [pw_ones]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719/libavfilter/x86/vf_atadenoise.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:5", "text": "mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    mova           m10, [pw_ones]\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3\n        pxor       m11, m11\n        movu        m0, [srcq + xq]\n        punpcklbw   m0, m2\n        mova        m7, m0\n        mova        m8, [pw_one]\n        mova       m12, [pw_ones]\n\n        .loop0:\n            dec              jq\n\n            mov          srcfxq, [srcfq + jq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw           m11, m1\n            pcmpgtw          m1, m4\n            mova             m6, m11\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .end_loop0\n\n            cmp              jq, 0\n            jg .loop0\n\n        .end_loop0:\n            mova       m12, [pw_ones]\n\n        .loop1:\n            inc              iq\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719/libavfilter/x86/vf_atadenoise.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:6", "text": "paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .end_loop0\n\n            cmp              jq, 0\n            jg .loop0\n\n        .end_loop0:\n            mova       m12, [pw_ones]\n\n        .loop1:\n            inc              iq\n\n            mov          srcfxq, [srcfq + iq * 8]\n            add          srcfxq, wq\n\n            movu             m1, [srcfxq + xq]\n            punpcklbw        m1, m2\n            mova             m9, m1\n            psubw            m1, m0\n            pabsw            m1, m1\n            paddw            m3, m1\n            pcmpgtw          m1, m4\n            mova             m6, m3\n            pcmpgtw          m6, m5\n            por              m6, m1\n            pxor             m6, m10\n            pand            m12, m6\n            pand             m9, m12\n            paddw            m7, m9\n            mova             m6, m12\n            psrlw            m6, 15\n            paddw            m8, m6\n\n            ptest           m12, m12\n            jz .finish\n\n            cmp              iq, sizeq\n            jl .loop1\n\n    .finish:\n        mova                 m9, m8\n        psrlw                m9, 1\n        paddw                m7, m9\n\n        mova                 m1, m7\n        mova                 m6, m8\n\n        punpcklwd            m7, m2\n        punpcklwd            m8, m2\n        cvtdq2ps             m7, m7\n        cvtdq2ps             m8, m8\n        divps                m7, m8\n        cvttps2dq            m7, m7\n        packssdw             m7, m7\n        packuswb             m7, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2b1d8ba3ecb8bb302db2c8dadf4350d800ddf719/libavfilter/x86/vf_atadenoise.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_atadenoise.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for atadenoise filter\n;*\n;* Copyright (C) 2019 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%if ARCH_X86_64\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npw_one:  times 8 dw 1\npw_ones: times 8 dw 65535\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_filter_row(const uint8_t *src, uint8_t *dst,\n;                    const uint8_t **srcf,\n;                    int w, int mid, int size,\n;                    int thra, int thrb)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse4\ncglobal atadenoise_filter_row8, 8,10,13, src, dst, srcf, w, mid, size, i, j, srcfx, x\n    movsxdifnidn    wq, wd\n    movsxdifnidn  midq, midd\n    movsxdifnidn sizeq, sized\n    add           srcq, wq\n    add           dstq, wq\n    mov             xq, wq\n    dec          sizeq\n    neg             xq\n    movd            m4, r6m\n    SPLATW          m4, m4\n    movd            m5, r7m\n    SPLATW          m5, m5\n    pxor            m2, m2\n    mova           m10, [pw_ones]\n\n    .loop:\n        mov         iq, midq\n        mov         jq, midq\n        pxor        m3, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_atadenoise.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_atadenoise.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blackdetect.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for blackdetect filter\n;*\n;* Copyright (C) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro count_pixels_fn 1 ; depth\ncglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold\n        movd xm1, thresholdd\n    %if %1 == 8\n        vpbroadcastb m1, xm1\n    %else\n        vpbroadcastw m1, xm1\n        shl widthq, 1\n    %endif\n        add srcq, widthq\n        neg widthq\n        xor r4d, r4d\n        mov r5, widthq\n        jmp .start\n.loop:\n        popcnt r6d, r6d\n        add r4d, r6d\n.start:\n        movu m0, [srcq + r5]\n    %if %1 == 8\n        pmaxub m0, m1\n        pcmpeqb m0, m1\n    %else\n        pmaxuw m0, m1\n        pcmpeqw m0, m1\n    %endif\n        pmovmskb r6d, m0\n        add r5, mmsize\n        jl .loop\n        ; handle tail by shifting away unused high elements\n        shlx r6d, r6d, r5d\n        popcnt r6d, r6d\n        add r4d, r6d\n        add srcq, strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blackdetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blackdetect.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blackdetect.asm:2", "text": ".loop:\n        popcnt r6d, r6d\n        add r4d, r6d\n.start:\n        movu m0, [srcq + r5]\n    %if %1 == 8\n        pmaxub m0, m1\n        pcmpeqb m0, m1\n    %else\n        pmaxuw m0, m1\n        pcmpeqw m0, m1\n    %endif\n        pmovmskb r6d, m0\n        add r5, mmsize\n        jl .loop\n        ; handle tail by shifting away unused high elements\n        shlx r6d, r6d, r5d\n        popcnt r6d, r6d\n        add r4d, r6d\n        add srcq, strideq\n        mov r5, widthq\n        dec heightq\n        jg .start\n    %if %1 > 8\n        shr r4d, 1\n    %endif\n        mov eax, r4d\n        RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ncount_pixels_fn 8\ncount_pixels_fn 16\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blackdetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blackdetect.asm", "line_start": 41, "line_end": 75}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blackdetect.asm:2", "text": ".loop:\n        popcnt r6d, r6d\n        add r4d, r6d\n.start:\n        movu m0, [srcq + r5]\n    %if %1 == 8\n        pmaxub m0, m1\n        pcmpeqb m0, m1\n    %else\n        pmaxuw m0, m1\n        pcmpeqw m0, m1\n    %endif\n        pmovmskb r6d, m0\n        add r5, mmsize\n        jl .loop\n        ; handle tail by shifting away unused high elements\n        shlx r6d, r6d, r5d\n        popcnt r6d, r6d\n        add r4d, r6d\n        add srcq, strideq\n        mov r5, widthq\n        dec heightq\n        jg .start\n    %if %1 > 8\n        shr r4d, 1\n    %endif\n        mov eax, r4d\n        RET\n%endmacro\n\nINIT_YMM avx2\ncount_pixels_fn 8\ncount_pixels_fn 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blackdetect.asm", "license": "LGPL-2.1", "commit": "f263192f0e9739c5c4bb901a23009e64bcbcdac6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f263192f0e9739c5c4bb901a23009e64bcbcdac6/libavfilter/x86/vf_blackdetect.asm", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blackdetect.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for blackdetect filter\n;*\n;* Copyright (C) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro count_pixels_fn 1 ; depth\ncglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold\n        movd xm1, thresholdd\n    %if %1 == 8\n        vpbroadcastb m1, xm1\n    %else\n        vpbroadcastw m1, xm1\n        shl widthq, 1\n    %endif\n        add srcq, widthq\n        neg widthq\n        xor r4, r4\n        mov r5, widthq\n        jmp .start\n.loop:\n        popcnt r6d, r6d\n        add r4, r6\n.start:\n        movu m0, [srcq + r5]\n    %if %1 == 8\n        pmaxub m0, m1\n        pcmpeqb m0, m1\n    %else\n        pmaxuw m0, m1\n        pcmpeqw m0, m1\n    %endif\n        pmovmskb r6d, m0\n        add r5, mmsize\n        jl .loop\n        ; handle tail by shifting away unused high elements\n        shlx r6d, r6d, r5d\n        popcnt r6d, r6d\n        add r4, r6\n        add srcq, strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blackdetect.asm", "license": "LGPL-2.1", "commit": "75cd42c48a1d6f997af76a90298ee1c5d5780030", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/75cd42c48a1d6f997af76a90298ee1c5d5780030/libavfilter/x86/vf_blackdetect.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blackdetect.asm:2", "text": ".loop:\n        popcnt r6d, r6d\n        add r4, r6\n.start:\n        movu m0, [srcq + r5]\n    %if %1 == 8\n        pmaxub m0, m1\n        pcmpeqb m0, m1\n    %else\n        pmaxuw m0, m1\n        pcmpeqw m0, m1\n    %endif\n        pmovmskb r6d, m0\n        add r5, mmsize\n        jl .loop\n        ; handle tail by shifting away unused high elements\n        shlx r6d, r6d, r5d\n        popcnt r6d, r6d\n        add r4, r6\n        add srcq, strideq\n        mov r5, widthq\n        dec heightq\n        jg .start\n    %if %1 > 8\n        shr r4, 1\n    %endif\n        mov rax, r4\n        RET\n%endmacro\n\nINIT_YMM avx2\ncount_pixels_fn 8\ncount_pixels_fn 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blackdetect.asm", "license": "LGPL-2.1", "commit": "75cd42c48a1d6f997af76a90298ee1c5d5780030", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/75cd42c48a1d6f997af76a90298ee1c5d5780030/libavfilter/x86/vf_blackdetect.asm", "line_start": 41, "line_end": 73}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for blend filter\n;*\n;* Copyright (C) 2015 Paul B Mahol\n;* Copyright (C) 2018 Henrik Gramner\n;* Copyright (C) 2018 Jokyo Images\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nps_255: times 4 dd 255.0\npd_32768 : times 4 dd 32768\npd_65535 : times 4 dd 65535\npw_1:   times 8 dw 1\npw_128: times 8 dw 128\npw_255: times 8 dw 255\npb_127: times 16 db 127\npb_128: times 16 db 128\npb_255: times 16 db 255\n\nSECTION .text\n\n%macro BLEND_INIT 2-3 0\n%if ARCH_X86_64\ncglobal blend_%1, 6, 9, %2, top, top_linesize, bottom, bottom_linesize, dst, dst_linesize, width, end, x\n    mov    widthd, dword widthm\n    %if %3; is 16 bit\n        add    widthq, widthq ; doesn't compile on x86_32\n    %endif\n%else\ncglobal blend_%1, 5, 7, %2, top, top_linesize, bottom, bottom_linesize, dst, end, x\n%define dst_linesizeq r5mp\n%define widthq r6mp\n%endif\n    mov      endd, dword r7m\n    add      topq, widthq\n    add   bottomq, widthq\n    add      dstq, widthq\n    neg    widthq\n%endmacro\n\n%macro BLEND_END 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:2", "text": "%macro BLEND_INIT 2-3 0\n%if ARCH_X86_64\ncglobal blend_%1, 6, 9, %2, top, top_linesize, bottom, bottom_linesize, dst, dst_linesize, width, end, x\n    mov    widthd, dword widthm\n    %if %3; is 16 bit\n        add    widthq, widthq ; doesn't compile on x86_32\n    %endif\n%else\ncglobal blend_%1, 5, 7, %2, top, top_linesize, bottom, bottom_linesize, dst, end, x\n%define dst_linesizeq r5mp\n%define widthq r6mp\n%endif\n    mov      endd, dword r7m\n    add      topq, widthq\n    add   bottomq, widthq\n    add      dstq, widthq\n    neg    widthq\n%endmacro\n\n%macro BLEND_END 0\n    add          topq, top_linesizeq\n    add       bottomq, bottom_linesizeq\n    add          dstq, dst_linesizeq\n    sub          endd, 1\n    jg .nextrow\nRET\n%endmacro\n\n%macro BLEND_SIMPLE 2-3 0\nBLEND_INIT %1, 2, %3\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        p%2             m0, m1\n        movu   [dstq + xq], m0\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n; %1 name , %2 src (b or w), %3 inter (w or d), %4 (1 if 16bit, not set if 8 bit)\n%macro GRAINEXTRACT 3-4 0\nBLEND_INIT %1, 6, %4\n    pxor           m4, m4\n%if %4 ; 16 bit\n    VBROADCASTI128 m5, [pd_32768]\n%else\n    VBROADCASTI128 m5, [pw_128]\n%endif\n.nextrow:\n    mov        xq, widthq\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]\n\n        punpckl%2%3      m0, m1, m4\n        punpckh%2%3      m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:3", "text": "BLEND_END\n%endmacro\n\n; %1 name , %2 src (b or w), %3 inter (w or d), %4 (1 if 16bit, not set if 8 bit)\n%macro GRAINEXTRACT 3-4 0\nBLEND_INIT %1, 6, %4\n    pxor           m4, m4\n%if %4 ; 16 bit\n    VBROADCASTI128 m5, [pd_32768]\n%else\n    VBROADCASTI128 m5, [pw_128]\n%endif\n.nextrow:\n    mov        xq, widthq\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]\n\n        punpckl%2%3      m0, m1, m4\n        punpckh%2%3      m1, m4\n        punpckl%2%3      m2, m3, m4\n        punpckh%2%3      m3, m4\n\n        padd%3          m0, m5\n        padd%3          m1, m5\n        psub%3          m0, m2\n        psub%3          m1, m3\n\n        packus%3%2       m0, m1\n\n        movu  [dstq + xq], m0\n        add            xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro MULTIPLY 3 ; a, b, pw_1\n    pmullw          %1, %2               ; xxxxxxxx  a * b\n    paddw           %1, %3\n    psrlw           %2, %1, 8\n    paddw           %1, %2\n    psrlw           %1, 8                ; 00xx00xx  a * b / 255\n%endmacro\n\n%macro SCREEN 4   ; a, b, pw_1, pw_255\n    pxor            %1, %4               ; 00xx00xx  255 - a\n    pxor            %2, %4\n    MULTIPLY        %1, %2, %3\n    pxor            %1, %4               ; 00xx00xx  255 - x / 255\n%endmacro\n\n%macro BLEND_MULTIPLY 0\nBLEND_INIT multiply, 6\n    pxor       m4, m4\n    VBROADCASTI128       m5, [pw_1]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu           m1, [topq + xq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:4", "text": "paddw           %1, %2\n    psrlw           %1, 8                ; 00xx00xx  a * b / 255\n%endmacro\n\n%macro SCREEN 4   ; a, b, pw_1, pw_255\n    pxor            %1, %4               ; 00xx00xx  255 - a\n    pxor            %2, %4\n    MULTIPLY        %1, %2, %3\n    pxor            %1, %4               ; 00xx00xx  255 - x / 255\n%endmacro\n\n%macro BLEND_MULTIPLY 0\nBLEND_INIT multiply, 6\n    pxor       m4, m4\n    VBROADCASTI128       m5, [pw_1]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]\n        punpcklbw      m0, m1, m4\n        punpckhbw      m1, m4\n        punpcklbw      m2, m3, m4\n        punpckhbw      m3, m4\n\n        MULTIPLY        m0, m2, m5\n        MULTIPLY        m1, m3, m5\n\n        packuswb       m0, m1\n        movu  [dstq + xq], m0\n        add            xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro BLEND_SCREEN 0\nBLEND_INIT screen, 7\n    pxor       m4, m4\n\n    VBROADCASTI128       m5, [pw_1]\n    VBROADCASTI128       m6, [pw_255]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]\n        punpcklbw      m0, m1, m4\n        punpckhbw      m1, m4\n        punpcklbw      m2, m3, m4\n        punpckhbw      m3, m4\n\n        SCREEN          m0, m2, m5, m6\n        SCREEN          m1, m3, m5, m6\n\n        packuswb       m0, m1\n        movu  [dstq + xq], m0\n        add            xq, mmsize\n    jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:5", "text": "VBROADCASTI128       m5, [pw_1]\n    VBROADCASTI128       m6, [pw_255]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]\n        punpcklbw      m0, m1, m4\n        punpckhbw      m1, m4\n        punpcklbw      m2, m3, m4\n        punpckhbw      m3, m4\n\n        SCREEN          m0, m2, m5, m6\n        SCREEN          m1, m3, m5, m6\n\n        packuswb       m0, m1\n        movu  [dstq + xq], m0\n        add            xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n;%1 name, %2 (b or w), %3 (set if 16 bit)\n%macro AVERAGE 2-3 0\nBLEND_INIT %1, 3, %3\n    pcmpeqb        m2, m2\n\n.nextrow:\n    mov        xq, widthq\n\n.loop:\n    movu           m0, [topq + xq]\n    movu           m1, [bottomq + xq]\n    pxor           m0, m2\n    pxor           m1, m2\n    pavg%2         m0, m1\n    pxor           m0, m2\n    movu  [dstq + xq], m0\n    add            xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n; %1 name , %2 src (b or w), %3 inter (w or d), %4 (1 if 16bit, not set if 8 bit)\n%macro GRAINMERGE 3-4 0\nBLEND_INIT %1, 6, %4\n    pxor       m4, m4\n%if %4 ; 16 bit\n    VBROADCASTI128       m5, [pd_32768]\n%else\n    VBROADCASTI128       m5, [pw_128]\n%endif\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:6", "text": "jl .loop\nBLEND_END\n%endmacro\n\n; %1 name , %2 src (b or w), %3 inter (w or d), %4 (1 if 16bit, not set if 8 bit)\n%macro GRAINMERGE 3-4 0\nBLEND_INIT %1, 6, %4\n    pxor       m4, m4\n%if %4 ; 16 bit\n    VBROADCASTI128       m5, [pd_32768]\n%else\n    VBROADCASTI128       m5, [pw_128]\n%endif\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu           m1, [topq + xq]\n        movu           m3, [bottomq + xq]\n\n        punpckl%2%3    m0, m1, m4\n        punpckh%2%3    m1, m4\n        punpckl%2%3    m2, m3, m4\n        punpckh%2%3    m3, m4\n\n        padd%3         m0, m2\n        padd%3         m1, m3\n        psub%3         m0, m5\n        psub%3         m1, m5\n\n        packus%3%2     m0, m1\n\n        movu  [dstq + xq], m0\n        add            xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro HARDMIX 0\nBLEND_INIT hardmix, 5\n    VBROADCASTI128       m2, [pb_255]\n    VBROADCASTI128       m3, [pb_128]\n    VBROADCASTI128       m4, [pb_127]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        pxor            m1, m4\n        pxor            m0, m3\n        pcmpgtb         m1, m0\n        pxor            m1, m2\n        movu   [dstq + xq], m1\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro DIVIDE 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:7", "text": "VBROADCASTI128       m2, [pb_255]\n    VBROADCASTI128       m3, [pb_128]\n    VBROADCASTI128       m4, [pb_127]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        pxor            m1, m4\n        pxor            m0, m3\n        pcmpgtb         m1, m0\n        pxor            m1, m2\n        movu   [dstq + xq], m1\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro DIVIDE 0\nBLEND_INIT divide, 4\n    pxor       m2, m2\n    mova       m3, [ps_255]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movd            m0, [topq + xq]      ; 000000xx\n        movd            m1, [bottomq + xq]\n        punpcklbw       m0, m2               ; 00000x0x\n        punpcklbw       m1, m2\n        punpcklwd       m0, m2               ; 000x000x\n        punpcklwd       m1, m2\n\n        cvtdq2ps        m0, m0\n        cvtdq2ps        m1, m1\n        divps           m0, m1               ; a / b\n        mulps           m0, m3               ; a / b * 255\n        minps           m0, m3\n        cvttps2dq       m0, m0\n\n        packssdw        m0, m0               ; 00000x0x\n        packuswb        m0, m0               ; 000000xx\n        movd   [dstq + xq], m0\n        add             xq, mmsize / 4\n\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro PHOENIX 2-3 0\n; %1 name, %2 b or w, %3 (opt) 1 if 16 bit\nBLEND_INIT %1, 4, %3\n    VBROADCASTI128       m3, [pb_255]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:8", "text": "packssdw        m0, m0               ; 00000x0x\n        packuswb        m0, m0               ; 000000xx\n        movd   [dstq + xq], m0\n        add             xq, mmsize / 4\n\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro PHOENIX 2-3 0\n; %1 name, %2 b or w, %3 (opt) 1 if 16 bit\nBLEND_INIT %1, 4, %3\n    VBROADCASTI128       m3, [pb_255]\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        mova            m2, m0\n        pminu%2         m0, m1\n        pmaxu%2         m1, m2\n        mova            m2, m3\n        psubus%2        m2, m1\n        paddus%2        m2, m0\n        movu   [dstq + xq], m2\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n; %1 name , %2 src (b or w), %3 inter (w or d), %4 (1 if 16bit, not set if 8 bit)\n%macro DIFFERENCE 3-4 0\nBLEND_INIT %1, 5, %4\n    pxor       m2, m2\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        punpckh%2%3     m3, m0, m2\n        punpckl%2%3     m0, m2\n        punpckh%2%3     m4, m1, m2\n        punpckl%2%3     m1, m2\n        psub%3          m0, m1\n        psub%3          m3, m4\n%if %4; 16 bit\n        pabsd           m0, m0\n        pabsd           m3, m3\n%else\n        ABS2            m0, m3, m1, m4\n%endif\n        packus%3%2      m0, m3\n        movu   [dstq + xq], m0\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:9", "text": "movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        punpckh%2%3     m3, m0, m2\n        punpckl%2%3     m0, m2\n        punpckh%2%3     m4, m1, m2\n        punpckl%2%3     m1, m2\n        psub%3          m0, m1\n        psub%3          m3, m4\n%if %4; 16 bit\n        pabsd           m0, m0\n        pabsd           m3, m3\n%else\n        ABS2            m0, m3, m1, m4\n%endif\n        packus%3%2      m0, m3\n        movu   [dstq + xq], m0\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n; %1 name , %2 src (b or w), %3 inter (w or d), %4 (1 if 16bit, not set if 8 bit)\n%macro EXTREMITY 3-4 0\nBLEND_INIT %1, 8, %4\n    pxor       m2, m2\n%if %4; 16 bit\n    VBROADCASTI128       m4, [pd_65535]\n%else\n    VBROADCASTI128       m4, [pw_255]\n%endif\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        punpckh%2%3     m5, m0, m2\n        punpckl%2%3     m0, m2\n        punpckh%2%3     m6, m1, m2\n        punpckl%2%3     m1, m2\n        psub%3          m3, m4, m0\n        psub%3          m7, m4, m5\n        psub%3          m3, m1\n        psub%3          m7, m6\n%if %4; 16 bit\n        pabsd           m3, m3\n        pabsd           m7, m7\n%else\n        ABS2            m3, m7, m1, m6\n%endif\n        packus%3%2      m3, m7\n        movu   [dstq + xq], m3\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro NEGATION 3-4 0\nBLEND_INIT %1, 8, %4\n    pxor       m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:10", "text": "psub%3          m3, m4, m0\n        psub%3          m7, m4, m5\n        psub%3          m3, m1\n        psub%3          m7, m6\n%if %4; 16 bit\n        pabsd           m3, m3\n        pabsd           m7, m7\n%else\n        ABS2            m3, m7, m1, m6\n%endif\n        packus%3%2      m3, m7\n        movu   [dstq + xq], m3\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\n%macro NEGATION 3-4 0\nBLEND_INIT %1, 8, %4\n    pxor       m2, m2\n%if %4; 16 bit\n    VBROADCASTI128       m4, [pd_65535]\n%else\n    VBROADCASTI128       m4, [pw_255]\n%endif\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [topq + xq]\n        movu            m1, [bottomq + xq]\n        punpckh%2%3     m5, m0, m2\n        punpckl%2%3     m0, m2\n        punpckh%2%3     m6, m1, m2\n        punpckl%2%3     m1, m2\n        psub%3          m3, m4, m0\n        psub%3          m7, m4, m5\n        psub%3          m3, m1\n        psub%3          m7, m6\n%if %4; 16 bit\n        pabsd           m3, m3\n        pabsd           m7, m7\n%else\n        ABS2            m3, m7, m1, m6\n%endif\n        psub%3          m0, m4, m3\n        psub%3          m1, m4, m7\n        packus%3%2      m0, m1\n        movu   [dstq + xq], m0\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\nINIT_XMM sse2\nBLEND_SIMPLE xor,      xor\nBLEND_SIMPLE or,       or\nBLEND_SIMPLE and,      and\nBLEND_SIMPLE addition, addusb\nBLEND_SIMPLE subtract, subusb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:11", "text": "pabsd           m3, m3\n        pabsd           m7, m7\n%else\n        ABS2            m3, m7, m1, m6\n%endif\n        psub%3          m0, m4, m3\n        psub%3          m1, m4, m7\n        packus%3%2      m0, m1\n        movu   [dstq + xq], m0\n        add             xq, mmsize\n    jl .loop\nBLEND_END\n%endmacro\n\nINIT_XMM sse2\nBLEND_SIMPLE xor,      xor\nBLEND_SIMPLE or,       or\nBLEND_SIMPLE and,      and\nBLEND_SIMPLE addition, addusb\nBLEND_SIMPLE subtract, subusb\nBLEND_SIMPLE darken,   minub\nBLEND_SIMPLE lighten,  maxub\nGRAINEXTRACT grainextract, b, w\nBLEND_MULTIPLY\nBLEND_SCREEN\nAVERAGE       average,    b\nGRAINMERGE    grainmerge, b, w\nHARDMIX\nPHOENIX phoenix, b\nDIFFERENCE difference, b, w\nDIVIDE\nEXTREMITY extremity, b, w\nNEGATION negation, b, w\n\n%if ARCH_X86_64\nBLEND_SIMPLE addition_16, addusw, 1\nBLEND_SIMPLE and_16,      and,    1\nBLEND_SIMPLE or_16,       or,     1\nBLEND_SIMPLE subtract_16, subusw, 1\nBLEND_SIMPLE xor_16,      xor,    1\nAVERAGE      average_16,  w,      1\n%endif\n\nINIT_XMM ssse3\nDIFFERENCE difference, b, w\nEXTREMITY extremity, b, w\nNEGATION negation, b, w\n\nINIT_XMM sse4\n%if ARCH_X86_64\nBLEND_SIMPLE darken_16,   minuw, 1\nBLEND_SIMPLE lighten_16,  maxuw, 1\nGRAINEXTRACT grainextract_16, w, d, 1\nGRAINMERGE   grainmerge_16, w, d, 1\nPHOENIX      phoenix_16,      w, 1\nDIFFERENCE   difference_16, w, d, 1\nEXTREMITY    extremity_16, w, d, 1\nNEGATION     negation_16, w, d, 1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:12", "text": "AVERAGE      average_16,  w,      1\n%endif\n\nINIT_XMM ssse3\nDIFFERENCE difference, b, w\nEXTREMITY extremity, b, w\nNEGATION negation, b, w\n\nINIT_XMM sse4\n%if ARCH_X86_64\nBLEND_SIMPLE darken_16,   minuw, 1\nBLEND_SIMPLE lighten_16,  maxuw, 1\nGRAINEXTRACT grainextract_16, w, d, 1\nGRAINMERGE   grainmerge_16, w, d, 1\nPHOENIX      phoenix_16,      w, 1\nDIFFERENCE   difference_16, w, d, 1\nEXTREMITY    extremity_16, w, d, 1\nNEGATION     negation_16, w, d, 1\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nBLEND_SIMPLE xor,      xor\nBLEND_SIMPLE or,       or\nBLEND_SIMPLE and,      and\nBLEND_SIMPLE addition, addusb\nBLEND_SIMPLE subtract, subusb\nBLEND_SIMPLE darken,   minub\nBLEND_SIMPLE lighten,  maxub\nGRAINEXTRACT grainextract, b, w\nBLEND_MULTIPLY\nBLEND_SCREEN\nAVERAGE    average,    b\nGRAINMERGE grainmerge, b, w\nHARDMIX\nPHOENIX phoenix, b\n\nDIFFERENCE difference, b, w\nEXTREMITY extremity, b, w\nNEGATION negation, b, w\n\n%if ARCH_X86_64\nBLEND_SIMPLE addition_16, addusw, 1\nBLEND_SIMPLE and_16,      and,    1\nBLEND_SIMPLE darken_16,   minuw,  1\nBLEND_SIMPLE lighten_16,  maxuw,  1\nBLEND_SIMPLE or_16,       or,     1\nBLEND_SIMPLE subtract_16, subusw, 1\nBLEND_SIMPLE xor_16,      xor,    1\nGRAINEXTRACT grainextract_16, w, d, 1\nAVERAGE      average_16,  w,      1\nGRAINMERGE   grainmerge_16, w, d, 1\nPHOENIX      phoenix_16,       w, 1\nDIFFERENCE   difference_16, w, d, 1\nEXTREMITY    extremity_16, w, d, 1\nNEGATION     negation_16, w, d, 1\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 441, "line_end": 498}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_blend.asm:13", "text": "%if ARCH_X86_64\nBLEND_SIMPLE addition_16, addusw, 1\nBLEND_SIMPLE and_16,      and,    1\nBLEND_SIMPLE darken_16,   minuw,  1\nBLEND_SIMPLE lighten_16,  maxuw,  1\nBLEND_SIMPLE or_16,       or,     1\nBLEND_SIMPLE subtract_16, subusw, 1\nBLEND_SIMPLE xor_16,      xor,    1\nGRAINEXTRACT grainextract_16, w, d, 1\nAVERAGE      average_16,  w,      1\nGRAINMERGE   grainmerge_16, w, d, 1\nPHOENIX      phoenix_16,       w, 1\nDIFFERENCE   difference_16, w, d, 1\nEXTREMITY    extremity_16, w, d, 1\nNEGATION     negation_16, w, d, 1\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_blend.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_blend.asm", "line_start": 481, "line_end": 498}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for bwdif filter\n;*\n;* Copyright (C) 2016 Thomas Mundt <loudmax@yahoo.de>\n;*\n;* Based on yadif simd code\n;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>\n;*               2013 Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 64\n\npw_coefhf:  times 16 dw  1016, 5570\npw_coefhf1: times 32 dw -3801\npw_coefsp:  times 16 dw  5077, -981\npw_splfdif: times 16 dw  -768,  768\n\nSECTION .text\n\n%macro LOAD8 2\n    %if mmsize >= 32\n        pmovzxbw %1, %2\n    %else\n    movh         %1, %2\n    punpcklbw    %1, m7\n    %endif\n%endmacro\n\n%macro LOAD12 2\n    movu         %1, %2\n%endmacro\n\n%macro DISP8 0\n    %if mmsize == 64\n        pmaxsw        m2,    m7\n        vpmovuswb    [dstq], m2\n    %elif mmsize == 32\n        vextracti128  xm1,    m2, 1\n        packuswb      xm2,   xm1\n        movu         [dstq], xm2\n    %else\n    packuswb     m2, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:2", "text": "%else\n    movh         %1, %2\n    punpcklbw    %1, m7\n    %endif\n%endmacro\n\n%macro LOAD12 2\n    movu         %1, %2\n%endmacro\n\n%macro DISP8 0\n    %if mmsize == 64\n        pmaxsw        m2,    m7\n        vpmovuswb    [dstq], m2\n    %elif mmsize == 32\n        vextracti128  xm1,    m2, 1\n        packuswb      xm2,   xm1\n        movu         [dstq], xm2\n    %else\n    packuswb     m2, m2\n    movh     [dstq], m2\n    %endif\n%endmacro\n\n%macro DISP12 0\n    CLIPW        m2, m7, m12\n    movu     [dstq], m2\n%endmacro\n\n%macro FILTER 5\n    pxor         m7, m7\n.loop%1:\n    LOAD%4       m0, [curq+t0*%5]\n    LOAD%4       m1, [curq+t1*%5]\n    LOAD%4       m2, [%2]\n    LOAD%4       m3, [%3]\n    mova         m4, m3\n    paddw        m3, m2\n    psubw        m2, m4\n    ABS1         m2, m4\n    mova         m8, m3\n    mova         m9, m2\n    LOAD%4       m3, [prevq+t0*%5]\n    LOAD%4       m4, [prevq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD%4       m3, [nextq+t0*%5]\n    LOAD%4       m4, [nextq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:3", "text": "mova         m8, m3\n    mova         m9, m2\n    LOAD%4       m3, [prevq+t0*%5]\n    LOAD%4       m4, [prevq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD%4       m3, [nextq+t0*%5]\n    LOAD%4       m4, [nextq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n\n    LOAD%4       m3, [%2+t0*2*%5]\n    LOAD%4       m4, [%3+t0*2*%5]\n    LOAD%4       m5, [%2+t1*2*%5]\n    LOAD%4       m6, [%3+t1*2*%5]\n    paddw        m3, m4\n    paddw        m5, m6\n    mova         m6, m3\n    paddw        m6, m5\n    mova        m10, m6\n    psrlw        m3, 1\n    psrlw        m5, 1\n    psubw        m3, m0\n    psubw        m5, m1\n    mova         m6, m3\n    pminsw       m3, m5\n    pmaxsw       m5, m6\n    mova         m4, m8\n    psraw        m4, 1\n    mova         m6, m4\n    psubw        m6, m0\n    psubw        m4, m1\n    pmaxsw       m3, m6\n    pminsw       m5, m6\n    pmaxsw       m3, m4\n    pminsw       m5, m4\n    mova         m6, m7\n    psubw        m6, m3\n    pmaxsw       m6, m5\n%if cpuflag(avx512)\n    pcmpgtw      k1, m2, m7\n    vpmovm2w     m3, k1\n%else\n    mova         m3, m2\n    pcmpgtw      m3, m7\n%endif\n    pand         m6, m3\n    pmaxsw       m2, m6\n    mova        m11, m2\n\n    LOAD%4       m2, [%2+t0*4*%5]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:4", "text": "psubw        m4, m1\n    pmaxsw       m3, m6\n    pminsw       m5, m6\n    pmaxsw       m3, m4\n    pminsw       m5, m4\n    mova         m6, m7\n    psubw        m6, m3\n    pmaxsw       m6, m5\n%if cpuflag(avx512)\n    pcmpgtw      k1, m2, m7\n    vpmovm2w     m3, k1\n%else\n    mova         m3, m2\n    pcmpgtw      m3, m7\n%endif\n    pand         m6, m3\n    pmaxsw       m2, m6\n    mova        m11, m2\n\n    LOAD%4       m2, [%2+t0*4*%5]\n    LOAD%4       m3, [%3+t0*4*%5]\n    LOAD%4       m4, [%2+t1*4*%5]\n    LOAD%4       m5, [%3+t1*4*%5]\n    paddw        m2, m3\n    paddw        m4, m5\n    paddw        m2, m4\n    mova         m3, m2\n    punpcklwd    m2, m8\n    punpckhwd    m3, m8\n    pmaddwd      m2, [pw_coefhf]\n    pmaddwd      m3, [pw_coefhf]\n    mova         m4, m10\n    mova         m6, m4\n    pmullw       m4, [pw_coefhf1]\n    pmulhw       m6, [pw_coefhf1]\n    mova         m5, m4\n    punpcklwd    m4, m6\n    punpckhwd    m5, m6\n    paddd        m2, m4\n    paddd        m3, m5\n    psrad        m2, 2\n    psrad        m3, 2\n\n    mova         m4, m0\n    paddw        m0, m1\n%if ARCH_X86_64\n    LOAD%4       m5, [curq+t2*%5]\n    LOAD%4       m6, [curq+t3*%5]\n%else\n    mov          r4, prefs3mp\n    mov          r5, mrefs3mp\n    LOAD%4       m5, [curq+t0*%5]\n    LOAD%4       m6, [curq+t1*%5]\n    mov          r4, prefsmp\n    mov          r5, mrefsmp\n%endif\n    paddw        m6, m5\n    psubw        m1, m4\n    ABS1         m1, m4\n%if cpuflag(avx512)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:5", "text": "psrad        m2, 2\n    psrad        m3, 2\n\n    mova         m4, m0\n    paddw        m0, m1\n%if ARCH_X86_64\n    LOAD%4       m5, [curq+t2*%5]\n    LOAD%4       m6, [curq+t3*%5]\n%else\n    mov          r4, prefs3mp\n    mov          r5, mrefs3mp\n    LOAD%4       m5, [curq+t0*%5]\n    LOAD%4       m6, [curq+t1*%5]\n    mov          r4, prefsmp\n    mov          r5, mrefsmp\n%endif\n    paddw        m6, m5\n    psubw        m1, m4\n    ABS1         m1, m4\n%if cpuflag(avx512)\n    pcmpgtw      k1, m1, m9\n    vpmovm2w     m1, k1\n%else\n    pcmpgtw      m1, m9\n%endif\n    mova         m4, m1\n    punpcklwd    m1, m4\n    punpckhwd    m4, m4\n    pand         m2, m1\n    pand         m3, m4\n    mova         m5, [pw_splfdif]\n    mova         m7, m5\n    pand         m5, m1\n    pand         m7, m4\n    paddw        m5, [pw_coefsp]\n    paddw        m7, [pw_coefsp]\n    mova         m4, m0\n    punpcklwd    m0, m6\n    punpckhwd    m4, m6\n    pmaddwd      m0, m5\n    pmaddwd      m4, m7\n    paddd        m2, m0\n    paddd        m3, m4\n    psrad        m2, 13\n    psrad        m3, 13\n    packssdw     m2, m3\n\n    mova         m4, m8\n    psraw        m4, 1\n    mova         m0, m11\n    mova         m3, m4\n    psubw        m4, m0\n    paddw        m3, m0\n    CLIPW        m2, m4, m3\n    pxor         m7, m7\n    DISP%4\n\n    add        dstq, STEP\n    add       prevq, STEP\n    add        curq, STEP", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:6", "text": "pmaddwd      m4, m7\n    paddd        m2, m0\n    paddd        m3, m4\n    psrad        m2, 13\n    psrad        m3, 13\n    packssdw     m2, m3\n\n    mova         m4, m8\n    psraw        m4, 1\n    mova         m0, m11\n    mova         m3, m4\n    psubw        m4, m0\n    paddw        m3, m0\n    CLIPW        m2, m4, m3\n    pxor         m7, m7\n    DISP%4\n\n    add        dstq, STEP\n    add       prevq, STEP\n    add        curq, STEP\n    add       nextq, STEP\n    sub    DWORD wm, mmsize/2\n    jg .loop%1\n%endmacro\n\n%macro PROC 2\n%if ARCH_X86_64\n    movsxd       r5, DWORD prefsm\n    movsxd       r6, DWORD mrefsm\n    movsxd       r7, DWORD prefs3m\n    movsxd       r8, DWORD mrefs3m\n    DECLARE_REG_TMP 5, 6, 7, 8\n%else\n    %define m8  [rsp+ 0]\n    %define m9  [rsp+16]\n    %define m10 [rsp+32]\n    %define m11 [rsp+48]\n    mov          r4, prefsmp\n    mov          r5, mrefsmp\n    DECLARE_REG_TMP 4, 5\n%endif\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq, %1, %2\n    jmp .ret\n.parity0:\n    FILTER 0, curq, nextq, %1, %2\n.ret:\n    RET\n%endmacro\n\n%macro BWDIF 0\n%if ARCH_X86_64\ncglobal bwdif_filter_line, 4, 9, 12, 0, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%else\ncglobal bwdif_filter_line, 4, 6, 8, 64, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:7", "text": "%endif\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq, %1, %2\n    jmp .ret\n.parity0:\n    FILTER 0, curq, nextq, %1, %2\n.ret:\n    RET\n%endmacro\n\n%macro BWDIF 0\n%if ARCH_X86_64\ncglobal bwdif_filter_line, 4, 9, 12, 0, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%else\ncglobal bwdif_filter_line, 4, 6, 8, 64, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%endif\n    %define STEP mmsize/2\n    PROC 8, 1\n\n%if ARCH_X86_64\ncglobal bwdif_filter_line_12bit, 4, 9, 13, 0, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %if mmsize >= 32\n        vpbroadcastw m12, WORD clip_maxm\n    %else\n    movd        m12, DWORD clip_maxm\n    SPLATW      m12, m12, 0\n    %endif\n%else\ncglobal bwdif_filter_line_12bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %define m12 [rsp+64]\n    movd         m0, DWORD clip_maxm\n    SPLATW       m0, m0, 0\n    mova        m12, m0\n%endif\n    %define STEP mmsize\n    PROC 12, 2\n%endmacro\n\nINIT_XMM ssse3\nBWDIF\nINIT_XMM sse2\nBWDIF\n\n%if HAVE_AVX2_EXTERNAL && ARCH_X86_64\nINIT_YMM avx2\nBWDIF\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL && ARCH_X86_64", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:8", "text": "%define m12 [rsp+64]\n    movd         m0, DWORD clip_maxm\n    SPLATW       m0, m0, 0\n    mova        m12, m0\n%endif\n    %define STEP mmsize\n    PROC 12, 2\n%endmacro\n\nINIT_XMM ssse3\nBWDIF\nINIT_XMM sse2\nBWDIF\n\n%if HAVE_AVX2_EXTERNAL && ARCH_X86_64\nINIT_YMM avx2\nBWDIF\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL && ARCH_X86_64\nINIT_ZMM avx512icl\nBWDIF\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_bwdif.asm", "line_start": 281, "line_end": 303}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:7", "text": "%endif\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq, %1, %2\n    jmp .ret\n.parity0:\n    FILTER 0, curq, nextq, %1, %2\n.ret:\n    RET\n%endmacro\n\n%macro BWDIF 0\n%if ARCH_X86_64\ncglobal bwdif_filter_line, 4, 9, 12, 0, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%else\ncglobal bwdif_filter_line, 4, 6, 8, 64, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%endif\n    %define STEP mmsize/2\n    PROC 8, 1\n\n%if ARCH_X86_64\ncglobal bwdif_filter_line_12bit, 4, 9, 13, 0, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %if mmsize >= 32\n        vpbroadcastw m12, WORD clip_maxm\n    %else\n    movd        m12, DWORD clip_maxm\n    SPLATW      m12, m12, 0\n    %endif\n%else\ncglobal bwdif_filter_line_12bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %define m12 [rsp+64]\n    movd         m0, DWORD clip_maxm\n    SPLATW       m0, m0, 0\n    mova        m12, m0\n%endif\n    %define STEP mmsize\n    PROC 12, 2\n%endmacro\n\nINIT_XMM ssse3\nBWDIF\nINIT_XMM sse2\nBWDIF\n\n%if HAVE_AVX2_EXTERNAL && ARCH_X86_64\nINIT_YMM avx2\nBWDIF\n%endif\n\n%if HAVE_AVX512_EXTERNAL && ARCH_X86_64", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "7f00e24d70545dc303e43b62ab5ea5c743411411", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f00e24d70545dc303e43b62ab5ea5c743411411/libavfilter/x86/vf_bwdif.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:8", "text": "%define m12 [rsp+64]\n    movd         m0, DWORD clip_maxm\n    SPLATW       m0, m0, 0\n    mova        m12, m0\n%endif\n    %define STEP mmsize\n    PROC 12, 2\n%endmacro\n\nINIT_XMM ssse3\nBWDIF\nINIT_XMM sse2\nBWDIF\n\n%if HAVE_AVX2_EXTERNAL && ARCH_X86_64\nINIT_YMM avx2\nBWDIF\n%endif\n\n%if HAVE_AVX512_EXTERNAL && ARCH_X86_64\nINIT_ZMM avx512icl\nBWDIF\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "7f00e24d70545dc303e43b62ab5ea5c743411411", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f00e24d70545dc303e43b62ab5ea5c743411411/libavfilter/x86/vf_bwdif.asm", "line_start": 281, "line_end": 303}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for bwdif filter\n;*\n;* Copyright (C) 2016 Thomas Mundt <loudmax@yahoo.de>\n;*\n;* Based on yadif simd code\n;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>\n;*               2013 Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npw_coefhf:  times 8 dw  1016, 5570\npw_coefhf1: times 16 dw -3801\npw_coefsp:  times 8 dw  5077, -981\npw_splfdif: times 8 dw  -768,  768\n\nSECTION .text\n\n%macro LOAD8 2\n    %if mmsize == 32\n        pmovzxbw %1, %2\n    %else\n    movh         %1, %2\n    punpcklbw    %1, m7\n    %endif\n%endmacro\n\n%macro LOAD12 2\n    movu         %1, %2\n%endmacro\n\n%macro DISP8 0\n    %if mmsize == 32\n        vextracti128  xm1,    m2, 1\n        packuswb      xm2,   xm1\n        movu         [dstq], xm2\n    %else\n    packuswb     m2, m2\n    movh     [dstq], m2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:2", "text": "%else\n    movh         %1, %2\n    punpcklbw    %1, m7\n    %endif\n%endmacro\n\n%macro LOAD12 2\n    movu         %1, %2\n%endmacro\n\n%macro DISP8 0\n    %if mmsize == 32\n        vextracti128  xm1,    m2, 1\n        packuswb      xm2,   xm1\n        movu         [dstq], xm2\n    %else\n    packuswb     m2, m2\n    movh     [dstq], m2\n    %endif\n%endmacro\n\n%macro DISP12 0\n    CLIPW        m2, m7, m12\n    movu     [dstq], m2\n%endmacro\n\n%macro FILTER 5\n    pxor         m7, m7\n.loop%1:\n    LOAD%4       m0, [curq+t0*%5]\n    LOAD%4       m1, [curq+t1*%5]\n    LOAD%4       m2, [%2]\n    LOAD%4       m3, [%3]\n    mova         m4, m3\n    paddw        m3, m2\n    psubw        m2, m4\n    ABS1         m2, m4\n    mova         m8, m3\n    mova         m9, m2\n    LOAD%4       m3, [prevq+t0*%5]\n    LOAD%4       m4, [prevq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD%4       m3, [nextq+t0*%5]\n    LOAD%4       m4, [nextq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n\n    LOAD%4       m3, [%2+t0*2*%5]\n    LOAD%4       m4, [%3+t0*2*%5]\n    LOAD%4       m5, [%2+t1*2*%5]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:3", "text": "LOAD%4       m4, [prevq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD%4       m3, [nextq+t0*%5]\n    LOAD%4       m4, [nextq+t1*%5]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n\n    LOAD%4       m3, [%2+t0*2*%5]\n    LOAD%4       m4, [%3+t0*2*%5]\n    LOAD%4       m5, [%2+t1*2*%5]\n    LOAD%4       m6, [%3+t1*2*%5]\n    paddw        m3, m4\n    paddw        m5, m6\n    mova         m6, m3\n    paddw        m6, m5\n    mova        m10, m6\n    psrlw        m3, 1\n    psrlw        m5, 1\n    psubw        m3, m0\n    psubw        m5, m1\n    mova         m6, m3\n    pminsw       m3, m5\n    pmaxsw       m5, m6\n    mova         m4, m8\n    psraw        m4, 1\n    mova         m6, m4\n    psubw        m6, m0\n    psubw        m4, m1\n    pmaxsw       m3, m6\n    pminsw       m5, m6\n    pmaxsw       m3, m4\n    pminsw       m5, m4\n    mova         m6, m7\n    psubw        m6, m3\n    pmaxsw       m6, m5\n    mova         m3, m2\n    pcmpgtw      m3, m7\n    pand         m6, m3\n    pmaxsw       m2, m6\n    mova        m11, m2\n\n    LOAD%4       m2, [%2+t0*4*%5]\n    LOAD%4       m3, [%3+t0*4*%5]\n    LOAD%4       m4, [%2+t1*4*%5]\n    LOAD%4       m5, [%3+t1*4*%5]\n    paddw        m2, m3\n    paddw        m4, m5\n    paddw        m2, m4\n    mova         m3, m2\n    punpcklwd    m2, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:4", "text": "pmaxsw       m3, m4\n    pminsw       m5, m4\n    mova         m6, m7\n    psubw        m6, m3\n    pmaxsw       m6, m5\n    mova         m3, m2\n    pcmpgtw      m3, m7\n    pand         m6, m3\n    pmaxsw       m2, m6\n    mova        m11, m2\n\n    LOAD%4       m2, [%2+t0*4*%5]\n    LOAD%4       m3, [%3+t0*4*%5]\n    LOAD%4       m4, [%2+t1*4*%5]\n    LOAD%4       m5, [%3+t1*4*%5]\n    paddw        m2, m3\n    paddw        m4, m5\n    paddw        m2, m4\n    mova         m3, m2\n    punpcklwd    m2, m8\n    punpckhwd    m3, m8\n    pmaddwd      m2, [pw_coefhf]\n    pmaddwd      m3, [pw_coefhf]\n    mova         m4, m10\n    mova         m6, m4\n    pmullw       m4, [pw_coefhf1]\n    pmulhw       m6, [pw_coefhf1]\n    mova         m5, m4\n    punpcklwd    m4, m6\n    punpckhwd    m5, m6\n    paddd        m2, m4\n    paddd        m3, m5\n    psrad        m2, 2\n    psrad        m3, 2\n\n    mova         m4, m0\n    paddw        m0, m1\n%if ARCH_X86_64\n    LOAD%4       m5, [curq+t2*%5]\n    LOAD%4       m6, [curq+t3*%5]\n%else\n    mov          r4, prefs3mp\n    mov          r5, mrefs3mp\n    LOAD%4       m5, [curq+t0*%5]\n    LOAD%4       m6, [curq+t1*%5]\n    mov          r4, prefsmp\n    mov          r5, mrefsmp\n%endif\n    paddw        m6, m5\n    psubw        m1, m4\n    ABS1         m1, m4\n    pcmpgtw      m1, m9\n    mova         m4, m1\n    punpcklwd    m1, m4\n    punpckhwd    m4, m4\n    pand         m2, m1\n    pand         m3, m4\n    mova         m5, [pw_splfdif]\n    mova         m7, m5\n    pand         m5, m1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:5", "text": "%else\n    mov          r4, prefs3mp\n    mov          r5, mrefs3mp\n    LOAD%4       m5, [curq+t0*%5]\n    LOAD%4       m6, [curq+t1*%5]\n    mov          r4, prefsmp\n    mov          r5, mrefsmp\n%endif\n    paddw        m6, m5\n    psubw        m1, m4\n    ABS1         m1, m4\n    pcmpgtw      m1, m9\n    mova         m4, m1\n    punpcklwd    m1, m4\n    punpckhwd    m4, m4\n    pand         m2, m1\n    pand         m3, m4\n    mova         m5, [pw_splfdif]\n    mova         m7, m5\n    pand         m5, m1\n    pand         m7, m4\n    paddw        m5, [pw_coefsp]\n    paddw        m7, [pw_coefsp]\n    mova         m4, m0\n    punpcklwd    m0, m6\n    punpckhwd    m4, m6\n    pmaddwd      m0, m5\n    pmaddwd      m4, m7\n    paddd        m2, m0\n    paddd        m3, m4\n    psrad        m2, 13\n    psrad        m3, 13\n    packssdw     m2, m3\n\n    mova         m4, m8\n    psraw        m4, 1\n    mova         m0, m11\n    mova         m3, m4\n    psubw        m4, m0\n    paddw        m3, m0\n    CLIPW        m2, m4, m3\n    pxor         m7, m7\n    DISP%4\n\n    add        dstq, STEP\n    add       prevq, STEP\n    add        curq, STEP\n    add       nextq, STEP\n    sub    DWORD wm, mmsize/2\n    jg .loop%1\n%endmacro\n\n%macro PROC 2\n%if ARCH_X86_64\n    movsxd       r5, DWORD prefsm\n    movsxd       r6, DWORD mrefsm\n    movsxd       r7, DWORD prefs3m\n    movsxd       r8, DWORD mrefs3m\n    DECLARE_REG_TMP 5, 6, 7, 8\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:6", "text": "CLIPW        m2, m4, m3\n    pxor         m7, m7\n    DISP%4\n\n    add        dstq, STEP\n    add       prevq, STEP\n    add        curq, STEP\n    add       nextq, STEP\n    sub    DWORD wm, mmsize/2\n    jg .loop%1\n%endmacro\n\n%macro PROC 2\n%if ARCH_X86_64\n    movsxd       r5, DWORD prefsm\n    movsxd       r6, DWORD mrefsm\n    movsxd       r7, DWORD prefs3m\n    movsxd       r8, DWORD mrefs3m\n    DECLARE_REG_TMP 5, 6, 7, 8\n%else\n    %define m8  [rsp+ 0]\n    %define m9  [rsp+16]\n    %define m10 [rsp+32]\n    %define m11 [rsp+48]\n    mov          r4, prefsmp\n    mov          r5, mrefsmp\n    DECLARE_REG_TMP 4, 5\n%endif\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq, %1, %2\n    jmp .ret\n.parity0:\n    FILTER 0, curq, nextq, %1, %2\n.ret:\n    RET\n%endmacro\n\n%macro BWDIF 0\n%if ARCH_X86_64\ncglobal bwdif_filter_line, 4, 9, 12, 0, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%else\ncglobal bwdif_filter_line, 4, 6, 8, 64, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%endif\n    %define STEP mmsize/2\n    PROC 8, 1\n\n%if ARCH_X86_64\ncglobal bwdif_filter_line_12bit, 4, 9, 13, 0, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %if mmsize == 32\n        vpbroadcastw m12, WORD clip_maxm\n    %else\n    movd        m12, DWORD clip_maxm", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_bwdif.asm:7", "text": "cglobal bwdif_filter_line, 4, 9, 12, 0, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%else\ncglobal bwdif_filter_line, 4, 6, 8, 64, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, prefs2, mrefs2, prefs3, mrefs3, \\\n                                        prefs4, mrefs4, parity, clip_max\n%endif\n    %define STEP mmsize/2\n    PROC 8, 1\n\n%if ARCH_X86_64\ncglobal bwdif_filter_line_12bit, 4, 9, 13, 0, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %if mmsize == 32\n        vpbroadcastw m12, WORD clip_maxm\n    %else\n    movd        m12, DWORD clip_maxm\n    SPLATW      m12, m12, 0\n    %endif\n%else\ncglobal bwdif_filter_line_12bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, prefs2, mrefs2, \\\n                                              prefs3, mrefs3, prefs4, \\\n                                              mrefs4, parity, clip_max\n    %define m12 [rsp+64]\n    movd         m0, DWORD clip_maxm\n    SPLATW       m0, m0, 0\n    mova        m12, m0\n%endif\n    %define STEP mmsize\n    PROC 12, 2\n%endmacro\n\nINIT_XMM ssse3\nBWDIF\nINIT_XMM sse2\nBWDIF\n\n%if HAVE_AVX2_EXTERNAL && ARCH_X86_64\nINIT_YMM avx2\nBWDIF\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_bwdif.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_bwdif.asm", "line_start": 241, "line_end": 285}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for blackdetect filter\n;*\n;* Copyright (C) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro detect_range_fn 1 ; suffix\ncglobal detect_range%1, 4, 7, 5, data, stride, width, height, mpeg_min, mpeg_max, x\n%if UNIX64 && notcpuflag(avx512)\n    movd xm0, mpeg_mind\n    movd xm1, mpeg_maxd\n    vpbroadcast%1 m0, xm0\n    vpbroadcast%1 m1, xm1\n%else\n    vpbroadcast%1 m0, mpeg_minm\n    vpbroadcast%1 m1, mpeg_maxm\n%endif\n    add dataq, widthq\n    neg widthq\n.lineloop:\n    mova m2, m0\n    mova m3, m1\n    mov xq, widthq\n    .loop:\n        movu m4, [dataq + xq]\n        pminu%1 m2, m4\n        pmaxu%1 m3, m4\n        add xq, mmsize\n        jl .loop\n\n    ; test if the data is out of range\n    pxor m2, m0\n%if cpuflag(avx512)\n    vpternlogq m2, m3, m1, 0xF6 ; m2 |= m3 ^ m1\n    vptestmq k1, m2, m2\n    kortestb k1, k1\n%else\n    pxor m3, m1\n    por m2, m3\n    ptest m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_colordetect.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:2", "text": "mova m2, m0\n    mova m3, m1\n    mov xq, widthq\n    .loop:\n        movu m4, [dataq + xq]\n        pminu%1 m2, m4\n        pmaxu%1 m3, m4\n        add xq, mmsize\n        jl .loop\n\n    ; test if the data is out of range\n    pxor m2, m0\n%if cpuflag(avx512)\n    vpternlogq m2, m3, m1, 0xF6 ; m2 |= m3 ^ m1\n    vptestmq k1, m2, m2\n    kortestb k1, k1\n%else\n    pxor m3, m1\n    por m2, m3\n    ptest m2, m2\n%endif\n    jnz .end\n    add dataq, strideq\n    dec heightq\n    jg .lineloop\n.end:\n    setnz al\n    movzx eax, al\n    RET\n%endmacro\n\n%define FF_ALPHA_STRAIGHT 0x3\n\n%macro detect_alpha_fn 3 ; suffix, hsuffix, range\n%if ARCH_X86_64\ncglobal detect_alpha%1_%3, 6, 8, 7, color, color_stride, alpha, alpha_stride, width, height, ret, x\n%else\ncglobal detect_alpha%1_%3, 1, 6, 7, color, ret, alpha, x, width, height\n%define color_strideq r1m\n%define alpha_strideq r3m\n    mov alphad,  r2m\n    mov widthd,  r4m\n    mov heightd, r5m\n%endif\n    pxor m0, m0\n    add colorq, widthq\n    add alphaq, widthq\n    neg widthq\n%ifidn %3, limited\n    vpbroadcast%2 m3, r6m ; alpha_max\n    vpbroadcast%2 m4, r7m ; mpeg_range\n    vpbroadcast%2 m5, r8m ; offset\n%else\n    vpbroadcast%1 m3, r6m ; alpha_max\n%endif\n    mova m6, m3\n    xor retd, retd\n.lineloop:\n    mov xq, widthq\n    .loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_colordetect.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:3", "text": "mov alphad,  r2m\n    mov widthd,  r4m\n    mov heightd, r5m\n%endif\n    pxor m0, m0\n    add colorq, widthq\n    add alphaq, widthq\n    neg widthq\n%ifidn %3, limited\n    vpbroadcast%2 m3, r6m ; alpha_max\n    vpbroadcast%2 m4, r7m ; mpeg_range\n    vpbroadcast%2 m5, r8m ; offset\n%else\n    vpbroadcast%1 m3, r6m ; alpha_max\n%endif\n    mova m6, m3\n    xor retd, retd\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pand m6, m2\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pand m6, m2\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif\n        pmaxu%2 m1, m2\n    %endif\n    %if cpuflag(avx512)\n        vpternlogq m0, m1, m2, 0xF6 ; m0 |= m1 ^ m2\n    %else\n        pxor m1, m2\n        por m0, m1\n    %endif\n    %ifidn %3, full\n        add xq, mmsize\n    %else\n        add xq, mmsize >> 1\n    %endif\n        jl .loop\n\n%if cpuflag(avx512)\n    vptestmq k1, m0, m0\n    kortestb k1, k1\n%else\n    ptest m0, m0\n%endif\n    jnz .found", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_colordetect.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:4", "text": "vpternlogq m0, m1, m2, 0xF6 ; m0 |= m1 ^ m2\n    %else\n        pxor m1, m2\n        por m0, m1\n    %endif\n    %ifidn %3, full\n        add xq, mmsize\n    %else\n        add xq, mmsize >> 1\n    %endif\n        jl .loop\n\n%if cpuflag(avx512)\n    vptestmq k1, m0, m0\n    kortestb k1, k1\n%else\n    ptest m0, m0\n%endif\n    jnz .found\n\n%if cpuflag(avx512)\n    vpandnq m1, m6, m3 ; m1 = ~m6 & m3\n    vptestmq k1, m1, m1\n    kortestb k1, k1\n    setnz xb\n%else\n    ptest m6, m3\n    setnc xb ; CF = !(~m6 & m3)\n%endif\n    or retb, xb\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n%ifnidn retd, eax\n    mov eax, retd\n%endif\n    RET\n\n.found:\n    mov eax, FF_ALPHA_STRAIGHT\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_colordetect.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:5", "text": ".found:\n    mov eax, FF_ALPHA_STRAIGHT\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_colordetect.asm", "line_start": 161, "line_end": 184}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:2", "text": "mova m2, m0\n    mova m3, m1\n    mov xq, widthq\n    .loop:\n        movu m4, [dataq + xq]\n        pminu%1 m2, m4\n        pmaxu%1 m3, m4\n        add xq, mmsize\n        jl .loop\n\n    ; test if the data is out of range\n    pxor m2, m0\n%if cpuflag(avx512)\n    vpternlogq m2, m3, m1, 0xF6 ; m2 |= m3 ^ m1\n    vptestmq k1, m2, m2\n    kortestb k1, k1\n%else\n    pxor m3, m1\n    por m2, m3\n    ptest m2, m2\n%endif\n    jnz .end\n    add dataq, strideq\n    dec heightq\n    jg .lineloop\n.end:\n    setnz al\n    movzx eax, al\n    RET\n%endmacro\n\n%macro detect_alpha_fn 3 ; suffix, hsuffix, range\ncglobal detect_alpha%1_%3, 6, 7, 6, color, color_stride, alpha, alpha_stride, width, height, x\n    pxor m0, m0\n    add colorq, widthq\n    add alphaq, widthq\n    neg widthq\n%ifidn %3, limited\n    vpbroadcast%2 m3, r6m ; alpha_max\n    vpbroadcast%2 m4, r7m ; mpeg_range\n    vpbroadcast%2 m5, r8m ; offset\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "c96ccd78fcc9fdfe7efe340879576eaf50881375", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c96ccd78fcc9fdfe7efe340879576eaf50881375/libavfilter/x86/vf_colordetect.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:3", "text": "vpbroadcast%2 m5, r8m ; offset\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif\n        pmaxu%2 m1, m2\n    %endif\n    %if cpuflag(avx512)\n        vpternlogq m0, m1, m2, 0xF6 ; m0 |= m1 ^ m2\n    %else\n        pxor m1, m2\n        por m0, m1\n    %endif\n    %ifidn %3, full\n        add xq, mmsize\n    %else\n        add xq, mmsize >> 1\n    %endif\n        jl .loop\n\n%if cpuflag(avx512)\n    vptestmq k1, m0, m0\n    kortestb k1, k1\n%else\n    ptest m0, m0\n%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor eax, eax\n    RET\n\n.found:\n    mov eax, 1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "c96ccd78fcc9fdfe7efe340879576eaf50881375", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c96ccd78fcc9fdfe7efe340879576eaf50881375/libavfilter/x86/vf_colordetect.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:4", "text": "%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor eax, eax\n    RET\n\n.found:\n    mov eax, 1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n%endif\n\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "c96ccd78fcc9fdfe7efe340879576eaf50881375", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c96ccd78fcc9fdfe7efe340879576eaf50881375/libavfilter/x86/vf_colordetect.asm", "line_start": 121, "line_end": 154}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:2", "text": "mova m2, m0\n    mova m3, m1\n    mov xq, widthq\n    .loop:\n        movu m4, [dataq + xq]\n        pminu%1 m2, m4\n        pmaxu%1 m3, m4\n        add xq, mmsize\n        jl .loop\n\n    ; test if the data is out of range\n    pxor m2, m0\n%if cpuflag(avx512)\n    vpternlogq m2, m3, m1, 0xF6 ; m2 |= m3 ^ m1\n    vptestmq k1, m2, m2\n    kortestb k1, k1\n%else\n    pxor m3, m1\n    por m2, m3\n    ptest m2, m2\n%endif\n    jnz .end\n    add dataq, strideq\n    dec heightq\n    jg .lineloop\n.end:\n    setnz al\n    movzx eax, al\n    RET\n%endmacro\n\n%macro detect_alpha_fn 3 ; suffix, hsuffix, range\ncglobal detect_alpha%1_%3, 6, 7, 6, color, color_stride, alpha, alpha_stride, width, height, x\n    pxor m0, m0\n    add colorq, widthq\n    add alphaq, widthq\n    neg widthq\n%ifidn %3, limited\n    vpbroadcast%2 m3, r6m ; p\n    vpbroadcast%2 m4, r7m ; q\n    vpbroadcast%2 m5, r8m ; k\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "a01dc3aa272be6edbd950469d4f4f7e61c15bb9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a01dc3aa272be6edbd950469d4f4f7e61c15bb9e/libavfilter/x86/vf_colordetect.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:3", "text": "vpbroadcast%2 m5, r8m ; k\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif\n        pmaxu%2 m1, m2\n    %endif\n    %if cpuflag(avx512)\n        vpternlogq m0, m1, m2, 0xF6 ; m0 |= m1 ^ m2\n    %else\n        pxor m1, m2\n        por m0, m1\n    %endif\n    %ifidn %3, full\n        add xq, mmsize\n    %else\n        add xq, mmsize >> 1\n    %endif\n        jl .loop\n\n%if cpuflag(avx512)\n    vptestmq k1, m0, m0\n    kortestb k1, k1\n%else\n    ptest m0, m0\n%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor eax, eax\n    RET\n\n.found:\n    mov eax, 1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "a01dc3aa272be6edbd950469d4f4f7e61c15bb9e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a01dc3aa272be6edbd950469d4f4f7e61c15bb9e/libavfilter/x86/vf_colordetect.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:3", "text": "vpbroadcast%2 m5, r8m ; k\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif\n        pmaxu%2 m1, m2\n    %endif\n    %if cpuflag(avx512)\n        vpternlogq m0, m1, m2, 0xF6 ; m0 |= m1 ^ m2\n    %else\n        pxor m1, m2\n        por m0, m1\n    %endif\n    %ifidn %3, full\n        add xq, mmsize\n    %else\n        add xq, mmsize >> 1\n    %endif\n        jl .loop\n\n%if cpuflag(avx512)\n    vptestmq k1, m0, m0\n    kortestb k1, k1\n%else\n    ptest m0, m0\n%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor eax, eax\n    RET\n\n.found:\n    mov eax, 1\n    RET\n%endmacro\n\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "c62813a057ed1d02dbd53733f46daa98ba5844f3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c62813a057ed1d02dbd53733f46daa98ba5844f3/libavfilter/x86/vf_colordetect.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:4", "text": "%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor eax, eax\n    RET\n\n.found:\n    mov eax, 1\n    RET\n%endmacro\n\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n\nINIT_ZMM avx512icl\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "c62813a057ed1d02dbd53733f46daa98ba5844f3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c62813a057ed1d02dbd53733f46daa98ba5844f3/libavfilter/x86/vf_colordetect.asm", "line_start": 121, "line_end": 150}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:4", "text": "%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor eax, eax\n    RET\n\n.found:\n    mov eax, 1\n    RET\n%endmacro\n\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n\nINIT_ZMM avx512\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "fdca209f1f10a6368a38f8ce750b41600fad5024", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fdca209f1f10a6368a38f8ce750b41600fad5024/libavfilter/x86/vf_colordetect.asm", "line_start": 121, "line_end": 150}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:2", "text": "mova m2, m0\n    mova m3, m1\n    mov xq, widthq\n    .loop:\n        movu m4, [dataq + xq]\n        pminu%1 m2, m4\n        pmaxu%1 m3, m4\n        add xq, mmsize\n        jl .loop\n\n    ; test if the data is out of range\n    pxor m2, m0\n%if cpuflag(avx512)\n    vpternlogq m2, m3, m1, 0xF6 ; m2 |= m3 ^ m1\n    vptestmq k1, m2, m2\n    kortestb k1, k1\n%else\n    pxor m3, m1\n    por m2, m3\n    ptest m2, m2\n%endif\n    jnz .end\n    add dataq, strideq\n    dec heightq\n    jg .lineloop\n.end:\n    setnz al\n    movzx rax, al\n    RET\n%endmacro\n\n%macro detect_alpha_fn 3 ; suffix, hsuffix, range\ncglobal detect_alpha%1_%3, 6, 7, 6, color, color_stride, alpha, alpha_stride, width, height, x\n    pxor m0, m0\n    add colorq, widthq\n    add alphaq, widthq\n    neg widthq\n%ifidn %3, limited\n    vpbroadcast%2 m3, r6m ; p\n    vpbroadcast%2 m4, r7m ; q\n    vpbroadcast%2 m5, r8m ; k\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "14f44783549b9688633d550bf44ac8056c93bc17", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/14f44783549b9688633d550bf44ac8056c93bc17/libavfilter/x86/vf_colordetect.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:3", "text": "vpbroadcast%2 m5, r8m ; k\n%endif\n.lineloop:\n    mov xq, widthq\n    .loop:\n    %ifidn %3, full\n        movu m1, [colorq + xq]\n        movu m2, [alphaq + xq]\n        pmaxu%1 m1, m2\n    %else\n        pmovzx%1%2 m1, [colorq + xq]\n        pmovzx%1%2 m2, [alphaq + xq]\n        pmull%2 m1, m3\n        pmull%2 m2, m4\n    %ifidn %1, b\n        psubusw m1, m5\n    %else\n        pmaxud m1, m5\n        psubd m1, m5\n    %endif\n        pmaxu%2 m1, m2\n    %endif\n    %if cpuflag(avx512)\n        vpternlogq m0, m1, m2, 0xF6 ; m0 |= m1 ^ m2\n    %else\n        pxor m1, m2\n        por m0, m1\n    %endif\n    %ifidn %3, full\n        add xq, mmsize\n    %else\n        add xq, mmsize >> 1\n    %endif\n        jl .loop\n\n%if cpuflag(avx512)\n    vptestmq k1, m0, m0\n    kortestb k1, k1\n%else\n    ptest m0, m0\n%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor rax, rax\n    RET\n\n.found:\n    mov rax, 1\n    RET\n%endmacro\n\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "14f44783549b9688633d550bf44ac8056c93bc17", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/14f44783549b9688633d550bf44ac8056c93bc17/libavfilter/x86/vf_colordetect.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:4", "text": "%endif\n    jnz .found\n\n    add colorq, color_strideq\n    add alphaq, alpha_strideq\n    dec heightq\n    jg .lineloop\n    xor rax, rax\n    RET\n\n.found:\n    mov rax, 1\n    RET\n%endmacro\n\nINIT_YMM avx2\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited\n\nINIT_ZMM avx512\ndetect_range_fn b\ndetect_range_fn w\ndetect_alpha_fn b, w, full\ndetect_alpha_fn w, d, full\ndetect_alpha_fn b, w, limited\ndetect_alpha_fn w, d, limited", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "14f44783549b9688633d550bf44ac8056c93bc17", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/14f44783549b9688633d550bf44ac8056c93bc17/libavfilter/x86/vf_colordetect.asm", "line_start": 121, "line_end": 150}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_colordetect.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for blackdetect filter\n;*\n;* Copyright (C) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro detect_range_fn 1 ; suffix\ncglobal detect_range%1, 6, 7, 5, data, stride, width, height, mpeg_min, mpeg_max, x\n%if UNIX64 && notcpuflag(avx512)\n    movd xm0, mpeg_mind\n    movd xm1, mpeg_maxd\n    vpbroadcast%1 m0, xm0\n    vpbroadcast%1 m1, xm1\n%else\n    vpbroadcast%1 m0, mpeg_mind\n    vpbroadcast%1 m1, mpeg_maxd\n%endif\n    add dataq, widthq\n    neg widthq\n.lineloop:\n    mova m2, m0\n    mova m3, m1\n    mov xq, widthq\n    .loop:\n        movu m4, [dataq + xq]\n        pminu%1 m2, m4\n        pmaxu%1 m3, m4\n        add xq, mmsize\n        jl .loop\n\n    ; test if the data is out of range\n    pxor m2, m0\n%if cpuflag(avx512)\n    vpternlogq m2, m3, m1, 0xF6 ; m2 |= m3 ^ m1\n    vptestmq k1, m2, m2\n    kortestb k1, k1\n%else\n    pxor m3, m1\n    por m2, m3\n    ptest m2, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_colordetect.asm", "license": "LGPL-2.1", "commit": "8b647b3f8adb9ead5f470f39be5a4803c4b55a65", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8b647b3f8adb9ead5f470f39be5a4803c4b55a65/libavfilter/x86/vf_colordetect.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for convolution filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\nhalf:   dd 0.5\ndata_p1: dd  1\ndata_n1: dd -1\ndata_p2: dd  2\ndata_n2: dd -2\n\nALIGN 64\nsobel_perm: db  0, 16, 32, 48,  1, 17, 33, 49,  2, 18, 34, 50,  3, 19, 35, 51\n            db  4, 20, 36, 52,  5, 21, 37, 53,  6, 22, 38, 54,  7, 23, 39, 55\n            db  8, 24, 40, 56,  9, 25, 41, 57, 10, 26, 42, 58, 11, 27, 43, 59\n            db 12, 28, 44, 60, 13, 29, 45, 61, 14, 30, 46, 62, 15, 31, 47, 63\nsobel_mulA: db -1,  1, -2,  2\nsobel_mulB: db  1, -1,  2, -2\n\nSECTION .text\n\n; void filter_3x3_sse4(uint8_t *dst, int width,\n;                      float rdiv, float bias, const int *const matrix,\n;                      const uint8_t *c[], int peak, int radius,\n;                      int dstride, int stride)\n\n\n%macro PROCESS_V 1\n    movss m2, [matrixq + 4 * %1]\n    VBROADCASTSS m2, m2\n    movss m3, [c%1q + xq]\n    punpcklbw m3, m6\n    punpcklwd m3, m6\n    pmulld m2, m3\n    paddd m4, m2\n%endmacro\n\n%macro PROCESS_S 1\n    movzx ptrd, byte [c%1q + xq]\n    imul  ptrd, [matrixq + 4 * %1]\n    add   rd, ptrd\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:2", "text": ";                      float rdiv, float bias, const int *const matrix,\n;                      const uint8_t *c[], int peak, int radius,\n;                      int dstride, int stride)\n\n\n%macro PROCESS_V 1\n    movss m2, [matrixq + 4 * %1]\n    VBROADCASTSS m2, m2\n    movss m3, [c%1q + xq]\n    punpcklbw m3, m6\n    punpcklwd m3, m6\n    pmulld m2, m3\n    paddd m4, m2\n%endmacro\n\n%macro PROCESS_S 1\n    movzx ptrd, byte [c%1q + xq]\n    imul  ptrd, [matrixq + 4 * %1]\n    add   rd, ptrd\n%endmacro\n\n%macro FILTER_3X3 0\n%if UNIX64\ncglobal filter_3x3, 4, 15, 7, dst, width, matrix, ptr, c0, c1, c2, c3, c4, c5, c6, c7, c8, r, x\n%else\ncglobal filter_3x3, 4, 15, 7, dst, width, rdiv, bias, matrix, ptr, c0, c1, c2, c3, c4, c5, c6, c7, c8, r, x\n%endif\n\n%if WIN64\n    SWAP m0, m2\n    SWAP m1, m3\n    mov  r2q, matrixmp\n    mov  r3q, ptrmp\n    DEFINE_ARGS dst, width, matrix, ptr, c0, c1, c2, c3, c4, c5, c6, c7, c8, r, x\n%endif\n    movsxdifnidn widthq, widthd\n    VBROADCASTSS m0, m0\n    VBROADCASTSS m1, m1\n    pxor  m6, m6\n    movss m5, [half]\n    VBROADCASTSS m5, m5\n    mov   c0q, [ptrq + 0*gprsize]\n    mov   c1q, [ptrq + 1*gprsize]\n    mov   c2q, [ptrq + 2*gprsize]\n    mov   c3q, [ptrq + 3*gprsize]\n    mov   c4q, [ptrq + 4*gprsize]\n    mov   c5q, [ptrq + 5*gprsize]\n    mov   c6q, [ptrq + 6*gprsize]\n    mov   c7q, [ptrq + 7*gprsize]\n    mov   c8q, [ptrq + 8*gprsize]\n\n    xor   xq, xq\n    cmp   widthq, mmsize/4\n    jl .loop2\n\n    mov   rq, widthq\n    and   rq, mmsize/4-1\n    sub   widthq, rq\n\n.loop1:", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:3", "text": "VBROADCASTSS m5, m5\n    mov   c0q, [ptrq + 0*gprsize]\n    mov   c1q, [ptrq + 1*gprsize]\n    mov   c2q, [ptrq + 2*gprsize]\n    mov   c3q, [ptrq + 3*gprsize]\n    mov   c4q, [ptrq + 4*gprsize]\n    mov   c5q, [ptrq + 5*gprsize]\n    mov   c6q, [ptrq + 6*gprsize]\n    mov   c7q, [ptrq + 7*gprsize]\n    mov   c8q, [ptrq + 8*gprsize]\n\n    xor   xq, xq\n    cmp   widthq, mmsize/4\n    jl .loop2\n\n    mov   rq, widthq\n    and   rq, mmsize/4-1\n    sub   widthq, rq\n\n.loop1:\n    pxor m4, m4         ; sum = 0;\n\n    PROCESS_V 0\n    PROCESS_V 1\n    PROCESS_V 2\n    PROCESS_V 3\n    PROCESS_V 4\n    PROCESS_V 5\n    PROCESS_V 6\n    PROCESS_V 7\n    PROCESS_V 8\n\n    cvtdq2ps  m4, m4\n    mulps     m4, m0     ; sum *= rdiv\n    addps     m4, m1     ; sum += bias\n    addps     m4, m5     ; sum += 0.5\n    cvttps2dq m4, m4\n    packssdw  m4, m4\n    packuswb  m4, m4\n    movss     [dstq + xq], m4\n\n    add xq, mmsize/4\n    cmp xq, widthq\n    jl .loop1\n\n    add widthq, rq\n    cmp xq, widthq\n    jge .end\n\n.loop2:\n    ; reuse r to hold sum, init with zero\n    xor rd, rd\n\n    PROCESS_S 0\n    PROCESS_S 1\n    PROCESS_S 2\n    PROCESS_S 3\n    PROCESS_S 4\n    PROCESS_S 5\n    PROCESS_S 6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:4", "text": "add xq, mmsize/4\n    cmp xq, widthq\n    jl .loop1\n\n    add widthq, rq\n    cmp xq, widthq\n    jge .end\n\n.loop2:\n    ; reuse r to hold sum, init with zero\n    xor rd, rd\n\n    PROCESS_S 0\n    PROCESS_S 1\n    PROCESS_S 2\n    PROCESS_S 3\n    PROCESS_S 4\n    PROCESS_S 5\n    PROCESS_S 6\n    PROCESS_S 7\n    PROCESS_S 8\n\n    pxor      m4, m4\n    cvtsi2ss  m4, rd\n    mulss     m4, m0     ; sum *= rdiv\n    addss     m4, m1     ; sum += bias\n    addss     m4, m5     ; sum += 0.5\n    ; we don't have simple scalar instructions to convert\n    ; from 32bit to 8bit with saturation, so here\n    ; just use packed version SSE instructions for simplicity.\n    cvttps2dq m4, m4     ; trunc to integer\n    packssdw  m4, m4\n    packuswb  m4, m4\n    movd      rd, m4\n    mov       [dstq + xq], rb\n\n    add xq, 1\n    cmp xq, widthq\n    jl .loop2\n.end:\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse4\nFILTER_3X3\n%endif\n\n%macro SOBEL_MUL 2\n    movzx ptrd, byte [c%1q + xq]\n    imul  ptrd, [%2]\n    add   rd, ptrd\n%endmacro\n\n%macro SOBEL_ADD 1\n    movzx ptrd, byte [c%1q + xq]\n    add   rd, ptrd\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:5", "text": ".end:\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse4\nFILTER_3X3\n%endif\n\n%macro SOBEL_MUL 2\n    movzx ptrd, byte [c%1q + xq]\n    imul  ptrd, [%2]\n    add   rd, ptrd\n%endmacro\n\n%macro SOBEL_ADD 1\n    movzx ptrd, byte [c%1q + xq]\n    add   rd, ptrd\n%endmacro\n\n; void filter_sobel_avx512(uint8_t *dst, int width,\n;                      float scale, float delta, const int *const matrix,\n;                      const uint8_t *c[], int peak, int radius,\n;                      int dstride, int stride)\n%macro FILTER_SOBEL 0\n%if UNIX64\ncglobal filter_sobel, 4, 15, 7, dst, width, matrix, ptr, c0, c1, c2, c3, c4, c5, c6, c7, c8, r, x\n%else\ncglobal filter_sobel, 4, 15, 7, dst, width, rdiv, bias, matrix, ptr, c0, c1, c2, c3, c4, c5, c6, c7, c8, r, x\n%endif\n%if WIN64\n    VBROADCASTSS m0, xmm2\n    VBROADCASTSS m1, xmm3\n    mov  r2q, matrixmp\n    mov  r3q, ptrmp\n    DEFINE_ARGS dst, width, matrix, ptr, c0, c1, c2, c3, c4, c5, c6, c7, c8, r, x\n%else\n    VBROADCASTSS m0, xmm0\n    VBROADCASTSS m1, xmm1\n%endif\n    movsxdifnidn widthq, widthd\n    pxor  m6, m6\n    mov   c0q, [ptrq + 0*gprsize]\n    mov   c1q, [ptrq + 1*gprsize]\n    mov   c2q, [ptrq + 2*gprsize]\n    mov   c3q, [ptrq + 3*gprsize]\n    mov   c4q, [ptrq + 4*gprsize]\n    mov   c5q, [ptrq + 5*gprsize]\n    mov   c6q, [ptrq + 6*gprsize]\n    mov   c7q, [ptrq + 7*gprsize]\n    mov   c8q, [ptrq + 8*gprsize]\n\n    xor   xq, xq\n    cmp   widthq, mmsize/4\n    jl .loop2\n\n    mov   rq, widthq\n    and   rq, mmsize/4-1\n    sub   widthq, rq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:6", "text": "movsxdifnidn widthq, widthd\n    pxor  m6, m6\n    mov   c0q, [ptrq + 0*gprsize]\n    mov   c1q, [ptrq + 1*gprsize]\n    mov   c2q, [ptrq + 2*gprsize]\n    mov   c3q, [ptrq + 3*gprsize]\n    mov   c4q, [ptrq + 4*gprsize]\n    mov   c5q, [ptrq + 5*gprsize]\n    mov   c6q, [ptrq + 6*gprsize]\n    mov   c7q, [ptrq + 7*gprsize]\n    mov   c8q, [ptrq + 8*gprsize]\n\n    xor   xq, xq\n    cmp   widthq, mmsize/4\n    jl .loop2\n\n    mov   rq, widthq\n    and   rq, mmsize/4-1\n    sub   widthq, rq\n\n    mova  m6, [sobel_perm]\n.loop1:\n    movu          xm3, [c2q + xq]\n    pmovzxbd      m5, [c0q + xq]\n    vinserti32x4  ym3, [c6q + xq], 1\n    pmovzxbd      m4, [c8q + xq]\n    vinserti32x4  m2, m3, [c1q + xq], 2\n    vinserti32x4  m3, [c5q + xq], 2\n    vinserti32x4  m2, [c7q + xq], 3\n    vinserti32x4  m3, [c3q + xq], 3\n    vpermb        m2, m6, m2\n    psubd         m4, m5\n    vpermb        m3, m6, m3\n    mova          m5, m4\n    vpdpbusd      m4, m2, [sobel_mulA] {1to16}\n    vpdpbusd      m5, m3, [sobel_mulB] {1to16}\n\n    cvtdq2ps  m4, m4\n    mulps     m4, m4\n\n    cvtdq2ps    m5, m5\n    VFMADD231PS m4, m5, m5\n\n    sqrtps    m4, m4\n    fmaddps m4, m4, m0, m1\n    cvttps2dq m4, m4\n    vpmovusdb [dstq + xq], m4\n\n    add xq, mmsize/4\n    cmp xq, widthq\n    jl .loop1\n\n    add widthq, rq\n    cmp xq, widthq\n    jge .end\n\n.loop2:\n    xor  rd, rd\n    pxor m4, m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:7", "text": "cvtdq2ps    m5, m5\n    VFMADD231PS m4, m5, m5\n\n    sqrtps    m4, m4\n    fmaddps m4, m4, m0, m1\n    cvttps2dq m4, m4\n    vpmovusdb [dstq + xq], m4\n\n    add xq, mmsize/4\n    cmp xq, widthq\n    jl .loop1\n\n    add widthq, rq\n    cmp xq, widthq\n    jge .end\n\n.loop2:\n    xor  rd, rd\n    pxor m4, m4\n\n    ;Gx\n    SOBEL_MUL 0, data_n1\n    SOBEL_MUL 1, data_n2\n    SOBEL_MUL 2, data_n1\n    SOBEL_ADD 6\n    SOBEL_MUL 7, data_p2\n    SOBEL_ADD 8\n\n    cvtsi2ss xmm4, rd\n    mulss    xmm4, xmm4\n\n    xor rd, rd\n    ;Gy\n    SOBEL_MUL 0, data_n1\n    SOBEL_ADD 2\n    SOBEL_MUL 3, data_n2\n    SOBEL_MUL 5, data_p2\n    SOBEL_MUL 6, data_n1\n    SOBEL_ADD 8\n\n    cvtsi2ss  xmm5, rd\n    fmaddss xmm4, xmm5, xmm5, xmm4\n\n    sqrtps    xmm4, xmm4\n    fmaddss   xmm4, xmm4, xm0, xm1     ;sum = sum * rdiv + bias\n    cvttps2dq xmm4, xmm4     ; trunc to integer\n    packssdw  xmm4, xmm4\n    packuswb  xmm4, xmm4\n    movd      rd, xmm4\n    mov       [dstq + xq], rb\n\n    add xq, 1\n    cmp xq, widthq\n    jl .loop2\n.end:\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_convolution.asm:8", "text": "cvtsi2ss  xmm5, rd\n    fmaddss xmm4, xmm5, xmm5, xmm4\n\n    sqrtps    xmm4, xmm4\n    fmaddss   xmm4, xmm4, xm0, xm1     ;sum = sum * rdiv + bias\n    cvttps2dq xmm4, xmm4     ; trunc to integer\n    packssdw  xmm4, xmm4\n    packuswb  xmm4, xmm4\n    movd      rd, xmm4\n    mov       [dstq + xq], rb\n\n    add xq, 1\n    cmp xq, widthq\n    jl .loop2\n.end:\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nFILTER_SOBEL\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_convolution.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_convolution.asm", "line_start": 281, "line_end": 304}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_eq.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for eq filter\n;*\n;* Original MPlayer filters by Richard Felker.\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal process_one_line, 5, 7, 5, src, dst, contrast, brightness, w\n    movd m3, contrastd\n    movd m4, brightnessd\n    movsx r5d, contrastw\n    movsx r6d, brightnessw\n    SPLATW m3, m3, 0\n    SPLATW m4, m4, 0\n\n    DEFINE_ARGS src, dst, tmp, scalar, w\n    xor tmpd, tmpd\n    pxor m0, m0\n    pxor m1, m1\n    mov scalard, wd\n    and scalard, mmsize-1\n    sar wd, 4\n    cmp wd, 1\n    jl .loop1\n\n    .loop0:\n        movu m1, [srcq]\n        mova m2, m1\n        punpcklbw m1, m0\n        punpckhbw m2, m0\n        psllw m1, 4\n        psllw m2, 4\n        pmulhw m1, m3\n        pmulhw m2, m3\n        paddw m1, m4\n        paddw m2, m4\n        packuswb m1, m2\n        movu [dstq], m1\n        add srcq, mmsize\n        add dstq, mmsize", "arch": "x86_64", "syntax": "masm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_eq.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_eq.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_eq.asm:2", "text": "and scalard, mmsize-1\n    sar wd, 4\n    cmp wd, 1\n    jl .loop1\n\n    .loop0:\n        movu m1, [srcq]\n        mova m2, m1\n        punpcklbw m1, m0\n        punpckhbw m2, m0\n        psllw m1, 4\n        psllw m2, 4\n        pmulhw m1, m3\n        pmulhw m2, m3\n        paddw m1, m4\n        paddw m2, m4\n        packuswb m1, m2\n        movu [dstq], m1\n        add srcq, mmsize\n        add dstq, mmsize\n        sub wd, 1\n        cmp wd, 0\n        jne .loop0\n\n    .loop1:\n        cmp scalard, 0\n        je .end\n        movzx tmpd, byte [srcq]\n        imul tmpd, r5d\n        sar tmpd, 12\n        add tmpd, r6d\n        movd m1, tmpd\n        packuswb m1, m0\n        movd tmpd, m1\n        mov [dstq], tmpb\n        inc srcq\n        inc dstq\n        dec scalard\n        jmp .loop1\n\n    .end:\n        RET", "arch": "x86_64", "syntax": "masm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_eq.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_eq.asm", "line_start": 41, "line_end": 82}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_framerate.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for framerate filter\n;*\n;* Copyright (C) 2018 Marton Balint\n;*\n;* Based on vf_blend.asm, Copyright (C) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n\n%macro XSPLAT 3\n%if cpuflag(avx2)\n    vpbroadcast%3  %1, %2\n%else\n    movd           %1, %2\n%ifidn %3, d\n    SPLATD         %1\n%else\n    SPLATW         %1, %1\n%endif\n%endif\n%endmacro\n\n\n%macro BLEND_INIT 0-1\n%if ARCH_X86_64\ncglobal blend_frames%1, 6, 9, 5, src1, src1_linesize, src2, src2_linesize, dst, dst_linesize, width, end, x\n    mov    widthd, dword widthm\n%else\ncglobal blend_frames%1, 5, 7, 5, src1, src1_linesize, src2, src2_linesize, dst, end, x\n%define dst_linesizeq r5mp\n%define widthq r6mp\n%endif\n    mov      endd, dword r7m\n    add     src1q, widthq\n    add     src2q, widthq\n    add      dstq, widthq\n    neg    widthq\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_framerate.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_framerate.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_framerate.asm:2", "text": "%endmacro\n\n\n%macro BLEND_INIT 0-1\n%if ARCH_X86_64\ncglobal blend_frames%1, 6, 9, 5, src1, src1_linesize, src2, src2_linesize, dst, dst_linesize, width, end, x\n    mov    widthd, dword widthm\n%else\ncglobal blend_frames%1, 5, 7, 5, src1, src1_linesize, src2, src2_linesize, dst, end, x\n%define dst_linesizeq r5mp\n%define widthq r6mp\n%endif\n    mov      endd, dword r7m\n    add     src1q, widthq\n    add     src2q, widthq\n    add      dstq, widthq\n    neg    widthq\n%endmacro\n\n\n%macro BLEND_LOOP 4\n.nextrow:\n    mov        xq, widthq\n\n    .loop:\n        movu            m0, [src1q + xq]\n        movu            m1, [src2q + xq]\n        SBUTTERFLY    %1%2, 0, 1, 4         ; aAbBcCdD\n                                            ; eEfFgGhH\n        pmadd%3         m0, m2\n        pmadd%3         m1, m2\n\n        padd%2          m0, m3\n        padd%2          m1, m3\n        psrl%2          m0, %4              ; 0A0B0C0D\n        psrl%2          m1, %4              ; 0E0F0G0H\n\n        packus%2%1      m0, m1              ; ABCDEFGH\n        movu   [dstq + xq], m0\n        add             xq, mmsize\n    jl .loop\n    add     src1q, src1_linesizeq\n    add     src2q, src2_linesizeq\n    add      dstq, dst_linesizeq\n    sub      endd, 1\n    jg .nextrow\nRET\n%endmacro\n\n\n%macro BLEND_FRAMES 0\n    BLEND_INIT\n\n    XSPLAT     m2, r8m, w                   ; factor1\n    XSPLAT     m3, r9m, w                   ; factor2\n\n    psllw      m3, 8\n    por        m2, m3                       ; interleaved factors\n\n    XSPLAT     m3, r10m, w                  ; half", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_framerate.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_framerate.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_framerate.asm:3", "text": "jl .loop\n    add     src1q, src1_linesizeq\n    add     src2q, src2_linesizeq\n    add      dstq, dst_linesizeq\n    sub      endd, 1\n    jg .nextrow\nRET\n%endmacro\n\n\n%macro BLEND_FRAMES 0\n    BLEND_INIT\n\n    XSPLAT     m2, r8m, w                   ; factor1\n    XSPLAT     m3, r9m, w                   ; factor2\n\n    psllw      m3, 8\n    por        m2, m3                       ; interleaved factors\n\n    XSPLAT     m3, r10m, w                  ; half\n\n    BLEND_LOOP  b, w, ubsw, 7\n%endmacro\n\n\n%macro BLEND_FRAMES16 0\n    BLEND_INIT 16\n\n    XSPLAT     m2, r8m, d                   ; factor1\n    XSPLAT     m3, r9m, d                   ; factor2\n\n    pslld      m3, 16\n    por        m2, m3                       ; interleaved factors\n\n    XSPLAT     m3, r10m, d                  ; half\n\n    BLEND_LOOP  w, d, wd, 15\n%endmacro\n\n\nINIT_XMM ssse3\nBLEND_FRAMES\n\nINIT_XMM sse4\nBLEND_FRAMES16\n\n\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\nBLEND_FRAMES\nBLEND_FRAMES16\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_framerate.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_framerate.asm", "line_start": 81, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_framerate.asm:4", "text": "INIT_XMM ssse3\nBLEND_FRAMES\n\nINIT_XMM sse4\nBLEND_FRAMES16\n\n\n%if HAVE_AVX2_EXTERNAL\n\nINIT_YMM avx2\nBLEND_FRAMES\nBLEND_FRAMES16\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_framerate.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_framerate.asm", "line_start": 121, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for fspp filter\n;*\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern fspp_dither\npw_4546: times 8 dw 0x4546 ; FIX(1.082392200, 13)*2\npw_61F8: times 8 dw 0x61F8 ; FIX(0.382683433, 14)*4\npw_539F: times 8 dw 0x539F ; FIX(1.306562965, 14)\npw_5A82: times 8 dw 0x5A82 ; FIX(1.414213562, 14)\npw_7642: times 8 dw 0x7642 ; FIX(1.847759065, 13)*2\npw_AC62: times 8 dw 0xAC62 ; FIX(-2.613125930, 13)\npw_2:    times 8 dw 2\npw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14)\npw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13)\npw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13)\npw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13)\npw_4:    times 4 dw 4\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_XMM sse2\n\n;void ff_store_slice_sse2(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:2", "text": "SECTION .text\n\n%define DCTSIZE 8\n\nINIT_XMM sse2\n\n;void ff_store_slice_sse2(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m4, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    neg       tmpq\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 4\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m1, m1\n\n.loop_height:\n    movq      m3, [ditherq]\n    punpcklbw m3, m1\n    mov       tmp2q, widthq\n    psraw     m3, m4\n\n.loop_width:\n    mova      m0, [srcq]\n    mova      [srcq+tmpq], m1\n    paddw     m0, m3\n    mova      [srcq], m1\n    psraw     m0, m2\n    packuswb  m0, m0\n    add       srcq, 16\n    movq      [dstq], m0\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:3", "text": "punpcklbw m3, m1\n    mov       tmp2q, widthq\n    psraw     m3, m4\n\n.loop_width:\n    mova      m0, [srcq]\n    mova      [srcq+tmpq], m1\n    paddw     m0, m3\n    mova      [srcq], m1\n    psraw     m0, m2\n    packuswb  m0, m0\n    add       srcq, 16\n    movq      [dstq], m0\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_store_slice2_sse2(uint8_t *dst, int16_t *src,\n;                          ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                          ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice2, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice2, 0, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m4, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m1, m1\n\n.loop_height:\n    movq      m3, [ditherq]\n    punpcklbw m3, m1\n    mov       tmp2q,widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:4", "text": "mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m4, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m1, m1\n\n.loop_height:\n    movq      m3, [ditherq]\n    punpcklbw m3, m1\n    mov       tmp2q,widthq\n    psraw     m3, m4\n\n.loop_width:\n    mova      m0, [srcq]\n    paddw     m0, m3\n    paddw     m0, [srcq+tmpq]\n    mova      [srcq+tmpq], m1\n    psraw     m0, m2\n    packuswb  m0, m0\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1\n    mova      m1, [srcq+DCTSIZE*0*2]\n    mova      m7, [srcq+DCTSIZE*3*2]\n    mova      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    mova      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    mova      m5, m1\n    mova      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    mova      m2, [srcq+DCTSIZE*2*2]\n    mova      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    mova      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    mova      m2, m5\n%if ARCH_X86_64\n    mova      m8, [thrq]\n%define THRQ m8\n%else\n%define THRQ [thrq]\n%endif\n    paddw     m5, m6\n    psubw     m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "mova      m5, m1\n    mova      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    mova      m2, [srcq+DCTSIZE*2*2]\n    mova      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    mova      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    mova      m2, m5\n%if ARCH_X86_64\n    mova      m8, [thrq]\n%define THRQ m8\n%else\n%define THRQ [thrq]\n%endif\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    mova      m6, [thrq+4*16]\n    psllw     m7, 1\n    psubw     m5, THRQ\n    psubw     m2, m6\n    paddusw   m5, THRQ\n    paddusw   m2, m6\n    pmulhw    m7, SQRT2\n    paddw     m5, THRQ\n    paddw     m2, m6\n    psubusw   m5, THRQ\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    mova      m6, m2\n    paddw     m2, m5\n%if ARCH_X86_64\n    mova      m8, [thrq+2*16]\n%define THRQ m8\n%else\n%define THRQ [thrq+2*16]\n%endif\n    psubw     m5, m6\n    mova      m6, m1\n    paddw     m1, m7\n    psubw     m1, THRQ\n    psubw     m6, m7\n    mova      m7, [thrq+6*16]\n    psraw     m5, 2\n    paddusw   m1, THRQ\n    psubw     m6, m7\n    paddw     m1, THRQ\n    paddusw   m6, m7\n    psubusw   m1, THRQ\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    mova      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "%endif\n    psubw     m5, m6\n    mova      m6, m1\n    paddw     m1, m7\n    psubw     m1, THRQ\n    psubw     m6, m7\n    mova      m7, [thrq+6*16]\n    psraw     m5, 2\n    paddusw   m1, THRQ\n    psubw     m6, m7\n    paddw     m1, THRQ\n    paddusw   m6, m7\n    psubusw   m1, THRQ\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    mova      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    mova      m7, m2\n    pmulhw    m1, SQRT2\n    paddw     m2, m6\n    mova    tmp0, m2\n    psubw     m7, m6\n    mova      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    mova      m6, m5\n    mova    tmp3, m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    mova      m7, m3\n    psubw     m3, m4\n    psllw     m7, 1\n    pmulhw    m3, [pw_61F8]\n    psllw     m4, 2\n    add     srcq, 32\n    pmulhw    m7, [pw_4546]\n    psllw     m2, 1\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, SQRT2\n    psubw     m6, m1\n    paddw     m7, m3\n    mova    tmp1, m5\n    paddw     m4, m3\n    mova      m3, [thrq+3*16]\n    mova      m1, m0\n    mova    tmp2, m6\n    psubw     m1, m2\n    paddw     m0, m2\n    mova      m5, m1\n    mova      m2, [thrq+5*16]\n    psubw     m1, m7\n    paddw     m5, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "psllw     m4, 2\n    add     srcq, 32\n    pmulhw    m7, [pw_4546]\n    psllw     m2, 1\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, SQRT2\n    psubw     m6, m1\n    paddw     m7, m3\n    mova    tmp1, m5\n    paddw     m4, m3\n    mova      m3, [thrq+3*16]\n    mova      m1, m0\n    mova    tmp2, m6\n    psubw     m1, m2\n    paddw     m0, m2\n    mova      m5, m1\n    mova      m2, [thrq+5*16]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    mova      m7, [thrq+16]\n    psubw     m5, m2\n    mova      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    mova      m4, [thrq+7*16]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    mova      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n%if ARCH_X86_64\n    movq    tmpq, m4\n%else\n    packssdw  m4, m4\n    movd    tmpd, m4\n%endif\n    or      tmpq, tmpq\n    jnz %1\n    mova      m4, tmp0\n    psraw     m3, m0, 2\n    mova      m5, [outq+DCTSIZE*0*2]\n    pmulhw    m1, m0, [pw_7642]\n    pmulhw    m2, m0, [pw_4546]\n    pmulhw    m0, SQRT2\n    paddw     m5, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n%if ARCH_X86_64\n    movq    tmpq, m4\n%else\n    packssdw  m4, m4\n    movd    tmpd, m4\n%endif\n    or      tmpq, tmpq\n    jnz %1\n    mova      m4, tmp0\n    psraw     m3, m0, 2\n    mova      m5, [outq+DCTSIZE*0*2]\n    pmulhw    m1, m0, [pw_7642]\n    pmulhw    m2, m0, [pw_4546]\n    pmulhw    m0, SQRT2\n    paddw     m5, m4\n    mova      m6, tmp1\n    psubw     m2, m1\n    psubw     m4, m3\n    mova      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    mova      m3, tmp2\n    psubw     m6, m1\n    mova      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m1\n    mova  [outq], m5\n    paddw     m4, m3\n    mova      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m0\n    mova      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m0\n    mova      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    mova      m0, tmp3\n    mova      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    mova      [outq+DCTSIZE*2*2], m4\n    paddw     m0, m2\n    mova      m7, [outq+DCTSIZE*4*2]\n    psubw     m6, m2\n    mova      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    mova      [outq+DCTSIZE*3*2], m6\n    mova      [outq+DCTSIZE*4*2], m7\n    add     outq, 32\n%endmacro\n\n%macro COLUMN_IDCT 0\n    mova      m3, m5\n    psubw     m5, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "paddw     m4, m0\n    mova      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    mova      m0, tmp3\n    mova      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    mova      [outq+DCTSIZE*2*2], m4\n    paddw     m0, m2\n    mova      m7, [outq+DCTSIZE*4*2]\n    psubw     m6, m2\n    mova      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    mova      [outq+DCTSIZE*3*2], m6\n    mova      [outq+DCTSIZE*4*2], m7\n    add     outq, 32\n%endmacro\n\n%macro COLUMN_IDCT 0\n    mova      m3, m5\n    psubw     m5, m1\n    paddw     m3, m1\n    mova      m2, m0\n    psubw     m0, m6\n    psllw     m1, m5, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_7642]\n    paddw     m2, m6\n    pmulhw    m0, [pw_4546]\n    mova      m7, m2\n    mova      m4, tmp0\n    psubw     m2, m3\n    paddw     m7, m3\n    pmulhw    m2, SQRT2\n    mova      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    mova      m3, tmp1\n    paddw     m4, m7\n    mova      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    mova  [outq], m4\n    psubw     m1, m7\n    mova      m7, tmp2\n    psubw     m0, m5\n    mova      m6, tmp3\n    mova      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    mova      [outq+DCTSIZE*6*2], m5\n    mova      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    mova      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "mova      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    mova  [outq], m4\n    psubw     m1, m7\n    mova      m7, tmp2\n    psubw     m0, m5\n    mova      m6, tmp3\n    mova      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    mova      [outq+DCTSIZE*6*2], m5\n    mova      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    mova      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    mova      [outq+DCTSIZE*2*2], m7\n    mova      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    mova      [outq+DCTSIZE*5*2], m4\n    mova      [outq+DCTSIZE*4*2], m6\n    mova      [outq+DCTSIZE*3*2], m1\n    add     outq, 32\n%endmacro\n\n;void ff_column_fidct_sse2(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 8+5*ARCH_X86_64, 64*!ARCH_X86_64, thr, src, out, cnt, tmp\n%if ARCH_X86_64\n    %define tmp0 m8\n    %define tmp1 m9\n    %define tmp2 m10\n    %define tmp3 m11\n    %define SQRT2 m12\n    mova     m12, [pw_5A82]\n%else\n    %define tmp0 [rsp]\n    %define tmp1 [rsp+16]\n    %define tmp2 [rsp+2*16]\n    %define tmp3 [rsp+3*16]\n    %define SQRT2 [pw_5A82]\n%endif\n.fdct:\n    COLUMN_FDCT .idct\n    sub    cntd, 2\n    jg .fdct\n    RET\n\n.idct:\n    COLUMN_IDCT\n    sub    cntd, 2\n    jg .fdct\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": "mova     m12, [pw_5A82]\n%else\n    %define tmp0 [rsp]\n    %define tmp1 [rsp+16]\n    %define tmp2 [rsp+2*16]\n    %define tmp3 [rsp+3*16]\n    %define SQRT2 [pw_5A82]\n%endif\n.fdct:\n    COLUMN_FDCT .idct\n    sub    cntd, 2\n    jg .fdct\n    RET\n\n.idct:\n    COLUMN_IDCT\n    sub    cntd, 2\n    jg .fdct\n    RET\n\nINIT_MMX mmx\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:13", "text": "psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:14", "text": "psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:15", "text": "paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:16", "text": "punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:17", "text": "movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:18", "text": "movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd\n    jnz .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_fspp.asm", "line_start": 681, "line_end": 705}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1\n    mova      m1, [srcq+DCTSIZE*0*2]\n    mova      m7, [srcq+DCTSIZE*3*2]\n    mova      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    mova      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    mova      m5, m1\n    mova      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    mova      m2, [srcq+DCTSIZE*2*2]\n    mova      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    mova      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    mova      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    mova      m6, [thrq+4*16]\n    psllw     m7, 1\n    psubw     m5, [thrq]\n    psubw     m2, m6\n    paddusw   m5, [thrq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "mova      m5, m1\n    mova      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    mova      m2, [srcq+DCTSIZE*2*2]\n    mova      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    mova      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    mova      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    mova      m6, [thrq+4*16]\n    psllw     m7, 1\n    psubw     m5, [thrq]\n    psubw     m2, m6\n    paddusw   m5, [thrq]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_5A82]\n    paddw     m5, [thrq]\n    paddw     m2, m6\n    psubusw   m5, [thrq]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    mova      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    mova      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16]\n    psubw     m6, m7\n    mova      m7, [thrq+6*16]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    mova      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    mova      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    mova   [rsp], m2\n    psubw     m7, m6\n    mova      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    mova      m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "psubusw   m1, [thrq+2*16]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    mova      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    mova      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    mova   [rsp], m2\n    psubw     m7, m6\n    mova      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    mova      m6, m5\n    mova      [rsp+16*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    mova      m7, m3\n    psubw     m3, m4\n    psllw     m7, 1\n    pmulhw    m3, [pw_61F8]\n    psllw     m4, 2\n    add     srcq, 32\n    pmulhw    m7, [pw_4546]\n    psllw     m2, 1\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_5A82]\n    psubw     m6, m1\n    paddw     m7, m3\n    mova      [rsp+16], m5\n    paddw     m4, m3\n    mova      m3, [thrq+3*16]\n    mova      m1, m0\n    mova      [rsp+16*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    mova      m5, m1\n    mova      m2, [thrq+5*16]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    mova      m7, [thrq+16]\n    psubw     m5, m2\n    mova      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    mova      m4, [thrq+7*16]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "mova      m1, m0\n    mova      [rsp+16*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    mova      m5, m1\n    mova      m2, [thrq+5*16]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    mova      m7, [thrq+16]\n    psubw     m5, m2\n    mova      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    mova      m4, [thrq+7*16]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    mova      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n%if ARCH_X86_64\n    movq    tmpq, m4\n%else\n    packssdw  m4, m4\n    movd    tmpd, m4\n%endif\n    or      tmpq, tmpq\n    jnz %1\n    mova      m4, [rsp]\n    psraw     m3, m0, 2\n    mova      m5, [outq+DCTSIZE*0*2]\n    pmulhw    m1, m0, [pw_7642]\n    pmulhw    m2, m0, [pw_4546]\n    pmulhw    m0, [pw_5A82]\n    paddw     m5, m4\n    mova      m6, [rsp+16]\n    psubw     m2, m1\n    psubw     m4, m3\n    mova      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    mova      m3, [rsp+16*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "jnz %1\n    mova      m4, [rsp]\n    psraw     m3, m0, 2\n    mova      m5, [outq+DCTSIZE*0*2]\n    pmulhw    m1, m0, [pw_7642]\n    pmulhw    m2, m0, [pw_4546]\n    pmulhw    m0, [pw_5A82]\n    paddw     m5, m4\n    mova      m6, [rsp+16]\n    psubw     m2, m1\n    psubw     m4, m3\n    mova      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    mova      m3, [rsp+16*2]\n    psubw     m6, m1\n    mova      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m1\n    mova  [outq], m5\n    paddw     m4, m3\n    mova      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m0\n    mova      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m0\n    mova      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    mova      m0, [rsp+16*3]\n    mova      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    mova      [outq+DCTSIZE*2*2], m4\n    paddw     m0, m2\n    mova      m7, [outq+DCTSIZE*4*2]\n    psubw     m6, m2\n    mova      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    mova      [outq+DCTSIZE*3*2], m6\n    mova      [outq+DCTSIZE*4*2], m7\n    add     outq, 32\n%endmacro\n\n%macro COLUMN_IDCT 0\n    mova      m3, m5\n    psubw     m5, m1\n    paddw     m3, m1\n    mova      m2, m0\n    psubw     m0, m6\n    psllw     m1, m5, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_7642]\n    paddw     m2, m6\n    pmulhw    m0, [pw_4546]\n    mova      m7, m2\n    mova      m4, [rsp]\n    psubw     m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "mova      [outq+DCTSIZE*3*2], m6\n    mova      [outq+DCTSIZE*4*2], m7\n    add     outq, 32\n%endmacro\n\n%macro COLUMN_IDCT 0\n    mova      m3, m5\n    psubw     m5, m1\n    paddw     m3, m1\n    mova      m2, m0\n    psubw     m0, m6\n    psllw     m1, m5, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_7642]\n    paddw     m2, m6\n    pmulhw    m0, [pw_4546]\n    mova      m7, m2\n    mova      m4, [rsp]\n    psubw     m2, m3\n    paddw     m7, m3\n    pmulhw    m2, [pw_5A82]\n    mova      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    mova      m3, [rsp+16]\n    paddw     m4, m7\n    mova      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    mova  [outq], m4\n    psubw     m1, m7\n    mova      m7, [rsp+16*2]\n    psubw     m0, m5\n    mova      m6, [rsp+16*3]\n    mova      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    mova      [outq+DCTSIZE*6*2], m5\n    mova      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    mova      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    mova      [outq+DCTSIZE*2*2], m7\n    mova      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    mova      [outq+DCTSIZE*5*2], m4\n    mova      [outq+DCTSIZE*4*2], m6\n    mova      [outq+DCTSIZE*3*2], m1\n    add     outq, 32\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "mova      [outq+DCTSIZE*6*2], m5\n    mova      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    mova      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    mova      [outq+DCTSIZE*2*2], m7\n    mova      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    mova      [outq+DCTSIZE*5*2], m4\n    mova      [outq+DCTSIZE*4*2], m6\n    mova      [outq+DCTSIZE*3*2], m1\n    add     outq, 32\n%endmacro\n\n;void ff_column_fidct_sse2(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 8, 64, thr, src, out, cnt, tmp\n.fdct:\n    COLUMN_FDCT .idct\n    sub    cntd, 2\n    jg .fdct\n    RET\n\n.idct:\n    COLUMN_IDCT\n    sub    cntd, 2\n    jg .fdct\n    RET\n\nINIT_MMX mmx\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": "movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:13", "text": "punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:14", "text": "psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:15", "text": "add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:16", "text": "psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:17", "text": "psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd\n    jnz .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ddd74276f85b3c53809d59ffc640b7b45f5a125f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd74276f85b3c53809d59ffc640b7b45f5a125f/libavfilter/x86/vf_fspp.asm", "line_start": 641, "line_end": 679}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for fspp filter\n;*\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern fspp_dither\npw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14)\npw_61F8: times 4 dw 0x61F8 ; 4*FIX(0.382683433, 14)\npw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13)\npw_4546: times 4 dw 0x4546 ; 2*FIX(1.082392200, 13)\npw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13)\npw_539F: times 4 dw 0x539F ; FIX64(1.306562965, 14)\npw_5A82: times 4 dw 0x5A82 ; FIX64(1.414213562, 14)\npw_7642: times 4 dw 0x7642 ; 2*FIX(1.847759065, 13)\npw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13)\npw_AC62: times 4 dw 0xAC62 ; FIX64(-2.613125930, 13)\npw_4:    times 4 dw 4\npw_2:    times 4 dw 2\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_XMM sse2\n\n;void ff_store_slice_sse2(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 1\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 1\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_5A82]\n    paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m7, 1\n    pmulhw    m3, [pw_61F8]\n    psllw     m4, 2\n    pmulhw    m7, [pw_4546]\n    psllw     m2, 1\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_5A82]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    psraw     m3, m0, 2\n    mova      m5, [outq+DCTSIZE*0*2]\n    pmulhw    m1, m0, [pw_7642]\n    pmulhw    m2, m0, [pw_4546]\n    pmulhw    m0, [pw_5A82]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psubw     m2, m1\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m1\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m1\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "pmulhw    m0, [pw_5A82]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psubw     m2, m1\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m1\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m1\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m0\n    movq      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m0\n    movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    paddw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    psubw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    psllw     m1, m5, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_7642]\n    paddw     m2, m6\n    pmulhw    m0, [pw_4546]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    paddw     m7, m3\n    pmulhw    m2, [pw_5A82]\n    movq      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    psllw     m1, m5, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_7642]\n    paddw     m2, m6\n    pmulhw    m0, [pw_4546]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    paddw     m7, m3\n    pmulhw    m2, [pw_5A82]\n    movq      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    movq      m3, [rsp+8]\n    paddw     m4, m7\n    movq      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    movq      [outq], m4\n    psubw     m1, m7\n    movq      m7, [rsp+8*2]\n    psubw     m0, m5\n    movq      m6, [rsp+8*3]\n    movq      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\nINIT_MMX mmx\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp\n.fdct1:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\nINIT_MMX mmx\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp\n.fdct1:\n    COLUMN_FDCT .idct1\n    jmp .fdct2\n\n.idct1:\n    COLUMN_IDCT\n\n.fdct2:\n    COLUMN_FDCT .idct2, 8, 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n.idct2:\n    COLUMN_IDCT 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": "add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:13", "text": "movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:14", "text": "paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:15", "text": "movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:16", "text": "punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:17", "text": "psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd\n    jnz .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "63493bf0e0909e701b64392be419f69491b8cbf1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63493bf0e0909e701b64392be419f69491b8cbf1/libavfilter/x86/vf_fspp.asm", "line_start": 641, "line_end": 682}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for fspp filter\n;*\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern fspp_dither\npw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14)\npw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13)\npw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13)\npw_539F: times 4 dw 0x539F ; FIX64(1.306562965, 14)\npw_5A82: times 4 dw 0x5A82 ; FIX64(1.414213562, 14)\npw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13)\npw_AC62: times 4 dw 0xAC62 ; FIX64(-2.613125930, 13)\npw_4:    times 4 dw 4\npw_2:    times 4 dw 2\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_XMM sse2\n\n;void ff_store_slice_sse2(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:2", "text": "%define DCTSIZE 8\n\nINIT_XMM sse2\n\n;void ff_store_slice_sse2(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m4, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    neg       tmpq\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 4\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m1, m1\n\n.loop_height:\n    movq      m3, [ditherq]\n    punpcklbw m3, m1\n    mov       tmp2q, widthq\n    psraw     m3, m4\n\n.loop_width:\n    mova      m0, [srcq]\n    mova      [srcq+tmpq], m1\n    paddw     m0, m3\n    mova      [srcq], m1\n    psraw     m0, m2\n    packuswb  m0, m0\n    add       srcq, 16\n    movq      [dstq], m0\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:3", "text": ".loop_width:\n    mova      m0, [srcq]\n    mova      [srcq+tmpq], m1\n    paddw     m0, m3\n    mova      [srcq], m1\n    psraw     m0, m2\n    packuswb  m0, m0\n    add       srcq, 16\n    movq      [dstq], m0\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_store_slice2_sse2(uint8_t *dst, int16_t *src,\n;                          ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                          ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice2, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice2, 0, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m4, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m1, m1\n\n.loop_height:\n    movq      m3, [ditherq]\n    punpcklbw m3, m1\n    mov       tmp2q,widthq\n    psraw     m3, m4\n\n.loop_width:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:4", "text": "movd      m4, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m1, m1\n\n.loop_height:\n    movq      m3, [ditherq]\n    punpcklbw m3, m1\n    mov       tmp2q,widthq\n    psraw     m3, m4\n\n.loop_width:\n    mova      m0, [srcq]\n    paddw     m0, m3\n    paddw     m0, [srcq+tmpq]\n    mova      [srcq+tmpq], m1\n    psraw     m0, m2\n    packuswb  m0, m0\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "cglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_2D41]\n    paddw     m5, [thrq+%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_2D41]\n    paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m3, 2\n    psllw     m7, 2\n    pmulhw    m3, [pw_187E]\n    psllw     m4, 2\n    pmulhw    m7, [pw_22A3]\n    psllw     m2, 2\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_2D41]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    psraw     m3, m0, 2\n    psllw     m0, 1\n    mova      m5, [outq+DCTSIZE*0*2]\n    pmulhw    m1, m0, [pw_3B21]\n    pmulhw    m2, m0, [pw_22A3]\n    pmulhw    m0, [pw_2D41]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psubw     m2, m1\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m1\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m1\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "paddw     m5, m4\n    movq      m6, [rsp+8]\n    psubw     m2, m1\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    psubw     m1, m3\n    mova      [outq+DCTSIZE*7*2], m4\n    psubw     m0, m1\n    paddw     m2, m0\n    mova      [outq+DCTSIZE*0*2], m5\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m1\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m1\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m0\n    movq      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m0\n    movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    paddw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    psubw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]\n    movq      m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]\n    movq      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    movq      m3, [rsp+8]\n    paddw     m4, m7\n    movq      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    movq      [outq], m4\n    psubw     m1, m7\n    movq      m7, [rsp+8*2]\n    psubw     m0, m5\n    movq      m6, [rsp+8*3]\n    movq      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\nINIT_MMX mmx\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\nINIT_MMX mmx\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp\n.fdct1:\n    COLUMN_FDCT .idct1\n    jmp .fdct2\n\n.idct1:\n    COLUMN_IDCT\n\n.fdct2:\n    COLUMN_FDCT .idct2, 8, 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n.idct2:\n    COLUMN_IDCT 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": ";void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:13", "text": "movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:14", "text": "paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:15", "text": "movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:16", "text": "punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:17", "text": "psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd\n    jnz .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "66af18d06a3faf9f8960ad6bd5a400701a0cdaab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66af18d06a3faf9f8960ad6bd5a400701a0cdaab/libavfilter/x86/vf_fspp.asm", "line_start": 641, "line_end": 684}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for fspp filter\n;*\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern fspp_dither\npw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14)\npw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13)\npw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13)\npw_539F: times 4 dw 0x539F ; FIX64(1.306562965, 14)\npw_5A82: times 4 dw 0x5A82 ; FIX64(1.414213562, 14)\npw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13)\npw_AC62: times 4 dw 0xAC62 ; FIX64(-2.613125930, 13)\npw_3642: times 4 dw 0x3642 ; FIX64(0.847759065, 14)\npw_2441: times 4 dw 0x2441 ; FIX64(0.566454497, 14)\npw_0CBB: times 4 dw 0x0CBB ; FIX64(0.198912367, 14)\npw_4:    times 4 dw 4\npw_2:    times 4 dw 2\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_XMM sse2\n\n;void ff_store_slice_sse2(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 5, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 5, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ff85a20b7db4d3226ada8533b181989944f30e75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ff85a20b7db4d3226ada8533b181989944f30e75/libavfilter/x86/vf_fspp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ff85a20b7db4d3226ada8533b181989944f30e75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ff85a20b7db4d3226ada8533b181989944f30e75/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_2D41]\n    paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ff85a20b7db4d3226ada8533b181989944f30e75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ff85a20b7db4d3226ada8533b181989944f30e75/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m3, 2\n    psllw     m7, 2\n    pmulhw    m3, [pw_187E]\n    psllw     m4, 2\n    pmulhw    m7, [pw_22A3]\n    psllw     m2, 2\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_2D41]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ff85a20b7db4d3226ada8533b181989944f30e75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ff85a20b7db4d3226ada8533b181989944f30e75/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    movq      m1, m0\n    pmulhw    m0, [pw_3642]\n    movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ff85a20b7db4d3226ada8533b181989944f30e75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ff85a20b7db4d3226ada8533b181989944f30e75/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m1\n    movq      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m1\n    movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    psubw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    paddw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]\n    movq      m6, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "ff85a20b7db4d3226ada8533b181989944f30e75", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ff85a20b7db4d3226ada8533b181989944f30e75/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for fspp filter\n;*\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\ncextern fspp_dither\npw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14)\npw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13)\npw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13)\npw_539F: times 4 dw 0x539F ; FIX64(1.306562965, 14)\npw_5A82: times 4 dw 0x5A82 ; FIX64(1.414213562, 14)\npw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13)\npw_AC62: times 4 dw 0xAC62 ; FIX64(-2.613125930, 13)\npw_3642: times 4 dw 0x3642 ; FIX64(0.847759065, 14)\npw_2441: times 4 dw 0x2441 ; FIX64(0.566454497, 14)\npw_0CBB: times 4 dw 0x0CBB ; FIX64(0.198912367, 14)\npw_4:    times 4 dw 4\npw_2:    times 4 dw 2\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_MMX mmx\n\n;void ff_store_slice_mmx(uint8_t *dst, int16_t *src,\n;                        ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                        ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:2", "text": "SECTION .text\n\n%define DCTSIZE 8\n\nINIT_MMX mmx\n\n;void ff_store_slice_mmx(uint8_t *dst, int16_t *src,\n;                        ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                        ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    neg       tmpq\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 4\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m7, m7\n\n.loop_height:\n    movq      m3, [ditherq]\n    movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q, widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      [srcq+tmpq], m7\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    movq      [srcq+tmpq+8], m7\n    paddw     m0, m3\n    paddw     m1, m4\n    movq      [srcq], m7\n    psraw     m0, m2\n    psraw     m1, m2\n    movq      [srcq+8], m7\n    packuswb  m0, m1\n    add       srcq, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:3", "text": "movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q, widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      [srcq+tmpq], m7\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    movq      [srcq+tmpq+8], m7\n    paddw     m0, m3\n    paddw     m1, m4\n    movq      [srcq], m7\n    psraw     m0, m2\n    psraw     m1, m2\n    movq      [srcq+8], m7\n    packuswb  m0, m1\n    add       srcq, 16\n    movq      [dstq], m0\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_store_slice2_mmx(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice2, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice2, 0, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:4", "text": "%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m7, m7\n\n.loop_height:\n    movq      m3, [ditherq]\n    movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q,widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    paddw     m0, m3\n    paddw     m0, [srcq+tmpq]\n    paddw     m1, m4\n    movq      m6, [srcq+tmpq+8]\n    movq      [srcq+tmpq], m7\n    psraw     m0, m2\n    paddw     m1, m6\n    movq      [srcq+tmpq+8], m7\n    psraw     m1, m2\n    packuswb  m0, m1\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "movq      [srcq+tmpq], m7\n    psraw     m0, m2\n    paddw     m1, m6\n    movq      [srcq+tmpq+8], m7\n    psraw     m1, m2\n    packuswb  m0, m1\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_sse2(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\nINIT_XMM sse2\ncglobal mul_thrmat, 3, 3, 5, thrn, thr, q\n    movd      m4, qd\n    mova      m0, [thrnq]\n    punpcklwd m4, m4\n    mova      m1, [thrnq+16]\n    pshufd    m4, m4, 0\n    pmullw    m0, m4\n    mova      m2, [thrnq+16*2]\n    pmullw    m1, m4\n    mova      m3, [thrnq+16*3]\n    pmullw    m2, m4\n    mova      [thrq], m0\n    mova      m0, [thrnq+16*4]\n    pmullw    m3, m4\n    mova      [thrq+16], m1\n    mova      m1, [thrnq+16*5]\n    pmullw    m0, m4\n    mova      [thrq+16*2], m2\n    mova      m2, [thrnq+16*6]\n    pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "pmullw    m1, m4\n    mova      [thrq+16*3], m3\n    mova      m3, [thrnq+16*7]\n    pmullw    m2, m4\n    mova      [thrq+16*4], m0\n    pmullw    m3, m4\n    mova      [thrq+16*5], m1\n    mova      [thrq+16*6], m2\n    mova      [thrq+16*7], m3\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_2D41]\n    paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m3, 2\n    psllw     m7, 2\n    pmulhw    m3, [pw_187E]\n    psllw     m4, 2\n    pmulhw    m7, [pw_22A3]\n    psllw     m2, 2\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_2D41]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m3, 2\n    psllw     m7, 2\n    pmulhw    m3, [pw_187E]\n    psllw     m4, 2\n    pmulhw    m7, [pw_22A3]\n    psllw     m2, 2\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_2D41]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    movq      m1, m0\n    pmulhw    m0, [pw_3642]\n    movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    movq      m1, m0\n    pmulhw    m0, [pw_3642]\n    movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m1\n    movq      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m1\n    movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    psubw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    paddw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    psubw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    paddw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]\n    movq      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    movq      m3, [rsp+8]\n    paddw     m4, m7\n    movq      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    movq      [outq], m4\n    psubw     m1, m7\n    movq      m7, [rsp+8*2]\n    psubw     m0, m5\n    movq      m6, [rsp+8*3]\n    movq      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "psubw     m6, m7\n    movq      m3, [rsp+8]\n    paddw     m4, m7\n    movq      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    movq      [outq], m4\n    psubw     m1, m7\n    movq      m7, [rsp+8*2]\n    psubw     m0, m5\n    movq      m6, [rsp+8*3]\n    movq      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\nINIT_MMX mmx\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp\n.fdct1:\n    COLUMN_FDCT .idct1\n    jmp .fdct2\n\n.idct1:\n    COLUMN_IDCT\n\n.fdct2:\n    COLUMN_FDCT .idct2, 8, 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n.idct2:\n    COLUMN_IDCT 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": "COLUMN_FDCT .idct1\n    jmp .fdct2\n\n.idct1:\n    COLUMN_IDCT\n\n.fdct2:\n    COLUMN_FDCT .idct2, 8, 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n.idct2:\n    COLUMN_IDCT 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:13", "text": "punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:14", "text": "pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:15", "text": "movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:16", "text": "movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:17", "text": "punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:18", "text": "paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd\n    jnz .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "52ba2ac7bd48d09d1f8527376970e2b0e8ee5068", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52ba2ac7bd48d09d1f8527376970e2b0e8ee5068/libavfilter/x86/vf_fspp.asm", "line_start": 681, "line_end": 702}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:4", "text": "%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [fspp_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m7, m7\n\n.loop_height:\n    movq      m3, [ditherq]\n    movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q,widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    paddw     m0, m3\n    paddw     m0, [srcq+tmpq]\n    paddw     m1, m4\n    movq      m6, [srcq+tmpq+8]\n    movq      [srcq+tmpq], m7\n    psraw     m0, m2\n    paddw     m1, m6\n    movq      [srcq+tmpq+8], m7\n    psraw     m1, m2\n    packuswb  m0, m1\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_mmx(int16_t *thr_adr_noq, int16_t *thr_adr, int q);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "movq      [srcq+tmpq], m7\n    psraw     m0, m2\n    paddw     m1, m6\n    movq      [srcq+tmpq+8], m7\n    psraw     m1, m2\n    packuswb  m0, m1\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_mmx(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 0, thrn, thr, q\n    movd      m7, qd\n    movq      m0, [thrnq]\n    punpcklwd m7, m7\n    movq      m1, [thrnq+8]\n    punpckldq m7, m7\n    pmullw    m0, m7\n    movq      m2, [thrnq+8*2]\n    pmullw    m1, m7\n    movq      m3, [thrnq+8*3]\n    pmullw    m2, m7\n    movq      [thrq], m0\n    movq      m4, [thrnq+8*4]\n    pmullw    m3, m7\n    movq      [thrq+8], m1\n    movq      m5, [thrnq+8*5]\n    pmullw    m4, m7\n    movq      [thrq+8*2], m2\n    movq      m6, [thrnq+8*6]\n    pmullw    m5, m7\n    movq      [thrq+8*3], m3\n    movq      m0, [thrnq+8*7]\n    pmullw    m6, m7\n    movq      [thrq+8*4], m4\n    movq      m1, [thrnq+8*7+8]\n    pmullw    m0, m7\n    movq      [thrq+8*5], m5\n    movq      m2, [thrnq+8*7+8*2]\n    pmullw    m1, m7\n    movq      [thrq+8*6], m6\n    movq      m3, [thrnq+8*7+8*3]\n    pmullw    m2, m7\n    movq      [thrq+8*7], m0\n    movq      m4, [thrnq+8*7+8*4]\n    pmullw    m3, m7\n    movq      [thrq+8*7+8], m1\n    movq      m5, [thrnq+8*7+8*5]\n    pmullw    m4, m7\n    movq      [thrq+8*7+8*2], m2\n    movq      m6, [thrnq+8*7+8*6]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "movq      [thrq+8*3], m3\n    movq      m0, [thrnq+8*7]\n    pmullw    m6, m7\n    movq      [thrq+8*4], m4\n    movq      m1, [thrnq+8*7+8]\n    pmullw    m0, m7\n    movq      [thrq+8*5], m5\n    movq      m2, [thrnq+8*7+8*2]\n    pmullw    m1, m7\n    movq      [thrq+8*6], m6\n    movq      m3, [thrnq+8*7+8*3]\n    pmullw    m2, m7\n    movq      [thrq+8*7], m0\n    movq      m4, [thrnq+8*7+8*4]\n    pmullw    m3, m7\n    movq      [thrq+8*7+8], m1\n    movq      m5, [thrnq+8*7+8*5]\n    pmullw    m4, m7\n    movq      [thrq+8*7+8*2], m2\n    movq      m6, [thrnq+8*7+8*6]\n    pmullw    m5, m7\n    movq      [thrq+8*7+8*3], m3\n    movq      m0, [thrnq+14*8]\n    pmullw    m6, m7\n    movq      [thrq+8*7+8*4], m4\n    movq      m1, [thrnq+14*8+8]\n    pmullw    m0, m7\n    movq      [thrq+8*7+8*5], m5\n    pmullw    m1, m7\n    movq      [thrq+8*7+8*6], m6\n    movq      [thrq+14*8], m0\n    movq      [thrq+14*8+8], m1\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_2D41]\n    paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m3, 2\n    psllw     m7, 2\n    pmulhw    m3, [pw_187E]\n    psllw     m4, 2\n    pmulhw    m7, [pw_22A3]\n    psllw     m2, 2\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_2D41]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    movq      m1, m0\n    pmulhw    m0, [pw_3642]\n    movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m1\n    movq      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m1\n    movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    psubw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    paddw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]\n    movq      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    movq      m3, [rsp+8]\n    paddw     m4, m7\n    movq      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    movq      [outq], m4\n    psubw     m1, m7\n    movq      m7, [rsp+8*2]\n    psubw     m0, m5\n    movq      m6, [rsp+8*3]\n    movq      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": "paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp\n.fdct1:\n    COLUMN_FDCT .idct1\n    jmp .fdct2\n\n.idct1:\n    COLUMN_IDCT\n\n.fdct2:\n    COLUMN_FDCT .idct2, 8, 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n.idct2:\n    COLUMN_IDCT 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "9f4d5d818d709788ab6b199a634a95a2bfcd4898", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9f4d5d818d709788ab6b199a634a95a2bfcd4898/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for fspp filter\n;*\n;* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2005 Nikolaj Poroshin <porosh3@psu.ru>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_dither: db 0,  48,  12,  60,   3,  51,  15,  63, 32,  16,  44,  28,  35,  19,  47,  31, \\\n              8,  56,   4,  52,  11,  59,   7,  55, 40,  24,  36,  20,  43,  27,  39,  23, \\\n              2,  50,  14,  62,   1,  49,  13,  61, 34,  18,  46,  30,  33,  17,  45,  29, \\\n             10,  58,   6,  54,   9,  57,   5,  53, 42,  26,  38,  22,  41,  25,  37,  21\npw_187E: times 4 dw 0x187E ; FIX64(0.382683433, 14)\npw_22A3: times 4 dw 0x22A3 ; FIX64(1.082392200, 13)\npw_2D41: times 4 dw 0x2D41 ; FIX64(1.414213562, 13)\npw_539F: times 4 dw 0x539F ; FIX64(1.306562965, 14)\npw_5A82: times 4 dw 0x5A82 ; FIX64(1.414213562, 14)\npw_3B21: times 4 dw 0x3B21 ; FIX64(1.847759065, 13)\npw_AC62: times 4 dw 0xAC62 ; FIX64(-2.613125930, 13)\npw_3642: times 4 dw 0x3642 ; FIX64(0.847759065, 14)\npw_2441: times 4 dw 0x2441 ; FIX64(0.566454497, 14)\npw_0CBB: times 4 dw 0x0CBB ; FIX64(0.198912367, 14)\npw_4:    times 4 dw 4\npw_2:    times 4 dw 2\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_MMX mmx\n\n;void ff_store_slice_mmx(uint8_t *dst, int16_t *src,\n;                        ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                        ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:2", "text": "pw_0CBB: times 4 dw 0x0CBB ; FIX64(0.198912367, 14)\npw_4:    times 4 dw 4\npw_2:    times 4 dw 2\n\nSECTION .text\n\n%define DCTSIZE 8\n\nINIT_MMX mmx\n\n;void ff_store_slice_mmx(uint8_t *dst, int16_t *src,\n;                        ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                        ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice, 2, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    neg       tmpq\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [pb_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 4\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m7, m7\n\n.loop_height:\n    movq      m3, [ditherq]\n    movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q, widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      [srcq+tmpq], m7\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    movq      [srcq+tmpq+8], m7\n    paddw     m0, m3\n    paddw     m1, m4\n    movq      [srcq], m7\n    psraw     m0, m2\n    psraw     m1, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:3", "text": ".loop_height:\n    movq      m3, [ditherq]\n    movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q, widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      [srcq+tmpq], m7\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    movq      [srcq+tmpq+8], m7\n    paddw     m0, m3\n    paddw     m1, m4\n    movq      [srcq], m7\n    psraw     m0, m2\n    psraw     m1, m2\n    movq      [srcq+8], m7\n    packuswb  m0, m1\n    add       srcq, 16\n    movq      [dstq], m0\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_store_slice2_mmx(uint8_t *dst, int16_t *src,\n;                         ptrdiff_t dst_stride, ptrdiff_t src_stride,\n;                         ptrdiff_t width, ptrdiff_t height, ptrdiff_t log2_scale)\n%if ARCH_X86_64\ncglobal store_slice2, 7, 9, 0, dst, src, dst_stride, src_stride, width, dither_height, dither, tmp, tmp2\n%else\ncglobal store_slice2, 0, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:4", "text": "%else\ncglobal store_slice2, 0, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2\n%define dst_strideq r2m\n%define src_strideq r3m\n    mov       dstq, dstm\n    mov       srcq, srcm\n    mov       widthq, r4m\n    mov       dither_heightq, r5m\n    mov       ditherq, r6m ; log2_scale\n%endif\n    add       widthq, 7\n    mov       tmpq, src_strideq\n    and       widthq, ~7\n    sub       dst_strideq, widthq\n    movd      m5, ditherd ; log2_scale\n    xor       ditherq, -1 ; log2_scale\n    mov       tmp2q, tmpq\n    add       ditherq, 7 ; log2_scale\n    sub       tmp2q, widthq\n    movd      m2, ditherd ; log2_scale\n    add       tmp2q, tmp2q\n    lea       ditherq, [pb_dither]\n    mov       src_strideq, tmp2q\n    shl       tmpq, 5\n    lea       dither_heightq, [ditherq+dither_heightq*8]\n    pxor      m7, m7\n\n.loop_height:\n    movq      m3, [ditherq]\n    movq      m4, m3\n    punpcklbw m3, m7\n    punpckhbw m4, m7\n    mov       tmp2q,widthq\n    psraw     m3, m5\n    psraw     m4, m5\n\n.loop_width:\n    movq      m0, [srcq]\n    movq      m1, [srcq+8]\n    paddw     m0, m3\n    paddw     m0, [srcq+tmpq]\n    paddw     m1, m4\n    movq      m6, [srcq+tmpq+8]\n    movq      [srcq+tmpq], m7\n    psraw     m0, m2\n    paddw     m1, m6\n    movq      [srcq+tmpq+8], m7\n    psraw     m1, m2\n    packuswb  m0, m1\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:5", "text": "paddw     m0, [srcq+tmpq]\n    paddw     m1, m4\n    movq      m6, [srcq+tmpq+8]\n    movq      [srcq+tmpq], m7\n    psraw     m0, m2\n    paddw     m1, m6\n    movq      [srcq+tmpq+8], m7\n    psraw     m1, m2\n    packuswb  m0, m1\n    movq      [dstq], m0\n    add       srcq, 16\n    add       dstq, 8\n    sub       tmp2q, 8\n    jg .loop_width\n\n    add       srcq, src_strideq\n    add       ditherq, 8\n    add       dstq, dst_strideq\n    cmp       ditherq, dither_heightq\n    jl .loop_height\n    RET\n\n;void ff_mul_thrmat_mmx(int16_t *thr_adr_noq, int16_t *thr_adr, int q);\ncglobal mul_thrmat, 3, 3, 0, thrn, thr, q\n    movd      m7, qd\n    movq      m0, [thrnq]\n    punpcklwd m7, m7\n    movq      m1, [thrnq+8]\n    punpckldq m7, m7\n    pmullw    m0, m7\n    movq      m2, [thrnq+8*2]\n    pmullw    m1, m7\n    movq      m3, [thrnq+8*3]\n    pmullw    m2, m7\n    movq      [thrq], m0\n    movq      m4, [thrnq+8*4]\n    pmullw    m3, m7\n    movq      [thrq+8], m1\n    movq      m5, [thrnq+8*5]\n    pmullw    m4, m7\n    movq      [thrq+8*2], m2\n    movq      m6, [thrnq+8*6]\n    pmullw    m5, m7\n    movq      [thrq+8*3], m3\n    movq      m0, [thrnq+8*7]\n    pmullw    m6, m7\n    movq      [thrq+8*4], m4\n    movq      m1, [thrnq+8*7+8]\n    pmullw    m0, m7\n    movq      [thrq+8*5], m5\n    movq      m2, [thrnq+8*7+8*2]\n    pmullw    m1, m7\n    movq      [thrq+8*6], m6\n    movq      m3, [thrnq+8*7+8*3]\n    pmullw    m2, m7\n    movq      [thrq+8*7], m0\n    movq      m4, [thrnq+8*7+8*4]\n    pmullw    m3, m7\n    movq      [thrq+8*7+8], m1\n    movq      m5, [thrnq+8*7+8*5]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:6", "text": "movq      [thrq+8*2], m2\n    movq      m6, [thrnq+8*6]\n    pmullw    m5, m7\n    movq      [thrq+8*3], m3\n    movq      m0, [thrnq+8*7]\n    pmullw    m6, m7\n    movq      [thrq+8*4], m4\n    movq      m1, [thrnq+8*7+8]\n    pmullw    m0, m7\n    movq      [thrq+8*5], m5\n    movq      m2, [thrnq+8*7+8*2]\n    pmullw    m1, m7\n    movq      [thrq+8*6], m6\n    movq      m3, [thrnq+8*7+8*3]\n    pmullw    m2, m7\n    movq      [thrq+8*7], m0\n    movq      m4, [thrnq+8*7+8*4]\n    pmullw    m3, m7\n    movq      [thrq+8*7+8], m1\n    movq      m5, [thrnq+8*7+8*5]\n    pmullw    m4, m7\n    movq      [thrq+8*7+8*2], m2\n    movq      m6, [thrnq+8*7+8*6]\n    pmullw    m5, m7\n    movq      [thrq+8*7+8*3], m3\n    movq      m0, [thrnq+14*8]\n    pmullw    m6, m7\n    movq      [thrq+8*7+8*4], m4\n    movq      m1, [thrnq+14*8+8]\n    pmullw    m0, m7\n    movq      [thrq+8*7+8*5], m5\n    pmullw    m1, m7\n    movq      [thrq+8*7+8*6], m6\n    movq      [thrq+14*8], m0\n    movq      [thrq+14*8+8], m1\n    RET\n\n%macro COLUMN_FDCT 1-3 0, 0\n    movq      m1, [srcq+DCTSIZE*0*2]\n    movq      m7, [srcq+DCTSIZE*3*2]\n    movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:7", "text": "movq      m0, m1\n    paddw     m1, [srcq+DCTSIZE*7*2]\n    movq      m3, m7\n    paddw     m7, [srcq+DCTSIZE*4*2]\n    movq      m5, m1\n    movq      m6, [srcq+DCTSIZE*1*2]\n    psubw     m1, m7\n    movq      m2, [srcq+DCTSIZE*2*2]\n    movq      m4, m6\n    paddw     m6, [srcq+DCTSIZE*6*2]\n    paddw     m5, m7\n    paddw     m2, [srcq+DCTSIZE*5*2]\n    movq      m7, m6\n    paddw     m6, m2\n    psubw     m7, m2\n    movq      m2, m5\n    paddw     m5, m6\n    psubw     m2, m6\n    paddw     m7, m1\n    movq      m6, [thrq+4*16+%2]\n    psllw     m7, 2\n    psubw     m5, [thrq+%2]\n    psubw     m2, m6\n    paddusw   m5, [thrq+%2]\n    paddusw   m2, m6\n    pmulhw    m7, [pw_2D41]\n    paddw     m5, [thrq+%2]\n    paddw     m2, m6\n    psubusw   m5, [thrq+%2]\n    psubusw   m2, m6\n    paddw     m5, [pw_2]\n    movq      m6, m2\n    paddw     m2, m5\n    psubw     m5, m6\n    movq      m6, m1\n    paddw     m1, m7\n    psubw     m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    movq      m7, [thrq+6*16+%2]\n    psraw     m5, 2\n    paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:8", "text": "paddusw   m1, [thrq+2*16+%2]\n    psubw     m6, m7\n    paddw     m1, [thrq+2*16+%2]\n    paddusw   m6, m7\n    psubusw   m1, [thrq+2*16+%2]\n    paddw     m6, m7\n    psubw     m3, [srcq+DCTSIZE*4*2]\n    psubusw   m6, m7\n    movq      m7, m1\n    psraw     m2, 2\n    psubw     m4, [srcq+DCTSIZE*6*2]\n    psubw     m1, m6\n    psubw     m0, [srcq+DCTSIZE*7*2]\n    paddw     m6, m7\n    psraw     m6, 2\n    movq      m7, m2\n    pmulhw    m1, [pw_5A82]\n    paddw     m2, m6\n    movq      [rsp], m2\n    psubw     m7, m6\n    movq      m2, [srcq+DCTSIZE*2*2]\n    psubw     m1, m6\n    psubw     m2, [srcq+DCTSIZE*5*2]\n    movq      m6, m5\n    movq      [rsp+8*3], m7\n    paddw     m3, m2\n    paddw     m2, m4\n    paddw     m4, m0\n    movq      m7, m3\n    psubw     m3, m4\n    psllw     m3, 2\n    psllw     m7, 2\n    pmulhw    m3, [pw_187E]\n    psllw     m4, 2\n    pmulhw    m7, [pw_22A3]\n    psllw     m2, 2\n    pmulhw    m4, [pw_539F]\n    paddw     m5, m1\n    pmulhw    m2, [pw_2D41]\n    psubw     m6, m1\n    paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:9", "text": "paddw     m7, m3\n    movq      [rsp+8], m5\n    paddw     m4, m3\n    movq      m3, [thrq+3*16+%2]\n    movq      m1, m0\n    movq      [rsp+8*2], m6\n    psubw     m1, m2\n    paddw     m0, m2\n    movq      m5, m1\n    movq      m2, [thrq+5*16+%2]\n    psubw     m1, m7\n    paddw     m5, m7\n    psubw     m1, m3\n    movq      m7, [thrq+16+%2]\n    psubw     m5, m2\n    movq      m6, m0\n    paddw     m0, m4\n    paddusw   m1, m3\n    psubw     m6, m4\n    movq      m4, [thrq+7*16+%2]\n    psubw     m0, m7\n    psubw     m6, m4\n    paddusw   m5, m2\n    paddusw   m6, m4\n    paddw     m1, m3\n    paddw     m5, m2\n    paddw     m6, m4\n    psubusw   m1, m3\n    psubusw   m5, m2\n    psubusw   m6, m4\n    movq      m4, m1\n    por       m4, m5\n    paddusw   m0, m7\n    por       m4, m6\n    paddw     m0, m7\n    packssdw  m4, m4\n    psubusw   m0, m7\n    movd      tmpd, m4\n    or        tmpd, tmpd\n    jnz %1\n    movq      m4, [rsp]\n    movq      m1, m0\n    pmulhw    m0, [pw_3642]\n    movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:10", "text": "movq      m4, [rsp]\n    movq      m1, m0\n    pmulhw    m0, [pw_3642]\n    movq      m2, m1\n    movq      m5, [outq+DCTSIZE*0*2]\n    movq      m3, m2\n    pmulhw    m1, [pw_2441]\n    paddw     m5, m4\n    movq      m6, [rsp+8]\n    psraw     m3, 2\n    pmulhw    m2, [pw_0CBB]\n    psubw     m4, m3\n    movq      m7, [outq+DCTSIZE*1*2]\n    paddw     m5, m3\n    movq      [outq+DCTSIZE*7*2], m4\n    paddw     m7, m6\n    movq      m3, [rsp+8*2]\n    psubw     m6, m0\n    movq      m4, [outq+DCTSIZE*2*2]\n    paddw     m7, m0\n    movq      [outq], m5\n    paddw     m4, m3\n    movq      [outq+DCTSIZE*6*2], m6\n    psubw     m3, m1\n    movq      m5, [outq+DCTSIZE*5*2]\n    paddw     m4, m1\n    movq      m6, [outq+DCTSIZE*3*2]\n    paddw     m5, m3\n    movq      m0, [rsp+8*3]\n    add       srcq, 8+%3\n    movq      [outq+DCTSIZE*1*2], m7\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*2*2], m4\n    psubw     m0, m2\n    movq      m7, [outq+DCTSIZE*4*2]\n    paddw     m6, m2\n    movq      [outq+DCTSIZE*5*2], m5\n    paddw     m7, m0\n    movq      [outq+DCTSIZE*3*2], m6\n    movq      [outq+DCTSIZE*4*2], m7\n    add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:11", "text": "add       outq, 8+%3\n%endmacro\n\n%macro COLUMN_IDCT 0-1 0\n    movq      m3, m5\n    psubw     m5, m1\n    psllw     m5, 1\n    paddw     m3, m1\n    movq      m2, m0\n    psubw     m0, m6\n    movq      m1, m5\n    psllw     m0, 1\n    pmulhw    m1, [pw_AC62]\n    paddw     m5, m0\n    pmulhw    m5, [pw_3B21]\n    paddw     m2, m6\n    pmulhw    m0, [pw_22A3]\n    movq      m7, m2\n    movq      m4, [rsp]\n    psubw     m2, m3\n    psllw     m2, 1\n    paddw     m7, m3\n    pmulhw    m2, [pw_2D41]\n    movq      m6, m4\n    psraw     m7, 2\n    paddw     m4, [outq]\n    psubw     m6, m7\n    movq      m3, [rsp+8]\n    paddw     m4, m7\n    movq      [outq+DCTSIZE*7*2], m6\n    paddw     m1, m5\n    movq      [outq], m4\n    psubw     m1, m7\n    movq      m7, [rsp+8*2]\n    psubw     m0, m5\n    movq      m6, [rsp+8*3]\n    movq      m5, m3\n    paddw     m3, [outq+DCTSIZE*1*2]\n    psubw     m5, m1\n    psubw     m2, m1\n    paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:12", "text": "paddw     m3, m1\n    movq      [outq+DCTSIZE*6*2], m5\n    movq      m4, m7\n    paddw     m7, [outq+DCTSIZE*2*2]\n    psubw     m4, m2\n    paddw     m4, [outq+DCTSIZE*5*2]\n    paddw     m7, m2\n    movq      [outq+DCTSIZE*1*2], m3\n    paddw     m0, m2\n    movq      [outq+DCTSIZE*2*2], m7\n    movq      m1, m6\n    paddw     m6, [outq+DCTSIZE*4*2]\n    psubw     m1, m0\n    paddw     m1, [outq+DCTSIZE*3*2]\n    paddw     m6, m0\n    movq      [outq+DCTSIZE*5*2], m4\n    add       srcq, 8+%1\n    movq      [outq+DCTSIZE*4*2], m6\n    movq      [outq+DCTSIZE*3*2], m1\n    add       outq, 8+%1\n%endmacro\n\n;void ff_column_fidct_mmx(int16_t *thr_adr, int16_t *data, int16_t *output, int cnt);\ncglobal column_fidct, 4, 5, 0, 32, thr, src, out, cnt, tmp\n.fdct1:\n    COLUMN_FDCT .idct1\n    jmp .fdct2\n\n.idct1:\n    COLUMN_IDCT\n\n.fdct2:\n    COLUMN_FDCT .idct2, 8, 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n.idct2:\n    COLUMN_IDCT 16\n    sub    cntd, 2\n    jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:13", "text": "jg .fdct1\n    RET\n\n;void ff_row_idct_mmx(int16_t *workspace, int16_t *output_adr, ptrdiff_t output_stride, int cnt);\ncglobal row_idct, 4, 5, 0, 16, src, dst, stride, cnt, stride3\n    add       strideq, strideq\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movq      m0, [srcq+DCTSIZE*0*2]\n    movq      m1, [srcq+DCTSIZE*1*2]\n    movq      m4, m0\n    movq      m2, [srcq+DCTSIZE*2*2]\n    punpcklwd m0, m1\n    movq      m3, [srcq+DCTSIZE*3*2]\n    punpckhwd m4, m1\n    movq      m7, m2\n    punpcklwd m2, m3\n    movq      m6, m0\n    punpckldq m0, m2\n    punpckhdq m6, m2\n    movq      m5, m0\n    punpckhwd m7, m3\n    psubw     m0, m6\n    pmulhw    m0, [pw_5A82]\n    movq      m2, m4\n    punpckldq m4, m7\n    paddw     m5, m6\n    punpckhdq m2, m7\n    movq      m1, m4\n    psllw     m0, 2\n    paddw     m4, m2\n    movq      m3, [srcq+DCTSIZE*0*2+8]\n    psubw     m1, m2\n    movq      m2, [srcq+DCTSIZE*1*2+8]\n    psubw     m0, m5\n    movq      m6, m4\n    paddw     m4, m5\n    psubw     m6, m5\n    movq      m7, m1\n    movq      m5, [srcq+DCTSIZE*2*2+8]\n    paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:14", "text": "paddw     m1, m0\n    movq      [rsp], m4\n    movq      m4, m3\n    movq      [rsp+8], m6\n    punpcklwd m3, m2\n    movq      m6, [srcq+DCTSIZE*3*2+8]\n    punpckhwd m4, m2\n    movq      m2, m5\n    punpcklwd m5, m6\n    psubw     m7, m0\n    punpckhwd m2, m6\n    movq      m0, m3\n    punpckldq m3, m5\n    punpckhdq m0, m5\n    movq      m5, m4\n    movq      m6, m3\n    punpckldq m4, m2\n    psubw     m3, m0\n    punpckhdq m5, m2\n    paddw     m6, m0\n    movq      m2, m4\n    movq      m0, m3\n    psubw     m4, m5\n    pmulhw    m0, [pw_AC62]\n    paddw     m3, m4\n    pmulhw    m3, [pw_3B21]\n    paddw     m2, m5\n    pmulhw    m4, [pw_22A3]\n    movq      m5, m2\n    psubw     m2, m6\n    paddw     m5, m6\n    pmulhw    m2, [pw_2D41]\n    paddw     m0, m3\n    psllw     m0, 3\n    psubw     m4, m3\n    movq      m6, [rsp]\n    movq      m3, m1\n    psllw     m4, 3\n    psubw     m0, m5\n    psllw     m2, 3\n    paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:15", "text": "paddw     m1, m0\n    psubw     m2, m0\n    psubw     m3, m0\n    paddw     m4, m2\n    movq      m0, m7\n    paddw     m7, m2\n    psubw     m0, m2\n    movq      m2, [pw_4]\n    psubw     m6, m5\n    paddw     m5, [rsp]\n    paddw     m1, m2\n    paddw     m5, m2\n    psraw     m1, 3\n    paddw     m7, m2\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m7, 3\n    paddw     m1, [dstq+strideq*1]\n    paddw     m0, m2\n    paddw     m7, [dstq+strideq*2]\n    paddw     m3, m2\n    movq      [dstq], m5\n    paddw     m6, m2\n    movq      [dstq+strideq*1], m1\n    psraw     m0, 3\n    movq      [dstq+strideq*2], m7\n    add       dstq, stride3q\n    movq      m5, [rsp+8]\n    psraw     m3, 3\n    paddw     m0, [dstq+strideq*2]\n    psubw     m5, m4\n    paddw     m3, [dstq+stride3q*1]\n    psraw     m6, 3\n    paddw     m4, [rsp+8]\n    paddw     m5, m2\n    paddw     m6, [dstq+strideq*4]\n    paddw     m4, m2\n    movq      [dstq+strideq*2], m0\n    psraw     m5, 3\n    paddw     m5, [dstq]\n    psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:16", "text": "psraw     m4, 3\n    paddw     m4, [dstq+strideq*1]\n    add       srcq, DCTSIZE*2*4\n    movq      [dstq+stride3q*1], m3\n    movq      [dstq+strideq*4], m6\n    movq      [dstq], m5\n    movq      [dstq+strideq*1], m4\n    sub       dstq, stride3q\n    add       dstq, 8\n    dec       r3d\n    jnz .loop\n    RET\n\n;void ff_row_fdct_mmx(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size, int cnt);\ncglobal row_fdct, 4, 5, 0, 16, src, pix, stride, cnt, stride3\n    lea       stride3q, [strideq+strideq*2]\n.loop:\n    movd      m0, [pixq]\n    pxor      m7, m7\n    movd      m1, [pixq+strideq*1]\n    punpcklbw m0, m7\n    movd      m2, [pixq+strideq*2]\n    punpcklbw m1, m7\n    punpcklbw m2, m7\n    add       pixq,stride3q\n    movq      m5, m0\n    movd      m3, [pixq+strideq*4]\n    movq      m6, m1\n    movd      m4, [pixq+stride3q*1]\n    punpcklbw m3, m7\n    psubw     m5, m3\n    punpcklbw m4, m7\n    paddw     m0, m3\n    psubw     m6, m4\n    movd      m3, [pixq+strideq*2]\n    paddw     m1, m4\n    movq      [rsp], m5\n    punpcklbw m3, m7\n    movq      [rsp+8], m6\n    movq      m4, m2\n    movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:17", "text": "movd      m5, [pixq]\n    paddw     m2, m3\n    movd      m6, [pixq+strideq*1]\n    punpcklbw m5, m7\n    psubw     m4, m3\n    punpcklbw m6, m7\n    movq      m3, m5\n    paddw     m5, m6\n    psubw     m3, m6\n    movq      m6, m0\n    movq      m7, m1\n    psubw     m0, m5\n    psubw     m1, m2\n    paddw     m7, m2\n    paddw     m1, m0\n    movq      m2, m7\n    psllw     m1, 2\n    paddw     m6, m5\n    pmulhw    m1, [pw_2D41]\n    paddw     m7, m6\n    psubw     m6, m2\n    movq      m5, m0\n    movq      m2, m7\n    punpcklwd m7, m6\n    paddw     m0, m1\n    punpckhwd m2, m6\n    psubw     m5, m1\n    movq      m6, m0\n    movq      m1, [rsp+8]\n    punpcklwd m0, m5\n    punpckhwd m6, m5\n    movq      m5, m0\n    punpckldq m0, m7\n    paddw     m3, m4\n    punpckhdq m5, m7\n    movq      m7, m6\n    movq      [srcq+DCTSIZE*0*2], m0\n    punpckldq m6, m2\n    movq      [srcq+DCTSIZE*1*2], m5\n    punpckhdq m7, m2\n    movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_fspp.asm:18", "text": "movq      [srcq+DCTSIZE*2*2], m6\n    paddw     m4, m1\n    movq      [srcq+DCTSIZE*3*2], m7\n    psllw     m3, 2\n    movq      m2, [rsp]\n    psllw     m4, 2\n    pmulhw    m4, [pw_2D41]\n    paddw     m1, m2\n    psllw     m1, 2\n    movq      m0, m3\n    pmulhw    m0, [pw_22A3]\n    psubw     m3, m1\n    pmulhw    m3, [pw_187E]\n    movq      m5, m2\n    pmulhw    m1, [pw_539F]\n    psubw     m2, m4\n    paddw     m5, m4\n    movq      m6, m2\n    paddw     m0, m3\n    movq      m7, m5\n    paddw     m2, m0\n    psubw     m6, m0\n    movq      m4, m2\n    paddw     m1, m3\n    punpcklwd m2, m6\n    paddw     m5, m1\n    punpckhwd m4, m6\n    psubw     m7, m1\n    movq      m6, m5\n    punpcklwd m5, m7\n    punpckhwd m6, m7\n    movq      m7, m2\n    punpckldq m2, m5\n    sub       pixq, stride3q\n    punpckhdq m7, m5\n    movq      m5, m4\n    movq      [srcq+DCTSIZE*0*2+8], m2\n    punpckldq m4, m6\n    movq      [srcq+DCTSIZE*1*2+8], m7\n    punpckhdq m5, m6\n    movq      [srcq+DCTSIZE*2*2+8], m4\n    add       pixq, 4\n    movq      [srcq+DCTSIZE*3*2+8], m5\n    add       srcq, DCTSIZE*4*2\n    dec       cntd\n    jnz .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_fspp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_fspp.asm", "line_start": 681, "line_end": 727}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for gblur filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .data\n\ngblur_transpose_16x16_indices1: dq 2, 3, 0, 1, 6, 7, 4, 5\ngblur_transpose_16x16_indices2: dq 1, 0, 3, 2, 5, 4, 7, 6\ngblur_transpose_16x16_indices3: dd 1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 15, 14\ngblur_transpose_16x16_mask: dw 0xcc, 0x33, 0xaa, 0x55, 0xaaaa, 0x5555\ngblur_vindex_width: dd 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15\n\nSECTION .text\n\n%xdefine AVX2_MMSIZE   32\n%xdefine AVX512_MMSIZE 64\n\n%macro MOVSXDIFNIDN 1-*\n    %rep %0\n        movsxdifnidn %1q, %1d\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro KXNOR 2-*\n%if mmsize == AVX512_MMSIZE\n    kxnorw %2, %2, %2\n%else\n    %if %0 == 3\n        mov %3, -1\n    %else\n        vpcmpeqd %1, %1, %1\n    %endif\n%endif\n%endmacro\n\n%macro KMOVW 2-4\n%if mmsize == AVX2_MMSIZE && %0 == 4\n    mova %1, %2\n%elif mmsize == AVX512_MMSIZE\n    %if %0 == 4\n        %rotate 2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:2", "text": "%endmacro\n\n%macro KXNOR 2-*\n%if mmsize == AVX512_MMSIZE\n    kxnorw %2, %2, %2\n%else\n    %if %0 == 3\n        mov %3, -1\n    %else\n        vpcmpeqd %1, %1, %1\n    %endif\n%endif\n%endmacro\n\n%macro KMOVW 2-4\n%if mmsize == AVX2_MMSIZE && %0 == 4\n    mova %1, %2\n%elif mmsize == AVX512_MMSIZE\n    %if %0 == 4\n        %rotate 2\n    %endif\n    kmovw %1, %2\n%endif\n%endmacro\n\n%macro PUSH_MASK 5\n%if mmsize == AVX2_MMSIZE\n    %assign %%n mmsize/4\n    %assign %%i 0\n    %rep %%n\n        mov %4, %3\n        and %4, 1\n        neg %4\n        mov dword [%5 + %%i*4], %4\n        sar %3, 1\n        %assign %%i %%i+1\n    %endrep\n    movu %1, [%5]\n%else\n    kmovd %2, %3\n%endif\n%endmacro\n\n%macro VMASKMOVPS 4\n%if mmsize == AVX2_MMSIZE\n    vpmaskmovd %1, %3, %2\n%else\n    kmovw k7, %4\n    vmovups %1{k7}, %2\n%endif\n%endmacro\n\n%macro VGATHERDPS 4\n%if mmsize == AVX2_MMSIZE\n    vgatherdps %1, %2, %3\n%else\n    vgatherdps %1{%4}, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:3", "text": "%endif\n%endmacro\n\n%macro VMASKMOVPS 4\n%if mmsize == AVX2_MMSIZE\n    vpmaskmovd %1, %3, %2\n%else\n    kmovw k7, %4\n    vmovups %1{k7}, %2\n%endif\n%endmacro\n\n%macro VGATHERDPS 4\n%if mmsize == AVX2_MMSIZE\n    vgatherdps %1, %2, %3\n%else\n    vgatherdps %1{%4}, %2\n%endif\n%endmacro\n\n%macro VSCATTERDPS128 7\n    %rep 4\n        mov %7, %6\n        and %7, 1\n        cmp %7, 0\n        je %%end_scatter\n        movss [%2 + %3*%4], xm%1\n        vpshufd m%1, m%1, 0x39\n        add %3, %5\n        sar %6, 1\n    %endrep\n    %%end_scatter:\n%endmacro\n\n; %1=register index\n; %2=base address   %3=vindex\n; %4=scale          %5=width\n; %6=mask           %7=tmp\n; m15=reserved\n%macro VSCATTERDPS256 7\n    mova m15, m%1\n    xor %3, %3\n    VSCATTERDPS128 15, %2, %3, %4, %5, %6, %7\n    vextractf128 xm15, m%1, 1\n    VSCATTERDPS128 15, %2, %3, %4, %5, %6, %7\n%endmacro\n\n; %1=base address  %2=avx2 vindex\n; %3=avx512 vindex %4=avx2 mask\n; %5=avx512 mask   %6=register index\n; %7=width         %8-*=tmp\n%macro VSCATTERDPS 8-*\n%if mmsize == AVX2_MMSIZE\n    %if %0 == 9\n        mov  %9, %4\n        VSCATTERDPS256 %6, %1, %2, 4, %7, %9, %8\n    %else\n        VSCATTERDPS256 %6, %1, %2, 4, %7, %4, %8\n    %endif\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:4", "text": "mova m15, m%1\n    xor %3, %3\n    VSCATTERDPS128 15, %2, %3, %4, %5, %6, %7\n    vextractf128 xm15, m%1, 1\n    VSCATTERDPS128 15, %2, %3, %4, %5, %6, %7\n%endmacro\n\n; %1=base address  %2=avx2 vindex\n; %3=avx512 vindex %4=avx2 mask\n; %5=avx512 mask   %6=register index\n; %7=width         %8-*=tmp\n%macro VSCATTERDPS 8-*\n%if mmsize == AVX2_MMSIZE\n    %if %0 == 9\n        mov  %9, %4\n        VSCATTERDPS256 %6, %1, %2, 4, %7, %9, %8\n    %else\n        VSCATTERDPS256 %6, %1, %2, 4, %7, %4, %8\n    %endif\n%else\n    vscatterdps [%1 + %3*4]{%5}, m%6\n%endif\n%endmacro\n\n%macro INIT_WORD_MASK 1-*\n    %assign %%i 0\n    %rep %0\n        kmovw %1, [gblur_transpose_16x16_mask + %%i * 2]\n        %assign %%i %%i+1\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro INIT_INDICES 1-*\n    %assign %%i 1\n    %rep %0\n        movu %1, [gblur_transpose_16x16_indices %+ %%i]\n        %assign %%i %%i+1\n        %rotate 1\n    %endrep\n%endmacro\n\n%assign stack_offset 0\n%macro PUSH_MM 1\n%if mmsize == AVX2_MMSIZE\n    movu [rsp + stack_offset], %1\n    %assign stack_offset stack_offset+mmsize\n%endif\n%endmacro\n\n%macro POP_MM 1\n%if mmsize == AVX2_MMSIZE\n    %assign stack_offset stack_offset-mmsize\n    movu %1, [rsp + stack_offset]\n%endif\n%endmacro\n\n%macro READ_LOCAL_BUFFER 1\n    %if mmsize == AVX512_MMSIZE\n        %assign %%i 19", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:5", "text": "%endmacro\n\n%assign stack_offset 0\n%macro PUSH_MM 1\n%if mmsize == AVX2_MMSIZE\n    movu [rsp + stack_offset], %1\n    %assign stack_offset stack_offset+mmsize\n%endif\n%endmacro\n\n%macro POP_MM 1\n%if mmsize == AVX2_MMSIZE\n    %assign stack_offset stack_offset-mmsize\n    movu %1, [rsp + stack_offset]\n%endif\n%endmacro\n\n%macro READ_LOCAL_BUFFER 1\n    %if mmsize == AVX512_MMSIZE\n        %assign %%i 19\n    %else\n        %assign %%i 9\n    %endif\n    %assign  %%j %%i-1\n    %assign  %%k %1-1\n    %xdefine %%m m %+ %%i\n    mova %%m, m3\n    FMULADD_PS %%m, %%m, m0, [localbufq + %%k * mmsize], %%m\n    %assign %%k %%k-1\n    %rep %1-1\n        %xdefine %%m m %+ %%j\n        mova %%m, m %+ %%i\n        FMULADD_PS %%m, %%m, m0, [localbufq + %%k * mmsize], %%m\n        %assign %%i %%i-1\n        %assign %%j %%j-1\n        %assign %%k %%k-1\n    %endrep\n    %if mmsize == AVX512_MMSIZE\n        mova m3, m %+ %%i\n    %endif\n%endmacro\n\n%macro FMADD_WRITE 4\n    FMULADD_PS %1, %1, %2, %3, %1\n    mova %4, %1\n%endmacro\n\n%macro WRITE_LOCAL_BUFFER_INTERNAL 8-16\n    %assign %%i 0\n    %rep %0\n        FMADD_WRITE m3, m0, m %+ %1,  [localbufq + %%i * mmsize]\n        %assign %%i %%i+1\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro GATHERPS 1\n    %if mmsize == AVX512_MMSIZE\n        %assign %%i 4\n    %else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:6", "text": "%endmacro\n\n%macro FMADD_WRITE 4\n    FMULADD_PS %1, %1, %2, %3, %1\n    mova %4, %1\n%endmacro\n\n%macro WRITE_LOCAL_BUFFER_INTERNAL 8-16\n    %assign %%i 0\n    %rep %0\n        FMADD_WRITE m3, m0, m %+ %1,  [localbufq + %%i * mmsize]\n        %assign %%i %%i+1\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro GATHERPS 1\n    %if mmsize == AVX512_MMSIZE\n        %assign %%i 4\n    %else\n        %assign %%i 2\n    %endif\n    movu m %+ %%i, [ptrq]\n    mov strideq, widthq\n    %assign %%i %%i+1\n    %rep %1-2\n        movu m %+ %%i, [ptrq + strideq*4]\n        add strideq, widthq\n        %assign %%i %%i+1\n    %endrep\n    movu m %+ %%i, [ptrq + strideq*4]\n%endmacro\n\n%macro SCATTERPS_INTERNAL 8-16\n    movu [ptrq + strideq*0], m %+ %1\n    mov strideq, widthq\n    %rotate 1\n    %rep %0-2\n        movu [ptrq + strideq*4], m %+ %1\n        add strideq, widthq\n        %rotate 1\n    %endrep\n    movu [ptrq + strideq*4], m %+ %1\n%endmacro\n\n%macro BATCH_INSERT64X4 4-*\n    %assign %%imm8 %1\n    %rotate 1\n    %rep (%0-1)/3\n        vinserti64x4 m%1, m%2, ym%3, %%imm8\n        %rotate 3\n    %endrep\n%endmacro\n\n%macro BATCH_EXTRACT_INSERT 2-*\n    %assign %%imm8 %1\n    %rotate 1\n    %rep (%0-1)/2\n        vextractf64x4 ym%1, m%1,       %%imm8\n        vextractf64x4 ym%2, m%2,       %%imm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:7", "text": "%rotate 1\n    %endrep\n    movu [ptrq + strideq*4], m %+ %1\n%endmacro\n\n%macro BATCH_INSERT64X4 4-*\n    %assign %%imm8 %1\n    %rotate 1\n    %rep (%0-1)/3\n        vinserti64x4 m%1, m%2, ym%3, %%imm8\n        %rotate 3\n    %endrep\n%endmacro\n\n%macro BATCH_EXTRACT_INSERT 2-*\n    %assign %%imm8 %1\n    %rotate 1\n    %rep (%0-1)/2\n        vextractf64x4 ym%1, m%1,       %%imm8\n        vextractf64x4 ym%2, m%2,       %%imm8\n        vinserti64x4   m%1, m%1, ym%2, %%imm8\n        %rotate 2\n    %endrep\n%endmacro\n\n%macro BATCH_MOVE 2-*\n    %rep %0/2\n        mova m%1, m%2\n        %rotate 2\n    %endrep\n%endmacro\n\n%macro BATCH_PERMUTE 3-*\n    %xdefine %%decorator %1\n    %xdefine %%mask      %2\n    %assign  %%index     %3\n    %rotate 3\n    %rep (%0-3)/2\n        vperm %+ %%decorator m%1{%%mask}, m %+ %%index, m%2\n        %rotate 2\n    %endrep\n%endmacro\n\n; input : m3-m19\n; output: m8 m5 m9 m15 m16 m7 m17 m27 m24 m21 m25 m19 m12 m23 m13 m11\n%macro TRANSPOSE_16X16_AVX512 0\n    BATCH_INSERT64X4 0x1, 20,4,12, 21,5,13,  22,6,14,  23,7,15\n    BATCH_INSERT64X4 0x1, 24,8,16, 25,9,17, 26,10,18, 27,11,19\n\n    BATCH_EXTRACT_INSERT 0x1, 4,12, 5,13,  6,14,  7,15\n    BATCH_EXTRACT_INSERT 0x1, 8,16, 9,17, 10,18, 11,19\n\n    BATCH_MOVE 12,20, 13,21, 14,22, 15,23\n    BATCH_PERMUTE q, k6, 28, 12,24, 13,25, 14,26, 15,27\n    BATCH_PERMUTE q, k5, 28, 24,20, 25,21, 26,22, 27,23\n\n    BATCH_MOVE 16,4, 17,5, 18,6, 19,7\n    BATCH_PERMUTE q, k6, 28, 16,8, 17,9, 18,10, 19,11\n    BATCH_PERMUTE q, k5, 28,  8,4,  9,5,  10,6,  11,7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:8", "text": "%endrep\n%endmacro\n\n; input : m3-m19\n; output: m8 m5 m9 m15 m16 m7 m17 m27 m24 m21 m25 m19 m12 m23 m13 m11\n%macro TRANSPOSE_16X16_AVX512 0\n    BATCH_INSERT64X4 0x1, 20,4,12, 21,5,13,  22,6,14,  23,7,15\n    BATCH_INSERT64X4 0x1, 24,8,16, 25,9,17, 26,10,18, 27,11,19\n\n    BATCH_EXTRACT_INSERT 0x1, 4,12, 5,13,  6,14,  7,15\n    BATCH_EXTRACT_INSERT 0x1, 8,16, 9,17, 10,18, 11,19\n\n    BATCH_MOVE 12,20, 13,21, 14,22, 15,23\n    BATCH_PERMUTE q, k6, 28, 12,24, 13,25, 14,26, 15,27\n    BATCH_PERMUTE q, k5, 28, 24,20, 25,21, 26,22, 27,23\n\n    BATCH_MOVE 16,4, 17,5, 18,6, 19,7\n    BATCH_PERMUTE q, k6, 28, 16,8, 17,9, 18,10, 19,11\n    BATCH_PERMUTE q, k5, 28,  8,4,  9,5,  10,6,  11,7\n\n    BATCH_MOVE  4,12,  5,13, 6,24, 7,25\n    BATCH_MOVE 20,16, 21,17, 22,8, 23,9\n\n    BATCH_PERMUTE q, k4, 29,  4,14,  5,15,  6,26,  7,27\n    BATCH_PERMUTE q, k3, 29, 14,12, 15,13, 26,24, 27,25\n    BATCH_PERMUTE q, k4, 29, 20,18, 21,19, 22,10, 23,11\n    BATCH_PERMUTE q, k3, 29, 18,16, 19,17,  10,8,  11,9\n\n    BATCH_MOVE   8,4,  9,14,  16,6, 17,26\n    BATCH_MOVE 24,20, 25,18, 12,22, 13,10\n\n    BATCH_PERMUTE d, k2, 30,   8,5,  9,15,  16,7, 17,27\n    BATCH_PERMUTE d, k1, 30,   5,4, 15,14,   7,6, 27,26\n    BATCH_PERMUTE d, k2, 30, 24,21, 25,19, 12,23, 13,11\n    BATCH_PERMUTE d, k1, 30, 21,20, 19,18, 23,22, 11,10\n%endmacro\n\n%macro INSERT_UNPACK 8\n    vinsertf128 m%5, m%1, xm%3, 0x1\n    vinsertf128 m%6, m%2, xm%4, 0x1\n    vunpcklpd   m%7, m%5,  m%6\n    vunpckhpd   m%8, m%5,  m%6\n%endmacro\n\n%macro SHUFFLE 4\n    vshufps m%3, m%1, m%2, 0x88\n    vshufps m%4, m%1, m%2, 0xDD\n    mova    m%1, m%3\n    mova    m%2, m%4\n%endmacro\n\n%macro EXTRACT_INSERT_UNPACK 6\n    vextractf128 xm%1, m%1,       0x1\n    vextractf128 xm%2, m%2,       0x1\n    vinsertf128   m%3, m%3, xm%1, 0x0\n    vinsertf128   m%4, m%4, xm%2, 0x0\n    vunpcklpd     m%5, m%3, m%4\n    vunpckhpd     m%6, m%3, m%4\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:9", "text": "vunpcklpd   m%7, m%5,  m%6\n    vunpckhpd   m%8, m%5,  m%6\n%endmacro\n\n%macro SHUFFLE 4\n    vshufps m%3, m%1, m%2, 0x88\n    vshufps m%4, m%1, m%2, 0xDD\n    mova    m%1, m%3\n    mova    m%2, m%4\n%endmacro\n\n%macro EXTRACT_INSERT_UNPACK 6\n    vextractf128 xm%1, m%1,       0x1\n    vextractf128 xm%2, m%2,       0x1\n    vinsertf128   m%3, m%3, xm%1, 0x0\n    vinsertf128   m%4, m%4, xm%2, 0x0\n    vunpcklpd     m%5, m%3, m%4\n    vunpckhpd     m%6, m%3, m%4\n%endmacro\n\n; Transpose 8x8 AVX2\n; Limit the number ym# register to 16 for compatibility\n; Used up registers instead of using stack memory\n; Input:  m2-m9\n; Output: m12, m14, m13, m15, m8, m10, m9, m11\n%macro TRANSPOSE_8X8_AVX2 0\n    INSERT_UNPACK 2, 3, 6, 7, 10, 11, 12, 13\n    INSERT_UNPACK 4, 5, 8, 9, 10, 11, 14, 15\n\n    SHUFFLE 12, 14, 10, 11\n    SHUFFLE 13, 15, 10, 11\n\n    EXTRACT_INSERT_UNPACK 4, 5, 8, 9, 10, 11\n    EXTRACT_INSERT_UNPACK 2, 3, 6, 7,  8, 9\n\n    SHUFFLE 8, 10, 6, 7\n    SHUFFLE 9, 11, 6, 7\n%endmacro\n\n%macro TRANSPOSE 0\n    %if cpuflag(avx512)\n        TRANSPOSE_16X16_AVX512\n    %elif cpuflag(avx2)\n        TRANSPOSE_8X8_AVX2\n    %endif\n%endmacro\n\n%macro WRITE_LOCAL_BUFFER 0\n    %if cpuflag(avx512)\n        WRITE_LOCAL_BUFFER_INTERNAL 8, 5, 9, 15, 16, 7, 17, 27, \\\n                                    24, 21, 25, 19, 12, 23, 13, 11\n    %elif cpuflag(avx2)\n        WRITE_LOCAL_BUFFER_INTERNAL 12, 14, 13, 15, 8, 10, 9, 11\n    %endif\n%endmacro\n\n%macro SCATTERPS 0\n    %if cpuflag(avx512)\n        SCATTERPS_INTERNAL 8, 5, 9, 15, 16, 7, 17, 27, \\\n                           24, 21, 25, 19, 12, 23, 13, 11", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:10", "text": "%if cpuflag(avx512)\n        TRANSPOSE_16X16_AVX512\n    %elif cpuflag(avx2)\n        TRANSPOSE_8X8_AVX2\n    %endif\n%endmacro\n\n%macro WRITE_LOCAL_BUFFER 0\n    %if cpuflag(avx512)\n        WRITE_LOCAL_BUFFER_INTERNAL 8, 5, 9, 15, 16, 7, 17, 27, \\\n                                    24, 21, 25, 19, 12, 23, 13, 11\n    %elif cpuflag(avx2)\n        WRITE_LOCAL_BUFFER_INTERNAL 12, 14, 13, 15, 8, 10, 9, 11\n    %endif\n%endmacro\n\n%macro SCATTERPS 0\n    %if cpuflag(avx512)\n        SCATTERPS_INTERNAL 8, 5, 9, 15, 16, 7, 17, 27, \\\n                           24, 21, 25, 19, 12, 23, 13, 11\n    %elif cpuflag(avx2)\n        SCATTERPS_INTERNAL 12, 14, 13, 15, 8, 10, 9, 11\n    %endif\n%endmacro\n\n%macro OPTIMIZED_LOOP_STEP 0\n    lea stepd, [stepsd - 1]\n    cmp stepd, 0\n    jle %%bscale_scalar\n%%loop_step:\n    sub localbufq, mmsize\n    mulps m3, m1\n    movu [localbufq], m3\n\n    ; Filter leftwards\n    lea xq, [widthq - 1]\n    %%loop_step_x_back:\n        sub localbufq, mmsize\n        FMULADD_PS m3, m3, m0, [localbufq], m3\n        movu [localbufq], m3\n\n        dec xq\n        cmp xq, 0\n        jg %%loop_step_x_back\n\n    ; Filter rightwards\n    mulps m3, m1\n    movu [localbufq], m3\n    add localbufq, mmsize\n\n    lea xq, [widthq - 1]\n    %%loop_step_x:\n        FMULADD_PS m3, m3, m0, [localbufq], m3\n        movu [localbufq], m3\n        add localbufq, mmsize\n\n        dec xq\n        cmp xq, 0\n        jg %%loop_step_x", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:11", "text": "dec xq\n        cmp xq, 0\n        jg %%loop_step_x_back\n\n    ; Filter rightwards\n    mulps m3, m1\n    movu [localbufq], m3\n    add localbufq, mmsize\n\n    lea xq, [widthq - 1]\n    %%loop_step_x:\n        FMULADD_PS m3, m3, m0, [localbufq], m3\n        movu [localbufq], m3\n        add localbufq, mmsize\n\n        dec xq\n        cmp xq, 0\n        jg %%loop_step_x\n\n    dec stepd\n    cmp stepd, 0\n    jg %%loop_step\n\n%%bscale_scalar:\n%endmacro\n\n;***************************************************************************\n; void ff_horiz_slice(float *ptr, int width, int height, int steps,\n;                          float nu, float bscale)\n;***************************************************************************\n%macro HORIZ_SLICE 0\n%if UNIX64\n%if cpuflag(avx512) || cpuflag(avx2)\ncglobal horiz_slice, 5, 12, mmnum, 0-mmsize*4, buffer, width, height, steps, \\\n                                          localbuf, x, y, step, stride, remain, ptr, mask\n%else\ncglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, x, y, step, stride, remain\n%endif\n%else\n%if cpuflag(avx512) || cpuflag(avx2)\ncglobal horiz_slice, 5, 12, mmnum, 0-mmsize*4, buffer, width, height, steps, nu, bscale, \\\n                                          localbuf, x, y, step, stride, remain, ptr, mask\n%else\ncglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step, stride, remain\n%endif\n%endif\n%if cpuflag(avx512) || cpuflag(avx2)\n%assign rows mmsize/4\n%assign cols mmsize/4\n%if WIN64\n    VBROADCASTSS    m0, num ; nu\n    VBROADCASTSS    m1, bscalem ; bscale\n\n    mov nuq, localbufm\n    DEFINE_ARGS buffer, width, height, steps, \\\n                localbuf, x, y, step, stride, remain, ptr, mask\n%else\n    VBROADCASTSS    m0, xmm0 ; nu\n    VBROADCASTSS    m1, xmm1 ; bscale", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:12", "text": "%if cpuflag(avx512) || cpuflag(avx2)\ncglobal horiz_slice, 5, 12, mmnum, 0-mmsize*4, buffer, width, height, steps, nu, bscale, \\\n                                          localbuf, x, y, step, stride, remain, ptr, mask\n%else\ncglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step, stride, remain\n%endif\n%endif\n%if cpuflag(avx512) || cpuflag(avx2)\n%assign rows mmsize/4\n%assign cols mmsize/4\n%if WIN64\n    VBROADCASTSS    m0, num ; nu\n    VBROADCASTSS    m1, bscalem ; bscale\n\n    mov nuq, localbufm\n    DEFINE_ARGS buffer, width, height, steps, \\\n                localbuf, x, y, step, stride, remain, ptr, mask\n%else\n    VBROADCASTSS    m0, xmm0 ; nu\n    VBROADCASTSS    m1, xmm1 ; bscale\n%endif\n\n    MOVSXDIFNIDN width, height, steps\n\n%if cpuflag(avx512)\n    vpbroadcastd    m2, widthd\n    INIT_WORD_MASK  k6, k5, k4, k3, k2, k1\n    INIT_INDICES   m28, m29, m30\n%else\n    movd         xm2, widthd\n    VBROADCASTSS  m2, xm2\n%endif\n\n    vpmulld m2, m2, [gblur_vindex_width] ; vindex width\n\n    xor yq, yq ; y = 0\n    xor xq, xq ; x = 0\n\n    cmp heightq, rows\n    jl .y_scalar\n    sub heightq, rows\n\n.loop_y:\n    ; ptr = buffer + y * width;\n    mov  ptrq, yq\n    imul ptrq, widthq\n    lea  ptrq, [bufferq + ptrq*4]\n\n    KXNOR m5, k7\n    VGATHERDPS m3, [ptrq + m2*4], m5, k7\n    mulps m3, m1\n    movu [localbufq], m3\n    add ptrq, 4\n    add localbufq, mmsize\n\n    ; Filter rightwards\n    PUSH_MM m2\n    lea xq, [widthq - 1]\n    .loop_x:\n        PUSH_MM m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:13", "text": "sub heightq, rows\n\n.loop_y:\n    ; ptr = buffer + y * width;\n    mov  ptrq, yq\n    imul ptrq, widthq\n    lea  ptrq, [bufferq + ptrq*4]\n\n    KXNOR m5, k7\n    VGATHERDPS m3, [ptrq + m2*4], m5, k7\n    mulps m3, m1\n    movu [localbufq], m3\n    add ptrq, 4\n    add localbufq, mmsize\n\n    ; Filter rightwards\n    PUSH_MM m2\n    lea xq, [widthq - 1]\n    .loop_x:\n        PUSH_MM m3\n        GATHERPS cols\n        TRANSPOSE\n        POP_MM m3\n        WRITE_LOCAL_BUFFER\n\n        add ptrq,      mmsize\n        add localbufq, rows * mmsize\n        sub xq,        cols\n        cmp xq,        cols\n        jge .loop_x\n        POP_MM m2\n\n    cmp xq, 0\n    jle .bscale_scalar\n    .loop_x_scalar:\n        KXNOR m5, k7\n        VGATHERDPS m4, [ptrq + m2*4], m5, k7\n        FMULADD_PS m3, m3, m0, m4, m3\n        movu [localbufq], m3\n\n        add ptrq,      0x4\n        add localbufq, mmsize\n        dec xq\n        cmp xq,        0\n        jg .loop_x_scalar\n\n    .bscale_scalar:\n        OPTIMIZED_LOOP_STEP\n        sub ptrq, 4\n        sub localbufq, mmsize\n        mulps m3, m1\n        KXNOR m5, k7, maskq\n        VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq\n\n    ; Filter leftwards\n    PUSH_MM m2\n    lea xq, [widthq - 1]\n    .loop_x_back:\n        sub localbufq, rows * mmsize\n        READ_LOCAL_BUFFER cols", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:14", "text": "add ptrq,      0x4\n        add localbufq, mmsize\n        dec xq\n        cmp xq,        0\n        jg .loop_x_scalar\n\n    .bscale_scalar:\n        OPTIMIZED_LOOP_STEP\n        sub ptrq, 4\n        sub localbufq, mmsize\n        mulps m3, m1\n        KXNOR m5, k7, maskq\n        VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq\n\n    ; Filter leftwards\n    PUSH_MM m2\n    lea xq, [widthq - 1]\n    .loop_x_back:\n        sub localbufq, rows * mmsize\n        READ_LOCAL_BUFFER cols\n        PUSH_MM m2\n        TRANSPOSE\n        POP_MM m3\n        sub ptrq, mmsize\n        SCATTERPS\n\n        sub xq, cols\n        cmp xq, cols\n        jge .loop_x_back\n        POP_MM m2\n\n    cmp xq, 0\n    jle .end_loop_x\n    .loop_x_back_scalar:\n        sub ptrq, 0x4\n        sub localbufq, mmsize\n        FMULADD_PS m3, m3, m0, [localbufq], m3\n        KXNOR m5, k7, maskq\n        VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq\n\n        dec xq\n        cmp xq, 0\n        jg .loop_x_back_scalar\n\n    .end_loop_x:\n\n    add yq, rows\n    cmp yq, heightq\n    jle .loop_y\n\n    add heightq, rows\n    cmp yq, heightq\n    jge .end_scalar\n\n    mov remainq, widthq\n    imul remainq, mmsize\n    add ptrq, remainq\n\n.y_scalar:\n    mov remainq, heightq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:15", "text": "dec xq\n        cmp xq, 0\n        jg .loop_x_back_scalar\n\n    .end_loop_x:\n\n    add yq, rows\n    cmp yq, heightq\n    jle .loop_y\n\n    add heightq, rows\n    cmp yq, heightq\n    jge .end_scalar\n\n    mov remainq, widthq\n    imul remainq, mmsize\n    add ptrq, remainq\n\n.y_scalar:\n    mov remainq, heightq\n    sub remainq, yq\n    mov maskq, 1\n    shlx maskq, maskq, remainq\n    sub maskq, 1\n    mov remainq, maskq\n    PUSH_MASK m5, k1, remaind, xd, rsp + 0x20\n\n    mov ptrq, yq\n    imul ptrq, widthq\n    lea ptrq, [bufferq + ptrq * 4] ; ptrq = buffer + y * width\n    KMOVW m6, m5, k7, k1\n    VGATHERDPS m3, [ptrq + m2 * 4], m6, k7\n    mulps m3, m1 ; p0 *= bscale\n    movu [localbufq], m3\n    add localbufq, mmsize\n\n    ; Filter rightwards\n    lea xq, [widthq - 1]\n    .y_scalar_loop_x:\n        add ptrq, 4\n        KMOVW m6, m5, k7, k1\n        VGATHERDPS m4, [ptrq + m2 * 4], m6, k7\n        FMULADD_PS m3, m3, m0, m4, m3\n        movu [localbufq], m3\n        add localbufq, mmsize\n\n        dec xq\n        cmp xq, 0\n        jg .y_scalar_loop_x\n\n    OPTIMIZED_LOOP_STEP\n\n    sub localbufq, mmsize\n    mulps m3, m1 ; p0 *= bscale\n    KMOVW k7, k1\n    VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq, heightq\n\n    ; Filter leftwards\n    lea xq, [widthq - 1]\n    .y_scalar_loop_x_back:", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:16", "text": "KMOVW m6, m5, k7, k1\n        VGATHERDPS m4, [ptrq + m2 * 4], m6, k7\n        FMULADD_PS m3, m3, m0, m4, m3\n        movu [localbufq], m3\n        add localbufq, mmsize\n\n        dec xq\n        cmp xq, 0\n        jg .y_scalar_loop_x\n\n    OPTIMIZED_LOOP_STEP\n\n    sub localbufq, mmsize\n    mulps m3, m1 ; p0 *= bscale\n    KMOVW k7, k1\n    VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq, heightq\n\n    ; Filter leftwards\n    lea xq, [widthq - 1]\n    .y_scalar_loop_x_back:\n        sub ptrq, 4\n        sub localbufq, mmsize\n        FMULADD_PS m3, m3, m0, [localbufq], m3\n        KMOVW k7, k1\n        VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq, heightq\n        dec xq\n        cmp xq, 0\n        jg .y_scalar_loop_x_back\n\n.end_scalar:\n    RET\n%else\n%if WIN64\n    movss m0, num\n    movss m1, bscalem\n    DEFINE_ARGS ptr, width, height, steps, x, y, step, stride, remain\n%endif\n    movsxdifnidn widthq, widthd\n\n    mulss m2, m0, m0 ; nu ^ 2\n    mulss m3, m2, m0 ; nu ^ 3\n    mulss m4, m3, m0 ; nu ^ 4\n    xor   xq, xq\n    xor   yd, yd\n    mov   strideq, widthq\n    ; stride = width * 4\n    shl   strideq, 2\n    ; w = w - ((w - 1) & 3)\n    mov   remainq, widthq\n    sub   remainq, 1\n    and   remainq, 3\n    sub   widthq, remainq\n\n    shufps m0, m0, 0\n    shufps m2, m2, 0\n    shufps m3, m3, 0\n    shufps m4, m4, 0\n\n.loop_y:\n    xor   stepd, stepd", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:17", "text": "mulss m3, m2, m0 ; nu ^ 3\n    mulss m4, m3, m0 ; nu ^ 4\n    xor   xq, xq\n    xor   yd, yd\n    mov   strideq, widthq\n    ; stride = width * 4\n    shl   strideq, 2\n    ; w = w - ((w - 1) & 3)\n    mov   remainq, widthq\n    sub   remainq, 1\n    and   remainq, 3\n    sub   widthq, remainq\n\n    shufps m0, m0, 0\n    shufps m2, m2, 0\n    shufps m3, m3, 0\n    shufps m4, m4, 0\n\n.loop_y:\n    xor   stepd, stepd\n\n    .loop_step:\n        ; p0 *= bscale\n        mulss m5, m1, [ptrq + xq * 4]\n        movss [ptrq + xq * 4], m5\n        inc xq\n        ; filter rightwards\n        ; Here we are vectorizing the c version by 4\n        ;    for (x = 1; x < width; x++)\n        ;       ptr[x] += nu * ptr[x - 1];\n        ;   let p0 stands for ptr[x-1], the data from last loop\n        ;   and [p1,p2,p3,p4] be the vector data for this loop.\n        ; Unrolling the loop, we get:\n        ;   p1' = p1 + p0*nu\n        ;   p2' = p2 + p1*nu + p0*nu^2\n        ;   p3' = p3 + p2*nu + p1*nu^2 + p0*nu^3\n        ;   p4' = p4 + p3*nu + p2*nu^2 + p1*nu^3 + p0*nu^4\n        ; so we can do it in simd:\n        ; [p1',p2',p3',p4'] = [p1,p2,p3,p4] + [p0,p1,p2,p3]*nu +\n        ;                     [0,p0,p1,p2]*nu^2 + [0,0,p0,p1]*nu^3 +\n        ;                     [0,0,0,p0]*nu^4\n\n        .loop_x:\n            movu m6, [ptrq + xq * 4]         ; s  = [p1,p2,p3,p4]\n            pslldq m7, m6, 4                 ;      [0, p1,p2,p3]\n            movss  m7, m5                    ;      [p0,p1,p2,p3]\n            FMULADD_PS  m6, m7, m0, m6, m8   ; s += [p0,p1,p2,p3] * nu\n            pslldq m7, 4                     ;      [0,p0,p1,p2]\n            FMULADD_PS  m6, m7, m2, m6, m8   ; s += [0,p0,p1,p2]  * nu^2\n            pslldq m7, 4\n            FMULADD_PS  m6, m7, m3, m6, m8   ; s += [0,0,p0,p1]   * nu^3\n            pslldq m7, 4\n            FMULADD_PS  m6, m7, m4, m6, m8   ; s += [0,0,0,p0]    * nu^4\n            movu [ptrq + xq * 4], m6\n            shufps m5, m6, m6, q3333\n            add xq, 4\n            cmp xq, widthq\n            jl .loop_x\n\n        add widthq, remainq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:18", "text": ";                     [0,0,0,p0]*nu^4\n\n        .loop_x:\n            movu m6, [ptrq + xq * 4]         ; s  = [p1,p2,p3,p4]\n            pslldq m7, m6, 4                 ;      [0, p1,p2,p3]\n            movss  m7, m5                    ;      [p0,p1,p2,p3]\n            FMULADD_PS  m6, m7, m0, m6, m8   ; s += [p0,p1,p2,p3] * nu\n            pslldq m7, 4                     ;      [0,p0,p1,p2]\n            FMULADD_PS  m6, m7, m2, m6, m8   ; s += [0,p0,p1,p2]  * nu^2\n            pslldq m7, 4\n            FMULADD_PS  m6, m7, m3, m6, m8   ; s += [0,0,p0,p1]   * nu^3\n            pslldq m7, 4\n            FMULADD_PS  m6, m7, m4, m6, m8   ; s += [0,0,0,p0]    * nu^4\n            movu [ptrq + xq * 4], m6\n            shufps m5, m6, m6, q3333\n            add xq, 4\n            cmp xq, widthq\n            jl .loop_x\n\n        add widthq, remainq\n        cmp xq, widthq\n        jge .end_scalar\n\n        .loop_scalar:\n            ; ptr[x] += nu * ptr[x-1]\n            movss m5, [ptrq + 4*xq - 4]\n            mulss m5, m0\n            addss m5, [ptrq + 4*xq]\n            movss [ptrq + 4*xq], m5\n            inc xq\n            cmp xq, widthq\n            jl .loop_scalar\n        .end_scalar:\n            ; ptr[width - 1] *= bscale\n            dec xq\n            mulss m5, m1, [ptrq + 4*xq]\n            movss [ptrq + 4*xq], m5\n            shufps m5, m5, 0\n\n        ; filter leftwards\n        ;    for (; x > 0; x--)\n        ;        ptr[x - 1] += nu * ptr[x];\n        ; The idea here is basically the same as filter rightwards.\n        ; But we need to take care as the data layout is different.\n        ; Let p0 stands for the ptr[x], which is the data from last loop.\n        ; The way we do it in simd as below:\n        ; [p-4', p-3', p-2', p-1'] = [p-4, p-3, p-2, p-1]\n        ;                          + [p-3, p-2, p-1, p0] * nu\n        ;                          + [p-2, p-1, p0,  0]  * nu^2\n        ;                          + [p-1, p0,  0,   0]  * nu^3\n        ;                          + [p0,  0,   0,   0]  * nu^4\n        .loop_x_back:\n            sub xq, 4\n            movu m6, [ptrq + xq * 4]      ; s = [p-4, p-3, p-2, p-1]\n            psrldq m7, m6, 4              ;     [p-3, p-2, p-1, 0  ]\n            blendps m7, m5, 0x8           ;     [p-3, p-2, p-1, p0 ]\n            FMULADD_PS m6, m7, m0, m6, m8 ; s+= [p-3, p-2, p-1, p0 ] * nu\n            psrldq m7, 4                  ;\n            FMULADD_PS m6, m7, m2, m6, m8 ; s+= [p-2, p-1, p0,  0] * nu^2\n            psrldq m7, 4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:19", "text": ";    for (; x > 0; x--)\n        ;        ptr[x - 1] += nu * ptr[x];\n        ; The idea here is basically the same as filter rightwards.\n        ; But we need to take care as the data layout is different.\n        ; Let p0 stands for the ptr[x], which is the data from last loop.\n        ; The way we do it in simd as below:\n        ; [p-4', p-3', p-2', p-1'] = [p-4, p-3, p-2, p-1]\n        ;                          + [p-3, p-2, p-1, p0] * nu\n        ;                          + [p-2, p-1, p0,  0]  * nu^2\n        ;                          + [p-1, p0,  0,   0]  * nu^3\n        ;                          + [p0,  0,   0,   0]  * nu^4\n        .loop_x_back:\n            sub xq, 4\n            movu m6, [ptrq + xq * 4]      ; s = [p-4, p-3, p-2, p-1]\n            psrldq m7, m6, 4              ;     [p-3, p-2, p-1, 0  ]\n            blendps m7, m5, 0x8           ;     [p-3, p-2, p-1, p0 ]\n            FMULADD_PS m6, m7, m0, m6, m8 ; s+= [p-3, p-2, p-1, p0 ] * nu\n            psrldq m7, 4                  ;\n            FMULADD_PS m6, m7, m2, m6, m8 ; s+= [p-2, p-1, p0,  0] * nu^2\n            psrldq m7, 4\n            FMULADD_PS m6, m7, m3, m6, m8 ; s+= [p-1, p0,   0,  0] * nu^3\n            psrldq m7, 4\n            FMULADD_PS m6, m7, m4, m6, m8 ; s+= [p0,  0,    0,  0] * nu^4\n            movu [ptrq + xq * 4], m6\n            shufps m5, m6, m6, 0          ; m5 = [p-4', p-4', p-4', p-4']\n            cmp xq, remainq\n            jg .loop_x_back\n\n        cmp xq, 0\n        jle .end_scalar_back\n\n        .loop_scalar_back:\n            ; ptr[x-1] += nu * ptr[x]\n            movss m5, [ptrq + 4*xq]\n            mulss m5, m0\n            addss m5, [ptrq + 4*xq - 4]\n            movss [ptrq + 4*xq - 4], m5\n            dec xq\n            cmp xq, 0\n            jg .loop_scalar_back\n        .end_scalar_back:\n\n        ; reset aligned width for next line\n        sub widthq, remainq\n\n        inc stepd\n        cmp stepd, stepsd\n        jl .loop_step\n\n    add ptrq, strideq\n    inc yd\n    cmp yd, heightd\n    jl .loop_y\n\n    RET\n%endif\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:20", "text": ".end_scalar_back:\n\n        ; reset aligned width for next line\n        sub widthq, remainq\n\n        inc stepd\n        cmp stepd, stepsd\n        jl .loop_step\n\n    add ptrq, strideq\n    inc yd\n    cmp yd, heightd\n    jl .loop_y\n\n    RET\n%endif\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse4\nHORIZ_SLICE\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\n%xdefine mmnum 16\nHORIZ_SLICE\n%endif\n\n%if HAVE_AVX512_EXTERNAL\nINIT_ZMM avx512\n%xdefine mmnum 32\nHORIZ_SLICE\n%endif\n%endif\n\n%macro POSTSCALE_SLICE 0\ncglobal postscale_slice, 2, 2, 4, ptr, length, postscale, min, max\n    shl lengthd, 2\n    add ptrq, lengthq\n    neg lengthq\n%if ARCH_X86_32\n    VBROADCASTSS m0, postscalem\n    VBROADCASTSS m1, minm\n    VBROADCASTSS m2, maxm\n%elif WIN64\n    VBROADCASTSS m0, xmm2\n    VBROADCASTSS m1, xmm3\n    VBROADCASTSS m2, maxm\n%else ; UNIX\n    VBROADCASTSS m0, xmm0\n    VBROADCASTSS m1, xmm1\n    VBROADCASTSS m2, xmm2\n%endif\n\n    .loop:\n%if cpuflag(avx2) || cpuflag(avx512)\n    mulps         m3, m0, [ptrq + lengthq]\n%else\n    movu          m3, [ptrq + lengthq]\n    mulps         m3, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:21", "text": "%if ARCH_X86_32\n    VBROADCASTSS m0, postscalem\n    VBROADCASTSS m1, minm\n    VBROADCASTSS m2, maxm\n%elif WIN64\n    VBROADCASTSS m0, xmm2\n    VBROADCASTSS m1, xmm3\n    VBROADCASTSS m2, maxm\n%else ; UNIX\n    VBROADCASTSS m0, xmm0\n    VBROADCASTSS m1, xmm1\n    VBROADCASTSS m2, xmm2\n%endif\n\n    .loop:\n%if cpuflag(avx2) || cpuflag(avx512)\n    mulps         m3, m0, [ptrq + lengthq]\n%else\n    movu          m3, [ptrq + lengthq]\n    mulps         m3, m0\n%endif\n    maxps         m3, m1\n    minps         m3, m2\n    movu   [ptrq+lengthq], m3\n\n    add lengthq, mmsize\n    jl .loop\n\n    RET\n%endmacro\n\nINIT_XMM sse\nPOSTSCALE_SLICE\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nPOSTSCALE_SLICE\n%endif\n\n%if HAVE_AVX512_EXTERNAL\nINIT_ZMM avx512\nPOSTSCALE_SLICE\n%endif\n\n;*******************************************************************************\n; void ff_verti_slice(float *buffer, int width, int height, int column_begin,\n;                     int column_end, int steps, float nu, float bscale);\n;*******************************************************************************\n%macro VERTI_SLICE 0\n%if UNIX64\ncglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend, \\\n                                         steps, x, y, cwidth, step, ptr, stride\n%else\ncglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend, \\\n                                         steps, nu, bscale, x, y, cwidth, step, \\\n                                         ptr, stride\n%endif\n%assign cols mmsize/4\n%if WIN64\n    VBROADCASTSS m0, num", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:22", "text": "INIT_ZMM avx512\nPOSTSCALE_SLICE\n%endif\n\n;*******************************************************************************\n; void ff_verti_slice(float *buffer, int width, int height, int column_begin,\n;                     int column_end, int steps, float nu, float bscale);\n;*******************************************************************************\n%macro VERTI_SLICE 0\n%if UNIX64\ncglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend, \\\n                                         steps, x, y, cwidth, step, ptr, stride\n%else\ncglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend, \\\n                                         steps, nu, bscale, x, y, cwidth, step, \\\n                                         ptr, stride\n%endif\n%assign cols mmsize/4\n%if WIN64\n    VBROADCASTSS m0, num\n    VBROADCASTSS m1, bscalem\n    DEFINE_ARGS buffer, width, height, cbegin, cend, \\\n                steps, x, y, cwidth, step, ptr, stride\n%else\n    VBROADCASTSS m0, xmm0 ; nu\n    VBROADCASTSS m1, xmm1 ; bscale\n%endif\n    MOVSXDIFNIDN width, height, cbegin, cend, steps\n\n    mov cwidthq, cendq\n    sub cwidthq, cbeginq\n    lea strideq, [widthq * 4]\n\n    xor xq, xq ; x = 0\n    cmp cwidthq, cols\n    jl .x_scalar\n    cmp cwidthq, 0x0\n    je .end_scalar\n\n    sub cwidthq, cols\n.loop_x:\n    xor stepq, stepq\n    .loop_step:\n        ; ptr = buffer + x + column_begin;\n        lea ptrq, [xq + cbeginq]\n        lea ptrq, [bufferq + ptrq*4]\n\n        ;  ptr[15:0] *= bcale;\n        movu m2, [ptrq]\n        mulps m2, m1\n        movu [ptrq], m2\n\n        ; Filter downwards\n        mov yq, 1\n        .loop_y_down:\n            add ptrq, strideq ; ptrq += width\n            movu m3, [ptrq]\n            FMULADD_PS m2, m2, m0, m3, m2\n            movu [ptrq], m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:23", "text": ".loop_x:\n    xor stepq, stepq\n    .loop_step:\n        ; ptr = buffer + x + column_begin;\n        lea ptrq, [xq + cbeginq]\n        lea ptrq, [bufferq + ptrq*4]\n\n        ;  ptr[15:0] *= bcale;\n        movu m2, [ptrq]\n        mulps m2, m1\n        movu [ptrq], m2\n\n        ; Filter downwards\n        mov yq, 1\n        .loop_y_down:\n            add ptrq, strideq ; ptrq += width\n            movu m3, [ptrq]\n            FMULADD_PS m2, m2, m0, m3, m2\n            movu [ptrq], m2\n\n            inc yq\n            cmp yq, heightq\n            jl .loop_y_down\n\n        mulps m2, m1\n        movu [ptrq], m2\n\n        ; Filter upwards\n        dec yq\n        .loop_y_up:\n            sub ptrq, strideq\n            movu m3, [ptrq]\n            FMULADD_PS m2, m2, m0, m3, m2\n            movu [ptrq], m2\n\n            dec yq\n            cmp yq, 0\n            jg .loop_y_up\n\n        inc stepq\n        cmp stepq, stepsq\n        jl .loop_step\n\n    add xq, cols\n    cmp xq, cwidthq\n    jle .loop_x\n\n    add cwidthq, cols\n    cmp xq, cwidthq\n    jge .end_scalar\n\n.x_scalar:\n    xor stepq, stepq\n    mov qword [rsp + 0x10], xq\n    sub cwidthq, xq\n    mov xq, 1\n    shlx cwidthq, xq, cwidthq\n    sub cwidthq, 1\n    PUSH_MASK m4, k1, cwidthd, xd, rsp + 0x20\n    mov xq, qword [rsp + 0x10]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:24", "text": "cmp stepq, stepsq\n        jl .loop_step\n\n    add xq, cols\n    cmp xq, cwidthq\n    jle .loop_x\n\n    add cwidthq, cols\n    cmp xq, cwidthq\n    jge .end_scalar\n\n.x_scalar:\n    xor stepq, stepq\n    mov qword [rsp + 0x10], xq\n    sub cwidthq, xq\n    mov xq, 1\n    shlx cwidthq, xq, cwidthq\n    sub cwidthq, 1\n    PUSH_MASK m4, k1, cwidthd, xd, rsp + 0x20\n    mov xq, qword [rsp + 0x10]\n\n    .loop_step_scalar:\n        lea ptrq, [xq + cbeginq]\n        lea ptrq, [bufferq + ptrq*4]\n\n        VMASKMOVPS m2, [ptrq], m4, k1\n        mulps m2, m1\n        VMASKMOVPS [ptrq], m2, m4, k1\n\n        ; Filter downwards\n        mov yq, 1\n        .x_scalar_loop_y_down:\n            add ptrq, strideq\n            VMASKMOVPS m3, [ptrq], m4, k1\n            FMULADD_PS m2, m2, m0, m3, m2\n            VMASKMOVPS [ptrq], m2, m4, k1\n\n            inc yq\n            cmp yq, heightq\n            jl .x_scalar_loop_y_down\n\n        mulps m2, m1\n        VMASKMOVPS [ptrq], m2, m4, k1\n\n        ; Filter upwards\n        dec yq\n        .x_scalar_loop_y_up:\n            sub ptrq, strideq\n            VMASKMOVPS m3, [ptrq], m4, k1\n            FMULADD_PS m2, m2, m0, m3, m2\n            VMASKMOVPS [ptrq], m2, m4, k1\n\n            dec yq\n            cmp yq, 0\n            jg .x_scalar_loop_y_up\n\n        inc stepq\n        cmp stepq, stepsq\n        jl .loop_step_scalar", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gblur.asm:25", "text": "mulps m2, m1\n        VMASKMOVPS [ptrq], m2, m4, k1\n\n        ; Filter upwards\n        dec yq\n        .x_scalar_loop_y_up:\n            sub ptrq, strideq\n            VMASKMOVPS m3, [ptrq], m4, k1\n            FMULADD_PS m2, m2, m0, m3, m2\n            VMASKMOVPS [ptrq], m2, m4, k1\n\n            dec yq\n            cmp yq, 0\n            jg .x_scalar_loop_y_up\n\n        inc stepq\n        cmp stepq, stepsq\n        jl .loop_step_scalar\n\n.end_scalar:\n    RET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nVERTI_SLICE\n%endif\n\n%if HAVE_AVX512_EXTERNAL\nINIT_ZMM avx512\nVERTI_SLICE\n%endif\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gblur.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gblur.asm", "line_start": 961, "line_end": 995}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gradfun.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for gradfun filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_7f: times 8 dw 0x7F\npw_ff: times 8 dw 0xFF\n\nSECTION .text\n\nINIT_XMM ssse3\ncglobal gradfun_filter_line, 6, 6, 8\n    movd       m5, r4d\n    pxor       m7, m7\n    pshuflw    m5, m5, 0\n    mova       m6, [pw_7f]\n    punpcklqdq m5, m5\n    mova       m4, [r5]\n.loop:\n    movh       m0, [r2+r0]\n    movh       m1, [r3+r0]\n    punpcklbw  m0, m7\n    punpcklwd  m1, m1\n    psllw      m0, 7\n    psubw      m1, m0\n    PABSW      m2, m1\n    pmulhuw    m2, m5\n    psubw      m2, m6\n    pminsw     m2, m7\n    pmullw     m2, m2\n    psllw      m1, 2\n    paddw      m0, m4\n    pmulhw     m1, m2\n    paddw      m0, m1\n    psraw      m0, 7\n    packuswb   m0, m0\n    movh  [r1+r0], m0\n    add        r0, 8\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gradfun.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gradfun.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gradfun.asm:2", "text": "punpcklbw  m0, m7\n    punpcklwd  m1, m1\n    psllw      m0, 7\n    psubw      m1, m0\n    PABSW      m2, m1\n    pmulhuw    m2, m5\n    psubw      m2, m6\n    pminsw     m2, m7\n    pmullw     m2, m2\n    psllw      m1, 2\n    paddw      m0, m4\n    pmulhw     m1, m2\n    paddw      m0, m1\n    psraw      m0, 7\n    packuswb   m0, m0\n    movh  [r1+r0], m0\n    add        r0, 8\n    jl .loop\n    RET\n\n%macro BLUR_LINE 1\ncglobal gradfun_blur_line_%1, 6, 6, 8\n    mova        m7, [pw_ff]\n.loop:\n    %1          m0, [r4+r0]\n    %1          m1, [r5+r0]\n    mova        m2, m0\n    mova        m3, m1\n    psrlw       m0, 8\n    psrlw       m1, 8\n    pand        m2, m7\n    pand        m3, m7\n    paddw       m0, m1\n    paddw       m2, m3\n    paddw       m0, m2\n    paddw       m0, [r2+r0]\n    mova        m1, [r1+r0]\n    mova   [r1+r0], m0\n    psubw       m0, m1\n    mova   [r3+r0], m0\n    add         r0, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nBLUR_LINE movdqa\nBLUR_LINE movdqu", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gradfun.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_gradfun.asm", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gradfun.asm:1", "text": ";******************************************************************************\n;* x86-optimized functions for gradfun filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_7f: times 8 dw 0x7F\npw_ff: times 8 dw 0xFF\n\nSECTION .text\n\n%macro FILTER_LINE 1\n    movh       m0, [r2+r0]\n    movh       m1, [r3+r0]\n    punpcklbw  m0, m7\n    punpcklwd  m1, m1\n    psllw      m0, 7\n    psubw      m1, m0\n    PABSW      m2, m1\n    pmulhuw    m2, m5\n    psubw      m2, m6\n    pminsw     m2, m7\n    pmullw     m2, m2\n    psllw      m1, 2\n    paddw      m0, %1\n    pmulhw     m1, m2\n    paddw      m0, m1\n    psraw      m0, 7\n    packuswb   m0, m0\n    movh  [r1+r0], m0\n%endmacro\n\nINIT_MMX mmxext\ncglobal gradfun_filter_line, 6, 6\n    movh      m5, r4d\n    pxor      m7, m7\n    pshufw    m5, m5,0\n    mova      m6, [pw_7f]\n    mova      m3, [r5]\n    mova      m4, [r5+8]\n.loop:\n    FILTER_LINE m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gradfun.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_gradfun.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gradfun.asm:2", "text": "pmullw     m2, m2\n    psllw      m1, 2\n    paddw      m0, %1\n    pmulhw     m1, m2\n    paddw      m0, m1\n    psraw      m0, 7\n    packuswb   m0, m0\n    movh  [r1+r0], m0\n%endmacro\n\nINIT_MMX mmxext\ncglobal gradfun_filter_line, 6, 6\n    movh      m5, r4d\n    pxor      m7, m7\n    pshufw    m5, m5,0\n    mova      m6, [pw_7f]\n    mova      m3, [r5]\n    mova      m4, [r5+8]\n.loop:\n    FILTER_LINE m3\n    add       r0, 4\n    jge .end\n    FILTER_LINE m4\n    add       r0, 4\n    jl .loop\n.end:\n    RET\n\nINIT_XMM ssse3\ncglobal gradfun_filter_line, 6, 6, 8\n    movd       m5, r4d\n    pxor       m7, m7\n    pshuflw    m5, m5, 0\n    mova       m6, [pw_7f]\n    punpcklqdq m5, m5\n    mova       m4, [r5]\n.loop:\n    FILTER_LINE m4\n    add        r0, 8\n    jl .loop\n    RET\n\n%macro BLUR_LINE 1\ncglobal gradfun_blur_line_%1, 6, 6, 8\n    mova        m7, [pw_ff]\n.loop:\n    %1          m0, [r4+r0]\n    %1          m1, [r5+r0]\n    mova        m2, m0\n    mova        m3, m1\n    psrlw       m0, 8\n    psrlw       m1, 8\n    pand        m2, m7\n    pand        m3, m7\n    paddw       m0, m1\n    paddw       m2, m3\n    paddw       m0, m2\n    paddw       m0, [r2+r0]\n    mova        m1, [r1+r0]\n    mova   [r1+r0], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gradfun.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_gradfun.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_gradfun.asm:3", "text": "RET\n\n%macro BLUR_LINE 1\ncglobal gradfun_blur_line_%1, 6, 6, 8\n    mova        m7, [pw_ff]\n.loop:\n    %1          m0, [r4+r0]\n    %1          m1, [r5+r0]\n    mova        m2, m0\n    mova        m3, m1\n    psrlw       m0, 8\n    psrlw       m1, 8\n    pand        m2, m7\n    pand        m3, m7\n    paddw       m0, m1\n    paddw       m2, m3\n    paddw       m0, m2\n    paddw       m0, [r2+r0]\n    mova        m1, [r1+r0]\n    mova   [r1+r0], m0\n    psubw       m0, m1\n    mova   [r3+r0], m0\n    add         r0, 16\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nBLUR_LINE movdqa\nBLUR_LINE movdqu", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_gradfun.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_gradfun.asm", "line_start": 81, "line_end": 110}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hflip.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for hflip filter\n;*\n;* Copyright (C) 2017 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_flip_byte:  db 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0\npb_flip_short: db 14,15,12,13,10,11,8,9,6,7,4,5,2,3,0,1\n\nSECTION .text\n\n;%1 byte or short, %2 b or w, %3 size in byte (1 for byte, 2 for short)\n%macro HFLIP 3\ncglobal hflip_%1, 3, 5, 3, src, dst, w, r, x\n    VBROADCASTI128    m0, [pb_flip_%1]\n    xor               xq, xq\n%if %3 == 1\n    movsxdifnidn wq, wd\n%else ; short\n    add     wd, wd\n%endif\n    mov     rq, wq\n    and     rq, 2 * mmsize - 1\n    cmp     wq, 2 * mmsize\n    jl .loop1\n    sub     wq, rq\n\n    .loop0:\n        neg     xq\n%if mmsize == 32\n        vpermq  m1, [srcq + xq -     mmsize + %3], 0x4e; flip each lane at load\n        vpermq  m2, [srcq + xq - 2 * mmsize + %3], 0x4e; flip each lane at load\n%else\n        movu    m1, [srcq + xq -     mmsize + %3]\n        movu    m2, [srcq + xq - 2 * mmsize + %3]\n%endif\n        pshufb  m1, m0\n        pshufb  m2, m0\n        neg     xq\n        movu    [dstq + xq         ], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hflip.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_hflip.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hflip.asm:2", "text": "%endif\n    mov     rq, wq\n    and     rq, 2 * mmsize - 1\n    cmp     wq, 2 * mmsize\n    jl .loop1\n    sub     wq, rq\n\n    .loop0:\n        neg     xq\n%if mmsize == 32\n        vpermq  m1, [srcq + xq -     mmsize + %3], 0x4e; flip each lane at load\n        vpermq  m2, [srcq + xq - 2 * mmsize + %3], 0x4e; flip each lane at load\n%else\n        movu    m1, [srcq + xq -     mmsize + %3]\n        movu    m2, [srcq + xq - 2 * mmsize + %3]\n%endif\n        pshufb  m1, m0\n        pshufb  m2, m0\n        neg     xq\n        movu    [dstq + xq         ], m1\n        movu    [dstq + xq + mmsize], m2\n        add     xq, mmsize * 2\n        cmp     xq, wq\n        jl .loop0\n\n    cmp    rq, 0\n    je .end\n    add    wq, rq\n\n    .loop1:\n        neg    xq\n        mov    r%2, [srcq + xq]\n        neg    xq\n        mov    [dstq + xq], r%2\n        add    xq, %3\n        cmp    xq, wq\n        jl .loop1\n    .end:\n        RET\n%endmacro\n\nINIT_XMM ssse3\nHFLIP byte, b, 1\nHFLIP short, w, 2\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nHFLIP byte, b, 1\nHFLIP short, w, 2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hflip.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_hflip.asm", "line_start": 41, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hflip.asm:3", "text": "INIT_XMM ssse3\nHFLIP byte, b, 1\nHFLIP short, w, 2\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nHFLIP byte, b, 1\nHFLIP short, w, 2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hflip.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_hflip.asm", "line_start": 81, "line_end": 90}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hqdn3d.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2012 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro LOWPASS 3 ; prevsample, cursample, lut\n    sub    %1q, %2q\n%if lut_bits != 8\n    sar    %1q, 8-lut_bits\n%endif\n    movsx  %1q, word [%3q+%1q*2]\n    add    %1q, %2q\n%endmacro\n\n%macro LOAD 3 ; dstreg, x, bitdepth\n%if %3 == 8\n    movzx  %1, byte [srcq+%2]\n%else\n    movzx  %1, word [srcq+(%2)*2]\n%endif\n%if %3 != 16\n    shl    %1, 16-%3\n    add    %1, (1<<(15-%3))-1\n%endif\n%endmacro\n\n%macro HQDN3D_ROW 1 ; bitdepth\n%if ARCH_X86_64\ncglobal hqdn3d_row_%1_x86, 7,10,0, src, dst, lineant, frameant, width, spatial, temporal, pixelant, t0, t1\n%else\ncglobal hqdn3d_row_%1_x86, 7,7,0, src, dst, lineant, frameant, width, spatial, temporal\n%endif\n    %assign bytedepth (%1+7)>>3\n    %assign lut_bits 4+4*(%1/16)\n    dec    widthq\n    lea    srcq, [srcq+widthq*bytedepth]\n    lea    dstq, [dstq+widthq*bytedepth]\n    lea    frameantq, [frameantq+widthq*2]\n    lea    lineantq,  [lineantq+widthq*2]\n    neg    widthq\n    %define xq widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hqdn3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_hqdn3d.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hqdn3d.asm:2", "text": "shl    %1, 16-%3\n    add    %1, (1<<(15-%3))-1\n%endif\n%endmacro\n\n%macro HQDN3D_ROW 1 ; bitdepth\n%if ARCH_X86_64\ncglobal hqdn3d_row_%1_x86, 7,10,0, src, dst, lineant, frameant, width, spatial, temporal, pixelant, t0, t1\n%else\ncglobal hqdn3d_row_%1_x86, 7,7,0, src, dst, lineant, frameant, width, spatial, temporal\n%endif\n    %assign bytedepth (%1+7)>>3\n    %assign lut_bits 4+4*(%1/16)\n    dec    widthq\n    lea    srcq, [srcq+widthq*bytedepth]\n    lea    dstq, [dstq+widthq*bytedepth]\n    lea    frameantq, [frameantq+widthq*2]\n    lea    lineantq,  [lineantq+widthq*2]\n    neg    widthq\n    %define xq widthq\n%if ARCH_X86_32\n    mov    dstmp, dstq\n    mov    srcmp, srcq\n    mov    frameantmp, frameantq\n    mov    lineantmp,  lineantq\n    %define dstq r0\n    %define frameantq r0\n    %define lineantq  r0\n    %define pixelantq r1\n    %define pixelantd r1d\n    DECLARE_REG_TMP 2,3\n%endif\n    LOAD   pixelantd, xq, %1\nALIGN 16\n.loop:\n    movifnidn srcq, srcmp\n    LOAD      t0d, xq+1, %1 ; skip on the last iteration to avoid overread\n.loop2:\n    movifnidn lineantq, lineantmp\n    movzx     t1d, word [lineantq+xq*2]\n    LOWPASS   t1, pixelant, spatial\n    mov       [lineantq+xq*2], t1w\n    LOWPASS   pixelant, t0, spatial\n    movifnidn frameantq, frameantmp\n    movzx     t0d, word [frameantq+xq*2]\n    LOWPASS   t0, t1, temporal\n    mov       [frameantq+xq*2], t0w\n    movifnidn dstq, dstmp\n%if %1 != 16\n    shr    t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some constraints on register allocation\n%endif\n%if %1 == 8\n    mov    [dstq+xq], t0b\n%else\n    mov    [dstq+xq*2], t0w\n%endif\n    inc    xq\n    jl .loop\n    je .loop2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hqdn3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_hqdn3d.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hqdn3d.asm:3", "text": "LOWPASS   t1, pixelant, spatial\n    mov       [lineantq+xq*2], t1w\n    LOWPASS   pixelant, t0, spatial\n    movifnidn frameantq, frameantmp\n    movzx     t0d, word [frameantq+xq*2]\n    LOWPASS   t0, t1, temporal\n    mov       [frameantq+xq*2], t0w\n    movifnidn dstq, dstmp\n%if %1 != 16\n    shr    t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some constraints on register allocation\n%endif\n%if %1 == 8\n    mov    [dstq+xq], t0b\n%else\n    mov    [dstq+xq*2], t0w\n%endif\n    inc    xq\n    jl .loop\n    je .loop2\n    RET\n%endmacro ; HQDN3D_ROW\n\nHQDN3D_ROW 8\nHQDN3D_ROW 9\nHQDN3D_ROW 10\nHQDN3D_ROW 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hqdn3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_hqdn3d.asm", "line_start": 81, "line_end": 106}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hqdn3d.asm:2", "text": "shl    %1, 16-%3\n    add    %1, (1<<(15-%3))-1\n%endif\n%endmacro\n\n%macro HQDN3D_ROW 1 ; bitdepth\n%if ARCH_X86_64\ncglobal hqdn3d_row_%1_x86, 7,10,0, src, dst, lineant, frameant, width, spatial, temporal, pixelant, t0, t1\n%else\ncglobal hqdn3d_row_%1_x86, 7,7,0, src, dst, lineant, frameant, width, spatial, temporal\n%endif\n    %assign bytedepth (%1+7)>>3\n    %assign lut_bits 4+4*(%1/16)\n    dec    widthq\n    lea    srcq, [srcq+widthq*bytedepth]\n    lea    dstq, [dstq+widthq*bytedepth]\n    lea    frameantq, [frameantq+widthq*2]\n    lea    lineantq,  [lineantq+widthq*2]\n    neg    widthq\n    %define xq widthq\n%if ARCH_X86_32\n    mov    dstmp, dstq\n    mov    srcmp, srcq\n    mov    frameantmp, frameantq\n    mov    lineantmp,  lineantq\n    %define dstq r0\n    %define frameantq r0\n    %define lineantq  r0\n    %define pixelantq r1\n    %define pixelantd r1d\n    DECLARE_REG_TMP 2,3\n%endif\n    LOAD   pixelantd, xq, %1\nALIGN 16\n.loop:\n    movifnidn srcq, srcmp\n    LOAD      t0d, xq+1, %1 ; skip on the last iteration to avoid overread\n.loop2:\n    movifnidn lineantq, lineantmp\n    movzx     t1d, word [lineantq+xq*2]\n    LOWPASS   t1, pixelant, spatial\n    mov       [lineantq+xq*2], t1w\n    LOWPASS   pixelant, t0, spatial\n    movifnidn frameantq, frameantmp\n    movzx     t0d, word [frameantq+xq*2]\n    LOWPASS   t0, t1, temporal\n    mov       [frameantq+xq*2], t0w\n    movifnidn dstq, dstmp\n%if %1 != 16\n    shr    t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some contraints on register allocation\n%endif\n%if %1 == 8\n    mov    [dstq+xq], t0b\n%else\n    mov    [dstq+xq*2], t0w\n%endif\n    inc    xq\n    jl .loop\n    je .loop2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hqdn3d.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_hqdn3d.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_hqdn3d.asm:3", "text": "LOWPASS   t1, pixelant, spatial\n    mov       [lineantq+xq*2], t1w\n    LOWPASS   pixelant, t0, spatial\n    movifnidn frameantq, frameantmp\n    movzx     t0d, word [frameantq+xq*2]\n    LOWPASS   t0, t1, temporal\n    mov       [frameantq+xq*2], t0w\n    movifnidn dstq, dstmp\n%if %1 != 16\n    shr    t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some contraints on register allocation\n%endif\n%if %1 == 8\n    mov    [dstq+xq], t0b\n%else\n    mov    [dstq+xq*2], t0w\n%endif\n    inc    xq\n    jl .loop\n    je .loop2\n    RET\n%endmacro ; HQDN3D_ROW\n\nHQDN3D_ROW 8\nHQDN3D_ROW 9\nHQDN3D_ROW 10\nHQDN3D_ROW 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_hqdn3d.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_hqdn3d.asm", "line_start": 81, "line_end": 106}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idet.asm:2", "text": "%macro IDET_FILTER_LINE_16BIT 1   ; %1=increment (4 or 8 words)\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    mova      m6, m2\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, %1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd\n\n    psubusw   m6, m4                 ; bc\n    psubusw   m4, m2                 ; cb\n\n    PABS_DIFF_WD   m3, m6, m7        ; |ab - bc|\n    PABS_DIFF_WD   m5, m4, m7        ; |ba - cb|\n    paddd          m_sum, m3\n    paddd          m_sum, m5\n    jl        .loop_16bit\n\n    HADDD     m_sum, m2\n    movd      eax, m_sum\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE_16BIT 8\n\n;******************************************************************************\n; SSE2 8-bit implementation that does 16-bytes at a time:\n\nINIT_XMM sse2\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    mova      m6, m2\n    mova      m4, m3\n    psubusb   m5, m2, m3           ; ba\n\n    movu      m3, [cq + indexq*1]  ; C\n    add       indexq, 0x10\n    psubusb   m4, m2               ; ab\n    CMP       indexd, widthd\n\n    psubusb   m6, m3               ; bc\n    psubusb   m3, m2               ; cb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idet.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_idet.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idet.asm:3", "text": "INIT_XMM sse2\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    mova      m6, m2\n    mova      m4, m3\n    psubusb   m5, m2, m3           ; ba\n\n    movu      m3, [cq + indexq*1]  ; C\n    add       indexq, 0x10\n    psubusb   m4, m2               ; ab\n    CMP       indexd, widthd\n\n    psubusb   m6, m3               ; bc\n    psubusb   m3, m2               ; cb\n\n    psadbw    m4, m6               ; |ab - bc|\n    paddq     m0, m4\n    psadbw    m5, m3               ; |ba - cb|\n    paddq     m1, m5\n    jl       .sse2_loop\n\n    paddq     m0, m1\n    movhlps   m1, m0\n    paddq     m0, m1\n    movd      eax, m0\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idet.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_idet.asm", "line_start": 81, "line_end": 112}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for idet filter\n;*\n;* Copyright (C) 2014 Pascal Massimino (pascal.massimino@gmail.com)\n;* Copyright (c) 2014 Neil Birkbeck (birkbeck@google.com)\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;******************************************************************************\n; 16bit implementation that does 4/8-pixels at a time\n\n%macro PABS_DIFF_WD 3    ; a, b, junk   , output=a\n  psubusw   %3, %2, %1\n  psubusw   %1, %2\n  por       %1, %3\n\n  mova      %2, %1\n  punpcklwd %1, m_zero\n  punpckhwd %2, m_zero\n  paddd     %1, %2\n%endmacro\n\n%macro IDET_FILTER_LINE_16BIT 0\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, mmsize >> 1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd\n\n    psubusw   m6, m2, m4             ; bc", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_idetdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:2", "text": "%macro IDET_FILTER_LINE_16BIT 0\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, mmsize >> 1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd\n\n    psubusw   m6, m2, m4             ; bc\n    psubusw   m4, m2                 ; cb\n\n    PABS_DIFF_WD   m3, m6, m7        ; |ab - bc|\n    PABS_DIFF_WD   m5, m4, m7        ; |ba - cb|\n    paddd          m_sum, m3\n    paddd          m_sum, m5\n    jl        .loop_16bit\n\n%if mmsize > 32\n    vextracti64x4 ym1, m0, 1\n    paddq     ym0, ym1\n%endif\n    HADDD     m_sum, m2\n    movd      eax, m_sum\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE_16BIT\n\nINIT_XMM avx2\nIDET_FILTER_LINE_16BIT\n\nINIT_XMM avx512icl\nIDET_FILTER_LINE_16BIT\n\n;******************************************************************************\n; SSE2 8-bit implementation that does 16-bytes at a time:\n\n%macro IDET_FILTER_LINE 0\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    psubusb   m5, m2, m3           ; ba", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_idetdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:3", "text": "INIT_XMM avx2\nIDET_FILTER_LINE_16BIT\n\nINIT_XMM avx512icl\nIDET_FILTER_LINE_16BIT\n\n;******************************************************************************\n; SSE2 8-bit implementation that does 16-bytes at a time:\n\n%macro IDET_FILTER_LINE 0\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    psubusb   m5, m2, m3           ; ba\n\n    movu      m4, [cq + indexq*1]  ; C\n    add       indexq, mmsize\n    psubusb   m3, m2               ; ab\n    CMP       indexd, widthd\n\n    psubusb   m6, m2, m4           ; bc\n    psubusb   m4, m2               ; cb\n\n    psadbw    m3, m6               ; |ab - bc|\n    paddq     m0, m3\n    psadbw    m5, m4               ; |ba - cb|\n    paddq     m1, m5\n    jl       .sse2_loop\n\n    paddq     m0, m1\n%if mmsize > 32\n    vextracti64x4 ym1, m0, 1\n    paddq     ym0, ym1\n%endif\n%if mmsize > 16\n    vextracti128 xm1, ym0, 1\n    paddq     xm0, xm1\n%endif\n    movhlps   xm1, xm0\n    paddq     xm0, xm1\n    movd      eax, xm0\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE\n\nINIT_YMM avx2\nIDET_FILTER_LINE\n\nINIT_ZMM avx512icl\nIDET_FILTER_LINE", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_idetdsp.asm", "line_start": 81, "line_end": 137}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:4", "text": "vextracti128 xm1, ym0, 1\n    paddq     xm0, xm1\n%endif\n    movhlps   xm1, xm0\n    paddq     xm0, xm1\n    movd      eax, xm0\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE\n\nINIT_YMM avx2\nIDET_FILTER_LINE\n\nINIT_ZMM avx512icl\nIDET_FILTER_LINE", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_idetdsp.asm", "line_start": 121, "line_end": 137}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for idet filter\n;*\n;* Copyright (C) 2014 Pascal Massimino (pascal.massimino@gmail.com)\n;* Copyright (c) 2014 Neil Birkbeck (birkbeck@google.com)\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;******************************************************************************\n; 16bit implementation that does 4/8-pixels at a time\n\n%macro PABS_DIFF_WD 3    ; a, b, junk   , output=a\n  psubusw   %3, %2, %1\n  psubusw   %1, %2\n  por       %1, %3\n\n  mova      %2, %1\n  punpcklwd %1, m_zero\n  punpckhwd %2, m_zero\n  paddd     %1, %2\n%endmacro\n\n%macro IDET_FILTER_LINE_16BIT 0\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    mova      m6, m2\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, mmsize >> 1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "843920d5d6bdcecbfd4eeac66cd175348bf99496", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/843920d5d6bdcecbfd4eeac66cd175348bf99496/libavfilter/x86/vf_idetdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:2", "text": "%macro IDET_FILTER_LINE_16BIT 0\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    mova      m6, m2\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, mmsize >> 1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd\n\n    psubusw   m6, m4                 ; bc\n    psubusw   m4, m2                 ; cb\n\n    PABS_DIFF_WD   m3, m6, m7        ; |ab - bc|\n    PABS_DIFF_WD   m5, m4, m7        ; |ba - cb|\n    paddd          m_sum, m3\n    paddd          m_sum, m5\n    jl        .loop_16bit\n\n%if mmsize > 32\n    vextracti64x4 ym1, m0, 1\n    paddq     ym0, ym1\n%endif\n    HADDD     m_sum, m2\n    movd      eax, m_sum\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE_16BIT\n\nINIT_XMM avx2\nIDET_FILTER_LINE_16BIT\n\nINIT_XMM avx512icl\nIDET_FILTER_LINE_16BIT\n\n;******************************************************************************\n; SSE2 8-bit implementation that does 16-bytes at a time:\n\n%macro IDET_FILTER_LINE 0\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    mova      m6, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "843920d5d6bdcecbfd4eeac66cd175348bf99496", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/843920d5d6bdcecbfd4eeac66cd175348bf99496/libavfilter/x86/vf_idetdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:3", "text": "INIT_XMM avx2\nIDET_FILTER_LINE_16BIT\n\nINIT_XMM avx512icl\nIDET_FILTER_LINE_16BIT\n\n;******************************************************************************\n; SSE2 8-bit implementation that does 16-bytes at a time:\n\n%macro IDET_FILTER_LINE 0\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    mova      m6, m2\n    mova      m4, m3\n    psubusb   m5, m2, m3           ; ba\n\n    movu      m3, [cq + indexq*1]  ; C\n    add       indexq, mmsize\n    psubusb   m4, m2               ; ab\n    CMP       indexd, widthd\n\n    psubusb   m6, m3               ; bc\n    psubusb   m3, m2               ; cb\n\n    psadbw    m4, m6               ; |ab - bc|\n    paddq     m0, m4\n    psadbw    m5, m3               ; |ba - cb|\n    paddq     m1, m5\n    jl       .sse2_loop\n\n    paddq     m0, m1\n%if mmsize > 32\n    vextracti64x4 ym1, m0, 1\n    paddq     ym0, ym1\n%endif\n%if mmsize > 16\n    vextracti128 xm1, ym0, 1\n    paddq     xm0, xm1\n%endif\n    movhlps   xm1, xm0\n    paddq     xm0, xm1\n    movd      eax, xm0\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE\n\nINIT_YMM avx2\nIDET_FILTER_LINE\n\nINIT_ZMM avx512icl\nIDET_FILTER_LINE", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "843920d5d6bdcecbfd4eeac66cd175348bf99496", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/843920d5d6bdcecbfd4eeac66cd175348bf99496/libavfilter/x86/vf_idetdsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:4", "text": "paddq     ym0, ym1\n%endif\n%if mmsize > 16\n    vextracti128 xm1, ym0, 1\n    paddq     xm0, xm1\n%endif\n    movhlps   xm1, xm0\n    paddq     xm0, xm1\n    movd      eax, xm0\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE\n\nINIT_YMM avx2\nIDET_FILTER_LINE\n\nINIT_ZMM avx512icl\nIDET_FILTER_LINE", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "843920d5d6bdcecbfd4eeac66cd175348bf99496", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/843920d5d6bdcecbfd4eeac66cd175348bf99496/libavfilter/x86/vf_idetdsp.asm", "line_start": 121, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for idet filter\n;*\n;* Copyright (C) 2014 Pascal Massimino (pascal.massimino@gmail.com)\n;* Copyright (c) 2014 Neil Birkbeck (birkbeck@google.com)\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;******************************************************************************\n; 16bit implementation that does 4/8-pixels at a time\n\n%macro PABS_DIFF_WD 3    ; a, b, junk   , output=a\n  psubusw   %3, %2, %1\n  psubusw   %1, %2\n  por       %1, %3\n\n  mova      %2, %1\n  punpcklwd %1, m_zero\n  punpckhwd %2, m_zero\n  paddd     %1, %2\n%endmacro\n\n%macro IDET_FILTER_LINE_16BIT 1   ; %1=increment (4 or 8 words)\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    mova      m6, m2\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, %1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "4c067d0778c932ab85f35cc4c07ace9d612e1905", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c067d0778c932ab85f35cc4c07ace9d612e1905/libavfilter/x86/vf_idetdsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:2", "text": "%macro IDET_FILTER_LINE_16BIT 1   ; %1=increment (4 or 8 words)\ncglobal idet_filter_line_16bit, 4, 5, 8, a, b, c, width, index\n    xor       indexq, indexq\n%define m_zero m1\n%define m_sum  m0\n    pxor      m_sum, m_sum\n    pxor      m_zero, m_zero\n\n.loop_16bit:\n    movu      m2, [bq + indexq * 2]  ; B\n    movu      m3, [aq + indexq * 2]  ; A\n    mova      m6, m2\n    psubusw   m5, m2, m3             ; ba\n\n    movu      m4, [cq + indexq * 2]  ; C\n    add       indexq, %1\n    psubusw   m3, m2                 ; ab\n    CMP       indexd, widthd\n\n    psubusw   m6, m4                 ; bc\n    psubusw   m4, m2                 ; cb\n\n    PABS_DIFF_WD   m3, m6, m7        ; |ab - bc|\n    PABS_DIFF_WD   m5, m4, m7        ; |ba - cb|\n    paddd          m_sum, m3\n    paddd          m_sum, m5\n    jl        .loop_16bit\n\n    HADDD     m_sum, m2\n    movd      eax, m_sum\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE_16BIT 8\n\n;******************************************************************************\n; SSE2 8-bit implementation that does 16-bytes at a time:\n\n%macro IDET_FILTER_LINE 0\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    mova      m6, m2\n    mova      m4, m3\n    psubusb   m5, m2, m3           ; ba\n\n    movu      m3, [cq + indexq*1]  ; C\n    add       indexq, mmsize\n    psubusb   m4, m2               ; ab\n    CMP       indexd, widthd\n\n    psubusb   m6, m3               ; bc\n    psubusb   m3, m2               ; cb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "4c067d0778c932ab85f35cc4c07ace9d612e1905", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c067d0778c932ab85f35cc4c07ace9d612e1905/libavfilter/x86/vf_idetdsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_idetdsp.asm:3", "text": "%macro IDET_FILTER_LINE 0\ncglobal idet_filter_line, 4, 6, 7, a, b, c, width, index, total\n    xor       indexq, indexq\n    pxor      m0, m0\n    pxor      m1, m1\n\n.sse2_loop:\n    movu      m2, [bq + indexq*1]  ; B\n    movu      m3, [aq + indexq*1]  ; A\n    mova      m6, m2\n    mova      m4, m3\n    psubusb   m5, m2, m3           ; ba\n\n    movu      m3, [cq + indexq*1]  ; C\n    add       indexq, mmsize\n    psubusb   m4, m2               ; ab\n    CMP       indexd, widthd\n\n    psubusb   m6, m3               ; bc\n    psubusb   m3, m2               ; cb\n\n    psadbw    m4, m6               ; |ab - bc|\n    paddq     m0, m4\n    psadbw    m5, m3               ; |ba - cb|\n    paddq     m1, m5\n    jl       .sse2_loop\n\n    paddq     m0, m1\n    movhlps   m1, m0\n    paddq     m0, m1\n    movd      eax, m0\n    RET\n%endmacro\n\nINIT_XMM sse2\nIDET_FILTER_LINE", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_idetdsp.asm", "license": "LGPL-2.1", "commit": "4c067d0778c932ab85f35cc4c07ace9d612e1905", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4c067d0778c932ab85f35cc4c07ace9d612e1905/libavfilter/x86/vf_idetdsp.asm", "line_start": 81, "line_end": 116}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_interlace.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for interlace filter\n;*\n;* Copyright (C) 2014 Kieran Kunhya <kierank@obe.tv>\n;* Copyright (c) 2014 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2017 Thomas Mundt <tmundt75@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_4: times 8 dw 4\n\nSECTION .text\n\n%macro LOWPASS 1\n    add dstq, hq\n    add srcq, hq\n    add mrefq, srcq\n    add prefq, srcq\n    neg hq\n\n    pcmpeq%1 m6, m6\n\n    test hq, mmsize\n    je .loop\n\n    ;process 1 * mmsize\n    movu m0, [mrefq+hq]\n    pavg%1 m0, [prefq+hq]\n    pxor m0, m6\n    pxor m2, m6, [srcq+hq]\n    pavg%1 m0, m2\n    pxor m0, m6\n    movu [dstq+hq], m0\n    add hq, mmsize\n    jge .end\n\n.loop:\n    movu m0, [mrefq+hq]\n    movu m1, [mrefq+hq+mmsize]\n    pavg%1 m0, [prefq+hq]\n    pavg%1 m1, [prefq+hq+mmsize]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_interlace.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_interlace.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_interlace.asm:2", "text": "test hq, mmsize\n    je .loop\n\n    ;process 1 * mmsize\n    movu m0, [mrefq+hq]\n    pavg%1 m0, [prefq+hq]\n    pxor m0, m6\n    pxor m2, m6, [srcq+hq]\n    pavg%1 m0, m2\n    pxor m0, m6\n    movu [dstq+hq], m0\n    add hq, mmsize\n    jge .end\n\n.loop:\n    movu m0, [mrefq+hq]\n    movu m1, [mrefq+hq+mmsize]\n    pavg%1 m0, [prefq+hq]\n    pavg%1 m1, [prefq+hq+mmsize]\n    pxor m0, m6\n    pxor m1, m6\n    pxor m2, m6, [srcq+hq]\n    pxor m3, m6, [srcq+hq+mmsize]\n    pavg%1 m0, m2\n    pavg%1 m1, m3\n    pxor m0, m6\n    pxor m1, m6\n    movu [dstq+hq], m0\n    movu [dstq+hq+mmsize], m1\n\n    add hq, 2*mmsize\n    jl .loop\n\n.end:\n    RET\n%endmacro\n\n%macro LOWPASS_LINE 0\ncglobal lowpass_line, 5, 5, 7, dst, h, src, mref, pref\n    LOWPASS b\n\ncglobal lowpass_line_16, 5, 5, 7, dst, h, src, mref, pref\n    shl hq, 1\n    LOWPASS w\n%endmacro\n\n%macro LOWPASS_LINE_COMPLEX 0\ncglobal lowpass_line_complex, 5, 5, 8, dst, h, src, mref, pref\n    pxor m7, m7\n.loop:\n    movu m0, [srcq+mrefq]\n    movu m2, [srcq+prefq]\n    mova m1, m0\n    mova m3, m2\n    punpcklbw m0, m7\n    punpcklbw m2, m7\n    punpckhbw m1, m7\n    punpckhbw m3, m7\n    paddw m0, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_interlace.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_interlace.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_interlace.asm:3", "text": "LOWPASS b\n\ncglobal lowpass_line_16, 5, 5, 7, dst, h, src, mref, pref\n    shl hq, 1\n    LOWPASS w\n%endmacro\n\n%macro LOWPASS_LINE_COMPLEX 0\ncglobal lowpass_line_complex, 5, 5, 8, dst, h, src, mref, pref\n    pxor m7, m7\n.loop:\n    movu m0, [srcq+mrefq]\n    movu m2, [srcq+prefq]\n    mova m1, m0\n    mova m3, m2\n    punpcklbw m0, m7\n    punpcklbw m2, m7\n    punpckhbw m1, m7\n    punpckhbw m3, m7\n    paddw m0, m2\n    paddw m1, m3\n    mova m6, m0\n    mova m5, m1\n    movu m2, [srcq]\n    mova m3, m2\n    punpcklbw m2, m7\n    punpckhbw m3, m7\n    paddw m0, m2\n    paddw m1, m3\n    psllw m2, 1\n    psllw m3, 1\n    paddw m0, m2\n    paddw m1, m3\n    psllw m0, 1\n    psllw m1, 1\n    pcmpgtw m6, m2\n    pcmpgtw m5, m3\n    packsswb m6, m5\n    movu m2, [srcq+mrefq*2]\n    movu m4, [srcq+prefq*2]\n    mova m3, m2\n    mova m5, m4\n    punpcklbw m2, m7\n    punpcklbw m4, m7\n    punpckhbw m3, m7\n    punpckhbw m5, m7\n    paddw m2, m4\n    paddw m3, m5\n    paddw m0, [pw_4]\n    paddw m1, [pw_4]\n    psubusw m0, m2\n    psubusw m1, m3\n    psrlw m0, 3\n    psrlw m1, 3\n    packuswb m0, m1\n    mova m1, m0\n    movu m2, [srcq]\n    pmaxub m0, m2\n    pminub m1, m2\n    pand m0, m6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_interlace.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_interlace.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_interlace.asm:4", "text": "mova m3, m2\n    mova m5, m4\n    punpcklbw m2, m7\n    punpcklbw m4, m7\n    punpckhbw m3, m7\n    punpckhbw m5, m7\n    paddw m2, m4\n    paddw m3, m5\n    paddw m0, [pw_4]\n    paddw m1, [pw_4]\n    psubusw m0, m2\n    psubusw m1, m3\n    psrlw m0, 3\n    psrlw m1, 3\n    packuswb m0, m1\n    mova m1, m0\n    movu m2, [srcq]\n    pmaxub m0, m2\n    pminub m1, m2\n    pand m0, m6\n    pandn m6, m1\n    por m0, m6\n    movu [dstq], m0\n\n    add dstq, mmsize\n    add srcq, mmsize\n    sub hd, mmsize\n    jg .loop\nRET\n\ncglobal lowpass_line_complex_12, 5, 5, 8, 16, dst, h, src, mref, pref, clip_max\n    movd m7, DWORD clip_maxm\n    SPLATW m7, m7, 0\n    movu [rsp], m7\n.loop:\n    movu m0, [srcq+mrefq]\n    movu m1, [srcq+mrefq+mmsize]\n    movu m2, [srcq+prefq]\n    movu m3, [srcq+prefq+mmsize]\n    paddw m0, m2\n    paddw m1, m3\n    mova m6, m0\n    mova m7, m1\n    movu m2, [srcq]\n    movu m3, [srcq+mmsize]\n    paddw m0, m2\n    paddw m1, m3\n    psllw m2, 1\n    psllw m3, 1\n    paddw m0, m2\n    paddw m1, m3\n    psllw m0, 1\n    psllw m1, 1\n    pcmpgtw m6, m2\n    pcmpgtw m7, m3\n    movu m2, [srcq+2*mrefq]\n    movu m3, [srcq+2*mrefq+mmsize]\n    movu m4, [srcq+2*prefq]\n    movu m5, [srcq+2*prefq+mmsize]\n    paddw m2, m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_interlace.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_interlace.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_interlace.asm:5", "text": "paddw m1, m3\n    mova m6, m0\n    mova m7, m1\n    movu m2, [srcq]\n    movu m3, [srcq+mmsize]\n    paddw m0, m2\n    paddw m1, m3\n    psllw m2, 1\n    psllw m3, 1\n    paddw m0, m2\n    paddw m1, m3\n    psllw m0, 1\n    psllw m1, 1\n    pcmpgtw m6, m2\n    pcmpgtw m7, m3\n    movu m2, [srcq+2*mrefq]\n    movu m3, [srcq+2*mrefq+mmsize]\n    movu m4, [srcq+2*prefq]\n    movu m5, [srcq+2*prefq+mmsize]\n    paddw m2, m4\n    paddw m3, m5\n    paddw m0, [pw_4]\n    paddw m1, [pw_4]\n    psubusw m0, m2\n    psubusw m1, m3\n    psrlw m0, 3\n    psrlw m1, 3\n    pminsw m0, [rsp]\n    pminsw m1, [rsp]\n    mova m2, m0\n    mova m3, m1\n    movu m4, [srcq]\n    pmaxsw m0, m4\n    pminsw m2, m4\n    movu m4, [srcq + mmsize]\n    pmaxsw m1, m4\n    pminsw m3, m4\n    pand m0, m6\n    pand m1, m7\n    pandn m6, m2\n    pandn m7, m3\n    por m0, m6\n    por m1, m7\n    movu [dstq], m0\n    movu [dstq+mmsize], m1\n\n    add dstq, 2*mmsize\n    add srcq, 2*mmsize\n    sub hd, mmsize\n    jg .loop\nRET\n%endmacro\n\nINIT_XMM sse2\nLOWPASS_LINE\n\nINIT_XMM avx\nLOWPASS_LINE\n\n%if HAVE_AVX2_EXTERNAL", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_interlace.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_interlace.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_interlace.asm:6", "text": "pandn m7, m3\n    por m0, m6\n    por m1, m7\n    movu [dstq], m0\n    movu [dstq+mmsize], m1\n\n    add dstq, 2*mmsize\n    add srcq, 2*mmsize\n    sub hd, mmsize\n    jg .loop\nRET\n%endmacro\n\nINIT_XMM sse2\nLOWPASS_LINE\n\nINIT_XMM avx\nLOWPASS_LINE\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLOWPASS_LINE\n%endif\n\nINIT_XMM sse2\nLOWPASS_LINE_COMPLEX", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_interlace.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_interlace.asm", "line_start": 201, "line_end": 226}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_limiter.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for limiter filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\n\ncglobal limiter_8bit, 6, 7, 3, src, dst, slinesize, dlinesize, w, h, x\n    movsxdifnidn wq, wd\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n    movd         m1, r6m\n    punpcklbw    m1, m1\n    SPLATW       m1, m1\n    movd         m2, r7m\n    punpcklbw    m2, m2\n    SPLATW       m2, m2\n.nextrow:\n    mov          xq, wq\n\n    .loop:\n        movu           m0, [srcq + xq]\n        CLIPUB         m0, m1, m2\n        movu    [dstq+xq], m0\n        add            xq, mmsize\n    jl .loop\n\n    add        srcq, slinesizeq\n    add        dstq, dlinesizeq\n    sub        hd, 1\n    jg .nextrow\n    RET\n\nINIT_XMM sse4\n\ncglobal limiter_16bit, 6, 7, 3, src, dst, slinesize, dlinesize, w, h, x\n    shl          wd, 1\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_limiter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_limiter.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_limiter.asm:2", "text": ".loop:\n        movu           m0, [srcq + xq]\n        CLIPUB         m0, m1, m2\n        movu    [dstq+xq], m0\n        add            xq, mmsize\n    jl .loop\n\n    add        srcq, slinesizeq\n    add        dstq, dlinesizeq\n    sub        hd, 1\n    jg .nextrow\n    RET\n\nINIT_XMM sse4\n\ncglobal limiter_16bit, 6, 7, 3, src, dst, slinesize, dlinesize, w, h, x\n    shl          wd, 1\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n    movd         m1, r6m\n    SPLATW       m1, m1\n    movd         m2, r7m\n    SPLATW       m2, m2\n.nextrow:\n    mov          xq, wq\n\n    .loop:\n        movu           m0, [srcq + xq]\n        pmaxuw         m0, m1\n        pminuw         m0, m2\n        movu    [dstq+xq], m0\n        add            xq, mmsize\n    jl .loop\n\n    add        srcq, slinesizeq\n    add        dstq, dlinesizeq\n    sub        hd, 1\n    jg .nextrow\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_limiter.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_limiter.asm", "line_start": 41, "line_end": 80}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for lut3d filter\n;*\n;* Copyright (c) 2021 Mark Reid <mindmark@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npd_1f:  times 8 dd 1.0\npd_3f:  times 8 dd 3.0\npd_65535f:     times 8 dd 65535.0\npd_65535_invf: times 8 dd 0x37800080 ;1.0/65535.0\n\npb_shuffle16:         db    0,    1, 0x80, 0x80, \\\n                            2,    3, 0x80, 0x80, \\\n                            4,    5, 0x80, 0x80, \\\n                            6,    7, 0x80, 0x80\n\npb_lo_pack_shuffle16: db    0,    1,    4,    5, \\\n                            8,    9,   12,   13, \\\n                         0x80, 0x80, 0x80, 0x80, \\\n                         0x80, 0x80, 0x80, 0x80\n\npb_hi_pack_shuffle16: db 0x80, 0x80, 0x80, 0x80, \\\n                         0x80, 0x80, 0x80, 0x80, \\\n                            0,    1,    4,    5, \\\n                            8,    9,   12,   13\n\nSECTION .text\n\nstruc Lut3DPreLut\n    .size:    resd 1\n    .min:     resd 3\n    .max:     resd 3\n    .scale:   resd 3\n    .lut:     resq 3\nendstruc\n\nstruc LUT3DContext\n    .class:        resq 1\n    .lut:          resq 1\n    .lutsize:      resd 1\n    .lutsize2:     resd 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:2", "text": "pb_hi_pack_shuffle16: db 0x80, 0x80, 0x80, 0x80, \\\n                         0x80, 0x80, 0x80, 0x80, \\\n                            0,    1,    4,    5, \\\n                            8,    9,   12,   13\n\nSECTION .text\n\nstruc Lut3DPreLut\n    .size:    resd 1\n    .min:     resd 3\n    .max:     resd 3\n    .scale:   resd 3\n    .lut:     resq 3\nendstruc\n\nstruc LUT3DContext\n    .class:        resq 1\n    .lut:          resq 1\n    .lutsize:      resd 1\n    .lutsize2:     resd 1\n    .scale:        resd 3\nendstruc\n\n%define AV_NUM_DATA_POINTERS 8\n\nstruc AVFrame\n    .data:          resq AV_NUM_DATA_POINTERS\n    .linesize:      resd AV_NUM_DATA_POINTERS\n    .extended_data: resq 1\n    .width:         resd 1\n    .height:        resd 1\nendstruc\n\n%define rm   rsp\n%define gm   rsp+mmsize\n%define bm   rsp+(mmsize*2)\n\n%define lut3dsizem  [rsp+mmsize*3]\n%define lut3dsize2m [rsp+mmsize*4]\n%define lut3dmaxm   [rsp+mmsize*5]\n%define prelutmaxm  [rsp+mmsize*6]\n\n%define scalerm [rsp+mmsize*7]\n%define scalegm [rsp+mmsize*8]\n%define scalebm [rsp+mmsize*9]\n\n%define prelutminrm [rsp+mmsize*10]\n%define prelutmingm [rsp+mmsize*11]\n%define prelutminbm [rsp+mmsize*12]\n\n%define prelutscalerm [rsp+mmsize*13]\n%define prelutscalegm [rsp+mmsize*14]\n%define prelutscalebm [rsp+mmsize*15]\n\n; data pointers\n%define srcrm [rsp+mmsize*16 +  0]\n%define srcgm [rsp+mmsize*16 +  8]\n%define srcbm [rsp+mmsize*16 + 16]\n%define srcam [rsp+mmsize*16 + 24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:3", "text": "%define prelutmaxm  [rsp+mmsize*6]\n\n%define scalerm [rsp+mmsize*7]\n%define scalegm [rsp+mmsize*8]\n%define scalebm [rsp+mmsize*9]\n\n%define prelutminrm [rsp+mmsize*10]\n%define prelutmingm [rsp+mmsize*11]\n%define prelutminbm [rsp+mmsize*12]\n\n%define prelutscalerm [rsp+mmsize*13]\n%define prelutscalegm [rsp+mmsize*14]\n%define prelutscalebm [rsp+mmsize*15]\n\n; data pointers\n%define srcrm [rsp+mmsize*16 +  0]\n%define srcgm [rsp+mmsize*16 +  8]\n%define srcbm [rsp+mmsize*16 + 16]\n%define srcam [rsp+mmsize*16 + 24]\n\n%define dstrm [rsp+mmsize*16 + 32]\n%define dstgm [rsp+mmsize*16 + 40]\n%define dstbm [rsp+mmsize*16 + 48]\n%define dstam [rsp+mmsize*16 + 56]\n\n; 1 - prev\n; 2 - next\n; 3 - offset\n%macro FETCH_PRELUT_PN 3\n    mov tmp2d, [rm + %3]\n    mov tmp3d, [gm + %3]\n    movss xm%1, [tmpq + tmp2q*4]\n    movss xm%2, [tmpq + tmp3q*4]\n    movss [rm + %3], xm%1\n    movss [gm + %3], xm%2\n%endmacro\n\n; 1 - p\n; 2 - n\n; 3 - p indices\n; 4 - n indices\n%macro GATHER_PRELUT 4\n    %if cpuflag(avx2)\n        vpcmpeqb m7, m7\n        vgatherdps m%1, [tmpq + m%3*4], m7 ; p\n        vpcmpeqb m9, m9\n        vgatherdps m%2, [tmpq + m%4*4], m9 ; n\n    %else\n        mova [rm], m%3\n        mova [gm], m%4\n        FETCH_PRELUT_PN %1, %2, 0\n        FETCH_PRELUT_PN %1, %2, 4\n        FETCH_PRELUT_PN %1, %2, 8\n        FETCH_PRELUT_PN %1, %2, 12\n    %if mmsize > 16\n        FETCH_PRELUT_PN %1, %2, 16\n        FETCH_PRELUT_PN %1, %2, 20\n        FETCH_PRELUT_PN %1, %2, 24\n        FETCH_PRELUT_PN %1, %2, 28\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:4", "text": "; 4 - n indices\n%macro GATHER_PRELUT 4\n    %if cpuflag(avx2)\n        vpcmpeqb m7, m7\n        vgatherdps m%1, [tmpq + m%3*4], m7 ; p\n        vpcmpeqb m9, m9\n        vgatherdps m%2, [tmpq + m%4*4], m9 ; n\n    %else\n        mova [rm], m%3\n        mova [gm], m%4\n        FETCH_PRELUT_PN %1, %2, 0\n        FETCH_PRELUT_PN %1, %2, 4\n        FETCH_PRELUT_PN %1, %2, 8\n        FETCH_PRELUT_PN %1, %2, 12\n    %if mmsize > 16\n        FETCH_PRELUT_PN %1, %2, 16\n        FETCH_PRELUT_PN %1, %2, 20\n        FETCH_PRELUT_PN %1, %2, 24\n        FETCH_PRELUT_PN %1, %2, 28\n    %endif\n        movu m%1, [rm]\n        movu m%2, [gm]\n    %endif\n%endmacro\n\n%macro FLOORPS 2\n    %if mmsize > 16\n        vroundps %1, %2, 0x01\n    %else\n        cvttps2dq %1, %2\n        cvtdq2ps  %1, %1\n    %endif\n%endmacro\n\n; %1 = %2 * %3 + %1\n%macro MADD3 3\n%if cpuflag(avx2)\n    vfmadd231ps %1, %2, %3\n%else\n    mulps %2, %2, %3\n    addps %1, %1, %2\n%endif\n%endmacro\n\n; 1 - dst\n; 2 - index\n; 3 - min\n; 4 - scale\n; assumes lut max m13, m14 1.0f, zero m15\n%macro APPLY_PRELUT 4\n    ; scale\n    subps m5, m%1, %3 ; v - min\n    mulps m5, m5, %4  ; v * scale\n    ; clamp\n    maxps m5, m5, m15 ; max zero, Max first, NAN set to zero\n    minps m5, m5, m13 ; min lut max\n\n    FLOORPS m3, m5    ; prev index\n    subps m5, m5, m3  ; d\n    addps m4, m3, m14 ; p+1 = n index", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:5", "text": "addps %1, %1, %2\n%endif\n%endmacro\n\n; 1 - dst\n; 2 - index\n; 3 - min\n; 4 - scale\n; assumes lut max m13, m14 1.0f, zero m15\n%macro APPLY_PRELUT 4\n    ; scale\n    subps m5, m%1, %3 ; v - min\n    mulps m5, m5, %4  ; v * scale\n    ; clamp\n    maxps m5, m5, m15 ; max zero, Max first, NAN set to zero\n    minps m5, m5, m13 ; min lut max\n\n    FLOORPS m3, m5    ; prev index\n    subps m5, m5, m3  ; d\n    addps m4, m3, m14 ; p+1 = n index\n    minps m4, m4, m13 ; clamp n idex\n\n    mov tmpq, [prelutq + Lut3DPreLut.lut + %2*8]\n    cvttps2dq m6, m3\n    cvttps2dq m10, m4\n    GATHER_PRELUT %1, 4, 6, 10\n\n    ; lerp\n    subps m8, m4, m%1\n    MADD3 m%1, m8, m5\n\n%endmacro\n\n; 1 - dst\n; 2 - scale\n; assumes lut max m13, zero m15\n%macro APPLY_SCALE 2\n   mulps m%1, m%1, %2\n   maxps m%1, m%1, m15 ; Max first, NAN set to zero\n   minps m%1, m%1, m13\n%endmacro\n\n%macro BLEND 4\n%if mmsize > 16\n    vblendvps %1, %2, %3, %4\n%else\n    %ifidni %1,%2\n        %error operand 1 must not equal operand 2\n    %endif\n    %ifidni %1,%3\n        %error operand 1 must not equal operand 3\n    %endif\n    mova  %1, %2\n    xorps %1, %3\n    andps %1, %4\n    xorps %1, %2\n%endif\n%endmacro\n\n%macro ADD3 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:6", "text": "%endmacro\n\n%macro BLEND 4\n%if mmsize > 16\n    vblendvps %1, %2, %3, %4\n%else\n    %ifidni %1,%2\n        %error operand 1 must not equal operand 2\n    %endif\n    %ifidni %1,%3\n        %error operand 1 must not equal operand 3\n    %endif\n    mova  %1, %2\n    xorps %1, %3\n    andps %1, %4\n    xorps %1, %2\n%endif\n%endmacro\n\n%macro ADD3 4\n    addps %1, %2, %3\n    addps %1, %1, %4\n%endmacro\n\n%macro FETCH_LUT3D_RGB 4\n    mov tmp2d, [rm + %4]\n    movss xm%1, [tmpq + tmp2q*4 + 0]\n    movss xm%2, [tmpq + tmp2q*4 + 4]\n    movss xm%3, [tmpq + tmp2q*4 + 8]\n    movss [rm + %4], xm%1\n    movss [gm + %4], xm%2\n    movss [bm + %4], xm%3\n%endmacro\n\n; 1 - dstr\n; 2 - dstg\n; 3 - dstb\n; 4 - indices\n%macro GATHER_LUT3D_INDICES 4\n%if cpuflag(avx2)\n    vpcmpeqb m3, m3\n    vgatherdps m%1, [tmpq + m%4*4 + 0], m3\n    vpcmpeqb m14, m14\n    vgatherdps m%2, [tmpq + m%4*4 + 4], m14\n    vpcmpeqb m15, m15\n    vgatherdps m%3, [tmpq + m%4*4 + 8], m15\n%else\n    movu [rm], m%4\n    FETCH_LUT3D_RGB %1, %2, %3, 0\n    FETCH_LUT3D_RGB %1, %2, %3, 4\n    FETCH_LUT3D_RGB %1, %2, %3, 8\n    FETCH_LUT3D_RGB %1, %2, %3, 12\n%if mmsize > 16\n    FETCH_LUT3D_RGB %1, %2, %3, 16\n    FETCH_LUT3D_RGB %1, %2, %3, 20\n    FETCH_LUT3D_RGB %1, %2, %3, 24\n    FETCH_LUT3D_RGB %1, %2, %3, 28\n%endif\n    movu m%1, [rm]\n    movu m%2, [gm]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:7", "text": "vpcmpeqb m3, m3\n    vgatherdps m%1, [tmpq + m%4*4 + 0], m3\n    vpcmpeqb m14, m14\n    vgatherdps m%2, [tmpq + m%4*4 + 4], m14\n    vpcmpeqb m15, m15\n    vgatherdps m%3, [tmpq + m%4*4 + 8], m15\n%else\n    movu [rm], m%4\n    FETCH_LUT3D_RGB %1, %2, %3, 0\n    FETCH_LUT3D_RGB %1, %2, %3, 4\n    FETCH_LUT3D_RGB %1, %2, %3, 8\n    FETCH_LUT3D_RGB %1, %2, %3, 12\n%if mmsize > 16\n    FETCH_LUT3D_RGB %1, %2, %3, 16\n    FETCH_LUT3D_RGB %1, %2, %3, 20\n    FETCH_LUT3D_RGB %1, %2, %3, 24\n    FETCH_LUT3D_RGB %1, %2, %3, 28\n%endif\n    movu m%1, [rm]\n    movu m%2, [gm]\n    movu m%3, [bm]\n%endif\n%endmacro\n\n%macro interp_tetrahedral 0\n    %define d_r m0\n    %define d_g m1\n    %define d_b m2\n\n    %define prev_r m3\n    %define prev_g m4\n    %define prev_b m5\n\n    %define next_r m6\n    %define next_g m7\n    %define next_b m8\n\n    %define x0 m4\n    %define x1 m5\n    %define x2 m6\n\n    ; setup prev index\n    FLOORPS prev_r, m0\n    FLOORPS prev_g, m1\n    FLOORPS prev_b, m2\n\n    ; setup deltas\n    subps d_r, m0, prev_r\n    subps d_g, m1, prev_g\n    subps d_b, m2, prev_b\n\n    ; setup next index\n    addps next_r, prev_r, m14 ; +1\n    minps next_r, next_r, m13 ; clamp lutmax\n\n    addps next_g, prev_g, m14 ; +1\n    minps next_g, next_g, m13 ; clamp lutmax\n\n    addps next_b, prev_b, m14 ; +1\n    minps next_b, next_b, m13 ; clamp lutmax", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:8", "text": "; setup prev index\n    FLOORPS prev_r, m0\n    FLOORPS prev_g, m1\n    FLOORPS prev_b, m2\n\n    ; setup deltas\n    subps d_r, m0, prev_r\n    subps d_g, m1, prev_g\n    subps d_b, m2, prev_b\n\n    ; setup next index\n    addps next_r, prev_r, m14 ; +1\n    minps next_r, next_r, m13 ; clamp lutmax\n\n    addps next_g, prev_g, m14 ; +1\n    minps next_g, next_g, m13 ; clamp lutmax\n\n    addps next_b, prev_b, m14 ; +1\n    minps next_b, next_b, m13 ; clamp lutmax\n\n    ; prescale indices\n    mulps prev_r, prev_r, lut3dsize2m\n    mulps next_r, next_r, lut3dsize2m\n\n    mulps prev_g, prev_g, lut3dsizem\n    mulps next_g, next_g, lut3dsizem\n\n    mulps prev_b, prev_b, [pd_3f]\n    mulps next_b, next_b, [pd_3f]\n\n    ; cxxxa m10\n    ; 1 is the delta that is the largest\n    ; r> == c100 == (r>g && r>b)\n    ; g> == c010 == (g>r && g>b)\n    ; b> == c001 == (b>r && b>g)\n    ; if delta > other 2 use next else prev\n\n    ; cxxxb m11;\n    ; 0 is the delta that is the smallest\n    ; r< == c011 == (r<=g && r<=b)\n    ; g< == c101 == (g<=r && g<=b)\n    ; b< == c110 == (b<=r && b<=g)\n    ; if delta <= other 2 use prev else next\n\n    cmpps m13, d_r, d_g, 0x1E ;  r>g\n    cmpps m14, d_g, d_b, 0x1E ;  g>b\n    cmpps m15, d_b, d_r, 0x1E ;  b>r\n\n    ; r> !b>r && r>g\n    andnps m9, m15, m13\n    BLEND m10, prev_r, next_r, m9\n\n    ; r< !r>g && b>r\n    andnps m9, m13, m15\n    BLEND m11, next_r, prev_r, m9\n\n    ; g> !r>g && g>b\n    andnps m9, m13, m14\n    BLEND m12, prev_g, next_g, m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:9", "text": "; r< == c011 == (r<=g && r<=b)\n    ; g< == c101 == (g<=r && g<=b)\n    ; b< == c110 == (b<=r && b<=g)\n    ; if delta <= other 2 use prev else next\n\n    cmpps m13, d_r, d_g, 0x1E ;  r>g\n    cmpps m14, d_g, d_b, 0x1E ;  g>b\n    cmpps m15, d_b, d_r, 0x1E ;  b>r\n\n    ; r> !b>r && r>g\n    andnps m9, m15, m13\n    BLEND m10, prev_r, next_r, m9\n\n    ; r< !r>g && b>r\n    andnps m9, m13, m15\n    BLEND m11, next_r, prev_r, m9\n\n    ; g> !r>g && g>b\n    andnps m9, m13, m14\n    BLEND m12, prev_g, next_g, m9\n    addps m10, m10, m12\n\n    ; g< !g>b && r>g\n    andnps m9, m14, m13\n    BLEND m12, next_g, prev_g, m9\n    addps m11, m11, m12\n\n    ; b> !g>b && b>r\n    andnps m9, m14, m15\n    BLEND m12, prev_b, next_b, m9\n    addps m10, m10, m12\n\n    ; b< !b>r && g>b\n    andnps m9, m15, m14\n    BLEND m12, next_b, prev_b, m9\n    addps m11, m11, m12\n\n    ; c000 m12;\n    ADD3 m12, prev_r, prev_g, prev_b\n\n    ; c111 m13;\n    ADD3 m13, next_r, next_g, next_b\n\n    ; sort delta r,g,b x0 >= x1 >= x2\n    minps m7, d_r, d_g\n    maxps m8, d_r, d_g\n\n    minps x2, m7, d_b\n    maxps m7, m7, d_b\n\n    maxps x0, m8, d_b\n    minps x1, m8, m7\n\n    ; convert indices to integer\n    cvttps2dq m12, m12\n    cvttps2dq m10, m10\n    cvttps2dq m11, m11\n    cvttps2dq m13, m13\n\n    ; now the gathering festival", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:10", "text": "; c111 m13;\n    ADD3 m13, next_r, next_g, next_b\n\n    ; sort delta r,g,b x0 >= x1 >= x2\n    minps m7, d_r, d_g\n    maxps m8, d_r, d_g\n\n    minps x2, m7, d_b\n    maxps m7, m7, d_b\n\n    maxps x0, m8, d_b\n    minps x1, m8, m7\n\n    ; convert indices to integer\n    cvttps2dq m12, m12\n    cvttps2dq m10, m10\n    cvttps2dq m11, m11\n    cvttps2dq m13, m13\n\n    ; now the gathering festival\n    mov tmpq, [ctxq + LUT3DContext.lut]\n\n    GATHER_LUT3D_INDICES 0, 1, 2, 12\n    movu m14, [pd_1f]\n    subps m14, m14, x0; 1 - x0\n\n    mulps m0, m0, m14\n    mulps m1, m1, m14\n    mulps m2, m2, m14\n\n    GATHER_LUT3D_INDICES 7, 8, 9, 10\n    subps m14, x0, x1; x0 - x1\n    MADD3 m0, m7, m14\n    MADD3 m1, m8, m14\n    MADD3 m2, m9, m14\n\n    GATHER_LUT3D_INDICES 7, 8, 9, 11\n    subps m14, x1, x2; x1 - x2\n    MADD3 m0, m7, m14\n    MADD3 m1, m8, m14\n    MADD3 m2, m9, m14\n\n    GATHER_LUT3D_INDICES 7, 8, 9, 13\n    MADD3 m0, m7, x2\n    MADD3 m1, m8, x2\n    MADD3 m2, m9, x2\n\n%endmacro\n\n%macro INIT_DATA_PTR 3\n    mov ptrq, [%2 + AVFrame.data     + %3 * 8]\n    mov tmpd, [%2 + AVFrame.linesize + %3 * 4]\n    imul tmpd, slice_startd\n    add ptrq, tmpq\n    mov %1, ptrq\n%endmacro\n\n%macro INC_DATA_PTR 3\n    mov tmpd, [%2 + AVFrame.linesize + %3 * 4]\n    mov ptrq, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:11", "text": "MADD3 m2, m9, m14\n\n    GATHER_LUT3D_INDICES 7, 8, 9, 13\n    MADD3 m0, m7, x2\n    MADD3 m1, m8, x2\n    MADD3 m2, m9, x2\n\n%endmacro\n\n%macro INIT_DATA_PTR 3\n    mov ptrq, [%2 + AVFrame.data     + %3 * 8]\n    mov tmpd, [%2 + AVFrame.linesize + %3 * 4]\n    imul tmpd, slice_startd\n    add ptrq, tmpq\n    mov %1, ptrq\n%endmacro\n\n%macro INC_DATA_PTR 3\n    mov tmpd, [%2 + AVFrame.linesize + %3 * 4]\n    mov ptrq, %1\n    add ptrq, tmpq\n    mov %1, ptrq\n%endmacro\n\n%macro LOAD16 2\n    mov ptrq, %2\n    %if mmsize > 16\n        movu xm%1, [ptrq + xq*2]\n    %else\n        movsd xm%1, [ptrq + xq*2]\n    %endif\n    %if cpuflag(avx2)\n        vpmovzxwd m%1, xm%1\n    %else\n        %if mmsize > 16\n            pshufd xm4, xm%1, (1 << 6 | 0 << 4 | 3 << 2 | 2 << 0)\n            pshufb xm%1, xm6 ; pb_shuffle16\n            pshufb xm4,  xm6 ; pb_shuffle16\n            vinsertf128 m%1, m%1, xm4, 1\n        %else\n            pshufd  xm%1, xm%1, (3 << 6 | 1 << 4 | 3 << 2 | 0 << 0)\n            pshuflw xm%1, xm%1, (2 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw xm%1, xm%1, (2 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n    cvtdq2ps m%1, m%1\n    mulps m%1, m%1, m7 ; pd_65535_invf\n%endmacro\n\n%macro STORE16 2\n    mulps m%2, m%2, m5  ; [pd_65535f]\n    minps m%2, m%2, m5  ; [pd_65535f]\n    maxps m%2, m%2, m15 ; zero\n    cvttps2dq m%2, m%2\n    %if mmsize > 16\n        vextractf128 xm4, m%2, 1\n        pshufb xm%2, xm6 ; [pb_lo_pack_shuffle16]\n        pshufb xm4,  xm7 ; [pb_hi_pack_shuffle16]\n        por xm%2, xm4\n    %else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:12", "text": "pshufd  xm%1, xm%1, (3 << 6 | 1 << 4 | 3 << 2 | 0 << 0)\n            pshuflw xm%1, xm%1, (2 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw xm%1, xm%1, (2 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n    cvtdq2ps m%1, m%1\n    mulps m%1, m%1, m7 ; pd_65535_invf\n%endmacro\n\n%macro STORE16 2\n    mulps m%2, m%2, m5  ; [pd_65535f]\n    minps m%2, m%2, m5  ; [pd_65535f]\n    maxps m%2, m%2, m15 ; zero\n    cvttps2dq m%2, m%2\n    %if mmsize > 16\n        vextractf128 xm4, m%2, 1\n        pshufb xm%2, xm6 ; [pb_lo_pack_shuffle16]\n        pshufb xm4,  xm7 ; [pb_hi_pack_shuffle16]\n        por xm%2, xm4\n    %else\n        pshuflw xm%2, xm%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufhw xm%2, xm%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd  xm%2, xm%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n    %endif\n    mov ptrq, %1\n    %if mmsize > 16\n        movu [ptrq + xq*2], xm%2\n    %else\n        movsd [ptrq + xq*2], xm%2\n    %endif\n%endmacro\n\n; 1 - interp method\n; 2 - format_name\n; 3 - depth\n; 4 - is float format\n%macro DEFINE_INTERP_FUNC 4\ncglobal interp_%1_%2, 7, 13, 16, mmsize*16+(8*8), ctx, prelut, src_image, dst_image, slice_start, slice_end, has_alpha, width, x, ptr, tmp, tmp2, tmp3\n    ; store lut max and lutsize\n    mov tmpd, dword [ctxq + LUT3DContext.lutsize]\n    cvtsi2ss xm0, tmpd\n    mulss xm0, xm0, [pd_3f]\n    VBROADCASTSS m0, xm0\n    mova lut3dsizem, m0\n    sub tmpd, 1\n    cvtsi2ss xm0, tmpd\n    VBROADCASTSS m0, xm0\n    mova lut3dmaxm, m0\n\n    ; scale_r\n    mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 0*4]\n    VBROADCASTSS m1, xm1\n    mova scalerm, m1\n\n    ; scale_g\n    mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 1*4]\n    VBROADCASTSS m1, xm1\n    mova scalegm, m1\n\n    ; scale_b", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:13", "text": "cvtsi2ss xm0, tmpd\n    mulss xm0, xm0, [pd_3f]\n    VBROADCASTSS m0, xm0\n    mova lut3dsizem, m0\n    sub tmpd, 1\n    cvtsi2ss xm0, tmpd\n    VBROADCASTSS m0, xm0\n    mova lut3dmaxm, m0\n\n    ; scale_r\n    mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 0*4]\n    VBROADCASTSS m1, xm1\n    mova scalerm, m1\n\n    ; scale_g\n    mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 1*4]\n    VBROADCASTSS m1, xm1\n    mova scalegm, m1\n\n    ; scale_b\n    mulss xm1, xm0, dword [ctxq + LUT3DContext.scale + 2*4]\n    VBROADCASTSS m1, xm1\n    mova scalebm, m1\n\n    ; store lutsize2\n    cvtsi2ss xm0, dword [ctxq + LUT3DContext.lutsize2]\n    mulss xm0, xm0, [pd_3f]\n    VBROADCASTSS m0, xm0\n    mova lut3dsize2m, m0\n\n    ; init prelut values\n    cmp prelutq, 0\n    je %%skip_init_prelut\n        mov tmpd, dword [prelutq + Lut3DPreLut.size]\n        sub tmpd, 1\n        cvtsi2ss xm0, tmpd\n        VBROADCASTSS m0, xm0\n        mova prelutmaxm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.min + 0*4]\n        mova prelutminrm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.min + 1*4]\n        mova prelutmingm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.min + 2*4]\n        mova prelutminbm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale + 0*4]\n        mova prelutscalerm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale + 1*4]\n        mova prelutscalegm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale + 2*4]\n        mova prelutscalebm, m0\n    %%skip_init_prelut:\n\n    mov widthd,  [src_imageq + AVFrame.width]\n\n    ; gbra pixel order\n    INIT_DATA_PTR srcrm, src_imageq, 2\n    INIT_DATA_PTR srcgm, src_imageq, 0\n    INIT_DATA_PTR srcbm, src_imageq, 1\n    INIT_DATA_PTR srcam, src_imageq, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:14", "text": "VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.min + 1*4]\n        mova prelutmingm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.min + 2*4]\n        mova prelutminbm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale + 0*4]\n        mova prelutscalerm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale + 1*4]\n        mova prelutscalegm, m0\n        VBROADCASTSS m0, dword [prelutq + Lut3DPreLut.scale + 2*4]\n        mova prelutscalebm, m0\n    %%skip_init_prelut:\n\n    mov widthd,  [src_imageq + AVFrame.width]\n\n    ; gbra pixel order\n    INIT_DATA_PTR srcrm, src_imageq, 2\n    INIT_DATA_PTR srcgm, src_imageq, 0\n    INIT_DATA_PTR srcbm, src_imageq, 1\n    INIT_DATA_PTR srcam, src_imageq, 3\n\n    INIT_DATA_PTR dstrm, dst_imageq, 2\n    INIT_DATA_PTR dstgm, dst_imageq, 0\n    INIT_DATA_PTR dstbm, dst_imageq, 1\n    INIT_DATA_PTR dstam, dst_imageq, 3\n\n    %%loop_y:\n        xor xq, xq\n        %%loop_x:\n            movu m14, [pd_1f]\n            xorps m15, m15, m15\n            %if %4 ; float\n                mov ptrq, srcrm\n                movu m0, [ptrq + xq*4]\n                mov ptrq, srcgm\n                movu m1, [ptrq + xq*4]\n                mov ptrq, srcbm\n                movu m2, [ptrq + xq*4]\n            %else\n                ; constants for LOAD16\n                movu m7, [pd_65535_invf]\n                %if notcpuflag(avx2) && mmsize >= 32\n                    movu xm6, [pb_shuffle16]\n                %endif\n                LOAD16 0, srcrm\n                LOAD16 1, srcgm\n                LOAD16 2, srcbm\n            %endif\n\n            cmp prelutq, 0\n            je %%skip_prelut\n                mova m13, prelutmaxm\n                APPLY_PRELUT 0, 0, prelutminrm, prelutscalerm\n                APPLY_PRELUT 1, 1, prelutmingm, prelutscalegm\n                APPLY_PRELUT 2, 2, prelutminbm, prelutscalebm\n            %%skip_prelut:\n\n            mova m13, lut3dmaxm\n            APPLY_SCALE 0, scalerm\n            APPLY_SCALE 1, scalegm\n            APPLY_SCALE 2, scalebm", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:15", "text": "%if notcpuflag(avx2) && mmsize >= 32\n                    movu xm6, [pb_shuffle16]\n                %endif\n                LOAD16 0, srcrm\n                LOAD16 1, srcgm\n                LOAD16 2, srcbm\n            %endif\n\n            cmp prelutq, 0\n            je %%skip_prelut\n                mova m13, prelutmaxm\n                APPLY_PRELUT 0, 0, prelutminrm, prelutscalerm\n                APPLY_PRELUT 1, 1, prelutmingm, prelutscalegm\n                APPLY_PRELUT 2, 2, prelutminbm, prelutscalebm\n            %%skip_prelut:\n\n            mova m13, lut3dmaxm\n            APPLY_SCALE 0, scalerm\n            APPLY_SCALE 1, scalegm\n            APPLY_SCALE 2, scalebm\n\n            interp_%1\n\n            %if %4 ; float\n                mov ptrq, dstrm\n                movu [ptrq + xq*4], m0\n                mov ptrq, dstgm\n                movu [ptrq + xq*4], m1\n                mov ptrq, dstbm\n                movu [ptrq + xq*4], m2\n                cmp has_alphad, 0\n                je %%skip_alphaf\n                    mov ptrq, srcam\n                    movu m0, [ptrq + xq*4]\n                    mov ptrq, dstam\n                    movu [ptrq + xq*4], m0\n                %%skip_alphaf:\n            %else\n                ; constants for STORE16\n                movu m5,  [pd_65535f]\n                %if mmsize > 16\n                    movu xm6, [pb_lo_pack_shuffle16]\n                    movu xm7, [pb_hi_pack_shuffle16]\n                %endif\n\n                xorps m15, m15, m15\n                STORE16 dstrm, 0\n                STORE16 dstgm, 1\n                STORE16 dstbm, 2\n\n                cmp has_alphad, 0\n                je %%skip_alpha\n                    %if mmsize > 16\n                        mov ptrq, srcam\n                        movu xm0, [ptrq + xq*2]\n                        mov ptrq, dstam\n                        movu [ptrq + xq*2], xm0\n                    %else\n                        mov ptrq, srcam\n                        movsd xm0, [ptrq + xq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:16", "text": "%if mmsize > 16\n                    movu xm6, [pb_lo_pack_shuffle16]\n                    movu xm7, [pb_hi_pack_shuffle16]\n                %endif\n\n                xorps m15, m15, m15\n                STORE16 dstrm, 0\n                STORE16 dstgm, 1\n                STORE16 dstbm, 2\n\n                cmp has_alphad, 0\n                je %%skip_alpha\n                    %if mmsize > 16\n                        mov ptrq, srcam\n                        movu xm0, [ptrq + xq*2]\n                        mov ptrq, dstam\n                        movu [ptrq + xq*2], xm0\n                    %else\n                        mov ptrq, srcam\n                        movsd xm0, [ptrq + xq*2]\n                        mov ptrq, dstam\n                        movsd [ptrq + xq*2], xm0\n                    %endif\n\n                %%skip_alpha:\n            %endif\n\n            add xq, mmsize/4\n            cmp xd, widthd\n            jl %%loop_x\n\n        INC_DATA_PTR srcrm, src_imageq, 2\n        INC_DATA_PTR srcgm, src_imageq, 0\n        INC_DATA_PTR srcbm, src_imageq, 1\n        INC_DATA_PTR srcam, src_imageq, 3\n\n        INC_DATA_PTR dstrm, dst_imageq, 2\n        INC_DATA_PTR dstgm, dst_imageq, 0\n        INC_DATA_PTR dstbm, dst_imageq, 1\n        INC_DATA_PTR dstam, dst_imageq, 3\n\n        inc slice_startd\n        cmp slice_startd, slice_endd\n        jl %%loop_y\n\n    RET\n%endmacro\n%if ARCH_X86_64\n    %if HAVE_AVX2_EXTERNAL\n        INIT_YMM avx2\n        DEFINE_INTERP_FUNC tetrahedral, pf32, 32, 1\n        DEFINE_INTERP_FUNC tetrahedral, p16, 16, 0\n    %endif\n    %if HAVE_AVX_EXTERNAL\n        INIT_YMM avx\n        DEFINE_INTERP_FUNC tetrahedral, pf32, 32, 1\n        DEFINE_INTERP_FUNC tetrahedral, p16, 16, 0\n    %endif\n    INIT_XMM sse2\n    DEFINE_INTERP_FUNC tetrahedral, pf32, 32, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_lut3d.asm:17", "text": "inc slice_startd\n        cmp slice_startd, slice_endd\n        jl %%loop_y\n\n    RET\n%endmacro\n%if ARCH_X86_64\n    %if HAVE_AVX2_EXTERNAL\n        INIT_YMM avx2\n        DEFINE_INTERP_FUNC tetrahedral, pf32, 32, 1\n        DEFINE_INTERP_FUNC tetrahedral, p16, 16, 0\n    %endif\n    %if HAVE_AVX_EXTERNAL\n        INIT_YMM avx\n        DEFINE_INTERP_FUNC tetrahedral, pf32, 32, 1\n        DEFINE_INTERP_FUNC tetrahedral, p16, 16, 0\n    %endif\n    INIT_XMM sse2\n    DEFINE_INTERP_FUNC tetrahedral, pf32, 32, 1\n    DEFINE_INTERP_FUNC tetrahedral, p16, 16, 0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_lut3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_lut3d.asm", "line_start": 641, "line_end": 662}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_maskedclamp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for maskedclamp filter\n;*\n;* Copyright (c) 2019 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_maskedclamp(const uint8_t *src, uint8_t *dst,\n;                     const uint8_t *darksrc,\n;                     const uint8_t *brightsrc,\n;                     int w, int undershoot, int overshoot)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal maskedclamp8, 5,5,5, src, dst, dark, bright, w, undershoot, overshoot\n    movsxdifnidn wq, wd\n\n    add        srcq, wq\n    add       darkq, wq\n    add     brightq, wq\n    add        dstq, wq\n    neg          wq\n\n    movd         m3, r5m\n    punpcklbw    m3, m3\n    SPLATW       m3, m3\n\n    movd         m4, r6m\n    punpcklbw    m4, m4\n    SPLATW       m4, m4\n\n    .loop:\n        movu                  m0, [srcq + wq]\n        movu                  m1, [darkq + wq]\n        movu                  m2, [brightq + wq]\n\n        psubusb               m1, m3\n        paddusb               m2, m4\n        CLIPUB                m0, m1, m2\n        mova         [dstq + wq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_maskedclamp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_maskedclamp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_maskedclamp.asm:2", "text": "add        dstq, wq\n    neg          wq\n\n    movd         m3, r5m\n    punpcklbw    m3, m3\n    SPLATW       m3, m3\n\n    movd         m4, r6m\n    punpcklbw    m4, m4\n    SPLATW       m4, m4\n\n    .loop:\n        movu                  m0, [srcq + wq]\n        movu                  m1, [darkq + wq]\n        movu                  m2, [brightq + wq]\n\n        psubusb               m1, m3\n        paddusb               m2, m4\n        CLIPUB                m0, m1, m2\n        mova         [dstq + wq], m0\n\n        add                   wq, mmsize\n        jl .loop\n    RET\n\nINIT_XMM sse4\ncglobal maskedclamp16, 5,5,5, src, dst, dark, bright, w, undershoot, overshoot\n    shl          wd, 1\n\n    add        srcq, wq\n    add       darkq, wq\n    add     brightq, wq\n    add        dstq, wq\n    neg          wq\n\n    movd         m3, r5m\n    SPLATW       m3, m3\n\n    movd         m4, r6m\n    SPLATW       m4, m4\n\n    .loop:\n        movu                  m0, [srcq + wq]\n        movu                  m1, [darkq + wq]\n        movu                  m2, [brightq + wq]\n\n        psubusw               m1, m3\n        paddusw               m2, m4\n        pmaxuw                m0, m1\n        pminuw                m0, m2\n        mova         [dstq + wq], m0\n\n        add                   wq, mmsize\n        jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_maskedclamp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_maskedclamp.asm", "line_start": 41, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_maskedclamp.asm:3", "text": ".loop:\n        movu                  m0, [srcq + wq]\n        movu                  m1, [darkq + wq]\n        movu                  m2, [brightq + wq]\n\n        psubusw               m1, m3\n        paddusw               m2, m4\n        pmaxuw                m0, m1\n        pminuw                m0, m2\n        mova         [dstq + wq], m0\n\n        add                   wq, mmsize\n        jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_maskedclamp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_maskedclamp.asm", "line_start": 81, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_maskedmerge.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for maskedmerge filter\n;*\n;* Copyright (C) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_127: times 8 dw 127\npw_255: times 8 dw 255\npw_32897: times 8 dw 32897\n\nSECTION .text\n\nINIT_XMM sse2\n%if ARCH_X86_64\ncglobal maskedmerge8, 8, 11, 8, bsrc, osrc, msrc, dst, blinesize, olinesize, mlinesize, dlinesize, w, h, x\n    mov         wd, dword wm\n    mov         hd, dword hm\n%else\ncglobal maskedmerge8, 5, 7, 8, bsrc, osrc, msrc, dst, blinesize, w, x\n    mov         wd, r8m\n%define olinesizeq r5mp\n%define mlinesizeq r6mp\n%define dlinesizeq r7mp\n%define hd r9mp\n%endif\n    mova        m4, [pw_255]\n    mova        m5, [pw_127]\n    mova        m7, [pw_32897]\n    pxor        m6, m6\n    add      bsrcq, wq\n    add      osrcq, wq\n    add      msrcq, wq\n    add       dstq, wq\n    neg         wq\n.nextrow:\n    mov         xq, wq\n\n    .loop:\n        movh            m0, [bsrcq + xq]\n        movh            m1, [osrcq + xq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_maskedmerge.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_maskedmerge.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_maskedmerge.asm:2", "text": "%define olinesizeq r5mp\n%define mlinesizeq r6mp\n%define dlinesizeq r7mp\n%define hd r9mp\n%endif\n    mova        m4, [pw_255]\n    mova        m5, [pw_127]\n    mova        m7, [pw_32897]\n    pxor        m6, m6\n    add      bsrcq, wq\n    add      osrcq, wq\n    add      msrcq, wq\n    add       dstq, wq\n    neg         wq\n.nextrow:\n    mov         xq, wq\n\n    .loop:\n        movh            m0, [bsrcq + xq]\n        movh            m1, [osrcq + xq]\n        movh            m3, [msrcq + xq]\n        mova            m2, m4\n        punpcklbw       m0, m6\n        punpcklbw       m1, m6\n        punpcklbw       m3, m6\n        psubw           m2, m3\n        pmullw          m2, m0\n        pmullw          m1, m3\n        paddw           m1, m2\n        paddw           m1, m5\n        pmulhuw         m1, m7\n        psrlw           m1, 7\n        packuswb        m1, m1\n        movh   [dstq + xq], m1\n        add             xq, mmsize / 2\n    jl .loop\n\n    add         bsrcq, blinesizeq\n    add         osrcq, olinesizeq\n    add         msrcq, mlinesizeq\n    add          dstq, dlinesizeq\n    sub         hd, 1\n    jg .nextrow\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_maskedmerge.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_maskedmerge.asm", "line_start": 41, "line_end": 84}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_nlmeans.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for nlmeans filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if HAVE_AVX2_EXTERNAL && ARCH_X86_64\n\nSECTION_RODATA 32\n\nending_lut: dd -1, -1, -1, -1, -1, -1, -1, -1,\\\n                0, -1, -1, -1, -1, -1, -1, -1,\\\n                0,  0, -1, -1, -1, -1, -1, -1,\\\n                0,  0,  0, -1, -1, -1, -1, -1,\\\n                0,  0,  0,  0, -1, -1, -1, -1,\\\n                0,  0,  0,  0,  0, -1, -1, -1,\\\n                0,  0,  0,  0,  0,  0, -1, -1,\\\n                0,  0,  0,  0,  0,  0,  0, -1,\\\n                0,  0,  0,  0,  0,  0,  0,  0\n\nSECTION .text\n\n; void ff_compute_weights_line(const uint32_t *const iia,\n;                              const uint32_t *const iib,\n;                              const uint32_t *const iid,\n;                              const uint32_t *const iie,\n;                              const uint8_t *const src,\n;                              float *total,\n;                              float *sum,\n;                              const float *const lut,\n;                              int max,\n;                              int startx, int endx);\n\nINIT_YMM avx2\ncglobal compute_weights_line, 8, 13, 5, 0, iia, iib, iid, iie, src, total, sum, lut, x, startx, endx, mod, elut\n    movsxd startxq, dword startxm\n    movsxd   endxq, dword endxm\n    VPBROADCASTD      m2, r8m\n\n    mov      xq, startxq\n    mov    modq, mmsize / 4\n    lea   elutq, [ending_lut]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_nlmeans.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_nlmeans.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_nlmeans.asm:2", "text": ";                              const uint32_t *const iib,\n;                              const uint32_t *const iid,\n;                              const uint32_t *const iie,\n;                              const uint8_t *const src,\n;                              float *total,\n;                              float *sum,\n;                              const float *const lut,\n;                              int max,\n;                              int startx, int endx);\n\nINIT_YMM avx2\ncglobal compute_weights_line, 8, 13, 5, 0, iia, iib, iid, iie, src, total, sum, lut, x, startx, endx, mod, elut\n    movsxd startxq, dword startxm\n    movsxd   endxq, dword endxm\n    VPBROADCASTD      m2, r8m\n\n    mov      xq, startxq\n    mov    modq, mmsize / 4\n    lea   elutq, [ending_lut]\n\n    vpcmpeqd  m4, m4\n\n    .loop:\n        mov    startxq, endxq\n        sub    startxq, xq\n        cmp    startxq, modq\n        cmovge startxq, modq\n        sal    startxq, 5\n\n        movu   m0, [iieq + xq * 4]\n\n        psubd  m0, [iidq + xq * 4]\n        psubd  m0, [iibq + xq * 4]\n        paddd  m0, [iiaq + xq * 4]\n        por    m0, [elutq + startxq]\n        pminud m0, m2\n        pslld  m0, 2\n        mova   m3, m4\n        vgatherdps m1, [lutq + m0], m3\n\n        pmovzxbd m0, [srcq + xq]\n        cvtdq2ps m0, m0\n\n        mulps m0, m1\n\n        addps m1, [totalq + xq * 4]\n        addps m0, [sumq + xq * 4]\n\n        movups [totalq + xq * 4], m1\n        movups [sumq + xq * 4], m0\n\n        add xq, mmsize / 4\n        cmp xq, endxq\n        jl .loop\n    RET\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_nlmeans.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_nlmeans.asm", "line_start": 41, "line_end": 97}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_nlmeans.asm:3", "text": "pmovzxbd m0, [srcq + xq]\n        cvtdq2ps m0, m0\n\n        mulps m0, m1\n\n        addps m1, [totalq + xq * 4]\n        addps m0, [sumq + xq * 4]\n\n        movups [totalq + xq * 4], m1\n        movups [sumq + xq * 4], m0\n\n        add xq, mmsize / 4\n        cmp xq, endxq\n        jl .loop\n    RET\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_nlmeans.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_nlmeans.asm", "line_start": 81, "line_end": 97}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for overlay filter\n;*\n;* Copyright (C) 2018 Paul B Mahol\n;* Copyright (C) 2018 Henrik Gramner\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_1:     times 16 db 1\npw_128:   times  8 dw 128\npw_255:   times  8 dw 255\npw_257:   times  8 dw 257\n\nSECTION .text\n\nINIT_XMM sse4\ncglobal overlay_row_44, 5, 7, 6, 0, dst, da, s, a, w, r, x\n    xor          xq, xq\n    movsxdifnidn wq, wd\n    mov          rq, wq\n    and          rq, mmsize/2 - 1\n    cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        pmovzxbw    m2, [aq+xq]\n        pmovzxbw    m1, [dstq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq [dstq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_overlay.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:2", "text": "cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        pmovzxbw    m2, [aq+xq]\n        pmovzxbw    m1, [dstq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq [dstq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop\n\n    .end:\n    mov    eax, xd\n    RET\n\nINIT_XMM sse4\ncglobal overlay_row_22, 5, 7, 6, 0, dst, da, s, a, w, r, x\n    xor          xq, xq\n    movsxdifnidn wq, wd\n    sub          wq, 1\n    mov          rq, wq\n    and          rq, mmsize/2 - 1\n    cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        movu        m1, [aq+2*xq]\n        pandn       m2, m3, m1\n        psllw       m1, 8\n        pavgw       m2, m1\n        pavgw       m2, m1\n        psrlw       m2, 8\n        pmovzxbw    m1, [dstq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq [dstq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_overlay.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:3", "text": "pmovzxbw    m0, [sq+xq]\n        movu        m1, [aq+2*xq]\n        pandn       m2, m3, m1\n        psllw       m1, 8\n        pavgw       m2, m1\n        pavgw       m2, m1\n        psrlw       m2, 8\n        pmovzxbw    m1, [dstq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq [dstq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop\n\n    .end:\n    mov    eax, xd\n    RET\n\nINIT_XMM sse4\ncglobal overlay_row_20, 6, 7, 7, 0, dst, da, s, a, w, r, x\n    mov         daq, aq\n    add         daq, rmp\n    xor          xq, xq\n    movsxdifnidn wq, wd\n    sub          wq, 1\n    mov          rq, wq\n    and          rq, mmsize/2 - 1\n    cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    mova         m6, [pb_1]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        movu        m2, [aq+2*xq]\n        movu        m1, [daq+2*xq]\n        pmaddubsw   m2, m6\n        pmaddubsw   m1, m6\n        paddw       m2, m1\n        psrlw       m2, 2\n        pmovzxbw    m1, [dstq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq [dstq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_overlay.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:4", "text": ".loop:\n        pmovzxbw    m0, [sq+xq]\n        movu        m2, [aq+2*xq]\n        movu        m1, [daq+2*xq]\n        pmaddubsw   m2, m6\n        pmaddubsw   m1, m6\n        paddw       m2, m1\n        psrlw       m2, 2\n        pmovzxbw    m1, [dstq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq [dstq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop\n\n    .end:\n    mov    eax, xd\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_overlay.asm", "line_start": 121, "line_end": 144}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for overlay filter\n;*\n;* Copyright (C) 2018 Paul B Mahol\n;* Copyright (C) 2018 Henrik Gramner\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_1:     times 16 db 1\npw_128:   times  8 dw 128\npw_255:   times  8 dw 255\npw_257:   times  8 dw 257\n\nSECTION .text\n\nINIT_XMM sse4\ncglobal overlay_row_44, 5, 7, 6, 0, d, da, s, a, w, r, x\n    xor          xq, xq\n    movsxdifnidn wq, wd\n    mov          rq, wq\n    and          rq, mmsize/2 - 1\n    cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        pmovzxbw    m2, [aq+xq]\n        pmovzxbw    m1, [dq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq   [dq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_overlay.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:2", "text": "cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        pmovzxbw    m2, [aq+xq]\n        pmovzxbw    m1, [dq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq   [dq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop\n\n    .end:\n    mov    eax, xd\n    RET\n\nINIT_XMM sse4\ncglobal overlay_row_22, 5, 7, 6, 0, d, da, s, a, w, r, x\n    xor          xq, xq\n    movsxdifnidn wq, wd\n    sub          wq, 1\n    mov          rq, wq\n    and          rq, mmsize/2 - 1\n    cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        movu        m1, [aq+2*xq]\n        pandn       m2, m3, m1\n        psllw       m1, 8\n        pavgw       m2, m1\n        pavgw       m2, m1\n        psrlw       m2, 8\n        pmovzxbw    m1, [dq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq   [dq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_overlay.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:3", "text": "pmovzxbw    m0, [sq+xq]\n        movu        m1, [aq+2*xq]\n        pandn       m2, m3, m1\n        psllw       m1, 8\n        pavgw       m2, m1\n        pavgw       m2, m1\n        psrlw       m2, 8\n        pmovzxbw    m1, [dq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq   [dq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop\n\n    .end:\n    mov    eax, xd\n    RET\n\nINIT_XMM sse4\ncglobal overlay_row_20, 6, 7, 7, 0, d, da, s, a, w, r, x\n    mov         daq, aq\n    add         daq, rmp\n    xor          xq, xq\n    movsxdifnidn wq, wd\n    sub          wq, 1\n    mov          rq, wq\n    and          rq, mmsize/2 - 1\n    cmp          wq, mmsize/2\n    jl .end\n    sub          wq, rq\n    mova         m3, [pw_255]\n    mova         m4, [pw_128]\n    mova         m5, [pw_257]\n    mova         m6, [pb_1]\n    .loop:\n        pmovzxbw    m0, [sq+xq]\n        movu        m2, [aq+2*xq]\n        movu        m1, [daq+2*xq]\n        pmaddubsw   m2, m6\n        pmaddubsw   m1, m6\n        paddw       m2, m1\n        psrlw       m2, 2\n        pmovzxbw    m1, [dq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq   [dq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_overlay.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_overlay.asm:4", "text": ".loop:\n        pmovzxbw    m0, [sq+xq]\n        movu        m2, [aq+2*xq]\n        movu        m1, [daq+2*xq]\n        pmaddubsw   m2, m6\n        pmaddubsw   m1, m6\n        paddw       m2, m1\n        psrlw       m2, 2\n        pmovzxbw    m1, [dq+xq]\n        pmullw      m0, m2\n        pxor        m2, m3\n        pmullw      m1, m2\n        paddw       m0, m4\n        paddw       m0, m1\n        pmulhuw     m0, m5\n        packuswb    m0, m0\n        movq   [dq+xq], m0\n        add         xq, mmsize/2\n        cmp         xq, wq\n        jl .loop\n\n    .end:\n    mov    eax, xd\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_overlay.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_overlay.asm", "line_start": 121, "line_end": 144}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pp7.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for pp7 filter\n;*\n;* Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\n;void ff_pp7_dctB_sse2(int16_t *dst, const int16_t *src)\ncglobal pp7_dctB, 2, 2, 6, dst, src\n    movq         m0, [srcq+8*0]\n    movq         m5, [srcq+8*6]\n    movq         m3, [srcq+8*3]\n    movq         m1, [srcq+8*1]\n    movq         m4, [srcq+8*5]\n    movq         m2, [srcq+8*2]\n    paddw        m0, m5\n    movq         m5, [srcq+8*4]\n    paddw        m3, m3\n    paddw        m1, m4\n    paddw        m2, m5\n\n    SUMSUB_BA     w, 0, 3, 4\n    SUMSUB_BA     w, 1, 2, 5\n\n    SUMSUB_BA     w, 1, 0, 4\n    movq     [dstq], m1\n    paddw        m4, m2, m3\n    paddw        m2, m2\n    movq [dstq+8*2], m0\n    paddw        m4, m3\n    psubw        m3, m2\n    movq [dstq+8*1], m4\n    movq [dstq+8*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pp7.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_pp7.asm", "line_start": 1, "line_end": 54}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pp7.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for pp7 filter\n;*\n;* Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_MMX mmx\n\n;void ff_pp7_dctB_mmx(int16_t *dst, const int16_t *src)\ncglobal pp7_dctB, 2, 2, 0, dst, src\n    movq   m0, [srcq]\n    movq   m1, [srcq+mmsize*1]\n    paddw  m0, [srcq+mmsize*6]\n    paddw  m1, [srcq+mmsize*5]\n    movq   m2, [srcq+mmsize*2]\n    movq   m3, [srcq+mmsize*3]\n    paddw  m2, [srcq+mmsize*4]\n    paddw  m3, m3\n    movq   m4, m3\n    psubw  m3, m0\n    paddw  m4, m0\n    movq   m0, m2\n    psubw  m2, m1\n    paddw  m0, m1\n    movq   m1, m4\n    psubw  m4, m0\n    paddw  m1, m0\n    movq   m0, m3\n    psubw  m3, m2\n    psubw  m3, m2\n    paddw  m2, m0\n    paddw  m2, m0\n    movq   [dstq], m1\n    movq   [dstq+mmsize*2], m4\n    movq   [dstq+mmsize*1], m2\n    movq   [dstq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pp7.asm", "license": "LGPL-2.1", "commit": "0a1faa7202b04a6c8992bf2b5ef86f9d071c3c8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0a1faa7202b04a6c8992bf2b5ef86f9d071c3c8c/libavfilter/x86/vf_pp7.asm", "line_start": 1, "line_end": 57}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pp7.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for pp7 filter\n;*\n;* Copyright (c) 2005 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_MMX mmx\n\n;void ff_pp7_dctB_mmx(int16_t *dst, int16_t *src)\ncglobal pp7_dctB, 2, 2, 0, dst, src\n    movq   m0, [srcq]\n    movq   m1, [srcq+mmsize*1]\n    paddw  m0, [srcq+mmsize*6]\n    paddw  m1, [srcq+mmsize*5]\n    movq   m2, [srcq+mmsize*2]\n    movq   m3, [srcq+mmsize*3]\n    paddw  m2, [srcq+mmsize*4]\n    paddw  m3, m3\n    movq   m4, m3\n    psubw  m3, m0\n    paddw  m4, m0\n    movq   m0, m2\n    psubw  m2, m1\n    paddw  m0, m1\n    movq   m1, m4\n    psubw  m4, m0\n    paddw  m1, m0\n    movq   m0, m3\n    psubw  m3, m2\n    psubw  m3, m2\n    paddw  m2, m0\n    paddw  m2, m0\n    movq   [dstq], m1\n    movq   [dstq+mmsize*2], m4\n    movq   [dstq+mmsize*1], m2\n    movq   [dstq+mmsize*3], m3\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pp7.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_pp7.asm", "line_start": 1, "line_end": 57}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_psnr.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for psnr filter\n;*\n;* Copyright (C) 2015 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro SSE_LINE_FN 2 ; 8 or 16, byte or word\nINIT_XMM sse2\n%if ARCH_X86_32\n%if %1 == 8\ncglobal sse_line_%1 %+ bit, 0, 6, 8, res, buf, w, px1, px2, ref\n%else\ncglobal sse_line_%1 %+ bit, 0, 7, 8, res, buf, reshigh, w, px1, px2, ref\n%endif\n    mov       bufq, r0mp\n    mov       refq, r1mp\n    mov         wd, r2m\n%else\ncglobal sse_line_%1 %+ bit, 3, 5, 8, buf, ref, w, px1, px2\n%endif\n    pxor        m6, m6\n    pxor        m7, m7\n    sub         wd, mmsize*2\n    jl .end\n\n.loop:\n    movu        m0, [bufq+mmsize*0]\n    movu        m1, [bufq+mmsize*1]\n    movu        m2, [refq+mmsize*0]\n    movu        m3, [refq+mmsize*1]\n%if %1 == 8\n    add       bufq, mmsize*2\n    add       refq, mmsize*2\n    psubusb     m4, m0, m2\n    psubusb     m5, m1, m3\n    psubusb     m2, m0\n    psubusb     m3, m1\n    por         m2, m4\n    por         m3, m5\n    punpcklbw   m0, m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_psnr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_psnr.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_psnr.asm:2", "text": "pxor        m6, m6\n    pxor        m7, m7\n    sub         wd, mmsize*2\n    jl .end\n\n.loop:\n    movu        m0, [bufq+mmsize*0]\n    movu        m1, [bufq+mmsize*1]\n    movu        m2, [refq+mmsize*0]\n    movu        m3, [refq+mmsize*1]\n%if %1 == 8\n    add       bufq, mmsize*2\n    add       refq, mmsize*2\n    psubusb     m4, m0, m2\n    psubusb     m5, m1, m3\n    psubusb     m2, m0\n    psubusb     m3, m1\n    por         m2, m4\n    por         m3, m5\n    punpcklbw   m0, m2, m6\n    punpcklbw   m1, m3, m6\n    punpckhbw   m2, m6\n    punpckhbw   m3, m6\n%else\n    psubw       m0, m2\n    psubw       m1, m3\n    movu        m2, [bufq+mmsize*2]\n    movu        m3, [bufq+mmsize*3]\n    movu        m4, [refq+mmsize*2]\n    movu        m5, [refq+mmsize*3]\n    psubw       m2, m4\n    psubw       m3, m5\n    add       bufq, mmsize*4\n    add       refq, mmsize*4\n%endif\n    pmaddwd     m0, m0\n    pmaddwd     m1, m1\n    pmaddwd     m2, m2\n    pmaddwd     m3, m3\n    paddd       m0, m1\n    paddd       m2, m3\n%if %1 == 8\n    paddd       m7, m0\n    paddd       m7, m2\n%else\n    paddd       m0, m2\n    punpckldq   m2, m0, m6\n    punpckhdq   m0, m6\n    paddq       m7, m0\n    paddq       m7, m2\n%endif\n    sub         wd, mmsize*2\n    jge .loop\n\n.end:\n    add         wd, mmsize*2\n    movhlps     m0, m7\n%if %1 == 8\n    paddd       m7, m0\n    pshufd      m0, m7, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_psnr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_psnr.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_psnr.asm:3", "text": "paddd       m2, m3\n%if %1 == 8\n    paddd       m7, m0\n    paddd       m7, m2\n%else\n    paddd       m0, m2\n    punpckldq   m2, m0, m6\n    punpckhdq   m0, m6\n    paddq       m7, m0\n    paddq       m7, m2\n%endif\n    sub         wd, mmsize*2\n    jge .loop\n\n.end:\n    add         wd, mmsize*2\n    movhlps     m0, m7\n%if %1 == 8\n    paddd       m7, m0\n    pshufd      m0, m7, 1\n    paddd       m7, m0\n    movd       eax, m7\n%else\n    paddq       m7, m0\n%if ARCH_X86_32\n    movd       eax, m7\n    psrldq      m7, 4\n    movd       edx, m7\n%else\n    movq       rax, m7\n%endif\n%endif\n\n    ; deal with cases where w % 32 != 0\n    test        wd, wd\n    jz .end_scalar\n.loop_scalar:\n    movzx     px1d, %2 [bufq+wq*(%1/8)-(%1/8)]\n    movzx     px2d, %2 [refq+wq*(%1/8)-(%1/8)]\n    sub       px1d, px2d\n    imul      px1d, px1d\n%if %1 == 8\n    add        eax, px1d\n%elif ARCH_X86_64\n    add        rax, px1q\n%else\n    add        eax, px1d\n    adc        edx, 0\n%endif\n    dec         wd\n    jg .loop_scalar\n\n.end_scalar:\n    ; for %1=8, no need to zero edx on x86-32, since edx=wd, which is zero\n    RET\n%endmacro\n\nINIT_XMM sse2\nSSE_LINE_FN  8, byte\nSSE_LINE_FN 16, word", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_psnr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_psnr.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_psnr.asm:4", "text": "imul      px1d, px1d\n%if %1 == 8\n    add        eax, px1d\n%elif ARCH_X86_64\n    add        rax, px1q\n%else\n    add        eax, px1d\n    adc        edx, 0\n%endif\n    dec         wd\n    jg .loop_scalar\n\n.end_scalar:\n    ; for %1=8, no need to zero edx on x86-32, since edx=wd, which is zero\n    RET\n%endmacro\n\nINIT_XMM sse2\nSSE_LINE_FN  8, byte\nSSE_LINE_FN 16, word", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_psnr.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_psnr.asm", "line_start": 121, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for pullup filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal pullup_filter_diff, 3, 4, 3, first, second, size\n    mov        r3, 4\n    pxor       m2, m2\n\n.loop:\n    movq       m0, [firstq]\n    add        firstq, sizeq\n    movq       m1, [secondq]\n    add        secondq, sizeq\n    psadbw     m0, m1\n    paddw      m2, m0\n\n    dec        r3\n    jnz .loop\n\n    movd      eax, m2\n    RET\n\nINIT_XMM ssse3\ncglobal pullup_filter_comb, 3, 5, 7, first, second, size\n    movq       m0, [firstq]\n    sub   secondq, sizeq\n    movq       m1, [secondq]\n    pxor       m6, m6\n    punpcklbw  m0, m6\n    punpcklbw  m1, m6\n    add    firstq, sizeq\n    add   secondq, sizeq\n    pxor       m5, m5\n    mov        r3, 4\n\n.loop:\n    movq       m2, [firstq]\n    movq       m3, [secondq]\n    add    firstq, sizeq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_pullup.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:2", "text": "movd      eax, m2\n    RET\n\nINIT_XMM ssse3\ncglobal pullup_filter_comb, 3, 5, 7, first, second, size\n    movq       m0, [firstq]\n    sub   secondq, sizeq\n    movq       m1, [secondq]\n    pxor       m6, m6\n    punpcklbw  m0, m6\n    punpcklbw  m1, m6\n    add    firstq, sizeq\n    add   secondq, sizeq\n    pxor       m5, m5\n    mov        r3, 4\n\n.loop:\n    movq       m2, [firstq]\n    movq       m3, [secondq]\n    add    firstq, sizeq\n    add   secondq, sizeq\n    punpcklbw  m2, m6\n    punpcklbw  m3, m6\n    mova       m4, m0\n\n    paddw      m0, m0\n    paddw      m1, m3\n    psubw      m0, m1\n    pabsw      m0, m0\n    paddw      m5, m0\n\n    mova       m1, m3\n    paddw      m4, m2\n    paddw      m3, m3\n    psubw      m3, m4\n    pabsw      m3, m3\n    paddw      m5, m3\n    mova       m2, m0\n\n    dec        r3\n    jnz .loop\n\n    movq       m0, m5\n    punpcklwd  m5, m6\n    punpckhwd  m0, m6\n    paddd      m0, m5\n    pshufd     m5, m0, 0xE\n    paddd      m0, m5\n    pshufd     m5, m0, 0x1\n    paddd      m0, m5\n    movd      eax, m0\n    RET\n\nINIT_XMM sse2\ncglobal pullup_filter_var, 3, 3, 3, first, second, size\n    movq       m0, [firstq]\n    add        firstq, sizeq\n    movq       m1, [firstq]\n    pxor       m2, m2\n    psadbw     m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_pullup.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:3", "text": "jnz .loop\n\n    movq       m0, m5\n    punpcklwd  m5, m6\n    punpckhwd  m0, m6\n    paddd      m0, m5\n    pshufd     m5, m0, 0xE\n    paddd      m0, m5\n    pshufd     m5, m0, 0x1\n    paddd      m0, m5\n    movd      eax, m0\n    RET\n\nINIT_XMM sse2\ncglobal pullup_filter_var, 3, 3, 3, first, second, size\n    movq       m0, [firstq]\n    add        firstq, sizeq\n    movq       m1, [firstq]\n    pxor       m2, m2\n    psadbw     m0, m1\n    paddw      m2, m0\n    movq       m0, [firstq+sizeq]\n    psadbw     m1, m0\n    paddw      m2, m1\n    movq       m1, [firstq+2*sizeq]\n    psadbw     m0, m1\n    paddw      m2, m0\n    movd      eax, m2\n    shl       eax, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_pullup.asm", "line_start": 81, "line_end": 110}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for pullup filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_MMX mmx\ncglobal pullup_filter_diff, 3, 5, 8, first, second, size\n    mov        r3, 4\n    pxor       m4, m4\n    pxor       m7, m7\n\n.loop:\n    movq       m0, [firstq]\n    movq       m2, [firstq]\n    add        firstq, sizeq\n    movq       m1, [secondq]\n    add        secondq, sizeq\n    psubusb    m2, m1\n    psubusb    m1, m0\n    movq       m0, m2\n    movq       m3, m1\n    punpcklbw  m0, m7\n    punpcklbw  m1, m7\n    punpckhbw  m2, m7\n    punpckhbw  m3, m7\n    paddw      m4, m0\n    paddw      m4, m1\n    paddw      m4, m2\n    paddw      m4, m3\n\n    dec        r3\n    jnz .loop\n\n    movq       m3, m4\n    punpcklwd  m4, m7\n    punpckhwd  m3, m7\n    paddd      m3, m4\n    movd      eax, m3\n    psrlq      m3, 32\n    movd      r4d, m3\n    add       eax, r4d", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_pullup.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:2", "text": "punpcklbw  m0, m7\n    punpcklbw  m1, m7\n    punpckhbw  m2, m7\n    punpckhbw  m3, m7\n    paddw      m4, m0\n    paddw      m4, m1\n    paddw      m4, m2\n    paddw      m4, m3\n\n    dec        r3\n    jnz .loop\n\n    movq       m3, m4\n    punpcklwd  m4, m7\n    punpckhwd  m3, m7\n    paddd      m3, m4\n    movd      eax, m3\n    psrlq      m3, 32\n    movd      r4d, m3\n    add       eax, r4d\n    RET\n\nINIT_MMX mmx\ncglobal pullup_filter_comb, 3, 5, 8, first, second, size\n    mov        r3, 4\n    pxor       m6, m6\n    pxor       m7, m7\n    sub        secondq, sizeq\n\n.loop:\n    movq       m0, [firstq]\n    movq       m1, [secondq]\n    punpcklbw  m0, m7\n    movq       m2, [secondq+sizeq]\n    punpcklbw  m1, m7\n    punpcklbw  m2, m7\n    paddw      m0, m0\n    paddw      m1, m2\n    movq       m2, m0\n    psubusw    m0, m1\n    psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    movq       m0, [firstq]\n    movq       m1, [secondq]\n    punpckhbw  m0, m7\n    movq       m2, [secondq+sizeq]\n    punpckhbw  m1, m7\n    punpckhbw  m2, m7\n    paddw      m0, m0\n    paddw      m1, m2\n    movq       m2, m0\n    psubusw    m0, m1\n    psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    movq       m0, [secondq+sizeq]\n    movq       m1, [firstq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_pullup.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:3", "text": "psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    movq       m0, [firstq]\n    movq       m1, [secondq]\n    punpckhbw  m0, m7\n    movq       m2, [secondq+sizeq]\n    punpckhbw  m1, m7\n    punpckhbw  m2, m7\n    paddw      m0, m0\n    paddw      m1, m2\n    movq       m2, m0\n    psubusw    m0, m1\n    psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    movq       m0, [secondq+sizeq]\n    movq       m1, [firstq]\n    punpcklbw  m0, m7\n    movq       m2, [firstq+sizeq]\n    punpcklbw  m1, m7\n    punpcklbw  m2, m7\n    paddw      m0, m0\n    paddw      m1, m2\n    movq       m2, m0\n    psubusw    m0, m1\n    psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    movq       m0, [secondq+sizeq]\n    movq       m1, [firstq]\n    punpckhbw  m0, m7\n    movq       m2, [firstq+sizeq]\n    punpckhbw  m1, m7\n    punpckhbw  m2, m7\n    paddw      m0, m0\n    paddw      m1, m2\n    movq       m2, m0\n    psubusw    m0, m1\n    psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    add        firstq, sizeq\n    add        secondq, sizeq\n    dec        r3\n    jnz .loop\n\n    movq       m5, m6\n    punpcklwd  m6, m7\n    punpckhwd  m5, m7\n    paddd      m5, m6\n    movd      eax, m5\n    psrlq      m5, 32\n    movd      r4d, m5\n    add       eax, r4d\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_pullup.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:4", "text": "movq       m2, m0\n    psubusw    m0, m1\n    psubusw    m1, m2\n    paddw      m6, m0\n    paddw      m6, m1\n\n    add        firstq, sizeq\n    add        secondq, sizeq\n    dec        r3\n    jnz .loop\n\n    movq       m5, m6\n    punpcklwd  m6, m7\n    punpckhwd  m5, m7\n    paddd      m5, m6\n    movd      eax, m5\n    psrlq      m5, 32\n    movd      r4d, m5\n    add       eax, r4d\n    RET\n\nINIT_MMX mmx\ncglobal pullup_filter_var, 3, 5, 8, first, second, size\n    mov        r3, 3\n    pxor       m4, m4\n    pxor       m7, m7\n\n.loop:\n    movq       m0, [firstq]\n    movq       m2, [firstq]\n    movq       m1, [firstq+sizeq]\n    add        firstq, sizeq\n    psubusb    m2, m1\n    psubusb    m1, m0\n    movq       m0, m2\n    movq       m3, m1\n    punpcklbw  m0, m7\n    punpcklbw  m1, m7\n    punpckhbw  m2, m7\n    punpckhbw  m3, m7\n    paddw      m4, m0\n    paddw      m4, m1\n    paddw      m4, m2\n    paddw      m4, m3\n\n    dec        r3\n    jnz .loop\n\n    movq       m3, m4\n    punpcklwd  m4, m7\n    punpckhwd  m3, m7\n    paddd      m3, m4\n    movd      eax, m3\n    psrlq      m3, 32\n    movd      r4d, m3\n    add       eax, r4d\n    shl       eax, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_pullup.asm", "line_start": 121, "line_end": 178}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_pullup.asm:5", "text": "paddw      m4, m0\n    paddw      m4, m1\n    paddw      m4, m2\n    paddw      m4, m3\n\n    dec        r3\n    jnz .loop\n\n    movq       m3, m4\n    punpcklwd  m4, m7\n    punpckhwd  m3, m7\n    paddd      m3, m4\n    movd      eax, m3\n    psrlq      m3, 32\n    movd      r4d, m3\n    add       eax, r4d\n    shl       eax, 2\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_pullup.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavfilter/x86/vf_pullup.asm", "line_start": 161, "line_end": 178}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for removegrain filter\n;*\n;* Copyright (C) 2015 James Darnley\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License along\n;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n;*****************************************************************************\n\n; column: -1  0 +1\n; row -1: a1 a2 a3\n; row  0: a4  c a5\n; row +1: a6 a7 a8\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\npw_4:    times 16 dw 4\npw_8:    times 16 dw 8\npw_div9: times 16 dw ((1<<16)+4)/9\n\nSECTION .text\n\n;*** Preprocessor helpers\n\n%define a1 srcq+stride_n-1\n%define a2 srcq+stride_n\n%define a3 srcq+stride_n+1\n%define a4 srcq-1\n%define c  srcq\n%define a5 srcq+1\n%define a6 srcq+stride_p-1\n%define a7 srcq+stride_p\n%define a8 srcq+stride_p+1\n\n; %1 dest simd register\n; %2 source memory location\n; %3 zero location (simd register/memory)\n%macro LOAD 3\n    movh %1, %2\n    punpcklbw %1, %3\n%endmacro\n\n%macro LOAD_SQUARE 0\n    movu m1, [a1]\n    movu m2, [a2]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:2", "text": "%define a2 srcq+stride_n\n%define a3 srcq+stride_n+1\n%define a4 srcq-1\n%define c  srcq\n%define a5 srcq+1\n%define a6 srcq+stride_p-1\n%define a7 srcq+stride_p\n%define a8 srcq+stride_p+1\n\n; %1 dest simd register\n; %2 source memory location\n; %3 zero location (simd register/memory)\n%macro LOAD 3\n    movh %1, %2\n    punpcklbw %1, %3\n%endmacro\n\n%macro LOAD_SQUARE 0\n    movu m1, [a1]\n    movu m2, [a2]\n    movu m3, [a3]\n    movu m4, [a4]\n    movu m0, [c]\n    movu m5, [a5]\n    movu m6, [a6]\n    movu m7, [a7]\n    movu m8, [a8]\n%endmacro\n\n; %1 zero location (simd register/memory)\n%macro LOAD_SQUARE_16 1\n    LOAD m1, [a1], %1\n    LOAD m2, [a2], %1\n    LOAD m3, [a3], %1\n    LOAD m4, [a4], %1\n    LOAD m0, [c], %1\n    LOAD m5, [a5], %1\n    LOAD m6, [a6], %1\n    LOAD m7, [a7], %1\n    LOAD m8, [a8], %1\n%endmacro\n\n; %1 data type\n; %2 simd register to hold maximums\n; %3 simd register to hold minimums\n; %4 temp location (simd register/memory)\n%macro SORT_PAIR 4\n    mova   %4, %2\n    pmin%1 %2, %3\n    pmax%1 %3, %4\n%endmacro\n\n%macro SORT_AXIS 0\n    SORT_PAIR ub, m1, m8, m9\n    SORT_PAIR ub, m2, m7, m10\n    SORT_PAIR ub, m3, m6, m11\n    SORT_PAIR ub, m4, m5, m12\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:3", "text": "%endmacro\n\n; %1 data type\n; %2 simd register to hold maximums\n; %3 simd register to hold minimums\n; %4 temp location (simd register/memory)\n%macro SORT_PAIR 4\n    mova   %4, %2\n    pmin%1 %2, %3\n    pmax%1 %3, %4\n%endmacro\n\n%macro SORT_AXIS 0\n    SORT_PAIR ub, m1, m8, m9\n    SORT_PAIR ub, m2, m7, m10\n    SORT_PAIR ub, m3, m6, m11\n    SORT_PAIR ub, m4, m5, m12\n%endmacro\n\n\n%macro SORT_AXIS_16 0\n    SORT_PAIR sw, m1, m8, m9\n    SORT_PAIR sw, m2, m7, m10\n    SORT_PAIR sw, m3, m6, m11\n    SORT_PAIR sw, m4, m5, m12\n%endmacro\n\n; The loop doesn't need to do all the iterations.  It could stop when the right\n; pixels are in the right registers.\n%macro SORT_SQUARE 0\n    %assign k 7\n    %rep 7\n        %assign i 1\n        %assign j 2\n        %rep k\n            SORT_PAIR ub, m %+ i , m %+ j , m9\n            %assign i i+1\n            %assign j j+1\n        %endrep\n        %assign k k-1\n    %endrep\n%endmacro\n\n; %1 dest simd register\n; %2 source (simd register/memory)\n; %3 temp simd register\n%macro ABS_DIFF 3\n    mova %3, %2\n    psubusb %3, %1\n    psubusb %1, %2\n    por %1, %3\n%endmacro\n\n; %1 dest simd register\n; %2 source (simd register/memory)\n; %3 temp simd register\n%macro ABS_DIFF_W 3\n    mova %3, %2\n    psubusw %3, %1\n    psubusw %1, %2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:4", "text": "%endrep\n%endmacro\n\n; %1 dest simd register\n; %2 source (simd register/memory)\n; %3 temp simd register\n%macro ABS_DIFF 3\n    mova %3, %2\n    psubusb %3, %1\n    psubusb %1, %2\n    por %1, %3\n%endmacro\n\n; %1 dest simd register\n; %2 source (simd register/memory)\n; %3 temp simd register\n%macro ABS_DIFF_W 3\n    mova %3, %2\n    psubusw %3, %1\n    psubusw %1, %2\n    por %1, %3\n%endmacro\n\n; %1 simd register that holds the \"false\" values and will hold the result\n; %2 simd register that holds the \"true\" values\n; %3 location (simd register/memory) that hold the mask\n%macro BLEND 3\n%if cpuflag(avx2)\n    vpblendvb %1, %1, %2, %3\n%else\n    pand      %2, %3\n    pandn     %3, %1\n    por       %3, %2\n    SWAP      %1, %3\n%endif\n%endmacro\n\n; Functions\n\nINIT_XMM sse2\ncglobal rg_fl_mode_1, 4, 5, 3, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        movu m0, [a1]\n        mova m1, m0\n\n        movu m2, [a2]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a3]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a4]\n        pmaxub m0, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:5", "text": "cglobal rg_fl_mode_1, 4, 5, 3, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        movu m0, [a1]\n        mova m1, m0\n\n        movu m2, [a2]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a3]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a4]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a5]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a6]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a7]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [a8]\n        pmaxub m0, m2\n        pminub m1, m2\n\n        movu m2, [c]\n        pminub m2, m0\n        pmaxub m2, m1\n\n        movu [dstq], m2\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\n%if ARCH_X86_64\ncglobal rg_fl_mode_2, 4, 5, 10, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_SQUARE", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:6", "text": "pmaxub m2, m1\n\n        movu [dstq], m2\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\n%if ARCH_X86_64\ncglobal rg_fl_mode_2, 4, 5, 10, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_SQUARE\n\n        CLIPUB m0, m2, m7\n\n        movu [dstq], m0\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_3, 4, 5, 10, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_SQUARE\n\n        CLIPUB m0, m3, m6\n\n        movu [dstq], m0\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_4, 4, 5, 10, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_SQUARE\n\n        CLIPUB m0, m4, m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:7", "text": "movu [dstq], m0\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_4, 4, 5, 10, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_SQUARE\n\n        CLIPUB m0, m4, m5\n\n        movu [dstq], m0\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_5, 4, 5, 13, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_AXIS\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n\n        CLIPUB m9, m1, m8\n        CLIPUB m10, m2, m7\n        CLIPUB m11, m3, m6\n        CLIPUB m12, m4, m5\n\n        mova m8, m9  ; clip1\n        mova m7, m10 ; clip2\n        mova m6, m11 ; clip3\n        mova m5, m12 ; clip4\n\n        ABS_DIFF m9, m0, m1  ; c1\n        ABS_DIFF m10, m0, m2 ; c2\n        ABS_DIFF m11, m0, m3 ; c3\n        ABS_DIFF m12, m0, m4 ; c4\n\n        pminub m9, m10\n        pminub m9, m11\n        pminub m9, m12 ; mindiff", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:8", "text": "mova m12, m0\n\n        CLIPUB m9, m1, m8\n        CLIPUB m10, m2, m7\n        CLIPUB m11, m3, m6\n        CLIPUB m12, m4, m5\n\n        mova m8, m9  ; clip1\n        mova m7, m10 ; clip2\n        mova m6, m11 ; clip3\n        mova m5, m12 ; clip4\n\n        ABS_DIFF m9, m0, m1  ; c1\n        ABS_DIFF m10, m0, m2 ; c2\n        ABS_DIFF m11, m0, m3 ; c3\n        ABS_DIFF m12, m0, m4 ; c4\n\n        pminub m9, m10\n        pminub m9, m11\n        pminub m9, m12 ; mindiff\n\n        pcmpeqb m10, m9\n        pcmpeqb m11, m9\n        pcmpeqb m12, m9\n\n        ; Notice the order here: c1, c3, c2, c4\n        BLEND m8, m6, m11\n        BLEND m8, m7, m10\n        BLEND m8, m5, m12\n\n        movu [dstq], m8\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_6, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    ; Some register saving suggestions: the zero can be somewhere other than a\n    ; register, the center pixels could be on the stack.\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n        CLIPW m9, m1, m8  ; clip1\n        CLIPW m10, m2, m7 ; clip2\n        CLIPW m11, m3, m6 ; clip3\n        CLIPW m12, m4, m5 ; clip4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:9", "text": "%define stride_p strideq\n    %define stride_n r4q\n\n    ; Some register saving suggestions: the zero can be somewhere other than a\n    ; register, the center pixels could be on the stack.\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n        CLIPW m9, m1, m8  ; clip1\n        CLIPW m10, m2, m7 ; clip2\n        CLIPW m11, m3, m6 ; clip3\n        CLIPW m12, m4, m5 ; clip4\n\n        psubw m8, m1 ; d1\n        psubw m7, m2 ; d2\n        psubw m6, m3 ; d3\n        psubw m5, m4 ; d4\n\n        mova m1, m9\n        mova m2, m10\n        mova m3, m11\n        mova m4, m12\n        ABS_DIFF_W m1, m0, m13\n        ABS_DIFF_W m2, m0, m14\n        ABS_DIFF_W m3, m0, m13\n        ABS_DIFF_W m4, m0, m14\n        psllw m1, 1\n        psllw m2, 1\n        psllw m3, 1\n        psllw m4, 1\n        paddw m1, m8 ; c1\n        paddw m2, m7 ; c2\n        paddw m3, m6 ; c3\n        paddw m4, m5 ; c4\n        ; As the differences (d1..d4) can only be positive, there is no need to\n        ; clip to zero.  Also, the maximum positive value is less than 768.\n\n        pminsw m1, m2\n        pminsw m1, m3\n        pminsw m1, m4\n\n        pcmpeqw m2, m1\n        pcmpeqw m3, m1\n        pcmpeqw m4, m1\n\n        BLEND m9, m11, m3\n        BLEND m9, m10, m2\n        BLEND m9, m12, m4\n        packuswb m9, m9\n\n        movh [dstq], m9\n        add srcq, mmsize/2\n        add dstq, mmsize/2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:10", "text": "paddw m4, m5 ; c4\n        ; As the differences (d1..d4) can only be positive, there is no need to\n        ; clip to zero.  Also, the maximum positive value is less than 768.\n\n        pminsw m1, m2\n        pminsw m1, m3\n        pminsw m1, m4\n\n        pcmpeqw m2, m1\n        pcmpeqw m3, m1\n        pcmpeqw m4, m1\n\n        BLEND m9, m11, m3\n        BLEND m9, m10, m2\n        BLEND m9, m12, m4\n        packuswb m9, m9\n\n        movh [dstq], m9\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\n; This is just copy-pasted straight from mode 6 with the left shifts removed.\ncglobal rg_fl_mode_7, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    ; Can this be done without unpacking?\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n        CLIPW m9, m1, m8  ; clip1\n        CLIPW m10, m2, m7 ; clip2\n        CLIPW m11, m3, m6 ; clip3\n        CLIPW m12, m4, m5 ; clip4\n\n        psubw m8, m1 ; d1\n        psubw m7, m2 ; d2\n        psubw m6, m3 ; d3\n        psubw m5, m4 ; d4\n\n        mova m1, m9\n        mova m2, m10\n        mova m3, m11\n        mova m4, m12\n        ABS_DIFF_W m1, m0, m13\n        ABS_DIFF_W m2, m0, m14\n        ABS_DIFF_W m3, m0, m13\n        ABS_DIFF_W m4, m0, m14", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:11", "text": "mova m11, m0\n        mova m12, m0\n        CLIPW m9, m1, m8  ; clip1\n        CLIPW m10, m2, m7 ; clip2\n        CLIPW m11, m3, m6 ; clip3\n        CLIPW m12, m4, m5 ; clip4\n\n        psubw m8, m1 ; d1\n        psubw m7, m2 ; d2\n        psubw m6, m3 ; d3\n        psubw m5, m4 ; d4\n\n        mova m1, m9\n        mova m2, m10\n        mova m3, m11\n        mova m4, m12\n        ABS_DIFF_W m1, m0, m13\n        ABS_DIFF_W m2, m0, m14\n        ABS_DIFF_W m3, m0, m13\n        ABS_DIFF_W m4, m0, m14\n        paddw m1, m8 ; c1\n        paddw m2, m7 ; c2\n        paddw m3, m6 ; c3\n        paddw m4, m5 ; c4\n\n        pminsw m1, m2\n        pminsw m1, m3\n        pminsw m1, m4\n\n        pcmpeqw m2, m1\n        pcmpeqw m3, m1\n        pcmpeqw m4, m1\n\n        BLEND m9, m11, m3\n        BLEND m9, m10, m2\n        BLEND m9, m12, m4\n        packuswb m9, m9\n\n        movh [dstq], m9\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\n; This is just copy-pasted straight from mode 6 with a few changes.\ncglobal rg_fl_mode_8, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:12", "text": "add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\n; This is just copy-pasted straight from mode 6 with a few changes.\ncglobal rg_fl_mode_8, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n        CLIPW m9, m1, m8  ; clip1\n        CLIPW m10, m2, m7 ; clip2\n        CLIPW m11, m3, m6 ; clip3\n        CLIPW m12, m4, m5 ; clip4\n\n        psubw m8, m1 ; d1\n        psubw m7, m2 ; d2\n        psubw m6, m3 ; d3\n        psubw m5, m4 ; d4\n        psllw m8, 1\n        psllw m7, 1\n        psllw m6, 1\n        psllw m5, 1\n\n        mova m1, m9\n        mova m2, m10\n        mova m3, m11\n        mova m4, m12\n        ABS_DIFF_W m1, m0, m13\n        ABS_DIFF_W m2, m0, m14\n        ABS_DIFF_W m3, m0, m13\n        ABS_DIFF_W m4, m0, m14\n        paddw m1, m8 ; c1\n        paddw m2, m7 ; c1\n        paddw m3, m6 ; c1\n        paddw m4, m5 ; c1\n        ; As the differences (d1..d4) can only be positive, there is no need to\n        ; clip to zero.  Also, the maximum positive value is less than 768.\n\n        pminsw m1, m2\n        pminsw m1, m3\n        pminsw m1, m4\n\n        pcmpeqw m2, m1\n        pcmpeqw m3, m1\n        pcmpeqw m4, m1\n\n        BLEND m9, m11, m3\n        BLEND m9, m10, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:13", "text": "ABS_DIFF_W m2, m0, m14\n        ABS_DIFF_W m3, m0, m13\n        ABS_DIFF_W m4, m0, m14\n        paddw m1, m8 ; c1\n        paddw m2, m7 ; c1\n        paddw m3, m6 ; c1\n        paddw m4, m5 ; c1\n        ; As the differences (d1..d4) can only be positive, there is no need to\n        ; clip to zero.  Also, the maximum positive value is less than 768.\n\n        pminsw m1, m2\n        pminsw m1, m3\n        pminsw m1, m4\n\n        pcmpeqw m2, m1\n        pcmpeqw m3, m1\n        pcmpeqw m4, m1\n\n        BLEND m9, m11, m3\n        BLEND m9, m10, m2\n        BLEND m9, m12, m4\n        packuswb m9, m9\n\n        movh [dstq], m9\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\ncglobal rg_fl_mode_9, 4, 5, 13, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_AXIS\n\n        mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n        CLIPUB m9, m1, m8  ; clip1\n        CLIPUB m10, m2, m7 ; clip2\n        CLIPUB m11, m3, m6 ; clip3\n        CLIPUB m12, m4, m5 ; clip4\n\n        psubb m8, m1 ; d1\n        psubb m7, m2 ; d2\n        psubb m6, m3 ; d3\n        psubb m5, m4 ; d4\n\n        pminub m8, m7\n        pminub m8, m6\n        pminub m8, m5\n\n        pcmpeqb m7, m8\n        pcmpeqb m6, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:14", "text": "mova m9, m0\n        mova m10, m0\n        mova m11, m0\n        mova m12, m0\n        CLIPUB m9, m1, m8  ; clip1\n        CLIPUB m10, m2, m7 ; clip2\n        CLIPUB m11, m3, m6 ; clip3\n        CLIPUB m12, m4, m5 ; clip4\n\n        psubb m8, m1 ; d1\n        psubb m7, m2 ; d2\n        psubb m6, m3 ; d3\n        psubb m5, m4 ; d4\n\n        pminub m8, m7\n        pminub m8, m6\n        pminub m8, m5\n\n        pcmpeqb m7, m8\n        pcmpeqb m6, m8\n        pcmpeqb m5, m8\n\n        BLEND m9, m11, m6\n        BLEND m9, m10, m7\n        BLEND m9, m12, m5\n\n        movu [dstq], m9\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n%endif\n\ncglobal rg_fl_mode_10, 4, 5, 8, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        movu m0, [c]\n\n        movu m1, [a4]\n        mova m2, m1\n        ABS_DIFF m1, m0, m7\n\n        movu m3, [a5]       ; load pixel\n        mova m4, m3\n        ABS_DIFF m4, m0, m7 ; absolute difference from center\n        pminub m1, m4       ; mindiff\n        pcmpeqb m4, m1      ; if (difference == mindiff)\n        BLEND m2, m3, m4    ;     return pixel\n\n        movu m5, [a1]\n        mova m6, m5\n        ABS_DIFF m6, m0, m7\n        pminub m1, m6\n        pcmpeqb m6, m1\n        BLEND m2, m5, m6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:15", "text": ".loop:\n        movu m0, [c]\n\n        movu m1, [a4]\n        mova m2, m1\n        ABS_DIFF m1, m0, m7\n\n        movu m3, [a5]       ; load pixel\n        mova m4, m3\n        ABS_DIFF m4, m0, m7 ; absolute difference from center\n        pminub m1, m4       ; mindiff\n        pcmpeqb m4, m1      ; if (difference == mindiff)\n        BLEND m2, m3, m4    ;     return pixel\n\n        movu m5, [a1]\n        mova m6, m5\n        ABS_DIFF m6, m0, m7\n        pminub m1, m6\n        pcmpeqb m6, m1\n        BLEND m2, m5, m6\n\n        movu m3, [a3]\n        mova m4, m3\n        ABS_DIFF m4, m0, m7\n        pminub m1, m4\n        pcmpeqb m4, m1\n        BLEND m2, m3, m4\n\n        movu m5, [a2]\n        mova m6, m5\n        ABS_DIFF m6, m0, m7\n        pminub m1, m6\n        pcmpeqb m6, m1\n        BLEND m2, m5, m6\n\n        movu m3, [a6]\n        mova m4, m3\n        ABS_DIFF m4, m0, m7\n        pminub m1, m4\n        pcmpeqb m4, m1\n        BLEND m2, m3, m4\n\n        movu m5, [a8]\n        mova m6, m5\n        ABS_DIFF m6, m0, m7\n        pminub m1, m6\n        pcmpeqb m6, m1\n        BLEND m2, m5, m6\n\n        movu m3, [a7]\n        mova m4, m3\n        ABS_DIFF m4, m0, m7\n        pminub m1, m4\n        pcmpeqb m4, m1\n        BLEND m2, m3, m4\n\n        movu [dstq], m2\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:16", "text": "BLEND m2, m3, m4\n\n        movu m5, [a8]\n        mova m6, m5\n        ABS_DIFF m6, m0, m7\n        pminub m1, m6\n        pcmpeqb m6, m1\n        BLEND m2, m5, m6\n\n        movu m3, [a7]\n        mova m4, m3\n        ABS_DIFF m4, m0, m7\n        pminub m1, m4\n        pcmpeqb m4, m1\n        BLEND m2, m3, m4\n\n        movu [dstq], m2\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_11_12, 4, 5, 7, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        LOAD m1, [c], m0\n        LOAD m2, [a2], m0\n        LOAD m3, [a4], m0\n        LOAD m4, [a5], m0\n        LOAD m5, [a7], m0\n\n        psllw m1, 2\n        paddw m2, m3\n        paddw m4, m5\n        paddw m2, m4\n        psllw m2, 1\n\n        LOAD m3, [a1], m0\n        LOAD m4, [a3], m0\n        LOAD m5, [a6], m0\n        LOAD m6, [a8], m0\n        paddw m1, m2\n        paddw m3, m4\n        paddw m5, m6\n        paddw m1, m3\n        paddw m1, m5\n\n        paddw m1, [pw_8]\n        psraw m1, 4\n\n        packuswb m1, m1\n\n        movh [dstq], m1\n        add srcq, mmsize/2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:17", "text": "paddw m2, m4\n        psllw m2, 1\n\n        LOAD m3, [a1], m0\n        LOAD m4, [a3], m0\n        LOAD m5, [a6], m0\n        LOAD m6, [a8], m0\n        paddw m1, m2\n        paddw m3, m4\n        paddw m5, m6\n        paddw m1, m3\n        paddw m1, m5\n\n        paddw m1, [pw_8]\n        psraw m1, 4\n\n        packuswb m1, m1\n\n        movh [dstq], m1\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\ncglobal rg_fl_mode_13_14, 4, 5, 8, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        movu m1, [a1]\n        movu m2, [a8]\n        mova m0, m1\n        pavgb m1, m2\n        ABS_DIFF m0, m2, m6\n\n        movu m3, [a3]\n        movu m4, [a6]\n        mova m5, m3\n        pavgb m3, m4\n        ABS_DIFF m5, m4, m7\n        pminub m0, m5\n        pcmpeqb m5, m0\n        BLEND m1, m3, m5\n\n        movu m2, [a2]\n        movu m3, [a7]\n        mova m4, m2\n        pavgb m2, m3\n        ABS_DIFF m4, m3, m6\n        pminub m0, m4\n        pcmpeqb m4, m0\n        BLEND m1, m2, m4\n\n        movu [dstq], m1\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:18", "text": "mova m5, m3\n        pavgb m3, m4\n        ABS_DIFF m5, m4, m7\n        pminub m0, m5\n        pcmpeqb m5, m0\n        BLEND m1, m3, m5\n\n        movu m2, [a2]\n        movu m3, [a7]\n        mova m4, m2\n        pavgb m2, m3\n        ABS_DIFF m4, m3, m6\n        pminub m0, m4\n        pcmpeqb m4, m0\n        BLEND m1, m2, m4\n\n        movu [dstq], m1\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\n%if ARCH_X86_64\ncglobal rg_fl_mode_15_16, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n\n        mova m9, m1\n        mova m10, m2\n        mova m11, m3\n        ABS_DIFF_W m9, m8, m12\n        ABS_DIFF_W m10, m7, m13\n        ABS_DIFF_W m11, m6, m14\n        pminsw m9, m10\n        pminsw m9, m11\n        pcmpeqw m10, m9\n        pcmpeqw m11, m9\n\n        mova m12, m2\n        mova m13, m1\n        mova m14, m6\n        paddw m12, m7\n        psllw m12, 1\n        paddw m13, m3\n        paddw m14, m8\n        paddw m12, [pw_4]\n        paddw m13, m14\n        paddw m12, m13\n        psrlw m12, 3\n\n        SORT_PAIR ub, m1, m8, m0\n        SORT_PAIR ub, m2, m7, m9\n        SORT_PAIR ub, m3, m6, m14", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:19", "text": "pminsw m9, m10\n        pminsw m9, m11\n        pcmpeqw m10, m9\n        pcmpeqw m11, m9\n\n        mova m12, m2\n        mova m13, m1\n        mova m14, m6\n        paddw m12, m7\n        psllw m12, 1\n        paddw m13, m3\n        paddw m14, m8\n        paddw m12, [pw_4]\n        paddw m13, m14\n        paddw m12, m13\n        psrlw m12, 3\n\n        SORT_PAIR ub, m1, m8, m0\n        SORT_PAIR ub, m2, m7, m9\n        SORT_PAIR ub, m3, m6, m14\n        mova m4, m12\n        mova m5, m12\n        CLIPW m4, m1, m8\n        CLIPW m5, m2, m7\n        CLIPW m12, m3, m6\n\n        BLEND m4, m12, m11\n        BLEND m4,  m5, m10\n        packuswb m4, m4\n\n        movh [dstq], m4\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\ncglobal rg_fl_mode_17, 4, 5, 9, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_AXIS\n\n        pmaxub m1, m2\n        pmaxub m3, m4\n\n        pminub m8, m7\n        pminub m5, m6\n\n        pmaxub m1, m3\n        pminub m8, m5\n\n        mova m2, m1\n        pminub m1, m8\n        pmaxub m8, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:20", "text": "%define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n        SORT_AXIS\n\n        pmaxub m1, m2\n        pmaxub m3, m4\n\n        pminub m8, m7\n        pminub m5, m6\n\n        pmaxub m1, m3\n        pminub m8, m5\n\n        mova m2, m1\n        pminub m1, m8\n        pmaxub m8, m2\n\n        CLIPUB m0, m1, m8\n\n        movu [dstq], m0\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_18, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        LOAD_SQUARE\n\n        mova m9, m1\n        mova m10, m8\n        ABS_DIFF m9, m0, m11\n        ABS_DIFF m10, m0, m12\n        pmaxub m9, m10 ; m9 = d1\n\n        mova m10, m2\n        mova m11, m7\n        ABS_DIFF m10, m0, m12\n        ABS_DIFF m11, m0, m13\n        pmaxub m10, m11 ; m10 = d2\n\n        mova m11, m3\n        mova m12, m6\n        ABS_DIFF m11, m0, m13\n        ABS_DIFF m12, m0, m14\n        pmaxub m11, m12 ; m11 = d3\n\n        mova m12, m4\n        mova m13, m5\n        ABS_DIFF m12, m0, m14\n        ABS_DIFF m13, m0, m15", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:21", "text": "ABS_DIFF m9, m0, m11\n        ABS_DIFF m10, m0, m12\n        pmaxub m9, m10 ; m9 = d1\n\n        mova m10, m2\n        mova m11, m7\n        ABS_DIFF m10, m0, m12\n        ABS_DIFF m11, m0, m13\n        pmaxub m10, m11 ; m10 = d2\n\n        mova m11, m3\n        mova m12, m6\n        ABS_DIFF m11, m0, m13\n        ABS_DIFF m12, m0, m14\n        pmaxub m11, m12 ; m11 = d3\n\n        mova m12, m4\n        mova m13, m5\n        ABS_DIFF m12, m0, m14\n        ABS_DIFF m13, m0, m15\n        pmaxub m12, m13 ; m12 = d4\n\n        mova m13, m9\n        pminub m13, m10\n        pminub m13, m11\n        pminub m13, m12 ; m13 = mindiff\n\n        pcmpeqb m10, m13\n        pcmpeqb m11, m13\n        pcmpeqb m12, m13\n\n        mova m14, m1\n        pminub m1, m8\n        pmaxub m8, m14\n\n        mova m13, m0\n        mova m14, m1\n        pminub m1, m8\n        pmaxub m8, m14\n        CLIPUB m13, m1, m8 ; m13 = ret...d1\n\n        mova m14, m0\n        mova m15, m3\n        pminub m3, m6\n        pmaxub m6, m15\n        CLIPUB m14, m3, m6\n        pand m14, m11\n        pandn m11, m13\n        por m14, m11 ; m14 = ret...d3\n\n        mova m15, m0\n        mova m1, m2\n        pminub m2, m7\n        pmaxub m7, m1\n        CLIPUB m15, m2, m7\n        pand m15, m10\n        pandn m10, m14\n        por m15, m10 ; m15 = ret...d2\n\n        mova m1, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:22", "text": "mova m14, m0\n        mova m15, m3\n        pminub m3, m6\n        pmaxub m6, m15\n        CLIPUB m14, m3, m6\n        pand m14, m11\n        pandn m11, m13\n        por m14, m11 ; m14 = ret...d3\n\n        mova m15, m0\n        mova m1, m2\n        pminub m2, m7\n        pmaxub m7, m1\n        CLIPUB m15, m2, m7\n        pand m15, m10\n        pandn m10, m14\n        por m15, m10 ; m15 = ret...d2\n\n        mova m1, m0\n        mova m2, m4\n        pminub m4, m5\n        pmaxub m5, m2\n        CLIPUB m1, m4, m5\n        pand m1, m12\n        pandn m12, m15\n        por m1, m12 ; m15 = ret...d4\n\n        movu [dstq], m1\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n%endif\n\ncglobal rg_fl_mode_19, 4, 5, 7, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        LOAD m1, [a1], m0\n        LOAD m2, [a2], m0\n        paddw m1, m2\n\n        LOAD m3, [a3], m0\n        LOAD m4, [a4], m0\n        paddw m3, m4\n\n        LOAD m5, [a5], m0\n        LOAD m6, [a6], m0\n        paddw m5, m6\n\n        LOAD m2, [a7], m0\n        LOAD m4, [a8], m0\n        paddw m2, m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:23", "text": "%define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        LOAD m1, [a1], m0\n        LOAD m2, [a2], m0\n        paddw m1, m2\n\n        LOAD m3, [a3], m0\n        LOAD m4, [a4], m0\n        paddw m3, m4\n\n        LOAD m5, [a5], m0\n        LOAD m6, [a6], m0\n        paddw m5, m6\n\n        LOAD m2, [a7], m0\n        LOAD m4, [a8], m0\n        paddw m2, m4\n\n        paddw m1, m3\n        paddw m2, m5\n        paddw m1, m2\n\n        paddw m1, [pw_4]\n        psraw m1, 3\n\n        packuswb m1, m1\n\n        movh [dstq], m1\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\ncglobal rg_fl_mode_20, 4, 5, 7, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        LOAD m1, [a1], m0\n        LOAD m2, [a2], m0\n        paddw m1, m2\n\n        LOAD m3, [a3], m0\n        LOAD m4, [a4], m0\n        paddw m3, m4\n\n        LOAD m5, [a5], m0\n        LOAD m6, [a6], m0\n        paddw m5, m6\n\n        LOAD m2, [a7], m0\n        LOAD m4, [a8], m0\n        paddw m2, m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:24", "text": "%define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        LOAD m1, [a1], m0\n        LOAD m2, [a2], m0\n        paddw m1, m2\n\n        LOAD m3, [a3], m0\n        LOAD m4, [a4], m0\n        paddw m3, m4\n\n        LOAD m5, [a5], m0\n        LOAD m6, [a6], m0\n        paddw m5, m6\n\n        LOAD m2, [a7], m0\n        LOAD m4, [a8], m0\n        paddw m2, m4\n\n        LOAD m6, [c], m0\n        paddw m1, m3\n        paddw m2, m5\n        paddw m6, [pw_4]\n\n        paddw m1, m2\n        paddw m1, m6\n\n        pmulhuw m1, [pw_div9]\n\n        packuswb m1, m1\n\n        movh [dstq], m1\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\ncglobal rg_fl_mode_21, 4, 5, 8, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        movu m1, [a1]\n        movu m2, [a8]\n        pavgb m7, m1, m2\n        punpckhbw m3, m1, m0\n        punpcklbw m1, m0\n        punpckhbw m4, m2, m0\n        punpcklbw m2, m0\n        paddw m3, m4\n        paddw m1, m2\n        psrlw m3, 1\n        psrlw m1, 1\n        packuswb m1, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:25", "text": "mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m0, m0\n    .loop:\n        movu m1, [a1]\n        movu m2, [a8]\n        pavgb m7, m1, m2\n        punpckhbw m3, m1, m0\n        punpcklbw m1, m0\n        punpckhbw m4, m2, m0\n        punpcklbw m2, m0\n        paddw m3, m4\n        paddw m1, m2\n        psrlw m3, 1\n        psrlw m1, 1\n        packuswb m1, m3\n\n        movu m2, [a2]\n        movu m3, [a7]\n        pavgb m6, m2, m3\n        punpckhbw m4, m2, m0\n        punpcklbw m2, m0\n        punpckhbw m5, m3, m0\n        punpcklbw m3, m0\n        paddw m4, m5\n        paddw m2, m3\n        psrlw m4, 1\n        psrlw m2, 1\n        packuswb m2, m4\n\n        pminub m1, m2\n        pmaxub m7, m6\n\n        movu m2, [a3]\n        movu m3, [a6]\n        pavgb m6, m2, m3\n        punpckhbw m4, m2, m0\n        punpcklbw m2, m0\n        punpckhbw m5, m3, m0\n        punpcklbw m3, m0\n        paddw m4, m5\n        paddw m2, m3\n        psrlw m4, 1\n        psrlw m2, 1\n        packuswb m2, m4\n\n        pminub m1, m2\n        pmaxub m7, m6\n\n        movu m2, [a4]\n        movu m3, [a5]\n        pavgb m6, m2, m3\n        punpckhbw m4, m2, m0\n        punpcklbw m2, m0\n        punpckhbw m5, m3, m0\n        punpcklbw m3, m0\n        paddw m4, m5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:26", "text": "punpcklbw m2, m0\n        punpckhbw m5, m3, m0\n        punpcklbw m3, m0\n        paddw m4, m5\n        paddw m2, m3\n        psrlw m4, 1\n        psrlw m2, 1\n        packuswb m2, m4\n\n        pminub m1, m2\n        pmaxub m7, m6\n\n        movu m2, [a4]\n        movu m3, [a5]\n        pavgb m6, m2, m3\n        punpckhbw m4, m2, m0\n        punpcklbw m2, m0\n        punpckhbw m5, m3, m0\n        punpcklbw m3, m0\n        paddw m4, m5\n        paddw m2, m3\n        psrlw m4, 1\n        psrlw m2, 1\n        packuswb m2, m4\n\n        pminub m1, m2\n        pmaxub m7, m6\n\n        movu m3, [c]\n        CLIPUB m3, m1, m7\n\n        movu [dstq], m3\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\ncglobal rg_fl_mode_22, 4, 5, 8, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        movu m0, [a1]\n        movu m1, [a8]\n        pavgb m0, m1\n        movu m2, [a2]\n        movu m3, [a7]\n        pavgb m2, m3\n        movu m4, [a3]\n        movu m5, [a6]\n        pavgb m4, m5\n        movu m6, [a4]\n        movu m7, [a5]\n        pavgb m6, m7\n\n        mova m1, m0\n        mova m3, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:27", "text": "neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    .loop:\n        movu m0, [a1]\n        movu m1, [a8]\n        pavgb m0, m1\n        movu m2, [a2]\n        movu m3, [a7]\n        pavgb m2, m3\n        movu m4, [a3]\n        movu m5, [a6]\n        pavgb m4, m5\n        movu m6, [a4]\n        movu m7, [a5]\n        pavgb m6, m7\n\n        mova m1, m0\n        mova m3, m2\n        mova m5, m4\n        mova m7, m6\n        pminub m0, m2\n        pminub m4, m6\n        pmaxub m1, m3\n        pmaxub m5, m7\n        pminub m0, m4\n        pmaxub m1, m5\n\n        movu m2, [c]\n        CLIPUB m2, m0, m1\n\n        movu [dstq], m2\n        add srcq, mmsize\n        add dstq, mmsize\n        sub pixelsd, mmsize\n    jg .loop\nRET\n\n%if ARCH_X86_64\ncglobal rg_fl_mode_23, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m8\n        mova m10, m7\n        mova m11, m6\n        mova m12, m5\n        psubw m9, m1  ; linediff1\n        psubw m10, m2 ; linediff2\n        psubw m11, m3 ; linediff3\n        psubw m12, m4 ; linediff4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:28", "text": "cglobal rg_fl_mode_23, 4, 5, 16, 0, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        SORT_AXIS_16\n\n        mova m9, m8\n        mova m10, m7\n        mova m11, m6\n        mova m12, m5\n        psubw m9, m1  ; linediff1\n        psubw m10, m2 ; linediff2\n        psubw m11, m3 ; linediff3\n        psubw m12, m4 ; linediff4\n\n        psubw m1, m0\n        psubw m2, m0\n        psubw m3, m0\n        psubw m4, m0\n        pminsw m1, m9  ; d1\n        pminsw m2, m10 ; d2\n        pminsw m3, m11 ; d3\n        pminsw m4, m12 ; d4\n        pmaxsw m1, m2\n        pmaxsw m3, m4\n        pmaxsw m1, m3\n        pmaxsw m1, m15 ; d\n\n        mova m13, m0\n        mova m14, m0\n        mova m2, m0\n        mova m4, m0\n        psubw m13, m8\n        psubw m14, m7\n        psubw m2, m6\n        psubw m4, m5\n        pminsw m9, m13  ; u1\n        pminsw m10, m14 ; u2\n        pminsw m11, m2  ; u3\n        pminsw m12, m4  ; u4\n        pmaxsw m9, m10\n        pmaxsw m11, m12\n        pmaxsw m9, m11\n        pmaxsw m9, m15  ; u\n\n        paddw m0, m1\n        psubw m0, m9\n        packuswb m0, m0\n\n        movh [dstq], m0\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:29", "text": "psubw m4, m5\n        pminsw m9, m13  ; u1\n        pminsw m10, m14 ; u2\n        pminsw m11, m2  ; u3\n        pminsw m12, m4  ; u4\n        pmaxsw m9, m10\n        pmaxsw m11, m12\n        pmaxsw m9, m11\n        pmaxsw m9, m15  ; u\n\n        paddw m0, m1\n        psubw m0, m9\n        packuswb m0, m0\n\n        movh [dstq], m0\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n\ncglobal rg_fl_mode_24, 4, 5, 16, mmsize, dst, src, stride, pixels\n    mov r4q, strideq\n    neg r4q\n    %define stride_p strideq\n    %define stride_n r4q\n\n    pxor m15, m15\n    .loop:\n        LOAD_SQUARE_16 m15\n        mova [rsp], m0\n        SORT_AXIS_16\n\n        mova m9, m8\n        mova m10, m7\n        mova m11, m6\n        mova m12, m5\n        psubw m9, m1  ; linediff1\n        psubw m10, m2 ; linediff2\n        psubw m11, m3 ; linediff3\n        psubw m12, m4 ; linediff4\n\n        psubw m1, [rsp] ; td1\n        psubw m2, [rsp] ; td2\n        psubw m3, [rsp] ; td3\n        psubw m4, [rsp] ; td4\n        mova m0, m9\n        mova m13, m10\n        mova m14, m11\n        mova m15, m12\n        psubw m0, m1\n        psubw m13, m2\n        psubw m14, m3\n        psubw m15, m4\n        pminsw m1, m0  ; d1\n        pminsw m2, m13 ; d2\n        pminsw m3, m14 ; d3\n        pminsw m4, m15 ; d4\n        pmaxsw m1, m2\n        pmaxsw m3, m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:30", "text": "psubw m12, m4 ; linediff4\n\n        psubw m1, [rsp] ; td1\n        psubw m2, [rsp] ; td2\n        psubw m3, [rsp] ; td3\n        psubw m4, [rsp] ; td4\n        mova m0, m9\n        mova m13, m10\n        mova m14, m11\n        mova m15, m12\n        psubw m0, m1\n        psubw m13, m2\n        psubw m14, m3\n        psubw m15, m4\n        pminsw m1, m0  ; d1\n        pminsw m2, m13 ; d2\n        pminsw m3, m14 ; d3\n        pminsw m4, m15 ; d4\n        pmaxsw m1, m2\n        pmaxsw m3, m4\n\n        mova m0, [rsp]\n        mova m13, [rsp]\n        mova m14, [rsp]\n        mova m15, [rsp]\n        psubw m0, m8  ; tu1\n        psubw m13, m7 ; tu2\n        psubw m14, m6 ; tu3\n        psubw m15, m5 ; tu4\n        psubw m9, m0\n        psubw m10, m13\n        psubw m11, m14\n        psubw m12, m15\n        pminsw m9, m0   ; u1\n        pminsw m10, m13 ; u2\n        pminsw m11, m14 ; u3\n        pminsw m12, m15 ; u4\n        pmaxsw m9, m10\n        pmaxsw m11, m12\n\n        pmaxsw m1, m3  ; d without max(d,0)\n        pmaxsw m9, m11  ; u without max(u,0)\n        pxor m15, m15\n        pmaxsw m1, m15\n        pmaxsw m9, m15\n\n        mova m0, [rsp]\n        paddw m0, m1\n        psubw m0, m9\n        packuswb m0, m0\n\n        movh [dstq], m0\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1161, "line_end": 1218}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_removegrain.asm:31", "text": "pmaxsw m1, m3  ; d without max(d,0)\n        pmaxsw m9, m11  ; u without max(u,0)\n        pxor m15, m15\n        pmaxsw m1, m15\n        pmaxsw m9, m15\n\n        mova m0, [rsp]\n        paddw m0, m1\n        psubw m0, m9\n        packuswb m0, m0\n\n        movh [dstq], m0\n        add srcq, mmsize/2\n        add dstq, mmsize/2\n        sub pixelsd, mmsize/2\n    jg .loop\nRET\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_removegrain.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_removegrain.asm", "line_start": 1201, "line_end": 1218}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for ssim filter\n;*\n;* Copyright (C) 2015 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1: times 8 dw 1\nssim_c1: times 4 dd 416 ;(.01*.01*255*255*64 + .5)\nssim_c2: times 4 dd 235963 ;(.03*.03*255*255*64*63 + .5)\n\nSECTION .text\n\n%macro SSIM_4X4_LINE 1\n%if ARCH_X86_64\ncglobal ssim_4x4_line, 6, 8, %1, buf, buf_stride, ref, ref_stride, sums, w, buf_stride3, ref_stride3\n%else\ncglobal ssim_4x4_line, 5, 7, %1, buf, buf_stride, ref, ref_stride, sums, buf_stride3, ref_stride3\n%define wd r5mp\n%endif\n    lea     ref_stride3q, [ref_strideq*3]\n    lea     buf_stride3q, [buf_strideq*3]\n%if notcpuflag(xop)\n    pxor              m7, m7\n    mova             m15, [pw_1]\n%endif\n\n.loop:\n%if cpuflag(xop)\n    pmovzxbw          m0, [bufq+buf_strideq*0]\n    pmovzxbw          m1, [refq+ref_strideq*0]\n    pmaddwd           m4, m0, m0\n    pmaddwd           m6, m0, m1\n    pmovzxbw          m2, [bufq+buf_strideq*1]\n    vpmadcswd         m4, m1, m1, m4\n    pmovzxbw          m3, [refq+ref_strideq*1]\n    paddw             m0, m2\n    vpmadcswd         m4, m2, m2, m4\n    vpmadcswd         m6, m2, m3, m6\n    paddw             m1, m3\n    vpmadcswd         m4, m3, m3, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:2", "text": "lea     buf_stride3q, [buf_strideq*3]\n%if notcpuflag(xop)\n    pxor              m7, m7\n    mova             m15, [pw_1]\n%endif\n\n.loop:\n%if cpuflag(xop)\n    pmovzxbw          m0, [bufq+buf_strideq*0]\n    pmovzxbw          m1, [refq+ref_strideq*0]\n    pmaddwd           m4, m0, m0\n    pmaddwd           m6, m0, m1\n    pmovzxbw          m2, [bufq+buf_strideq*1]\n    vpmadcswd         m4, m1, m1, m4\n    pmovzxbw          m3, [refq+ref_strideq*1]\n    paddw             m0, m2\n    vpmadcswd         m4, m2, m2, m4\n    vpmadcswd         m6, m2, m3, m6\n    paddw             m1, m3\n    vpmadcswd         m4, m3, m3, m4\n\n    pmovzxbw          m2, [bufq+buf_strideq*2]\n    pmovzxbw          m3, [refq+ref_strideq*2]\n    vpmadcswd         m4, m2, m2, m4\n    vpmadcswd         m6, m2, m3, m6\n    pmovzxbw          m5, [bufq+buf_stride3q]\n    pmovzxbw          m7, [refq+ref_stride3q]\n    vpmadcswd         m4, m3, m3, m4\n    vpmadcswd         m6, m5, m7, m6\n    paddw             m0, m2\n    paddw             m1, m3\n    vpmadcswd         m4, m5, m5, m4\n    paddw             m0, m5\n    paddw             m1, m7\n    vpmadcswd         m4, m7, m7, m4\n%else\n    movh              m0, [bufq+buf_strideq*0]  ; a1\n    movh              m1, [refq+ref_strideq*0]  ; b1\n    movh              m2, [bufq+buf_strideq*1]  ; a2\n    movh              m3, [refq+ref_strideq*1]  ; b2\n    punpcklbw         m0, m7                    ; s1 [word]\n    punpcklbw         m1, m7                    ; s2 [word]\n    punpcklbw         m2, m7                    ; s1 [word]\n    punpcklbw         m3, m7                    ; s2 [word]\n    pmaddwd           m4, m0, m0                ; a1 * a1\n    pmaddwd           m5, m1, m1                ; b1 * b1\n    pmaddwd           m8, m2, m2                ; a2 * a2\n    pmaddwd           m9, m3, m3                ; b2 * b2\n    paddd             m4, m5                    ; ss\n    paddd             m8, m9                    ; ss\n    pmaddwd           m6, m0, m1                ; a1 * b1 = ss12\n    pmaddwd           m5, m2, m3                ; a2 * b2 = ss12\n    paddw             m0, m2\n    paddw             m1, m3\n    paddd             m6, m5                    ; s12\n    paddd             m4, m8                    ; ss\n\n    movh              m2, [bufq+buf_strideq*2]  ; a3\n    movh              m3, [refq+ref_strideq*2]  ; b3\n    movh              m5, [bufq+buf_stride3q]   ; a4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:3", "text": "punpcklbw         m0, m7                    ; s1 [word]\n    punpcklbw         m1, m7                    ; s2 [word]\n    punpcklbw         m2, m7                    ; s1 [word]\n    punpcklbw         m3, m7                    ; s2 [word]\n    pmaddwd           m4, m0, m0                ; a1 * a1\n    pmaddwd           m5, m1, m1                ; b1 * b1\n    pmaddwd           m8, m2, m2                ; a2 * a2\n    pmaddwd           m9, m3, m3                ; b2 * b2\n    paddd             m4, m5                    ; ss\n    paddd             m8, m9                    ; ss\n    pmaddwd           m6, m0, m1                ; a1 * b1 = ss12\n    pmaddwd           m5, m2, m3                ; a2 * b2 = ss12\n    paddw             m0, m2\n    paddw             m1, m3\n    paddd             m6, m5                    ; s12\n    paddd             m4, m8                    ; ss\n\n    movh              m2, [bufq+buf_strideq*2]  ; a3\n    movh              m3, [refq+ref_strideq*2]  ; b3\n    movh              m5, [bufq+buf_stride3q]   ; a4\n    movh              m8, [refq+ref_stride3q]   ; b4\n    punpcklbw         m2, m7                    ; s1 [word]\n    punpcklbw         m3, m7                    ; s2 [word]\n    punpcklbw         m5, m7                    ; s1 [word]\n    punpcklbw         m8, m7                    ; s2 [word]\n    pmaddwd           m9, m2, m2                ; a3 * a3\n    pmaddwd          m10, m3, m3                ; b3 * b3\n    pmaddwd          m12, m5, m5                ; a4 * a4\n    pmaddwd          m13, m8, m8                ; b4 * b4\n    pmaddwd          m11, m2, m3                ; a3 * b3 = ss12\n    pmaddwd          m14, m5, m8                ; a4 * b4 = ss12\n    paddd             m9, m10\n    paddd            m12, m13\n    paddw             m0, m2\n    paddw             m1, m3\n    paddw             m0, m5\n    paddw             m1, m8\n    paddd             m6, m11\n    paddd             m4, m9\n    paddd             m6, m14\n    paddd             m4, m12\n%endif\n\n    ; m0 = [word] s1 a,a,a,a,b,b,b,b\n    ; m1 = [word] s2 a,a,a,a,b,b,b,b\n    ; m4 = [dword] ss a,a,b,b\n    ; m6 = [dword] s12 a,a,b,b\n\n%if cpuflag(xop)\n    vphaddwq          m0, m0                    ; [dword] s1  a, 0, b, 0\n    vphaddwq          m1, m1                    ; [dword] s2  a, 0, b, 0\n    vphadddq          m4, m4                    ; [dword] ss  a, 0, b, 0\n    vphadddq          m6, m6                    ; [dword] s12 a, 0, b, 0\n    punpckhdq     m2, m0, m1                    ; [dword] s1  b, s2 b, 0, 0\n    punpckldq         m0, m1                    ; [dword] s1  a, s2 a, 0, 0\n    punpckhdq     m3, m4, m6                    ; [dword] ss  b, s12 b, 0, 0\n    punpckldq         m4, m6                    ; [dword] ss  a, s12 a, 0, 0\n    punpcklqdq    m1, m2, m3                    ; [dword] b s1, s2, ss, s12\n    punpcklqdq        m0, m4                    ; [dword] a s1, s2, ss, s12\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:4", "text": "paddd             m4, m12\n%endif\n\n    ; m0 = [word] s1 a,a,a,a,b,b,b,b\n    ; m1 = [word] s2 a,a,a,a,b,b,b,b\n    ; m4 = [dword] ss a,a,b,b\n    ; m6 = [dword] s12 a,a,b,b\n\n%if cpuflag(xop)\n    vphaddwq          m0, m0                    ; [dword] s1  a, 0, b, 0\n    vphaddwq          m1, m1                    ; [dword] s2  a, 0, b, 0\n    vphadddq          m4, m4                    ; [dword] ss  a, 0, b, 0\n    vphadddq          m6, m6                    ; [dword] s12 a, 0, b, 0\n    punpckhdq     m2, m0, m1                    ; [dword] s1  b, s2 b, 0, 0\n    punpckldq         m0, m1                    ; [dword] s1  a, s2 a, 0, 0\n    punpckhdq     m3, m4, m6                    ; [dword] ss  b, s12 b, 0, 0\n    punpckldq         m4, m6                    ; [dword] ss  a, s12 a, 0, 0\n    punpcklqdq    m1, m2, m3                    ; [dword] b s1, s2, ss, s12\n    punpcklqdq        m0, m4                    ; [dword] a s1, s2, ss, s12\n%else\n    pmaddwd           m0, m15                   ; [dword] s1 a,a,b,b\n    pmaddwd           m1, m15                   ; [dword] s2 a,a,b,b\n    phaddd            m0, m4                    ; [dword] s1 a, b, ss a, b\n    phaddd            m1, m6                    ; [dword] s2 a, b, s12 a, b\n    punpckhdq     m2, m0, m1                    ; [dword] ss a, s12 a, ss b, s12 b\n    punpckldq         m0, m1                    ; [dword] s1 a, s2 a, s1 b, s2 b\n    punpckhqdq    m1, m0, m2                    ; [dword] b s1, s2, ss, s12\n    punpcklqdq        m0, m2                    ; [dword] a s1, s2, ss, s12\n%endif\n\n    mova  [sumsq+     0], m0\n    mova  [sumsq+mmsize], m1\n\n    add             bufq, mmsize/2\n    add             refq, mmsize/2\n    add            sumsq, mmsize*2\n    sub               wd, mmsize/8\n    jg .loop\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM ssse3\nSSIM_4X4_LINE 16\n%endif\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nSSIM_4X4_LINE 8\n%endif\n\nINIT_XMM sse4\ncglobal ssim_end_line, 3, 3, 7, sum0, sum1, w\n    pxor              m0, m0\n    pxor              m6, m6\n.loop:\n    mova              m1, [sum0q+mmsize*0]\n    mova              m2, [sum0q+mmsize*1]\n    mova              m3, [sum0q+mmsize*2]\n    mova              m4, [sum0q+mmsize*3]\n    paddd             m1, [sum1q+mmsize*0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:5", "text": "%if ARCH_X86_64\nINIT_XMM ssse3\nSSIM_4X4_LINE 16\n%endif\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nSSIM_4X4_LINE 8\n%endif\n\nINIT_XMM sse4\ncglobal ssim_end_line, 3, 3, 7, sum0, sum1, w\n    pxor              m0, m0\n    pxor              m6, m6\n.loop:\n    mova              m1, [sum0q+mmsize*0]\n    mova              m2, [sum0q+mmsize*1]\n    mova              m3, [sum0q+mmsize*2]\n    mova              m4, [sum0q+mmsize*3]\n    paddd             m1, [sum1q+mmsize*0]\n    paddd             m2, [sum1q+mmsize*1]\n    paddd             m3, [sum1q+mmsize*2]\n    paddd             m4, [sum1q+mmsize*3]\n    paddd             m1, m2\n    paddd             m2, m3\n    paddd             m3, m4\n    paddd             m4, [sum0q+mmsize*4]\n    paddd             m4, [sum1q+mmsize*4]\n    TRANSPOSE4x4D      1, 2, 3, 4, 5\n\n    ; m1 = fs1, m2 = fs2, m3 = fss, m4 = fs12\n    pslld             m3, 6\n    pslld             m4, 6\n    pmulld            m5, m1, m2                ; fs1 * fs2\n    pmulld            m1, m1                    ; fs1 * fs1\n    pmulld            m2, m2                    ; fs2 * fs2\n    psubd             m3, m1\n    psubd             m4, m5                    ; covariance\n    psubd             m3, m2                    ; variance\n\n    ; m1 = fs1 * fs1, m2 = fs2 * fs2, m3 = variance, m4 = covariance, m5 = fs1 * fs2\n    paddd             m4, m4                    ; 2 * covariance\n    paddd             m5, m5                    ; 2 * fs1 * fs2\n    paddd             m1, m2                    ; fs1 * fs1 + fs2 * fs2\n    paddd             m3, [ssim_c2]             ; variance + ssim_c2\n    paddd             m4, [ssim_c2]             ; 2 * covariance + ssim_c2\n    paddd             m5, [ssim_c1]             ; 2 * fs1 * fs2 + ssim_c1\n    paddd             m1, [ssim_c1]             ; fs1 * fs1 + fs2 * fs2 + ssim_c1\n\n    ; convert to float\n    cvtdq2ps          m3, m3\n    cvtdq2ps          m4, m4\n    cvtdq2ps          m5, m5\n    cvtdq2ps          m1, m1\n    mulps             m4, m5\n    mulps             m3, m1\n    divps             m4, m3                    ; ssim_endl\n    mova              m5, m4\n    cvtps2pd          m3, m5\n    movhlps           m5, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:6", "text": "; m1 = fs1 * fs1, m2 = fs2 * fs2, m3 = variance, m4 = covariance, m5 = fs1 * fs2\n    paddd             m4, m4                    ; 2 * covariance\n    paddd             m5, m5                    ; 2 * fs1 * fs2\n    paddd             m1, m2                    ; fs1 * fs1 + fs2 * fs2\n    paddd             m3, [ssim_c2]             ; variance + ssim_c2\n    paddd             m4, [ssim_c2]             ; 2 * covariance + ssim_c2\n    paddd             m5, [ssim_c1]             ; 2 * fs1 * fs2 + ssim_c1\n    paddd             m1, [ssim_c1]             ; fs1 * fs1 + fs2 * fs2 + ssim_c1\n\n    ; convert to float\n    cvtdq2ps          m3, m3\n    cvtdq2ps          m4, m4\n    cvtdq2ps          m5, m5\n    cvtdq2ps          m1, m1\n    mulps             m4, m5\n    mulps             m3, m1\n    divps             m4, m3                    ; ssim_endl\n    mova              m5, m4\n    cvtps2pd          m3, m5\n    movhlps           m5, m5\n    cvtps2pd          m5, m5\n    addpd             m0, m3                    ; ssim\n    addpd             m6, m5                    ; ssim\n    add            sum0q, mmsize*4\n    add            sum1q, mmsize*4\n    sub               wd, 4\n    jg .loop\n\n    ; subpd the ones we added too much\n    test              wd, wd\n    jz               .end\n    add               wd, 4\n    cmp               wd, 1\n    jz               .skip3\n    cmp               wd, 2\n    jz               .skip2\n.skip1:               ; 3 valid => skip 1 invalid\n    psrldq            m5, 8\n    subpd             m6, m5\n    jmp              .end\n.skip2:               ; 2 valid => skip 2 invalid\n    subpd             m6, m5\n    jmp              .end\n.skip3:               ; 1 valid => skip 3 invalid\n    psrldq            m3, 8\n    subpd             m0, m3\n    subpd             m6, m5\n\n.end:\n    addpd             m0, m6\n    movhlps           m4, m0\n    addpd             m0, m4\n%if ARCH_X86_32\n    movsd            r0m, m0\n    fld        qword r0m\n%endif\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 201, "line_end": 257}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_ssim.asm:7", "text": ".skip2:               ; 2 valid => skip 2 invalid\n    subpd             m6, m5\n    jmp              .end\n.skip3:               ; 1 valid => skip 3 invalid\n    psrldq            m3, 8\n    subpd             m0, m3\n    subpd             m6, m5\n\n.end:\n    addpd             m0, m6\n    movhlps           m4, m0\n    addpd             m0, m4\n%if ARCH_X86_32\n    movsd            r0m, m0\n    fld        qword r0m\n%endif\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_ssim.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_ssim.asm", "line_start": 241, "line_end": 257}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_stereo3d.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for stereo3d filter\n;*\n;* Copyright (C) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n; rgbrgbrgbrgb\n; rrrrggggbbbb\n\nshuf: db 0, 4, 8, 1,5, 9, 2, 6,10,3, 7,11,-1,-1,-1,-1\nex_r: db 0,-1,-1,-1,3,-1,-1,-1,6,-1,-1,-1, 9,-1,-1,-1\nex_g: db 1,-1,-1,-1,4,-1,-1,-1,7,-1,-1,-1,10,-1,-1,-1\nex_b: db 2,-1,-1,-1,5,-1,-1,-1,8,-1,-1,-1,11,-1,-1,-1\n\nSECTION .text\n\nINIT_XMM sse4\n%if ARCH_X86_64\ncglobal anaglyph, 6, 10, 14, 2*6*mmsize, dst, lsrc, rsrc, dst_linesize, l_linesize, r_linesize, width, height, o, cnt\n%define ana_matrix_rq r6q\n%define ana_matrix_gq r7q\n%define ana_matrix_bq r8q\n\n%else ; ARCH_X86_32\n%if HAVE_ALIGNED_STACK\ncglobal anaglyph, 3, 7, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, l_linesize, o, cnt\n%else\ncglobal anaglyph, 3, 6, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, o, cnt\n%define l_linesizeq r4mp\n%endif ; HAVE_ALIGNED_STACK\n%define ana_matrix_rq r3q\n%define ana_matrix_gq r4q\n%define ana_matrix_bq r5q\n%define r_linesizeq r5mp\n%define widthd  r6mp\n%define heightd r7mp\n%define  m8 [rsp+mmsize*12]\n%define  m9 [rsp+mmsize*13]\n%define m10 [rsp+mmsize*14]\n%define m11 [rsp+mmsize*15]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_stereo3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_stereo3d.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_stereo3d.asm:2", "text": "%define ana_matrix_gq r7q\n%define ana_matrix_bq r8q\n\n%else ; ARCH_X86_32\n%if HAVE_ALIGNED_STACK\ncglobal anaglyph, 3, 7, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, l_linesize, o, cnt\n%else\ncglobal anaglyph, 3, 6, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, o, cnt\n%define l_linesizeq r4mp\n%endif ; HAVE_ALIGNED_STACK\n%define ana_matrix_rq r3q\n%define ana_matrix_gq r4q\n%define ana_matrix_bq r5q\n%define r_linesizeq r5mp\n%define widthd  r6mp\n%define heightd r7mp\n%define  m8 [rsp+mmsize*12]\n%define  m9 [rsp+mmsize*13]\n%define m10 [rsp+mmsize*14]\n%define m11 [rsp+mmsize*15]\n%define m12 [rsp+mmsize*16]\n%define m13 [rsp+mmsize*17]\n%endif ; ARCH\n\n    mov        ana_matrix_rq, r8m\n    mov        ana_matrix_gq, r9m\n    mov        ana_matrix_bq, r10m\n    movu                  m3, [ana_matrix_rq+ 0]\n    movq                  m5, [ana_matrix_rq+16]\n    pshufd                m0, m3, q0000\n    pshufd                m1, m3, q1111\n    pshufd                m2, m3, q2222\n    pshufd                m3, m3, q3333\n    pshufd                m4, m5, q0000\n    pshufd                m5, m5, q1111\n    mova      [rsp+mmsize*0], m0\n    mova      [rsp+mmsize*1], m1\n    mova      [rsp+mmsize*2], m2\n    mova      [rsp+mmsize*3], m3\n    mova      [rsp+mmsize*4], m4\n    mova      [rsp+mmsize*5], m5\n\n    movu                  m3, [ana_matrix_gq+ 0]\n    movq                  m5, [ana_matrix_gq+16]\n    pshufd                m0, m3, q0000\n    pshufd                m1, m3, q1111\n    pshufd                m2, m3, q2222\n    pshufd                m3, m3, q3333\n    pshufd                m4, m5, q0000\n    pshufd                m5, m5, q1111\n    mova     [rsp+mmsize*6 ], m0\n    mova     [rsp+mmsize*7 ], m1\n    mova     [rsp+mmsize*8 ], m2\n    mova     [rsp+mmsize*9 ], m3\n    mova     [rsp+mmsize*10], m4\n    mova     [rsp+mmsize*11], m5\n\n%if ARCH_X86_64\n    movu                 m11, [ana_matrix_bq+ 0]\n    movq                 m13, [ana_matrix_bq+16]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_stereo3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_stereo3d.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_stereo3d.asm:3", "text": "mova      [rsp+mmsize*5], m5\n\n    movu                  m3, [ana_matrix_gq+ 0]\n    movq                  m5, [ana_matrix_gq+16]\n    pshufd                m0, m3, q0000\n    pshufd                m1, m3, q1111\n    pshufd                m2, m3, q2222\n    pshufd                m3, m3, q3333\n    pshufd                m4, m5, q0000\n    pshufd                m5, m5, q1111\n    mova     [rsp+mmsize*6 ], m0\n    mova     [rsp+mmsize*7 ], m1\n    mova     [rsp+mmsize*8 ], m2\n    mova     [rsp+mmsize*9 ], m3\n    mova     [rsp+mmsize*10], m4\n    mova     [rsp+mmsize*11], m5\n\n%if ARCH_X86_64\n    movu                 m11, [ana_matrix_bq+ 0]\n    movq                 m13, [ana_matrix_bq+16]\n    pshufd                m8, m11, q0000\n    pshufd                m9, m11, q1111\n    pshufd               m10, m11, q2222\n    pshufd               m11, m11, q3333\n    pshufd               m12, m13, q0000\n    pshufd               m13, m13, q1111\n    mov               widthd, dword widthm\n    mov              heightd, dword heightm\n%else\n    movu                  m3, [ana_matrix_bq+ 0]\n    movq                  m5, [ana_matrix_bq+16]\n    pshufd                m0, m3, q0000\n    pshufd                m1, m3, q1111\n    pshufd                m2, m3, q2222\n    pshufd                m3, m3, q3333\n    pshufd                m4, m5, q0000\n    pshufd                m5, m5, q1111\n    mova     [rsp+mmsize*12], m0\n    mova     [rsp+mmsize*13], m1\n    mova     [rsp+mmsize*14], m2\n    mova     [rsp+mmsize*15], m3\n    mova     [rsp+mmsize*16], m4\n    mova     [rsp+mmsize*17], m5\n    mov        dst_linesizeq, r3m\n%if HAVE_ALIGNED_STACK\n    mov          l_linesizeq, r4m\n%endif\n%endif ; ARCH\n\n.nextrow:\n    mov                   od, widthd\n    xor                 cntd, cntd\n\n    .loop:\n        movu                 m3, [lsrcq+cntq]\n        pshufb               m1, m3, [ex_r]\n        pshufb               m2, m3, [ex_g]\n        pshufb               m3, [ex_b]\n        movu                 m0, [rsrcq+cntq]\n        pshufb               m4, m0, [ex_r]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_stereo3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_stereo3d.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_stereo3d.asm:4", "text": "mova     [rsp+mmsize*15], m3\n    mova     [rsp+mmsize*16], m4\n    mova     [rsp+mmsize*17], m5\n    mov        dst_linesizeq, r3m\n%if HAVE_ALIGNED_STACK\n    mov          l_linesizeq, r4m\n%endif\n%endif ; ARCH\n\n.nextrow:\n    mov                   od, widthd\n    xor                 cntd, cntd\n\n    .loop:\n        movu                 m3, [lsrcq+cntq]\n        pshufb               m1, m3, [ex_r]\n        pshufb               m2, m3, [ex_g]\n        pshufb               m3, [ex_b]\n        movu                 m0, [rsrcq+cntq]\n        pshufb               m4, m0, [ex_r]\n        pshufb               m5, m0, [ex_g]\n        pshufb               m0, [ex_b]\n        pmulld               m1, [rsp+mmsize*0]\n        pmulld               m2, [rsp+mmsize*1]\n        pmulld               m3, [rsp+mmsize*2]\n        pmulld               m4, [rsp+mmsize*3]\n        pmulld               m5, [rsp+mmsize*4]\n        pmulld               m0, [rsp+mmsize*5]\n        paddd                m1, m2\n        paddd                m3, m4\n        paddd                m5, m0\n        paddd                m1, m3\n        paddd                m1, m5\n\n        movu                 m3, [lsrcq+cntq]\n        pshufb               m7, m3, [ex_r]\n        pshufb               m2, m3, [ex_g]\n        pshufb               m3, [ex_b]\n        movu                 m0, [rsrcq+cntq]\n        pshufb               m4, m0, [ex_r]\n        pshufb               m5, m0, [ex_g]\n        pshufb               m0, [ex_b]\n        pmulld               m7, [rsp+mmsize*6]\n        pmulld               m2, [rsp+mmsize*7]\n        pmulld               m3, [rsp+mmsize*8]\n        pmulld               m4, [rsp+mmsize*9]\n        pmulld               m5, [rsp+mmsize*10]\n        pmulld               m0, [rsp+mmsize*11]\n        paddd                m7, m2\n        paddd                m3, m4\n        paddd                m5, m0\n        paddd                m7, m3\n        paddd                m7, m5\n\n        movu                 m4, [lsrcq+cntq]\n        pshufb               m2, m4, [ex_r]\n        pshufb               m3, m4, [ex_g]\n        pshufb               m4, [ex_b]\n        movu                 m0, [rsrcq+cntq]\n        pshufb               m5, m0, [ex_r]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_stereo3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_stereo3d.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_stereo3d.asm:5", "text": "pshufb               m5, m0, [ex_g]\n        pshufb               m0, [ex_b]\n        pmulld               m7, [rsp+mmsize*6]\n        pmulld               m2, [rsp+mmsize*7]\n        pmulld               m3, [rsp+mmsize*8]\n        pmulld               m4, [rsp+mmsize*9]\n        pmulld               m5, [rsp+mmsize*10]\n        pmulld               m0, [rsp+mmsize*11]\n        paddd                m7, m2\n        paddd                m3, m4\n        paddd                m5, m0\n        paddd                m7, m3\n        paddd                m7, m5\n\n        movu                 m4, [lsrcq+cntq]\n        pshufb               m2, m4, [ex_r]\n        pshufb               m3, m4, [ex_g]\n        pshufb               m4, [ex_b]\n        movu                 m0, [rsrcq+cntq]\n        pshufb               m5, m0, [ex_r]\n        pshufb               m6, m0, [ex_g]\n        pshufb               m0, [ex_b]\n        pmulld               m2, m8\n        pmulld               m3, m9\n        pmulld               m4, m10\n        pmulld               m5, m11\n        pmulld               m6, m12\n        pmulld               m0, m13\n        paddd                m2, m3\n        paddd                m4, m5\n        paddd                m6, m0\n        paddd                m2, m4\n        paddd                m2, m6\n\n        psrld                m1, 16\n        psrld                m7, 16\n        psrld                m2, 16\n\n        packusdw             m1, m7\n        packusdw             m2, m2\n        packuswb             m1, m2\n        pshufb               m1, [shuf]\n\n        movq      [dstq+cntq+0], m1\n        psrldq               m1, 8\n        movd      [dstq+cntq+8], m1\n        add                cntd, 12\n        sub                  od, 4\n    jg .loop\n\n    add          dstq, dst_linesizeq\n    add         lsrcq, l_linesizeq\n    add         rsrcq, r_linesizeq\n    sub       heightd, 1\n    jg .nextrow\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_stereo3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_stereo3d.asm", "line_start": 161, "line_end": 216}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_stereo3d.asm:6", "text": "packuswb             m1, m2\n        pshufb               m1, [shuf]\n\n        movq      [dstq+cntq+0], m1\n        psrldq               m1, 8\n        movd      [dstq+cntq+8], m1\n        add                cntd, 12\n        sub                  od, 4\n    jg .loop\n\n    add          dstq, dst_linesizeq\n    add         lsrcq, l_linesizeq\n    add         rsrcq, r_linesizeq\n    sub       heightd, 1\n    jg .nextrow\nRET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_stereo3d.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_stereo3d.asm", "line_start": 201, "line_end": 216}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_threshold.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for threshold filter\n;*\n;* Copyright (C) 2017 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;*****************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;%1 depth (8 or 16) ; %2 b or w\n%macro THRESHOLD 2\n%if ARCH_X86_64\ncglobal threshold%1, 10, 13, 5, in, threshold, min, max, out, ilinesize, tlinesize, flinesize, slinesize, olinesize, w, h, x\n    mov             wd, dword wm\n    mov             hd, dword hm\n%else\ncglobal threshold%1, 5, 7, 5, in, threshold, min, max, out, w, x\n    mov             wd, r10m\n%define     ilinesizeq  r5mp\n%define     tlinesizeq  r6mp\n%define     flinesizeq  r7mp\n%define     slinesizeq  r8mp\n%define     olinesizeq  r9mp\n%define             hd  r11mp\n%endif\n%if %1 == 16\n    add             wq, wq ; w *= 2 (16 bits instead of 8)\n%endif\n    add            inq, wq\n    add     thresholdq, wq\n    add           minq, wq\n    add           maxq, wq\n    add           outq, wq\n    neg             wq\n.nextrow:\n    mov         xq, wq\n\n    .loop:\n        movu            m1, [inq + xq]\n        movu            m0, [thresholdq + xq]\n        movu            m2, [minq + xq]\n        movu            m3, [maxq + xq]\n        pminu%2         m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_threshold.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_threshold.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_threshold.asm:2", "text": "%define             hd  r11mp\n%endif\n%if %1 == 16\n    add             wq, wq ; w *= 2 (16 bits instead of 8)\n%endif\n    add            inq, wq\n    add     thresholdq, wq\n    add           minq, wq\n    add           maxq, wq\n    add           outq, wq\n    neg             wq\n.nextrow:\n    mov         xq, wq\n\n    .loop:\n        movu            m1, [inq + xq]\n        movu            m0, [thresholdq + xq]\n        movu            m2, [minq + xq]\n        movu            m3, [maxq + xq]\n        pminu%2         m0, m1\n        pcmpeq%2        m0, m1\n        PBLENDVB        m3, m2, m0\n        movu   [outq + xq], m3\n        add             xq, mmsize\n    jl .loop\n\n    add          inq, ilinesizeq\n    add   thresholdq, tlinesizeq\n    add         minq, flinesizeq\n    add         maxq, slinesizeq\n    add         outq, olinesizeq\n    sub         hd, 1\n    jg .nextrow\nRET\n%endmacro\n\nINIT_XMM sse4\nTHRESHOLD 8, b\nTHRESHOLD 16, w\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nTHRESHOLD 8, b\nTHRESHOLD 16, w\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_threshold.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_threshold.asm", "line_start": 41, "line_end": 85}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_transpose.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for transpose filter\n;*\n;* Copyright (C) 2019 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;------------------------------------------------------------------------------\n; void ff_transpose_8x8(uint8_t *src, ptrdiff_t src_linesize,\n;                       uint8_t *dst, ptrdiff_t dst_linesize)\n;------------------------------------------------------------------------------\n\nINIT_XMM sse2\ncglobal transpose_8x8_8, 4,5,8, src, src_linesize, dst, dst_linesize, linesize3\n    lea     linesize3q, [src_linesizeq * 3]\n    movq    m0, [srcq + src_linesizeq * 0]\n    movq    m1, [srcq + src_linesizeq * 1]\n    movq    m2, [srcq + src_linesizeq * 2]\n    movq    m3, [srcq + linesize3q]\n    lea   srcq, [srcq + src_linesizeq * 4]\n    movq    m4, [srcq + src_linesizeq * 0]\n    movq    m5, [srcq + src_linesizeq * 1]\n    movq    m6, [srcq + src_linesizeq * 2]\n    movq    m7, [srcq + linesize3q]\n\n    TRANSPOSE_8X8B 0, 1, 2, 3, 4, 5, 6, 7\n\n    lea                  linesize3q, [dst_linesizeq * 3]\n    movq [dstq + dst_linesizeq * 0], m0\n    movq [dstq + dst_linesizeq * 1], m1\n    movq [dstq + dst_linesizeq * 2], m2\n    movq [dstq + linesize3q], m3\n    lea                        dstq, [dstq + dst_linesizeq * 4]\n    movq [dstq + dst_linesizeq * 0], m4\n    movq [dstq + dst_linesizeq * 1], m5\n    movq [dstq + dst_linesizeq * 2], m6\n    movq [dstq + linesize3q], m7\n    RET\n\ncglobal transpose_8x8_16, 4,5,9, ARCH_X86_32 * 32, src, src_linesize, dst, dst_linesize, linesize3\n    lea     linesize3q, [src_linesizeq * 3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_transpose.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_transpose.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_transpose.asm:2", "text": "movq    m5, [srcq + src_linesizeq * 1]\n    movq    m6, [srcq + src_linesizeq * 2]\n    movq    m7, [srcq + linesize3q]\n\n    TRANSPOSE_8X8B 0, 1, 2, 3, 4, 5, 6, 7\n\n    lea                  linesize3q, [dst_linesizeq * 3]\n    movq [dstq + dst_linesizeq * 0], m0\n    movq [dstq + dst_linesizeq * 1], m1\n    movq [dstq + dst_linesizeq * 2], m2\n    movq [dstq + linesize3q], m3\n    lea                        dstq, [dstq + dst_linesizeq * 4]\n    movq [dstq + dst_linesizeq * 0], m4\n    movq [dstq + dst_linesizeq * 1], m5\n    movq [dstq + dst_linesizeq * 2], m6\n    movq [dstq + linesize3q], m7\n    RET\n\ncglobal transpose_8x8_16, 4,5,9, ARCH_X86_32 * 32, src, src_linesize, dst, dst_linesize, linesize3\n    lea     linesize3q, [src_linesizeq * 3]\n    movu    m0, [srcq + src_linesizeq * 0]\n    movu    m1, [srcq + src_linesizeq * 1]\n    movu    m2, [srcq + src_linesizeq * 2]\n    movu    m3, [srcq + linesize3q]\n    lea   srcq, [srcq + src_linesizeq * 4]\n    movu    m4, [srcq + src_linesizeq * 0]\n    movu    m5, [srcq + src_linesizeq * 1]\n    movu    m6, [srcq + src_linesizeq * 2]\n    movu    m7, [srcq + linesize3q]\n\n%if ARCH_X86_64\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, 8\n%else\n    TRANSPOSE8x8W 0, 1, 2, 3, 4, 5, 6, 7, [rsp], [rsp + 16]\n%endif\n\n    lea                  linesize3q, [dst_linesizeq * 3]\n    movu [dstq + dst_linesizeq * 0], m0\n    movu [dstq + dst_linesizeq * 1], m1\n    movu [dstq + dst_linesizeq * 2], m2\n    movu [dstq + linesize3q], m3\n    lea                        dstq, [dstq + dst_linesizeq * 4]\n    movu [dstq + dst_linesizeq * 0], m4\n    movu [dstq + dst_linesizeq * 1], m5\n    movu [dstq + dst_linesizeq * 2], m6\n    movu [dstq + linesize3q], m7\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_transpose.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_transpose.asm", "line_start": 41, "line_end": 87}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for v360 filter\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if HAVE_AVX2_EXTERNAL\n\nSECTION_RODATA\n\npb_mask: db 0,4,8,12,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1\npw_mask: db 0,1,4, 5, 8, 9,12,13,-1,-1,-1,-1,-1,-1,-1,-1\npd_255: times 4 dd 255\npd_65535: times 4 dd 65535\n\nSECTION .text\n\n; void ff_remap2_8bit_line_avx2(uint8_t *dst, int width, const uint8_t *src, ptrdiff_t in_linesize,\n;                               const uint16_t *u, const uint16_t *v, const int16_t *ker);\n\nINIT_YMM avx2\ncglobal remap1_8bit_line, 6, 7, 6, dst, width, src, in_linesize, u, v, x\n    movsxdifnidn widthq, widthd\n    xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m4, m4\n    VBROADCASTI128  m3, [pb_mask]\n    vpbroadcastd    m0, xm0\n\n    .loop:\n        pmovsxwd   m1, [vq + xq * 2]\n        pmovsxwd   m2, [uq + xq * 2]\n\n        pmulld           m1, m0\n        paddd            m1, m2\n        mova             m2, m4\n        vpgatherdd       m5, [srcq + m1], m2\n        pshufb           m1, m5, m3\n        vextracti128    xm2, m1, 1\n        movd      [dstq+xq], xm1\n        movd    [dstq+xq+4], xm2\n\n        add   xq, mmsize / 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:2", "text": "xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m4, m4\n    VBROADCASTI128  m3, [pb_mask]\n    vpbroadcastd    m0, xm0\n\n    .loop:\n        pmovsxwd   m1, [vq + xq * 2]\n        pmovsxwd   m2, [uq + xq * 2]\n\n        pmulld           m1, m0\n        paddd            m1, m2\n        mova             m2, m4\n        vpgatherdd       m5, [srcq + m1], m2\n        pshufb           m1, m5, m3\n        vextracti128    xm2, m1, 1\n        movd      [dstq+xq], xm1\n        movd    [dstq+xq+4], xm2\n\n        add   xq, mmsize / 4\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap1_16bit_line, 6, 7, 6, dst, width, src, in_linesize, u, v, x\n    movsxdifnidn widthq, widthd\n    xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m4, m4\n    VBROADCASTI128  m3, [pw_mask]\n    vpbroadcastd    m0, xm0\n\n    .loop:\n        pmovsxwd   m1, [vq + xq * 2]\n        pmovsxwd   m2, [uq + xq * 2]\n\n        pslld            m2, 0x1\n        pmulld           m1, m0\n        paddd            m1, m2\n        mova             m2, m4\n        vpgatherdd       m5, [srcq + m1], m2\n        pshufb           m1, m5, m3\n        vextracti128    xm2, m1, 1\n        movq    [dstq+xq*2], xm1\n        movq  [dstq+xq*2+8], xm2\n\n        add   xq, mmsize / 4\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap2_8bit_line, 7, 8, 8, dst, width, src, in_linesize, u, v, ker, x\n    movsxdifnidn widthq, widthd\n    movd           xm0, in_linesized\n%if ARCH_X86_32\nDEFINE_ARGS dst, width, src, x, u, v, ker\n%endif\n    xor             xq, xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:3", "text": "mova             m2, m4\n        vpgatherdd       m5, [srcq + m1], m2\n        pshufb           m1, m5, m3\n        vextracti128    xm2, m1, 1\n        movq    [dstq+xq*2], xm1\n        movq  [dstq+xq*2+8], xm2\n\n        add   xq, mmsize / 4\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap2_8bit_line, 7, 8, 8, dst, width, src, in_linesize, u, v, ker, x\n    movsxdifnidn widthq, widthd\n    movd           xm0, in_linesized\n%if ARCH_X86_32\nDEFINE_ARGS dst, width, src, x, u, v, ker\n%endif\n    xor             xq, xq\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_255]\n\n    .loop:\n        pmovsxwd   m1, [kerq + xq * 8]\n        pmovsxwd   m2, [vq + xq * 8]\n        pmovsxwd   m3, [uq + xq * 8]\n\n        pmulld          m4, m2, m0\n        paddd           m4, m3\n        mova            m3, m7\n        vpgatherdd      m2, [srcq + m4], m3\n        pand            m2, m6\n        pmulld          m2, m1\n        phaddd          m2, m2\n        phaddd          m1, m2, m2\n        psrld           m1, m1, 0xe\n        vextracti128   xm2, m1, 1\n\n        pextrb   [dstq+xq], xm1, 0\n        pextrb [dstq+xq+1], xm2, 0\n\n        add   xq, mmsize / 16\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap2_16bit_line, 7, 8, 8, dst, width, src, in_linesize, u, v, ker, x\n    movsxdifnidn widthq, widthd\n    movd           xm0, in_linesized\n%if ARCH_X86_32\nDEFINE_ARGS dst, width, src, x, u, v, ker\n%endif\n    xor             xq, xq\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_65535]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:4", "text": "pextrb   [dstq+xq], xm1, 0\n        pextrb [dstq+xq+1], xm2, 0\n\n        add   xq, mmsize / 16\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap2_16bit_line, 7, 8, 8, dst, width, src, in_linesize, u, v, ker, x\n    movsxdifnidn widthq, widthd\n    movd           xm0, in_linesized\n%if ARCH_X86_32\nDEFINE_ARGS dst, width, src, x, u, v, ker\n%endif\n    xor             xq, xq\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_65535]\n\n    .loop:\n        pmovsxwd   m1, [kerq + xq * 8]\n        pmovsxwd   m2, [vq + xq * 8]\n        pmovsxwd   m3, [uq + xq * 8]\n\n        pslld           m3, 0x1\n        pmulld          m4, m2, m0\n        paddd           m4, m3\n        mova            m3, m7\n        vpgatherdd      m2, [srcq + m4], m3\n        pand            m2, m6\n        pmulld          m2, m1\n        phaddd          m2, m2\n        phaddd          m1, m2, m2\n        psrld           m1, m1, 0xe\n        vextracti128   xm2, m1, 1\n\n        pextrw   [dstq+xq*2], xm1, 0\n        pextrw [dstq+xq*2+2], xm2, 0\n\n        add   xq, mmsize / 16\n        cmp   xq, widthq\n        jl .loop\n    RET\n\n%if ARCH_X86_64\n\nINIT_YMM avx2\ncglobal remap3_8bit_line, 7, 11, 8, dst, width, src, in_linesize, u, v, ker, x, y, tmp, z\n    movsxdifnidn widthq, widthd\n    xor             zq, zq\n    xor             yq, yq\n    xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_255]\n\n    .loop:\n        pmovsxwd   m1, [kerq + yq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:5", "text": "add   xq, mmsize / 16\n        cmp   xq, widthq\n        jl .loop\n    RET\n\n%if ARCH_X86_64\n\nINIT_YMM avx2\ncglobal remap3_8bit_line, 7, 11, 8, dst, width, src, in_linesize, u, v, ker, x, y, tmp, z\n    movsxdifnidn widthq, widthd\n    xor             zq, zq\n    xor             yq, yq\n    xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_255]\n\n    .loop:\n        pmovsxwd   m1, [kerq + yq]\n        pmovsxwd   m2, [vq + yq]\n        pmovsxwd   m3, [uq + yq]\n\n        pmulld          m4, m2, m0\n        paddd           m4, m3\n        mova            m3, m7\n        vpgatherdd      m2, [srcq + m4], m3\n        pand            m2, m6\n        pmulld          m2, m1\n        HADDD           m2, m1\n        movzx         tmpq, word [vq + yq + 16]\n        imul          tmpq, in_linesizeq\n        movzx           zq, word [uq + yq + 16]\n        add           tmpq, zq\n        movzx           zq, byte [srcq + tmpq]\n        movzx         tmpq, word [kerq + yq + 16]\n        imul            zd, tmpd\n        movd           xm1, zd\n        paddd           m2, m1\n        psrld           m2, m2, 0xe\n\n        packuswb        m2, m2\n        pextrb   [dstq+xq], xm2, 0\n\n        add   xq, 1\n        add   yq, 18\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap4_8bit_line, 7, 9, 11, dst, width, src, in_linesize, u, v, ker, x, y\n    movsxdifnidn widthq, widthd\n    xor             yq, yq\n    xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_255]", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:6", "text": "packuswb        m2, m2\n        pextrb   [dstq+xq], xm2, 0\n\n        add   xq, 1\n        add   yq, 18\n        cmp   xq, widthq\n        jl .loop\n    RET\n\nINIT_YMM avx2\ncglobal remap4_8bit_line, 7, 9, 11, dst, width, src, in_linesize, u, v, ker, x, y\n    movsxdifnidn widthq, widthd\n    xor             yq, yq\n    xor             xq, xq\n    movd           xm0, in_linesized\n    pcmpeqw         m7, m7\n    vpbroadcastd    m0, xm0\n    vpbroadcastd    m6, [pd_255]\n\n    .loop:\n        pmovsxwd   m1, [kerq + yq]\n        pmovsxwd   m5, [kerq + yq + 16]\n        pmovsxwd   m2, [vq + yq]\n        pmovsxwd   m8, [vq + yq + 16]\n        pmovsxwd   m3, [uq + yq]\n        pmovsxwd   m9, [uq + yq + 16]\n\n        pmulld          m4, m2, m0\n        pmulld         m10, m8, m0\n        paddd           m4, m3\n        paddd           m10, m9\n        mova            m3, m7\n        vpgatherdd      m2, [srcq + m4], m3\n        mova            m3, m7\n        vpgatherdd      m4, [srcq + m10], m3\n        pand            m2, m6\n        pand            m4, m6\n        pmulld          m2, m1\n        pmulld          m4, m5\n\n        paddd           m2, m4\n        HADDD           m2, m1\n        psrld           m2, m2, 0xe\n        packuswb        m2, m2\n\n        pextrb   [dstq+xq], xm2, 0\n\n        add   xq, 1\n        add   yq, 32\n        cmp   xq, widthq\n        jl .loop\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 201, "line_end": 256}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_v360.asm:7", "text": "paddd           m2, m4\n        HADDD           m2, m1\n        psrld           m2, m2, 0xe\n        packuswb        m2, m2\n\n        pextrb   [dstq+xq], xm2, 0\n\n        add   xq, 1\n        add   yq, 32\n        cmp   xq, widthq\n        jl .loop\n    RET\n\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_v360.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_v360.asm", "line_start": 241, "line_end": 256}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for w3fdif filter\n;*\n;* Copyright (c) 2015 Paul B Mahol\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse2\ncglobal w3fdif_scale, 3, 3, 2, 0, out_pixel, work_pixel, linesize\n.loop:\n    mova                         m0, [work_pixelq]\n    mova                         m1, [work_pixelq+mmsize]\n    psrad                        m0, 15\n    psrad                        m1, 15\n    packssdw                     m0, m1\n    packuswb                     m0, m0\n    movh               [out_pixelq], m0\n    add                  out_pixelq, mmsize/2\n    add                 work_pixelq, mmsize*2\n    sub                   linesized, mmsize/2\n    jg .loop\nRET\n\ncglobal w3fdif_simple_low, 4, 5, 6, 0, work_line, in_lines_cur0, coef, linesize, offset\n    movd                  m1, [coefq]\n    DEFINE_ARGS    work_line, in_lines_cur0, in_lines_cur1, linesize, offset\n    SPLATW                m0, m1, 0\n    SPLATW                m1, m1, 1\n    pxor                  m4, m4\n    mov              offsetq, 0\n    mov       in_lines_cur1q, [in_lines_cur0q + gprsize]\n    mov       in_lines_cur0q, [in_lines_cur0q]\n\n.loop:\n    movh                                   m2, [in_lines_cur0q+offsetq]\n    movh                                   m3, [in_lines_cur1q+offsetq]\n    punpcklbw                              m2, m4\n    punpcklbw                              m3, m4\n    SBUTTERFLY                             wd, 2, 3, 5\n    pmaddwd                                m2, m0\n    pmaddwd                                m3, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:2", "text": "RET\n\ncglobal w3fdif_simple_low, 4, 5, 6, 0, work_line, in_lines_cur0, coef, linesize, offset\n    movd                  m1, [coefq]\n    DEFINE_ARGS    work_line, in_lines_cur0, in_lines_cur1, linesize, offset\n    SPLATW                m0, m1, 0\n    SPLATW                m1, m1, 1\n    pxor                  m4, m4\n    mov              offsetq, 0\n    mov       in_lines_cur1q, [in_lines_cur0q + gprsize]\n    mov       in_lines_cur0q, [in_lines_cur0q]\n\n.loop:\n    movh                                   m2, [in_lines_cur0q+offsetq]\n    movh                                   m3, [in_lines_cur1q+offsetq]\n    punpcklbw                              m2, m4\n    punpcklbw                              m3, m4\n    SBUTTERFLY                             wd, 2, 3, 5\n    pmaddwd                                m2, m0\n    pmaddwd                                m3, m1\n    mova               [work_lineq+offsetq*4], m2\n    mova        [work_lineq+offsetq*4+mmsize], m3\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2\n    jg .loop\nRET\n\ncglobal w3fdif_complex_low, 4, 7, 8, 0, work_line, in_lines_cur0, coef, linesize\n    movq                  m0, [coefq]\n    DEFINE_ARGS    work_line, in_lines_cur0, in_lines_cur1, linesize, offset, in_lines_cur2, in_lines_cur3\n    pshufd                m2, m0, q1111\n    SPLATD                m0\n    pxor                  m1, m1\n    mov              offsetq, 0\n    mov       in_lines_cur3q, [in_lines_cur0q+gprsize*3]\n    mov       in_lines_cur2q, [in_lines_cur0q+gprsize*2]\n    mov       in_lines_cur1q, [in_lines_cur0q+gprsize]\n    mov       in_lines_cur0q, [in_lines_cur0q]\n\n.loop:\n    movh                                   m4, [in_lines_cur0q+offsetq]\n    movh                                   m5, [in_lines_cur1q+offsetq]\n    punpcklbw                              m4, m1\n    punpcklbw                              m5, m1\n    SBUTTERFLY                             wd, 4, 5, 7\n    pmaddwd                                m4, m0\n    pmaddwd                                m5, m0\n    movh                                   m6, [in_lines_cur2q+offsetq]\n    movh                                   m3, [in_lines_cur3q+offsetq]\n    punpcklbw                              m6, m1\n    punpcklbw                              m3, m1\n    SBUTTERFLY                             wd, 6, 3, 7\n    pmaddwd                                m6, m2\n    pmaddwd                                m3, m2\n    paddd                                  m4, m6\n    paddd                                  m5, m3\n    mova               [work_lineq+offsetq*4], m4\n    mova        [work_lineq+offsetq*4+mmsize], m5\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:3", "text": "movh                                   m4, [in_lines_cur0q+offsetq]\n    movh                                   m5, [in_lines_cur1q+offsetq]\n    punpcklbw                              m4, m1\n    punpcklbw                              m5, m1\n    SBUTTERFLY                             wd, 4, 5, 7\n    pmaddwd                                m4, m0\n    pmaddwd                                m5, m0\n    movh                                   m6, [in_lines_cur2q+offsetq]\n    movh                                   m3, [in_lines_cur3q+offsetq]\n    punpcklbw                              m6, m1\n    punpcklbw                              m3, m1\n    SBUTTERFLY                             wd, 6, 3, 7\n    pmaddwd                                m6, m2\n    pmaddwd                                m3, m2\n    paddd                                  m4, m6\n    paddd                                  m5, m3\n    mova               [work_lineq+offsetq*4], m4\n    mova        [work_lineq+offsetq*4+mmsize], m5\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2\n    jg .loop\nRET\n\n%if ARCH_X86_64\ncglobal w3fdif_simple_high, 5, 9, 8, 0, work_line, in_lines_cur0, in_lines_adj0, coef, linesize\n%else\ncglobal w3fdif_simple_high, 4, 7, 8, 0, work_line, in_lines_cur0, in_lines_adj0, coef, linesize\n%endif\n    movq                  m2, [coefq]\n%if ARCH_X86_64\n    DEFINE_ARGS    work_line, in_lines_cur0, in_lines_adj0, in_lines_cur1, linesize, offset, in_lines_cur2, in_lines_adj1, in_lines_adj2\n    xor              offsetq, offsetq\n%else\n    DEFINE_ARGS    work_line, in_lines_cur0, in_lines_adj0, in_lines_cur1, in_lines_cur2, in_lines_adj1, in_lines_adj2\n    %define linesized r4mp\n%endif\n\n    pshufd                m0, m2, q0000\n    SPLATW                m2, m2, 2\n    pxor                  m7, m7\n    mov       in_lines_cur2q, [in_lines_cur0q+gprsize*2]\n    mov       in_lines_cur1q, [in_lines_cur0q+gprsize]\n    mov       in_lines_cur0q, [in_lines_cur0q]\n    mov       in_lines_adj2q, [in_lines_adj0q+gprsize*2]\n    mov       in_lines_adj1q, [in_lines_adj0q+gprsize]\n    mov       in_lines_adj0q, [in_lines_adj0q]\n\n%if ARCH_X86_32\n    sub in_lines_cur1q, in_lines_cur0q\n    sub in_lines_cur2q, in_lines_cur0q\n    sub in_lines_adj0q, in_lines_cur0q\n    sub in_lines_adj1q, in_lines_cur0q\n    sub in_lines_adj2q, in_lines_cur0q\n    %define offsetq in_lines_cur0q\n%endif\n\n.loop:\n%if ARCH_X86_64\n    movh                                   m3, [in_lines_cur0q+offsetq]\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:4", "text": "mov       in_lines_cur2q, [in_lines_cur0q+gprsize*2]\n    mov       in_lines_cur1q, [in_lines_cur0q+gprsize]\n    mov       in_lines_cur0q, [in_lines_cur0q]\n    mov       in_lines_adj2q, [in_lines_adj0q+gprsize*2]\n    mov       in_lines_adj1q, [in_lines_adj0q+gprsize]\n    mov       in_lines_adj0q, [in_lines_adj0q]\n\n%if ARCH_X86_32\n    sub in_lines_cur1q, in_lines_cur0q\n    sub in_lines_cur2q, in_lines_cur0q\n    sub in_lines_adj0q, in_lines_cur0q\n    sub in_lines_adj1q, in_lines_cur0q\n    sub in_lines_adj2q, in_lines_cur0q\n    %define offsetq in_lines_cur0q\n%endif\n\n.loop:\n%if ARCH_X86_64\n    movh                                   m3, [in_lines_cur0q+offsetq]\n%else\n    movh                                   m3, [in_lines_cur0q]\n%endif\n    movh                                   m4, [in_lines_cur1q+offsetq]\n    punpcklbw                              m3, m7\n    punpcklbw                              m4, m7\n    SBUTTERFLY                             wd, 3, 4, 1\n    pmaddwd                                m3, m0\n    pmaddwd                                m4, m0\n    movh                                   m5, [in_lines_adj0q+offsetq]\n    movh                                   m6, [in_lines_adj1q+offsetq]\n    punpcklbw                              m5, m7\n    punpcklbw                              m6, m7\n    SBUTTERFLY                             wd, 5, 6, 1\n    pmaddwd                                m5, m0\n    pmaddwd                                m6, m0\n    paddd                                  m3, m5\n    paddd                                  m4, m6\n    movh                                   m5, [in_lines_cur2q+offsetq]\n    movh                                   m6, [in_lines_adj2q+offsetq]\n    punpcklbw                              m5, m7\n    punpcklbw                              m6, m7\n    SBUTTERFLY                             wd, 5, 6, 1\n    pmaddwd                                m5, m2\n    pmaddwd                                m6, m2\n    paddd                                  m3, m5\n    paddd                                  m4, m6\n%if ARCH_X86_64\n    paddd                                  m3, [work_lineq+offsetq*4]\n    paddd                                  m4, [work_lineq+offsetq*4+mmsize]\n    mova               [work_lineq+offsetq*4], m3\n    mova        [work_lineq+offsetq*4+mmsize], m4\n%else\n    paddd                                  m3, [work_lineq]\n    paddd                                  m4, [work_lineq+mmsize]\n    mova                         [work_lineq], m3\n    mova                  [work_lineq+mmsize], m4\n    add                            work_lineq, mmsize*2\n%endif\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:5", "text": "punpcklbw                              m6, m7\n    SBUTTERFLY                             wd, 5, 6, 1\n    pmaddwd                                m5, m2\n    pmaddwd                                m6, m2\n    paddd                                  m3, m5\n    paddd                                  m4, m6\n%if ARCH_X86_64\n    paddd                                  m3, [work_lineq+offsetq*4]\n    paddd                                  m4, [work_lineq+offsetq*4+mmsize]\n    mova               [work_lineq+offsetq*4], m3\n    mova        [work_lineq+offsetq*4+mmsize], m4\n%else\n    paddd                                  m3, [work_lineq]\n    paddd                                  m4, [work_lineq+mmsize]\n    mova                         [work_lineq], m3\n    mova                  [work_lineq+mmsize], m4\n    add                            work_lineq, mmsize*2\n%endif\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2\n    jg .loop\nRET\n\n%if ARCH_X86_64\n\ncglobal w3fdif_complex_high, 5, 13, 10, 0, work_line, in_lines_cur0, in_lines_adj0, coef, linesize\n    movq                  m0, [coefq+0]\n    movd                  m4, [coefq+8]\n    DEFINE_ARGS    work_line, in_lines_cur0, in_lines_adj0, in_lines_cur1, linesize, offset, in_lines_cur2, in_lines_cur3, in_lines_cur4, in_lines_adj1, in_lines_adj2, in_lines_adj3, in_lines_adj4\n    pshufd                m1, m0, q1111\n    SPLATD                m0\n    SPLATW                m4, m4\n    pxor                  m3, m3\n    mov              offsetq, 0\n    mov       in_lines_cur4q, [in_lines_cur0q+gprsize*4]\n    mov       in_lines_cur3q, [in_lines_cur0q+gprsize*3]\n    mov       in_lines_cur2q, [in_lines_cur0q+gprsize*2]\n    mov       in_lines_cur1q, [in_lines_cur0q+gprsize]\n    mov       in_lines_cur0q, [in_lines_cur0q]\n    mov       in_lines_adj4q, [in_lines_adj0q+gprsize*4]\n    mov       in_lines_adj3q, [in_lines_adj0q+gprsize*3]\n    mov       in_lines_adj2q, [in_lines_adj0q+gprsize*2]\n    mov       in_lines_adj1q, [in_lines_adj0q+gprsize]\n    mov       in_lines_adj0q, [in_lines_adj0q]\n\n.loop:\n    movh                                   m5, [in_lines_cur0q+offsetq]\n    movh                                   m6, [in_lines_cur1q+offsetq]\n    punpcklbw                              m5, m3\n    punpcklbw                              m6, m3\n    SBUTTERFLY                             wd, 5, 6, 2\n    pmaddwd                                m5, m0\n    pmaddwd                                m6, m0\n    movh                                   m8, [in_lines_cur2q+offsetq]\n    movh                                   m9, [in_lines_cur3q+offsetq]\n    punpcklbw                              m8, m3\n    punpcklbw                              m9, m3\n    SBUTTERFLY                             wd, 8, 9, 2\n    pmaddwd                                m8, m1\n    pmaddwd                                m9, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:6", "text": "mov       in_lines_adj3q, [in_lines_adj0q+gprsize*3]\n    mov       in_lines_adj2q, [in_lines_adj0q+gprsize*2]\n    mov       in_lines_adj1q, [in_lines_adj0q+gprsize]\n    mov       in_lines_adj0q, [in_lines_adj0q]\n\n.loop:\n    movh                                   m5, [in_lines_cur0q+offsetq]\n    movh                                   m6, [in_lines_cur1q+offsetq]\n    punpcklbw                              m5, m3\n    punpcklbw                              m6, m3\n    SBUTTERFLY                             wd, 5, 6, 2\n    pmaddwd                                m5, m0\n    pmaddwd                                m6, m0\n    movh                                   m8, [in_lines_cur2q+offsetq]\n    movh                                   m9, [in_lines_cur3q+offsetq]\n    punpcklbw                              m8, m3\n    punpcklbw                              m9, m3\n    SBUTTERFLY                             wd, 8, 9, 2\n    pmaddwd                                m8, m1\n    pmaddwd                                m9, m1\n    paddd                                  m5, m8\n    paddd                                  m6, m9\n    movh                                   m8, [in_lines_adj0q+offsetq]\n    movh                                   m9, [in_lines_adj1q+offsetq]\n    punpcklbw                              m8, m3\n    punpcklbw                              m9, m3\n    SBUTTERFLY                             wd, 8, 9, 2\n    pmaddwd                                m8, m0\n    pmaddwd                                m9, m0\n    paddd                                  m5, m8\n    paddd                                  m6, m9\n    movh                                   m8, [in_lines_adj2q+offsetq]\n    movh                                   m9, [in_lines_adj3q+offsetq]\n    punpcklbw                              m8, m3\n    punpcklbw                              m9, m3\n    SBUTTERFLY                             wd, 8, 9, 2\n    pmaddwd                                m8, m1\n    pmaddwd                                m9, m1\n    paddd                                  m5, m8\n    paddd                                  m6, m9\n    movh                                   m8, [in_lines_cur4q+offsetq]\n    movh                                   m9, [in_lines_adj4q+offsetq]\n    punpcklbw                              m8, m3\n    punpcklbw                              m9, m3\n    SBUTTERFLY                             wd, 8, 9, 2\n    pmaddwd                                m8, m4\n    pmaddwd                                m9, m4\n    paddd                                  m5, m8\n    paddd                                  m6, m9\n    paddd                                  m5, [work_lineq+offsetq*4]\n    paddd                                  m6, [work_lineq+offsetq*4+mmsize]\n    mova               [work_lineq+offsetq*4], m5\n    mova        [work_lineq+offsetq*4+mmsize], m6\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2\n    jg .loop\nRET\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 201, "line_end": 259}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_w3fdif.asm:7", "text": "movh                                   m8, [in_lines_cur4q+offsetq]\n    movh                                   m9, [in_lines_adj4q+offsetq]\n    punpcklbw                              m8, m3\n    punpcklbw                              m9, m3\n    SBUTTERFLY                             wd, 8, 9, 2\n    pmaddwd                                m8, m4\n    pmaddwd                                m9, m4\n    paddd                                  m5, m8\n    paddd                                  m6, m9\n    paddd                                  m5, [work_lineq+offsetq*4]\n    paddd                                  m6, [work_lineq+offsetq*4+mmsize]\n    mova               [work_lineq+offsetq*4], m5\n    mova        [work_lineq+offsetq*4+mmsize], m6\n    add                               offsetq, mmsize/2\n    sub                             linesized, mmsize/2\n    jg .loop\nRET\n\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_w3fdif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_w3fdif.asm", "line_start": 241, "line_end": 259}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_yadif.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for yadif filter\n;*\n;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2013 Daniel Kang <daniel.d.kang@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_1: times 16 db 1\npw_1: times  8 dw 1\n\nSECTION .text\n\n%macro CHECK 2\n    movu      m2, [curq+t1+%1]\n    movu      m3, [curq+t0+%2]\n    mova      m4, m2\n    mova      m5, m2\n    pxor      m4, m3\n    pavgb     m5, m3\n    pand      m4, [pb_1]\n    psubusb   m5, m4\n    RSHIFT    m5, 1\n    punpcklbw m5, m7\n    mova      m4, m2\n    psubusb   m2, m3\n    psubusb   m3, m4\n    pmaxub    m2, m3\n    mova      m3, m2\n    mova      m4, m2\n    RSHIFT    m3, 1\n    RSHIFT    m4, 2\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    paddw     m2, m3\n    paddw     m2, m4\n%endmacro\n\n%macro CHECK1 0\n    mova    m3, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_yadif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_yadif.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_yadif.asm:2", "text": "psubusb   m5, m4\n    RSHIFT    m5, 1\n    punpcklbw m5, m7\n    mova      m4, m2\n    psubusb   m2, m3\n    psubusb   m3, m4\n    pmaxub    m2, m3\n    mova      m3, m2\n    mova      m4, m2\n    RSHIFT    m3, 1\n    RSHIFT    m4, 2\n    punpcklbw m2, m7\n    punpcklbw m3, m7\n    punpcklbw m4, m7\n    paddw     m2, m3\n    paddw     m2, m4\n%endmacro\n\n%macro CHECK1 0\n    mova    m3, m0\n    pcmpgtw m3, m2\n    pminsw  m0, m2\n    mova    m6, m3\n    pand    m5, m3\n    pandn   m3, m1\n    por     m3, m5\n    mova    m1, m3\n%endmacro\n\n%macro CHECK2 0\n    paddw   m6, [pw_1]\n    psllw   m6, 14\n    paddsw  m2, m6\n    mova    m3, m0\n    pcmpgtw m3, m2\n    pminsw  m0, m2\n    pand    m5, m3\n    pandn   m3, m1\n    por     m3, m5\n    mova    m1, m3\n%endmacro\n\n%macro LOAD 2\n    movh      %1, %2\n    punpcklbw %1, m7\n%endmacro\n\n%macro FILTER 3\n.loop%1:\n    pxor         m7, m7\n    LOAD         m0, [curq+t1]\n    LOAD         m1, [curq+t0]\n    LOAD         m2, [%2]\n    LOAD         m3, [%3]\n    mova         m4, m3\n    paddw        m3, m2\n    psraw        m3, 1\n    mova   [rsp+ 0], m0\n    mova   [rsp+16], m3\n    mova   [rsp+32], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_yadif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_yadif.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_yadif.asm:3", "text": "%endmacro\n\n%macro LOAD 2\n    movh      %1, %2\n    punpcklbw %1, m7\n%endmacro\n\n%macro FILTER 3\n.loop%1:\n    pxor         m7, m7\n    LOAD         m0, [curq+t1]\n    LOAD         m1, [curq+t0]\n    LOAD         m2, [%2]\n    LOAD         m3, [%3]\n    mova         m4, m3\n    paddw        m3, m2\n    psraw        m3, 1\n    mova   [rsp+ 0], m0\n    mova   [rsp+16], m3\n    mova   [rsp+32], m1\n    psubw        m2, m4\n    ABS1         m2, m4\n    LOAD         m3, [prevq+t1]\n    LOAD         m4, [prevq+t0]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS1         m3, m5\n    ABS1         m4, m5\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD         m3, [nextq+t1]\n    LOAD         m4, [nextq+t0]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS1         m3, m5\n    ABS1         m4, m5\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    mova   [rsp+48], m2\n\n    paddw        m1, m0\n    paddw        m0, m0\n    psubw        m0, m1\n    psrlw        m1, 1\n    ABS1         m0, m2\n\n    movu         m2, [curq+t1-1]\n    movu         m3, [curq+t0-1]\n    mova         m4, m2\n    psubusb      m2, m3\n    psubusb      m3, m4\n    pmaxub       m2, m3\n    mova         m3, m2\n    psrldq       m3, 2\n    punpcklbw    m2, m7\n    punpcklbw    m3, m7\n    paddw        m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_yadif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_yadif.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_yadif.asm:4", "text": "pmaxsw       m2, m3\n    mova   [rsp+48], m2\n\n    paddw        m1, m0\n    paddw        m0, m0\n    psubw        m0, m1\n    psrlw        m1, 1\n    ABS1         m0, m2\n\n    movu         m2, [curq+t1-1]\n    movu         m3, [curq+t0-1]\n    mova         m4, m2\n    psubusb      m2, m3\n    psubusb      m3, m4\n    pmaxub       m2, m3\n    mova         m3, m2\n    psrldq       m3, 2\n    punpcklbw    m2, m7\n    punpcklbw    m3, m7\n    paddw        m0, m2\n    paddw        m0, m3\n    psubw        m0, [pw_1]\n\n    CHECK -2, 0\n    CHECK1\n    CHECK -3, 1\n    CHECK2\n    CHECK 0, -2\n    CHECK1\n    CHECK 1, -3\n    CHECK2\n\n    mova         m6, [rsp+48]\n    cmp   DWORD r8m, 2\n    jge .end%1\n    LOAD         m2, [%2+t1*2]\n    LOAD         m4, [%3+t1*2]\n    LOAD         m3, [%2+t0*2]\n    LOAD         m5, [%3+t0*2]\n    paddw        m2, m4\n    paddw        m3, m5\n    psrlw        m2, 1\n    psrlw        m3, 1\n    mova         m4, [rsp+ 0]\n    mova         m5, [rsp+16]\n    mova         m7, [rsp+32]\n    psubw        m2, m4\n    psubw        m3, m7\n    mova         m0, m5\n    psubw        m5, m4\n    psubw        m0, m7\n    mova         m4, m2\n    pminsw       m2, m3\n    pmaxsw       m3, m4\n    pmaxsw       m2, m5\n    pminsw       m3, m5\n    pmaxsw       m2, m0\n    pminsw       m3, m0\n    pxor         m4, m4\n    pmaxsw       m6, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_yadif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_yadif.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_yadif.asm:5", "text": "paddw        m3, m5\n    psrlw        m2, 1\n    psrlw        m3, 1\n    mova         m4, [rsp+ 0]\n    mova         m5, [rsp+16]\n    mova         m7, [rsp+32]\n    psubw        m2, m4\n    psubw        m3, m7\n    mova         m0, m5\n    psubw        m5, m4\n    psubw        m0, m7\n    mova         m4, m2\n    pminsw       m2, m3\n    pmaxsw       m3, m4\n    pmaxsw       m2, m5\n    pminsw       m3, m5\n    pmaxsw       m2, m0\n    pminsw       m3, m0\n    pxor         m4, m4\n    pmaxsw       m6, m3\n    psubw        m4, m2\n    pmaxsw       m6, m4\n\n.end%1:\n    mova         m2, [rsp+16]\n    mova         m3, m2\n    psubw        m2, m6\n    paddw        m3, m6\n    pmaxsw       m1, m2\n    pminsw       m1, m3\n    packuswb     m1, m1\n\n    movh     [dstq], m1\n    add        dstq, mmsize/2\n    add       prevq, mmsize/2\n    add        curq, mmsize/2\n    add       nextq, mmsize/2\n    sub   DWORD r4m, mmsize/2\n    jg .loop%1\n%endmacro\n\n%macro YADIF 0\n%if ARCH_X86_32\ncglobal yadif_filter_line, 4, 6, 8, 80, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, parity, mode\n%else\ncglobal yadif_filter_line, 4, 7, 8, 80, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, parity, mode\n%endif\n%if ARCH_X86_32\n    mov            r4, r5mp\n    mov            r5, r6mp\n    DECLARE_REG_TMP 4,5\n%else\n    movsxd         r5, DWORD r5m\n    movsxd         r6, DWORD r6m\n    DECLARE_REG_TMP 5,6\n%endif\n\n    cmp DWORD paritym, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_yadif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_yadif.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/vf_yadif.asm:6", "text": "%macro YADIF 0\n%if ARCH_X86_32\ncglobal yadif_filter_line, 4, 6, 8, 80, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, parity, mode\n%else\ncglobal yadif_filter_line, 4, 7, 8, 80, dst, prev, cur, next, w, prefs, \\\n                                        mrefs, parity, mode\n%endif\n%if ARCH_X86_32\n    mov            r4, r5mp\n    mov            r5, r6mp\n    DECLARE_REG_TMP 4,5\n%else\n    movsxd         r5, DWORD r5m\n    movsxd         r6, DWORD r6m\n    DECLARE_REG_TMP 5,6\n%endif\n\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq\n    jmp .ret\n\n.parity0:\n    FILTER 0, curq, nextq\n\n.ret:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nYADIF\nINIT_XMM sse2\nYADIF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/vf_yadif.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/vf_yadif.asm", "line_start": 201, "line_end": 235}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for yadif filter\n;*\n;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2013 Daniel Kang <daniel.d.kang@gmail.com>\n;* Copyright (c) 2011-2013 James Darnley <james.darnley@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1: times 8 dw 1\n\nSECTION .text\n\n%macro PMAXUW 2\n%if cpuflag(sse4)\n    pmaxuw %1, %2\n%else\n    psubusw %1, %2\n    paddusw %1, %2\n%endif\n%endmacro\n\n%macro CHECK 2\n    movu      m2, [curq+t1+%1*2]\n    movu      m3, [curq+t0+%2*2]\n    mova      m4, m2\n    mova      m5, m2\n    pxor      m4, m3\n    pavgw     m5, m3\n    pand      m4, [pw_1]\n    psubusw   m5, m4\n    RSHIFT    m5, 2\n    mova      m4, m2\n    psubusw   m2, m3\n    psubusw   m3, m4\n    PMAXUW    m2, m3\n    mova      m3, m2\n    mova      m4, m2\n    RSHIFT    m3, 2\n    RSHIFT    m4, 4\n    paddw     m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:2", "text": "%macro CHECK 2\n    movu      m2, [curq+t1+%1*2]\n    movu      m3, [curq+t0+%2*2]\n    mova      m4, m2\n    mova      m5, m2\n    pxor      m4, m3\n    pavgw     m5, m3\n    pand      m4, [pw_1]\n    psubusw   m5, m4\n    RSHIFT    m5, 2\n    mova      m4, m2\n    psubusw   m2, m3\n    psubusw   m3, m4\n    PMAXUW    m2, m3\n    mova      m3, m2\n    mova      m4, m2\n    RSHIFT    m3, 2\n    RSHIFT    m4, 4\n    paddw     m2, m3\n    paddw     m2, m4\n%endmacro\n\n%macro CHECK1 0\n    mova    m3, m0\n    pcmpgtw m3, m2\n    pminsw  m0, m2\n    mova    m6, m3\n    pand    m5, m3\n    pandn   m3, m1\n    por     m3, m5\n    mova    m1, m3\n%endmacro\n\n; %macro CHECK2 0\n;     paddw   m6, [pw_1]\n;     psllw   m6, 14\n;     paddsw  m2, m6\n;     mova    m3, m0\n;     pcmpgtw m3, m2\n;     pminsw  m0, m2\n;     pand    m5, m3\n;     pandn   m3, m1\n;     por     m3, m5\n;     mova    m1, m3\n; %endmacro\n\n; This version of CHECK2 is required for 14-bit samples.  The left-shift trick\n; in the old code is not large enough to correctly select pixels or scores.\n\n%macro CHECK2 0\n    mova    m3, m0\n    pcmpgtw m0, m2\n    pand    m0, m6\n    mova    m6, m0\n    pand    m5, m6\n    pand    m2, m0\n    pandn   m6, m1\n    pandn   m0, m3\n    por     m6, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:3", "text": ";     pminsw  m0, m2\n;     pand    m5, m3\n;     pandn   m3, m1\n;     por     m3, m5\n;     mova    m1, m3\n; %endmacro\n\n; This version of CHECK2 is required for 14-bit samples.  The left-shift trick\n; in the old code is not large enough to correctly select pixels or scores.\n\n%macro CHECK2 0\n    mova    m3, m0\n    pcmpgtw m0, m2\n    pand    m0, m6\n    mova    m6, m0\n    pand    m5, m6\n    pand    m2, m0\n    pandn   m6, m1\n    pandn   m0, m3\n    por     m6, m5\n    por     m0, m2\n    mova    m1, m6\n%endmacro\n\n%macro LOAD 2\n    movu      %1, %2\n%endmacro\n\n%macro FILTER 3\n.loop%1:\n    pxor         m7, m7\n    LOAD         m0, [curq+t1]\n    LOAD         m1, [curq+t0]\n    LOAD         m2, [%2]\n    LOAD         m3, [%3]\n    mova         m4, m3\n    paddw        m3, m2\n    psraw        m3, 1\n    mova   [rsp+ 0], m0\n    mova   [rsp+16], m3\n    mova   [rsp+32], m1\n    psubw        m2, m4\n    ABS1         m2, m4\n    LOAD         m3, [prevq+t1]\n    LOAD         m4, [prevq+t0]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD         m3, [nextq+t1]\n    LOAD         m4, [nextq+t0]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:4", "text": "mova   [rsp+32], m1\n    psubw        m2, m4\n    ABS1         m2, m4\n    LOAD         m3, [prevq+t1]\n    LOAD         m4, [prevq+t0]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m2, 1\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    LOAD         m3, [nextq+t1]\n    LOAD         m4, [nextq+t0]\n    psubw        m3, m0\n    psubw        m4, m1\n    ABS2         m3, m4, m5, m6\n    paddw        m3, m4\n    psrlw        m3, 1\n    pmaxsw       m2, m3\n    mova   [rsp+48], m2\n\n    paddw        m1, m0\n    paddw        m0, m0\n    psubw        m0, m1\n    psrlw        m1, 1\n    ABS1         m0, m2\n\n    movu         m2, [curq+t1-1*2]\n    movu         m3, [curq+t0-1*2]\n    mova         m4, m2\n    psubusw      m2, m3\n    psubusw      m3, m4\n    PMAXUW       m2, m3\n    mova         m3, m2\n    RSHIFT       m3, 4\n    paddw        m0, m2\n    paddw        m0, m3\n    psubw        m0, [pw_1]\n\n    CHECK -2, 0\n    CHECK1\n    CHECK -3, 1\n    CHECK2\n    CHECK 0, -2\n    CHECK1\n    CHECK 1, -3\n    CHECK2\n\n    mova         m6, [rsp+48]\n    cmp   DWORD r8m, 2\n    jge .end%1\n    LOAD         m2, [%2+t1*2]\n    LOAD         m4, [%3+t1*2]\n    LOAD         m3, [%2+t0*2]\n    LOAD         m5, [%3+t0*2]\n    paddw        m2, m4\n    paddw        m3, m5\n    psrlw        m2, 1\n    psrlw        m3, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:5", "text": "CHECK -2, 0\n    CHECK1\n    CHECK -3, 1\n    CHECK2\n    CHECK 0, -2\n    CHECK1\n    CHECK 1, -3\n    CHECK2\n\n    mova         m6, [rsp+48]\n    cmp   DWORD r8m, 2\n    jge .end%1\n    LOAD         m2, [%2+t1*2]\n    LOAD         m4, [%3+t1*2]\n    LOAD         m3, [%2+t0*2]\n    LOAD         m5, [%3+t0*2]\n    paddw        m2, m4\n    paddw        m3, m5\n    psrlw        m2, 1\n    psrlw        m3, 1\n    mova         m4, [rsp+ 0]\n    mova         m5, [rsp+16]\n    mova         m7, [rsp+32]\n    psubw        m2, m4\n    psubw        m3, m7\n    mova         m0, m5\n    psubw        m5, m4\n    psubw        m0, m7\n    mova         m4, m2\n    pminsw       m2, m3\n    pmaxsw       m3, m4\n    pmaxsw       m2, m5\n    pminsw       m3, m5\n    pmaxsw       m2, m0\n    pminsw       m3, m0\n    pxor         m4, m4\n    pmaxsw       m6, m3\n    psubw        m4, m2\n    pmaxsw       m6, m4\n\n.end%1:\n    mova         m2, [rsp+16]\n    mova         m3, m2\n    psubw        m2, m6\n    paddw        m3, m6\n    pmaxsw       m1, m2\n    pminsw       m1, m3\n\n    movu     [dstq], m1\n    add        dstq, mmsize-4\n    add       prevq, mmsize-4\n    add        curq, mmsize-4\n    add       nextq, mmsize-4\n    sub   DWORD r4m, mmsize/2-2\n    jg .loop%1\n%endmacro\n\n%macro YADIF 0\n%if ARCH_X86_32\ncglobal yadif_filter_line_10bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:6", "text": ".end%1:\n    mova         m2, [rsp+16]\n    mova         m3, m2\n    psubw        m2, m6\n    paddw        m3, m6\n    pmaxsw       m1, m2\n    pminsw       m1, m3\n\n    movu     [dstq], m1\n    add        dstq, mmsize-4\n    add       prevq, mmsize-4\n    add        curq, mmsize-4\n    add       nextq, mmsize-4\n    sub   DWORD r4m, mmsize/2-2\n    jg .loop%1\n%endmacro\n\n%macro YADIF 0\n%if ARCH_X86_32\ncglobal yadif_filter_line_10bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, parity, mode\n%else\ncglobal yadif_filter_line_10bit, 4, 7, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, parity, mode\n%endif\n%if ARCH_X86_32\n    mov            r4, r5mp\n    mov            r5, r6mp\n    DECLARE_REG_TMP 4,5\n%else\n    movsxd         r5, DWORD r5m\n    movsxd         r6, DWORD r6m\n    DECLARE_REG_TMP 5,6\n%endif\n\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq\n    jmp .ret\n\n.parity0:\n    FILTER 0, curq, nextq\n\n.ret:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nYADIF\nINIT_XMM sse2\nYADIF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 201, "line_end": 251}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-10.asm:7", "text": ".parity0:\n    FILTER 0, curq, nextq\n\n.ret:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nYADIF\nINIT_XMM sse2\nYADIF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-10.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-10.asm", "line_start": 241, "line_end": 251}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:1", "text": ";*****************************************************************************\n;* x86-optimized functions for yadif filter\n;*\n;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (c) 2013 Daniel Kang <daniel.d.kang@gmail.com>\n;* Copyright (c) 2011-2013 James Darnley <james.darnley@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npw_1:    times 8 dw 1\npw_8000: times 8 dw 0x8000\npd_1:    times 4 dd 1\npd_8000: times 4 dd 0x8000\n\nSECTION .text\n\n%macro PABS 2\n%if cpuflag(ssse3)\n    pabsd %1, %1\n%else\n    pxor    %2, %2\n    pcmpgtd %2, %1\n    pxor    %1, %2\n    psubd   %1, %2\n%endif\n%endmacro\n\n%macro PACK 1\n%if cpuflag(sse4)\n    packusdw %1, %1\n%else\n    psubd    %1, [pd_8000]\n    packssdw %1, %1\n    paddw    %1, [pw_8000]\n%endif\n%endmacro\n\n%macro PMAXUW 2\n%if cpuflag(sse4)\n    pmaxuw %1, %2\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:2", "text": "pcmpgtd %2, %1\n    pxor    %1, %2\n    psubd   %1, %2\n%endif\n%endmacro\n\n%macro PACK 1\n%if cpuflag(sse4)\n    packusdw %1, %1\n%else\n    psubd    %1, [pd_8000]\n    packssdw %1, %1\n    paddw    %1, [pw_8000]\n%endif\n%endmacro\n\n%macro PMAXUW 2\n%if cpuflag(sse4)\n    pmaxuw %1, %2\n%else\n    psubusw %1, %2\n    paddusw %1, %2\n%endif\n%endmacro\n\n%macro CHECK 2\n    movu      m2, [curq+t1+%1*2]\n    movu      m3, [curq+t0+%2*2]\n    mova      m4, m2\n    mova      m5, m2\n    pxor      m4, m3\n    pavgw     m5, m3\n    pand      m4, [pw_1]\n    psubusw   m5, m4\n    RSHIFT    m5, 2\n    punpcklwd m5, m7\n    mova      m4, m2\n    psubusw   m2, m3\n    psubusw   m3, m4\n    PMAXUW    m2, m3\n    mova      m3, m2\n    mova      m4, m2\n    RSHIFT    m3, 2\n    RSHIFT    m4, 4\n    punpcklwd m2, m7\n    punpcklwd m3, m7\n    punpcklwd m4, m7\n    paddd     m2, m3\n    paddd     m2, m4\n%endmacro\n\n%macro CHECK1 0\n    mova    m3, m0\n    pcmpgtd m3, m2\n    PMINSD  m0, m2, m6\n    mova    m6, m3\n    pand    m5, m3\n    pandn   m3, m1\n    por     m3, m5\n    mova    m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:3", "text": "mova      m3, m2\n    mova      m4, m2\n    RSHIFT    m3, 2\n    RSHIFT    m4, 4\n    punpcklwd m2, m7\n    punpcklwd m3, m7\n    punpcklwd m4, m7\n    paddd     m2, m3\n    paddd     m2, m4\n%endmacro\n\n%macro CHECK1 0\n    mova    m3, m0\n    pcmpgtd m3, m2\n    PMINSD  m0, m2, m6\n    mova    m6, m3\n    pand    m5, m3\n    pandn   m3, m1\n    por     m3, m5\n    mova    m1, m3\n%endmacro\n\n%macro CHECK2 0\n    paddd   m6, [pd_1]\n    pslld   m6, 30\n    paddd   m2, m6\n    mova    m3, m0\n    pcmpgtd m3, m2\n    PMINSD  m0, m2, m4\n    pand    m5, m3\n    pandn   m3, m1\n    por     m3, m5\n    mova    m1, m3\n%endmacro\n\n; This version of CHECK2 has 3 fewer instructions on sets older than SSE4 but I\n; am not sure whether it is any faster.  A rewrite or refactor of the filter\n; code should make it possible to eliminate the move instruction at the end.  It\n; exists to satisfy the expectation that the \"score\" values are in m1.\n\n; %macro CHECK2 0\n;     mova    m3, m0\n;     pcmpgtd m0, m2\n;     pand    m0, m6\n;     mova    m6, m0\n;     pand    m5, m6\n;     pand    m2, m0\n;     pandn   m6, m1\n;     pandn   m0, m3\n;     por     m6, m5\n;     por     m0, m2\n;     mova    m1, m6\n; %endmacro\n\n%macro LOAD 2\n    movh      %1, %2\n    punpcklwd %1, m7\n%endmacro\n\n%macro FILTER 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:4", "text": "; %macro CHECK2 0\n;     mova    m3, m0\n;     pcmpgtd m0, m2\n;     pand    m0, m6\n;     mova    m6, m0\n;     pand    m5, m6\n;     pand    m2, m0\n;     pandn   m6, m1\n;     pandn   m0, m3\n;     por     m6, m5\n;     por     m0, m2\n;     mova    m1, m6\n; %endmacro\n\n%macro LOAD 2\n    movh      %1, %2\n    punpcklwd %1, m7\n%endmacro\n\n%macro FILTER 3\n.loop%1:\n    pxor         m7, m7\n    LOAD         m0, [curq+t1]\n    LOAD         m1, [curq+t0]\n    LOAD         m2, [%2]\n    LOAD         m3, [%3]\n    mova         m4, m3\n    paddd        m3, m2\n    psrad        m3, 1\n    mova   [rsp+ 0], m0\n    mova   [rsp+16], m3\n    mova   [rsp+32], m1\n    psubd        m2, m4\n    PABS         m2, m4\n    LOAD         m3, [prevq+t1]\n    LOAD         m4, [prevq+t0]\n    psubd        m3, m0\n    psubd        m4, m1\n    PABS         m3, m5\n    PABS         m4, m5\n    paddd        m3, m4\n    psrld        m2, 1\n    psrld        m3, 1\n    PMAXSD       m2, m3, m6\n    LOAD         m3, [nextq+t1]\n    LOAD         m4, [nextq+t0]\n    psubd        m3, m0\n    psubd        m4, m1\n    PABS         m3, m5\n    PABS         m4, m5\n    paddd        m3, m4\n    psrld        m3, 1\n    PMAXSD       m2, m3, m6\n    mova   [rsp+48], m2\n\n    paddd        m1, m0\n    paddd        m0, m0\n    psubd        m0, m1\n    psrld        m1, 1\n    PABS         m0, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:5", "text": "paddd        m3, m4\n    psrld        m2, 1\n    psrld        m3, 1\n    PMAXSD       m2, m3, m6\n    LOAD         m3, [nextq+t1]\n    LOAD         m4, [nextq+t0]\n    psubd        m3, m0\n    psubd        m4, m1\n    PABS         m3, m5\n    PABS         m4, m5\n    paddd        m3, m4\n    psrld        m3, 1\n    PMAXSD       m2, m3, m6\n    mova   [rsp+48], m2\n\n    paddd        m1, m0\n    paddd        m0, m0\n    psubd        m0, m1\n    psrld        m1, 1\n    PABS         m0, m2\n\n    movu         m2, [curq+t1-1*2]\n    movu         m3, [curq+t0-1*2]\n    mova         m4, m2\n    psubusw      m2, m3\n    psubusw      m3, m4\n    PMAXUW       m2, m3\n    mova         m3, m2\n    RSHIFT       m3, 4\n    punpcklwd    m2, m7\n    punpcklwd    m3, m7\n    paddd        m0, m2\n    paddd        m0, m3\n    psubd        m0, [pd_1]\n\n    CHECK -2, 0\n    CHECK1\n    CHECK -3, 1\n    CHECK2\n    CHECK 0, -2\n    CHECK1\n    CHECK 1, -3\n    CHECK2\n\n    mova         m6, [rsp+48]\n    cmp   DWORD r8m, 2\n    jge .end%1\n    LOAD         m2, [%2+t1*2]\n    LOAD         m4, [%3+t1*2]\n    LOAD         m3, [%2+t0*2]\n    LOAD         m5, [%3+t0*2]\n    paddd        m2, m4\n    paddd        m3, m5\n    psrld        m2, 1\n    psrld        m3, 1\n    mova         m4, [rsp+ 0]\n    mova         m5, [rsp+16]\n    mova         m7, [rsp+32]\n    psubd        m2, m4\n    psubd        m3, m7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:6", "text": "CHECK1\n    CHECK 1, -3\n    CHECK2\n\n    mova         m6, [rsp+48]\n    cmp   DWORD r8m, 2\n    jge .end%1\n    LOAD         m2, [%2+t1*2]\n    LOAD         m4, [%3+t1*2]\n    LOAD         m3, [%2+t0*2]\n    LOAD         m5, [%3+t0*2]\n    paddd        m2, m4\n    paddd        m3, m5\n    psrld        m2, 1\n    psrld        m3, 1\n    mova         m4, [rsp+ 0]\n    mova         m5, [rsp+16]\n    mova         m7, [rsp+32]\n    psubd        m2, m4\n    psubd        m3, m7\n    mova         m0, m5\n    psubd        m5, m4\n    psubd        m0, m7\n    mova         m4, m2\n    PMINSD       m2, m3, m7\n    PMAXSD       m3, m4, m7\n    PMAXSD       m2, m5, m7\n    PMINSD       m3, m5, m7\n    PMAXSD       m2, m0, m7\n    PMINSD       m3, m0, m7\n    pxor         m4, m4\n    PMAXSD       m6, m3, m7\n    psubd        m4, m2\n    PMAXSD       m6, m4, m7\n\n.end%1:\n    mova         m2, [rsp+16]\n    mova         m3, m2\n    psubd        m2, m6\n    paddd        m3, m6\n    PMAXSD       m1, m2, m7\n    PMINSD       m1, m3, m7\n    PACK         m1\n\n    movh     [dstq], m1\n    add        dstq, mmsize/2\n    add       prevq, mmsize/2\n    add        curq, mmsize/2\n    add       nextq, mmsize/2\n    sub   DWORD r4m, mmsize/4\n    jg .loop%1\n%endmacro\n\n%macro YADIF 0\n%if ARCH_X86_32\ncglobal yadif_filter_line_16bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, parity, mode\n%else\ncglobal yadif_filter_line_16bit, 4, 7, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, parity, mode", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavfilter/x86/yadif-16.asm:7", "text": "PMAXSD       m1, m2, m7\n    PMINSD       m1, m3, m7\n    PACK         m1\n\n    movh     [dstq], m1\n    add        dstq, mmsize/2\n    add       prevq, mmsize/2\n    add        curq, mmsize/2\n    add       nextq, mmsize/2\n    sub   DWORD r4m, mmsize/4\n    jg .loop%1\n%endmacro\n\n%macro YADIF 0\n%if ARCH_X86_32\ncglobal yadif_filter_line_16bit, 4, 6, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, parity, mode\n%else\ncglobal yadif_filter_line_16bit, 4, 7, 8, 80, dst, prev, cur, next, w, \\\n                                              prefs, mrefs, parity, mode\n%endif\n%if ARCH_X86_32\n    mov            r4, r5mp\n    mov            r5, r6mp\n    DECLARE_REG_TMP 4,5\n%else\n    movsxd         r5, DWORD r5m\n    movsxd         r6, DWORD r6m\n    DECLARE_REG_TMP 5,6\n%endif\n\n    cmp DWORD paritym, 0\n    je .parity0\n    FILTER 1, prevq, curq\n    jmp .ret\n\n.parity0:\n    FILTER 0, curq, nextq\n\n.ret:\n    RET\n%endmacro\n\nINIT_XMM sse4\nYADIF\nINIT_XMM ssse3\nYADIF\nINIT_XMM sse2\nYADIF", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavfilter/x86/yadif-16.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavfilter/x86/yadif-16.asm", "line_start": 241, "line_end": 289}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "#define GNU_PROPERTY_AARCH64_GCS (1 << 2)\n#else\n#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, jumpable=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n    .if \\jumpable\n        AARCH64_VALID_JUMP_TARGET\n    .else\n        AARCH64_VALID_CALL_TARGET\n    .endif\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": "FUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:9", "text": "add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18\n\n#if HAVE_SME\n.macro sme_entry\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x29, x30, [sp, #-80]!\n        mov             x29, sp\n        stp             d8,  d9,  [sp, #16]\n        stp             d10, d11, [sp, #32]\n        stp             d12, d13, [sp, #48]\n        stp             d14, d15, [sp, #64]\n        smstart\n.endm\n\n.macro sme_exit\n        smstop\n        ldp             d8,  d9,  [sp, #16]\n        ldp             d10, d11, [sp, #32]\n        ldp             d12, d13, [sp, #48]\n        ldp             d14, d15, [sp, #64]\n        ldp             x29, x30, [sp], #80\n        AARCH64_VALIDATE_LINK_REGISTER\n.endm\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/asm.S", "line_start": 321, "line_end": 367}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "*\n * References:\n * - \"ELF for the Arm® 64-bit Architecture\"\n *   https://github.com/ARM-software/abi-aa/blob/master/aaelf64/aaelf64.rst\n * - \"Providing protection for complex software\"\n *   https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software\n */\n#if defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT == 1)\n#   define GNU_PROPERTY_AARCH64_BTI (1 << 0)   // Has BTI\n#   define AARCH64_VALID_CALL_TARGET hint #34  // BTI 'c'\n#   define AARCH64_VALID_JUMP_TARGET hint #38  // BTI 'j'\n#else\n#   define GNU_PROPERTY_AARCH64_BTI 0          // No BTI\n#   define AARCH64_VALID_CALL_TARGET\n#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n#if defined(__ARM_FEATURE_GCS_DEFAULT) && __ARM_FEATURE_GCS_DEFAULT == 1\n#define GNU_PROPERTY_AARCH64_GCS (1 << 2)\n#else\n#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, jumpable=0, align=4\n    .macro endfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "8ed8e221bd297f8a12431165f638c7a0da35027c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8ed8e221bd297f8a12431165f638c7a0da35027c/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, jumpable=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n    .if \\jumpable\n        AARCH64_VALID_JUMP_TARGET\n    .else\n        AARCH64_VALID_CALL_TARGET\n    .endif\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "8ed8e221bd297f8a12431165f638c7a0da35027c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8ed8e221bd297f8a12431165f638c7a0da35027c/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": ".endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "8ed8e221bd297f8a12431165f638c7a0da35027c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8ed8e221bd297f8a12431165f638c7a0da35027c/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:9", "text": ".else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18\n\n#if HAVE_SME\n.macro sme_entry\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x29, x30, [sp, #-80]!\n        mov             x29, sp\n        stp             d8,  d9,  [sp, #16]\n        stp             d10, d11, [sp, #32]\n        stp             d12, d13, [sp, #48]\n        stp             d14, d15, [sp, #64]\n        smstart\n.endm\n\n.macro sme_exit\n        smstop\n        ldp             d8,  d9,  [sp, #16]\n        ldp             d10, d11, [sp, #32]\n        ldp             d12, d13, [sp, #48]\n        ldp             d14, d15, [sp, #64]\n        ldp             x29, x30, [sp], #80\n        AARCH64_VALIDATE_LINK_REGISTER\n.endm\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "8ed8e221bd297f8a12431165f638c7a0da35027c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8ed8e221bd297f8a12431165f638c7a0da35027c/libavutil/aarch64/asm.S", "line_start": 321, "line_end": 365}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "*\n * References:\n * - \"ELF for the Arm® 64-bit Architecture\"\n *   https: *github.com/ARM-software/abi-aa/blob/master/aaelf64/aaelf64.rst\n * - \"Providing protection for complex software\"\n *   https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software\n */\n#if defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT == 1)\n#   define GNU_PROPERTY_AARCH64_BTI (1 << 0)   // Has BTI\n#   define AARCH64_VALID_CALL_TARGET hint #34  // BTI 'c'\n#   define AARCH64_VALID_JUMP_TARGET hint #38  // BTI 'j'\n#else\n#   define GNU_PROPERTY_AARCH64_BTI 0          // No BTI\n#   define AARCH64_VALID_CALL_TARGET\n#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n#if defined(__ARM_FEATURE_GCS_DEFAULT) && __ARM_FEATURE_GCS_DEFAULT == 1\n#define GNU_PROPERTY_AARCH64_GCS (1 << 2)\n#else\n#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, jumpable=0, align=4\n    .macro endfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "af443abe99cfac2ad0ac33dbe029636092867c8b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af443abe99cfac2ad0ac33dbe029636092867c8b/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "*\n * References:\n * - \"ELF for the Arm® 64-bit Architecture\"\n *   https: *github.com/ARM-software/abi-aa/blob/master/aaelf64/aaelf64.rst\n * - \"Providing protection for complex software\"\n *   https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software\n */\n#if defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT == 1)\n#   define GNU_PROPERTY_AARCH64_BTI (1 << 0)   // Has BTI\n#   define AARCH64_VALID_CALL_TARGET hint #34  // BTI 'c'\n#   define AARCH64_VALID_JUMP_TARGET hint #38  // BTI 'j'\n#else\n#   define GNU_PROPERTY_AARCH64_BTI 0          // No BTI\n#   define AARCH64_VALID_CALL_TARGET\n#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n#if defined(__ARM_FEATURE_GCS_DEFAULT) && __ARM_FEATURE_GCS_DEFAULT == 1\n#define GNU_PROPERTY_AARCH64_GCS (1 << 2)\n#else\n#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "f72f692afa87afaf86c8cfb47d7bfc051d8d0314", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f72f692afa87afaf86c8cfb47d7bfc051d8d0314/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "f72f692afa87afaf86c8cfb47d7bfc051d8d0314", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f72f692afa87afaf86c8cfb47d7bfc051d8d0314/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": ".macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18\n\n#if HAVE_SME", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "f72f692afa87afaf86c8cfb47d7bfc051d8d0314", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f72f692afa87afaf86c8cfb47d7bfc051d8d0314/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:9", "text": "#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18\n\n#if HAVE_SME\n.macro sme_entry\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x29, x30, [sp, #-80]!\n        mov             x29, sp\n        stp             d8,  d9,  [sp, #16]\n        stp             d10, d11, [sp, #32]\n        stp             d12, d13, [sp, #48]\n        stp             d14, d15, [sp, #64]\n        smstart\n.endm\n\n.macro sme_exit\n        smstop\n        ldp             d8,  d9,  [sp, #16]\n        ldp             d10, d11, [sp, #32]\n        ldp             d12, d13, [sp, #48]\n        ldp             d14, d15, [sp, #64]\n        ldp             x29, x30, [sp], #80\n        AARCH64_VALIDATE_LINK_REGISTER\n.endm\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "f72f692afa87afaf86c8cfb47d7bfc051d8d0314", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f72f692afa87afaf86c8cfb47d7bfc051d8d0314/libavutil/aarch64/asm.S", "line_start": 321, "line_end": 361}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:3", "text": "#endif\n\n#if HAVE_AS_ARCHEXT_SVE_DIRECTIVE\n#define ENABLE_SVE  .arch_extension sve\n#define DISABLE_SVE .arch_extension nosve\n#else\n#define ENABLE_SVE\n#define DISABLE_SVE\n#endif\n\n#if HAVE_AS_ARCHEXT_SVE2_DIRECTIVE\n#define ENABLE_SVE2  .arch_extension sve2\n#define DISABLE_SVE2 .arch_extension nosve2\n#else\n#define ENABLE_SVE2\n#define DISABLE_SVE2\n#endif\n\n#if HAVE_AS_ARCHEXT_SME_DIRECTIVE\n#define ENABLE_SME   .arch_extension sme\n#define DISABLE_SME  .arch_extension nosme\n#else\n#define ENABLE_SME\n#define DISABLE_SME\n#endif\n\n#if HAVE_AS_ARCHEXT_SME_I16I64_DIRECTIVE\n#define ENABLE_SME_I16I64  .arch_extension sme-i16i64\n#define DISABLE_SME_I16I64 .arch_extension nosme-i16i64\n#else\n#define ENABLE_SME_I16I64\n#define DISABLE_SME_I16I64\n#endif\n\n#if HAVE_AS_ARCHEXT_SME2_DIRECTIVE\n#define ENABLE_SME2   .arch_extension sme2\n#define DISABLE_SME2  .arch_extension nosme2\n#else\n#define ENABLE_SME2\n#define DISABLE_SME2\n#endif\n\nDISABLE_ARM_CRC\nDISABLE_PMULL\nDISABLE_EOR3\nDISABLE_DOTPROD\nDISABLE_I8MM\nDISABLE_SVE\nDISABLE_SVE2\nDISABLE_SME\nDISABLE_SME_I16I64\nDISABLE_SME2\n\n#if HAVE_SME\n.macro sme_entry\n        stp             x29, x30, [sp, #-80]!\n        mov             x29, sp\n        stp             d8, d9, [sp, #16]\n        stp             d10, d11, [sp, #32]\n        stp             d12, d13, [sp, #48]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "846746be4b8edd66be8be2c123b0072de2636e9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/846746be4b8edd66be8be2c123b0072de2636e9d/libavutil/aarch64/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:4", "text": "#endif\n\nDISABLE_ARM_CRC\nDISABLE_PMULL\nDISABLE_EOR3\nDISABLE_DOTPROD\nDISABLE_I8MM\nDISABLE_SVE\nDISABLE_SVE2\nDISABLE_SME\nDISABLE_SME_I16I64\nDISABLE_SME2\n\n#if HAVE_SME\n.macro sme_entry\n        stp             x29, x30, [sp, #-80]!\n        mov             x29, sp\n        stp             d8, d9, [sp, #16]\n        stp             d10, d11, [sp, #32]\n        stp             d12, d13, [sp, #48]\n        stp             d14, d15, [sp, #64]\n        smstart\n.endm\n\n.macro sme_exit\n        smstop\n        ldp             d8, d9, [sp, #16]\n        ldp             d10, d11, [sp, #32]\n        ldp             d12, d13, [sp, #48]\n        ldp             d14, d15, [sp, #64]\n        ldp             x29, x30, [sp], #80\n.endm\n#endif\n\n/* Support macros for\n *   - Armv8.3-A Pointer Authentication and\n *   - Armv8.5-A Branch Target Identification\n * features which require emitting a .note.gnu.property section with the\n * appropriate architecture-dependent feature bits set.\n *\n * |AARCH64_SIGN_LINK_REGISTER| and |AARCH64_VALIDATE_LINK_REGISTER| expand to\n * PACIxSP and AUTIxSP, respectively. |AARCH64_SIGN_LINK_REGISTER| should be\n * used immediately before saving the LR register (x30) to the stack.\n * |AARCH64_VALIDATE_LINK_REGISTER| should be used immediately after restoring\n * it. Note |AARCH64_SIGN_LINK_REGISTER|'s modifications to LR must be undone\n * with |AARCH64_VALIDATE_LINK_REGISTER| before RET. The SP register must also\n * have the same value at the two points. For example:\n *\n *   .global f\n *   f:\n *     AARCH64_SIGN_LINK_REGISTER\n *     stp x29, x30, [sp, #-96]!\n *     mov x29, sp\n *     ...\n *     ldp x29, x30, [sp], #96\n *     AARCH64_VALIDATE_LINK_REGISTER\n *     ret\n *\n * |AARCH64_VALID_CALL_TARGET| expands to BTI 'c'. Either it, or\n * |AARCH64_SIGN_LINK_REGISTER|, must be used at every point that may be an", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "846746be4b8edd66be8be2c123b0072de2636e9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/846746be4b8edd66be8be2c123b0072de2636e9d/libavutil/aarch64/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n#if defined(__ARM_FEATURE_GCS_DEFAULT) && __ARM_FEATURE_GCS_DEFAULT == 1\n#define GNU_PROPERTY_AARCH64_GCS (1 << 2)\n#else\n#define GNU_PROPERTY_AARCH64_GCS 0 /* No GCS */\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0 || GNU_PROPERTY_AARCH64_GCS != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC | GNU_PROPERTY_AARCH64_GCS)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "846746be4b8edd66be8be2c123b0072de2636e9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/846746be4b8edd66be8be2c123b0072de2636e9d/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": "ELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "846746be4b8edd66be8be2c123b0072de2636e9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/846746be4b8edd66be8be2c123b0072de2636e9d/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:9", "text": ".macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "846746be4b8edd66be8be2c123b0072de2636e9d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/846746be4b8edd66be8be2c123b0072de2636e9d/libavutil/aarch64/asm.S", "line_start": 321, "line_end": 358}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "b19bd0de6c3b554ddc0221c7ee3f2c23af4617be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b19bd0de6c3b554ddc0221c7ee3f2c23af4617be/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": ".if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "b19bd0de6c3b554ddc0221c7ee3f2c23af4617be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b19bd0de6c3b554ddc0221c7ee3f2c23af4617be/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:9", "text": "sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "b19bd0de6c3b554ddc0221c7ee3f2c23af4617be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b19bd0de6c3b554ddc0221c7ee3f2c23af4617be/libavutil/aarch64/asm.S", "line_start": 321, "line_end": 352}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:3", "text": "#endif\n\n#if HAVE_AS_ARCHEXT_SME_DIRECTIVE\n#define ENABLE_SME   .arch_extension sme\n#define DISABLE_SME  .arch_extension nosme\n#else\n#define ENABLE_SME\n#define DISABLE_SME\n#endif\n\n#if HAVE_AS_ARCHEXT_SME_I16I64_DIRECTIVE\n#define ENABLE_SME_I16I64  .arch_extension sme-i16i64\n#define DISABLE_SME_I16I64 .arch_extension nosme-i16i64\n#else\n#define ENABLE_SME_I16I64\n#define DISABLE_SME_I16I64\n#endif\n\n#if HAVE_AS_ARCHEXT_SME2_DIRECTIVE\n#define ENABLE_SME2   .arch_extension sme2\n#define DISABLE_SME2  .arch_extension nosme2\n#else\n#define ENABLE_SME2\n#define DISABLE_SME2\n#endif\n\nDISABLE_ARM_CRC\nDISABLE_DOTPROD\nDISABLE_I8MM\nDISABLE_SVE\nDISABLE_SVE2\nDISABLE_SME\nDISABLE_SME_I16I64\nDISABLE_SME2\n\n#if HAVE_SME\n.macro sme_entry\n        stp             x29, x30, [sp, #-80]!\n        mov             x29, sp\n        stp             d8, d9, [sp, #16]\n        stp             d10, d11, [sp, #32]\n        stp             d12, d13, [sp, #48]\n        stp             d14, d15, [sp, #64]\n        smstart\n.endm\n\n.macro sme_exit\n        smstop\n        ldp             d8, d9, [sp, #16]\n        ldp             d10, d11, [sp, #32]\n        ldp             d12, d13, [sp, #48]\n        ldp             d14, d15, [sp, #64]\n        ldp             x29, x30, [sp], #80\n.endm\n#endif\n\n/* Support macros for\n *   - Armv8.3-A Pointer Authentication and\n *   - Armv8.5-A Branch Target Identification\n * features which require emitting a .note.gnu.property section with the", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "0edd75e150c243728bd788caeb4677d2905d094a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0edd75e150c243728bd788caeb4677d2905d094a/libavutil/aarch64/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "* Although not necessary, it is safe to use these macros in 32-bit ARM\n * assembly. This may be used to simplify dual 32-bit and 64-bit files.\n *\n * References:\n * - \"ELF for the Arm® 64-bit Architecture\"\n *   https: *github.com/ARM-software/abi-aa/blob/master/aaelf64/aaelf64.rst\n * - \"Providing protection for complex software\"\n *   https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software\n */\n#if defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT == 1)\n#   define GNU_PROPERTY_AARCH64_BTI (1 << 0)   // Has BTI\n#   define AARCH64_VALID_CALL_TARGET hint #34  // BTI 'c'\n#   define AARCH64_VALID_JUMP_TARGET hint #38  // BTI 'j'\n#else\n#   define GNU_PROPERTY_AARCH64_BTI 0          // No BTI\n#   define AARCH64_VALID_CALL_TARGET\n#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "0edd75e150c243728bd788caeb4677d2905d094a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0edd75e150c243728bd788caeb4677d2905d094a/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "0edd75e150c243728bd788caeb4677d2905d094a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0edd75e150c243728bd788caeb4677d2905d094a/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": "#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "0edd75e150c243728bd788caeb4677d2905d094a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0edd75e150c243728bd788caeb4677d2905d094a/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 334}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:9", "text": "adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "0edd75e150c243728bd788caeb4677d2905d094a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0edd75e150c243728bd788caeb4677d2905d094a/libavutil/aarch64/asm.S", "line_start": 321, "line_end": 334}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "905348df9df2f7d6b1335be78640101fd83c4757", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/905348df9df2f7d6b1335be78640101fd83c4757/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": ".text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "905348df9df2f7d6b1335be78640101fd83c4757", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/905348df9df2f7d6b1335be78640101fd83c4757/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": "adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "905348df9df2f7d6b1335be78640101fd83c4757", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/905348df9df2f7d6b1335be78640101fd83c4757/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 314}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "70691bbb273c6d3ff85e5559a985064c4badd42e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/70691bbb273c6d3ff85e5559a985064c4badd42e/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "ELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "70691bbb273c6d3ff85e5559a985064c4badd42e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/70691bbb273c6d3ff85e5559a985064c4badd42e/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": "adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "70691bbb273c6d3ff85e5559a985064c4badd42e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/70691bbb273c6d3ff85e5559a985064c4badd42e/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 305}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:5", "text": "* calls can be created using |AARCH64_VALID_JUMP_CALL_TARGET|.\n *\n * Although not necessary, it is safe to use these macros in 32-bit ARM\n * assembly. This may be used to simplify dual 32-bit and 64-bit files.\n *\n * References:\n * - \"ELF for the Arm® 64-bit Architecture\"\n *   https: *github.com/ARM-software/abi-aa/blob/master/aaelf64/aaelf64.rst\n * - \"Providing protection for complex software\"\n *   https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software\n */\n#if defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT == 1)\n#   define GNU_PROPERTY_AARCH64_BTI (1 << 0)   // Has BTI\n#   define AARCH64_VALID_CALL_TARGET hint #34  // BTI 'c'\n#   define AARCH64_VALID_JUMP_TARGET hint #38  // BTI 'j'\n#else\n#   define GNU_PROPERTY_AARCH64_BTI 0          // No BTI\n#   define AARCH64_VALID_CALL_TARGET\n#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "3dcbcce80cd7cb9ff2140f0bbf4961127708d013", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3dcbcce80cd7cb9ff2140f0bbf4961127708d013/libavutil/aarch64/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "3dcbcce80cd7cb9ff2140f0bbf4961127708d013", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3dcbcce80cd7cb9ff2140f0bbf4961127708d013/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": ".purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "3dcbcce80cd7cb9ff2140f0bbf4961127708d013", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3dcbcce80cd7cb9ff2140f0bbf4961127708d013/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 296}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:8", "text": "adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "3dcbcce80cd7cb9ff2140f0bbf4961127708d013", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3dcbcce80cd7cb9ff2140f0bbf4961127708d013/libavutil/aarch64/asm.S", "line_start": 281, "line_end": 296}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:5", "text": "*   https://developer.arm.com/architectures/learn-the-architecture/providing-protection-for-complex-software\n */\n#if defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT == 1)\n#   define GNU_PROPERTY_AARCH64_BTI (1 << 0)   // Has BTI\n#   define AARCH64_VALID_CALL_TARGET hint #34  // BTI 'c'\n#   define AARCH64_VALID_JUMP_TARGET hint #38  // BTI 'j'\n#else\n#   define GNU_PROPERTY_AARCH64_BTI 0          // No BTI\n#   define AARCH64_VALID_CALL_TARGET\n#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "cdb14bc74dfa4d7e274df9830418fc61da0796df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cdb14bc74dfa4d7e274df9830418fc61da0796df/libavutil/aarch64/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": ".long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "cdb14bc74dfa4d7e274df9830418fc61da0796df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cdb14bc74dfa4d7e274df9830418fc61da0796df/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": ".section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "cdb14bc74dfa4d7e274df9830418fc61da0796df", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/cdb14bc74dfa4d7e274df9830418fc61da0796df/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 287}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:5", "text": "#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=4\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=4, relocate=0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "b6803bf10419770737f8dd77497b9afb8ffebcff", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b6803bf10419770737f8dd77497b9afb8ffebcff/libavutil/aarch64/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:5", "text": "#   define AARCH64_VALID_JUMP_TARGET\n#endif\n\n#if defined(__ARM_FEATURE_PAC_DEFAULT)\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 0)) != 0) // authentication using key A\n#       define AARCH64_SIGN_LINK_REGISTER      paciasp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autiasp\n#   elif ((__ARM_FEATURE_PAC_DEFAULT & (1 << 1)) != 0) // authentication using key B\n#       define AARCH64_SIGN_LINK_REGISTER      pacibsp\n#       define AARCH64_VALIDATE_LINK_REGISTER  autibsp\n#   else\n#       error Pointer authentication defines no valid key!\n#   endif\n#   if ((__ARM_FEATURE_PAC_DEFAULT & (1 << 2)) != 0)\n#       error Authentication of leaf functions is enabled but not supported in FFmpeg!\n#   endif\n#   define GNU_PROPERTY_AARCH64_PAC (1 << 1)\n#else\n#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=2\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=2, relocate=0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "e6e56fd7a7738c30f3052067ba35cba346fdde8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e6e56fd7a7738c30f3052067ba35cba346fdde8c/libavutil/aarch64/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": "ELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=2, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "e6e56fd7a7738c30f3052067ba35cba346fdde8c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e6e56fd7a7738c30f3052067ba35cba346fdde8c/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:5", "text": "#   define GNU_PROPERTY_AARCH64_PAC 0\n#   define AARCH64_SIGN_LINK_REGISTER\n#   define AARCH64_VALIDATE_LINK_REGISTER\n#endif\n\n\n#if (GNU_PROPERTY_AARCH64_BTI != 0 || GNU_PROPERTY_AARCH64_PAC != 0) && defined(__ELF__)\n        .pushsection .note.gnu.property, \"a\"\n        .balign 8\n        .long 4\n        .long 0x10\n        .long 0x5\n        .asciz \"GNU\"\n        .long 0xc0000000 /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */\n        .long 4\n        .long (GNU_PROPERTY_AARCH64_BTI | GNU_PROPERTY_AARCH64_PAC)\n        .long 0\n        .popsection\n#endif\n\n.macro  function name, export=0, align=2\n    .macro endfunc\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nEXTERN_ASM\\name:\n        AARCH64_VALID_CALL_TARGET\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=2, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/aarch64/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:6", "text": ".macro  const   name, align=2, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n.macro  movrel rd, val, offset=0\n#if CONFIG_PIC && defined(__APPLE__)\n    .if \\offset < 0\n        adrp            \\rd, \\val@PAGE\n        add             \\rd, \\rd, \\val@PAGEOFF\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)@PAGE\n        add             \\rd, \\rd, \\val+(\\offset)@PAGEOFF\n    .endif\n#elif CONFIG_PIC && defined(_WIN32)\n    .if \\offset < 0\n        adrp            \\rd, \\val\n        add             \\rd, \\rd, :lo12:\\val\n        sub             \\rd, \\rd, -(\\offset)\n    .else\n        adrp            \\rd, \\val+(\\offset)\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/aarch64/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/asm.S:7", "text": "add             \\rd, \\rd, :lo12:\\val+(\\offset)\n    .endif\n#elif CONFIG_PIC\n#   if __has_feature(hwaddress_sanitizer)\n        adrp            \\rd, :pg_hi21_nc:\\val+(\\offset)\n#   else\n        adrp            \\rd, \\val+(\\offset)\n#   endif\n        add             \\rd, \\rd, :lo12:\\val+(\\offset)\n#else\n        ldr             \\rd, =\\val+\\offset\n#endif\n.endm\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)\n\n#define x18 do_not_use_x18\n#define w18 do_not_use_w18", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/aarch64/asm.S", "line_start": 241, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/cpu_sme.S:1", "text": "/*\n * Copyright (c) 2025 Georgii Zagoruiko\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"asm.S\"\n\nENABLE_SME\n\nfunction ff_aarch64_sme_length, export=1\n        smstart\n        cntb            x0\n        smstop\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/cpu_sme.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/cpu_sme.S", "line_start": 1, "line_end": 31}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:1", "text": "/*\n * Copyright (c) 2025 Zhao Zhili <quinkblack@foxmail.com>\n * Copyright (c) 2026 Shreesh Adiga <16567adigashreesh@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n */\n\n#include \"asm.S\"\n\n#if HAVE_ARM_CRC\nENABLE_ARM_CRC\n\n.macro crc32_byte\n        ldrb            w5, [x2], #1\n        subs            x4, x4, #1\n        crc32b          w0, w0, w5\n.endm\n\nfunction ff_crc32_aarch64, export=1\n        and             x4, x2, #7          // non-aligned buffer addr\n        mov             w0, w1\n        cbz             x3, 8f\n\n        cbz             x4, 2f\n\n        mov             x5, #8\n        sub             x4, x5, x4\n        cmp             x4, x3\n        csel            x4, x4, x3, lo\n        sub             x3, x3, x4\n1:\n        // loop on non-aligned buffer\n        crc32_byte\n        b.ne            1b\n2:\n        // loop on aligned buffer\n        bic             x5, x3, #15\n        and             x4, x3, #15\n        cbz             x5, 4f\n3:\n        ldp             x6, x7, [x2], #16\n        subs            x5, x5, #16\n        crc32x          w0, w0, x6\n        crc32x          w0, w0, x7\n        b.ne            3b\n4:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:2", "text": "sub             x4, x5, x4\n        cmp             x4, x3\n        csel            x4, x4, x3, lo\n        sub             x3, x3, x4\n1:\n        // loop on non-aligned buffer\n        crc32_byte\n        b.ne            1b\n2:\n        // loop on aligned buffer\n        bic             x5, x3, #15\n        and             x4, x3, #15\n        cbz             x5, 4f\n3:\n        ldp             x6, x7, [x2], #16\n        subs            x5, x5, #16\n        crc32x          w0, w0, x6\n        crc32x          w0, w0, x7\n        b.ne            3b\n4:\n        cbz             x4, 8f\n5:\n        crc32_byte\n        b.ne            5b\n8:\n        ret\nendfunc\n\nDISABLE_ARM_CRC\n#endif\n\n#if HAVE_PMULL && HAVE_EOR3\nENABLE_PMULL\nENABLE_EOR3\n\nconst reverse_shuffle, align=4\n        .byte  15, 14, 13, 12\n        .byte  11, 10,  9,  8\n        .byte   7,  6,  5,  4\n        .byte   3,  2,  1,  0\nendconst\n\nconst partial_bytes_shuf_tab, align=4\n        .byte  255, 254, 253, 252\n        .byte  251, 250, 249, 248\n        .byte  247, 246, 245, 244\n        .byte  243, 242, 241, 240\n        .byte   0,  1,  2,  3\n        .byte   4,  5,  6,  7\n        .byte   8,  9, 10, 11\n        .byte  12, 13, 14, 15\nendconst\n\n// performs Vfold = pmull(Vfold, Vconst) xor pmull2(Vfold, Vconst) xor Vdata\n.macro FOLD_SINGLE Vfold, Vconst, Vdata, Vtemp\n        pmull           \\Vtemp\\().1q, \\Vconst\\().1d, \\Vfold\\().1d\n        pmull2          \\Vfold\\().1q, \\Vconst\\().2d, \\Vfold\\().2d\n        eor3            \\Vfold\\().16b, \\Vfold\\().16b, \\Vdata\\().16b, \\Vtemp\\().16b\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:3", "text": "endconst\n\nconst partial_bytes_shuf_tab, align=4\n        .byte  255, 254, 253, 252\n        .byte  251, 250, 249, 248\n        .byte  247, 246, 245, 244\n        .byte  243, 242, 241, 240\n        .byte   0,  1,  2,  3\n        .byte   4,  5,  6,  7\n        .byte   8,  9, 10, 11\n        .byte  12, 13, 14, 15\nendconst\n\n// performs Vfold = pmull(Vfold, Vconst) xor pmull2(Vfold, Vconst) xor Vdata\n.macro FOLD_SINGLE Vfold, Vconst, Vdata, Vtemp\n        pmull           \\Vtemp\\().1q, \\Vconst\\().1d, \\Vfold\\().1d\n        pmull2          \\Vfold\\().1q, \\Vconst\\().2d, \\Vfold\\().2d\n        eor3            \\Vfold\\().16b, \\Vfold\\().16b, \\Vdata\\().16b, \\Vtemp\\().16b\n.endm\n\n// assume Vfold is v16 and v0 is filled with 0\n// uses v17 as temp\n.macro FOLD_128_TO_64 le, Vconst\n.if ! \\le\n        fmov            d17, d16\n        pmull2          v16.1q, v16.2d, \\Vconst\\().2d\n        ext             v17.16b, v0.16b, v17.16b, #12\n        eor             v16.16b, v17.16b, v16.16b\n        ext             \\Vconst\\().16b, \\Vconst\\().16b, \\Vconst\\().16b, #8\n        pmull2          v17.1q, \\Vconst\\().2d, v16.2d\n        eor             v16.16b, v16.16b, v17.16b\n.else\n        ext             v17.16b, v16.16b, v0.16b, #8\n        pmull           v16.1q, v16.1d, \\Vconst\\().1d\n        eor             v16.16b, v16.16b, v17.16b\n        ext             v17.16b, v0.16b, v16.16b, #12\n        ext             \\Vconst\\().16b, \\Vconst\\().16b, \\Vconst\\().16b, #8\n        pmull           v17.1q, \\Vconst\\().1d, v17.1d\n        eor             v16.16b, v16.16b, v17.16b\n.endif\n.endm\n\n// assume Vfold is v16 and v0 is filled with 0\n// uses v17 as temp\n.macro FOLD_64_TO_32 le, Vconst\n.if ! \\le\n        pmull           v17.1q, v16.1d, \\Vconst\\().1d\n        pmull2          v17.1q, v17.2d, \\Vconst\\().2d\n        eor             v16.16b, v16.16b, v17.16b\n        fmov            w0, s16\n        rev             w0, w0\n.else\n        mov             v16.s[0], wzr\n        pmull           v17.1q, v16.1d, \\Vconst\\().1d\n        eor             v17.16b, v17.16b, v16.16b\n        ext             \\Vconst\\().16b, \\Vconst\\().16b, \\Vconst\\().16b, #8\n        pmull           v17.1q, v17.1d, \\Vconst\\().1d\n        eor             v16.16b, v16.16b, v17.16b\n        mov             w0, v16.s[2]\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:4", "text": ".endm\n\n// assume Vfold is v16 and v0 is filled with 0\n// uses v17 as temp\n.macro FOLD_64_TO_32 le, Vconst\n.if ! \\le\n        pmull           v17.1q, v16.1d, \\Vconst\\().1d\n        pmull2          v17.1q, v17.2d, \\Vconst\\().2d\n        eor             v16.16b, v16.16b, v17.16b\n        fmov            w0, s16\n        rev             w0, w0\n.else\n        mov             v16.s[0], wzr\n        pmull           v17.1q, v16.1d, \\Vconst\\().1d\n        eor             v17.16b, v17.16b, v16.16b\n        ext             \\Vconst\\().16b, \\Vconst\\().16b, \\Vconst\\().16b, #8\n        pmull           v17.1q, v17.1d, \\Vconst\\().1d\n        eor             v16.16b, v16.16b, v17.16b\n        mov             w0, v16.s[2]\n.endif\n.endm\n\n#define CTX_OFFSET 4\n\n// ff_crc[_le]_neon_pmull(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)\n// x0 - ctx; pre-computed fold constants, see crc_init_aarch64 for details on the structure.\n// x1 - crc initial value\n// x2 - buffer pointer\n// x3 - length of buffer\n//\n// Additional registers used:\n// x10 - buffer + length; points to end of buffer\n// x11-x15 used as temp registers as needed\n//\n// v0 - zero register to perform vector shift during reduction using EXT\n// v1 - crc input from x1\n// v2 - holds the reverse shuffle values 15, 14 ... 0 to reverse vector using TBL\n// v3 - holds the constant values used in PMULL/PMULL2 loaded via x0 ctx\n// v4-v7 - used as temp for PMULL/PMULL2 output\n// v16 - holds the primary fold register later reduced to 32 bits\n// Registers v16-v19 are used in parallel 4x fold loop\n// Registers v20-23 are used to load the 4 next data chunks\n// Registers v17-v21 are used as temp elsewhere\n.macro crc_fn_template le\n.if \\le\nfunction ff_crc_le_neon_pmull, export=1\n.else\nfunction ff_crc_neon_pmull, export=1\n        movrel          x9, reverse_shuffle\n        ldr             q2, [x9]\n.endif\n        add             x10, x2, x3\n        movi            v0.2d, #0\n        mov             v1.16b, v0.16b\n        mov             v1.s[0], w1\n        cmp             x3, #64\n        b.lo            8f // less than 64 bytes\n        ld1             {v16.16b-v19.16b}, [x2], #64\n        eor             v16.16b, v16.16b, v1.16b\n.if ! \\le", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:5", "text": "// Registers v16-v19 are used in parallel 4x fold loop\n// Registers v20-23 are used to load the 4 next data chunks\n// Registers v17-v21 are used as temp elsewhere\n.macro crc_fn_template le\n.if \\le\nfunction ff_crc_le_neon_pmull, export=1\n.else\nfunction ff_crc_neon_pmull, export=1\n        movrel          x9, reverse_shuffle\n        ldr             q2, [x9]\n.endif\n        add             x10, x2, x3\n        movi            v0.2d, #0\n        mov             v1.16b, v0.16b\n        mov             v1.s[0], w1\n        cmp             x3, #64\n        b.lo            8f // less than 64 bytes\n        ld1             {v16.16b-v19.16b}, [x2], #64\n        eor             v16.16b, v16.16b, v1.16b\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n        tbl             v17.16b, { v17.16b }, v2.16b\n        tbl             v18.16b, { v18.16b }, v2.16b\n        tbl             v19.16b, { v19.16b }, v2.16b\n.endif\n        sub             x11, x10, x2\n        cmp             x11, #64\n        b.lo            2f // reduce 4x to 1x\n        ldr             q3, [x0, #(CTX_OFFSET + 0)]\n\n1: // fold 4x loop\n        ld1             {v20.16b-v23.16b}, [x2], #64\n.if ! \\le\n        tbl             v20.16b, { v20.16b }, v2.16b\n        tbl             v21.16b, { v21.16b }, v2.16b\n        tbl             v22.16b, { v22.16b }, v2.16b\n        tbl             v23.16b, { v23.16b }, v2.16b\n.endif\n        pmull           v4.1q, v16.1d, v3.1d\n        pmull           v5.1q, v17.1d, v3.1d\n        pmull           v6.1q, v18.1d, v3.1d\n        pmull           v7.1q, v19.1d, v3.1d\n        pmull2          v16.1q, v16.2d, v3.2d\n        pmull2          v17.1q, v17.2d, v3.2d\n        pmull2          v18.1q, v18.2d, v3.2d\n        pmull2          v19.1q, v19.2d, v3.2d\n        eor3            v16.16b, v16.16b, v4.16b, v20.16b\n        eor3            v17.16b, v17.16b, v5.16b, v21.16b\n        eor3            v18.16b, v18.16b, v6.16b, v22.16b\n        eor3            v19.16b, v19.16b, v7.16b, v23.16b\n        sub             x11, x10, x2\n        cmp             x11, #64\n        b.hs            1b // fold 4x loop\n\n2: // reduce 4x to 1x\n        ldr             q3, [x0, #(CTX_OFFSET + 16)]\n        FOLD_SINGLE     v16, v3, v17, v4\n        FOLD_SINGLE     v16, v3, v18, v4\n        FOLD_SINGLE     v16, v3, v19, v4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:6", "text": "pmull           v6.1q, v18.1d, v3.1d\n        pmull           v7.1q, v19.1d, v3.1d\n        pmull2          v16.1q, v16.2d, v3.2d\n        pmull2          v17.1q, v17.2d, v3.2d\n        pmull2          v18.1q, v18.2d, v3.2d\n        pmull2          v19.1q, v19.2d, v3.2d\n        eor3            v16.16b, v16.16b, v4.16b, v20.16b\n        eor3            v17.16b, v17.16b, v5.16b, v21.16b\n        eor3            v18.16b, v18.16b, v6.16b, v22.16b\n        eor3            v19.16b, v19.16b, v7.16b, v23.16b\n        sub             x11, x10, x2\n        cmp             x11, #64\n        b.hs            1b // fold 4x loop\n\n2: // reduce 4x to 1x\n        ldr             q3, [x0, #(CTX_OFFSET + 16)]\n        FOLD_SINGLE     v16, v3, v17, v4\n        FOLD_SINGLE     v16, v3, v18, v4\n        FOLD_SINGLE     v16, v3, v19, v4\n\n3: // fold 1x pre\n        sub             x11, x10, x2\n        cmp             x11, #16\n        b.lo            5f // partial_block\n\n4: // fold 1x loop\n        ldr             q17, [x2], #16\n.if ! \\le\n        tbl             v17.16b, { v17.16b }, v2.16b\n.endif\n        FOLD_SINGLE     v16, v3, v17, v4\n        sub             x11, x10, x2\n        cmp             x11, #16\n        b.hs            4b // fold 1x loop\n\n5: // partial_block\n        cmp             x10, x2\n        b.eq            6f // reduce 128 to 64\n        ldr             q17, [x10, #-16]\n        movrel          x1, partial_bytes_shuf_tab\n        ldr             q18, [x1, x11]\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n.endif\n        mvn             v19.16b, v18.16b\n        tbl             v20.16b, { v16.16b }, v19.16b\n        cmge            v21.16b, v18.16b, #0\n        bsl             v21.16b, v17.16b, v20.16b\n        tbl             v16.16b, { v16.16b }, v18.16b\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n        tbl             v21.16b, { v21.16b }, v2.16b\n.endif\n        FOLD_SINGLE     v16, v3, v21, v4\n\n6: // reduce 128 to 64\n        ldr             q3, [x0, #(CTX_OFFSET + 32)]\n        FOLD_128_TO_64  \\le, v3\n\n7: // reduce 64 to 32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:7", "text": "ldr             q18, [x1, x11]\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n.endif\n        mvn             v19.16b, v18.16b\n        tbl             v20.16b, { v16.16b }, v19.16b\n        cmge            v21.16b, v18.16b, #0\n        bsl             v21.16b, v17.16b, v20.16b\n        tbl             v16.16b, { v16.16b }, v18.16b\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n        tbl             v21.16b, { v21.16b }, v2.16b\n.endif\n        FOLD_SINGLE     v16, v3, v21, v4\n\n6: // reduce 128 to 64\n        ldr             q3, [x0, #(CTX_OFFSET + 32)]\n        FOLD_128_TO_64  \\le, v3\n\n7: // reduce 64 to 32\n        ldr             q3, [x0, #(CTX_OFFSET + 48)]\n        FOLD_64_TO_32   \\le, v3\n        ret\n\n8: // less than 64 bytes\n        cmp             x3, #16\n        b.lo            9f // less than 16 bytes\n        ldr             q16, [x2], #16\n        eor             v16.16b, v16.16b, v1.16b\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n.endif\n        ldr             q3, [x0, #(CTX_OFFSET + 16)]\n        b               3b // fold 1x pre\n\n9: // less than 16 bytes\n        movrel          x15, partial_bytes_shuf_tab\n        add             x15, x15, x3\n        str             q0, [sp, #-16]!\n        add             x9, sp, x3\n        // memcpy 0 to 15 bytes from src to stack and load it to v16 with zero extension\n        tbz             x3, #3, 10f\n        ldr             x11, [x2]\n        ldr             x12, [x10, #-8]\n        str             x11, [sp]\n        str             x12, [x9, #-8]\n        b               12f\n10:\n        tbz             x3, #2, 11f\n        ldr             w11, [x2]\n        ldr             w12, [x10, #-4]\n        str             w11, [sp]\n        str             w12, [x9, #-4]\n        b               12f\n11:\n        cbz             x3, 12f\n        lsr             x11, x3, #1\n        ldrb            w12, [x2]\n        ldrb            w14, [x10, #-1]\n        ldrb            w13, [x2, x11]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:8", "text": "// memcpy 0 to 15 bytes from src to stack and load it to v16 with zero extension\n        tbz             x3, #3, 10f\n        ldr             x11, [x2]\n        ldr             x12, [x10, #-8]\n        str             x11, [sp]\n        str             x12, [x9, #-8]\n        b               12f\n10:\n        tbz             x3, #2, 11f\n        ldr             w11, [x2]\n        ldr             w12, [x10, #-4]\n        str             w11, [sp]\n        str             w12, [x9, #-4]\n        b               12f\n11:\n        cbz             x3, 12f\n        lsr             x11, x3, #1\n        ldrb            w12, [x2]\n        ldrb            w14, [x10, #-1]\n        ldrb            w13, [x2, x11]\n        strb            w12, [sp]\n        strb            w13, [sp, x11]\n        strb            w14, [x9, #-1]\n12:\n        ldr             q16, [sp], #16\n        eor             v16.16b, v16.16b, v1.16b\n        cmp             x3, #5\n        b.lo            13f // less than 5 bytes\n        ldr             q17, [x15]\n        tbl             v16.16b, { v16.16b }, v17.16b\n.if ! \\le\n        tbl             v16.16b, { v16.16b }, v2.16b\n.endif\n        b               6b // reduce 128 to 64\n\n13: // less than 5 bytes\n.if ! \\le\n        ldr             q17, [x15, #12]\n        tbl             v16.16b, { v16.16b }, v17.16b\n        rev64           v16.16b, v16.16b\n.else\n        ldr             q17, [x15, #8]\n        tbl             v16.16b, { v16.16b }, v17.16b\n.endif\n        b               7b // reduce 64 to 32\nendfunc\n.endm\n\ncrc_fn_template 0\ncrc_fn_template 1\n\nDISABLE_PMULL\nDISABLE_EOR3\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 281, "line_end": 334}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:9", "text": ".else\n        ldr             q17, [x15, #8]\n        tbl             v16.16b, { v16.16b }, v17.16b\n.endif\n        b               7b // reduce 64 to 32\nendfunc\n.endm\n\ncrc_fn_template 0\ncrc_fn_template 1\n\nDISABLE_PMULL\nDISABLE_EOR3\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/crc.S", "line_start": 321, "line_end": 334}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:1", "text": "/*\n * Copyright (c) 2025 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with FFmpeg; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n */\n\n#include \"asm.S\"\n\n#if HAVE_ARM_CRC\nENABLE_ARM_CRC\n\n.macro crc32_byte\n        ldrb            w5, [x2], #1\n        subs            x4, x4, #1\n        crc32b          w0, w0, w5\n.endm\n\nfunction ff_crc32_aarch64, export=1\n        and             x4, x2, #7          // non-aligned buffer addr\n        mov             w0, w1\n        cbz             x3, 8f\n\n        cbz             x4, 2f\n\n        mov             x5, #8\n        sub             x4, x5, x4\n        cmp             x4, x3\n        csel            x4, x4, x3, lo\n        sub             x3, x3, x4\n1:\n        // loop on non-aligned buffer\n        crc32_byte\n        b.ne            1b\n2:\n        // loop on aligned buffer\n        bic             x5, x3, #15\n        and             x4, x3, #15\n        cbz             x5, 4f\n3:\n        ldp             x6, x7, [x2], #16\n        subs            x5, x5, #16\n        crc32x          w0, w0, x6\n        crc32x          w0, w0, x7\n        b.ne            3b\n4:\n        cbz             x4, 8f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "66f7e9db714a4cb12431c9e20d20207dcceacc55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66f7e9db714a4cb12431c9e20d20207dcceacc55/libavutil/aarch64/crc.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/crc.S:2", "text": "cmp             x4, x3\n        csel            x4, x4, x3, lo\n        sub             x3, x3, x4\n1:\n        // loop on non-aligned buffer\n        crc32_byte\n        b.ne            1b\n2:\n        // loop on aligned buffer\n        bic             x5, x3, #15\n        and             x4, x3, #15\n        cbz             x5, 4f\n3:\n        ldp             x6, x7, [x2], #16\n        subs            x5, x5, #16\n        crc32x          w0, w0, x6\n        crc32x          w0, w0, x7\n        b.ne            3b\n4:\n        cbz             x4, 8f\n5:\n        crc32_byte\n        b.ne            5b\n8:\n        ret\nendfunc\n\nDISABLE_ARM_CRC\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/crc.S", "license": "LGPL-2.1", "commit": "66f7e9db714a4cb12431c9e20d20207dcceacc55", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/66f7e9db714a4cb12431c9e20d20207dcceacc55/libavutil/aarch64/crc.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/float_dsp_neon.S:1", "text": "/*\n * ARM NEON optimised Float DSP functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2014 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"asm.S\"\n\nfunction ff_vector_fmul_neon, export=1\n1:      subs            w3,  w3,  #16\n        ld1             {v0.4s, v1.4s}, [x1], #32\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        ld1             {v4.4s, v5.4s}, [x2], #32\n        ld1             {v6.4s, v7.4s}, [x2], #32\n        fmul            v16.4s, v0.4s,  v4.4s\n        fmul            v17.4s, v1.4s,  v5.4s\n        fmul            v18.4s, v2.4s,  v6.4s\n        fmul            v19.4s, v3.4s,  v7.4s\n        st1             {v16.4s, v17.4s}, [x0], #32\n        st1             {v18.4s, v19.4s}, [x0], #32\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vector_fmac_scalar_neon, export=1\n        mov             x3,  #-32\n1:      subs            w2,  w2,  #16\n        ld1             {v16.4s, v17.4s}, [x0], #32\n        ld1             {v18.4s, v19.4s}, [x0], x3\n        ld1             {v4.4s,  v5.4s},  [x1], #32\n        ld1             {v6.4s,  v7.4s},  [x1], #32\n        fmla            v16.4s, v4.4s,  v0.s[0]\n        fmla            v17.4s, v5.4s,  v0.s[0]\n        fmla            v18.4s, v6.4s,  v0.s[0]\n        fmla            v19.4s, v7.4s,  v0.s[0]\n        st1             {v16.4s, v17.4s}, [x0], #32\n        st1             {v18.4s, v19.4s}, [x0], #32\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vector_fmul_scalar_neon, export=1\n        mov             w4,  #15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/float_dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/float_dsp_neon.S:2", "text": "function ff_vector_fmac_scalar_neon, export=1\n        mov             x3,  #-32\n1:      subs            w2,  w2,  #16\n        ld1             {v16.4s, v17.4s}, [x0], #32\n        ld1             {v18.4s, v19.4s}, [x0], x3\n        ld1             {v4.4s,  v5.4s},  [x1], #32\n        ld1             {v6.4s,  v7.4s},  [x1], #32\n        fmla            v16.4s, v4.4s,  v0.s[0]\n        fmla            v17.4s, v5.4s,  v0.s[0]\n        fmla            v18.4s, v6.4s,  v0.s[0]\n        fmla            v19.4s, v7.4s,  v0.s[0]\n        st1             {v16.4s, v17.4s}, [x0], #32\n        st1             {v18.4s, v19.4s}, [x0], #32\n        b.ne            1b\n        ret\nendfunc\n\nfunction ff_vector_fmul_scalar_neon, export=1\n        mov             w4,  #15\n        bics            w3,  w2,  w4\n        dup             v16.4s, v0.s[0]\n        b.eq            3f\n        ld1             {v0.4s, v1.4s}, [x1], #32\n1:      subs            w3,  w3,  #16\n        fmul            v0.4s,  v0.4s,  v16.4s\n        ld1             {v2.4s, v3.4s}, [x1], #32\n        fmul            v1.4s,  v1.4s,  v16.4s\n        fmul            v2.4s,  v2.4s,  v16.4s\n        st1             {v0.4s, v1.4s}, [x0], #32\n        fmul            v3.4s,  v3.4s,  v16.4s\n        b.eq            2f\n        ld1             {v0.4s, v1.4s}, [x1], #32\n        st1             {v2.4s, v3.4s}, [x0], #32\n        b               1b\n2:      ands            w2,  w2,  #15\n        st1             {v2.4s, v3.4s}, [x0], #32\n        b.eq            4f\n3:      ld1             {v0.4s}, [x1], #16\n        fmul            v0.4s,  v0.4s,  v16.4s\n        st1             {v0.4s}, [x0], #16\n        subs            w2,  w2,  #4\n        b.gt            3b\n4:      ret\nendfunc\n\nfunction ff_vector_dmul_scalar_neon, export=1\n        dup             v16.2d, v0.d[0]\n        ld1             {v0.2d, v1.2d}, [x1], #32\n1:      subs            w2,  w2,  #8\n        fmul            v0.2d,  v0.2d,  v16.2d\n        ld1             {v2.2d, v3.2d}, [x1], #32\n        fmul            v1.2d,  v1.2d,  v16.2d\n        fmul            v2.2d,  v2.2d,  v16.2d\n        st1             {v0.2d, v1.2d}, [x0], #32\n        fmul            v3.2d,  v3.2d,  v16.2d\n        ld1             {v0.2d, v1.2d}, [x1], #32\n        st1             {v2.2d, v3.2d}, [x0], #32\n        b.gt            1b\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/float_dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/float_dsp_neon.S:3", "text": "st1             {v0.4s}, [x0], #16\n        subs            w2,  w2,  #4\n        b.gt            3b\n4:      ret\nendfunc\n\nfunction ff_vector_dmul_scalar_neon, export=1\n        dup             v16.2d, v0.d[0]\n        ld1             {v0.2d, v1.2d}, [x1], #32\n1:      subs            w2,  w2,  #8\n        fmul            v0.2d,  v0.2d,  v16.2d\n        ld1             {v2.2d, v3.2d}, [x1], #32\n        fmul            v1.2d,  v1.2d,  v16.2d\n        fmul            v2.2d,  v2.2d,  v16.2d\n        st1             {v0.2d, v1.2d}, [x0], #32\n        fmul            v3.2d,  v3.2d,  v16.2d\n        ld1             {v0.2d, v1.2d}, [x1], #32\n        st1             {v2.2d, v3.2d}, [x0], #32\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_vector_fmul_window_neon, export=1\n        sxtw            x4,  w4                 // len\n        sub             x2,  x2,  #8\n        sub             x5,  x4,  #2\n        add             x2,  x2,  x5, lsl #2    // src1 + 4 * (len - 4)\n        add             x6,  x3,  x5, lsl #3    // win  + 8 * (len - 2)\n        add             x5,  x0,  x5, lsl #3    // dst  + 8 * (len - 2)\n        mov             x7,  #-16\n        ld1             {v0.4s},  [x1], #16     // s0\n        ld1             {v2.4s},  [x3], #16     // wi\n        ld1             {v1.4s},  [x2], x7      // s1\n1:      ld1             {v3.4s},  [x6], x7      // wj\n        subs            x4,  x4,  #4\n        fmul            v17.4s, v0.4s,  v2.4s   // s0 * wi\n        rev64           v4.4s,  v1.4s\n        rev64           v5.4s,  v3.4s\n        rev64           v17.4s, v17.4s\n        ext             v4.16b,  v4.16b,  v4.16b,  #8 // s1_r\n        ext             v5.16b,  v5.16b,  v5.16b,  #8 // wj_r\n        ext             v17.16b, v17.16b, v17.16b, #8 // (s0 * wi)_rev\n        fmul            v16.4s, v0.4s,  v5.4s  // s0 * wj_r\n        fmla            v17.4s, v1.4s,  v3.4s  // (s0 * wi)_rev + s1 * wj\n        b.eq            2f\n        ld1             {v0.4s},  [x1], #16\n        fmls            v16.4s, v4.4s,  v2.4s  // s0 * wj_r - s1_r * wi\n        st1             {v17.4s}, [x5], x7\n        ld1             {v2.4s},  [x3], #16\n        ld1             {v1.4s},  [x2], x7\n        st1             {v16.4s}, [x0], #16\n        b               1b\n2:\n        fmls            v16.4s, v4.4s,  v2.4s  // s0 * wj_r - s1_r * wi\n        st1             {v17.4s}, [x5], x7\n        st1             {v16.4s}, [x0], #16\n        ret\nendfunc\n\nfunction ff_vector_fmul_add_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/float_dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/float_dsp_neon.S:4", "text": "ext             v5.16b,  v5.16b,  v5.16b,  #8 // wj_r\n        ext             v17.16b, v17.16b, v17.16b, #8 // (s0 * wi)_rev\n        fmul            v16.4s, v0.4s,  v5.4s  // s0 * wj_r\n        fmla            v17.4s, v1.4s,  v3.4s  // (s0 * wi)_rev + s1 * wj\n        b.eq            2f\n        ld1             {v0.4s},  [x1], #16\n        fmls            v16.4s, v4.4s,  v2.4s  // s0 * wj_r - s1_r * wi\n        st1             {v17.4s}, [x5], x7\n        ld1             {v2.4s},  [x3], #16\n        ld1             {v1.4s},  [x2], x7\n        st1             {v16.4s}, [x0], #16\n        b               1b\n2:\n        fmls            v16.4s, v4.4s,  v2.4s  // s0 * wj_r - s1_r * wi\n        st1             {v17.4s}, [x5], x7\n        st1             {v16.4s}, [x0], #16\n        ret\nendfunc\n\nfunction ff_vector_fmul_add_neon, export=1\n        ld1             {v0.4s, v1.4s},  [x1], #32\n        ld1             {v2.4s, v3.4s},  [x2], #32\n        ld1             {v4.4s, v5.4s},  [x3], #32\n1:      subs            w4,  w4,  #8\n        fmla            v4.4s,  v0.4s,  v2.4s\n        fmla            v5.4s,  v1.4s,  v3.4s\n        b.eq            2f\n        ld1             {v0.4s, v1.4s},  [x1], #32\n        ld1             {v2.4s, v3.4s},  [x2], #32\n        st1             {v4.4s, v5.4s},  [x0], #32\n        ld1             {v4.4s, v5.4s},  [x3], #32\n        b               1b\n2:      st1             {v4.4s, v5.4s},  [x0], #32\n        ret\nendfunc\n\nfunction ff_vector_fmul_reverse_neon, export=1\n        sxtw            x3,  w3\n        add             x2,  x2,  x3,  lsl #2\n        sub             x2,  x2,  #32\n        mov             x4, #-32\n        ld1             {v2.4s, v3.4s},  [x2], x4\n        ld1             {v0.4s, v1.4s},  [x1], #32\n1:      subs            x3,  x3,  #8\n        rev64           v3.4s,  v3.4s\n        rev64           v2.4s,  v2.4s\n        ext             v3.16b, v3.16b, v3.16b,  #8\n        ext             v2.16b, v2.16b, v2.16b,  #8\n        fmul            v16.4s, v0.4s,  v3.4s\n        fmul            v17.4s, v1.4s,  v2.4s\n        b.eq            2f\n        ld1             {v2.4s, v3.4s},  [x2], x4\n        ld1             {v0.4s, v1.4s},  [x1], #32\n        st1             {v16.4s, v17.4s},  [x0], #32\n        b               1b\n2:      st1             {v16.4s, v17.4s},  [x0], #32\n        ret\nendfunc\n\nfunction ff_butterflies_float_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/float_dsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/float_dsp_neon.S:5", "text": "mov             x4, #-32\n        ld1             {v2.4s, v3.4s},  [x2], x4\n        ld1             {v0.4s, v1.4s},  [x1], #32\n1:      subs            x3,  x3,  #8\n        rev64           v3.4s,  v3.4s\n        rev64           v2.4s,  v2.4s\n        ext             v3.16b, v3.16b, v3.16b,  #8\n        ext             v2.16b, v2.16b, v2.16b,  #8\n        fmul            v16.4s, v0.4s,  v3.4s\n        fmul            v17.4s, v1.4s,  v2.4s\n        b.eq            2f\n        ld1             {v2.4s, v3.4s},  [x2], x4\n        ld1             {v0.4s, v1.4s},  [x1], #32\n        st1             {v16.4s, v17.4s},  [x0], #32\n        b               1b\n2:      st1             {v16.4s, v17.4s},  [x0], #32\n        ret\nendfunc\n\nfunction ff_butterflies_float_neon, export=1\n1:      ld1             {v0.4s}, [x0]\n        ld1             {v1.4s}, [x1]\n        subs            w2,  w2,  #4\n        fsub            v2.4s,   v0.4s,  v1.4s\n        fadd            v3.4s,   v0.4s,  v1.4s\n        st1             {v2.4s}, [x1],   #16\n        st1             {v3.4s}, [x0],   #16\n        b.gt            1b\n        ret\nendfunc\n\nfunction ff_scalarproduct_float_neon, export=1\n        movi            v2.4s,  #0\n1:      ld1             {v0.4s}, [x0],   #16\n        ld1             {v1.4s}, [x1],   #16\n        subs            w2,      w2,     #4\n        fmla            v2.4s,   v0.4s,  v1.4s\n        b.gt            1b\n        faddp           v0.4s,   v2.4s,  v2.4s\n        faddp           s0,      v0.2s\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/float_dsp_neon.S", "line_start": 161, "line_end": 202}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/pixelutils_neon.S:1", "text": "/*\n * Copyright (c) 2022 Jonathan Swinney <jswinney@amazon.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunction ff_pixelutils_sad16_neon, export=1\n        // x0           uint8_t *pix1\n        // x1           ptrdiff_t stride1\n        // x2           uint8_t *pix2\n        // x3           ptrdiff_t stride2\n        movi            v16.8h, #0                  // clear result accumulator\n        movi            v17.8h, #0                  // clear result accumulator\n        mov             w4, 16\n1:\n        ld1             {v0.16b}, [x0], x1          // load pix1\n        ld1             {v4.16b}, [x2], x3          // load pix2\n        ld1             {v1.16b}, [x0], x1          // load pix1\n        ld1             {v5.16b}, [x2], x3          // load pix2\n        uabal           v16.8h, v0.8b, v4.8b        // absolute difference accumulate\n        uabal2          v17.8h, v0.16b, v4.16b\n        ld1             {v2.16b}, [x0], x1          // load pix1\n        ld1             {v6.16b}, [x2], x3          // load pix2\n        uabal           v16.8h, v1.8b, v5.8b        // absolute difference accumulate\n        uabal2          v17.8h, v1.16b, v5.16b\n        ld1             {v3.16b}, [x0], x1\n        ld1             {v7.16b}, [x2], x3\n        uabal           v16.8h, v2.8b, v6.8b\n        uabal2          v17.8h, v2.16b, v6.16b\n        subs            w4, w4, #4                  // h -= 4\n        uabal           v16.8h, v3.8b, v7.8b\n        uabal2          v17.8h, v3.16b, v7.16b\n\n        b.gt            1b                          // if h > 0, loop\n\n        add             v16.8h, v16.8h, v17.8h\n        uaddlv          s16, v16.8h                 // add up everything in v16 accumulator\n        fmov            w0, s16                     // copy result to general purpose register\n        ret\nendfunc\n\nfunction ff_pixelutils_sad8_neon, export=1\n        // x0           uint8_t *pix1\n        // x1           ptrdiff_t stride1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/pixelutils_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/pixelutils_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/pixelutils_neon.S:2", "text": "uabal2          v17.8h, v1.16b, v5.16b\n        ld1             {v3.16b}, [x0], x1\n        ld1             {v7.16b}, [x2], x3\n        uabal           v16.8h, v2.8b, v6.8b\n        uabal2          v17.8h, v2.16b, v6.16b\n        subs            w4, w4, #4                  // h -= 4\n        uabal           v16.8h, v3.8b, v7.8b\n        uabal2          v17.8h, v3.16b, v7.16b\n\n        b.gt            1b                          // if h > 0, loop\n\n        add             v16.8h, v16.8h, v17.8h\n        uaddlv          s16, v16.8h                 // add up everything in v16 accumulator\n        fmov            w0, s16                     // copy result to general purpose register\n        ret\nendfunc\n\nfunction ff_pixelutils_sad8_neon, export=1\n        // x0           uint8_t *pix1\n        // x1           ptrdiff_t stride1\n        // x2           uint8_t *pix2\n        // x3           ptrdiff_t stride2\n\n        movi            v30.8h, #0\n        mov             w4, 8\n\n// make 4 iterations at once\n1:\n        ld1             {v0.8b}, [x0], x1               // Load pix1 for first iteration\n        ld1             {v1.8b}, [x2], x3               // Load pix2 for first iteration\n        ld1             {v2.8b}, [x0], x1               // Load pix1 for second iteration\n        uabal           v30.8h, v0.8b, v1.8b            // Absolute difference, first iteration\n        ld1             {v3.8b}, [x2], x3               // Load pix2 for second iteration\n        ld1             {v4.8b}, [x0], x1               // Load pix1 for third iteration\n        uabal           v30.8h, v2.8b, v3.8b            // Absolute difference, second iteration\n        ld1             {v5.8b}, [x2], x3               // Load pix2 for third iteration\n        subs            w4, w4, #4                      // h -= 4\n        ld1             {v6.8b}, [x0], x1               // Load pix1 for fourth iteration\n        ld1             {v7.8b}, [x2], x3               // Load pix2 for fourth iteration\n        uabal           v30.8h, v4.8b, v5.8b            // Absolute difference, third iteration\n        uabal           v30.8h, v6.8b, v7.8b            // Absolute difference, fourth iteration\n        b.gt            1b\n\n        uaddlv          s20, v30.8h                     // Add up vector\n        fmov            w0, s20\n\n        ret\nendfunc\n\nfunction ff_pixelutils_sad32_neon, export=1\n        // x0           uint8_t *pix1\n        // x1           ptrdiff_t stride1\n        // x2           uint8_t *pix2\n        // x3           ptrdiff_t stride2\n        movi            v16.8h, #0                  // clear result accumulator\n        movi            v17.8h, #0                  // clear result accumulator\n        movi            v18.8h, #0                  // clear result accumulator\n        movi            v19.8h, #0                  // clear result accumulator\n        mov             w4, 32\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/pixelutils_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/pixelutils_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/pixelutils_neon.S:3", "text": "uabal           v30.8h, v6.8b, v7.8b            // Absolute difference, fourth iteration\n        b.gt            1b\n\n        uaddlv          s20, v30.8h                     // Add up vector\n        fmov            w0, s20\n\n        ret\nendfunc\n\nfunction ff_pixelutils_sad32_neon, export=1\n        // x0           uint8_t *pix1\n        // x1           ptrdiff_t stride1\n        // x2           uint8_t *pix2\n        // x3           ptrdiff_t stride2\n        movi            v16.8h, #0                  // clear result accumulator\n        movi            v17.8h, #0                  // clear result accumulator\n        movi            v18.8h, #0                  // clear result accumulator\n        movi            v19.8h, #0                  // clear result accumulator\n        mov             w4, 32\n1:\n        ld1             {v0.16b, v1.16b}, [x0], x1  // load pix1\n        ld1             {v4.16b, v5.16b}, [x2], x3  // load pix2\n        ld1             {v2.16b, v3.16b}, [x0], x1  // load pix1\n        ld1             {v6.16b, v7.16b}, [x2], x3  // load pix2\n        uabal           v16.8h, v0.8b, v4.8b        // absolute difference accumulate\n        uabal2          v17.8h, v0.16b, v4.16b\n        uabal           v18.8h, v1.8b, v5.8b\n        uabal2          v19.8h, v1.16b, v5.16b\n        ld1             {v0.16b, v1.16b}, [x0], x1  // load pix1\n        ld1             {v4.16b, v5.16b}, [x2], x3  // load pix2\n        uabal           v16.8h, v2.8b, v6.8b        // absolute difference accumulate\n        uabal2          v17.8h, v2.16b, v6.16b\n        uabal           v18.8h, v3.8b, v7.8b\n        uabal2          v19.8h, v3.16b, v7.16b\n        ld1             {v2.16b, v3.16b}, [x0], x1\n        ld1             {v6.16b, v7.16b}, [x2], x3\n        uabal           v16.8h, v0.8b, v4.8b\n        uabal2          v17.8h, v0.16b, v4.16b\n        uabal           v18.8h, v1.8b, v5.8b\n        uabal2          v19.8h, v1.16b, v5.16b\n        subs            w4, w4, #4                  // h -= 4\n        uabal           v16.8h, v2.8b, v6.8b\n        uabal2          v17.8h, v2.16b, v6.16b\n        uabal           v18.8h, v3.8b, v7.8b\n        uabal2          v19.8h, v3.16b, v7.16b\n\n        b.gt            1b                          // if h > 0, loop\n\n        add             v16.8h, v16.8h, v17.8h\n        add             v18.8h, v18.8h, v19.8h\n        add             v16.8h, v16.8h, v18.8h\n        uaddlv          s16, v16.8h                 // add up everything in v16 accumulator\n        fmov            w0, s16                     // copy result to general purpose register\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/pixelutils_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/pixelutils_neon.S", "line_start": 81, "line_end": 135}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/pixelutils_neon.S:4", "text": "subs            w4, w4, #4                  // h -= 4\n        uabal           v16.8h, v2.8b, v6.8b\n        uabal2          v17.8h, v2.16b, v6.16b\n        uabal           v18.8h, v3.8b, v7.8b\n        uabal2          v19.8h, v3.16b, v7.16b\n\n        b.gt            1b                          // if h > 0, loop\n\n        add             v16.8h, v16.8h, v17.8h\n        add             v18.8h, v18.8h, v19.8h\n        add             v16.8h, v16.8h, v18.8h\n        uaddlv          s16, v16.8h                 // add up everything in v16 accumulator\n        fmov            w0, s16                     // copy result to general purpose register\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/pixelutils_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/pixelutils_neon.S", "line_start": 121, "line_end": 135}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/pixelutils_neon.S:2", "text": "uabal2          v17.8h, v1.16b, v5.16b\n        ld1             {v3.16b}, [x0], x1\n        ld1             {v7.16b}, [x2], x3\n        uabal           v16.8h, v2.8b, v6.8b\n        uabal2          v17.8h, v2.16b, v6.16b\n        subs            w4, w4, #4                  // h -= 4\n        uabal           v16.8h, v3.8b, v7.8b\n        uabal2          v17.8h, v3.16b, v7.16b\n\n        b.gt            1b                          // if h > 0, loop\n\n        add             v16.8h, v16.8h, v17.8h\n        uaddlv          s16, v16.8h                 // add up everything in v16 accumulator\n        fmov            w0, s16                     // copy result to general purpose register\n        ret\nendfunc\n\nfunction ff_pixelutils_sad8_neon, export=1\n        // x0           uint8_t *pix1\n        // x1           ptrdiff_t stride1\n        // x2           uint8_t *pix2\n        // x3           ptrdiff_t stride2\n\n        movi            v30.8h, #0\n        mov             w4, 8\n\n// make 4 iterations at once\n1:\n        ld1             {v0.8b}, [x0], x1               // Load pix1 for first iteration\n        ld1             {v1.8b}, [x2], x3               // Load pix2 for first iteration\n        ld1             {v2.8b}, [x0], x1               // Load pix1 for second iteration\n        uabal           v30.8h, v0.8b, v1.8b            // Absolute difference, first iteration\n        ld1             {v3.8b}, [x2], x3               // Load pix2 for second iteration\n        ld1             {v4.8b}, [x0], x1               // Load pix1 for third iteration\n        uabal           v30.8h, v2.8b, v3.8b            // Absolute difference, second iteration\n        ld1             {v5.8b}, [x2], x3               // Load pix2 for third iteration\n        subs            w4, w4, #4                      // h -= 4\n        ld1             {v6.8b}, [x0], x1               // Load pix1 for fourth iteration\n        ld1             {v7.8b}, [x2], x3               // Load pix2 for fourth iteration\n        uabal           v30.8h, v4.8b, v5.8b            // Absolute difference, third iteration\n        uabal           v30.8h, v6.8b, v7.8b            // Absolute difference, fourth iteration\n        b.gt            1b\n\n        uaddlv          s20, v30.8h                     // Add up vector\n        fmov            w0, s20\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/pixelutils_neon.S", "license": "LGPL-2.1", "commit": "022c42649c04a6b67285370d5ed0cb16336a6b6f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/022c42649c04a6b67285370d5ed0cb16336a6b6f/libavutil/aarch64/pixelutils_neon.S", "line_start": 41, "line_end": 88}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:2", "text": "*/\n\n#define M_SQRT1_2 0.707106781186547524401\n#define COS16_1   0.92387950420379638671875\n#define COS16_3   0.3826834261417388916015625\n\n/* We only ever load this once at the start, and then live with losing an\n * entire register as we need to lug this all the time everywhere.\n * Clearly should be integrated into an fsadd and fmlsa, but \"muh RISC!\". */\nconst subadd, align=4\n        .float -1.0,  1.0, -1.0,  1.0\nendconst\n\n.macro LOAD_SUBADD\n        movrel          x5, subadd\n        ld1             { v31.4s }, [x5]\n.endm\n\n.macro SETUP_LUT no_lut=0\n.if \\no_lut == 0\n        ldr             x4, [x0, #8]\n.endif\n.endm\n\n.macro LOAD_INPUT dst1, dst2, dst3, dst4, src, no_lut=0, discont=0\n.if \\no_lut == 1\n.if \\discont == 1\n        ldp             q\\dst1\\(), q\\dst2\\(), [\\src\\()]\n        ldp             q\\dst3\\(), q\\dst4\\(), [\\src\\(), #32]\n        add             \\src\\(), \\src\\(), #64\n.else\n        ld1             { v\\dst1\\().4s, v\\dst2\\().4s, v\\dst3\\().4s, v\\dst4\\().4s }, [\\src], #64\n.endif\n.else\n        ldp             w10, w11, [x4, #0 ]\n        ldp             w12, w13, [x4, #8 ]\n        ldp             w14, w15, [x4, #16]\n        ldp             w16, w17, [x4, #24]\n\n        add             x4, x4, #32\n\n        ldr             d\\dst1, [\\src, x10, lsl #3]\n        add             x11, \\src, x11, lsl #3\n        ldr             d\\dst2, [\\src, x12, lsl #3]\n        add             x13, \\src, x13, lsl #3\n        ldr             d\\dst3, [\\src, x14, lsl #3]\n        add             x15, \\src, x15, lsl #3\n        ldr             d\\dst4, [\\src, x16, lsl #3]\n        add             x17, \\src, x17, lsl #3\n\n        ld1             { v\\dst1\\().d }[1], [x11]\n        ld1             { v\\dst2\\().d }[1], [x13]\n        ld1             { v\\dst3\\().d }[1], [x15]\n        ld1             { v\\dst4\\().d }[1], [x17]\n.endif\n.endm\n\n.macro FFT4 e0, o0, standalone\n        fadd            v16.4s, \\e0\\().4s, \\o0\\().4s         // r1..4\n        fsub            \\e0\\().4s, \\e0\\().4s, \\o0\\().4s      // t1..4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:3", "text": "ldr             d\\dst1, [\\src, x10, lsl #3]\n        add             x11, \\src, x11, lsl #3\n        ldr             d\\dst2, [\\src, x12, lsl #3]\n        add             x13, \\src, x13, lsl #3\n        ldr             d\\dst3, [\\src, x14, lsl #3]\n        add             x15, \\src, x15, lsl #3\n        ldr             d\\dst4, [\\src, x16, lsl #3]\n        add             x17, \\src, x17, lsl #3\n\n        ld1             { v\\dst1\\().d }[1], [x11]\n        ld1             { v\\dst2\\().d }[1], [x13]\n        ld1             { v\\dst3\\().d }[1], [x15]\n        ld1             { v\\dst4\\().d }[1], [x17]\n.endif\n.endm\n\n.macro FFT4 e0, o0, standalone\n        fadd            v16.4s, \\e0\\().4s, \\o0\\().4s         // r1..4\n        fsub            \\e0\\().4s, \\e0\\().4s, \\o0\\().4s      // t1..4\n\n        rev64           v18.4s, \\e0\\().4s\n\n        zip2            \\o0\\().2d, v16.2d, \\e0\\().2d\n        zip1            v17.2d, v16.2d, \\e0\\().2d\n\n        mov             \\o0\\().d[1], v18.d[1]\n\n        fadd            \\e0\\().4s, v17.4s, \\o0\\().4s         // a1,2 b1,4\n        fsub            v16.4s,    v17.4s, \\o0\\().4s         // a3,4 b3,2\n\n        mov             \\o0\\().16b, v16.16b                  // Swap once again...\n        mov             \\o0\\().s[3], \\e0\\().s[3]\n        mov             \\e0\\().s[3], v16.s[3]\n\n.if \\standalone == 0\n        uzp2            \\o0\\().2d, \\e0\\().2d, \\o0\\().2d\n        uzp1            \\e0\\().2d, \\e0\\().2d, v16.2d\n.endif\n.endm\n\n// Identical to FFT4, but does 2 transforms in parallel, with no deinterleaving\n.macro FFT4_X2 e0, o0, e1, o1, \\\n               t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, t6=v22\n\n        fadd            \\t0\\().4s, \\e0\\().4s, \\o0\\().4s                     // r1234\n        fadd            \\t2\\().4s, \\e1\\().4s, \\o1\\().4s                     // r1234\n        fsub            \\e0\\().4s, \\e0\\().4s, \\o0\\().4s                     // t1234\n        fsub            \\e1\\().4s, \\e1\\().4s, \\o1\\().4s                     // t1234\n\n        rev64           \\t4\\().4s, \\e0\\().4s\n        rev64           \\t5\\().4s, \\e1\\().4s\n\n        zip2            \\o0\\().2d, \\t0\\().2d, \\t4\\().2d                     // t3,4 r3,4\n        zip2            \\o1\\().2d, \\t2\\().2d, \\t5\\().2d                     // t3,4 r3,4\n\n        fneg            \\t3\\().4s, \\t4\\().4s\n        fneg            \\t4\\().4s, \\t5\\().4s\n\n        mov             \\o0\\().s[3], \\t3\\().s[3]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:4", "text": "// Identical to FFT4, but does 2 transforms in parallel, with no deinterleaving\n.macro FFT4_X2 e0, o0, e1, o1, \\\n               t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, t6=v22\n\n        fadd            \\t0\\().4s, \\e0\\().4s, \\o0\\().4s                     // r1234\n        fadd            \\t2\\().4s, \\e1\\().4s, \\o1\\().4s                     // r1234\n        fsub            \\e0\\().4s, \\e0\\().4s, \\o0\\().4s                     // t1234\n        fsub            \\e1\\().4s, \\e1\\().4s, \\o1\\().4s                     // t1234\n\n        rev64           \\t4\\().4s, \\e0\\().4s\n        rev64           \\t5\\().4s, \\e1\\().4s\n\n        zip2            \\o0\\().2d, \\t0\\().2d, \\t4\\().2d                     // t3,4 r3,4\n        zip2            \\o1\\().2d, \\t2\\().2d, \\t5\\().2d                     // t3,4 r3,4\n\n        fneg            \\t3\\().4s, \\t4\\().4s\n        fneg            \\t4\\().4s, \\t5\\().4s\n\n        mov             \\o0\\().s[3], \\t3\\().s[3]\n        mov             \\o1\\().s[3], \\t4\\().s[3]\n\n        zip1            \\t1\\().2d, \\t0\\().2d, \\e0\\().2d                     // t1,2 r1,2\n        zip1            \\t3\\().2d, \\t2\\().2d, \\e1\\().2d                     // t1,2 r1,2\n\n        fsub            \\t4\\().4s, \\t1\\().4s, \\o0\\().4s                     // a34 b32\n        fadd            \\t5\\().4s, \\t1\\().4s, \\o0\\().4s                     // a12 b14\n        fsub            \\t2\\().4s, \\t3\\().4s, \\o1\\().4s                     // a34 b32\n        fadd            \\t3\\().4s, \\t3\\().4s, \\o1\\().4s                     // a12 b14\n\n        zip1            \\e0\\().2d, \\t5\\().2d, \\t4\\().2d                     // a1234\n        zip2            \\o0\\().2d, \\t5\\().2d, \\t4\\().2d                     // b1432\n        zip1            \\e1\\().2d, \\t3\\().2d, \\t2\\().2d                     // a1234\n        zip2            \\o1\\().2d, \\t3\\().2d, \\t2\\().2d                     // b1432\n.endm\n\nconst tab_8pt, align=4\n        .float M_SQRT1_2, -M_SQRT1_2, -M_SQRT1_2,  M_SQRT1_2\nendconst\n\n.macro FFT8 e0, e1, o0, o1, \\\n            t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, t6=v22\n\n        movrel          x5, tab_8pt\n\n        fsub            \\t1\\().4s, \\e1\\().4s, \\o1\\().4s             // j1234\n        fadd            \\o1\\().4s, \\e1\\().4s, \\o1\\().4s             // k1234\n        fsub            \\t0\\().4s, \\e0\\().4s, \\o0\\().4s             // r1234\n        fadd            \\o0\\().4s, \\e0\\().4s, \\o0\\().4s             // q1234\n\n        ld1             { \\t5\\().4s }, [x5]\n\n        ext             \\t4\\().16b, \\o1\\().16b, \\o1\\().16b, #12\n        rev64           \\t4\\().4s,  \\t4\\().4s\n\n        ext             \\t2\\().16b, \\o0\\().16b, \\t4\\().16b, #8      // o0[0,1], o1[3,2]\n        mov             \\o0\\().d[1], \\t4\\().d[1]                    // o0[3, 4]; o1[1, 4]\n\n        fsub            \\e1\\().4s, \\o0\\().4s, \\t2\\().4s             // s34, g43\n        fadd            \\t2\\().4s, \\o0\\().4s, \\t2\\().4s             // s12, g12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:5", "text": ".macro FFT8 e0, e1, o0, o1, \\\n            t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, t6=v22\n\n        movrel          x5, tab_8pt\n\n        fsub            \\t1\\().4s, \\e1\\().4s, \\o1\\().4s             // j1234\n        fadd            \\o1\\().4s, \\e1\\().4s, \\o1\\().4s             // k1234\n        fsub            \\t0\\().4s, \\e0\\().4s, \\o0\\().4s             // r1234\n        fadd            \\o0\\().4s, \\e0\\().4s, \\o0\\().4s             // q1234\n\n        ld1             { \\t5\\().4s }, [x5]\n\n        ext             \\t4\\().16b, \\o1\\().16b, \\o1\\().16b, #12\n        rev64           \\t4\\().4s,  \\t4\\().4s\n\n        ext             \\t2\\().16b, \\o0\\().16b, \\t4\\().16b, #8      // o0[0,1], o1[3,2]\n        mov             \\o0\\().d[1], \\t4\\().d[1]                    // o0[3, 4]; o1[1, 4]\n\n        fsub            \\e1\\().4s, \\o0\\().4s, \\t2\\().4s             // s34, g43\n        fadd            \\t2\\().4s, \\o0\\().4s, \\t2\\().4s             // s12, g12\n\n        rev64           \\t6\\().4s, v31.4s                           // 1, -1, 1, -1\n        dup             \\o0\\().2d, \\t0\\().d[0]                      // r1212\n        dup             \\o1\\().2d, \\t0\\().d[1]                      // r3434\n\n        rev64           \\t4\\().4s, \\e1\\().4s                        // xxg34\n        rev64           \\o1\\().4s, \\o1\\().4s                        // r4343\n\n        ext             \\t6\\().16b, v31.16b, \\t6\\().16b, #8         // -1, 1, 1, -1\n        zip1            \\t3\\().2d, \\t2\\().2d, \\e1\\().2d             // s1234\n        zip2            \\t2\\().2d, \\t2\\().2d, \\t4\\().2d             // g1234\n\n        fadd            \\e0\\().4s, \\t3\\().4s, \\t2\\().4s             // out_e1\n        fsub            \\e1\\().4s, \\t3\\().4s, \\t2\\().4s             // out_e2\n\n        fmul            \\t1\\().4s, \\t1\\().4s, \\t5\\().4s             // j * +--+M_SQRT1_2\n        fmls            \\o0\\().4s, \\o1\\().4s, \\t6\\().4s             // z1234\n\n        rev64           \\t4\\().4s, \\t1\\().4s                        // j2143\n        fmla            \\t1\\().4s, \\t4\\().4s, v31.4s                // l2143\n\n        rev64           \\t4\\().4s, \\t1\\().4s                        // l1234\n        ext             \\t4\\().16b, \\t4\\().16b, \\t4\\().16b, #8      // l3412\n\n        fmla            \\t4\\().4s, \\t1\\().4s, v31.4s                // t1234\n\n        fadd            \\o1\\().4s, \\o0\\().4s, \\t4\\().4s             // out_o2\n        fsub            \\o0\\().4s, \\o0\\().4s, \\t4\\().4s             // out_o1\n.endm\n\n// Identical as FFT8, but does 2 transforms in parallel\n.macro FFT8_X2 e0, e1, o0, o1, e2, e3, o2, o3\n\n        movrel          x5, tab_8pt\n\n        fadd            v19.4s, \\e3\\().4s, \\o3\\().4s             // k1234\n        fadd            v17.4s, \\e1\\().4s, \\o1\\().4s             // k1234\n        fadd            v18.4s, \\e2\\().4s, \\o2\\().4s             // q1234\n        fadd            v16.4s, \\e0\\().4s, \\o0\\().4s             // q1234", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:6", "text": "rev64           \\t4\\().4s, \\t1\\().4s                        // l1234\n        ext             \\t4\\().16b, \\t4\\().16b, \\t4\\().16b, #8      // l3412\n\n        fmla            \\t4\\().4s, \\t1\\().4s, v31.4s                // t1234\n\n        fadd            \\o1\\().4s, \\o0\\().4s, \\t4\\().4s             // out_o2\n        fsub            \\o0\\().4s, \\o0\\().4s, \\t4\\().4s             // out_o1\n.endm\n\n// Identical as FFT8, but does 2 transforms in parallel\n.macro FFT8_X2 e0, e1, o0, o1, e2, e3, o2, o3\n\n        movrel          x5, tab_8pt\n\n        fadd            v19.4s, \\e3\\().4s, \\o3\\().4s             // k1234\n        fadd            v17.4s, \\e1\\().4s, \\o1\\().4s             // k1234\n        fadd            v18.4s, \\e2\\().4s, \\o2\\().4s             // q1234\n        fadd            v16.4s, \\e0\\().4s, \\o0\\().4s             // q1234\n\n        ld1             { v23.4s }, [x5]\n\n        ext             v22.16b, v19.16b, v19.16b, #12\n        ext             v21.16b, v17.16b, v17.16b, #12\n\n        rev64           v22.4s,  v22.4s\n        rev64           v21.4s,  v21.4s\n\n        ext             v19.16b, v18.16b, v22.16b, #8\n        ext             v17.16b, v16.16b, v21.16b, #8\n\n        mov             v18.d[1], v22.d[1]\n        mov             v21.d[0], v16.d[0]\n\n        fadd            v22.4s, v18.4s, v19.4s                   // s12, g12\n        fsub            v19.4s, v18.4s, v19.4s                   // s34, g43\n        fsub            v18.4s, v21.4s, v17.4s                   // s34, g43\n        fadd            v16.4s, v21.4s, v17.4s                   // s12, g12\n\n        fsub            \\e0\\().4s, \\e0\\().4s, \\o0\\().4s          // r1234\n        fsub            v20.4s, \\e1\\().4s, \\o1\\().4s             // j1234\n        fsub            \\e2\\().4s, \\e2\\().4s, \\o2\\().4s          // r1234\n        fsub            v21.4s, \\e3\\().4s, \\o3\\().4s             // j1234\n\n        rev64           v24.4s, v31.4s                           // 1, -1, 1, -1\n        zip1            v17.2d, v16.2d, v18.2d                   // s1234\n        zip1            \\e1\\().2d, v22.2d, v19.2d                // s1234\n\n        rev64           v18.4s, v18.4s                           // xxg34\n        rev64           v19.4s, v19.4s                           // xxg34\n\n        zip2            v16.2d, v16.2d, v18.2d                   // g1234\n        zip2            \\e3\\().2d, v22.2d, v19.2d                // g1234\n\n        dup             \\o0\\().2d, \\e0\\().d[0]                   // r1212\n        dup             \\o1\\().2d, \\e0\\().d[1]                   // r3434\n        dup             \\o2\\().2d, \\e2\\().d[0]                   // r1212\n        dup             \\o3\\().2d, \\e2\\().d[1]                   // r3434\n\n        fadd            \\e2\\().4s, \\e1\\().4s, \\e3\\().4s          // out_e1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:7", "text": "fsub            v20.4s, \\e1\\().4s, \\o1\\().4s             // j1234\n        fsub            \\e2\\().4s, \\e2\\().4s, \\o2\\().4s          // r1234\n        fsub            v21.4s, \\e3\\().4s, \\o3\\().4s             // j1234\n\n        rev64           v24.4s, v31.4s                           // 1, -1, 1, -1\n        zip1            v17.2d, v16.2d, v18.2d                   // s1234\n        zip1            \\e1\\().2d, v22.2d, v19.2d                // s1234\n\n        rev64           v18.4s, v18.4s                           // xxg34\n        rev64           v19.4s, v19.4s                           // xxg34\n\n        zip2            v16.2d, v16.2d, v18.2d                   // g1234\n        zip2            \\e3\\().2d, v22.2d, v19.2d                // g1234\n\n        dup             \\o0\\().2d, \\e0\\().d[0]                   // r1212\n        dup             \\o1\\().2d, \\e0\\().d[1]                   // r3434\n        dup             \\o2\\().2d, \\e2\\().d[0]                   // r1212\n        dup             \\o3\\().2d, \\e2\\().d[1]                   // r3434\n\n        fadd            \\e2\\().4s, \\e1\\().4s, \\e3\\().4s          // out_e1\n        fsub            \\e3\\().4s, \\e1\\().4s, \\e3\\().4s          // out_e2\n        fadd            \\e0\\().4s, v17.4s, v16.4s                // out_e1\n        fsub            \\e1\\().4s, v17.4s, v16.4s                // out_e2\n\n        ext             v24.16b, v31.16b, v24.16b, #8            // -1, 1, 1, -1\n        rev64           \\o1\\().4s, \\o1\\().4s                     // r4343\n        rev64           \\o3\\().4s, \\o3\\().4s                     // r4343\n\n        fmul            v19.4s, v20.4s, v23.4s                   // j * +--+M_SQRT1_2\n        fmul            v21.4s, v21.4s, v23.4s                   // j * +--+M_SQRT1_2\n\n        rev64           v20.4s, v19.4s                           // j2143\n        rev64           v18.4s, v21.4s                           // j2143\n\n        fmls            \\o0\\().4s, \\o1\\().4s, v24.4s             // z1234\n        fmls            \\o2\\().4s, \\o3\\().4s, v24.4s             // z1234\n\n        fmla            v19.4s, v20.4s, v31.4s                   // l2143\n        fmla            v21.4s, v18.4s, v31.4s                   // l2143\n\n        rev64           v20.4s, v19.4s                           // l1234\n        rev64           v18.4s, v21.4s                           // l1234\n        ext             v20.16b, v20.16b, v20.16b, #8            // l3412\n        ext             v18.16b, v18.16b, v18.16b, #8            // l3412\n\n        fmla            v20.4s, v19.4s, v31.4s                   // t1234\n        fmla            v18.4s, v21.4s, v31.4s                   // t1234\n\n        fadd            \\o1\\().4s, \\o0\\().4s, v20.4s             // out_o2\n        fadd            \\o3\\().4s, \\o2\\().4s, v18.4s             // out_o2\n        fsub            \\o0\\().4s, \\o0\\().4s, v20.4s             // out_o1\n        fsub            \\o2\\().4s, \\o2\\().4s, v18.4s             // out_o1\n.endm\n\nconst tab_16pt, align=4\n        .float   -COS16_1,    COS16_1,   -COS16_3,    COS16_3    // Could be +-+- too\n        .float    COS16_3,    COS16_3,    COS16_1,    COS16_1\n        .float        1.0,        1.0,  M_SQRT1_2,  M_SQRT1_2\nendconst", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:8", "text": "rev64           v20.4s, v19.4s                           // l1234\n        rev64           v18.4s, v21.4s                           // l1234\n        ext             v20.16b, v20.16b, v20.16b, #8            // l3412\n        ext             v18.16b, v18.16b, v18.16b, #8            // l3412\n\n        fmla            v20.4s, v19.4s, v31.4s                   // t1234\n        fmla            v18.4s, v21.4s, v31.4s                   // t1234\n\n        fadd            \\o1\\().4s, \\o0\\().4s, v20.4s             // out_o2\n        fadd            \\o3\\().4s, \\o2\\().4s, v18.4s             // out_o2\n        fsub            \\o0\\().4s, \\o0\\().4s, v20.4s             // out_o1\n        fsub            \\o2\\().4s, \\o2\\().4s, v18.4s             // out_o1\n.endm\n\nconst tab_16pt, align=4\n        .float   -COS16_1,    COS16_1,   -COS16_3,    COS16_3    // Could be +-+- too\n        .float    COS16_3,    COS16_3,    COS16_1,    COS16_1\n        .float        1.0,        1.0,  M_SQRT1_2,  M_SQRT1_2\nendconst\n\n// 16-point FFT\n// t3, t4, t5, t6 must be sequential\n.macro FFT16 e0, e1, e2, e3, o0, o1, o2, o3, \\\n             t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, t6=v22\n\n        FFT8            \\e0, \\e1, \\e2, \\e3, \\t0, \\t1, \\t2, \\t3, \\t4, \\t5, \\t6\n        FFT4_X2         \\o0, \\o1, \\o2, \\o3, \\t0, \\t1, \\t2, \\t3, \\t4, \\t5, \\t6\n\n        movrel          x5, tab_16pt\n\n        rev64           \\t0\\().4s, \\o0\\().4s                     // z[ 8, 9].imre\n        rev64           \\t1\\().4s, \\o2\\().4s                     // z[10,11].imre\n\n        ins             \\t0\\().d[0], xzr\n        ins             \\t1\\().d[0], xzr\n\n        ld1             { \\t4\\().4s, \\t5\\().4s, \\t6\\().4s }, [x5]\n        // TODO: We could derive \\t4\\() or \\t5\\() from either, but it seems cheaper to load\n\n        fmla            \\o2\\().4s, \\t1\\().4s, v31.4s             // s[4567]\n        fmls            \\o0\\().4s, \\t0\\().4s, v31.4s             // s[0123]\n\n        fmul            \\t2\\().4s, \\o1\\().4s, \\t4\\().4s\n        fmul            \\t3\\().4s, \\o3\\().4s, \\t4\\().4s\n\n        rev64           \\o3\\().4s, \\o3\\().4s\n        rev64           \\o1\\().4s, \\o1\\().4s\n\n        fmla            \\t3\\().4s, \\o3\\().4s, \\t5\\().4s          // s[12, 13, 14, 15]\n        fmls            \\t2\\().4s, \\o1\\().4s, \\t5\\().4s          // s[ 8,  9, 10, 11]\n\n        fmul            \\t1\\().4s, \\o2\\().4s, \\t6\\().4s          // s[4567] * mult\n        fmul            \\t0\\().4s, \\o0\\().4s, \\t6\\().4s          // s[0123] * mult\n\n        mov             \\o1\\().16b, \\t3\\().16b\n        mov             \\o2\\().16b, \\t1\\().16b\n\n        fsub            \\t3\\().4s, \\t3\\().4s, \\t2\\().4s          // y34, u34\n        fsub            \\t1\\().4s, \\t1\\().4s, \\t0\\().4s          // w34, x34", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:9", "text": "fmls            \\o0\\().4s, \\t0\\().4s, v31.4s             // s[0123]\n\n        fmul            \\t2\\().4s, \\o1\\().4s, \\t4\\().4s\n        fmul            \\t3\\().4s, \\o3\\().4s, \\t4\\().4s\n\n        rev64           \\o3\\().4s, \\o3\\().4s\n        rev64           \\o1\\().4s, \\o1\\().4s\n\n        fmla            \\t3\\().4s, \\o3\\().4s, \\t5\\().4s          // s[12, 13, 14, 15]\n        fmls            \\t2\\().4s, \\o1\\().4s, \\t5\\().4s          // s[ 8,  9, 10, 11]\n\n        fmul            \\t1\\().4s, \\o2\\().4s, \\t6\\().4s          // s[4567] * mult\n        fmul            \\t0\\().4s, \\o0\\().4s, \\t6\\().4s          // s[0123] * mult\n\n        mov             \\o1\\().16b, \\t3\\().16b\n        mov             \\o2\\().16b, \\t1\\().16b\n\n        fsub            \\t3\\().4s, \\t3\\().4s, \\t2\\().4s          // y34, u34\n        fsub            \\t1\\().4s, \\t1\\().4s, \\t0\\().4s          // w34, x34\n\n        fadd            \\t2\\().4s, \\t2\\().4s, \\o1\\().4s          // y56, u56\n        rev64           \\t3\\().4s, \\t3\\().4s\n        fadd            \\t0\\().4s, \\t0\\().4s, \\o2\\().4s          // w56, x56\n        rev64           \\t1\\().4s, \\t1\\().4s\n\n        fmul            \\t2\\().4s, \\t2\\().4s, v31.4s\n        fmul            \\t1\\().4s, \\t1\\().4s, v31.4s\n\n        fadd            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n        fsub            \\o2\\().4s, \\e3\\().4s, \\t3\\().4s\n        fsub            \\o1\\().4s, \\e2\\().4s, \\t2\\().4s\n        fadd            \\o0\\().4s, \\e2\\().4s, \\t2\\().4s\n\n        fsub            \\e2\\().4s, \\e0\\().4s, \\t0\\().4s\n        fadd            \\e0\\().4s, \\e0\\().4s, \\t0\\().4s\n        fsub            \\e3\\().4s, \\e1\\().4s, \\t1\\().4s\n        fadd            \\e1\\().4s, \\e1\\().4s, \\t1\\().4s\n.endm\n\nfunction ff_tx_fft2_float_neon, export=1\n        ld2r            { v0.2d, v1.2d }, [x2]\n\n        fneg            v2.2s, v1.2s\n        mov             v2.d[1], v1.d[0]\n\n        fsub            v2.4s, v0.4s, v2.4s\n\n        st1             { v2.4s }, [x1]\n        ret\nendfunc\n\n.macro FFT4_FN name, inv\nfunction ff_tx_fft4_\\name\\()_float_neon, export=1\n        ld1             {v0.4s, v1.4s}, [x2]\n\n.if \\inv == 1\n        mov             v2.d[0], v0.d[1]\n        mov             v0.d[1], v1.d[1]\n        mov             v1.d[1], v2.d[0]\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:10", "text": "ld2r            { v0.2d, v1.2d }, [x2]\n\n        fneg            v2.2s, v1.2s\n        mov             v2.d[1], v1.d[0]\n\n        fsub            v2.4s, v0.4s, v2.4s\n\n        st1             { v2.4s }, [x1]\n        ret\nendfunc\n\n.macro FFT4_FN name, inv\nfunction ff_tx_fft4_\\name\\()_float_neon, export=1\n        ld1             {v0.4s, v1.4s}, [x2]\n\n.if \\inv == 1\n        mov             v2.d[0], v0.d[1]\n        mov             v0.d[1], v1.d[1]\n        mov             v1.d[1], v2.d[0]\n.endif\n\n        FFT4            v0, v1, 1\n\n        st1             { v0.4s, v1.4s }, [x1]\n        ret\nendfunc\n.endm\n\nFFT4_FN fwd, 0\nFFT4_FN inv, 1\n\n.macro FFT8_FN name, no_perm\nfunction ff_tx_fft8_\\name\\()_neon, export=1\n        SETUP_LUT       \\no_perm\n        LOAD_INPUT      0, 1, 2, 3, x2, \\no_perm\n\n        LOAD_SUBADD\n        FFT8            v0, v1, v2, v3\n\n        zip1            v16.2d, v0.2d, v2.2d\n        zip2            v17.2d, v0.2d, v2.2d\n        zip1            v18.2d, v1.2d, v3.2d\n        zip2            v19.2d, v1.2d, v3.2d\n        st1             { v16.4s, v17.4s, v18.4s, v19.4s }, [x1]\n\n        ret\nendfunc\n.endm\n\nFFT8_FN float,    0\nFFT8_FN ns_float, 1\n\n.macro FFT16_FN name, no_perm\nfunction ff_tx_fft16_\\name\\()_neon, export=1\n        SETUP_LUT       \\no_perm\n        LOAD_INPUT      0, 1, 2, 3, x2, \\no_perm\n        LOAD_INPUT      4, 5, 6, 7, x2, \\no_perm\n\n        LOAD_SUBADD\n        FFT16           v0, v1, v2, v3, v4, v5, v6, v7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:11", "text": "zip2            v17.2d, v0.2d, v2.2d\n        zip1            v18.2d, v1.2d, v3.2d\n        zip2            v19.2d, v1.2d, v3.2d\n        st1             { v16.4s, v17.4s, v18.4s, v19.4s }, [x1]\n\n        ret\nendfunc\n.endm\n\nFFT8_FN float,    0\nFFT8_FN ns_float, 1\n\n.macro FFT16_FN name, no_perm\nfunction ff_tx_fft16_\\name\\()_neon, export=1\n        SETUP_LUT       \\no_perm\n        LOAD_INPUT      0, 1, 2, 3, x2, \\no_perm\n        LOAD_INPUT      4, 5, 6, 7, x2, \\no_perm\n\n        LOAD_SUBADD\n        FFT16           v0, v1, v2, v3, v4, v5, v6, v7\n\n        zip1            v20.2d, v0.2d, v4.2d\n        zip2            v21.2d, v0.2d, v4.2d\n        zip1            v22.2d, v1.2d, v6.2d\n        zip2            v23.2d, v1.2d, v6.2d\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x1], #64\n\n        zip1            v24.2d, v2.2d, v5.2d\n        zip2            v25.2d, v2.2d, v5.2d\n        zip1            v26.2d, v3.2d, v7.2d\n        zip2            v27.2d, v3.2d, v7.2d\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x1]\n\n        ret\nendfunc\n.endm\n\nFFT16_FN float,    0\nFFT16_FN ns_float, 1\n\n.macro SETUP_SR_RECOMB len, re, im, dec\n        ldr             w5, =(\\len - 4*7)\n        movrel          \\re, X(ff_tx_tab_\\len\\()_float)\n        add             \\im, \\re, x5\n        mov             \\dec, #-32\n\n.if \\len > 32\n        mov             x21, #2*\\len\n        add             x22, x21, x21, lsl #1\n.endif\n.endm\n\n.macro SR_COMBINE e0, e1, e2, e3, e4, e5, e6, e7, \\\n                  o0, o1, o2, o3, o4, o5, o6, o7, \\\n                  re, im, dec, swap_im, \\\n                  t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, \\\n                  t6=v22, t7=v23, t8=v24, t9=v25, ta=v26, tb=v27\n\n        ld1             { \\t8\\().4s, \\t9\\().4s }, [\\im], \\dec\n        ld1             { \\t0\\().4s, \\t1\\().4s }, [\\re], #32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:12", "text": ".macro SETUP_SR_RECOMB len, re, im, dec\n        ldr             w5, =(\\len - 4*7)\n        movrel          \\re, X(ff_tx_tab_\\len\\()_float)\n        add             \\im, \\re, x5\n        mov             \\dec, #-32\n\n.if \\len > 32\n        mov             x21, #2*\\len\n        add             x22, x21, x21, lsl #1\n.endif\n.endm\n\n.macro SR_COMBINE e0, e1, e2, e3, e4, e5, e6, e7, \\\n                  o0, o1, o2, o3, o4, o5, o6, o7, \\\n                  re, im, dec, swap_im, \\\n                  t0=v16, t1=v17, t2=v18, t3=v19, t4=v20, t5=v21, \\\n                  t6=v22, t7=v23, t8=v24, t9=v25, ta=v26, tb=v27\n\n        ld1             { \\t8\\().4s, \\t9\\().4s }, [\\im], \\dec\n        ld1             { \\t0\\().4s, \\t1\\().4s }, [\\re], #32\n\n.if \\swap_im == 1\n        ext             \\t2\\().16b, \\t9\\().16b, \\t9\\().16b, #8\n        ext             \\t3\\().16b, \\t8\\().16b, \\t8\\().16b, #8\n.else\n        ext             \\t2\\().16b, \\t8\\().16b, \\t8\\().16b, #8\n        ext             \\t3\\().16b, \\t9\\().16b, \\t9\\().16b, #8\n.endif\n\n        trn1            \\t4\\().4s, \\t0\\().4s, \\t0\\().4s      // cos0022\n        trn2            \\t0\\().4s, \\t0\\().4s, \\t0\\().4s      // cos4466\n        trn1            \\t5\\().4s, \\t1\\().4s, \\t1\\().4s      // cos1133\n        trn2            \\t1\\().4s, \\t1\\().4s, \\t1\\().4s      // cos5577\n\n        rev64           \\t6\\().4s, \\o0\\().4s                 // E m2[0,1].imre\n        rev64           \\t7\\().4s, \\o2\\().4s                 // O m2[0,1].imre\n        rev64           \\t8\\().4s, \\o4\\().4s                 // E m2[2,3].imre\n        rev64           \\t9\\().4s, \\o6\\().4s                 // O m2[2,3].imre\n\n        fmul            \\t6\\().4s, \\t6\\().4s, \\t4\\().4s      // E m2[0,1].imre*t1[0,2]\n        fmul            \\t7\\().4s, \\t7\\().4s, \\t0\\().4s      // O m2[0,1].imre*t1[0,2]\n        fmul            \\t8\\().4s, \\t8\\().4s, \\t4\\().4s      // E m2[2,3].imre*t1[0,2]\n        fmul            \\t9\\().4s, \\t9\\().4s, \\t0\\().4s      // O m2[2,3].imre*t1[0,2]\n\n        rev64           \\ta\\().4s, \\o1\\().4s                 // E m3[0,1].imre\n        rev64           \\tb\\().4s, \\o3\\().4s                 // O m3[0,1].imre\n        rev64           \\t4\\().4s, \\o5\\().4s                 // E m3[2,3].imre\n        rev64           \\t0\\().4s, \\o7\\().4s                 // O m3[2,3].imre\n\n        fmul            \\ta\\().4s, \\ta\\().4s, \\t5\\().4s      // E m3[0,1].imre*t1[4,6]\n        fmul            \\tb\\().4s, \\tb\\().4s, \\t1\\().4s      // O m3[0,1].imre*t1[4,6]\n        fmul            \\t4\\().4s, \\t4\\().4s, \\t5\\().4s      // E m3[2,3].imre*t1[4,6]\n        fmul            \\t0\\().4s, \\t0\\().4s, \\t1\\().4s      // O m3[2,3].imre*t1[4,6]\n\n        trn1            \\t5\\().4s, \\t3\\().4s, \\t3\\().4s      // wim2200\n        trn2            \\t3\\().4s, \\t3\\().4s, \\t3\\().4s      // wim3311\n        trn1            \\t1\\().4s, \\t2\\().4s, \\t2\\().4s      // wim6644\n        trn2            \\t2\\().4s, \\t2\\().4s, \\t2\\().4s      // wim7755\n\n        fmul            \\t5\\().4s, \\t5\\().4s, v31.4s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:13", "text": "fmul            \\t7\\().4s, \\t7\\().4s, \\t0\\().4s      // O m2[0,1].imre*t1[0,2]\n        fmul            \\t8\\().4s, \\t8\\().4s, \\t4\\().4s      // E m2[2,3].imre*t1[0,2]\n        fmul            \\t9\\().4s, \\t9\\().4s, \\t0\\().4s      // O m2[2,3].imre*t1[0,2]\n\n        rev64           \\ta\\().4s, \\o1\\().4s                 // E m3[0,1].imre\n        rev64           \\tb\\().4s, \\o3\\().4s                 // O m3[0,1].imre\n        rev64           \\t4\\().4s, \\o5\\().4s                 // E m3[2,3].imre\n        rev64           \\t0\\().4s, \\o7\\().4s                 // O m3[2,3].imre\n\n        fmul            \\ta\\().4s, \\ta\\().4s, \\t5\\().4s      // E m3[0,1].imre*t1[4,6]\n        fmul            \\tb\\().4s, \\tb\\().4s, \\t1\\().4s      // O m3[0,1].imre*t1[4,6]\n        fmul            \\t4\\().4s, \\t4\\().4s, \\t5\\().4s      // E m3[2,3].imre*t1[4,6]\n        fmul            \\t0\\().4s, \\t0\\().4s, \\t1\\().4s      // O m3[2,3].imre*t1[4,6]\n\n        trn1            \\t5\\().4s, \\t3\\().4s, \\t3\\().4s      // wim2200\n        trn2            \\t3\\().4s, \\t3\\().4s, \\t3\\().4s      // wim3311\n        trn1            \\t1\\().4s, \\t2\\().4s, \\t2\\().4s      // wim6644\n        trn2            \\t2\\().4s, \\t2\\().4s, \\t2\\().4s      // wim7755\n\n        fmul            \\t5\\().4s, \\t5\\().4s, v31.4s\n        fmul            \\t3\\().4s, \\t3\\().4s, v31.4s\n        fmul            \\t1\\().4s, \\t1\\().4s, v31.4s\n        fmul            \\t2\\().4s, \\t2\\().4s, v31.4s\n\n        fmla            \\t7\\().4s, \\o2\\().4s, \\t5\\().4s      // O w0123\n        fmls            \\t9\\().4s, \\o6\\().4s, \\t5\\().4s      // O j0123\n        fmla            \\t6\\().4s, \\o0\\().4s, \\t3\\().4s      // E w0123\n        fmls            \\t8\\().4s, \\o4\\().4s, \\t3\\().4s      // E j0123\n\n        fmla            \\ta\\().4s, \\o1\\().4s, \\t2\\().4s      // E w4567\n        fmla            \\tb\\().4s, \\o3\\().4s, \\t1\\().4s      // O w4567\n        fmls            \\t4\\().4s, \\o5\\().4s, \\t2\\().4s      // E j4567\n        fmls            \\t0\\().4s, \\o7\\().4s, \\t1\\().4s      // O j4567\n\n        fsub            \\t2\\().4s, \\t7\\().4s, \\t9\\().4s\n        fsub            \\t1\\().4s, \\t8\\().4s, \\t6\\().4s\n        fsub            \\t3\\().4s, \\t4\\().4s, \\ta\\().4s\n        fsub            \\t5\\().4s, \\t0\\().4s, \\tb\\().4s\n\n        fadd            \\t6\\().4s, \\t8\\().4s, \\t6\\().4s\n        fadd            \\t7\\().4s, \\t9\\().4s, \\t7\\().4s\n        fadd            \\t8\\().4s, \\t4\\().4s, \\ta\\().4s\n        fadd            \\t9\\().4s, \\t0\\().4s, \\tb\\().4s\n\n        fmul            \\t1\\().4s, \\t1\\().4s, v31.4s\n        fmul            \\t2\\().4s, \\t2\\().4s, v31.4s\n        fmul            \\t3\\().4s, \\t3\\().4s, v31.4s\n        fmul            \\t5\\().4s, \\t5\\().4s, v31.4s\n\n        rev64           \\t6\\().4s, \\t6\\().4s\n        rev64           \\t8\\().4s, \\t8\\().4s\n        rev64           \\t7\\().4s, \\t7\\().4s\n        rev64           \\t9\\().4s, \\t9\\().4s\n\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t6\\().4s\n        fsub            \\o1\\().4s, \\e1\\().4s, \\t8\\().4s\n        fsub            \\o2\\().4s, \\e2\\().4s, \\t1\\().4s\n        fsub            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n\n        fsub            \\o4\\().4s, \\e4\\().4s, \\t7\\().4s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:14", "text": "fadd            \\t7\\().4s, \\t9\\().4s, \\t7\\().4s\n        fadd            \\t8\\().4s, \\t4\\().4s, \\ta\\().4s\n        fadd            \\t9\\().4s, \\t0\\().4s, \\tb\\().4s\n\n        fmul            \\t1\\().4s, \\t1\\().4s, v31.4s\n        fmul            \\t2\\().4s, \\t2\\().4s, v31.4s\n        fmul            \\t3\\().4s, \\t3\\().4s, v31.4s\n        fmul            \\t5\\().4s, \\t5\\().4s, v31.4s\n\n        rev64           \\t6\\().4s, \\t6\\().4s\n        rev64           \\t8\\().4s, \\t8\\().4s\n        rev64           \\t7\\().4s, \\t7\\().4s\n        rev64           \\t9\\().4s, \\t9\\().4s\n\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t6\\().4s\n        fsub            \\o1\\().4s, \\e1\\().4s, \\t8\\().4s\n        fsub            \\o2\\().4s, \\e2\\().4s, \\t1\\().4s\n        fsub            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n\n        fsub            \\o4\\().4s, \\e4\\().4s, \\t7\\().4s\n        fsub            \\o5\\().4s, \\e6\\().4s, \\t9\\().4s\n        fadd            \\o6\\().4s, \\e5\\().4s, \\t2\\().4s\n        fsub            \\o7\\().4s, \\e7\\().4s, \\t5\\().4s\n\n        fadd            \\e0\\().4s, \\e0\\().4s, \\t6\\().4s\n        fadd            \\e1\\().4s, \\e1\\().4s, \\t8\\().4s\n        fadd            \\e2\\().4s, \\e2\\().4s, \\t1\\().4s\n        fadd            \\e3\\().4s, \\e3\\().4s, \\t3\\().4s\n\n        fadd            \\e4\\().4s, \\e4\\().4s, \\t7\\().4s\n        fsub            \\e5\\().4s, \\e5\\().4s, \\t2\\().4s      // swapped\n        fadd            \\e6\\().4s, \\e6\\().4s, \\t9\\().4s      // swapped\n        fadd            \\e7\\().4s, \\e7\\().4s, \\t5\\().4s\n.endm\n\n.macro SR_COMBINE_HALF e0, e1, e2, e3, \\\n                       o0, o1, o2, o3, \\\n                       c0, c1, c2, c3, \\\n                       t0, t1, t2, t3, t4, t5, part\n\n.if \\part == 0\n        trn1            \\t4\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n        trn1            \\c1\\().4s, \\c1\\().4s, \\c1\\().4s   // cos1133\n.else\n        trn2            \\t4\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n        trn2            \\c1\\().4s, \\c1\\().4s, \\c1\\().4s   // cos1133\n.endif\n.if \\part == 0\n        trn2            \\t5\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755\n        trn2            \\c3\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.else\n        trn1            \\t5\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755\n        trn1            \\c3\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.endif\n\n        fmul            \\t5\\().4s, \\t5\\().4s, v31.4s\n        fmul            \\c3\\().4s, \\c3\\().4s, v31.4s\n\n        rev64           \\t0\\().4s, \\o0\\().4s              // E m2[0,1].imre\n        rev64           \\t1\\().4s, \\o2\\().4s              // E m2[2,3].imre", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:15", "text": ".if \\part == 0\n        trn1            \\t4\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n        trn1            \\c1\\().4s, \\c1\\().4s, \\c1\\().4s   // cos1133\n.else\n        trn2            \\t4\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n        trn2            \\c1\\().4s, \\c1\\().4s, \\c1\\().4s   // cos1133\n.endif\n.if \\part == 0\n        trn2            \\t5\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755\n        trn2            \\c3\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.else\n        trn1            \\t5\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755\n        trn1            \\c3\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.endif\n\n        fmul            \\t5\\().4s, \\t5\\().4s, v31.4s\n        fmul            \\c3\\().4s, \\c3\\().4s, v31.4s\n\n        rev64           \\t0\\().4s, \\o0\\().4s              // E m2[0,1].imre\n        rev64           \\t1\\().4s, \\o2\\().4s              // E m2[2,3].imre\n        rev64           \\t2\\().4s, \\o1\\().4s              // E m3[0,1].imre\n        rev64           \\t3\\().4s, \\o3\\().4s              // E m3[2,3].imre\n\n        fmul            \\o0\\().4s, \\o0\\().4s, \\c3\\().4s   // E m2[0,1].imre*t1[0,2]\n        fmul            \\o1\\().4s, \\o1\\().4s, \\t5\\().4s   // E m3[0,1].imre*t1[4,6]\n        fmla            \\o0\\().4s, \\t0\\().4s, \\t4\\().4s   // E w0123\n        fmla            \\o1\\().4s, \\t2\\().4s, \\c1\\().4s   // E w4567\n\n        fmul            \\t1\\().4s, \\t1\\().4s, \\t4\\().4s   // E m2[2,3].imre*t1[0,2]\n        fmul            \\t3\\().4s, \\t3\\().4s, \\c1\\().4s   // E m3[2,3].imre*t1[4,6]\n        fmls            \\t1\\().4s, \\o2\\().4s, \\c3\\().4s   // E j0123\n        fmls            \\t3\\().4s, \\o3\\().4s, \\t5\\().4s   // E j4567\n\n        fsub            \\t0\\().4s, \\t1\\().4s, \\o0\\().4s\n        fadd            \\t1\\().4s, \\t1\\().4s, \\o0\\().4s\n        fadd            \\t2\\().4s, \\t3\\().4s, \\o1\\().4s\n        fsub            \\t3\\().4s, \\t3\\().4s, \\o1\\().4s\n\n        fmul            \\t0\\().4s, \\t0\\().4s, v31.4s\n        fmul            \\t3\\().4s, \\t3\\().4s, v31.4s\n\n        rev64           \\t1\\().4s, \\t1\\().4s\n        rev64           \\t2\\().4s, \\t2\\().4s\n\n.if \\part == 0\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fsub            \\o1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fsub            \\o2\\().4s, \\e2\\().4s, \\t0\\().4s\n        fsub            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n.else\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fadd            \\o2\\().4s, \\e1\\().4s, \\t2\\().4s\n        fsub            \\o1\\().4s, \\e2\\().4s, \\t0\\().4s\n        fadd            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n.endif\n\n.if \\part == 0\n        fadd            \\e0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fadd            \\e1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fadd            \\e2\\().4s, \\e2\\().4s, \\t0\\().4s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:16", "text": "rev64           \\t1\\().4s, \\t1\\().4s\n        rev64           \\t2\\().4s, \\t2\\().4s\n\n.if \\part == 0\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fsub            \\o1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fsub            \\o2\\().4s, \\e2\\().4s, \\t0\\().4s\n        fsub            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n.else\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fadd            \\o2\\().4s, \\e1\\().4s, \\t2\\().4s\n        fsub            \\o1\\().4s, \\e2\\().4s, \\t0\\().4s\n        fadd            \\o3\\().4s, \\e3\\().4s, \\t3\\().4s\n.endif\n\n.if \\part == 0\n        fadd            \\e0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fadd            \\e1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fadd            \\e2\\().4s, \\e2\\().4s, \\t0\\().4s\n        fadd            \\e3\\().4s, \\e3\\().4s, \\t3\\().4s\n.else\n        fadd            \\e0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fsub            \\e1\\().4s, \\e1\\().4s, \\t2\\().4s   // swapped\n        fadd            \\e2\\().4s, \\e2\\().4s, \\t0\\().4s   // swapped\n        fsub            \\e3\\().4s, \\e3\\().4s, \\t3\\().4s\n.endif\n.endm\n\n/* Same as SR_COMBINE_HALF, but heroically tries to use 3 temporary registers\n * without touching the tables. */\n.macro SR_COMBINE_LITE e0, e1, e2, e3, \\\n                       o0, o1, o2, o3, \\\n                       c0, c1, c2, c3, \\\n                       t0, t1, t2, part\n\n        rev64           \\t0\\().4s, \\o0\\().4s              // E m2[0,1].imre\n        rev64           \\t1\\().4s, \\o2\\().4s              // E m2[2,3].imre\n.if \\part == 0\n        trn2            \\t2\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.else\n        trn1            \\t2\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.endif\n        fmul            \\t2\\().4s, \\t2\\().4s, v31.4s\n        fmul            \\o2\\().4s, \\o2\\().4s, \\t2\\().4s\n        fmul            \\o0\\().4s, \\o0\\().4s, \\t2\\().4s   // E m2[0,1].imre*t1[0,2]\n.if \\part == 0\n        trn1            \\t2\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n.else\n        trn2            \\t2\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n.endif\n        fmul            \\t1\\().4s, \\t1\\().4s, \\t2\\().4s   // E m2[2,3].imre*t1[0,2]\n        fmla            \\o0\\().4s, \\t0\\().4s, \\t2\\().4s   // E w0123\n        fsub            \\t1\\().4s, \\t1\\().4s, \\o2\\().4s   // E j0123\n\n        rev64           \\t2\\().4s, \\o1\\().4s              // E m3[0,1].imre\n        rev64           \\o2\\().4s, \\o3\\().4s              // E m3[2,3].imre\n\n.if \\part == 0\n        trn2            \\t0\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:17", "text": ".else\n        trn1            \\t2\\().4s, \\c3\\().4s, \\c3\\().4s   // wim3311\n.endif\n        fmul            \\t2\\().4s, \\t2\\().4s, v31.4s\n        fmul            \\o2\\().4s, \\o2\\().4s, \\t2\\().4s\n        fmul            \\o0\\().4s, \\o0\\().4s, \\t2\\().4s   // E m2[0,1].imre*t1[0,2]\n.if \\part == 0\n        trn1            \\t2\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n.else\n        trn2            \\t2\\().4s, \\c0\\().4s, \\c0\\().4s   // cos0022\n.endif\n        fmul            \\t1\\().4s, \\t1\\().4s, \\t2\\().4s   // E m2[2,3].imre*t1[0,2]\n        fmla            \\o0\\().4s, \\t0\\().4s, \\t2\\().4s   // E w0123\n        fsub            \\t1\\().4s, \\t1\\().4s, \\o2\\().4s   // E j0123\n\n        rev64           \\t2\\().4s, \\o1\\().4s              // E m3[0,1].imre\n        rev64           \\o2\\().4s, \\o3\\().4s              // E m3[2,3].imre\n\n.if \\part == 0\n        trn2            \\t0\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755\n.else\n        trn1            \\t0\\().4s, \\c2\\().4s, \\c2\\().4s   // wim7755\n.endif\n        fmul            \\t0\\().4s, \\t0\\().4s, v31.4s\n\n        fmul            \\o1\\().4s, \\o1\\().4s, \\t0\\().4s   // E m3[0,1].imre*t1[4,6]\n        fmul            \\o3\\().4s, \\o3\\().4s, \\t0\\().4s\n\n.if \\part == 0\n        trn1            \\t0\\().4s, \\c1\\().4s, \\c1\\().4s   // cos1133\n.else\n        trn2            \\t0\\().4s, \\c1\\().4s, \\c1\\().4s   // cos1133\n.endif\n        fmul            \\o2\\().4s, \\o2\\().4s, \\t0\\().4s   // E m3[2,3].imre*t1[4,6]\n        fmla            \\o1\\().4s, \\t2\\().4s, \\t0\\().4s   // E w4567\n        fsub            \\o2\\().4s, \\o2\\().4s, \\o3\\().4s   // E j4567\n\n        fsub            \\t0\\().4s, \\t1\\().4s, \\o0\\().4s\n        fadd            \\o0\\().4s, \\t1\\().4s, \\o0\\().4s\n        fadd            \\t2\\().4s, \\o2\\().4s, \\o1\\().4s\n        fsub            \\t1\\().4s, \\o2\\().4s, \\o1\\().4s\n\n        fmul            \\t0\\().4s, \\t0\\().4s, v31.4s\n        fmul            \\t1\\().4s, \\t1\\().4s, v31.4s\n\n        rev64           \\t2\\().4s, \\t2\\().4s\n        rev64           \\o0\\().4s, \\o0\\().4s\n\n.if \\part == 0\n        fsub            \\o1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fsub            \\o2\\().4s, \\e2\\().4s, \\t0\\().4s\n        fsub            \\o3\\().4s, \\e3\\().4s, \\t1\\().4s\n.else\n        fadd            \\o2\\().4s, \\e1\\().4s, \\t0\\().4s\n        fsub            \\o1\\().4s, \\e2\\().4s, \\t2\\().4s\n        fadd            \\o3\\().4s, \\e3\\().4s, \\t1\\().4s\n.endif\n\n.if \\part == 0\n        fadd            \\e1\\().4s, \\e1\\().4s, \\t2\\().4s", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:18", "text": "fsub            \\t1\\().4s, \\o2\\().4s, \\o1\\().4s\n\n        fmul            \\t0\\().4s, \\t0\\().4s, v31.4s\n        fmul            \\t1\\().4s, \\t1\\().4s, v31.4s\n\n        rev64           \\t2\\().4s, \\t2\\().4s\n        rev64           \\o0\\().4s, \\o0\\().4s\n\n.if \\part == 0\n        fsub            \\o1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fsub            \\o2\\().4s, \\e2\\().4s, \\t0\\().4s\n        fsub            \\o3\\().4s, \\e3\\().4s, \\t1\\().4s\n.else\n        fadd            \\o2\\().4s, \\e1\\().4s, \\t0\\().4s\n        fsub            \\o1\\().4s, \\e2\\().4s, \\t2\\().4s\n        fadd            \\o3\\().4s, \\e3\\().4s, \\t1\\().4s\n.endif\n\n.if \\part == 0\n        fadd            \\e1\\().4s, \\e1\\().4s, \\t2\\().4s\n        fadd            \\e2\\().4s, \\e2\\().4s, \\t0\\().4s\n        fadd            \\e3\\().4s, \\e3\\().4s, \\t1\\().4s\n.else\n        fsub            \\e1\\().4s, \\e1\\().4s, \\t0\\().4s   // swapped\n        fadd            \\e2\\().4s, \\e2\\().4s, \\t2\\().4s   // swapped\n        fsub            \\e3\\().4s, \\e3\\().4s, \\t1\\().4s\n.endif\n\n        mov             \\t1\\().16b, \\o0\\().16b\n\n        fsub            \\o0\\().4s, \\e0\\().4s, \\t1\\().4s\n        fadd            \\e0\\().4s, \\e0\\().4s, \\t1\\().4s\n.endm\n\n.macro SR_COMBINE_4 len, part, off\n        add             x10, x1, x21\n        add             x11, x1, x21, lsl #1\n        add             x12, x1, x22\n\n        ldp             q0,  q1,  [x1,  #((0 + \\part)*32 + \\off)]\n        ldp             q4,  q5,  [x1,  #((2 + \\part)*32 + \\off)]\n        ldp             q2,  q3,  [x10, #((0 + \\part)*32 + \\off)]\n        ldp             q6,  q7,  [x10, #((2 + \\part)*32 + \\off)]\n\n        ldp             q8,  q9,  [x11, #((0 + \\part)*32 + \\off)]\n        ldp             q10, q11, [x11, #((2 + \\part)*32 + \\off)]\n        ldp             q12, q13, [x12, #((0 + \\part)*32 + \\off)]\n        ldp             q14, q15, [x12, #((2 + \\part)*32 + \\off)]\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8, x9, 0\n\n        stp             q0,  q1,  [x1,  #((0 + \\part)*32 + \\off)]\n        stp             q4,  q5,  [x1,  #((2 + \\part)*32 + \\off)]\n        stp             q2,  q3,  [x10, #((0 + \\part)*32 + \\off)]\n        stp             q6,  q7,  [x10, #((2 + \\part)*32 + \\off)]\n\n        stp             q8,  q9,  [x11, #((0 + \\part)*32 + \\off)]\n        stp             q12, q13, [x11, #((2 + \\part)*32 + \\off)]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:19", "text": "ldp             q4,  q5,  [x1,  #((2 + \\part)*32 + \\off)]\n        ldp             q2,  q3,  [x10, #((0 + \\part)*32 + \\off)]\n        ldp             q6,  q7,  [x10, #((2 + \\part)*32 + \\off)]\n\n        ldp             q8,  q9,  [x11, #((0 + \\part)*32 + \\off)]\n        ldp             q10, q11, [x11, #((2 + \\part)*32 + \\off)]\n        ldp             q12, q13, [x12, #((0 + \\part)*32 + \\off)]\n        ldp             q14, q15, [x12, #((2 + \\part)*32 + \\off)]\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8, x9, 0\n\n        stp             q0,  q1,  [x1,  #((0 + \\part)*32 + \\off)]\n        stp             q4,  q5,  [x1,  #((2 + \\part)*32 + \\off)]\n        stp             q2,  q3,  [x10, #((0 + \\part)*32 + \\off)]\n        stp             q6,  q7,  [x10, #((2 + \\part)*32 + \\off)]\n\n        stp             q8,  q9,  [x11, #((0 + \\part)*32 + \\off)]\n        stp             q12, q13, [x11, #((2 + \\part)*32 + \\off)]\n        stp             q10, q11, [x12, #((0 + \\part)*32 + \\off)]\n        stp             q14, q15, [x12, #((2 + \\part)*32 + \\off)]\n.endm\n\n.macro SR_COMBINE_FULL len, off=0\n        add             x10, x1, x21\n        add             x11, x1, x21, lsl #1\n        add             x12, x1, x22\n\n        SR_COMBINE_4    \\len, 0, \\off\n        SR_COMBINE_4    \\len, 1, \\off\n        SR_COMBINE_4    \\len, 4, \\off\n        SR_COMBINE_4    \\len, 5, \\off\n.endm\n\n.macro SR_COMBINE_D2 part, off\n        add             x10,  x1, #((\\part)*32 + \\off)\n        add             x11, x14, #((\\part)*32 + \\off)\n        add             x12, x15, #((\\part)*32 + \\off)\n        add             x13, x16, #((\\part)*32 + \\off)\n\n        ldp             q0,  q1,  [x10]\n        ldp             q4,  q5,  [x10, #(2*32)]\n        ldp             q2,  q3,  [x11]\n        ldp             q6,  q7,  [x11, #(2*32)]\n\n        ldp             q8,  q9,  [x12]\n        ldp             q10, q11, [x12, #(2*32)]\n        ldp             q12, q13, [x13]\n        ldp             q14, q15, [x13, #(2*32)]\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8, x9, 0, \\\n                        v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27\n\n        zip1            v16.2d, v0.2d, v4.2d\n        zip2            v17.2d, v0.2d, v4.2d\n        zip1            v18.2d, v1.2d, v5.2d\n        zip2            v19.2d, v1.2d, v5.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:20", "text": "ldp             q0,  q1,  [x10]\n        ldp             q4,  q5,  [x10, #(2*32)]\n        ldp             q2,  q3,  [x11]\n        ldp             q6,  q7,  [x11, #(2*32)]\n\n        ldp             q8,  q9,  [x12]\n        ldp             q10, q11, [x12, #(2*32)]\n        ldp             q12, q13, [x13]\n        ldp             q14, q15, [x13, #(2*32)]\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8, x9, 0, \\\n                        v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27\n\n        zip1            v16.2d, v0.2d, v4.2d\n        zip2            v17.2d, v0.2d, v4.2d\n        zip1            v18.2d, v1.2d, v5.2d\n        zip2            v19.2d, v1.2d, v5.2d\n\n        zip1            v20.2d, v2.2d, v6.2d\n        zip2            v21.2d, v2.2d, v6.2d\n        zip1            v22.2d, v3.2d, v7.2d\n        zip2            v23.2d, v3.2d, v7.2d\n\n        ldp             q0,  q1,  [x10, #(1*32)]\n        ldp             q4,  q5,  [x10, #(3*32)]\n        ldp             q2,  q3,  [x11, #(1*32)]\n        ldp             q6,  q7,  [x11, #(3*32)]\n\n        st1             { v16.4s, v17.4s, v18.4s, v19.4s }, [x10], #64\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x11], #64\n\n        zip1            v20.2d, v8.2d, v12.2d\n        zip2            v21.2d, v8.2d, v12.2d\n        zip1            v22.2d, v9.2d, v13.2d\n        zip2            v23.2d, v9.2d, v13.2d\n        zip1            v24.2d, v10.2d, v14.2d\n        zip2            v25.2d, v10.2d, v14.2d\n        zip1            v26.2d, v11.2d, v15.2d\n        zip2            v27.2d, v11.2d, v15.2d\n\n        ldp             q8,  q9,  [x12, #(1*32)]\n        ldp             q10, q11, [x12, #(3*32)]\n        ldp             q12, q13, [x13, #(1*32)]\n        ldp             q14, q15, [x13, #(3*32)]\n\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x12], #64\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x13], #64\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8, x9, 0, \\\n                        v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27\n\n        zip1            v16.2d, v0.2d, v4.2d\n        zip2            v17.2d, v0.2d, v4.2d\n        zip1            v18.2d, v1.2d, v5.2d\n        zip2            v19.2d, v1.2d, v5.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:21", "text": "zip1            v26.2d, v11.2d, v15.2d\n        zip2            v27.2d, v11.2d, v15.2d\n\n        ldp             q8,  q9,  [x12, #(1*32)]\n        ldp             q10, q11, [x12, #(3*32)]\n        ldp             q12, q13, [x13, #(1*32)]\n        ldp             q14, q15, [x13, #(3*32)]\n\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x12], #64\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x13], #64\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8, x9, 0, \\\n                        v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27\n\n        zip1            v16.2d, v0.2d, v4.2d\n        zip2            v17.2d, v0.2d, v4.2d\n        zip1            v18.2d, v1.2d, v5.2d\n        zip2            v19.2d, v1.2d, v5.2d\n        st1             { v16.4s, v17.4s, v18.4s, v19.4s }, [x10]\n\n        zip1            v16.2d, v2.2d, v6.2d\n        zip2            v17.2d, v2.2d, v6.2d\n        zip1            v18.2d, v3.2d, v7.2d\n        zip2            v19.2d, v3.2d, v7.2d\n        st1             { v16.4s, v17.4s, v18.4s, v19.4s }, [x11]\n\n        zip1            v20.2d, v8.2d, v12.2d\n        zip2            v21.2d, v8.2d, v12.2d\n        zip1            v22.2d, v9.2d, v13.2d\n        zip2            v23.2d, v9.2d, v13.2d\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x12]\n\n        zip1            v24.2d, v10.2d, v14.2d\n        zip2            v25.2d, v10.2d, v14.2d\n        zip1            v26.2d, v11.2d, v15.2d\n        zip2            v27.2d, v11.2d, v15.2d\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x13]\n.endm\n\n.macro SR_COMBINE_DINT off=0\n        add             x14, x1, x21\n        add             x15, x1, x21, lsl #1\n        add             x16, x1, x22\n\n        SR_COMBINE_D2   0, \\off\n        SR_COMBINE_D2   4, \\off\n.endm\n\n.macro FFT32_FN name, no_perm\nfunction ff_tx_fft32_\\name\\()_neon, export=1\n        stp             d14, d15, [sp, #-16*4]!\n        stp             d8,  d9,  [sp, #16*3]\n        stp             d10, d11, [sp, #16*2]\n        stp             d12, d13, [sp, #16]\n\n        LOAD_SUBADD\n        SETUP_SR_RECOMB 32, x7, x8, x9", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:22", "text": ".macro SR_COMBINE_DINT off=0\n        add             x14, x1, x21\n        add             x15, x1, x21, lsl #1\n        add             x16, x1, x22\n\n        SR_COMBINE_D2   0, \\off\n        SR_COMBINE_D2   4, \\off\n.endm\n\n.macro FFT32_FN name, no_perm\nfunction ff_tx_fft32_\\name\\()_neon, export=1\n        stp             d14, d15, [sp, #-16*4]!\n        stp             d8,  d9,  [sp, #16*3]\n        stp             d10, d11, [sp, #16*2]\n        stp             d12, d13, [sp, #16]\n\n        LOAD_SUBADD\n        SETUP_SR_RECOMB 32, x7, x8, x9\n\n        SETUP_LUT       \\no_perm\n        LOAD_INPUT      0,  1,  2,  3,  x2, \\no_perm\n        LOAD_INPUT      4,  5,  6,  7,  x2, \\no_perm\n        LOAD_INPUT      8,  9,  10, 11, x2, \\no_perm\n        LOAD_INPUT      12, 13, 14, 15, x2, \\no_perm\n\n        FFT8_X2         v8, v9, v10, v11, v12, v13, v14, v15\n        FFT16           v0, v1, v2, v3, v4, v5, v6, v7\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v5,  v6,  v7, \\\n                        v8,  v9, v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8,  x9, 0\n\n        zip1            v16.2d, v0.2d, v4.2d\n        zip2            v17.2d, v0.2d, v4.2d\n        zip1            v18.2d, v1.2d, v6.2d\n        zip2            v19.2d, v1.2d, v6.2d\n        st1             { v16.4s, v17.4s, v18.4s, v19.4s }, [x1], #64\n\n        zip1            v20.2d, v2.2d, v5.2d\n        zip2            v21.2d, v2.2d, v5.2d\n        zip1            v22.2d, v3.2d, v7.2d\n        zip2            v23.2d, v3.2d, v7.2d\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x1], #64\n\n        zip1            v24.2d, v8.2d, v12.2d\n        zip2            v25.2d, v8.2d, v12.2d\n        zip1            v26.2d, v9.2d, v13.2d\n        zip2            v27.2d, v9.2d, v13.2d\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x1], #64\n\n        zip1            v28.2d, v10.2d, v14.2d\n        zip2            v29.2d, v10.2d, v14.2d\n        zip1            v30.2d, v11.2d, v15.2d\n        zip2            v31.2d, v11.2d, v15.2d\n        st1             { v28.4s, v29.4s, v30.4s, v31.4s }, [x1]\n\n        ldp             d12, d13, [sp, #16]\n        ldp             d10, d11, [sp, #16*2]\n        ldp             d8,  d9,  [sp, #16*3]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:23", "text": "zip2            v21.2d, v2.2d, v5.2d\n        zip1            v22.2d, v3.2d, v7.2d\n        zip2            v23.2d, v3.2d, v7.2d\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x1], #64\n\n        zip1            v24.2d, v8.2d, v12.2d\n        zip2            v25.2d, v8.2d, v12.2d\n        zip1            v26.2d, v9.2d, v13.2d\n        zip2            v27.2d, v9.2d, v13.2d\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x1], #64\n\n        zip1            v28.2d, v10.2d, v14.2d\n        zip2            v29.2d, v10.2d, v14.2d\n        zip1            v30.2d, v11.2d, v15.2d\n        zip2            v31.2d, v11.2d, v15.2d\n        st1             { v28.4s, v29.4s, v30.4s, v31.4s }, [x1]\n\n        ldp             d12, d13, [sp, #16]\n        ldp             d10, d11, [sp, #16*2]\n        ldp             d8,  d9,  [sp, #16*3]\n        ldp             d14, d15, [sp], #16*4\n\n        ret\nendfunc\n.endm\n\nFFT32_FN float,    0\nFFT32_FN ns_float, 1\n\n.macro cmp_imm reg, imm\n.if \\imm >= 4096\n        cmp             \\reg, #((\\imm)/4096), lsl #12\n.else\n        cmp             \\reg, #(\\imm)\n.endif\n.endm\n\n.macro SR_TRANSFORM_DEF len, next=0\n\\len:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #(\\len/4)\n        mov             x5, #((\\len*4) - (\\len/1))\n        add             x1, x1, x5\n        bl              32b\n        mov             x5, #((\\len*2) - (\\len/2))\n        add             x1, x1, x5\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        ldr             w5, =(\\len*6 + \\len/2)\n        sub             x1, x1, x5\n\n        SETUP_SR_RECOMB \\len, x7, x8, x9\n\n.if \\next\\() != 0\n        cmp_imm         w19, \\len\n        b.eq            0f\n\n        mov             w5, #(\\len/128)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:24", "text": "stp             x20, x30, [sp, #-16]!\n        mov             w20, #(\\len/4)\n        mov             x5, #((\\len*4) - (\\len/1))\n        add             x1, x1, x5\n        bl              32b\n        mov             x5, #((\\len*2) - (\\len/2))\n        add             x1, x1, x5\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        ldr             w5, =(\\len*6 + \\len/2)\n        sub             x1, x1, x5\n\n        SETUP_SR_RECOMB \\len, x7, x8, x9\n\n.if \\next\\() != 0\n        cmp_imm         w19, \\len\n        b.eq            0f\n\n        mov             w5, #(\\len/128)\n\\len\\()5:\n        SR_COMBINE_FULL \\len\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            \\len\\()5b\n\n        cmp_imm         w20, \\len\n        b.gt            \\next\\()f\n        ret\n.endif\n.endm\n\n.macro FFT_SPLIT_RADIX_FN name, no_perm\nfunction ff_tx_fft_sr_\\name\\()_neon, export=1\n        stp             x21, x22, [sp, #-16*6]!\n        stp             d8,  d9,  [sp, #16*5]\n        stp             d10, d11, [sp, #16*4]\n        stp             d12, d13, [sp, #16*3]\n        stp             d14, d15, [sp, #16*2]\n        stp             x19, x20, [sp, #16]\n\n        ldr             w19, [x0, #0] // global target\n        mov             w20, w19      // local length\n\n        LOAD_SUBADD\n        SETUP_LUT       \\no_perm\n\n32:\n        SETUP_SR_RECOMB 32, x7, x8, x9\n\n        LOAD_INPUT      0,  1,  2,  3,  x2, \\no_perm\n        LOAD_INPUT      4,  6,  5,  7,  x2, \\no_perm, 1\n        LOAD_INPUT      8,  9,  10, 11, x2, \\no_perm\n        LOAD_INPUT      12, 13, 14, 15, x2, \\no_perm\n\n        FFT8_X2         v8, v9, v10, v11, v12, v13, v14, v15\n        FFT16           v0, v1, v2, v3, v4, v6, v5, v7\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7,  \\\n                        v8,  v9,  v10, v11, v12, v13, v14, v15, \\", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:25", "text": "ldr             w19, [x0, #0] // global target\n        mov             w20, w19      // local length\n\n        LOAD_SUBADD\n        SETUP_LUT       \\no_perm\n\n32:\n        SETUP_SR_RECOMB 32, x7, x8, x9\n\n        LOAD_INPUT      0,  1,  2,  3,  x2, \\no_perm\n        LOAD_INPUT      4,  6,  5,  7,  x2, \\no_perm, 1\n        LOAD_INPUT      8,  9,  10, 11, x2, \\no_perm\n        LOAD_INPUT      12, 13, 14, 15, x2, \\no_perm\n\n        FFT8_X2         v8, v9, v10, v11, v12, v13, v14, v15\n        FFT16           v0, v1, v2, v3, v4, v6, v5, v7\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7,  \\\n                        v8,  v9,  v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8,  x9,  0\n\n        stp             q2,  q3,  [x1, #32*1]\n        stp             q6,  q7,  [x1, #32*3]\n        stp             q10, q11, [x1, #32*5]\n        stp             q14, q15, [x1, #32*7]\n\n        cmp             w20, #32\n        b.gt            64f\n\n        stp             q0,  q1,  [x1, #32*0]\n        stp             q4,  q5,  [x1, #32*2]\n        stp             q8,  q9,  [x1, #32*4]\n        stp             q12, q13, [x1, #32*6]\n\n        ret\n64:\n        SETUP_SR_RECOMB 64, x7, x8, x9\n\n        LOAD_INPUT      2,  3,  10, 11, x2, \\no_perm, 1\n        LOAD_INPUT      6,  14, 7,  15, x2, \\no_perm, 1\n\n        FFT16           v2, v3, v10, v11, v6, v14, v7, v15\n\n        LOAD_INPUT      16, 17, 18, 19, x2, \\no_perm\n        LOAD_INPUT      20, 22, 21, 23, x2, \\no_perm, 1\n\n        FFT16           v16, v17, v18, v19, v20, v22, v21, v23, \\\n                        v24, v25, v26, v27, v28, v29, v30\n\n        ld1             { v26.4s, v27.4s }, [x8], x9\n        ldp             q24, q25, [x7], #32\n\n        ext             v26.16b, v26.16b, v26.16b, #8\n        ext             v27.16b, v27.16b, v27.16b, #8\n\n        cmp             w19, #64\n        b.eq            2f // custom deinterleave\n\n        // TODO: investigate doing the 2 combines like in deinterleave", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:26", "text": "LOAD_INPUT      6,  14, 7,  15, x2, \\no_perm, 1\n\n        FFT16           v2, v3, v10, v11, v6, v14, v7, v15\n\n        LOAD_INPUT      16, 17, 18, 19, x2, \\no_perm\n        LOAD_INPUT      20, 22, 21, 23, x2, \\no_perm, 1\n\n        FFT16           v16, v17, v18, v19, v20, v22, v21, v23, \\\n                        v24, v25, v26, v27, v28, v29, v30\n\n        ld1             { v26.4s, v27.4s }, [x8], x9\n        ldp             q24, q25, [x7], #32\n\n        ext             v26.16b, v26.16b, v26.16b, #8\n        ext             v27.16b, v27.16b, v27.16b, #8\n\n        cmp             w19, #64\n        b.eq            2f // custom deinterleave\n\n        // TODO: investigate doing the 2 combines like in deinterleave\n        // TODO: experiment with spilling to gprs and converting to HALF or full\n        SR_COMBINE_LITE v0,  v1,  v8,  v9,  \\\n                        v2,  v3,  v16, v17, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, 0\n\n        stp             q0,  q1,  [x1, #32* 0]\n        stp             q8,  q9,  [x1, #32* 4]\n        stp             q2,  q3,  [x1, #32* 8]\n        stp             q16, q17, [x1, #32*12]\n\n        SR_COMBINE_HALF v4,  v5,  v12, v13, \\\n                        v6,  v7,  v20, v21, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, v0, v1, v8, 1\n\n        stp             q4,  q20, [x1, #32* 2]\n        stp             q12, q21, [x1, #32* 6]\n        stp             q6,  q5,  [x1, #32*10]\n        stp             q7,  q13, [x1, #32*14]\n\n        ldp             q2,  q3,  [x1, #32*1]\n        ldp             q6,  q7,  [x1, #32*3]\n        ldp             q12, q13, [x1, #32*5]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v2,  v3,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v8, v0, v1, v4, v5\n\n        stp             q2,  q3,  [x1, #32* 1]\n        stp             q6,  q7,  [x1, #32* 3]\n        stp             q12, q13, [x1, #32* 5]\n        stp             q16, q17, [x1, #32* 7]\n\n        stp             q10, q11, [x1, #32* 9]\n        stp             q18, q19, [x1, #32*11]\n        stp             q14, q15, [x1, #32*13]\n        stp             q22, q23, [x1, #32*15]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:27", "text": "ldp             q2,  q3,  [x1, #32*1]\n        ldp             q6,  q7,  [x1, #32*3]\n        ldp             q12, q13, [x1, #32*5]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v2,  v3,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v8, v0, v1, v4, v5\n\n        stp             q2,  q3,  [x1, #32* 1]\n        stp             q6,  q7,  [x1, #32* 3]\n        stp             q12, q13, [x1, #32* 5]\n        stp             q16, q17, [x1, #32* 7]\n\n        stp             q10, q11, [x1, #32* 9]\n        stp             q18, q19, [x1, #32*11]\n        stp             q14, q15, [x1, #32*13]\n        stp             q22, q23, [x1, #32*15]\n\n        cmp             w20, #64\n        b.gt            128f\n        ret\n128:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #32\n        add             x1, x1, #16*32\n        bl              32b\n        add             x1, x1, #8*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        sub             x1, x1, #24*32\n\n        SETUP_SR_RECOMB 128, x7, x8, x9\n\n        cmp             w19, #128\n        b.eq            0f\n\n        SR_COMBINE_FULL 128\n\n        cmp             w20, #128\n        b.gt            256f\n        ret\n256:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #64\n        add             x1, x1, #32*32\n        bl              32b\n        add             x1, x1, #16*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        sub             x1, x1, #48*32\n\n        SETUP_SR_RECOMB 256, x7, x8, x9", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:28", "text": "SR_COMBINE_FULL 128\n\n        cmp             w20, #128\n        b.gt            256f\n        ret\n256:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #64\n        add             x1, x1, #32*32\n        bl              32b\n        add             x1, x1, #16*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        sub             x1, x1, #48*32\n\n        SETUP_SR_RECOMB 256, x7, x8, x9\n\n        cmp             w19, #256\n        b.eq            0f\n\n        SR_COMBINE_FULL 256\n        SR_COMBINE_FULL 256, 8*32\n\n        cmp             w20, #256\n        b.gt            512f\n        ret\n512:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #128\n        add             x1, x1, #64*32\n        bl              32b\n        add             x1, x1, #32*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        sub             x1, x1, #96*32\n\n        SETUP_SR_RECOMB 512, x7, x8, x9\n\n        cmp             w19, #512\n        b.eq            0f\n\n        mov             x5, 4\n5125:\n        SR_COMBINE_FULL 512\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            5125b\n\n        cmp             w20, #512\n        b.gt            1024f\n\n        ret\n1024:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:29", "text": "SETUP_SR_RECOMB 512, x7, x8, x9\n\n        cmp             w19, #512\n        b.eq            0f\n\n        mov             x5, 4\n5125:\n        SR_COMBINE_FULL 512\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            5125b\n\n        cmp             w20, #512\n        b.gt            1024f\n\n        ret\n1024:\n        AARCH64_SIGN_LINK_REGISTER\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #256\n        add             x1, x1, #96*32\n        bl              32b\n        add             x1, x1, #64*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        AARCH64_VALIDATE_LINK_REGISTER\n        mov             x5, #192*32\n        sub             x1, x1, x5\n\n        SETUP_SR_RECOMB 1024, x7, x8, x9\n\n        cmp             w19, #1024\n        b.eq            0f\n\n        mov             w5, 8\n10245:\n        SR_COMBINE_FULL 1024\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            10245b\n\n        cmp             w20, #1024\n        b.gt            2048f\n\n        ret\n\nSR_TRANSFORM_DEF        2048, 4096\nSR_TRANSFORM_DEF        4096, 8192\nSR_TRANSFORM_DEF        8192, 16384\nSR_TRANSFORM_DEF        16384, 32768\nSR_TRANSFORM_DEF        32768, 65536\nSR_TRANSFORM_DEF        65536, 131072\nSR_TRANSFORM_DEF        131072\n\n0: // general deinterleave loop\n        SR_COMBINE_DINT\n        add             x1, x1, #32*8\n        subs            w19, w19, #32*4\n        b.gt            0b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:30", "text": "b.gt            10245b\n\n        cmp             w20, #1024\n        b.gt            2048f\n\n        ret\n\nSR_TRANSFORM_DEF        2048, 4096\nSR_TRANSFORM_DEF        4096, 8192\nSR_TRANSFORM_DEF        8192, 16384\nSR_TRANSFORM_DEF        16384, 32768\nSR_TRANSFORM_DEF        32768, 65536\nSR_TRANSFORM_DEF        65536, 131072\nSR_TRANSFORM_DEF        131072\n\n0: // general deinterleave loop\n        SR_COMBINE_DINT\n        add             x1, x1, #32*8\n        subs            w19, w19, #32*4\n        b.gt            0b\n\n        ldp             x19, x20, [sp, #16]\n        ldp             d14, d15, [sp, #16*2]\n        ldp             d12, d13, [sp, #16*3]\n        ldp             d10, d11, [sp, #16*4]\n        ldp             d8,  d9,  [sp, #16*5]\n        ldp             x21, x22, [sp], #16*6\n\n        ret\n\n2: // special case for 64 point deinterleave\n        mov             x10, v23.d[0]\n        mov             x11, v23.d[1]\n\n        SR_COMBINE_LITE v0,  v1,  v8,  v9,  \\\n                        v2,  v3,  v16, v17, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, 0\n\n        SR_COMBINE_HALF v4,  v5,  v12, v13, \\\n                        v6,  v7,  v20, v21, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, v23, v24, v26, 1\n\n        zip1            v23.2d, v0.2d, v4.2d\n        zip2            v24.2d, v0.2d, v4.2d\n        zip1            v25.2d, v1.2d, v20.2d\n        zip2            v26.2d, v1.2d, v20.2d\n\n        zip1            v27.2d, v8.2d, v12.2d\n        zip2            v28.2d, v8.2d, v12.2d\n        zip1            v29.2d, v9.2d, v21.2d\n        zip2            v30.2d, v9.2d, v21.2d\n\n        mov             v20.16b, v5.16b\n        mov             v21.16b, v7.16b\n        mov             x12, x1\n        add             x13, x1, #32* 4\n        add             x14, x1, #32* 8\n        add             x15, x1, #32*12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:31", "text": "v6,  v7,  v20, v21, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, v23, v24, v26, 1\n\n        zip1            v23.2d, v0.2d, v4.2d\n        zip2            v24.2d, v0.2d, v4.2d\n        zip1            v25.2d, v1.2d, v20.2d\n        zip2            v26.2d, v1.2d, v20.2d\n\n        zip1            v27.2d, v8.2d, v12.2d\n        zip2            v28.2d, v8.2d, v12.2d\n        zip1            v29.2d, v9.2d, v21.2d\n        zip2            v30.2d, v9.2d, v21.2d\n\n        mov             v20.16b, v5.16b\n        mov             v21.16b, v7.16b\n        mov             x12, x1\n        add             x13, x1, #32* 4\n        add             x14, x1, #32* 8\n        add             x15, x1, #32*12\n\n        zip1            v4.2d,  v2.2d, v6.2d\n        zip2            v5.2d,  v2.2d, v6.2d\n        zip1            v6.2d,  v3.2d, v20.2d\n        zip2            v7.2d,  v3.2d, v20.2d\n\n        zip1            v0.2d, v16.2d, v21.2d\n        zip2            v1.2d, v16.2d, v21.2d\n        zip1            v2.2d, v17.2d, v13.2d\n        zip2            v3.2d, v17.2d, v13.2d\n\n        // stp is faster by a little on A53, but this is faster on M1s (theory)\n        ldp             q8,  q9, [x1, #32*1]\n        ldp             q12, q13, [x1, #32*5]\n\n        st1             { v23.4s, v24.4s, v25.4s, v26.4s }, [x12], #64  // 32* 0...1\n        st1             { v27.4s, v28.4s, v29.4s, v30.4s }, [x13], #64  // 32* 4...5\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x14], #64  // 32* 8...9\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x15], #64  // 32*12..13\n\n        mov             v23.d[0], x10\n        mov             v23.d[1], x11\n\n        ldp             q6,  q7, [x1, #32*3]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v8,  v9,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v4, v0, v1, v5, v20\n\n        zip1            v0.2d, v8.2d, v6.2d\n        zip2            v1.2d, v8.2d, v6.2d\n        zip1            v2.2d, v9.2d, v7.2d\n        zip2            v3.2d, v9.2d, v7.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x12]\n\n        zip1            v4.2d, v12.2d, v16.2d\n        zip2            v5.2d, v12.2d, v16.2d\n        zip1            v6.2d, v13.2d, v17.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1201, "line_end": 1260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:32", "text": "mov             v23.d[0], x10\n        mov             v23.d[1], x11\n\n        ldp             q6,  q7, [x1, #32*3]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v8,  v9,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v4, v0, v1, v5, v20\n\n        zip1            v0.2d, v8.2d, v6.2d\n        zip2            v1.2d, v8.2d, v6.2d\n        zip1            v2.2d, v9.2d, v7.2d\n        zip2            v3.2d, v9.2d, v7.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x12]\n\n        zip1            v4.2d, v12.2d, v16.2d\n        zip2            v5.2d, v12.2d, v16.2d\n        zip1            v6.2d, v13.2d, v17.2d\n        zip2            v7.2d, v13.2d, v17.2d\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x13]\n\n        zip1            v0.2d, v10.2d, v18.2d\n        zip2            v1.2d, v10.2d, v18.2d\n        zip1            v2.2d, v11.2d, v19.2d\n        zip2            v3.2d, v11.2d, v19.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x14]\n\n        zip1            v4.2d, v14.2d, v22.2d\n        zip2            v5.2d, v14.2d, v22.2d\n        zip1            v6.2d, v15.2d, v23.2d\n        zip2            v7.2d, v15.2d, v23.2d\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x15]\n\n        ldp             x19, x20, [sp, #16]\n        ldp             d14, d15, [sp, #16*2]\n        ldp             d12, d13, [sp, #16*3]\n        ldp             d10, d11, [sp, #16*4]\n        ldp             d8,  d9,  [sp, #16*5]\n        ldp             x21, x22, [sp], #16*6\n\n        ret\nendfunc\n.endm\n\nFFT_SPLIT_RADIX_FN float, 0\nFFT_SPLIT_RADIX_FN ns_float, 1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/aarch64/tx_float_neon.S", "line_start": 1241, "line_end": 1288}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:23", "text": "zip2            v21.2d, v2.2d, v5.2d\n        zip1            v22.2d, v3.2d, v7.2d\n        zip2            v23.2d, v3.2d, v7.2d\n        st1             { v20.4s, v21.4s, v22.4s, v23.4s }, [x1], #64\n\n        zip1            v24.2d, v8.2d, v12.2d\n        zip2            v25.2d, v8.2d, v12.2d\n        zip1            v26.2d, v9.2d, v13.2d\n        zip2            v27.2d, v9.2d, v13.2d\n        st1             { v24.4s, v25.4s, v26.4s, v27.4s }, [x1], #64\n\n        zip1            v28.2d, v10.2d, v14.2d\n        zip2            v29.2d, v10.2d, v14.2d\n        zip1            v30.2d, v11.2d, v15.2d\n        zip2            v31.2d, v11.2d, v15.2d\n        st1             { v28.4s, v29.4s, v30.4s, v31.4s }, [x1]\n\n        ldp             d12, d13, [sp, #16]\n        ldp             d10, d11, [sp, #16*2]\n        ldp             d8,  d9,  [sp, #16*3]\n        ldp             d14, d15, [sp], #16*4\n\n        ret\nendfunc\n.endm\n\nFFT32_FN float,    0\nFFT32_FN ns_float, 1\n\n.macro cmp_imm reg, imm\n.if \\imm >= 4096\n        cmp             \\reg, #((\\imm)/4096), lsl #12\n.else\n        cmp             \\reg, #(\\imm)\n.endif\n.endm\n\n.macro SR_TRANSFORM_DEF len, next=0\n\\len:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #(\\len/4)\n        mov             x5, #((\\len*4) - (\\len/1))\n        add             x1, x1, x5\n        bl              32b\n        mov             x5, #((\\len*2) - (\\len/2))\n        add             x1, x1, x5\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        ldr             w5, =(\\len*6 + \\len/2)\n        sub             x1, x1, x5\n\n        SETUP_SR_RECOMB \\len, x7, x8, x9\n\n.if \\next\\() != 0\n        cmp_imm         w19, \\len\n        b.eq            0f\n\n        mov             w5, #(\\len/128)\n\\len\\()5:\n        SR_COMBINE_FULL \\len", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:24", "text": "mov             w20, #(\\len/4)\n        mov             x5, #((\\len*4) - (\\len/1))\n        add             x1, x1, x5\n        bl              32b\n        mov             x5, #((\\len*2) - (\\len/2))\n        add             x1, x1, x5\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        ldr             w5, =(\\len*6 + \\len/2)\n        sub             x1, x1, x5\n\n        SETUP_SR_RECOMB \\len, x7, x8, x9\n\n.if \\next\\() != 0\n        cmp_imm         w19, \\len\n        b.eq            0f\n\n        mov             w5, #(\\len/128)\n\\len\\()5:\n        SR_COMBINE_FULL \\len\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            \\len\\()5b\n\n        cmp_imm         w20, \\len\n        b.gt            \\next\\()f\n        ret\n.endif\n.endm\n\n.macro FFT_SPLIT_RADIX_FN name, no_perm\nfunction ff_tx_fft_sr_\\name\\()_neon, export=1\n        stp             x21, x22, [sp, #-16*6]!\n        stp             d8,  d9,  [sp, #16*5]\n        stp             d10, d11, [sp, #16*4]\n        stp             d12, d13, [sp, #16*3]\n        stp             d14, d15, [sp, #16*2]\n        stp             x19, x20, [sp, #16]\n\n        ldr             w19, [x0, #0] // global target\n        mov             w20, w19      // local length\n\n        LOAD_SUBADD\n        SETUP_LUT       \\no_perm\n\n32:\n        SETUP_SR_RECOMB 32, x7, x8, x9\n\n        LOAD_INPUT      0,  1,  2,  3,  x2, \\no_perm\n        LOAD_INPUT      4,  6,  5,  7,  x2, \\no_perm, 1\n        LOAD_INPUT      8,  9,  10, 11, x2, \\no_perm\n        LOAD_INPUT      12, 13, 14, 15, x2, \\no_perm\n\n        FFT8_X2         v8, v9, v10, v11, v12, v13, v14, v15\n        FFT16           v0, v1, v2, v3, v4, v6, v5, v7\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7,  \\\n                        v8,  v9,  v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8,  x9,  0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:25", "text": "mov             w20, w19      // local length\n\n        LOAD_SUBADD\n        SETUP_LUT       \\no_perm\n\n32:\n        SETUP_SR_RECOMB 32, x7, x8, x9\n\n        LOAD_INPUT      0,  1,  2,  3,  x2, \\no_perm\n        LOAD_INPUT      4,  6,  5,  7,  x2, \\no_perm, 1\n        LOAD_INPUT      8,  9,  10, 11, x2, \\no_perm\n        LOAD_INPUT      12, 13, 14, 15, x2, \\no_perm\n\n        FFT8_X2         v8, v9, v10, v11, v12, v13, v14, v15\n        FFT16           v0, v1, v2, v3, v4, v6, v5, v7\n\n        SR_COMBINE      v0,  v1,  v2,  v3,  v4,  v6,  v5,  v7,  \\\n                        v8,  v9,  v10, v11, v12, v13, v14, v15, \\\n                        x7,  x8,  x9,  0\n\n        stp             q2,  q3,  [x1, #32*1]\n        stp             q6,  q7,  [x1, #32*3]\n        stp             q10, q11, [x1, #32*5]\n        stp             q14, q15, [x1, #32*7]\n\n        cmp             w20, #32\n        b.gt            64f\n\n        stp             q0,  q1,  [x1, #32*0]\n        stp             q4,  q5,  [x1, #32*2]\n        stp             q8,  q9,  [x1, #32*4]\n        stp             q12, q13, [x1, #32*6]\n\n        ret\n64:\n        SETUP_SR_RECOMB 64, x7, x8, x9\n\n        LOAD_INPUT      2,  3,  10, 11, x2, \\no_perm, 1\n        LOAD_INPUT      6,  14, 7,  15, x2, \\no_perm, 1\n\n        FFT16           v2, v3, v10, v11, v6, v14, v7, v15\n\n        LOAD_INPUT      16, 17, 18, 19, x2, \\no_perm\n        LOAD_INPUT      20, 22, 21, 23, x2, \\no_perm, 1\n\n        FFT16           v16, v17, v18, v19, v20, v22, v21, v23, \\\n                        v24, v25, v26, v27, v28, v29, v30\n\n        ld1             { v26.4s, v27.4s }, [x8], x9\n        ldp             q24, q25, [x7], #32\n\n        ext             v26.16b, v26.16b, v26.16b, #8\n        ext             v27.16b, v27.16b, v27.16b, #8\n\n        cmp             w19, #64\n        b.eq            2f // custom deinterleave\n\n        // TODO: investigate doing the 2 combines like in deinterleave\n        // TODO: experiment with spilling to gprs and converting to HALF or full\n        SR_COMBINE_LITE v0,  v1,  v8,  v9,  \\", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:26", "text": "FFT16           v2, v3, v10, v11, v6, v14, v7, v15\n\n        LOAD_INPUT      16, 17, 18, 19, x2, \\no_perm\n        LOAD_INPUT      20, 22, 21, 23, x2, \\no_perm, 1\n\n        FFT16           v16, v17, v18, v19, v20, v22, v21, v23, \\\n                        v24, v25, v26, v27, v28, v29, v30\n\n        ld1             { v26.4s, v27.4s }, [x8], x9\n        ldp             q24, q25, [x7], #32\n\n        ext             v26.16b, v26.16b, v26.16b, #8\n        ext             v27.16b, v27.16b, v27.16b, #8\n\n        cmp             w19, #64\n        b.eq            2f // custom deinterleave\n\n        // TODO: investigate doing the 2 combines like in deinterleave\n        // TODO: experiment with spilling to gprs and converting to HALF or full\n        SR_COMBINE_LITE v0,  v1,  v8,  v9,  \\\n                        v2,  v3,  v16, v17, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, 0\n\n        stp             q0,  q1,  [x1, #32* 0]\n        stp             q8,  q9,  [x1, #32* 4]\n        stp             q2,  q3,  [x1, #32* 8]\n        stp             q16, q17, [x1, #32*12]\n\n        SR_COMBINE_HALF v4,  v5,  v12, v13, \\\n                        v6,  v7,  v20, v21, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, v0, v1, v8, 1\n\n        stp             q4,  q20, [x1, #32* 2]\n        stp             q12, q21, [x1, #32* 6]\n        stp             q6,  q5,  [x1, #32*10]\n        stp             q7,  q13, [x1, #32*14]\n\n        ldp             q2,  q3,  [x1, #32*1]\n        ldp             q6,  q7,  [x1, #32*3]\n        ldp             q12, q13, [x1, #32*5]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v2,  v3,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v8, v0, v1, v4, v5\n\n        stp             q2,  q3,  [x1, #32* 1]\n        stp             q6,  q7,  [x1, #32* 3]\n        stp             q12, q13, [x1, #32* 5]\n        stp             q16, q17, [x1, #32* 7]\n\n        stp             q10, q11, [x1, #32* 9]\n        stp             q18, q19, [x1, #32*11]\n        stp             q14, q15, [x1, #32*13]\n        stp             q22, q23, [x1, #32*15]\n\n        cmp             w20, #64", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:27", "text": "ldp             q6,  q7,  [x1, #32*3]\n        ldp             q12, q13, [x1, #32*5]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v2,  v3,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v8, v0, v1, v4, v5\n\n        stp             q2,  q3,  [x1, #32* 1]\n        stp             q6,  q7,  [x1, #32* 3]\n        stp             q12, q13, [x1, #32* 5]\n        stp             q16, q17, [x1, #32* 7]\n\n        stp             q10, q11, [x1, #32* 9]\n        stp             q18, q19, [x1, #32*11]\n        stp             q14, q15, [x1, #32*13]\n        stp             q22, q23, [x1, #32*15]\n\n        cmp             w20, #64\n        b.gt            128f\n        ret\n128:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #32\n        add             x1, x1, #16*32\n        bl              32b\n        add             x1, x1, #8*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        sub             x1, x1, #24*32\n\n        SETUP_SR_RECOMB 128, x7, x8, x9\n\n        cmp             w19, #128\n        b.eq            0f\n\n        SR_COMBINE_FULL 128\n\n        cmp             w20, #128\n        b.gt            256f\n        ret\n256:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #64\n        add             x1, x1, #32*32\n        bl              32b\n        add             x1, x1, #16*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        sub             x1, x1, #48*32\n\n        SETUP_SR_RECOMB 256, x7, x8, x9\n\n        cmp             w19, #256\n        b.eq            0f\n\n        SR_COMBINE_FULL 256\n        SR_COMBINE_FULL 256, 8*32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:28", "text": "b.gt            256f\n        ret\n256:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #64\n        add             x1, x1, #32*32\n        bl              32b\n        add             x1, x1, #16*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        sub             x1, x1, #48*32\n\n        SETUP_SR_RECOMB 256, x7, x8, x9\n\n        cmp             w19, #256\n        b.eq            0f\n\n        SR_COMBINE_FULL 256\n        SR_COMBINE_FULL 256, 8*32\n\n        cmp             w20, #256\n        b.gt            512f\n        ret\n512:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #128\n        add             x1, x1, #64*32\n        bl              32b\n        add             x1, x1, #32*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        sub             x1, x1, #96*32\n\n        SETUP_SR_RECOMB 512, x7, x8, x9\n\n        cmp             w19, #512\n        b.eq            0f\n\n        mov             x5, 4\n5125:\n        SR_COMBINE_FULL 512\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            5125b\n\n        cmp             w20, #512\n        b.gt            1024f\n\n        ret\n1024:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #256\n        add             x1, x1, #96*32\n        bl              32b\n        add             x1, x1, #64*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        mov             x5, #192*32\n        sub             x1, x1, x5", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:29", "text": "SR_COMBINE_FULL 512\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            5125b\n\n        cmp             w20, #512\n        b.gt            1024f\n\n        ret\n1024:\n        stp             x20, x30, [sp, #-16]!\n        mov             w20, #256\n        add             x1, x1, #96*32\n        bl              32b\n        add             x1, x1, #64*32\n        bl              32b\n        ldp             x20, x30, [sp], #16\n        mov             x5, #192*32\n        sub             x1, x1, x5\n\n        SETUP_SR_RECOMB 1024, x7, x8, x9\n\n        cmp             w19, #1024\n        b.eq            0f\n\n        mov             w5, 8\n10245:\n        SR_COMBINE_FULL 1024\n        add             x1, x1, 8*32\n        subs            w5, w5, 1\n        b.gt            10245b\n\n        cmp             w20, #1024\n        b.gt            2048f\n\n        ret\n\nSR_TRANSFORM_DEF        2048, 4096\nSR_TRANSFORM_DEF        4096, 8192\nSR_TRANSFORM_DEF        8192, 16384\nSR_TRANSFORM_DEF        16384, 32768\nSR_TRANSFORM_DEF        32768, 65536\nSR_TRANSFORM_DEF        65536, 131072\nSR_TRANSFORM_DEF        131072\n\n0: // general deinterleave loop\n        SR_COMBINE_DINT\n        add             x1, x1, #32*8\n        subs            w19, w19, #32*4\n        b.gt            0b\n\n        ldp             x19, x20, [sp, #16]\n        ldp             d14, d15, [sp, #16*2]\n        ldp             d12, d13, [sp, #16*3]\n        ldp             d10, d11, [sp, #16*4]\n        ldp             d8,  d9,  [sp, #16*5]\n        ldp             x21, x22, [sp], #16*6\n\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:30", "text": "SR_TRANSFORM_DEF        16384, 32768\nSR_TRANSFORM_DEF        32768, 65536\nSR_TRANSFORM_DEF        65536, 131072\nSR_TRANSFORM_DEF        131072\n\n0: // general deinterleave loop\n        SR_COMBINE_DINT\n        add             x1, x1, #32*8\n        subs            w19, w19, #32*4\n        b.gt            0b\n\n        ldp             x19, x20, [sp, #16]\n        ldp             d14, d15, [sp, #16*2]\n        ldp             d12, d13, [sp, #16*3]\n        ldp             d10, d11, [sp, #16*4]\n        ldp             d8,  d9,  [sp, #16*5]\n        ldp             x21, x22, [sp], #16*6\n\n        ret\n\n2: // special case for 64 point deinterleave\n        mov             x10, v23.d[0]\n        mov             x11, v23.d[1]\n\n        SR_COMBINE_LITE v0,  v1,  v8,  v9,  \\\n                        v2,  v3,  v16, v17, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, 0\n\n        SR_COMBINE_HALF v4,  v5,  v12, v13, \\\n                        v6,  v7,  v20, v21, \\\n                        v24, v25, v26, v27, \\\n                        v28, v29, v30, v23, v24, v26, 1\n\n        zip1            v23.2d, v0.2d, v4.2d\n        zip2            v24.2d, v0.2d, v4.2d\n        zip1            v25.2d, v1.2d, v20.2d\n        zip2            v26.2d, v1.2d, v20.2d\n\n        zip1            v27.2d, v8.2d, v12.2d\n        zip2            v28.2d, v8.2d, v12.2d\n        zip1            v29.2d, v9.2d, v21.2d\n        zip2            v30.2d, v9.2d, v21.2d\n\n        mov             v20.16b, v5.16b\n        mov             v21.16b, v7.16b\n        mov             x12, x1\n        add             x13, x1, #32* 4\n        add             x14, x1, #32* 8\n        add             x15, x1, #32*12\n\n        zip1            v4.2d,  v2.2d, v6.2d\n        zip2            v5.2d,  v2.2d, v6.2d\n        zip1            v6.2d,  v3.2d, v20.2d\n        zip2            v7.2d,  v3.2d, v20.2d\n\n        zip1            v0.2d, v16.2d, v21.2d\n        zip2            v1.2d, v16.2d, v21.2d\n        zip1            v2.2d, v17.2d, v13.2d\n        zip2            v3.2d, v17.2d, v13.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:31", "text": "zip2            v28.2d, v8.2d, v12.2d\n        zip1            v29.2d, v9.2d, v21.2d\n        zip2            v30.2d, v9.2d, v21.2d\n\n        mov             v20.16b, v5.16b\n        mov             v21.16b, v7.16b\n        mov             x12, x1\n        add             x13, x1, #32* 4\n        add             x14, x1, #32* 8\n        add             x15, x1, #32*12\n\n        zip1            v4.2d,  v2.2d, v6.2d\n        zip2            v5.2d,  v2.2d, v6.2d\n        zip1            v6.2d,  v3.2d, v20.2d\n        zip2            v7.2d,  v3.2d, v20.2d\n\n        zip1            v0.2d, v16.2d, v21.2d\n        zip2            v1.2d, v16.2d, v21.2d\n        zip1            v2.2d, v17.2d, v13.2d\n        zip2            v3.2d, v17.2d, v13.2d\n\n        // stp is faster by a little on A53, but this is faster on M1s (theory)\n        ldp             q8,  q9, [x1, #32*1]\n        ldp             q12, q13, [x1, #32*5]\n\n        st1             { v23.4s, v24.4s, v25.4s, v26.4s }, [x12], #64  // 32* 0...1\n        st1             { v27.4s, v28.4s, v29.4s, v30.4s }, [x13], #64  // 32* 4...5\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x14], #64  // 32* 8...9\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x15], #64  // 32*12..13\n\n        mov             v23.d[0], x10\n        mov             v23.d[1], x11\n\n        ldp             q6,  q7, [x1, #32*3]\n        ldp             q16, q17, [x1, #32*7]\n\n        SR_COMBINE      v8,  v9,  v12, v13, v6,  v16, v7,  v17, \\\n                        v10, v11, v14, v15, v18, v19, v22, v23, \\\n                        x7,  x8,  x9,  0, \\\n                        v24, v25, v26, v27, v28, v29, v30, v4, v0, v1, v5, v20\n\n        zip1            v0.2d, v8.2d, v6.2d\n        zip2            v1.2d, v8.2d, v6.2d\n        zip1            v2.2d, v9.2d, v7.2d\n        zip2            v3.2d, v9.2d, v7.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x12]\n\n        zip1            v4.2d, v12.2d, v16.2d\n        zip2            v5.2d, v12.2d, v16.2d\n        zip1            v6.2d, v13.2d, v17.2d\n        zip2            v7.2d, v13.2d, v17.2d\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x13]\n\n        zip1            v0.2d, v10.2d, v18.2d\n        zip2            v1.2d, v10.2d, v18.2d\n        zip1            v2.2d, v11.2d, v19.2d\n        zip2            v3.2d, v11.2d, v19.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x14]\n\n        zip1            v4.2d, v14.2d, v22.2d", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1201, "line_end": 1260}
{"id": "FFmpeg/FFmpeg:libavutil/aarch64/tx_float_neon.S:32", "text": "zip1            v0.2d, v8.2d, v6.2d\n        zip2            v1.2d, v8.2d, v6.2d\n        zip1            v2.2d, v9.2d, v7.2d\n        zip2            v3.2d, v9.2d, v7.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x12]\n\n        zip1            v4.2d, v12.2d, v16.2d\n        zip2            v5.2d, v12.2d, v16.2d\n        zip1            v6.2d, v13.2d, v17.2d\n        zip2            v7.2d, v13.2d, v17.2d\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x13]\n\n        zip1            v0.2d, v10.2d, v18.2d\n        zip2            v1.2d, v10.2d, v18.2d\n        zip1            v2.2d, v11.2d, v19.2d\n        zip2            v3.2d, v11.2d, v19.2d\n        st1             {  v0.4s,  v1.4s,  v2.4s,  v3.4s }, [x14]\n\n        zip1            v4.2d, v14.2d, v22.2d\n        zip2            v5.2d, v14.2d, v22.2d\n        zip1            v6.2d, v15.2d, v23.2d\n        zip2            v7.2d, v15.2d, v23.2d\n        st1             {  v4.4s,  v5.4s,  v6.4s,  v7.4s }, [x15]\n\n        ldp             x19, x20, [sp, #16]\n        ldp             d14, d15, [sp, #16*2]\n        ldp             d12, d13, [sp, #16*3]\n        ldp             d10, d11, [sp, #16*4]\n        ldp             d8,  d9,  [sp, #16*5]\n        ldp             x21, x22, [sp], #16*6\n\n        ret\nendfunc\n.endm\n\nFFT_SPLIT_RADIX_FN float, 0\nFFT_SPLIT_RADIX_FN ns_float, 1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/aarch64/tx_float_neon.S", "license": "LGPL-2.1", "commit": "9993a64d7bcd5baa730d1ff95f6ab4d5a49af369", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9993a64d7bcd5baa730d1ff95f6ab4d5a49af369/libavutil/aarch64/tx_float_neon.S", "line_start": 1241, "line_end": 1278}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:2", "text": "#endif\n\n#if HAVE_AS_FPU_DIRECTIVE\n#   define FPU\n#else\n#   define FPU @\n#endif\n\n#if CONFIG_THUMB && defined(__APPLE__)\n#   define TFUNC\n#else\n#   define TFUNC @\n#endif\n\n#if HAVE_AS_ARCH_DIRECTIVE\n#if   HAVE_NEON\n        .arch           armv7-a\n#elif HAVE_ARMV6T2\n        .arch           armv6t2\n#elif HAVE_ARMV6\n        .arch           armv6\n#elif HAVE_ARMV5TE\n        .arch           armv5te\n#endif\n#endif\n#if   HAVE_AS_OBJECT_ARCH\nELF     .object_arch    armv4\n#endif\n\n#if   HAVE_NEON\nFPU     .fpu            neon\nELF     .eabi_attribute 10, 0           @ suppress Tag_FP_arch\nELF     .eabi_attribute 12, 0           @ suppress Tag_Advanced_SIMD_arch\n#elif HAVE_VFP\nFPU     .fpu            vfp\nELF     .eabi_attribute 10, 0           @ suppress Tag_FP_arch\n#endif\n\n        .syntax unified\nT       .thumb\nELF     .eabi_attribute 25, 1           @ Tag_ABI_align_preserved\nELF     .section .note.GNU-stack,\"\",%progbits @ Mark stack as non-executable\n\n.macro  function name, export=0, align=2\n        .set            .Lpic_idx, 0\n        .set            .Lpic_gp, 0\n    .macro endfunc\n      .if .Lpic_idx\n        .align          2\n        .altmacro\n        put_pic         %(.Lpic_idx - 1)\n        .noaltmacro\n      .endif\n      .if .Lpic_gp\n        .unreq          gp\n      .endif\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:3", "text": "ELF     .eabi_attribute 25, 1           @ Tag_ABI_align_preserved\nELF     .section .note.GNU-stack,\"\",%progbits @ Mark stack as non-executable\n\n.macro  function name, export=0, align=2\n        .set            .Lpic_idx, 0\n        .set            .Lpic_gp, 0\n    .macro endfunc\n      .if .Lpic_idx\n        .align          2\n        .altmacro\n        put_pic         %(.Lpic_idx - 1)\n        .noaltmacro\n      .endif\n      .if .Lpic_gp\n        .unreq          gp\n      .endif\nELF     .size   \\name, . - \\name\nFUNC    .endfunc\n        .purgem endfunc\n    .endm\n        .text\n        .align          \\align\n    .if \\export\n        .global EXTERN_ASM\\name\nELF     .type   EXTERN_ASM\\name, %function\nFUNC    .func   EXTERN_ASM\\name\nTFUNC   .thumb_func EXTERN_ASM\\name\nEXTERN_ASM\\name:\n    .else\nELF     .type   \\name, %function\nFUNC    .func   \\name\nTFUNC   .thumb_func \\name\n\\name:\n    .endif\n.endm\n\n.macro  const   name, align=2, relocate=0\n    .macro endconst\nELF     .size   \\name, . - \\name\n        .purgem endconst\n    .endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n#if !HAVE_ARMV6T2_EXTERNAL\n.macro  movw    rd, val", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:4", "text": ".endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n#if !HAVE_ARMV6T2_EXTERNAL\n.macro  movw    rd, val\n        mov             \\rd, \\val &  255\n        orr             \\rd, \\val & ~255\n.endm\n#endif\n\n.macro  mov32   rd, val\n#if HAVE_ARMV6T2_EXTERNAL\n        movw            \\rd, #(\\val) & 0xffff\n    .if (\\val) >> 16\n        movt            \\rd, #(\\val) >> 16\n    .endif\n#else\n        ldr             \\rd, =\\val\n#endif\n.endm\n\n.macro  put_pic         num\n        put_pic_\\num\n.endm\n\n.macro  do_def_pic      num, val, label\n    .macro put_pic_\\num\n      .if \\num\n        .altmacro\n        put_pic         %(\\num - 1)\n        .noaltmacro\n      .endif\n\\label: .word           \\val\n        .purgem         put_pic_\\num\n    .endm\n.endm\n\n.macro  def_pic         val, label\n        .altmacro\n        do_def_pic      %.Lpic_idx, \\val, \\label\n        .noaltmacro\n        .set            .Lpic_idx, .Lpic_idx + 1\n.endm\n\n.macro  ldpic           rd,  val, indir=0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:5", "text": ".macro  do_def_pic      num, val, label\n    .macro put_pic_\\num\n      .if \\num\n        .altmacro\n        put_pic         %(\\num - 1)\n        .noaltmacro\n      .endif\n\\label: .word           \\val\n        .purgem         put_pic_\\num\n    .endm\n.endm\n\n.macro  def_pic         val, label\n        .altmacro\n        do_def_pic      %.Lpic_idx, \\val, \\label\n        .noaltmacro\n        .set            .Lpic_idx, .Lpic_idx + 1\n.endm\n\n.macro  ldpic           rd,  val, indir=0\n        ldr             \\rd, .Lpicoff\\@\n.Lpic\\@:\n    .if \\indir\nA       ldr             \\rd, [pc, \\rd]\nT       add             \\rd, pc\nT       ldr             \\rd, [\\rd]\n    .else\n        add             \\rd, pc\n    .endif\n        def_pic         \\val - (.Lpic\\@ + (8 >> CONFIG_THUMB)), .Lpicoff\\@\n.endm\n\n.macro  movrel rd, val\n#if CONFIG_PIC\n        ldpic           \\rd, \\val\n#elif HAVE_ARMV6T2_EXTERNAL && !defined(__APPLE__)\n        movw            \\rd, #:lower16:\\val\n        movt            \\rd, #:upper16:\\val\n#else\n        ldr             \\rd, =\\val\n#endif\n.endm\n\n.macro  movrelx         rd,  val, gp\n    .ifc \\rd,\\gp\n        .error      \"movrelx needs two distinct registers\"\n    .endif\n    .ifc \\rd\\()_\\gp,r12_\n        .warning    \"movrelx rd=\\rd without explicit set gp\"\n    .endif\n    .ifc \\rd\\()_\\gp,ip_\n        .warning    \"movrelx rd=\\rd without explicit set gp\"\n    .endif\n#if CONFIG_PIC && defined(__ELF__)\n    .ifnb \\gp\n      .if .Lpic_gp\n        .unreq          gp\n      .endif\n        gp      .req    \\gp\n        ldpic           gp,  _GLOBAL_OFFSET_TABLE_", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:6", "text": "#endif\n.endm\n\n.macro  movrelx         rd,  val, gp\n    .ifc \\rd,\\gp\n        .error      \"movrelx needs two distinct registers\"\n    .endif\n    .ifc \\rd\\()_\\gp,r12_\n        .warning    \"movrelx rd=\\rd without explicit set gp\"\n    .endif\n    .ifc \\rd\\()_\\gp,ip_\n        .warning    \"movrelx rd=\\rd without explicit set gp\"\n    .endif\n#if CONFIG_PIC && defined(__ELF__)\n    .ifnb \\gp\n      .if .Lpic_gp\n        .unreq          gp\n      .endif\n        gp      .req    \\gp\n        ldpic           gp,  _GLOBAL_OFFSET_TABLE_\n    .elseif !.Lpic_gp\n        gp      .req    r12\n        ldpic           gp,  _GLOBAL_OFFSET_TABLE_\n    .endif\n        .set            .Lpic_gp, 1\n        ldr             \\rd, .Lpicoff\\@\n        ldr             \\rd, [gp, \\rd]\n        def_pic         \\val(GOT), .Lpicoff\\@\n#elif CONFIG_PIC && defined(__APPLE__)\n        ldpic           \\rd, .Lpic\\@, indir=1\n        .non_lazy_symbol_pointer\n.Lpic\\@:\n        .indirect_symbol \\val\n        .word           0\n        .text\n#else\n        movrel          \\rd, \\val\n#endif\n.endm\n\n.macro  add_sh          rd,  rn,  rm,  sh:vararg\nA       add             \\rd, \\rn, \\rm, \\sh\nT       mov             \\rm, \\rm, \\sh\nT       add             \\rd, \\rn, \\rm\n.endm\n\n.macro  ldr_pre         rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn, \\rm]!\nT       add             \\rn, \\rn, \\rm\nT       ldr             \\rt, [\\rn]\n.endm\n\n.macro  ldr_dpre        rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn, -\\rm]!\nT       sub             \\rn, \\rn, \\rm\nT       ldr             \\rt, [\\rn]\n.endm\n\n.macro  ldr_nreg        rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn, -\\rm]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:7", "text": ".macro  add_sh          rd,  rn,  rm,  sh:vararg\nA       add             \\rd, \\rn, \\rm, \\sh\nT       mov             \\rm, \\rm, \\sh\nT       add             \\rd, \\rn, \\rm\n.endm\n\n.macro  ldr_pre         rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn, \\rm]!\nT       add             \\rn, \\rn, \\rm\nT       ldr             \\rt, [\\rn]\n.endm\n\n.macro  ldr_dpre        rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn, -\\rm]!\nT       sub             \\rn, \\rn, \\rm\nT       ldr             \\rt, [\\rn]\n.endm\n\n.macro  ldr_nreg        rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn, -\\rm]\nT       sub             \\rt, \\rn, \\rm\nT       ldr             \\rt, [\\rt]\n.endm\n\n.macro  ldr_post        rt,  rn,  rm:vararg\nA       ldr             \\rt, [\\rn], \\rm\nT       ldr             \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  ldrc_pre        cc,  rt,  rn,  rm:vararg\nA       ldr\\cc          \\rt, [\\rn, \\rm]!\nT       itt             \\cc\nT       add\\cc          \\rn, \\rn, \\rm\nT       ldr\\cc          \\rt, [\\rn]\n.endm\n\n.macro  ldrd_reg        rt,  rt2, rn,  rm\nA       ldrd            \\rt, \\rt2, [\\rn, \\rm]\nT       add             \\rt, \\rn, \\rm\nT       ldrd            \\rt, \\rt2, [\\rt]\n.endm\n\n.macro  ldrd_post       rt,  rt2, rn,  rm\nA       ldrd            \\rt, \\rt2, [\\rn], \\rm\nT       ldrd            \\rt, \\rt2, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  ldrh_pre        rt,  rn,  rm\nA       ldrh            \\rt, [\\rn, \\rm]!\nT       add             \\rn, \\rn, \\rm\nT       ldrh            \\rt, [\\rn]\n.endm\n\n.macro  ldrh_dpre       rt,  rn,  rm\nA       ldrh            \\rt, [\\rn, -\\rm]!\nT       sub             \\rn, \\rn, \\rm\nT       ldrh            \\rt, [\\rn]\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:8", "text": "T       ldrd            \\rt, \\rt2, [\\rt]\n.endm\n\n.macro  ldrd_post       rt,  rt2, rn,  rm\nA       ldrd            \\rt, \\rt2, [\\rn], \\rm\nT       ldrd            \\rt, \\rt2, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  ldrh_pre        rt,  rn,  rm\nA       ldrh            \\rt, [\\rn, \\rm]!\nT       add             \\rn, \\rn, \\rm\nT       ldrh            \\rt, [\\rn]\n.endm\n\n.macro  ldrh_dpre       rt,  rn,  rm\nA       ldrh            \\rt, [\\rn, -\\rm]!\nT       sub             \\rn, \\rn, \\rm\nT       ldrh            \\rt, [\\rn]\n.endm\n\n.macro  ldrh_post       rt,  rn,  rm\nA       ldrh            \\rt, [\\rn], \\rm\nT       ldrh            \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  ldrb_post       rt,  rn,  rm\nA       ldrb            \\rt, [\\rn], \\rm\nT       ldrb            \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  str_post       rt,  rn,  rm:vararg\nA       str             \\rt, [\\rn], \\rm\nT       str             \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  strb_post       rt,  rn,  rm:vararg\nA       strb            \\rt, [\\rn], \\rm\nT       strb            \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  strd_post       rt,  rt2, rn,  rm\nA       strd            \\rt, \\rt2, [\\rn], \\rm\nT       strd            \\rt, \\rt2, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  strh_pre        rt,  rn,  rm\nA       strh            \\rt, [\\rn, \\rm]!\nT       add             \\rn, \\rn, \\rm\nT       strh            \\rt, [\\rn]\n.endm\n\n.macro  strh_dpre       rt,  rn,  rm\nA       strh            \\rt, [\\rn, -\\rm]!\nT       sub             \\rn, \\rn, \\rm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:9", "text": "A       strb            \\rt, [\\rn], \\rm\nT       strb            \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  strd_post       rt,  rt2, rn,  rm\nA       strd            \\rt, \\rt2, [\\rn], \\rm\nT       strd            \\rt, \\rt2, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  strh_pre        rt,  rn,  rm\nA       strh            \\rt, [\\rn, \\rm]!\nT       add             \\rn, \\rn, \\rm\nT       strh            \\rt, [\\rn]\n.endm\n\n.macro  strh_dpre       rt,  rn,  rm\nA       strh            \\rt, [\\rn, -\\rm]!\nT       sub             \\rn, \\rn, \\rm\nT       strh            \\rt, [\\rn]\n.endm\n\n.macro  strh_post       rt,  rn,  rm\nA       strh            \\rt, [\\rn], \\rm\nT       strh            \\rt, [\\rn]\nT       add             \\rn, \\rn, \\rm\n.endm\n\n.macro  strh_dpost       rt,  rn,  rm\nA       strh            \\rt, [\\rn], -\\rm\nT       strh            \\rt, [\\rn]\nT       sub             \\rn, \\rn, \\rm\n.endm\n\n#if HAVE_VFP_ARGS\nELF     .eabi_attribute 28, 1\n#   define VFP\n#   define NOVFP @\n#else\n#   define VFP   @\n#   define NOVFP\n#endif\n\n#define GLUE(a, b) a ## b\n#define JOIN(a, b) GLUE(a, b)\n#define X(s) JOIN(EXTERN_ASM, s)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/asm.S", "line_start": 321, "line_end": 367}
{"id": "FFmpeg/FFmpeg:libavutil/arm/asm.S:4", "text": ".endm\n#if HAVE_SECTION_DATA_REL_RO\n.if \\relocate\n        .section        .data.rel.ro\n.else\n        .section        .rodata\n.endif\n#elif defined(_WIN32)\n        .section        .rdata\n#elif !defined(__MACH__)\n        .section        .rodata\n#else\n        .const_data\n#endif\n        .align          \\align\n\\name:\n.endm\n\n#if !HAVE_ARMV6T2_EXTERNAL\n.macro  movw    rd, val\n        mov     \\rd, \\val &  255\n        orr     \\rd, \\val & ~255\n.endm\n#endif\n\n.macro  mov32   rd, val\n#if HAVE_ARMV6T2_EXTERNAL\n        movw            \\rd, #(\\val) & 0xffff\n    .if (\\val) >> 16\n        movt            \\rd, #(\\val) >> 16\n    .endif\n#else\n        ldr             \\rd, =\\val\n#endif\n.endm\n\n.macro  put_pic         num\n        put_pic_\\num\n.endm\n\n.macro  do_def_pic      num, val, label\n    .macro put_pic_\\num\n      .if \\num\n        .altmacro\n        put_pic         %(\\num - 1)\n        .noaltmacro\n      .endif\n\\label: .word           \\val\n        .purgem         put_pic_\\num\n    .endm\n.endm\n\n.macro  def_pic         val, label\n        .altmacro\n        do_def_pic      %.Lpic_idx, \\val, \\label\n        .noaltmacro\n        .set            .Lpic_idx, .Lpic_idx + 1\n.endm\n\n.macro  ldpic           rd,  val, indir=0", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/arm/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:1", "text": "/*\n * ARM NEON optimised Float DSP functions\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"asm.S\"\n\nfunction ff_vector_fmul_neon, export=1\n        subs            r3,  r3,  #8\n        vld1.32         {d0-d3},  [r1,:128]!\n        vld1.32         {d4-d7},  [r2,:128]!\n        vmul.f32        q8,  q0,  q2\n        vmul.f32        q9,  q1,  q3\n        beq             3f\n        bics            ip,  r3,  #15\n        beq             2f\n1:      subs            ip,  ip,  #16\n        vld1.32         {d0-d1},  [r1,:128]!\n        vld1.32         {d4-d5},  [r2,:128]!\n        vmul.f32        q10, q0,  q2\n        vld1.32         {d2-d3},  [r1,:128]!\n        vld1.32         {d6-d7},  [r2,:128]!\n        vmul.f32        q11, q1,  q3\n        vst1.32         {d16-d19},[r0,:128]!\n        vld1.32         {d0-d1},  [r1,:128]!\n        vld1.32         {d4-d5},  [r2,:128]!\n        vmul.f32        q8,  q0,  q2\n        vld1.32         {d2-d3},  [r1,:128]!\n        vld1.32         {d6-d7},  [r2,:128]!\n        vmul.f32        q9,  q1,  q3\n        vst1.32         {d20-d23},[r0,:128]!\n        bne             1b\n        ands            r3,  r3,  #15\n        beq             3f\n2:      vld1.32         {d0-d1},  [r1,:128]!\n        vld1.32         {d4-d5},  [r2,:128]!\n        vst1.32         {d16-d17},[r0,:128]!\n        vmul.f32        q8,  q0,  q2\n        vld1.32         {d2-d3},  [r1,:128]!\n        vld1.32         {d6-d7},  [r2,:128]!\n        vst1.32         {d18-d19},[r0,:128]!\n        vmul.f32        q9,  q1,  q3\n3:      vst1.32         {d16-d19},[r0,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:2", "text": "vst1.32         {d16-d19},[r0,:128]!\n        vld1.32         {d0-d1},  [r1,:128]!\n        vld1.32         {d4-d5},  [r2,:128]!\n        vmul.f32        q8,  q0,  q2\n        vld1.32         {d2-d3},  [r1,:128]!\n        vld1.32         {d6-d7},  [r2,:128]!\n        vmul.f32        q9,  q1,  q3\n        vst1.32         {d20-d23},[r0,:128]!\n        bne             1b\n        ands            r3,  r3,  #15\n        beq             3f\n2:      vld1.32         {d0-d1},  [r1,:128]!\n        vld1.32         {d4-d5},  [r2,:128]!\n        vst1.32         {d16-d17},[r0,:128]!\n        vmul.f32        q8,  q0,  q2\n        vld1.32         {d2-d3},  [r1,:128]!\n        vld1.32         {d6-d7},  [r2,:128]!\n        vst1.32         {d18-d19},[r0,:128]!\n        vmul.f32        q9,  q1,  q3\n3:      vst1.32         {d16-d19},[r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_vector_fmac_scalar_neon, export=1\nVFP     len .req r2\nVFP     acc .req r3\nNOVFP   len .req r3\nNOVFP   acc .req r2\nVFP     vdup.32         q15, d0[0]\nNOVFP   vdup.32         q15, r2\n        bics            r12, len, #15\n        mov             acc, r0\n        beq             3f\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q8},     [acc,:128]!\n        vld1.32         {q1},     [r1,:128]!\n        vld1.32         {q9},     [acc,:128]!\n1:      vmla.f32        q8,  q0,  q15\n        vld1.32         {q2},     [r1,:128]!\n        vld1.32         {q10},    [acc,:128]!\n        vmla.f32        q9,  q1,  q15\n        vld1.32         {q3},     [r1,:128]!\n        vld1.32         {q11},    [acc,:128]!\n        vmla.f32        q10, q2,  q15\n        vst1.32         {q8},     [r0,:128]!\n        vmla.f32        q11, q3,  q15\n        vst1.32         {q9},     [r0,:128]!\n        subs            r12, r12, #16\n        beq             2f\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q8},     [acc,:128]!\n        vst1.32         {q10},    [r0,:128]!\n        vld1.32         {q1},     [r1,:128]!\n        vld1.32         {q9},     [acc,:128]!\n        vst1.32         {q11},    [r0,:128]!\n        b               1b\n2:      vst1.32         {q10},    [r0,:128]!\n        vst1.32         {q11},    [r0,:128]!\n        ands            len, len, #15\n        it              eq", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:3", "text": "vmla.f32        q9,  q1,  q15\n        vld1.32         {q3},     [r1,:128]!\n        vld1.32         {q11},    [acc,:128]!\n        vmla.f32        q10, q2,  q15\n        vst1.32         {q8},     [r0,:128]!\n        vmla.f32        q11, q3,  q15\n        vst1.32         {q9},     [r0,:128]!\n        subs            r12, r12, #16\n        beq             2f\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q8},     [acc,:128]!\n        vst1.32         {q10},    [r0,:128]!\n        vld1.32         {q1},     [r1,:128]!\n        vld1.32         {q9},     [acc,:128]!\n        vst1.32         {q11},    [r0,:128]!\n        b               1b\n2:      vst1.32         {q10},    [r0,:128]!\n        vst1.32         {q11},    [r0,:128]!\n        ands            len, len, #15\n        it              eq\n        bxeq            lr\n3:      vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q8},     [acc,:128]!\n        vmla.f32        q8,  q0,  q15\n        vst1.32         {q8},     [r0,:128]!\n        subs            len, len, #4\n        bgt             3b\n        bx              lr\n        .unreq          len\nendfunc\n\nfunction ff_vector_fmul_scalar_neon, export=1\nVFP     len .req r2\nNOVFP   len .req r3\nVFP     vdup.32         q8,  d0[0]\nNOVFP   vdup.32         q8,  r2\n        bics            r12, len, #15\n        beq             3f\n        vld1.32         {q0},[r1,:128]!\n        vld1.32         {q1},[r1,:128]!\n1:      vmul.f32        q0,  q0,  q8\n        vld1.32         {q2},[r1,:128]!\n        vmul.f32        q1,  q1,  q8\n        vld1.32         {q3},[r1,:128]!\n        vmul.f32        q2,  q2,  q8\n        vst1.32         {q0},[r0,:128]!\n        vmul.f32        q3,  q3,  q8\n        vst1.32         {q1},[r0,:128]!\n        subs            r12, r12, #16\n        beq             2f\n        vld1.32         {q0},[r1,:128]!\n        vst1.32         {q2},[r0,:128]!\n        vld1.32         {q1},[r1,:128]!\n        vst1.32         {q3},[r0,:128]!\n        b               1b\n2:      vst1.32         {q2},[r0,:128]!\n        vst1.32         {q3},[r0,:128]!\n        ands            len, len, #15\n        it              eq\n        bxeq            lr", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:4", "text": "1:      vmul.f32        q0,  q0,  q8\n        vld1.32         {q2},[r1,:128]!\n        vmul.f32        q1,  q1,  q8\n        vld1.32         {q3},[r1,:128]!\n        vmul.f32        q2,  q2,  q8\n        vst1.32         {q0},[r0,:128]!\n        vmul.f32        q3,  q3,  q8\n        vst1.32         {q1},[r0,:128]!\n        subs            r12, r12, #16\n        beq             2f\n        vld1.32         {q0},[r1,:128]!\n        vst1.32         {q2},[r0,:128]!\n        vld1.32         {q1},[r1,:128]!\n        vst1.32         {q3},[r0,:128]!\n        b               1b\n2:      vst1.32         {q2},[r0,:128]!\n        vst1.32         {q3},[r0,:128]!\n        ands            len, len, #15\n        it              eq\n        bxeq            lr\n3:      vld1.32         {q0},[r1,:128]!\n        vmul.f32        q0,  q0,  q8\n        vst1.32         {q0},[r0,:128]!\n        subs            len, len, #4\n        bgt             3b\n        bx              lr\n        .unreq          len\nendfunc\n\nfunction ff_vector_fmul_window_neon, export=1\n        push            {r4,r5,lr}\n        ldr             lr,  [sp, #12]\n        sub             r2,  r2,  #8\n        sub             r5,  lr,  #2\n        add             r2,  r2,  r5, lsl #2\n        add             r4,  r3,  r5, lsl #3\n        add             ip,  r0,  r5, lsl #3\n        mov             r5,  #-16\n        vld1.32         {d0,d1},  [r1,:128]!\n        vld1.32         {d2,d3},  [r2,:128], r5\n        vld1.32         {d4,d5},  [r3,:128]!\n        vld1.32         {d6,d7},  [r4,:128], r5\n1:      subs            lr,  lr,  #4\n        vmul.f32        d22, d0,  d4\n        vrev64.32       q3,  q3\n        vmul.f32        d23, d1,  d5\n        vrev64.32       q1,  q1\n        vmul.f32        d20, d0,  d7\n        vmul.f32        d21, d1,  d6\n        beq             2f\n        vmla.f32        d22, d3,  d7\n        vld1.32         {d0,d1},  [r1,:128]!\n        vmla.f32        d23, d2,  d6\n        vld1.32         {d18,d19},[r2,:128], r5\n        vmls.f32        d20, d3,  d4\n        vld1.32         {d24,d25},[r3,:128]!\n        vmls.f32        d21, d2,  d5\n        vld1.32         {d6,d7},  [r4,:128], r5\n        vmov            q1,  q9\n        vrev64.32       q11, q11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:5", "text": "vld1.32         {d4,d5},  [r3,:128]!\n        vld1.32         {d6,d7},  [r4,:128], r5\n1:      subs            lr,  lr,  #4\n        vmul.f32        d22, d0,  d4\n        vrev64.32       q3,  q3\n        vmul.f32        d23, d1,  d5\n        vrev64.32       q1,  q1\n        vmul.f32        d20, d0,  d7\n        vmul.f32        d21, d1,  d6\n        beq             2f\n        vmla.f32        d22, d3,  d7\n        vld1.32         {d0,d1},  [r1,:128]!\n        vmla.f32        d23, d2,  d6\n        vld1.32         {d18,d19},[r2,:128], r5\n        vmls.f32        d20, d3,  d4\n        vld1.32         {d24,d25},[r3,:128]!\n        vmls.f32        d21, d2,  d5\n        vld1.32         {d6,d7},  [r4,:128], r5\n        vmov            q1,  q9\n        vrev64.32       q11, q11\n        vmov            q2,  q12\n        vswp            d22, d23\n        vst1.32         {d20,d21},[r0,:128]!\n        vst1.32         {d22,d23},[ip,:128], r5\n        b               1b\n2:      vmla.f32        d22, d3,  d7\n        vmla.f32        d23, d2,  d6\n        vmls.f32        d20, d3,  d4\n        vmls.f32        d21, d2,  d5\n        vrev64.32       q11, q11\n        vswp            d22, d23\n        vst1.32         {d20,d21},[r0,:128]!\n        vst1.32         {d22,d23},[ip,:128], r5\n        pop             {r4,r5,pc}\nendfunc\n\nfunction ff_vector_fmul_add_neon, export=1\n        ldr             r12, [sp]\n        vld1.32         {q0-q1},  [r1,:128]!\n        vld1.32         {q8-q9},  [r2,:128]!\n        vld1.32         {q2-q3},  [r3,:128]!\n        vmul.f32        q10, q0,  q8\n        vmul.f32        q11, q1,  q9\n1:      vadd.f32        q12, q2,  q10\n        vadd.f32        q13, q3,  q11\n        pld             [r1, #16]\n        pld             [r2, #16]\n        pld             [r3, #16]\n        subs            r12, r12, #8\n        beq             2f\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q8},     [r2,:128]!\n        vmul.f32        q10, q0,  q8\n        vld1.32         {q1},     [r1,:128]!\n        vld1.32         {q9},     [r2,:128]!\n        vmul.f32        q11, q1,  q9\n        vld1.32         {q2-q3},  [r3,:128]!\n        vst1.32         {q12-q13},[r0,:128]!\n        b               1b\n2:      vst1.32         {q12-q13},[r0,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:6", "text": "vld1.32         {q2-q3},  [r3,:128]!\n        vmul.f32        q10, q0,  q8\n        vmul.f32        q11, q1,  q9\n1:      vadd.f32        q12, q2,  q10\n        vadd.f32        q13, q3,  q11\n        pld             [r1, #16]\n        pld             [r2, #16]\n        pld             [r3, #16]\n        subs            r12, r12, #8\n        beq             2f\n        vld1.32         {q0},     [r1,:128]!\n        vld1.32         {q8},     [r2,:128]!\n        vmul.f32        q10, q0,  q8\n        vld1.32         {q1},     [r1,:128]!\n        vld1.32         {q9},     [r2,:128]!\n        vmul.f32        q11, q1,  q9\n        vld1.32         {q2-q3},  [r3,:128]!\n        vst1.32         {q12-q13},[r0,:128]!\n        b               1b\n2:      vst1.32         {q12-q13},[r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_vector_fmul_reverse_neon, export=1\n        add             r2,  r2,  r3,  lsl #2\n        sub             r2,  r2,  #32\n        mov             r12, #-32\n        vld1.32         {q0-q1},  [r1,:128]!\n        vld1.32         {q2-q3},  [r2,:128], r12\n1:      pld             [r1, #32]\n        vrev64.32       q3,  q3\n        vmul.f32        d16, d0,  d7\n        vmul.f32        d17, d1,  d6\n        pld             [r2, #-32]\n        vrev64.32       q2,  q2\n        vmul.f32        d18, d2,  d5\n        vmul.f32        d19, d3,  d4\n        subs            r3,  r3,  #8\n        beq             2f\n        vld1.32         {q0-q1},  [r1,:128]!\n        vld1.32         {q2-q3},  [r2,:128], r12\n        vst1.32         {q8-q9},  [r0,:128]!\n        b               1b\n2:      vst1.32         {q8-q9},  [r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_butterflies_float_neon, export=1\n1:      vld1.32         {q0},[r0,:128]\n        vld1.32         {q1},[r1,:128]\n        vsub.f32        q2,  q0,  q1\n        vadd.f32        q1,  q0,  q1\n        vst1.32         {q2},[r1,:128]!\n        vst1.32         {q1},[r0,:128]!\n        subs            r2,  r2,  #4\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_scalarproduct_float_neon, export=1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_neon.S:7", "text": "vld1.32         {q2-q3},  [r2,:128], r12\n        vst1.32         {q8-q9},  [r0,:128]!\n        b               1b\n2:      vst1.32         {q8-q9},  [r0,:128]!\n        bx              lr\nendfunc\n\nfunction ff_butterflies_float_neon, export=1\n1:      vld1.32         {q0},[r0,:128]\n        vld1.32         {q1},[r1,:128]\n        vsub.f32        q2,  q0,  q1\n        vadd.f32        q1,  q0,  q1\n        vst1.32         {q2},[r1,:128]!\n        vst1.32         {q1},[r0,:128]!\n        subs            r2,  r2,  #4\n        bgt             1b\n        bx              lr\nendfunc\n\nfunction ff_scalarproduct_float_neon, export=1\n        vmov.f32        q2,  #0.0\n1:      vld1.32         {q0},[r0,:128]!\n        vld1.32         {q1},[r1,:128]!\n        vmla.f32        q2,  q0,  q1\n        subs            r2,  r2,  #4\n        bgt             1b\n        vadd.f32        d0,  d4,  d5\n        vpadd.f32       d0,  d0,  d0\nNOVFP   vmov.32         r0,  d0[0]\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_neon.S", "line_start": 241, "line_end": 271}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:1", "text": "/*\n * Copyright (c) 2008 Siarhei Siamashka <ssvb@users.sourceforge.net>\n *\n * This file is part of FFmpeg\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"asm.S\"\n\n/**\n * Assume that len is a positive number and is multiple of 8\n */\n@ void ff_vector_fmul_vfp(float *dst, const float *src0, const float *src1, int len)\nfunction ff_vector_fmul_vfp, export=1\n        vpush           {d8-d15}\n        fmrx            r12, fpscr\n        orr             r12, r12, #(3 << 16) /* set vector size to 4 */\n        fmxr            fpscr, r12\n\n        vldmia          r1!, {s0-s3}\n        vldmia          r2!, {s8-s11}\n        vldmia          r1!, {s4-s7}\n        vldmia          r2!, {s12-s15}\n        vmul.f32        s8,  s0,  s8\n1:\n        subs            r3,  r3,  #16\n        vmul.f32        s12, s4,  s12\n        itttt           ge\n        vldmiage        r1!, {s16-s19}\n        vldmiage        r2!, {s24-s27}\n        vldmiage        r1!, {s20-s23}\n        vldmiage        r2!, {s28-s31}\n        it              ge\n        vmulge.f32      s24, s16, s24\n        vstmia          r0!, {s8-s11}\n        vstmia          r0!, {s12-s15}\n        it              ge\n        vmulge.f32      s28, s20, s28\n        itttt           gt\n        vldmiagt        r1!, {s0-s3}\n        vldmiagt        r2!, {s8-s11}\n        vldmiagt        r1!, {s4-s7}\n        vldmiagt        r2!, {s12-s15}\n        ittt            ge\n        vmulge.f32      s8,  s0,  s8\n        vstmiage        r0!, {s24-s27}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:2", "text": "vmul.f32        s12, s4,  s12\n        itttt           ge\n        vldmiage        r1!, {s16-s19}\n        vldmiage        r2!, {s24-s27}\n        vldmiage        r1!, {s20-s23}\n        vldmiage        r2!, {s28-s31}\n        it              ge\n        vmulge.f32      s24, s16, s24\n        vstmia          r0!, {s8-s11}\n        vstmia          r0!, {s12-s15}\n        it              ge\n        vmulge.f32      s28, s20, s28\n        itttt           gt\n        vldmiagt        r1!, {s0-s3}\n        vldmiagt        r2!, {s8-s11}\n        vldmiagt        r1!, {s4-s7}\n        vldmiagt        r2!, {s12-s15}\n        ittt            ge\n        vmulge.f32      s8,  s0,  s8\n        vstmiage        r0!, {s24-s27}\n        vstmiage        r0!, {s28-s31}\n        bgt             1b\n\n        bic             r12, r12, #(7 << 16) /* set vector size back to 1 */\n        fmxr            fpscr, r12\n        vpop            {d8-d15}\n        bx              lr\nendfunc\n\n/**\n * ARM VFP implementation of 'vector_fmul_window_c' function\n * Assume that len is a positive non-zero number\n */\n@ void ff_vector_fmul_window_vfp(float *dst, const float *src0,\n@                                const float *src1, const float *win, int len)\nfunction ff_vector_fmul_window_vfp, export=1\nDST0    .req    a1\nSRC0    .req    a2\nSRC1    .req    a3\nWIN0    .req    a4\nLEN     .req    v1\nDST1    .req    v2\nWIN1    .req    v3\nOLDFPSCR .req   ip\n\n        push    {v1-v3,lr}\n        ldr     LEN, [sp, #4*4+0]\n        vpush   {s16-s31}\n        fmrx    OLDFPSCR, FPSCR\n        add     DST1, DST0, LEN, lsl #3\n        add     SRC1, SRC1, LEN, lsl #2\n        add     WIN1, WIN0, LEN, lsl #3\n\n        tst     LEN, #7\n        beq     4f                          @ common case: len is a multiple of 8\n\n        ldr     lr, =0x03000000             @ RunFast mode, scalar mode\n        fmxr    FPSCR, lr\n\n        tst     LEN, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:3", "text": "LEN     .req    v1\nDST1    .req    v2\nWIN1    .req    v3\nOLDFPSCR .req   ip\n\n        push    {v1-v3,lr}\n        ldr     LEN, [sp, #4*4+0]\n        vpush   {s16-s31}\n        fmrx    OLDFPSCR, FPSCR\n        add     DST1, DST0, LEN, lsl #3\n        add     SRC1, SRC1, LEN, lsl #2\n        add     WIN1, WIN0, LEN, lsl #3\n\n        tst     LEN, #7\n        beq     4f                          @ common case: len is a multiple of 8\n\n        ldr     lr, =0x03000000             @ RunFast mode, scalar mode\n        fmxr    FPSCR, lr\n\n        tst     LEN, #1\n        beq     1f\n        vldmdb  WIN1!, {s0}\n        vldmia  SRC0!, {s8}\n        vldmia  WIN0!, {s16}\n        vmul.f  s24, s0, s8\n        vldmdb  SRC1!, {s20}\n        vmul.f  s8, s16, s8\n        vmls.f  s24, s16, s20\n        vmla.f  s8, s0, s20\n        vstmia  DST0!, {s24}\n        vstmdb  DST1!, {s8}\n1:\n        tst     LEN, #2\n        beq     2f\n        vldmdb  WIN1!, {s0}\n        vldmdb  WIN1!, {s1}\n        vldmia  SRC0!, {s8-s9}\n        vldmia  WIN0!, {s16-s17}\n        vmul.f  s24, s0, s8\n        vmul.f  s25, s1, s9\n        vldmdb  SRC1!, {s20}\n        vldmdb  SRC1!, {s21}\n        vmul.f  s8, s16, s8\n        vmul.f  s9, s17, s9\n        vmls.f  s24, s16, s20\n        vmls.f  s25, s17, s21\n        vmla.f  s8, s0, s20\n        vmla.f  s9, s1, s21\n        vstmia  DST0!, {s24-s25}\n        vstmdb  DST1!, {s8}\n        vstmdb  DST1!, {s9}\n2:\n        tst     LEN, #4\n        beq     3f\n        vldmdb  WIN1!, {s0}\n        vldmdb  WIN1!, {s1}\n        vldmdb  WIN1!, {s2}\n        vldmdb  WIN1!, {s3}\n        vldmia  SRC0!, {s8-s11}\n        vldmia  WIN0!, {s16-s19}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:4", "text": "vldmdb  SRC1!, {s20}\n        vldmdb  SRC1!, {s21}\n        vmul.f  s8, s16, s8\n        vmul.f  s9, s17, s9\n        vmls.f  s24, s16, s20\n        vmls.f  s25, s17, s21\n        vmla.f  s8, s0, s20\n        vmla.f  s9, s1, s21\n        vstmia  DST0!, {s24-s25}\n        vstmdb  DST1!, {s8}\n        vstmdb  DST1!, {s9}\n2:\n        tst     LEN, #4\n        beq     3f\n        vldmdb  WIN1!, {s0}\n        vldmdb  WIN1!, {s1}\n        vldmdb  WIN1!, {s2}\n        vldmdb  WIN1!, {s3}\n        vldmia  SRC0!, {s8-s11}\n        vldmia  WIN0!, {s16-s19}\n        vmul.f  s24, s0, s8\n        vmul.f  s25, s1, s9\n        vmul.f  s26, s2, s10\n        vmul.f  s27, s3, s11\n        vldmdb  SRC1!, {s20}\n        vldmdb  SRC1!, {s21}\n        vldmdb  SRC1!, {s22}\n        vldmdb  SRC1!, {s23}\n        vmul.f  s8, s16, s8\n        vmul.f  s9, s17, s9\n        vmul.f  s10, s18, s10\n        vmul.f  s11, s19, s11\n        vmls.f  s24, s16, s20\n        vmls.f  s25, s17, s21\n        vmls.f  s26, s18, s22\n        vmls.f  s27, s19, s23\n        vmla.f  s8, s0, s20\n        vmla.f  s9, s1, s21\n        vmla.f  s10, s2, s22\n        vmla.f  s11, s3, s23\n        vstmia  DST0!, {s24-s27}\n        vstmdb  DST1!, {s8}\n        vstmdb  DST1!, {s9}\n        vstmdb  DST1!, {s10}\n        vstmdb  DST1!, {s11}\n3:\n        bics    LEN, LEN, #7\n        beq     7f\n4:\n        ldr     lr, =0x03030000             @ RunFast mode, short vectors of length 4, stride 1\n        fmxr    FPSCR, lr\n\n        vldmdb  WIN1!, {s0}\n        vldmdb  WIN1!, {s1}\n        vldmdb  WIN1!, {s2}\n        vldmdb  WIN1!, {s3}\n        vldmia  SRC0!, {s8-s11}\n        vldmia  WIN0!, {s16-s19}\n        vmul.f  s24, s0, s8                     @ vector * vector\n        vldmdb  SRC1!, {s20}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:5", "text": "vstmia  DST0!, {s24-s27}\n        vstmdb  DST1!, {s8}\n        vstmdb  DST1!, {s9}\n        vstmdb  DST1!, {s10}\n        vstmdb  DST1!, {s11}\n3:\n        bics    LEN, LEN, #7\n        beq     7f\n4:\n        ldr     lr, =0x03030000             @ RunFast mode, short vectors of length 4, stride 1\n        fmxr    FPSCR, lr\n\n        vldmdb  WIN1!, {s0}\n        vldmdb  WIN1!, {s1}\n        vldmdb  WIN1!, {s2}\n        vldmdb  WIN1!, {s3}\n        vldmia  SRC0!, {s8-s11}\n        vldmia  WIN0!, {s16-s19}\n        vmul.f  s24, s0, s8                     @ vector * vector\n        vldmdb  SRC1!, {s20}\n        vldmdb  SRC1!, {s21}\n        vldmdb  SRC1!, {s22}\n        vldmdb  SRC1!, {s23}\n        vmul.f  s8, s16, s8                     @ vector * vector\n        vmls.f  s24, s16, s20                   @ vector * vector\n            vldmdb  WIN1!, {s4}\n            vldmdb  WIN1!, {s5}\n            vldmdb  WIN1!, {s6}\n            vldmdb  WIN1!, {s7}\n            vldmia  SRC0!, {s12-s13}\n        vmla.f  s8, s0, s20                     @ vector * vector\n            vldmia  SRC0!, {s14-s15}\n        subs    LEN, LEN, #8\n        beq     6f\n5:          vldmia  WIN0!, {s20-s23}\n            vmul.f  s28, s4, s12                @ vector * vector\n        vstmia  DST0!, {s24-s25}\n            vldmdb  SRC1!, {s16}\n            vldmdb  SRC1!, {s17}\n            vldmdb  SRC1!, {s18}\n            vldmdb  SRC1!, {s19}\n            vmul.f  s12, s20, s12               @ vector * vector\n        vstmia  DST0!, {s26-s27}\n        vstmdb  DST1!, {s8}\n        vstmdb  DST1!, {s9}\n        vstmdb  DST1!, {s10}\n        vstmdb  DST1!, {s11}\n            vmls.f  s28, s20, s16               @ vector * vector\n                vldmdb  WIN1!, {s0}\n                vldmdb  WIN1!, {s1}\n                vldmdb  WIN1!, {s2}\n                vldmdb  WIN1!, {s3}\n                vldmia  SRC0!, {s8-s9}\n            vmla.f  s12, s4, s16                @ vector * vector\n                vldmia  SRC0!, {s10-s11}\n        subs    LEN, LEN, #8\n                vldmia  WIN0!, {s16-s19}\n                vmul.f  s24, s0, s8             @ vector * vector\n            vstmia  DST0!, {s28-s29}\n                vldmdb  SRC1!, {s20}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:6", "text": "vldmdb  SRC1!, {s19}\n            vmul.f  s12, s20, s12               @ vector * vector\n        vstmia  DST0!, {s26-s27}\n        vstmdb  DST1!, {s8}\n        vstmdb  DST1!, {s9}\n        vstmdb  DST1!, {s10}\n        vstmdb  DST1!, {s11}\n            vmls.f  s28, s20, s16               @ vector * vector\n                vldmdb  WIN1!, {s0}\n                vldmdb  WIN1!, {s1}\n                vldmdb  WIN1!, {s2}\n                vldmdb  WIN1!, {s3}\n                vldmia  SRC0!, {s8-s9}\n            vmla.f  s12, s4, s16                @ vector * vector\n                vldmia  SRC0!, {s10-s11}\n        subs    LEN, LEN, #8\n                vldmia  WIN0!, {s16-s19}\n                vmul.f  s24, s0, s8             @ vector * vector\n            vstmia  DST0!, {s28-s29}\n                vldmdb  SRC1!, {s20}\n                vldmdb  SRC1!, {s21}\n                vldmdb  SRC1!, {s22}\n                vldmdb  SRC1!, {s23}\n                vmul.f  s8, s16, s8             @ vector * vector\n            vstmia  DST0!, {s30-s31}\n            vstmdb  DST1!, {s12}\n            vstmdb  DST1!, {s13}\n            vstmdb  DST1!, {s14}\n            vstmdb  DST1!, {s15}\n                vmls.f  s24, s16, s20           @ vector * vector\n                    vldmdb  WIN1!, {s4}\n                    vldmdb  WIN1!, {s5}\n                    vldmdb  WIN1!, {s6}\n                    vldmdb  WIN1!, {s7}\n                    vldmia  SRC0!, {s12-s13}\n                vmla.f  s8, s0, s20             @ vector * vector\n                    vldmia  SRC0!, {s14-s15}\n        bne     5b\n6:                  vldmia  WIN0!, {s20-s23}\n                    vmul.f  s28, s4, s12        @ vector * vector\n                vstmia  DST0!, {s24-s25}\n                    vldmdb  SRC1!, {s16}\n                    vldmdb  SRC1!, {s17}\n                    vldmdb  SRC1!, {s18}\n                    vldmdb  SRC1!, {s19}\n                    vmul.f  s12, s20, s12       @ vector * vector\n                vstmia  DST0!, {s26-s27}\n                vstmdb  DST1!, {s8}\n                vstmdb  DST1!, {s9}\n                vstmdb  DST1!, {s10}\n                vstmdb  DST1!, {s11}\n                    vmls.f  s28, s20, s16       @ vector * vector\n                    vmla.f  s12, s4, s16        @ vector * vector\n                    vstmia  DST0!, {s28-s31}\n                    vstmdb  DST1!, {s12}\n                    vstmdb  DST1!, {s13}\n                    vstmdb  DST1!, {s14}\n                    vstmdb  DST1!, {s15}\n7:\n        fmxr    FPSCR, OLDFPSCR", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:7", "text": "vstmia  DST0!, {s24-s25}\n                    vldmdb  SRC1!, {s16}\n                    vldmdb  SRC1!, {s17}\n                    vldmdb  SRC1!, {s18}\n                    vldmdb  SRC1!, {s19}\n                    vmul.f  s12, s20, s12       @ vector * vector\n                vstmia  DST0!, {s26-s27}\n                vstmdb  DST1!, {s8}\n                vstmdb  DST1!, {s9}\n                vstmdb  DST1!, {s10}\n                vstmdb  DST1!, {s11}\n                    vmls.f  s28, s20, s16       @ vector * vector\n                    vmla.f  s12, s4, s16        @ vector * vector\n                    vstmia  DST0!, {s28-s31}\n                    vstmdb  DST1!, {s12}\n                    vstmdb  DST1!, {s13}\n                    vstmdb  DST1!, {s14}\n                    vstmdb  DST1!, {s15}\n7:\n        fmxr    FPSCR, OLDFPSCR\n        vpop    {s16-s31}\n        pop     {v1-v3,pc}\n\n        .unreq  DST0\n        .unreq  SRC0\n        .unreq  SRC1\n        .unreq  WIN0\n        .unreq  LEN\n        .unreq  OLDFPSCR\n        .unreq  DST1\n        .unreq  WIN1\nendfunc\n\n/**\n * ARM VFP optimized implementation of 'vector_fmul_reverse_c' function.\n * Assume that len is a positive number and is multiple of 8\n */\n@ void ff_vector_fmul_reverse_vfp(float *dst, const float *src0,\n@                                 const float *src1, int len)\nfunction ff_vector_fmul_reverse_vfp, export=1\n        vpush           {d8-d15}\n        add             r2,  r2,  r3, lsl #2\n        vldmdb          r2!, {s0-s3}\n        vldmia          r1!, {s8-s11}\n        vldmdb          r2!, {s4-s7}\n        vldmia          r1!, {s12-s15}\n        vmul.f32        s8,  s3,  s8\n        vmul.f32        s9,  s2,  s9\n        vmul.f32        s10, s1,  s10\n        vmul.f32        s11, s0,  s11\n1:\n        subs            r3,  r3,  #16\n        it              ge\n        vldmdbge        r2!, {s16-s19}\n        vmul.f32        s12, s7,  s12\n        it              ge\n        vldmiage        r1!, {s24-s27}\n        vmul.f32        s13, s6,  s13\n        it              ge\n        vldmdbge        r2!, {s20-s23}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:8", "text": "vpush           {d8-d15}\n        add             r2,  r2,  r3, lsl #2\n        vldmdb          r2!, {s0-s3}\n        vldmia          r1!, {s8-s11}\n        vldmdb          r2!, {s4-s7}\n        vldmia          r1!, {s12-s15}\n        vmul.f32        s8,  s3,  s8\n        vmul.f32        s9,  s2,  s9\n        vmul.f32        s10, s1,  s10\n        vmul.f32        s11, s0,  s11\n1:\n        subs            r3,  r3,  #16\n        it              ge\n        vldmdbge        r2!, {s16-s19}\n        vmul.f32        s12, s7,  s12\n        it              ge\n        vldmiage        r1!, {s24-s27}\n        vmul.f32        s13, s6,  s13\n        it              ge\n        vldmdbge        r2!, {s20-s23}\n        vmul.f32        s14, s5,  s14\n        it              ge\n        vldmiage        r1!, {s28-s31}\n        vmul.f32        s15, s4,  s15\n        it              ge\n        vmulge.f32      s24, s19, s24\n        it              gt\n        vldmdbgt        r2!, {s0-s3}\n        it              ge\n        vmulge.f32      s25, s18, s25\n        vstmia          r0!, {s8-s13}\n        it              ge\n        vmulge.f32      s26, s17, s26\n        it              gt\n        vldmiagt        r1!, {s8-s11}\n        itt             ge\n        vmulge.f32      s27, s16, s27\n        vmulge.f32      s28, s23, s28\n        it              gt\n        vldmdbgt        r2!, {s4-s7}\n        it              ge\n        vmulge.f32      s29, s22, s29\n        vstmia          r0!, {s14-s15}\n        ittt            ge\n        vmulge.f32      s30, s21, s30\n        vmulge.f32      s31, s20, s31\n        vmulge.f32      s8,  s3,  s8\n        it              gt\n        vldmiagt        r1!, {s12-s15}\n        itttt           ge\n        vmulge.f32      s9,  s2,  s9\n        vmulge.f32      s10, s1,  s10\n        vstmiage        r0!, {s24-s27}\n        vmulge.f32      s11, s0,  s11\n        it              ge\n        vstmiage        r0!, {s28-s31}\n        bgt             1b\n\n        vpop            {d8-d15}\n        bx              lr", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:9", "text": "it              ge\n        vmulge.f32      s29, s22, s29\n        vstmia          r0!, {s14-s15}\n        ittt            ge\n        vmulge.f32      s30, s21, s30\n        vmulge.f32      s31, s20, s31\n        vmulge.f32      s8,  s3,  s8\n        it              gt\n        vldmiagt        r1!, {s12-s15}\n        itttt           ge\n        vmulge.f32      s9,  s2,  s9\n        vmulge.f32      s10, s1,  s10\n        vstmiage        r0!, {s24-s27}\n        vmulge.f32      s11, s0,  s11\n        it              ge\n        vstmiage        r0!, {s28-s31}\n        bgt             1b\n\n        vpop            {d8-d15}\n        bx              lr\nendfunc\n\n/**\n * ARM VFP implementation of 'butterflies_float_c' function\n * Assume that len is a positive non-zero number\n */\n@ void ff_butterflies_float_vfp(float *restrict v1, float *restrict v2, int len)\nfunction ff_butterflies_float_vfp, export=1\nBASE1   .req    a1\nBASE2   .req    a2\nLEN     .req    a3\nOLDFPSCR .req   a4\n\n        vpush   {s16-s31}\n        fmrx    OLDFPSCR, FPSCR\n\n        tst     LEN, #7\n        beq     4f                          @ common case: len is a multiple of 8\n\n        ldr     ip, =0x03000000             @ RunFast mode, scalar mode\n        fmxr    FPSCR, ip\n\n        tst     LEN, #1\n        beq     1f\n        vldmia  BASE1!, {s0}\n        vldmia  BASE2!, {s8}\n        vadd.f  s16, s0, s8\n        vsub.f  s24, s0, s8\n        vstr    s16, [BASE1, #0-4*1]\n        vstr    s24, [BASE2, #0-4*1]\n1:\n        tst     LEN, #2\n        beq     2f\n        vldmia  BASE1!, {s0-s1}\n        vldmia  BASE2!, {s8-s9}\n        vadd.f  s16, s0, s8\n        vadd.f  s17, s1, s9\n        vsub.f  s24, s0, s8\n        vsub.f  s25, s1, s9\n        vstr    d8, [BASE1, #0-8*1]    @ s16,s17", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:10", "text": "fmxr    FPSCR, ip\n\n        tst     LEN, #1\n        beq     1f\n        vldmia  BASE1!, {s0}\n        vldmia  BASE2!, {s8}\n        vadd.f  s16, s0, s8\n        vsub.f  s24, s0, s8\n        vstr    s16, [BASE1, #0-4*1]\n        vstr    s24, [BASE2, #0-4*1]\n1:\n        tst     LEN, #2\n        beq     2f\n        vldmia  BASE1!, {s0-s1}\n        vldmia  BASE2!, {s8-s9}\n        vadd.f  s16, s0, s8\n        vadd.f  s17, s1, s9\n        vsub.f  s24, s0, s8\n        vsub.f  s25, s1, s9\n        vstr    d8, [BASE1, #0-8*1]    @ s16,s17\n        vstr    d12, [BASE2, #0-8*1]   @ s24,s25\n2:\n        tst     LEN, #4\n        beq     3f\n        vldmia  BASE1!, {s0-s1}\n        vldmia  BASE2!, {s8-s9}\n        vldmia  BASE1!, {s2-s3}\n        vldmia  BASE2!, {s10-s11}\n        vadd.f  s16, s0, s8\n        vadd.f  s17, s1, s9\n        vsub.f  s24, s0, s8\n        vsub.f  s25, s1, s9\n        vadd.f  s18, s2, s10\n        vadd.f  s19, s3, s11\n        vsub.f  s26, s2, s10\n        vsub.f  s27, s3, s11\n        vstr    d8, [BASE1, #0-16*1]    @ s16,s17\n        vstr    d12, [BASE2, #0-16*1]   @ s24,s25\n        vstr    d9, [BASE1, #8-16*1]    @ s18,s19\n        vstr    d13, [BASE2, #8-16*1]   @ s26,s27\n3:\n        bics    LEN, LEN, #7\n        beq     7f\n4:\n        ldr     ip, =0x03030000             @ RunFast mode, short vectors of length 4, stride 1\n        fmxr    FPSCR, ip\n\n        vldmia  BASE1!, {s0-s1}\n        vldmia  BASE2!, {s8-s9}\n        vldmia  BASE1!, {s2-s3}\n        vldmia  BASE2!, {s10-s11}\n        vadd.f  s16, s0, s8\n            vldmia  BASE1!, {s4-s5}\n            vldmia  BASE2!, {s12-s13}\n            vldmia  BASE1!, {s6-s7}\n            vldmia  BASE2!, {s14-s15}\n        vsub.f  s24, s0, s8\n            vadd.f  s20, s4, s12\n        subs    LEN, LEN, #8\n        beq     6f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:11", "text": "3:\n        bics    LEN, LEN, #7\n        beq     7f\n4:\n        ldr     ip, =0x03030000             @ RunFast mode, short vectors of length 4, stride 1\n        fmxr    FPSCR, ip\n\n        vldmia  BASE1!, {s0-s1}\n        vldmia  BASE2!, {s8-s9}\n        vldmia  BASE1!, {s2-s3}\n        vldmia  BASE2!, {s10-s11}\n        vadd.f  s16, s0, s8\n            vldmia  BASE1!, {s4-s5}\n            vldmia  BASE2!, {s12-s13}\n            vldmia  BASE1!, {s6-s7}\n            vldmia  BASE2!, {s14-s15}\n        vsub.f  s24, s0, s8\n            vadd.f  s20, s4, s12\n        subs    LEN, LEN, #8\n        beq     6f\n5:              vldmia  BASE1!, {s0-s3}\n                vldmia  BASE2!, {s8-s11}\n            vsub.f  s28, s4, s12\n        vstr    d8, [BASE1, #0-16*3]    @ s16,s17\n        vstr    d9, [BASE1, #8-16*3]    @ s18,s19\n        vstr    d12, [BASE2, #0-16*3]   @ s24,s25\n        vstr    d13, [BASE2, #8-16*3]   @ s26,s27\n                vadd.f  s16, s0, s8\n                    vldmia  BASE1!, {s4-s7}\n                    vldmia  BASE2!, {s12-s15}\n                vsub.f  s24, s0, s8\n            vstr    d10, [BASE1, #0-16*3]   @ s20,s21\n            vstr    d11, [BASE1, #8-16*3]   @ s22,s23\n            vstr    d14, [BASE2, #0-16*3]   @ s28,s29\n            vstr    d15, [BASE2, #8-16*3]   @ s30,s31\n                    vadd.f  s20, s4, s12\n        subs    LEN, LEN, #8\n        bne     5b\n6:                   vsub.f  s28, s4, s12\n                vstr    d8, [BASE1, #0-16*2]    @ s16,s17\n                vstr    d9, [BASE1, #8-16*2]    @ s18,s19\n                vstr    d12, [BASE2, #0-16*2]   @ s24,s25\n                vstr    d13, [BASE2, #8-16*2]   @ s26,s27\n                    vstr    d10, [BASE1, #0-16*1]   @ s20,s21\n                    vstr    d11, [BASE1, #8-16*1]   @ s22,s23\n                    vstr    d14, [BASE2, #0-16*1]   @ s28,s29\n                    vstr    d15, [BASE2, #8-16*1]   @ s30,s31\n7:\n        fmxr    FPSCR, OLDFPSCR\n        vpop    {s16-s31}\n        bx      lr\n\n        .unreq  BASE1\n        .unreq  BASE2\n        .unreq  LEN\n        .unreq  OLDFPSCR\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 401, "line_end": 457}
{"id": "FFmpeg/FFmpeg:libavutil/arm/float_dsp_vfp.S:12", "text": "vstr    d9, [BASE1, #8-16*2]    @ s18,s19\n                vstr    d12, [BASE2, #0-16*2]   @ s24,s25\n                vstr    d13, [BASE2, #8-16*2]   @ s26,s27\n                    vstr    d10, [BASE1, #0-16*1]   @ s20,s21\n                    vstr    d11, [BASE1, #8-16*1]   @ s22,s23\n                    vstr    d14, [BASE2, #0-16*1]   @ s28,s29\n                    vstr    d15, [BASE2, #8-16*1]   @ s30,s31\n7:\n        fmxr    FPSCR, OLDFPSCR\n        vpop    {s16-s31}\n        bx      lr\n\n        .unreq  BASE1\n        .unreq  BASE2\n        .unreq  LEN\n        .unreq  OLDFPSCR\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/float_dsp_vfp.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/float_dsp_vfp.S", "line_start": 441, "line_end": 457}
{"id": "FFmpeg/FFmpeg:libavutil/arm/pixelutils_armv6.S:1", "text": "/*\n * Copyright (c) 2009 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunction ff_pixelutils_sad16_armv6, export=1\n        push            {r4-r10, lr}\n        mov             r12, #0\n        mov             r10, #16\n        mov             lr,  #0\n        ldm             r0,  {r4-r7}\n        ldr             r8,  [r2]\n1:\n        ldr             r9,  [r2, #4]\n        pld             [r0, r1]\n        usada8          r12, r4,  r8,  r12\n        ldr             r8,  [r2, #8]\n        pld             [r2, r3]\n        usada8          lr,  r5,  r9,  lr\n        ldr             r9,  [r2, #12]\n        usada8          r12, r6,  r8,  r12\n        subs            r10,  r10,  #1\n        usada8          lr,  r7,  r9,  lr\n        beq             2f\n        add             r0,  r0,  r1\n        ldm             r0,  {r4-r7}\n        add             r2,  r2,  r3\n        ldr             r8,  [r2]\n        b               1b\n2:\n        add             r0,  r12, lr\n        pop             {r4-r10, pc}\nendfunc\n\nfunction ff_pixelutils_sad8_armv6, export=1\n        pld             [r2, r3]\n        push            {r4-r10, lr}\n        mov             r10, #8\n        mov             r12,  #0\n        mov             lr,  #0\n        ldrd_post       r4,  r5,  r0,  r1\n1:\n        subs            r10, r10, #2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/pixelutils_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/pixelutils_armv6.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/arm/pixelutils_armv6.S:2", "text": "beq             2f\n        add             r0,  r0,  r1\n        ldm             r0,  {r4-r7}\n        add             r2,  r2,  r3\n        ldr             r8,  [r2]\n        b               1b\n2:\n        add             r0,  r12, lr\n        pop             {r4-r10, pc}\nendfunc\n\nfunction ff_pixelutils_sad8_armv6, export=1\n        pld             [r2, r3]\n        push            {r4-r10, lr}\n        mov             r10, #8\n        mov             r12,  #0\n        mov             lr,  #0\n        ldrd_post       r4,  r5,  r0,  r1\n1:\n        subs            r10, r10, #2\n        ldr             r7,  [r2, #4]\n        ldr_post        r6,  r2,  r3\n        ldrd_post       r8,  r9,  r0,  r1\n        usada8          r12,  r4,  r6,  r12\n        pld             [r2, r3]\n        usada8          lr,  r5,  r7,  lr\n        ldr             r7,  [r2, #4]\n        ldr_post        r6,  r2,  r3\n        beq             2f\n        ldrd_post       r4,  r5,  r0,  r1\n        usada8          r12,  r8,  r6,  r12\n        pld             [r2, r3]\n        usada8          lr,  r9,  r7,  lr\n        b               1b\n2:\n        usada8          r12,  r8,  r6,  r12\n        usada8          lr,  r9,  r7,  lr\n        add             r0,  r12,  lr\n        pop             {r4-r10, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/arm/pixelutils_armv6.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/arm/pixelutils_armv6.S", "line_start": 41, "line_end": 80}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n * Loosely based on earlier work copyrighted by Måns Rullgård, 2008.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if defined (__riscv_float_abi_soft)\n#define NOHWF\n#define NOHWD\n#define HWF   #\n#define HWD   #\n#elif defined (__riscv_float_abi_single)\n#define NOHWF #\n#define NOHWD\n#define HWF\n#define HWD   #\n#else\n#define NOHWF #\n#define NOHWD #\n#define HWF\n#define HWD\n#endif\n\n        .macro  archadd ext=, more:vararg\n            .ifnb   \\ext\n                .ifc    \\ext, b\n                # B was defined later, is known to fewer assemblers.\n                archadd zba, zbb, zbs\n                .else\n                    .option arch, +\\ext\n                .endif\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            .option push\n            .option norvc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".ifc    \\ext, b\n                # B was defined later, is known to fewer assemblers.\n                archadd zba, zbb, zbs\n                .else\n                    .option arch, +\\ext\n                .endif\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            .option push\n            .option norvc\n            .align  2\n            \\sym:\n            .option pop\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zicfilp)\n        .macro  lpad    lpl\n        auipc   zero, \\lpl\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": ".macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zicfilp)\n        .macro  lpad    lpl\n        auipc   zero, \\lpl\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0\n        .else\n        .ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param vl vector length constant\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": "* for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/asm.S", "line_start": 201, "line_end": 239}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".ifc    \\ext, b\n                # B was defined later, is known to fewer assemblers.\n                archadd zba, zbb, zbs\n                .else\n                    .option arch, +\\ext\n                .endif\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            .option push\n            .option norvc\n            .align  2\n            \\sym:\n            .option pop\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "982376660c58f59a384486894a3f1092d6888e4b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982376660c58f59a384486894a3f1092d6888e4b/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": ".macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0\n        .else\n        .ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "982376660c58f59a384486894a3f1092d6888e4b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982376660c58f59a384486894a3f1092d6888e4b/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param vl vector length constant\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "982376660c58f59a384486894a3f1092d6888e4b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982376660c58f59a384486894a3f1092d6888e4b/libavutil/riscv/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "982376660c58f59a384486894a3f1092d6888e4b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982376660c58f59a384486894a3f1092d6888e4b/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": "csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "982376660c58f59a384486894a3f1092d6888e4b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982376660c58f59a384486894a3f1092d6888e4b/libavutil/riscv/asm.S", "line_start": 201, "line_end": 233}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n * Loosely based on earlier work copyrighted by Måns Rullgård, 2008.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if defined (__riscv_float_abi_soft)\n#define NOHWF\n#define NOHWD\n#define HWF   #\n#define HWD   #\n#elif defined (__riscv_float_abi_single)\n#define NOHWF #\n#define NOHWD\n#define HWF\n#define HWD   #\n#else\n#define NOHWF #\n#define NOHWD #\n#define HWF\n#define HWD\n#endif\n\n        .macro  archadd ext=, more:vararg\n            .ifnb   \\ext\n                .ifc    \\ext, b\n                # B was defined later, is known to fewer assemblers.\n                archadd zba, zbb, zbs\n                .else\n                    .option arch, +\\ext\n                .endif\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .align 2\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "529d4230123dbb33a719a4d5ec7e47567f04cd06", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529d4230123dbb33a719a4d5ec7e47567f04cd06/libavutil/riscv/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".ifc    \\ext, b\n                # B was defined later, is known to fewer assemblers.\n                archadd zba, zbb, zbs\n                .else\n                    .option arch, +\\ext\n                .endif\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .align 2\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "529d4230123dbb33a719a4d5ec7e47567f04cd06", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529d4230123dbb33a719a4d5ec7e47567f04cd06/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": ".popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0\n        .else\n        .ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "529d4230123dbb33a719a4d5ec7e47567f04cd06", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529d4230123dbb33a719a4d5ec7e47567f04cd06/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param vl vector length constant\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "529d4230123dbb33a719a4d5ec7e47567f04cd06", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529d4230123dbb33a719a4d5ec7e47567f04cd06/libavutil/riscv/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "529d4230123dbb33a719a4d5ec7e47567f04cd06", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529d4230123dbb33a719a4d5ec7e47567f04cd06/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": "sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "529d4230123dbb33a719a4d5ec7e47567f04cd06", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/529d4230123dbb33a719a4d5ec7e47567f04cd06/libavutil/riscv/asm.S", "line_start": 201, "line_end": 230}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".ifc    \\ext, b\n                # B was defined later, is known to fewer assemblers.\n                archadd zba, zbb, zbs\n                .else\n                    .option arch, +\\ext\n                .endif\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .align 2\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "7f97344bfb8deab6fdbf82427489a4751132bb7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f97344bfb8deab6fdbf82427489a4751132bb7a/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": ".popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0\n        .else\n        .ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "7f97344bfb8deab6fdbf82427489a4751132bb7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f97344bfb8deab6fdbf82427489a4751132bb7a/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param vl vector length constant\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "7f97344bfb8deab6fdbf82427489a4751132bb7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f97344bfb8deab6fdbf82427489a4751132bb7a/libavutil/riscv/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": "* @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "7f97344bfb8deab6fdbf82427489a4751132bb7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f97344bfb8deab6fdbf82427489a4751132bb7a/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": "* @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "7f97344bfb8deab6fdbf82427489a4751132bb7a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7f97344bfb8deab6fdbf82427489a4751132bb7a/libavutil/riscv/asm.S", "line_start": 201, "line_end": 249}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n * Loosely based on earlier work copyrighted by Måns Rullgård, 2008.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if defined (__riscv_float_abi_soft)\n#define NOHWF\n#define NOHWD\n#define HWF   #\n#define HWD   #\n#elif defined (__riscv_float_abi_single)\n#define NOHWF #\n#define NOHWD\n#define HWF\n#define HWD   #\n#else\n#define NOHWF #\n#define NOHWD #\n#define HWF\n#define HWD\n#endif\n\n        .macro  archadd ext=, more:vararg\n            .ifnb   \\ext\n                .option arch, +\\ext\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .align 2\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec/libavutil/riscv/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".option arch, +\\ext\n                archadd \\more\n            .endif\n        .endm\n\n        .macro func sym, exts:vararg\n            .text\n            .align 2\n            .option push\n            archadd \\exts\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": "#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0\n        .else\n        .ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param vl vector length constant\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec/libavutil/riscv/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": "*/\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1e7ab200ee2c6d1992ba9a68e6467ae6b7348dec/libavutil/riscv/asm.S", "line_start": 201, "line_end": 244}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n * Loosely based on earlier work copyrighted by Måns Rullgård, 2008.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if defined (__riscv_float_abi_soft)\n#define NOHWF\n#define NOHWD\n#define HWF   #\n#define HWD   #\n#elif defined (__riscv_float_abi_single)\n#define NOHWF #\n#define NOHWD\n#define HWF\n#define HWD   #\n#else\n#define NOHWF #\n#define NOHWD #\n#define HWF\n#define HWD\n#endif\n\n        .macro func sym, ext1=, ext2=\n            .text\n            .align 2\n\n            .option push\n            .ifnb \\ext1\n            .option arch, +\\ext1\n            .ifnb \\ext2\n            .option arch, +\\ext2\n            .endif\n            .endif\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavutil/riscv/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".align 2\n\n            .option push\n            .ifnb \\ext1\n            .option arch, +\\ext1\n            .ifnb \\ext2\n            .option arch, +\\ext2\n            .endif\n            .endif\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": "/* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n#if defined (__riscv_v_elen)\n# define RV_V_ELEN __riscv_v_elen\n#else\n/* Run-time detection of the V extension implies ELEN >= 64. */\n# define RV_V_ELEN 64\n#endif\n#if RV_V_ELEN == 32\n# define VSEW_MAX 2\n#else\n# define VSEW_MAX 3\n#endif\n\n        .macro  parse_vtype ew, tp, mp\n        .ifc    \\ew,e8\n        .equ    vsew, 0\n        .else\n        .ifc    \\ew,e16\n        .equ    vsew, 1\n        .else\n        .ifc    \\ew,e32\n        .equ    vsew, 2\n        .else\n        .ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".ifc    \\ew,e64\n        .equ    vsew, 3\n        .else\n        .error  \"Unknown element width \\ew\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc    \\tp,tu\n        .equ    tp, 0\n        .else\n        .ifc    \\tp,ta\n        .equ    tp, 1\n        .else\n        .error  \"Unknown tail policy \\tp\"\n        .endif\n        .endif\n\n        .ifc    \\mp,mu\n        .equ    mp, 0\n        .else\n        .ifc    \\mp,ma\n        .equ    mp, 1\n        .else\n        .error  \"Unknown mask policy \\mp\"\n        .endif\n        .endif\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param vl vector length constant\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_ivli rd, avl, ew, tp=tu, mp=mu\n        .if     \\avl <= 1\n        .equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavutil/riscv/asm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         * @param addend optional addend for the vector length register\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": ".macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu, addend=0\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        .if \\addend - 1\n        addi    \\tmp, \\tmp, \\addend - 1\n        .endif\n        csrr    \\rd, vlenb\n        clz     \\tmp, \\tmp\n        clz     \\rd, \\rd\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "4fe8f2cc435bdbcaddd6ccfc401c0246b612873b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4fe8f2cc435bdbcaddd6ccfc401c0246b612873b/libavutil/riscv/asm.S", "line_start": 201, "line_end": 243}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".equ    log2vl, 0\n        .elseif \\avl <= 2\n        .equ    log2vl, 1\n        .elseif \\avl <= 4\n        .equ    log2vl, 2\n        .elseif \\avl <= 8\n        .equ    log2vl, 3\n        .elseif \\avl <= 16\n        .equ    log2vl, 4\n        .elseif \\avl <= 32\n        .equ    log2vl, 5\n        .elseif \\avl <= 64\n        .equ    log2vl, 6\n        .elseif \\avl <= 128\n        .equ    log2vl, 7\n        .else\n        .error  \"Vector length \\avl out of range\"\n        .endif\n        parse_vtype \\ew, \\tp, \\mp\n        csrr    \\rd, vlenb\n        clz     \\rd, \\rd\n        addi    \\rd, \\rd, log2vl + 1 + VSEW_MAX - __riscv_xlen\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Gets the vector type with the smallest suitable LMUL value.\n         * @param[out] rd vector type destination register\n         * @param rs vector length source register\n         * @param[out] tmp temporary register to be clobbered\n         * @param ew element width: e8, e16, e32 or e64\n         * @param tp tail policy: tu or ta\n         * @param mp mask policty: mu or ma\n         */\n        .macro  vtype_vli rd, rs, tmp, ew, tp=tu, mp=mu\n        parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        csrr    \\rd, vlenb\n        addi    \\tmp, \\tmp, -1\n        clz     \\rd, \\rd\n        clz     \\tmp, \\tmp\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "ee1526c05fdfb4a96e492b5c8c2950b555ec7bab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ee1526c05fdfb4a96e492b5c8c2950b555ec7bab/libavutil/riscv/asm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:6", "text": "parse_vtype \\ew, \\tp, \\mp\n        /*\n         * The difference between the CLZ's notionally equals the VLMUL value\n         * for 4-bit elements. But we want the value for SEW_MAX-bit elements.\n         */\n        slli    \\tmp, \\rs, 1 + VSEW_MAX\n        csrr    \\rd, vlenb\n        addi    \\tmp, \\tmp, -1\n        clz     \\rd, \\rd\n        clz     \\tmp, \\tmp\n        sub     \\rd, \\rd, \\tmp\n        max     \\rd, \\rd, zero // VLMUL must be >= VSEW - VSEW_MAX\n        .if     vsew < VSEW_MAX\n        addi    \\rd, \\rd, vsew - VSEW_MAX\n        andi    \\rd, \\rd, 7\n        .endif\n        ori     \\rd, \\rd, (vsew << 3) | (tp << 6) | (mp << 7)\n        .endm\n\n        /**\n         * Widens a vector type.\n         * @param[out] rd widened vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to widen (once by default)\n         */\n        .macro  vwtypei rd, rs, n=1\n        xori    \\rd, \\rs, 4\n        addi    \\rd, \\rd, (\\n) * 011\n        xori    \\rd, \\rd, 4\n        .endm\n\n        /**\n         * Narrows a vector type.\n         * @param[out] rd narrowed vector type destination register\n         * @param rs vector type source register\n         * @param n number of times to narrow (once by default)\n         */\n        .macro  vntypei rd, rs, n=1\n        vwtypei \\rd, \\rs, -(\\n)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "ee1526c05fdfb4a96e492b5c8c2950b555ec7bab", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ee1526c05fdfb4a96e492b5c8c2950b555ec7bab/libavutil/riscv/asm.S", "line_start": 201, "line_end": 240}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".align 2\n\n            .option push\n            .ifnb \\ext1\n            .option arch, +\\ext1\n            .ifnb \\ext2\n            .option arch, +\\ext2\n            .endif\n            .endif\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n        /* Convenience macro to load a Vector type (vtype) as immediate */\n        .macro  lvtypei rd, e, m=m1, tp=tu, mp=mu", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "5afe734b6dc9404f4e53ef02507646d56a669456", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5afe734b6dc9404f4e53ef02507646d56a669456/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": "/* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n        /* Convenience macro to load a Vector type (vtype) as immediate */\n        .macro  lvtypei rd, e, m=m1, tp=tu, mp=mu\n\n        .ifc \\e,e8\n        .equ ei, 0\n        .else\n        .ifc \\e,e16\n        .equ ei, 8\n        .else\n        .ifc \\e,e32\n        .equ ei, 16\n        .else\n        .ifc \\e,e64\n        .equ ei, 24\n        .else\n        .error \"Unknown element type\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc \\m,m1\n        .equ mi, 0\n        .else\n        .ifc \\m,m2\n        .equ mi, 1\n        .else\n        .ifc \\m,m4\n        .equ mi, 2\n        .else\n        .ifc \\m,m8\n        .equ mi, 3\n        .else\n        .ifc \\m,mf8\n        .equ mi, 5\n        .else\n        .ifc \\m,mf4\n        .equ mi, 6\n        .else\n        .ifc \\m,mf2\n        .equ mi, 7\n        .else", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "5afe734b6dc9404f4e53ef02507646d56a669456", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5afe734b6dc9404f4e53ef02507646d56a669456/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".equ mi, 0\n        .else\n        .ifc \\m,m2\n        .equ mi, 1\n        .else\n        .ifc \\m,m4\n        .equ mi, 2\n        .else\n        .ifc \\m,m8\n        .equ mi, 3\n        .else\n        .ifc \\m,mf8\n        .equ mi, 5\n        .else\n        .ifc \\m,mf4\n        .equ mi, 6\n        .else\n        .ifc \\m,mf2\n        .equ mi, 7\n        .else\n        .error \"Unknown multiplier\"\n        .equ mi, 3\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc \\tp,tu\n        .equ tpi, 0\n        .else\n        .ifc \\tp,ta\n        .equ tpi, 64\n        .else\n        .error \"Unknown tail policy\"\n        .endif\n        .endif\n\n        .ifc \\mp,mu\n        .equ mpi, 0\n        .else\n        .ifc \\mp,ma\n        .equ mpi, 128\n        .else\n        .error \"Unknown mask policy\"\n        .endif\n        .endif\n\n        li      \\rd, (ei | mi | tpi | mpi)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "5afe734b6dc9404f4e53ef02507646d56a669456", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5afe734b6dc9404f4e53ef02507646d56a669456/libavutil/riscv/asm.S", "line_start": 121, "line_end": 172}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".ifc \\mp,mu\n        .equ mpi, 0\n        .else\n        .ifc \\mp,ma\n        .equ mpi, 128\n        .else\n        .error \"Unknown mask policy\"\n        .endif\n        .endif\n\n        li      \\rd, (ei | mi | tpi | mpi)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "5afe734b6dc9404f4e53ef02507646d56a669456", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5afe734b6dc9404f4e53ef02507646d56a669456/libavutil/riscv/asm.S", "line_start": 161, "line_end": 172}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".align 2\n\n            .option push\n            .ifnb \\ext1\n            .option arch, +\\ext1\n            .ifnb \\ext2\n            .option arch, +\\ext2\n            .endif\n            .endif\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n#if !defined (__riscv_zbb)\n        .macro  min rd, rs1, rs2\n        .insn r OP, 4, 5, \\rd, \\rs1, \\rs2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "89029baebd018f4e25a7555a34ef9db599977c6c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89029baebd018f4e25a7555a34ef9db599977c6c/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": "/* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n#if !defined (__riscv_zbb)\n        .macro  min rd, rs1, rs2\n        .insn r OP, 4, 5, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n        /* Convenience macro to load a Vector type (vtype) as immediate */\n        .macro  lvtypei rd, e, m=m1, tp=tu, mp=mu\n\n        .ifc \\e,e8\n        .equ ei, 0\n        .else\n        .ifc \\e,e16\n        .equ ei, 8\n        .else\n        .ifc \\e,e32\n        .equ ei, 16\n        .else\n        .ifc \\e,e64\n        .equ ei, 24\n        .else\n        .error \"Unknown element type\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc \\m,m1\n        .equ mi, 0\n        .else\n        .ifc \\m,m2\n        .equ mi, 1\n        .else\n        .ifc \\m,m4\n        .equ mi, 2\n        .else\n        .ifc \\m,m8\n        .equ mi, 3\n        .else\n        .ifc \\m,mf8\n        .equ mi, 5\n        .else\n        .ifc \\m,mf4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "89029baebd018f4e25a7555a34ef9db599977c6c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89029baebd018f4e25a7555a34ef9db599977c6c/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".endif\n        .endif\n        .endif\n\n        .ifc \\m,m1\n        .equ mi, 0\n        .else\n        .ifc \\m,m2\n        .equ mi, 1\n        .else\n        .ifc \\m,m4\n        .equ mi, 2\n        .else\n        .ifc \\m,m8\n        .equ mi, 3\n        .else\n        .ifc \\m,mf8\n        .equ mi, 5\n        .else\n        .ifc \\m,mf4\n        .equ mi, 6\n        .else\n        .ifc \\m,mf2\n        .equ mi, 7\n        .else\n        .error \"Unknown multiplier\"\n        .equ mi, 3\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc \\tp,tu\n        .equ tpi, 0\n        .else\n        .ifc \\tp,ta\n        .equ tpi, 64\n        .else\n        .error \"Unknown tail policy\"\n        .endif\n        .endif\n\n        .ifc \\mp,mu\n        .equ mpi, 0\n        .else\n        .ifc \\mp,ma\n        .equ mpi, 128\n        .else\n        .error \"Unknown mask policy\"\n        .endif\n        .endif\n\n        li      \\rd, (ei | mi | tpi | mpi)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "89029baebd018f4e25a7555a34ef9db599977c6c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89029baebd018f4e25a7555a34ef9db599977c6c/libavutil/riscv/asm.S", "line_start": 121, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".else\n        .error \"Unknown tail policy\"\n        .endif\n        .endif\n\n        .ifc \\mp,mu\n        .equ mpi, 0\n        .else\n        .ifc \\mp,ma\n        .equ mpi, 128\n        .else\n        .error \"Unknown mask policy\"\n        .endif\n        .endif\n\n        li      \\rd, (ei | mi | tpi | mpi)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "89029baebd018f4e25a7555a34ef9db599977c6c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/89029baebd018f4e25a7555a34ef9db599977c6c/libavutil/riscv/asm.S", "line_start": 161, "line_end": 177}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n * Loosely based on earlier work copyrighted by Måns Rullgård, 2008.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if defined (__riscv_float_abi_soft)\n#define NOHWF\n#define NOHWD\n#define HWF   #\n#define HWD   #\n#elif defined (__riscv_float_abi_single)\n#define NOHWF #\n#define NOHWD\n#define HWF\n#define HWD   #\n#else\n#define NOHWF #\n#define NOHWD #\n#define HWF\n#define HWD\n#endif\n\n        .macro func sym, ext=\n            .text\n            .align 2\n\n            .option push\n            .ifnb \\ext\n            .option arch, +\\ext\n            .endif\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/asm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:2", "text": ".align 2\n\n            .option push\n            .ifnb \\ext\n            .option arch, +\\ext\n            .endif\n\n            .global \\sym\n            .hidden \\sym\n            .type   \\sym, %function\n            \\sym:\n\n            .macro endfunc\n                .size   \\sym, . - \\sym\n                .option pop\n                .previous\n                .purgem endfunc\n            .endm\n        .endm\n\n        .macro const sym, align=3, relocate=0\n            .if \\relocate\n                .pushsection .data.rel.ro\n            .else\n                .pushsection .rodata\n            .endif\n            .align \\align\n            \\sym:\n\n            .macro endconst\n                .size  \\sym, . - \\sym\n                .popsection\n                .purgem endconst\n            .endm\n        .endm\n\n#if !defined (__riscv_zba)\n        /* SH{1,2,3}ADD definitions for pre-Zba assemblers */\n        .macro  shnadd n, rd, rs1, rs2\n        .insn r OP, 2 * \\n, 16, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n#if !defined (__riscv_zbb)\n        .macro  min rd, rs1, rs2\n        .insn r OP, 4, 5, \\rd, \\rs1, \\rs2\n        .endm\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/asm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:3", "text": ".endm\n\n        .macro  sh1add rd, rs1, rs2\n        shnadd  1, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh2add rd, rs1, rs2\n        shnadd  2, \\rd, \\rs1, \\rs2\n        .endm\n\n        .macro  sh3add rd, rs1, rs2\n        shnadd  3, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n#if !defined (__riscv_zbb)\n        .macro  min rd, rs1, rs2\n        .insn r OP, 4, 5, \\rd, \\rs1, \\rs2\n        .endm\n#endif\n\n        /* Convenience macro to load a Vector type (vtype) as immediate */\n        .macro  lvtypei rd, e, m=m1, tp=tu, mp=mu\n\n        .ifc \\e,e8\n        .equ ei, 0\n        .else\n        .ifc \\e,e16\n        .equ ei, 8\n        .else\n        .ifc \\e,e32\n        .equ ei, 16\n        .else\n        .ifc \\e,e64\n        .equ ei, 24\n        .else\n        .error \"Unknown element type\"\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc \\m,m1\n        .equ mi, 0\n        .else\n        .ifc \\m,m2\n        .equ mi, 1\n        .else\n        .ifc \\m,m4\n        .equ mi, 2\n        .else\n        .ifc \\m,m8\n        .equ mi, 3\n        .else\n        .ifc \\m,mf8\n        .equ mi, 5\n        .else\n        .ifc \\m,mf4\n        .equ mi, 6\n        .else\n        .ifc \\m,mf2", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/asm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:4", "text": ".ifc \\m,m1\n        .equ mi, 0\n        .else\n        .ifc \\m,m2\n        .equ mi, 1\n        .else\n        .ifc \\m,m4\n        .equ mi, 2\n        .else\n        .ifc \\m,m8\n        .equ mi, 3\n        .else\n        .ifc \\m,mf8\n        .equ mi, 5\n        .else\n        .ifc \\m,mf4\n        .equ mi, 6\n        .else\n        .ifc \\m,mf2\n        .equ mi, 7\n        .else\n        .error \"Unknown multiplier\"\n        .equ mi, 3\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n        .endif\n\n        .ifc \\tp,tu\n        .equ tpi, 0\n        .else\n        .ifc \\tp,ta\n        .equ tpi, 64\n        .else\n        .error \"Unknown tail policy\"\n        .endif\n        .endif\n\n        .ifc \\mp,mu\n        .equ mpi, 0\n        .else\n        .ifc \\mp,ma\n        .equ mpi, 128\n        .else\n        .error \"Unknown mask policy\"\n        .endif\n        .endif\n\n        li      \\rd, (ei | mi | tpi | mpi)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/asm.S", "line_start": 121, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/asm.S:5", "text": ".endif\n\n        .ifc \\mp,mu\n        .equ mpi, 0\n        .else\n        .ifc \\mp,ma\n        .equ mpi, 128\n        .else\n        .error \"Unknown mask policy\"\n        .endif\n        .endif\n\n        li      \\rd, (ei | mi | tpi | mpi)\n        .endm", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/asm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/asm.S", "line_start": 161, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/bswap_rvb.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if (__riscv_xlen >= 64)\n        .macro  bswap32_rvb out, in, count\n        andi    t0, \\count, 1\n        beqz    t0, 1f\n        /* Align input to 64-bit */\n        lwu     t0, (\\in)\n        addi    \\out, \\out, 4\n        rev8    t0, t0\n        addi    \\count, \\count, -4\n        srli    t0, t0, __riscv_xlen - 32\n        addi    \\in, \\in, 4\n        sw      t0, -4(\\out)\n1:\n        andi    t3, \\count, -8\n        add     \\count, \\count, \\out\n        beqz    t3, 3f\n        add     t3, t3, \\out\n2:      /* 2 elements (64 bits) at a time on a 64-bit boundary */\n        ld      t0,  (\\in)\n        addi    \\out, \\out, 8\n        rev8    t0, t0\n#if (__riscv_xlen == 64)\n        srli    t2, t0, 32\n        sw      t0, -4(\\out)\n#else\n        srli    t1, t0, __riscv_xlen - 64\n        srli    t2, t0, __riscv_xlen - 32\n        sw      t1, -4(\\out)\n#endif\n        addi    \\in, \\in, 8\n        sw      t2, -8(\\out)\n        bne     \\out, t3, 2b\n3:\n        beq     \\out, \\count, 5f\n4:      /* Process last element */\n        lwu     t0, (\\in)\n        addi    \\out, \\out, 4\n        rev8    t0, t0\n        addi    \\in, \\in, 4\n        srli    t0, t0, __riscv_xlen - 32", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/bswap_rvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/bswap_rvb.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/bswap_rvb.S:2", "text": "rev8    t0, t0\n#if (__riscv_xlen == 64)\n        srli    t2, t0, 32\n        sw      t0, -4(\\out)\n#else\n        srli    t1, t0, __riscv_xlen - 64\n        srli    t2, t0, __riscv_xlen - 32\n        sw      t1, -4(\\out)\n#endif\n        addi    \\in, \\in, 8\n        sw      t2, -8(\\out)\n        bne     \\out, t3, 2b\n3:\n        beq     \\out, \\count, 5f\n4:      /* Process last element */\n        lwu     t0, (\\in)\n        addi    \\out, \\out, 4\n        rev8    t0, t0\n        addi    \\in, \\in, 4\n        srli    t0, t0, __riscv_xlen - 32\n        sw      t0, -4(\\out)\n5:\n        ret\n        .endm\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/bswap_rvb.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/bswap_rvb.S", "line_start": 41, "line_end": 65}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/bswap_rvb.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#if (__riscv_xlen >= 64)\n        .macro  bswap32_rvb out, in, count\n        andi    t0, \\count, 4\n        beqz    t0, 1f\n        /* Align input to 64-bit */\n        lwu     t0, (\\in)\n        addi    \\out, \\out, 4\n        rev8    t0, t0\n        addi    \\count, \\count, -1\n        srli    t0, t0, __riscv_xlen - 32\n        addi    \\in, \\in, 4\n        sw      t0, -4(\\out)\n1:\n        andi    t3, \\count, -2\n        sh2add  \\count, \\count, \\out\n        beqz    t3, 3f\n        sh2add  t3, t3, \\out\n2:      /* 2 elements (64 bits) at a time on a 64-bit boundary */\n        ld      t0,  (\\in)\n        addi    \\out, \\out, 8\n        rev8    t0, t0\n#if (__riscv_xlen == 64)\n        srli    t2, t0, 32\n        sw      t0, -4(\\out)\n#else\n        srli    t1, t0, __riscv_xlen - 64\n        srli    t2, t0, __riscv_xlen - 32\n        sw      t1, -4(\\out)\n#endif\n        addi    \\in, \\in, 8\n        sw      t2, -8(\\out)\n        bne     \\out, t3, 2b\n3:\n        beq     \\out, \\count, 5f\n4:      /* Process last element */\n        lwu     t0, (\\in)\n        addi    \\out, \\out, 4\n        rev8    t0, t0\n        addi    \\in, \\in, 4\n        srli    t0, t0, __riscv_xlen - 32", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/bswap_rvb.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/bswap_rvb.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunc ff_vector_fmul_window_scaled_rvv, zve64x, zba\n        lpad    0\n        csrwi   vxrm, 0\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a4, a2\n        vid.v   v0\n        sh3add  t3, a4, a3\n        vadd.vi v0, v0, 1\n        sh2add  t0, a4, a0\n1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        slli    t1, t2, 1\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t1\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vsetvli zero, zero, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:2", "text": "sub     t0, t0, t1\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vsetvli zero, zero, e16, m1, ta, ma\n        vnclip.wx v8, v16, a5\n        vnclip.wx v12, v20, a5\n        vrgatherei16.vv v16, v8, v2\n        vse16.v v12, (a0)\n        add     a0, a0, t1\n        vse16.v v16, (t0)\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_window_fixed_rvv, zve64x, zba\n        lpad    0\n        csrwi   vxrm, 0\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a4, a2\n        vid.v   v0\n        sh3add  t3, a4, a3\n        vadd.vi v0, v0, 1\n        sh3add  t0, a4, a0\n1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t4\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:3", "text": "1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t4\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vrgatherei16.vv v8, v16, v2\n        vse32.v v20, (a0)\n        add     a0, a0, t4\n        vse32.v v8, (t0)\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_fixed_rvv, zve32x, zba\n        lpad    0\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_reverse_fixed_rvv, zve32x, zba\n        csrwi   vxrm, 0\n        // e16/m4 and e32/m8 are possible but slow the gathers down.\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a3, a2\n        vid.v   v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:4", "text": "vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_reverse_fixed_rvv, zve32x, zba\n        csrwi   vxrm, 0\n        // e16/m4 and e32/m8 are possible but slow the gathers down.\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a3, a2\n        vid.v   v0\n        vadd.vi v0, v0, 1\n1:\n        vsetvli t0, a3, e16, m1, ta, ma\n        slli    t1, t0, 2\n        vrsub.vx v4, v0, t0 // v4[i] = [VL-1, VL-2... 1, 0]\n        sub     a2, a2, t1\n        vsetvli zero, zero, e32, m2, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v16, (a1)\n        add     a1, a1, t1\n        vrgatherei16.vv v24, v8, v4 // v24 = reverse(v8)\n        vsmul.vv v16, v16, v24\n        vse32.v v16, (a0)\n        add     a0, a0, t1\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_add_fixed_rvv, zve32x, zba\n        lpad    0\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:5", "text": "func ff_vector_fmul_add_fixed_rvv, zve32x, zba\n        lpad    0\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_fixed_rvv, zve64x, zba\n        lpad    0\n        li      t1, 1 << 30\n        vsetvli t0, zero, e64, m8, ta, ma\n        vmv.v.x v8, zero\n        vmv.s.x v0, t1\n1:\n        vsetvli t0, a2, e32, m4, tu, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v20, (a1)\n        sh2add  a0, t0, a0\n        vwmacc.vv v8, v16, v20\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e64, m8, ta, ma\n        vredsum.vs v0, v8, v0\n#if __riscv_xlen >= 64\n        vmv.x.s a0, v0\n        srai    a0, a0, 31\n#else\n        vsetivli    zero, 1, e32, mf2, ta, ma\n        vnsra.wi    v1, v0, 31\n        vmv.x.s a0, v1\n#endif\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_fixed_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:6", "text": "vmv.x.s a0, v0\n        srai    a0, a0, 31\n#else\n        vsetivli    zero, 1, e32, mf2, ta, ma\n        vnsra.wi    v1, v0, 31\n        vmv.x.s a0, v1\n#endif\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_fixed_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 201, "line_end": 228}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:5", "text": "func ff_vector_fmul_add_fixed_rvv, zve32x, zba\n        lpad    0\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_fixed_rvv, zve64x, zba\n        lpad    0\n        li      t1, 1 << 30\n        vsetvli t0, zero, e64, m8, ta, ma\n        vmv.v.x v8, zero\n        vmv.s.x v0, t1\n1:\n        vsetvli t0, a2, e32, m4, tu, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v20, (a1)\n        sh2add  a0, t0, a0\n        vwmacc.vv v8, v16, v20\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e64, m8, ta, ma\n        vredsum.vs v0, v8, v0\n        vmv.x.s a0, v0\n        srai    a0, a0, 31\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_fixed_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "a14d21a446e9935dba7ba8dd262dc236160af5d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a14d21a446e9935dba7ba8dd262dc236160af5d1/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:6", "text": "srai    a0, a0, 31\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_fixed_rvv, zve32x, zba\n        lpad    0\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "a14d21a446e9935dba7ba8dd262dc236160af5d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a14d21a446e9935dba7ba8dd262dc236160af5d1/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 201, "line_end": 222}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunc ff_vector_fmul_window_scaled_rvv, zve64x, zba\n        csrwi   vxrm, 0\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a4, a2\n        vid.v   v0\n        sh3add  t3, a4, a3\n        vadd.vi v0, v0, 1\n        sh2add  t0, a4, a0\n1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        slli    t1, t2, 1\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t1\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vsetvli zero, zero, e16, m1, ta, ma\n        vnclip.wx v8, v16, a5", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:2", "text": "vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vsetvli zero, zero, e16, m1, ta, ma\n        vnclip.wx v8, v16, a5\n        vnclip.wx v12, v20, a5\n        vrgatherei16.vv v16, v8, v2\n        vse16.v v12, (a0)\n        add     a0, a0, t1\n        vse16.v v16, (t0)\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_window_fixed_rvv, zve64x, zba\n        csrwi   vxrm, 0\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a4, a2\n        vid.v   v0\n        sh3add  t3, a4, a3\n        vadd.vi v0, v0, 1\n        sh3add  t0, a4, a0\n1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t4\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:3", "text": "slli    t4, t2, 2\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t4\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vrgatherei16.vv v8, v16, v2\n        vse32.v v20, (a0)\n        add     a0, a0, t4\n        vse32.v v8, (t0)\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_fixed_rvv, zve32x, zba\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_reverse_fixed_rvv, zve32x, zba\n        csrwi   vxrm, 0\n        // e16/m4 and e32/m8 are possible but slow the gathers down.\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a3, a2\n        vid.v   v0\n        vadd.vi v0, v0, 1\n1:\n        vsetvli t0, a3, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:4", "text": "vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_reverse_fixed_rvv, zve32x, zba\n        csrwi   vxrm, 0\n        // e16/m4 and e32/m8 are possible but slow the gathers down.\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a3, a2\n        vid.v   v0\n        vadd.vi v0, v0, 1\n1:\n        vsetvli t0, a3, e16, m1, ta, ma\n        slli    t1, t0, 2\n        vrsub.vx v4, v0, t0 // v4[i] = [VL-1, VL-2... 1, 0]\n        sub     a2, a2, t1\n        vsetvli zero, zero, e32, m2, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v16, (a1)\n        add     a1, a1, t1\n        vrgatherei16.vv v24, v8, v4 // v24 = reverse(v8)\n        vsmul.vv v16, v16, v24\n        vse32.v v16, (a0)\n        add     a0, a0, t1\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_add_fixed_rvv, zve32x, zba\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_fixed_rvv, zve64x, zba\n        li      t1, 1 << 30\n        vsetvli t0, zero, e64, m8, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:5", "text": "vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_fixed_rvv, zve64x, zba\n        li      t1, 1 << 30\n        vsetvli t0, zero, e64, m8, ta, ma\n        vmv.v.x v8, zero\n        vmv.s.x v0, t1\n1:\n        vsetvli t0, a2, e32, m4, tu, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v20, (a1)\n        sh2add  a0, t0, a0\n        vwmacc.vv v8, v16, v20\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e64, m8, ta, ma\n        vredsum.vs v0, v8, v0\n        vmv.x.s a0, v0\n        srai    a0, a0, 31\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_fixed_rvv, zve32x, zba\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 161, "line_end": 216}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:6", "text": "func ff_butterflies_fixed_rvv, zve32x, zba\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 201, "line_end": 216}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunc ff_vector_fmul_window_scaled_rvv, zve64x\n        csrwi   vxrm, 0\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a4, a2\n        vid.v   v0\n        sh3add  t3, a4, a3\n        vadd.vi v0, v0, 1\n        sh2add  t0, a4, a0\n1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        slli    t1, t2, 1\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t1\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vsetvli zero, zero, e16, m1, ta, ma\n        vnclip.wx v8, v16, a5", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:2", "text": "vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vsetvli zero, zero, e16, m1, ta, ma\n        vnclip.wx v8, v16, a5\n        vnclip.wx v12, v20, a5\n        vrgatherei16.vv v16, v8, v2\n        vse16.v v12, (a0)\n        add     a0, a0, t1\n        vse16.v v16, (t0)\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_window_fixed_rvv, zve64x\n        csrwi   vxrm, 0\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a4, a2\n        vid.v   v0\n        sh3add  t3, a4, a3\n        vadd.vi v0, v0, 1\n        sh3add  t0, a4, a0\n1:\n        vsetvli t2, a4, e16, m1, ta, ma\n        slli    t4, t2, 2\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t4\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:3", "text": "slli    t4, t2, 2\n        vrsub.vx v2, v0, t2\n        sub     t3, t3, t4\n        vsetvli zero, zero, e32, m2, ta, ma\n        sub     a2, a2, t4\n        vle32.v v8, (t3)\n        sub     t0, t0, t4\n        vle32.v v4, (a2)\n        sub     a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v v16, (a1)\n        add     a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v v24, (a3)\n        add     a3, a3, t4\n        vwmul.vv v12, v16, v28\n        vwmul.vv v8, v16, v24\n        // vwnmsac.vv does _not_ exist so multiply & subtract separately\n        vwmul.vv v4, v20, v24\n        vwmacc.vv v8, v20, v28\n        vsetvli zero, zero, e64, m4, ta, ma\n        vsub.vv v12, v12, v4\n        vsetvli zero, zero, e32, m2, ta, ma\n        vnclip.wi v16, v8, 31\n        vnclip.wi v20, v12, 31\n        vrgatherei16.vv v8, v16, v2\n        vse32.v v20, (a0)\n        add     a0, a0, t4\n        vse32.v v8, (t0)\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_fixed_rvv, zve32x\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a3, e32, m4, ta, ma\n        vle32.v v16, (a1)\n        sub     a3, a3, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_reverse_fixed_rvv, zve32x\n        csrwi   vxrm, 0\n        // e16/m4 and e32/m8 are possible but slow the gathers down.\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a3, a2\n        vid.v   v0\n        vadd.vi v0, v0, 1\n1:\n        vsetvli t0, a3, e16, m1, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:4", "text": "vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_reverse_fixed_rvv, zve32x\n        csrwi   vxrm, 0\n        // e16/m4 and e32/m8 are possible but slow the gathers down.\n        vsetvli t0, zero, e16, m1, ta, ma\n        sh2add  a2, a3, a2\n        vid.v   v0\n        vadd.vi v0, v0, 1\n1:\n        vsetvli t0, a3, e16, m1, ta, ma\n        slli    t1, t0, 2\n        vrsub.vx v4, v0, t0 // v4[i] = [VL-1, VL-2... 1, 0]\n        sub     a2, a2, t1\n        vsetvli zero, zero, e32, m2, ta, ma\n        vle32.v v8, (a2)\n        sub     a3, a3, t0\n        vle32.v v16, (a1)\n        add     a1, a1, t1\n        vrgatherei16.vv v24, v8, v4 // v24 = reverse(v8)\n        vsmul.vv v16, v16, v24\n        vse32.v v16, (a0)\n        add     a0, a0, t1\n        bnez    a3, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_add_fixed_rvv, zve32x\n        csrwi   vxrm, 0\n1:\n        vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_fixed_rvv, zve64x\n        li      t1, 1 << 30\n        vsetvli t0, zero, e64, m8, ta, ma", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:5", "text": "vsetvli t0, a4, e32, m8, ta, ma\n        vle32.v v16, (a1)\n        sub     a4, a4, t0\n        vle32.v v24, (a2)\n        sh2add  a1, t0, a1\n        vsmul.vv v8, v16, v24\n        sh2add  a2, t0, a2\n        vle32.v v0,(a3)\n        sh2add  a3, t0, a3\n        vadd.vv v8, v8, v0\n        vse32.v v8, (a0)\n        sh2add  a0, t0, a0\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_fixed_rvv, zve64x\n        li      t1, 1 << 30\n        vsetvli t0, zero, e64, m8, ta, ma\n        vmv.v.x v8, zero\n        vmv.s.x v0, t1\n1:\n        vsetvli t0, a2, e32, m4, tu, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v20, (a1)\n        sh2add  a0, t0, a0\n        vwmacc.vv v8, v16, v20\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        vsetvli t0, zero, e64, m8, ta, ma\n        vredsum.vs v0, v8, v0\n        vmv.x.s a0, v0\n        srai    a0, a0, 31\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_fixed_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 161, "line_end": 216}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/fixed_dsp_rvv.S:6", "text": "func ff_butterflies_fixed_rvv, zve32x\n1:\n        vsetvli t0, a2, e32, m4, ta, ma\n        vle32.v v16, (a0)\n        sub     a2, a2, t0\n        vle32.v v24, (a1)\n        vadd.vv v0, v16, v24\n        vsub.vv v8, v16, v24\n        vse32.v v0, (a0)\n        sh2add  a0, t0, a0\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/fixed_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/fixed_dsp_rvv.S", "line_start": 201, "line_end": 216}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_fmul_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli  t0, a3, e32, m8, ta, ma\n        vle32.v  v16, (a1)\n        sub      a3, a3, t0\n        vle32.v  v24, (a2)\n        sh2add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh2add   a2, t0, a2\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmac_scalar_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x   fa0, a2\nNOHWF   mv        a2, a3\n1:\n        vsetvli   t0, a2, e32, m8, ta, ma\n        slli      t1, t0, 2\n        vle32.v   v24, (a1)\n        sub       a2, a2, t0\n        vle32.v   v16, (a0)\n        sh2add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse32.v   v16, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:2", "text": "// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmac_scalar_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x   fa0, a2\nNOHWF   mv        a2, a3\n1:\n        vsetvli   t0, a2, e32, m8, ta, ma\n        slli      t1, t0, 2\n        vle32.v   v24, (a1)\n        sub       a2, a2, t0\n        vle32.v   v16, (a0)\n        sh2add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse32.v   v16, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmul_scalar_rvv, zve32f, zba\n        lpad    0\nNOHWF   fmv.w.x  fa0, a2\nNOHWF   mv       a2, a3\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh2add   a1, t0, a1\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_window_rvv, zve32f, zba\n        lpad    0\n        // a0: dst, a1: src0, a2: src1, a3: window, a4: length\n        // e16/m2 and e32/m4 are possible but slower due to gather.\n        vsetvli    t0, zero, e16, m1, ta, ma\n        sh2add     a2, a4, a2\n        vid.v      v0\n        sh3add     t3, a4, a3\n        vadd.vi    v0, v0, 1\n        sh3add     t0, a4, a0\n1:\n        vsetvli    t2, a4, e16, m1, ta, ma\n        slli       t4, t2, 2\n        vrsub.vx   v2, v0, t2\n        sub        t3, t3, t4\n        vsetvli    zero, zero, e32, m2, ta, ma\n        sub        a2, a2, t4\n        vle32.v    v8, (t3)\n        sub        t0, t0, t4\n        vle32.v    v4, (a2)\n        sub        a4, a4, t2\n        vrgatherei16.vv v28, v8, v2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:3", "text": "// a0: dst, a1: src0, a2: src1, a3: window, a4: length\n        // e16/m2 and e32/m4 are possible but slower due to gather.\n        vsetvli    t0, zero, e16, m1, ta, ma\n        sh2add     a2, a4, a2\n        vid.v      v0\n        sh3add     t3, a4, a3\n        vadd.vi    v0, v0, 1\n        sh3add     t0, a4, a0\n1:\n        vsetvli    t2, a4, e16, m1, ta, ma\n        slli       t4, t2, 2\n        vrsub.vx   v2, v0, t2\n        sub        t3, t3, t4\n        vsetvli    zero, zero, e32, m2, ta, ma\n        sub        a2, a2, t4\n        vle32.v    v8, (t3)\n        sub        t0, t0, t4\n        vle32.v    v4, (a2)\n        sub        a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v    v16, (a1)\n        add        a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v    v24, (a3)\n        add        a3, a3, t4\n        vfmul.vv   v12, v16, v28\n        vfmul.vv   v16, v16, v24\n        vfnmsac.vv v12, v20, v24\n        vfmacc.vv  v16, v20, v28\n        vrgatherei16.vv v8, v16, v2\n        vse32.v    v12, (a0)\n        add        a0, a0, t4\n        vse32.v    v8, (t0)\n        bnez       a4, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) + (a3) [0..a4-1]\nfunc ff_vector_fmul_add_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v8, (a1)\n        sub       a4, a4, t0\n        vle32.v   v16, (a2)\n        sh2add    a1, t0, a1\n        vle32.v   v24, (a3)\n        sh2add    a2, t0, a2\n        vfmadd.vv v8, v16, v24\n        sh2add    a3, t0, a3\n        vse32.v   v8, (a0)\n        sh2add    a0, t0, a0\n        bnez      a4, 1b\n\n        ret\nendfunc\n\n// TODO factor vrsub, separate last iteration?\n// (a0) = (a1) * reverse(a2) [0..a3-1]", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:4", "text": "lpad    0\n1:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v8, (a1)\n        sub       a4, a4, t0\n        vle32.v   v16, (a2)\n        sh2add    a1, t0, a1\n        vle32.v   v24, (a3)\n        sh2add    a2, t0, a2\n        vfmadd.vv v8, v16, v24\n        sh2add    a3, t0, a3\n        vse32.v   v8, (a0)\n        sh2add    a0, t0, a0\n        bnez      a4, 1b\n\n        ret\nendfunc\n\n// TODO factor vrsub, separate last iteration?\n// (a0) = (a1) * reverse(a2) [0..a3-1]\nfunc ff_vector_fmul_reverse_rvv, zve32f, zba\n        lpad    0\n        // e16/m4 and e32/m8 are possible but slower due to gather.\n        vsetvli  t0, zero, e16, m1, ta, ma\n        sh2add   a2, a3, a2\n        vid.v    v0\n        vadd.vi  v0, v0, 1\n1:\n        vsetvli  t0, a3, e16, m1, ta, ma\n        slli     t1, t0, 2\n        vrsub.vx v4, v0, t0 // v4[i] = [VL-1, VL-2... 1, 0]\n        sub      a2, a2, t1\n        vsetvli  zero, zero, e32, m2, ta, ma\n        vle32.v  v8, (a2)\n        sub      a3, a3, t0\n        vle32.v  v16, (a1)\n        add      a1, a1, t1\n        vrgatherei16.vv v24, v8, v4 // v24 = reverse(v8)\n        vfmul.vv v16, v16, v24\n        vse32.v  v16, (a0)\n        add      a0, a0, t1\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_float_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a0)\n        sub      a2, a2, t0\n        vle32.v  v24, (a1)\n        vfadd.vv v0, v16, v24\n        vfsub.vv v8, v16, v24\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:5", "text": "add      a0, a0, t1\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_float_rvv, zve32f, zba\n        lpad    0\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a0)\n        sub      a2, a2, t0\n        vle32.v  v24, (a1)\n        vfadd.vv v0, v16, v24\n        vfsub.vv v8, v16, v24\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\n// a0 = (a0).(a1) [0..a2-1]\nfunc ff_scalarproduct_float_rvv, zve32f, zba\n        lpad    0\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e32, m8, tu, ma\n        vle32.v      v16, (a0)\n        sub          a2, a2, t0\n        vle32.v      v24, (a1)\n        sh2add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh2add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n        lpad    0\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n        lpad    0\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x fa0, a2\nNOHWD   mv      a2, a3\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a2, 0(sp)\nNOHWD   sw      a3, 4(sp)\nNOHWD   mv      a2, a4\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x fa0, a2\nNOHWD   mv      a2, a3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x fa0, a2\nNOHWD   mv      a2, a3\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a2, 0(sp)\nNOHWD   sw      a3, 4(sp)\nNOHWD   mv      a2, a4\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64d, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\n#if __riscv_xlen >= 64", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:8", "text": "func ff_scalarproduct_double_rvv, zve64d, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\n#if __riscv_xlen >= 64\nNOHWD   fmv.x.w      a0, fa0\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   fsd     fa0, (sp)\nNOHWD   lw      a0,  (sp)\nNOHWD   lw      a1, 4(sp)\nNOHWD   addi    sp, sp, 16\n#endif\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/float_dsp_rvv.S", "line_start": 281, "line_end": 310}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x fa0, a2\nNOHWD   mv      a2, a3\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a2, 0(sp)\nNOHWD   sw      a3, 4(sp)\nNOHWD   mv      a2, a4\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "435623cbdafa236b6a6d70306ec513c52df9c79b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/435623cbdafa236b6a6d70306ec513c52df9c79b/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:8", "text": "func ff_scalarproduct_double_rvv, zve64f, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "435623cbdafa236b6a6d70306ec513c52df9c79b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/435623cbdafa236b6a6d70306ec513c52df9c79b/libavutil/riscv/float_dsp_rvv.S", "line_start": 281, "line_end": 302}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n        lpad    0\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x fa0, a2\nNOHWD   mv      a2, a3\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a2, 0(sp)\nNOHWD   sw      a3, 4(sp)\nNOHWD   mv      a2, a4\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x  fa0, a2\n#else", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "56d933b0a742fa57601de21ced3b01a2aab5b1b3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56d933b0a742fa57601de21ced3b01a2aab5b1b3/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x  fa0, a2\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a0, 0(sp)\nNOHWD   sw      a1, 4(sp)\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "56d933b0a742fa57601de21ced3b01a2aab5b1b3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/56d933b0a742fa57601de21ced3b01a2aab5b1b3/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n        lpad    0\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x   fa0, a2\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a0, 0(sp)\nNOHWD   sw      a1, 4(sp)\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\nNOHWD   mv        a2, a3\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x  fa0, a2\n#else\nNOHWD   addi    sp, sp, -16", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "63922ba5dc77b85033d4926a86f090c9023aff2a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63922ba5dc77b85033d4926a86f090c9023aff2a/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\n#if __riscv_xlen >= 64\nNOHWD   fmv.d.x  fa0, a2\n#else\nNOHWD   addi    sp, sp, -16\nNOHWD   sw      a0, 0(sp)\nNOHWD   sw      a1, 4(sp)\nNOHWD   fld     fa0, (sp)\nNOHWD   addi    sp, sp, 16\n#endif\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "63922ba5dc77b85033d4926a86f090c9023aff2a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63922ba5dc77b85033d4926a86f090c9023aff2a/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:8", "text": "lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "63922ba5dc77b85033d4926a86f090c9023aff2a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/63922ba5dc77b85033d4926a86f090c9023aff2a/libavutil/riscv/float_dsp_rvv.S", "line_start": 281, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n        lpad    0\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d, zba\n        lpad    0\nNOHWD   fmv.d.x   fa0, a2\nNOHWD   mv        a2, a3\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\nNOHWD   fmv.d.x  fa0, a2\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "a14d21a446e9935dba7ba8dd262dc236160af5d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a14d21a446e9935dba7ba8dd262dc236160af5d1/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\n        lpad    0\nNOHWD   fmv.d.x  fa0, a2\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f, zba\n        lpad    0\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "a14d21a446e9935dba7ba8dd262dc236160af5d1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a14d21a446e9935dba7ba8dd262dc236160af5d1/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 284}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_fmul_rvv, zve32f, zba\n1:\n        vsetvli  t0, a3, e32, m8, ta, ma\n        vle32.v  v16, (a1)\n        sub      a3, a3, t0\n        vle32.v  v24, (a2)\n        sh2add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh2add   a2, t0, a2\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmac_scalar_rvv, zve32f, zba\nNOHWF   fmv.w.x   fa0, a2\nNOHWF   mv        a2, a3\n1:\n        vsetvli   t0, a2, e32, m8, ta, ma\n        slli      t1, t0, 2\n        vle32.v   v24, (a1)\n        sub       a2, a2, t0\n        vle32.v   v16, (a0)\n        sh2add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse32.v   v16, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmul_scalar_rvv, zve32f, zba", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:2", "text": "func ff_vector_fmac_scalar_rvv, zve32f, zba\nNOHWF   fmv.w.x   fa0, a2\nNOHWF   mv        a2, a3\n1:\n        vsetvli   t0, a2, e32, m8, ta, ma\n        slli      t1, t0, 2\n        vle32.v   v24, (a1)\n        sub       a2, a2, t0\n        vle32.v   v16, (a0)\n        sh2add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse32.v   v16, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmul_scalar_rvv, zve32f, zba\nNOHWF   fmv.w.x  fa0, a2\nNOHWF   mv       a2, a3\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh2add   a1, t0, a1\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_window_rvv, zve32f, zba\n        // a0: dst, a1: src0, a2: src1, a3: window, a4: length\n        // e16/m2 and e32/m4 are possible but slower due to gather.\n        vsetvli    t0, zero, e16, m1, ta, ma\n        sh2add     a2, a4, a2\n        vid.v      v0\n        sh3add     t3, a4, a3\n        vadd.vi    v0, v0, 1\n        sh3add     t0, a4, a0\n1:\n        vsetvli    t2, a4, e16, m1, ta, ma\n        slli       t4, t2, 2\n        vrsub.vx   v2, v0, t2\n        sub        t3, t3, t4\n        vsetvli    zero, zero, e32, m2, ta, ma\n        sub        a2, a2, t4\n        vle32.v    v8, (t3)\n        sub        t0, t0, t4\n        vle32.v    v4, (a2)\n        sub        a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v    v16, (a1)\n        add        a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v    v24, (a3)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:3", "text": "vid.v      v0\n        sh3add     t3, a4, a3\n        vadd.vi    v0, v0, 1\n        sh3add     t0, a4, a0\n1:\n        vsetvli    t2, a4, e16, m1, ta, ma\n        slli       t4, t2, 2\n        vrsub.vx   v2, v0, t2\n        sub        t3, t3, t4\n        vsetvli    zero, zero, e32, m2, ta, ma\n        sub        a2, a2, t4\n        vle32.v    v8, (t3)\n        sub        t0, t0, t4\n        vle32.v    v4, (a2)\n        sub        a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v    v16, (a1)\n        add        a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v    v24, (a3)\n        add        a3, a3, t4\n        vfmul.vv   v12, v16, v28\n        vfmul.vv   v16, v16, v24\n        vfnmsac.vv v12, v20, v24\n        vfmacc.vv  v16, v20, v28\n        vrgatherei16.vv v8, v16, v2\n        vse32.v    v12, (a0)\n        add        a0, a0, t4\n        vse32.v    v8, (t0)\n        bnez       a4, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) + (a3) [0..a4-1]\nfunc ff_vector_fmul_add_rvv, zve32f, zba\n1:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v8, (a1)\n        sub       a4, a4, t0\n        vle32.v   v16, (a2)\n        sh2add    a1, t0, a1\n        vle32.v   v24, (a3)\n        sh2add    a2, t0, a2\n        vfmadd.vv v8, v16, v24\n        sh2add    a3, t0, a3\n        vse32.v   v8, (a0)\n        sh2add    a0, t0, a0\n        bnez      a4, 1b\n\n        ret\nendfunc\n\n// TODO factor vrsub, separate last iteration?\n// (a0) = (a1) * reverse(a2) [0..a3-1]\nfunc ff_vector_fmul_reverse_rvv, zve32f, zba\n        // e16/m4 and e32/m8 are possible but slower due to gather.\n        vsetvli  t0, zero, e16, m1, ta, ma\n        sh2add   a2, a3, a2\n        vid.v    v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:4", "text": "vle32.v   v16, (a2)\n        sh2add    a1, t0, a1\n        vle32.v   v24, (a3)\n        sh2add    a2, t0, a2\n        vfmadd.vv v8, v16, v24\n        sh2add    a3, t0, a3\n        vse32.v   v8, (a0)\n        sh2add    a0, t0, a0\n        bnez      a4, 1b\n\n        ret\nendfunc\n\n// TODO factor vrsub, separate last iteration?\n// (a0) = (a1) * reverse(a2) [0..a3-1]\nfunc ff_vector_fmul_reverse_rvv, zve32f, zba\n        // e16/m4 and e32/m8 are possible but slower due to gather.\n        vsetvli  t0, zero, e16, m1, ta, ma\n        sh2add   a2, a3, a2\n        vid.v    v0\n        vadd.vi  v0, v0, 1\n1:\n        vsetvli  t0, a3, e16, m1, ta, ma\n        slli     t1, t0, 2\n        vrsub.vx v4, v0, t0 // v4[i] = [VL-1, VL-2... 1, 0]\n        sub      a2, a2, t1\n        vsetvli  zero, zero, e32, m2, ta, ma\n        vle32.v  v8, (a2)\n        sub      a3, a3, t0\n        vle32.v  v16, (a1)\n        add      a1, a1, t1\n        vrgatherei16.vv v24, v8, v4 // v24 = reverse(v8)\n        vfmul.vv v16, v16, v24\n        vse32.v  v16, (a0)\n        add      a0, a0, t1\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_float_rvv, zve32f, zba\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a0)\n        sub      a2, a2, t0\n        vle32.v  v24, (a1)\n        vfadd.vv v0, v16, v24\n        vfsub.vv v8, v16, v24\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\n// a0 = (a0).(a1) [0..a2-1]\nfunc ff_scalarproduct_float_rvv, zve32f, zba", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:5", "text": "// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_float_rvv, zve32f, zba\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a0)\n        sub      a2, a2, t0\n        vle32.v  v24, (a1)\n        vfadd.vv v0, v16, v24\n        vfsub.vv v8, v16, v24\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\n// a0 = (a0).(a1) [0..a2-1]\nfunc ff_scalarproduct_float_rvv, zve32f, zba\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e32, m8, tu, ma\n        vle32.v      v16, (a0)\n        sub          a2, a2, t0\n        vle32.v      v24, (a1)\n        sh2add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh2add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d, zba\nNOHWD   fmv.d.x   fa0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d, zba\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d, zba\nNOHWD   fmv.d.x   fa0, a2\nNOHWD   mv        a2, a3\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d, zba\nNOHWD   fmv.d.x  fa0, a2\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f, zba\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f, zba\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "5f10173fa173f27405d4700522fea2b59fa82416", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5f10173fa173f27405d4700522fea2b59fa82416/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 272}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_fmul_rvv, zve32f\n1:\n        vsetvli  t0, a3, e32, m8, ta, ma\n        vle32.v  v16, (a1)\n        sub      a3, a3, t0\n        vle32.v  v24, (a2)\n        sh2add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh2add   a2, t0, a2\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmac_scalar_rvv, zve32f\nNOHWF   fmv.w.x   fa0, a2\nNOHWF   mv        a2, a3\n1:\n        vsetvli   t0, a2, e32, m8, ta, ma\n        slli      t1, t0, 2\n        vle32.v   v24, (a1)\n        sub       a2, a2, t0\n        vle32.v   v16, (a0)\n        sh2add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse32.v   v16, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmul_scalar_rvv, zve32f", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:2", "text": "func ff_vector_fmac_scalar_rvv, zve32f\nNOHWF   fmv.w.x   fa0, a2\nNOHWF   mv        a2, a3\n1:\n        vsetvli   t0, a2, e32, m8, ta, ma\n        slli      t1, t0, 2\n        vle32.v   v24, (a1)\n        sub       a2, a2, t0\n        vle32.v   v16, (a0)\n        sh2add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse32.v   v16, (a0)\n        sh2add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_fmul_scalar_rvv, zve32f\nNOHWF   fmv.w.x  fa0, a2\nNOHWF   mv       a2, a3\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh2add   a1, t0, a1\n        vse32.v  v16, (a0)\n        sh2add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_vector_fmul_window_rvv, zve32f\n        // a0: dst, a1: src0, a2: src1, a3: window, a4: length\n        // e16/m2 and e32/m4 are possible but slower due to gather.\n        vsetvli    t0, zero, e16, m1, ta, ma\n        sh2add     a2, a4, a2\n        vid.v      v0\n        sh3add     t3, a4, a3\n        vadd.vi    v0, v0, 1\n        sh3add     t0, a4, a0\n1:\n        vsetvli    t2, a4, e16, m1, ta, ma\n        slli       t4, t2, 2\n        vrsub.vx   v2, v0, t2\n        sub        t3, t3, t4\n        vsetvli    zero, zero, e32, m2, ta, ma\n        sub        a2, a2, t4\n        vle32.v    v8, (t3)\n        sub        t0, t0, t4\n        vle32.v    v4, (a2)\n        sub        a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v    v16, (a1)\n        add        a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v    v24, (a3)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:3", "text": "vid.v      v0\n        sh3add     t3, a4, a3\n        vadd.vi    v0, v0, 1\n        sh3add     t0, a4, a0\n1:\n        vsetvli    t2, a4, e16, m1, ta, ma\n        slli       t4, t2, 2\n        vrsub.vx   v2, v0, t2\n        sub        t3, t3, t4\n        vsetvli    zero, zero, e32, m2, ta, ma\n        sub        a2, a2, t4\n        vle32.v    v8, (t3)\n        sub        t0, t0, t4\n        vle32.v    v4, (a2)\n        sub        a4, a4, t2\n        vrgatherei16.vv v28, v8, v2\n        vle32.v    v16, (a1)\n        add        a1, a1, t4\n        vrgatherei16.vv v20, v4, v2\n        vle32.v    v24, (a3)\n        add        a3, a3, t4\n        vfmul.vv   v12, v16, v28\n        vfmul.vv   v16, v16, v24\n        vfnmsac.vv v12, v20, v24\n        vfmacc.vv  v16, v20, v28\n        vrgatherei16.vv v8, v16, v2\n        vse32.v    v12, (a0)\n        add        a0, a0, t4\n        vse32.v    v8, (t0)\n        bnez       a4, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) + (a3) [0..a4-1]\nfunc ff_vector_fmul_add_rvv, zve32f\n1:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v8, (a1)\n        sub       a4, a4, t0\n        vle32.v   v16, (a2)\n        sh2add    a1, t0, a1\n        vle32.v   v24, (a3)\n        sh2add    a2, t0, a2\n        vfmadd.vv v8, v16, v24\n        sh2add    a3, t0, a3\n        vse32.v   v8, (a0)\n        sh2add    a0, t0, a0\n        bnez      a4, 1b\n\n        ret\nendfunc\n\n// TODO factor vrsub, separate last iteration?\n// (a0) = (a1) * reverse(a2) [0..a3-1]\nfunc ff_vector_fmul_reverse_rvv, zve32f\n        // e16/m4 and e32/m8 are possible but slower due to gather.\n        vsetvli  t0, zero, e16, m1, ta, ma\n        sh2add   a2, a3, a2\n        vid.v    v0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:4", "text": "vle32.v   v16, (a2)\n        sh2add    a1, t0, a1\n        vle32.v   v24, (a3)\n        sh2add    a2, t0, a2\n        vfmadd.vv v8, v16, v24\n        sh2add    a3, t0, a3\n        vse32.v   v8, (a0)\n        sh2add    a0, t0, a0\n        bnez      a4, 1b\n\n        ret\nendfunc\n\n// TODO factor vrsub, separate last iteration?\n// (a0) = (a1) * reverse(a2) [0..a3-1]\nfunc ff_vector_fmul_reverse_rvv, zve32f\n        // e16/m4 and e32/m8 are possible but slower due to gather.\n        vsetvli  t0, zero, e16, m1, ta, ma\n        sh2add   a2, a3, a2\n        vid.v    v0\n        vadd.vi  v0, v0, 1\n1:\n        vsetvli  t0, a3, e16, m1, ta, ma\n        slli     t1, t0, 2\n        vrsub.vx v4, v0, t0 // v4[i] = [VL-1, VL-2... 1, 0]\n        sub      a2, a2, t1\n        vsetvli  zero, zero, e32, m2, ta, ma\n        vle32.v  v8, (a2)\n        sub      a3, a3, t0\n        vle32.v  v16, (a1)\n        add      a1, a1, t1\n        vrgatherei16.vv v24, v8, v4 // v24 = reverse(v8)\n        vfmul.vv v16, v16, v24\n        vse32.v  v16, (a0)\n        add      a0, a0, t1\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_float_rvv, zve32f\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a0)\n        sub      a2, a2, t0\n        vle32.v  v24, (a1)\n        vfadd.vv v0, v16, v24\n        vfsub.vv v8, v16, v24\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\n// a0 = (a0).(a1) [0..a2-1]\nfunc ff_scalarproduct_float_rvv, zve32f", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:5", "text": "// (a0) = (a0) + (a1), (a1) = (a0) - (a1) [0..a2-1]\nfunc ff_butterflies_float_rvv, zve32f\n1:\n        vsetvli  t0, a2, e32, m8, ta, ma\n        vle32.v  v16, (a0)\n        sub      a2, a2, t0\n        vle32.v  v24, (a1)\n        vfadd.vv v0, v16, v24\n        vfsub.vv v8, v16, v24\n        vse32.v  v0, (a0)\n        sh2add   a0, t0, a0\n        vse32.v  v8, (a1)\n        sh2add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\n// a0 = (a0).(a1) [0..a2-1]\nfunc ff_scalarproduct_float_rvv, zve32f\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e32, m8, tu, ma\n        vle32.v      v16, (a0)\n        sub          a2, a2, t0\n        vle32.v      v24, (a1)\n        sh2add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh2add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e32, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWF   fmv.x.w  a0, fa0\n        ret\nendfunc\n\n// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d\nNOHWD   fmv.d.x   fa0, a2", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d\nNOHWD   fmv.d.x   fa0, a2\nNOHWD   mv        a2, a3\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d\nNOHWD   fmv.d.x  fa0, a2\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_scalarproduct_double_rvv, zve64f\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vmv.v.x      v8, zero\n        vmv.s.x      v0, zero\n1:\n        vsetvli      t0, a2, e64, m8, tu, ma\n        vle64.v      v16, (a0)\n        sub          a2, a2, t0\n        vle64.v      v24, (a1)\n        sh3add       a0, t0, a0\n        vfmacc.vv    v8, v16, v24\n        sh3add       a1, t0, a1\n        bnez         a2, 1b\n\n        vsetvli      t0, zero, e64, m8, ta, ma\n        vfredusum.vs v0, v8, v0\n        vfmv.f.s     fa0, v0\nNOHWD   fmv.x.w      a0, fa0\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "9238f6cb415d5a688e76f804e74ebddfd556bdda", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9238f6cb415d5a688e76f804e74ebddfd556bdda/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 272}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:6", "text": "// (a0) = (a1) * (a2) [0..a3-1]\nfunc ff_vector_dmul_rvv, zve64d\n1:\n        vsetvli  t0, a3, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a3, a3, t0\n        vle64.v  v24, (a2)\n        sh3add   a1, t0, a1\n        vfmul.vv v16, v16, v24\n        sh3add   a2, t0, a2\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a3, 1b\n\n        ret\nendfunc\n\n// (a0) += (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmac_scalar_rvv, zve64d\nNOHWD   fmv.d.x   fa0, a2\nNOHWD   mv        a2, a3\n1:\n        vsetvli   t0, a2, e64, m8, ta, ma\n        vle64.v   v24, (a1)\n        sub       a2, a2, t0\n        vle64.v   v16, (a0)\n        sh3add    a1, t0, a1\n        vfmacc.vf v16, fa0, v24\n        vse64.v   v16, (a0)\n        sh3add    a0, t0, a0\n        bnez      a2, 1b\n\n        ret\nendfunc\n\n// (a0) = (a1) * fa0 [0..a2-1]\nfunc ff_vector_dmul_scalar_rvv, zve64d\nNOHWD   fmv.d.x  fa0, a2\nNOHWD   mv       a2, a3\n1:\n        vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/float_dsp_rvv.S", "line_start": 201, "line_end": 251}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/float_dsp_rvv.S:7", "text": "vsetvli  t0, a2, e64, m8, ta, ma\n        vle64.v  v16, (a1)\n        sub      a2, a2, t0\n        vfmul.vf v16, v16, fa0\n        sh3add   a1, t0, a1\n        vse64.v  v16, (a0)\n        sh3add   a0, t0, a0\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/float_dsp_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/riscv/float_dsp_rvv.S", "line_start": 241, "line_end": 251}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/lls_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunc ff_lls_update_covariance_rvv, zve64d, zbb\n        lpad    0\n        vtype_vli     t0, a2, t1, e64, ta, ma\n        vsetvl        zero, a2, t0\n        vle64.v       v8, (a1)\n1:\n        vfmv.f.s      ft0, v8\n        vle64.v       v16, (a0)\n        vfmacc.vf     v16, ft0, v8\n        addi          a2, a2, -1\n        vslidedown.vi v8, v8, 1\n        vse64.v       v16, (a0)\n        addi          a0, a0, (36 + 1) * 8 # 1 row + 1 element\n        bnez          a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/lls_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/lls_rvv.S", "line_start": 1, "line_end": 39}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/lls_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunc ff_lls_update_covariance_rvv, zve64d, zbb\n        vtype_vli     t0, a2, t1, e64, ta, ma\n        vsetvl        zero, a2, t0\n        vle64.v       v8, (a1)\n1:\n        vfmv.f.s      ft0, v8\n        vle64.v       v16, (a0)\n        vfmacc.vf     v16, ft0, v8\n        addi          a2, a2, -1\n        vslidedown.vi v8, v8, 1\n        vse64.v       v16, (a0)\n        addi          a0, a0, (36 + 1) * 8 # 1 row + 1 element\n        bnez          a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/lls_rvv.S", "license": "LGPL-2.1", "commit": "d5e603ddc07211d3c2376d592ec161113c55e036", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5e603ddc07211d3c2376d592ec161113c55e036/libavutil/riscv/lls_rvv.S", "line_start": 1, "line_end": 38}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/lls_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\nfunc ff_lls_update_covariance_rvv, zve64d, zbb\n        vtype_vli     t0, a2, t1, e64, ta, ma\n        vsetvl        zero, a2, t0\n        vle64.v       v8, (a1)\n1:\n        vfmv.f.s      ft0, v8\n        vsetvl        zero, a2, t0\n        vle64.v       v16, (a0)\n        vfmacc.vf     v16, ft0, v8\n        addi          a2, a2, -1\n        vslidedown.vi v8, v8, 1\n        vse64.v       v16, (a0)\n        addi          a0, a0, (36 + 1) * 8 # 1 row + 1 element\n        bnez          a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/lls_rvv.S", "license": "LGPL-2.1", "commit": "eed0a1d3d4524e1e87aca0e75e4bec09833f76f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/eed0a1d3d4524e1e87aca0e75e4bec09833f76f4/libavutil/riscv/lls_rvv.S", "line_start": 1, "line_end": 39}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/pixelutils_rvv.S:1", "text": "/*\n * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS).\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"asm.S\"\n\n.macro pix_abs_ret\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.x.s         a0, v0\n        ret\n.endm\n\nfunc ff_pixelutils_sad16_rvv, zve32x\n        lpad    0\n        li              a4, 16\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 16, e8, m1, tu, ma\n        vle8.v          v4, (a0)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a0, a0, a1\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pixelutils_sad8_rvv, zve32x\n        lpad    0\n        li              a4, 8\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a0)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/pixelutils_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/pixelutils_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/riscv/pixelutils_rvv.S:2", "text": "vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m2, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc\n\nfunc ff_pixelutils_sad8_rvv, zve32x\n        lpad    0\n        li              a4, 8\n        vsetivli        zero, 1, e32, m1, ta, ma\n        vmv.s.x         v0, zero\n1:\n        vsetivli        zero, 8, e8, mf2, tu, ma\n        vle8.v          v4, (a0)\n        vle8.v          v12, (a2)\n        addi            a4, a4, -1\n        vwsubu.vv       v16, v4, v12\n        add             a0, a0, a1\n        vwsubu.vv       v20, v12, v4\n        vsetvli         zero, zero, e16, m1, tu, ma\n        vmax.vv         v16, v16, v20\n        add             a2, a2, a3\n        vwredsum.vs     v0, v16, v0\n        bnez            a4, 1b\n\n        pix_abs_ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/riscv/pixelutils_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/riscv/pixelutils_rvv.S", "line_start": 41, "line_end": 71}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:1", "text": ";*****************************************************************************\n;* Copyright (c) 2015 Rodger Combs <rodger.combs@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_aes_decrypt(AVAES *a, uint8_t *dst, const uint8_t *src,\n;                     int count, uint8_t *iv, int rounds)\n;-----------------------------------------------------------------------------\n%macro AES_CRYPT 2\ncglobal aes_%1rypt_%2, 5, 5, 2\n    test     r3d, r3d\n    je .ret\n    shl      r3d, 4\n    add       r0, 0x70\n    add       r2, r3\n    add       r1, r3\n    neg       r3\n    pxor      m1, m1\n    test      r4, r4\n    je .block\n    movu      m1, [r4] ; iv\n.block:\n    movu      m0, [r2+r3] ; state\n%ifidn %1, enc\n    pxor      m0, m1\n%endif\n    pxor      m0, [r0+8*2*%2-0x70]\n%if %2 > 10\n%if %2 > 12\n    aes%1     m0, [r0+0x60]\n    aes%1     m0, [r0+0x50]\n%endif\n    aes%1     m0, [r0+0x40]\n    aes%1     m0, [r0+0x30]\n%endif\n    aes%1     m0, [r0+0x20]\n    aes%1     m0, [r0+0x10]\n    aes%1     m0, [r0+0x00]\n    aes%1     m0, [r0-0x10]\n    aes%1     m0, [r0-0x20]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/aes.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:2", "text": "movu      m1, [r4] ; iv\n.block:\n    movu      m0, [r2+r3] ; state\n%ifidn %1, enc\n    pxor      m0, m1\n%endif\n    pxor      m0, [r0+8*2*%2-0x70]\n%if %2 > 10\n%if %2 > 12\n    aes%1     m0, [r0+0x60]\n    aes%1     m0, [r0+0x50]\n%endif\n    aes%1     m0, [r0+0x40]\n    aes%1     m0, [r0+0x30]\n%endif\n    aes%1     m0, [r0+0x20]\n    aes%1     m0, [r0+0x10]\n    aes%1     m0, [r0+0x00]\n    aes%1     m0, [r0-0x10]\n    aes%1     m0, [r0-0x20]\n    aes%1     m0, [r0-0x30]\n    aes%1     m0, [r0-0x40]\n    aes%1     m0, [r0-0x50]\n    aes%1     m0, [r0-0x60]\n    aes%1last m0, [r0-0x70]\n    test      r4, r4\n    je .noiv\n%ifidn %1, enc\n    mova      m1, m0\n%else\n    pxor      m0, m1\n    movu      m1, [r2+r3]\n%endif\n.noiv:\n    movu [r1+r3], m0\n    add       r3, 16\n    jl .block\n    test      r4, r4\n    je .ret\n%ifidn %1, dec\n    movu    [r4], m1\n%else\n    movu    [r4], m0\n%endif\n.ret:\n    REP_RET\n%endmacro\n\nINIT_XMM aesni\nAES_CRYPT enc, 10\nAES_CRYPT enc, 12\nAES_CRYPT enc, 14\nAES_CRYPT dec, 10\nAES_CRYPT dec, 12\nAES_CRYPT dec, 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/aes.asm", "line_start": 41, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:3", "text": "movu    [r4], m1\n%else\n    movu    [r4], m0\n%endif\n.ret:\n    REP_RET\n%endmacro\n\nINIT_XMM aesni\nAES_CRYPT enc, 10\nAES_CRYPT enc, 12\nAES_CRYPT enc, 14\nAES_CRYPT dec, 10\nAES_CRYPT dec, 12\nAES_CRYPT dec, 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/aes.asm", "line_start": 81, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:2", "text": "movu      m1, [r4] ; iv\n.block:\n    movu      m0, [r2+r3] ; state\n%ifidn %1, enc\n    pxor      m0, m1\n%endif\n    pxor      m0, [r0+8*2*%2-0x70]\n%if %2 > 10\n%if %2 > 12\n    aes%1     m0, [r0+0x60]\n    aes%1     m0, [r0+0x50]\n%endif\n    aes%1     m0, [r0+0x40]\n    aes%1     m0, [r0+0x30]\n%endif\n    aes%1     m0, [r0+0x20]\n    aes%1     m0, [r0+0x10]\n    aes%1     m0, [r0+0x00]\n    aes%1     m0, [r0-0x10]\n    aes%1     m0, [r0-0x20]\n    aes%1     m0, [r0-0x30]\n    aes%1     m0, [r0-0x40]\n    aes%1     m0, [r0-0x50]\n    aes%1     m0, [r0-0x60]\n    aes%1last m0, [r0-0x70]\n    test      r4, r4\n    je .noiv\n%ifidn %1, enc\n    mova      m1, m0\n%else\n    pxor      m0, m1\n    movu      m1, [r2+r3]\n%endif\n.noiv:\n    movu [r1+r3], m0\n    add       r3, 16\n    jl .block\n    test      r4, r4\n    je .ret\n%ifidn %1, dec\n    movu    [r4], m1\n%else\n    movu    [r4], m0\n%endif\n.ret:\n    REP_RET\n%endmacro\n\n%if HAVE_AESNI_EXTERNAL\nINIT_XMM aesni\nAES_CRYPT enc, 10\nAES_CRYPT enc, 12\nAES_CRYPT enc, 14\nAES_CRYPT dec, 10\nAES_CRYPT dec, 12\nAES_CRYPT dec, 14\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "a039726c2a092c340e26b28fcc2bb3582be85d4f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a039726c2a092c340e26b28fcc2bb3582be85d4f/libavutil/x86/aes.asm", "line_start": 41, "line_end": 97}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:3", "text": "movu    [r4], m1\n%else\n    movu    [r4], m0\n%endif\n.ret:\n    REP_RET\n%endmacro\n\n%if HAVE_AESNI_EXTERNAL\nINIT_XMM aesni\nAES_CRYPT enc, 10\nAES_CRYPT enc, 12\nAES_CRYPT enc, 14\nAES_CRYPT dec, 10\nAES_CRYPT dec, 12\nAES_CRYPT dec, 14\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "a039726c2a092c340e26b28fcc2bb3582be85d4f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a039726c2a092c340e26b28fcc2bb3582be85d4f/libavutil/x86/aes.asm", "line_start": 81, "line_end": 97}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:1", "text": ";*****************************************************************************\n;* Copyright (c) 2015 Rodger Combs <rodger.combs@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_aes_decrypt(AVAES *a, uint8_t *dst, const uint8_t *src,\n;                     int count, uint8_t *iv, int rounds)\n;-----------------------------------------------------------------------------\n%macro AES_CRYPT 1\ncglobal aes_%1rypt, 6,6,2\n    test     r3d, r3d\n    je .ret\n    shl      r3d, 4\n    add      r5d, r5d\n    add       r0, 0x60\n    add       r2, r3\n    add       r1, r3\n    neg       r3\n    pxor      m1, m1\n    test      r4, r4\n    je .block\n    movu      m1, [r4] ; iv\n.block:\n    movu      m0, [r2+r3] ; state\n%ifidn %1, enc\n    pxor      m0, m1\n%endif\n    pxor      m0, [r0+8*r5-0x60]\n    cmp      r5d, 24\n    je .rounds12\n    jl .rounds10\n    aes%1     m0, [r0+0x70]\n    aes%1     m0, [r0+0x60]\n.rounds12:\n    aes%1     m0, [r0+0x50]\n    aes%1     m0, [r0+0x40]\n.rounds10:\n    aes%1     m0, [r0+0x30]\n    aes%1     m0, [r0+0x20]\n    aes%1     m0, [r0+0x10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "a35b4e8d290eeada04773038b8dc3c7a13e8f7dc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a35b4e8d290eeada04773038b8dc3c7a13e8f7dc/libavutil/x86/aes.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:2", "text": "je .block\n    movu      m1, [r4] ; iv\n.block:\n    movu      m0, [r2+r3] ; state\n%ifidn %1, enc\n    pxor      m0, m1\n%endif\n    pxor      m0, [r0+8*r5-0x60]\n    cmp      r5d, 24\n    je .rounds12\n    jl .rounds10\n    aes%1     m0, [r0+0x70]\n    aes%1     m0, [r0+0x60]\n.rounds12:\n    aes%1     m0, [r0+0x50]\n    aes%1     m0, [r0+0x40]\n.rounds10:\n    aes%1     m0, [r0+0x30]\n    aes%1     m0, [r0+0x20]\n    aes%1     m0, [r0+0x10]\n    aes%1     m0, [r0+0x00]\n    aes%1     m0, [r0-0x10]\n    aes%1     m0, [r0-0x20]\n    aes%1     m0, [r0-0x30]\n    aes%1     m0, [r0-0x40]\n    aes%1     m0, [r0-0x50]\n    aes%1last m0, [r0-0x60]\n    test      r4, r4\n    je .noiv\n%ifidn %1, enc\n    mova      m1, m0\n%else\n    pxor      m0, m1\n    movu      m1, [r2+r3]\n%endif\n.noiv:\n    movu [r1+r3], m0\n    add       r3, 16\n    jl .block\n    test      r4, r4\n    je .ret\n%ifidn %1, dec\n    movu    [r4], m1\n%else\n    movu    [r4], m0\n%endif\n.ret:\n    REP_RET\n%endmacro\n\n%if HAVE_AESNI_EXTERNAL\nINIT_XMM aesni\nAES_CRYPT enc\nAES_CRYPT dec\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "a35b4e8d290eeada04773038b8dc3c7a13e8f7dc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a35b4e8d290eeada04773038b8dc3c7a13e8f7dc/libavutil/x86/aes.asm", "line_start": 41, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:3", "text": "je .ret\n%ifidn %1, dec\n    movu    [r4], m1\n%else\n    movu    [r4], m0\n%endif\n.ret:\n    REP_RET\n%endmacro\n\n%if HAVE_AESNI_EXTERNAL\nINIT_XMM aesni\nAES_CRYPT enc\nAES_CRYPT dec\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "a35b4e8d290eeada04773038b8dc3c7a13e8f7dc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a35b4e8d290eeada04773038b8dc3c7a13e8f7dc/libavutil/x86/aes.asm", "line_start": 81, "line_end": 95}
{"id": "FFmpeg/FFmpeg:libavutil/x86/aes.asm:1", "text": ";*****************************************************************************\n;* Copyright (c) 2015 Rodger Combs <rodger.combs@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_aes_decrypt(AVAES *a, uint8_t *dst, const uint8_t *src,\n;                     int count, uint8_t *iv, int rounds)\n;-----------------------------------------------------------------------------\n%macro AES_CRYPT 1\ncglobal aes_%1rypt, 6,6,2\n    test      r3, r3\n    je .ret\n    shl      r3d, 4\n    add      r5d, r5d\n    add       r0, 0x60\n    add       r2, r3\n    add       r1, r3\n    neg       r3\n    pxor      m1, m1\n    test      r4, r4\n    je .block\n    movu      m1, [r4] ; iv\n.block:\n    movu      m0, [r2+r3] ; state\n%ifidn %1, enc\n    pxor      m0, m1\n%endif\n    pxor      m0, [r0+8*r5-0x60]\n    cmp      r5d, 24\n    je .rounds12\n    jl .rounds10\n    aes%1     m0, [r0+0x70]\n    aes%1     m0, [r0+0x60]\n.rounds12:\n    aes%1     m0, [r0+0x50]\n    aes%1     m0, [r0+0x40]\n.rounds10:\n    aes%1     m0, [r0+0x30]\n    aes%1     m0, [r0+0x20]\n    aes%1     m0, [r0+0x10]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/aes.asm", "license": "LGPL-2.1", "commit": "2ea3c51795414f092ae44de86ae5e3ac8ebd8b15", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2ea3c51795414f092ae44de86ae5e3ac8ebd8b15/libavutil/x86/aes.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/cpuid.asm:1", "text": ";*****************************************************************************\n;* Copyright (C) 2005-2010 x264 project\n;*\n;* Authors: Loren Merritt <lorenm@u.washington.edu>\n;*          Fiona Glaser <fiona@x264.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_cpu_cpuid(int index, int *eax, int *ebx, int *ecx, int *edx)\n;-----------------------------------------------------------------------------\ncglobal cpu_cpuid, 5,7\n    push rbx\n    push  r4\n    push  r3\n    push  r2\n    push  r1\n    mov  eax, r0d\n    xor  ecx, ecx\n    cpuid\n    pop   r4\n    mov [r4], eax\n    pop   r4\n    mov [r4], ebx\n    pop   r4\n    mov [r4], ecx\n    pop   r4\n    mov [r4], edx\n    pop  rbx\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_cpu_xgetbv(int op, int *eax, int *edx)\n;-----------------------------------------------------------------------------\ncglobal cpu_xgetbv, 3,7\n    push  r2\n    push  r1\n    mov  ecx, r0d\n    xgetbv\n    pop   r4\n    mov [r4], eax", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/cpuid.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/cpuid.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/cpuid.asm:2", "text": "mov [r4], eax\n    pop   r4\n    mov [r4], ebx\n    pop   r4\n    mov [r4], ecx\n    pop   r4\n    mov [r4], edx\n    pop  rbx\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_cpu_xgetbv(int op, int *eax, int *edx)\n;-----------------------------------------------------------------------------\ncglobal cpu_xgetbv, 3,7\n    push  r2\n    push  r1\n    mov  ecx, r0d\n    xgetbv\n    pop   r4\n    mov [r4], eax\n    pop   r4\n    mov [r4], edx\n    RET\n\n%if ARCH_X86_64 == 0\n;-----------------------------------------------------------------------------\n; int ff_cpu_cpuid_test(void)\n; return 0 if unsupported\n;-----------------------------------------------------------------------------\ncglobal cpu_cpuid_test\n    pushfd\n    push    ebx\n    push    ebp\n    push    esi\n    push    edi\n    pushfd\n    pop     eax\n    mov     ebx, eax\n    xor     eax, 0x200000\n    push    eax\n    popfd\n    pushfd\n    pop     eax\n    xor     eax, ebx\n    pop     edi\n    pop     esi\n    pop     ebp\n    pop     ebx\n    popfd\n    ret\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/cpuid.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/cpuid.asm", "line_start": 41, "line_end": 91}
{"id": "FFmpeg/FFmpeg:libavutil/x86/cpuid.asm:3", "text": "popfd\n    pushfd\n    pop     eax\n    xor     eax, ebx\n    pop     edi\n    pop     esi\n    pop     ebp\n    pop     ebx\n    popfd\n    ret\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/cpuid.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/cpuid.asm", "line_start": 81, "line_end": 91}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:1", "text": ";*****************************************************************************\n;* Copyright (c) 2025 Shreesh Adiga <16567adigashreesh@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"x86util.asm\"\n\nSECTION_RODATA\nreverse_shuffle: db 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0\n\npartial_bytes_shuf_tab: db 255, 254, 253, 252, 251, 250, 249, 248,\\\n                           247, 246, 245, 244, 243, 242, 241, 240,\\\n                             0,   1,   2,   3,   4,   5,   6,   7,\\\n                             8,   9,  10,  11,  12,  13,  14,  15\n\nSECTION .text\n\n%macro FOLD_128_TO_64 4\n; %1 LE ; %2 128 bit fold reg ; %3 pre-computed constant reg ; %4 tmp reg\n%if %1 == 1\n    mova      %4, %2\n    pclmulqdq %2, %3, 0x00\n    psrldq    %4, 8\n    pxor      %2, %4\n    mova      %4, %2\n    psllq     %4, 32\n    pclmulqdq %4, %3, 0x10\n    pxor      %2, %4\n%else\n    movq      %4, %2\n    pclmulqdq %2, %3, 0x11\n    pslldq    %4, 4\n    pxor      %4, %2\n    mova      %2, %4\n    pclmulqdq %4, %3, 0x01\n    pxor      %2, %4\n%endif\n%endmacro\n\n%macro FOLD_64_TO_32 4\n; %1 LE ; %2 128 bit fold reg ; %3 pre-computed constant reg ; %4 tmp reg\n%if %1 == 1\n    pxor      %4, %4\n    pblendw   %4, %2, 0xfc\n    mova      %2, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:2", "text": "psllq     %4, 32\n    pclmulqdq %4, %3, 0x10\n    pxor      %2, %4\n%else\n    movq      %4, %2\n    pclmulqdq %2, %3, 0x11\n    pslldq    %4, 4\n    pxor      %4, %2\n    mova      %2, %4\n    pclmulqdq %4, %3, 0x01\n    pxor      %2, %4\n%endif\n%endmacro\n\n%macro FOLD_64_TO_32 4\n; %1 LE ; %2 128 bit fold reg ; %3 pre-computed constant reg ; %4 tmp reg\n%if %1 == 1\n    pxor      %4, %4\n    pblendw   %4, %2, 0xfc\n    mova      %2, %4\n    pclmulqdq %4, %3, 0x00\n    pxor      %4, %2\n    pclmulqdq %4, %3, 0x10\n    pxor      %2, %4\n    pextrd   eax, %2, 2\n%else\n    mova      %4, %2\n    pclmulqdq %2, %3, 0x00\n    pclmulqdq %2, %3, 0x11\n    pxor      %2, %4\n    movd     eax, %2\n    bswap    eax\n%endif\n%endmacro\n\n%macro FOLD_SINGLE 4\n; %1 temp ; %2 fold reg ; %3 pre-computed constants ; %4 input data block\n    mova      %1, %2\n    pclmulqdq %1, %3, 0x01\n    pxor      %1, %4\n    pclmulqdq %2, %3, 0x10\n    pxor      %2, %1\n%endmacro\n\n%macro XMM_SHIFT_LEFT 4\n; %1 xmm input reg ; %2 shift bytes amount ; %3 temp xmm register ; %4 temp gpr\n    lea    %4, [partial_bytes_shuf_tab]\n    movu   %3, [%4 + 16 - (%2)]\n    pshufb %1, %3\n%endmacro\n\n%macro MEMCPY_0_15 6\n; %1 dst ; %2 src ; %3 len ; %4, %5 temp gpr register; %6 done label\n    cmp %3, 8\n    jae .between_8_15\n    cmp %3, 4\n    jae .between_4_7\n    cmp %3, 1\n    ja .between_2_3\n    jb %6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:3", "text": "pclmulqdq %2, %3, 0x10\n    pxor      %2, %1\n%endmacro\n\n%macro XMM_SHIFT_LEFT 4\n; %1 xmm input reg ; %2 shift bytes amount ; %3 temp xmm register ; %4 temp gpr\n    lea    %4, [partial_bytes_shuf_tab]\n    movu   %3, [%4 + 16 - (%2)]\n    pshufb %1, %3\n%endmacro\n\n%macro MEMCPY_0_15 6\n; %1 dst ; %2 src ; %3 len ; %4, %5 temp gpr register; %6 done label\n    cmp %3, 8\n    jae .between_8_15\n    cmp %3, 4\n    jae .between_4_7\n    cmp %3, 1\n    ja .between_2_3\n    jb %6\n    mov  %4b, [%2]\n    mov [%1], %4b\n    jmp %6\n\n.between_8_15:\n%if ARCH_X86_64\n    mov           %4q, [%2]\n    mov           %5q, [%2 + %3 - 8]\n    mov          [%1], %4q\n    mov [%1 + %3 - 8], %5q\n    jmp %6\n%else\n    xor            %5, %5\n.copy4b:\n        mov       %4d, [%2 + %5]\n        mov [%1 + %5], %4d\n        add        %5, 4\n        lea        %4, [%5 + 4]\n        cmp        %4, %3\n        jb        .copy4b\n\n    mov           %4d, [%2 + %3 - 4]\n    mov [%1 + %3 - 4], %4d\n    jmp %6\n%endif\n.between_4_7:\n    mov           %4d, [%2]\n    mov           %5d, [%2 + %3 - 4]\n    mov          [%1], %4d\n    mov [%1 + %3 - 4], %5d\n    jmp %6\n.between_2_3:\n    mov           %4w, [%2]\n    mov           %5w, [%2 + %3 - 2]\n    mov          [%1], %4w\n    mov [%1 + %3 - 2], %5w\n    ; fall through, %6 label is expected to be next instruction\n%endmacro\n\n%macro CRC 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:4", "text": "mov           %4d, [%2 + %3 - 4]\n    mov [%1 + %3 - 4], %4d\n    jmp %6\n%endif\n.between_4_7:\n    mov           %4d, [%2]\n    mov           %5d, [%2 + %3 - 4]\n    mov          [%1], %4d\n    mov [%1 + %3 - 4], %5d\n    jmp %6\n.between_2_3:\n    mov           %4w, [%2]\n    mov           %5w, [%2 + %3 - 2]\n    mov          [%1], %4w\n    mov [%1 + %3 - 2], %5w\n    ; fall through, %6 label is expected to be next instruction\n%endmacro\n\n%macro CRC 1\n%define CTX r0+4\n;-----------------------------------------------------------------------------------------------\n; ff_crc[_le]_clmul(const uint8_t *ctx, uint32_t crc, const uint8_t *buffer, size_t length\n;-----------------------------------------------------------------------------------------------\n; %1 == 1 - LE format\n%if %1 == 1\ncglobal crc_le, 4, 6, 6+4*ARCH_X86_64, 0x10\n%else\ncglobal crc,    4, 6, 7+4*ARCH_X86_64, 0x10\n%endif\n\n%if ARCH_X86_32\n    %define m10 m6\n%endif\n\n%if %1 == 0\n    mova  m10, [reverse_shuffle]\n%endif\n\n    movd   m4, r1d\n%if ARCH_X86_32\n    ; skip 4x unrolled loop due to only 8 XMM reg being available in X86_32\n    jmp   .less_than_64bytes\n%else\n    cmp    r3, 64\n    jb    .less_than_64bytes\n    movu   m1, [r2 +  0]\n    movu   m3, [r2 + 16]\n    movu   m2, [r2 + 32]\n    movu   m0, [r2 + 48]\n    pxor   m1, m4\n%if %1 == 0\n    pshufb m0, m10\n    pshufb m1, m10\n    pshufb m2, m10\n    pshufb m3, m10\n%endif\n    mov    r4, 64\n    cmp    r3, 128\n    jb    .reduce_4x_to_1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:5", "text": "%if ARCH_X86_32\n    ; skip 4x unrolled loop due to only 8 XMM reg being available in X86_32\n    jmp   .less_than_64bytes\n%else\n    cmp    r3, 64\n    jb    .less_than_64bytes\n    movu   m1, [r2 +  0]\n    movu   m3, [r2 + 16]\n    movu   m2, [r2 + 32]\n    movu   m0, [r2 + 48]\n    pxor   m1, m4\n%if %1 == 0\n    pshufb m0, m10\n    pshufb m1, m10\n    pshufb m2, m10\n    pshufb m3, m10\n%endif\n    mov    r4, 64\n    cmp    r3, 128\n    jb    .reduce_4x_to_1\n    movu   m4, [CTX]\n\n.fold_4x_loop:\n        movu        m6, [r2 + r4 +  0]\n        movu        m7, [r2 + r4 + 16]\n        movu        m8, [r2 + r4 + 32]\n        movu        m9, [r2 + r4 + 48]\n%if %1 == 0\n        pshufb      m6, m10\n        pshufb      m7, m10\n        pshufb      m8, m10\n        pshufb      m9, m10\n%endif\n        FOLD_SINGLE m5, m1, m4, m6\n        FOLD_SINGLE m5, m3, m4, m7\n        FOLD_SINGLE m5, m2, m4, m8\n        FOLD_SINGLE m5, m0, m4, m9\n        add         r4, 64\n        lea         r5, [r4 + 64]\n        cmp         r5, r3\n        jbe        .fold_4x_loop\n\n.reduce_4x_to_1:\n    movu        m4, [CTX + 16]\n    FOLD_SINGLE m5, m1, m4, m3\n    FOLD_SINGLE m5, m1, m4, m2\n    FOLD_SINGLE m5, m1, m4, m0\n%endif\n\n.fold_1x_pre:\n    lea  r5, [r4 + 16]\n    cmp  r5, r3\n    ja  .partial_block\n\n.fold_1x_loop:\n        movu        m2, [r2 + r4]\n%if %1 == 0\n        pshufb      m2, m10\n%endif\n        FOLD_SINGLE m5, m1, m4, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:6", "text": "jbe        .fold_4x_loop\n\n.reduce_4x_to_1:\n    movu        m4, [CTX + 16]\n    FOLD_SINGLE m5, m1, m4, m3\n    FOLD_SINGLE m5, m1, m4, m2\n    FOLD_SINGLE m5, m1, m4, m0\n%endif\n\n.fold_1x_pre:\n    lea  r5, [r4 + 16]\n    cmp  r5, r3\n    ja  .partial_block\n\n.fold_1x_loop:\n        movu        m2, [r2 + r4]\n%if %1 == 0\n        pshufb      m2, m10\n%endif\n        FOLD_SINGLE m5, m1, m4, m2\n        add         r4, 16\n        lea         r5, [r4 + 16]\n        cmp         r5, r3\n        jbe        .fold_1x_loop\n\n.partial_block:\n    cmp         r4, r3\n    jae        .reduce_128_to_64\n    movu        m2, [r2 + r3 - 16]\n    and         r3, 0xf\n    lea         r4, [partial_bytes_shuf_tab]\n    movu        m0, [r3 + r4]\n%if %1 == 0\n    pshufb      m1, m10\n%endif\n    mova        m3, m1\n    pcmpeqd     m5, m5 ; m5 = _mm_set1_epi8(0xff)\n    pxor        m5, m0\n    pshufb      m3, m5\n    pblendvb    m2, m3, m0\n    pshufb      m1, m0\n%if %1 == 0\n    pshufb      m1, m10\n    pshufb      m2, m10\n%endif\n    FOLD_SINGLE m5, m1, m4, m2\n\n.reduce_128_to_64:\n    movu           m4, [CTX + 32]\n    FOLD_128_TO_64 %1, m1, m4, m5\n.reduce_64_to_32:\n    movu           m4, [CTX + 48]\n    FOLD_64_TO_32  %1, m1, m4, m5\n    RET\n\n.less_than_64bytes:\n    cmp    r3, 16\n    jb    .less_than_16bytes\n    movu   m1, [r2]\n    pxor   m1, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:7", "text": "pshufb      m1, m0\n%if %1 == 0\n    pshufb      m1, m10\n    pshufb      m2, m10\n%endif\n    FOLD_SINGLE m5, m1, m4, m2\n\n.reduce_128_to_64:\n    movu           m4, [CTX + 32]\n    FOLD_128_TO_64 %1, m1, m4, m5\n.reduce_64_to_32:\n    movu           m4, [CTX + 48]\n    FOLD_64_TO_32  %1, m1, m4, m5\n    RET\n\n.less_than_64bytes:\n    cmp    r3, 16\n    jb    .less_than_16bytes\n    movu   m1, [r2]\n    pxor   m1, m4\n%if %1 == 0\n    pshufb m1, m10\n%endif\n    mov    r4, 16\n    movu   m4, [CTX + 16]\n    jmp   .fold_1x_pre\n\n.less_than_16bytes:\n    pxor           m1, m1\n    movu        [rsp], m1\n    MEMCPY_0_15   rsp, r2, r3, r1, r4, .memcpy_done\n\n.memcpy_done:\n    movu           m1, [rsp]\n    pxor           m1, m4\n    cmp            r3, 5\n    jb            .less_than_5bytes\n    XMM_SHIFT_LEFT m1, (16 - r3), m2, r4\n%if %1 == 0\n    pshufb         m1, m10\n%endif\n    jmp           .reduce_128_to_64\n\n.less_than_5bytes:\n%if %1 == 0\n    XMM_SHIFT_LEFT m1, (4 - r3), m2, r4\n    movq          m10, [reverse_shuffle + 8] ; 0x0001020304050607\n    pshufb         m1, m10\n%else\n    XMM_SHIFT_LEFT m1, (8 - r3), m2, r4\n%endif\n    jmp .reduce_64_to_32\n\n%endmacro\n\nINIT_XMM clmul\nCRC 0\nCRC 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 241, "line_end": 298}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:8", "text": "%endif\n    jmp           .reduce_128_to_64\n\n.less_than_5bytes:\n%if %1 == 0\n    XMM_SHIFT_LEFT m1, (4 - r3), m2, r4\n    movq          m10, [reverse_shuffle + 8] ; 0x0001020304050607\n    pshufb         m1, m10\n%else\n    XMM_SHIFT_LEFT m1, (8 - r3), m2, r4\n%endif\n    jmp .reduce_64_to_32\n\n%endmacro\n\nINIT_XMM clmul\nCRC 0\nCRC 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/crc.asm", "line_start": 281, "line_end": 298}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:4", "text": "mov           %4d, [%2 + %3 - 4]\n    mov [%1 + %3 - 4], %4d\n    jmp %6\n%endif\n.between_4_7:\n    mov           %4d, [%2]\n    mov           %5d, [%2 + %3 - 4]\n    mov          [%1], %4d\n    mov [%1 + %3 - 4], %5d\n    jmp %6\n.between_2_3:\n    mov           %4w, [%2]\n    mov           %5w, [%2 + %3 - 2]\n    mov          [%1], %4w\n    mov [%1 + %3 - 2], %5w\n    ; fall through, %6 label is expected to be next instruction\n%endmacro\n\n%macro CRC 1\n;-----------------------------------------------------------------------------------------------\n; ff_crc[_le]_clmul(const uint8_t *ctx, uint32_t crc, const uint8_t *buffer, size_t length\n;-----------------------------------------------------------------------------------------------\n; %1 == 1 - LE format\n%if %1 == 1\ncglobal crc_le, 4, 6, 6+4*ARCH_X86_64, 0x10\n%else\ncglobal crc,    4, 6, 7+4*ARCH_X86_64, 0x10\n%endif\n\n%if ARCH_X86_32\n    %define m10 m6\n%endif\n\n%if %1 == 0\n    mova  m10, [reverse_shuffle]\n%endif\n\n    movd   m4, r1d\n%if ARCH_X86_32\n    ; skip 4x unrolled loop due to only 8 XMM reg being available in X86_32\n    jmp   .less_than_64bytes\n%else\n    cmp    r3, 64\n    jb    .less_than_64bytes\n    movu   m1, [r2 +  0]\n    movu   m3, [r2 + 16]\n    movu   m2, [r2 + 32]\n    movu   m0, [r2 + 48]\n    pxor   m1, m4\n%if %1 == 0\n    pshufb m0, m10\n    pshufb m1, m10\n    pshufb m2, m10\n    pshufb m3, m10\n%endif\n    mov    r4, 64\n    cmp    r3, 128\n    jb    .reduce_4x_to_1\n    movu   m4, [r0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "1b6571c765def1186ce1d78cc38628eacbdd1492", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1b6571c765def1186ce1d78cc38628eacbdd1492/libavutil/x86/crc.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:5", "text": "; skip 4x unrolled loop due to only 8 XMM reg being available in X86_32\n    jmp   .less_than_64bytes\n%else\n    cmp    r3, 64\n    jb    .less_than_64bytes\n    movu   m1, [r2 +  0]\n    movu   m3, [r2 + 16]\n    movu   m2, [r2 + 32]\n    movu   m0, [r2 + 48]\n    pxor   m1, m4\n%if %1 == 0\n    pshufb m0, m10\n    pshufb m1, m10\n    pshufb m2, m10\n    pshufb m3, m10\n%endif\n    mov    r4, 64\n    cmp    r3, 128\n    jb    .reduce_4x_to_1\n    movu   m4, [r0]\n\n.fold_4x_loop:\n        movu        m6, [r2 + r4 +  0]\n        movu        m7, [r2 + r4 + 16]\n        movu        m8, [r2 + r4 + 32]\n        movu        m9, [r2 + r4 + 48]\n%if %1 == 0\n        pshufb      m6, m10\n        pshufb      m7, m10\n        pshufb      m8, m10\n        pshufb      m9, m10\n%endif\n        FOLD_SINGLE m5, m1, m4, m6\n        FOLD_SINGLE m5, m3, m4, m7\n        FOLD_SINGLE m5, m2, m4, m8\n        FOLD_SINGLE m5, m0, m4, m9\n        add         r4, 64\n        lea         r5, [r4 + 64]\n        cmp         r5, r3\n        jbe        .fold_4x_loop\n\n.reduce_4x_to_1:\n    movu        m4, [r0 + 16]\n    FOLD_SINGLE m5, m1, m4, m3\n    FOLD_SINGLE m5, m1, m4, m2\n    FOLD_SINGLE m5, m1, m4, m0\n%endif\n\n.fold_1x_pre:\n    lea  r5, [r4 + 16]\n    cmp  r5, r3\n    ja  .partial_block\n\n.fold_1x_loop:\n        movu        m2, [r2 + r4]\n%if %1 == 0\n        pshufb      m2, m10\n%endif\n        FOLD_SINGLE m5, m1, m4, m2\n        add         r4, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "1b6571c765def1186ce1d78cc38628eacbdd1492", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1b6571c765def1186ce1d78cc38628eacbdd1492/libavutil/x86/crc.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:6", "text": ".reduce_4x_to_1:\n    movu        m4, [r0 + 16]\n    FOLD_SINGLE m5, m1, m4, m3\n    FOLD_SINGLE m5, m1, m4, m2\n    FOLD_SINGLE m5, m1, m4, m0\n%endif\n\n.fold_1x_pre:\n    lea  r5, [r4 + 16]\n    cmp  r5, r3\n    ja  .partial_block\n\n.fold_1x_loop:\n        movu        m2, [r2 + r4]\n%if %1 == 0\n        pshufb      m2, m10\n%endif\n        FOLD_SINGLE m5, m1, m4, m2\n        add         r4, 16\n        lea         r5, [r4 + 16]\n        cmp         r5, r3\n        jbe        .fold_1x_loop\n\n.partial_block:\n    cmp         r4, r3\n    jae        .reduce_128_to_64\n    movu        m2, [r2 + r3 - 16]\n    and         r3, 0xf\n    lea         r4, [partial_bytes_shuf_tab]\n    movu        m0, [r3 + r4]\n%if %1 == 0\n    pshufb      m1, m10\n%endif\n    mova        m3, m1\n    pcmpeqd     m5, m5 ; m5 = _mm_set1_epi8(0xff)\n    pxor        m5, m0\n    pshufb      m3, m5\n    pblendvb    m2, m3, m0\n    pshufb      m1, m0\n%if %1 == 0\n    pshufb      m1, m10\n    pshufb      m2, m10\n%endif\n    FOLD_SINGLE m5, m1, m4, m2\n\n.reduce_128_to_64:\n    movu           m4, [r0 + 32]\n    FOLD_128_TO_64 %1, m1, m4, m5\n.reduce_64_to_32:\n    movu           m4, [r0 + 48]\n    FOLD_64_TO_32  %1, m1, m4, m5\n    RET\n\n.less_than_64bytes:\n    cmp    r3, 16\n    jb    .less_than_16bytes\n    movu   m1, [r2]\n    pxor   m1, m4\n%if %1 == 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "1b6571c765def1186ce1d78cc38628eacbdd1492", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1b6571c765def1186ce1d78cc38628eacbdd1492/libavutil/x86/crc.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:7", "text": "%if %1 == 0\n    pshufb      m1, m10\n    pshufb      m2, m10\n%endif\n    FOLD_SINGLE m5, m1, m4, m2\n\n.reduce_128_to_64:\n    movu           m4, [r0 + 32]\n    FOLD_128_TO_64 %1, m1, m4, m5\n.reduce_64_to_32:\n    movu           m4, [r0 + 48]\n    FOLD_64_TO_32  %1, m1, m4, m5\n    RET\n\n.less_than_64bytes:\n    cmp    r3, 16\n    jb    .less_than_16bytes\n    movu   m1, [r2]\n    pxor   m1, m4\n%if %1 == 0\n    pshufb m1, m10\n%endif\n    mov    r4, 16\n    movu   m4, [r0 + 16]\n    jmp   .fold_1x_pre\n\n.less_than_16bytes:\n    pxor           m1, m1\n    movu        [rsp], m1\n    MEMCPY_0_15   rsp, r2, r3, r1, r4, .memcpy_done\n\n.memcpy_done:\n    movu           m1, [rsp]\n    pxor           m1, m4\n    cmp            r3, 5\n    jb            .less_than_5bytes\n    XMM_SHIFT_LEFT m1, (16 - r3), m2, r4\n%if %1 == 0\n    pshufb         m1, m10\n%endif\n    jmp           .reduce_128_to_64\n\n.less_than_5bytes:\n%if %1 == 0\n    XMM_SHIFT_LEFT m1, (4 - r3), m2, r4\n    movq          m10, [reverse_shuffle + 8] ; 0x0001020304050607\n    pshufb         m1, m10\n%else\n    XMM_SHIFT_LEFT m1, (8 - r3), m2, r4\n%endif\n    jmp .reduce_64_to_32\n\n%endmacro\n\nINIT_XMM clmul\nCRC 0\nCRC 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "1b6571c765def1186ce1d78cc38628eacbdd1492", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1b6571c765def1186ce1d78cc38628eacbdd1492/libavutil/x86/crc.asm", "line_start": 241, "line_end": 297}
{"id": "FFmpeg/FFmpeg:libavutil/x86/crc.asm:8", "text": "jmp           .reduce_128_to_64\n\n.less_than_5bytes:\n%if %1 == 0\n    XMM_SHIFT_LEFT m1, (4 - r3), m2, r4\n    movq          m10, [reverse_shuffle + 8] ; 0x0001020304050607\n    pshufb         m1, m10\n%else\n    XMM_SHIFT_LEFT m1, (8 - r3), m2, r4\n%endif\n    jmp .reduce_64_to_32\n\n%endmacro\n\nINIT_XMM clmul\nCRC 0\nCRC 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/crc.asm", "license": "LGPL-2.1", "commit": "1b6571c765def1186ce1d78cc38628eacbdd1492", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1b6571c765def1186ce1d78cc38628eacbdd1492/libavutil/x86/crc.asm", "line_start": 281, "line_end": 297}
{"id": "FFmpeg/FFmpeg:libavutil/x86/fixed_dsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized Float DSP functions\n;*\n;* Copyright 2016 James Almer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void ff_butterflies_fixed(float *src0, float *src1, int len);\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal butterflies_fixed, 3,3,3, src0, src1, len\n    shl       lend, 2\n    add      src0q, lenq\n    add      src1q, lenq\n    neg       lenq\n\nalign 16\n.loop:\n    mova        m0, [src0q + lenq]\n    mova        m1, [src1q + lenq]\n    mova        m2, m0\n    paddd       m0, m1\n    psubd       m2, m1\n    mova        [src0q + lenq], m0\n    mova        [src1q + lenq], m2\n    add       lenq, mmsize\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/fixed_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/fixed_dsp.asm", "line_start": 1, "line_end": 48}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:1", "text": ";*****************************************************************************\n;* x86-optimized Float DSP functions\n;*\n;* Copyright 2006 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\npd_reverse: dd 7, 6, 5, 4, 3, 2, 1, 0\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; void vector_fmul(float *dst, const float *src0, const float *src1, int len)\n;-----------------------------------------------------------------------------\n%macro VECTOR_FMUL 0\ncglobal vector_fmul, 4,4,2, dst, src0, src1, len\n    lea       lenq, [lend*4 - 64]\nALIGN 16\n.loop:\n%assign a 0\n%rep 32/mmsize\n    mova      m0,   [src0q + lenq + (a+0)*mmsize]\n    mova      m1,   [src0q + lenq + (a+1)*mmsize]\n    mulps     m0, m0, [src1q + lenq + (a+0)*mmsize]\n    mulps     m1, m1, [src1q + lenq + (a+1)*mmsize]\n    mova      [dstq + lenq + (a+0)*mmsize], m0\n    mova      [dstq + lenq + (a+1)*mmsize], m1\n%assign a a+2\n%endrep\n\n    sub       lenq, 64\n    jge       .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMUL\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_FMUL\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:2", "text": "mova      m1,   [src0q + lenq + (a+1)*mmsize]\n    mulps     m0, m0, [src1q + lenq + (a+0)*mmsize]\n    mulps     m1, m1, [src1q + lenq + (a+1)*mmsize]\n    mova      [dstq + lenq + (a+0)*mmsize], m0\n    mova      [dstq + lenq + (a+1)*mmsize], m1\n%assign a a+2\n%endrep\n\n    sub       lenq, 64\n    jge       .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMUL\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_FMUL\n%endif\n\n;-----------------------------------------------------------------------------\n; void vector_dmul(double *dst, const double *src0, const double *src1, int len)\n;-----------------------------------------------------------------------------\n%macro VECTOR_DMUL 0\ncglobal vector_dmul, 4,4,4, dst, src0, src1, len\n    lea       lend, [lenq*8 - mmsize*4]\nALIGN 16\n.loop:\n    movaps    m0,     [src0q + lenq + 0*mmsize]\n    movaps    m1,     [src0q + lenq + 1*mmsize]\n    movaps    m2,     [src0q + lenq + 2*mmsize]\n    movaps    m3,     [src0q + lenq + 3*mmsize]\n    mulpd     m0, m0, [src1q + lenq + 0*mmsize]\n    mulpd     m1, m1, [src1q + lenq + 1*mmsize]\n    mulpd     m2, m2, [src1q + lenq + 2*mmsize]\n    mulpd     m3, m3, [src1q + lenq + 3*mmsize]\n    movaps    [dstq + lenq + 0*mmsize], m0\n    movaps    [dstq + lenq + 1*mmsize], m1\n    movaps    [dstq + lenq + 2*mmsize], m2\n    movaps    [dstq + lenq + 3*mmsize], m3\n\n    sub       lenq, mmsize*4\n    jge       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_DMUL\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_DMUL\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_vector_fmac_scalar(float *dst, const float *src, float mul, int len)\n;------------------------------------------------------------------------------\n\n%macro VECTOR_FMAC_SCALAR 0\n%if UNIX64\ncglobal vector_fmac_scalar, 3,3,5, dst, src, len", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:3", "text": "sub       lenq, mmsize*4\n    jge       .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_DMUL\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_DMUL\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_vector_fmac_scalar(float *dst, const float *src, float mul, int len)\n;------------------------------------------------------------------------------\n\n%macro VECTOR_FMAC_SCALAR 0\n%if UNIX64\ncglobal vector_fmac_scalar, 3,3,5, dst, src, len\n%else\ncglobal vector_fmac_scalar, 4,4,5, dst, src, mul, len\n%endif\n%if ARCH_X86_32\n    VBROADCASTSS m0, mulm\n%else\n%if WIN64\n    SWAP 0, 2\n%endif\n    shufps      xm0, xm0, 0\n%if cpuflag(avx)\n    vinsertf128  m0, m0, xm0, 1\n%endif\n%endif\n    lea    lenq, [lend*4-64]\n.loop:\n%if cpuflag(fma3)\n    mova     m1,     [dstq+lenq]\n    mova     m2,     [dstq+lenq+1*mmsize]\n    fmaddps  m1, m0, [srcq+lenq], m1\n    fmaddps  m2, m0, [srcq+lenq+1*mmsize], m2\n%else ; cpuflag\n    mulps    m1, m0, [srcq+lenq]\n    mulps    m2, m0, [srcq+lenq+1*mmsize]\n%if mmsize < 32\n    mulps    m3, m0, [srcq+lenq+2*mmsize]\n    mulps    m4, m0, [srcq+lenq+3*mmsize]\n%endif ; mmsize\n    addps    m1, m1, [dstq+lenq]\n    addps    m2, m2, [dstq+lenq+1*mmsize]\n%if mmsize < 32\n    addps    m3, m3, [dstq+lenq+2*mmsize]\n    addps    m4, m4, [dstq+lenq+3*mmsize]\n%endif ; mmsize\n%endif ; cpuflag\n    mova  [dstq+lenq], m1\n    mova  [dstq+lenq+1*mmsize], m2\n%if mmsize < 32\n    mova  [dstq+lenq+2*mmsize], m3\n    mova  [dstq+lenq+3*mmsize], m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:4", "text": "fmaddps  m2, m0, [srcq+lenq+1*mmsize], m2\n%else ; cpuflag\n    mulps    m1, m0, [srcq+lenq]\n    mulps    m2, m0, [srcq+lenq+1*mmsize]\n%if mmsize < 32\n    mulps    m3, m0, [srcq+lenq+2*mmsize]\n    mulps    m4, m0, [srcq+lenq+3*mmsize]\n%endif ; mmsize\n    addps    m1, m1, [dstq+lenq]\n    addps    m2, m2, [dstq+lenq+1*mmsize]\n%if mmsize < 32\n    addps    m3, m3, [dstq+lenq+2*mmsize]\n    addps    m4, m4, [dstq+lenq+3*mmsize]\n%endif ; mmsize\n%endif ; cpuflag\n    mova  [dstq+lenq], m1\n    mova  [dstq+lenq+1*mmsize], m2\n%if mmsize < 32\n    mova  [dstq+lenq+2*mmsize], m3\n    mova  [dstq+lenq+3*mmsize], m4\n%endif ; mmsize\n    sub    lenq, 64\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMAC_SCALAR\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_FMAC_SCALAR\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nVECTOR_FMAC_SCALAR\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_vector_fmul_scalar(float *dst, const float *src, float mul, int len)\n;------------------------------------------------------------------------------\n\n%macro VECTOR_FMUL_SCALAR 0\n%if UNIX64\ncglobal vector_fmul_scalar, 3,3,2, dst, src, len\n%else\ncglobal vector_fmul_scalar, 4,4,3, dst, src, mul, len\n%endif\n%if ARCH_X86_32\n    movss    m0, mulm\n%elif WIN64\n    SWAP 0, 2\n%endif\n    shufps   m0, m0, 0\n    lea    lenq, [lend*4-mmsize]\n.loop:\n    mova     m1, [srcq+lenq]\n    mulps    m1, m0\n    mova  [dstq+lenq], m1\n    sub    lenq, mmsize\n    jge .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:5", "text": "%macro VECTOR_FMUL_SCALAR 0\n%if UNIX64\ncglobal vector_fmul_scalar, 3,3,2, dst, src, len\n%else\ncglobal vector_fmul_scalar, 4,4,3, dst, src, mul, len\n%endif\n%if ARCH_X86_32\n    movss    m0, mulm\n%elif WIN64\n    SWAP 0, 2\n%endif\n    shufps   m0, m0, 0\n    lea    lenq, [lend*4-mmsize]\n.loop:\n    mova     m1, [srcq+lenq]\n    mulps    m1, m0\n    mova  [dstq+lenq], m1\n    sub    lenq, mmsize\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMUL_SCALAR\n\n;------------------------------------------------------------------------------\n; void ff_vector_dmac_scalar(double *dst, const double *src, double mul,\n;                            int len)\n;------------------------------------------------------------------------------\n\n%macro VECTOR_DMAC_SCALAR 0\n%if ARCH_X86_32\ncglobal vector_dmac_scalar, 2,4,5, dst, src, mul, len, lenaddr\n    mov          lenq, lenaddrm\n    VBROADCASTSD m0, mulm\n%else\n%if UNIX64\ncglobal vector_dmac_scalar, 3,3,5, dst, src, len\n%else\ncglobal vector_dmac_scalar, 4,4,5, dst, src, mul, len\n    SWAP 0, 2\n%endif\n    movlhps     xm0, xm0\n%if cpuflag(avx)\n    vinsertf128  m0, m0, xm0, 1\n%endif\n%endif\n    lea    lenq, [lend*8-mmsize*4]\n.loop:\n%if cpuflag(fma3)\n    movaps   m1,     [dstq+lenq]\n    movaps   m2,     [dstq+lenq+1*mmsize]\n    movaps   m3,     [dstq+lenq+2*mmsize]\n    movaps   m4,     [dstq+lenq+3*mmsize]\n    fmaddpd  m1, m0, [srcq+lenq], m1\n    fmaddpd  m2, m0, [srcq+lenq+1*mmsize], m2\n    fmaddpd  m3, m0, [srcq+lenq+2*mmsize], m3\n    fmaddpd  m4, m0, [srcq+lenq+3*mmsize], m4\n%else ; cpuflag", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:6", "text": "cglobal vector_dmac_scalar, 4,4,5, dst, src, mul, len\n    SWAP 0, 2\n%endif\n    movlhps     xm0, xm0\n%if cpuflag(avx)\n    vinsertf128  m0, m0, xm0, 1\n%endif\n%endif\n    lea    lenq, [lend*8-mmsize*4]\n.loop:\n%if cpuflag(fma3)\n    movaps   m1,     [dstq+lenq]\n    movaps   m2,     [dstq+lenq+1*mmsize]\n    movaps   m3,     [dstq+lenq+2*mmsize]\n    movaps   m4,     [dstq+lenq+3*mmsize]\n    fmaddpd  m1, m0, [srcq+lenq], m1\n    fmaddpd  m2, m0, [srcq+lenq+1*mmsize], m2\n    fmaddpd  m3, m0, [srcq+lenq+2*mmsize], m3\n    fmaddpd  m4, m0, [srcq+lenq+3*mmsize], m4\n%else ; cpuflag\n    mulpd    m1, m0, [srcq+lenq]\n    mulpd    m2, m0, [srcq+lenq+1*mmsize]\n    mulpd    m3, m0, [srcq+lenq+2*mmsize]\n    mulpd    m4, m0, [srcq+lenq+3*mmsize]\n    addpd    m1, m1, [dstq+lenq]\n    addpd    m2, m2, [dstq+lenq+1*mmsize]\n    addpd    m3, m3, [dstq+lenq+2*mmsize]\n    addpd    m4, m4, [dstq+lenq+3*mmsize]\n%endif ; cpuflag\n    movaps [dstq+lenq], m1\n    movaps [dstq+lenq+1*mmsize], m2\n    movaps [dstq+lenq+2*mmsize], m3\n    movaps [dstq+lenq+3*mmsize], m4\n    sub    lenq, mmsize*4\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_DMAC_SCALAR\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_DMAC_SCALAR\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nVECTOR_DMAC_SCALAR\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_vector_dmul_scalar(double *dst, const double *src, double mul,\n;                            int len)\n;------------------------------------------------------------------------------\n\n%macro VECTOR_DMUL_SCALAR 0\n%if ARCH_X86_32\ncglobal vector_dmul_scalar, 3,4,3, dst, src, mul, len, lenaddr\n    mov          lenq, lenaddrm\n%elif UNIX64\ncglobal vector_dmul_scalar, 3,3,3, dst, src, len", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:7", "text": "%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_DMAC_SCALAR\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nVECTOR_DMAC_SCALAR\n%endif\n\n;------------------------------------------------------------------------------\n; void ff_vector_dmul_scalar(double *dst, const double *src, double mul,\n;                            int len)\n;------------------------------------------------------------------------------\n\n%macro VECTOR_DMUL_SCALAR 0\n%if ARCH_X86_32\ncglobal vector_dmul_scalar, 3,4,3, dst, src, mul, len, lenaddr\n    mov          lenq, lenaddrm\n%elif UNIX64\ncglobal vector_dmul_scalar, 3,3,3, dst, src, len\n%else\ncglobal vector_dmul_scalar, 4,4,3, dst, src, mul, len\n%endif\n%if ARCH_X86_32\n    VBROADCASTSD   m0, mulm\n%else\n%if WIN64\n    SWAP 0, 2\n%endif\n    movlhps       xm0, xm0\n%if cpuflag(avx)\n    vinsertf128   ym0, ym0, xm0, 1\n%endif\n%endif\n    lea          lenq, [lend*8-2*mmsize]\n.loop:\n    mulpd          m1, m0, [srcq+lenq       ]\n    mulpd          m2, m0, [srcq+lenq+mmsize]\n    movaps [dstq+lenq       ], m1\n    movaps [dstq+lenq+mmsize], m2\n    sub          lenq, 2*mmsize\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_DMUL_SCALAR\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_DMUL_SCALAR\n%endif\n\n;-----------------------------------------------------------------------------\n; vector_fmul_window(float *dst, const float *src0,\n;                    const float *src1, const float *win, int len);\n;-----------------------------------------------------------------------------\nINIT_XMM sse\ncglobal vector_fmul_window, 5, 6, 6, dst, src0, src1, win, len, len1\n    shl     lend, 2\n    lea    len1q, [lenq - mmsize]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:8", "text": "sub          lenq, 2*mmsize\n    jge .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nVECTOR_DMUL_SCALAR\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_DMUL_SCALAR\n%endif\n\n;-----------------------------------------------------------------------------\n; vector_fmul_window(float *dst, const float *src0,\n;                    const float *src1, const float *win, int len);\n;-----------------------------------------------------------------------------\nINIT_XMM sse\ncglobal vector_fmul_window, 5, 6, 6, dst, src0, src1, win, len, len1\n    shl     lend, 2\n    lea    len1q, [lenq - mmsize]\n    add    src0q, lenq\n    add     dstq, lenq\n    add     winq, lenq\n    neg     lenq\n.loop:\n    mova      m0, [winq  + lenq]\n    mova      m4, [src0q + lenq]\n    mova      m1, [winq  + len1q]\n    mova      m5, [src1q + len1q]\n    shufps    m1, m1, 0x1b\n    shufps    m5, m5, 0x1b\n    mova      m2, m0\n    mova      m3, m1\n    mulps     m2, m4\n    mulps     m3, m5\n    mulps     m1, m4\n    mulps     m0, m5\n    addps     m2, m3\n    subps     m1, m0\n    shufps    m2, m2, 0x1b\n    mova      [dstq + lenq], m1\n    mova      [dstq + len1q], m2\n    sub       len1q, mmsize\n    add       lenq,  mmsize\n    jl .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; vector_fmul_add(float *dst, const float *src0, const float *src1,\n;                 const float *src2, int len)\n;-----------------------------------------------------------------------------\n%macro VECTOR_FMUL_ADD 0\ncglobal vector_fmul_add, 5,5,4, dst, src0, src1, src2, len\n    lea       lenq, [lend*4 - 2*mmsize]\nALIGN 16\n.loop:\n    mova    m0,   [src0q + lenq]\n    mova    m1,   [src0q + lenq + mmsize]\n%if cpuflag(fma3)\n    mova    m2,     [src2q + lenq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:9", "text": "mova      [dstq + lenq], m1\n    mova      [dstq + len1q], m2\n    sub       len1q, mmsize\n    add       lenq,  mmsize\n    jl .loop\n    RET\n\n;-----------------------------------------------------------------------------\n; vector_fmul_add(float *dst, const float *src0, const float *src1,\n;                 const float *src2, int len)\n;-----------------------------------------------------------------------------\n%macro VECTOR_FMUL_ADD 0\ncglobal vector_fmul_add, 5,5,4, dst, src0, src1, src2, len\n    lea       lenq, [lend*4 - 2*mmsize]\nALIGN 16\n.loop:\n    mova    m0,   [src0q + lenq]\n    mova    m1,   [src0q + lenq + mmsize]\n%if cpuflag(fma3)\n    mova    m2,     [src2q + lenq]\n    mova    m3,     [src2q + lenq + mmsize]\n    fmaddps m0, m0, [src1q + lenq], m2\n    fmaddps m1, m1, [src1q + lenq + mmsize], m3\n%else\n    mulps   m0, m0, [src1q + lenq]\n    mulps   m1, m1, [src1q + lenq + mmsize]\n    addps   m0, m0, [src2q + lenq]\n    addps   m1, m1, [src2q + lenq + mmsize]\n%endif\n    mova    [dstq + lenq], m0\n    mova    [dstq + lenq + mmsize], m1\n\n    sub     lenq,   2*mmsize\n    jge     .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMUL_ADD\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_FMUL_ADD\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nVECTOR_FMUL_ADD\n%endif\n\n;-----------------------------------------------------------------------------\n; void vector_fmul_reverse(float *dst, const float *src0, const float *src1,\n;                          int len)\n;-----------------------------------------------------------------------------\n%macro VECTOR_FMUL_REVERSE 0\ncglobal vector_fmul_reverse, 4,4,2, dst, src0, src1, len\n%if cpuflag(avx2)\n    movaps  m2, [pd_reverse]\n%endif\n    lea       lenq, [lend*4 - 2*mmsize]\nALIGN 16\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:10", "text": "INIT_YMM avx\nVECTOR_FMUL_ADD\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nVECTOR_FMUL_ADD\n%endif\n\n;-----------------------------------------------------------------------------\n; void vector_fmul_reverse(float *dst, const float *src0, const float *src1,\n;                          int len)\n;-----------------------------------------------------------------------------\n%macro VECTOR_FMUL_REVERSE 0\ncglobal vector_fmul_reverse, 4,4,2, dst, src0, src1, len\n%if cpuflag(avx2)\n    movaps  m2, [pd_reverse]\n%endif\n    lea       lenq, [lend*4 - 2*mmsize]\nALIGN 16\n.loop:\n%if cpuflag(avx2)\n    vpermps m0, m2, [src1q]\n    vpermps m1, m2, [src1q+mmsize]\n%elif cpuflag(avx)\n    vmovaps     xmm0, [src1q + 16]\n    vinsertf128 m0, m0, [src1q], 1\n    vshufps     m0, m0, m0, q0123\n    vmovaps     xmm1, [src1q + mmsize + 16]\n    vinsertf128 m1, m1, [src1q + mmsize], 1\n    vshufps     m1, m1, m1, q0123\n%else\n    mova    m0, [src1q]\n    mova    m1, [src1q + mmsize]\n    shufps  m0, m0, q0123\n    shufps  m1, m1, q0123\n%endif\n    mulps   m0, m0, [src0q + lenq + mmsize]\n    mulps   m1, m1, [src0q + lenq]\n    movaps  [dstq + lenq + mmsize], m0\n    movaps  [dstq + lenq], m1\n    add     src1q, 2*mmsize\n    sub     lenq,  2*mmsize\n    jge     .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMUL_REVERSE\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_FMUL_REVERSE\n%endif\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nVECTOR_FMUL_REVERSE\n%endif\n\n; float scalarproduct_float_sse(const float *v1, const float *v2, int len)\nINIT_XMM sse\ncglobal scalarproduct_float, 3,3,2, v1, v2, offset", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:11", "text": "add     src1q, 2*mmsize\n    sub     lenq,  2*mmsize\n    jge     .loop\n    RET\n%endmacro\n\nINIT_XMM sse\nVECTOR_FMUL_REVERSE\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nVECTOR_FMUL_REVERSE\n%endif\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nVECTOR_FMUL_REVERSE\n%endif\n\n; float scalarproduct_float_sse(const float *v1, const float *v2, int len)\nINIT_XMM sse\ncglobal scalarproduct_float, 3,3,2, v1, v2, offset\n    shl   offsetd, 2\n    add       v1q, offsetq\n    add       v2q, offsetq\n    neg   offsetq\n    xorps    xmm0, xmm0\n.loop:\n    movaps   xmm1, [v1q+offsetq]\n    mulps    xmm1, [v2q+offsetq]\n    addps    xmm0, xmm1\n    add   offsetq, 16\n    js .loop\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss     r0m,  xmm0\n    fld dword r0m\n%endif\n    RET\n\nINIT_YMM fma3\ncglobal scalarproduct_float, 3,5,8, v1, v2, size, len, offset\n    xor   offsetq, offsetq\n    xorps      m0, m0, m0\n    shl     sized, 2\n    mov      lenq, sizeq\n    cmp      lenq, 32\n    jl   .l16\n    cmp      lenq, 64\n    jl   .l32\n    xorps    m1, m1, m1\n    cmp      lenq, 128\n    jl   .l64\n    and    lenq, ~127\n    xorps    m2, m2, m2\n    xorps    m3, m3, m3\n.loop128:\n    movups   m4, [v1q+offsetq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:12", "text": "RET\n\nINIT_YMM fma3\ncglobal scalarproduct_float, 3,5,8, v1, v2, size, len, offset\n    xor   offsetq, offsetq\n    xorps      m0, m0, m0\n    shl     sized, 2\n    mov      lenq, sizeq\n    cmp      lenq, 32\n    jl   .l16\n    cmp      lenq, 64\n    jl   .l32\n    xorps    m1, m1, m1\n    cmp      lenq, 128\n    jl   .l64\n    and    lenq, ~127\n    xorps    m2, m2, m2\n    xorps    m3, m3, m3\n.loop128:\n    movups   m4, [v1q+offsetq]\n    movups   m5, [v1q+offsetq + 32]\n    movups   m6, [v1q+offsetq + 64]\n    movups   m7, [v1q+offsetq + 96]\n    fmaddps  m0, m4, [v2q+offsetq     ], m0\n    fmaddps  m1, m5, [v2q+offsetq + 32], m1\n    fmaddps  m2, m6, [v2q+offsetq + 64], m2\n    fmaddps  m3, m7, [v2q+offsetq + 96], m3\n    add   offsetq, 128\n    cmp   offsetq, lenq\n    jl .loop128\n    addps    m0, m0, m2\n    addps    m1, m1, m3\n    mov      lenq, sizeq\n    and      lenq, 127\n    cmp      lenq, 64\n    jge .l64\n    addps    m0, m0, m1\n    cmp      lenq, 32\n    jge .l32\n    vextractf128 xmm2, m0, 1\n    addps    xmm0, xmm2\n    cmp      lenq, 16\n    jge .l16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n.l64:\n    and    lenq, ~63\n    add    lenq, offsetq\n.loop64:\n    movups   m4, [v1q+offsetq]\n    movups   m5, [v1q+offsetq + 32]\n    fmaddps  m0, m4, [v2q+offsetq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:13", "text": "addps    xmm0, xmm2\n    cmp      lenq, 16\n    jge .l16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n.l64:\n    and    lenq, ~63\n    add    lenq, offsetq\n.loop64:\n    movups   m4, [v1q+offsetq]\n    movups   m5, [v1q+offsetq + 32]\n    fmaddps  m0, m4, [v2q+offsetq], m0\n    fmaddps  m1, m5, [v2q+offsetq + 32], m1\n    add   offsetq, 64\n    cmp   offsetq, lenq\n    jl .loop64\n    addps    m0, m0, m1\n    mov      lenq, sizeq\n    and      lenq, 63\n    cmp      lenq, 32\n    jge .l32\n    vextractf128 xmm2, m0, 1\n    addps    xmm0, xmm2\n    cmp      lenq, 16\n    jge .l16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n.l32:\n    and    lenq, ~31\n    add    lenq, offsetq\n.loop32:\n    movups   m4, [v1q+offsetq]\n    fmaddps  m0, m4, [v2q+offsetq], m0\n    add   offsetq, 32\n    cmp   offsetq, lenq\n    jl .loop32\n    vextractf128 xmm2, m0, 1\n    addps    xmm0, xmm2\n    mov      lenq, sizeq\n    and      lenq, 31\n    cmp      lenq, 16\n    jge .l16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:14", "text": "fld dword r0m\n%endif\n    RET\n.l32:\n    and    lenq, ~31\n    add    lenq, offsetq\n.loop32:\n    movups   m4, [v1q+offsetq]\n    fmaddps  m0, m4, [v2q+offsetq], m0\n    add   offsetq, 32\n    cmp   offsetq, lenq\n    jl .loop32\n    vextractf128 xmm2, m0, 1\n    addps    xmm0, xmm2\n    mov      lenq, sizeq\n    and      lenq, 31\n    cmp      lenq, 16\n    jge .l16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n.l16:\n    and    lenq, ~15\n    add    lenq, offsetq\n.loop16:\n    movaps   xmm1, [v1q+offsetq]\n    mulps    xmm1, [v2q+offsetq]\n    addps    xmm0, xmm1\n    add   offsetq, 16\n    cmp   offsetq, lenq\n    jl .loop16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n\n;---------------------------------------------------------------------------------\n; double scalarproduct_double(const double *v1, const double *v2, size_t len)\n;---------------------------------------------------------------------------------\n%macro SCALARPRODUCT_DOUBLE 0\ncglobal scalarproduct_double, 3,3,8, v1, v2, offset\n    shl offsetq, 3\n    add     v1q, offsetq\n    add     v2q, offsetq\n    neg offsetq\n    xorpd    m0, m0\n    xorpd    m1, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:15", "text": "movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n\n;---------------------------------------------------------------------------------\n; double scalarproduct_double(const double *v1, const double *v2, size_t len)\n;---------------------------------------------------------------------------------\n%macro SCALARPRODUCT_DOUBLE 0\ncglobal scalarproduct_double, 3,3,8, v1, v2, offset\n    shl offsetq, 3\n    add     v1q, offsetq\n    add     v2q, offsetq\n    neg offsetq\n    xorpd    m0, m0\n    xorpd    m1, m1\n    movapd   m2, m0\n    movapd   m3, m1\nalign 16\n.loop:\n    movapd   m4, [v1q+offsetq+mmsize*0]\n    movapd   m5, [v1q+offsetq+mmsize*1]\n    movapd   m6, [v1q+offsetq+mmsize*2]\n    movapd   m7, [v1q+offsetq+mmsize*3]\n    mulpd    m4, [v2q+offsetq+mmsize*0]\n    mulpd    m5, [v2q+offsetq+mmsize*1]\n    mulpd    m6, [v2q+offsetq+mmsize*2]\n    mulpd    m7, [v2q+offsetq+mmsize*3]\n    addpd    m0, m4\n    addpd    m1, m5\n    addpd    m2, m6\n    addpd    m3, m7\n    add offsetq, mmsize*4\n    jl .loop\n    addpd    m0, m1\n    addpd    m2, m3\n    addpd    m0, m2\n%if mmsize == 32\n    vextractf128 xm1, m0, 1\n    addpd   xm0, xm1\n%endif\n    movhlps xm1, xm0\n    addsd   xm0, xm1\n%if ARCH_X86_64 == 0\n    movsd   r0m, xm0\n    fld qword r0m\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nSCALARPRODUCT_DOUBLE\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nSCALARPRODUCT_DOUBLE\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:16", "text": "addpd    m0, m2\n%if mmsize == 32\n    vextractf128 xm1, m0, 1\n    addpd   xm0, xm1\n%endif\n    movhlps xm1, xm0\n    addsd   xm0, xm1\n%if ARCH_X86_64 == 0\n    movsd   r0m, xm0\n    fld qword r0m\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse2\nSCALARPRODUCT_DOUBLE\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nSCALARPRODUCT_DOUBLE\n%endif\n\n;-----------------------------------------------------------------------------\n; void ff_butterflies_float(float *src0, float *src1, int len);\n;-----------------------------------------------------------------------------\nINIT_XMM sse\ncglobal butterflies_float, 3,3,3, src0, src1, len\n    shl       lend, 2\n    add      src0q, lenq\n    add      src1q, lenq\n    neg       lenq\n.loop:\n    mova        m0, [src0q + lenq]\n    mova        m1, [src1q + lenq]\n    subps       m2, m0, m1\n    addps       m0, m0, m1\n    mova        [src1q + lenq], m2\n    mova        [src0q + lenq], m0\n    add       lenq, mmsize\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/float_dsp.asm", "line_start": 601, "line_end": 640}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:14", "text": "fld dword r0m\n%endif\n    RET\n.l32:\n    and    lenq, ~31\n    add    lenq, offsetq\n.loop32:\n    movups   m4, [v1q+offsetq]\n    fmaddps  m0, m4, [v2q+offsetq], m0\n    add   offsetq, 32\n    cmp   offsetq, lenq\n    jl .loop32\n    vextractf128 xmm2, m0, 1\n    addps    xmm0, xmm2\n    mov      lenq, sizeq\n    and      lenq, 31\n    cmp      lenq, 16\n    jge .l16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n.l16:\n    and    lenq, ~15\n    add    lenq, offsetq\n.loop16:\n    movaps   xmm1, [v1q+offsetq]\n    mulps    xmm1, [v2q+offsetq]\n    addps    xmm0, xmm1\n    add   offsetq, 16\n    cmp   offsetq, lenq\n    jl .loop16\n    movhlps  xmm1, xmm0\n    addps    xmm0, xmm1\n    movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_butterflies_float(float *src0, float *src1, int len);\n;-----------------------------------------------------------------------------\nINIT_XMM sse\ncglobal butterflies_float, 3,3,3, src0, src1, len\n    shl       lend, 2\n    add      src0q, lenq\n    add      src1q, lenq\n    neg       lenq\n.loop:\n    mova        m0, [src0q + lenq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/float_dsp.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavutil/x86/float_dsp.asm:15", "text": "movss    xmm1, xmm0\n    shufps   xmm0, xmm0, 1\n    addss    xmm0, xmm1\n%if ARCH_X86_64 == 0\n    movss r0m, xm0\n    fld dword r0m\n%endif\n    RET\n\n;-----------------------------------------------------------------------------\n; void ff_butterflies_float(float *src0, float *src1, int len);\n;-----------------------------------------------------------------------------\nINIT_XMM sse\ncglobal butterflies_float, 3,3,3, src0, src1, len\n    shl       lend, 2\n    add      src0q, lenq\n    add      src1q, lenq\n    neg       lenq\n.loop:\n    mova        m0, [src0q + lenq]\n    mova        m1, [src1q + lenq]\n    subps       m2, m0, m1\n    addps       m0, m0, m1\n    mova        [src1q + lenq], m2\n    mova        [src0q + lenq], m0\n    add       lenq, mmsize\n    jl .loop\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/float_dsp.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/float_dsp.asm", "line_start": 561, "line_end": 588}
{"id": "FFmpeg/FFmpeg:libavutil/x86/imgutils.asm:1", "text": ";*****************************************************************************\n;* Copyright 2016 Anton Khirnov\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\nINIT_XMM sse4\ncglobal image_copy_plane_uc_from, 6, 7, 4, dst, dst_linesize, src, src_linesize, bw, height, rowpos\n    add dstq, bwq\n    add srcq, bwq\n    neg bwq\n\n.row_start:\n    mov rowposq, bwq\n\n.loop:\n    movntdqa m0, [srcq + rowposq + 0 * mmsize]\n    movntdqa m1, [srcq + rowposq + 1 * mmsize]\n    movntdqa m2, [srcq + rowposq + 2 * mmsize]\n    movntdqa m3, [srcq + rowposq + 3 * mmsize]\n\n    mova [dstq + rowposq + 0 * mmsize], m0\n    mova [dstq + rowposq + 1 * mmsize], m1\n    mova [dstq + rowposq + 2 * mmsize], m2\n    mova [dstq + rowposq + 3 * mmsize], m3\n\n    add rowposq, 4 * mmsize\n    jnz .loop\n\n    add srcq, src_linesizeq\n    add dstq, dst_linesizeq\n    dec heightd\n    jnz .row_start\n\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/imgutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/imgutils.asm", "line_start": 1, "line_end": 53}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:1", "text": ";******************************************************************************\n;* linear least squares model\n;*\n;* Copyright (c) 2013 Loren Merritt\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%define MAX_VARS 32\n%define MAX_VARS_ALIGN (MAX_VARS+4)\n%define COVAR_STRIDE MAX_VARS_ALIGN*8\n%define COVAR(x,y) [covarq + (x)*8 + (y)*COVAR_STRIDE]\n\nstruc LLSModel\n    .covariance:  resq MAX_VARS_ALIGN*MAX_VARS_ALIGN\n    .coeff:       resq MAX_VARS*MAX_VARS\n    .variance:    resq MAX_VARS\n    .indep_count: resd 1\nendstruc\n\n%macro ADDPD_MEM 2\n%if cpuflag(avx)\n    vaddpd %2, %2, %1\n%else\n    addpd  %2, %1\n%endif\n    mova   %1, %2\n%endmacro\n\nINIT_XMM sse2\n%define movdqa movaps\ncglobal update_lls, 2,5,8, ctx, var, i, j, covar2\n    %define covarq ctxq\n    mov     id, [ctxq + LLSModel.indep_count]\n    lea   varq, [varq + iq*8]\n    neg     iq\n    mov covar2q, covarq\n.loopi:\n    ; Compute all 3 pairwise products of a 2x2 block that lies on the diagonal\n    mova    m1, [varq + iq*8]\n    mova    m3, [varq + iq*8 + 16]\n    pshufd  m4, m1, q1010", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:2", "text": "vaddpd %2, %2, %1\n%else\n    addpd  %2, %1\n%endif\n    mova   %1, %2\n%endmacro\n\nINIT_XMM sse2\n%define movdqa movaps\ncglobal update_lls, 2,5,8, ctx, var, i, j, covar2\n    %define covarq ctxq\n    mov     id, [ctxq + LLSModel.indep_count]\n    lea   varq, [varq + iq*8]\n    neg     iq\n    mov covar2q, covarq\n.loopi:\n    ; Compute all 3 pairwise products of a 2x2 block that lies on the diagonal\n    mova    m1, [varq + iq*8]\n    mova    m3, [varq + iq*8 + 16]\n    pshufd  m4, m1, q1010\n    pshufd  m5, m1, q3232\n    pshufd  m6, m3, q1010\n    pshufd  m7, m3, q3232\n    mulpd   m0, m1, m4\n    mulpd   m1, m1, m5\n    lea covarq, [covar2q + 16]\n    ADDPD_MEM COVAR(-2,0), m0\n    ADDPD_MEM COVAR(-2,1), m1\n    lea     jq, [iq + 2]\n    cmp     jd, -2\n    jg .skip4x4\n.loop4x4:\n    ; Compute all 16 pairwise products of a 4x4 block\n    mulpd   m0, m4, m3\n    mulpd   m1, m5, m3\n    mulpd   m2, m6, m3\n    mulpd   m3, m3, m7\n    ADDPD_MEM COVAR(0,0), m0\n    ADDPD_MEM COVAR(0,1), m1\n    ADDPD_MEM COVAR(0,2), m2\n    ADDPD_MEM COVAR(0,3), m3\n    mova    m3, [varq + jq*8 + 16]\n    mulpd   m0, m4, m3\n    mulpd   m1, m5, m3\n    mulpd   m2, m6, m3\n    mulpd   m3, m3, m7\n    ADDPD_MEM COVAR(2,0), m0\n    ADDPD_MEM COVAR(2,1), m1\n    ADDPD_MEM COVAR(2,2), m2\n    ADDPD_MEM COVAR(2,3), m3\n    mova    m3, [varq + jq*8 + 32]\n    add covarq, 32\n    add     jq, 4\n    cmp     jd, -2\n    jle .loop4x4\n.skip4x4:\n    test    jd, jd\n    jg .skip2x4\n    mulpd   m4, m3\n    mulpd   m5, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:3", "text": "ADDPD_MEM COVAR(0,3), m3\n    mova    m3, [varq + jq*8 + 16]\n    mulpd   m0, m4, m3\n    mulpd   m1, m5, m3\n    mulpd   m2, m6, m3\n    mulpd   m3, m3, m7\n    ADDPD_MEM COVAR(2,0), m0\n    ADDPD_MEM COVAR(2,1), m1\n    ADDPD_MEM COVAR(2,2), m2\n    ADDPD_MEM COVAR(2,3), m3\n    mova    m3, [varq + jq*8 + 32]\n    add covarq, 32\n    add     jq, 4\n    cmp     jd, -2\n    jle .loop4x4\n.skip4x4:\n    test    jd, jd\n    jg .skip2x4\n    mulpd   m4, m3\n    mulpd   m5, m3\n    mulpd   m6, m3\n    mulpd   m7, m3\n    ADDPD_MEM COVAR(0,0), m4\n    ADDPD_MEM COVAR(0,1), m5\n    ADDPD_MEM COVAR(0,2), m6\n    ADDPD_MEM COVAR(0,3), m7\n.skip2x4:\n    add     iq, 4\n    add covar2q, 4*COVAR_STRIDE+32\n    cmp     id, -2\n    jle .loopi\n    test    id, id\n    jg .ret\n    mov     jq, iq\n    %define covarq covar2q\n.loop2x1:\n    movsd   m0, [varq + iq*8]\n    movlhps m0, m0\n    mulpd   m0, [varq + jq*8]\n    ADDPD_MEM COVAR(0,0), m0\n    inc     iq\n    add covarq, COVAR_STRIDE\n    test    id, id\n    jle .loop2x1\n.ret:\n    RET\n\n%macro UPDATE_LLS 0\ncglobal update_lls, 3,6,8, ctx, var, count, i, j, count2\n    %define covarq ctxq\n    mov  countd, [ctxq + LLSModel.indep_count]\n    lea count2d, [countq-2]\n    xor     id, id\n.loopi:\n    ; Compute all 10 pairwise products of a 4x4 block that lies on the diagonal\n    mova    ymm1, [varq + iq*8]\n    vbroadcastsd ymm4, [varq + iq*8]\n    vbroadcastsd ymm5, [varq + iq*8 + 8]\n    vbroadcastsd ymm6, [varq + iq*8 + 16]\n    vbroadcastsd ymm7, [varq + iq*8 + 24]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:4", "text": "inc     iq\n    add covarq, COVAR_STRIDE\n    test    id, id\n    jle .loop2x1\n.ret:\n    RET\n\n%macro UPDATE_LLS 0\ncglobal update_lls, 3,6,8, ctx, var, count, i, j, count2\n    %define covarq ctxq\n    mov  countd, [ctxq + LLSModel.indep_count]\n    lea count2d, [countq-2]\n    xor     id, id\n.loopi:\n    ; Compute all 10 pairwise products of a 4x4 block that lies on the diagonal\n    mova    ymm1, [varq + iq*8]\n    vbroadcastsd ymm4, [varq + iq*8]\n    vbroadcastsd ymm5, [varq + iq*8 + 8]\n    vbroadcastsd ymm6, [varq + iq*8 + 16]\n    vbroadcastsd ymm7, [varq + iq*8 + 24]\n    vextractf128 xmm3, ymm1, 1\n%if cpuflag(fma3)\n    mova ymm0, COVAR(iq  ,0)\n    mova xmm2, COVAR(iq+2,2)\n    fmaddpd ymm0, ymm1, ymm4, ymm0\n    fmaddpd xmm2, xmm3, xmm6, xmm2\n    fmaddpd ymm1, ymm5, ymm1, COVAR(iq  ,1)\n    fmaddpd xmm3, xmm7, xmm3, COVAR(iq+2,3)\n    mova COVAR(iq  ,0), ymm0\n    mova COVAR(iq  ,1), ymm1\n    mova COVAR(iq+2,2), xmm2\n    mova COVAR(iq+2,3), xmm3\n%else\n    vmulpd  ymm0, ymm1, ymm4\n    vmulpd  ymm1, ymm1, ymm5\n    vmulpd  xmm2, xmm3, xmm6\n    vmulpd  xmm3, xmm3, xmm7\n    ADDPD_MEM COVAR(iq  ,0), ymm0\n    ADDPD_MEM COVAR(iq  ,1), ymm1\n    ADDPD_MEM COVAR(iq+2,2), xmm2\n    ADDPD_MEM COVAR(iq+2,3), xmm3\n%endif ; cpuflag(fma3)\n    lea     jd, [iq + 4]\n    cmp     jd, count2d\n    jg .skip4x4\n.loop4x4:\n    ; Compute all 16 pairwise products of a 4x4 block\n    mova    ymm3, [varq + jq*8]\n%if cpuflag(fma3)\n    mova ymm0, COVAR(jq, 0)\n    mova ymm1, COVAR(jq, 1)\n    mova ymm2, COVAR(jq, 2)\n    fmaddpd ymm0, ymm3, ymm4, ymm0\n    fmaddpd ymm1, ymm3, ymm5, ymm1\n    fmaddpd ymm2, ymm3, ymm6, ymm2\n    fmaddpd ymm3, ymm7, ymm3, COVAR(jq,3)\n    mova COVAR(jq, 0), ymm0\n    mova COVAR(jq, 1), ymm1\n    mova COVAR(jq, 2), ymm2\n    mova COVAR(jq, 3), ymm3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:5", "text": "ADDPD_MEM COVAR(iq+2,3), xmm3\n%endif ; cpuflag(fma3)\n    lea     jd, [iq + 4]\n    cmp     jd, count2d\n    jg .skip4x4\n.loop4x4:\n    ; Compute all 16 pairwise products of a 4x4 block\n    mova    ymm3, [varq + jq*8]\n%if cpuflag(fma3)\n    mova ymm0, COVAR(jq, 0)\n    mova ymm1, COVAR(jq, 1)\n    mova ymm2, COVAR(jq, 2)\n    fmaddpd ymm0, ymm3, ymm4, ymm0\n    fmaddpd ymm1, ymm3, ymm5, ymm1\n    fmaddpd ymm2, ymm3, ymm6, ymm2\n    fmaddpd ymm3, ymm7, ymm3, COVAR(jq,3)\n    mova COVAR(jq, 0), ymm0\n    mova COVAR(jq, 1), ymm1\n    mova COVAR(jq, 2), ymm2\n    mova COVAR(jq, 3), ymm3\n%else\n    vmulpd  ymm0, ymm3, ymm4\n    vmulpd  ymm1, ymm3, ymm5\n    vmulpd  ymm2, ymm3, ymm6\n    vmulpd  ymm3, ymm3, ymm7\n    ADDPD_MEM COVAR(jq,0), ymm0\n    ADDPD_MEM COVAR(jq,1), ymm1\n    ADDPD_MEM COVAR(jq,2), ymm2\n    ADDPD_MEM COVAR(jq,3), ymm3\n%endif ; cpuflag(fma3)\n    add     jd, 4\n    cmp     jd, count2d\n    jle .loop4x4\n.skip4x4:\n    cmp     jd, countd\n    jg .skip2x4\n    mova    xmm3, [varq + jq*8]\n%if cpuflag(fma3)\n    mova xmm0, COVAR(jq, 0)\n    mova xmm1, COVAR(jq, 1)\n    mova xmm2, COVAR(jq, 2)\n    fmaddpd xmm0, xmm3, xmm4, xmm0\n    fmaddpd xmm1, xmm3, xmm5, xmm1\n    fmaddpd xmm2, xmm3, xmm6, xmm2\n    fmaddpd xmm3, xmm7, xmm3, COVAR(jq,3)\n    mova COVAR(jq, 0), xmm0\n    mova COVAR(jq, 1), xmm1\n    mova COVAR(jq, 2), xmm2\n    mova COVAR(jq, 3), xmm3\n%else\n    vmulpd  xmm0, xmm3, xmm4\n    vmulpd  xmm1, xmm3, xmm5\n    vmulpd  xmm2, xmm3, xmm6\n    vmulpd  xmm3, xmm3, xmm7\n    ADDPD_MEM COVAR(jq,0), xmm0\n    ADDPD_MEM COVAR(jq,1), xmm1\n    ADDPD_MEM COVAR(jq,2), xmm2\n    ADDPD_MEM COVAR(jq,3), xmm3\n%endif ; cpuflag(fma3)\n.skip2x4:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:6", "text": "mova xmm2, COVAR(jq, 2)\n    fmaddpd xmm0, xmm3, xmm4, xmm0\n    fmaddpd xmm1, xmm3, xmm5, xmm1\n    fmaddpd xmm2, xmm3, xmm6, xmm2\n    fmaddpd xmm3, xmm7, xmm3, COVAR(jq,3)\n    mova COVAR(jq, 0), xmm0\n    mova COVAR(jq, 1), xmm1\n    mova COVAR(jq, 2), xmm2\n    mova COVAR(jq, 3), xmm3\n%else\n    vmulpd  xmm0, xmm3, xmm4\n    vmulpd  xmm1, xmm3, xmm5\n    vmulpd  xmm2, xmm3, xmm6\n    vmulpd  xmm3, xmm3, xmm7\n    ADDPD_MEM COVAR(jq,0), xmm0\n    ADDPD_MEM COVAR(jq,1), xmm1\n    ADDPD_MEM COVAR(jq,2), xmm2\n    ADDPD_MEM COVAR(jq,3), xmm3\n%endif ; cpuflag(fma3)\n.skip2x4:\n    add     id, 4\n    add covarq, 4*COVAR_STRIDE\n    cmp     id, count2d\n    jle .loopi\n    cmp     id, countd\n    jg .ret\n    mov     jd, id\n.loop2x1:\n    vmovddup xmm0, [varq + iq*8]\n%if cpuflag(fma3)\n    mova xmm1, [varq + jq*8]\n    fmaddpd xmm0, xmm1, xmm0, COVAR(jq,0)\n    mova COVAR(jq,0), xmm0\n%else\n    vmulpd   xmm0, [varq + jq*8]\n    ADDPD_MEM COVAR(jq,0), xmm0\n%endif ; cpuflag(fma3)\n    inc     id\n    add covarq, COVAR_STRIDE\n    cmp     id, countd\n    jle .loop2x1\n.ret:\n    RET\n%endmacro ; UPDATE_LLS\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nUPDATE_LLS\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nUPDATE_LLS\n%endif\n\nINIT_XMM sse2\ncglobal evaluate_lls, 3,4,2, ctx, var, order, i\n    ; This function is often called on the same buffer as update_lls, but with\n    ; an offset. They can't both be aligned.\n    ; Load halves rather than movu to avoid store-forwarding stalls, since the\n    ; input was initialized immediately prior to this function using scalar math.", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:7", "text": "jle .loop2x1\n.ret:\n    RET\n%endmacro ; UPDATE_LLS\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nUPDATE_LLS\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nUPDATE_LLS\n%endif\n\nINIT_XMM sse2\ncglobal evaluate_lls, 3,4,2, ctx, var, order, i\n    ; This function is often called on the same buffer as update_lls, but with\n    ; an offset. They can't both be aligned.\n    ; Load halves rather than movu to avoid store-forwarding stalls, since the\n    ; input was initialized immediately prior to this function using scalar math.\n    %define coefsq ctxq\n    mov     id, orderd\n    imul    orderd, MAX_VARS\n    lea     coefsq, [ctxq + LLSModel.coeff + orderq*8]\n    movsd   m0, [varq]\n    movhpd  m0, [varq + 8]\n    mulpd   m0, [coefsq]\n    lea coefsq, [coefsq + iq*8]\n    lea   varq, [varq + iq*8]\n    neg     iq\n    add     iq, 2\n.loop:\n    movsd   m1, [varq + iq*8]\n    movhpd  m1, [varq + iq*8 + 8]\n    mulpd   m1, [coefsq + iq*8]\n    addpd   m0, m1\n    add     iq, 2\n    jl .loop\n    jg .skip1\n    movsd   m1, [varq + iq*8]\n    mulsd   m1, [coefsq + iq*8]\n    addpd   m0, m1\n.skip1:\n    movhlps m1, m0\n    addsd   m0, m1\n%if ARCH_X86_32\n    movsd  r0m, m0\n    fld   qword r0m\n%endif\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 241, "line_end": 290}
{"id": "FFmpeg/FFmpeg:libavutil/x86/lls.asm:8", "text": "mulsd   m1, [coefsq + iq*8]\n    addpd   m0, m1\n.skip1:\n    movhlps m1, m0\n    addsd   m0, m1\n%if ARCH_X86_32\n    movsd  r0m, m0\n    fld   qword r0m\n%endif\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/lls.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/lls.asm", "line_start": 281, "line_end": 290}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:1", "text": ";******************************************************************************\n;* Pixel utilities SIMD\n;*\n;* Copyright (C) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2014 Clément Bœsch <u pkh me>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n%macro SAD_XMM_8x2 2\n    movq       %1, [src1q]\n    movq       m2, [src2q]\n    movhps     %1, [src1q+stride1q]\n    movhps     m2, [src2q+stride2q]\n%ifn %2\n    lea     src1q, [src1q+2*stride1q]\n    lea     src2q, [src2q+2*stride2q]\n%endif\n    psadbw     %1, m2\n%ifnidn %1, m0\n    paddw      m0, %1\n%endif\n%endmacro\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_8x8_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_8x8, 4,4,3, src1, stride1, src2, stride2\n    SAD_XMM_8x2 m0, 0\n    SAD_XMM_8x2 m1, 0\n    SAD_XMM_8x2 m1, 0\n    SAD_XMM_8x2 m1, 1\n    movhlps     m1, m0\n    paddw       m0, m1\n    movd       eax, m0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:2", "text": "%endmacro\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_8x8_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_8x8, 4,4,3, src1, stride1, src2, stride2\n    SAD_XMM_8x2 m0, 0\n    SAD_XMM_8x2 m1, 0\n    SAD_XMM_8x2 m1, 0\n    SAD_XMM_8x2 m1, 1\n    movhlps     m1, m0\n    paddw       m0, m1\n    movd       eax, m0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_16x16, 4,4,5, src1, stride1, src2, stride2\n    movu        m4, [src1q]\n    movu        m2, [src2q]\n    movu        m1, [src1q + stride1q]\n    movu        m3, [src2q + stride2q]\n    psadbw      m4, m2\n    psadbw      m1, m3\n    paddw       m4, m1\n%rep 7\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n    movu        m0, [src1q]\n    movu        m2, [src2q]\n    movu        m1, [src1q + stride1q]\n    movu        m3, [src2q + stride2q]\n    psadbw      m0, m2\n    psadbw      m1, m3\n    paddw       m4, m0\n    paddw       m4, m1\n%endrep\n    movhlps     m0, m4\n    paddw       m4, m0\n    movd        eax, m4\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_16x16 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_16x16, 4,4,3, src1, stride1, src2, stride2\n    mov%1       m2, [src2q]\n    psadbw      m2, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m1\n%rep 7", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:3", "text": "paddw       m4, m1\n%endrep\n    movhlps     m0, m4\n    paddw       m4, m0\n    movd        eax, m4\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_16x16 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_16x16, 4,4,3, src1, stride1, src2, stride2\n    mov%1       m2, [src2q]\n    psadbw      m2, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m1\n%rep 7\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n    mov%1       m0, [src2q]\n    psadbw      m0, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m0\n    paddw       m2, m1\n%endrep\n    movhlps     m0, m2\n    paddw       m2, m0\n    movd        eax, m2\n    RET\n%endmacro\n\nSAD_XMM_16x16 a\nSAD_XMM_16x16 u\n\n\n%macro PROCESS_SAD_32x4_U 0\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:4", "text": "movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n%endmacro\n\n%macro PROCESS_SAD_32x4 1\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:5", "text": "paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n%endmacro\n\n%macro PROCESS_SAD_32x4 1\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n%endmacro\n\n;-----------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_32x32, 4,5,5, src1, stride1, src2, stride2\n    pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4_U\n    PROCESS_SAD_32x4_U\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:6", "text": "lea     r0,  [r0 + r1]\n%endmacro\n\n;-----------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_32x32, 4,5,5, src1, stride1, src2, stride2\n    pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4_U\n    PROCESS_SAD_32x4_U\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_32x32 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_32x32, 4,5,3, src1, stride1, src2, stride2\n    pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4 %1\n    PROCESS_SAD_32x4 %1\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n%endmacro\n\nSAD_XMM_32x32 a\nSAD_XMM_32x32 u\n\n%if HAVE_AVX2_EXTERNAL\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_YMM avx2\ncglobal pixelutils_sad_32x32, 4,7,3, src1, stride1, src2, stride2\n    pxor           m0, m0\n    mov            r4d, 32/4\n    lea            r5, [stride1q * 3]\n    lea            r6, [stride2q * 3]\n\n.loop:\n    movu           m1, [src2q]                ; row 0 of pix1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:7", "text": "RET\n%endmacro\n\nSAD_XMM_32x32 a\nSAD_XMM_32x32 u\n\n%if HAVE_AVX2_EXTERNAL\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_YMM avx2\ncglobal pixelutils_sad_32x32, 4,7,3, src1, stride1, src2, stride2\n    pxor           m0, m0\n    mov            r4d, 32/4\n    lea            r5, [stride1q * 3]\n    lea            r6, [stride2q * 3]\n\n.loop:\n    movu           m1, [src2q]                ; row 0 of pix1\n    psadbw         m1, [src1q]\n    movu           m2, [src2q + stride2q]     ; row 1 of pix1\n    psadbw         m2, [src1q + stride1q]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    movu           m1, [src2q + 2 * stride2q] ; row 2 of pix1\n    psadbw         m1, [src1q + 2 * stride1q]\n    movu           m2, [src2q + r6]           ; row 3 of pix1\n    psadbw         m2, [src1q + r5]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    lea            src2q,     [src2q + 4 * stride2q]\n    lea            src1q,     [src1q + 4 * stride1q]\n\n    dec            r4d\n    jnz           .loop\n\n    vextracti128   xm1, m0, 1\n    paddd          xm0, xm1\n    pshufd         xm1, xm0, 2\n    paddd          xm0, xm1\n    movd           eax, xm0\n    RET\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/pixelutils.asm", "line_start": 241, "line_end": 288}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:1", "text": ";******************************************************************************\n;* Pixel utilities SIMD\n;*\n;* Copyright (C) 2002-2004 Michael Niedermayer <michaelni@gmx.at>\n;* Copyright (C) 2014 Clément Bœsch <u pkh me>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_8x8_mmxext(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_MMX mmxext\ncglobal pixelutils_sad_8x8, 4,4,0, src1, stride1, src2, stride2\n    pxor        m2, m2\n%rep 4\n    mova        m0, [src1q]\n    mova        m1, [src1q + stride1q]\n    psadbw      m0, [src2q]\n    psadbw      m1, [src2q + stride2q]\n    paddw       m2, m0\n    paddw       m2, m1\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n%endrep\n    movd        eax, m2\n    emms\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_16x16, 4,4,5, src1, stride1, src2, stride2\n    movu        m4, [src1q]\n    movu        m2, [src2q]\n    movu        m1, [src1q + stride1q]\n    movu        m3, [src2q + stride2q]\n    psadbw      m4, m2\n    psadbw      m1, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:2", "text": "paddw       m2, m1\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n%endrep\n    movd        eax, m2\n    emms\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_16x16, 4,4,5, src1, stride1, src2, stride2\n    movu        m4, [src1q]\n    movu        m2, [src2q]\n    movu        m1, [src1q + stride1q]\n    movu        m3, [src2q + stride2q]\n    psadbw      m4, m2\n    psadbw      m1, m3\n    paddw       m4, m1\n%rep 7\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n    movu        m0, [src1q]\n    movu        m2, [src2q]\n    movu        m1, [src1q + stride1q]\n    movu        m3, [src2q + stride2q]\n    psadbw      m0, m2\n    psadbw      m1, m3\n    paddw       m4, m0\n    paddw       m4, m1\n%endrep\n    movhlps     m0, m4\n    paddw       m4, m0\n    movd        eax, m4\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_16x16_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_16x16 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_16x16, 4,4,3, src1, stride1, src2, stride2\n    mov%1       m2, [src2q]\n    psadbw      m2, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m1\n%rep 7\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n    mov%1       m0, [src2q]\n    psadbw      m0, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m0\n    paddw       m2, m1\n%endrep", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:3", "text": ";                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_16x16 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_16x16, 4,4,3, src1, stride1, src2, stride2\n    mov%1       m2, [src2q]\n    psadbw      m2, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m1\n%rep 7\n    lea         src1q, [src1q + 2*stride1q]\n    lea         src2q, [src2q + 2*stride2q]\n    mov%1       m0, [src2q]\n    psadbw      m0, [src1q]\n    mov%1       m1, [src2q + stride2q]\n    psadbw      m1, [src1q + stride1q]\n    paddw       m2, m0\n    paddw       m2, m1\n%endrep\n    movhlps     m0, m2\n    paddw       m2, m0\n    movd        eax, m2\n    RET\n%endmacro\n\nSAD_XMM_16x16 a\nSAD_XMM_16x16 u\n\n\n%macro PROCESS_SAD_32x4_U 0\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:4", "text": "lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    movu    m1,  [r2]\n    movu    m2,  [r2 + 16]\n    movu    m3,  [r0]\n    movu    m4,  [r0 + 16]\n    psadbw  m1,  m3\n    psadbw  m2,  m4\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n%endmacro\n\n%macro PROCESS_SAD_32x4 1\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:5", "text": "psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n\n    mov%1   m1,  [r2]\n    mov%1   m2,  [r2 + 16]\n    psadbw  m1,  [r0]\n    psadbw  m2,  [r0 + 16]\n    paddd   m1,  m2\n    paddd   m0,  m1\n    lea     r2,  [r2 + r3]\n    lea     r0,  [r0 + r1]\n%endmacro\n\n;-----------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-----------------------------------------------------------------------------\nINIT_XMM sse2\ncglobal pixelutils_sad_32x32, 4,5,5, src1, stride1, src2, stride2\n    pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4_U\n    PROCESS_SAD_32x4_U\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_32x32 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_32x32, 4,5,3, src1, stride1, src2, stride2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:6", "text": "pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4_U\n    PROCESS_SAD_32x4_U\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_32x32 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_32x32, 4,5,3, src1, stride1, src2, stride2\n    pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4 %1\n    PROCESS_SAD_32x4 %1\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n%endmacro\n\nSAD_XMM_32x32 a\nSAD_XMM_32x32 u\n\n%if HAVE_AVX2_EXTERNAL\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_YMM avx2\ncglobal pixelutils_sad_32x32, 4,7,3, src1, stride1, src2, stride2\n    pxor           m0, m0\n    mov            r4d, 32/4\n    lea            r5, [stride1q * 3]\n    lea            r6, [stride2q * 3]\n\n.loop:\n    movu           m1, [src2q]                ; row 0 of pix1\n    psadbw         m1, [src1q]\n    movu           m2, [src2q + stride2q]     ; row 1 of pix1\n    psadbw         m2, [src1q + stride1q]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    movu           m1, [src2q + 2 * stride2q] ; row 2 of pix1\n    psadbw         m1, [src1q + 2 * stride1q]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:7", "text": ";                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_YMM avx2\ncglobal pixelutils_sad_32x32, 4,7,3, src1, stride1, src2, stride2\n    pxor           m0, m0\n    mov            r4d, 32/4\n    lea            r5, [stride1q * 3]\n    lea            r6, [stride2q * 3]\n\n.loop:\n    movu           m1, [src2q]                ; row 0 of pix1\n    psadbw         m1, [src1q]\n    movu           m2, [src2q + stride2q]     ; row 1 of pix1\n    psadbw         m2, [src1q + stride1q]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    movu           m1, [src2q + 2 * stride2q] ; row 2 of pix1\n    psadbw         m1, [src1q + 2 * stride1q]\n    movu           m2, [src2q + r6]           ; row 3 of pix1\n    psadbw         m2, [src1q + r5]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    lea            src2q,     [src2q + 4 * stride2q]\n    lea            src1q,     [src1q + 4 * stride1q]\n\n    dec            r4d\n    jnz           .loop\n\n    vextracti128   xm1, m0, 1\n    paddd          xm0, xm1\n    pshufd         xm1, xm0, 2\n    paddd          xm0, xm1\n    movd           eax, xm0\n    RET\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "c9e056bc85c2364f8d4df9408acad6da501ace99", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c9e056bc85c2364f8d4df9408acad6da501ace99/libavutil/x86/pixelutils.asm", "line_start": 241, "line_end": 279}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:6", "text": "pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4_U\n    PROCESS_SAD_32x4_U\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_32x32_sse2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_XMM_32x32 1\nINIT_XMM sse2\ncglobal pixelutils_sad_%1_32x32, 4,5,3, src1, stride1, src2, stride2\n    pxor  m0,  m0\n    mov   r4d, 4\n.loop:\n    PROCESS_SAD_32x4 %1\n    PROCESS_SAD_32x4 %1\n    dec r4d\n    jnz .loop\n\n    movhlps m1,  m0\n    paddd   m0,  m1\n    movd    eax, m0\n    RET\n%endmacro\n\nSAD_XMM_32x32 a\nSAD_XMM_32x32 u\n\n%if HAVE_AVX2_EXTERNAL\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,\n;                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_YMM avx2\ncglobal pixelutils_sad_32x32, 4,7,5, src1, stride1, src2, stride2\n    pxor            m0, m0\n    mov             r4d, 32/4\n    lea             r5, [stride1q * 3]\n    lea             r6, [stride2q * 3]\n\n.loop:\n    movu           m1, [src1q]               ; row 0 of pix0\n    movu           m2, [src2q]               ; row 0 of pix1\n    movu           m3, [src1q + stride1q]    ; row 1 of pix0\n    movu           m4, [src2q + stride2q]    ; row 1 of pix1\n\n    psadbw         m1, m2\n    psadbw         m3, m4\n    paddd          m0, m1\n    paddd          m0, m3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/pixelutils.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:7", "text": ";                                  const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\nINIT_YMM avx2\ncglobal pixelutils_sad_32x32, 4,7,5, src1, stride1, src2, stride2\n    pxor            m0, m0\n    mov             r4d, 32/4\n    lea             r5, [stride1q * 3]\n    lea             r6, [stride2q * 3]\n\n.loop:\n    movu           m1, [src1q]               ; row 0 of pix0\n    movu           m2, [src2q]               ; row 0 of pix1\n    movu           m3, [src1q + stride1q]    ; row 1 of pix0\n    movu           m4, [src2q + stride2q]    ; row 1 of pix1\n\n    psadbw         m1, m2\n    psadbw         m3, m4\n    paddd          m0, m1\n    paddd          m0, m3\n\n    movu           m1, [src1q + 2 * stride1q] ; row 2 of pix0\n    movu           m2, [src2q + 2 * stride2q] ; row 2 of pix1\n    movu           m3, [src1q + r5]           ; row 3 of pix0\n    movu           m4, [src2q + r6]           ; row 3 of pix1\n\n    psadbw         m1, m2\n    psadbw         m3, m4\n    paddd          m0, m1\n    paddd          m0, m3\n\n    lea            src2q,     [src2q + 4 * stride2q]\n    lea            src1q,     [src1q + 4 * stride1q]\n\n    dec            r4d\n    jnz           .loop\n\n    vextracti128   xm1, m0, 1\n    paddd          xm0, xm1\n    pshufd         xm1, xm0, 2\n    paddd          xm0, xm1\n    movd           eax, xm0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_AVX2_32x32 1\nINIT_YMM avx2\ncglobal pixelutils_sad_%1_32x32, 4,7,3, src1, stride1, src2, stride2\n    pxor           m0, m0\n    mov            r4d, 32/4\n    lea            r5, [stride1q * 3]\n    lea            r6, [stride2q * 3]\n\n.loop:\n    mov%1          m1, [src2q]                ; row 0 of pix1\n    psadbw         m1, [src1q]\n    mov%1          m2, [src2q + stride2q]     ; row 1 of pix1\n    psadbw         m2, [src1q + stride1q]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/pixelutils.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/x86/pixelutils.asm:8", "text": "movd           eax, xm0\n    RET\n\n;-------------------------------------------------------------------------------\n; int ff_pixelutils_sad_[au]_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,\n;                                       const uint8_t *src2, ptrdiff_t stride2);\n;-------------------------------------------------------------------------------\n%macro SAD_AVX2_32x32 1\nINIT_YMM avx2\ncglobal pixelutils_sad_%1_32x32, 4,7,3, src1, stride1, src2, stride2\n    pxor           m0, m0\n    mov            r4d, 32/4\n    lea            r5, [stride1q * 3]\n    lea            r6, [stride2q * 3]\n\n.loop:\n    mov%1          m1, [src2q]                ; row 0 of pix1\n    psadbw         m1, [src1q]\n    mov%1          m2, [src2q + stride2q]     ; row 1 of pix1\n    psadbw         m2, [src1q + stride1q]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    mov%1          m1, [src2q + 2 * stride2q] ; row 2 of pix1\n    psadbw         m1, [src1q + 2 * stride1q]\n    mov%1          m2, [src2q + r6]           ; row 3 of pix1\n    psadbw         m2, [src1q + r5]\n\n    paddd          m0, m1\n    paddd          m0, m2\n\n    lea            src2q,     [src2q + 4 * stride2q]\n    lea            src1q,     [src1q + 4 * stride1q]\n\n    dec            r4d\n    jnz           .loop\n\n    vextracti128   xm1, m0, 1\n    paddd          xm0, xm1\n    pshufd         xm1, xm0, 2\n    paddd          xm0, xm1\n    movd           eax, xm0\n    RET\n%endmacro\n\nSAD_AVX2_32x32 a\nSAD_AVX2_32x32 u\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/pixelutils.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/pixelutils.asm", "line_start": 281, "line_end": 329}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:1", "text": ";*****************************************************************************\n;* x86util.asm\n;*****************************************************************************\n;* Copyright (C) 2008-2010 x264 project\n;*\n;* Authors: Loren Merritt <lorenm@u.washington.edu>\n;*          Holger Lubitz <holger@lubitz.org>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%define private_prefix ff\n%define public_prefix  avpriv\n%define cpuflags_mmxext cpuflags_mmx2\n\n%include \"libavutil/x86/x86inc.asm\"\n\n; expands to [base],...,[base+7*stride]\n%define PASS8ROWS(base, base3, stride, stride3) \\\n    [base],           [base  + stride],   [base  + 2*stride], [base3], \\\n    [base3 + stride], [base3 + 2*stride], [base3 + stride3],  [base3 + stride*4]\n\n; Interleave low src0 with low src1 and store in src0,\n; interleave high src0 with high src1 and store in src1.\n; %1 - types\n; %2 - index of the register with src0\n; %3 - index of the register with src1\n; %4 - index of the register for intermediate results\n; example for %1 - wd: input: src0: x0 x1 x2 x3 z0 z1 z2 z3\n;                             src1: y0 y1 y2 y3 q0 q1 q2 q3\n;                     output: src0: x0 y0 x1 y1 x2 y2 x3 y3\n;                             src1: z0 q0 z1 q1 z2 q2 z3 q3\n%macro SBUTTERFLY 4\n%ifidn %1, dqqq\n    vperm2i128  m%4, m%2, m%3, q0301\n    vinserti128 m%2, m%2, xm%3, 1\n%elif avx_enabled == 0\n    mova      m%4, m%2\n    punpckl%1 m%2, m%3\n    punpckh%1 m%4, m%3\n%else\n    punpckh%1 m%4, m%2, m%3\n    punpckl%1 m%2, m%3\n%endif\n    SWAP %3, %4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:2", "text": "; %3 - index of the register with src1\n; %4 - index of the register for intermediate results\n; example for %1 - wd: input: src0: x0 x1 x2 x3 z0 z1 z2 z3\n;                             src1: y0 y1 y2 y3 q0 q1 q2 q3\n;                     output: src0: x0 y0 x1 y1 x2 y2 x3 y3\n;                             src1: z0 q0 z1 q1 z2 q2 z3 q3\n%macro SBUTTERFLY 4\n%ifidn %1, dqqq\n    vperm2i128  m%4, m%2, m%3, q0301\n    vinserti128 m%2, m%2, xm%3, 1\n%elif avx_enabled == 0\n    mova      m%4, m%2\n    punpckl%1 m%2, m%3\n    punpckh%1 m%4, m%3\n%else\n    punpckh%1 m%4, m%2, m%3\n    punpckl%1 m%2, m%3\n%endif\n    SWAP %3, %4\n%endmacro\n\n%macro SBUTTERFLY2 4\n    punpckl%1 m%4, m%2, m%3\n    punpckh%1 m%2, m%2, m%3\n    SWAP %2, %4, %3\n%endmacro\n\n%macro SBUTTERFLYPS 3\n    unpcklps m%3, m%1, m%2\n    unpckhps m%1, m%1, m%2\n    SWAP %1, %3, %2\n%endmacro\n\n%macro SBUTTERFLYPD 3\n    movlhps m%3, m%1, m%2\n    movhlps m%2, m%2, m%1\n    SWAP %1, %3\n%endmacro\n\n%macro TRANSPOSE4x4B 5\n    SBUTTERFLY bw, %1, %2, %5\n    SBUTTERFLY bw, %3, %4, %5\n    SBUTTERFLY wd, %1, %3, %5\n    SBUTTERFLY wd, %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n%macro TRANSPOSE4x4W 5\n    SBUTTERFLY wd, %1, %2, %5\n    SBUTTERFLY wd, %3, %4, %5\n    SBUTTERFLY dq, %1, %3, %5\n    SBUTTERFLY dq, %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n%macro TRANSPOSE2x4x4B 5\n    SBUTTERFLY bw,  %1, %2, %5\n    SBUTTERFLY bw,  %3, %4, %5\n    SBUTTERFLY wd,  %1, %3, %5\n    SBUTTERFLY wd,  %2, %4, %5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:3", "text": "SBUTTERFLY bw, %1, %2, %5\n    SBUTTERFLY bw, %3, %4, %5\n    SBUTTERFLY wd, %1, %3, %5\n    SBUTTERFLY wd, %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n%macro TRANSPOSE4x4W 5\n    SBUTTERFLY wd, %1, %2, %5\n    SBUTTERFLY wd, %3, %4, %5\n    SBUTTERFLY dq, %1, %3, %5\n    SBUTTERFLY dq, %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n%macro TRANSPOSE2x4x4B 5\n    SBUTTERFLY bw,  %1, %2, %5\n    SBUTTERFLY bw,  %3, %4, %5\n    SBUTTERFLY wd,  %1, %3, %5\n    SBUTTERFLY wd,  %2, %4, %5\n    SBUTTERFLY dq,  %1, %2, %5\n    SBUTTERFLY dq,  %3, %4, %5\n%endmacro\n\n%macro TRANSPOSE2x4x4W 5\n    SBUTTERFLY wd,  %1, %2, %5\n    SBUTTERFLY wd,  %3, %4, %5\n    SBUTTERFLY dq,  %1, %3, %5\n    SBUTTERFLY dq,  %2, %4, %5\n    SBUTTERFLY qdq, %1, %2, %5\n    SBUTTERFLY qdq, %3, %4, %5\n%endmacro\n\n%macro TRANSPOSE4x4D 5\n    SBUTTERFLY dq,  %1, %2, %5\n    SBUTTERFLY dq,  %3, %4, %5\n    SBUTTERFLY qdq, %1, %3, %5\n    SBUTTERFLY qdq, %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n; identical behavior to TRANSPOSE4x4D, but using SSE1 float ops\n%macro TRANSPOSE4x4PS 5\n    SBUTTERFLYPS %1, %2, %5\n    SBUTTERFLYPS %3, %4, %5\n    SBUTTERFLYPD %1, %3, %5\n    SBUTTERFLYPD %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n%macro TRANSPOSE8x4D 9-11\n%if ARCH_X86_64\n    SBUTTERFLY dq,  %1, %2, %9\n    SBUTTERFLY dq,  %3, %4, %9\n    SBUTTERFLY dq,  %5, %6, %9\n    SBUTTERFLY dq,  %7, %8, %9\n    SBUTTERFLY qdq, %1, %3, %9\n    SBUTTERFLY qdq, %2, %4, %9\n    SBUTTERFLY qdq, %5, %7, %9\n    SBUTTERFLY qdq, %6, %8, %9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:4", "text": "; identical behavior to TRANSPOSE4x4D, but using SSE1 float ops\n%macro TRANSPOSE4x4PS 5\n    SBUTTERFLYPS %1, %2, %5\n    SBUTTERFLYPS %3, %4, %5\n    SBUTTERFLYPD %1, %3, %5\n    SBUTTERFLYPD %2, %4, %5\n    SWAP %2, %3\n%endmacro\n\n%macro TRANSPOSE8x4D 9-11\n%if ARCH_X86_64\n    SBUTTERFLY dq,  %1, %2, %9\n    SBUTTERFLY dq,  %3, %4, %9\n    SBUTTERFLY dq,  %5, %6, %9\n    SBUTTERFLY dq,  %7, %8, %9\n    SBUTTERFLY qdq, %1, %3, %9\n    SBUTTERFLY qdq, %2, %4, %9\n    SBUTTERFLY qdq, %5, %7, %9\n    SBUTTERFLY qdq, %6, %8, %9\n    SWAP %2, %5\n    SWAP %4, %7\n%else\n; in:  m0..m7\n; out: m0..m7, unless %11 in which case m2 is in %9\n; spills into %9 and %10\n    movdqa %9, m%7\n    SBUTTERFLY dq,  %1, %2, %7\n    movdqa %10, m%2\n    movdqa m%7, %9\n    SBUTTERFLY dq,  %3, %4, %2\n    SBUTTERFLY dq,  %5, %6, %2\n    SBUTTERFLY dq,  %7, %8, %2\n    SBUTTERFLY qdq, %1, %3, %2\n    movdqa %9, m%3\n    movdqa m%2, %10\n    SBUTTERFLY qdq, %2, %4, %3\n    SBUTTERFLY qdq, %5, %7, %3\n    SBUTTERFLY qdq, %6, %8, %3\n    SWAP %2, %5\n    SWAP %4, %7\n%if %0<11\n    movdqa m%3, %9\n%endif\n%endif\n%endmacro\n\n%macro TRANSPOSE8x8W 9-11\n%if ARCH_X86_64\n    SBUTTERFLY wd,  %1, %2, %9\n    SBUTTERFLY wd,  %3, %4, %9\n    SBUTTERFLY wd,  %5, %6, %9\n    SBUTTERFLY wd,  %7, %8, %9\n    SBUTTERFLY dq,  %1, %3, %9\n    SBUTTERFLY dq,  %2, %4, %9\n    SBUTTERFLY dq,  %5, %7, %9\n    SBUTTERFLY dq,  %6, %8, %9\n    SBUTTERFLY qdq, %1, %5, %9\n    SBUTTERFLY qdq, %2, %6, %9\n    SBUTTERFLY qdq, %3, %7, %9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:5", "text": "SWAP %4, %7\n%if %0<11\n    movdqa m%3, %9\n%endif\n%endif\n%endmacro\n\n%macro TRANSPOSE8x8W 9-11\n%if ARCH_X86_64\n    SBUTTERFLY wd,  %1, %2, %9\n    SBUTTERFLY wd,  %3, %4, %9\n    SBUTTERFLY wd,  %5, %6, %9\n    SBUTTERFLY wd,  %7, %8, %9\n    SBUTTERFLY dq,  %1, %3, %9\n    SBUTTERFLY dq,  %2, %4, %9\n    SBUTTERFLY dq,  %5, %7, %9\n    SBUTTERFLY dq,  %6, %8, %9\n    SBUTTERFLY qdq, %1, %5, %9\n    SBUTTERFLY qdq, %2, %6, %9\n    SBUTTERFLY qdq, %3, %7, %9\n    SBUTTERFLY qdq, %4, %8, %9\n    SWAP %2, %5\n    SWAP %4, %7\n%else\n; in:  m0..m7, unless %11 in which case m6 is in %9\n; out: m0..m7, unless %11 in which case m4 is in %10\n; spills into %9 and %10\n%if %0<11\n    movdqa %9, m%7\n%endif\n    SBUTTERFLY wd,  %1, %2, %7\n    movdqa %10, m%2\n    movdqa m%7, %9\n    SBUTTERFLY wd,  %3, %4, %2\n    SBUTTERFLY wd,  %5, %6, %2\n    SBUTTERFLY wd,  %7, %8, %2\n    SBUTTERFLY dq,  %1, %3, %2\n    movdqa %9, m%3\n    movdqa m%2, %10\n    SBUTTERFLY dq,  %2, %4, %3\n    SBUTTERFLY dq,  %5, %7, %3\n    SBUTTERFLY dq,  %6, %8, %3\n    SBUTTERFLY qdq, %1, %5, %3\n    SBUTTERFLY qdq, %2, %6, %3\n    movdqa %10, m%2\n    movdqa m%3, %9\n    SBUTTERFLY qdq, %3, %7, %2\n    SBUTTERFLY qdq, %4, %8, %2\n    SWAP %2, %5\n    SWAP %4, %7\n%if %0<11\n    movdqa m%5, %10\n%endif\n%endif\n%endmacro\n\n%macro TRANSPOSE16x16W 18-19\n; in:  m0..m15, unless %19 in which case m6 is in %17\n; out: m0..m15, unless %19 in which case m4 is in %18\n; spills into %17 and %18", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:6", "text": "SBUTTERFLY dq,  %5, %7, %3\n    SBUTTERFLY dq,  %6, %8, %3\n    SBUTTERFLY qdq, %1, %5, %3\n    SBUTTERFLY qdq, %2, %6, %3\n    movdqa %10, m%2\n    movdqa m%3, %9\n    SBUTTERFLY qdq, %3, %7, %2\n    SBUTTERFLY qdq, %4, %8, %2\n    SWAP %2, %5\n    SWAP %4, %7\n%if %0<11\n    movdqa m%5, %10\n%endif\n%endif\n%endmacro\n\n%macro TRANSPOSE16x16W 18-19\n; in:  m0..m15, unless %19 in which case m6 is in %17\n; out: m0..m15, unless %19 in which case m4 is in %18\n; spills into %17 and %18\n%if %0 < 19\n    mova       %17, m%7\n%endif\n\n    SBUTTERFLY dqqq, %1,  %9, %7\n    SBUTTERFLY dqqq, %2, %10, %7\n    SBUTTERFLY dqqq, %3, %11, %7\n    SBUTTERFLY dqqq, %4, %12, %7\n    SBUTTERFLY dqqq, %5, %13, %7\n    SBUTTERFLY dqqq, %6, %14, %7\n    mova       %18, m%14\n    mova       m%7, %17\n    SBUTTERFLY dqqq, %7, %15, %14\n    SBUTTERFLY dqqq, %8, %16, %14\n\n    SBUTTERFLY  wd,  %1,  %2, %14\n    SBUTTERFLY  wd,  %3,  %4, %14\n    SBUTTERFLY  wd,  %5,  %6, %14\n    SBUTTERFLY  wd,  %7,  %8, %14\n    SBUTTERFLY  wd,  %9, %10, %14\n    SBUTTERFLY  wd, %11, %12, %14\n    mova       %17, m%12\n    mova      m%14, %18\n    SBUTTERFLY  wd, %13, %14, %12\n    SBUTTERFLY  wd, %15, %16, %12\n\n    SBUTTERFLY  dq,  %1,  %3, %12\n    SBUTTERFLY  dq,  %2,  %4, %12\n    SBUTTERFLY  dq,  %5,  %7, %12\n    SBUTTERFLY  dq,  %6,  %8, %12\n    SBUTTERFLY  dq,  %9, %11, %12\n    mova       %18, m%11\n    mova      m%12, %17\n    SBUTTERFLY  dq, %10, %12, %11\n    SBUTTERFLY  dq, %13, %15, %11\n    SBUTTERFLY  dq, %14, %16, %11\n\n    SBUTTERFLY qdq,  %1,  %5, %11\n    SBUTTERFLY qdq,  %2,  %6, %11\n    SBUTTERFLY qdq,  %3,  %7, %11", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:7", "text": "SBUTTERFLY  wd, %11, %12, %14\n    mova       %17, m%12\n    mova      m%14, %18\n    SBUTTERFLY  wd, %13, %14, %12\n    SBUTTERFLY  wd, %15, %16, %12\n\n    SBUTTERFLY  dq,  %1,  %3, %12\n    SBUTTERFLY  dq,  %2,  %4, %12\n    SBUTTERFLY  dq,  %5,  %7, %12\n    SBUTTERFLY  dq,  %6,  %8, %12\n    SBUTTERFLY  dq,  %9, %11, %12\n    mova       %18, m%11\n    mova      m%12, %17\n    SBUTTERFLY  dq, %10, %12, %11\n    SBUTTERFLY  dq, %13, %15, %11\n    SBUTTERFLY  dq, %14, %16, %11\n\n    SBUTTERFLY qdq,  %1,  %5, %11\n    SBUTTERFLY qdq,  %2,  %6, %11\n    SBUTTERFLY qdq,  %3,  %7, %11\n    SBUTTERFLY qdq,  %4,  %8, %11\n\n    SWAP        %2, %5\n    SWAP        %4, %7\n\n    SBUTTERFLY qdq,  %9, %13, %11\n    SBUTTERFLY qdq, %10, %14, %11\n    mova      m%11, %18\n    mova       %18, m%5\n    SBUTTERFLY qdq, %11, %15, %5\n    SBUTTERFLY qdq, %12, %16, %5\n\n%if %0 < 19\n    mova       m%5, %18\n%endif\n\n    SWAP       %10, %13\n    SWAP       %12, %15\n%endmacro\n\n%macro TRANSPOSE_8X8B 8\n    %if mmsize == 8\n        %error \"This macro does not support mmsize == 8\"\n    %endif\n    punpcklbw m%1, m%2\n    punpcklbw m%3, m%4\n    punpcklbw m%5, m%6\n    punpcklbw m%7, m%8\n    TRANSPOSE4x4W %1, %3, %5, %7, %2\n    MOVHL m%2, m%1\n    MOVHL m%4, m%3\n    MOVHL m%6, m%5\n    MOVHL m%8, m%7\n%endmacro\n\n; PABSW macro assumes %1 != %2, while ABS1/2 macros work in-place\n%macro PABSW 2\n%if cpuflag(ssse3)\n    pabsw      %1, %2\n%elif cpuflag(mmxext)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:8", "text": "%macro TRANSPOSE_8X8B 8\n    %if mmsize == 8\n        %error \"This macro does not support mmsize == 8\"\n    %endif\n    punpcklbw m%1, m%2\n    punpcklbw m%3, m%4\n    punpcklbw m%5, m%6\n    punpcklbw m%7, m%8\n    TRANSPOSE4x4W %1, %3, %5, %7, %2\n    MOVHL m%2, m%1\n    MOVHL m%4, m%3\n    MOVHL m%6, m%5\n    MOVHL m%8, m%7\n%endmacro\n\n; PABSW macro assumes %1 != %2, while ABS1/2 macros work in-place\n%macro PABSW 2\n%if cpuflag(ssse3)\n    pabsw      %1, %2\n%elif cpuflag(mmxext)\n    pxor    %1, %1\n    psubw   %1, %2\n    pmaxsw  %1, %2\n%else\n    pxor       %1, %1\n    pcmpgtw    %1, %2\n    pxor       %2, %1\n    psubw      %2, %1\n    SWAP       %1, %2\n%endif\n%endmacro\n\n%macro PSIGNW 2\n%if cpuflag(ssse3)\n    psignw     %1, %2\n%else\n    pxor       %1, %2\n    psubw      %1, %2\n%endif\n%endmacro\n\n%macro ABS1 2\n%if cpuflag(ssse3)\n    pabsw   %1, %1\n%elif cpuflag(mmxext) ; a, tmp\n    pxor    %2, %2\n    psubw   %2, %1\n    pmaxsw  %1, %2\n%else ; a, tmp\n    pxor       %2, %2\n    pcmpgtw    %2, %1\n    pxor       %1, %2\n    psubw      %1, %2\n%endif\n%endmacro\n\n%macro ABS2 4\n%if cpuflag(ssse3)\n    pabsw   %1, %1\n    pabsw   %2, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:9", "text": "%macro ABS1 2\n%if cpuflag(ssse3)\n    pabsw   %1, %1\n%elif cpuflag(mmxext) ; a, tmp\n    pxor    %2, %2\n    psubw   %2, %1\n    pmaxsw  %1, %2\n%else ; a, tmp\n    pxor       %2, %2\n    pcmpgtw    %2, %1\n    pxor       %1, %2\n    psubw      %1, %2\n%endif\n%endmacro\n\n%macro ABS2 4\n%if cpuflag(ssse3)\n    pabsw   %1, %1\n    pabsw   %2, %2\n%elif cpuflag(mmxext) ; a, b, tmp0, tmp1\n    pxor    %3, %3\n    pxor    %4, %4\n    psubw   %3, %1\n    psubw   %4, %2\n    pmaxsw  %1, %3\n    pmaxsw  %2, %4\n%else ; a, b, tmp0, tmp1\n    pxor       %3, %3\n    pxor       %4, %4\n    pcmpgtw    %3, %1\n    pcmpgtw    %4, %2\n    pxor       %1, %3\n    pxor       %2, %4\n    psubw      %1, %3\n    psubw      %2, %4\n%endif\n%endmacro\n\n%macro ABSB 2 ; source mmreg, temp mmreg (unused for SSSE3)\n%if cpuflag(ssse3)\n    pabsb   %1, %1\n%else\n    pxor    %2, %2\n    psubb   %2, %1\n    pminub  %1, %2\n%endif\n%endmacro\n\n%macro ABSB2 4 ; src1, src2, tmp1, tmp2 (tmp1/2 unused for SSSE3)\n%if cpuflag(ssse3)\n    pabsb   %1, %1\n    pabsb   %2, %2\n%else\n    pxor    %3, %3\n    pxor    %4, %4\n    psubb   %3, %1\n    psubb   %4, %2\n    pminub  %1, %3\n    pminub  %2, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:10", "text": "%if cpuflag(ssse3)\n    pabsb   %1, %1\n%else\n    pxor    %2, %2\n    psubb   %2, %1\n    pminub  %1, %2\n%endif\n%endmacro\n\n%macro ABSB2 4 ; src1, src2, tmp1, tmp2 (tmp1/2 unused for SSSE3)\n%if cpuflag(ssse3)\n    pabsb   %1, %1\n    pabsb   %2, %2\n%else\n    pxor    %3, %3\n    pxor    %4, %4\n    psubb   %3, %1\n    psubb   %4, %2\n    pminub  %1, %3\n    pminub  %2, %4\n%endif\n%endmacro\n\n%macro ABSD2 4\n    pxor    %3, %3\n    pxor    %4, %4\n    pcmpgtd %3, %1\n    pcmpgtd %4, %2\n    pxor    %1, %3\n    pxor    %2, %4\n    psubd   %1, %3\n    psubd   %2, %4\n%endmacro\n\n%macro ABS4 6\n    ABS2 %1, %2, %5, %6\n    ABS2 %3, %4, %5, %6\n%endmacro\n\n%macro SPLATB_LOAD 3\n%if cpuflag(ssse3)\n    movd      %1, [%2-3]\n    pshufb    %1, %3\n%else\n    movd      %1, [%2-3] ;to avoid crossing a cacheline\n    punpcklbw %1, %1\n    SPLATW    %1, %1, 3\n%endif\n%endmacro\n\n%macro SPLATB_REG 3\n%if cpuflag(ssse3)\n    movd      %1, %2d\n    pshufb    %1, %3\n%else\n    movd      %1, %2d\n    punpcklbw %1, %1\n    SPLATW    %1, %1, 0\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:11", "text": "%if cpuflag(ssse3)\n    movd      %1, [%2-3]\n    pshufb    %1, %3\n%else\n    movd      %1, [%2-3] ;to avoid crossing a cacheline\n    punpcklbw %1, %1\n    SPLATW    %1, %1, 3\n%endif\n%endmacro\n\n%macro SPLATB_REG 3\n%if cpuflag(ssse3)\n    movd      %1, %2d\n    pshufb    %1, %3\n%else\n    movd      %1, %2d\n    punpcklbw %1, %1\n    SPLATW    %1, %1, 0\n%endif\n%endmacro\n\n%macro HADDD 2 ; sum junk\n%if sizeof%1 == 32\n%define %2 xmm%2\n    vextracti128 %2, %1, 1\n%define %1 xmm%1\n    paddd   %1, %2\n%endif\n%if mmsize >= 16\n%if cpuflag(xop) && sizeof%1 == 16\n    vphadddq %1, %1\n%endif\n    movhlps %2, %1\n    paddd   %1, %2\n%endif\n%if notcpuflag(xop) || sizeof%1 != 16\n%if cpuflag(mmxext)\n    PSHUFLW %2, %1, q0032\n%else ; mmx\n    mova    %2, %1\n    psrlq   %2, 32\n%endif\n    paddd   %1, %2\n%endif\n%undef %1\n%undef %2\n%endmacro\n\n%macro HADDW 2 ; reg, tmp\n%if cpuflag(xop) && sizeof%1 == 16\n    vphaddwq  %1, %1\n    movhlps   %2, %1\n    paddd     %1, %2\n%else\n    pmaddwd %1, [pw_1]\n    HADDD   %1, %2\n%endif\n%endmacro\n\n%macro HADDPS 3 ; dst, src, tmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:12", "text": "psrlq   %2, 32\n%endif\n    paddd   %1, %2\n%endif\n%undef %1\n%undef %2\n%endmacro\n\n%macro HADDW 2 ; reg, tmp\n%if cpuflag(xop) && sizeof%1 == 16\n    vphaddwq  %1, %1\n    movhlps   %2, %1\n    paddd     %1, %2\n%else\n    pmaddwd %1, [pw_1]\n    HADDD   %1, %2\n%endif\n%endmacro\n\n%macro HADDPS 3 ; dst, src, tmp\n%if cpuflag(sse3)\n    haddps  %1, %1, %2\n%else\n    movaps  %3, %1\n    shufps  %1, %2, q2020\n    shufps  %3, %2, q3131\n    addps   %1, %3\n%endif\n%endmacro\n\n%macro PALIGNR 4-5\n%if cpuflag(ssse3)\n%if %0==5\n    palignr %1, %2, %3, %4\n%else\n    palignr %1, %2, %3\n%endif\n%else ; [dst,] src1, src2, imm, tmp\n    %define %%dst %1\n%if %0==5\n%ifnidn %1, %2\n    mova    %%dst, %2\n%endif\n    %rotate 1\n%endif\n%ifnidn %4, %2\n    mova    %4, %2\n%endif\n%if mmsize==8\n    psllq   %%dst, (8-%3)*8\n    psrlq   %4, %3*8\n%else\n    pslldq  %%dst, 16-%3\n    psrldq  %4, %3\n%endif\n    por     %%dst, %4\n%endif\n%endmacro\n\n%macro PAVGB 2-4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:13", "text": "%ifnidn %1, %2\n    mova    %%dst, %2\n%endif\n    %rotate 1\n%endif\n%ifnidn %4, %2\n    mova    %4, %2\n%endif\n%if mmsize==8\n    psllq   %%dst, (8-%3)*8\n    psrlq   %4, %3*8\n%else\n    pslldq  %%dst, 16-%3\n    psrldq  %4, %3\n%endif\n    por     %%dst, %4\n%endif\n%endmacro\n\n%macro PAVGB 2-4\n%if cpuflag(mmxext)\n    pavgb   %1, %2\n%elif cpuflag(3dnow)\n    pavgusb %1, %2\n%elif cpuflag(mmx)\n    movu   %3, %2\n    por    %3, %1\n    pxor   %1, %2\n    pand   %1, %4\n    psrlq  %1, 1\n    psubb  %3, %1\n    SWAP   %1, %3\n%endif\n%endmacro\n\n%macro PSHUFLW 1+\n    %if mmsize == 8\n        pshufw %1\n    %else\n        pshuflw %1\n    %endif\n%endmacro\n\n%macro PSWAPD 2\n%if cpuflag(mmxext)\n    pshufw    %1, %2, q1032\n%elif cpuflag(3dnowext)\n    pswapd    %1, %2\n%elif cpuflag(3dnow)\n    movq      %1, %2\n    psrlq     %1, 32\n    punpckldq %1, %2\n%endif\n%endmacro\n\n%macro DEINTB 5 ; mask, reg1, mask, reg2, optional src to fill masks from\n%ifnum %5\n    pand   m%3, m%5, m%4 ; src .. y6 .. y4\n    pand   m%1, m%5, m%2 ; dst .. y6 .. y4\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:14", "text": "%endif\n%endmacro\n\n%macro PSWAPD 2\n%if cpuflag(mmxext)\n    pshufw    %1, %2, q1032\n%elif cpuflag(3dnowext)\n    pswapd    %1, %2\n%elif cpuflag(3dnow)\n    movq      %1, %2\n    psrlq     %1, 32\n    punpckldq %1, %2\n%endif\n%endmacro\n\n%macro DEINTB 5 ; mask, reg1, mask, reg2, optional src to fill masks from\n%ifnum %5\n    pand   m%3, m%5, m%4 ; src .. y6 .. y4\n    pand   m%1, m%5, m%2 ; dst .. y6 .. y4\n%else\n    mova   m%1, %5\n    pand   m%3, m%1, m%4 ; src .. y6 .. y4\n    pand   m%1, m%1, m%2 ; dst .. y6 .. y4\n%endif\n    psrlw  m%2, 8        ; dst .. y7 .. y5\n    psrlw  m%4, 8        ; src .. y7 .. y5\n%endmacro\n\n%macro SUMSUB_BA 3-4\n%if %0==3\n    padd%1  m%2, m%3\n    padd%1  m%3, m%3\n    psub%1  m%3, m%2\n%else\n%if avx_enabled == 0\n    mova    m%4, m%2\n    padd%1  m%2, m%3\n    psub%1  m%3, m%4\n%else\n    padd%1  m%4, m%2, m%3\n    psub%1  m%3, m%2\n    SWAP    %2, %4\n%endif\n%endif\n%endmacro\n\n%macro SUMSUB_BADC 5-6\n%if %0==6\n    SUMSUB_BA %1, %2, %3, %6\n    SUMSUB_BA %1, %4, %5, %6\n%else\n    padd%1  m%2, m%3\n    padd%1  m%4, m%5\n    padd%1  m%3, m%3\n    padd%1  m%5, m%5\n    psub%1  m%3, m%2\n    psub%1  m%5, m%4\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:15", "text": "psub%1  m%3, m%2\n    SWAP    %2, %4\n%endif\n%endif\n%endmacro\n\n%macro SUMSUB_BADC 5-6\n%if %0==6\n    SUMSUB_BA %1, %2, %3, %6\n    SUMSUB_BA %1, %4, %5, %6\n%else\n    padd%1  m%2, m%3\n    padd%1  m%4, m%5\n    padd%1  m%3, m%3\n    padd%1  m%5, m%5\n    psub%1  m%3, m%2\n    psub%1  m%5, m%4\n%endif\n%endmacro\n\n%macro SUMSUB2_AB 4\n%ifnum %3\n    psub%1  m%4, m%2, m%3\n    psub%1  m%4, m%3\n    padd%1  m%2, m%2\n    padd%1  m%2, m%3\n%else\n    mova    m%4, m%2\n    padd%1  m%2, m%2\n    padd%1  m%2, %3\n    psub%1  m%4, %3\n    psub%1  m%4, %3\n%endif\n%endmacro\n\n%macro SUMSUB2_BA 4\n%if avx_enabled == 0\n    mova    m%4, m%2\n    padd%1  m%2, m%3\n    padd%1  m%2, m%3\n    psub%1  m%3, m%4\n    psub%1  m%3, m%4\n%else\n    padd%1  m%4, m%2, m%3\n    padd%1  m%4, m%3\n    psub%1  m%3, m%2\n    psub%1  m%3, m%2\n    SWAP     %2,  %4\n%endif\n%endmacro\n\n%macro SUMSUBD2_AB 5\n%ifnum %4\n    psra%1  m%5, m%2, 1  ; %3: %3>>1\n    psra%1  m%4, m%3, 1  ; %2: %2>>1\n    padd%1  m%4, m%2     ; %3: %3>>1+%2\n    psub%1  m%5, m%3     ; %2: %2>>1-%3\n    SWAP     %2, %5\n    SWAP     %3, %4\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:16", "text": "psub%1  m%3, m%4\n    psub%1  m%3, m%4\n%else\n    padd%1  m%4, m%2, m%3\n    padd%1  m%4, m%3\n    psub%1  m%3, m%2\n    psub%1  m%3, m%2\n    SWAP     %2,  %4\n%endif\n%endmacro\n\n%macro SUMSUBD2_AB 5\n%ifnum %4\n    psra%1  m%5, m%2, 1  ; %3: %3>>1\n    psra%1  m%4, m%3, 1  ; %2: %2>>1\n    padd%1  m%4, m%2     ; %3: %3>>1+%2\n    psub%1  m%5, m%3     ; %2: %2>>1-%3\n    SWAP     %2, %5\n    SWAP     %3, %4\n%else\n    mova    %5, m%2\n    mova    %4, m%3\n    psra%1  m%3, 1  ; %3: %3>>1\n    psra%1  m%2, 1  ; %2: %2>>1\n    padd%1  m%3, %5 ; %3: %3>>1+%2\n    psub%1  m%2, %4 ; %2: %2>>1-%3\n%endif\n%endmacro\n\n%macro DCT4_1D 5\n%ifnum %5\n    SUMSUB_BADC w, %4, %1, %3, %2, %5\n    SUMSUB_BA   w, %3, %4, %5\n    SUMSUB2_AB  w, %1, %2, %5\n    SWAP %1, %3, %4, %5, %2\n%else\n    SUMSUB_BADC w, %4, %1, %3, %2\n    SUMSUB_BA   w, %3, %4\n    mova     [%5], m%2\n    SUMSUB2_AB  w, %1, [%5], %2\n    SWAP %1, %3, %4, %2\n%endif\n%endmacro\n\n%macro IDCT4_1D 6-7\n%ifnum %6\n    SUMSUBD2_AB %1, %3, %5, %7, %6\n    ; %3: %3>>1-%5 %5: %3+%5>>1\n    SUMSUB_BA   %1, %4, %2, %7\n    ; %4: %2+%4 %2: %2-%4\n    SUMSUB_BADC %1, %5, %4, %3, %2, %7\n    ; %5: %2+%4 + (%3+%5>>1)\n    ; %4: %2+%4 - (%3+%5>>1)\n    ; %3: %2-%4 + (%3>>1-%5)\n    ; %2: %2-%4 - (%3>>1-%5)\n%else\n%ifidn %1, w\n    SUMSUBD2_AB %1, %3, %5, [%6], [%6+16]\n%else\n    SUMSUBD2_AB %1, %3, %5, [%6], [%6+32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:17", "text": "SWAP %1, %3, %4, %2\n%endif\n%endmacro\n\n%macro IDCT4_1D 6-7\n%ifnum %6\n    SUMSUBD2_AB %1, %3, %5, %7, %6\n    ; %3: %3>>1-%5 %5: %3+%5>>1\n    SUMSUB_BA   %1, %4, %2, %7\n    ; %4: %2+%4 %2: %2-%4\n    SUMSUB_BADC %1, %5, %4, %3, %2, %7\n    ; %5: %2+%4 + (%3+%5>>1)\n    ; %4: %2+%4 - (%3+%5>>1)\n    ; %3: %2-%4 + (%3>>1-%5)\n    ; %2: %2-%4 - (%3>>1-%5)\n%else\n%ifidn %1, w\n    SUMSUBD2_AB %1, %3, %5, [%6], [%6+16]\n%else\n    SUMSUBD2_AB %1, %3, %5, [%6], [%6+32]\n%endif\n    SUMSUB_BA   %1, %4, %2\n    SUMSUB_BADC %1, %5, %4, %3, %2\n%endif\n    SWAP %2, %5, %4\n    ; %2: %2+%4 + (%3+%5>>1) row0\n    ; %3: %2-%4 + (%3>>1-%5) row1\n    ; %4: %2-%4 - (%3>>1-%5) row2\n    ; %5: %2+%4 - (%3+%5>>1) row3\n%endmacro\n\n\n%macro LOAD_DIFF 5\n%ifidn %3, none\n    movh       %1, %4\n    movh       %2, %5\n    punpcklbw  %1, %2\n    punpcklbw  %2, %2\n    psubw      %1, %2\n%else\n    movh       %1, %4\n    punpcklbw  %1, %3\n    movh       %2, %5\n    punpcklbw  %2, %3\n    psubw      %1, %2\n%endif\n%endmacro\n\n%macro STORE_DCT 6\n    movq   [%5+%6+ 0], m%1\n    movq   [%5+%6+ 8], m%2\n    movq   [%5+%6+16], m%3\n    movq   [%5+%6+24], m%4\n    movhps [%5+%6+32], m%1\n    movhps [%5+%6+40], m%2\n    movhps [%5+%6+48], m%3\n    movhps [%5+%6+56], m%4\n%endmacro\n\n%macro LOAD_DIFF_8x4P 7-10 r0,r2,0 ; 4x dest, 2x temp, 2x pointer, increment?", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:18", "text": "movh       %1, %4\n    punpcklbw  %1, %3\n    movh       %2, %5\n    punpcklbw  %2, %3\n    psubw      %1, %2\n%endif\n%endmacro\n\n%macro STORE_DCT 6\n    movq   [%5+%6+ 0], m%1\n    movq   [%5+%6+ 8], m%2\n    movq   [%5+%6+16], m%3\n    movq   [%5+%6+24], m%4\n    movhps [%5+%6+32], m%1\n    movhps [%5+%6+40], m%2\n    movhps [%5+%6+48], m%3\n    movhps [%5+%6+56], m%4\n%endmacro\n\n%macro LOAD_DIFF_8x4P 7-10 r0,r2,0 ; 4x dest, 2x temp, 2x pointer, increment?\n    LOAD_DIFF m%1, m%5, m%7, [%8],      [%9]\n    LOAD_DIFF m%2, m%6, m%7, [%8+r1],   [%9+r3]\n    LOAD_DIFF m%3, m%5, m%7, [%8+2*r1], [%9+2*r3]\n    LOAD_DIFF m%4, m%6, m%7, [%8+r4],   [%9+r5]\n%if %10\n    lea %8, [%8+4*r1]\n    lea %9, [%9+4*r3]\n%endif\n%endmacro\n\n%macro DIFFx2 6-7\n    movh       %3, %5\n    punpcklbw  %3, %4\n    psraw      %1, 6\n    paddsw     %1, %3\n    movh       %3, %6\n    punpcklbw  %3, %4\n    psraw      %2, 6\n    paddsw     %2, %3\n    packuswb   %2, %1\n%endmacro\n\n%macro STORE_DIFF 4\n    movh       %2, %4\n    punpcklbw  %2, %3\n    psraw      %1, 6\n    paddsw     %1, %2\n    packuswb   %1, %1\n    movh       %4, %1\n%endmacro\n\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movh       %3, [%7]\n    movh       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:19", "text": "%endmacro\n\n%macro STORE_DIFF 4\n    movh       %2, %4\n    punpcklbw  %2, %3\n    psraw      %1, 6\n    paddsw     %1, %2\n    packuswb   %1, %1\n    movh       %4, %1\n%endmacro\n\n%macro STORE_DIFFx2 8 ; add1, add2, reg1, reg2, zero, shift, source, stride\n    movh       %3, [%7]\n    movh       %4, [%7+%8]\n    psraw      %1, %6\n    psraw      %2, %6\n    punpcklbw  %3, %5\n    punpcklbw  %4, %5\n    paddw      %3, %1\n    paddw      %4, %2\n    packuswb   %3, %5\n    packuswb   %4, %5\n    movh     [%7], %3\n    movh  [%7+%8], %4\n%endmacro\n\n%macro PMINUB 3 ; dst, src, ignored\n%if cpuflag(mmxext)\n    pminub   %1, %2\n%else ; dst, src, tmp\n    mova     %3, %1\n    psubusb  %3, %2\n    psubb    %1, %3\n%endif\n%endmacro\n\n%macro SPLATW 2-3 0\n%if cpuflag(avx2) && %3 == 0\n    vpbroadcastw %1, %2\n%elif mmsize == 16\n    pshuflw    %1, %2, (%3)*0x55\n    punpcklqdq %1, %1\n%elif cpuflag(mmxext)\n    pshufw     %1, %2, (%3)*0x55\n%else\n    %ifnidn %1, %2\n        mova       %1, %2\n    %endif\n    %if %3 & 2\n        punpckhwd  %1, %1\n    %else\n        punpcklwd  %1, %1\n    %endif\n    %if %3 & 1\n        punpckhwd  %1, %1\n    %else\n        punpcklwd  %1, %1\n    %endif\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:20", "text": "pshuflw    %1, %2, (%3)*0x55\n    punpcklqdq %1, %1\n%elif cpuflag(mmxext)\n    pshufw     %1, %2, (%3)*0x55\n%else\n    %ifnidn %1, %2\n        mova       %1, %2\n    %endif\n    %if %3 & 2\n        punpckhwd  %1, %1\n    %else\n        punpcklwd  %1, %1\n    %endif\n    %if %3 & 1\n        punpckhwd  %1, %1\n    %else\n        punpcklwd  %1, %1\n    %endif\n%endif\n%endmacro\n\n%macro SPLATD 1\n%if mmsize == 8\n    punpckldq  %1, %1\n%elif cpuflag(sse2)\n    pshufd  %1, %1, 0\n%elif cpuflag(sse)\n    shufps  %1, %1, 0\n%endif\n%endmacro\n\n%macro CLIPUB 3 ;(dst, min, max)\n    pmaxub %1, %2\n    pminub %1, %3\n%endmacro\n\n%macro CLIPW 3 ;(dst, min, max)\n    pmaxsw %1, %2\n    pminsw %1, %3\n%endmacro\n\n%macro PMINSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pminsd    %1, %2\n%else\n    mova      %3, %2\n    pcmpgtd   %3, %1\n    pxor      %1, %2\n    pand      %1, %3\n    pxor      %1, %2\n%endif\n%endmacro\n\n%macro PMAXSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pmaxsd    %1, %2\n%else\n    mova      %3, %1\n    pcmpgtd   %3, %2\n    pand      %1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:21", "text": "%macro PMINSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pminsd    %1, %2\n%else\n    mova      %3, %2\n    pcmpgtd   %3, %1\n    pxor      %1, %2\n    pand      %1, %3\n    pxor      %1, %2\n%endif\n%endmacro\n\n%macro PMAXSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pmaxsd    %1, %2\n%else\n    mova      %3, %1\n    pcmpgtd   %3, %2\n    pand      %1, %3\n    pandn     %3, %2\n    por       %1, %3\n%endif\n%endmacro\n\n%macro CLIPD 3-4\n%if cpuflag(sse4);  src/dst, min, max, unused\n    pminsd  %1, %3\n    pmaxsd  %1, %2\n%elif cpuflag(sse2) ; src/dst, min (float), max (float), unused\n    cvtdq2ps  %1, %1\n    minps     %1, %3\n    maxps     %1, %2\n    cvtps2dq  %1, %1\n%else               ; src/dst, min, max, tmp\n    PMINSD    %1, %3, %4\n    PMAXSD    %1, %2, %4\n%endif\n%endmacro\n\n%macro VBROADCASTSS 2 ; dst xmm/ymm, src m32/xmm\n%if cpuflag(avx2)\n    vbroadcastss  %1, %2\n%elif cpuflag(avx)\n    %ifnum sizeof%2         ; avx1 register\n        shufps  xmm%1, xmm%2, xmm%2, q0000\n        %if sizeof%1 >= 32  ; mmsize>=32\n            vinsertf128  %1, %1, xmm%1, 1\n        %endif\n    %else                   ; avx1 memory\n        vbroadcastss  %1, %2\n    %endif\n%else\n    %ifnum sizeof%2         ; sse register\n        shufps  %1, %2, %2, q0000\n    %else                   ; sse memory\n        movss   %1, %2\n        shufps  %1, %1, 0\n    %endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:22", "text": "%macro VBROADCASTSS 2 ; dst xmm/ymm, src m32/xmm\n%if cpuflag(avx2)\n    vbroadcastss  %1, %2\n%elif cpuflag(avx)\n    %ifnum sizeof%2         ; avx1 register\n        shufps  xmm%1, xmm%2, xmm%2, q0000\n        %if sizeof%1 >= 32  ; mmsize>=32\n            vinsertf128  %1, %1, xmm%1, 1\n        %endif\n    %else                   ; avx1 memory\n        vbroadcastss  %1, %2\n    %endif\n%else\n    %ifnum sizeof%2         ; sse register\n        shufps  %1, %2, %2, q0000\n    %else                   ; sse memory\n        movss   %1, %2\n        shufps  %1, %1, 0\n    %endif\n%endif\n%endmacro\n\n%macro VBROADCASTSD 2 ; dst xmm/ymm, src m64\n%if cpuflag(avx) && mmsize == 32\n    vbroadcastsd %1, %2\n%elif cpuflag(sse3)\n    movddup      %1, %2\n%else ; sse2\n    movsd        %1, %2\n    movlhps      %1, %1\n%endif\n%endmacro\n\n%macro VPBROADCASTD 2 ; dst xmm/ymm, src m32/xmm\n%if cpuflag(avx2)\n    vpbroadcastd  %1, %2\n%elif cpuflag(avx) && sizeof%1 >= 32\n    %error vpbroadcastd not possible with ymm on avx1. try vbroadcastss\n%else\n    %ifnum sizeof%2         ; sse2 register\n        pshufd  %1, %2, q0000\n    %else                   ; sse memory\n        movd    %1, %2\n        pshufd  %1, %1, 0\n    %endif\n%endif\n%endmacro\n\n%macro VBROADCASTI128 2 ; dst xmm/ymm, src : 128bits val\n%if mmsize > 16\n    vbroadcasti128 %1, %2\n%else\n    mova           %1, %2\n%endif\n%endmacro\n\n%macro SHUFFLE_MASK_W 8\n    %rep 8\n        %if %1>=0x80\n            db %1, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:23", "text": "pshufd  %1, %2, q0000\n    %else                   ; sse memory\n        movd    %1, %2\n        pshufd  %1, %1, 0\n    %endif\n%endif\n%endmacro\n\n%macro VBROADCASTI128 2 ; dst xmm/ymm, src : 128bits val\n%if mmsize > 16\n    vbroadcasti128 %1, %2\n%else\n    mova           %1, %2\n%endif\n%endmacro\n\n%macro SHUFFLE_MASK_W 8\n    %rep 8\n        %if %1>=0x80\n            db %1, %1\n        %else\n            db %1*2\n            db %1*2+1\n        %endif\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro PMOVSXWD 2; dst, src\n%if cpuflag(sse4)\n    pmovsxwd     %1, %2\n%else\n    %ifnidn %1, %2\n    mova         %1, %2\n    %endif\n    punpcklwd    %1, %1\n    psrad        %1, 16\n%endif\n%endmacro\n\n; Wrapper for non-FMA version of fmaddps\n%macro FMULADD_PS 5\n    %if cpuflag(fma3) || cpuflag(fma4)\n        fmaddps %1, %2, %3, %4\n    %elifidn %1, %4\n        mulps   %5, %2, %3\n        addps   %1, %4, %5\n    %else\n        mulps   %1, %2, %3\n        addps   %1, %4\n    %endif\n%endmacro\n\n%macro LSHIFT 2\n%if mmsize > 8\n    pslldq  %1, %2\n%else\n    psllq   %1, 8*(%2)\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:24", "text": "; Wrapper for non-FMA version of fmaddps\n%macro FMULADD_PS 5\n    %if cpuflag(fma3) || cpuflag(fma4)\n        fmaddps %1, %2, %3, %4\n    %elifidn %1, %4\n        mulps   %5, %2, %3\n        addps   %1, %4, %5\n    %else\n        mulps   %1, %2, %3\n        addps   %1, %4\n    %endif\n%endmacro\n\n%macro LSHIFT 2\n%if mmsize > 8\n    pslldq  %1, %2\n%else\n    psllq   %1, 8*(%2)\n%endif\n%endmacro\n\n%macro RSHIFT 2\n%if mmsize > 8\n    psrldq  %1, %2\n%else\n    psrlq   %1, 8*(%2)\n%endif\n%endmacro\n\n%macro MOVHL 2 ; dst, src\n%ifidn %1, %2\n    punpckhqdq %1, %2\n%elif cpuflag(avx)\n    punpckhqdq %1, %2, %2\n%elif cpuflag(sse4)\n    pshufd     %1, %2, q3232 ; pshufd is slow on some older CPUs, so only use it on more modern ones\n%else\n    movhlps    %1, %2        ; may cause an int/float domain transition and has a dependency on dst\n%endif\n%endmacro\n\n; Horizontal Sum of Packed Single precision floats\n; The resulting sum is in all elements.\n%macro HSUMPS 2 ; dst/src, tmp\n%if cpuflag(avx)\n    %if sizeof%1>=32  ; avx\n        vperm2f128  %2, %1, %1, (0)*16+(1)\n        addps       %1, %2\n    %endif\n    shufps      %2, %1, %1, q1032\n    addps       %1, %2\n    shufps      %2, %1, %1, q0321\n    addps       %1, %2\n%else  ; this form is a bit faster than the short avx-like emulation.\n    movaps      %2, %1\n    shufps      %1, %1, q1032\n    addps       %1, %2\n    movaps      %2, %1\n    shufps      %1, %1, q0321\n    addps       %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:25", "text": "; Horizontal Sum of Packed Single precision floats\n; The resulting sum is in all elements.\n%macro HSUMPS 2 ; dst/src, tmp\n%if cpuflag(avx)\n    %if sizeof%1>=32  ; avx\n        vperm2f128  %2, %1, %1, (0)*16+(1)\n        addps       %1, %2\n    %endif\n    shufps      %2, %1, %1, q1032\n    addps       %1, %2\n    shufps      %2, %1, %1, q0321\n    addps       %1, %2\n%else  ; this form is a bit faster than the short avx-like emulation.\n    movaps      %2, %1\n    shufps      %1, %1, q1032\n    addps       %1, %2\n    movaps      %2, %1\n    shufps      %1, %1, q0321\n    addps       %1, %2\n    ; all %1 members should be equal for as long as float a+b==b+a\n%endif\n%endmacro\n\n; Emulate blendvps if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro BLENDVPS 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    blendvps  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 blendvps uses xmm0 as default 3d operand, you used %3\n    %endif\n    blendvps  %1, %2, %3\n%else\n    xorps  %2, %1\n    andps  %2, %3\n    xorps  %1, %2\n%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3\n    %endif\n    pblendvb  %1, %2, %3\n%else\n    pxor  %2, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:26", "text": "%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3\n    %endif\n    pblendvb  %1, %2, %3\n%else\n    pxor  %2, %1\n    pand  %2, %3\n    pxor  %1, %2\n%endif\n%endmacro\n\n; NASM panics when emitting CodeView debug info for an empty translation unit.\n; GNU binutils `strip` and some other tools such as older MSVC linker also fail\n; on such files. Emit a dummy byte in a section with IMAGE_SCN_LNK_REMOVE flag\n; to work around these issues. Sections like that are dropped by the linker.\n%ifidn __OUTPUT_FORMAT__,win64\n    section .x86util info\n        db 0\n%elifidn __OUTPUT_FORMAT__,win32\n    section .x86util info\n        db 0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libavutil/x86/x86util.asm", "line_start": 1001, "line_end": 1036}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:26", "text": "%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3\n    %endif\n    pblendvb  %1, %2, %3\n%else\n    pxor  %2, %1\n    pand  %2, %3\n    pxor  %1, %2\n%endif\n%endmacro\n\n; NASM panics when emitting CodeView debug info for an empty translation unit.\n; GNU binutils `strip` and some other tools such as older MSVC linker also fail\n; on such files. Emit a dummy byte in a COMDAT section to work around this.\n; The linker will discard it since __x86util_notref is not referenced anywhere.\n%ifidn __OUTPUT_FORMAT__,win64\n    section .text\n    section .text$__x86util_notref comdat=2:__x86util_notref\n        db 0\n%elifidn __OUTPUT_FORMAT__,win32\n    section .text\n    section .text$__x86util_notref comdat=2:__x86util_notref\n        db 0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "e54e1179985145a2e0a5be9ee9000384ee58b7a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e54e1179985145a2e0a5be9ee9000384ee58b7a5/libavutil/x86/x86util.asm", "line_start": 1001, "line_end": 1038}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:26", "text": "%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3\n    %endif\n    pblendvb  %1, %2, %3\n%else\n    pxor  %2, %1\n    pand  %2, %3\n    pxor  %1, %2\n%endif\n%endmacro\n\n; NASM panics when emitting CodeView debug info for an empty translation unit.\n; GNU binutils `strip` and some other tools such as older MSVC linker also fail\n; on such files. Emit a dummy byte in a COMDAT section to work around this.\n; The linker will discard it since __x86util_notref is not referenced anywhere.\n%ifidn __OUTPUT_FORMAT__,win64\n    section .text$1 comdat=2:__x86util_notref\n        db 0\n%elifidn __OUTPUT_FORMAT__,win32\n    section .text$1 comdat=2:__x86util_notref\n        db 0\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "80cd0677158b7ea4394d8e1594c7a1c984184f5b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/80cd0677158b7ea4394d8e1594c7a1c984184f5b/libavutil/x86/x86util.asm", "line_start": 1001, "line_end": 1036}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:26", "text": "%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3\n    %endif\n    pblendvb  %1, %2, %3\n%else\n    pxor  %2, %1\n    pand  %2, %3\n    pxor  %1, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "c3d3f0e697f27a14898e74db4fcffa5b35bcaf94", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3d3f0e697f27a14898e74db4fcffa5b35bcaf94/libavutil/x86/x86util.asm", "line_start": 1001, "line_end": 1024}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:20", "text": "pshuflw    %1, %2, (%3)*0x55\n    punpcklqdq %1, %1\n%elif cpuflag(mmxext)\n    pshufw     %1, %2, (%3)*0x55\n%else\n    %ifnidn %1, %2\n        mova       %1, %2\n    %endif\n    %if %3 & 2\n        punpckhwd  %1, %1\n    %else\n        punpcklwd  %1, %1\n    %endif\n    %if %3 & 1\n        punpckhwd  %1, %1\n    %else\n        punpcklwd  %1, %1\n    %endif\n%endif\n%endmacro\n\n%macro SPLATD 1\n%if mmsize == 8\n    punpckldq  %1, %1\n%elif cpuflag(sse2)\n    pshufd  %1, %1, 0\n%elif cpuflag(sse)\n    shufps  %1, %1, 0\n%endif\n%endmacro\n\n%macro CLIPUB 3 ;(dst, min, max)\n    pmaxub %1, %2\n    pminub %1, %3\n%endmacro\n\n%macro CLIPW 3 ;(dst, min, max)\n    pmaxsw %1, %2\n    pminsw %1, %3\n%endmacro\n\n%macro PMINSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pminsd    %1, %2\n%elif cpuflag(sse2)\n    cvtdq2ps  %1, %1\n    minps     %1, %2\n    cvtps2dq  %1, %1\n%else\n    mova      %3, %2\n    pcmpgtd   %3, %1\n    pxor      %1, %2\n    pand      %1, %3\n    pxor      %1, %2\n%endif\n%endmacro\n\n%macro PMAXSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pmaxsd    %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:21", "text": "%macro PMINSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pminsd    %1, %2\n%elif cpuflag(sse2)\n    cvtdq2ps  %1, %1\n    minps     %1, %2\n    cvtps2dq  %1, %1\n%else\n    mova      %3, %2\n    pcmpgtd   %3, %1\n    pxor      %1, %2\n    pand      %1, %3\n    pxor      %1, %2\n%endif\n%endmacro\n\n%macro PMAXSD 3 ; dst, src, tmp/unused\n%if cpuflag(sse4)\n    pmaxsd    %1, %2\n%else\n    mova      %3, %1\n    pcmpgtd   %3, %2\n    pand      %1, %3\n    pandn     %3, %2\n    por       %1, %3\n%endif\n%endmacro\n\n%macro CLIPD 3-4\n%if cpuflag(sse4);  src/dst, min, max, unused\n    pminsd  %1, %3\n    pmaxsd  %1, %2\n%elif cpuflag(sse2) ; src/dst, min (float), max (float), unused\n    cvtdq2ps  %1, %1\n    minps     %1, %3\n    maxps     %1, %2\n    cvtps2dq  %1, %1\n%else               ; src/dst, min, max, tmp\n    PMINSD    %1, %3, %4\n    PMAXSD    %1, %2, %4\n%endif\n%endmacro\n\n%macro VBROADCASTSS 2 ; dst xmm/ymm, src m32/xmm\n%if cpuflag(avx2)\n    vbroadcastss  %1, %2\n%elif cpuflag(avx)\n    %ifnum sizeof%2         ; avx1 register\n        shufps  xmm%1, xmm%2, xmm%2, q0000\n        %if sizeof%1 >= 32  ; mmsize>=32\n            vinsertf128  %1, %1, xmm%1, 1\n        %endif\n    %else                   ; avx1 memory\n        vbroadcastss  %1, %2\n    %endif\n%else\n    %ifnum sizeof%2         ; sse register\n        shufps  %1, %2, %2, q0000\n    %else                   ; sse memory", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:22", "text": "PMAXSD    %1, %2, %4\n%endif\n%endmacro\n\n%macro VBROADCASTSS 2 ; dst xmm/ymm, src m32/xmm\n%if cpuflag(avx2)\n    vbroadcastss  %1, %2\n%elif cpuflag(avx)\n    %ifnum sizeof%2         ; avx1 register\n        shufps  xmm%1, xmm%2, xmm%2, q0000\n        %if sizeof%1 >= 32  ; mmsize>=32\n            vinsertf128  %1, %1, xmm%1, 1\n        %endif\n    %else                   ; avx1 memory\n        vbroadcastss  %1, %2\n    %endif\n%else\n    %ifnum sizeof%2         ; sse register\n        shufps  %1, %2, %2, q0000\n    %else                   ; sse memory\n        movss   %1, %2\n        shufps  %1, %1, 0\n    %endif\n%endif\n%endmacro\n\n%macro VBROADCASTSD 2 ; dst xmm/ymm, src m64\n%if cpuflag(avx) && mmsize == 32\n    vbroadcastsd %1, %2\n%elif cpuflag(sse3)\n    movddup      %1, %2\n%else ; sse2\n    movsd        %1, %2\n    movlhps      %1, %1\n%endif\n%endmacro\n\n%macro VPBROADCASTD 2 ; dst xmm/ymm, src m32/xmm\n%if cpuflag(avx2)\n    vpbroadcastd  %1, %2\n%elif cpuflag(avx) && sizeof%1 >= 32\n    %error vpbroadcastd not possible with ymm on avx1. try vbroadcastss\n%else\n    %ifnum sizeof%2         ; sse2 register\n        pshufd  %1, %2, q0000\n    %else                   ; sse memory\n        movd    %1, %2\n        pshufd  %1, %1, 0\n    %endif\n%endif\n%endmacro\n\n%macro VBROADCASTI128 2 ; dst xmm/ymm, src : 128bits val\n%if mmsize > 16\n    vbroadcasti128 %1, %2\n%else\n    mova           %1, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:23", "text": "%elif cpuflag(avx) && sizeof%1 >= 32\n    %error vpbroadcastd not possible with ymm on avx1. try vbroadcastss\n%else\n    %ifnum sizeof%2         ; sse2 register\n        pshufd  %1, %2, q0000\n    %else                   ; sse memory\n        movd    %1, %2\n        pshufd  %1, %1, 0\n    %endif\n%endif\n%endmacro\n\n%macro VBROADCASTI128 2 ; dst xmm/ymm, src : 128bits val\n%if mmsize > 16\n    vbroadcasti128 %1, %2\n%else\n    mova           %1, %2\n%endif\n%endmacro\n\n%macro SHUFFLE_MASK_W 8\n    %rep 8\n        %if %1>=0x80\n            db %1, %1\n        %else\n            db %1*2\n            db %1*2+1\n        %endif\n        %rotate 1\n    %endrep\n%endmacro\n\n%macro PMOVSXWD 2; dst, src\n%if cpuflag(sse4)\n    pmovsxwd     %1, %2\n%else\n    %ifnidn %1, %2\n    mova         %1, %2\n    %endif\n    punpcklwd    %1, %1\n    psrad        %1, 16\n%endif\n%endmacro\n\n; Wrapper for non-FMA version of fmaddps\n%macro FMULADD_PS 5\n    %if cpuflag(fma3) || cpuflag(fma4)\n        fmaddps %1, %2, %3, %4\n    %elifidn %1, %4\n        mulps   %5, %2, %3\n        addps   %1, %4, %5\n    %else\n        mulps   %1, %2, %3\n        addps   %1, %4\n    %endif\n%endmacro\n\n%macro LSHIFT 2\n%if mmsize > 8\n    pslldq  %1, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:24", "text": "psrad        %1, 16\n%endif\n%endmacro\n\n; Wrapper for non-FMA version of fmaddps\n%macro FMULADD_PS 5\n    %if cpuflag(fma3) || cpuflag(fma4)\n        fmaddps %1, %2, %3, %4\n    %elifidn %1, %4\n        mulps   %5, %2, %3\n        addps   %1, %4, %5\n    %else\n        mulps   %1, %2, %3\n        addps   %1, %4\n    %endif\n%endmacro\n\n%macro LSHIFT 2\n%if mmsize > 8\n    pslldq  %1, %2\n%else\n    psllq   %1, 8*(%2)\n%endif\n%endmacro\n\n%macro RSHIFT 2\n%if mmsize > 8\n    psrldq  %1, %2\n%else\n    psrlq   %1, 8*(%2)\n%endif\n%endmacro\n\n%macro MOVHL 2 ; dst, src\n%ifidn %1, %2\n    punpckhqdq %1, %2\n%elif cpuflag(avx)\n    punpckhqdq %1, %2, %2\n%elif cpuflag(sse4)\n    pshufd     %1, %2, q3232 ; pshufd is slow on some older CPUs, so only use it on more modern ones\n%else\n    movhlps    %1, %2        ; may cause an int/float domain transition and has a dependency on dst\n%endif\n%endmacro\n\n; Horizontal Sum of Packed Single precision floats\n; The resulting sum is in all elements.\n%macro HSUMPS 2 ; dst/src, tmp\n%if cpuflag(avx)\n    %if sizeof%1>=32  ; avx\n        vperm2f128  %2, %1, %1, (0)*16+(1)\n        addps       %1, %2\n    %endif\n    shufps      %2, %1, %1, q1032\n    addps       %1, %2\n    shufps      %2, %1, %1, q0321\n    addps       %1, %2\n%else  ; this form is a bit faster than the short avx-like emulation.\n    movaps      %2, %1\n    shufps      %1, %1, q1032", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:25", "text": "%else\n    movhlps    %1, %2        ; may cause an int/float domain transition and has a dependency on dst\n%endif\n%endmacro\n\n; Horizontal Sum of Packed Single precision floats\n; The resulting sum is in all elements.\n%macro HSUMPS 2 ; dst/src, tmp\n%if cpuflag(avx)\n    %if sizeof%1>=32  ; avx\n        vperm2f128  %2, %1, %1, (0)*16+(1)\n        addps       %1, %2\n    %endif\n    shufps      %2, %1, %1, q1032\n    addps       %1, %2\n    shufps      %2, %1, %1, q0321\n    addps       %1, %2\n%else  ; this form is a bit faster than the short avx-like emulation.\n    movaps      %2, %1\n    shufps      %1, %1, q1032\n    addps       %1, %2\n    movaps      %2, %1\n    shufps      %1, %1, q0321\n    addps       %1, %2\n    ; all %1 members should be equal for as long as float a+b==b+a\n%endif\n%endmacro\n\n; Emulate blendvps if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro BLENDVPS 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    blendvps  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 blendvps uses xmm0 as default 3d operand, you used %3\n    %endif\n    blendvps  %1, %2, %3\n%else\n    xorps  %2, %1\n    andps  %2, %3\n    xorps  %1, %2\n%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libavutil/x86/x86util.asm:26", "text": "%else\n    xorps  %2, %1\n    andps  %2, %3\n    xorps  %1, %2\n%endif\n%endmacro\n\n; Emulate pblendvb if not available\n;\n; src_b is destroyed when using emulation with logical operands\n; SSE41 blendv instruction is hard coded to use xmm0 as mask\n%macro PBLENDVB 3 ; dst/src_a, src_b, mask\n%if cpuflag(avx)\n    %if cpuflag(avx) && notcpuflag(avx2) && sizeof%1 >= 32\n        %error pblendb not possible with ymm on avx1, try blendvps.\n    %endif\n    pblendvb  %1, %1, %2, %3\n%elif cpuflag(sse4)\n    %ifnidn %3,xmm0\n        %error sse41 pblendvd uses xmm0 as default 3d operand, you used %3\n    %endif\n    pblendvb  %1, %2, %3\n%else\n    pxor  %2, %1\n    pand  %2, %3\n    pxor  %1, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libavutil/x86/x86util.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libavutil/x86/x86util.asm", "line_start": 1001, "line_end": 1028}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n * Copyright (c) 2014 Janne Grunau <janne-libav@jannau.net>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/aarch64/asm.S\"\n\nfunction swri_oldapi_conv_flt_to_s16_neon, export=1\noldapi_conv_flt_to_s16_neon:\n        subs            x2,  x2,  #8\n        ld1             {v0.4s}, [x1],  #16\n        fcvtzs          v4.4s,  v0.4s,  #31\n        ld1             {v1.4s}, [x1],  #16\n        fcvtzs          v5.4s,  v1.4s,  #31\n        b.eq            3f\n        ands            x12, x2,  #~15\n        b.eq            2f\n1:      subs            x12, x12, #16\n        sqrshrn         v4.4h,  v4.4s,  #16\n        ld1             {v2.4s}, [x1],  #16\n        fcvtzs          v6.4s,  v2.4s,  #31\n        sqrshrn2        v4.8h,  v5.4s,  #16\n        ld1             {v3.4s}, [x1],  #16\n        fcvtzs          v7.4s,  v3.4s,  #31\n        sqrshrn         v6.4h,  v6.4s,  #16\n        st1             {v4.8h}, [x0],  #16\n        sqrshrn2        v6.8h,  v7.4s,  #16\n        ld1             {v0.4s}, [x1],  #16\n        fcvtzs          v4.4s,  v0.4s,  #31\n        ld1             {v1.4s}, [x1],  #16\n        fcvtzs          v5.4s,  v1.4s,  #31\n        st1             {v6.8h}, [x0],  #16\n        b.ne            1b\n        ands            x2,  x2,  #15\n        b.eq            3f\n2:      ld1             {v2.4s}, [x1],  #16\n        sqrshrn         v4.4h,  v4.4s,  #16\n        fcvtzs          v6.4s,  v2.4s,  #31\n        ld1             {v3.4s}, [x1],  #16\n        sqrshrn2        v4.8h,  v5.4s,  #16\n        fcvtzs          v7.4s,  v3.4s,  #31\n        sqrshrn         v6.4h,  v6.4s,  #16\n        st1             {v4.8h}, [x0],  #16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:2", "text": "fcvtzs          v7.4s,  v3.4s,  #31\n        sqrshrn         v6.4h,  v6.4s,  #16\n        st1             {v4.8h}, [x0],  #16\n        sqrshrn2        v6.8h,  v7.4s,  #16\n        ld1             {v0.4s}, [x1],  #16\n        fcvtzs          v4.4s,  v0.4s,  #31\n        ld1             {v1.4s}, [x1],  #16\n        fcvtzs          v5.4s,  v1.4s,  #31\n        st1             {v6.8h}, [x0],  #16\n        b.ne            1b\n        ands            x2,  x2,  #15\n        b.eq            3f\n2:      ld1             {v2.4s}, [x1],  #16\n        sqrshrn         v4.4h,  v4.4s,  #16\n        fcvtzs          v6.4s,  v2.4s,  #31\n        ld1             {v3.4s}, [x1],  #16\n        sqrshrn2        v4.8h,  v5.4s,  #16\n        fcvtzs          v7.4s,  v3.4s,  #31\n        sqrshrn         v6.4h,  v6.4s,  #16\n        st1             {v4.8h}, [x0],  #16\n        sqrshrn2        v6.8h,  v7.4s,  #16\n        st1             {v6.8h}, [x0]\n        ret\n3:      sqrshrn         v4.4h,  v4.4s,  #16\n        sqrshrn2        v4.8h,  v5.4s,  #16\n        st1             {v4.8h}, [x0]\n        ret\nendfunc\n\nfunction swri_oldapi_conv_fltp_to_s16_2ch_neon, export=1\noldapi_conv_fltp_to_s16_2ch_neon:\n        ldp             x4,  x5,  [x1]\n        subs            x2,  x2,  #8\n        ld1             {v0.4s},  [x4], #16\n        fcvtzs          v4.4s,  v0.4s,  #31\n        ld1             {v1.4s},  [x4], #16\n        fcvtzs          v5.4s,  v1.4s,  #31\n        ld1             {v2.4s},  [x5], #16\n        fcvtzs          v6.4s,  v2.4s,  #31\n        ld1             {v3.4s},  [x5], #16\n        fcvtzs          v7.4s,  v3.4s,  #31\n        b.eq            3f\n        ands            x12, x2,  #~15\n        b.eq            2f\n1:      subs            x12, x12, #16\n        ld1             {v16.4s}, [x4], #16\n        fcvtzs          v20.4s, v16.4s, #31\n        sri             v6.4s,  v4.4s,  #16\n        ld1             {v17.4s}, [x4], #16\n        fcvtzs          v21.4s, v17.4s, #31\n        ld1             {v18.4s}, [x5], #16\n        fcvtzs          v22.4s, v18.4s, #31\n        ld1             {v19.4s}, [x5], #16\n        sri             v7.4s,  v5.4s,  #16\n        st1             {v6.4s},  [x0], #16\n        fcvtzs          v23.4s, v19.4s, #31\n        st1             {v7.4s},  [x0], #16\n        sri             v22.4s, v20.4s, #16\n        ld1             {v0.4s},  [x4], #16\n        sri             v23.4s, v21.4s, #16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:3", "text": "fcvtzs          v7.4s,  v3.4s,  #31\n        b.eq            3f\n        ands            x12, x2,  #~15\n        b.eq            2f\n1:      subs            x12, x12, #16\n        ld1             {v16.4s}, [x4], #16\n        fcvtzs          v20.4s, v16.4s, #31\n        sri             v6.4s,  v4.4s,  #16\n        ld1             {v17.4s}, [x4], #16\n        fcvtzs          v21.4s, v17.4s, #31\n        ld1             {v18.4s}, [x5], #16\n        fcvtzs          v22.4s, v18.4s, #31\n        ld1             {v19.4s}, [x5], #16\n        sri             v7.4s,  v5.4s,  #16\n        st1             {v6.4s},  [x0], #16\n        fcvtzs          v23.4s, v19.4s, #31\n        st1             {v7.4s},  [x0], #16\n        sri             v22.4s, v20.4s, #16\n        ld1             {v0.4s},  [x4], #16\n        sri             v23.4s, v21.4s, #16\n        st1             {v22.4s}, [x0], #16\n        fcvtzs          v4.4s,  v0.4s,  #31\n        ld1             {v1.4s},  [x4], #16\n        fcvtzs          v5.4s,  v1.4s,  #31\n        ld1             {v2.4s},  [x5], #16\n        fcvtzs          v6.4s,  v2.4s,  #31\n        ld1             {v3.4s},  [x5], #16\n        fcvtzs          v7.4s,  v3.4s,  #31\n        st1             {v23.4s}, [x0], #16\n        b.ne            1b\n        ands            x2,  x2,  #15\n        b.eq            3f\n2:      sri             v6.4s,  v4.4s,  #16\n        ld1             {v0.4s},  [x4], #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},  [x4], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n        ld1             {v2.4s},  [x5], #16\n        fcvtzs          v2.4s,  v2.4s,  #31\n        sri             v7.4s,  v5.4s,  #16\n        ld1             {v3.4s},  [x5], #16\n        fcvtzs          v3.4s,  v3.4s,  #31\n        sri             v2.4s,  v0.4s,  #16\n        st1             {v6.4s,v7.4s},  [x0], #32\n        sri             v3.4s,  v1.4s,  #16\n        st1             {v2.4s,v3.4s},  [x0], #32\n        ret\n3:      sri             v6.4s,  v4.4s,  #16\n        sri             v7.4s,  v5.4s,  #16\n        st1             {v6.4s,v7.4s},  [x0]\n        ret\nendfunc\n\nfunction swri_oldapi_conv_fltp_to_s16_nch_neon, export=1\n        cmp             w3,  #2\n        b.eq            oldapi_conv_fltp_to_s16_2ch_neon\n        b.gt            1f\n        ldr             x1,  [x1]\n        b               oldapi_conv_flt_to_s16_neon\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:4", "text": "ld1             {v3.4s},  [x5], #16\n        fcvtzs          v3.4s,  v3.4s,  #31\n        sri             v2.4s,  v0.4s,  #16\n        st1             {v6.4s,v7.4s},  [x0], #32\n        sri             v3.4s,  v1.4s,  #16\n        st1             {v2.4s,v3.4s},  [x0], #32\n        ret\n3:      sri             v6.4s,  v4.4s,  #16\n        sri             v7.4s,  v5.4s,  #16\n        st1             {v6.4s,v7.4s},  [x0]\n        ret\nendfunc\n\nfunction swri_oldapi_conv_fltp_to_s16_nch_neon, export=1\n        cmp             w3,  #2\n        b.eq            oldapi_conv_fltp_to_s16_2ch_neon\n        b.gt            1f\n        ldr             x1,  [x1]\n        b               oldapi_conv_flt_to_s16_neon\n1:\n        cmp             w3,  #4\n        lsl             x12, x3,  #1\n        b.lt            4f\n\n5:      // 4 channels\n        ldp             x4, x5, [x1], #16\n        ldp             x6, x7, [x1], #16\n        mov             w9,  w2\n        mov             x8,  x0\n        ld1             {v4.4s},        [x4], #16\n        fcvtzs          v4.4s,  v4.4s,  #31\n        ld1             {v5.4s},        [x5], #16\n        fcvtzs          v5.4s,  v5.4s,  #31\n        ld1             {v6.4s},        [x6], #16\n        fcvtzs          v6.4s, v6.4s, #31\n        ld1             {v7.4s},        [x7], #16\n        fcvtzs          v7.4s, v7.4s, #31\n6:\n        subs            w9,  w9,  #8\n        ld1             {v0.4s},        [x4], #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        sri             v5.4s,  v4.4s,  #16\n        ld1             {v1.4s},        [x5], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n        sri             v7.4s,  v6.4s,  #16\n        ld1             {v2.4s},        [x6], #16\n        fcvtzs          v2.4s,  v2.4s,  #31\n        zip1            v16.4s, v5.4s,  v7.4s\n        ld1             {v3.4s},        [x7], #16\n        fcvtzs          v3.4s,  v3.4s,  #31\n        zip2            v17.4s, v5.4s,  v7.4s\n        st1             {v16.d}[0],     [x8], x12\n        sri             v1.4s,  v0.4s,  #16\n        st1             {v16.d}[1],     [x8], x12\n        sri             v3.4s,  v2.4s,  #16\n        st1             {v17.d}[0],     [x8], x12\n        zip1            v18.4s, v1.4s,  v3.4s\n        st1             {v17.d}[1],     [x8], x12\n        zip2            v19.4s, v1.4s,  v3.4s\n        b.eq            7f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:5", "text": "fcvtzs          v0.4s,  v0.4s,  #31\n        sri             v5.4s,  v4.4s,  #16\n        ld1             {v1.4s},        [x5], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n        sri             v7.4s,  v6.4s,  #16\n        ld1             {v2.4s},        [x6], #16\n        fcvtzs          v2.4s,  v2.4s,  #31\n        zip1            v16.4s, v5.4s,  v7.4s\n        ld1             {v3.4s},        [x7], #16\n        fcvtzs          v3.4s,  v3.4s,  #31\n        zip2            v17.4s, v5.4s,  v7.4s\n        st1             {v16.d}[0],     [x8], x12\n        sri             v1.4s,  v0.4s,  #16\n        st1             {v16.d}[1],     [x8], x12\n        sri             v3.4s,  v2.4s,  #16\n        st1             {v17.d}[0],     [x8], x12\n        zip1            v18.4s, v1.4s,  v3.4s\n        st1             {v17.d}[1],     [x8], x12\n        zip2            v19.4s, v1.4s,  v3.4s\n        b.eq            7f\n        ld1             {v4.4s},        [x4], #16\n        fcvtzs          v4.4s,  v4.4s,  #31\n        st1             {v18.d}[0],     [x8], x12\n        ld1             {v5.4s},        [x5], #16\n        fcvtzs          v5.4s,  v5.4s,  #31\n        st1             {v18.d}[1],     [x8], x12\n        ld1             {v6.4s},    [x6], #16\n        fcvtzs          v6.4s, v6.4s, #31\n        st1             {v19.d}[0],     [x8], x12\n        ld1             {v7.4s},    [x7], #16\n        fcvtzs          v7.4s, v7.4s, #31\n        st1             {v19.d}[1],     [x8], x12\n        b               6b\n7:\n        st1             {v18.d}[0],     [x8], x12\n        st1             {v18.d}[1],     [x8], x12\n        st1             {v19.d}[0],     [x8], x12\n        st1             {v19.d}[1],     [x8], x12\n        subs            w3,  w3,  #4\n        b.eq            end\n        cmp             w3,  #4\n        add             x0,  x0,  #8\n        b.ge            5b\n\n4:      // 2 channels\n        cmp             w3,  #2\n        b.lt            4f\n        ldp             x4,  x5,  [x1], #16\n        mov             w9,  w2\n        mov             x8,  x0\n        tst             w9,  #8\n        ld1             {v4.4s},        [x4], #16\n        fcvtzs          v4.4s,  v4.4s,  #31\n        ld1             {v5.4s},        [x5], #16\n        fcvtzs          v5.4s,  v5.4s,  #31\n        ld1             {v6.4s},        [x4], #16\n        fcvtzs          v6.4s,  v6.4s,  #31\n        ld1             {v7.4s},        [x5], #16\n        fcvtzs          v7.4s,  v7.4s,  #31\n        b.eq            6f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:6", "text": "cmp             w3,  #4\n        add             x0,  x0,  #8\n        b.ge            5b\n\n4:      // 2 channels\n        cmp             w3,  #2\n        b.lt            4f\n        ldp             x4,  x5,  [x1], #16\n        mov             w9,  w2\n        mov             x8,  x0\n        tst             w9,  #8\n        ld1             {v4.4s},        [x4], #16\n        fcvtzs          v4.4s,  v4.4s,  #31\n        ld1             {v5.4s},        [x5], #16\n        fcvtzs          v5.4s,  v5.4s,  #31\n        ld1             {v6.4s},        [x4], #16\n        fcvtzs          v6.4s,  v6.4s,  #31\n        ld1             {v7.4s},        [x5], #16\n        fcvtzs          v7.4s,  v7.4s,  #31\n        b.eq            6f\n        subs            w9,  w9,  #8\n        b.eq            7f\n        sri             v5.4s,  v4.4s,  #16\n        ld1             {v4.4s},        [x4], #16\n        fcvtzs          v4.4s,  v4.4s,  #31\n        st1             {v5.s}[0],      [x8], x12\n        sri             v7.4s,  v6.4s,  #16\n        st1             {v5.s}[1],      [x8], x12\n        ld1             {v6.4s},        [x4], #16\n        fcvtzs          v6.4s,  v6.4s, #31\n        st1             {v5.s}[2],      [x8], x12\n        st1             {v5.s}[3],      [x8], x12\n        st1             {v7.s}[0],      [x8], x12\n        st1             {v7.s}[1],      [x8], x12\n        ld1             {v5.4s},        [x5], #16\n        fcvtzs          v5.4s,  v5.4s,  #31\n        st1             {v7.s}[2],      [x8], x12\n        st1             {v7.s}[3],      [x8], x12\n        ld1             {v7.4s},        [x5], #16\n        fcvtzs          v7.4s,  v7.4s,  #31\n6:\n        subs            w9,  w9,  #16\n        ld1             {v0.4s},        [x4], #16\n        sri             v5.4s,  v4.4s,  #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},        [x5], #16\n        sri             v7.4s,  v6.4s,  #16\n        st1             {v5.s}[0],      [x8], x12\n        st1             {v5.s}[1],      [x8], x12\n        fcvtzs          v1.4s,  v1.4s,  #31\n        st1             {v5.s}[2],      [x8], x12\n        st1             {v5.s}[3],      [x8], x12\n        ld1             {v2.4s},        [x4], #16\n        st1             {v7.s}[0],      [x8], x12\n        fcvtzs          v2.4s,  v2.4s,  #31\n        st1             {v7.s}[1],      [x8], x12\n        ld1             {v3.4s},        [x5], #16\n        st1             {v7.s}[2],      [x8], x12\n        fcvtzs          v3.4s,  v3.4s,  #31\n        st1             {v7.s}[3],      [x8], x12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:7", "text": "6:\n        subs            w9,  w9,  #16\n        ld1             {v0.4s},        [x4], #16\n        sri             v5.4s,  v4.4s,  #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},        [x5], #16\n        sri             v7.4s,  v6.4s,  #16\n        st1             {v5.s}[0],      [x8], x12\n        st1             {v5.s}[1],      [x8], x12\n        fcvtzs          v1.4s,  v1.4s,  #31\n        st1             {v5.s}[2],      [x8], x12\n        st1             {v5.s}[3],      [x8], x12\n        ld1             {v2.4s},        [x4], #16\n        st1             {v7.s}[0],      [x8], x12\n        fcvtzs          v2.4s,  v2.4s,  #31\n        st1             {v7.s}[1],      [x8], x12\n        ld1             {v3.4s},        [x5], #16\n        st1             {v7.s}[2],      [x8], x12\n        fcvtzs          v3.4s,  v3.4s,  #31\n        st1             {v7.s}[3],      [x8], x12\n        sri             v1.4s,  v0.4s,  #16\n        sri             v3.4s,  v2.4s,  #16\n        b.eq            6f\n        ld1             {v4.4s},        [x4], #16\n        st1             {v1.s}[0],      [x8], x12\n        fcvtzs          v4.4s,  v4.4s,  #31\n        st1             {v1.s}[1],      [x8], x12\n        ld1             {v5.4s},        [x5], #16\n        st1             {v1.s}[2],      [x8], x12\n        fcvtzs          v5.4s,  v5.4s,  #31\n        st1             {v1.s}[3],      [x8], x12\n        ld1             {v6.4s},        [x4], #16\n        st1             {v3.s}[0],      [x8], x12\n        fcvtzs          v6.4s,  v6.4s,  #31\n        st1             {v3.s}[1],      [x8], x12\n        ld1             {v7.4s},        [x5], #16\n        st1             {v3.s}[2],      [x8], x12\n        fcvtzs          v7.4s,  v7.4s,  #31\n        st1             {v3.s}[3],      [x8], x12\n        b.gt            6b\n6:\n        st1             {v1.s}[0],      [x8], x12\n        st1             {v1.s}[1],      [x8], x12\n        st1             {v1.s}[2],      [x8], x12\n        st1             {v1.s}[3],      [x8], x12\n        st1             {v3.s}[0],      [x8], x12\n        st1             {v3.s}[1],      [x8], x12\n        st1             {v3.s}[2],      [x8], x12\n        st1             {v3.s}[3],      [x8], x12\n        b               8f\n7:\n        sri             v5.4s,  v4.4s,  #16\n        sri             v7.4s,  v6.4s,  #16\n        st1             {v5.s}[0],      [x8], x12\n        st1             {v5.s}[1],      [x8], x12\n        st1             {v5.s}[2],      [x8], x12\n        st1             {v5.s}[3],      [x8], x12\n        st1             {v7.s}[0],      [x8], x12\n        st1             {v7.s}[1],      [x8], x12\n        st1             {v7.s}[2],      [x8], x12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:8", "text": "6:\n        st1             {v1.s}[0],      [x8], x12\n        st1             {v1.s}[1],      [x8], x12\n        st1             {v1.s}[2],      [x8], x12\n        st1             {v1.s}[3],      [x8], x12\n        st1             {v3.s}[0],      [x8], x12\n        st1             {v3.s}[1],      [x8], x12\n        st1             {v3.s}[2],      [x8], x12\n        st1             {v3.s}[3],      [x8], x12\n        b               8f\n7:\n        sri             v5.4s,  v4.4s,  #16\n        sri             v7.4s,  v6.4s,  #16\n        st1             {v5.s}[0],      [x8], x12\n        st1             {v5.s}[1],      [x8], x12\n        st1             {v5.s}[2],      [x8], x12\n        st1             {v5.s}[3],      [x8], x12\n        st1             {v7.s}[0],      [x8], x12\n        st1             {v7.s}[1],      [x8], x12\n        st1             {v7.s}[2],      [x8], x12\n        st1             {v7.s}[3],      [x8], x12\n8:\n        subs            w3,  w3,  #2\n        add             x0,  x0,  #4\n        b.eq            end\n\n4:      // 1 channel\n        ldr             x4,  [x1]\n        tst             w2,  #8\n        mov             w9,  w2\n        mov             x5,  x0\n        ld1             {v0.4s},        [x4], #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},        [x4], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n        b.ne            8f\n6:\n        subs            w9,  w9,  #16\n        ld1             {v2.4s},        [x4], #16\n        fcvtzs          v2.4s,  v2.4s,  #31\n        ld1             {v3.4s},        [x4], #16\n        fcvtzs          v3.4s,  v3.4s,  #31\n        st1             {v0.h}[1],      [x5], x12\n        st1             {v0.h}[3],      [x5], x12\n        st1             {v0.h}[5],      [x5], x12\n        st1             {v0.h}[7],      [x5], x12\n        st1             {v1.h}[1],      [x5], x12\n        st1             {v1.h}[3],      [x5], x12\n        st1             {v1.h}[5],      [x5], x12\n        st1             {v1.h}[7],      [x5], x12\n        b.eq            7f\n        ld1             {v0.4s},        [x4], #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},        [x4], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n7:\n        st1             {v2.h}[1],      [x5], x12\n        st1             {v2.h}[3],      [x5], x12\n        st1             {v2.h}[5],      [x5], x12\n        st1             {v2.h}[7],      [x5], x12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/audio_convert_neon.S:9", "text": "ld1             {v3.4s},        [x4], #16\n        fcvtzs          v3.4s,  v3.4s,  #31\n        st1             {v0.h}[1],      [x5], x12\n        st1             {v0.h}[3],      [x5], x12\n        st1             {v0.h}[5],      [x5], x12\n        st1             {v0.h}[7],      [x5], x12\n        st1             {v1.h}[1],      [x5], x12\n        st1             {v1.h}[3],      [x5], x12\n        st1             {v1.h}[5],      [x5], x12\n        st1             {v1.h}[7],      [x5], x12\n        b.eq            7f\n        ld1             {v0.4s},        [x4], #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},        [x4], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n7:\n        st1             {v2.h}[1],      [x5], x12\n        st1             {v2.h}[3],      [x5], x12\n        st1             {v2.h}[5],      [x5], x12\n        st1             {v2.h}[7],      [x5], x12\n        st1             {v3.h}[1],      [x5], x12\n        st1             {v3.h}[3],      [x5], x12\n        st1             {v3.h}[5],      [x5], x12\n        st1             {v3.h}[7],      [x5], x12\n        b.gt            6b\n        ret\n8:\n        subs            w9,  w9,  #8\n        st1             {v0.h}[1],      [x5], x12\n        st1             {v0.h}[3],      [x5], x12\n        st1             {v0.h}[5],      [x5], x12\n        st1             {v0.h}[7],      [x5], x12\n        st1             {v1.h}[1],      [x5], x12\n        st1             {v1.h}[3],      [x5], x12\n        st1             {v1.h}[5],      [x5], x12\n        st1             {v1.h}[7],      [x5], x12\n        b.eq            end\n        ld1             {v0.4s},        [x4], #16\n        fcvtzs          v0.4s,  v0.4s,  #31\n        ld1             {v1.4s},        [x4], #16\n        fcvtzs          v1.4s,  v1.4s,  #31\n        b               6b\nend:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/audio_convert_neon.S", "line_start": 321, "line_end": 365}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/resample.S:1", "text": "/*\n * Copyright (c) 2017 Matthieu Bouron <matthieu.bouron gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_resample_common_apply_filter_x4_float_neon, export=1\n        movi            v0.4s, #0                                      // accumulator\n1:      ld1             {v1.4s}, [x1], #16                             // src[0..3]\n        ld1             {v2.4s}, [x2], #16                             // filter[0..3]\n        fmla            v0.4s, v1.4s, v2.4s                            // accumulator += src[0..3] * filter[0..3]\n        subs            w3, w3, #4                                     // filter_length -= 4\n        b.gt            1b                                             // loop until filter_length\n        faddp           v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        faddp           v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        st1             {v0.s}[0], [x0], #4                            // write accumulator\n        ret\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_float_neon, export=1\n        movi            v0.4s, #0                                      // accumulator\n1:      ld1             {v1.4s}, [x1], #16                             // src[0..3]\n        ld1             {v2.4s}, [x2], #16                             // filter[0..3]\n        ld1             {v3.4s}, [x1], #16                             // src[4..7]\n        ld1             {v4.4s}, [x2], #16                             // filter[4..7]\n        fmla            v0.4s, v1.4s, v2.4s                            // accumulator += src[0..3] * filter[0..3]\n        fmla            v0.4s, v3.4s, v4.4s                            // accumulator += src[4..7] * filter[4..7]\n        subs            w3, w3, #8                                     // filter_length -= 8\n        b.gt            1b                                             // loop until filter_length\n        faddp           v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        faddp           v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        st1             {v0.s}[0], [x0], #4                            // write accumulator\n        ret\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n        movi            v0.4s, #0                                      // accumulator\n1:      ld1             {v1.4h}, [x1], #8                              // src[0..3]\n        ld1             {v2.4h}, [x2], #8                              // filter[0..3]\n        smlal           v0.4s, v1.4h, v2.4h                            // accumulator += src[0..3] * filter[0..3]\n        subs            w3, w3, #4                                     // filter_length -= 4\n        b.gt            1b                                             // loop until filter_length\n        addp            v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        addp            v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/resample.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/resample.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/aarch64/resample.S:2", "text": "ld1             {v4.4s}, [x2], #16                             // filter[4..7]\n        fmla            v0.4s, v1.4s, v2.4s                            // accumulator += src[0..3] * filter[0..3]\n        fmla            v0.4s, v3.4s, v4.4s                            // accumulator += src[4..7] * filter[4..7]\n        subs            w3, w3, #8                                     // filter_length -= 8\n        b.gt            1b                                             // loop until filter_length\n        faddp           v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        faddp           v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        st1             {v0.s}[0], [x0], #4                            // write accumulator\n        ret\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n        movi            v0.4s, #0                                      // accumulator\n1:      ld1             {v1.4h}, [x1], #8                              // src[0..3]\n        ld1             {v2.4h}, [x2], #8                              // filter[0..3]\n        smlal           v0.4s, v1.4h, v2.4h                            // accumulator += src[0..3] * filter[0..3]\n        subs            w3, w3, #4                                     // filter_length -= 4\n        b.gt            1b                                             // loop until filter_length\n        addp            v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        addp            v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        st1             {v0.s}[0], [x0], #4                            // write accumulator\n        ret\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_s16_neon, export=1\n        movi            v0.4s, #0                                      // accumulator\n1:      ld1             {v1.8h}, [x1], #16                             // src[0..7]\n        ld1             {v2.8h}, [x2], #16                             // filter[0..7]\n        smlal           v0.4s, v1.4h, v2.4h                            // accumulator += src[0..3] * filter[0..3]\n        smlal2          v0.4s, v1.8h, v2.8h                            // accumulator += src[4..7] * filter[4..7]\n        subs            w3, w3, #8                                     // filter_length -= 8\n        b.gt            1b                                             // loop until filter_length\n        addp            v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        addp            v0.4s, v0.4s, v0.4s                            // pair adding of the 4x32-bit accumulated values\n        st1             {v0.s}[0], [x0], #4                            // write accumulator\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/aarch64/resample.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/aarch64/resample.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:1", "text": "/*\n * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>\n *\n * This file is part of libswresample.\n *\n * libswresample is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * libswresample is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with libswresample; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#include \"libavutil/arm/asm.S\"\n\nfunction swri_oldapi_conv_flt_to_s16_neon, export=1\n.L_swri_oldapi_conv_flt_to_s16_neon:\n        subs            r2,  r2,  #8\n        vld1.32         {q0},     [r1,:128]!\n        vcvt.s32.f32    q8,  q0,  #31\n        vld1.32         {q1},     [r1,:128]!\n        vcvt.s32.f32    q9,  q1,  #31\n        beq             3f\n        bics            r12, r2,  #15\n        beq             2f\n1:      subs            r12, r12, #16\n        vqrshrn.s32     d4,  q8,  #16\n        vld1.32         {q0},     [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vqrshrn.s32     d5,  q9,  #16\n        vld1.32         {q1},     [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vqrshrn.s32     d6,  q0,  #16\n        vst1.16         {q2},     [r0,:128]!\n        vqrshrn.s32     d7,  q1,  #16\n        vld1.32         {q8},     [r1,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vld1.32         {q9},     [r1,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vst1.16         {q3},     [r0,:128]!\n        bne             1b\n        ands            r2,  r2,  #15\n        beq             3f\n2:      vld1.32         {q0},     [r1,:128]!\n        vqrshrn.s32     d4,  q8,  #16\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r1,:128]!\n        vqrshrn.s32     d5,  q9,  #16\n        vcvt.s32.f32    q1,  q1,  #31\n        vqrshrn.s32     d6,  q0,  #16\n        vst1.16         {q2},     [r0,:128]!\n        vqrshrn.s32     d7,  q1,  #16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:2", "text": "vqrshrn.s32     d6,  q0,  #16\n        vst1.16         {q2},     [r0,:128]!\n        vqrshrn.s32     d7,  q1,  #16\n        vld1.32         {q8},     [r1,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vld1.32         {q9},     [r1,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vst1.16         {q3},     [r0,:128]!\n        bne             1b\n        ands            r2,  r2,  #15\n        beq             3f\n2:      vld1.32         {q0},     [r1,:128]!\n        vqrshrn.s32     d4,  q8,  #16\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r1,:128]!\n        vqrshrn.s32     d5,  q9,  #16\n        vcvt.s32.f32    q1,  q1,  #31\n        vqrshrn.s32     d6,  q0,  #16\n        vst1.16         {q2},     [r0,:128]!\n        vqrshrn.s32     d7,  q1,  #16\n        vst1.16         {q3},     [r0,:128]!\n        bx              lr\n3:      vqrshrn.s32     d4,  q8,  #16\n        vqrshrn.s32     d5,  q9,  #16\n        vst1.16         {q2},     [r0,:128]!\n        bx              lr\nendfunc\n\nfunction swri_oldapi_conv_fltp_to_s16_2ch_neon, export=1\n.L_swri_oldapi_conv_fltp_to_s16_2ch_neon:\n        ldm             r1,  {r1, r3}\n        subs            r2,  r2,  #8\n        vld1.32         {q0},     [r1,:128]!\n        vcvt.s32.f32    q8,  q0,  #31\n        vld1.32         {q1},     [r1,:128]!\n        vcvt.s32.f32    q9,  q1,  #31\n        vld1.32         {q10},    [r3,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vld1.32         {q11},    [r3,:128]!\n        vcvt.s32.f32    q11, q11, #31\n        beq             3f\n        bics            r12, r2,  #15\n        beq             2f\n1:      subs            r12, r12, #16\n        vld1.32         {q0},     [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vsri.32         q10, q8,  #16\n        vld1.32         {q1},     [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vld1.32         {q12},    [r3,:128]!\n        vcvt.s32.f32    q12, q12, #31\n        vld1.32         {q13},    [r3,:128]!\n        vsri.32         q11, q9,  #16\n        vst1.16         {q10},    [r0,:128]!\n        vcvt.s32.f32    q13, q13, #31\n        vst1.16         {q11},    [r0,:128]!\n        vsri.32         q12, q0,  #16\n        vld1.32         {q8},     [r1,:128]!\n        vsri.32         q13, q1,  #16\n        vst1.16         {q12},    [r0,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:3", "text": "beq             3f\n        bics            r12, r2,  #15\n        beq             2f\n1:      subs            r12, r12, #16\n        vld1.32         {q0},     [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vsri.32         q10, q8,  #16\n        vld1.32         {q1},     [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vld1.32         {q12},    [r3,:128]!\n        vcvt.s32.f32    q12, q12, #31\n        vld1.32         {q13},    [r3,:128]!\n        vsri.32         q11, q9,  #16\n        vst1.16         {q10},    [r0,:128]!\n        vcvt.s32.f32    q13, q13, #31\n        vst1.16         {q11},    [r0,:128]!\n        vsri.32         q12, q0,  #16\n        vld1.32         {q8},     [r1,:128]!\n        vsri.32         q13, q1,  #16\n        vst1.16         {q12},    [r0,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vld1.32         {q9},     [r1,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vld1.32         {q10},    [r3,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vld1.32         {q11},    [r3,:128]!\n        vcvt.s32.f32    q11, q11, #31\n        vst1.16         {q13},    [r0,:128]!\n        bne             1b\n        ands            r2,  r2,  #15\n        beq             3f\n2:      vsri.32         q10, q8,  #16\n        vld1.32         {q0},     [r1,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r1,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vld1.32         {q12},    [r3,:128]!\n        vcvt.s32.f32    q12, q12, #31\n        vsri.32         q11, q9,  #16\n        vld1.32         {q13},    [r3,:128]!\n        vcvt.s32.f32    q13, q13, #31\n        vst1.16         {q10},    [r0,:128]!\n        vsri.32         q12, q0,  #16\n        vst1.16         {q11},    [r0,:128]!\n        vsri.32         q13, q1,  #16\n        vst1.16         {q12-q13},[r0,:128]!\n        bx              lr\n3:      vsri.32         q10, q8,  #16\n        vsri.32         q11, q9,  #16\n        vst1.16         {q10-q11},[r0,:128]!\n        bx              lr\nendfunc\n\nfunction swri_oldapi_conv_fltp_to_s16_nch_neon, export=1\n        cmp             r3,  #2\n        itt             lt\n        ldrlt           r1,  [r1]\n        blt             .L_swri_oldapi_conv_flt_to_s16_neon\n        beq             .L_swri_oldapi_conv_fltp_to_s16_2ch_neon", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:4", "text": "vcvt.s32.f32    q13, q13, #31\n        vst1.16         {q10},    [r0,:128]!\n        vsri.32         q12, q0,  #16\n        vst1.16         {q11},    [r0,:128]!\n        vsri.32         q13, q1,  #16\n        vst1.16         {q12-q13},[r0,:128]!\n        bx              lr\n3:      vsri.32         q10, q8,  #16\n        vsri.32         q11, q9,  #16\n        vst1.16         {q10-q11},[r0,:128]!\n        bx              lr\nendfunc\n\nfunction swri_oldapi_conv_fltp_to_s16_nch_neon, export=1\n        cmp             r3,  #2\n        itt             lt\n        ldrlt           r1,  [r1]\n        blt             .L_swri_oldapi_conv_flt_to_s16_neon\n        beq             .L_swri_oldapi_conv_fltp_to_s16_2ch_neon\n\n        push            {r4-r8, lr}\n        cmp             r3,  #4\n        lsl             r12, r3,  #1\n        blt             4f\n\n        @ 4 channels\n5:      ldm             r1!, {r4-r7}\n        mov             lr,  r2\n        mov             r8,  r0\n        vld1.32         {q8},     [r4,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vld1.32         {q9},     [r5,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vld1.32         {q10},    [r6,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vld1.32         {q11},    [r7,:128]!\n        vcvt.s32.f32    q11, q11, #31\n6:      subs            lr,  lr,  #8\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vsri.32         q9,  q8,  #16\n        vld1.32         {q1},     [r5,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vsri.32         q11, q10, #16\n        vld1.32         {q2},     [r6,:128]!\n        vcvt.s32.f32    q2,  q2,  #31\n        vzip.32         d18, d22\n        vld1.32         {q3},     [r7,:128]!\n        vcvt.s32.f32    q3,  q3,  #31\n        vzip.32         d19, d23\n        vst1.16         {d18},    [r8], r12\n        vsri.32         q1,  q0,  #16\n        vst1.16         {d22},    [r8], r12\n        vsri.32         q3,  q2,  #16\n        vst1.16         {d19},    [r8], r12\n        vzip.32         d2,  d6\n        vst1.16         {d23},    [r8], r12\n        vzip.32         d3,  d7\n        beq             7f\n        vld1.32         {q8},     [r4,:128]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:5", "text": "vsri.32         q9,  q8,  #16\n        vld1.32         {q1},     [r5,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vsri.32         q11, q10, #16\n        vld1.32         {q2},     [r6,:128]!\n        vcvt.s32.f32    q2,  q2,  #31\n        vzip.32         d18, d22\n        vld1.32         {q3},     [r7,:128]!\n        vcvt.s32.f32    q3,  q3,  #31\n        vzip.32         d19, d23\n        vst1.16         {d18},    [r8], r12\n        vsri.32         q1,  q0,  #16\n        vst1.16         {d22},    [r8], r12\n        vsri.32         q3,  q2,  #16\n        vst1.16         {d19},    [r8], r12\n        vzip.32         d2,  d6\n        vst1.16         {d23},    [r8], r12\n        vzip.32         d3,  d7\n        beq             7f\n        vld1.32         {q8},     [r4,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vst1.16         {d2},     [r8], r12\n        vld1.32         {q9},     [r5,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vst1.16         {d6},     [r8], r12\n        vld1.32         {q10},    [r6,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vst1.16         {d3},     [r8], r12\n        vld1.32         {q11},    [r7,:128]!\n        vcvt.s32.f32    q11, q11, #31\n        vst1.16         {d7},     [r8], r12\n        b               6b\n7:      vst1.16         {d2},     [r8], r12\n        vst1.16         {d6},     [r8], r12\n        vst1.16         {d3},     [r8], r12\n        vst1.16         {d7},     [r8], r12\n        subs            r3,  r3,  #4\n        it              eq\n        popeq           {r4-r8, pc}\n        cmp             r3,  #4\n        add             r0,  r0,  #8\n        bge             5b\n\n        @ 2 channels\n4:      cmp             r3,  #2\n        blt             4f\n        ldm             r1!, {r4-r5}\n        mov             lr,  r2\n        mov             r8,  r0\n        tst             lr,  #8\n        vld1.32         {q8},     [r4,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vld1.32         {q9},     [r5,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vld1.32         {q10},    [r4,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vld1.32         {q11},    [r5,:128]!\n        vcvt.s32.f32    q11, q11, #31\n        beq             6f\n        subs            lr,  lr,  #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:6", "text": "add             r0,  r0,  #8\n        bge             5b\n\n        @ 2 channels\n4:      cmp             r3,  #2\n        blt             4f\n        ldm             r1!, {r4-r5}\n        mov             lr,  r2\n        mov             r8,  r0\n        tst             lr,  #8\n        vld1.32         {q8},     [r4,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vld1.32         {q9},     [r5,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vld1.32         {q10},    [r4,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vld1.32         {q11},    [r5,:128]!\n        vcvt.s32.f32    q11, q11, #31\n        beq             6f\n        subs            lr,  lr,  #8\n        beq             7f\n        vsri.32         d18, d16, #16\n        vsri.32         d19, d17, #16\n        vld1.32         {q8},     [r4,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vst1.32         {d18[0]}, [r8], r12\n        vsri.32         d22, d20, #16\n        vst1.32         {d18[1]}, [r8], r12\n        vsri.32         d23, d21, #16\n        vst1.32         {d19[0]}, [r8], r12\n        vst1.32         {d19[1]}, [r8], r12\n        vld1.32         {q9},     [r5,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vst1.32         {d22[0]}, [r8], r12\n        vst1.32         {d22[1]}, [r8], r12\n        vld1.32         {q10},    [r4,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vst1.32         {d23[0]}, [r8], r12\n        vst1.32         {d23[1]}, [r8], r12\n        vld1.32         {q11},    [r5,:128]!\n        vcvt.s32.f32    q11, q11, #31\n6:      subs            lr,  lr,  #16\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vsri.32         d18, d16, #16\n        vld1.32         {q1},     [r5,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vsri.32         d19, d17, #16\n        vld1.32         {q2},     [r4,:128]!\n        vcvt.s32.f32    q2,  q2,  #31\n        vld1.32         {q3},     [r5,:128]!\n        vcvt.s32.f32    q3,  q3,  #31\n        vst1.32         {d18[0]}, [r8], r12\n        vsri.32         d22, d20, #16\n        vst1.32         {d18[1]}, [r8], r12\n        vsri.32         d23, d21, #16\n        vst1.32         {d19[0]}, [r8], r12\n        vsri.32         d2,  d0,  #16\n        vst1.32         {d19[1]}, [r8], r12\n        vsri.32         d3,  d1,  #16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:7", "text": "vcvt.s32.f32    q11, q11, #31\n6:      subs            lr,  lr,  #16\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vsri.32         d18, d16, #16\n        vld1.32         {q1},     [r5,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        vsri.32         d19, d17, #16\n        vld1.32         {q2},     [r4,:128]!\n        vcvt.s32.f32    q2,  q2,  #31\n        vld1.32         {q3},     [r5,:128]!\n        vcvt.s32.f32    q3,  q3,  #31\n        vst1.32         {d18[0]}, [r8], r12\n        vsri.32         d22, d20, #16\n        vst1.32         {d18[1]}, [r8], r12\n        vsri.32         d23, d21, #16\n        vst1.32         {d19[0]}, [r8], r12\n        vsri.32         d2,  d0,  #16\n        vst1.32         {d19[1]}, [r8], r12\n        vsri.32         d3,  d1,  #16\n        vst1.32         {d22[0]}, [r8], r12\n        vsri.32         d6,  d4,  #16\n        vst1.32         {d22[1]}, [r8], r12\n        vsri.32         d7,  d5,  #16\n        vst1.32         {d23[0]}, [r8], r12\n        vst1.32         {d23[1]}, [r8], r12\n        beq             6f\n        vld1.32         {q8},     [r4,:128]!\n        vcvt.s32.f32    q8,  q8,  #31\n        vst1.32         {d2[0]},  [r8], r12\n        vst1.32         {d2[1]},  [r8], r12\n        vld1.32         {q9},     [r5,:128]!\n        vcvt.s32.f32    q9,  q9,  #31\n        vst1.32         {d3[0]},  [r8], r12\n        vst1.32         {d3[1]},  [r8], r12\n        vld1.32         {q10},    [r4,:128]!\n        vcvt.s32.f32    q10, q10, #31\n        vst1.32         {d6[0]},  [r8], r12\n        vst1.32         {d6[1]},  [r8], r12\n        vld1.32         {q11},    [r5,:128]!\n        vcvt.s32.f32    q11, q11, #31\n        vst1.32         {d7[0]},  [r8], r12\n        vst1.32         {d7[1]},  [r8], r12\n        bgt             6b\n6:      vst1.32         {d2[0]},  [r8], r12\n        vst1.32         {d2[1]},  [r8], r12\n        vst1.32         {d3[0]},  [r8], r12\n        vst1.32         {d3[1]},  [r8], r12\n        vst1.32         {d6[0]},  [r8], r12\n        vst1.32         {d6[1]},  [r8], r12\n        vst1.32         {d7[0]},  [r8], r12\n        vst1.32         {d7[1]},  [r8], r12\n        b               8f\n7:      vsri.32         d18, d16, #16\n        vsri.32         d19, d17, #16\n        vst1.32         {d18[0]}, [r8], r12\n        vsri.32         d22, d20, #16\n        vst1.32         {d18[1]}, [r8], r12\n        vsri.32         d23, d21, #16\n        vst1.32         {d19[0]}, [r8], r12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:8", "text": "vcvt.s32.f32    q11, q11, #31\n        vst1.32         {d7[0]},  [r8], r12\n        vst1.32         {d7[1]},  [r8], r12\n        bgt             6b\n6:      vst1.32         {d2[0]},  [r8], r12\n        vst1.32         {d2[1]},  [r8], r12\n        vst1.32         {d3[0]},  [r8], r12\n        vst1.32         {d3[1]},  [r8], r12\n        vst1.32         {d6[0]},  [r8], r12\n        vst1.32         {d6[1]},  [r8], r12\n        vst1.32         {d7[0]},  [r8], r12\n        vst1.32         {d7[1]},  [r8], r12\n        b               8f\n7:      vsri.32         d18, d16, #16\n        vsri.32         d19, d17, #16\n        vst1.32         {d18[0]}, [r8], r12\n        vsri.32         d22, d20, #16\n        vst1.32         {d18[1]}, [r8], r12\n        vsri.32         d23, d21, #16\n        vst1.32         {d19[0]}, [r8], r12\n        vst1.32         {d19[1]}, [r8], r12\n        vst1.32         {d22[0]}, [r8], r12\n        vst1.32         {d22[1]}, [r8], r12\n        vst1.32         {d23[0]}, [r8], r12\n        vst1.32         {d23[1]}, [r8], r12\n8:      subs            r3,  r3,  #2\n        add             r0,  r0,  #4\n        it              eq\n        popeq           {r4-r8, pc}\n\n        @ 1 channel\n4:      ldr             r4,  [r1]\n        tst             r2,  #8\n        mov             lr,  r2\n        mov             r5,  r0\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r4,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        bne             8f\n6:      subs            lr,  lr,  #16\n        vld1.32         {q2},     [r4,:128]!\n        vcvt.s32.f32    q2,  q2,  #31\n        vld1.32         {q3},     [r4,:128]!\n        vcvt.s32.f32    q3,  q3,  #31\n        vst1.16         {d0[1]},  [r5,:16], r12\n        vst1.16         {d0[3]},  [r5,:16], r12\n        vst1.16         {d1[1]},  [r5,:16], r12\n        vst1.16         {d1[3]},  [r5,:16], r12\n        vst1.16         {d2[1]},  [r5,:16], r12\n        vst1.16         {d2[3]},  [r5,:16], r12\n        vst1.16         {d3[1]},  [r5,:16], r12\n        vst1.16         {d3[3]},  [r5,:16], r12\n        beq             7f\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r4,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n7:      vst1.16         {d4[1]},  [r5,:16], r12\n        vst1.16         {d4[3]},  [r5,:16], r12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswresample/arm/audio_convert_neon.S:9", "text": "6:      subs            lr,  lr,  #16\n        vld1.32         {q2},     [r4,:128]!\n        vcvt.s32.f32    q2,  q2,  #31\n        vld1.32         {q3},     [r4,:128]!\n        vcvt.s32.f32    q3,  q3,  #31\n        vst1.16         {d0[1]},  [r5,:16], r12\n        vst1.16         {d0[3]},  [r5,:16], r12\n        vst1.16         {d1[1]},  [r5,:16], r12\n        vst1.16         {d1[3]},  [r5,:16], r12\n        vst1.16         {d2[1]},  [r5,:16], r12\n        vst1.16         {d2[3]},  [r5,:16], r12\n        vst1.16         {d3[1]},  [r5,:16], r12\n        vst1.16         {d3[3]},  [r5,:16], r12\n        beq             7f\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r4,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n7:      vst1.16         {d4[1]},  [r5,:16], r12\n        vst1.16         {d4[3]},  [r5,:16], r12\n        vst1.16         {d5[1]},  [r5,:16], r12\n        vst1.16         {d5[3]},  [r5,:16], r12\n        vst1.16         {d6[1]},  [r5,:16], r12\n        vst1.16         {d6[3]},  [r5,:16], r12\n        vst1.16         {d7[1]},  [r5,:16], r12\n        vst1.16         {d7[3]},  [r5,:16], r12\n        bgt             6b\n        pop             {r4-r8, pc}\n8:      subs            lr,  lr,  #8\n        vst1.16         {d0[1]},  [r5,:16], r12\n        vst1.16         {d0[3]},  [r5,:16], r12\n        vst1.16         {d1[1]},  [r5,:16], r12\n        vst1.16         {d1[3]},  [r5,:16], r12\n        vst1.16         {d2[1]},  [r5,:16], r12\n        vst1.16         {d2[3]},  [r5,:16], r12\n        vst1.16         {d3[1]},  [r5,:16], r12\n        vst1.16         {d3[3]},  [r5,:16], r12\n        it              eq\n        popeq           {r4-r8, pc}\n        vld1.32         {q0},     [r4,:128]!\n        vcvt.s32.f32    q0,  q0,  #31\n        vld1.32         {q1},     [r4,:128]!\n        vcvt.s32.f32    q1,  q1,  #31\n        b               6b\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/audio_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/audio_convert_neon.S", "line_start": 321, "line_end": 365}
{"id": "FFmpeg/FFmpeg:libswresample/arm/resample.S:1", "text": "/*\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_resample_common_apply_filter_x4_float_neon, export=1\n        vmov.f32        q0, #0.0                                       @ accumulator\n1:      vld1.32         {q1}, [r1]!                                    @ src[0..3]\n        vld1.32         {q2}, [r2]!                                    @ filter[0..3]\n        vmla.f32        q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n        subs            r3, #4                                         @ filter_length -= 4\n        bgt             1b                                             @ loop until filter_length\n        vpadd.f32       d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n        vpadd.f32       d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n        vst1.32         {d0[0]}, [r0]                                  @ write accumulator\n        bx              lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_float_neon, export=1\n        vmov.f32        q0, #0.0                                       @ accumulator\n1:      vld1.32         {q1}, [r1]!                                    @ src[0..3]\n        vld1.32         {q2}, [r2]!                                    @ filter[0..3]\n        vld1.32         {q8}, [r1]!                                    @ src[4..7]\n        vld1.32         {q9}, [r2]!                                    @ filter[4..7]\n        vmla.f32        q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n        vmla.f32        q0, q8, q9                                     @ accumulator += src[4..7] * filter[4..7]\n        subs            r3, #8                                         @ filter_length -= 8\n        bgt             1b                                             @ loop until filter_length\n        vpadd.f32       d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n        vpadd.f32       d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n        vst1.32         {d0[0]}, [r0]                                  @ write accumulator\n        bx              lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n        vmov.s32        q0, #0                                         @ accumulator\n1:      vld1.16         {d2}, [r1]!                                    @ src[0..3]\n        vld1.16         {d4}, [r2]!                                    @ filter[0..3]\n        vmlal.s16       q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n        subs            r3, #4                                         @ filter_length -= 4\n        bgt             1b                                             @ loop until filter_length\n        vpadd.s32       d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n        vpadd.s32       d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/resample.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/resample.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/arm/resample.S:2", "text": "vld1.32         {q9}, [r2]!                                    @ filter[4..7]\n        vmla.f32        q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n        vmla.f32        q0, q8, q9                                     @ accumulator += src[4..7] * filter[4..7]\n        subs            r3, #8                                         @ filter_length -= 8\n        bgt             1b                                             @ loop until filter_length\n        vpadd.f32       d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n        vpadd.f32       d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n        vst1.32         {d0[0]}, [r0]                                  @ write accumulator\n        bx              lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n        vmov.s32        q0, #0                                         @ accumulator\n1:      vld1.16         {d2}, [r1]!                                    @ src[0..3]\n        vld1.16         {d4}, [r2]!                                    @ filter[0..3]\n        vmlal.s16       q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n        subs            r3, #4                                         @ filter_length -= 4\n        bgt             1b                                             @ loop until filter_length\n        vpadd.s32       d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n        vpadd.s32       d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n        vst1.32         {d0[0]}, [r0]                                  @ write accumulator\n        bx              lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_s16_neon, export=1\n        vmov.s32        q0, #0                                         @ accumulator\n1:      vld1.16         {q1}, [r1]!                                    @ src[0..7]\n        vld1.16         {q2}, [r2]!                                    @ filter[0..7]\n        vmlal.s16       q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n        vmlal.s16       q0, d3, d5                                     @ accumulator += src[4..7] * filter[4..7]\n        subs            r3, #8                                         @ filter_length -= 8\n        bgt             1b                                             @ loop until filter_length\n        vpadd.s32       d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n        vpadd.s32       d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n        vst1.32         {d0[0]}, [r0]                                  @ write accumulator\n        bx              lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/resample.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/arm/resample.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libswresample/arm/resample.S:1", "text": "/*\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_resample_common_apply_filter_x4_float_neon, export=1\n    vmov.f32            q0, #0.0                                       @ accumulator\n1:  vld1.32             {q1}, [r1]!                                    @ src[0..3]\n    vld1.32             {q2}, [r2]!                                    @ filter[0..3]\n    vmla.f32            q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n    subs                r3, #4                                         @ filter_length -= 4\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.f32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.f32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    bx                  lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_float_neon, export=1\n    vmov.f32            q0, #0.0                                       @ accumulator\n1:  vld1.32             {q1}, [r1]!                                    @ src[0..3]\n    vld1.32             {q2}, [r2]!                                    @ filter[0..3]\n    vld1.32             {q8}, [r1]!                                    @ src[4..7]\n    vld1.32             {q9}, [r2]!                                    @ filter[4..7]\n    vmla.f32            q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n    vmla.f32            q0, q8, q9                                     @ accumulator += src[4..7] * filter[4..7]\n    subs                r3, #8                                         @ filter_length -= 8\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.f32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.f32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    bx                  lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n    vmov.s32            q0, #0                                         @ accumulator\n1:  vld1.16             {d2}, [r1]!                                    @ src[0..3]\n    vld1.16             {d4}, [r2]!                                    @ filter[0..3]\n    vmlal.s16           q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n    subs                r3, #4                                         @ filter_length -= 4\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.s32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.s32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/resample.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswresample/arm/resample.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/arm/resample.S:2", "text": "vld1.32             {q9}, [r2]!                                    @ filter[4..7]\n    vmla.f32            q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n    vmla.f32            q0, q8, q9                                     @ accumulator += src[4..7] * filter[4..7]\n    subs                r3, #8                                         @ filter_length -= 8\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.f32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.f32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    bx                  lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n    vmov.s32            q0, #0                                         @ accumulator\n1:  vld1.16             {d2}, [r1]!                                    @ src[0..3]\n    vld1.16             {d4}, [r2]!                                    @ filter[0..3]\n    vmlal.s16           q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n    subs                r3, #4                                         @ filter_length -= 4\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.s32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.s32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    bx                  lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_s16_neon, export=1\n    vmov.s32            q0, #0                                         @ accumulator\n1:  vld1.16             {q1}, [r1]!                                    @ src[0..7]\n    vld1.16             {q2}, [r2]!                                    @ filter[0..7]\n    vmlal.s16           q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n    vmlal.s16           q0, d3, d5                                     @ accumulator += src[4..7] * filter[4..7]\n    subs                r3, #8                                         @ filter_length -= 8\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.s32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.s32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    bx                  lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/resample.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswresample/arm/resample.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libswresample/arm/resample.S:1", "text": "/*\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_resample_common_apply_filter_x4_float_neon, export=1\n    vmov.f32            q0, #0.0                                       @ accumulator\n1:  vld1.32             {q1}, [r1]!                                    @ src[0..3]\n    vld1.32             {q2}, [r2]!                                    @ filter[0..3]\n    vmla.f32            q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n    subs                r3, #4                                         @ filter_length -= 4\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.f32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.f32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    mov pc, lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_float_neon, export=1\n    vmov.f32            q0, #0.0                                       @ accumulator\n1:  vld1.32             {q1}, [r1]!                                    @ src[0..3]\n    vld1.32             {q2}, [r2]!                                    @ filter[0..3]\n    vld1.32             {q8}, [r1]!                                    @ src[4..7]\n    vld1.32             {q9}, [r2]!                                    @ filter[4..7]\n    vmla.f32            q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n    vmla.f32            q0, q8, q9                                     @ accumulator += src[4..7] * filter[4..7]\n    subs                r3, #8                                         @ filter_length -= 8\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.f32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.f32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    mov pc, lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n    vmov.s32            q0, #0                                         @ accumulator\n1:  vld1.16             {d2}, [r1]!                                    @ src[0..3]\n    vld1.16             {d4}, [r2]!                                    @ filter[0..3]\n    vmlal.s16           q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n    subs                r3, #4                                         @ filter_length -= 4\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.s32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.s32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/resample.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/arm/resample.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/arm/resample.S:2", "text": "vld1.32             {q9}, [r2]!                                    @ filter[4..7]\n    vmla.f32            q0, q1, q2                                     @ accumulator += src[0..3] * filter[0..3]\n    vmla.f32            q0, q8, q9                                     @ accumulator += src[4..7] * filter[4..7]\n    subs                r3, #8                                         @ filter_length -= 8\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.f32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.f32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    mov pc, lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x4_s16_neon, export=1\n    vmov.s32            q0, #0                                         @ accumulator\n1:  vld1.16             {d2}, [r1]!                                    @ src[0..3]\n    vld1.16             {d4}, [r2]!                                    @ filter[0..3]\n    vmlal.s16           q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n    subs                r3, #4                                         @ filter_length -= 4\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.s32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.s32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    mov pc, lr\nendfunc\n\nfunction ff_resample_common_apply_filter_x8_s16_neon, export=1\n    vmov.s32            q0, #0                                         @ accumulator\n1:  vld1.16             {q1}, [r1]!                                    @ src[0..7]\n    vld1.16             {q2}, [r2]!                                    @ filter[0..7]\n    vmlal.s16           q0, d2, d4                                     @ accumulator += src[0..3] * filter[0..3]\n    vmlal.s16           q0, d3, d5                                     @ accumulator += src[4..7] * filter[4..7]\n    subs                r3, #8                                         @ filter_length -= 8\n    bgt                 1b                                             @ loop until filter_length\n    vpadd.s32           d0, d0, d1                                     @ pair adding of the 4x32-bit accumulated values\n    vpadd.s32           d0, d0, d0                                     @ pair adding of the 4x32-bit accumulator values\n    vst1.32             {d0[0]}, [r0]                                  @ write accumulator\n    mov pc, lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswresample/arm/resample.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/arm/resample.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2012 Michael Niedermayer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\nflt2pm31: times 8 dd 4.6566129e-10\nflt2p31 : times 8 dd 2147483648.0\nflt2p15 : times 8 dd 32768.0\n\nword_unpack_shuf : db  0, 1, 4, 5, 8, 9,12,13, 2, 3, 6, 7,10,11,14,15\n\nSECTION .text\n\n\n;to, from, a/u, log2_outsize, log_intsize, const\n%macro PACK_2CH 5-7\ncglobal pack_2ch_%2_to_%1_%3, 3, 4, 6, dst, src, len, src2\n    mov src2q   , [srcq+gprsize]\n    mov srcq    , [srcq]\n    mov dstq    , [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne pack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_2ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_2ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    lea     srcq , [srcq  + (1<<%5)*lenq]\n    lea     src2q, [src2q + (1<<%5)*lenq]\n    lea     dstq , [dstq  + (2<<%4)*lenq]\n    neg     lenq\n    %7 m0,m1,m2,m3,m4,m5\n.next:\n%if %4 >= %5\n    mov%3     m0, [         srcq +(1<<%5)*lenq]\n    mova      m1, m0\n    mov%3     m2, [         src2q+(1<<%5)*lenq]\n%if %5 == 1\n    punpcklwd m0, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:2", "text": "jne pack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_2ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_2ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    lea     srcq , [srcq  + (1<<%5)*lenq]\n    lea     src2q, [src2q + (1<<%5)*lenq]\n    lea     dstq , [dstq  + (2<<%4)*lenq]\n    neg     lenq\n    %7 m0,m1,m2,m3,m4,m5\n.next:\n%if %4 >= %5\n    mov%3     m0, [         srcq +(1<<%5)*lenq]\n    mova      m1, m0\n    mov%3     m2, [         src2q+(1<<%5)*lenq]\n%if %5 == 1\n    punpcklwd m0, m2\n    punpckhwd m1, m2\n%else\n    punpckldq m0, m2\n    punpckhdq m1, m2\n%endif\n    %6 m0,m1,m2,m3,m4,m5\n%else\n    mov%3     m0, [         srcq +(1<<%5)*lenq]\n    mov%3     m1, [mmsize + srcq +(1<<%5)*lenq]\n    mov%3     m2, [         src2q+(1<<%5)*lenq]\n    mov%3     m3, [mmsize + src2q+(1<<%5)*lenq]\n    %6 m0,m1,m2,m3,m4,m5\n    mova      m2, m0\n    punpcklwd m0, m1\n    punpckhwd m2, m1\n    SWAP 1,2\n%endif\n    mov%3 [           dstq+(2<<%4)*lenq], m0\n    mov%3 [  mmsize + dstq+(2<<%4)*lenq], m1\n%if %4 > %5\n    mov%3 [2*mmsize + dstq+(2<<%4)*lenq], m2\n    mov%3 [3*mmsize + dstq+(2<<%4)*lenq], m3\n    add lenq, 4*mmsize/(2<<%4)\n%else\n    add lenq, 2*mmsize/(2<<%4)\n%endif\n        jl .next\n    RET\n%endmacro\n\n%macro UNPACK_2CH 5-7\ncglobal unpack_2ch_%2_to_%1_%3, 3, 4, 7, dst, src, len, dst2\n    mov dst2q   , [dstq+gprsize]\n    mov srcq    , [srcq]\n    mov dstq    , [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne unpack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne unpack_2ch_%2_to_%1_u_int %+ SUFFIX", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:3", "text": "mov%3 [2*mmsize + dstq+(2<<%4)*lenq], m2\n    mov%3 [3*mmsize + dstq+(2<<%4)*lenq], m3\n    add lenq, 4*mmsize/(2<<%4)\n%else\n    add lenq, 2*mmsize/(2<<%4)\n%endif\n        jl .next\n    RET\n%endmacro\n\n%macro UNPACK_2CH 5-7\ncglobal unpack_2ch_%2_to_%1_%3, 3, 4, 7, dst, src, len, dst2\n    mov dst2q   , [dstq+gprsize]\n    mov srcq    , [srcq]\n    mov dstq    , [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne unpack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne unpack_2ch_%2_to_%1_u_int %+ SUFFIX\n    test dst2q, mmsize-1\n        jne unpack_2ch_%2_to_%1_u_int %+ SUFFIX\n%else\nunpack_2ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    lea     srcq , [srcq  + (2<<%5)*lenq]\n    lea     dstq , [dstq  + (1<<%4)*lenq]\n    lea     dst2q, [dst2q + (1<<%4)*lenq]\n    neg     lenq\n    %7 m0,m1,m2,m3,m4,m5\n    mova      m6, [word_unpack_shuf]\n.next:\n    mov%3     m0, [           srcq +(2<<%5)*lenq]\n    mov%3     m2, [  mmsize + srcq +(2<<%5)*lenq]\n%if %5 == 1\n%ifidn SUFFIX, _ssse3\n    pshufb    m0, m6\n    mova      m1, m0\n    pshufb    m2, m6\n    punpcklqdq m0,m2\n    punpckhqdq m1,m2\n%else\n    mova      m1, m0\n    punpcklwd m0,m2\n    punpckhwd m1,m2\n\n    mova      m2, m0\n    punpcklwd m0,m1\n    punpckhwd m2,m1\n\n    mova      m1, m0\n    punpcklwd m0,m2\n    punpckhwd m1,m2\n%endif\n%else\n    mova      m1, m0\n    shufps    m0, m2, 10001000b\n    shufps    m1, m2, 11011101b\n%endif\n%if %4 < %5", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:4", "text": "punpckhqdq m1,m2\n%else\n    mova      m1, m0\n    punpcklwd m0,m2\n    punpckhwd m1,m2\n\n    mova      m2, m0\n    punpcklwd m0,m1\n    punpckhwd m2,m1\n\n    mova      m1, m0\n    punpcklwd m0,m2\n    punpckhwd m1,m2\n%endif\n%else\n    mova      m1, m0\n    shufps    m0, m2, 10001000b\n    shufps    m1, m2, 11011101b\n%endif\n%if %4 < %5\n    mov%3     m2, [2*mmsize + srcq +(2<<%5)*lenq]\n    mova      m3, m2\n    mov%3     m4, [3*mmsize + srcq +(2<<%5)*lenq]\n    shufps    m2, m4, 10001000b\n    shufps    m3, m4, 11011101b\n    SWAP 1,2\n%endif\n    %6 m0,m1,m2,m3,m4,m5\n    mov%3 [           dstq+(1<<%4)*lenq], m0\n%if %4 > %5\n    mov%3 [          dst2q+(1<<%4)*lenq], m2\n    mov%3 [ mmsize +  dstq+(1<<%4)*lenq], m1\n    mov%3 [ mmsize + dst2q+(1<<%4)*lenq], m3\n    add lenq, 2*mmsize/(1<<%4)\n%else\n    mov%3 [          dst2q+(1<<%4)*lenq], m1\n    add lenq, mmsize/(1<<%4)\n%endif\n        jl .next\n    RET\n%endmacro\n\n%macro CONV 5-7\ncglobal %2_to_%1_%3, 3, 3, 6, dst, src, len\n    mov srcq    , [srcq]\n    mov dstq    , [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne %2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne %2_to_%1_u_int %+ SUFFIX\n%else\n%2_to_%1_u_int %+ SUFFIX:\n%endif\n    lea     srcq , [srcq  + (1<<%5)*lenq]\n    lea     dstq , [dstq  + (1<<%4)*lenq]\n    neg     lenq\n    %7 m0,m1,m2,m3,m4,m5\n.next:\n    mov%3     m0, [           srcq +(1<<%5)*lenq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:5", "text": "%endmacro\n\n%macro CONV 5-7\ncglobal %2_to_%1_%3, 3, 3, 6, dst, src, len\n    mov srcq    , [srcq]\n    mov dstq    , [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne %2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne %2_to_%1_u_int %+ SUFFIX\n%else\n%2_to_%1_u_int %+ SUFFIX:\n%endif\n    lea     srcq , [srcq  + (1<<%5)*lenq]\n    lea     dstq , [dstq  + (1<<%4)*lenq]\n    neg     lenq\n    %7 m0,m1,m2,m3,m4,m5\n.next:\n    mov%3     m0, [           srcq +(1<<%5)*lenq]\n    mov%3     m1, [  mmsize + srcq +(1<<%5)*lenq]\n%if %4 < %5\n    mov%3     m2, [2*mmsize + srcq +(1<<%5)*lenq]\n    mov%3     m3, [3*mmsize + srcq +(1<<%5)*lenq]\n%endif\n    %6 m0,m1,m2,m3,m4,m5\n    mov%3 [           dstq+(1<<%4)*lenq], m0\n    mov%3 [  mmsize + dstq+(1<<%4)*lenq], m1\n%if %4 > %5\n    mov%3 [2*mmsize + dstq+(1<<%4)*lenq], m2\n    mov%3 [3*mmsize + dstq+(1<<%4)*lenq], m3\n    add lenq, 4*mmsize/(1<<%4)\n%else\n    add lenq, 2*mmsize/(1<<%4)\n%endif\n        jl .next\n    RET\n%endmacro\n\n%macro PACK_6CH 8\ncglobal pack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, src1, src2, src3, src4, src5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    src1q, [srcq+1*gprsize]\n    mov    src2q, [srcq+2*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src5q, [srcq+5*gprsize]\n    mov     srcq, [srcq]\n    mov     dstq, [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:6", "text": "cglobal pack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, src1, src2, src3, src4, src5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    src1q, [srcq+1*gprsize]\n    mov    src2q, [srcq+2*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src5q, [srcq+5*gprsize]\n    mov     srcq, [srcq]\n    mov     dstq, [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src4q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n    sub    src4q, srcq\n    sub    src5q, srcq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n    SBUTTERFLYPS 0, 1, 6\n    SBUTTERFLYPS 2, 3, 6\n    SBUTTERFLYPS 4, 5, 6\n\n%if cpuflag(avx)\n    blendps   m6, m4, m0, 1100b\n%else\n    movaps    m6, m4\n    shufps    m4, m0, q3210\n    SWAP 4,6\n%endif\n    movlhps   m0, m2\n    movhlps   m4, m2\n%if cpuflag(avx)\n    blendps   m2, m5, m1, 1100b\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:7", "text": "mov%3     m2, [srcq+src2q]\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n    SBUTTERFLYPS 0, 1, 6\n    SBUTTERFLYPS 2, 3, 6\n    SBUTTERFLYPS 4, 5, 6\n\n%if cpuflag(avx)\n    blendps   m6, m4, m0, 1100b\n%else\n    movaps    m6, m4\n    shufps    m4, m0, q3210\n    SWAP 4,6\n%endif\n    movlhps   m0, m2\n    movhlps   m4, m2\n%if cpuflag(avx)\n    blendps   m2, m5, m1, 1100b\n%else\n    movaps    m2, m5\n    shufps    m5, m1, q3210\n    SWAP 2,5\n%endif\n    movlhps   m1, m3\n    movhlps   m5, m3\n\n    %7 m0,m6,x,x,m7,m3\n    %7 m4,m1,x,x,m7,m3\n    %7 m2,m5,x,x,m7,m3\n\n    mov %+ %3 %+ ps [dstq   ], m0\n    mov %+ %3 %+ ps [dstq+16], m6\n    mov %+ %3 %+ ps [dstq+32], m4\n    mov %+ %3 %+ ps [dstq+48], m1\n    mov %+ %3 %+ ps [dstq+64], m2\n    mov %+ %3 %+ ps [dstq+80], m5\n    add      srcq, mmsize\n    add      dstq, mmsize*6\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%macro UNPACK_6CH 8\ncglobal unpack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, dst1, dst2, dst3, dst4, dst5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    dst1q, [dstq+1*gprsize]\n    mov    dst2q, [dstq+2*gprsize]\n    mov    dst3q, [dstq+3*gprsize]\n    mov    dst4q, [dstq+4*gprsize]\n    mov    dst5q, [dstq+5*gprsize]\n    mov     dstq, [dstq]\n    mov     srcq, [srcq]\n%ifidn %3, a\n    test dstq, mmsize-1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:8", "text": "jg .loop\n    RET\n%endmacro\n\n%macro UNPACK_6CH 8\ncglobal unpack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, dst1, dst2, dst3, dst4, dst5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    dst1q, [dstq+1*gprsize]\n    mov    dst2q, [dstq+2*gprsize]\n    mov    dst3q, [dstq+3*gprsize]\n    mov    dst4q, [dstq+4*gprsize]\n    mov    dst5q, [dstq+5*gprsize]\n    mov     dstq, [dstq]\n    mov     srcq, [srcq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst1q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst2q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst3q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst4q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst5q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\nunpack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    dst1q, dstq\n    sub    dst2q, dstq\n    sub    dst3q, dstq\n    sub    dst4q, dstq\n    sub    dst5q, dstq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq   ]\n    mov%3     m1, [srcq+16]\n    mov%3     m2, [srcq+32]\n    mov%3     m3, [srcq+48]\n    mov%3     m4, [srcq+64]\n    mov%3     m5, [srcq+80]\n\n    SBUTTERFLYPS 0, 3, 6\n    SBUTTERFLYPS 1, 4, 6\n    SBUTTERFLYPS 2, 5, 6\n    SBUTTERFLYPS 0, 4, 6\n    SBUTTERFLYPS 3, 2, 6\n    SBUTTERFLYPS 1, 5, 6\n    SWAP 1, 4\n    SWAP 2, 3\n\n    %7 m0,m1,x,x,m7,m6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:9", "text": "sub    dst5q, dstq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq   ]\n    mov%3     m1, [srcq+16]\n    mov%3     m2, [srcq+32]\n    mov%3     m3, [srcq+48]\n    mov%3     m4, [srcq+64]\n    mov%3     m5, [srcq+80]\n\n    SBUTTERFLYPS 0, 3, 6\n    SBUTTERFLYPS 1, 4, 6\n    SBUTTERFLYPS 2, 5, 6\n    SBUTTERFLYPS 0, 4, 6\n    SBUTTERFLYPS 3, 2, 6\n    SBUTTERFLYPS 1, 5, 6\n    SWAP 1, 4\n    SWAP 2, 3\n\n    %7 m0,m1,x,x,m7,m6\n    %7 m2,m3,x,x,m7,m6\n    %7 m4,m5,x,x,m7,m6\n\n    mov %+ %3 %+ ps [dstq      ], m0\n    mov %+ %3 %+ ps [dstq+dst1q], m1\n    mov %+ %3 %+ ps [dstq+dst2q], m2\n    mov %+ %3 %+ ps [dstq+dst3q], m3\n    mov %+ %3 %+ ps [dstq+dst4q], m4\n    mov %+ %3 %+ ps [dstq+dst5q], m5\n\n    add      srcq, mmsize*6\n    add      dstq, mmsize\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%define PACK_8CH_GPRS (10 * ARCH_X86_64) + ((6 + HAVE_ALIGNED_STACK) * ARCH_X86_32)\n\n%macro PACK_8CH 8\ncglobal pack_8ch_%2_to_%1_%3, 2, PACK_8CH_GPRS, %6, ARCH_X86_32*48, dst, src, len, src1, src2, src3, src4, src5, src6, src7\n    mov     dstq, [dstq]\n%if ARCH_X86_32\n    DEFINE_ARGS dst, src, src2, src3, src4, src5, src6\n    %define lend dword r2m\n    %define src1q r0q\n    %define src1m dword [rsp+32]\n%if HAVE_ALIGNED_STACK == 0\n    DEFINE_ARGS dst, src, src2, src3, src5, src6\n    %define src4q r0q\n    %define src4m dword [rsp+36]\n%endif\n    %define src7q r0q\n    %define src7m dword [rsp+40]\n    mov     dstm, dstq\n%endif\n    mov    src7q, [srcq+7*gprsize]\n    mov    src6q, [srcq+6*gprsize]\n%if ARCH_X86_32\n    mov    src7m, src7q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:10", "text": "cglobal pack_8ch_%2_to_%1_%3, 2, PACK_8CH_GPRS, %6, ARCH_X86_32*48, dst, src, len, src1, src2, src3, src4, src5, src6, src7\n    mov     dstq, [dstq]\n%if ARCH_X86_32\n    DEFINE_ARGS dst, src, src2, src3, src4, src5, src6\n    %define lend dword r2m\n    %define src1q r0q\n    %define src1m dword [rsp+32]\n%if HAVE_ALIGNED_STACK == 0\n    DEFINE_ARGS dst, src, src2, src3, src5, src6\n    %define src4q r0q\n    %define src4m dword [rsp+36]\n%endif\n    %define src7q r0q\n    %define src7m dword [rsp+40]\n    mov     dstm, dstq\n%endif\n    mov    src7q, [srcq+7*gprsize]\n    mov    src6q, [srcq+6*gprsize]\n%if ARCH_X86_32\n    mov    src7m, src7q\n%endif\n    mov    src5q, [srcq+5*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4m, src4q\n%endif\n    mov    src2q, [srcq+2*gprsize]\n    mov    src1q, [srcq+1*gprsize]\n    mov     srcq, [srcq]\n%ifidn %3, a\n%if ARCH_X86_32\n    test dstmp, mmsize-1\n%else\n    test dstq, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    test src4m, mmsize-1\n%else\n    test src4q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src6q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32\n    test src7m, mmsize-1\n%else\n    test src7q, mmsize-1\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:11", "text": "jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    test src4m, mmsize-1\n%else\n    test src4q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src6q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32\n    test src7m, mmsize-1\n%else\n    test src7q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_8ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n%if ARCH_X86_64 || HAVE_ALIGNED_STACK\n    sub    src4q, srcq\n%else\n    sub    src4m, srcq\n%endif\n    sub    src5q, srcq\n    sub    src6q, srcq\n%if ARCH_X86_64\n    sub    src7q, srcq\n%else\n    mov src1m, src1q\n    sub src7m, srcq\n%endif\n\n%if ARCH_X86_64\n    %8 x,x,x,x,m9,x\n%elifidn %1, int32\n    %define m9 [flt2p31]\n%else\n    %define m9 [flt2pm31]\n%endif\n\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4q, src4m\n%endif\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if ARCH_X86_32", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:12", "text": "%if ARCH_X86_64\n    %8 x,x,x,x,m9,x\n%elifidn %1, int32\n    %define m9 [flt2p31]\n%else\n    %define m9 [flt2pm31]\n%endif\n\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4q, src4m\n%endif\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if ARCH_X86_32\n    mov    src7q, src7m\n%endif\n    mov%3     m6, [srcq+src6q]\n    mov%3     m7, [srcq+src7q]\n\n%if ARCH_X86_64\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n\n    %7 m0,m1,x,x,m9,m8\n    %7 m2,m3,x,x,m9,m8\n    %7 m4,m5,x,x,m9,m8\n    %7 m6,m7,x,x,m9,m8\n\n    mov%3 [dstq], m0\n%else\n    mov     dstq, dstm\n\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, [rsp], [rsp+16], 1\n\n    %7 m0,m1,x,x,m9,m2\n    mova     m2, [rsp]\n    mov%3   [dstq], m0\n    %7 m2,m3,x,x,m9,m0\n    %7 m4,m5,x,x,m9,m0\n    %7 m6,m7,x,x,m9,m0\n\n%endif\n\n    mov%3 [dstq+16],  m1\n    mov%3 [dstq+32],  m2\n    mov%3 [dstq+48],  m3\n    mov%3 [dstq+64],  m4\n    mov%3 [dstq+80],  m5\n    mov%3 [dstq+96],  m6\n    mov%3 [dstq+112], m7\n\n    add      srcq, mmsize\n    add      dstq, mmsize*8\n%if ARCH_X86_32\n    mov      dstm, dstq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:13", "text": "mova     m2, [rsp]\n    mov%3   [dstq], m0\n    %7 m2,m3,x,x,m9,m0\n    %7 m4,m5,x,x,m9,m0\n    %7 m6,m7,x,x,m9,m0\n\n%endif\n\n    mov%3 [dstq+16],  m1\n    mov%3 [dstq+32],  m2\n    mov%3 [dstq+48],  m3\n    mov%3 [dstq+64],  m4\n    mov%3 [dstq+80],  m5\n    mov%3 [dstq+96],  m6\n    mov%3 [dstq+112], m7\n\n    add      srcq, mmsize\n    add      dstq, mmsize*8\n%if ARCH_X86_32\n    mov      dstm, dstq\n    mov      src1q, src1m\n%endif\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%macro INT16_TO_INT32_N 6\n    pxor      m2, m2\n    pxor      m3, m3\n    punpcklwd m2, m1\n    punpckhwd m3, m1\n    SWAP 4,0\n    pxor      m0, m0\n    pxor      m1, m1\n    punpcklwd m0, m4\n    punpckhwd m1, m4\n%endmacro\n\n%macro INT32_TO_INT16_N 6\n    psrad     m0, 16\n    psrad     m1, 16\n    psrad     m2, 16\n    psrad     m3, 16\n    packssdw  m0, m1\n    packssdw  m2, m3\n    SWAP 1,2\n%endmacro\n\n%macro INT32_TO_FLOAT_INIT 6\n    mova      %5, [flt2pm31]\n%endmacro\n%macro INT32_TO_FLOAT_N 6\n    cvtdq2ps  %1, %1\n    cvtdq2ps  %2, %2\n    mulps %1, %1, %5\n    mulps %2, %2, %5\n%endmacro\n\n%macro FLOAT_TO_INT32_INIT 6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:14", "text": "psrad     m0, 16\n    psrad     m1, 16\n    psrad     m2, 16\n    psrad     m3, 16\n    packssdw  m0, m1\n    packssdw  m2, m3\n    SWAP 1,2\n%endmacro\n\n%macro INT32_TO_FLOAT_INIT 6\n    mova      %5, [flt2pm31]\n%endmacro\n%macro INT32_TO_FLOAT_N 6\n    cvtdq2ps  %1, %1\n    cvtdq2ps  %2, %2\n    mulps %1, %1, %5\n    mulps %2, %2, %5\n%endmacro\n\n%macro FLOAT_TO_INT32_INIT 6\n    mova      %5, [flt2p31]\n%endmacro\n%macro FLOAT_TO_INT32_N 6\n    mulps %1, %5\n    mulps %2, %5\n    cvtps2dq  %6, %1\n    cmpps %1, %1, %5, 5\n    paddd %1, %6\n    cvtps2dq  %6, %2\n    cmpps %2, %2, %5, 5\n    paddd %2, %6\n%endmacro\n\n%macro INT16_TO_FLOAT_INIT 6\n    mova      m5, [flt2pm31]\n%endmacro\n%macro INT16_TO_FLOAT_N 6\n    INT16_TO_INT32_N %1,%2,%3,%4,%5,%6\n    cvtdq2ps  m0, m0\n    cvtdq2ps  m1, m1\n    cvtdq2ps  m2, m2\n    cvtdq2ps  m3, m3\n    mulps m0, m0, m5\n    mulps m1, m1, m5\n    mulps m2, m2, m5\n    mulps m3, m3, m5\n%endmacro\n\n%macro FLOAT_TO_INT16_INIT 6\n    mova      m5, [flt2p15]\n%endmacro\n%macro FLOAT_TO_INT16_N 6\n    mulps m0, m5\n    mulps m1, m5\n    mulps m2, m5\n    mulps m3, m5\n    cvtps2dq  m0, m0\n    cvtps2dq  m1, m1\n    packssdw  m0, m1\n    cvtps2dq  m1, m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:15", "text": "cvtdq2ps  m2, m2\n    cvtdq2ps  m3, m3\n    mulps m0, m0, m5\n    mulps m1, m1, m5\n    mulps m2, m2, m5\n    mulps m3, m3, m5\n%endmacro\n\n%macro FLOAT_TO_INT16_INIT 6\n    mova      m5, [flt2p15]\n%endmacro\n%macro FLOAT_TO_INT16_N 6\n    mulps m0, m5\n    mulps m1, m5\n    mulps m2, m5\n    mulps m3, m5\n    cvtps2dq  m0, m0\n    cvtps2dq  m1, m1\n    packssdw  m0, m1\n    cvtps2dq  m1, m2\n    cvtps2dq  m3, m3\n    packssdw  m1, m3\n%endmacro\n\n%macro NOP_N 0-6\n%endmacro\n\nINIT_XMM sse\nPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nINIT_XMM sse2\nCONV int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nCONV int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nUNPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:16", "text": "PACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nUNPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nCONV int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nUNPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nUNPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:17", "text": "UNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nUNPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_XMM ssse3\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_YMM avx\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:18", "text": "PACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_YMM avx\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/audio_convert.asm", "line_start": 681, "line_end": 707}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:5", "text": "%endmacro\n\n%macro CONV 5-7\ncglobal %2_to_%1_%3, 3, 3, 6, dst, src, len\n    mov srcq    , [srcq]\n    mov dstq    , [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne %2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne %2_to_%1_u_int %+ SUFFIX\n%else\n%2_to_%1_u_int %+ SUFFIX:\n%endif\n    lea     srcq , [srcq  + (1<<%5)*lenq]\n    lea     dstq , [dstq  + (1<<%4)*lenq]\n    neg     lenq\n    %7 m0,m1,m2,m3,m4,m5\n.next:\n    mov%3     m0, [           srcq +(1<<%5)*lenq]\n    mov%3     m1, [  mmsize + srcq +(1<<%5)*lenq]\n%if %4 < %5\n    mov%3     m2, [2*mmsize + srcq +(1<<%5)*lenq]\n    mov%3     m3, [3*mmsize + srcq +(1<<%5)*lenq]\n%endif\n    %6 m0,m1,m2,m3,m4,m5\n    mov%3 [           dstq+(1<<%4)*lenq], m0\n    mov%3 [  mmsize + dstq+(1<<%4)*lenq], m1\n%if %4 > %5\n    mov%3 [2*mmsize + dstq+(1<<%4)*lenq], m2\n    mov%3 [3*mmsize + dstq+(1<<%4)*lenq], m3\n    add lenq, 4*mmsize/(1<<%4)\n%else\n    add lenq, 2*mmsize/(1<<%4)\n%endif\n        jl .next\n%if mmsize == 8\n    emms\n    RET\n%else\n    RET\n%endif\n%endmacro\n\n%macro PACK_6CH 8\ncglobal pack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, src1, src2, src3, src4, src5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    src1q, [srcq+1*gprsize]\n    mov    src2q, [srcq+2*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src5q, [srcq+5*gprsize]\n    mov     srcq, [srcq]\n    mov     dstq, [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:6", "text": "RET\n%endif\n%endmacro\n\n%macro PACK_6CH 8\ncglobal pack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, src1, src2, src3, src4, src5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    src1q, [srcq+1*gprsize]\n    mov    src2q, [srcq+2*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src5q, [srcq+5*gprsize]\n    mov     srcq, [srcq]\n    mov     dstq, [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src4q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n    sub    src4q, srcq\n    sub    src5q, srcq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n    SBUTTERFLYPS 0, 1, 6\n    SBUTTERFLYPS 2, 3, 6\n    SBUTTERFLYPS 4, 5, 6\n\n%if cpuflag(avx)\n    blendps   m6, m4, m0, 1100b\n%else\n    movaps    m6, m4\n    shufps    m4, m0, q3210\n    SWAP 4,6\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:7", "text": "sub    src5q, srcq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n    SBUTTERFLYPS 0, 1, 6\n    SBUTTERFLYPS 2, 3, 6\n    SBUTTERFLYPS 4, 5, 6\n\n%if cpuflag(avx)\n    blendps   m6, m4, m0, 1100b\n%else\n    movaps    m6, m4\n    shufps    m4, m0, q3210\n    SWAP 4,6\n%endif\n    movlhps   m0, m2\n    movhlps   m4, m2\n%if cpuflag(avx)\n    blendps   m2, m5, m1, 1100b\n%else\n    movaps    m2, m5\n    shufps    m5, m1, q3210\n    SWAP 2,5\n%endif\n    movlhps   m1, m3\n    movhlps   m5, m3\n\n    %7 m0,m6,x,x,m7,m3\n    %7 m4,m1,x,x,m7,m3\n    %7 m2,m5,x,x,m7,m3\n\n    mov %+ %3 %+ ps [dstq   ], m0\n    mov %+ %3 %+ ps [dstq+16], m6\n    mov %+ %3 %+ ps [dstq+32], m4\n    mov %+ %3 %+ ps [dstq+48], m1\n    mov %+ %3 %+ ps [dstq+64], m2\n    mov %+ %3 %+ ps [dstq+80], m5\n    add      srcq, mmsize\n    add      dstq, mmsize*6\n    sub      lend, mmsize/4\n    jg .loop\n%if mmsize == 8\n    emms\n    RET\n%else\n    RET\n%endif\n%endmacro\n\n%macro UNPACK_6CH 8\ncglobal unpack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, dst1, dst2, dst3, dst4, dst5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:8", "text": "mov %+ %3 %+ ps [dstq+64], m2\n    mov %+ %3 %+ ps [dstq+80], m5\n    add      srcq, mmsize\n    add      dstq, mmsize*6\n    sub      lend, mmsize/4\n    jg .loop\n%if mmsize == 8\n    emms\n    RET\n%else\n    RET\n%endif\n%endmacro\n\n%macro UNPACK_6CH 8\ncglobal unpack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, dst1, dst2, dst3, dst4, dst5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    dst1q, [dstq+1*gprsize]\n    mov    dst2q, [dstq+2*gprsize]\n    mov    dst3q, [dstq+3*gprsize]\n    mov    dst4q, [dstq+4*gprsize]\n    mov    dst5q, [dstq+5*gprsize]\n    mov     dstq, [dstq]\n    mov     srcq, [srcq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst1q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst2q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst3q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst4q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst5q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\nunpack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    dst1q, dstq\n    sub    dst2q, dstq\n    sub    dst3q, dstq\n    sub    dst4q, dstq\n    sub    dst5q, dstq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq   ]\n    mov%3     m1, [srcq+16]\n    mov%3     m2, [srcq+32]\n    mov%3     m3, [srcq+48]\n    mov%3     m4, [srcq+64]\n    mov%3     m5, [srcq+80]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:9", "text": "jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst5q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\nunpack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    dst1q, dstq\n    sub    dst2q, dstq\n    sub    dst3q, dstq\n    sub    dst4q, dstq\n    sub    dst5q, dstq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq   ]\n    mov%3     m1, [srcq+16]\n    mov%3     m2, [srcq+32]\n    mov%3     m3, [srcq+48]\n    mov%3     m4, [srcq+64]\n    mov%3     m5, [srcq+80]\n\n    SBUTTERFLYPS 0, 3, 6\n    SBUTTERFLYPS 1, 4, 6\n    SBUTTERFLYPS 2, 5, 6\n    SBUTTERFLYPS 0, 4, 6\n    SBUTTERFLYPS 3, 2, 6\n    SBUTTERFLYPS 1, 5, 6\n    SWAP 1, 4\n    SWAP 2, 3\n\n    %7 m0,m1,x,x,m7,m6\n    %7 m2,m3,x,x,m7,m6\n    %7 m4,m5,x,x,m7,m6\n\n    mov %+ %3 %+ ps [dstq      ], m0\n    mov %+ %3 %+ ps [dstq+dst1q], m1\n    mov %+ %3 %+ ps [dstq+dst2q], m2\n    mov %+ %3 %+ ps [dstq+dst3q], m3\n    mov %+ %3 %+ ps [dstq+dst4q], m4\n    mov %+ %3 %+ ps [dstq+dst5q], m5\n\n    add      srcq, mmsize*6\n    add      dstq, mmsize\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%define PACK_8CH_GPRS (10 * ARCH_X86_64) + ((6 + HAVE_ALIGNED_STACK) * ARCH_X86_32)\n\n%macro PACK_8CH 8\ncglobal pack_8ch_%2_to_%1_%3, 2, PACK_8CH_GPRS, %6, ARCH_X86_32*48, dst, src, len, src1, src2, src3, src4, src5, src6, src7\n    mov     dstq, [dstq]\n%if ARCH_X86_32\n    DEFINE_ARGS dst, src, src2, src3, src4, src5, src6\n    %define lend dword r2m\n    %define src1q r0q\n    %define src1m dword [rsp+32]\n%if HAVE_ALIGNED_STACK == 0\n    DEFINE_ARGS dst, src, src2, src3, src5, src6\n    %define src4q r0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:10", "text": "add      srcq, mmsize*6\n    add      dstq, mmsize\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%define PACK_8CH_GPRS (10 * ARCH_X86_64) + ((6 + HAVE_ALIGNED_STACK) * ARCH_X86_32)\n\n%macro PACK_8CH 8\ncglobal pack_8ch_%2_to_%1_%3, 2, PACK_8CH_GPRS, %6, ARCH_X86_32*48, dst, src, len, src1, src2, src3, src4, src5, src6, src7\n    mov     dstq, [dstq]\n%if ARCH_X86_32\n    DEFINE_ARGS dst, src, src2, src3, src4, src5, src6\n    %define lend dword r2m\n    %define src1q r0q\n    %define src1m dword [rsp+32]\n%if HAVE_ALIGNED_STACK == 0\n    DEFINE_ARGS dst, src, src2, src3, src5, src6\n    %define src4q r0q\n    %define src4m dword [rsp+36]\n%endif\n    %define src7q r0q\n    %define src7m dword [rsp+40]\n    mov     dstm, dstq\n%endif\n    mov    src7q, [srcq+7*gprsize]\n    mov    src6q, [srcq+6*gprsize]\n%if ARCH_X86_32\n    mov    src7m, src7q\n%endif\n    mov    src5q, [srcq+5*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4m, src4q\n%endif\n    mov    src2q, [srcq+2*gprsize]\n    mov    src1q, [srcq+1*gprsize]\n    mov     srcq, [srcq]\n%ifidn %3, a\n%if ARCH_X86_32\n    test dstmp, mmsize-1\n%else\n    test dstq, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    test src4m, mmsize-1\n%else\n    test src4q, mmsize-1\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:11", "text": "%ifidn %3, a\n%if ARCH_X86_32\n    test dstmp, mmsize-1\n%else\n    test dstq, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    test src4m, mmsize-1\n%else\n    test src4q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src6q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32\n    test src7m, mmsize-1\n%else\n    test src7q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_8ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n%if ARCH_X86_64 || HAVE_ALIGNED_STACK\n    sub    src4q, srcq\n%else\n    sub    src4m, srcq\n%endif\n    sub    src5q, srcq\n    sub    src6q, srcq\n%if ARCH_X86_64\n    sub    src7q, srcq\n%else\n    mov src1m, src1q\n    sub src7m, srcq\n%endif\n\n%if ARCH_X86_64\n    %8 x,x,x,x,m9,x\n%elifidn %1, int32\n    %define m9 [flt2p31]\n%else\n    %define m9 [flt2pm31]\n%endif\n\n.loop:", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:12", "text": "sub    src4m, srcq\n%endif\n    sub    src5q, srcq\n    sub    src6q, srcq\n%if ARCH_X86_64\n    sub    src7q, srcq\n%else\n    mov src1m, src1q\n    sub src7m, srcq\n%endif\n\n%if ARCH_X86_64\n    %8 x,x,x,x,m9,x\n%elifidn %1, int32\n    %define m9 [flt2p31]\n%else\n    %define m9 [flt2pm31]\n%endif\n\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4q, src4m\n%endif\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if ARCH_X86_32\n    mov    src7q, src7m\n%endif\n    mov%3     m6, [srcq+src6q]\n    mov%3     m7, [srcq+src7q]\n\n%if ARCH_X86_64\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n\n    %7 m0,m1,x,x,m9,m8\n    %7 m2,m3,x,x,m9,m8\n    %7 m4,m5,x,x,m9,m8\n    %7 m6,m7,x,x,m9,m8\n\n    mov%3 [dstq], m0\n%else\n    mov     dstq, dstm\n\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, [rsp], [rsp+16], 1\n\n    %7 m0,m1,x,x,m9,m2\n    mova     m2, [rsp]\n    mov%3   [dstq], m0\n    %7 m2,m3,x,x,m9,m0\n    %7 m4,m5,x,x,m9,m0\n    %7 m6,m7,x,x,m9,m0\n\n%endif\n\n    mov%3 [dstq+16],  m1\n    mov%3 [dstq+32],  m2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:13", "text": "%7 m4,m5,x,x,m9,m8\n    %7 m6,m7,x,x,m9,m8\n\n    mov%3 [dstq], m0\n%else\n    mov     dstq, dstm\n\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, [rsp], [rsp+16], 1\n\n    %7 m0,m1,x,x,m9,m2\n    mova     m2, [rsp]\n    mov%3   [dstq], m0\n    %7 m2,m3,x,x,m9,m0\n    %7 m4,m5,x,x,m9,m0\n    %7 m6,m7,x,x,m9,m0\n\n%endif\n\n    mov%3 [dstq+16],  m1\n    mov%3 [dstq+32],  m2\n    mov%3 [dstq+48],  m3\n    mov%3 [dstq+64],  m4\n    mov%3 [dstq+80],  m5\n    mov%3 [dstq+96],  m6\n    mov%3 [dstq+112], m7\n\n    add      srcq, mmsize\n    add      dstq, mmsize*8\n%if ARCH_X86_32\n    mov      dstm, dstq\n    mov      src1q, src1m\n%endif\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%macro INT16_TO_INT32_N 6\n    pxor      m2, m2\n    pxor      m3, m3\n    punpcklwd m2, m1\n    punpckhwd m3, m1\n    SWAP 4,0\n    pxor      m0, m0\n    pxor      m1, m1\n    punpcklwd m0, m4\n    punpckhwd m1, m4\n%endmacro\n\n%macro INT32_TO_INT16_N 6\n    psrad     m0, 16\n    psrad     m1, 16\n    psrad     m2, 16\n    psrad     m3, 16\n    packssdw  m0, m1\n    packssdw  m2, m3\n    SWAP 1,2\n%endmacro\n\n%macro INT32_TO_FLOAT_INIT 6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:14", "text": "punpcklwd m2, m1\n    punpckhwd m3, m1\n    SWAP 4,0\n    pxor      m0, m0\n    pxor      m1, m1\n    punpcklwd m0, m4\n    punpckhwd m1, m4\n%endmacro\n\n%macro INT32_TO_INT16_N 6\n    psrad     m0, 16\n    psrad     m1, 16\n    psrad     m2, 16\n    psrad     m3, 16\n    packssdw  m0, m1\n    packssdw  m2, m3\n    SWAP 1,2\n%endmacro\n\n%macro INT32_TO_FLOAT_INIT 6\n    mova      %5, [flt2pm31]\n%endmacro\n%macro INT32_TO_FLOAT_N 6\n    cvtdq2ps  %1, %1\n    cvtdq2ps  %2, %2\n    mulps %1, %1, %5\n    mulps %2, %2, %5\n%endmacro\n\n%macro FLOAT_TO_INT32_INIT 6\n    mova      %5, [flt2p31]\n%endmacro\n%macro FLOAT_TO_INT32_N 6\n    mulps %1, %5\n    mulps %2, %5\n    cvtps2dq  %6, %1\n    cmpps %1, %1, %5, 5\n    paddd %1, %6\n    cvtps2dq  %6, %2\n    cmpps %2, %2, %5, 5\n    paddd %2, %6\n%endmacro\n\n%macro INT16_TO_FLOAT_INIT 6\n    mova      m5, [flt2pm31]\n%endmacro\n%macro INT16_TO_FLOAT_N 6\n    INT16_TO_INT32_N %1,%2,%3,%4,%5,%6\n    cvtdq2ps  m0, m0\n    cvtdq2ps  m1, m1\n    cvtdq2ps  m2, m2\n    cvtdq2ps  m3, m3\n    mulps m0, m0, m5\n    mulps m1, m1, m5\n    mulps m2, m2, m5\n    mulps m3, m3, m5\n%endmacro\n\n%macro FLOAT_TO_INT16_INIT 6\n    mova      m5, [flt2p15]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:15", "text": "paddd %2, %6\n%endmacro\n\n%macro INT16_TO_FLOAT_INIT 6\n    mova      m5, [flt2pm31]\n%endmacro\n%macro INT16_TO_FLOAT_N 6\n    INT16_TO_INT32_N %1,%2,%3,%4,%5,%6\n    cvtdq2ps  m0, m0\n    cvtdq2ps  m1, m1\n    cvtdq2ps  m2, m2\n    cvtdq2ps  m3, m3\n    mulps m0, m0, m5\n    mulps m1, m1, m5\n    mulps m2, m2, m5\n    mulps m3, m3, m5\n%endmacro\n\n%macro FLOAT_TO_INT16_INIT 6\n    mova      m5, [flt2p15]\n%endmacro\n%macro FLOAT_TO_INT16_N 6\n    mulps m0, m5\n    mulps m1, m5\n    mulps m2, m5\n    mulps m3, m5\n    cvtps2dq  m0, m0\n    cvtps2dq  m1, m1\n    packssdw  m0, m1\n    cvtps2dq  m1, m2\n    cvtps2dq  m3, m3\n    packssdw  m1, m3\n%endmacro\n\n%macro NOP_N 0-6\n%endmacro\n\nINIT_XMM sse\nPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nINIT_XMM sse2\nCONV int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nCONV int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:16", "text": "UNPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nINIT_XMM sse2\nCONV int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nCONV int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nUNPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nCONV int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nUNPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nUNPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:17", "text": "PACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nUNPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nUNPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_XMM ssse3\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:18", "text": "%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_YMM avx\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "374b3ab03c2a10b7a4f44487195ae47f0a64f0d9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/374b3ab03c2a10b7a4f44487195ae47f0a64f0d9/libswresample/x86/audio_convert.asm", "line_start": 681, "line_end": 717}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:6", "text": "RET\n%endif\n%endmacro\n\n%macro PACK_6CH 8\ncglobal pack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, src1, src2, src3, src4, src5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    src1q, [srcq+1*gprsize]\n    mov    src2q, [srcq+2*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src5q, [srcq+5*gprsize]\n    mov     srcq, [srcq]\n    mov     dstq, [dstq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src4q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n    sub    src4q, srcq\n    sub    src5q, srcq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if cpuflag(sse)\n    SBUTTERFLYPS 0, 1, 6\n    SBUTTERFLYPS 2, 3, 6\n    SBUTTERFLYPS 4, 5, 6\n\n%if cpuflag(avx)\n    blendps   m6, m4, m0, 1100b\n%else\n    movaps    m6, m4\n    shufps    m4, m0, q3210\n    SWAP 4,6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:7", "text": "sub    src5q, srcq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if cpuflag(sse)\n    SBUTTERFLYPS 0, 1, 6\n    SBUTTERFLYPS 2, 3, 6\n    SBUTTERFLYPS 4, 5, 6\n\n%if cpuflag(avx)\n    blendps   m6, m4, m0, 1100b\n%else\n    movaps    m6, m4\n    shufps    m4, m0, q3210\n    SWAP 4,6\n%endif\n    movlhps   m0, m2\n    movhlps   m4, m2\n%if cpuflag(avx)\n    blendps   m2, m5, m1, 1100b\n%else\n    movaps    m2, m5\n    shufps    m5, m1, q3210\n    SWAP 2,5\n%endif\n    movlhps   m1, m3\n    movhlps   m5, m3\n\n    %7 m0,m6,x,x,m7,m3\n    %7 m4,m1,x,x,m7,m3\n    %7 m2,m5,x,x,m7,m3\n\n    mov %+ %3 %+ ps [dstq   ], m0\n    mov %+ %3 %+ ps [dstq+16], m6\n    mov %+ %3 %+ ps [dstq+32], m4\n    mov %+ %3 %+ ps [dstq+48], m1\n    mov %+ %3 %+ ps [dstq+64], m2\n    mov %+ %3 %+ ps [dstq+80], m5\n%else ; mmx\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    movq   [dstq   ], m0\n    movq   [dstq+ 8], m2\n    movq   [dstq+16], m4\n    movq   [dstq+24], m1\n    movq   [dstq+32], m3\n    movq   [dstq+40], m5\n%endif\n    add      srcq, mmsize\n    add      dstq, mmsize*6\n    sub      lend, mmsize/4\n    jg .loop\n%if mmsize == 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:8", "text": "mov %+ %3 %+ ps [dstq+48], m1\n    mov %+ %3 %+ ps [dstq+64], m2\n    mov %+ %3 %+ ps [dstq+80], m5\n%else ; mmx\n    SBUTTERFLY dq, 0, 1, 6\n    SBUTTERFLY dq, 2, 3, 6\n    SBUTTERFLY dq, 4, 5, 6\n\n    movq   [dstq   ], m0\n    movq   [dstq+ 8], m2\n    movq   [dstq+16], m4\n    movq   [dstq+24], m1\n    movq   [dstq+32], m3\n    movq   [dstq+40], m5\n%endif\n    add      srcq, mmsize\n    add      dstq, mmsize*6\n    sub      lend, mmsize/4\n    jg .loop\n%if mmsize == 8\n    emms\n    RET\n%else\n    RET\n%endif\n%endmacro\n\n%macro UNPACK_6CH 8\ncglobal unpack_6ch_%2_to_%1_%3, 2, 8, %6, dst, src, dst1, dst2, dst3, dst4, dst5, len\n%if ARCH_X86_64\n    mov     lend, r2d\n%else\n    %define lend dword r2m\n%endif\n    mov    dst1q, [dstq+1*gprsize]\n    mov    dst2q, [dstq+2*gprsize]\n    mov    dst3q, [dstq+3*gprsize]\n    mov    dst4q, [dstq+4*gprsize]\n    mov    dst5q, [dstq+5*gprsize]\n    mov     dstq, [dstq]\n    mov     srcq, [srcq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst1q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst2q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst3q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst4q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst5q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\nunpack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    dst1q, dstq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:9", "text": "mov     srcq, [srcq]\n%ifidn %3, a\n    test dstq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst1q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst2q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst3q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst4q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n    test dst5q, mmsize-1\n        jne unpack_6ch_%2_to_%1_u_int %+ SUFFIX\n%else\nunpack_6ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    dst1q, dstq\n    sub    dst2q, dstq\n    sub    dst3q, dstq\n    sub    dst4q, dstq\n    sub    dst5q, dstq\n    %8 x,x,x,x,m7,x\n.loop:\n    mov%3     m0, [srcq   ]\n    mov%3     m1, [srcq+16]\n    mov%3     m2, [srcq+32]\n    mov%3     m3, [srcq+48]\n    mov%3     m4, [srcq+64]\n    mov%3     m5, [srcq+80]\n\n    SBUTTERFLYPS 0, 3, 6\n    SBUTTERFLYPS 1, 4, 6\n    SBUTTERFLYPS 2, 5, 6\n    SBUTTERFLYPS 0, 4, 6\n    SBUTTERFLYPS 3, 2, 6\n    SBUTTERFLYPS 1, 5, 6\n    SWAP 1, 4\n    SWAP 2, 3\n\n    %7 m0,m1,x,x,m7,m6\n    %7 m2,m3,x,x,m7,m6\n    %7 m4,m5,x,x,m7,m6\n\n    mov %+ %3 %+ ps [dstq      ], m0\n    mov %+ %3 %+ ps [dstq+dst1q], m1\n    mov %+ %3 %+ ps [dstq+dst2q], m2\n    mov %+ %3 %+ ps [dstq+dst3q], m3\n    mov %+ %3 %+ ps [dstq+dst4q], m4\n    mov %+ %3 %+ ps [dstq+dst5q], m5\n\n    add      srcq, mmsize*6\n    add      dstq, mmsize\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:10", "text": "SWAP 2, 3\n\n    %7 m0,m1,x,x,m7,m6\n    %7 m2,m3,x,x,m7,m6\n    %7 m4,m5,x,x,m7,m6\n\n    mov %+ %3 %+ ps [dstq      ], m0\n    mov %+ %3 %+ ps [dstq+dst1q], m1\n    mov %+ %3 %+ ps [dstq+dst2q], m2\n    mov %+ %3 %+ ps [dstq+dst3q], m3\n    mov %+ %3 %+ ps [dstq+dst4q], m4\n    mov %+ %3 %+ ps [dstq+dst5q], m5\n\n    add      srcq, mmsize*6\n    add      dstq, mmsize\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%define PACK_8CH_GPRS (10 * ARCH_X86_64) + ((6 + HAVE_ALIGNED_STACK) * ARCH_X86_32)\n\n%macro PACK_8CH 8\ncglobal pack_8ch_%2_to_%1_%3, 2, PACK_8CH_GPRS, %6, ARCH_X86_32*48, dst, src, len, src1, src2, src3, src4, src5, src6, src7\n    mov     dstq, [dstq]\n%if ARCH_X86_32\n    DEFINE_ARGS dst, src, src2, src3, src4, src5, src6\n    %define lend dword r2m\n    %define src1q r0q\n    %define src1m dword [rsp+32]\n%if HAVE_ALIGNED_STACK == 0\n    DEFINE_ARGS dst, src, src2, src3, src5, src6\n    %define src4q r0q\n    %define src4m dword [rsp+36]\n%endif\n    %define src7q r0q\n    %define src7m dword [rsp+40]\n    mov     dstm, dstq\n%endif\n    mov    src7q, [srcq+7*gprsize]\n    mov    src6q, [srcq+6*gprsize]\n%if ARCH_X86_32\n    mov    src7m, src7q\n%endif\n    mov    src5q, [srcq+5*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4m, src4q\n%endif\n    mov    src2q, [srcq+2*gprsize]\n    mov    src1q, [srcq+1*gprsize]\n    mov     srcq, [srcq]\n%ifidn %3, a\n%if ARCH_X86_32\n    test dstmp, mmsize-1\n%else\n    test dstq, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:11", "text": "mov    src6q, [srcq+6*gprsize]\n%if ARCH_X86_32\n    mov    src7m, src7q\n%endif\n    mov    src5q, [srcq+5*gprsize]\n    mov    src4q, [srcq+4*gprsize]\n    mov    src3q, [srcq+3*gprsize]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4m, src4q\n%endif\n    mov    src2q, [srcq+2*gprsize]\n    mov    src1q, [srcq+1*gprsize]\n    mov     srcq, [srcq]\n%ifidn %3, a\n%if ARCH_X86_32\n    test dstmp, mmsize-1\n%else\n    test dstq, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test srcq, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src1q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src2q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src3q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    test src4m, mmsize-1\n%else\n    test src4q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src5q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n    test src6q, mmsize-1\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%if ARCH_X86_32\n    test src7m, mmsize-1\n%else\n    test src7q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_8ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n%if ARCH_X86_64 || HAVE_ALIGNED_STACK\n    sub    src4q, srcq\n%else\n    sub    src4m, srcq\n%endif\n    sub    src5q, srcq\n    sub    src6q, srcq\n%if ARCH_X86_64\n    sub    src7q, srcq\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:12", "text": "%else\n    test src7q, mmsize-1\n%endif\n        jne pack_8ch_%2_to_%1_u_int %+ SUFFIX\n%else\npack_8ch_%2_to_%1_u_int %+ SUFFIX:\n%endif\n    sub    src1q, srcq\n    sub    src2q, srcq\n    sub    src3q, srcq\n%if ARCH_X86_64 || HAVE_ALIGNED_STACK\n    sub    src4q, srcq\n%else\n    sub    src4m, srcq\n%endif\n    sub    src5q, srcq\n    sub    src6q, srcq\n%if ARCH_X86_64\n    sub    src7q, srcq\n%else\n    mov src1m, src1q\n    sub src7m, srcq\n%endif\n\n%if ARCH_X86_64\n    %8 x,x,x,x,m9,x\n%elifidn %1, int32\n    %define m9 [flt2p31]\n%else\n    %define m9 [flt2pm31]\n%endif\n\n.loop:\n    mov%3     m0, [srcq      ]\n    mov%3     m1, [srcq+src1q]\n    mov%3     m2, [srcq+src2q]\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\n    mov    src4q, src4m\n%endif\n    mov%3     m3, [srcq+src3q]\n    mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if ARCH_X86_32\n    mov    src7q, src7m\n%endif\n    mov%3     m6, [srcq+src6q]\n    mov%3     m7, [srcq+src7q]\n\n%if ARCH_X86_64\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n\n    %7 m0,m1,x,x,m9,m8\n    %7 m2,m3,x,x,m9,m8\n    %7 m4,m5,x,x,m9,m8\n    %7 m6,m7,x,x,m9,m8\n\n    mov%3 [dstq], m0\n%else\n    mov     dstq, dstm", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:13", "text": "mov%3     m4, [srcq+src4q]\n    mov%3     m5, [srcq+src5q]\n%if ARCH_X86_32\n    mov    src7q, src7m\n%endif\n    mov%3     m6, [srcq+src6q]\n    mov%3     m7, [srcq+src7q]\n\n%if ARCH_X86_64\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, 8\n\n    %7 m0,m1,x,x,m9,m8\n    %7 m2,m3,x,x,m9,m8\n    %7 m4,m5,x,x,m9,m8\n    %7 m6,m7,x,x,m9,m8\n\n    mov%3 [dstq], m0\n%else\n    mov     dstq, dstm\n\n    TRANSPOSE8x4D 0, 1, 2, 3, 4, 5, 6, 7, [rsp], [rsp+16], 1\n\n    %7 m0,m1,x,x,m9,m2\n    mova     m2, [rsp]\n    mov%3   [dstq], m0\n    %7 m2,m3,x,x,m9,m0\n    %7 m4,m5,x,x,m9,m0\n    %7 m6,m7,x,x,m9,m0\n\n%endif\n\n    mov%3 [dstq+16],  m1\n    mov%3 [dstq+32],  m2\n    mov%3 [dstq+48],  m3\n    mov%3 [dstq+64],  m4\n    mov%3 [dstq+80],  m5\n    mov%3 [dstq+96],  m6\n    mov%3 [dstq+112], m7\n\n    add      srcq, mmsize\n    add      dstq, mmsize*8\n%if ARCH_X86_32\n    mov      dstm, dstq\n    mov      src1q, src1m\n%endif\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%macro INT16_TO_INT32_N 6\n    pxor      m2, m2\n    pxor      m3, m3\n    punpcklwd m2, m1\n    punpckhwd m3, m1\n    SWAP 4,0\n    pxor      m0, m0\n    pxor      m1, m1\n    punpcklwd m0, m4\n    punpckhwd m1, m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:14", "text": "add      dstq, mmsize*8\n%if ARCH_X86_32\n    mov      dstm, dstq\n    mov      src1q, src1m\n%endif\n    sub      lend, mmsize/4\n    jg .loop\n    RET\n%endmacro\n\n%macro INT16_TO_INT32_N 6\n    pxor      m2, m2\n    pxor      m3, m3\n    punpcklwd m2, m1\n    punpckhwd m3, m1\n    SWAP 4,0\n    pxor      m0, m0\n    pxor      m1, m1\n    punpcklwd m0, m4\n    punpckhwd m1, m4\n%endmacro\n\n%macro INT32_TO_INT16_N 6\n    psrad     m0, 16\n    psrad     m1, 16\n    psrad     m2, 16\n    psrad     m3, 16\n    packssdw  m0, m1\n    packssdw  m2, m3\n    SWAP 1,2\n%endmacro\n\n%macro INT32_TO_FLOAT_INIT 6\n    mova      %5, [flt2pm31]\n%endmacro\n%macro INT32_TO_FLOAT_N 6\n    cvtdq2ps  %1, %1\n    cvtdq2ps  %2, %2\n    mulps %1, %1, %5\n    mulps %2, %2, %5\n%endmacro\n\n%macro FLOAT_TO_INT32_INIT 6\n    mova      %5, [flt2p31]\n%endmacro\n%macro FLOAT_TO_INT32_N 6\n    mulps %1, %5\n    mulps %2, %5\n    cvtps2dq  %6, %1\n    cmpps %1, %1, %5, 5\n    paddd %1, %6\n    cvtps2dq  %6, %2\n    cmpps %2, %2, %5, 5\n    paddd %2, %6\n%endmacro\n\n%macro INT16_TO_FLOAT_INIT 6\n    mova      m5, [flt2pm31]\n%endmacro\n%macro INT16_TO_FLOAT_N 6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:15", "text": "%endmacro\n\n%macro FLOAT_TO_INT32_INIT 6\n    mova      %5, [flt2p31]\n%endmacro\n%macro FLOAT_TO_INT32_N 6\n    mulps %1, %5\n    mulps %2, %5\n    cvtps2dq  %6, %1\n    cmpps %1, %1, %5, 5\n    paddd %1, %6\n    cvtps2dq  %6, %2\n    cmpps %2, %2, %5, 5\n    paddd %2, %6\n%endmacro\n\n%macro INT16_TO_FLOAT_INIT 6\n    mova      m5, [flt2pm31]\n%endmacro\n%macro INT16_TO_FLOAT_N 6\n    INT16_TO_INT32_N %1,%2,%3,%4,%5,%6\n    cvtdq2ps  m0, m0\n    cvtdq2ps  m1, m1\n    cvtdq2ps  m2, m2\n    cvtdq2ps  m3, m3\n    mulps m0, m0, m5\n    mulps m1, m1, m5\n    mulps m2, m2, m5\n    mulps m3, m3, m5\n%endmacro\n\n%macro FLOAT_TO_INT16_INIT 6\n    mova      m5, [flt2p15]\n%endmacro\n%macro FLOAT_TO_INT16_N 6\n    mulps m0, m5\n    mulps m1, m5\n    mulps m2, m5\n    mulps m3, m5\n    cvtps2dq  m0, m0\n    cvtps2dq  m1, m1\n    packssdw  m0, m1\n    cvtps2dq  m1, m2\n    cvtps2dq  m3, m3\n    packssdw  m1, m3\n%endmacro\n\n%macro NOP_N 0-6\n%endmacro\n\nINIT_XMM sse\nPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nINIT_XMM sse2\nCONV int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:16", "text": "cvtps2dq  m1, m1\n    packssdw  m0, m1\n    cvtps2dq  m1, m2\n    cvtps2dq  m3, m3\n    packssdw  m1, m3\n%endmacro\n\n%macro NOP_N 0-6\n%endmacro\n\nINIT_XMM sse\nPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N\n\nINIT_XMM sse2\nCONV int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nCONV int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nCONV int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int32, u, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int32, a, 2, 2, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int16, int32, u, 1, 2, INT32_TO_INT16_N, NOP_N\nUNPACK_2CH int16, int32, a, 1, 2, INT32_TO_INT16_N, NOP_N\n\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nCONV int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nUNPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:17", "text": "CONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nCONV int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nCONV int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nUNPACK_2CH float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_2CH int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH int16, float, u, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\nUNPACK_2CH int16, float, a, 1, 2, FLOAT_TO_INT16_N, FLOAT_TO_INT16_INIT\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_XMM ssse3\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:18", "text": "PACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_XMM ssse3\nUNPACK_2CH int16, int16, u, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int16, int16, a, 1, 1, NOP_N, NOP_N\nUNPACK_2CH int32, int16, u, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH int32, int16, a, 2, 1, INT16_TO_INT32_N, NOP_N\nUNPACK_2CH float, int16, u, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\nUNPACK_2CH float, int16, a, 2, 1, INT16_TO_FLOAT_N, INT16_TO_FLOAT_INIT\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nUNPACK_6CH float, float, u, 2, 2, 8, NOP_N, NOP_N\nUNPACK_6CH float, float, a, 2, 2, 8, NOP_N, NOP_N\n\nPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nUNPACK_6CH float, int32, u, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH float, int32, a, 2, 2, 8, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nUNPACK_6CH int32, float, u, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nUNPACK_6CH int32, float, a, 2, 2, 8, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nPACK_8CH float, float, u, 2, 2, 9, NOP_N, NOP_N\nPACK_8CH float, float, a, 2, 2, 9, NOP_N, NOP_N\n\nPACK_8CH float, int32, u, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH float, int32, a, 2, 2, 10, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nPACK_8CH int32, float, u, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nPACK_8CH int32, float, a, 2, 2, 10, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n\nINIT_YMM avx\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 681, "line_end": 730}
{"id": "FFmpeg/FFmpeg:libswresample/x86/audio_convert.asm:19", "text": "INIT_YMM avx\nCONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\nCONV float, int32, a, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT\n%endif\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nCONV int32, float, u, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\nCONV int32, float, a, 2, 2, FLOAT_TO_INT32_N, FLOAT_TO_INT32_INIT\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/audio_convert.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/audio_convert.asm", "line_start": 721, "line_end": 730}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2012 Michael Niedermayer\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n\nSECTION_RODATA 32\ndw1: times 8  dd 1\nw1 : times 16 dw 1\n\nSECTION .text\n\n%macro MIX2_FLT 1\ncglobal mix_2_1_%1_float, 7, 7, 6, out, in1, in2, coeffp, index1, index2, len\n%ifidn %1, a\n    test in1q, mmsize-1\n        jne mix_2_1_float_u_int %+ SUFFIX\n    test in2q, mmsize-1\n        jne mix_2_1_float_u_int %+ SUFFIX\n    test outq, mmsize-1\n        jne mix_2_1_float_u_int %+ SUFFIX\n%else\nmix_2_1_float_u_int %+ SUFFIX:\n%endif\n    VBROADCASTSS m4, [coeffpq + 4*index1q]\n    VBROADCASTSS m5, [coeffpq + 4*index2q]\n    shl lend    , 2\n    add in1q    , lenq\n    add in2q    , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n%ifidn %1, a\n    mulps        m0, m4, [in1q + lenq         ]\n    mulps        m1, m5, [in2q + lenq         ]\n    mulps        m2, m4, [in1q + lenq + mmsize]\n    mulps        m3, m5, [in2q + lenq + mmsize]\n%else\n    movu         m0, [in1q + lenq         ]\n    movu         m1, [in2q + lenq         ]\n    movu         m2, [in1q + lenq + mmsize]\n    movu         m3, [in2q + lenq + mmsize]\n    mulps        m0, m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/rematrix.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:2", "text": "%endif\n    VBROADCASTSS m4, [coeffpq + 4*index1q]\n    VBROADCASTSS m5, [coeffpq + 4*index2q]\n    shl lend    , 2\n    add in1q    , lenq\n    add in2q    , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n%ifidn %1, a\n    mulps        m0, m4, [in1q + lenq         ]\n    mulps        m1, m5, [in2q + lenq         ]\n    mulps        m2, m4, [in1q + lenq + mmsize]\n    mulps        m3, m5, [in2q + lenq + mmsize]\n%else\n    movu         m0, [in1q + lenq         ]\n    movu         m1, [in2q + lenq         ]\n    movu         m2, [in1q + lenq + mmsize]\n    movu         m3, [in2q + lenq + mmsize]\n    mulps        m0, m0, m4\n    mulps        m1, m1, m5\n    mulps        m2, m2, m4\n    mulps        m3, m3, m5\n%endif\n    addps        m0, m0, m1\n    addps        m2, m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n    RET\n%endmacro\n\n%macro MIX1_FLT 1\ncglobal mix_1_1_%1_float, 5, 5, 3, out, in, coeffp, index, len\n%ifidn %1, a\n    test inq, mmsize-1\n        jne mix_1_1_float_u_int %+ SUFFIX\n    test outq, mmsize-1\n        jne mix_1_1_float_u_int %+ SUFFIX\n%else\nmix_1_1_float_u_int %+ SUFFIX:\n%endif\n    VBROADCASTSS m2, [coeffpq + 4*indexq]\n    shl lenq    , 2\n    add inq     , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n%ifidn %1, a\n    mulps        m0, m2, [inq + lenq         ]\n    mulps        m1, m2, [inq + lenq + mmsize]\n%else\n    movu         m0, [inq + lenq         ]\n    movu         m1, [inq + lenq + mmsize]\n    mulps        m0, m0, m2\n    mulps        m1, m1, m2\n%endif\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/rematrix.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:3", "text": "%else\nmix_1_1_float_u_int %+ SUFFIX:\n%endif\n    VBROADCASTSS m2, [coeffpq + 4*indexq]\n    shl lenq    , 2\n    add inq     , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n%ifidn %1, a\n    mulps        m0, m2, [inq + lenq         ]\n    mulps        m1, m2, [inq + lenq + mmsize]\n%else\n    movu         m0, [inq + lenq         ]\n    movu         m1, [inq + lenq + mmsize]\n    mulps        m0, m0, m2\n    mulps        m1, m1, m2\n%endif\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m1\n    add        lenq, mmsize*2\n        jl .next\n    RET\n%endmacro\n\n%macro MIX1_INT16 1\ncglobal mix_1_1_%1_int16, 5, 5, 6, out, in, coeffp, index, len\n%ifidn %1, a\n    test inq, mmsize-1\n        jne mix_1_1_int16_u_int %+ SUFFIX\n    test outq, mmsize-1\n        jne mix_1_1_int16_u_int %+ SUFFIX\n%else\nmix_1_1_int16_u_int %+ SUFFIX:\n%endif\n    movd   m4, [coeffpq + 4*indexq]\n    SPLATW m5, m4\n    psllq  m4, 32\n    psrlq  m4, 48\n    mova   m0, [w1]\n    psllw  m0, m4\n    psrlw  m0, 1\n    punpcklwd m5, m0\n    add lenq    , lenq\n    add inq     , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n    mov%1        m0, [inq + lenq         ]\n    mov%1        m2, [inq + lenq + mmsize]\n    mova         m1, m0\n    mova         m3, m2\n    punpcklwd    m0, [w1]\n    punpckhwd    m1, [w1]\n    punpcklwd    m2, [w1]\n    punpckhwd    m3, [w1]\n    pmaddwd      m0, m5\n    pmaddwd      m1, m5\n    pmaddwd      m2, m5\n    pmaddwd      m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/rematrix.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:4", "text": "psllw  m0, m4\n    psrlw  m0, 1\n    punpcklwd m5, m0\n    add lenq    , lenq\n    add inq     , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n    mov%1        m0, [inq + lenq         ]\n    mov%1        m2, [inq + lenq + mmsize]\n    mova         m1, m0\n    mova         m3, m2\n    punpcklwd    m0, [w1]\n    punpckhwd    m1, [w1]\n    punpcklwd    m2, [w1]\n    punpckhwd    m3, [w1]\n    pmaddwd      m0, m5\n    pmaddwd      m1, m5\n    pmaddwd      m2, m5\n    pmaddwd      m3, m5\n    psrad        m0, m4\n    psrad        m1, m4\n    psrad        m2, m4\n    psrad        m3, m4\n    packssdw     m0, m1\n    packssdw     m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n    RET\n%endmacro\n\n%macro MIX2_INT16 1\ncglobal mix_2_1_%1_int16, 7, 7, 8, out, in1, in2, coeffp, index1, index2, len\n%ifidn %1, a\n    test in1q, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n    test in2q, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n    test outq, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n%else\nmix_2_1_int16_u_int %+ SUFFIX:\n%endif\n    movd   m4, [coeffpq + 4*index1q]\n    movd   m6, [coeffpq + 4*index2q]\n    SPLATW m5, m4\n    SPLATW m6, m6\n    psllq  m4, 32\n    psrlq  m4, 48\n    mova   m7, [dw1]\n    pslld  m7, m4\n    psrld  m7, 1\n    punpcklwd m5, m6\n    add lend    , lend\n    add in1q    , lenq\n    add in2q    , lenq\n    add outq    , lenq\n    neg lenq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/rematrix.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:5", "text": "test outq, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n%else\nmix_2_1_int16_u_int %+ SUFFIX:\n%endif\n    movd   m4, [coeffpq + 4*index1q]\n    movd   m6, [coeffpq + 4*index2q]\n    SPLATW m5, m4\n    SPLATW m6, m6\n    psllq  m4, 32\n    psrlq  m4, 48\n    mova   m7, [dw1]\n    pslld  m7, m4\n    psrld  m7, 1\n    punpcklwd m5, m6\n    add lend    , lend\n    add in1q    , lenq\n    add in2q    , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n    mov%1        m0, [in1q + lenq         ]\n    mov%1        m2, [in2q + lenq         ]\n    mova         m1, m0\n    punpcklwd    m0, m2\n    punpckhwd    m1, m2\n\n    mov%1        m2, [in1q + lenq + mmsize]\n    mov%1        m6, [in2q + lenq + mmsize]\n    mova         m3, m2\n    punpcklwd    m2, m6\n    punpckhwd    m3, m6\n\n    pmaddwd      m0, m5\n    pmaddwd      m1, m5\n    pmaddwd      m2, m5\n    pmaddwd      m3, m5\n    paddd        m0, m7\n    paddd        m1, m7\n    paddd        m2, m7\n    paddd        m3, m7\n    psrad        m0, m4\n    psrad        m1, m4\n    psrad        m2, m4\n    psrad        m3, m4\n    packssdw     m0, m1\n    packssdw     m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n    RET\n%endmacro\n\n\nINIT_XMM sse\nMIX2_FLT u\nMIX2_FLT a\nMIX1_FLT u\nMIX1_FLT a", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/rematrix.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:6", "text": "paddd        m3, m7\n    psrad        m0, m4\n    psrad        m1, m4\n    psrad        m2, m4\n    psrad        m3, m4\n    packssdw     m0, m1\n    packssdw     m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n    RET\n%endmacro\n\n\nINIT_XMM sse\nMIX2_FLT u\nMIX2_FLT a\nMIX1_FLT u\nMIX1_FLT a\n\nINIT_XMM sse2\nMIX1_INT16 u\nMIX1_INT16 a\nMIX2_INT16 u\nMIX2_INT16 a\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nMIX2_FLT u\nMIX2_FLT a\nMIX1_FLT u\nMIX1_FLT a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/rematrix.asm", "line_start": 201, "line_end": 234}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:4", "text": "psllw  m0, m4\n    psrlw  m0, 1\n    punpcklwd m5, m0\n    add lenq    , lenq\n    add inq     , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n    mov%1        m0, [inq + lenq         ]\n    mov%1        m2, [inq + lenq + mmsize]\n    mova         m1, m0\n    mova         m3, m2\n    punpcklwd    m0, [w1]\n    punpckhwd    m1, [w1]\n    punpcklwd    m2, [w1]\n    punpckhwd    m3, [w1]\n    pmaddwd      m0, m5\n    pmaddwd      m1, m5\n    pmaddwd      m2, m5\n    pmaddwd      m3, m5\n    psrad        m0, m4\n    psrad        m1, m4\n    psrad        m2, m4\n    psrad        m3, m4\n    packssdw     m0, m1\n    packssdw     m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n%if mmsize == 8\n    emms\n    RET\n%else\n    RET\n%endif\n%endmacro\n\n%macro MIX2_INT16 1\ncglobal mix_2_1_%1_int16, 7, 7, 8, out, in1, in2, coeffp, index1, index2, len\n%ifidn %1, a\n    test in1q, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n    test in2q, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n    test outq, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n%else\nmix_2_1_int16_u_int %+ SUFFIX:\n%endif\n    movd   m4, [coeffpq + 4*index1q]\n    movd   m6, [coeffpq + 4*index2q]\n    SPLATW m5, m4\n    SPLATW m6, m6\n    psllq  m4, 32\n    psrlq  m4, 48\n    mova   m7, [dw1]\n    pslld  m7, m4\n    psrld  m7, 1\n    punpcklwd m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/rematrix.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:5", "text": "%ifidn %1, a\n    test in1q, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n    test in2q, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n    test outq, mmsize-1\n        jne mix_2_1_int16_u_int %+ SUFFIX\n%else\nmix_2_1_int16_u_int %+ SUFFIX:\n%endif\n    movd   m4, [coeffpq + 4*index1q]\n    movd   m6, [coeffpq + 4*index2q]\n    SPLATW m5, m4\n    SPLATW m6, m6\n    psllq  m4, 32\n    psrlq  m4, 48\n    mova   m7, [dw1]\n    pslld  m7, m4\n    psrld  m7, 1\n    punpcklwd m5, m6\n    add lend    , lend\n    add in1q    , lenq\n    add in2q    , lenq\n    add outq    , lenq\n    neg lenq\n.next:\n    mov%1        m0, [in1q + lenq         ]\n    mov%1        m2, [in2q + lenq         ]\n    mova         m1, m0\n    punpcklwd    m0, m2\n    punpckhwd    m1, m2\n\n    mov%1        m2, [in1q + lenq + mmsize]\n    mov%1        m6, [in2q + lenq + mmsize]\n    mova         m3, m2\n    punpcklwd    m2, m6\n    punpckhwd    m3, m6\n\n    pmaddwd      m0, m5\n    pmaddwd      m1, m5\n    pmaddwd      m2, m5\n    pmaddwd      m3, m5\n    paddd        m0, m7\n    paddd        m1, m7\n    paddd        m2, m7\n    paddd        m3, m7\n    psrad        m0, m4\n    psrad        m1, m4\n    psrad        m2, m4\n    psrad        m3, m4\n    packssdw     m0, m1\n    packssdw     m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n%if mmsize == 8\n    emms\n    RET\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/rematrix.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/x86/rematrix.asm:6", "text": "pmaddwd      m2, m5\n    pmaddwd      m3, m5\n    paddd        m0, m7\n    paddd        m1, m7\n    paddd        m2, m7\n    paddd        m3, m7\n    psrad        m0, m4\n    psrad        m1, m4\n    psrad        m2, m4\n    psrad        m3, m4\n    packssdw     m0, m1\n    packssdw     m2, m3\n    mov%1  [outq + lenq         ], m0\n    mov%1  [outq + lenq + mmsize], m2\n    add        lenq, mmsize*2\n        jl .next\n%if mmsize == 8\n    emms\n    RET\n%else\n    RET\n%endif\n%endmacro\n\n\nINIT_XMM sse\nMIX2_FLT u\nMIX2_FLT a\nMIX1_FLT u\nMIX1_FLT a\n\nINIT_XMM sse2\nMIX1_INT16 u\nMIX1_INT16 a\nMIX2_INT16 u\nMIX2_INT16 a\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nMIX2_FLT u\nMIX2_FLT a\nMIX1_FLT u\nMIX1_FLT a\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/rematrix.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswresample/x86/rematrix.asm", "line_start": 201, "line_end": 244}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2012 Michael Niedermayer\n;* Copyright (c) 2014 James Almer <jamrial <at> gmail.com>\n;* Copyright (c) 2014 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\n%if ARCH_X86_64\n%define pointer resq\n%else\n%define pointer resd\n%endif\n\nstruc ResampleContext\n    .av_class:              pointer 1\n    .filter_bank:           pointer 1\n    .filter_length:         resd 1\n    .filter_alloc:          resd 1\n    .ideal_dst_incr:        resd 1\n    .dst_incr:              resd 1\n    .dst_incr_div:          resd 1\n    .dst_incr_mod:          resd 1\n    .index:                 resd 1\n    .frac:                  resd 1\n    .src_incr:              resd 1\n    .compensation_distance: resd 1\n    .phase_count:           resd 1\n\n    ; there's a few more here but we only care about the first few\nendstruc\n\nSECTION_RODATA\n\npf_1:      dd 1.0\npdbl_1:    dq 1.0\npd_0x4000: dd 0x4000\n\nSECTION .text\n\n; FIXME remove unneeded variables (index_incr, phase_mask)\n%macro RESAMPLE_FNS 3-5 ; format [float or int16], bps, log2_bps, float op suffix [s or d], 1.0 constant\n; int resample_common_$format(ResampleContext *ctx, $format *dst,\n;                             const $format *src, int size, int update_ctx)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:2", "text": ".frac:                  resd 1\n    .src_incr:              resd 1\n    .compensation_distance: resd 1\n    .phase_count:           resd 1\n\n    ; there's a few more here but we only care about the first few\nendstruc\n\nSECTION_RODATA\n\npf_1:      dd 1.0\npdbl_1:    dq 1.0\npd_0x4000: dd 0x4000\n\nSECTION .text\n\n; FIXME remove unneeded variables (index_incr, phase_mask)\n%macro RESAMPLE_FNS 3-5 ; format [float or int16], bps, log2_bps, float op suffix [s or d], 1.0 constant\n; int resample_common_$format(ResampleContext *ctx, $format *dst,\n;                             const $format *src, int size, int update_ctx)\n%if ARCH_X86_64 ; unix64 and win64\ncglobal resample_common_%1, 0, 15, 2, ctx, dst, src, phase_count, index, frac, \\\n                                      dst_incr_mod, size, min_filter_count_x4, \\\n                                      min_filter_len_x4, dst_incr_div, src_incr, \\\n                                      phase_mask, dst_end, filter_bank\n\n    ; use red-zone for variable storage\n%define ctx_stackq            [rsp-0x8]\n%define src_stackq            [rsp-0x10]\n%if WIN64\n%define update_context_stackd r4m\n%else ; unix64\n%define update_context_stackd [rsp-0x14]\n%endif\n\n    ; load as many variables in registers as possible; for the rest, store\n    ; on stack so that we have 'ctx' available as one extra register\n    mov                        sized, r3d\n%if UNIX64\n    mov        update_context_stackd, r4d\n%endif\n    mov                       indexd, [ctxq+ResampleContext.index]\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    mov                dst_incr_modd, [ctxq+ResampleContext.dst_incr_mod]\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    mov                    src_incrd, [ctxq+ResampleContext.src_incr]\n    mov                   ctx_stackq, ctxq\n    mov           min_filter_len_x4d, [ctxq+ResampleContext.filter_length]\n    mov                dst_incr_divd, [ctxq+ResampleContext.dst_incr_div]\n    shl           min_filter_len_x4d, %3\n    lea                     dst_endq, [dstq+sizeq*%2]\n\n%if UNIX64\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n    mov                          edi, [ctxq+ResampleContext.filter_alloc]\n\n    DEFINE_ARGS filter_alloc, dst, src, phase_count, index, frac, dst_incr_mod, \\\n                filter, min_filter_count_x4, min_filter_len_x4, dst_incr_div, \\\n                src_incr, phase_mask, dst_end, filter_bank\n%elif WIN64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:3", "text": "%endif\n    mov                       indexd, [ctxq+ResampleContext.index]\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    mov                dst_incr_modd, [ctxq+ResampleContext.dst_incr_mod]\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    mov                    src_incrd, [ctxq+ResampleContext.src_incr]\n    mov                   ctx_stackq, ctxq\n    mov           min_filter_len_x4d, [ctxq+ResampleContext.filter_length]\n    mov                dst_incr_divd, [ctxq+ResampleContext.dst_incr_div]\n    shl           min_filter_len_x4d, %3\n    lea                     dst_endq, [dstq+sizeq*%2]\n\n%if UNIX64\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n    mov                          edi, [ctxq+ResampleContext.filter_alloc]\n\n    DEFINE_ARGS filter_alloc, dst, src, phase_count, index, frac, dst_incr_mod, \\\n                filter, min_filter_count_x4, min_filter_len_x4, dst_incr_div, \\\n                src_incr, phase_mask, dst_end, filter_bank\n%elif WIN64\n    mov                          R9d, [ctxq+ResampleContext.filter_alloc]\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n\n    DEFINE_ARGS phase_count, dst, src, filter_alloc, index, frac, dst_incr_mod, \\\n                filter, min_filter_count_x4, min_filter_len_x4, dst_incr_div, \\\n                src_incr, phase_mask, dst_end, filter_bank\n%endif\n\n    neg           min_filter_len_x4q\n    sub                 filter_bankq, min_filter_len_x4q\n    sub                         srcq, min_filter_len_x4q\n    mov                   src_stackq, srcq\n%else ; x86-32\ncglobal resample_common_%1, 1, 7, 2, ctx, phase_count, dst, frac, \\\n                                     index, min_filter_length_x4, filter_bank\n\n    ; push temp variables to stack\n%define ctx_stackq            r0mp\n%define src_stackq            r2mp\n%define update_context_stackd r4m\n\n    mov                         dstq, r1mp\n    mov                           r3, r3mp\n    lea                           r3, [dstq+r3*%2]\n    PUSH                              dword [ctxq+ResampleContext.dst_incr_div]\n    PUSH                              dword [ctxq+ResampleContext.dst_incr_mod]\n    PUSH                              dword [ctxq+ResampleContext.filter_alloc]\n    PUSH                              r3\n    PUSH                              dword [ctxq+ResampleContext.phase_count]  ; unneeded replacement for phase_mask\n    PUSH                              dword [ctxq+ResampleContext.src_incr]\n    mov        min_filter_length_x4d, [ctxq+ResampleContext.filter_length]\n    mov                       indexd, [ctxq+ResampleContext.index]\n    shl        min_filter_length_x4d, %3\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    neg        min_filter_length_x4q\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    sub                         r2mp, min_filter_length_x4q\n    sub                 filter_bankq, min_filter_length_x4q\n    PUSH                              min_filter_length_x4q\n    PUSH                              filter_bankq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:4", "text": "mov                         dstq, r1mp\n    mov                           r3, r3mp\n    lea                           r3, [dstq+r3*%2]\n    PUSH                              dword [ctxq+ResampleContext.dst_incr_div]\n    PUSH                              dword [ctxq+ResampleContext.dst_incr_mod]\n    PUSH                              dword [ctxq+ResampleContext.filter_alloc]\n    PUSH                              r3\n    PUSH                              dword [ctxq+ResampleContext.phase_count]  ; unneeded replacement for phase_mask\n    PUSH                              dword [ctxq+ResampleContext.src_incr]\n    mov        min_filter_length_x4d, [ctxq+ResampleContext.filter_length]\n    mov                       indexd, [ctxq+ResampleContext.index]\n    shl        min_filter_length_x4d, %3\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    neg        min_filter_length_x4q\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    sub                         r2mp, min_filter_length_x4q\n    sub                 filter_bankq, min_filter_length_x4q\n    PUSH                              min_filter_length_x4q\n    PUSH                              filter_bankq\n    mov                 phase_countd, [ctxq+ResampleContext.phase_count]\n\n    DEFINE_ARGS src, phase_count, dst, frac, index, min_filter_count_x4, filter\n\n%define filter_bankq          dword [rsp+0x0]\n%define min_filter_length_x4q dword [rsp+0x4]\n%define src_incrd             dword [rsp+0x8]\n%define phase_maskd           dword [rsp+0xc]\n%define dst_endq              dword [rsp+0x10]\n%define filter_allocd         dword [rsp+0x14]\n%define dst_incr_modd         dword [rsp+0x18]\n%define dst_incr_divd         dword [rsp+0x1c]\n\n    mov                         srcq, r2mp\n%endif\n\n.loop:\n    mov                      filterd, filter_allocd\n    imul                     filterd, indexd\n%if ARCH_X86_64\n    mov         min_filter_count_x4q, min_filter_len_x4q\n    lea                      filterq, [filter_bankq+filterq*%2]\n%else ; x86-32\n    mov         min_filter_count_x4q, filter_bankq\n    lea                      filterq, [min_filter_count_x4q+filterq*%2]\n    mov         min_filter_count_x4q, min_filter_length_x4q\n%endif\n%ifidn %1, int16\n    movd                          m0, [pd_0x4000]\n%else ; float/double\n    xorps                         m0, m0, m0\n%endif\n\n    align 16\n.inner_loop:\n    movu                          m1, [srcq+min_filter_count_x4q*1]\n%ifidn %1, int16\n%if cpuflag(xop)\n    vpmadcswd                     m0, m1, [filterq+min_filter_count_x4q*1], m0\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:5", "text": "mov         min_filter_count_x4q, min_filter_len_x4q\n    lea                      filterq, [filter_bankq+filterq*%2]\n%else ; x86-32\n    mov         min_filter_count_x4q, filter_bankq\n    lea                      filterq, [min_filter_count_x4q+filterq*%2]\n    mov         min_filter_count_x4q, min_filter_length_x4q\n%endif\n%ifidn %1, int16\n    movd                          m0, [pd_0x4000]\n%else ; float/double\n    xorps                         m0, m0, m0\n%endif\n\n    align 16\n.inner_loop:\n    movu                          m1, [srcq+min_filter_count_x4q*1]\n%ifidn %1, int16\n%if cpuflag(xop)\n    vpmadcswd                     m0, m1, [filterq+min_filter_count_x4q*1], m0\n%else\n    pmaddwd                       m1, [filterq+min_filter_count_x4q*1]\n    paddd                         m0, m1\n%endif\n%else ; float/double\n%if cpuflag(fma4) || cpuflag(fma3)\n    fmaddp%4                      m0, m1, [filterq+min_filter_count_x4q*1], m0\n%else\n    mulp%4                        m1, m1, [filterq+min_filter_count_x4q*1]\n    addp%4                        m0, m0, m1\n%endif ; cpuflag\n%endif\n    add         min_filter_count_x4q, mmsize\n    js .inner_loop\n\n%ifidn %1, int16\n    HADDD                         m0, m1\n    psrad                         m0, 15\n    add                        fracd, dst_incr_modd\n    packssdw                      m0, m0\n    add                       indexd, dst_incr_divd\n    movd                      [dstq], m0\n%else ; float/double\n    ; horizontal sum & store\n%if mmsize == 32\n    vextractf128                 xm1, m0, 0x1\n    addp%4                       xm0, xm1\n%endif\n    movhlps                      xm1, xm0\n%ifidn %1, float\n    addps                        xm0, xm1\n    shufps                       xm1, xm0, xm0, q0001\n%endif\n    add                        fracd, dst_incr_modd\n    addp%4                       xm0, xm1\n    add                       indexd, dst_incr_divd\n    movs%4                    [dstq], xm0\n%endif\n    cmp                        fracd, src_incrd\n    jl .skip\n    sub                        fracd, src_incrd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:6", "text": "movd                      [dstq], m0\n%else ; float/double\n    ; horizontal sum & store\n%if mmsize == 32\n    vextractf128                 xm1, m0, 0x1\n    addp%4                       xm0, xm1\n%endif\n    movhlps                      xm1, xm0\n%ifidn %1, float\n    addps                        xm0, xm1\n    shufps                       xm1, xm0, xm0, q0001\n%endif\n    add                        fracd, dst_incr_modd\n    addp%4                       xm0, xm1\n    add                       indexd, dst_incr_divd\n    movs%4                    [dstq], xm0\n%endif\n    cmp                        fracd, src_incrd\n    jl .skip\n    sub                        fracd, src_incrd\n    inc                       indexd\n\n%if UNIX64\n    DEFINE_ARGS filter_alloc, dst, src, phase_count, index, frac, dst_incr_mod, \\\n                index_incr, min_filter_count_x4, min_filter_len_x4, dst_incr_div, \\\n                src_incr, phase_mask, dst_end, filter_bank\n%elif WIN64\n    DEFINE_ARGS phase_count, dst, src, filter_alloc, index, frac, dst_incr_mod, \\\n                index_incr, min_filter_count_x4, min_filter_len_x4, dst_incr_div, \\\n                src_incr, phase_mask, dst_end, filter_bank\n%else ; x86-32\n    DEFINE_ARGS src, phase_count, dst, frac, index, index_incr\n%endif\n\n.skip:\n    add                         dstq, %2\n    cmp                       indexd, phase_countd\n    jb .index_skip\n.index_while:\n    sub                       indexd, phase_countd\n    lea                         srcq, [srcq+%2]\n    cmp                       indexd, phase_countd\n    jnb .index_while\n.index_skip:\n    cmp                         dstq, dst_endq\n    jne .loop\n\n%if ARCH_X86_64\n    DEFINE_ARGS ctx, dst, src, phase_count, index, frac\n%else ; x86-32\n    DEFINE_ARGS src, ctx, update_context, frac, index\n%endif\n\n    cmp  dword update_context_stackd, 0\n    jz .skip_store\n    ; strictly speaking, the function should always return the consumed\n    ; number of bytes; however, we only use the value if update_context\n    ; is true, so let's just leave it uninitialized otherwise\n    mov                         ctxq, ctx_stackq\n    movifnidn                    rax, srcq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:7", "text": "lea                         srcq, [srcq+%2]\n    cmp                       indexd, phase_countd\n    jnb .index_while\n.index_skip:\n    cmp                         dstq, dst_endq\n    jne .loop\n\n%if ARCH_X86_64\n    DEFINE_ARGS ctx, dst, src, phase_count, index, frac\n%else ; x86-32\n    DEFINE_ARGS src, ctx, update_context, frac, index\n%endif\n\n    cmp  dword update_context_stackd, 0\n    jz .skip_store\n    ; strictly speaking, the function should always return the consumed\n    ; number of bytes; however, we only use the value if update_context\n    ; is true, so let's just leave it uninitialized otherwise\n    mov                         ctxq, ctx_stackq\n    movifnidn                    rax, srcq\n    mov [ctxq+ResampleContext.frac ], fracd\n    sub                          rax, src_stackq\n    mov [ctxq+ResampleContext.index], indexd\n    shr                          rax, %3\n\n.skip_store:\n%if ARCH_X86_32\n    ADD                          rsp, 0x20\n%endif\n    RET\n\n; int resample_linear_$format(ResampleContext *ctx, float *dst,\n;                             const float *src, int size, int update_ctx)\n%if ARCH_X86_64 ; unix64 and win64\n%if UNIX64\ncglobal resample_linear_%1, 0, 15, 5, ctx, dst, phase_mask, phase_count, index, frac, \\\n                                      size, dst_incr_mod, min_filter_count_x4, \\\n                                      min_filter_len_x4, dst_incr_div, src_incr, \\\n                                      src, dst_end, filter_bank\n\n    mov                         srcq, r2mp\n%else ; win64\ncglobal resample_linear_%1, 0, 15, 5, ctx, phase_mask, src, phase_count, index, frac, \\\n                                      size, dst_incr_mod, min_filter_count_x4, \\\n                                      min_filter_len_x4, dst_incr_div, src_incr, \\\n                                      dst, dst_end, filter_bank\n\n    mov                         dstq, r1mp\n%endif\n\n    ; use red-zone for variable storage\n%define ctx_stackq            [rsp-0x8]\n%define src_stackq            [rsp-0x10]\n%define phase_mask_stackd     [rsp-0x14]\n%if WIN64\n%define update_context_stackd r4m\n%else ; unix64\n%define update_context_stackd [rsp-0x18]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:8", "text": "mov                         srcq, r2mp\n%else ; win64\ncglobal resample_linear_%1, 0, 15, 5, ctx, phase_mask, src, phase_count, index, frac, \\\n                                      size, dst_incr_mod, min_filter_count_x4, \\\n                                      min_filter_len_x4, dst_incr_div, src_incr, \\\n                                      dst, dst_end, filter_bank\n\n    mov                         dstq, r1mp\n%endif\n\n    ; use red-zone for variable storage\n%define ctx_stackq            [rsp-0x8]\n%define src_stackq            [rsp-0x10]\n%define phase_mask_stackd     [rsp-0x14]\n%if WIN64\n%define update_context_stackd r4m\n%else ; unix64\n%define update_context_stackd [rsp-0x18]\n%endif\n\n    ; load as many variables in registers as possible; for the rest, store\n    ; on stack so that we have 'ctx' available as one extra register\n    mov                        sized, r3d\n%if UNIX64\n    mov        update_context_stackd, r4d\n%endif\n    mov                       indexd, [ctxq+ResampleContext.index]\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    mov                dst_incr_modd, [ctxq+ResampleContext.dst_incr_mod]\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    mov                    src_incrd, [ctxq+ResampleContext.src_incr]\n    mov                   ctx_stackq, ctxq\n    mov           min_filter_len_x4d, [ctxq+ResampleContext.filter_length]\n%ifidn %1, int16\n    movd                          m4, [pd_0x4000]\n%else ; float/double\n    cvtsi2s%4                    xm0, src_incrd\n    movs%4                       xm4, [%5]\n    divs%4                       xm4, xm0\n%endif\n    mov                dst_incr_divd, [ctxq+ResampleContext.dst_incr_div]\n    shl           min_filter_len_x4d, %3\n    lea                     dst_endq, [dstq+sizeq*%2]\n\n%if UNIX64\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n    mov                          edi, [ctxq+ResampleContext.filter_alloc]\n\n    DEFINE_ARGS filter_alloc, dst, filter2, phase_count, index, frac, filter1, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, src, dst_end, filter_bank\n%elif WIN64\n    mov                          R9d, [ctxq+ResampleContext.filter_alloc]\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n\n    DEFINE_ARGS phase_count, filter2, src, filter_alloc, index, frac, filter1, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, dst, dst_end, filter_bank\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:9", "text": "mov                dst_incr_divd, [ctxq+ResampleContext.dst_incr_div]\n    shl           min_filter_len_x4d, %3\n    lea                     dst_endq, [dstq+sizeq*%2]\n\n%if UNIX64\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n    mov                          edi, [ctxq+ResampleContext.filter_alloc]\n\n    DEFINE_ARGS filter_alloc, dst, filter2, phase_count, index, frac, filter1, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, src, dst_end, filter_bank\n%elif WIN64\n    mov                          R9d, [ctxq+ResampleContext.filter_alloc]\n    mov                          ecx, [ctxq+ResampleContext.phase_count]\n\n    DEFINE_ARGS phase_count, filter2, src, filter_alloc, index, frac, filter1, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, dst, dst_end, filter_bank\n%endif\n\n    neg           min_filter_len_x4q\n    sub                 filter_bankq, min_filter_len_x4q\n    sub                         srcq, min_filter_len_x4q\n    mov                   src_stackq, srcq\n%else ; x86-32\ncglobal resample_linear_%1, 1, 7, 5, ctx, min_filter_length_x4, filter2, \\\n                                     frac, index, dst, filter_bank\n\n    ; push temp variables to stack\n%define ctx_stackq            r0mp\n%define src_stackq            r2mp\n%define update_context_stackd r4m\n\n    mov                         dstq, r1mp\n    mov                           r3, r3mp\n    lea                           r3, [dstq+r3*%2]\n    PUSH                              dword [ctxq+ResampleContext.dst_incr_div]\n    PUSH                              r3\n    mov                           r3, dword [ctxq+ResampleContext.filter_alloc]\n    PUSH                              dword [ctxq+ResampleContext.dst_incr_mod]\n    PUSH                              r3\n    shl                           r3, %3\n    PUSH                              r3\n    mov                           r3, dword [ctxq+ResampleContext.src_incr]\n    PUSH                              dword [ctxq+ResampleContext.phase_count]  ; unneeded replacement of phase_mask\n    PUSH                              r3d\n%ifidn %1, int16\n    movd                          m4, [pd_0x4000]\n%else ; float/double\n    cvtsi2s%4                    xm0, r3d\n    movs%4                       xm4, [%5]\n    divs%4                       xm4, xm0\n%endif\n    mov        min_filter_length_x4d, [ctxq+ResampleContext.filter_length]\n    mov                       indexd, [ctxq+ResampleContext.index]\n    shl        min_filter_length_x4d, %3\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    neg        min_filter_length_x4q\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    sub                         r2mp, min_filter_length_x4q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:10", "text": "PUSH                              r3\n    shl                           r3, %3\n    PUSH                              r3\n    mov                           r3, dword [ctxq+ResampleContext.src_incr]\n    PUSH                              dword [ctxq+ResampleContext.phase_count]  ; unneeded replacement of phase_mask\n    PUSH                              r3d\n%ifidn %1, int16\n    movd                          m4, [pd_0x4000]\n%else ; float/double\n    cvtsi2s%4                    xm0, r3d\n    movs%4                       xm4, [%5]\n    divs%4                       xm4, xm0\n%endif\n    mov        min_filter_length_x4d, [ctxq+ResampleContext.filter_length]\n    mov                       indexd, [ctxq+ResampleContext.index]\n    shl        min_filter_length_x4d, %3\n    mov                        fracd, [ctxq+ResampleContext.frac]\n    neg        min_filter_length_x4q\n    mov                 filter_bankq, [ctxq+ResampleContext.filter_bank]\n    sub                         r2mp, min_filter_length_x4q\n    sub                 filter_bankq, min_filter_length_x4q\n    PUSH                              min_filter_length_x4q\n    PUSH                              filter_bankq\n    PUSH                              dword [ctxq+ResampleContext.phase_count]\n\n    DEFINE_ARGS filter1, min_filter_count_x4, filter2, frac, index, dst, src\n\n%define phase_count_stackd    dword [rsp+0x0]\n%define filter_bankq          dword [rsp+0x4]\n%define min_filter_length_x4q dword [rsp+0x8]\n%define src_incrd             dword [rsp+0xc]\n%define phase_mask_stackd     dword [rsp+0x10]\n%define filter_alloc_x4q      dword [rsp+0x14]\n%define filter_allocd         dword [rsp+0x18]\n%define dst_incr_modd         dword [rsp+0x1c]\n%define dst_endq              dword [rsp+0x20]\n%define dst_incr_divd         dword [rsp+0x24]\n\n    mov                         srcq, r2mp\n%endif\n\n.loop:\n    mov                     filter1d, filter_allocd\n    imul                    filter1d, indexd\n%if ARCH_X86_64\n    mov         min_filter_count_x4q, min_filter_len_x4q\n    lea                     filter1q, [filter_bankq+filter1q*%2]\n    lea                     filter2q, [filter1q+filter_allocq*%2]\n%else ; x86-32\n    mov         min_filter_count_x4q, filter_bankq\n    lea                     filter1q, [min_filter_count_x4q+filter1q*%2]\n    mov         min_filter_count_x4q, min_filter_length_x4q\n    mov                     filter2q, filter1q\n    add                     filter2q, filter_alloc_x4q\n%endif\n%ifidn %1, int16\n    mova                          m0, m4\n    mova                          m2, m4\n%else ; float/double\n    xorps                         m0, m0, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:11", "text": ".loop:\n    mov                     filter1d, filter_allocd\n    imul                    filter1d, indexd\n%if ARCH_X86_64\n    mov         min_filter_count_x4q, min_filter_len_x4q\n    lea                     filter1q, [filter_bankq+filter1q*%2]\n    lea                     filter2q, [filter1q+filter_allocq*%2]\n%else ; x86-32\n    mov         min_filter_count_x4q, filter_bankq\n    lea                     filter1q, [min_filter_count_x4q+filter1q*%2]\n    mov         min_filter_count_x4q, min_filter_length_x4q\n    mov                     filter2q, filter1q\n    add                     filter2q, filter_alloc_x4q\n%endif\n%ifidn %1, int16\n    mova                          m0, m4\n    mova                          m2, m4\n%else ; float/double\n    xorps                         m0, m0, m0\n    xorps                         m2, m2, m2\n%endif\n\n    align 16\n.inner_loop:\n    movu                          m1, [srcq+min_filter_count_x4q*1]\n%ifidn %1, int16\n%if cpuflag(xop)\n    vpmadcswd                     m2, m1, [filter2q+min_filter_count_x4q*1], m2\n    vpmadcswd                     m0, m1, [filter1q+min_filter_count_x4q*1], m0\n%else\n    pmaddwd                       m3, m1, [filter2q+min_filter_count_x4q*1]\n    pmaddwd                       m1, [filter1q+min_filter_count_x4q*1]\n    paddd                         m2, m3\n    paddd                         m0, m1\n%endif ; cpuflag\n%else ; float/double\n%if cpuflag(fma4) || cpuflag(fma3)\n    fmaddp%4                      m2, m1, [filter2q+min_filter_count_x4q*1], m2\n    fmaddp%4                      m0, m1, [filter1q+min_filter_count_x4q*1], m0\n%else\n    mulp%4                        m3, m1, [filter2q+min_filter_count_x4q*1]\n    mulp%4                        m1, m1, [filter1q+min_filter_count_x4q*1]\n    addp%4                        m2, m2, m3\n    addp%4                        m0, m0, m1\n%endif ; cpuflag\n%endif\n    add         min_filter_count_x4q, mmsize\n    js .inner_loop\n\n%ifidn %1, int16\n%if mmsize == 16\n%if cpuflag(xop)\n    vphadddq                      m2, m2\n    vphadddq                      m0, m0\n%endif\n    pshufd                        m3, m2, q0032\n    pshufd                        m1, m0, q0032\n    paddd                         m2, m3\n    paddd                         m0, m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:12", "text": "%else\n    mulp%4                        m3, m1, [filter2q+min_filter_count_x4q*1]\n    mulp%4                        m1, m1, [filter1q+min_filter_count_x4q*1]\n    addp%4                        m2, m2, m3\n    addp%4                        m0, m0, m1\n%endif ; cpuflag\n%endif\n    add         min_filter_count_x4q, mmsize\n    js .inner_loop\n\n%ifidn %1, int16\n%if mmsize == 16\n%if cpuflag(xop)\n    vphadddq                      m2, m2\n    vphadddq                      m0, m0\n%endif\n    pshufd                        m3, m2, q0032\n    pshufd                        m1, m0, q0032\n    paddd                         m2, m3\n    paddd                         m0, m1\n%endif\n%if notcpuflag(xop)\n    PSHUFLW                       m3, m2, q0032\n    PSHUFLW                       m1, m0, q0032\n    paddd                         m2, m3\n    paddd                         m0, m1\n%endif\n    psubd                         m2, m0\n    ; This is probably a really bad idea on atom and other machines with a\n    ; long transfer latency between GPRs and XMMs (atom). However, it does\n    ; make the clip a lot simpler...\n    movd                         eax, m2\n    add                       indexd, dst_incr_divd\n    imul                              fracd\n    idiv                              src_incrd\n    movd                          m1, eax\n    add                        fracd, dst_incr_modd\n    paddd                         m0, m1\n    psrad                         m0, 15\n    packssdw                      m0, m0\n    movd                      [dstq], m0\n\n    ; note that for imul/idiv, I need to move filter to edx/eax for each:\n    ; - 32bit: eax=r0[filter1], edx=r2[filter2]\n    ; - win64: eax=r6[filter1], edx=r1[todo]\n    ; - unix64: eax=r6[filter1], edx=r2[todo]\n%else ; float/double\n    ; val += (v2 - val) * (FELEML) frac / c->src_incr;\n%if mmsize == 32\n    vextractf128                 xm1, m0, 0x1\n    vextractf128                 xm3, m2, 0x1\n    addp%4                       xm0, xm1\n    addp%4                       xm2, xm3\n%endif\n    cvtsi2s%4                    xm1, fracd\n    subp%4                       xm2, xm0\n    mulp%4                       xm1, xm4\n    shufp%4                      xm1, xm1, q0000\n%if cpuflag(fma4) || cpuflag(fma3)\n    fmaddp%4                     xm0, xm2, xm1, xm0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:13", "text": "movd                      [dstq], m0\n\n    ; note that for imul/idiv, I need to move filter to edx/eax for each:\n    ; - 32bit: eax=r0[filter1], edx=r2[filter2]\n    ; - win64: eax=r6[filter1], edx=r1[todo]\n    ; - unix64: eax=r6[filter1], edx=r2[todo]\n%else ; float/double\n    ; val += (v2 - val) * (FELEML) frac / c->src_incr;\n%if mmsize == 32\n    vextractf128                 xm1, m0, 0x1\n    vextractf128                 xm3, m2, 0x1\n    addp%4                       xm0, xm1\n    addp%4                       xm2, xm3\n%endif\n    cvtsi2s%4                    xm1, fracd\n    subp%4                       xm2, xm0\n    mulp%4                       xm1, xm4\n    shufp%4                      xm1, xm1, q0000\n%if cpuflag(fma4) || cpuflag(fma3)\n    fmaddp%4                     xm0, xm2, xm1, xm0\n%else\n    mulp%4                       xm2, xm1\n    addp%4                       xm0, xm2\n%endif ; cpuflag\n\n    ; horizontal sum & store\n    movhlps                      xm1, xm0\n%ifidn %1, float\n    addps                        xm0, xm1\n    shufps                       xm1, xm0, xm0, q0001\n%endif\n    add                        fracd, dst_incr_modd\n    addp%4                       xm0, xm1\n    add                       indexd, dst_incr_divd\n    movs%4                    [dstq], xm0\n%endif\n    cmp                        fracd, src_incrd\n    jl .skip\n    sub                        fracd, src_incrd\n    inc                       indexd\n\n%if UNIX64\n    DEFINE_ARGS filter_alloc, dst, filter2, phase_count, index, frac, index_incr, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, src, dst_end, filter_bank\n%elif WIN64\n    DEFINE_ARGS phase_count, filter2, src, filter_alloc, index, frac, index_incr, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, dst, dst_end, filter_bank\n%else ; x86-32\n    DEFINE_ARGS filter1, phase_count, index_incr, frac, index, dst, src\n%endif\n\n.skip:\n%if ARCH_X86_32\n    mov                 phase_countd, phase_count_stackd\n%endif\n    add                         dstq, %2\n    cmp                       indexd, phase_countd\n    jb .index_skip", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:14", "text": "%if UNIX64\n    DEFINE_ARGS filter_alloc, dst, filter2, phase_count, index, frac, index_incr, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, src, dst_end, filter_bank\n%elif WIN64\n    DEFINE_ARGS phase_count, filter2, src, filter_alloc, index, frac, index_incr, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, dst, dst_end, filter_bank\n%else ; x86-32\n    DEFINE_ARGS filter1, phase_count, index_incr, frac, index, dst, src\n%endif\n\n.skip:\n%if ARCH_X86_32\n    mov                 phase_countd, phase_count_stackd\n%endif\n    add                         dstq, %2\n    cmp                       indexd, phase_countd\n    jb .index_skip\n.index_while:\n    sub                       indexd, phase_countd\n    lea                         srcq, [srcq+%2]\n    cmp                       indexd, phase_countd\n    jnb .index_while\n.index_skip:\n    cmp                         dstq, dst_endq\n    jne .loop\n\n%if UNIX64\n    DEFINE_ARGS ctx, dst, filter2, phase_count, index, frac, index_incr, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, src, dst_end, filter_bank\n%elif WIN64\n    DEFINE_ARGS ctx, filter2, src, phase_count, index, frac, index_incr, \\\n                dst_incr_mod, min_filter_count_x4, min_filter_len_x4, \\\n                dst_incr_div, src_incr, dst, dst_end, filter_bank\n%else ; x86-32\n    DEFINE_ARGS filter1, ctx, update_context, frac, index, dst, src\n%endif\n\n    cmp  dword update_context_stackd, 0\n    jz .skip_store\n    ; strictly speaking, the function should always return the consumed\n    ; number of bytes; however, we only use the value if update_context\n    ; is true, so let's just leave it uninitialized otherwise\n    mov                         ctxq, ctx_stackq\n    movifnidn                    rax, srcq\n    mov [ctxq+ResampleContext.frac ], fracd\n    sub                          rax, src_stackq\n    mov [ctxq+ResampleContext.index], indexd\n    shr                          rax, %3\n\n.skip_store:\n%if ARCH_X86_32\n    ADD                          rsp, 0x28\n%endif\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:15", "text": "cmp  dword update_context_stackd, 0\n    jz .skip_store\n    ; strictly speaking, the function should always return the consumed\n    ; number of bytes; however, we only use the value if update_context\n    ; is true, so let's just leave it uninitialized otherwise\n    mov                         ctxq, ctx_stackq\n    movifnidn                    rax, srcq\n    mov [ctxq+ResampleContext.frac ], fracd\n    sub                          rax, src_stackq\n    mov [ctxq+ResampleContext.index], indexd\n    shr                          rax, %3\n\n.skip_store:\n%if ARCH_X86_32\n    ADD                          rsp, 0x28\n%endif\n    RET\n%endmacro\n\nINIT_XMM sse\nRESAMPLE_FNS float, 4, 2, s, pf_1\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nRESAMPLE_FNS float, 4, 2, s, pf_1\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nRESAMPLE_FNS float, 4, 2, s, pf_1\n%endif\n%if HAVE_FMA4_EXTERNAL\nINIT_XMM fma4\nRESAMPLE_FNS float, 4, 2, s, pf_1\n%endif\n\nINIT_XMM sse2\nRESAMPLE_FNS int16, 2, 1\n%if HAVE_XOP_EXTERNAL\nINIT_XMM xop\nRESAMPLE_FNS int16, 2, 1\n%endif\n\nINIT_XMM sse2\nRESAMPLE_FNS double, 8, 3, d, pdbl_1\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nRESAMPLE_FNS double, 8, 3, d, pdbl_1\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nRESAMPLE_FNS double, 8, 3, d, pdbl_1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 561, "line_end": 614}
{"id": "FFmpeg/FFmpeg:libswresample/x86/resample.asm:16", "text": "RESAMPLE_FNS int16, 2, 1\n%endif\n\nINIT_XMM sse2\nRESAMPLE_FNS double, 8, 3, d, pdbl_1\n\n%if HAVE_AVX_EXTERNAL\nINIT_YMM avx\nRESAMPLE_FNS double, 8, 3, d, pdbl_1\n%endif\n%if HAVE_FMA3_EXTERNAL\nINIT_YMM fma3\nRESAMPLE_FNS double, 8, 3, d, pdbl_1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswresample/x86/resample.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswresample/x86/resample.asm", "line_start": 601, "line_end": 614}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro rgb_to_yuv_load_rgb src, element=3\n    .if \\element == 3\n        ld3             { v16.16b, v17.16b, v18.16b }, [\\src]\n    .else\n        ld4             { v16.16b, v17.16b, v18.16b, v19.16b }, [\\src]\n    .endif\n        uxtl            v19.8h, v16.8b             // v19: r\n        uxtl            v20.8h, v17.8b             // v20: g\n        uxtl            v21.8h, v18.8b             // v21: b\n        uxtl2           v22.8h, v16.16b            // v22: r\n        uxtl2           v23.8h, v17.16b            // v23: g\n        uxtl2           v24.8h, v18.16b            // v24: b\n.endm\n\n.macro argb_to_yuv_load_rgb src\n        ld4             { v16.16b, v17.16b, v18.16b, v19.16b }, [\\src]\n        uxtl            v21.8h, v19.8b             // v21: b\n        uxtl2           v24.8h, v19.16b            // v24: b\n        uxtl            v19.8h, v17.8b             // v19: r\n        uxtl            v20.8h, v18.8b             // v20: g\n        uxtl2           v22.8h, v17.16b            // v22: r\n        uxtl2           v23.8h, v18.16b            // v23: g\n.endm\n\n.macro rgb_to_yuv_product r, g, b, dst1, dst2, dst, coef0, coef1, coef2, right_shift\n        mov             \\dst1\\().16b, v6.16b                    // dst1 = const_offset\n        mov             \\dst2\\().16b, v6.16b                    // dst2 = const_offset\n        smlal           \\dst1\\().4s, \\coef0\\().4h, \\r\\().4h     // dst1 += rx * r\n        smlal           \\dst1\\().4s, \\coef1\\().4h, \\g\\().4h     // dst1 += gx * g\n        smlal           \\dst1\\().4s, \\coef2\\().4h, \\b\\().4h     // dst1 += bx * b\n        smlal2          \\dst2\\().4s, \\coef0\\().8h, \\r\\().8h     // dst2 += rx * r\n        smlal2          \\dst2\\().4s, \\coef1\\().8h, \\g\\().8h     // dst2 += gx * g\n        smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\n.macro rgbToY_neon fmt_bgr, fmt_rgb, element, alpha_first=0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:2", "text": "uxtl            v19.8h, v17.8b             // v19: r\n        uxtl            v20.8h, v18.8b             // v20: g\n        uxtl2           v22.8h, v17.16b            // v22: r\n        uxtl2           v23.8h, v18.16b            // v23: g\n.endm\n\n.macro rgb_to_yuv_product r, g, b, dst1, dst2, dst, coef0, coef1, coef2, right_shift\n        mov             \\dst1\\().16b, v6.16b                    // dst1 = const_offset\n        mov             \\dst2\\().16b, v6.16b                    // dst2 = const_offset\n        smlal           \\dst1\\().4s, \\coef0\\().4h, \\r\\().4h     // dst1 += rx * r\n        smlal           \\dst1\\().4s, \\coef1\\().4h, \\g\\().4h     // dst1 += gx * g\n        smlal           \\dst1\\().4s, \\coef2\\().4h, \\b\\().4h     // dst1 += bx * b\n        smlal2          \\dst2\\().4s, \\coef0\\().8h, \\r\\().8h     // dst2 += rx * r\n        smlal2          \\dst2\\().4s, \\coef1\\().8h, \\g\\().8h     // dst2 += gx * g\n        smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\n.macro rgbToY_neon fmt_bgr, fmt_rgb, element, alpha_first=0\nfunction ff_\\fmt_bgr\\()ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n4:\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        b.lt            2f\n1:\n    .if \\alpha_first\n        argb_to_yuv_load_rgb x1\n    .else\n        rgb_to_yuv_load_rgb x1, \\element\n    .endif\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        sub             w4, w4, #16             // width -= 16\n        add             x1, x1, #(16*\\element)\n        cmp             w4, #16                 // width >= 16 ?\n        stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n    .if \\alpha_first\n        ldrb            w13, [x1, #1]           // w13: r", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:3", "text": "dup             v1.8h, w11\n        dup             v2.8h, w12\n        b.lt            2f\n1:\n    .if \\alpha_first\n        argb_to_yuv_load_rgb x1\n    .else\n        rgb_to_yuv_load_rgb x1, \\element\n    .endif\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        sub             w4, w4, #16             // width -= 16\n        add             x1, x1, #(16*\\element)\n        cmp             w4, #16                 // width >= 16 ?\n        stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n    .if \\alpha_first\n        ldrb            w13, [x1, #1]           // w13: r\n        ldrb            w14, [x1, #2]           // w14: g\n        ldrb            w15, [x1, #3]           // w15: b\n    .else\n        ldrb            w13, [x1]               // w13: r\n        ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n    .endif\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #\\element\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToY_neon bgr24, rgb24, element=3\n\nrgbToY_neon bgra32, rgba32, element=4\n\nrgbToY_neon abgr32, argb32, element=4, alpha_first=1\n\n.macro rgb_set_uv_coeff half\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else\n        mov             w9, #256\n        movk            w9, #64, lsl #16        // w9: const_offset\n    .endif\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        dup             v3.8h, w13\n        dup             v4.8h, w14", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:4", "text": "rgbToY_neon bgr24, rgb24, element=3\n\nrgbToY_neon bgra32, rgba32, element=4\n\nrgbToY_neon abgr32, argb32, element=4, alpha_first=1\n\n.macro rgb_set_uv_coeff half\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else\n        mov             w9, #256\n        movk            w9, #64, lsl #16        // w9: const_offset\n    .endif\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        dup             v3.8h, w13\n        dup             v4.8h, w14\n        dup             v5.8h, w15\n        dup             v6.4s, w9\n.endm\n\n.macro rgb_load_add_half off_r1, off_r2, off_g1, off_g2, off_b1, off_b2\n        ldrb            w2, [x3, #\\off_r1]     // w2: r1\n        ldrb            w4, [x3, #\\off_r2]     // w4: r2\n        add             w2, w2, w4             // w2 = r1 + r2\n\n        ldrb            w4, [x3, #\\off_g1]     // w4: g1\n        ldrb            w7, [x3, #\\off_g2]     // w7: g2\n        add             w4, w4, w7             // w4 = g1 + g2\n\n        ldrb            w7, [x3, #\\off_b1]     // w7: b1\n        ldrb            w8, [x3, #\\off_b2]     // w8: b2\n        add             w7, w7, w8             // w7 = b1 + b2\n.endm\n\n.macro rgbToUV_half_neon fmt_bgr, fmt_rgb, element, alpha_first=0\nfunction ff_\\fmt_bgr\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #8\n        rgb_set_uv_coeff half=1\n        b.lt            2f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:5", "text": "cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #8\n        rgb_set_uv_coeff half=1\n        b.lt            2f\n1:\n    .if \\element == 3\n        ld3             { v16.16b, v17.16b, v18.16b }, [x3]\n    .else\n        ld4             { v16.16b, v17.16b, v18.16b, v19.16b }, [x3]\n    .endif\n    .if \\alpha_first\n        uaddlp          v21.8h, v19.16b\n        uaddlp          v20.8h, v18.16b\n        uaddlp          v19.8h, v17.16b\n    .else\n        uaddlp          v19.8h, v16.16b         // v19: r\n        uaddlp          v20.8h, v17.16b         // v20: g\n        uaddlp          v21.8h, v18.16b         // v21: b\n    .endif\n\n        rgb_to_yuv_product v19, v20, v21, v22, v23, v16, v0, v1, v2, #10\n        rgb_to_yuv_product v19, v20, v21, v24, v25, v17, v3, v4, v5, #10\n        sub             w5, w5, #8              // width -= 8\n        add             x3, x3, #(16*\\element)\n        cmp             w5, #8                  // width >= 8 ?\n        str             q16, [x0], #16          // store dst_u\n        str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n.if \\alpha_first\n        rgb_load_add_half 1, 5, 2, 6, 3, 7\n.else\n    .if \\element == 3\n        rgb_load_add_half 0, 3, 1, 4, 2, 5\n    .else\n        rgb_load_add_half 0, 4, 1, 5, 2, 6\n    .endif\n.endif\n\n        smaddl          x8, w2, w10, x9         // dst_u = ru * r + const_offset\n        smaddl          x8, w4, w11, x8         // dst_u += gu * g\n        smaddl          x8, w7, w12, x8         // dst_u += bu * b\n        asr             x8, x8, #10             // dst_u >>= 10", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:6", "text": "cmp             w5, #8                  // width >= 8 ?\n        str             q16, [x0], #16          // store dst_u\n        str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n.if \\alpha_first\n        rgb_load_add_half 1, 5, 2, 6, 3, 7\n.else\n    .if \\element == 3\n        rgb_load_add_half 0, 3, 1, 4, 2, 5\n    .else\n        rgb_load_add_half 0, 4, 1, 5, 2, 6\n    .endif\n.endif\n\n        smaddl          x8, w2, w10, x9         // dst_u = ru * r + const_offset\n        smaddl          x8, w4, w11, x8         // dst_u += gu * g\n        smaddl          x8, w7, w12, x8         // dst_u += bu * b\n        asr             x8, x8, #10             // dst_u >>= 10\n        strh            w8, [x0], #2            // store dst_u\n\n        smaddl          x8, w2, w13, x9         // dst_v = rv * r + const_offset\n        smaddl          x8, w4, w14, x8         // dst_v += gv * g\n        smaddl          x8, w7, w15, x8         // dst_v += bv * b\n        asr             x8, x8, #10             // dst_v >>= 10\n        sub             w5, w5, #1\n        add             x3, x3, #(2*\\element)\n        strh            w8, [x1], #2            // store dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToUV_half_neon bgr24, rgb24, element=3\n\nrgbToUV_half_neon bgra32, rgba32, element=4\n\nrgbToUV_half_neon abgr32, argb32, element=4, alpha_first=1\n\n.macro rgbToUV_neon fmt_bgr, fmt_rgb, element, alpha_first=0\nfunction ff_\\fmt_bgr\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:7", "text": ".macro rgbToUV_neon fmt_bgr, fmt_rgb, element, alpha_first=0\nfunction ff_\\fmt_bgr\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #16\n        rgb_set_uv_coeff half=0\n        b.lt            2f\n1:\n    .if \\alpha_first\n        argb_to_yuv_load_rgb x3\n    .else\n        rgb_to_yuv_load_rgb x3, \\element\n    .endif\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v18, v3, v4, v5, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v19, v3, v4, v5, #9\n        sub             w5, w5, #16\n        add             x3, x3, #(16*\\element)\n        cmp             w5, #16\n        stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n    .if \\alpha_first\n        ldrb            w16, [x3, #1]           // w16: r\n        ldrb            w17, [x3, #2]           // w17: g\n        ldrb            w4, [x3, #3]            // w4: b\n    .else\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n    .endif\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:8", "text": "2:\n    .if \\alpha_first\n        ldrb            w16, [x3, #1]           // w16: r\n        ldrb            w17, [x3, #2]           // w17: g\n        ldrb            w4, [x3, #3]            // w4: b\n    .else\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n    .endif\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b\n        asr             w8, w8, #9              // x8 >>= 9\n        sub             w5, w5, #1              // width--\n        add             x3, x3, #\\element\n        strh            w8, [x1], #2            // store to dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToUV_neon bgr24, rgb24, element=3\n\nrgbToUV_neon bgra32, rgba32, element=4\n\nrgbToUV_neon abgr32, argb32, element=4, alpha_first=1\n\n#if HAVE_DOTPROD\nENABLE_DOTPROD\n\nfunction ff_bgra32ToY_neon_dotprod, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_rgba32ToY_neon_dotprod, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n4:\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        mov             w7, w10\n        bfi             w7, w11, 8, 8           // the bfi instructions are used to assemble", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:9", "text": "cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_rgba32ToY_neon_dotprod, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n4:\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        mov             w7, w10\n        bfi             w7, w11, 8, 8           // the bfi instructions are used to assemble\n        bfi             w7, w12, 16, 8          // 4 byte r,g,b,0 mask to be then used by udot.\n        dup             v0.4s, w7               // v0 holds the lower byte of each coefficient\n\n        lsr             w6, w10, #8\n        lsr             w7, w11, #8\n        lsr             w8, w12, #8\n\n        bfi             w6, w7, 8, 8\n        bfi             w6, w8, 16, 8\n        dup             v1.4s, w6               // v1 holds the upper byte of each coefficient\n        b.lt            2f\n1:\n        ld1             { v16.16b, v17.16b, v18.16b, v19.16b }, [x1], #64\n        sub             w4, w4, #16             // width -= 16\n\n        mov             v2.16b, v6.16b\n        mov             v3.16b, v6.16b\n        mov             v4.16b, v6.16b\n        mov             v5.16b, v6.16b\n        cmp             w4, #16                 // width >= 16 ?\n\n        udot            v2.4s, v16.16b, v0.16b\n        udot            v3.4s, v17.16b, v0.16b\n        udot            v4.4s, v18.16b, v0.16b\n        udot            v5.4s, v19.16b, v0.16b\n\n        ushr            v2.4s, v2.4s, #8\n        ushr            v3.4s, v3.4s, #8\n        ushr            v4.4s, v4.4s, #8\n        ushr            v5.4s, v5.4s, #8\n\n        udot            v2.4s, v16.16b, v1.16b\n        udot            v3.4s, v17.16b, v1.16b\n        udot            v4.4s, v18.16b, v1.16b\n        udot            v5.4s, v19.16b, v1.16b\n\n        sqshrn          v16.4h, v2.4s, #1\n        sqshrn2         v16.8h, v3.4s, #1\n        sqshrn          v17.4h, v4.4s, #1\n        sqshrn2         v17.8h, v5.4s, #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:10", "text": "udot            v2.4s, v16.16b, v0.16b\n        udot            v3.4s, v17.16b, v0.16b\n        udot            v4.4s, v18.16b, v0.16b\n        udot            v5.4s, v19.16b, v0.16b\n\n        ushr            v2.4s, v2.4s, #8\n        ushr            v3.4s, v3.4s, #8\n        ushr            v4.4s, v4.4s, #8\n        ushr            v5.4s, v5.4s, #8\n\n        udot            v2.4s, v16.16b, v1.16b\n        udot            v3.4s, v17.16b, v1.16b\n        udot            v4.4s, v18.16b, v1.16b\n        udot            v5.4s, v19.16b, v1.16b\n\n        sqshrn          v16.4h, v2.4s, #1\n        sqshrn2         v16.8h, v3.4s, #1\n        sqshrn          v17.4h, v4.4s, #1\n        sqshrn2         v17.8h, v5.4s, #1\n\n        stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n        ldrb            w13, [x1]               // w13: r\n        ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #4\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n\nDISABLE_DOTPROD\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/input.S", "line_start": 361, "line_end": 403}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:8", "text": "2:\n    .if \\alpha_first\n        ldrb            w16, [x3, #1]           // w16: r\n        ldrb            w17, [x3, #2]           // w17: g\n        ldrb            w4, [x3, #3]            // w4: b\n    .else\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n    .endif\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b\n        asr             w8, w8, #9              // x8 >>= 9\n        sub             w5, w5, #1              // width--\n        add             x3, x3, #\\element\n        strh            w8, [x1], #2            // store to dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToUV_neon bgr24, rgb24, element=3\n\nrgbToUV_neon bgra32, rgba32, element=4\n\nrgbToUV_neon abgr32, argb32, element=4, alpha_first=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "4d90a76986cf5ef80266ce845679321b68e3412d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4d90a76986cf5ef80266ce845679321b68e3412d/libswscale/aarch64/input.S", "line_start": 281, "line_end": 315}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro rgb_to_yuv_load_rgb src, element=3\n    .if \\element == 3\n        ld3             { v16.16b, v17.16b, v18.16b }, [\\src]\n    .else\n        ld4             { v16.16b, v17.16b, v18.16b, v19.16b }, [\\src]\n    .endif\n        uxtl            v19.8h, v16.8b             // v19: r\n        uxtl            v20.8h, v17.8b             // v20: g\n        uxtl            v21.8h, v18.8b             // v21: b\n        uxtl2           v22.8h, v16.16b            // v22: r\n        uxtl2           v23.8h, v17.16b            // v23: g\n        uxtl2           v24.8h, v18.16b            // v24: b\n.endm\n\n.macro rgb_to_yuv_product r, g, b, dst1, dst2, dst, coef0, coef1, coef2, right_shift\n        mov             \\dst1\\().16b, v6.16b                    // dst1 = const_offset\n        mov             \\dst2\\().16b, v6.16b                    // dst2 = const_offset\n        smlal           \\dst1\\().4s, \\coef0\\().4h, \\r\\().4h     // dst1 += rx * r\n        smlal           \\dst1\\().4s, \\coef1\\().4h, \\g\\().4h     // dst1 += gx * g\n        smlal           \\dst1\\().4s, \\coef2\\().4h, \\b\\().4h     // dst1 += bx * b\n        smlal2          \\dst2\\().4s, \\coef0\\().8h, \\r\\().8h     // dst2 += rx * r\n        smlal2          \\dst2\\().4s, \\coef1\\().8h, \\g\\().8h     // dst2 += gx * g\n        smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\n.macro rgbToY_neon fmt_bgr, fmt_rgb, element\nfunction ff_\\fmt_bgr\\()ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:2", "text": "smlal           \\dst1\\().4s, \\coef1\\().4h, \\g\\().4h     // dst1 += gx * g\n        smlal           \\dst1\\().4s, \\coef2\\().4h, \\b\\().4h     // dst1 += bx * b\n        smlal2          \\dst2\\().4s, \\coef0\\().8h, \\r\\().8h     // dst2 += rx * r\n        smlal2          \\dst2\\().4s, \\coef1\\().8h, \\g\\().8h     // dst2 += gx * g\n        smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\n.macro rgbToY_neon fmt_bgr, fmt_rgb, element\nfunction ff_\\fmt_bgr\\()ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n4:\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        b.lt            2f\n1:\n        rgb_to_yuv_load_rgb x1, \\element\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        sub             w4, w4, #16             // width -= 16\n        add             x1, x1, #(16*\\element)\n        cmp             w4, #16                 // width >= 16 ?\n        stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n        ldrb            w13, [x1]               // w13: r\n        ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #\\element\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:3", "text": "stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n        ldrb            w13, [x1]               // w13: r\n        ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #\\element\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToY_neon bgr24, rgb24, element=3\n\nrgbToY_neon bgra32, rgba32, element=4\n\n.macro rgb_set_uv_coeff half\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else\n        mov             w9, #256\n        movk            w9, #64, lsl #16        // w9: const_offset\n    .endif\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        dup             v3.8h, w13\n        dup             v4.8h, w14\n        dup             v5.8h, w15\n        dup             v6.4s, w9\n.endm\n\n.macro rgbToUV_half_neon fmt_bgr, fmt_rgb, element\nfunction ff_\\fmt_bgr\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:4", "text": ".endm\n\n.macro rgbToUV_half_neon fmt_bgr, fmt_rgb, element\nfunction ff_\\fmt_bgr\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #8\n        rgb_set_uv_coeff half=1\n        b.lt            2f\n1:\n    .if \\element == 3\n        ld3             { v16.16b, v17.16b, v18.16b }, [x3]\n    .else\n        ld4             { v16.16b, v17.16b, v18.16b, v19.16b }, [x3]\n    .endif\n        uaddlp          v19.8h, v16.16b         // v19: r\n        uaddlp          v20.8h, v17.16b         // v20: g\n        uaddlp          v21.8h, v18.16b         // v21: b\n\n        rgb_to_yuv_product v19, v20, v21, v22, v23, v16, v0, v1, v2, #10\n        rgb_to_yuv_product v19, v20, v21, v24, v25, v17, v3, v4, v5, #10\n        sub             w5, w5, #8              // width -= 8\n        add             x3, x3, #(16*\\element)\n        cmp             w5, #8                  // width >= 8 ?\n        str             q16, [x0], #16          // store dst_u\n        str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w2, [x3]                // w2: r1\n        ldrb            w4, [x3, #\\element]     // w4: r2\n        add             w2, w2, w4              // w2 = r1 + r2\n\n    .if \\element == 3\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #4]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2\n\n        ldrb            w7, [x3, #2]            // w7: b1\n        ldrb            w8, [x3, #5]            // w8: b2\n        add             w7, w7, w8              // w7 = b1 + b2\n    .else\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #5]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:5", "text": "str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w2, [x3]                // w2: r1\n        ldrb            w4, [x3, #\\element]     // w4: r2\n        add             w2, w2, w4              // w2 = r1 + r2\n\n    .if \\element == 3\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #4]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2\n\n        ldrb            w7, [x3, #2]            // w7: b1\n        ldrb            w8, [x3, #5]            // w8: b2\n        add             w7, w7, w8              // w7 = b1 + b2\n    .else\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #5]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2\n\n        ldrb            w7, [x3, #2]            // w7: b1\n        ldrb            w8, [x3, #6]            // w8: b2\n        add             w7, w7, w8              // w7 = b1 + b2\n    .endif\n\n        smaddl          x8, w2, w10, x9         // dst_u = ru * r + const_offset\n        smaddl          x8, w4, w11, x8         // dst_u += gu * g\n        smaddl          x8, w7, w12, x8         // dst_u += bu * b\n        asr             x8, x8, #10             // dst_u >>= 10\n        strh            w8, [x0], #2            // store dst_u\n\n        smaddl          x8, w2, w13, x9         // dst_v = rv * r + const_offset\n        smaddl          x8, w4, w14, x8         // dst_v += gv * g\n        smaddl          x8, w7, w15, x8         // dst_v += bv * b\n        asr             x8, x8, #10             // dst_v >>= 10\n        sub             w5, w5, #1\n        add             x3, x3, #(2*\\element)\n        strh            w8, [x1], #2            // store dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToUV_half_neon bgr24, rgb24, element=3\n\nrgbToUV_half_neon bgra32, rgba32, element=4\n\n.macro rgbToUV_neon fmt_bgr, fmt_rgb, element\nfunction ff_\\fmt_bgr\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:6", "text": "3:\n        ret\nendfunc\n.endm\n\nrgbToUV_half_neon bgr24, rgb24, element=3\n\nrgbToUV_half_neon bgra32, rgba32, element=4\n\n.macro rgbToUV_neon fmt_bgr, fmt_rgb, element\nfunction ff_\\fmt_bgr\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_\\fmt_rgb\\()ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #16\n        rgb_set_uv_coeff half=0\n        b.lt            2f\n1:\n        rgb_to_yuv_load_rgb x3, \\element\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v18, v3, v4, v5, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v19, v3, v4, v5, #9\n        sub             w5, w5, #16\n        add             x3, x3, #(16*\\element)\n        cmp             w5, #16\n        stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b\n        asr             w8, w8, #9              // x8 >>= 9\n        sub             w5, w5, #1              // width--", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:7", "text": "stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b\n        asr             w8, w8, #9              // x8 >>= 9\n        sub             w5, w5, #1              // width--\n        add             x3, x3, #\\element\n        strh            w8, [x1], #2            // store to dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n.endm\n\nrgbToUV_neon bgr24, rgb24, element=3\n\nrgbToUV_neon bgra32, rgba32, element=4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "52422133ae9905fdd3c4845a41ac7af9a678b47a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52422133ae9905fdd3c4845a41ac7af9a678b47a/libswscale/aarch64/input.S", "line_start": 241, "line_end": 271}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro rgb_to_yuv_load_rgb src\n        ld3             { v16.16b, v17.16b, v18.16b }, [\\src]\n        uxtl            v19.8h, v16.8b             // v19: r\n        uxtl            v20.8h, v17.8b             // v20: g\n        uxtl            v21.8h, v18.8b             // v21: b\n        uxtl2           v22.8h, v16.16b            // v22: r\n        uxtl2           v23.8h, v17.16b            // v23: g\n        uxtl2           v24.8h, v18.16b            // v24: b\n.endm\n\n.macro rgb_to_yuv_product r, g, b, dst1, dst2, dst, coef0, coef1, coef2, right_shift\n        mov             \\dst1\\().16b, v6.16b                    // dst1 = const_offset\n        mov             \\dst2\\().16b, v6.16b                    // dst2 = const_offset\n        smlal           \\dst1\\().4s, \\coef0\\().4h, \\r\\().4h     // dst1 += rx * r\n        smlal           \\dst1\\().4s, \\coef1\\().4h, \\g\\().4h     // dst1 += gx * g\n        smlal           \\dst1\\().4s, \\coef2\\().4h, \\b\\().4h     // dst1 += bx * b\n        smlal2          \\dst2\\().4s, \\coef0\\().8h, \\r\\().8h     // dst2 += rx * r\n        smlal2          \\dst2\\().4s, \\coef1\\().8h, \\g\\().8h     // dst2 += gx * g\n        smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\nfunction ff_bgr24ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_rgb24ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n4:\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "b8b71be07a7969e9c450bc7f61b7d6135f60e61c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b8b71be07a7969e9c450bc7f61b7d6135f60e61c/libswscale/aarch64/input.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:2", "text": "smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\nfunction ff_bgr24ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w12, w11, [x5]          // w12: ry, w11: gy\n        ldr             w10, [x5, #8]           // w10: by\n        b.gt            4f\n        ret\nendfunc\n\nfunction ff_rgb24ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n4:\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        b.lt            2f\n1:\n        rgb_to_yuv_load_rgb x1\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        sub             w4, w4, #16             // width -= 16\n        add             x1, x1, #48             // src += 48\n        cmp             w4, #16                 // width >= 16 ?\n        stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n        ldrb            w13, [x1]               // w13: r\n        ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #3              // src += 3\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n\n.macro rgb_set_uv_coeff half\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "b8b71be07a7969e9c450bc7f61b7d6135f60e61c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b8b71be07a7969e9c450bc7f61b7d6135f60e61c/libswscale/aarch64/input.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:3", "text": "ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #3              // src += 3\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n\n.macro rgb_set_uv_coeff half\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else\n        mov             w9, #256\n        movk            w9, #64, lsl #16        // w9: const_offset\n    .endif\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        dup             v3.8h, w13\n        dup             v4.8h, w14\n        dup             v5.8h, w15\n        dup             v6.4s, w9\n.endm\n\nfunction ff_bgr24ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_rgb24ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #8\n        rgb_set_uv_coeff half=1\n        b.lt            2f\n1:\n        ld3             { v16.16b, v17.16b, v18.16b }, [x3]\n        uaddlp          v19.8h, v16.16b         // v19: r\n        uaddlp          v20.8h, v17.16b         // v20: g\n        uaddlp          v21.8h, v18.16b         // v21: b\n\n        rgb_to_yuv_product v19, v20, v21, v22, v23, v16, v0, v1, v2, #10", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "b8b71be07a7969e9c450bc7f61b7d6135f60e61c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b8b71be07a7969e9c450bc7f61b7d6135f60e61c/libswscale/aarch64/input.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:4", "text": "endfunc\n\nfunction ff_rgb24ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #8\n        rgb_set_uv_coeff half=1\n        b.lt            2f\n1:\n        ld3             { v16.16b, v17.16b, v18.16b }, [x3]\n        uaddlp          v19.8h, v16.16b         // v19: r\n        uaddlp          v20.8h, v17.16b         // v20: g\n        uaddlp          v21.8h, v18.16b         // v21: b\n\n        rgb_to_yuv_product v19, v20, v21, v22, v23, v16, v0, v1, v2, #10\n        rgb_to_yuv_product v19, v20, v21, v24, v25, v17, v3, v4, v5, #10\n        sub             w5, w5, #8              // width -= 8\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #8                  // width >= 8 ?\n        str             q16, [x0], #16          // store dst_u\n        str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w2, [x3]                // w2: r1\n        ldrb            w4, [x3, #3]            // w4: r2\n        add             w2, w2, w4              // w2 = r1 + r2\n\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #4]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2\n\n        ldrb            w7, [x3, #2]            // w7: b1\n        ldrb            w8, [x3, #5]            // w8: b2\n        add             w7, w7, w8              // w7 = b1 + b2\n\n        smaddl          x8, w2, w10, x9         // dst_u = ru * r + const_offset\n        smaddl          x8, w4, w11, x8         // dst_u += gu * g\n        smaddl          x8, w7, w12, x8         // dst_u += bu * b\n        asr             x8, x8, #10             // dst_u >>= 10\n        strh            w8, [x0], #2            // store dst_u\n\n        smaddl          x8, w2, w13, x9         // dst_v = rv * r + const_offset\n        smaddl          x8, w4, w14, x8         // dst_v += gv * g\n        smaddl          x8, w7, w15, x8         // dst_v += bv * b\n        asr             x8, x8, #10             // dst_v >>= 10\n        sub             w5, w5, #1\n        add             x3, x3, #6              // src += 6\n        strh            w8, [x1], #2            // store dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n\nfunction ff_bgr24ToUV_neon, export=1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "b8b71be07a7969e9c450bc7f61b7d6135f60e61c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b8b71be07a7969e9c450bc7f61b7d6135f60e61c/libswscale/aarch64/input.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:5", "text": "smaddl          x8, w2, w10, x9         // dst_u = ru * r + const_offset\n        smaddl          x8, w4, w11, x8         // dst_u += gu * g\n        smaddl          x8, w7, w12, x8         // dst_u += bu * b\n        asr             x8, x8, #10             // dst_u >>= 10\n        strh            w8, [x0], #2            // store dst_u\n\n        smaddl          x8, w2, w13, x9         // dst_v = rv * r + const_offset\n        smaddl          x8, w4, w14, x8         // dst_v += gv * g\n        smaddl          x8, w7, w15, x8         // dst_v += bv * b\n        asr             x8, x8, #10             // dst_v >>= 10\n        sub             w5, w5, #1\n        add             x3, x3, #6              // src += 6\n        strh            w8, [x1], #2            // store dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n\nfunction ff_bgr24ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w12, w11, [x6, #12]\n        ldp             w10, w15, [x6, #20]\n        ldp             w14, w13, [x6, #28]\n        b               4f\nendfunc\n\nfunction ff_rgb24ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n4:\n        cmp             w5, #16\n        rgb_set_uv_coeff half=0\n        b.lt            2f\n1:\n        rgb_to_yuv_load_rgb x3\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v18, v3, v4, v5, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v19, v3, v4, v5, #9\n        sub             w5, w5, #16\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #16\n        stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "b8b71be07a7969e9c450bc7f61b7d6135f60e61c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b8b71be07a7969e9c450bc7f61b7d6135f60e61c/libswscale/aarch64/input.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:6", "text": "1:\n        rgb_to_yuv_load_rgb x3\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        rgb_to_yuv_product v19, v20, v21, v25, v26, v18, v3, v4, v5, #9\n        rgb_to_yuv_product v22, v23, v24, v27, v28, v19, v3, v4, v5, #9\n        sub             w5, w5, #16\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #16\n        stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b\n        asr             w8, w8, #9              // x8 >>= 9\n        sub             w5, w5, #1              // width--\n        add             x3, x3, #3              // src += 3\n        strh            w8, [x1], #2            // store to dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "b8b71be07a7969e9c450bc7f61b7d6135f60e61c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b8b71be07a7969e9c450bc7f61b7d6135f60e61c/libswscale/aarch64/input.S", "line_start": 201, "line_end": 235}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:1", "text": "/*\n * Copyright (c) 2024 Zhao Zhili <quinkblack@foxmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro rgb24_to_yuv_load_rgb, src\n        ld3             { v16.16b, v17.16b, v18.16b }, [\\src]\n        uxtl            v19.8h, v16.8b             // v19: r\n        uxtl            v20.8h, v17.8b             // v20: g\n        uxtl            v21.8h, v18.8b             // v21: b\n        uxtl2           v22.8h, v16.16b            // v22: r\n        uxtl2           v23.8h, v17.16b            // v23: g\n        uxtl2           v24.8h, v18.16b            // v24: b\n.endm\n\n.macro rgb24_to_yuv_product, r, g, b, dst1, dst2, dst, coef0, coef1, coef2, right_shift\n        mov             \\dst1\\().16b, v6.16b                    // dst1 = const_offset\n        mov             \\dst2\\().16b, v6.16b                    // dst2 = const_offset\n        smlal           \\dst1\\().4s, \\coef0\\().4h, \\r\\().4h     // dst1 += rx * r\n        smlal           \\dst1\\().4s, \\coef1\\().4h, \\g\\().4h     // dst1 += gx * g\n        smlal           \\dst1\\().4s, \\coef2\\().4h, \\b\\().4h     // dst1 += bx * b\n        smlal2          \\dst2\\().4s, \\coef0\\().8h, \\r\\().8h     // dst2 += rx * r\n        smlal2          \\dst2\\().4s, \\coef1\\().8h, \\g\\().8h     // dst2 += gx * g\n        smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\nfunction ff_rgb24ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        b.lt            2f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "9dac8495b0020f7326bbe79efa070a0150109afc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9dac8495b0020f7326bbe79efa070a0150109afc/libswscale/aarch64/input.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:2", "text": "smlal2          \\dst2\\().4s, \\coef2\\().8h, \\b\\().8h     // dst2 += bx * b\n        sqshrn          \\dst\\().4h, \\dst1\\().4s, \\right_shift   // dst_lower_half = dst1 >> right_shift\n        sqshrn2         \\dst\\().8h, \\dst2\\().4s, \\right_shift   // dst_higher_half = dst2 >> right_shift\n.endm\n\nfunction ff_rgb24ToY_neon, export=1\n        cmp             w4, #0                  // check width > 0\n        ldp             w10, w11, [x5]          // w10: ry, w11: gy\n        ldr             w12, [x5, #8]           // w12: by\n        b.le            3f\n\n        mov             w9, #256                // w9 = 1 << (RGB2YUV_SHIFT - 7)\n        movk            w9, #8, lsl #16         // w9 += 32 << (RGB2YUV_SHIFT - 1)\n        dup             v6.4s, w9               // w9: const_offset\n\n        cmp             w4, #16\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        b.lt            2f\n1:\n        rgb24_to_yuv_load_rgb x1\n        rgb24_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb24_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        sub             w4, w4, #16             // width -= 16\n        add             x1, x1, #48             // src += 48\n        cmp             w4, #16                 // width >= 16 ?\n        stp             q16, q17, [x0], #32     // store to dst\n        b.ge            1b\n        cbz             x4, 3f\n2:\n        ldrb            w13, [x1]               // w13: r\n        ldrb            w14, [x1, #1]           // w14: g\n        ldrb            w15, [x1, #2]           // w15: b\n\n        smaddl          x13, w13, w10, x9       // x13 = ry * r + const_offset\n        smaddl          x13, w14, w11, x13      // x13 += gy * g\n        smaddl          x13, w15, w12, x13      // x13 += by * b\n        asr             w13, w13, #9            // x13 >>= 9\n        sub             w4, w4, #1              // width--\n        add             x1, x1, #3              // src += 3\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n\n.macro rgb24_load_uv_coeff half\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else\n        mov             w9, #256\n        movk            w9, #64, lsl #16        // w9: const_offset\n    .endif\n        dup             v0.8h, w10\n        dup             v1.8h, w11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "9dac8495b0020f7326bbe79efa070a0150109afc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9dac8495b0020f7326bbe79efa070a0150109afc/libswscale/aarch64/input.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:3", "text": "add             x1, x1, #3              // src += 3\n        strh            w13, [x0], #2           // store to dst\n        cbnz            w4, 2b\n3:\n        ret\nendfunc\n\n.macro rgb24_load_uv_coeff half\n        ldp             w10, w11, [x6, #12]     // w10: ru, w11: gu\n        ldp             w12, w13, [x6, #20]     // w12: bu, w13: rv\n        ldp             w14, w15, [x6, #28]     // w14: gv, w15: bv\n    .if \\half\n        mov             w9, #512\n        movk            w9, #128, lsl #16       // w9: const_offset\n    .else\n        mov             w9, #256\n        movk            w9, #64, lsl #16        // w9: const_offset\n    .endif\n        dup             v0.8h, w10\n        dup             v1.8h, w11\n        dup             v2.8h, w12\n        dup             v3.8h, w13\n        dup             v4.8h, w14\n        dup             v5.8h, w15\n        dup             v6.4s, w9\n.endm\n\nfunction ff_rgb24ToUV_half_neon, export=1\n        cmp             w5, #0          // check width > 0\n        b.le            3f\n\n        cmp             w5, #8\n        rgb24_load_uv_coeff half=1\n        b.lt            2f\n1:\n        ld3             { v16.16b, v17.16b, v18.16b }, [x3]\n        uaddlp          v19.8h, v16.16b         // v19: r\n        uaddlp          v20.8h, v17.16b         // v20: g\n        uaddlp          v21.8h, v18.16b         // v21: b\n\n        rgb24_to_yuv_product v19, v20, v21, v22, v23, v16, v0, v1, v2, #10\n        rgb24_to_yuv_product v19, v20, v21, v24, v25, v17, v3, v4, v5, #10\n        sub             w5, w5, #8              // width -= 8\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #8                  // width >= 8 ?\n        str             q16, [x0], #16          // store dst_u\n        str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w2, [x3]                // w2: r1\n        ldrb            w4, [x3, #3]            // w4: r2\n        add             w2, w2, w4              // w2 = r1 + r2\n\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #4]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2\n\n        ldrb            w7, [x3, #2]            // w7: b1\n        ldrb            w8, [x3, #5]            // w8: b2", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "9dac8495b0020f7326bbe79efa070a0150109afc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9dac8495b0020f7326bbe79efa070a0150109afc/libswscale/aarch64/input.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:4", "text": "rgb24_to_yuv_product v19, v20, v21, v22, v23, v16, v0, v1, v2, #10\n        rgb24_to_yuv_product v19, v20, v21, v24, v25, v17, v3, v4, v5, #10\n        sub             w5, w5, #8              // width -= 8\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #8                  // width >= 8 ?\n        str             q16, [x0], #16          // store dst_u\n        str             q17, [x1], #16          // store dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w2, [x3]                // w2: r1\n        ldrb            w4, [x3, #3]            // w4: r2\n        add             w2, w2, w4              // w2 = r1 + r2\n\n        ldrb            w4, [x3, #1]            // w4: g1\n        ldrb            w7, [x3, #4]            // w7: g2\n        add             w4, w4, w7              // w4 = g1 + g2\n\n        ldrb            w7, [x3, #2]            // w7: b1\n        ldrb            w8, [x3, #5]            // w8: b2\n        add             w7, w7, w8              // w7 = b1 + b2\n\n        smaddl          x8, w2, w10, x9         // dst_u = ru * r + const_offset\n        smaddl          x8, w4, w11, x8         // dst_u += gu * g\n        smaddl          x8, w7, w12, x8         // dst_u += bu * b\n        asr             x8, x8, #10             // dst_u >>= 10\n        strh            w8, [x0], #2            // store dst_u\n\n        smaddl          x8, w2, w13, x9         // dst_v = rv * r + const_offset\n        smaddl          x8, w4, w14, x8         // dst_v += gv * g\n        smaddl          x8, w7, w15, x8         // dst_v += bv * b\n        asr             x8, x8, #10             // dst_v >>= 10\n        sub             w5, w5, #1\n        add             x3, x3, #6              // src += 6\n        strh            w8, [x1], #2            // store dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc\n\nfunction ff_rgb24ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        cmp             w5, #16\n        rgb24_load_uv_coeff half=0\n        b.lt            2f\n1:\n        rgb24_to_yuv_load_rgb x3\n        rgb24_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb24_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        rgb24_to_yuv_product v19, v20, v21, v25, v26, v18, v3, v4, v5, #9\n        rgb24_to_yuv_product v22, v23, v24, v27, v28, v19, v3, v4, v5, #9\n        sub             w5, w5, #16\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #16\n        stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "9dac8495b0020f7326bbe79efa070a0150109afc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9dac8495b0020f7326bbe79efa070a0150109afc/libswscale/aarch64/input.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/input.S:5", "text": "function ff_rgb24ToUV_neon, export=1\n        cmp             w5, #0                  // check width > 0\n        b.le            3f\n\n        cmp             w5, #16\n        rgb24_load_uv_coeff half=0\n        b.lt            2f\n1:\n        rgb24_to_yuv_load_rgb x3\n        rgb24_to_yuv_product v19, v20, v21, v25, v26, v16, v0, v1, v2, #9\n        rgb24_to_yuv_product v22, v23, v24, v27, v28, v17, v0, v1, v2, #9\n        rgb24_to_yuv_product v19, v20, v21, v25, v26, v18, v3, v4, v5, #9\n        rgb24_to_yuv_product v22, v23, v24, v27, v28, v19, v3, v4, v5, #9\n        sub             w5, w5, #16\n        add             x3, x3, #48             // src += 48\n        cmp             w5, #16\n        stp             q16, q17, [x0], #32     // store to dst_u\n        stp             q18, q19, [x1], #32     // store to dst_v\n        b.ge            1b\n        cbz             w5, 3f\n2:\n        ldrb            w16, [x3]               // w16: r\n        ldrb            w17, [x3, #1]           // w17: g\n        ldrb            w4, [x3, #2]            // w4: b\n\n        smaddl          x8, w16, w10, x9        // x8 = ru * r + const_offset\n        smaddl          x8, w17, w11, x8        // x8 += gu * g\n        smaddl          x8, w4, w12, x8         // x8 += bu * b\n        asr             w8, w8, #9              // x8 >>= 9\n        strh            w8, [x0], #2            // store to dst_u\n\n        smaddl          x8, w16, w13, x9        // x8 = rv * r + const_offset\n        smaddl          x8, w17, w14, x8        // x8 += gv * g\n        smaddl          x8, w4, w15, x8         // x8 += bv * b\n        asr             w8, w8, #9              // x8 >>= 9\n        sub             w5, w5, #1              // width--\n        add             x3, x3, #3              // src += 3\n        strh            w8, [x1], #2            // store to dst_v\n        cbnz            w5, 2b\n3:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/input.S", "license": "LGPL-2.1", "commit": "9dac8495b0020f7326bbe79efa070a0150109afc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/9dac8495b0020f7326bbe79efa070a0150109afc/libswscale/aarch64/input.S", "line_start": 161, "line_end": 202}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_yuv2planeX_10_neon, export=1\n// x0 = filter (int16_t*)\n// w1 = filterSize\n// x2 = src (int16_t**)\n// x3 = dest (uint16_t*)\n// w4 = dstW\n// w5 = big_endian\n// w6 = output_bits\n\n        mov             w8, #27\n        sub             w8, w8, w6                      // shift = 11 + 16 - output_bits\n\n        sub             w9, w8, #1\n        mov             w10, #1\n        lsl             w9, w10, w9                     // val = 1 << (shift - 1)\n\n        dup             v1.4s, w9\n        dup             v2.4s, w9                       // Create vectors with val\n\n        neg             w16, w8\n        dup             v20.4s, w16                     // Create (-shift) vector for right shift\n\n        mov             w10, #1\n        lsl             w10, w10, w6\n        sub             w10, w10, #1                    // (1U << output_bits) - 1\n        dup             v21.4s, w10                     // Create Clip vector for upper bound\n        dup             v27.8h, w10\n\n        mov             x7, #0                          // i = 0\n\n1:\n        cmp             w4, #16                         // Process 16-pixels if available\n        blt             4f\n\n        mov             v3.16b, v1.16b\n        mov             v4.16b, v2.16b\n        mov             v5.16b, v1.16b\n        mov             v6.16b, v2.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:2", "text": "neg             w16, w8\n        dup             v20.4s, w16                     // Create (-shift) vector for right shift\n\n        mov             w10, #1\n        lsl             w10, w10, w6\n        sub             w10, w10, #1                    // (1U << output_bits) - 1\n        dup             v21.4s, w10                     // Create Clip vector for upper bound\n        dup             v27.8h, w10\n\n        mov             x7, #0                          // i = 0\n\n1:\n        cmp             w4, #16                         // Process 16-pixels if available\n        blt             4f\n\n        mov             v3.16b, v1.16b\n        mov             v4.16b, v2.16b\n        mov             v5.16b, v1.16b\n        mov             v6.16b, v2.16b\n\n        mov             w11, w1                         // tmpfilterSize = filterSize\n        mov             x12, x2                         // srcp = src\n        mov             x13, x0                         // filterp = filter\n\n2:                                                      // Filter loop\n        ldp             x14, x15, [x12], #16            // get 2 pointers: src[j] and src[j+1]\n        ldr             s7, [x13], #4                   // load filter coefficients\n        add             x14, x14, x7, lsl #1\n        add             x15, x15, x7, lsl #1\n        ld1             {v16.8h, v17.8h}, [x14]\n        ld1             {v18.8h, v19.8h}, [x15]\n\n        subs            w11, w11, #2                    // tmpfilterSize -= 2\n\n        smlal           v3.4s,  v16.4h, v7.h[0]         // Multiply-accumulate\n        smlal2          v4.4s,  v16.8h, v7.h[0]\n        smlal           v5.4s,  v17.4h, v7.h[0]\n        smlal2          v6.4s,  v17.8h, v7.h[0]\n\n        smlal           v3.4s,  v18.4h, v7.h[1]\n        smlal2          v4.4s,  v18.8h, v7.h[1]\n        smlal           v5.4s,  v19.4h, v7.h[1]\n        smlal2          v6.4s,  v19.8h, v7.h[1]\n\n        b.gt            2b                              // continue filter loop\n\n        sshl            v3.4s,  v3.4s, v20.4s           // Shift results\n        sshl            v4.4s,  v4.4s, v20.4s\n        sshl            v5.4s,  v5.4s, v20.4s\n        sshl            v6.4s,  v6.4s, v20.4s\n\n        sqxtun          v23.4h, v3.4s                   // Narrow and clamp to 0\n        sqxtun2         v23.8h, v4.4s\n        sqxtun          v24.4h, v5.4s\n        sqxtun2         v24.8h, v6.4s\n\n        umin            v23.8h, v23.8h, v27.8h\n        umin            v24.8h, v24.8h, v27.8h", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:3", "text": "smlal           v3.4s,  v18.4h, v7.h[1]\n        smlal2          v4.4s,  v18.8h, v7.h[1]\n        smlal           v5.4s,  v19.4h, v7.h[1]\n        smlal2          v6.4s,  v19.8h, v7.h[1]\n\n        b.gt            2b                              // continue filter loop\n\n        sshl            v3.4s,  v3.4s, v20.4s           // Shift results\n        sshl            v4.4s,  v4.4s, v20.4s\n        sshl            v5.4s,  v5.4s, v20.4s\n        sshl            v6.4s,  v6.4s, v20.4s\n\n        sqxtun          v23.4h, v3.4s                   // Narrow and clamp to 0\n        sqxtun2         v23.8h, v4.4s\n        sqxtun          v24.4h, v5.4s\n        sqxtun2         v24.8h, v6.4s\n\n        umin            v23.8h, v23.8h, v27.8h\n        umin            v24.8h, v24.8h, v27.8h\n\n        cbz             w5, 3f                          // Check if big endian\n        rev16           v23.16b, v23.16b\n        rev16           v24.16b, v24.16b                // Swap bits for big endian\n3:\n        st1             {v23.8h, v24.8h}, [x3], #32\n\n        subs            w4, w4, #16                     // dstW = dstW - 16\n        add             x7, x7, #16                     // i = i + 16\n        b               1b                              // Continue loop\n\n4:\n        cmp             w4, #8                          // Process 8-pixels if available\n        blt             8f\n5:\n        mov             v3.16b, v1.16b\n        mov             v4.16b, v2.16b\n\n        mov             w11, w1                         // tmpfilterSize = filterSize\n        mov             x12, x2                         // srcp = src\n        mov             x13, x0                         // filterp = filter\n\n6:                                                      // Filter loop\n        ldp             x14, x15, [x12], #16\n        ldr             s7, [x13], #4\n        add             x14, x14, x7, lsl #1\n        add             x15, x15, x7, lsl #1\n        ld1             {v5.8h}, [x14]\n        ld1             {v6.8h}, [x15]\n\n        subs            w11, w11, #2                    // tmpfilterSize -= 2\n\n        smlal           v3.4s, v5.4h, v7.h[0]           // Multiply-accumulate\n        smlal2          v4.4s, v5.8h, v7.h[0]\n        smlal           v3.4s, v6.4h, v7.h[1]\n        smlal2          v4.4s, v6.8h, v7.h[1]\n\n        b.gt            6b                              // loop until filterSize consumed\n\n        sshl            v3.4s, v3.4s, v20.4s            // Shift results\n        sshl            v4.4s, v4.4s, v20.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:4", "text": "6:                                                      // Filter loop\n        ldp             x14, x15, [x12], #16\n        ldr             s7, [x13], #4\n        add             x14, x14, x7, lsl #1\n        add             x15, x15, x7, lsl #1\n        ld1             {v5.8h}, [x14]\n        ld1             {v6.8h}, [x15]\n\n        subs            w11, w11, #2                    // tmpfilterSize -= 2\n\n        smlal           v3.4s, v5.4h, v7.h[0]           // Multiply-accumulate\n        smlal2          v4.4s, v5.8h, v7.h[0]\n        smlal           v3.4s, v6.4h, v7.h[1]\n        smlal2          v4.4s, v6.8h, v7.h[1]\n\n        b.gt            6b                              // loop until filterSize consumed\n\n        sshl            v3.4s, v3.4s, v20.4s            // Shift results\n        sshl            v4.4s, v4.4s, v20.4s\n\n        sqxtun          v25.4h, v3.4s                   // Narrow and clamp to 0\n        sqxtun2         v25.8h, v4.4s\n\n        umin            v25.8h, v25.8h, v27.8h\n\n        cbz             w5, 7f                          // Check if big endian\n        rev16           v25.16b, v25.16b\n\n7:\n        st1             {v25.8h}, [x3], #16             // Store 8 pixels\n\n        subs            w4, w4, #8                      // dstW = dstW - 8\n        add             x7, x7, #8                      // i = i + 8\n8:\n        cbz             w4, 12f                         // Scalar loop for remaining pixels\n9:\n        mov             w11, w1                         // tmpfilterSize = filterSize\n        mov             x12, x2                         // srcp = src\n        mov             x13, x0                         // filterp = filter\n        sxtw            x9, w9\n        mov             x17, x9\n\n10:                                                     // Filter loop\n        ldr             x14, [x12], #8                  // Load src pointer\n        ldrsh           w15, [x13], #2                  // Load filter coefficient\n        add             x14, x14, x7, lsl #1            // Add pixel offset\n        ldrh            w16, [x14]\n\n        sxtw            x16, w16\n        sxtw            x15, w15\n        madd            x17, x16, x15, x17\n\n        subs            w11, w11, #1                    // tmpfilterSize -= 1\n        b.gt            10b                             // loop until filterSize consumed\n\n        sxtw            x8, w8\n        asr             x17, x17, x8\n        cmp             x17, #0\n        csel            x17, x17, xzr, ge               // Clamp to 0 if negative", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:5", "text": "sxtw            x9, w9\n        mov             x17, x9\n\n10:                                                     // Filter loop\n        ldr             x14, [x12], #8                  // Load src pointer\n        ldrsh           w15, [x13], #2                  // Load filter coefficient\n        add             x14, x14, x7, lsl #1            // Add pixel offset\n        ldrh            w16, [x14]\n\n        sxtw            x16, w16\n        sxtw            x15, w15\n        madd            x17, x16, x15, x17\n\n        subs            w11, w11, #1                    // tmpfilterSize -= 1\n        b.gt            10b                             // loop until filterSize consumed\n\n        sxtw            x8, w8\n        asr             x17, x17, x8\n        cmp             x17, #0\n        csel            x17, x17, xzr, ge               // Clamp to 0 if negative\n\n        sxtw            x10, w10\n        cmp             x17, x10\n        csel            x17, x10, x17, gt               // Clamp to max if greater than max\n\n        cbz             w5, 11f                         // Check if big endian\n        rev16           x17, x17                        // Swap bits for big endian\n11:\n        strh            w17, [x3], #2\n\n        subs            w4, w4, #1                      // dstW = dstW - 1\n        add             x7, x7, #1                      // i = i + 1\n        b.gt            9b                              // Loop if more pixels\n\n12:\n        ret\nendfunc\n\nfunction ff_yuv2planeX_8_neon, export=1\n// x0 - const int16_t *filter,\n// x1 - int filterSize,\n// x2 - const int16_t **src,\n// x3 - uint8_t *dest,\n// w4 - int dstW,\n// x5 - const uint8_t *dither,\n// w6 - int offset\n\n        ld1             {v0.8b}, [x5]                   // load 8x8-bit dither\n        and             w6, w6, #7\n        cbz             w6, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:      uxtl            v0.8h, v0.8b                    // extend dither to 16-bit\n        ushll           v1.4s, v0.4h, #12               // extend dither to 32-bit with left shift by 12 (part 1)\n        ushll2          v2.4s, v0.8h, #12               // extend dither to 32-bit with left shift by 12 (part 2)\n        cmp             w1, #8                          // if filterSize == 8, branch to specialized version\n        b.eq            6f\n        cmp             w1, #4                          // if filterSize == 4, branch to specialized version\n        b.eq            8f\n        cmp             w1, #2                          // if filterSize == 2, branch to specialized version\n        b.eq            10f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:6", "text": "// x1 - int filterSize,\n// x2 - const int16_t **src,\n// x3 - uint8_t *dest,\n// w4 - int dstW,\n// x5 - const uint8_t *dither,\n// w6 - int offset\n\n        ld1             {v0.8b}, [x5]                   // load 8x8-bit dither\n        and             w6, w6, #7\n        cbz             w6, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:      uxtl            v0.8h, v0.8b                    // extend dither to 16-bit\n        ushll           v1.4s, v0.4h, #12               // extend dither to 32-bit with left shift by 12 (part 1)\n        ushll2          v2.4s, v0.8h, #12               // extend dither to 32-bit with left shift by 12 (part 2)\n        cmp             w1, #8                          // if filterSize == 8, branch to specialized version\n        b.eq            6f\n        cmp             w1, #4                          // if filterSize == 4, branch to specialized version\n        b.eq            8f\n        cmp             w1, #2                          // if filterSize == 2, branch to specialized version\n        b.eq            10f\n\n// The filter size does not match of the of specialized implementations. It is either even or odd. If it is even\n// then use the first section below.\n        mov             x7, #0                          // i = 0\n        tbnz            w1, #0, 4f                      // if filterSize % 2 != 0 branch to specialized version\n// fs % 2 == 0\n2:      mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter\n3:      ldp             x11, x12, [x9], #16             // get 2 pointers: src[j] and src[j+1]\n        ldr             s7, [x10], #4                   // read 2x16-bit coeff X and Y at filter[j] and filter[j+1]\n        add             x11, x11, x7, lsl #1            // &src[j  ][i]\n        add             x12, x12, x7, lsl #1            // &src[j+1][i]\n        ld1             {v5.8h}, [x11]                  // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        ld1             {v6.8h}, [x12]                  // read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n        smlal           v3.4s, v5.4h, v7.h[0]           // val0 += {A,B,C,D} * X\n        smlal2          v4.4s, v5.8h, v7.h[0]           // val1 += {E,F,G,H} * X\n        smlal           v3.4s, v6.4h, v7.h[1]           // val0 += {I,J,K,L} * Y\n        smlal2          v4.4s, v6.8h, v7.h[1]           // val1 += {M,N,O,P} * Y\n        subs            w8, w8, #2                      // tmpfilterSize -= 2\n        b.gt            3b                              // loop until filterSize consumed\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        add             x7, x7, #8                      // i += 8\n        b.gt            2b                              // loop until width consumed\n        ret\n\n// If filter size is odd (most likely == 1), then use this section.\n// fs % 2 != 0\n4:      mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:7", "text": "smlal2          v4.4s, v6.8h, v7.h[1]           // val1 += {M,N,O,P} * Y\n        subs            w8, w8, #2                      // tmpfilterSize -= 2\n        b.gt            3b                              // loop until filterSize consumed\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        add             x7, x7, #8                      // i += 8\n        b.gt            2b                              // loop until width consumed\n        ret\n\n// If filter size is odd (most likely == 1), then use this section.\n// fs % 2 != 0\n4:      mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter\n5:      ldr             x11, [x9], #8                   // get 1 pointer: src[j]\n        ldr             h6, [x10], #2                   // read 1 16 bit coeff X at filter[j]\n        add             x11, x11, x7, lsl #1            // &src[j  ][i]\n        ld1             {v5.8h}, [x11]                  // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        smlal           v3.4s, v5.4h, v6.h[0]           // val0 += {A,B,C,D} * X\n        smlal2          v4.4s, v5.8h, v6.h[0]           // val1 += {E,F,G,H} * X\n        subs            w8, w8, #1                      // tmpfilterSize -= 2\n        b.gt            5b                              // loop until filterSize consumed\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        add             x7, x7, #8                      // i += 8\n        b.gt            4b                              // loop until width consumed\n        ret\n\n6:      // fs=8\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n        ldp             x7, x9, [x2, #16]               // load 2 pointers: src[j+2] and src[j+3]\n        ldp             x10, x11, [x2, #32]             // load 2 pointers: src[j+4] and src[j+5]\n        ldp             x12, x13, [x2, #48]             // load 2 pointers: src[j+6] and src[j+7]\n\n        // load 8x16-bit values for filter[j], where j=0..7\n        ld1             {v6.8h}, [x0]\n7:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n        ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n        ld1             {v28.8h}, [x10], #16            // load 8x16-bit values for src[j + 4][i + {0..7}]\n        ld1             {v29.8h}, [x11], #16            // load 8x16-bit values for src[j + 5][i + {0..7}]\n        ld1             {v30.8h}, [x12], #16            // load 8x16-bit values for src[j + 6][i + {0..7}]\n        ld1             {v31.8h}, [x13], #16            // load 8x16-bit values for src[j + 7][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:8", "text": "ldp             x7, x9, [x2, #16]               // load 2 pointers: src[j+2] and src[j+3]\n        ldp             x10, x11, [x2, #32]             // load 2 pointers: src[j+4] and src[j+5]\n        ldp             x12, x13, [x2, #48]             // load 2 pointers: src[j+6] and src[j+7]\n\n        // load 8x16-bit values for filter[j], where j=0..7\n        ld1             {v6.8h}, [x0]\n7:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n        ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n        ld1             {v28.8h}, [x10], #16            // load 8x16-bit values for src[j + 4][i + {0..7}]\n        ld1             {v29.8h}, [x11], #16            // load 8x16-bit values for src[j + 5][i + {0..7}]\n        ld1             {v30.8h}, [x12], #16            // load 8x16-bit values for src[j + 6][i + {0..7}]\n        ld1             {v31.8h}, [x13], #16            // load 8x16-bit values for src[j + 7][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n        smlal           v3.4s, v28.4h, v6.h[4]          // val0 += src[4][i + {0..3}] * filter[4]\n        smlal2          v4.4s, v28.8h, v6.h[4]          // val1 += src[4][i + {4..7}] * filter[4]\n        smlal           v3.4s, v29.4h, v6.h[5]          // val0 += src[5][i + {0..3}] * filter[5]\n        smlal2          v4.4s, v29.8h, v6.h[5]          // val1 += src[5][i + {4..7}] * filter[5]\n        smlal           v3.4s, v30.4h, v6.h[6]          // val0 += src[6][i + {0..3}] * filter[6]\n        smlal2          v4.4s, v30.8h, v6.h[6]          // val1 += src[6][i + {4..7}] * filter[6]\n        smlal           v3.4s, v31.4h, v6.h[7]          // val0 += src[7][i + {0..3}] * filter[7]\n        smlal2          v4.4s, v31.8h, v6.h[7]          // val1 += src[7][i + {4..7}] * filter[7]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        subs            w4, w4, #8                      // dstW -= 8\n        st1             {v3.8b}, [x3], #8               // write to destination\n        b.gt            7b                              // loop until width consumed\n        ret\n\n8:      // fs=4\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n        ldp             x7, x9, [x2, #16]               // load 2 pointers: src[j+2] and src[j+3]\n\n        // load 4x16-bit values for filter[j], where j=0..3 and replicated across lanes\n        ld1             {v6.4h}, [x0]\n9:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n        ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:9", "text": "st1             {v3.8b}, [x3], #8               // write to destination\n        b.gt            7b                              // loop until width consumed\n        ret\n\n8:      // fs=4\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n        ldp             x7, x9, [x2, #16]               // load 2 pointers: src[j+2] and src[j+3]\n\n        // load 4x16-bit values for filter[j], where j=0..3 and replicated across lanes\n        ld1             {v6.4h}, [x0]\n9:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n        ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            9b                              // loop until width consumed\n        ret\n\n10:     // fs=2\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n\n        // load 2x16-bit values for filter[j], where j=0..1 and replicated across lanes\n        ldr             s6, [x0]\n11:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:10", "text": "ldr             s6, [x0]\n11:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2plane1_8_neon, export=1\n// x0 - const int16_t *src,\n// x1 - uint8_t *dest,\n// w2 - int dstW,\n// x3 - const uint8_t *dither,\n// w4 - int offset\n        ld1             {v0.8b}, [x3]                   // load 8x8-bit dither\n        and             w4, w4, #7\n        cbz             w4, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:\n        uxtl            v0.8h, v0.8b                    // extend dither to 32-bit\n2:\n        ld1             {v3.8h}, [x0], #16              // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        subs            w2, w2, #8                      // dstW -= 8\n        shadd           v1.8h, v0.8h, v3.8h             // v1 = (v0 + v3) >> 1\n        sqshrun         v2.8b, v1.8h, #6                // clip_uint8(v1 >> 6)\n\n        st1             {v2.8b}, [x1], #8               // write to destination\n        b.gt            2b                              // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2nv12cX_neon_asm, export=1\n// w0 - isSwapped\n// x1 - uint8_t *chrDither\n// x2 - int16_t *chrFilter\n// x3 - int chrFilterSize\n// x4 - int16_t **chrUSrc\n// x5 - int16_t **chrVSrc\n// x6 - uint8_t *dest\n// x7 - int chrDstW\n\n        stp             x19, x20, [sp, #-32]!\n        stp             x21, x22, [sp, #16]\n\n        ld1             {v0.8b}, [x1]                   // chrDither[0..7]\n        ext             v1.8b, v0.8b, v0.8b, #3         // Rotate for V: (i+3)&7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:11", "text": "st1             {v2.8b}, [x1], #8               // write to destination\n        b.gt            2b                              // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2nv12cX_neon_asm, export=1\n// w0 - isSwapped\n// x1 - uint8_t *chrDither\n// x2 - int16_t *chrFilter\n// x3 - int chrFilterSize\n// x4 - int16_t **chrUSrc\n// x5 - int16_t **chrVSrc\n// x6 - uint8_t *dest\n// x7 - int chrDstW\n\n        stp             x19, x20, [sp, #-32]!\n        stp             x21, x22, [sp, #16]\n\n        ld1             {v0.8b}, [x1]                   // chrDither[0..7]\n        ext             v1.8b, v0.8b, v0.8b, #3         // Rotate for V: (i+3)&7\n\n        uxtl            v0.8h, v0.8b\n        uxtl            v1.8h, v1.8b\n\n        ushll           v2.4s, v0.4h, #12               // U dither low\n        ushll2          v3.4s, v0.8h, #12               // U dither high\n        ushll           v4.4s, v1.4h, #12               // V dither low\n        ushll2          v5.4s, v1.8h, #12               // V dither high\n\n        mov             x8, #0                          // i = 0\n1:\n        cmp             w7, #16\n        blt             5f\n\n        mov             v16.16b, v2.16b                 // U acc low\n        mov             v17.16b, v3.16b                 // U acc high\n        mov             v18.16b, v4.16b                 // V acc low\n        mov             v19.16b, v5.16b                 // V acc high\n\n        mov             v20.16b, v2.16b\n        mov             v21.16b, v3.16b\n        mov             v22.16b, v4.16b\n        mov             v23.16b, v5.16b\n\n        mov             w9, w3                          // chrFilterSize counter\n        mov             x10, x2                         // chrFilter pointer\n        mov             x11, x4                         // chrUSrc base\n        mov             x12, x5                         // chrVSrc base\n\n2:\n        ldr             h6, [x10], #2                   // Load filter coefficient\n\n        ldr             x13, [x11], #8                  // chrUSrc[j]\n        ldr             x14, [x12], #8                  // chrVSrc[j]\n        add             x13, x13, x8, lsl #1            // &chrUSrc[j][i]\n        add             x14, x14, x8, lsl #1            // &chrVSrc[j][i]\n        add             x15, x13, #16\n        add             x16, x14, #16\n\n        ld1             {v24.8h}, [x13]                 // U samples 0-7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:12", "text": "mov             v21.16b, v3.16b\n        mov             v22.16b, v4.16b\n        mov             v23.16b, v5.16b\n\n        mov             w9, w3                          // chrFilterSize counter\n        mov             x10, x2                         // chrFilter pointer\n        mov             x11, x4                         // chrUSrc base\n        mov             x12, x5                         // chrVSrc base\n\n2:\n        ldr             h6, [x10], #2                   // Load filter coefficient\n\n        ldr             x13, [x11], #8                  // chrUSrc[j]\n        ldr             x14, [x12], #8                  // chrVSrc[j]\n        add             x13, x13, x8, lsl #1            // &chrUSrc[j][i]\n        add             x14, x14, x8, lsl #1            // &chrVSrc[j][i]\n        add             x15, x13, #16\n        add             x16, x14, #16\n\n        ld1             {v24.8h}, [x13]                 // U samples 0-7\n        ld1             {v25.8h}, [x14]                 // V samples 0-7\n\n        ld1             {v26.8h}, [x15]                 // U samples 8-15\n        ld1             {v27.8h}, [x16]                 // V samples 8-15\n        subs            w9, w9, #1\n\n        smlal           v16.4s, v24.4h, v6.h[0]\n        smlal2          v17.4s, v24.8h, v6.h[0]\n        smlal           v18.4s, v25.4h, v6.h[0]\n        smlal2          v19.4s, v25.8h, v6.h[0]\n\n        smlal           v20.4s, v26.4h, v6.h[0]\n        smlal2          v21.4s, v26.8h, v6.h[0]\n        smlal           v22.4s, v27.4h, v6.h[0]\n        smlal2          v23.4s, v27.8h, v6.h[0]\n\n        b.gt            2b\n\n        sqshrun         v24.4h, v16.4s, #16             // Process and store first 8 pixels\n        sqshrun2        v24.8h, v17.4s, #16\n        sqshrun         v25.4h, v18.4s, #16\n        sqshrun2        v25.8h, v19.4s, #16\n\n        sqshrun         v26.4h, v20.4s, #16             // Process and store next 8 pixels\n        sqshrun2        v26.8h, v21.4s, #16\n        sqshrun         v27.4h, v22.4s, #16\n        sqshrun2        v27.8h, v23.4s, #16\n\n        cbz             w0, 3f\n\n        uqshrn          v28.8b, v24.8h, #3              // Storing U\n        uqshrn2         v28.16b, v26.8h, #3\n        uqshrn          v29.8b, v25.8h, #3              // Storing V\n        uqshrn2         v29.16b, v27.8h, #3\n\n        st2             {v28.16b, v29.16b}, [x6], #32\n        b               4f\n3:\n        uqshrn          v28.8b, v25.8h, #3              // Storing V\n        uqshrn2         v28.16b, v27.8h, #3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:13", "text": "sqshrun         v25.4h, v18.4s, #16\n        sqshrun2        v25.8h, v19.4s, #16\n\n        sqshrun         v26.4h, v20.4s, #16             // Process and store next 8 pixels\n        sqshrun2        v26.8h, v21.4s, #16\n        sqshrun         v27.4h, v22.4s, #16\n        sqshrun2        v27.8h, v23.4s, #16\n\n        cbz             w0, 3f\n\n        uqshrn          v28.8b, v24.8h, #3              // Storing U\n        uqshrn2         v28.16b, v26.8h, #3\n        uqshrn          v29.8b, v25.8h, #3              // Storing V\n        uqshrn2         v29.16b, v27.8h, #3\n\n        st2             {v28.16b, v29.16b}, [x6], #32\n        b               4f\n3:\n        uqshrn          v28.8b, v25.8h, #3              // Storing V\n        uqshrn2         v28.16b, v27.8h, #3\n        uqshrn          v29.8b, v24.8h, #3              // Storing U\n        uqshrn2         v29.16b, v26.8h, #3\n\n        st2             {v28.16b, v29.16b}, [x6], #32\n4:\n        subs            w7, w7, #16\n        add             x8, x8, #16\n        b.gt            1b\n\n5:\n        cmp             w7, #8\n        blt             10f\n6:\n        mov             v16.16b, v2.16b                 // U acc low\n        mov             v17.16b, v3.16b                 // U acc high\n        mov             v18.16b, v4.16b                 // V acc low\n        mov             v19.16b, v5.16b                 // V acc high\n\n        mov             w9, w3                          // chrFilterSize counter\n        mov             x10, x2                         // chrFilter pointer\n        mov             x11, x4                         // chrUSrc base\n        mov             x12, x5                         // chrVSrc base\n\n7:\n        ldr             h6, [x10], #2                   // Load filter coefficient\n\n        ldr             x13, [x11], #8                  // chrUSrc[j]\n        ldr             x14, [x12], #8                  // chrVSrc[j]\n        add             x13, x13, x8, lsl #1            // &chrUSrc[j][i]\n        add             x14, x14, x8, lsl #1            // &chrVSrc[j][i]\n\n        ld1             {v20.8h}, [x13]                 // U samples\n        ld1             {v21.8h}, [x14]                 // V samples\n        subs            w9, w9, #1\n\n        smlal           v16.4s, v20.4h, v6.h[0]\n        smlal2          v17.4s, v20.8h, v6.h[0]\n        smlal           v18.4s, v21.4h, v6.h[0]\n        smlal2          v19.4s, v21.8h, v6.h[0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:14", "text": "mov             x11, x4                         // chrUSrc base\n        mov             x12, x5                         // chrVSrc base\n\n7:\n        ldr             h6, [x10], #2                   // Load filter coefficient\n\n        ldr             x13, [x11], #8                  // chrUSrc[j]\n        ldr             x14, [x12], #8                  // chrVSrc[j]\n        add             x13, x13, x8, lsl #1            // &chrUSrc[j][i]\n        add             x14, x14, x8, lsl #1            // &chrVSrc[j][i]\n\n        ld1             {v20.8h}, [x13]                 // U samples\n        ld1             {v21.8h}, [x14]                 // V samples\n        subs            w9, w9, #1\n\n        smlal           v16.4s, v20.4h, v6.h[0]\n        smlal2          v17.4s, v20.8h, v6.h[0]\n        smlal           v18.4s, v21.4h, v6.h[0]\n        smlal2          v19.4s, v21.8h, v6.h[0]\n\n        b.gt            7b\n\n        sqshrun         v26.4h, v16.4s, #16             // Final processing and store\n        sqshrun2        v26.8h, v17.4s, #16\n        sqshrun         v27.4h, v18.4s, #16\n        sqshrun2        v27.8h, v19.4s, #16\n\n        cbz             w0, 8f\n        uqshrn          v28.8b, v26.8h, #3              // Storing U\n        uqshrn          v29.8b, v27.8h, #3              // Storing V\n        st2             {v28.8b, v29.8b}, [x6], #16\n        b               9f\n8:\n        uqshrn          v28.8b, v27.8h, #3              // Storing V\n        uqshrn          v29.8b, v26.8h, #3              // Storing U\n        st2             {v28.8b, v29.8b}, [x6], #16\n9:\n        subs            w7, w7, #8\n        add             x8, x8, #8\n\n10:\n        cbz             w7, 15f                         // Scalar loop\n\n11:\n        and             x15, x8, #7\n        ldrb            w9, [x1, x15]\n        sxtw            x9, w9\n        lsl             x9, x9, #12                     // u = chrDither[i & 7] << 12;\n\n        add             x15, x8, #3\n        and             x15, x15, #7\n        ldrb            w10, [x1, x15]\n        sxtw            x10, w10\n        lsl             x10, x10, #12                   // v = chrDither[(i + 3) & 7] << 12;\n\n        mov             w11, w3                         // chrFilterSize counter\n        mov             x12, x2                         // chrFilter pointer\n        mov             x13, x4                         // chrUSrc base\n        mov             x14, x5                         // chrVSrc base", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:15", "text": "10:\n        cbz             w7, 15f                         // Scalar loop\n\n11:\n        and             x15, x8, #7\n        ldrb            w9, [x1, x15]\n        sxtw            x9, w9\n        lsl             x9, x9, #12                     // u = chrDither[i & 7] << 12;\n\n        add             x15, x8, #3\n        and             x15, x15, #7\n        ldrb            w10, [x1, x15]\n        sxtw            x10, w10\n        lsl             x10, x10, #12                   // v = chrDither[(i + 3) & 7] << 12;\n\n        mov             w11, w3                         // chrFilterSize counter\n        mov             x12, x2                         // chrFilter pointer\n        mov             x13, x4                         // chrUSrc base\n        mov             x14, x5                         // chrVSrc base\n\n12:\n        ldrsh           x16, [x12], #2\n\n        ldr             x17, [x13], #8                  // chrUSrc[j]\n        ldr             x19, [x14], #8                  // chrVSrc[j]\n        add             x17, x17, x8, lsl #1            // &chrUSrc[j][i]\n        add             x19, x19, x8, lsl #1            // &chrVSrc[j][i]\n\n        ldrsh           x20, [x17]\n        ldrsh           x21, [x19]\n\n        madd            x9, x16, x20, x9\n        madd            x10, x16, x21, x10\n\n        subs            w11, w11, #1\n        b.gt            12b\n\n        asr             x9, x9, #19                     // Process and store U and V\n        asr             x10, x10, #19\n\n        cmp             x9, #0\n        csel            x9, x9, xzr, ge\n        cmp             x10, #0\n        csel            x10, x10, xzr, ge\n\n        mov             x22, #1\n        lsl             x22, x22, #8\n        sub             x22, x22, #1\n\n        cmp             x9, x22\n        csel            x9, x22, x9, gt\n        cmp             x10, x22\n        csel            x10, x22, x10, gt\n\n        cbz             w0, 13f\n        strb            w9, [x6], #1                    // Storing U\n        strb            w10, [x6], #1                   // Storing V\n        b               14f\n13:\n        strb            w10, [x6], #1                   // Storing V", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:16", "text": "cmp             x9, #0\n        csel            x9, x9, xzr, ge\n        cmp             x10, #0\n        csel            x10, x10, xzr, ge\n\n        mov             x22, #1\n        lsl             x22, x22, #8\n        sub             x22, x22, #1\n\n        cmp             x9, x22\n        csel            x9, x22, x9, gt\n        cmp             x10, x22\n        csel            x10, x22, x10, gt\n\n        cbz             w0, 13f\n        strb            w9, [x6], #1                    // Storing U\n        strb            w10, [x6], #1                   // Storing V\n        b               14f\n13:\n        strb            w10, [x6], #1                   // Storing V\n        strb            w9, [x6], #1                    // Storing U\n\n14:\n        subs            w7, w7, #1\n        add             x8, x8, #1\n        b.gt            11b\n15:\n        ldp             x21, x22, [sp, #16]\n        ldp             x19, x20, [sp], #32\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/output.S", "line_start": 601, "line_end": 631}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:10", "text": "ldr             s6, [x0]\n11:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2plane1_8_neon, export=1\n// x0 - const int16_t *src,\n// x1 - uint8_t *dest,\n// w2 - int dstW,\n// x3 - const uint8_t *dither,\n// w4 - int offset\n        ld1             {v0.8b}, [x3]                   // load 8x8-bit dither\n        and             w4, w4, #7\n        cbz             w4, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:\n        uxtl            v0.8h, v0.8b                    // extend dither to 32-bit\n2:\n        ld1             {v3.8h}, [x0], #16              // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        subs            w2, w2, #8                      // dstW -= 8\n        shadd           v1.8h, v0.8h, v3.8h             // v1 = (v0 + v3) >> 1\n        sqshrun         v2.8b, v1.8h, #6                // clip_uint8(v1 >> 6)\n\n        st1             {v2.8b}, [x1], #8               // write to destination\n        b.gt            2b                              // loop until width consumed\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "49477972b7175284663c9ef4124345c71dc9c7a1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/49477972b7175284663c9ef4124345c71dc9c7a1/libswscale/aarch64/output.S", "line_start": 361, "line_end": 404}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_yuv2planeX_8_neon, export=1\n// x0 - const int16_t *filter,\n// x1 - int filterSize,\n// x2 - const int16_t **src,\n// x3 - uint8_t *dest,\n// w4 - int dstW,\n// x5 - const uint8_t *dither,\n// w6 - int offset\n\n        ld1             {v0.8b}, [x5]                   // load 8x8-bit dither\n        and             w6, w6, #7\n        cbz             w6, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:      uxtl            v0.8h, v0.8b                    // extend dither to 16-bit\n        ushll           v1.4s, v0.4h, #12               // extend dither to 32-bit with left shift by 12 (part 1)\n        ushll2          v2.4s, v0.8h, #12               // extend dither to 32-bit with left shift by 12 (part 2)\n        cmp             w1, #8                          // if filterSize == 8, branch to specialized version\n        b.eq            6f\n        cmp             w1, #4                          // if filterSize == 4, branch to specialized version\n        b.eq            8f\n        cmp             w1, #2                          // if filterSize == 2, branch to specialized version\n        b.eq            10f\n\n// The filter size does not match of the of specialized implementations. It is either even or odd. If it is even\n// then use the first section below.\n        mov             x7, #0                          // i = 0\n        tbnz            w1, #0, 4f                      // if filterSize % 2 != 0 branch to specialized version\n// fs % 2 == 0\n2:      mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter\n3:      ldp             x11, x12, [x9], #16             // get 2 pointers: src[j] and src[j+1]\n        ldr             s7, [x10], #4                   // read 2x16-bit coeff X and Y at filter[j] and filter[j+1]\n        add             x11, x11, x7, lsl #1            // &src[j  ][i]\n        add             x12, x12, x7, lsl #1            // &src[j+1][i]\n        ld1             {v5.8h}, [x11]                  // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "e25a19fc7cfff1243bcc12c50a0f2fb026362df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e25a19fc7cfff1243bcc12c50a0f2fb026362df2/libswscale/aarch64/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:2", "text": "cmp             w1, #4                          // if filterSize == 4, branch to specialized version\n        b.eq            8f\n        cmp             w1, #2                          // if filterSize == 2, branch to specialized version\n        b.eq            10f\n\n// The filter size does not match of the of specialized implementations. It is either even or odd. If it is even\n// then use the first section below.\n        mov             x7, #0                          // i = 0\n        tbnz            w1, #0, 4f                      // if filterSize % 2 != 0 branch to specialized version\n// fs % 2 == 0\n2:      mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter\n3:      ldp             x11, x12, [x9], #16             // get 2 pointers: src[j] and src[j+1]\n        ldr             s7, [x10], #4                   // read 2x16-bit coeff X and Y at filter[j] and filter[j+1]\n        add             x11, x11, x7, lsl #1            // &src[j  ][i]\n        add             x12, x12, x7, lsl #1            // &src[j+1][i]\n        ld1             {v5.8h}, [x11]                  // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        ld1             {v6.8h}, [x12]                  // read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n        smlal           v3.4s, v5.4h, v7.h[0]           // val0 += {A,B,C,D} * X\n        smlal2          v4.4s, v5.8h, v7.h[0]           // val1 += {E,F,G,H} * X\n        smlal           v3.4s, v6.4h, v7.h[1]           // val0 += {I,J,K,L} * Y\n        smlal2          v4.4s, v6.8h, v7.h[1]           // val1 += {M,N,O,P} * Y\n        subs            w8, w8, #2                      // tmpfilterSize -= 2\n        b.gt            3b                              // loop until filterSize consumed\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        add             x7, x7, #8                      // i += 8\n        b.gt            2b                              // loop until width consumed\n        ret\n\n// If filter size is odd (most likely == 1), then use this section.\n// fs % 2 != 0\n4:      mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter\n5:      ldr             x11, [x9], #8                   // get 1 pointer: src[j]\n        ldr             h6, [x10], #2                   // read 1 16 bit coeff X at filter[j]\n        add             x11, x11, x7, lsl #1            // &src[j  ][i]\n        ld1             {v5.8h}, [x11]                  // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        smlal           v3.4s, v5.4h, v6.h[0]           // val0 += {A,B,C,D} * X\n        smlal2          v4.4s, v5.8h, v6.h[0]           // val1 += {E,F,G,H} * X\n        subs            w8, w8, #1                      // tmpfilterSize -= 2\n        b.gt            5b                              // loop until filterSize consumed\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        add             x7, x7, #8                      // i += 8\n        b.gt            4b                              // loop until width consumed", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "e25a19fc7cfff1243bcc12c50a0f2fb026362df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e25a19fc7cfff1243bcc12c50a0f2fb026362df2/libswscale/aarch64/output.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:3", "text": "mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n        mov             w8, w1                          // tmpfilterSize = filterSize\n        mov             x9, x2                          // srcp    = src\n        mov             x10, x0                         // filterp = filter\n5:      ldr             x11, [x9], #8                   // get 1 pointer: src[j]\n        ldr             h6, [x10], #2                   // read 1 16 bit coeff X at filter[j]\n        add             x11, x11, x7, lsl #1            // &src[j  ][i]\n        ld1             {v5.8h}, [x11]                  // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        smlal           v3.4s, v5.4h, v6.h[0]           // val0 += {A,B,C,D} * X\n        smlal2          v4.4s, v5.8h, v6.h[0]           // val1 += {E,F,G,H} * X\n        subs            w8, w8, #1                      // tmpfilterSize -= 2\n        b.gt            5b                              // loop until filterSize consumed\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        add             x7, x7, #8                      // i += 8\n        b.gt            4b                              // loop until width consumed\n        ret\n\n6:      // fs=8\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n        ldp             x7, x9, [x2, #16]               // load 2 pointers: src[j+2] and src[j+3]\n        ldp             x10, x11, [x2, #32]             // load 2 pointers: src[j+4] and src[j+5]\n        ldp             x12, x13, [x2, #48]             // load 2 pointers: src[j+6] and src[j+7]\n\n        // load 8x16-bit values for filter[j], where j=0..7\n        ld1             {v6.8h}, [x0]\n7:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n        ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n        ld1             {v28.8h}, [x10], #16            // load 8x16-bit values for src[j + 4][i + {0..7}]\n        ld1             {v29.8h}, [x11], #16            // load 8x16-bit values for src[j + 5][i + {0..7}]\n        ld1             {v30.8h}, [x12], #16            // load 8x16-bit values for src[j + 6][i + {0..7}]\n        ld1             {v31.8h}, [x13], #16            // load 8x16-bit values for src[j + 7][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n        smlal           v3.4s, v28.4h, v6.h[4]          // val0 += src[4][i + {0..3}] * filter[4]\n        smlal2          v4.4s, v28.8h, v6.h[4]          // val1 += src[4][i + {4..7}] * filter[4]\n        smlal           v3.4s, v29.4h, v6.h[5]          // val0 += src[5][i + {0..3}] * filter[5]\n        smlal2          v4.4s, v29.8h, v6.h[5]          // val1 += src[5][i + {4..7}] * filter[5]\n        smlal           v3.4s, v30.4h, v6.h[6]          // val0 += src[6][i + {0..3}] * filter[6]\n        smlal2          v4.4s, v30.8h, v6.h[6]          // val1 += src[6][i + {4..7}] * filter[6]\n        smlal           v3.4s, v31.4h, v6.h[7]          // val0 += src[7][i + {0..3}] * filter[7]\n        smlal2          v4.4s, v31.8h, v6.h[7]          // val1 += src[7][i + {4..7}] * filter[7]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "e25a19fc7cfff1243bcc12c50a0f2fb026362df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e25a19fc7cfff1243bcc12c50a0f2fb026362df2/libswscale/aarch64/output.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:4", "text": "ld1             {v30.8h}, [x12], #16            // load 8x16-bit values for src[j + 6][i + {0..7}]\n        ld1             {v31.8h}, [x13], #16            // load 8x16-bit values for src[j + 7][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n        smlal           v3.4s, v28.4h, v6.h[4]          // val0 += src[4][i + {0..3}] * filter[4]\n        smlal2          v4.4s, v28.8h, v6.h[4]          // val1 += src[4][i + {4..7}] * filter[4]\n        smlal           v3.4s, v29.4h, v6.h[5]          // val0 += src[5][i + {0..3}] * filter[5]\n        smlal2          v4.4s, v29.8h, v6.h[5]          // val1 += src[5][i + {4..7}] * filter[5]\n        smlal           v3.4s, v30.4h, v6.h[6]          // val0 += src[6][i + {0..3}] * filter[6]\n        smlal2          v4.4s, v30.8h, v6.h[6]          // val1 += src[6][i + {4..7}] * filter[6]\n        smlal           v3.4s, v31.4h, v6.h[7]          // val0 += src[7][i + {0..3}] * filter[7]\n        smlal2          v4.4s, v31.8h, v6.h[7]          // val1 += src[7][i + {4..7}] * filter[7]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        subs            w4, w4, #8                      // dstW -= 8\n        st1             {v3.8b}, [x3], #8               // write to destination\n        b.gt            7b                              // loop until width consumed\n        ret\n\n8:      // fs=4\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n        ldp             x7, x9, [x2, #16]               // load 2 pointers: src[j+2] and src[j+3]\n\n        // load 4x16-bit values for filter[j], where j=0..3 and replicated across lanes\n        ld1             {v6.4h}, [x0]\n9:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n        ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            9b                              // loop until width consumed\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "e25a19fc7cfff1243bcc12c50a0f2fb026362df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e25a19fc7cfff1243bcc12c50a0f2fb026362df2/libswscale/aarch64/output.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:5", "text": "ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            9b                              // loop until width consumed\n        ret\n\n10:     // fs=2\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n\n        // load 2x16-bit values for filter[j], where j=0..1 and replicated across lanes\n        ldr             s6, [x0]\n11:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2plane1_8_neon, export=1\n// x0 - const int16_t *src,\n// x1 - uint8_t *dest,\n// w2 - int dstW,\n// x3 - const uint8_t *dither,\n// w4 - int offset\n        ld1             {v0.8b}, [x3]                   // load 8x8-bit dither\n        and             w4, w4, #7\n        cbz             w4, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:\n        uxtl            v0.8h, v0.8b                    // extend dither to 32-bit\n2:\n        ld1             {v3.8h}, [x0], #16              // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "e25a19fc7cfff1243bcc12c50a0f2fb026362df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e25a19fc7cfff1243bcc12c50a0f2fb026362df2/libswscale/aarch64/output.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:6", "text": "st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2plane1_8_neon, export=1\n// x0 - const int16_t *src,\n// x1 - uint8_t *dest,\n// w2 - int dstW,\n// x3 - const uint8_t *dither,\n// w4 - int offset\n        ld1             {v0.8b}, [x3]                   // load 8x8-bit dither\n        and             w4, w4, #7\n        cbz             w4, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:\n        uxtl            v0.8h, v0.8b                    // extend dither to 32-bit\n2:\n        ld1             {v3.8h}, [x0], #16              // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        subs            w2, w2, #8                      // dstW -= 8\n        shadd           v1.8h, v0.8h, v3.8h             // v1 = (v0 + v3) >> 1\n        sqshrun         v2.8b, v1.8h, #6                // clip_uint8(v1 >> 6)\n\n        st1             {v2.8b}, [x1], #8               // write to destination\n        b.gt            2b                              // loop until width consumed\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "e25a19fc7cfff1243bcc12c50a0f2fb026362df2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e25a19fc7cfff1243bcc12c50a0f2fb026362df2/libswscale/aarch64/output.S", "line_start": 201, "line_end": 228}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:5", "text": "ld1             {v26.8h}, [x7], #16             // load 8x16-bit values for src[j + 2][i + {0..7}]\n        ld1             {v27.8h}, [x9], #16             // load 8x16-bit values for src[j + 3][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n        smlal           v3.4s, v26.4h, v6.h[2]          // val0 += src[2][i + {0..3}] * filter[2]\n        smlal2          v4.4s, v26.8h, v6.h[2]          // val1 += src[2][i + {4..7}] * filter[2]\n        smlal           v3.4s, v27.4h, v6.h[3]          // val0 += src[3][i + {0..3}] * filter[3]\n        smlal2          v4.4s, v27.8h, v6.h[3]          // val1 += src[3][i + {4..7}] * filter[3]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            9b                              // loop until width consumed\n        ret\n\n10:     // fs=2\n        ldp             x5, x6, [x2]                    // load 2 pointers: src[j  ] and src[j+1]\n\n        // load 2x16-bit values for filter[j], where j=0..1 and replicated across lanes\n        ldr             s6, [x0]\n11:\n        mov             v3.16b, v1.16b                  // initialize accumulator part 1 with dithering value\n        mov             v4.16b, v2.16b                  // initialize accumulator part 2 with dithering value\n\n        ld1             {v24.8h}, [x5], #16             // load 8x16-bit values for src[j + 0][i + {0..7}]\n        ld1             {v25.8h}, [x6], #16             // load 8x16-bit values for src[j + 1][i + {0..7}]\n\n        smlal           v3.4s, v24.4h, v6.h[0]          // val0 += src[0][i + {0..3}] * filter[0]\n        smlal2          v4.4s, v24.8h, v6.h[0]          // val1 += src[0][i + {4..7}] * filter[0]\n        smlal           v3.4s, v25.4h, v6.h[1]          // val0 += src[1][i + {0..3}] * filter[1]\n        smlal2          v4.4s, v25.8h, v6.h[1]          // val1 += src[1][i + {4..7}] * filter[1]\n\n        sqshrun         v3.4h, v3.4s, #16               // clip16(val0>>16)\n        sqshrun2        v3.8h, v4.4s, #16               // clip16(val1>>16)\n        uqshrn          v3.8b, v3.8h, #3                // clip8(val>>19)\n        st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2plane1_8_neon, export=1\n// x0 - const int16_t *src,\n// x1 - uint8_t *dest,\n// w2 - int dstW,\n// x3 - const uint8_t *dither,\n// w4 - int offset\n        ld1             {v0.8b}, [x3]                   // load 8x8-bit dither\n        and             w4, w4, #7\n        cbz             w4, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:      uxtl            v0.8h, v0.8b                    // extend dither to 32-bit\n        uxtl            v1.4s, v0.4h\n        uxtl2           v2.4s, v0.8h\n2:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/output.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/output.S:6", "text": "st1             {v3.8b}, [x3], #8               // write to destination\n        subs            w4, w4, #8                      // dstW -= 8\n        b.gt            11b                             // loop until width consumed\n        ret\nendfunc\n\nfunction ff_yuv2plane1_8_neon, export=1\n// x0 - const int16_t *src,\n// x1 - uint8_t *dest,\n// w2 - int dstW,\n// x3 - const uint8_t *dither,\n// w4 - int offset\n        ld1             {v0.8b}, [x3]                   // load 8x8-bit dither\n        and             w4, w4, #7\n        cbz             w4, 1f                          // check if offsetting present\n        ext             v0.8b, v0.8b, v0.8b, #3         // honor offsetting which can be 0 or 3 only\n1:      uxtl            v0.8h, v0.8b                    // extend dither to 32-bit\n        uxtl            v1.4s, v0.4h\n        uxtl2           v2.4s, v0.8h\n2:\n        ld1             {v3.8h}, [x0], #16              // read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        sxtl            v4.4s, v3.4h\n        sxtl2           v5.4s, v3.8h\n        add             v4.4s, v4.4s, v1.4s\n        add             v5.4s, v5.4s, v2.4s\n        sqshrun         v4.4h, v4.4s, #6\n        sqshrun2        v4.8h, v5.4s, #6\n\n        uqshrn          v3.8b, v4.8h, #1                // clip8(val>>7)\n        subs            w2, w2, #8                      // dstW -= 8\n        st1             {v3.8b}, [x1], #8               // write to destination\n        b.gt            2b                              // loop until width consumed\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/output.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/output.S", "line_start": 201, "line_end": 234}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro lumConvertRange fromto, bit_depth\nfunction ff_lumRange\\fromto\\()Jpeg\\bit_depth\\()_neon, export=1\n// x0  int16_t *dst\n// w1  int width\n// w2  uint32_t coeff\n// x3  int64_t offset\n.if \\bit_depth == 16\n.ifc \\fromto, To\n        movi            v25.4s, #1\n        movi            v24.4s, #1<<3, lsl #16\n        sub             v24.4s, v24.4s, v25.4s\n.endif\n        dup             v25.4s, w2\n        dup             v26.2d, x3\n1:\n        ld1             {v0.4s, v1.4s}, [x0]\n        mov             v16.16b, v26.16b\n        mov             v17.16b, v26.16b\n        mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        smlal           v16.2d, v0.2s, v25.2s\n        smlal2          v17.2d, v0.4s, v25.4s\n        smlal           v18.2d, v1.2s, v25.2s\n        smlal2          v19.2d, v1.4s, v25.4s\n        shrn            v0.2s, v16.2d, 18\n        shrn2           v0.4s, v17.2d, 18\n        shrn            v1.2s, v18.2d, 18\n        shrn2           v1.4s, v19.2d, 18\n        subs            w1, w1, #8\n.ifc \\fromto, To\n        smin            v0.4s, v0.4s, v24.4s\n        smin            v1.4s, v1.4s, v24.4s\n.endif\n        st1             {v0.4s, v1.4s}, [x0], #32\n        b.gt            1b\n.else\n        dup             v25.4s, w2\n        dup             v26.4s, w3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/range_convert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:2", "text": "mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        smlal           v16.2d, v0.2s, v25.2s\n        smlal2          v17.2d, v0.4s, v25.4s\n        smlal           v18.2d, v1.2s, v25.2s\n        smlal2          v19.2d, v1.4s, v25.4s\n        shrn            v0.2s, v16.2d, 18\n        shrn2           v0.4s, v17.2d, 18\n        shrn            v1.2s, v18.2d, 18\n        shrn2           v1.4s, v19.2d, 18\n        subs            w1, w1, #8\n.ifc \\fromto, To\n        smin            v0.4s, v0.4s, v24.4s\n        smin            v1.4s, v1.4s, v24.4s\n.endif\n        st1             {v0.4s, v1.4s}, [x0], #32\n        b.gt            1b\n.else\n        dup             v25.4s, w2\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]\n        mov             v16.16b, v26.16b\n        mov             v18.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl2           v22.4s, v0.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n.ifc \\fromto, To\n        sqshrn          v0.4h, v16.4s, 14\n        sqshrn2         v0.8h, v18.4s, 14\n.else\n        shrn            v0.4h, v16.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n.endif\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n.endif\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange fromto, bit_depth\nfunction ff_chrRange\\fromto\\()Jpeg\\bit_depth\\()_neon, export=1\n// x0  int16_t *dstU\n// x1  int16_t *dstV\n// w2  int width\n// w3  uint32_t coeff\n// x4  int64_t offset\n.if \\bit_depth == 16\n.ifc \\fromto, To\n        movi            v25.4s, #1\n        movi            v24.4s, #1<<3, lsl #16\n        sub             v24.4s, v24.4s, v25.4s\n.endif\n        dup             v25.4s, w3\n        dup             v26.2d, x4\n1:\n        ld1             {v0.4s, v1.4s}, [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/range_convert_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:3", "text": "endfunc\n.endm\n\n.macro chrConvertRange fromto, bit_depth\nfunction ff_chrRange\\fromto\\()Jpeg\\bit_depth\\()_neon, export=1\n// x0  int16_t *dstU\n// x1  int16_t *dstV\n// w2  int width\n// w3  uint32_t coeff\n// x4  int64_t offset\n.if \\bit_depth == 16\n.ifc \\fromto, To\n        movi            v25.4s, #1\n        movi            v24.4s, #1<<3, lsl #16\n        sub             v24.4s, v24.4s, v25.4s\n.endif\n        dup             v25.4s, w3\n        dup             v26.2d, x4\n1:\n        ld1             {v0.4s, v1.4s}, [x0]\n        ld1             {v2.4s, v3.4s}, [x1]\n        mov             v16.16b, v26.16b\n        mov             v17.16b, v26.16b\n        mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        mov             v20.16b, v26.16b\n        mov             v21.16b, v26.16b\n        mov             v22.16b, v26.16b\n        mov             v23.16b, v26.16b\n        smlal           v16.2d, v0.2s, v25.2s\n        smlal2          v17.2d, v0.4s, v25.4s\n        smlal           v18.2d, v1.2s, v25.2s\n        smlal2          v19.2d, v1.4s, v25.4s\n        smlal           v20.2d, v2.2s, v25.2s\n        smlal2          v21.2d, v2.4s, v25.4s\n        smlal           v22.2d, v3.2s, v25.2s\n        smlal2          v23.2d, v3.4s, v25.4s\n        shrn            v0.2s, v16.2d, 18\n        shrn2           v0.4s, v17.2d, 18\n        shrn            v1.2s, v18.2d, 18\n        shrn2           v1.4s, v19.2d, 18\n        shrn            v2.2s, v20.2d, 18\n        shrn2           v2.4s, v21.2d, 18\n        shrn            v3.2s, v22.2d, 18\n        shrn2           v3.4s, v23.2d, 18\n        subs            w2, w2, #8\n.ifc \\fromto, To\n        smin            v0.4s, v0.4s, v24.4s\n        smin            v1.4s, v1.4s, v24.4s\n        smin            v2.4s, v2.4s, v24.4s\n        smin            v3.4s, v3.4s, v24.4s\n.endif\n        st1             {v0.4s, v1.4s}, [x0], #32\n        st1             {v2.4s, v3.4s}, [x1], #32\n        b.gt            1b\n.else\n        dup             v25.4s, w3\n        dup             v26.4s, w4\n1:\n        ld1             {v0.8h}, [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/range_convert_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:4", "text": "shrn2           v1.4s, v19.2d, 18\n        shrn            v2.2s, v20.2d, 18\n        shrn2           v2.4s, v21.2d, 18\n        shrn            v3.2s, v22.2d, 18\n        shrn2           v3.4s, v23.2d, 18\n        subs            w2, w2, #8\n.ifc \\fromto, To\n        smin            v0.4s, v0.4s, v24.4s\n        smin            v1.4s, v1.4s, v24.4s\n        smin            v2.4s, v2.4s, v24.4s\n        smin            v3.4s, v3.4s, v24.4s\n.endif\n        st1             {v0.4s, v1.4s}, [x0], #32\n        st1             {v2.4s, v3.4s}, [x1], #32\n        b.gt            1b\n.else\n        dup             v25.4s, w3\n        dup             v26.4s, w4\n1:\n        ld1             {v0.8h}, [x0]\n        ld1             {v1.8h}, [x1]\n        mov             v16.16b, v26.16b\n        mov             v17.16b, v26.16b\n        mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl            v21.4s, v1.4h\n        sxtl2           v22.4s, v0.8h\n        sxtl2           v23.4s, v1.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v17.4s, v21.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        mla             v19.4s, v23.4s, v25.4s\n.ifc \\fromto, To\n        sqshrn          v0.4h, v16.4s, 14\n        sqshrn          v1.4h, v17.4s, 14\n        sqshrn2         v0.8h, v18.4s, 14\n        sqshrn2         v1.8h, v19.4s, 14\n.else\n        shrn            v0.4h, v16.4s, 14\n        shrn            v1.4h, v17.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n        shrn2           v1.8h, v19.4s, 14\n.endif\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n.endif\n        ret\nendfunc\n.endm\n\nlumConvertRange To,    8\nlumConvertRange To,   16\nchrConvertRange To,    8\nchrConvertRange To,   16\nlumConvertRange From,  8\nlumConvertRange From, 16\nchrConvertRange From,  8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/range_convert_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:5", "text": "shrn            v1.4h, v17.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n        shrn2           v1.8h, v19.4s, 14\n.endif\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n.endif\n        ret\nendfunc\n.endm\n\nlumConvertRange To,    8\nlumConvertRange To,   16\nchrConvertRange To,    8\nchrConvertRange To,   16\nlumConvertRange From,  8\nlumConvertRange From, 16\nchrConvertRange From,  8\nchrConvertRange From, 16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/range_convert_neon.S", "line_start": 161, "line_end": 181}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro lumConvertRange fromto\nfunction ff_lumRange\\fromto\\()Jpeg_neon, export=1\n// x0  int16_t *dst\n// w1  int width\n// w2  uint32_t coeff\n// x3  int64_t offset\n        dup             v25.4s, w2\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]\n        mov             v16.16b, v26.16b\n        mov             v18.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl2           v22.4s, v0.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n.ifc \\fromto, To\n        sqshrn          v0.4h, v16.4s, 14\n        sqshrn2         v0.8h, v18.4s, 14\n.else\n        shrn            v0.4h, v16.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n.endif\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange fromto\nfunction ff_chrRange\\fromto\\()Jpeg_neon, export=1\n// x0  int16_t *dstU\n// x1  int16_t *dstV\n// w2  int width\n// w3  uint32_t coeff\n// x4  int64_t offset\n        dup             v25.4s, w3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "6fe4a4ffb6359736dbacff6afe644be06b37a473", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6fe4a4ffb6359736dbacff6afe644be06b37a473/libswscale/aarch64/range_convert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:2", "text": "sqshrn2         v0.8h, v18.4s, 14\n.else\n        shrn            v0.4h, v16.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n.endif\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange fromto\nfunction ff_chrRange\\fromto\\()Jpeg_neon, export=1\n// x0  int16_t *dstU\n// x1  int16_t *dstV\n// w2  int width\n// w3  uint32_t coeff\n// x4  int64_t offset\n        dup             v25.4s, w3\n        dup             v26.4s, w4\n1:\n        ld1             {v0.8h}, [x0]\n        ld1             {v1.8h}, [x1]\n        mov             v16.16b, v26.16b\n        mov             v17.16b, v26.16b\n        mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl            v21.4s, v1.4h\n        sxtl2           v22.4s, v0.8h\n        sxtl2           v23.4s, v1.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v17.4s, v21.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        mla             v19.4s, v23.4s, v25.4s\n.ifc \\fromto, To\n        sqshrn          v0.4h, v16.4s, 14\n        sqshrn          v1.4h, v17.4s, 14\n        sqshrn2         v0.8h, v18.4s, 14\n        sqshrn2         v1.8h, v19.4s, 14\n.else\n        shrn            v0.4h, v16.4s, 14\n        shrn            v1.4h, v17.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n        shrn2           v1.8h, v19.4s, 14\n.endif\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\nlumConvertRange To\nchrConvertRange To\nlumConvertRange From\nchrConvertRange From", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "6fe4a4ffb6359736dbacff6afe644be06b37a473", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6fe4a4ffb6359736dbacff6afe644be06b37a473/libswscale/aarch64/range_convert_neon.S", "line_start": 41, "line_end": 99}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:3", "text": "sqshrn2         v1.8h, v19.4s, 14\n.else\n        shrn            v0.4h, v16.4s, 14\n        shrn            v1.4h, v17.4s, 14\n        shrn2           v0.8h, v18.4s, 14\n        shrn2           v1.8h, v19.4s, 14\n.endif\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\nlumConvertRange To\nchrConvertRange To\nlumConvertRange From\nchrConvertRange From", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "6fe4a4ffb6359736dbacff6afe644be06b37a473", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6fe4a4ffb6359736dbacff6afe644be06b37a473/libswscale/aarch64/range_convert_neon.S", "line_start": 81, "line_end": 99}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro lumConvertRange name, fromto, mult, offset, shift\nfunction ff_\\name, export=1\n        mov             w3, #\\mult\n        dup             v25.4s, w3\n        movz            w3, #(\\offset & 0xffff)\n        movk            w3, #((\\offset >> 16) & 0xffff), lsl #16\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]\n        mov             v16.16b, v26.16b\n        mov             v18.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl2           v22.4s, v0.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n.ifc \\fromto, To\n        sqshrn          v0.4h, v16.4s, #\\shift\n        sqshrn2         v0.8h, v18.4s, #\\shift\n.else\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n.endif\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange name, fromto, mult, offset, shift\nfunction ff_\\name, export=1\n        mov             w3, #\\mult\n        dup             v25.4s, w3\n        movz            w3, #(\\offset & 0xffff)\n        movk            w3, #((\\offset >> 16) & 0xffff), lsl #16\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "58bcdeb7425ed7b74f1aac20099cb3c025e6ce8d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/58bcdeb7425ed7b74f1aac20099cb3c025e6ce8d/libswscale/aarch64/range_convert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:2", "text": ".else\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n.endif\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange name, fromto, mult, offset, shift\nfunction ff_\\name, export=1\n        mov             w3, #\\mult\n        dup             v25.4s, w3\n        movz            w3, #(\\offset & 0xffff)\n        movk            w3, #((\\offset >> 16) & 0xffff), lsl #16\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]\n        ld1             {v1.8h}, [x1]\n        mov             v16.16b, v26.16b\n        mov             v17.16b, v26.16b\n        mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl            v21.4s, v1.4h\n        sxtl2           v22.4s, v0.8h\n        sxtl2           v23.4s, v1.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v17.4s, v21.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        mla             v19.4s, v23.4s, v25.4s\n.ifc \\fromto, To\n        sqshrn          v0.4h, v16.4s, #\\shift\n        sqshrn          v1.4h, v17.4s, #\\shift\n        sqshrn2         v0.8h, v18.4s, #\\shift\n        sqshrn2         v1.8h, v19.4s, #\\shift\n.else\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn            v1.4h, v17.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n        shrn2           v1.8h, v19.4s, #\\shift\n.endif\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\nlumConvertRange lumRangeToJpeg_neon,   To,   19077, -39057361, 14\nchrConvertRange chrRangeToJpeg_neon,   To,    4663,  -9289992, 12\nlumConvertRange lumRangeFromJpeg_neon, From, 14071,  33561947, 14\nchrConvertRange chrRangeFromJpeg_neon, From,  1799,   4081085, 11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "58bcdeb7425ed7b74f1aac20099cb3c025e6ce8d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/58bcdeb7425ed7b74f1aac20099cb3c025e6ce8d/libswscale/aarch64/range_convert_neon.S", "line_start": 41, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:3", "text": "shrn            v1.4h, v17.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n        shrn2           v1.8h, v19.4s, #\\shift\n.endif\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\nlumConvertRange lumRangeToJpeg_neon,   To,   19077, -39057361, 14\nchrConvertRange chrRangeToJpeg_neon,   To,    4663,  -9289992, 12\nlumConvertRange lumRangeFromJpeg_neon, From, 14071,  33561947, 14\nchrConvertRange chrRangeFromJpeg_neon, From,  1799,   4081085, 11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "58bcdeb7425ed7b74f1aac20099cb3c025e6ce8d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/58bcdeb7425ed7b74f1aac20099cb3c025e6ce8d/libswscale/aarch64/range_convert_neon.S", "line_start": 81, "line_end": 96}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro lumConvertRange name, max, mult, offset, shift\nfunction ff_\\name, export=1\n.if \\max != 0\n        mov             w3, #\\max\n        dup             v24.8h, w3\n.endif\n        mov             w3, #\\mult\n        dup             v25.4s, w3\n        movz            w3, #(\\offset & 0xffff)\n        movk            w3, #((\\offset >> 16) & 0xffff), lsl #16\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]\n.if \\max != 0\n        smin            v0.8h, v0.8h, v24.8h\n.endif\n        mov             v16.16b, v26.16b\n        mov             v18.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl2           v22.4s, v0.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange name, max, mult, offset, shift\nfunction ff_\\name, export=1\n.if \\max != 0\n        mov             w3, #\\max\n        dup             v24.8h, w3\n.endif\n        mov             w3, #\\mult", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "75f1a8e071f7ce288ab0f223c30982b9befb3205", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/75f1a8e071f7ce288ab0f223c30982b9befb3205/libswscale/aarch64/range_convert_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:2", "text": "sxtl            v20.4s, v0.4h\n        sxtl2           v22.4s, v0.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n        subs            w1, w1, #8\n        st1             {v0.8h}, [x0], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\n.macro chrConvertRange name, max, mult, offset, shift\nfunction ff_\\name, export=1\n.if \\max != 0\n        mov             w3, #\\max\n        dup             v24.8h, w3\n.endif\n        mov             w3, #\\mult\n        dup             v25.4s, w3\n        movz            w3, #(\\offset & 0xffff)\n        movk            w3, #((\\offset >> 16) & 0xffff), lsl #16\n        dup             v26.4s, w3\n1:\n        ld1             {v0.8h}, [x0]\n        ld1             {v1.8h}, [x1]\n.if \\max != 0\n        smin            v0.8h, v0.8h, v24.8h\n        smin            v1.8h, v1.8h, v24.8h\n.endif\n        mov             v16.16b, v26.16b\n        mov             v17.16b, v26.16b\n        mov             v18.16b, v26.16b\n        mov             v19.16b, v26.16b\n        sxtl            v20.4s, v0.4h\n        sxtl            v21.4s, v1.4h\n        sxtl2           v22.4s, v0.8h\n        sxtl2           v23.4s, v1.8h\n        mla             v16.4s, v20.4s, v25.4s\n        mla             v17.4s, v21.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        mla             v19.4s, v23.4s, v25.4s\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn            v1.4h, v17.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n        shrn2           v1.8h, v19.4s, #\\shift\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\nlumConvertRange lumRangeToJpeg_neon,   30189, 19077, -39057361, 14\nchrConvertRange chrRangeToJpeg_neon,   30775,  4663,  -9289992, 12\nlumConvertRange lumRangeFromJpeg_neon,     0, 14071,  33561947, 14\nchrConvertRange chrRangeFromJpeg_neon,     0,  1799,   4081085, 11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "75f1a8e071f7ce288ab0f223c30982b9befb3205", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/75f1a8e071f7ce288ab0f223c30982b9befb3205/libswscale/aarch64/range_convert_neon.S", "line_start": 41, "line_end": 99}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/range_convert_neon.S:3", "text": "mla             v17.4s, v21.4s, v25.4s\n        mla             v18.4s, v22.4s, v25.4s\n        mla             v19.4s, v23.4s, v25.4s\n        shrn            v0.4h, v16.4s, #\\shift\n        shrn            v1.4h, v17.4s, #\\shift\n        shrn2           v0.8h, v18.4s, #\\shift\n        shrn2           v1.8h, v19.4s, #\\shift\n        subs            w2, w2, #8\n        st1             {v0.8h}, [x0], #16\n        st1             {v1.8h}, [x1], #16\n        b.gt            1b\n        ret\nendfunc\n.endm\n\nlumConvertRange lumRangeToJpeg_neon,   30189, 19077, -39057361, 14\nchrConvertRange chrRangeToJpeg_neon,   30775,  4663,  -9289992, 12\nlumConvertRange lumRangeFromJpeg_neon,     0, 14071,  33561947, 14\nchrConvertRange chrRangeFromJpeg_neon,     0,  1799,   4081085, 11", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/range_convert_neon.S", "license": "LGPL-2.1", "commit": "75f1a8e071f7ce288ab0f223c30982b9befb3205", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/75f1a8e071f7ce288ab0f223c30982b9befb3205/libswscale/aarch64/range_convert_neon.S", "line_start": 81, "line_end": 99}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2020 Martin Storsjo\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n#define RGB2YUV_COEFFS 16*4+16*32\n#define BY v0.h[0]\n#define GY v0.h[1]\n#define RY v0.h[2]\n#define BU v1.h[0]\n#define GU v1.h[1]\n#define RU v1.h[2]\n#define BV v2.h[0]\n#define GV v2.h[1]\n#define RV v2.h[2]\n#define Y_OFFSET  v22\n#define UV_OFFSET v23\n\nconst shuf_0321_tbl, align=4\n        .byte  0,  3,  2,  1\n        .byte  4,  7,  6,  5\n        .byte  8,  11, 10, 9\n        .byte  12, 15, 14, 13\nendconst\n\nconst shuf_1230_tbl, align=4\n        .byte  1,  2,  3,  0\n        .byte  5,  6,  7,  4\n        .byte  9,  10, 11, 8\n        .byte  13, 14, 15, 12\nendconst\n\nconst shuf_2103_tbl, align=4\n        .byte  2,  1,  0,  3\n        .byte  6,  5,  4,  7\n        .byte  10, 9,  8,  11\n        .byte  14, 13, 12, 15\nendconst\n\nconst shuf_3012_tbl, align=4\n        .byte  3,  0,  1,  2\n        .byte  7,  4,  5,  6", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:2", "text": ".byte  12, 15, 14, 13\nendconst\n\nconst shuf_1230_tbl, align=4\n        .byte  1,  2,  3,  0\n        .byte  5,  6,  7,  4\n        .byte  9,  10, 11, 8\n        .byte  13, 14, 15, 12\nendconst\n\nconst shuf_2103_tbl, align=4\n        .byte  2,  1,  0,  3\n        .byte  6,  5,  4,  7\n        .byte  10, 9,  8,  11\n        .byte  14, 13, 12, 15\nendconst\n\nconst shuf_3012_tbl, align=4\n        .byte  3,  0,  1,  2\n        .byte  7,  4,  5,  6\n        .byte  11, 8,  9,  10\n        .byte  15, 12, 13, 14\nendconst\n\nconst shuf_3210_tbl, align=4\n        .byte  3,  2,  1,  0\n        .byte  7,  6,  5,  4\n        .byte  11, 10, 9,  8\n        .byte  15, 14, 13, 12\nendconst\n\nconst shuf_3102_tbl, align=4\n        .byte  3,  1,  0,  2\n        .byte  7,  5,  4,  6\n        .byte  11, 9,  8,  10\n        .byte  15, 13, 12, 14\nendconst\n\nconst shuf_2013_tbl, align=4\n        .byte  2,  0,  1,  3\n        .byte  6,  4,  5,  7\n        .byte  10, 8,  9,  11\n        .byte  14, 12, 13, 15\nendconst\n\nconst shuf_1203_tbl, align=4\n        .byte  1,  2,  0,  3\n        .byte  5,  6,  4,  7\n        .byte  9,  10, 8,  11\n        .byte  13, 14, 12, 15\nendconst\n\nconst shuf_2130_tbl, align=4\n        .byte  2,  1,  3,  0\n        .byte  6,  5,  7,  4\n        .byte  10, 9,  11, 8\n        .byte  14, 13, 15, 12\nendconst\n\n// rgb32tobgr24: tbl indices for 2-register sliding window (ldp+tbl+stp approach)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:3", "text": ".byte  6,  4,  5,  7\n        .byte  10, 8,  9,  11\n        .byte  14, 12, 13, 15\nendconst\n\nconst shuf_1203_tbl, align=4\n        .byte  1,  2,  0,  3\n        .byte  5,  6,  4,  7\n        .byte  9,  10, 8,  11\n        .byte  13, 14, 12, 15\nendconst\n\nconst shuf_2130_tbl, align=4\n        .byte  2,  1,  3,  0\n        .byte  6,  5,  7,  4\n        .byte  10, 9,  11, 8\n        .byte  14, 13, 15, 12\nendconst\n\n// rgb32tobgr24: tbl indices for 2-register sliding window (ldp+tbl+stp approach)\n// Converts 16 BGRA pixels (64 bytes) to 16 BGR pixels (48 bytes) by dropping alpha.\n// Each 16-byte output register selects 3-of-4 bytes from a {Vn, Vn+1} pair.\nconst rgb32tobgr24_tbl, align=4\n        // out0 from {v0,v1}: pixels 0-5⅓ → B0 G0 R0 B1 G1 R1 B2 G2 R2 B3 G3 R3 B4 G4 R4 B5\n        .byte  0,  1,  2,  4,  5,  6,  8,  9, 10, 12, 13, 14, 16, 17, 18, 20\n        // out1 from {v1,v2}: pixels 5⅓-10⅔ → G5 R5 B6 G6 R6 B7 G7 R7 B8 G8 R8 B9 G9 R9 B10 G10\n        .byte  5,  6,  8,  9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25\n        // out2 from {v2,v3}: pixels 10⅔-15 → R10 B11 G11 R11 B12 G12 R12 B13 G13 R13 B14 G14 R14 B15 G15 R15\n        .byte 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30\nendconst\n\n// rgb24tobgr32: tbl indices for sliding window (ldp+tbl+orr+stp approach)\n// Converts 16 BGR pixels (48 bytes) to 16 BGRA pixels (64 bytes) by inserting alpha=255.\n// Out-of-range index 128 produces 0 from tbl; orr with alpha mask fills in 0xFF.\nconst rgb24tobgr32_tbl, align=4\n        // out0 from {v0}: pixels 0-3 → B0 G0 R0 _ B1 G1 R1 _ B2 G2 R2 _ B3 G3 R3 _\n        .byte  0,  1,  2, 128,  3,  4,  5, 128,  6,  7,  8, 128,  9, 10, 11, 128\n        // out1 from {v0,v1}: pixels 4-7 → B4 G4 R4 _ B5 G5 R5 _ B6 G6 R6 _ B7 G7 R7 _\n        .byte 12, 13, 14, 128, 15, 16, 17, 128, 18, 19, 20, 128, 21, 22, 23, 128\n        // out2 from {v1,v2}: pixels 8-11 → B8 G8 R8 _ B9 G9 R9 _ B10 G10 R10 _ B11 G11 R11 _\n        .byte  8,  9, 10, 128, 11, 12, 13, 128, 14, 15, 16, 128, 17, 18, 19, 128\n        // out3 from {v2}: pixels 12-15 → B12 G12 R12 _ B13 G13 R13 _ B14 G14 R14 _ B15 G15 R15 _\n        .byte  4,  5,  6, 128,  7,  8,  9, 128, 10, 11, 12, 128, 13, 14, 15, 128\nendconst\n\n// convert rgb to 16-bit y, u, or v\n// uses v3 and v4\n\n.macro rgbconv16 dst, b, g, r, bc, gc, rc, shr_bits\n        smull           v3.4s, \\b\\().4h, \\bc\n        smlal           v3.4s, \\g\\().4h, \\gc\n        smlal           v3.4s, \\r\\().4h, \\rc\n        smull2          v4.4s, \\b\\().8h, \\bc\n        smlal2          v4.4s, \\g\\().8h, \\gc\n        smlal2          v4.4s, \\r\\().8h, \\rc        // v3:v4 = b * bc + g * gc + r * rc (32-bit)\n        shrn            \\dst\\().4h, v3.4s, \\shr_bits\n        shrn2           \\dst\\().8h, v4.4s, \\shr_bits       // dst = b * bc + g * gc + r * rc (16-bit)\n.endm\n\n// void ff_rgb24toyv12_neon(const uint8_t *src, uint8_t *ydst, uint8_t *udst,", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:4", "text": ".byte  8,  9, 10, 128, 11, 12, 13, 128, 14, 15, 16, 128, 17, 18, 19, 128\n        // out3 from {v2}: pixels 12-15 → B12 G12 R12 _ B13 G13 R13 _ B14 G14 R14 _ B15 G15 R15 _\n        .byte  4,  5,  6, 128,  7,  8,  9, 128, 10, 11, 12, 128, 13, 14, 15, 128\nendconst\n\n// convert rgb to 16-bit y, u, or v\n// uses v3 and v4\n\n.macro rgbconv16 dst, b, g, r, bc, gc, rc, shr_bits\n        smull           v3.4s, \\b\\().4h, \\bc\n        smlal           v3.4s, \\g\\().4h, \\gc\n        smlal           v3.4s, \\r\\().4h, \\rc\n        smull2          v4.4s, \\b\\().8h, \\bc\n        smlal2          v4.4s, \\g\\().8h, \\gc\n        smlal2          v4.4s, \\r\\().8h, \\rc        // v3:v4 = b * bc + g * gc + r * rc (32-bit)\n        shrn            \\dst\\().4h, v3.4s, \\shr_bits\n        shrn2           \\dst\\().8h, v4.4s, \\shr_bits       // dst = b * bc + g * gc + r * rc (16-bit)\n.endm\n\n// void ff_rgb24toyv12_neon(const uint8_t *src, uint8_t *ydst, uint8_t *udst,\n//                          uint8_t *vdst, int width, int height, int lumStride,\n//                          int chromStride, int srcStride, int32_t *rgb2yuv);\nfunction ff_rgb24toyv12_neon, export=1\n// x0  const uint8_t *src\n// x1  uint8_t *ydst\n// x2  uint8_t *udst\n// x3  uint8_t *vdst\n// w4  int width\n// w5  int height\n// w6  int lumStride\n// w7  int chromStride\n        ldrsw           x14, [sp]\n        ldr             x15, [sp, #8]\n// x14 int srcStride\n// x15 int32_t *rgb2yuv\n\n        // extend width and stride parameters\n        uxtw            x4, w4\n        sxtw            x6, w6\n        sxtw            x7, w7\n\n        // src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width\n        sub             x14, x14, x11               // srcPadding = (2 * srcStride) - (3 * width)\n\n        // ydst1 = x1\n        // ydst2 = x11\n        add             x11, x1,  x6                // x11 = ydst + lumStride\n        lsl             x6,  x6,  #1                // lumStride *= 2\n        sub             x6,  x6,  x4                // lumPadding = (2 * lumStride) - width\n\n        sub             x7,  x7,  x4, lsr #1        // chromPadding = chromStride - (width / 2)\n\n        // load rgb2yuv coefficients into v0, v1, and v2\n        add             x15, x15, #RGB2YUV_COEFFS\n        ld1             {v0.8h-v2.8h}, [x15]        // load 24 values", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:5", "text": "// src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width\n        sub             x14, x14, x11               // srcPadding = (2 * srcStride) - (3 * width)\n\n        // ydst1 = x1\n        // ydst2 = x11\n        add             x11, x1,  x6                // x11 = ydst + lumStride\n        lsl             x6,  x6,  #1                // lumStride *= 2\n        sub             x6,  x6,  x4                // lumPadding = (2 * lumStride) - width\n\n        sub             x7,  x7,  x4, lsr #1        // chromPadding = chromStride - (width / 2)\n\n        // load rgb2yuv coefficients into v0, v1, and v2\n        add             x15, x15, #RGB2YUV_COEFFS\n        ld1             {v0.8h-v2.8h}, [x15]        // load 24 values\n\n        // load offset constants\n        movi            Y_OFFSET.8h,  #0x10, lsl #8\n        movi            UV_OFFSET.8h, #0x80, lsl #8\n\n1:\n        mov             w15, w4                     // w15 = width\n\n2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48\n\n        // widen first line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B11\n        uxtl            v17.8h, v27.8b              // v17 = G11\n        uxtl            v18.8h, v28.8b              // v18 = R11\n        uxtl2           v19.8h, v26.16b             // v19 = B12\n        uxtl2           v20.8h, v27.16b             // v20 = G12\n        uxtl2           v21.8h, v28.16b             // v21 = R12\n\n        // calculate Y values for first line\n        rgbconv16       v24, v16, v17, v18, BY, GY, RY, #7 // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY, #7 // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48\n\n        // pairwise add and save rgb values to calculate average\n        addp            v5.8h, v16.8h, v19.8h\n        addp            v6.8h, v17.8h, v20.8h\n        addp            v7.8h, v18.8h, v21.8h\n\n        // widen second line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B21\n        uxtl            v17.8h, v27.8b              // v17 = G21\n        uxtl            v18.8h, v28.8b              // v18 = R21\n        uxtl2           v19.8h, v26.16b             // v19 = B22\n        uxtl2           v20.8h, v27.16b             // v20 = G22\n        uxtl2           v21.8h, v28.16b             // v21 = R22\n\n        // calculate Y values for second line", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:6", "text": "rgbconv16       v24, v16, v17, v18, BY, GY, RY, #7 // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY, #7 // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48\n\n        // pairwise add and save rgb values to calculate average\n        addp            v5.8h, v16.8h, v19.8h\n        addp            v6.8h, v17.8h, v20.8h\n        addp            v7.8h, v18.8h, v21.8h\n\n        // widen second line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B21\n        uxtl            v17.8h, v27.8b              // v17 = G21\n        uxtl            v18.8h, v28.8b              // v18 = R21\n        uxtl2           v19.8h, v26.16b             // v19 = B22\n        uxtl2           v20.8h, v27.16b             // v20 = G22\n        uxtl2           v21.8h, v28.16b             // v21 = R22\n\n        // calculate Y values for second line\n        rgbconv16       v26, v16, v17, v18, BY, GY, RY, #7 // v26 = Y21\n        rgbconv16       v27, v19, v20, v21, BY, GY, RY, #7 // v27 = Y22\n\n        // pairwise add rgb values to calculate average\n        addp            v16.8h, v16.8h, v19.8h\n        addp            v17.8h, v17.8h, v20.8h\n        addp            v18.8h, v18.8h, v21.8h\n\n        // calculate sum of r, g, b components in 2x2 blocks\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU, #9 // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV, #9 // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16\n\n        // store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:7", "text": "addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16\n\n        // store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding\n        add             x1,  x1,  x6                // ydst1 += lumPadding\n        add             x11, x11, x6                // ydst2 += lumPadding\n        add             x2,  x2,  x7                // udst  += chromPadding\n        add             x3,  x3,  x7                // vdst  += chromPadding\n        b.gt            1b\n\n        ret\nendfunc\n\n// void ff_rgb24tobgr24_neon(const uint8_t *src, uint8_t *dst, int src_size);\nfunction ff_rgb24tobgr24_neon, export=1\n        // x0 = src, x1 = dst, w2 = src_size (bytes)\n\n        // Fast path: 48 bytes (16 pixels) per iteration\n        subs            w2, w2, #48\n        b.lt            2f\n1:\n        ld3             {v0.16b, v1.16b, v2.16b}, [x0], #48\n        subs            w2, w2, #48\n        mov             v3.16b, v0.16b\n        mov             v0.16b, v2.16b\n        mov             v2.16b, v3.16b\n        st3             {v0.16b, v1.16b, v2.16b}, [x1], #48\n        b.ge            1b\n2:\n        add             w2, w2, #48\n        // Medium path: 24 bytes (8 pixels)\n        cmp             w2, #24\n        b.lt            3f\n        ld3             {v0.8b, v1.8b, v2.8b}, [x0], #24\n        sub             w2, w2, #24\n        mov             v3.8b, v0.8b\n        mov             v0.8b, v2.8b\n        mov             v2.8b, v3.8b\n        st3             {v0.8b, v1.8b, v2.8b}, [x1], #24\n3:\n        // Scalar tail: 3 bytes (1 pixel) at a time\n        cmp             w2, #3\n        b.lt            4f\n5:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:8", "text": "mov             v0.16b, v2.16b\n        mov             v2.16b, v3.16b\n        st3             {v0.16b, v1.16b, v2.16b}, [x1], #48\n        b.ge            1b\n2:\n        add             w2, w2, #48\n        // Medium path: 24 bytes (8 pixels)\n        cmp             w2, #24\n        b.lt            3f\n        ld3             {v0.8b, v1.8b, v2.8b}, [x0], #24\n        sub             w2, w2, #24\n        mov             v3.8b, v0.8b\n        mov             v0.8b, v2.8b\n        mov             v2.8b, v3.8b\n        st3             {v0.8b, v1.8b, v2.8b}, [x1], #24\n3:\n        // Scalar tail: 3 bytes (1 pixel) at a time\n        cmp             w2, #3\n        b.lt            4f\n5:\n        ldrb            w4, [x0, #1]\n        ldrb            w5, [x0, #2]\n        ldrb            w3, [x0], #3\n        subs            w2, w2, #3\n        strb            w4, [x1, #1]\n        strb            w3, [x1, #2]\n        strb            w5, [x1], #3\n        b.gt            5b\n4:\n        ret\nendfunc\n\n// void ff_rgb32tobgr24_neon(const uint8_t *src, uint8_t *dst, int src_size);\nfunction ff_rgb32tobgr24_neon, export=1\n        // x0 = src (BGRA), x1 = dst (BGR), w2 = src_size (bytes)\n\n        // Load 3 tbl permutation masks for 2-register sliding window\n        movrel          x3, rgb32tobgr24_tbl\n        ld1             {v16.16b, v17.16b, v18.16b}, [x3]\n\n        // Fast path: 64 bytes input (16 pixels) → 48 bytes output\n        // Uses ldp+tbl(2-reg sliding window)+stp to avoid expensive ld4/st3.\n        // Post-indexed addressing eliminates pointer-advance instructions.\n        // subs placed between loads and tbl to fill load-latency gap on\n        // in-order cores (A55).\n        subs            w2, w2, #64\n        b.lt            2f\n1:\n        ldp             q0, q1, [x0], #64\n        ldp             q2, q3, [x0, #-32]\n        subs            w2, w2, #64\n        tbl             v4.16b, {v0.16b, v1.16b}, v16.16b\n        tbl             v5.16b, {v1.16b, v2.16b}, v17.16b\n        tbl             v6.16b, {v2.16b, v3.16b}, v18.16b\n        stp             q4, q5, [x1], #48\n        str             q6, [x1, #-16]\n        b.ge            1b\n2:\n        add             w2, w2, #64\n        // Medium path: 32 bytes input (8 pixels) → 24 bytes output", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:9", "text": "// Fast path: 64 bytes input (16 pixels) → 48 bytes output\n        // Uses ldp+tbl(2-reg sliding window)+stp to avoid expensive ld4/st3.\n        // Post-indexed addressing eliminates pointer-advance instructions.\n        // subs placed between loads and tbl to fill load-latency gap on\n        // in-order cores (A55).\n        subs            w2, w2, #64\n        b.lt            2f\n1:\n        ldp             q0, q1, [x0], #64\n        ldp             q2, q3, [x0, #-32]\n        subs            w2, w2, #64\n        tbl             v4.16b, {v0.16b, v1.16b}, v16.16b\n        tbl             v5.16b, {v1.16b, v2.16b}, v17.16b\n        tbl             v6.16b, {v2.16b, v3.16b}, v18.16b\n        stp             q4, q5, [x1], #48\n        str             q6, [x1, #-16]\n        b.ge            1b\n2:\n        add             w2, w2, #64\n        // Medium path: 32 bytes input (8 pixels) → 24 bytes output\n        cmp             w2, #32\n        b.lt            3f\n        ld4             {v0.8b, v1.8b, v2.8b, v3.8b}, [x0], #32\n        sub             w2, w2, #32\n        st3             {v0.8b, v1.8b, v2.8b}, [x1], #24\n3:\n        // Scalar tail: 4 bytes → 3 bytes at a time\n        // Uses word load + halfword/byte stores to reduce instructions.\n        // On LE: ldr gives A<<24|R<<16|G<<8|B; strh stores [B,G]; lsr+strb stores R.\n        // subs and lsr fill load-use latency. lsr uses a fresh register so\n        // strh and strb can issue independently; add advances x1 off critical path.\n        cmp             w2, #4\n        b.lt            4f\n5:\n        ldr             w3, [x0], #4\n        subs            w2, w2, #4\n        lsr             w4, w3, #16\n        strh            w3, [x1]\n        strb            w4, [x1, #2]\n        add             x1, x1, #3\n        b.gt            5b\n4:\n        ret\nendfunc\n\n// void ff_rgb24tobgr32_neon(const uint8_t *src, uint8_t *dst, int src_size);\nfunction ff_rgb24tobgr32_neon, export=1\n        // x0 = src (BGR), x1 = dst (BGRA), w2 = src_size (bytes)\n\n        // Load tbl permutation indices and alpha mask for the fast path\n        movrel          x3, rgb24tobgr32_tbl\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x3]\n        movi            v20.4s, #255, lsl #24             // Alpha mask: 00 00 00 FF per pixel\n\n        // Fast path: 48 bytes input (16 pixels) → 64 bytes output\n        // Uses ldp+tbl+orr+stp to avoid expensive ld3/st4 structure load/stores.\n        // tbl produces 0 for alpha positions; orr fills in 0xFF.\n        // Post-indexed addressing eliminates pointer-advance instructions.\n        // tbl/orr interleaved so each orr starts as soon as its tbl result\n        // is ready, hiding latency on narrow in-order cores (A55).", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:10", "text": "b.gt            5b\n4:\n        ret\nendfunc\n\n// void ff_rgb24tobgr32_neon(const uint8_t *src, uint8_t *dst, int src_size);\nfunction ff_rgb24tobgr32_neon, export=1\n        // x0 = src (BGR), x1 = dst (BGRA), w2 = src_size (bytes)\n\n        // Load tbl permutation indices and alpha mask for the fast path\n        movrel          x3, rgb24tobgr32_tbl\n        ld1             {v16.16b, v17.16b, v18.16b, v19.16b}, [x3]\n        movi            v20.4s, #255, lsl #24             // Alpha mask: 00 00 00 FF per pixel\n\n        // Fast path: 48 bytes input (16 pixels) → 64 bytes output\n        // Uses ldp+tbl+orr+stp to avoid expensive ld3/st4 structure load/stores.\n        // tbl produces 0 for alpha positions; orr fills in 0xFF.\n        // Post-indexed addressing eliminates pointer-advance instructions.\n        // tbl/orr interleaved so each orr starts as soon as its tbl result\n        // is ready, hiding latency on narrow in-order cores (A55).\n        subs            w2, w2, #48\n        b.lt            2f\n1:\n        ldp             q0, q1, [x0], #48\n        ldr             q2, [x0, #-16]\n        subs            w2, w2, #48\n        tbl             v4.16b, {v0.16b}, v16.16b\n        tbl             v5.16b, {v0.16b, v1.16b}, v17.16b\n        orr             v4.16b, v4.16b, v20.16b\n        tbl             v6.16b, {v1.16b, v2.16b}, v18.16b\n        orr             v5.16b, v5.16b, v20.16b\n        tbl             v7.16b, {v2.16b}, v19.16b\n        orr             v6.16b, v6.16b, v20.16b\n        stp             q4, q5, [x1], #64\n        orr             v7.16b, v7.16b, v20.16b\n        stp             q6, q7, [x1, #-32]\n        b.ge            1b\n2:\n        add             w2, w2, #48\n        // Medium path: 24 bytes input (8 pixels) → 32 bytes output\n        cmp             w2, #24\n        b.lt            3f\n        movi            v3.8b, #255\n        ld3             {v0.8b, v1.8b, v2.8b}, [x0], #24\n        sub             w2, w2, #24\n        st4             {v0.8b, v1.8b, v2.8b, v3.8b}, [x1], #32\n3:\n        // Scalar tail: 3 bytes → 4 bytes at a time\n        // Uses halfword+byte loads, orr to combine with alpha, word store.\n        // On LE: ldrh gives G<<8|B, ldrb gives R; orr assembles 0xFF<<24|R<<16|G<<8|B;\n        // str stores [B,G,R,0xFF]. subs and add placed between loads and first\n        // orr to fill load-use latency on A55.\n        cmp             w2, #3\n        b.lt            4f\n5:\n        ldrh            w4, [x0]\n        ldrb            w5, [x0, #2]\n        add             x0, x0, #3\n        subs            w2, w2, #3\n        orr             w4, w4, w5, lsl #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:11", "text": "cmp             w2, #24\n        b.lt            3f\n        movi            v3.8b, #255\n        ld3             {v0.8b, v1.8b, v2.8b}, [x0], #24\n        sub             w2, w2, #24\n        st4             {v0.8b, v1.8b, v2.8b, v3.8b}, [x1], #32\n3:\n        // Scalar tail: 3 bytes → 4 bytes at a time\n        // Uses halfword+byte loads, orr to combine with alpha, word store.\n        // On LE: ldrh gives G<<8|B, ldrb gives R; orr assembles 0xFF<<24|R<<16|G<<8|B;\n        // str stores [B,G,R,0xFF]. subs and add placed between loads and first\n        // orr to fill load-use latency on A55.\n        cmp             w2, #3\n        b.lt            4f\n5:\n        ldrh            w4, [x0]\n        ldrb            w5, [x0, #2]\n        add             x0, x0, #3\n        subs            w2, w2, #3\n        orr             w4, w4, w5, lsl #16\n        orr             w4, w4, #0xFF000000\n        str             w4, [x1], #4\n        b.gt            5b\n4:\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:12", "text": "subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:13", "text": "0:\n        ret\nendfunc\n\n// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:14", "text": "5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n.macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.8b}, [x1], #8\n3:\n        cbz             w4, 4f\n.if \\shuf == 0321\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 1230\n        ldr             w5, [x0]\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 2103\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:15", "text": "ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.8b}, [x1], #8\n3:\n        cbz             w4, 4f\n.if \\shuf == 0321\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 1230\n        ldr             w5, [x0]\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 2103\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 3012\n        ldr             w5, [x0]\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm\n\nneon_shuf 0321\nneon_shuf 1230\nneon_shuf 2103\nneon_shuf 3012\nneon_shuf 3102\nneon_shuf 2013\nneon_shuf 1203\nneon_shuf 2130\nneon_shuf 3210\n\n/*\nv0-v7 - two consecutive lines\nx0 - upper Y destination\nx1 - U destination\nx2 - V destination\nx3 - upper src line\nw5 - width/iteration counter - count of line pairs for yuv420, of single lines for 422\nx6 - lum padding", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:16", "text": ".endm\n\nneon_shuf 0321\nneon_shuf 1230\nneon_shuf 2103\nneon_shuf 3012\nneon_shuf 3102\nneon_shuf 2013\nneon_shuf 1203\nneon_shuf 2130\nneon_shuf 3210\n\n/*\nv0-v7 - two consecutive lines\nx0 - upper Y destination\nx1 - U destination\nx2 - V destination\nx3 - upper src line\nw5 - width/iteration counter - count of line pairs for yuv420, of single lines for 422\nx6 - lum padding\nx7 - chrom padding\nx8 - src padding\nw9 - number of bytes remaining in the tail\nx10 - lower Y destination\nw12 - tmp\nx13 - lower src line\nw14 - tmp\nw17 - set to 1 if last line has to be handled separately (odd height)\n*/\n\n// one fast path iteration processes 16 uyvy tuples\n// is_line_tail is set to 1 when final 16 tuples are being processed\n// skip_storing_chroma is set to 1 when final line is processed and the height is odd\n.macro fastpath_iteration src_fmt, dst_fmt, is_line_tail, skip_storing_chroma\n        ld4             {v0.16b - v3.16b}, [x3], #64\n.if ! \\is_line_tail\n        subs            w14, w14, #32\n.endif\n\n.if ! \\skip_storing_chroma\n.ifc \\dst_fmt, yuv420\n        ld4             {v4.16b - v7.16b}, [x13], #64\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store UV\n.ifc \\src_fmt, uyvy\n        uhadd           v0.16b, v4.16b, v0.16b            // halving sum of U\n        uhadd           v2.16b, v6.16b, v2.16b            // halving sum of V\n.else\n        uhadd           v1.16b, v5.16b, v1.16b            // halving sum of U\n        uhadd           v3.16b, v7.16b, v3.16b            // halving sum of V\n.endif\n.endif\n\n.ifc \\src_fmt, uyvy\n        st1             {v2.16b}, [x2], #16\n        st1             {v0.16b}, [x1], #16\n.else\n        st1             {v3.16b}, [x2], #16\n        st1             {v1.16b}, [x1], #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:17", "text": ".ifc \\dst_fmt, yuv420\n        ld4             {v4.16b - v7.16b}, [x13], #64\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store UV\n.ifc \\src_fmt, uyvy\n        uhadd           v0.16b, v4.16b, v0.16b            // halving sum of U\n        uhadd           v2.16b, v6.16b, v2.16b            // halving sum of V\n.else\n        uhadd           v1.16b, v5.16b, v1.16b            // halving sum of U\n        uhadd           v3.16b, v7.16b, v3.16b            // halving sum of V\n.endif\n.endif\n\n.ifc \\src_fmt, uyvy\n        st1             {v2.16b}, [x2], #16\n        st1             {v0.16b}, [x1], #16\n.else\n        st1             {v3.16b}, [x2], #16\n        st1             {v1.16b}, [x1], #16\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store_y\n.ifc \\src_fmt, uyvy\n        mov             v6.16b, v5.16b\n        st2             {v6.16b,v7.16b}, [x10], #32\n.else\n        mov             v5.16b, v4.16b\n        st2             {v5.16b,v6.16b}, [x10], #32\n.endif\n.endif\n\n.endif // ! \\skip_storing_chroma\n\n.ifc \\src_fmt, uyvy\n        mov             v2.16b, v1.16b\n        st2             {v2.16b,v3.16b}, [x0], #32\n.else\n        mov             v1.16b, v0.16b\n        st2             {v1.16b,v2.16b}, [x0], #32\n.endif\n.endm\n\n// shift pointers back to width - 32 to process the tail of the line\n// if the height is odd, processing the final line is simplified\n.macro fastpath_shift_back_pointers src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, w9, sxtw #1\n        sub             x3, x3, #64\n.if ! \\is_final_odd_line\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, w9, sxtw #1\n        sub             x13, x13, #64\n        add             x10, x10, w9, sxtw\n        sub             x10, x10, #32\n.endif\n.endif\n        add             x0, x0, w9, sxtw\n        sub             x0, x0, #32\n.if ! \\is_final_odd_line\n        asr             w14, w9, #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:18", "text": ".endif\n.endm\n\n// shift pointers back to width - 32 to process the tail of the line\n// if the height is odd, processing the final line is simplified\n.macro fastpath_shift_back_pointers src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, w9, sxtw #1\n        sub             x3, x3, #64\n.if ! \\is_final_odd_line\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, w9, sxtw #1\n        sub             x13, x13, #64\n        add             x10, x10, w9, sxtw\n        sub             x10, x10, #32\n.endif\n.endif\n        add             x0, x0, w9, sxtw\n        sub             x0, x0, #32\n.if ! \\is_final_odd_line\n        asr             w14, w9, #1\n        add             x1, x1, w14, sxtw\n        sub             x1, x1, #16\n        add             x2, x2, w14, sxtw\n        sub             x2, x2, #16\n.endif\n.endm\n\n.macro slowpath_iteration src_fmt, dst_fmt, skip_storing_chroma\n.ifc \\dst_fmt, yuv422\n.ifc \\src_fmt, uyvy\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x1], #1\n        strb            w14, [x0], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x2], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x1], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x2], #1\n.endif\n.endif\n.ifc \\dst_fmt, yuv420\n.ifc \\src_fmt, uyvy\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:19", "text": "ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x1], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x2], #1\n.endif\n.endif\n.ifc \\dst_fmt, yuv420\n.ifc \\src_fmt, uyvy\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n.endif\n.else\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        strb            w12, [x0], #1\n        strb            w14, [x10], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:20", "text": "strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        strb            w12, [x0], #1\n        strb            w14, [x10], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n.endif\n.endif\n.endif\n.endm\n\n.macro move_pointers_to_next_line src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, x8\n        add             x0, x0, x6\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, x8\n        add             x10, x10, x6\n.endif\n        add             x1, x1, x7\n        add             x2, x2, x7\n.endm\n\n.macro interleaved_yuv_to_planar src_fmt, dst_fmt\nfunction ff_\\src_fmt\\()to\\dst_fmt\\()_neon, export=1\n        sxtw            x6, w6\n        sxtw            x7, w7\n        ldrsw           x8, [sp]\n        ands            w11, w4, #~31                     // choose between fast and slow path\n\n.ifc \\dst_fmt, yuv420\n        add             x10, x0, x6\n        add             x13, x3, x8\n        add             x8, x8, x8\n        add             x6, x6, x6\n        and             w17, w5, #1\n        asr             w5, w5, #1\n.endif\n        asr             w9, w4, #1\n        sub             x8, x8, w4, sxtw #1               // src offset\n        sub             x6, x6, w4, sxtw                  // lum offset\n        sub             x7, x7, x9                        // chr offset\n\n        b.eq            6f\n\n1:                                                        // fast path - the width is at least 32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:21", "text": "sxtw            x7, w7\n        ldrsw           x8, [sp]\n        ands            w11, w4, #~31                     // choose between fast and slow path\n\n.ifc \\dst_fmt, yuv420\n        add             x10, x0, x6\n        add             x13, x3, x8\n        add             x8, x8, x8\n        add             x6, x6, x6\n        and             w17, w5, #1\n        asr             w5, w5, #1\n.endif\n        asr             w9, w4, #1\n        sub             x8, x8, w4, sxtw #1               // src offset\n        sub             x6, x6, w4, sxtw                  // lum offset\n        sub             x7, x7, x9                        // chr offset\n\n        b.eq            6f\n\n1:                                                        // fast path - the width is at least 32\n        and             w14, w4, #~31                     // w14 is the main loop counter\n        and             w9, w4, #31                       // w9 holds the remaining width, 0 to 31\n2:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        b.ne            2b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 0\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            1b\n\n.ifc \\dst_fmt, yuv420                                    // handle the last line in case the height is odd\n        cbz             w17, 3f\n        and             w14, w4, #~31\n4:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 1\n        b.ne            4b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 1\n        fastpath_iteration \\src_fmt, \\dst_fmt, 1, 1\n3:\n.endif\n        ret\n\n6:                                                        // slow path - width is at most 31\n        and             w9, w4, #31\n7:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 0\n        b.ne            7b\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            6b\n\n.ifc \\dst_fmt, yuv420\n        cbz             w17, 8f\n        and             w9, w4, #31\n.ifc \\src_fmt, uyvy\n        add             x3, x3, #1\n.endif\n5:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:22", "text": ".endif\n        ret\n\n6:                                                        // slow path - width is at most 31\n        and             w9, w4, #31\n7:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 0\n        b.ne            7b\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            6b\n\n.ifc \\dst_fmt, yuv420\n        cbz             w17, 8f\n        and             w9, w4, #31\n.ifc \\src_fmt, uyvy\n        add             x3, x3, #1\n.endif\n5:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 1\n        b.ne            5b\n8:\n.endif\n        ret\nendfunc\n.endm\n\ninterleaved_yuv_to_planar uyvy, yuv422\ninterleaved_yuv_to_planar uyvy, yuv420\ninterleaved_yuv_to_planar yuyv, yuv422\ninterleaved_yuv_to_planar yuyv, yuv420", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 841, "line_end": 873}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:2", "text": ".byte  12, 15, 14, 13\nendconst\n\nconst shuf_1230_tbl, align=4\n        .byte  1,  2,  3,  0\n        .byte  5,  6,  7,  4\n        .byte  9,  10, 11, 8\n        .byte  13, 14, 15, 12\nendconst\n\nconst shuf_2103_tbl, align=4\n        .byte  2,  1,  0,  3\n        .byte  6,  5,  4,  7\n        .byte  10, 9,  8,  11\n        .byte  14, 13, 12, 15\nendconst\n\nconst shuf_3012_tbl, align=4\n        .byte  3,  0,  1,  2\n        .byte  7,  4,  5,  6\n        .byte  11, 8,  9,  10\n        .byte  15, 12, 13, 14\nendconst\n\nconst shuf_3210_tbl, align=4\n        .byte  3,  2,  1,  0\n        .byte  7,  6,  5,  4\n        .byte  11, 10, 9,  8\n        .byte  15, 14, 13, 12\nendconst\n\nconst shuf_3102_tbl, align=4\n        .byte  3,  1,  0,  2\n        .byte  7,  5,  4,  6\n        .byte  11, 9,  8,  10\n        .byte  15, 13, 12, 14\nendconst\n\nconst shuf_2013_tbl, align=4\n        .byte  2,  0,  1,  3\n        .byte  6,  4,  5,  7\n        .byte  10, 8,  9,  11\n        .byte  14, 12, 13, 15\nendconst\n\nconst shuf_1203_tbl, align=4\n        .byte  1,  2,  0,  3\n        .byte  5,  6,  4,  7\n        .byte  9,  10, 8,  11\n        .byte  13, 14, 12, 15\nendconst\n\nconst shuf_2130_tbl, align=4\n        .byte  2,  1,  3,  0\n        .byte  6,  5,  7,  4\n        .byte  10, 9,  11, 8\n        .byte  14, 13, 15, 12\nendconst\n\n// convert rgb to 16-bit y, u, or v", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:3", "text": ".byte  6,  4,  5,  7\n        .byte  10, 8,  9,  11\n        .byte  14, 12, 13, 15\nendconst\n\nconst shuf_1203_tbl, align=4\n        .byte  1,  2,  0,  3\n        .byte  5,  6,  4,  7\n        .byte  9,  10, 8,  11\n        .byte  13, 14, 12, 15\nendconst\n\nconst shuf_2130_tbl, align=4\n        .byte  2,  1,  3,  0\n        .byte  6,  5,  7,  4\n        .byte  10, 9,  11, 8\n        .byte  14, 13, 15, 12\nendconst\n\n// convert rgb to 16-bit y, u, or v\n// uses v3 and v4\n\n.macro rgbconv16 dst, b, g, r, bc, gc, rc, shr_bits\n        smull           v3.4s, \\b\\().4h, \\bc\n        smlal           v3.4s, \\g\\().4h, \\gc\n        smlal           v3.4s, \\r\\().4h, \\rc\n        smull2          v4.4s, \\b\\().8h, \\bc\n        smlal2          v4.4s, \\g\\().8h, \\gc\n        smlal2          v4.4s, \\r\\().8h, \\rc        // v3:v4 = b * bc + g * gc + r * rc (32-bit)\n        shrn            \\dst\\().4h, v3.4s, \\shr_bits\n        shrn2           \\dst\\().8h, v4.4s, \\shr_bits       // dst = b * bc + g * gc + r * rc (16-bit)\n.endm\n\n// void ff_rgb24toyv12_neon(const uint8_t *src, uint8_t *ydst, uint8_t *udst,\n//                          uint8_t *vdst, int width, int height, int lumStride,\n//                          int chromStride, int srcStride, int32_t *rgb2yuv);\nfunction ff_rgb24toyv12_neon, export=1\n// x0  const uint8_t *src\n// x1  uint8_t *ydst\n// x2  uint8_t *udst\n// x3  uint8_t *vdst\n// w4  int width\n// w5  int height\n// w6  int lumStride\n// w7  int chromStride\n        ldrsw           x14, [sp]\n        ldr             x15, [sp, #8]\n// x14 int srcStride\n// x15 int32_t *rgb2yuv\n\n        // extend width and stride parameters\n        uxtw            x4, w4\n        sxtw            x6, w6\n        sxtw            x7, w7\n\n        // src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:4", "text": "// x3  uint8_t *vdst\n// w4  int width\n// w5  int height\n// w6  int lumStride\n// w7  int chromStride\n        ldrsw           x14, [sp]\n        ldr             x15, [sp, #8]\n// x14 int srcStride\n// x15 int32_t *rgb2yuv\n\n        // extend width and stride parameters\n        uxtw            x4, w4\n        sxtw            x6, w6\n        sxtw            x7, w7\n\n        // src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width\n        sub             x14, x14, x11               // srcPadding = (2 * srcStride) - (3 * width)\n\n        // ydst1 = x1\n        // ydst2 = x11\n        add             x11, x1,  x6                // x11 = ydst + lumStride\n        lsl             x6,  x6,  #1                // lumStride *= 2\n        sub             x6,  x6,  x4                // lumPadding = (2 * lumStride) - width\n\n        sub             x7,  x7,  x4, lsr #1        // chromPadding = chromStride - (width / 2)\n\n        // load rgb2yuv coefficients into v0, v1, and v2\n        add             x15, x15, #RGB2YUV_COEFFS\n        ld1             {v0.8h-v2.8h}, [x15]        // load 24 values\n\n        // load offset constants\n        movi            Y_OFFSET.8h,  #0x10, lsl #8\n        movi            UV_OFFSET.8h, #0x80, lsl #8\n\n1:\n        mov             w15, w4                     // w15 = width\n\n2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48\n\n        // widen first line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B11\n        uxtl            v17.8h, v27.8b              // v17 = G11\n        uxtl            v18.8h, v28.8b              // v18 = R11\n        uxtl2           v19.8h, v26.16b             // v19 = B12\n        uxtl2           v20.8h, v27.16b             // v20 = G12\n        uxtl2           v21.8h, v28.16b             // v21 = R12\n\n        // calculate Y values for first line\n        rgbconv16       v24, v16, v17, v18, BY, GY, RY, #7 // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY, #7 // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:5", "text": "2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48\n\n        // widen first line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B11\n        uxtl            v17.8h, v27.8b              // v17 = G11\n        uxtl            v18.8h, v28.8b              // v18 = R11\n        uxtl2           v19.8h, v26.16b             // v19 = B12\n        uxtl2           v20.8h, v27.16b             // v20 = G12\n        uxtl2           v21.8h, v28.16b             // v21 = R12\n\n        // calculate Y values for first line\n        rgbconv16       v24, v16, v17, v18, BY, GY, RY, #7 // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY, #7 // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48\n\n        // pairwise add and save rgb values to calculate average\n        addp            v5.8h, v16.8h, v19.8h\n        addp            v6.8h, v17.8h, v20.8h\n        addp            v7.8h, v18.8h, v21.8h\n\n        // widen second line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B21\n        uxtl            v17.8h, v27.8b              // v17 = G21\n        uxtl            v18.8h, v28.8b              // v18 = R21\n        uxtl2           v19.8h, v26.16b             // v19 = B22\n        uxtl2           v20.8h, v27.16b             // v20 = G22\n        uxtl2           v21.8h, v28.16b             // v21 = R22\n\n        // calculate Y values for second line\n        rgbconv16       v26, v16, v17, v18, BY, GY, RY, #7 // v26 = Y21\n        rgbconv16       v27, v19, v20, v21, BY, GY, RY, #7 // v27 = Y22\n\n        // pairwise add rgb values to calculate average\n        addp            v16.8h, v16.8h, v19.8h\n        addp            v17.8h, v17.8h, v20.8h\n        addp            v18.8h, v18.8h, v21.8h\n\n        // calculate sum of r, g, b components in 2x2 blocks\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU, #9 // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV, #9 // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:6", "text": "addp            v18.8h, v18.8h, v21.8h\n\n        // calculate sum of r, g, b components in 2x2 blocks\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU, #9 // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV, #9 // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16\n\n        // store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding\n        add             x1,  x1,  x6                // ydst1 += lumPadding\n        add             x11, x11, x6                // ydst2 += lumPadding\n        add             x2,  x2,  x7                // udst  += chromPadding\n        add             x3,  x3,  x7                // vdst  += chromPadding\n        b.gt            1b\n\n        ret\nendfunc\n\n// void ff_rgb24tobgr24_neon(const uint8_t *src, uint8_t *dst, int src_size);\nfunction ff_rgb24tobgr24_neon, export=1\n        // x0 = src, x1 = dst, w2 = src_size (bytes)\n\n        // Fast path: 48 bytes (16 pixels) per iteration\n        subs            w2, w2, #48\n        b.lt            2f\n1:\n        ld3             {v0.16b, v1.16b, v2.16b}, [x0], #48\n        subs            w2, w2, #48\n        mov             v3.16b, v0.16b\n        mov             v0.16b, v2.16b\n        mov             v2.16b, v3.16b\n        st3             {v0.16b, v1.16b, v2.16b}, [x1], #48\n        b.ge            1b\n2:\n        add             w2, w2, #48", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:7", "text": "ret\nendfunc\n\n// void ff_rgb24tobgr24_neon(const uint8_t *src, uint8_t *dst, int src_size);\nfunction ff_rgb24tobgr24_neon, export=1\n        // x0 = src, x1 = dst, w2 = src_size (bytes)\n\n        // Fast path: 48 bytes (16 pixels) per iteration\n        subs            w2, w2, #48\n        b.lt            2f\n1:\n        ld3             {v0.16b, v1.16b, v2.16b}, [x0], #48\n        subs            w2, w2, #48\n        mov             v3.16b, v0.16b\n        mov             v0.16b, v2.16b\n        mov             v2.16b, v3.16b\n        st3             {v0.16b, v1.16b, v2.16b}, [x1], #48\n        b.ge            1b\n2:\n        add             w2, w2, #48\n        // Medium path: 24 bytes (8 pixels)\n        cmp             w2, #24\n        b.lt            3f\n        ld3             {v0.8b, v1.8b, v2.8b}, [x0], #24\n        sub             w2, w2, #24\n        mov             v3.8b, v0.8b\n        mov             v0.8b, v2.8b\n        mov             v2.8b, v3.8b\n        st3             {v0.8b, v1.8b, v2.8b}, [x1], #24\n3:\n        // Scalar tail: 3 bytes (1 pixel) at a time\n        cmp             w2, #3\n        b.lt            4f\n5:\n        ldrb            w4, [x0, #1]\n        ldrb            w5, [x0, #2]\n        ldrb            w3, [x0], #3\n        subs            w2, w2, #3\n        strb            w4, [x1, #1]\n        strb            w3, [x1, #2]\n        strb            w5, [x1], #3\n        b.gt            5b\n4:\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:8", "text": "strb            w5, [x1], #3\n        b.gt            5b\n4:\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:9", "text": "5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:10", "text": "tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n.macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:11", "text": "ret\nendfunc\n\n.macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.8b}, [x1], #8\n3:\n        cbz             w4, 4f\n.if \\shuf == 0321\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 1230\n        ldr             w5, [x0]\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 2103\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 3012\n        ldr             w5, [x0]\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:12", "text": ".endif\n.if \\shuf == 3012\n        ldr             w5, [x0]\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm\n\nneon_shuf 0321\nneon_shuf 1230\nneon_shuf 2103\nneon_shuf 3012\nneon_shuf 3102\nneon_shuf 2013\nneon_shuf 1203\nneon_shuf 2130\nneon_shuf 3210\n\n/*\nv0-v7 - two consecutive lines\nx0 - upper Y destination\nx1 - U destination\nx2 - V destination\nx3 - upper src line\nw5 - width/iteration counter - count of line pairs for yuv420, of single lines for 422\nx6 - lum padding\nx7 - chrom padding\nx8 - src padding\nw9 - number of bytes remaining in the tail\nx10 - lower Y destination\nw12 - tmp\nx13 - lower src line\nw14 - tmp\nw17 - set to 1 if last line has to be handled separately (odd height)\n*/\n\n// one fast path iteration processes 16 uyvy tuples\n// is_line_tail is set to 1 when final 16 tuples are being processed\n// skip_storing_chroma is set to 1 when final line is processed and the height is odd\n.macro fastpath_iteration src_fmt, dst_fmt, is_line_tail, skip_storing_chroma\n        ld4             {v0.16b - v3.16b}, [x3], #64\n.if ! \\is_line_tail\n        subs            w14, w14, #32\n.endif\n\n.if ! \\skip_storing_chroma\n.ifc \\dst_fmt, yuv420", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:13", "text": "x8 - src padding\nw9 - number of bytes remaining in the tail\nx10 - lower Y destination\nw12 - tmp\nx13 - lower src line\nw14 - tmp\nw17 - set to 1 if last line has to be handled separately (odd height)\n*/\n\n// one fast path iteration processes 16 uyvy tuples\n// is_line_tail is set to 1 when final 16 tuples are being processed\n// skip_storing_chroma is set to 1 when final line is processed and the height is odd\n.macro fastpath_iteration src_fmt, dst_fmt, is_line_tail, skip_storing_chroma\n        ld4             {v0.16b - v3.16b}, [x3], #64\n.if ! \\is_line_tail\n        subs            w14, w14, #32\n.endif\n\n.if ! \\skip_storing_chroma\n.ifc \\dst_fmt, yuv420\n        ld4             {v4.16b - v7.16b}, [x13], #64\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store UV\n.ifc \\src_fmt, uyvy\n        uhadd           v0.16b, v4.16b, v0.16b            // halving sum of U\n        uhadd           v2.16b, v6.16b, v2.16b            // halving sum of V\n.else\n        uhadd           v1.16b, v5.16b, v1.16b            // halving sum of U\n        uhadd           v3.16b, v7.16b, v3.16b            // halving sum of V\n.endif\n.endif\n\n.ifc \\src_fmt, uyvy\n        st1             {v2.16b}, [x2], #16\n        st1             {v0.16b}, [x1], #16\n.else\n        st1             {v3.16b}, [x2], #16\n        st1             {v1.16b}, [x1], #16\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store_y\n.ifc \\src_fmt, uyvy\n        mov             v6.16b, v5.16b\n        st2             {v6.16b,v7.16b}, [x10], #32\n.else\n        mov             v5.16b, v4.16b\n        st2             {v5.16b,v6.16b}, [x10], #32\n.endif\n.endif\n\n.endif // ! \\skip_storing_chroma\n\n.ifc \\src_fmt, uyvy\n        mov             v2.16b, v1.16b\n        st2             {v2.16b,v3.16b}, [x0], #32\n.else\n        mov             v1.16b, v0.16b\n        st2             {v1.16b,v2.16b}, [x0], #32\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:14", "text": ".ifc \\dst_fmt, yuv420                                    // store_y\n.ifc \\src_fmt, uyvy\n        mov             v6.16b, v5.16b\n        st2             {v6.16b,v7.16b}, [x10], #32\n.else\n        mov             v5.16b, v4.16b\n        st2             {v5.16b,v6.16b}, [x10], #32\n.endif\n.endif\n\n.endif // ! \\skip_storing_chroma\n\n.ifc \\src_fmt, uyvy\n        mov             v2.16b, v1.16b\n        st2             {v2.16b,v3.16b}, [x0], #32\n.else\n        mov             v1.16b, v0.16b\n        st2             {v1.16b,v2.16b}, [x0], #32\n.endif\n.endm\n\n// shift pointers back to width - 32 to process the tail of the line\n// if the height is odd, processing the final line is simplified\n.macro fastpath_shift_back_pointers src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, w9, sxtw #1\n        sub             x3, x3, #64\n.if ! \\is_final_odd_line\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, w9, sxtw #1\n        sub             x13, x13, #64\n        add             x10, x10, w9, sxtw\n        sub             x10, x10, #32\n.endif\n.endif\n        add             x0, x0, w9, sxtw\n        sub             x0, x0, #32\n.if ! \\is_final_odd_line\n        asr             w14, w9, #1\n        add             x1, x1, w14, sxtw\n        sub             x1, x1, #16\n        add             x2, x2, w14, sxtw\n        sub             x2, x2, #16\n.endif\n.endm\n\n.macro slowpath_iteration src_fmt, dst_fmt, skip_storing_chroma\n.ifc \\dst_fmt, yuv422\n.ifc \\src_fmt, uyvy\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x1], #1\n        strb            w14, [x0], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x2], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:15", "text": "sub             x1, x1, #16\n        add             x2, x2, w14, sxtw\n        sub             x2, x2, #16\n.endif\n.endm\n\n.macro slowpath_iteration src_fmt, dst_fmt, skip_storing_chroma\n.ifc \\dst_fmt, yuv422\n.ifc \\src_fmt, uyvy\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x1], #1\n        strb            w14, [x0], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x2], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x1], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x2], #1\n.endif\n.endif\n.ifc \\dst_fmt, yuv420\n.ifc \\src_fmt, uyvy\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n.endif\n.else\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:16", "text": "strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n.endif\n.else\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        strb            w12, [x0], #1\n        strb            w14, [x10], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n.endif\n.endif\n.endif\n.endm\n\n.macro move_pointers_to_next_line src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, x8\n        add             x0, x0, x6\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, x8\n        add             x10, x10, x6\n.endif\n        add             x1, x1, x7\n        add             x2, x2, x7\n.endm\n\n.macro interleaved_yuv_to_planar src_fmt, dst_fmt\nfunction ff_\\src_fmt\\()to\\dst_fmt\\()_neon, export=1\n        sxtw            x6, w6\n        sxtw            x7, w7", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:17", "text": ".endif\n.endif\n.endif\n.endm\n\n.macro move_pointers_to_next_line src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, x8\n        add             x0, x0, x6\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, x8\n        add             x10, x10, x6\n.endif\n        add             x1, x1, x7\n        add             x2, x2, x7\n.endm\n\n.macro interleaved_yuv_to_planar src_fmt, dst_fmt\nfunction ff_\\src_fmt\\()to\\dst_fmt\\()_neon, export=1\n        sxtw            x6, w6\n        sxtw            x7, w7\n        ldrsw           x8, [sp]\n        ands            w11, w4, #~31                     // choose between fast and slow path\n\n.ifc \\dst_fmt, yuv420\n        add             x10, x0, x6\n        add             x13, x3, x8\n        add             x8, x8, x8\n        add             x6, x6, x6\n        and             w17, w5, #1\n        asr             w5, w5, #1\n.endif\n        asr             w9, w4, #1\n        sub             x8, x8, w4, sxtw #1               // src offset\n        sub             x6, x6, w4, sxtw                  // lum offset\n        sub             x7, x7, x9                        // chr offset\n\n        b.eq            6f\n\n1:                                                        // fast path - the width is at least 32\n        and             w14, w4, #~31                     // w14 is the main loop counter\n        and             w9, w4, #31                       // w9 holds the remaining width, 0 to 31\n2:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        b.ne            2b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 0\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            1b\n\n.ifc \\dst_fmt, yuv420                                    // handle the last line in case the height is odd\n        cbz             w17, 3f\n        and             w14, w4, #~31\n4:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 1\n        b.ne            4b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 1\n        fastpath_iteration \\src_fmt, \\dst_fmt, 1, 1\n3:\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:18", "text": "and             w9, w4, #31                       // w9 holds the remaining width, 0 to 31\n2:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        b.ne            2b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 0\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            1b\n\n.ifc \\dst_fmt, yuv420                                    // handle the last line in case the height is odd\n        cbz             w17, 3f\n        and             w14, w4, #~31\n4:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 1\n        b.ne            4b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 1\n        fastpath_iteration \\src_fmt, \\dst_fmt, 1, 1\n3:\n.endif\n        ret\n\n6:                                                        // slow path - width is at most 31\n        and             w9, w4, #31\n7:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 0\n        b.ne            7b\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            6b\n\n.ifc \\dst_fmt, yuv420\n        cbz             w17, 8f\n        and             w9, w4, #31\n.ifc \\src_fmt, uyvy\n        add             x3, x3, #1\n.endif\n5:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 1\n        b.ne            5b\n8:\n.endif\n        ret\nendfunc\n.endm\n\ninterleaved_yuv_to_planar uyvy, yuv422\ninterleaved_yuv_to_planar uyvy, yuv420\ninterleaved_yuv_to_planar yuyv, yuv422\ninterleaved_yuv_to_planar yuyv, yuv420", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 681, "line_end": 732}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:19", "text": "slowpath_iteration \\src_fmt, \\dst_fmt, 1\n        b.ne            5b\n8:\n.endif\n        ret\nendfunc\n.endm\n\ninterleaved_yuv_to_planar uyvy, yuv422\ninterleaved_yuv_to_planar uyvy, yuv420\ninterleaved_yuv_to_planar yuyv, yuv422\ninterleaved_yuv_to_planar yuyv, yuv420", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "ddd720ae619784b9834131ac34a2d86004ec3b73", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ddd720ae619784b9834131ac34a2d86004ec3b73/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 721, "line_end": 732}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:6", "text": "addp            v18.8h, v18.8h, v21.8h\n\n        // calculate sum of r, g, b components in 2x2 blocks\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU, #9 // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV, #9 // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16\n\n        // store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding\n        add             x1,  x1,  x6                // ydst1 += lumPadding\n        add             x11, x11, x6                // ydst2 += lumPadding\n        add             x2,  x2,  x7                // udst  += chromPadding\n        add             x3,  x3,  x7                // vdst  += chromPadding\n        b.gt            1b\n\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:7", "text": "ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:8", "text": "b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:9", "text": "3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n.macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.8b}, [x1], #8\n3:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:10", "text": ".macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.8b}, [x1], #8\n3:\n        cbz             w4, 4f\n.if \\shuf == 0321\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 1230\n        ldr             w5, [x0]\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 2103\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 3012\n        ldr             w5, [x0]\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm\n\nneon_shuf 0321\nneon_shuf 1230", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:11", "text": "ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm\n\nneon_shuf 0321\nneon_shuf 1230\nneon_shuf 2103\nneon_shuf 3012\nneon_shuf 3102\nneon_shuf 2013\nneon_shuf 1203\nneon_shuf 2130\nneon_shuf 3210\n\n/*\nv0-v7 - two consecutive lines\nx0 - upper Y destination\nx1 - U destination\nx2 - V destination\nx3 - upper src line\nw5 - width/iteration counter - count of line pairs for yuv420, of single lines for 422\nx6 - lum padding\nx7 - chrom padding\nx8 - src padding\nw9 - number of bytes remaining in the tail\nx10 - lower Y destination\nw12 - tmp\nx13 - lower src line\nw14 - tmp\nw17 - set to 1 if last line has to be handled separately (odd height)\n*/\n\n// one fast path iteration processes 16 uyvy tuples\n// is_line_tail is set to 1 when final 16 tuples are being processed\n// skip_storing_chroma is set to 1 when final line is processed and the height is odd\n.macro fastpath_iteration src_fmt, dst_fmt, is_line_tail, skip_storing_chroma\n        ld4             {v0.16b - v3.16b}, [x3], #64\n.if ! \\is_line_tail\n        subs            w14, w14, #32\n.endif\n\n.if ! \\skip_storing_chroma\n.ifc \\dst_fmt, yuv420\n        ld4             {v4.16b - v7.16b}, [x13], #64\n.endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:12", "text": "w12 - tmp\nx13 - lower src line\nw14 - tmp\nw17 - set to 1 if last line has to be handled separately (odd height)\n*/\n\n// one fast path iteration processes 16 uyvy tuples\n// is_line_tail is set to 1 when final 16 tuples are being processed\n// skip_storing_chroma is set to 1 when final line is processed and the height is odd\n.macro fastpath_iteration src_fmt, dst_fmt, is_line_tail, skip_storing_chroma\n        ld4             {v0.16b - v3.16b}, [x3], #64\n.if ! \\is_line_tail\n        subs            w14, w14, #32\n.endif\n\n.if ! \\skip_storing_chroma\n.ifc \\dst_fmt, yuv420\n        ld4             {v4.16b - v7.16b}, [x13], #64\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store UV\n.ifc \\src_fmt, uyvy\n        uhadd           v0.16b, v4.16b, v0.16b            // halving sum of U\n        uhadd           v2.16b, v6.16b, v2.16b            // halving sum of V\n.else\n        uhadd           v1.16b, v5.16b, v1.16b            // halving sum of U\n        uhadd           v3.16b, v7.16b, v3.16b            // halving sum of V\n.endif\n.endif\n\n.ifc \\src_fmt, uyvy\n        st1             {v2.16b}, [x2], #16\n        st1             {v0.16b}, [x1], #16\n.else\n        st1             {v3.16b}, [x2], #16\n        st1             {v1.16b}, [x1], #16\n.endif\n\n.ifc \\dst_fmt, yuv420                                    // store_y\n.ifc \\src_fmt, uyvy\n        mov             v6.16b, v5.16b\n        st2             {v6.16b,v7.16b}, [x10], #32\n.else\n        mov             v5.16b, v4.16b\n        st2             {v5.16b,v6.16b}, [x10], #32\n.endif\n.endif\n\n.endif // ! \\skip_storing_chroma\n\n.ifc \\src_fmt, uyvy\n        mov             v2.16b, v1.16b\n        st2             {v2.16b,v3.16b}, [x0], #32\n.else\n        mov             v1.16b, v0.16b\n        st2             {v1.16b,v2.16b}, [x0], #32\n.endif\n.endm\n\n// shift pointers back to width - 32 to process the tail of the line", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:13", "text": "mov             v6.16b, v5.16b\n        st2             {v6.16b,v7.16b}, [x10], #32\n.else\n        mov             v5.16b, v4.16b\n        st2             {v5.16b,v6.16b}, [x10], #32\n.endif\n.endif\n\n.endif // ! \\skip_storing_chroma\n\n.ifc \\src_fmt, uyvy\n        mov             v2.16b, v1.16b\n        st2             {v2.16b,v3.16b}, [x0], #32\n.else\n        mov             v1.16b, v0.16b\n        st2             {v1.16b,v2.16b}, [x0], #32\n.endif\n.endm\n\n// shift pointers back to width - 32 to process the tail of the line\n// if the height is odd, processing the final line is simplified\n.macro fastpath_shift_back_pointers src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, w9, sxtw #1\n        sub             x3, x3, #64\n.if ! \\is_final_odd_line\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, w9, sxtw #1\n        sub             x13, x13, #64\n        add             x10, x10, w9, sxtw\n        sub             x10, x10, #32\n.endif\n.endif\n        add             x0, x0, w9, sxtw\n        sub             x0, x0, #32\n.if ! \\is_final_odd_line\n        asr             w14, w9, #1\n        add             x1, x1, w14, sxtw\n        sub             x1, x1, #16\n        add             x2, x2, w14, sxtw\n        sub             x2, x2, #16\n.endif\n.endm\n\n.macro slowpath_iteration src_fmt, dst_fmt, skip_storing_chroma\n.ifc \\dst_fmt, yuv422\n.ifc \\src_fmt, uyvy\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x1], #1\n        strb            w14, [x0], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x2], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x1], #1\n        ldrb            w12, [x3], #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:14", "text": ".endif\n.endm\n\n.macro slowpath_iteration src_fmt, dst_fmt, skip_storing_chroma\n.ifc \\dst_fmt, yuv422\n.ifc \\src_fmt, uyvy\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x1], #1\n        strb            w14, [x0], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x2], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x1], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x3], #1\n        strb            w12, [x0], #1\n        strb            w14, [x2], #1\n.endif\n.endif\n.ifc \\dst_fmt, yuv420\n.ifc \\src_fmt, uyvy\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n.endif\n.else\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:15", "text": "strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n.endif\n.else\n.if \\skip_storing_chroma\n        ldrb            w12, [x3], #2\n        ldrb            w14, [x3], #2\n        strb            w12, [x0], #1\n        strb            w14, [x0], #1\n.else\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        strb            w12, [x0], #1\n        strb            w14, [x10], #1\n        ldrb            w12, [x3], #1\n        ldrb            w14, [x13], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x1], #1\n        ldrb            w14, [x3], #1\n        ldrb            w12, [x13], #1\n        strb            w14, [x0], #1\n        strb            w12, [x10], #1\n        ldrb            w14, [x13], #1\n        ldrb            w12, [x3], #1\n        add             w12, w12, w14\n        lsr             w12, w12, #1\n        strb            w12, [x2], #1\n.endif\n.endif\n.endif\n.endm\n\n.macro move_pointers_to_next_line src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, x8\n        add             x0, x0, x6\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, x8\n        add             x10, x10, x6\n.endif\n        add             x1, x1, x7\n        add             x2, x2, x7\n.endm\n\n.macro interleaved_yuv_to_planar src_fmt, dst_fmt\nfunction ff_\\src_fmt\\()to\\dst_fmt\\()_neon, export=1\n        sxtw            x6, w6\n        sxtw            x7, w7\n        ldrsw           x8, [sp]\n        ands            w11, w4, #~31                     // choose between fast and slow path", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:16", "text": ".endm\n\n.macro move_pointers_to_next_line src_fmt, dst_fmt, is_final_odd_line\n        add             x3, x3, x8\n        add             x0, x0, x6\n.ifc \\dst_fmt, yuv420\n        add             x13, x13, x8\n        add             x10, x10, x6\n.endif\n        add             x1, x1, x7\n        add             x2, x2, x7\n.endm\n\n.macro interleaved_yuv_to_planar src_fmt, dst_fmt\nfunction ff_\\src_fmt\\()to\\dst_fmt\\()_neon, export=1\n        sxtw            x6, w6\n        sxtw            x7, w7\n        ldrsw           x8, [sp]\n        ands            w11, w4, #~31                     // choose between fast and slow path\n\n.ifc \\dst_fmt, yuv420\n        add             x10, x0, x6\n        add             x13, x3, x8\n        add             x8, x8, x8\n        add             x6, x6, x6\n        and             w17, w5, #1\n        asr             w5, w5, #1\n.endif\n        asr             w9, w4, #1\n        sub             x8, x8, w4, sxtw #1               // src offset\n        sub             x6, x6, w4, sxtw                  // lum offset\n        sub             x7, x7, x9                        // chr offset\n\n        b.eq            6f\n\n1:                                                        // fast path - the width is at least 32\n        and             w14, w4, #~31                     // w14 is the main loop counter\n        and             w9, w4, #31                       // w9 holds the remaining width, 0 to 31\n2:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        b.ne            2b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 0\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            1b\n\n.ifc \\dst_fmt, yuv420                                    // handle the last line in case the height is odd\n        cbz             w17, 3f\n        and             w14, w4, #~31\n4:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 1\n        b.ne            4b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 1\n        fastpath_iteration \\src_fmt, \\dst_fmt, 1, 1\n3:\n.endif\n        ret\n\n6:                                                        // slow path - width is at most 31", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:17", "text": "b.ne            2b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 0\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 0\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            1b\n\n.ifc \\dst_fmt, yuv420                                    // handle the last line in case the height is odd\n        cbz             w17, 3f\n        and             w14, w4, #~31\n4:\n        fastpath_iteration \\src_fmt, \\dst_fmt, 0, 1\n        b.ne            4b\n        fastpath_shift_back_pointers \\src_fmt, \\dst_fmt, 1\n        fastpath_iteration \\src_fmt, \\dst_fmt, 1, 1\n3:\n.endif\n        ret\n\n6:                                                        // slow path - width is at most 31\n        and             w9, w4, #31\n7:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 0\n        b.ne            7b\n        subs            w5, w5, #1\n        move_pointers_to_next_line \\src_fmt, \\dst_fmt\n        b.ne            6b\n\n.ifc \\dst_fmt, yuv420\n        cbz             w17, 8f\n        and             w9, w4, #31\n.ifc \\src_fmt, uyvy\n        add             x3, x3, #1\n.endif\n5:\n        subs            w9, w9, #2\n        slowpath_iteration \\src_fmt, \\dst_fmt, 1\n        b.ne            5b\n8:\n.endif\n        ret\nendfunc\n.endm\n\ninterleaved_yuv_to_planar uyvy, yuv422\ninterleaved_yuv_to_planar uyvy, yuv420\ninterleaved_yuv_to_planar yuyv, yuv422\ninterleaved_yuv_to_planar yuyv, yuv420", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "b92577405b40b6eb5ecf0036060e34e0219da1e3", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b92577405b40b6eb5ecf0036060e34e0219da1e3/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 641, "line_end": 689}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:11", "text": "ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm\n\nneon_shuf 0321\nneon_shuf 1230\nneon_shuf 2103\nneon_shuf 3012\nneon_shuf 3102\nneon_shuf 2013\nneon_shuf 1203\nneon_shuf 2130\nneon_shuf 3210", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "64107e22f545d3899f9270751531997734d89a3d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/64107e22f545d3899f9270751531997734d89a3d/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 401, "line_end": 427}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:3", "text": ".byte  6,  4,  5,  7\n        .byte  10, 8,  9,  11\n        .byte  14, 12, 13, 15\nendconst\n\nconst shuf_1203_tbl, align=4\n        .byte  1,  2,  0,  3\n        .byte  5,  6,  4,  7\n        .byte  9,  10, 8,  11\n        .byte  13, 14, 12, 15\nendconst\n\nconst shuf_2130_tbl, align=4\n        .byte  2,  1,  3,  0\n        .byte  6,  5,  7,  4\n        .byte  10, 9,  11, 8\n        .byte  14, 13, 15, 12\nendconst\n\n// convert rgb to 16-bit y, u, or v\n// uses v3 and v4\n.macro rgbconv16 dst, b, g, r, bc, gc, rc\n        smull           v3.4s, \\b\\().4h, \\bc\n        smlal           v3.4s, \\g\\().4h, \\gc\n        smlal           v3.4s, \\r\\().4h, \\rc\n        smull2          v4.4s, \\b\\().8h, \\bc\n        smlal2          v4.4s, \\g\\().8h, \\gc\n        smlal2          v4.4s, \\r\\().8h, \\rc        // v3:v4 = b * bc + g * gc + r * rc (32-bit)\n        shrn            \\dst\\().4h, v3.4s, #7\n        shrn2           \\dst\\().8h, v4.4s, #7       // dst = b * bc + g * gc + r * rc (16-bit)\n.endm\n\n// void ff_rgb24toyv12_neon(const uint8_t *src, uint8_t *ydst, uint8_t *udst,\n//                          uint8_t *vdst, int width, int height, int lumStride,\n//                          int chromStride, int srcStride, int32_t *rgb2yuv);\nfunction ff_rgb24toyv12_neon, export=1\n// x0  const uint8_t *src\n// x1  uint8_t *ydst\n// x2  uint8_t *udst\n// x3  uint8_t *vdst\n// w4  int width\n// w5  int height\n// w6  int lumStride\n// w7  int chromStride\n        ldrsw           x14, [sp]\n        ldr             x15, [sp, #8]\n// x14 int srcStride\n// x15 int32_t *rgb2yuv\n\n        // extend width and stride parameters\n        uxtw            x4, w4\n        sxtw            x6, w6\n        sxtw            x7, w7\n\n        // src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width\n        sub             x14, x14, x11               // srcPadding = (2 * srcStride) - (3 * width)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:4", "text": "// w4  int width\n// w5  int height\n// w6  int lumStride\n// w7  int chromStride\n        ldrsw           x14, [sp]\n        ldr             x15, [sp, #8]\n// x14 int srcStride\n// x15 int32_t *rgb2yuv\n\n        // extend width and stride parameters\n        uxtw            x4, w4\n        sxtw            x6, w6\n        sxtw            x7, w7\n\n        // src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width\n        sub             x14, x14, x11               // srcPadding = (2 * srcStride) - (3 * width)\n\n        // ydst1 = x1\n        // ydst2 = x11\n        add             x11, x1,  x6                // x11 = ydst + lumStride\n        lsl             x6,  x6,  #1                // lumStride *= 2\n        sub             x6,  x6,  x4                // lumPadding = (2 * lumStride) - width\n\n        sub             x7,  x7,  x4, lsr #1        // chromPadding = chromStride - (width / 2)\n\n        // load rgb2yuv coefficients into v0, v1, and v2\n        add             x15, x15, #RGB2YUV_COEFFS\n        ld1             {v0.8h-v2.8h}, [x15]        // load 24 values\n\n        // load offset constants\n        movi            Y_OFFSET.8h,  #0x10, lsl #8\n        movi            UV_OFFSET.8h, #0x80, lsl #8\n\n1:\n        mov             w15, w4                     // w15 = width\n\n2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48\n\n        // widen first line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B11\n        uxtl            v17.8h, v27.8b              // v17 = G11\n        uxtl            v18.8h, v28.8b              // v18 = R11\n        uxtl2           v19.8h, v26.16b             // v19 = B12\n        uxtl2           v20.8h, v27.16b             // v20 = G12\n        uxtl2           v21.8h, v28.16b             // v21 = R12\n\n        // calculate Y values for first line\n        rgbconv16       v24, v16, v17, v18, BY, GY, RY // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48\n\n        // pairwise add and save rgb values to calculate average", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:5", "text": "2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48\n\n        // widen first line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B11\n        uxtl            v17.8h, v27.8b              // v17 = G11\n        uxtl            v18.8h, v28.8b              // v18 = R11\n        uxtl2           v19.8h, v26.16b             // v19 = B12\n        uxtl2           v20.8h, v27.16b             // v20 = G12\n        uxtl2           v21.8h, v28.16b             // v21 = R12\n\n        // calculate Y values for first line\n        rgbconv16       v24, v16, v17, v18, BY, GY, RY // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48\n\n        // pairwise add and save rgb values to calculate average\n        addp            v5.8h, v16.8h, v19.8h\n        addp            v6.8h, v17.8h, v20.8h\n        addp            v7.8h, v18.8h, v21.8h\n\n        // widen second line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B21\n        uxtl            v17.8h, v27.8b              // v17 = G21\n        uxtl            v18.8h, v28.8b              // v18 = R21\n        uxtl2           v19.8h, v26.16b             // v19 = B22\n        uxtl2           v20.8h, v27.16b             // v20 = G22\n        uxtl2           v21.8h, v28.16b             // v21 = R22\n\n        // calculate Y values for second line\n        rgbconv16       v26, v16, v17, v18, BY, GY, RY // v26 = Y21\n        rgbconv16       v27, v19, v20, v21, BY, GY, RY // v27 = Y22\n\n        // pairwise add rgb values to calculate average\n        addp            v16.8h, v16.8h, v19.8h\n        addp            v17.8h, v17.8h, v20.8h\n        addp            v18.8h, v18.8h, v21.8h\n\n        // calculate average\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n        ushr            v16.8h, v16.8h, #2\n        ushr            v17.8h, v17.8h, #2\n        ushr            v18.8h, v18.8h, #2\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:6", "text": "// calculate average\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n        ushr            v16.8h, v16.8h, #2\n        ushr            v17.8h, v17.8h, #2\n        ushr            v18.8h, v18.8h, #2\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16\n\n        // store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding\n        add             x1,  x1,  x6                // ydst1 += lumPadding\n        add             x11, x11, x6                // ydst2 += lumPadding\n        add             x2,  x2,  x7                // udst  += chromPadding\n        add             x3,  x3,  x7                // vdst  += chromPadding\n        b.gt            1b\n\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:7", "text": "b.gt            1b\n\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:8", "text": "5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:9", "text": "tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n.macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:10", "text": "endfunc\n\n.macro neon_shuf shuf\nfunction ff_shuffle_bytes_\\shuf\\()_neon, export=1\n        movrel          x9, shuf_\\shuf\\()_tbl\n        ld1             {v1.16b}, [x9]\n        and             w5, w2, #~15\n        and             w3, w2, #8\n        and             w4, w2, #4\n        cbz             w5, 2f\n1:\n        ld1             {v0.16b}, [x0], #16\n        subs            w5, w5, #16\n        tbl             v0.16b, {v0.16b}, v1.16b\n        st1             {v0.16b}, [x1], #16\n        b.gt            1b\n2:\n        cbz             w3, 3f\n        ld1             {v0.8b}, [x0], #8\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.8b}, [x1], #8\n3:\n        cbz             w4, 4f\n.if \\shuf == 0321\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 1230\n        ldr             w5, [x0]\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 2103\n        ldr             w5, [x0]\n        rev             w5, w5\n        ror             w5, w5, #8\n        str             w5, [x1]\n.endif\n.if \\shuf == 3012\n        ldr             w5, [x0]\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:11", "text": ".if \\shuf == 3012\n        ldr             w5, [x0]\n        ror             w5, w5, #24\n        str             w5, [x1]\n.endif\n.if \\shuf == 3210\n        ldr             w5, [x0]\n        rev             w5, w5\n        str             w5, [x1]\n.endif\n.if \\shuf == 3102 || \\shuf == 2013 || \\shuf == 1203 || \\shuf == 2130\n        ld1             {v0.s}[0], [x0]\n        tbl             v0.8b, {v0.16b}, v1.8b\n        st1             {v0.s}[0], [x1]\n.endif\n4:\n        ret\nendfunc\n.endm\n\nneon_shuf 0321\nneon_shuf 1230\nneon_shuf 2103\nneon_shuf 3012\nneon_shuf 3102\nneon_shuf 2013\nneon_shuf 1203\nneon_shuf 2130\nneon_shuf 3210", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c85a748979db507d619ac10d74832d3e33635942", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c85a748979db507d619ac10d74832d3e33635942/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 401, "line_end": 429}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:2", "text": "smlal           v3.4s, \\g\\().4h, \\gc\n        smlal           v3.4s, \\r\\().4h, \\rc\n        smull2          v4.4s, \\b\\().8h, \\bc\n        smlal2          v4.4s, \\g\\().8h, \\gc\n        smlal2          v4.4s, \\r\\().8h, \\rc        // v3:v4 = b * bc + g * gc + r * rc (32-bit)\n        shrn            \\dst\\().4h, v3.4s, #7\n        shrn2           \\dst\\().8h, v4.4s, #7       // dst = b * bc + g * gc + r * rc (16-bit)\n.endm\n\n// void ff_rgb24toyv12_neon(const uint8_t *src, uint8_t *ydst, uint8_t *udst,\n//                          uint8_t *vdst, int width, int height, int lumStride,\n//                          int chromStride, int srcStride, int32_t *rgb2yuv);\nfunction ff_rgb24toyv12_neon, export=1\n// x0  const uint8_t *src\n// x1  uint8_t *ydst\n// x2  uint8_t *udst\n// x3  uint8_t *vdst\n// w4  int width\n// w5  int height\n// w6  int lumStride\n// w7  int chromStride\n        ldrsw           x14, [sp]\n        ldr             x15, [sp, #8]\n// x14 int srcStride\n// x15 int32_t *rgb2yuv\n\n        // extend width and stride parameters\n        uxtw            x4, w4\n        sxtw            x6, w6\n        sxtw            x7, w7\n\n        // src1 = x0\n        // src2 = x10\n        add             x10, x0,  x14               // x10 = src + srcStride\n        lsl             x14, x14, #1                // srcStride *= 2\n        add             x11, x4,  x4, lsl #1        // x11 = 3 * width\n        sub             x14, x14, x11               // srcPadding = (2 * srcStride) - (3 * width)\n\n        // ydst1 = x1\n        // ydst2 = x11\n        add             x11, x1,  x6                // x11 = ydst + lumStride\n        lsl             x6,  x6,  #1                // lumStride *= 2\n        sub             x6,  x6,  x4                // lumPadding = (2 * lumStride) - width\n\n        sub             x7,  x7,  x4, lsr #1        // chromPadding = chromStride - (width / 2)\n\n        // load rgb2yuv coefficients into v0, v1, and v2\n        add             x15, x15, #RGB2YUV_COEFFS\n        ld1             {v0.8h-v2.8h}, [x15]        // load 24 values\n\n        // load offset constants\n        movi            Y_OFFSET.8h,  #0x10, lsl #8\n        movi            UV_OFFSET.8h, #0x80, lsl #8\n\n1:\n        mov             w15, w4                     // w15 = width\n\n2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:3", "text": "add             x11, x1,  x6                // x11 = ydst + lumStride\n        lsl             x6,  x6,  #1                // lumStride *= 2\n        sub             x6,  x6,  x4                // lumPadding = (2 * lumStride) - width\n\n        sub             x7,  x7,  x4, lsr #1        // chromPadding = chromStride - (width / 2)\n\n        // load rgb2yuv coefficients into v0, v1, and v2\n        add             x15, x15, #RGB2YUV_COEFFS\n        ld1             {v0.8h-v2.8h}, [x15]        // load 24 values\n\n        // load offset constants\n        movi            Y_OFFSET.8h,  #0x10, lsl #8\n        movi            UV_OFFSET.8h, #0x80, lsl #8\n\n1:\n        mov             w15, w4                     // w15 = width\n\n2:\n        // load first line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x0], #48\n\n        // widen first line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B11\n        uxtl            v17.8h, v27.8b              // v17 = G11\n        uxtl            v18.8h, v28.8b              // v18 = R11\n        uxtl2           v19.8h, v26.16b             // v19 = B12\n        uxtl2           v20.8h, v27.16b             // v20 = G12\n        uxtl2           v21.8h, v28.16b             // v21 = R12\n\n        // calculate Y values for first line\n        rgbconv16       v24, v16, v17, v18, BY, GY, RY // v24 = Y11\n        rgbconv16       v25, v19, v20, v21, BY, GY, RY // v25 = Y12\n\n        // load second line\n        ld3             {v26.16b, v27.16b, v28.16b}, [x10], #48\n\n        // pairwise add and save rgb values to calculate average\n        addp            v5.8h, v16.8h, v19.8h\n        addp            v6.8h, v17.8h, v20.8h\n        addp            v7.8h, v18.8h, v21.8h\n\n        // widen second line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B21\n        uxtl            v17.8h, v27.8b              // v17 = G21\n        uxtl            v18.8h, v28.8b              // v18 = R21\n        uxtl2           v19.8h, v26.16b             // v19 = B22\n        uxtl2           v20.8h, v27.16b             // v20 = G22\n        uxtl2           v21.8h, v28.16b             // v21 = R22\n\n        // calculate Y values for second line\n        rgbconv16       v26, v16, v17, v18, BY, GY, RY // v26 = Y21\n        rgbconv16       v27, v19, v20, v21, BY, GY, RY // v27 = Y22\n\n        // pairwise add rgb values to calculate average\n        addp            v16.8h, v16.8h, v19.8h\n        addp            v17.8h, v17.8h, v20.8h\n        addp            v18.8h, v18.8h, v21.8h\n\n        // calculate average\n        add             v16.8h, v16.8h, v5.8h", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:4", "text": "// widen second line to 16-bit\n        uxtl            v16.8h, v26.8b              // v16 = B21\n        uxtl            v17.8h, v27.8b              // v17 = G21\n        uxtl            v18.8h, v28.8b              // v18 = R21\n        uxtl2           v19.8h, v26.16b             // v19 = B22\n        uxtl2           v20.8h, v27.16b             // v20 = G22\n        uxtl2           v21.8h, v28.16b             // v21 = R22\n\n        // calculate Y values for second line\n        rgbconv16       v26, v16, v17, v18, BY, GY, RY // v26 = Y21\n        rgbconv16       v27, v19, v20, v21, BY, GY, RY // v27 = Y22\n\n        // pairwise add rgb values to calculate average\n        addp            v16.8h, v16.8h, v19.8h\n        addp            v17.8h, v17.8h, v20.8h\n        addp            v18.8h, v18.8h, v21.8h\n\n        // calculate average\n        add             v16.8h, v16.8h, v5.8h\n        add             v17.8h, v17.8h, v6.8h\n        add             v18.8h, v18.8h, v7.8h\n        ushr            v16.8h, v16.8h, #2\n        ushr            v17.8h, v17.8h, #2\n        ushr            v18.8h, v18.8h, #2\n\n        // calculate U and V values\n        rgbconv16       v28, v16, v17, v18, BU, GU, RU // v28 = U\n        rgbconv16       v29, v16, v17, v18, BV, GV, RV // v29 = V\n\n        // add offsets and narrow all values\n        addhn           v24.8b, v24.8h, Y_OFFSET.8h\n        addhn           v25.8b, v25.8h, Y_OFFSET.8h\n        addhn           v26.8b, v26.8h, Y_OFFSET.8h\n        addhn           v27.8b, v27.8h, Y_OFFSET.8h\n        addhn           v28.8b, v28.8h, UV_OFFSET.8h\n        addhn           v29.8b, v29.8h, UV_OFFSET.8h\n\n        subs            w15, w15, #16\n\n        // store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding\n        add             x1,  x1,  x6                // ydst1 += lumPadding\n        add             x11, x11, x6                // ydst2 += lumPadding\n        add             x2,  x2,  x7                // udst  += chromPadding\n        add             x3,  x3,  x7                // vdst  += chromPadding\n        b.gt            1b\n\n        ret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:5", "text": "// store output\n        st1             {v24.8b, v25.8b}, [x1], #16 // store ydst1\n        st1             {v26.8b, v27.8b}, [x11], #16 // store ydst2\n        st1             {v28.8b}, [x2], #8          // store udst\n        st1             {v29.8b}, [x3], #8          // store vdst\n\n        b.gt            2b\n\n        subs            w5,  w5,  #2\n\n        // row += 2\n        add             x0,  x0,  x14               // src1  += srcPadding\n        add             x10, x10, x14               // src2  += srcPadding\n        add             x1,  x1,  x6                // ydst1 += lumPadding\n        add             x11, x11, x6                // ydst2 += lumPadding\n        add             x2,  x2,  x7                // udst  += chromPadding\n        add             x3,  x3,  x7                // vdst  += chromPadding\n        b.gt            1b\n\n        ret\nendfunc\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:6", "text": "b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc\n\n// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:7", "text": "// void ff_deinterleave_bytes_neon(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,\n//                                 int width, int height, int srcStride,\n//                                 int dst1Stride, int dst2Stride);\nfunction ff_deinterleave_bytes_neon, export=1\n        sub             w5,  w5,  w3, lsl #1\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld2             {v0.16b, v1.16b}, [x0], #32\n        subs            w8,  w8,  #16\n        st1             {v0.16b}, [x1], #16\n        st1             {v1.16b}, [x2], #16\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld2             {v0.8b, v1.8b}, [x0], #16\n        st1             {v0.8b}, [x1], #8\n        st1             {v1.8b}, [x2], #8\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.8b}, [x0], #8\n        shrn            v1.8b,   v0.8h, #8\n        xtn             v0.8b,   v0.8h\n        st1             {v0.s}[0], [x1], #4\n        st1             {v1.s}[0], [x2], #4\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 241, "line_end": 298}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:8", "text": "ldrh            w9,  [x0], #2\n        subs            w8,  w8,  #1\n        ubfx            w10, w9,  #8,  #8\n        strb            w9,  [x1], #1\n        strb            w10, [x2], #1\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c0666d8bedfb8bd242ea2a9fe2bd3e5a1addc0a5/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 281, "line_end": 298}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2020 Martin Storsjo\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n// void ff_interleave_bytes_neon(const uint8_t *src1, const uint8_t *src2,\n//                               uint8_t *dest, int width, int height,\n//                               int src1Stride, int src2Stride, int dstStride);\nfunction ff_interleave_bytes_neon, export=1\n        sub             w5,  w5,  w3\n        sub             w6,  w6,  w3\n        sub             w7,  w7,  w3, lsl #1\n1:\n        ands            w8,  w3,  #0xfffffff0 // & ~15\n        b.eq            3f\n2:\n        ld1             {v0.16b}, [x0], #16\n        ld1             {v1.16b}, [x1], #16\n        subs            w8,  w8,  #16\n        st2             {v0.16b, v1.16b}, [x2], #32\n        b.gt            2b\n\n        tst             w3,  #15\n        b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "d8848325a61813f81db7d2495f7d1fa41d7beb22", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d8848325a61813f81db7d2495f7d1fa41d7beb22/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/rgb2rgb_neon.S:2", "text": "b.eq            9f\n\n3:\n        tst             w3,  #8\n        b.eq            4f\n        ld1             {v0.8b}, [x0], #8\n        ld1             {v1.8b}, [x1], #8\n        st2             {v0.8b, v1.8b}, [x2], #16\n4:\n        tst             w3,  #4\n        b.eq            5f\n\n        ld1             {v0.s}[0], [x0], #4\n        ld1             {v1.s}[0], [x1], #4\n        zip1            v0.8b,   v0.8b,   v1.8b\n        st1             {v0.8b}, [x2], #8\n\n5:\n        ands            w8,  w3,  #3\n        b.eq            9f\n6:\n        ldrb            w9,  [x0], #1\n        ldrb            w10, [x1], #1\n        subs            w8,  w8,  #1\n        bfi             w9,  w10, #8,  #8\n        strh            w9,  [x2], #2\n        b.gt            6b\n\n9:\n        subs            w4,  w4,  #1\n        b.eq            0f\n        add             x0,  x0,  w5, sxtw\n        add             x1,  x1,  w6, sxtw\n        add             x2,  x2,  w7, sxtw\n        b               1b\n\n0:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/rgb2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/rgb2rgb_neon.S", "line_start": 41, "line_end": 79}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/swscale_unscaled_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_nv24_to_yuv420p_chroma_neon, export=1\n// x0  uint8_t *dst1\n// x1  int dstStride1\n// x2  uint8_t *dst2\n// x3  int dstStride2\n// x4  const uint8_t *src\n// x5  int srcStride\n// w6  int w\n// w7  int h\n\n        add             x9, x4, w5, sxtw            // x9 = src + srcStride\n        lsl             w5, w5, #1                  // srcStride *= 2\n        sub             w5, w5, w6, lsl #2          // srcPadding = (2 * srcStride) - (4 * w)\n        sub             w1, w1, w6                  // dstPadding1 = dstStride1 - w\n        sub             w3, w3, w6                  // dstPadding2 = dstStride2 - w\n\n1:\n        mov             w10, w6                     // w10 = w\n\n2:\n        ld2             {v0.16b, v1.16b}, [x4], #32 // v0 = U1, v1 = V1\n        ld2             {v2.16b, v3.16b}, [x9], #32 // v2 = U2, v3 = V2\n\n        uaddlp          v0.8h, v0.16b               // pairwise add U1 into v0\n        uaddlp          v1.8h, v1.16b               // pairwise add V1 into v1\n        uadalp          v0.8h, v2.16b               // pairwise add U2, accumulate into v0\n        uadalp          v1.8h, v3.16b               // pairwise add V2, accumulate into v1\n\n        shrn            v0.8b, v0.8h, #2            // divide by 4\n        shrn            v1.8b, v1.8h, #2            // divide by 4\n\n        st1             {v0.8b}, [x0], #8           // store U into dst1\n        st1             {v1.8b}, [x2], #8           // store V into dst2\n\n        subs            w10, w10, #8\n        b.gt            2b\n\n        // next row", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/swscale_unscaled_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/swscale_unscaled_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/swscale_unscaled_neon.S:2", "text": "2:\n        ld2             {v0.16b, v1.16b}, [x4], #32 // v0 = U1, v1 = V1\n        ld2             {v2.16b, v3.16b}, [x9], #32 // v2 = U2, v3 = V2\n\n        uaddlp          v0.8h, v0.16b               // pairwise add U1 into v0\n        uaddlp          v1.8h, v1.16b               // pairwise add V1 into v1\n        uadalp          v0.8h, v2.16b               // pairwise add U2, accumulate into v0\n        uadalp          v1.8h, v3.16b               // pairwise add V2, accumulate into v1\n\n        shrn            v0.8b, v0.8h, #2            // divide by 4\n        shrn            v1.8b, v1.8h, #2            // divide by 4\n\n        st1             {v0.8b}, [x0], #8           // store U into dst1\n        st1             {v1.8b}, [x2], #8           // store V into dst2\n\n        subs            w10, w10, #8\n        b.gt            2b\n\n        // next row\n        add             x4, x4, w5, sxtw            // src1 += srcPadding\n        add             x9, x9, w5, sxtw            // src2 += srcPadding\n        add             x0, x0, w1, sxtw            // dst1 += dstPadding1\n        add             x2, x2, w3, sxtw            // dst2 += dstPadding2\n\n        subs            w7, w7, #2\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/swscale_unscaled_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/swscale_unscaled_neon.S", "line_start": 41, "line_end": 70}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/swscale_unscaled_neon.S:1", "text": "/*\n * Copyright (c) 2024 Ramiro Polla\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\nfunction ff_nv24_to_yuv420p_chroma_neon, export=1\n// x0  uint8_t *dst1\n// x1  int dstStride1\n// x2  uint8_t *dst2\n// x3  int dstStride2\n// x4  const uint8_t *src\n// x5  int srcStride\n// w6  int w\n// w7  int h\n\n        add             x9, x4, w5, sxtw            // x9 = src + srcStride\n        lsl             w5, w5, #1                  // srcStride *= 2\n        sub             w5, w5, w6, lsl #2          // srcPadding = (2 * srcStride) - (4 * w)\n        sub             w1, w1, w6                  // dstPadding1 = dstStride1 - w\n        sub             w3, w3, w6                  // dstPadding2 = dstStride2 - w\n\n1:\n        mov             w10, w6                     // w10 = w\n\n2:\n        ld2             { v0.16b, v1.16b }, [x4], #32 // v0 = U1, v1 = V1\n        ld2             { v2.16b, v3.16b }, [x9], #32 // v2 = U2, v3 = V2\n\n        uaddlp          v0.8h, v0.16b               // pairwise add U1 into v0\n        uaddlp          v1.8h, v1.16b               // pairwise add V1 into v1\n        uadalp          v0.8h, v2.16b               // pairwise add U2, accumulate into v0\n        uadalp          v1.8h, v3.16b               // pairwise add V2, accumulate into v1\n\n        shrn            v0.8b, v0.8h, #2            // divide by 4\n        shrn            v1.8b, v1.8h, #2            // divide by 4\n\n        st1             { v0.8b }, [x0], #8         // store U into dst1\n        st1             { v1.8b }, [x2], #8         // store V into dst2\n\n        subs            w10, w10, #8\n        b.gt            2b\n\n        // next row", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/swscale_unscaled_neon.S", "license": "LGPL-2.1", "commit": "52887683e94382f0ae53c0b203b944361ff30eb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52887683e94382f0ae53c0b203b944361ff30eb1/libswscale/aarch64/swscale_unscaled_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/swscale_unscaled_neon.S:2", "text": "2:\n        ld2             { v0.16b, v1.16b }, [x4], #32 // v0 = U1, v1 = V1\n        ld2             { v2.16b, v3.16b }, [x9], #32 // v2 = U2, v3 = V2\n\n        uaddlp          v0.8h, v0.16b               // pairwise add U1 into v0\n        uaddlp          v1.8h, v1.16b               // pairwise add V1 into v1\n        uadalp          v0.8h, v2.16b               // pairwise add U2, accumulate into v0\n        uadalp          v1.8h, v3.16b               // pairwise add V2, accumulate into v1\n\n        shrn            v0.8b, v0.8h, #2            // divide by 4\n        shrn            v1.8b, v1.8h, #2            // divide by 4\n\n        st1             { v0.8b }, [x0], #8         // store U into dst1\n        st1             { v1.8b }, [x2], #8         // store V into dst2\n\n        subs            w10, w10, #8\n        b.gt            2b\n\n        // next row\n        add             x4, x4, w5, sxtw            // src1 += srcPadding\n        add             x9, x9, w5, sxtw            // src2 += srcPadding\n        add             x0, x0, w1, sxtw            // dst1 += dstPadding1\n        add             x2, x2, w3, sxtw            // dst2 += dstPadding2\n\n        subs            w7, w7, #2\n        b.gt            1b\n\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/swscale_unscaled_neon.S", "license": "LGPL-2.1", "commit": "52887683e94382f0ae53c0b203b944361ff30eb1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/52887683e94382f0ae53c0b203b944361ff30eb1/libswscale/aarch64/swscale_unscaled_neon.S", "line_start": 41, "line_end": 70}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2025 Arpad Panyik <Arpad.Panyik@arm.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n#include \"asm-offsets.h\"\n\n#define JUMP_ALIGN 2\n#define LOOP_ALIGN 2\n\nfunction ff_xyz12Torgb48le_neon_asm, export=1\n// x0  const SwsColorXform *c\n// x1  uint8_t *dst\n// w2  int dst_stride\n// x3  const uint8_t *src\n// w4  int src_stride\n// w5  int w\n// w6  int h\n\n        ldp             x7,  x8, [x0, #(SCX_GAMMA_IN)]  // gamma.in, gamma.out\n        ldr             q6,  [x0, #(SCX_MAT_00)]        // mat[0][0]..[2][1]\n        ldr             h7,  [x0, #(SCX_MAT_22)]        // mat[2][2]; > 0\n\n        add             w9,  w5,  w5, lsl #1        // w * 3\n        add             x17, x3,  w4, sxtw          // sr2 = src + src_stride\n        add             x16, x1,  w2, sxtw          // ds2 = dst + dst_stride\n        sub             w4,  w4,  w9                // src_stride - w * 3\n        sub             w2,  w2,  w9                // dst_stride - w * 3\n        abs             v6.8h,  v6.8h               // abs(mat[0][0]..[2][1])\n        sbfiz           x4,  x4,  #1, #32           // src_stride * 2 - w * 6\n        sbfiz           x2,  x2,  #1, #32           // dst_stride * 2 - w * 6\n\n        subs            w6,  w6,  #2\n        b.lt            6f                          // h < 2\n\n        stp             x19, x20, [sp, #-64]!\n        stp             x21, x22, [sp, #16]\n        stp             x23, x24, [sp, #32]\n        str             x25, [sp, #48]\n\n        .align LOOP_ALIGN\n1:      // yp loop for 2x4 pixels\n        subs            w0,  w5,  #4\n        b.lt            3f                          // w < 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:2", "text": "add             x17, x3,  w4, sxtw          // sr2 = src + src_stride\n        add             x16, x1,  w2, sxtw          // ds2 = dst + dst_stride\n        sub             w4,  w4,  w9                // src_stride - w * 3\n        sub             w2,  w2,  w9                // dst_stride - w * 3\n        abs             v6.8h,  v6.8h               // abs(mat[0][0]..[2][1])\n        sbfiz           x4,  x4,  #1, #32           // src_stride * 2 - w * 6\n        sbfiz           x2,  x2,  #1, #32           // dst_stride * 2 - w * 6\n\n        subs            w6,  w6,  #2\n        b.lt            6f                          // h < 2\n\n        stp             x19, x20, [sp, #-64]!\n        stp             x21, x22, [sp, #16]\n        stp             x23, x24, [sp, #32]\n        str             x25, [sp, #48]\n\n        .align LOOP_ALIGN\n1:      // yp loop for 2x4 pixels\n        subs            w0,  w5,  #4\n        b.lt            3f                          // w < 4\n\n        .align LOOP_ALIGN\n2:      // xp loop for 2x4 pixels: XYZ0[0..3], XYZ1[0..3]\n        ldp             x9,  x10, [x3]              // x9  = X0[0] Y0[0] Z0[0] X0[1], x10 = Y0[1] Z0[1] X0[2] Y0[2]\n        ldr             x11, [x3, #16]              // x11 = Z0[2] X0[3] Y0[3] Z0[3]\n        add             x3,  x3,  #24\n        ubfx            x12, x9,  #4,  #12          // X0[0] >> 4\n        lsr             x13, x9,  #52               // X0[1] >> 4\n        ubfx            x14, x10, #36, #12          // X0[2] >> 4\n        ubfx            x15, x11, #20, #12          // X0[3] >> 4\n\n        ldp             x19, x20, [x17]             // x19 = X1[0] Y1[0] Z1[0] X1[1], x20 = Y1[1] Z1[1] X1[2] Y1[2]\n        ldr             x21, [x17, #16]             // x21 = Z1[2] X1[3] Y1[3] Z1[3]\n        add             x17, x17, #24\n        ubfx            x22, x19, #4, #12           // X1[0] >> 4\n        lsr             x23, x19, #52               // X1[1] >> 4\n        ubfx            x24, x20, #36, #12          // X1[2] >> 4\n        ubfx            x25, x21, #20, #12          // X1[3] >> 4\n\n        ldr             h0,  [x7, x12, lsl #1]      // gamma.in[X0[0] >> 4]\n        ubfx            x12, x9,  #20, #12          // Y0[0] >> 4\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[X0[1] >> 4]\n        ubfx            x13, x10, #4, #12           // Y0[1] >> 4\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[X0[2] >> 4]\n        lsr             x14, x10, #52               // Y0[2] >> 4\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[X0[3] >> 4]\n        ubfx            x15, x11, #36, #12          // Y0[3] >> 4\n\n        ldr             h20, [x7, x22, lsl #1]      // gamma.in[X1[0] >> 4]\n        ubfx            x22, x19, #20, #12          // Y1[0] >> 4\n        ldr             h26, [x7, x23, lsl #1]      // gamma.in[X1[1] >> 4]\n        ubfx            x23, x20, #4,  #12          // Y1[1] >> 4\n        ldr             h27, [x7, x24, lsl #1]      // gamma.in[X1[2] >> 4]\n        lsr             x24, x20, #52               // Y1[2] >> 4\n        ldr             h28, [x7, x25, lsl #1]      // gamma.in[X1[3] >> 4]\n        ubfx            x25, x21, #36, #12          // Y1[3] >> 4\n\n        mov             v0.h[1],  v16.h[0]          // v0.4h  = gamma.in[X0[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[X0[2..3] >> 4]\n        mov             v0.s[1],  v17.s[0]          // v0.4h  = gamma.in[X0[0..3] >> 4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:3", "text": "ubfx            x12, x9,  #20, #12          // Y0[0] >> 4\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[X0[1] >> 4]\n        ubfx            x13, x10, #4, #12           // Y0[1] >> 4\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[X0[2] >> 4]\n        lsr             x14, x10, #52               // Y0[2] >> 4\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[X0[3] >> 4]\n        ubfx            x15, x11, #36, #12          // Y0[3] >> 4\n\n        ldr             h20, [x7, x22, lsl #1]      // gamma.in[X1[0] >> 4]\n        ubfx            x22, x19, #20, #12          // Y1[0] >> 4\n        ldr             h26, [x7, x23, lsl #1]      // gamma.in[X1[1] >> 4]\n        ubfx            x23, x20, #4,  #12          // Y1[1] >> 4\n        ldr             h27, [x7, x24, lsl #1]      // gamma.in[X1[2] >> 4]\n        lsr             x24, x20, #52               // Y1[2] >> 4\n        ldr             h28, [x7, x25, lsl #1]      // gamma.in[X1[3] >> 4]\n        ubfx            x25, x21, #36, #12          // Y1[3] >> 4\n\n        mov             v0.h[1],  v16.h[0]          // v0.4h  = gamma.in[X0[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[X0[2..3] >> 4]\n        mov             v0.s[1],  v17.s[0]          // v0.4h  = gamma.in[X0[0..3] >> 4]\n        ldr             h1,  [x7, x12, lsl #1]      // gamma.in[Y0[0] >> 4]\n        umull           v3.4s, v0.4h, v6.h[0]       // R0[0..3] = gamma.in[X0[0..3] >> 4] * mat[0][0]\n        umull           v5.4s, v0.4h, v6.h[6]       // B0[0..3] = gamma.in[X0[0..3] >> 4] * mat[2][0]\n        ubfx            x12, x9,  #36, #12          // Z0[0] >> 4\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[Y0[1] >> 4]\n\n        mov             v20.h[1], v26.h[0]          // v20.4h = gamma.in[X1[0..1] >> 4]\n        mov             v27.h[1], v28.h[0]          // v27.4h = gamma.in[X1[2..3] >> 4]\n        mov             v20.s[1], v27.s[0]          // v20.4h = gamma.in[X1[0..3] >> 4]\n        ldr             h21, [x7, x22, lsl #1]      // gamma.in[Y1[0] >> 4]\n        umull           v23.4s, v20.4h, v6.h[0]     // R1[0..3] = gamma.in[X1[0..3] >> 4] * mat[0][0]\n        umull           v25.4s, v20.4h, v6.h[6]     // B1[0..3] = gamma.in[X1[0..3] >> 4] * mat[2][0]\n        ubfx            x22, x19, #36, #12          // Z1[0] >> 4\n        ldr             h26, [x7, x23, lsl #1]      // gamma.in[Y1[1] >> 4]\n\n        ubfx            x13, x10, #20, #12          // Z0[1] >> 4\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[Y0[2] >> 4]\n        ubfx            x14, x11, #4,  #12          // Z0[2] >> 4\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[Y0[3] >> 4]\n        lsr             x15, x11, #52               // Z0[3] >> 4\n        mov             v1.h[1],  v16.h[0]          // v1.4h  = gamma.in[Y0[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[Y0[2..3] >> 4]\n        mov             v1.s[1],  v17.s[0]          // v1.4h  = gamma.in[Y0[0..3] >> 4]\n\n        ubfx            x23, x20, #20, #12          // Z1[1] >> 4\n        ldr             h27, [x7, x24, lsl #1]      // gamma.in[Y1[2] >> 4]\n        ubfx            x24, x21, #4,  #12          // Z1[2] >> 4\n        ldr             h28, [x7, x25, lsl #1]      // gamma.in[Y1[3] >> 4]\n        umull           v4.4s,  v1.4h,  v6.h[4]     // G0[0..3]  = gamma.in[Y0[0..3] >> 4] * mat[1][1]\n        umlsl           v3.4s,  v1.4h,  v6.h[1]     // R0[0..3] -= gamma.in[Y0[0..3] >> 4] * mat[0][1]\n\n        lsr             x25, x21, #52               // Z1[3] >> 4\n        mov             v21.h[1], v26.h[0]          // v21.4h = gamma.in[Y1[0..1] >> 4]\n        mov             v27.h[1], v28.h[0]          // v27.4h = gamma.in[Y1[2..3] >> 4]\n        mov             v21.s[1], v27.s[0]          // v21.4h = gamma.in[Y1[0..3] >> 4]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G0[0..3] -= gamma.in[X0[0..3] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B0[0..3] -= gamma.in[Y0[0..3] >> 4] * mat[2][1]\n\n        ldr             h2,  [x7, x12, lsl #1]      // gamma.in[Z0[0] >> 4]\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[Z0[1] >> 4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:4", "text": "mov             v1.h[1],  v16.h[0]          // v1.4h  = gamma.in[Y0[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[Y0[2..3] >> 4]\n        mov             v1.s[1],  v17.s[0]          // v1.4h  = gamma.in[Y0[0..3] >> 4]\n\n        ubfx            x23, x20, #20, #12          // Z1[1] >> 4\n        ldr             h27, [x7, x24, lsl #1]      // gamma.in[Y1[2] >> 4]\n        ubfx            x24, x21, #4,  #12          // Z1[2] >> 4\n        ldr             h28, [x7, x25, lsl #1]      // gamma.in[Y1[3] >> 4]\n        umull           v4.4s,  v1.4h,  v6.h[4]     // G0[0..3]  = gamma.in[Y0[0..3] >> 4] * mat[1][1]\n        umlsl           v3.4s,  v1.4h,  v6.h[1]     // R0[0..3] -= gamma.in[Y0[0..3] >> 4] * mat[0][1]\n\n        lsr             x25, x21, #52               // Z1[3] >> 4\n        mov             v21.h[1], v26.h[0]          // v21.4h = gamma.in[Y1[0..1] >> 4]\n        mov             v27.h[1], v28.h[0]          // v27.4h = gamma.in[Y1[2..3] >> 4]\n        mov             v21.s[1], v27.s[0]          // v21.4h = gamma.in[Y1[0..3] >> 4]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G0[0..3] -= gamma.in[X0[0..3] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B0[0..3] -= gamma.in[Y0[0..3] >> 4] * mat[2][1]\n\n        ldr             h2,  [x7, x12, lsl #1]      // gamma.in[Z0[0] >> 4]\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[Z0[1] >> 4]\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[Z0[2] >> 4]\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[Z0[3] >> 4]\n        umull           v24.4s, v21.4h, v6.h[4]     // G1[0..3]  = gamma.in[Y1[0..3] >> 4] * mat[1][1]\n        umlsl           v23.4s, v21.4h, v6.h[1]     // R1[0..3] -= gamma.in[Y1[0..3] >> 4] * mat[0][1]\n\n        mov             v2.h[1],  v16.h[0]          // v2.4h  = gamma.in[Z0[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[Z0[2..3] >> 4]\n        mov             v2.s[1],  v17.s[0]          // v2.4h  = gamma.in[Z0[0..3] >> 4]\n        umlsl           v24.4s, v20.4h, v6.h[3]     // G1[0..3] -= gamma.in[X1[0..3] >> 4] * mat[1][0]\n        umlsl           v25.4s, v21.4h, v6.h[7]     // B1[0..3] -= gamma.in[Y1[0..3] >> 4] * mat[2][1]\n\n        ldr             h22, [x7, x22, lsl #1]      // gamma.in[Z1[0] >> 4]\n        ldr             h26, [x7, x23, lsl #1]      // gamma.in[Z1[1] >> 4]\n        ldr             h27, [x7, x24, lsl #1]      // gamma.in[Z1[2] >> 4]\n        ldr             h28, [x7, x25, lsl #1]      // gamma.in[Z1[3] >> 4]\n        mov             v22.h[1], v26.h[0]          // v22.4h = gamma.in[Z1[0..1] >> 4]\n        mov             v27.h[1], v28.h[0]          // v27.4h = gamma.in[Z1[2..3] >> 4]\n        mov             v22.s[1], v27.s[0]          // v22.4h = gamma.in[Z1[0..3] >> 4]\n\n        umlsl           v3.4s,  v2.4h,  v6.h[2]     // R0[0..3] -= gamma.in[Z0[0..3] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R0[0..3] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G0[0..3] += gamma.in[Z0[0..3] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G0[0..3] >> 12)\n        umov            w9,  v3.h[0]                // clip(R0[0] >> 12)\n        umov            w10, v4.h[1]                // clip(G0[1] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B0[0..3] += gamma.in[Z0[0..3] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B0[0..3] >> 12)\n\n        umlsl           v23.4s, v22.4h, v6.h[2]     // R1[0..3] -= gamma.in[Z1[0..3] >> 4] * mat[0][2]\n        sqshrun         v23.4h, v23.4s, #12         // clip(R1[0..3] >> 12)\n        umlal           v24.4s, v22.4h, v6.h[5]     // G1[0..3] += gamma.in[Z1[0..3] >> 4] * mat[1][2]\n        sqshrun         v24.4h, v24.4s, #12         // clip(G1[0..3] >> 12)\n        umov            w19, v23.h[0]               // clip(R1[0] >> 12)\n        umov            w20, v24.h[1]               // clip(G1[1] >> 12)\n        umlal           v25.4s, v22.4h, v7.h[0]     // B1[0..3] += gamma.in[Z1[0..3] >> 4] * mat[2][2]\n        sqshrun         v25.4h, v25.4s, #12         // clip(B1[0..3] >> 12)\n\n        umov            w11, v5.h[2]                // clip(B0[2] >> 12)\n        umov            w12, v4.h[0]                // clip(G0[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[0] = gamma.out[clip(R0[0] >> 12)]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:5", "text": "sqshrun         v3.4h,  v3.4s,  #12         // clip(R0[0..3] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G0[0..3] += gamma.in[Z0[0..3] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G0[0..3] >> 12)\n        umov            w9,  v3.h[0]                // clip(R0[0] >> 12)\n        umov            w10, v4.h[1]                // clip(G0[1] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B0[0..3] += gamma.in[Z0[0..3] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B0[0..3] >> 12)\n\n        umlsl           v23.4s, v22.4h, v6.h[2]     // R1[0..3] -= gamma.in[Z1[0..3] >> 4] * mat[0][2]\n        sqshrun         v23.4h, v23.4s, #12         // clip(R1[0..3] >> 12)\n        umlal           v24.4s, v22.4h, v6.h[5]     // G1[0..3] += gamma.in[Z1[0..3] >> 4] * mat[1][2]\n        sqshrun         v24.4h, v24.4s, #12         // clip(G1[0..3] >> 12)\n        umov            w19, v23.h[0]               // clip(R1[0] >> 12)\n        umov            w20, v24.h[1]               // clip(G1[1] >> 12)\n        umlal           v25.4s, v22.4h, v7.h[0]     // B1[0..3] += gamma.in[Z1[0..3] >> 4] * mat[2][2]\n        sqshrun         v25.4h, v25.4s, #12         // clip(B1[0..3] >> 12)\n\n        umov            w11, v5.h[2]                // clip(B0[2] >> 12)\n        umov            w12, v4.h[0]                // clip(G0[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[0] = gamma.out[clip(R0[0] >> 12)]\n        lsl             x9,  x9,  #4                // R0[0] << 4\n        umov            w13, v5.h[1]                // clip(B0[1] >> 12)\n        ldrh            w10, [x8, x10, lsl #1]      // G0[1] = gamma.out[clip(G0[1] >> 12)]\n        lsl             x10, x10, #4                // G0[1] << 4\n\n        umov            w21, v25.h[2]               // clip(B1[2] >> 12)\n        umov            w22, v24.h[0]               // clip(G1[0] >> 12)\n        ldrh            w19, [x8, x19, lsl #1]      // R1[0] = gamma.out[clip(R1[0] >> 12)]\n        lsl             x19, x19, #4                // R1[0] << 4\n        umov            w23, v25.h[1]               // clip(B1[1] >> 12)\n        ldrh            w20, [x8, x20, lsl #1]      // G1[1] = gamma.out[clip(G1[1] >> 12)]\n        lsl             x20, x20, #4                // G1[1] << 4\n\n        umov            w14, v3.h[3]                // clip(R0[3] >> 12)\n        ldrh            w11, [x8, x11, lsl #1]      // B0[2] = gamma.out[clip(B0[2] >> 12)]\n        lsl             x11, x11, #4                // B0[2] << 4\n        umov            w15, v5.h[0]                // clip(B0[0] >> 12)\n        ldrh            w12, [x8, x12, lsl #1]      // G0[0] = gamma.out[clip(G0[0] >> 12)]\n        orr             x9,  x9,  x12, lsl #20      // R0[0] << 4, G0[0] << 4\n        umov            w12, v3.h[2]                // clip(R0[2] >> 12)\n        ldrh            w13, [x8, x13, lsl #1]      // B0[1] = gamma.out[clip(B0[1] >> 12)]\n\n        umov            w24, v23.h[3]               // clip(R1[3] >> 12)\n        ldrh            w21, [x8, x21, lsl #1]      // B1[2] = gamma.out[clip(B1[2] >> 12)]\n        lsl             x21, x21, #4                // B1[2] << 4\n        umov            w25, v25.h[0]               // clip(B1[0] >> 12)\n        ldrh            w22, [x8, x22, lsl #1]      // G1[0] = gamma.out[clip(G1[0] >> 12)]\n        orr             x19, x19, x22, lsl #20      // R1[0] << 4, G1[0] << 4\n        umov            w22, v23.h[2]               // clip(R1[2] >> 12)\n        ldrh            w23, [x8, x23, lsl #1]      // B1[1] = gamma.out[clip(B1[1] >> 12)]\n\n        orr             x10, x10, x13, lsl #20      // G0[1] << 4, B0[1] << 4\n        umov            w13, v4.h[3]                // clip(G0[3] >> 12)\n        ldrh            w14, [x8, x14, lsl #1]      // R0[3] = gamma.out[clip(R0[3] >> 12)]\n        orr             x11, x11, x14, lsl #20      // B0[2] << 4, R0[3] << 4\n        umov            w14, v3.h[1]                // clip(R0[1] >> 12)\n        ldrh            w15, [x8, x15, lsl #1]      // B0[0] = gamma.out[clip(B0[0] >> 12)]\n        orr             x9,  x9,  x15, lsl #36      // R0[0] << 4, G0[0] << 4, B0[0] << 4\n        umov            w15, v4.h[2]                // clip(G0[2] >> 12)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:6", "text": "ldrh            w13, [x8, x13, lsl #1]      // B0[1] = gamma.out[clip(B0[1] >> 12)]\n\n        umov            w24, v23.h[3]               // clip(R1[3] >> 12)\n        ldrh            w21, [x8, x21, lsl #1]      // B1[2] = gamma.out[clip(B1[2] >> 12)]\n        lsl             x21, x21, #4                // B1[2] << 4\n        umov            w25, v25.h[0]               // clip(B1[0] >> 12)\n        ldrh            w22, [x8, x22, lsl #1]      // G1[0] = gamma.out[clip(G1[0] >> 12)]\n        orr             x19, x19, x22, lsl #20      // R1[0] << 4, G1[0] << 4\n        umov            w22, v23.h[2]               // clip(R1[2] >> 12)\n        ldrh            w23, [x8, x23, lsl #1]      // B1[1] = gamma.out[clip(B1[1] >> 12)]\n\n        orr             x10, x10, x13, lsl #20      // G0[1] << 4, B0[1] << 4\n        umov            w13, v4.h[3]                // clip(G0[3] >> 12)\n        ldrh            w14, [x8, x14, lsl #1]      // R0[3] = gamma.out[clip(R0[3] >> 12)]\n        orr             x11, x11, x14, lsl #20      // B0[2] << 4, R0[3] << 4\n        umov            w14, v3.h[1]                // clip(R0[1] >> 12)\n        ldrh            w15, [x8, x15, lsl #1]      // B0[0] = gamma.out[clip(B0[0] >> 12)]\n        orr             x9,  x9,  x15, lsl #36      // R0[0] << 4, G0[0] << 4, B0[0] << 4\n        umov            w15, v4.h[2]                // clip(G0[2] >> 12)\n\n        orr             x20, x20, x23, lsl #20      // G1[1] << 4, B1[1] << 4\n        umov            w23, v24.h[3]               // clip(G1[3] >> 12)\n        ldrh            w24, [x8, x24, lsl #1]      // R1[3] = gamma.out[clip(R1[3] >> 12)]\n        orr             x21, x21, x24, lsl #20      // B1[2] << 4, R1[3] << 4\n        umov            w24, v23.h[1]               // clip(R1[1] >> 12)\n        ldrh            w25, [x8, x25, lsl #1]      // B1[0] = gamma.out[clip(B1[0] >> 12)]\n        orr             x19, x19, x25, lsl #36      // R1[0] << 4, G1[0] << 4, B1[0] << 4\n        umov            w25, v24.h[2]               // clip(G1[2] >> 12)\n\n        ldrh            w12, [x8, x12, lsl #1]      // R0[2] = gamma.out[clip(R0[2] >> 12)]\n        orr             x10, x10, x12, lsl #36      // G0[1] << 4, B0[1] << 4, R0[2] << 4\n        umov            w12, v5.h[3]                // clip(B0[3] >> 12)\n        ldrh            w13, [x8, x13, lsl #1]      // G0[3] = gamma.out[clip(G0[3] >> 12)]\n        orr             x11, x11, x13, lsl #36      // B0[2] << 4, R0[3] << 4, G0[3] << 4\n        ldrh            w14, [x8, x14, lsl #1]      // R0[1] = gamma.out[clip(R0[1] >> 12)]\n        orr             x9,  x9,  x14, lsl #52      // x9  = R0[0] << 4, G0[0] << 4, B0[0] << 4, R0[1] << 4\n        ldrh            w15, [x8, x15, lsl #1]      // G0[2] = gamma.out[clip(G0[2] >> 12)]\n        orr             x10, x10, x15, lsl #52      // x10 = G0[1] << 4, B0[1] << 4, R0[2] << 4, G0[2] << 4\n        ldrh            w12, [x8, x12, lsl #1]      // B0[3] = gamma.out[clip(B0[3] >> 12)]\n        orr             x11, x11, x12, lsl #52      // x11 = B0[2] << 4, R0[3] << 4, G0[3] << 4, B0[3] << 4\n        stp             x9,  x10, [x1]\n        str             x11, [x1, #16]\n\n        ldrh            w22, [x8, x22, lsl #1]      // R1[2] = gamma.out[clip(R1[2] >> 12)]\n        orr             x20, x20, x22, lsl #36      // G1[1] << 4, B1[1] << 4, R1[2] << 4\n        umov            w22, v25.h[3]               // clip(B1[3] >> 12)\n        ldrh            w23, [x8, x23, lsl #1]      // G1[3] = gamma.out[clip(G1[3] >> 12)]\n        orr             x21, x21, x23, lsl #36      // B1[2] << 4, R1[3] << 4, G1[3] << 4\n        ldrh            w24, [x8, x24, lsl #1]      // R1[1] = gamma.out[clip(R1[1] >> 12)]\n        orr             x19, x19, x24, lsl #52      // x19 = R1[0] << 4, G1[0] << 4, B1[0] << 4, R1[1] << 4\n        ldrh            w25, [x8, x25, lsl #1]      // G1[2] = gamma.out[clip(G1[2] >> 12)]\n        orr             x20, x20, x25, lsl #52      // x20 = G1[1] << 4, B1[1] << 4, R1[2] << 4, G1[2] << 4\n        ldrh            w22, [x8, x22, lsl #1]      // B1[3] = gamma.out[clip(B1[3] >> 12)]\n        orr             x21, x21, x22, lsl #52      // x21 = B1[2] << 4, R1[3] << 4, G1[3] << 4, B1[3] << 4\n        stp             x19, x20, [x16]\n        str             x21, [x16, #16]\n\n        add             x1,  x1,  #24\n        add             x16, x16, #24", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:7", "text": "stp             x9,  x10, [x1]\n        str             x11, [x1, #16]\n\n        ldrh            w22, [x8, x22, lsl #1]      // R1[2] = gamma.out[clip(R1[2] >> 12)]\n        orr             x20, x20, x22, lsl #36      // G1[1] << 4, B1[1] << 4, R1[2] << 4\n        umov            w22, v25.h[3]               // clip(B1[3] >> 12)\n        ldrh            w23, [x8, x23, lsl #1]      // G1[3] = gamma.out[clip(G1[3] >> 12)]\n        orr             x21, x21, x23, lsl #36      // B1[2] << 4, R1[3] << 4, G1[3] << 4\n        ldrh            w24, [x8, x24, lsl #1]      // R1[1] = gamma.out[clip(R1[1] >> 12)]\n        orr             x19, x19, x24, lsl #52      // x19 = R1[0] << 4, G1[0] << 4, B1[0] << 4, R1[1] << 4\n        ldrh            w25, [x8, x25, lsl #1]      // G1[2] = gamma.out[clip(G1[2] >> 12)]\n        orr             x20, x20, x25, lsl #52      // x20 = G1[1] << 4, B1[1] << 4, R1[2] << 4, G1[2] << 4\n        ldrh            w22, [x8, x22, lsl #1]      // B1[3] = gamma.out[clip(B1[3] >> 12)]\n        orr             x21, x21, x22, lsl #52      // x21 = B1[2] << 4, R1[3] << 4, G1[3] << 4, B1[3] << 4\n        stp             x19, x20, [x16]\n        str             x21, [x16, #16]\n\n        add             x1,  x1,  #24\n        add             x16, x16, #24\n\n        subs            w0,  w0,  #4\n        b.ge            2b\n\n        .align JUMP_ALIGN\n3:\n        tst             w5,  #3\n        b.eq            5f                          // no residual pixels; (w & 3) == 0\n\n        ldr             w10, [x3]                   // w10 = X0[0] Y0[0]\n        ldrh            w11, [x3, #4]               // w11 = Z0[0]\n        add             x3,  x3,  #6\n        ldr             w20, [x17]                  // w20 = X1[0] Y1[0]\n        ldrh            w21, [x17, #4]              // w21 = Z1[0]\n        add             x17, x17, #6\n        ubfx            w9,  w10, #4,  #12          // X0[0] >> 4\n        ubfx            w10, w10, #20, #12          // Y0[0] >> 4\n        lsr             w11, w11, #4                // Z0[0] >> 4\n        ldr             h0,  [x7, x9,  lsl #1]      // v0.4h = gamma.in[X0[0] >> 4]\n        ldr             h1,  [x7, x10, lsl #1]      // v1.4h = gamma.in[Y0[0] >> 4]\n        ldr             h2,  [x7, x11, lsl #1]      // v2.4h = gamma.in[Z0[0] >> 4]\n        ubfx            w19, w20, #4,  #12          // X1[0] >> 4\n        ubfx            w20, w20, #20, #12          // Y1[0] >> 4\n        lsr             w21, w21, #4                // Z1[0] >> 4\n        ldr             h20, [x7, x19, lsl #1]      // v20.4h = gamma.in[X1[0] >> 4]\n        ldr             h21, [x7, x20, lsl #1]      // v21.4h = gamma.in[Y1[0] >> 4]\n        ldr             h22, [x7, x21, lsl #1]      // v22.4h = gamma.in[Z1[0] >> 4]\n\n        cmp             w0,  #-2\n        b.lt            4f                          // (w & 3) == 1\n\n        ldr             w10, [x3]                   // w10 = X0[1] Y0[1]\n        ldrh            w11, [x3, #4]               // w11 = Z0[1]\n        add             x3,  x3,  #6\n        ldr             w20, [x17]                  // w20 = X1[1] Y1[1]\n        ldrh            w21, [x17, #4]              // w21 = Z1[1]\n        add             x17, x17,  #6\n        ubfx            w9,  w10, #4,  #12          // X0[1] >> 4\n        ubfx            w10, w10, #20, #12          // Y0[1] >> 4\n        lsr             w11, w11, #4                // Z0[1] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X0[1] >> 4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:8", "text": "ubfx            w19, w20, #4,  #12          // X1[0] >> 4\n        ubfx            w20, w20, #20, #12          // Y1[0] >> 4\n        lsr             w21, w21, #4                // Z1[0] >> 4\n        ldr             h20, [x7, x19, lsl #1]      // v20.4h = gamma.in[X1[0] >> 4]\n        ldr             h21, [x7, x20, lsl #1]      // v21.4h = gamma.in[Y1[0] >> 4]\n        ldr             h22, [x7, x21, lsl #1]      // v22.4h = gamma.in[Z1[0] >> 4]\n\n        cmp             w0,  #-2\n        b.lt            4f                          // (w & 3) == 1\n\n        ldr             w10, [x3]                   // w10 = X0[1] Y0[1]\n        ldrh            w11, [x3, #4]               // w11 = Z0[1]\n        add             x3,  x3,  #6\n        ldr             w20, [x17]                  // w20 = X1[1] Y1[1]\n        ldrh            w21, [x17, #4]              // w21 = Z1[1]\n        add             x17, x17,  #6\n        ubfx            w9,  w10, #4,  #12          // X0[1] >> 4\n        ubfx            w10, w10, #20, #12          // Y0[1] >> 4\n        lsr             w11, w11, #4                // Z0[1] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X0[1] >> 4]\n        ldr             h17, [x7, x10, lsl #1]      // gamma.in[Y0[1] >> 4]\n        ldr             h18, [x7, x11, lsl #1]      // gamma.in[Z0[1] >> 4]\n        ubfx            w19, w20, #4,  #12          // X1[1] >> 4\n        ubfx            w20, w20, #20, #12          // Y1[1] >> 4\n        lsr             w21, w21, #4                // Z1[1] >> 4\n        ldr             h23, [x7, x19, lsl #1]      // gamma.in[X1[1] >> 4]\n        ldr             h24, [x7, x20, lsl #1]      // gamma.in[Y1[1] >> 4]\n        ldr             h25, [x7, x21, lsl #1]      // gamma.in[Z1[1] >> 4]\n        mov             v0.h[1],  v16.h[0]          // v0.4h = gamma.in[X0[0..1] >> 4]\n        mov             v1.h[1],  v17.h[0]          // v1.4h = gamma.in[Y0[0..1] >> 4]\n        mov             v2.h[1],  v18.h[0]          // v2.4h = gamma.in[Z0[0..1] >> 4]\n        mov             v20.h[1], v23.h[0]          // v20.4h = gamma.in[X1[0..1] >> 4]\n        mov             v21.h[1], v24.h[0]          // v21.4h = gamma.in[Y1[0..1] >> 4]\n        mov             v22.h[1], v25.h[0]          // v22.4h = gamma.in[Z1[0..1] >> 4]\n\n        b.le            4f                          // (w & 3) == 2\n\n        ldr             w10, [x3]                   // w10 = X0[2] Y0[2]\n        ldrh            w11, [x3, #4]               // w11 = Z0[2]\n        add             x3,  x3,  #6\n        ldr             w20, [x17]                  // w20 = X1[2] Y1[2]\n        ldrh            w21, [x17, #4]              // w21 = Z1[2]\n        add             x17, x17, #6\n        ubfx            w9,  w10, #4,  #12          // X0[2] >> 4\n        ubfx            w10, w10, #20, #12          // Y0[2] >> 4\n        lsr             w11, w11, #4                // Z0[2] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X0[2] >> 4]\n        ldr             h17, [x7, x10, lsl #1]      // gamma.in[Y0[2] >> 4]\n        ldr             h18, [x7, x11, lsl #1]      // gamma.in[Z0[2] >> 4]\n        ubfx            w19, w20, #4,  #12          // X1[2] >> 4\n        ubfx            w20, w20, #20, #12          // Y1[2] >> 4\n        lsr             w21, w21, #4                // Z1[2] >> 4\n        ldr             h23, [x7, x19, lsl #1]      // gamma.in[X1[2] >> 4]\n        ldr             h24, [x7, x20, lsl #1]      // gamma.in[Y1[2] >> 4]\n        ldr             h25, [x7, x21, lsl #1]      // gamma.in[Z1[2] >> 4]\n        mov             v0.h[2],  v16.h[0]          // v0.4h = gamma.in[X0[0..2] >> 4]\n        mov             v1.h[2],  v17.h[0]          // v1.4h = gamma.in[Y0[0..2] >> 4]\n        mov             v2.h[2],  v18.h[0]          // v2.4h = gamma.in[Z0[0..2] >> 4]\n        mov             v20.h[2], v23.h[0]          // v20.4h = gamma.in[X1[0..2] >> 4]\n        mov             v21.h[2], v24.h[0]          // v21.4h = gamma.in[Y1[0..2] >> 4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:9", "text": "ldr             w20, [x17]                  // w20 = X1[2] Y1[2]\n        ldrh            w21, [x17, #4]              // w21 = Z1[2]\n        add             x17, x17, #6\n        ubfx            w9,  w10, #4,  #12          // X0[2] >> 4\n        ubfx            w10, w10, #20, #12          // Y0[2] >> 4\n        lsr             w11, w11, #4                // Z0[2] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X0[2] >> 4]\n        ldr             h17, [x7, x10, lsl #1]      // gamma.in[Y0[2] >> 4]\n        ldr             h18, [x7, x11, lsl #1]      // gamma.in[Z0[2] >> 4]\n        ubfx            w19, w20, #4,  #12          // X1[2] >> 4\n        ubfx            w20, w20, #20, #12          // Y1[2] >> 4\n        lsr             w21, w21, #4                // Z1[2] >> 4\n        ldr             h23, [x7, x19, lsl #1]      // gamma.in[X1[2] >> 4]\n        ldr             h24, [x7, x20, lsl #1]      // gamma.in[Y1[2] >> 4]\n        ldr             h25, [x7, x21, lsl #1]      // gamma.in[Z1[2] >> 4]\n        mov             v0.h[2],  v16.h[0]          // v0.4h = gamma.in[X0[0..2] >> 4]\n        mov             v1.h[2],  v17.h[0]          // v1.4h = gamma.in[Y0[0..2] >> 4]\n        mov             v2.h[2],  v18.h[0]          // v2.4h = gamma.in[Z0[0..2] >> 4]\n        mov             v20.h[2], v23.h[0]          // v20.4h = gamma.in[X1[0..2] >> 4]\n        mov             v21.h[2], v24.h[0]          // v21.4h = gamma.in[Y1[0..2] >> 4]\n        mov             v22.h[2], v25.h[0]          // v22.4h = gamma.in[Z1[0..2] >> 4]\n\n        .align JUMP_ALIGN\n4:\n        umull           v3.4s,  v0.4h,  v6.h[0]     // R0[0..2] = gamma.in[X0[0..2] >> 4] * mat[0][0]\n        umull           v5.4s,  v0.4h,  v6.h[6]     // B0[0..2] = gamma.in[X0[0..2] >> 4] * mat[2][0]\n\n        umull           v23.4s, v20.4h, v6.h[0]     // R1[0..2] = gamma.in[X1[0..2] >> 4] * mat[0][0]\n        umull           v25.4s, v20.4h, v6.h[6]     // B1[0..2] = gamma.in[X1[0..2] >> 4] * mat[2][0]\n\n        umull           v4.4s,  v1.4h,  v6.h[4]     // G0[0..2]  = gamma.in[Y0[0..2] >> 4] * mat[1][1]\n        umlsl           v3.4s,  v1.4h,  v6.h[1]     // R0[0..2] -= gamma.in[Y0[0..2] >> 4] * mat[0][1]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G0[0..2] -= gamma.in[X0[0..2] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B0[0..2] -= gamma.in[Y0[0..2] >> 4] * mat[2][1]\n\n        umull           v24.4s, v21.4h, v6.h[4]     // G1[0..2]  = gamma.in[Y1[0..2] >> 4] * mat[1][1]\n        umlsl           v23.4s, v21.4h, v6.h[1]     // R1[0..2] -= gamma.in[Y1[0..2] >> 4] * mat[0][1]\n        umlsl           v24.4s, v20.4h, v6.h[3]     // G1[0..2] -= gamma.in[X1[0..2] >> 4] * mat[1][0]\n        umlsl           v25.4s, v21.4h, v6.h[7]     // B1[0..2] -= gamma.in[Y1[0..2] >> 4] * mat[2][1]\n\n        umlsl           v3.4s,  v2.4h,  v6.h[2]     // R0[0..2] -= gamma.in[Z0[0..2] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R0[0..2] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G0[0..2] += gamma.in[Z0[0..2] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G0[0..2] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B0[0..2] += gamma.in[Z0[0..2] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B0[0..2] >> 12)\n\n        umlsl           v23.4s, v22.4h, v6.h[2]     // R1[0..2] -= gamma.in[Z1[0..2] >> 4] * mat[0][2]\n        sqshrun         v23.4h, v23.4s, #12         // clip(R1[0..2] >> 12)\n        umlal           v24.4s, v22.4h, v6.h[5]     // G1[0..2] += gamma.in[Z1[0..2] >> 4] * mat[1][2]\n        sqshrun         v24.4h, v24.4s, #12         // clip(G1[0..2] >> 12)\n        umlal           v25.4s, v22.4h, v7.h[0]     // B1[0..2] += gamma.in[Z1[0..2] >> 4] * mat[2][2]\n        sqshrun         v25.4h, v25.4s, #12         // clip(B1[0..2] >> 12)\n\n        umov            w9,  v3.h[0]                // clip(R0[0] >> 12)\n        umov            w10, v4.h[0]                // clip(G0[0] >> 12)\n        umov            w11, v5.h[0]                // clip(B0[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[0] = gamma.out[clip(R0[0] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G0[0] = gamma.out[clip(G0[0] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B0[0] = gamma.out[clip(B0[0] >> 12)]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:10", "text": "umlsl           v3.4s,  v2.4h,  v6.h[2]     // R0[0..2] -= gamma.in[Z0[0..2] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R0[0..2] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G0[0..2] += gamma.in[Z0[0..2] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G0[0..2] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B0[0..2] += gamma.in[Z0[0..2] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B0[0..2] >> 12)\n\n        umlsl           v23.4s, v22.4h, v6.h[2]     // R1[0..2] -= gamma.in[Z1[0..2] >> 4] * mat[0][2]\n        sqshrun         v23.4h, v23.4s, #12         // clip(R1[0..2] >> 12)\n        umlal           v24.4s, v22.4h, v6.h[5]     // G1[0..2] += gamma.in[Z1[0..2] >> 4] * mat[1][2]\n        sqshrun         v24.4h, v24.4s, #12         // clip(G1[0..2] >> 12)\n        umlal           v25.4s, v22.4h, v7.h[0]     // B1[0..2] += gamma.in[Z1[0..2] >> 4] * mat[2][2]\n        sqshrun         v25.4h, v25.4s, #12         // clip(B1[0..2] >> 12)\n\n        umov            w9,  v3.h[0]                // clip(R0[0] >> 12)\n        umov            w10, v4.h[0]                // clip(G0[0] >> 12)\n        umov            w11, v5.h[0]                // clip(B0[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[0] = gamma.out[clip(R0[0] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G0[0] = gamma.out[clip(G0[0] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B0[0] = gamma.out[clip(B0[0] >> 12)]\n        umov            w19, v23.h[0]               // clip(R1[0] >> 12)\n        umov            w20, v24.h[0]               // clip(G1[0] >> 12)\n        umov            w21, v25.h[0]               // clip(B1[0] >> 12)\n        ldrh            w19, [x8, x19, lsl #1]      // R1[0] = gamma.out[clip(R1[0] >> 12)]\n        ldrh            w20, [x8, x20, lsl #1]      // G1[0] = gamma.out[clip(G1[0] >> 12)]\n        ldrh            w21, [x8, x21, lsl #1]      // B1[0] = gamma.out[clip(B1[0] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R0[0] << 4\n        lsl             w10, w10, #4                // w10 = G0[0] << 4\n        lsl             w11, w11, #4                // w11 = B0[0] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        lsl             w19, w19, #4                // w19 = R1[0] << 4\n        lsl             w20, w20, #4                // w20 = G1[0] << 4\n        lsl             w21, w21, #4                // w21 = B1[0] << 4\n        strh            w19, [x16]\n        strh            w20, [x16, #2]\n        strh            w21, [x16, #4]\n        add             x1,  x1,  #6\n        add             x16, x16, #6\n\n        cmp             w0,  #-2\n        b.lt            5f                          // (w & 3) == 1\n\n        umov            w9,  v3.h[1]                // clip(R0[1] >> 12)\n        umov            w10, v4.h[1]                // clip(G0[1] >> 12)\n        umov            w11, v5.h[1]                // clip(B0[1] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[1] = gamma.out[clip(R0[1] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G0[1] = gamma.out[clip(G0[1] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B0[1] = gamma.out[clip(B0[1] >> 12)]\n        umov            w19, v23.h[1]               // clip(R1[1] >> 12)\n        umov            w20, v24.h[1]               // clip(G1[1] >> 12)\n        umov            w21, v25.h[1]               // clip(B1[1] >> 12)\n        ldrh            w19, [x8, x19, lsl #1]      // R1[1] = gamma.out[clip(R1[1] >> 12)]\n        ldrh            w20, [x8, x20, lsl #1]      // G1[1] = gamma.out[clip(G1[1] >> 12)]\n        ldrh            w21, [x8, x21, lsl #1]      // B1[1] = gamma.out[clip(B1[1] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R0[1] << 4\n        lsl             w10, w10, #4                // w10 = G0[1] << 4\n        lsl             w11, w11, #4                // w11 = B0[1] << 4\n        strh            w9,  [x1]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:11", "text": "cmp             w0,  #-2\n        b.lt            5f                          // (w & 3) == 1\n\n        umov            w9,  v3.h[1]                // clip(R0[1] >> 12)\n        umov            w10, v4.h[1]                // clip(G0[1] >> 12)\n        umov            w11, v5.h[1]                // clip(B0[1] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[1] = gamma.out[clip(R0[1] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G0[1] = gamma.out[clip(G0[1] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B0[1] = gamma.out[clip(B0[1] >> 12)]\n        umov            w19, v23.h[1]               // clip(R1[1] >> 12)\n        umov            w20, v24.h[1]               // clip(G1[1] >> 12)\n        umov            w21, v25.h[1]               // clip(B1[1] >> 12)\n        ldrh            w19, [x8, x19, lsl #1]      // R1[1] = gamma.out[clip(R1[1] >> 12)]\n        ldrh            w20, [x8, x20, lsl #1]      // G1[1] = gamma.out[clip(G1[1] >> 12)]\n        ldrh            w21, [x8, x21, lsl #1]      // B1[1] = gamma.out[clip(B1[1] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R0[1] << 4\n        lsl             w10, w10, #4                // w10 = G0[1] << 4\n        lsl             w11, w11, #4                // w11 = B0[1] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        lsl             w19, w19, #4                // w19 = R1[1] << 4\n        lsl             w20, w20, #4                // w20 = G1[1] << 4\n        lsl             w21, w21, #4                // w21 = B1[1] << 4\n        strh            w19, [x16]\n        strh            w20, [x16, #2]\n        strh            w21, [x16, #4]\n        add             x1,  x1,  #6\n        add             x16, x16, #6\n\n        b.le            5f                          // (w & 3) == 2\n\n        umov            w9,  v3.h[2]                // clip(R0[2] >> 12)\n        umov            w10, v4.h[2]                // clip(G0[2] >> 12)\n        umov            w11, v5.h[2]                // clip(B0[2] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R0[2] = gamma.out[clip(R0[2] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G0[2] = gamma.out[clip(G0[2] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B0[2] = gamma.out[clip(B0[2] >> 12)]\n        umov            w19, v23.h[2]               // clip(R1[2] >> 12)\n        umov            w20, v24.h[2]               // clip(G1[2] >> 12)\n        umov            w21, v25.h[2]               // clip(B1[2] >> 12)\n        ldrh            w19, [x8, x19, lsl #1]      // R1[2] = gamma.out[clip(R1[2] >> 12)]\n        ldrh            w20, [x8, x20, lsl #1]      // G1[2] = gamma.out[clip(G1[2] >> 12)]\n        ldrh            w21, [x8, x21, lsl #1]      // B1[2] = gamma.out[clip(B1[2] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R0[2] << 4\n        lsl             w10, w10, #4                // w10 = G0[2] << 4\n        lsl             w11, w11, #4                // w11 = B0[2] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        lsl             w19, w19, #4                // w19 = R1[2] << 4\n        lsl             w20, w20, #4                // w20 = G1[2] << 4\n        lsl             w21, w21, #4                // w21 = B1[2] << 4\n        strh            w19, [x16]\n        strh            w20, [x16, #2]\n        strh            w21, [x16, #4]\n        add             x1,  x1,  #6\n        add             x16, x16, #6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:12", "text": "umov            w20, v24.h[2]               // clip(G1[2] >> 12)\n        umov            w21, v25.h[2]               // clip(B1[2] >> 12)\n        ldrh            w19, [x8, x19, lsl #1]      // R1[2] = gamma.out[clip(R1[2] >> 12)]\n        ldrh            w20, [x8, x20, lsl #1]      // G1[2] = gamma.out[clip(G1[2] >> 12)]\n        ldrh            w21, [x8, x21, lsl #1]      // B1[2] = gamma.out[clip(B1[2] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R0[2] << 4\n        lsl             w10, w10, #4                // w10 = G0[2] << 4\n        lsl             w11, w11, #4                // w11 = B0[2] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        lsl             w19, w19, #4                // w19 = R1[2] << 4\n        lsl             w20, w20, #4                // w20 = G1[2] << 4\n        lsl             w21, w21, #4                // w21 = B1[2] << 4\n        strh            w19, [x16]\n        strh            w20, [x16, #2]\n        strh            w21, [x16, #4]\n        add             x1,  x1,  #6\n        add             x16, x16, #6\n\n        .align JUMP_ALIGN\n5:\n        add             x3,  x3,  x4\n        add             x17, x17, x4\n        add             x1,  x1,  x2\n        add             x16, x16, x2\n\n        subs            w6,  w6,  #2\n        b.ge            1b\n\n        ldp             x21, x22, [sp, #16]\n        ldp             x23, x24, [sp, #32]\n        ldr             x25, [sp, #48]\n        ldp             x19, x20, [sp], #64\n\n        .align JUMP_ALIGN\n6:\n        tbz             w6,  #0,  10f               // even number of lines; (h & 1) == 0\n\n        subs            w0,  w5,  #4\n        b.lt            8f                          // w < 4\n\n        .align LOOP_ALIGN\n7:      // loop for last odd line by 4 pixels: XYZ[0..3]\n        ldp             x9,  x10, [x3]              // x9  = X[0] Y[0] Z[0] X[1], x10 = Y[1] Z[1] X[2] Y[2]\n        ldr             x11, [x3, #16]              // x11 = Z[2] X[3] Y[3] Z[3]\n        add             x3,  x3,  #24\n\n        ubfx            x12, x9,  #4,  #12          // X[0] >> 4\n        lsr             x13, x9,  #52               // X[1] >> 4\n        ubfx            x14, x10, #36, #12          // X[2] >> 4\n        ubfx            x15, x11, #20, #12          // X[3] >> 4\n\n        ldr             h0,  [x7, x12, lsl #1]      // gamma.in[X[0] >> 4]\n        ubfx            x12, x9,  #20, #12          // Y[0] >> 4\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[X[1] >> 4]\n        ubfx            x13, x10, #4,  #12          // Y[1] >> 4\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[X[2] >> 4]\n        lsr             x14, x10, #52               // Y[2] >> 4\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[X[3] >> 4]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:13", "text": "b.lt            8f                          // w < 4\n\n        .align LOOP_ALIGN\n7:      // loop for last odd line by 4 pixels: XYZ[0..3]\n        ldp             x9,  x10, [x3]              // x9  = X[0] Y[0] Z[0] X[1], x10 = Y[1] Z[1] X[2] Y[2]\n        ldr             x11, [x3, #16]              // x11 = Z[2] X[3] Y[3] Z[3]\n        add             x3,  x3,  #24\n\n        ubfx            x12, x9,  #4,  #12          // X[0] >> 4\n        lsr             x13, x9,  #52               // X[1] >> 4\n        ubfx            x14, x10, #36, #12          // X[2] >> 4\n        ubfx            x15, x11, #20, #12          // X[3] >> 4\n\n        ldr             h0,  [x7, x12, lsl #1]      // gamma.in[X[0] >> 4]\n        ubfx            x12, x9,  #20, #12          // Y[0] >> 4\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[X[1] >> 4]\n        ubfx            x13, x10, #4,  #12          // Y[1] >> 4\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[X[2] >> 4]\n        lsr             x14, x10, #52               // Y[2] >> 4\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[X[3] >> 4]\n        ubfx            x15, x11, #36, #12          // Y[3] >> 4\n        mov             v0.h[1],  v16.h[0]          // v0.4h  = gamma.in[X[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[X[2..3] >> 4]\n        mov             v0.s[1],  v17.s[0]          // v0.4h  = gamma.in[X[0..3] >> 4]\n\n        umull           v3.4s,  v0.4h,  v6.h[0]     // R[0..3] = gamma.in[X[0..3] >> 4] * mat[0][0]\n        umull           v5.4s,  v0.4h,  v6.h[6]     // B[0..3] = gamma.in[X[0..3] >> 4] * mat[2][0]\n\n        ldr             h1,  [x7, x12, lsl #1]      // gamma.in[Y[0] >> 4]\n        ubfx            x12, x9,  #36, #12          // Z[0] >> 4\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[Y[1] >> 4]\n        ubfx            x13, x10, #20, #12          // Z[1] >> 4\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[Y[2] >> 4]\n        ubfx            x14, x11, #4,  #12          // Z[2] >> 4\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[Y[3] >> 4]\n        lsr             x15, x11, #52               // Z[3] >> 4\n        mov             v1.h[1],  v16.h[0]          // v1.4h  = gamma.in[Y[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[Y[2..3] >> 4]\n        mov             v1.s[1],  v17.s[0]          // v1.4h  = gamma.in[Y[0..3] >> 4]\n\n        umull           v4.4s,  v1.4h,  v6.h[4]     // G[0..3]  = gamma.in[Y[0..3] >> 4] * mat[1][1]\n        umlsl           v3.4s,  v1.4h,  v6.h[1]     // R[0..3] -= gamma.in[Y[0..3] >> 4] * mat[0][1]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G[0..3] -= gamma.in[X[0..3] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B[0..3] -= gamma.in[Y[0..3] >> 4] * mat[2][1]\n\n        ldr             h2,  [x7, x12, lsl #1]      // gamma.in[Z[0] >> 4]\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[Z[1] >> 4]\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[Z[2] >> 4]\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[Z[3] >> 4]\n        mov             v2.h[1],  v16.h[0]          // v2.4h  = gamma.in[Z[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[Z[2..3] >> 4]\n        mov             v2.s[1],  v17.s[0]          // v2.4h  = gamma.in[Z[0..3] >> 4]\n\n        umlsl           v3.4s,  v2.4h,  v6.h[2]     // R[0..3] -= gamma.in[Z[0..3] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R[0..3] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G[0..3] += gamma.in[Z[0..3] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G[0..3] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B[0..3] += gamma.in[Z[0..3] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B[0..3] >> 12)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:14", "text": "umull           v4.4s,  v1.4h,  v6.h[4]     // G[0..3]  = gamma.in[Y[0..3] >> 4] * mat[1][1]\n        umlsl           v3.4s,  v1.4h,  v6.h[1]     // R[0..3] -= gamma.in[Y[0..3] >> 4] * mat[0][1]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G[0..3] -= gamma.in[X[0..3] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B[0..3] -= gamma.in[Y[0..3] >> 4] * mat[2][1]\n\n        ldr             h2,  [x7, x12, lsl #1]      // gamma.in[Z[0] >> 4]\n        ldr             h16, [x7, x13, lsl #1]      // gamma.in[Z[1] >> 4]\n        ldr             h17, [x7, x14, lsl #1]      // gamma.in[Z[2] >> 4]\n        ldr             h18, [x7, x15, lsl #1]      // gamma.in[Z[3] >> 4]\n        mov             v2.h[1],  v16.h[0]          // v2.4h  = gamma.in[Z[0..1] >> 4]\n        mov             v17.h[1], v18.h[0]          // v17.4h = gamma.in[Z[2..3] >> 4]\n        mov             v2.s[1],  v17.s[0]          // v2.4h  = gamma.in[Z[0..3] >> 4]\n\n        umlsl           v3.4s,  v2.4h,  v6.h[2]     // R[0..3] -= gamma.in[Z[0..3] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R[0..3] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G[0..3] += gamma.in[Z[0..3] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G[0..3] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B[0..3] += gamma.in[Z[0..3] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B[0..3] >> 12)\n\n        umov            w9,  v3.h[0]                // clip(R[0] >> 12)\n        umov            w10, v4.h[1]                // clip(G[1] >> 12)\n        umov            w11, v5.h[2]                // clip(B[2] >> 12)\n\n        umov            w12, v4.h[0]                // clip(G[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R[0] = gamma.out[clip(R[0] >> 12)]\n        lsl             x9,  x9,  #4                // R[0] << 4\n        umov            w13, v5.h[1]                // clip(B[1] >> 12)\n        ldrh            w10, [x8, x10, lsl #1]      // G[1] = gamma.out[clip(G[1] >> 12)]\n        lsl             x10, x10, #4                // G[1] << 4\n        umov            w14, v3.h[3]                // clip(R[3] >> 12)\n        ldrh            w11, [x8, x11, lsl #1]      // B[2] = gamma.out[clip(B[2] >> 12)]\n        lsl             x11, x11, #4                // B[2] << 4\n\n        umov            w15, v5.h[0]                // clip(B[0] >> 12)\n        ldrh            w12, [x8, x12, lsl #1]      // G[0] = gamma.out[clip(G[0] >> 12)]\n        orr             x9,  x9,  x12, lsl #20      // R[0] << 4, G[0] << 4\n        umov            w12, v3.h[2]                // clip(R[2] >> 12)\n        ldrh            w13, [x8, x13, lsl #1]      // B[1] = gamma.out[clip(B[1] >> 12)]\n        orr             x10, x10, x13, lsl #20      // G[1] << 4, B[1] << 4\n        umov            w13, v4.h[3]                // clip(G[3] >> 12)\n        ldrh            w14, [x8, x14, lsl #1]      // R[3] = gamma.out[clip(R[3] >> 12)]\n        orr             x11, x11, x14, lsl #20      // B[2] << 4, R[3] << 4\n\n        umov            w14, v3.h[1]                // clip(R[1] >> 12)\n        ldrh            w15, [x8, x15, lsl #1]      // B[0] = gamma.out[clip(B[0] >> 12)]\n        orr             x9,  x9,  x15, lsl #36      // R[0] << 4, G[0] << 4, B[0] << 4\n        umov            w15, v4.h[2]                // clip(G[2] >> 12)\n        ldrh            w12, [x8, x12, lsl #1]      // R[2] = gamma.out[clip(R[2] >> 12)]\n        orr             x10, x10, x12, lsl #36      // G[1] << 4, B[1] << 4, R[2] << 4\n        umov            w12, v5.h[3]                // clip(B[3] >> 12)\n        ldrh            w13, [x8, x13, lsl #1]      // G[3] = gamma.out[clip(G[3] >> 12)]\n        orr             x11, x11, x13, lsl #36      // B[2] << 4, R[3] << 4, G[3] << 4\n\n        ldrh            w14, [x8, x14, lsl #1]      // R[1] = gamma.out[clip(R[1] >> 12)]\n        orr             x9,  x9,  x14, lsl #52      // x9  = R[0] << 4, G[0] << 4, B[0] << 4, R[1] << 4\n        ldrh            w15, [x8, x15, lsl #1]      // G[2] = gamma.out[clip(G[2] >> 12)]\n        orr             x10, x10, x15, lsl #52      // x10 = G[1] << 4, B[1] << 4, R[2] << 4, G[2] << 4\n        ldrh            w12, [x8, x12, lsl #1]      // B[3] = gamma.out[clip(B[3] >> 12)]\n        orr             x11, x11, x12, lsl #52      // x11 = B[2] << 4, R[3] << 4, G[3] << 4, B[3] << 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:15", "text": "umov            w13, v4.h[3]                // clip(G[3] >> 12)\n        ldrh            w14, [x8, x14, lsl #1]      // R[3] = gamma.out[clip(R[3] >> 12)]\n        orr             x11, x11, x14, lsl #20      // B[2] << 4, R[3] << 4\n\n        umov            w14, v3.h[1]                // clip(R[1] >> 12)\n        ldrh            w15, [x8, x15, lsl #1]      // B[0] = gamma.out[clip(B[0] >> 12)]\n        orr             x9,  x9,  x15, lsl #36      // R[0] << 4, G[0] << 4, B[0] << 4\n        umov            w15, v4.h[2]                // clip(G[2] >> 12)\n        ldrh            w12, [x8, x12, lsl #1]      // R[2] = gamma.out[clip(R[2] >> 12)]\n        orr             x10, x10, x12, lsl #36      // G[1] << 4, B[1] << 4, R[2] << 4\n        umov            w12, v5.h[3]                // clip(B[3] >> 12)\n        ldrh            w13, [x8, x13, lsl #1]      // G[3] = gamma.out[clip(G[3] >> 12)]\n        orr             x11, x11, x13, lsl #36      // B[2] << 4, R[3] << 4, G[3] << 4\n\n        ldrh            w14, [x8, x14, lsl #1]      // R[1] = gamma.out[clip(R[1] >> 12)]\n        orr             x9,  x9,  x14, lsl #52      // x9  = R[0] << 4, G[0] << 4, B[0] << 4, R[1] << 4\n        ldrh            w15, [x8, x15, lsl #1]      // G[2] = gamma.out[clip(G[2] >> 12)]\n        orr             x10, x10, x15, lsl #52      // x10 = G[1] << 4, B[1] << 4, R[2] << 4, G[2] << 4\n        ldrh            w12, [x8, x12, lsl #1]      // B[3] = gamma.out[clip(B[3] >> 12)]\n        orr             x11, x11, x12, lsl #52      // x11 = B[2] << 4, R[3] << 4, G[3] << 4, B[3] << 4\n\n        stp             x9,  x10, [x1]\n        str             x11, [x1, #16]\n        add             x1,  x1,  #24\n\n        subs            w0,  w0,  #4\n        b.ge            7b\n\n        .align JUMP_ALIGN\n8:\n        tst             w5,  #3\n        b.eq            10f                         // no residual pixels; (w & 3) == 0\n\n        ldr             w10, [x3]                   // w10 = X[0] Y[0]\n        ldrh            w11, [x3, #4]               // w11 = Z[0]\n        add             x3,  x3,  #6\n        ubfx            w9,  w10, #4,  #12          // X[0] >> 4\n        ubfx            w10, w10, #20, #12          // Y[0] >> 4\n        lsr             w11, w11, #4                // Z[0] >> 4\n        ldr             h0,  [x7, x9,  lsl #1]      // v0.4h = gamma.in[X[0] >> 4]\n        ldr             h1,  [x7, x10, lsl #1]      // v1.4h = gamma.in[Y[0] >> 4]\n        ldr             h2,  [x7, x11, lsl #1]      // v2.4h = gamma.in[Z[0] >> 4]\n\n        cmp             w0,  #-2\n        b.lt            9f                          // (w & 3) == 1\n\n        ldr             w10, [x3]                   // w10 = X[1] Y[1]\n        ldrh            w11, [x3, #4]               // w11 = Z[1]\n        add             x3,  x3,  #6\n        ubfx            w9,  w10, #4, #12           // X[1] >> 4\n        ubfx            w10, w10, #20, #12          // Y[1] >> 4\n        lsr             w11, w11, #4                // Z[1] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X[1] >> 4]\n        ldr             h17, [x7, x10, lsl #1]      // gamma.in[Y[1] >> 4]\n        ldr             h18, [x7, x11, lsl #1]      // gamma.in[Z[1] >> 4]\n        mov             v0.h[1], v16.h[0]           // v0.4h = gamma.in[X[0..1] >> 4]\n        mov             v1.h[1], v17.h[0]           // v1.4h = gamma.in[Y[0..1] >> 4]\n        mov             v2.h[1], v18.h[0]           // v2.4h = gamma.in[Z[0..1] >> 4]\n\n        b.le            9f                          // (w & 3) == 2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:16", "text": "ldr             h1,  [x7, x10, lsl #1]      // v1.4h = gamma.in[Y[0] >> 4]\n        ldr             h2,  [x7, x11, lsl #1]      // v2.4h = gamma.in[Z[0] >> 4]\n\n        cmp             w0,  #-2\n        b.lt            9f                          // (w & 3) == 1\n\n        ldr             w10, [x3]                   // w10 = X[1] Y[1]\n        ldrh            w11, [x3, #4]               // w11 = Z[1]\n        add             x3,  x3,  #6\n        ubfx            w9,  w10, #4, #12           // X[1] >> 4\n        ubfx            w10, w10, #20, #12          // Y[1] >> 4\n        lsr             w11, w11, #4                // Z[1] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X[1] >> 4]\n        ldr             h17, [x7, x10, lsl #1]      // gamma.in[Y[1] >> 4]\n        ldr             h18, [x7, x11, lsl #1]      // gamma.in[Z[1] >> 4]\n        mov             v0.h[1], v16.h[0]           // v0.4h = gamma.in[X[0..1] >> 4]\n        mov             v1.h[1], v17.h[0]           // v1.4h = gamma.in[Y[0..1] >> 4]\n        mov             v2.h[1], v18.h[0]           // v2.4h = gamma.in[Z[0..1] >> 4]\n\n        b.le            9f                          // (w & 3) == 2\n\n        ldr             w10, [x3]                   // w10 = X[2] Y[2]\n        ldrh            w11, [x3, #4]               // w11 = Z[2]\n        add             x3,  x3,  #6\n        ubfx            w9,  w10, #4, #12           // X[2] >> 4\n        ubfx            w10, w10, #20, #12          // Y[2] >> 4\n        lsr             w11, w11, #4                // Z[2] >> 4\n        ldr             h16, [x7, x9,  lsl #1]      // gamma.in[X[2] >> 4]\n        ldr             h17, [x7, x10, lsl #1]      // gamma.in[Y[2] >> 4]\n        ldr             h18, [x7, x11, lsl #1]      // gamma.in[Z[2] >> 4]\n        mov             v0.h[2], v16.h[0]           // v0.4h = gamma.in[X[0..2] >> 4]\n        mov             v1.h[2], v17.h[0]           // v1.4h = gamma.in[Y[0..2] >> 4]\n        mov             v2.h[2], v18.h[0]           // v2.4h = gamma.in[Z[0..2] >> 4]\n\n        .align JUMP_ALIGN\n9:\n        umull           v3.4s,  v0.4h,  v6.h[0]     // R[0..2] = gamma.in[X[0..2] >> 4] * mat[0][0]\n        umull           v5.4s,  v0.4h,  v6.h[6]     // B[0..2] = gamma.in[X[0..2] >> 4] * mat[2][0]\n\n        umull           v4.4s,  v1.4h,  v6.h[4]     // G[0..2]  = gamma.in[Y[0..2] >> 4] * mat[1][1]\n        umlsl           v3.4s,  v1.4h,  v6.h[1]     // R[0..2] -= gamma.in[Y[0..2] >> 4] * mat[0][1]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G[0..2] -= gamma.in[X[0..2] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B[0..2] -= gamma.in[Y[0..2] >> 4] * mat[2][1]\n\n        umlsl           v3.4s,  v2.4h,  v6.h[2]     // R[0..2] -= gamma.in[Z[0..2] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R[0..2] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G[0..2] += gamma.in[Z[0..2] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G[0..2] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B[0..2] += gamma.in[Z[0..2] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B[0..2] >> 12)\n\n        umov            w9,  v3.h[0]                // clip(R[0] >> 12)\n        umov            w10, v4.h[0]                // clip(G[0] >> 12)\n        umov            w11, v5.h[0]                // clip(B[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R[0] = gamma.out[clip(R[0] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G[0] = gamma.out[clip(G[0] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B[0] = gamma.out[clip(B[0] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R[0] << 4\n        lsl             w10, w10, #4                // w10 = G[0] << 4\n        lsl             w11, w11, #4                // w11 = B[0] << 4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:17", "text": "umlsl           v3.4s,  v1.4h,  v6.h[1]     // R[0..2] -= gamma.in[Y[0..2] >> 4] * mat[0][1]\n        umlsl           v4.4s,  v0.4h,  v6.h[3]     // G[0..2] -= gamma.in[X[0..2] >> 4] * mat[1][0]\n        umlsl           v5.4s,  v1.4h,  v6.h[7]     // B[0..2] -= gamma.in[Y[0..2] >> 4] * mat[2][1]\n\n        umlsl           v3.4s,  v2.4h,  v6.h[2]     // R[0..2] -= gamma.in[Z[0..2] >> 4] * mat[0][2]\n        sqshrun         v3.4h,  v3.4s,  #12         // clip(R[0..2] >> 12)\n        umlal           v4.4s,  v2.4h,  v6.h[5]     // G[0..2] += gamma.in[Z[0..2] >> 4] * mat[1][2]\n        sqshrun         v4.4h,  v4.4s,  #12         // clip(G[0..2] >> 12)\n        umlal           v5.4s,  v2.4h,  v7.h[0]     // B[0..2] += gamma.in[Z[0..2] >> 4] * mat[2][2]\n        sqshrun         v5.4h,  v5.4s,  #12         // clip(B[0..2] >> 12)\n\n        umov            w9,  v3.h[0]                // clip(R[0] >> 12)\n        umov            w10, v4.h[0]                // clip(G[0] >> 12)\n        umov            w11, v5.h[0]                // clip(B[0] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R[0] = gamma.out[clip(R[0] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G[0] = gamma.out[clip(G[0] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B[0] = gamma.out[clip(B[0] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R[0] << 4\n        lsl             w10, w10, #4                // w10 = G[0] << 4\n        lsl             w11, w11, #4                // w11 = B[0] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        add             x1,  x1,  #6\n\n        cmp             w0,  #-2\n        b.lt            10f                         // (w & 3) == 1\n\n        umov            w9,  v3.h[1]                // clip(R[1] >> 12)\n        umov            w10, v4.h[1]                // clip(G[1] >> 12)\n        umov            w11, v5.h[1]                // clip(B[1] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R[1] = gamma.out[clip(R[1] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G[1] = gamma.out[clip(G[1] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B[1] = gamma.out[clip(B[1] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R[1] << 4\n        lsl             w10, w10, #4                // w10 = G[1] << 4\n        lsl             w11, w11, #4                // w11 = B[1] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        add             x1,  x1,  #6\n\n        b.le            10f                         // (w & 3) == 2\n\n        umov            w9,  v3.h[2]                // clip(R[2] >> 12)\n        umov            w10, v4.h[2]                // clip(G[2] >> 12)\n        umov            w11, v5.h[2]                // clip(B[2] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R[2] = gamma.out[clip(R[2] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G[2] = gamma.out[clip(G[2] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B[2] = gamma.out[clip(B[2] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R[2] << 4\n        lsl             w10, w10, #4                // w10 = G[2] << 4\n        lsl             w11, w11, #4                // w11 = B[2] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        add             x1,  x1,  #6\n\n        .align JUMP_ALIGN\n10:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/xyz2rgb_neon.S:18", "text": "add             x1,  x1,  #6\n\n        b.le            10f                         // (w & 3) == 2\n\n        umov            w9,  v3.h[2]                // clip(R[2] >> 12)\n        umov            w10, v4.h[2]                // clip(G[2] >> 12)\n        umov            w11, v5.h[2]                // clip(B[2] >> 12)\n        ldrh            w9,  [x8, x9,  lsl #1]      // R[2] = gamma.out[clip(R[2] >> 12)]\n        ldrh            w10, [x8, x10, lsl #1]      // G[2] = gamma.out[clip(G[2] >> 12)]\n        ldrh            w11, [x8, x11, lsl #1]      // B[2] = gamma.out[clip(B[2] >> 12)]\n        lsl             w9,  w9,  #4                // w9  = R[2] << 4\n        lsl             w10, w10, #4                // w10 = G[2] << 4\n        lsl             w11, w11, #4                // w11 = B[2] << 4\n        strh            w9,  [x1]\n        strh            w10, [x1, #2]\n        strh            w11, [x1, #4]\n        add             x1,  x1,  #6\n\n        .align JUMP_ALIGN\n10:\n        ret\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/xyz2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/xyz2rgb_neon.S", "line_start": 681, "line_end": 702}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro load_yoff_ycoeff yoff ycoeff\n#if defined(__APPLE__)\n        ldp             w9, w10, [sp, #\\yoff]\n#else\n        ldr             w9,  [sp, #\\yoff]\n        ldr             w10, [sp, #\\ycoeff]\n#endif\n.endm\n\n.macro load_dst1_dst2 dst1 linesize1 dst2 linesize2\n#if defined(__APPLE__)\n#define DST_OFFSET 8\n#else\n#define DST_OFFSET 0\n#endif\n        ldr             x10, [sp, #\\dst1      - DST_OFFSET]\n        ldr             w12, [sp, #\\linesize1 - DST_OFFSET]\n        ldr             x15, [sp, #\\dst2      - DST_OFFSET]\n        ldr             w16, [sp, #\\linesize2 - DST_OFFSET]\n#undef DST_OFFSET\n        sub             w12, w12, w0                                    // w12 = linesize1 - width     (padding1)\n        sub             w16, w16, w0                                    // w16 = linesize2 - width     (padding2)\n.endm\n\n.macro load_args_nv12 ofmt\n        ldr             x8,  [sp]                                       // table\n        load_yoff_ycoeff 8, 16                                           // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  24, 32, 40, 48\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n .ifc \\ofmt,rgb24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:2", "text": "ldr             x15, [sp, #\\dst2      - DST_OFFSET]\n        ldr             w16, [sp, #\\linesize2 - DST_OFFSET]\n#undef DST_OFFSET\n        sub             w12, w12, w0                                    // w12 = linesize1 - width     (padding1)\n        sub             w16, w16, w0                                    // w16 = linesize2 - width     (padding2)\n.endm\n\n.macro load_args_nv12 ofmt\n        ldr             x8,  [sp]                                       // table\n        load_yoff_ycoeff 8, 16                                           // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  24, 32, 40, 48\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n .ifc \\ofmt,rgb24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n .else\n  .ifc \\ofmt,bgr24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n  .else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n  .endif\n .endif\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7, w7, w0                                      // w7 = linesizeC - width     (paddingC)\n        neg             w11, w0\n.endm\n\n.macro load_args_nv21 ofmt\n        load_args_nv12  \\ofmt\n.endm\n\n.macro load_args_yuv420p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n .ifc \\ofmt,rgb24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n .else\n  .ifc \\ofmt,bgr24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n  .else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n  .endif", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:3", "text": "ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n .ifc \\ofmt,rgb24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n .else\n  .ifc \\ofmt,bgr24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n  .else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n  .endif\n .endif\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n        lsr             w11, w0, #1\n        neg             w11, w11\n.endm\n\n.macro load_args_yuva420p ofmt\n        load_args_yuv420p \\ofmt\n#if defined(__APPLE__)\n        ldr             x15, [sp, #32]                                  // srcA\n        ldr             w16, [sp, #40]                                  // linesizeA\n#else\n        ldr             x15, [sp, #40]                                  // srcA\n        ldr             w16, [sp, #48]                                  // linesizeA\n#endif\n        sub             w16, w16, w0                                    // w16 = linesizeA - width    (paddingA)\n.endm\n\n.macro load_args_yuv422p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n .ifc \\ofmt,rgb24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n .else\n  .ifc \\ofmt,bgr24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:4", "text": ".macro load_args_yuv422p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n .ifc \\ofmt,rgb24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n .else\n  .ifc \\ofmt,bgr24\n        add             w17, w0, w0, lsl #1\n        sub             w3, w3, w17                                     // w3 = linesize  - width * 3 (padding)\n  .else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n  .endif\n .endif\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n.endm\n\n.macro load_chroma_nv12\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_nv21\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v19.8h, v16.8b, #3\n        ushll           v18.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv420p\n        ld1             {v16.8b}, [ x6], #8\n        ld1             {v17.8b}, [x13], #8\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuva420p\n        load_chroma_yuv420p\n.endm\n\n.macro load_chroma_yuv422p\n        load_chroma_yuv420p\n.endm\n\n.macro increment_nv12\n        ands            w17, w1, #1\n        csel            w17, w7, w11, ne                                // incC = (h & 1) ? paddincC : -width", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:5", "text": ".endm\n\n.macro load_chroma_yuv420p\n        ld1             {v16.8b}, [ x6], #8\n        ld1             {v17.8b}, [x13], #8\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuva420p\n        load_chroma_yuv420p\n.endm\n\n.macro load_chroma_yuv422p\n        load_chroma_yuv420p\n.endm\n\n.macro increment_nv12\n        ands            w17, w1, #1\n        csel            w17, w7, w11, ne                                // incC = (h & 1) ? paddincC : -width\n        add             x6,  x6, w17, sxtw                              // srcC += incC\n.endm\n\n.macro increment_nv21\n        increment_nv12\n.endm\n\n.macro increment_yuv420p\n        ands            w17, w1, #1\n        csel            w17,  w7, w11, ne                               // incU = (h & 1) ? paddincU : -width/2\n        add             x6,  x6,  w17, sxtw                             // srcU += incU\n        csel            w17, w14, w11, ne                               // incV = (h & 1) ? paddincV : -width/2\n        add             x13, x13, w17, sxtw                             // srcV += incV\n.endm\n\n.macro increment_yuva420p\n        increment_yuv420p\n        add             x15, x15, w16, sxtw                             // srcA += paddingA (every row)\n.endm\n\n.macro increment_yuv422p\n        add             x6,  x6,  w7, sxtw                              // srcU += incU\n        add             x13, x13, w14, sxtw                             // srcV += incV\n.endm\n\n.macro compute_rgb r1 g1 b1 r2 g2 b2\n        add             v20.8h, v26.8h, v20.8h                          // Y1 + R1\n        add             v21.8h, v27.8h, v21.8h                          // Y2 + R2\n        add             v22.8h, v26.8h, v22.8h                          // Y1 + G1\n        add             v23.8h, v27.8h, v23.8h                          // Y2 + G2\n        add             v24.8h, v26.8h, v24.8h                          // Y1 + B1\n        add             v25.8h, v27.8h, v25.8h                          // Y2 + B2\n        sqrshrun        \\r1, v20.8h, #1                                 // clip_u8((Y1 + R1) >> 1)\n        sqrshrun        \\r2, v21.8h, #1                                 // clip_u8((Y2 + R1) >> 1)\n        sqrshrun        \\g1, v22.8h, #1                                 // clip_u8((Y1 + G1) >> 1)\n        sqrshrun        \\g2, v23.8h, #1                                 // clip_u8((Y2 + G1) >> 1)\n        sqrshrun        \\b1, v24.8h, #1                                 // clip_u8((Y1 + B1) >> 1)\n        sqrshrun        \\b2, v25.8h, #1                                 // clip_u8((Y2 + B1) >> 1)\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:6", "text": ".macro increment_yuv422p\n        add             x6,  x6,  w7, sxtw                              // srcU += incU\n        add             x13, x13, w14, sxtw                             // srcV += incV\n.endm\n\n.macro compute_rgb r1 g1 b1 r2 g2 b2\n        add             v20.8h, v26.8h, v20.8h                          // Y1 + R1\n        add             v21.8h, v27.8h, v21.8h                          // Y2 + R2\n        add             v22.8h, v26.8h, v22.8h                          // Y1 + G1\n        add             v23.8h, v27.8h, v23.8h                          // Y2 + G2\n        add             v24.8h, v26.8h, v24.8h                          // Y1 + B1\n        add             v25.8h, v27.8h, v25.8h                          // Y2 + B2\n        sqrshrun        \\r1, v20.8h, #1                                 // clip_u8((Y1 + R1) >> 1)\n        sqrshrun        \\r2, v21.8h, #1                                 // clip_u8((Y2 + R1) >> 1)\n        sqrshrun        \\g1, v22.8h, #1                                 // clip_u8((Y1 + G1) >> 1)\n        sqrshrun        \\g2, v23.8h, #1                                 // clip_u8((Y2 + G1) >> 1)\n        sqrshrun        \\b1, v24.8h, #1                                 // clip_u8((Y1 + B1) >> 1)\n        sqrshrun        \\b2, v25.8h, #1                                 // clip_u8((Y2 + B1) >> 1)\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        compute_rgb     \\r1, \\g1, \\b1, \\r2, \\g2, \\b2\n        mov             \\a1, v30.8b\n        mov             \\a2, v30.8b\n.endm\n\n.macro compute_rgba_alpha r1 g1 b1 a1 r2 g2 b2 a2\n        compute_rgb     \\r1, \\g1, \\b1, \\r2, \\g2, \\b2\n        mov             \\a1, v28.8b                                     // real alpha (first 8 pixels)\n        mov             \\a2, v29.8b                                     // real alpha (next 8 pixels)\n.endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n        load_args_\\ifmt \\ofmt\n\n        movi            v31.8h, #4, lsl #8                              // 128 * (1<<3) (loop-invariant)\n        movi            v30.8b, #255                                    // alpha = 255  (loop-invariant)\n        mov             w9, w1\n1:\n        mov             w8, w0                                          // w8 = width\n2:\n        load_chroma_\\ifmt\n        sub             v18.8h, v18.8h, v31.8h                          // U*(1<<3) - 128*(1<<3)\n        sub             v19.8h, v19.8h, v31.8h                          // V*(1<<3) - 128*(1<<3)\n        sqdmulh         v20.8h, v19.8h, v1.h[0]                         // V * v2r            (R)\n        sqdmulh         v22.8h, v18.8h, v1.h[1]                         // U * u2g\n        ld1             {v2.16b}, [x4], #16                             // load luma (interleaved)\n.ifc \\ifmt,yuva420p\n        ld1             {v28.8b, v29.8b}, [x15], #16                    // load 16 alpha bytes\n.endif\n        sqdmulh         v19.8h, v19.8h, v1.h[2]                         //           V * v2g\n        sqdmulh         v24.8h, v18.8h, v1.h[3]                         // U * u2b            (B)\n        ushll           v26.8h, v2.8b,  #3                              // Y1*(1<<3)\n        ushll2          v27.8h, v2.16b, #3                              // Y2*(1<<3)\n        add             v22.8h, v22.8h, v19.8h                          // U * u2g + V * v2g  (G)\n        sub             v26.8h, v26.8h, v3.8h                           // Y1*(1<<3) - y_offset\n        sub             v27.8h, v27.8h, v3.8h                           // Y2*(1<<3) - y_offset\n        zip2            v21.8h, v20.8h, v20.8h                          // R2\n        zip1            v20.8h, v20.8h, v20.8h                          // R1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:7", "text": "mov             w8, w0                                          // w8 = width\n2:\n        load_chroma_\\ifmt\n        sub             v18.8h, v18.8h, v31.8h                          // U*(1<<3) - 128*(1<<3)\n        sub             v19.8h, v19.8h, v31.8h                          // V*(1<<3) - 128*(1<<3)\n        sqdmulh         v20.8h, v19.8h, v1.h[0]                         // V * v2r            (R)\n        sqdmulh         v22.8h, v18.8h, v1.h[1]                         // U * u2g\n        ld1             {v2.16b}, [x4], #16                             // load luma (interleaved)\n.ifc \\ifmt,yuva420p\n        ld1             {v28.8b, v29.8b}, [x15], #16                    // load 16 alpha bytes\n.endif\n        sqdmulh         v19.8h, v19.8h, v1.h[2]                         //           V * v2g\n        sqdmulh         v24.8h, v18.8h, v1.h[3]                         // U * u2b            (B)\n        ushll           v26.8h, v2.8b,  #3                              // Y1*(1<<3)\n        ushll2          v27.8h, v2.16b, #3                              // Y2*(1<<3)\n        add             v22.8h, v22.8h, v19.8h                          // U * u2g + V * v2g  (G)\n        sub             v26.8h, v26.8h, v3.8h                           // Y1*(1<<3) - y_offset\n        sub             v27.8h, v27.8h, v3.8h                           // Y2*(1<<3) - y_offset\n        zip2            v21.8h, v20.8h, v20.8h                          // R2\n        zip1            v20.8h, v20.8h, v20.8h                          // R1\n        sqdmulh         v26.8h, v26.8h, v0.8h                           // ((Y1*(1<<3) - y_offset) * y_coeff) >> 15\n        sqdmulh         v27.8h, v27.8h, v0.8h                           // ((Y2*(1<<3) - y_offset) * y_coeff) >> 15\n        zip2            v23.8h, v22.8h, v22.8h                          // G2\n        zip1            v22.8h, v22.8h, v22.8h                          // G1\n        zip2            v25.8h, v24.8h, v24.8h                          // B2\n        zip1            v24.8h, v24.8h, v24.8h                          // B1\n\n.ifc \\ofmt,argb // 1 2 3 0\n .ifc \\ifmt,yuva420p\n        compute_rgba_alpha v5.8b,v6.8b,v7.8b,v4.8b, v17.8b,v18.8b,v19.8b,v16.8b\n .else\n        compute_rgba    v5.8b,v6.8b,v7.8b,v4.8b, v17.8b,v18.8b,v19.8b,v16.8b\n .endif\n.endif\n\n.ifc \\ofmt,rgba // 0 1 2 3\n .ifc \\ifmt,yuva420p\n        compute_rgba_alpha v4.8b,v5.8b,v6.8b,v7.8b, v16.8b,v17.8b,v18.8b,v19.8b\n .else\n        compute_rgba    v4.8b,v5.8b,v6.8b,v7.8b, v16.8b,v17.8b,v18.8b,v19.8b\n .endif\n.endif\n\n.ifc \\ofmt,abgr // 3 2 1 0\n .ifc \\ifmt,yuva420p\n        compute_rgba_alpha v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n .else\n        compute_rgba    v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n .endif\n.endif\n\n.ifc \\ofmt,bgra // 2 1 0 3\n .ifc \\ifmt,yuva420p\n        compute_rgba_alpha v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b\n .else\n        compute_rgba    v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b\n .endif\n.endif\n\n.ifc \\ofmt,rgb24", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:8", "text": ".endif\n.endif\n\n.ifc \\ofmt,abgr // 3 2 1 0\n .ifc \\ifmt,yuva420p\n        compute_rgba_alpha v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n .else\n        compute_rgba    v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n .endif\n.endif\n\n.ifc \\ofmt,bgra // 2 1 0 3\n .ifc \\ifmt,yuva420p\n        compute_rgba_alpha v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b\n .else\n        compute_rgba    v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b\n .endif\n.endif\n\n.ifc \\ofmt,rgb24\n        compute_rgb     v4.8b,v5.8b,v6.8b, v16.8b,v17.8b,v18.8b\n        st3             { v4.8b, v5.8b, v6.8b}, [x2], #24\n        st3             {v16.8b,v17.8b,v18.8b}, [x2], #24\n.else\n .ifc \\ofmt,bgr24\n        compute_rgb     v6.8b,v5.8b,v4.8b, v18.8b,v17.8b,v16.8b\n        st3             { v4.8b, v5.8b, v6.8b}, [x2], #24\n        st3             {v16.8b,v17.8b,v18.8b}, [x2], #24\n .else\n  .ifc \\ofmt,gbrp\n        compute_rgb     v18.8b,v4.8b,v6.8b, v19.8b,v5.8b,v7.8b\n        st1             {  v4.8b,  v5.8b }, [x2],  #16\n        st1             {  v6.8b,  v7.8b }, [x10], #16\n        st1             { v18.8b, v19.8b }, [x15], #16\n  .else\n        st4             { v4.8b, v5.8b, v6.8b, v7.8b}, [x2], #32\n        st4             {v16.8b,v17.8b,v18.8b,v19.8b}, [x2], #32\n  .endif\n .endif\n.endif\n        subs            w8, w8, #16                                     // width -= 16\n        b.gt            2b\n        add             x2, x2, w3, sxtw                                // dst  += padding\n.ifc \\ofmt,gbrp\n        add             x10, x10, w12, sxtw                             // dst1 += padding1\n        add             x15, x15, w16, sxtw                             // dst2 += padding2\n.endif\n        add             x4, x4, w5, sxtw                                // srcY += paddingY\n        increment_\\ifmt\n        subs            w1, w1, #1                                      // height -= 1\n        b.gt            1b\n        mov             w0, w9\n        ret\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:9", "text": "subs            w8, w8, #16                                     // width -= 16\n        b.gt            2b\n        add             x2, x2, w3, sxtw                                // dst  += padding\n.ifc \\ofmt,gbrp\n        add             x10, x10, w12, sxtw                             // dst1 += padding1\n        add             x15, x15, w16, sxtw                             // dst2 += padding2\n.endif\n        add             x4, x4, w5, sxtw                                // srcY += paddingY\n        increment_\\ifmt\n        subs            w1, w1, #1                                      // height -= 1\n        b.gt            1b\n        mov             w0, w9\n        ret\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n        declare_func    \\ifmt, gbrp\n        declare_func    \\ifmt, rgb24\n        declare_func    \\ifmt, bgr24\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p\n\n.macro declare_yuva_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n.endm\n\ndeclare_yuva_funcs yuva420p", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 321, "line_end": 359}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro load_yoff_ycoeff yoff ycoeff\n#if defined(__APPLE__)\n        ldp             w9, w10, [sp, #\\yoff]\n#else\n        ldr             w9,  [sp, #\\yoff]\n        ldr             w10, [sp, #\\ycoeff]\n#endif\n.endm\n\n.macro load_dst1_dst2 dst1 linesize1 dst2 linesize2\n#if defined(__APPLE__)\n#define DST_OFFSET 8\n#else\n#define DST_OFFSET 0\n#endif\n        ldr             x10, [sp, #\\dst1      - DST_OFFSET]\n        ldr             w12, [sp, #\\linesize1 - DST_OFFSET]\n        ldr             x15, [sp, #\\dst2      - DST_OFFSET]\n        ldr             w16, [sp, #\\linesize2 - DST_OFFSET]\n#undef DST_OFFSET\n        sub             w12, w12, w0                                    // w12 = linesize1 - width     (padding1)\n        sub             w16, w16, w0                                    // w16 = linesize2 - width     (padding2)\n.endm\n\n.macro load_args_nv12 ofmt\n        ldr             x8,  [sp]                                       // table\n        load_yoff_ycoeff 8, 16                                           // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  24, 32, 40, 48\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:2", "text": "ldr             x15, [sp, #\\dst2      - DST_OFFSET]\n        ldr             w16, [sp, #\\linesize2 - DST_OFFSET]\n#undef DST_OFFSET\n        sub             w12, w12, w0                                    // w12 = linesize1 - width     (padding1)\n        sub             w16, w16, w0                                    // w16 = linesize2 - width     (padding2)\n.endm\n\n.macro load_args_nv12 ofmt\n        ldr             x8,  [sp]                                       // table\n        load_yoff_ycoeff 8, 16                                           // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  24, 32, 40, 48\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7, w7, w0                                      // w7 = linesizeC - width     (paddingC)\n        neg             w11, w0\n.endm\n\n.macro load_args_nv21 ofmt\n        load_args_nv12  \\ofmt\n.endm\n\n.macro load_args_yuv420p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n        lsr             w11, w0, #1\n        neg             w11, w11\n.endm\n\n.macro load_args_yuv422p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:3", "text": "sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n        lsr             w11, w0, #1\n        neg             w11, w11\n.endm\n\n.macro load_args_yuv422p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n.endm\n\n.macro load_chroma_nv12\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_nv21\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v19.8h, v16.8b, #3\n        ushll           v18.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv420p\n        ld1             {v16.8b}, [ x6], #8\n        ld1             {v17.8b}, [x13], #8\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv422p\n        load_chroma_yuv420p\n.endm\n\n.macro increment_nv12\n        ands            w17, w1, #1\n        csel            w17, w7, w11, ne                                // incC = (h & 1) ? paddincC : -width\n        add             x6,  x6, w17, sxtw                              // srcC += incC\n.endm\n\n.macro increment_nv21\n        increment_nv12\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:4", "text": ".macro load_chroma_yuv420p\n        ld1             {v16.8b}, [ x6], #8\n        ld1             {v17.8b}, [x13], #8\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv422p\n        load_chroma_yuv420p\n.endm\n\n.macro increment_nv12\n        ands            w17, w1, #1\n        csel            w17, w7, w11, ne                                // incC = (h & 1) ? paddincC : -width\n        add             x6,  x6, w17, sxtw                              // srcC += incC\n.endm\n\n.macro increment_nv21\n        increment_nv12\n.endm\n\n.macro increment_yuv420p\n        ands            w17, w1, #1\n        csel            w17,  w7, w11, ne                               // incU = (h & 1) ? paddincU : -width/2\n        add             x6,  x6,  w17, sxtw                             // srcU += incU\n        csel            w17, w14, w11, ne                               // incV = (h & 1) ? paddincV : -width/2\n        add             x13, x13, w17, sxtw                             // srcV += incV\n.endm\n\n.macro increment_yuv422p\n        add             x6,  x6,  w7, sxtw                              // srcU += incU\n        add             x13, x13, w14, sxtw                             // srcV += incV\n.endm\n\n.macro compute_rgb r1 g1 b1 r2 g2 b2\n        add             v20.8h, v26.8h, v20.8h                          // Y1 + R1\n        add             v21.8h, v27.8h, v21.8h                          // Y2 + R2\n        add             v22.8h, v26.8h, v22.8h                          // Y1 + G1\n        add             v23.8h, v27.8h, v23.8h                          // Y2 + G2\n        add             v24.8h, v26.8h, v24.8h                          // Y1 + B1\n        add             v25.8h, v27.8h, v25.8h                          // Y2 + B2\n        sqrshrun        \\r1, v20.8h, #1                                 // clip_u8((Y1 + R1) >> 1)\n        sqrshrun        \\r2, v21.8h, #1                                 // clip_u8((Y2 + R1) >> 1)\n        sqrshrun        \\g1, v22.8h, #1                                 // clip_u8((Y1 + G1) >> 1)\n        sqrshrun        \\g2, v23.8h, #1                                 // clip_u8((Y2 + G1) >> 1)\n        sqrshrun        \\b1, v24.8h, #1                                 // clip_u8((Y1 + B1) >> 1)\n        sqrshrun        \\b2, v25.8h, #1                                 // clip_u8((Y2 + B1) >> 1)\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        compute_rgb     \\r1, \\g1, \\b1, \\r2, \\g2, \\b2\n        movi            \\a1, #255\n        movi            \\a2, #255\n.endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n        load_args_\\ifmt \\ofmt\n\n        mov             w9, w1", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:5", "text": "add             v25.8h, v27.8h, v25.8h                          // Y2 + B2\n        sqrshrun        \\r1, v20.8h, #1                                 // clip_u8((Y1 + R1) >> 1)\n        sqrshrun        \\r2, v21.8h, #1                                 // clip_u8((Y2 + R1) >> 1)\n        sqrshrun        \\g1, v22.8h, #1                                 // clip_u8((Y1 + G1) >> 1)\n        sqrshrun        \\g2, v23.8h, #1                                 // clip_u8((Y2 + G1) >> 1)\n        sqrshrun        \\b1, v24.8h, #1                                 // clip_u8((Y1 + B1) >> 1)\n        sqrshrun        \\b2, v25.8h, #1                                 // clip_u8((Y2 + B1) >> 1)\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        compute_rgb     \\r1, \\g1, \\b1, \\r2, \\g2, \\b2\n        movi            \\a1, #255\n        movi            \\a2, #255\n.endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n        load_args_\\ifmt \\ofmt\n\n        mov             w9, w1\n1:\n        mov             w8, w0                                          // w8 = width\n2:\n        movi            v5.8h, #4, lsl #8                               // 128 * (1<<3)\n        load_chroma_\\ifmt\n        sub             v18.8h, v18.8h, v5.8h                           // U*(1<<3) - 128*(1<<3)\n        sub             v19.8h, v19.8h, v5.8h                           // V*(1<<3) - 128*(1<<3)\n        sqdmulh         v20.8h, v19.8h, v1.h[0]                         // V * v2r            (R)\n        sqdmulh         v22.8h, v18.8h, v1.h[1]                         // U * u2g\n        sqdmulh         v19.8h, v19.8h, v1.h[2]                         //           V * v2g\n        add             v22.8h, v22.8h, v19.8h                          // U * u2g + V * v2g  (G)\n        sqdmulh         v24.8h, v18.8h, v1.h[3]                         // U * u2b            (B)\n        zip2            v21.8h, v20.8h, v20.8h                          // R2\n        zip1            v20.8h, v20.8h, v20.8h                          // R1\n        zip2            v23.8h, v22.8h, v22.8h                          // G2\n        zip1            v22.8h, v22.8h, v22.8h                          // G1\n        zip2            v25.8h, v24.8h, v24.8h                          // B2\n        zip1            v24.8h, v24.8h, v24.8h                          // B1\n        ld1             {v2.16b}, [x4], #16                             // load luma\n        ushll           v26.8h, v2.8b,  #3                              // Y1*(1<<3)\n        ushll2          v27.8h, v2.16b, #3                              // Y2*(1<<3)\n        sub             v26.8h, v26.8h, v3.8h                           // Y1*(1<<3) - y_offset\n        sub             v27.8h, v27.8h, v3.8h                           // Y2*(1<<3) - y_offset\n        sqdmulh         v26.8h, v26.8h, v0.8h                           // ((Y1*(1<<3) - y_offset) * y_coeff) >> 15\n        sqdmulh         v27.8h, v27.8h, v0.8h                           // ((Y2*(1<<3) - y_offset) * y_coeff) >> 15\n\n.ifc \\ofmt,argb // 1 2 3 0\n        compute_rgba    v5.8b,v6.8b,v7.8b,v4.8b, v17.8b,v18.8b,v19.8b,v16.8b\n.endif\n\n.ifc \\ofmt,rgba // 0 1 2 3\n        compute_rgba    v4.8b,v5.8b,v6.8b,v7.8b, v16.8b,v17.8b,v18.8b,v19.8b\n.endif\n\n.ifc \\ofmt,abgr // 3 2 1 0\n        compute_rgba    v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n.endif\n\n.ifc \\ofmt,bgra // 2 1 0 3\n        compute_rgba    v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:6", "text": "ushll2          v27.8h, v2.16b, #3                              // Y2*(1<<3)\n        sub             v26.8h, v26.8h, v3.8h                           // Y1*(1<<3) - y_offset\n        sub             v27.8h, v27.8h, v3.8h                           // Y2*(1<<3) - y_offset\n        sqdmulh         v26.8h, v26.8h, v0.8h                           // ((Y1*(1<<3) - y_offset) * y_coeff) >> 15\n        sqdmulh         v27.8h, v27.8h, v0.8h                           // ((Y2*(1<<3) - y_offset) * y_coeff) >> 15\n\n.ifc \\ofmt,argb // 1 2 3 0\n        compute_rgba    v5.8b,v6.8b,v7.8b,v4.8b, v17.8b,v18.8b,v19.8b,v16.8b\n.endif\n\n.ifc \\ofmt,rgba // 0 1 2 3\n        compute_rgba    v4.8b,v5.8b,v6.8b,v7.8b, v16.8b,v17.8b,v18.8b,v19.8b\n.endif\n\n.ifc \\ofmt,abgr // 3 2 1 0\n        compute_rgba    v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n.endif\n\n.ifc \\ofmt,bgra // 2 1 0 3\n        compute_rgba    v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b\n.endif\n\n.ifc \\ofmt,gbrp\n        compute_rgb     v18.8b,v4.8b,v6.8b, v19.8b,v5.8b,v7.8b\n        st1             {  v4.8b,  v5.8b }, [x2],  #16\n        st1             {  v6.8b,  v7.8b }, [x10], #16\n        st1             { v18.8b, v19.8b }, [x15], #16\n.else\n        st4             { v4.8b, v5.8b, v6.8b, v7.8b}, [x2], #32\n        st4             {v16.8b,v17.8b,v18.8b,v19.8b}, [x2], #32\n.endif\n        subs            w8, w8, #16                                     // width -= 16\n        b.gt            2b\n        add             x2, x2, w3, sxtw                                // dst  += padding\n.ifc \\ofmt,gbrp\n        add             x10, x10, w12, sxtw                             // dst1 += padding1\n        add             x15, x15, w16, sxtw                             // dst2 += padding2\n.endif\n        add             x4, x4, w5, sxtw                                // srcY += paddingY\n        increment_\\ifmt\n        subs            w1, w1, #1                                      // height -= 1\n        b.gt            1b\n        mov             w0, w9\n        ret\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n        declare_func    \\ifmt, gbrp\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 201, "line_end": 259}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:7", "text": "subs            w1, w1, #1                                      // height -= 1\n        b.gt            1b\n        mov             w0, w9\n        ret\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n        declare_func    \\ifmt, gbrp\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "b137347278fe261f32c73269469b6f9569c2e9de", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b137347278fe261f32c73269469b6f9569c2e9de/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 241, "line_end": 259}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:2", "text": "ldr             x15, [sp, #\\dst2      - DST_OFFSET]\n        ldr             w16, [sp, #\\linesize2 - DST_OFFSET]\n#undef DST_OFFSET\n        sub             w12, w12, w0                                    // w12 = linesize1 - width     (padding1)\n        sub             w16, w16, w0                                    // w16 = linesize2 - width     (padding2)\n.endm\n\n.macro load_args_nv12 ofmt\n        ldr             x8,  [sp]                                       // table\n        load_yoff_ycoeff 8, 16                                           // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  24, 32, 40, 48\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7, w7, w0                                      // w7 = linesizeC - width     (paddingC)\n        neg             w11, w0\n.endm\n\n.macro load_args_nv21 ofmt\n    load_args_nv12 \\ofmt\n.endm\n\n.macro load_args_yuv420p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)\n.else\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n.endif\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n        lsr             w11, w0, #1\n        neg             w11, w11\n.endm\n\n.macro load_args_yuv422p ofmt\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n.ifc \\ofmt,gbrp\n        load_dst1_dst2  40, 48, 56, 64\n        sub             w3, w3, w0                                      // w3 = linesize  - width     (padding)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "181cd260dbfb13f479791663d7488f3be222c9a4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/181cd260dbfb13f479791663d7488f3be222c9a4/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/aarch64/asm.S\"\n\n.macro load_yoff_ycoeff yoff ycoeff\n#if defined(__APPLE__)\n        ldp             w9, w10, [sp, #\\yoff]\n#else\n        ldr             w9,  [sp, #\\yoff]\n        ldr             w10, [sp, #\\ycoeff]\n#endif\n.endm\n\n.macro load_args_nv12\n        ldr             x8,  [sp]                                       // table\n        load_yoff_ycoeff 8, 16                                           // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7, w7, w0                                      // w7 = linesizeC - width     (paddingC)\n        neg             w11, w0\n.endm\n\n.macro load_args_nv21\n    load_args_nv12\n.endm\n\n.macro load_args_yuv420p\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:2", "text": "sub             w7, w7, w0                                      // w7 = linesizeC - width     (paddingC)\n        neg             w11, w0\n.endm\n\n.macro load_args_nv21\n    load_args_nv12\n.endm\n\n.macro load_args_yuv420p\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n        lsr             w11, w0, #1\n        neg             w11, w11\n.endm\n\n.macro load_args_yuv422p\n        ldr             x13, [sp]                                       // srcV\n        ldr             w14, [sp, #8]                                   // linesizeV\n        ldr             x8,  [sp, #16]                                  // table\n        load_yoff_ycoeff 24, 32                                          // y_offset, y_coeff\n        ld1             {v1.1d}, [x8]\n        dup             v0.8h, w10\n        dup             v3.8h, w9\n        sub             w3, w3, w0, lsl #2                              // w3 = linesize  - width * 4 (padding)\n        sub             w5, w5, w0                                      // w5 = linesizeY - width     (paddingY)\n        sub             w7,  w7,  w0, lsr #1                            // w7  = linesizeU - width / 2 (paddingU)\n        sub             w14, w14, w0, lsr #1                            // w14 = linesizeV - width / 2 (paddingV)\n.endm\n\n.macro load_chroma_nv12\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_nv21\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v19.8h, v16.8b, #3\n        ushll           v18.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv420p\n        ld1             {v16.8b}, [ x6], #8\n        ld1             {v17.8b}, [x13], #8\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv422p\n    load_chroma_yuv420p\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:3", "text": "ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_nv21\n        ld2             {v16.8b, v17.8b}, [x6], #16\n        ushll           v19.8h, v16.8b, #3\n        ushll           v18.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv420p\n        ld1             {v16.8b}, [ x6], #8\n        ld1             {v17.8b}, [x13], #8\n        ushll           v18.8h, v16.8b, #3\n        ushll           v19.8h, v17.8b, #3\n.endm\n\n.macro load_chroma_yuv422p\n    load_chroma_yuv420p\n.endm\n\n.macro increment_nv12\n        ands            w15, w1, #1\n        csel            w16, w7, w11, ne                                // incC = (h & 1) ? paddincC : -width\n        add             x6,  x6, w16, sxtw                              // srcC += incC\n.endm\n\n.macro increment_nv21\n    increment_nv12\n.endm\n\n.macro increment_yuv420p\n        ands            w15, w1, #1\n        csel            w16,  w7, w11, ne                               // incU = (h & 1) ? paddincU : -width/2\n        csel            w17, w14, w11, ne                               // incV = (h & 1) ? paddincV : -width/2\n        add             x6,  x6,  w16, sxtw                             // srcU += incU\n        add             x13, x13, w17, sxtw                             // srcV += incV\n.endm\n\n.macro increment_yuv422p\n        add             x6,  x6,  w7, sxtw                              // srcU += incU\n        add             x13, x13, w14, sxtw                             // srcV += incV\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        add             v20.8h, v26.8h, v20.8h                          // Y1 + R1\n        add             v21.8h, v27.8h, v21.8h                          // Y2 + R2\n        add             v22.8h, v26.8h, v22.8h                          // Y1 + G1\n        add             v23.8h, v27.8h, v23.8h                          // Y2 + G2\n        add             v24.8h, v26.8h, v24.8h                          // Y1 + B1\n        add             v25.8h, v27.8h, v25.8h                          // Y2 + B2\n        sqrshrun        \\r1, v20.8h, #1                                 // clip_u8((Y1 + R1) >> 1)\n        sqrshrun        \\r2, v21.8h, #1                                 // clip_u8((Y2 + R1) >> 1)\n        sqrshrun        \\g1, v22.8h, #1                                 // clip_u8((Y1 + G1) >> 1)\n        sqrshrun        \\g2, v23.8h, #1                                 // clip_u8((Y2 + G1) >> 1)\n        sqrshrun        \\b1, v24.8h, #1                                 // clip_u8((Y1 + B1) >> 1)\n        sqrshrun        \\b2, v25.8h, #1                                 // clip_u8((Y2 + B1) >> 1)\n        movi            \\a1, #255\n        movi            \\a2, #255\n.endm", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:4", "text": "add             x6,  x6,  w7, sxtw                              // srcU += incU\n        add             x13, x13, w14, sxtw                             // srcV += incV\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        add             v20.8h, v26.8h, v20.8h                          // Y1 + R1\n        add             v21.8h, v27.8h, v21.8h                          // Y2 + R2\n        add             v22.8h, v26.8h, v22.8h                          // Y1 + G1\n        add             v23.8h, v27.8h, v23.8h                          // Y2 + G2\n        add             v24.8h, v26.8h, v24.8h                          // Y1 + B1\n        add             v25.8h, v27.8h, v25.8h                          // Y2 + B2\n        sqrshrun        \\r1, v20.8h, #1                                 // clip_u8((Y1 + R1) >> 1)\n        sqrshrun        \\r2, v21.8h, #1                                 // clip_u8((Y2 + R1) >> 1)\n        sqrshrun        \\g1, v22.8h, #1                                 // clip_u8((Y1 + G1) >> 1)\n        sqrshrun        \\g2, v23.8h, #1                                 // clip_u8((Y2 + G1) >> 1)\n        sqrshrun        \\b1, v24.8h, #1                                 // clip_u8((Y1 + B1) >> 1)\n        sqrshrun        \\b2, v25.8h, #1                                 // clip_u8((Y2 + B1) >> 1)\n        movi            \\a1, #255\n        movi            \\a2, #255\n.endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n    load_args_\\ifmt\n        mov             w9, w1\n1:\n        mov             w8, w0                                          // w8 = width\n2:\n        movi            v5.8h, #4, lsl #8                               // 128 * (1<<3)\n    load_chroma_\\ifmt\n        sub             v18.8h, v18.8h, v5.8h                           // U*(1<<3) - 128*(1<<3)\n        sub             v19.8h, v19.8h, v5.8h                           // V*(1<<3) - 128*(1<<3)\n        sqdmulh         v20.8h, v19.8h, v1.h[0]                         // V * v2r            (R)\n        sqdmulh         v22.8h, v18.8h, v1.h[1]                         // U * u2g\n        sqdmulh         v19.8h, v19.8h, v1.h[2]                         //           V * v2g\n        add             v22.8h, v22.8h, v19.8h                          // U * u2g + V * v2g  (G)\n        sqdmulh         v24.8h, v18.8h, v1.h[3]                         // U * u2b            (B)\n        zip2            v21.8h, v20.8h, v20.8h                          // R2\n        zip1            v20.8h, v20.8h, v20.8h                          // R1\n        zip2            v23.8h, v22.8h, v22.8h                          // G2\n        zip1            v22.8h, v22.8h, v22.8h                          // G1\n        zip2            v25.8h, v24.8h, v24.8h                          // B2\n        zip1            v24.8h, v24.8h, v24.8h                          // B1\n        ld1             {v2.16b}, [x4], #16                             // load luma\n        ushll           v26.8h, v2.8b,  #3                              // Y1*(1<<3)\n        ushll2          v27.8h, v2.16b, #3                              // Y2*(1<<3)\n        sub             v26.8h, v26.8h, v3.8h                           // Y1*(1<<3) - y_offset\n        sub             v27.8h, v27.8h, v3.8h                           // Y2*(1<<3) - y_offset\n        sqdmulh         v26.8h, v26.8h, v0.8h                           // ((Y1*(1<<3) - y_offset) * y_coeff) >> 15\n        sqdmulh         v27.8h, v27.8h, v0.8h                           // ((Y2*(1<<3) - y_offset) * y_coeff) >> 15\n\n.ifc \\ofmt,argb // 1 2 3 0\n        compute_rgba    v5.8b,v6.8b,v7.8b,v4.8b, v17.8b,v18.8b,v19.8b,v16.8b\n.endif\n\n.ifc \\ofmt,rgba // 0 1 2 3\n        compute_rgba    v4.8b,v5.8b,v6.8b,v7.8b, v16.8b,v17.8b,v18.8b,v19.8b\n.endif\n\n.ifc \\ofmt,abgr // 3 2 1 0", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:5", "text": "zip1            v22.8h, v22.8h, v22.8h                          // G1\n        zip2            v25.8h, v24.8h, v24.8h                          // B2\n        zip1            v24.8h, v24.8h, v24.8h                          // B1\n        ld1             {v2.16b}, [x4], #16                             // load luma\n        ushll           v26.8h, v2.8b,  #3                              // Y1*(1<<3)\n        ushll2          v27.8h, v2.16b, #3                              // Y2*(1<<3)\n        sub             v26.8h, v26.8h, v3.8h                           // Y1*(1<<3) - y_offset\n        sub             v27.8h, v27.8h, v3.8h                           // Y2*(1<<3) - y_offset\n        sqdmulh         v26.8h, v26.8h, v0.8h                           // ((Y1*(1<<3) - y_offset) * y_coeff) >> 15\n        sqdmulh         v27.8h, v27.8h, v0.8h                           // ((Y2*(1<<3) - y_offset) * y_coeff) >> 15\n\n.ifc \\ofmt,argb // 1 2 3 0\n        compute_rgba    v5.8b,v6.8b,v7.8b,v4.8b, v17.8b,v18.8b,v19.8b,v16.8b\n.endif\n\n.ifc \\ofmt,rgba // 0 1 2 3\n        compute_rgba    v4.8b,v5.8b,v6.8b,v7.8b, v16.8b,v17.8b,v18.8b,v19.8b\n.endif\n\n.ifc \\ofmt,abgr // 3 2 1 0\n        compute_rgba    v7.8b,v6.8b,v5.8b,v4.8b, v19.8b,v18.8b,v17.8b,v16.8b\n.endif\n\n.ifc \\ofmt,bgra // 2 1 0 3\n        compute_rgba    v6.8b,v5.8b,v4.8b,v7.8b, v18.8b,v17.8b,v16.8b,v19.8b\n.endif\n\n        st4             { v4.8b, v5.8b, v6.8b, v7.8b}, [x2], #32\n        st4             {v16.8b,v17.8b,v18.8b,v19.8b}, [x2], #32\n        subs            w8, w8, #16                                     // width -= 16\n        b.gt            2b\n        add             x2, x2, w3, sxtw                                // dst  += padding\n        add             x4, x4, w5, sxtw                                // srcY += paddingY\n    increment_\\ifmt\n        subs            w1, w1, #1                                      // height -= 1\n        b.gt            1b\n        mov             w0, w9\n    ret\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 161, "line_end": 212}
{"id": "FFmpeg/FFmpeg:libswscale/aarch64/yuv2rgb_neon.S:6", "text": ".macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/aarch64/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/aarch64/yuv2rgb_neon.S", "line_start": 201, "line_end": 212}
{"id": "FFmpeg/FFmpeg:libswscale/arm/hscale.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_hscale_8_to_15_neon, export=1\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n        ldr             r4, [sp, #104]                                 @ filter\n        ldr             r5, [sp, #108]                                 @ filterPos\n        ldr             r6, [sp, #112]                                 @ filterSize\n        add             r10, r4, r6, lsl #1                            @ filter2 = filter + filterSize * 2\n1:      ldr             r8, [r5], #4                                   @ filterPos[0]\n        ldr             r9, [r5], #4                                   @ filterPos[1]\n        vmov.s32        q4, #0                                         @ val accumulator\n        vmov.s32        q5, #0                                         @ val accumulator\n        mov             r7, r6                                         @ tmpfilterSize = filterSize\n        mov             r0, r3                                         @ srcp\n2:      add             r11, r0, r8                                    @ srcp + filterPos[0]\n        add             r12, r0, r9                                    @ srcp + filterPos[1]\n        vld1.8          d0, [r11]                                      @ srcp[filterPos[0] + {0..7}]\n        vld1.8          d2, [r12]                                      @ srcp[filterPos[1] + {0..7}]\n        vld1.16         {q2}, [r4]!                                    @ load 8x16-bit filter values\n        vld1.16         {q3}, [r10]!                                   @ load 8x16-bit filter values\n        vmovl.u8        q0, d0                                         @ unpack src values to 16-bit\n        vmovl.u8        q1, d2                                         @ unpack src values to 16-bit\n        vmull.s16       q8, d0, d4                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 1)\n        vmull.s16       q9, d1, d5                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 2)\n        vmull.s16       q10, d2, d6                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 1)\n        vmull.s16       q11, d3, d7                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 2)\n        vpadd.s32       d16, d16, d17                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n        vpadd.s32       d17, d18, d19                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n        vpadd.s32       d20, d20, d21                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n        vpadd.s32       d21, d22, d23                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n        vadd.s32        q4, q8                                         @ update val accumulator\n        vadd.s32        q5, q10                                        @ update val accumulator\n        add             r0, #8                                         @ srcp += 8\n        subs            r7, #8                                         @ tmpfilterSize -= 8\n        bgt             2b                                             @ loop until tmpfilterSize is consumed\n        mov             r4, r10                                        @ filter = filter2\n        add             r10, r10, r6, lsl #1                           @ filter2 += filterSize * 2\n        vpadd.s32       d8, d8, d9                                     @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 1)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/hscale.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/hscale.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/hscale.S:2", "text": "vld1.16         {q2}, [r4]!                                    @ load 8x16-bit filter values\n        vld1.16         {q3}, [r10]!                                   @ load 8x16-bit filter values\n        vmovl.u8        q0, d0                                         @ unpack src values to 16-bit\n        vmovl.u8        q1, d2                                         @ unpack src values to 16-bit\n        vmull.s16       q8, d0, d4                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 1)\n        vmull.s16       q9, d1, d5                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 2)\n        vmull.s16       q10, d2, d6                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 1)\n        vmull.s16       q11, d3, d7                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 2)\n        vpadd.s32       d16, d16, d17                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n        vpadd.s32       d17, d18, d19                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n        vpadd.s32       d20, d20, d21                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n        vpadd.s32       d21, d22, d23                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n        vadd.s32        q4, q8                                         @ update val accumulator\n        vadd.s32        q5, q10                                        @ update val accumulator\n        add             r0, #8                                         @ srcp += 8\n        subs            r7, #8                                         @ tmpfilterSize -= 8\n        bgt             2b                                             @ loop until tmpfilterSize is consumed\n        mov             r4, r10                                        @ filter = filter2\n        add             r10, r10, r6, lsl #1                           @ filter2 += filterSize * 2\n        vpadd.s32       d8, d8, d9                                     @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 1)\n        vpadd.s32       d9, d10, d11                                   @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 2)\n        vpadd.s32       d8, d8, d9                                     @ horizontal pair adding of the 4x32-bit sums into 2x32-bit\n        vqshrn.s32      d8, q4, #7                                     @ shift and clip the 2x16-bit final values\n        vst1.32         {d8[0]},[r1]!                                  @ write destination\n        subs            r2, #2                                         @ dstW -= 2\n        bgt             1b                                             @ loop until end of line\n        vpop            {q4-q7}\n        pop             {r4-r12, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/hscale.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/hscale.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libswscale/arm/hscale.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_hscale_8_to_15_neon, export=1\n    push                {r4-r12, lr}\n    vpush               {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ filter\n    ldr                 r5, [sp, #108]                                 @ filterPos\n    ldr                 r6, [sp, #112]                                 @ filterSize\n    add                 r10, r4, r6, lsl #1                            @ filter2 = filter + filterSize * 2\n1:  ldr                 r8, [r5], #4                                   @ filterPos[0]\n    ldr                 r9, [r5], #4                                   @ filterPos[1]\n    vmov.s32            q4, #0                                         @ val accumulator\n    vmov.s32            q5, #0                                         @ val accumulator\n    mov                 r7, r6                                         @ tmpfilterSize = filterSize\n    mov                 r0, r3                                         @ srcp\n2:  add                 r11, r0, r8                                    @ srcp + filterPos[0]\n    add                 r12, r0, r9                                    @ srcp + filterPos[1]\n    vld1.8              d0, [r11]                                      @ srcp[filterPos[0] + {0..7}]\n    vld1.8              d2, [r12]                                      @ srcp[filterPos[1] + {0..7}]\n    vld1.16             {q2}, [r4]!                                    @ load 8x16-bit filter values\n    vld1.16             {q3}, [r10]!                                   @ load 8x16-bit filter values\n    vmovl.u8            q0, d0                                         @ unpack src values to 16-bit\n    vmovl.u8            q1, d2                                         @ unpack src values to 16-bit\n    vmull.s16           q8, d0, d4                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 1)\n    vmull.s16           q9, d1, d5                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 2)\n    vmull.s16           q10, d2, d6                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 1)\n    vmull.s16           q11, d3, d7                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 2)\n    vpadd.s32           d16, d16, d17                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n    vpadd.s32           d17, d18, d19                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n    vpadd.s32           d20, d20, d21                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n    vpadd.s32           d21, d22, d23                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n    vadd.s32            q4, q8                                         @ update val accumulator\n    vadd.s32            q5, q10                                        @ update val accumulator\n    add                 r0, #8                                         @ srcp += 8\n    subs                r7, #8                                         @ tmpfilterSize -= 8\n    bgt                 2b                                             @ loop until tmpfilterSize is consumed\n    mov                 r4, r10                                        @ filter = filter2\n    add                 r10, r10, r6, lsl #1                           @ filter2 += filterSize * 2\n    vpadd.s32           d8, d8, d9                                     @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 1)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/hscale.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/hscale.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/hscale.S:2", "text": "vld1.16             {q2}, [r4]!                                    @ load 8x16-bit filter values\n    vld1.16             {q3}, [r10]!                                   @ load 8x16-bit filter values\n    vmovl.u8            q0, d0                                         @ unpack src values to 16-bit\n    vmovl.u8            q1, d2                                         @ unpack src values to 16-bit\n    vmull.s16           q8, d0, d4                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 1)\n    vmull.s16           q9, d1, d5                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 2)\n    vmull.s16           q10, d2, d6                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 1)\n    vmull.s16           q11, d3, d7                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 2)\n    vpadd.s32           d16, d16, d17                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n    vpadd.s32           d17, d18, d19                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n    vpadd.s32           d20, d20, d21                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n    vpadd.s32           d21, d22, d23                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n    vadd.s32            q4, q8                                         @ update val accumulator\n    vadd.s32            q5, q10                                        @ update val accumulator\n    add                 r0, #8                                         @ srcp += 8\n    subs                r7, #8                                         @ tmpfilterSize -= 8\n    bgt                 2b                                             @ loop until tmpfilterSize is consumed\n    mov                 r4, r10                                        @ filter = filter2\n    add                 r10, r10, r6, lsl #1                           @ filter2 += filterSize * 2\n    vpadd.s32           d8, d8, d9                                     @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 1)\n    vpadd.s32           d9, d10, d11                                   @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 2)\n    vpadd.s32           d8, d8, d9                                     @ horizontal pair adding of the 4x32-bit sums into 2x32-bit\n    vqshrn.s32          d8, q4, #7                                     @ shift and clip the 2x16-bit final values\n    vst1.32             {d8[0]},[r1]!                                  @ write destination\n    subs                r2, #2                                         @ dstW -= 2\n    bgt                 1b                                             @ loop until end of line\n    vpop                {q4-q7}\n    pop                 {r4-r12, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/hscale.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/hscale.S", "line_start": 41, "line_end": 69}
{"id": "FFmpeg/FFmpeg:libswscale/arm/hscale.S:2", "text": "vld1.16             {q2}, [r4]!                                    @ load 8x16-bit filter values\n    vld1.16             {q3}, [r10]!                                   @ load 8x16-bit filter values\n    vmovl.u8            q0, d0                                         @ unpack src values to 16-bit\n    vmovl.u8            q1, d2                                         @ unpack src values to 16-bit\n    vmull.s16           q8, d0, d4                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 1)\n    vmull.s16           q9, d1, d5                                     @ srcp[filterPos[0] + {0..7}] * filter[{0..7}] (part 2)\n    vmull.s16           q10, d2, d6                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 1)\n    vmull.s16           q11, d3, d7                                    @ srcp[filterPos[1] + {0..7}] * filter[{0..7}] (part 2)\n    vpadd.s32           d16, d16, d17                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n    vpadd.s32           d17, d18, d19                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n    vpadd.s32           d20, d20, d21                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1)\n    vpadd.s32           d21, d22, d23                                  @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2)\n    vadd.s32            q4, q8                                         @ update val accumulator\n    vadd.s32            q5, q10                                        @ update val accumulator\n    add                 r0, #8                                         @ srcp += 8\n    subs                r7, #8                                         @ tmpfilterSize -= 8\n    bgt                 2b                                             @ loop until tmpfilterSize is consumed\n    mov                 r4, r10                                        @ filter = filter2\n    add                 r10, r10, r6, lsl #1                           @ filter2 += filterSize * 2\n    vpadd.s32           d8, d8, d9                                     @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 1)\n    vpadd.s32           d9, d10, d11                                   @ horizontal pair adding of the 8x32-bit sums into 4x32-bit (part 2)\n    vpadd.s32           d8, d8, d9                                     @ horizontal pair adding of the 4x32-bit sums into 2x32-bit\n    vqshrn.s32          d8, q4, #7                                     @ shift and clip the 2x16-bit final values\n    vst1.32             {d8[0]},[r1]!                                  @ write destination\n    subs                r2, #2                                         @ dstW -= 2\n    bgt                 1b                                             @ loop until end of line\n    vpop                {q4-q7}\n    pop                 {r4-r12, lr}\n    mov pc, lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/hscale.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/hscale.S", "line_start": 41, "line_end": 70}
{"id": "FFmpeg/FFmpeg:libswscale/arm/output.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_yuv2planeX_8_neon, export=1\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n        ldr             r4, [sp, #104]                                 @ dstW\n        ldr             r5, [sp, #108]                                 @ dither\n        ldr             r6, [sp, #112]                                 @ offset\n        vld1.8          {d0}, [r5]                                     @ load 8x8-bit dither values\n        cmp             r6, #0                                         @ check offsetting which can be 0 or 3 only\n        beq             1f\n        vext.u8         d0, d0, d0, #3                                 @ honor offsetting which can be 3 only\n1:      vmovl.u8        q0, d0                                         @ extend dither to 16-bit\n        vshll.u16       q1, d0, #12                                    @ extend dither to 32-bit with left shift by 12 (part 1)\n        vshll.u16       q2, d1, #12                                    @ extend dither to 32-bit with left shift by 12 (part 2)\n        mov             r7, #0                                         @ i = 0\n2:      vmov.u8         q3, q1                                         @ initialize accumulator with dithering values (part 1)\n        vmov.u8         q4, q2                                         @ initialize accumulator with dithering values (part 2)\n        mov             r8, r1                                         @ tmpFilterSize = filterSize\n        mov             r9, r2                                         @ srcp\n        mov             r10, r0                                        @ filterp\n3:      ldr             r11, [r9], #4                                  @ get pointer @ src[j]\n        ldr             r12, [r9], #4                                  @ get pointer @ src[j+1]\n        add             r11, r11, r7, lsl #1                           @ &src[j][i]\n        add             r12, r12, r7, lsl #1                           @ &src[j+1][i]\n        vld1.16         {q5}, [r11]                                    @ read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        vld1.16         {q6}, [r12]                                    @ read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n        ldr             r11, [r10], #4                                 @ read 2x16-bit coeffs (X, Y) at (filter[j], filter[j+1])\n        vmov.16         q7, q5                                         @ copy 8x16-bit @ src[j  ][i + {0..7}] for following inplace zip instruction\n        vmov.16         q8, q6                                         @ copy 8x16-bit @ src[j+1][i + {0..7}] for following inplace zip instruction\n        vzip.16         q7, q8                                         @ A,I,B,J,C,K,D,L,E,M,F,N,G,O,H,P\n        vdup.32         q15, r11                                       @ X,Y,X,Y,X,Y,X,Y\n        vmull.s16       q9, d14, d30                                   @ A*X,I*Y,B*X,J*Y\n        vmull.s16       q10, d15, d31                                  @ C*X,K*Y,D*X,L*Y\n        vmull.s16       q11, d16, d30                                  @ E*X,M*Y,F*X,N*Y\n        vmull.s16       q12, d17, d31                                  @ G*X,O*Y,H*X,P*Y\n        vpadd.s32       d10, d18, d19                                  @ A*X+I*Y,B*X+J*Y\n        vpadd.s32       d11, d20, d21                                  @ C*X+K*Y,D*X+L*Y\n        vpadd.s32       d12, d22, d23                                  @ E*X+M*Y,F*X+N*Y", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/output.S:2", "text": "mov             r9, r2                                         @ srcp\n        mov             r10, r0                                        @ filterp\n3:      ldr             r11, [r9], #4                                  @ get pointer @ src[j]\n        ldr             r12, [r9], #4                                  @ get pointer @ src[j+1]\n        add             r11, r11, r7, lsl #1                           @ &src[j][i]\n        add             r12, r12, r7, lsl #1                           @ &src[j+1][i]\n        vld1.16         {q5}, [r11]                                    @ read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n        vld1.16         {q6}, [r12]                                    @ read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n        ldr             r11, [r10], #4                                 @ read 2x16-bit coeffs (X, Y) at (filter[j], filter[j+1])\n        vmov.16         q7, q5                                         @ copy 8x16-bit @ src[j  ][i + {0..7}] for following inplace zip instruction\n        vmov.16         q8, q6                                         @ copy 8x16-bit @ src[j+1][i + {0..7}] for following inplace zip instruction\n        vzip.16         q7, q8                                         @ A,I,B,J,C,K,D,L,E,M,F,N,G,O,H,P\n        vdup.32         q15, r11                                       @ X,Y,X,Y,X,Y,X,Y\n        vmull.s16       q9, d14, d30                                   @ A*X,I*Y,B*X,J*Y\n        vmull.s16       q10, d15, d31                                  @ C*X,K*Y,D*X,L*Y\n        vmull.s16       q11, d16, d30                                  @ E*X,M*Y,F*X,N*Y\n        vmull.s16       q12, d17, d31                                  @ G*X,O*Y,H*X,P*Y\n        vpadd.s32       d10, d18, d19                                  @ A*X+I*Y,B*X+J*Y\n        vpadd.s32       d11, d20, d21                                  @ C*X+K*Y,D*X+L*Y\n        vpadd.s32       d12, d22, d23                                  @ E*X+M*Y,F*X+N*Y\n        vpadd.s32       d13, d24, d25                                  @ G*X+O*Y,H*X+P*Y\n        vadd.s32        q3, q5                                         @ update val accumulator (part 1)\n        vadd.s32        q4, q6                                         @ update val accumulator (part 2)\n        subs            r8, #2                                         @ tmpFilterSize -= 2\n        bgt             3b                                             @ loop until filterSize is consumed\n        vshr.s32        q3, q3, #19                                    @ val>>19 (part 1)\n        vshr.s32        q4, q4, #19                                    @ val>>19 (part 2)\n        vqmovun.s32     d6, q3                                         @ clip16(val>>19) (part 1)\n        vqmovun.s32     d7, q4                                         @ clip16(val>>19) (part 2)\n        vqmovn.u16      d6, q3                                         @ merge part 1 and part 2\n        vst1.8          {d6}, [r3]!                                    @ write destination\n        add             r7, #8                                         @ i += 8\n        subs            r4, r4, #8                                     @ dstW -= 8\n        bgt             2b                                             @ loop until width is consumed\n        vpop            {q4-q7}\n        pop             {r4-r12, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/output.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libswscale/arm/output.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_yuv2planeX_8_neon, export=1\n    push {r4-r12, lr}\n    vpush {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ dstW\n    ldr                 r5, [sp, #108]                                 @ dither\n    ldr                 r6, [sp, #112]                                 @ offset\n    vld1.8              {d0}, [r5]                                     @ load 8x8-bit dither values\n    cmp                 r6, #0                                         @ check offsetting which can be 0 or 3 only\n    beq                 1f\n    vext.u8             d0, d0, d0, #3                                 @ honor offsetting which can be 3 only\n1:  vmovl.u8            q0, d0                                         @ extend dither to 16-bit\n    vshll.u16           q1, d0, #12                                    @ extend dither to 32-bit with left shift by 12 (part 1)\n    vshll.u16           q2, d1, #12                                    @ extend dither to 32-bit with left shift by 12 (part 2)\n    mov                 r7, #0                                         @ i = 0\n2:  vmov.u8             q3, q1                                         @ initialize accumulator with dithering values (part 1)\n    vmov.u8             q4, q2                                         @ initialize accumulator with dithering values (part 2)\n    mov                 r8, r1                                         @ tmpFilterSize = filterSize\n    mov                 r9, r2                                         @ srcp\n    mov                 r10, r0                                        @ filterp\n3:  ldr                 r11, [r9], #4                                  @ get pointer @ src[j]\n    ldr                 r12, [r9], #4                                  @ get pointer @ src[j+1]\n    add                 r11, r11, r7, lsl #1                           @ &src[j][i]\n    add                 r12, r12, r7, lsl #1                           @ &src[j+1][i]\n    vld1.16             {q5}, [r11]                                    @ read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n    vld1.16             {q6}, [r12]                                    @ read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n    ldr                 r11, [r10], #4                                 @ read 2x16-bit coeffs (X, Y) at (filter[j], filter[j+1])\n    vmov.16             q7, q5                                         @ copy 8x16-bit @ src[j  ][i + {0..7}] for following inplace zip instruction\n    vmov.16             q8, q6                                         @ copy 8x16-bit @ src[j+1][i + {0..7}] for following inplace zip instruction\n    vzip.16             q7, q8                                         @ A,I,B,J,C,K,D,L,E,M,F,N,G,O,H,P\n    vdup.32             q15, r11                                       @ X,Y,X,Y,X,Y,X,Y\n    vmull.s16           q9, d14, d30                                   @ A*X,I*Y,B*X,J*Y\n    vmull.s16           q10, d15, d31                                  @ C*X,K*Y,D*X,L*Y\n    vmull.s16           q11, d16, d30                                  @ E*X,M*Y,F*X,N*Y\n    vmull.s16           q12, d17, d31                                  @ G*X,O*Y,H*X,P*Y\n    vpadd.s32           d10, d18, d19                                  @ A*X+I*Y,B*X+J*Y\n    vpadd.s32           d11, d20, d21                                  @ C*X+K*Y,D*X+L*Y\n    vpadd.s32           d12, d22, d23                                  @ E*X+M*Y,F*X+N*Y", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/output.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/arm/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/output.S:2", "text": "mov                 r9, r2                                         @ srcp\n    mov                 r10, r0                                        @ filterp\n3:  ldr                 r11, [r9], #4                                  @ get pointer @ src[j]\n    ldr                 r12, [r9], #4                                  @ get pointer @ src[j+1]\n    add                 r11, r11, r7, lsl #1                           @ &src[j][i]\n    add                 r12, r12, r7, lsl #1                           @ &src[j+1][i]\n    vld1.16             {q5}, [r11]                                    @ read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n    vld1.16             {q6}, [r12]                                    @ read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n    ldr                 r11, [r10], #4                                 @ read 2x16-bit coeffs (X, Y) at (filter[j], filter[j+1])\n    vmov.16             q7, q5                                         @ copy 8x16-bit @ src[j  ][i + {0..7}] for following inplace zip instruction\n    vmov.16             q8, q6                                         @ copy 8x16-bit @ src[j+1][i + {0..7}] for following inplace zip instruction\n    vzip.16             q7, q8                                         @ A,I,B,J,C,K,D,L,E,M,F,N,G,O,H,P\n    vdup.32             q15, r11                                       @ X,Y,X,Y,X,Y,X,Y\n    vmull.s16           q9, d14, d30                                   @ A*X,I*Y,B*X,J*Y\n    vmull.s16           q10, d15, d31                                  @ C*X,K*Y,D*X,L*Y\n    vmull.s16           q11, d16, d30                                  @ E*X,M*Y,F*X,N*Y\n    vmull.s16           q12, d17, d31                                  @ G*X,O*Y,H*X,P*Y\n    vpadd.s32           d10, d18, d19                                  @ A*X+I*Y,B*X+J*Y\n    vpadd.s32           d11, d20, d21                                  @ C*X+K*Y,D*X+L*Y\n    vpadd.s32           d12, d22, d23                                  @ E*X+M*Y,F*X+N*Y\n    vpadd.s32           d13, d24, d25                                  @ G*X+O*Y,H*X+P*Y\n    vadd.s32            q3, q5                                         @ update val accumulator (part 1)\n    vadd.s32            q4, q6                                         @ update val accumulator (part 2)\n    subs                r8, #2                                         @ tmpFilterSize -= 2\n    bgt                 3b                                             @ loop until filterSize is consumed\n    vshr.s32            q3, q3, #19                                    @ val>>19 (part 1)\n    vshr.s32            q4, q4, #19                                    @ val>>19 (part 2)\n    vqmovun.s32         d6, q3                                         @ clip16(val>>19) (part 1)\n    vqmovun.s32         d7, q4                                         @ clip16(val>>19) (part 2)\n    vqmovn.u16          d6, q3                                         @ merge part 1 and part 2\n    vst1.8              {d6}, [r3]!                                    @ write destination\n    add                 r7, #8                                         @ i += 8\n    subs                r4, r4, #8                                     @ dstW -= 8\n    bgt                 2b                                             @ loop until width is consumed\n    vpop                {q4-q7}\n    pop                 {r4-r12, pc}\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/output.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/arm/output.S", "line_start": 41, "line_end": 77}
{"id": "FFmpeg/FFmpeg:libswscale/arm/output.S:1", "text": "/*\n * Copyright (c) 2016 Clément Bœsch <clement stupeflix.com>\n * Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\nfunction ff_yuv2planeX_8_neon, export=1\n    push {r4-r12, lr}\n    vpush {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ dstW\n    ldr                 r5, [sp, #108]                                 @ dither\n    ldr                 r6, [sp, #112]                                 @ offset\n    vld1.8              {d0}, [r5]                                     @ load 8x8-bit dither values\n    cmp                 r6, #0                                         @ check offsetting which can be 0 or 3 only\n    beq                 1f\n    vext.u8             d0, d0, d0, #3                                 @ honor offseting which can be 3 only\n1:  vmovl.u8            q0, d0                                         @ extend dither to 16-bit\n    vshll.u16           q1, d0, #12                                    @ extend dither to 32-bit with left shift by 12 (part 1)\n    vshll.u16           q2, d1, #12                                    @ extend dither to 32-bit with left shift by 12 (part 2)\n    mov                 r7, #0                                         @ i = 0\n2:  vmov.u8             q3, q1                                         @ initialize accumulator with dithering values (part 1)\n    vmov.u8             q4, q2                                         @ initialize accumulator with dithering values (part 2)\n    mov                 r8, r1                                         @ tmpFilterSize = filterSize\n    mov                 r9, r2                                         @ srcp\n    mov                 r10, r0                                        @ filterp\n3:  ldr                 r11, [r9], #4                                  @ get pointer @ src[j]\n    ldr                 r12, [r9], #4                                  @ get pointer @ src[j+1]\n    add                 r11, r11, r7, lsl #1                           @ &src[j][i]\n    add                 r12, r12, r7, lsl #1                           @ &src[j+1][i]\n    vld1.16             {q5}, [r11]                                    @ read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n    vld1.16             {q6}, [r12]                                    @ read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n    ldr                 r11, [r10], #4                                 @ read 2x16-bit coeffs (X, Y) at (filter[j], filter[j+1])\n    vmov.16             q7, q5                                         @ copy 8x16-bit @ src[j  ][i + {0..7}] for following inplace zip instruction\n    vmov.16             q8, q6                                         @ copy 8x16-bit @ src[j+1][i + {0..7}] for following inplace zip instruction\n    vzip.16             q7, q8                                         @ A,I,B,J,C,K,D,L,E,M,F,N,G,O,H,P\n    vdup.32             q15, r11                                       @ X,Y,X,Y,X,Y,X,Y\n    vmull.s16           q9, d14, d30                                   @ A*X,I*Y,B*X,J*Y\n    vmull.s16           q10, d15, d31                                  @ C*X,K*Y,D*X,L*Y\n    vmull.s16           q11, d16, d30                                  @ E*X,M*Y,F*X,N*Y\n    vmull.s16           q12, d17, d31                                  @ G*X,O*Y,H*X,P*Y\n    vpadd.s32           d10, d18, d19                                  @ A*X+I*Y,B*X+J*Y\n    vpadd.s32           d11, d20, d21                                  @ C*X+K*Y,D*X+L*Y\n    vpadd.s32           d12, d22, d23                                  @ E*X+M*Y,F*X+N*Y", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/output.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/output.S:2", "text": "mov                 r9, r2                                         @ srcp\n    mov                 r10, r0                                        @ filterp\n3:  ldr                 r11, [r9], #4                                  @ get pointer @ src[j]\n    ldr                 r12, [r9], #4                                  @ get pointer @ src[j+1]\n    add                 r11, r11, r7, lsl #1                           @ &src[j][i]\n    add                 r12, r12, r7, lsl #1                           @ &src[j+1][i]\n    vld1.16             {q5}, [r11]                                    @ read 8x16-bit @ src[j  ][i + {0..7}]: A,B,C,D,E,F,G,H\n    vld1.16             {q6}, [r12]                                    @ read 8x16-bit @ src[j+1][i + {0..7}]: I,J,K,L,M,N,O,P\n    ldr                 r11, [r10], #4                                 @ read 2x16-bit coeffs (X, Y) at (filter[j], filter[j+1])\n    vmov.16             q7, q5                                         @ copy 8x16-bit @ src[j  ][i + {0..7}] for following inplace zip instruction\n    vmov.16             q8, q6                                         @ copy 8x16-bit @ src[j+1][i + {0..7}] for following inplace zip instruction\n    vzip.16             q7, q8                                         @ A,I,B,J,C,K,D,L,E,M,F,N,G,O,H,P\n    vdup.32             q15, r11                                       @ X,Y,X,Y,X,Y,X,Y\n    vmull.s16           q9, d14, d30                                   @ A*X,I*Y,B*X,J*Y\n    vmull.s16           q10, d15, d31                                  @ C*X,K*Y,D*X,L*Y\n    vmull.s16           q11, d16, d30                                  @ E*X,M*Y,F*X,N*Y\n    vmull.s16           q12, d17, d31                                  @ G*X,O*Y,H*X,P*Y\n    vpadd.s32           d10, d18, d19                                  @ A*X+I*Y,B*X+J*Y\n    vpadd.s32           d11, d20, d21                                  @ C*X+K*Y,D*X+L*Y\n    vpadd.s32           d12, d22, d23                                  @ E*X+M*Y,F*X+N*Y\n    vpadd.s32           d13, d24, d25                                  @ G*X+O*Y,H*X+P*Y\n    vadd.s32            q3, q5                                         @ update val accumulator (part 1)\n    vadd.s32            q4, q6                                         @ update val accumulator (part 2)\n    subs                r8, #2                                         @ tmpFilterSize -= 2\n    bgt                 3b                                             @ loop until filterSize is consumed\n    vshr.s32            q3, q3, #19                                    @ val>>19 (part 1)\n    vshr.s32            q4, q4, #19                                    @ val>>19 (part 2)\n    vqmovun.s32         d6, q3                                         @ clip16(val>>19) (part 1)\n    vqmovun.s32         d7, q4                                         @ clip16(val>>19) (part 2)\n    vqmovn.u16          d6, q3                                         @ merge part 1 and part 2\n    vst1.8              {d6}, [r3]!                                    @ write destination\n    add                 r7, #8                                         @ i += 8\n    subs                r4, r4, #8                                     @ dstW -= 8\n    bgt                 2b                                             @ loop until width is consumed\n    vpop                {q4-q7}\n    pop                 {r4-r12, lr}\n    mov                 pc, lr\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/output.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/output.S", "line_start": 41, "line_end": 78}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_16.S:1", "text": "/*\n * Copyright (C) 2013 Xiaolei Yu <dreifachstein@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#if HAVE_AS_DN_DIRECTIVE\n#include \"rgb2yuv_neon_common.S\"\n\n/* downsampled R16G16B16 x8 */\nalias_qw    r16x8,  q7\nalias_qw    g16x8,  q8\nalias_qw    b16x8,  q9\n\nalias   n16x16_l,   q11\nalias   n16x16_h,   q12\n\nalias   y16x16_l,   q13\nalias   y16x16_h,   q14\n\nalias_qw    y8x16,  q15\n\n.macro init     src\n        vld3.i32        {q13_l, q14_l, q15_l},          [\\src]!\n        vld3.i32        {q13_h[0], q14_h[0], q15_h[0]}, [\\src]\n        vrshrn.i32      CO_R,   q13, #7\n        vrshrn.i32      CO_G,   q14, #7\n        vrshrn.i32      CO_B,   q15, #7\n\n        vmov.u8         BIAS_Y, #16\n        vmov.u8         BIAS_U, #128\n.endm\n\n\n.macro compute_y_16x1_step  action, s8x16, coeff\n        vmovl.u8        n16x16_l,   \\s8x16\\()_l\n        vmovl.u8        n16x16_h,   \\s8x16\\()_h\n\n        \\action         y16x16_l,   n16x16_l,   \\coeff\n        \\action         y16x16_h,   n16x16_h,   \\coeff\n.endm\n\n.macro compute_y_16x1\n        compute_y_16x1_step vmul, r8x16, CO_RY\n        compute_y_16x1_step vmla, g8x16, CO_GY", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_16.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_16.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_16.S:2", "text": "vrshrn.i32      CO_R,   q13, #7\n        vrshrn.i32      CO_G,   q14, #7\n        vrshrn.i32      CO_B,   q15, #7\n\n        vmov.u8         BIAS_Y, #16\n        vmov.u8         BIAS_U, #128\n.endm\n\n\n.macro compute_y_16x1_step  action, s8x16, coeff\n        vmovl.u8        n16x16_l,   \\s8x16\\()_l\n        vmovl.u8        n16x16_h,   \\s8x16\\()_h\n\n        \\action         y16x16_l,   n16x16_l,   \\coeff\n        \\action         y16x16_h,   n16x16_h,   \\coeff\n.endm\n\n.macro compute_y_16x1\n        compute_y_16x1_step vmul, r8x16, CO_RY\n        compute_y_16x1_step vmla, g8x16, CO_GY\n        compute_y_16x1_step vmla, b8x16, CO_BY\n\n        vrshrn.i16      y8x16_l,    y16x16_l,   #8\n        vrshrn.i16      y8x16_h,    y16x16_h,   #8\n\n        vadd.u8         y8x16,      y8x16,      BIAS_Y\n.endm\n\nalias   c16x8,      q15\nalias_qw    c8x8x2, q10\n\n\n.macro compute_chroma_8x1   c, C\n        vmul            c16x8,  r16x8,  CO_R\\C\n        vmla            c16x8,  g16x8,  CO_G\\C\n        vmla            c16x8,  b16x8,  CO_B\\C\n\n        vrshrn.i16      \\c\\()8x8,   c16x8,      #8\n        vadd.u8         \\c\\()8x8,   \\c\\()8x8,   BIAS_\\C\n.endm\n\n        loop_420sp      rgbx, nv12, init, kernel_420_16x2, 16\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_16.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_16.S", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_16.S:1", "text": "/*\n * Copyright (C) 2013 Xiaolei Yu <dreifachstein@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#if HAVE_AS_DN_DIRECTIVE\n#include \"rgb2yuv_neon_common.S\"\n\n/* downsampled R16G16B16 x8 */\nalias_qw    r16x8,  q7\nalias_qw    g16x8,  q8\nalias_qw    b16x8,  q9\n\nalias   n16x16_l,   q11\nalias   n16x16_h,   q12\n\nalias   y16x16_l,   q13\nalias   y16x16_h,   q14\n\nalias_qw    y8x16,  q15\n\n.macro init     src\n    vld3.i32    {q13_l, q14_l, q15_l},          [\\src]!\n    vld3.i32    {q13_h[0], q14_h[0], q15_h[0]}, [\\src]\n    vrshrn.i32  CO_R,   q13, #7\n    vrshrn.i32  CO_G,   q14, #7\n    vrshrn.i32  CO_B,   q15, #7\n\n    vmov.u8     BIAS_Y, #16\n    vmov.u8     BIAS_U, #128\n.endm\n\n\n.macro compute_y_16x1_step  action, s8x16, coeff\n    vmovl.u8    n16x16_l,   \\s8x16\\()_l\n    vmovl.u8    n16x16_h,   \\s8x16\\()_h\n\n    \\action     y16x16_l,   n16x16_l,   \\coeff\n    \\action     y16x16_h,   n16x16_h,   \\coeff\n.endm\n\n.macro compute_y_16x1\n    compute_y_16x1_step vmul, r8x16, CO_RY\n    compute_y_16x1_step vmla, g8x16, CO_GY", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_16.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_16.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_16.S:2", "text": "vrshrn.i32  CO_R,   q13, #7\n    vrshrn.i32  CO_G,   q14, #7\n    vrshrn.i32  CO_B,   q15, #7\n\n    vmov.u8     BIAS_Y, #16\n    vmov.u8     BIAS_U, #128\n.endm\n\n\n.macro compute_y_16x1_step  action, s8x16, coeff\n    vmovl.u8    n16x16_l,   \\s8x16\\()_l\n    vmovl.u8    n16x16_h,   \\s8x16\\()_h\n\n    \\action     y16x16_l,   n16x16_l,   \\coeff\n    \\action     y16x16_h,   n16x16_h,   \\coeff\n.endm\n\n.macro compute_y_16x1\n    compute_y_16x1_step vmul, r8x16, CO_RY\n    compute_y_16x1_step vmla, g8x16, CO_GY\n    compute_y_16x1_step vmla, b8x16, CO_BY\n\n    vrshrn.i16  y8x16_l,    y16x16_l,   #8\n    vrshrn.i16  y8x16_h,    y16x16_h,   #8\n\n    vadd.u8     y8x16,      y8x16,      BIAS_Y\n.endm\n\nalias   c16x8,      q15\nalias_qw    c8x8x2, q10\n\n\n.macro compute_chroma_8x1   c, C\n    vmul    c16x8,  r16x8,  CO_R\\C\n    vmla    c16x8,  g16x8,  CO_G\\C\n    vmla    c16x8,  b16x8,  CO_B\\C\n\n    vrshrn.i16  \\c\\()8x8,   c16x8,      #8\n    vadd.u8     \\c\\()8x8,   \\c\\()8x8,   BIAS_\\C\n.endm\n\n    loop_420sp  rgbx, nv12, init, kernel_420_16x2, 16\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_16.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_16.S", "line_start": 41, "line_end": 83}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_32.S:1", "text": "/*\n * Copyright (C) 2013 Xiaolei Yu <dreifachstein@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#if HAVE_AS_DN_DIRECTIVE\n#include \"rgb2yuv_neon_common.S\"\n\n/* downsampled R16G16B16 x8 */\nalias_qw    r16x8,  q7\nalias_qw    g16x8,  q8\nalias_qw    b16x8,  q9\n\nalias   n16x16_o,   q11\nalias   n16x16_ol,  q11_l\nalias   n16x16_oh,  q11_h\n\nalias   y32x16_el,  q12\nalias   y32x16_eh,  q13\nalias   y32x16_ol,  q14\nalias   y32x16_oh,  q15\n\nalias   y16x16_e,   q12\nalias   y16x16_el,  q12_l\nalias   y16x16_eh,  q12_h\nalias   y16x16_o,   q13\nalias   y16x16_ol,  q13_l\nalias   y16x16_oh,  q13_h\n\n\nalias   y8x16,  y16x16_e\n\n\n.macro init     src\n        // load s32x3x3, narrow to s16x3x3\n        vld3.i32        {q13_l, q14_l, q15_l},          [\\src]!\n        vld3.i32        {q13_h[0], q14_h[0], q15_h[0]}, [\\src]\n\n        vmovn.i32       CO_R, q13\n        vmovn.i32       CO_G, q14\n        vmovn.i32       CO_B, q15\n\n        vmov.u8         BIAS_Y, #16\n        vmov.u8         BIAS_U, #128", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_32.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_32.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_32.S:2", "text": "alias   y16x16_eh,  q12_h\nalias   y16x16_o,   q13\nalias   y16x16_ol,  q13_l\nalias   y16x16_oh,  q13_h\n\n\nalias   y8x16,  y16x16_e\n\n\n.macro init     src\n        // load s32x3x3, narrow to s16x3x3\n        vld3.i32        {q13_l, q14_l, q15_l},          [\\src]!\n        vld3.i32        {q13_h[0], q14_h[0], q15_h[0]}, [\\src]\n\n        vmovn.i32       CO_R, q13\n        vmovn.i32       CO_G, q14\n        vmovn.i32       CO_B, q15\n\n        vmov.u8         BIAS_Y, #16\n        vmov.u8         BIAS_U, #128\n.endm\n\n\n.macro compute_y_16x1_step  action, s8x16, coeff\n        vmov.u8         n16x16_o,   #0\n        vtrn.u8         \\s8x16,     n16x16_o\n\n        \\action         y32x16_el,  \\s8x16\\()_l,    \\coeff\n        \\action         y32x16_eh,  \\s8x16\\()_h,    \\coeff\n        \\action         y32x16_ol,  n16x16_ol,      \\coeff\n        \\action         y32x16_oh,  n16x16_oh,      \\coeff\n.endm\n\n/*\n * in:      r8x16, g8x16, b8x16\n * out:     y8x16\n * clobber: q11-q15, r8x16, g8x16, b8x16\n */\n.macro compute_y_16x1\n        compute_y_16x1_step vmull, r8x16, CO_RY\n        compute_y_16x1_step vmlal, g8x16, CO_GY\n        compute_y_16x1_step vmlal, b8x16, CO_BY\n\n        vrshrn.i32      y16x16_el,  y32x16_el,  #15\n        vrshrn.i32      y16x16_eh,  y32x16_eh,  #15\n        vrshrn.i32      y16x16_ol,  y32x16_ol,  #15\n        vrshrn.i32      y16x16_oh,  y32x16_oh,  #15\n\n        vtrn.8          y16x16_e,   y16x16_o\n        vadd.u8         y8x16,      y8x16,      BIAS_Y\n.endm\n\nalias   c32x8_l,    q14\nalias   c32x8_h,    q15\n\nalias_qw    c16x8,  q13\nalias_qw    c8x8x2, q10\n\n.macro compute_chroma_8x1_step  action, s16x8, coeff\n        \\action         c32x8_l,    \\s16x8\\()_l,    \\coeff", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_32.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_32.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_32.S:3", "text": "compute_y_16x1_step vmlal, g8x16, CO_GY\n        compute_y_16x1_step vmlal, b8x16, CO_BY\n\n        vrshrn.i32      y16x16_el,  y32x16_el,  #15\n        vrshrn.i32      y16x16_eh,  y32x16_eh,  #15\n        vrshrn.i32      y16x16_ol,  y32x16_ol,  #15\n        vrshrn.i32      y16x16_oh,  y32x16_oh,  #15\n\n        vtrn.8          y16x16_e,   y16x16_o\n        vadd.u8         y8x16,      y8x16,      BIAS_Y\n.endm\n\nalias   c32x8_l,    q14\nalias   c32x8_h,    q15\n\nalias_qw    c16x8,  q13\nalias_qw    c8x8x2, q10\n\n.macro compute_chroma_8x1_step  action, s16x8, coeff\n        \\action         c32x8_l,    \\s16x8\\()_l,    \\coeff\n        \\action         c32x8_h,    \\s16x8\\()_h,    \\coeff\n.endm\n\n/*\n * in:      r16x8, g16x8, b16x8\n * out:     c8x8\n * clobber: q14-q15\n */\n.macro compute_chroma_8x1   c, C\n        compute_chroma_8x1_step vmull, r16x8, CO_R\\C\n        compute_chroma_8x1_step vmlal, g16x8, CO_G\\C\n        compute_chroma_8x1_step vmlal, b16x8, CO_B\\C\n\n        vrshrn.i32      c16x8_l,    c32x8_l,    #15\n        vrshrn.i32      c16x8_h,    c32x8_h,    #15\n        vmovn.i16       \\c\\()8x8,   c16x8\n        vadd.u8         \\c\\()8x8,   \\c\\()8x8,   BIAS_\\C\n.endm\n\n\nloop_420sp rgbx, nv12, init, kernel_420_16x2, 32\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_32.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_32.S", "line_start": 81, "line_end": 122}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_32.S:1", "text": "/*\n * Copyright (C) 2013 Xiaolei Yu <dreifachstein@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"config.h\"\n#if HAVE_AS_DN_DIRECTIVE\n#include \"rgb2yuv_neon_common.S\"\n\n/* downsampled R16G16B16 x8 */\nalias_qw    r16x8,  q7\nalias_qw    g16x8,  q8\nalias_qw    b16x8,  q9\n\nalias   n16x16_o,   q11\nalias   n16x16_ol,  q11_l\nalias   n16x16_oh,  q11_h\n\nalias   y32x16_el,  q12\nalias   y32x16_eh,  q13\nalias   y32x16_ol,  q14\nalias   y32x16_oh,  q15\n\nalias   y16x16_e,   q12\nalias   y16x16_el,  q12_l\nalias   y16x16_eh,  q12_h\nalias   y16x16_o,   q13\nalias   y16x16_ol,  q13_l\nalias   y16x16_oh,  q13_h\n\n\nalias   y8x16,  y16x16_e\n\n\n.macro init     src\n    // load s32x3x3, narrow to s16x3x3\n    vld3.i32    {q13_l, q14_l, q15_l},          [\\src]!\n    vld3.i32    {q13_h[0], q14_h[0], q15_h[0]}, [\\src]\n\n    vmovn.i32   CO_R, q13\n    vmovn.i32   CO_G, q14\n    vmovn.i32   CO_B, q15\n\n    vmov.u8     BIAS_Y, #16\n    vmov.u8     BIAS_U, #128", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_32.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_32.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_32.S:2", "text": "alias   y16x16_eh,  q12_h\nalias   y16x16_o,   q13\nalias   y16x16_ol,  q13_l\nalias   y16x16_oh,  q13_h\n\n\nalias   y8x16,  y16x16_e\n\n\n.macro init     src\n    // load s32x3x3, narrow to s16x3x3\n    vld3.i32    {q13_l, q14_l, q15_l},          [\\src]!\n    vld3.i32    {q13_h[0], q14_h[0], q15_h[0]}, [\\src]\n\n    vmovn.i32   CO_R, q13\n    vmovn.i32   CO_G, q14\n    vmovn.i32   CO_B, q15\n\n    vmov.u8     BIAS_Y, #16\n    vmov.u8     BIAS_U, #128\n.endm\n\n\n.macro compute_y_16x1_step  action, s8x16, coeff\n    vmov.u8     n16x16_o,   #0\n    vtrn.u8     \\s8x16,     n16x16_o\n\n    \\action     y32x16_el,  \\s8x16\\()_l,    \\coeff\n    \\action     y32x16_eh,  \\s8x16\\()_h,    \\coeff\n    \\action     y32x16_ol,  n16x16_ol,      \\coeff\n    \\action     y32x16_oh,  n16x16_oh,      \\coeff\n.endm\n\n/*\n * in:      r8x16, g8x16, b8x16\n * out:     y8x16\n * clobber: q11-q15, r8x16, g8x16, b8x16\n */\n.macro compute_y_16x1\n    compute_y_16x1_step vmull, r8x16, CO_RY\n    compute_y_16x1_step vmlal, g8x16, CO_GY\n    compute_y_16x1_step vmlal, b8x16, CO_BY\n\n    vrshrn.i32  y16x16_el,  y32x16_el,  #15\n    vrshrn.i32  y16x16_eh,  y32x16_eh,  #15\n    vrshrn.i32  y16x16_ol,  y32x16_ol,  #15\n    vrshrn.i32  y16x16_oh,  y32x16_oh,  #15\n\n    vtrn.8      y16x16_e,   y16x16_o\n    vadd.u8     y8x16,      y8x16,      BIAS_Y\n.endm\n\nalias   c32x8_l,    q14\nalias   c32x8_h,    q15\n\nalias_qw    c16x8,  q13\nalias_qw    c8x8x2, q10\n\n.macro compute_chroma_8x1_step  action, s16x8, coeff\n    \\action     c32x8_l,    \\s16x8\\()_l,    \\coeff", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_32.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_32.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_32.S:3", "text": "compute_y_16x1_step vmlal, g8x16, CO_GY\n    compute_y_16x1_step vmlal, b8x16, CO_BY\n\n    vrshrn.i32  y16x16_el,  y32x16_el,  #15\n    vrshrn.i32  y16x16_eh,  y32x16_eh,  #15\n    vrshrn.i32  y16x16_ol,  y32x16_ol,  #15\n    vrshrn.i32  y16x16_oh,  y32x16_oh,  #15\n\n    vtrn.8      y16x16_e,   y16x16_o\n    vadd.u8     y8x16,      y8x16,      BIAS_Y\n.endm\n\nalias   c32x8_l,    q14\nalias   c32x8_h,    q15\n\nalias_qw    c16x8,  q13\nalias_qw    c8x8x2, q10\n\n.macro compute_chroma_8x1_step  action, s16x8, coeff\n    \\action     c32x8_l,    \\s16x8\\()_l,    \\coeff\n    \\action     c32x8_h,    \\s16x8\\()_h,    \\coeff\n.endm\n\n/*\n * in:      r16x8, g16x8, b16x8\n * out:     c8x8\n * clobber: q14-q15\n */\n.macro compute_chroma_8x1   c, C\n    compute_chroma_8x1_step vmull, r16x8, CO_R\\C\n    compute_chroma_8x1_step vmlal, g16x8, CO_G\\C\n    compute_chroma_8x1_step vmlal, b16x8, CO_B\\C\n\n    vrshrn.i32  c16x8_l,    c32x8_l,    #15\n    vrshrn.i32  c16x8_h,    c32x8_h,    #15\n    vmovn.i16   \\c\\()8x8,   c16x8\n    vadd.u8     \\c\\()8x8,   \\c\\()8x8,   BIAS_\\C\n.endm\n\n\n    loop_420sp  rgbx, nv12, init, kernel_420_16x2, 32\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_32.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_32.S", "line_start": 81, "line_end": 122}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:1", "text": "/*\n * Copyright (C) 2013 Xiaolei Yu <dreifachstein@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro alias name, tgt, set=1\n.if \\set != 0\n    \\name   .req    \\tgt\n.else\n    .unreq  \\name\n.endif\n.endm\n\n.altmacro\n\n.macro alias_dw_all qw, dw_l, dw_h\n        alias           q\\qw\\()_l, d\\dw_l\n        alias           q\\qw\\()_h, d\\dw_h\n    .if \\qw < 15\n        alias_dw_all    %(\\qw + 1), %(\\dw_l + 2), %(\\dw_h + 2)\n    .endif\n.endm\n\nalias_dw_all    0, 0, 1\n\n.noaltmacro\n\n.macro alias_qw     name, qw, set=1\n        alias           \\name\\(), \\qw, \\set\n        alias           \\name\\()_l, \\qw\\()_l, \\set\n        alias           \\name\\()_h, \\qw\\()_h, \\set\n.endm\n\n.macro prologue\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n.endm\n\n.macro epilogue\n        vpop            {q4-q7}\n        pop             {r4-r12, pc}\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:2", "text": "alias_dw_all    0, 0, 1\n\n.noaltmacro\n\n.macro alias_qw     name, qw, set=1\n        alias           \\name\\(), \\qw, \\set\n        alias           \\name\\()_l, \\qw\\()_l, \\set\n        alias           \\name\\()_h, \\qw\\()_h, \\set\n.endm\n\n.macro prologue\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n.endm\n\n.macro epilogue\n        vpop            {q4-q7}\n        pop             {r4-r12, pc}\n.endm\n\n.macro  load_arg    reg, ix\n        ldr             \\reg,   [sp, #((10 * 4 + 4 * 16) + (\\ix - 4) * 4)]\n.endm\n\n\n/* ()_to_()_neon(const uint8_t *src, uint8_t *y, uint8_t *chroma\n *                  int width, int height,\n *                  int y_stride, int c_stride, int src_stride,\n *                  int32_t coeff_table[9]);\n */\n.macro  alias_loop_420sp set=1\n        alias           src,        r0, \\set\n        alias           src0,       src, \\set\n        alias           y,          r1, \\set\n        alias           y0,         y, \\set\n        alias           chroma,     r2, \\set\n        alias           width,      r3, \\set\n        alias           header,     width, \\set\n\n        alias           height,     r4, \\set\n        alias           y_stride,   r5, \\set\n        alias           c_stride,   r6, \\set\n        alias           c_padding,  c_stride, \\set\n        alias           src_stride, r7, \\set\n\n        alias           y0_end,     r8, \\set\n\n        alias           src_padding,r9, \\set\n        alias           y_padding,  r10, \\set\n\n        alias           src1,       r11, \\set\n        alias           y1,         r12, \\set\n\n        alias           coeff_table,r12, \\set\n.endm\n\n\n.macro  loop_420sp s_fmt, d_fmt, init, kernel, precision\n\nfunction \\s_fmt\\()_to_\\d_fmt\\()_neon_\\precision, export=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:3", "text": "alias           y_stride,   r5, \\set\n        alias           c_stride,   r6, \\set\n        alias           c_padding,  c_stride, \\set\n        alias           src_stride, r7, \\set\n\n        alias           y0_end,     r8, \\set\n\n        alias           src_padding,r9, \\set\n        alias           y_padding,  r10, \\set\n\n        alias           src1,       r11, \\set\n        alias           y1,         r12, \\set\n\n        alias           coeff_table,r12, \\set\n.endm\n\n\n.macro  loop_420sp s_fmt, d_fmt, init, kernel, precision\n\nfunction \\s_fmt\\()_to_\\d_fmt\\()_neon_\\precision, export=1\n        prologue\n\n        alias_loop_420sp\n\n        load_arg        height,         4\n        load_arg        y_stride,       5\n        load_arg        c_stride,       6\n        load_arg        src_stride,     7\n        load_arg        coeff_table,    8\n\n        \\init           coeff_table\n\n        sub             y_padding,      y_stride,       width\n        sub             c_padding,      c_stride,       width\n        sub             src_padding,    src_stride,     width, lsl #2\n\n        add             y0_end,         y0,             width\n        and             header,         width,          #15\n\n        add             y1,             y0,             y_stride\n        add             src1,           src0,           src_stride\n\n0:\n        cmp             header,     #0\n        beq             1f\n\n        \\kernel         \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma, header\n\n1:\n        \\kernel         \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma\n\n        cmp             y0,         y0_end\n        blt             1b\n2:\n        add             y0,         y1,         y_padding\n        add             y0_end,     y1,         y_stride\n        add             chroma,     chroma,     c_padding\n        add             src0,       src1,       src_padding\n\n        add             y1,         y0,         y_stride", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:4", "text": "add             src1,           src0,           src_stride\n\n0:\n        cmp             header,     #0\n        beq             1f\n\n        \\kernel         \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma, header\n\n1:\n        \\kernel         \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma\n\n        cmp             y0,         y0_end\n        blt             1b\n2:\n        add             y0,         y1,         y_padding\n        add             y0_end,     y1,         y_stride\n        add             chroma,     chroma,     c_padding\n        add             src0,       src1,       src_padding\n\n        add             y1,         y0,         y_stride\n        add             src1,       src0,       src_stride\n\n        subs            height,     height,     #2\n\n        bgt             0b\n\n        epilogue\n\n        alias_loop_420sp 0\n\nendfunc\n.endm\n\n.macro downsample\n        vpaddl.u8       r16x8,  r8x16\n        vpaddl.u8       g16x8,  g8x16\n        vpaddl.u8       b16x8,  b8x16\n.endm\n\n\n/* accumulate and right shift by 2 */\n.macro downsample_ars2\n        vpadal.u8       r16x8,  r8x16\n        vpadal.u8       g16x8,  g8x16\n        vpadal.u8       b16x8,  b8x16\n\n        vrshr.u16       r16x8,  r16x8,  #2\n        vrshr.u16       g16x8,  g16x8,  #2\n        vrshr.u16       b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n        vstmia          \\dst!,  {y8x16}\n.else\n        vstmia          \\dst,   {y8x16}\n        add             \\dst,   \\dst,           \\count\n.endif\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:5", "text": "/* accumulate and right shift by 2 */\n.macro downsample_ars2\n        vpadal.u8       r16x8,  r8x16\n        vpadal.u8       g16x8,  g8x16\n        vpadal.u8       b16x8,  b8x16\n\n        vrshr.u16       r16x8,  r16x8,  #2\n        vrshr.u16       g16x8,  g16x8,  #2\n        vrshr.u16       b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n        vstmia          \\dst!,  {y8x16}\n.else\n        vstmia          \\dst,   {y8x16}\n        add             \\dst,   \\dst,           \\count\n.endif\n.endm\n\n.macro store_chroma_nv12_8x1    dst, count\n.ifc \"\\count\",\"\"\n        vst2.i8         {u8x8, v8x8},   [\\dst]!\n.else\n        vst2.i8         {u8x8, v8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro store_chroma_nv21_8x1    dst, count\n.ifc \"\\count\",\"\"\n        vst2.i8         {v8x8, u8x8},   [\\dst]!\n.else\n        vst2.i8         {v8x8, u8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro load_8888_16x1   a, b, c, d, src, count\n.ifc \"\\count\",\"\"\n        vld4.8          {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n        vld4.8          {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]!\n.else\n        vld4.8          {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n        vld4.8          {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n        sub             \\src,   \\src,   #32\n        add             \\src,   \\src,   \\count, lsl #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n        load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n        load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n        alias_src_8888  r, g, b, x, \\set\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:6", "text": ".else\n        vld4.8          {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n        vld4.8          {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n        sub             \\src,   \\src,   #32\n        add             \\src,   \\src,   \\count, lsl #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n        load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n        load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n        alias_src_8888  r, g, b, x, \\set\n.endm\n\n.macro alias_src_bgrx   set=1\n        alias_src_8888  b, g, r, x, \\set\n.endm\n\n.macro alias_dst_nv12   set=1\n        alias           u8x8, c8x8x2_l, \\set\n        alias           v8x8, c8x8x2_h, \\set\n.endm\n\n.macro alias_dst_nv21   set=1\n        alias           v8x8, c8x8x2_l, \\set\n        alias           u8x8, c8x8x2_h, \\set\n.endm\n\n\n// common aliases\n\nalias   CO_R    d0\nCO_RY   .dn     d0.s16[0]\nCO_RU   .dn     d0.s16[1]\nCO_RV   .dn     d0.s16[2]\n\nalias   CO_G    d1\nCO_GY   .dn     d1.s16[0]\nCO_GU   .dn     d1.s16[1]\nCO_GV   .dn     d1.s16[2]\n\nalias   CO_B    d2\nCO_BY   .dn     d2.s16[0]\nCO_BU   .dn     d2.s16[1]\nCO_BV   .dn     d2.s16[2]\n\nalias   BIAS_U, d3\nalias   BIAS_V, BIAS_U\n\nalias   BIAS_Y, q2\n\n\n/* q3-q6 R8G8B8X8 x16 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:7", "text": "CO_RV   .dn     d0.s16[2]\n\nalias   CO_G    d1\nCO_GY   .dn     d1.s16[0]\nCO_GU   .dn     d1.s16[1]\nCO_GV   .dn     d1.s16[2]\n\nalias   CO_B    d2\nCO_BY   .dn     d2.s16[0]\nCO_BU   .dn     d2.s16[1]\nCO_BV   .dn     d2.s16[2]\n\nalias   BIAS_U, d3\nalias   BIAS_V, BIAS_U\n\nalias   BIAS_Y, q2\n\n\n/* q3-q6 R8G8B8X8 x16 */\n\n.macro alias_src_8888   a, b, c, d, set\n        alias_qw        \\a\\()8x16, q3, \\set\n        alias_qw        \\b\\()8x16, q4, \\set\n        alias_qw        \\c\\()8x16, q5, \\set\n        alias_qw        \\d\\()8x16, q6, \\set\n.endm\n\n.macro kernel_420_16x2  rgb_fmt, yuv_fmt, rgb0, rgb1, y0, y1, chroma, count\n        alias_src_\\rgb_fmt\n        alias_dst_\\yuv_fmt\n\n        load_\\rgb_fmt\\()_16x1 \\rgb0, \\count\n\n        downsample\n        compute_y_16x1\n        store_y8_16x1   \\y0, \\count\n\n\n        load_\\rgb_fmt\\()_16x1 \\rgb1, \\count\n        downsample_ars2\n        compute_y_16x1\n        store_y8_16x1   \\y1, \\count\n\n        compute_chroma_8x1 u, U\n        compute_chroma_8x1 v, V\n\n        store_chroma_\\yuv_fmt\\()_8x1 \\chroma, \\count\n\n        alias_dst_\\yuv_fmt 0\n        alias_src_\\rgb_fmt 0\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 241, "line_end": 291}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:8", "text": "compute_y_16x1\n        store_y8_16x1   \\y1, \\count\n\n        compute_chroma_8x1 u, U\n        compute_chroma_8x1 v, V\n\n        store_chroma_\\yuv_fmt\\()_8x1 \\chroma, \\count\n\n        alias_dst_\\yuv_fmt 0\n        alias_src_\\rgb_fmt 0\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 281, "line_end": 291}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:1", "text": "/*\n * Copyright (C) 2013 Xiaolei Yu <dreifachstein@gmail.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n.macro alias name, tgt, set=1\n.if \\set != 0\n    \\name   .req    \\tgt\n.else\n    .unreq  \\name\n.endif\n.endm\n\n.altmacro\n\n.macro alias_dw_all qw, dw_l, dw_h\n    alias   q\\qw\\()_l, d\\dw_l\n    alias   q\\qw\\()_h, d\\dw_h\n    .if \\qw < 15\n        alias_dw_all  %(\\qw + 1), %(\\dw_l + 2), %(\\dw_h + 2)\n    .endif\n.endm\n\nalias_dw_all    0, 0, 1\n\n.noaltmacro\n\n.macro alias_qw     name, qw, set=1\n    alias   \\name\\(), \\qw, \\set\n    alias   \\name\\()_l, \\qw\\()_l, \\set\n    alias   \\name\\()_h, \\qw\\()_h, \\set\n.endm\n\n.macro prologue\n    push            {r4-r12, lr}\n    vpush           {q4-q7}\n.endm\n\n.macro epilogue\n    vpop            {q4-q7}\n    pop             {r4-r12, pc}\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:2", "text": "alias_dw_all    0, 0, 1\n\n.noaltmacro\n\n.macro alias_qw     name, qw, set=1\n    alias   \\name\\(), \\qw, \\set\n    alias   \\name\\()_l, \\qw\\()_l, \\set\n    alias   \\name\\()_h, \\qw\\()_h, \\set\n.endm\n\n.macro prologue\n    push            {r4-r12, lr}\n    vpush           {q4-q7}\n.endm\n\n.macro epilogue\n    vpop            {q4-q7}\n    pop             {r4-r12, pc}\n.endm\n\n.macro  load_arg    reg, ix\n    ldr     \\reg,   [sp, #((10 * 4 + 4 * 16) + (\\ix - 4) * 4)]\n.endm\n\n\n/* ()_to_()_neon(const uint8_t *src, uint8_t *y, uint8_t *chroma\n *                  int width, int height,\n *                  int y_stride, int c_stride, int src_stride,\n *                  int32_t coeff_table[9]);\n */\n.macro  alias_loop_420sp set=1\n    alias   src,        r0, \\set\n    alias   src0,       src, \\set\n    alias   y,          r1, \\set\n    alias   y0,         y, \\set\n    alias   chroma,     r2, \\set\n    alias   width,      r3, \\set\n    alias   header,     width, \\set\n\n    alias   height,     r4, \\set\n    alias   y_stride,   r5, \\set\n    alias   c_stride,   r6, \\set\n    alias   c_padding,  c_stride, \\set\n    alias   src_stride, r7, \\set\n\n    alias   y0_end,     r8, \\set\n\n    alias   src_padding,r9, \\set\n    alias   y_padding,  r10, \\set\n\n    alias   src1,       r11, \\set\n    alias   y1,         r12, \\set\n\n    alias   coeff_table,r12, \\set\n.endm\n\n\n.macro  loop_420sp s_fmt, d_fmt, init, kernel, precision\n\nfunction \\s_fmt\\()_to_\\d_fmt\\()_neon_\\precision, export=1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:3", "text": "alias   y_stride,   r5, \\set\n    alias   c_stride,   r6, \\set\n    alias   c_padding,  c_stride, \\set\n    alias   src_stride, r7, \\set\n\n    alias   y0_end,     r8, \\set\n\n    alias   src_padding,r9, \\set\n    alias   y_padding,  r10, \\set\n\n    alias   src1,       r11, \\set\n    alias   y1,         r12, \\set\n\n    alias   coeff_table,r12, \\set\n.endm\n\n\n.macro  loop_420sp s_fmt, d_fmt, init, kernel, precision\n\nfunction \\s_fmt\\()_to_\\d_fmt\\()_neon_\\precision, export=1\n    prologue\n\n    alias_loop_420sp\n\n    load_arg    height,         4\n    load_arg    y_stride,       5\n    load_arg    c_stride,       6\n    load_arg    src_stride,     7\n    load_arg    coeff_table,    8\n\n    \\init       coeff_table\n\n    sub         y_padding,      y_stride,       width\n    sub         c_padding,      c_stride,       width\n    sub         src_padding,    src_stride,     width, lsl #2\n\n    add         y0_end,         y0,             width\n    and         header,         width,          #15\n\n    add         y1,             y0,             y_stride\n    add         src1,           src0,           src_stride\n\n0:\n    cmp         header,     #0\n    beq         1f\n\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma, header\n\n1:\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma\n\n    cmp         y0,         y0_end\n    blt         1b\n2:\n    add         y0,         y1,         y_padding\n    add         y0_end,     y1,         y_stride\n    add         chroma,     chroma,     c_padding\n    add         src0,       src1,       src_padding\n\n    add         y1,         y0,         y_stride", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:4", "text": "add         src1,           src0,           src_stride\n\n0:\n    cmp         header,     #0\n    beq         1f\n\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma, header\n\n1:\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma\n\n    cmp         y0,         y0_end\n    blt         1b\n2:\n    add         y0,         y1,         y_padding\n    add         y0_end,     y1,         y_stride\n    add         chroma,     chroma,     c_padding\n    add         src0,       src1,       src_padding\n\n    add         y1,         y0,         y_stride\n    add         src1,       src0,       src_stride\n\n    subs        height,     height,     #2\n\n    bgt         0b\n\n    epilogue\n\n    alias_loop_420sp 0\n\nendfunc\n.endm\n\n.macro downsample\n    vpaddl.u8   r16x8,  r8x16\n    vpaddl.u8   g16x8,  g8x16\n    vpaddl.u8   b16x8,  b8x16\n.endm\n\n\n/* accumulate and right shift by 2 */\n.macro downsample_ars2\n    vpadal.u8   r16x8,  r8x16\n    vpadal.u8   g16x8,  g8x16\n    vpadal.u8   b16x8,  b8x16\n\n    vrshr.u16   r16x8,  r16x8,  #2\n    vrshr.u16   g16x8,  g16x8,  #2\n    vrshr.u16   b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n    vstmia      \\dst!,  {y8x16}\n.else\n    vstmia      \\dst,   {y8x16}\n    add         \\dst,   \\dst,           \\count\n.endif\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:5", "text": "/* accumulate and right shift by 2 */\n.macro downsample_ars2\n    vpadal.u8   r16x8,  r8x16\n    vpadal.u8   g16x8,  g8x16\n    vpadal.u8   b16x8,  b8x16\n\n    vrshr.u16   r16x8,  r16x8,  #2\n    vrshr.u16   g16x8,  g16x8,  #2\n    vrshr.u16   b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n    vstmia      \\dst!,  {y8x16}\n.else\n    vstmia      \\dst,   {y8x16}\n    add         \\dst,   \\dst,           \\count\n.endif\n.endm\n\n.macro store_chroma_nv12_8x1    dst, count\n.ifc \"\\count\",\"\"\n    vst2.i8     {u8x8, v8x8},   [\\dst]!\n.else\n    vst2.i8     {u8x8, v8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro store_chroma_nv21_8x1    dst, count\n.ifc \"\\count\",\"\"\n    vst2.i8     {v8x8, u8x8},   [\\dst]!\n.else\n    vst2.i8     {v8x8, u8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro load_8888_16x1   a, b, c, d, src, count\n.ifc \"\\count\",\"\"\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]!\n.else\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n    sub         \\src,   \\src,   #32\n    add         \\src,   \\src,   \\count, lsl #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n    load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n    load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n    alias_src_8888  r, g, b, x, \\set\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:6", "text": ".else\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n    sub         \\src,   \\src,   #32\n    add         \\src,   \\src,   \\count, lsl #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n    load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n    load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n    alias_src_8888  r, g, b, x, \\set\n.endm\n\n.macro alias_src_bgrx   set=1\n    alias_src_8888  b, g, r, x, \\set\n.endm\n\n.macro alias_dst_nv12   set=1\n    alias   u8x8, c8x8x2_l, \\set\n    alias   v8x8, c8x8x2_h, \\set\n.endm\n\n.macro alias_dst_nv21   set=1\n    alias   v8x8, c8x8x2_l, \\set\n    alias   u8x8, c8x8x2_h, \\set\n.endm\n\n\n// common aliases\n\nalias   CO_R    d0\nCO_RY   .dn     d0.s16[0]\nCO_RU   .dn     d0.s16[1]\nCO_RV   .dn     d0.s16[2]\n\nalias   CO_G    d1\nCO_GY   .dn     d1.s16[0]\nCO_GU   .dn     d1.s16[1]\nCO_GV   .dn     d1.s16[2]\n\nalias   CO_B    d2\nCO_BY   .dn     d2.s16[0]\nCO_BU   .dn     d2.s16[1]\nCO_BV   .dn     d2.s16[2]\n\nalias   BIAS_U, d3\nalias   BIAS_V, BIAS_U\n\nalias   BIAS_Y, q2\n\n\n/* q3-q6 R8G8B8X8 x16 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:7", "text": "CO_RV   .dn     d0.s16[2]\n\nalias   CO_G    d1\nCO_GY   .dn     d1.s16[0]\nCO_GU   .dn     d1.s16[1]\nCO_GV   .dn     d1.s16[2]\n\nalias   CO_B    d2\nCO_BY   .dn     d2.s16[0]\nCO_BU   .dn     d2.s16[1]\nCO_BV   .dn     d2.s16[2]\n\nalias   BIAS_U, d3\nalias   BIAS_V, BIAS_U\n\nalias   BIAS_Y, q2\n\n\n/* q3-q6 R8G8B8X8 x16 */\n\n.macro alias_src_8888   a, b, c, d, set\n    alias_qw  \\a\\()8x16, q3, \\set\n    alias_qw  \\b\\()8x16, q4, \\set\n    alias_qw  \\c\\()8x16, q5, \\set\n    alias_qw  \\d\\()8x16, q6, \\set\n.endm\n\n.macro kernel_420_16x2  rgb_fmt, yuv_fmt, rgb0, rgb1, y0, y1, chroma, count\n    alias_src_\\rgb_fmt\n    alias_dst_\\yuv_fmt\n\n    load_\\rgb_fmt\\()_16x1   \\rgb0, \\count\n\n    downsample\n    compute_y_16x1\n    store_y8_16x1   \\y0, \\count\n\n\n    load_\\rgb_fmt\\()_16x1   \\rgb1, \\count\n    downsample_ars2\n    compute_y_16x1\n    store_y8_16x1   \\y1, \\count\n\n    compute_chroma_8x1  u, U\n    compute_chroma_8x1  v, V\n\n    store_chroma_\\yuv_fmt\\()_8x1 \\chroma, \\count\n\n    alias_dst_\\yuv_fmt 0\n    alias_src_\\rgb_fmt 0\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 241, "line_end": 291}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:8", "text": "compute_y_16x1\n    store_y8_16x1   \\y1, \\count\n\n    compute_chroma_8x1  u, U\n    compute_chroma_8x1  v, V\n\n    store_chroma_\\yuv_fmt\\()_8x1 \\chroma, \\count\n\n    alias_dst_\\yuv_fmt 0\n    alias_src_\\rgb_fmt 0\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "946e80fde76650ddd42a17a3cac48f3a288ff3a0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/946e80fde76650ddd42a17a3cac48f3a288ff3a0/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 281, "line_end": 291}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:3", "text": "alias   y_stride,   r5, \\set\n    alias   c_stride,   r6, \\set\n    alias   c_padding,  c_stride, \\set\n    alias   src_stride, r7, \\set\n\n    alias   y0_end,     r8, \\set\n\n    alias   src_padding,r9, \\set\n    alias   y_padding,  r10, \\set\n\n    alias   src1,       r11, \\set\n    alias   y1,         r12, \\set\n\n    alias   coeff_table,r12, \\set\n.endm\n\n\n.macro  loop_420sp s_fmt, d_fmt, init, kernel, precision\n\nfunction \\s_fmt\\()_to_\\d_fmt\\()_neon_\\precision, export=1\n    prologue\n\n    alias_loop_420sp\n\n    load_arg    height,         4\n    load_arg    y_stride,       5\n    load_arg    c_stride,       6\n    load_arg    src_stride,     7\n    load_arg    coeff_table,    8\n\n    \\init       coeff_table\n\n    sub         y_padding,      y_stride,       width\n    sub         c_padding,      c_stride,       width\n    sub         src_padding,    src_stride,     width, LSL #2\n\n    add         y0_end,         y0,             width\n    and         header,         width,          #15\n\n    add         y1,             y0,             y_stride\n    add         src1,           src0,           src_stride\n\n0:\n    cmp         header,     #0\n    beq         1f\n\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma, header\n\n1:\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma\n\n    cmp         y0,         y0_end\n    blt         1b\n2:\n    add         y0,         y1,         y_padding\n    add         y0_end,     y1,         y_stride\n    add         chroma,     chroma,     c_padding\n    add         src0,       src1,       src_padding\n\n    add         y1,         y0,         y_stride", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:5", "text": "/* accumulate and right shift by 2 */\n.macro downsample_ars2\n    vpadal.u8   r16x8,  r8x16\n    vpadal.u8   g16x8,  g8x16\n    vpadal.u8   b16x8,  b8x16\n\n    vrshr.u16   r16x8,  r16x8,  #2\n    vrshr.u16   g16x8,  g16x8,  #2\n    vrshr.u16   b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n    vstmia      \\dst!,  {y8x16}\n.else\n    vstmia      \\dst,   {y8x16}\n    add         \\dst,   \\dst,           \\count\n.endif\n.endm\n\n.macro store_chroma_nv12_8x1    dst, count\n.ifc \"\\count\",\"\"\n    vst2.i8     {u8x8, v8x8},   [\\dst]!\n.else\n    vst2.i8     {u8x8, v8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro store_chroma_nv21_8x1    dst, count\n.ifc \"\\count\",\"\"\n    vst2.i8     {v8x8, u8x8},   [\\dst]!\n.else\n    vst2.i8     {v8x8, u8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro load_8888_16x1   a, b, c, d, src, count\n.ifc \"\\count\",\"\"\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]!\n.else\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n    sub         \\src,   \\src,   #32\n    add         \\src,   \\src,   \\count, LSL #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n    load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n    load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n    alias_src_8888  r, g, b, x, \\set\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:6", "text": ".else\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n    sub         \\src,   \\src,   #32\n    add         \\src,   \\src,   \\count, LSL #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n    load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n    load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n    alias_src_8888  r, g, b, x, \\set\n.endm\n\n.macro alias_src_bgrx   set=1\n    alias_src_8888  b, g, r, x, \\set\n.endm\n\n.macro alias_dst_nv12   set=1\n    alias   u8x8, c8x8x2_l, \\set\n    alias   v8x8, c8x8x2_h, \\set\n.endm\n\n.macro alias_dst_nv21   set=1\n    alias   v8x8, c8x8x2_l, \\set\n    alias   u8x8, c8x8x2_h, \\set\n.endm\n\n\n// common aliases\n\nalias   CO_R    d0\nCO_RY   .dn     d0.s16[0]\nCO_RU   .dn     d0.s16[1]\nCO_RV   .dn     d0.s16[2]\n\nalias   CO_G    d1\nCO_GY   .dn     d1.s16[0]\nCO_GU   .dn     d1.s16[1]\nCO_GV   .dn     d1.s16[2]\n\nalias   CO_B    d2\nCO_BY   .dn     d2.s16[0]\nCO_BU   .dn     d2.s16[1]\nCO_BV   .dn     d2.s16[2]\n\nalias   BIAS_U, d3\nalias   BIAS_V, BIAS_U\n\nalias   BIAS_Y, q2\n\n\n/* q3-q6 R8G8B8X8 x16 */", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:4", "text": "add         src1,           src0,           src_stride\n\n0:\n    cmp         header,     #0\n    beq         1f\n\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma, header\n\n1:\n    \\kernel     \\s_fmt, \\d_fmt, src0, src1, y0, y1, chroma\n\n    cmp         y0,         y0_end\n    blt         1b\n2:\n    add         y0,         y1,         y_padding\n    add         y0_end,     y1,         y_stride\n    add         chroma,     chroma,     c_padding\n    add         src0,       src1,       src_padding\n\n    add         y1,         y0,         y_stride\n    add         src1,       src0,       src_stride\n\n    subs        height,     height,     #2\n\n    bgt         0b\n\n    epilogue\n\n    alias_loop_420sp 0\n\nendfunc\n.endm\n\n.macro downsample\n    vpaddl.u8   r16x8,  r8x16\n    vpaddl.u8   g16x8,  g8x16\n    vpaddl.u8   b16x8,  b8x16\n.endm\n\n\n/* acculumate and right shift by 2 */\n.macro downsample_ars2\n    vpadal.u8   r16x8,  r8x16\n    vpadal.u8   g16x8,  g8x16\n    vpadal.u8   b16x8,  b8x16\n\n    vrshr.u16   r16x8,  r16x8,  #2\n    vrshr.u16   g16x8,  g16x8,  #2\n    vrshr.u16   b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n    vstmia      \\dst!,  {y8x16}\n.else\n    vstmia      \\dst,   {y8x16}\n    add         \\dst,   \\dst,           \\count\n.endif\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/arm/rgb2yuv_neon_common.S:5", "text": "/* acculumate and right shift by 2 */\n.macro downsample_ars2\n    vpadal.u8   r16x8,  r8x16\n    vpadal.u8   g16x8,  g8x16\n    vpadal.u8   b16x8,  b8x16\n\n    vrshr.u16   r16x8,  r16x8,  #2\n    vrshr.u16   g16x8,  g16x8,  #2\n    vrshr.u16   b16x8,  b16x8,  #2\n.endm\n\n.macro store_y8_16x1            dst, count\n.ifc \"\\count\",\"\"\n    vstmia      \\dst!,  {y8x16}\n.else\n    vstmia      \\dst,   {y8x16}\n    add         \\dst,   \\dst,           \\count\n.endif\n.endm\n\n.macro store_chroma_nv12_8x1    dst, count\n.ifc \"\\count\",\"\"\n    vst2.i8     {u8x8, v8x8},   [\\dst]!\n.else\n    vst2.i8     {u8x8, v8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro store_chroma_nv21_8x1    dst, count\n.ifc \"\\count\",\"\"\n    vst2.i8     {v8x8, u8x8},   [\\dst]!\n.else\n    vst2.i8     {v8x8, u8x8},   [\\dst], \\count\n.endif\n.endm\n\n.macro load_8888_16x1   a, b, c, d, src, count\n.ifc \"\\count\",\"\"\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]!\n.else\n    vld4.8      {\\a\\()8x16_l, \\b\\()8x16_l, \\c\\()8x16_l, \\d\\()8x16_l},  [\\src]!\n    vld4.8      {\\a\\()8x16_h, \\b\\()8x16_h, \\c\\()8x16_h, \\d\\()8x16_h},  [\\src]\n    sub         \\src,   \\src,   #32\n    add         \\src,   \\src,   \\count, LSL #2\n.endif\n.endm\n\n.macro load_rgbx_16x1   src, count\n    load_8888_16x1  r, g, b, x, \\src, \\count\n.endm\n\n.macro load_bgrx_16x1   src, count\n    load_8888_16x1  b, g, r, x, \\src, \\count\n.endm\n\n.macro alias_src_rgbx   set=1\n    alias_src_8888  r, g, b, x, \\set\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/rgb2yuv_neon_common.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/rgb2yuv_neon_common.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2015 Matthieu Bouron <matthieu.bouron stupeflix.com>\n * Copyright (c) 2015 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n\n.macro compute_premult\n        vsub.u16        q14,q11                                        @ q14 = U * (1 << 3) - 128 * (1 << 3)\n        vsub.u16        q15,q11                                        @ q15 = V * (1 << 3) - 128 * (1 << 3)\n        vqdmulh.s16     q8, q15, d1[0]                                 @ q8  = V * v2r\n        vqdmulh.s16     q9, q14, d1[1]                                 @ q9  = U * u2g\n        vqdmulh.s16     q5, q15, d1[2]                                 @ q5  = V * v2g\n        vadd.s16        q9, q5                                         @ q9  = U * u2g + V * v2g\n        vqdmulh.s16     q10,q14, d1[3]                                 @ q10 = U * u2b\n.endm\n\n.macro compute_color dst_comp1 dst_comp2 pre\n        vadd.s16        q1, q14, \\pre\n        vadd.s16        q2, q15, \\pre\n        vqrshrun.s16    \\dst_comp1, q1, #1\n        vqrshrun.s16    \\dst_comp2, q2, #1\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        compute_color   \\r1, \\r2, q8\n        compute_color   \\g1, \\g2, q9\n        compute_color   \\b1, \\b2, q10\n        vmov.u8         \\a1, #255\n        vmov.u8         \\a2, #255\n.endm\n\n.macro compute dst ofmt\n        vshll.u8        q14, d14, #3                                   @ q14 = Y * (1 << 3)\n        vshll.u8        q15, d15, #3                                   @ q15 = Y * (1 << 3)\n        vsub.s16        q14, q12                                       @ q14 = (Y - y_offset)\n        vsub.s16        q15, q12                                       @ q15 = (Y - y_offset)\n        vqdmulh.s16     q14, q13                                       @ q14 = (Y - y_offset) * y_coeff\n        vqdmulh.s16     q15, q13                                       @ q15 = (Y - y_offset) * y_coeff\n\n.ifc \\ofmt,argb\n        compute_rgba    d7, d8, d9, d6, d11, d12, d13, d10\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:2", "text": ".macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n        compute_color   \\r1, \\r2, q8\n        compute_color   \\g1, \\g2, q9\n        compute_color   \\b1, \\b2, q10\n        vmov.u8         \\a1, #255\n        vmov.u8         \\a2, #255\n.endm\n\n.macro compute dst ofmt\n        vshll.u8        q14, d14, #3                                   @ q14 = Y * (1 << 3)\n        vshll.u8        q15, d15, #3                                   @ q15 = Y * (1 << 3)\n        vsub.s16        q14, q12                                       @ q14 = (Y - y_offset)\n        vsub.s16        q15, q12                                       @ q15 = (Y - y_offset)\n        vqdmulh.s16     q14, q13                                       @ q14 = (Y - y_offset) * y_coeff\n        vqdmulh.s16     q15, q13                                       @ q15 = (Y - y_offset) * y_coeff\n\n.ifc \\ofmt,argb\n        compute_rgba    d7, d8, d9, d6, d11, d12, d13, d10\n.endif\n\n.ifc \\ofmt,rgba\n        compute_rgba    d6, d7, d8, d9, d10, d11, d12, d13\n.endif\n\n.ifc \\ofmt,abgr\n        compute_rgba    d9, d8, d7, d6, d13, d12, d11, d10\n.endif\n\n.ifc \\ofmt,bgra\n        compute_rgba    d8, d7, d6, d9, d12, d11, d10, d13\n.endif\n\n        vzip.8          d6, d10                                        @ d6 = R1R2R3R4R5R6R7R8 d10 = R9R10R11R12R13R14R15R16\n        vzip.8          d7, d11                                        @ d7 = G1G2G3G4G5G6G7G8 d11 = G9G10G11G12G13G14G15G16\n        vzip.8          d8, d12                                        @ d8 = B1B2B3B4B5B6B7B8 d12 = B9B10B11B12B13B14B15B16\n        vzip.8          d9, d13                                        @ d9 = A1A2A3A4A5A6A7A8 d13 = A9A10A11A12A13A14A15A16\n        vst4.8          {q3, q4}, [\\dst]!\n        vst4.8          {q5, q6}, [\\dst]!\n.endm\n\n.macro process_1l_internal dst src ofmt\n        vld2.8          {d14, d15}, [\\src]!                            @ q7 = Y (interleaved)\n        compute         \\dst, \\ofmt\n.endm\n\n.macro process_1l ofmt\n        compute_premult\n        process_1l_internal r2, r4, \\ofmt\n.endm\n\n.macro process_2l ofmt\n        compute_premult\n        process_1l_internal r2, r4, \\ofmt\n        process_1l_internal r11,r12,\\ofmt\n.endm\n\n.macro load_args_nv12\n        push            {r4-r12, lr}\n        vpush           {q4-q7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:3", "text": ".macro process_1l_internal dst src ofmt\n        vld2.8          {d14, d15}, [\\src]!                            @ q7 = Y (interleaved)\n        compute         \\dst, \\ofmt\n.endm\n\n.macro process_1l ofmt\n        compute_premult\n        process_1l_internal r2, r4, \\ofmt\n.endm\n\n.macro process_2l ofmt\n        compute_premult\n        process_1l_internal r2, r4, \\ofmt\n        process_1l_internal r11,r12,\\ofmt\n.endm\n\n.macro load_args_nv12\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n        ldr             r4, [sp, #104]                                 @ r4  = srcY\n        ldr             r5, [sp, #108]                                 @ r5  = linesizeY\n        ldr             r6, [sp, #112]                                 @ r6  = srcC\n        ldr             r7, [sp, #116]                                 @ r7  = linesizeC\n        ldr             r8, [sp, #120]                                 @ r8  = table\n        ldr             r9, [sp, #124]                                 @ r9  = y_offset\n        ldr             r10,[sp, #128]                                 @ r10 = y_coeff\n        vdup.16         d0, r10                                        @ d0  = y_coeff\n        vld1.16         {d1}, [r8]                                     @ d1  = *table\n        add             r11, r2, r3                                    @ r11 = dst + linesize (dst2)\n        add             r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)\n        lsl             r3, r3, #1\n        lsl             r5, r5, #1\n        sub             r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)\n        sub             r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)\n        sub             r7, r7, r0                                     @ r7 = linesizeC     - width     (paddingC)\n.endm\n\n.macro load_args_nv21\n        load_args_nv12\n.endm\n\n.macro load_args_yuv420p\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n        ldr             r4, [sp, #104]                                 @ r4  = srcY\n        ldr             r5, [sp, #108]                                 @ r5  = linesizeY\n        ldr             r6, [sp, #112]                                 @ r6  = srcU\n        ldr             r8, [sp, #128]                                 @ r8  = table\n        ldr             r9, [sp, #132]                                 @ r9  = y_offset\n        ldr             r10,[sp, #136]                                 @ r10 = y_coeff\n        vdup.16         d0, r10                                        @ d0  = y_coeff\n        vld1.16         {d1}, [r8]                                     @ d1  = *table\n        add             r11, r2, r3                                    @ r11 = dst + linesize (dst2)\n        add             r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)\n        lsl             r3, r3, #1\n        lsl             r5, r5, #1\n        sub             r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)\n        sub             r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)\n        ldr             r10,[sp, #120]                                 @ r10 = srcV", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:4", "text": ".endm\n\n.macro load_args_yuv420p\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n        ldr             r4, [sp, #104]                                 @ r4  = srcY\n        ldr             r5, [sp, #108]                                 @ r5  = linesizeY\n        ldr             r6, [sp, #112]                                 @ r6  = srcU\n        ldr             r8, [sp, #128]                                 @ r8  = table\n        ldr             r9, [sp, #132]                                 @ r9  = y_offset\n        ldr             r10,[sp, #136]                                 @ r10 = y_coeff\n        vdup.16         d0, r10                                        @ d0  = y_coeff\n        vld1.16         {d1}, [r8]                                     @ d1  = *table\n        add             r11, r2, r3                                    @ r11 = dst + linesize (dst2)\n        add             r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)\n        lsl             r3, r3, #1\n        lsl             r5, r5, #1\n        sub             r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)\n        sub             r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)\n        ldr             r10,[sp, #120]                                 @ r10 = srcV\n.endm\n\n.macro load_args_yuv422p\n        push            {r4-r12, lr}\n        vpush           {q4-q7}\n        ldr             r4, [sp, #104]                                 @ r4  = srcY\n        ldr             r5, [sp, #108]                                 @ r5  = linesizeY\n        ldr             r6, [sp, #112]                                 @ r6  = srcU\n        ldr             r7, [sp, #116]                                 @ r7  = linesizeU\n        ldr             r12,[sp, #124]                                 @ r12 = linesizeV\n        ldr             r8, [sp, #128]                                 @ r8  = table\n        ldr             r9, [sp, #132]                                 @ r9  = y_offset\n        ldr             r10,[sp, #136]                                 @ r10 = y_coeff\n        vdup.16         d0, r10                                        @ d0  = y_coeff\n        vld1.16         {d1}, [r8]                                     @ d1  = *table\n        sub             r3, r3, r0, lsl #2                             @ r3  = linesize  - width * 4 (padding)\n        sub             r5, r5, r0                                     @ r5  = linesizeY - width     (paddingY)\n        sub             r7, r7, r0, lsr #1                             @ r7  = linesizeU - width / 2 (paddingU)\n        sub             r12,r12,r0, lsr #1                             @ r12 = linesizeV - width / 2 (paddingV)\n        ldr             r10,[sp, #120]                                 @ r10 = srcV\n.endm\n\n.macro load_chroma_nv12\n        pld             [r12, #64*3]\n\n        vld2.8          {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n        vshll.u8        q14, d2, #3                                    @ q14 = U * (1 << 3)\n        vshll.u8        q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_nv21\n        pld             [r12, #64*3]\n\n        vld2.8          {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n        vshll.u8        q14, d3, #3                                    @ q14 = U * (1 << 3)\n        vshll.u8        q15, d2, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_yuv420p\n        pld             [r10, #64*3]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:5", "text": ".endm\n\n.macro load_chroma_nv12\n        pld             [r12, #64*3]\n\n        vld2.8          {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n        vshll.u8        q14, d2, #3                                    @ q14 = U * (1 << 3)\n        vshll.u8        q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_nv21\n        pld             [r12, #64*3]\n\n        vld2.8          {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n        vshll.u8        q14, d3, #3                                    @ q14 = U * (1 << 3)\n        vshll.u8        q15, d2, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_yuv420p\n        pld             [r10, #64*3]\n        pld             [r12, #64*3]\n\n        vld1.8          d2, [r6]!                                      @ d2: chroma red line\n        vld1.8          d3, [r10]!                                     @ d3: chroma blue line\n        vshll.u8        q14, d2, #3                                    @ q14 = U * (1 << 3)\n        vshll.u8        q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_yuv422p\n        pld             [r10, #64*3]\n\n        vld1.8          d2, [r6]!                                      @ d2: chroma red line\n        vld1.8          d3, [r10]!                                     @ d3: chroma blue line\n        vshll.u8        q14, d2, #3                                    @ q14 = U * (1 << 3)\n        vshll.u8        q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro increment_and_test_nv12\n        add             r11, r11, r3                                   @ dst2  += padding\n        add             r12, r12, r5                                   @ srcY2 += paddingY\n        add             r6, r6, r7                                     @ srcC  += paddingC\n        subs            r1, r1, #2                                     @ height -= 2\n.endm\n\n.macro increment_and_test_nv21\n        increment_and_test_nv12\n.endm\n\n.macro increment_and_test_yuv420p\n        add             r11, r11, r3                                   @ dst2  += padding\n        add             r12, r12, r5                                   @ srcY2 += paddingY\n        ldr             r7, [sp, #116]                                 @ r7     = linesizeU\n        sub             r7, r7, r0, lsr #1                             @ r7     = linesizeU - width / 2 (paddingU)\n        add             r6, r6, r7                                     @ srcU  += paddingU\n        ldr             r7, [sp, #124]                                 @ r7     = linesizeV\n        sub             r7, r7, r0, lsr #1                             @ r7     = linesizeV - width / 2 (paddingV)\n        add             r10, r10, r7                                   @ srcV  += paddingV\n        subs            r1, r1, #2                                     @ height -= 2\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:6", "text": "add             r6, r6, r7                                     @ srcC  += paddingC\n        subs            r1, r1, #2                                     @ height -= 2\n.endm\n\n.macro increment_and_test_nv21\n        increment_and_test_nv12\n.endm\n\n.macro increment_and_test_yuv420p\n        add             r11, r11, r3                                   @ dst2  += padding\n        add             r12, r12, r5                                   @ srcY2 += paddingY\n        ldr             r7, [sp, #116]                                 @ r7     = linesizeU\n        sub             r7, r7, r0, lsr #1                             @ r7     = linesizeU - width / 2 (paddingU)\n        add             r6, r6, r7                                     @ srcU  += paddingU\n        ldr             r7, [sp, #124]                                 @ r7     = linesizeV\n        sub             r7, r7, r0, lsr #1                             @ r7     = linesizeV - width / 2 (paddingV)\n        add             r10, r10, r7                                   @ srcV  += paddingV\n        subs            r1, r1, #2                                     @ height -= 2\n.endm\n\n.macro increment_and_test_yuv422p\n        add             r6, r6, r7                                     @ srcU  += paddingU\n        add             r10,r10,r12                                    @ srcV  += paddingV\n        subs            r1, r1, #1                                     @ height -= 1\n.endm\n\n.macro process_nv12 ofmt\n        process_2l      \\ofmt\n.endm\n\n.macro process_nv21 ofmt\n        process_2l      \\ofmt\n.endm\n\n.macro process_yuv420p ofmt\n        process_2l      \\ofmt\n.endm\n\n.macro process_yuv422p ofmt\n        process_1l      \\ofmt\n.endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n        load_args_\\ifmt\n        vmov.u16        q11, #1024                                     @ q11 = 128 * (1 << 3)\n        vdup.16         q12, r9                                        @ q12 = y_offset\n        vmov            d26, d0                                        @ q13 = y_coeff\n        vmov            d27, d0                                        @ q13 = y_coeff\n1:\n        mov             r8, r0                                         @ r8 = width\n2:\n        pld             [r6, #64*3]\n        pld             [r4, #64*3]\n        vmov.i8         d10, #128\n        load_chroma_\\ifmt\n        process_\\ifmt   \\ofmt\n        subs            r8, r8, #16                                    @ width -= 16\n        bgt             2b\n        add             r2, r2, r3                                     @ dst   += padding", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:7", "text": ".endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n        load_args_\\ifmt\n        vmov.u16        q11, #1024                                     @ q11 = 128 * (1 << 3)\n        vdup.16         q12, r9                                        @ q12 = y_offset\n        vmov            d26, d0                                        @ q13 = y_coeff\n        vmov            d27, d0                                        @ q13 = y_coeff\n1:\n        mov             r8, r0                                         @ r8 = width\n2:\n        pld             [r6, #64*3]\n        pld             [r4, #64*3]\n        vmov.i8         d10, #128\n        load_chroma_\\ifmt\n        process_\\ifmt   \\ofmt\n        subs            r8, r8, #16                                    @ width -= 16\n        bgt             2b\n        add             r2, r2, r3                                     @ dst   += padding\n        add             r4, r4, r5                                     @ srcY  += paddingY\n        increment_and_test_\\ifmt\n        bgt             1b\n        vpop            {q4-q7}\n        pop             {r4-r12, pc}\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n        declare_func    \\ifmt, argb\n        declare_func    \\ifmt, rgba\n        declare_func    \\ifmt, abgr\n        declare_func    \\ifmt, bgra\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/arm/yuv2rgb_neon.S", "line_start": 241, "line_end": 279}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:1", "text": "/*\n * Copyright (c) 2015 Matthieu Bouron <matthieu.bouron stupeflix.com>\n * Copyright (c) 2015 Clément Bœsch <clement stupeflix.com>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/arm/asm.S\"\n\n\n.macro compute_premult\n    vsub.u16            q14,q11                                        @ q14 = U * (1 << 3) - 128 * (1 << 3)\n    vsub.u16            q15,q11                                        @ q15 = V * (1 << 3) - 128 * (1 << 3)\n    vqdmulh.s16         q8, q15, d1[0]                                 @ q8  = V * v2r\n    vqdmulh.s16         q9, q14, d1[1]                                 @ q9  = U * u2g\n    vqdmulh.s16         q5, q15, d1[2]                                 @ q5  = V * v2g\n    vadd.s16            q9, q5                                         @ q9  = U * u2g + V * v2g\n    vqdmulh.s16         q10,q14, d1[3]                                 @ q10 = U * u2b\n.endm\n\n.macro compute_color dst_comp1 dst_comp2 pre\n    vadd.s16            q1, q14, \\pre\n    vadd.s16            q2, q15, \\pre\n    vqrshrun.s16        \\dst_comp1, q1, #1\n    vqrshrun.s16        \\dst_comp2, q2, #1\n.endm\n\n.macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n    compute_color       \\r1, \\r2, q8\n    compute_color       \\g1, \\g2, q9\n    compute_color       \\b1, \\b2, q10\n    vmov.u8             \\a1, #255\n    vmov.u8             \\a2, #255\n.endm\n\n.macro compute dst ofmt\n    vshll.u8            q14, d14, #3                                   @ q14 = Y * (1 << 3)\n    vshll.u8            q15, d15, #3                                   @ q15 = Y * (1 << 3)\n    vsub.s16            q14, q12                                       @ q14 = (Y - y_offset)\n    vsub.s16            q15, q12                                       @ q15 = (Y - y_offset)\n    vqdmulh.s16         q14, q13                                       @ q14 = (Y - y_offset) * y_coeff\n    vqdmulh.s16         q15, q13                                       @ q15 = (Y - y_offset) * y_coeff\n\n.ifc \\ofmt,argb\n    compute_rgba        d7, d8, d9, d6, d11, d12, d13, d10\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:2", "text": ".macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n    compute_color       \\r1, \\r2, q8\n    compute_color       \\g1, \\g2, q9\n    compute_color       \\b1, \\b2, q10\n    vmov.u8             \\a1, #255\n    vmov.u8             \\a2, #255\n.endm\n\n.macro compute dst ofmt\n    vshll.u8            q14, d14, #3                                   @ q14 = Y * (1 << 3)\n    vshll.u8            q15, d15, #3                                   @ q15 = Y * (1 << 3)\n    vsub.s16            q14, q12                                       @ q14 = (Y - y_offset)\n    vsub.s16            q15, q12                                       @ q15 = (Y - y_offset)\n    vqdmulh.s16         q14, q13                                       @ q14 = (Y - y_offset) * y_coeff\n    vqdmulh.s16         q15, q13                                       @ q15 = (Y - y_offset) * y_coeff\n\n.ifc \\ofmt,argb\n    compute_rgba        d7, d8, d9, d6, d11, d12, d13, d10\n.endif\n\n.ifc \\ofmt,rgba\n    compute_rgba        d6, d7, d8, d9, d10, d11, d12, d13\n.endif\n\n.ifc \\ofmt,abgr\n    compute_rgba        d9, d8, d7, d6, d13, d12, d11, d10\n.endif\n\n.ifc \\ofmt,bgra\n    compute_rgba        d8, d7, d6, d9, d12, d11, d10, d13\n.endif\n\n    vzip.8              d6, d10                                        @ d6 = R1R2R3R4R5R6R7R8 d10 = R9R10R11R12R13R14R15R16\n    vzip.8              d7, d11                                        @ d7 = G1G2G3G4G5G6G7G8 d11 = G9G10G11G12G13G14G15G16\n    vzip.8              d8, d12                                        @ d8 = B1B2B3B4B5B6B7B8 d12 = B9B10B11B12B13B14B15B16\n    vzip.8              d9, d13                                        @ d9 = A1A2A3A4A5A6A7A8 d13 = A9A10A11A12A13A14A15A16\n    vst4.8              {q3, q4}, [\\dst]!\n    vst4.8              {q5, q6}, [\\dst]!\n.endm\n\n.macro process_1l_internal dst src ofmt\n    vld2.8              {d14, d15}, [\\src]!                            @ q7 = Y (interleaved)\n    compute             \\dst, \\ofmt\n.endm\n\n.macro process_1l ofmt\n    compute_premult\n    process_1l_internal r2, r4, \\ofmt\n.endm\n\n.macro process_2l ofmt\n    compute_premult\n    process_1l_internal r2, r4, \\ofmt\n    process_1l_internal r11,r12,\\ofmt\n.endm\n\n.macro load_args_nv12\n    push                {r4-r12, lr}\n    vpush               {q4-q7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:3", "text": ".macro process_1l_internal dst src ofmt\n    vld2.8              {d14, d15}, [\\src]!                            @ q7 = Y (interleaved)\n    compute             \\dst, \\ofmt\n.endm\n\n.macro process_1l ofmt\n    compute_premult\n    process_1l_internal r2, r4, \\ofmt\n.endm\n\n.macro process_2l ofmt\n    compute_premult\n    process_1l_internal r2, r4, \\ofmt\n    process_1l_internal r11,r12,\\ofmt\n.endm\n\n.macro load_args_nv12\n    push                {r4-r12, lr}\n    vpush               {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ r4  = srcY\n    ldr                 r5, [sp, #108]                                 @ r5  = linesizeY\n    ldr                 r6, [sp, #112]                                 @ r6  = srcC\n    ldr                 r7, [sp, #116]                                 @ r7  = linesizeC\n    ldr                 r8, [sp, #120]                                 @ r8  = table\n    ldr                 r9, [sp, #124]                                 @ r9  = y_offset\n    ldr                 r10,[sp, #128]                                 @ r10 = y_coeff\n    vdup.16             d0, r10                                        @ d0  = y_coeff\n    vld1.16             {d1}, [r8]                                     @ d1  = *table\n    add                 r11, r2, r3                                    @ r11 = dst + linesize (dst2)\n    add                 r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)\n    lsl                 r3, r3, #1\n    lsl                 r5, r5, #1\n    sub                 r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)\n    sub                 r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)\n    sub                 r7, r7, r0                                     @ r7 = linesizeC     - width     (paddingC)\n.endm\n\n.macro load_args_nv21\n    load_args_nv12\n.endm\n\n.macro load_args_yuv420p\n    push                {r4-r12, lr}\n    vpush               {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ r4  = srcY\n    ldr                 r5, [sp, #108]                                 @ r5  = linesizeY\n    ldr                 r6, [sp, #112]                                 @ r6  = srcU\n    ldr                 r8, [sp, #128]                                 @ r8  = table\n    ldr                 r9, [sp, #132]                                 @ r9  = y_offset\n    ldr                 r10,[sp, #136]                                 @ r10 = y_coeff\n    vdup.16             d0, r10                                        @ d0  = y_coeff\n    vld1.16             {d1}, [r8]                                     @ d1  = *table\n    add                 r11, r2, r3                                    @ r11 = dst + linesize (dst2)\n    add                 r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)\n    lsl                 r3, r3, #1\n    lsl                 r5, r5, #1\n    sub                 r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)\n    sub                 r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)\n    ldr                 r10,[sp, #120]                                 @ r10 = srcV", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:4", "text": ".endm\n\n.macro load_args_yuv420p\n    push                {r4-r12, lr}\n    vpush               {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ r4  = srcY\n    ldr                 r5, [sp, #108]                                 @ r5  = linesizeY\n    ldr                 r6, [sp, #112]                                 @ r6  = srcU\n    ldr                 r8, [sp, #128]                                 @ r8  = table\n    ldr                 r9, [sp, #132]                                 @ r9  = y_offset\n    ldr                 r10,[sp, #136]                                 @ r10 = y_coeff\n    vdup.16             d0, r10                                        @ d0  = y_coeff\n    vld1.16             {d1}, [r8]                                     @ d1  = *table\n    add                 r11, r2, r3                                    @ r11 = dst + linesize (dst2)\n    add                 r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)\n    lsl                 r3, r3, #1\n    lsl                 r5, r5, #1\n    sub                 r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)\n    sub                 r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)\n    ldr                 r10,[sp, #120]                                 @ r10 = srcV\n.endm\n\n.macro load_args_yuv422p\n    push                {r4-r12, lr}\n    vpush               {q4-q7}\n    ldr                 r4, [sp, #104]                                 @ r4  = srcY\n    ldr                 r5, [sp, #108]                                 @ r5  = linesizeY\n    ldr                 r6, [sp, #112]                                 @ r6  = srcU\n    ldr                 r7, [sp, #116]                                 @ r7  = linesizeU\n    ldr                 r12,[sp, #124]                                 @ r12 = linesizeV\n    ldr                 r8, [sp, #128]                                 @ r8  = table\n    ldr                 r9, [sp, #132]                                 @ r9  = y_offset\n    ldr                 r10,[sp, #136]                                 @ r10 = y_coeff\n    vdup.16             d0, r10                                        @ d0  = y_coeff\n    vld1.16             {d1}, [r8]                                     @ d1  = *table\n    sub                 r3, r3, r0, lsl #2                             @ r3  = linesize  - width * 4 (padding)\n    sub                 r5, r5, r0                                     @ r5  = linesizeY - width     (paddingY)\n    sub                 r7, r7, r0, lsr #1                             @ r7  = linesizeU - width / 2 (paddingU)\n    sub                 r12,r12,r0, lsr #1                             @ r12 = linesizeV - width / 2 (paddingV)\n    ldr                 r10,[sp, #120]                                 @ r10 = srcV\n.endm\n\n.macro load_chroma_nv12\n    pld [r12, #64*3]\n\n    vld2.8              {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n    vshll.u8            q14, d2, #3                                    @ q14 = U * (1 << 3)\n    vshll.u8            q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_nv21\n    pld [r12, #64*3]\n\n    vld2.8              {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n    vshll.u8            q14, d3, #3                                    @ q14 = U * (1 << 3)\n    vshll.u8            q15, d2, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_yuv420p\n    pld [r10, #64*3]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:5", "text": ".endm\n\n.macro load_chroma_nv12\n    pld [r12, #64*3]\n\n    vld2.8              {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n    vshll.u8            q14, d2, #3                                    @ q14 = U * (1 << 3)\n    vshll.u8            q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_nv21\n    pld [r12, #64*3]\n\n    vld2.8              {d2, d3}, [r6]!                                @ q1: interleaved chroma line\n    vshll.u8            q14, d3, #3                                    @ q14 = U * (1 << 3)\n    vshll.u8            q15, d2, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_yuv420p\n    pld [r10, #64*3]\n    pld [r12, #64*3]\n\n    vld1.8              d2, [r6]!                                      @ d2: chroma red line\n    vld1.8              d3, [r10]!                                     @ d3: chroma blue line\n    vshll.u8            q14, d2, #3                                    @ q14 = U * (1 << 3)\n    vshll.u8            q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro load_chroma_yuv422p\n    pld [r10, #64*3]\n\n    vld1.8              d2, [r6]!                                      @ d2: chroma red line\n    vld1.8              d3, [r10]!                                     @ d3: chroma blue line\n    vshll.u8            q14, d2, #3                                    @ q14 = U * (1 << 3)\n    vshll.u8            q15, d3, #3                                    @ q15 = V * (1 << 3)\n.endm\n\n.macro increment_and_test_nv12\n    add                 r11, r11, r3                                   @ dst2  += padding\n    add                 r12, r12, r5                                   @ srcY2 += paddingY\n    add                 r6, r6, r7                                     @ srcC  += paddingC\n    subs                r1, r1, #2                                     @ height -= 2\n.endm\n\n.macro increment_and_test_nv21\n    increment_and_test_nv12\n.endm\n\n.macro increment_and_test_yuv420p\n    add                 r11, r11, r3                                   @ dst2  += padding\n    add                 r12, r12, r5                                   @ srcY2 += paddingY\n    ldr                 r7, [sp, #116]                                 @ r7     = linesizeU\n    sub                 r7, r7, r0, lsr #1                             @ r7     = linesizeU - width / 2 (paddingU)\n    add                 r6, r6, r7                                     @ srcU  += paddingU\n    ldr                 r7, [sp, #124]                                 @ r7     = linesizeV\n    sub                 r7, r7, r0, lsr #1                             @ r7     = linesizeV - width / 2 (paddingV)\n    add                 r10, r10, r7                                   @ srcV  += paddingV\n    subs                r1, r1, #2                                     @ height -= 2\n.endm", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:6", "text": "add                 r6, r6, r7                                     @ srcC  += paddingC\n    subs                r1, r1, #2                                     @ height -= 2\n.endm\n\n.macro increment_and_test_nv21\n    increment_and_test_nv12\n.endm\n\n.macro increment_and_test_yuv420p\n    add                 r11, r11, r3                                   @ dst2  += padding\n    add                 r12, r12, r5                                   @ srcY2 += paddingY\n    ldr                 r7, [sp, #116]                                 @ r7     = linesizeU\n    sub                 r7, r7, r0, lsr #1                             @ r7     = linesizeU - width / 2 (paddingU)\n    add                 r6, r6, r7                                     @ srcU  += paddingU\n    ldr                 r7, [sp, #124]                                 @ r7     = linesizeV\n    sub                 r7, r7, r0, lsr #1                             @ r7     = linesizeV - width / 2 (paddingV)\n    add                 r10, r10, r7                                   @ srcV  += paddingV\n    subs                r1, r1, #2                                     @ height -= 2\n.endm\n\n.macro increment_and_test_yuv422p\n    add                 r6, r6, r7                                     @ srcU  += paddingU\n    add                 r10,r10,r12                                    @ srcV  += paddingV\n    subs                r1, r1, #1                                     @ height -= 1\n.endm\n\n.macro process_nv12 ofmt\n    process_2l \\ofmt\n.endm\n\n.macro process_nv21 ofmt\n    process_2l \\ofmt\n.endm\n\n.macro process_yuv420p ofmt\n    process_2l \\ofmt\n.endm\n\n.macro process_yuv422p ofmt\n    process_1l \\ofmt\n.endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n    load_args_\\ifmt\n    vmov.u16            q11, #1024                                     @ q11 = 128 * (1 << 3)\n    vdup.16             q12, r9                                        @ q12 = y_offset\n    vmov                d26, d0                                        @ q13 = y_coeff\n    vmov                d27, d0                                        @ q13 = y_coeff\n1:\n    mov                 r8, r0                                         @ r8 = width\n2:\n    pld [r6, #64*3]\n    pld [r4, #64*3]\n    vmov.i8             d10, #128\n    load_chroma_\\ifmt\n    process_\\ifmt \\ofmt\n    subs                r8, r8, #16                                    @ width -= 16\n    bgt                 2b\n    add                 r2, r2, r3                                     @ dst   += padding", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:7", "text": ".endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n    load_args_\\ifmt\n    vmov.u16            q11, #1024                                     @ q11 = 128 * (1 << 3)\n    vdup.16             q12, r9                                        @ q12 = y_offset\n    vmov                d26, d0                                        @ q13 = y_coeff\n    vmov                d27, d0                                        @ q13 = y_coeff\n1:\n    mov                 r8, r0                                         @ r8 = width\n2:\n    pld [r6, #64*3]\n    pld [r4, #64*3]\n    vmov.i8             d10, #128\n    load_chroma_\\ifmt\n    process_\\ifmt \\ofmt\n    subs                r8, r8, #16                                    @ width -= 16\n    bgt                 2b\n    add                 r2, r2, r3                                     @ dst   += padding\n    add                 r4, r4, r5                                     @ srcY  += paddingY\n    increment_and_test_\\ifmt\n    bgt                 1b\n    vpop                {q4-q7}\n    pop                 {r4-r12, pc}\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n    declare_func \\ifmt, argb\n    declare_func \\ifmt, rgba\n    declare_func \\ifmt, abgr\n    declare_func \\ifmt, bgra\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "77e6293735262b20a86b5047b77991a86cf4e9e1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77e6293735262b20a86b5047b77991a86cf4e9e1/libswscale/arm/yuv2rgb_neon.S", "line_start": 241, "line_end": 279}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:7", "text": ".endm\n\n.macro declare_func ifmt ofmt\nfunction ff_\\ifmt\\()_to_\\ofmt\\()_neon, export=1\n    load_args_\\ifmt\n    vmov.u16            q11, #1024                                     @ q11 = 128 * (1 << 3)\n    vdup.16             q12, r9                                        @ q12 = y_offset\n    vmov                d26, d0                                        @ q13 = y_coeff\n    vmov                d27, d0                                        @ q13 = y_coeff\n1:\n    mov                 r8, r0                                         @ r8 = width\n2:\n    pld [r6, #64*3]\n    pld [r4, #64*3]\n    vmov.i8             d10, #128\n    load_chroma_\\ifmt\n    process_\\ifmt \\ofmt\n    subs                r8, r8, #16                                    @ width -= 16\n    bgt                 2b\n    add                 r2, r2, r3                                     @ dst   += padding\n    add                 r4, r4, r5                                     @ srcY  += paddingY\n    increment_and_test_\\ifmt\n    bgt                 1b\n    vpop                {q4-q7}\n    pop                 {r4-r12, lr}\n    mov                 pc, lr\nendfunc\n.endm\n\n.macro declare_rgb_funcs ifmt\n    declare_func \\ifmt, argb\n    declare_func \\ifmt, rgba\n    declare_func \\ifmt, abgr\n    declare_func \\ifmt, bgra\n.endm\n\ndeclare_rgb_funcs nv12\ndeclare_rgb_funcs nv21\ndeclare_rgb_funcs yuv420p\ndeclare_rgb_funcs yuv422p", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "507c2a57746d503cd97e1dd520e563a1f1b85fee", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/507c2a57746d503cd97e1dd520e563a1f1b85fee/libswscale/arm/yuv2rgb_neon.S", "line_start": 241, "line_end": 280}
{"id": "FFmpeg/FFmpeg:libswscale/arm/yuv2rgb_neon.S:2", "text": ".macro compute_rgba r1 g1 b1 a1 r2 g2 b2 a2\n    compute_color       \\r1, \\r2, q8\n    compute_color       \\g1, \\g2, q9\n    compute_color       \\b1, \\b2, q10\n    vmov.u8             \\a1, #255\n    vmov.u8             \\a2, #255\n.endm\n\n.macro compute dst ofmt\n    vshll.u8            q14, d14, #3                                   @ q14 = Y * (1 << 3)\n    vshll.u8            q15, d15, #3                                   @ q15 = Y * (1 << 3)\n    vsub.s16            q14, q12                                       @ q14 = (Y - y_offset)\n    vsub.s16            q15, q12                                       @ q15 = (Y - y_offset)\n    vqdmulh.s16         q14, q13                                       @ q14 = (Y - y_offset) * y_coeff\n    vqdmulh.s16         q15, q13                                       @ q15 = (Y - y_offset) * y_coeff\n\n.ifc \\ofmt,argb\n    compute_rgba        d7, d8, d9, d6, d11, d12, d13, d10\n.endif\n\n.ifc \\ofmt,rgba\n    compute_rgba        d6, d7, d8, d9, d10, d11, d12, d13\n.endif\n\n.ifc \\ofmt,abgr\n    compute_rgba        d9, d8, d7, d6, d13, d12, d11, d10\n.endif\n\n.ifc \\ofmt,bgra\n    compute_rgba        d8, d7, d6, d9, d12, d11, d10, d13\n.endif\n\n    vzip.8              d6, d10                                        @ d6 = R1R2R3R4R5R6R7R8 d10 = R9R10R11R12R13R14R15R16\n    vzip.8              d7, d11                                        @ d7 = G1G2G3G4G5G6G7G8 d11 = G9G10G11G12G13G14G15G16\n    vzip.8              d8, d12                                        @ d8 = B1B2B3B4B5B6B7B8 d12 = B9B10B11B12B13B14B15B16\n    vzip.8              d9, d13                                        @ d9 = A1A2A3A4A5A6A7A8 d13 = A9A10A11A12A13A14A15A16\n    vst4.8              {q3, q4}, [\\dst,:128]!\n    vst4.8              {q5, q6}, [\\dst,:128]!\n.endm\n\n.macro process_1l_internal dst src ofmt\n    vld2.8              {d14, d15}, [\\src]!                            @ q7 = Y (interleaved)\n    compute             \\dst, \\ofmt\n.endm\n\n.macro process_1l ofmt\n    compute_premult\n    process_1l_internal r2, r4, \\ofmt\n.endm\n\n.macro process_2l ofmt\n    compute_premult\n    process_1l_internal r2, r4, \\ofmt\n    process_1l_internal r11,r12,\\ofmt\n.endm\n\n.macro load_args_nv12\n    push                {r4-r12, lr}\n    vpush               {q4-q7}", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/arm/yuv2rgb_neon.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/arm/yuv2rgb_neon.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:1", "text": "/*\n * Loongson LSX optimized swscale\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Lu Wang <wanglu@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/loongarch/loongson_asm.S\"\n\n/* void planar_rgb_to_y_lsx(uint8_t *_dst, const uint8_t *src[4],\n *                          int width, int32_t *rgb2yuv)\n */\nfunction planar_rgb_to_y_lsx\n    ld.d            a5,     a1,    0\n    ld.d            a6,     a1,    8\n    ld.d            a7,     a1,    16\n\n    ld.w            t1,     a3,    0     // ry\n    ld.w            t2,     a3,    4     // gy\n    ld.w            t3,     a3,    8     // by\n    li.w            t4,     9\n    li.w            t5,     524544\n    li.w            t7,     4\n    li.w            t8,     8\n    vldi            vr7,    0\n    vreplgr2vr.w    vr1,    t1\n    vreplgr2vr.w    vr2,    t2\n    vreplgr2vr.w    vr3,    t3\n    vreplgr2vr.w    vr4,    t4\n    vreplgr2vr.w    vr5,    t5\n    bge             a2,     t8,    .WIDTH8\n    bge             a2,     t7,    .WIDTH4\n    blt             zero,   a2,    .WIDTH\n    b               .END\n\n.WIDTH8:\n    vld             vr8,    a5,    0\n    vld             vr9,    a6,    0\n    vld             vr10,   a7,    0\n    vilvl.b         vr11,   vr7,   vr8\n    vilvl.b         vr12,   vr7,   vr9\n    vilvl.b         vr13,   vr7,   vr10\n    vilvl.h         vr14,   vr7,   vr11\n    vilvl.h         vr15,   vr7,   vr12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:2", "text": "vldi            vr7,    0\n    vreplgr2vr.w    vr1,    t1\n    vreplgr2vr.w    vr2,    t2\n    vreplgr2vr.w    vr3,    t3\n    vreplgr2vr.w    vr4,    t4\n    vreplgr2vr.w    vr5,    t5\n    bge             a2,     t8,    .WIDTH8\n    bge             a2,     t7,    .WIDTH4\n    blt             zero,   a2,    .WIDTH\n    b               .END\n\n.WIDTH8:\n    vld             vr8,    a5,    0\n    vld             vr9,    a6,    0\n    vld             vr10,   a7,    0\n    vilvl.b         vr11,   vr7,   vr8\n    vilvl.b         vr12,   vr7,   vr9\n    vilvl.b         vr13,   vr7,   vr10\n    vilvl.h         vr14,   vr7,   vr11\n    vilvl.h         vr15,   vr7,   vr12\n    vilvl.h         vr16,   vr7,   vr13\n    vilvh.h         vr17,   vr7,   vr11\n    vilvh.h         vr18,   vr7,   vr12\n    vilvh.h         vr19,   vr7,   vr13\n    vmul.w          vr20,   vr1,   vr16\n    vmul.w          vr21,   vr1,   vr19\n    vmadd.w         vr20,   vr2,   vr14\n    vmadd.w         vr20,   vr3,   vr15\n    vmadd.w         vr21,   vr2,   vr17\n    vmadd.w         vr21,   vr3,   vr18\n    vadd.w          vr20,   vr20,  vr5\n    vadd.w          vr21,   vr21,  vr5\n    vsra.w          vr20,   vr20,  vr4\n    vsra.w          vr21,   vr21,  vr4\n    vpickev.h       vr20,   vr21,  vr20\n    vst             vr20,   a0,    0\n    addi.d          a2,     a2,    -8\n    addi.d          a5,     a5,    8\n    addi.d          a6,     a6,    8\n    addi.d          a7,     a7,    8\n    addi.d          a0,     a0,    16\n    bge             a2,     t8,    .WIDTH8\n    bge             a2,     t7,    .WIDTH4\n    blt             zero,   a2,    .WIDTH\n    b               .END\n\n.WIDTH4:\n    vld             vr8,    a5,    0\n    vld             vr9,    a6,    0\n    vld             vr10,   a7,    0\n    vilvl.b         vr11,   vr7,   vr8\n    vilvl.b         vr12,   vr7,   vr9\n    vilvl.b         vr13,   vr7,   vr10\n    vilvl.h         vr14,   vr7,   vr11\n    vilvl.h         vr15,   vr7,   vr12\n    vilvl.h         vr16,   vr7,   vr13\n    vmul.w          vr17,   vr1,   vr16\n    vmadd.w         vr17,   vr2,   vr14\n    vmadd.w         vr17,   vr3,   vr15\n    vadd.w          vr17,   vr17,  vr5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:3", "text": "addi.d          a0,     a0,    16\n    bge             a2,     t8,    .WIDTH8\n    bge             a2,     t7,    .WIDTH4\n    blt             zero,   a2,    .WIDTH\n    b               .END\n\n.WIDTH4:\n    vld             vr8,    a5,    0\n    vld             vr9,    a6,    0\n    vld             vr10,   a7,    0\n    vilvl.b         vr11,   vr7,   vr8\n    vilvl.b         vr12,   vr7,   vr9\n    vilvl.b         vr13,   vr7,   vr10\n    vilvl.h         vr14,   vr7,   vr11\n    vilvl.h         vr15,   vr7,   vr12\n    vilvl.h         vr16,   vr7,   vr13\n    vmul.w          vr17,   vr1,   vr16\n    vmadd.w         vr17,   vr2,   vr14\n    vmadd.w         vr17,   vr3,   vr15\n    vadd.w          vr17,   vr17,  vr5\n    vsra.w          vr17,   vr17,  vr4\n    vpickev.h       vr17,   vr17,  vr17\n    vstelm.d        vr17,   a0,    0,    0\n    addi.d          a2,     a2,    -4\n    addi.d          a5,     a5,    4\n    addi.d          a6,     a6,    4\n    addi.d          a7,     a7,    4\n    addi.d          a0,     a0,    8\n    bge             a2,     t7,    .WIDTH4\n    blt             zero,   a2,    .WIDTH\n    b               .END\n\n.WIDTH:\n    ld.bu           t0,     a5,    0\n    ld.bu           t4,     a6,    0\n    ld.bu           t6,     a7,    0\n    mul.w           t8,     t6,    t1\n    mul.w           t7,     t0,    t2\n    add.w           t8,     t8,    t7\n    mul.w           t7,     t4,    t3\n    add.w           t8,     t8,    t7\n    add.w           t8,     t8,    t5\n    srai.w          t8,     t8,    9\n    st.h            t8,     a0,    0\n    addi.d          a2,     a2,    -1\n    addi.d          a5,     a5,    1\n    addi.d          a6,     a6,    1\n    addi.d          a7,     a7,    1\n    addi.d          a0,     a0,    2\n    blt             zero,   a2,    .WIDTH\n.END:\nendfunc\n\n/* void planar_rgb_to_uv_lsx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4],\n *                           int width, int32_t *rgb2yuv)\n */\nfunction planar_rgb_to_uv_lsx\n    addi.d          sp,     sp,    -24\n    st.d            s1,     sp,    0\n    st.d            s2,     sp,    8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:4", "text": "add.w           t8,     t8,    t7\n    add.w           t8,     t8,    t5\n    srai.w          t8,     t8,    9\n    st.h            t8,     a0,    0\n    addi.d          a2,     a2,    -1\n    addi.d          a5,     a5,    1\n    addi.d          a6,     a6,    1\n    addi.d          a7,     a7,    1\n    addi.d          a0,     a0,    2\n    blt             zero,   a2,    .WIDTH\n.END:\nendfunc\n\n/* void planar_rgb_to_uv_lsx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4],\n *                           int width, int32_t *rgb2yuv)\n */\nfunction planar_rgb_to_uv_lsx\n    addi.d          sp,     sp,    -24\n    st.d            s1,     sp,    0\n    st.d            s2,     sp,    8\n    st.d            s3,     sp,    16\n\n    ld.d            a5,     a2,    0\n    ld.d            a6,     a2,    8\n    ld.d            a7,     a2,    16\n    ld.w            t1,     a4,    12     // ru\n    ld.w            t2,     a4,    16     // gu\n    ld.w            t3,     a4,    20     // bu\n    ld.w            s1,     a4,    24     // rv\n    ld.w            s2,     a4,    28     // gv\n    ld.w            s3,     a4,    32     // bv\n    li.w            t4,     9\n    li.w            t5,     4194560\n    li.w            t7,     4\n    li.w            t8,     8\n    vldi            vr0,    0\n    vreplgr2vr.w    vr1,    t1\n    vreplgr2vr.w    vr2,    t2\n    vreplgr2vr.w    vr3,    t3\n    vreplgr2vr.w    vr4,    s1\n    vreplgr2vr.w    vr5,    s2\n    vreplgr2vr.w    vr6,    s3\n    vreplgr2vr.w    vr7,    t4\n    vreplgr2vr.w    vr8,    t5\n    bge             a2,     t8,    .LOOP_WIDTH8\n    bge             a2,     t7,    .LOOP_WIDTH4\n    blt             zero,   a2,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH8:\n    vld             vr9,    a5,    0\n    vld             vr10,   a6,    0\n    vld             vr11,   a7,    0\n    vilvl.b         vr9,    vr0,   vr9\n    vilvl.b         vr10,   vr0,   vr10\n    vilvl.b         vr11,   vr0,   vr11\n    vilvl.h         vr12,   vr0,   vr9\n    vilvl.h         vr13,   vr0,   vr10\n    vilvl.h         vr14,   vr0,   vr11\n    vilvh.h         vr15,   vr0,   vr9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:5", "text": "vreplgr2vr.w    vr5,    s2\n    vreplgr2vr.w    vr6,    s3\n    vreplgr2vr.w    vr7,    t4\n    vreplgr2vr.w    vr8,    t5\n    bge             a2,     t8,    .LOOP_WIDTH8\n    bge             a2,     t7,    .LOOP_WIDTH4\n    blt             zero,   a2,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH8:\n    vld             vr9,    a5,    0\n    vld             vr10,   a6,    0\n    vld             vr11,   a7,    0\n    vilvl.b         vr9,    vr0,   vr9\n    vilvl.b         vr10,   vr0,   vr10\n    vilvl.b         vr11,   vr0,   vr11\n    vilvl.h         vr12,   vr0,   vr9\n    vilvl.h         vr13,   vr0,   vr10\n    vilvl.h         vr14,   vr0,   vr11\n    vilvh.h         vr15,   vr0,   vr9\n    vilvh.h         vr16,   vr0,   vr10\n    vilvh.h         vr17,   vr0,   vr11\n    vmul.w          vr18,   vr1,   vr14\n    vmul.w          vr19,   vr1,   vr17\n    vmul.w          vr20,   vr4,   vr14\n    vmul.w          vr21,   vr4,   vr17\n    vmadd.w         vr18,   vr2,   vr12\n    vmadd.w         vr18,   vr3,   vr13\n    vmadd.w         vr19,   vr2,   vr15\n    vmadd.w         vr19,   vr3,   vr16\n    vmadd.w         vr20,   vr5,   vr12\n    vmadd.w         vr20,   vr6,   vr13\n    vmadd.w         vr21,   vr5,   vr15\n    vmadd.w         vr21,   vr6,   vr16\n    vadd.w          vr18,   vr18,  vr8\n    vadd.w          vr19,   vr19,  vr8\n    vadd.w          vr20,   vr20,  vr8\n    vadd.w          vr21,   vr21,  vr8\n    vsra.w          vr18,   vr18,  vr7\n    vsra.w          vr19,   vr19,  vr7\n    vsra.w          vr20,   vr20,  vr7\n    vsra.w          vr21,   vr21,  vr7\n    vpickev.h       vr18,   vr19,  vr18\n    vpickev.h       vr20,   vr21,  vr20\n    vst             vr18,   a0,    0\n    vst             vr20,   a1,    0\n    addi.d          a3,     a3,    -8\n    addi.d          a5,     a5,    8\n    addi.d          a6,     a6,    8\n    addi.d          a7,     a7,    8\n    addi.d          a0,     a0,    16\n    addi.d          a1,     a1,    16\n    bge             a3,     t8,    .LOOP_WIDTH8\n    bge             a3,     t7,    .LOOP_WIDTH4\n    blt             zero,   a3,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH4:\n    vld             vr9,    a5,    0\n    vld             vr10,   a6,    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:6", "text": "vsra.w          vr20,   vr20,  vr7\n    vsra.w          vr21,   vr21,  vr7\n    vpickev.h       vr18,   vr19,  vr18\n    vpickev.h       vr20,   vr21,  vr20\n    vst             vr18,   a0,    0\n    vst             vr20,   a1,    0\n    addi.d          a3,     a3,    -8\n    addi.d          a5,     a5,    8\n    addi.d          a6,     a6,    8\n    addi.d          a7,     a7,    8\n    addi.d          a0,     a0,    16\n    addi.d          a1,     a1,    16\n    bge             a3,     t8,    .LOOP_WIDTH8\n    bge             a3,     t7,    .LOOP_WIDTH4\n    blt             zero,   a3,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH4:\n    vld             vr9,    a5,    0\n    vld             vr10,   a6,    0\n    vld             vr11,   a7,    0\n    vilvl.b         vr9,    vr0,   vr9\n    vilvl.b         vr10,   vr0,   vr10\n    vilvl.b         vr11,   vr0,   vr11\n    vilvl.h         vr12,   vr0,   vr9\n    vilvl.h         vr13,   vr0,   vr10\n    vilvl.h         vr14,   vr0,   vr11\n    vmul.w          vr18,   vr1,   vr14\n    vmul.w          vr19,   vr4,   vr14\n    vmadd.w         vr18,   vr2,   vr12\n    vmadd.w         vr18,   vr3,   vr13\n    vmadd.w         vr19,   vr5,   vr12\n    vmadd.w         vr19,   vr6,   vr13\n    vadd.w          vr18,   vr18,  vr8\n    vadd.w          vr19,   vr19,  vr8\n    vsra.w          vr18,   vr18,  vr7\n    vsra.w          vr19,   vr19,  vr7\n    vpickev.h       vr18,   vr18,  vr18\n    vpickev.h       vr19,   vr19,  vr19\n    vstelm.d        vr18,   a0,    0,    0\n    vstelm.d        vr19,   a1,    0,    0\n    addi.d          a3,     a3,    -4\n    addi.d          a5,     a5,    4\n    addi.d          a6,     a6,    4\n    addi.d          a7,     a7,    4\n    addi.d          a0,     a0,    8\n    addi.d          a1,     a1,    8\n    bge             a3,     t7,    .LOOP_WIDTH4\n    blt             zero,   a3,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH:\n    ld.bu           t0,     a5,    0\n    ld.bu           t4,     a6,    0\n    ld.bu           t6,     a7,    0\n    mul.w           t8,     t6,    t1\n    mul.w           t7,     t0,    t2\n    add.w           t8,     t8,    t7\n    mul.w           t7,     t4,    t3\n    add.w           t8,     t8,    t7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:7", "text": "vstelm.d        vr19,   a1,    0,    0\n    addi.d          a3,     a3,    -4\n    addi.d          a5,     a5,    4\n    addi.d          a6,     a6,    4\n    addi.d          a7,     a7,    4\n    addi.d          a0,     a0,    8\n    addi.d          a1,     a1,    8\n    bge             a3,     t7,    .LOOP_WIDTH4\n    blt             zero,   a3,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH:\n    ld.bu           t0,     a5,    0\n    ld.bu           t4,     a6,    0\n    ld.bu           t6,     a7,    0\n    mul.w           t8,     t6,    t1\n    mul.w           t7,     t0,    t2\n    add.w           t8,     t8,    t7\n    mul.w           t7,     t4,    t3\n    add.w           t8,     t8,    t7\n    add.w           t8,     t8,    t5\n    srai.w          t8,     t8,    9\n    st.h            t8,     a0,    0\n    mul.w           t8,     t6,    s1\n    mul.w           t7,     t0,    s2\n    add.w           t8,     t8,    t7\n    mul.w           t7,     t4,    s3\n    add.w           t8,     t8,    t7\n    add.w           t8,     t8,    t5\n    srai.w          t8,     t8,    9\n    st.h            t8,     a1,    0\n    addi.d          a3,     a3,    -1\n    addi.d          a5,     a5,    1\n    addi.d          a6,     a6,    1\n    addi.d          a7,     a7,    1\n    addi.d          a0,     a0,    2\n    addi.d          a1,     a1,    2\n    blt             zero,   a3,    .LOOP_WIDTH\n\n.LOOP_END:\n    ld.d            s1,     sp,    0\n    ld.d            s2,     sp,    8\n    ld.d            s3,     sp,    16\n    addi.d          sp,     sp,    24\nendfunc\n\n/*\n * void yuy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction yuy2ToUV_lsx\n    andi         t0,    a5,    7\n    srli.d       a5,    a5,    3\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    1\n    vld          vr1,   a3,    17\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:8", "text": "ld.d            s1,     sp,    0\n    ld.d            s2,     sp,    8\n    ld.d            s3,     sp,    16\n    addi.d          sp,     sp,    24\nendfunc\n\n/*\n * void yuy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction yuy2ToUV_lsx\n    andi         t0,    a5,    7\n    srli.d       a5,    a5,    3\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    1\n    vld          vr1,   a3,    17\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickev.b    vr0,   vr2,   vr2\n    vpickod.b    vr1,   vr2,   vr2\n    fst.d        f0,    a0,    0\n    fst.d        f1,    a1,    0\n    addi.d       a0,    a0,    8\n    addi.d       a1,    a1,    8\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction yuy2ToUV_lasx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    1\n    xvld         xr1,   a3,    33\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpickev.b   xr0,   xr2,   xr2\n    xvpermi.d    xr0,   xr0,   0xd8\n    xvpickod.b   xr1,   xr2,   xr2\n    xvpermi.d    xr1,   xr1,   0xd8\n    vst          vr0,   a0,    0\n    vst          vr1,   a1,    0\n    addi.d       a0,    a0,    16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:9", "text": "endfunc\n\nfunction yuy2ToUV_lasx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    1\n    xvld         xr1,   a3,    33\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpickev.b   xr0,   xr2,   xr2\n    xvpermi.d    xr0,   xr0,   0xd8\n    xvpickod.b   xr1,   xr2,   xr2\n    xvpermi.d    xr1,   xr1,   0xd8\n    vst          vr0,   a0,    0\n    vst          vr1,   a1,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n * void yvy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction yvy2ToUV_lsx\n    andi         t0,    a5,    7\n    srli.d       a5,    a5,    3\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    1\n    vld          vr1,   a3,    17\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickev.b    vr0,   vr2,   vr2\n    vpickod.b    vr1,   vr2,   vr2\n    fst.d        f0,    a1,    0\n    fst.d        f1,    a0,    0\n    addi.d       a0,    a0,    8\n    addi.d       a1,    a1,    8\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:10", "text": "*/\nfunction yvy2ToUV_lsx\n    andi         t0,    a5,    7\n    srli.d       a5,    a5,    3\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    1\n    vld          vr1,   a3,    17\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickev.b    vr0,   vr2,   vr2\n    vpickod.b    vr1,   vr2,   vr2\n    fst.d        f0,    a1,    0\n    fst.d        f1,    a0,    0\n    addi.d       a0,    a0,    8\n    addi.d       a1,    a1,    8\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a1,    0\n    st.b         t2,    a0,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction yvy2ToUV_lasx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    1\n    xvld         xr1,   a3,    33\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpickev.b   xr0,   xr2,   xr2\n    xvpermi.d    xr0,   xr0,   0xd8\n    xvpickod.b   xr1,   xr2,   xr2\n    xvpermi.d    xr1,   xr1,   0xd8\n    vst          vr0,   a1,    0\n    vst          vr1,   a0,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:11", "text": "addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpickev.b   xr0,   xr2,   xr2\n    xvpermi.d    xr0,   xr0,   0xd8\n    xvpickod.b   xr1,   xr2,   xr2\n    xvpermi.d    xr1,   xr1,   0xd8\n    vst          vr0,   a1,    0\n    vst          vr1,   a0,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a1,    0\n    st.b         t2,    a0,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n * void uyvyToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction uyvyToUV_lsx\n    andi         t0,    a5,    7\n    srli.d       a5,    a5,    3\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    0\n    vld          vr1,   a3,    16\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickev.b    vr0,   vr2,   vr2\n    vpickod.b    vr1,   vr2,   vr2\n    fst.d        f0,    a0,    0\n    fst.d        f1,    a1,    0\n    addi.d       a0,    a0,    8\n    addi.d       a1,    a1,    8\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:12", "text": "addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickev.b    vr0,   vr2,   vr2\n    vpickod.b    vr1,   vr2,   vr2\n    fst.d        f0,    a0,    0\n    fst.d        f1,    a1,    0\n    addi.d       a0,    a0,    8\n    addi.d       a1,    a1,    8\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction uyvyToUV_lasx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    0\n    xvld         xr1,   a3,    32\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpickev.b   xr0,   xr2,   xr2\n    xvpermi.d    xr0,   xr0,   0xd8\n    xvpickod.b   xr1,   xr2,   xr2\n    xvpermi.d    xr1,   xr1,   0xd8\n    vst          vr0,   a0,    0\n    vst          vr1,   a1,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:13", "text": "vst          vr1,   a1,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    1\n    ld.b         t2,    a3,    3\n    addi.d       a3,    a3,    4\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n * void nv12ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction nv12ToUV_lsx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    0\n    vld          vr1,   a3,    16\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickod.b    vr3,   vr1,   vr0\n    vst          vr2,   a0,    0\n    vst          vr3,   a1,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    0\n    ld.b         t2,    a3,    1\n    addi.d       a3,    a3,    2\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction nv12ToUV_lasx\n    andi         t0,    a5,    31\n    srli.d       a5,    a5,    5\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:14", "text": "beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    0\n    ld.b         t2,    a3,    1\n    addi.d       a3,    a3,    2\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction nv12ToUV_lasx\n    andi         t0,    a5,    31\n    srli.d       a5,    a5,    5\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    0\n    xvld         xr1,   a3,    32\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpickod.b   xr3,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpermi.d    xr3,   xr3,   0xd8\n    xvst         xr2,   a0,    0\n    xvst         xr3,   a1,    0\n    addi.d       a0,    a0,    32\n    addi.d       a1,    a1,    32\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    0\n    ld.b         t2,    a3,    1\n    addi.d       a3,    a3,    2\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a0,    0\n    st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n * void nv21ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction nv21ToUV_lsx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    0\n    vld          vr1,   a3,    16\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:15", "text": "st.b         t2,    a1,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n * void nv21ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,\n *                   const uint8_t *src2, int width, uint32_t *unused, void *opq)\n */\nfunction nv21ToUV_lsx\n    andi         t0,    a5,    15\n    srli.d       a5,    a5,    4\n    beqz         a5,    2f\n1:\n    vld          vr0,   a3,    0\n    vld          vr1,   a3,    16\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    32\n    vpickev.b    vr2,   vr1,   vr0\n    vpickod.b    vr3,   vr1,   vr0\n    vst          vr2,   a1,    0\n    vst          vr3,   a0,    0\n    addi.d       a0,    a0,    16\n    addi.d       a1,    a1,    16\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    0\n    ld.b         t2,    a3,    1\n    addi.d       a3,    a3,    2\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a1,    0\n    st.b         t2,    a0,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction nv21ToUV_lasx\n    andi         t0,    a5,    31\n    srli.d       a5,    a5,    5\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    0\n    xvld         xr1,   a3,    32\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpickod.b   xr3,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpermi.d    xr3,   xr3,   0xd8\n    xvst         xr2,   a1,    0\n    xvst         xr3,   a0,    0\n    addi.d       a0,    a0,    32\n    addi.d       a1,    a1,    32\n    bnez         a5,    1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:16", "text": "endfunc\n\nfunction nv21ToUV_lasx\n    andi         t0,    a5,    31\n    srli.d       a5,    a5,    5\n    beqz         a5,    2f\n1:\n    xvld         xr0,   a3,    0\n    xvld         xr1,   a3,    32\n    addi.d       a5,    a5,    -1\n    addi.d       a3,    a3,    64\n    xvpickev.b   xr2,   xr1,   xr0\n    xvpickod.b   xr3,   xr1,   xr0\n    xvpermi.d    xr2,   xr2,   0xd8\n    xvpermi.d    xr3,   xr3,   0xd8\n    xvst         xr2,   a1,    0\n    xvst         xr3,   a0,    0\n    addi.d       a0,    a0,    32\n    addi.d       a1,    a1,    32\n    bnez         a5,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a3,    0\n    ld.b         t2,    a3,    1\n    addi.d       a3,    a3,    2\n    addi.d       t0,    t0,    -1\n    st.b         t1,    a1,    0\n    st.b         t2,    a0,    0\n    addi.d       a0,    a0,    1\n    addi.d       a1,    a1,    1\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n *void abgrToA_lsx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,\n *                 const uint8_t *unused2, int width, uint32_t *unused, void *opq)\n */\nfunction abgrToA_lsx\n    andi         t0,    a4,    7\n    srli.d       a4,    a4,    3\n    vxor.v       vr0,   vr0,   vr0\n    beqz         a4,    2f\n1:\n    vld          vr1,   a1,    0\n    vld          vr2,   a1,    16\n    addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    32\n    vpickev.b    vr3,   vr2,   vr1\n    vpackev.b    vr3,   vr0,   vr3\n    vslli.h      vr1,   vr3,   6\n    vsrli.h      vr2,   vr3,   2\n    vor.v        vr3,   vr2,   vr1\n    vst          vr3,   a0,    0\n    addi.d       a0,    a0,    16\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:17", "text": "andi         t0,    a4,    7\n    srli.d       a4,    a4,    3\n    vxor.v       vr0,   vr0,   vr0\n    beqz         a4,    2f\n1:\n    vld          vr1,   a1,    0\n    vld          vr2,   a1,    16\n    addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    32\n    vpickev.b    vr3,   vr2,   vr1\n    vpackev.b    vr3,   vr0,   vr3\n    vslli.h      vr1,   vr3,   6\n    vsrli.h      vr2,   vr3,   2\n    vor.v        vr3,   vr2,   vr1\n    vst          vr3,   a0,    0\n    addi.d       a0,    a0,    16\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6\n    srli.w       t3,    t1,    2\n    or           t1,    t2,    t3\n    st.h         t1,    a0,    0\n    addi.d       a0,    a0,    2\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction abgrToA_lasx\n    andi         t0,    a4,    15\n    srli.d       a4,    a4,    4\n    xvxor.v      xr0,   xr0,   xr0\n    beqz         a4,    2f\n1:\n    xvld         xr1,   a1,    0\n    xvld         xr2,   a1,    32\n    addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    64\n    xvpickev.b   xr3,   xr2,   xr1\n    xvpermi.d    xr3,   xr3,   0xd8\n    xvpackev.b   xr3,   xr0,   xr3\n    xvslli.h     xr1,   xr3,   6\n    xvsrli.h     xr2,   xr3,   2\n    xvor.v       xr3,   xr2,   xr1\n    xvst         xr3,   a0,    0\n    addi.d       a0,    a0,    32\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:18", "text": "xvld         xr2,   a1,    32\n    addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    64\n    xvpickev.b   xr3,   xr2,   xr1\n    xvpermi.d    xr3,   xr3,   0xd8\n    xvpackev.b   xr3,   xr0,   xr3\n    xvslli.h     xr1,   xr3,   6\n    xvsrli.h     xr2,   xr3,   2\n    xvor.v       xr3,   xr2,   xr1\n    xvst         xr3,   a0,    0\n    addi.d       a0,    a0,    32\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6\n    srli.w       t3,    t1,    2\n    or           t1,    t2,    t3\n    st.h         t1,    a0,    0\n    addi.d       a0,    a0,    2\n    bnez         t0,    3b\n4:\nendfunc\n\n/*\n *void rgbaToA_lsx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,\n *                 const uint8_t *unused2, int width, uint32_t *unused, void *opq)\n */\nfunction rgbaToA_lsx\n    andi         t0,    a4,    7\n    srli.d       a4,    a4,    3\n    vxor.v       vr0,   vr0,   vr0\n    beqz         a4,    2f\n1:\n    vld          vr1,   a1,    3\n    vld          vr2,   a1,    19\n    addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    32\n    vpickev.b    vr3,   vr2,   vr1\n    vpackev.b    vr3,   vr0,   vr3\n    vslli.h      vr1,   vr3,   6\n    vsrli.h      vr2,   vr3,   2\n    vor.v        vr3,   vr2,   vr1\n    vst          vr3,   a0,    0\n    addi.d       a0,    a0,    16\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6\n    srli.w       t3,    t1,    2\n    or           t1,    t2,    t3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:19", "text": "addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    32\n    vpickev.b    vr3,   vr2,   vr1\n    vpackev.b    vr3,   vr0,   vr3\n    vslli.h      vr1,   vr3,   6\n    vsrli.h      vr2,   vr3,   2\n    vor.v        vr3,   vr2,   vr1\n    vst          vr3,   a0,    0\n    addi.d       a0,    a0,    16\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6\n    srli.w       t3,    t1,    2\n    or           t1,    t2,    t3\n    st.h         t1,    a0,    0\n    addi.d       a0,    a0,    2\n    bnez         t0,    3b\n4:\nendfunc\n\nfunction rgbaToA_lasx\n    andi         t0,    a4,    15\n    srli.d       a4,    a4,    4\n    xvxor.v      xr0,   xr0,   xr0\n    beqz         a4,    2f\n1:\n    xvld         xr1,   a1,    3\n    xvld         xr2,   a1,    35\n    addi.d       a4,    a4,    -1\n    addi.d       a1,    a1,    64\n    xvpickev.b   xr3,   xr2,   xr1\n    xvpermi.d    xr3,   xr3,   0xd8\n    xvpackev.b   xr3,   xr0,   xr3\n    xvslli.h     xr1,   xr3,   6\n    xvsrli.h     xr2,   xr3,   2\n    xvor.v       xr3,   xr2,   xr1\n    xvst         xr3,   a0,    0\n    addi.d       a0,    a0,    32\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6\n    srli.w       t3,    t1,    2\n    or           t1,    t2,    t3\n    st.h         t1,    a0,    0\n    addi.d       a0,    a0,    2\n    bnez         t0,    3b\n4:\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:20", "text": "xvsrli.h     xr2,   xr3,   2\n    xvor.v       xr3,   xr2,   xr1\n    xvst         xr3,   a0,    0\n    addi.d       a0,    a0,    32\n    bnez         a4,    1b\n2:\n    beqz         t0,    4f\n3:\n    ld.b         t1,    a1,    3\n    addi.d       t0,    t0,    -1\n    addi.d       a1,    a1,    4\n    andi         t1,    t1,    0xff\n    slli.w       t2,    t1,    6\n    srli.w       t3,    t1,    2\n    or           t1,    t2,    t3\n    st.h         t1,    a0,    0\n    addi.d       a0,    a0,    2\n    bnez         t0,    3b\n4:\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/input.S", "line_start": 761, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/input.S:7", "text": "vstelm.d        vr19,   a1,    0,    0\n    addi.d          a3,     a3,    -4\n    addi.d          a5,     a5,    4\n    addi.d          a6,     a6,    4\n    addi.d          a7,     a7,    4\n    addi.d          a0,     a0,    8\n    addi.d          a1,     a1,    8\n    bge             a3,     t7,    .LOOP_WIDTH4\n    blt             zero,   a3,    .LOOP_WIDTH\n    b               .LOOP_END\n\n.LOOP_WIDTH:\n    ld.bu           t0,     a5,    0\n    ld.bu           t4,     a6,    0\n    ld.bu           t6,     a7,    0\n    mul.w           t8,     t6,    t1\n    mul.w           t7,     t0,    t2\n    add.w           t8,     t8,    t7\n    mul.w           t7,     t4,    t3\n    add.w           t8,     t8,    t7\n    add.w           t8,     t8,    t5\n    srai.w          t8,     t8,    9\n    st.h            t8,     a0,    0\n    mul.w           t8,     t6,    s1\n    mul.w           t7,     t0,    s2\n    add.w           t8,     t8,    t7\n    mul.w           t7,     t4,    s3\n    add.w           t8,     t8,    t7\n    add.w           t8,     t8,    t5\n    srai.w          t8,     t8,    9\n    st.h            t8,     a1,    0\n    addi.d          a3,     a3,    -1\n    addi.d          a5,     a5,    1\n    addi.d          a6,     a6,    1\n    addi.d          a7,     a7,    1\n    addi.d          a0,     a0,    2\n    addi.d          a1,     a1,    2\n    blt             zero,   a3,    .LOOP_WIDTH\n\n.LOOP_END:\n    ld.d            s1,     sp,    0\n    ld.d            s2,     sp,    8\n    ld.d            s3,     sp,    16\n    addi.d          sp,     sp,    24\nendfunc", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/input.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/loongarch/input.S", "line_start": 241, "line_end": 285}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:1", "text": "/*\n * Loongson LSX optimized swscale\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Lu Wang <wanglu@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/loongarch/loongson_asm.S\"\n\n/* static void yuv2planeX_8_lsx(const int16_t *filter, int filterSize,\n *                                 const int16_t **src, uint8_t *dest, int dstW,\n *                                 const uint8_t *dither, int offset)\n */\nfunction yuv2planeX_8_lsx\n    addi.w          t1,     a6,     1\n    addi.w          t2,     a6,     2\n    addi.w          t3,     a6,     3\n    addi.w          t4,     a6,     4\n    addi.w          t5,     a6,     5\n    addi.w          t6,     a6,     6\n    addi.w          t7,     a6,     7\n    andi            t0,     a6,     7\n    andi            t1,     t1,     7\n    andi            t2,     t2,     7\n    andi            t3,     t3,     7\n    andi            t4,     t4,     7\n    andi            t5,     t5,     7\n    andi            t6,     t6,     7\n    andi            t7,     t7,     7\n    ldx.bu          t0,     a5,     t0\n    ldx.bu          t1,     a5,     t1\n    ldx.bu          t2,     a5,     t2\n    ldx.bu          t3,     a5,     t3\n    ldx.bu          t4,     a5,     t4\n    ldx.bu          t5,     a5,     t5\n    ldx.bu          t6,     a5,     t6\n    ldx.bu          t7,     a5,     t7\n    vreplgr2vr.w    vr0,    t0\n    vreplgr2vr.w    vr1,    t1\n    vreplgr2vr.w    vr2,    t2\n    vreplgr2vr.w    vr3,    t3\n    vreplgr2vr.w    vr4,    t4\n    vreplgr2vr.w    vr5,    t5\n    vreplgr2vr.w    vr6,    t6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:2", "text": "andi            t3,     t3,     7\n    andi            t4,     t4,     7\n    andi            t5,     t5,     7\n    andi            t6,     t6,     7\n    andi            t7,     t7,     7\n    ldx.bu          t0,     a5,     t0\n    ldx.bu          t1,     a5,     t1\n    ldx.bu          t2,     a5,     t2\n    ldx.bu          t3,     a5,     t3\n    ldx.bu          t4,     a5,     t4\n    ldx.bu          t5,     a5,     t5\n    ldx.bu          t6,     a5,     t6\n    ldx.bu          t7,     a5,     t7\n    vreplgr2vr.w    vr0,    t0\n    vreplgr2vr.w    vr1,    t1\n    vreplgr2vr.w    vr2,    t2\n    vreplgr2vr.w    vr3,    t3\n    vreplgr2vr.w    vr4,    t4\n    vreplgr2vr.w    vr5,    t5\n    vreplgr2vr.w    vr6,    t6\n    vreplgr2vr.w    vr7,    t7\n    vilvl.w         vr0,    vr2,    vr0\n    vilvl.w         vr4,    vr6,    vr4\n    vilvl.w         vr1,    vr3,    vr1\n    vilvl.w         vr5,    vr7,    vr5\n    vilvl.d         vr12,   vr4,    vr0\n    vilvl.d         vr13,   vr5,    vr1\n    li.w            t5,     0\n    li.w            t8,     8\n    bge             a4,     t8,     .WIDTH8\n    blt             zero,   a4,     .WIDTH\n    b               .END\n\n.WIDTH8:\n    li.d            t1,     0\n    li.d            t4,     0\n    vslli.w         vr2,    vr12,   12\n    vslli.w         vr3,    vr13,   12\n    move            t3,     a0\n\n.FILTERSIZE8:\n    ldx.d           t2,     a2,     t1\n    vldx            vr4,    t2,     t5\n    vldrepl.h       vr5,    t3,     0\n    vmaddwev.w.h    vr2,    vr4,    vr5\n    vmaddwod.w.h    vr3,    vr4,    vr5\n    addi.d          t1,     t1,     8\n    addi.d          t3,     t3,     2\n    addi.d          t4,     t4,     1\n    blt             t4,     a1,     .FILTERSIZE8\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n    fst.d           f2,     a3,     0\n    addi.d          t5,     t5,     16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:3", "text": ".FILTERSIZE8:\n    ldx.d           t2,     a2,     t1\n    vldx            vr4,    t2,     t5\n    vldrepl.h       vr5,    t3,     0\n    vmaddwev.w.h    vr2,    vr4,    vr5\n    vmaddwod.w.h    vr3,    vr4,    vr5\n    addi.d          t1,     t1,     8\n    addi.d          t3,     t3,     2\n    addi.d          t4,     t4,     1\n    blt             t4,     a1,     .FILTERSIZE8\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n    fst.d           f2,     a3,     0\n    addi.d          t5,     t5,     16\n    addi.d          a4,     a4,     -8\n    addi.d          a3,     a3,     8\n    bge             a4,     t8,     .WIDTH8\n    blt             zero,   a4,     .WIDTH\n    b               .END\n\n.WIDTH:\n    li.d            t1,     0\n    li.d            t4,     0\n    vslli.w         vr2,    vr12,   12\n    vslli.w         vr3,    vr13,   12\n.FILTERSIZE:\n    ldx.d           t2,     a2,     t1\n    vldx            vr4,    t2,     t5\n    vldrepl.h       vr5,    a0,     0\n    vmaddwev.w.h    vr2,    vr4,    vr5\n    vmaddwod.w.h    vr3,    vr4,    vr5\n    addi.d          t1,     t1,     8\n    addi.d          a0,     a0,     2\n    addi.d          t4,     t4,     1\n    blt             t4,     a1,     .FILTERSIZE\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n\n.DEST:\n    vstelm.b        vr2,    a3,     0,    0\n    vbsrl.v         vr2,    vr2,    1\n    addi.d          a4,     a4,     -1\n    addi.d          a3,     a3,     1\n    blt             zero,   a4,     .DEST\n.END:\nendfunc\n\n/*", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:4", "text": "blt             t4,     a1,     .FILTERSIZE\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n\n.DEST:\n    vstelm.b        vr2,    a3,     0,    0\n    vbsrl.v         vr2,    vr2,    1\n    addi.d          a4,     a4,     -1\n    addi.d          a3,     a3,     1\n    blt             zero,   a4,     .DEST\n.END:\nendfunc\n\n/*\n * void yuv2plane1_8_lsx(const int16_t *src, uint8_t *dest, int dstW,\n *                       const uint8_t *dither, int offset)\n */\nfunction yuv2plane1_8_lsx\n    addi.w       t1,    a4,    1\n    addi.w       t2,    a4,    2\n    addi.w       t3,    a4,    3\n    addi.w       t4,    a4,    4\n    addi.w       t5,    a4,    5\n    addi.w       t6,    a4,    6\n    addi.w       t7,    a4,    7\n    andi         t0,    a4,    7\n    andi         t1,    t1,    7\n    andi         t2,    t2,    7\n    andi         t3,    t3,    7\n    andi         t4,    t4,    7\n    andi         t5,    t5,    7\n    andi         t6,    t6,    7\n    andi         t7,    t7,    7\n    ldx.bu       t0,    a3,    t0\n    ldx.bu       t1,    a3,    t1\n    ldx.bu       t2,    a3,    t2\n    ldx.bu       t3,    a3,    t3\n    ldx.bu       t4,    a3,    t4\n    ldx.bu       t5,    a3,    t5\n    ldx.bu       t6,    a3,    t6\n    ldx.bu       t7,    a3,    t7\n    vinsgr2vr.h  vr1,   t0,    0\n    vinsgr2vr.h  vr1,   t1,    1\n    vinsgr2vr.h  vr1,   t2,    2\n    vinsgr2vr.h  vr1,   t3,    3\n    vinsgr2vr.h  vr1,   t4,    4\n    vinsgr2vr.h  vr1,   t5,    5\n    vinsgr2vr.h  vr1,   t6,    6\n    vinsgr2vr.h  vr1,   t7,    7\n    vsub.h       vr0,   vr0,   vr0\n    vilvl.h      vr2,   vr0,   vr1\n    vilvh.h      vr3,   vr0,   vr1\n\n    andi         t8,    a2,    7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:5", "text": "ldx.bu       t1,    a3,    t1\n    ldx.bu       t2,    a3,    t2\n    ldx.bu       t3,    a3,    t3\n    ldx.bu       t4,    a3,    t4\n    ldx.bu       t5,    a3,    t5\n    ldx.bu       t6,    a3,    t6\n    ldx.bu       t7,    a3,    t7\n    vinsgr2vr.h  vr1,   t0,    0\n    vinsgr2vr.h  vr1,   t1,    1\n    vinsgr2vr.h  vr1,   t2,    2\n    vinsgr2vr.h  vr1,   t3,    3\n    vinsgr2vr.h  vr1,   t4,    4\n    vinsgr2vr.h  vr1,   t5,    5\n    vinsgr2vr.h  vr1,   t6,    6\n    vinsgr2vr.h  vr1,   t7,    7\n    vsub.h       vr0,   vr0,   vr0\n    vilvl.h      vr2,   vr0,   vr1\n    vilvh.h      vr3,   vr0,   vr1\n\n    andi         t8,    a2,    7\n    srli.d       a2,    a2,    3\n    beqz         a2,    2f\n1:\n    vld          vr1,   a0,    0\n    addi.d       a0,    a0,    16\n    vshuf4i.d    vr0,   vr1,   8\n    vexth.w.h    vr4,   vr0\n    vexth.w.h    vr5,   vr1\n\n    vadd.w       vr4,   vr2,   vr4\n    vadd.w       vr5,   vr3,   vr5\n    vsrai.w      vr4,   vr4,   7\n    vsrai.w      vr5,   vr5,   7\n    vclip255.w   vr4,   vr4\n    vclip255.w   vr5,   vr5\n    vpickev.h    vr1,   vr5,   vr4\n    vpickev.b    vr1,   vr1,   vr1\n    fst.d        f1,    a1,    0\n    addi.d       a1,    a1,    8\n    addi.d       a2,    a2,    -1\n    bnez         a2,    1b\n2:\n    beqz         t8,    4f\n3:\n    add.w        a4,    a4,    t8\n    addi.w       t1,    a4,    1\n    addi.w       t2,    a4,    2\n    addi.w       t3,    a4,    3\n    addi.w       t4,    a4,    4\n    addi.w       t5,    a4,    5\n    addi.w       t6,    a4,    6\n    addi.w       t7,    a4,    7\n    andi         t0,    a4,    7\n    andi         t1,    t1,    7\n    andi         t2,    t2,    7\n    andi         t3,    t3,    7\n    andi         t4,    t4,    7\n    andi         t5,    t5,    7\n    andi         t6,    t6,    7\n    andi         t7,    t7,    7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:6", "text": "bnez         a2,    1b\n2:\n    beqz         t8,    4f\n3:\n    add.w        a4,    a4,    t8\n    addi.w       t1,    a4,    1\n    addi.w       t2,    a4,    2\n    addi.w       t3,    a4,    3\n    addi.w       t4,    a4,    4\n    addi.w       t5,    a4,    5\n    addi.w       t6,    a4,    6\n    addi.w       t7,    a4,    7\n    andi         t0,    a4,    7\n    andi         t1,    t1,    7\n    andi         t2,    t2,    7\n    andi         t3,    t3,    7\n    andi         t4,    t4,    7\n    andi         t5,    t5,    7\n    andi         t6,    t6,    7\n    andi         t7,    t7,    7\n    ldx.bu       t0,    a3,    t0\n    ldx.bu       t1,    a3,    t1\n    ldx.bu       t2,    a3,    t2\n    ldx.bu       t3,    a3,    t3\n    ldx.bu       t4,    a3,    t4\n    ldx.bu       t5,    a3,    t5\n    ldx.bu       t6,    a3,    t6\n    ldx.bu       t7,    a3,    t7\n    vinsgr2vr.h  vr1,   t0,    0\n    vinsgr2vr.h  vr1,   t1,    1\n    vinsgr2vr.h  vr1,   t2,    2\n    vinsgr2vr.h  vr1,   t3,    3\n    vinsgr2vr.h  vr1,   t4,    4\n    vinsgr2vr.h  vr1,   t5,    5\n    vinsgr2vr.h  vr1,   t6,    6\n    vinsgr2vr.h  vr1,   t7,    7\n    vsub.h       vr0,   vr0,   vr0\n    vilvl.h      vr2,   vr0,   vr1\n    vilvh.h      vr3,   vr0,   vr1\n\n    addi.d       a0,    a0,    -16\n    add.d        a0,    a0,    t8\n    add.d        a0,    a0,    t8\n    addi.d       a1,    a1,    -8\n    add.d        a1,    a1,    t8\n\n    vld          vr1,   a0,    0\n    vshuf4i.d    vr0,   vr1,   8\n    vexth.w.h    vr4,   vr0\n    vexth.w.h    vr5,   vr1\n\n    vadd.w       vr4,   vr2,   vr4\n    vadd.w       vr5,   vr3,   vr5\n    vsrai.w      vr4,   vr4,   7\n    vsrai.w      vr5,   vr5,   7\n    vclip255.w   vr4,   vr4\n    vclip255.w   vr5,   vr5\n    vpickev.h    vr1,   vr5,   vr4\n    vpickev.b    vr1,   vr1,   vr1\n    fst.d        f1,    a1,    0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:7", "text": "addi.d       a0,    a0,    -16\n    add.d        a0,    a0,    t8\n    add.d        a0,    a0,    t8\n    addi.d       a1,    a1,    -8\n    add.d        a1,    a1,    t8\n\n    vld          vr1,   a0,    0\n    vshuf4i.d    vr0,   vr1,   8\n    vexth.w.h    vr4,   vr0\n    vexth.w.h    vr5,   vr1\n\n    vadd.w       vr4,   vr2,   vr4\n    vadd.w       vr5,   vr3,   vr5\n    vsrai.w      vr4,   vr4,   7\n    vsrai.w      vr5,   vr5,   7\n    vclip255.w   vr4,   vr4\n    vclip255.w   vr5,   vr5\n    vpickev.h    vr1,   vr5,   vr4\n    vpickev.b    vr1,   vr1,   vr1\n    fst.d        f1,    a1,    0\n4:\nendfunc\n\nfunction yuv2plane1_8_lasx\n    addi.w       t1,    a4,    1\n    addi.w       t2,    a4,    2\n    addi.w       t3,    a4,    3\n    addi.w       t4,    a4,    4\n    addi.w       t5,    a4,    5\n    addi.w       t6,    a4,    6\n    addi.w       t7,    a4,    7\n    andi         t0,    a4,    7\n    andi         t1,    t1,    7\n    andi         t2,    t2,    7\n    andi         t3,    t3,    7\n    andi         t4,    t4,    7\n    andi         t5,    t5,    7\n    andi         t6,    t6,    7\n    andi         t7,    t7,    7\n    ldx.bu       t0,    a3,    t0\n    ldx.bu       t1,    a3,    t1\n    ldx.bu       t2,    a3,    t2\n    ldx.bu       t3,    a3,    t3\n    ldx.bu       t4,    a3,    t4\n    ldx.bu       t5,    a3,    t5\n    ldx.bu       t6,    a3,    t6\n    ldx.bu       t7,    a3,    t7\n    vinsgr2vr.h  vr1,   t0,    0\n    vinsgr2vr.h  vr1,   t1,    1\n    vinsgr2vr.h  vr1,   t2,    2\n    vinsgr2vr.h  vr1,   t3,    3\n    vinsgr2vr.h  vr1,   t4,    4\n    vinsgr2vr.h  vr1,   t5,    5\n    vinsgr2vr.h  vr1,   t6,    6\n    vinsgr2vr.h  vr1,   t7,    7\n    xvpermi.q    xr1,   xr1,   0\n    xvsub.h      xr0,   xr0,   xr0\n    xvilvl.h     xr2,   xr0,   xr1\n    xvilvh.h     xr3,   xr0,   xr1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:8", "text": "ldx.bu       t1,    a3,    t1\n    ldx.bu       t2,    a3,    t2\n    ldx.bu       t3,    a3,    t3\n    ldx.bu       t4,    a3,    t4\n    ldx.bu       t5,    a3,    t5\n    ldx.bu       t6,    a3,    t6\n    ldx.bu       t7,    a3,    t7\n    vinsgr2vr.h  vr1,   t0,    0\n    vinsgr2vr.h  vr1,   t1,    1\n    vinsgr2vr.h  vr1,   t2,    2\n    vinsgr2vr.h  vr1,   t3,    3\n    vinsgr2vr.h  vr1,   t4,    4\n    vinsgr2vr.h  vr1,   t5,    5\n    vinsgr2vr.h  vr1,   t6,    6\n    vinsgr2vr.h  vr1,   t7,    7\n    xvpermi.q    xr1,   xr1,   0\n    xvsub.h      xr0,   xr0,   xr0\n    xvilvl.h     xr2,   xr0,   xr1\n    xvilvh.h     xr3,   xr0,   xr1\n\n    andi         t8,    a2,    15\n    srli.d       a2,    a2,    4\n    beqz         a2,    2f\n1:\n    xvld         xr1,   a0,    0\n    addi.d       a0,    a0,    32\n    xvpermi.d    xr0,   xr1,   0xa0\n    xvexth.w.h   xr4,   xr0\n    xvexth.w.h   xr5,   xr1\n\n    xvadd.w      xr4,   xr2,   xr4\n    xvadd.w      xr5,   xr3,   xr5\n    xvsrai.w     xr4,   xr4,   7\n    xvsrai.w     xr5,   xr5,   7\n    xvclip255.w  xr4,   xr4\n    xvclip255.w  xr5,   xr5\n    xvpickev.h   xr1,   xr5,   xr4\n    xvpickev.b   xr0,   xr1,   xr1\n    xvpermi.q    xr1,   xr0,   1\n    fst.d        f0,    a1,    0\n    fst.d        f1,    a1,    8\n    addi.d       a1,    a1,    16\n    addi.d       a2,    a2,    -1\n    bnez         a2,    1b\n2:\n    beqz         t8,    4f\n3:\n    add.w        a4,    a4,    t8\n    addi.w       t1,    a4,    1\n    addi.w       t2,    a4,    2\n    addi.w       t3,    a4,    3\n    addi.w       t4,    a4,    4\n    addi.w       t5,    a4,    5\n    addi.w       t6,    a4,    6\n    addi.w       t7,    a4,    7\n    andi         t0,    a4,    7\n    andi         t1,    t1,    7\n    andi         t2,    t2,    7\n    andi         t3,    t3,    7\n    andi         t4,    t4,    7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:9", "text": "fst.d        f1,    a1,    8\n    addi.d       a1,    a1,    16\n    addi.d       a2,    a2,    -1\n    bnez         a2,    1b\n2:\n    beqz         t8,    4f\n3:\n    add.w        a4,    a4,    t8\n    addi.w       t1,    a4,    1\n    addi.w       t2,    a4,    2\n    addi.w       t3,    a4,    3\n    addi.w       t4,    a4,    4\n    addi.w       t5,    a4,    5\n    addi.w       t6,    a4,    6\n    addi.w       t7,    a4,    7\n    andi         t0,    a4,    7\n    andi         t1,    t1,    7\n    andi         t2,    t2,    7\n    andi         t3,    t3,    7\n    andi         t4,    t4,    7\n    andi         t5,    t5,    7\n    andi         t6,    t6,    7\n    andi         t7,    t7,    7\n    ldx.bu       t0,    a3,    t0\n    ldx.bu       t1,    a3,    t1\n    ldx.bu       t2,    a3,    t2\n    ldx.bu       t3,    a3,    t3\n    ldx.bu       t4,    a3,    t4\n    ldx.bu       t5,    a3,    t5\n    ldx.bu       t6,    a3,    t6\n    ldx.bu       t7,    a3,    t7\n    vinsgr2vr.h  vr1,   t0,    0\n    vinsgr2vr.h  vr1,   t1,    1\n    vinsgr2vr.h  vr1,   t2,    2\n    vinsgr2vr.h  vr1,   t3,    3\n    vinsgr2vr.h  vr1,   t4,    4\n    vinsgr2vr.h  vr1,   t5,    5\n    vinsgr2vr.h  vr1,   t6,    6\n    vinsgr2vr.h  vr1,   t7,    7\n    xvpermi.q    xr1,   xr1,   0\n    xvsub.h      xr0,   xr0,   xr0\n    xvilvl.h     xr2,   xr0,   xr1\n    xvilvh.h     xr3,   xr0,   xr1\n\n    addi.d       a0,    a0,    -32\n    add.d        a0,    a0,    t8\n    add.d        a0,    a0,    t8\n    addi.d       a1,    a1,    -16\n    add.d        a1,    a1,    t8\n\n    xvld         xr1,   a0,    0\n    xvpermi.d    xr0,   xr1,   0xa0\n    xvexth.w.h   xr4,   xr0\n    xvexth.w.h   xr5,   xr1\n\n    xvadd.w      xr4,   xr2,   xr4\n    xvadd.w      xr5,   xr3,   xr5\n    xvsrai.w     xr4,   xr4,   7\n    xvsrai.w     xr5,   xr5,   7\n    xvclip255.w  xr4,   xr4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:10", "text": "xvsub.h      xr0,   xr0,   xr0\n    xvilvl.h     xr2,   xr0,   xr1\n    xvilvh.h     xr3,   xr0,   xr1\n\n    addi.d       a0,    a0,    -32\n    add.d        a0,    a0,    t8\n    add.d        a0,    a0,    t8\n    addi.d       a1,    a1,    -16\n    add.d        a1,    a1,    t8\n\n    xvld         xr1,   a0,    0\n    xvpermi.d    xr0,   xr1,   0xa0\n    xvexth.w.h   xr4,   xr0\n    xvexth.w.h   xr5,   xr1\n\n    xvadd.w      xr4,   xr2,   xr4\n    xvadd.w      xr5,   xr3,   xr5\n    xvsrai.w     xr4,   xr4,   7\n    xvsrai.w     xr5,   xr5,   7\n    xvclip255.w  xr4,   xr4\n    xvclip255.w  xr5,   xr5\n    xvpickev.h   xr1,   xr5,   xr4\n    xvpickev.b   xr0,   xr1,   xr1\n    xvpermi.q    xr1,   xr0,   1\n    fst.d        f0,    a1,    0\n    fst.d        f1,    a1,    8\n4:\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/loongarch/output.S", "line_start": 361, "line_end": 388}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:1", "text": "/*\n * Loongson LSX optimized swscale\n *\n * Copyright (c) 2023 Loongson Technology Corporation Limited\n * Contributed by Lu Wang <wanglu@loongson.cn>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/loongarch/loongson_asm.S\"\n\n/* static void ff_yuv2planeX_8_lsx(const int16_t *filter, int filterSize,\n *                                 const int16_t **src, uint8_t *dest, int dstW,\n *                                 const uint8_t *dither, int offset)\n */\nfunction ff_yuv2planeX_8_lsx\n    addi.w          t1,     a6,     1\n    addi.w          t2,     a6,     2\n    addi.w          t3,     a6,     3\n    addi.w          t4,     a6,     4\n    addi.w          t5,     a6,     5\n    addi.w          t6,     a6,     6\n    addi.w          t7,     a6,     7\n    andi            t0,     a6,     7\n    andi            t1,     t1,     7\n    andi            t2,     t2,     7\n    andi            t3,     t3,     7\n    andi            t4,     t4,     7\n    andi            t5,     t5,     7\n    andi            t6,     t6,     7\n    andi            t7,     t7,     7\n    ldx.bu          t0,     a5,     t0\n    ldx.bu          t1,     a5,     t1\n    ldx.bu          t2,     a5,     t2\n    ldx.bu          t3,     a5,     t3\n    ldx.bu          t4,     a5,     t4\n    ldx.bu          t5,     a5,     t5\n    ldx.bu          t6,     a5,     t6\n    ldx.bu          t7,     a5,     t7\n    vreplgr2vr.w    vr0,    t0\n    vreplgr2vr.w    vr1,    t1\n    vreplgr2vr.w    vr2,    t2\n    vreplgr2vr.w    vr3,    t3\n    vreplgr2vr.w    vr4,    t4\n    vreplgr2vr.w    vr5,    t5\n    vreplgr2vr.w    vr6,    t6", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/loongarch/output.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:3", "text": ".FILTERSIZE8:\n    ldx.d           t2,     a2,     t1\n    vldx            vr4,    t2,     t5\n    vldrepl.h       vr5,    t3,     0\n    vmaddwev.w.h    vr2,    vr4,    vr5\n    vmaddwod.w.h    vr3,    vr4,    vr5\n    addi.d          t1,     t1,     8\n    addi.d          t3,     t3,     2\n    addi.d          t4,     t4,     1\n    blt             t4,     a1,     .FILTERSIZE8\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n    fst.d           f2,     a3,     0\n    addi.d          t5,     t5,     16\n    addi.d          a4,     a4,     -8\n    addi.d          a3,     a3,     8\n    bge             a4,     t8,     .WIDTH8\n    blt             zero,   a4,     .WIDTH\n    b               .END\n\n.WIDTH:\n    li.d            t1,     0\n    li.d            t4,     0\n    vslli.w         vr2,    vr12,   12\n    vslli.w         vr3,    vr13,   12\n.FILTERSIZE:\n    ldx.d           t2,     a2,     t1\n    vldx            vr4,    t2,     t5\n    vldrepl.h       vr5,    a0,     0\n    vmaddwev.w.h    vr2,    vr4,    vr5\n    vmaddwod.w.h    vr3,    vr4,    vr5\n    addi.d          t1,     t1,     8\n    addi.d          a0,     a0,     2\n    addi.d          t4,     t4,     1\n    blt             t4,     a1,     .FILTERSIZE\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n\n.DEST:\n    vstelm.b        vr2,    a3,     0,    0\n    vbsrl.v         vr2,    vr2,    1\n    addi.d          a4,     a4,     -1\n    addi.d          a3,     a3,     1\n    blt             zero,   a4,     .DEST\n.END:\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/loongarch/output.S", "line_start": 81, "line_end": 138}
{"id": "FFmpeg/FFmpeg:libswscale/loongarch/output.S:4", "text": "blt             t4,     a1,     .FILTERSIZE\n    vsrai.w         vr2,    vr2,    19\n    vsrai.w         vr3,    vr3,    19\n    vclip255.w      vr2,    vr2\n    vclip255.w      vr3,    vr3\n    vpickev.h       vr2,    vr3,    vr2\n    vpickev.b       vr2,    vr2,    vr2\n    vbsrl.v         vr3,    vr2,    4\n    vilvl.b         vr2,    vr3,    vr2\n\n.DEST:\n    vstelm.b        vr2,    a3,     0,    0\n    vbsrl.v         vr2,    vr2,    1\n    addi.d          a4,     a4,     -1\n    addi.d          a3,     a3,     1\n    blt             zero,   a4,     .DEST\n.END:\nendfunc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/loongarch/output.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/loongarch/output.S", "line_start": 121, "line_end": 138}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bgr24ToY_rvv, zve32x\n        lpad    0\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_rgb24ToY_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a4, e32, m8, ta, ma\n        vlseg3e8.v v0, (a1)\n        sub        a4, a4, t0\n        vzext.vf4  v8, v0\n        sh1add     t5, t0, t0 # t1 = 3 * t0\n        vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_rvv, zve32x\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:2", "text": "vzext.vf4  v8, v0\n        sh1add     t5, t0, t0 # t1 = 3 * t0\n        vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_rvv, zve32x\n        lpad    0\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_rgb24ToUV_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a5, e32, m8, ta, ma\n        vlseg3e8.v v0, (a3)\n        sub        a5, a5, t0\n        vzext.vf4  v16, v0\n        sh1add     a6, t0, t0\n        vzext.vf4  v24, v2\n        vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:3", "text": "sub        a5, a5, t0\n        vzext.vf4  v16, v0\n        sh1add     a6, t0, t0\n        vzext.vf4  v24, v2\n        vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_half_rvv, zve32x\n        lpad    0\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_rgb24ToUV_half_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:4", "text": "lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4\n        vmacc.vx   v0, t2, v24\n        vmacc.vx   v4, t5, v24\n        vmacc.vx   v0, t3, v28\n        vmacc.vx   v4, t6, v28\n        vadd.vx    v0, v0, a7\n        vadd.vx    v4, v4, a7\n        vsetvli    zero, zero, e16, m2, ta, ma\n        vnsra.wi   v0, v0, 15 - 5\n        vnsra.wi   v2, v4, 15 - 5\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v2, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc\n\n        .macro  rgba_input chr0, chr1, high\nfunc ff_\\chr1\\()ToY_rvv, zve32x\n        lpad    0\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToY_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:5", "text": "lpad    0\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToY_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24\n        .else\n        vand.vx   v8, v0, t5\n        .endif\n        sh2add    a1, t0, a1\n        vsrl.vi   v16, v0, 8 * (1 + \\high)\n        vmul.vx   v24, v8, t1\n        vand.vx   v16, v16, t5\n        vsrl.vi   v8, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t2, v16\n        vand.vx   v8, v8, t5\n        vadd.vx   v24, v24, t4\n        vmacc.vx  v24, t3, v8\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        bnez      a4, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_rvv, zve32x\n        lpad    0\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:6", "text": "func ff_\\chr1\\()ToUV_rvv, zve32x\n        lpad    0\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli   t0, a5, e32, m8, ta, ma\n        vle32.v   v0, (a3)\n        sub       a5, a5, t0\n        .if     \\high\n        vsrl.vi   v24, v0, 24\n        .else\n        vand.vx   v24, v0, a6\n        .endif\n        sh2add    a3, t0, a3\n        vsrl.vi   v8, v0, 8 * (1 + \\high)\n        vmul.vx   v16, v24, t1\n        vand.vx   v8, v8, a6\n        vmul.vx   v24, v24, t4\n        vmacc.vx  v16, t2, v8\n        vsrl.vi   v0, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t5, v8\n        vand.vx   v0, v0, a6\n        vadd.vx   v16, v16, a7\n        vadd.vx   v24, v24, a7\n        vmacc.vx  v16, t3, v0\n        vmacc.vx  v24, t6, v0\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v16, 15 - 6\n        vnsra.wi  v4, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        vse16.v   v4, (a1)\n        sh1add    a1, t0, a1\n        bnez      a5, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_half_rvv, zve32x\n        lpad    0\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:7", "text": "vadd.vx   v24, v24, a7\n        vmacc.vx  v16, t3, v0\n        vmacc.vx  v24, t6, v0\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v16, 15 - 6\n        vnsra.wi  v4, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        vse16.v   v4, (a1)\n        sh1add    a1, t0, a1\n        bnez      a5, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_half_rvv, zve32x\n        lpad    0\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_half_rvv, zve32x, zba\n        lpad    0\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli     t0, a5, e32, m4, ta, ma\n        vlseg2e32.v v0, (a3)\n        sub         a5, a5, t0\n        .if     \\high\n        vsrl.vi     v8, v0, 24\n        vsrl.vi     v12, v4, 24\n        .else\n        vand.vx     v8, v0, a6\n        vand.vx     v12, v4, a6\n        .endif\n        sh3add      a3, t0, a3\n        vsrl.vi     v16, v0, 8 * (1 + \\high)\n        vsrl.vi     v20, v4, 8 * (1 + \\high)\n        vsrl.vi     v24, v0, 8 * (2 - \\high)\n        vsrl.vi     v28, v4, 8 * (2 - \\high)\n        vand.vx     v16, v16, a6\n        vand.vx     v20, v20, a6\n        vand.vx     v24, v24, a6\n        vand.vx     v28, v28, a6\n        vadd.vv     v8, v8, v12\n        vadd.vv     v16, v16, v20\n        vadd.vv     v24, v24, v28\n        vmul.vx     v0, v8, t1\n        vmul.vx     v4, v8, t4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:8", "text": "vsrl.vi     v8, v0, 24\n        vsrl.vi     v12, v4, 24\n        .else\n        vand.vx     v8, v0, a6\n        vand.vx     v12, v4, a6\n        .endif\n        sh3add      a3, t0, a3\n        vsrl.vi     v16, v0, 8 * (1 + \\high)\n        vsrl.vi     v20, v4, 8 * (1 + \\high)\n        vsrl.vi     v24, v0, 8 * (2 - \\high)\n        vsrl.vi     v28, v4, 8 * (2 - \\high)\n        vand.vx     v16, v16, a6\n        vand.vx     v20, v20, a6\n        vand.vx     v24, v24, a6\n        vand.vx     v28, v28, a6\n        vadd.vv     v8, v8, v12\n        vadd.vv     v16, v16, v20\n        vadd.vv     v24, v24, v28\n        vmul.vx     v0, v8, t1\n        vmul.vx     v4, v8, t4\n        vmacc.vx    v0, t2, v16\n        vmacc.vx    v4, t5, v16\n        vmacc.vx    v0, t3, v24\n        vmacc.vx    v4, t6, v24\n        vadd.vx     v0, v0, a7\n        vadd.vx     v4, v4, a7\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vnsra.wi    v0, v0, 15 - 5\n        vnsra.wi    v2, v4, 15 - 5\n        vse16.v     v0, (a0)\n        sh1add      a0, t0, a0\n        vse16.v     v2, (a1)\n        sh1add      a1, t0, a1\n        bnez        a5, 2b\n\n        ret\nendfunc\n        .endm\n\nrgba_input rgba32, bgra32, 0\nrgba_input abgr32, argb32, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/input_rvv.S", "line_start": 281, "line_end": 321}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bgr24ToY_rvv, zve32x\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_rgb24ToY_rvv, zve32x, zba\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a4, e32, m8, ta, ma\n        vlseg3e8.v v0, (a1)\n        sub        a4, a4, t0\n        vzext.vf4  v8, v0\n        sh1add     t5, t0, t0 # t1 = 3 * t0\n        vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:2", "text": "vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_rgb24ToUV_rvv, zve32x, zba\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a5, e32, m8, ta, ma\n        vlseg3e8.v v0, (a3)\n        sub        a5, a5, t0\n        vzext.vf4  v16, v0\n        sh1add     a6, t0, t0\n        vzext.vf4  v24, v2\n        vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:3", "text": "vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_half_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_rgb24ToUV_half_rvv, zve32x, zba\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4\n        vmacc.vx   v0, t2, v24\n        vmacc.vx   v4, t5, v24\n        vmacc.vx   v0, t3, v28\n        vmacc.vx   v4, t6, v28\n        vadd.vx    v0, v0, a7\n        vadd.vx    v4, v4, a7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:4", "text": "vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4\n        vmacc.vx   v0, t2, v24\n        vmacc.vx   v4, t5, v24\n        vmacc.vx   v0, t3, v28\n        vmacc.vx   v4, t6, v28\n        vadd.vx    v0, v0, a7\n        vadd.vx    v4, v4, a7\n        vsetvli    zero, zero, e16, m2, ta, ma\n        vnsra.wi   v0, v0, 15 - 5\n        vnsra.wi   v2, v4, 15 - 5\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v2, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc\n\n        .macro  rgba_input chr0, chr1, high\nfunc ff_\\chr1\\()ToY_rvv, zve32x\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToY_rvv, zve32x, zba\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24\n        .else\n        vand.vx   v8, v0, t5\n        .endif\n        sh2add    a1, t0, a1\n        vsrl.vi   v16, v0, 8 * (1 + \\high)\n        vmul.vx   v24, v8, t1\n        vand.vx   v16, v16, t5\n        vsrl.vi   v8, v0, 8 * (2 - \\high)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:5", "text": "lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24\n        .else\n        vand.vx   v8, v0, t5\n        .endif\n        sh2add    a1, t0, a1\n        vsrl.vi   v16, v0, 8 * (1 + \\high)\n        vmul.vx   v24, v8, t1\n        vand.vx   v16, v16, t5\n        vsrl.vi   v8, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t2, v16\n        vand.vx   v8, v8, t5\n        vadd.vx   v24, v24, t4\n        vmacc.vx  v24, t3, v8\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        bnez      a4, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_rvv, zve32x, zba\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli   t0, a5, e32, m8, ta, ma\n        vle32.v   v0, (a3)\n        sub       a5, a5, t0\n        .if     \\high\n        vsrl.vi   v24, v0, 24\n        .else\n        vand.vx   v24, v0, a6\n        .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:6", "text": "func ff_\\chr0\\()ToUV_rvv, zve32x, zba\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli   t0, a5, e32, m8, ta, ma\n        vle32.v   v0, (a3)\n        sub       a5, a5, t0\n        .if     \\high\n        vsrl.vi   v24, v0, 24\n        .else\n        vand.vx   v24, v0, a6\n        .endif\n        sh2add    a3, t0, a3\n        vsrl.vi   v8, v0, 8 * (1 + \\high)\n        vmul.vx   v16, v24, t1\n        vand.vx   v8, v8, a6\n        vmul.vx   v24, v24, t4\n        vmacc.vx  v16, t2, v8\n        vsrl.vi   v0, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t5, v8\n        vand.vx   v0, v0, a6\n        vadd.vx   v16, v16, a7\n        vadd.vx   v24, v24, a7\n        vmacc.vx  v16, t3, v0\n        vmacc.vx  v24, t6, v0\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v16, 15 - 6\n        vnsra.wi  v4, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        vse16.v   v4, (a1)\n        sh1add    a1, t0, a1\n        bnez      a5, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_half_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_half_rvv, zve32x, zba\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:7", "text": "bnez      a5, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_half_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_half_rvv, zve32x, zba\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli     t0, a5, e32, m4, ta, ma\n        vlseg2e32.v v0, (a3)\n        sub         a5, a5, t0\n        .if     \\high\n        vsrl.vi     v8, v0, 24\n        vsrl.vi     v12, v4, 24\n        .else\n        vand.vx     v8, v0, a6\n        vand.vx     v12, v4, a6\n        .endif\n        sh3add      a3, t0, a3\n        vsrl.vi     v16, v0, 8 * (1 + \\high)\n        vsrl.vi     v20, v4, 8 * (1 + \\high)\n        vsrl.vi     v24, v0, 8 * (2 - \\high)\n        vsrl.vi     v28, v4, 8 * (2 - \\high)\n        vand.vx     v16, v16, a6\n        vand.vx     v20, v20, a6\n        vand.vx     v24, v24, a6\n        vand.vx     v28, v28, a6\n        vadd.vv     v8, v8, v12\n        vadd.vv     v16, v16, v20\n        vadd.vv     v24, v24, v28\n        vmul.vx     v0, v8, t1\n        vmul.vx     v4, v8, t4\n        vmacc.vx    v0, t2, v16\n        vmacc.vx    v4, t5, v16\n        vmacc.vx    v0, t3, v24\n        vmacc.vx    v4, t6, v24\n        vadd.vx     v0, v0, a7\n        vadd.vx     v4, v4, a7\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vnsra.wi    v0, v0, 15 - 5\n        vnsra.wi    v2, v4, 15 - 5\n        vse16.v     v0, (a0)\n        sh1add      a0, t0, a0\n        vse16.v     v2, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:8", "text": "vand.vx     v20, v20, a6\n        vand.vx     v24, v24, a6\n        vand.vx     v28, v28, a6\n        vadd.vv     v8, v8, v12\n        vadd.vv     v16, v16, v20\n        vadd.vv     v24, v24, v28\n        vmul.vx     v0, v8, t1\n        vmul.vx     v4, v8, t4\n        vmacc.vx    v0, t2, v16\n        vmacc.vx    v4, t5, v16\n        vmacc.vx    v0, t3, v24\n        vmacc.vx    v4, t6, v24\n        vadd.vx     v0, v0, a7\n        vadd.vx     v4, v4, a7\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vnsra.wi    v0, v0, 15 - 5\n        vnsra.wi    v2, v4, 15 - 5\n        vse16.v     v0, (a0)\n        sh1add      a0, t0, a0\n        vse16.v     v2, (a1)\n        sh1add      a1, t0, a1\n        bnez        a5, 2b\n\n        ret\nendfunc\n        .endm\n\nrgba_input rgba32, bgra32, 0\nrgba_input abgr32, argb32, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/input_rvv.S", "line_start": 281, "line_end": 309}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bgr24ToY_rvv, zve32x\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_rgb24ToY_rvv, zve32x\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a4, e32, m8, ta, ma\n        vlseg3e8.v v0, (a1)\n        sub        a4, a4, t0\n        vzext.vf4  v8, v0\n        sh1add     t5, t0, t0 # t1 = 3 * t0\n        vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:2", "text": "vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_rgb24ToUV_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a5, e32, m8, ta, ma\n        vlseg3e8.v v0, (a3)\n        sub        a5, a5, t0\n        vzext.vf4  v16, v0\n        sh1add     a6, t0, t0\n        vzext.vf4  v24, v2\n        vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:3", "text": "vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc\n\nfunc ff_bgr24ToUV_half_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_rgb24ToUV_half_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4\n        vmacc.vx   v0, t2, v24\n        vmacc.vx   v4, t5, v24\n        vmacc.vx   v0, t3, v28\n        vmacc.vx   v4, t6, v28\n        vadd.vx    v0, v0, a7\n        vadd.vx    v4, v4, a7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:4", "text": "vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4\n        vmacc.vx   v0, t2, v24\n        vmacc.vx   v4, t5, v24\n        vmacc.vx   v0, t3, v28\n        vmacc.vx   v4, t6, v28\n        vadd.vx    v0, v0, a7\n        vadd.vx    v4, v4, a7\n        vsetvli    zero, zero, e16, m2, ta, ma\n        vnsra.wi   v0, v0, 15 - 5\n        vnsra.wi   v2, v4, 15 - 5\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v2, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc\n\n        .macro  rgba_input chr0, chr1, high\nfunc ff_\\chr1\\()ToY_rvv, zve32x\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToY_rvv, zve32x\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24\n        .else\n        vand.vx   v8, v0, t5\n        .endif\n        sh2add    a1, t0, a1\n        vsrl.vi   v16, v0, 8 * (1 + \\high)\n        vmul.vx   v24, v8, t1\n        vand.vx   v16, v16, t5\n        vsrl.vi   v8, v0, 8 * (2 - \\high)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:5", "text": "lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24\n        .else\n        vand.vx   v8, v0, t5\n        .endif\n        sh2add    a1, t0, a1\n        vsrl.vi   v16, v0, 8 * (1 + \\high)\n        vmul.vx   v24, v8, t1\n        vand.vx   v16, v16, t5\n        vsrl.vi   v8, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t2, v16\n        vand.vx   v8, v8, t5\n        vadd.vx   v24, v24, t4\n        vmacc.vx  v24, t3, v8\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        bnez      a4, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli   t0, a5, e32, m8, ta, ma\n        vle32.v   v0, (a3)\n        sub       a5, a5, t0\n        .if     \\high\n        vsrl.vi   v24, v0, 24\n        .else\n        vand.vx   v24, v0, a6\n        .endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:6", "text": "func ff_\\chr0\\()ToUV_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli   t0, a5, e32, m8, ta, ma\n        vle32.v   v0, (a3)\n        sub       a5, a5, t0\n        .if     \\high\n        vsrl.vi   v24, v0, 24\n        .else\n        vand.vx   v24, v0, a6\n        .endif\n        sh2add    a3, t0, a3\n        vsrl.vi   v8, v0, 8 * (1 + \\high)\n        vmul.vx   v16, v24, t1\n        vand.vx   v8, v8, a6\n        vmul.vx   v24, v24, t4\n        vmacc.vx  v16, t2, v8\n        vsrl.vi   v0, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t5, v8\n        vand.vx   v0, v0, a6\n        vadd.vx   v16, v16, a7\n        vadd.vx   v24, v24, a7\n        vmacc.vx  v16, t3, v0\n        vmacc.vx  v24, t6, v0\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v16, 15 - 6\n        vnsra.wi  v4, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        vse16.v   v4, (a1)\n        sh1add    a1, t0, a1\n        bnez      a5, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_half_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_half_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:7", "text": "bnez      a5, 2b\n\n        ret\nendfunc\n\nfunc ff_\\chr1\\()ToUV_half_rvv, zve32x\n        lw      t1, 20(a6) # BU\n        lw      t4, 32(a6) # BV\n        lw      t3, 12(a6) # RU\n        lw      t6, 24(a6) # RV\n        j       1f\nendfunc\n\nfunc ff_\\chr0\\()ToUV_half_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << 15) + (1 << (15 - 6))\n2:\n        vsetvli     t0, a5, e32, m4, ta, ma\n        vlseg2e32.v v0, (a3)\n        sub         a5, a5, t0\n        .if     \\high\n        vsrl.vi     v8, v0, 24\n        vsrl.vi     v12, v4, 24\n        .else\n        vand.vx     v8, v0, a6\n        vand.vx     v12, v4, a6\n        .endif\n        sh3add      a3, t0, a3\n        vsrl.vi     v16, v0, 8 * (1 + \\high)\n        vsrl.vi     v20, v4, 8 * (1 + \\high)\n        vsrl.vi     v24, v0, 8 * (2 - \\high)\n        vsrl.vi     v28, v4, 8 * (2 - \\high)\n        vand.vx     v16, v16, a6\n        vand.vx     v20, v20, a6\n        vand.vx     v24, v24, a6\n        vand.vx     v28, v28, a6\n        vadd.vv     v8, v8, v12\n        vadd.vv     v16, v16, v20\n        vadd.vv     v24, v24, v28\n        vmul.vx     v0, v8, t1\n        vmul.vx     v4, v8, t4\n        vmacc.vx    v0, t2, v16\n        vmacc.vx    v4, t5, v16\n        vmacc.vx    v0, t3, v24\n        vmacc.vx    v4, t6, v24\n        vadd.vx     v0, v0, a7\n        vadd.vx     v4, v4, a7\n        vsetvli     zero, zero, e16, m2, ta, ma\n        vnsra.wi    v0, v0, 15 - 5\n        vnsra.wi    v2, v4, 15 - 5\n        vse16.v     v0, (a0)\n        sh1add      a0, t0, a0\n        vse16.v     v2, (a1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "7a3369398f8b7869bec56fd2b96f22d5cc967e30", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7a3369398f8b7869bec56fd2b96f22d5cc967e30/libswscale/riscv/input_rvv.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:6", "text": "func ff_\\chr0\\()ToUV_rvv, zve32x\n        lw      t1, 12(a6) # RU\n        lw      t4, 24(a6) # RV\n        lw      t3, 20(a6) # BU\n        lw      t6, 32(a6) # BV\n1:\n        lw      t2, 16(a6) # GU\n        lw      t5, 28(a6) # GV\n        li      a6, 0xff\n        li      a7, (256 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli   t0, a5, e32, m8, ta, ma\n        vle32.v   v0, (a3)\n        sub       a5, a5, t0\n        .if     \\high\n        vsrl.vi   v24, v0, 24\n        .else\n        vand.vx   v24, v0, a6\n        .endif\n        sh2add    a3, t0, a3\n        vsrl.vi   v8, v0, 8 * (1 + \\high)\n        vmul.vx   v16, v24, t1\n        vand.vx   v8, v8, a6\n        vmul.vx   v24, v24, t4\n        vmacc.vx  v16, t2, v8\n        vsrl.vi   v0, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t5, v8\n        vand.vx   v0, v0, a6\n        vadd.vx   v16, v16, a7\n        vadd.vx   v24, v24, a7\n        vmacc.vx  v16, t3, v0\n        vmacc.vx  v24, t6, v0\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v16, 15 - 6\n        vnsra.wi  v4, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        vse16.v   v4, (a1)\n        sh1add    a1, t0, a1\n        bnez      a5, 2b\n\n        ret\nendfunc\n        .endm\n\nrgba_input rgba32, bgra32, 0\nrgba_input abgr32, argb32, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e2f069905e7664e37e0ad54ddd3ffbfcdbb268c0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e2f069905e7664e37e0ad54ddd3ffbfcdbb268c0/libswscale/riscv/input_rvv.S", "line_start": 201, "line_end": 248}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:5", "text": "lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n        li      t5, 0xff\n2:\n        vsetvli   t0, a4, e32, m8, ta, ma\n        vle32.v   v0, (a1)\n        sub       a4, a4, t0\n        .if     \\high\n        vsrl.vi   v8, v0, 24\n        .else\n        vand.vx   v8, v0, t5\n        .endif\n        sh2add    a1, t0, a1\n        vsrl.vi   v16, v0, 8 * (1 + \\high)\n        vmul.vx   v24, v8, t1\n        vand.vx   v16, v16, t5\n        vsrl.vi   v8, v0, 8 * (2 - \\high)\n        vmacc.vx  v24, t2, v16\n        vand.vx   v8, v8, t5\n        vadd.vx   v24, v24, t4\n        vmacc.vx  v24, t3, v8\n        vsetvli   zero, zero, e16, m4, ta, ma\n        vnsra.wi  v0, v24, 15 - 6\n        vse16.v   v0, (a0)\n        sh1add    a0, t0, a0\n        bnez      a4, 2b\n\n        ret\nendfunc\n        .endm\n\nrgba_input rgba32, bgra32, 0\nrgba_input abgr32, argb32, 1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "f5555cb106a17b702e19ff1373418019e64557da", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f5555cb106a17b702e19ff1373418019e64557da/libswscale/riscv/input_rvv.S", "line_start": 161, "line_end": 196}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:4", "text": "vsetvli    t0, a5, e8, m1, ta, ma\n        vlseg6e8.v v0, (a3)\n        sh1add     a6, t0, t0\n        vwaddu.vv  v8, v0, v3\n        sub        a5, a5, t0\n        vwaddu.vv  v10, v1, v4\n        sh1add     a3, a6, a3\n        vwaddu.vv  v12, v2, v5\n        vsetvli    zero, zero, e32, m4, ta, ma\n        vzext.vf2  v20, v8\n        vzext.vf2  v24, v10\n        vzext.vf2  v28, v12\n        vmul.vx    v0, v20, t1\n        vmul.vx    v4, v20, t4\n        vmacc.vx   v0, t2, v24\n        vmacc.vx   v4, t5, v24\n        vmacc.vx   v0, t3, v28\n        vmacc.vx   v4, t6, v28\n        vadd.vx    v0, v0, a7\n        vadd.vx    v4, v4, a7\n        vsetvli    zero, zero, e16, m2, ta, ma\n        vnsra.wi   v0, v0, 15 - 5\n        vnsra.wi   v2, v4, 15 - 5\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v2, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "e0f4d185f1ea12e9a7bfa078a4224687102751e7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e0f4d185f1ea12e9a7bfa078a4224687102751e7/libswscale/riscv/input_rvv.S", "line_start": 121, "line_end": 151}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:3", "text": "vmul.vx    v8, v16, t1\n        add        a3, a6, a3\n        vmul.vx    v16, v16, t4\n        vmacc.vx   v8, t2, v24\n        vmacc.vx   v16, t5, v24\n        vzext.vf4  v24, v4\n        vadd.vx    v8, v8, a7\n        vadd.vx    v16, v16, a7\n        vmacc.vx   v8, t3, v24\n        vmacc.vx   v16, t6, v24\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vnsra.wi   v4, v16, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        vse16.v    v4, (a1)\n        sh1add     a1, t0, a1\n        bnez       a5, 2b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "3ef5867e4b6d7966a061c99f62da274e7a5386b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3ef5867e4b6d7966a061c99f62da274e7a5386b7/libswscale/riscv/input_rvv.S", "line_start": 81, "line_end": 101}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/input_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_bgr24ToY_rvv, zve32x\n        lw      t1, 8(a5) # BY\n        lw      t3, 0(a5) # RY\n        j       1f\nendfunc\n\nfunc ff_rgb24ToY_rvv, zve32x\n        lw      t1, 0(a5) # RY\n        lw      t3, 8(a5) # BY\n1:\n        lw      t2, 4(a5) # GY\n        li      t4, (32 << (15 - 1)) + (1 << (15 - 7))\n2:\n        vsetvli    t0, a4, e32, m8, ta, ma\n        vlseg3e8.v v0, (a1)\n        sub        a4, a4, t0\n        vzext.vf4  v8, v0\n        sh1add     t5, t0, t0 # t1 = 3 * t0\n        vzext.vf4  v16, v2\n        vzext.vf4  v24, v4\n        add        a1, t5, a1\n        vmul.vx    v8, v8, t1\n        vmacc.vx   v8, t2, v16\n        vmacc.vx   v8, t3, v24\n        vadd.vx    v8, v8, t4\n        vsetvli    zero, zero, e16, m4, ta, ma\n        vnsra.wi   v0, v8, 15 - 6\n        vse16.v    v0, (a0)\n        sh1add     a0, t0, a0\n        bnez       a4, 2b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/input_rvv.S", "license": "LGPL-2.1", "commit": "79dfdac4dbc7d6cb5316292247b26b39962dd471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79dfdac4dbc7d6cb5316292247b26b39962dd471/libswscale/riscv/input_rvv.S", "line_start": 1, "line_end": 55}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_range_lum_to_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li       t1, 30189\n        li       t2, 19077\n        li       t3, -39057361\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vmin.vx  v0, v0, t1\n        vwmul.vx v8, v0, t2\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret\nendfunc\n\nfunc ff_range_lum_from_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li       t1, 14071\n        li       t2, 33561947\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vwmul.vx v8, v0, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/range_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:2", "text": "ret\nendfunc\n\nfunc ff_range_lum_from_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li       t1, 14071\n        li       t2, 33561947\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vwmul.vx v8, v0, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_to_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li      t1, 30775\n        li      t2, 4663\n        li      t3, -9289992\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vmin.vx  v0, v0, t1\n        vmin.vx  v4, v4, t1\n        vwmul.vx v8, v0, t2\n        vwmul.vx v16, v4, t2\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t3\n        vadd.vx  v16, v16, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 12\n        vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/range_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:3", "text": "vadd.vx  v16, v16, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 12\n        vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vwmul.vx v8, v0, t1\n        vwmul.vx v16, v4, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vadd.vx  v16, v16, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 11\n        vnsra.wi v4, v16, 11\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/range_rvv.S", "line_start": 81, "line_end": 118}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:3", "text": "vadd.vx  v16, v16, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 12\n        vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x, zba\n        lpad    0\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vwmul.vx v8, v0, t1\n        vwmul.vx v16, v4, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vadd.vx  v16, v16, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 11\n        vnsra.wi v4, v16, 11\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v0, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "4f2472909eacb833682a7da79b0c893c8a356ce9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4f2472909eacb833682a7da79b0c893c8a356ce9/libswscale/riscv/range_rvv.S", "line_start": 81, "line_end": 118}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_range_lum_to_jpeg_16_rvv, zve32x, zba\n        li       t1, 30189\n        li       t2, 19077\n        li       t3, -39057361\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vmin.vx  v0, v0, t1\n        vwmul.vx v8, v0, t2\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret\nendfunc\n\nfunc ff_range_lum_from_jpeg_16_rvv, zve32x, zba\n        li       t1, 14071\n        li       t2, 33561947\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vwmul.vx v8, v0, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/range_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:2", "text": "ret\nendfunc\n\nfunc ff_range_lum_from_jpeg_16_rvv, zve32x, zba\n        li       t1, 14071\n        li       t2, 33561947\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vwmul.vx v8, v0, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_to_jpeg_16_rvv, zve32x, zba\n        li      t1, 30775\n        li      t2, 4663\n        li      t3, -9289992\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vmin.vx  v0, v0, t1\n        vmin.vx  v4, v4, t1\n        vwmul.vx v8, v0, t2\n        vwmul.vx v16, v4, t2\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t3\n        vadd.vx  v16, v16, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 12\n        vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x, zba\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vwmul.vx v8, v0, t1\n        vwmul.vx v16, v4, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/range_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:3", "text": "vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x, zba\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vwmul.vx v8, v0, t1\n        vwmul.vx v16, v4, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vadd.vx  v16, v16, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 11\n        vnsra.wi v4, v16, 11\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v0, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/range_rvv.S", "line_start": 81, "line_end": 114}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:1", "text": "/*\n * Copyright © 2024 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_range_lum_to_jpeg_16_rvv, zve32x\n        li       t1, 30189\n        li       t2, 19077\n        li       t3, -39057361\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vmin.vx  v0, v0, t1\n        vwmul.vx v8, v0, t2\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret\nendfunc\n\nfunc ff_range_lum_from_jpeg_16_rvv, zve32x\n        li       t1, 14071\n        li       t2, 33561947\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vwmul.vx v8, v0, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "417957ec5eb948709c04ce081b7758ba8796b10b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/417957ec5eb948709c04ce081b7758ba8796b10b/libswscale/riscv/range_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:2", "text": "ret\nendfunc\n\nfunc ff_range_lum_from_jpeg_16_rvv, zve32x\n        li       t1, 14071\n        li       t2, 33561947\n1:\n        vsetvli  t0, a1, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a1, a1, t0\n        vwmul.vx v8, v0, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 14\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        bnez     a1, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_to_jpeg_16_rvv, zve32x\n        li      t1, 30775\n        li      t2, 4663\n        li      t3, -9289992\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vmin.vx  v0, v0, t1\n        vmin.vx  v4, v4, t1\n        vwmul.vx v8, v0, t2\n        vwmul.vx v16, v4, t2\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t3\n        vadd.vx  v16, v16, t3\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 12\n        vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vwmul.vx v8, v0, t1\n        vwmul.vx v16, v4, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "417957ec5eb948709c04ce081b7758ba8796b10b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/417957ec5eb948709c04ce081b7758ba8796b10b/libswscale/riscv/range_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/range_rvv.S:3", "text": "vnsra.wi v4, v16, 12\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v4, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc\n\nfunc ff_range_chr_from_jpeg_16_rvv, zve32x\n        li      t1, 1799\n        li      t2, 4081085\n1:\n        vsetvli  t0, a2, e16, m4, ta, ma\n        vle16.v  v0, (a0)\n        sub      a2, a2, t0\n        vle16.v  v4, (a1)\n        vwmul.vx v8, v0, t1\n        vwmul.vx v16, v4, t1\n        vsetvli  zero, zero, e32, m8, ta, ma\n        vadd.vx  v8, v8, t2\n        vadd.vx  v16, v16, t2\n        vsetvli  zero, zero, e16, m4, ta, ma\n        vnsra.wi v0, v8, 11\n        vnsra.wi v4, v16, 11\n        vse16.v  v0, (a0)\n        sh1add   a0, t0, a0\n        vse16.v  v0, (a1)\n        sh1add   a1, t0, a1\n        bnez     a2, 1b\n\n        ret\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/range_rvv.S", "license": "LGPL-2.1", "commit": "417957ec5eb948709c04ce081b7758ba8796b10b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/417957ec5eb948709c04ce081b7758ba8796b10b/libswscale/riscv/range_rvv.S", "line_start": 81, "line_end": 114}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_shuffle_bytes_0321_rvv, zve32x\n        lpad    0\n        li      t1, 0x00ff00ff\n        j       1f\nendfunc\n\nfunc ff_shuffle_bytes_2103_rvv, zve32x, zba\n        lpad    0\n        li      t1, ~0x00ff00ff\n1:\n        not     t2, t1\n        srai    a2, a2, 2\n2:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vand.vx v16, v8, t2\n        sh2add  a0, t0, a0\n        vand.vx v8, v8, t1\n        vsrl.vi v24, v16, 16\n        vsll.vi v16, v16, 16\n        vor.vv  v8, v8, v24\n        vor.vv  v8, v16, v8\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc\n\nfunc ff_shuffle_bytes_1230_rvv, zve32x\n        lpad    0\n        li      t1, 24\n        li      t2, 8\n        j       3f\nendfunc\n\nfunc ff_shuffle_bytes_3012_rvv, zve32x, zba", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:2", "text": "vand.vx v8, v8, t1\n        vsrl.vi v24, v16, 16\n        vsll.vi v16, v16, 16\n        vor.vv  v8, v8, v24\n        vor.vv  v8, v16, v8\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc\n\nfunc ff_shuffle_bytes_1230_rvv, zve32x\n        lpad    0\n        li      t1, 24\n        li      t2, 8\n        j       3f\nendfunc\n\nfunc ff_shuffle_bytes_3012_rvv, zve32x, zba\n        lpad    0\n        li      t1, 8\n        li      t2, 24\n3:\n        srai    a2, a2, 2\n4:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v16, v8, t1\n        sh2add  a0, t0, a0\n        vsrl.vx v8, v8, t2\n        vor.vv  v16, v16, v8\n        vse32.v v16, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 4b\n\n        ret\nendfunc\n\nfunc ff_interleave_bytes_rvv, zve32x, zba\n        lpad    0\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vle8.v     v8, (t0)\n        add        t0, t4, t0\n        vle8.v     v12, (t1)\n        add        t1, t4, t1\n        vsseg2e8.v v8, (t2)\n        sh1add     t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:3", "text": "func ff_interleave_bytes_rvv, zve32x, zba\n        lpad    0\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vle8.v     v8, (t0)\n        add        t0, t4, t0\n        vle8.v     v12, (t1)\n        add        t1, t4, t1\n        vsseg2e8.v v8, (t2)\n        sh1add     t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_deinterleave_bytes_rvv, zve32x, zba\n        lpad    0\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vlseg2e8.v v8, (t0)\n        sh1add     t0, t4, t0\n        vse8.v     v8, (t1)\n        add        t1, t4, t1\n        vse8.v     v12, (t2)\n        add        t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        lpad    0\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:4", "text": "vse8.v     v8, (t1)\n        add        t1, t4, t1\n        vse8.v     v12, (t2)\n        add        t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        lpad    0\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4\n        sub     a7, a7, t4\n        sub     t6, t6, t5\n        vsetvli t2, zero, e8, m4, ta, ma\n1:\n        mv      t4, a4\n        addi    a5, a5, -1\n2:\n        min     t0, t2, t4 // ensure even VL on penultimate iteration\n        vsetvli t0, t0, e8, m4, ta, ma\n        vlseg2e8.v v16, (a3)\n        srli    t1, t0, 1\n        vsetvli zero, t1, e8, m2, ta, ma\n        vnsrl.wi   v24, \\chroma, 0 // U\n        sub     t4, t4, t0\n        vnsrl.wi   v28, \\chroma, 8 // V\n        sh1add  a3, t0, a3\n        vse8.v  v24, (a1)\n        add     a1, t1, a1\n        vse8.v  v28, (a2)\n        add     a2, t1, a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vse8.v  \\luma, (a0)\n        add     a0, t0, a0\n        bnez    t4, 2b\n\n        add     a3, a3, t6\n        add     a0, a0, a6\n        add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v16, v20", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:5", "text": "vsetvli zero, t0, e8, m4, ta, ma\n        vse8.v  \\luma, (a0)\n        add     a0, t0, a0\n        bnez    t4, 2b\n\n        add     a3, a3, t6\n        add     a0, a0, a6\n        add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 161, "line_end": 181}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_shuffle_bytes_0321_rvv, zve32x\n        li      t1, 0x00ff00ff\n        j       1f\nendfunc\n\nfunc ff_shuffle_bytes_2103_rvv, zve32x, zba\n        li      t1, ~0x00ff00ff\n1:\n        not     t2, t1\n        srai    a2, a2, 2\n2:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vand.vx v16, v8, t2\n        sh2add  a0, t0, a0\n        vand.vx v8, v8, t1\n        vsrl.vi v24, v16, 16\n        vsll.vi v16, v16, 16\n        vor.vv  v8, v8, v24\n        vor.vv  v8, v16, v8\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc\n\nfunc ff_shuffle_bytes_1230_rvv, zve32x\n        li      t1, 24\n        li      t2, 8\n        j       3f\nendfunc\n\nfunc ff_shuffle_bytes_3012_rvv, zve32x, zba\n        li      t1, 8\n        li      t2, 24\n3:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:2", "text": "vsll.vi v16, v16, 16\n        vor.vv  v8, v8, v24\n        vor.vv  v8, v16, v8\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc\n\nfunc ff_shuffle_bytes_1230_rvv, zve32x\n        li      t1, 24\n        li      t2, 8\n        j       3f\nendfunc\n\nfunc ff_shuffle_bytes_3012_rvv, zve32x, zba\n        li      t1, 8\n        li      t2, 24\n3:\n        srai    a2, a2, 2\n4:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v16, v8, t1\n        sh2add  a0, t0, a0\n        vsrl.vx v8, v8, t2\n        vor.vv  v16, v16, v8\n        vse32.v v16, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 4b\n\n        ret\nendfunc\n\nfunc ff_interleave_bytes_rvv, zve32x, zba\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vle8.v     v8, (t0)\n        add        t0, t4, t0\n        vle8.v     v12, (t1)\n        add        t1, t4, t1\n        vsseg2e8.v v8, (t2)\n        sh1add     t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:3", "text": "mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vle8.v     v8, (t0)\n        add        t0, t4, t0\n        vle8.v     v12, (t1)\n        add        t1, t4, t1\n        vsseg2e8.v v8, (t2)\n        sh1add     t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_deinterleave_bytes_rvv, zve32x, zba\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vlseg2e8.v v8, (t0)\n        sh1add     t0, t4, t0\n        vse8.v     v8, (t1)\n        add        t1, t4, t1\n        vse8.v     v12, (t2)\n        add        t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4\n        sub     a7, a7, t4\n        sub     t6, t6, t5\n        vsetvli t2, zero, e8, m4, ta, ma\n1:\n        mv      t4, a4\n        addi    a5, a5, -1\n2:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:4", "text": "add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4\n        sub     a7, a7, t4\n        sub     t6, t6, t5\n        vsetvli t2, zero, e8, m4, ta, ma\n1:\n        mv      t4, a4\n        addi    a5, a5, -1\n2:\n        min     t0, t2, t4 // ensure even VL on penultimate iteration\n        vsetvli t0, t0, e8, m4, ta, ma\n        vlseg2e8.v v16, (a3)\n        srli    t1, t0, 1\n        vsetvli zero, t1, e8, m2, ta, ma\n        vnsrl.wi   v24, \\chroma, 0 // U\n        sub     t4, t4, t0\n        vnsrl.wi   v28, \\chroma, 8 // V\n        sh1add  a3, t0, a3\n        vse8.v  v24, (a1)\n        add     a1, t1, a1\n        vse8.v  v28, (a2)\n        add     a2, t1, a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vse8.v  \\luma, (a0)\n        add     a0, t0, a0\n        bnez    t4, 2b\n\n        add     a3, a3, t6\n        add     a0, a0, a6\n        add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 121, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:5", "text": "add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x, b\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "e91a8cc4de2600dd6f18c139714fa1cad6db7ab9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e91a8cc4de2600dd6f18c139714fa1cad6db7ab9/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 161, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:1", "text": "/*\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavutil/riscv/asm.S\"\n\nfunc ff_shuffle_bytes_0321_rvv, zve32x\n        li      t1, 0x00ff00ff\n        j       1f\nendfunc\n\nfunc ff_shuffle_bytes_2103_rvv, zve32x\n        li      t1, ~0x00ff00ff\n1:\n        not     t2, t1\n        srai    a2, a2, 2\n2:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vand.vx v16, v8, t2\n        sh2add  a0, t0, a0\n        vand.vx v8, v8, t1\n        vsrl.vi v24, v16, 16\n        vsll.vi v16, v16, 16\n        vor.vv  v8, v8, v24\n        vor.vv  v8, v16, v8\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc\n\nfunc ff_shuffle_bytes_1230_rvv, zve32x\n        li      t1, 24\n        li      t2, 8\n        j       3f\nendfunc\n\nfunc ff_shuffle_bytes_3012_rvv, zve32x\n        li      t1, 8\n        li      t2, 24\n3:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "6c6313f1b581f053ce51df585e8caf59fe2ca5fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6313f1b581f053ce51df585e8caf59fe2ca5fc/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:2", "text": "vsll.vi v16, v16, 16\n        vor.vv  v8, v8, v24\n        vor.vv  v8, v16, v8\n        vse32.v v8, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 2b\n\n        ret\nendfunc\n\nfunc ff_shuffle_bytes_1230_rvv, zve32x\n        li      t1, 24\n        li      t2, 8\n        j       3f\nendfunc\n\nfunc ff_shuffle_bytes_3012_rvv, zve32x\n        li      t1, 8\n        li      t2, 24\n3:\n        srai    a2, a2, 2\n4:\n        vsetvli t0, a2, e32, m8, ta, ma\n        vle32.v v8, (a0)\n        sub     a2, a2, t0\n        vsll.vx v16, v8, t1\n        sh2add  a0, t0, a0\n        vsrl.vx v8, v8, t2\n        vor.vv  v16, v16, v8\n        vse32.v v16, (a1)\n        sh2add  a1, t0, a1\n        bnez    a2, 4b\n\n        ret\nendfunc\n\nfunc ff_interleave_bytes_rvv, zve32x\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vle8.v     v8, (t0)\n        add        t0, t4, t0\n        vle8.v     v12, (t1)\n        add        t1, t4, t1\n        vsseg2e8.v v8, (t2)\n        sh1add     t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "6c6313f1b581f053ce51df585e8caf59fe2ca5fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6313f1b581f053ce51df585e8caf59fe2ca5fc/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:3", "text": "mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vle8.v     v8, (t0)\n        add        t0, t4, t0\n        vle8.v     v12, (t1)\n        add        t1, t4, t1\n        vsseg2e8.v v8, (t2)\n        sh1add     t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\nfunc ff_deinterleave_bytes_rvv, zve32x\n1:\n        mv      t0, a0\n        mv      t1, a1\n        mv      t2, a2\n        mv      t3, a3\n        addi    a4, a4, -1\n2:\n        vsetvli    t4, t3, e8, m4, ta, ma\n        sub        t3, t3, t4\n        vlseg2e8.v v8, (t0)\n        sh1add     t0, t4, t0\n        vse8.v     v8, (t1)\n        add        t1, t4, t1\n        vse8.v     v12, (t2)\n        add        t2, t4, t2\n        bnez       t3, 2b\n\n        add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4\n        sub     a7, a7, t4\n        sub     t6, t6, t5\n        vsetvli t2, zero, e8, m4, ta, ma\n1:\n        mv      t4, a4\n        addi    a5, a5, -1\n2:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "6c6313f1b581f053ce51df585e8caf59fe2ca5fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6313f1b581f053ce51df585e8caf59fe2ca5fc/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:4", "text": "add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4\n        sub     a7, a7, t4\n        sub     t6, t6, t5\n        vsetvli t2, zero, e8, m4, ta, ma\n1:\n        mv      t4, a4\n        addi    a5, a5, -1\n2:\n        min     t0, t2, t4 // ensure even VL on penultimate iteration\n        vsetvli t0, t0, e8, m4, ta, ma\n        vlseg2e8.v v16, (a3)\n        srli    t1, t0, 1\n        vsetvli zero, t1, e8, m2, ta, ma\n        vnsrl.wi   v24, \\chroma, 0 // U\n        sub     t4, t4, t0\n        vnsrl.wi   v28, \\chroma, 8 // V\n        sh1add  a3, t0, a3\n        vse8.v  v24, (a1)\n        add     a1, t1, a1\n        vse8.v  v28, (a2)\n        add     a2, t1, a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vse8.v  \\luma, (a0)\n        add     a0, t0, a0\n        bnez    t4, 2b\n\n        add     a3, a3, t6\n        add     a0, a0, a6\n        add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x, zbb\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x, zbb\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "6c6313f1b581f053ce51df585e8caf59fe2ca5fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6313f1b581f053ce51df585e8caf59fe2ca5fc/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 121, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:5", "text": "add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x, zbb\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x, zbb\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "6c6313f1b581f053ce51df585e8caf59fe2ca5fc", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/6c6313f1b581f053ce51df585e8caf59fe2ca5fc/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 161, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:4", "text": "add     a0, a0, a5\n        add     a1, a1, a6\n        add     a2, a2, a7\n        bnez    a4, 1b\n\n        ret\nendfunc\n\n.macro yuy2_to_i422p luma, chroma\n        srai    t4, a4, 1 // pixel width -> chroma width\n        lw      t6, (sp)\n        slli    t5, a4, 1 // pixel width -> (source) byte width\n        sub     a6, a6, a4\n        sub     a7, a7, t4\n        sub     t6, t6, t5\n        vsetvli t2, zero, e8, m4, ta, ma\n1:\n        mv      t4, a4\n        addi    a5, a5, -1\n2:\n        min     t0, t2, t4 // ensure even VL on penultimate iteration\n        vsetvli t0, t0, e8, m4, ta, ma\n        vlseg2e8.v v16, (a3)\n        srli    t1, t0, 1\n        vsetvli zero, t1, e8, m2, ta, ma\n        vnsrl.wi   v24, \\chroma, 0 // U\n        sub     t4, t4, t0\n        vnsrl.wi   v28, \\chroma, 8 // V\n        sh1add  a3, t0, a3\n        vse8.v  v24, (a1)\n        add     a1, t1, a1\n        vse8.v  v28, (a2)\n        add     a2, t1, a2\n        vsetvli zero, t0, e8, m4, ta, ma\n        vse8.v  \\luma, (a0)\n        add     a0, t0, a0\n        bnez    t4, 2b\n\n        add     a3, a3, t6\n        add     a0, a0, a6\n        add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 121, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libswscale/riscv/rgb2rgb_rvv.S:5", "text": "add     a1, a1, a7\n        add     a2, a2, a7\n        bnez    a5, 1b\n\n        ret\n.endm\n\nfunc ff_uyvytoyuv422_rvv, zve32x\n        yuy2_to_i422p v20, v16\nendfunc\n\nfunc ff_yuyvtoyuv422_rvv, zve32x\n        yuy2_to_i422p v16, v20\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/riscv/rgb2rgb_rvv.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/riscv/rgb2rgb_rvv.S", "line_start": 161, "line_end": 174}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:1", "text": ";******************************************************************************\n;* x86-optimized input routines; does shuffling of packed\n;* YUV formats into individual planes, and converts RGB\n;* into YUV planes also.\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\n%define RY 0x20DE\n%define GY 0x4087\n%define BY 0x0C88\n%define RU 0xECFF\n%define GU 0xDAC8\n%define BU 0x3838\n%define RV 0x3838\n%define GV 0xD0E3\n%define BV 0xF6E4\n\nrgb_Yrnd:        times 4 dd 0x80100        ;  16.5 << 15\nrgb_UVrnd:       times 4 dd 0x400100       ; 128.5 << 15\n%define bgr_Ycoeff_12x4 16*4 + 16* 0 + tableq\n%define bgr_Ycoeff_3x56 16*4 + 16* 1 + tableq\n%define rgb_Ycoeff_12x4 16*4 + 16* 2 + tableq\n%define rgb_Ycoeff_3x56 16*4 + 16* 3 + tableq\n%define bgr_Ucoeff_12x4 16*4 + 16* 4 + tableq\n%define bgr_Ucoeff_3x56 16*4 + 16* 5 + tableq\n%define rgb_Ucoeff_12x4 16*4 + 16* 6 + tableq\n%define rgb_Ucoeff_3x56 16*4 + 16* 7 + tableq\n%define bgr_Vcoeff_12x4 16*4 + 16* 8 + tableq\n%define bgr_Vcoeff_3x56 16*4 + 16* 9 + tableq\n%define rgb_Vcoeff_12x4 16*4 + 16*10 + tableq\n%define rgb_Vcoeff_3x56 16*4 + 16*11 + tableq\n\n%define rgba_Ycoeff_rb 16*4 + 16*12 + tableq\n%define rgba_Ycoeff_br 16*4 + 16*13 + tableq\n%define rgba_Ycoeff_ga 16*4 + 16*14 + tableq\n%define rgba_Ycoeff_ag 16*4 + 16*15 + tableq\n%define rgba_Ucoeff_rb 16*4 + 16*16 + tableq\n%define rgba_Ucoeff_br 16*4 + 16*17 + tableq\n%define rgba_Ucoeff_ga 16*4 + 16*18 + tableq\n%define rgba_Ucoeff_ag 16*4 + 16*19 + tableq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:2", "text": "%define bgr_Ycoeff_3x56 16*4 + 16* 1 + tableq\n%define rgb_Ycoeff_12x4 16*4 + 16* 2 + tableq\n%define rgb_Ycoeff_3x56 16*4 + 16* 3 + tableq\n%define bgr_Ucoeff_12x4 16*4 + 16* 4 + tableq\n%define bgr_Ucoeff_3x56 16*4 + 16* 5 + tableq\n%define rgb_Ucoeff_12x4 16*4 + 16* 6 + tableq\n%define rgb_Ucoeff_3x56 16*4 + 16* 7 + tableq\n%define bgr_Vcoeff_12x4 16*4 + 16* 8 + tableq\n%define bgr_Vcoeff_3x56 16*4 + 16* 9 + tableq\n%define rgb_Vcoeff_12x4 16*4 + 16*10 + tableq\n%define rgb_Vcoeff_3x56 16*4 + 16*11 + tableq\n\n%define rgba_Ycoeff_rb 16*4 + 16*12 + tableq\n%define rgba_Ycoeff_br 16*4 + 16*13 + tableq\n%define rgba_Ycoeff_ga 16*4 + 16*14 + tableq\n%define rgba_Ycoeff_ag 16*4 + 16*15 + tableq\n%define rgba_Ucoeff_rb 16*4 + 16*16 + tableq\n%define rgba_Ucoeff_br 16*4 + 16*17 + tableq\n%define rgba_Ucoeff_ga 16*4 + 16*18 + tableq\n%define rgba_Ucoeff_ag 16*4 + 16*19 + tableq\n%define rgba_Vcoeff_rb 16*4 + 16*20 + tableq\n%define rgba_Vcoeff_br 16*4 + 16*21 + tableq\n%define rgba_Vcoeff_ga 16*4 + 16*22 + tableq\n%define rgba_Vcoeff_ag 16*4 + 16*23 + tableq\n\n; bgr_Ycoeff_12x4: times 2 dw BY, GY, 0, BY\n; bgr_Ycoeff_3x56: times 2 dw RY, 0, GY, RY\n; rgb_Ycoeff_12x4: times 2 dw RY, GY, 0, RY\n; rgb_Ycoeff_3x56: times 2 dw BY, 0, GY, BY\n; bgr_Ucoeff_12x4: times 2 dw BU, GU, 0, BU\n; bgr_Ucoeff_3x56: times 2 dw RU, 0, GU, RU\n; rgb_Ucoeff_12x4: times 2 dw RU, GU, 0, RU\n; rgb_Ucoeff_3x56: times 2 dw BU, 0, GU, BU\n; bgr_Vcoeff_12x4: times 2 dw BV, GV, 0, BV\n; bgr_Vcoeff_3x56: times 2 dw RV, 0, GV, RV\n; rgb_Vcoeff_12x4: times 2 dw RV, GV, 0, RV\n; rgb_Vcoeff_3x56: times 2 dw BV, 0, GV, BV\n\n; rgba_Ycoeff_rb:  times 4 dw RY, BY\n; rgba_Ycoeff_br:  times 4 dw BY, RY\n; rgba_Ycoeff_ga:  times 4 dw GY, 0\n; rgba_Ycoeff_ag:  times 4 dw 0,  GY\n; rgba_Ucoeff_rb:  times 4 dw RU, BU\n; rgba_Ucoeff_br:  times 4 dw BU, RU\n; rgba_Ucoeff_ga:  times 4 dw GU, 0\n; rgba_Ucoeff_ag:  times 4 dw 0,  GU\n; rgba_Vcoeff_rb:  times 4 dw RV, BV\n; rgba_Vcoeff_br:  times 4 dw BV, RV\n; rgba_Vcoeff_ga:  times 4 dw GV, 0\n; rgba_Vcoeff_ag:  times 4 dw 0,  GV\n\nshuf_rgb_12x4:   db 0, 0x80, 1, 0x80,  2, 0x80,  3, 0x80, \\\n                    6, 0x80, 7, 0x80,  8, 0x80,  9, 0x80, \\\n                    0, 0x80, 1, 0x80,  2, 0x80,  3, 0x80, \\\n                    6, 0x80, 7, 0x80,  8, 0x80,  9, 0x80\nshuf_rgb_3x56:   db 2, 0x80, 3, 0x80,  4, 0x80,  5, 0x80, \\\n                    8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80, \\\n                    2, 0x80, 3, 0x80,  4, 0x80,  5, 0x80, \\\n                    8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80\npd_65535f:     times 8 dd 65535.0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:3", "text": "; rgba_Ycoeff_ga:  times 4 dw GY, 0\n; rgba_Ycoeff_ag:  times 4 dw 0,  GY\n; rgba_Ucoeff_rb:  times 4 dw RU, BU\n; rgba_Ucoeff_br:  times 4 dw BU, RU\n; rgba_Ucoeff_ga:  times 4 dw GU, 0\n; rgba_Ucoeff_ag:  times 4 dw 0,  GU\n; rgba_Vcoeff_rb:  times 4 dw RV, BV\n; rgba_Vcoeff_br:  times 4 dw BV, RV\n; rgba_Vcoeff_ga:  times 4 dw GV, 0\n; rgba_Vcoeff_ag:  times 4 dw 0,  GV\n\nshuf_rgb_12x4:   db 0, 0x80, 1, 0x80,  2, 0x80,  3, 0x80, \\\n                    6, 0x80, 7, 0x80,  8, 0x80,  9, 0x80, \\\n                    0, 0x80, 1, 0x80,  2, 0x80,  3, 0x80, \\\n                    6, 0x80, 7, 0x80,  8, 0x80,  9, 0x80\nshuf_rgb_3x56:   db 2, 0x80, 3, 0x80,  4, 0x80,  5, 0x80, \\\n                    8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80, \\\n                    2, 0x80, 3, 0x80,  4, 0x80,  5, 0x80, \\\n                    8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80\npd_65535f:     times 8 dd 65535.0\npb_pack_shuffle16le:    db  0,  1,  4,  5, \\\n                            8,  9, 12, 13, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                            0,  1,  4,  5, \\\n                            8,  9, 12, 13\npb_shuffle32be:         db  3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12, \\\n                            3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12\npb_shuffle16be:         db  1,  0,  3,  2, \\\n                            5,  4,  7,  6, \\\n                            9,  8, 11, 10, \\\n                           13, 12, 15, 14, \\\n                            1,  0,  3,  2, \\\n                            5,  4,  7,  6, \\\n                            9,  8, 11, 10, \\\n                           13, 12, 15, 14\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; RGB to Y/UV.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = nr. of XMM registers\n; %2 = rgb or bgr\n%macro RGB24_TO_Y_FN 2-3\ncglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, table\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:4", "text": "1,  0,  3,  2, \\\n                            5,  4,  7,  6, \\\n                            9,  8, 11, 10, \\\n                           13, 12, 15, 14\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; RGB to Y/UV.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = nr. of XMM registers\n; %2 = rgb or bgr\n%macro RGB24_TO_Y_FN 2-3\ncglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, table\n%if ARCH_X86_64\n%if mmsize == 32\n    vbroadcasti128 m8, [%2_Ycoeff_12x4]\n    vbroadcasti128 m9, [%2_Ycoeff_3x56]\n%else\n    mova           m8, [%2_Ycoeff_12x4]\n    mova           m9, [%2_Ycoeff_3x56]\n%endif\n%define coeff1 m8\n%define coeff2 m9\n%else ; x86-32\n%define coeff1 [%2_Ycoeff_12x4]\n%define coeff2 [%2_Ycoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 3\n    jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToY %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 3\n.body:\n%if cpuflag(ssse3)\n    mova           m7, [shuf_rgb_12x4]\n%define shuf_rgb1 m7\n%if ARCH_X86_64\n    mova          m10, [shuf_rgb_3x56]\n%define shuf_rgb2 m10\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    add          dstq, wq\n    neg            wq\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif ; !cpuflag(ssse3)\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:5", "text": "%if ARCH_X86_64\n    mova          m10, [shuf_rgb_3x56]\n%define shuf_rgb2 m10\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    add          dstq, wq\n    neg            wq\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif ; !cpuflag(ssse3)\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu          xm0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu          xm2, [srcq+8]           ; (byte) { Bx, Gx, Rx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+24], 1\n    vinserti128    m2, m2, [srcq+32], 1\n%endif\n    psrldq         m2, 4\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    pshufb         m3, m2, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m2, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m2, [srcq+6]           ; (byte) { B2, G2, R2, B3 }\n    movd           m3, [srcq+8]           ; (byte) { R2, B3, G3, R3 }\n    punpckldq      m0, m2                 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpckldq      m1, m3                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m2, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m3, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    movd           m5, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m6, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m2, m5                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m3, m6                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    punpcklbw      m2, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m3, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m0, coeff1             ; (dword) { B0*BY + G0*GY, B1*BY, B2*BY + G2*GY, B3*BY }\n    pmaddwd        m1, coeff2             ; (dword) { R0*RY, G1+GY + R1*RY, R2*RY, G3+GY + R3*RY }\n    pmaddwd        m2, coeff1             ; (dword) { B4*BY + G4*GY, B5*BY, B6*BY + G6*GY, B7*BY }\n    pmaddwd        m3, coeff2             ; (dword) { R4*RY, G5+GY + R5*RY, R6*RY, G7+GY + R7*RY }\n    paddd          m0, m1                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:6", "text": "punpckldq      m1, m3                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m2, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m3, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    movd           m5, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m6, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m2, m5                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m3, m6                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    punpcklbw      m2, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m3, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m0, coeff1             ; (dword) { B0*BY + G0*GY, B1*BY, B2*BY + G2*GY, B3*BY }\n    pmaddwd        m1, coeff2             ; (dword) { R0*RY, G1+GY + R1*RY, R2*RY, G3+GY + R3*RY }\n    pmaddwd        m2, coeff1             ; (dword) { B4*BY + G4*GY, B5*BY, B6*BY + G6*GY, B7*BY }\n    pmaddwd        m3, coeff2             ; (dword) { R4*RY, G5+GY + R5*RY, R6*RY, G7+GY + R7*RY }\n    paddd          m0, m1                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }\n    paddd          m2, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = aligned/unaligned output argument\n; %3-4 = rgb or bgr\n%macro RGB24_TO_UV_FN 3-4\ncglobal %3 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n%if mmsize == 32\n    vbroadcasti128  m8, [%3_Ucoeff_12x4]\n    vbroadcasti128  m9, [%3_Ucoeff_3x56]\n    vbroadcasti128 m10, [%3_Vcoeff_12x4]\n    vbroadcasti128 m11, [%3_Vcoeff_3x56]\n%else\n    mova            m8, [%3_Ucoeff_12x4]\n    mova            m9, [%3_Ucoeff_3x56]\n    mova           m10, [%3_Vcoeff_12x4]\n    mova           m11, [%3_Vcoeff_3x56]\n%endif\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [%3_Ucoeff_12x4]\n%define coeffU2 [%3_Ucoeff_3x56]\n%define coeffV1 [%3_Vcoeff_12x4]\n%define coeffV2 [%3_Vcoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 4\n    jmp mangle(private_prefix %+ _ %+ %4 %+ 24ToUV %+ SUFFIX).body", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:7", "text": "vbroadcasti128 m10, [%3_Vcoeff_12x4]\n    vbroadcasti128 m11, [%3_Vcoeff_3x56]\n%else\n    mova            m8, [%3_Ucoeff_12x4]\n    mova            m9, [%3_Ucoeff_3x56]\n    mova           m10, [%3_Vcoeff_12x4]\n    mova           m11, [%3_Vcoeff_3x56]\n%endif\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [%3_Ucoeff_12x4]\n%define coeffU2 [%3_Ucoeff_3x56]\n%define coeffV1 [%3_Vcoeff_12x4]\n%define coeffV2 [%3_Vcoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 4\n    jmp mangle(private_prefix %+ _ %+ %4 %+ 24ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 4\n.body:\n%if cpuflag(ssse3)\n    mova           m7, [shuf_rgb_12x4]\n%define shuf_rgb1 m7\n%if ARCH_X86_64\n    mova          m12, [shuf_rgb_3x56]\n%define shuf_rgb2 m12\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    add         dstUq, wq\n    add         dstVq, wq\n    neg            wq\n%if mmsize == 32\n    vbroadcasti128 m6, [rgb_UVrnd]\n%else\n    mova           m6, [rgb_UVrnd]\n%endif\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu          xm0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu          xm4, [srcq+8]           ; (byte) { Bx, Gx, Rx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+24], 1\n    vinserti128    m4, m4, [srcq+32], 1\n%endif\n    psrldq         m4, 4\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:8", "text": "neg            wq\n%if mmsize == 32\n    vbroadcasti128 m6, [rgb_UVrnd]\n%else\n    mova           m6, [rgb_UVrnd]\n%endif\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu          xm0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu          xm4, [srcq+8]           ; (byte) { Bx, Gx, Rx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+24], 1\n    vinserti128    m4, m4, [srcq+32], 1\n%endif\n    psrldq         m4, 4\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m4, [srcq+6]           ; (byte) { B2, G2, R2, B3 }\n    movd           m5, [srcq+8]           ; (byte) { R2, B3, G3, R3 }\n    punpckldq      m0, m4                 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpckldq      m1, m5                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m4, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m5, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n%endif ; cpuflag(ssse3)\n    pmaddwd        m2, m0, coeffV1        ; (dword) { B0*BV + G0*GV, B1*BV, B2*BV + G2*GV, B3*BV }\n    pmaddwd        m3, m1, coeffV2        ; (dword) { R0*BV, G1*GV + R1*BV, R2*BV, G3*GV + R3*BV }\n    pmaddwd        m0, coeffU1            ; (dword) { B0*BU + G0*GU, B1*BU, B2*BU + G2*GU, B3*BU }\n    pmaddwd        m1, coeffU2            ; (dword) { R0*BU, G1*GU + R1*BU, R2*BU, G3*GU + R3*BU }\n    paddd          m0, m1                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[0-3]\n%if cpuflag(ssse3)\n    pshufb         m5, m4, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m4, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m1, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m3, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m4, m1                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m5, m3                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m4, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m5, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m1, m4, coeffU1        ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }\n    pmaddwd        m3, m5, coeffU2        ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }\n    pmaddwd        m4, coeffV1            ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }\n    pmaddwd        m5, coeffV2            ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }\n    paddd          m1, m3                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]\n    paddd          m4, m5                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[4-7]\n    paddd          m0, m6                 ; += rgb_UVrnd, i.e. (dword) { U[0-3] }\n    paddd          m2, m6                 ; += rgb_UVrnd, i.e. (dword) { V[0-3] }\n    paddd          m1, m6                 ; += rgb_UVrnd, i.e. (dword) { U[4-7] }\n    paddd          m4, m6                 ; += rgb_UVrnd, i.e. (dword) { V[4-7] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:9", "text": "pshufb         m4, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m1, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m3, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m4, m1                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m5, m3                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m4, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m5, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m1, m4, coeffU1        ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }\n    pmaddwd        m3, m5, coeffU2        ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }\n    pmaddwd        m4, coeffV1            ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }\n    pmaddwd        m5, coeffV2            ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }\n    paddd          m1, m3                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]\n    paddd          m4, m5                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[4-7]\n    paddd          m0, m6                 ; += rgb_UVrnd, i.e. (dword) { U[0-3] }\n    paddd          m2, m6                 ; += rgb_UVrnd, i.e. (dword) { V[0-3] }\n    paddd          m1, m6                 ; += rgb_UVrnd, i.e. (dword) { U[4-7] }\n    paddd          m4, m6                 ; += rgb_UVrnd, i.e. (dword) { V[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    psrad          m1, 9\n    psrad          m4, 9\n    packssdw       m0, m1                 ; (word) { U[0-7] }\n    packssdw       m2, m4                 ; (word) { V[0-7] }\n    mov%2  [dstUq+wq], m0\n    mov%2  [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 4\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n; %3 = aligned/unaligned output argument\n%macro RGB24_FUNCS 3\nRGB24_TO_Y_FN %1, rgb\nRGB24_TO_Y_FN %1, bgr, rgb\nRGB24_TO_UV_FN %2, %3, rgb\nRGB24_TO_UV_FN %2, %3, bgr, rgb\n%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12, a\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB24_FUNCS 11, 13, u\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:10", "text": "RGB24_TO_UV_FN %2, %3, rgb\nRGB24_TO_UV_FN %2, %3, bgr, rgb\n%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12, a\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB24_FUNCS 11, 13, u\n%endif\n%endif\n\n; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_Y_FN 5-6\ncglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, table\n%if mmsize == 32\n    vbroadcasti128 m5, [rgba_Ycoeff_%2%4]\n    vbroadcasti128 m6, [rgba_Ycoeff_%3%5]\n%else\n    mova           m5, [rgba_Ycoeff_%2%4]\n    mova           m6, [rgba_Ycoeff_%3%5]\n%endif\n%if %0 == 6\n    jmp mangle(private_prefix %+ _ %+ %6 %+ ToY %+ SUFFIX).body\n%else ; %0 == 6\n.body:\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    lea          srcq, [srcq+wq*2]\n    add          dstq, wq\n    neg            wq\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]\n%endif\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu          xm0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu          xm2, [srcq+wq*2+16]     ; (byte) { Bx, Gx, Rx, xx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+wq*2+32], 1\n    vinserti128    m2, m2, [srcq+wq*2+48], 1\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:11", "text": "add            wq, wq\n    sub            wq, mmsize - 1\n    lea          srcq, [srcq+wq*2]\n    add          dstq, wq\n    neg            wq\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]\n%endif\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu          xm0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu          xm2, [srcq+wq*2+16]     ; (byte) { Bx, Gx, Rx, xx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+wq*2+32], 1\n    vinserti128    m2, m2, [srcq+wq*2+48], 1\n%endif\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    pmaddwd        m3, m5                 ; (dword) { Bx*BY + Rx*RY }[4-7]\n    pmaddwd        m2, m6                 ; (dword) { Gx*GY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m2, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    paddd          m2, m3                 ; (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq, 2*mmsize - 2\n    add            dstq, mmsize - 1\n.loop2:\nINIT_XMM cpuname\n    movd           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    psrad          m0, 9\n    packssdw       m0, m0                 ; (word) { Y[0-7] }\n    movd    [dstq+wq], m0\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; %0 == 3\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:12", "text": "INIT_XMM cpuname\n    movd           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    psrad          m0, 9\n    packssdw       m0, m0                 ; (word) { Y[0-7] }\n    movd    [dstq+wq], m0\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = aligned/unaligned output argument\n; %3-6 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_UV_FN 6-7\ncglobal %3%4%5%6 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n%if mmsize == 32\n    vbroadcasti128  m8, [rgba_Ucoeff_%3%5]\n    vbroadcasti128  m9, [rgba_Ucoeff_%4%6]\n    vbroadcasti128 m10, [rgba_Vcoeff_%3%5]\n    vbroadcasti128 m11, [rgba_Vcoeff_%4%6]\n%else\n    mova            m8, [rgba_Ucoeff_%3%5]\n    mova            m9, [rgba_Ucoeff_%4%6]\n    mova           m10, [rgba_Vcoeff_%3%5]\n    mova           m11, [rgba_Vcoeff_%4%6]\n%endif\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%3%5]\n%define coeffU2 [rgba_Ucoeff_%4%6]\n%define coeffV1 [rgba_Vcoeff_%3%5]\n%define coeffV2 [rgba_Vcoeff_%4%6]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 7\n    jmp mangle(private_prefix %+ _ %+ %7 %+ ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 7\n.body:\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    add         dstUq, wq\n    add         dstVq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:13", "text": "%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%3%5]\n%define coeffU2 [rgba_Ucoeff_%4%6]\n%define coeffV1 [rgba_Vcoeff_%3%5]\n%define coeffV2 [rgba_Vcoeff_%4%6]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 7\n    jmp mangle(private_prefix %+ _ %+ %7 %+ ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 7\n.body:\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    add         dstUq, wq\n    add         dstVq, wq\n    lea          srcq, [srcq+wq*2]\n    neg            wq\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n%if mmsize == 32\n    vbroadcasti128 m6, [rgb_UVrnd]\n%else\n    mova           m6, [rgb_UVrnd]\n%endif\n.loop:\n    ; FIXME check alignment and use mova\n    movu          xm0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu          xm4, [srcq+wq*2+16]     ; (byte) { Bx, Gx, Rx, xx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+wq*2+32], 1\n    vinserti128    m4, m4, [srcq+wq*2+48], 1\n%endif\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9\n    psrad          m4, 9\n    psrad          m1, 9\n    packssdw       m0, m4                 ; (word) { U[0-7] }\n    packssdw       m2, m1                 ; (word) { V[0-7] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:14", "text": "pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9\n    psrad          m4, 9\n    psrad          m1, 9\n    packssdw       m0, m4                 ; (word) { U[0-7] }\n    packssdw       m2, m1                 ; (word) { V[0-7] }\n    ; FIXME check alignment and use mova\n    mov%2  [dstUq+wq], m0\n    mov%2  [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq , 2*mmsize - 2\n    add            dstUq, mmsize - 1\n    add            dstVq, mmsize - 1\n.loop2:\nINIT_XMM cpuname\n    movd           m0, [srcq+wq*2]        ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; ARCH_X86_64 && %0 == 7\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:15", "text": "paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; ARCH_X86_64 && %0 == 7\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n; %3 = aligned/unaligned output argument\n%macro RGB32_FUNCS 3\nRGB32_TO_Y_FN %1, r, g, b, a\nRGB32_TO_Y_FN %1, b, g, r, a, rgba\nRGB32_TO_Y_FN %1, a, r, g, b, rgba\nRGB32_TO_Y_FN %1, a, b, g, r, rgba\n\nRGB32_TO_UV_FN %2, %3, r, g, b, a\nRGB32_TO_UV_FN %2, %3, b, g, r, a, rgba\nRGB32_TO_UV_FN %2, %3, a, r, g, b, rgba\nRGB32_TO_UV_FN %2, %3, a, b, g, r, rgba\n%endmacro\n\nINIT_XMM sse2\nRGB32_FUNCS 8, 12, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB32_FUNCS 8, 12, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB32_FUNCS 8, 12, u\n%endif\n%endif\n\n;-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:16", "text": "%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB32_FUNCS 8, 12, u\n%endif\n%endif\n\n;-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n%ifidn %2, yuyv\n    pand           m0, m2                 ; (word) { Y0, Y1, ..., Y7 }\n    pand           m1, m2                 ; (word) { Y8, Y9, ..., Y15 }\n%else ; uyvy\n    psrlw          m0, 8                  ; (word) { Y0, Y1, ..., Y7 }\n    psrlw          m1, 8                  ; (word) { Y8, Y9, ..., Y15 }\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { Y0, ..., Y15 }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. YUYV+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_Y_FN 2-3\ncglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add          dstq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:17", "text": ";      will be the same (i.e. YUYV+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_Y_FN 2-3\ncglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add          dstq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_UV 2\n.loop_%1:\n%ifidn %2, yuyv\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    psrlw          m0, 8                  ; (word) { U0, V0, ..., U3, V3 }\n    psrlw          m1, 8                  ; (word) { U4, V4, ..., U7, V7 }\n%else ; uyvy\n%if cpuflag(avx)\n    vpand          m0, m2, [srcq+wq*4]        ; (word) { U0, V0, ..., U3, V3 }\n    vpand          m1, m2, [srcq+wq*4+mmsize] ; (word) { U4, V4, ..., U7, V7 }\n%else\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    pand           m0, m2                 ; (word) { U0, V0, ..., U3, V3 }\n    pand           m1, m2                 ; (word) { U4, V4, ..., U7, V7 }\n%endif\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:18", "text": "%endif\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2\n    test         srcq, 15\n%endif\n    lea          srcq, [srcq+wq*4]\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n    ; NOTE: if uyvy+avx, u/a are identical\n%if %0 == 2\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_UV u, %2\n%else\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:19", "text": "LOOP_YUYV_TO_UV u, %2\n%else\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mov%1  [dstUq+wq], m2\n    mov%1  [dstVq+wq], m0\n%else ; nv21\n    mov%1  [dstVq+wq], m2\n    mov%1  [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = nv12 or nv21\n%macro NVXX_TO_UV_FN 2\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, tmp, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    mov          tmpq, srcq\n    or           tmpq, dstUq\n    or           tmpq, dstVq\n    add         dstUq, wq\n    add         dstVq, wq\n    test         tmpq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:20", "text": "mov          tmpq, srcq\n    or           tmpq, dstUq\n    or           tmpq, dstVq\n    add         dstUq, wq\n    add         dstVq, wq\n    test         tmpq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n%endif\n\n%if ARCH_X86_64\n%define RY_IDX 0\n%define GY_IDX 1\n%define BY_IDX 2\n%define RU_IDX 3\n%define GU_IDX 4\n%define BU_IDX 5\n%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:21", "text": "%define GU_IDX 4\n%define BU_IDX 5\n%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2\n            bswap tmp1q\n            movq xm%1, tmp1q\n        %else\n            movq m%1, %2\n        %endif\n    %else\n        movu m%1, %2\n        %if %3\n            SWAP32 %1\n        %endif\n    %endif\n    maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:22", "text": "%endif\n    %endif\n    maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2\n            bswap   tmp1d\n            movd     xm%1, tmp1d\n            pshuflw   m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %else\n            movd     xm%1, %2\n            punpcklwd m%1, m9 ; interleave words with zero\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurements its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:23", "text": "%endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurements its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm2, tmp1q\n\n        pshufd   m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:24", "text": "; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_y_fn 4\n%if %2 == 8\n    %define OFFSET (0x801<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:25", "text": "%define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq\n    VBROADCASTSS  m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:26", "text": "LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_uv_fn 4\n%if %2 == 8\n    %define OFFSET (0x4001<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:27", "text": "%if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET\n    movq        xm6, xq\n    VBROADCASTSS m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:28", "text": "%if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xd, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:29", "text": "; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero\n            %endif\n            psllw m0, 6\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %else\n            ; only need to convert 16bit format to 16le\n            movu m0, [srcAq + xq*2]\n            %if %3 ; bigendian\n                %if cpuflag(sse4) || mmsize > 16\n                    pshufb m0, m7 ; [pb_shuffle16be]\n                %else\n                    psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:30", "text": "pshufb m0, m7 ; [pb_shuffle16be]\n                %else\n                    psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3\nplanar_rgb_to_uv_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_a_fn_decl 3\nplanar_rgb_to_a_fn  %1le,  %2, 0, %3\nplanar_rgb_to_a_fn  %1be,  %2, 1, %3\n%endmacro\n\n%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:31", "text": "%endmacro\n\n%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0\nplaner_rgbxx_a_fn_decl  rgb12, 12, 0\nplaner_rgbxx_a_fn_decl  rgb16, 16, 0\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n%endmacro\n\n; sse2 to_y only matches c speed with current implementation\n; except on floating point formats\nINIT_XMM sse2\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n\n; sse4 to_a conversions are just the sse2 ones\n; except on floating point formats\nINIT_XMM sse4\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1201, "line_end": 1252}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:32", "text": "planar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/input.asm", "line_start": 1241, "line_end": 1252}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:5", "text": "%if ARCH_X86_64\n    mova          m10, [shuf_rgb_3x56]\n%define shuf_rgb2 m10\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    add          dstq, wq\n    neg            wq\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif ; !cpuflag(ssse3)\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu          xm0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu          xm2, [srcq+12]          ; (byte) { Bx, Gx, Rx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+24], 1\n    vinserti128    m2, m2, [srcq+36], 1\n%endif\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    pshufb         m3, m2, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m2, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m2, [srcq+6]           ; (byte) { B2, G2, R2, B3 }\n    movd           m3, [srcq+8]           ; (byte) { R2, B3, G3, R3 }\n    punpckldq      m0, m2                 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpckldq      m1, m3                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m2, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m3, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    movd           m5, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m6, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m2, m5                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m3, m6                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    punpcklbw      m2, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m3, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m0, coeff1             ; (dword) { B0*BY + G0*GY, B1*BY, B2*BY + G2*GY, B3*BY }\n    pmaddwd        m1, coeff2             ; (dword) { R0*RY, G1+GY + R1*RY, R2*RY, G3+GY + R3*RY }\n    pmaddwd        m2, coeff1             ; (dword) { B4*BY + G4*GY, B5*BY, B6*BY + G6*GY, B7*BY }\n    pmaddwd        m3, coeff2             ; (dword) { R4*RY, G5+GY + R5*RY, R6*RY, G7+GY + R7*RY }\n    paddd          m0, m1                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }\n    paddd          m2, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[4-7] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:6", "text": "movd           m2, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m3, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    movd           m5, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m6, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m2, m5                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m3, m6                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    punpcklbw      m2, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m3, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m0, coeff1             ; (dword) { B0*BY + G0*GY, B1*BY, B2*BY + G2*GY, B3*BY }\n    pmaddwd        m1, coeff2             ; (dword) { R0*RY, G1+GY + R1*RY, R2*RY, G3+GY + R3*RY }\n    pmaddwd        m2, coeff1             ; (dword) { B4*BY + G4*GY, B5*BY, B6*BY + G6*GY, B7*BY }\n    pmaddwd        m3, coeff2             ; (dword) { R4*RY, G5+GY + R5*RY, R6*RY, G7+GY + R7*RY }\n    paddd          m0, m1                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }\n    paddd          m2, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = aligned/unaligned output argument\n; %3-4 = rgb or bgr\n%macro RGB24_TO_UV_FN 3-4\ncglobal %3 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n%if mmsize == 32\n    vbroadcasti128  m8, [%3_Ucoeff_12x4]\n    vbroadcasti128  m9, [%3_Ucoeff_3x56]\n    vbroadcasti128 m10, [%3_Vcoeff_12x4]\n    vbroadcasti128 m11, [%3_Vcoeff_3x56]\n%else\n    mova            m8, [%3_Ucoeff_12x4]\n    mova            m9, [%3_Ucoeff_3x56]\n    mova           m10, [%3_Vcoeff_12x4]\n    mova           m11, [%3_Vcoeff_3x56]\n%endif\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [%3_Ucoeff_12x4]\n%define coeffU2 [%3_Ucoeff_3x56]\n%define coeffV1 [%3_Vcoeff_12x4]\n%define coeffV2 [%3_Vcoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 4\n    jmp mangle(private_prefix %+ _ %+ %4 %+ 24ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:7", "text": "vbroadcasti128 m11, [%3_Vcoeff_3x56]\n%else\n    mova            m8, [%3_Ucoeff_12x4]\n    mova            m9, [%3_Ucoeff_3x56]\n    mova           m10, [%3_Vcoeff_12x4]\n    mova           m11, [%3_Vcoeff_3x56]\n%endif\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [%3_Ucoeff_12x4]\n%define coeffU2 [%3_Ucoeff_3x56]\n%define coeffV1 [%3_Vcoeff_12x4]\n%define coeffV2 [%3_Vcoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 4\n    jmp mangle(private_prefix %+ _ %+ %4 %+ 24ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 4\n.body:\n%if cpuflag(ssse3)\n    mova           m7, [shuf_rgb_12x4]\n%define shuf_rgb1 m7\n%if ARCH_X86_64\n    mova          m12, [shuf_rgb_3x56]\n%define shuf_rgb2 m12\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    add         dstUq, wq\n    add         dstVq, wq\n    neg            wq\n%if mmsize == 32\n    vbroadcasti128 m6, [rgb_UVrnd]\n%else\n    mova           m6, [rgb_UVrnd]\n%endif\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu          xm0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu          xm4, [srcq+12]          ; (byte) { Bx, Gx, Rx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+24], 1\n    vinserti128    m4, m4, [srcq+36], 1\n%endif\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:8", "text": "%if mmsize == 32\n    vbroadcasti128 m6, [rgb_UVrnd]\n%else\n    mova           m6, [rgb_UVrnd]\n%endif\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu          xm0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu          xm4, [srcq+12]          ; (byte) { Bx, Gx, Rx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+24], 1\n    vinserti128    m4, m4, [srcq+36], 1\n%endif\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m4, [srcq+6]           ; (byte) { B2, G2, R2, B3 }\n    movd           m5, [srcq+8]           ; (byte) { R2, B3, G3, R3 }\n    punpckldq      m0, m4                 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpckldq      m1, m5                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m4, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m5, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n%endif ; cpuflag(ssse3)\n    pmaddwd        m2, m0, coeffV1        ; (dword) { B0*BV + G0*GV, B1*BV, B2*BV + G2*GV, B3*BV }\n    pmaddwd        m3, m1, coeffV2        ; (dword) { R0*BV, G1*GV + R1*BV, R2*BV, G3*GV + R3*BV }\n    pmaddwd        m0, coeffU1            ; (dword) { B0*BU + G0*GU, B1*BU, B2*BU + G2*GU, B3*BU }\n    pmaddwd        m1, coeffU2            ; (dword) { R0*BU, G1*GU + R1*BU, R2*BU, G3*GU + R3*BU }\n    paddd          m0, m1                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[0-3]\n%if cpuflag(ssse3)\n    pshufb         m5, m4, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m4, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m1, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m3, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m4, m1                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m5, m3                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m4, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m5, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m1, m4, coeffU1        ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }\n    pmaddwd        m3, m5, coeffU2        ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }\n    pmaddwd        m4, coeffV1            ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }\n    pmaddwd        m5, coeffV2            ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }\n    paddd          m1, m3                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]\n    paddd          m4, m5                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[4-7]\n    paddd          m0, m6                 ; += rgb_UVrnd, i.e. (dword) { U[0-3] }\n    paddd          m2, m6                 ; += rgb_UVrnd, i.e. (dword) { V[0-3] }\n    paddd          m1, m6                 ; += rgb_UVrnd, i.e. (dword) { U[4-7] }\n    paddd          m4, m6                 ; += rgb_UVrnd, i.e. (dword) { V[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:9", "text": "movd           m1, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m3, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m4, m1                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m5, m3                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m4, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m5, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m1, m4, coeffU1        ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }\n    pmaddwd        m3, m5, coeffU2        ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }\n    pmaddwd        m4, coeffV1            ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }\n    pmaddwd        m5, coeffV2            ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }\n    paddd          m1, m3                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]\n    paddd          m4, m5                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[4-7]\n    paddd          m0, m6                 ; += rgb_UVrnd, i.e. (dword) { U[0-3] }\n    paddd          m2, m6                 ; += rgb_UVrnd, i.e. (dword) { V[0-3] }\n    paddd          m1, m6                 ; += rgb_UVrnd, i.e. (dword) { U[4-7] }\n    paddd          m4, m6                 ; += rgb_UVrnd, i.e. (dword) { V[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    psrad          m1, 9\n    psrad          m4, 9\n    packssdw       m0, m1                 ; (word) { U[0-7] }\n    packssdw       m2, m4                 ; (word) { V[0-7] }\n    mov%2  [dstUq+wq], m0\n    mov%2  [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 4\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n; %3 = aligned/unaligned output argument\n%macro RGB24_FUNCS 3\nRGB24_TO_Y_FN %1, rgb\nRGB24_TO_Y_FN %1, bgr, rgb\nRGB24_TO_UV_FN %2, %3, rgb\nRGB24_TO_UV_FN %2, %3, bgr, rgb\n%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12, a\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB24_FUNCS 11, 13, u\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:10", "text": "%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12, a\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB24_FUNCS 11, 13, u\n%endif\n%endif\n\n; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_Y_FN 5-6\ncglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, table\n%if mmsize == 32\n    vbroadcasti128 m5, [rgba_Ycoeff_%2%4]\n    vbroadcasti128 m6, [rgba_Ycoeff_%3%5]\n%else\n    mova           m5, [rgba_Ycoeff_%2%4]\n    mova           m6, [rgba_Ycoeff_%3%5]\n%endif\n%if %0 == 6\n    jmp mangle(private_prefix %+ _ %+ %6 %+ ToY %+ SUFFIX).body\n%else ; %0 == 6\n.body:\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    lea          srcq, [srcq+wq*2]\n    add          dstq, wq\n    neg            wq\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]\n%endif\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu          xm0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu          xm2, [srcq+wq*2+16]     ; (byte) { Bx, Gx, Rx, xx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+wq*2+32], 1\n    vinserti128    m2, m2, [srcq+wq*2+48], 1\n%endif\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:11", "text": "lea          srcq, [srcq+wq*2]\n    add          dstq, wq\n    neg            wq\n%if mmsize == 32\n    vbroadcasti128 m4, [rgb_Yrnd]\n%else\n    mova           m4, [rgb_Yrnd]\n%endif\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu          xm0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu          xm2, [srcq+wq*2+16]     ; (byte) { Bx, Gx, Rx, xx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+wq*2+32], 1\n    vinserti128    m2, m2, [srcq+wq*2+48], 1\n%endif\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    pmaddwd        m3, m5                 ; (dword) { Bx*BY + Rx*RY }[4-7]\n    pmaddwd        m2, m6                 ; (dword) { Gx*GY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m2, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    paddd          m2, m3                 ; (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq, 2*mmsize - 2\n    add            dstq, mmsize - 1\n.loop2:\nINIT_XMM cpuname\n    movd           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    psrad          m0, 9\n    packssdw       m0, m0                 ; (word) { Y[0-7] }\n    movd    [dstq+wq], m0\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = aligned/unaligned output argument", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:12", "text": "DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    psrad          m0, 9\n    packssdw       m0, m0                 ; (word) { Y[0-7] }\n    movd    [dstq+wq], m0\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = aligned/unaligned output argument\n; %3-6 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_UV_FN 6-7\ncglobal %3%4%5%6 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n%if mmsize == 32\n    vbroadcasti128  m8, [rgba_Ucoeff_%3%5]\n    vbroadcasti128  m9, [rgba_Ucoeff_%4%6]\n    vbroadcasti128 m10, [rgba_Vcoeff_%3%5]\n    vbroadcasti128 m11, [rgba_Vcoeff_%4%6]\n%else\n    mova            m8, [rgba_Ucoeff_%3%5]\n    mova            m9, [rgba_Ucoeff_%4%6]\n    mova           m10, [rgba_Vcoeff_%3%5]\n    mova           m11, [rgba_Vcoeff_%4%6]\n%endif\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%3%5]\n%define coeffU2 [rgba_Ucoeff_%4%6]\n%define coeffV1 [rgba_Vcoeff_%3%5]\n%define coeffV2 [rgba_Vcoeff_%4%6]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 7\n    jmp mangle(private_prefix %+ _ %+ %7 %+ ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 7\n.body:\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    add         dstUq, wq\n    add         dstVq, wq\n    lea          srcq, [srcq+wq*2]\n    neg            wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:13", "text": "%define coeffU1 [rgba_Ucoeff_%3%5]\n%define coeffU2 [rgba_Ucoeff_%4%6]\n%define coeffV1 [rgba_Vcoeff_%3%5]\n%define coeffV2 [rgba_Vcoeff_%4%6]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 7\n    jmp mangle(private_prefix %+ _ %+ %7 %+ ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 7\n.body:\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    add         dstUq, wq\n    add         dstVq, wq\n    lea          srcq, [srcq+wq*2]\n    neg            wq\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n%if mmsize == 32\n    vbroadcasti128 m6, [rgb_UVrnd]\n%else\n    mova           m6, [rgb_UVrnd]\n%endif\n.loop:\n    ; FIXME check alignment and use mova\n    movu          xm0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu          xm4, [srcq+wq*2+16]     ; (byte) { Bx, Gx, Rx, xx }[4-7]\n%if mmsize == 32\n    vinserti128    m0, m0, [srcq+wq*2+32], 1\n    vinserti128    m4, m4, [srcq+wq*2+48], 1\n%endif\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9\n    psrad          m4, 9\n    psrad          m1, 9\n    packssdw       m0, m4                 ; (word) { U[0-7] }\n    packssdw       m2, m1                 ; (word) { V[0-7] }\n    ; FIXME check alignment and use mova\n    mov%2  [dstUq+wq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:14", "text": "paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9\n    psrad          m4, 9\n    psrad          m1, 9\n    packssdw       m0, m4                 ; (word) { U[0-7] }\n    packssdw       m2, m1                 ; (word) { V[0-7] }\n    ; FIXME check alignment and use mova\n    mov%2  [dstUq+wq], m0\n    mov%2  [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq , 2*mmsize - 2\n    add            dstUq, mmsize - 1\n    add            dstVq, mmsize - 1\n.loop2:\nINIT_XMM cpuname\n    movd           m0, [srcq+wq*2]        ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; ARCH_X86_64 && %0 == 7\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n; %3 = aligned/unaligned output argument\n%macro RGB32_FUNCS 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:15", "text": "psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n%if cpuflag(avx2)\nINIT_YMM cpuname\n%endif\n    RET\n%endif ; ARCH_X86_64 && %0 == 7\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n; %3 = aligned/unaligned output argument\n%macro RGB32_FUNCS 3\nRGB32_TO_Y_FN %1, r, g, b, a\nRGB32_TO_Y_FN %1, b, g, r, a, rgba\nRGB32_TO_Y_FN %1, a, r, g, b, rgba\nRGB32_TO_Y_FN %1, a, b, g, r, rgba\n\nRGB32_TO_UV_FN %2, %3, r, g, b, a\nRGB32_TO_UV_FN %2, %3, b, g, r, a, rgba\nRGB32_TO_UV_FN %2, %3, a, r, g, b, rgba\nRGB32_TO_UV_FN %2, %3, a, b, g, r, rgba\n%endmacro\n\nINIT_XMM sse2\nRGB32_FUNCS 8, 12, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB32_FUNCS 8, 12, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB32_FUNCS 8, 12, u\n%endif\n%endif\n\n;-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:16", "text": "%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB32_FUNCS 8, 12, u\n%endif\n%endif\n\n;-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n%ifidn %2, yuyv\n    pand           m0, m2                 ; (word) { Y0, Y1, ..., Y7 }\n    pand           m1, m2                 ; (word) { Y8, Y9, ..., Y15 }\n%else ; uyvy\n    psrlw          m0, 8                  ; (word) { Y0, Y1, ..., Y7 }\n    psrlw          m1, 8                  ; (word) { Y8, Y9, ..., Y15 }\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { Y0, ..., Y15 }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. YUYV+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_Y_FN 2-3\ncglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add          dstq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:17", "text": "%macro YUYV_TO_Y_FN 2-3\ncglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add          dstq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_UV 2\n.loop_%1:\n%ifidn %2, yuyv\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    psrlw          m0, 8                  ; (word) { U0, V0, ..., U3, V3 }\n    psrlw          m1, 8                  ; (word) { U4, V4, ..., U7, V7 }\n%else ; uyvy\n%if cpuflag(avx)\n    vpand          m0, m2, [srcq+wq*4]        ; (word) { U0, V0, ..., U3, V3 }\n    vpand          m1, m2, [srcq+wq*4+mmsize] ; (word) { U4, V4, ..., U7, V7 }\n%else\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    pand           m0, m2                 ; (word) { U0, V0, ..., U3, V3 }\n    pand           m1, m2                 ; (word) { U4, V4, ..., U7, V7 }\n%endif\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:18", "text": "packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2\n    test         srcq, 15\n%endif\n    lea          srcq, [srcq+wq*4]\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n    ; NOTE: if uyvy+avx, u/a are identical\n%if %0 == 2\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_UV u, %2\n%else\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mov%1  [dstUq+wq], m2\n    mov%1  [dstVq+wq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:19", "text": "neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mov%1  [dstUq+wq], m2\n    mov%1  [dstVq+wq], m0\n%else ; nv21\n    mov%1  [dstVq+wq], m2\n    mov%1  [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = nv12 or nv21\n%macro NVXX_TO_UV_FN 2\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, tmp, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    mov          tmpq, srcq\n    or           tmpq, dstUq\n    or           tmpq, dstVq\n    add         dstUq, wq\n    add         dstVq, wq\n    test         tmpq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:20", "text": "or           tmpq, dstVq\n    add         dstUq, wq\n    add         dstVq, wq\n    test         tmpq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n%endif\n\n%if ARCH_X86_64\n%define RY_IDX 0\n%define GY_IDX 1\n%define BY_IDX 2\n%define RU_IDX 3\n%define GU_IDX 4\n%define BU_IDX 5\n%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:21", "text": "%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2\n            bswap tmp1q\n            movq xm%1, tmp1q\n        %else\n            movq m%1, %2\n        %endif\n    %else\n        movu m%1, %2\n        %if %3\n            SWAP32 %1\n        %endif\n    %endif\n    maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:22", "text": "maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2\n            bswap   tmp1d\n            movd     xm%1, tmp1d\n            pshuflw   m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %else\n            movd     xm%1, %2\n            punpcklwd m%1, m9 ; interleave words with zero\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurements its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:23", "text": "%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurements its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm2, tmp1q\n\n        pshufd   m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:24", "text": "; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_y_fn 4\n%if %2 == 8\n    %define OFFSET (0x801<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:25", "text": "%if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq\n    VBROADCASTSS  m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:26", "text": "LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_uv_fn 4\n%if %2 == 8\n    %define OFFSET (0x4001<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:27", "text": "%define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET\n    movq        xm6, xq\n    VBROADCASTSS m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:28", "text": "LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xd, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:29", "text": "; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero\n            %endif\n            psllw m0, 6\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %else\n            ; only need to convert 16bit format to 16le\n            movu m0, [srcAq + xq*2]\n            %if %3 ; bigendian\n                %if cpuflag(sse4) || mmsize > 16\n                    pshufb m0, m7 ; [pb_shuffle16be]\n                %else\n                    psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:30", "text": "psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3\nplanar_rgb_to_uv_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_a_fn_decl 3\nplanar_rgb_to_a_fn  %1le,  %2, 0, %3\nplanar_rgb_to_a_fn  %1be,  %2, 1, %3\n%endmacro\n\n%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:31", "text": "%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0\nplaner_rgbxx_a_fn_decl  rgb12, 12, 0\nplaner_rgbxx_a_fn_decl  rgb16, 16, 0\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n%endmacro\n\n; sse2 to_y only matches c speed with current implementation\n; except on floating point formats\nINIT_XMM sse2\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n\n; sse4 to_a conversions are just the sse2 ones\n; except on floating point formats\nINIT_XMM sse4\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1201, "line_end": 1250}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:32", "text": "planer_rgbxx_a_fn_decl rgbf32, 32, 1\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "262d41c8042acfa7ff1da6f256c367be86ecddb2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/262d41c8042acfa7ff1da6f256c367be86ecddb2/libswscale/x86/input.asm", "line_start": 1241, "line_end": 1250}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:22", "text": "maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2\n            bswap   tmp1d\n            movd     xm%1, tmp1d\n            pshuflw   m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %else\n            movd     xm%1, %2\n            punpcklwd m%1, m9 ; interleave words with zero\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurments its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "f17a6bd2000a82a7b5a1af8ee14e1f26d684c5a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f17a6bd2000a82a7b5a1af8ee14e1f26d684c5a9/libswscale/x86/input.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:23", "text": "%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurments its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm2, tmp1q\n\n        pshufd   m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "f17a6bd2000a82a7b5a1af8ee14e1f26d684c5a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f17a6bd2000a82a7b5a1af8ee14e1f26d684c5a9/libswscale/x86/input.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:18", "text": "packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2\n    test         srcq, 15\n%endif\n    lea          srcq, [srcq+wq*4]\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n    ; NOTE: if uyvy+avx, u/a are identical\n%if %0 == 2\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_UV u, %2\n%else\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mova   [dstUq+wq], m2\n    mova   [dstVq+wq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:19", "text": "neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mova   [dstUq+wq], m2\n    mova   [dstVq+wq], m0\n%else ; nv21\n    mova   [dstVq+wq], m2\n    mova   [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = nv12 or nv21\n%macro NVXX_TO_UV_FN 2\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:20", "text": "test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n%endif\n\n%if ARCH_X86_64\n%define RY_IDX 0\n%define GY_IDX 1\n%define BY_IDX 2\n%define RU_IDX 3\n%define GU_IDX 4\n%define BU_IDX 5\n%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:21", "text": "%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2\n            bswap tmp1q\n            movq xm%1, tmp1q\n        %else\n            movq m%1, %2\n        %endif\n    %else\n        movu m%1, %2\n        %if %3\n            SWAP32 %1\n        %endif\n    %endif\n    maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:22", "text": "; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2\n            bswap   tmp1d\n            movd     xm%1, tmp1d\n            pshuflw   m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %else\n            movd     xm%1, %2\n            punpcklwd m%1, m9 ; interleave words with zero\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurments its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:23", "text": "%if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurments its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm2, tmp1q\n\n        pshufd   m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:24", "text": "pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_y_fn 4\n%if %2 == 8\n    %define OFFSET (0x801<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:25", "text": "%else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq\n    VBROADCASTSS  m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:26", "text": "%else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_uv_fn 4\n%if %2 == 8\n    %define OFFSET (0x4001<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:27", "text": "%define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET\n    movq        xm6, xq\n    VBROADCASTSS m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:28", "text": "LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xd, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:29", "text": "cglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero\n            %endif\n            psllw m0, 6\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %else\n            ; only need to convert 16bit format to 16le\n            movu m0, [srcAq + xq*2]\n            %if %3 ; bigendian\n                %if cpuflag(sse4) || mmsize > 16\n                    pshufb m0, m7 ; [pb_shuffle16be]\n                %else\n                    psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:30", "text": "%endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3\nplanar_rgb_to_uv_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_a_fn_decl 3\nplanar_rgb_to_a_fn  %1le,  %2, 0, %3\nplanar_rgb_to_a_fn  %1be,  %2, 1, %3\n%endmacro\n\n%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 1161, "line_end": 1220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:31", "text": "planer_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0\nplaner_rgbxx_a_fn_decl  rgb12, 12, 0\nplaner_rgbxx_a_fn_decl  rgb16, 16, 0\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n%endmacro\n\n; sse2 to_y only matches c speed with current implementation\n; except on floating point formats\nINIT_XMM sse2\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n\n; sse4 to_a conversions are just the sse2 ones\n; except on floating point formats\nINIT_XMM sse4\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "e9cfd532579cb33cd814ce7fb9e7480cd7054750", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e9cfd532579cb33cd814ce7fb9e7480cd7054750/libswscale/x86/input.asm", "line_start": 1201, "line_end": 1247}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:10", "text": "%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12, a\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13, a\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13, a\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nRGB24_FUNCS 11, 13, u\n%endif\n%endif\n\n; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_Y_FN 5-6\ncglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, table\n    mova           m5, [rgba_Ycoeff_%2%4]\n    mova           m6, [rgba_Ycoeff_%3%5]\n%if %0 == 6\n    jmp mangle(private_prefix %+ _ %+ %6 %+ ToY %+ SUFFIX).body\n%else ; %0 == 6\n.body:\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    lea          srcq, [srcq+wq*2]\n    add          dstq, wq\n    neg            wq\n    mova           m4, [rgb_Yrnd]\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m2, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    pmaddwd        m3, m5                 ; (dword) { Bx*BY + Rx*RY }[4-7]\n    pmaddwd        m2, m6                 ; (dword) { Gx*GY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m2, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    paddd          m2, m3                 ; (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:11", "text": "psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m2, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    pmaddwd        m3, m5                 ; (dword) { Bx*BY + Rx*RY }[4-7]\n    pmaddwd        m2, m6                 ; (dword) { Gx*GY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m2, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    paddd          m2, m3                 ; (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq, 2*mmsize - 2\n    add            dstq, mmsize - 1\n.loop2:\n    movd           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    psrad          m0, 9\n    packssdw       m0, m0                 ; (word) { Y[0-7] }\n    movd    [dstq+wq], m0\n    add            wq, 2\n    jl .loop2\n.end:\n    RET\n%endif ; %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_UV_FN 5-6\ncglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [rgba_Ucoeff_%2%4]\n    mova           m9, [rgba_Ucoeff_%3%5]\n    mova          m10, [rgba_Vcoeff_%2%4]\n    mova          m11, [rgba_Vcoeff_%3%5]\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%2%4]\n%define coeffU2 [rgba_Ucoeff_%3%5]\n%define coeffV1 [rgba_Vcoeff_%2%4]\n%define coeffV2 [rgba_Vcoeff_%3%5]\n%endif ; x86-64/32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:12", "text": "; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_UV_FN 5-6\ncglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [rgba_Ucoeff_%2%4]\n    mova           m9, [rgba_Ucoeff_%3%5]\n    mova          m10, [rgba_Vcoeff_%2%4]\n    mova          m11, [rgba_Vcoeff_%3%5]\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%2%4]\n%define coeffU2 [rgba_Ucoeff_%3%5]\n%define coeffV1 [rgba_Vcoeff_%2%4]\n%define coeffV2 [rgba_Vcoeff_%3%5]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 6\n    jmp mangle(private_prefix %+ _ %+ %6 %+ ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 6\n.body:\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    add         dstUq, wq\n    add         dstVq, wq\n    lea          srcq, [srcq+wq*2]\n    neg            wq\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n    mova           m6, [rgb_UVrnd]\n.loop:\n    ; FIXME check alignment and use mova\n    movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m4, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:13", "text": "movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m4, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9\n    psrad          m4, 9\n    psrad          m1, 9\n    packssdw       m0, m4                 ; (word) { U[0-7] }\n    packssdw       m2, m1                 ; (word) { V[0-7] }\n    mova   [dstUq+wq], m0\n    mova   [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq , 2*mmsize - 2\n    add            dstUq, mmsize - 1\n    add            dstVq, mmsize - 1\n.loop2:\n    movd           m0, [srcq+wq*2]        ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:14", "text": "pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n%macro RGB32_FUNCS 2\nRGB32_TO_Y_FN %1, r, g, b, a\nRGB32_TO_Y_FN %1, b, g, r, a, rgba\nRGB32_TO_Y_FN %1, a, r, g, b, rgba\nRGB32_TO_Y_FN %1, a, b, g, r, rgba\n\nRGB32_TO_UV_FN %2, r, g, b, a\nRGB32_TO_UV_FN %2, b, g, r, a, rgba\nRGB32_TO_UV_FN %2, a, r, g, b, rgba\nRGB32_TO_UV_FN %2, a, b, g, r, rgba\n%endmacro\n\nINIT_XMM sse2\nRGB32_FUNCS 8, 12\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB32_FUNCS 8, 12\n%endif\n\n;-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n%ifidn %2, yuyv\n    pand           m0, m2                 ; (word) { Y0, Y1, ..., Y7 }\n    pand           m1, m2                 ; (word) { Y8, Y9, ..., Y15 }\n%else ; uyvy\n    psrlw          m0, 8                  ; (word) { Y0, Y1, ..., Y7 }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:15", "text": ";-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n%ifidn %2, yuyv\n    pand           m0, m2                 ; (word) { Y0, Y1, ..., Y7 }\n    pand           m1, m2                 ; (word) { Y8, Y9, ..., Y15 }\n%else ; uyvy\n    psrlw          m0, 8                  ; (word) { Y0, Y1, ..., Y7 }\n    psrlw          m1, 8                  ; (word) { Y8, Y9, ..., Y15 }\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { Y0, ..., Y15 }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. YUYV+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_Y_FN 2-3\ncglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add          dstq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_UV 2\n.loop_%1:\n%ifidn %2, yuyv\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:16", "text": "test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_UV 2\n.loop_%1:\n%ifidn %2, yuyv\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    psrlw          m0, 8                  ; (word) { U0, V0, ..., U3, V3 }\n    psrlw          m1, 8                  ; (word) { U4, V4, ..., U7, V7 }\n%else ; uyvy\n%if cpuflag(avx)\n    vpand          m0, m2, [srcq+wq*4]        ; (word) { U0, V0, ..., U3, V3 }\n    vpand          m1, m2, [srcq+wq*4+mmsize] ; (word) { U4, V4, ..., U7, V7 }\n%else\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    pand           m0, m2                 ; (word) { U0, V0, ..., U3, V3 }\n    pand           m1, m2                 ; (word) { U4, V4, ..., U7, V7 }\n%endif\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:17", "text": "add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2\n    test         srcq, 15\n%endif\n    lea          srcq, [srcq+wq*4]\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n    ; NOTE: if uyvy+avx, u/a are identical\n%if %0 == 2\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_UV u, %2\n%else\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mova   [dstUq+wq], m2\n    mova   [dstVq+wq], m0\n%else ; nv21\n    mova   [dstVq+wq], m2\n    mova   [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:18", "text": "; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mova   [dstUq+wq], m2\n    mova   [dstVq+wq], m0\n%else ; nv21\n    mova   [dstVq+wq], m2\n    mova   [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = nv12 or nv21\n%macro NVXX_TO_UV_FN 2\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:19", "text": "LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n%endif\n\n%if ARCH_X86_64\n%define RY_IDX 0\n%define GY_IDX 1\n%define BY_IDX 2\n%define RU_IDX 3\n%define GU_IDX 4\n%define BU_IDX 5\n%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:20", "text": "%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2\n            bswap tmp1q\n            movq xm%1, tmp1q\n        %else\n            movq m%1, %2\n        %endif\n    %else\n        movu m%1, %2\n        %if %3\n            SWAP32 %1\n        %endif\n    %endif\n    maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:21", "text": "; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2\n            bswap   tmp1d\n            movd     xm%1, tmp1d\n            pshuflw   m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %else\n            movd     xm%1, %2\n            punpcklwd m%1, m9 ; interleave words with zero\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurments its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:22", "text": "; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm2, tmp1q\n\n        pshufd   m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:23", "text": "movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_y_fn 4\n%if %2 == 8\n    %define OFFSET (0x801<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:24", "text": "%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq\n    VBROADCASTSS  m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:25", "text": "PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_uv_fn 4\n%if %2 == 8\n    %define OFFSET (0x4001<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:26", "text": "VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET\n    movq        xm6, xq\n    VBROADCASTSS m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:27", "text": "PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xd, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:28", "text": "%if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero\n            %endif\n            psllw m0, 6\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %else\n            ; only need to convert 16bit format to 16le\n            movu m0, [srcAq + xq*2]\n            %if %3 ; bigendian\n                %if cpuflag(sse4) || mmsize > 16\n                    pshufb m0, m7 ; [pb_shuffle16be]\n                %else\n                    psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:29", "text": "add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3\nplanar_rgb_to_uv_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_a_fn_decl 3\nplanar_rgb_to_a_fn  %1le,  %2, 0, %3\nplanar_rgb_to_a_fn  %1be,  %2, 1, %3\n%endmacro\n\n%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0\nplaner_rgbxx_a_fn_decl  rgb12, 12, 0\nplaner_rgbxx_a_fn_decl  rgb16, 16, 0\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n%endmacro\n\n; sse2 to_y only matches c speed with current implementation", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 1121, "line_end": 1180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:30", "text": "%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0\nplaner_rgbxx_a_fn_decl  rgb12, 12, 0\nplaner_rgbxx_a_fn_decl  rgb16, 16, 0\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n%endmacro\n\n; sse2 to_y only matches c speed with current implementation\n; except on floating point formats\nINIT_XMM sse2\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n\n; sse4 to_a conversions are just the sse2 ones\n; except on floating point formats\nINIT_XMM sse4\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nplanar_rgb_y_all_fn_decl\nplanar_rgb_uv_all_fn_decl\nplanar_rgb_a_all_fn_decl\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d5fe99dc5f06056939ffe1fa0ab58b2d26758126", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d5fe99dc5f06056939ffe1fa0ab58b2d26758126/libswscale/x86/input.asm", "line_start": 1161, "line_end": 1201}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:1", "text": ";******************************************************************************\n;* x86-optimized input routines; does shuffling of packed\n;* YUV formats into individual planes, and converts RGB\n;* into YUV planes also.\n;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n%define RY 0x20DE\n%define GY 0x4087\n%define BY 0x0C88\n%define RU 0xECFF\n%define GU 0xDAC8\n%define BU 0x3838\n%define RV 0x3838\n%define GV 0xD0E3\n%define BV 0xF6E4\n\nrgb_Yrnd:        times 4 dd 0x80100        ;  16.5 << 15\nrgb_UVrnd:       times 4 dd 0x400100       ; 128.5 << 15\n%define bgr_Ycoeff_12x4 16*4 + 16* 0 + tableq\n%define bgr_Ycoeff_3x56 16*4 + 16* 1 + tableq\n%define rgb_Ycoeff_12x4 16*4 + 16* 2 + tableq\n%define rgb_Ycoeff_3x56 16*4 + 16* 3 + tableq\n%define bgr_Ucoeff_12x4 16*4 + 16* 4 + tableq\n%define bgr_Ucoeff_3x56 16*4 + 16* 5 + tableq\n%define rgb_Ucoeff_12x4 16*4 + 16* 6 + tableq\n%define rgb_Ucoeff_3x56 16*4 + 16* 7 + tableq\n%define bgr_Vcoeff_12x4 16*4 + 16* 8 + tableq\n%define bgr_Vcoeff_3x56 16*4 + 16* 9 + tableq\n%define rgb_Vcoeff_12x4 16*4 + 16*10 + tableq\n%define rgb_Vcoeff_3x56 16*4 + 16*11 + tableq\n\n%define rgba_Ycoeff_rb 16*4 + 16*12 + tableq\n%define rgba_Ycoeff_br 16*4 + 16*13 + tableq\n%define rgba_Ycoeff_ga 16*4 + 16*14 + tableq\n%define rgba_Ycoeff_ag 16*4 + 16*15 + tableq\n%define rgba_Ucoeff_rb 16*4 + 16*16 + tableq\n%define rgba_Ucoeff_br 16*4 + 16*17 + tableq\n%define rgba_Ucoeff_ga 16*4 + 16*18 + tableq\n%define rgba_Ucoeff_ag 16*4 + 16*19 + tableq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:2", "text": "%define bgr_Ycoeff_3x56 16*4 + 16* 1 + tableq\n%define rgb_Ycoeff_12x4 16*4 + 16* 2 + tableq\n%define rgb_Ycoeff_3x56 16*4 + 16* 3 + tableq\n%define bgr_Ucoeff_12x4 16*4 + 16* 4 + tableq\n%define bgr_Ucoeff_3x56 16*4 + 16* 5 + tableq\n%define rgb_Ucoeff_12x4 16*4 + 16* 6 + tableq\n%define rgb_Ucoeff_3x56 16*4 + 16* 7 + tableq\n%define bgr_Vcoeff_12x4 16*4 + 16* 8 + tableq\n%define bgr_Vcoeff_3x56 16*4 + 16* 9 + tableq\n%define rgb_Vcoeff_12x4 16*4 + 16*10 + tableq\n%define rgb_Vcoeff_3x56 16*4 + 16*11 + tableq\n\n%define rgba_Ycoeff_rb 16*4 + 16*12 + tableq\n%define rgba_Ycoeff_br 16*4 + 16*13 + tableq\n%define rgba_Ycoeff_ga 16*4 + 16*14 + tableq\n%define rgba_Ycoeff_ag 16*4 + 16*15 + tableq\n%define rgba_Ucoeff_rb 16*4 + 16*16 + tableq\n%define rgba_Ucoeff_br 16*4 + 16*17 + tableq\n%define rgba_Ucoeff_ga 16*4 + 16*18 + tableq\n%define rgba_Ucoeff_ag 16*4 + 16*19 + tableq\n%define rgba_Vcoeff_rb 16*4 + 16*20 + tableq\n%define rgba_Vcoeff_br 16*4 + 16*21 + tableq\n%define rgba_Vcoeff_ga 16*4 + 16*22 + tableq\n%define rgba_Vcoeff_ag 16*4 + 16*23 + tableq\n\n; bgr_Ycoeff_12x4: times 2 dw BY, GY, 0, BY\n; bgr_Ycoeff_3x56: times 2 dw RY, 0, GY, RY\n; rgb_Ycoeff_12x4: times 2 dw RY, GY, 0, RY\n; rgb_Ycoeff_3x56: times 2 dw BY, 0, GY, BY\n; bgr_Ucoeff_12x4: times 2 dw BU, GU, 0, BU\n; bgr_Ucoeff_3x56: times 2 dw RU, 0, GU, RU\n; rgb_Ucoeff_12x4: times 2 dw RU, GU, 0, RU\n; rgb_Ucoeff_3x56: times 2 dw BU, 0, GU, BU\n; bgr_Vcoeff_12x4: times 2 dw BV, GV, 0, BV\n; bgr_Vcoeff_3x56: times 2 dw RV, 0, GV, RV\n; rgb_Vcoeff_12x4: times 2 dw RV, GV, 0, RV\n; rgb_Vcoeff_3x56: times 2 dw BV, 0, GV, BV\n\n; rgba_Ycoeff_rb:  times 4 dw RY, BY\n; rgba_Ycoeff_br:  times 4 dw BY, RY\n; rgba_Ycoeff_ga:  times 4 dw GY, 0\n; rgba_Ycoeff_ag:  times 4 dw 0,  GY\n; rgba_Ucoeff_rb:  times 4 dw RU, BU\n; rgba_Ucoeff_br:  times 4 dw BU, RU\n; rgba_Ucoeff_ga:  times 4 dw GU, 0\n; rgba_Ucoeff_ag:  times 4 dw 0,  GU\n; rgba_Vcoeff_rb:  times 4 dw RV, BV\n; rgba_Vcoeff_br:  times 4 dw BV, RV\n; rgba_Vcoeff_ga:  times 4 dw GV, 0\n; rgba_Vcoeff_ag:  times 4 dw 0,  GV\n\nshuf_rgb_12x4:   db 0, 0x80, 1, 0x80,  2, 0x80,  3, 0x80, \\\n                    6, 0x80, 7, 0x80,  8, 0x80,  9, 0x80\nshuf_rgb_3x56:   db 2, 0x80, 3, 0x80,  4, 0x80,  5, 0x80, \\\n                    8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80\npd_65535f:     times 8 dd 65535.0\npb_pack_shuffle16le:    db  0,  1,  4,  5, \\\n                            8,  9, 12, 13, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:3", "text": "; rgba_Ycoeff_ga:  times 4 dw GY, 0\n; rgba_Ycoeff_ag:  times 4 dw 0,  GY\n; rgba_Ucoeff_rb:  times 4 dw RU, BU\n; rgba_Ucoeff_br:  times 4 dw BU, RU\n; rgba_Ucoeff_ga:  times 4 dw GU, 0\n; rgba_Ucoeff_ag:  times 4 dw 0,  GU\n; rgba_Vcoeff_rb:  times 4 dw RV, BV\n; rgba_Vcoeff_br:  times 4 dw BV, RV\n; rgba_Vcoeff_ga:  times 4 dw GV, 0\n; rgba_Vcoeff_ag:  times 4 dw 0,  GV\n\nshuf_rgb_12x4:   db 0, 0x80, 1, 0x80,  2, 0x80,  3, 0x80, \\\n                    6, 0x80, 7, 0x80,  8, 0x80,  9, 0x80\nshuf_rgb_3x56:   db 2, 0x80, 3, 0x80,  4, 0x80,  5, 0x80, \\\n                    8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80\npd_65535f:     times 8 dd 65535.0\npb_pack_shuffle16le:    db  0,  1,  4,  5, \\\n                            8,  9, 12, 13, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                            0,  1,  4,  5, \\\n                            8,  9, 12, 13\npb_shuffle32be:         db  3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12, \\\n                            3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12\npb_shuffle16be:         db  1,  0,  3,  2, \\\n                            5,  4,  7,  6, \\\n                            9,  8, 11, 10, \\\n                           13, 12, 15, 14, \\\n                            1,  0,  3,  2, \\\n                            5,  4,  7,  6, \\\n                            9,  8, 11, 10, \\\n                           13, 12, 15, 14\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; RGB to Y/UV.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = nr. of XMM registers\n; %2 = rgb or bgr\n%macro RGB24_TO_Y_FN 2-3\ncglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [%2_Ycoeff_12x4]\n    mova           m9, [%2_Ycoeff_3x56]\n%define coeff1 m8\n%define coeff2 m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:4", "text": "SECTION .text\n\n;-----------------------------------------------------------------------------\n; RGB to Y/UV.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = nr. of XMM registers\n; %2 = rgb or bgr\n%macro RGB24_TO_Y_FN 2-3\ncglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [%2_Ycoeff_12x4]\n    mova           m9, [%2_Ycoeff_3x56]\n%define coeff1 m8\n%define coeff2 m9\n%else ; x86-32\n%define coeff1 [%2_Ycoeff_12x4]\n%define coeff2 [%2_Ycoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 3\n    jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToY %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 3\n.body:\n%if cpuflag(ssse3)\n    mova           m7, [shuf_rgb_12x4]\n%define shuf_rgb1 m7\n%if ARCH_X86_64\n    mova          m10, [shuf_rgb_3x56]\n%define shuf_rgb2 m10\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    add          dstq, wq\n    neg            wq\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif ; !cpuflag(ssse3)\n    mova           m4, [rgb_Yrnd]\n.loop:\n%if cpuflag(ssse3)\n    movu           m0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu           m2, [srcq+12]          ; (byte) { Bx, Gx, Rx }[4-7]\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    pshufb         m3, m2, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m2, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m2, [srcq+6]           ; (byte) { B2, G2, R2, B3 }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:5", "text": "%endif\n    add            wq, wq\n    add          dstq, wq\n    neg            wq\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif ; !cpuflag(ssse3)\n    mova           m4, [rgb_Yrnd]\n.loop:\n%if cpuflag(ssse3)\n    movu           m0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu           m2, [srcq+12]          ; (byte) { Bx, Gx, Rx }[4-7]\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    pshufb         m3, m2, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m2, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m2, [srcq+6]           ; (byte) { B2, G2, R2, B3 }\n    movd           m3, [srcq+8]           ; (byte) { R2, B3, G3, R3 }\n    punpckldq      m0, m2                 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpckldq      m1, m3                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m2, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m3, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    movd           m5, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m6, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m2, m5                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m3, m6                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    punpcklbw      m2, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m3, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m0, coeff1             ; (dword) { B0*BY + G0*GY, B1*BY, B2*BY + G2*GY, B3*BY }\n    pmaddwd        m1, coeff2             ; (dword) { R0*RY, G1+GY + R1*RY, R2*RY, G3+GY + R3*RY }\n    pmaddwd        m2, coeff1             ; (dword) { B4*BY + G4*GY, B5*BY, B6*BY + G6*GY, B7*BY }\n    pmaddwd        m3, coeff2             ; (dword) { R4*RY, G5+GY + R5*RY, R6*RY, G7+GY + R7*RY }\n    paddd          m0, m1                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }\n    paddd          m2, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = rgb or bgr\n%macro RGB24_TO_UV_FN 2-3\ncglobal %2 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [%2_Ucoeff_12x4]\n    mova           m9, [%2_Ucoeff_3x56]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:6", "text": "paddd          m2, m3                 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }\n    paddd          m2, m4                 ; += rgb_Yrnd, i.e. (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = rgb or bgr\n%macro RGB24_TO_UV_FN 2-3\ncglobal %2 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [%2_Ucoeff_12x4]\n    mova           m9, [%2_Ucoeff_3x56]\n    mova          m10, [%2_Vcoeff_12x4]\n    mova          m11, [%2_Vcoeff_3x56]\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [%2_Ucoeff_12x4]\n%define coeffU2 [%2_Ucoeff_3x56]\n%define coeffV1 [%2_Vcoeff_12x4]\n%define coeffV2 [%2_Vcoeff_3x56]\n%endif ; x86-32/64\n%if ARCH_X86_64 && %0 == 3\n    jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 3\n.body:\n%if cpuflag(ssse3)\n    mova           m7, [shuf_rgb_12x4]\n%define shuf_rgb1 m7\n%if ARCH_X86_64\n    mova          m12, [shuf_rgb_3x56]\n%define shuf_rgb2 m12\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    add         dstUq, wq\n    add         dstVq, wq\n    neg            wq\n    mova           m6, [rgb_UVrnd]\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:7", "text": "mova          m12, [shuf_rgb_3x56]\n%define shuf_rgb2 m12\n%else ; x86-32\n%define shuf_rgb2 [shuf_rgb_3x56]\n%endif ; x86-32/64\n%endif ; cpuflag(ssse3)\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    add         dstUq, wq\n    add         dstVq, wq\n    neg            wq\n    mova           m6, [rgb_UVrnd]\n%if notcpuflag(ssse3)\n    pxor           m7, m7\n%endif\n.loop:\n%if cpuflag(ssse3)\n    movu           m0, [srcq+0]           ; (byte) { Bx, Gx, Rx }[0-3]\n    movu           m4, [srcq+12]          ; (byte) { Bx, Gx, Rx }[4-7]\n    pshufb         m1, m0, shuf_rgb2      ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    pshufb         m0, shuf_rgb1          ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n%else ; !cpuflag(ssse3)\n    movd           m0, [srcq+0]           ; (byte) { B0, G0, R0, B1 }\n    movd           m1, [srcq+2]           ; (byte) { R0, B1, G1, R1 }\n    movd           m4, [srcq+6]           ; (byte) { B2, G2, R2, B3 }\n    movd           m5, [srcq+8]           ; (byte) { R2, B3, G3, R3 }\n    punpckldq      m0, m4                 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpckldq      m1, m5                 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }\n    movd           m4, [srcq+12]          ; (byte) { B4, G4, R4, B5 }\n    movd           m5, [srcq+14]          ; (byte) { R4, B5, G5, R5 }\n    punpcklbw      m0, m7                 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }\n    punpcklbw      m1, m7                 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }\n%endif ; cpuflag(ssse3)\n    pmaddwd        m2, m0, coeffV1        ; (dword) { B0*BV + G0*GV, B1*BV, B2*BV + G2*GV, B3*BV }\n    pmaddwd        m3, m1, coeffV2        ; (dword) { R0*BV, G1*GV + R1*BV, R2*BV, G3*GV + R3*BV }\n    pmaddwd        m0, coeffU1            ; (dword) { B0*BU + G0*GU, B1*BU, B2*BU + G2*GU, B3*BU }\n    pmaddwd        m1, coeffU2            ; (dword) { R0*BU, G1*GU + R1*BU, R2*BU, G3*GU + R3*BU }\n    paddd          m0, m1                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[0-3]\n%if cpuflag(ssse3)\n    pshufb         m5, m4, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m4, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m1, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m3, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m4, m1                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m5, m3                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m4, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m5, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m1, m4, coeffU1        ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }\n    pmaddwd        m3, m5, coeffU2        ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }\n    pmaddwd        m4, coeffV1            ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }\n    pmaddwd        m5, coeffV2            ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }\n    paddd          m1, m3                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:8", "text": "pmaddwd        m1, coeffU2            ; (dword) { R0*BU, G1*GU + R1*BU, R2*BU, G3*GU + R3*BU }\n    paddd          m0, m1                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[0-3]\n    paddd          m2, m3                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[0-3]\n%if cpuflag(ssse3)\n    pshufb         m5, m4, shuf_rgb2      ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    pshufb         m4, shuf_rgb1          ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n%else ; !cpuflag(ssse3)\n    movd           m1, [srcq+18]          ; (byte) { B6, G6, R6, B7 }\n    movd           m3, [srcq+20]          ; (byte) { R6, B7, G7, R7 }\n    punpckldq      m4, m1                 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpckldq      m5, m3                 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }\n    punpcklbw      m4, m7                 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }\n    punpcklbw      m5, m7                 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }\n%endif ; cpuflag(ssse3)\n    add          srcq, 3 * mmsize / 2\n    pmaddwd        m1, m4, coeffU1        ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }\n    pmaddwd        m3, m5, coeffU2        ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }\n    pmaddwd        m4, coeffV1            ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }\n    pmaddwd        m5, coeffV2            ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }\n    paddd          m1, m3                 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]\n    paddd          m4, m5                 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[4-7]\n    paddd          m0, m6                 ; += rgb_UVrnd, i.e. (dword) { U[0-3] }\n    paddd          m2, m6                 ; += rgb_UVrnd, i.e. (dword) { V[0-3] }\n    paddd          m1, m6                 ; += rgb_UVrnd, i.e. (dword) { U[4-7] }\n    paddd          m4, m6                 ; += rgb_UVrnd, i.e. (dword) { V[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    psrad          m1, 9\n    psrad          m4, 9\n    packssdw       m0, m1                 ; (word) { U[0-7] }\n    packssdw       m2, m4                 ; (word) { V[0-7] }\n    mova   [dstUq+wq], m0\n    mova   [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n%macro RGB24_FUNCS 2\nRGB24_TO_Y_FN %1, rgb\nRGB24_TO_Y_FN %1, bgr, rgb\nRGB24_TO_UV_FN %2, rgb\nRGB24_TO_UV_FN %2, bgr, rgb\n%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13\n%endif\n\n; %1 = nr. of XMM registers", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:9", "text": "; %2 = nr. of XMM registers for rgb-to-UV func\n%macro RGB24_FUNCS 2\nRGB24_TO_Y_FN %1, rgb\nRGB24_TO_Y_FN %1, bgr, rgb\nRGB24_TO_UV_FN %2, rgb\nRGB24_TO_UV_FN %2, bgr, rgb\n%endmacro\n\nINIT_XMM sse2\nRGB24_FUNCS 10, 12\n\nINIT_XMM ssse3\nRGB24_FUNCS 11, 13\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB24_FUNCS 11, 13\n%endif\n\n; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_Y_FN 5-6\ncglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, table\n    mova           m5, [rgba_Ycoeff_%2%4]\n    mova           m6, [rgba_Ycoeff_%3%5]\n%if %0 == 6\n    jmp mangle(private_prefix %+ _ %+ %6 %+ ToY %+ SUFFIX).body\n%else ; %0 == 6\n.body:\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    lea          srcq, [srcq+wq*2]\n    add          dstq, wq\n    neg            wq\n    mova           m4, [rgb_Yrnd]\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n.loop:\n    ; FIXME check alignment and use mova\n    movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m2, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    pmaddwd        m3, m5                 ; (dword) { Bx*BY + Rx*RY }[4-7]\n    pmaddwd        m2, m6                 ; (dword) { Gx*GY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m2, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    paddd          m2, m3                 ; (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:10", "text": ".loop:\n    ; FIXME check alignment and use mova\n    movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m2, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    pmaddwd        m3, m5                 ; (dword) { Bx*BY + Rx*RY }[4-7]\n    pmaddwd        m2, m6                 ; (dword) { Gx*GY }[4-7]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m2, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    paddd          m2, m3                 ; (dword) { Y[4-7] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m2                 ; (word) { Y[0-7] }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq, 2*mmsize - 2\n    add            dstq, mmsize - 1\n.loop2:\n    movd           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  3,  2,  7     ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]\n    pmaddwd        m1, m5                 ; (dword) { Bx*BY + Rx*RY }[0-3]\n    pmaddwd        m0, m6                 ; (dword) { Gx*GY }[0-3]\n    paddd          m0, m4                 ; += rgb_Yrnd\n    paddd          m0, m1                 ; (dword) { Y[0-3] }\n    psrad          m0, 9\n    packssdw       m0, m0                 ; (word) { Y[0-7] }\n    movd    [dstq+wq], m0\n    add            wq, 2\n    jl .loop2\n.end:\n    RET\n%endif ; %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_UV_FN 5-6\ncglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [rgba_Ucoeff_%2%4]\n    mova           m9, [rgba_Ucoeff_%3%5]\n    mova          m10, [rgba_Vcoeff_%2%4]\n    mova          m11, [rgba_Vcoeff_%3%5]\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%2%4]\n%define coeffU2 [rgba_Ucoeff_%3%5]\n%define coeffV1 [rgba_Vcoeff_%2%4]\n%define coeffV2 [rgba_Vcoeff_%3%5]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:11", "text": "; %1 = nr. of XMM registers\n; %2-5 = rgba, bgra, argb or abgr (in individual characters)\n%macro RGB32_TO_UV_FN 5-6\ncglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table\n%if ARCH_X86_64\n    mova           m8, [rgba_Ucoeff_%2%4]\n    mova           m9, [rgba_Ucoeff_%3%5]\n    mova          m10, [rgba_Vcoeff_%2%4]\n    mova          m11, [rgba_Vcoeff_%3%5]\n%define coeffU1 m8\n%define coeffU2 m9\n%define coeffV1 m10\n%define coeffV2 m11\n%else ; x86-32\n%define coeffU1 [rgba_Ucoeff_%2%4]\n%define coeffU2 [rgba_Ucoeff_%3%5]\n%define coeffV1 [rgba_Vcoeff_%2%4]\n%define coeffV2 [rgba_Vcoeff_%3%5]\n%endif ; x86-64/32\n%if ARCH_X86_64 && %0 == 6\n    jmp mangle(private_prefix %+ _ %+ %6 %+ ToUV %+ SUFFIX).body\n%else ; ARCH_X86_64 && %0 == 6\n.body:\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add            wq, wq\n    sub            wq, mmsize - 1\n    add         dstUq, wq\n    add         dstVq, wq\n    lea          srcq, [srcq+wq*2]\n    neg            wq\n    pcmpeqb        m7, m7\n    psrlw          m7, 8                  ; (word) { 0x00ff } x4\n    mova           m6, [rgb_UVrnd]\n.loop:\n    ; FIXME check alignment and use mova\n    movu           m0, [srcq+wq*2+0]      ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    movu           m4, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:12", "text": "movu           m4, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    pmaddwd        m3, m5, coeffV1        ; (dword) { Bx*BV + Rx*RV }[4-7]\n    pmaddwd        m1, m4, coeffV2        ; (dword) { Gx*GV }[4-7]\n    pmaddwd        m5, coeffU1            ; (dword) { Bx*BU + Rx*RU }[4-7]\n    pmaddwd        m4, coeffU2            ; (dword) { Gx*GU }[4-7]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m5, m6                 ; += rgb_UVrnd\n    psrad          m0, 9\n    paddd          m1, m3                 ; (dword) { V[4-7] }\n    paddd          m4, m5                 ; (dword) { U[4-7] }\n    psrad          m2, 9\n    psrad          m4, 9\n    psrad          m1, 9\n    packssdw       m0, m4                 ; (word) { U[0-7] }\n    packssdw       m2, m1                 ; (word) { V[0-7] }\n    mova   [dstUq+wq], m0\n    mova   [dstVq+wq], m2\n    add            wq, mmsize\n    jl .loop\n    sub            wq, mmsize - 1\n    jz .end\n    add            srcq , 2*mmsize - 2\n    add            dstUq, mmsize - 1\n    add            dstVq, mmsize - 1\n.loop2:\n    movd           m0, [srcq+wq*2]        ; (byte) { Bx, Gx, Rx, xx }[0-3]\n    DEINTB          1,  0,  5,  4,  7     ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]\n    pmaddwd        m3, m1, coeffV1        ; (dword) { Bx*BV + Rx*RV }[0-3]\n    pmaddwd        m2, m0, coeffV2        ; (dword) { Gx*GV }[0-3]\n    pmaddwd        m1, coeffU1            ; (dword) { Bx*BU + Rx*RU }[0-3]\n    pmaddwd        m0, coeffU2            ; (dword) { Gx*GU }[0-3]\n    paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n%macro RGB32_FUNCS 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:13", "text": "paddd          m3, m6                 ; += rgb_UVrnd\n    paddd          m1, m6                 ; += rgb_UVrnd\n    paddd          m2, m3                 ; (dword) { V[0-3] }\n    paddd          m0, m1                 ; (dword) { U[0-3] }\n    psrad          m0, 9\n    psrad          m2, 9\n    packssdw       m0, m0                 ; (word) { U[0-7] }\n    packssdw       m2, m2                 ; (word) { V[0-7] }\n    movd   [dstUq+wq], m0\n    movd   [dstVq+wq], m2\n    add            wq, 2\n    jl .loop2\n.end:\n    RET\n%endif ; ARCH_X86_64 && %0 == 3\n%endmacro\n\n; %1 = nr. of XMM registers for rgb-to-Y func\n; %2 = nr. of XMM registers for rgb-to-UV func\n%macro RGB32_FUNCS 2\nRGB32_TO_Y_FN %1, r, g, b, a\nRGB32_TO_Y_FN %1, b, g, r, a, rgba\nRGB32_TO_Y_FN %1, a, r, g, b, rgba\nRGB32_TO_Y_FN %1, a, b, g, r, rgba\n\nRGB32_TO_UV_FN %2, r, g, b, a\nRGB32_TO_UV_FN %2, b, g, r, a, rgba\nRGB32_TO_UV_FN %2, a, r, g, b, rgba\nRGB32_TO_UV_FN %2, a, b, g, r, rgba\n%endmacro\n\nINIT_XMM sse2\nRGB32_FUNCS 8, 12\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nRGB32_FUNCS 8, 12\n%endif\n\n;-----------------------------------------------------------------------------\n; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n%ifidn %2, yuyv\n    pand           m0, m2                 ; (word) { Y0, Y1, ..., Y7 }\n    pand           m1, m2                 ; (word) { Y8, Y9, ..., Y15 }\n%else ; uyvy\n    psrlw          m0, 8                  ; (word) { Y0, Y1, ..., Y7 }\n    psrlw          m1, 8                  ; (word) { Y8, Y9, ..., Y15 }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:14", "text": "; YUYV/UYVY/NV12/NV21 packed pixel shuffling.\n;\n; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);\n; and\n; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,\n;                      const uint8_t *unused, int w);\n;-----------------------------------------------------------------------------\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_Y 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n%ifidn %2, yuyv\n    pand           m0, m2                 ; (word) { Y0, Y1, ..., Y7 }\n    pand           m1, m2                 ; (word) { Y8, Y9, ..., Y15 }\n%else ; uyvy\n    psrlw          m0, 8                  ; (word) { Y0, Y1, ..., Y7 }\n    psrlw          m1, 8                  ; (word) { Y8, Y9, ..., Y15 }\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { Y0, ..., Y15 }\n    mova    [dstq+wq], m0\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. YUYV+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_Y_FN 2-3\ncglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w\n%if ARCH_X86_64\n    movsxd         wq, wd\n%endif\n    add          dstq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_UV 2\n.loop_%1:\n%ifidn %2, yuyv\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:15", "text": "lea          srcq, [srcq+wq*2]\n%ifidn %2, yuyv\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n%endif ; yuyv\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_Y  a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_Y  u, %2\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = yuyv or uyvy\n%macro LOOP_YUYV_TO_UV 2\n.loop_%1:\n%ifidn %2, yuyv\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    psrlw          m0, 8                  ; (word) { U0, V0, ..., U3, V3 }\n    psrlw          m1, 8                  ; (word) { U4, V4, ..., U7, V7 }\n%else ; uyvy\n%if cpuflag(avx)\n    vpand          m0, m2, [srcq+wq*4]        ; (word) { U0, V0, ..., U3, V3 }\n    vpand          m1, m2, [srcq+wq*4+mmsize] ; (word) { U4, V4, ..., U7, V7 }\n%else\n    mov%1          m0, [srcq+wq*4]        ; (byte) { Y0, U0, Y1, V0, ... }\n    mov%1          m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }\n    pand           m0, m2                 ; (word) { U0, V0, ..., U3, V3 }\n    pand           m1, m2                 ; (word) { U4, V4, ..., U7, V7 }\n%endif\n%endif ; yuyv/uyvy\n    packuswb       m0, m1                 ; (byte) { U0, V0, ..., U7, V7 }\n    pand           m1, m0, m2             ; (word) { U0, U1, ..., U7 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    packuswb       m1, m0                 ; (byte) { U0, ... U7, V1, ... V7 }\n    movh   [dstUq+wq], m1\n    movhps [dstVq+wq], m1\n    add            wq, mmsize / 2\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2\n    test         srcq, 15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:16", "text": "jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = yuyv or uyvy\n; %3 = if specified, it means that unaligned and aligned code in loop\n;      will be the same (i.e. UYVY+AVX), and thus we don't need to\n;      split the loop in an aligned and unaligned case\n%macro YUYV_TO_UV_FN 2-3\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n%if %0 == 2\n    test         srcq, 15\n%endif\n    lea          srcq, [srcq+wq*4]\n    pcmpeqb        m2, m2                 ; (byte) { 0xff } x 16\n    psrlw          m2, 8                  ; (word) { 0x00ff } x 8\n    ; NOTE: if uyvy+avx, u/a are identical\n%if %0 == 2\n    jnz .loop_u_start\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_YUYV_TO_UV u, %2\n%else\n    neg            wq\n    LOOP_YUYV_TO_UV a, %2\n%endif\n%endmacro\n\n; %1 = a (aligned) or u (unaligned)\n; %2 = nv12 or nv21\n%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mova   [dstUq+wq], m2\n    mova   [dstVq+wq], m0\n%else ; nv21\n    mova   [dstVq+wq], m2\n    mova   [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:17", "text": "%macro LOOP_NVXX_TO_UV 2\n.loop_%1:\n    mov%1          m0, [srcq+wq*2]        ; (byte) { U0, V0, U1, V1, ... }\n    mov%1          m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }\n    pand           m2, m0, m5             ; (word) { U0, U1, ..., U7 }\n    pand           m3, m1, m5             ; (word) { U8, U9, ..., U15 }\n    psrlw          m0, 8                  ; (word) { V0, V1, ..., V7 }\n    psrlw          m1, 8                  ; (word) { V8, V9, ..., V15 }\n    packuswb       m2, m3                 ; (byte) { U0, ..., U15 }\n    packuswb       m0, m1                 ; (byte) { V0, ..., V15 }\n%ifidn %2, nv12\n    mova   [dstUq+wq], m2\n    mova   [dstVq+wq], m0\n%else ; nv21\n    mova   [dstVq+wq], m2\n    mova   [dstUq+wq], m0\n%endif ; nv12/21\n    add            wq, mmsize\n    jl .loop_%1\n    RET\n%endmacro\n\n; %1 = nr. of XMM registers\n; %2 = nv12 or nv21\n%macro NVXX_TO_UV_FN 2\ncglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w\n%if ARCH_X86_64\n    movsxd         wq, dword r5m\n%else ; x86-32\n    mov            wq, r5m\n%endif\n    add         dstUq, wq\n    add         dstVq, wq\n    test         srcq, 15\n    lea          srcq, [srcq+wq*2]\n    pcmpeqb        m5, m5                 ; (byte) { 0xff } x 16\n    psrlw          m5, 8                  ; (word) { 0x00ff } x 8\n    jnz .loop_u_start\n    neg            wq\n    LOOP_NVXX_TO_UV a, %2\n.loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1\nNVXX_TO_UV_FN 5, nv12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:18", "text": ".loop_u_start:\n    neg            wq\n    LOOP_NVXX_TO_UV u, %2\n%endmacro\n\nINIT_XMM sse2\nYUYV_TO_Y_FN  3, yuyv\nYUYV_TO_Y_FN  2, uyvy\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\n; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but\n; that's not faster in practice\nYUYV_TO_UV_FN 3, yuyv\nYUYV_TO_UV_FN 3, uyvy, 1\nNVXX_TO_UV_FN 5, nv12\nNVXX_TO_UV_FN 5, nv21\n%endif\n\n%if ARCH_X86_64\n%define RY_IDX 0\n%define GY_IDX 1\n%define BY_IDX 2\n%define RU_IDX 3\n%define GU_IDX 4\n%define BU_IDX 5\n%define RV_IDX 6\n%define GV_IDX 7\n%define BV_IDX 8\n%define RGB2YUV_SHIFT 15\n\n%define R m0\n%define G m1\n%define B m2\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2\n            bswap tmp1q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:19", "text": "%if mmsize > 16 || cpuflag(sse4)\n    pshufb   m%1, [pb_shuffle32be]\n%else\n    psrlw    xm7, xm%1, 8\n    psllw   xm%1, 8\n    por     xm%1, xm7\n    pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n; 4 - load only 2 values on sse2\n%macro LOADF32 4\n    %if notcpuflag(sse4) && %4\n        %if %3  ; big endian\n            mov tmp1q, %2\n            bswap tmp1q\n            movq xm%1, tmp1q\n        %else\n            movq m%1, %2\n        %endif\n    %else\n        movu m%1, %2\n        %if %3\n            SWAP32 %1\n        %endif\n    %endif\n    maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0\n    mulps m%1, m8 ; [pd_65535f]\n    minps m%1, m8 ; +inf -> 65535\n    ; cvtps2dq rounds to nearest int\n    ; assuming mxcsr register is default rounding\n    ; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0\n    cvtps2dq m%1, m%1\n\n    %if notcpuflag(sse4) && %4\n        ; line up the 2 values in lanes 0,2\n        %if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:20", "text": "%if %3 ; big endian\n            pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)\n        %else\n            pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro LOAD16 3\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxwd  m%1, %2\n        %if %3 ; bigendian\n            pshufb m%1, m8 ; [pb_shuffle16be]\n        %endif\n    %else\n        %if %3 ; bigendian\n            mov     tmp1d, dword %2\n            bswap   tmp1d\n            movd     xm%1, tmp1d\n            pshuflw   m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %else\n            movd     xm%1, %2\n            punpcklwd m%1, m9 ; interleave words with zero\n            pshufd    m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        %endif\n    %endif\n%endmacro\n\n%macro LOAD8_RGB 0\n    %if cpuflag(sse4) || mmsize > 16\n        pmovzxbd  R, [srcRq + xq]\n        pmovzxbd  G, [srcGq + xq]\n        pmovzxbd  B, [srcBq + xq]\n    %else\n        ; thought this would be faster but from my measurments its not\n        ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes\n        ; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:21", "text": "; punpcklbw m0, m9 ; interleave bytes with zero\n        ; punpcklwd m0, m9 ; interleave words with zero\n        ; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n\n        movzx tmp2q, byte [srcRq + xq + 1]\n        movzx tmp1q, byte [srcRq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm0, tmp1q\n\n        movzx tmp2q, byte [srcGq + xq + 1]\n        movzx tmp3q, byte [srcGq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp3q, tmp2q\n        movq    xm1, tmp3q\n\n        movzx tmp2q, byte [srcBq + xq + 1]\n        movzx tmp1q, byte [srcBq + xq + 0]\n        shl   tmp2q, 32\n        or    tmp1q, tmp2q\n        movq    xm2, tmp1q\n\n        pshufd   m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshufd   m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - store only 2 values on sse2\n%macro STORE16 3\n    %if %3 && notcpuflag(sse4)\n        pshufd        m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        pshuflw       m%2,  m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n        movd           %1,  m%2\n    %elif mmsize > 16\n        pshufb        m%2,   m7   ; [pb_pack_shuffle16le]\n        vpermq        m%2,  m%2,  (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu           %1, xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:22", "text": "%else\n        %if cpuflag(sse4)\n            pshufb  m%2,  m7 ; [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n        %endif\n        movq %1, m%2\n    %endif\n%endmacro\n\n%macro PMUL 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld  %1, %2, %3\n%else\n    pmuludq %1, %2, %3\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_y_fn 4\n%if %2 == 8\n    %define OFFSET (0x801<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq\n    VBROADCASTSS  m6, xm6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:23", "text": "cglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4\n    VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry\n    VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy\n    VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov           xq, OFFSET\n    movq         xm6, xq\n    VBROADCASTSS  m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      R, R, m10 ; r*ry\n        PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:24", "text": "PMUL      G, G, m11 ; g*gy\n        PMUL      B, B, m12 ; b*by\n        paddd    m0, m6       ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xq, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction\n%macro planar_rgb_to_uv_fn 4\n%if %2 == 8\n    %define OFFSET (0x4001<<(RGB2YUV_SHIFT-7))\n    %define RSHIFT (RGB2YUV_SHIFT-6)\n%else\n    %if %2 < 16\n        %define SHIFT %2\n        %define BPC %2\n    %else\n        %define SHIFT 14\n        %define BPC 16\n    %endif\n    %define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))\n    %define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)\n%endif\ncglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3\n    VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru\n    VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET\n    movq        xm6, xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:25", "text": "VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu\n    VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu\n    VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv\n    VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv\n    VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv\n    pxor m9, m9\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    %if cpuflag(sse4) || mmsize > 16\n        movu m7, [pb_pack_shuffle16le]\n        %if %3 && %2 > 8 && %2 <= 16\n            movu m8,  [pb_shuffle16be]\n        %endif\n    %endif\n\n    mov          xq, OFFSET\n    movq        xm6, xq\n    VBROADCASTSS m6, xm6\n\n    mov srcGq, [srcq +  0]\n    mov srcBq, [srcq +  8]\n    mov srcRq, [srcq + 16]\n\n    xor xq, xq\n    %%loop_x:\n        %if %4\n            LOADF32 0, [srcRq + xq*4], %3, 1\n            LOADF32 1, [srcGq + xq*4], %3, 1\n            LOADF32 2, [srcBq + xq*4], %3, 1\n        %elif %2 == 8\n            LOAD8_RGB\n        %else\n            LOAD16 0, [srcRq + xq*2], %3\n            LOAD16 1, [srcGq + xq*2], %3\n            LOAD16 2, [srcBq + xq*2], %3\n        %endif\n\n        PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xd, mmsize/4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:26", "text": "PMUL      m5, R, m10 ; r*ru\n        PMUL      m4, G, m11 ; b*gu\n        paddd     m4, m5\n        PMUL      m5, B, m12 ; b*bu\n        paddd     m4, m6     ; + OFFSET\n        paddd     m4, m5\n        psrad     m4, RSHIFT\n        STORE16 [dstUq + 2*xq], 4, 1\n\n        PMUL      R, R, m13 ; r*rv\n        PMUL      G, G, m14 ; g*gv*g\n        PMUL      B, B, m15 ; b*bv\n        paddd    m0, m6     ; + OFFSET\n        paddd     B, G\n        paddd    m0, B\n        psrad    m0, RSHIFT\n        STORE16 [dstVq + 2*xq], 0, 1\n\n        %if cpuflag(avx2) || cpuflag(sse4)\n            add xd, mmsize/4\n        %else\n            add xd, 2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is big endian\n; 4 - is float\n%macro planar_rgb_to_a_fn 4\ncglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x\n    %if %4 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_pack_shuffle16le]\n    %elif %3 && (cpuflag(sse4) || mmsize > 16)\n        movu m7, [pb_shuffle16be]\n    %endif\n\n    %if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero\n            %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:27", "text": "%if %4\n        movu m8, [pd_65535f]\n    %endif\n\n    pxor   m9, m9\n    mov srcAq, [srcq +  24]\n    xor    xq, xq\n    %%loop_x:\n        %if %4 ; float\n            LOADF32 0, [srcAq + xq*4], %3, 0\n            STORE16 [dstq + xq*2], 0, 0\n            add xq, mmsize/4\n        %elif %2 == 8\n            ; only need to convert 8bit value to 16bit\n            %if cpuflag(sse4) || mmsize > 16\n                pmovzxbw  m0, [srcAq + xq]\n            %else\n                movsd     m0, [srcAq + xq]\n                punpcklbw m0, m9 ; interleave bytes with zero\n            %endif\n            psllw m0, 6\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %else\n            ; only need to convert 16bit format to 16le\n            movu m0, [srcAq + xq*2]\n            %if %3 ; bigendian\n                %if cpuflag(sse4) || mmsize > 16\n                    pshufb m0, m7 ; [pb_shuffle16be]\n                %else\n                    psrlw  m7, m0, 8\n                    psllw  m0, 8\n                    por    m0, m7\n                %endif\n            %endif\n            %if %2 < 16\n                psllw m0, (14 - %2)\n            %endif\n            movu [dstq + xq*2], m0\n            add xq, mmsize/2\n        %endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3\nplanar_rgb_to_uv_fn  %1be,  %2, 1, %3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 1041, "line_end": 1100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/input.asm:28", "text": "%endif\n        cmp xd, wd\n        jl %%loop_x\nRET\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_y_fn_decl 3\nplanar_rgb_to_y_fn  %1le,  %2, 0, %3\nplanar_rgb_to_y_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_uv_fn_decl 3\nplanar_rgb_to_uv_fn  %1le,  %2, 0, %3\nplanar_rgb_to_uv_fn  %1be,  %2, 1, %3\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - is float\n%macro planer_rgbxx_a_fn_decl 3\nplanar_rgb_to_a_fn  %1le,  %2, 0, %3\nplanar_rgb_to_a_fn  %1be,  %2, 1, %3\n%endmacro\n\n%macro planar_rgb_y_all_fn_decl 0\nplanar_rgb_to_y_fn        rgb,  8, 0, 0\nplaner_rgbxx_y_fn_decl   rgb9,  9, 0\nplaner_rgbxx_y_fn_decl  rgb10, 10, 0\nplaner_rgbxx_y_fn_decl  rgb12, 12, 0\nplaner_rgbxx_y_fn_decl  rgb14, 14, 0\nplaner_rgbxx_y_fn_decl  rgb16, 16, 0\nplaner_rgbxx_y_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_uv_all_fn_decl 0\nplanar_rgb_to_uv_fn        rgb,  8, 0, 0\nplaner_rgbxx_uv_fn_decl   rgb9,  9, 0\nplaner_rgbxx_uv_fn_decl  rgb10, 10, 0\nplaner_rgbxx_uv_fn_decl  rgb12, 12, 0\nplaner_rgbxx_uv_fn_decl  rgb14, 14, 0\nplaner_rgbxx_uv_fn_decl  rgb16, 16, 0\nplaner_rgbxx_uv_fn_decl rgbf32, 32, 1\n%endmacro\n\n%macro planar_rgb_a_all_fn_decl 0\nplanar_rgb_to_a_fn        rgb,  8, 0, 0\nplaner_rgbxx_a_fn_decl  rgb10, 10, 0\nplaner_rgbxx_a_fn_decl  rgb12, 12, 0\nplaner_rgbxx_a_fn_decl  rgb16, 16, 0\nplaner_rgbxx_a_fn_decl rgbf32, 32, 1\n%endmacro\n\n; sse2 to_y only matches c speed with current implementation\n; except on floating point formats", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/input.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/input.asm", "line_start": 1081, "line_end": 1140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:3", "text": "; - max element is 8-bit:  block size 32, u8_m2_sse4\n;\n; AVX2:\n; - max element is 32-bit: block size 16, u32_m2_avx2, u16_m1_avx2, u8_m1_sse4\n; - max element is 16-bit: block size 32, u16_m2_avx2, u8_m1_avx2\n; - max element is 8-bit:  block size 64, u8_m2_avx2\n;\n; Meaning we need to cover the following code paths for each bit depth:\n;\n; -  8-bit kernels: m1_sse4, m2_sse4, m1_avx2, m2_avx2\n; - 16-bit kernels: m1_avx2, m2_avx2\n; - 32-bit kernels: m2_avx2\n;\n; This is achieved by macro'ing each operation kernel and declaring it once\n; per SIMD version, and (if needed) once per V2 setting using decl_v2. (See\n; the bottom of ops_int.asm for an example)\n;\n; Finally, we overload some operation kernel to different number of components,\n; using the `decl_pattern` and `decl_common_patterns` macros. Inside these\n; kernels, the variables X, Y, Z and W will be set to 0 or 1 respectively,\n; depending on which components are active for this particular kernel instance.\n; They will receive the _pXYZW prefix during name mangling.\n\nstruc SwsOpExec\n    .in0 resq 1\n    .in1 resq 1\n    .in2 resq 1\n    .in3 resq 1\n    .out0 resq 1\n    .out1 resq 1\n    .out2 resq 1\n    .out3 resq 1\n    .in_stride0 resq 1\n    .in_stride1 resq 1\n    .in_stride2 resq 1\n    .in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4\n    .out_sub_y4 resb 4\n    .in_sub_x4 resb 4\n    .out_sub_x4 resb 4\n    .in_bump_y resq 1\n    .in_offset_x resq 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_common.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4\n    .out_sub_y4 resb 4\n    .in_sub_x4 resb 4\n    .out_sub_x4 resb 4\n    .in_bump_y resq 1\n    .in_offset_x resq 1\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:5", "text": "%if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro\n\n; Declare an operation kernel specialized to a given subset of active components\n%macro decl_pattern 5+ ; X, Y, Z, W, func\n    %xdefine X %1\n    %xdefine Y %2\n    %xdefine Z %3\n    %xdefine W %4\n    %5\n    %undef X\n    %undef Y\n    %undef Z\n    %undef W\n%endmacro\n\n; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_common.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define bxq     r2q\n%define yd      r3d\n%define yq      r3q\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n%define tmp2q   r6q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n%define tmp2d   r6d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n%define tmp2w   r6w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r7q\n%define  in0q   r8q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "%define yd      r3d\n%define yq      r3q\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n%define tmp2q   r6q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n%define tmp2d   r6d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n%define tmp2w   r6w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r7q\n%define  in0q   r8q\n%define out1q   r9q\n%define  in1q   r10q\n%define out2q   r11q\n%define  in2q   r12q\n%define out3q   r13q\n%define  in3q   r14q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 301}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:3", "text": "; This design leaves us with the following set of possibilities:\n;\n; SSE4:\n; - max element is 32-bit: currently unsupported\n; - max element is 16-bit: currently unsupported\n; - max element is 8-bit:  block size 32, u8_m2_sse4\n;\n; AVX2:\n; - max element is 32-bit: block size 16, u32_m2_avx2, u16_m1_avx2, u8_m1_sse4\n; - max element is 16-bit: block size 32, u16_m2_avx2, u8_m1_avx2\n; - max element is 8-bit:  block size 64, u8_m2_avx2\n;\n; Meaning we need to cover the following code paths for each bit depth:\n;\n; -  8-bit kernels: m1_sse4, m2_sse4, m1_avx2, m2_avx2\n; - 16-bit kernels: m1_avx2, m2_avx2\n; - 32-bit kernels: m2_avx2\n;\n; This is achieved by macro'ing each operation kernel and declaring it once\n; per SIMD version, and (if needed) once per V2 setting using decl_v2. (See\n; the bottom of ops_int.asm for an example)\n;\n; Finally, we overload some operation kernel to different number of components,\n; using the `decl_pattern` and `decl_common_patterns` macros. Inside these\n; kernels, the variables X, Y, Z and W will be set to 0 or 1 respectively,\n; depending on which components are active for this particular kernel instance.\n; They will receive the _pXYZW prefix during name mangling.\n\nstruc SwsOpExec\n    .in0 resq 1\n    .in1 resq 1\n    .in2 resq 1\n    .in3 resq 1\n    .out0 resq 1\n    .out1 resq 1\n    .out2 resq 1\n    .out3 resq 1\n    .in_stride0 resq 1\n    .in_stride1 resq 1\n    .in_stride2 resq 1\n    .in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_common.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4\n    .out_sub_y4 resb 4\n    .in_sub_x4 resb 4\n    .out_sub_x4 resb 4\n    .in_bump_y resq 1\n    .in_offset_x resq 1\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:5", "text": "%else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro\n\n; Declare an operation kernel specialized to a given subset of active components\n%macro decl_pattern 5+ ; X, Y, Z, W, func\n    %xdefine X %1\n    %xdefine Y %2\n    %xdefine Z %3\n    %xdefine W %4\n    %5\n    %undef X\n    %undef Y\n    %undef Z\n    %undef W\n%endmacro\n\n; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_common.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define bxq     r2q\n%define yd      r3d\n%define yq      r3q\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n%define tmp2q   r6q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n%define tmp2d   r6d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n%define tmp2w   r6w", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define bxq     r2q\n%define yd      r3d\n%define yq      r3q\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n%define tmp2q   r6q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n%define tmp2d   r6d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n%define tmp2w   r6w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r7q\n%define  in0q   r8q\n%define out1q   r9q\n%define  in1q   r10q\n%define out2q   r11q\n%define  in2q   r12q\n%define out3q   r13q\n%define  in3q   r14q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 319}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n%define tmp2q   r6q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n%define tmp2d   r6d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n%define tmp2w   r6w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n%define tmp2q   r6q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n%define tmp2d   r6d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n%define tmp2w   r6w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r7q\n%define  in0q   r8q\n%define out1q   r9q\n%define  in1q   r10q\n%define out2q   r11q\n%define  in2q   r12q\n%define out3q   r13q\n%define  in3q   r14q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 317}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "e3daeff9650e3fa8c72526358a730a1fa69f410a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3daeff9650e3fa8c72526358a730a1fa69f410a/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "e3daeff9650e3fa8c72526358a730a1fa69f410a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3daeff9650e3fa8c72526358a730a1fa69f410a/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "e3daeff9650e3fa8c72526358a730a1fa69f410a", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e3daeff9650e3fa8c72526358a730a1fa69f410a/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 314}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4\n    .out_sub_y4 resb 4\n    .in_sub_x4 resb 4\n    .out_sub_x4 resb 4\n    .in_bump_y resq 1\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "015abfab38692e46d2733f8d4668ab447df31838", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/015abfab38692e46d2733f8d4668ab447df31838/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:5", "text": "%define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro\n\n; Declare an operation kernel specialized to a given subset of active components\n%macro decl_pattern 5+ ; X, Y, Z, W, func\n    %xdefine X %1\n    %xdefine Y %2\n    %xdefine Z %3\n    %xdefine W %4\n    %5\n    %undef X\n    %undef Y\n    %undef Z\n    %undef W\n%endmacro\n\n; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "015abfab38692e46d2733f8d4668ab447df31838", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/015abfab38692e46d2733f8d4668ab447df31838/libswscale/x86/ops_common.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "015abfab38692e46d2733f8d4668ab447df31838", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/015abfab38692e46d2733f8d4668ab447df31838/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "015abfab38692e46d2733f8d4668ab447df31838", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/015abfab38692e46d2733f8d4668ab447df31838/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "015abfab38692e46d2733f8d4668ab447df31838", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/015abfab38692e46d2733f8d4668ab447df31838/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 313}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4\n    .out_sub_y4 resb 4\n    .in_sub_x4 resb 4\n    .out_sub_x4 resb 4\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "bd9590db701259f84ed712bc46868c60ed7502a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bd9590db701259f84ed712bc46868c60ed7502a9/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:5", "text": "%endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro\n\n; Declare an operation kernel specialized to a given subset of active components\n%macro decl_pattern 5+ ; X, Y, Z, W, func\n    %xdefine X %1\n    %xdefine Y %2\n    %xdefine Z %3\n    %xdefine W %4\n    %5\n    %undef X\n    %undef Y\n    %undef Z\n    %undef W\n%endmacro\n\n; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "bd9590db701259f84ed712bc46868c60ed7502a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bd9590db701259f84ed712bc46868c60ed7502a9/libswscale/x86/ops_common.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "bd9590db701259f84ed712bc46868c60ed7502a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bd9590db701259f84ed712bc46868c60ed7502a9/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "bd9590db701259f84ed712bc46868c60ed7502a9", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/bd9590db701259f84ed712bc46868c60ed7502a9/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_sub_y4 resb 4\n    .out_sub_y4 resb 4\n    .in_sub_x4 resb 4\n    .out_sub_x4 resb 4\n    .in_hwframe_ref resq 1\n    .out_hwframe_ref resq 1\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "79334c8ca1f62a2b78a682a8eae5f89eebe90112", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/79334c8ca1f62a2b78a682a8eae5f89eebe90112/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:3", "text": "; This design leaves us with the following set of possibilities:\n;\n; SSE4:\n; - max element is 32-bit: currently unsupported\n; - max element is 16-bit: currently unsupported\n; - max element is 8-bit:  block size 32, u8_m2_sse4\n;\n; AVX2:\n; - max element is 32-bit: block size 16, u32_m2_avx2, u16_m1_avx2, u8_m1_sse4\n; - max element is 16-bit: block size 32, u16_m2_avx2, u8_m1_avx2\n; - max element is 8-bit:  block size 64, u8_m2_avx2\n;\n; Meaning we need to cover the following code paths for each bit depth:\n;\n; -  8-bit kernels: m1_sse4, m2_sse4, m1_avx2, m2_avx2\n; - 16-bit kernels: m1_avx2, m2_avx2\n; - 32-bit kernels: m2_avx2\n;\n; This is achieved by macro'ing each operation kernel and declaring it once\n; per SIMD version, and (if needed) once per V2 setting using decl_v2. (See\n; the bottom of ops_int.asm for an example)\n;\n; Finally, we overload some operation kernel to different number of components,\n; using the `decl_pattern` and `decl_common_patterns` macros. Inside these\n; kernels, the variables X, Y, Z and W will be set to 0 or 1 respectively,\n; depending on which components are active for this particular kernel instance.\n; They will receive the _pXYZW prefix during name mangling.\n\nstruc SwsOpExec\n    .in0 resq 1\n    .in1 resq 1\n    .in2 resq 1\n    .in3 resq 1\n    .out0 resq 1\n    .out1 resq 1\n    .out2 resq 1\n    .out3 resq 1\n    .in_stride0 resq 1\n    .in_stride1 resq 1\n    .in_stride2 resq 1\n    .in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_hwframe_ref resq 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "c911295f096c8dcf0dc29239d0915ce92f2454b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c911295f096c8dcf0dc29239d0915ce92f2454b5/libswscale/x86/ops_common.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\n    .in_hwframe_ref resq 1\n    .out_hwframe_ref resq 1\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "c911295f096c8dcf0dc29239d0915ce92f2454b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c911295f096c8dcf0dc29239d0915ce92f2454b5/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:5", "text": "%ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro\n\n; Declare an operation kernel specialized to a given subset of active components\n%macro decl_pattern 5+ ; X, Y, Z, W, func\n    %xdefine X %1\n    %xdefine Y %2\n    %xdefine Z %3\n    %xdefine W %4\n    %5\n    %undef X\n    %undef Y\n    %undef Z\n    %undef W\n%endmacro\n\n; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "c911295f096c8dcf0dc29239d0915ce92f2454b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c911295f096c8dcf0dc29239d0915ce92f2454b5/libswscale/x86/ops_common.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "c911295f096c8dcf0dc29239d0915ce92f2454b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c911295f096c8dcf0dc29239d0915ce92f2454b5/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "c911295f096c8dcf0dc29239d0915ce92f2454b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c911295f096c8dcf0dc29239d0915ce92f2454b5/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "c911295f096c8dcf0dc29239d0915ce92f2454b5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c911295f096c8dcf0dc29239d0915ce92f2454b5/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 310}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:3", "text": "; This design leaves us with the following set of possibilities:\n;\n; SSE4:\n; - max element is 32-bit: currently unsupported\n; - max element is 16-bit: currently unsupported\n; - max element is 8-bit:  block size 32, u8_m2_sse4\n;\n; AVX2:\n; - max element is 32-bit: block size 16, u32_m2_avx2, u16_m1_avx2, u8_m1_sse4\n; - max element is 16-bit: block size 32, u16_m2_avx2, u8_m1_avx2\n; - max element is 8-bit:  block size 64, u8_m2_avx2\n;\n; Meaning we need to cover the following code paths for each bit depth:\n;\n; -  8-bit kernels: m1_sse4, m2_sse4, m1_avx2, m2_avx2\n; - 16-bit kernels: m1_avx2, m2_avx2\n; - 32-bit kernels: m2_avx2\n;\n; This is achieved by macro'ing each operation kernel and declaring it once\n; per SIMD version, and (if needed) once per V2 setting using decl_v2. (See\n; the bottom of ops_int.asm for an example)\n;\n; Finally, we overload some operation kernel to different number of components,\n; using the `decl_pattern` and `decl_common_patterns` macros. Inside these\n; kernels, the variables X, Y, Z and W will be set to 0 or 1 respectively,\n; depending on which components are active for this particular kernel instance.\n; They will receive the _pXYZW prefix during name mangling.\n\nstruc SwsOpExec\n    .in0 resq 1\n    .in1 resq 1\n    .in2 resq 1\n    .in3 resq 1\n    .out0 resq 1\n    .out1 resq 1\n    .out2 resq 1\n    .out3 resq 1\n    .in_stride0 resq 1\n    .in_stride1 resq 1\n    .in_stride2 resq 1\n    .in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\nendstruc", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_common.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:4", "text": ".in_stride3 resq 1\n    .out_stride0 resq 1\n    .out_stride1 resq 1\n    .out_stride2 resq 1\n    .out_stride3 resq 1\n    .in_bump0 resq 1\n    .in_bump1 resq 1\n    .in_bump2 resq 1\n    .in_bump3 resq 1\n    .out_bump0 resq 1\n    .out_bump1 resq 1\n    .out_bump2 resq 1\n    .out_bump3 resq 1\n    .width resd 1\n    .height resd 1\n    .slice_y resd 1\n    .slice_h resd 1\n    .block_size_in resd 1\n    .block_size_out resd 1\nendstruc\n\nstruc SwsOpImpl\n    .cont resb 16\n    .priv resb 16\n    .next resb 0\nendstruc\n\n;---------------------------------------------------------\n; Common macros for declaring operations\n\n; Declare an operation kernel with the correct name mangling.\n%macro op 1 ; name\n    %ifdef X\n        %define ADD_PAT(name) p %+ X %+ Y %+ Z %+ W %+ _ %+ name\n    %else\n        %define ADD_PAT(name) name\n    %endif\n\n    %ifdef V2\n        %if V2\n            %define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_common.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:5", "text": "%define ADD_MUL(name) name %+ _m2\n        %else\n            %define ADD_MUL(name) name %+ _m1\n        %endif\n    %else\n        %define ADD_MUL(name) name\n    %endif\n\n    cglobal ADD_PAT(ADD_MUL(%1)), 0, 0, 0 ; already allocated by entry point\n\n    %undef ADD_PAT\n    %undef ADD_MUL\n%endmacro\n\n; Declare an operation kernel twice, once with V2=0 and once with V2=1\n%macro decl_v2 2+ ; v2, func\n    %xdefine V2 %1\n    %2\n    %undef V2\n%endmacro\n\n; Declare an operation kernel specialized to a given subset of active components\n%macro decl_pattern 5+ ; X, Y, Z, W, func\n    %xdefine X %1\n    %xdefine Y %2\n    %xdefine Z %3\n    %xdefine W %4\n    %5\n    %undef X\n    %undef Y\n    %undef Z\n    %undef W\n%endmacro\n\n; Declare an operation kernel specialized to each common component pattern\n%macro decl_common_patterns 1+ ; func\n    decl_pattern 1, 0, 0, 0, %1 ; y\n    decl_pattern 1, 0, 0, 1, %1 ; ya\n    decl_pattern 1, 1, 1, 0, %1 ; yuv\n    decl_pattern 1, 1, 1, 1, %1 ; yuva\n%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_common.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n%define tmp0w   r4w\n%define tmp1w   r5w\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 308}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:6", "text": "%endmacro\n\n;---------------------------------------------------------\n; Common names for the internal calling convention\n%define mx      m0\n%define my      m1\n%define mz      m2\n%define mw      m3\n\n%define xmx     xm0\n%define xmy     xm1\n%define xmz     xm2\n%define xmw     xm3\n\n%define ymx     ym0\n%define ymy     ym1\n%define ymz     ym2\n%define ymw     ym3\n\n%define mx2     m4\n%define my2     m5\n%define mz2     m6\n%define mw2     m7\n\n%define xmx2    xm4\n%define xmy2    xm5\n%define xmz2    xm6\n%define xmw2    xm7\n\n%define ymx2    ym4\n%define ymy2    ym5\n%define ymz2    ym6\n%define ymw2    ym7\n\n; Reserved in this order by the signature of SwsOpFunc\n%define execq   r0q\n%define implq   r1q\n%define bxd     r2d\n%define yd      r3d\n\n; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_common.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:7", "text": "; Extra registers for free use by kernels, not saved between ops\n%define tmp0q   r4q\n%define tmp1q   r5q\n\n%define tmp0d   r4d\n%define tmp1d   r5d\n\n; Registers for plane pointers; put at the end (and in ascending plane order)\n; so that we can avoid reserving them when not necessary\n%define out0q   r6q\n%define  in0q   r7q\n%define out1q   r8q\n%define  in1q   r9q\n%define out2q   r10q\n%define  in2q   r11q\n%define out3q   r12q\n%define  in3q   r13q\n\n;---------------------------------------------------------\n; Common macros for linking together different kernels\n\n; Load the next operation kernel's address to a register\n%macro LOAD_CONT 1 ; reg\n    mov %1, [implq + SwsOpImpl.cont]\n%endmacro\n\n; Tail call into the next operation kernel, given that kernel's address\n%macro CONTINUE 1 ; reg\n    add implq, SwsOpImpl.next\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Convenience macro to load and continue to the next kernel in one step\n%macro CONTINUE 0\n    LOAD_CONT tmp0q\n    CONTINUE tmp0q\n%endmacro\n\n; Final macro to end the operation chain, used by WRITE kernels to jump back\n; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_common.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_common.asm:8", "text": "; to the process function return point. Very similar to CONTINUE, but skips\n; incrementing the implq pointer, and also clears AVX registers to avoid\n; phantom dependencies between loop iterations.\n%macro FINISH 1 ; reg\n    %if vzeroupper_required\n        ; we may jump back into an SSE read, so always zero upper regs here\n        vzeroupper\n    %endif\n    jmp %1\n    annotate_function_size\n%endmacro\n\n; Helper for inline conditionals; used to conditionally include single lines\n%macro IF 2+ ; cond, body\n    %if %1\n        %2\n    %endif\n%endmacro\n\n; Alternate name; for nested usage (to work around NASM limitations)\n%macro IF1 2+\n    %if %1\n        %2\n    %endif\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_common.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_common.asm", "line_start": 281, "line_end": 305}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"ops_common.asm\"\n%define SWS_FILTER_SCALE (1 << 14)\n\nSECTION_RODATA\n\nalign 32\nbias16: times 16 dw 0x8000 ; shift unsigned to signed range\nbias32: times  8 dd 0x8000 * SWS_FILTER_SCALE\nscale_inv: times 8 dd 0x38800000 ; 1.0f / SWS_FILTER_SCALE\n\n; block_size = mmsize * 2 / sizeof(float)  (two grouped registers)\n%macro get_block_size 0\n    %define block_size (mmsize >> 1)\n%if mmsize == 64\n    %define block_shift 5\n%elif mmsize == 32\n    %define block_shift 4\n%elif mmsize == 16\n    %define block_shift 3\n%elif mmsize == 8\n    %define block_shift 2\n%else\n    %error \"Unsupported mmsize\"\n%endif\n%endmacro\n\nSECTION .text\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to32f 0\nop convert_U8_F32\n        LOAD_CONT tmp0q\nIF X,   vpsrldq xmx2, xmx, 8\nIF Y,   vpsrldq xmy2, xmy, 8\nIF Z,   vpsrldq xmz2, xmz, 8\nIF W,   vpsrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:2", "text": "%define block_shift 2\n%else\n    %error \"Unsupported mmsize\"\n%endif\n%endmacro\n\nSECTION .text\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to32f 0\nop convert_U8_F32\n        LOAD_CONT tmp0q\nIF X,   vpsrldq xmx2, xmx, 8\nIF Y,   vpsrldq xmy2, xmy, 8\nIF Z,   vpsrldq xmz2, xmz, 8\nIF W,   vpsrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\nIF X,   vcvtdq2ps mx, mx\nIF Y,   vcvtdq2ps my, my\nIF Z,   vcvtdq2ps mz, mz\nIF W,   vcvtdq2ps mw, mw\nIF X,   vcvtdq2ps mx2, mx2\nIF Y,   vcvtdq2ps my2, my2\nIF Z,   vcvtdq2ps mz2, mz2\nIF W,   vcvtdq2ps mw2, mw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32f 0\nop convert_U16_F32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\nIF X,   vcvtdq2ps mx, mx\nIF Y,   vcvtdq2ps my, my\nIF Z,   vcvtdq2ps mz, mz\nIF W,   vcvtdq2ps mw, mw\nIF X,   vcvtdq2ps mx2, mx2\nIF Y,   vcvtdq2ps my2, my2\nIF Z,   vcvtdq2ps mz2, mz2\nIF W,   vcvtdq2ps mw2, mw2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:3", "text": "IF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\nIF X,   vcvtdq2ps mx, mx\nIF Y,   vcvtdq2ps my, my\nIF Z,   vcvtdq2ps mz, mz\nIF W,   vcvtdq2ps mw, mw\nIF X,   vcvtdq2ps mx2, mx2\nIF Y,   vcvtdq2ps my2, my2\nIF Z,   vcvtdq2ps mz2, mz2\nIF W,   vcvtdq2ps mw2, mw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32fto8 0\nop convert_F32_U8\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32fto16 0\nop convert_F32_U16\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:4", "text": "IF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32fto16 0\nop convert_F32_U16\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Arithmetic operations\n\n%macro min_max 0\nop min\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   minps mx, mx, m8\nIF Y,   minps my, my, m9\nIF Z,   minps mz, mz, m10\nIF W,   minps mw, mw, m11\nIF X,   minps mx2, m8\nIF Y,   minps my2, m9\nIF Z,   minps mz2, m10\nIF W,   minps mw2, m11\n        CONTINUE tmp0q\n\nop max\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "op min\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   minps mx, mx, m8\nIF Y,   minps my, my, m9\nIF Z,   minps mz, mz, m10\nIF W,   minps mw, mw, m11\nIF X,   minps mx2, m8\nIF Y,   minps my2, m9\nIF Z,   minps mz2, m10\nIF W,   minps mw2, m11\n        CONTINUE tmp0q\n\nop max\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   maxps mx, m8\nIF Y,   maxps my, m9\nIF Z,   maxps mz, m10\nIF W,   maxps mw, m11\nIF X,   maxps mx2, m8\nIF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Dithering\n\n%macro dither0 0\nop dither0\n        ; constant offset for all channels\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "IF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Dithering\n\n%macro dither0 0\nop dither0\n        ; constant offset for all channels\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8\nIF X,   addps mx2, m8\nIF Y,   addps my2, m8\nIF Z,   addps mz2, m8\nIF W,   addps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_row 5 ; size_log2, comp_idx, matrix, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n        ; test is tmp0w < 0\n        test tmp0w, tmp0w\n        js .skip%2\n%if %1 == 1\n        vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n.skip%2:\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n.skip%2:\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\n        dither_row %1, 0, tmp1q, mx, mx2\n        dither_row %1, 1, tmp1q, my, my2\n        dither_row %1, 2, tmp1q, mz, mz2\n        dither_row %1, 3, tmp1q, mw, mw2\n        CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        decl_common_patterns dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n;---------------------------------------------------------\n; Linear transformations\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "dither 6\n        dither 7\n        dither 8\n%endmacro\n\n;---------------------------------------------------------\n; Linear transformations\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %2 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "%else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %2 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "op dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask yalpha,     MASK(1, 1)\n        linear_mask dot3a,      0x7 | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0) ^ MASK(0, 3)\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3uv,  MASK_MAT3 | MASK_OFF(1) | MASK_OFF(2)\n        linear_mask affine3x,   MASK_MAT3 ^ MASK(0, 1) | MASK_OFF3\n        linear_mask affine3xa,  MASK_MAT3 ^ MASK(0, 1) | MASK_OFF3 | MASK_ALPHA\n        linear_mask affine3xy,  MASK_MAT3 ^ MASK(0, 0) ^ MASK(0, 1) | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n%endmacro\n\n;---------------------------------------------------------\n; Filtering / scaling\n\n%macro floadU8 2 ; dst, src\n        pmovzxbd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadU16 2 ; dst, src\n        pmovzxwd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n%macro fmaccum 4 ; variant, dst, srcA, srcB\n%ifidn %1, none\n        mulps %2, %3, %4\n%elifidn %1, fma_v\n        fmaddps %2, %3, %4, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:11", "text": "%macro floadU8 2 ; dst, src\n        pmovzxbd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadU16 2 ; dst, src\n        pmovzxwd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n%macro fmaccum 4 ; variant, dst, srcA, srcB\n%ifidn %1, none\n        mulps %2, %3, %4\n%elifidn %1, fma_v\n        fmaddps %2, %3, %4, %2\n%else\n        mulps %3, %4\n        addps %2, %3\n%endif\n%endmacro\n\n%macro filter_v_iter 4 ; elems, type, sizeof_type, variant\n            vbroadcastss m12, [weights]\n            fload%2 m8,  [in0q]\nIF %1 > 1,  fload%2 m9,  [in1q]\nIF %1 > 2,  fload%2 m10, [in2q]\nIF %1 > 3,  fload%2 m11, [in3q]\n            fmaccum %4, mx, m8,  m12\nIF %1 > 1,  fmaccum %4, my, m9,  m12\nIF %1 > 2,  fmaccum %4, mz, m10, m12\nIF %1 > 3,  fmaccum %4, mw, m11, m12\n            fload%2 m8,  [in0q + (mmsize >> 2) * %3]\nIF %1 > 1,  fload%2 m9,  [in1q + (mmsize >> 2) * %3]\nIF %1 > 2,  fload%2 m10, [in2q + (mmsize >> 2) * %3]\nIF %1 > 3,  fload%2 m11, [in3q + (mmsize >> 2) * %3]\n            fmaccum %4, mx2, m8,  m12\nIF %1 > 1,  fmaccum %4, my2, m9,  m12\nIF %1 > 2,  fmaccum %4, mz2, m10, m12\nIF %1 > 3,  fmaccum %4, mw2, m11, m12\n%endmacro\n\n%macro filter_v 4 ; elems, type, sizeof_type, variant\nop filter_%4%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov weights, [implq + SwsOpImpl.priv]     ; float *weights\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            ; weights += filter_size * y * sizeof(float)\n            mov tmp2q, fltsize\n            imul tmp2q, yq\n            lea weights, [weights + 4 * tmp2q]\n            filter_v_iter %1, %2, %3, none\n            dec fltsize\n            jz .done\n            push in0q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:12", "text": "fmaccum %4, mx2, m8,  m12\nIF %1 > 1,  fmaccum %4, my2, m9,  m12\nIF %1 > 2,  fmaccum %4, mz2, m10, m12\nIF %1 > 3,  fmaccum %4, mw2, m11, m12\n%endmacro\n\n%macro filter_v 4 ; elems, type, sizeof_type, variant\nop filter_%4%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov weights, [implq + SwsOpImpl.priv]     ; float *weights\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            ; weights += filter_size * y * sizeof(float)\n            mov tmp2q, fltsize\n            imul tmp2q, yq\n            lea weights, [weights + 4 * tmp2q]\n            filter_v_iter %1, %2, %3, none\n            dec fltsize\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, [execq + SwsOpExec.in_stride0]\nIF %1 > 1,  add in1q, [execq + SwsOpExec.in_stride1]\nIF %1 > 2,  add in2q, [execq + SwsOpExec.in_stride2]\nIF %1 > 3,  add in3q, [execq + SwsOpExec.in_stride3]\n            add weights, 4\n            filter_v_iter %1, %2, %3, %4\n            dec fltsize\n            jnz .loop\nIF %1 > 3,  pop in3q\nIF %1 > 2,  pop in2q\nIF %1 > 1,  pop in1q\n            pop in0q\n.done:\n            LOAD_CONT tmp0q\nIF %1 > 3,  add in3q, (mmsize >> 1) * %3\nIF %1 > 2,  add in2q, (mmsize >> 1) * %3\nIF %1 > 1,  add in1q, (mmsize >> 1) * %3\n            add in0q, (mmsize >> 1) * %3\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro filter_h_iter_U8 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12 ; { ABCD | EFGH } 4 pixel per word\n        vpgatherdd m9, [%3 + m15], m13 ; { IJKL | MNOP }\n        ; unpack 4 bytes into separate 16-bit integer registers\n        punpckhbw m10, m8, m12 ; { CCDD | GGHH } 2 pixels per word\n        punpcklbw m8,  m8, m12 ; { AABB | EEFF }\n        punpckhbw m11, m9, m12 ; { KKLL | OOPP }\n        punpcklbw m9,  m9, m12 ; { IIJJ | MMNN }\n        pmaddwd m8,  [weights]\n        pmaddwd m10, [weights + mmsize]\n        pmaddwd m9,  [weights + mmsize * 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:13", "text": "IF %1 > 1,  add in1q, (mmsize >> 1) * %3\n            add in0q, (mmsize >> 1) * %3\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro filter_h_iter_U8 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12 ; { ABCD | EFGH } 4 pixel per word\n        vpgatherdd m9, [%3 + m15], m13 ; { IJKL | MNOP }\n        ; unpack 4 bytes into separate 16-bit integer registers\n        punpckhbw m10, m8, m12 ; { CCDD | GGHH } 2 pixels per word\n        punpcklbw m8,  m8, m12 ; { AABB | EEFF }\n        punpckhbw m11, m9, m12 ; { KKLL | OOPP }\n        punpcklbw m9,  m9, m12 ; { IIJJ | MMNN }\n        pmaddwd m8,  [weights]\n        pmaddwd m10, [weights + mmsize]\n        pmaddwd m9,  [weights + mmsize * 2]\n        pmaddwd m11, [weights + mmsize * 3]\n%if %4\n        phaddd %1, m8, m10 ; { ABCD | EFGH }\n        phaddd %2, m9, m11 ; { IJKL | MNOP }\n%else\n        phaddd m8, m10\n        phaddd m9, m11\n        paddd %1, m8\n        paddd %2, m9\n%endif\n%endmacro\n\n%macro filter_h_iter_U16 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12\n        vpgatherdd m9, [%3 + m15], m13\n        psubw m8, m10\n        psubw m9, m10\n%if %4\n        pmaddwd %1, m8, [weights]\n        pmaddwd %2, m9, [weights + mmsize]\n%else\n        pmaddwd m8, [weights]\n        pmaddwd m9, [weights + mmsize]\n        paddd %1, m8\n        paddd %2, m9\n%endif\n%endmacro\n\n%macro filter_h_iter_F32 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12\n        vpgatherdd m9, [%3 + m15], m13\n%if %4\n        mulps %1, m8, [weights]\n        mulps %2, m9, [weights + mmsize]\n%else\n        mulps m8, [weights]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:14", "text": "pmaddwd %1, m8, [weights]\n        pmaddwd %2, m9, [weights + mmsize]\n%else\n        pmaddwd m8, [weights]\n        pmaddwd m9, [weights + mmsize]\n        paddd %1, m8\n        paddd %2, m9\n%endif\n%endmacro\n\n%macro filter_h_iter_F32 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12\n        vpgatherdd m9, [%3 + m15], m13\n%if %4\n        mulps %1, m8, [weights]\n        mulps %2, m9, [weights + mmsize]\n%else\n        mulps m8, [weights]\n        mulps m9, [weights + mmsize]\n        addps %1, m8\n        addps %2, m9\n%endif\n%endmacro\n\n%macro filter_h 4 ; elems, type, sizeof_type, sizeof_weight\nop filter_h%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov tmp0q,   [execq + SwsOpExec.in_offset_x]\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            get_block_size\n            mov tmp2d, bxd\n            shl tmp2q, block_shift         ; x := bx * block_size\n            movu m14, [tmp0q + 4 * tmp2q]  ; &exec->in_offset_x[x]\n            movu m15, [tmp0q + 4 * tmp2q + mmsize]\n            mov weights, [implq + SwsOpImpl.priv]\n%ifidn %2, U16\n            mova m10, [bias16]\n            mova m11, [bias32]\n%endif\n            imul tmp2q, fltsize\n            lea weights, [weights + tmp2q * %4] ; weights += x * filter_size\n            filter_h_iter_%2 mx, mx2, in0q, 1\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 1\nIF1 %1 > 2, filter_h_iter_%2 mz, mz2, in2q, 1\nIF1 %1 > 3, filter_h_iter_%2 mw, mw2, in3q, 1\n            sub fltsize, 4 / %3\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, 4\nIF %1 > 1,  add in1q, 4\nIF %1 > 2,  add in2q, 4\nIF %1 > 3,  add in3q, 4\n            add weights, mmsize * 2 * (%4 / %3)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:15", "text": "mova m11, [bias32]\n%endif\n            imul tmp2q, fltsize\n            lea weights, [weights + tmp2q * %4] ; weights += x * filter_size\n            filter_h_iter_%2 mx, mx2, in0q, 1\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 1\nIF1 %1 > 2, filter_h_iter_%2 mz, mz2, in2q, 1\nIF1 %1 > 3, filter_h_iter_%2 mw, mw2, in3q, 1\n            sub fltsize, 4 / %3\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, 4\nIF %1 > 1,  add in1q, 4\nIF %1 > 2,  add in2q, 4\nIF %1 > 3,  add in3q, 4\n            add weights, mmsize * 2 * (%4 / %3)\n            filter_h_iter_%2 mx, mx2, in0q, 0\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 0\nIF1 %1 > 2, filter_h_iter_%2 mz, mz2, in2q, 0\nIF1 %1 > 3, filter_h_iter_%2 mw, mw2, in3q, 0\n            sub fltsize, 4 / %3\n            jnz .loop\nIF %1 > 3,  pop in3q\nIF %1 > 2,  pop in2q\nIF %1 > 1,  pop in1q\n            pop in0q\n.done:\n%ifidn %2, U16\n            paddd mx, m11\nIF %1 > 1,  paddd my, m11\nIF %1 > 2,  paddd mz, m11\nIF %1 > 3,  paddd mw, m11\n            paddd mx2, m11\nIF %1 > 1,  paddd my2, m11\nIF %1 > 2,  paddd mz2, m11\nIF %1 > 3,  paddd mw2, m11\n%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx, mx\nIF %1 > 1,  vcvtdq2ps my, my\nIF %1 > 2,  vcvtdq2ps mz, mz\nIF %1 > 3,  vcvtdq2ps mw, mw\n            vcvtdq2ps mx2, mx2\nIF %1 > 1,  vcvtdq2ps my2, my2\nIF %1 > 2,  vcvtdq2ps mz2, mz2\nIF %1 > 3,  vcvtdq2ps mw2, mw2\n%endif\n            mova m12, [scale_inv]\n            LOAD_CONT tmp0q\n            mulps mx, m12\nIF %1 > 1,  mulps my, m12\nIF %1 > 2,  mulps mz, m12\nIF %1 > 3,  mulps mw, m12\n            mulps mx2, m12\nIF %1 > 1,  mulps my2, m12\nIF %1 > 2,  mulps mz2, m12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:16", "text": "%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx, mx\nIF %1 > 1,  vcvtdq2ps my, my\nIF %1 > 2,  vcvtdq2ps mz, mz\nIF %1 > 3,  vcvtdq2ps mw, mw\n            vcvtdq2ps mx2, mx2\nIF %1 > 1,  vcvtdq2ps my2, my2\nIF %1 > 2,  vcvtdq2ps mz2, mz2\nIF %1 > 3,  vcvtdq2ps mw2, mw2\n%endif\n            mova m12, [scale_inv]\n            LOAD_CONT tmp0q\n            mulps mx, m12\nIF %1 > 1,  mulps my, m12\nIF %1 > 2,  mulps mz, m12\nIF %1 > 3,  mulps mw, m12\n            mulps mx2, m12\nIF %1 > 1,  mulps my2, m12\nIF %1 > 2,  mulps mz2, m12\nIF %1 > 3,  mulps mw2, m12\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro iloadU8 2 ; dst, src\n        pmovzxbw %1, %2\n%endmacro\n\n%macro iloadU16 2 ; dst, src\n        movu %1, %2\n        psubw %1, [bias16] ; shift into signed I16 range\n%endmacro\n\n%macro iloadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n; filter 4 adjacent pixels at the same time\n%macro filter_h4 4 ; dst, src, type, sizeof_type\n%ifidn %3, F32\n    %xdefine MUL mulps\n    %xdefine ADD addps\n%else\n    %xdefine MUL pmaddwd\n    %xdefine ADD paddd\n%endif\n            iload%3 xm8,  [%2 + offset0q] ; {a0, a1, a2, a3}\n            iload%3 xm9,  [%2 + offset1q] ; {b0, b1, b2, b3}\n            iload%3 xm10, [%2 + offset2q] ; {c0, c1, c2, c3}\n            iload%3 xm11, [%2 + offset3q] ; {d0, d1, d2, d3}\n            MUL xm8,  [weights]\n            MUL xm9,  [weights + 16]\n            MUL xm10, [weights + 32]\n            MUL xm11, [weights + 48]\n            mov bxq, fltsize\n            sub bxq, 64\n            jz %%done\n            push weights", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:17", "text": "%macro filter_h4 4 ; dst, src, type, sizeof_type\n%ifidn %3, F32\n    %xdefine MUL mulps\n    %xdefine ADD addps\n%else\n    %xdefine MUL pmaddwd\n    %xdefine ADD paddd\n%endif\n            iload%3 xm8,  [%2 + offset0q] ; {a0, a1, a2, a3}\n            iload%3 xm9,  [%2 + offset1q] ; {b0, b1, b2, b3}\n            iload%3 xm10, [%2 + offset2q] ; {c0, c1, c2, c3}\n            iload%3 xm11, [%2 + offset3q] ; {d0, d1, d2, d3}\n            MUL xm8,  [weights]\n            MUL xm9,  [weights + 16]\n            MUL xm10, [weights + 32]\n            MUL xm11, [weights + 48]\n            mov bxq, fltsize\n            sub bxq, 64\n            jz %%done\n            push weights\n            push %2\n%%loop:\n            add weights, 64\n%ifidn %3, F32\n            add %2, 4 * %4\n%else\n            add %2, 8 * %4\n%endif\n            iload%3 xm14, [%2 + offset0q]\n            iload%3 xm15, [%2 + offset1q]\n            MUL xm14, [weights]\n            MUL xm15, [weights + 16]\n            ADD xm8, xm14\n            ADD xm9, xm15\n            iload%3 xm14, [%2 + offset2q]\n            iload%3 xm15, [%2 + offset3q]\n            MUL xm14, [weights + 32]\n            MUL xm15, [weights + 48]\n            ADD xm10, xm14\n            ADD xm11, xm15\n            sub bxq, 64\n            jnz %%loop\n            pop %2\n            pop weights\n%%done:\n            ; 4x4 transpose (on XMM size)\n            punpckhdq  xm15, xm8,  xm9  ; {a2, b2, a3, b3}\n            punpckldq  xm8,  xm9        ; {a0, b0, a1, b1}\n            punpckhdq  xm9,  xm10, xm11 ; {c2, d2, c3, d3}\n            punpckldq  xm10, xm11       ; {c0, d0, c1, d1}\n            punpckhqdq xm11, xm8,  xm10 ; {a1, b1, c1, d1}\n            punpcklqdq xm8,  xm10       ; {a0, b0, c0, d0}\n            punpckhqdq xm10, xm15, xm9  ; {a3, b3, c3, d3}\n            punpcklqdq xm15, xm9        ; {a2, b2, c2, d2}\n            ADD xm8,  xm11 ; sum all even terms\n            ADD xm15, xm10 ; sum all odd terms\n            ADD %1, xm8, xm15\n%undef MUL\n%undef ADD\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:18", "text": "sub bxq, 64\n            jnz %%loop\n            pop %2\n            pop weights\n%%done:\n            ; 4x4 transpose (on XMM size)\n            punpckhdq  xm15, xm8,  xm9  ; {a2, b2, a3, b3}\n            punpckldq  xm8,  xm9        ; {a0, b0, a1, b1}\n            punpckhdq  xm9,  xm10, xm11 ; {c2, d2, c3, d3}\n            punpckldq  xm10, xm11       ; {c0, d0, c1, d1}\n            punpckhqdq xm11, xm8,  xm10 ; {a1, b1, c1, d1}\n            punpcklqdq xm8,  xm10       ; {a0, b0, c0, d0}\n            punpckhqdq xm10, xm15, xm9  ; {a3, b3, c3, d3}\n            punpcklqdq xm15, xm9        ; {a2, b2, c2, d2}\n            ADD xm8,  xm11 ; sum all even terms\n            ADD xm15, xm10 ; sum all odd terms\n            ADD %1, xm8, xm15\n%undef MUL\n%undef ADD\n%endmacro\n\n; filter low and high lines separately and combine results for each plane\n%macro filter_h8 4-5 ; elems, type, sizeof_type, offsets, dst_suffix\n            movsxd offset0q, dword [%4 +  0]\n            movsxd offset1q, dword [%4 +  4]\n            movsxd offset2q, dword [%4 +  8]\n            movsxd offset3q, dword [%4 + 12]\n            filter_h4 xmx%5, in0q, %2, %3\nIF %1 > 1,  filter_h4 xmy%5, in1q, %2, %3\nIF %1 > 2,  filter_h4 xmz%5, in2q, %2, %3\nIF %1 > 3,  filter_h4 xmw%5, in3q, %2, %3\n            add weights, fltsize\n            movsxd offset0q, dword [%4 + 16]\n            movsxd offset1q, dword [%4 + 20]\n            movsxd offset2q, dword [%4 + 24]\n            movsxd offset3q, dword [%4 + 28]\n            filter_h4 xm12, in0q, %2, %3\nIF %1 > 1,  filter_h4 xm13, in1q, %2, %3\n            vinsertf128 mx%5, mx%5, xmm12, 1\nIF %1 > 1,  vinsertf128 my%5, my%5, xmm13, 1\nIF %1 > 2,  filter_h4 xm12, in2q, %2, %3\nIF %1 > 3,  filter_h4 xm13, in3q, %2, %3\nIF %1 > 2,  vinsertf128 mz%5, mz%5, xmm12, 1\nIF %1 > 3,  vinsertf128 mw%5, mw%5, xmm13, 1\n%ifidn %2, U16\n            mova m15, [bias32]\n            paddd mx%5, m15\nIF %1 > 1,  paddd my%5, m15\nIF %1 > 2,  paddd mz%5, m15\nIF %1 > 3,  paddd mw%5, m15\n%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx%5, mx%5\nIF %1 > 1,  vcvtdq2ps my%5, my%5\nIF %1 > 2,  vcvtdq2ps mz%5, mz%5\nIF %1 > 3,  vcvtdq2ps mw%5, mw%5\n%endif\n%endmacro\n\n%macro filter_4x4_h 3 ; elems, type, sizeof_type", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:19", "text": "IF %1 > 2,  filter_h4 xm12, in2q, %2, %3\nIF %1 > 3,  filter_h4 xm13, in3q, %2, %3\nIF %1 > 2,  vinsertf128 mz%5, mz%5, xmm12, 1\nIF %1 > 3,  vinsertf128 mw%5, mw%5, xmm13, 1\n%ifidn %2, U16\n            mova m15, [bias32]\n            paddd mx%5, m15\nIF %1 > 1,  paddd my%5, m15\nIF %1 > 2,  paddd mz%5, m15\nIF %1 > 3,  paddd mw%5, m15\n%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx%5, mx%5\nIF %1 > 1,  vcvtdq2ps my%5, my%5\nIF %1 > 2,  vcvtdq2ps mz%5, mz%5\nIF %1 > 3,  vcvtdq2ps mw%5, mw%5\n%endif\n%endmacro\n\n%macro filter_4x4_h 3 ; elems, type, sizeof_type\nop filter_4x4_h%1_%2\n%xdefine offset0q out0q\n%xdefine offset1q out1q\n%xdefine offset2q out2q\n%xdefine offset3q out3q\n%xdefine weights  tmp0q\n%xdefine offsets  tmp2q\n%xdefine fltsize  tmp1q\n            ; reserve some registers for the inner loops\n            push bxq\n            push offset0q\n            push offset1q\n            push offset2q\n            push offset3q\n            get_block_size\n            shl bxq, block_shift ; x := bx * block_size\n            mov weights, [implq + SwsOpImpl.priv]        ; int16_t *weights\n            mov tmp1d,   [implq + SwsOpImpl.priv + 8]    ; size_t filter_size\n            mov offsets, [execq + SwsOpExec.in_offset_x] ; int32_t *offsets\n            lea offsets, [offsets + 4 * bxq] ; offsets += x * sizeof(int32_t)\n            imul bxq, fltsize\n            add weights, bxq ; weights += x * filter_size\n            shl fltsize, 2   ; fltsize *= 4 (number of pixels / iter)\n            filter_h8 %1, %2, %3, offsets\n            add weights, fltsize\n            filter_h8 %1, %2, %3, offsets + 32, 2\n            mova m10, [scale_inv]\n            mulps mx, m10\nIF %1 > 1,  mulps my, m10\nIF %1 > 2,  mulps mz, m10\nIF %1 > 3,  mulps mw, m10\n            mulps mx2, m10\nIF %1 > 1,  mulps my2, m10\nIF %1 > 2,  mulps mz2, m10\nIF %1 > 3,  mulps mw2, m10\n            pop offset3q\n            pop offset2q\n            pop offset1q\n            pop offset0q\n            pop bxq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:20", "text": "imul bxq, fltsize\n            add weights, bxq ; weights += x * filter_size\n            shl fltsize, 2   ; fltsize *= 4 (number of pixels / iter)\n            filter_h8 %1, %2, %3, offsets\n            add weights, fltsize\n            filter_h8 %1, %2, %3, offsets + 32, 2\n            mova m10, [scale_inv]\n            mulps mx, m10\nIF %1 > 1,  mulps my, m10\nIF %1 > 2,  mulps mz, m10\nIF %1 > 3,  mulps mw, m10\n            mulps mx2, m10\nIF %1 > 1,  mulps my2, m10\nIF %1 > 2,  mulps mz2, m10\nIF %1 > 3,  mulps mw2, m10\n            pop offset3q\n            pop offset2q\n            pop offset1q\n            pop offset0q\n            pop bxq\n            CONTINUE\n%undef offset0q\n%undef offset1q\n%undef offset2q\n%undef offset3q\n%undef weights\n%undef offsets\n%undef fltsize\n%endmacro\n\n%macro generic_filter_fns 3 ; type, sizeof_type, sizeof_weight\n        filter_v 1, %1, %2, v\n        filter_v 2, %1, %2, v\n        filter_v 3, %1, %2, v\n        filter_v 4, %1, %2, v\n\n        filter_v 1, %1, %2, fma_v\n        filter_v 2, %1, %2, fma_v\n        filter_v 3, %1, %2, fma_v\n        filter_v 4, %1, %2, fma_v\n\n        filter_h 1, %1, %2, %3\n        filter_h 2, %1, %2, %3\n        filter_h 3, %1, %2, %3\n        filter_h 4, %1, %2, %3\n\n        filter_4x4_h 1, %1, %2\n        filter_4x4_h 2, %1, %2\n        filter_4x4_h 3, %1, %2\n        filter_4x4_h 4, %1, %2\n%endmacro\n\n%macro filter_fns 0\n    generic_filter_fns U8,  1, 2\n    generic_filter_fns U16, 2, 2\n    generic_filter_fns F32, 4, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:21", "text": "filter_h 1, %1, %2, %3\n        filter_h 2, %1, %2, %3\n        filter_h 3, %1, %2, %3\n        filter_h 4, %1, %2, %3\n\n        filter_4x4_h 1, %1, %2\n        filter_4x4_h 2, %1, %2\n        filter_4x4_h 3, %1, %2\n        filter_4x4_h 4, %1, %2\n%endmacro\n\n%macro filter_fns 0\n    generic_filter_fns U8,  1, 2\n    generic_filter_fns U16, 2, 2\n    generic_filter_fns F32, 4, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns\nfilter_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_float.asm", "line_start": 801, "line_end": 828}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "op dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\n;---------------------------------------------------------\n; Filtering / scaling\n\n%macro floadU8 2 ; dst, src\n        pmovzxbd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadU16 2 ; dst, src\n        pmovzxwd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n%macro fmaccum 4 ; variant, dst, srcA, srcB\n%ifidn %1, none\n        mulps %2, %3, %4\n%elifidn %1, fma_v\n        fmaddps %2, %3, %4, %2\n%else\n        mulps %3, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:11", "text": "pmovzxbd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadU16 2 ; dst, src\n        pmovzxwd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n%macro fmaccum 4 ; variant, dst, srcA, srcB\n%ifidn %1, none\n        mulps %2, %3, %4\n%elifidn %1, fma_v\n        fmaddps %2, %3, %4, %2\n%else\n        mulps %3, %4\n        addps %2, %3\n%endif\n%endmacro\n\n%macro filter_v_iter 4 ; elems, type, sizeof_type, variant\n            vbroadcastss m12, [weights]\n            fload%2 m8,  [in0q]\nIF %1 > 1,  fload%2 m9,  [in1q]\nIF %1 > 2,  fload%2 m10, [in2q]\nIF %1 > 3,  fload%2 m11, [in3q]\n            fmaccum %4, mx, m8,  m12\nIF %1 > 1,  fmaccum %4, my, m9,  m12\nIF %1 > 2,  fmaccum %4, mz, m10, m12\nIF %1 > 3,  fmaccum %4, mw, m11, m12\n            fload%2 m8,  [in0q + (mmsize >> 2) * %3]\nIF %1 > 1,  fload%2 m9,  [in1q + (mmsize >> 2) * %3]\nIF %1 > 2,  fload%2 m10, [in2q + (mmsize >> 2) * %3]\nIF %1 > 3,  fload%2 m11, [in3q + (mmsize >> 2) * %3]\n            fmaccum %4, mx2, m8,  m12\nIF %1 > 1,  fmaccum %4, my2, m9,  m12\nIF %1 > 2,  fmaccum %4, mz2, m10, m12\nIF %1 > 3,  fmaccum %4, mw2, m11, m12\n%endmacro\n\n%macro filter_v 4 ; elems, type, sizeof_type, variant\nop filter_%4%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov weights, [implq + SwsOpImpl.priv]     ; float *weights\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            ; weights += filter_size * y * sizeof(float)\n            mov tmp2q, fltsize\n            imul tmp2q, yq\n            lea weights, [weights + 4 * tmp2q]\n            filter_v_iter %1, %2, %3, none\n            dec fltsize\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:12", "text": "IF %1 > 2,  fmaccum %4, mz2, m10, m12\nIF %1 > 3,  fmaccum %4, mw2, m11, m12\n%endmacro\n\n%macro filter_v 4 ; elems, type, sizeof_type, variant\nop filter_%4%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov weights, [implq + SwsOpImpl.priv]     ; float *weights\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            ; weights += filter_size * y * sizeof(float)\n            mov tmp2q, fltsize\n            imul tmp2q, yq\n            lea weights, [weights + 4 * tmp2q]\n            filter_v_iter %1, %2, %3, none\n            dec fltsize\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, [execq + SwsOpExec.in_stride0]\nIF %1 > 1,  add in1q, [execq + SwsOpExec.in_stride1]\nIF %1 > 2,  add in2q, [execq + SwsOpExec.in_stride2]\nIF %1 > 3,  add in3q, [execq + SwsOpExec.in_stride3]\n            add weights, 4\n            filter_v_iter %1, %2, %3, %4\n            dec fltsize\n            jnz .loop\nIF %1 > 3,  pop in3q\nIF %1 > 2,  pop in2q\nIF %1 > 1,  pop in1q\n            pop in0q\n.done:\n            LOAD_CONT tmp0q\nIF %1 > 3,  add in3q, (mmsize >> 1) * %3\nIF %1 > 2,  add in2q, (mmsize >> 1) * %3\nIF %1 > 1,  add in1q, (mmsize >> 1) * %3\n            add in0q, (mmsize >> 1) * %3\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro filter_h_iter_U8 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12 ; { ABCD | EFGH } 4 pixel per word\n        vpgatherdd m9, [%3 + m15], m13 ; { IJKL | MNOP }\n        ; unpack 4 bytes into separate 16-bit integer registers\n        punpckhbw m10, m8, m12 ; { CCDD | GGHH } 2 pixels per word\n        punpcklbw m8,  m8, m12 ; { AABB | EEFF }\n        punpckhbw m11, m9, m12 ; { KKLL | OOPP }\n        punpcklbw m9,  m9, m12 ; { IIJJ | MMNN }\n        pmaddwd m8,  [weights]\n        pmaddwd m10, [weights + mmsize]\n        pmaddwd m9,  [weights + mmsize * 2]\n        pmaddwd m11, [weights + mmsize * 3]\n%if %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:13", "text": "CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro filter_h_iter_U8 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12 ; { ABCD | EFGH } 4 pixel per word\n        vpgatherdd m9, [%3 + m15], m13 ; { IJKL | MNOP }\n        ; unpack 4 bytes into separate 16-bit integer registers\n        punpckhbw m10, m8, m12 ; { CCDD | GGHH } 2 pixels per word\n        punpcklbw m8,  m8, m12 ; { AABB | EEFF }\n        punpckhbw m11, m9, m12 ; { KKLL | OOPP }\n        punpcklbw m9,  m9, m12 ; { IIJJ | MMNN }\n        pmaddwd m8,  [weights]\n        pmaddwd m10, [weights + mmsize]\n        pmaddwd m9,  [weights + mmsize * 2]\n        pmaddwd m11, [weights + mmsize * 3]\n%if %4\n        phaddd %1, m8, m10 ; { ABCD | EFGH }\n        phaddd %2, m9, m11 ; { IJKL | MNOP }\n%else\n        phaddd m8, m10\n        phaddd m9, m11\n        paddd %1, m8\n        paddd %2, m9\n%endif\n%endmacro\n\n%macro filter_h_iter_U16 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12\n        vpgatherdd m9, [%3 + m15], m13\n        psubw m8, m10\n        psubw m9, m10\n%if %4\n        pmaddwd %1, m8, [weights]\n        pmaddwd %2, m9, [weights + mmsize]\n%else\n        pmaddwd m8, [weights]\n        pmaddwd m9, [weights + mmsize]\n        paddd %1, m8\n        paddd %2, m9\n%endif\n%endmacro\n\n%macro filter_h_iter_F32 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12\n        vpgatherdd m9, [%3 + m15], m13\n%if %4\n        mulps %1, m8, [weights]\n        mulps %2, m9, [weights + mmsize]\n%else\n        mulps m8, [weights]\n        mulps m9, [weights + mmsize]\n        addps %1, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:14", "text": "%else\n        pmaddwd m8, [weights]\n        pmaddwd m9, [weights + mmsize]\n        paddd %1, m8\n        paddd %2, m9\n%endif\n%endmacro\n\n%macro filter_h_iter_F32 4 ; acc, acc2, src, first\n        pcmpeqb m12, m12\n        pcmpeqb m13, m13\n        vpgatherdd m8, [%3 + m14], m12\n        vpgatherdd m9, [%3 + m15], m13\n%if %4\n        mulps %1, m8, [weights]\n        mulps %2, m9, [weights + mmsize]\n%else\n        mulps m8, [weights]\n        mulps m9, [weights + mmsize]\n        addps %1, m8\n        addps %2, m9\n%endif\n%endmacro\n\n%macro filter_h 4 ; elems, type, sizeof_type, sizeof_weight\nop filter_h%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov tmp0q,   [execq + SwsOpExec.in_offset_x]\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            get_block_size\n            mov tmp2d, bxd\n            shl tmp2q, block_shift         ; x := bx * block_size\n            movu m14, [tmp0q + 4 * tmp2q]  ; &exec->in_offset_x[x]\n            movu m15, [tmp0q + 4 * tmp2q + mmsize]\n            mov weights, [implq + SwsOpImpl.priv]\n%ifidn %2, U16\n            mova m10, [bias16]\n            mova m11, [bias32]\n%endif\n            imul tmp2q, fltsize\n            lea weights, [weights + tmp2q * %4] ; weights += x * filter_size\n            filter_h_iter_%2 mx, mx2, in0q, 1\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 1\nIF1 %1 > 2, filter_h_iter_%2 mz, mz2, in2q, 1\nIF1 %1 > 3, filter_h_iter_%2 mw, mw2, in3q, 1\n            sub fltsize, 4 / %3\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, 4\nIF %1 > 1,  add in1q, 4\nIF %1 > 2,  add in2q, 4\nIF %1 > 3,  add in3q, 4\n            add weights, mmsize * 2 * (%4 / %3)\n            filter_h_iter_%2 mx, mx2, in0q, 0\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:15", "text": "imul tmp2q, fltsize\n            lea weights, [weights + tmp2q * %4] ; weights += x * filter_size\n            filter_h_iter_%2 mx, mx2, in0q, 1\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 1\nIF1 %1 > 2, filter_h_iter_%2 mz, mz2, in2q, 1\nIF1 %1 > 3, filter_h_iter_%2 mw, mw2, in3q, 1\n            sub fltsize, 4 / %3\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, 4\nIF %1 > 1,  add in1q, 4\nIF %1 > 2,  add in2q, 4\nIF %1 > 3,  add in3q, 4\n            add weights, mmsize * 2 * (%4 / %3)\n            filter_h_iter_%2 mx, mx2, in0q, 0\nIF1 %1 > 1, filter_h_iter_%2 my, my2, in1q, 0\nIF1 %1 > 2, filter_h_iter_%2 mz, mz2, in2q, 0\nIF1 %1 > 3, filter_h_iter_%2 mw, mw2, in3q, 0\n            sub fltsize, 4 / %3\n            jnz .loop\nIF %1 > 3,  pop in3q\nIF %1 > 2,  pop in2q\nIF %1 > 1,  pop in1q\n            pop in0q\n.done:\n%ifidn %2, U16\n            paddd mx, m11\nIF %1 > 1,  paddd my, m11\nIF %1 > 2,  paddd mz, m11\nIF %1 > 3,  paddd mw, m11\n            paddd mx2, m11\nIF %1 > 1,  paddd my2, m11\nIF %1 > 2,  paddd mz2, m11\nIF %1 > 3,  paddd mw2, m11\n%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx, mx\nIF %1 > 1,  vcvtdq2ps my, my\nIF %1 > 2,  vcvtdq2ps mz, mz\nIF %1 > 3,  vcvtdq2ps mw, mw\n            vcvtdq2ps mx2, mx2\nIF %1 > 1,  vcvtdq2ps my2, my2\nIF %1 > 2,  vcvtdq2ps mz2, mz2\nIF %1 > 3,  vcvtdq2ps mw2, mw2\n%endif\n            mova m12, [scale_inv]\n            LOAD_CONT tmp0q\n            mulps mx, m12\nIF %1 > 1,  mulps my, m12\nIF %1 > 2,  mulps mz, m12\nIF %1 > 3,  mulps mw, m12\n            mulps mx2, m12\nIF %1 > 1,  mulps my2, m12\nIF %1 > 2,  mulps mz2, m12\nIF %1 > 3,  mulps mw2, m12\n            CONTINUE tmp0q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:16", "text": "vcvtdq2ps mx, mx\nIF %1 > 1,  vcvtdq2ps my, my\nIF %1 > 2,  vcvtdq2ps mz, mz\nIF %1 > 3,  vcvtdq2ps mw, mw\n            vcvtdq2ps mx2, mx2\nIF %1 > 1,  vcvtdq2ps my2, my2\nIF %1 > 2,  vcvtdq2ps mz2, mz2\nIF %1 > 3,  vcvtdq2ps mw2, mw2\n%endif\n            mova m12, [scale_inv]\n            LOAD_CONT tmp0q\n            mulps mx, m12\nIF %1 > 1,  mulps my, m12\nIF %1 > 2,  mulps mz, m12\nIF %1 > 3,  mulps mw, m12\n            mulps mx2, m12\nIF %1 > 1,  mulps my2, m12\nIF %1 > 2,  mulps mz2, m12\nIF %1 > 3,  mulps mw2, m12\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro iloadU8 2 ; dst, src\n        pmovzxbw %1, %2\n%endmacro\n\n%macro iloadU16 2 ; dst, src\n        movu %1, %2\n        psubw %1, [bias16] ; shift into signed I16 range\n%endmacro\n\n%macro iloadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n; filter 4 adjacent pixels at the same time\n%macro filter_h4 4 ; dst, src, type, sizeof_type\n%ifidn %3, F32\n    %xdefine MUL mulps\n    %xdefine ADD addps\n%else\n    %xdefine MUL pmaddwd\n    %xdefine ADD paddd\n%endif\n            iload%3 xm8,  [%2 + offset0q] ; {a0, a1, a2, a3}\n            iload%3 xm9,  [%2 + offset1q] ; {b0, b1, b2, b3}\n            iload%3 xm10, [%2 + offset2q] ; {c0, c1, c2, c3}\n            iload%3 xm11, [%2 + offset3q] ; {d0, d1, d2, d3}\n            MUL xm8,  [weights]\n            MUL xm9,  [weights + 16]\n            MUL xm10, [weights + 32]\n            MUL xm11, [weights + 48]\n            mov bxq, fltsize\n            sub bxq, 64\n            jz %%done\n            push weights\n            push %2\n%%loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:17", "text": "%xdefine MUL mulps\n    %xdefine ADD addps\n%else\n    %xdefine MUL pmaddwd\n    %xdefine ADD paddd\n%endif\n            iload%3 xm8,  [%2 + offset0q] ; {a0, a1, a2, a3}\n            iload%3 xm9,  [%2 + offset1q] ; {b0, b1, b2, b3}\n            iload%3 xm10, [%2 + offset2q] ; {c0, c1, c2, c3}\n            iload%3 xm11, [%2 + offset3q] ; {d0, d1, d2, d3}\n            MUL xm8,  [weights]\n            MUL xm9,  [weights + 16]\n            MUL xm10, [weights + 32]\n            MUL xm11, [weights + 48]\n            mov bxq, fltsize\n            sub bxq, 64\n            jz %%done\n            push weights\n            push %2\n%%loop:\n            add weights, 64\n%ifidn %3, F32\n            add %2, 4 * %4\n%else\n            add %2, 8 * %4\n%endif\n            iload%3 xm14, [%2 + offset0q]\n            iload%3 xm15, [%2 + offset1q]\n            MUL xm14, [weights]\n            MUL xm15, [weights + 16]\n            ADD xm8, xm14\n            ADD xm9, xm15\n            iload%3 xm14, [%2 + offset2q]\n            iload%3 xm15, [%2 + offset3q]\n            MUL xm14, [weights + 32]\n            MUL xm15, [weights + 48]\n            ADD xm10, xm14\n            ADD xm11, xm15\n            sub bxq, 64\n            jnz %%loop\n            pop %2\n            pop weights\n%%done:\n            ; 4x4 transpose (on XMM size)\n            punpckhdq  xm15, xm8,  xm9  ; {a2, b2, a3, b3}\n            punpckldq  xm8,  xm9        ; {a0, b0, a1, b1}\n            punpckhdq  xm9,  xm10, xm11 ; {c2, d2, c3, d3}\n            punpckldq  xm10, xm11       ; {c0, d0, c1, d1}\n            punpckhqdq xm11, xm8,  xm10 ; {a1, b1, c1, d1}\n            punpcklqdq xm8,  xm10       ; {a0, b0, c0, d0}\n            punpckhqdq xm10, xm15, xm9  ; {a3, b3, c3, d3}\n            punpcklqdq xm15, xm9        ; {a2, b2, c2, d2}\n            ADD xm8,  xm11 ; sum all even terms\n            ADD xm15, xm10 ; sum all odd terms\n            ADD %1, xm8, xm15\n%undef MUL\n%undef ADD\n%endmacro\n\n; filter low and high lines separately and combine results for each plane", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:18", "text": "pop %2\n            pop weights\n%%done:\n            ; 4x4 transpose (on XMM size)\n            punpckhdq  xm15, xm8,  xm9  ; {a2, b2, a3, b3}\n            punpckldq  xm8,  xm9        ; {a0, b0, a1, b1}\n            punpckhdq  xm9,  xm10, xm11 ; {c2, d2, c3, d3}\n            punpckldq  xm10, xm11       ; {c0, d0, c1, d1}\n            punpckhqdq xm11, xm8,  xm10 ; {a1, b1, c1, d1}\n            punpcklqdq xm8,  xm10       ; {a0, b0, c0, d0}\n            punpckhqdq xm10, xm15, xm9  ; {a3, b3, c3, d3}\n            punpcklqdq xm15, xm9        ; {a2, b2, c2, d2}\n            ADD xm8,  xm11 ; sum all even terms\n            ADD xm15, xm10 ; sum all odd terms\n            ADD %1, xm8, xm15\n%undef MUL\n%undef ADD\n%endmacro\n\n; filter low and high lines separately and combine results for each plane\n%macro filter_h8 4-5 ; elems, type, sizeof_type, offsets, dst_suffix\n            movsxd offset0q, dword [%4 +  0]\n            movsxd offset1q, dword [%4 +  4]\n            movsxd offset2q, dword [%4 +  8]\n            movsxd offset3q, dword [%4 + 12]\n            filter_h4 xmx%5, in0q, %2, %3\nIF %1 > 1,  filter_h4 xmy%5, in1q, %2, %3\nIF %1 > 2,  filter_h4 xmz%5, in2q, %2, %3\nIF %1 > 3,  filter_h4 xmw%5, in3q, %2, %3\n            add weights, fltsize\n            movsxd offset0q, dword [%4 + 16]\n            movsxd offset1q, dword [%4 + 20]\n            movsxd offset2q, dword [%4 + 24]\n            movsxd offset3q, dword [%4 + 28]\n            filter_h4 xm12, in0q, %2, %3\nIF %1 > 1,  filter_h4 xm13, in1q, %2, %3\n            vinsertf128 mx%5, mx%5, xmm12, 1\nIF %1 > 1,  vinsertf128 my%5, my%5, xmm13, 1\nIF %1 > 2,  filter_h4 xm12, in2q, %2, %3\nIF %1 > 3,  filter_h4 xm13, in3q, %2, %3\nIF %1 > 2,  vinsertf128 mz%5, mz%5, xmm12, 1\nIF %1 > 3,  vinsertf128 mw%5, mw%5, xmm13, 1\n%ifidn %2, U16\n            mova m15, [bias32]\n            paddd mx%5, m15\nIF %1 > 1,  paddd my%5, m15\nIF %1 > 2,  paddd mz%5, m15\nIF %1 > 3,  paddd mw%5, m15\n%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx%5, mx%5\nIF %1 > 1,  vcvtdq2ps my%5, my%5\nIF %1 > 2,  vcvtdq2ps mz%5, mz%5\nIF %1 > 3,  vcvtdq2ps mw%5, mw%5\n%endif\n%endmacro\n\n%macro filter_4x4_h 3 ; elems, type, sizeof_type\nop filter_4x4_h%1_%2\n%xdefine offset0q out0q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:19", "text": "IF %1 > 2,  vinsertf128 mz%5, mz%5, xmm12, 1\nIF %1 > 3,  vinsertf128 mw%5, mw%5, xmm13, 1\n%ifidn %2, U16\n            mova m15, [bias32]\n            paddd mx%5, m15\nIF %1 > 1,  paddd my%5, m15\nIF %1 > 2,  paddd mz%5, m15\nIF %1 > 3,  paddd mw%5, m15\n%endif\n%ifnidn %2, F32\n            vcvtdq2ps mx%5, mx%5\nIF %1 > 1,  vcvtdq2ps my%5, my%5\nIF %1 > 2,  vcvtdq2ps mz%5, mz%5\nIF %1 > 3,  vcvtdq2ps mw%5, mw%5\n%endif\n%endmacro\n\n%macro filter_4x4_h 3 ; elems, type, sizeof_type\nop filter_4x4_h%1_%2\n%xdefine offset0q out0q\n%xdefine offset1q out1q\n%xdefine offset2q out2q\n%xdefine offset3q out3q\n%xdefine weights  tmp0q\n%xdefine offsets  tmp2q\n%xdefine fltsize  tmp1q\n            ; reserve some registers for the inner loops\n            push bxq\n            push offset0q\n            push offset1q\n            push offset2q\n            push offset3q\n            get_block_size\n            shl bxq, block_shift ; x := bx * block_size\n            mov weights, [implq + SwsOpImpl.priv]        ; int16_t *weights\n            mov tmp1d,   [implq + SwsOpImpl.priv + 8]    ; size_t filter_size\n            mov offsets, [execq + SwsOpExec.in_offset_x] ; int32_t *offsets\n            lea offsets, [offsets + 4 * bxq] ; offsets += x * sizeof(int32_t)\n            imul bxq, fltsize\n            add weights, bxq ; weights += x * filter_size\n            shl fltsize, 2   ; fltsize *= 4 (number of pixels / iter)\n            filter_h8 %1, %2, %3, offsets\n            add weights, fltsize\n            filter_h8 %1, %2, %3, offsets + 32, 2\n            mova m10, [scale_inv]\n            mulps mx, m10\nIF %1 > 1,  mulps my, m10\nIF %1 > 2,  mulps mz, m10\nIF %1 > 3,  mulps mw, m10\n            mulps mx2, m10\nIF %1 > 1,  mulps my2, m10\nIF %1 > 2,  mulps mz2, m10\nIF %1 > 3,  mulps mw2, m10\n            pop offset3q\n            pop offset2q\n            pop offset1q\n            pop offset0q\n            pop bxq\n            CONTINUE\n%undef offset0q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:20", "text": "shl fltsize, 2   ; fltsize *= 4 (number of pixels / iter)\n            filter_h8 %1, %2, %3, offsets\n            add weights, fltsize\n            filter_h8 %1, %2, %3, offsets + 32, 2\n            mova m10, [scale_inv]\n            mulps mx, m10\nIF %1 > 1,  mulps my, m10\nIF %1 > 2,  mulps mz, m10\nIF %1 > 3,  mulps mw, m10\n            mulps mx2, m10\nIF %1 > 1,  mulps my2, m10\nIF %1 > 2,  mulps mz2, m10\nIF %1 > 3,  mulps mw2, m10\n            pop offset3q\n            pop offset2q\n            pop offset1q\n            pop offset0q\n            pop bxq\n            CONTINUE\n%undef offset0q\n%undef offset1q\n%undef offset2q\n%undef offset3q\n%undef weights\n%undef offsets\n%undef fltsize\n%endmacro\n\n%macro generic_filter_fns 3 ; type, sizeof_type, sizeof_weight\n        filter_v 1, %1, %2, v\n        filter_v 2, %1, %2, v\n        filter_v 3, %1, %2, v\n        filter_v 4, %1, %2, v\n\n        filter_v 1, %1, %2, fma_v\n        filter_v 2, %1, %2, fma_v\n        filter_v 3, %1, %2, fma_v\n        filter_v 4, %1, %2, fma_v\n\n        filter_h 1, %1, %2, %3\n        filter_h 2, %1, %2, %3\n        filter_h 3, %1, %2, %3\n        filter_h 4, %1, %2, %3\n\n        filter_4x4_h 1, %1, %2\n        filter_4x4_h 2, %1, %2\n        filter_4x4_h 3, %1, %2\n        filter_4x4_h 4, %1, %2\n%endmacro\n\n%macro filter_fns 0\n    generic_filter_fns U8,  1, 2\n    generic_filter_fns U16, 2, 2\n    generic_filter_fns F32, 4, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:21", "text": "filter_h 2, %1, %2, %3\n        filter_h 3, %1, %2, %3\n        filter_h 4, %1, %2, %3\n\n        filter_4x4_h 1, %1, %2\n        filter_4x4_h 2, %1, %2\n        filter_4x4_h 3, %1, %2\n        filter_4x4_h 4, %1, %2\n%endmacro\n\n%macro filter_fns 0\n    generic_filter_fns U8,  1, 2\n    generic_filter_fns U16, 2, 2\n    generic_filter_fns F32, 4, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns\nfilter_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "af2674645fca2c72af33d5aa60ff6a7a074a2b44", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/af2674645fca2c72af33d5aa60ff6a7a074a2b44/libswscale/x86/ops_float.asm", "line_start": 801, "line_end": 826}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n.skip%2:\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\n        dither_row %1, 0, tmp1q, mx, mx2\n        dither_row %1, 1, tmp1q, my, my2\n        dither_row %1, 2, tmp1q, mz, mz2\n        dither_row %1, 3, tmp1q, mw, mw2\n        CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        decl_common_patterns dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n;---------------------------------------------------------\n; Linear transformations\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "526195e0a3933ee01c2e0a3ee44452302e21031d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/526195e0a3933ee01c2e0a3ee44452302e21031d/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "dither 6\n        dither 7\n        dither 8\n%endmacro\n\n;---------------------------------------------------------\n; Linear transformations\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %2 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "526195e0a3933ee01c2e0a3ee44452302e21031d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/526195e0a3933ee01c2e0a3ee44452302e21031d/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "dither 6\n        dither 7\n        dither 8\n%endmacro\n\n;---------------------------------------------------------\n; Linear transformations\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "2ef01689c47264f5d42a1530e5039dc6cc695648", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2ef01689c47264f5d42a1530e5039dc6cc695648/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "%else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "2ef01689c47264f5d42a1530e5039dc6cc695648", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2ef01689c47264f5d42a1530e5039dc6cc695648/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:16", "text": "vcvtdq2ps mx, mx\nIF %1 > 1,  vcvtdq2ps my, my\nIF %1 > 2,  vcvtdq2ps mz, mz\nIF %1 > 3,  vcvtdq2ps mw, mw\n            vcvtdq2ps mx2, mx2\nIF %1 > 1,  vcvtdq2ps my2, my2\nIF %1 > 2,  vcvtdq2ps mz2, mz2\nIF %1 > 3,  vcvtdq2ps mw2, mw2\n%endif\n            mova m12, [scale_inv]\n            LOAD_CONT tmp0q\n            mulps mx, m12\nIF %1 > 1,  mulps my, m12\nIF %1 > 2,  mulps mz, m12\nIF %1 > 3,  mulps mw, m12\n            mulps mx2, m12\nIF %1 > 1,  mulps my2, m12\nIF %1 > 2,  mulps mz2, m12\nIF %1 > 3,  mulps mw2, m12\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro generic_filter_fns 3 ; type, sizeof_type, sizeof_weight\n        filter_v 1, %1, %2, v\n        filter_v 2, %1, %2, v\n        filter_v 3, %1, %2, v\n        filter_v 4, %1, %2, v\n\n        filter_v 1, %1, %2, fma_v\n        filter_v 2, %1, %2, fma_v\n        filter_v 3, %1, %2, fma_v\n        filter_v 4, %1, %2, fma_v\n\n        filter_h 1, %1, %2, %3\n        filter_h 2, %1, %2, %3\n        filter_h 3, %1, %2, %3\n        filter_h 4, %1, %2, %3\n%endmacro\n\n%macro filter_fns 0\n    generic_filter_fns U8,  1, 2\n    generic_filter_fns U16, 2, 2\n    generic_filter_fns F32, 4, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns\nfilter_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "4bf51d661531384946cacaa4cc80e0c688f9fe32", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4bf51d661531384946cacaa4cc80e0c688f9fe32/libswscale/x86/ops_float.asm", "line_start": 601, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:17", "text": "%macro filter_fns 0\n    generic_filter_fns U8,  1, 2\n    generic_filter_fns U16, 2, 2\n    generic_filter_fns F32, 4, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns\nfilter_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "4bf51d661531384946cacaa4cc80e0c688f9fe32", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/4bf51d661531384946cacaa4cc80e0c688f9fe32/libswscale/x86/ops_float.asm", "line_start": 641, "line_end": 657}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"ops_common.asm\"\n\nSECTION .text\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to32f 0\nop convert_U8_F32\n        LOAD_CONT tmp0q\nIF X,   vpsrldq xmx2, xmx, 8\nIF Y,   vpsrldq xmy2, xmy, 8\nIF Z,   vpsrldq xmz2, xmz, 8\nIF W,   vpsrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\nIF X,   vcvtdq2ps mx, mx\nIF Y,   vcvtdq2ps my, my\nIF Z,   vcvtdq2ps mz, mz\nIF W,   vcvtdq2ps mw, mw\nIF X,   vcvtdq2ps mx2, mx2\nIF Y,   vcvtdq2ps my2, my2\nIF Z,   vcvtdq2ps mz2, mz2\nIF W,   vcvtdq2ps mw2, mw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32f 0\nop convert_U16_F32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:2", "text": "IF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\nIF X,   vcvtdq2ps mx, mx\nIF Y,   vcvtdq2ps my, my\nIF Z,   vcvtdq2ps mz, mz\nIF W,   vcvtdq2ps mw, mw\nIF X,   vcvtdq2ps mx2, mx2\nIF Y,   vcvtdq2ps my2, my2\nIF Z,   vcvtdq2ps mz2, mz2\nIF W,   vcvtdq2ps mw2, mw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32f 0\nop convert_U16_F32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\nIF X,   vcvtdq2ps mx, mx\nIF Y,   vcvtdq2ps my, my\nIF Z,   vcvtdq2ps mz, mz\nIF W,   vcvtdq2ps mw, mw\nIF X,   vcvtdq2ps mx2, mx2\nIF Y,   vcvtdq2ps my2, my2\nIF Z,   vcvtdq2ps mz2, mz2\nIF W,   vcvtdq2ps mw2, mw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32fto8 0\nop convert_F32_U8\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:3", "text": "op convert_F32_U8\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32fto16 0\nop convert_F32_U16\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Arithmetic operations\n\n%macro min_max 0\nop min\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:4", "text": "IF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Arithmetic operations\n\n%macro min_max 0\nop min\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   minps mx, mx, m8\nIF Y,   minps my, my, m9\nIF Z,   minps mz, mz, m10\nIF W,   minps mw, mw, m11\nIF X,   minps mx2, m8\nIF Y,   minps my2, m9\nIF Z,   minps mz2, m10\nIF W,   minps mw2, m11\n        CONTINUE tmp0q\n\nop max\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   maxps mx, m8\nIF Y,   maxps my, m9\nIF Z,   maxps mz, m10\nIF W,   maxps mw, m11\nIF X,   maxps mx2, m8\nIF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Z,   maxps mz, m10\nIF W,   maxps mw, m11\nIF X,   maxps mx2, m8\nIF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Dithering\n\n%macro dither0 0\nop dither0\n        ; constant offset for all channels\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8\nIF X,   addps mx2, m8\nIF Y,   addps my2, m8\nIF Z,   addps mz2, m8\nIF W,   addps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_row 5 ; size_log2, comp_idx, matrix, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n        ; test is tmp0w < 0\n        test tmp0w, tmp0w\n        js .skip%2\n%if %1 == 1\n        vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "CONTINUE tmp0q\n%endmacro\n\n%macro dither_row 5 ; size_log2, comp_idx, matrix, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n        ; test is tmp0w < 0\n        test tmp0w, tmp0w\n        js .skip%2\n%if %1 == 1\n        vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n.skip%2:\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\n        dither_row %1, 0, tmp1q, mx, mx2\n        dither_row %1, 1, tmp1q, my, my2\n        dither_row %1, 2, tmp1q, mz, mz2\n        dither_row %1, 3, tmp1q, mw, mw2\n        CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        decl_common_patterns dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "add tmp1q, tmp0q\n    %endif\n        dither_row %1, 0, tmp1q, mx, mx2\n        dither_row %1, 1, tmp1q, my, my2\n        dither_row %1, 2, tmp1q, mz, mz2\n        dither_row %1, 3, tmp1q, mw, mw2\n        CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        decl_common_patterns dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n;---------------------------------------------------------\n; Linear transformations\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\n;---------------------------------------------------------\n; Filtering / scaling\n\n%macro floadU8 2 ; dst, src\n        pmovzxbd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\n;---------------------------------------------------------\n; Filtering / scaling\n\n%macro floadU8 2 ; dst, src\n        pmovzxbd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadU16 2 ; dst, src\n        pmovzxwd  %1, %2\n        vcvtdq2ps %1, %1\n%endmacro\n\n%macro floadF32 2 ; dst, src\n        movu %1, %2\n%endmacro\n\n%macro fmaccum 4 ; variant, dst, srcA, srcB\n%ifidn %1, none\n        mulps %2, %3, %4\n%elifidn %1, fma_v\n        fmaddps %2, %3, %4, %2\n%else\n        mulps %3, %4\n        addps %2, %3\n%endif\n%endmacro\n\n%macro filter_v_iter 4 ; elems, type, sizeof_type, variant\n            vbroadcastss m12, [weights]\n            fload%2 m8,  [in0q]\nIF %1 > 1,  fload%2 m9,  [in1q]\nIF %1 > 2,  fload%2 m10, [in2q]\nIF %1 > 3,  fload%2 m11, [in3q]\n            fmaccum %4, mx, m8,  m12\nIF %1 > 1,  fmaccum %4, my, m9,  m12\nIF %1 > 2,  fmaccum %4, mz, m10, m12\nIF %1 > 3,  fmaccum %4, mw, m11, m12\n            fload%2 m8,  [in0q + (mmsize >> 2) * %3]\nIF %1 > 1,  fload%2 m9,  [in1q + (mmsize >> 2) * %3]\nIF %1 > 2,  fload%2 m10, [in2q + (mmsize >> 2) * %3]\nIF %1 > 3,  fload%2 m11, [in3q + (mmsize >> 2) * %3]\n            fmaccum %4, mx2, m8,  m12\nIF %1 > 1,  fmaccum %4, my2, m9,  m12\nIF %1 > 2,  fmaccum %4, mz2, m10, m12\nIF %1 > 3,  fmaccum %4, mw2, m11, m12\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:11", "text": "%macro filter_v_iter 4 ; elems, type, sizeof_type, variant\n            vbroadcastss m12, [weights]\n            fload%2 m8,  [in0q]\nIF %1 > 1,  fload%2 m9,  [in1q]\nIF %1 > 2,  fload%2 m10, [in2q]\nIF %1 > 3,  fload%2 m11, [in3q]\n            fmaccum %4, mx, m8,  m12\nIF %1 > 1,  fmaccum %4, my, m9,  m12\nIF %1 > 2,  fmaccum %4, mz, m10, m12\nIF %1 > 3,  fmaccum %4, mw, m11, m12\n            fload%2 m8,  [in0q + (mmsize >> 2) * %3]\nIF %1 > 1,  fload%2 m9,  [in1q + (mmsize >> 2) * %3]\nIF %1 > 2,  fload%2 m10, [in2q + (mmsize >> 2) * %3]\nIF %1 > 3,  fload%2 m11, [in3q + (mmsize >> 2) * %3]\n            fmaccum %4, mx2, m8,  m12\nIF %1 > 1,  fmaccum %4, my2, m9,  m12\nIF %1 > 2,  fmaccum %4, mz2, m10, m12\nIF %1 > 3,  fmaccum %4, mw2, m11, m12\n%endmacro\n\n%macro filter_v 4 ; elems, type, sizeof_type, variant\nop filter_%4%1_%2\n%xdefine weights tmp0q\n%xdefine fltsize tmp1q\n            mov weights, [implq + SwsOpImpl.priv]     ; float *weights\n            mov fltsize, [implq + SwsOpImpl.priv + 8] ; size_t filter_size\n            ; weights += filter_size * y * sizeof(float)\n            mov tmp2q, fltsize\n            imul tmp2q, yq\n            lea weights, [weights + 4 * tmp2q]\n            filter_v_iter %1, %2, %3, none\n            dec fltsize\n            jz .done\n            push in0q\nIF %1 > 1,  push in1q\nIF %1 > 2,  push in2q\nIF %1 > 3,  push in3q\n.loop:\n            add in0q, [execq + SwsOpExec.in_stride0]\nIF %1 > 1,  add in1q, [execq + SwsOpExec.in_stride1]\nIF %1 > 2,  add in2q, [execq + SwsOpExec.in_stride2]\nIF %1 > 3,  add in3q, [execq + SwsOpExec.in_stride3]\n            add weights, 4\n            filter_v_iter %1, %2, %3, %4\n            dec fltsize\n            jnz .loop\nIF %1 > 3,  pop in3q\nIF %1 > 2,  pop in2q\nIF %1 > 1,  pop in1q\n            pop in0q\n.done:\n            LOAD_CONT tmp0q\nIF %1 > 3,  add in3q, (mmsize >> 1) * %3\nIF %1 > 2,  add in2q, (mmsize >> 1) * %3\nIF %1 > 1,  add in1q, (mmsize >> 1) * %3\n            add in0q, (mmsize >> 1) * %3\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:12", "text": "IF %1 > 2,  add in2q, [execq + SwsOpExec.in_stride2]\nIF %1 > 3,  add in3q, [execq + SwsOpExec.in_stride3]\n            add weights, 4\n            filter_v_iter %1, %2, %3, %4\n            dec fltsize\n            jnz .loop\nIF %1 > 3,  pop in3q\nIF %1 > 2,  pop in2q\nIF %1 > 1,  pop in1q\n            pop in0q\n.done:\n            LOAD_CONT tmp0q\nIF %1 > 3,  add in3q, (mmsize >> 1) * %3\nIF %1 > 2,  add in2q, (mmsize >> 1) * %3\nIF %1 > 1,  add in1q, (mmsize >> 1) * %3\n            add in0q, (mmsize >> 1) * %3\n            CONTINUE tmp0q\n%undef weights\n%undef fltsize\n%endmacro\n\n%macro generic_filter_fns 2 ; type, sizeof_type\n        filter_v 1, %1, %2, v\n        filter_v 2, %1, %2, v\n        filter_v 3, %1, %2, v\n        filter_v 4, %1, %2, v\n\n        filter_v 1, %1, %2, fma_v\n        filter_v 2, %1, %2, fma_v\n        filter_v 3, %1, %2, fma_v\n        filter_v 4, %1, %2, fma_v\n%endmacro\n\n%macro filter_fns 0\n    generic_filter_fns U8,  1\n    generic_filter_fns U16, 2\n    generic_filter_fns F32, 4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns\nfilter_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "568cdca9cc5854f365596474fdd6a75cf51b2471", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/568cdca9cc5854f365596474fdd6a75cf51b2471/libswscale/x86/ops_float.asm", "line_start": 441, "line_end": 489}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "baac4a1174d2f735d9bcaf8359ab71aa6c516f9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/baac4a1174d2f735d9bcaf8359ab71aa6c516f9c/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "baac4a1174d2f735d9bcaf8359ab71aa6c516f9c", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/baac4a1174d2f735d9bcaf8359ab71aa6c516f9c/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 381}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:3", "text": "op convert_F32_U8\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32fto16 0\nop convert_F32_U16\n        LOAD_CONT tmp0q\nIF X,   cvttps2dq mx, mx\nIF Y,   cvttps2dq my, my\nIF Z,   cvttps2dq mz, mz\nIF W,   cvttps2dq mw, mw\nIF X,   cvttps2dq mx2, mx2\nIF Y,   cvttps2dq my2, my2\nIF Z,   cvttps2dq mz2, mz2\nIF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro min_max 0\nop min\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   minps mx, mx, m8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:4", "text": "IF W,   cvttps2dq mw2, mw2\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro min_max 0\nop min\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   minps mx, mx, m8\nIF Y,   minps my, my, m9\nIF Z,   minps mz, mz, m10\nIF W,   minps mw, mw, m11\nIF X,   minps mx2, m8\nIF Y,   minps my2, m9\nIF Z,   minps mz2, m10\nIF W,   minps mw2, m11\n        CONTINUE tmp0q\n\nop max\nIF X,   vbroadcastss m8,  [implq + SwsOpImpl.priv + 0]\nIF Y,   vbroadcastss m9,  [implq + SwsOpImpl.priv + 4]\nIF Z,   vbroadcastss m10, [implq + SwsOpImpl.priv + 8]\nIF W,   vbroadcastss m11, [implq + SwsOpImpl.priv + 12]\n        LOAD_CONT tmp0q\nIF X,   maxps mx, m8\nIF Y,   maxps my, m9\nIF Z,   maxps mz, m10\nIF W,   maxps mw, m11\nIF X,   maxps mx2, m8\nIF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither0 0\nop dither0\n        ; constant offset for all channels\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8\nIF X,   addps mx2, m8\nIF Y,   addps my2, m8\nIF Z,   addps mz2, m8\nIF W,   addps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_row 5 ; size_log2, comp_idx, matrix, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n        ; test is tmp0w < 0\n        test tmp0w, tmp0w\n        js .skip%2\n%if %1 == 1\n        vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n.skip%2:\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "test tmp0w, tmp0w\n        js .skip%2\n%if %1 == 1\n        vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n.skip%2:\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\n        dither_row %1, 0, tmp1q, mx, mx2\n        dither_row %1, 1, tmp1q, my, my2\n        dither_row %1, 2, tmp1q, mz, mz2\n        dither_row %1, 3, tmp1q, mw, mw2\n        CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        decl_common_patterns dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        decl_common_patterns dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 372}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "ce096aa4ee9197701502d0c32e3c7f56c44d863e", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ce096aa4ee9197701502d0c32e3c7f56c44d863e/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 372}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither0 0\nop dither0\n        ; constant offset for all channels\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8\nIF X,   addps mx2, m8\nIF Y,   addps my2, m8\nIF Z,   addps mz2, m8\nIF W,   addps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_row 5 ; size_log2, comp_idx, matrix, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n%if %1 == 1\n        vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "48ab318f5c9c932ef6274fe038dea3494d4f2cb0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48ab318f5c9c932ef6274fe038dea3494d4f2cb0/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "vbroadcastsd m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%elif %1 == 2\n        VBROADCASTI128 m8, [%3 + tmp0q]\n        addps %4, m8\n        addps %5, m8\n%else\n        addps %4, [%3 + tmp0q]\n        addps %5, [%3 + tmp0q + mmsize * ((4 << %1) > mmsize)]\n%endif\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\n        dither_row %1, 0, tmp1q, mx, mx2\n        dither_row %1, 1, tmp1q, my, my2\n        dither_row %1, 2, tmp1q, mz, mz2\n        dither_row %1, 3, tmp1q, mw, mw2\n        CONTINUE\n%endmacro\n\n%macro dither_fns 0\n        dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "48ab318f5c9c932ef6274fe038dea3494d4f2cb0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48ab318f5c9c932ef6274fe038dea3494d4f2cb0/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "48ab318f5c9c932ef6274fe038dea3494d4f2cb0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48ab318f5c9c932ef6274fe038dea3494d4f2cb0/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "%elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "48ab318f5c9c932ef6274fe038dea3494d4f2cb0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48ab318f5c9c932ef6274fe038dea3494d4f2cb0/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndecl_common_patterns dither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "48ab318f5c9c932ef6274fe038dea3494d4f2cb0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48ab318f5c9c932ef6274fe038dea3494d4f2cb0/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 368}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro load_dither_row 5 ; size_log2, comp_idx, addr, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n%if %1 == 1\n        vbroadcastsd   %4, [%3 + tmp0q]\n%elif %1 == 2\n        VBROADCASTI128 %4, [%3 + tmp0q]\n%else\n        mova %4, [%3 + tmp0q]\n    %if (4 << %1) > mmsize\n        mova %5, [%3 + tmp0q + mmsize]\n    %endif\n%endif\n%endmacro\n\n%macro dither0 0\nop dither0\n        ; constant offset for all channels\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8\nIF X,   addps mx2, m8\nIF Y,   addps my2, m8\nIF Z,   addps mz2, m8\nIF W,   addps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        %define DX  m8\n        %define DY  m9\n        %define DZ  m10\n        %define DW  m11\n    %if (4 << %1) > mmsize\n        %define DX2 m12\n        %define DY2 m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "IF X,   addps mx, m8\nIF Y,   addps my, m8\nIF Z,   addps mz, m8\nIF W,   addps mw, m8\nIF X,   addps mx2, m8\nIF Y,   addps my2, m8\nIF Z,   addps mz2, m8\nIF W,   addps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        %define DX  m8\n        %define DY  m9\n        %define DZ  m10\n        %define DW  m11\n    %if (4 << %1) > mmsize\n        %define DX2 m12\n        %define DY2 m13\n        %define DZ2 m14\n        %define DW2 m15\n    %else\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n    %endif\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset. note that for 2x2, we would only need to look at the\n        ; sign of `y`, but this special case is ignored for simplicity reasons\n        ; (and because the current upstream format code never generates matrices\n        ; that small)\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\nIF X,   load_dither_row %1, 0, tmp1q, DX, DX2\nIF Y,   load_dither_row %1, 1, tmp1q, DY, DY2\nIF Z,   load_dither_row %1, 2, tmp1q, DZ, DZ2\nIF W,   load_dither_row %1, 3, tmp1q, DW, DW2\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\nIF X,   load_dither_row %1, 0, tmp1q, DX, DX2\nIF Y,   load_dither_row %1, 1, tmp1q, DY, DY2\nIF Z,   load_dither_row %1, 2, tmp1q, DZ, DZ2\nIF W,   load_dither_row %1, 3, tmp1q, DW, DW2\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_fns 0\n        dither0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndecl_common_patterns dither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/1ec8e6e3ce55e0ca29e4e40428ed214777cfc0e6/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 390}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro load_dither_row 5 ; size_log2, comp_idx, addr, out, out2\n        mov tmp0w, [implq + SwsOpImpl.priv + (4 + %2) * 2] ; priv.u16[4 + i]\n%if %1 == 1\n        vbroadcastsd   %4, [%3 + tmp0q]\n%elif %1 == 2\n        VBROADCASTI128 %4, [%3 + tmp0q]\n%else\n        mova %4, [%3 + tmp0q]\n    %if (4 << %1) > mmsize\n        mova %5, [%3 + tmp0q + mmsize]\n    %endif\n%endif\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        %define DX  m8\n        %define DY  m9\n        %define DZ  m10\n        %define DW  m11\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n%if %1 == 0\n        ; constant offset for all channels\n        vbroadcastss DX, [implq + SwsOpImpl.priv]\n        %define DY DX\n        %define DZ DX\n        %define DW DX\n%else\n        ; load all four channels with custom offset\n        ;\n        ; note that for 2x2, we would only need to look at the sign of `y`, but\n        ; this special case is ignored for simplicity reasons (and because\n        ; the current upstream format code never generates matrices that small)\n    %if (4 << %1) > mmsize\n        %define DX2 m12\n        %define DY2 m13", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "%define DW  m11\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n%if %1 == 0\n        ; constant offset for all channels\n        vbroadcastss DX, [implq + SwsOpImpl.priv]\n        %define DY DX\n        %define DZ DX\n        %define DW DX\n%else\n        ; load all four channels with custom offset\n        ;\n        ; note that for 2x2, we would only need to look at the sign of `y`, but\n        ; this special case is ignored for simplicity reasons (and because\n        ; the current upstream format code never generates matrices that small)\n    %if (4 << %1) > mmsize\n        %define DX2 m12\n        %define DY2 m13\n        %define DZ2 m14\n        %define DW2 m15\n    %endif\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n        ; add y offset\n        mov tmp0d, yd\n        and tmp0d, (1 << %1) - 1\n        shl tmp0d, %1 + 2 ; * sizeof(float)\n        add tmp1q, tmp0q\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\nIF X,   load_dither_row %1, 0, tmp1q, DX, DX2\nIF Y,   load_dither_row %1, 1, tmp1q, DY, DY2\nIF Z,   load_dither_row %1, 2, tmp1q, DZ, DZ2\nIF W,   load_dither_row %1, 3, tmp1q, DW, DW2\n%endif\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_fns 0\n        dither 0\n        dither 1\n        dither 2\n        dither 3\n        dither 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "IF W,   load_dither_row %1, 3, tmp1q, DW, DW2\n%endif\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_fns 0\n        dither 0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndecl_common_patterns dither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "3f7e3cedb58cb963a5cb90e81b7654d993b842cf", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/3f7e3cedb58cb963a5cb90e81b7654d993b842cf/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 383}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro load_dither_row 5 ; size_log2, y, addr, out, out2\n        lea tmp0q, %2\n        and tmp0q, (1 << %1) - 1\n        shl tmp0q, %1+2\n%if %1 == 1\n        vbroadcastsd   %4, [%3 + tmp0q]\n%elif %1 == 2\n        VBROADCASTI128 %4, [%3 + tmp0q]\n%else\n        mova %4, [%3 + tmp0q]\n    %if (4 << %1) > mmsize\n        mova %5, [%3 + tmp0q + mmsize]\n    %endif\n%endif\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        %define DX  m8\n        %define DY  m9\n        %define DZ  m10\n        %define DW  m11\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n%if %1 == 0\n        ; constant offset for all channels\n        vbroadcastss DX, [implq + SwsOpImpl.priv]\n        %define DY DX\n        %define DZ DX\n        %define DW DX\n%else\n        ; load all four channels with custom offset\n        ;\n        ; note that for 2x2, we would only need to look at the sign of `y`, but\n        ; this special case is ignored for simplicity reasons (and because\n        ; the current upstream format code never generates matrices that small)\n    %if (4 << %1) > mmsize", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "b1c96b99faa145495415272875943f4e1047e4aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1c96b99faa145495415272875943f4e1047e4aa/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "%define DY  m9\n        %define DZ  m10\n        %define DW  m11\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n%if %1 == 0\n        ; constant offset for all channels\n        vbroadcastss DX, [implq + SwsOpImpl.priv]\n        %define DY DX\n        %define DZ DX\n        %define DW DX\n%else\n        ; load all four channels with custom offset\n        ;\n        ; note that for 2x2, we would only need to look at the sign of `y`, but\n        ; this special case is ignored for simplicity reasons (and because\n        ; the current upstream format code never generates matrices that small)\n    %if (4 << %1) > mmsize\n        %define DX2 m12\n        %define DY2 m13\n        %define DZ2 m14\n        %define DW2 m15\n    %endif\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\nIF X,   load_dither_row %1, [yd + 0], tmp1q, DX, DX2\nIF Y,   load_dither_row %1, [yd + 3], tmp1q, DY, DY2\nIF Z,   load_dither_row %1, [yd + 2], tmp1q, DZ, DZ2\nIF W,   load_dither_row %1, [yd + 5], tmp1q, DW, DW2\n%endif\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_fns 0\n        dither 0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "b1c96b99faa145495415272875943f4e1047e4aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1c96b99faa145495415272875943f4e1047e4aa/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "IF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_fns 0\n        dither 0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "b1c96b99faa145495415272875943f4e1047e4aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1c96b99faa145495415272875943f4e1047e4aa/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "b1c96b99faa145495415272875943f4e1047e4aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1c96b99faa145495415272875943f4e1047e4aa/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndecl_common_patterns dither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "b1c96b99faa145495415272875943f4e1047e4aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1c96b99faa145495415272875943f4e1047e4aa/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndecl_common_patterns dither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "b1c96b99faa145495415272875943f4e1047e4aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/b1c96b99faa145495415272875943f4e1047e4aa/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:5", "text": "IF Y,   maxps my2, m9\nIF Z,   maxps mz2, m10\nIF W,   maxps mw2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro scale 0\nop scale\n        vbroadcastss m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   mulps mx, m8\nIF Y,   mulps my, m8\nIF Z,   mulps mz, m8\nIF W,   mulps mw, m8\nIF X,   mulps mx2, m8\nIF Y,   mulps my2, m8\nIF Z,   mulps mz2, m8\nIF W,   mulps mw2, m8\n        CONTINUE tmp0q\n%endmacro\n\n%macro load_dither_row 5 ; size_log2, y, addr, out, out2\n        lea tmp0q, %2\n        and tmp0q, (1 << %1) - 1\n        shl tmp0q, %1+2\n%if %1 == 2\n        VBROADCASTI128 %4, [%3 + tmp0q]\n%else\n        mova %4, [%3 + tmp0q]\n    %if (4 << %1) > mmsize\n        mova %5, [%3 + tmp0q + mmsize]\n    %endif\n%endif\n%endmacro\n\n%macro dither 1 ; size_log2\nop dither%1\n        %define DX  m8\n        %define DY  m9\n        %define DZ  m10\n        %define DW  m11\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n%if %1 == 0\n        ; constant offset for all channels\n        vbroadcastss DX, [implq + SwsOpImpl.priv]\n        %define DY DX\n        %define DZ DX\n        %define DW DX\n%elif %1 == 1\n        ; 2x2 matrix, only sign of y matters\n        mov tmp0d, yd\n        and tmp0d, 1\n        shl tmp0d, 3\n    %if X || Z\n        ; dither matrix is stored directly in the private data\n        vbroadcastsd DX, [implq + SwsOpImpl.priv + tmp0q]\n    %endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_float.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:6", "text": "%define DW  m11\n        %define DX2 DX\n        %define DY2 DY\n        %define DZ2 DZ\n        %define DW2 DW\n%if %1 == 0\n        ; constant offset for all channels\n        vbroadcastss DX, [implq + SwsOpImpl.priv]\n        %define DY DX\n        %define DZ DX\n        %define DW DX\n%elif %1 == 1\n        ; 2x2 matrix, only sign of y matters\n        mov tmp0d, yd\n        and tmp0d, 1\n        shl tmp0d, 3\n    %if X || Z\n        ; dither matrix is stored directly in the private data\n        vbroadcastsd DX, [implq + SwsOpImpl.priv + tmp0q]\n    %endif\n    %if Y || W\n        xor tmp0d, 8\n        vbroadcastsd DY, [implq + SwsOpImpl.priv + tmp0q]\n    %endif\n        %define DZ DX\n        %define DW DY\n%else\n        ; matrix is at least 4x4, load all four channels with custom offset\n    %if (4 << %1) > mmsize\n        %define DX2 m12\n        %define DY2 m13\n        %define DZ2 m14\n        %define DW2 m15\n    %endif\n        ; dither matrix is stored indirectly at the private data address\n        mov tmp1q, [implq + SwsOpImpl.priv]\n    %if (4 << %1) > 2 * mmsize\n        ; need to add in x offset\n        mov tmp0d, bxd\n        shl tmp0d, 6 ; sizeof(float[16])\n        and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\nIF X,   load_dither_row %1, [yd + 0], tmp1q, DX, DX2\nIF Y,   load_dither_row %1, [yd + 3], tmp1q, DY, DY2\nIF Z,   load_dither_row %1, [yd + 2], tmp1q, DZ, DZ2\nIF W,   load_dither_row %1, [yd + 5], tmp1q, DW, DW2\n%endif\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_float.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:7", "text": "and tmp0d, (4 << %1) - 1\n        add tmp1q, tmp0q\n    %endif\nIF X,   load_dither_row %1, [yd + 0], tmp1q, DX, DX2\nIF Y,   load_dither_row %1, [yd + 3], tmp1q, DY, DY2\nIF Z,   load_dither_row %1, [yd + 2], tmp1q, DZ, DZ2\nIF W,   load_dither_row %1, [yd + 5], tmp1q, DW, DW2\n%endif\n        LOAD_CONT tmp0q\nIF X,   addps mx, DX\nIF Y,   addps my, DY\nIF Z,   addps mz, DZ\nIF W,   addps mw, DW\nIF X,   addps mx2, DX2\nIF Y,   addps my2, DY2\nIF Z,   addps mz2, DZ2\nIF W,   addps mw2, DW2\n        CONTINUE tmp0q\n%endmacro\n\n%macro dither_fns 0\n        dither 0\n        dither 1\n        dither 2\n        dither 3\n        dither 4\n        dither 5\n        dither 6\n        dither 7\n        dither 8\n%endmacro\n\n%xdefine MASK(I, J)  (1 << (5 * (I) + (J)))\n%xdefine MASK_OFF(I) MASK(I, 4)\n%xdefine MASK_ROW(I) (0x1F << (5 * (I)))\n%xdefine MASK_COL(J) (0x8421 << J)\n%xdefine MASK_ALL    (1 << 20) - 1\n%xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)\n%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)\n%xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)\n%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_float.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:8", "text": "%xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)\n%xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\\\n                     MASK(1, 0) | MASK(1, 1) | MASK(1, 2) |\\\n                     MASK(2, 0) | MASK(2, 1) | MASK(2, 2)\n%xdefine MASK_DIAG4  MASK_DIAG3 | MASK(3, 3)\n%xdefine MASK_OFF4   MASK_OFF3 | MASK_OFF(3)\n%xdefine MASK_MAT4   MASK_ALL & ~MASK_OFF4\n\n%macro linear_row 7 ; res, x, y, z, w, row, mask\n%define COL(J) ((%7) & MASK(%6, J)) ; true if mask contains component J\n%define NOP(J) (J == %6 && !COL(J)) ; true if J is untouched input component\n\n    ; load weights\n    IF COL(0),  vbroadcastss m12,  [tmp0q + %6 * 20 + 0]\n    IF COL(1),  vbroadcastss m13,  [tmp0q + %6 * 20 + 4]\n    IF COL(2),  vbroadcastss m14,  [tmp0q + %6 * 20 + 8]\n    IF COL(3),  vbroadcastss m15,  [tmp0q + %6 * 20 + 12]\n\n    ; initialize result vector as appropriate\n    %if COL(4) ; offset\n        vbroadcastss %1, [tmp0q + %6 * 20 + 16]\n    %elif NOP(0)\n        ; directly reuse first component vector if possible\n        mova %1, %2\n    %else\n        xorps %1, %1\n    %endif\n\n    IF COL(0),  mulps m12, %2\n    IF COL(1),  mulps m13, %3\n    IF COL(2),  mulps m14, %4\n    IF COL(3),  mulps m15, %5\n    IF COL(0),  addps %1, m12\n    IF NOP(0) && COL(4), addps %1, %3 ; first vector was not reused\n    IF COL(1),  addps %1, m13\n    IF NOP(1),  addps %1, %3\n    IF COL(2),  addps %1, m14\n    IF NOP(2),  addps %1, %4\n    IF COL(3),  addps %1, m15\n    IF NOP(3),  addps %1, %5\n%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_float.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:9", "text": "%endmacro\n\n%macro linear_inner 5 ; x, y, z, w, mask\n    %define ROW(I) ((%5) & MASK_ROW(I))\n    IF1 ROW(0), linear_row m8,  %1, %2, %3, %4, 0, %5\n    IF1 ROW(1), linear_row m9,  %1, %2, %3, %4, 1, %5\n    IF1 ROW(2), linear_row m10, %1, %2, %3, %4, 2, %5\n    IF1 ROW(3), linear_row m11, %1, %2, %3, %4, 3, %5\n    IF ROW(0),  mova %1, m8\n    IF ROW(1),  mova %2, m9\n    IF ROW(2),  mova %3, m10\n    IF ROW(3),  mova %4, m11\n%endmacro\n\n%macro linear_mask 2 ; name, mask\nop %1\n        mov tmp0q, [implq + SwsOpImpl.priv] ; address of matrix\n        linear_inner mx,  my,  mz,  mw,  %2\n        linear_inner mx2, my2, mz2, mw2, %2\n        CONTINUE\n%endmacro\n\n; specialized functions for very simple cases\n%macro linear_dot3 0\nop dot3\n        mov tmp0q, [implq + SwsOpImpl.priv]\n        vbroadcastss m12,  [tmp0q + 0]\n        vbroadcastss m13,  [tmp0q + 4]\n        vbroadcastss m14,  [tmp0q + 8]\n        LOAD_CONT tmp0q\n        mulps mx, m12\n        mulps m8, my, m13\n        mulps m9, mz, m14\n        addps mx, m8\n        addps mx, m9\n        mulps mx2, m12\n        mulps m10, my2, m13\n        mulps m11, mz2, m14\n        addps mx2, m10\n        addps mx2, m11\n        CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_float.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_float.asm:10", "text": "CONTINUE tmp0q\n%endmacro\n\n%macro linear_fns 0\n        linear_dot3\n        linear_mask luma,       MASK_LUMA\n        linear_mask alpha,      MASK_ALPHA\n        linear_mask lumalpha,   MASK_LUMA | MASK_ALPHA\n        linear_mask row0,       MASK_ROW(0)\n        linear_mask row0a,      MASK_ROW(0) | MASK_ALPHA\n        linear_mask diag3,      MASK_DIAG3\n        linear_mask diag4,      MASK_DIAG4\n        linear_mask diagoff3,   MASK_DIAG3 | MASK_OFF3\n        linear_mask matrix3,    MASK_MAT3\n        linear_mask affine3,    MASK_MAT3 | MASK_OFF3\n        linear_mask affine3a,   MASK_MAT3 | MASK_OFF3 | MASK_ALPHA\n        linear_mask matrix4,    MASK_MAT4\n        linear_mask affine4,    MASK_MAT4 | MASK_OFF4\n%endmacro\n\nINIT_YMM avx2\ndecl_common_patterns conv8to32f\ndecl_common_patterns conv16to32f\ndecl_common_patterns conv32fto8\ndecl_common_patterns conv32fto16\ndecl_common_patterns min_max\ndecl_common_patterns scale\ndecl_common_patterns dither_fns\nlinear_fns", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_float.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_float.asm", "line_start": 361, "line_end": 389}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"ops_common.asm\"\n\nSECTION_RODATA\n\nalign 16\nexpand16_shuf:  db   0,  0,  2,  2,  4,  4,  6,  6,  8,  8, 10, 10, 12, 12, 14, 14\nexpand32_shuf:  db   0,  0,  0,  0,  4,  4,  4,  4,  8,  8,  8,  8, 12, 12, 12, 12\n\nread8_unpack2:  db   0,  2,  4,  6,  8, 10, 12, 14,  1,  3,  5,  7,  9, 11, 13, 15\nread8_unpack3:  db   0,  3,  6,  9,  1,  4,  7, 10,  2,  5,  8, 11, -1, -1, -1, -1\nread8_unpack4:  db   0,  4,  8, 12,  1,  5,  9, 13,  2,  6, 10, 14,  3,  7, 11, 15\nread16_unpack2: db   0,  1,  4,  5,  8,  9, 12, 13,  2,  3,  6,  7, 10, 11, 14, 15\nread16_unpack3: db   0,  1,  6,  7,  2,  3,  8,  9,  4,  5, 10, 11, -1, -1, -1, -1\nread16_unpack4: db   0,  1,  8,  9,  2,  3, 10, 11,  4,  5, 12, 13,  6,  7, 14, 15\nwrite8_pack2:   db   0,  8,  1,  9,  2, 10,  3, 11,  4, 12,  5, 13,  6, 14,  7, 15\nwrite8_pack3:   db   0,  4,  8,  1,  5,  9,  2,  6, 10,  3,  7, 11, -1, -1, -1, -1\nwrite16_pack3:  db   0,  1,  4,  5,  8,  9,  2,  3,  6,  7, 10, 11, -1, -1, -1, -1\n\n%define write8_pack4  read8_unpack4\n%define write16_pack4 read16_unpack2\n%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nconst1b equ mask1\nconst1w: times 16 dw 0x01\n\nSECTION .text\n\n;---------------------------------------------------------", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:2", "text": "%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nconst1b equ mask1\nconst1w: times 16 dw 0x01\n\nSECTION .text\n\n;---------------------------------------------------------\n; Global entry point. See `ops_common.asm` for info.\n\n%macro process_fn 1 ; number of planes\ncglobal sws_process%1_x86, 6, 7 + 2 * %1, 16\n            ; Args:\n            ;   execq, implq, bxd, yd as defined in ops_common.int\n            ;   bx_end and y_end are initially in tmp0d / tmp1d\n            ;   (see SwsOpFunc signature)\n            ;\n            ; Stack layout:\n            ;   [rsp +  0] = [qword] impl->cont (address of first kernel)\n            ;   [rsp +  8] = [qword] &impl[1]   (restore implq after chain)\n            ;   [rsp + 16] = [dword] bx start   (restore after line finish)\n            ;   [rsp + 20] = [dword] bx end     (loop counter limit)\n            ;   [rsp + 24] = [dword] y end      (loop counter limit)\n            sub rsp, 32\n            mov [rsp + 16], bxd\n            mov [rsp + 20], tmp0d ; bx_end\n            mov [rsp + 24], tmp1d ; y_end\n            mov tmp0q, [implq + SwsOpImpl.cont]\n            add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n            movsxdifnidn bxq, bxd\n            movsxdifnidn yq, yd\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n.loop:\n            call [rsp] ; call into op chain\n            mov implq, [rsp + 8]\n            inc bxd\n            cmp bxd, [rsp + 20]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:3", "text": "add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n            movsxdifnidn bxq, bxd\n            movsxdifnidn yq, yd\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n.loop:\n            call [rsp] ; call into op chain\n            mov implq, [rsp + 8]\n            inc bxd\n            cmp bxd, [rsp + 20]\n            jne .loop\n            ; end of line\n            inc yd\n            cmp yd, [rsp + 24]\n            je .end\n            ; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n            ; conditionally apply y bump (if non-NULL)\n            mov tmp0q, [execq + SwsOpExec.in_bump_y]\n            test tmp0q, tmp0q\n            jz .loop\n            movsxd tmp0q, [tmp0q + yq * 4 - 4] ; load (signed) y bump\n%if %1 > 3\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride3]\n            add in3q, tmp1q\n%endif\n%if %1 > 2\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride2]\n            add in2q, tmp1q\n%endif\n%if %1 > 1\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride1]\n            add in1q, tmp1q\n%endif\n            imul tmp0q, [execq + SwsOpExec.in_stride0]\n            add in0q, tmp0q\n            jmp .loop\n.end:\n            add rsp, 32", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:4", "text": "%if %1 > 3\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride3]\n            add in3q, tmp1q\n%endif\n%if %1 > 2\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride2]\n            add in2q, tmp1q\n%endif\n%if %1 > 1\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride1]\n            add in1q, tmp1q\n%endif\n            imul tmp0q, [execq + SwsOpExec.in_stride0]\n            add in0q, tmp0q\n            jmp .loop\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro MOVSIZE 3 ; size, dst, src\n    %if %1 <= 4\n        movd %2, %3\n    %elif %1 <= 8\n        movq %2, %3\n    %else\n        movu %2, %3\n    %endif\n%endmacro\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro MOVSIZE 3 ; size, dst, src\n    %if %1 <= 4\n        movd %2, %3\n    %elif %1 <= 8\n        movq %2, %3\n    %else\n        movu %2, %3\n    %endif\n%endmacro\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n            MOVSIZE %1, m0, [srcq + srcidxq]\n            pshufb m0, m1\n            MOVSIZE %2, [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15,  5 ; 24 -> 8\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16,  4 ; 32 -> 8,  64 -> 16\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "op read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            RET\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            RET\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "%else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "%else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            RET\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "IF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        add out0q, (mmsize >> 3) * (1 + V2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "IF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        add out0q, (mmsize >> 3) * (1 + V2)\n        RET\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "IF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF X,   vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF Y,   vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF Z,   vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF W,   vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF X,   movd mx, [implq + SwsOpImpl.priv + 0]\n    IF Y,   movd my, [implq + SwsOpImpl.priv + 4]\n    IF Z,   movd mz, [implq + SwsOpImpl.priv + 8]\n    IF W,   movd mw, [implq + SwsOpImpl.priv + 12]\n    IF X,   pshufd mx, mx, 0\n    IF Y,   pshufd my, my, 0\n    IF Z,   pshufd mz, mz, 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "IF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF X,   vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF Y,   vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF Z,   vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF W,   vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF X,   movd mx, [implq + SwsOpImpl.priv + 0]\n    IF Y,   movd my, [implq + SwsOpImpl.priv + 4]\n    IF Z,   movd mz, [implq + SwsOpImpl.priv + 8]\n    IF W,   movd mw, [implq + SwsOpImpl.priv + 12]\n    IF X,   pshufd mx, mx, 0\n    IF Y,   pshufd my, my, 0\n    IF Z,   pshufd mz, mz, 0\n    IF W,   pshufd mw, mw, 0\n%endif\n%if V2\n    IF X,   mova mx2, mx\n    IF Y,   mova my2, my\n    IF Z,   mova mz2, mz\n    IF W,   mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 0, 0, 0, 1, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 1, 0, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 1, 0, 1, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 1, 0, 1, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "IF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1081}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "IF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "op swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "IF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": ";---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "op expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ba516a34cd1cdc46ab35a9440ef2f0891c774bd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ba516a34cd1cdc46ab35a9440ef2f0891c774bd0/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1083}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:4", "text": "%if %1 > 3\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride3]\n            add in3q, tmp1q\n%endif\n%if %1 > 2\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride2]\n            add in2q, tmp1q\n%endif\n%if %1 > 1\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride1]\n            add in1q, tmp1q\n%endif\n            imul tmp0q, [execq + SwsOpExec.in_stride0]\n            add in0q, tmp0q\n            jmp .loop\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15,  5 ; 24 -> 8\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15,  5 ; 24 -> 8\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16,  4 ; 32 -> 8,  64 -> 16\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "IF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            RET\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "IF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            RET\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            RET\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            RET\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        add out0q, (mmsize >> 3) * (1 + V2)\n        RET\n%endmacro\n\n;--------------------------", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        add out0q, (mmsize >> 3) * (1 + V2)\n        RET\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": ";---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "op swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "op swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "op swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "IF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "IF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "c29465bcb62122658ba785276cc3b8538344ca61", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c29465bcb62122658ba785276cc3b8538344ca61/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1079}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:2", "text": "%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nconst1b equ mask1\nconst1w: times 16 dw 0x01\n\nSECTION .text\n\n;---------------------------------------------------------\n; Global entry point. See `ops_common.asm` for info.\n\n%macro process_fn 1 ; number of planes\ncglobal sws_process%1_x86, 6, 7 + 2 * %1, 16\n            ; Args:\n            ;   execq, implq, bxd, yd as defined in ops_common.int\n            ;   bx_end and y_end are initially in tmp0d / tmp1d\n            ;   (see SwsOpFunc signature)\n            ;\n            ; Stack layout:\n            ;   [rsp +  0] = [qword] impl->cont (address of first kernel)\n            ;   [rsp +  8] = [qword] &impl[1]   (restore implq after chain)\n            ;   [rsp + 16] = [dword] bx start   (restore after line finish)\n            ;   [rsp + 20] = [dword] bx end     (loop counter limit)\n            ;   [rsp + 24] = [dword] y end      (loop counter limit)\n            sub rsp, 32\n            mov [rsp + 16], bxd\n            mov [rsp + 20], tmp0d ; bx_end\n            mov [rsp + 24], tmp1d ; y_end\n            mov tmp0q, [implq + SwsOpImpl.cont]\n            add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n            movsxdifnidn bxq, bxd\n            movsxdifnidn yq, yd\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:3", "text": "add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n            movsxdifnidn bxq, bxd\n            movsxdifnidn yq, yd\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF\n    global current_function %+ _return:function hidden\n%elif FORMAT_MACHO && HAVE_PRIVATE_EXTERN\n    global current_function %+ _return:private_extern\n%else\n    global current_function %+ _return\n%endif\nalign function_align\ncurrent_function %+ _return:\n\n            ; op chain always returns back here\n            mov implq, [rsp + 8]\n            inc bxd\n            cmp bxd, [rsp + 20]\n            jne .continue\n            ; end of line\n            inc yd\n            cmp yd, [rsp + 24]\n            je .end\n            ; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n            ; conditionally apply y bump (if non-NULL)\n            mov tmp0q, [execq + SwsOpExec.in_bump_y]\n            test tmp0q, tmp0q\n            jz .continue\n            movsxd tmp0q, [tmp0q + yq * 4 - 4] ; load (signed) y bump\n%if %1 > 3\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride3]\n            add in3q, tmp1q\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:4", "text": "; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n            ; conditionally apply y bump (if non-NULL)\n            mov tmp0q, [execq + SwsOpExec.in_bump_y]\n            test tmp0q, tmp0q\n            jz .continue\n            movsxd tmp0q, [tmp0q + yq * 4 - 4] ; load (signed) y bump\n%if %1 > 3\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride3]\n            add in3q, tmp1q\n%endif\n%if %1 > 2\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride2]\n            add in2q, tmp1q\n%endif\n%if %1 > 1\n            mov tmp1q, tmp0q\n            imul tmp1q, [execq + SwsOpExec.in_stride1]\n            add in1q, tmp1q\n%endif\n            imul tmp0q, [execq + SwsOpExec.in_stride0]\n            add in0q, tmp0q\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "process_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15,  5 ; 24 -> 8\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16,  4 ; 32 -> 8,  64 -> 16\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "packed_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "IF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "IF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "%endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": ";---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "op swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "op swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "op swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1099}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:28", "text": "decl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "7966de1ce6b6a8111b028347ff6d9fe9d9e2c368", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7966de1ce6b6a8111b028347ff6d9fe9d9e2c368/libswscale/x86/ops_int.asm", "line_start": 1081, "line_end": 1099}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:3", "text": "add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n            movsxdifnidn bxq, bxd\n            movsxdifnidn yq, yd\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF\n    global current_function %+ _return:function hidden\n%elif FORMAT_MACHO && HAVE_PRIVATE_EXTERN\n    global current_function %+ _return:private_extern\n%else\n    global current_function %+ _return\n%endif\nalign function_align\ncurrent_function %+ _return:\n\n            ; op chain always returns back here\n            mov implq, [rsp + 8]\n            inc bxd\n            cmp bxd, [rsp + 20]\n            jne .continue\n            ; end of line\n            inc yd\n            cmp yd, [rsp + 24]\n            je .end\n            ; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:4", "text": "; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "cglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15,  5 ; 24 -> 8\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16,  4 ; 32 -> 8,  64 -> 16\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15,  5 ; 24 -> 8\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16,  4 ; 32 -> 8,  64 -> 16\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": ";---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": ";---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "77588898e2b7f7743f942395a0791de18870f322", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/77588898e2b7f7743f942395a0791de18870f322/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1077}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "cglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "%if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "IF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "op write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "IF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": ";---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "98f2aba45ab794a17fa0202898b35b6b22f921be", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/98f2aba45ab794a17fa0202898b35b6b22f921be/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1075}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:2", "text": "%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nconst1b equ mask1\nconst1w: times 16 dw 0x01\n\nSECTION .text\n\n;---------------------------------------------------------\n; Global entry point. See `ops_common.asm` for info.\n\n%macro process_fn 1 ; number of planes\ncglobal sws_process%1_x86, 6, 7 + 2 * %1, 16\n            ; Args:\n            ;   execq, implq, bxd, yd as defined in ops_common.int\n            ;   bx_end and y_end are initially in tmp0d / tmp1d\n            ;   (see SwsOpFunc signature)\n            ;\n            ; Stack layout:\n            ;   [rsp +  0] = [qword] impl->cont (address of first kernel)\n            ;   [rsp +  8] = [qword] &impl[1]   (restore implq after chain)\n            ;   [rsp + 16] = [dword] bx start   (restore after line finish)\n            ;   [rsp + 20] = [dword] bx end     (loop counter limit)\n            ;   [rsp + 24] = [dword] y end      (loop counter limit)\n            sub rsp, 32\n            mov [rsp + 16], bxd\n            mov [rsp + 20], tmp0d ; bx_end\n            mov [rsp + 24], tmp1d ; y_end\n            mov tmp0q, [implq + SwsOpImpl.cont]\n            add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:3", "text": "add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF\n    global current_function %+ _return:function hidden\n%elif FORMAT_MACHO && HAVE_PRIVATE_EXTERN\n    global current_function %+ _return:private_extern\n%else\n    global current_function %+ _return\n%endif\nalign function_align\ncurrent_function %+ _return:\n\n            ; op chain always returns back here\n            mov implq, [rsp + 8]\n            inc bxd\n            cmp bxd, [rsp + 20]\n            jne .continue\n            ; end of line\n            inc yd\n            cmp yd, [rsp + 24]\n            je .end\n            ; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:4", "text": "IF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "INIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "IF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "IF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [const1b]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "IF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "op swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "op swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "op %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "op convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting and scaling\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "IF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n; special cases for expanding bits to full range\n%macro expand_bits 2 ; bits, suffix\nop expand_bits%1\n        mova m8, [const1%2]\n        LOAD_CONT tmp0q\n        pcmpeq%2 mx, m8\nIF V2,  pcmpeq%2 mx2, m8\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n    expand_bits 8, b\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    expand_bits 16, w\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "48369f6cf258b6dcd1d0ce94b92397eba9464393", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/48369f6cf258b6dcd1d0ce94b92397eba9464393/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1073}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:2", "text": "%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nconst1b equ mask1\nconst1w: times 16 dw 0x01\n\nSECTION .text\n\n;---------------------------------------------------------\n; Global entry point. See `ops_common.asm` for info.\n\n%macro process_fn 1 ; number of planes\ncglobal sws_process%1_x86, 6, 6 + 2 * %1, 16\n            ; Args:\n            ;   execq, implq, bxd, yd as defined in ops_common.int\n            ;   bx_end and y_end are initially in tmp0d / tmp1d\n            ;   (see SwsOpFunc signature)\n            ;\n            ; Stack layout:\n            ;   [rsp +  0] = [qword] impl->cont (address of first kernel)\n            ;   [rsp +  8] = [qword] &impl[1]   (restore implq after chain)\n            ;   [rsp + 16] = [dword] bx start   (restore after line finish)\n            ;   [rsp + 20] = [dword] bx end     (loop counter limit)\n            ;   [rsp + 24] = [dword] y end      (loop counter limit)\n            sub rsp, 32\n            mov [rsp + 16], bxd\n            mov [rsp + 20], tmp0d ; bx_end\n            mov [rsp + 24], tmp1d ; y_end\n            mov tmp0q, [implq + SwsOpImpl.cont]\n            add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "ec959e20c5852e288f3d7bbecb8b09303a53c61b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/ec959e20c5852e288f3d7bbecb8b09303a53c61b/libswscale/x86/ops_int.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2025 Niklas Haas\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"ops_common.asm\"\n\nSECTION_RODATA\n\nalign 16\nexpand16_shuf:  db   0,  0,  2,  2,  4,  4,  6,  6,  8,  8, 10, 10, 12, 12, 14, 14\nexpand32_shuf:  db   0,  0,  0,  0,  4,  4,  4,  4,  8,  8,  8,  8, 12, 12, 12, 12\n\nread8_unpack2:  db   0,  2,  4,  6,  8, 10, 12, 14,  1,  3,  5,  7,  9, 11, 13, 15\nread8_unpack3:  db   0,  3,  6,  9,  1,  4,  7, 10,  2,  5,  8, 11, -1, -1, -1, -1\nread8_unpack4:  db   0,  4,  8, 12,  1,  5,  9, 13,  2,  6, 10, 14,  3,  7, 11, 15\nread16_unpack2: db   0,  1,  4,  5,  8,  9, 12, 13,  2,  3,  6,  7, 10, 11, 14, 15\nread16_unpack3: db   0,  1,  6,  7,  2,  3,  8,  9,  4,  5, 10, 11, -1, -1, -1, -1\nread16_unpack4: db   0,  1,  8,  9,  2,  3, 10, 11,  4,  5, 12, 13,  6,  7, 14, 15\nwrite8_pack2:   db   0,  8,  1,  9,  2, 10,  3, 11,  4, 12,  5, 13,  6, 14,  7, 15\nwrite8_pack3:   db   0,  4,  8,  1,  5,  9,  2,  6, 10,  3,  7, 11, -1, -1, -1, -1\nwrite16_pack3:  db   0,  1,  4,  5,  8,  9,  2,  3,  6,  7, 10, 11, -1, -1, -1, -1\n\n%define write8_pack4  read8_unpack4\n%define write16_pack4 read16_unpack2\n%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nSECTION .text\n\n;---------------------------------------------------------\n; Global entry point. See `ops_common.asm` for info.\n\n%macro process_fn 1 ; number of planes", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:2", "text": "%define write16_pack2 read16_unpack4\n\nalign 32\nbits_shuf:      db   0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,  1,  1,  1,  1, \\\n                     2,  2,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  3,  3,  3,  3\nbits_mask:      db 128, 64, 32, 16,  8,  4,  2,  1,128, 64, 32, 16,  8,  4,  2,  1\nbits_reverse:   db   7,  6,  5,  4,  3,  2,  1,  0, 15, 14, 13, 12, 11, 10,  9,  8,\n\nalign 32\nmask1: times 32 db 0x01\nmask2: times 32 db 0x03\nmask3: times 32 db 0x07\nmask4: times 32 db 0x0F\n\nSECTION .text\n\n;---------------------------------------------------------\n; Global entry point. See `ops_common.asm` for info.\n\n%macro process_fn 1 ; number of planes\ncglobal sws_process%1_x86, 6, 6 + 2 * %1, 16\n            ; Args:\n            ;   execq, implq, bxd, yd as defined in ops_common.int\n            ;   bx_end and y_end are initially in tmp0d / tmp1d\n            ;   (see SwsOpFunc signature)\n            ;\n            ; Stack layout:\n            ;   [rsp +  0] = [qword] impl->cont (address of first kernel)\n            ;   [rsp +  8] = [qword] &impl[1]   (restore implq after chain)\n            ;   [rsp + 16] = [dword] bx start   (restore after line finish)\n            ;   [rsp + 20] = [dword] bx end     (loop counter limit)\n            ;   [rsp + 24] = [dword] y end      (loop counter limit)\n            sub rsp, 32\n            mov [rsp + 16], bxd\n            mov [rsp + 20], tmp0d ; bx_end\n            mov [rsp + 24], tmp1d ; y_end\n            mov tmp0q, [implq + SwsOpImpl.cont]\n            add implq, SwsOpImpl.next\n            mov [rsp +  0], tmp0q\n            mov [rsp +  8], implq\n\n            ; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF\n    global current_function %+ _return:function hidden\n%elif FORMAT_MACHO && HAVE_PRIVATE_EXTERN\n    global current_function %+ _return:private_extern", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:3", "text": "; load plane pointers\n            mov in0q,  [execq + SwsOpExec.in0]\nIF %1 > 1,  mov in1q,  [execq + SwsOpExec.in1]\nIF %1 > 2,  mov in2q,  [execq + SwsOpExec.in2]\nIF %1 > 3,  mov in3q,  [execq + SwsOpExec.in3]\n            mov out0q, [execq + SwsOpExec.out0]\nIF %1 > 1,  mov out1q, [execq + SwsOpExec.out1]\nIF %1 > 2,  mov out2q, [execq + SwsOpExec.out2]\nIF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]\n            jmp [rsp] ; call into op chain\n\n; Declare a separate global label for the return point, so that we can append\n; it to the list of op function pointers from the C code, effectively ensuring\n; that we end up here again after the op chain finishes processing a line.\n; (See also: cglobal_label in x86inc.asm)\n%if FORMAT_ELF\n    global current_function %+ _return:function hidden\n%elif FORMAT_MACHO && HAVE_PRIVATE_EXTERN\n    global current_function %+ _return:private_extern\n%else\n    global current_function %+ _return\n%endif\nalign function_align\ncurrent_function %+ _return:\n\n            ; op chain always returns back here\n            mov implq, [rsp + 8]\n            inc bxd\n            cmp bxd, [rsp + 20]\n            jne .continue\n            ; end of line\n            inc yd\n            cmp yd, [rsp + 24]\n            je .end\n            ; bump addresses to point to start of next line\n            add in0q,  [execq + SwsOpExec.in_bump0]\nIF %1 > 1,  add in1q,  [execq + SwsOpExec.in_bump1]\nIF %1 > 2,  add in2q,  [execq + SwsOpExec.in_bump2]\nIF %1 > 3,  add in3q,  [execq + SwsOpExec.in_bump3]\n            add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:4", "text": "add out0q, [execq + SwsOpExec.out_bump0]\nIF %1 > 1,  add out1q, [execq + SwsOpExec.out_bump1]\nIF %1 > 2,  add out2q, [execq + SwsOpExec.out_bump2]\nIF %1 > 3,  add out3q, [execq + SwsOpExec.out_bump3]\n            mov bxd, [rsp + 16]\n.continue:\n            jmp [rsp]\n.end:\n            add rsp, 32\n            RET\n%endmacro\n\nprocess_fn 1\nprocess_fn 2\nprocess_fn 3\nprocess_fn 4\n\n;---------------------------------------------------------\n; Packed shuffle fast-path\n\n; This is a special entry point for handling a subset of operation chains\n; that can be reduced down to a single `pshufb` shuffle mask. For more details\n; about when this works, refer to the documentation of `ff_sws_solve_shuffle`.\n;\n; We specialize this function for every possible combination of pixel strides.\n; For example, gray -> gray16 is classified as an \"8, 16\" operation because it\n; takes 8 bytes and expands them out to 16 bytes in each application of the\n; 128-bit shuffle mask.\n;\n; Since pshufb can't shuffle across lanes, we only instantiate SSE4 versions for\n; all shuffles that are not a clean multiple of 128 bits (e.g. rgb24 -> rgb0).\n; For the clean multiples (e.g. rgba -> argb), we also define AVX2 and AVX512\n; versions that can handle a larger number of bytes at once.\n\n%macro packed_shuffle 2 ; size_in, size_out\ncglobal packed_shuffle%1_%2, 6, 10, 2, \\\n    exec, shuffle, bx, y, bxend, yend, src, dst, src_stride, dst_stride\n            mov srcq, [execq + SwsOpExec.in0]\n            mov dstq, [execq + SwsOpExec.out0]\n            mov src_strideq, [execq + SwsOpExec.in_stride0]\n            mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:5", "text": "mov dst_strideq, [execq + SwsOpExec.out_stride0]\n            VBROADCASTI128 m1, [shuffleq]\n            sub bxendd, bxd\n            sub yendd, yd\n            ; reuse now-unneeded regs\n    %define srcidxq execq\n            imul srcidxq, bxendq, -%1\n%if %1 = %2\n    %define dstidxq srcidxq\n%else\n    %define dstidxq shuffleq ; no longer needed reg\n            imul dstidxq, bxendq, -%2\n%endif\n            sub srcq, srcidxq\n            sub dstq, dstidxq\n.loop:\n    %if %1 <= 4\n            movd m0, [srcq + srcidxq]\n    %elif %1 <= 8\n            movq m0, [srcq + srcidxq]\n    %else\n            movu m0, [srcq + srcidxq]\n    %endif\n            pshufb m0, m1\n            movu [dstq + dstidxq], m0\n            add srcidxq, %1\nIF %1 != %2,add dstidxq, %2\n            jnz .loop\n            add srcq, src_strideq\n            add dstq, dst_strideq\n            imul srcidxq, bxendq, -%1\nIF %1 != %2,imul dstidxq, bxendq, -%2\n            dec yendd\n            jnz .loop\n            RET\n%endmacro\n\nINIT_XMM sse4\npacked_shuffle  5, 15 ;  8 -> 24\npacked_shuffle  4, 16 ;  8 -> 32, 16 -> 64\npacked_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:6", "text": "packed_shuffle  2, 12 ;  8 -> 48\npacked_shuffle 16,  8 ; 16 -> 8\npacked_shuffle 10, 15 ; 16 -> 24\npacked_shuffle  8, 16 ; 16 -> 32, 32 -> 64\npacked_shuffle  4, 12 ; 16 -> 48\npacked_shuffle 15, 15 ; 24 -> 24\npacked_shuffle 12, 16 ; 24 -> 32\npacked_shuffle  6, 12 ; 24 -> 48\npacked_shuffle 16, 12 ; 32 -> 24, 64 -> 48\npacked_shuffle 16, 16 ; 32 -> 32, 64 -> 64\npacked_shuffle  8, 12 ; 32 -> 48\npacked_shuffle 12, 12 ; 48 -> 48\n\nINIT_YMM avx2\npacked_shuffle 32, 32\n\nINIT_ZMM avx512\npacked_shuffle 64, 64\n\n;---------------------------------------------------------\n; Planar reads / writes\n\n%macro read_planar 1 ; elems\nop read_planar%1\n            movu mx, [in0q]\nIF %1 > 1,  movu my, [in1q]\nIF %1 > 2,  movu mz, [in2q]\nIF %1 > 3,  movu mw, [in3q]\n%if V2\n            movu mx2, [in0q + mmsize]\nIF %1 > 1,  movu my2, [in1q + mmsize]\nIF %1 > 2,  movu mz2, [in2q + mmsize]\nIF %1 > 3,  movu mw2, [in3q + mmsize]\n%endif\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (1 + V2)\nIF %1 > 1,  add in1q, mmsize * (1 + V2)\nIF %1 > 2,  add in2q, mmsize * (1 + V2)\nIF %1 > 3,  add in3q, mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if cpuflag(avx2)\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if cpuflag(avx2)\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "%endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if cpuflag(avx2)\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [mask1]\n        LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if cpuflag(avx2)\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [mask1]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "IF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + (mmsize >> 3)], tmp1d\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:14", "text": "IF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack8 3 ; x, y, z\nop unpack_%1%2%3 %+ 0\n        pand mz, mx, [mask%3]\n        psrld my, mx, %3\n        psrld mx, %3+%2\n        pand my, [mask%2]\n        pand mx, [mask%1]\n    %if V2\n        pand mz2, mx2, [mask%3]\n        psrld my2, mx2, %3\n        psrld mx2, %3+%2\n        pand my2, [mask%2]\n        pand mx2, [mask%1]\n    %endif\n        CONTINUE\n%endmacro\n\n;---------------------------------------------------------\n; Generic byte order shuffle (packed swizzle, endian, etc)\n\n%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "IF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if cpuflag(avx2)\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "%assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "%if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "IF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "IF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "read_bits\n    write_bits\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1058}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "INIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "272e7a047bb69a5f27d6265038dc6f58756fef8f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/272e7a047bb69a5f27d6265038dc6f58756fef8f/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1058}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !cpuflag(avx2)\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:17", "text": "%assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_3021\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1\n    CONTINUE tmp0q\n\nop swizzle_2103\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2\n    CONTINUE tmp0q\n\nop swizzle_3210\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_3102\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3201\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:18", "text": "op swizzle_1203\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_1023\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1\n    CONTINUE tmp0q\n\nop swizzle_2013\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1\n    CONTINUE tmp0q\n\nop swizzle_2310\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_2130\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1230\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_1320\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "op swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if cpuflag(avx2)\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "IF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "IF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "write_bits\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "d9e8c856171834be8fe20fde0ed991e96f84acf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d9e8c856171834be8fe20fde0ed991e96f84acf0/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1057}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:7", "text": "%endmacro\n\n%macro write_planar 1 ; elems\nop write_planar%1\n            LOAD_CONT tmp0q\n            movu [out0q], mx\nIF %1 > 1,  movu [out1q], my\nIF %1 > 2,  movu [out2q], mz\nIF %1 > 3,  movu [out3q], mw\n%if V2\n            movu [out0q + mmsize], mx2\nIF %1 > 1,  movu [out1q + mmsize], my2\nIF %1 > 2,  movu [out2q + mmsize], mz2\nIF %1 > 3,  movu [out3q + mmsize], mw2\n%endif\n            add out0q, mmsize * (1 + V2)\nIF %1 > 1,  add out1q, mmsize * (1 + V2)\nIF %1 > 2,  add out2q, mmsize * (1 + V2)\nIF %1 > 3,  add out3q, mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro read_packed2 1 ; depth\nop read%1_packed2\n            movu m8,  [in0q + 0*mmsize]\n            movu m9,  [in0q + 1*mmsize]\n    IF V2,  movu m10, [in0q + 2*mmsize]\n    IF V2,  movu m11, [in0q + 3*mmsize]\nIF %1 < 32, VBROADCASTI128 m12, [read%1_unpack2]\n            LOAD_CONT tmp0q\n            add in0q, mmsize * (2 + V2 * 2)\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12              ; { X0 Y0 | X1 Y1 }\n            pshufb m9, m12              ; { X2 Y2 | X3 Y3 }\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if avx_enabled\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if avx_enabled", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:8", "text": "IF V2,  pshufb m11, m12\n%endif\n            unpcklpd mx, m8, m9         ; { X0 X2 | X1 X3 }\n            unpckhpd my, m8, m9         ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  unpcklpd mx2, m10, m11\n    IF V2,  unpckhpd my2, m10, m11\n%if avx_enabled\n            vpermq mx, mx, q3120       ; { X0 X1 | X2 X3 }\n            vpermq my, my, q3120       ; { Y0 Y1 | Y2 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed2 1 ; depth\nop write%1_packed2\nIF %1 < 32, VBROADCASTI128 m12, [write%1_pack2]\n            LOAD_CONT tmp0q\n%if avx_enabled\n            vpermq mx, mx, q3120       ; { X0 X2 | X1 X3 }\n            vpermq my, my, q3120       ; { Y0 Y2 | Y1 Y3 }\n    IF V2,  vpermq mx2, mx2, q3120\n    IF V2,  vpermq my2, my2, q3120\n%endif\n            unpcklpd m8, mx, my        ; { X0 Y0 | X1 Y1 }\n            unpckhpd m9, mx, my        ; { X2 Y2 | X3 Y3 }\n    IF V2,  unpcklpd m10, mx2, my2\n    IF V2,  unpckhpd m11, mx2, my2\n%if %1 == 32\n            shufps m8, m8, q3120\n            shufps m9, m9, q3120\n    IF V2,  shufps m10, m10, q3120\n    IF V2,  shufps m11, m11, q3120\n%else\n            pshufb m8, m12\n            pshufb m9, m12\n    IF V2,  pshufb m10, m12\n    IF V2,  pshufb m11, m12\n%endif\n            movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if avx_enabled\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:9", "text": "movu [out0q + 0*mmsize], m8\n            movu [out0q + 1*mmsize], m9\nIF V2,      movu [out0q + 2*mmsize], m10\nIF V2,      movu [out0q + 3*mmsize], m11\n            add out0q, mmsize * (2 + V2 * 2)\n            FINISH tmp0q\n%endmacro\n\n; helper macro reused for both 3 and 4 component packed reads\n%macro read_packed_inner 7 ; x, y, z, w, addr, num, depth\n            movu xm8,  [%5 + 0  * %6]\n            movu xm9,  [%5 + 4  * %6]\n            movu xm10, [%5 + 8  * %6]\n            movu xm11, [%5 + 12 * %6]\n    %if avx_enabled\n            vinserti128 m8,  m8,  [%5 + 16 * %6], 1\n            vinserti128 m9,  m9,  [%5 + 20 * %6], 1\n            vinserti128 m10, m10, [%5 + 24 * %6], 1\n            vinserti128 m11, m11, [%5 + 28 * %6], 1\n    %endif\n    %if %7 == 32\n            mova %1, m8\n            mova %2, m9\n            mova %3, m10\n            mova %4, m11\n    %else\n            pshufb %1, m8,  m12         ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n            pshufb %2, m9,  m12         ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n            pshufb %3, m10, m12         ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n            pshufb %4, m11, m12         ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %endif\n            punpckldq m8,  %1, %2       ; { X0 X1 Y0 Y1 | X4 X5 Y4 Y5 }\n            punpckldq m9,  %3, %4       ; { X2 X3 Y2 Y3 | X6 X7 Y6 Y7 }\n            punpckhdq m10, %1, %2       ; { Z0 Z1 W0 W1 | Z4 Z5 W4 W5 }\n            punpckhdq m11, %3, %4       ; { Z2 Z3 W2 W3 | Z6 Z7 W6 W7 }\n            punpcklqdq %1, m8, m9       ; { X0 X1 X2 X3 | X4 X5 X6 X7 }\n            punpckhqdq %2, m8, m9       ; { Y0 Y1 Y2 Y3 | Y4 Y5 Y6 Y7 }\n            punpcklqdq %3, m10, m11     ; { Z0 Z1 Z2 Z3 | Z4 Z5 Z6 Z7 }\nIF %6 > 3,  punpckhqdq %4, m10, m11     ; { W0 W1 W2 W3 | W4 W5 W6 W7 }\n%endmacro\n\n%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:10", "text": "%macro read_packed 2 ; num, depth\nop read%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [read%2_unpack%1]\n            LOAD_CONT tmp0q\n            read_packed_inner mx, my, mz, mw, in0q, %1, %2\nIF1 V2,     read_packed_inner mx2, my2, mz2, mw2, in0q + %1 * mmsize, %1, %2\n            add in0q, %1 * mmsize * (1 + V2)\n            CONTINUE tmp0q\n%endmacro\n\n%macro write_packed_inner 7 ; x, y, z, w, addr, num, depth\n        punpckldq m8,  %1, %2       ; { X0 Y0 X1 Y1 | X4 Y4 X5 Y5 }\n        punpckldq m9,  %3, %4       ; { Z0 W0 Z1 W1 | Z4 W4 Z5 W5 }\n        punpckhdq m10, %1, %2       ; { X2 Y2 X3 Y3 | X6 Y6 X7 Y7 }\n        punpckhdq m11, %3, %4       ; { Z2 W2 Z3 W3 | Z6 W6 Z7 W7 }\n        punpcklqdq %1, m8, m9       ; { X0 Y0 Z0 W0 | X4 Y4 Z4 W4 }\n        punpckhqdq %2, m8, m9       ; { X1 Y1 Z1 W1 | X5 Y5 Z5 W5 }\n        punpcklqdq %3, m10, m11     ; { X2 Y2 Z2 W2 | X6 Y6 Z6 W6 }\n        punpckhqdq %4, m10, m11     ; { X3 Y3 Z3 W3 | X7 Y7 Z7 W7 }\n    %if %7 == 32\n        mova m8,  %1\n        mova m9,  %2\n        mova m10, %3\n        mova m11, %4\n    %else\n        pshufb m8,  %1, m12\n        pshufb m9,  %2, m12\n        pshufb m10, %3, m12\n        pshufb m11, %4, m12\n    %endif\n        movu [%5 +  0*%6], xm8\n        movu [%5 +  4*%6], xm9\n        movu [%5 +  8*%6], xm10\n        movu [%5 + 12*%6], xm11\n    %if avx_enabled\n        vextracti128 [%5 + 16*%6], m8, 1\n        vextracti128 [%5 + 20*%6], m9, 1\n        vextracti128 [%5 + 24*%6], m10, 1\n        vextracti128 [%5 + 28*%6], m11, 1\n    %endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:11", "text": "%endif\n%endmacro\n\n%macro write_packed 2 ; num, depth\nop write%2_packed%1\nIF %2 < 32, VBROADCASTI128 m12, [write%2_pack%1]\n            LOAD_CONT tmp0q\n            write_packed_inner mx, my, mz, mw, out0q, %1, %2\nIF1 V2,     write_packed_inner mx2, my2, mz2, mw2, out0q + %1 * mmsize, %1, %2\n            add out0q, %1 * mmsize * (1 + V2)\n            FINISH tmp0q\n%endmacro\n\n%macro rw_packed 1 ; depth\n        read_packed2 %1\n        read_packed 3, %1\n        read_packed 4, %1\n        write_packed2 %1\n        write_packed 3, %1\n        write_packed 4, %1\n%endmacro\n\n%macro read_nibbles 0\nop read_nibbles1\n%if avx_enabled\n        movu xmx,  [in0q]\nIF V2,  movu xmx2, [in0q + 16]\n%else\n        movq xmx,  [in0q]\nIF V2,  movq xmx2, [in0q + 8]\n%endif\n        VBROADCASTI128 m8, [mask4]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 1) * (1 + V2)\n        pmovzxbw mx, xmx\nIF V2,  pmovzxbw mx2, xmx2\n        psllw my, mx, 8\nIF V2,  psllw my2, mx2, 8\n        psrlw mx, 4\nIF V2,  psrlw mx2, 4\n        pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if avx_enabled\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [mask1]\n        LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:12", "text": "pand my, m8\nIF V2,  pand my2, m8\n        por mx, my\nIF V2,  por mx2, my2\n        CONTINUE tmp0q\n%endmacro\n\n%macro read_bits 0\nop read_bits1\n%if avx_enabled\n        vpbroadcastd mx,  [in0q]\nIF V2,  vpbroadcastd mx2, [in0q + 4]\n%else\n        movd mx, [in0q]\nIF V2,  movd mx2, [in0q + 2]\n%endif\n        mova m8, [bits_shuf]\n        VBROADCASTI128 m9,  [bits_mask]\n        VBROADCASTI128 m10, [mask1]\n        LOAD_CONT tmp0q\n        add in0q, (mmsize >> 3) * (1 + V2)\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pand mx,  m9\nIF V2,  pand mx2, m9\n        pcmpeqb mx,  m9\nIF V2,  pcmpeqb mx2, m9\n        pand mx,  m10\nIF V2,  pand mx2, m10\n        CONTINUE tmp0q\n%endmacro\n\n; TODO: write_nibbles\n\n%macro write_bits 0\nop write_bits1\n        VBROADCASTI128 m8, [bits_reverse]\n        psllw mx,  7\nIF V2,  psllw mx2, 7\n        pshufb mx,  m8\nIF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n%if avx_enabled\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + 4], tmp1d\n%else\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + 2], tmp1d\n%endif\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:13", "text": "IF V2,  pshufb mx2, m8\n        pmovmskb tmp0d, mx\nIF V2,  pmovmskb tmp1d, mx2\n%if avx_enabled\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + 4], tmp1d\n%else\n        mov [out0q],     tmp0d\nIF V2,  mov [out0q + 2], tmp1d\n%endif\n        LOAD_CONT tmp0q\n        add out0q, (mmsize >> 3) * (1 + V2)\n        FINISH tmp0q\n%endmacro\n\n;--------------------------\n; Pixel packing / unpacking\n\n%macro pack_generic 3-4 0 ; x, y, z, w\nop pack_%1%2%3%4\n        ; pslld works for all sizes because the input should not overflow\nIF %2,  pslld mx, %4+%3+%2\nIF %3,  pslld my, %4+%3\nIF %4,  pslld mz, %4\nIF %2,  por mx, my\nIF %3,  por mx, mz\nIF %4,  por mx, mw\n    %if V2\nIF %2,  pslld mx2, %4+%3+%2\nIF %3,  pslld my2, %4+%3\nIF %4,  pslld mz2, %4\nIF %2,  por mx2, my2\nIF %3,  por mx2, mz2\nIF %4,  por mx2, mw2\n    %endif\n        CONTINUE\n%endmacro\n\n%macro unpack 5-6 0 ; type, bits, x, y, z, w\nop unpack_%3%4%5%6\n        ; clear high bits by shifting left\nIF %6,  vpsll%1 mw, mx, %2 - (%6)\nIF %5,  vpsll%1 mz, mx, %2 - (%6+%5)\nIF %4,  vpsll%1 my, mx, %2 - (%6+%5+%4)\n        psrl%1 mx, %4+%5+%6\nIF %4,  psrl%1 my, %2 - %4\nIF %5,  psrl%1 mz, %2 - %5\nIF %6,  psrl%1 mw, %2 - %6\n    %if V2\nIF %6,  vpsll%1 mw2, mx2, %2 - (%6)\nIF %5,  vpsll%1 mz2, mx2, %2 - (%6+%5)\nIF %4,  vpsll%1 my2, mx2, %2 - (%6+%5+%4)\n        psrl%1 mx2, %4+%5+%6\nIF %4,  psrl%1 my2, %2 - %4\nIF %5,  psrl%1 mz2, %2 - %5\nIF %6,  psrl%1 mw2, %2 - %6\n    %endif\n        CONTINUE\n%endmacro", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:15", "text": "%macro shuffle 0\nop shuffle\n        VBROADCASTI128 m8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\n%if V2\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Clearing\n\n%macro clear_alpha 3 ; idx, vreg, vreg2\nop clear_alpha%1\n        LOAD_CONT tmp0q\n        pcmpeqb %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n%macro clear_zero 3 ; idx, vreg, vreg2\nop clear_zero%1\n        LOAD_CONT tmp0q\n        pxor %2, %2\nIF V2,  mova %3, %2\n        CONTINUE tmp0q\n%endmacro\n\n; note: the pattern is inverted for these functions; i.e. X=1 implies that we\n; *keep* the X component, not that we clear it\n%macro clear_generic 0\nop clear\n            LOAD_CONT tmp0q\n%if avx_enabled\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !avx_enabled\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:16", "text": "LOAD_CONT tmp0q\n%if avx_enabled\n    IF !X,  vpbroadcastd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  vpbroadcastd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  vpbroadcastd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  vpbroadcastd mw, [implq + SwsOpImpl.priv + 12]\n%else ; !avx_enabled\n    IF !X,  movd mx, [implq + SwsOpImpl.priv + 0]\n    IF !Y,  movd my, [implq + SwsOpImpl.priv + 4]\n    IF !Z,  movd mz, [implq + SwsOpImpl.priv + 8]\n    IF !W,  movd mw, [implq + SwsOpImpl.priv + 12]\n    IF !X,  pshufd mx, mx, 0\n    IF !Y,  pshufd my, my, 0\n    IF !Z,  pshufd mz, mz, 0\n    IF !W,  pshufd mw, mw, 0\n%endif\n%if V2\n    IF !X,  mova mx2, mx\n    IF !Y,  mova my2, my\n    IF !Z,  mova mz2, mz\n    IF !W,  mova mw2, mw\n%endif\n            CONTINUE tmp0q\n%endmacro\n\n%macro clear_funcs 0\n        decl_pattern 1, 1, 1, 0, clear_generic\n        decl_pattern 0, 1, 1, 1, clear_generic\n        decl_pattern 0, 0, 1, 1, clear_generic\n        decl_pattern 1, 0, 0, 1, clear_generic\n        decl_pattern 1, 1, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 1, clear_generic\n        decl_pattern 1, 0, 1, 0, clear_generic\n        decl_pattern 1, 0, 0, 0, clear_generic\n        decl_pattern 0, 1, 0, 0, clear_generic\n        decl_pattern 0, 0, 1, 0, clear_generic\n%endmacro\n\n;---------------------------------------------------------\n; Swizzling and duplicating\n\n; mA := mB, mB := mC, ... mX := mA across both halves\n%macro vrotate 2-* ; A, B, C, ...\n    %rep %0\n        %assign rot_a %1 + 4\n        %assign rot_b %2 + 4\n        mova m%1, m%2\n        IF V2, mova m%[rot_a], m%[rot_b]\n    %rotate 1\n    %endrep\n    %undef rot_a\n    %undef rot_b\n%endmacro\n\n%macro swizzle_funcs 0\nop swizzle_3012\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3, 2, 1\n    CONTINUE tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:19", "text": "op swizzle_0213\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2\n    CONTINUE tmp0q\n\nop swizzle_0231\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 2, 3\n    CONTINUE tmp0q\n\nop swizzle_0312\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3, 2\n    CONTINUE tmp0q\n\nop swizzle_3120\n    LOAD_CONT tmp0q\n    vrotate 8, 0, 3\n    CONTINUE tmp0q\n\nop swizzle_0321\n    LOAD_CONT tmp0q\n    vrotate 8, 1, 3\n    CONTINUE tmp0q\n\nop swizzle_0003\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_0001\n    LOAD_CONT tmp0q\n    mova mw, my\n    mova mz, mx\n    mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:20", "text": "mova my, mx\n%if V2\n    mova mw2, my2\n    mova mz2, mx2\n    mova my2, mx2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_3000\n    LOAD_CONT tmp0q\n    mova my, mx\n    mova mz, mx\n    mova mx, mw\n    mova mw, my\n%if V2\n    mova my2, mx2\n    mova mz2, mx2\n    mova mx2, mw2\n    mova mw2, my2\n%endif\n    CONTINUE tmp0q\n\nop swizzle_1000\n    LOAD_CONT tmp0q\n    mova mz, mx\n    mova mw, mx\n    mova mx, my\n    mova my, mz\n%if V2\n    mova mz2, mx2\n    mova mw2, mx2\n    mova mx2, my2\n    mova my2, mz2\n%endif\n    CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Pixel type conversions\n\n%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if avx_enabled\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:21", "text": "%macro conv8to16 1 ; type\nop %1_U8_U16\n            LOAD_CONT tmp0q\n%if V2\n    %if avx_enabled\n    IF X,   vextracti128 xmx2, mx, 1\n    IF Y,   vextracti128 xmy2, my, 1\n    IF Z,   vextracti128 xmz2, mz, 1\n    IF W,   vextracti128 xmw2, mw, 1\n    %else\n    IF X,   psrldq xmx2, mx, 8\n    IF Y,   psrldq xmy2, my, 8\n    IF Z,   psrldq xmz2, mz, 8\n    IF W,   psrldq xmw2, mw, 8\n    %endif\n    IF X,   pmovzxbw mx2, xmx2\n    IF Y,   pmovzxbw my2, xmy2\n    IF Z,   pmovzxbw mz2, xmz2\n    IF W,   pmovzxbw mw2, xmw2\n%endif ; V2\n    IF X,   pmovzxbw mx, xmx\n    IF Y,   pmovzxbw my, xmy\n    IF Z,   pmovzxbw mz, xmz\n    IF W,   pmovzxbw mw, xmw\n\n%ifidn %1, expand\n            VBROADCASTI128 m8, [expand16_shuf]\n    %if V2\n    IF X,   pshufb mx2, m8\n    IF Y,   pshufb my2, m8\n    IF Z,   pshufb mz2, m8\n    IF W,   pshufb mw2, m8\n    %endif\n    IF X,   pshufb mx, m8\n    IF Y,   pshufb my, m8\n    IF Z,   pshufb mz, m8\n    IF W,   pshufb mw, m8\n%endif ; expand\n            CONTINUE tmp0q\n%endmacro\n\n%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:22", "text": "%macro conv16to8 0\nop convert_U16_U8\n        LOAD_CONT tmp0q\n%if V2\n        ; this code technically works for the !V2 case as well, but slower\nIF X,   packuswb mx, mx2\nIF Y,   packuswb my, my2\nIF Z,   packuswb mz, mz2\nIF W,   packuswb mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n%else\nIF X,   vextracti128  xm8, mx, 1\nIF Y,   vextracti128  xm9, my, 1\nIF Z,   vextracti128 xm10, mz, 1\nIF W,   vextracti128 xm11, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xm8\nIF Y,   packuswb xmy, xm9\nIF Z,   packuswb xmz, xm10\nIF W,   packuswb xmw, xm11\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv8to32 1 ; type\nop %1_U8_U32\n        LOAD_CONT tmp0q\nIF X,   psrldq xmx2, xmx, 8\nIF Y,   psrldq xmy2, xmy, 8\nIF Z,   psrldq xmz2, xmz, 8\nIF W,   psrldq xmw2, xmw, 8\nIF X,   pmovzxbd mx, xmx\nIF Y,   pmovzxbd my, xmy\nIF Z,   pmovzxbd mz, xmz\nIF W,   pmovzxbd mw, xmw\nIF X,   pmovzxbd mx2, xmx2\nIF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:23", "text": "IF Y,   pmovzxbd my2, xmy2\nIF Z,   pmovzxbd mz2, xmz2\nIF W,   pmovzxbd mw2, xmw2\n%ifidn %1, expand\n        VBROADCASTI128 m8, [expand32_shuf]\nIF X,   pshufb mx, m8\nIF Y,   pshufb my, m8\nIF Z,   pshufb mz, m8\nIF W,   pshufb mw, m8\nIF X,   pshufb mx2, m8\nIF Y,   pshufb my2, m8\nIF Z,   pshufb mz2, m8\nIF W,   pshufb mw2, m8\n%endif ; expand\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to8 0\nop convert_U32_U8\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\n        vzeroupper\nIF X,   packuswb xmx, xmx2\nIF Y,   packuswb xmy, xmy2\nIF Z,   packuswb xmz, xmz2\nIF W,   packuswb xmw, xmw2\nIF X,   vpshufd xmx, xmx, q3120\nIF Y,   vpshufd xmy, xmy, q3120\nIF Z,   vpshufd xmz, xmz, q3120\nIF W,   vpshufd xmw, xmw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:24", "text": "%macro conv16to32 0\nop convert_U16_U32\n        LOAD_CONT tmp0q\nIF X,   vextracti128 xmx2, mx, 1\nIF Y,   vextracti128 xmy2, my, 1\nIF Z,   vextracti128 xmz2, mz, 1\nIF W,   vextracti128 xmw2, mw, 1\nIF X,   pmovzxwd mx, xmx\nIF Y,   pmovzxwd my, xmy\nIF Z,   pmovzxwd mz, xmz\nIF W,   pmovzxwd mw, xmw\nIF X,   pmovzxwd mx2, xmx2\nIF Y,   pmovzxwd my2, xmy2\nIF Z,   pmovzxwd mz2, xmz2\nIF W,   pmovzxwd mw2, xmw2\n        CONTINUE tmp0q\n%endmacro\n\n%macro conv32to16 0\nop convert_U32_U16\n        LOAD_CONT tmp0q\nIF X,   packusdw mx, mx2\nIF Y,   packusdw my, my2\nIF Z,   packusdw mz, mz2\nIF W,   packusdw mw, mw2\nIF X,   vpermq mx, mx, q3120\nIF Y,   vpermq my, my, q3120\nIF Z,   vpermq mz, mz, q3120\nIF W,   vpermq mw, mw, q3120\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Shifting\n\n%macro lshift16 0\nop lshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psllw mx, xm8\nIF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:25", "text": "IF Y,   psllw my, xm8\nIF Z,   psllw mz, xm8\nIF W,   psllw mw, xm8\n%if V2\nIF X,   psllw mx2, xm8\nIF Y,   psllw my2, xm8\nIF Z,   psllw mz2, xm8\nIF W,   psllw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n%macro rshift16 0\nop rshift16\n        vmovq xm8, [implq + SwsOpImpl.priv]\n        LOAD_CONT tmp0q\nIF X,   psrlw mx, xm8\nIF Y,   psrlw my, xm8\nIF Z,   psrlw mz, xm8\nIF W,   psrlw mw, xm8\n%if V2\nIF X,   psrlw mx2, xm8\nIF Y,   psrlw my2, xm8\nIF Z,   psrlw mz2, xm8\nIF W,   psrlw mw2, xm8\n%endif\n        CONTINUE tmp0q\n%endmacro\n\n;---------------------------------------------------------\n; Macro instantiations for kernel functions\n\n%macro funcs_u8 0\n    read_planar 1\n    read_planar 2\n    read_planar 3\n    read_planar 4\n    write_planar 1\n    write_planar 2\n    write_planar 3\n    write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 961, "line_end": 1020}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:26", "text": "write_planar 4\n\n    rw_packed 8\n    read_nibbles\n    read_bits\n    write_bits\n\n    pack_generic 1, 2, 1\n    pack_generic 3, 3, 2\n    pack_generic 2, 3, 3\n    unpack8 1, 2, 1\n    unpack8 3, 3, 2\n    unpack8 2, 3, 3\n\n    clear_alpha 0, mx, mx2\n    clear_alpha 1, my, my2\n    clear_alpha 3, mw, mw2\n    clear_zero  0, mx, mx2\n    clear_zero  1, my, my2\n    clear_zero  3, mw, mw2\n    clear_funcs\n    swizzle_funcs\n\n    decl_common_patterns shuffle\n%endmacro\n\n%macro funcs_u16 0\n    rw_packed 16\n    pack_generic  4, 4, 4\n    pack_generic  5, 5, 5\n    pack_generic  5, 6, 5\n    unpack w, 16, 4, 4, 4\n    unpack w, 16, 5, 5, 5\n    unpack w, 16, 5, 6, 5\n    decl_common_patterns conv8to16 convert\n    decl_common_patterns conv8to16 expand\n    decl_common_patterns conv16to8\n    decl_common_patterns lshift16\n    decl_common_patterns rshift16\n%endmacro\n\nINIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 1001, "line_end": 1060}
{"id": "FFmpeg/FFmpeg:libswscale/x86/ops_int.asm:27", "text": "INIT_XMM sse4\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\n\nINIT_YMM avx2\ndecl_v2 0, funcs_u8\ndecl_v2 1, funcs_u8\ndecl_v2 0, funcs_u16\ndecl_v2 1, funcs_u16\n\nINIT_YMM avx2\ndecl_v2 1, rw_packed 32\ndecl_v2 1, pack_generic  10, 10, 10,  2\ndecl_v2 1, pack_generic   2, 10, 10, 10\ndecl_v2 1, unpack d, 32, 10, 10, 10,  2\ndecl_v2 1, unpack d, 32,  2, 10, 10, 10\ndecl_common_patterns conv8to32 convert\ndecl_common_patterns conv8to32 expand\ndecl_common_patterns conv32to8\ndecl_common_patterns conv16to32\ndecl_common_patterns conv32to16", "arch": "x86_64", "syntax": "masm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/ops_int.asm", "license": "LGPL-2.1", "commit": "982d3a98d0247e933783c14df5b3dfb4441769c6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/982d3a98d0247e933783c14df5b3dfb4441769c6/libswscale/x86/ops_int.asm", "line_start": 1041, "line_end": 1062}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:1", "text": ";******************************************************************************\n;* x86-optimized vertical line scaling functions\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*                    Kieran Kunhya <kieran@kunhya.com>\n;*           (c) 2020 Nelson Gomez <nelson.gomez@microsoft.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\nminshort:      times 8 dw 0x8000\nyuv2yuvX_16_start:  times 4 dd 0x4000 - 0x40000000\nyuv2yuvX_10_start:  times 4 dd 0x10000\nyuv2yuvX_9_start:   times 4 dd 0x20000\nyuv2yuvX_10_upper:  times 8 dw 0x3ff\nyuv2yuvX_9_upper:   times 8 dw 0x1ff\npd_4:          times 4 dd 4\npd_4min0x40000:times 4 dd 4 - (0x40000)\npw_16:         times 8 dw 16\npw_32:         times 8 dw 32\npd_255:        times 8 dd 255\npw_512:        times 8 dw 512\npw_1024:       times 8 dw 1024\npd_65535_invf:             times 8 dd 0x37800080 ;1.0/65535.0\npd_yuv2gbrp16_start:       times 8 dd -0x40000000\npd_yuv2gbrp_y_start:       times 8 dd  (1 << 9)\npd_yuv2gbrp_uv_start:      times 8 dd  ((1 << 9) - (128 << 19))\npd_yuv2gbrp_a_start:       times 8 dd  (1 << 18)\npd_yuv2gbrp16_offset:      times 8 dd  0x10000  ;(1 << 16)\npd_yuv2gbrp16_round13:     times 8 dd  0xE0002000  ;(1 << 13) - (1 << 29)\npd_yuv2gbrp16_a_offset:    times 8 dd  0x20002000\npd_yuv2gbrp16_upper30:     times 8 dd  0x3FFFFFFF ;(1<<30) - 1\npd_yuv2gbrp16_upper27:     times 8 dd  0x07FFFFFF ;(1<<27) - 1\npd_yuv2gbrp16_upper16:     times 8 dd  0x0000FFFF ;(1<<16) - 1\npd_yuv2gbrp16_upperC:      times 8 dd  0xC0000000\npd_yuv2gbrp_debias:        times 8 dd  0x00008000 ;(1 << 29 - 14)\npb_pack_shuffle8:       db  0,  4,  8, 12, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                            0,  4,  8, 12, \\\n                           -1, -1, -1, -1, \\", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:2", "text": "pd_65535_invf:             times 8 dd 0x37800080 ;1.0/65535.0\npd_yuv2gbrp16_start:       times 8 dd -0x40000000\npd_yuv2gbrp_y_start:       times 8 dd  (1 << 9)\npd_yuv2gbrp_uv_start:      times 8 dd  ((1 << 9) - (128 << 19))\npd_yuv2gbrp_a_start:       times 8 dd  (1 << 18)\npd_yuv2gbrp16_offset:      times 8 dd  0x10000  ;(1 << 16)\npd_yuv2gbrp16_round13:     times 8 dd  0xE0002000  ;(1 << 13) - (1 << 29)\npd_yuv2gbrp16_a_offset:    times 8 dd  0x20002000\npd_yuv2gbrp16_upper30:     times 8 dd  0x3FFFFFFF ;(1<<30) - 1\npd_yuv2gbrp16_upper27:     times 8 dd  0x07FFFFFF ;(1<<27) - 1\npd_yuv2gbrp16_upper16:     times 8 dd  0x0000FFFF ;(1<<16) - 1\npd_yuv2gbrp16_upperC:      times 8 dd  0xC0000000\npd_yuv2gbrp_debias:        times 8 dd  0x00008000 ;(1 << 29 - 14)\npb_pack_shuffle8:       db  0,  4,  8, 12, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                            0,  4,  8, 12, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1\npb_pack_shuffle16le:    db  0,  1,  4,  5, \\\n                            8,  9, 12, 13, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                            0,  1,  4,  5, \\\n                            8,  9, 12, 13\npb_pack_shuffle16be:    db  1,  0,  5,  4, \\\n                            9,  8, 13, 12, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                           -1, -1, -1, -1, \\\n                            1,  0,  5,  4, \\\n                            9,  8, 13, 12\npb_shuffle32be:         db  3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12, \\\n                            3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12\nyuv2nv12_shuffle_mask: times 2 db 0,  4,  8, 12, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv21_shuffle_mask: times 2 db 4,  0, 12,  8, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv12_permute_mask: dd 0, 4, 1, 2, 3, 5, 6, 7\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; vertical line scaling\n;", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:3", "text": "15, 14, 13, 12, \\\n                            3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12\nyuv2nv12_shuffle_mask: times 2 db 0,  4,  8, 12, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv21_shuffle_mask: times 2 db 4,  0, 12,  8, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv12_permute_mask: dd 0, 4, 1, 2, 3, 5, 6, 7\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; vertical line scaling\n;\n; void yuv2plane1_<output_size>_<opt>(const int16_t *src, uint8_t *dst, int dstW,\n;                                     const uint8_t *dither, int offset)\n; and\n; void yuv2planeX_<output_size>_<opt>(const int16_t *filter, int filterSize,\n;                                     const int16_t **src, uint8_t *dst, int dstW,\n;                                     const uint8_t *dither, int offset)\n;\n; Scale one or $filterSize lines of source data to generate one line of output\n; data. The input is 15 bits in int16_t if $output_size is [8,10] and 19 bits in\n; int32_t if $output_size is 16. $filter is 12 bits. $filterSize is a multiple\n; of 2. $offset is either 0 or 3. $dither holds 8 values.\n;-----------------------------------------------------------------------------\n%macro yuv2planeX_mainloop 2\n.pixelloop_%2:\n%if %1 == 8\n%if ARCH_X86_32\n    mova            m2, [rsp]\n    mova            m1, [rsp+mmsize]\n%else ; x86-64\n    mova            m2,  m8\n    mova            m1,  m_dith\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    mova            m1, [yuv2yuvX_%1_start]\n    mova            m2,  m1\n%endif ; %1 == 8/9/10/16\n%if ARCH_X86_32 && !HAVE_ALIGNED_STACK && (%1 == 8)\n    mov       cntr_reg, [rsp+32]\n%else\n    movsx     cntr_reg,  fltsizem\n%endif\n.filterloop_%2:\n    ; input pixels\n    mov             r6, [srcq+gprsize*cntr_reg-2*gprsize]\n%if %1 == 16\n    mova            m3, [r6+r5*4]\n    mova            m5, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m3, [r6+r5*2]\n%endif ; %1 == 8/9/10/16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:4", "text": "mova            m1,  m_dith\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    mova            m1, [yuv2yuvX_%1_start]\n    mova            m2,  m1\n%endif ; %1 == 8/9/10/16\n%if ARCH_X86_32 && !HAVE_ALIGNED_STACK && (%1 == 8)\n    mov       cntr_reg, [rsp+32]\n%else\n    movsx     cntr_reg,  fltsizem\n%endif\n.filterloop_%2:\n    ; input pixels\n    mov             r6, [srcq+gprsize*cntr_reg-2*gprsize]\n%if %1 == 16\n    mova            m3, [r6+r5*4]\n    mova            m5, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m3, [r6+r5*2]\n%endif ; %1 == 8/9/10/16\n    mov             r6, [srcq+gprsize*cntr_reg-gprsize]\n%if %1 == 16\n    mova            m4, [r6+r5*4]\n    mova            m6, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m4, [r6+r5*2]\n%endif ; %1 == 8/9/10/16\n\n    ; coefficients\n    movd            m0, [filterq+2*cntr_reg-4] ; coeff[0], coeff[1]\n%if %1 == 16\n    pshuflw         m7,  m0,  0          ; coeff[0]\n    pshuflw         m0,  m0,  0x55       ; coeff[1]\n    pmovsxwd        m7,  m7              ; word -> dword\n    pmovsxwd        m0,  m0              ; word -> dword\n\n    pmulld          m3,  m7\n    pmulld          m5,  m7\n    pmulld          m4,  m0\n    pmulld          m6,  m0\n\n    paddd           m2,  m3\n    paddd           m1,  m5\n    paddd           m2,  m4\n    paddd           m1,  m6\n%else ; %1 == 10/9/8\n    punpcklwd       m5,  m3,  m4\n    punpckhwd       m3,  m4\n    SPLATD          m0\n\n    pmaddwd         m5,  m0\n    pmaddwd         m3,  m0\n\n    paddd           m2,  m5\n    paddd           m1,  m3\n%endif ; %1 == 8/9/10/16\n\n    sub       cntr_reg,  2\n    jg .filterloop_%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:5", "text": "paddd           m2,  m3\n    paddd           m1,  m5\n    paddd           m2,  m4\n    paddd           m1,  m6\n%else ; %1 == 10/9/8\n    punpcklwd       m5,  m3,  m4\n    punpckhwd       m3,  m4\n    SPLATD          m0\n\n    pmaddwd         m5,  m0\n    pmaddwd         m3,  m0\n\n    paddd           m2,  m5\n    paddd           m1,  m3\n%endif ; %1 == 8/9/10/16\n\n    sub       cntr_reg,  2\n    jg .filterloop_%2\n\n%if %1 == 16\n    psrad           m2,  31 - %1\n    psrad           m1,  31 - %1\n%else ; %1 == 10/9/8\n    psrad           m2,  27 - %1\n    psrad           m1,  27 - %1\n%endif ; %1 == 8/9/10/16\n\n%if %1 == 8\n    packssdw        m2,  m1\n    packuswb        m2,  m2\n    movh   [dstq+r5*1],  m2\n%else ; %1 == 9/10/16\n%if %1 == 16\n    packssdw        m2,  m1\n    paddw           m2, [minshort]\n%else ; %1 == 9/10\n%if cpuflag(sse4)\n    packusdw        m2,  m1\n%else ; sse2\n    packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16\n\n    add             r5,  mmsize/2\n    sub             wd,  mmsize/2\n\n    jg .pixelloop_%2\n%endmacro\n\n%macro yuv2planeX_fn 3\n\n%if ARCH_X86_32\n%define cntr_reg fltsizeq\n%define movsx mov\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:6", "text": "packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16\n\n    add             r5,  mmsize/2\n    sub             wd,  mmsize/2\n\n    jg .pixelloop_%2\n%endmacro\n\n%macro yuv2planeX_fn 3\n\n%if ARCH_X86_32\n%define cntr_reg fltsizeq\n%define movsx mov\n%else\n%define cntr_reg r7\n%define movsx movsxd\n%endif\n\n%if %1 == 8\n%assign STACK_SIZE ARCH_X86_32*(32+mmsize*!HAVE_ALIGNED_STACK)\n%else\n%assign STACK_SIZE 0\n%endif\n\ncglobal yuv2planeX_%1, %3, 8, %2, -STACK_SIZE, filter, fltsize, src, dst, w, dither, offset\n%if %1 == 8 || %1 == 9 || %1 == 10\n    pxor            m6,  m6\n%endif ; %1 == 8/9/10\n\n%if %1 == 8\n%if ARCH_X86_32\n%if !HAVE_ALIGNED_STACK\n    ; For 8-bit content on x86-32 we need the stack for both vector and GP regs.\n    ; If the stack is not suitably aligned, then x86inc aligns it for us, but\n    ; we can then no longer access the original location of fltsize, so copy\n    ; it here at a known offset of rsp.\n    mov       [rsp+32], fltsized\n%endif\n\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq  m_dith,  m_dith\n    psrldq      m_dith,  3\n.no_rot:\n    punpcklbw   m_dith,  m6\n%if ARCH_X86_64\n    punpcklwd       m8,  m_dith,  m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:7", "text": "; we can then no longer access the original location of fltsize, so copy\n    ; it here at a known offset of rsp.\n    mov       [rsp+32], fltsized\n%endif\n\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq  m_dith,  m_dith\n    psrldq      m_dith,  3\n.no_rot:\n    punpcklbw   m_dith,  m6\n%if ARCH_X86_64\n    punpcklwd       m8,  m_dith,  m6\n    pslld           m8,  12\n%else ; x86-32\n    punpcklwd       m5,  m_dith,  m6\n    pslld           m5,  12\n%endif ; x86-32/64\n    punpckhwd   m_dith,  m6\n    pslld       m_dith,  12\n%if ARCH_X86_32\n    mova      [rsp+ 0],  m5\n    mova      [rsp+16],  m_dith\n%endif\n%endif ; %1 == 8\n\n    xor             r5,  r5\n\n%if %1 == 8\n    yuv2planeX_mainloop %1, a\n%else ; %1 != 8\n    test          dstq, 15\n    jnz .unaligned\n    yuv2planeX_mainloop %1, a\n    RET\n.unaligned:\n    yuv2planeX_mainloop %1, u\n%endif ; %1 == 8\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:8", "text": "yuv2planeX_mainloop %1, a\n    RET\n.unaligned:\n    yuv2planeX_mainloop %1, u\n%endif ; %1 == 8\n\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n%endif\n\n; %1=outout-bpc, %2=alignment (u/a)\n%macro yuv2plane1_mainloop 2\n.loop_%2:\n%if %1 == 8\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m3, [srcq+wq*2+mmsize*1]\n    psraw           m0, 7\n    psraw           m1, 7\n    packuswb        m0, m1\n    mov%2    [dstq+wq], m0\n%elif %1 == 16\n    paddd           m0, m4, [srcq+wq*4+mmsize*0]\n    paddd           m1, m4, [srcq+wq*4+mmsize*1]\n    paddd           m2, m4, [srcq+wq*4+mmsize*2]\n    paddd           m3, m4, [srcq+wq*4+mmsize*3]\n    psrad           m0, 3\n    psrad           m1, 3\n    psrad           m2, 3\n    psrad           m3, 3\n%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:9", "text": "paddd           m2, m4, [srcq+wq*4+mmsize*2]\n    paddd           m3, m4, [srcq+wq*4+mmsize*3]\n    psrad           m0, 3\n    psrad           m1, 3\n    psrad           m2, 3\n    psrad           m3, 3\n%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]\n    psraw           m0, 15 - %1\n    psraw           m1, 15 - %1\n    pmaxsw          m0, m4\n    pmaxsw          m1, m4\n    pminsw          m0, m3\n    pminsw          m1, m3\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m1\n%endif\n    add             wq, mmsize\n    jl .loop_%2\n%endmacro\n\n%macro yuv2plane1_fn 3\ncglobal yuv2plane1_%1, %3, %3, %2, src, dst, w, dither, offset\n    movsxdifnidn    wq, wd\n    add             wq, mmsize - 1\n    and             wq, ~(mmsize - 1)\n%if %1 == 8\n    add           dstq, wq\n%else ; %1 != 8\n    lea           dstq, [dstq+wq*2]\n%endif ; %1 == 8\n%if %1 == 16\n    lea           srcq, [srcq+wq*4]\n%else ; %1 != 16\n    lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:10", "text": "%else ; %1 != 8\n    lea           dstq, [dstq+wq*2]\n%endif ; %1 == 8\n%if %1 == 16\n    lea           srcq, [srcq+wq*4]\n%else ; %1 != 16\n    lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:\n    punpcklbw       m3, m4\n    mova            m2, m3\n%elif %1 == 9\n    pxor            m4, m4\n    mova            m3, [pw_512]\n    mova            m2, [pw_32]\n%elif %1 == 10\n    pxor            m4, m4\n    mova            m3, [pw_1024]\n    mova            m2, [pw_16]\n%else ; %1 == 16\n%if cpuflag(sse4) ; sse4/avx\n    mova            m4, [pd_4]\n%else ; sse2\n    mova            m4, [pd_4min0x40000]\n    mova            m5, [minshort]\n%endif ; sse2/sse4/avx\n%endif ; %1 == ..\n\n    ; actual pixel scaling\n    test          dstq, 15\n    jnz .unaligned\n    yuv2plane1_mainloop %1, a\n    RET\n.unaligned:\n    yuv2plane1_mainloop %1, u\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:11", "text": "test          dstq, 15\n    jnz .unaligned\n    yuv2plane1_mainloop %1, a\n    RET\n.unaligned:\n    yuv2plane1_mainloop %1, u\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 5, 3\n%endif\n\n%undef movsx\n\n;-----------------------------------------------------------------------------\n; AVX2 yuv2nv12cX implementation\n;\n; void ff_yuv2nv12cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;\n; void ff_yuv2nv21cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\n%macro yuv2nv12cX_fn 1\ncglobal %1cX, 8, 11, 13, tmp1, dither, filter, filterSize, u, v, dst, dstWidth\n\n    mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:12", "text": ";-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\n%macro yuv2nv12cX_fn 1\ncglobal %1cX, 8, 11, 13, tmp1, dither, filter, filterSize, u, v, dst, dstWidth\n\n    mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask\n\n    DEFINE_ARGS tmp1, tmp2, filter, filterSize, u, v, dst, dstWidth\n\n    xor r8q, r8q\n\nnv12_outer_%1:\n    mova m2, m0                             ; resultLo\n    mova m3, m1                             ; resultHi\n    xor r9q, r9q\n\nnv12_inner_%1:\n    movsx r10d, word [filterq + (2 * r9q)]\n    movd xm4, r10d\n    vpbroadcastd m4, xm4                    ; filter\n\n    mov tmp1q, [uq + (gprsize * r9q)]\n    mova xm7, oword [tmp1q + 2 * r8q]\n\n    mov tmp2q, [vq + (gprsize * r9q)]\n    mova xm8, oword [tmp2q + 2 * r8q]\n\n    punpcklwd xm5, xm7, xm8\n    pmovsxwd m5, xm5                        ; multiplicandsLo\n    punpckhwd xm6, xm7, xm8\n    pmovsxwd m6, xm6                        ; multiplicandsHi\n\n    pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:13", "text": "punpcklwd xm5, xm7, xm8\n    pmovsxwd m5, xm5                        ; multiplicandsLo\n    punpckhwd xm6, xm7, xm8\n    pmovsxwd m6, xm6                        ; multiplicandsHi\n\n    pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:\n    ;     m2: u1  0  0  0  v1  0  0  0  [...]\n    ;     m3: u5  0  0  0  v5  0  0  0  [...]\n    ;\n    ; First, we shuffle the bytes to make the bytes semi-contiguous.\n    ; AVX-2 doesn't have cross-lane shuffling, so we'll end up with:\n    ;     m2: u1  v1  u2  v2  0  0  0  0  0  0  0  0  u3  v3  u4  v4\n    ;     m3: u5  v5  u6  v6  0  0  0  0  0  0  0  0  u7  v7  u8  v8\n    pshufb m2, m2, m11\n    pshufb m3, m3, m11\n\n    ; To fix the cross-lane shuffling issue, we'll then use cross-lane\n    ; permutation to combine the two segments\n    vpermd m2, m12, m2\n    vpermd m3, m12, m3\n\n    ; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:14", "text": "; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40348 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5\n%else\n    pxor %1, m4\n    pand %1, m5\n    pxor %1, m4\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro LOAD16 2\n    %if cpuflag(avx2)\n        movu xm%1, %2\n        vpmovsxwd m%1, xm%1\n    %elif cpuflag(sse4)\n        movsd m%1, %2\n        pmovsxwd m%1, m%1\n    %else\n        movsd m%1, %2\n        punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:16", "text": "vpmovsxwd m%1, xm%1\n    %elif cpuflag(sse4)\n        movsd m%1, %2\n        pmovsxwd m%1, m%1\n    %else\n        movsd m%1, %2\n        punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro STORE8 2\n    mov ptrq, %1\n    %if mmsize > 16\n        pshufb m%2, [pb_pack_shuffle8]\n        vextractf128 xm4, m%2, 1\n        por xm%2, xm4\n        movq [ptrq + xq], xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle8]\n        %else\n            psrldq m4, m%2, 3\n            por m%2, m4\n            psrldq m4, m%2, 6\n            por m%2, m4\n        %endif\n        movd [ptrq + xq], m%2\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:17", "text": "%endif\n        movd [ptrq + xq], m%2\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %elif cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n            %if %3 ; bigendian\n                psrlw  m4, m%2, 8\n                psllw  m%2, 8\n                por m%2, m4\n            %endif\n        %endif\n        movq [ptrq + xq*2], m%2\n    %endif\n%endmacro\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb m%1, [pb_shuffle32be]\n%else\n    psrlw  m4, m%1, 8\n    psllw  m%1, 8\n    por m%1, m4\n    pshuflw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:18", "text": "%else\n    psrlw  m4, m%1, 8\n    psllw  m%1, 8\n    por m%1, m4\n    pshuflw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2\n%elif %3 > 8\n    STORE16 %1, %2, %4\n%else\n    STORE8 %1, %2\n%endif\n%endmacro\n\n%macro PMULLO 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld %1, %2, %3\n%else\n    %ifidni %1, %2\n    %else\n        mova %1, %2\n    %endif\n    pshufd m7, %1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pshufd m8, %3, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pmuludq m7, m8\n    pshufd  m7, m7, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    pmuludq %1, %3\n    pshufd  %1, %1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    punpckldq %1, m7\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:19", "text": "pshufd  %1, %1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    punpckldq %1, m7\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19\n%endif\n\n%if DEPTH >= 16\n    %define YUV_SHIFT 14\n    %define Y_START  m9\n    %define Y_ROUND [pd_yuv2gbrp16_round13]\n    %define UV_START m9\n    %define A_START  m9\n    %define A_CLIP2P 30\n%else\n    %define YUV_SHIFT 10\n    %define Y_START  [pd_yuv2gbrp_y_start]\n    %define Y_ROUND  m9\n    %define UV_START [pd_yuv2gbrp_uv_start]\n    %define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsInternal.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:20", "text": "%define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsInternal.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:\n            movsx ptrd, word [lumFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, lumSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            paddd Y, m1\n            inc jd\n            cmp jd, lumFilterSized\n            jl %%loop_luma\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:21", "text": "je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            PMULLO m2, m2, m0\n            paddd U, m1\n            paddd V, m2\n            inc jd\n            cmp jd, chrFilterSized\n            jl %%loop_chr\n\n        psrad Y, YUV_SHIFT\n%if  DEPTH >= 16\n        paddd Y, [pd_yuv2gbrp16_offset]\n%endif\n        psrad U, YUV_SHIFT\n        psrad V, YUV_SHIFT\n\n        psubd  Y, m10    ; yuv2rgb_y_offset\n        PMULLO Y, Y, m11 ; yuv2rgb_y_coeff\n        paddd  Y, Y_ROUND\n\n        PMULLO R, V, m12 ; yuv2rgb_v2r_coeff\n        PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:22", "text": "psubd  Y, m10    ; yuv2rgb_y_offset\n        PMULLO Y, Y, m11 ; yuv2rgb_y_coeff\n        paddd  Y, Y_ROUND\n\n        PMULLO R, V, m12 ; yuv2rgb_v2r_coeff\n        PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif\n\n        psrad R, RGB_SHIFT\n        psrad G, RGB_SHIFT\n        psrad B, RGB_SHIFT\n\n%if  DEPTH >= 16\n        paddd R, [pd_yuv2gbrp_debias]\n        paddd G, [pd_yuv2gbrp_debias]\n        paddd B, [pd_yuv2gbrp_debias]\n\n        CLIPP2 R, 16\n        CLIPP2 G, 16\n        CLIPP2 B, 16\n%endif\n\n%if FLOAT\n        cvtdq2ps R, R\n        cvtdq2ps G, G\n        cvtdq2ps B, B\n        mulps R, [pd_65535_invf]\n        mulps G, [pd_65535_invf]\n        mulps B, [pd_65535_invf]\n%endif\n        STORE_PIXELS [destq +  0], 1, DEPTH, IS_BE ; G\n        STORE_PIXELS [destq +  8], 2, DEPTH, IS_BE ; B\n        STORE_PIXELS [destq + 16], 0, DEPTH, IS_BE ; R\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:23", "text": "mulps G, [pd_65535_invf]\n        mulps B, [pd_65535_invf]\n%endif\n        STORE_PIXELS [destq +  0], 1, DEPTH, IS_BE ; G\n        STORE_PIXELS [destq +  8], 2, DEPTH, IS_BE ; B\n        STORE_PIXELS [destq + 16], 0, DEPTH, IS_BE ; R\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4\n        cmp xd, dstWd\n        jl %%loop_x\n\n    RET\n%endmacro\n\n%macro yuv2gbrp_fn_decl 2\nINIT_%1 %2\nyuv2gbrp_fn gbrp,        8, 0, 0, 0\nyuv2gbrp_fn gbrap,       8, 1, 0, 0\nyuv2gbrp_fn gbrp9le,     9, 0, 0, 0\nyuv2gbrp_fn gbrp10le,   10, 0, 0, 0\nyuv2gbrp_fn gbrap10le,  10, 1, 0, 0\nyuv2gbrp_fn gbrp12le,   12, 0, 0, 0\nyuv2gbrp_fn gbrap12le,  12, 1, 0, 0\nyuv2gbrp_fn gbrp14le,   14, 0, 0, 0\nyuv2gbrp_fn gbrp16le,   16, 0, 0, 0\nyuv2gbrp_fn gbrap16le,  16, 1, 0, 0\nyuv2gbrp_fn gbrpf32le,  32, 0, 0, 1\nyuv2gbrp_fn gbrapf32le, 32, 1, 0, 1\n\nyuv2gbrp_fn gbrp9be,     9, 0, 1, 0\nyuv2gbrp_fn gbrp10be,   10, 0, 1, 0\nyuv2gbrp_fn gbrap10be,  10, 1, 1, 0\nyuv2gbrp_fn gbrp12be,   12, 0, 1, 0\nyuv2gbrp_fn gbrap12be,  12, 1, 1, 0\nyuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:24", "text": "yuv2gbrp_fn gbrp9be,     9, 0, 1, 0\nyuv2gbrp_fn gbrp10be,   10, 0, 1, 0\nyuv2gbrp_fn gbrap10be,  10, 1, 1, 0\nyuv2gbrp_fn gbrp12be,   12, 0, 1, 0\nyuv2gbrp_fn gbrap12be,  12, 1, 1, 0\nyuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/output.asm", "line_start": 921, "line_end": 941}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:3", "text": "15, 14, 13, 12, \\\n                            3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12\nyuv2nv12_shuffle_mask: times 2 db 0,  4,  8, 12, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv21_shuffle_mask: times 2 db 4,  0, 12,  8, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv12_permute_mask: dd 0, 4, 1, 2, 3, 5, 6, 7\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; vertical line scaling\n;\n; void yuv2plane1_<output_size>_<opt>(const int16_t *src, uint8_t *dst, int dstW,\n;                                     const uint8_t *dither, int offset)\n; and\n; void yuv2planeX_<output_size>_<opt>(const int16_t *filter, int filterSize,\n;                                     const int16_t **src, uint8_t *dst, int dstW,\n;                                     const uint8_t *dither, int offset)\n;\n; Scale one or $filterSize lines of source data to generate one line of output\n; data. The input is 15 bits in int16_t if $output_size is [8,10] and 19 bits in\n; int32_t if $output_size is 16. $filter is 12 bits. $filterSize is a multiple\n; of 2. $offset is either 0 or 3. $dither holds 8 values.\n;-----------------------------------------------------------------------------\n%macro yuv2planeX_mainloop 2\n.pixelloop_%2:\n%assign %%i 0\n    ; the rep here is for the 8-bit output MMX case, where dither covers\n    ; 8 pixels but we can only handle 2 pixels per register, and thus 4\n    ; pixels per iteration. In order to not have to keep track of where\n    ; we are w.r.t. dithering, we unroll the MMX/8-bit loop x2.\n%if %1 == 8\n%assign %%repcnt 16/mmsize\n%else\n%assign %%repcnt 1\n%endif\n\n%rep %%repcnt\n\n%if %1 == 8\n%if ARCH_X86_32\n    mova            m2, [rsp+mmsize*(0+%%i)]\n    mova            m1, [rsp+mmsize*(1+%%i)]\n%else ; x86-64\n    mova            m2,  m8\n    mova            m1,  m_dith\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    mova            m1, [yuv2yuvX_%1_start]\n    mova            m2,  m1\n%endif ; %1 == 8/9/10/16\n%if ARCH_X86_32 && !HAVE_ALIGNED_STACK && (%1 == 8)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:4", "text": "%assign %%repcnt 16/mmsize\n%else\n%assign %%repcnt 1\n%endif\n\n%rep %%repcnt\n\n%if %1 == 8\n%if ARCH_X86_32\n    mova            m2, [rsp+mmsize*(0+%%i)]\n    mova            m1, [rsp+mmsize*(1+%%i)]\n%else ; x86-64\n    mova            m2,  m8\n    mova            m1,  m_dith\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    mova            m1, [yuv2yuvX_%1_start]\n    mova            m2,  m1\n%endif ; %1 == 8/9/10/16\n%if ARCH_X86_32 && !HAVE_ALIGNED_STACK && (%1 == 8)\n    mov       cntr_reg, [rsp+32]\n%else\n    movsx     cntr_reg,  fltsizem\n%endif\n.filterloop_%2_ %+ %%i:\n    ; input pixels\n    mov             r6, [srcq+gprsize*cntr_reg-2*gprsize]\n%if %1 == 16\n    mova            m3, [r6+r5*4]\n    mova            m5, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m3, [r6+r5*2]\n%endif ; %1 == 8/9/10/16\n    mov             r6, [srcq+gprsize*cntr_reg-gprsize]\n%if %1 == 16\n    mova            m4, [r6+r5*4]\n    mova            m6, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m4, [r6+r5*2]\n%endif ; %1 == 8/9/10/16\n\n    ; coefficients\n    movd            m0, [filterq+2*cntr_reg-4] ; coeff[0], coeff[1]\n%if %1 == 16\n    pshuflw         m7,  m0,  0          ; coeff[0]\n    pshuflw         m0,  m0,  0x55       ; coeff[1]\n    pmovsxwd        m7,  m7              ; word -> dword\n    pmovsxwd        m0,  m0              ; word -> dword\n\n    pmulld          m3,  m7\n    pmulld          m5,  m7\n    pmulld          m4,  m0\n    pmulld          m6,  m0\n\n    paddd           m2,  m3\n    paddd           m1,  m5\n    paddd           m2,  m4\n    paddd           m1,  m6\n%else ; %1 == 10/9/8\n    punpcklwd       m5,  m3,  m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:5", "text": "; coefficients\n    movd            m0, [filterq+2*cntr_reg-4] ; coeff[0], coeff[1]\n%if %1 == 16\n    pshuflw         m7,  m0,  0          ; coeff[0]\n    pshuflw         m0,  m0,  0x55       ; coeff[1]\n    pmovsxwd        m7,  m7              ; word -> dword\n    pmovsxwd        m0,  m0              ; word -> dword\n\n    pmulld          m3,  m7\n    pmulld          m5,  m7\n    pmulld          m4,  m0\n    pmulld          m6,  m0\n\n    paddd           m2,  m3\n    paddd           m1,  m5\n    paddd           m2,  m4\n    paddd           m1,  m6\n%else ; %1 == 10/9/8\n    punpcklwd       m5,  m3,  m4\n    punpckhwd       m3,  m4\n    SPLATD          m0\n\n    pmaddwd         m5,  m0\n    pmaddwd         m3,  m0\n\n    paddd           m2,  m5\n    paddd           m1,  m3\n%endif ; %1 == 8/9/10/16\n\n    sub       cntr_reg,  2\n    jg .filterloop_%2_ %+ %%i\n\n%if %1 == 16\n    psrad           m2,  31 - %1\n    psrad           m1,  31 - %1\n%else ; %1 == 10/9/8\n    psrad           m2,  27 - %1\n    psrad           m1,  27 - %1\n%endif ; %1 == 8/9/10/16\n\n%if %1 == 8\n    packssdw        m2,  m1\n    packuswb        m2,  m2\n    movh   [dstq+r5*1],  m2\n%else ; %1 == 9/10/16\n%if %1 == 16\n    packssdw        m2,  m1\n    paddw           m2, [minshort]\n%else ; %1 == 9/10\n%if cpuflag(sse4)\n    packusdw        m2,  m1\n%else ; mmxext/sse2\n    packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; mmxext/sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:6", "text": "%if %1 == 8\n    packssdw        m2,  m1\n    packuswb        m2,  m2\n    movh   [dstq+r5*1],  m2\n%else ; %1 == 9/10/16\n%if %1 == 16\n    packssdw        m2,  m1\n    paddw           m2, [minshort]\n%else ; %1 == 9/10\n%if cpuflag(sse4)\n    packusdw        m2,  m1\n%else ; mmxext/sse2\n    packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; mmxext/sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16\n\n    add             r5,  mmsize/2\n    sub             wd,  mmsize/2\n\n%assign %%i %%i+2\n%endrep\n    jg .pixelloop_%2\n%endmacro\n\n%macro yuv2planeX_fn 3\n\n%if ARCH_X86_32\n%define cntr_reg fltsizeq\n%define movsx mov\n%else\n%define cntr_reg r7\n%define movsx movsxd\n%endif\n\n%if %1 == 8\n%assign STACK_SIZE ARCH_X86_32*(32+mmsize*!HAVE_ALIGNED_STACK)\n%else\n%assign STACK_SIZE 0\n%endif\n\ncglobal yuv2planeX_%1, %3, 8, %2, -STACK_SIZE, filter, fltsize, src, dst, w, dither, offset\n%if %1 == 8 || %1 == 9 || %1 == 10\n    pxor            m6,  m6\n%endif ; %1 == 8/9/10\n\n%if %1 == 8\n%if ARCH_X86_32\n%if !HAVE_ALIGNED_STACK\n    ; For 8-bit content on x86-32 we need the stack for both vector and GP regs.\n    ; If the stack is not suitably aligned, then x86inc aligns it for us, but\n    ; we can then no longer access the original location of fltsize, so copy\n    ; it here at a known offset of rsp.\n    mov       [rsp+32], fltsized\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:7", "text": "%assign STACK_SIZE ARCH_X86_32*(32+mmsize*!HAVE_ALIGNED_STACK)\n%else\n%assign STACK_SIZE 0\n%endif\n\ncglobal yuv2planeX_%1, %3, 8, %2, -STACK_SIZE, filter, fltsize, src, dst, w, dither, offset\n%if %1 == 8 || %1 == 9 || %1 == 10\n    pxor            m6,  m6\n%endif ; %1 == 8/9/10\n\n%if %1 == 8\n%if ARCH_X86_32\n%if !HAVE_ALIGNED_STACK\n    ; For 8-bit content on x86-32 we need the stack for both vector and GP regs.\n    ; If the stack is not suitably aligned, then x86inc aligns it for us, but\n    ; we can then no longer access the original location of fltsize, so copy\n    ; it here at a known offset of rsp.\n    mov       [rsp+32], fltsized\n%endif\n\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n%if mmsize == 16\n    punpcklqdq  m_dith,  m_dith\n    psrldq      m_dith,  3\n%else\n    PALIGNR     m_dith,  m_dith,  3,  m0\n%endif ; mmsize == 16\n.no_rot:\n%if mmsize == 16\n    punpcklbw   m_dith,  m6\n%if ARCH_X86_64\n    punpcklwd       m8,  m_dith,  m6\n    pslld           m8,  12\n%else ; x86-32\n    punpcklwd       m5,  m_dith,  m6\n    pslld           m5,  12\n%endif ; x86-32/64\n    punpckhwd   m_dith,  m6\n    pslld       m_dith,  12\n%if ARCH_X86_32\n    mova      [rsp+ 0],  m5\n    mova      [rsp+16],  m_dith\n%endif\n%else ; mmsize == 8\n    punpcklbw       m5,  m_dith,  m6\n    punpckhbw   m_dith,  m6\n    punpcklwd       m4,  m5,  m6\n    punpckhwd       m5,  m6\n    punpcklwd       m3,  m_dith,  m6\n    punpckhwd   m_dith,  m6\n    pslld           m4,  12\n    pslld           m5,  12", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:8", "text": "pslld           m8,  12\n%else ; x86-32\n    punpcklwd       m5,  m_dith,  m6\n    pslld           m5,  12\n%endif ; x86-32/64\n    punpckhwd   m_dith,  m6\n    pslld       m_dith,  12\n%if ARCH_X86_32\n    mova      [rsp+ 0],  m5\n    mova      [rsp+16],  m_dith\n%endif\n%else ; mmsize == 8\n    punpcklbw       m5,  m_dith,  m6\n    punpckhbw   m_dith,  m6\n    punpcklwd       m4,  m5,  m6\n    punpckhwd       m5,  m6\n    punpcklwd       m3,  m_dith,  m6\n    punpckhwd   m_dith,  m6\n    pslld           m4,  12\n    pslld           m5,  12\n    pslld           m3,  12\n    pslld       m_dith,  12\n    mova      [rsp+ 0],  m4\n    mova      [rsp+ 8],  m5\n    mova      [rsp+16],  m3\n    mova      [rsp+24],  m_dith\n%endif ; mmsize == 8/16\n%endif ; %1 == 8\n\n    xor             r5,  r5\n\n%if mmsize == 8 || %1 == 8\n    yuv2planeX_mainloop %1, a\n%else ; mmsize == 16\n    test          dstq, 15\n    jnz .unaligned\n    yuv2planeX_mainloop %1, a\n    RET\n.unaligned:\n    yuv2planeX_mainloop %1, u\n%endif ; mmsize == 8/16\n\n    RET\n%endmacro\n\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nyuv2planeX_fn  8,  0, 7\n%endif\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:9", "text": "%endif ; mmsize == 8/16\n\n    RET\n%endmacro\n\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nyuv2planeX_fn  8,  0, 7\n%endif\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n%endif\n\n; %1=outout-bpc, %2=alignment (u/a)\n%macro yuv2plane1_mainloop 2\n.loop_%2:\n%if %1 == 8\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m3, [srcq+wq*2+mmsize*1]\n    psraw           m0, 7\n    psraw           m1, 7\n    packuswb        m0, m1\n    mov%2    [dstq+wq], m0\n%elif %1 == 16\n    paddd           m0, m4, [srcq+wq*4+mmsize*0]\n    paddd           m1, m4, [srcq+wq*4+mmsize*1]\n    paddd           m2, m4, [srcq+wq*4+mmsize*2]\n    paddd           m3, m4, [srcq+wq*4+mmsize*3]\n    psrad           m0, 3\n    psrad           m1, 3\n    psrad           m2, 3\n    psrad           m3, 3\n%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; mmx/sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; mmx/sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:10", "text": "paddd           m1, m4, [srcq+wq*4+mmsize*1]\n    paddd           m2, m4, [srcq+wq*4+mmsize*2]\n    paddd           m3, m4, [srcq+wq*4+mmsize*3]\n    psrad           m0, 3\n    psrad           m1, 3\n    psrad           m2, 3\n    psrad           m3, 3\n%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; mmx/sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; mmx/sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]\n    psraw           m0, 15 - %1\n    psraw           m1, 15 - %1\n    pmaxsw          m0, m4\n    pmaxsw          m1, m4\n    pminsw          m0, m3\n    pminsw          m1, m3\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m1\n%endif\n    add             wq, mmsize\n    jl .loop_%2\n%endmacro\n\n%macro yuv2plane1_fn 3\ncglobal yuv2plane1_%1, %3, %3, %2, src, dst, w, dither, offset\n    movsxdifnidn    wq, wd\n    add             wq, mmsize - 1\n    and             wq, ~(mmsize - 1)\n%if %1 == 8\n    add           dstq, wq\n%else ; %1 != 8\n    lea           dstq, [dstq+wq*2]\n%endif ; %1 == 8\n%if %1 == 16\n    lea           srcq, [srcq+wq*4]\n%else ; %1 != 16\n    lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:11", "text": "add           dstq, wq\n%else ; %1 != 8\n    lea           dstq, [dstq+wq*2]\n%endif ; %1 == 8\n%if %1 == 16\n    lea           srcq, [srcq+wq*4]\n%else ; %1 != 16\n    lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:\n    punpcklbw       m3, m4\n    mova            m2, m3\n%elif %1 == 9\n    pxor            m4, m4\n    mova            m3, [pw_512]\n    mova            m2, [pw_32]\n%elif %1 == 10\n    pxor            m4, m4\n    mova            m3, [pw_1024]\n    mova            m2, [pw_16]\n%else ; %1 == 16\n%if cpuflag(sse4) ; sse4/avx\n    mova            m4, [pd_4]\n%else ; sse2\n    mova            m4, [pd_4min0x40000]\n    mova            m5, [minshort]\n%endif ; sse2/sse4/avx\n%endif ; %1 == ..\n\n    ; actual pixel scaling\n    test          dstq, 15\n    jnz .unaligned\n    yuv2plane1_mainloop %1, a\n    RET\n.unaligned:\n    yuv2plane1_mainloop %1, u\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:12", "text": "; actual pixel scaling\n    test          dstq, 15\n    jnz .unaligned\n    yuv2plane1_mainloop %1, a\n    RET\n.unaligned:\n    yuv2plane1_mainloop %1, u\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 5, 3\n%endif\n\n%undef movsx\n\n;-----------------------------------------------------------------------------\n; AVX2 yuv2nv12cX implementation\n;\n; void ff_yuv2nv12cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;\n; void ff_yuv2nv21cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\n%macro yuv2nv12cX_fn 1\ncglobal %1cX, 8, 11, 13, tmp1, dither, filter, filterSize, u, v, dst, dstWidth\n\n    mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:13", "text": ";                         uint8_t *dst, int dstWidth)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\n%macro yuv2nv12cX_fn 1\ncglobal %1cX, 8, 11, 13, tmp1, dither, filter, filterSize, u, v, dst, dstWidth\n\n    mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask\n\n    DEFINE_ARGS tmp1, tmp2, filter, filterSize, u, v, dst, dstWidth\n\n    xor r8q, r8q\n\nnv12_outer_%1:\n    mova m2, m0                             ; resultLo\n    mova m3, m1                             ; resultHi\n    xor r9q, r9q\n\nnv12_inner_%1:\n    movsx r10d, word [filterq + (2 * r9q)]\n    movd xm4, r10d\n    vpbroadcastd m4, xm4                    ; filter\n\n    mov tmp1q, [uq + (gprsize * r9q)]\n    mova xm7, oword [tmp1q + 2 * r8q]\n\n    mov tmp2q, [vq + (gprsize * r9q)]\n    mova xm8, oword [tmp2q + 2 * r8q]\n\n    punpcklwd xm5, xm7, xm8\n    pmovsxwd m5, xm5                        ; multiplicandsLo\n    punpckhwd xm6, xm7, xm8\n    pmovsxwd m6, xm6                        ; multiplicandsHi\n\n    pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:14", "text": "mova xm8, oword [tmp2q + 2 * r8q]\n\n    punpcklwd xm5, xm7, xm8\n    pmovsxwd m5, xm5                        ; multiplicandsLo\n    punpckhwd xm6, xm7, xm8\n    pmovsxwd m6, xm6                        ; multiplicandsHi\n\n    pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:\n    ;     m2: u1  0  0  0  v1  0  0  0  [...]\n    ;     m3: u5  0  0  0  v5  0  0  0  [...]\n    ;\n    ; First, we shuffle the bytes to make the bytes semi-contiguous.\n    ; AVX-2 doesn't have cross-lane shuffling, so we'll end up with:\n    ;     m2: u1  v1  u2  v2  0  0  0  0  0  0  0  0  u3  v3  u4  v4\n    ;     m3: u5  v5  u6  v6  0  0  0  0  0  0  0  0  u7  v7  u8  v8\n    pshufb m2, m2, m11\n    pshufb m3, m3, m11\n\n    ; To fix the cross-lane shuffling issue, we'll then use cross-lane\n    ; permutation to combine the two segments\n    vpermd m2, m12, m2\n    vpermd m3, m12, m3\n\n    ; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "vpermd m3, m12, m3\n\n    ; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40348 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:16", "text": "endstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5\n%else\n    pxor %1, m4\n    pand %1, m5\n    pxor %1, m4\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro LOAD16 2\n    %if cpuflag(avx2)\n        movu xm%1, %2\n        vpmovsxwd m%1, xm%1\n    %elif cpuflag(sse4)\n        movsd m%1, %2\n        pmovsxwd m%1, m%1\n    %else\n        movsd m%1, %2\n        punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:17", "text": "movu xm%1, %2\n        vpmovsxwd m%1, xm%1\n    %elif cpuflag(sse4)\n        movsd m%1, %2\n        pmovsxwd m%1, m%1\n    %else\n        movsd m%1, %2\n        punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro STORE8 2\n    mov ptrq, %1\n    %if mmsize > 16\n        pshufb m%2, [pb_pack_shuffle8]\n        vextractf128 xm4, m%2, 1\n        por xm%2, xm4\n        movq [ptrq + xq], xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle8]\n        %else\n            psrldq m4, m%2, 3\n            por m%2, m4\n            psrldq m4, m%2, 6\n            por m%2, m4\n        %endif\n        movd [ptrq + xq], m%2\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:18", "text": "por m%2, m4\n        %endif\n        movd [ptrq + xq], m%2\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %elif cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n            %if %3 ; bigendian\n                psrlw  m4, m%2, 8\n                psllw  m%2, 8\n                por m%2, m4\n            %endif\n        %endif\n        movq [ptrq + xq*2], m%2\n    %endif\n%endmacro\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb m%1, [pb_shuffle32be]\n%else\n    psrlw  m4, m%1, 8\n    psllw  m%1, 8\n    por m%1, m4\n    pshuflw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:19", "text": "pshufb m%1, [pb_shuffle32be]\n%else\n    psrlw  m4, m%1, 8\n    psllw  m%1, 8\n    por m%1, m4\n    pshuflw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2\n%elif %3 > 8\n    STORE16 %1, %2, %4\n%else\n    STORE8 %1, %2\n%endif\n%endmacro\n\n%macro PMULLO 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld %1, %2, %3\n%else\n    %ifidni %1, %2\n    %else\n        mova %1, %2\n    %endif\n    pshufd m7, %1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pshufd m8, %3, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pmuludq m7, m8\n    pshufd  m7, m7, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    pmuludq %1, %3\n    pshufd  %1, %1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    punpckldq %1, m7\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:20", "text": "pmuludq %1, %3\n    pshufd  %1, %1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    punpckldq %1, m7\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19\n%endif\n\n%if DEPTH >= 16\n    %define YUV_SHIFT 14\n    %define Y_START  m9\n    %define Y_ROUND [pd_yuv2gbrp16_round13]\n    %define UV_START m9\n    %define A_START  m9\n    %define A_CLIP2P 30\n%else\n    %define YUV_SHIFT 10\n    %define Y_START  [pd_yuv2gbrp_y_start]\n    %define Y_ROUND  m9\n    %define UV_START [pd_yuv2gbrp_uv_start]\n    %define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsInternal.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:21", "text": "%define UV_START [pd_yuv2gbrp_uv_start]\n    %define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsInternal.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:\n            movsx ptrd, word [lumFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, lumSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            paddd Y, m1\n            inc jd\n            cmp jd, lumFilterSized\n            jl %%loop_luma\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:22", "text": "cmp alpSrcxq, 0\n        je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            PMULLO m2, m2, m0\n            paddd U, m1\n            paddd V, m2\n            inc jd\n            cmp jd, chrFilterSized\n            jl %%loop_chr\n\n        psrad Y, YUV_SHIFT\n%if  DEPTH >= 16\n        paddd Y, [pd_yuv2gbrp16_offset]\n%endif\n        psrad U, YUV_SHIFT\n        psrad V, YUV_SHIFT\n\n        psubd  Y, m10    ; yuv2rgb_y_offset\n        PMULLO Y, Y, m11 ; yuv2rgb_y_coeff\n        paddd  Y, Y_ROUND\n\n        PMULLO R, V, m12 ; yuv2rgb_v2r_coeff\n        PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:23", "text": "psrad V, YUV_SHIFT\n\n        psubd  Y, m10    ; yuv2rgb_y_offset\n        PMULLO Y, Y, m11 ; yuv2rgb_y_coeff\n        paddd  Y, Y_ROUND\n\n        PMULLO R, V, m12 ; yuv2rgb_v2r_coeff\n        PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif\n\n        psrad R, RGB_SHIFT\n        psrad G, RGB_SHIFT\n        psrad B, RGB_SHIFT\n\n%if  DEPTH >= 16\n        paddd R, [pd_yuv2gbrp_debias]\n        paddd G, [pd_yuv2gbrp_debias]\n        paddd B, [pd_yuv2gbrp_debias]\n\n        CLIPP2 R, 16\n        CLIPP2 G, 16\n        CLIPP2 B, 16\n%endif\n\n%if FLOAT\n        cvtdq2ps R, R\n        cvtdq2ps G, G\n        cvtdq2ps B, B\n        mulps R, [pd_65535_invf]\n        mulps G, [pd_65535_invf]\n        mulps B, [pd_65535_invf]\n%endif\n        STORE_PIXELS [destq +  0], 1, DEPTH, IS_BE ; G\n        STORE_PIXELS [destq +  8], 2, DEPTH, IS_BE ; B\n        STORE_PIXELS [destq + 16], 0, DEPTH, IS_BE ; R\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:24", "text": "mulps R, [pd_65535_invf]\n        mulps G, [pd_65535_invf]\n        mulps B, [pd_65535_invf]\n%endif\n        STORE_PIXELS [destq +  0], 1, DEPTH, IS_BE ; G\n        STORE_PIXELS [destq +  8], 2, DEPTH, IS_BE ; B\n        STORE_PIXELS [destq + 16], 0, DEPTH, IS_BE ; R\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4\n        cmp xd, dstWd\n        jl %%loop_x\n\n    RET\n%endmacro\n\n%macro yuv2gbrp_fn_decl 2\nINIT_%1 %2\nyuv2gbrp_fn gbrp,        8, 0, 0, 0\nyuv2gbrp_fn gbrap,       8, 1, 0, 0\nyuv2gbrp_fn gbrp9le,     9, 0, 0, 0\nyuv2gbrp_fn gbrp10le,   10, 0, 0, 0\nyuv2gbrp_fn gbrap10le,  10, 1, 0, 0\nyuv2gbrp_fn gbrp12le,   12, 0, 0, 0\nyuv2gbrp_fn gbrap12le,  12, 1, 0, 0\nyuv2gbrp_fn gbrp14le,   14, 0, 0, 0\nyuv2gbrp_fn gbrp16le,   16, 0, 0, 0\nyuv2gbrp_fn gbrap16le,  16, 1, 0, 0\nyuv2gbrp_fn gbrpf32le,  32, 0, 0, 1\nyuv2gbrp_fn gbrapf32le, 32, 1, 0, 1\n\nyuv2gbrp_fn gbrp9be,     9, 0, 1, 0\nyuv2gbrp_fn gbrp10be,   10, 0, 1, 0\nyuv2gbrp_fn gbrap10be,  10, 1, 1, 0\nyuv2gbrp_fn gbrp12be,   12, 0, 1, 0\nyuv2gbrp_fn gbrap12be,  12, 1, 1, 0\nyuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 921, "line_end": 980}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:25", "text": "yuv2gbrp_fn gbrapf32le, 32, 1, 0, 1\n\nyuv2gbrp_fn gbrp9be,     9, 0, 1, 0\nyuv2gbrp_fn gbrp10be,   10, 0, 1, 0\nyuv2gbrp_fn gbrap10be,  10, 1, 1, 0\nyuv2gbrp_fn gbrp12be,   12, 0, 1, 0\nyuv2gbrp_fn gbrap12be,  12, 1, 1, 0\nyuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "8a7c1f7fb8d70337e736e72cdc1e8edf4981e307", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a7c1f7fb8d70337e736e72cdc1e8edf4981e307/libswscale/x86/output.asm", "line_start": 961, "line_end": 982}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:3", "text": "15, 14, 13, 12, \\\n                            3,  2,  1,  0, \\\n                            7,  6,  5,  4, \\\n                           11, 10,  9,  8, \\\n                           15, 14, 13, 12\nyuv2nv12_shuffle_mask: times 2 db 0,  4,  8, 12, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv21_shuffle_mask: times 2 db 4,  0, 12,  8, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1, \\\n                                 -1, -1, -1, -1\nyuv2nv12_permute_mask: dd 0, 4, 1, 2, 3, 5, 6, 7\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; vertical line scaling\n;\n; void yuv2plane1_<output_size>_<opt>(const int16_t *src, uint8_t *dst, int dstW,\n;                                     const uint8_t *dither, int offset)\n; and\n; void yuv2planeX_<output_size>_<opt>(const int16_t *filter, int filterSize,\n;                                     const int16_t **src, uint8_t *dst, int dstW,\n;                                     const uint8_t *dither, int offset)\n;\n; Scale one or $filterSize lines of source data to generate one line of output\n; data. The input is 15 bits in int16_t if $output_size is [8,10] and 19 bits in\n; int32_t if $output_size is 16. $filter is 12 bits. $filterSize is a multiple\n; of 2. $offset is either 0 or 3. $dither holds 8 values.\n;-----------------------------------------------------------------------------\n%macro yuv2planeX_mainloop 2\n.pixelloop_%2:\n%assign %%i 0\n    ; the rep here is for the 8-bit output MMX case, where dither covers\n    ; 8 pixels but we can only handle 2 pixels per register, and thus 4\n    ; pixels per iteration. In order to not have to keep track of where\n    ; we are w.r.t. dithering, we unroll the MMX/8-bit loop x2.\n%if %1 == 8\n%assign %%repcnt 16/mmsize\n%else\n%assign %%repcnt 1\n%endif\n\n%rep %%repcnt\n\n%if %1 == 8\n%if ARCH_X86_32\n    mova            m2, [rsp+mmsize*(0+%%i)]\n    mova            m1, [rsp+mmsize*(1+%%i)]\n%else ; x86-64\n    mova            m2,  m8\n    mova            m1,  m_dith\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    mova            m1, [yuv2yuvX_%1_start]\n    mova            m2,  m1\n%endif ; %1 == 8/9/10/16\n    movsx     cntr_reg,  fltsizem", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:4", "text": "%assign %%repcnt 16/mmsize\n%else\n%assign %%repcnt 1\n%endif\n\n%rep %%repcnt\n\n%if %1 == 8\n%if ARCH_X86_32\n    mova            m2, [rsp+mmsize*(0+%%i)]\n    mova            m1, [rsp+mmsize*(1+%%i)]\n%else ; x86-64\n    mova            m2,  m8\n    mova            m1,  m_dith\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    mova            m1, [yuv2yuvX_%1_start]\n    mova            m2,  m1\n%endif ; %1 == 8/9/10/16\n    movsx     cntr_reg,  fltsizem\n.filterloop_%2_ %+ %%i:\n    ; input pixels\n    mov             r6, [srcq+gprsize*cntr_reg-2*gprsize]\n%if %1 == 16\n    mova            m3, [r6+r5*4]\n    mova            m5, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m3, [r6+r5*2]\n%endif ; %1 == 8/9/10/16\n    mov             r6, [srcq+gprsize*cntr_reg-gprsize]\n%if %1 == 16\n    mova            m4, [r6+r5*4]\n    mova            m6, [r6+r5*4+mmsize]\n%else ; %1 == 8/9/10\n    mova            m4, [r6+r5*2]\n%endif ; %1 == 8/9/10/16\n\n    ; coefficients\n    movd            m0, [filterq+2*cntr_reg-4] ; coeff[0], coeff[1]\n%if %1 == 16\n    pshuflw         m7,  m0,  0          ; coeff[0]\n    pshuflw         m0,  m0,  0x55       ; coeff[1]\n    pmovsxwd        m7,  m7              ; word -> dword\n    pmovsxwd        m0,  m0              ; word -> dword\n\n    pmulld          m3,  m7\n    pmulld          m5,  m7\n    pmulld          m4,  m0\n    pmulld          m6,  m0\n\n    paddd           m2,  m3\n    paddd           m1,  m5\n    paddd           m2,  m4\n    paddd           m1,  m6\n%else ; %1 == 10/9/8\n    punpcklwd       m5,  m3,  m4\n    punpckhwd       m3,  m4\n    SPLATD          m0\n\n    pmaddwd         m5,  m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:5", "text": "pshuflw         m7,  m0,  0          ; coeff[0]\n    pshuflw         m0,  m0,  0x55       ; coeff[1]\n    pmovsxwd        m7,  m7              ; word -> dword\n    pmovsxwd        m0,  m0              ; word -> dword\n\n    pmulld          m3,  m7\n    pmulld          m5,  m7\n    pmulld          m4,  m0\n    pmulld          m6,  m0\n\n    paddd           m2,  m3\n    paddd           m1,  m5\n    paddd           m2,  m4\n    paddd           m1,  m6\n%else ; %1 == 10/9/8\n    punpcklwd       m5,  m3,  m4\n    punpckhwd       m3,  m4\n    SPLATD          m0\n\n    pmaddwd         m5,  m0\n    pmaddwd         m3,  m0\n\n    paddd           m2,  m5\n    paddd           m1,  m3\n%endif ; %1 == 8/9/10/16\n\n    sub       cntr_reg,  2\n    jg .filterloop_%2_ %+ %%i\n\n%if %1 == 16\n    psrad           m2,  31 - %1\n    psrad           m1,  31 - %1\n%else ; %1 == 10/9/8\n    psrad           m2,  27 - %1\n    psrad           m1,  27 - %1\n%endif ; %1 == 8/9/10/16\n\n%if %1 == 8\n    packssdw        m2,  m1\n    packuswb        m2,  m2\n    movh   [dstq+r5*1],  m2\n%else ; %1 == 9/10/16\n%if %1 == 16\n    packssdw        m2,  m1\n    paddw           m2, [minshort]\n%else ; %1 == 9/10\n%if cpuflag(sse4)\n    packusdw        m2,  m1\n%else ; mmxext/sse2\n    packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; mmxext/sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16\n\n    add             r5,  mmsize/2\n    sub             wd,  mmsize/2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:6", "text": "movh   [dstq+r5*1],  m2\n%else ; %1 == 9/10/16\n%if %1 == 16\n    packssdw        m2,  m1\n    paddw           m2, [minshort]\n%else ; %1 == 9/10\n%if cpuflag(sse4)\n    packusdw        m2,  m1\n%else ; mmxext/sse2\n    packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; mmxext/sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16\n\n    add             r5,  mmsize/2\n    sub             wd,  mmsize/2\n\n%assign %%i %%i+2\n%endrep\n    jg .pixelloop_%2\n%endmacro\n\n%macro yuv2planeX_fn 3\n\n%if ARCH_X86_32\n%define cntr_reg fltsizeq\n%define movsx mov\n%else\n%define cntr_reg r7\n%define movsx movsxd\n%endif\n\ncglobal yuv2planeX_%1, %3, 8, %2, filter, fltsize, src, dst, w, dither, offset\n%if %1 == 8 || %1 == 9 || %1 == 10\n    pxor            m6,  m6\n%endif ; %1 == 8/9/10\n\n%if %1 == 8\n%if ARCH_X86_32\n%assign pad 0x2c - (stack_offset & 15)\n    SUB             rsp, pad\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n%if mmsize == 16\n    punpcklqdq  m_dith,  m_dith\n    psrldq      m_dith,  3\n%else\n    PALIGNR     m_dith,  m_dith,  3,  m0\n%endif ; mmsize == 16\n.no_rot:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:7", "text": "%if %1 == 8\n%if ARCH_X86_32\n%assign pad 0x2c - (stack_offset & 15)\n    SUB             rsp, pad\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n%if mmsize == 16\n    punpcklqdq  m_dith,  m_dith\n    psrldq      m_dith,  3\n%else\n    PALIGNR     m_dith,  m_dith,  3,  m0\n%endif ; mmsize == 16\n.no_rot:\n%if mmsize == 16\n    punpcklbw   m_dith,  m6\n%if ARCH_X86_64\n    punpcklwd       m8,  m_dith,  m6\n    pslld           m8,  12\n%else ; x86-32\n    punpcklwd       m5,  m_dith,  m6\n    pslld           m5,  12\n%endif ; x86-32/64\n    punpckhwd   m_dith,  m6\n    pslld       m_dith,  12\n%if ARCH_X86_32\n    mova      [rsp+ 0],  m5\n    mova      [rsp+16],  m_dith\n%endif\n%else ; mmsize == 8\n    punpcklbw       m5,  m_dith,  m6\n    punpckhbw   m_dith,  m6\n    punpcklwd       m4,  m5,  m6\n    punpckhwd       m5,  m6\n    punpcklwd       m3,  m_dith,  m6\n    punpckhwd   m_dith,  m6\n    pslld           m4,  12\n    pslld           m5,  12\n    pslld           m3,  12\n    pslld       m_dith,  12\n    mova      [rsp+ 0],  m4\n    mova      [rsp+ 8],  m5\n    mova      [rsp+16],  m3\n    mova      [rsp+24],  m_dith\n%endif ; mmsize == 8/16\n%endif ; %1 == 8\n\n    xor             r5,  r5\n\n%if mmsize == 8 || %1 == 8\n    yuv2planeX_mainloop %1, a\n%else ; mmsize == 16\n    test          dstq, 15\n    jnz .unaligned", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:8", "text": "punpcklwd       m3,  m_dith,  m6\n    punpckhwd   m_dith,  m6\n    pslld           m4,  12\n    pslld           m5,  12\n    pslld           m3,  12\n    pslld       m_dith,  12\n    mova      [rsp+ 0],  m4\n    mova      [rsp+ 8],  m5\n    mova      [rsp+16],  m3\n    mova      [rsp+24],  m_dith\n%endif ; mmsize == 8/16\n%endif ; %1 == 8\n\n    xor             r5,  r5\n\n%if mmsize == 8 || %1 == 8\n    yuv2planeX_mainloop %1, a\n%else ; mmsize == 16\n    test          dstq, 15\n    jnz .unaligned\n    yuv2planeX_mainloop %1, a\n    RET\n.unaligned:\n    yuv2planeX_mainloop %1, u\n%endif ; mmsize == 8/16\n\n%if %1 == 8\n%if ARCH_X86_32\n    ADD             rsp, pad\n    RET\n%else ; x86-64\n    RET\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    RET\n%endif ; %1 == 8/9/10/16\n%endmacro\n\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nyuv2planeX_fn  8,  0, 7\n%endif\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:9", "text": "yuv2planeX_fn  8,  0, 7\n%endif\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n%endif\n\n; %1=outout-bpc, %2=alignment (u/a)\n%macro yuv2plane1_mainloop 2\n.loop_%2:\n%if %1 == 8\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m3, [srcq+wq*2+mmsize*1]\n    psraw           m0, 7\n    psraw           m1, 7\n    packuswb        m0, m1\n    mov%2    [dstq+wq], m0\n%elif %1 == 16\n    paddd           m0, m4, [srcq+wq*4+mmsize*0]\n    paddd           m1, m4, [srcq+wq*4+mmsize*1]\n    paddd           m2, m4, [srcq+wq*4+mmsize*2]\n    paddd           m3, m4, [srcq+wq*4+mmsize*3]\n    psrad           m0, 3\n    psrad           m1, 3\n    psrad           m2, 3\n    psrad           m3, 3\n%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; mmx/sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; mmx/sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]\n    psraw           m0, 15 - %1\n    psraw           m1, 15 - %1\n    pmaxsw          m0, m4\n    pmaxsw          m1, m4\n    pminsw          m0, m3\n    pminsw          m1, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:10", "text": "%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; mmx/sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; mmx/sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]\n    psraw           m0, 15 - %1\n    psraw           m1, 15 - %1\n    pmaxsw          m0, m4\n    pmaxsw          m1, m4\n    pminsw          m0, m3\n    pminsw          m1, m3\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m1\n%endif\n    add             wq, mmsize\n    jl .loop_%2\n%endmacro\n\n%macro yuv2plane1_fn 3\ncglobal yuv2plane1_%1, %3, %3, %2, src, dst, w, dither, offset\n    movsxdifnidn    wq, wd\n    add             wq, mmsize - 1\n    and             wq, ~(mmsize - 1)\n%if %1 == 8\n    add           dstq, wq\n%else ; %1 != 8\n    lea           dstq, [dstq+wq*2]\n%endif ; %1 == 8\n%if %1 == 16\n    lea           srcq, [srcq+wq*4]\n%else ; %1 != 16\n    lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:\n    punpcklbw       m3, m4\n    mova            m2, m3\n%elif %1 == 9\n    pxor            m4, m4\n    mova            m3, [pw_512]\n    mova            m2, [pw_32]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:11", "text": "lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:\n    punpcklbw       m3, m4\n    mova            m2, m3\n%elif %1 == 9\n    pxor            m4, m4\n    mova            m3, [pw_512]\n    mova            m2, [pw_32]\n%elif %1 == 10\n    pxor            m4, m4\n    mova            m3, [pw_1024]\n    mova            m2, [pw_16]\n%else ; %1 == 16\n%if cpuflag(sse4) ; sse4/avx\n    mova            m4, [pd_4]\n%else ; sse2\n    mova            m4, [pd_4min0x40000]\n    mova            m5, [minshort]\n%endif ; sse2/sse4/avx\n%endif ; %1 == ..\n\n    ; actual pixel scaling\n    test          dstq, 15\n    jnz .unaligned\n    yuv2plane1_mainloop %1, a\n    RET\n.unaligned:\n    yuv2plane1_mainloop %1, u\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 5, 3\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:12", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 5, 3\n%endif\n\n%undef movsx\n\n;-----------------------------------------------------------------------------\n; AVX2 yuv2nv12cX implementation\n;\n; void ff_yuv2nv12cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;\n; void ff_yuv2nv21cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\n%macro yuv2nv12cX_fn 1\ncglobal %1cX, 8, 11, 13, tmp1, dither, filter, filterSize, u, v, dst, dstWidth\n\n    mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask\n\n    DEFINE_ARGS tmp1, tmp2, filter, filterSize, u, v, dst, dstWidth\n\n    xor r8q, r8q\n\nnv12_outer_%1:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:13", "text": "mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask\n\n    DEFINE_ARGS tmp1, tmp2, filter, filterSize, u, v, dst, dstWidth\n\n    xor r8q, r8q\n\nnv12_outer_%1:\n    mova m2, m0                             ; resultLo\n    mova m3, m1                             ; resultHi\n    xor r9q, r9q\n\nnv12_inner_%1:\n    movsx r10d, word [filterq + (2 * r9q)]\n    movd xm4, r10d\n    vpbroadcastd m4, xm4                    ; filter\n\n    mov tmp1q, [uq + (gprsize * r9q)]\n    mova xm7, oword [tmp1q + 2 * r8q]\n\n    mov tmp2q, [vq + (gprsize * r9q)]\n    mova xm8, oword [tmp2q + 2 * r8q]\n\n    punpcklwd xm5, xm7, xm8\n    pmovsxwd m5, xm5                        ; multiplicandsLo\n    punpckhwd xm6, xm7, xm8\n    pmovsxwd m6, xm6                        ; multiplicandsHi\n\n    pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:14", "text": "pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:\n    ;     m2: u1  0  0  0  v1  0  0  0  [...]\n    ;     m3: u5  0  0  0  v5  0  0  0  [...]\n    ;\n    ; First, we shuffle the bytes to make the bytes semi-contiguous.\n    ; AVX-2 doesn't have cross-lane shuffling, so we'll end up with:\n    ;     m2: u1  v1  u2  v2  0  0  0  0  0  0  0  0  u3  v3  u4  v4\n    ;     m3: u5  v5  u6  v6  0  0  0  0  0  0  0  0  u7  v7  u8  v8\n    pshufb m2, m2, m11\n    pshufb m3, m3, m11\n\n    ; To fix the cross-lane shuffling issue, we'll then use cross-lane\n    ; permutation to combine the two segments\n    vpermd m2, m12, m2\n    vpermd m3, m12, m3\n\n    ; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40348 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:16", "text": "%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5\n%else\n    pxor %1, m4\n    pand %1, m5\n    pxor %1, m4\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro LOAD16 2\n    %if cpuflag(avx2)\n        movu xm%1, %2\n        vpmovsxwd m%1, xm%1\n    %elif cpuflag(sse4)\n        movsd m%1, %2\n        pmovsxwd m%1, m%1\n    %else\n        movsd m%1, %2\n        punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro STORE8 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:17", "text": "punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro STORE8 2\n    mov ptrq, %1\n    %if mmsize > 16\n        pshufb m%2, [pb_pack_shuffle8]\n        vextractf128 xm4, m%2, 1\n        por xm%2, xm4\n        movq [ptrq + xq], xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle8]\n        %else\n            psrldq m4, m%2, 3\n            por m%2, m4\n            psrldq m4, m%2, 6\n            por m%2, m4\n        %endif\n        movd [ptrq + xq], m%2\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %elif cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:18", "text": "; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %elif cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n            %if %3 ; bigendian\n                psrlw  m4, m%2, 8\n                psllw  m%2, 8\n                por m%2, m4\n            %endif\n        %endif\n        movq [ptrq + xq*2], m%2\n    %endif\n%endmacro\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb m%1, [pb_shuffle32be]\n%else\n    psrlw  m4, m%1, 8\n    psllw  m%1, 8\n    por m%1, m4\n    pshuflw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2\n%elif %3 > 8\n    STORE16 %1, %2, %4\n%else\n    STORE8 %1, %2\n%endif\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:19", "text": "%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2\n%elif %3 > 8\n    STORE16 %1, %2, %4\n%else\n    STORE8 %1, %2\n%endif\n%endmacro\n\n%macro PMULLO 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld %1, %2, %3\n%else\n    %ifidni %1, %2\n    %else\n        mova %1, %2\n    %endif\n    pshufd m7, %1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pshufd m8, %3, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pmuludq m7, m8\n    pshufd  m7, m7, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    pmuludq %1, %3\n    pshufd  %1, %1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    punpckldq %1, m7\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:20", "text": "; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19\n%endif\n\n%if DEPTH >= 16\n    %define YUV_SHIFT 14\n    %define Y_START  m9\n    %define Y_ROUND [pd_yuv2gbrp16_round13]\n    %define UV_START m9\n    %define A_START  m9\n    %define A_CLIP2P 30\n%else\n    %define YUV_SHIFT 10\n    %define Y_START  [pd_yuv2gbrp_y_start]\n    %define Y_ROUND  m9\n    %define UV_START [pd_yuv2gbrp_uv_start]\n    %define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsInternal.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:21", "text": "VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:\n            movsx ptrd, word [lumFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, lumSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            paddd Y, m1\n            inc jd\n            cmp jd, lumFilterSized\n            jl %%loop_luma\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:22", "text": "VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            PMULLO m2, m2, m0\n            paddd U, m1\n            paddd V, m2\n            inc jd\n            cmp jd, chrFilterSized\n            jl %%loop_chr\n\n        psrad Y, YUV_SHIFT\n%if  DEPTH >= 16\n        paddd Y, [pd_yuv2gbrp16_offset]\n%endif\n        psrad U, YUV_SHIFT\n        psrad V, YUV_SHIFT\n\n        psubd  Y, m10    ; yuv2rgb_y_offset\n        PMULLO Y, Y, m11 ; yuv2rgb_y_coeff\n        paddd  Y, Y_ROUND\n\n        PMULLO R, V, m12 ; yuv2rgb_v2r_coeff\n        PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif\n\n        psrad R, RGB_SHIFT\n        psrad G, RGB_SHIFT\n        psrad B, RGB_SHIFT\n\n%if  DEPTH >= 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:23", "text": "PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif\n\n        psrad R, RGB_SHIFT\n        psrad G, RGB_SHIFT\n        psrad B, RGB_SHIFT\n\n%if  DEPTH >= 16\n        paddd R, [pd_yuv2gbrp_debias]\n        paddd G, [pd_yuv2gbrp_debias]\n        paddd B, [pd_yuv2gbrp_debias]\n\n        CLIPP2 R, 16\n        CLIPP2 G, 16\n        CLIPP2 B, 16\n%endif\n\n%if FLOAT\n        cvtdq2ps R, R\n        cvtdq2ps G, G\n        cvtdq2ps B, B\n        mulps R, [pd_65535_invf]\n        mulps G, [pd_65535_invf]\n        mulps B, [pd_65535_invf]\n%endif\n        STORE_PIXELS [destq +  0], 1, DEPTH, IS_BE ; G\n        STORE_PIXELS [destq +  8], 2, DEPTH, IS_BE ; B\n        STORE_PIXELS [destq + 16], 0, DEPTH, IS_BE ; R\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4\n        cmp xd, dstWd\n        jl %%loop_x\n\n    RET\n%endmacro", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:24", "text": "%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4\n        cmp xd, dstWd\n        jl %%loop_x\n\n    RET\n%endmacro\n\n%macro yuv2gbrp_fn_decl 2\nINIT_%1 %2\nyuv2gbrp_fn gbrp,        8, 0, 0, 0\nyuv2gbrp_fn gbrap,       8, 1, 0, 0\nyuv2gbrp_fn gbrp9le,     9, 0, 0, 0\nyuv2gbrp_fn gbrp10le,   10, 0, 0, 0\nyuv2gbrp_fn gbrap10le,  10, 1, 0, 0\nyuv2gbrp_fn gbrp12le,   12, 0, 0, 0\nyuv2gbrp_fn gbrap12le,  12, 1, 0, 0\nyuv2gbrp_fn gbrp14le,   14, 0, 0, 0\nyuv2gbrp_fn gbrp16le,   16, 0, 0, 0\nyuv2gbrp_fn gbrap16le,  16, 1, 0, 0\nyuv2gbrp_fn gbrpf32le,  32, 0, 0, 1\nyuv2gbrp_fn gbrapf32le, 32, 1, 0, 1\n\nyuv2gbrp_fn gbrp9be,     9, 0, 1, 0\nyuv2gbrp_fn gbrp10be,   10, 0, 1, 0\nyuv2gbrp_fn gbrap10be,  10, 1, 1, 0\nyuv2gbrp_fn gbrp12be,   12, 0, 1, 0\nyuv2gbrp_fn gbrap12be,  12, 1, 1, 0\nyuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 921, "line_end": 975}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:25", "text": "yuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "0bb161fd0944ee7b2209642d6315dfa9267ebd67", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/0bb161fd0944ee7b2209642d6315dfa9267ebd67/libswscale/x86/output.asm", "line_start": 961, "line_end": 975}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:6", "text": "movh   [dstq+r5*1],  m2\n%else ; %1 == 9/10/16\n%if %1 == 16\n    packssdw        m2,  m1\n    paddw           m2, [minshort]\n%else ; %1 == 9/10\n%if cpuflag(sse4)\n    packusdw        m2,  m1\n%else ; mmxext/sse2\n    packssdw        m2,  m1\n    pmaxsw          m2,  m6\n%endif ; mmxext/sse2/sse4/avx\n    pminsw          m2, [yuv2yuvX_%1_upper]\n%endif ; %1 == 9/10/16\n    mov%2   [dstq+r5*2],  m2\n%endif ; %1 == 8/9/10/16\n\n    add             r5,  mmsize/2\n    sub             wd,  mmsize/2\n\n%assign %%i %%i+2\n%endrep\n    jg .pixelloop_%2\n%endmacro\n\n%macro yuv2planeX_fn 3\n\n%if ARCH_X86_32\n%define cntr_reg fltsizeq\n%define movsx mov\n%else\n%define cntr_reg r7\n%define movsx movsxd\n%endif\n\ncglobal yuv2planeX_%1, %3, 8, %2, filter, fltsize, src, dst, w, dither, offset\n%if %1 == 8 || %1 == 9 || %1 == 10\n    pxor            m6,  m6\n%endif ; %1 == 8/9/10\n\n%if %1 == 8\n%if ARCH_X86_32\n%assign pad 0x2c - (stack_offset & 15)\n    SUB             rsp, pad\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n%if mmsize == 16\n    punpcklqdq  m_dith,  m_dith\n%endif ; mmsize == 16\n    PALIGNR     m_dith,  m_dith,  3,  m0\n.no_rot:\n%if mmsize == 16\n    punpcklbw   m_dith,  m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:7", "text": "%if %1 == 8\n%if ARCH_X86_32\n%assign pad 0x2c - (stack_offset & 15)\n    SUB             rsp, pad\n%define m_dith m7\n%else ; x86-64\n%define m_dith m9\n%endif ; x86-32\n\n    ; create registers holding dither\n    movq        m_dith, [ditherq]        ; dither\n    test        offsetd, offsetd\n    jz              .no_rot\n%if mmsize == 16\n    punpcklqdq  m_dith,  m_dith\n%endif ; mmsize == 16\n    PALIGNR     m_dith,  m_dith,  3,  m0\n.no_rot:\n%if mmsize == 16\n    punpcklbw   m_dith,  m6\n%if ARCH_X86_64\n    punpcklwd       m8,  m_dith,  m6\n    pslld           m8,  12\n%else ; x86-32\n    punpcklwd       m5,  m_dith,  m6\n    pslld           m5,  12\n%endif ; x86-32/64\n    punpckhwd   m_dith,  m6\n    pslld       m_dith,  12\n%if ARCH_X86_32\n    mova      [rsp+ 0],  m5\n    mova      [rsp+16],  m_dith\n%endif\n%else ; mmsize == 8\n    punpcklbw       m5,  m_dith,  m6\n    punpckhbw   m_dith,  m6\n    punpcklwd       m4,  m5,  m6\n    punpckhwd       m5,  m6\n    punpcklwd       m3,  m_dith,  m6\n    punpckhwd   m_dith,  m6\n    pslld           m4,  12\n    pslld           m5,  12\n    pslld           m3,  12\n    pslld       m_dith,  12\n    mova      [rsp+ 0],  m4\n    mova      [rsp+ 8],  m5\n    mova      [rsp+16],  m3\n    mova      [rsp+24],  m_dith\n%endif ; mmsize == 8/16\n%endif ; %1 == 8\n\n    xor             r5,  r5\n\n%if mmsize == 8 || %1 == 8\n    yuv2planeX_mainloop %1, a\n%else ; mmsize == 16\n    test          dstq, 15\n    jnz .unaligned\n    yuv2planeX_mainloop %1, a\n    RET", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:8", "text": "pslld           m4,  12\n    pslld           m5,  12\n    pslld           m3,  12\n    pslld       m_dith,  12\n    mova      [rsp+ 0],  m4\n    mova      [rsp+ 8],  m5\n    mova      [rsp+16],  m3\n    mova      [rsp+24],  m_dith\n%endif ; mmsize == 8/16\n%endif ; %1 == 8\n\n    xor             r5,  r5\n\n%if mmsize == 8 || %1 == 8\n    yuv2planeX_mainloop %1, a\n%else ; mmsize == 16\n    test          dstq, 15\n    jnz .unaligned\n    yuv2planeX_mainloop %1, a\n    RET\n.unaligned:\n    yuv2planeX_mainloop %1, u\n%endif ; mmsize == 8/16\n\n%if %1 == 8\n%if ARCH_X86_32\n    ADD             rsp, pad\n    RET\n%else ; x86-64\n    RET\n%endif ; x86-32/64\n%else ; %1 == 9/10/16\n    RET\n%endif ; %1 == 8/9/10/16\n%endmacro\n\n%if ARCH_X86_32 && HAVE_ALIGNED_STACK == 0\nINIT_MMX mmxext\nyuv2planeX_fn  8,  0, 7\n%endif\n\nINIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n%endif\n\n; %1=outout-bpc, %2=alignment (u/a)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:9", "text": "INIT_XMM sse2\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n\nINIT_XMM sse4\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\nyuv2planeX_fn 16,  8, 5\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2planeX_fn  8, 10, 7\nyuv2planeX_fn  9,  7, 5\nyuv2planeX_fn 10,  7, 5\n%endif\n\n; %1=outout-bpc, %2=alignment (u/a)\n%macro yuv2plane1_mainloop 2\n.loop_%2:\n%if %1 == 8\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m3, [srcq+wq*2+mmsize*1]\n    psraw           m0, 7\n    psraw           m1, 7\n    packuswb        m0, m1\n    mov%2    [dstq+wq], m0\n%elif %1 == 16\n    paddd           m0, m4, [srcq+wq*4+mmsize*0]\n    paddd           m1, m4, [srcq+wq*4+mmsize*1]\n    paddd           m2, m4, [srcq+wq*4+mmsize*2]\n    paddd           m3, m4, [srcq+wq*4+mmsize*3]\n    psrad           m0, 3\n    psrad           m1, 3\n    psrad           m2, 3\n    psrad           m3, 3\n%if cpuflag(sse4) ; avx/sse4\n    packusdw        m0, m1\n    packusdw        m2, m3\n%else ; mmx/sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; mmx/sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]\n    psraw           m0, 15 - %1\n    psraw           m1, 15 - %1\n    pmaxsw          m0, m4\n    pmaxsw          m1, m4\n    pminsw          m0, m3\n    pminsw          m1, m3\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:10", "text": "packusdw        m2, m3\n%else ; mmx/sse2\n    packssdw        m0, m1\n    packssdw        m2, m3\n    paddw           m0, m5\n    paddw           m2, m5\n%endif ; mmx/sse2/sse4/avx\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m2\n%else ; %1 == 9/10\n    paddsw          m0, m2, [srcq+wq*2+mmsize*0]\n    paddsw          m1, m2, [srcq+wq*2+mmsize*1]\n    psraw           m0, 15 - %1\n    psraw           m1, 15 - %1\n    pmaxsw          m0, m4\n    pmaxsw          m1, m4\n    pminsw          m0, m3\n    pminsw          m1, m3\n    mov%2    [dstq+wq*2+mmsize*0], m0\n    mov%2    [dstq+wq*2+mmsize*1], m1\n%endif\n    add             wq, mmsize\n    jl .loop_%2\n%endmacro\n\n%macro yuv2plane1_fn 3\ncglobal yuv2plane1_%1, %3, %3, %2, src, dst, w, dither, offset\n    movsxdifnidn    wq, wd\n    add             wq, mmsize - 1\n    and             wq, ~(mmsize - 1)\n%if %1 == 8\n    add           dstq, wq\n%else ; %1 != 8\n    lea           dstq, [dstq+wq*2]\n%endif ; %1 == 8\n%if %1 == 16\n    lea           srcq, [srcq+wq*4]\n%else ; %1 != 16\n    lea           srcq, [srcq+wq*2]\n%endif ; %1 == 16\n    neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:\n    punpcklbw       m3, m4\n    mova            m2, m3\n%elif %1 == 9\n    pxor            m4, m4\n    mova            m3, [pw_512]\n    mova            m2, [pw_32]\n%elif %1 == 10\n    pxor            m4, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 361, "line_end": 420}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:11", "text": "neg             wq\n\n%if %1 == 8\n    pxor            m4, m4               ; zero\n\n    ; create registers holding dither\n    movq            m3, [ditherq]        ; dither\n    test       offsetd, offsetd\n    jz              .no_rot\n    punpcklqdq      m3, m3\n    PALIGNR         m3, m3, 3, m2\n.no_rot:\n    punpcklbw       m3, m4\n    mova            m2, m3\n%elif %1 == 9\n    pxor            m4, m4\n    mova            m3, [pw_512]\n    mova            m2, [pw_32]\n%elif %1 == 10\n    pxor            m4, m4\n    mova            m3, [pw_1024]\n    mova            m2, [pw_16]\n%else ; %1 == 16\n%if cpuflag(sse4) ; sse4/avx\n    mova            m4, [pd_4]\n%else ; sse2\n    mova            m4, [pd_4min0x40000]\n    mova            m5, [minshort]\n%endif ; sse2/sse4/avx\n%endif ; %1 == ..\n\n    ; actual pixel scaling\n    test          dstq, 15\n    jnz .unaligned\n    yuv2plane1_mainloop %1, a\n    RET\n.unaligned:\n    yuv2plane1_mainloop %1, u\n    RET\n%endmacro\n\nINIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 5, 3\n%endif\n\n%undef movsx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 401, "line_end": 460}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:12", "text": "INIT_XMM sse2\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 6, 3\n\nINIT_XMM sse4\nyuv2plane1_fn 16, 5, 3\n\n%if HAVE_AVX_EXTERNAL\nINIT_XMM avx\nyuv2plane1_fn  8, 5, 5\nyuv2plane1_fn  9, 5, 3\nyuv2plane1_fn 10, 5, 3\nyuv2plane1_fn 16, 5, 3\n%endif\n\n%undef movsx\n\n;-----------------------------------------------------------------------------\n; AVX2 yuv2nv12cX implementation\n;\n; void ff_yuv2nv12cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;\n; void ff_yuv2nv21cX_avx2(enum AVPixelFormat format, const uint8_t *dither,\n;                         const int16_t *filter, int filterSize,\n;                         const int16_t **u, const int16_t **v,\n;                         uint8_t *dst, int dstWidth)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\n%macro yuv2nv12cX_fn 1\ncglobal %1cX, 8, 11, 13, tmp1, dither, filter, filterSize, u, v, dst, dstWidth\n\n    mov tmp1q, qword [ditherq]\n    movq xm0, tmp1q\n    ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask\n\n    DEFINE_ARGS tmp1, tmp2, filter, filterSize, u, v, dst, dstWidth\n\n    xor r8q, r8q\n\nnv12_outer_%1:\n    mova m2, m0                             ; resultLo\n    mova m3, m1                             ; resultHi", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 441, "line_end": 500}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:13", "text": "ror tmp1q, 24\n    movq xm1, tmp1q\n\n    pmovzxbd m0, xm0\n    pslld m0, m0, 12                        ; ditherLo\n    pmovzxbd m1, xm1\n    pslld m1, m1, 12                        ; ditherHi\n\n    pxor m9, m9                             ; uint8_min dwords\n    mova m10, [pd_255]                      ; uint8_max dwords\n    mova m11, [%1_shuffle_mask]             ; shuffle_mask\n    mova m12, [yuv2nv12_permute_mask]       ; permute mask\n\n    DEFINE_ARGS tmp1, tmp2, filter, filterSize, u, v, dst, dstWidth\n\n    xor r8q, r8q\n\nnv12_outer_%1:\n    mova m2, m0                             ; resultLo\n    mova m3, m1                             ; resultHi\n    xor r9q, r9q\n\nnv12_inner_%1:\n    movsx r10d, word [filterq + (2 * r9q)]\n    movd xm4, r10d\n    vpbroadcastd m4, xm4                    ; filter\n\n    mov tmp1q, [uq + (gprsize * r9q)]\n    mova xm7, oword [tmp1q + 2 * r8q]\n\n    mov tmp2q, [vq + (gprsize * r9q)]\n    mova xm8, oword [tmp2q + 2 * r8q]\n\n    punpcklwd xm5, xm7, xm8\n    pmovsxwd m5, xm5                        ; multiplicandsLo\n    punpckhwd xm6, xm7, xm8\n    pmovsxwd m6, xm6                        ; multiplicandsHi\n\n    pmulld m7, m5, m4                       ; mulResultLo\n    pmulld m8, m6, m4                       ; mulResultHi\n    paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:\n    ;     m2: u1  0  0  0  v1  0  0  0  [...]\n    ;     m3: u5  0  0  0  v5  0  0  0  [...]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 481, "line_end": 540}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:14", "text": "paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:\n    ;     m2: u1  0  0  0  v1  0  0  0  [...]\n    ;     m3: u5  0  0  0  v5  0  0  0  [...]\n    ;\n    ; First, we shuffle the bytes to make the bytes semi-contiguous.\n    ; AVX-2 doesn't have cross-lane shuffling, so we'll end up with:\n    ;     m2: u1  v1  u2  v2  0  0  0  0  0  0  0  0  u3  v3  u4  v4\n    ;     m3: u5  v5  u6  v6  0  0  0  0  0  0  0  0  u7  v7  u8  v8\n    pshufb m2, m2, m11\n    pshufb m3, m3, m11\n\n    ; To fix the cross-lane shuffling issue, we'll then use cross-lane\n    ; permutation to combine the two segments\n    vpermd m2, m12, m2\n    vpermd m3, m12, m3\n\n    ; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40348 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:16", "text": "%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5\n%else\n    pxor %1, m4\n    pand %1, m5\n    pxor %1, m4\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro LOAD16 2\n    %if cpuflag(avx2)\n        movu xm%1, %2\n        vpmovsxwd m%1, xm%1\n    %elif cpuflag(sse4)\n        movsd m%1, %2\n        pmovsxwd m%1, m%1\n    %else\n        movsd m%1, %2\n        punpcklwd m%1, m%1\n        psrad m%1, 16 ; sign extend\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro STORE8 2\n    mov ptrq, %1\n    %if mmsize > 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 601, "line_end": 660}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:17", "text": "%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n%macro LOAD_PIXELS 3\n    mov ptrq, [%2 + jq*8]\n%if %3 >= 16\n    movu m%1, [ptrq + xq*4]\n%else\n    LOAD16 %1, [ptrq + xq*2]\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n%macro STORE8 2\n    mov ptrq, %1\n    %if mmsize > 16\n        pshufb m%2, [pb_pack_shuffle8]\n        vextractf128 xm4, m%2, 1\n        por xm%2, xm4\n        movq [ptrq + xq], xm%2\n    %else\n        %if cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle8]\n        %else\n            psrldq m4, m%2, 3\n            por m%2, m4\n            psrldq m4, m%2, 6\n            por m%2, m4\n        %endif\n        movd [ptrq + xq], m%2\n    %endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - is big endian\n%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %elif cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n            %if %3 ; bigendian", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 641, "line_end": 700}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:18", "text": "%macro STORE16 3\n    mov ptrq, %1\n    %if mmsize > 16\n        %if %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %else\n            pshufb m%2, [pb_pack_shuffle16le]\n        %endif\n        vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)\n        movu [ptrq + xq*2], xm%2\n    %else\n        %if cpuflag(sse4) && %3 ; bigendian\n            pshufb m%2, [pb_pack_shuffle16be]\n        %elif cpuflag(sse4)\n            pshufb m%2, [pb_pack_shuffle16le]\n        %else\n            pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)\n            pshufd  m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)\n            %if %3 ; bigendian\n                psrlw  m4, m%2, 8\n                psllw  m%2, 8\n                por m%2, m4\n            %endif\n        %endif\n        movq [ptrq + xq*2], m%2\n    %endif\n%endmacro\n\n%macro SWAP32 1\n%if mmsize > 16 || cpuflag(sse4)\n    pshufb m%1, [pb_shuffle32be]\n%else\n    psrlw  m4, m%1, 8\n    psllw  m%1, 8\n    por m%1, m4\n    pshuflw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n    pshufhw m%1, m%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)\n%endif\n%endmacro\n\n; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2\n%elif %3 > 8\n    STORE16 %1, %2, %4\n%else\n    STORE8 %1, %2\n%endif\n%endmacro\n\n%macro PMULLO 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 681, "line_end": 740}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:19", "text": "; 1 - dest\n; 2 - source\n; 3 - depth\n; 4 - is big endian\n%macro STORE_PIXELS 4\n%if %3 > 16\n    %if %4\n        SWAP32 %2\n    %endif\n    mov ptrq, %1\n    movu [ptrq + xq*4], m%2\n%elif %3 > 8\n    STORE16 %1, %2, %4\n%else\n    STORE8 %1, %2\n%endif\n%endmacro\n\n%macro PMULLO 3\n%if cpuflag(sse4) || mmsize > 16\n    pmulld %1, %2, %3\n%else\n    %ifidni %1, %2\n    %else\n        mova %1, %2\n    %endif\n    pshufd m7, %1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pshufd m8, %3, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0) ; 0xb1\n    pmuludq m7, m8\n    pshufd  m7, m7, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    pmuludq %1, %3\n    pshufd  %1, %1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0) ; 0xd8\n    punpckldq %1, m7\n%endif\n%endmacro\n\n; 1 - name\n; 2 - depth\n; 3 - has alpha\n; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 721, "line_end": 780}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:20", "text": "; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19\n%endif\n\n%if DEPTH >= 16\n    %define YUV_SHIFT 14\n    %define Y_START  m9\n    %define Y_ROUND [pd_yuv2gbrp16_round13]\n    %define UV_START m9\n    %define A_START  m9\n    %define A_CLIP2P 30\n%else\n    %define YUV_SHIFT 10\n    %define Y_START  [pd_yuv2gbrp_y_start]\n    %define Y_ROUND  m9\n    %define UV_START [pd_yuv2gbrp_uv_start]\n    %define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsInternal.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsInternal.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsInternal.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:21", "text": "VBROADCASTSS m13, dword [ptrq + SwsInternal.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsInternal.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsInternal.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:\n            movsx ptrd, word [lumFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, lumSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            paddd Y, m1\n            inc jd\n            cmp jd, lumFilterSized\n            jl %%loop_luma\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            PMULLO m2, m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:22", "text": "PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            PMULLO m2, m2, m0\n            paddd U, m1\n            paddd V, m2\n            inc jd\n            cmp jd, chrFilterSized\n            jl %%loop_chr\n\n        psrad Y, YUV_SHIFT\n%if  DEPTH >= 16\n        paddd Y, [pd_yuv2gbrp16_offset]\n%endif\n        psrad U, YUV_SHIFT\n        psrad V, YUV_SHIFT\n\n        psubd  Y, m10    ; yuv2rgb_y_offset\n        PMULLO Y, Y, m11 ; yuv2rgb_y_coeff\n        paddd  Y, Y_ROUND\n\n        PMULLO R, V, m12 ; yuv2rgb_v2r_coeff\n        PMULLO B, U, m15 ; yuv2rgb_u2b_coeff\n\n        PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif\n\n        psrad R, RGB_SHIFT\n        psrad G, RGB_SHIFT\n        psrad B, RGB_SHIFT\n\n%if  DEPTH >= 16\n        paddd R, [pd_yuv2gbrp_debias]\n        paddd G, [pd_yuv2gbrp_debias]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 841, "line_end": 900}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:23", "text": "PMULLO U, U, m14 ; yuv2rgb_u2g_coeff\n        PMULLO V, V, m13 ; yuv2rgb_v2g_coeff\n        paddd G, U, V\n        paddd R, Y\n        paddd G, Y\n        paddd B, Y\n\n%if  DEPTH < 16\n        CLIPP2 R, 30\n        CLIPP2 G, 30\n        CLIPP2 B, 30\n%endif\n\n        psrad R, RGB_SHIFT\n        psrad G, RGB_SHIFT\n        psrad B, RGB_SHIFT\n\n%if  DEPTH >= 16\n        paddd R, [pd_yuv2gbrp_debias]\n        paddd G, [pd_yuv2gbrp_debias]\n        paddd B, [pd_yuv2gbrp_debias]\n\n        CLIPP2 R, 16\n        CLIPP2 G, 16\n        CLIPP2 B, 16\n%endif\n\n%if FLOAT\n        cvtdq2ps R, R\n        cvtdq2ps G, G\n        cvtdq2ps B, B\n        mulps R, [pd_65535_invf]\n        mulps G, [pd_65535_invf]\n        mulps B, [pd_65535_invf]\n%endif\n        STORE_PIXELS [destq +  0], 1, DEPTH, IS_BE ; G\n        STORE_PIXELS [destq +  8], 2, DEPTH, IS_BE ; B\n        STORE_PIXELS [destq + 16], 0, DEPTH, IS_BE ; R\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4\n        cmp xd, dstWd\n        jl %%loop_x\n\n    RET\n%endmacro\n\n%macro yuv2gbrp_fn_decl 2\nINIT_%1 %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 881, "line_end": 940}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:24", "text": "cmp alpSrcxq, 0\n        je %%skip_alpha_store\n            CLIPP2 A, A_CLIP2P\n            psrad A, A_SHIFT\n%if FLOAT\n            cvtdq2ps A, A\n            mulps A, [pd_65535_invf]\n%endif\n            STORE_PIXELS [destq + 24], 3, DEPTH, IS_BE\n        %%skip_alpha_store:\n%endif\n        add xq, mmsize/4\n        cmp xd, dstWd\n        jl %%loop_x\n\n    RET\n%endmacro\n\n%macro yuv2gbrp_fn_decl 2\nINIT_%1 %2\nyuv2gbrp_fn gbrp,        8, 0, 0, 0\nyuv2gbrp_fn gbrap,       8, 1, 0, 0\nyuv2gbrp_fn gbrp9le,     9, 0, 0, 0\nyuv2gbrp_fn gbrp10le,   10, 0, 0, 0\nyuv2gbrp_fn gbrap10le,  10, 1, 0, 0\nyuv2gbrp_fn gbrp12le,   12, 0, 0, 0\nyuv2gbrp_fn gbrap12le,  12, 1, 0, 0\nyuv2gbrp_fn gbrp14le,   14, 0, 0, 0\nyuv2gbrp_fn gbrp16le,   16, 0, 0, 0\nyuv2gbrp_fn gbrap16le,  16, 1, 0, 0\nyuv2gbrp_fn gbrpf32le,  32, 0, 0, 1\nyuv2gbrp_fn gbrapf32le, 32, 1, 0, 1\n\nyuv2gbrp_fn gbrp9be,     9, 0, 1, 0\nyuv2gbrp_fn gbrp10be,   10, 0, 1, 0\nyuv2gbrp_fn gbrap10be,  10, 1, 1, 0\nyuv2gbrp_fn gbrp12be,   12, 0, 1, 0\nyuv2gbrp_fn gbrap12be,  12, 1, 1, 0\nyuv2gbrp_fn gbrp14be,   14, 0, 1, 0\nyuv2gbrp_fn gbrp16be,   16, 0, 1, 0\nyuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 921, "line_end": 973}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:25", "text": "yuv2gbrp_fn gbrap16be,  16, 1, 1, 0\nyuv2gbrp_fn gbrpf32be,  32, 0, 1, 1\nyuv2gbrp_fn gbrapf32be, 32, 1, 1, 1\n%endmacro\n\nyuv2gbrp_fn_decl XMM, sse2\nyuv2gbrp_fn_decl XMM, sse4\n\n%if HAVE_AVX2_EXTERNAL\nyuv2gbrp_fn_decl YMM, avx2\n%endif\n\n%endif ; ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "45f0a7ad338cef639b32c8bc5330d3ff5415bdb5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/45f0a7ad338cef639b32c8bc5330d3ff5415bdb5/libswscale/x86/output.asm", "line_start": 961, "line_end": 973}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40332 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "2a091d4f2ee1e367d05a6bbbe96b204257cbda87", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2a091d4f2ee1e367d05a6bbbe96b204257cbda87/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40316 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "2d077f9acda4946b3455ded5778fb3fc7e85bba2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d077f9acda4946b3455ded5778fb3fc7e85bba2/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsInternal *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsInternal\n    .padding:           resb 40292 ; offsetof(SwsInternal, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:14", "text": "paddd m2, m2, m7                        ; resultLo += mulResultLo\n    paddd m3, m3, m8                        ; resultHi += mulResultHi\n\n    inc r9d\n    cmp r9d, filterSized\n    jl nv12_inner_%1\n    ; end of inner loop\n\n    psrad m2, m2, 19\n    psrad m3, m3, 19\n\n    ; Vectorized av_clip_uint8\n    pmaxsd m2, m2, m9\n    pmaxsd m3, m3, m9\n    pminsd m2, m2, m10\n    pminsd m3, m3, m10\n\n    ; At this point we have clamped uint8s arranged in this order:\n    ;     m2: u1  0  0  0  v1  0  0  0  [...]\n    ;     m3: u5  0  0  0  v5  0  0  0  [...]\n    ;\n    ; First, we shuffle the bytes to make the bytes semi-contiguous.\n    ; AVX-2 doesn't have cross-lane shuffling, so we'll end up with:\n    ;     m2: u1  v1  u2  v2  0  0  0  0  0  0  0  0  u3  v3  u4  v4\n    ;     m3: u5  v5  u6  v6  0  0  0  0  0  0  0  0  u7  v7  u8  v8\n    pshufb m2, m2, m11\n    pshufb m3, m3, m11\n\n    ; To fix the cross-lane shuffling issue, we'll then use cross-lane\n    ; permutation to combine the two segments\n    vpermd m2, m12, m2\n    vpermd m3, m12, m3\n\n    ; Now we have the final results in the lower 8 bytes of each register\n    movq [dstq], xm2\n    movq [dstq + 8], xm3\n\n    add r8d, 8\n    add dstq, 16\n\n    cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsContext *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/output.asm", "line_start": 521, "line_end": 580}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:15", "text": "cmp r8d, dstWidthd\n    jl nv12_outer_%1\n    RET\n%endmacro\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nyuv2nv12cX_fn yuv2nv12\nyuv2nv12cX_fn yuv2nv21\n%endif\n%endif ; ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; planar grb yuv2anyX functions\n; void ff_yuv2<gbr_format>_full_X_<opt>(SwsContext *c, const int16_t *lumFilter,\n;                                       const int16_t **lumSrcx, int lumFilterSize,\n;                                       const int16_t *chrFilter, const int16_t **chrUSrcx,\n;                                       const int16_t **chrVSrcx, int chrFilterSize,\n;                                       const int16_t **alpSrcx, uint8_t **dest,\n;                                       int dstW, int y)\n;-----------------------------------------------------------------------------\n\n%if ARCH_X86_64\nstruc SwsContext\n    .padding:           resb 40292 ; offsetof(SwsContext, yuv2rgb_y_offset)\n    .yuv2rgb_y_offset:  resd 1\n    .yuv2rgb_y_coeff:   resd 1\n    .yuv2rgb_v2r_coeff: resd 1\n    .yuv2rgb_v2g_coeff: resd 1\n    .yuv2rgb_u2g_coeff: resd 1\n    .yuv2rgb_u2b_coeff: resd 1\nendstruc\n\n%define R m0\n%define G m1\n%define B m2\n%define A m3\n\n%define Y m4\n%define U m5\n%define V m6\n\n; Clip a signed integer to an unsigned power of two range.\n; av_clip_uintp2\n; 1 - dest\n; 2 - bit position to clip at\n%macro CLIPP2 2\n    ; (~a) >> 31 & ((1<<p) - 1);\n    pcmpeqb m4, m4\n    pxor m4, %1\n    psrad m4, 31\n    movu m5, [pd_yuv2gbrp16_upper%2]\n    pand m4, m5\n\n    ; (a & ~((1<<p) - 1)) == 0\n    pandn m5, %1\n    pxor m6, m6\n    pcmpeqd m5, m6\n%if cpuflag(avx2)\n    vpblendvb %1, m4, %1, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/output.asm", "line_start": 561, "line_end": 620}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:20", "text": "; 3 - is big endian\n; 5 - is float\n%macro yuv2gbrp_fn 5\n%define DEPTH %2\n%define HAS_ALPHA %3\n%define IS_BE %4\n%define FLOAT %5\n%define SH (22 + 8 - DEPTH)\n\n%if DEPTH >= 16\n    %define RGB_SHIFT 14\n    %define A_SHIFT 14\n%elif 22 != SH\n    %define RGB_SHIFT SH\n    %define A_SHIFT (SH-3)\n%else\n    %define RGB_SHIFT 22\n    %define A_SHIFT 19\n%endif\n\n%if DEPTH >= 16\n    %define YUV_SHIFT 14\n    %define Y_START  m9\n    %define Y_ROUND [pd_yuv2gbrp16_round13]\n    %define UV_START m9\n    %define A_START  m9\n    %define A_CLIP2P 30\n%else\n    %define YUV_SHIFT 10\n    %define Y_START  [pd_yuv2gbrp_y_start]\n    %define Y_ROUND  m9\n    %define UV_START [pd_yuv2gbrp_uv_start]\n    %define A_START  [pd_yuv2gbrp_a_start]\n    %define A_CLIP2P 27\n%endif\n\ncglobal yuv2%1_full_X, 12, 14, 16, ptr, lumFilter, lumSrcx, lumFilterSize, chrFilter, chrUSrcx, chrVSrcx, chrFilterSize, alpSrcx, dest, dstW, y, x, j\n    VBROADCASTSS m10, dword [ptrq + SwsContext.yuv2rgb_y_offset]\n    VBROADCASTSS m11, dword [ptrq + SwsContext.yuv2rgb_y_coeff]\n    VBROADCASTSS m12, dword [ptrq + SwsContext.yuv2rgb_v2r_coeff]\n    VBROADCASTSS m13, dword [ptrq + SwsContext.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsContext.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsContext.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/output.asm", "line_start": 761, "line_end": 820}
{"id": "FFmpeg/FFmpeg:libswscale/x86/output.asm:21", "text": "VBROADCASTSS m13, dword [ptrq + SwsContext.yuv2rgb_v2g_coeff]\n    VBROADCASTSS m14, dword [ptrq + SwsContext.yuv2rgb_u2g_coeff]\n    VBROADCASTSS m15, dword [ptrq + SwsContext.yuv2rgb_u2b_coeff]\n\n%if DEPTH >= 16\n    movu m9, [pd_yuv2gbrp16_start]\n%else\n    mov xq, (1 << (SH-1))\n    movq xm9, xq\n    VBROADCASTSS m9, xm9\n%endif\n    xor xq, xq\n\n    %%loop_x:\n        movu Y, Y_START\n        movu U, UV_START\n        movu V, UV_START\n\n        xor jq, jq\n        %%loop_luma:\n            movsx ptrd, word [lumFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, lumSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            paddd Y, m1\n            inc jd\n            cmp jd, lumFilterSized\n            jl %%loop_luma\n\n%if HAS_ALPHA\n        cmp alpSrcxq, 0\n        je %%skip_alpha_load\n            xor jq, jq\n            movu A, A_START\n            %%loop_alpha:\n                movsx ptrd, word [lumFilterq + jq*2]\n                movd xm0, ptrd\n                VBROADCASTSS m0, xm0\n                LOAD_PIXELS 1, alpSrcxq, DEPTH\n                PMULLO m1, m1, m0\n                paddd A, m1\n                inc jd\n                cmp jd, lumFilterSized\n                jl %%loop_alpha\n%if DEPTH >= 16\n            psrad A, 1\n            paddd A, [pd_yuv2gbrp16_a_offset]\n%endif\n        %%skip_alpha_load:\n%endif\n        xor jq, jq\n        %%loop_chr:\n            movsx ptrd, word [chrFilterq + jq*2]\n            movd xm0, ptrd\n            VBROADCASTSS m0, xm0\n            LOAD_PIXELS 1, chrUSrcxq, DEPTH\n            LOAD_PIXELS 2, chrVSrcxq, DEPTH\n            PMULLO m1, m1, m0\n            PMULLO m2, m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/output.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/output.asm", "line_start": 801, "line_end": 860}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2024 Ramiro Polla\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\npack19:             times 4 dd (1 << 19) - 1\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg{8,16}_<opt>(int16_t *dst, int width,\n;                                    uint32_t coeff, int64_t offset);\n; void ff_lumRangeFromJpeg{8,16}_<opt>(int16_t *dst, int width,\n;                                      uint32_t coeff, int64_t offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 2\ncglobal lumRange%1Jpeg%2, 4, 4, 5, dst, width, coeff, offset\n    shl          widthd, %2 >> 3\n    movd            xm2, coeffd\n    VBROADCASTSS     m2, xm2\n%if ARCH_X86_64\n    movq            xm3, offsetq\n%else\n    movq            xm3, offsetm\n%endif\n%if %2 == 16\n    VBROADCASTSD     m3, xm3\n%ifidni %1,To\n    VBROADCASTI128   m4, [pack19]\n%endif\n%elif %2 == 8\n    VBROADCASTSS     m3, xm3\n    pxor             m4, m4\n%endif ; %2 == 8/16\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/range_convert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:2", "text": "movd            xm2, coeffd\n    VBROADCASTSS     m2, xm2\n%if ARCH_X86_64\n    movq            xm3, offsetq\n%else\n    movq            xm3, offsetm\n%endif\n%if %2 == 16\n    VBROADCASTSD     m3, xm3\n%ifidni %1,To\n    VBROADCASTI128   m4, [pack19]\n%endif\n%elif %2 == 8\n    VBROADCASTSS     m3, xm3\n    pxor             m4, m4\n%endif ; %2 == 8/16\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]\n%if %2 == 16\n    pshufd           m1, m0, 0xb1\n    pmuldq           m0, m2\n    pmuldq           m1, m2\n    paddq            m0, m3\n    paddq            m1, m3\n    psrlq            m0, 18\n    psrlq            m1, 18\n    pshufd           m0, m0, 0xd8\n    pshufd           m1, m1, 0xd8\n    punpckldq        m0, m1\n%ifidni %1,To\n    PMINSD           m0, m4, m1\n%endif\n%elif %2 == 8\n    punpckhwd        m1, m0, m4\n    punpcklwd        m0, m4\n    pmaddwd          m0, m2\n    pmaddwd          m1, m2\n    paddd            m0, m3\n    paddd            m1, m3\n    psrad            m0, 14\n    psrad            m1, 14\n    packssdw         m0, m1\n%endif ; %2 == 8/16\n    movu  [dstq+widthq], m0\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; chrConvertRange\n;\n; void ff_chrRangeToJpeg{8,16}_<opt>(int16_t *dstU, int16_t *dstV, int width,\n;                                    uint32_t coeff, int64_t offset);\n; void ff_chrRangeFromJpeg{8,16}_<opt>(int16_t *dstU, int16_t *dstV, int width,\n;                                      uint32_t coeff, int64_t offset);\n;\n;-----------------------------------------------------------------------------", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/range_convert.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:3", "text": "paddd            m1, m3\n    psrad            m0, 14\n    psrad            m1, 14\n    packssdw         m0, m1\n%endif ; %2 == 8/16\n    movu  [dstq+widthq], m0\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; chrConvertRange\n;\n; void ff_chrRangeToJpeg{8,16}_<opt>(int16_t *dstU, int16_t *dstV, int width,\n;                                    uint32_t coeff, int64_t offset);\n; void ff_chrRangeFromJpeg{8,16}_<opt>(int16_t *dstU, int16_t *dstV, int width,\n;                                      uint32_t coeff, int64_t offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 2\ncglobal chrRange%1Jpeg%2, 5, 5, 7, dstU, dstV, width, coeff, offset\n    shl          widthd, %2 >> 3\n    movd            xm4, coeffd\n    VBROADCASTSS     m4, xm4\n%if ARCH_X86_64\n    movq            xm5, offsetq\n%else\n    movq            xm5, offsetm\n%endif\n%if %2 == 16\n    VBROADCASTSD     m5, xm5\n%ifidni %1,To\n    VBROADCASTI128   m6, [pack19]\n%endif\n%elif %2 == 8\n    VBROADCASTSS     m5, xm5\n    pxor             m6, m6\n%endif ; %2 == 8/16\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n%if %2 == 16\n    pshufd           m1, m0, 0xb1\n    pshufd           m3, m2, 0xb1\n    pmuldq           m0, m4\n    pmuldq           m1, m4\n    pmuldq           m2, m4\n    pmuldq           m3, m4\n    paddq            m0, m5\n    paddq            m1, m5\n    paddq            m2, m5\n    paddq            m3, m5\n    psrlq            m0, 18\n    psrlq            m1, 18\n    psrlq            m2, 18", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/range_convert.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:4", "text": "add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n%if %2 == 16\n    pshufd           m1, m0, 0xb1\n    pshufd           m3, m2, 0xb1\n    pmuldq           m0, m4\n    pmuldq           m1, m4\n    pmuldq           m2, m4\n    pmuldq           m3, m4\n    paddq            m0, m5\n    paddq            m1, m5\n    paddq            m2, m5\n    paddq            m3, m5\n    psrlq            m0, 18\n    psrlq            m1, 18\n    psrlq            m2, 18\n    psrlq            m3, 18\n    pshufd           m0, m0, 0xd8\n    pshufd           m1, m1, 0xd8\n    pshufd           m2, m2, 0xd8\n    pshufd           m3, m3, 0xd8\n    punpckldq        m0, m1\n    punpckldq        m2, m3\n%ifidni %1,To\n    PMINSD           m0, m6, m1\n    PMINSD           m2, m6, m3\n%endif\n%elif %2 == 8\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    pmaddwd          m2, m4\n    pmaddwd          m3, m4\n    paddd            m0, m5\n    paddd            m1, m5\n    paddd            m2, m5\n    paddd            m3, m5\n    psrad            m0, 14\n    psrad            m1, 14\n    psrad            m2, 14\n    psrad            m3, 14\n    packssdw         m0, m1\n    packssdw         m2, m3\n%endif ; %2 == 8/16\n    movu [dstUq+widthq], m0\n    movu [dstVq+widthq], m2\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE To,    8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/range_convert.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:5", "text": "paddd            m0, m5\n    paddd            m1, m5\n    paddd            m2, m5\n    paddd            m3, m5\n    psrad            m0, 14\n    psrad            m1, 14\n    psrad            m2, 14\n    psrad            m3, 14\n    packssdw         m0, m1\n    packssdw         m2, m3\n%endif ; %2 == 8/16\n    movu [dstUq+widthq], m0\n    movu [dstVq+widthq], m2\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE To,    8\nCHRCONVERTRANGE To,    8\nLUMCONVERTRANGE From,  8\nCHRCONVERTRANGE From,  8\n\nINIT_XMM sse4\nLUMCONVERTRANGE To,   16\nCHRCONVERTRANGE To,   16\nLUMCONVERTRANGE From, 16\nCHRCONVERTRANGE From, 16\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE To,    8\nLUMCONVERTRANGE To,   16\nCHRCONVERTRANGE To,    8\nCHRCONVERTRANGE To,   16\nLUMCONVERTRANGE From,  8\nLUMCONVERTRANGE From, 16\nCHRCONVERTRANGE From,  8\nCHRCONVERTRANGE From, 16\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/range_convert.asm", "line_start": 161, "line_end": 201}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2024 Ramiro Polla\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width,\n;                              uint32_t coeff, int64_t offset);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width,\n;                                uint32_t coeff, int64_t offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 1\ncglobal lumRange%1Jpeg, 4, 4, 5, dst, width, coeff, offset\n    shl          widthd, 1\n    movd            xm2, coeffd\n    VBROADCASTSS     m2, xm2\n%if ARCH_X86_64\n    movq            xm3, offsetq\n%else\n    movq            xm3, offsetm\n%endif\n    VBROADCASTSS     m3, xm3\n    pxor             m4, m4\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]\n    punpckhwd        m1, m0, m4\n    punpcklwd        m0, m4\n    pmaddwd          m0, m2\n    pmaddwd          m1, m2\n    paddd            m0, m3\n    paddd            m1, m3\n    psrad            m0, 14\n    psrad            m1, 14\n    packssdw         m0, m1\n    movu  [dstq+widthq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "be108ebcf48fd9cd9335202878788d854b5e8754", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/be108ebcf48fd9cd9335202878788d854b5e8754/libswscale/x86/range_convert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:2", "text": "movq            xm3, offsetq\n%else\n    movq            xm3, offsetm\n%endif\n    VBROADCASTSS     m3, xm3\n    pxor             m4, m4\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]\n    punpckhwd        m1, m0, m4\n    punpcklwd        m0, m4\n    pmaddwd          m0, m2\n    pmaddwd          m1, m2\n    paddd            m0, m3\n    paddd            m1, m3\n    psrad            m0, 14\n    psrad            m1, 14\n    packssdw         m0, m1\n    movu  [dstq+widthq], m0\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; chrConvertRange\n;\n; void ff_chrRangeToJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width,\n;                              uint32_t coeff, int64_t offset);\n; void ff_chrRangeFromJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width,\n;                                uint32_t coeff, int64_t offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 1\ncglobal chrRange%1Jpeg, 5, 5, 7, dstU, dstV, width, coeff, offset\n    shl          widthd, 1\n    movd            xm4, coeffd\n    VBROADCASTSS     m4, xm4\n%if ARCH_X86_64\n    movq            xm5, offsetq\n%else\n    movq            xm5, offsetm\n%endif\n    VBROADCASTSS     m5, xm5\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    pmaddwd          m2, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "be108ebcf48fd9cd9335202878788d854b5e8754", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/be108ebcf48fd9cd9335202878788d854b5e8754/libswscale/x86/range_convert.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:3", "text": "%if ARCH_X86_64\n    movq            xm5, offsetq\n%else\n    movq            xm5, offsetm\n%endif\n    VBROADCASTSS     m5, xm5\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    pmaddwd          m2, m4\n    pmaddwd          m3, m4\n    paddd            m0, m5\n    paddd            m1, m5\n    paddd            m2, m5\n    paddd            m3, m5\n    psrad            m0, 14\n    psrad            m1, 14\n    psrad            m2, 14\n    psrad            m3, 14\n    packssdw         m0, m1\n    packssdw         m2, m3\n    movu [dstUq+widthq], m0\n    movu [dstVq+widthq], m2\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE To\nCHRCONVERTRANGE To\nLUMCONVERTRANGE From\nCHRCONVERTRANGE From\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE To\nCHRCONVERTRANGE To\nLUMCONVERTRANGE From\nCHRCONVERTRANGE From\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "be108ebcf48fd9cd9335202878788d854b5e8754", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/be108ebcf48fd9cd9335202878788d854b5e8754/libswscale/x86/range_convert.asm", "line_start": 81, "line_end": 131}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:4", "text": "CHRCONVERTRANGE To\nLUMCONVERTRANGE From\nCHRCONVERTRANGE From\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE To\nCHRCONVERTRANGE To\nLUMCONVERTRANGE From\nCHRCONVERTRANGE From\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "be108ebcf48fd9cd9335202878788d854b5e8754", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/be108ebcf48fd9cd9335202878788d854b5e8754/libswscale/x86/range_convert.asm", "line_start": 121, "line_end": 131}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2024 Ramiro Polla\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nchr_to_mult:        times 4 dw 4663, 0\nchr_to_offset:      times 4 dd -9289992\n%define chr_to_shift 12\n\nchr_from_mult:      times 4 dw 1799, 0\nchr_from_offset:    times 4 dd 4081085\n%define chr_from_shift 11\n\nlum_to_mult:        times 4 dw 19077, 0\nlum_to_offset:      times 4 dd -39057361\n%define lum_to_shift 14\n\nlum_from_mult:      times 4 dw 14071, 0\nlum_from_offset:    times 4 dd 33561947\n%define lum_from_shift 14\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 4\ncglobal %1, 2, 2, 5, dst, width\n    shl          widthd, 1\n    VBROADCASTI128   m2, [%2]\n    VBROADCASTI128   m3, [%3]\n    pxor             m4, m4\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "2d1358a84d7096bac98433bbfae46f7ffd4efbd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d1358a84d7096bac98433bbfae46f7ffd4efbd0/libswscale/x86/range_convert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:2", "text": "SECTION .text\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 4\ncglobal %1, 2, 2, 5, dst, width\n    shl          widthd, 1\n    VBROADCASTI128   m2, [%2]\n    VBROADCASTI128   m3, [%3]\n    pxor             m4, m4\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]\n    punpckhwd        m1, m0, m4\n    punpcklwd        m0, m4\n    pmaddwd          m0, m2\n    pmaddwd          m1, m2\n    paddd            m0, m3\n    paddd            m1, m3\n    psrad            m0, %4\n    psrad            m1, %4\n    packssdw         m0, m1\n    movu  [dstq+widthq], m0\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; chrConvertRange\n;\n; void ff_chrRangeToJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n; void ff_chrRangeFromJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 4\ncglobal %1, 3, 3, 7, dstU, dstV, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "2d1358a84d7096bac98433bbfae46f7ffd4efbd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d1358a84d7096bac98433bbfae46f7ffd4efbd0/libswscale/x86/range_convert.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:3", "text": ";\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 4\ncglobal %1, 3, 3, 7, dstU, dstV, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    pmaddwd          m2, m4\n    pmaddwd          m3, m4\n    paddd            m0, m5\n    paddd            m1, m5\n    paddd            m2, m5\n    paddd            m3, m5\n    psrad            m0, %4\n    psrad            m1, %4\n    psrad            m2, %4\n    psrad            m3, %4\n    packssdw         m0, m1\n    packssdw         m2, m3\n    movu [dstUq+widthq], m0\n    movu [dstVq+widthq], m2\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "2d1358a84d7096bac98433bbfae46f7ffd4efbd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d1358a84d7096bac98433bbfae46f7ffd4efbd0/libswscale/x86/range_convert.asm", "line_start": 81, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:4", "text": "INIT_XMM sse2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "2d1358a84d7096bac98433bbfae46f7ffd4efbd0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2d1358a84d7096bac98433bbfae46f7ffd4efbd0/libswscale/x86/range_convert.asm", "line_start": 121, "line_end": 133}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2024 Ramiro Polla\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nchr_to_mult:        times 4 dw 4663, 0\nchr_to_offset:      times 4 dd -9289992\n%define chr_to_shift 12\n\nchr_from_mult:      times 4 dw 1799, 0\nchr_from_offset:    times 4 dd 4081085\n%define chr_from_shift 11\n\nlum_to_mult:        times 4 dw 19077, 0\nlum_to_offset:      times 4 dd -39057361\n%define lum_to_shift 14\n\nlum_from_mult:      times 4 dw 14071, 0\nlum_from_offset:    times 4 dd 33561947\n%define lum_from_shift 14\n\nSECTION .text\n\n; NOTE: there is no need to clamp the input when converting to jpeg range\n;       (like we do in the C code) because packssdw will saturate the output.\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 4\ncglobal %1, 2, 2, 5, dst, width\n    shl          widthd, 1\n    VBROADCASTI128   m2, [%2]\n    VBROADCASTI128   m3, [%3]\n    pxor             m4, m4\n    add            dstq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "fcf72966a5f20b9d5df6889e748abd04019b56aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fcf72966a5f20b9d5df6889e748abd04019b56aa/libswscale/x86/range_convert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:2", "text": "SECTION .text\n\n; NOTE: there is no need to clamp the input when converting to jpeg range\n;       (like we do in the C code) because packssdw will saturate the output.\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 4\ncglobal %1, 2, 2, 5, dst, width\n    shl          widthd, 1\n    VBROADCASTI128   m2, [%2]\n    VBROADCASTI128   m3, [%3]\n    pxor             m4, m4\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]\n    punpckhwd        m1, m0, m4\n    punpcklwd        m0, m4\n    pmaddwd          m0, m2\n    pmaddwd          m1, m2\n    paddd            m0, m3\n    paddd            m1, m3\n    psrad            m0, %4\n    psrad            m1, %4\n    packssdw         m0, m1\n    movu  [dstq+widthq], m0\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; chrConvertRange\n;\n; void ff_chrRangeToJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n; void ff_chrRangeFromJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 4\ncglobal %1, 3, 3, 7, dstU, dstV, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "fcf72966a5f20b9d5df6889e748abd04019b56aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fcf72966a5f20b9d5df6889e748abd04019b56aa/libswscale/x86/range_convert.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:3", "text": ";\n; void ff_chrRangeToJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n; void ff_chrRangeFromJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 4\ncglobal %1, 3, 3, 7, dstU, dstV, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    pmaddwd          m2, m4\n    pmaddwd          m3, m4\n    paddd            m0, m5\n    paddd            m1, m5\n    paddd            m2, m5\n    paddd            m3, m5\n    psrad            m0, %4\n    psrad            m1, %4\n    psrad            m2, %4\n    psrad            m3, %4\n    packssdw         m0, m1\n    packssdw         m2, m3\n    movu [dstUq+widthq], m0\n    movu [dstVq+widthq], m2\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "fcf72966a5f20b9d5df6889e748abd04019b56aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fcf72966a5f20b9d5df6889e748abd04019b56aa/libswscale/x86/range_convert.asm", "line_start": 81, "line_end": 136}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:4", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "fcf72966a5f20b9d5df6889e748abd04019b56aa", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/fcf72966a5f20b9d5df6889e748abd04019b56aa/libswscale/x86/range_convert.asm", "line_start": 121, "line_end": 136}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:3", "text": ";\n; void ff_chrRangeToJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n; void ff_chrRangeFromJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 4\ncglobal %1, 3, 3, 7, dstU, dstV, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6\n    punpcklwd        m0, m6\n    punpcklwd        m2, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    pmaddwd          m2, m4\n    pmaddwd          m3, m4\n    paddd            m0, m5\n    paddd            m1, m5\n    paddd            m2, m5\n    paddd            m3, m5\n    psrad            m0, %4\n    psrad            m1, %4\n    psrad            m2, %4\n    psrad            m3, %4\n    packssdw         m0, m1\n    packssdw         m2, m3\n    movu [dstUq+widthq], m0\n    movu [dstVq+widthq], m2\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n\nINIT_YMM avx2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "8a4c9d6bd31f56f588f74f3f06fc78769392fbdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a4c9d6bd31f56f588f74f3f06fc78769392fbdd/libswscale/x86/range_convert.asm", "line_start": 81, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:4", "text": "RET\n%endmacro\n\nINIT_XMM sse2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift\n\nINIT_YMM avx2\nLUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift\nCHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift\nLUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift\nCHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "8a4c9d6bd31f56f588f74f3f06fc78769392fbdd", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8a4c9d6bd31f56f588f74f3f06fc78769392fbdd/libswscale/x86/range_convert.asm", "line_start": 121, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:1", "text": ";******************************************************************************\n;* Copyright (c) 2024 Ramiro Polla\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nchr_to_mult:        times 4 dw 4663, 0\nchr_to_offset:      times 4 dd -9289992\n%define chr_to_shift 12\n\nchr_from_mult:      times 4 dw 1799, 0\nchr_from_offset:    times 4 dd 4081085\n%define chr_from_shift 11\n\nlum_to_mult:        times 4 dw 19077, 0\nlum_to_offset:      times 4 dd -39057361\n%define lum_to_shift 14\n\nlum_from_mult:      times 4 dw 14071, 0\nlum_from_offset:    times 4 dd 33561947\n%define lum_from_shift 14\n\nSECTION .text\n\n; NOTE: there is no need to clamp the input when converting to jpeg range\n;       (like we do in the C code) because packssdw will saturate the output.\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 4\ncglobal %1, 2, 2, 7, dst, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add            dstq, widthq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "f6859cade3a8e13956873df345e7472f9c78eea6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f6859cade3a8e13956873df345e7472f9c78eea6/libswscale/x86/range_convert.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/range_convert.asm:2", "text": "SECTION .text\n\n; NOTE: there is no need to clamp the input when converting to jpeg range\n;       (like we do in the C code) because packssdw will saturate the output.\n\n;-----------------------------------------------------------------------------\n; lumConvertRange\n;\n; void ff_lumRangeToJpeg_<opt>(int16_t *dst, int width);\n; void ff_lumRangeFromJpeg_<opt>(int16_t *dst, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro LUMCONVERTRANGE 4\ncglobal %1, 2, 2, 7, dst, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add            dstq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstq+widthq]\n    punpckhwd        m1, m0, m6\n    punpcklwd        m0, m6\n    pmaddwd          m0, m4\n    pmaddwd          m1, m4\n    paddd            m0, m5\n    paddd            m1, m5\n    psrad            m0, %4\n    psrad            m1, %4\n    packssdw         m0, m1\n    movu  [dstq+widthq], m0\n    add          widthq, mmsize\n    jl .loop\n    RET\n%endmacro\n\n;-----------------------------------------------------------------------------\n; chrConvertRange\n;\n; void ff_chrRangeToJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n; void ff_chrRangeFromJpeg_<opt>(int16_t *dstU, int16_t *dstV, int width);\n;\n;-----------------------------------------------------------------------------\n\n%macro CHRCONVERTRANGE 4\ncglobal %1, 3, 3, 7, dstU, dstV, width\n    shl          widthd, 1\n    VBROADCASTI128   m4, [%2]\n    VBROADCASTI128   m5, [%3]\n    pxor             m6, m6\n    add           dstUq, widthq\n    add           dstVq, widthq\n    neg          widthq\n.loop:\n    movu             m0, [dstUq+widthq]\n    movu             m2, [dstVq+widthq]\n    punpckhwd        m1, m0, m6\n    punpckhwd        m3, m2, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/range_convert.asm", "license": "LGPL-2.1", "commit": "f6859cade3a8e13956873df345e7472f9c78eea6", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f6859cade3a8e13956873df345e7472f9c78eea6/libswscale/x86/range_convert.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\npb_shuffle3102: db 3, 1, 0, 2, 7, 5, 4, 6, 11, 9, 8, 10, 15, 13, 12, 14\npb_shuffle2013: db 2, 0, 1, 3, 6, 4, 5, 7, 10, 8, 9, 11, 14, 12, 13, 15\npb_shuffle2130: db 2, 1, 3, 0, 6, 5, 7, 4, 10, 9, 11, 8, 14, 13, 15, 12\npb_shuffle1203: db 1, 2, 0, 3, 5, 6, 4, 7, 9, 10, 8, 11, 13, 14, 12, 15\n\n%if HAVE_AVX512ICL_EXTERNAL\n; shuffle vector to rearrange packuswb result to be linear\nshuf_packus: db  0,  1,  2,  3, 16, 17, 18, 19, 32, 33, 34, 35, 48, 49, 50, 51,\\\n                 4,  5,  6,  7, 20, 21, 22, 23, 36, 37, 38, 39, 52, 53, 54, 55,\\\n                 8,  9, 10, 11, 24, 25, 26, 27, 40, 41, 42, 43, 56, 57, 58, 59,\\\n                12, 13, 14, 15, 28, 29, 30, 31, 44, 45, 46, 47, 60, 61, 62, 63\n\n; shuffle vector to combine odd elements from two vectors to extract Y\nshuf_perm2b: db  1,  3,   5,   7,   9,  11,  13,  15,  17,  19,  21,  23,  25,  27,  29,  31,\\\n                33, 35,  37,  39,  41,  43,  45,  47,  49,  51,  53,  55,  57,  59,  61,  63,\\\n                65, 67,  69,  71,  73,  75,  77,  79,  81,  83,  85,  87,  89,  91,  93,  95,\\\n                97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127\n%endif\n\n%if HAVE_AVX2_EXTERNAL\n; shuffle vector to rearrange packuswb result to be linear\nshuf_packus_avx2: db  0, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0,\\\n                      2, 0, 0, 0, 6, 0, 0, 0, 3, 0, 0, 0, 7, 0, 0, 0,\n%endif\n\nSECTION .text\n\n%macro RSHIFT_COPY 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "4,  5,  6,  7, 20, 21, 22, 23, 36, 37, 38, 39, 52, 53, 54, 55,\\\n                 8,  9, 10, 11, 24, 25, 26, 27, 40, 41, 42, 43, 56, 57, 58, 59,\\\n                12, 13, 14, 15, 28, 29, 30, 31, 44, 45, 46, 47, 60, 61, 62, 63\n\n; shuffle vector to combine odd elements from two vectors to extract Y\nshuf_perm2b: db  1,  3,   5,   7,   9,  11,  13,  15,  17,  19,  21,  23,  25,  27,  29,  31,\\\n                33, 35,  37,  39,  41,  43,  45,  47,  49,  51,  53,  55,  57,  59,  61,  63,\\\n                65, 67,  69,  71,  73,  75,  77,  79,  81,  83,  85,  87,  89,  91,  93,  95,\\\n                97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127\n%endif\n\n%if HAVE_AVX2_EXTERNAL\n; shuffle vector to rearrange packuswb result to be linear\nshuf_packus_avx2: db  0, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0,\\\n                      2, 0, 0, 0, 6, 0, 0, 0, 3, 0, 0, 0, 7, 0, 0, 0,\n%endif\n\nSECTION .text\n\n%macro RSHIFT_COPY 3\n; %1 dst ; %2 src ; %3 shift\n%if cpuflag(avx) || cpuflag(avx2) || cpuflag(avx512icl)\n    psrldq  %1, %2, %3\n%else\n    mova           %1, %2\n    RSHIFT         %1, %3\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn      wq, wd\n    mov               xq, wq\n\n    add             srcq, wq\n    add             dstq, wq\n    neg               wq\n\n%if mmsize == 64\n    and                    xq, mmsize - 4\n    shr                    xq, 2\n    mov                  tmpd, -1\n    shlx                 tmpd, tmpd, xd\n    not                  tmpd\n    kmovw                  k7, tmpd\n    vmovdqu32       m1{k7}{z}, [srcq + wq]\n    pshufb                 m1, m0\n    vmovdqu32 [dstq + wq]{k7}, m1\n    lea                    wq, [wq + 4 * xq]\n%else\n    ;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n    .loop_scalar:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "add             dstq, wq\n    neg               wq\n\n%if mmsize == 64\n    and                    xq, mmsize - 4\n    shr                    xq, 2\n    mov                  tmpd, -1\n    shlx                 tmpd, tmpd, xd\n    not                  tmpd\n    kmovw                  k7, tmpd\n    vmovdqu32       m1{k7}{z}, [srcq + wq]\n    pshufb                 m1, m0\n    vmovdqu32 [dstq + wq]{k7}, m1\n    lea                    wq, [wq + 4 * xq]\n%else\n    ;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n    .loop_scalar:\n        mov          tmpb, [srcq + wq + %1]\n        mov [dstq+wq + 0], tmpb\n        mov          tmpb, [srcq + wq + %2]\n        mov [dstq+wq + 1], tmpb\n        mov          tmpb, [srcq + wq + %3]\n        mov [dstq+wq + 2], tmpb\n        mov          tmpb, [srcq + wq + %4]\n        mov [dstq+wq + 3], tmpb\n        add            wq, 4\n        sub            xq, 4\n        jg .loop_scalar\n%endif\n\n    ;check if src_size < mmsize\n    cmp wq, 0\n    jge .end\n\n    .loop_simd:\n        movu            m1, [srcq + wq]\n        pshufb          m1, m0\n        movu   [dstq + wq], m1\n        add             wq, mmsize\n        jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:4", "text": "movu   [dstq + wq], m1\n        add             wq, mmsize\n        jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8 + cpuflag(avx2) + cpuflag(avx512icl), ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n%if mmsize == 64\n    vpternlogd   m1, m1, m1, 0xff  ; m1 = _mm512_set1_epi8(0xff)\n    movu         m8, [shuf_packus]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:5", "text": "SHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8 + cpuflag(avx2) + cpuflag(avx512icl), ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n%if mmsize == 64\n    vpternlogd   m1, m1, m1, 0xff  ; m1 = _mm512_set1_epi8(0xff)\n    movu         m8, [shuf_packus]\n    movu         m9, [shuf_perm2b]\n%else\n    %if cpuflag(avx2)\n        movu     m8, [shuf_packus_avx2]\n    %endif\n    pcmpeqw      m1, m1\n%endif\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n%if mmsize == 64\n    shr     xq, 1\n    mov   tmpq, -1\n    shlx  tmpq, tmpq, xq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:6", "text": "add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n%if mmsize == 64\n    shr     xq, 1\n    mov   tmpq, -1\n    shlx  tmpq, tmpq, xq\n    not   tmpq\n    kmovq   k7, tmpq ; write mask for U/V\n    kmovd   k1, tmpd ; write mask for 1st half of Y\n    kmovw   k3, tmpd ; read mask for 1st vector\n    shr   tmpq, 16\n    kmovw   k4, tmpd ; read mask for 2nd vector\n    shr   tmpq, 16\n    kmovd   k2, tmpd ; write mask for 2nd half of Y\n    kmovw   k5, tmpd ; read mask for 3rd vector\n    shr   tmpd, 16\n    kmovw   k6, tmpd ; read mask for 4th vector\n\n    vmovdqu32  m2{k3}{z}, [srcq + wtwoq             ]\n    vmovdqu32  m3{k4}{z}, [srcq + wtwoq + mmsize    ]\n    vmovdqu32  m4{k5}{z}, [srcq + wtwoq + mmsize * 2]\n    vmovdqu32  m5{k6}{z}, [srcq + wtwoq + mmsize * 3]\n\n    ; extract y part 1\n    mova                             m6, m9\n    vpermi2b                         m6, m2, m3 ; UYVY UYVY -> YYYY using permute\n    vmovdqu16          [ydstq + wq]{k1}, m6\n\n    ; extract y part 2\n    mova                             m7, m9\n    vpermi2b                         m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n    vmovdqu16 [ydstq + wq + mmsize]{k2}, m7\n\n    ; extract uv\n    pand                         m2, m1     ; UxVx...\n    pand                         m3, m1     ; UxVx...\n    pand                         m4, m1     ; UxVx...\n    pand                         m5, m1     ; UxVx...\n    packuswb                     m2, m3     ; UVUV...\n    packuswb                     m4, m5     ; UVUV...\n\n    ; U\n    pand                         m6, m2, m1 ; UxUx...\n    pand                         m7, m4, m1 ; UxUx...\n    packuswb                     m6, m7     ; UUUU\n    vpermb                       m6, m8, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "vmovdqu16          [ydstq + wq]{k1}, m6\n\n    ; extract y part 2\n    mova                             m7, m9\n    vpermi2b                         m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n    vmovdqu16 [ydstq + wq + mmsize]{k2}, m7\n\n    ; extract uv\n    pand                         m2, m1     ; UxVx...\n    pand                         m3, m1     ; UxVx...\n    pand                         m4, m1     ; UxVx...\n    pand                         m5, m1     ; UxVx...\n    packuswb                     m2, m3     ; UVUV...\n    packuswb                     m4, m5     ; UVUV...\n\n    ; U\n    pand                         m6, m2, m1 ; UxUx...\n    pand                         m7, m4, m1 ; UxUx...\n    packuswb                     m6, m7     ; UUUU\n    vpermb                       m6, m8, m6\n    vmovdqu8   [udstq + whalfq]{k7}, m6\n\n    ; V\n    psrlw                        m2, 8      ; VxVx...\n    psrlw                        m4, 8      ; VxVx...\n    packuswb                     m2, m4     ; VVVV\n    vpermb                       m2, m8, m2\n    vmovdqu8   [vdstq + whalfq]{k7}, m2\n\n    lea      wq, [   wq + 2 * xq]\n    lea   wtwoq, [wtwoq + 4 * xq]\n    add  whalfq, xq\n%else\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n%endif\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:8", "text": "mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n%endif\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n\n%if mmsize == 64\n        ; extract y part 1\n        mova                    m6, m9\n        vpermi2b                m6, m2, m3 ; UYVY UYVY -> YYYY using permute\n        movu          [ydstq + wq], m6\n\n        ; extract y part 2\n        mova                    m7, m9\n        vpermi2b                m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n        movu [ydstq + wq + mmsize], m7\n%else\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1    ; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1    ; YxYx YxYx...\n\n        packuswb       m6, m7    ; YYYY YYYY...\n%if mmsize == 32\n        vpermq         m6, m6, 0xd8\n%endif\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1    ; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1    ; YxYx YxYx...\n\n        packuswb       m6, m7    ; YYYY YYYY...\n%if mmsize == 32\n        vpermq         m6, m6, 0xd8\n%endif\n        movu [ydstq + wq + mmsize], m6\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:9", "text": "packuswb       m6, m7    ; YYYY YYYY...\n%if mmsize == 32\n        vpermq         m6, m6, 0xd8\n%endif\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1    ; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1    ; YxYx YxYx...\n\n        packuswb       m6, m7    ; YYYY YYYY...\n%if mmsize == 32\n        vpermq         m6, m6, 0xd8\n%endif\n        movu [ydstq + wq + mmsize], m6\n%endif\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n%if mmsize == 64\n        vpermb   m6, m8, m6\n%elif mmsize == 32\n        vpermd   m6, m8, m6\n%endif\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n%if mmsize == 64\n        vpermb     m2, m8, m2\n%elif mmsize == 32\n        vpermd     m2, m8, m2\n%endif\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:10", "text": "movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n%if mmsize == 64\n        vpermb     m2, m8, m2\n%elif mmsize == 32\n        vpermd     m2, m8, m2\n%endif\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nUYVY_TO_YUV422\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 361, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:11", "text": "INIT_XMM avx\nUYVY_TO_YUV422\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nUYVY_TO_YUV422\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/rgb_2_rgb.asm", "line_start": 401, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\npb_shuffle3102: db 3, 1, 0, 2, 7, 5, 4, 6, 11, 9, 8, 10, 15, 13, 12, 14\npb_shuffle2013: db 2, 0, 1, 3, 6, 4, 5, 7, 10, 8, 9, 11, 14, 12, 13, 15\npb_shuffle2130: db 2, 1, 3, 0, 6, 5, 7, 4, 10, 9, 11, 8, 14, 13, 15, 12\npb_shuffle1203: db 1, 2, 0, 3, 5, 6, 4, 7, 9, 10, 8, 11, 13, 14, 12, 15\n\n%if HAVE_AVX512ICL_EXTERNAL\n; shuffle vector to rearrange packuswb result to be linear\nshuf_packus: db  0,  1,  2,  3, 16, 17, 18, 19, 32, 33, 34, 35, 48, 49, 50, 51,\\\n                 4,  5,  6,  7, 20, 21, 22, 23, 36, 37, 38, 39, 52, 53, 54, 55,\\\n                 8,  9, 10, 11, 24, 25, 26, 27, 40, 41, 42, 43, 56, 57, 58, 59,\\\n                12, 13, 14, 15, 28, 29, 30, 31, 44, 45, 46, 47, 60, 61, 62, 63\n\n; shuffle vector to combine odd elements from two vectors to extract Y\nshuf_perm2b: db  1,  3,   5,   7,   9,  11,  13,  15,  17,  19,  21,  23,  25,  27,  29,  31,\\\n                33, 35,  37,  39,  41,  43,  45,  47,  49,  51,  53,  55,  57,  59,  61,  63,\\\n                65, 67,  69,  71,  73,  75,  77,  79,  81,  83,  85,  87,  89,  91,  93,  95,\\\n                97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127\n%endif\n\nSECTION .text\n\n%macro RSHIFT_COPY 5\n; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "4,  5,  6,  7, 20, 21, 22, 23, 36, 37, 38, 39, 52, 53, 54, 55,\\\n                 8,  9, 10, 11, 24, 25, 26, 27, 40, 41, 42, 43, 56, 57, 58, 59,\\\n                12, 13, 14, 15, 28, 29, 30, 31, 44, 45, 46, 47, 60, 61, 62, 63\n\n; shuffle vector to combine odd elements from two vectors to extract Y\nshuf_perm2b: db  1,  3,   5,   7,   9,  11,  13,  15,  17,  19,  21,  23,  25,  27,  29,  31,\\\n                33, 35,  37,  39,  41,  43,  45,  47,  49,  51,  53,  55,  57,  59,  61,  63,\\\n                65, 67,  69,  71,  73,  75,  77,  79,  81,  83,  85,  87,  89,  91,  93,  95,\\\n                97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127\n%endif\n\nSECTION .text\n\n%macro RSHIFT_COPY 5\n; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn      wq, wd\n    mov               xq, wq\n\n    add             srcq, wq\n    add             dstq, wq\n    neg               wq\n\n%if mmsize == 64\n    and                    xq, mmsize - 4\n    shr                    xq, 2\n    mov                  tmpd, -1\n    shlx                 tmpd, tmpd, xd\n    not                  tmpd\n    kmovw                  k7, tmpd\n    vmovdqu32       m1{k7}{z}, [srcq + wq]\n    pshufb                 m1, m0\n    vmovdqu32 [dstq + wq]{k7}, m1\n    lea                    wq, [wq + 4 * xq]\n%else\n    ;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n    .loop_scalar:\n        mov          tmpb, [srcq + wq + %1]\n        mov [dstq+wq + 0], tmpb\n        mov          tmpb, [srcq + wq + %2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "%if mmsize == 64\n    and                    xq, mmsize - 4\n    shr                    xq, 2\n    mov                  tmpd, -1\n    shlx                 tmpd, tmpd, xd\n    not                  tmpd\n    kmovw                  k7, tmpd\n    vmovdqu32       m1{k7}{z}, [srcq + wq]\n    pshufb                 m1, m0\n    vmovdqu32 [dstq + wq]{k7}, m1\n    lea                    wq, [wq + 4 * xq]\n%else\n    ;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n    .loop_scalar:\n        mov          tmpb, [srcq + wq + %1]\n        mov [dstq+wq + 0], tmpb\n        mov          tmpb, [srcq + wq + %2]\n        mov [dstq+wq + 1], tmpb\n        mov          tmpb, [srcq + wq + %3]\n        mov [dstq+wq + 2], tmpb\n        mov          tmpb, [srcq + wq + %4]\n        mov [dstq+wq + 3], tmpb\n        add            wq, 4\n        sub            xq, 4\n        jg .loop_scalar\n%endif\n\n    ;check if src_size < mmsize\n    cmp wq, 0\n    jge .end\n\n    .loop_simd:\n        movu            m1, [srcq + wq]\n        pshufb          m1, m0\n        movu   [dstq + wq], m1\n        add             wq, mmsize\n        jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:4", "text": ".end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\n%if mmsize == 64\n; need two more registers to store shuffle vectors for AVX512ICL\ncglobal uyvytoyuv422, 9, 14, 10, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n%else\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n%endif\n    pxor         m0, m0\n%if mmsize == 64", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:5", "text": "SHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\n%if mmsize == 64\n; need two more registers to store shuffle vectors for AVX512ICL\ncglobal uyvytoyuv422, 9, 14, 10, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n%else\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n%endif\n    pxor         m0, m0\n%if mmsize == 64\n    vpternlogd   m1, m1, m1, 0xff  ; m1 = _mm512_set1_epi8(0xff)\n    movu         m8, [shuf_packus]\n    movu         m9, [shuf_perm2b]\n%else\n    pcmpeqw      m1, m1\n%endif\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n%if mmsize == 64\n    shr     xq, 1\n    mov   tmpq, -1\n    shlx  tmpq, tmpq, xq\n    not   tmpq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:6", "text": "add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n%if mmsize == 64\n    shr     xq, 1\n    mov   tmpq, -1\n    shlx  tmpq, tmpq, xq\n    not   tmpq\n    kmovq   k7, tmpq ; write mask for U/V\n    kmovd   k1, tmpd ; write mask for 1st half of Y\n    kmovw   k3, tmpd ; read mask for 1st vector\n    shr   tmpq, 16\n    kmovw   k4, tmpd ; read mask for 2nd vector\n    shr   tmpq, 16\n    kmovd   k2, tmpd ; write mask for 2nd half of Y\n    kmovw   k5, tmpd ; read mask for 3rd vector\n    shr   tmpd, 16\n    kmovw   k6, tmpd ; read mask for 4th vector\n\n    vmovdqu32  m2{k3}{z}, [srcq + wtwoq             ]\n    vmovdqu32  m3{k4}{z}, [srcq + wtwoq + mmsize    ]\n    vmovdqu32  m4{k5}{z}, [srcq + wtwoq + mmsize * 2]\n    vmovdqu32  m5{k6}{z}, [srcq + wtwoq + mmsize * 3]\n\n    ; extract y part 1\n    mova                             m6, m9\n    vpermi2b                         m6, m2, m3 ; UYVY UYVY -> YYYY using permute\n    vmovdqu16          [ydstq + wq]{k1}, m6\n\n    ; extract y part 2\n    mova                             m7, m9\n    vpermi2b                         m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n    vmovdqu16 [ydstq + wq + mmsize]{k2}, m7\n\n    ; extract uv\n    pand                         m2, m1     ; UxVx...\n    pand                         m3, m1     ; UxVx...\n    pand                         m4, m1     ; UxVx...\n    pand                         m5, m1     ; UxVx...\n    packuswb                     m2, m3     ; UVUV...\n    packuswb                     m4, m5     ; UVUV...\n\n    ; U\n    pand                         m6, m2, m1 ; UxUx...\n    pand                         m7, m4, m1 ; UxUx...\n    packuswb                     m6, m7     ; UUUU\n    vpermb                       m6, m8, m6\n    vmovdqu8   [udstq + whalfq]{k7}, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "; extract y part 2\n    mova                             m7, m9\n    vpermi2b                         m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n    vmovdqu16 [ydstq + wq + mmsize]{k2}, m7\n\n    ; extract uv\n    pand                         m2, m1     ; UxVx...\n    pand                         m3, m1     ; UxVx...\n    pand                         m4, m1     ; UxVx...\n    pand                         m5, m1     ; UxVx...\n    packuswb                     m2, m3     ; UVUV...\n    packuswb                     m4, m5     ; UVUV...\n\n    ; U\n    pand                         m6, m2, m1 ; UxUx...\n    pand                         m7, m4, m1 ; UxUx...\n    packuswb                     m6, m7     ; UUUU\n    vpermb                       m6, m8, m6\n    vmovdqu8   [udstq + whalfq]{k7}, m6\n\n    ; V\n    psrlw                        m2, 8      ; VxVx...\n    psrlw                        m4, 8      ; VxVx...\n    packuswb                     m2, m4     ; VVVV\n    vpermb                       m2, m8, m2\n    vmovdqu8   [vdstq + whalfq]{k7}, m2\n\n    lea      wq, [   wq + 2 * xq]\n    lea   wtwoq, [wtwoq + 4 * xq]\n    add  whalfq, xq\n%else\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n%endif\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n%if mmsize == 32\n        movu   xm2, [srcq + wtwoq         ]\n        movu   xm3, [srcq + wtwoq + 16    ]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:8", "text": "mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n%endif\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n%if mmsize == 32\n        movu   xm2, [srcq + wtwoq         ]\n        movu   xm3, [srcq + wtwoq + 16    ]\n        movu   xm4, [srcq + wtwoq + 16 * 2]\n        movu   xm5, [srcq + wtwoq + 16 * 3]\n        vinserti128 m2, m2, [srcq + wtwoq + 16 * 4], 1\n        vinserti128 m3, m3, [srcq + wtwoq + 16 * 5], 1\n        vinserti128 m4, m4, [srcq + wtwoq + 16 * 6], 1\n        vinserti128 m5, m5, [srcq + wtwoq + 16 * 7], 1\n%else\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n%endif\n\n%if mmsize == 64\n        ; extract y part 1\n        mova                    m6, m9\n        vpermi2b                m6, m2, m3 ; UYVY UYVY -> YYYY using permute\n        movu          [ydstq + wq], m6\n\n        ; extract y part 2\n        mova                    m7, m9\n        vpermi2b                m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n        movu [ydstq + wq + mmsize], m7\n%else\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:9", "text": "mova                    m7, m9\n        vpermi2b                m7, m4, m5 ; UYVY UYVY -> YYYY using permute\n        movu [ydstq + wq + mmsize], m7\n%else\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6\n%endif\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n%if mmsize == 64\n        vpermb   m6, m8, m6\n%endif\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n%if mmsize == 64\n        vpermb     m2, m8, m2\n%endif\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:10", "text": "vpermb   m6, m8, m6\n%endif\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n%if mmsize == 64\n        vpermb     m2, m8, m2\n%endif\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nUYVY_TO_YUV422\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e18f87ed9f9f61c980420b315dc8ecb308831bc5", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e18f87ed9f9f61c980420b315dc8ecb308831bc5/libswscale/x86/rgb_2_rgb.asm", "line_start": 361, "line_end": 411}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\npb_shuffle3102: db 3, 1, 0, 2, 7, 5, 4, 6, 11, 9, 8, 10, 15, 13, 12, 14\npb_shuffle2013: db 2, 0, 1, 3, 6, 4, 5, 7, 10, 8, 9, 11, 14, 12, 13, 15\npb_shuffle2130: db 2, 1, 3, 0, 6, 5, 7, 4, 10, 9, 11, 8, 14, 13, 15, 12\npb_shuffle1203: db 1, 2, 0, 3, 5, 6, 4, 7, 9, 10, 8, 11, 13, 14, 12, 15\n\nSECTION .text\n\n%macro RSHIFT_COPY 5\n; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn      wq, wd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn      wq, wd\n    mov               xq, wq\n\n    add             srcq, wq\n    add             dstq, wq\n    neg               wq\n\n%if mmsize == 64\n    and                    xq, mmsize - 4\n    shr                    xq, 2\n    mov                  tmpd, -1\n    shlx                 tmpd, tmpd, xd\n    not                  tmpd\n    kmovw                  k7, tmpd\n    vmovdqu32       m1{k7}{z}, [srcq + wq]\n    pshufb                 m1, m0\n    vmovdqu32 [dstq + wq]{k7}, m1\n    lea                    wq, [wq + 4 * xq]\n%else\n    ;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n    .loop_scalar:\n        mov          tmpb, [srcq + wq + %1]\n        mov [dstq+wq + 0], tmpb\n        mov          tmpb, [srcq + wq + %2]\n        mov [dstq+wq + 1], tmpb\n        mov          tmpb, [srcq + wq + %3]\n        mov [dstq+wq + 2], tmpb\n        mov          tmpb, [srcq + wq + %4]\n        mov [dstq+wq + 3], tmpb\n        add            wq, 4\n        sub            xq, 4\n        jg .loop_scalar\n%endif\n\n    ;check if src_size < mmsize\n    cmp wq, 0\n    jge .end", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "je .loop_simd\n\n    .loop_scalar:\n        mov          tmpb, [srcq + wq + %1]\n        mov [dstq+wq + 0], tmpb\n        mov          tmpb, [srcq + wq + %2]\n        mov [dstq+wq + 1], tmpb\n        mov          tmpb, [srcq + wq + %3]\n        mov [dstq+wq + 2], tmpb\n        mov          tmpb, [srcq + wq + %4]\n        mov [dstq+wq + 3], tmpb\n        add            wq, 4\n        sub            xq, 4\n        jg .loop_scalar\n%endif\n\n    ;check if src_size < mmsize\n    cmp wq, 0\n    jge .end\n\n    .loop_simd:\n        movu            m1, [srcq + wq]\n        pshufb          m1, m0\n        movu   [dstq + wq], m1\n        add             wq, mmsize\n        jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:4", "text": "SHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n%if ARCH_X86_64\n%if HAVE_AVX512ICL_EXTERNAL\nINIT_ZMM avx512icl\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n    pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:5", "text": "pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n%if mmsize == 32\n        movu   xm2, [srcq + wtwoq         ]\n        movu   xm3, [srcq + wtwoq + 16    ]\n        movu   xm4, [srcq + wtwoq + 16 * 2]\n        movu   xm5, [srcq + wtwoq + 16 * 3]\n        vinserti128 m2, m2, [srcq + wtwoq + 16 * 4], 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:6", "text": "mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n%if mmsize == 32\n        movu   xm2, [srcq + wtwoq         ]\n        movu   xm3, [srcq + wtwoq + 16    ]\n        movu   xm4, [srcq + wtwoq + 16 * 2]\n        movu   xm5, [srcq + wtwoq + 16 * 3]\n        vinserti128 m2, m2, [srcq + wtwoq + 16 * 4], 1\n        vinserti128 m3, m3, [srcq + wtwoq + 16 * 5], 1\n        vinserti128 m4, m4, [srcq + wtwoq + 16 * 6], 1\n        vinserti128 m5, m5, [srcq + wtwoq + 16 * 7], 1\n%else\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n%endif\n\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:8", "text": "add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "59f9dbaa31263c021eae5e33bb387b0c562d481d", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/59f9dbaa31263c021eae5e33bb387b0c562d481d/libswscale/x86/rgb_2_rgb.asm", "line_start": 281, "line_end": 306}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\npb_shuffle3102: db 3, 1, 0, 2, 7, 5, 4, 6, 11, 9, 8, 10, 15, 13, 12, 14\npb_shuffle2013: db 2, 0, 1, 3, 6, 4, 5, 7, 10, 8, 9, 11, 14, 12, 13, 15\npb_shuffle2130: db 2, 1, 3, 0, 6, 5, 7, 4, 10, 9, 11, 8, 14, 13, 15, 12\npb_shuffle1203: db 1, 2, 0, 3, 5, 6, 4, 7, 9, 10, 8, 11, 13, 14, 12, 15\n\nSECTION .text\n\n%macro RSHIFT_COPY 5\n; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn wq, wd", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + %1]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + %2]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + %3]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + %4]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu           m1, [srcq+wq]\n    pshufb         m1, m0\n    movu    [dstq+wq], m1\n    add            wq, mmsize\n    jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu           m1, [srcq+wq]\n    pshufb         m1, m0\n    movu    [dstq+wq], m1\n    add            wq, mmsize\n    jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\nSHUFFLE_BYTES 3, 1, 0, 2\nSHUFFLE_BYTES 2, 0, 1, 3\nSHUFFLE_BYTES 2, 1, 3, 0\nSHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n    pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:4", "text": "SHUFFLE_BYTES 1, 2, 0, 3\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n    pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:5", "text": "je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n%if mmsize == 32\n        movu   xm2, [srcq + wtwoq         ]\n        movu   xm3, [srcq + wtwoq + 16    ]\n        movu   xm4, [srcq + wtwoq + 16 * 2]\n        movu   xm5, [srcq + wtwoq + 16 * 3]\n        vinserti128 m2, m2, [srcq + wtwoq + 16 * 4], 1\n        vinserti128 m3, m3, [srcq + wtwoq + 16 * 5], 1\n        vinserti128 m4, m4, [srcq + wtwoq + 16 * 6], 1\n        vinserti128 m5, m5, [srcq + wtwoq + 16 * 7], 1\n%else\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n%endif\n\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:6", "text": "%endif\n\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "78ba06928a69ecb464221f71dbdedabc9d714176", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/78ba06928a69ecb464221f71dbdedabc9d714176/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 278}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\n\nSECTION .text\n\n%macro RSHIFT_COPY 5\n; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "17c3cc5bb60f3a6ac5569d56c60956bc4ab77ed8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17c3cc5bb60f3a6ac5569d56c60956bc4ab77ed8/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + %1]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + %2]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + %3]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + %4]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu           m1, [srcq+wq]\n    pshufb         m1, m0\n    movu    [dstq+wq], m1\n    add            wq, mmsize\n    jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "17c3cc5bb60f3a6ac5569d56c60956bc4ab77ed8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17c3cc5bb60f3a6ac5569d56c60956bc4ab77ed8/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "cmp wq, 0\njge .end\n\n.loop_simd:\n    movu           m1, [srcq+wq]\n    pshufb         m1, m0\n    movu    [dstq+wq], m1\n    add            wq, mmsize\n    jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n    pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "17c3cc5bb60f3a6ac5569d56c60956bc4ab77ed8", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/17c3cc5bb60f3a6ac5569d56c60956bc4ab77ed8/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "e8cef5e1529b1975cb36a35b3848eff0c5aeda95", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/e8cef5e1529b1975cb36a35b3848eff0c5aeda95/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 264}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_mask_shuffle2103_mmx times 8 dw 255\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\n\nSECTION .text\n\n%macro RSHIFT_COPY 5\n; %1 dst ; %2 src ; %3 shift\n%if mmsize == 32\n    vperm2i128 %1, %2, %3, %5\n    RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_2103_mmext (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\nINIT_MMX mmxext\ncglobal shuffle_bytes_2103, 3, 5, 8, src, dst, w, tmp, x\n    mova   m6, [pb_mask_shuffle2103_mmx]\n    mova   m7, m6\n    psllq  m7, 8\n\n    movsxdifnidn wq, wd\n    mov xq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "RSHIFT         %1, %4\n%elif cpuflag(avx)\n    psrldq  %1, %2, %4\n%else\n    mova           %1, %2\n    RSHIFT         %1, %4\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_2103_mmext (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\nINIT_MMX mmxext\ncglobal shuffle_bytes_2103, 3, 5, 8, src, dst, w, tmp, x\n    mova   m6, [pb_mask_shuffle2103_mmx]\n    mova   m7, m6\n    psllq  m7, 8\n\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize*2 -4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + 2]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + 1]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + 0]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + 3]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize * 2\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu     m0, [srcq+wq]\n    movu     m1, [srcq+wq+8]\n\n    pshufw   m3, m0, 177\n    pshufw   m5, m1, 177\n\n    pand     m0, m7\n    pand     m3, m6\n\n    pand     m1, m7\n    pand     m5, m6\n\n    por      m0, m3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "jg .loop_scalar\n\n;check if src_size < mmsize * 2\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu     m0, [srcq+wq]\n    movu     m1, [srcq+wq+8]\n\n    pshufw   m3, m0, 177\n    pshufw   m5, m1, 177\n\n    pand     m0, m7\n    pand     m3, m6\n\n    pand     m1, m7\n    pand     m5, m6\n\n    por      m0, m3\n    por      m1, m5\n\n    movu      [dstq+wq], m0\n    movu  [dstq+wq + 8], m1\n\n    add              wq, mmsize*2\n    jl .loop_simd\n\n.end:\n    emms\n    RET\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + %1]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + %2]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + %3]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + %4]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:4", "text": "mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + %1]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + %2]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + %3]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + %4]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu           m1, [srcq+wq]\n    pshufb         m1, m0\n    movu    [dstq+wq], m1\n    add            wq, mmsize\n    jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:5", "text": "SHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n    pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:6", "text": ".loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n%if mmsize == 32\n        movu   xm2, [srcq + wtwoq         ]\n        movu   xm3, [srcq + wtwoq + 16    ]\n        movu   xm4, [srcq + wtwoq + 16 * 2]\n        movu   xm5, [srcq + wtwoq + 16 * 3]\n        vinserti128 m2, m2, [srcq + wtwoq + 16 * 4], 1\n        vinserti128 m3, m3, [srcq + wtwoq + 16 * 5], 1\n        vinserti128 m4, m4, [srcq + wtwoq + 16 * 6], 1\n        vinserti128 m5, m5, [srcq + wtwoq + 16 * 7], 1\n%else\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n%endif\n\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "movu   xm3, [srcq + wtwoq + 16    ]\n        movu   xm4, [srcq + wtwoq + 16 * 2]\n        movu   xm5, [srcq + wtwoq + 16 * 3]\n        vinserti128 m2, m2, [srcq + wtwoq + 16 * 4], 1\n        vinserti128 m3, m3, [srcq + wtwoq + 16 * 5], 1\n        vinserti128 m4, m4, [srcq + wtwoq + 16 * 6], 1\n        vinserti128 m5, m5, [srcq + wtwoq + 16 * 7], 1\n%else\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n%endif\n\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, m4, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, m5, 1, 0x20 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, m2, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, m3, 1, 0x13 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:8", "text": "packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\nINIT_YMM avx2\nUYVY_TO_YUV422\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "c578bb9864de0e9d63dbd2e334a624ad1b99eaf2", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c578bb9864de0e9d63dbd2e334a624ad1b99eaf2/libswscale/x86/rgb_2_rgb.asm", "line_start": 281, "line_end": 328}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:1", "text": ";******************************************************************************\n;* Copyright Nick Kurshev\n;* Copyright Michael (michaelni@gmx.at)\n;* Copyright 2018 Jokyo Images\n;* Copyright Ivo van Poorten\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\npb_mask_shuffle2103_mmx times 8 dw 255\npb_shuffle2103: db 2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15\npb_shuffle0321: db 0, 3, 2, 1, 4, 7, 6, 5, 8, 11, 10, 9, 12, 15, 14, 13\npb_shuffle1230: db 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12\npb_shuffle3012: db 3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14\npb_shuffle3210: db 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12\n\nSECTION .text\n\n%macro RSHIFT_COPY 3\n; %1 dst ; %2 src ; %3 shift\n%if cpuflag(avx)\n    psrldq  %1, %2, %3\n%else\n    mova           %1, %2\n    RSHIFT         %1, %3\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_2103_mmext (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\nINIT_MMX mmxext\ncglobal shuffle_bytes_2103, 3, 5, 8, src, dst, w, tmp, x\n    mova   m6, [pb_mask_shuffle2103_mmx]\n    mova   m7, m6\n    psllq  m7, 8\n\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:2", "text": "%else\n    mova           %1, %2\n    RSHIFT         %1, %3\n%endif\n%endmacro\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_2103_mmext (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\nINIT_MMX mmxext\ncglobal shuffle_bytes_2103, 3, 5, 8, src, dst, w, tmp, x\n    mova   m6, [pb_mask_shuffle2103_mmx]\n    mova   m7, m6\n    psllq  m7, 8\n\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize*2 -4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + 2]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + 1]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + 0]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + 3]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize * 2\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu     m0, [srcq+wq]\n    movu     m1, [srcq+wq+8]\n\n    pshufw   m3, m0, 177\n    pshufw   m5, m1, 177\n\n    pand     m0, m7\n    pand     m3, m6\n\n    pand     m1, m7\n    pand     m5, m6\n\n    por      m0, m3\n    por      m1, m5\n\n    movu      [dstq+wq], m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:3", "text": "cmp wq, 0\njge .end\n\n.loop_simd:\n    movu     m0, [srcq+wq]\n    movu     m1, [srcq+wq+8]\n\n    pshufw   m3, m0, 177\n    pshufw   m5, m1, 177\n\n    pand     m0, m7\n    pand     m3, m6\n\n    pand     m1, m7\n    pand     m5, m6\n\n    por      m0, m3\n    por      m1, m5\n\n    movu      [dstq+wq], m0\n    movu  [dstq+wq + 8], m1\n\n    add              wq, mmsize*2\n    jl .loop_simd\n\n.end:\n    emms\n    RET\n\n;------------------------------------------------------------------------------\n; shuffle_bytes_## (const uint8_t *src, uint8_t *dst, int src_size)\n;------------------------------------------------------------------------------\n; %1-4 index shuffle\n%macro SHUFFLE_BYTES 4\ncglobal shuffle_bytes_%1%2%3%4, 3, 5, 2, src, dst, w, tmp, x\n    VBROADCASTI128    m0, [pb_shuffle%1%2%3%4]\n    movsxdifnidn wq, wd\n    mov xq, wq\n\n    add        srcq, wq\n    add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + %1]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + %2]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + %3]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + %4]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:4", "text": "add        dstq, wq\n    neg          wq\n\n;calc scalar loop\n    and xq, mmsize-4\n    je .loop_simd\n\n.loop_scalar:\n   mov          tmpb, [srcq + wq + %1]\n   mov [dstq+wq + 0], tmpb\n   mov          tmpb, [srcq + wq + %2]\n   mov [dstq+wq + 1], tmpb\n   mov          tmpb, [srcq + wq + %3]\n   mov [dstq+wq + 2], tmpb\n   mov          tmpb, [srcq + wq + %4]\n   mov [dstq+wq + 3], tmpb\n   add            wq, 4\n   sub            xq, 4\n   jg .loop_scalar\n\n;check if src_size < mmsize\ncmp wq, 0\njge .end\n\n.loop_simd:\n    movu           m1, [srcq+wq]\n    pshufb         m1, m0\n    movu    [dstq+wq], m1\n    add            wq, mmsize\n    jl .loop_simd\n\n.end:\n    RET\n%endmacro\n\nINIT_XMM ssse3\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:5", "text": "SHUFFLE_BYTES 3, 2, 1, 0\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSHUFFLE_BYTES 2, 1, 0, 3\nSHUFFLE_BYTES 0, 3, 2, 1\nSHUFFLE_BYTES 1, 2, 3, 0\nSHUFFLE_BYTES 3, 0, 1, 2\nSHUFFLE_BYTES 3, 2, 1, 0\n%endif\n%endif\n\n;-----------------------------------------------------------------------------------------------\n; uyvytoyuv422(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\n;              const uint8_t *src, int width, int height,\n;              int lumStride, int chromStride, int srcStride)\n;-----------------------------------------------------------------------------------------------\n%macro UYVY_TO_YUV422 0\ncglobal uyvytoyuv422, 9, 14, 8, ydst, udst, vdst, src, w, h, lum_stride, chrom_stride, src_stride, wtwo, whalf, tmp, x, back_w\n    pxor         m0, m0\n    pcmpeqw      m1, m1\n    psrlw        m1, 8\n\n    movsxdifnidn            wq, wd\n    movsxdifnidn   lum_strideq, lum_strided\n    movsxdifnidn chrom_strideq, chrom_strided\n    movsxdifnidn   src_strideq, src_strided\n\n    mov     back_wq, wq\n    mov      whalfq, wq\n    shr      whalfq, 1     ; whalf = width / 2\n\n    lea srcq, [srcq + wq * 2]\n    add    ydstq, wq\n    add    udstq, whalfq\n    add    vdstq, whalfq\n\n.loop_line:\n    mov          xq, wq\n    mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:6", "text": "mov       wtwoq, wq\n    add       wtwoq, wtwoq ; wtwo = width * 2\n\n    neg       wq\n    neg    wtwoq\n    neg   whalfq\n\n    ;calc scalar loop count\n    and       xq, mmsize * 2 - 1\n    je .loop_simd\n\n    .loop_scalar:\n        mov             tmpb, [srcq + wtwoq + 0]\n        mov [udstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 1]\n        mov     [ydstq + wq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 2]\n        mov [vdstq + whalfq], tmpb\n\n        mov             tmpb, [srcq + wtwoq + 3]\n        mov [ydstq + wq + 1], tmpb\n\n        add      wq, 2\n        add   wtwoq, 4\n        add  whalfq, 1\n        sub      xq, 2\n        jg .loop_scalar\n\n    ; check if simd loop is need\n    cmp      wq, 0\n    jge .end_line\n\n    .loop_simd:\n        movu    m2, [srcq + wtwoq             ]\n        movu    m3, [srcq + wtwoq + mmsize    ]\n        movu    m4, [srcq + wtwoq + mmsize * 2]\n        movu    m5, [srcq + wtwoq + mmsize * 3]\n\n        ; extract y part 1\n        RSHIFT_COPY    m6, m2, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:7", "text": "; extract y part 1\n        RSHIFT_COPY    m6, m2, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m3, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb       m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq], m6\n\n        ; extract y part 2\n        RSHIFT_COPY    m6, m4, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m6, m1; YxYx YxYx...\n\n        RSHIFT_COPY    m7, m5, 1 ; UYVY UYVY -> YVYU YVY...\n        pand           m7, m1 ; YxYx YxYx...\n\n        packuswb                m6, m7 ; YYYY YYYY...\n        movu [ydstq + wq + mmsize], m6\n\n        ; extract uv\n        pand       m2, m1   ; UxVx...\n        pand       m3, m1   ; UxVx...\n        pand       m4, m1   ; UxVx...\n        pand       m5, m1   ; UxVx...\n\n        packuswb   m2, m3   ; UVUV...\n        packuswb   m4, m5   ; UVUV...\n\n        ; U\n        pand       m6, m2, m1 ; UxUx...\n        pand       m7, m4, m1 ; UxUx...\n\n        packuswb m6, m7 ; UUUU\n        movu   [udstq + whalfq], m6\n\n\n        ; V\n        psrlw      m2, 8  ; VxVx...\n        psrlw      m4, 8  ; VxVx...\n        packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/rgb_2_rgb.asm:8", "text": "packuswb   m2, m4 ; VVVV\n        movu   [vdstq + whalfq], m2\n\n        add   whalfq, mmsize\n        add    wtwoq, mmsize * 4\n        add       wq, mmsize * 2\n        jl .loop_simd\n\n    .end_line:\n        add        srcq, src_strideq\n        add        ydstq, lum_strideq\n        add        udstq, chrom_strideq\n        add        vdstq, chrom_strideq\n\n        ;restore initial state of line variable\n        mov           wq, back_wq\n        mov          xq, wq\n        mov      whalfq, wq\n        shr      whalfq, 1     ; whalf = width / 2\n        sub          hd, 1\n        jg .loop_line\n\n    RET\n%endmacro\n\n%if ARCH_X86_64\nINIT_XMM sse2\nUYVY_TO_YUV422\n\nINIT_XMM avx\nUYVY_TO_YUV422\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/rgb_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/rgb_2_rgb.asm", "line_start": 281, "line_end": 312}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:1", "text": ";******************************************************************************\n;* x86-optimized horizontal line scaling functions\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nmax_19bit_int: times 4 dd 0x7ffff\nminshort:      times 8 dw 0x8000\nunicoeff:      times 4 dd 0x20000000\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; horizontal line scaling\n;\n; void hscale<source_width>to<intermediate_nbits>_<filterSize>_<opt>\n;                               (SwsInternal *c, int{16,32}_t *dst,\n;                                int dstW, const uint{8,16}_t *src,\n;                                const int16_t *filter,\n;                                const int32_t *filterPos, int filterSize);\n;\n; Scale one horizontal line. Input is either 8-bit width or 16-bit width\n; ($source_width can be either 8, 9, 10 or 16, difference is whether we have to\n; downscale before multiplying). Filter is 14 bits. Output is either 15 bits\n; (in int16_t) or 19 bits (in int32_t), as given in $intermediate_nbits. Each\n; output pixel is generated from $filterSize input pixels, the position of\n; the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n; SCALE_FUNC source_width, intermediate_nbits, filtersize, filtersuffix, n_args, n_xmm\n%macro SCALE_FUNC 6\n%ifnidn %3, X\ncglobal hscale%1to%2_%4, %5, 7, %6, pos0, dst, w, src, filter, fltpos, pos1\n%else\ncglobal hscale%1to%2_%4, %5, 10, %6, pos0, dst, w, srcmem, filter, fltpos, fltsize\n%endif\n%if ARCH_X86_64\n    movsxd        wq, wd\n%define mov32 movsxd\n%else ; x86-32\n%define mov32 mov", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:2", "text": "; Scale one horizontal line. Input is either 8-bit width or 16-bit width\n; ($source_width can be either 8, 9, 10 or 16, difference is whether we have to\n; downscale before multiplying). Filter is 14 bits. Output is either 15 bits\n; (in int16_t) or 19 bits (in int32_t), as given in $intermediate_nbits. Each\n; output pixel is generated from $filterSize input pixels, the position of\n; the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n; SCALE_FUNC source_width, intermediate_nbits, filtersize, filtersuffix, n_args, n_xmm\n%macro SCALE_FUNC 6\n%ifnidn %3, X\ncglobal hscale%1to%2_%4, %5, 7, %6, pos0, dst, w, src, filter, fltpos, pos1\n%else\ncglobal hscale%1to%2_%4, %5, 10, %6, pos0, dst, w, srcmem, filter, fltpos, fltsize\n%endif\n%if ARCH_X86_64\n    movsxd        wq, wd\n%define mov32 movsxd\n%else ; x86-32\n%define mov32 mov\n%endif ; x86-64\n%if %2 == 19\n    mova          m2, [max_19bit_int]\n%endif ; %2 == 19\n%if %1 == 16\n    mova          m6, [minshort]\n    mova          m7, [unicoeff]\n%elif %1 == 8\n    pxor          m3, m3\n%endif ; %1 == 8/16\n\n%if %1 == 8\n%define movlh movd\n%define movbh movh\n%define srcmul 1\n%else ; %1 == 9-16\n%define movlh movq\n%define movbh movu\n%define srcmul 2\n%endif ; %1 == 8/9-16\n\n%ifnidn %3, X\n\n    ; setup loop\n%if %3 == 8\n    shl           wq, 1                         ; this allows *16 (i.e. now *8) in lea instructions for the 8-tap filter\n%define wshr 1\n%else ; %3 == 4\n%define wshr 0\n%endif ; %3 == 8\n    lea      filterq, [filterq+wq*8]\n%if %2 == 15\n    lea         dstq, [dstq+wq*(2>>wshr)]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*(4>>wshr)]\n%endif ; %2 == 15/19\n    lea      fltposq, [fltposq+wq*(4>>wshr)]\n    neg           wq\n\n.loop:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:3", "text": "%ifnidn %3, X\n\n    ; setup loop\n%if %3 == 8\n    shl           wq, 1                         ; this allows *16 (i.e. now *8) in lea instructions for the 8-tap filter\n%define wshr 1\n%else ; %3 == 4\n%define wshr 0\n%endif ; %3 == 8\n    lea      filterq, [filterq+wq*8]\n%if %2 == 15\n    lea         dstq, [dstq+wq*(2>>wshr)]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*(4>>wshr)]\n%endif ; %2 == 15/19\n    lea      fltposq, [fltposq+wq*(4>>wshr)]\n    neg           wq\n\n.loop:\n%if %3 == 4 ; filterSize == 4 scaling\n    ; load 2x4 or 4x4 source pixels into m0/m1\n    mov32      pos0q, dword [fltposq+wq*4+ 0]   ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+ 4]   ; filterPos[1]\n    movlh         m0, [srcq+pos0q*srcmul]       ; src[filterPos[0] + {0,1,2,3}]\n%if %1 > 8\n    movhps        m0, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m4, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%endif\n    mov32      pos0q, dword [fltposq+wq*4+ 8]   ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*4+12]   ; filterPos[3]\n    movlh         m1, [srcq+pos0q*srcmul]       ; src[filterPos[2] + {0,1,2,3}]\n%if %1 > 8\n    movhps        m1, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m5, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n    punpckldq     m0, m4\n    punpckldq     m1, m5\n%endif ; %1 == 8\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply with filter coefficients\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n\n    ; add up horizontally (4 srcpix * 4 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n    mova          m4, m0\n    shufps        m0, m1, 10001000b\n    shufps        m4, m1, 11011101b\n    paddd         m0, m4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:4", "text": "%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply with filter coefficients\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n\n    ; add up horizontally (4 srcpix * 4 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n    mova          m4, m0\n    shufps        m0, m1, 10001000b\n    shufps        m4, m1, 11011101b\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m0, m1                        ; filter[{ 0, 1, 2, 3}]*src[filterPos[0]+{0,1,2,3}],\n                                                ; filter[{ 4, 5, 6, 7}]*src[filterPos[1]+{0,1,2,3}],\n                                                ; filter[{ 8, 9,10,11}]*src[filterPos[2]+{0,1,2,3}],\n                                                ; filter[{12,13,14,15}]*src[filterPos[3]+{0,1,2,3}]\n%endif ; sse2/ssse3/sse4\n%else ; %3 == 8, i.e. filterSize == 8 scaling\n    ; load 2x8 or 4x8 source pixels into m0, m1, m4 and m5\n    mov32      pos0q, dword [fltposq+wq*2+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*2+4]    ; filterPos[1]\n    movbh         m0, [srcq+ pos0q   *srcmul]   ; src[filterPos[0] + {0,1,2,3,4,5,6,7}]\n    movbh         m1, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3,4,5,6,7}]\n    mov32      pos0q, dword [fltposq+wq*2+8]    ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*2+12]   ; filterPos[3]\n    movbh         m4, [srcq+ pos0q   *srcmul]   ; src[filterPos[2] + {0,1,2,3,4,5,6,7}]\n    movbh         m5, [srcq+ pos1q   *srcmul]   ; src[filterPos[3] + {0,1,2,3,4,5,6,7}]\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n    punpcklbw     m4, m3                        ; byte -> word\n    punpcklbw     m5, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n    psubw         m4, m6\n    psubw         m5, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n    pmaddwd       m4, [filterq+wq*8+mmsize*2]   ; *= filter[{16,17,..,22,23}]\n    pmaddwd       m5, [filterq+wq*8+mmsize*3]   ; *= filter[{24,25,..,30,31}]\n\n    ; add up horizontally (8 srcpix * 8 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n%if %1 == 8\n%define mex m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:5", "text": "punpcklbw     m5, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n    psubw         m4, m6\n    psubw         m5, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n    pmaddwd       m4, [filterq+wq*8+mmsize*2]   ; *= filter[{16,17,..,22,23}]\n    pmaddwd       m5, [filterq+wq*8+mmsize*3]   ; *= filter[{24,25,..,30,31}]\n\n    ; add up horizontally (8 srcpix * 8 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n%if %1 == 8\n%define mex m6\n%else\n%define mex m3\n%endif\n    ; emulate horizontal add as transpose + vertical add\n    mova         mex, m0\n    punpckldq     m0, m1\n    punpckhdq    mex, m1\n    paddd         m0, mex\n    mova          m1, m4\n    punpckldq     m4, m5\n    punpckhdq     m1, m5\n    paddd         m4, m1\n    mova          m1, m0\n    punpcklqdq    m0, m4\n    punpckhqdq    m1, m4\n    paddd         m0, m1\n%else ; ssse3/sse4\n    ; FIXME if we rearrange the filter in pairs of 4, we can\n    ; load pixels likewise and use 2 x paddd + phaddd instead\n    ; of 3 x phaddd here, faster on older cpus\n    phaddd        m0, m1\n    phaddd        m4, m5\n    phaddd        m0, m4                        ; filter[{ 0, 1,..., 6, 7}]*src[filterPos[0]+{0,1,...,6,7}],\n                                                ; filter[{ 8, 9,...,14,15}]*src[filterPos[1]+{0,1,...,6,7}],\n                                                ; filter[{16,17,...,22,23}]*src[filterPos[2]+{0,1,...,6,7}],\n                                                ; filter[{24,25,...,30,31}]*src[filterPos[3]+{0,1,...,6,7}]\n%endif ; sse2/ssse3/sse4\n%endif ; %3 == 4/8\n\n%else ; %3 == X, i.e. any filterSize scaling\n\n%ifidn %4, X4\n%define dlt 4\n%else ; %4 == X || %4 == X8\n%define dlt 0\n%endif ; %4 ==/!= X4\n%if ARCH_X86_64\n%define srcq    r8\n%define pos1q   r7\n%define srcendq r9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:6", "text": "phaddd        m0, m1\n    phaddd        m4, m5\n    phaddd        m0, m4                        ; filter[{ 0, 1,..., 6, 7}]*src[filterPos[0]+{0,1,...,6,7}],\n                                                ; filter[{ 8, 9,...,14,15}]*src[filterPos[1]+{0,1,...,6,7}],\n                                                ; filter[{16,17,...,22,23}]*src[filterPos[2]+{0,1,...,6,7}],\n                                                ; filter[{24,25,...,30,31}]*src[filterPos[3]+{0,1,...,6,7}]\n%endif ; sse2/ssse3/sse4\n%endif ; %3 == 4/8\n\n%else ; %3 == X, i.e. any filterSize scaling\n\n%ifidn %4, X4\n%define dlt 4\n%else ; %4 == X || %4 == X8\n%define dlt 0\n%endif ; %4 ==/!= X4\n%if ARCH_X86_64\n%define srcq    r8\n%define pos1q   r7\n%define srcendq r9\n    movsxd  fltsizeq, fltsized                  ; filterSize\n    lea      srcendq, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n%else ; x86-32\n%define srcq    srcmemq\n%define pos1q   dstq\n%define srcendq r6m\n    lea        pos0q, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n    mov      srcendq, pos0q\n%endif ; x86-32/64\n    lea      fltposq, [fltposq+wq*4]\n%if %2 == 15\n    lea         dstq, [dstq+wq*2]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*4]\n%endif ; %2 == 15/19\n    movifnidn  dstmp, dstq\n    neg           wq\n\n.loop:\n    mov32      pos0q, dword [fltposq+wq*4+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    ; FIXME maybe do 4px/iteration on x86-64 (x86-32 wouldn't have enough regs)?\n    pxor          m4, m4\n    pxor          m5, m5\n    mov         srcq, srcmemmp\n\n.innerloop:\n    ; load 2x8 (sse) source pixels into m0/m1 -> m4/m5\n    movbh         m0, [srcq+ pos0q     *srcmul] ; src[filterPos[0] + {0,1,2,3(,4,5,6,7)}]\n    movbh         m1, [srcq+(pos1q+dlt)*srcmul] ; src[filterPos[1] + {0,1,2,3(,4,5,6,7)}]\n%if %1 == 8\n    punpcklbw     m0, m3\n    punpcklbw     m1, m3\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:7", "text": "mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    ; FIXME maybe do 4px/iteration on x86-64 (x86-32 wouldn't have enough regs)?\n    pxor          m4, m4\n    pxor          m5, m5\n    mov         srcq, srcmemmp\n\n.innerloop:\n    ; load 2x8 (sse) source pixels into m0/m1 -> m4/m5\n    movbh         m0, [srcq+ pos0q     *srcmul] ; src[filterPos[0] + {0,1,2,3(,4,5,6,7)}]\n    movbh         m1, [srcq+(pos1q+dlt)*srcmul] ; src[filterPos[1] + {0,1,2,3(,4,5,6,7)}]\n%if %1 == 8\n    punpcklbw     m0, m3\n    punpcklbw     m1, m3\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]                 ; filter[{0,1,2,3(,4,5,6,7)}]\n    pmaddwd       m1, [filterq+(fltsizeq+dlt)*2]; filter[filtersize+{0,1,2,3(,4,5,6,7)}]\n    paddd         m4, m0\n    paddd         m5, m1\n    add      filterq, mmsize\n    add         srcq, srcmul*mmsize/2\n    cmp         srcq, srcendq                   ; while (src += 4) < &src[filterSize]\n    jl .innerloop\n\n%ifidn %4, X4\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    movlh         m0, [srcq+ pos0q     *srcmul] ; split last 4 srcpx of dstpx[0]\n    sub        pos1q, fltsizeq                  ; and first 4 srcpx of dstpx[1]\n%if %1 > 8\n    movhps        m0, [srcq+(pos1q+dlt)*srcmul]\n%else ; %1 == 8\n    movd          m1, [srcq+(pos1q+dlt)*srcmul]\n    punpckldq     m0, m1\n%endif ; %1 == 8\n%if %1 == 8\n    punpcklbw     m0, m3\n%endif ; %1 == 8\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]\n%endif ; %4 == X4\n\n    lea      filterq, [filterq+(fltsizeq+dlt)*2]\n\n%if notcpuflag(ssse3) ; sse2\n    mova          m1, m4\n    punpcklqdq    m4, m5\n    punpckhqdq    m1, m5\n    paddd         m4, m1\n%else ; ssse3/sse4\n    phaddd        m4, m5\n%endif ; sse2/ssse3/sse4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:8", "text": "%if %1 == 8\n    punpcklbw     m0, m3\n%endif ; %1 == 8\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]\n%endif ; %4 == X4\n\n    lea      filterq, [filterq+(fltsizeq+dlt)*2]\n\n%if notcpuflag(ssse3) ; sse2\n    mova          m1, m4\n    punpcklqdq    m4, m5\n    punpckhqdq    m1, m5\n    paddd         m4, m1\n%else ; ssse3/sse4\n    phaddd        m4, m5\n%endif ; sse2/ssse3/sse4\n%ifidn %4, X4\n    paddd         m4, m0\n%endif ; %3 == X4\n%if notcpuflag(ssse3) ; sse2\n    pshufd        m4, m4, 11011000b\n    movhlps       m0, m4\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m4, m4\n    SWAP           0, 4\n%endif ; sse2/ssse3/sse4\n%endif ; %3 ==/!= X\n\n%if %1 == 16 ; add 0x8000 * sum(coeffs), i.e. back from signed -> unsigned\n    paddd         m0, m7\n%endif ; %1 == 16\n\n    ; clip, store\n    psrad         m0, 14 + %1 - %2\n%ifidn %3, X\n    movifnidn   dstq, dstmp\n%endif ; %3 == X\n%if %2 == 15\n    packssdw      m0, m0\n%ifnidn %3, X\n    movh [dstq+wq*(2>>wshr)], m0\n%else ; %3 == X\n    movd [dstq+wq*2], m0\n%endif ; %3 ==/!= X\n%else ; %2 == 19\n    PMINSD        m0, m2, m4\n%ifnidn %3, X\n    mova [dstq+wq*(4>>wshr)], m0\n%else ; %3 == X\n    movq [dstq+wq*4], m0\n%endif ; %3 ==/!= X\n%endif ; %2 == 15/19\n%ifnidn %3, X\n    add           wq, (mmsize<<wshr)/4          ; both 8tap and 4tap really only do 4 pixels\n                                                ; per iteration. see \"shl wq,1\" above as for why we do this", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:9", "text": "movifnidn   dstq, dstmp\n%endif ; %3 == X\n%if %2 == 15\n    packssdw      m0, m0\n%ifnidn %3, X\n    movh [dstq+wq*(2>>wshr)], m0\n%else ; %3 == X\n    movd [dstq+wq*2], m0\n%endif ; %3 ==/!= X\n%else ; %2 == 19\n    PMINSD        m0, m2, m4\n%ifnidn %3, X\n    mova [dstq+wq*(4>>wshr)], m0\n%else ; %3 == X\n    movq [dstq+wq*4], m0\n%endif ; %3 ==/!= X\n%endif ; %2 == 15/19\n%ifnidn %3, X\n    add           wq, (mmsize<<wshr)/4          ; both 8tap and 4tap really only do 4 pixels\n                                                ; per iteration. see \"shl wq,1\" above as for why we do this\n%else ; %3 == X\n    add           wq, 2\n%endif ; %3 ==/!= X\n    jl .loop\n    RET\n%endmacro\n\n; SCALE_FUNCS source_width, intermediate_nbits, n_xmm\n%macro SCALE_FUNCS 3\nSCALE_FUNC %1, %2, 4, 4,  6, %3\nSCALE_FUNC %1, %2, 8, 8,  6, %3\nSCALE_FUNC %1, %2, X, X4, 7, %3\nSCALE_FUNC %1, %2, X, X8, 7, %3\n%endmacro\n\n; SCALE_FUNCS2 8_xmm_args, 9to10_xmm_args, 16_xmm_args\n%macro SCALE_FUNCS2 3\n%if notcpuflag(sse4)\nSCALE_FUNCS  8, 15, %1\nSCALE_FUNCS  9, 15, %2\nSCALE_FUNCS 10, 15, %2\nSCALE_FUNCS 12, 15, %2\nSCALE_FUNCS 14, 15, %2\nSCALE_FUNCS 16, 15, %3\n%endif ; !sse4\nSCALE_FUNCS  8, 19, %1\nSCALE_FUNCS  9, 19, %2\nSCALE_FUNCS 10, 19, %2\nSCALE_FUNCS 12, 19, %2\nSCALE_FUNCS 14, 19, %2\nSCALE_FUNCS 16, 19, %3\n%endmacro\n\nINIT_XMM sse2\nSCALE_FUNCS2 7, 6, 8\nINIT_XMM ssse3\nSCALE_FUNCS2 6, 6, 8\nINIT_XMM sse4\nSCALE_FUNCS2 6, 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 321, "line_end": 379}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:10", "text": "SCALE_FUNCS 10, 15, %2\nSCALE_FUNCS 12, 15, %2\nSCALE_FUNCS 14, 15, %2\nSCALE_FUNCS 16, 15, %3\n%endif ; !sse4\nSCALE_FUNCS  8, 19, %1\nSCALE_FUNCS  9, 19, %2\nSCALE_FUNCS 10, 19, %2\nSCALE_FUNCS 12, 19, %2\nSCALE_FUNCS 14, 19, %2\nSCALE_FUNCS 16, 19, %3\n%endmacro\n\nINIT_XMM sse2\nSCALE_FUNCS2 7, 6, 8\nINIT_XMM ssse3\nSCALE_FUNCS2 6, 6, 8\nINIT_XMM sse4\nSCALE_FUNCS2 6, 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale.asm", "line_start": 361, "line_end": 379}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:3", "text": "%ifnidn %3, X\n\n    ; setup loop\n%if %3 == 8\n    shl           wq, 1                         ; this allows *16 (i.e. now *8) in lea instructions for the 8-tap filter\n%define wshr 1\n%else ; %3 == 4\n%define wshr 0\n%endif ; %3 == 8\n    lea      filterq, [filterq+wq*8]\n%if %2 == 15\n    lea         dstq, [dstq+wq*(2>>wshr)]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*(4>>wshr)]\n%endif ; %2 == 15/19\n    lea      fltposq, [fltposq+wq*(4>>wshr)]\n    neg           wq\n\n.loop:\n%if %3 == 4 ; filterSize == 4 scaling\n    ; load 2x4 or 4x4 source pixels into m0/m1\n    mov32      pos0q, dword [fltposq+wq*4+ 0]   ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+ 4]   ; filterPos[1]\n    movlh         m0, [srcq+pos0q*srcmul]       ; src[filterPos[0] + {0,1,2,3}]\n%if mmsize == 8\n    movlh         m1, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%else ; mmsize == 16\n%if %1 > 8\n    movhps        m0, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m4, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%endif\n    mov32      pos0q, dword [fltposq+wq*4+ 8]   ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*4+12]   ; filterPos[3]\n    movlh         m1, [srcq+pos0q*srcmul]       ; src[filterPos[2] + {0,1,2,3}]\n%if %1 > 8\n    movhps        m1, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m5, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n    punpckldq     m0, m4\n    punpckldq     m1, m5\n%endif ; %1 == 8\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply with filter coefficients\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n\n    ; add up horizontally (4 srcpix * 4 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:4", "text": "punpckldq     m0, m4\n    punpckldq     m1, m5\n%endif ; %1 == 8\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply with filter coefficients\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n\n    ; add up horizontally (4 srcpix * 4 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n    mova          m4, m0\n    shufps        m0, m1, 10001000b\n    shufps        m4, m1, 11011101b\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m0, m1                        ; filter[{ 0, 1, 2, 3}]*src[filterPos[0]+{0,1,2,3}],\n                                                ; filter[{ 4, 5, 6, 7}]*src[filterPos[1]+{0,1,2,3}],\n                                                ; filter[{ 8, 9,10,11}]*src[filterPos[2]+{0,1,2,3}],\n                                                ; filter[{12,13,14,15}]*src[filterPos[3]+{0,1,2,3}]\n%endif ; sse2/ssse3/sse4\n%else ; %3 == 8, i.e. filterSize == 8 scaling\n    ; load 2x8 or 4x8 source pixels into m0, m1, m4 and m5\n    mov32      pos0q, dword [fltposq+wq*2+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*2+4]    ; filterPos[1]\n    movbh         m0, [srcq+ pos0q   *srcmul]   ; src[filterPos[0] + {0,1,2,3,4,5,6,7}]\n%if mmsize == 8\n    movbh         m1, [srcq+(pos0q+4)*srcmul]   ; src[filterPos[0] + {4,5,6,7}]\n    movbh         m4, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3}]\n    movbh         m5, [srcq+(pos1q+4)*srcmul]   ; src[filterPos[1] + {4,5,6,7}]\n%else ; mmsize == 16\n    movbh         m1, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3,4,5,6,7}]\n    mov32      pos0q, dword [fltposq+wq*2+8]    ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*2+12]   ; filterPos[3]\n    movbh         m4, [srcq+ pos0q   *srcmul]   ; src[filterPos[2] + {0,1,2,3,4,5,6,7}]\n    movbh         m5, [srcq+ pos1q   *srcmul]   ; src[filterPos[3] + {0,1,2,3,4,5,6,7}]\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n    punpcklbw     m4, m3                        ; byte -> word\n    punpcklbw     m5, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n    psubw         m4, m6\n    psubw         m5, m6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:5", "text": "movbh         m1, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3,4,5,6,7}]\n    mov32      pos0q, dword [fltposq+wq*2+8]    ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*2+12]   ; filterPos[3]\n    movbh         m4, [srcq+ pos0q   *srcmul]   ; src[filterPos[2] + {0,1,2,3,4,5,6,7}]\n    movbh         m5, [srcq+ pos1q   *srcmul]   ; src[filterPos[3] + {0,1,2,3,4,5,6,7}]\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n    punpcklbw     m4, m3                        ; byte -> word\n    punpcklbw     m5, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n    psubw         m4, m6\n    psubw         m5, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n    pmaddwd       m4, [filterq+wq*8+mmsize*2]   ; *= filter[{16,17,..,22,23}]\n    pmaddwd       m5, [filterq+wq*8+mmsize*3]   ; *= filter[{24,25,..,30,31}]\n\n    ; add up horizontally (8 srcpix * 8 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n%if %1 == 8\n%define mex m6\n%else\n%define mex m3\n%endif\n    ; emulate horizontal add as transpose + vertical add\n    mova         mex, m0\n    punpckldq     m0, m1\n    punpckhdq    mex, m1\n    paddd         m0, mex\n    mova          m1, m4\n    punpckldq     m4, m5\n    punpckhdq     m1, m5\n    paddd         m4, m1\n    mova          m1, m0\n    punpcklqdq    m0, m4\n    punpckhqdq    m1, m4\n    paddd         m0, m1\n%else ; ssse3/sse4\n    ; FIXME if we rearrange the filter in pairs of 4, we can\n    ; load pixels likewise and use 2 x paddd + phaddd instead\n    ; of 3 x phaddd here, faster on older cpus\n    phaddd        m0, m1\n    phaddd        m4, m5\n    phaddd        m0, m4                        ; filter[{ 0, 1,..., 6, 7}]*src[filterPos[0]+{0,1,...,6,7}],\n                                                ; filter[{ 8, 9,...,14,15}]*src[filterPos[1]+{0,1,...,6,7}],\n                                                ; filter[{16,17,...,22,23}]*src[filterPos[2]+{0,1,...,6,7}],\n                                                ; filter[{24,25,...,30,31}]*src[filterPos[3]+{0,1,...,6,7}]\n%endif ; sse2/ssse3/sse4\n%endif ; %3 == 4/8\n\n%else ; %3 == X, i.e. any filterSize scaling", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:6", "text": "punpckhdq     m1, m5\n    paddd         m4, m1\n    mova          m1, m0\n    punpcklqdq    m0, m4\n    punpckhqdq    m1, m4\n    paddd         m0, m1\n%else ; ssse3/sse4\n    ; FIXME if we rearrange the filter in pairs of 4, we can\n    ; load pixels likewise and use 2 x paddd + phaddd instead\n    ; of 3 x phaddd here, faster on older cpus\n    phaddd        m0, m1\n    phaddd        m4, m5\n    phaddd        m0, m4                        ; filter[{ 0, 1,..., 6, 7}]*src[filterPos[0]+{0,1,...,6,7}],\n                                                ; filter[{ 8, 9,...,14,15}]*src[filterPos[1]+{0,1,...,6,7}],\n                                                ; filter[{16,17,...,22,23}]*src[filterPos[2]+{0,1,...,6,7}],\n                                                ; filter[{24,25,...,30,31}]*src[filterPos[3]+{0,1,...,6,7}]\n%endif ; sse2/ssse3/sse4\n%endif ; %3 == 4/8\n\n%else ; %3 == X, i.e. any filterSize scaling\n\n%ifidn %4, X4\n%define dlt 4\n%else ; %4 == X || %4 == X8\n%define dlt 0\n%endif ; %4 ==/!= X4\n%if ARCH_X86_64\n%define srcq    r8\n%define pos1q   r7\n%define srcendq r9\n    movsxd  fltsizeq, fltsized                  ; filterSize\n    lea      srcendq, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n%else ; x86-32\n%define srcq    srcmemq\n%define pos1q   dstq\n%define srcendq r6m\n    lea        pos0q, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n    mov      srcendq, pos0q\n%endif ; x86-32/64\n    lea      fltposq, [fltposq+wq*4]\n%if %2 == 15\n    lea         dstq, [dstq+wq*2]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*4]\n%endif ; %2 == 15/19\n    movifnidn  dstmp, dstq\n    neg           wq\n\n.loop:\n    mov32      pos0q, dword [fltposq+wq*4+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    ; FIXME maybe do 4px/iteration on x86-64 (x86-32 wouldn't have enough regs)?\n    pxor          m4, m4\n    pxor          m5, m5\n    mov         srcq, srcmemmp\n\n.innerloop:\n    ; load 2x8 (sse) source pixels into m0/m1 -> m4/m5\n    movbh         m0, [srcq+ pos0q     *srcmul] ; src[filterPos[0] + {0,1,2,3(,4,5,6,7)}]\n    movbh         m1, [srcq+(pos1q+dlt)*srcmul] ; src[filterPos[1] + {0,1,2,3(,4,5,6,7)}]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:7", "text": "%if %2 == 15\n    lea         dstq, [dstq+wq*2]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*4]\n%endif ; %2 == 15/19\n    movifnidn  dstmp, dstq\n    neg           wq\n\n.loop:\n    mov32      pos0q, dword [fltposq+wq*4+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    ; FIXME maybe do 4px/iteration on x86-64 (x86-32 wouldn't have enough regs)?\n    pxor          m4, m4\n    pxor          m5, m5\n    mov         srcq, srcmemmp\n\n.innerloop:\n    ; load 2x8 (sse) source pixels into m0/m1 -> m4/m5\n    movbh         m0, [srcq+ pos0q     *srcmul] ; src[filterPos[0] + {0,1,2,3(,4,5,6,7)}]\n    movbh         m1, [srcq+(pos1q+dlt)*srcmul] ; src[filterPos[1] + {0,1,2,3(,4,5,6,7)}]\n%if %1 == 8\n    punpcklbw     m0, m3\n    punpcklbw     m1, m3\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]                 ; filter[{0,1,2,3(,4,5,6,7)}]\n    pmaddwd       m1, [filterq+(fltsizeq+dlt)*2]; filter[filtersize+{0,1,2,3(,4,5,6,7)}]\n    paddd         m4, m0\n    paddd         m5, m1\n    add      filterq, mmsize\n    add         srcq, srcmul*mmsize/2\n    cmp         srcq, srcendq                   ; while (src += 4) < &src[filterSize]\n    jl .innerloop\n\n%ifidn %4, X4\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    movlh         m0, [srcq+ pos0q     *srcmul] ; split last 4 srcpx of dstpx[0]\n    sub        pos1q, fltsizeq                  ; and first 4 srcpx of dstpx[1]\n%if %1 > 8\n    movhps        m0, [srcq+(pos1q+dlt)*srcmul]\n%else ; %1 == 8\n    movd          m1, [srcq+(pos1q+dlt)*srcmul]\n    punpckldq     m0, m1\n%endif ; %1 == 8\n%if %1 == 8\n    punpcklbw     m0, m3\n%endif ; %1 == 8\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]\n%endif ; %4 == X4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:8", "text": "%ifidn %4, X4\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    movlh         m0, [srcq+ pos0q     *srcmul] ; split last 4 srcpx of dstpx[0]\n    sub        pos1q, fltsizeq                  ; and first 4 srcpx of dstpx[1]\n%if %1 > 8\n    movhps        m0, [srcq+(pos1q+dlt)*srcmul]\n%else ; %1 == 8\n    movd          m1, [srcq+(pos1q+dlt)*srcmul]\n    punpckldq     m0, m1\n%endif ; %1 == 8\n%if %1 == 8\n    punpcklbw     m0, m3\n%endif ; %1 == 8\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]\n%endif ; %4 == X4\n\n    lea      filterq, [filterq+(fltsizeq+dlt)*2]\n\n%if notcpuflag(ssse3) ; sse2\n    mova          m1, m4\n    punpcklqdq    m4, m5\n    punpckhqdq    m1, m5\n    paddd         m4, m1\n%else ; ssse3/sse4\n    phaddd        m4, m5\n%endif ; sse2/ssse3/sse4\n%ifidn %4, X4\n    paddd         m4, m0\n%endif ; %3 == X4\n%if notcpuflag(ssse3) ; sse2\n    pshufd        m4, m4, 11011000b\n    movhlps       m0, m4\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m4, m4\n    SWAP           0, 4\n%endif ; sse2/ssse3/sse4\n%endif ; %3 ==/!= X\n\n%if %1 == 16 ; add 0x8000 * sum(coeffs), i.e. back from signed -> unsigned\n    paddd         m0, m7\n%endif ; %1 == 16\n\n    ; clip, store\n    psrad         m0, 14 + %1 - %2\n%ifidn %3, X\n    movifnidn   dstq, dstmp\n%endif ; %3 == X\n%if %2 == 15\n    packssdw      m0, m0\n%ifnidn %3, X\n    movh [dstq+wq*(2>>wshr)], m0\n%else ; %3 == X\n    movd [dstq+wq*2], m0\n%endif ; %3 ==/!= X\n%else ; %2 == 19", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:9", "text": "%endif ; sse2/ssse3/sse4\n%endif ; %3 ==/!= X\n\n%if %1 == 16 ; add 0x8000 * sum(coeffs), i.e. back from signed -> unsigned\n    paddd         m0, m7\n%endif ; %1 == 16\n\n    ; clip, store\n    psrad         m0, 14 + %1 - %2\n%ifidn %3, X\n    movifnidn   dstq, dstmp\n%endif ; %3 == X\n%if %2 == 15\n    packssdw      m0, m0\n%ifnidn %3, X\n    movh [dstq+wq*(2>>wshr)], m0\n%else ; %3 == X\n    movd [dstq+wq*2], m0\n%endif ; %3 ==/!= X\n%else ; %2 == 19\n    PMINSD        m0, m2, m4\n%ifnidn %3, X\n    mova [dstq+wq*(4>>wshr)], m0\n%else ; %3 == X\n    movq [dstq+wq*4], m0\n%endif ; %3 ==/!= X\n%endif ; %2 == 15/19\n%ifnidn %3, X\n    add           wq, (mmsize<<wshr)/4          ; both 8tap and 4tap really only do 4 pixels\n                                                ; per iteration. see \"shl wq,1\" above as for why we do this\n%else ; %3 == X\n    add           wq, 2\n%endif ; %3 ==/!= X\n    jl .loop\n    RET\n%endmacro\n\n; SCALE_FUNCS source_width, intermediate_nbits, n_xmm\n%macro SCALE_FUNCS 3\nSCALE_FUNC %1, %2, 4, 4,  6, %3\nSCALE_FUNC %1, %2, 8, 8,  6, %3\nSCALE_FUNC %1, %2, X, X4, 7, %3\nSCALE_FUNC %1, %2, X, X8, 7, %3\n%endmacro\n\n; SCALE_FUNCS2 8_xmm_args, 9to10_xmm_args, 16_xmm_args\n%macro SCALE_FUNCS2 3\n%if notcpuflag(sse4)\nSCALE_FUNCS  8, 15, %1\nSCALE_FUNCS  9, 15, %2\nSCALE_FUNCS 10, 15, %2\nSCALE_FUNCS 12, 15, %2\nSCALE_FUNCS 14, 15, %2\nSCALE_FUNCS 16, 15, %3\n%endif ; !sse4\nSCALE_FUNCS  8, 19, %1\nSCALE_FUNCS  9, 19, %2\nSCALE_FUNCS 10, 19, %2\nSCALE_FUNCS 12, 19, %2\nSCALE_FUNCS 14, 19, %2", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:10", "text": "SCALE_FUNC %1, %2, 8, 8,  6, %3\nSCALE_FUNC %1, %2, X, X4, 7, %3\nSCALE_FUNC %1, %2, X, X8, 7, %3\n%endmacro\n\n; SCALE_FUNCS2 8_xmm_args, 9to10_xmm_args, 16_xmm_args\n%macro SCALE_FUNCS2 3\n%if notcpuflag(sse4)\nSCALE_FUNCS  8, 15, %1\nSCALE_FUNCS  9, 15, %2\nSCALE_FUNCS 10, 15, %2\nSCALE_FUNCS 12, 15, %2\nSCALE_FUNCS 14, 15, %2\nSCALE_FUNCS 16, 15, %3\n%endif ; !sse4\nSCALE_FUNCS  8, 19, %1\nSCALE_FUNCS  9, 19, %2\nSCALE_FUNCS 10, 19, %2\nSCALE_FUNCS 12, 19, %2\nSCALE_FUNCS 14, 19, %2\nSCALE_FUNCS 16, 19, %3\n%endmacro\n\nINIT_XMM sse2\nSCALE_FUNCS2 7, 6, 8\nINIT_XMM ssse3\nSCALE_FUNCS2 6, 6, 8\nINIT_XMM sse4\nSCALE_FUNCS2 6, 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "67adb303228a5d8e2abe860b7748004cc83ca65f", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/67adb303228a5d8e2abe860b7748004cc83ca65f/libswscale/x86/scale.asm", "line_start": 361, "line_end": 389}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:1", "text": ";******************************************************************************\n;* x86-optimized horizontal line scaling functions\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nmax_19bit_int: times 4 dd 0x7ffff\nminshort:      times 8 dw 0x8000\nunicoeff:      times 4 dd 0x20000000\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; horizontal line scaling\n;\n; void hscale<source_width>to<intermediate_nbits>_<filterSize>_<opt>\n;                               (SwsContext *c, int{16,32}_t *dst,\n;                                int dstW, const uint{8,16}_t *src,\n;                                const int16_t *filter,\n;                                const int32_t *filterPos, int filterSize);\n;\n; Scale one horizontal line. Input is either 8-bit width or 16-bit width\n; ($source_width can be either 8, 9, 10 or 16, difference is whether we have to\n; downscale before multiplying). Filter is 14 bits. Output is either 15 bits\n; (in int16_t) or 19 bits (in int32_t), as given in $intermediate_nbits. Each\n; output pixel is generated from $filterSize input pixels, the position of\n; the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n; SCALE_FUNC source_width, intermediate_nbits, filtersize, filtersuffix, n_args, n_xmm\n%macro SCALE_FUNC 6\n%ifnidn %3, X\ncglobal hscale%1to%2_%4, %5, 7, %6, pos0, dst, w, src, filter, fltpos, pos1\n%else\ncglobal hscale%1to%2_%4, %5, 10, %6, pos0, dst, w, srcmem, filter, fltpos, fltsize\n%endif\n%if ARCH_X86_64\n    movsxd        wq, wd\n%define mov32 movsxd\n%else ; x86-32\n%define mov32 mov", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "c3d3f0e697f27a14898e74db4fcffa5b35bcaf94", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c3d3f0e697f27a14898e74db4fcffa5b35bcaf94/libswscale/x86/scale.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:1", "text": ";******************************************************************************\n;* x86-optimized horizontal line scaling functions\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\nmax_19bit_int: times 4 dd 0x7ffff\nmax_19bit_flt: times 4 dd 524287.0\nminshort:      times 8 dw 0x8000\nunicoeff:      times 4 dd 0x20000000\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; horizontal line scaling\n;\n; void hscale<source_width>to<intermediate_nbits>_<filterSize>_<opt>\n;                               (SwsContext *c, int{16,32}_t *dst,\n;                                int dstW, const uint{8,16}_t *src,\n;                                const int16_t *filter,\n;                                const int32_t *filterPos, int filterSize);\n;\n; Scale one horizontal line. Input is either 8-bit width or 16-bit width\n; ($source_width can be either 8, 9, 10 or 16, difference is whether we have to\n; downscale before multiplying). Filter is 14 bits. Output is either 15 bits\n; (in int16_t) or 19 bits (in int32_t), as given in $intermediate_nbits. Each\n; output pixel is generated from $filterSize input pixels, the position of\n; the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n; SCALE_FUNC source_width, intermediate_nbits, filtersize, filtersuffix, n_args, n_xmm\n%macro SCALE_FUNC 6\n%ifnidn %3, X\ncglobal hscale%1to%2_%4, %5, 7, %6, pos0, dst, w, src, filter, fltpos, pos1\n%else\ncglobal hscale%1to%2_%4, %5, 10, %6, pos0, dst, w, srcmem, filter, fltpos, fltsize\n%endif\n%if ARCH_X86_64\n    movsxd        wq, wd\n%define mov32 movsxd\n%else ; x86-32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:2", "text": ";\n; Scale one horizontal line. Input is either 8-bit width or 16-bit width\n; ($source_width can be either 8, 9, 10 or 16, difference is whether we have to\n; downscale before multiplying). Filter is 14 bits. Output is either 15 bits\n; (in int16_t) or 19 bits (in int32_t), as given in $intermediate_nbits. Each\n; output pixel is generated from $filterSize input pixels, the position of\n; the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n; SCALE_FUNC source_width, intermediate_nbits, filtersize, filtersuffix, n_args, n_xmm\n%macro SCALE_FUNC 6\n%ifnidn %3, X\ncglobal hscale%1to%2_%4, %5, 7, %6, pos0, dst, w, src, filter, fltpos, pos1\n%else\ncglobal hscale%1to%2_%4, %5, 10, %6, pos0, dst, w, srcmem, filter, fltpos, fltsize\n%endif\n%if ARCH_X86_64\n    movsxd        wq, wd\n%define mov32 movsxd\n%else ; x86-32\n%define mov32 mov\n%endif ; x86-64\n%if %2 == 19\n%if cpuflag(sse4)\n    mova          m2, [max_19bit_int]\n%else ; ssse3/sse2\n    mova          m2, [max_19bit_flt]\n%endif ; sse2/ssse3/sse4\n%endif ; %2 == 19\n%if %1 == 16\n    mova          m6, [minshort]\n    mova          m7, [unicoeff]\n%elif %1 == 8\n    pxor          m3, m3\n%endif ; %1 == 8/16\n\n%if %1 == 8\n%define movlh movd\n%define movbh movh\n%define srcmul 1\n%else ; %1 == 9-16\n%define movlh movq\n%define movbh movu\n%define srcmul 2\n%endif ; %1 == 8/9-16\n\n%ifnidn %3, X\n\n    ; setup loop\n%if %3 == 8\n    shl           wq, 1                         ; this allows *16 (i.e. now *8) in lea instructions for the 8-tap filter\n%define wshr 1\n%else ; %3 == 4\n%define wshr 0\n%endif ; %3 == 8\n    lea      filterq, [filterq+wq*8]\n%if %2 == 15\n    lea         dstq, [dstq+wq*(2>>wshr)]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*(4>>wshr)]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:3", "text": "%else ; %1 == 9-16\n%define movlh movq\n%define movbh movu\n%define srcmul 2\n%endif ; %1 == 8/9-16\n\n%ifnidn %3, X\n\n    ; setup loop\n%if %3 == 8\n    shl           wq, 1                         ; this allows *16 (i.e. now *8) in lea instructions for the 8-tap filter\n%define wshr 1\n%else ; %3 == 4\n%define wshr 0\n%endif ; %3 == 8\n    lea      filterq, [filterq+wq*8]\n%if %2 == 15\n    lea         dstq, [dstq+wq*(2>>wshr)]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*(4>>wshr)]\n%endif ; %2 == 15/19\n    lea      fltposq, [fltposq+wq*(4>>wshr)]\n    neg           wq\n\n.loop:\n%if %3 == 4 ; filterSize == 4 scaling\n    ; load 2x4 or 4x4 source pixels into m0/m1\n    mov32      pos0q, dword [fltposq+wq*4+ 0]   ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+ 4]   ; filterPos[1]\n    movlh         m0, [srcq+pos0q*srcmul]       ; src[filterPos[0] + {0,1,2,3}]\n%if mmsize == 8\n    movlh         m1, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%else ; mmsize == 16\n%if %1 > 8\n    movhps        m0, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m4, [srcq+pos1q*srcmul]       ; src[filterPos[1] + {0,1,2,3}]\n%endif\n    mov32      pos0q, dword [fltposq+wq*4+ 8]   ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*4+12]   ; filterPos[3]\n    movlh         m1, [srcq+pos0q*srcmul]       ; src[filterPos[2] + {0,1,2,3}]\n%if %1 > 8\n    movhps        m1, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m5, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n    punpckldq     m0, m4\n    punpckldq     m1, m5\n%endif ; %1 == 8\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply with filter coefficients\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:4", "text": "movlh         m1, [srcq+pos0q*srcmul]       ; src[filterPos[2] + {0,1,2,3}]\n%if %1 > 8\n    movhps        m1, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n%else ; %1 == 8\n    movd          m5, [srcq+pos1q*srcmul]       ; src[filterPos[3] + {0,1,2,3}]\n    punpckldq     m0, m4\n    punpckldq     m1, m5\n%endif ; %1 == 8\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply with filter coefficients\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n\n    ; add up horizontally (4 srcpix * 4 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n    mova          m4, m0\n    shufps        m0, m1, 10001000b\n    shufps        m4, m1, 11011101b\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m0, m1                        ; filter[{ 0, 1, 2, 3}]*src[filterPos[0]+{0,1,2,3}],\n                                                ; filter[{ 4, 5, 6, 7}]*src[filterPos[1]+{0,1,2,3}],\n                                                ; filter[{ 8, 9,10,11}]*src[filterPos[2]+{0,1,2,3}],\n                                                ; filter[{12,13,14,15}]*src[filterPos[3]+{0,1,2,3}]\n%endif ; sse2/ssse3/sse4\n%else ; %3 == 8, i.e. filterSize == 8 scaling\n    ; load 2x8 or 4x8 source pixels into m0, m1, m4 and m5\n    mov32      pos0q, dword [fltposq+wq*2+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*2+4]    ; filterPos[1]\n    movbh         m0, [srcq+ pos0q   *srcmul]   ; src[filterPos[0] + {0,1,2,3,4,5,6,7}]\n%if mmsize == 8\n    movbh         m1, [srcq+(pos0q+4)*srcmul]   ; src[filterPos[0] + {4,5,6,7}]\n    movbh         m4, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3}]\n    movbh         m5, [srcq+(pos1q+4)*srcmul]   ; src[filterPos[1] + {4,5,6,7}]\n%else ; mmsize == 16\n    movbh         m1, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3,4,5,6,7}]\n    mov32      pos0q, dword [fltposq+wq*2+8]    ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*2+12]   ; filterPos[3]\n    movbh         m4, [srcq+ pos0q   *srcmul]   ; src[filterPos[2] + {0,1,2,3,4,5,6,7}]\n    movbh         m5, [srcq+ pos1q   *srcmul]   ; src[filterPos[3] + {0,1,2,3,4,5,6,7}]\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n    punpcklbw     m4, m3                        ; byte -> word\n    punpcklbw     m5, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:5", "text": "%if mmsize == 8\n    movbh         m1, [srcq+(pos0q+4)*srcmul]   ; src[filterPos[0] + {4,5,6,7}]\n    movbh         m4, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3}]\n    movbh         m5, [srcq+(pos1q+4)*srcmul]   ; src[filterPos[1] + {4,5,6,7}]\n%else ; mmsize == 16\n    movbh         m1, [srcq+ pos1q   *srcmul]   ; src[filterPos[1] + {0,1,2,3,4,5,6,7}]\n    mov32      pos0q, dword [fltposq+wq*2+8]    ; filterPos[2]\n    mov32      pos1q, dword [fltposq+wq*2+12]   ; filterPos[3]\n    movbh         m4, [srcq+ pos0q   *srcmul]   ; src[filterPos[2] + {0,1,2,3,4,5,6,7}]\n    movbh         m5, [srcq+ pos1q   *srcmul]   ; src[filterPos[3] + {0,1,2,3,4,5,6,7}]\n%endif ; mmsize == 8/16\n%if %1 == 8\n    punpcklbw     m0, m3                        ; byte -> word\n    punpcklbw     m1, m3                        ; byte -> word\n    punpcklbw     m4, m3                        ; byte -> word\n    punpcklbw     m5, m3                        ; byte -> word\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n    psubw         m4, m6\n    psubw         m5, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq+wq*8+mmsize*0]   ; *= filter[{0,1,..,6,7}]\n    pmaddwd       m1, [filterq+wq*8+mmsize*1]   ; *= filter[{8,9,..,14,15}]\n    pmaddwd       m4, [filterq+wq*8+mmsize*2]   ; *= filter[{16,17,..,22,23}]\n    pmaddwd       m5, [filterq+wq*8+mmsize*3]   ; *= filter[{24,25,..,30,31}]\n\n    ; add up horizontally (8 srcpix * 8 coefficients -> 1 dstpix)\n%if notcpuflag(ssse3) ; sse2\n%if %1 == 8\n%define mex m6\n%else\n%define mex m3\n%endif\n    ; emulate horizontal add as transpose + vertical add\n    mova         mex, m0\n    punpckldq     m0, m1\n    punpckhdq    mex, m1\n    paddd         m0, mex\n    mova          m1, m4\n    punpckldq     m4, m5\n    punpckhdq     m1, m5\n    paddd         m4, m1\n    mova          m1, m0\n    punpcklqdq    m0, m4\n    punpckhqdq    m1, m4\n    paddd         m0, m1\n%else ; ssse3/sse4\n    ; FIXME if we rearrange the filter in pairs of 4, we can\n    ; load pixels likewise and use 2 x paddd + phaddd instead\n    ; of 3 x phaddd here, faster on older cpus\n    phaddd        m0, m1\n    phaddd        m4, m5\n    phaddd        m0, m4                        ; filter[{ 0, 1,..., 6, 7}]*src[filterPos[0]+{0,1,...,6,7}],\n                                                ; filter[{ 8, 9,...,14,15}]*src[filterPos[1]+{0,1,...,6,7}],\n                                                ; filter[{16,17,...,22,23}]*src[filterPos[2]+{0,1,...,6,7}],", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:6", "text": "punpckldq     m0, m1\n    punpckhdq    mex, m1\n    paddd         m0, mex\n    mova          m1, m4\n    punpckldq     m4, m5\n    punpckhdq     m1, m5\n    paddd         m4, m1\n    mova          m1, m0\n    punpcklqdq    m0, m4\n    punpckhqdq    m1, m4\n    paddd         m0, m1\n%else ; ssse3/sse4\n    ; FIXME if we rearrange the filter in pairs of 4, we can\n    ; load pixels likewise and use 2 x paddd + phaddd instead\n    ; of 3 x phaddd here, faster on older cpus\n    phaddd        m0, m1\n    phaddd        m4, m5\n    phaddd        m0, m4                        ; filter[{ 0, 1,..., 6, 7}]*src[filterPos[0]+{0,1,...,6,7}],\n                                                ; filter[{ 8, 9,...,14,15}]*src[filterPos[1]+{0,1,...,6,7}],\n                                                ; filter[{16,17,...,22,23}]*src[filterPos[2]+{0,1,...,6,7}],\n                                                ; filter[{24,25,...,30,31}]*src[filterPos[3]+{0,1,...,6,7}]\n%endif ; sse2/ssse3/sse4\n%endif ; %3 == 4/8\n\n%else ; %3 == X, i.e. any filterSize scaling\n\n%ifidn %4, X4\n%define dlt 4\n%else ; %4 == X || %4 == X8\n%define dlt 0\n%endif ; %4 ==/!= X4\n%if ARCH_X86_64\n%define srcq    r8\n%define pos1q   r7\n%define srcendq r9\n    movsxd  fltsizeq, fltsized                  ; filterSize\n    lea      srcendq, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n%else ; x86-32\n%define srcq    srcmemq\n%define pos1q   dstq\n%define srcendq r6m\n    lea        pos0q, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n    mov      srcendq, pos0q\n%endif ; x86-32/64\n    lea      fltposq, [fltposq+wq*4]\n%if %2 == 15\n    lea         dstq, [dstq+wq*2]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*4]\n%endif ; %2 == 15/19\n    movifnidn  dstmp, dstq\n    neg           wq\n\n.loop:\n    mov32      pos0q, dword [fltposq+wq*4+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    ; FIXME maybe do 4px/iteration on x86-64 (x86-32 wouldn't have enough regs)?\n    pxor          m4, m4\n    pxor          m5, m5\n    mov         srcq, srcmemmp", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:7", "text": "%define srcendq r6m\n    lea        pos0q, [srcmemq+(fltsizeq-dlt)*srcmul] ; &src[filterSize&~4]\n    mov      srcendq, pos0q\n%endif ; x86-32/64\n    lea      fltposq, [fltposq+wq*4]\n%if %2 == 15\n    lea         dstq, [dstq+wq*2]\n%else ; %2 == 19\n    lea         dstq, [dstq+wq*4]\n%endif ; %2 == 15/19\n    movifnidn  dstmp, dstq\n    neg           wq\n\n.loop:\n    mov32      pos0q, dword [fltposq+wq*4+0]    ; filterPos[0]\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    ; FIXME maybe do 4px/iteration on x86-64 (x86-32 wouldn't have enough regs)?\n    pxor          m4, m4\n    pxor          m5, m5\n    mov         srcq, srcmemmp\n\n.innerloop:\n    ; load 2x8 (sse) source pixels into m0/m1 -> m4/m5\n    movbh         m0, [srcq+ pos0q     *srcmul] ; src[filterPos[0] + {0,1,2,3(,4,5,6,7)}]\n    movbh         m1, [srcq+(pos1q+dlt)*srcmul] ; src[filterPos[1] + {0,1,2,3(,4,5,6,7)}]\n%if %1 == 8\n    punpcklbw     m0, m3\n    punpcklbw     m1, m3\n%endif ; %1 == 8\n\n    ; multiply\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n    psubw         m1, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]                 ; filter[{0,1,2,3(,4,5,6,7)}]\n    pmaddwd       m1, [filterq+(fltsizeq+dlt)*2]; filter[filtersize+{0,1,2,3(,4,5,6,7)}]\n    paddd         m4, m0\n    paddd         m5, m1\n    add      filterq, mmsize\n    add         srcq, srcmul*mmsize/2\n    cmp         srcq, srcendq                   ; while (src += 4) < &src[filterSize]\n    jl .innerloop\n\n%ifidn %4, X4\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    movlh         m0, [srcq+ pos0q     *srcmul] ; split last 4 srcpx of dstpx[0]\n    sub        pos1q, fltsizeq                  ; and first 4 srcpx of dstpx[1]\n%if %1 > 8\n    movhps        m0, [srcq+(pos1q+dlt)*srcmul]\n%else ; %1 == 8\n    movd          m1, [srcq+(pos1q+dlt)*srcmul]\n    punpckldq     m0, m1\n%endif ; %1 == 8\n%if %1 == 8\n    punpcklbw     m0, m3\n%endif ; %1 == 8\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:8", "text": "add      filterq, mmsize\n    add         srcq, srcmul*mmsize/2\n    cmp         srcq, srcendq                   ; while (src += 4) < &src[filterSize]\n    jl .innerloop\n\n%ifidn %4, X4\n    mov32      pos1q, dword [fltposq+wq*4+4]    ; filterPos[1]\n    movlh         m0, [srcq+ pos0q     *srcmul] ; split last 4 srcpx of dstpx[0]\n    sub        pos1q, fltsizeq                  ; and first 4 srcpx of dstpx[1]\n%if %1 > 8\n    movhps        m0, [srcq+(pos1q+dlt)*srcmul]\n%else ; %1 == 8\n    movd          m1, [srcq+(pos1q+dlt)*srcmul]\n    punpckldq     m0, m1\n%endif ; %1 == 8\n%if %1 == 8\n    punpcklbw     m0, m3\n%endif ; %1 == 8\n%if %1 == 16 ; pmaddwd needs signed adds, so this moves unsigned -> signed, we'll\n             ; add back 0x8000 * sum(coeffs) after the horizontal add\n    psubw         m0, m6\n%endif ; %1 == 16\n    pmaddwd       m0, [filterq]\n%endif ; %4 == X4\n\n    lea      filterq, [filterq+(fltsizeq+dlt)*2]\n\n%if notcpuflag(ssse3) ; sse2\n    mova          m1, m4\n    punpcklqdq    m4, m5\n    punpckhqdq    m1, m5\n    paddd         m4, m1\n%else ; ssse3/sse4\n    phaddd        m4, m5\n%endif ; sse2/ssse3/sse4\n%ifidn %4, X4\n    paddd         m4, m0\n%endif ; %3 == X4\n%if notcpuflag(ssse3) ; sse2\n    pshufd        m4, m4, 11011000b\n    movhlps       m0, m4\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m4, m4\n    SWAP           0, 4\n%endif ; sse2/ssse3/sse4\n%endif ; %3 ==/!= X\n\n%if %1 == 16 ; add 0x8000 * sum(coeffs), i.e. back from signed -> unsigned\n    paddd         m0, m7\n%endif ; %1 == 16\n\n    ; clip, store\n    psrad         m0, 14 + %1 - %2\n%ifidn %3, X\n    movifnidn   dstq, dstmp\n%endif ; %3 == X\n%if %2 == 15\n    packssdw      m0, m0\n%ifnidn %3, X", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:9", "text": "movhlps       m0, m4\n    paddd         m0, m4\n%else ; ssse3/sse4\n    phaddd        m4, m4\n    SWAP           0, 4\n%endif ; sse2/ssse3/sse4\n%endif ; %3 ==/!= X\n\n%if %1 == 16 ; add 0x8000 * sum(coeffs), i.e. back from signed -> unsigned\n    paddd         m0, m7\n%endif ; %1 == 16\n\n    ; clip, store\n    psrad         m0, 14 + %1 - %2\n%ifidn %3, X\n    movifnidn   dstq, dstmp\n%endif ; %3 == X\n%if %2 == 15\n    packssdw      m0, m0\n%ifnidn %3, X\n    movh [dstq+wq*(2>>wshr)], m0\n%else ; %3 == X\n    movd [dstq+wq*2], m0\n%endif ; %3 ==/!= X\n%else ; %2 == 19\n    PMINSD        m0, m2, m4\n%ifnidn %3, X\n    mova [dstq+wq*(4>>wshr)], m0\n%else ; %3 == X\n    movq [dstq+wq*4], m0\n%endif ; %3 ==/!= X\n%endif ; %2 == 15/19\n%ifnidn %3, X\n    add           wq, (mmsize<<wshr)/4          ; both 8tap and 4tap really only do 4 pixels\n                                                ; per iteration. see \"shl wq,1\" above as for why we do this\n%else ; %3 == X\n    add           wq, 2\n%endif ; %3 ==/!= X\n    jl .loop\n    RET\n%endmacro\n\n; SCALE_FUNCS source_width, intermediate_nbits, n_xmm\n%macro SCALE_FUNCS 3\nSCALE_FUNC %1, %2, 4, 4,  6, %3\nSCALE_FUNC %1, %2, 8, 8,  6, %3\nSCALE_FUNC %1, %2, X, X4, 7, %3\nSCALE_FUNC %1, %2, X, X8, 7, %3\n%endmacro\n\n; SCALE_FUNCS2 8_xmm_args, 9to10_xmm_args, 16_xmm_args\n%macro SCALE_FUNCS2 3\n%if notcpuflag(sse4)\nSCALE_FUNCS  8, 15, %1\nSCALE_FUNCS  9, 15, %2\nSCALE_FUNCS 10, 15, %2\nSCALE_FUNCS 12, 15, %2\nSCALE_FUNCS 14, 15, %2\nSCALE_FUNCS 16, 15, %3\n%endif ; !sse4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale.asm:10", "text": "%endmacro\n\n; SCALE_FUNCS source_width, intermediate_nbits, n_xmm\n%macro SCALE_FUNCS 3\nSCALE_FUNC %1, %2, 4, 4,  6, %3\nSCALE_FUNC %1, %2, 8, 8,  6, %3\nSCALE_FUNC %1, %2, X, X4, 7, %3\nSCALE_FUNC %1, %2, X, X8, 7, %3\n%endmacro\n\n; SCALE_FUNCS2 8_xmm_args, 9to10_xmm_args, 16_xmm_args\n%macro SCALE_FUNCS2 3\n%if notcpuflag(sse4)\nSCALE_FUNCS  8, 15, %1\nSCALE_FUNCS  9, 15, %2\nSCALE_FUNCS 10, 15, %2\nSCALE_FUNCS 12, 15, %2\nSCALE_FUNCS 14, 15, %2\nSCALE_FUNCS 16, 15, %3\n%endif ; !sse4\nSCALE_FUNCS  8, 19, %1\nSCALE_FUNCS  9, 19, %2\nSCALE_FUNCS 10, 19, %2\nSCALE_FUNCS 12, 19, %2\nSCALE_FUNCS 14, 19, %2\nSCALE_FUNCS 16, 19, %3\n%endmacro\n\nINIT_XMM sse2\nSCALE_FUNCS2 7, 6, 8\nINIT_XMM ssse3\nSCALE_FUNCS2 6, 6, 8\nINIT_XMM sse4\nSCALE_FUNCS2 6, 6, 8", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale.asm", "line_start": 361, "line_end": 394}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale_avx2.asm:1", "text": ";******************************************************************************\n;* x86-optimized horizontal line scaling functions\n;* Copyright 2020 Google LLC\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\nswizzle: dd 0, 4, 1, 5, 2, 6, 3, 7\nfour: times 8 dd 4\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; horizontal line scaling\n;\n; void hscale8to15_<filterSize>_<opt>\n;                   (SwsInternal *c, int16_t *dst,\n;                    int dstW, const uint8_t *src,\n;                    const int16_t *filter,\n;                    const int32_t *filterPos, int filterSize);\n;\n; Scale one horizontal line. Input is 8-bit width Filter is 14 bits. Output is\n; 15 bits (in int16_t). Each output pixel is generated from $filterSize input\n; pixels, the position of the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n%macro SCALE_FUNC 1\ncglobal hscale8to15_%1, 7, 9, 16, pos0, dst, w, srcmem, filter, fltpos, fltsize, count, inner\n    pxor m0, m0\n    mova m15, [swizzle]\n    xor countq, countq\n    movsxd wq, wd\n%ifidn %1, X4\n    mova m14, [four]\n    shr fltsized, 2\n%endif\n    cmp wq, 0x10\n    jl .tail_loop\n    sub wq, 0x10\n.loop:\n    movu m1, [fltposq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale_avx2.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale_avx2.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale_avx2.asm:2", "text": "; Scale one horizontal line. Input is 8-bit width Filter is 14 bits. Output is\n; 15 bits (in int16_t). Each output pixel is generated from $filterSize input\n; pixels, the position of the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n%macro SCALE_FUNC 1\ncglobal hscale8to15_%1, 7, 9, 16, pos0, dst, w, srcmem, filter, fltpos, fltsize, count, inner\n    pxor m0, m0\n    mova m15, [swizzle]\n    xor countq, countq\n    movsxd wq, wd\n%ifidn %1, X4\n    mova m14, [four]\n    shr fltsized, 2\n%endif\n    cmp wq, 0x10\n    jl .tail_loop\n    sub wq, 0x10\n.loop:\n    movu m1, [fltposq]\n    movu m2, [fltposq+32]\n%ifidn %1, X4\n    pxor m9, m9\n    pxor m10, m10\n    pxor m11, m11\n    pxor m12, m12\n    xor innerq, innerq\n.innerloop:\n%endif\n    vpcmpeqd  m13, m13\n    vpgatherdd m3,[srcmemq + m1], m13\n    vpcmpeqd  m13, m13\n    vpgatherdd m4,[srcmemq + m2], m13\n    vpunpcklbw m5, m3, m0\n    vpunpckhbw m6, m3, m0\n    vpunpcklbw m7, m4, m0\n    vpunpckhbw m8, m4, m0\n    vpmaddwd m5, m5, [filterq]\n    vpmaddwd m6, m6, [filterq + 32]\n    vpmaddwd m7, m7, [filterq + 64]\n    vpmaddwd m8, m8, [filterq + 96]\n    add filterq, 0x80\n%ifidn %1, X4\n    paddd m9, m5\n    paddd m10, m6\n    paddd m11, m7\n    paddd m12, m8\n    paddd m1, m14\n    paddd m2, m14\n    add innerq, 1\n    cmp innerq, fltsizeq\n    jl .innerloop\n    vphaddd m5, m9, m10\n    vphaddd m6, m11, m12\n%else\n    vphaddd m5, m5, m6\n    vphaddd m6, m7, m8\n%endif\n    vpsrad  m5, 7\n    vpsrad  m6, 7", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale_avx2.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale_avx2.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale_avx2.asm:3", "text": "vpmaddwd m8, m8, [filterq + 96]\n    add filterq, 0x80\n%ifidn %1, X4\n    paddd m9, m5\n    paddd m10, m6\n    paddd m11, m7\n    paddd m12, m8\n    paddd m1, m14\n    paddd m2, m14\n    add innerq, 1\n    cmp innerq, fltsizeq\n    jl .innerloop\n    vphaddd m5, m9, m10\n    vphaddd m6, m11, m12\n%else\n    vphaddd m5, m5, m6\n    vphaddd m6, m7, m8\n%endif\n    vpsrad  m5, 7\n    vpsrad  m6, 7\n    vpackssdw m5, m5, m6\n    vpermd m5, m15, m5\n    vmovdqu [dstq + countq * 2], m5\n    add fltposq, 0x40\n    add countq, 0x10\n    cmp countq, wq\n    jle .loop\n\n    add wq, 0x10\n    cmp countq, wq\n    jge .end\n\n.tail_loop:\n    movu xm1, [fltposq]\n%ifidn %1, X4\n    pxor xm9, xm9\n    pxor xm10, xm10\n    xor innerq, innerq\n.tail_innerloop:\n%endif\n    vpcmpeqd  xm13, xm13\n    vpgatherdd xm3,[srcmemq + xm1], xm13\n    vpunpcklbw xm5, xm3, xm0\n    vpunpckhbw xm6, xm3, xm0\n    vpmaddwd xm5, xm5, [filterq]\n    vpmaddwd xm6, xm6, [filterq + 0x10]\n    add filterq, 0x20\n%ifidn %1, X4\n    paddd xm9, xm5\n    paddd xm10, xm6\n    paddd xm1, xm14\n    add innerq, 1\n    cmp innerq, fltsizeq\n    jl .tail_innerloop\n    vphaddd xm5, xm9, xm10\n%else\n    vphaddd xm5, xm5, xm6\n%endif\n    vpsrad  xm5, 7\n    vpackssdw xm5, xm5, xm5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale_avx2.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale_avx2.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale_avx2.asm:4", "text": "vpcmpeqd  xm13, xm13\n    vpgatherdd xm3,[srcmemq + xm1], xm13\n    vpunpcklbw xm5, xm3, xm0\n    vpunpckhbw xm6, xm3, xm0\n    vpmaddwd xm5, xm5, [filterq]\n    vpmaddwd xm6, xm6, [filterq + 0x10]\n    add filterq, 0x20\n%ifidn %1, X4\n    paddd xm9, xm5\n    paddd xm10, xm6\n    paddd xm1, xm14\n    add innerq, 1\n    cmp innerq, fltsizeq\n    jl .tail_innerloop\n    vphaddd xm5, xm9, xm10\n%else\n    vphaddd xm5, xm5, xm6\n%endif\n    vpsrad  xm5, 7\n    vpackssdw xm5, xm5, xm5\n    vmovq [dstq + countq * 2], xm5\n    add fltposq, 0x10\n    add countq, 0x4\n    cmp countq, wq\n    jl .tail_loop\n.end:\nRET\n%endmacro\n\n%if ARCH_X86_64\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nSCALE_FUNC 4\nSCALE_FUNC X4\n%endif\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale_avx2.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/scale_avx2.asm", "line_start": 121, "line_end": 156}
{"id": "FFmpeg/FFmpeg:libswscale/x86/scale_avx2.asm:1", "text": ";******************************************************************************\n;* x86-optimized horizontal line scaling functions\n;* Copyright 2020 Google LLC\n;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA 32\n\nswizzle: dd 0, 4, 1, 5, 2, 6, 3, 7\nfour: times 8 dd 4\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; horizontal line scaling\n;\n; void hscale8to15_<filterSize>_<opt>\n;                   (SwsContext *c, int16_t *dst,\n;                    int dstW, const uint8_t *src,\n;                    const int16_t *filter,\n;                    const int32_t *filterPos, int filterSize);\n;\n; Scale one horizontal line. Input is 8-bit width Filter is 14 bits. Output is\n; 15 bits (in int16_t). Each output pixel is generated from $filterSize input\n; pixels, the position of the first pixel is given in filterPos[nOutputPixel].\n;-----------------------------------------------------------------------------\n\n%macro SCALE_FUNC 1\ncglobal hscale8to15_%1, 7, 9, 16, pos0, dst, w, srcmem, filter, fltpos, fltsize, count, inner\n    pxor m0, m0\n    mova m15, [swizzle]\n    xor countq, countq\n    movsxd wq, wd\n%ifidn %1, X4\n    mova m14, [four]\n    shr fltsized, 2\n%endif\n    cmp wq, 0x10\n    jl .tail_loop\n    sub wq, 0x10\n.loop:\n    movu m1, [fltposq]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/scale_avx2.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/scale_avx2.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:1", "text": ";******************************************************************************\n;* x86-optimized yuv2yuvX\n;* Copyright 2020 Google LLC\n;* Copyright (C) 2001-2011 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; yuv2yuvX\n;\n; void ff_yuv2yuvX_<opt>(const int16_t *filter, int filterSize,\n;                        int srcOffset, uint8_t *dest, int dstW,\n;                        const uint8_t *dither, int offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro YUV2YUVX_FUNC 0\ncglobal yuv2yuvX, 7, 7, 6+2*cpuflag(sse3), filter, filterSize, src, dest, dstW, dither, offset\n%if notcpuflag(sse3)\n%define movr movq\n%define unroll 1\n%else\n%define movr movdqu\n%define unroll 4\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n%if notcpuflag(avx2)\n    punpcklqdq           m3, m3\n%endif\n    psrldq               m3, 3", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv2yuvX.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:2", "text": "%else\n%define movr movdqu\n%define unroll 4\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n%if notcpuflag(avx2)\n    punpcklqdq           m3, m3\n%endif\n    psrldq               m3, 3\n\n.offset:\n    add offsetq, srcq\n    movd                 xm1, filterSized\n    SPLATW               m1, xm1, 0\n    pxor                 m0, m0, m0\n    mov                  filterSizeq, filterq\n    mov                  srcq, [filterSizeq]\n    punpcklbw            m3, m0\n    psllw                m1, m1, 3\n    paddw                m1, m3\n    psraw                m1, 4\n.outerloop:\n    mova                 m3, m1\n%if cpuflag(sse3)\n    mova                 m4, m1\n    mova                 m6, m1\n    mova                 m7, m1\n%endif\n.loop:\n%if cpuflag(avx2)\n    vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    movq                 m0, [filterSizeq + 8]\n    punpcklqdq           m0, m0\n%endif\n\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m7, m7, m5\n%else\n    movu                 m2, [srcq + offsetq * 2]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv2yuvX.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:3", "text": "%if cpuflag(avx2)\n    vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    movq                 m0, [filterSizeq + 8]\n    punpcklqdq           m0, m0\n%endif\n\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m7, m7, m5\n%else\n    movu                 m2, [srcq + offsetq * 2]\n    pmulhw               m2, m0\n    paddw                m3, m2\n%endif\n    add                  filterSizeq, 0x10\n    mov                  srcq, [filterSizeq]\n    test                 srcq, srcq\n    jnz                  .loop\n    psraw                m3, m3, 3\n%if cpuflag(sse3)\n    psraw                m4, m4, 3\n    psraw                m6, m6, 3\n    psraw                m7, m7, 3\n    packuswb             m3, m3, m4\n    packuswb             m6, m6, m7\n%else\n    packuswb             m3, m3\n%endif\n    mov                  srcq, [filterq]\n%if cpuflag(avx2)\n    vpermq               m3, m3, 216\n    vpermq               m6, m6, 216\n%endif\n    movr                 [destq + offsetq], m3\n%if cpuflag(sse3)\n    movr                 [destq + offsetq + mmsize], m6\n%endif\n    add                  offsetq, mmsize / 2 * unroll\n    mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_XMM sse2\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv2yuvX.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:4", "text": "vpermq               m6, m6, 216\n%endif\n    movr                 [destq + offsetq], m3\n%if cpuflag(sse3)\n    movr                 [destq + offsetq + mmsize], m6\n%endif\n    add                  offsetq, mmsize / 2 * unroll\n    mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_XMM sse2\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv2yuvX.asm", "line_start": 121, "line_end": 141}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:1", "text": ";******************************************************************************\n;* x86-optimized yuv2yuvX\n;* Copyright 2020 Google LLC\n;* Copyright (C) 2001-2011 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; yuv2yuvX\n;\n; void ff_yuv2yuvX_<opt>(const int16_t *filter, int filterSize,\n;                        int srcOffset, uint8_t *dest, int dstW,\n;                        const uint8_t *dither, int offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro YUV2YUVX_FUNC 0\ncglobal yuv2yuvX, 7, 7, 6+2*cpuflag(sse3), filter, filterSize, src, dest, dstW, dither, offset\n%if notcpuflag(sse3)\n%define movr movq\n%define unroll 1\n%else\n%define movr movdqu\n%define unroll 4\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n    psrlq                m5, m3, 0x18\n    psllq                m3, m3, 0x28\n    por                  m3, m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "f5ed254528062c9d97e285e95996e21640c938b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f5ed254528062c9d97e285e95996e21640c938b7/libswscale/x86/yuv2yuvX.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:2", "text": "%else\n%define movr movdqu\n%define unroll 4\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n    psrlq                m5, m3, 0x18\n    psllq                m3, m3, 0x28\n    por                  m3, m3, m5\n\n.offset:\n    add offsetq, srcq\n    movd                 xm1, filterSized\n    SPLATW               m1, xm1, 0\n    pxor                 m0, m0, m0\n    mov                  filterSizeq, filterq\n    mov                  srcq, [filterSizeq]\n    punpcklbw            m3, m0\n    psllw                m1, m1, 3\n    paddw                m1, m3\n    psraw                m1, 4\n.outerloop:\n    mova                 m3, m1\n%if cpuflag(sse3)\n    mova                 m4, m1\n    mova                 m6, m1\n    mova                 m7, m1\n%endif\n.loop:\n%if cpuflag(avx2)\n    vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    movq                 m0, [filterSizeq + 8]\n    punpcklqdq           m0, m0\n%endif\n\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m7, m7, m5\n%else\n    movu                 m2, [srcq + offsetq * 2]\n    pmulhw               m2, m0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "f5ed254528062c9d97e285e95996e21640c938b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f5ed254528062c9d97e285e95996e21640c938b7/libswscale/x86/yuv2yuvX.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:3", "text": "vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    movq                 m0, [filterSizeq + 8]\n    punpcklqdq           m0, m0\n%endif\n\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m7, m7, m5\n%else\n    movu                 m2, [srcq + offsetq * 2]\n    pmulhw               m2, m0\n    paddw                m3, m2\n%endif\n    add                  filterSizeq, 0x10\n    mov                  srcq, [filterSizeq]\n    test                 srcq, srcq\n    jnz                  .loop\n    psraw                m3, m3, 3\n%if cpuflag(sse3)\n    psraw                m4, m4, 3\n    psraw                m6, m6, 3\n    psraw                m7, m7, 3\n    packuswb             m3, m3, m4\n    packuswb             m6, m6, m7\n%else\n    packuswb             m3, m3\n%endif\n    mov                  srcq, [filterq]\n%if cpuflag(avx2)\n    vpermq               m3, m3, 216\n    vpermq               m6, m6, 216\n%endif\n    movr                 [destq + offsetq], m3\n%if cpuflag(sse3)\n    movr                 [destq + offsetq + mmsize], m6\n%endif\n    add                  offsetq, mmsize / 2 * unroll\n    mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_XMM sse2\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "f5ed254528062c9d97e285e95996e21640c938b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f5ed254528062c9d97e285e95996e21640c938b7/libswscale/x86/yuv2yuvX.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:4", "text": "%endif\n    movr                 [destq + offsetq], m3\n%if cpuflag(sse3)\n    movr                 [destq + offsetq + mmsize], m6\n%endif\n    add                  offsetq, mmsize / 2 * unroll\n    mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_XMM sse2\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "f5ed254528062c9d97e285e95996e21640c938b7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/f5ed254528062c9d97e285e95996e21640c938b7/libswscale/x86/yuv2yuvX.asm", "line_start": 121, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:1", "text": ";******************************************************************************\n;* x86-optimized yuv2yuvX\n;* Copyright 2020 Google LLC\n;* Copyright (C) 2001-2011 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; yuv2yuvX\n;\n; void ff_yuv2yuvX_<opt>(const int16_t *filter, int filterSize,\n;                        int srcOffset, uint8_t *dest, int dstW,\n;                        const uint8_t *dither, int offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro YUV2YUVX_FUNC 0\ncglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset\n%if notcpuflag(sse3)\n%define movr mova\n%define unroll 1\n%else\n%define movr movdqu\n%define unroll 2\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n    psrlq                m5, m3, 0x18\n    psllq                m3, m3, 0x28\n    por                  m3, m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "a8df08f6280e14acb7cb9b51013d4a01e14a4ef7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8df08f6280e14acb7cb9b51013d4a01e14a4ef7/libswscale/x86/yuv2yuvX.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:2", "text": "%else\n%define movr movdqu\n%define unroll 2\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n    psrlq                m5, m3, 0x18\n    psllq                m3, m3, 0x28\n    por                  m3, m3, m5\n\n.offset:\n    add offsetq, srcq\n    movd                 xm1, filterSized\n    SPLATW               m1, xm1, 0\n    pxor                 m0, m0, m0\n    mov                  filterSizeq, filterq\n    mov                  srcq, [filterSizeq]\n    punpcklbw            m3, m0\n    psllw                m1, m1, 3\n    paddw                m3, m3, m1\n    psraw                m7, m3, 4\n.outerloop:\n    mova                 m4, m7\n    mova                 m3, m7\n%if cpuflag(sse3)\n    mova                 m6, m7\n    mova                 m1, m7\n%endif\n.loop:\n%if cpuflag(avx2)\n    vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    mova                 m0, [filterSizeq + 8]\n%endif\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m1, m1, m5\n%endif\n    add                  filterSizeq, 0x10\n    mov                  srcq, [filterSizeq]\n    test                 srcq, srcq\n    jnz                  .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "a8df08f6280e14acb7cb9b51013d4a01e14a4ef7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8df08f6280e14acb7cb9b51013d4a01e14a4ef7/libswscale/x86/yuv2yuvX.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:3", "text": "vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    mova                 m0, [filterSizeq + 8]\n%endif\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m1, m1, m5\n%endif\n    add                  filterSizeq, 0x10\n    mov                  srcq, [filterSizeq]\n    test                 srcq, srcq\n    jnz                  .loop\n    psraw                m3, m3, 3\n    psraw                m4, m4, 3\n%if cpuflag(sse3)\n    psraw                m6, m6, 3\n    psraw                m1, m1, 3\n%endif\n    packuswb             m3, m3, m4\n%if cpuflag(sse3)\n    packuswb             m6, m6, m1\n%endif\n    mov                  srcq, [filterq]\n%if cpuflag(avx2)\n    vpermq               m3, m3, 216\n    vpermq               m6, m6, 216\n%endif\n    movr                 [destq + offsetq], m3\n%if cpuflag(sse3)\n    movr                 [destq + offsetq + mmsize], m6\n%endif\n    add                  offsetq, mmsize * unroll\n    mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "a8df08f6280e14acb7cb9b51013d4a01e14a4ef7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8df08f6280e14acb7cb9b51013d4a01e14a4ef7/libswscale/x86/yuv2yuvX.asm", "line_start": 81, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:4", "text": "mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "a8df08f6280e14acb7cb9b51013d4a01e14a4ef7", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/a8df08f6280e14acb7cb9b51013d4a01e14a4ef7/libswscale/x86/yuv2yuvX.asm", "line_start": 121, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:1", "text": ";******************************************************************************\n;* x86-optimized yuv2yuvX\n;* Copyright 2020 Google LLC\n;* Copyright (C) 2001-2011 Michael Niedermayer <michaelni@gmx.at>\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n; yuv2yuvX\n;\n; void ff_yuv2yuvX_<opt>(const int16_t *filter, int filterSize,\n;                        int srcOffset, uint8_t *dest, int dstW,\n;                        const uint8_t *dither, int offset);\n;\n;-----------------------------------------------------------------------------\n\n%macro YUV2YUVX_FUNC 0\ncglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset\n%if notcpuflag(sse3)\n%define movr mova\n%define unroll 1\n%else\n%define movr movdqu\n%define unroll 2\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n    psrlq                m5, m3, $18\n    psllq                m3, m3, $28\n    por                  m3, m3, m5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/yuv2yuvX.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:2", "text": "%else\n%define movr movdqu\n%define unroll 2\n%endif\n    movsxdifnidn         dstWq, dstWd\n    movsxdifnidn         offsetq, offsetd\n    movsxdifnidn         srcq, srcd\n%if cpuflag(avx2)\n    vpbroadcastq         m3, [ditherq]\n%else\n    movq                 xm3, [ditherq]\n%endif ; avx2\n    cmp                  offsetd, 0\n    jz                   .offset\n\n    ; offset != 0 path.\n    psrlq                m5, m3, $18\n    psllq                m3, m3, $28\n    por                  m3, m3, m5\n\n.offset:\n    add offsetq, srcq\n    movd                 xm1, filterSized\n    SPLATW               m1, xm1, 0\n    pxor                 m0, m0, m0\n    mov                  filterSizeq, filterq\n    mov                  srcq, [filterSizeq]\n    punpcklbw            m3, m0\n    psllw                m1, m1, 3\n    paddw                m3, m3, m1\n    psraw                m7, m3, 4\n.outerloop:\n    mova                 m4, m7\n    mova                 m3, m7\n%if cpuflag(sse3)\n    mova                 m6, m7\n    mova                 m1, m7\n%endif\n.loop:\n%if cpuflag(avx2)\n    vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    mova                 m0, [filterSizeq + 8]\n%endif\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m1, m1, m5\n%endif\n    add                  filterSizeq, $10\n    mov                  srcq, [filterSizeq]\n    test                 srcq, srcq\n    jnz                  .loop", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/yuv2yuvX.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv2yuvX.asm:3", "text": "vpbroadcastq         m0, [filterSizeq + 8]\n%elif cpuflag(sse3)\n    movddup              m0, [filterSizeq + 8]\n%else\n    mova                 m0, [filterSizeq + 8]\n%endif\n    pmulhw               m2, m0, [srcq + offsetq * 2]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + mmsize]\n    paddw                m3, m3, m2\n    paddw                m4, m4, m5\n%if cpuflag(sse3)\n    pmulhw               m2, m0, [srcq + offsetq * 2 + 2 * mmsize]\n    pmulhw               m5, m0, [srcq + offsetq * 2 + 3 * mmsize]\n    paddw                m6, m6, m2\n    paddw                m1, m1, m5\n%endif\n    add                  filterSizeq, $10\n    mov                  srcq, [filterSizeq]\n    test                 srcq, srcq\n    jnz                  .loop\n    psraw                m3, m3, 3\n    psraw                m4, m4, 3\n%if cpuflag(sse3)\n    psraw                m6, m6, 3\n    psraw                m1, m1, 3\n%endif\n    packuswb             m3, m3, m4\n%if cpuflag(sse3)\n    packuswb             m6, m6, m1\n%endif\n    mov                  srcq, [filterq]\n%if cpuflag(avx2)\n    vpermq               m3, m3, 216\n    vpermq               m6, m6, 216\n%endif\n    movr                 [destq + offsetq], m3\n%if cpuflag(sse3)\n    movr                 [destq + offsetq + mmsize], m6\n%endif\n    add                  offsetq, mmsize * unroll\n    mov                  filterSizeq, filterq\n    cmp                  offsetq, dstWq\n    jb                  .outerloop\n    RET\n%endmacro\n\nINIT_MMX mmxext\nYUV2YUVX_FUNC\nINIT_XMM sse3\nYUV2YUVX_FUNC\n%if HAVE_AVX2_EXTERNAL\nINIT_YMM avx2\nYUV2YUVX_FUNC\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv2yuvX.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/yuv2yuvX.asm", "line_start": 81, "line_end": 134}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:1", "text": ";******************************************************************************\n;* software YUV to RGB converter\n;*\n;* Copyright (C) 2001-2007 Michael Niedermayer\n;*           (c) 2010 Konstantin Shishkov\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n; below variables are named like mask_dwXY, which means to preserve dword No.X & No.Y\nmask_dw036 : db -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0\nmask_dw147 : db  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1\nmask_dw25  : db  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0\nrgb24_shuf1: db  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15,  4,  5, 10, 11\nrgb24_shuf2: db 10, 11,  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15,  4,  5\nrgb24_shuf3: db  4,  5, 10, 11,  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15\ngbrp_shuf  : db  0,  8,  1,  9,  2, 10,  3, 11,  4, 12,  5, 13,  6, 14,  7, 15\npw_00ff: times 8 dw 255\npb_f8:   times 16 db 248\npb_e0:   times 16 db 224\npb_03:   times 16 db 3\npb_07:   times 16 db 7\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n;\n; YUV420/YUVA420 to RGB/BGR 15/16/24/32\n; R = Y + ((vrCoff * (v - 128)) >> 8)\n; G = Y - ((ugCoff * (u - 128) + vgCoff * (v - 128)) >> 8)\n; B = Y + ((ubCoff * (u - 128)) >> 8)\n;\n;-----------------------------------------------------------------------------\n\n%macro yuv2rgb_fn 3\n\n%if %3 == 32\n    %ifidn %1, yuva\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index, pa_2index\n    %define GPR_num 7\n    %else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:2", "text": "SECTION .text\n\n;-----------------------------------------------------------------------------\n;\n; YUV420/YUVA420 to RGB/BGR 15/16/24/32\n; R = Y + ((vrCoff * (v - 128)) >> 8)\n; G = Y - ((ugCoff * (u - 128) + vgCoff * (v - 128)) >> 8)\n; B = Y + ((ubCoff * (u - 128)) >> 8)\n;\n;-----------------------------------------------------------------------------\n\n%macro yuv2rgb_fn 3\n\n%if %3 == 32\n    %ifidn %1, yuva\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index, pa_2index\n    %define GPR_num 7\n    %else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6\n    %endif\n%else\n    %ifidn %2, gbrp\n    %define parameters index, image, dst_b, dst_r, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 8\n    %else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6\n    %endif\n%endif\n\n%define m_green m2\n%define m_alpha m3\n%define m_y m6\n%define m_u m0\n%define m_v m1\n%ifidn %2, rgb\n%define m_red m1\n%define m_blue m0\n%else\n%define m_red m0\n%define m_blue m1\n%endif\n\n%define time_num 2\n%if ARCH_X86_32\n%define reg_num 8\n%define my_offset [pointer_c_ditherq + 8  * 8]\n%define mu_offset [pointer_c_ditherq + 9  * 8]\n%define mv_offset [pointer_c_ditherq + 10 * 8]\n%define mug_coff  [pointer_c_ditherq + 7  * 8]\n%define mvg_coff  [pointer_c_ditherq + 6  * 8]\n%define my_coff   [pointer_c_ditherq + 3  * 8]\n%define mub_coff  [pointer_c_ditherq + 5  * 8]\n%define mvr_coff  [pointer_c_ditherq + 4  * 8]\n%else ; ARCH_X86_64\n%define reg_num 16\n%define y_offset m8\n%define u_offset m9", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:3", "text": "%else\n%define m_red m0\n%define m_blue m1\n%endif\n\n%define time_num 2\n%if ARCH_X86_32\n%define reg_num 8\n%define my_offset [pointer_c_ditherq + 8  * 8]\n%define mu_offset [pointer_c_ditherq + 9  * 8]\n%define mv_offset [pointer_c_ditherq + 10 * 8]\n%define mug_coff  [pointer_c_ditherq + 7  * 8]\n%define mvg_coff  [pointer_c_ditherq + 6  * 8]\n%define my_coff   [pointer_c_ditherq + 3  * 8]\n%define mub_coff  [pointer_c_ditherq + 5  * 8]\n%define mvr_coff  [pointer_c_ditherq + 4  * 8]\n%else ; ARCH_X86_64\n%define reg_num 16\n%define y_offset m8\n%define u_offset m9\n%define v_offset m10\n%define ug_coff  m11\n%define vg_coff  m12\n%define y_coff   m13\n%define ub_coff  m14\n%define vr_coff  m15\n%endif ; ARCH_X86_32/64\n\ncglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters\n\n%if ARCH_X86_64\n    movsxd indexq, indexd\n    VBROADCASTSD y_offset, [pointer_c_ditherq + 8  * 8]\n    VBROADCASTSD u_offset, [pointer_c_ditherq + 9  * 8]\n    VBROADCASTSD v_offset, [pointer_c_ditherq + 10 * 8]\n    VBROADCASTSD ug_coff,  [pointer_c_ditherq + 7  * 8]\n    VBROADCASTSD vg_coff,  [pointer_c_ditherq + 6  * 8]\n    VBROADCASTSD y_coff,   [pointer_c_ditherq + 3  * 8]\n    VBROADCASTSD ub_coff,  [pointer_c_ditherq + 5  * 8]\n    VBROADCASTSD vr_coff,  [pointer_c_ditherq + 4  * 8]\n%endif\n.loop0:\n    movu m_y, [py_2indexq + 2 * indexq]\n    movh m_u, [pu_indexq  +     indexq]\n    movh m_v, [pv_indexq  +     indexq]\n    pxor m4, m4\n    mova m7, m6\n    punpcklbw m0, m4\n    punpcklbw m1, m4\n    mova m2, [pw_00ff]\n    pand m6, m2\n    psrlw m7, 8\n    psllw m0, 3\n    psllw m1, 3\n    psllw m6, 3\n    psllw m7, 3\n%if ARCH_X86_32\n    VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:4", "text": "%endif\n.loop0:\n    movu m_y, [py_2indexq + 2 * indexq]\n    movh m_u, [pu_indexq  +     indexq]\n    movh m_v, [pv_indexq  +     indexq]\n    pxor m4, m4\n    mova m7, m6\n    punpcklbw m0, m4\n    punpcklbw m1, m4\n    mova m2, [pw_00ff]\n    pand m6, m2\n    psrlw m7, 8\n    psllw m0, 3\n    psllw m1, 3\n    psllw m6, 3\n    psllw m7, 3\n%if ARCH_X86_32\n    VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset\n    psubsw m0, m2 ; U = U - 128\n    psubsw m1, m3 ; V = V - 128\n    psubw  m6, m4\n    psubw  m7, m4\n    VBROADCASTSD m2, mug_coff\n    VBROADCASTSD m3, mvg_coff\n    VBROADCASTSD m4, my_coff\n    VBROADCASTSD m5, mub_coff\n    pmulhw m2, m0\n    pmulhw m3, m1\n    pmulhw m6, m4\n    pmulhw m7, m4\n    pmulhw m0, m5\n    VBROADCASTSD m4, mvr_coff\n    pmulhw m1, m4\n%else ; ARCH_X86_64\n    psubsw m0, u_offset ; U = U - 128\n    psubsw m1, v_offset ; V = V - 128\n    psubw  m6, y_offset\n    psubw  m7, y_offset\n    mova m2, m0\n    mova m3, m1\n    pmulhw m2, ug_coff\n    pmulhw m3, vg_coff\n    pmulhw m6, y_coff\n    pmulhw m7, y_coff\n    pmulhw m0, ub_coff\n    pmulhw m1, vr_coff\n%endif\n    paddsw m2, m3\n    mova m3, m7\n    mova m5, m7\n    paddsw m3, m0 ; B1 B3 B5 B7 ...\n    paddsw m5, m1 ; R1 R3 R5 R7 ...\n    paddsw m7, m2 ; G1 G3 G5 G7 ...\n    paddsw m0, m6 ; B0 B2 B4 B6 ...\n    paddsw m1, m6 ; R0 R2 R4 R6 ...\n    paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:5", "text": "mova m2, m0\n    mova m3, m1\n    pmulhw m2, ug_coff\n    pmulhw m3, vg_coff\n    pmulhw m6, y_coff\n    pmulhw m7, y_coff\n    pmulhw m0, ub_coff\n    pmulhw m1, vr_coff\n%endif\n    paddsw m2, m3\n    mova m3, m7\n    mova m5, m7\n    paddsw m3, m0 ; B1 B3 B5 B7 ...\n    paddsw m5, m1 ; R1 R3 R5 R7 ...\n    paddsw m7, m2 ; G1 G3 G5 G7 ...\n    paddsw m0, m6 ; B0 B2 B4 B6 ...\n    paddsw m1, m6 ; R0 R2 R4 R6 ...\n    paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n    packuswb m0, m3 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m1, m5 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n%ifidn %2, gbrp ; PLANAR GBRP\n%define depth 1\n    mova   m4, [gbrp_shuf]\n    pshufb m0, m4\n    pshufb m1, m4\n    pshufb m2, m4\n    movu [imageq], m2\n    movu [dst_bq], m0\n    movu [dst_rq], m1\n    add dst_bq, 8 * depth * time_num\n    add dst_rq, 8 * depth * time_num\n%else\n%define depth 3\n    mova m3, m_red\n    mova m6, m_blue\n    psrldq m_red, 8\n    punpcklbw m3, m2     ; R0 G0 R2 G2 R4 G4 R6 G6 R8 G8 ...\n    punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5\n    por    m0, m1\n    pand   m1, m5, m2      ; --- --- --- --- g1  b1  --- --- --- --- g3  b3  --- --- --- ---\n    por    m0, m1          ; r0  g0  b0  r1  g1  b1  r2  g2  b2  r3  g3  b3  r4  g4  b4  r5\n    pand   m1, m7, m2      ; g5  b5  --- --- --- --- g7  b7  --- --- --- --- g9  b9  --- ---\n    pand   m7, m6          ; b10 r11 --- --- --- --- b12 r13 --- --- --- --- b14 r15 --- ---\n    pand   m6, m5          ; --- --- --- --- b6  r7  --- --- --- --- b8  r9  --- --- --- ---\n    por    m1, m6\n    pand   m6, m4, m3      ; --- --- r6  g6  --- --- --- --- r8  g8  --- --- --- --- r10 g10\n    pand   m2, m4          ; --- --- g11 b11 --- --- --- --- g13 b13 --- --- --- --- g15 b15\n    pand   m3, m5          ; --- --- --- --- r12 g12 --- --- --- --- r14 g14 --- --- --- ---", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:6", "text": "punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5\n    por    m0, m1\n    pand   m1, m5, m2      ; --- --- --- --- g1  b1  --- --- --- --- g3  b3  --- --- --- ---\n    por    m0, m1          ; r0  g0  b0  r1  g1  b1  r2  g2  b2  r3  g3  b3  r4  g4  b4  r5\n    pand   m1, m7, m2      ; g5  b5  --- --- --- --- g7  b7  --- --- --- --- g9  b9  --- ---\n    pand   m7, m6          ; b10 r11 --- --- --- --- b12 r13 --- --- --- --- b14 r15 --- ---\n    pand   m6, m5          ; --- --- --- --- b6  r7  --- --- --- --- b8  r9  --- --- --- ---\n    por    m1, m6\n    pand   m6, m4, m3      ; --- --- r6  g6  --- --- --- --- r8  g8  --- --- --- --- r10 g10\n    pand   m2, m4          ; --- --- g11 b11 --- --- --- --- g13 b13 --- --- --- --- g15 b15\n    pand   m3, m5          ; --- --- --- --- r12 g12 --- --- --- --- r14 g14 --- --- --- ---\n    por    m2, m7\n    por    m1, m6          ; g5  b5  r6  g6  b6  r7  g7  b7  r8  g8  b8  r9  g9  b9  r10 g10\n    por    m2, m3          ; b10 r11 g11 b11 r12 g12 b12 r13 g13 b13 r14 g14 b14 r15 g15 b15\n    movu [imageq], m0\n    movu [imageq + 16], m1\n    movu [imageq + 32], m2\n%endif ; PLANAR GBRP\n%else ; PACK RGB15/16/32\n    packuswb m0, m1\n    packuswb m3, m5\n    packuswb m2, m2\n    mova m1, m0\n    packuswb m7, m7\n    punpcklbw m0, m3 ; B0 B1 B2 B3 ... B7\n    punpckhbw m1, m3 ; R0 R1 R2 R3 ... R7\n    punpcklbw m2, m7 ; G0 G1 G2 G3 ... G7\n%if %3 == 32 ; PACK RGB32\n%define depth 4\n%ifidn %1, yuv\n    pcmpeqd m3, m3 ; Set alpha empty\n%else\n    movu m3, [pa_2indexq + 2 * indexq] ; Load alpha\n%endif\n    mova m5, m_blue\n    mova m6, m_red\n    punpckhbw m5,     m_green\n    punpcklbw m_blue, m_green\n    punpckhbw m6,     m_alpha\n    punpcklbw m_red,  m_alpha\n    mova m_green, m_blue\n    mova m_alpha, m5\n    punpcklwd m_blue, m_red\n    punpckhwd m_green, m_red\n    punpcklwd m5, m6\n    punpckhwd m_alpha, m6\n    movu [imageq + 0], m_blue\n    movu [imageq + 8  * time_num], m_green\n    movu [imageq + 16 * time_num], m5\n    movu [imageq + 24 * time_num], m_alpha\n%else ; PACK RGB15/16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:7", "text": "%else\n    movu m3, [pa_2indexq + 2 * indexq] ; Load alpha\n%endif\n    mova m5, m_blue\n    mova m6, m_red\n    punpckhbw m5,     m_green\n    punpcklbw m_blue, m_green\n    punpckhbw m6,     m_alpha\n    punpcklbw m_red,  m_alpha\n    mova m_green, m_blue\n    mova m_alpha, m5\n    punpcklwd m_blue, m_red\n    punpckhwd m_green, m_red\n    punpcklwd m5, m6\n    punpckhwd m_alpha, m6\n    movu [imageq + 0], m_blue\n    movu [imageq + 8  * time_num], m_green\n    movu [imageq + 16 * time_num], m5\n    movu [imageq + 24 * time_num], m_alpha\n%else ; PACK RGB15/16\n%define depth 2\n    %define red_dither m3\n    %define green_dither m4\n    %define blue_dither m5\n    VBROADCASTSD red_dither,   [pointer_c_ditherq + 0 * 8]\n    VBROADCASTSD green_dither, [pointer_c_ditherq + 1 * 8]\n    VBROADCASTSD blue_dither,  [pointer_c_ditherq + 2 * 8]\n%if %3 == 15\n%define gmask pb_03\n%define isRGB15 1\n%else\n%define gmask pb_07\n%define isRGB15 0\n%endif\n    paddusb m0, blue_dither\n    paddusb m2, green_dither\n    paddusb m1, red_dither\n    pand m0, [pb_f8]\n    pand m1, [pb_f8]\n    mova m3, m2\n    psllw m2, 3 - isRGB15\n    psrlw m3, 5 + isRGB15\n    psrlw m0, 3\n    psrlw m1, isRGB15\n    pand m2, [pb_e0]\n    pand m3, [gmask]\n    por m0, m2\n    por m1, m3\n    mova m2, m0\n    punpcklbw m0, m1\n    punpckhbw m2, m1\n    movu [imageq], m0\n    movu [imageq + 8 * time_num], m2\n%endif ; PACK RGB15/16\n%endif ; PACK RGB15/16/32\n\nadd imageq, 8 * depth * time_num\nadd indexq, 4 * time_num\njs .loop0", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:8", "text": "psllw m2, 3 - isRGB15\n    psrlw m3, 5 + isRGB15\n    psrlw m0, 3\n    psrlw m1, isRGB15\n    pand m2, [pb_e0]\n    pand m3, [gmask]\n    por m0, m2\n    por m1, m3\n    mova m2, m0\n    punpcklbw m0, m1\n    punpckhbw m2, m1\n    movu [imageq], m0\n    movu [imageq + 8 * time_num], m2\n%endif ; PACK RGB15/16\n%endif ; PACK RGB15/16/32\n\nadd imageq, 8 * depth * time_num\nadd indexq, 4 * time_num\njs .loop0\n\nRET\n\n%endmacro\n\nINIT_XMM ssse3\nyuv2rgb_fn yuv,  rgb, 24\nyuv2rgb_fn yuv,  bgr, 24\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15\nyuv2rgb_fn yuv,  rgb, 16\n%if ARCH_X86_64\nyuv2rgb_fn yuv,  gbrp, 24\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/libswscale/x86/yuv_2_rgb.asm", "line_start": 281, "line_end": 316}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:1", "text": ";******************************************************************************\n;* software YUV to RGB converter\n;*\n;* Copyright (C) 2001-2007 Michael Niedermayer\n;*           (c) 2010 Konstantin Shishkov\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n; below variables are named like mask_dwXY, which means to preserve dword No.X & No.Y\nmask_dw036 : db -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0\nmask_dw147 : db  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1\nmask_dw25  : db  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0\nrgb24_shuf1: db  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15,  4,  5, 10, 11\nrgb24_shuf2: db 10, 11,  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15,  4,  5\nrgb24_shuf3: db  4,  5, 10, 11,  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15\npw_00ff: times 8 dw 255\npb_f8:   times 16 db 248\npb_e0:   times 16 db 224\npb_03:   times 16 db 3\npb_07:   times 16 db 7\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n;\n; YUV420/YUVA420 to RGB/BGR 15/16/24/32\n; R = Y + ((vrCoff * (v - 128)) >> 8)\n; G = Y - ((ugCoff * (u - 128) + vgCoff * (v - 128)) >> 8)\n; B = Y + ((ubCoff * (u - 128)) >> 8)\n;\n;-----------------------------------------------------------------------------\n\n%macro yuv2rgb_fn 3\n\n%if %3 == 32\n    %ifidn %1, yuva\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index, pa_2index\n    %define GPR_num 7\n    %else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:2", "text": "SECTION .text\n\n;-----------------------------------------------------------------------------\n;\n; YUV420/YUVA420 to RGB/BGR 15/16/24/32\n; R = Y + ((vrCoff * (v - 128)) >> 8)\n; G = Y - ((ugCoff * (u - 128) + vgCoff * (v - 128)) >> 8)\n; B = Y + ((ubCoff * (u - 128)) >> 8)\n;\n;-----------------------------------------------------------------------------\n\n%macro yuv2rgb_fn 3\n\n%if %3 == 32\n    %ifidn %1, yuva\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index, pa_2index\n    %define GPR_num 7\n    %else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6\n    %endif\n%else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6\n%endif\n\n%define m_green m2\n%define m_alpha m3\n%define m_y m6\n%define m_u m0\n%define m_v m1\n%ifidn %2, rgb\n%define m_red m1\n%define m_blue m0\n%else\n%define m_red m0\n%define m_blue m1\n%endif\n\n%define time_num 2\n%if ARCH_X86_32\n%define reg_num 8\n%define my_offset [pointer_c_ditherq + 8  * 8]\n%define mu_offset [pointer_c_ditherq + 9  * 8]\n%define mv_offset [pointer_c_ditherq + 10 * 8]\n%define mug_coff  [pointer_c_ditherq + 7  * 8]\n%define mvg_coff  [pointer_c_ditherq + 6  * 8]\n%define my_coff   [pointer_c_ditherq + 3  * 8]\n%define mub_coff  [pointer_c_ditherq + 5  * 8]\n%define mvr_coff  [pointer_c_ditherq + 4  * 8]\n%else ; ARCH_X86_64\n%define reg_num 16\n%define y_offset m8\n%define u_offset m9\n%define v_offset m10\n%define ug_coff  m11\n%define vg_coff  m12\n%define y_coff   m13\n%define ub_coff  m14\n%define vr_coff  m15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:3", "text": "%if ARCH_X86_32\n%define reg_num 8\n%define my_offset [pointer_c_ditherq + 8  * 8]\n%define mu_offset [pointer_c_ditherq + 9  * 8]\n%define mv_offset [pointer_c_ditherq + 10 * 8]\n%define mug_coff  [pointer_c_ditherq + 7  * 8]\n%define mvg_coff  [pointer_c_ditherq + 6  * 8]\n%define my_coff   [pointer_c_ditherq + 3  * 8]\n%define mub_coff  [pointer_c_ditherq + 5  * 8]\n%define mvr_coff  [pointer_c_ditherq + 4  * 8]\n%else ; ARCH_X86_64\n%define reg_num 16\n%define y_offset m8\n%define u_offset m9\n%define v_offset m10\n%define ug_coff  m11\n%define vg_coff  m12\n%define y_coff   m13\n%define ub_coff  m14\n%define vr_coff  m15\n%endif ; ARCH_X86_32/64\n\ncglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters\n\n%if ARCH_X86_64\n    movsxd indexq, indexd\n    VBROADCASTSD y_offset, [pointer_c_ditherq + 8  * 8]\n    VBROADCASTSD u_offset, [pointer_c_ditherq + 9  * 8]\n    VBROADCASTSD v_offset, [pointer_c_ditherq + 10 * 8]\n    VBROADCASTSD ug_coff,  [pointer_c_ditherq + 7  * 8]\n    VBROADCASTSD vg_coff,  [pointer_c_ditherq + 6  * 8]\n    VBROADCASTSD y_coff,   [pointer_c_ditherq + 3  * 8]\n    VBROADCASTSD ub_coff,  [pointer_c_ditherq + 5  * 8]\n    VBROADCASTSD vr_coff,  [pointer_c_ditherq + 4  * 8]\n%endif\n.loop0:\n    movu m_y, [py_2indexq + 2 * indexq]\n    movh m_u, [pu_indexq  +     indexq]\n    movh m_v, [pv_indexq  +     indexq]\n    pxor m4, m4\n    mova m7, m6\n    punpcklbw m0, m4\n    punpcklbw m1, m4\n    mova m2, [pw_00ff]\n    pand m6, m2\n    psrlw m7, 8\n    psllw m0, 3\n    psllw m1, 3\n    psllw m6, 3\n    psllw m7, 3\n%if ARCH_X86_32\n    VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset\n    psubsw m0, m2 ; U = U - 128\n    psubsw m1, m3 ; V = V - 128\n    psubw  m6, m4\n    psubw  m7, m4\n    VBROADCASTSD m2, mug_coff\n    VBROADCASTSD m3, mvg_coff", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:4", "text": "mova m7, m6\n    punpcklbw m0, m4\n    punpcklbw m1, m4\n    mova m2, [pw_00ff]\n    pand m6, m2\n    psrlw m7, 8\n    psllw m0, 3\n    psllw m1, 3\n    psllw m6, 3\n    psllw m7, 3\n%if ARCH_X86_32\n    VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset\n    psubsw m0, m2 ; U = U - 128\n    psubsw m1, m3 ; V = V - 128\n    psubw  m6, m4\n    psubw  m7, m4\n    VBROADCASTSD m2, mug_coff\n    VBROADCASTSD m3, mvg_coff\n    VBROADCASTSD m4, my_coff\n    VBROADCASTSD m5, mub_coff\n    pmulhw m2, m0\n    pmulhw m3, m1\n    pmulhw m6, m4\n    pmulhw m7, m4\n    pmulhw m0, m5\n    VBROADCASTSD m4, mvr_coff\n    pmulhw m1, m4\n%else ; ARCH_X86_64\n    psubsw m0, u_offset ; U = U - 128\n    psubsw m1, v_offset ; V = V - 128\n    psubw  m6, y_offset\n    psubw  m7, y_offset\n    mova m2, m0\n    mova m3, m1\n    pmulhw m2, ug_coff\n    pmulhw m3, vg_coff\n    pmulhw m6, y_coff\n    pmulhw m7, y_coff\n    pmulhw m0, ub_coff\n    pmulhw m1, vr_coff\n%endif\n    paddsw m2, m3\n    mova m3, m7\n    mova m5, m7\n    paddsw m3, m0 ; B1 B3 B5 B7 ...\n    paddsw m5, m1 ; R1 R3 R5 R7 ...\n    paddsw m7, m2 ; G1 G3 G5 G7 ...\n    paddsw m0, m6 ; B0 B2 B4 B6 ...\n    paddsw m1, m6 ; R0 R2 R4 R6 ...\n    paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n%define depth 3\n    packuswb m0, m3 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m1, m5 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n    mova m3, m_red\n    mova m6, m_blue", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:5", "text": "pmulhw m0, ub_coff\n    pmulhw m1, vr_coff\n%endif\n    paddsw m2, m3\n    mova m3, m7\n    mova m5, m7\n    paddsw m3, m0 ; B1 B3 B5 B7 ...\n    paddsw m5, m1 ; R1 R3 R5 R7 ...\n    paddsw m7, m2 ; G1 G3 G5 G7 ...\n    paddsw m0, m6 ; B0 B2 B4 B6 ...\n    paddsw m1, m6 ; R0 R2 R4 R6 ...\n    paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n%define depth 3\n    packuswb m0, m3 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m1, m5 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n    mova m3, m_red\n    mova m6, m_blue\n    psrldq m_red, 8\n    punpcklbw m3, m2     ; R0 G0 R2 G2 R4 G4 R6 G6 R8 G8 ...\n    punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5\n    por    m0, m1\n    pand   m1, m5, m2      ; --- --- --- --- g1  b1  --- --- --- --- g3  b3  --- --- --- ---\n    por    m0, m1          ; r0  g0  b0  r1  g1  b1  r2  g2  b2  r3  g3  b3  r4  g4  b4  r5\n    pand   m1, m7, m2      ; g5  b5  --- --- --- --- g7  b7  --- --- --- --- g9  b9  --- ---\n    pand   m7, m6          ; b10 r11 --- --- --- --- b12 r13 --- --- --- --- b14 r15 --- ---\n    pand   m6, m5          ; --- --- --- --- b6  r7  --- --- --- --- b8  r9  --- --- --- ---\n    por    m1, m6\n    pand   m6, m4, m3      ; --- --- r6  g6  --- --- --- --- r8  g8  --- --- --- --- r10 g10\n    pand   m2, m4          ; --- --- g11 b11 --- --- --- --- g13 b13 --- --- --- --- g15 b15\n    pand   m3, m5          ; --- --- --- --- r12 g12 --- --- --- --- r14 g14 --- --- --- ---\n    por    m2, m7\n    por    m1, m6          ; g5  b5  r6  g6  b6  r7  g7  b7  r8  g8  b8  r9  g9  b9  r10 g10\n    por    m2, m3          ; b10 r11 g11 b11 r12 g12 b12 r13 g13 b13 r14 g14 b14 r15 g15 b15\n    movu [imageq], m0\n    movu [imageq + 16], m1\n    movu [imageq + 32], m2\n%else ; PACK RGB15/16/32\n    packuswb m0, m1\n    packuswb m3, m5\n    packuswb m2, m2\n    mova m1, m0\n    packuswb m7, m7\n    punpcklbw m0, m3 ; B0 B1 B2 B3 ... B7\n    punpckhbw m1, m3 ; R0 R1 R2 R3 ... R7\n    punpcklbw m2, m7 ; G0 G1 G2 G3 ... G7\n%if %3 == 32 ; PACK RGB32\n%define depth 4\n%ifidn %1, yuv", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:6", "text": "pand   m2, m4          ; --- --- g11 b11 --- --- --- --- g13 b13 --- --- --- --- g15 b15\n    pand   m3, m5          ; --- --- --- --- r12 g12 --- --- --- --- r14 g14 --- --- --- ---\n    por    m2, m7\n    por    m1, m6          ; g5  b5  r6  g6  b6  r7  g7  b7  r8  g8  b8  r9  g9  b9  r10 g10\n    por    m2, m3          ; b10 r11 g11 b11 r12 g12 b12 r13 g13 b13 r14 g14 b14 r15 g15 b15\n    movu [imageq], m0\n    movu [imageq + 16], m1\n    movu [imageq + 32], m2\n%else ; PACK RGB15/16/32\n    packuswb m0, m1\n    packuswb m3, m5\n    packuswb m2, m2\n    mova m1, m0\n    packuswb m7, m7\n    punpcklbw m0, m3 ; B0 B1 B2 B3 ... B7\n    punpckhbw m1, m3 ; R0 R1 R2 R3 ... R7\n    punpcklbw m2, m7 ; G0 G1 G2 G3 ... G7\n%if %3 == 32 ; PACK RGB32\n%define depth 4\n%ifidn %1, yuv\n    pcmpeqd m3, m3 ; Set alpha empty\n%else\n    movu m3, [pa_2indexq + 2 * indexq] ; Load alpha\n%endif\n    mova m5, m_blue\n    mova m6, m_red\n    punpckhbw m5,     m_green\n    punpcklbw m_blue, m_green\n    punpckhbw m6,     m_alpha\n    punpcklbw m_red,  m_alpha\n    mova m_green, m_blue\n    mova m_alpha, m5\n    punpcklwd m_blue, m_red\n    punpckhwd m_green, m_red\n    punpcklwd m5, m6\n    punpckhwd m_alpha, m6\n    movu [imageq + 0], m_blue\n    movu [imageq + 8  * time_num], m_green\n    movu [imageq + 16 * time_num], m5\n    movu [imageq + 24 * time_num], m_alpha\n%else ; PACK RGB15/16\n%define depth 2\n    %define red_dither m3\n    %define green_dither m4\n    %define blue_dither m5\n    VBROADCASTSD red_dither,   [pointer_c_ditherq + 0 * 8]\n    VBROADCASTSD green_dither, [pointer_c_ditherq + 1 * 8]\n    VBROADCASTSD blue_dither,  [pointer_c_ditherq + 2 * 8]\n%if %3 == 15\n%define gmask pb_03\n%define isRGB15 1\n%else\n%define gmask pb_07\n%define isRGB15 0\n%endif\n    paddusb m0, blue_dither\n    paddusb m2, green_dither\n    paddusb m1, red_dither\n    pand m0, [pb_f8]\n    pand m1, [pb_f8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:7", "text": "%else ; PACK RGB15/16\n%define depth 2\n    %define red_dither m3\n    %define green_dither m4\n    %define blue_dither m5\n    VBROADCASTSD red_dither,   [pointer_c_ditherq + 0 * 8]\n    VBROADCASTSD green_dither, [pointer_c_ditherq + 1 * 8]\n    VBROADCASTSD blue_dither,  [pointer_c_ditherq + 2 * 8]\n%if %3 == 15\n%define gmask pb_03\n%define isRGB15 1\n%else\n%define gmask pb_07\n%define isRGB15 0\n%endif\n    paddusb m0, blue_dither\n    paddusb m2, green_dither\n    paddusb m1, red_dither\n    pand m0, [pb_f8]\n    pand m1, [pb_f8]\n    mova m3, m2\n    psllw m2, 3 - isRGB15\n    psrlw m3, 5 + isRGB15\n    psrlw m0, 3\n    psrlw m1, isRGB15\n    pand m2, [pb_e0]\n    pand m3, [gmask]\n    por m0, m2\n    por m1, m3\n    mova m2, m0\n    punpcklbw m0, m1\n    punpckhbw m2, m1\n    movu [imageq], m0\n    movu [imageq + 8 * time_num], m2\n%endif ; PACK RGB15/16\n%endif ; PACK RGB15/16/32\n\nadd imageq, 8 * depth * time_num\nadd indexq, 4 * time_num\njs .loop0\n\nRET\n\n%endmacro\n\nINIT_XMM ssse3\nyuv2rgb_fn yuv,  rgb, 24\nyuv2rgb_fn yuv,  bgr, 24\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15\nyuv2rgb_fn yuv,  rgb, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 241, "line_end": 294}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:8", "text": "RET\n\n%endmacro\n\nINIT_XMM ssse3\nyuv2rgb_fn yuv,  rgb, 24\nyuv2rgb_fn yuv,  bgr, 24\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15\nyuv2rgb_fn yuv,  rgb, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "61e851381f3c039dd8c06073f22da12fcc7409b0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/61e851381f3c039dd8c06073f22da12fcc7409b0/libswscale/x86/yuv_2_rgb.asm", "line_start": 281, "line_end": 294}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:1", "text": ";******************************************************************************\n;* software YUV to RGB converter\n;*\n;* Copyright (C) 2001-2007 Michael Niedermayer\n;*           (c) 2010 Konstantin Shishkov\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or\n;* modify it under the terms of the GNU Lesser General Public\n;* License as published by the Free Software Foundation; either\n;* version 2.1 of the License, or (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n;* Lesser General Public License for more details.\n;*\n;* You should have received a copy of the GNU Lesser General Public\n;* License along with FFmpeg; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n;******************************************************************************\n\n%include \"libavutil/x86/x86util.asm\"\n\nSECTION_RODATA\n\n; below variables are named like mask_dwXY, which means to preserve dword No.X & No.Y\nmask_dw036 : db -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0\nmask_dw147 : db  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1\nmask_dw25  : db  0,  0,  0,  0, -1, -1,  0,  0,  0,  0, -1, -1,  0,  0,  0,  0\nrgb24_shuf1: db  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15,  4,  5, 10, 11\nrgb24_shuf2: db 10, 11,  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15,  4,  5\nrgb24_shuf3: db  4,  5, 10, 11,  0,  1,  6,  7, 12, 13,  2,  3,  8,  9, 14, 15\npw_00ff: times 8 dw 255\npb_f8:   times 16 db 248\npb_e0:   times 16 db 224\npb_03:   times 16 db 3\npb_07:   times 16 db 7\n\nmask_1101: dw -1, -1,  0, -1\nmask_0010: dw  0,  0, -1,  0\nmask_0110: dw  0, -1, -1,  0\nmask_1001: dw -1,  0,  0, -1\nmask_0100: dw  0, -1,  0,  0\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n;\n; YUV420/YUVA420 to RGB/BGR 15/16/24/32\n; R = Y + ((vrCoff * (v - 128)) >> 8)\n; G = Y - ((ugCoff * (u - 128) + vgCoff * (v - 128)) >> 8)\n; B = Y + ((ubCoff * (u - 128)) >> 8)\n;\n;-----------------------------------------------------------------------------\n\n%macro MOV_H2L 1\n%if mmsize == 8\n    psrlq %1, 32", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:2", "text": "mask_1101: dw -1, -1,  0, -1\nmask_0010: dw  0,  0, -1,  0\nmask_0110: dw  0, -1, -1,  0\nmask_1001: dw -1,  0,  0, -1\nmask_0100: dw  0, -1,  0,  0\n\nSECTION .text\n\n;-----------------------------------------------------------------------------\n;\n; YUV420/YUVA420 to RGB/BGR 15/16/24/32\n; R = Y + ((vrCoff * (v - 128)) >> 8)\n; G = Y - ((ugCoff * (u - 128) + vgCoff * (v - 128)) >> 8)\n; B = Y + ((ubCoff * (u - 128)) >> 8)\n;\n;-----------------------------------------------------------------------------\n\n%macro MOV_H2L 1\n%if mmsize == 8\n    psrlq %1, 32\n%else ; mmsize == 16\n    psrldq %1, 8\n%endif\n%endmacro\n\n%macro yuv2rgb_fn 3\n\n%if %3 == 32\n    %ifidn %1, yuva\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index, pa_2index\n    %define GPR_num 7\n    %else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6\n    %endif\n%else\n    %define parameters index, image, pu_index, pv_index, pointer_c_dither, py_2index\n    %define GPR_num 6\n%endif\n\n%define m_green m2\n%define m_alpha m3\n%define m_y m6\n%define m_u m0\n%define m_v m1\n%ifidn %2, rgb\n%define m_red m1\n%define m_blue m0\n%else\n%define m_red m0\n%define m_blue m1\n%endif\n\n%if mmsize == 8\n%define time_num 1\n%define reg_num 8\n%define y_offset [pointer_c_ditherq + 8  * 8]\n%define u_offset [pointer_c_ditherq + 9  * 8]\n%define v_offset [pointer_c_ditherq + 10 * 8]\n%define ug_coff  [pointer_c_ditherq + 7  * 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:3", "text": "%define m_green m2\n%define m_alpha m3\n%define m_y m6\n%define m_u m0\n%define m_v m1\n%ifidn %2, rgb\n%define m_red m1\n%define m_blue m0\n%else\n%define m_red m0\n%define m_blue m1\n%endif\n\n%if mmsize == 8\n%define time_num 1\n%define reg_num 8\n%define y_offset [pointer_c_ditherq + 8  * 8]\n%define u_offset [pointer_c_ditherq + 9  * 8]\n%define v_offset [pointer_c_ditherq + 10 * 8]\n%define ug_coff  [pointer_c_ditherq + 7  * 8]\n%define vg_coff  [pointer_c_ditherq + 6  * 8]\n%define y_coff   [pointer_c_ditherq + 3  * 8]\n%define ub_coff  [pointer_c_ditherq + 5  * 8]\n%define vr_coff  [pointer_c_ditherq + 4  * 8]\n%elif mmsize == 16\n%define time_num 2\n%if ARCH_X86_32\n%define reg_num 8\n%define my_offset [pointer_c_ditherq + 8  * 8]\n%define mu_offset [pointer_c_ditherq + 9  * 8]\n%define mv_offset [pointer_c_ditherq + 10 * 8]\n%define mug_coff  [pointer_c_ditherq + 7  * 8]\n%define mvg_coff  [pointer_c_ditherq + 6  * 8]\n%define my_coff   [pointer_c_ditherq + 3  * 8]\n%define mub_coff  [pointer_c_ditherq + 5  * 8]\n%define mvr_coff  [pointer_c_ditherq + 4  * 8]\n%else ; ARCH_X86_64\n%define reg_num 16\n%define y_offset m8\n%define u_offset m9\n%define v_offset m10\n%define ug_coff  m11\n%define vg_coff  m12\n%define y_coff   m13\n%define ub_coff  m14\n%define vr_coff  m15\n%endif ; ARCH_X86_32/64\n%endif ; coeff define mmsize == 8/16\n\ncglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters\n\n%if ARCH_X86_64\n    movsxd indexq, indexd\n%if mmsize == 16\n    VBROADCASTSD y_offset, [pointer_c_ditherq + 8  * 8]\n    VBROADCASTSD u_offset, [pointer_c_ditherq + 9  * 8]\n    VBROADCASTSD v_offset, [pointer_c_ditherq + 10 * 8]\n    VBROADCASTSD ug_coff,  [pointer_c_ditherq + 7  * 8]\n    VBROADCASTSD vg_coff,  [pointer_c_ditherq + 6  * 8]\n    VBROADCASTSD y_coff,   [pointer_c_ditherq + 3  * 8]", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:4", "text": "%define v_offset m10\n%define ug_coff  m11\n%define vg_coff  m12\n%define y_coff   m13\n%define ub_coff  m14\n%define vr_coff  m15\n%endif ; ARCH_X86_32/64\n%endif ; coeff define mmsize == 8/16\n\ncglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters\n\n%if ARCH_X86_64\n    movsxd indexq, indexd\n%if mmsize == 16\n    VBROADCASTSD y_offset, [pointer_c_ditherq + 8  * 8]\n    VBROADCASTSD u_offset, [pointer_c_ditherq + 9  * 8]\n    VBROADCASTSD v_offset, [pointer_c_ditherq + 10 * 8]\n    VBROADCASTSD ug_coff,  [pointer_c_ditherq + 7  * 8]\n    VBROADCASTSD vg_coff,  [pointer_c_ditherq + 6  * 8]\n    VBROADCASTSD y_coff,   [pointer_c_ditherq + 3  * 8]\n    VBROADCASTSD ub_coff,  [pointer_c_ditherq + 5  * 8]\n    VBROADCASTSD vr_coff,  [pointer_c_ditherq + 4  * 8]\n%endif\n%endif\n.loop0:\n    movu m_y, [py_2indexq + 2 * indexq]\n    movh m_u, [pu_indexq  +     indexq]\n    movh m_v, [pv_indexq  +     indexq]\n    pxor m4, m4\n    mova m7, m6\n    punpcklbw m0, m4\n    punpcklbw m1, m4\n    mova m2, [pw_00ff]\n    pand m6, m2\n    psrlw m7, 8\n    psllw m0, 3\n    psllw m1, 3\n    psllw m6, 3\n    psllw m7, 3\n%if (ARCH_X86_32 && mmsize == 16)\n    VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset\n    psubsw m0, m2 ; U = U - 128\n    psubsw m1, m3 ; V = V - 128\n    psubw  m6, m4\n    psubw  m7, m4\n    VBROADCASTSD m2, mug_coff\n    VBROADCASTSD m3, mvg_coff\n    VBROADCASTSD m4, my_coff\n    VBROADCASTSD m5, mub_coff\n    pmulhw m2, m0\n    pmulhw m3, m1\n    pmulhw m6, m4\n    pmulhw m7, m4\n    pmulhw m0, m5\n    VBROADCASTSD m4, mvr_coff\n    pmulhw m1, m4\n%else ; ARCH_X86_64 || mmsize == 8\n    psubsw m0, u_offset ; U = U - 128", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:5", "text": "VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset\n    psubsw m0, m2 ; U = U - 128\n    psubsw m1, m3 ; V = V - 128\n    psubw  m6, m4\n    psubw  m7, m4\n    VBROADCASTSD m2, mug_coff\n    VBROADCASTSD m3, mvg_coff\n    VBROADCASTSD m4, my_coff\n    VBROADCASTSD m5, mub_coff\n    pmulhw m2, m0\n    pmulhw m3, m1\n    pmulhw m6, m4\n    pmulhw m7, m4\n    pmulhw m0, m5\n    VBROADCASTSD m4, mvr_coff\n    pmulhw m1, m4\n%else ; ARCH_X86_64 || mmsize == 8\n    psubsw m0, u_offset ; U = U - 128\n    psubsw m1, v_offset ; V = V - 128\n    psubw  m6, y_offset\n    psubw  m7, y_offset\n    mova m2, m0\n    mova m3, m1\n    pmulhw m2, ug_coff\n    pmulhw m3, vg_coff\n    pmulhw m6, y_coff\n    pmulhw m7, y_coff\n    pmulhw m0, ub_coff\n    pmulhw m1, vr_coff\n%endif\n    paddsw m2, m3\n    mova m3, m7\n    mova m5, m7\n    paddsw m3, m0 ; B1 B3 B5 B7 ...\n    paddsw m5, m1 ; R1 R3 R5 R7 ...\n    paddsw m7, m2 ; G1 G3 G5 G7 ...\n    paddsw m0, m6 ; B0 B2 B4 B6 ...\n    paddsw m1, m6 ; R0 R2 R4 R6 ...\n    paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n%define depth 3\n    packuswb m0, m3 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m1, m5 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n    mova m3, m_red\n    mova m6, m_blue\n    MOV_H2L m_red\n    punpcklbw m3, m2     ; R0 G0 R2 G2 R4 G4 R6 G6 R8 G8 ...\n    punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    mova m5, m3\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n%if  mmsize == 8\n    punpcklwd m3 ,m6     ; R0 G0 B0 R1 R2 G2 B2 R3\n    punpckhwd m5, m6     ; R4 G4 B4 R5 R6 G6 B6 R7\n%if cpuflag(mmxext)\n    pshufw m1, m2, 0xc6\n    pshufw m6, m3, 0x84", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:6", "text": "paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n%define depth 3\n    packuswb m0, m3 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m1, m5 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n    mova m3, m_red\n    mova m6, m_blue\n    MOV_H2L m_red\n    punpcklbw m3, m2     ; R0 G0 R2 G2 R4 G4 R6 G6 R8 G8 ...\n    punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    mova m5, m3\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n%if  mmsize == 8\n    punpcklwd m3 ,m6     ; R0 G0 B0 R1 R2 G2 B2 R3\n    punpckhwd m5, m6     ; R4 G4 B4 R5 R6 G6 B6 R7\n%if cpuflag(mmxext)\n    pshufw m1, m2, 0xc6\n    pshufw m6, m3, 0x84\n    pshufw m7, m5, 0x38\n    pand m6, [mask_1101] ; R0 G0 B0 R1 -- -- R2 G2\n    movq m0, m1\n    pand m7, [mask_0110] ; -- -- R6 G6 B6 R7 -- --\n    movq m2, m1\n    pand m1, [mask_0100] ; -- -- G3 B3 -- -- -- --\n    psrlq m3, 48         ; B2 R3 -- -- -- -- -- --\n    pand m0, [mask_0010] ; -- -- -- -- G1 B1 -- --\n    psllq m5, 32         ; -- -- -- -- R4 G4 B4 R5\n    pand m2, [mask_1001] ; G5 B5 -- -- -- -- G7 B7\n    por m1, m3\n    por m0, m6\n    por m1, m5\n    por m2, m7\n    movntq [imageq], m0\n    movntq [imageq + 8], m1\n    movntq [imageq + 16], m2\n%else ; cpuflag(mmx)\n    movd [imageq], m3      ; R0 G0 R2 G2\n    movd [imageq + 4], m2  ; G1 B1\n    psrlq m3, 32\n    psrlq m2, 16\n    movd [imageq + 6], m3  ; R2 G2 B2 R3\n    movd [imageq + 10], m2 ; G3 B3\n    psrlq m2, 16\n    movd [imageq + 12], m5 ; R4 G4 B4 R5\n    movd [imageq + 16], m2 ; G5 B5\n    psrlq m5, 32\n    movd [imageq + 20], m2 ; -- -- G7 B7\n    movd [imageq + 18], m5 ; R6 G6 B6 R7\n%endif ; cpuflag\n%else ; mmsize == 16\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:7", "text": "psrlq m3, 32\n    psrlq m2, 16\n    movd [imageq + 6], m3  ; R2 G2 B2 R3\n    movd [imageq + 10], m2 ; G3 B3\n    psrlq m2, 16\n    movd [imageq + 12], m5 ; R4 G4 B4 R5\n    movd [imageq + 16], m2 ; G5 B5\n    psrlq m5, 32\n    movd [imageq + 20], m2 ; -- -- G7 B7\n    movd [imageq + 18], m5 ; R6 G6 B6 R7\n%endif ; cpuflag\n%else ; mmsize == 16\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5\n    por    m0, m1\n    pand   m1, m5, m2      ; --- --- --- --- g1  b1  --- --- --- --- g3  b3  --- --- --- ---\n    por    m0, m1          ; r0  g0  b0  r1  g1  b1  r2  g2  b2  r3  g3  b3  r4  g4  b4  r5\n    pand   m1, m7, m2      ; g5  b5  --- --- --- --- g7  b7  --- --- --- --- g9  b9  --- ---\n    pand   m7, m6          ; b10 r11 --- --- --- --- b12 r13 --- --- --- --- b14 r15 --- ---\n    pand   m6, m5          ; --- --- --- --- b6  r7  --- --- --- --- b8  r9  --- --- --- ---\n    por    m1, m6\n    pand   m6, m4, m3      ; --- --- r6  g6  --- --- --- --- r8  g8  --- --- --- --- r10 g10\n    pand   m2, m4          ; --- --- g11 b11 --- --- --- --- g13 b13 --- --- --- --- g15 b15\n    pand   m3, m5          ; --- --- --- --- r12 g12 --- --- --- --- r14 g14 --- --- --- ---\n    por    m2, m7\n    por    m1, m6          ; g5  b5  r6  g6  b6  r7  g7  b7  r8  g8  b8  r9  g9  b9  r10 g10\n    por    m2, m3          ; b10 r11 g11 b11 r12 g12 b12 r13 g13 b13 r14 g14 b14 r15 g15 b15\n    movu [imageq], m0\n    movu [imageq + 16], m1\n    movu [imageq + 32], m2\n%endif ; mmsize = 16\n%else ; PACK RGB15/16/32\n    packuswb m0, m1\n    packuswb m3, m5\n    packuswb m2, m2\n    mova m1, m0\n    packuswb m7, m7\n    punpcklbw m0, m3 ; B0 B1 B2 B3 ... B7\n    punpckhbw m1, m3 ; R0 R1 R2 R3 ... R7\n    punpcklbw m2, m7 ; G0 G1 G2 G3 ... G7\n%if %3 == 32 ; PACK RGB32\n%define depth 4\n%ifidn %1, yuv\n    pcmpeqd m3, m3 ; Set alpha empty\n%else\n    movu m3, [pa_2indexq + 2 * indexq] ; Load alpha\n%endif\n    mova m5, m_blue\n    mova m6, m_red\n    punpckhbw m5,     m_green\n    punpcklbw m_blue, m_green\n    punpckhbw m6,     m_alpha\n    punpcklbw m_red,  m_alpha\n    mova m_green, m_blue", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:8", "text": "packuswb m2, m2\n    mova m1, m0\n    packuswb m7, m7\n    punpcklbw m0, m3 ; B0 B1 B2 B3 ... B7\n    punpckhbw m1, m3 ; R0 R1 R2 R3 ... R7\n    punpcklbw m2, m7 ; G0 G1 G2 G3 ... G7\n%if %3 == 32 ; PACK RGB32\n%define depth 4\n%ifidn %1, yuv\n    pcmpeqd m3, m3 ; Set alpha empty\n%else\n    movu m3, [pa_2indexq + 2 * indexq] ; Load alpha\n%endif\n    mova m5, m_blue\n    mova m6, m_red\n    punpckhbw m5,     m_green\n    punpcklbw m_blue, m_green\n    punpckhbw m6,     m_alpha\n    punpcklbw m_red,  m_alpha\n    mova m_green, m_blue\n    mova m_alpha, m5\n    punpcklwd m_blue, m_red\n    punpckhwd m_green, m_red\n    punpcklwd m5, m6\n    punpckhwd m_alpha, m6\n    movu [imageq + 0], m_blue\n    movu [imageq + 8  * time_num], m_green\n    movu [imageq + 16 * time_num], m5\n    movu [imageq + 24 * time_num], m_alpha\n%else ; PACK RGB15/16\n%define depth 2\n%if cpuflag(ssse3)\n    %define red_dither m3\n    %define green_dither m4\n    %define blue_dither m5\n    VBROADCASTSD red_dither,   [pointer_c_ditherq + 0 * 8]\n    VBROADCASTSD green_dither, [pointer_c_ditherq + 1 * 8]\n    VBROADCASTSD blue_dither,  [pointer_c_ditherq + 2 * 8]\n%else ; cpuflag(mmx/mmxext)\n%define blue_dither  [pointer_c_ditherq + 2  * 8]\n%define green_dither [pointer_c_ditherq + 1  * 8]\n%define red_dither   [pointer_c_ditherq + 0  * 8]\n%endif\n%if %3 == 15\n%define gmask pb_03\n%define isRGB15 1\n%else\n%define gmask pb_07\n%define isRGB15 0\n%endif\n    paddusb m0, blue_dither\n    paddusb m2, green_dither\n    paddusb m1, red_dither\n    pand m0, [pb_f8]\n    pand m1, [pb_f8]\n    mova m3, m2\n    psllw m2, 3 - isRGB15\n    psrlw m3, 5 + isRGB15\n    psrlw m0, 3\n    psrlw m1, isRGB15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 281, "line_end": 340}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:9", "text": "%define green_dither [pointer_c_ditherq + 1  * 8]\n%define red_dither   [pointer_c_ditherq + 0  * 8]\n%endif\n%if %3 == 15\n%define gmask pb_03\n%define isRGB15 1\n%else\n%define gmask pb_07\n%define isRGB15 0\n%endif\n    paddusb m0, blue_dither\n    paddusb m2, green_dither\n    paddusb m1, red_dither\n    pand m0, [pb_f8]\n    pand m1, [pb_f8]\n    mova m3, m2\n    psllw m2, 3 - isRGB15\n    psrlw m3, 5 + isRGB15\n    psrlw m0, 3\n    psrlw m1, isRGB15\n    pand m2, [pb_e0]\n    pand m3, [gmask]\n    por m0, m2\n    por m1, m3\n    mova m2, m0\n    punpcklbw m0, m1\n    punpckhbw m2, m1\n    movu [imageq], m0\n    movu [imageq + 8 * time_num], m2\n%endif ; PACK RGB15/16\n%endif ; PACK RGB15/16/32\n\nadd imageq, 8 * depth * time_num\nadd indexq, 4 * time_num\njs .loop0\n\nRET\n\n%endmacro\n\nINIT_MMX mmx\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15\nyuv2rgb_fn yuv,  rgb, 16\n\nINIT_MMX mmxext\nyuv2rgb_fn yuv, rgb, 24\nyuv2rgb_fn yuv, bgr, 24\n\nINIT_XMM ssse3\nyuv2rgb_fn yuv,  rgb, 24\nyuv2rgb_fn yuv,  bgr, 24\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 321, "line_end": 380}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:10", "text": "INIT_MMX mmx\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15\nyuv2rgb_fn yuv,  rgb, 16\n\nINIT_MMX mmxext\nyuv2rgb_fn yuv, rgb, 24\nyuv2rgb_fn yuv, bgr, 24\n\nINIT_XMM ssse3\nyuv2rgb_fn yuv,  rgb, 24\nyuv2rgb_fn yuv,  bgr, 24\nyuv2rgb_fn yuv,  rgb, 32\nyuv2rgb_fn yuv,  bgr, 32\nyuv2rgb_fn yuva, rgb, 32\nyuv2rgb_fn yuva, bgr, 32\nyuv2rgb_fn yuv,  rgb, 15\nyuv2rgb_fn yuv,  rgb, 16", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "5939f7228a23ac2e02259612bc174cdacbe04ac1", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/5939f7228a23ac2e02259612bc174cdacbe04ac1/libswscale/x86/yuv_2_rgb.asm", "line_start": 361, "line_end": 381}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:5", "text": "VBROADCASTSD m2, mu_offset\n    VBROADCASTSD m3, mv_offset\n    VBROADCASTSD m4, my_offset\n    psubsw m0, m2 ; U = U - 128\n    psubsw m1, m3 ; V = V - 128\n    psubw  m6, m4\n    psubw  m7, m4\n    VBROADCASTSD m2, mug_coff\n    VBROADCASTSD m3, mvg_coff\n    VBROADCASTSD m4, my_coff\n    VBROADCASTSD m5, mub_coff\n    pmulhw m2, m0\n    pmulhw m3, m1\n    pmulhw m6, m4\n    pmulhw m7, m4\n    pmulhw m0, m5\n    VBROADCASTSD m4, mvr_coff\n    pmulhw m1, m4\n%else ; ARCH_X86_64 || mmsize == 8\n    psubsw m0, u_offset ; U = U - 128\n    psubsw m1, v_offset ; V = V - 128\n    psubw  m6, y_offset\n    psubw  m7, y_offset\n    mova m2, m0\n    mova m3, m1\n    pmulhw m2, ug_coff\n    pmulhw m3, vg_coff\n    pmulhw m6, y_coff\n    pmulhw m7, y_coff\n    pmulhw m0, ub_coff\n    pmulhw m1, vr_coff\n%endif\n    paddsw m2, m3\n    mova m3, m7\n    mova m5, m7\n    paddsw m3, m0 ; B1 B3 B5 B7 ...\n    paddsw m5, m1 ; R1 R3 R5 R7 ...\n    paddsw m7, m2 ; G1 G3 G4 G7 ...\n    paddsw m0, m6 ; B0 B2 B4 B6 ...\n    paddsw m1, m6 ; R0 R2 R4 R6 ...\n    paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n%define depth 3\n    packuswb m0, m3 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m1, m5 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n    mova m3, m_red\n    mova m6, m_blue\n    MOV_H2L m_red\n    punpcklbw m3, m2     ; R0 G0 R2 G2 R4 G4 R6 G6 R8 G8 ...\n    punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    mova m5, m3\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n%if  mmsize == 8\n    punpcklwd m3 ,m6     ; R0 G0 B0 R1 R2 G2 B2 R3\n    punpckhwd m5, m6     ; R4 G4 B4 R5 R6 G6 B6 R7\n%if cpuflag(mmxext)\n    pshufw m1, m2, 0xc6\n    pshufw m6, m3, 0x84", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/yuv_2_rgb.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:6", "text": "paddsw m2, m6 ; G0 G2 G4 G6 ...\n\n%if %3 == 24 ; PACK RGB24\n%define depth 3\n    packuswb m0, m3 ; R0 R2 R4 R6 ... R1 R3 R5 R7 ...\n    packuswb m1, m5 ; B0 B2 B4 B6 ... B1 B3 B5 B7 ...\n    packuswb m2, m7 ; G0 G2 G4 G6 ... G1 G3 G5 G7 ...\n    mova m3, m_red\n    mova m6, m_blue\n    MOV_H2L m_red\n    punpcklbw m3, m2     ; R0 G0 R2 G2 R4 G4 R6 G6 R8 G8 ...\n    punpcklbw m6, m_red  ; B0 R1 B2 R3 B4 R5 B6 R7 B8 R9 ...\n    mova m5, m3\n    punpckhbw m2, m_blue ; G1 B1 G3 B3 G5 B5 G7 B7 G9 B9 ...\n%if  mmsize == 8\n    punpcklwd m3 ,m6     ; R0 G0 B0 R1 R2 G2 B2 R3\n    punpckhwd m5, m6     ; R4 G4 B4 R5 R6 G6 B6 R7\n%if cpuflag(mmxext)\n    pshufw m1, m2, 0xc6\n    pshufw m6, m3, 0x84\n    pshufw m7, m5, 0x38\n    pand m6, [mask_1101] ; R0 G0 B0 R1 -- -- R2 G2\n    movq m0, m1\n    pand m7, [mask_0110] ; -- -- R6 G6 B6 R7 -- --\n    movq m2, m1\n    pand m1, [mask_0100] ; -- -- G3 B3 -- -- -- --\n    psrlq m3, 48         ; B2 R3 -- -- -- -- -- --\n    pand m0, [mask_0010] ; -- -- -- -- G1 B1 -- --\n    psllq m5, 32         ; -- -- -- -- R4 G4 B4 R5\n    pand m2, [mask_1001] ; G5 B5 -- -- -- -- G7 B7\n    por m1, m3\n    por m0, m6\n    por m1, m5\n    por m2, m7\n    movntq [imageq], m0\n    movntq [imageq + 8], m1\n    movntq [imageq + 16], m2\n%else ; cpuflag(mmx)\n    movd [imageq], m3      ; R0 G0 R2 G2\n    movd [imageq + 4], m2  ; G1 B1\n    psrlq m3, 32\n    psrlq m2, 16\n    movd [imageq + 6], m3  ; R2 G2 B2 R3\n    movd [imageq + 10], m2 ; G3 B3\n    psrlq m2, 16\n    movd [imageq + 12], m5 ; R4 G4 B4 R5\n    movd [imageq + 16], m2 ; G5 B5\n    psrlq m5, 32\n    movd [imageq + 20], m2 ; -- -- G7 B7\n    movd [imageq + 18], m5 ; R6 G6 B6 R7\n%endif ; mmsize = 8\n%else ; mmsize == 16\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/yuv_2_rgb.asm", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:libswscale/x86/yuv_2_rgb.asm:7", "text": "psrlq m3, 32\n    psrlq m2, 16\n    movd [imageq + 6], m3  ; R2 G2 B2 R3\n    movd [imageq + 10], m2 ; G3 B3\n    psrlq m2, 16\n    movd [imageq + 12], m5 ; R4 G4 B4 R5\n    movd [imageq + 16], m2 ; G5 B5\n    psrlq m5, 32\n    movd [imageq + 20], m2 ; -- -- G7 B7\n    movd [imageq + 18], m5 ; R6 G6 B6 R7\n%endif ; mmsize = 8\n%else ; mmsize == 16\n    pshufb m3, [rgb24_shuf1] ; r0  g0  r6  g6  r12 g12 r2  g2  r8  g8  r14 g14 r4  g4  r10 g10\n    pshufb m6, [rgb24_shuf2] ; b10 r11 b0  r1  b6  r7  b12 r13 b2  r3  b8  r9  b14 r15 b4  r5\n    pshufb m2, [rgb24_shuf3] ; g5  b5  g11 b11 g1  b1  g7  b7  g13 b13 g3  b3  g9  b9  g15 b15\n    mova   m7, [mask_dw036]\n    mova   m4, [mask_dw147]\n    mova   m5, [mask_dw25]\n    pand   m0, m7, m3      ; r0  g0  --- --- --- --- r2  g2  --- --- --- --- r4  g4  --- ---\n    pand   m1, m4, m6      ; --- --- b0  r1  --- --- --- --- b2  r3  --- --- --- --- b4  r5\n    por    m0, m1\n    pand   m1, m5, m2      ; --- --- --- --- g1  b1  --- --- --- --- g3  b3  --- --- --- ---\n    por    m0, m1          ; r0  g0  b0  r1  g1  b1  r2  g2  b2  r3  g3  b3  r4  g4  b4  r5\n    pand   m1, m7, m2      ; g5  b5  --- --- --- --- g7  b7  --- --- --- --- g9  b9  --- ---\n    pand   m7, m6          ; b10 r11 --- --- --- --- b12 r13 --- --- --- --- b14 r15 --- ---\n    pand   m6, m5          ; --- --- --- --- b6  r7  --- --- --- --- b8  r9  --- --- --- ---\n    por    m1, m6\n    pand   m6, m4, m3      ; --- --- r6  g6  --- --- --- --- r8  g8  --- --- --- --- r10 g10\n    pand   m2, m4          ; --- --- g11 b11 --- --- --- --- g13 b13 --- --- --- --- g15 b15\n    pand   m3, m5          ; --- --- --- --- r12 g12 --- --- --- --- r14 g14 --- --- --- ---\n    por    m2, m7\n    por    m1, m6          ; g5  b5  r6  g6  b6  r7  g7  b7  r8  g8  b8  r9  g9  b9  r10 g10\n    por    m2, m3          ; b10 r11 g11 b11 r12 g12 b12 r13 g13 b13 r14 g14 b14 r15 g15 b15\n    movu [imageq], m0\n    movu [imageq + 16], m1\n    movu [imageq + 32], m2\n%endif ; mmsize = 16\n%else ; PACK RGB15/16/32\n    packuswb m0, m1\n    packuswb m3, m5\n    packuswb m2, m2\n    mova m1, m0\n    packuswb m7, m7\n    punpcklbw m0, m3 ; B0 B1 B2 B3 ... B7\n    punpckhbw m1, m3 ; R0 R1 R2 R3 ... R7\n    punpcklbw m2, m7 ; G0 G1 G2 G3 ... G7\n%if %3 == 32 ; PACK RGB32\n%define depth 4\n%ifidn %1, yuv\n    pcmpeqd m3, m3 ; Set alpha empty\n%else\n    movu m3, [pa_2indexq + 2 * indexq] ; Load alpha\n%endif\n    mova m5, m_blue\n    mova m6, m_red\n    punpckhbw m5,     m_green\n    punpcklbw m_blue, m_green\n    punpckhbw m6,     m_alpha\n    punpcklbw m_red,  m_alpha\n    mova m_green, m_blue", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "libswscale/x86/yuv_2_rgb.asm", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/libswscale/x86/yuv_2_rgb.asm", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:tests/checkasm/aarch64/checkasm.S:1", "text": "/****************************************************************************\n * Assembly testing and benchmarking tool\n * Copyright (c) 2015 Martin Storsjo\n * Copyright (c) 2015 Janne Grunau\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/aarch64/asm.S\"\n\nconst register_init, align=4\n        .quad 0x21f86d66c8ca00ce\n        .quad 0x75b6ba21077c48ad\n        .quad 0xed56bb2dcb3c7736\n        .quad 0x8bda43d3fd1a7e06\n        .quad 0xb64a9c9e5d318408\n        .quad 0xdf9a54b303f1d3a3\n        .quad 0x4a75479abd64e097\n        .quad 0x249214109d5d1c88\n        .quad 0x1a1b2550a612b48c\n        .quad 0x79445c159ce79064\n        .quad 0x2eed899d5a28ddcd\n        .quad 0x86b2536fcd8cf636\n        .quad 0xb0856806085e7943\n        .quad 0x3f2bf84fc0fcca4e\n        .quad 0xacbd382dcf5b8de2\n        .quad 0xd229e1f5b281303f\n        .quad 0x71aeaff20b095fd9\n        .quad 0xab63e2e11fa38ed9\nendconst\n\n\nconst error_message_register\n        .asciz \"failed to preserve register\"\nerror_message_stack:\n        .asciz \"stack clobbered\"\nendconst\n\n\n// max number of args used by any asm function.\n#define MAX_ARGS 15\n\n#define CLOBBER_STACK ((8*MAX_ARGS + 15) & ~15)\n\nfunction checkasm_stack_clobber, export=1\n        mov             x3,  sp", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/aarch64/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/aarch64/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/aarch64/checkasm.S:2", "text": ".quad 0xd229e1f5b281303f\n        .quad 0x71aeaff20b095fd9\n        .quad 0xab63e2e11fa38ed9\nendconst\n\n\nconst error_message_register\n        .asciz \"failed to preserve register\"\nerror_message_stack:\n        .asciz \"stack clobbered\"\nendconst\n\n\n// max number of args used by any asm function.\n#define MAX_ARGS 15\n\n#define CLOBBER_STACK ((8*MAX_ARGS + 15) & ~15)\n\nfunction checkasm_stack_clobber, export=1\n        mov             x3,  sp\n        mov             x2,  #CLOBBER_STACK\n1:\n        stp             x0,  x1,  [sp, #-16]!\n        subs            x2,  x2,  #16\n        b.gt            1b\n        mov             sp,  x3\n        ret\nendfunc\n\n// + 16 for stack canary reference\n#define ARG_STACK (((8*(MAX_ARGS - 8) + 15) & ~15) + 16)\n\nfunction checkasm_checked_call, export=1\n        stp             x29, x30, [sp, #-16]!\n        mov             x29, sp\n        stp             x19, x20, [sp, #-16]!\n        stp             x21, x22, [sp, #-16]!\n        stp             x23, x24, [sp, #-16]!\n        stp             x25, x26, [sp, #-16]!\n        stp             x27, x28, [sp, #-16]!\n        stp             d8,  d9,  [sp, #-16]!\n        stp             d10, d11, [sp, #-16]!\n        stp             d12, d13, [sp, #-16]!\n        stp             d14, d15, [sp, #-16]!\n\n        movrel          x9, register_init\n        ldp             d8,  d9,  [x9], #16\n        ldp             d10, d11, [x9], #16\n        ldp             d12, d13, [x9], #16\n        ldp             d14, d15, [x9], #16\n        ldp             x19, x20, [x9], #16\n        ldp             x21, x22, [x9], #16\n        ldp             x23, x24, [x9], #16\n        ldp             x25, x26, [x9], #16\n        ldp             x27, x28, [x9], #16\n\n        sub             sp,  sp,  #ARG_STACK\n.equ pos, 0\n.rept MAX_ARGS-8\n        // Skip the first 8 args, that are loaded into registers", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/aarch64/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/aarch64/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/aarch64/checkasm.S:3", "text": "stp             d8,  d9,  [sp, #-16]!\n        stp             d10, d11, [sp, #-16]!\n        stp             d12, d13, [sp, #-16]!\n        stp             d14, d15, [sp, #-16]!\n\n        movrel          x9, register_init\n        ldp             d8,  d9,  [x9], #16\n        ldp             d10, d11, [x9], #16\n        ldp             d12, d13, [x9], #16\n        ldp             d14, d15, [x9], #16\n        ldp             x19, x20, [x9], #16\n        ldp             x21, x22, [x9], #16\n        ldp             x23, x24, [x9], #16\n        ldp             x25, x26, [x9], #16\n        ldp             x27, x28, [x9], #16\n\n        sub             sp,  sp,  #ARG_STACK\n.equ pos, 0\n.rept MAX_ARGS-8\n        // Skip the first 8 args, that are loaded into registers\n        ldr             x9, [x29, #16 + 8*8 + pos]\n        str             x9, [sp, #pos]\n.equ pos, pos + 8\n.endr\n\n        // Fill x8-x17 with garbage. This doesn't have to be preserved,\n        // but avoids relying on them having any particular value.\n        movrel          x9, register_init\n        ldp             x10, x11, [x9], #32\n        ldp             x12, x13, [x9], #32\n        ldp             x14, x15, [x9], #32\n        ldp             x16, x17, [x9], #32\n        ldp             x8,  x9,  [x9]\n\n        // For stack overflows, the callee is free to overwrite the parameters\n        // that were passed on the stack (if any), so we can only check after\n        // that point. First figure out how many parameters the function\n        // really took on the stack:\n        ldr             w2,  [x29, #16 + 8*8 + (MAX_ARGS-8)*8]\n        // Load the first non-parameter value from the stack, that should be\n        // left untouched by the function. Store a copy of it inverted, so that\n        // e.g. overwriting everything with zero would be noticed.\n        ldr             x2,  [sp, x2, lsl #3]\n        mvn             x2,  x2\n        str             x2,  [sp, #ARG_STACK-8]\n\n        // Load the in-register arguments\n        mov             x12, x0\n        ldp             x0,  x1,  [x29, #16]\n        ldp             x2,  x3,  [x29, #32]\n        ldp             x4,  x5,  [x29, #48]\n        ldp             x6,  x7,  [x29, #64]\n        // Call the target function\n        blr             x12\n\n        // Load the number of stack parameters, stack canary and its reference\n        ldr             w2,  [x29, #16 + 8*8 + (MAX_ARGS-8)*8]\n        ldr             x2,  [sp, x2, lsl #3]\n        ldr             x3,  [sp, #ARG_STACK-8]", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/aarch64/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/aarch64/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/aarch64/checkasm.S:4", "text": "// left untouched by the function. Store a copy of it inverted, so that\n        // e.g. overwriting everything with zero would be noticed.\n        ldr             x2,  [sp, x2, lsl #3]\n        mvn             x2,  x2\n        str             x2,  [sp, #ARG_STACK-8]\n\n        // Load the in-register arguments\n        mov             x12, x0\n        ldp             x0,  x1,  [x29, #16]\n        ldp             x2,  x3,  [x29, #32]\n        ldp             x4,  x5,  [x29, #48]\n        ldp             x6,  x7,  [x29, #64]\n        // Call the target function\n        blr             x12\n\n        // Load the number of stack parameters, stack canary and its reference\n        ldr             w2,  [x29, #16 + 8*8 + (MAX_ARGS-8)*8]\n        ldr             x2,  [sp, x2, lsl #3]\n        ldr             x3,  [sp, #ARG_STACK-8]\n\n        add             sp,  sp,  #ARG_STACK\n        stp             x0,  x1,  [sp, #-16]!\n\n        mvn             x3,  x3\n        cmp             x2,  x3\n        b.ne            2f\n\n        movrel          x9, register_init\n        movi            v3.8h,  #0\n\n.macro check_reg_neon reg1, reg2\n        ldr             q1,  [x9], #16\n        uzp1            v2.2d,  v\\reg1\\().2d, v\\reg2\\().2d\n        eor             v1.16b, v1.16b, v2.16b\n        orr             v3.16b, v3.16b, v1.16b\n.endm\n        check_reg_neon  8,  9\n        check_reg_neon  10, 11\n        check_reg_neon  12, 13\n        check_reg_neon  14, 15\n        uqxtn           v3.8b,  v3.8h\n        umov            x3,  v3.d[0]\n\n.macro check_reg reg1, reg2\n        ldp             x0,  x1,  [x9], #16\n        eor             x0,  x0,  \\reg1\n        eor             x1,  x1,  \\reg2\n        orr             x3,  x3,  x0\n        orr             x3,  x3,  x1\n.endm\n        check_reg       x19, x20\n        check_reg       x21, x22\n        check_reg       x23, x24\n        check_reg       x25, x26\n        check_reg       x27, x28\n\n        cbz             x3,  0f\n\n        movrel          x0, error_message_register\n        b               1f", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/aarch64/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/aarch64/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/aarch64/checkasm.S:5", "text": "uqxtn           v3.8b,  v3.8h\n        umov            x3,  v3.d[0]\n\n.macro check_reg reg1, reg2\n        ldp             x0,  x1,  [x9], #16\n        eor             x0,  x0,  \\reg1\n        eor             x1,  x1,  \\reg2\n        orr             x3,  x3,  x0\n        orr             x3,  x3,  x1\n.endm\n        check_reg       x19, x20\n        check_reg       x21, x22\n        check_reg       x23, x24\n        check_reg       x25, x26\n        check_reg       x27, x28\n\n        cbz             x3,  0f\n\n        movrel          x0, error_message_register\n        b               1f\n2:\n        movrel          x0, error_message_stack\n1:\n        bl              X(checkasm_fail_func)\n0:\n        ldp             x0,  x1,  [sp], #16\n        ldp             d14, d15, [sp], #16\n        ldp             d12, d13, [sp], #16\n        ldp             d10, d11, [sp], #16\n        ldp             d8,  d9,  [sp], #16\n        ldp             x27, x28, [sp], #16\n        ldp             x25, x26, [sp], #16\n        ldp             x23, x24, [sp], #16\n        ldp             x21, x22, [sp], #16\n        ldp             x19, x20, [sp], #16\n        ldp             x29, x30, [sp], #16\n        ret\nendfunc", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/aarch64/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/aarch64/checkasm.S", "line_start": 161, "line_end": 198}
{"id": "FFmpeg/FFmpeg:tests/checkasm/aarch64/checkasm.S:2", "text": ".quad 0xd229e1f5b281303f\n        .quad 0x71aeaff20b095fd9\n        .quad 0xab63e2e11fa38ed9\nendconst\n\n\nconst error_message_register\n        .asciz \"failed to preserve register\"\nerror_message_stack:\n        .asciz \"stack clobbered\"\nendconst\n\n\n// max number of args used by any asm function.\n#define MAX_ARGS 15\n\n#define CLOBBER_STACK ((8*MAX_ARGS + 15) & ~15)\n\nfunction checkasm_stack_clobber, export=1\n        mov             x3,  sp\n        mov             x2,  #CLOBBER_STACK\n1:\n        stp             x0,  x1,  [sp, #-16]!\n        subs            x2,  x2,  #16\n        b.gt            1b\n        mov             sp,  x3\n        ret\nendfunc\n\n// + 16 for stack canary reference\n#define ARG_STACK ((8*(MAX_ARGS - 8) + 15) & ~15 + 16)\n\nfunction checkasm_checked_call, export=1\n        stp             x29, x30, [sp, #-16]!\n        mov             x29, sp\n        stp             x19, x20, [sp, #-16]!\n        stp             x21, x22, [sp, #-16]!\n        stp             x23, x24, [sp, #-16]!\n        stp             x25, x26, [sp, #-16]!\n        stp             x27, x28, [sp, #-16]!\n        stp             d8,  d9,  [sp, #-16]!\n        stp             d10, d11, [sp, #-16]!\n        stp             d12, d13, [sp, #-16]!\n        stp             d14, d15, [sp, #-16]!\n\n        movrel          x9, register_init\n        ldp             d8,  d9,  [x9], #16\n        ldp             d10, d11, [x9], #16\n        ldp             d12, d13, [x9], #16\n        ldp             d14, d15, [x9], #16\n        ldp             x19, x20, [x9], #16\n        ldp             x21, x22, [x9], #16\n        ldp             x23, x24, [x9], #16\n        ldp             x25, x26, [x9], #16\n        ldp             x27, x28, [x9], #16\n\n        sub             sp,  sp,  #ARG_STACK\n.equ pos, 0\n.rept MAX_ARGS-8\n        // Skip the first 8 args, that are loaded into registers", "arch": "arm64", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/aarch64/checkasm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/tests/checkasm/aarch64/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/arm/checkasm.S:1", "text": "/****************************************************************************\n * Assembly testing and benchmarking tool\n * Copyright (c) 2015 Martin Storsjo\n * Copyright (c) 2015 Janne Grunau\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/arm/asm.S\"\n\n/* override fpu so that NEON instructions are rejected */\n#if HAVE_VFP\nFPU     .fpu            vfp\nELF     .eabi_attribute 10, 0           @ suppress Tag_FP_arch\n#endif\n\nconst register_init, align=3\n        .quad 0x21f86d66c8ca00ce\n        .quad 0x75b6ba21077c48ad\n        .quad 0xed56bb2dcb3c7736\n        .quad 0x8bda43d3fd1a7e06\n        .quad 0xb64a9c9e5d318408\n        .quad 0xdf9a54b303f1d3a3\n        .quad 0x4a75479abd64e097\n        .quad 0x249214109d5d1c88\nendconst\n\nconst error_message_fpscr\n        .asciz \"failed to preserve register FPSCR, changed bits: %x\"\nerror_message_gpr:\n        .asciz \"failed to preserve register r%d\"\nerror_message_vfp:\n        .asciz \"failed to preserve register d%d\"\nerror_message_stack:\n        .asciz \"failed to preserve stack\"\nendconst\n\n@ max number of args used by any asm function.\n#define MAX_ARGS 15\n\n#define ARG_STACK 4*(MAX_ARGS - 4)\n\n@ Align the used stack space to 8 to preserve the stack alignment.\n@ +8 for stack canary reference.\n#define ARG_STACK_A (((ARG_STACK + pushed + 7) & ~7) - pushed + 8)", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/arm/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/arm/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/arm/checkasm.S:2", "text": "const error_message_fpscr\n        .asciz \"failed to preserve register FPSCR, changed bits: %x\"\nerror_message_gpr:\n        .asciz \"failed to preserve register r%d\"\nerror_message_vfp:\n        .asciz \"failed to preserve register d%d\"\nerror_message_stack:\n        .asciz \"failed to preserve stack\"\nendconst\n\n@ max number of args used by any asm function.\n#define MAX_ARGS 15\n\n#define ARG_STACK 4*(MAX_ARGS - 4)\n\n@ Align the used stack space to 8 to preserve the stack alignment.\n@ +8 for stack canary reference.\n#define ARG_STACK_A (((ARG_STACK + pushed + 7) & ~7) - pushed + 8)\n\n.macro clobbercheck variant\n.equ pushed, 4*9\nfunction checkasm_checked_call_\\variant, export=1\n        push            {r4-r11, lr}\n.ifc \\variant, vfp\n        vpush           {d8-d15}\n        fmrx            r4,  FPSCR\n        push            {r4}\n.equ pushed, pushed + 16*4 + 4\n.endif\n\n        movrel          r12, register_init\n.ifc \\variant, vfp\n        vldm            r12, {d8-d15}\n.endif\n        ldm             r12, {r4-r11}\n\n        sub             sp,  sp,  #ARG_STACK_A\n.equ pos, 0\n.rept MAX_ARGS-4\n        ldr             r12, [sp, #ARG_STACK_A + pushed + 8 + pos]\n        str             r12, [sp, #pos]\n.equ pos, pos + 4\n.endr\n\n        @ For stack overflows, the callee is free to overwrite the parameters\n        @ that were passed on the stack (if any), so we can only check after\n        @ that point. First figure out how many parameters the function\n        @ really took on the stack:\n        ldr             r12, [sp, #ARG_STACK_A + pushed + 8 + 4*(MAX_ARGS-4)]\n        @ Load the first non-parameter value from the stack, that should be\n        @ left untouched by the function. Store a copy of it inverted, so that\n        @ e.g. overwriting everything with zero would be noticed.\n        ldr             r12, [sp, r12, lsl #2]\n        mvn             r12, r12\n        str             r12, [sp, #ARG_STACK_A - 4]\n\n        mov             r12, r0\n        mov             r0,  r2\n        mov             r1,  r3", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/arm/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/arm/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/arm/checkasm.S:3", "text": "ldr             r12, [sp, #ARG_STACK_A + pushed + 8 + pos]\n        str             r12, [sp, #pos]\n.equ pos, pos + 4\n.endr\n\n        @ For stack overflows, the callee is free to overwrite the parameters\n        @ that were passed on the stack (if any), so we can only check after\n        @ that point. First figure out how many parameters the function\n        @ really took on the stack:\n        ldr             r12, [sp, #ARG_STACK_A + pushed + 8 + 4*(MAX_ARGS-4)]\n        @ Load the first non-parameter value from the stack, that should be\n        @ left untouched by the function. Store a copy of it inverted, so that\n        @ e.g. overwriting everything with zero would be noticed.\n        ldr             r12, [sp, r12, lsl #2]\n        mvn             r12, r12\n        str             r12, [sp, #ARG_STACK_A - 4]\n\n        mov             r12, r0\n        mov             r0,  r2\n        mov             r1,  r3\n        ldrd            r2,  r3,  [sp, #ARG_STACK_A + pushed]\n        @ Call the target function\n        blx             r12\n\n        @ Load the number of stack parameters, stack canary and its reference\n        ldr             r12, [sp, #ARG_STACK_A + pushed + 8 + 4*(MAX_ARGS-4)]\n        ldr             r2,  [sp, r12, lsl #2]\n        ldr             r3,  [sp, #ARG_STACK_A - 4]\n\n        add             sp,  sp,  #ARG_STACK_A\n        push            {r0, r1}\n\n        mvn             r3,  r3\n        cmp             r2,  r3\n        bne             5f\n\n        movrel          r12, register_init\n.ifc \\variant, vfp\n.macro check_reg_vfp, dreg, offset\n        ldrd            r2,  r3,  [r12, #8 * (\\offset)]\n        vmov            r0,  lr,  \\dreg\n        eor             r2,  r2,  r0\n        eor             r3,  r3,  lr\n        orrs            r2,  r2,  r3\n        bne             4f\n.endm\n\n.irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        @ keep track of the checked double/SIMD register\n        mov             r1,  #\\n\n        check_reg_vfp   d\\n, \\n-8\n.endr\n.purgem check_reg_vfp\n\n        fmrx            r1,  FPSCR\n        ldr             r3,  [sp, #8]\n        eor             r1,  r1,  r3\n        @ Ignore changes in bits 0-4 and 7\n        bic             r1,  r1,  #0x9f\n        @ Ignore changes in the topmost 5 bits", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/arm/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/arm/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/arm/checkasm.S:4", "text": "vmov            r0,  lr,  \\dreg\n        eor             r2,  r2,  r0\n        eor             r3,  r3,  lr\n        orrs            r2,  r2,  r3\n        bne             4f\n.endm\n\n.irp n, 8, 9, 10, 11, 12, 13, 14, 15\n        @ keep track of the checked double/SIMD register\n        mov             r1,  #\\n\n        check_reg_vfp   d\\n, \\n-8\n.endr\n.purgem check_reg_vfp\n\n        fmrx            r1,  FPSCR\n        ldr             r3,  [sp, #8]\n        eor             r1,  r1,  r3\n        @ Ignore changes in bits 0-4 and 7\n        bic             r1,  r1,  #0x9f\n        @ Ignore changes in the topmost 5 bits\n        bics            r1,  r1,  #0xf8000000\n        bne             3f\n.endif\n\n        @ keep track of the checked GPR\n        mov             r1,  #4\n.macro check_reg reg1, reg2=\n        ldrd            r2,  r3,  [r12], #8\n        eors            r2,  r2,  \\reg1\n        bne             2f\n        add             r1,  r1,  #1\n.ifnb \\reg2\n        eors            r3,  r3,  \\reg2\n        bne             2f\n.endif\n        add             r1,  r1,  #1\n.endm\n        check_reg       r4,  r5\n        check_reg       r6,  r7\n@ r9 is a volatile register in the ios ABI\n#ifdef __APPLE__\n        check_reg       r8\n#else\n        check_reg       r8,  r9\n#endif\n        check_reg       r10, r11\n.purgem check_reg\n\n        b               0f\n5:\n        movrel          r0, error_message_stack\n        b               1f\n4:\n        movrel          r0, error_message_vfp\n        b               1f\n3:\n        movrel          r0, error_message_fpscr\n        b               1f\n2:\n        movrel          r0, error_message_gpr", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/arm/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/arm/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/arm/checkasm.S:5", "text": "#ifdef __APPLE__\n        check_reg       r8\n#else\n        check_reg       r8,  r9\n#endif\n        check_reg       r10, r11\n.purgem check_reg\n\n        b               0f\n5:\n        movrel          r0, error_message_stack\n        b               1f\n4:\n        movrel          r0, error_message_vfp\n        b               1f\n3:\n        movrel          r0, error_message_fpscr\n        b               1f\n2:\n        movrel          r0, error_message_gpr\n1:\n        bl              X(checkasm_fail_func)\n0:\n        pop             {r0, r1}\n.ifc \\variant, vfp\n        pop             {r2}\n        fmxr            FPSCR, r2\n        vpop            {d8-d15}\n.endif\n        pop             {r4-r11, pc}\nendfunc\n.endm\n\n#if HAVE_VFP || HAVE_NEON\nclobbercheck vfp\n#endif\nclobbercheck novfp", "arch": "arm", "syntax": "intel-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/arm/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/arm/checkasm.S", "line_start": 161, "line_end": 197}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:1", "text": "/****************************************************************************\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 32)\n.macro  lx      rd, addr\n        lw      \\rd, \\addr\n.endm\n\n.macro  sx      rs, addr\n        sw      \\rs, \\addr\n.endm\n#define REG_MAGIC 0xdeadbeef\n#elif (__riscv_xlen == 64)\n.macro  lx      rd, addr\n        ld      \\rd, \\addr\n.endm\n\n.macro  sx      rs, addr\n        sd      \\rs, \\addr\n.endm\n#define REG_MAGIC 0xdeadbeef0badf00d\n#else\n.macro  lx      rd, addr\n        lq      \\rd, \\addr\n.endm\n\n.macro  sx      rs, addr\n        sq      \\rs, \\addr\n.endm\n#define REG_MAGIC 0xdeadbeef0badf00daaaabbbbccccdddd\n#endif\n#define XSZ             (__riscv_xlen / 8)\n#define STACK_ALIGN     16\n#define STACK_SPACE(sz) (((sz) + (STACK_ALIGN - 1)) & -STACK_ALIGN)\n\n#if defined(__riscv_float_abi_soft)\n.macro  flf     rd, addr\n.endm\n.macro  fsf     rs, addr\n.endm\n#define FSZ 0", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "#else\n.macro  lx      rd, addr\n        lq      \\rd, \\addr\n.endm\n\n.macro  sx      rs, addr\n        sq      \\rs, \\addr\n.endm\n#define REG_MAGIC 0xdeadbeef0badf00daaaabbbbccccdddd\n#endif\n#define XSZ             (__riscv_xlen / 8)\n#define STACK_ALIGN     16\n#define STACK_SPACE(sz) (((sz) + (STACK_ALIGN - 1)) & -STACK_ALIGN)\n\n#if defined(__riscv_float_abi_soft)\n.macro  flf     rd, addr\n.endm\n.macro  fsf     rs, addr\n.endm\n#define FSZ 0\n#elif defined(__riscv_float_abi_single)\n.macro  flf     rd, addr\n        flw     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsw     \\rs, \\addr\n.endm\n#define FSZ 4\n#elif defined(__riscv_float_abi_double)\n.macro  flf     rd, addr\n        fld     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsd     \\rs, \\addr\n.endm\n#define FSZ 8\n#elif defined(__riscv_float_abi_quad)\n.macro  flf     rd, addr\n        flq     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsq     \\rs, \\addr\n.endm\n#define FSZ 16\n#else\n#error \"Unknown float ABI\"\n#endif\n\n        .pushsection .tbss, \"waT\"\n        .align  4\n.Lchecked_func:\n        .fill   1, XSZ, 0\n        .align  4\n.Lsaved_xregs:\n        .fill   4 + 12, XSZ, 0 // RA, SP, GP, TP, S0-S11\n        .align  4\n.Lsaved_fregs:\n        .fill   12, FSZ, 0 // FS0-FS11\n        .fill   1, XSZ, 0 // RA\n        .popsection", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": ".macro  fsf     rs, addr\n        fsq     \\rs, \\addr\n.endm\n#define FSZ 16\n#else\n#error \"Unknown float ABI\"\n#endif\n\n        .pushsection .tbss, \"waT\"\n        .align  4\n.Lchecked_func:\n        .fill   1, XSZ, 0\n        .align  4\n.Lsaved_xregs:\n        .fill   4 + 12, XSZ, 0 // RA, SP, GP, TP, S0-S11\n        .align  4\n.Lsaved_fregs:\n        .fill   12, FSZ, 0 // FS0-FS11\n        .fill   1, XSZ, 0 // RA\n        .popsection\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, .Lchecked_func\n        add     t0, tp, t0\n        sx      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -STACK_SPACE(2 * XSZ)\n        sx      fp,     (sp)\n        sx      ra, XSZ(sp)\n        addi    fp, sp, STACK_SPACE(2 * XSZ)\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n#ifdef __riscv_float_abi_soft\n        andi    t1, a0, 16 /* AV_CPU_FLAG_RVV_F32 (implies F and Zve32x) */\n        lla     a0, checkasm_checked_call_i\n        beqz    t0, 1f\n        lla     a0, checkasm_checked_call_iv\n        beqz    t1, 1f\n#else\n        lla     a0, checkasm_checked_call_if\n        beqz    t0, 1f\n#endif\n        lla     a0, checkasm_checked_call_ifv\n1:\n        lx      ra, XSZ(sp)\n        lx      fp,    (sp)\n        addi    sp, sp, 16\n        ret\nendfunc\n\n        .pushsection \".rodata\", \"a\"\n.Lfail_s_reg:\n        .asciz  \"callee-saved integer register S%d clobbered\"\n.Lfail_fs_reg:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "lla     a0, checkasm_checked_call_i\n        beqz    t0, 1f\n        lla     a0, checkasm_checked_call_iv\n        beqz    t1, 1f\n#else\n        lla     a0, checkasm_checked_call_if\n        beqz    t0, 1f\n#endif\n        lla     a0, checkasm_checked_call_ifv\n1:\n        lx      ra, XSZ(sp)\n        lx      fp,    (sp)\n        addi    sp, sp, 16\n        ret\nendfunc\n\n        .pushsection \".rodata\", \"a\"\n.Lfail_s_reg:\n        .asciz  \"callee-saved integer register S%d clobbered\"\n.Lfail_fs_reg:\n        .asciz  \"callee-saved floating-point register FS%d clobbered\"\n.Lfail_rsvd_reg:\n        .asciz  \"unallocatable register %cP clobbered\"\n#if defined(__riscv_float_abi_soft) || defined(__riscv_float_abi_single)\n        .align  2\n.Lbad_float:\n        .single 123456789\n#elif defined(__riscv_float_abi_double)\n        .align  3\n.Lbad_float:\n        .double 123456789\n#elif defined(__riscv_float_abi_quad)\n        .align  4\n.Lbad_float:\n        .ldouble 123456789\n#endif\n        .popsection\n\nfunc checkasm_checked_call_i\n        /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        sx      ra,        (t0)\n        sx      sp, 1 * XSZ(t0)\n        sx      gp, 2 * XSZ(t0)\n        sx      tp, 3 * XSZ(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sx      s\\n, (4 + \\n) * XSZ(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t1, REG_MAGIC\n        li      t0, 16\n1:\n        addi    sp, sp, -XSZ\n        addi    t0, t0, -1\n        sx      t1, (sp)\n        bnez    t0, 1b", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        sx      ra,        (t0)\n        sx      sp, 1 * XSZ(t0)\n        sx      gp, 2 * XSZ(t0)\n        sx      tp, 3 * XSZ(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sx      s\\n, (4 + \\n) * XSZ(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t1, REG_MAGIC\n        li      t0, 16\n1:\n        addi    sp, sp, -XSZ\n        addi    t0, t0, -1\n        sx      t1, (sp)\n        bnez    t0, 1b\n\n        addi    sp, sp, 16 * XSZ\n        # Clobber temporary registers (except T2, FE-CFI label)\n        .irp    n, 0, 1, 3, 4, 5, 6\n        mv      t\\n, t1\n        .endr\n        # Clobber the saved registers\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        mv      s\\n, t1\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, .Lchecked_func\n        add     t0, tp, t0\n        lx      t3, (t0)\n        sx      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        lx      t2, 1 * XSZ(t0) // SP\n        lx      t3, 2 * XSZ(t0) // GP\n        lx      t4, 3 * XSZ(t0) // TP\n        li      t1, 'S'\n        bne     t2, sp, .Lfail_xp\n        li      t1, 'G'\n        bne     t3, gp, .Lfail_xp\n        li      t1, 'T'\n        bne     t4, tp, .Lfail_xp\n\n        /* Check value of saved registers */\n        li      t0, REG_MAGIC\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n        bne     t0, s\\n, .Lfail_s\n        .endr\n\n4:\n        /* Restore RA and saved registers */", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:6", "text": "add     t0, tp, t0\n        lx      t2, 1 * XSZ(t0) // SP\n        lx      t3, 2 * XSZ(t0) // GP\n        lx      t4, 3 * XSZ(t0) // TP\n        li      t1, 'S'\n        bne     t2, sp, .Lfail_xp\n        li      t1, 'G'\n        bne     t3, gp, .Lfail_xp\n        li      t1, 'T'\n        bne     t4, tp, .Lfail_xp\n\n        /* Check value of saved registers */\n        li      t0, REG_MAGIC\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n        bne     t0, s\\n, .Lfail_s\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        lx      ra, (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        lx      s\\n, (4 + \\n) * XSZ(t0)\n        .endr\n        ret\n\n.Lfail_xp:\n        # checkasm_fail_func() needs valid SP, GP and TP. Restore them.\n        lx      sp, 1 * XSZ(t0)\n        lx      gp, 2 * XSZ(t0)\n        lx      tp, 3 * XSZ(t0)\n        lla     a0, .Lfail_rsvd_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_s:\n        lla     a0, .Lfail_s_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\nendfunc\n\n#ifndef __riscv_float_abi_soft\nfunc checkasm_checked_call_if, f\n        lpad    0\n        # Save callee-saved floating point registers and RA\n        la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        lla     t1, .Lbad_float\n        sd      ra, 12 * FSZ(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        fsf     fs\\n, \\n * FSZ(t0)\n        .endr\n        # Clobber the saved and temporary floating point registers\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     ft\\n, (t1)\n        flf     fs\\n, (t1)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:7", "text": "mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\nendfunc\n\n#ifndef __riscv_float_abi_soft\nfunc checkasm_checked_call_if, f\n        lpad    0\n        # Save callee-saved floating point registers and RA\n        la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        lla     t1, .Lbad_float\n        sd      ra, 12 * FSZ(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        fsf     fs\\n, \\n * FSZ(t0)\n        .endr\n        # Clobber the saved and temporary floating point registers\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     ft\\n, (t1)\n        flf     fs\\n, (t1)\n        .endr\n\n        jal     checkasm_checked_call_i\n\n        # Check value of saved registers\n        lla     t1, .Lbad_float\n        flf     ft0, (t1)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n#if defined(__riscv_float_abi_single)\n        feq.s   t0, ft0, fs\\n\n#elif defined(__riscv_float_abi_double)\n        feq.d   t0, ft0, fs\\n\n#else\n        feq.q   t0, ft0, fs\\n\n#endif\n        beqz    t0, .Lfail_fs\n        .endr\n\n1:      # Restore callee-saved floating point registers and RA\n        la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     fs\\n, \\n * FSZ(t0)\n        .endr\n        ld      ra, 12 * FSZ(t0)\n        ret\n\n.Lfail_fs:\n        lla     a0, .Lfail_fs_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       1b\nendfunc\n#else\nfunc checkasm_checked_call_if, f\n        lpad    0\n        lla     t1, .Lbad_float\n        # Clobber all floating point registers (soft float ABI).\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:8", "text": "la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     fs\\n, \\n * FSZ(t0)\n        .endr\n        ld      ra, 12 * FSZ(t0)\n        ret\n\n.Lfail_fs:\n        lla     a0, .Lfail_fs_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       1b\nendfunc\n#else\nfunc checkasm_checked_call_if, f\n        lpad    0\n        lla     t1, .Lbad_float\n        # Clobber all floating point registers (soft float ABI).\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7\n        flw     fa\\n, (t1)\n        .endr\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flw     ft\\n, (t1)\n        flw     fs\\n, (t1)\n        .endr\n        j       checkasm_checked_call_i\nendfunc\n\nfunc checkasm_checked_call_iv, zve32x\n        lpad    0\n        jal     t0, .Lclobber_v\n        j       checkasm_checked_call_i\nendfunc\n#endif\n\nfunc checkasm_checked_call_ifv, zve32x\n        lpad    0\n        jal     t0, .Lclobber_v\n        j       checkasm_checked_call_if\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration\n        li      t1, 0        /* Vector length: zero */\n        li      t3, -4       /* Vector type:   illegal */\n        vsetvl  zero, t1, t3\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n        jr      t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 281, "line_end": 337}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:9", "text": ".Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration\n        li      t1, 0        /* Vector length: zero */\n        li      t3, -4       /* Vector type:   illegal */\n        vsetvl  zero, t1, t3\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n        jr      t0\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/riscv/checkasm.S", "line_start": 321, "line_end": 337}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:1", "text": "/****************************************************************************\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/riscv/asm.S\"\n\n#if defined(__riscv_float_abi_soft)\n.macro  flf     rd, addr\n.endm\n.macro  fsf     rs, addr\n.endm\n#define FSZ 0\n#elif defined(__riscv_float_abi_single)\n.macro  flf     rd, addr\n        flw     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsw     \\rs, \\addr\n.endm\n#define FSZ 4\n#elif defined(__riscv_float_abi_double)\n.macro  flf     rd, addr\n        fld     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsd     \\rs, \\addr\n.endm\n#define FSZ 8\n#elif defined(__riscv_float_abi_quad)\n.macro  flf     rd, addr\n        flq     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsq     \\rs, \\addr\n.endm\n#define FSZ 16\n#else\n#error \"Unknown float ABI\"\n#endif\n\n#if (__riscv_xlen == 64)\n\n        .pushsection .tbss, \"waT\"\n        .align  3", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": ".macro  fsf     rs, addr\n        fsd     \\rs, \\addr\n.endm\n#define FSZ 8\n#elif defined(__riscv_float_abi_quad)\n.macro  flf     rd, addr\n        flq     \\rd, \\addr\n.endm\n.macro  fsf     rs, addr\n        fsq     \\rs, \\addr\n.endm\n#define FSZ 16\n#else\n#error \"Unknown float ABI\"\n#endif\n\n#if (__riscv_xlen == 64)\n\n        .pushsection .tbss, \"waT\"\n        .align  3\n        .hidden checked_func\n\nchecked_func:\n        .quad   0\n\n        .align  3\n.Lsaved_xregs:\n        .fill   4 + 12, 8, 0 // RA, SP, GP, TP, S0-S11\n        .align  4\n.Lsaved_fregs:\n        .fill   12, FSZ, 0 // FS0-FS11\n        .fill   1, 8, 0 // RA\n        .popsection\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n#ifdef __riscv_float_abi_soft\n        andi    t1, a0, 16 /* AV_CPU_FLAG_RVV_F32 (implies F and Zve32x) */\n        lla     a0, checkasm_checked_call_i\n        beqz    t0, 1f\n        lla     a0, checkasm_checked_call_iv\n        beqz    t1, 1f\n#else\n        lla     a0, checkasm_checked_call_if\n        beqz    t0, 1f", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "endfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n#ifdef __riscv_float_abi_soft\n        andi    t1, a0, 16 /* AV_CPU_FLAG_RVV_F32 (implies F and Zve32x) */\n        lla     a0, checkasm_checked_call_i\n        beqz    t0, 1f\n        lla     a0, checkasm_checked_call_iv\n        beqz    t1, 1f\n#else\n        lla     a0, checkasm_checked_call_if\n        beqz    t0, 1f\n#endif\n        lla     a0, checkasm_checked_call_ifv\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\nendfunc\n\n        .pushsection \".rodata\", \"a\"\n.Lfail_s_reg:\n        .asciz  \"callee-saved integer register S%d clobbered\"\n.Lfail_fs_reg:\n        .asciz  \"callee-saved floating-point register FS%d clobbered\"\n.Lfail_rsvd_reg:\n        .asciz  \"unallocatable register %cP clobbered\"\n#if defined(__riscv_float_abi_soft) || defined(__riscv_float_abi_single)\n        .align  2\n.Lbad_float:\n        .single 123456789\n#elif defined(__riscv_float_abi_double)\n        .align  3\n.Lbad_float:\n        .double 123456789\n#elif defined(__riscv_float_abi_quad)\n        .align  4\n.Lbad_float:\n        .ldouble 123456789\n#endif\n        .popsection\n\nfunc checkasm_checked_call_i\n        /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "#elif defined(__riscv_float_abi_double)\n        .align  3\n.Lbad_float:\n        .double 123456789\n#elif defined(__riscv_float_abi_quad)\n        .align  4\n.Lbad_float:\n        .ldouble 123456789\n#endif\n        .popsection\n\nfunc checkasm_checked_call_i\n        /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (8 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 1 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        mv      s\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        ld      t2,  8(t0) // SP\n        ld      t3, 16(t0) // GP\n        ld      t4, 24(t0) // TP\n        li      t1, 'S'\n        bne     t2, sp, .Lfail_xp\n        li      t1, 'G'\n        bne     t3, gp, .Lfail_xp\n        li      t1, 'T'", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": ".endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        ld      t2,  8(t0) // SP\n        ld      t3, 16(t0) // GP\n        ld      t4, 24(t0) // TP\n        li      t1, 'S'\n        bne     t2, sp, .Lfail_xp\n        li      t1, 'G'\n        bne     t3, gp, .Lfail_xp\n        li      t1, 'T'\n        bne     t4, tp, .Lfail_xp\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n        bne     t0, s\\n, .Lfail_s\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, .Lsaved_xregs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (8 * \\n))(t0)\n        .endr\n        ret\n\n.Lfail_xp:\n        # checkasm_fail_func() needs valid SP, GP and TP. Restore them.\n        ld      sp,  8(t0)\n        ld      gp, 16(t0)\n        ld      tp, 24(t0)\n        lla     a0, .Lfail_rsvd_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_s:\n        lla     a0, .Lfail_s_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\nendfunc\n\n#ifndef __riscv_float_abi_soft\nfunc checkasm_checked_call_if, f\n        lpad    0\n        # Save callee-saved floating point registers and RA", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:6", "text": "# checkasm_fail_func() needs valid SP, GP and TP. Restore them.\n        ld      sp,  8(t0)\n        ld      gp, 16(t0)\n        ld      tp, 24(t0)\n        lla     a0, .Lfail_rsvd_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_s:\n        lla     a0, .Lfail_s_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\nendfunc\n\n#ifndef __riscv_float_abi_soft\nfunc checkasm_checked_call_if, f\n        lpad    0\n        # Save callee-saved floating point registers and RA\n        la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        lla     t1, .Lbad_float\n        sd      ra, 12 * FSZ(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        fsf     fs\\n, \\n * FSZ(t0)\n        .endr\n        # Clobber the saved and temporary floating point registers\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     ft\\n, (t1)\n        flf     fs\\n, (t1)\n        .endr\n\n        jal     checkasm_checked_call_i\n\n        # Check value of saved registers\n        lla     t1, .Lbad_float\n        flf     ft0, (t1)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n#if defined(__riscv_float_abi_single)\n        feq.s   t0, ft0, fs\\n\n#elif defined(__riscv_float_abi_double)\n        feq.d   t0, ft0, fs\\n\n#else\n        feq.q   t0, ft0, fs\\n\n#endif\n        beqz    t0, .Lfail_fs\n        .endr\n\n1:      # Restore callee-saved floating point registers and RA\n        la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     fs\\n, \\n * FSZ(t0)\n        .endr\n        ld      ra, 12 * FSZ(t0)\n        ret\n\n.Lfail_fs:", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 201, "line_end": 260}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:7", "text": "#if defined(__riscv_float_abi_single)\n        feq.s   t0, ft0, fs\\n\n#elif defined(__riscv_float_abi_double)\n        feq.d   t0, ft0, fs\\n\n#else\n        feq.q   t0, ft0, fs\\n\n#endif\n        beqz    t0, .Lfail_fs\n        .endr\n\n1:      # Restore callee-saved floating point registers and RA\n        la.tls.ie t0, .Lsaved_fregs\n        add     t0, t0, tp\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flf     fs\\n, \\n * FSZ(t0)\n        .endr\n        ld      ra, 12 * FSZ(t0)\n        ret\n\n.Lfail_fs:\n        lla     a0, .Lfail_fs_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       1b\nendfunc\n#else\nfunc checkasm_checked_call_if, f\n        lpad    0\n        lla     t1, .Lbad_float\n        # Clobber all floating point registers (soft float ABI).\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7\n        flw     fa\\n, (t1)\n        .endr\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        flw     ft\\n, (t1)\n        flw     fs\\n, (t1)\n        .endr\n        j       checkasm_checked_call_i\nendfunc\n\nfunc checkasm_checked_call_iv, zve32x\n        lpad    0\n        jal     t0, .Lclobber_v\n        j       checkasm_checked_call_i\nendfunc\n#endif\n\nfunc checkasm_checked_call_ifv, zve32x\n        lpad    0\n        jal     t0, .Lclobber_v\n        j       checkasm_checked_call_if\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 241, "line_end": 300}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:8", "text": "func checkasm_checked_call_iv, zve32x\n        lpad    0\n        jal     t0, .Lclobber_v\n        j       checkasm_checked_call_i\nendfunc\n#endif\n\nfunc checkasm_checked_call_ifv, zve32x\n        lpad    0\n        jal     t0, .Lclobber_v\n        j       checkasm_checked_call_if\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration\n        li      t1, 0        /* Vector length: zero */\n        li      t3, -4       /* Vector type:   illegal */\n        vsetvl  zero, t1, t3\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n        jr      t0\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "83477e2e1879d3e2195786f7f2d7b32e667f1624", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/83477e2e1879d3e2195786f7f2d7b32e667f1624/tests/checkasm/riscv/checkasm.S", "line_start": 281, "line_end": 309}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:1", "text": "/****************************************************************************\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\n\n        .section .tbss, \"waT\"\n        .align  3\n        .hidden checked_func\n        .hidden saved_regs\n\nchecked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "2fb827bd381450ab0645c9b1aa7fc627793bf826", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2fb827bd381450ab0645c9b1aa7fc627793bf826/tests/checkasm/riscv/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n        .pushsection \".rodata\", \"a\"\n.Lfail_s_reg:\n        .asciz  \"callee-saved integer register S%d clobbered\"\n.Lfail_fs_reg:\n        .asciz  \"callee-saved floating-point register FS%d clobbered\"\n.Lfail_rsvd_reg:\n        .asciz  \"unallocatable register %cP clobbered\"\n        .popsection\n\n        .option norvc\n        .align  2\n2:      /* <-- Entry point with the Vector extension --> */\n        lpad    0\n        jal     t0, .Lclobber_v\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "2fb827bd381450ab0645c9b1aa7fc627793bf826", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2fb827bd381450ab0645c9b1aa7fc627793bf826/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": ".align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 1 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t2,  8(t0) // SP\n        ld      t3, 16(t0) // GP\n        ld      t4, 24(t0) // TP\n        li      t1, 'S'\n        bne     t2, sp, .Lfail_xp\n        li      t1, 'G'\n        bne     t3, gp, .Lfail_xp\n        li      t1, 'T'\n        bne     t4, tp, .Lfail_xp\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n        bne     t0, s\\n, .Lfail_s\n#ifdef __riscv_float_abi_double", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "2fb827bd381450ab0645c9b1aa7fc627793bf826", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2fb827bd381450ab0645c9b1aa7fc627793bf826/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "/* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t2,  8(t0) // SP\n        ld      t3, 16(t0) // GP\n        ld      t4, 24(t0) // TP\n        li      t1, 'S'\n        bne     t2, sp, .Lfail_xp\n        li      t1, 'G'\n        bne     t3, gp, .Lfail_xp\n        li      t1, 'T'\n        bne     t4, tp, .Lfail_xp\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        li      t1, \\n\n        bne     t0, s\\n, .Lfail_s\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t2, fs\\n\n        bne     t0, t2, .Lfail_fs\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n.Lfail_xp:\n        # checkasm_fail_func() needs valid SP, GP and TP. Restore them.\n        ld      sp,  8(t0)\n        ld      gp, 16(t0)\n        ld      tp, 24(t0)\n        lla     a0, .Lfail_rsvd_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_s:\n        lla     a0, .Lfail_s_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_fs:\n        lla     a0, .Lfail_fs_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lclobber_v:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "2fb827bd381450ab0645c9b1aa7fc627793bf826", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2fb827bd381450ab0645c9b1aa7fc627793bf826/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "ld      gp, 16(t0)\n        ld      tp, 24(t0)\n        lla     a0, .Lfail_rsvd_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_s:\n        lla     a0, .Lfail_s_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lfail_fs:\n        lla     a0, .Lfail_fs_reg\n        mv      a1, t1\n        call    checkasm_fail_func\n        j       4b\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration\n        li      t1, 0        /* Vector length: zero */\n        li      t3, -4       /* Vector type:   illegal */\n        vsetvl  zero, t1, t3\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n        jr      t0\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "2fb827bd381450ab0645c9b1aa7fc627793bf826", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/2fb827bd381450ab0645c9b1aa7fc627793bf826/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 196}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:1", "text": "/****************************************************************************\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\n\nconst fail_s_reg\n        .asciz  \"callee-saved integer register clobbered\"\nendconst\n\nconst fail_fs_reg\n        .asciz  \"callee-saved floating-point register clobbered\"\nendconst\n\nconst fail_rsvd_reg\n        .asciz  \"unallocatable register clobbered\"\nendconst\n\n        .section .tbss, \"waT\"\n        .align  3\n        .hidden checked_func\n        .hidden saved_regs\n\nchecked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "68f3c1735e82486627095be9e7383fe27ab30bf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/68f3c1735e82486627095be9e7383fe27ab30bf0/tests/checkasm/riscv/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "checked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n        .option norvc\n        .align  2\n2:      /* <-- Entry point with the Vector extension --> */\n        lpad    0\n        jal     t0, .Lclobber_v\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "68f3c1735e82486627095be9e7383fe27ab30bf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/68f3c1735e82486627095be9e7383fe27ab30bf0/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "lpad    0\n        jal     t0, .Lclobber_v\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 1 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "68f3c1735e82486627095be9e7383fe27ab30bf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/68f3c1735e82486627095be9e7383fe27ab30bf0/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        # checkasm_fail_func() needs valid SP, GP and TP. Restore them.\n        ld      sp,  8(t0)\n        ld      gp, 16(t0)\n        ld      tp, 24(t0)\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        j       4b\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "68f3c1735e82486627095be9e7383fe27ab30bf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/68f3c1735e82486627095be9e7383fe27ab30bf0/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "ld      tp, 24(t0)\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        j       4b\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration\n        li      t1, 0        /* Vector length: zero */\n        li      t3, -4       /* Vector type:   illegal */\n        vsetvl  zero, t1, t3\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n        jr      t0\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "68f3c1735e82486627095be9e7383fe27ab30bf0", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/68f3c1735e82486627095be9e7383fe27ab30bf0/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 192}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "c7dad004f38849d864efb507e6881cace37e486b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7dad004f38849d864efb507e6881cace37e486b/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\n\n.Lclobber_v:\n        # Clobber the vector registers\n        vsetvli t1, zero, e32, m8, ta, ma\n        li      t1, -0xdeadbeef\n        vmv.v.x v0, t1\n        vmv.v.x v8, t1\n        vmv.v.x v16, t1\n        vmv.v.x v24, t1\n        # Clobber the vector configuration\n        li      t1, 0        /* Vector length: zero */\n        li      t3, -4       /* Vector type:   illegal */\n        vsetvl  zero, t1, t3\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n        jr      t0\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "c7dad004f38849d864efb507e6881cace37e486b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/c7dad004f38849d864efb507e6881cace37e486b/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 188}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "checked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n        .option norvc\n        .align  2\n2:      /* <-- Entry point with the Vector extension --> */\n        lpad    0\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t2, -4       /* Vector type:   illegal */\n        vsetvl  zero, t0, t2\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "656a9664bf828fc19b1e5a6e982bbcad456d1092", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/656a9664bf828fc19b1e5a6e982bbcad456d1092/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "lpad    0\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t2, -4       /* Vector type:   illegal */\n        vsetvl  zero, t0, t2\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 1 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "656a9664bf828fc19b1e5a6e982bbcad456d1092", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/656a9664bf828fc19b1e5a6e982bbcad456d1092/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "/* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 1 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t3, (t0)\n        sd      zero, (t0)\n        jalr    t3\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "656a9664bf828fc19b1e5a6e982bbcad456d1092", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/656a9664bf828fc19b1e5a6e982bbcad456d1092/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "656a9664bf828fc19b1e5a6e982bbcad456d1092", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/656a9664bf828fc19b1e5a6e982bbcad456d1092/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 185}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "checked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n        .option norvc\n        .align  2\n2:      /* <-- Entry point with the Vector extension --> */\n        lpad    0\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "8030876d1c77f37a3528cc0c541f75ba8d39e9f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8030876d1c77f37a3528cc0c541f75ba8d39e9f4/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "lpad    0\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n        .align  2\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 0 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "8030876d1c77f37a3528cc0c541f75ba8d39e9f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8030876d1c77f37a3528cc0c541f75ba8d39e9f4/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "/* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 0 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "8030876d1c77f37a3528cc0c541f75ba8d39e9f4", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/8030876d1c77f37a3528cc0c541f75ba8d39e9f4/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "checked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        lpad    0\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        lpad    0\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n2:      /* <-- Entry point with the Vector extension --> */\n        lpad    0\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "7dde8be29fb7e27f2026e0d48d76eabc760de638", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dde8be29fb7e27f2026e0d48d76eabc760de638/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n3:      /* <-- Entry point without the Vector extension --> */\n        lpad    0\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 0 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "7dde8be29fb7e27f2026e0d48d76eabc760de638", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dde8be29fb7e27f2026e0d48d76eabc760de638/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "7dde8be29fb7e27f2026e0d48d76eabc760de638", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dde8be29fb7e27f2026e0d48d76eabc760de638/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": ".irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "7dde8be29fb7e27f2026e0d48d76eabc760de638", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/7dde8be29fb7e27f2026e0d48d76eabc760de638/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 182}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:1", "text": "/****************************************************************************\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\n\nconst fail_s_reg\n        .asciz  \"callee-saved integer register clobbered\"\nendconst\n\nconst fail_fs_reg\n        .asciz  \"callee-saved floating-point register clobbered\"\nendconst\n\nconst fail_rsvd_reg\n        .asciz  \"unallocatable register clobbered\"\nendconst\n\n        .section .tbss, \"waT\"\n        .align  3\n        .hidden checked_func\n        .hidden saved_regs\n\nchecked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        addi    sp, sp, -16\n        sd      fp,  (sp)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "65739691b90012c9d93b2e5e0e89a55d8de9eb7b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65739691b90012c9d93b2e5e0e89a55d8de9eb7b/tests/checkasm/riscv/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "checked_func:\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n2:      /* <-- Entry point with the Vector extension --> */\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n3:      /* <-- Entry point without the Vector extension --> */\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "65739691b90012c9d93b2e5e0e89a55d8de9eb7b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65739691b90012c9d93b2e5e0e89a55d8de9eb7b/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n3:      /* <-- Entry point without the Vector extension --> */\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 0 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "65739691b90012c9d93b2e5e0e89a55d8de9eb7b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65739691b90012c9d93b2e5e0e89a55d8de9eb7b/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "65739691b90012c9d93b2e5e0e89a55d8de9eb7b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65739691b90012c9d93b2e5e0e89a55d8de9eb7b/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 178}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "65739691b90012c9d93b2e5e0e89a55d8de9eb7b", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/65739691b90012c9d93b2e5e0e89a55d8de9eb7b/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 178}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:1", "text": "/****************************************************************************\n * Copyright © 2022 Rémi Denis-Courmont.\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n *****************************************************************************/\n\n#include \"libavutil/riscv/asm.S\"\n\n#if (__riscv_xlen == 64)\n\nconst fail_s_reg\n        .asciz  \"callee-saved integer register clobbered\"\nendconst\n\nconst fail_fs_reg\n        .asciz  \"callee-saved floating-point register clobbered\"\nendconst\n\nconst fail_rsvd_reg\n        .asciz  \"unallocatable register clobbered\"\nendconst\n\n        .section .tbss, \"waT\"\n        .align  3\n        .hidden checked_func\n        .hidden saved_regs\n\nchecked_func:\n        .quad   0\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        sd      a1, 8(t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/tests/checkasm/riscv/checkasm.S", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:2", "text": "checked_func:\n        .quad   0\n        .quad   0\n\nsaved_regs:\n        /* Space to spill RA, SP, GP, TP, S0-S11 and FS0-FS11 */\n        .rept   4 + 12 + 12\n        .quad   0\n        .endr\n\nfunc checkasm_set_function\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        sd      a0, (t0)\n        sd      a1, 8(t0)\n        ret\nendfunc\n\nfunc checkasm_get_wrapper, v\n        addi    sp, sp, -16\n        sd      fp,  (sp)\n        sd      ra, 8(sp)\n        addi    fp, sp, 16\n\n        call    av_get_cpu_flags\n        andi    t0, a0, 8 /* AV_CPU_FLAG_RVV_I32 */\n\n        lla     a0, 3f\n        beqz    t0, 1f\n        lla     a0, 2f\n1:\n        ld      ra, 8(sp)\n        ld      fp,  (sp)\n        addi    sp, sp, 16\n        ret\n\n2:      /* <-- Entry point with the Vector extension --> */\n        /* Clobber the vectors */\n        vsetvli t0, zero, e32, m8, ta, ma\n        li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n3:      /* <-- Entry point without the Vector extension --> */\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/tests/checkasm/riscv/checkasm.S", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:3", "text": "li      t0, 0xdeadbeef\n        vmv.v.x v0, t0\n        vmv.v.x v8, t0\n        vmv.v.x v16, t0\n        vmv.v.x v24, t0\n\n        /* Clobber the vector configuration */\n        li      t0, 0        /* Vector length: zero */\n        li      t1, -1 << 31 /* Vector type:   illegal */\n        vsetvl  zero, t0, t1\n        csrwi   vxrm, 3      /* Rounding mode: round-to-odd */\n        csrwi   vxsat, 1     /* Saturation:    encountered */\n\n3:      /* <-- Entry point without the Vector extension --> */\n        /* Save RA, unallocatable and callee-saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        sd      ra,   (t0)\n        sd      sp,  8(t0)\n        sd      gp, 16(t0)\n        sd      tp, 24(t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        sd      s\\n, (32 + (16 * \\n))(t0)\n        fsd     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n\n        /* Clobber the stack space right below SP */\n        li      t0, 0xdeadbeef1badf00d\n        .rept   16\n        addi    sp, sp, -16\n        sd      t0,  (sp)\n        sd      t0, 8(sp)\n        .endr\n        addi    sp, sp, 256\n\n        /* Clobber the saved and temporary registers */\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        .if (\\n > 0 && \\n < 7)\n        mv      t\\n, t0\n        .endif\n        fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/tests/checkasm/riscv/checkasm.S", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:4", "text": "fmv.d.x ft\\n, t0\n        mv      s\\n, t0\n        fmv.d.x fs\\n, t0\n        .endr\n\n        /* Call the tested function */\n        la.tls.ie t0, checked_func\n        add     t0, tp, t0\n        ld      t1, (t0)\n        sd      zero, (t0)\n        jalr    t1\n\n        /* Check special register values */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      t1,  8(t0)\n        bne     t1, sp, 5f\n        ld      t1, 16(t0)\n        bne     t1, gp, 5f\n        ld      t1, 24(t0) // If TP was corrupted, we probably will have...\n        bne     t1, tp, 5f // ...already crashed before we even get here.\n\n        /* Check value of saved registers */\n        li      t0, 0xdeadbeef1badf00d\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        bne     t0, s\\n, 6f\n#ifdef __riscv_float_abi_double\n        /* TODO: check float ABI single too */\n        fmv.x.d t1, fs\\n\n        bne     t0, t1, 7f\n#endif\n        .endr\n\n4:\n        /* Restore RA and saved registers */\n        la.tls.ie t0, saved_regs\n        add     t0, tp, t0\n        ld      ra,   (t0)\n        .irp    n, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n        ld      s\\n, (32 + (16 * \\n))(t0)\n        fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\nendfunc", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/tests/checkasm/riscv/checkasm.S", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/riscv/checkasm.S:5", "text": "fld     fs\\n, (40 + (16 * \\n))(t0)\n        .endr\n        ret\n\n5:\n        lla     a0, fail_rsvd_reg\n        call    checkasm_fail_func\n        tail    abort /* The test harness would probably crash anyway */\n\n6:\n        lla     a0, fail_s_reg\n        call    checkasm_fail_func\n        j       4b\n\n7:\n        lla     a0, fail_fs_reg\n        call    checkasm_fail_func\n        j       4b\nendfunc\n\nfunc checkasm_handle_signal\n        mv      a1, a0\n        la.tls.ie a0, checked_func\n        add     a0, tp, a0\n        ld      a0, 8(a0)\n        beqz    a0, 8f\n        tail    siglongjmp\n8:      tail    abort /* No jump buffer to go to */\nendfunc\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/riscv/checkasm.S", "license": "LGPL-2.1", "commit": "d6e0fb7c928cf818d67a0b2af571c0b89d6f6704", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/d6e0fb7c928cf818d67a0b2af571c0b89d6f6704/tests/checkasm/riscv/checkasm.S", "line_start": 161, "line_end": 190}
{"id": "FFmpeg/FFmpeg:tests/checkasm/x86/checkasm.asm:1", "text": ";*****************************************************************************\n;* Assembly testing and benchmarking tool\n;* Copyright (c) 2008 Loren Merritt\n;* Copyright (c) 2012 Henrik Gramner\n;*\n;* This file is part of FFmpeg.\n;*\n;* FFmpeg is free software; you can redistribute it and/or modify\n;* it under the terms of the GNU General Public License as published by\n;* the Free Software Foundation; either version 2 of the License, or\n;* (at your option) any later version.\n;*\n;* FFmpeg is distributed in the hope that it will be useful,\n;* but WITHOUT ANY WARRANTY; without even the implied warranty of\n;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;* GNU General Public License for more details.\n;*\n;* You should have received a copy of the GNU General Public License\n;* along with this program; if not, write to the Free Software\n;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.\n;*****************************************************************************\n\n%define private_prefix checkasm\n%include \"libavutil/x86/x86inc.asm\"\n\nSECTION_RODATA\n\nerror_message: db \"failed to preserve register\", 0\nerror_message_emms: db \"failed to issue emms\", 0\n\n%if ARCH_X86_64\n; just random numbers to reduce the chance of incidental match\nALIGN 16\nx6:  dq 0x1a1b2550a612b48c,0x79445c159ce79064\nx7:  dq 0x2eed899d5a28ddcd,0x86b2536fcd8cf636\nx8:  dq 0xb0856806085e7943,0x3f2bf84fc0fcca4e\nx9:  dq 0xacbd382dcf5b8de2,0xd229e1f5b281303f\nx10: dq 0x71aeaff20b095fd9,0xab63e2e11fa38ed9\nx11: dq 0x89b0c0765892729a,0x77d410d5c42c882d\nx12: dq 0xc45ea11a955d8dd5,0x24b3c1d2a024048b\nx13: dq 0x2e8ec680de14b47c,0xdd7b8919edd42786\nx14: dq 0x135ce6888fa02cbf,0x11e53e2b2ac655ef\nx15: dq 0x011ff554472a7a10,0x6de8f4c914c334d5\nn7:  dq 0x21f86d66c8ca00ce\nn8:  dq 0x75b6ba21077c48ad\nn9:  dq 0xed56bb2dcb3c7736\nn10: dq 0x8bda43d3fd1a7e06\nn11: dq 0xb64a9c9e5d318408\nn12: dq 0xdf9a54b303f1d3a3\nn13: dq 0x4a75479abd64e097\nn14: dq 0x249214109d5d1c88\n%endif\n\nSECTION .text\n\ncextern fail_func\n\n; max number of args used by any asm function.\n; (max_args % 4) must equal 3 for stack alignment\n%define max_args 15", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/x86/checkasm.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/x86/checkasm.asm", "line_start": 1, "line_end": 60}
{"id": "FFmpeg/FFmpeg:tests/checkasm/x86/checkasm.asm:2", "text": "x13: dq 0x2e8ec680de14b47c,0xdd7b8919edd42786\nx14: dq 0x135ce6888fa02cbf,0x11e53e2b2ac655ef\nx15: dq 0x011ff554472a7a10,0x6de8f4c914c334d5\nn7:  dq 0x21f86d66c8ca00ce\nn8:  dq 0x75b6ba21077c48ad\nn9:  dq 0xed56bb2dcb3c7736\nn10: dq 0x8bda43d3fd1a7e06\nn11: dq 0xb64a9c9e5d318408\nn12: dq 0xdf9a54b303f1d3a3\nn13: dq 0x4a75479abd64e097\nn14: dq 0x249214109d5d1c88\n%endif\n\nSECTION .text\n\ncextern fail_func\n\n; max number of args used by any asm function.\n; (max_args % 4) must equal 3 for stack alignment\n%define max_args 15\n\n%if ARCH_X86_64\n\n;-----------------------------------------------------------------------------\n; int checkasm_stack_clobber(uint64_t clobber, ...)\n;-----------------------------------------------------------------------------\ncglobal stack_clobber, 1,2\n    ; Clobber the stack with junk below the stack pointer\n    %define argsize (max_args+6)*8\n    SUB  rsp, argsize\n    mov   r1, argsize-8\n.loop:\n    mov [rsp+r1], r0\n    sub   r1, 8\n    jge .loop\n    ADD  rsp, argsize\n    RET\n\n%if WIN64\n    %assign free_regs 7\n    DECLARE_REG_TMP 4\n%else\n    %assign free_regs 9\n    DECLARE_REG_TMP 7\n%endif\n\n%macro report_fail 1\n    mov  r9, rax\n    mov r10, rdx\n    lea  r0, [%1]\n    xor eax, eax\n    call fail_func\n    mov rdx, r10\n    mov rax, r9\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void checkasm_checked_call(void *func, ...)\n;-----------------------------------------------------------------------------\nINIT_XMM", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/x86/checkasm.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/x86/checkasm.asm", "line_start": 41, "line_end": 100}
{"id": "FFmpeg/FFmpeg:tests/checkasm/x86/checkasm.asm:3", "text": "DECLARE_REG_TMP 4\n%else\n    %assign free_regs 9\n    DECLARE_REG_TMP 7\n%endif\n\n%macro report_fail 1\n    mov  r9, rax\n    mov r10, rdx\n    lea  r0, [%1]\n    xor eax, eax\n    call fail_func\n    mov rdx, r10\n    mov rax, r9\n%endmacro\n\n;-----------------------------------------------------------------------------\n; void checkasm_checked_call(void *func, ...)\n;-----------------------------------------------------------------------------\nINIT_XMM\n%macro CHECKED_CALL 0-1\ncglobal checked_call%1, 2,15,16,max_args*8+8\n    mov  t0, r0\n\n    ; All arguments have been pushed on the stack instead of registers in order to\n    ; test for incorrect assumptions that 32-bit ints are zero-extended to 64-bit.\n    mov  r0, r6mp\n    mov  r1, r7mp\n    mov  r2, r8mp\n    mov  r3, r9mp\n%if UNIX64\n    mov  r4, r10mp\n    mov  r5, r11mp\n    %assign i 6\n    %rep max_args-6\n        mov  r9, [rsp+stack_offset+(i+1)*8]\n        mov  [rsp+(i-6)*8], r9\n        %assign i i+1\n    %endrep\n%else ; WIN64\n    %assign i 4\n    %rep max_args-4\n        mov  r9, [rsp+stack_offset+(i+7)*8]\n        mov  [rsp+i*8], r9\n        %assign i i+1\n    %endrep\n\n    ; Move possible floating-point arguments to the correct registers\n    movq m0, r0\n    movq m1, r1\n    movq m2, r2\n    movq m3, r3\n\n    %assign i 6\n    %rep 16-6\n        mova m %+ i, [x %+ i]\n        %assign i i+1\n    %endrep\n%endif", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/x86/checkasm.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/x86/checkasm.asm", "line_start": 81, "line_end": 140}
{"id": "FFmpeg/FFmpeg:tests/checkasm/x86/checkasm.asm:4", "text": "%assign i 4\n    %rep max_args-4\n        mov  r9, [rsp+stack_offset+(i+7)*8]\n        mov  [rsp+i*8], r9\n        %assign i i+1\n    %endrep\n\n    ; Move possible floating-point arguments to the correct registers\n    movq m0, r0\n    movq m1, r1\n    movq m2, r2\n    movq m3, r3\n\n    %assign i 6\n    %rep 16-6\n        mova m %+ i, [x %+ i]\n        %assign i i+1\n    %endrep\n%endif\n\n%assign i 14\n%rep 15-free_regs\n    mov r %+ i, [n %+ i]\n    %assign i i-1\n%endrep\n    call t0\n%assign i 14\n%rep 15-free_regs\n    xor r %+ i, [n %+ i]\n    or  r14, r %+ i\n    %assign i i-1\n%endrep\n\n%if WIN64\n    %assign i 6\n    %rep 16-6\n        pxor m %+ i, [x %+ i]\n        por  m6, m %+ i\n        %assign i i+1\n    %endrep\n    packsswb m6, m6\n    movq r5, m6\n    or  r14, r5\n%endif\n\n    ; Call fail_func() with a descriptive message to mark it as a failure\n    ; if the called function didn't preserve all callee-saved registers.\n    ; Save the return value located in rdx:rax first to prevent clobbering.\n    jz .clobber_ok\n    report_fail error_message\n.clobber_ok:\n%ifidn %1, _emms\n    emms\n%elifnidn %1, _float\n    fstenv [rsp]\n    cmp  word [rsp + 8], 0xffff\n    je   .emms_ok\n    report_fail error_message_emms\n    emms\n.emms_ok:", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/x86/checkasm.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/x86/checkasm.asm", "line_start": 121, "line_end": 180}
{"id": "FFmpeg/FFmpeg:tests/checkasm/x86/checkasm.asm:5", "text": "packsswb m6, m6\n    movq r5, m6\n    or  r14, r5\n%endif\n\n    ; Call fail_func() with a descriptive message to mark it as a failure\n    ; if the called function didn't preserve all callee-saved registers.\n    ; Save the return value located in rdx:rax first to prevent clobbering.\n    jz .clobber_ok\n    report_fail error_message\n.clobber_ok:\n%ifidn %1, _emms\n    emms\n%elifnidn %1, _float\n    fstenv [rsp]\n    cmp  word [rsp + 8], 0xffff\n    je   .emms_ok\n    report_fail error_message_emms\n    emms\n.emms_ok:\n%endif\n    RET\n%endmacro\n\n%else\n\n; just random numbers to reduce the chance of incidental match\n%define n3 dword 0x6549315c\n%define n4 dword 0xe02f3e23\n%define n5 dword 0xb78d0d1d\n%define n6 dword 0x33627ba7\n\n%macro report_fail 1\n    mov  r3, eax\n    mov  r4, edx\n    lea  r0, [%1]\n    mov [esp], r0\n    call fail_func\n    mov  edx, r4\n    mov  eax, r3\n%endmacro\n\n%macro CHECKED_CALL 0-1\n;-----------------------------------------------------------------------------\n; void checkasm_checked_call(void *func, ...)\n;-----------------------------------------------------------------------------\ncglobal checked_call%1, 1,7\n    mov  r3, n3\n    mov  r4, n4\n    mov  r5, n5\n    mov  r6, n6\n%rep max_args\n    PUSH dword [esp+20+max_args*4]\n%endrep\n    call r0\n    xor  r3, n3\n    xor  r4, n4\n    xor  r5, n5\n    xor  r6, n6\n    or   r3, r4", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/x86/checkasm.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/x86/checkasm.asm", "line_start": 161, "line_end": 220}
{"id": "FFmpeg/FFmpeg:tests/checkasm/x86/checkasm.asm:6", "text": "%endmacro\n\n%macro CHECKED_CALL 0-1\n;-----------------------------------------------------------------------------\n; void checkasm_checked_call(void *func, ...)\n;-----------------------------------------------------------------------------\ncglobal checked_call%1, 1,7\n    mov  r3, n3\n    mov  r4, n4\n    mov  r5, n5\n    mov  r6, n6\n%rep max_args\n    PUSH dword [esp+20+max_args*4]\n%endrep\n    call r0\n    xor  r3, n3\n    xor  r4, n4\n    xor  r5, n5\n    xor  r6, n6\n    or   r3, r4\n    or   r5, r6\n    or   r3, r5\n    jz .clobber_ok\n    report_fail error_message\n.clobber_ok:\n%ifidn %1, _emms\n    emms\n%elifnidn %1, _float\n    fstenv [esp]\n    cmp  word [esp + 8], 0xffff\n    je   .emms_ok\n    report_fail error_message_emms\n    emms\n.emms_ok:\n%endif\n    add  esp, max_args*4\n    RET\n%endmacro\n\n%endif ; ARCH_X86_64\n\nCHECKED_CALL\nCHECKED_CALL _emms\nCHECKED_CALL _float", "arch": "x86_64", "syntax": "nasm-like", "kind": "macro-heavy", "repo": "FFmpeg/FFmpeg", "path": "tests/checkasm/x86/checkasm.asm", "license": "LGPL-2.1", "commit": "197f854a2e75e476f09a9ec81e5d309eb8439283", "source_host": "github", "category": "media", "source_url": "https://github.com/FFmpeg/FFmpeg/blob/197f854a2e75e476f09a9ec81e5d309eb8439283/tests/checkasm/x86/checkasm.asm", "line_start": 201, "line_end": 244}
{"id": "Mbed-TLS/mbedtls:3rdparty/Makefile.inc:1", "text": "ifeq ($(INCLUDING_FROM_MBEDTLS), 1)\ninclude ../crypto/3rdparty/everest/Makefile.inc\nelse\ninclude ../3rdparty/everest/Makefile.inc\nendif", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/Makefile.inc", "license": "Apache-2.0", "commit": "20082cb488d24b5f7817e440e800b52ad14d550d", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/20082cb488d24b5f7817e440e800b52ad14d550d/3rdparty/Makefile.inc", "line_start": 1, "line_end": 5}
{"id": "Mbed-TLS/mbedtls:3rdparty/everest/Makefile.inc:1", "text": "THIRDPARTY_INCLUDES+=-I$(THIRDPARTY_DIR)/everest/include -I$(THIRDPARTY_DIR)/everest/include/everest -I$(THIRDPARTY_DIR)/everest/include/everest/kremlib\n\nTHIRDPARTY_CRYPTO_OBJECTS+= \\\n\t$(THIRDPARTY_DIR)/everest/library/everest.o \\\n\t$(THIRDPARTY_DIR)/everest/library/x25519.o \\\n\t$(THIRDPARTY_DIR)/everest/library/Hacl_Curve25519_joined.o", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/everest/Makefile.inc", "license": "Apache-2.0", "commit": "0c847bcbe79c11a74b5b1d1fec687d75888dfab5", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/0c847bcbe79c11a74b5b1d1fec687d75888dfab5/3rdparty/everest/Makefile.inc", "line_start": 1, "line_end": 6}
{"id": "Mbed-TLS/mbedtls:3rdparty/everest/Makefile.inc:1", "text": "THIRDPARTY_INCLUDES+=-I../3rdparty/everest/include -I../3rdparty/everest/include/everest -I../3rdparty/everest/include/everest/kremlib\n\nTHIRDPARTY_CRYPTO_OBJECTS+= \\\n\t../3rdparty/everest/library/everest.o \\\n\t../3rdparty/everest/library/x25519.o \\\n\t../3rdparty/everest/library/Hacl_Curve25519_joined.o", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/everest/Makefile.inc", "license": "Apache-2.0", "commit": "6e0cac1f577db5042655c11e3562dcc53fb9df55", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/6e0cac1f577db5042655c11e3562dcc53fb9df55/3rdparty/everest/Makefile.inc", "line_start": 1, "line_end": 6}
{"id": "Mbed-TLS/mbedtls:3rdparty/everest/Makefile.inc:1", "text": "EVEREST_ENABLED=$(shell perl ../scripts/config.pl -f ../include/mbedtls/config.h get MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED; echo $$?)\n\nifeq ($(EVEREST_ENABLED),0)\nTHIRDPARTY_INCLUDES+=-I../3rdparty/everest/include -I../3rdparty/everest/include/everest -I../3rdparty/everest/include/everest/kremlib\n\nTHIRDPARTY_CRYPTO_OBJECTS+= \\\n\t../3rdparty/everest/library/everest.o \\\n\t../3rdparty/everest/library/x25519.o \\\n\t../3rdparty/everest/library/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.o\n\nifeq ($(shell getconf LONG_BIT),64)\nTHIRDPARTY_CRYPTO_OBJECTS+=../3rdparty/everest/library/Hacl_Curve25519.o\nelse\nLOCAL_CFLAGS+=\"-DKRML_VERIFIED_UINT128\"\nTHIRDPARTY_CRYPTO_OBJECTS+=../3rdparty/everest/library/legacy/Hacl_Curve25519.o \\\n\t../3rdparty/everest/library/kremlib/FStar_UInt128_extracted.o\nendif\nendif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/everest/Makefile.inc", "license": "Apache-2.0", "commit": "9b5e77e2e3fa3555c385c1b170a8dd99455253c9", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/9b5e77e2e3fa3555c385c1b170a8dd99455253c9/3rdparty/everest/Makefile.inc", "line_start": 1, "line_end": 18}
{"id": "Mbed-TLS/mbedtls:3rdparty/everest/Makefile.inc:1", "text": "EVEREST_ENABLED=$(shell perl ../scripts/config.pl -f ../include/mbedtls/config.h get MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED; echo $$?)\n\nifeq ($(EVEREST_ENABLED),0)\nTHIRDPARTY_INCLUDES+=-I../3rdparty/everest/include -I../3rdparty/everest/include/everest -I../3rdparty/everest/include/everest/kremlib\n\nTHIRDPARTY_CRYPTO_OBJECTS+= \\\n\t../3rdparty/everest/library/everest.o \\\n\t../3rdparty/everest/library/x25519.o \\\n\t../3rdparty/everest/library/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.o\n\nifeq ($(shell getconf LONG_BIT),64)\nTHIRDPARTY_CRYPTO_OBJECTS+=../3rdparty/everest/library/Hacl_Curve25519.o\nelse\nCFLAGS+=\"-DKRML_VERIFIED_UINT128\"\nTHIRDPARTY_CRYPTO_OBJECTS+=../3rdparty/everest/library/legacy/Hacl_Curve25519.o \\\n\t../3rdparty/everest/library/kremlib/FStar_UInt128_extracted.o\nendif\nendif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/everest/Makefile.inc", "license": "Apache-2.0", "commit": "2d4725f204cdc61eed48da5b22b10afd0fc56af4", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/2d4725f204cdc61eed48da5b22b10afd0fc56af4/3rdparty/everest/Makefile.inc", "line_start": 1, "line_end": 18}
{"id": "Mbed-TLS/mbedtls:3rdparty/everest/Makefile.inc:1", "text": "EVEREST_ENABLED=$(shell perl ../scripts/config.pl -f ../include/mbedtls/config.h get MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED; echo $$?)\n\nifeq ($(EVEREST_ENABLED),0)\nTHIRDPARTY_INCLUDES+=-I../3rdparty/everest/include -I../3rdparty/everest/include/everest -I../3rdparty/everest/include/everest/kremlib\n\nTHIRDPARTY_OBJECTS+= \\\n\t../3rdparty/everest/library/everest.o \\\n\t../3rdparty/everest/library/x25519.o \\\n\t../3rdparty/everest/library/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.o\n\nifeq ($(shell getconf LONG_BIT),64)\nTHIRDPARTY_OBJECTS+=../3rdparty/everest/library/Hacl_Curve25519.o\nelse\nCFLAGS+=\"-DKRML_VERIFIED_UINT128\"\nTHIRDPARTY_OBJECTS+=../3rdparty/everest/library/legacy/Hacl_Curve25519.o \\\n\t../3rdparty/everest/library/kremlib/FStar_UInt128_extracted.o\nendif\nendif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/everest/Makefile.inc", "license": "Apache-2.0", "commit": "02174b90dcdc79bdfebcfd4fe0aa9a2efcfca89e", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/02174b90dcdc79bdfebcfd4fe0aa9a2efcfca89e/3rdparty/everest/Makefile.inc", "line_start": 1, "line_end": 18}
{"id": "Mbed-TLS/mbedtls:3rdparty/everest/Makefile.inc:1", "text": "THIRDPARTY_INCLUDES+=-I../3rdparty/everest/include -I../3rdparty/everest/include/everest -I../3rdparty/everest/include/everest/kremlib\n\nTHIRDPARTY_OBJECTS+= \\\n\t\t../3rdparty/everest/library/everest.o \\\n\t\t../3rdparty/everest/library/Hacl_Curve25519.o \\\n\t\t../3rdparty/everest/library/x25519.o \\\n\t\t../3rdparty/everest/library/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.o", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/everest/Makefile.inc", "license": "Apache-2.0", "commit": "62dddd08fd5a73f7ffdfbe754d5688c9c5277bd3", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/62dddd08fd5a73f7ffdfbe754d5688c9c5277bd3/3rdparty/everest/Makefile.inc", "line_start": 1, "line_end": 7}
{"id": "Mbed-TLS/mbedtls:3rdparty/p256-m/Makefile.inc:1", "text": "THIRDPARTY_INCLUDES+=-I$(THIRDPARTY_DIR)/p256-m/p256-m/include -I$(THIRDPARTY_DIR)/p256-m/p256-m/include/p256-m -I$(THIRDPARTY_DIR)/p256-m/p256-m_driver_interface\n\nTHIRDPARTY_CRYPTO_OBJECTS+= \\\n\t$(THIRDPARTY_DIR)/p256-m//p256-m_driver_entrypoints.o \\\n\t$(THIRDPARTY_DIR)/p256-m//p256-m/p256-m.o", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/p256-m/Makefile.inc", "license": "Apache-2.0", "commit": "0c847bcbe79c11a74b5b1d1fec687d75888dfab5", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/0c847bcbe79c11a74b5b1d1fec687d75888dfab5/3rdparty/p256-m/Makefile.inc", "line_start": 1, "line_end": 5}
{"id": "Mbed-TLS/mbedtls:3rdparty/p256-m/Makefile.inc:1", "text": "THIRDPARTY_INCLUDES+=-I../3rdparty/p256-m/p256-m/include -I../3rdparty/p256-m/p256-m/include/p256-m -I../3rdparty/p256-m/p256-m_driver_interface\n\nTHIRDPARTY_CRYPTO_OBJECTS+= \\\n\t../3rdparty/p256-m//p256-m_driver_entrypoints.o \\\n\t../3rdparty/p256-m//p256-m/p256-m.o", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "Mbed-TLS/mbedtls", "path": "3rdparty/p256-m/Makefile.inc", "license": "Apache-2.0", "commit": "e41f7e457fe039b1ea8a05389460b3af07a9d3dd", "source_host": "github", "category": "crypto", "source_url": "https://github.com/Mbed-TLS/mbedtls/blob/e41f7e457fe039b1ea8a05389460b3af07a9d3dd/3rdparty/p256-m/Makefile.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.6 2018/05/02 07:34:44 pgoyette Exp $\n\n.ifndef ABSTOP\nABSTOP!= cd ${.PARSEDIR}; pwd\n\n.if (${.PARSEDIR} == ${.CURDIR})\nRELTOP:= .\n.else\nRELTOP:= ${.PARSEDIR:S,^${.CURDIR},,}\n.endif\n\n# you can set BSD{SRC,OBJ}DIR in Makefile.local.inc\n.if exists(${ABSTOP}/Makefile.local.inc)\n.include \"${ABSTOP}/Makefile.local.inc\"\n.endif\n.endif", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/Makefile.inc", "line_start": 1, "line_end": 16}
{"id": "NetBSD/src:bin/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.20 2024/05/12 17:55:36 rillig Exp $\n#\t@(#)Makefile.inc\t8.1 (Berkeley) 5/31/93\n\n.include <bsd.own.mk>\t\t# for MKDYNAMICROOT definition\n\nWARNS?=\t\t5\nBINDIR?=\t/bin\n\nLINTFLAGS+=\t-u\t# don't warn about \"used but not defined\"\n\n.if (${MKDYNAMICROOT} == \"no\")\nLDSTATIC?=\t-static\n.endif\n\n.if ${MKLINT} != \"no\" && !defined(NOLINT)\nrealall: lint\n.endif", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "bin/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/bin/Makefile.inc", "line_start": 1, "line_end": 17}
{"id": "NetBSD/src:bin/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.19 2024/04/20 13:24:48 rillig Exp $\n#\t@(#)Makefile.inc\t8.1 (Berkeley) 5/31/93\n\n.include <bsd.own.mk>\t\t# for MKDYNAMICROOT definition\n\nWARNS?=\t\t5\nBINDIR?=\t/bin\n\n.if (${MKDYNAMICROOT} == \"no\")\nLDSTATIC?=\t-static\n.endif\n\n.if ${MKLINT} != \"no\" && !defined(NOLINT)\nrealall: lint\n.endif", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "bin/Makefile.inc", "license": "BSD-2-Clause", "commit": "f56f0d26c41bc0847b80e64333b522fda0211355", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f56f0d26c41bc0847b80e64333b522fda0211355/bin/Makefile.inc", "line_start": 1, "line_end": 15}
{"id": "NetBSD/src:bin/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.18 2021/10/09 21:06:31 rillig Exp $\n#\t@(#)Makefile.inc\t8.1 (Berkeley) 5/31/93\n\n.include <bsd.own.mk>\t\t# for MKDYNAMICROOT definition\n\nWARNS?=\t\t5\nBINDIR?=\t/bin\n\n.if (${MKDYNAMICROOT} == \"no\")\nLDSTATIC?=\t-static\n.endif\n\n.if ${MKLINT} != \"no\" && ${LINT_SUPPORTED:Uyes} == \"yes\"\nrealall: lint\n.endif", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "bin/Makefile.inc", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/bin/Makefile.inc", "line_start": 1, "line_end": 15}
{"id": "NetBSD/src:bin/sh/USD.doc/t.mac:1", "text": ".\\\"\t$NetBSD: t.mac,v 1.2 2010/08/22 02:19:07 perry Exp $\n.\\\"\n.\\\" Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.\n.\\\"\n.\\\" Redistribution and use in source and binary forms, with or without\n.\\\" modification, are permitted provided that the following conditions are\n.\\\" met:\n.\\\"\n.\\\" Redistributions of source code and documentation must retain the above\n.\\\" copyright notice, this list of conditions and the following\n.\\\" disclaimer.\n.\\\"\n.\\\" Redistributions in binary form must reproduce the above copyright\n.\\\" notice, this list of conditions and the following disclaimer in the\n.\\\" documentation and/or other materials provided with the distribution.\n.\\\"\n.\\\" All advertising materials mentioning features or use of this software\n.\\\" must display the following acknowledgement:\n.\\\"\n.\\\" This product includes software developed or owned by Caldera\n.\\\" International, Inc.  Neither the name of Caldera International, Inc.\n.\\\" nor the names of other contributors may be used to endorse or promote\n.\\\" products derived from this software without specific prior written\n.\\\" permission.\n.\\\"\n.\\\" USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA\n.\\\" INTERNATIONAL, INC.  AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR\n.\\\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n.\\\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n.\\\" DISCLAIMED.  IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE\n.\\\" FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR\n.\\\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n.\\\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n.\\\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n.\\\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n.\\\" OR OTHERWISE) RISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n.\\\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n.\\\"\n.\\\"\t@(#)t.mac\t8.1 (Berkeley) 8/14/93\n.\\\"\n.ds ZZ \\fB.\\|.\\|.\\fP\n.ds ST \\v'.3m'\\s+2*\\s0\\v'-.3m'\n.ds DO \\h'\\w'do 'u'\n.ds Ca \\h'\\w'case 'u'\n.ds WH \\h'\\w'while 'u'\n.ds VT \\|\\fB\\(or\\fP\\|\n.ds TH \\h'\\w'then 'u'\n.ds DC \\*(DO\\*(Ca\n.ds AP >\\h'-.2m'>\n.ds HE <\\h'-.2m'<\n.\t\\\" macros for algol 68c reference manual\n.ds DA 1977 November 1\n.ds md \\v'.25m'\n.ds mu \\v'-.25m'\n.ds U \\*(mu\\s-3\n.ds V \\s0\\*(md\n.ds L \\*(md\\s-3\n.ds M \\s0\\*(mu\n.ds S \\s-1\n.ds T \\s0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "bin/sh/USD.doc/t.mac", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/bin/sh/USD.doc/t.mac", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:bin/sh/USD.doc/t.mac:2", "text": ".ds ZZ \\fB.\\|.\\|.\\fP\n.ds ST \\v'.3m'\\s+2*\\s0\\v'-.3m'\n.ds DO \\h'\\w'do 'u'\n.ds Ca \\h'\\w'case 'u'\n.ds WH \\h'\\w'while 'u'\n.ds VT \\|\\fB\\(or\\fP\\|\n.ds TH \\h'\\w'then 'u'\n.ds DC \\*(DO\\*(Ca\n.ds AP >\\h'-.2m'>\n.ds HE <\\h'-.2m'<\n.\t\\\" macros for algol 68c reference manual\n.ds DA 1977 November 1\n.ds md \\v'.25m'\n.ds mu \\v'-.25m'\n.ds U \\*(mu\\s-3\n.ds V \\s0\\*(md\n.ds L \\*(md\\s-3\n.ds M \\s0\\*(mu\n.ds S \\s-1\n.ds T \\s0\n.\t\\\" small 1\n.ds O \\*S1\\*T\n.ds h \\|\n.ds s \\|\\|\n.\t\\\" ellipsis\n.ds e .\\|.\\|.\n.\t\\\" subscripts\n.ds 1 \\*(md\\s-41\\s0\\*(mu\n.ds 2 \\*(md\\s-42\\s0\\*(mu", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "bin/sh/USD.doc/t.mac", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/bin/sh/USD.doc/t.mac", "line_start": 41, "line_end": 69}
{"id": "NetBSD/src:common/lib/libc/Makefile.inc:1", "text": "# $NetBSD: Makefile.inc,v 1.21 2021/04/27 09:14:24 skrll Exp $\n\n.include <bsd.own.mk>\n\nCOMMON_DIR:=${.PARSEDIR}\nCOMMON_CODEDIRS=atomic gen gmon inet md misc net rpc stdlib string sys\nCOMMON_CODEDIRS+=hash/sha1 hash/sha2 hash/sha3 hash/rmd160 hash/murmurhash\n\n.if defined(COMMON_MACHINE_ARCH) && !empty(COMMON_MACHINE_ARCH) && \\\n    exists(${COMMON_DIR}/arch/${COMMON_MACHINE_ARCH})\nCOMMON_ARCHSUBDIR=\t${COMMON_MACHINE_ARCH}\n.elif defined(COMMON_MACHINE_CPU) && !empty(COMMON_MACHINE_CPU) && \\\n    exists(${COMMON_DIR}/arch/${COMMON_MACHINE_CPU})\nCOMMON_ARCHSUBDIR=\t${COMMON_MACHINE_CPU}\n.elif defined(LIBKERN_ARCH) && !empty(LIBKERN_ARCH) && \\\n    exists(${KERNDIR}/arch/${LIBKERN_ARCH})\nCOMMON_ARCHSUBDIR=\t${LIBKERN_ARCH}\n.elif exists(${COMMON_DIR}/arch/${MACHINE_ARCH})\nCOMMON_ARCHSUBDIR=\t${MACHINE_ARCH}\n.elif exists(${COMMON_DIR}/arch/${MACHINE_CPU})\nCOMMON_ARCHSUBDIR=\t${MACHINE_CPU}\n.endif\n\nCOMMON_ARCHDIR=${COMMON_DIR}/arch/${COMMON_ARCHSUBDIR}\n\n.for i in ${COMMON_CODEDIRS}\n.if exists(${COMMON_DIR}/$i)\n.PATH.c: ${COMMON_DIR}/$i\n.endif\n.if exists(${COMMON_ARCHDIR}/${i}/Makefile.inc)\n.include \"${COMMON_ARCHDIR}/${i}/Makefile.inc\"\n.endif\n.if !empty(CPPFLAGS:M-DLIBKERN_OPTIMISE_SPACE) && \\\n    exists(${COMMON_ARCHDIR}/$i/small)\n.PATH.S: ${COMMON_ARCHDIR}/$i/small\n.endif\n\n.if exists(${COMMON_ARCHDIR}/$i)\n.PATH.c: ${COMMON_ARCHDIR}/$i\n.PATH.S: ${COMMON_ARCHDIR}/$i\n.endif\n.endfor\n\nCPPFLAGS+=-I${COMMON_DIR}/quad -I${COMMON_DIR}/string\n.if defined(COMMON_ARCHSUBDIR)\nCPPFLAGS+=-I${COMMON_ARCHDIR}/string\nCPPFLAGS+=-I${COMMON_ARCHDIR}/atomic\n.endif\nCPPFLAGS+=-I${COMMON_DIR}/hash/sha3", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/Makefile.inc", "line_start": 1, "line_end": 49}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/Makefile.inc:1", "text": "# $NetBSD: Makefile.inc,v 1.5 2022/08/06 21:31:33 riastradh Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\n.for op in add and cas nand or sub swap xor\n.for sz in 8 16 32 64\nSRCS.atomic+=\tatomic_${op}_${sz}.S\n.endfor\n.endfor\nSRCS.atomic+=\tatomic_dec_32.S atomic_dec_64.S\nSRCS.atomic+=\tatomic_inc_32.S atomic_inc_64.S\nSRCS.atomic+=\tmembar_ops.S\n#and cas nand or sub swap xor\n.for op in swp cas clr set eor add\n.for sz in 1 2 4 8\n.for ar in _relax _acq _rel _acq_rel _sync\n__aarch64_${op}${sz}${ar}.S: __aarch64_lse.S\n\t${_MKTARGET_CREATE}\n\tprintf '#define OP ${op}\\n#define OP_${op}\\n#define SZ ${sz}\\n#define AR ${ar}\\n#define AR${ar}\\n#include \"__aarch64_lse.S\"\\n' > ${.TARGET}\nSRCS.gen+=\t__aarch64_${op}${sz}${ar}.S\n.endfor\n.endfor\n.endfor\n.for op in casp\n.for ar in _relax _acq _rel _acq_rel _sync\n__aarch64_${op}${ar}.S: __aarch64_lse.S\n\t${_MKTARGET_CREATE}\n\tprintf '#define OP ${op}\\n#define OP_${op}\\n#define AR ${ar}\\n#define AR${ar}\\n#include \"__aarch64_lse.S\"\\n' > ${.TARGET}\nSRCS.gen+=\t__aarch64_${op}${ar}.S\n.endfor\n.endfor\n#.for op in add and nand or sub xor\n#SRCS.atomic+=\tsync_fetch_and_${op}_8.S\n#.endfor\n#.for sz in 1 2 4 8\n#SRCS.atomic+=\tsync_bool_compare_and_swap_${sz}.S\n#.endfor\n\n.endif\n\nSRCS.atomic+=\tatomic_init_cas.c\n\nSRCS+=\t\t${SRCS.atomic} ${SRCS.gen}\nCLEANFILES+=\t${SRCS.gen}", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/Makefile.inc", "line_start": 1, "line_end": 45}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S:4", "text": "#define LDXR\t\t\t_CONCAT4(ld, ACQ, xr, OPSFX)\n#define STXR\t\t\t_CONCAT4(st, REL, xr, OPSFX)\n#define LDXP\t\t\t_CONCAT3(ld, ACQ, xp)\n#define STXP\t\t\t_CONCAT3(st, REL, xp)\n\n#ifdef _HAVE_LSE\n#define SWP\t\t\t_CONCAT4(swp, ACQ, REL, OPSFX)\n#define CAS\t\t\t_CONCAT4(cas, ACQ, REL, OPSFX)\n#define CASP\t\t\t_CONCAT3(casp, ACQ, REL)\n#define INSN\t\t\t_CONCAT5(ld, OP, ACQ, REL, OPSFX)\n\n\t.hidden\t__aarch64_have_lse_atomics\n\t.arch armv8-a+lse\n\n#define DO_LSE_INSN_IF_SUPPORTED(label)\t\t\t\t\\\n\tadrp\tx4, __aarch64_have_lse_atomics\t\t\t;\\\n\tldrb\tw4, [x4, #:lo12:__aarch64_have_lse_atomics]\t;\\\n\tcbnz\tw4, label\n\n#endif\n\n#if defined(OP_swp)\nENTRY_NP(SWP_FUNC)\n#ifdef _HAVE_LSE\n\tDO_LSE_INSN_IF_SUPPORTED(99f)\n\tDMB\n\tSWP\tR0, R0, [x1]\n\tDMB\n\tret\n99:\n#endif\n\tmov\tx4, x0\t\t\t/* need x0 for return value\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n1:\tLDXR\tR0, [x1]\t\t/* load old value\t\t*/\n\tSTXR\tw3, R4, [x1]\t\t/* store new value\t\t*/\n\tcbnz\tw3, 2f\t\t\t/*   succeed?? no, try again\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n\tret\t\t\t\t/* return old value\t\t*/\n2:\tb\t1b\nEND(SWP_FUNC)\n#endif\n\n#if defined(OP_cas)\nENTRY_NP(CAS_FUNC)\n#ifdef _HAVE_LSE\n\tDO_LSE_INSN_IF_SUPPORTED(99f)\n\tDMB\n\tCAS\tR0, R1, [x2]\n\tDMB\n\tret\n99:\n#endif\n\tmov\tx4, x0\t\t\t/* need x0 for return value\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n1:\tLDXR\tR0, [x2]\t\t/* load old value\t\t*/\n\tcmp\tR0, R4\t\t\t/* compare\t\t\t*/\n\tb.ne\t2f\t\t\t/*   not equal? return\t\t*/\n\tSTXR\tw3, R1, [x2]\t\t/* store new value\t\t*/\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again.\t*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S:5", "text": "END(SWP_FUNC)\n#endif\n\n#if defined(OP_cas)\nENTRY_NP(CAS_FUNC)\n#ifdef _HAVE_LSE\n\tDO_LSE_INSN_IF_SUPPORTED(99f)\n\tDMB\n\tCAS\tR0, R1, [x2]\n\tDMB\n\tret\n99:\n#endif\n\tmov\tx4, x0\t\t\t/* need x0 for return value\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n1:\tLDXR\tR0, [x2]\t\t/* load old value\t\t*/\n\tcmp\tR0, R4\t\t\t/* compare\t\t\t*/\n\tb.ne\t2f\t\t\t/*   not equal? return\t\t*/\n\tSTXR\tw3, R1, [x2]\t\t/* store new value\t\t*/\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again.\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n2:\tret\t\t\t\t/* return.\t\t\t*/\n3:\tb\t1b\nEND(CAS_FUNC)\n#endif\n\n#if defined(OP_casp)\nENTRY_NP(CASP_FUNC)\n#ifdef _HAVE_LSE\n\tDO_LSE_INSN_IF_SUPPORTED(99f)\n\tDMB\n\tCASP\tx0, x1, x2, x3, [x4]\n\tDMB\n\tret\n99:\n#endif\n\tmov\tx5, x0\t\t\t/* need x0 for return value\t*/\n\tmov\tx6, x1\t\t\t/* need x1 for return value\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n1:\tLDXP\tx0, x1, [x4]\t\t/* load old value\t\t*/\n\tcmp\tx0, x5\t\t\t/* compare\t\t\t*/\n\tb.ne\t2f\t\t\t/*   not equal? return\t\t*/\n\tcmp\tx1, x6\n\tb.ne\t2f\t\t\t/*   not equal? return\t\t*/\n\tSTXP\tw7, x2, x3, [x4]\t/* store new value\t\t*/\n\tcbnz\tw7, 3f\t\t\t/*   succeed? nope, try again.\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n2:\tret\t\t\t\t/* return.\t\t\t*/\n3:\tb\t1b\nEND(CASP_FUNC)\n#endif\n\n#if defined(OP_set) || defined(OP_clr) || defined(OP_add) || defined(OP_eor)\nENTRY_NP(INSN_FUNC)\n#ifdef _HAVE_LSE\n\tDO_LSE_INSN_IF_SUPPORTED(99f)\n\tDMB\n\tINSN\tR0, R0, [x1]\n\tDMB\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S:6", "text": "cmp\tx0, x5\t\t\t/* compare\t\t\t*/\n\tb.ne\t2f\t\t\t/*   not equal? return\t\t*/\n\tcmp\tx1, x6\n\tb.ne\t2f\t\t\t/*   not equal? return\t\t*/\n\tSTXP\tw7, x2, x3, [x4]\t/* store new value\t\t*/\n\tcbnz\tw7, 3f\t\t\t/*   succeed? nope, try again.\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n2:\tret\t\t\t\t/* return.\t\t\t*/\n3:\tb\t1b\nEND(CASP_FUNC)\n#endif\n\n#if defined(OP_set) || defined(OP_clr) || defined(OP_add) || defined(OP_eor)\nENTRY_NP(INSN_FUNC)\n#ifdef _HAVE_LSE\n\tDO_LSE_INSN_IF_SUPPORTED(99f)\n\tDMB\n\tINSN\tR0, R0, [x1]\n\tDMB\n\tret\n99:\n#endif\n\tmov\tx4, x0\t\t\t/* need x0 for return value\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n1:\tLDXR\tR0, [x1]\t\t/* load old value\t\t*/\n\tINSNOP\tR4, R0, R4\n\tSTXR\tw3, R4, [x1]\t\t/* store new value\t\t*/\n\tcbnz\tw3, 2f\t\t\t/*   succeed?? no, try again\t*/\n\tDMB\t\t\t\t/* potential barrier\t\t*/\n\tret\t\t\t\t/* return old value\t\t*/\n2:\tb\t1b\nEND(INSN_FUNC)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/__aarch64_lse.S", "line_start": 201, "line_end": 233}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_add_16.S:1", "text": "/* $NetBSD: atomic_add_16.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP16(add, add)\n\nSYNC_FETCH_OP16(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_16,_atomic_add_16)\nATOMIC_OP_ALIAS(atomic_add_short,_atomic_add_16)\nSTRONG_ALIAS(_atomic_add_short,_atomic_add_16)\n\nATOMIC_OP16_NV(add, add)\n\nSYNC_OP16_FETCH(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_16_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_add_short_nv,_atomic_add_16_nv)\nSTRONG_ALIAS(_atomic_add_short_nv,_atomic_add_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_add_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_add_16.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_add_32.S:1", "text": "/* $NetBSD: atomic_add_32.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP32(add, add)\n\nSYNC_FETCH_OP32(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n\nATOMIC_OP32_NV(add, add)\n\nSYNC_OP32_FETCH(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_add_32.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_add_64.S:1", "text": "/* $NetBSD: atomic_add_64.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP64(add, add)\n\nSYNC_FETCH_OP64(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\n\nATOMIC_OP64_NV(add, add)\n\nSYNC_OP64_FETCH(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_add_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_add_64.S", "line_start": 1, "line_end": 52}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_add_8.S:1", "text": "/* $NetBSD: atomic_add_8.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP8(add, add)\n\nSYNC_FETCH_OP8(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_8,_atomic_add_8)\nATOMIC_OP_ALIAS(atomic_add_char,_atomic_add_8)\nSTRONG_ALIAS(_atomic_add_char,_atomic_add_8)\n\nATOMIC_OP8_NV(add, add)\n\nSYNC_OP8_FETCH(add, add)\n\nATOMIC_OP_ALIAS(atomic_add_8_nv,_atomic_add_8_nv)\nATOMIC_OP_ALIAS(atomic_add_char_nv,_atomic_add_8_nv)\nSTRONG_ALIAS(_atomic_add_char_nv,_atomic_add_8_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_add_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_add_8.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_and_16.S:1", "text": "/* $NetBSD: atomic_and_16.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP16(and, and)\n\nSYNC_FETCH_OP16(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_16,_atomic_and_16)\nATOMIC_OP_ALIAS(atomic_and_ushort,_atomic_and_16)\nSTRONG_ALIAS(_atomic_and_ushort,_atomic_and_16)\n\nATOMIC_OP16_NV(and, and)\n\nSYNC_OP16_FETCH(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_16_nv,_atomic_and_16_nv)\nATOMIC_OP_ALIAS(atomic_and_ushort_nv,_atomic_and_16_nv)\nSTRONG_ALIAS(_atomic_and_ushort_nv,_atomic_and_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_and_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_and_16.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_and_32.S:1", "text": "/* $NetBSD: atomic_and_32.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP32(and, and)\n\nSYNC_FETCH_OP32(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n\nATOMIC_OP32_NV(and, and)\n\nSYNC_OP32_FETCH(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_and_32.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_and_64.S:1", "text": "/* $NetBSD: atomic_and_64.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP64(and, and)\n\nSYNC_FETCH_OP64(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_64,_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\n\nATOMIC_OP64_NV(and, and)\n\nSYNC_OP64_FETCH(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_and_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_and_64.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_and_8.S:1", "text": "/* $NetBSD: atomic_and_8.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP8(and, and)\n\nSYNC_FETCH_OP8(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_8,_atomic_and_8)\nATOMIC_OP_ALIAS(atomic_and_uchar,_atomic_and_8)\nSTRONG_ALIAS(_atomic_and_uchar,_atomic_and_8)\n\nATOMIC_OP8_NV(and, and)\n\nSYNC_OP8_FETCH(and, and)\n\nATOMIC_OP_ALIAS(atomic_and_8_nv,_atomic_and_8_nv)\nATOMIC_OP_ALIAS(atomic_and_uchar_nv,_atomic_and_8_nv)\nSTRONG_ALIAS(_atomic_and_uchar_nv,_atomic_and_8_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_and_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_and_8.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S:1", "text": "/* $NetBSD: atomic_cas_16.S,v 1.4 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_16)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n1:\tldxrh\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\n\tstxrh\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_short,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_ushort,_atomic_cas_16)\nSTRONG_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16)\n\nENTRY_NP(__sync_val_compare_and_swap_2)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxrh\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\n\tstxrh\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n\tdmb\tish\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S:2", "text": "2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_short,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_ushort,_atomic_cas_16)\nSTRONG_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16)\n\nENTRY_NP(__sync_val_compare_and_swap_2)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxrh\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\n\tstxrh\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n\tdmb\tish\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(__sync_val_compare_and_swap_2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S:1", "text": "/* $NetBSD: atomic_cas_32.S,v 1.4 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_32)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n1:\tldxr\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\t\t\t/*     return if different */\n\tstxr\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\nENTRY_NP(__sync_val_compare_and_swap_4)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxr\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\t\t\t/*     return if different */\n\tstxr\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S:2", "text": "2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\nENTRY_NP(__sync_val_compare_and_swap_4)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxr\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\t\t\t/*     return if different */\n\tstxr\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n\tdmb\tish\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(__sync_val_compare_and_swap_4)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S:1", "text": "/* $NetBSD: atomic_cas_64.S,v 1.6 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_64)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value */\n\tcmp\tx0, x1\t\t\t/*   compare? */\n\tb.ne\t2f\t\t\t/*     return if different */\n\tstxr\tw3, x2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n\nENTRY_NP(__sync_val_compare_and_swap_8)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxr\tx0, [x4]\t\t/* load old value */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S:2", "text": "2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n\nENTRY_NP(__sync_val_compare_and_swap_8)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxr\tx0, [x4]\t\t/* load old value */\n\tcmp\tx0, x1\t\t\t/*   compare? */\n\tb.ne\t2f\t\t\t/*     return if different */\n\tstxr\tw3, x2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n\tdmb\tish\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(__sync_val_compare_and_swap_8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S", "line_start": 41, "line_end": 68}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S:1", "text": "/* $NetBSD: atomic_cas_8.S,v 1.4 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_8)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n1:\tldxrb\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\n\tstxrb\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(_atomic_cas_8)\n\nATOMIC_OP_ALIAS(atomic_cas_8,_atomic_cas_8)\nSTRONG_ALIAS(_atomic_cas_char,_atomic_cas_8)\nSTRONG_ALIAS(_atomic_cas_uchar,_atomic_cas_8)\n\nENTRY_NP(__sync_val_compare_and_swap_1)\n\tmov\tx4, x0\t\t\t/* we need x0 for return value */\n\tdmb\tish\n1:\tldxrb\tw0, [x4]\t\t/* load old value */\n\tcmp\tw0, w1\t\t\t/*   compare? */\n\tb.ne\t2f\n\tstxrb\tw3, w2, [x4]\t\t/* store new value */\n\tcbnz\tw3, 3f\t\t\t/*   succeed? nope, try again. */\n\tdmb\tish\n2:\tret\t\t\t\t/* return. */\n3:\tb\t1b\nEND(__sync_val_compare_and_swap_1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_dec_32.S:1", "text": "/* $NetBSD: atomic_dec_32.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_dec_32)\n1:\tldxr\tw3, [x0]\t\t/* load old value (return value) */\n\tsub\tw3, w3, #1\t\t/* calculate new value */\n\tstxr\tw2, w3, [x0]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n\nENTRY_NP(_atomic_dec_32_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tw0, [x4]\t\t/* load old value */\n\tsub\tw0, w0, #1\t\t/* calculate new value (return value) */\n\tstxr\tw3, w0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_dec_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_dec_32.S", "line_start": 1, "line_end": 59}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_dec_64.S:1", "text": "/* $NetBSD: atomic_dec_64.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_dec_64)\n1:\tldxr\tx2, [x0]\t\t/* load old value (return value) */\n\tsub\tx2, x2, #1\t\t/* calculate new value */\n\tstxr\tw3, x2, [x0]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_dec_64)\n\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\n\nENTRY_NP(_atomic_dec_64_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value */\n\tsub\tx0, x0, #1\t\t/* calculate new value (return value) */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_dec_64_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_dec_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_dec_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_dec_64.S:2", "text": "END(_atomic_dec_64)\n\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\n\nENTRY_NP(_atomic_dec_64_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value */\n\tsub\tx0, x0, #1\t\t/* calculate new value (return value) */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_dec_64_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_dec_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_dec_64.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_inc_32.S:1", "text": "/* $NetBSD: atomic_inc_32.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_inc_32)\n1:\tldxr\tw3, [x0]\t\t/* load old value (return value) */\n\tadd\tw3, w3, #1\t\t/* calculate new value */\n\tstxr\tw2, w3, [x0]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_inc_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n\nENTRY_NP(_atomic_inc_32_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tw0, [x4]\t\t/* load old value */\n\tadd\tw0, w0, #1\t\t/* calculate new value (return value) */\n\tstxr\tw3, w0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_inc_32_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_inc_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_inc_32.S", "line_start": 1, "line_end": 59}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_inc_64.S:1", "text": "/* $NetBSD: atomic_inc_64.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_inc_64)\n1:\tldxr\tx2, [x0]\t\t/* load old value (return value) */\n\tadd\tx2, x2, #1\t\t/* calculate new value */\n\tstxr\tw3, x2, [x0]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_inc_64)\n\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\n\nENTRY_NP(_atomic_inc_64_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value */\n\tadd\tx0, x0, #1\t\t/* calculate new value (return value) */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_inc_64_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_inc_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_inc_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_inc_64.S:2", "text": "END(_atomic_inc_64)\n\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\n\nENTRY_NP(_atomic_inc_64_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value */\n\tadd\tx0, x0, #1\t\t/* calculate new value (return value) */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_inc_64_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_inc_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_inc_64.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S:1", "text": "/* $NetBSD: atomic_nand_16.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n/*\n * { tmp = *ptr; *ptr = ~(tmp & value); return tmp; }   // nand\n */\nENTRY_NP(_atomic_nand_16)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxrh\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrh\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_16)\n\nENTRY_NP(__sync_fetch_and_nand_2)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrh\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrh\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(__sync_fetch_and_nand_2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S:2", "text": "mvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrh\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_16)\n\nENTRY_NP(__sync_fetch_and_nand_2)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrh\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrh\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(__sync_fetch_and_nand_2)\n\nATOMIC_OP_ALIAS(atomic_nand_16,_atomic_nand_16)\nATOMIC_OP_ALIAS(atomic_nand_ushort,_atomic_nand_16)\nSTRONG_ALIAS(_atomic_nand_ushort,_atomic_nand_16)\n\n\n/*\n * { tmp = ~(*ptr & value); *ptr = tmp; return *ptr; }   // nand\n */\nENTRY_NP(_atomic_nand_16_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxrh\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value), return value */\n\tstxrh\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_nand_16_nv)\n\nENTRY_NP(__sync_nand_and_fetch_2)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrh\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value), return */\n\tstxrh\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb \tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_2)\n\nATOMIC_OP_ALIAS(atomic_nand_16_nv,_atomic_nand_16_nv)\nATOMIC_OP_ALIAS(atomic_nand_ushort_nv,_atomic_nand_16_nv)\nSTRONG_ALIAS(_atomic_nand_ushort_nv,_atomic_nand_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S", "line_start": 41, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S:3", "text": "mov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrh\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value), return */\n\tstxrh\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb \tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_2)\n\nATOMIC_OP_ALIAS(atomic_nand_16_nv,_atomic_nand_16_nv)\nATOMIC_OP_ALIAS(atomic_nand_ushort_nv,_atomic_nand_16_nv)\nSTRONG_ALIAS(_atomic_nand_ushort_nv,_atomic_nand_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S", "line_start": 81, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S:1", "text": "/* $NetBSD: atomic_nand_32.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n/*\n * { tmp = *ptr; *ptr = ~(tmp & value); return tmp; }   // nand\n */\nENTRY_NP(_atomic_nand_32)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxr\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\n\nENTRY_NP(__sync_fetch_and_nand_4)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxr\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S:2", "text": "mvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxr\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\n\nENTRY_NP(__sync_fetch_and_nand_4)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxr\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(__sync_fetch_and_nand_4)\n\n\n/*\n * { tmp = ~(*ptr & value); *ptr = tmp; return *ptr; }   // nand\n */\nENTRY_NP(_atomic_nand_32_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value), return value */\n\tstxr\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_nand_32_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_32_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\n\nENTRY_NP(__sync_nand_and_fetch_4)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tw0, [x4]\t\t/* load old value (tmp) */\n\tand\tw0, w0, w1\t\t/* w0 =  (tmp & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(tmp & value), return */\n\tstxr\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb\tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_4)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S", "line_start": 41, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S:3", "text": "ATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\n\nENTRY_NP(__sync_nand_and_fetch_4)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tw0, [x4]\t\t/* load old value (tmp) */\n\tand\tw0, w0, w1\t\t/* w0 =  (tmp & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(tmp & value), return */\n\tstxr\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb\tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_4)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S", "line_start": 81, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S:1", "text": "/* $NetBSD: atomic_nand_64.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n/*\n * { tmp = *ptr; *ptr = ~(tmp & value); return tmp; }   // nand\n */\nENTRY_NP(_atomic_nand_64)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value (*ptr) */\n\tand\tx2, x0, x1\t\t/* x2 =  (*ptr & value) */\n\tmvn\tx2, x2\t\t\t/* x2 = ~(*ptr & value) */\n\tstxr\tw3, x2, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_64)\n\nATOMIC_OP_ALIAS(atomic_nand_64,_atomic_nand_64)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_64)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_64)\n\nENTRY_NP(__sync_fetch_and_nand_8)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tx0, [x4]\t\t/* load old value (*ptr) */\n\tand\tx2, x0, x1\t\t/* x2 =  (*ptr & value) */\n\tmvn\tx2, x2\t\t\t/* x2 = ~(*ptr & value) */\n\tstxr\tw3, x2, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S:2", "text": "mvn\tx2, x2\t\t\t/* x2 = ~(*ptr & value) */\n\tstxr\tw3, x2, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_64)\n\nATOMIC_OP_ALIAS(atomic_nand_64,_atomic_nand_64)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_64)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_64)\n\nENTRY_NP(__sync_fetch_and_nand_8)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tx0, [x4]\t\t/* load old value (*ptr) */\n\tand\tx2, x0, x1\t\t/* x2 =  (*ptr & value) */\n\tmvn\tx2, x2\t\t\t/* x2 = ~(*ptr & value) */\n\tstxr\tw3, x2, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(__sync_fetch_and_nand_8)\n\n\n/*\n * { tmp = ~(*ptr & value); *ptr = tmp; return *ptr; }   // nand\n */\nENTRY_NP(_atomic_nand_64_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxr\tx0, [x4]\t\t/* load old value (*ptr) */\n\tand\tx0, x0, x1\t\t/* x0 =  (*ptr & value) */\n\tmvn\tx0, x0\t\t\t/* x0 = ~(*ptr & value), return value */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_nand_64_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_64_nv,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_64_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_64_nv)\n\nENTRY_NP(__sync_nand_and_fetch_8)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tx0, [x4]\t\t/* load old value (*ptr) */\n\tand\tx0, x0, x1\t\t/* x0 =  (*ptr & value) */\n\tmvn\tx0, x0\t\t\t/* x0 = ~(*ptr & value) */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb\tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S", "line_start": 41, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S:3", "text": "ATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_64_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_64_nv)\n\nENTRY_NP(__sync_nand_and_fetch_8)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxr\tx0, [x4]\t\t/* load old value (*ptr) */\n\tand\tx0, x0, x1\t\t/* x0 =  (*ptr & value) */\n\tmvn\tx0, x0\t\t\t/* x0 = ~(*ptr & value) */\n\tstxr\tw3, x0, [x4]\t\t/* try to store */\n\tcbnz\tw3, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb\tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S", "line_start": 81, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S:1", "text": "/* $NetBSD: atomic_nand_8.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n/*\n * { tmp = *ptr; *ptr = ~(tmp & value); return tmp; }   // nand\n */\nENTRY_NP(_atomic_nand_8)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxrb\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrb\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_8)\n\nATOMIC_OP_ALIAS(atomic_nand_8,_atomic_nand_8)\nATOMIC_OP_ALIAS(atomic_nand_uchar,_atomic_nand_8)\nSTRONG_ALIAS(_atomic_nand_uchar,_atomic_nand_8)\n\nENTRY_NP(__sync_fetch_and_nand_1)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrb\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrb\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S:2", "text": "mvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrb\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(_atomic_nand_8)\n\nATOMIC_OP_ALIAS(atomic_nand_8,_atomic_nand_8)\nATOMIC_OP_ALIAS(atomic_nand_uchar,_atomic_nand_8)\nSTRONG_ALIAS(_atomic_nand_uchar,_atomic_nand_8)\n\nENTRY_NP(__sync_fetch_and_nand_1)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrb\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw3, w0, w1\t\t/* w3 =  (*ptr & value) */\n\tmvn\tw3, w3\t\t\t/* w3 = ~(*ptr & value) */\n\tstxrb\tw2, w3, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again */\n\tdmb\tish\n\tret\t\t\t\t/* return old value */\n2:\tb\t1b\nEND(__sync_fetch_and_nand_1)\n\n\n/*\n * { tmp = ~(*ptr & value); *ptr = tmp; return *ptr; }   // nand\n */\nENTRY_NP(_atomic_nand_8_nv)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n1:\tldxrb\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value), return value */\n\tstxrb\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(_atomic_nand_8_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_8_nv,_atomic_nand_8_nv)\nATOMIC_OP_ALIAS(atomic_nand_uchar_nv,_atomic_nand_8_nv)\nSTRONG_ALIAS(_atomic_nand_uchar_nv,_atomic_nand_8_nv)\n\nENTRY_NP(__sync_nand_and_fetch_1)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrb\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value) */\n\tstxrb\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb\tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S", "line_start": 41, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S:3", "text": "ATOMIC_OP_ALIAS(atomic_nand_uchar_nv,_atomic_nand_8_nv)\nSTRONG_ALIAS(_atomic_nand_uchar_nv,_atomic_nand_8_nv)\n\nENTRY_NP(__sync_nand_and_fetch_1)\n\tmov\tx4, x0\t\t\t/* need r0 for return value */\n\tdmb\tish\n1:\tldxrb\tw0, [x4]\t\t/* load old value (*ptr) */\n\tand\tw0, w0, w1\t\t/* w0 =  (*ptr & value) */\n\tmvn\tw0, w0\t\t\t/* w0 = ~(*ptr & value) */\n\tstxrb\tw2, w0, [x4]\t\t/* try to store */\n\tcbnz\tw2, 2f\t\t\t/*   succeed? no, try again? */\n\tdmb\tish\n\tret\t\t\t\t/* return new value */\n2:\tb\t1b\nEND(__sync_nand_and_fetch_1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S", "line_start": 81, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_or_16.S:1", "text": "/* $NetBSD: atomic_or_16.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP16(or, orr)\n\nSYNC_FETCH_OP16(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_16,_atomic_or_16)\nATOMIC_OP_ALIAS(atomic_or_ushort,_atomic_or_16)\nSTRONG_ALIAS(_atomic_or_ushort,_atomic_or_16)\n\nATOMIC_OP16_NV(or, orr)\n\nSYNC_OP16_FETCH(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_16_nv,_atomic_or_16_nv)\nATOMIC_OP_ALIAS(atomic_or_ushort_nv,_atomic_or_16_nv)\nSTRONG_ALIAS(_atomic_or_ushort_nv,_atomic_or_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_or_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_or_16.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_or_32.S:1", "text": "/* $NetBSD: atomic_or_32.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP32(or, orr)\n\nSYNC_FETCH_OP32(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n\nATOMIC_OP32_NV(or, orr)\n\nSYNC_OP32_FETCH(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_or_32.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_or_64.S:1", "text": "/* $NetBSD: atomic_or_64.S,v 1.3 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP64(or, orr)\n\nSYNC_FETCH_OP64(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_64,_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\n\nATOMIC_OP64_NV(or, orr)\n\nSYNC_OP64_FETCH(or, orr)\n\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_or_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_or_64.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_or_8.S:1", "text": "/* $NetBSD: atomic_or_8.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP8(or, orr)\n\nSYNC_FETCH_OP8(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_8,_atomic_or_8)\nATOMIC_OP_ALIAS(atomic_or_uchar,_atomic_or_8)\nSTRONG_ALIAS(_atomic_or_uchar,_atomic_or_8)\n\nATOMIC_OP8_NV(or, orr)\n\nSYNC_OP8_FETCH(or, orr)\n\nATOMIC_OP_ALIAS(atomic_or_8_nv,_atomic_or_8_nv)\nATOMIC_OP_ALIAS(atomic_or_uchar_nv,_atomic_or_8_nv)\nSTRONG_ALIAS(_atomic_or_uchar_nv,_atomic_or_8_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_or_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_or_8.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_sub_16.S:1", "text": "/* $NetBSD: atomic_sub_16.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP16(sub, sub)\n\nSYNC_FETCH_OP16(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_16,_atomic_sub_16)\nATOMIC_OP_ALIAS(atomic_sub_short,_atomic_sub_16)\nATOMIC_OP_ALIAS(atomic_sub_ushort,_atomic_sub_16)\nSTRONG_ALIAS(_atomic_sub_short,_atomic_sub_16)\nSTRONG_ALIAS(_atomic_sub_ushort,_atomic_sub_16)\n\nATOMIC_OP16_NV(sub, sub)\n\nSYNC_OP16_FETCH(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_16_nv,_atomic_sub_16_nv)\nATOMIC_OP_ALIAS(atomic_sub_short_nv,_atomic_sub_16_nv)\nATOMIC_OP_ALIAS(atomic_sub_ushort_nv,_atomic_sub_16_nv)\nSTRONG_ALIAS(_atomic_sub_short_nv,_atomic_sub_16_nv)\nSTRONG_ALIAS(_atomic_sub_ushort_nv,_atomic_sub_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_sub_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_sub_16.S", "line_start": 1, "line_end": 52}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_sub_32.S:1", "text": "/* $NetBSD: atomic_sub_32.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP32(sub, sub)\n\nSYNC_FETCH_OP32(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\n\nATOMIC_OP32_NV(sub, sub)\n\nSYNC_OP32_FETCH(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_32_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_int_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_int_nv,_atomic_sub_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_sub_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_sub_32.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_sub_64.S:1", "text": "/* $NetBSD: atomic_sub_64.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP64(sub, sub)\n\nSYNC_FETCH_OP64(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_64_nv,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_64_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_64_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_64_nv)\n\nATOMIC_OP64_NV(sub, sub)\n\nSYNC_OP64_FETCH(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_64,_atomic_sub_64)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_64)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_64)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_64)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_sub_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_sub_64.S", "line_start": 1, "line_end": 52}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_sub_8.S:1", "text": "/* $NetBSD: atomic_sub_8.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP8(sub, sub)\n\nSYNC_FETCH_OP8(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_8,_atomic_sub_8)\nATOMIC_OP_ALIAS(atomic_sub_char,_atomic_sub_8)\nSTRONG_ALIAS(_atomic_sub_char,_atomic_sub_8)\n\nATOMIC_OP8_NV(sub, sub)\n\nSYNC_OP8_FETCH(sub, sub)\n\nATOMIC_OP_ALIAS(atomic_sub_8_nv,_atomic_sub_8_nv)\nATOMIC_OP_ALIAS(atomic_sub_char_nv,_atomic_sub_8_nv)\nSTRONG_ALIAS(_atomic_sub_char_nv,_atomic_sub_8_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_sub_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_sub_8.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S:1", "text": "/* $NetBSD: atomic_swap_16.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_16)\n\tmov\tx4, x0\n1:\tldxrh\tw0, [x4]\n\tstxrh\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(_atomic_swap_16)\n\nATOMIC_OP_ALIAS(atomic_swap_16,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_short,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_ushort,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_short,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_ushort,_atomic_swap_16)\n\nENTRY_NP(__sync_lock_test_and_set_2)\n\tmov\tx4, x0\n1:\tldaxrh\tw0, [x4]\n\tstxrh\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(__sync_lock_test_and_set_2)\n\nENTRY_NP(__sync_lock_release_2)\n\tstlrh\twzr, [x0]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S:2", "text": "END(_atomic_swap_16)\n\nATOMIC_OP_ALIAS(atomic_swap_16,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_short,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_ushort,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_short,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_ushort,_atomic_swap_16)\n\nENTRY_NP(__sync_lock_test_and_set_2)\n\tmov\tx4, x0\n1:\tldaxrh\tw0, [x4]\n\tstxrh\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(__sync_lock_test_and_set_2)\n\nENTRY_NP(__sync_lock_release_2)\n\tstlrh\twzr, [x0]\n\tret\nEND(__sync_lock_release_2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_32.S:1", "text": "/* $NetBSD: atomic_swap_32.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_32)\n\tmov\tx4, x0\n1:\tldxr\tw0, [x4]\n\tstxr\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\nENTRY_NP(__sync_lock_test_and_set_4)\n\tmov\tx4, x0\n1:\tldaxr\tw0, [x4]\n\tstxr\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(__sync_lock_test_and_set_4)\n\nENTRY_NP(__sync_lock_release_4)\n\tstlr\twzr, [x0]\n\tret\nEND(__sync_lock_release_4)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_32.S", "line_start": 1, "line_end": 59}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S:1", "text": "/* $NetBSD: atomic_swap_64.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_64)\n\tmov\tx4, x0\n1:\tldxr\tx0, [x4]\n\tstxr\tw3, x1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(_atomic_swap_64)\n\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nENTRY_NP(__sync_lock_test_and_set_8)\n\tmov\tx4, x0\n1:\tldaxr\tx0, [x4]\n\tstxr\tw3, x1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(_atomic_swap_64)\n\nENTRY_NP(__sync_lock_release_8)\n\tstlr\txzr, [x0]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S:2", "text": "END(_atomic_swap_64)\n\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nENTRY_NP(__sync_lock_test_and_set_8)\n\tmov\tx4, x0\n1:\tldaxr\tx0, [x4]\n\tstxr\tw3, x1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(_atomic_swap_64)\n\nENTRY_NP(__sync_lock_release_8)\n\tstlr\txzr, [x0]\n\tret\nEND(__sync_lock_release_8)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_8.S:1", "text": "/* $NetBSD: atomic_swap_8.S,v 1.5 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_8)\n\tmov\tx4, x0\n1:\tldxrb\tw0, [x4]\n\tstxrb\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(_atomic_swap_8)\n\nATOMIC_OP_ALIAS(atomic_swap_8,_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_char,_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_uchar,_atomic_swap_8)\nSTRONG_ALIAS(_atomic_swap_char,_atomic_swap_8)\nSTRONG_ALIAS(_atomic_swap_uchar,_atomic_swap_8)\n\nENTRY_NP(__sync_lock_test_and_set_1)\n\tmov\tx4, x0\n1:\tldaxrb\tw0, [x4]\n\tstxrb\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(__sync_lock_test_and_set_1)\n\nENTRY_NP(__sync_lock_release_1)\n\tstlrb\twzr, [x0]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_swap_8.S:2", "text": "END(_atomic_swap_8)\n\nATOMIC_OP_ALIAS(atomic_swap_8,_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_char,_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_uchar,_atomic_swap_8)\nSTRONG_ALIAS(_atomic_swap_char,_atomic_swap_8)\nSTRONG_ALIAS(_atomic_swap_uchar,_atomic_swap_8)\n\nENTRY_NP(__sync_lock_test_and_set_1)\n\tmov\tx4, x0\n1:\tldaxrb\tw0, [x4]\n\tstxrb\tw3, w1, [x4]\n\tcbnz\tw3, 2f\n\tret\n2:\tb\t1b\nEND(__sync_lock_test_and_set_1)\n\nENTRY_NP(__sync_lock_release_1)\n\tstlrb\twzr, [x0]\n\tret\nEND(__sync_lock_release_1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_swap_8.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_xor_16.S:1", "text": "/* $NetBSD: atomic_xor_16.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP16(xor, eor)\n\nSYNC_FETCH_OP16(xor, eor)\n\nATOMIC_OP_ALIAS(atomic_xor_16,_atomic_xor_16)\nATOMIC_OP_ALIAS(atomic_xor_ushort,_atomic_xor_16)\nSTRONG_ALIAS(_atomic_xor_ushort,_atomic_xor_16)\n\nATOMIC_OP16_NV(xor, eor)\n\nSYNC_OP16_FETCH(xor, eor)\n\nATOMIC_OP_ALIAS(atomic_xor_16_nv,_atomic_xor_16_nv)\nATOMIC_OP_ALIAS(atomic_xor_ushort_nv,_atomic_xor_16_nv)\nSTRONG_ALIAS(_atomic_xor_ushort_nv,_atomic_xor_16_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_xor_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_xor_16.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_xor_32.S:1", "text": "/* $NetBSD: atomic_xor_32.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP32(xor, eor)\n\nSYNC_FETCH_OP32(xor, eor)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\n\nATOMIC_OP32_NV(xor, eor)\n\nSYNC_OP32_FETCH(xor, eor)\n\nATOMIC_OP_ALIAS(atomic_xor_32_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_uint_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_uint_nv,_atomic_xor_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_xor_32.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/atomic_xor_8.S:1", "text": "/* $NetBSD: atomic_xor_8.S,v 1.2 2021/07/29 10:29:05 skrll Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nATOMIC_OP8(xor, eor)\n\nSYNC_FETCH_OP8(xor, eor)\n\nATOMIC_OP_ALIAS(atomic_xor_8,_atomic_xor_8)\nATOMIC_OP_ALIAS(atomic_xor_uchar,_atomic_xor_8)\nSTRONG_ALIAS(_atomic_xor_uchar,_atomic_xor_8)\n\nATOMIC_OP8_NV(xor, eor)\n\nSYNC_OP8_FETCH(xor, eor)\n\nATOMIC_OP_ALIAS(atomic_xor_8_nv,_atomic_xor_8_nv)\nATOMIC_OP_ALIAS(atomic_xor_uchar_nv,_atomic_xor_8_nv)\nSTRONG_ALIAS(_atomic_xor_uchar_nv,_atomic_xor_8_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/atomic_xor_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/atomic_xor_8.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/membar_ops.S:1", "text": "/* $NetBSD: membar_ops.S,v 1.4 2022/04/09 23:32:51 riastradh Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_membar_producer)\n\tdmb\tishst\t\t/* store-before-store */\n\tret\nEND(_membar_producer)\nATOMIC_OP_ALIAS(membar_producer,_membar_producer)\nATOMIC_OP_ALIAS(membar_write,_membar_producer)\nSTRONG_ALIAS(_membar_write,_membar_producer)\n\nENTRY_NP(_membar_acquire)\n\tdmb\tishld\t\t/* load-before-load/store */\n\tret\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_read,_membar_consumer)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_read,_membar_consumer)\n\nENTRY_NP(_membar_sync)\n\tdmb\tish\n\tret\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nSTRONG_ALIAS(__sync_synchronize,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/membar_ops.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/atomic/membar_ops.S:2", "text": "ENTRY_NP(_membar_acquire)\n\tdmb\tishld\t\t/* load-before-load/store */\n\tret\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_read,_membar_consumer)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_read,_membar_consumer)\n\nENTRY_NP(_membar_sync)\n\tdmb\tish\n\tret\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nSTRONG_ALIAS(__sync_synchronize,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/atomic/membar_ops.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:3", "text": "#define DATA2\t\t\tx10\n#define SRC_ALIGNBIT\t\tx11\t/* (SRC & 7) * 8 */\n#define DST_ALIGNBIT\t\tx12\t/* (DST & 7) * 8 */\n#define SRC_DST_ALIGNBIT\tx13\t/* = SRC_ALIGNBIT - DST_ALIGNBIT */\n#define DST_SRC_ALIGNBIT\tx14\t/* = -SRC_DST_ALIGNBIT */\n\n#define STP_ALIGN\t\t16\t/* align before stp/ldp. 8 or 16 */\n#define SMALLSIZE\t\t32\n\n\t.text\n\t.align\t5\n\n#ifndef NO_OVERLAP\n#ifndef STRICT_ALIGNMENT\nbackward_ignore_align:\n\tprfm\tPLDL1KEEP, [SRC0]\n\tadd\tSRC0, SRC0, LEN\n\tadd\tDST, DST0, LEN\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tcopy_backward\ncopy_backward_small:\n\tcmp\tLEN, #8\n\tbcs\t9f\n\n\t/* 0 <= len < 8 */\n\t/* if (len & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:\n\t/* if (len & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n9:\n\n\tcmp\tLEN, #16\n\tbcs\t9f\n\n\t/* 8 <= len < 16 */\n\t/* *--(uint64_t *)dst = *--(uint64_t *)src; */\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n\t/* if (len & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:4", "text": "ret\n9:\n\n\tcmp\tLEN, #16\n\tbcs\t9f\n\n\t/* 8 <= len < 16 */\n\t/* *--(uint64_t *)dst = *--(uint64_t *)src; */\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n\t/* if (len & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:\n\t/* if (len & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n9:\n\n\t/* 16 <= len < 32 */\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t/* if (len & 8) { *--(uint64_t *)dst = *--(uint64_t *)src; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n1:\n\t/* if (len & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:\n\t/* if (len & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n#endif /* !STRICT_ALIGNMENT */\n\n\t.align\t4\ncopy_backward:\n\t/* DST is not aligned at this point */\n#ifndef STRICT_ALIGNMENT\n\tcmp\tLEN, #512\t/* pre-alignment can be overhead when small */\n\tbcc\t9f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:5", "text": "1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:\n\t/* if (len & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n#endif /* !STRICT_ALIGNMENT */\n\n\t.align\t4\ncopy_backward:\n\t/* DST is not aligned at this point */\n#ifndef STRICT_ALIGNMENT\n\tcmp\tLEN, #512\t/* pre-alignment can be overhead when small */\n\tbcc\t9f\n#endif\n\t/* if (DST & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tDST, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n\tsub\tLEN, LEN, #1\n1:\n\t/* if (DST & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tDST, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n\tsub\tLEN, LEN, #2\n1:\n\t/* if (DST & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tDST, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n\tsub\tLEN, LEN, #4\n1:\n#if (STP_ALIGN > 8)\n\t/* if (DST & 8) { *--(uint64_t *)dst = *--(uint64_t *)src; } */\n\ttbz\tDST, #3, 1f\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n\tsub\tLEN, LEN, #8\n1:\n#endif /* (STP_ALIGN > 8) */\n9:\n\nbackward_copy1k:\n\t/* while (len >= 1024) */\n\t/* { src -= 1024; dst -= 1024; copy1024(dst, src); len -= 1024; } */\n\tcmp\tLEN, #1024\n\tblo\t9f\n1:\n\tsub\tLEN, LEN, #1024\n\t.rept\t(1024 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\t/* *--dst = *--src; */\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:6", "text": "/* if (DST & 8) { *--(uint64_t *)dst = *--(uint64_t *)src; } */\n\ttbz\tDST, #3, 1f\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n\tsub\tLEN, LEN, #8\n1:\n#endif /* (STP_ALIGN > 8) */\n9:\n\nbackward_copy1k:\n\t/* while (len >= 1024) */\n\t/* { src -= 1024; dst -= 1024; copy1024(dst, src); len -= 1024; } */\n\tcmp\tLEN, #1024\n\tblo\t9f\n1:\n\tsub\tLEN, LEN, #1024\n\t.rept\t(1024 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\t/* *--dst = *--src; */\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n\tcmp\tLEN, #1024\n\tbhs\t1b\n9:\n\n\t/* if (len & 512) { src -= 512; dst -= 512; copy512(dst, src); } */\n\ttbz\tLEN, #9, 1f\n\t.rept\t(512 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 256) { src -= 256; dst -= 256; copy256(dst, src); } */\n\ttbz\tLEN, #8, 1f\n\t.rept\t(256 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 128) { src -= 128; dst -= 128; copy128(dst, src); } */\n\ttbz\tLEN, #7, 1f\n\t.rept\t(128 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 64) { src -= 64; dst -= 64; copy64(dst, src); } */\n\ttbz\tLEN, #6, 1f\n\t.rept\t(64 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 32) { src -= 32; dst -= 32; copy32(dst, src); } */\n\ttbz\tLEN, #5, 1f\n\t.rept\t(32 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 16) { *--(uint128_t *)dst = *--(uint128_t *)src; } */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:7", "text": ".rept\t(128 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 64) { src -= 64; dst -= 64; copy64(dst, src); } */\n\ttbz\tLEN, #6, 1f\n\t.rept\t(64 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 32) { src -= 32; dst -= 32; copy32(dst, src); } */\n\ttbz\tLEN, #5, 1f\n\t.rept\t(32 / 16)\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n\t.endr\n1:\n\t/* if (len & 16) { *--(uint128_t *)dst = *--(uint128_t *)src; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n1:\n\t/* if (len & 8) { *--(uint64_t *)dst = *--(uint64_t *)src; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n1:\n\t/* if (len & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:\n\t/* if (len & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n#endif /* !NO_OVERLAP */\n\n\n#if defined(STRICT_ALIGNMENT) && !defined(NO_OVERLAP)\n\t.align\t5\nbackward_copy:\n\tprfm\tPLDL1KEEP, [SRC0]\n\tadd\tDST, DST0, LEN\n\tadd\tSRC0, SRC0, LEN\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tstrict_backward\n\n\tcmp\tLEN, #10\n\tbcs\t9f\nbackward_tiny:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:8", "text": "tbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n#endif /* !NO_OVERLAP */\n\n\n#if defined(STRICT_ALIGNMENT) && !defined(NO_OVERLAP)\n\t.align\t5\nbackward_copy:\n\tprfm\tPLDL1KEEP, [SRC0]\n\tadd\tDST, DST0, LEN\n\tadd\tSRC0, SRC0, LEN\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tstrict_backward\n\n\tcmp\tLEN, #10\n\tbcs\t9f\nbackward_tiny:\n\t/* copy 1-10 bytes */\n1:\tsub\tLEN, LEN, #1\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n\tcbz\tLEN, 1b\n\tret\n9:\n\t/* length is small(<32), and src or dst may be unaligned */\n\teor\tTMP_X, SRC0, DST\n\tands\tTMP_X, TMP_X, #7\n\tbne\tnotaligned_backward_small\n\nsamealign_backward_small:\n\t/* if (dst & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tDST, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n\tsub\tLEN, LEN, #1\n1:\n\t/* if (dst & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tDST, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n\tsub\tLEN, LEN, #2\n1:\n\t/* if (dst & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tDST, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n\tsub\tLEN, LEN, #4\n1:\n\t/* if (len & 16) { *--(uint128_t *)dst = *--(uint128_t *)src; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n1:\n\t/* if (len & 8) { *--(uint64_t *)dst = *--(uint64_t *)src; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:9", "text": "tbz\tDST, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n\tsub\tLEN, LEN, #2\n1:\n\t/* if (dst & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tDST, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n\tsub\tLEN, LEN, #4\n1:\n\t/* if (len & 16) { *--(uint128_t *)dst = *--(uint128_t *)src; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0, #-16]!\n\tstp\tDATA0, DATA1, [DST, #-16]!\n1:\n\t/* if (len & 8) { *--(uint64_t *)dst = *--(uint64_t *)src; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0, #-8]!\n\tstr\tTMP_X, [DST, #-8]!\n1:\n\t/* if (len & 4) { *--(uint32_t *)dst = *--(uint32_t *)src; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0, #-4]!\n\tstr\tTMP_Xw, [DST, #-4]!\n1:\n\t/* if (len & 2) { *--(uint16_t *)dst = *--(uint16_t *)src; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0, #-2]!\n\tstrh\tTMP_Xw, [DST, #-2]!\n1:\n\t/* if (len & 1) { *--(uint8_t *)dst = *--(uint8_t *)src; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\n1:\n\tret\n\nnotaligned_backward_small:\n\t/* length is small, and src or dst may be unaligned */\n\tsub\tTMP_S, SRC0, LEN\t/* tmp_s = src - len */\n1:\t\t\t\t\t/* do { */\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\t/*  *(char *)dst++ = *(char *)src++ */\n\tcmp\tTMP_S, SRC0\t\t/* while (tmp_s < src) */\n\tblo\t1b\n\tret\n\nstrict_backward:\n\t/* src or dst may be unaligned */\n\tand\tSRC_ALIGNBIT, SRC0, #7\n\tand\tDST_ALIGNBIT, DST, #7\n\tlsl\tSRC_ALIGNBIT, SRC_ALIGNBIT, #3\n\tlsl\tDST_ALIGNBIT, DST_ALIGNBIT, #3\n\tsub\tSRC_DST_ALIGNBIT, SRC_ALIGNBIT, DST_ALIGNBIT\n\tcbz\tSRC_DST_ALIGNBIT, copy_backward\t/* same alignment? */\n\n\tand\tSRC, SRC0, #~7\n\tand\tDST, DST, #~7\n\tneg\tDST_SRC_ALIGNBIT, SRC_DST_ALIGNBIT", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:10", "text": "sub\tTMP_S, SRC0, LEN\t/* tmp_s = src - len */\n1:\t\t\t\t\t/* do { */\n\tldrb\tTMP_Xw, [SRC0, #-1]!\n\tstrb\tTMP_Xw, [DST, #-1]!\t/*  *(char *)dst++ = *(char *)src++ */\n\tcmp\tTMP_S, SRC0\t\t/* while (tmp_s < src) */\n\tblo\t1b\n\tret\n\nstrict_backward:\n\t/* src or dst may be unaligned */\n\tand\tSRC_ALIGNBIT, SRC0, #7\n\tand\tDST_ALIGNBIT, DST, #7\n\tlsl\tSRC_ALIGNBIT, SRC_ALIGNBIT, #3\n\tlsl\tDST_ALIGNBIT, DST_ALIGNBIT, #3\n\tsub\tSRC_DST_ALIGNBIT, SRC_ALIGNBIT, DST_ALIGNBIT\n\tcbz\tSRC_DST_ALIGNBIT, copy_backward\t/* same alignment? */\n\n\tand\tSRC, SRC0, #~7\n\tand\tDST, DST, #~7\n\tneg\tDST_SRC_ALIGNBIT, SRC_DST_ALIGNBIT\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\ttbz\tSRC_DST_ALIGNBIT, #63, 5f\t/* if(SRC_DST_ALIGNBIT < 0) { */\n\n\tcmp\tSRC, SRC0\t\t\t/* don't access out of range */\n\tbeq\t1f\n\tldr\tDATA1, [SRC]\n1:\n\tldr\tDATA0, [SRC, #-8]!\n\n\tlsl\tDATA1, DATA1, DST_SRC_ALIGNBIT\t/* data1 =                    */\n\tlsr\tTMP_X, DATA0, SRC_DST_ALIGNBIT\t/* (data1<<dst_src_alignbit)| */\n\torr\tDATA1, DATA1, TMP_X\t\t/* (data0<<src_dst_alignbit); */\n\n\tb\t9f\t\t\t\t/* }                          */\n5:\t\t\t\t\t\t/* else {                     */\n\tldr\tDATA0, [SRC]\t\t\t/*  data0 = *src;             */\n\tlsr\tDATA1, DATA0, SRC_DST_ALIGNBIT\t/*  data1=data0>>src_dst_abit;*/\n9:\t\t\t\t\t\t/* }                          */\n\n\tcbz\tDST_ALIGNBIT, 9f\t/* if (dst_alignbit != 0) {           */\n\tmov\tTMP_D, DST\t\t/*   tmp_d = dst;                     */\n\n\ttbz\tDST_ALIGNBIT, #(2+3), 1f /*   if (dst_ailgnbit & (4<<3)) {    */\n\tstr\tDATA1w, [TMP_D], #4\t/*      *(uint32_t *)tmp_d++ = data1; */\n\tlsr\tDATA1, DATA1, #32\t/*      data1 >>= 32;                 */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(1+3), 1f /*   if (dst_ailgnbit & (2<<3)) {    */\n\tstrh\tDATA1w, [TMP_D], #2\t/*      *(uint16_t *)tmp_d++ = data1; */\n\tlsr\tDATA1, DATA1, #16\t/*      data1 >>= 16;                 */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(0+3), 1f /*   if (dst_alignbit & (1<<3)) {    */\n\tstrb\tDATA1w, [TMP_D]\t\t/*      *(uint8_t *)tmp_d = data1;    */\n1:\t\t\t\t\t/*    }                               */\n\n\tsub\tLEN, LEN, DST_ALIGNBIT, lsr #3\t/* len -=(dst_alignbit>>3);   */\n9:\t\t\t\t\t/* }                                  */\n#else /* BYTE_ORDER */\n\ttbz\tSRC_DST_ALIGNBIT, #63, 5f\t/* if(SRC_DST_ALIGNBIT < 0) { */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:11", "text": "cbz\tDST_ALIGNBIT, 9f\t/* if (dst_alignbit != 0) {           */\n\tmov\tTMP_D, DST\t\t/*   tmp_d = dst;                     */\n\n\ttbz\tDST_ALIGNBIT, #(2+3), 1f /*   if (dst_ailgnbit & (4<<3)) {    */\n\tstr\tDATA1w, [TMP_D], #4\t/*      *(uint32_t *)tmp_d++ = data1; */\n\tlsr\tDATA1, DATA1, #32\t/*      data1 >>= 32;                 */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(1+3), 1f /*   if (dst_ailgnbit & (2<<3)) {    */\n\tstrh\tDATA1w, [TMP_D], #2\t/*      *(uint16_t *)tmp_d++ = data1; */\n\tlsr\tDATA1, DATA1, #16\t/*      data1 >>= 16;                 */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(0+3), 1f /*   if (dst_alignbit & (1<<3)) {    */\n\tstrb\tDATA1w, [TMP_D]\t\t/*      *(uint8_t *)tmp_d = data1;    */\n1:\t\t\t\t\t/*    }                               */\n\n\tsub\tLEN, LEN, DST_ALIGNBIT, lsr #3\t/* len -=(dst_alignbit>>3);   */\n9:\t\t\t\t\t/* }                                  */\n#else /* BYTE_ORDER */\n\ttbz\tSRC_DST_ALIGNBIT, #63, 5f\t/* if(SRC_DST_ALIGNBIT < 0) { */\n\n\tcmp\tSRC, SRC0\t\t\t/* don't access out of range */\n\tbeq\t1f\n\tldr\tDATA1, [SRC]\n1:\n\tldr\tDATA0, [SRC, #-8]!\n\n\tlsr\tDATA1, DATA1, DST_SRC_ALIGNBIT\t/* data1 =                    */\n\tlsl\tTMP_X, DATA0, SRC_DST_ALIGNBIT\t/* (data1>>dst_src_alignbit)| */\n\torr\tDATA1, DATA1, TMP_X\t\t/* (data0<<src_dst_alignbit); */\n\n\tb\t9f\t\t\t\t/* }                          */\n5:\t\t\t\t\t\t/* else {                     */\n\tldr\tDATA0, [SRC]\t\t\t/*  data0 = *src;             */\n\tlsr\tDATA1, DATA0, DST_SRC_ALIGNBIT\t/*  data1=data0<<dst_src_abit;*/\n9:\t\t\t\t\t\t/* }                          */\n\n\tcbz\tDST_ALIGNBIT, 9f\t/* if (dst_alignbit != 0) {           */\n\tmov\tTMP_D, DST\t\t/*   tmp_d = dst;                     */\n\n\ttbz\tDST_ALIGNBIT, #(2+3), 1f /*   if (dst_ailgnbit & (4<<3)) {    */\n\tlsr\tTMP_X, DATA1, #32\t/*      x = data1 >> 32;              */\n\tstr\tTMP_Xw, [TMP_D], #4\t/*      *(uint32_t *)tmp_d++ = x;     */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(1+3), 1f /*   if (dst_ailgnbit & (2<<3)) {    */\n\tlsr\tTMP_X, DATA1, #16\t/*      x = data1 >> 16;              */\n\tstrh\tTMP_Xw, [TMP_D], #2\t/*      *(uint16_t *)tmp_d++ = x;     */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(0+3), 1f /*   if (dst_alignbit & (1<<3)) {    */\n\tlsr\tTMP_X, DATA1, #8\t/*      x = data1 >> 8;               */\n\tstrb\tTMP_Xw, [TMP_D], #1\t/*      *(uint8_t *)tmp_d++ = x;      */\n1:\t\t\t\t\t/*    }                               */\n\n\tsub\tLEN, LEN, DST_ALIGNBIT, lsr #3\t/* len -=(dst_alignbit>>3);   */\n9:\t\t\t\t\t/* }                                  */\n#endif /* BYTE_ORDER */\n\n\nbackward_shifting_copy_loop:\n\tldp\tDATA2, DATA1, [SRC, #-16]!\n#if BYTE_ORDER == LITTLE_ENDIAN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:12", "text": "lsr\tTMP_X, DATA1, #32\t/*      x = data1 >> 32;              */\n\tstr\tTMP_Xw, [TMP_D], #4\t/*      *(uint32_t *)tmp_d++ = x;     */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(1+3), 1f /*   if (dst_ailgnbit & (2<<3)) {    */\n\tlsr\tTMP_X, DATA1, #16\t/*      x = data1 >> 16;              */\n\tstrh\tTMP_Xw, [TMP_D], #2\t/*      *(uint16_t *)tmp_d++ = x;     */\n1:\t\t\t\t\t/*    }                               */\n\ttbz\tDST_ALIGNBIT, #(0+3), 1f /*   if (dst_alignbit & (1<<3)) {    */\n\tlsr\tTMP_X, DATA1, #8\t/*      x = data1 >> 8;               */\n\tstrb\tTMP_Xw, [TMP_D], #1\t/*      *(uint8_t *)tmp_d++ = x;      */\n1:\t\t\t\t\t/*    }                               */\n\n\tsub\tLEN, LEN, DST_ALIGNBIT, lsr #3\t/* len -=(dst_alignbit>>3);   */\n9:\t\t\t\t\t/* }                                  */\n#endif /* BYTE_ORDER */\n\n\nbackward_shifting_copy_loop:\n\tldp\tDATA2, DATA1, [SRC, #-16]!\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data1 >> src_dst_alignbit) | (data0 << dst_src_alignbit); */\n\tlsl\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsr\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n\t/* data1 = (data2 >> src_dst_alignbit) | (data1 << dst_src_alignbit); */\n\tlsl\tDATA1, DATA1, DST_SRC_ALIGNBIT\n\tlsr\tTMP_X, DATA2, SRC_DST_ALIGNBIT\n\torr\tDATA1, DATA1, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data1 << src_dst_alignbit) | (data0 >> dst_src_alignbit); */\n\tlsr\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsl\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n\t/* data1 = (data2 << src_dst_alignbit) | (data1 >> dst_src_alignbit); */\n\tlsr\tDATA1, DATA1, DST_SRC_ALIGNBIT\n\tlsl\tTMP_X, DATA2, SRC_DST_ALIGNBIT\n\torr\tDATA1, DATA1, TMP_X\n#endif /* BYTE_ORDER */\n\tstp\tDATA1, DATA0, [DST, #-16]!\n\tmov\tDATA0, DATA2\n\tsub\tLEN, LEN, #16\n\tcmp\tLEN, #16\n\tbhs\tbackward_shifting_copy_loop\n\n\n\t/* write 8 bytes */\n\ttbz\tLEN, #3, 9f\n\n\tldr\tDATA1, [SRC, #-8]!\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data1 >> src_dst_alignbit) | (data0 << dst_src_alignbit); */\n\tlsl\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsr\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data1 << src_dst_alignbit) | (data0 >> dst_src_alignbit); */\n\tlsr\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsl\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:13", "text": "sub\tLEN, LEN, #16\n\tcmp\tLEN, #16\n\tbhs\tbackward_shifting_copy_loop\n\n\n\t/* write 8 bytes */\n\ttbz\tLEN, #3, 9f\n\n\tldr\tDATA1, [SRC, #-8]!\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data1 >> src_dst_alignbit) | (data0 << dst_src_alignbit); */\n\tlsl\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsr\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data1 << src_dst_alignbit) | (data0 >> dst_src_alignbit); */\n\tlsr\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsl\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */\n\tstr\tDATA0, [DST, #-8]!\n\tmov\tDATA0, DATA1\n\tsub\tLEN, LEN, #8\n9:\n\n\tcbz\tLEN, backward_shifting_copy_done\n\n\t/* copy last 1-7 bytes */\n\tand\tTMP_X, SRC_DST_ALIGNBIT, #63\n\tcmp\tLEN, TMP_X, lsr #3\n\tbls\t1f\n\tldr\tDATA1, [SRC, #-8]!\t/* don't access out of range */\n1:\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data1 >> src_dst_alignbit) | (data0 << dst_src_alignbit); */\n\tlsl\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsr\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data1 << src_dst_alignbit) | (data0 >> dst_src_alignbit); */\n\tlsr\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsl\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\ttbz\tLEN, #2, 1f\n\tror\tDATA0, DATA0, #32\n\tstr\tDATA0w, [DST, #-4]!\n1:\n\ttbz\tLEN, #1, 1f\n\tror\tDATA0, DATA0, #48\n\tstrh\tDATA0w, [DST, #-2]!\n1:\n\ttbz\tLEN, #0, 1f\n\tror\tDATA0, DATA0, #56\n\tstrb\tDATA0w, [DST, #-1]!\n1:\n#else /* BYTE_ORDER */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:14", "text": "/* data0 = (data1 << src_dst_alignbit) | (data0 >> dst_src_alignbit); */\n\tlsr\tDATA0, DATA0, DST_SRC_ALIGNBIT\n\tlsl\tTMP_X, DATA1, SRC_DST_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\ttbz\tLEN, #2, 1f\n\tror\tDATA0, DATA0, #32\n\tstr\tDATA0w, [DST, #-4]!\n1:\n\ttbz\tLEN, #1, 1f\n\tror\tDATA0, DATA0, #48\n\tstrh\tDATA0w, [DST, #-2]!\n1:\n\ttbz\tLEN, #0, 1f\n\tror\tDATA0, DATA0, #56\n\tstrb\tDATA0w, [DST, #-1]!\n1:\n#else /* BYTE_ORDER */\n\ttbz\tLEN, #2, 1f\n\tstr\tDATA0w, [DST, #-4]!\n\tlsr\tDATA0, DATA0, #32\n1:\n\ttbz\tLEN, #1, 1f\n\tstrh\tDATA0w, [DST, #-2]!\n\tlsr\tDATA0, DATA0, #16\n1:\n\ttbz\tLEN, #0, 1f\n\tstrb\tDATA0w, [DST, #-1]!\n1:\n#endif /* BYTE_ORDER */\nbackward_shifting_copy_done:\n\tret\n#endif /* defined(STRICT_ALIGNMENT) && !defined(NO_OVERLAP) */\n\n\n\t.align\t5\nENTRY(FUNCTION)\n#ifdef STRICT_ALIGNMENT\n\tcbz\tLEN, done\n#ifndef NO_OVERLAP\n\tcmp\tSRC0, DST0\n\tbeq\tdone\n\tbcc\tbackward_copy\n#endif /* NO_OVERLAP */\n\tmov\tDST, DST0\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tstrict_forward\n\n\tcmp\tLEN, #10\n\tbcs\t9f\nforward_tiny:\n\t/* copy 1-10 bytes */\n1:\tsub\tLEN, LEN, #1\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n\tcbz\tLEN, 1b\n\tret\n9:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:15", "text": "cbz\tLEN, done\n#ifndef NO_OVERLAP\n\tcmp\tSRC0, DST0\n\tbeq\tdone\n\tbcc\tbackward_copy\n#endif /* NO_OVERLAP */\n\tmov\tDST, DST0\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tstrict_forward\n\n\tcmp\tLEN, #10\n\tbcs\t9f\nforward_tiny:\n\t/* copy 1-10 bytes */\n1:\tsub\tLEN, LEN, #1\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n\tcbz\tLEN, 1b\n\tret\n9:\n\t/* length is small(<32), and src or dst may be unaligned */\n\teor\tTMP_X, SRC0, DST0\n\tands\tTMP_X, TMP_X, #7\n\tbne\tnotaligned_forward_small\nsamealign_forward_small:\n\t/* if (dst & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tDST, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n\tsub\tLEN, LEN, #1\n1:\n\t/* if (dst & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tDST, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n\tsub\tLEN, LEN, #2\n1:\n\t/* if (dst & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tDST, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n\tsub\tLEN, LEN, #4\n1:\n\t/* if (len & 16) { *(uint128_t *)dst++ = *(uint128_t *)src++; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n1:\n\t/* if (len & 8) { *(uint64_t *)dst++ = *(uint64_t *)src++; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n1:\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:16", "text": "str\tTMP_Xw, [DST], #4\n\tsub\tLEN, LEN, #4\n1:\n\t/* if (len & 16) { *(uint128_t *)dst++ = *(uint128_t *)src++; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n1:\n\t/* if (len & 8) { *(uint64_t *)dst++ = *(uint64_t *)src++; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n1:\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n1:\n\tret\n\nnotaligned_forward_small:\n\t/* src and dst are not aligned... */\n\tprfm\tPLDL1KEEP, [SRC0]\n\tprfm\tPLDL1KEEP, [SRC0, #8]\n\tprfm\tPLDL1KEEP, [SRC0, #16]\n\tadd\tTMP_S, SRC0, LEN\t/* tmp_s = src + len */\n1:\t\t\t\t\t/* do { */\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\t/*  *(char *)dst++ = *(char *)src++ */\n\tcmp\tSRC0, TMP_S\t\t/* while (src < tmp_s); */\n\tblo\t1b\n\tret\n\nstrict_forward:\n\t/* src or dst may be unaligned */\n\tand\tSRC_ALIGNBIT, SRC0, #7\n\tand\tDST_ALIGNBIT, DST0, #7\n\tlsl\tSRC_ALIGNBIT, SRC_ALIGNBIT, #3\n\tlsl\tDST_ALIGNBIT, DST_ALIGNBIT, #3\n\tsub\tSRC_DST_ALIGNBIT, SRC_ALIGNBIT, DST_ALIGNBIT\n\tcbz\tSRC_DST_ALIGNBIT, copy_forward\t/* same alignment? */\n\n\tand\tSRC, SRC0, #~7\n\tand\tDST, DST0, #~7\n\tneg\tDST_SRC_ALIGNBIT, SRC_DST_ALIGNBIT\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\ttbz\tDST_SRC_ALIGNBIT, #63, 5f\t/* if(DST_SRC_ALIGNBIT < 0) { */\n\tldp\tDATA1, DATA0, [SRC], #16\n\tneg\tTMP_X, SRC_ALIGNBIT", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:17", "text": "blo\t1b\n\tret\n\nstrict_forward:\n\t/* src or dst may be unaligned */\n\tand\tSRC_ALIGNBIT, SRC0, #7\n\tand\tDST_ALIGNBIT, DST0, #7\n\tlsl\tSRC_ALIGNBIT, SRC_ALIGNBIT, #3\n\tlsl\tDST_ALIGNBIT, DST_ALIGNBIT, #3\n\tsub\tSRC_DST_ALIGNBIT, SRC_ALIGNBIT, DST_ALIGNBIT\n\tcbz\tSRC_DST_ALIGNBIT, copy_forward\t/* same alignment? */\n\n\tand\tSRC, SRC0, #~7\n\tand\tDST, DST0, #~7\n\tneg\tDST_SRC_ALIGNBIT, SRC_DST_ALIGNBIT\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\ttbz\tDST_SRC_ALIGNBIT, #63, 5f\t/* if(DST_SRC_ALIGNBIT < 0) { */\n\tldp\tDATA1, DATA0, [SRC], #16\n\tneg\tTMP_X, SRC_ALIGNBIT\n\tlsr\tDATA1, DATA1, SRC_ALIGNBIT\t/* data1 =                    */\n\tlsl\tTMP_X, DATA0, TMP_X\t\t/*  (data1 >> src_alignbit) | */\n\torr\tDATA1, DATA1, TMP_X\t\t/*  (data0 << -src_alignbit); */\n\tb\t9f\n5:\n\tldr\tDATA0, [SRC], #8\n\tlsr\tDATA1, DATA0, SRC_ALIGNBIT\n9:\n\n\tcbz\tDST_ALIGNBIT, 5f\n\tmov\tTMP_D, DST0\n\t/* if (tmp_d & 1) { *(uint8_t *)tmp_d++ = data1; } */\n\ttbz\tTMP_D, #0, 1f\n\tstrb\tDATA1w, [TMP_D], #1\n\tlsr\tDATA1, DATA1, #8\n1:\n\t/* if (tmp_d & 2) { *(uint16_t *)tmp_d++ = data1; } */\n\ttbz\tTMP_D, #1, 1f\n\tstrh\tDATA1w, [TMP_D], #2\n\tlsr\tDATA1, DATA1, #16\n1:\n\t/* if (tmp-d & 4) { *(uint32_t *)tmp_d++ = data1; } */\n\ttbz\tTMP_D, #2, 1f\n\tstr\tDATA1w, [TMP_D], #4\n1:\n\tadd\tDST, DST, #8\n\tb\t9f\n5:\n\tstr\tDATA1, [DST], #8\n9:\n\tsub\tLEN, LEN, #8\n\tadd\tLEN, LEN, DST_ALIGNBIT, lsr #3\n#else /* BYTE_ORDER */\n\ttbz\tDST_SRC_ALIGNBIT, #63, 5f\t/* if(DST_SRC_ALIGNBIT < 0) { */\n\tldp\tDATA1, DATA0, [SRC], #16\n\tneg\tTMP_X, SRC_ALIGNBIT\n\tlsl\tDATA1, DATA1, SRC_ALIGNBIT\t/* data1 =                    */\n\tlsr\tTMP_X, DATA0, TMP_X\t\t/*  (data1 << src_alignbit) | */\n\torr\tDATA1, DATA1, TMP_X\t\t/*  (data0 >> -src_alignbit); */\n\tb\t9f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:18", "text": "1:\n\t/* if (tmp-d & 4) { *(uint32_t *)tmp_d++ = data1; } */\n\ttbz\tTMP_D, #2, 1f\n\tstr\tDATA1w, [TMP_D], #4\n1:\n\tadd\tDST, DST, #8\n\tb\t9f\n5:\n\tstr\tDATA1, [DST], #8\n9:\n\tsub\tLEN, LEN, #8\n\tadd\tLEN, LEN, DST_ALIGNBIT, lsr #3\n#else /* BYTE_ORDER */\n\ttbz\tDST_SRC_ALIGNBIT, #63, 5f\t/* if(DST_SRC_ALIGNBIT < 0) { */\n\tldp\tDATA1, DATA0, [SRC], #16\n\tneg\tTMP_X, SRC_ALIGNBIT\n\tlsl\tDATA1, DATA1, SRC_ALIGNBIT\t/* data1 =                    */\n\tlsr\tTMP_X, DATA0, TMP_X\t\t/*  (data1 << src_alignbit) | */\n\torr\tDATA1, DATA1, TMP_X\t\t/*  (data0 >> -src_alignbit); */\n\tb\t9f\n5:\n\tldr\tDATA0, [SRC], #8\n\tlsl\tDATA1, DATA0, SRC_ALIGNBIT\n9:\n\n\tcbz\tDST_ALIGNBIT, 5f\n\tmov\tTMP_D, DST0\n\t/* if (tmp_d & 1) { *(uint8_t *)tmp_d++ = data1 >> 56; } */\n\ttbz\tTMP_D, #0, 1f\n\tlsr\tTMP_X, DATA1, #56\n\tstrb\tTMP_Xw, [TMP_D], #1\n1:\n\t/* if (tmp_d & 2) { *(uint16_t *)tmp_d++ = data1 >> 48; } */\n\ttbz\tTMP_D, #1, 1f\n\tlsr\tTMP_X, DATA1, #48\n\tstrh\tTMP_Xw, [TMP_D], #2\n1:\n\t/* if (tmp-d & 4) { *(uint32_t *)tmp_d++ = data1 >> 32; } */\n\ttbz\tTMP_D, #2, 1f\n\tlsr\tTMP_X, DATA1, #32\n\tstr\tTMP_Xw, [TMP_D], #4\n1:\n\tadd\tDST, DST, #8\n\tb\t9f\n5:\n\tstr\tDATA1, [DST], #8\n9:\n\tsub\tLEN, LEN, #8\n\tadd\tLEN, LEN, DST_ALIGNBIT, lsr #3\n#endif /* BYTE_ORDER */\n\nshifting_copy_loop:\n\tldp\tDATA1, DATA2, [SRC], #16\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data0 >> src_dst_alignbit) | (data1 << dst_src_alignbit) */\n\tlsr\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsl\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n\t/* data1 = (data1 >> src_dst_alignbit) | (data2 << dst_src_alignbit) */\n\tlsr\tDATA1, DATA1, SRC_DST_ALIGNBIT", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:19", "text": "str\tTMP_Xw, [TMP_D], #4\n1:\n\tadd\tDST, DST, #8\n\tb\t9f\n5:\n\tstr\tDATA1, [DST], #8\n9:\n\tsub\tLEN, LEN, #8\n\tadd\tLEN, LEN, DST_ALIGNBIT, lsr #3\n#endif /* BYTE_ORDER */\n\nshifting_copy_loop:\n\tldp\tDATA1, DATA2, [SRC], #16\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data0 >> src_dst_alignbit) | (data1 << dst_src_alignbit) */\n\tlsr\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsl\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n\t/* data1 = (data1 >> src_dst_alignbit) | (data2 << dst_src_alignbit) */\n\tlsr\tDATA1, DATA1, SRC_DST_ALIGNBIT\n\tlsl\tTMP_X, DATA2, DST_SRC_ALIGNBIT\n\torr\tDATA1, DATA1, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data0 << src_dst_alignbit) | (data1 >> dst_src_alignbit) */\n\tlsl\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsr\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n\t/* data1 = (data1 << src_dst_alignbit) | (data2 >> dst_src_alignbit) */\n\tlsl\tDATA1, DATA1, SRC_DST_ALIGNBIT\n\tlsr\tTMP_X, DATA2, DST_SRC_ALIGNBIT\n\torr\tDATA1, DATA1, TMP_X\n#endif /* BYTE_ORDER */\n\tstp\tDATA0, DATA1, [DST], #16\n\tmov\tDATA0, DATA2\n\tsub\tLEN, LEN, #16\n\tcmp\tLEN, #16\n\tbhs\tshifting_copy_loop\n\n\n\t/* write 8 bytes */\n\ttbz\tLEN, #3, 9f\n\tldr\tDATA1, [SRC], #8\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data0 >> src_dst_alignbit) | (data1 << dst_src_alignbit) */\n\tlsr\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsl\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data0 << src_dst_alignbit) | (data1 >> dst_src_alignbit) */\n\tlsl\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsr\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */\n\tstr\tDATA0, [DST], #8\n\tmov\tDATA0, DATA1\n\tsub\tLEN, LEN, #8\n9:\n\n\tcbz\tLEN, shifting_copy_done", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:20", "text": "tbz\tLEN, #3, 9f\n\tldr\tDATA1, [SRC], #8\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data0 >> src_dst_alignbit) | (data1 << dst_src_alignbit) */\n\tlsr\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsl\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data0 << src_dst_alignbit) | (data1 >> dst_src_alignbit) */\n\tlsl\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsr\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */\n\tstr\tDATA0, [DST], #8\n\tmov\tDATA0, DATA1\n\tsub\tLEN, LEN, #8\n9:\n\n\tcbz\tLEN, shifting_copy_done\n\n\t/* copy last 1-7 bytes */\n\tand\tTMP_X, DST_SRC_ALIGNBIT, #63\n\tcmp\tLEN, TMP_X, lsr #3\n\tbls\t1f\n\tldr\tDATA1, [SRC], #8\t/* don't access out of range */\n1:\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* data0 = (data0 >> src_dst_alignbit) | (data1 << dst_src_alignbit) */\n\tlsr\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsl\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#else /* BYTE_ORDER */\n\t/* data0 = (data0 << src_dst_alignbit) | (data1 >> dst_src_alignbit) */\n\tlsl\tDATA0, DATA0, SRC_DST_ALIGNBIT\n\tlsr\tTMP_X, DATA1, DST_SRC_ALIGNBIT\n\torr\tDATA0, DATA0, TMP_X\n#endif /* BYTE_ORDER */\n\n#if BYTE_ORDER == LITTLE_ENDIAN\n\t/* if (len & 4) { *(uint32_t *)dst++ = data0; } */\n\ttbz\tLEN, #2, 1f\n\tstr\tDATA0w, [DST], #4\n\tlsr\tDATA0, DATA0, #32\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = data0; } */\n\ttbz\tLEN, #1, 1f\n\tstrh\tDATA0w, [DST], #2\n\tlsr\tDATA0, DATA0, #16\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = data0; } */\n\ttbz\tLEN, #0, 1f\n\tstrb\tDATA0w, [DST], #1\n1:\n#else /* BYTE_ORDER */\n\t/* if (len & 4) { *(uint32_t *)dst++ = data0 >> 32; } */\n\ttbz\tLEN, #2, 1f\n\tlsr\tTMP_X, DATA0, #32\n\tstr\tTMP_Xw, [DST], #4\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:21", "text": "/* if (len & 4) { *(uint32_t *)dst++ = data0; } */\n\ttbz\tLEN, #2, 1f\n\tstr\tDATA0w, [DST], #4\n\tlsr\tDATA0, DATA0, #32\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = data0; } */\n\ttbz\tLEN, #1, 1f\n\tstrh\tDATA0w, [DST], #2\n\tlsr\tDATA0, DATA0, #16\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = data0; } */\n\ttbz\tLEN, #0, 1f\n\tstrb\tDATA0w, [DST], #1\n1:\n#else /* BYTE_ORDER */\n\t/* if (len & 4) { *(uint32_t *)dst++ = data0 >> 32; } */\n\ttbz\tLEN, #2, 1f\n\tlsr\tTMP_X, DATA0, #32\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = data0 >> 16; } */\n\ttbz\tLEN, #1, 1f\n\tlsr\tTMP_X, DATA0, #16\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = data0 >> 8; } */\n\ttbz\tLEN, #0, 1f\n\tlsr\tTMP_X, DATA0, #8\n\tstrb\tTMP_Xw, [DST], #1\n1:\n#endif /* BYTE_ORDER */\nshifting_copy_done:\n\tret\n\n#else /* STRICT_ALIGNMENT */\n#ifndef NO_OVERLAP\n\tcbz\tLEN, done\n\tcmp\tSRC0, DST0\n\tbeq\tdone\n\tbcc\tbackward_ignore_align\n#endif /* NO_OVERLAP */\n\n\tprfm\tPLDL1KEEP, [SRC0]\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tcopy_forward\n\tmov\tDST, DST0\n\ncopy_forward_small:\n\tcmp\tLEN, #8\n\tbcs\t9f\n\n\t/* 0 <= len < 8 */\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:22", "text": "#endif /* NO_OVERLAP */\n\n\tprfm\tPLDL1KEEP, [SRC0]\n\tcmp\tLEN, #SMALLSIZE\n\tbcs\tcopy_forward\n\tmov\tDST, DST0\n\ncopy_forward_small:\n\tcmp\tLEN, #8\n\tbcs\t9f\n\n\t/* 0 <= len < 8 */\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n1:\n\tret\n9:\n\n\tprfm\tPLDL1KEEP, [SRC0, #8]\n\tcmp\tLEN, #16\n\tbcs\t9f\n\n\t/* 8 <= len < 16 */\n\t/* *(uint64_t *)dst++ = *(uint64_t *)src++; */\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n1:\n\tret\n9:\n\n\t/* 16 <= len < 32 */\n\tprfm\tPLDL1KEEP, [SRC0, 16]\n\tprfm\tPLDL1KEEP, [SRC0, 24]\n\tldp\tDATA0, DATA1, [SRC0], #16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:23", "text": "ldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n1:\n\tret\n9:\n\n\t/* 16 <= len < 32 */\n\tprfm\tPLDL1KEEP, [SRC0, 16]\n\tprfm\tPLDL1KEEP, [SRC0, 24]\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t/* if (len & 8) { *(uint64_t *)dst++ = *(uint64_t *)src++; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n1:\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n1:\n\tret\n#endif /* !STRICT_ALIGNMENT */\n\n\t.align\t4\ncopy_forward:\n\t/* DST is not aligned at this point */\n\tmov\tDST, DST0\n#ifndef STRICT_ALIGNMENT\n\tcmp\tLEN, #512\t/* pre-alignment can be overhead when small */\n\tbcc\t9f\n#endif /* STRICT_ALIGNMENT */\n\t/* if (DST & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tDST, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n\tsub\tLEN, LEN, #1\n1:\n\t/* if (DST & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tDST, #1, 1f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:24", "text": "1:\n\tret\n#endif /* !STRICT_ALIGNMENT */\n\n\t.align\t4\ncopy_forward:\n\t/* DST is not aligned at this point */\n\tmov\tDST, DST0\n#ifndef STRICT_ALIGNMENT\n\tcmp\tLEN, #512\t/* pre-alignment can be overhead when small */\n\tbcc\t9f\n#endif /* STRICT_ALIGNMENT */\n\t/* if (DST & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tDST, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n\tsub\tLEN, LEN, #1\n1:\n\t/* if (DST & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tDST, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n\tsub\tLEN, LEN, #2\n1:\n\t/* if (DST & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tDST, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n\tsub\tLEN, LEN, #4\n1:\n#if (STP_ALIGN > 8)\n\t/* if (DST & 8) { *(uint64_t *)dst++ = *(uint64_t *)src++; } */\n\ttbz\tDST, #3, 1f\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n\tsub\tLEN, LEN, #8\n1:\n#endif /* (STP_ALIGN > 8) */\n9:\n\nforward_copy1k:\n\t/* while (len >= 1024) */\n\t/* { copy1024(dst, src); src += 1024; dst += 1024; len -= 1024; } */\n\tcmp\tLEN, #1024\n\tblo\t9f\n1:\n\tsub\tLEN, LEN, #1024\n\t.rept\t(1024 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\t/* *dst++ = *src++; */\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n\tcmp\tLEN, #1024\n\tbhs\t1b\n9:\n\n\t/* if (len & 512) { copy512(dst, src); src += 512; dst += 512; */\n\ttbz\tLEN, #9, 1f\n\t.rept\t(512 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:25", "text": "forward_copy1k:\n\t/* while (len >= 1024) */\n\t/* { copy1024(dst, src); src += 1024; dst += 1024; len -= 1024; } */\n\tcmp\tLEN, #1024\n\tblo\t9f\n1:\n\tsub\tLEN, LEN, #1024\n\t.rept\t(1024 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\t/* *dst++ = *src++; */\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n\tcmp\tLEN, #1024\n\tbhs\t1b\n9:\n\n\t/* if (len & 512) { copy512(dst, src); src += 512; dst += 512; */\n\ttbz\tLEN, #9, 1f\n\t.rept\t(512 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 256) { copy256(dst, src); src += 256; dst += 256; */\n\ttbz\tLEN, #8, 1f\n\t.rept\t(256 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 128) { copy128(dst, src); src += 128; dst += 128; */\n\ttbz\tLEN, #7, 1f\n\t.rept\t(128 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 64) { copy64(dst, src); src += 64; dst += 64; */\n\ttbz\tLEN, #6, 1f\n\t.rept\t(64 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 32) { copy32(dst, src); src += 32; dst += 32; */\n\ttbz\tLEN, #5, 1f\n\t.rept\t(32 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 16) { *(uint128_t *)dst++ = *(uint128_t *)src++; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n1:\n\t/* if (len & 8) { *(uint64_t *)dst++ = *(uint64_t *)src++; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/bcopy.S:26", "text": "stp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 32) { copy32(dst, src); src += 32; dst += 32; */\n\ttbz\tLEN, #5, 1f\n\t.rept\t(32 / 16)\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n\t.endr\n1:\n\t/* if (len & 16) { *(uint128_t *)dst++ = *(uint128_t *)src++; } */\n\ttbz\tLEN, #4, 1f\n\tldp\tDATA0, DATA1, [SRC0], #16\n\tstp\tDATA0, DATA1, [DST], #16\n1:\n\t/* if (len & 8) { *(uint64_t *)dst++ = *(uint64_t *)src++; } */\n\ttbz\tLEN, #3, 1f\n\tldr\tTMP_X, [SRC0], #8\n\tstr\tTMP_X, [DST], #8\n1:\n\t/* if (len & 4) { *(uint32_t *)dst++ = *(uint32_t *)src++; } */\n\ttbz\tLEN, #2, 1f\n\tldr\tTMP_Xw, [SRC0], #4\n\tstr\tTMP_Xw, [DST], #4\n1:\n\t/* if (len & 2) { *(uint16_t *)dst++ = *(uint16_t *)src++; } */\n\ttbz\tLEN, #1, 1f\n\tldrh\tTMP_Xw, [SRC0], #2\n\tstrh\tTMP_Xw, [DST], #2\n1:\n\t/* if (len & 1) { *(uint8_t *)dst++ = *(uint8_t *)src++; } */\n\ttbz\tLEN, #0, 1f\n\tldrb\tTMP_Xw, [SRC0], #1\n\tstrb\tTMP_Xw, [DST], #1\n1:\ndone:\n\tret\nEND(FUNCTION)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/bcopy.S", "line_start": 1001, "line_end": 1038}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memcmp.S:1", "text": "/* $NetBSD: memcmp.S,v 1.3 2018/07/09 06:07:06 ryo Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: memcmp.S,v 1.3 2018/07/09 06:07:06 ryo Exp $\")\n\nENTRY(memcmp)\n\tmov\tx9, x0\n\tmov\tx10, x1\n\tmov\tx0, xzr\n\tcbz\tx2, .Lmemcmp_ret\n#ifdef _KERNEL\n\tcmp\tx2, #6\n\tb.eq\t.Lmemcmp_6bytes\n#endif\n\tcmp\tx2, #8\n\tb.ls\t.Lmemcmp_lessthan8\n\n\tands\tx3, x9, #7\n\tb.eq\t.Lmemcmp_dword_loop\n\n/*\n * The src1 address is not dword aligned.\n */\n\tadd\tx2, x2, x3\t\t/* add unalignment to length */\n\tsub\tx2, x2, #8\t\t/* now subtract a dword */\n\n\tsub\tx9, x9, x3\t\t/* dword align src1 */\n\n\tldr\tx6, [x10], #8\t\t/* load dword from src2 */\n\tsub\tx10, x10, x3\t\t/* src2 -= x3 */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memcmp.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memcmp.S:2", "text": "#ifdef _KERNEL\n\tcmp\tx2, #6\n\tb.eq\t.Lmemcmp_6bytes\n#endif\n\tcmp\tx2, #8\n\tb.ls\t.Lmemcmp_lessthan8\n\n\tands\tx3, x9, #7\n\tb.eq\t.Lmemcmp_dword_loop\n\n/*\n * The src1 address is not dword aligned.\n */\n\tadd\tx2, x2, x3\t\t/* add unalignment to length */\n\tsub\tx2, x2, #8\t\t/* now subtract a dword */\n\n\tsub\tx9, x9, x3\t\t/* dword align src1 */\n\n\tldr\tx6, [x10], #8\t\t/* load dword from src2 */\n\tsub\tx10, x10, x3\t\t/* src2 -= x3 */\n\tlsl\tx3, x3, #3\t\t/* convert bytes to bits */\n\tldr\tx4, [x9], #8\t\t/* load dword from src1 */\n#ifdef __AARCH64EB__\n\tlsl\tx4, x4, x3\t\t/* discard leading bytes from data1 */\n\tlsr\tx6, x6, x3\t\t/* discard leading bytes from data2 */\n\tlsl\tx6, x6, x3\t\t/* get back bit position */\n#else\n\tlsr\tx4, x4, x3\t\t/* discard leading bytes from data1 */\n\tlsl\tx6, x6, x3\t\t/* discard leading bytes from data2 */\n\tlsr\tx6, x6, x3\t\t/* get back bit position */\n#endif\n\tsubs\tx0, x4, x6\t\t/* compare data */\n\tb.ne\t.Lmemcmp_last_compare\t/* difference.  find it */\n\n.Lmemcmp_dword_loop:\n\tsubs\tx2, x2, #8\n\tb.mi\t.Lmemcmp_finish_dword\n\tldr\tx4, [x9], #8\n\tldr\tx6, [x10], #8\n\tsubs\tx0, x4, x6\n\tb.eq\t.Lmemcmp_dword_loop\t/* no difference.  go to loop */\n\tb\t.Lmemcmp_last_compare\t/* go find the difference. */\n\n.Lmemcmp_finish_dword:\n\t/*\n\t * we might have gotten here with nothing left.  If so, just bail.\n\t */\n\ttst\tx2, #7\n\tb.eq\t.Lmemcmp_ret\n\tmov\tx4, xzr\n\tmov\tx6, xzr\n\t/*\n\t *\n\t */\n\ttbz\tx2, #2, .Lmemcmp_finish_word\n\tldr\tw4, [x9], #4\n\tldr\tw6, [x10], #4\n#ifdef __AARCH64EB__\n\tlsl\tx4, x4, #32\t\t/* move to MSW */\n\tlsl\tx6, x6, #32\t\t/* move to MSW */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memcmp.S:3", "text": "b.eq\t.Lmemcmp_dword_loop\t/* no difference.  go to loop */\n\tb\t.Lmemcmp_last_compare\t/* go find the difference. */\n\n.Lmemcmp_finish_dword:\n\t/*\n\t * we might have gotten here with nothing left.  If so, just bail.\n\t */\n\ttst\tx2, #7\n\tb.eq\t.Lmemcmp_ret\n\tmov\tx4, xzr\n\tmov\tx6, xzr\n\t/*\n\t *\n\t */\n\ttbz\tx2, #2, .Lmemcmp_finish_word\n\tldr\tw4, [x9], #4\n\tldr\tw6, [x10], #4\n#ifdef __AARCH64EB__\n\tlsl\tx4, x4, #32\t\t/* move to MSW */\n\tlsl\tx6, x6, #32\t\t/* move to MSW */\n#endif\n\n.Lmemcmp_finish_word:\n\ttbz\tx2, #1, .Lmemcmp_finish_hword\n\tldrh\tw5, [x9], #2\n\tldrh\tw7, [x10], #2\n#ifdef __AARCH64EB__\n\torr\tx4, x4, x5, lsl #16\n\torr\tx6, x6, x7, lsl #16\n#else\n\torr\tx4, x4, x5, lsl #32\n\torr\tx6, x6, x7, lsl #32\n#endif\n\n.Lmemcmp_finish_hword:\n\ttbz\tx2, #0, .Lmemcmp_last_compare0\n\n\tldrb\tw5, [x9]\n\tldrb\tw7, [x10]\n#ifdef __AARCH64EB__\n\torr\tx4, x4, x5, lsl #8\n\torr\tx6, x6, x7, lsl #8\n#else\n\torr\tx4, x4, x5, lsl #48\n\torr\tx6, x6, x7, lsl #48\n#endif\n\tb\t.Lmemcmp_last_compare0\t/* go find the difference. */\n\n/*\n * D\n */\n.Lmemcmp_lessthan8:\n\tsub\tx2, x2, #1\n1:\tldrb\tw4, [x9], #1\n\tldrb\tw5, [x10], #1\n\tsubs\tx2, x2, #1\n\tccmp\tx4, x5, #0, cs\n\tb.eq\t1b\n\tsub\tx0, x4, x5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memcmp.S:4", "text": "orr\tx4, x4, x5, lsl #8\n\torr\tx6, x6, x7, lsl #8\n#else\n\torr\tx4, x4, x5, lsl #48\n\torr\tx6, x6, x7, lsl #48\n#endif\n\tb\t.Lmemcmp_last_compare0\t/* go find the difference. */\n\n/*\n * D\n */\n.Lmemcmp_lessthan8:\n\tsub\tx2, x2, #1\n1:\tldrb\tw4, [x9], #1\n\tldrb\tw5, [x10], #1\n\tsubs\tx2, x2, #1\n\tccmp\tx4, x5, #0, cs\n\tb.eq\t1b\n\tsub\tx0, x4, x5\n\n.Lmemcmp_ret:\n\tret\n\n#ifdef _KERNEL\n.Lmemcmp_6bytes:\n\tldr\tw4, [x9], #4\n\tldrh\tw5, [x9]\n#if __AARCH64EB__\n\torr\tx4, x4, x5, lsl #48\n\trev\tx4, x4\n#else\n\torr\tx4, x4, x5, lsl #32\n#endif\n\tldr\tw6, [x10], #4\n\tldrh\tw7, [x10]\n#if __AARCH64EB__\n\torr\tx6, x6, x7, lsl #48\n\trev\tx6, x6\n#else\n\torr\tx6, x6, x7, lsl #32\n#endif\n#endif /* _KERNEL */\n\n/*\n * We have loaded the final bytes in x4 and x6 in host-endian.  Now we have\n * to figure what the difference is (if any).  First we subtract.  Any bytes\n * that are the same will be 0. So to find the first non-zero byte we byterev\n * and then use clz to find that byte.\n * We mask the location to get the start of the byte.  We shift both\n * data dwords left to remove the equal part.  Then we shift right to discard\n * the trailing bytes.  Then we subtract and return.\n */\n.Lmemcmp_last_compare0:\n\tsubs\tx0, x4, x6\n\tb.eq\t.Lmemcmp_ret\n.Lmemcmp_last_compare:\n#if __AARCH64EB__\n\tclz\tx1, x0\t\t/* find first non-zero byte */\n\trev\tx0, x0\n#else", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memcmp.S:5", "text": "#endif\n#endif /* _KERNEL */\n\n/*\n * We have loaded the final bytes in x4 and x6 in host-endian.  Now we have\n * to figure what the difference is (if any).  First we subtract.  Any bytes\n * that are the same will be 0. So to find the first non-zero byte we byterev\n * and then use clz to find that byte.\n * We mask the location to get the start of the byte.  We shift both\n * data dwords left to remove the equal part.  Then we shift right to discard\n * the trailing bytes.  Then we subtract and return.\n */\n.Lmemcmp_last_compare0:\n\tsubs\tx0, x4, x6\n\tb.eq\t.Lmemcmp_ret\n.Lmemcmp_last_compare:\n#if __AARCH64EB__\n\tclz\tx1, x0\t\t/* find first non-zero byte */\n\trev\tx0, x0\n#else\n\trev\tx1, x0\n\tclz\tx1, x1\t\t/* find first non-zero byte */\n#endif\n\tbfi\tx1, xzr, #0, #3 /* make it byte aligned */\n\tlsr\tx1, x0, x1\t/* shift to LSB */\n#if __AARCH64EL__\n\trev\tx4, x4\t\t/* byte reverse */\n\trev\tx6, x6\t\t/* byte reverse */\n#endif\n\tsubs\tx0, x4, x6\n\tcsetm\tx0, cc\t\t/* set mask bits as sign */\n\tbfm\tx0, x1, #0, #7\t/* extend with sign bit */\n\tret\nEND(memcmp)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memcmp.S", "line_start": 161, "line_end": 194}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:1", "text": "/* $NetBSD: memset.S,v 1.4 2026/03/13 21:13:45 andvar Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nENTRY(memset)\n\tcbz\tx2, .Lret\n\tmov\tx15, x0\t\t\t/* working data pointer */\n\tcbz\tx1, .Lzerofill\n\tcbz\tx1, .Lfilled\n\t/*\n\t * Non zero fill, replicate to all 64 bits of x1.\n\t */\n\tand\tx1, x1, #0xff\n\torr\tx1, x1, x1, lsl #8\n\torr\tx1, x1, x1, lsl #16\n\torr\tx1, x1, x1, lsl #32\n.Lfilled:\n\tcmp\tx2, #15\t\t\t/* if it's small, ignore alignment */\n\tb.ls\t.Llast_subqword\n\n\tmov\tx6, x1\n\ttst\tx15, #15\n\tb.eq\t.Lqword_loop\n\n/*\n * We have at least 15 to copy which means we can get qword alignment\n * without having to check the amount left.\n */\n\ttbz\tx15, #0, .Lhword_aligned\n\tstrb\tw1, [x15], #1\n.Lhword_aligned:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:2", "text": "*/\n\tand\tx1, x1, #0xff\n\torr\tx1, x1, x1, lsl #8\n\torr\tx1, x1, x1, lsl #16\n\torr\tx1, x1, x1, lsl #32\n.Lfilled:\n\tcmp\tx2, #15\t\t\t/* if it's small, ignore alignment */\n\tb.ls\t.Llast_subqword\n\n\tmov\tx6, x1\n\ttst\tx15, #15\n\tb.eq\t.Lqword_loop\n\n/*\n * We have at least 15 to copy which means we can get qword alignment\n * without having to check the amount left.\n */\n\ttbz\tx15, #0, .Lhword_aligned\n\tstrb\tw1, [x15], #1\n.Lhword_aligned:\n\ttbz\tx15, #1, .Lword_aligned\n\tstrh\tw1, [x15], #2\n.Lword_aligned:\n\ttbz\tx15, #2, .Ldword_aligned\n\tstr\tw1, [x15], #4\n.Ldword_aligned:\n\ttbz\tx15, #3, .Lqword_aligned\n\tstr\tx1, [x15], #8\n/*\n * Now we qword aligned. Figure how much we have to write to get here.\n * Then subtract from the length.  If we get 0, we're done.\n */\n.Lqword_aligned:\n\tsub\tx5, x15, x0\n\tsubs\tx2, x2, x5\n\tb.eq\t.Lret\n\n/*\n * Write 16 bytes at time.  If we don't have 16 bytes to write, bail.\n * Keep looping if there's data to set.\n */\n.Lqword_loop:\n\tsubs\tx2, x2, #16\n\tb.mi\t.Llast_subqword\n\tstp\tx1, x6, [x15], #16\n\tb.ne\t.Lqword_loop\n\tret\n\n/*\n * We have less than a qword to write.  We hope we are aligned but since\n * unaligned access works, we don't have to be aligned.\n */\n.Llast_subqword:\n\ttbz\tx2, #3, .Llast_subdword\n\tstr\tx1, [x15], #8\n.Llast_subdword:\n\ttbz\tx2, #2, .Llast_subword\n\tstr\tw1, [x15], #4\n.Llast_subword:\n\ttbz\tx2, #1, .Llast_subhword", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:3", "text": "*/\n.Lqword_loop:\n\tsubs\tx2, x2, #16\n\tb.mi\t.Llast_subqword\n\tstp\tx1, x6, [x15], #16\n\tb.ne\t.Lqword_loop\n\tret\n\n/*\n * We have less than a qword to write.  We hope we are aligned but since\n * unaligned access works, we don't have to be aligned.\n */\n.Llast_subqword:\n\ttbz\tx2, #3, .Llast_subdword\n\tstr\tx1, [x15], #8\n.Llast_subdword:\n\ttbz\tx2, #2, .Llast_subword\n\tstr\tw1, [x15], #4\n.Llast_subword:\n\ttbz\tx2, #1, .Llast_subhword\n\tstrh\tw1, [x15], #2\n.Llast_subhword:\n\ttbz\tx2, #0, .Lret\n\tstrb\tw1, [x15]\n.Lret:\tret\n\n/*\n * If we are filling with zeros then let's see if we can use the\n *\tdc zva, <Xt>\n * instruction to speed things up.\n */\n.Lzerofill:\n\tmrs\tx9, dczid_el0\n\t/*\n\t * Make sure we can the instruction isn't prohibited.\n\t */\n\ttbnz\tx9, #4, .Lfilled\n\t/*\n\t * Now find out the block size.\n\t */\n\tubfx\tx9, x9, #0, #4\t/* extract low 4 bits */\n\tadd\tx9, x9, #2\t/* add log2(word) */\n\tmov\tx10, #1\t\t/* the value is log2(words) */\n\tlsl\tx10, x10, x9\t/* shift to get the block size */\n\tcmp\tx2, x10\t\t/* are we even copying a block? */\n\tb.lt\t.Lfilled\t/*   no, do it 16 bytes at a time */\n\t/*\n\t * Now we figure out how many aligned blocks we have\n\t */\n\tsub\tx11, x10, #1\t/* make block size a mask */\n\tadd\tx12, x15, x11\t/* round start to a block boundary */\n\tasr\tx12, x12, x9\t/* \"starting\" block number */\n\tadd\tx13, x15, x2\t/* get ending address */\n\tasr\tx13, x13, x9\t/* \"ending\" block number */\n\tcmp\tx13, x12\t/* how many blocks? */\n\tb.ls\t.Lfilled\t/*   none, do it 16 bytes at a time */\n\n\t/*\n\t * Now we have one or more blocks to deal with.  First now we need\n\t * to get block aligned.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:4", "text": "ubfx\tx9, x9, #0, #4\t/* extract low 4 bits */\n\tadd\tx9, x9, #2\t/* add log2(word) */\n\tmov\tx10, #1\t\t/* the value is log2(words) */\n\tlsl\tx10, x10, x9\t/* shift to get the block size */\n\tcmp\tx2, x10\t\t/* are we even copying a block? */\n\tb.lt\t.Lfilled\t/*   no, do it 16 bytes at a time */\n\t/*\n\t * Now we figure out how many aligned blocks we have\n\t */\n\tsub\tx11, x10, #1\t/* make block size a mask */\n\tadd\tx12, x15, x11\t/* round start to a block boundary */\n\tasr\tx12, x12, x9\t/* \"starting\" block number */\n\tadd\tx13, x15, x2\t/* get ending address */\n\tasr\tx13, x13, x9\t/* \"ending\" block number */\n\tcmp\tx13, x12\t/* how many blocks? */\n\tb.ls\t.Lfilled\t/*   none, do it 16 bytes at a time */\n\n\t/*\n\t * Now we have one or more blocks to deal with.  First now we need\n\t * to get block aligned.\n\t */\n\tand\tx7, x15, x11\t/* are already aligned on a block boundary? */\n\tcbz\tx7, .Lblock_aligned\n\n\tsub\tx7, x10, x7\t/* subtract offset from block length */\n\tsub\tx2, x2, x7\t/* subtract that from length */\n\tasr\tx7, x7, #4\t/* length -> N*16 */\n\n\ttbz\tx15, #0, .Lzero_hword_aligned\n\tstrb\twzr, [x15], #1\n.Lzero_hword_aligned:\n\ttbz\tx15, #1, .Lzero_word_aligned\n\tstrh\twzr, [x15], #2\n.Lzero_word_aligned:\n\ttbz\tx15, #2, .Lzero_dword_aligned\n\tstr\twzr, [x15], #4\n.Lzero_dword_aligned:\n\ttbz\tx15, #3, .Lzero_qword_aligned\n\tstr\txzr, [x15], #8\n.Lzero_qword_aligned:\n\tcbz\tx7, .Lblock_aligned\t/* aligned? just branch */\n\n\t/* align to DCZID_EL0:BS boundary */\n\ttbz\tx7, #0, 0f\t\t/* fill 16byte? */\n\tstp\txzr, xzr, [x15], #16\n0:\n\ttbz\tx7, #1, 1f\t\t/* fill 32byte? */\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n1:\n\tlsr\tx7, x7, #2\n\tcbz\tx7, 9f\n.L64bytes_fill:\n\tsub\tx7, x7, #1\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tcbnz\tx7, .L64bytes_fill\n9:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:5", "text": "cbz\tx7, .Lblock_aligned\t/* aligned? just branch */\n\n\t/* align to DCZID_EL0:BS boundary */\n\ttbz\tx7, #0, 0f\t\t/* fill 16byte? */\n\tstp\txzr, xzr, [x15], #16\n0:\n\ttbz\tx7, #1, 1f\t\t/* fill 32byte? */\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n1:\n\tlsr\tx7, x7, #2\n\tcbz\tx7, 9f\n.L64bytes_fill:\n\tsub\tx7, x7, #1\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tcbnz\tx7, .L64bytes_fill\n9:\n\n/*\n * Now we are block aligned.\n */\n.Lblock_aligned:\n\tsubs\tx2, x2, x10\n\tb.mi\t.Lblock_done\n\tdc\tzva, x15\n\tadd\tx15, x15, x10\n\tb.ne\t.Lblock_aligned\n\tret\n\n.Lblock_done:\n\tand\tx2, x2, x11\t/* make positive again */\n\tmov\tx6, xzr\t\t/* fill 2nd xword */\n\tb\t.Lqword_loop\t/* and finish filling */\n\nEND(memset)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 161, "line_end": 198}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:1", "text": "/* $NetBSD: memset.S,v 1.3 2020/04/11 05:12:52 ryo Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nENTRY(memset)\n\tcbz\tx2, .Lret\n\tmov\tx15, x0\t\t\t/* working data pointer */\n\tcbz\tx1, .Lzerofill\n\tcbz\tx1, .Lfilled\n\t/*\n\t * Non zero fill, replicate to all 64 bits of x1.\n\t */\n\tand\tx1, x1, #0xff\n\torr\tx1, x1, x1, lsl #8\n\torr\tx1, x1, x1, lsl #16\n\torr\tx1, x1, x1, lsl #32\n.Lfilled:\n\tcmp\tx2, #15\t\t\t/* if it's small, ignore alignment */\n\tb.ls\t.Llast_subqword\n\n\tmov\tx6, x1\n\ttst\tx15, #15\n\tb.eq\t.Lqword_loop\n\n/*\n * We have at least 15 to copy which means we can get qword alignment\n * without having to check the amount left.\n */\n\ttbz\tx15, #0, .Lhword_aligned\n\tstrb\tw1, [x15], #1\n.Lhword_aligned:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:3", "text": "*/\n.Lqword_loop:\n\tsubs\tx2, x2, #16\n\tb.mi\t.Llast_subqword\n\tstp\tx1, x6, [x15], #16\n\tb.ne\t.Lqword_loop\n\tret\n\n/*\n * We have less than a qword to write.  We hope we are aligned but since\n * unaligned access works, we don't have to be aligned.\n */\n.Llast_subqword:\n\ttbz\tx2, #3, .Llast_subdword\n\tstr\tx1, [x15], #8\n.Llast_subdword:\n\ttbz\tx2, #2, .Llast_subword\n\tstr\tw1, [x15], #4\n.Llast_subword:\n\ttbz\tx2, #1, .Llast_subhword\n\tstrh\tw1, [x15], #2\n.Llast_subhword:\n\ttbz\tx2, #0, .Lret\n\tstrb\tw1, [x15]\n.Lret:\tret\n\n/*\n * If we are filling with zeros then let's see if we can use the\n *\tdc zva, <Xt>\n * instruction to speed things up.\n */\n.Lzerofill:\n\tmrs\tx9, dczid_el0\n\t/*\n\t * Make sure we can the instruction isn't prohibited.\n\t */\n\ttbnz\tx9, #4, .Lfilled\n\t/*\n\t * Now find out the block size.\n\t */\n\tubfx\tx9, x9, #0, #4\t/* extract low 4 bits */\n\tadd\tx9, x9, #2\t/* add log2(word) */\n\tmov\tx10, #1\t\t/* the value is log2(words) */\n\tlsl\tx10, x10, x9\t/* shift to get the block size */\n\tcmp\tx2, x10\t\t/* are we even copying a block? */\n\tb.lt\t.Lfilled\t/*   no, do it 16 bytes at a time */\n\t/*\n\t * Now we figure out how many aligned blocks we have\n\t */\n\tsub\tx11, x10, #1\t/* make block size a mask */\n\tadd\tx12, x15, x11\t/* round start to a block boundary */\n\tasr\tx12, x12, x9\t/* \"starting\" block number */\n\tadd\tx13, x15, x2\t/* get ending address */\n\tasr\tx13, x13, x9\t/* \"ending\" block numebr */\n\tcmp\tx13, x12\t/* how many blocks? */\n\tb.ls\t.Lfilled\t/*   none, do it 16 bytes at a time */\n\n\t/*\n\t * Now we have one or more blocks to deal with.  First now we need\n\t * to get block aligned.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/memset.S:4", "text": "ubfx\tx9, x9, #0, #4\t/* extract low 4 bits */\n\tadd\tx9, x9, #2\t/* add log2(word) */\n\tmov\tx10, #1\t\t/* the value is log2(words) */\n\tlsl\tx10, x10, x9\t/* shift to get the block size */\n\tcmp\tx2, x10\t\t/* are we even copying a block? */\n\tb.lt\t.Lfilled\t/*   no, do it 16 bytes at a time */\n\t/*\n\t * Now we figure out how many aligned blocks we have\n\t */\n\tsub\tx11, x10, #1\t/* make block size a mask */\n\tadd\tx12, x15, x11\t/* round start to a block boundary */\n\tasr\tx12, x12, x9\t/* \"starting\" block number */\n\tadd\tx13, x15, x2\t/* get ending address */\n\tasr\tx13, x13, x9\t/* \"ending\" block numebr */\n\tcmp\tx13, x12\t/* how many blocks? */\n\tb.ls\t.Lfilled\t/*   none, do it 16 bytes at a time */\n\n\t/*\n\t * Now we have one or more blocks to deal with.  First now we need\n\t * to get block aligned.\n\t */\n\tand\tx7, x15, x11\t/* are already aligned on a block boundary? */\n\tcbz\tx7, .Lblock_aligned\n\n\tsub\tx7, x10, x7\t/* subtract offset from block length */\n\tsub\tx2, x2, x7\t/* subtract that from length */\n\tasr\tx7, x7, #4\t/* length -> N*16 */\n\n\ttbz\tx15, #0, .Lzero_hword_aligned\n\tstrb\twzr, [x15], #1\n.Lzero_hword_aligned:\n\ttbz\tx15, #1, .Lzero_word_aligned\n\tstrh\twzr, [x15], #2\n.Lzero_word_aligned:\n\ttbz\tx15, #2, .Lzero_dword_aligned\n\tstr\twzr, [x15], #4\n.Lzero_dword_aligned:\n\ttbz\tx15, #3, .Lzero_qword_aligned\n\tstr\txzr, [x15], #8\n.Lzero_qword_aligned:\n\tcbz\tx7, .Lblock_aligned\t/* aligned? just branch */\n\n\t/* align to DCZID_EL0:BS boundary */\n\ttbz\tx7, #0, 0f\t\t/* fill 16byte? */\n\tstp\txzr, xzr, [x15], #16\n0:\n\ttbz\tx7, #1, 1f\t\t/* fill 32byte? */\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n1:\n\tlsr\tx7, x7, #2\n\tcbz\tx7, 9f\n.L64bytes_fill:\n\tsub\tx7, x7, #1\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tstp\txzr, xzr, [x15], #16\n\tcbnz\tx7, .L64bytes_fill\n9:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/memset.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/aarch64/string/memset.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/strcat.S:1", "text": "/* $NetBSD: strcat.S,v 1.1 2014/08/10 05:47:35 matt Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strcat.S,v 1.1 2014/08/10 05:47:35 matt Exp $\")\n\n/*\n * Implementation of strcat using strlen/strcpy.\n */\nENTRY(strcat)\n\tstp\tx29, x30, [sp, #-32]!\t/* save fp, lr */\n\tmov\tx29, sp\t\t\t/* init fp */\n\tstp\tx27, x28, [x29, #16]\t/* save registers */\n\n\tmov\tx27, x0\t\t\t/* save dst */\n\tmov\tx28, x1\t\t\t/* save append */\n\n\tbl\t_C_LABEL(strlen)\t/* find length of dst */\n\n\tadd\tx0, x0, x27\t\t/* add to dst pointer */\n\tmov\tx1, x28\t\t\t/* fetch append */\n\tbl\t_C_LABEL(strcpy)\t/* append string */\n\n\tmov\tx0, x27\t\t\t/* restore dst as return value */\n\tldp\tx27, x28, [x29, #16]\t/* save registers */\n\tldp\tx29, x30, [sp], #32\t/* save fp, lr; pop stack */\n\tret\nEND(strcat)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/strcat.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/strlen.S:2", "text": "/* LINTSTUB: size_t strlen(const char *); */\n#endif\n\n#define\tMASK8_0x01\t0x0101010101010101\n#define\tMASK8_0x7f\t0x7f7f7f7f7f7f7f7f\n\nENTRY(FUNCNAME)\n\tmov\tx4, x0\t\t\t/* need x0 for return */\n\tadd\tx9, x0, #8\t\t/* start + dword */\n\tbic\tx9, x9, #7\t\t/* and aligned */\n#ifdef STRNLEN\n\tadds\tx10, x0, x1\t\t/* x10 = s + maxlen */\n\tb.cc\t1f\t\t\t/* if go past, */\n\tmvn\tx10, xzr\t\t/* set limit 0xffffffffffffffff */\n1:\n#endif\n\tmov\tx11, #MASK8_0x01\t/* test mask */\n\n\tands\tx3, x4, #7\t\t/* extract alignment */\n\tneg\tx0, x3\t\t\t/* alignment fixup */\n\tb.eq\t.Lstrlen_dword_loop\t/* already dword aligned */\n\n\t/*\n\t * Load the dword containing the leading bytes.  Make sure bytes\n\t * before the data won't match as NUL.\n\t */\n\tadd\tx4, x4, x0\t\t/* make dword aligned */\n\tldr\tx7, [x4], #8\t\t/* load dword */\n#ifdef __AARCH64EB__\n\trev\tx7, x7\t\t\t/* convert to LE */\n#endif\n\tlsl\tx3, x3, #3\t\t/* convert bytes to bits */\n\tlsl\tx5, x11, x3\t\t/* make mask for LE */\n\teor\tx5, x5, x11\t\t/* invert mask */\n\torr\tx7, x7, x5\t\t/* prevent NULs */\n\tb\t.Lstrlen_dword_loop_noload\n\n.Lstrlen_dword_loop:\n#ifdef STRNLEN\n\tcmp\tx4, x10\n\tb.hs\t.Lstrlen_done\n#endif\n\tldr\tx7, [x4], #8\t\t/* load dword */\n#ifdef __AARCH64EB__\n\trev\tx7, x7\t\t\t/* convert to LE */\n#endif\n.Lstrlen_dword_loop_noload:\n\t/*\n\t * Use the formula (X - 1) & ~(X | 0x7f) to find NUL bytes.\n\t * Any NUL byte found will be replaced by 0x80 otherwise any byte\n\t * will be replaced by 0x00.\n\t */\n\tsub\tx6, x7, x11\t\t/* a = X - 1 */\n\torr\tx7, x7, #MASK8_0x7f\t/* b = X | 0x7f */\n\tbic\tx6, x6, x7\t\t/* a & ~b */\n\tcbz\tx6, .Lstrlen_dword_loop\t/* no NULs so get next dword */\n\n\t/*\n\t * We know there is a NUL in this dword.  Use clz to find it.\n\t */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/strlen.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/aarch64/string/strlen.S:3", "text": "b.hs\t.Lstrlen_done\n#endif\n\tldr\tx7, [x4], #8\t\t/* load dword */\n#ifdef __AARCH64EB__\n\trev\tx7, x7\t\t\t/* convert to LE */\n#endif\n.Lstrlen_dword_loop_noload:\n\t/*\n\t * Use the formula (X - 1) & ~(X | 0x7f) to find NUL bytes.\n\t * Any NUL byte found will be replaced by 0x80 otherwise any byte\n\t * will be replaced by 0x00.\n\t */\n\tsub\tx6, x7, x11\t\t/* a = X - 1 */\n\torr\tx7, x7, #MASK8_0x7f\t/* b = X | 0x7f */\n\tbic\tx6, x6, x7\t\t/* a & ~b */\n\tcbz\tx6, .Lstrlen_dword_loop\t/* no NULs so get next dword */\n\n\t/*\n\t * We know there is a NUL in this dword.  Use clz to find it.\n\t */\n\trev\tx6, x6\t\t\t/* convert to BE */\n\tclz\tx6, x6\t\t\t/* find null byte */\n\tadd\tx0, x0, x6, lsr #3\t/* add offset to the length */\n\n\tadd\tx0, x0, x4\t\t/* add end to the length */\n\tsub\tx0, x0, x9\t\t/* subtract start from the length */\n#ifdef STRNLEN\n\tcmp\tx0, x1\t\t\t/* did we go too far? */\n\tcsel\tx0, x0, x1, lo\t\t/* yes, return max length */\n#endif\n\tret\n#ifdef STRNLEN\n.Lstrlen_done:\n\tmov\tx0, x1\n\tret\n#endif\nEND(FUNCNAME)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/aarch64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/aarch64/string/strlen.S", "line_start": 81, "line_end": 117}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \\\n\tatomic_inc.S atomic_or.S atomic_swap.S membar_ops.S\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_cas.c\n\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/Makefile.inc", "line_start": 1, "line_end": 15}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_add.S:1", "text": "/*\t$NetBSD: atomic_add.S,v 1.5 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_add_32, 2)\n1:\tldl_l\tt1, 0(a0)\n\taddl\tt1, a1, t2\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n\nLEAF(_atomic_add_32_nv, 2)\n1:\tldl_l\tt1, 0(a0)\n\taddl\tt1, a1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_add.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_add.S:2", "text": "RET\n2:\tbr\t1b\n\tEND(_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n\nLEAF(_atomic_add_32_nv, 2)\n1:\tldl_l\tt1, 0(a0)\n\taddl\tt1, a1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\n\nLEAF(_atomic_add_64, 2)\n1:\tldq_l\tt1, 0(a0)\n\taddq\tt1, a1, t2\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nLEAF(_atomic_add_64_nv, 2)\n1:\tldq_l\tt1, 0(a0)\n\taddq\tt1, a1, t2\n\tmov\tt2, v0\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_add.S", "line_start": 41, "line_end": 88}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_and.S:1", "text": "/*\t$NetBSD: atomic_and.S,v 1.5 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_and_32, 2)\n1:\tldl_l\tt1, 0(a0)\n\tand\tt1, a1, t2\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n\nLEAF(_atomic_and_32_nv, 2)\n1:\tldl_l\tt1, 0(a0)\n\tand\tt1, a1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_and.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_and.S:2", "text": "RET\n2:\tbr\t1b\n\tEND(_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n\nLEAF(_atomic_and_32_nv, 2)\n1:\tldl_l\tt1, 0(a0)\n\tand\tt1, a1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\n\nLEAF(_atomic_and_64, 2)\n1:\tldq_l\tt1, 0(a0)\n\tand\tt1, a1, t2\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_64,_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\n\nLEAF(_atomic_and_64_nv, 2)\n1:\tldq_l\tt1, 0(a0)\n\tand\tt1, a1, t2\n\tmov\tt2, v0\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_and.S", "line_start": 41, "line_end": 84}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.6 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_cas_32, 3)\n1:\tmov\ta2, t2\n\tldl_l\tv0, 0(a0)\n\tcmpeq\tv0, a1, t1\n\tbeq\tt1, 2f\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 3f\n2:\tRET\n3:\tbr\t1b\n\tEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\nLEAF(_atomic_cas_64, 3)\n1:\tmov\ta2, t2\n\tldq_l\tv0, 0(a0)\n\tcmpeq\tv0, a1, t1\n\tbeq\tt1, 2f", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_cas.S:2", "text": "stl_c\tt2, 0(a0)\n\tbeq\tt2, 3f\n2:\tRET\n3:\tbr\t1b\n\tEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\nLEAF(_atomic_cas_64, 3)\n1:\tmov\ta2, t2\n\tldq_l\tv0, 0(a0)\n\tcmpeq\tv0, a1, t1\n\tbeq\tt1, 2f\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 3f\n2:\tRET\n3:\tbr\t1b\n\tEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_cas.S", "line_start": 41, "line_end": 78}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_dec.S:1", "text": "/*\t$NetBSD: atomic_dec.S,v 1.5 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_dec_32, 1)\n1:\tldl_l\tt1, 0(a0)\n\tsubl\tt1, 1, t2\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n\nLEAF(_atomic_dec_32_nv, 1)\n1:\tldl_l\tt1, 0(a0)\n\tsubl\tt1, 1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_dec.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_dec.S:2", "text": "RET\n2:\tbr\t1b\n\tEND(_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n\nLEAF(_atomic_dec_32_nv, 1)\n1:\tldl_l\tt1, 0(a0)\n\tsubl\tt1, 1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\n\nLEAF(_atomic_dec_64, 1)\n1:\tldq_l\tt1, 0(a0)\n\tsubq\tt1, 1, t2\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nLEAF(_atomic_dec_64_nv, 1)\n1:\tldq_l\tt1, 0(a0)\n\tsubq\tt1, 1, t2\n\tmov\tt2, v0\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_dec.S", "line_start": 41, "line_end": 88}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_inc.S:1", "text": "/*\t$NetBSD: atomic_inc.S,v 1.5 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_inc_32, 1)\n1:\tldl_l\tt1, 0(a0)\n\taddl\tt1, 1, t2\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n\nLEAF(_atomic_inc_32_nv, 1)\n1:\tldl_l\tt1, 0(a0)\n\taddl\tt1, 1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_inc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_inc.S:2", "text": "RET\n2:\tbr\t1b\n\tEND(_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n\nLEAF(_atomic_inc_32_nv, 1)\n1:\tldl_l\tt1, 0(a0)\n\taddl\tt1, 1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\n\nLEAF(_atomic_inc_64, 1)\n1:\tldq_l\tt1, 0(a0)\n\taddq\tt1, 1, t2\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nLEAF(_atomic_inc_64_nv, 1)\n1:\tldq_l\tt1, 0(a0)\n\taddq\tt1, 1, t2\n\tmov\tt2, v0\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_inc.S", "line_start": 41, "line_end": 88}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_or.S:1", "text": "/*\t$NetBSD: atomic_or.S,v 1.5 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_or_32, 2)\n1:\tldl_l\tt1, 0(a0)\n\tbis\tt1, a1, t2\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n\nLEAF(_atomic_or_32_nv, 2)\n1:\tldl_l\tt1, 0(a0)\n\tbis\tt1, a1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_or.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_or.S:2", "text": "RET\n2:\tbr\t1b\n\tEND(_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n\nLEAF(_atomic_or_32_nv, 2)\n1:\tldl_l\tt1, 0(a0)\n\tbis\tt1, a1, t2\n\tmov\tt2, v0\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\n\nLEAF(_atomic_or_64, 2)\n1:\tldq_l\tt1, 0(a0)\n\tbis\tt1, a1, t2\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_64,_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\n\nLEAF(_atomic_or_64_nv, 2)\n1:\tldq_l\tt1, 0(a0)\n\tbis\tt1, a1, t2\n\tmov\tt2, v0\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_or.S", "line_start": 41, "line_end": 84}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/atomic_swap.S:1", "text": "/*\t$NetBSD: atomic_swap.S,v 1.5 2022/04/06 22:47:55 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nLEAF(_atomic_swap_32, 2)\n1:\tldl_l\tv0, 0(a0)\n\tmov\ta1, t2\n\tstl_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\nLEAF(_atomic_swap_64, 2)\n1:\tldq_l\tv0, 0(a0)\n\tmov\ta1, t2\n\tstq_c\tt2, 0(a0)\n\tbeq\tt2, 2f\n\tRET\n2:\tbr\t1b\n\tEND(_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/atomic_swap.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/membar_ops.S:1", "text": "/*\t$NetBSD: membar_ops.S,v 1.9 2022/04/09 23:32:51 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\n#ifdef _KERNEL\n\n/*\n * We start out with no-op versions that do nothing.  We hot-patch when\n * we detect a MP system.\n */\nLEAF(_membar_producer, 0)\n\tRET\n\tnop\nEND(_membar_producer)\nEXPORT(_membar_producer_end)\n\nLEAF(_membar_sync, 0)\n\tRET\n\tnop\nEND(_membar_sync)\nEXPORT(_membar_sync_end)\n\nLEAF(_membar_producer_mp, 0)\n\twmb\t\t/* store-before-store */\n\tRET\nEND(_membar_producer_mp)\nEXPORT(_membar_producer_mp_end)\n\nLEAF(_membar_sync_mp, 0)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/membar_ops.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/membar_ops.S:2", "text": "*/\nLEAF(_membar_producer, 0)\n\tRET\n\tnop\nEND(_membar_producer)\nEXPORT(_membar_producer_end)\n\nLEAF(_membar_sync, 0)\n\tRET\n\tnop\nEND(_membar_sync)\nEXPORT(_membar_sync_end)\n\nLEAF(_membar_producer_mp, 0)\n\twmb\t\t/* store-before-store */\n\tRET\nEND(_membar_producer_mp)\nEXPORT(_membar_producer_mp_end)\n\nLEAF(_membar_sync_mp, 0)\n\tmb\t\t/* load/store-before-load/store */\n\tRET\nEND(_membar_sync_mp)\nEXPORT(_membar_sync_mp_end)\n\n#else\t/* _KERNEL */\n\nLEAF(_membar_producer, 0)\n\tmb\t\t/* load/store-before-load/store */\n\tRET\nEND(_membar_producer)\nEXPORT(_membar_producer_end)\n\nLEAF(_membar_sync, 0)\n\tmb\t\t/* load/store-before-load/store */\n\tRET\nEND(_membar_sync)\nEXPORT(_membar_sync_end)\n\n#endif\t/* _KERNEL */\n\nATOMIC_OP_ALIAS(membar_producer,_membar_producer)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_datadep_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_datadep_consumer,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/membar_ops.S", "line_start": 41, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/atomic/membar_ops.S:3", "text": "ATOMIC_OP_ALIAS(membar_producer,_membar_producer)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_datadep_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_datadep_consumer,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/atomic/membar_ops.S", "line_start": 81, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/gen/byte_swap_4.S:1", "text": "/* $NetBSD: byte_swap_4.S,v 1.3 2008/02/16 17:37:13 apb Exp $ */\n\n/*\n * Copyright (c) 1996 Carnegie-Mellon University.\n * All rights reserved.\n *\n * Author: Chris G. Demetriou\n *\n * Permission to use, copy, modify and distribute this software and\n * its documentation is hereby granted, provided that both the copyright\n * notice and this permission notice appear in all copies of the\n * software, derivative works or modified versions, and any portions\n * thereof, and that both notices appear in supporting documentation.\n *\n * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS \"AS IS\"\n * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND\n * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.\n *\n * Carnegie Mellon requests users of this software to return to\n *\n *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU\n *  School of Computer Science\n *  Carnegie Mellon University\n *  Pittsburgh PA 15213-3890\n *\n * any improvements or extensions that they make and grant Carnegie the\n * rights to redistribute these changes.\n */\n\n#include <machine/asm.h>\n\n/*\n * Byte-swap a 4-byte quantity.  (Convert 0x01234567 to 0x67452301.)\n *\n * Argument is an unsigned 4-byte integer (uint32_t).\n */\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define\tBSWAP32\tbswap32\n#else /* defined(_KERNEL) || defined(_STANDALONE) */\n#define\tBSWAP32\t__bswap32\n#endif /* defined(_KERNEL) || defined(_STANDALONE) */\nLEAF(BSWAP32, 1)\t\t/* a0 contains 0x01234567 */\nXLEAF(htonl, 1)\nXLEAF(ntohl, 1)\n\tinsbl\ta0, 3, t0\t/* t0 = 0x67       */\n\textbl\ta0, 1, t1\t/* t1 = 0x      45 */\n\textbl\ta0, 2, t2\t/* t2 = 0x      23 */\n\textbl\ta0, 3, t3\t/* t3 = 0x      01 */\n\tsll\tt1, 16, t1\t/* t1 = 0x  45     */\n\tsll\tt2, 8, t2\t/* t2 = 0x    23   */\n\tor\tt3, t0, v0\t/* v0 = 0x67    01 */\n\tor\tt1, t2, t1\t/* t1 = 0x  4523   */\n\tor\tt1, v0, v0\t/* v0 = 0x67452301 */\n\tRET\nEND(BSWAP32)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/gen/byte_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/gen/byte_swap_4.S", "line_start": 1, "line_end": 55}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/gmon/_mcount.S:2", "text": "#define OFFSET_T4\t(6 * 8)\n#define OFFSET_T5\t(7 * 8)\n#define OFFSET_T6\t(8 * 8)\n#define OFFSET_T7\t(9 * 8)\n#define OFFSET_S6\t(10 * 8)\n#define OFFSET_A0\t(11 * 8)\n#define OFFSET_A1\t(12 * 8)\n#define OFFSET_A2\t(13 * 8)\n#define OFFSET_A3\t(14 * 8)\n#define OFFSET_A4\t(15 * 8)\n#define OFFSET_A5\t(16 * 8)\n#define OFFSET_T8\t(17 * 8)\n#define OFFSET_T9\t(18 * 8)\n#define OFFSET_T10\t(19 * 8)\n#define OFFSET_T11\t(20 * 8)\n#define OFFSET_RA\t(21 * 8)\n#define OFFSET_T12\t(22 * 8)\n#define OFFSET_GP\t(23 * 8)\n#define\tFRAME_SIZE\t(24 * 8)\n\nLEAF_NOPROFILE(_mcount,0)\t\t/* XXX */\n\t.set noat\n\t.set noreorder\n\n\tlda\tsp, -FRAME_SIZE(sp)\n\n\tstq\tat_reg, OFFSET_AT(sp)\n\tstq\tv0, OFFSET_V0(sp)\n\tstq\tt0, OFFSET_T0(sp)\n\tstq\tt1, OFFSET_T1(sp)\n\tstq\tt2, OFFSET_T2(sp)\n\tstq\tt3, OFFSET_T3(sp)\n\tstq\tt4, OFFSET_T4(sp)\n\tstq\tt5, OFFSET_T5(sp)\n\tstq\tt6, OFFSET_T6(sp)\n\tstq\tt7, OFFSET_T7(sp)\n\tstq\ts6, OFFSET_S6(sp)\t/* XXX because run _after_ prologue. */\n\tstq\ta0, OFFSET_A0(sp)\n\tstq\ta1, OFFSET_A1(sp)\n\tstq\ta2, OFFSET_A2(sp)\n\tstq\ta3, OFFSET_A3(sp)\n\tstq\ta4, OFFSET_A4(sp)\n\tstq\ta5, OFFSET_A5(sp)\n\tstq\tt8, OFFSET_T8(sp)\n\tstq\tt9, OFFSET_T9(sp)\n\tstq\tt10, OFFSET_T10(sp)\n\tstq\tt11, OFFSET_T11(sp)\n\tstq\tra, OFFSET_RA(sp)\n\tstq\tt12, OFFSET_T12(sp)\n\tstq\tgp, OFFSET_GP(sp)\n\n\tbr\tpv, 1f\n1:\tLDGP(pv)\n\tmov\tra, a0\n\tmov\tat_reg, a1\n\tCALL(_MCOUNT_FUNC)\n\n\tldq\tv0, OFFSET_V0(sp)\n\tldq\tt0, OFFSET_T0(sp)\n\tldq\tt1, OFFSET_T1(sp)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/gmon/_mcount.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/gmon/_mcount.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/gmon/_mcount.S:3", "text": "stq\ta3, OFFSET_A3(sp)\n\tstq\ta4, OFFSET_A4(sp)\n\tstq\ta5, OFFSET_A5(sp)\n\tstq\tt8, OFFSET_T8(sp)\n\tstq\tt9, OFFSET_T9(sp)\n\tstq\tt10, OFFSET_T10(sp)\n\tstq\tt11, OFFSET_T11(sp)\n\tstq\tra, OFFSET_RA(sp)\n\tstq\tt12, OFFSET_T12(sp)\n\tstq\tgp, OFFSET_GP(sp)\n\n\tbr\tpv, 1f\n1:\tLDGP(pv)\n\tmov\tra, a0\n\tmov\tat_reg, a1\n\tCALL(_MCOUNT_FUNC)\n\n\tldq\tv0, OFFSET_V0(sp)\n\tldq\tt0, OFFSET_T0(sp)\n\tldq\tt1, OFFSET_T1(sp)\n\tldq\tt2, OFFSET_T2(sp)\n\tldq\tt3, OFFSET_T3(sp)\n\tldq\tt4, OFFSET_T4(sp)\n\tldq\tt5, OFFSET_T5(sp)\n\tldq\tt6, OFFSET_T6(sp)\n\tldq\tt7, OFFSET_T7(sp)\n\tldq\ts6, OFFSET_S6(sp)\t/* XXX because run _after_ prologue. */\n\tldq\ta0, OFFSET_A0(sp)\n\tldq\ta1, OFFSET_A1(sp)\n\tldq\ta2, OFFSET_A2(sp)\n\tldq\ta3, OFFSET_A3(sp)\n\tldq\ta4, OFFSET_A4(sp)\n\tldq\ta5, OFFSET_A5(sp)\n\tldq\tt8, OFFSET_T8(sp)\n\tldq\tt9, OFFSET_T9(sp)\n\tldq\tt10, OFFSET_T10(sp)\n\tldq\tt11, OFFSET_T11(sp)\n\tldq\tra, OFFSET_RA(sp)\n\tldq\tt12, OFFSET_T12(sp)\n\tldq\tgp, OFFSET_GP(sp)\n\n\tldq\tat_reg, OFFSET_AT(sp)\n\n\tlda\tsp, FRAME_SIZE(sp)\n\tret\tzero, (at_reg), 1\n\n\tEND(_mcount)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/gmon/_mcount.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/gmon/_mcount.S", "line_start": 81, "line_end": 128}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bcopy.S:2", "text": "#else /* !(defined(MEMCOPY) || defined(MEMMOVE)) */\n#define\tFUNCTION\tbcopy\n#define\tSRCREG\t\ta0\n#define\tDSTREG\t\ta1\n#endif /* !(defined(MEMCOPY) || defined(MEMMOVE)) */\n\n#define\tSIZEREG\t\ta2\n\n/*\n * Copy bytes.\n *\n * void bcopy(char *from, char *to, size_t len);\n * char *memcpy(void *to, const void *from, size_t len);\n * char *memmove(void *to, const void *from, size_t len);\n *\n * No matter how invoked, the source and destination registers\n * for calculation.  There's no point in copying them to \"working\"\n * registers, since the code uses their values \"in place,\" and\n * copying them would be slower.\n */\n\nLEAF(FUNCTION,3)\n\n#if defined(MEMCOPY) || defined(MEMMOVE)\n\t/* set up return value, while we still can */\n\tmov\tDSTREG,v0\n#endif\n\n\t/* Check for negative length */\n\tble\tSIZEREG,bcopy_done\n\n\t/* Check for overlap */\n\tsubq\tDSTREG,SRCREG,t5\n\tcmpult\tt5,SIZEREG,t5\n\tbne\tt5,bcopy_overlap\n\n\t/* a3 = end address */\n\taddq\tSRCREG,SIZEREG,a3\n\n\t/* Get the first word */\n\tldq_u\tt2,0(SRCREG)\n\n\t/* Do they have the same alignment? */\n\txor\tSRCREG,DSTREG,t0\n\tand\tt0,7,t0\n\tand\tDSTREG,7,t1\n\tbne\tt0,bcopy_different_alignment\n\n\t/* src & dst have same alignment */\n\tbeq\tt1,bcopy_all_aligned\n\n\tldq_u\tt3,0(DSTREG)\n\taddq\tSIZEREG,t1,SIZEREG\n\tmskqh\tt2,SRCREG,t2\n\tmskql\tt3,SRCREG,t3\n\tor\tt2,t3,t2\n\n\t/* Dst is 8-byte aligned */\n\nbcopy_all_aligned:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bcopy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bcopy.S:3", "text": "ldq_u\tt2,0(SRCREG)\n\n\t/* Do they have the same alignment? */\n\txor\tSRCREG,DSTREG,t0\n\tand\tt0,7,t0\n\tand\tDSTREG,7,t1\n\tbne\tt0,bcopy_different_alignment\n\n\t/* src & dst have same alignment */\n\tbeq\tt1,bcopy_all_aligned\n\n\tldq_u\tt3,0(DSTREG)\n\taddq\tSIZEREG,t1,SIZEREG\n\tmskqh\tt2,SRCREG,t2\n\tmskql\tt3,SRCREG,t3\n\tor\tt2,t3,t2\n\n\t/* Dst is 8-byte aligned */\n\nbcopy_all_aligned:\n\t/* If less than 8 bytes,skip loop */\n\tsubq\tSIZEREG,1,t0\n\tand\tSIZEREG,7,SIZEREG\n\tbic\tt0,7,t0\n\tbeq\tt0,bcopy_samealign_lp_end\n\nbcopy_samealign_lp:\n\tstq_u\tt2,0(DSTREG)\n\taddq\tDSTREG,8,DSTREG\n\tldq_u\tt2,8(SRCREG)\n\tsubq\tt0,8,t0\n\taddq\tSRCREG,8,SRCREG\n\tbne\tt0,bcopy_samealign_lp\n\nbcopy_samealign_lp_end:\n\t/* If we're done, exit */\n\tbne\tSIZEREG,bcopy_small_left\n\tstq_u\tt2,0(DSTREG)\n\tRET\n\nbcopy_small_left:\n\tmskql\tt2,SIZEREG,t4\n\tldq_u\tt3,0(DSTREG)\n\tmskqh\tt3,SIZEREG,t3\n\tor\tt4,t3,t4\n\tstq_u\tt4,0(DSTREG)\n\tRET\n\nbcopy_different_alignment:\n\t/*\n\t * this is the fun part\n\t */\n\taddq\tSRCREG,SIZEREG,a3\n\tcmpule\tSIZEREG,8,t0\n\tbne\tt0,bcopy_da_finish\n\n\tbeq\tt1,bcopy_da_noentry\n\n\t/* Do the initial partial word */\n\tsubq\tzero,DSTREG,t0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bcopy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bcopy.S:4", "text": "bcopy_small_left:\n\tmskql\tt2,SIZEREG,t4\n\tldq_u\tt3,0(DSTREG)\n\tmskqh\tt3,SIZEREG,t3\n\tor\tt4,t3,t4\n\tstq_u\tt4,0(DSTREG)\n\tRET\n\nbcopy_different_alignment:\n\t/*\n\t * this is the fun part\n\t */\n\taddq\tSRCREG,SIZEREG,a3\n\tcmpule\tSIZEREG,8,t0\n\tbne\tt0,bcopy_da_finish\n\n\tbeq\tt1,bcopy_da_noentry\n\n\t/* Do the initial partial word */\n\tsubq\tzero,DSTREG,t0\n\tand\tt0,7,t0\n\tldq_u\tt3,7(SRCREG)\n\textql\tt2,SRCREG,t2\n\textqh\tt3,SRCREG,t3\n\tor\tt2,t3,t5\n\tinsql\tt5,DSTREG,t5\n\tldq_u\tt6,0(DSTREG)\n\tmskql\tt6,DSTREG,t6\n\tor\tt5,t6,t5\n\tstq_u\tt5,0(DSTREG)\n\taddq\tSRCREG,t0,SRCREG\n\taddq\tDSTREG,t0,DSTREG\n\tsubq\tSIZEREG,t0,SIZEREG\n\tldq_u\tt2,0(SRCREG)\n\nbcopy_da_noentry:\n\tsubq\tSIZEREG,1,t0\n\tbic\tt0,7,t0\n\tand\tSIZEREG,7,SIZEREG\n\tbeq\tt0,bcopy_da_finish2\n\nbcopy_da_lp:\n\tldq_u\tt3,7(SRCREG)\n\taddq\tSRCREG,8,SRCREG\n\textql\tt2,SRCREG,t4\n\textqh\tt3,SRCREG,t5\n\tsubq\tt0,8,t0\n\tor\tt4,t5,t5\n\tstq\tt5,0(DSTREG)\n\taddq\tDSTREG,8,DSTREG\n\tbeq\tt0,bcopy_da_finish1\n\tldq_u\tt2,7(SRCREG)\n\taddq\tSRCREG,8,SRCREG\n\textql\tt3,SRCREG,t4\n\textqh\tt2,SRCREG,t5\n\tsubq\tt0,8,t0\n\tor\tt4,t5,t5\n\tstq\tt5,0(DSTREG)\n\taddq\tDSTREG,8,DSTREG\n\tbne\tt0,bcopy_da_lp", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bcopy.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bcopy.S:5", "text": "bcopy_da_lp:\n\tldq_u\tt3,7(SRCREG)\n\taddq\tSRCREG,8,SRCREG\n\textql\tt2,SRCREG,t4\n\textqh\tt3,SRCREG,t5\n\tsubq\tt0,8,t0\n\tor\tt4,t5,t5\n\tstq\tt5,0(DSTREG)\n\taddq\tDSTREG,8,DSTREG\n\tbeq\tt0,bcopy_da_finish1\n\tldq_u\tt2,7(SRCREG)\n\taddq\tSRCREG,8,SRCREG\n\textql\tt3,SRCREG,t4\n\textqh\tt2,SRCREG,t5\n\tsubq\tt0,8,t0\n\tor\tt4,t5,t5\n\tstq\tt5,0(DSTREG)\n\taddq\tDSTREG,8,DSTREG\n\tbne\tt0,bcopy_da_lp\n\nbcopy_da_finish2:\n\t/* Do the last new word */\n\tmov\tt2,t3\n\nbcopy_da_finish1:\n\t/* Do the last partial word */\n\tldq_u\tt2,-1(a3)\n\textql\tt3,SRCREG,t3\n\textqh\tt2,SRCREG,t2\n\tor\tt2,t3,t2\n\tbr\tzero,bcopy_samealign_lp_end\n\nbcopy_da_finish:\n\t/* Do the last word in the next source word */\n\tldq_u\tt3,-1(a3)\n\textql\tt2,SRCREG,t2\n\textqh\tt3,SRCREG,t3\n\tor\tt2,t3,t2\n\tinsqh\tt2,DSTREG,t3\n\tinsql\tt2,DSTREG,t2\n\tlda\tt4,-1(zero)\n\tmskql\tt4,SIZEREG,t5\n\tcmovne\tt5,t5,t4\n\tinsqh\tt4,DSTREG,t5\n\tinsql\tt4,DSTREG,t4\n\taddq\tDSTREG,SIZEREG,a4\n\tldq_u\tt6,0(DSTREG)\n\tldq_u\tt7,-1(a4)\n\tbic\tt6,t4,t6\n\tbic\tt7,t5,t7\n\tand\tt2,t4,t2\n\tand\tt3,t5,t3\n\tor\tt2,t6,t2\n\tor\tt3,t7,t3\n\tstq_u\tt3,-1(a4)\n\tstq_u\tt2,0(DSTREG)\n\tRET\n\nbcopy_overlap:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bcopy.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bcopy.S:6", "text": "insql\tt2,DSTREG,t2\n\tlda\tt4,-1(zero)\n\tmskql\tt4,SIZEREG,t5\n\tcmovne\tt5,t5,t4\n\tinsqh\tt4,DSTREG,t5\n\tinsql\tt4,DSTREG,t4\n\taddq\tDSTREG,SIZEREG,a4\n\tldq_u\tt6,0(DSTREG)\n\tldq_u\tt7,-1(a4)\n\tbic\tt6,t4,t6\n\tbic\tt7,t5,t7\n\tand\tt2,t4,t2\n\tand\tt3,t5,t3\n\tor\tt2,t6,t2\n\tor\tt3,t7,t3\n\tstq_u\tt3,-1(a4)\n\tstq_u\tt2,0(DSTREG)\n\tRET\n\nbcopy_overlap:\n\t/*\n\t * Basically equivalent to previous case, only backwards.\n\t * Not quite as highly optimized\n\t */\n\taddq\tSRCREG,SIZEREG,a3\n\taddq\tDSTREG,SIZEREG,a4\n\n\t/* less than 8 bytes - don't worry about overlap */\n\tcmpule\tSIZEREG,8,t0\n\tbne\tt0,bcopy_ov_short\n\n\t/* Possibly do a partial first word */\n\tand\ta4,7,t4\n\tbeq\tt4,bcopy_ov_nostart2\n\tsubq\ta3,t4,a3\n\tsubq\ta4,t4,a4\n\tldq_u\tt1,0(a3)\n\tsubq\tSIZEREG,t4,SIZEREG\n\tldq_u\tt2,7(a3)\n\tldq\tt3,0(a4)\n\textql\tt1,a3,t1\n\textqh\tt2,a3,t2\n\tor\tt1,t2,t1\n\tmskqh\tt3,t4,t3\n\tmskql\tt1,t4,t1\n\tor\tt1,t3,t1\n\tstq\tt1,0(a4)\n\nbcopy_ov_nostart2:\n\tbic\tSIZEREG,7,t4\n\tand\tSIZEREG,7,SIZEREG\n\tbeq\tt4,bcopy_ov_lp_end\n\nbcopy_ov_lp:\n\t/* This could be more pipelined, but it doesn't seem worth it */\n\tldq_u\tt0,-8(a3)\n\tsubq\ta4,8,a4\n\tldq_u\tt1,-1(a3)\n\tsubq\ta3,8,a3\n\textql\tt0,a3,t0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bcopy.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bcopy.S:7", "text": "extql\tt1,a3,t1\n\textqh\tt2,a3,t2\n\tor\tt1,t2,t1\n\tmskqh\tt3,t4,t3\n\tmskql\tt1,t4,t1\n\tor\tt1,t3,t1\n\tstq\tt1,0(a4)\n\nbcopy_ov_nostart2:\n\tbic\tSIZEREG,7,t4\n\tand\tSIZEREG,7,SIZEREG\n\tbeq\tt4,bcopy_ov_lp_end\n\nbcopy_ov_lp:\n\t/* This could be more pipelined, but it doesn't seem worth it */\n\tldq_u\tt0,-8(a3)\n\tsubq\ta4,8,a4\n\tldq_u\tt1,-1(a3)\n\tsubq\ta3,8,a3\n\textql\tt0,a3,t0\n\textqh\tt1,a3,t1\n\tsubq\tt4,8,t4\n\tor\tt0,t1,t0\n\tstq\tt0,0(a4)\n\tbne\tt4,bcopy_ov_lp\n\nbcopy_ov_lp_end:\n\tbeq\tSIZEREG,bcopy_done\n\n\tldq_u\tt0,0(SRCREG)\n\tldq_u\tt1,7(SRCREG)\n\tldq_u\tt2,0(DSTREG)\n\textql\tt0,SRCREG,t0\n\textqh\tt1,SRCREG,t1\n\tor\tt0,t1,t0\n\tinsql\tt0,DSTREG,t0\n\tmskql\tt2,DSTREG,t2\n\tor\tt2,t0,t2\n\tstq_u\tt2,0(DSTREG)\n\nbcopy_done:\n\tRET\n\nbcopy_ov_short:\n\tldq_u\tt2,0(SRCREG)\n\tbr\tzero,bcopy_da_finish\n\n\tEND(FUNCTION)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bcopy.S", "line_start": 241, "line_end": 288}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bzero.S:1", "text": "/*\t$NetBSD: bzero.S,v 1.1 2005/12/20 19:28:49 christos Exp $\t*/\n\n/*\n * Copyright (c) 1995 Carnegie-Mellon University.\n * All rights reserved.\n *\n * Author: Trevor Blackwell\n *\n * Permission to use, copy, modify and distribute this software and\n * its documentation is hereby granted, provided that both the copyright\n * notice and this permission notice appear in all copies of the\n * software, derivative works or modified versions, and any portions\n * thereof, and that both notices appear in supporting documentation.\n *\n * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS \"AS IS\"\n * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND\n * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.\n *\n * Carnegie Mellon requests users of this software to return to\n *\n *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU\n *  School of Computer Science\n *  Carnegie Mellon University\n *  Pittsburgh PA 15213-3890\n *\n * any improvements or extensions that they make and grant Carnegie the\n * rights to redistribute these changes.\n */\n\n#include <machine/asm.h>\n\nLEAF(bzero,2)\n\tble\ta1,bzero_done\n\tbic\ta1,63,t3\t/* t3 is # bytes to do 64 bytes at a time */\n\n\t/* If nothing in first word, ignore it */\n\tsubq\tzero,a0,t0\n\tand\tt0,7,t0\t\t/* t0 = (0-size)%8 */\n\tbeq\tt0,bzero_nostart1\n\n\tcmpult\ta1,t0,t1\t/* if size > size%8 goto noshort */\n\tbeq\tt1,bzero_noshort\n\n\t/*\n\t * The whole thing is less than a word.\n\t * Mask off 1..7 bytes, and finish.\n\t */\n\tldq_u\tt2,0(a0)\n\tlda\tt0,-1(zero)\t/* t0=-1 */\n\tmskql\tt0,a1,t0\t/* Get ff in bytes (a0%8)..((a0+a1-1)%8) */\n\tinsql\tt0,a0,t0\n\tbic\tt2,t0,t2\t/* zero those bytes in word */\n\tstq_u\tt2,0(a0)\n\tRET\n\nbzero_noshort:\n\t/* Handle the first partial word */\n\tldq_u\tt2,0(a0)\n\tsubq\ta1,t0,a1\n\tmskql\tt2,a0,t2\t/* zero bytes (a0%8)..7 in word */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bzero.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bzero.S:2", "text": "cmpult\ta1,t0,t1\t/* if size > size%8 goto noshort */\n\tbeq\tt1,bzero_noshort\n\n\t/*\n\t * The whole thing is less than a word.\n\t * Mask off 1..7 bytes, and finish.\n\t */\n\tldq_u\tt2,0(a0)\n\tlda\tt0,-1(zero)\t/* t0=-1 */\n\tmskql\tt0,a1,t0\t/* Get ff in bytes (a0%8)..((a0+a1-1)%8) */\n\tinsql\tt0,a0,t0\n\tbic\tt2,t0,t2\t/* zero those bytes in word */\n\tstq_u\tt2,0(a0)\n\tRET\n\nbzero_noshort:\n\t/* Handle the first partial word */\n\tldq_u\tt2,0(a0)\n\tsubq\ta1,t0,a1\n\tmskql\tt2,a0,t2\t/* zero bytes (a0%8)..7 in word */\n\tstq_u\tt2,0(a0)\n\n\taddq\ta0,t0,a0\t/* round a0 up to next word */\n\tbic\ta1,63,t3\t/* recalc t3 (# bytes to do 64 bytes at a\n\t\t\t\t   time) */\n\nbzero_nostart1:\n\t/*\n\t * Loop, zeroing 64 bytes at a time\n\t */\n\tbeq\tt3,bzero_lp_done\nbzero_lp:\n\tstq\tzero,0(a0)\n\tstq\tzero,8(a0)\n\tstq\tzero,16(a0)\n\tstq\tzero,24(a0)\n\tsubq\tt3,64,t3\n\tstq\tzero,32(a0)\n\tstq\tzero,40(a0)\n\tstq\tzero,48(a0)\n\tstq\tzero,56(a0)\n\taddq\ta0,64,a0\n\tbne\tt3,bzero_lp\n\nbzero_lp_done:\n\t/*\n\t * Handle the last 0..7 words.\n\t * We mask off the low bits, so we don't need an extra\n\t * compare instruction for the loop (just a bne. heh-heh)\n\t */\n\tand\ta1,0x38,t4\n\tbeq\tt4,bzero_finish_lp_done\nbzero_finish_lp:\n\tstq\tzero,0(a0)\n\tsubq\tt4,8,t4\n\taddq\ta0,8,a0\n\tbne\tt4,bzero_finish_lp\n\n\t/* Do the last partial word */\nbzero_finish_lp_done:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bzero.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/bzero.S:3", "text": "stq\tzero,56(a0)\n\taddq\ta0,64,a0\n\tbne\tt3,bzero_lp\n\nbzero_lp_done:\n\t/*\n\t * Handle the last 0..7 words.\n\t * We mask off the low bits, so we don't need an extra\n\t * compare instruction for the loop (just a bne. heh-heh)\n\t */\n\tand\ta1,0x38,t4\n\tbeq\tt4,bzero_finish_lp_done\nbzero_finish_lp:\n\tstq\tzero,0(a0)\n\tsubq\tt4,8,t4\n\taddq\ta0,8,a0\n\tbne\tt4,bzero_finish_lp\n\n\t/* Do the last partial word */\nbzero_finish_lp_done:\n\tand\ta1,7,t5\t\t/* 0..7 bytes left */\n\tbeq\tt5,bzero_done\t/* mskqh won't change t0 if t5==0, but I\n\t\t\t\t   don't want to touch, say, a new VM page */\n\tldq\tt0,0(a0)\n\tmskqh\tt0,t5,t0\n\tstq\tt0,0(a0)\nbzero_done:\n\tRET\n\n\tEND(bzero)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/bzero.S", "line_start": 81, "line_end": 110}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/ffs.S:2", "text": "beq\tt0, Lallzero\n\n\t/*\n\t * Initialize return value (v0), and set up t1 so that it\n\t * contains the mask with only the lowest bit set.\n\t */\n\tsubl\tzero, t0, t1\n\tldil\tv0, 1\n\tand\tt0, t1, t1\n\n\tand\tt1, 0xff, t2\n\tbne\tt2, Ldo8\n\n\t/*\n\t * If lower 16 bits empty, add 16 to result and use upper 16.\n\t */\n\tzapnot\tt1, 0x03, t3\n\tbne\tt3, Ldo16\n\tsra\tt1, 16, t1\n\taddl\tv0, 16, v0\n\nLdo16:\n\t/*\n\t * If lower 8 bits empty, add 8 to result and use upper 8.\n\t */\n\tand\tt1, 0xff, t4\n\tbne\tt4, Ldo8\n\tsra\tt1, 8, t1\n\taddl\tv0, 8, v0\n\nLdo8:\n\tand\tt1, 0x0f, t5\t\t/* lower 4 of 8 empty? */\n\tand\tt1, 0x33, t6\t\t/* lower 2 of each 4 empty? */\n\tand\tt1, 0x55, t7\t\t/* lower 1 of each 2 empty? */\n\n\t/* If lower 4 bits empty, add 4 to result. */\n\tbne\tt5, Ldo4\n\taddl\tv0, 4, v0\n\nLdo4:\t/* If lower 2 bits of each 4 empty, add 2 to result. */\n\tbne\tt6, Ldo2\n\taddl\tv0, 2, v0\n\nLdo2:\t/* If lower bit of each 2 empty, add 1 to result. */\n\tbne\tt7, Ldone\n\taddl\tv0, 1, v0\n\nLdone:\n\tRET\n\nLallzero:\n\tbis\tzero, zero, v0\n\tRET\nEND(ffs)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/ffs.S", "line_start": 41, "line_end": 94}
{"id": "NetBSD/src:common/lib/libc/arch/alpha/string/ffs.S:3", "text": "bne\tt6, Ldo2\n\taddl\tv0, 2, v0\n\nLdo2:\t/* If lower bit of each 2 empty, add 1 to result. */\n\tbne\tt7, Ldone\n\taddl\tv0, 1, v0\n\nLdone:\n\tRET\n\nLallzero:\n\tbis\tzero, zero, v0\n\tRET\nEND(ffs)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/alpha/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/alpha/string/ffs.S", "line_start": 81, "line_end": 94}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.29 2015/06/07 15:06:24 matt Exp $\n\n.ifnmake obj\n.include \"${NETBSDSRCDIR}/common/lib/libc/arch/arm/features.mk\"\n.endif\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\n.if \"${FEAT_LDREX}\" == \"no\"\nSRCS.atomic+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\t\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\t\tatomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\t\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c \\\n\t\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\t\tatomic_swap_32_cas.c membar_ops_nop.c\n\n.if ${LIB} == \"c\"\nSRCS.atomic+=\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \\\n\t\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c \\\n\t\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c \\\n\t\tatomic_or_16_cas.c atomic_or_8_cas.c \\\n\t\tatomic_and_16_cas.c atomic_and_8_cas.c \\\n\t\tatomic_add_16_cas.c atomic_add_8_cas.c \\\n\t\tatomic_swap_16_cas.c atomic_swap_8_cas.c \\\n\t\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c \\\n\t\tatomic_load.c atomic_store.c \\\n\t\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\\\n\t\tatomic_c11_compare_exchange_cas_32.c\t\\\n\t\tatomic_c11_compare_exchange_cas_16.c\t\\\n\t\tatomic_c11_compare_exchange_cas_8.c\n.endif\n\n.else\n.for op in add and cas nand or xor\n.for sz in 8 16 32 64\nSRCS.atomic+=\tatomic_${op}_${sz}.S\n.endfor\n.endfor\nSRCS.atomic+=\tatomic_dec_32.S atomic_dec_64.S\nSRCS.atomic+=\tatomic_inc_32.S atomic_inc_64.S\nSRCS.atomic+=\tatomic_sub_64.S\nSRCS.atomic+=\tatomic_swap.S atomic_swap_16.S atomic_swap_64.S\nSRCS.atomic+=\tmembar_ops.S\n.if defined(LIB) && ${LIB} != \"kern\" && ${LIB} != \"rump\"\n.for op in add and nand or sub xor\nSRCS.atomic+=\tsync_fetch_and_${op}_8.S\n.endfor\n.for sz in 1 2 4 8\nSRCS.atomic+=\tsync_bool_compare_and_swap_${sz}.S\n.endfor\n.endif\n.endif\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\" || ${LIB} == \"rump\")\n\nSRCS.atomic+=\tatomic_simplelock.c\n.if \"${FEAT_THUMB2}\" == \"no\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/Makefile.inc", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/Makefile.inc:2", "text": "SRCS.atomic+=\tatomic_inc_32.S atomic_inc_64.S\nSRCS.atomic+=\tatomic_sub_64.S\nSRCS.atomic+=\tatomic_swap.S atomic_swap_16.S atomic_swap_64.S\nSRCS.atomic+=\tmembar_ops.S\n.if defined(LIB) && ${LIB} != \"kern\" && ${LIB} != \"rump\"\n.for op in add and nand or sub xor\nSRCS.atomic+=\tsync_fetch_and_${op}_8.S\n.endfor\n.for sz in 1 2 4 8\nSRCS.atomic+=\tsync_bool_compare_and_swap_${sz}.S\n.endfor\n.endif\n.endif\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\" || ${LIB} == \"rump\")\n\nSRCS.atomic+=\tatomic_simplelock.c\n.if \"${FEAT_THUMB2}\" == \"no\"\nCPUFLAGS.atomic_simplelock.c+=\t-marm\n.endif\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\n.if \"${FEAT_LDREX}\" == \"no\"\nSRCS.atomic+=\tatomic_init_testset.c\nSRCS.atomic+=\tatomic_cas_up.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP\n.if \"${FEAT_EABI}\" == \"yes\" && \"${FEAT_LDRD}\" == \"yes\"\nCPPFLAGS+= -D__HAVE_ATOMIC_CAS_64_UP -D__HAVE_ASM_ATOMIC_CAS_64_UP\n.endif\n.else\nSRCS.atomic+=\tatomic_init_cas.c\n.endif #FEAT_LDREX\n\n.endif #LIB\n\n.if \"${FEAT_THUMB2}\" == \"no\"\n.for f in ${SRCS.atomic:M*.S}\nCPUFLAGS.$f+=\t-marm\n.endfor\n.endif\n\nSRCS+=\t${SRCS.atomic}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/Makefile.inc", "line_start": 41, "line_end": 89}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_16.S:1", "text": "/*\t$NetBSD: atomic_add_16.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_sub_16)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_16)\n\tmov\tip, r0\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\tadds\tr3, r0, r1\t\t/* calculate new value */\n\tstrexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_add_16)\nEND(_atomic_sub_16)\n\nATOMIC_OP_ALIAS(atomic_add_16,_atomic_add_16)\nATOMIC_OP_ALIAS(atomic_add_short,_atomic_add_16)\nATOMIC_OP_ALIAS(atomic_add_ushort,_atomic_add_16)\nCRT_ALIAS(__atomic_fetch_add_2,_atomic_add_16)\nSTRONG_ALIAS(_atomic_add_short,_atomic_add_16)\nSTRONG_ALIAS(_atomic_add_ushort,_atomic_add_16)\n\nATOMIC_OP_ALIAS(atomic_sub_16,_atomic_sub_16)\nATOMIC_OP_ALIAS(atomic_sub_short,_atomic_sub_16)\nATOMIC_OP_ALIAS(atomic_sub_ushort,_atomic_sub_16)\nCRT_ALIAS(__atomic_fetch_sub_2,_atomic_sub_16)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_16.S:2", "text": "1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\tadds\tr3, r0, r1\t\t/* calculate new value */\n\tstrexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_add_16)\nEND(_atomic_sub_16)\n\nATOMIC_OP_ALIAS(atomic_add_16,_atomic_add_16)\nATOMIC_OP_ALIAS(atomic_add_short,_atomic_add_16)\nATOMIC_OP_ALIAS(atomic_add_ushort,_atomic_add_16)\nCRT_ALIAS(__atomic_fetch_add_2,_atomic_add_16)\nSTRONG_ALIAS(_atomic_add_short,_atomic_add_16)\nSTRONG_ALIAS(_atomic_add_ushort,_atomic_add_16)\n\nATOMIC_OP_ALIAS(atomic_sub_16,_atomic_sub_16)\nATOMIC_OP_ALIAS(atomic_sub_short,_atomic_sub_16)\nATOMIC_OP_ALIAS(atomic_sub_ushort,_atomic_sub_16)\nCRT_ALIAS(__atomic_fetch_sub_2,_atomic_sub_16)\nSTRONG_ALIAS(_atomic_sub_short,_atomic_sub_16)\nSTRONG_ALIAS(_atomic_sub_ushort,_atomic_sub_16)\n\nENTRY_NP(__sync_fetch_and_add_2)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_add_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_add_2)\n\nENTRY_NP(__sync_fetch_and_sub_2)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_sub_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_sub_2)\n\n\nENTRY_NP(_atomic_sub_16_nv)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexh\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_16_nv)\nEND(_atomic_sub_16_nv)\n\nATOMIC_OP_ALIAS(atomic_add_16_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_add_short_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_add_ushort_nv,_atomic_add_16_nv)\nSTRONG_ALIAS(_atomic_add_short_nv,_atomic_add_16_nv)\nSTRONG_ALIAS(_atomic_add_ushort_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_sub_16_nv,_atomic_sub_16_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_16.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_16.S:3", "text": "ENTRY_NP(_atomic_sub_16_nv)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexh\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_16_nv)\nEND(_atomic_sub_16_nv)\n\nATOMIC_OP_ALIAS(atomic_add_16_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_add_short_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_add_ushort_nv,_atomic_add_16_nv)\nSTRONG_ALIAS(_atomic_add_short_nv,_atomic_add_16_nv)\nSTRONG_ALIAS(_atomic_add_ushort_nv,_atomic_add_16_nv)\nATOMIC_OP_ALIAS(atomic_sub_16_nv,_atomic_sub_16_nv)\nATOMIC_OP_ALIAS(atomic_sub_short_nv,_atomic_sub_16_nv)\nATOMIC_OP_ALIAS(atomic_sub_ushort_nv,_atomic_sub_16_nv)\nSTRONG_ALIAS(_atomic_sub_short_nv,_atomic_sub_16_nv)\nSTRONG_ALIAS(_atomic_sub_ushort_nv,_atomic_sub_16_nv)\n\nENTRY_NP(__sync_add_and_fetch_2)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_add_16_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_add_and_fetch_2)\n\nENTRY_NP(__sync_sub_and_fetch_2)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_sub_16_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_sub_and_fetch_2)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_16.S", "line_start": 81, "line_end": 122}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_32.S:1", "text": "/*\t$NetBSD: atomic_add_32.S,v 1.10 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_sub_32)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_32)\n\tmov\tip, r0\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tadds\tr3, r0, r1\t\t/* calculate new value */\n\tstrex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_add_32)\nEND(_atomic_sub_32)\n\nENTRY_NP(__sync_fetch_and_add_4)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_add_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_add_4)\n\nENTRY_NP(__sync_fetch_and_sub_4)\n\tpush    {r4, lr}\n\tDMB", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_32.S:2", "text": "1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tadds\tr3, r0, r1\t\t/* calculate new value */\n\tstrex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_add_32)\nEND(_atomic_sub_32)\n\nENTRY_NP(__sync_fetch_and_add_4)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_add_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_add_4)\n\nENTRY_NP(__sync_fetch_and_sub_4)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_add_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_sub_4)\n\n\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nCRT_ALIAS(__atomic_fetch_add_4,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_32)\nCRT_ALIAS(__atomic_fetch_sub_4,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n\nENTRY_NP(_atomic_sub_32_nv)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_32_nv)\nEND(_atomic_sub_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_32.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_32.S:3", "text": "STRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n\nENTRY_NP(_atomic_sub_32_nv)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_32_nv)\nEND(_atomic_sub_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_32_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_int_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_int_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_32_nv)\n\nENTRY_NP(__sync_add_and_fetch_4)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_add_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_add_and_fetch_4)\n\nENTRY_NP(__sync_sub_and_fetch_4)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_sub_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_sub_and_fetch_4)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_32.S", "line_start": 81, "line_end": 131}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_32.S:4", "text": "END(__sync_add_and_fetch_4)\n\nENTRY_NP(__sync_sub_and_fetch_4)\n\tpush    {r4, lr}\n\tDMB\n\tbl\t_atomic_sub_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_sub_and_fetch_4)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_32.S", "line_start": 121, "line_end": 131}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_64.S:1", "text": "/*\t$NetBSD: atomic_add_64.S,v 1.14 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_add_64_nv)\n\tpush\t{r3, r4}\t\t/* save temporary */\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tadds\tLO, LO, NLO\t\t/* calculate new value lo */\n\tadcs\tHI, HI, NHI\t\t/* calculate new value hi */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_add_64,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\n\nENTRY_NP(__sync_add_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_add_64_nv\n\tDMB", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_64.S:2", "text": "#endif\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tadds\tLO, LO, NLO\t\t/* calculate new value lo */\n\tadcs\tHI, HI, NHI\t\t/* calculate new value hi */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_add_64,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\n\nENTRY_NP(__sync_add_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_add_64_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_add_and_fetch_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_64.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_8.S:1", "text": "/*\t$NetBSD: atomic_add_8.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_sub_8)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_8)\n\tmov\tip, r0\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\tadds\tr3, r0, r1\t\t/* calculate new value */\n\tstrexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_add_8)\nEND(_atomic_sub_8)\n\nATOMIC_OP_ALIAS(atomic_add_8,_atomic_add_8)\nATOMIC_OP_ALIAS(atomic_add_char,_atomic_add_8)\nATOMIC_OP_ALIAS(atomic_add_uchar,_atomic_add_8)\nCRT_ALIAS(__atomic_fetch_add_1,_atomic_add_8)\nSTRONG_ALIAS(_atomic_add_char,_atomic_add_8)\nSTRONG_ALIAS(_atomic_add_uchar,_atomic_add_8)\n\nENTRY_NP(__sync_fetch_and_add_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_add_8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_8.S:2", "text": "1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\tadds\tr3, r0, r1\t\t/* calculate new value */\n\tstrexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_add_8)\nEND(_atomic_sub_8)\n\nATOMIC_OP_ALIAS(atomic_add_8,_atomic_add_8)\nATOMIC_OP_ALIAS(atomic_add_char,_atomic_add_8)\nATOMIC_OP_ALIAS(atomic_add_uchar,_atomic_add_8)\nCRT_ALIAS(__atomic_fetch_add_1,_atomic_add_8)\nSTRONG_ALIAS(_atomic_add_char,_atomic_add_8)\nSTRONG_ALIAS(_atomic_add_uchar,_atomic_add_8)\n\nENTRY_NP(__sync_fetch_and_add_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_add_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_add_1)\n\nENTRY_NP(__sync_fetch_and_sub_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_sub_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_sub_1)\n\nATOMIC_OP_ALIAS(atomic_sub_8,_atomic_sub_8)\nATOMIC_OP_ALIAS(atomic_sub_char,_atomic_sub_8)\nATOMIC_OP_ALIAS(atomic_sub_uchar,_atomic_sub_8)\nCRT_ALIAS(__atomic_fetch_sub_1,_atomic_sub_8)\nSTRONG_ALIAS(_atomic_sub_char,_atomic_sub_8)\nSTRONG_ALIAS(_atomic_sub_uchar,_atomic_sub_8)\n\n\nENTRY_NP(_atomic_sub_8_nv)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_8_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexb\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_8_nv)\nEND(_atomic_sub_8_nv)\n\nATOMIC_OP_ALIAS(atomic_add_8_nv,_atomic_add_8_nv)\nATOMIC_OP_ALIAS(atomic_add_char_nv,_atomic_add_8_nv)\nATOMIC_OP_ALIAS(atomic_add_uchar_nv,_atomic_add_8_nv)\nSTRONG_ALIAS(_atomic_add_char_nv,_atomic_add_8_nv)\nSTRONG_ALIAS(_atomic_add_uchar_nv,_atomic_add_8_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_add_8.S:3", "text": "ENTRY_NP(_atomic_sub_8_nv)\n\tnegs\tr1, r1\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_8_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexb\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_add_8_nv)\nEND(_atomic_sub_8_nv)\n\nATOMIC_OP_ALIAS(atomic_add_8_nv,_atomic_add_8_nv)\nATOMIC_OP_ALIAS(atomic_add_char_nv,_atomic_add_8_nv)\nATOMIC_OP_ALIAS(atomic_add_uchar_nv,_atomic_add_8_nv)\nSTRONG_ALIAS(_atomic_add_char_nv,_atomic_add_8_nv)\nSTRONG_ALIAS(_atomic_add_uchar_nv,_atomic_add_8_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_8_nv,_atomic_sub_8_nv)\nATOMIC_OP_ALIAS(atomic_sub_char_nv,_atomic_sub_8_nv)\nATOMIC_OP_ALIAS(atomic_sub_uchar_nv,_atomic_sub_8_nv)\nSTRONG_ALIAS(_atomic_sub_char_nv,_atomic_sub_8_nv)\nSTRONG_ALIAS(_atomic_sub_uchar_nv,_atomic_sub_8_nv)\n\nENTRY_NP(__sync_add_and_fetch_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_add_8_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_add_and_fetch_1)\n\nENTRY_NP(__sync_sub_and_fetch_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_sub_8_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_sub_and_fetch_1)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_add_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_add_8.S", "line_start": 81, "line_end": 123}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_16.S:1", "text": "/*\t$NetBSD: atomic_and_16.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_and_16)\n\tmov\tip, r0\n1:\tldrexh\tr0, [ip]\t\t/* load old value (to be returned) */\n\tands\tr3, r0, r1\t\t/* calculate new value */\n\tstrexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_and_16)\n\nATOMIC_OP_ALIAS(atomic_and_16,_atomic_and_16)\nATOMIC_OP_ALIAS(atomic_and_ushort,_atomic_and_16)\nCRT_ALIAS(__atomic_fetch_and_2,_atomic_and_16)\nSTRONG_ALIAS(_atomic_and_ushort,_atomic_and_16)\n\nENTRY_NP(__sync_fetch_and_and_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_and_2)\n\n\nENTRY_NP(_atomic_and_16_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_16.S:2", "text": "cmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_and_16)\n\nATOMIC_OP_ALIAS(atomic_and_16,_atomic_and_16)\nATOMIC_OP_ALIAS(atomic_and_ushort,_atomic_and_16)\nCRT_ALIAS(__atomic_fetch_and_2,_atomic_and_16)\nSTRONG_ALIAS(_atomic_and_ushort,_atomic_and_16)\n\nENTRY_NP(__sync_fetch_and_and_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_and_2)\n\n\nENTRY_NP(_atomic_and_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\tands\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexh\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_and_16_nv)\n\nATOMIC_OP_ALIAS(atomic_and_16_nv,_atomic_and_16_nv)\nATOMIC_OP_ALIAS(atomic_and_ushort_nv,_atomic_and_16_nv)\nSTRONG_ALIAS(_atomic_and_ushort_nv,_atomic_and_16_nv)\n\nENTRY_NP(__sync_and_and_fetch_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_16_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_and_and_fetch_2)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_16.S", "line_start": 41, "line_end": 83}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_32.S:1", "text": "/*\t$NetBSD: atomic_and_32.S,v 1.10 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_and_32)\n\tmov\tip, r0\n1:\tldrex\tr0, [ip]\t\t/* load old value (to be returned) */\n\tands\tr3, r0, r1\t\t/* calculate new value */\n\tstrex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nCRT_ALIAS(__atomic_fetch_and_4,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\n\nENTRY_NP(__sync_fetch_and_and_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_and_4)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_32.S:2", "text": "cmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nCRT_ALIAS(__atomic_fetch_and_4,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\n\nENTRY_NP(__sync_fetch_and_and_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_and_4)\n\n\nENTRY_NP(_atomic_and_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tands\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_and_32_nv)\n\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\n\nENTRY_NP(__sync_and_and_fetch_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_and_and_fetch_4)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_32.S", "line_start": 41, "line_end": 86}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_64.S:1", "text": "/*\t$NetBSD: atomic_and_64.S,v 1.13 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_and_64_nv)\n\tpush\t{r3, r4}\t\t/* save temporary */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tands\tr0, r0, r2\t\t/* calculate new value */\n\tands\tr1, r1, r3\t\t/* calculate new value */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_and_64,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64,_atomic_and_64_nv)\n\nENTRY_NP(__sync_and_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_64_nv\n\tDMB", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_64.S:2", "text": "mov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tands\tr0, r0, r2\t\t/* calculate new value */\n\tands\tr1, r1, r3\t\t/* calculate new value */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_and_64,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64,_atomic_and_64_nv)\n\nENTRY_NP(__sync_and_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_64_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_and_and_fetch_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_64.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_8.S:1", "text": "/*\t$NetBSD: atomic_and_8.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_and_8)\n\tmov\tip, r0\n1:\tldrexb\tr0, [ip]\t\t/* load old value (to be returned) */\n\tands\tr3, r0, r1\t\t/* calculate new value */\n\tstrexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_and_8)\n\nATOMIC_OP_ALIAS(atomic_and_8,_atomic_and_8)\nATOMIC_OP_ALIAS(atomic_and_uchar,_atomic_and_8)\nCRT_ALIAS(__atomic_fetch_and_1,_atomic_and_8)\nSTRONG_ALIAS(_atomic_and_uchar,_atomic_and_8)\n\nENTRY_NP(__sync_fetch_and_and_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_and_1)\n\n\nENTRY_NP(_atomic_and_8_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_and_8.S:2", "text": "cmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_and_8)\n\nATOMIC_OP_ALIAS(atomic_and_8,_atomic_and_8)\nATOMIC_OP_ALIAS(atomic_and_uchar,_atomic_and_8)\nCRT_ALIAS(__atomic_fetch_and_1,_atomic_and_8)\nSTRONG_ALIAS(_atomic_and_uchar,_atomic_and_8)\n\nENTRY_NP(__sync_fetch_and_and_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_and_1)\n\n\nENTRY_NP(_atomic_and_8_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\tands\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexb\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_and_8_nv)\n\nATOMIC_OP_ALIAS(atomic_and_8_nv,_atomic_and_8_nv)\nATOMIC_OP_ALIAS(atomic_and_uchar_nv,_atomic_and_8_nv)\nSTRONG_ALIAS(_atomic_and_uchar_nv,_atomic_and_8_nv)\n\nENTRY_NP(__sync_and_and_fetch_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_and_8_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_and_and_fetch_1)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_and_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_and_8.S", "line_start": 41, "line_end": 83}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_16.S:1", "text": "/* $NetBSD: atomic_cas_16.S,v 1.3 2021/07/28 07:32:20 skrll Exp $ */\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(_atomic_cas_16)\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n1:\n\tldrexh\tr0, [ip]\t\t/* load old value */\n\tcmp\tr0, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrexh\tr3, r2, [ip]\t\t/* store new value */\n\tcmp\tr3, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_short,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_ushort,_atomic_cas_16)\n\nENTRY_NP(__sync_val_compare_and_swap_2)\n\tpush\t{r4, lr}", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_16.S:2", "text": "1:\n\tldrexh\tr0, [ip]\t\t/* load old value */\n\tcmp\tr0, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrexh\tr3, r2, [ip]\t\t/* store new value */\n\tcmp\tr3, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_short,_atomic_cas_16)\nSTRONG_ALIAS(_atomic_cas_ushort,_atomic_cas_16)\n\nENTRY_NP(__sync_val_compare_and_swap_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_cas_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_val_compare_and_swap_2)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_16.S", "line_start": 41, "line_end": 67}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_32.S:1", "text": "/*\t$NetBSD: atomic_cas_32.S,v 1.8 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(_atomic_cas_32)\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n1:\n\tldrex\tr0, [ip]\t\t/* load old value */\n\tcmp\tr0, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     return if different */\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrex\tr3, r2, [ip]\t\t/* store new value */\n\tcmp\tr3, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_32.S:2", "text": "1:\n\tldrex\tr0, [ip]\t\t/* load old value */\n\tcmp\tr0, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     return if different */\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrex\tr3, r2, [ip]\t\t/* store new value */\n\tcmp\tr3, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nENTRY_NP(__sync_val_compare_and_swap_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_cas_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_val_compare_and_swap_4)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_32.S", "line_start": 41, "line_end": 79}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_64.S:1", "text": "/*\t$NetBSD: atomic_cas_64.S,v 1.12 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(_atomic_cas_64)\n\tpush\t{r4-r7}\t\t\t/* save temporaries */\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n#ifdef __ARM_EABI__\n\tldrd\tr4, r5, [sp, #16]\t/* fetch new value */\n#else\n\tldr\tr5, [sp, #16]\t\t/* second word third argument */\n\tmov\tr4, r3\t\t\t/* first word third argument */\n\tmov\tr3, r2\t\t\t/* r2 will be overwritten by r1 which ... */\n\tmov\tr2, r1\t\t\t/* r1 will be overwritten by ldrexd */\n#endif\n1:\n\tldrexd\tr0, r1, [ip]\t\t/* load current value */\n\tcmp\tr0, r2\t\t\t/*   compare to old? 1st half */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tcmp\tr1, r3\t\t\t/*   compare to old? 2nd half */\n#else\n\tcmpeq\tr1, r3\t\t\t/*   compare to old? 2nd half */\n#endif\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tstrexd\tr6, r4, r5, [ip]\t/* store new value */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_64.S:2", "text": "mov\tip, r0\t\t\t/* we need r0 for return value */\n#ifdef __ARM_EABI__\n\tldrd\tr4, r5, [sp, #16]\t/* fetch new value */\n#else\n\tldr\tr5, [sp, #16]\t\t/* second word third argument */\n\tmov\tr4, r3\t\t\t/* first word third argument */\n\tmov\tr3, r2\t\t\t/* r2 will be overwritten by r1 which ... */\n\tmov\tr2, r1\t\t\t/* r1 will be overwritten by ldrexd */\n#endif\n1:\n\tldrexd\tr0, r1, [ip]\t\t/* load current value */\n\tcmp\tr0, r2\t\t\t/*   compare to old? 1st half */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tcmp\tr1, r3\t\t\t/*   compare to old? 2nd half */\n#else\n\tcmpeq\tr1, r3\t\t\t/*   compare to old? 2nd half */\n#endif\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tstrexd\tr6, r4, r5, [ip]\t/* store new value */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\n\tpop\t{r4-r7}\t\t\t/* restore temporaries */\n\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_64)\n\nENTRY_NP(__sync_val_compare_and_swap_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_cas_64\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_val_compare_and_swap_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_64.S", "line_start": 41, "line_end": 80}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_8.S:1", "text": "/* $NetBSD: atomic_cas_8.S,v 1.9 2021/07/28 07:32:20 skrll Exp $ */\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(_atomic_cas_8)\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n1:\n\tldrexb\tr0, [ip]\t\t/* load old value */\n\tcmp\tr0, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrexb\tr3, r2, [ip]\t\t/* store new value */\n\tcmp\tr3, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_8)\n\nATOMIC_OP_ALIAS(atomic_cas_8,_atomic_cas_8)\nSTRONG_ALIAS(_atomic_cas_char,_atomic_cas_8)\nSTRONG_ALIAS(_atomic_cas_uchar,_atomic_cas_8)\n\nENTRY_NP(__sync_val_compare_and_swap_1)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_8.S:2", "text": "mov\tip, r0\t\t\t/* we need r0 for return value */\n1:\n\tldrexb\tr0, [ip]\t\t/* load old value */\n\tcmp\tr0, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrexb\tr3, r2, [ip]\t\t/* store new value */\n\tcmp\tr3, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n2:\tRET\t\t\t\t/* return. */\nEND(_atomic_cas_8)\n\nATOMIC_OP_ALIAS(atomic_cas_8,_atomic_cas_8)\nSTRONG_ALIAS(_atomic_cas_char,_atomic_cas_8)\nSTRONG_ALIAS(_atomic_cas_uchar,_atomic_cas_8)\n\nENTRY_NP(__sync_val_compare_and_swap_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_cas_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_val_compare_and_swap_1)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_8.S", "line_start": 41, "line_end": 68}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_up.S:1", "text": "/*\t$NetBSD: atomic_cas_up.S,v 1.8 2020/03/09 11:21:54 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Steve C. Woodford.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include <machine/asm.h>\n\nENTRY(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\n\tmov\tr3, r0\n\t.align\t0\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tldr\tr0, [r3]\n\tcmp\tr0, r1\n#if defined(__thumb__)\n\tbeq\t1f\n\tstr\tr2, [r3]\n#else\n\tstreq\tr2, [r3]\n#endif\n\t.align\t0\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\tRET\nEND(_atomic_cas_up)\n\n#if defined(__HAVE_ASM_ATOMIC_CAS_64_UP)\nARM_ENTRY(_atomic_cas_64_up)\n\tpush\t{r4-r5}\n\tmov\tip, r0\n\tldrd\tr4, r5, [sp, #8]\n\t.align\t0\nRAS_START_ASM_HIDDEN(_atomic_cas_64)\n\tldrd\tr0, r1, [ip]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_up.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_up.S:2", "text": "cmp\tr0, r1\n#if defined(__thumb__)\n\tbeq\t1f\n\tstr\tr2, [r3]\n#else\n\tstreq\tr2, [r3]\n#endif\n\t.align\t0\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\tRET\nEND(_atomic_cas_up)\n\n#if defined(__HAVE_ASM_ATOMIC_CAS_64_UP)\nARM_ENTRY(_atomic_cas_64_up)\n\tpush\t{r4-r5}\n\tmov\tip, r0\n\tldrd\tr4, r5, [sp, #8]\n\t.align\t0\nRAS_START_ASM_HIDDEN(_atomic_cas_64)\n\tldrd\tr0, r1, [ip]\n\tcmp\tr0, r2\n\tcmpeq\tr1, r3\n\tstrdeq\tr4, r5, [ip]\n\t.align\t0\nRAS_END_ASM_HIDDEN(_atomic_cas_64)\n1:\tpop\t{r4-r5}\n\tbx\tlr\nEND(_atomic_cas_64_up)\n#endif /* __HAVE_ASM_ATOMIC_64_UP */\n\nENTRY(_atomic_cas_16_up)\n\tmov\tr3, r0\n\t.align\t0\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tldrh\tr0, [r3]\n\tcmp\tr0, r1\n#if defined(__thumb__)\n\tbeq\t1f\n\tstrh\tr2, [r3]\n#else\n\tstrheq\tr2, [r3]\n#endif\n\t.align\t0\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\tRET\nEND(_atomic_cas_16_up)\n\nENTRY(_atomic_cas_8_up)\n\tmov\tr3, r0\n\t.align\t0\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tldrb\tr0, [r3]\n\tcmp\tr0, r1\n#if defined(__thumb__)\n\tbeq\t1f\n\tstrb\tr2, [r3]\n#else\n\tstrbeq\tr2, [r3]\n#endif\n\t.align\t0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_up.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_cas_up.S:3", "text": "strheq\tr2, [r3]\n#endif\n\t.align\t0\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\tRET\nEND(_atomic_cas_16_up)\n\nENTRY(_atomic_cas_8_up)\n\tmov\tr3, r0\n\t.align\t0\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tldrb\tr0, [r3]\n\tcmp\tr0, r1\n#if defined(__thumb__)\n\tbeq\t1f\n\tstrb\tr2, [r3]\n#else\n\tstrbeq\tr2, [r3]\n#endif\n\t.align\t0\nRAS_END_ASM_HIDDEN(_atomic_cas_8)\n1:\tRET\nEND(_atomic_cas_8_up)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_cas_up.S", "line_start": 81, "line_end": 103}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_dec_32.S:1", "text": "/*\t$NetBSD: atomic_dec_32.S,v 1.7 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_dec_32)\n1:\tldrex\tr3, [r0]\t\t/* load old value (return value) */\n\tsubs\tr3, r3, #1\t\t/* calculate new value */\n\tstrex\tr2, r3, [r0]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\n\nENTRY_NP(_atomic_dec_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tsubs\tr0, r0, #1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_dec_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_dec_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_dec_32.S:2", "text": "RET\t\t\t\t/* return new value */\nEND(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\n\nENTRY_NP(_atomic_dec_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tsubs\tr0, r0, #1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_dec_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_dec_32.S", "line_start": 41, "line_end": 71}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_dec_64.S:1", "text": "/*\t$NetBSD: atomic_dec_64.S,v 1.9 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_dec_64_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tsubs\tLO, LO, #1\t\t/* calculate new value */\n\tsbcs\tHI, HI, #0\t\t/* calculate new value */\n\tstrexd\tr2, r0, r1, [ip]\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_64,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_dec_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_dec_64.S", "line_start": 1, "line_end": 50}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_inc_32.S:1", "text": "/*\t$NetBSD: atomic_inc_32.S,v 1.9 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_inc_32)\n1:\tldrex\tr3, [r0]\t\t/* load old value (return value) */\n\tadds\tr3, r3, #1\t\t/* calculate new value */\n\tstrex\tr2, r3, [r0]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_inc_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\n\nENTRY_NP(_atomic_inc_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, #1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_inc_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_inc_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_inc_32.S:2", "text": "RET\t\t\t\t/* return new value */\nEND(_atomic_inc_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\n\nENTRY_NP(_atomic_inc_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tadds\tr0, r0, #1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_inc_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_inc_32.S", "line_start": 41, "line_end": 70}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_inc_64.S:1", "text": "/*\t$NetBSD: atomic_inc_64.S,v 1.11 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_inc_64_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tadds\tLO, LO, #1\t\t/* calculate new value (return value) */\n\tadcs\tHI, HI, #0\t\t/* fold carry into high */\n\tstrexd\tr2, r0, r1, [ip]\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_64,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_inc_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_inc_64.S", "line_start": 1, "line_end": 50}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_16.S:1", "text": "/*\t$NetBSD: atomic_nand_16.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_nand_16)\n\tmov\tip, r0\n1:\tldrexh\tr0, [ip]\t\t/* load old value (to be returned) */\n\tands\tr3, r0, r1\t\t/* calculate new value step 1 */\n\tmvns\tr3, r3\t\t\t/* ... complement for new value */\n\tstrexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_nand_16)\n\nATOMIC_OP_ALIAS(atomic_nand_16,_atomic_nand_16)\nATOMIC_OP_ALIAS(atomic_nand_ushort,_atomic_nand_16)\nSTRONG_ALIAS(_atomic_nand_ushort,_atomic_nand_16)\n\nENTRY_NP(__sync_fetch_and_nand_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_nand_2)\n\n\nENTRY_NP(_atomic_nand_16_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_16.S:2", "text": "strexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_nand_16)\n\nATOMIC_OP_ALIAS(atomic_nand_16,_atomic_nand_16)\nATOMIC_OP_ALIAS(atomic_nand_ushort,_atomic_nand_16)\nSTRONG_ALIAS(_atomic_nand_ushort,_atomic_nand_16)\n\nENTRY_NP(__sync_fetch_and_nand_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_nand_2)\n\n\nENTRY_NP(_atomic_nand_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\tands\tr0, r0, r1\t\t/* calculate new value step 1 */\n\tmvns\tr0, r0\t\t\t/* ... complement for new value */\n\tstrexh\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_nand_16_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_16_nv,_atomic_nand_16_nv)\nATOMIC_OP_ALIAS(atomic_nand_ushort_nv,_atomic_nand_16_nv)\nSTRONG_ALIAS(_atomic_nand_ushort_nv,_atomic_nand_16_nv)\n\nENTRY_NP(__sync_nand_and_fetch_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_16_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_nand_and_fetch_2)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_16.S", "line_start": 41, "line_end": 84}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_32.S:1", "text": "/*\t$NetBSD: atomic_nand_32.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_nand_32)\n\tmov\tip, r0\n1:\tldrex\tr0, [ip]\t\t/* load old value (to be returned) */\n\tands\tr3, r0, r1\t\t/* calculate new value step 1 */\n\tmvns\tr3, r3\t\t\t/* ... complement for new value */\n\tstrex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32)\n\nENTRY_NP(__sync_fetch_and_nand_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_nand_4)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_32.S:2", "text": "strex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32)\n\nENTRY_NP(__sync_fetch_and_nand_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_nand_4)\n\n\nENTRY_NP(_atomic_nand_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\tands\tr0, r0, r1\t\t/* calculate new value step 1 */\n\tmvns\tr0, r0\t\t\t/* ... complement for new value */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_nand_32_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_32_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_32_nv)\n\nENTRY_NP(__sync_nand_and_fetch_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_nand_and_fetch_4)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_32.S", "line_start": 41, "line_end": 88}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_64.S:1", "text": "/*\t$NetBSD: atomic_nand_64.S,v 1.7 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_nand_64_nv)\n\tpush\t{r3, r4}\t\t/* save temporary */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tands\tr0, r0, r2\t\t/* calculate new value step 1 */\n\tands\tr1, r1, r3\t\t/* calculate new value step 2 */\n\tmvns\tr0, r0\t\t\t/* ... complement for new value */\n\tmvns\tr1, r1\t\t\t/* ... complement for new value */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_nand_64_nv)\n\nSTRONG_ALIAS(_atomic_nand_64,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_64_nv,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_64,_atomic_nand_64_nv)\n\nENTRY_NP(__sync_nand_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_64.S:2", "text": "mov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tands\tr0, r0, r2\t\t/* calculate new value step 1 */\n\tands\tr1, r1, r3\t\t/* calculate new value step 2 */\n\tmvns\tr0, r0\t\t\t/* ... complement for new value */\n\tmvns\tr1, r1\t\t\t/* ... complement for new value */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_nand_64_nv)\n\nSTRONG_ALIAS(_atomic_nand_64,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_64_nv,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_64,_atomic_nand_64_nv)\n\nENTRY_NP(__sync_nand_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_64_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_nand_and_fetch_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_64.S", "line_start": 41, "line_end": 66}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_8.S:1", "text": "/*\t$NetBSD: atomic_nand_8.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_nand_8)\n\tmov\tip, r0\n1:\tldrexb\tr0, [ip]\t\t/* load old value (to be returned) */\n\tands\tr3, r0, r1\t\t/* calculate new value step 1 */\n\tmvns\tr3, r3\t\t\t/* ... complement for new value */\n\tstrexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_nand_8)\n\nATOMIC_OP_ALIAS(atomic_nand_8,_atomic_nand_8)\nATOMIC_OP_ALIAS(atomic_nand_uchar,_atomic_nand_8)\nSTRONG_ALIAS(_atomic_nand_uchar,_atomic_nand_8)\n\nENTRY_NP(__sync_fetch_and_nand_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_nand_1)\n\n\nENTRY_NP(_atomic_nand_8_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_nand_8.S:2", "text": "strexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_nand_8)\n\nATOMIC_OP_ALIAS(atomic_nand_8,_atomic_nand_8)\nATOMIC_OP_ALIAS(atomic_nand_uchar,_atomic_nand_8)\nSTRONG_ALIAS(_atomic_nand_uchar,_atomic_nand_8)\n\nENTRY_NP(__sync_fetch_and_nand_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_nand_1)\n\n\nENTRY_NP(_atomic_nand_8_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\tands\tr0, r0, r1\t\t/* calculate new value step 1*/\n\tmvns\tr0, r0\t\t\t/* ... complement for new value */\n\tstrexb\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_nand_8_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_8_nv,_atomic_nand_8_nv)\nATOMIC_OP_ALIAS(atomic_nand_uchar_nv,_atomic_nand_8_nv)\nSTRONG_ALIAS(_atomic_nand_uchar_nv,_atomic_nand_8_nv)\n\nENTRY_NP(__sync_nand_and_fetch_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_nand_8_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_nand_and_fetch_1)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_nand_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_nand_8.S", "line_start": 41, "line_end": 84}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_16.S:1", "text": "/*\t$NetBSD: atomic_or_16.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_or_16)\n\tmov\tip, r0\n1:\tldrexh\tr0, [ip]\t\t/* load old value (to be returned) */\n\torrs\tr3, r0, r1\t\t/* calculate new value */\n\tstrexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_or_16)\n\nATOMIC_OP_ALIAS(atomic_or_16,_atomic_or_16)\nATOMIC_OP_ALIAS(atomic_or_ushort,_atomic_or_16)\nCRT_ALIAS(__atomic_fetch_or_2,_atomic_or_16)\nSTRONG_ALIAS(_atomic_or_ushort,_atomic_or_16)\n\nENTRY_NP(__sync_fetch_and_or_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_or_2)\n\n\nENTRY_NP(_atomic_or_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_16.S:2", "text": "bne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_or_16)\n\nATOMIC_OP_ALIAS(atomic_or_16,_atomic_or_16)\nATOMIC_OP_ALIAS(atomic_or_ushort,_atomic_or_16)\nCRT_ALIAS(__atomic_fetch_or_2,_atomic_or_16)\nSTRONG_ALIAS(_atomic_or_ushort,_atomic_or_16)\n\nENTRY_NP(__sync_fetch_and_or_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_or_2)\n\n\nENTRY_NP(_atomic_or_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\torrs\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexh\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_or_16_nv)\n\nATOMIC_OP_ALIAS(atomic_or_16_nv,_atomic_or_16_nv)\nATOMIC_OP_ALIAS(atomic_or_ushort_nv,_atomic_or_16_nv)\nSTRONG_ALIAS(_atomic_or_ushort_nv,_atomic_or_16_nv)\n\nENTRY_NP(__sync_or_and_fetch_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_16_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_or_and_fetch_2)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_16.S", "line_start": 41, "line_end": 81}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_32.S:1", "text": "/*\t$NetBSD: atomic_or_32.S,v 1.10 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_or_32)\n\tmov\tip, r0\n1:\tldrex\tr0, [ip]\t\t/* load old value (to be returned) */\n\torrs\tr3, r0, r1\t\t/* calculate new value */\n\tstrex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nCRT_ALIAS(__atomic_fetch_or_4,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\n\nENTRY_NP(__sync_fetch_and_or_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_or_4)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_32.S:2", "text": "bne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nCRT_ALIAS(__atomic_fetch_or_4,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\n\nENTRY_NP(__sync_fetch_and_or_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_or_4)\n\n\nENTRY_NP(_atomic_or_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\torrs\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_or_32_nv)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\n\nENTRY_NP(__sync_or_and_fetch_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_or_and_fetch_4)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_32.S", "line_start": 41, "line_end": 86}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_64.S:1", "text": "/*\t$NetBSD: atomic_or_64.S,v 1.14 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_or_64_nv)\n\tpush\t{r3, r4}\t\t/* save temporary */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\torrs\tr0, r0, r2\t\t/* calculate new value (return value) */\n\torrs\tr1, r1, r3\t\t/* calculate new value (return value) */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_or_64,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64,_atomic_or_64)\n\nENTRY_NP(__sync_or_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_64_nv\n\tDMB", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_64.S:2", "text": "mov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\torrs\tr0, r0, r2\t\t/* calculate new value (return value) */\n\torrs\tr1, r1, r3\t\t/* calculate new value (return value) */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_or_64,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64,_atomic_or_64)\n\nENTRY_NP(__sync_or_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_64_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_or_and_fetch_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_64.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_8.S:1", "text": "/*\t$NetBSD: atomic_or_8.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_or_8)\n\tmov\tip, r0\n1:\tldrexb\tr0, [ip]\t\t/* load old value (to be returned) */\n\torrs\tr3, r0, r1\t\t/* calculate new value */\n\tstrexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_or_8)\n\nATOMIC_OP_ALIAS(atomic_or_8,_atomic_or_8)\nATOMIC_OP_ALIAS(atomic_or_char,_atomic_or_8)\nCRT_ALIAS(__atomic_fetch_or_1,_atomic_or_8)\nSTRONG_ALIAS(_atomic_or_char,_atomic_or_8)\n\nENTRY_NP(__sync_fetch_and_or_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_or_1)\n\n\nENTRY_NP(_atomic_or_8_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_or_8.S:2", "text": "cmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_or_8)\n\nATOMIC_OP_ALIAS(atomic_or_8,_atomic_or_8)\nATOMIC_OP_ALIAS(atomic_or_char,_atomic_or_8)\nCRT_ALIAS(__atomic_fetch_or_1,_atomic_or_8)\nSTRONG_ALIAS(_atomic_or_char,_atomic_or_8)\n\nENTRY_NP(__sync_fetch_and_or_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_or_1)\n\n\nENTRY_NP(_atomic_or_8_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\torrs\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexb\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_or_8_nv)\n\nATOMIC_OP_ALIAS(atomic_or_8_nv,_atomic_or_8_nv)\nATOMIC_OP_ALIAS(atomic_or_char_nv,_atomic_or_8_nv)\nSTRONG_ALIAS(_atomic_or_char_nv,_atomic_or_8_nv)\n\nENTRY_NP(__sync_or_and_fetch_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_or_8_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_or_and_fetch_1)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_or_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_or_8.S", "line_start": 41, "line_end": 82}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_sub_64.S:1", "text": "/*\t$NetBSD: atomic_sub_64.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_sub_64_nv)\n\tpush\t{r3, r4}\t\t/* save temporary */\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n1:\tldrexd\tr0, [ip]\t\t/* load old value */\n\tsubs\tLO, LO, NLO\t\t/* calculate new value lo */\n\tsbcs\tHI, HI, NHI\t\t/* calculate new value hi */\n\tstrexd\tr4, r0, [ip]\t\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_sub_64_nv)\n\nSTRONG_ALIAS(_atomic_sub_64,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_64_nv,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_64,_atomic_sub_64)\n\nENTRY_NP(__sync_sub_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_sub_64_nv", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_sub_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_sub_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_sub_64.S:2", "text": "mov\tr2, r1\n#endif\n1:\tldrexd\tr0, [ip]\t\t/* load old value */\n\tsubs\tLO, LO, NLO\t\t/* calculate new value lo */\n\tsbcs\tHI, HI, NHI\t\t/* calculate new value hi */\n\tstrexd\tr4, r0, [ip]\t\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_sub_64_nv)\n\nSTRONG_ALIAS(_atomic_sub_64,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_64_nv,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_64,_atomic_sub_64)\n\nENTRY_NP(__sync_sub_and_fetch_8)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_sub_64_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_sub_and_fetch_8)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_sub_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_sub_64.S", "line_start": 41, "line_end": 66}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap.S:2", "text": "* for the SWP UNDEFINED exception enough information to \"patch\" this instance\n * SWP with correct forms of LDREX/STREX.  (note that this would happen even\n * \"read-only\" pages.  If the page gets tossed, we will get another exception\n * and fix yet again).\n */\n\nENTRY_NP(__sync_lock_test_and_set_4)\n\tDMB\n\t/* FALLTHROUGH */\n\nENTRY_NP(_atomic_swap_32)\n\tmov\tip, r0\n1:\n#if defined(_ARM_ARCH_6)\n\tldrex\tr0, [ip]\n\tcmp\tr0, r1\n#ifdef __thumb__\n\tbeq\t99f\n\tstrex\tr3, r1, [ip]\n\tcmp\tr3, #0\n#else\n\tstrexne\tr3, r1, [ip]\n\tcmpne\tr3, #0\n#endif\n#else\n\tswp\tr0, r1, [ip]\n\tcmp\tr0, r1\n\tmovsne\tr3, #0\n\tcmpne\tr3, #0\n#endif\n\tbne\t1b\n99:\n\tRET\nEND(_atomic_swap_32)\nEND(__sync_lock_test_and_set_4)\n\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)\nCRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_4)\n\tmov\tr1, #0\n\tDMB\n\n\tstr\tr1, [r0]\n\tRET\nEND(__sync_lock_release_4)\n#endif\n\nENTRY_NP(__sync_lock_test_and_set_1)\n\tDMB\n\t/* FALLTHROUGH */\n\nENTRY_NP(_atomic_swap_8)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap.S:3", "text": "CRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_4)\n\tmov\tr1, #0\n\tDMB\n\n\tstr\tr1, [r0]\n\tRET\nEND(__sync_lock_release_4)\n#endif\n\nENTRY_NP(__sync_lock_test_and_set_1)\n\tDMB\n\t/* FALLTHROUGH */\n\nENTRY_NP(_atomic_swap_8)\n\tmov\tip, r0\n1:\n#if defined(_ARM_ARCH_6)\n\tldrexb\tr0, [ip]\n\tstrexb\tr3, r1, [ip]\n#else\n\tswpb\tr0, r1, [ip]\n\tmov\tr3, #0\n#endif\n\tcmp\tr3, #0\n\tbne\t1b\n\tRET\nEND(_atomic_swap_8)\nEND(__sync_lock_test_and_set_1)\n\nATOMIC_OP_ALIAS(atomic_swap_8,_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_char,_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_uchar,_atomic_swap_8)\nCRT_ALIAS(__atomic_exchange_1,_atomic_swap_8)\nSTRONG_ALIAS(_atomic_swap_char,_atomic_swap_8)\nSTRONG_ALIAS(_atomic_swap_uchar,_atomic_swap_8)\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_1)\n\tmov\tr1, #0\n\tDMB\n\n\tstrb\tr1, [r0]\n\tRET\nEND(__sync_lock_release_1)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap.S", "line_start": 81, "line_end": 131}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap.S:4", "text": "STRONG_ALIAS(_atomic_swap_uchar,_atomic_swap_8)\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_1)\n\tmov\tr1, #0\n\tDMB\n\n\tstrb\tr1, [r0]\n\tRET\nEND(__sync_lock_release_1)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap.S", "line_start": 121, "line_end": 131}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap_16.S:1", "text": "/*\t$NetBSD: atomic_swap_16.S,v 1.7 2021/07/28 07:32:20 skrll Exp $ */\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_lock_test_and_set_2)\n\tDMB\n\t/* FALLTHROUGH */\n\nENTRY_NP(_atomic_swap_16)\n\tmov\tip, r0\n1:\n\tldrexh\tr0, [ip]\n\tstrexh\tr3, r1, [ip]\n\tcmp\tr3, #0\n\tbne\t1b\n\tRET\nEND(_atomic_swap_16)\nEND(__sync_lock_test_and_set_2)\n\nATOMIC_OP_ALIAS(atomic_swap_16,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_short,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_ushort,_atomic_swap_16)\nCRT_ALIAS(__atomic_exchange_2,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_short,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_ushort,_atomic_swap_16)\n\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_2)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap_16.S:2", "text": "mov\tip, r0\n1:\n\tldrexh\tr0, [ip]\n\tstrexh\tr3, r1, [ip]\n\tcmp\tr3, #0\n\tbne\t1b\n\tRET\nEND(_atomic_swap_16)\nEND(__sync_lock_test_and_set_2)\n\nATOMIC_OP_ALIAS(atomic_swap_16,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_short,_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_ushort,_atomic_swap_16)\nCRT_ALIAS(__atomic_exchange_2,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_short,_atomic_swap_16)\nSTRONG_ALIAS(_atomic_swap_ushort,_atomic_swap_16)\n\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_2)\n\tmov\tr1, #0\n\tDMB\n\tstrh\tr1, [r0]\n\tRET\nEND(__sync_lock_release_2)\n#endif\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap_16.S", "line_start": 41, "line_end": 67}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap_64.S:1", "text": "/*\t$NetBSD: atomic_swap_64.S,v 1.15 2021/08/01 21:58:56 andvar Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(__sync_lock_test_and_set_8)\n\tDMB\n\t/* FALLTHROUGH */\n\nENTRY_NP(_atomic_swap_64)\n\tpush\t{r3, r4}\t\t/* save temporary */\n\tmov\tip, r0\t\t\t/* return value will be in r0 */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\t\t\t/* r2 will be overwritten by r1 */\n\tmov\tr2, r1\t\t\t/* and r1 will be overwritten by ldrexd */\n#endif\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tstrexd\tr4, r2, r3, [ip]\t/* store new value */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*    no, try again */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\nEND(_atomic_swap_64)\nEND(__sync_lock_test_and_set_8)\n\n\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\nCRT_ALIAS(__atomic_exchange_8,_atomic_swap_64)\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_8)\n\tmov\tr2, #0\n\tmov\tr3, #0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_swap_64.S:2", "text": "mov\tr3, r2\t\t\t/* r2 will be overwritten by r1 */\n\tmov\tr2, r1\t\t\t/* and r1 will be overwritten by ldrexd */\n#endif\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tstrexd\tr4, r2, r3, [ip]\t/* store new value */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*    no, try again */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\nEND(_atomic_swap_64)\nEND(__sync_lock_test_and_set_8)\n\n\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\nCRT_ALIAS(__atomic_exchange_8,_atomic_swap_64)\n\n#if (!defined(_KERNEL) || !defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_8)\n\tmov\tr2, #0\n\tmov\tr3, #0\n\n\tDMB\n\tstrd\tr2, r3, [r0]\n\tRET\nEND(__sync_lock_release_8)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_swap_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_swap_64.S", "line_start": 41, "line_end": 66}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_16.S:1", "text": "/*\t$NetBSD: atomic_xor_16.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_xor_16)\n\tmov\tip, r0\n1:\tldrexh\tr0, [ip]\t\t/* load old value (to be returned) */\n\teors\tr3, r0, r1\t\t/* calculate new value */\n\tstrexh\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_xor_16)\n\nATOMIC_OP_ALIAS(atomic_xor_16,_atomic_xor_16)\nATOMIC_OP_ALIAS(atomic_xor_ushort,_atomic_xor_16)\nCRT_ALIAS(__atomic_fetch_xor_2,_atomic_xor_16)\nSTRONG_ALIAS(_atomic_xor_ushort,_atomic_xor_16)\n\nENTRY_NP(__sync_fetch_and_xor_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_xor_2)\n\n\nENTRY_NP(_atomic_xor_16_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_16.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_16.S:2", "text": "cmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_xor_16)\n\nATOMIC_OP_ALIAS(atomic_xor_16,_atomic_xor_16)\nATOMIC_OP_ALIAS(atomic_xor_ushort,_atomic_xor_16)\nCRT_ALIAS(__atomic_fetch_xor_2,_atomic_xor_16)\nSTRONG_ALIAS(_atomic_xor_ushort,_atomic_xor_16)\n\nENTRY_NP(__sync_fetch_and_xor_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_16\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_xor_2)\n\n\nENTRY_NP(_atomic_xor_16_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexh\tr0, [ip]\t\t/* load old value */\n\teors\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexh\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_xor_16_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_16_nv,_atomic_xor_16_nv)\nATOMIC_OP_ALIAS(atomic_xor_ushort_nv,_atomic_xor_16_nv)\nSTRONG_ALIAS(_atomic_xor_ushort_nv,_atomic_xor_16_nv)\n\nENTRY_NP(__sync_xor_and_fetch_2)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_16_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_xor_and_fetch_2)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_16.S", "line_start": 41, "line_end": 82}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_32.S:1", "text": "/*\t$NetBSD: atomic_xor_32.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_xor_32)\n\tmov\tip, r0\n1:\tldrex\tr0, [ip]\t\t/* load old value (to be returned) */\n\teors\tr3, r0, r1\t\t/* calculate new value */\n\tstrex\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nCRT_ALIAS(__atomic_fetch_xor_4,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\n\nENTRY_NP(__sync_fetch_and_xor_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_xor_4)\n\nENTRY_NP(_atomic_xor_32_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_32.S:2", "text": "bne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nCRT_ALIAS(__atomic_fetch_xor_4,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\n\nENTRY_NP(__sync_fetch_and_xor_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_32\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_xor_4)\n\nENTRY_NP(_atomic_xor_32_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrex\tr0, [ip]\t\t/* load old value */\n\teors\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrex\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_xor_32_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_32_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_uint_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_ulong_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_uint_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_ulong_nv,_atomic_xor_32_nv)\n\nENTRY_NP(__sync_xor_and_fetch_4)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_32_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_xor_and_fetch_4)\n\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_32.S", "line_start": 41, "line_end": 85}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_64.S:1", "text": "/*\t$NetBSD: atomic_xor_64.S,v 1.7 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_xor_64_nv)\n\tpush\t{r3, r4}\t\t/* save temporary */\n#ifndef __ARM_EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\teors\tr0, r0, r2\t\t/* calculate new value (return value) */\n\teors\tr1, r1, r3\t\t/* calculate new value (return value) */\n\tstrexd\tr4, r0, r1, [ip]\t/* try to store */\n\tcmp\tr4, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tpop\t{r3, r4}\t\t/* restore temporary */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_xor_64_nv)\n\nSTRONG_ALIAS(_atomic_xor_64,_atomic_xor_64_nv)\nATOMIC_OP_ALIAS(atomic_xor_64_nv,_atomic_xor_64_nv)\nATOMIC_OP_ALIAS(atomic_xor_64,_atomic_xor_64)\nCRT_ALIAS(__sync_xor_and_fetch_8,_atomic_xor_64_nv)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_64.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_8.S:1", "text": "/*\t$NetBSD: atomic_xor_8.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_atomic_xor_8)\n\tmov\tip, r0\n1:\tldrexb\tr0, [ip]\t\t/* load old value (to be returned) */\n\teors\tr3, r0, r1\t\t/* calculate new value */\n\tstrexb\tr2, r3, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_xor_8)\n\nATOMIC_OP_ALIAS(atomic_xor_8,_atomic_xor_8)\nATOMIC_OP_ALIAS(atomic_xor_uchar,_atomic_xor_8)\nCRT_ALIAS(__atomic_fetch_xor_1,_atomic_xor_8)\nSTRONG_ALIAS(_atomic_xor_uchar,_atomic_xor_8)\n\nENTRY_NP(__sync_fetch_and_xor_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_xor_1)\n\n\nENTRY_NP(_atomic_xor_8_nv)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/atomic_xor_8.S:2", "text": "cmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tRET\t\t\t\t/* return old value */\nEND(_atomic_xor_8)\n\nATOMIC_OP_ALIAS(atomic_xor_8,_atomic_xor_8)\nATOMIC_OP_ALIAS(atomic_xor_uchar,_atomic_xor_8)\nCRT_ALIAS(__atomic_fetch_xor_1,_atomic_xor_8)\nSTRONG_ALIAS(_atomic_xor_uchar,_atomic_xor_8)\n\nENTRY_NP(__sync_fetch_and_xor_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_8\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_fetch_and_xor_1)\n\n\nENTRY_NP(_atomic_xor_8_nv)\n\tmov\tip, r0\t\t\t/* need r0 for return value */\n1:\tldrexb\tr0, [ip]\t\t/* load old value */\n\teors\tr0, r0, r1\t\t/* calculate new value (return value) */\n\tstrexb\tr2, r0, [ip]\t\t/* try to store */\n\tcmp\tr2, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again? */\n\tRET\t\t\t\t/* return new value */\nEND(_atomic_xor_8_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_8_nv,_atomic_xor_8_nv)\nATOMIC_OP_ALIAS(atomic_xor_uchar_nv,_atomic_xor_8_nv)\nSTRONG_ALIAS(_atomic_xor_uchar_nv,_atomic_xor_8_nv)\n\nENTRY_NP(__sync_xor_and_fetch_1)\n\tpush\t{r4, lr}\n\tDMB\n\tbl\t_atomic_xor_8_nv\n\tDMB\n\tpop\t{r4, pc}\nEND(__sync_xor_and_fetch_1)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/atomic_xor_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/atomic_xor_8.S", "line_start": 41, "line_end": 82}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/membar_ops.S:1", "text": "/*\t$NetBSD: membar_ops.S,v 1.10 2022/04/09 23:32:51 riastradh Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(_membar_producer)\n\tDMBST\t\t/* store-before-store */\n\tRET\nEND(_membar_producer)\nATOMIC_OP_ALIAS(membar_producer,_membar_producer)\nATOMIC_OP_ALIAS(membar_write,_membar_producer)\nSTRONG_ALIAS(_membar_write,_membar_producer)\n\nENTRY_NP(_membar_sync)\n\tDMB\t\t/* load/store-before-load/store */\n\tRET\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_read,_membar_sync)\nSTRONG_ALIAS(__sync_synchronize,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_read,_membar_sync)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/membar_ops.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/membar_ops.S:2", "text": "STRONG_ALIAS(_membar_write,_membar_producer)\n\nENTRY_NP(_membar_sync)\n\tDMB\t\t/* load/store-before-load/store */\n\tRET\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_read,_membar_sync)\nSTRONG_ALIAS(__sync_synchronize,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_read,_membar_sync)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/membar_ops.S", "line_start": 41, "line_end": 62}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_1.S:1", "text": "/* $NetBSD: sync_bool_compare_and_swap_1.S,v 1.4 2021/07/28 07:32:20 skrll Exp $ */\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(__sync_bool_compare_and_swap_1)\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n\tmov\tr0, #0\t\t\t/* assume no match */\n1:\n\tldrexb\tr3, [ip]\t\t/* load old value */\n\tcmp\tr3, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrexb\tr0, r2, [ip]\t\t/* store new value */\n\tcmp\tr0, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n\tmov\tr0, #1\t\t\t/* it was a success */\n2:\tRET\t\t\t\t/* return. */\nEND(__sync_bool_compare_and_swap_1)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_1.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_1.S", "line_start": 1, "line_end": 58}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_2.S:1", "text": "/* $NetBSD: sync_bool_compare_and_swap_2.S,v 1.4 2021/07/28 07:32:20 skrll Exp $ */\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(__sync_bool_compare_and_swap_2)\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n\tmovs\tr0, #0\t\t\t/* assume failure */\n1:\n\tldrexh\tr3, [ip]\t\t/* load old value */\n\tcmp\tr3, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrexh\tr0, r2, [ip]\t\t/* store new value */\n\tcmp\tr0, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n\tmovs\tr0, #1\t\t\t/* indicate success */\n2:\tRET\t\t\t\t/* return. */\nEND(__sync_bool_compare_and_swap_2)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_2.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_2.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_4.S:1", "text": "/*\t$NetBSD: sync_bool_compare_and_swap_4.S,v 1.4 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(__sync_bool_compare_and_swap_4)\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n\tmovs\tr0, #0\t\t\t/* assume failure */\n1:\n\tldrex\tr3, [ip]\t\t/* load old value */\n\tcmp\tr3, r1\t\t\t/*   compare? */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     return if different */\n#else\n\tRETc(ne)\t\t\t/*     return if different */\n#endif\n\tstrex\tr0, r2, [ip]\t\t/* store new value */\n\tcmp\tr0, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n\tmovs\tr0, #1\t\t\t/* indicate success */\n2:\tRET\t\t\t\t/* return. */\nEND(__sync_bool_compare_and_swap_4)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_4.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_8.S:1", "text": "/*\t$NetBSD: sync_bool_compare_and_swap_8.S,v 1.5 2021/07/28 07:32:20 skrll Exp $\t*/\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\n/*\n * ARMv6 has load-exclusive/store-exclusive which works for both user\n * and kernel.\n */\nENTRY_NP(__sync_bool_compare_and_swap_8)\n\tpush\t{r4-r7}\t\t\t/* save temporaries */\n\tmov\tip, r0\t\t\t/* we need r0 for return value */\n\tmovs\tr0, #0\t\t\t/* assume failure */\n#ifdef __ARM_EABI__\n\tldrd\tr4, r5, [sp]\t\t/* fetch new value from stack */\n#else\n\tldr\tr4, [sp, #0]\t\t/* fetch new value from stack */\n\tldr\tr5, [sp, #4]\t\t/* fetch new value from stack */\n\tmov\tr3, r2\t\t\t/* r2 will be overwritten by r1 which ... */\n\tmov\tr2, r1\t\t\t/* r1 will be overwritten by ldrexd */\n#endif\n1:\n\tldrexd\tr6, r7, [ip]\t\t/* load current value */\n\tcmp\tr6, r2\t\t\t/*   compare to old? 1st half */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tcmp\tr7, r3\t\t\t/*   compare to old? 2nd half */\n#else\n\tcmpeq\tr7, r3\t\t\t/*   compare to old? 2nd half */\n#endif\n\tbne\t2f\t\t\t/*     jump to return if different */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_8.S:2", "text": "mov\tip, r0\t\t\t/* we need r0 for return value */\n\tmovs\tr0, #0\t\t\t/* assume failure */\n#ifdef __ARM_EABI__\n\tldrd\tr4, r5, [sp]\t\t/* fetch new value from stack */\n#else\n\tldr\tr4, [sp, #0]\t\t/* fetch new value from stack */\n\tldr\tr5, [sp, #4]\t\t/* fetch new value from stack */\n\tmov\tr3, r2\t\t\t/* r2 will be overwritten by r1 which ... */\n\tmov\tr2, r1\t\t\t/* r1 will be overwritten by ldrexd */\n#endif\n1:\n\tldrexd\tr6, r7, [ip]\t\t/* load current value */\n\tcmp\tr6, r2\t\t\t/*   compare to old? 1st half */\n#ifdef __thumb__\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tcmp\tr7, r3\t\t\t/*   compare to old? 2nd half */\n#else\n\tcmpeq\tr7, r3\t\t\t/*   compare to old? 2nd half */\n#endif\n\tbne\t2f\t\t\t/*     jump to return if different */\n\tstrexd\tr0, r4, r5, [ip]\t/* store new value */\n\tcmp\tr0, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     nope, try again. */\n\tmovs\tr0, #1\t\t\t/* indicate success */\n2:\tpop\t{r4-r7}\t\t\t/* restore temporaries */\n\tRET\t\t\t\t/* return. */\nEND(__sync_bool_compare_and_swap_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_8.S", "line_start": 41, "line_end": 69}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_fetch_and_add_8.S:1", "text": "/*\t$NetBSD: sync_fetch_and_add_8.S,v 1.6 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_fetch_and_add_8)\n\tpush\t{r4-r7}\n\tmov\tip, r0\n#ifndef __ARM__EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tDMB\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tadds\tTLO, LO, NLO\t\t/* calculate new value */\n\tadcs\tTHI, HI, NHI\t\t/* calculate new value */\n\tstrexd\tr6, r4, r5, [ip]\t/* try to store */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tDMB\n\tpop\t{r4-r7}\n\tRET\t\t\t\t/* return old value */\nEND(__sync_fetch_and_add_8)\n\nCRT_ALIAS(__atomic_fetch_add_8,__sync_fetch_and_add_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_fetch_and_add_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_fetch_and_add_8.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_fetch_and_and_8.S:1", "text": "/*\t$NetBSD: sync_fetch_and_and_8.S,v 1.6 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_fetch_and_and_8)\n\tpush\t{r4-r7}\n\tmov\tip, r0\n#ifndef __ARM__EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tDMB\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tands\tr4, r0, r2\t\t/* calculate new value */\n\tands\tr5, r1, r3\t\t/* calculate new value */\n\tstrexd\tr6, r4, r5, [ip]\t/* try to store */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tDMB\n\tpop\t{r4-r7}\n\tRET\t\t\t\t/* return old value */\nEND(__sync_fetch_and_and_8)\n\nCRT_ALIAS(__atomic_fetch_and_8,__sync_fetch_and_and_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_fetch_and_and_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_fetch_and_and_8.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_fetch_and_nand_8.S:1", "text": "/*\t$NetBSD: sync_fetch_and_nand_8.S,v 1.6 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_fetch_and_nand_8)\n\tpush\t{r4-r7}\n\tmov\tip, r0\n#ifndef __ARM__EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tDMB\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tands\tr4, r0, r2\t\t/* calculate new value step 1 */\n\tands\tr5, r1, r3\t\t/* calculate new value step 1 */\n\tmvns\tr4, r4\t\t\t/* complement new value */\n\tmvns\tr5, r5\t\t\t/* complement new value */\n\tstrexd\tr6, r4, r5, [ip]\t/* try to store */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tDMB\n\tpop\t{r4-r7}\n\tRET\t\t\t\t/* return old value */\nEND(__sync_fetch_and_nand_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_fetch_and_nand_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_fetch_and_nand_8.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_fetch_and_or_8.S:1", "text": "/*\t$NetBSD: sync_fetch_and_or_8.S,v 1.6 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_fetch_and_or_8)\n\tpush\t{r4-r7}\n\tmov\tip, r0\n#ifndef __ARM__EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tDMB\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\torrs\tr4, r0, r2\t\t/* calculate new value */\n\torrs\tr5, r1, r3\t\t/* calculate new value */\n\tstrexd\tr6, r4, r5, [ip]\t/* try to store */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tDMB\n\tpop\t{r4-r7}\n\tRET\t\t\t\t/* return old value */\nEND(__sync_fetch_and_or_8)\n\nCRT_ALIAS(__atomic_fetch_or_8,__sync_fetch_and_or_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_fetch_and_or_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_fetch_and_or_8.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_fetch_and_sub_8.S:1", "text": "/*\t$NetBSD: sync_fetch_and_sub_8.S,v 1.6 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_fetch_and_sub_8)\n\tpush\t{r4-r7}\n\tmov\tip, r0\n#ifndef __ARM__EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tDMB\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\tsubs\tTLO, LO, NLO\t\t/* calculate new value */\n\tsbcs\tTHI, HI, NHI\t\t/* calculate new value */\n\tstrexd\tr6, r4, r5, [ip]\t/* try to store */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tDMB\n\tpop\t{r4-r7}\n\tRET\t\t\t\t/* return old value */\nEND(__sync_fetch_and_sub_8)\n\nCRT_ALIAS(__atomic_fetch_sub_8,__sync_fetch_and_sub_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_fetch_and_sub_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_fetch_and_sub_8.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/atomic/sync_fetch_and_xor_8.S:1", "text": "/*\t$NetBSD: sync_fetch_and_xor_8.S,v 1.6 2021/07/28 07:32:20 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n#if defined(_ARM_ARCH_6)\n\nENTRY_NP(__sync_fetch_and_xor_8)\n\tpush\t{r4-r7}\n\tmov\tip, r0\n#ifndef __ARM__EABI__\n\tmov\tr3, r2\n\tmov\tr2, r1\n#endif\n\tDMB\n1:\tldrexd\tr0, r1, [ip]\t\t/* load old value */\n\teors\tr4, r0, r2\t\t/* calculate new value */\n\teors\tr5, r1, r3\t\t/* calculate new value */\n\tstrexd\tr6, r4, r5, [ip]\t/* try to store */\n\tcmp\tr6, #0\t\t\t/*   succeed? */\n\tbne\t1b\t\t\t/*     no, try again */\n\tDMB\n\tpop\t{r4-r7}\n\tRET\t\t\t\t/* return old value */\nEND(__sync_fetch_and_xor_8)\n\nCRT_ALIAS(__atomic_fetch_xor_8,__sync_fetch_and_xor_8)\n\n#endif /* _ARM_ARCH_6 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/atomic/sync_fetch_and_xor_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/atomic/sync_fetch_and_xor_8.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/gen/byte_swap_2.S:1", "text": "/*\t$NetBSD: byte_swap_2.S,v 1.6 2013/08/19 03:44:18 matt Exp $\t*/\n\n/*-\n * Copyright (c) 1999 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Charles M. Hannum.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define FUNC _C_LABEL(bswap16)\n#else\n#define FUNC _C_LABEL(__bswap16)\n#endif\n\nENTRY(FUNC)\n#ifdef _ARM_ARCH_6\n\trev16\t\tr0, r0\n#elif !defined(__thumb__)\n\tand\t\tr1, r0, #0xff\n\tmov\t\tr0, r0, lsr #8\n\torr\t\tr0, r0, r1, lsl #8\n#else\n\tmovs\t\tr2, #0xff\n\tmovs\t\tr1, r0\n\tands\t\tr1, r1, r2\n\tlsls\t\tr1, r1, #8\n\tlsrs\t\tr0, r0, #8\n\tands\t\tr0, r0, r2\n\torrs\t\tr0, r0, r1\n#endif\n\tRET\nEND(FUNC)\n#if BYTE_ORDER == LITTLE_ENDIAN\nSTRONG_ALIAS(_C_LABEL(ntohs), FUNC)\nSTRONG_ALIAS(_C_LABEL(htons), FUNC)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/gen/byte_swap_2.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/gen/byte_swap_2.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/gen/byte_swap_2.S:2", "text": "#ifdef _ARM_ARCH_6\n\trev16\t\tr0, r0\n#elif !defined(__thumb__)\n\tand\t\tr1, r0, #0xff\n\tmov\t\tr0, r0, lsr #8\n\torr\t\tr0, r0, r1, lsl #8\n#else\n\tmovs\t\tr2, #0xff\n\tmovs\t\tr1, r0\n\tands\t\tr1, r1, r2\n\tlsls\t\tr1, r1, #8\n\tlsrs\t\tr0, r0, #8\n\tands\t\tr0, r0, r2\n\torrs\t\tr0, r0, r1\n#endif\n\tRET\nEND(FUNC)\n#if BYTE_ORDER == LITTLE_ENDIAN\nSTRONG_ALIAS(_C_LABEL(ntohs), FUNC)\nSTRONG_ALIAS(_C_LABEL(htons), FUNC)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/gen/byte_swap_2.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/gen/byte_swap_2.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/arm/gen/byte_swap_4.S:1", "text": "/*\t$NetBSD: byte_swap_4.S,v 1.9 2020/12/11 09:02:33 dholland Exp $\t*/\n\n/*-\n * Copyright (c) 1997 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Neil A. Carson\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define\tFUNC\t_C_LABEL(bswap32)\n#else\n#define\tFUNC\t_C_LABEL(__bswap32)\n#endif\nENTRY(FUNC)\n#ifdef _ARM_ARCH_6\n\trev\tr0, r0\n#elif !defined(__thumb__)\n\teor\tr1, r0, r0, ror #16\t/* d.c.b.a -> db.ca.db.ca */\n\tbic\tr1, r1, #0x00FF0000\t/* db.ca.db.ca -> db.0.db.ca */\n\tmov\tr0, r0, ror #8\t\t/* d.c.b.a -> a.d.c.b */\n\teor\tr0, r0, r1, lsr #8\t/* a.d.c.b ^ 0.db.0.db -> a.b.c.d */\n#else\n\tmovs\tr3, #16\n\tlsls\tr1, r0, #8\t\t/* d.c.b.a -> c.b.a.0 */\n\tlsrs\tr0, r0, #8\t\t/* d.c.b.a -> 0.d.c.b */\n\trors\tr1, r3\t\t\t/* c.b.a.0 -> a.0.c.b */\n\trors\tr0, r3\t\t\t/* 0.d.c.b -> c.b.0.d */\n\tlsrs\tr1, r1, #8\t\t/* a.0.c.b -> 0.a.0.c */\n\tlsls\tr1, r1, #8\t\t/* 0.a.0.c -> a.0.c.0 */\n\tlsls\tr0, r0, #8\t\t/* c.b.0.d -> b.0.d.0 */\n\tlsrs\tr0, r0, #8\t\t/* b.0.d.0 -> 0.b.0.d */\n\torrs\tr0, r0, r1\t\t/* a.0.c.0 | 0.b.0.d -> a.b.c.d */\n#endif\n\tRET\nEND(FUNC)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/gen/byte_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/gen/byte_swap_4.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/gen/byte_swap_4.S:2", "text": "rev\tr0, r0\n#elif !defined(__thumb__)\n\teor\tr1, r0, r0, ror #16\t/* d.c.b.a -> db.ca.db.ca */\n\tbic\tr1, r1, #0x00FF0000\t/* db.ca.db.ca -> db.0.db.ca */\n\tmov\tr0, r0, ror #8\t\t/* d.c.b.a -> a.d.c.b */\n\teor\tr0, r0, r1, lsr #8\t/* a.d.c.b ^ 0.db.0.db -> a.b.c.d */\n#else\n\tmovs\tr3, #16\n\tlsls\tr1, r0, #8\t\t/* d.c.b.a -> c.b.a.0 */\n\tlsrs\tr0, r0, #8\t\t/* d.c.b.a -> 0.d.c.b */\n\trors\tr1, r3\t\t\t/* c.b.a.0 -> a.0.c.b */\n\trors\tr0, r3\t\t\t/* 0.d.c.b -> c.b.0.d */\n\tlsrs\tr1, r1, #8\t\t/* a.0.c.b -> 0.a.0.c */\n\tlsls\tr1, r1, #8\t\t/* 0.a.0.c -> a.0.c.0 */\n\tlsls\tr0, r0, #8\t\t/* c.b.0.d -> b.0.d.0 */\n\tlsrs\tr0, r0, #8\t\t/* b.0.d.0 -> 0.b.0.d */\n\torrs\tr0, r0, r1\t\t/* a.0.c.0 | 0.b.0.d -> a.b.c.d */\n#endif\n\tRET\nEND(FUNC)\n\n#if BYTE_ORDER == LITTLE_ENDIAN\nSTRONG_ALIAS(_C_LABEL(ntohl), FUNC)\nSTRONG_ALIAS(_C_LABEL(htonl), FUNC)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/gen/byte_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/gen/byte_swap_4.S", "line_start": 41, "line_end": 65}
{"id": "NetBSD/src:common/lib/libc/arch/arm/gen/neon_mask.S:1", "text": "/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#ifdef _ARM_ARCH_7\n\nRCSID(\"$NetBSD: neon_mask.S,v 1.2 2012/12/18 06:14:23 matt Exp $\")\n\n/*\n * __neon_loading_qword_bitmask(size_t len);\n *  IN\tr0 = length of mask in bits\n * OUT\tq0 = mask\n */\nENTRY(__neon_leading_qword_bitmask)\n\tcmp\t\tr0, #64\t\t/* which dword is partial? */\n#ifdef __ARMEL__\n\tsublt\t\tr0, r0, #64\t/* 1st dword needs MSBs cleared */\n\tsubge\t\tr1, r0, #128\t/* 2nd dword needs MSBs cleared */\n#else\n\trsblt\t\tr0, r0, #64\t/* 1st dword needs LSBs cleared */\n\trsbge\t\tr1, r0, #128\t/* 2nd dword needs LSBs cleared */\n#endif\n\tmovge\t\tr0, #0\t\t/* 1st dword needs to left alone */\n\tmovlt\t\tr1, #64\t\t/* 2st dword needs to be cleared */\n\tvmov\t\td2, r0, r1\t/* move dword shifts to SIMD */\n\tvmovl.u32\tq1, d2\t\t/* 2 U32 -> 2 U64 */\n\tvmvn.u64\tq0, #0\t\t/* create a mask */\n\tvshl.u64\tq0, q0, q1\t/* shift out unneeded bytes */\n\tRET\nEND(__neon_leading_qword_bitmask)\n\n#endif\t/* _ARM_ARCH_7 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/gen/neon_mask.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/gen/neon_mask.S", "line_start": 1, "line_end": 59}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:2", "text": "#define\tAHI\tr1\t/* incoming numerator, outgoing quotient */\n#define\tBLO\tr2\t/* incoming denominator, outgoing remainder */\n#define\tBHI\tr3\t/* incoming denominator, outgoing remainder */\n#endif\n\nENTRY(__aeabi_ldivmod)\n#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.fnstart\n# endif\n\t.cfi_startproc\n#endif\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n#if !defined(__thumb__)\n\torrs\tip, BLO, BHI\n\tbeq\t.Ldivbyzero\n#elif defined(_ARM_ARCH_T2)\n\tcbnz\tBLO, 1f\n\tcbz\tBHI, .Ldivbyzero\n#else\n\tcmp\tBLO, #0\n\tbne\t1f\n\tcmp\tBHI, #0\n\tbeq\t.Ldivbyzero\n#endif\n1:\n#endif\n\n\tpush\t{r4-r6, lr}\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset 6, -8\n\t.cfi_offset 5, -12\n\t.cfi_offset 4, -16\n#endif\n#define\tNEG\tr5\n\tmovs\tNEG, #0\n\n\tcmp\tBHI, #0\n\tbge\t2f\n\tmovs\tNEG, #1\t\t/* flip quotient sign */\n\tbl\t.Lnegate_b\n\tbcs\t.Lmaxdenom\n\n2:\n\tcmp\tAHI, #0\n#ifdef __thumb__\n\tbge\t3f\n\tmovs\tr4, #3\n\teors\tNEG, NEG, r4\t/* flip quotient sign, flip remainder sign */\n\tbl\t.Lnegate_a\n3:\n#else\n\teorlt\tNEG, NEG, #3\t/* flip quotient sign, flip remainder sign */\n\tbllt\t.Lnegate_a\n#endif\n\n\t/*\n\t * Arguments are setup, allocate some stack for the remainder", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:3", "text": "bge\t2f\n\tmovs\tNEG, #1\t\t/* flip quotient sign */\n\tbl\t.Lnegate_b\n\tbcs\t.Lmaxdenom\n\n2:\n\tcmp\tAHI, #0\n#ifdef __thumb__\n\tbge\t3f\n\tmovs\tr4, #3\n\teors\tNEG, NEG, r4\t/* flip quotient sign, flip remainder sign */\n\tbl\t.Lnegate_a\n3:\n#else\n\teorlt\tNEG, NEG, #3\t/* flip quotient sign, flip remainder sign */\n\tbllt\t.Lnegate_a\n#endif\n\n\t/*\n\t * Arguments are setup, allocate some stack for the remainder\n\t * and call __qdivrem for the heavy lifting.\n\t */\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 32\n#endif\n\tsub\tsp, sp, #16\n#if !defined(__thumb__) || defined(_ARM_ARCH_T2)\n\tadds\tr4, sp, #8\n#else\n\tmov\tr4, sp\n\tadds\tr4, r4, #8\n#endif\n\tstr\tr4, [sp]\n\tbl\tPLT_SYM(__qdivrem)\n\tadd\tsp, sp, #8\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 24\n\t.cfi_offset 3, -20\n\t.cfi_offset 2, -24\n#endif\n\n\t/*\n\t * The quotient is already in the right place and neither value\n\t * needs its sign flipped.\n\t */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tNEG, .Lnegate_neither\n#else\n\tcmp\tNEG, #0\t\t/* any signs to flip? */\n\tbeq\t.Lnegate_neither\n#endif\n\n\tcmp\tNEG, #2\t\t/* does remainder need to be negative? */\n\tbeq\t.Lnegate_b_only\t/* 2 means b only */\n\tbgt\t.Lnegate_both\t/* 3 means both */\n.Lnegate_a_only:\n\tbl\t.Lnegate_a\t/* 1 means a only */\n.Lnegate_neither:\n\tpop\t{r2-r6, pc}\t/* grab b from stack */\n.Lnegate_both:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:4", "text": "/*\n\t * The quotient is already in the right place and neither value\n\t * needs its sign flipped.\n\t */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tNEG, .Lnegate_neither\n#else\n\tcmp\tNEG, #0\t\t/* any signs to flip? */\n\tbeq\t.Lnegate_neither\n#endif\n\n\tcmp\tNEG, #2\t\t/* does remainder need to be negative? */\n\tbeq\t.Lnegate_b_only\t/* 2 means b only */\n\tbgt\t.Lnegate_both\t/* 3 means both */\n.Lnegate_a_only:\n\tbl\t.Lnegate_a\t/* 1 means a only */\n.Lnegate_neither:\n\tpop\t{r2-r6, pc}\t/* grab b from stack */\n.Lnegate_both:\n\tbl\t.Lnegate_a\n.Lnegate_b_only:\n\tpop\t{r2-r3}\t\t/* get remainder */\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 16\n#endif\n\tbl\t.Lnegate_b\t/* negate it */\n\tpop\t{r4-r6, pc}\n\n\t.align\t0\n.Lnegate_a:\n#ifdef __thumb__\n\tmovs\tr4, AHI\n\tmovs\tAHI, #0\n\tnegs\tALO, ALO\n\tsbcs\tAHI, AHI, r4\n#else\n\tnegs\tALO, ALO\n\trsc\tAHI, AHI, #0\n#endif\n\tRET\n\n\t.align\t0\n.Lnegate_b:\n#ifdef __thumb__\n\tmovs\tr4, BHI\n\tmovs\tBHI, #0\n\tnegs\tBLO, BLO\n\tsbcs\tBHI, BHI, r4\n#else\n\tnegs\tBLO, BLO\n\trsc\tBHI, BHI, #0\n#endif\n\tRET\n\n\t.align\t0\n.Lmaxdenom:\n\t/*\n\t * We had a carry so the denominator must have INT64_MIN\n\t * Also BLO and BHI never changed values so we can use", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:5", "text": "RET\n\n\t.align\t0\n.Lnegate_b:\n#ifdef __thumb__\n\tmovs\tr4, BHI\n\tmovs\tBHI, #0\n\tnegs\tBLO, BLO\n\tsbcs\tBHI, BHI, r4\n#else\n\tnegs\tBLO, BLO\n\trsc\tBHI, BHI, #0\n#endif\n\tRET\n\n\t.align\t0\n.Lmaxdenom:\n\t/*\n\t * We had a carry so the denominator must have INT64_MIN\n\t * Also BLO and BHI never changed values so we can use\n\t * them to see if the numerator has the same value.  We\n\t * don't have to worry about sign.\n\t */\n\tcmp\tBHI, AHI\n#ifdef __thumb__\n\tbne\t1f\n\tcmp\tBLO, ALO\n#else\n\tcmpeq\tBLO, ALO\n#endif\n\tbne\t1f\n\n\t/*\n\t * They were equal, so we return a quotient of 1 and remainder of 0.\n\t */\n\tmovs\tALO, #1\n\tmovs\tAHI, #0\n\tmovs\tBLO, #0\n\tmovs\tBHI, #0\n\tpop\t{r4-r6, pc}\n\n\t/*\n\t * Our remainder must be the numerator and our quotient is 0.\n\t */\n\t.align\t0\n1:\tmovs\tBLO, ALO\n\tmovs\tBHI, AHI\n\tmovs\tALO, #0\n\tmovs\tAHI, #0\n\tpop\t{r4-r6, pc}\n\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n\t.align\t0\n.Ldivbyzero:\n\tpush\t{r0-r1,r4,lr}\n#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r0-r1,r4,lr}\n# endif\n\t.cfi_def_cfa_offset 16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:6", "text": "/*\n\t * Our remainder must be the numerator and our quotient is 0.\n\t */\n\t.align\t0\n1:\tmovs\tBLO, ALO\n\tmovs\tBHI, AHI\n\tmovs\tALO, #0\n\tmovs\tAHI, #0\n\tpop\t{r4-r6, pc}\n\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n\t.align\t0\n.Ldivbyzero:\n\tpush\t{r0-r1,r4,lr}\n#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r0-r1,r4,lr}\n# endif\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset  4, -8\n#endif\n\tcmp\tAHI, #0\n#if !defined(__thumb__) || defined(_ARM_ARCH_T2)\n#ifdef __thumb__\n\tittee\tge\n#endif\n\tmvnge\tALO, #0\n\tmvnge\tAHI, #0x80000000\n\tmovlt\tALO, #0\n\tmovlt\tAHI, #0x80000000\n#else\n\tblt\t1f\n\tmovs\tALO, #0\n\tmvns\tALO, ALO\n\tmov\tAHI, ALO\n\tlsrs\tAHI, AHI, #1\n\tb\t2f\n1:\n\tmovs\tALO, #0\n\tmovs\tAHI, #1\n\tlsls\tAHI, AHI, #31\n2:\n#endif /* __thumb__ && !_ARM_ARCH_T2 */\n\tbl\tPLT_SYM(__aeabi_ldiv0)\n\tpop\t{r2-r4, pc}\n#endif\t/* !_KERNEL && !_STANDALONE */\n#ifdef __ARM_EABI__\n\t.cfi_endproc\n# if !defined(__ARM_DWARF_EH__)\n\t.fnend\n# endif\n#endif\nEND(__aeabi_ldivmod)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "line_start": 201, "line_end": 255}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:7", "text": "movs\tALO, #0\n\tmovs\tAHI, #1\n\tlsls\tAHI, AHI, #31\n2:\n#endif /* __thumb__ && !_ARM_ARCH_T2 */\n\tbl\tPLT_SYM(__aeabi_ldiv0)\n\tpop\t{r2-r4, pc}\n#endif\t/* !_KERNEL && !_STANDALONE */\n#ifdef __ARM_EABI__\n\t.cfi_endproc\n# if !defined(__ARM_DWARF_EH__)\n\t.fnend\n# endif\n#endif\nEND(__aeabi_ldivmod)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S", "line_start": 241, "line_end": 255}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S:1", "text": "/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: __aeabi_uldivmod.S,v 1.9 2014/05/06 16:02:11 joerg Exp $\")\n\n/*\n * typedef struct { unsigned long long quo, rem } ulldiv_t;\n * __value_in_regs ulldiv_t __aeabi_uldivmod(unsigned long long n,\n *\tunsigned long long d);\n */\n\nENTRY(__aeabi_uldivmod)\n#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.fnstart\n#endif\n\t.cfi_startproc\n#endif\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n#if !defined(__thumb__)\n\torrs\tip, r2, r3\n\tbeq\t.Ldivbyzero\n#elif defined(_ARM_ARCH_T2)\n\tcbnz\tr2, 1f\n\tcbz\tr3, .Ldivbyzero\n1:\n#else\n\tcmp\tr2, #0\n\tbne\t1f\n\tcmp\tr3, #0\n\tbeq\t.Ldivbyzero\n1:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S:2", "text": "#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.fnstart\n#endif\n\t.cfi_startproc\n#endif\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n#if !defined(__thumb__)\n\torrs\tip, r2, r3\n\tbeq\t.Ldivbyzero\n#elif defined(_ARM_ARCH_T2)\n\tcbnz\tr2, 1f\n\tcbz\tr3, .Ldivbyzero\n1:\n#else\n\tcmp\tr2, #0\n\tbne\t1f\n\tcmp\tr3, #0\n\tbeq\t.Ldivbyzero\n1:\n#endif\n#endif\n\n\tpush\t{r4,lr}\n#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r4,lr}\n# endif\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 14, -4\n\t.cfi_offset 4, -8\n#endif\n\tsub\tsp, sp, #16\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 24\n#endif\n#if !defined(__thumb__) || defined(_ARM_ARCH_T2)\n\tadd\tr4, sp, #8\n#else\n\tmov\tr4, sp\n\tadds\tr4, r4, #8\n#endif\n\tstr\tr4, [sp]\n\tbl\tPLT_SYM(__qdivrem)\n\tadd\tsp, sp, #8\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 3, -12\n\t.cfi_offset 2, -16\n#endif\n\t/*\n\t * The remainder is already on the stack just waiting to be popped\n\t * into r2/r3.\n\t */\n\tpop\t{r2-r4,pc}\n\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n.Ldivbyzero:\n\tpush\t{r0-r1,r4,lr}\n#ifdef __ARM_EABI__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S:3", "text": "adds\tr4, r4, #8\n#endif\n\tstr\tr4, [sp]\n\tbl\tPLT_SYM(__qdivrem)\n\tadd\tsp, sp, #8\n#ifdef __ARM_EABI__\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 3, -12\n\t.cfi_offset 2, -16\n#endif\n\t/*\n\t * The remainder is already on the stack just waiting to be popped\n\t * into r2/r3.\n\t */\n\tpop\t{r2-r4,pc}\n\n#if !defined(_KERNEL) && !defined(_STANDALONE)\n.Ldivbyzero:\n\tpush\t{r0-r1,r4,lr}\n#ifdef __ARM_EABI__\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r0-r1,r4,lr}\n# endif\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset 4, -8\n#endif\n#ifdef __thumb__\n\tmovs\tr0, #0\n\tmvns\tr0, r0\n#else\n\tmvn\tr0, #0\n#endif\n\tmovs\tr1, r0\n\tbl\tPLT_SYM(__aeabi_ldiv0)\n\tpop\t{r2-r4,pc}\n#endif\n#ifdef __ARM_EABI__\n\t.cfi_endproc\n# if !defined(__ARM_DWARF_EH__)\n\t.fnend\n# endif\n#endif\nEND(__aeabi_uldivmod)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S", "line_start": 81, "line_end": 124}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/ffs.S:2", "text": "* On ARMv5 we use CLZ (count leading Zero's) and then subtract the result\n * from 32.\n *\n * This is the ffs algorithm devised by d.seal and posted to comp.sys.arm on\n * 16 Feb 1994.\n */\n#ifndef _RUMPKERNEL\nSTRONG_ALIAS(__ffssi2,ffs)\n#endif\n#if (defined(_ARM_ARCH_5) && !defined(__thumb__)) || defined(_ARM_ARCH_T2)\n#if defined(_ARM_ARCH_T2)\nENTRY(ffs)\n#else\nARM_ENTRY(ffs)\n#endif\n\t/* (X & -X) gives LSB or zero.  */\n \tneg\tr1, r0\n \tand\tr0, r0, r1\n\tclz\tr0, r0\n\trsb\tr0, r0, #32\n\tRET\nEND(ffs)\n#else\nARM_ENTRY(ffs)\n\t/* Standard trick to isolate bottom bit in r0 or 0 if r0 = 0 on entry */\n \tneg     r1, r0\n \tands    r0, r0, r1\n\t/*\n\t * now r0 has at most one set bit, call this X\n\t * if X = 0, all further instructions are skipped\n\t */\n\tadrne   r2, .L_ffs_table\n\torrne   r0, r0, r0, lsl #4  /* r0 = X * 0x11 */\n\torrne   r0, r0, r0, lsl #6  /* r0 = X * 0x451 */\n\trsbne   r0, r0, r0, lsl #16 /* r0 = X * 0x0450fbaf */\n\n\t/* now lookup in table indexed on top 6 bits of r0 */\n\tldrbne  r0, [r2, r0, lsr #26]\n\n        RET\n.text;\n.type .L_ffs_table, _ASM_TYPE_OBJECT;\n.L_ffs_table:\n/*               0   1   2   3   4   5   6   7           */\n\t.byte\t 0,  1,  2, 13,  3,  7,  0, 14  /*  0- 7 */\n\t.byte\t 4,  0,  8,  0,  0,  0,  0, 15  /*  8-15 */\n\t.byte\t11,  5,  0,  0,  9,  0,  0, 26  /* 16-23 */\n\t.byte\t 0,  0,  0,  0,  0, 22, 28, 16  /* 24-31 */\n\t.byte\t32, 12,  6,  0,  0,  0,  0,  0\t/* 32-39 */\n\t.byte\t10,  0,  0, 25,  0,  0, 21, 27  /* 40-47 */\n\t.byte\t31,  0,  0,  0,  0, 24,  0, 20  /* 48-55 */\n\t.byte   30,  0, 23, 19, 29, 18, 17,  0  /* 56-63 */\nEND(ffs)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/ffs.S", "line_start": 41, "line_end": 94}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/ffs.S:3", "text": ".text;\n.type .L_ffs_table, _ASM_TYPE_OBJECT;\n.L_ffs_table:\n/*               0   1   2   3   4   5   6   7           */\n\t.byte\t 0,  1,  2, 13,  3,  7,  0, 14  /*  0- 7 */\n\t.byte\t 4,  0,  8,  0,  0,  0,  0, 15  /*  8-15 */\n\t.byte\t11,  5,  0,  0,  9,  0,  0, 26  /* 16-23 */\n\t.byte\t 0,  0,  0,  0,  0, 22, 28, 16  /* 24-31 */\n\t.byte\t32, 12,  6,  0,  0,  0,  0,  0\t/* 32-39 */\n\t.byte\t10,  0,  0, 25,  0,  0, 21, 27  /* 40-47 */\n\t.byte\t31,  0,  0,  0,  0, 24,  0, 20  /* 48-55 */\n\t.byte   30,  0, 23, 19, 29, 18, 17,  0  /* 56-63 */\nEND(ffs)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/ffs.S", "line_start": 81, "line_end": 94}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcmp.S:2", "text": "* Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: memcmp.S,v 1.5 2015/03/26 13:34:51 justin Exp $\")\n\nENTRY(memcmp)\n\tmov\tip, r0\n#if defined(_KERNEL) && !defined(_STANDALONE)\n\tcmp\tr2, #0x06\n\tbeq\t.Lmemcmp_6bytes\n#endif\n\tmov\tr0, #0x00\n\n\t/* Are both addresses aligned the same way? */\n\tcmp\tr2, #0x00\n\teorsne\tr3, ip, r1\n\tRETc(eq)\t\t\t/* len == 0, or same addresses! */\n\ttst\tr3, #0x03\n\tsubne\tr2, r2, #0x01\n\tbne\t.Lmemcmp_bytewise2\t/* Badly aligned. Do it the slow way */\n\n\t/* Word-align the addresses, if necessary */\n\tsub\tr3, r1, #0x05\n\tands\tr3, r3, #0x03\n\tadd\tr3, r3, r3, lsl #1\n\taddne\tpc, pc, r3, lsl #3\n\tnop\n\n\t/* Compare up to 3 bytes */\n\tldrb\tr0, [ip], #0x01\n\tldrb\tr3, [r1], #0x01\n\tsubs\tr0, r0, r3\n\tRETc(ne)\n\tsubs\tr2, r2, #0x01\n\tRETc(eq)\n\n\t/* Compare up to 2 bytes */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcmp.S:3", "text": "tst\tr3, #0x03\n\tsubne\tr2, r2, #0x01\n\tbne\t.Lmemcmp_bytewise2\t/* Badly aligned. Do it the slow way */\n\n\t/* Word-align the addresses, if necessary */\n\tsub\tr3, r1, #0x05\n\tands\tr3, r3, #0x03\n\tadd\tr3, r3, r3, lsl #1\n\taddne\tpc, pc, r3, lsl #3\n\tnop\n\n\t/* Compare up to 3 bytes */\n\tldrb\tr0, [ip], #0x01\n\tldrb\tr3, [r1], #0x01\n\tsubs\tr0, r0, r3\n\tRETc(ne)\n\tsubs\tr2, r2, #0x01\n\tRETc(eq)\n\n\t/* Compare up to 2 bytes */\n\tldrb\tr0, [ip], #0x01\n\tldrb\tr3, [r1], #0x01\n\tsubs\tr0, r0, r3\n\tRETc(ne)\n\tsubs\tr2, r2, #0x01\n\tRETc(eq)\n\n\t/* Compare 1 byte */\n\tldrb\tr0, [ip], #0x01\n\tldrb\tr3, [r1], #0x01\n\tsubs\tr0, r0, r3\n\tRETc(ne)\n\tsubs\tr2, r2, #0x01\n\tRETc(eq)\n\n\t/* Compare 4 bytes at a time, if possible */\n\tsubs\tr2, r2, #0x04\n\tbcc\t.Lmemcmp_bytewise\n.Lmemcmp_word_aligned:\n\tldr\tr0, [ip], #0x04\n\tldr\tr3, [r1], #0x04\n\tsubs\tr2, r2, #0x04\n\tcmpcs\tr0, r3\n\tbeq\t.Lmemcmp_word_aligned\n\tsub\tr0, r0, r3\n\n\t/* Correct for extra subtraction, and check if done */\n\tadds\tr2, r2, #0x04\n\tcmpeq\tr0, #0x00\t\t/* If done, did all bytes match? */\n\tRETc(eq)\t\t\t/* Yup. Just return */\n\n\t/* Re-do the final word byte-wise */\n\tsub\tip, ip, #0x04\n\tsub\tr1, r1, #0x04\n\n.Lmemcmp_bytewise:\n\tadd\tr2, r2, #0x03\n.Lmemcmp_bytewise2:\n\tldrb\tr0, [ip], #0x01\n\tldrb\tr3, [r1], #0x01", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcmp.S:4", "text": "ldr\tr3, [r1], #0x04\n\tsubs\tr2, r2, #0x04\n\tcmpcs\tr0, r3\n\tbeq\t.Lmemcmp_word_aligned\n\tsub\tr0, r0, r3\n\n\t/* Correct for extra subtraction, and check if done */\n\tadds\tr2, r2, #0x04\n\tcmpeq\tr0, #0x00\t\t/* If done, did all bytes match? */\n\tRETc(eq)\t\t\t/* Yup. Just return */\n\n\t/* Re-do the final word byte-wise */\n\tsub\tip, ip, #0x04\n\tsub\tr1, r1, #0x04\n\n.Lmemcmp_bytewise:\n\tadd\tr2, r2, #0x03\n.Lmemcmp_bytewise2:\n\tldrb\tr0, [ip], #0x01\n\tldrb\tr3, [r1], #0x01\n\tsubs\tr2, r2, #0x01\n\tcmpcs\tr0, r3\n\tbeq\t.Lmemcmp_bytewise2\n\tsub\tr0, r0, r3\n\tRET\n\n#if defined(_KERNEL) && !defined(_STANDALONE)\n\t/*\n\t * 6 byte compares are very common, thanks to the network stack.\n\t * This code is hand-scheduled to reduce the number of stalls for\n\t * load results. Everything else being equal, this will be ~32%\n\t * faster than a byte-wise memcmp.\n\t */\n\t.align\t5\n.Lmemcmp_6bytes:\n\tldrb\tr3, [r1, #0x00]\t\t/* r3 = b2#0 */\n\tldrb\tr0, [ip, #0x00]\t\t/* r0 = b1#0 */\n\tldrb\tr2, [r1, #0x01]\t\t/* r2 = b2#1 */\n\tsubs\tr0, r0, r3\t\t/* r0 = b1#0 - b2#0 */\n\tldrbeq\tr3, [ip, #0x01]\t\t/* r3 = b1#1 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #0 */\n\tsubs\tr0, r3, r2\t\t/* r0 = b1#1 - b2#1 */\n\tldrbeq\tr3, [r1, #0x02]\t\t/* r3 = b2#2 */\n\tldrbeq\tr0, [ip, #0x02]\t\t/* r0 = b1#2 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #1 */\n\tldrb\tr2, [r1, #0x03]\t\t/* r2 = b2#3 */\n\tsubs\tr0, r0, r3\t\t/* r0 = b1#2 - b2#2 */\n\tldrbeq\tr3, [ip, #0x03]\t\t/* r3 = b1#3 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #2 */\n\tsubs\tr0, r3, r2\t\t/* r0 = b1#3 - b2#3 */\n\tldrbeq\tr3, [r1, #0x04]\t\t/* r3 = b2#4 */\n\tldrbeq\tr0, [ip, #0x04]\t\t/* r0 = b1#4 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #3 */\n\tldrb\tr2, [r1, #0x05]\t\t/* r2 = b2#5 */\n\tsubs\tr0, r0, r3\t\t/* r0 = b1#4 - b2#4 */\n\tldrbeq\tr3, [ip, #0x05]\t\t/* r3 = b1#5 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #4 */\n\tsub\tr0, r3, r2\t\t/* r0 = b1#5 - b2#5 */\n\tRET\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcmp.S:5", "text": "RETc(ne)\t\t\t/* Return if mismatch on #0 */\n\tsubs\tr0, r3, r2\t\t/* r0 = b1#1 - b2#1 */\n\tldrbeq\tr3, [r1, #0x02]\t\t/* r3 = b2#2 */\n\tldrbeq\tr0, [ip, #0x02]\t\t/* r0 = b1#2 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #1 */\n\tldrb\tr2, [r1, #0x03]\t\t/* r2 = b2#3 */\n\tsubs\tr0, r0, r3\t\t/* r0 = b1#2 - b2#2 */\n\tldrbeq\tr3, [ip, #0x03]\t\t/* r3 = b1#3 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #2 */\n\tsubs\tr0, r3, r2\t\t/* r0 = b1#3 - b2#3 */\n\tldrbeq\tr3, [r1, #0x04]\t\t/* r3 = b2#4 */\n\tldrbeq\tr0, [ip, #0x04]\t\t/* r0 = b1#4 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #3 */\n\tldrb\tr2, [r1, #0x05]\t\t/* r2 = b2#5 */\n\tsubs\tr0, r0, r3\t\t/* r0 = b1#4 - b2#4 */\n\tldrbeq\tr3, [ip, #0x05]\t\t/* r3 = b1#5 */\n\tRETc(ne)\t\t\t/* Return if mismatch on #4 */\n\tsub\tr0, r3, r2\t\t/* r0 = b1#5 - b2#5 */\n\tRET\n#endif\nEND(memcmp)\n\n#if defined(__ARM_EABI__) && !defined(_RUMPKERNEL)\nSTRONG_ALIAS(__aeabi_memcmp, memcmp)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcmp.S", "line_start": 161, "line_end": 185}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy.S:1", "text": "/*\t$NetBSD: memcpy.S,v 1.8 2015/06/07 11:41:59 joerg Exp $\t*/\n\n#include <arm/cdefs.h>\n\n#if !defined(__XSCALE__) || defined(_STANDALONE)\n#include \"memcpy_arm.S\"\n#else\n#include \"memcpy_xscale.S\"\n#endif\n\n#if defined(__ARM_EABI__) && !defined(_RUMPKERNEL)\nSTRONG_ALIAS(__aeabi_memcpy, memcpy)\nSTRONG_ALIAS(__aeabi_memcpy4, memcpy)\nSTRONG_ALIAS(__aeabi_memcpy8, memcpy)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy.S", "line_start": 1, "line_end": 15}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:2", "text": "* The core code is implemented here with simple stubs for memcpy().\n *\n * All local labels are prefixed with Lmemcpy_\n * Following the prefix a label starting f is used in the forward copy code\n * while a label using b is used in the backwards copy code\n * The source and destination addresses determine whether a forward or\n * backward copy is performed.\n * Separate bits of code are used to deal with the following situations\n * for both the forward and backwards copy.\n * unaligned source address\n * unaligned destination address\n * Separate copy routines are used to produce an optimised result for each\n * of these cases.\n * The copy code will use LDM/STM instructions to copy up to 32 bytes at\n * a time where possible.\n *\n * Note: r12 (aka ip) can be trashed during the function along with\n * r0-r3 although r0-r2 have defined uses i.e. src, dest, len through out.\n * Additional registers are preserved prior to use i.e. r4, r5 & lr\n *\n * Apologies for the state of the comments ;-)\n */\n/* LINTSTUB: Func: void *memcpy(void *dst, const void *src, size_t len) */\nENTRY(memcpy)\n\t/* save leaf functions having to store this away */\n\tpush\t{r0, lr}\t\t/* memcpy() returns dest addr */\n\n\tsubs\tr2, r2, #4\n\tblo\t.Lmemcpy_l4\t\t/* less than 4 bytes */\n\tands\tr12, r0, #3\n\tbne\t.Lmemcpy_destul\t\t/* oh unaligned destination addr */\n\tands\tr12, r1, #3\n\tbne\t.Lmemcpy_srcul\t\t/* oh unaligned source addr */\n\n.Lmemcpy_t8:\n\t/* We have aligned source and destination */\n\tsubs\tr2, r2, #8\n\tblo\t.Lmemcpy_l12\t\t/* less than 12 bytes (4 from above) */\n\tsubs\tr2, r2, #0x14\n\tblo\t.Lmemcpy_l32\t\t/* less than 32 bytes (12 from above) */\n\tpush\t{r4}\t\t/* borrow r4 */\n\n\t/* blat 32 bytes at a time */\n\t/* XXX for really big copies perhaps we should use more registers */\n.Lmemcpy_loop32:\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tsubs\tr2, r2, #0x20\n\tbhs\t.Lmemcpy_loop32\n\n\tcmn\tr2, #0x10\n\tldmiahs\tr1!, {r3, r4, r12, lr}\t/* blat a remaining 16 bytes */\n\tstmiahs\tr0!, {r3, r4, r12, lr}\n\tsubhs\tr2, r2, #0x10\n\tpop\t{r4}\t\t/* return r4 */\n\n.Lmemcpy_l32:\n\tadds\tr2, r2, #0x14", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:3", "text": "push\t{r4}\t\t/* borrow r4 */\n\n\t/* blat 32 bytes at a time */\n\t/* XXX for really big copies perhaps we should use more registers */\n.Lmemcpy_loop32:\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tsubs\tr2, r2, #0x20\n\tbhs\t.Lmemcpy_loop32\n\n\tcmn\tr2, #0x10\n\tldmiahs\tr1!, {r3, r4, r12, lr}\t/* blat a remaining 16 bytes */\n\tstmiahs\tr0!, {r3, r4, r12, lr}\n\tsubhs\tr2, r2, #0x10\n\tpop\t{r4}\t\t/* return r4 */\n\n.Lmemcpy_l32:\n\tadds\tr2, r2, #0x14\n\n\t/* blat 12 bytes at a time */\n.Lmemcpy_loop12:\n\tldmiahs\tr1!, {r3, r12, lr}\n\tstmiahs\tr0!, {r3, r12, lr}\n\tsubshs\tr2, r2, #0x0c\n\tbhs\t.Lmemcpy_loop12\n\n.Lmemcpy_l12:\n\tadds\tr2, r2, #8\n\tblo\t.Lmemcpy_l4\n\n\tsubs\tr2, r2, #4\n\tldrlo\tr3, [r1], #4\n\tstrlo\tr3, [r0], #4\n\tldmiahs\tr1!, {r3, r12}\n\tstmiahs\tr0!, {r3, r12}\n\tsubhs\tr2, r2, #4\n\n.Lmemcpy_l4:\n\t/* less than 4 bytes to go */\n\tadds\tr2, r2, #4\n#ifdef __APCS_26_\n\tldmiaeq sp!, {r0, pc}^\t\t/* done */\n#else\n\tpopeq\t{r0, pc}\t\t/* done */\n#endif\n\t/* copy the crud byte at a time */\n\tcmp\tr2, #2\n\tldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1\n\tpop\t{r0, pc}\n\n\t/* erg - unaligned destination */\n.Lmemcpy_destul:\n\trsb\tr12, r12, #4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:4", "text": "/* less than 4 bytes to go */\n\tadds\tr2, r2, #4\n#ifdef __APCS_26_\n\tldmiaeq sp!, {r0, pc}^\t\t/* done */\n#else\n\tpopeq\t{r0, pc}\t\t/* done */\n#endif\n\t/* copy the crud byte at a time */\n\tcmp\tr2, #2\n\tldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1\n\tpop\t{r0, pc}\n\n\t/* erg - unaligned destination */\n.Lmemcpy_destul:\n\trsb\tr12, r12, #4\n\tcmp\tr12, #2\n\n\t/* align destination with byte copies */\n\tldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1\n\tsubs\tr2, r2, r12\n\tblo\t.Lmemcpy_l4\t\t/* less the 4 bytes */\n\n\tands\tr12, r1, #3\n\tbeq\t.Lmemcpy_t8\t\t/* we have an aligned source */\n\n\t/* erg - unaligned source */\n\t/* This is where it gets nasty ... */\n.Lmemcpy_srcul:\n\tbic\tr1, r1, #3\n\tldr\tlr, [r1], #4\n\tcmp\tr12, #2\n\tbhi\t.Lmemcpy_srcul3\n\tbeq\t.Lmemcpy_srcul2\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemcpy_srcul1loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemcpy_srcul1loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #8\n#else\n\tmov\tr3, lr, lsr #8\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #24\n\tmov\tr4, r4, lsl #8\n\torr\tr4, r4, r5, lsr #24\n\tmov\tr5, r5, lsl #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:5", "text": "cmp\tr12, #2\n\tbhi\t.Lmemcpy_srcul3\n\tbeq\t.Lmemcpy_srcul2\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemcpy_srcul1loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemcpy_srcul1loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #8\n#else\n\tmov\tr3, lr, lsr #8\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #24\n\tmov\tr4, r4, lsl #8\n\torr\tr4, r4, r5, lsr #24\n\tmov\tr5, r5, lsl #8\n\torr\tr5, r5, r12, lsr #24\n\tmov\tr12, r12, lsl #8\n\torr\tr12, r12, lr, lsr #24\n#else\n\torr\tr3, r3, r4, lsl #24\n\tmov\tr4, r4, lsr #8\n\torr\tr4, r4, r5, lsl #24\n\tmov\tr5, r5, lsr #8\n\torr\tr5, r5, r12, lsl #24\n\tmov\tr12, r12, lsr #8\n\torr\tr12, r12, lr, lsl #24\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemcpy_srcul1loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemcpy_srcul1l4\n\n.Lmemcpy_srcul1loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #8\n#else\n\tmov\tr12, lr, lsr #8\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #24\n#else\n\torr\tr12, r12, lr, lsl #24\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemcpy_srcul1loop4\n\n.Lmemcpy_srcul1l4:\n\tsub\tr1, r1, #3\n\tb\t.Lmemcpy_l4\n\n.Lmemcpy_srcul2:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:6", "text": "#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #8\n#else\n\tmov\tr12, lr, lsr #8\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #24\n#else\n\torr\tr12, r12, lr, lsl #24\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemcpy_srcul1loop4\n\n.Lmemcpy_srcul1l4:\n\tsub\tr1, r1, #3\n\tb\t.Lmemcpy_l4\n\n.Lmemcpy_srcul2:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemcpy_srcul2loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemcpy_srcul2loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #16\n#else\n\tmov\tr3, lr, lsr #16\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #16\n\tmov\tr4, r4, lsl #16\n\torr\tr4, r4, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r12, lsr #16\n\tmov\tr12, r12, lsl #16\n\torr\tr12, r12, lr, lsr #16\n#else\n\torr\tr3, r3, r4, lsl #16\n\tmov\tr4, r4, lsr #16\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r12, lsl #16\n\tmov\tr12, r12, lsr #16\n\torr\tr12, r12, lr, lsl #16\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemcpy_srcul2loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemcpy_srcul2l4\n\n.Lmemcpy_srcul2loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #16\n#else", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:7", "text": "#else\n\torr\tr3, r3, r4, lsl #16\n\tmov\tr4, r4, lsr #16\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r12, lsl #16\n\tmov\tr12, r12, lsr #16\n\torr\tr12, r12, lr, lsl #16\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemcpy_srcul2loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemcpy_srcul2l4\n\n.Lmemcpy_srcul2loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #16\n#else\n\tmov\tr12, lr, lsr #16\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #16\n#else\n\torr\tr12, r12, lr, lsl #16\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemcpy_srcul2loop4\n\n.Lmemcpy_srcul2l4:\n\tsub\tr1, r1, #2\n\tb\t.Lmemcpy_l4\n\n.Lmemcpy_srcul3:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemcpy_srcul3loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemcpy_srcul3loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #24\n#else\n\tmov\tr3, lr, lsr #24\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #8\n\tmov\tr4, r4, lsl #24\n\torr\tr4, r4, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r12, lsr #8\n\tmov\tr12, r12, lsl #24\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr3, r3, r4, lsl #8\n\tmov\tr4, r4, lsr #24", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:8", "text": "push\t{r4, r5}\n\n.Lmemcpy_srcul3loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #24\n#else\n\tmov\tr3, lr, lsr #24\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #8\n\tmov\tr4, r4, lsl #24\n\torr\tr4, r4, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r12, lsr #8\n\tmov\tr12, r12, lsl #24\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr3, r3, r4, lsl #8\n\tmov\tr4, r4, lsr #24\n\torr\tr4, r4, r5, lsl #8\n\tmov\tr5, r5, lsr #24\n\torr\tr5, r5, r12, lsl #8\n\tmov\tr12, r12, lsr #24\n\torr\tr12, r12, lr, lsl #8\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemcpy_srcul3loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemcpy_srcul3l4\n\n.Lmemcpy_srcul3loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #24\n#else\n\tmov\tr12, lr, lsr #24\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr12, r12, lr, lsl #8\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemcpy_srcul3loop4\n\n.Lmemcpy_srcul3l4:\n\tsub\tr1, r1, #1\n\tb\t.Lmemcpy_l4\nEND(memcpy)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 281, "line_end": 333}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_arm.S:9", "text": "#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr12, r12, lr, lsl #8\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemcpy_srcul3loop4\n\n.Lmemcpy_srcul3l4:\n\tsub\tr1, r1, #1\n\tb\t.Lmemcpy_l4\nEND(memcpy)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_arm.S", "line_start": 321, "line_end": 333}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: memcpy_neon.S,v 1.4 2026/03/11 21:54:21 andvar Exp $\")\n\n\t.text\nENTRY(memcpy)\n\tteq\tr2, #0\t\t\t/* 0 length? */\n\tcmpne\tr0, r1\t\t\t/*   if not, does src == dst? */\n\tRETc(eq)\t\t\t/*   yes, (to either) return */\n\n\tmov\tr3, r0\t\t\t/* keep r0 unchanged */\n#if 0\n\tcmp\tr2, #16\t\t\t/* copy less than 8 bytes? */\n\tbhs\t.Ldst_aligner\t\t/*   nope, do it the long way */\n\n1:\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tsubs\tr2, r2, #1\t\t/* and more to transfer? */\n\tstrb\tip, [r3], #1\t\t/* save it to dst */\n\tbne\t1b\t\t\t/*   yes, do next byte */\n\tRET\t\t\t\t/* return */\n#endif\n\n.Ldst_aligner:\n\ttst\tr3, #7\t\t\t/* is dst pointer word aligned? */\n\tbeq\t.Lsrc_aligner\t\t/*   yes, check src pointer */\n\t/*\n\t * Until the dst pointer is word aligned, read src and dst byte by\n\t * byte until it is aligned or we've copied everything.\n\t */\n\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tstrb\tip, [r3], #1\t\t/* save the byte to dst */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:2", "text": "#if 0\n\tcmp\tr2, #16\t\t\t/* copy less than 8 bytes? */\n\tbhs\t.Ldst_aligner\t\t/*   nope, do it the long way */\n\n1:\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tsubs\tr2, r2, #1\t\t/* and more to transfer? */\n\tstrb\tip, [r3], #1\t\t/* save it to dst */\n\tbne\t1b\t\t\t/*   yes, do next byte */\n\tRET\t\t\t\t/* return */\n#endif\n\n.Ldst_aligner:\n\ttst\tr3, #7\t\t\t/* is dst pointer word aligned? */\n\tbeq\t.Lsrc_aligner\t\t/*   yes, check src pointer */\n\t/*\n\t * Until the dst pointer is word aligned, read src and dst byte by\n\t * byte until it is aligned or we've copied everything.\n\t */\n\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tstrb\tip, [r3], #1\t\t/* save the byte to dst */\n\tsubs\tr2, r2, #1\t\t/* end of transfer? */\n\tbne\t.Ldst_aligner\t\t/*   no, try next byte */\n\tRET\t\t\t\t/* yes, we're done! */\n\n.Lsrc_aligner:\n\tpush\t{r4-r5}\t\t\t/* save some registers */\n\tadd\tr4, r2, r3\t\t/* keep a pointer to the end of src */\n\tands\tr5, r1, #7\t\t/* get misalignment of src pointer */\n\tbeq\t.Lcongruent_main\t/*   aligned, do it the fast way */\n\n\tvdup.8\td1, r5\t\t\t/* set offset for table */\n\trsb\tr5, r5, #8\t\t/* calculate leftover of each word */\n\tbic\tr1, r1, #7\t\t/* dword align src pointer */\n\n\tvldr\td0, .Ltbl_value\t\t/* load table value */\n\tvadd.u8\td0, d0, d1\t\t/* add offset to it */\n\n\tvld1.64 {d1}, [r1:64]!\t\t/* load a dword from src */\n\n\tcmp\tr2, r5\t\t\t/* do we already have enough? */\n\tbhi\t.Lincongruent\t\t/*   no, so read more */\n\n.Lincongruent_finish:\n\tvtbl.8\td0, {d1-d2}, d0\t\t/* merge last dwords */\n\tcmp\tr2, #8\t\t\t/* room for a full dword? */\n#ifdef __ARMEB__\n\tvrev64.32 d0, d0\t\t/* word swap to LE */\n#endif\n\tblo\t.Lfinish\t\t/*   no, write final partial dword */\n\tvst1.32 {d0}, [r3:64]\t\t/*   yes, write final full dword */\n\tb\t.Ldone\t\t\t/* and we're done! */\n\n.Lincongruent:\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tblo\t.Lincongruent_finish\t/*   no, finish it. */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tsubs\tr2, r2, #8\t\t/* have we written everything? */\n\tbeq\t.Ldone\t\t\t/*   yes, we're done! */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:3", "text": "bhi\t.Lincongruent\t\t/*   no, so read more */\n\n.Lincongruent_finish:\n\tvtbl.8\td0, {d1-d2}, d0\t\t/* merge last dwords */\n\tcmp\tr2, #8\t\t\t/* room for a full dword? */\n#ifdef __ARMEB__\n\tvrev64.32 d0, d0\t\t/* word swap to LE */\n#endif\n\tblo\t.Lfinish\t\t/*   no, write final partial dword */\n\tvst1.32 {d0}, [r3:64]\t\t/*   yes, write final full dword */\n\tb\t.Ldone\t\t\t/* and we're done! */\n\n.Lincongruent:\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tblo\t.Lincongruent_finish\t/*   no, finish it. */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tsubs\tr2, r2, #8\t\t/* have we written everything? */\n\tbeq\t.Ldone\t\t\t/*   yes, we're done! */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\ttst\tr3, #63\t\t\t/* are we 64-byte aligned? */\n\tbne\t.Lincongruent\t\t/*   no, load next dword */\n\n\t/*\n\t * We are now 64-byte aligned so all writes should fill one or more\n\t * cachelines.  Even if d1 has 7 bytes cached, to write 32 bytes we\n\t * still need to read 4 dwords (3 full dwords and 1 dword for that\n\t * last byte).\n\t */\n\tcmp\tr2, #32\t\t\t/* can we write 4 more dwords? */\n\tblo\t.Lincongruent_dword\t/*   no, handle dword by dword */\n\tvld1.64 {d2-d5}, [r1:64]!\t/* read 4 dwords */\n\tcmp\tr2, #64\t\t\t/* can we write 4 more dwords? */\n\tblo\t.Lincongruent_4dword\t/*   no, handle it */\n\n1:\tvld1.64 {d7-d10}, [r1:64]!\t/* read 4 dwords */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvtbl.8\td2, {d2-d3}, d0\t\t/* reorder */\n\tvtbl.8\td3, {d3-d4}, d0\t\t/* reorder */\n\tvtbl.8\td4, {d4-d5}, d0\t\t/* reorder */\n\tvst1.64 {d1-d4}, [r3:64]!\t/* write 4 dwords */\n\tvmov\td6, d5\t\t\t/* move out of the way the load */\n\tcmp\tr2, #96\t\t\t/* have 8+4 dwords to write? */\n\tblo\t2f\t\t\t/*   no more data, skip the load */\n\tvld1.64 {d2-d5}, [r1:64]!\t/* more data, load 4 dwords */\n2:\tvtbl.8\td6, {d6-d7}, d0\t\t/* reorder */\n\tvtbl.8\td7, {d7-d8}, d0\t\t/* reorder */\n\tvtbl.8\td8, {d8-d9}, d0\t\t/* reorder */\n\tvtbl.8\td9, {d9-d10}, d0\t/* reorder */\n\tvst1.64 {d6-d9}, [r3:64]!\t/* write 4 dwords */\n\tsubs\tr2, r2, #64\n\tbeq\t.Ldone\n\tvmov\td1, d10\n\tcmp\tr2, #64\n\tbhs\t1b\n\n\t/*\n\t * we have leftovers in d1 and new untranslated date in d2-d5.\n\t */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:4", "text": "vtbl.8\td4, {d4-d5}, d0\t\t/* reorder */\n\tvst1.64 {d1-d4}, [r3:64]!\t/* write 4 dwords */\n\tvmov\td6, d5\t\t\t/* move out of the way the load */\n\tcmp\tr2, #96\t\t\t/* have 8+4 dwords to write? */\n\tblo\t2f\t\t\t/*   no more data, skip the load */\n\tvld1.64 {d2-d5}, [r1:64]!\t/* more data, load 4 dwords */\n2:\tvtbl.8\td6, {d6-d7}, d0\t\t/* reorder */\n\tvtbl.8\td7, {d7-d8}, d0\t\t/* reorder */\n\tvtbl.8\td8, {d8-d9}, d0\t\t/* reorder */\n\tvtbl.8\td9, {d9-d10}, d0\t/* reorder */\n\tvst1.64 {d6-d9}, [r3:64]!\t/* write 4 dwords */\n\tsubs\tr2, r2, #64\n\tbeq\t.Ldone\n\tvmov\td1, d10\n\tcmp\tr2, #64\n\tbhs\t1b\n\n\t/*\n\t * we have leftovers in d1 and new untranslated date in d2-d5.\n\t */\n.Lincongruent_4dword:\n\tcmp\tr2, #32\n\tblo\t.Lincongruent_dword\n\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvtbl.8\td2, {d2-d3}, d0\t\t/* reorder */\n\tvtbl.8\td3, {d3-d4}, d0\t\t/* reorder */\n\tvtbl.8\td4, {d4-d5}, d0\t\t/* reorder */\n\tvst1.64 {d1-d4}, [r3:64]!\t/* write 4 dwords */\n\tvmov\td1, d5\t\t\t/* move leftovers */\n\tsubs\tr2, r2, #32\n\tbeq\t.Ldone\n\n.Lincongruent_dword:\n#if 0\n\tcmp\tr2, r5\t\t\t/* enough in leftovers? */\n\tbls\t.Lincongruent_finish\t/*   yes, finish it. */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tblo\t.Lincongruent_finish\t/*   no, finish it. */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tsubs\tr2, r2, #8\t\t/* have we written everything? */\n\tbeq\t.Ldone\t\t\t/*   yes, we're done! */\n\tb\t.Lincongruent_dword\t/* and go get it */\n#else\n\tcmp\tr2, r5\t\t\t/* are the bytes we have enough? */\n\tbls\t.Lincongruent_finish\t/*   yes, finish it. */\n\tmov\tip, r2\t\t\t/* get remaining count */\n\tbic\tip, ip, #7\t\t/* truncate to a dword */\n\trsb\tip, ip, #32\t\t/* subtract from 32 */\n\tands\tr2, r2, #7\t\t/* count mod 8 */\n\tadd\tpc, pc, ip, lsl #1\t/* and jump! */\n\tnop\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:5", "text": "vtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tsubs\tr2, r2, #8\t\t/* have we written everything? */\n\tbeq\t.Ldone\t\t\t/*   yes, we're done! */\n\tb\t.Lincongruent_dword\t/* and go get it */\n#else\n\tcmp\tr2, r5\t\t\t/* are the bytes we have enough? */\n\tbls\t.Lincongruent_finish\t/*   yes, finish it. */\n\tmov\tip, r2\t\t\t/* get remaining count */\n\tbic\tip, ip, #7\t\t/* truncate to a dword */\n\trsb\tip, ip, #32\t\t/* subtract from 32 */\n\tands\tr2, r2, #7\t\t/* count mod 8 */\n\tadd\tpc, pc, ip, lsl #1\t/* and jump! */\n\tnop\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tbeq\t.Ldone\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tb\t.Lincongruent_finish\t/* write last partial dword */\n#endif\n\n.Lcongruent_main:\n\tvld1.32 {d0}, [r1:64]!\t\t/* load next dword */\n\tcmp\tr2, #8\t\t\t/* compare current ptr against end */\n\tblo\t.Lfinish\t\t/*   greater so write final dword */\n\tvst1.32 {d0}, [r3:64]!\t\t/* store dword */\n\tsubs\tr2, r2, #8\t\t/* compare current ptr against end */\n\tbeq\t.Ldone\t\t\t/*   equal? we're done! */\n\ttst\tr3, #63\t\t\t/* have we hit a 64-byte boundary? */\n\tbne\t.Lcongruent_main\t/*   no, write next word */\n\n\tcmp\tr2, #64\t\t\t/* can we write 4 dwords? */\n\tblo\t.Lcongruent_loop\t/*   no, this dword by dword */\n\tvldm\tr1!, {d0-d7}\t\t/* load next 7 dwords */\n\tcmp\tr2, #128\t\t/* can we write 16 dwords */\n\tblo\t3f\t\t\t/*   no, then deal with 8 dwords */\n\n\t/*\n\t * The following writes two 64-byte interleaving stores and loads.\n\t */\n1:\tvldm\tr1!, {d8-d15}\t\t/* load next 8 dwords */\n\tvstm\tr3!, {d0-d7}\t\t/* store 8 more dwords */\n\tcmp\tr2, #192\t\t/* can we write 16+8 dwords? */\n\tblo\t2f\t\t\t/*   no, don't load the next 8 dwords */\n\tvldm\tr1!, {d0-d7}\t\t/*   yes, load next 8 dwords */\n2:\tvstm\tr3!, {d8-d15}\t\t/* store 8 more dwords */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:6", "text": "subs\tr2, r2, #8\t\t/* compare current ptr against end */\n\tbeq\t.Ldone\t\t\t/*   equal? we're done! */\n\ttst\tr3, #63\t\t\t/* have we hit a 64-byte boundary? */\n\tbne\t.Lcongruent_main\t/*   no, write next word */\n\n\tcmp\tr2, #64\t\t\t/* can we write 4 dwords? */\n\tblo\t.Lcongruent_loop\t/*   no, this dword by dword */\n\tvldm\tr1!, {d0-d7}\t\t/* load next 7 dwords */\n\tcmp\tr2, #128\t\t/* can we write 16 dwords */\n\tblo\t3f\t\t\t/*   no, then deal with 8 dwords */\n\n\t/*\n\t * The following writes two 64-byte interleaving stores and loads.\n\t */\n1:\tvldm\tr1!, {d8-d15}\t\t/* load next 8 dwords */\n\tvstm\tr3!, {d0-d7}\t\t/* store 8 more dwords */\n\tcmp\tr2, #192\t\t/* can we write 16+8 dwords? */\n\tblo\t2f\t\t\t/*   no, don't load the next 8 dwords */\n\tvldm\tr1!, {d0-d7}\t\t/*   yes, load next 8 dwords */\n2:\tvstm\tr3!, {d8-d15}\t\t/* store 8 more dwords */\n\tsub\tr2, r2, #128\t\t/* we just stored 16 (8+8) dwords */\n\tbeq\t.Ldone\t\t\t/*   if 0, we're done! */\n\tcmp\tr2, #128\t\t/* can we write 16 dwords */\n\tbhs\t1b\t\t\t/*   yes, do it again */\n\tcmp\tr2, #64\t\t\t/* have we loaded 8 dwords? */\n\tblo\t.Lcongruent_loop\t/*   no, proceed to do it dword */\n\n\t/*\n\t * We now have 8 dwords we can write in d0-d7.\n\t */\n3:\tvstm\tr3!, {d0-d7}\t\t/* store 8 more dwords */\n\tsubs\tr2, r2, #64\t\t/* we wrote 8 dwords */\n\tbeq\t.Ldone\t\t\t/*   if 0, we're done! */\n\n.Lcongruent_loop:\n\tvld1.32 {d0}, [r1]!\t\t/* load dword from src */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tblo\t.Lfinish\t\t/*   no, write last partial dword */\n.Lcongruent_loop_start:\n\tvst1.32 {d0}, [r3]!\t\t/* store dword into dst */\n\tsubs\tr2, r2, #8\t\t/* subtract it from length */\n\tbeq\t.Ldone\t\t\t/*   if 0, we're done! */\n\tvld1.32 {d0}, [r1]!\t\t/* load dword from src */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tbhs\t.Lcongruent_loop_start\t/*   yes, so do it */\n\n.Lfinish:\n\tvmov\tr4, r5, d0\t\t/* get last dword from NEON */\n\ttst\tr2, #4\t\t\t/* do we have at least 4 bytes left? */\n\tstrne\tr4, [r3], #4\t\t/* store the 1st word */\n\tmovne\tr4, r5\t\t\t/* move 2nd word into place */\n\ttst\tr2, #2\t\t\t/* do we have at least 2 bytes left? */\n#ifdef __ARMEB__\n\tmovne\tr4, r4, ror #16\t\t/*   yes, swap halfwords */\n#endif\n\tstrneh\tr4, [r3], #2\t\t/*   yes, store the halfword */\n#ifdef __ARMEL__\n\tmovne\tr4, r4, lsr #16\t\t/*   yes, discard just written bytes */\n#endif\n\ttst\tr2, #1\t\t\t/* do we have a final byte? */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:7", "text": "subs\tr2, r2, #8\t\t/* subtract it from length */\n\tbeq\t.Ldone\t\t\t/*   if 0, we're done! */\n\tvld1.32 {d0}, [r1]!\t\t/* load dword from src */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tbhs\t.Lcongruent_loop_start\t/*   yes, so do it */\n\n.Lfinish:\n\tvmov\tr4, r5, d0\t\t/* get last dword from NEON */\n\ttst\tr2, #4\t\t\t/* do we have at least 4 bytes left? */\n\tstrne\tr4, [r3], #4\t\t/* store the 1st word */\n\tmovne\tr4, r5\t\t\t/* move 2nd word into place */\n\ttst\tr2, #2\t\t\t/* do we have at least 2 bytes left? */\n#ifdef __ARMEB__\n\tmovne\tr4, r4, ror #16\t\t/*   yes, swap halfwords */\n#endif\n\tstrneh\tr4, [r3], #2\t\t/*   yes, store the halfword */\n#ifdef __ARMEL__\n\tmovne\tr4, r4, lsr #16\t\t/*   yes, discard just written bytes */\n#endif\n\ttst\tr2, #1\t\t\t/* do we have a final byte? */\n#ifdef __ARMEB__\n\tmovne\tr4, r4, lsr #24\t\t/*   yes, move MSB to LSB */\n#endif\n\tstrneb\tr4, [r3], #1\t\t/*   yes, store it */\n\n.Ldone:\n\tpop\t{r4-r5}\t\t\t/* restore registers */\n\tRET\n\n\t.p2align 3\n.Ltbl_value:\n#ifdef __ARMEL__\n\t.quad\t0x0706050403020100\n#else\n\t.quad\t0x0001020304050607\n#endif\nEND(memcpy)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 241, "line_end": 277}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: memcpy_neon.S,v 1.3 2025/02/27 08:39:53 andvar Exp $\")\n\n\t.text\nENTRY(memcpy)\n\tteq\tr2, #0\t\t\t/* 0 length? */\n\tcmpne\tr0, r1\t\t\t/*   if not, does src == dst? */\n\tRETc(eq)\t\t\t/*   yes, (to either) return */\n\n\tmov\tr3, r0\t\t\t/* keep r0 unchanged */\n#if 0\n\tcmp\tr2, #16\t\t\t/* copy less than 8 bytes? */\n\tbhs\t.Ldst_aligner\t\t/*   nope, do it the long way */\n\n1:\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tsubs\tr2, r2, #1\t\t/* and more to transfer? */\n\tstrb\tip, [r3], #1\t\t/* save it to dst */\n\tbne\t1b\t\t\t/*   yes, do next byte */\n\tRET\t\t\t\t/* return */\n#endif\n\n.Ldst_aligner:\n\ttst\tr3, #7\t\t\t/* is dst pointer word aligned? */\n\tbeq\t.Lsrc_aligner\t\t/*   yes, check src pointer */\n\t/*\n\t * Until the dst pointer is word aligned, read src and dst byte by\n\t * byte until it is aligned or we've copied everything.\n\t */\n\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tstrb\tip, [r3], #1\t\t/* save the byte to dst */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "ece1e227bf2c56107cb5a26b05a23d7d52e3b942", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ece1e227bf2c56107cb5a26b05a23d7d52e3b942/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:3", "text": "bhi\t.Lincongruent\t\t/*   no, so read more */\n\n.Lincongruent_finish:\n\tvtbl.8\td0, {d1-d2}, d0\t\t/* merge last dwords */\n\tcmp\tr2, #8\t\t\t/* room for a full dword? */\n#ifdef __ARMEB__\n\tvrev64.32 d0, d0\t\t/* word swap to LE */\n#endif\n\tblo\t.Lfinish\t\t/*   no, write final partial dword */\n\tvst1.32 {d0}, [r3:64]\t\t/*   yes, write final full dword */\n\tb\t.Ldone\t\t\t/* and we're done! */\n\n.Lincongruent:\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tcmp\tr2, #8\t\t\t/* can we write a full dword? */\n\tblo\t.Lincongruent_finish\t/*   no, finish it. */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tsubs\tr2, r2, #8\t\t/* have we written everything? */\n\tbeq\t.Ldone\t\t\t/*   yes, we're done! */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\ttst\tr3, #63\t\t\t/* are we 64-byte aligned? */\n\tbne\t.Lincongruent\t\t/*   no, load next dword */\n\n\t/*\n\t * We are now 64-byte aligneds so all writes should fill one or more\n\t * cachelines.  Even if d1 has 7 bytes cached, to write 32 bytes we\n\t * still need to read 4 dwords (3 full dwords and 1 dword for that\n\t * last byte).\n\t */\n\tcmp\tr2, #32\t\t\t/* can we write 4 more dwords? */\n\tblo\t.Lincongruent_dword\t/*   no, handle dword by dword */\n\tvld1.64 {d2-d5}, [r1:64]!\t/* read 4 dwords */\n\tcmp\tr2, #64\t\t\t/* can we write 4 more dwords? */\n\tblo\t.Lincongruent_4dword\t/*   no, handle it */\n\n1:\tvld1.64 {d7-d10}, [r1:64]!\t/* read 4 dwords */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvtbl.8\td2, {d2-d3}, d0\t\t/* reorder */\n\tvtbl.8\td3, {d3-d4}, d0\t\t/* reorder */\n\tvtbl.8\td4, {d4-d5}, d0\t\t/* reorder */\n\tvst1.64 {d1-d4}, [r3:64]!\t/* write 4 dwords */\n\tvmov\td6, d5\t\t\t/* move out of the way the load */\n\tcmp\tr2, #96\t\t\t/* have 8+4 dwords to write? */\n\tblo\t2f\t\t\t/*   no more data, skip the load */\n\tvld1.64 {d2-d5}, [r1:64]!\t/* more data, load 4 dwords */\n2:\tvtbl.8\td6, {d6-d7}, d0\t\t/* reorder */\n\tvtbl.8\td7, {d7-d8}, d0\t\t/* reorder */\n\tvtbl.8\td8, {d8-d9}, d0\t\t/* reorder */\n\tvtbl.8\td9, {d9-d10}, d0\t/* reorder */\n\tvst1.64 {d6-d9}, [r3:64]!\t/* write 4 dwords */\n\tsubs\tr2, r2, #64\n\tbeq\t.Ldone\n\tvmov\td1, d10\n\tcmp\tr2, #64\n\tbhs\t1b\n\n\t/*\n\t * we have leftovers in d1 and new untranslated date in d2-d5.\n\t */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "ece1e227bf2c56107cb5a26b05a23d7d52e3b942", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ece1e227bf2c56107cb5a26b05a23d7d52e3b942/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: memcpy_neon.S,v 1.2 2023/01/19 18:03:03 mlelstv Exp $\")\n\n\t.text\nENTRY(memcpy)\n\tteq\tr2, #0\t\t\t/* 0 length? */\n\tcmpne\tr0, r1\t\t\t/*   if not, does src == dst? */\n\tRETc(eq)\t\t\t/*   yes, (to either) return */\n\n\tmov\tr3, r0\t\t\t/* keep r0 unchanged */\n#if 0\n\tcmp\tr2, #16\t\t\t/* copy less than 8 bytes? */\n\tbhs\t.Ldst_aligner\t\t/*   nope, do it the long way */\n\n1:\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tsubs\tr2, r2, #1\t\t/* and more to transfer? */\n\tstrb\tip, [r3], #1\t\t/* save it to dst */\n\tbne\t1b\t\t\t/*   yes, do next byte */\n\tRET\t\t\t\t/* return */\n#endif\n\n.Ldst_aligner:\n\ttst\tr3, #7\t\t\t/* is dst pointer word aligned? */\n\tbeq\t.Lsrc_aligner\t\t/*   yes, check src pointer */\n\t/*\n\t * Until the dst pointer is word aligned, read src and dst byte by\n\t * byte until it is aligned or we've copied everything.\n\t */\n\tldrb\tip, [r1], #1\t\t/* load a byte from src */\n\tstrb\tip, [r3], #1\t\t/* save the byte to dst */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_neon.S:5", "text": "vtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tsubs\tr2, r2, #8\t\t/* have we written everything? */\n\tbeq\t.Ldone\t\t\t/*   yes, we're done! */\n\tb\t.Lincongruent_dword\t/* and go get it */\n#else\n\tcmp\tr2, r5\t\t\t/* are the bytes we have enough? */\n\tbls\t.Lincongruent_finish\t/*   yes, finish it. */\n\tmov\tip, r2\t\t\t/* get remaining count */\n\tbic\tip, ip, #7\t\t/* truncate to a dword */\n\trsb\tip, ip, #32\t\t/* subtract from 32 */\n\tands\tr2, r2, #7\t\t/* count mod 8 */\n\tadd\tpc, pc, ip, lsl #1\t/* and jump! */\n\tnop\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tvtbl.8\td1, {d1-d2}, d0\t\t/* reorder */\n\tvst1.64 {d1}, [r3:64]!\t\t/* store a dword */\n\tvmov\td1, d2\t\t\t/* prepare for next dword */\n\tbeq\t.Ldone\n\tvld1.64 {d2}, [r1:64]!\t\t/* load a dword */\n\tb\t.Lincongruent_finish\t/* write last partial dowrd */\n#endif\n\n.Lcongruent_main:\n\tvld1.32 {d0}, [r1:64]!\t\t/* load next dword */\n\tcmp\tr2, #8\t\t\t/* compare current ptr against end */\n\tblo\t.Lfinish\t\t/*   greater so write final dword */\n\tvst1.32 {d0}, [r3:64]!\t\t/* store dword */\n\tsubs\tr2, r2, #8\t\t/* compare current ptr against end */\n\tbeq\t.Ldone\t\t\t/*   equal? we're done! */\n\ttst\tr3, #63\t\t\t/* have we hit a 64-byte boundary? */\n\tbne\t.Lcongruent_main\t/*   no, write next word */\n\n\tcmp\tr2, #64\t\t\t/* can we write 4 dwords? */\n\tblo\t.Lcongruent_loop\t/*   no, this dword by dword */\n\tvldm\tr1!, {d0-d7}\t\t/* load next 7 dwords */\n\tcmp\tr2, #128\t\t/* can we write 16 dwords */\n\tblo\t3f\t\t\t/*   no, then deal with 8 dwords */\n\n\t/*\n\t * The following writes two 64-byte interleaving stores and loads.\n\t */\n1:\tvldm\tr1!, {d8-d15}\t\t/* load next 8 dwords */\n\tvstm\tr3!, {d0-d7}\t\t/* store 8 more dwords */\n\tcmp\tr2, #192\t\t/* can we write 16+8 dwords? */\n\tblo\t2f\t\t\t/*   no, don't load the next 8 dwords */\n\tvldm\tr1!, {d0-d7}\t\t/*   yes, load next 8 dwords */\n2:\tvstm\tr3!, {d8-d15}\t\t/* store 8 more dwords */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_neon.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/arm/string/memcpy_neon.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:1", "text": "/*\t$NetBSD: memcpy_xscale.S,v 1.6 2023/01/19 18:03:03 mlelstv Exp $\t*/\n\n/*\n * Copyright 2003 Wasabi Systems, Inc.\n * All rights reserved.\n *\n * Written by Steve C. Woodford for Wasabi Systems, Inc.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. All advertising materials mentioning features or use of this software\n *    must display the following acknowledgement:\n *      This product includes software developed for the NetBSD Project by\n *      Wasabi Systems, Inc.\n * 4. The name of Wasabi Systems, Inc. may not be used to endorse\n *    or promote products derived from this software without specific prior\n *    written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n/* LINTSTUB: Func: void *memcpy(void *dst, const void *src, size_t len) */\nENTRY(memcpy)\n\tpld\t[r1]\n\tcmp\tr2, #0x0c\n\tbls\t.Lmemcpy_short\t\t/* <= 12 bytes */\n\tmov\tr3, r0\t\t\t/* We must not clobber r0 */\n\n\t/* Word-align the destination buffer */\n\tands\tip, r3, #0x03\t\t/* Already word aligned? */\n\tbeq\t.Lmemcpy_wordaligned\t/* Yup */\n\tcmp\tip, #0x02\n\tldrb\tip, [r1], #0x01\n\tsub\tr2, r2, #0x01\n\tstrb\tip, [r3], #0x01\n\tldrbls\tip, [r1], #0x01\n\tsubls\tr2, r2, #0x01\n\tstrbls\tip, [r3], #0x01\n\tldrblo\tip, [r1], #0x01\n\tsublo\tr2, r2, #0x01\n\tstrblo\tip, [r3], #0x01", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:2", "text": "ENTRY(memcpy)\n\tpld\t[r1]\n\tcmp\tr2, #0x0c\n\tbls\t.Lmemcpy_short\t\t/* <= 12 bytes */\n\tmov\tr3, r0\t\t\t/* We must not clobber r0 */\n\n\t/* Word-align the destination buffer */\n\tands\tip, r3, #0x03\t\t/* Already word aligned? */\n\tbeq\t.Lmemcpy_wordaligned\t/* Yup */\n\tcmp\tip, #0x02\n\tldrb\tip, [r1], #0x01\n\tsub\tr2, r2, #0x01\n\tstrb\tip, [r3], #0x01\n\tldrbls\tip, [r1], #0x01\n\tsubls\tr2, r2, #0x01\n\tstrbls\tip, [r3], #0x01\n\tldrblo\tip, [r1], #0x01\n\tsublo\tr2, r2, #0x01\n\tstrblo\tip, [r3], #0x01\n\n\t/* Destination buffer is now word aligned */\n.Lmemcpy_wordaligned:\n\tands\tip, r1, #0x03\t\t/* Is src also word-aligned? */\n\tbne\t.Lmemcpy_bad_align\t/* Nope. Things just got bad */\n\n\t/* Quad-align the destination buffer */\n\ttst\tr3, #0x07\t\t/* Already quad aligned? */\n\tldrne\tip, [r1], #0x04\n\tpush\t{r4-r9}\t\t/* Free up some registers */\n\tsubne\tr2, r2, #0x04\n\tstrne\tip, [r3], #0x04\n\n\t/* Destination buffer quad aligned, source is at least word aligned */\n\tsubs\tr2, r2, #0x80\n\tblo\t.Lmemcpy_w_lessthan128\n\n\t/* Copy 128 bytes at a time */\n.Lmemcpy_w_loop128:\n\tldr\tr4, [r1], #0x04\t\t/* LD:00-03 */\n\tldr\tr5, [r1], #0x04\t\t/* LD:04-07 */\n\tpld\t[r1, #0x18]\t\t/* Prefetch 0x20 */\n\tldr\tr6, [r1], #0x04\t\t/* LD:08-0b */\n\tldr\tr7, [r1], #0x04\t\t/* LD:0c-0f */\n\tldr\tr8, [r1], #0x04\t\t/* LD:10-13 */\n\tldr\tr9, [r1], #0x04\t\t/* LD:14-17 */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:00-07 */\n\tldr\tr4, [r1], #0x04\t\t/* LD:18-1b */\n\tldr\tr5, [r1], #0x04\t\t/* LD:1c-1f */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:08-0f */\n\tldr\tr6, [r1], #0x04\t\t/* LD:20-23 */\n\tldr\tr7, [r1], #0x04\t\t/* LD:24-27 */\n\tpld\t[r1, #0x18]\t\t/* Prefetch 0x40 */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:10-17 */\n\tldr\tr8, [r1], #0x04\t\t/* LD:28-2b */\n\tldr\tr9, [r1], #0x04\t\t/* LD:2c-2f */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:18-1f */\n\tldr\tr4, [r1], #0x04\t\t/* LD:30-33 */\n\tldr\tr5, [r1], #0x04\t\t/* LD:34-37 */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:20-27 */\n\tldr\tr6, [r1], #0x04\t\t/* LD:38-3b */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:3", "text": "pld\t[r1, #0x18]\t\t/* Prefetch 0x20 */\n\tldr\tr6, [r1], #0x04\t\t/* LD:08-0b */\n\tldr\tr7, [r1], #0x04\t\t/* LD:0c-0f */\n\tldr\tr8, [r1], #0x04\t\t/* LD:10-13 */\n\tldr\tr9, [r1], #0x04\t\t/* LD:14-17 */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:00-07 */\n\tldr\tr4, [r1], #0x04\t\t/* LD:18-1b */\n\tldr\tr5, [r1], #0x04\t\t/* LD:1c-1f */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:08-0f */\n\tldr\tr6, [r1], #0x04\t\t/* LD:20-23 */\n\tldr\tr7, [r1], #0x04\t\t/* LD:24-27 */\n\tpld\t[r1, #0x18]\t\t/* Prefetch 0x40 */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:10-17 */\n\tldr\tr8, [r1], #0x04\t\t/* LD:28-2b */\n\tldr\tr9, [r1], #0x04\t\t/* LD:2c-2f */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:18-1f */\n\tldr\tr4, [r1], #0x04\t\t/* LD:30-33 */\n\tldr\tr5, [r1], #0x04\t\t/* LD:34-37 */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:20-27 */\n\tldr\tr6, [r1], #0x04\t\t/* LD:38-3b */\n\tldr\tr7, [r1], #0x04\t\t/* LD:3c-3f */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:28-2f */\n\tldr\tr8, [r1], #0x04\t\t/* LD:40-43 */\n\tldr\tr9, [r1], #0x04\t\t/* LD:44-47 */\n\tpld\t[r1, #0x18]\t\t/* Prefetch 0x60 */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:30-37 */\n\tldr\tr4, [r1], #0x04\t\t/* LD:48-4b */\n\tldr\tr5, [r1], #0x04\t\t/* LD:4c-4f */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:38-3f */\n\tldr\tr6, [r1], #0x04\t\t/* LD:50-53 */\n\tldr\tr7, [r1], #0x04\t\t/* LD:54-57 */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:40-47 */\n\tldr\tr8, [r1], #0x04\t\t/* LD:58-5b */\n\tldr\tr9, [r1], #0x04\t\t/* LD:5c-5f */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:48-4f */\n\tldr\tr4, [r1], #0x04\t\t/* LD:60-63 */\n\tldr\tr5, [r1], #0x04\t\t/* LD:64-67 */\n\tpld\t[r1, #0x18]\t\t/* Prefetch 0x80 */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:50-57 */\n\tldr\tr6, [r1], #0x04\t\t/* LD:68-6b */\n\tldr\tr7, [r1], #0x04\t\t/* LD:6c-6f */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:58-5f */\n\tldr\tr8, [r1], #0x04\t\t/* LD:70-73 */\n\tldr\tr9, [r1], #0x04\t\t/* LD:74-77 */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:60-67 */\n\tldr\tr4, [r1], #0x04\t\t/* LD:78-7b */\n\tldr\tr5, [r1], #0x04\t\t/* LD:7c-7f */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:68-6f */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:70-77 */\n\tsubs\tr2, r2, #0x80\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:78-7f */\n\tbhs\t.Lmemcpy_w_loop128\n\n.Lmemcpy_w_lessthan128:\n\tadds\tr2, r2, #0x80\t\t/* Adjust for extra sub */\n\tpopeq\t{r4-r9}\n\tRETc(eq)\t\t\t/* Return now if done */\n\tsubs\tr2, r2, #0x20\n\tblo\t.Lmemcpy_w_lessthan32", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:4", "text": "ldr\tr7, [r1], #0x04\t\t/* LD:6c-6f */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:58-5f */\n\tldr\tr8, [r1], #0x04\t\t/* LD:70-73 */\n\tldr\tr9, [r1], #0x04\t\t/* LD:74-77 */\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:60-67 */\n\tldr\tr4, [r1], #0x04\t\t/* LD:78-7b */\n\tldr\tr5, [r1], #0x04\t\t/* LD:7c-7f */\n\tstrd\tr6, r7, [r3], #0x08\t/* ST:68-6f */\n\tstrd\tr8, r9, [r3], #0x08\t/* ST:70-77 */\n\tsubs\tr2, r2, #0x80\n\tstrd\tr4, r5, [r3], #0x08\t/* ST:78-7f */\n\tbhs\t.Lmemcpy_w_loop128\n\n.Lmemcpy_w_lessthan128:\n\tadds\tr2, r2, #0x80\t\t/* Adjust for extra sub */\n\tpopeq\t{r4-r9}\n\tRETc(eq)\t\t\t/* Return now if done */\n\tsubs\tr2, r2, #0x20\n\tblo\t.Lmemcpy_w_lessthan32\n\n\t/* Copy 32 bytes at a time */\n.Lmemcpy_w_loop32:\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tpld\t[r1, #0x18]\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tr8, [r1], #0x04\n\tldr\tr9, [r1], #0x04\n\tstrd\tr4, r5, [r3], #0x08\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tstrd\tr6, r7, [r3], #0x08\n\tstrd\tr8, r9, [r3], #0x08\n\tsubs\tr2, r2, #0x20\n\tstrd\tr4, r5, [r3], #0x08\n\tbhs\t.Lmemcpy_w_loop32\n\n.Lmemcpy_w_lessthan32:\n\tadds\tr2, r2, #0x20\t\t/* Adjust for extra sub */\n\tpopeq\t{r4-r9}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n\tand\tr4, r2, #0x18\n\trsbs\tr4, r4, #0x18\n\taddne\tpc, pc, r4, lsl #1\n\tnop\n\n\t/* At least 24 bytes remaining */\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tsub\tr2, r2, #0x08\n\tstrd\tr4, r5, [r3], #0x08\n\n\t/* At least 16 bytes remaining */\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tsub\tr2, r2, #0x08\n\tstrd\tr4, r5, [r3], #0x08", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:5", "text": "popeq\t{r4-r9}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n\tand\tr4, r2, #0x18\n\trsbs\tr4, r4, #0x18\n\taddne\tpc, pc, r4, lsl #1\n\tnop\n\n\t/* At least 24 bytes remaining */\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tsub\tr2, r2, #0x08\n\tstrd\tr4, r5, [r3], #0x08\n\n\t/* At least 16 bytes remaining */\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tsub\tr2, r2, #0x08\n\tstrd\tr4, r5, [r3], #0x08\n\n\t/* At least 8 bytes remaining */\n\tldr\tr4, [r1], #0x04\n\tldr\tr5, [r1], #0x04\n\tsubs\tr2, r2, #0x08\n\tstrd\tr4, r5, [r3], #0x08\n\n\t/* Less than 8 bytes remaining */\n\tpop\t{r4-r9}\n\tRETc(eq)\t\t\t/* Return now if done */\n\tsubs\tr2, r2, #0x04\n\tldrhs\tip, [r1], #0x04\n\tstrhs\tip, [r3], #0x04\n\tRETc(eq)\t\t\t/* Return now if done */\n\taddlo\tr2, r2, #0x04\n\tldrb\tip, [r1], #0x01\n\tcmp\tr2, #0x02\n\tldrbhs\tr2, [r1], #0x01\n\tstrb\tip, [r3], #0x01\n\tldrbhi\tip, [r1]\n\tstrbhs\tr2, [r3], #0x01\n\tstrbhi\tip, [r3]\n\tRET\n\n\n/*\n * At this point, it has not been possible to word align both buffers.\n * The destination buffer is word aligned, but the source buffer is not.\n */\n.Lmemcpy_bad_align:\n\tpush\t{r4-r7}\n\tbic\tr1, r1, #0x03\n\tcmp\tip, #2\n\tldr\tip, [r1], #0x04\n\tbhi\t.Lmemcpy_bad3\n\tbeq\t.Lmemcpy_bad2\n\tb\t.Lmemcpy_bad1\n\n.Lmemcpy_bad1_loop16:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:6", "text": "strbhi\tip, [r3]\n\tRET\n\n\n/*\n * At this point, it has not been possible to word align both buffers.\n * The destination buffer is word aligned, but the source buffer is not.\n */\n.Lmemcpy_bad_align:\n\tpush\t{r4-r7}\n\tbic\tr1, r1, #0x03\n\tcmp\tip, #2\n\tldr\tip, [r1], #0x04\n\tbhi\t.Lmemcpy_bad3\n\tbeq\t.Lmemcpy_bad2\n\tb\t.Lmemcpy_bad1\n\n.Lmemcpy_bad1_loop16:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #8\n#else\n\tmov\tr4, ip, lsr #8\n#endif\n\tldr\tr5, [r1], #0x04\n\tpld\t[r1, #0x018]\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #24\n\tmov\tr5, r5, lsl #8\n\torr\tr5, r5, r6, lsr #24\n\tmov\tr6, r6, lsl #8\n\torr\tr6, r6, r7, lsr #24\n\tmov\tr7, r7, lsl #8\n\torr\tr7, r7, ip, lsr #24\n#else\n\torr\tr4, r4, r5, lsl #24\n\tmov\tr5, r5, lsr #8\n\torr\tr5, r5, r6, lsl #24\n\tmov\tr6, r6, lsr #8\n\torr\tr6, r6, r7, lsl #24\n\tmov\tr7, r7, lsr #8\n\torr\tr7, r7, ip, lsl #24\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsub\tr2, r2, #0x10\n\n.Lmemcpy_bad1:\n\tcmp\tr2, #0x20\n\tbhs\t.Lmemcpy_bad1_loop16\n\tcmp\tr2, #0x10\n\tblo\t.Lmemcpy_bad1_loop16_short\n\n\t/* copy last 16 bytes (without preload) */\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:7", "text": "mov\tr6, r6, lsr #8\n\torr\tr6, r6, r7, lsl #24\n\tmov\tr7, r7, lsr #8\n\torr\tr7, r7, ip, lsl #24\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsub\tr2, r2, #0x10\n\n.Lmemcpy_bad1:\n\tcmp\tr2, #0x20\n\tbhs\t.Lmemcpy_bad1_loop16\n\tcmp\tr2, #0x10\n\tblo\t.Lmemcpy_bad1_loop16_short\n\n\t/* copy last 16 bytes (without preload) */\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #8\n#else\n\tmov\tr4, ip, lsr #8\n#endif\n\tldr\tr5, [r1], #0x04\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #24\n\tmov\tr5, r5, lsl #8\n\torr\tr5, r5, r6, lsr #24\n\tmov\tr6, r6, lsl #8\n\torr\tr6, r6, r7, lsr #24\n\tmov\tr7, r7, lsl #8\n\torr\tr7, r7, ip, lsr #24\n#else\n\torr\tr4, r4, r5, lsl #24\n\tmov\tr5, r5, lsr #8\n\torr\tr5, r5, r6, lsl #24\n\tmov\tr6, r6, lsr #8\n\torr\tr6, r6, r7, lsl #24\n\tmov\tr7, r7, lsr #8\n\torr\tr7, r7, ip, lsl #24\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsubs\tr2, r2, #0x10\n\tpopeq\t{r4-r7}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n.Lmemcpy_bad1_loop16_short:\n\tsubs\tr2, r2, #0x04\n\tsublo\tr1, r1, #0x03\n\tblo\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad1_loop4:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:8", "text": "orr\tr6, r6, r7, lsl #24\n\tmov\tr7, r7, lsr #8\n\torr\tr7, r7, ip, lsl #24\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsubs\tr2, r2, #0x10\n\tpopeq\t{r4-r7}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n.Lmemcpy_bad1_loop16_short:\n\tsubs\tr2, r2, #0x04\n\tsublo\tr1, r1, #0x03\n\tblo\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad1_loop4:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #8\n#else\n\tmov\tr4, ip, lsr #8\n#endif\n\tldr\tip, [r1], #0x04\n\tsubs\tr2, r2, #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, ip, lsr #24\n#else\n\torr\tr4, r4, ip, lsl #24\n#endif\n\tstr\tr4, [r3], #0x04\n\tbhs\t.Lmemcpy_bad1_loop4\n\tsub\tr1, r1, #0x03\n\tb\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad2_loop16:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #16\n#else\n\tmov\tr4, ip, lsr #16\n#endif\n\tldr\tr5, [r1], #0x04\n\tpld\t[r1, #0x018]\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r6, lsr #16\n\tmov\tr6, r6, lsl #16\n\torr\tr6, r6, r7, lsr #16\n\tmov\tr7, r7, lsl #16\n\torr\tr7, r7, ip, lsr #16\n#else\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r6, lsl #16\n\tmov\tr6, r6, lsr #16\n\torr\tr6, r6, r7, lsl #16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:9", "text": "#endif\n\tldr\tr5, [r1], #0x04\n\tpld\t[r1, #0x018]\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r6, lsr #16\n\tmov\tr6, r6, lsl #16\n\torr\tr6, r6, r7, lsr #16\n\tmov\tr7, r7, lsl #16\n\torr\tr7, r7, ip, lsr #16\n#else\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r6, lsl #16\n\tmov\tr6, r6, lsr #16\n\torr\tr6, r6, r7, lsl #16\n\tmov\tr7, r7, lsr #16\n\torr\tr7, r7, ip, lsl #16\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsub\tr2, r2, #0x10\n\n.Lmemcpy_bad2:\n\tcmp\tr2, #0x20\n\tbhs\t.Lmemcpy_bad2_loop16\n\tcmp\tr2, #0x10\n\tblo\t.Lmemcpy_bad2_loop16_short\n\n\t/* copy last 16 bytes (without preload) */\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #16\n#else\n\tmov\tr4, ip, lsr #16\n#endif\n\tldr\tr5, [r1], #0x04\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r6, lsr #16\n\tmov\tr6, r6, lsl #16\n\torr\tr6, r6, r7, lsr #16\n\tmov\tr7, r7, lsl #16\n\torr\tr7, r7, ip, lsr #16\n#else\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r6, lsl #16\n\tmov\tr6, r6, lsr #16\n\torr\tr6, r6, r7, lsl #16\n\tmov\tr7, r7, lsr #16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:10", "text": "#endif\n\tldr\tr5, [r1], #0x04\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r6, lsr #16\n\tmov\tr6, r6, lsl #16\n\torr\tr6, r6, r7, lsr #16\n\tmov\tr7, r7, lsl #16\n\torr\tr7, r7, ip, lsr #16\n#else\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r6, lsl #16\n\tmov\tr6, r6, lsr #16\n\torr\tr6, r6, r7, lsl #16\n\tmov\tr7, r7, lsr #16\n\torr\tr7, r7, ip, lsl #16\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsubs\tr2, r2, #0x10\n\tpopeq\t{r4-r7}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n.Lmemcpy_bad2_loop16_short:\n\tsubs\tr2, r2, #0x04\n\tsublo\tr1, r1, #0x02\n\tblo\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad2_loop4:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #16\n#else\n\tmov\tr4, ip, lsr #16\n#endif\n\tldr\tip, [r1], #0x04\n\tsubs\tr2, r2, #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, ip, lsr #16\n#else\n\torr\tr4, r4, ip, lsl #16\n#endif\n\tstr\tr4, [r3], #0x04\n\tbhs\t.Lmemcpy_bad2_loop4\n\tsub\tr1, r1, #0x02\n\tb\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad3_loop16:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #24\n#else\n\tmov\tr4, ip, lsr #24\n#endif\n\tldr\tr5, [r1], #0x04", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:11", "text": "#endif\n\tldr\tip, [r1], #0x04\n\tsubs\tr2, r2, #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, ip, lsr #16\n#else\n\torr\tr4, r4, ip, lsl #16\n#endif\n\tstr\tr4, [r3], #0x04\n\tbhs\t.Lmemcpy_bad2_loop4\n\tsub\tr1, r1, #0x02\n\tb\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad3_loop16:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #24\n#else\n\tmov\tr4, ip, lsr #24\n#endif\n\tldr\tr5, [r1], #0x04\n\tpld\t[r1, #0x018]\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r6, lsr #8\n\tmov\tr6, r6, lsl #24\n\torr\tr6, r6, r7, lsr #8\n\tmov\tr7, r7, lsl #24\n\torr\tr7, r7, ip, lsr #8\n#else\n\torr\tr4, r4, r5, lsl #8\n\tmov\tr5, r5, lsr #24\n\torr\tr5, r5, r6, lsl #8\n\tmov\tr6, r6, lsr #24\n\torr\tr6, r6, r7, lsl #8\n\tmov\tr7, r7, lsr #24\n\torr\tr7, r7, ip, lsl #8\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsub\tr2, r2, #0x10\n\n.Lmemcpy_bad3:\n\tcmp\tr2, #0x20\n\tbhs\t.Lmemcpy_bad3_loop16\n\tcmp\tr2, #0x10\n\tblo\t.Lmemcpy_bad3_loop16_short\n\n\t/* copy last 16 bytes (without preload) */\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #24\n#else\n\tmov\tr4, ip, lsr #24\n#endif\n\tldr\tr5, [r1], #0x04", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:12", "text": "#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsub\tr2, r2, #0x10\n\n.Lmemcpy_bad3:\n\tcmp\tr2, #0x20\n\tbhs\t.Lmemcpy_bad3_loop16\n\tcmp\tr2, #0x10\n\tblo\t.Lmemcpy_bad3_loop16_short\n\n\t/* copy last 16 bytes (without preload) */\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #24\n#else\n\tmov\tr4, ip, lsr #24\n#endif\n\tldr\tr5, [r1], #0x04\n\tldr\tr6, [r1], #0x04\n\tldr\tr7, [r1], #0x04\n\tldr\tip, [r1], #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r6, lsr #8\n\tmov\tr6, r6, lsl #24\n\torr\tr6, r6, r7, lsr #8\n\tmov\tr7, r7, lsl #24\n\torr\tr7, r7, ip, lsr #8\n#else\n\torr\tr4, r4, r5, lsl #8\n\tmov\tr5, r5, lsr #24\n\torr\tr5, r5, r6, lsl #8\n\tmov\tr6, r6, lsr #24\n\torr\tr6, r6, r7, lsl #8\n\tmov\tr7, r7, lsr #24\n\torr\tr7, r7, ip, lsl #8\n#endif\n\tstr\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsubs\tr2, r2, #0x10\n\tpopeq\t{r4-r7}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n.Lmemcpy_bad3_loop16_short:\n\tsubs\tr2, r2, #0x04\n\tsublo\tr1, r1, #0x01\n\tblo\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad3_loop4:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #24\n#else\n\tmov\tr4, ip, lsr #24\n#endif\n\tldr\tip, [r1], #0x04", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:13", "text": "str\tr4, [r3], #0x04\n\tstr\tr5, [r3], #0x04\n\tstr\tr6, [r3], #0x04\n\tstr\tr7, [r3], #0x04\n\tsubs\tr2, r2, #0x10\n\tpopeq\t{r4-r7}\n\tRETc(eq)\t\t\t/* Return now if done */\n\n.Lmemcpy_bad3_loop16_short:\n\tsubs\tr2, r2, #0x04\n\tsublo\tr1, r1, #0x01\n\tblo\t.Lmemcpy_bad_done\n\n.Lmemcpy_bad3_loop4:\n#ifdef __ARMEB__\n\tmov\tr4, ip, lsl #24\n#else\n\tmov\tr4, ip, lsr #24\n#endif\n\tldr\tip, [r1], #0x04\n\tsubs\tr2, r2, #0x04\n#ifdef __ARMEB__\n\torr\tr4, r4, ip, lsr #8\n#else\n\torr\tr4, r4, ip, lsl #8\n#endif\n\tstr\tr4, [r3], #0x04\n\tbhs\t.Lmemcpy_bad3_loop4\n\tsub\tr1, r1, #0x01\n\n.Lmemcpy_bad_done:\n\tpop\t{r4-r7}\n\tadds\tr2, r2, #0x04\n\tRETc(eq)\n\tldrb\tip, [r1], #0x01\n\tcmp\tr2, #0x02\n\tldrbhs\tr2, [r1], #0x01\n\tstrb\tip, [r3], #0x01\n\tldrbhi\tip, [r1]\n\tstrbhs\tr2, [r3], #0x01\n\tstrbhi\tip, [r3]\n\tRET\n\n\n/*\n * Handle short copies (less than 16 bytes), possibly misaligned.\n * Some of these are *very* common, thanks to the network stack,\n * and so are handled specially.\n */\n.Lmemcpy_short:\n#ifndef _STANDALONE\n\tadd\tpc, pc, r2, lsl #2\n\tnop\n\tRET\t\t\t\t/* 0x00 */\n\tb\t.Lmemcpy_bytewise\t/* 0x01 */\n\tb\t.Lmemcpy_bytewise\t/* 0x02 */\n\tb\t.Lmemcpy_bytewise\t/* 0x03 */\n\tb\t.Lmemcpy_4\t\t/* 0x04 */\n\tb\t.Lmemcpy_bytewise\t/* 0x05 */\n\tb\t.Lmemcpy_6\t\t/* 0x06 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:14", "text": "strbhi\tip, [r3]\n\tRET\n\n\n/*\n * Handle short copies (less than 16 bytes), possibly misaligned.\n * Some of these are *very* common, thanks to the network stack,\n * and so are handled specially.\n */\n.Lmemcpy_short:\n#ifndef _STANDALONE\n\tadd\tpc, pc, r2, lsl #2\n\tnop\n\tRET\t\t\t\t/* 0x00 */\n\tb\t.Lmemcpy_bytewise\t/* 0x01 */\n\tb\t.Lmemcpy_bytewise\t/* 0x02 */\n\tb\t.Lmemcpy_bytewise\t/* 0x03 */\n\tb\t.Lmemcpy_4\t\t/* 0x04 */\n\tb\t.Lmemcpy_bytewise\t/* 0x05 */\n\tb\t.Lmemcpy_6\t\t/* 0x06 */\n\tb\t.Lmemcpy_bytewise\t/* 0x07 */\n\tb\t.Lmemcpy_8\t\t/* 0x08 */\n\tb\t.Lmemcpy_bytewise\t/* 0x09 */\n\tb\t.Lmemcpy_bytewise\t/* 0x0a */\n\tb\t.Lmemcpy_bytewise\t/* 0x0b */\n\tb\t.Lmemcpy_c\t\t/* 0x0c */\n#endif\n.Lmemcpy_bytewise:\n\tmov\tr3, r0\t\t\t/* We must not clobber r0 */\n\tldrb\tip, [r1], #0x01\n1:\tsubs\tr2, r2, #0x01\n\tstrb\tip, [r3], #0x01\n\tldrbne\tip, [r1], #0x01\n\tbne\t1b\n\tRET\n\n#ifndef _STANDALONE\n/******************************************************************************\n * Special case for 4 byte copies\n */\n#define\tLMEMCPY_4_LOG2\t6\t/* 64 bytes */\n#define\tLMEMCPY_4_PAD\t.align LMEMCPY_4_LOG2\n\tLMEMCPY_4_PAD\n.Lmemcpy_4:\n\tand\tr2, r1, #0x03\n\torr\tr2, r2, r0, lsl #2\n\tands\tr2, r2, #0x0f\n\tsub\tr3, pc, #0x14\n\taddne\tpc, r3, r2, lsl #LMEMCPY_4_LOG2\n\n/*\n * 0000: dst is 32-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n\tstr\tr2, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:15", "text": "#define\tLMEMCPY_4_LOG2\t6\t/* 64 bytes */\n#define\tLMEMCPY_4_PAD\t.align LMEMCPY_4_LOG2\n\tLMEMCPY_4_PAD\n.Lmemcpy_4:\n\tand\tr2, r1, #0x03\n\torr\tr2, r2, r0, lsl #2\n\tands\tr2, r2, #0x0f\n\tsub\tr3, pc, #0x14\n\taddne\tpc, r3, r2, lsl #LMEMCPY_4_LOG2\n\n/*\n * 0000: dst is 32-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n\tstr\tr2, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #-1]\t\t/* BE:r3 = x012  LE:r3 = 210x */\n\tldr\tr2, [r1, #3]\t\t/* BE:r2 = 3xxx  LE:r2 = xxx3 */\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 012. */\n\torr\tr3, r3, r2, lsr #24\t/* r3 = 0123 */\n#else\n\tmov\tr3, r3, lsr #8\t\t/* r3 = .210 */\n\torr\tr3, r3, r2, lsl #24\t/* r3 = 3210 */\n#endif\n\tstr\tr3, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0010: dst is 32-bit aligned, src is 16-bit aligned\n */\n#ifdef __ARMEB__\n\tldrh\tr3, [r1]\n\tldrh\tr2, [r1, #0x02]\n#else\n\tldrh\tr3, [r1, #0x02]\n\tldrh\tr2, [r1]\n#endif\n\torr\tr3, r2, r3, lsl #16\n\tstr\tr3, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #-3]\t\t/* BE:r3 = xxx0  LE:r3 = 0xxx */\n\tldr\tr2, [r1, #1]\t\t/* BE:r2 = 123x  LE:r2 = x321 */\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 0... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 0123 */\n#else\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...0 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 3210 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:16", "text": "#else\n\tldrh\tr3, [r1, #0x02]\n\tldrh\tr2, [r1]\n#endif\n\torr\tr3, r2, r3, lsl #16\n\tstr\tr3, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #-3]\t\t/* BE:r3 = xxx0  LE:r3 = 0xxx */\n\tldr\tr2, [r1, #1]\t\t/* BE:r2 = 123x  LE:r2 = x321 */\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 0... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 0123 */\n#else\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...0 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 3210 */\n#endif\n\tstr\tr3, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n#ifdef __ARMEB__\n\tstrb\tr2, [r0, #0x03]\n\tmov\tr3, r2, lsr #8\n\tmov\tr1, r2, lsr #24\n\tstrb\tr1, [r0]\n#else\n\tstrb\tr2, [r0]\n\tmov\tr3, r2, lsr #8\n\tmov\tr1, r2, lsr #24\n\tstrb\tr1, [r0, #0x03]\n#endif\n\tstrh\tr3, [r0, #0x01]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:17", "text": "strh\tr3, [r0, #0x01]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldrh\tr3, [r1, #0x02]\t\t/* LE:r3 = ..23  LE:r3 = ..32 */\n#ifdef __ARMEB__\n\tmov\tr1, r2, lsr #8\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr2, r2, lsl #8\t\t/* r2 = .01. */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = .012 */\n#else\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...1 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = .321 */\n\tmov\tr3, r3, lsr #8\t\t/* r3 = ...3 */\n#endif\n\tstrh\tr2, [r0, #0x01]\n\tstrb\tr3, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 0111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1000: dst is 16-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n#ifdef __ARMEB__\n\tstrh\tr2, [r0, #0x02]\n\tmov\tr3, r2, lsr #16\n\tstrh\tr3, [r0]\n#else\n\tstrh\tr2, [r0]\n\tmov\tr3, r2, lsr #16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:18", "text": "ldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1000: dst is 16-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n#ifdef __ARMEB__\n\tstrh\tr2, [r0, #0x02]\n\tmov\tr3, r2, lsr #16\n\tstrh\tr3, [r0]\n#else\n\tstrh\tr2, [r0]\n\tmov\tr3, r2, lsr #16\n\tstrh\tr3, [r0, #0x02]\n#endif\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1001: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr2, [r1, #-1]\t\t/* BE:r2 = x012  LE:r2 = 210x */\n\tldr\tr3, [r1, #3]\t\t/* BE:r3 = 3xxx  LE:r3 = xxx3 */\n\tmov\tr1, r2, lsr #8\t\t/* BE:r1 = .x01  LE:r1 = .210 */\n\tstrh\tr1, [r0]\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 012. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = 0123 */\n#else\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...2 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = xx32 */\n#endif\n\tstrh\tr2, [r0, #0x02]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldrh\tr3, [r1, #0x02]\n\tstrh\tr2, [r0]\n\tstrh\tr3, [r0, #0x02]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1011: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #1]\t\t/* BE:r3 = 123x  LE:r3 = x321 */\n\tldr\tr2, [r1, #-3]\t\t/* BE:r2 = xxx0  LE:r2 = 0xxx */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .123  LE:r1 = .x32 */\n\tstrh\tr1, [r0, #0x02]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:19", "text": "RET\n\tLMEMCPY_4_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldrh\tr3, [r1, #0x02]\n\tstrh\tr2, [r0]\n\tstrh\tr3, [r0, #0x02]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1011: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #1]\t\t/* BE:r3 = 123x  LE:r3 = x321 */\n\tldr\tr2, [r1, #-3]\t\t/* BE:r2 = xxx0  LE:r2 = 0xxx */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .123  LE:r1 = .x32 */\n\tstrh\tr1, [r0, #0x02]\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...1 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = xx01 */\n#else\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 321. */\n\torr\tr3, r3, r2, lsr #24\t/* r3 = 3210 */\n#endif\n\tstrh\tr3, [r0]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n#ifdef __ARMEB__\n\tstrb\tr2, [r0, #0x03]\n\tmov\tr3, r2, lsr #8\n\tmov\tr1, r2, lsr #24\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0]\n#else\n\tstrb\tr2, [r0]\n\tmov\tr3, r2, lsr #8\n\tmov\tr1, r2, lsr #24\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n#endif\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:20", "text": "strb\tr1, [r0]\n#else\n\tstrb\tr2, [r0]\n\tmov\tr3, r2, lsr #8\n\tmov\tr1, r2, lsr #24\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n#endif\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1110: dst is 8-bit aligned, src is 16-bit aligned\n */\n#ifdef __ARMEB__\n\tldrh\tr3, [r1, #0x02]\t\t/* BE:r3 = ..23  LE:r3 = ..32 */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tstrb\tr3, [r0, #0x03]\n\tmov\tr3, r3, lsr #8\t\t/* r3 = ...2 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = ..12 */\n\tstrh\tr3, [r0, #0x01]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...0 */\n\tstrb\tr2, [r0]\n#else\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldrh\tr3, [r1, #0x02]\t\t/* BE:r3 = ..23  LE:r3 = ..32 */\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...1 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = .321 */\n\tstrh\tr2, [r0, #0x01]\n\tmov\tr3, r3, lsr #8\t\t/* r3 = ...3 */\n\tstrb\tr3, [r0, #0x03]\n#endif\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:21", "text": "orr\tr2, r2, r3, lsl #8\t/* r2 = .321 */\n\tstrh\tr2, [r0, #0x01]\n\tmov\tr3, r3, lsr #8\t\t/* r3 = ...3 */\n\tstrb\tr3, [r0, #0x03]\n#endif\n\tRET\n\tLMEMCPY_4_PAD\n\n/*\n * 1111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x03]\n\tRET\n\tLMEMCPY_4_PAD\n\n\n/******************************************************************************\n * Special case for 6 byte copies\n */\n#define\tLMEMCPY_6_LOG2\t6\t/* 64 bytes */\n#define\tLMEMCPY_6_PAD\t.align LMEMCPY_6_LOG2\n\tLMEMCPY_6_PAD\n.Lmemcpy_6:\n\tand\tr2, r1, #0x03\n\torr\tr2, r2, r0, lsl #2\n\tands\tr2, r2, #0x0f\n\tsub\tr3, pc, #0x14\n\taddne\tpc, r3, r2, lsl #LMEMCPY_6_LOG2\n\n/*\n * 0000: dst is 32-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n\tldrh\tr3, [r1, #0x04]\n\tstr\tr2, [r0]\n\tstrh\tr3, [r0, #0x04]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr2, [r1, #-1]\t\t/* BE:r2 = x012  LE:r2 = 210x */\n\tldr\tr3, [r1, #0x03]\t\t/* BE:r3 = 345x  LE:r3 = x543 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 012. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = 0123 */\n#else\n\tmov\tr2, r2, lsr #8\t\t/* r2 = .210 */\n\torr\tr2, r2, r3, lsl #24\t/* r2 = 3210 */\n#endif\n\tmov\tr3, r3, lsr #8\t\t/* BE:r3 = .345  LE:r3 = .x54 */\n\tstr\tr2, [r0]\n\tstrh\tr3, [r0, #0x04]\n\tRET", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:22", "text": "strh\tr3, [r0, #0x04]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr2, [r1, #-1]\t\t/* BE:r2 = x012  LE:r2 = 210x */\n\tldr\tr3, [r1, #0x03]\t\t/* BE:r3 = 345x  LE:r3 = x543 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 012. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = 0123 */\n#else\n\tmov\tr2, r2, lsr #8\t\t/* r2 = .210 */\n\torr\tr2, r2, r3, lsl #24\t/* r2 = 3210 */\n#endif\n\tmov\tr3, r3, lsr #8\t\t/* BE:r3 = .345  LE:r3 = .x54 */\n\tstr\tr2, [r0]\n\tstrh\tr3, [r0, #0x04]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0010: dst is 32-bit aligned, src is 16-bit aligned\n */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n#ifdef __ARMEB__\n\tmov\tr1, r3, lsr #16\t\t/* r1 = ..23 */\n\torr\tr1, r1, r2, lsl #16\t/* r1 = 0123 */\n\tstr\tr1, [r0]\n\tstrh\tr3, [r0, #0x04]\n#else\n\tmov\tr1, r3, lsr #16\t\t/* r1 = ..54 */\n\torr\tr2, r2, r3, lsl #16\t/* r2 = 3210 */\n\tstr\tr2, [r0]\n\tstrh\tr1, [r0, #0x04]\n#endif\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr2, [r1, #-3]\t\t/* BE:r2 = xxx0  LE:r2 = 0xxx */\n\tldr\tr3, [r1, #1]\t\t/* BE:r3 = 1234  LE:r3 = 4321 */\n\tldr\tr1, [r1, #5]\t\t/* BE:r1 = 5xxx  LE:r3 = xxx5 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 0... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 0123 */\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 234. */\n\torr\tr1, r3, r1, lsr #24\t/* r1 = 2345 */\n#else\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...0 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 3210 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = xx5. */\n\torr\tr1, r1, r3, lsr #24\t/* r1 = xx54 */\n#endif\n\tstr\tr2, [r0]\n\tstrh\tr1, [r0, #0x04]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:23", "text": "/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr2, [r1, #-3]\t\t/* BE:r2 = xxx0  LE:r2 = 0xxx */\n\tldr\tr3, [r1, #1]\t\t/* BE:r3 = 1234  LE:r3 = 4321 */\n\tldr\tr1, [r1, #5]\t\t/* BE:r1 = 5xxx  LE:r3 = xxx5 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 0... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 0123 */\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 234. */\n\torr\tr1, r3, r1, lsr #24\t/* r1 = 2345 */\n#else\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...0 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 3210 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = xx5. */\n\torr\tr1, r1, r3, lsr #24\t/* r1 = xx54 */\n#endif\n\tstr\tr2, [r0]\n\tstrh\tr1, [r0, #0x04]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr3, [r1]\t\t/* BE:r3 = 0123  LE:r3 = 3210 */\n\tldrh\tr2, [r1, #0x04]\t\t/* BE:r2 = ..45  LE:r2 = ..54 */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .012  LE:r1 = .321 */\n\tstrh\tr1, [r0, #0x01]\n#ifdef __ARMEB__\n\tmov\tr1, r3, lsr #24\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 123. */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 1234 */\n#else\n\tstrb\tr3, [r0]\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...3 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = .543 */\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...5 */\n#endif\n\tstrh\tr3, [r0, #0x03]\n\tstrb\tr2, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrh\tip, [r1, #0x03]\n\tldrb\tr1, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrh\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:24", "text": "#endif\n\tstrh\tr3, [r0, #0x03]\n\tstrb\tr2, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrh\tip, [r1, #0x03]\n\tldrb\tr1, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrh\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr1, [r1, #0x02]\t\t/* BE:r1 = 2345  LE:r1 = 5432 */\n#ifdef __ARMEB__\n\tmov\tr3, r2, lsr #8\t\t/* r3 = ...0 */\n\tstrb\tr3, [r0]\n\tstrb\tr1, [r0, #0x05]\n\tmov\tr3, r1, lsr #8\t\t/* r3 = .234 */\n\tstrh\tr3, [r0, #0x03]\n\tmov\tr3, r2, lsl #8\t\t/* r3 = .01. */\n\torr\tr3, r3, r1, lsr #24\t/* r3 = .012 */\n\tstrh\tr3, [r0, #0x01]\n#else\n\tstrb\tr2, [r0]\n\tmov\tr3, r1, lsr #24\n\tstrb\tr3, [r0, #0x05]\n\tmov\tr3, r1, lsr #8\t\t/* r3 = .543 */\n\tstrh\tr3, [r0, #0x03]\n\tmov\tr3, r2, lsr #8\t\t/* r3 = ...1 */\n\torr\tr3, r3, r1, lsl #8\t/* r3 = 4321 */\n\tstrh\tr3, [r0, #0x01]\n#endif\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrh\tip, [r1, #0x03]\n\tldrb\tr1, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrh\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:25", "text": "mov\tr3, r2, lsr #8\t\t/* r3 = ...1 */\n\torr\tr3, r3, r1, lsl #8\t/* r3 = 4321 */\n\tstrh\tr3, [r0, #0x01]\n#endif\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 0111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrh\tip, [r1, #0x03]\n\tldrb\tr1, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrh\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1000: dst is 16-bit aligned, src is 32-bit aligned\n */\n#ifdef __ARMEB__\n\tldr\tr2, [r1]\t\t/* r2 = 0123 */\n\tldrh\tr3, [r1, #0x04]\t\t/* r3 = ..45 */\n\tmov\tr1, r2, lsr #16\t\t/* r1 = ..01 */\n\torr\tr3, r3, r2, lsl#16\t/* r3 = 2345 */\n\tstrh\tr1, [r0]\n\tstr\tr3, [r0, #0x02]\n#else\n\tldrh\tr2, [r1, #0x04]\t\t/* r2 = ..54 */\n\tldr\tr3, [r1]\t\t/* r3 = 3210 */\n\tmov\tr2, r2, lsl #16\t\t/* r2 = 54.. */\n\torr\tr2, r2, r3, lsr #16\t/* r2 = 5432 */\n\tstrh\tr3, [r0]\n\tstr\tr2, [r0, #0x02]\n#endif\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1001: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #-1]\t\t/* BE:r3 = x012  LE:r3 = 210x */\n\tldr\tr2, [r1, #3]\t\t/* BE:r2 = 345x  LE:r2 = x543 */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .x01  LE:r1 = .210 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsr #8\t\t/* r2 = .345 */\n\torr\tr2, r2, r3, lsl #24\t/* r2 = 2345 */\n#else\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 543. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = 5432 */\n#endif\n\tstrh\tr1, [r0]\n\tstr\tr2, [r0, #0x02]\n\tRET\n\tLMEMCPY_6_PAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:26", "text": "LMEMCPY_6_PAD\n\n/*\n * 1001: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #-1]\t\t/* BE:r3 = x012  LE:r3 = 210x */\n\tldr\tr2, [r1, #3]\t\t/* BE:r2 = 345x  LE:r2 = x543 */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .x01  LE:r1 = .210 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsr #8\t\t/* r2 = .345 */\n\torr\tr2, r2, r3, lsl #24\t/* r2 = 2345 */\n#else\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 543. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = 5432 */\n#endif\n\tstrh\tr1, [r0]\n\tstr\tr2, [r0, #0x02]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldr\tr3, [r1, #0x02]\n\tstrh\tr2, [r0]\n\tstr\tr3, [r0, #0x02]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1011: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr3, [r1]\t\t/* r3 = ...0 */\n\tldr\tr2, [r1, #0x01]\t\t/* BE:r2 = 1234  LE:r2 = 4321 */\n\tldrb\tr1, [r1, #0x05]\t\t/* r1 = ...5 */\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsl #8\t\t/* r3 = ..0. */\n\torr\tr3, r3, r2, lsr #24\t/* r3 = ..01 */\n\torr\tr1, r1, r2, lsl #8\t/* r1 = 2345 */\n#else\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 3210 */\n\tmov\tr1, r1, lsl #24\t\t/* r1 = 5... */\n\torr\tr1, r1, r2, lsr #8\t/* r1 = 5432 */\n#endif\n\tstrh\tr3, [r0]\n\tstr\tr1, [r0, #0x02]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldrh\tr1, [r1, #0x04]\t\t/* BE:r1 = ..45  LE:r1 = ..54 */\n#ifdef __ARMEB__\n\tmov\tr3, r2, lsr #24\t\t/* r3 = ...0 */\n\tstrb\tr3, [r0]\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 123. */\n\torr\tr2, r2, r1, lsr #8\t/* r2 = 1234 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:27", "text": "#else\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 3210 */\n\tmov\tr1, r1, lsl #24\t\t/* r1 = 5... */\n\torr\tr1, r1, r2, lsr #8\t/* r1 = 5432 */\n#endif\n\tstrh\tr3, [r0]\n\tstr\tr1, [r0, #0x02]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldrh\tr1, [r1, #0x04]\t\t/* BE:r1 = ..45  LE:r1 = ..54 */\n#ifdef __ARMEB__\n\tmov\tr3, r2, lsr #24\t\t/* r3 = ...0 */\n\tstrb\tr3, [r0]\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 123. */\n\torr\tr2, r2, r1, lsr #8\t/* r2 = 1234 */\n#else\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = .321 */\n\torr\tr2, r2, r1, lsl #24\t/* r2 = 4321 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = ...5 */\n#endif\n\tstr\tr2, [r0, #0x01]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldrh\tip, [r1, #0x03]\n\tldrb\tr1, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstrh\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr1, [r1, #0x02]\t\t/* BE:r1 = 2345  LE:r1 = 5432 */\n#ifdef __ARMEB__\n\tmov\tr3, r2, lsr #8\t\t/* r3 = ...0 */\n\tstrb\tr3, [r0]\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 1... */\n\torr\tr2, r2, r1, lsr #8\t/* r2 = 1234 */\n#else\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...1 */\n\torr\tr2, r2, r1, lsl #8\t/* r2 = 4321 */\n\tmov\tr1, r1, lsr #24\t\t/* r1 = ...5 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:28", "text": "strh\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr1, [r1, #0x02]\t\t/* BE:r1 = 2345  LE:r1 = 5432 */\n#ifdef __ARMEB__\n\tmov\tr3, r2, lsr #8\t\t/* r3 = ...0 */\n\tstrb\tr3, [r0]\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 1... */\n\torr\tr2, r2, r1, lsr #8\t/* r2 = 1234 */\n#else\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...1 */\n\torr\tr2, r2, r1, lsl #8\t/* r2 = 4321 */\n\tmov\tr1, r1, lsr #24\t\t/* r1 = ...5 */\n#endif\n\tstr\tr2, [r0, #0x01]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n/*\n * 1111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldr\tr3, [r1, #0x01]\n\tldrb\tr1, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tstr\tr3, [r0, #0x01]\n\tstrb\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_6_PAD\n\n\n/******************************************************************************\n * Special case for 8 byte copies\n */\n#define\tLMEMCPY_8_LOG2\t6\t/* 64 bytes */\n#define\tLMEMCPY_8_PAD\t.align LMEMCPY_8_LOG2\n\tLMEMCPY_8_PAD\n.Lmemcpy_8:\n\tand\tr2, r1, #0x03\n\torr\tr2, r2, r0, lsl #2\n\tands\tr2, r2, #0x0f\n\tsub\tr3, pc, #0x14\n\taddne\tpc, r3, r2, lsl #LMEMCPY_8_LOG2\n\n/*\n * 0000: dst is 32-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n\tldr\tr3, [r1, #0x04]\n\tstr\tr2, [r0]\n\tstr\tr3, [r0, #0x04]\n\tRET", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:29", "text": "* Special case for 8 byte copies\n */\n#define\tLMEMCPY_8_LOG2\t6\t/* 64 bytes */\n#define\tLMEMCPY_8_PAD\t.align LMEMCPY_8_LOG2\n\tLMEMCPY_8_PAD\n.Lmemcpy_8:\n\tand\tr2, r1, #0x03\n\torr\tr2, r2, r0, lsl #2\n\tands\tr2, r2, #0x0f\n\tsub\tr3, pc, #0x14\n\taddne\tpc, r3, r2, lsl #LMEMCPY_8_LOG2\n\n/*\n * 0000: dst is 32-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n\tldr\tr3, [r1, #0x04]\n\tstr\tr2, [r0]\n\tstr\tr3, [r0, #0x04]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #-1]\t\t/* BE:r3 = x012  LE:r3 = 210x */\n\tldr\tr2, [r1, #0x03]\t\t/* BE:r2 = 3456  LE:r2 = 6543 */\n\tldrb\tr1, [r1, #0x07]\t\t/* r1 = ...7 */\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 012. */\n\torr\tr3, r3, r2, lsr #24\t/* r3 = 0123 */\n\torr\tr2, r1, r2, lsl #8\t/* r2 = 4567 */\n#else\n\tmov\tr3, r3, lsr #8\t\t/* r3 = .210 */\n\torr\tr3, r3, r2, lsl #24\t/* r3 = 3210 */\n\tmov\tr1, r1, lsl #24\t\t/* r1 = 7... */\n\torr\tr2, r1, r2, lsr #8\t/* r2 = 7654 */\n#endif\n\tstr\tr3, [r0]\n\tstr\tr2, [r0, #0x04]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0010: dst is 32-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldrh\tr1, [r1, #0x06]\t\t/* BE:r1 = ..67  LE:r1 = ..76 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #16\t\t/* r2 = 01.. */\n\torr\tr2, r2, r3, lsr #16\t/* r2 = 0123 */\n\torr\tr3, r1, r3, lsl #16\t/* r3 = 4567 */\n#else\n\torr\tr2, r2, r3, lsl #16\t/* r2 = 3210 */\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..54 */\n\torr\tr3, r3, r1, lsl #16\t/* r3 = 7654 */\n#endif\n\tstr\tr2, [r0]\n\tstr\tr3, [r0, #0x04]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:30", "text": "RET\n\tLMEMCPY_8_PAD\n\n/*\n * 0010: dst is 32-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldrh\tr1, [r1, #0x06]\t\t/* BE:r1 = ..67  LE:r1 = ..76 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #16\t\t/* r2 = 01.. */\n\torr\tr2, r2, r3, lsr #16\t/* r2 = 0123 */\n\torr\tr3, r1, r3, lsl #16\t/* r3 = 4567 */\n#else\n\torr\tr2, r2, r3, lsl #16\t/* r2 = 3210 */\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..54 */\n\torr\tr3, r3, r1, lsl #16\t/* r3 = 7654 */\n#endif\n\tstr\tr2, [r0]\n\tstr\tr3, [r0, #0x04]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr3, [r1]\t\t/* r3 = ...0 */\n\tldr\tr2, [r1, #0x01]\t\t/* BE:r2 = 1234  LE:r2 = 4321 */\n\tldr\tr1, [r1, #0x05]\t\t/* BE:r1 = 567x  LE:r1 = x765 */\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 0... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 0123 */\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 4... */\n\torr\tr2, r2, r1, lsr #8\t/* r2 = 4567 */\n#else\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 3210 */\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...4 */\n\torr\tr2, r2, r1, lsl #8\t/* r2 = 7654 */\n#endif\n\tstr\tr3, [r0]\n\tstr\tr2, [r0, #0x04]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr3, [r1]\t\t/* BE:r3 = 0123  LE:r3 = 3210 */\n\tldr\tr2, [r1, #0x04]\t\t/* BE:r2 = 4567  LE:r2 = 7654 */\n#ifdef __ARMEB__\n\tmov\tr1, r3, lsr #24\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr1, r3, lsr #8\t\t/* r1 = .012 */\n\tstrb\tr2, [r0, #0x07]\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 3... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 3456 */\n#else\n\tstrb\tr3, [r0]\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...7 */\n\tstrb\tr1, [r0, #0x07]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:31", "text": "str\tr2, [r0, #0x04]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr3, [r1]\t\t/* BE:r3 = 0123  LE:r3 = 3210 */\n\tldr\tr2, [r1, #0x04]\t\t/* BE:r2 = 4567  LE:r2 = 7654 */\n#ifdef __ARMEB__\n\tmov\tr1, r3, lsr #24\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr1, r3, lsr #8\t\t/* r1 = .012 */\n\tstrb\tr2, [r0, #0x07]\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 3... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 3456 */\n#else\n\tstrb\tr3, [r0]\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...7 */\n\tstrb\tr1, [r0, #0x07]\n\tmov\tr1, r3, lsr #8\t\t/* r1 = .321 */\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...3 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 6543 */\n#endif\n\tstrh\tr1, [r0, #0x01]\n\tstr\tr3, [r0, #0x03]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldr\tip, [r1, #0x03]\n\tldrb\tr1, [r1, #0x07]\n\tstrb\tr2, [r0]\n\tstrh\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x03]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldrh\tr1, [r1, #0x06]\t\t/* BE:r1 = ..67  LE:r1 = ..76 */\n#ifdef __ARMEB__\n\tmov\tip, r2, lsr #8\t\t/* ip = ...0 */\n\tstrb\tip, [r0]\n\tmov\tip, r2, lsl #8\t\t/* ip = .01. */\n\torr\tip, ip, r3, lsr #24\t/* ip = .012 */\n\tstrb\tr1, [r0, #0x07]\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 345. */\n\torr\tr3, r3, r1, lsr #8\t/* r3 = 3456 */\n#else\n\tstrb\tr2, [r0]\t\t/* 0 */\n\tmov\tip, r1, lsr #8\t\t/* ip = ...7 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:32", "text": "RET\n\tLMEMCPY_8_PAD\n\n/*\n * 0110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldrh\tr1, [r1, #0x06]\t\t/* BE:r1 = ..67  LE:r1 = ..76 */\n#ifdef __ARMEB__\n\tmov\tip, r2, lsr #8\t\t/* ip = ...0 */\n\tstrb\tip, [r0]\n\tmov\tip, r2, lsl #8\t\t/* ip = .01. */\n\torr\tip, ip, r3, lsr #24\t/* ip = .012 */\n\tstrb\tr1, [r0, #0x07]\n\tmov\tr3, r3, lsl #8\t\t/* r3 = 345. */\n\torr\tr3, r3, r1, lsr #8\t/* r3 = 3456 */\n#else\n\tstrb\tr2, [r0]\t\t/* 0 */\n\tmov\tip, r1, lsr #8\t\t/* ip = ...7 */\n\tstrb\tip, [r0, #0x07]\t\t/* 7 */\n\tmov\tip, r2, lsr #8\t\t/* ip = ...1 */\n\torr\tip, ip, r3, lsl #8\t/* ip = 4321 */\n\tmov\tr3, r3, lsr #8\t\t/* r3 = .543 */\n\torr\tr3, r3, r1, lsl #24\t/* r3 = 6543 */\n#endif\n\tstrh\tip, [r0, #0x01]\n\tstr\tr3, [r0, #0x03]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 0111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr3, [r1]\t\t/* r3 = ...0 */\n\tldr\tip, [r1, #0x01]\t\t/* BE:ip = 1234  LE:ip = 4321 */\n\tldrh\tr2, [r1, #0x05]\t\t/* BE:r2 = ..56  LE:r2 = ..65 */\n\tldrb\tr1, [r1, #0x07]\t\t/* r1 = ...7 */\n\tstrb\tr3, [r0]\n\tmov\tr3, ip, lsr #16\t\t/* BE:r3 = ..12  LE:r3 = ..43 */\n#ifdef __ARMEB__\n\tstrh\tr3, [r0, #0x01]\n\torr\tr2, r2, ip, lsl #16\t/* r2 = 3456 */\n#else\n\tstrh\tip, [r0, #0x01]\n\torr\tr2, r3, r2, lsl #16\t/* r2 = 6543 */\n#endif\n\tstr\tr2, [r0, #0x03]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1000: dst is 16-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tmov\tr1, r2, lsr #16\t\t/* BE:r1 = ..01  LE:r1 = ..32 */\n#ifdef __ARMEB__\n\tstrh\tr1, [r0]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:33", "text": "#ifdef __ARMEB__\n\tstrh\tr3, [r0, #0x01]\n\torr\tr2, r2, ip, lsl #16\t/* r2 = 3456 */\n#else\n\tstrh\tip, [r0, #0x01]\n\torr\tr2, r3, r2, lsl #16\t/* r2 = 6543 */\n#endif\n\tstr\tr2, [r0, #0x03]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1000: dst is 16-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tmov\tr1, r2, lsr #16\t\t/* BE:r1 = ..01  LE:r1 = ..32 */\n#ifdef __ARMEB__\n\tstrh\tr1, [r0]\n\tmov\tr1, r3, lsr #16\t\t/* r1 = ..45 */\n\torr\tr2, r1 ,r2, lsl #16\t/* r2 = 2345 */\n#else\n\tstrh\tr2, [r0]\n\torr\tr2, r1, r3, lsl #16\t/* r2 = 5432 */\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..76 */\n#endif\n\tstr\tr2, [r0, #0x02]\n\tstrh\tr3, [r0, #0x06]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1001: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr2, [r1, #-1]\t\t/* BE:r2 = x012  LE:r2 = 210x */\n\tldr\tr3, [r1, #0x03]\t\t/* BE:r3 = 3456  LE:r3 = 6543 */\n\tldrb\tip, [r1, #0x07]\t\t/* ip = ...7 */\n\tmov\tr1, r2, lsr #8\t\t/* BE:r1 = .x01  LE:r1 = .210 */\n\tstrh\tr1, [r0]\n#ifdef __ARMEB__\n\tmov\tr1, r2, lsl #24\t\t/* r1 = 2... */\n\torr\tr1, r1, r3, lsr #8\t/* r1 = 2345 */\n\torr\tr3, ip, r3, lsl #8\t/* r3 = 4567 */\n#else\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...2 */\n\torr\tr1, r1, r3, lsl #8\t/* r1 = 5432 */\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...6 */\n\torr\tr3, r3, ip, lsl #8\t/* r3 = ..76 */\n#endif\n\tstr\tr1, [r0, #0x02]\n\tstrh\tr3, [r0, #0x06]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldr\tip, [r1, #0x02]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:34", "text": "#ifdef __ARMEB__\n\tmov\tr1, r2, lsl #24\t\t/* r1 = 2... */\n\torr\tr1, r1, r3, lsr #8\t/* r1 = 2345 */\n\torr\tr3, ip, r3, lsl #8\t/* r3 = 4567 */\n#else\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...2 */\n\torr\tr1, r1, r3, lsl #8\t/* r1 = 5432 */\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...6 */\n\torr\tr3, r3, ip, lsl #8\t/* r3 = ..76 */\n#endif\n\tstr\tr1, [r0, #0x02]\n\tstrh\tr3, [r0, #0x06]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldr\tip, [r1, #0x02]\n\tldrh\tr3, [r1, #0x06]\n\tstrh\tr2, [r0]\n\tstr\tip, [r0, #0x02]\n\tstrh\tr3, [r0, #0x06]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1011: dst is 16-bit aligned, src is 8-bit aligned\n */\n\tldr\tr3, [r1, #0x05]\t\t/* BE:r3 = 567x  LE:r3 = x765 */\n\tldr\tr2, [r1, #0x01]\t\t/* BE:r2 = 1234  LE:r2 = 4321 */\n\tldrb\tip, [r1]\t\t/* ip = ...0 */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .567  LE:r1 = .x76 */\n\tstrh\tr1, [r0, #0x06]\n#ifdef __ARMEB__\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...5 */\n\torr\tr3, r3, r2, lsl #8\t/* r3 = 2345 */\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...1 */\n\torr\tr2, r2, ip, lsl #8\t/* r2 = ..01 */\n#else\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 5... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 5432 */\n\torr\tr2, ip, r2, lsl #8\t/* r2 = 3210 */\n#endif\n\tstr\tr3, [r0, #0x02]\n\tstrh\tr2, [r0]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .456  LE:r1 = .765 */\n\tstrh\tr1, [r0, #0x05]\n#ifdef __ARMEB__\n\tstrb\tr3, [r0, #0x07]\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...0 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:35", "text": "#else\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 5... */\n\torr\tr3, r3, r2, lsr #8\t/* r3 = 5432 */\n\torr\tr2, ip, r2, lsl #8\t/* r2 = 3210 */\n#endif\n\tstr\tr3, [r0, #0x02]\n\tstrh\tr2, [r0]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1100: dst is 8-bit aligned, src is 32-bit aligned\n */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tmov\tr1, r3, lsr #8\t\t/* BE:r1 = .456  LE:r1 = .765 */\n\tstrh\tr1, [r0, #0x05]\n#ifdef __ARMEB__\n\tstrb\tr3, [r0, #0x07]\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 123. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = 1234 */\n\tstr\tr2, [r0, #0x01]\n#else\n\tstrb\tr2, [r0]\n\tmov\tr1, r3, lsr #24\t\t/* r1 = ...7 */\n\tstrb\tr1, [r0, #0x07]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = .321 */\n\torr\tr2, r2, r3, lsl #24\t/* r2 = 4321 */\n\tstr\tr2, [r0, #0x01]\n#endif\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1101: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr3, [r1]\t\t/* r3 = ...0 */\n\tldrh\tr2, [r1, #0x01]\t\t/* BE:r2 = ..12  LE:r2 = ..21 */\n\tldr\tip, [r1, #0x03]\t\t/* BE:ip = 3456  LE:ip = 6543 */\n\tldrb\tr1, [r1, #0x07]\t\t/* r1 = ...7 */\n\tstrb\tr3, [r0]\n\tmov\tr3, ip, lsr #16\t\t/* BE:r3 = ..34  LE:r3 = ..65 */\n#ifdef __ARMEB__\n\tstrh\tip, [r0, #0x05]\n\torr\tr2, r3, r2, lsl #16\t/* r2 = 1234 */\n#else\n\tstrh\tr3, [r0, #0x05]\n\torr\tr2, r2, ip, lsl #16\t/* r2 = 4321 */\n#endif\n\tstr\tr2, [r0, #0x01]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:36", "text": "ldr\tip, [r1, #0x03]\t\t/* BE:ip = 3456  LE:ip = 6543 */\n\tldrb\tr1, [r1, #0x07]\t\t/* r1 = ...7 */\n\tstrb\tr3, [r0]\n\tmov\tr3, ip, lsr #16\t\t/* BE:r3 = ..34  LE:r3 = ..65 */\n#ifdef __ARMEB__\n\tstrh\tip, [r0, #0x05]\n\torr\tr2, r3, r2, lsl #16\t/* r2 = 1234 */\n#else\n\tstrh\tr3, [r0, #0x05]\n\torr\tr2, r2, ip, lsl #16\t/* r2 = 4321 */\n#endif\n\tstr\tr2, [r0, #0x01]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1110: dst is 8-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldrh\tr1, [r1, #0x06]\t\t/* BE:r1 = ..67  LE:r1 = ..76 */\n#ifdef __ARMEB__\n\tmov\tip, r2, lsr #8\t\t/* ip = ...0 */\n\tstrb\tip, [r0]\n\tmov\tip, r2, lsl #24\t\t/* ip = 1... */\n\torr\tip, ip, r3, lsr #8\t/* ip = 1234 */\n\tstrb\tr1, [r0, #0x07]\n\tmov\tr1, r1, lsr #8\t\t/* r1 = ...6 */\n\torr\tr1, r1, r3, lsl #8\t/* r1 = 3456 */\n#else\n\tstrb\tr2, [r0]\n\tmov\tip, r2, lsr #8\t\t/* ip = ...1 */\n\torr\tip, ip, r3, lsl #8\t/* ip = 4321 */\n\tmov\tr2, r1, lsr #8\t\t/* r2 = ...7 */\n\tstrb\tr2, [r0, #0x07]\n\tmov\tr1, r1, lsl #8\t\t/* r1 = .76. */\n\torr\tr1, r1, r3, lsr #24\t/* r1 = .765 */\n#endif\n\tstr\tip, [r0, #0x01]\n\tstrh\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldr\tip, [r1, #0x01]\n\tldrh\tr3, [r1, #0x05]\n\tldrb\tr1, [r1, #0x07]\n\tstrb\tr2, [r0]\n\tstr\tip, [r0, #0x01]\n\tstrh\tr3, [r0, #0x05]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/******************************************************************************\n * Special case for 12 byte copies", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:37", "text": "strh\tr1, [r0, #0x05]\n\tRET\n\tLMEMCPY_8_PAD\n\n/*\n * 1111: dst is 8-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\n\tldr\tip, [r1, #0x01]\n\tldrh\tr3, [r1, #0x05]\n\tldrb\tr1, [r1, #0x07]\n\tstrb\tr2, [r0]\n\tstr\tip, [r0, #0x01]\n\tstrh\tr3, [r0, #0x05]\n\tstrb\tr1, [r0, #0x07]\n\tRET\n\tLMEMCPY_8_PAD\n\n/******************************************************************************\n * Special case for 12 byte copies\n */\n#define\tLMEMCPY_C_LOG2\t7\t/* 128 bytes */\n#define\tLMEMCPY_C_PAD\t.align LMEMCPY_C_LOG2\n\tLMEMCPY_C_PAD\n.Lmemcpy_c:\n\tand\tr2, r1, #0x03\n\torr\tr2, r2, r0, lsl #2\n\tands\tr2, r2, #0x0f\n\tsub\tr3, pc, #0x14\n\taddne\tpc, r3, r2, lsl #LMEMCPY_C_LOG2\n\n/*\n * 0000: dst is 32-bit aligned, src is 32-bit aligned\n */\n\tldr\tr2, [r1]\n\tldr\tr3, [r1, #0x04]\n\tldr\tr1, [r1, #0x08]\n\tstr\tr2, [r0]\n\tstr\tr3, [r0, #0x04]\n\tstr\tr1, [r0, #0x08]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1, #0xb]\t\t/* r2 = ...B */\n\tldr\tip, [r1, #0x07]\t\t/* BE:ip = 789A  LE:ip = A987 */\n\tldr\tr3, [r1, #0x03]\t\t/* BE:r3 = 3456  LE:r3 = 6543 */\n\tldr\tr1, [r1, #-1]\t\t/* BE:r1 = x012  LE:r1 = 210x */\n#ifdef __ARMEB__\n\torr\tr2, r2, ip, lsl #8\t/* r2 = 89AB */\n\tstr\tr2, [r0, #0x08]\n\tmov\tr2, ip, lsr #24\t\t/* r2 = ...7 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 4567 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = 012. */\n\torr\tr1, r1, r3, lsr #24\t/* r1 = 0123 */\n#else\n\tmov\tr2, r2, lsl #24\t\t/* r2 = B... */\n\torr\tr2, r2, ip, lsr #8\t/* r2 = BA98 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:38", "text": "RET\n\tLMEMCPY_C_PAD\n\n/*\n * 0001: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1, #0xb]\t\t/* r2 = ...B */\n\tldr\tip, [r1, #0x07]\t\t/* BE:ip = 789A  LE:ip = A987 */\n\tldr\tr3, [r1, #0x03]\t\t/* BE:r3 = 3456  LE:r3 = 6543 */\n\tldr\tr1, [r1, #-1]\t\t/* BE:r1 = x012  LE:r1 = 210x */\n#ifdef __ARMEB__\n\torr\tr2, r2, ip, lsl #8\t/* r2 = 89AB */\n\tstr\tr2, [r0, #0x08]\n\tmov\tr2, ip, lsr #24\t\t/* r2 = ...7 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 4567 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = 012. */\n\torr\tr1, r1, r3, lsr #24\t/* r1 = 0123 */\n#else\n\tmov\tr2, r2, lsl #24\t\t/* r2 = B... */\n\torr\tr2, r2, ip, lsr #8\t/* r2 = BA98 */\n\tstr\tr2, [r0, #0x08]\n\tmov\tr2, ip, lsl #24\t\t/* r2 = 7... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 7654 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = .210 */\n\torr\tr1, r1, r3, lsl #24\t/* r1 = 3210 */\n#endif\n\tstr\tr2, [r0, #0x04]\n\tstr\tr1, [r0]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0010: dst is 32-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldr\tip, [r1, #0x06]\t\t/* BE:ip = 6789  LE:ip = 9876 */\n\tldrh\tr1, [r1, #0x0a]\t\t/* BE:r1 = ..AB  LE:r1 = ..BA */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #16\t\t/* r2 = 01.. */\n\torr\tr2, r2, r3, lsr #16\t/* r2 = 0123 */\n\tstr\tr2, [r0]\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 45.. */\n\torr\tr3, r3, ip, lsr #16\t/* r3 = 4567 */\n\torr\tr1, r1, ip, lsl #16\t/* r1 = 89AB */\n#else\n\torr\tr2, r2, r3, lsl #16\t/* r2 = 3210 */\n\tstr\tr2, [r0]\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..54 */\n\torr\tr3, r3, ip, lsl #16\t/* r3 = 7654 */\n\tmov\tr1, r1, lsl #16\t\t/* r1 = BA.. */\n\torr\tr1, r1, ip, lsr #16\t/* r1 = BA98 */\n#endif\n\tstr\tr3, [r0, #0x04]\n\tstr\tr1, [r0, #0x08]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:39", "text": "orr\tr2, r2, r3, lsr #16\t/* r2 = 0123 */\n\tstr\tr2, [r0]\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 45.. */\n\torr\tr3, r3, ip, lsr #16\t/* r3 = 4567 */\n\torr\tr1, r1, ip, lsl #16\t/* r1 = 89AB */\n#else\n\torr\tr2, r2, r3, lsl #16\t/* r2 = 3210 */\n\tstr\tr2, [r0]\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..54 */\n\torr\tr3, r3, ip, lsl #16\t/* r3 = 7654 */\n\tmov\tr1, r1, lsl #16\t\t/* r1 = BA.. */\n\torr\tr1, r1, ip, lsr #16\t/* r1 = BA98 */\n#endif\n\tstr\tr3, [r0, #0x04]\n\tstr\tr1, [r0, #0x08]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0011: dst is 32-bit aligned, src is 8-bit aligned\n */\n\tldrb\tr2, [r1]\t\t/* r2 = ...0 */\n\tldr\tr3, [r1, #0x01]\t\t/* BE:r3 = 1234  LE:r3 = 4321 */\n\tldr\tip, [r1, #0x05]\t\t/* BE:ip = 5678  LE:ip = 8765 */\n\tldr\tr1, [r1, #0x09]\t\t/* BE:r1 = 9ABx  LE:r1 = xBA9 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 0... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 0123 */\n\tstr\tr2, [r0]\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 4... */\n\torr\tr3, r3, ip, lsr #8\t/* r3 = 4567 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = .9AB */\n\torr\tr1, r1, ip, lsl #24\t/* r1 = 89AB */\n#else\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 3210 */\n\tstr\tr2, [r0]\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...4 */\n\torr\tr3, r3, ip, lsl #8\t/* r3 = 7654 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = BA9. */\n\torr\tr1, r1, ip, lsr #24\t/* r1 = BA98 */\n#endif\n\tstr\tr3, [r0, #0x04]\n\tstr\tr1, [r0, #0x08]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0100: dst is 8-bit aligned (byte 1), src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tldr\tip, [r1, #0x08]\t\t/* BE:ip = 89AB  LE:ip = BA98 */\n\tmov\tr1, r2, lsr #8\t\t/* BE:r1 = .012  LE:r1 = .321 */\n\tstrh\tr1, [r0, #0x01]\n#ifdef __ARMEB__\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr1, r2, lsl #24\t\t/* r1 = 3... */\n\torr\tr2, r1, r3, lsr #8\t/* r1 = 3456 */\n\tmov\tr1, r3, lsl #24\t\t/* r1 = 7... */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:40", "text": "#endif\n\tstr\tr3, [r0, #0x04]\n\tstr\tr1, [r0, #0x08]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0100: dst is 8-bit aligned (byte 1), src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tldr\tip, [r1, #0x08]\t\t/* BE:ip = 89AB  LE:ip = BA98 */\n\tmov\tr1, r2, lsr #8\t\t/* BE:r1 = .012  LE:r1 = .321 */\n\tstrh\tr1, [r0, #0x01]\n#ifdef __ARMEB__\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tmov\tr1, r2, lsl #24\t\t/* r1 = 3... */\n\torr\tr2, r1, r3, lsr #8\t/* r1 = 3456 */\n\tmov\tr1, r3, lsl #24\t\t/* r1 = 7... */\n\torr\tr1, r1, ip, lsr #8\t/* r1 = 789A */\n#else\n\tstrb\tr2, [r0]\n\tmov\tr1, r2, lsr #24\t\t/* r1 = ...3 */\n\torr\tr2, r1, r3, lsl #8\t/* r1 = 6543 */\n\tmov\tr1, r3, lsr #24\t\t/* r1 = ...7 */\n\torr\tr1, r1, ip, lsl #8\t/* r1 = A987 */\n\tmov\tip, ip, lsr #24\t\t/* ip = ...B */\n#endif\n\tstr\tr2, [r0, #0x03]\n\tstr\tr1, [r0, #0x07]\n\tstrb\tip, [r0, #0x0b]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0101: dst is 8-bit aligned (byte 1), src is 8-bit aligned (byte 1)\n */\n\tldrb\tr2, [r1]\n\tldrh\tr3, [r1, #0x01]\n\tldr\tip, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tldr\tr2, [r1, #0x07]\n\tldrb\tr1, [r1, #0x0b]\n\tstrh\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x03]\n\tstr\tr2, [r0, #0x07]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0110: dst is 8-bit aligned (byte 1), src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldr\tip, [r1, #0x06]\t\t/* BE:ip = 6789  LE:ip = 9876 */\n\tldrh\tr1, [r1, #0x0a]\t\t/* BE:r1 = ..AB  LE:r1 = ..BA */\n#ifdef __ARMEB__\n\tmov\tr2, r2, ror #8\t\t/* r2 = 1..0 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:41", "text": "ldr\tip, [r1, #0x03]\n\tstrb\tr2, [r0]\n\tldr\tr2, [r1, #0x07]\n\tldrb\tr1, [r1, #0x0b]\n\tstrh\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x03]\n\tstr\tr2, [r0, #0x07]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0110: dst is 8-bit aligned (byte 1), src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\t\t/* BE:r2 = ..01  LE:r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* BE:r3 = 2345  LE:r3 = 5432 */\n\tldr\tip, [r1, #0x06]\t\t/* BE:ip = 6789  LE:ip = 9876 */\n\tldrh\tr1, [r1, #0x0a]\t\t/* BE:r1 = ..AB  LE:r1 = ..BA */\n#ifdef __ARMEB__\n\tmov\tr2, r2, ror #8\t\t/* r2 = 1..0 */\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #16\t\t/* r2 = ..1. */\n\torr\tr2, r2, r3, lsr #24\t/* r2 = ..12 */\n\tstrh\tr2, [r0, #0x01]\n\tmov\tr2, r3, lsl #8\t\t/* r2 = 345. */\n\torr\tr3, r2, ip, lsr #24\t/* r3 = 3456 */\n\tmov\tr2, ip, lsl #8\t\t/* r2 = 789. */\n\torr\tr2, r2, r1, lsr #8\t/* r2 = 789A */\n#else\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...1 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 4321 */\n\tstrh\tr2, [r0, #0x01]\n\tmov\tr2, r3, lsr #8\t\t/* r2 = .543 */\n\torr\tr3, r2, ip, lsl #24\t/* r3 = 6543 */\n\tmov\tr2, ip, lsr #8\t\t/* r2 = .987 */\n\torr\tr2, r2, r1, lsl #24\t/* r2 = A987 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = ...B */\n#endif\n\tstr\tr3, [r0, #0x03]\n\tstr\tr2, [r0, #0x07]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0111: dst is 8-bit aligned (byte 1), src is 8-bit aligned (byte 3)\n */\n\tldrb\tr2, [r1]\n\tldr\tr3, [r1, #0x01]\t\t/* BE:r3 = 1234  LE:r3 = 4321 */\n\tldr\tip, [r1, #0x05]\t\t/* BE:ip = 5678  LE:ip = 8765 */\n\tldr\tr1, [r1, #0x09]\t\t/* BE:r1 = 9ABx  LE:r1 = xBA9 */\n\tstrb\tr2, [r0]\n#ifdef __ARMEB__\n\tmov\tr2, r3, lsr #16\t\t/* r2 = ..12 */\n\tstrh\tr2, [r0, #0x01]\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 34.. */\n\torr\tr3, r3, ip, lsr #16\t/* r3 = 3456 */\n\tmov\tip, ip, lsl #16\t\t/* ip = 78.. */\n\torr\tip, ip, r1, lsr #16\t/* ip = 789A */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:42", "text": "str\tr2, [r0, #0x07]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 0111: dst is 8-bit aligned (byte 1), src is 8-bit aligned (byte 3)\n */\n\tldrb\tr2, [r1]\n\tldr\tr3, [r1, #0x01]\t\t/* BE:r3 = 1234  LE:r3 = 4321 */\n\tldr\tip, [r1, #0x05]\t\t/* BE:ip = 5678  LE:ip = 8765 */\n\tldr\tr1, [r1, #0x09]\t\t/* BE:r1 = 9ABx  LE:r1 = xBA9 */\n\tstrb\tr2, [r0]\n#ifdef __ARMEB__\n\tmov\tr2, r3, lsr #16\t\t/* r2 = ..12 */\n\tstrh\tr2, [r0, #0x01]\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 34.. */\n\torr\tr3, r3, ip, lsr #16\t/* r3 = 3456 */\n\tmov\tip, ip, lsl #16\t\t/* ip = 78.. */\n\torr\tip, ip, r1, lsr #16\t/* ip = 789A */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = .9AB */\n#else\n\tstrh\tr3, [r0, #0x01]\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..43 */\n\torr\tr3, r3, ip, lsl #16\t/* r3 = 6543 */\n\tmov\tip, ip, lsr #16\t\t/* ip = ..87 */\n\torr\tip, ip, r1, lsl #16\t/* ip = A987 */\n\tmov\tr1, r1, lsr #16\t\t/* r1 = ..xB */\n#endif\n\tstr\tr3, [r0, #0x03]\n\tstr\tip, [r0, #0x07]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1000: dst is 16-bit aligned, src is 32-bit aligned\n */\n\tldr\tip, [r1]\t\t/* BE:ip = 0123  LE:ip = 3210 */\n\tldr\tr3, [r1, #0x04]\t\t/* BE:r3 = 4567  LE:r3 = 7654 */\n\tldr\tr2, [r1, #0x08]\t\t/* BE:r2 = 89AB  LE:r2 = BA98 */\n\tmov\tr1, ip, lsr #16\t\t/* BE:r1 = ..01  LE:r1 = ..32 */\n#ifdef __ARMEB__\n\tstrh\tr1, [r0]\n\tmov\tr1, ip, lsl #16\t\t/* r1 = 23.. */\n\torr\tr1, r1, r3, lsr #16\t/* r1 = 2345 */\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 67.. */\n\torr\tr3, r3, r2, lsr #16\t/* r3 = 6789 */\n#else\n\tstrh\tip, [r0]\n\torr\tr1, r1, r3, lsl #16\t/* r1 = 5432 */\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..76 */\n\torr\tr3, r3, r2, lsl #16\t/* r3 = 9876 */\n\tmov\tr2, r2, lsr #16\t\t/* r2 = ..BA */\n#endif\n\tstr\tr1, [r0, #0x02]\n\tstr\tr3, [r0, #0x06]\n\tstrh\tr2, [r0, #0x0a]\n\tRET\n\tLMEMCPY_C_PAD", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:43", "text": "ldr\tr2, [r1, #0x08]\t\t/* BE:r2 = 89AB  LE:r2 = BA98 */\n\tmov\tr1, ip, lsr #16\t\t/* BE:r1 = ..01  LE:r1 = ..32 */\n#ifdef __ARMEB__\n\tstrh\tr1, [r0]\n\tmov\tr1, ip, lsl #16\t\t/* r1 = 23.. */\n\torr\tr1, r1, r3, lsr #16\t/* r1 = 2345 */\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 67.. */\n\torr\tr3, r3, r2, lsr #16\t/* r3 = 6789 */\n#else\n\tstrh\tip, [r0]\n\torr\tr1, r1, r3, lsl #16\t/* r1 = 5432 */\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..76 */\n\torr\tr3, r3, r2, lsl #16\t/* r3 = 9876 */\n\tmov\tr2, r2, lsr #16\t\t/* r2 = ..BA */\n#endif\n\tstr\tr1, [r0, #0x02]\n\tstr\tr3, [r0, #0x06]\n\tstrh\tr2, [r0, #0x0a]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1001: dst is 16-bit aligned, src is 8-bit aligned (byte 1)\n */\n\tldr\tr2, [r1, #-1]\t\t/* BE:r2 = x012  LE:r2 = 210x */\n\tldr\tr3, [r1, #0x03]\t\t/* BE:r3 = 3456  LE:r3 = 6543 */\n\tmov\tip, r2, lsr #8\t\t/* BE:ip = .x01  LE:ip = .210 */\n\tstrh\tip, [r0]\n\tldr\tip, [r1, #0x07]\t\t/* BE:ip = 789A  LE:ip = A987 */\n\tldrb\tr1, [r1, #0x0b]\t\t/* r1 = ...B */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 2... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 2345 */\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 6... */\n\torr\tr3, r3, ip, lsr #8\t/* r3 = 6789 */\n\torr\tr1, r1, ip, lsl #8\t/* r1 = 89AB */\n#else\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...2 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 5432 */\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...6 */\n\torr\tr3, r3, ip, lsl #8\t/* r3 = 9876 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = ..B. */\n\torr\tr1, r1, ip, lsr #24\t/* r1 = ..BA */\n#endif\n\tstr\tr2, [r0, #0x02]\n\tstr\tr3, [r0, #0x06]\n\tstrh\tr1, [r0, #0x0a]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldr\tr3, [r1, #0x02]\n\tldr\tip, [r1, #0x06]\n\tldrh\tr1, [r1, #0x0a]\n\tstrh\tr2, [r0]\n\tstr\tr3, [r0, #0x02]\n\tstr\tip, [r0, #0x06]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:44", "text": "orr\tr3, r3, ip, lsl #8\t/* r3 = 9876 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = ..B. */\n\torr\tr1, r1, ip, lsr #24\t/* r1 = ..BA */\n#endif\n\tstr\tr2, [r0, #0x02]\n\tstr\tr3, [r0, #0x06]\n\tstrh\tr1, [r0, #0x0a]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1010: dst is 16-bit aligned, src is 16-bit aligned\n */\n\tldrh\tr2, [r1]\n\tldr\tr3, [r1, #0x02]\n\tldr\tip, [r1, #0x06]\n\tldrh\tr1, [r1, #0x0a]\n\tstrh\tr2, [r0]\n\tstr\tr3, [r0, #0x02]\n\tstr\tip, [r0, #0x06]\n\tstrh\tr1, [r0, #0x0a]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1011: dst is 16-bit aligned, src is 8-bit aligned (byte 3)\n */\n\tldr\tr2, [r1, #0x09]\t\t/* BE:r2 = 9ABx  LE:r2 = xBA9 */\n\tldr\tr3, [r1, #0x05]\t\t/* BE:r3 = 5678  LE:r3 = 8765 */\n\tmov\tip, r2, lsr #8\t\t/* BE:ip = .9AB  LE:ip = .xBA */\n\tstrh\tip, [r0, #0x0a]\n\tldr\tip, [r1, #0x01]\t\t/* BE:ip = 1234  LE:ip = 4321 */\n\tldrb\tr1, [r1]\t\t/* r1 = ...0 */\n#ifdef __ARMEB__\n\tmov\tr2, r2, lsr #24\t\t/* r2 = ...9 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 6789 */\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...5 */\n\torr\tr3, r3, ip, lsl #8\t/* r3 = 2345 */\n\tmov\tr1, r1, lsl #8\t\t/* r1 = ..0. */\n\torr\tr1, r1, ip, lsr #24\t/* r1 = ..01 */\n#else\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 9... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 9876 */\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 5... */\n\torr\tr3, r3, ip, lsr #8\t/* r3 = 5432 */\n\torr\tr1, r1, ip, lsl #8\t/* r1 = 3210 */\n#endif\n\tstr\tr2, [r0, #0x06]\n\tstr\tr3, [r0, #0x02]\n\tstrh\tr1, [r0]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1100: dst is 8-bit aligned (byte 3), src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldr\tip, [r1, #0x04]\t\t/* BE:ip = 4567  LE:ip = 7654 */\n\tldr\tr1, [r1, #0x08]\t\t/* BE:r1 = 89AB  LE:r1 = BA98 */\n#ifdef __ARMEB__", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:45", "text": "#else\n\tmov\tr2, r2, lsl #24\t\t/* r2 = 9... */\n\torr\tr2, r2, r3, lsr #8\t/* r2 = 9876 */\n\tmov\tr3, r3, lsl #24\t\t/* r3 = 5... */\n\torr\tr3, r3, ip, lsr #8\t/* r3 = 5432 */\n\torr\tr1, r1, ip, lsl #8\t/* r1 = 3210 */\n#endif\n\tstr\tr2, [r0, #0x06]\n\tstr\tr3, [r0, #0x02]\n\tstrh\tr1, [r0]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1100: dst is 8-bit aligned (byte 3), src is 32-bit aligned\n */\n\tldr\tr2, [r1]\t\t/* BE:r2 = 0123  LE:r2 = 3210 */\n\tldr\tip, [r1, #0x04]\t\t/* BE:ip = 4567  LE:ip = 7654 */\n\tldr\tr1, [r1, #0x08]\t\t/* BE:r1 = 89AB  LE:r1 = BA98 */\n#ifdef __ARMEB__\n\tmov\tr3, r2, lsr #24\t\t/* r3 = ...0 */\n\tstrb\tr3, [r0]\n\tmov\tr2, r2, lsl #8\t\t/* r2 = 123. */\n\torr\tr2, r2, ip, lsr #24\t/* r2 = 1234 */\n\tstr\tr2, [r0, #0x01]\n\tmov\tr2, ip, lsl #8\t\t/* r2 = 567. */\n\torr\tr2, r2, r1, lsr #24\t/* r2 = 5678 */\n\tstr\tr2, [r0, #0x05]\n\tmov\tr2, r1, lsr #8\t\t/* r2 = ..9A */\n\tstrh\tr2, [r0, #0x09]\n\tstrb\tr1, [r0, #0x0b]\n#else\n\tstrb\tr2, [r0]\n\tmov\tr3, r2, lsr #8\t\t/* r3 = .321 */\n\torr\tr3, r3, ip, lsl #24\t/* r3 = 4321 */\n\tstr\tr3, [r0, #0x01]\n\tmov\tr3, ip, lsr #8\t\t/* r3 = .765 */\n\torr\tr3, r3, r1, lsl #24\t/* r3 = 8765 */\n\tstr\tr3, [r0, #0x05]\n\tmov\tr1, r1, lsr #8\t\t/* r1 = .BA9 */\n\tstrh\tr1, [r0, #0x09]\n\tmov\tr1, r1, lsr #16\t\t/* r1 = ...B */\n\tstrb\tr1, [r0, #0x0b]\n#endif\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1101: dst is 8-bit aligned (byte 3), src is 8-bit aligned (byte 1)\n */\n\tldrb\tr2, [r1, #0x0b]\t\t/* r2 = ...B */\n\tldr\tr3, [r1, #0x07]\t\t/* BE:r3 = 789A  LE:r3 = A987 */\n\tldr\tip, [r1, #0x03]\t\t/* BE:ip = 3456  LE:ip = 6543 */\n\tldr\tr1, [r1, #-1]\t\t/* BE:r1 = x012  LE:r1 = 210x */\n\tstrb\tr2, [r0, #0x0b]\n#ifdef __ARMEB__\n\tstrh\tr3, [r0, #0x09]\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..78 */\n\torr\tr3, r3, ip, lsl #16\t/* r3 = 5678 */\n\tmov\tip, ip, lsr #16\t\t/* ip = ..34 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:46", "text": "strh\tr1, [r0, #0x09]\n\tmov\tr1, r1, lsr #16\t\t/* r1 = ...B */\n\tstrb\tr1, [r0, #0x0b]\n#endif\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1101: dst is 8-bit aligned (byte 3), src is 8-bit aligned (byte 1)\n */\n\tldrb\tr2, [r1, #0x0b]\t\t/* r2 = ...B */\n\tldr\tr3, [r1, #0x07]\t\t/* BE:r3 = 789A  LE:r3 = A987 */\n\tldr\tip, [r1, #0x03]\t\t/* BE:ip = 3456  LE:ip = 6543 */\n\tldr\tr1, [r1, #-1]\t\t/* BE:r1 = x012  LE:r1 = 210x */\n\tstrb\tr2, [r0, #0x0b]\n#ifdef __ARMEB__\n\tstrh\tr3, [r0, #0x09]\n\tmov\tr3, r3, lsr #16\t\t/* r3 = ..78 */\n\torr\tr3, r3, ip, lsl #16\t/* r3 = 5678 */\n\tmov\tip, ip, lsr #16\t\t/* ip = ..34 */\n\torr\tip, ip, r1, lsl #16\t/* ip = 1234 */\n\tmov\tr1, r1, lsr #16\t\t/* r1 = ..x0 */\n#else\n\tmov\tr2, r3, lsr #16\t\t/* r2 = ..A9 */\n\tstrh\tr2, [r0, #0x09]\n\tmov\tr3, r3, lsl #16\t\t/* r3 = 87.. */\n\torr\tr3, r3, ip, lsr #16\t/* r3 = 8765 */\n\tmov\tip, ip, lsl #16\t\t/* ip = 43.. */\n\torr\tip, ip, r1, lsr #16\t/* ip = 4321 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = .210 */\n#endif\n\tstr\tr3, [r0, #0x05]\n\tstr\tip, [r0, #0x01]\n\tstrb\tr1, [r0]\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1110: dst is 8-bit aligned (byte 3), src is 16-bit aligned\n */\n#ifdef __ARMEB__\n\tldrh\tr2, [r1, #0x0a]\t\t/* r2 = ..AB */\n\tldr\tip, [r1, #0x06]\t\t/* ip = 6789 */\n\tldr\tr3, [r1, #0x02]\t\t/* r3 = 2345 */\n\tldrh\tr1, [r1]\t\t/* r1 = ..01 */\n\tstrb\tr2, [r0, #0x0b]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...A */\n\torr\tr2, r2, ip, lsl #8\t/* r2 = 789A */\n\tmov\tip, ip, lsr #8\t\t/* ip = .678 */\n\torr\tip, ip, r3, lsl #24\t/* ip = 5678 */\n\tmov\tr3, r3, lsr #8\t\t/* r3 = .234 */\n\torr\tr3, r3, r1, lsl #24\t/* r3 = 1234 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tstr\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x05]\n\tstrh\tr2, [r0, #0x09]\n#else\n\tldrh\tr2, [r1]\t\t/* r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* r3 = 5432 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:47", "text": "#ifdef __ARMEB__\n\tldrh\tr2, [r1, #0x0a]\t\t/* r2 = ..AB */\n\tldr\tip, [r1, #0x06]\t\t/* ip = 6789 */\n\tldr\tr3, [r1, #0x02]\t\t/* r3 = 2345 */\n\tldrh\tr1, [r1]\t\t/* r1 = ..01 */\n\tstrb\tr2, [r0, #0x0b]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...A */\n\torr\tr2, r2, ip, lsl #8\t/* r2 = 789A */\n\tmov\tip, ip, lsr #8\t\t/* ip = .678 */\n\torr\tip, ip, r3, lsl #24\t/* ip = 5678 */\n\tmov\tr3, r3, lsr #8\t\t/* r3 = .234 */\n\torr\tr3, r3, r1, lsl #24\t/* r3 = 1234 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = ...0 */\n\tstrb\tr1, [r0]\n\tstr\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x05]\n\tstrh\tr2, [r0, #0x09]\n#else\n\tldrh\tr2, [r1]\t\t/* r2 = ..10 */\n\tldr\tr3, [r1, #0x02]\t\t/* r3 = 5432 */\n\tldr\tip, [r1, #0x06]\t\t/* ip = 9876 */\n\tldrh\tr1, [r1, #0x0a]\t\t/* r1 = ..BA */\n\tstrb\tr2, [r0]\n\tmov\tr2, r2, lsr #8\t\t/* r2 = ...1 */\n\torr\tr2, r2, r3, lsl #8\t/* r2 = 4321 */\n\tmov\tr3, r3, lsr #24\t\t/* r3 = ...5 */\n\torr\tr3, r3, ip, lsl #8\t/* r3 = 8765 */\n\tmov\tip, ip, lsr #24\t\t/* ip = ...9 */\n\torr\tip, ip, r1, lsl #8\t/* ip = .BA9 */\n\tmov\tr1, r1, lsr #8\t\t/* r1 = ...B */\n\tstr\tr2, [r0, #0x01]\n\tstr\tr3, [r0, #0x05]\n\tstrh\tip, [r0, #0x09]\n\tstrb\tr1, [r0, #0x0b]\n#endif\n\tRET\n\tLMEMCPY_C_PAD\n\n/*\n * 1111: dst is 8-bit aligned (byte 3), src is 8-bit aligned (byte 3)\n */\n\tldrb\tr2, [r1]\n\tldr\tr3, [r1, #0x01]\n\tldr\tip, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tldrh\tr2, [r1, #0x09]\n\tldrb\tr1, [r1, #0x0b]\n\tstr\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x05]\n\tstrh\tr2, [r0, #0x09]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\nEND(memcpy)\n#endif\t/* !_STANDALONE */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1841, "line_end": 1894}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memcpy_xscale.S:48", "text": "*/\n\tldrb\tr2, [r1]\n\tldr\tr3, [r1, #0x01]\n\tldr\tip, [r1, #0x05]\n\tstrb\tr2, [r0]\n\tldrh\tr2, [r1, #0x09]\n\tldrb\tr1, [r1, #0x0b]\n\tstr\tr3, [r0, #0x01]\n\tstr\tip, [r0, #0x05]\n\tstrh\tr2, [r0, #0x09]\n\tstrb\tr1, [r0, #0x0b]\n\tRET\nEND(memcpy)\n#endif\t/* !_STANDALONE */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memcpy_xscale.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memcpy_xscale.S", "line_start": 1881, "line_end": 1894}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:1", "text": "/*\t$NetBSD: memmove.S,v 1.11 2023/01/19 18:03:03 mlelstv Exp $\t*/\n\n/*-\n * Copyright (c) 1997 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Neil A. Carson and Mark Brinicombe\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#ifndef _BCOPY\n/* LINTSTUB: Func: void *memmove(void *, const void *, size_t) */\nENTRY(memmove)\n#else\n/* bcopy = memcpy/memmove with arguments reversed. */\n/* LINTSTUB: Func: void bcopy(void *, void *, size_t) */\nENTRY(bcopy)\n\t/* switch the source and destination registers */\n\teor     r0, r1, r0\n\teor     r1, r0, r1\n\teor     r0, r1, r0\n#endif\n\t/* Do the buffers overlap? */\n\tcmp\tr0, r1\n\tRETc(eq)\t\t/* Bail now if src/dst are the same */\n\tsubhs\tr3, r0, r1\t/* if (dst > src) r3 = dst - src */\n\tsublo\tr3, r1, r0\t/* if (src > dst) r3 = src - dst */\n\tcmp\tr3, r2\t\t/* if (r3 >= len) we have an overlap */\n\tbhs\tPLT_SYM(_C_LABEL(memcpy))\n\n\t/* Determine copy direction */\n\tcmp\tr1, r0\n\tbcc\t.Lmemmove_backwards\n\n\tmoveq\tr0, #0\t\t\t/* Quick abort for len=0 */\n\tRETc(eq)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:2", "text": "/* switch the source and destination registers */\n\teor     r0, r1, r0\n\teor     r1, r0, r1\n\teor     r0, r1, r0\n#endif\n\t/* Do the buffers overlap? */\n\tcmp\tr0, r1\n\tRETc(eq)\t\t/* Bail now if src/dst are the same */\n\tsubhs\tr3, r0, r1\t/* if (dst > src) r3 = dst - src */\n\tsublo\tr3, r1, r0\t/* if (src > dst) r3 = src - dst */\n\tcmp\tr3, r2\t\t/* if (r3 >= len) we have an overlap */\n\tbhs\tPLT_SYM(_C_LABEL(memcpy))\n\n\t/* Determine copy direction */\n\tcmp\tr1, r0\n\tbcc\t.Lmemmove_backwards\n\n\tmoveq\tr0, #0\t\t\t/* Quick abort for len=0 */\n\tRETc(eq)\n\n\tpush\t{r0, lr}\t\t/* memmove() returns dest addr */\n\tsubs\tr2, r2, #4\n\tblo\t.Lmemmove_fl4\t\t/* less than 4 bytes */\n\tands\tr12, r0, #3\n\tbne\t.Lmemmove_fdestul\t/* oh unaligned destination addr */\n\tands\tr12, r1, #3\n\tbne\t.Lmemmove_fsrcul\t/* oh unaligned source addr */\n\n.Lmemmove_ft8:\n\t/* We have aligned source and destination */\n\tsubs\tr2, r2, #8\n\tblo\t.Lmemmove_fl12\t\t/* less than 12 bytes (4 from above) */\n\tsubs\tr2, r2, #0x14\n\tblo\t.Lmemmove_fl32\t\t/* less than 32 bytes (12 from above) */\n\tpush\t{r4}\t\t/* borrow r4 */\n\n\t/* blat 32 bytes at a time */\n\t/* XXX for really big copies perhaps we should use more registers */\n.Lmemmove_floop32:\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tsubs\tr2, r2, #0x20\n\tbhs\t.Lmemmove_floop32\n\n\tcmn\tr2, #0x10\n\tldmiahs\tr1!, {r3, r4, r12, lr}\t/* blat a remaining 16 bytes */\n\tstmiahs\tr0!, {r3, r4, r12, lr}\n\tsubhs\tr2, r2, #0x10\n\tpop\t{r4}\t\t/* return r4 */\n\n.Lmemmove_fl32:\n\tadds\tr2, r2, #0x14\n\n\t/* blat 12 bytes at a time */\n.Lmemmove_floop12:\n\tldmiahs\tr1!, {r3, r12, lr}\n\tstmiahs\tr0!, {r3, r12, lr}\n\tsubshs\tr2, r2, #0x0c", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:3", "text": "stmia\tr0!, {r3, r4, r12, lr}\n\tldmia\tr1!, {r3, r4, r12, lr}\n\tstmia\tr0!, {r3, r4, r12, lr}\n\tsubs\tr2, r2, #0x20\n\tbhs\t.Lmemmove_floop32\n\n\tcmn\tr2, #0x10\n\tldmiahs\tr1!, {r3, r4, r12, lr}\t/* blat a remaining 16 bytes */\n\tstmiahs\tr0!, {r3, r4, r12, lr}\n\tsubhs\tr2, r2, #0x10\n\tpop\t{r4}\t\t/* return r4 */\n\n.Lmemmove_fl32:\n\tadds\tr2, r2, #0x14\n\n\t/* blat 12 bytes at a time */\n.Lmemmove_floop12:\n\tldmiahs\tr1!, {r3, r12, lr}\n\tstmiahs\tr0!, {r3, r12, lr}\n\tsubshs\tr2, r2, #0x0c\n\tbhs\t.Lmemmove_floop12\n\n.Lmemmove_fl12:\n\tadds\tr2, r2, #8\n\tblo\t.Lmemmove_fl4\n\n\tsubs\tr2, r2, #4\n\tldrlo\tr3, [r1], #4\n\tstrlo\tr3, [r0], #4\n\tldmiahs\tr1!, {r3, r12}\n\tstmiahs\tr0!, {r3, r12}\n\tsubhs\tr2, r2, #4\n\n.Lmemmove_fl4:\n\t/* less than 4 bytes to go */\n\tadds\tr2, r2, #4\n\tpopeq\t{r0, pc}\t\t/* done */\n\n\t/* copy the crud byte at a time */\n\tcmp\tr2, #2\n\tldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1\n\tpop\t{r0, pc}\n\n\t/* erg - unaligned destination */\n.Lmemmove_fdestul:\n\trsb\tr12, r12, #4\n\tcmp\tr12, #2\n\n\t/* align destination with byte copies */\n\tldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:4", "text": "ldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1\n\tpop\t{r0, pc}\n\n\t/* erg - unaligned destination */\n.Lmemmove_fdestul:\n\trsb\tr12, r12, #4\n\tcmp\tr12, #2\n\n\t/* align destination with byte copies */\n\tldrb\tr3, [r1], #1\n\tstrb\tr3, [r0], #1\n\tldrbhs\tr3, [r1], #1\n\tstrbhs\tr3, [r0], #1\n\tldrbhi\tr3, [r1], #1\n\tstrbhi\tr3, [r0], #1\n\tsubs\tr2, r2, r12\n\tblo\t.Lmemmove_fl4\t\t/* less the 4 bytes */\n\n\tands\tr12, r1, #3\n\tbeq\t.Lmemmove_ft8\t\t/* we have an aligned source */\n\n\t/* erg - unaligned source */\n\t/* This is where it gets nasty ... */\n.Lmemmove_fsrcul:\n\tbic\tr1, r1, #3\n\tldr\tlr, [r1], #4\n\tcmp\tr12, #2\n\tbhi\t.Lmemmove_fsrcul3\n\tbeq\t.Lmemmove_fsrcul2\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_fsrcul1loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemmove_fsrcul1loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #8\n#else\n\tmov\tr3, lr, lsr #8\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #24\n\tmov\tr4, r4, lsl #8\n\torr\tr4, r4, r5, lsr #24\n\tmov\tr5, r5, lsl #8\n\torr\tr5, r5, r12, lsr #24\n\tmov\tr12, r12, lsl #8\n\torr\tr12, r12, lr, lsr #24\n#else\n\torr\tr3, r3, r4, lsl #24\n\tmov\tr4, r4, lsr #8\n\torr\tr4, r4, r5, lsl #24\n\tmov\tr5, r5, lsr #8\n\torr\tr5, r5, r12, lsl #24", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:5", "text": "#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #8\n#else\n\tmov\tr3, lr, lsr #8\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #24\n\tmov\tr4, r4, lsl #8\n\torr\tr4, r4, r5, lsr #24\n\tmov\tr5, r5, lsl #8\n\torr\tr5, r5, r12, lsr #24\n\tmov\tr12, r12, lsl #8\n\torr\tr12, r12, lr, lsr #24\n#else\n\torr\tr3, r3, r4, lsl #24\n\tmov\tr4, r4, lsr #8\n\torr\tr4, r4, r5, lsl #24\n\tmov\tr5, r5, lsr #8\n\torr\tr5, r5, r12, lsl #24\n\tmov\tr12, r12, lsr #8\n\torr\tr12, r12, lr, lsl #24\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_fsrcul1loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_fsrcul1l4\n\n.Lmemmove_fsrcul1loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #8\n#else\n\tmov\tr12, lr, lsr #8\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #24\n#else\n\torr\tr12, r12, lr, lsl #24\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_fsrcul1loop4\n\n.Lmemmove_fsrcul1l4:\n\tsub\tr1, r1, #3\n\tb\t.Lmemmove_fl4\n\n.Lmemmove_fsrcul2:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_fsrcul2loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemmove_fsrcul2loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #16\n#else", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:6", "text": "orr\tr12, r12, lr, lsl #24\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_fsrcul1loop4\n\n.Lmemmove_fsrcul1l4:\n\tsub\tr1, r1, #3\n\tb\t.Lmemmove_fl4\n\n.Lmemmove_fsrcul2:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_fsrcul2loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemmove_fsrcul2loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #16\n#else\n\tmov\tr3, lr, lsr #16\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #16\n\tmov\tr4, r4, lsl #16\n\torr\tr4, r4, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r12, lsr #16\n\tmov\tr12, r12, lsl #16\n\torr\tr12, r12, lr, lsr #16\n#else\n\torr\tr3, r3, r4, lsl #16\n\tmov\tr4, r4, lsr #16\n\torr\tr4, r4, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r12, lsl #16\n\tmov\tr12, r12, lsr #16\n\torr\tr12, r12, lr, lsl #16\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_fsrcul2loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_fsrcul2l4\n\n.Lmemmove_fsrcul2loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #16\n#else\n\tmov\tr12, lr, lsr #16\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #16\n#else\n\torr\tr12, r12, lr, lsl #16\n#endif\n\tstr\tr12, [r0], #4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:7", "text": "stmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_fsrcul2loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_fsrcul2l4\n\n.Lmemmove_fsrcul2loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #16\n#else\n\tmov\tr12, lr, lsr #16\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #16\n#else\n\torr\tr12, r12, lr, lsl #16\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_fsrcul2loop4\n\n.Lmemmove_fsrcul2l4:\n\tsub\tr1, r1, #2\n\tb\t.Lmemmove_fl4\n\n.Lmemmove_fsrcul3:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_fsrcul3loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5}\n\n.Lmemmove_fsrcul3loop16:\n#ifdef __ARMEB__\n\tmov\tr3, lr, lsl #24\n#else\n\tmov\tr3, lr, lsr #24\n#endif\n\tldmia\tr1!, {r4, r5, r12, lr}\n#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #8\n\tmov\tr4, r4, lsl #24\n\torr\tr4, r4, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r12, lsr #8\n\tmov\tr12, r12, lsl #24\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr3, r3, r4, lsl #8\n\tmov\tr4, r4, lsr #24\n\torr\tr4, r4, r5, lsl #8\n\tmov\tr5, r5, lsr #24\n\torr\tr5, r5, r12, lsl #8\n\tmov\tr12, r12, lsr #24\n\torr\tr12, r12, lr, lsl #8\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_fsrcul3loop16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:8", "text": "#ifdef __ARMEB__\n\torr\tr3, r3, r4, lsr #8\n\tmov\tr4, r4, lsl #24\n\torr\tr4, r4, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r12, lsr #8\n\tmov\tr12, r12, lsl #24\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr3, r3, r4, lsl #8\n\tmov\tr4, r4, lsr #24\n\torr\tr4, r4, r5, lsl #8\n\tmov\tr5, r5, lsr #24\n\torr\tr5, r5, r12, lsl #8\n\tmov\tr12, r12, lsr #24\n\torr\tr12, r12, lr, lsl #8\n#endif\n\tstmia\tr0!, {r3-r5, r12}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_fsrcul3loop16\n\tpop\t{r4, r5}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_fsrcul3l4\n\n.Lmemmove_fsrcul3loop4:\n#ifdef __ARMEB__\n\tmov\tr12, lr, lsl #24\n#else\n\tmov\tr12, lr, lsr #24\n#endif\n\tldr\tlr, [r1], #4\n#ifdef __ARMEB__\n\torr\tr12, r12, lr, lsr #8\n#else\n\torr\tr12, r12, lr, lsl #8\n#endif\n\tstr\tr12, [r0], #4\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_fsrcul3loop4\n\n.Lmemmove_fsrcul3l4:\n\tsub\tr1, r1, #1\n\tb\t.Lmemmove_fl4\n\n.Lmemmove_backwards:\n\tadd\tr1, r1, r2\n\tadd\tr0, r0, r2\n\tsubs\tr2, r2, #4\n\tblo\t.Lmemmove_bl4\t\t/* less than 4 bytes */\n\tands\tr12, r0, #3\n\tbne\t.Lmemmove_bdestul\t/* oh unaligned destination addr */\n\tands\tr12, r1, #3\n\tbne\t.Lmemmove_bsrcul\t\t/* oh unaligned source addr */\n\n.Lmemmove_bt8:\n\t/* We have aligned source and destination */\n\tsubs\tr2, r2, #8\n\tblo\t.Lmemmove_bl12\t\t/* less than 12 bytes (4 from above) */\n\tpush\t{r4, lr}\n\tsubs\tr2, r2, #0x14\t\t/* less than 32 bytes (12 from above) */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:9", "text": ".Lmemmove_fsrcul3l4:\n\tsub\tr1, r1, #1\n\tb\t.Lmemmove_fl4\n\n.Lmemmove_backwards:\n\tadd\tr1, r1, r2\n\tadd\tr0, r0, r2\n\tsubs\tr2, r2, #4\n\tblo\t.Lmemmove_bl4\t\t/* less than 4 bytes */\n\tands\tr12, r0, #3\n\tbne\t.Lmemmove_bdestul\t/* oh unaligned destination addr */\n\tands\tr12, r1, #3\n\tbne\t.Lmemmove_bsrcul\t\t/* oh unaligned source addr */\n\n.Lmemmove_bt8:\n\t/* We have aligned source and destination */\n\tsubs\tr2, r2, #8\n\tblo\t.Lmemmove_bl12\t\t/* less than 12 bytes (4 from above) */\n\tpush\t{r4, lr}\n\tsubs\tr2, r2, #0x14\t\t/* less than 32 bytes (12 from above) */\n\tblo\t.Lmemmove_bl32\n\n\t/* blat 32 bytes at a time */\n\t/* XXX for really big copies perhaps we should use more registers */\n.Lmemmove_bloop32:\n\tldmdb\tr1!, {r3, r4, r12, lr}\n\tstmdb\tr0!, {r3, r4, r12, lr}\n\tldmdb\tr1!, {r3, r4, r12, lr}\n\tstmdb\tr0!, {r3, r4, r12, lr}\n\tsubs\tr2, r2, #0x20\n\tbhs\t.Lmemmove_bloop32\n\n.Lmemmove_bl32:\n\tcmn\tr2, #0x10\n\tldmdbhs\tr1!, {r3, r4, r12, lr}\t/* blat a remaining 16 bytes */\n\tstmdbhs\tr0!, {r3, r4, r12, lr}\n\tsubhs\tr2, r2, #0x10\n\tadds\tr2, r2, #0x14\n\tldmdbhs\tr1!, {r3, r12, lr}\t/* blat a remaining 12 bytes */\n\tstmdbhs\tr0!, {r3, r12, lr}\n\tsubhs\tr2, r2, #0x0c\n\tpop\t{r4, lr}\n\n.Lmemmove_bl12:\n\tadds\tr2, r2, #8\n\tblo\t.Lmemmove_bl4\n\tsubs\tr2, r2, #4\n\tldrlo\tr3, [r1, #-4]!\n\tstrlo\tr3, [r0, #-4]!\n\tldmdbhs\tr1!, {r3, r12}\n\tstmdbhs\tr0!, {r3, r12}\n\tsubhs\tr2, r2, #4\n\n.Lmemmove_bl4:\n\t/* less than 4 bytes to go */\n\tadds\tr2, r2, #4\n\tRETc(eq)\n\n\t/* copy the crud byte at a time */\n\tcmp\tr2, #2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:10", "text": "subhs\tr2, r2, #0x0c\n\tpop\t{r4, lr}\n\n.Lmemmove_bl12:\n\tadds\tr2, r2, #8\n\tblo\t.Lmemmove_bl4\n\tsubs\tr2, r2, #4\n\tldrlo\tr3, [r1, #-4]!\n\tstrlo\tr3, [r0, #-4]!\n\tldmdbhs\tr1!, {r3, r12}\n\tstmdbhs\tr0!, {r3, r12}\n\tsubhs\tr2, r2, #4\n\n.Lmemmove_bl4:\n\t/* less than 4 bytes to go */\n\tadds\tr2, r2, #4\n\tRETc(eq)\n\n\t/* copy the crud byte at a time */\n\tcmp\tr2, #2\n\tldrb\tr3, [r1, #-1]!\n\tstrb\tr3, [r0, #-1]!\n\tldrbhs\tr3, [r1, #-1]!\n\tstrbhs\tr3, [r0, #-1]!\n\tldrbhi\tr3, [r1, #-1]!\n\tstrbhi\tr3, [r0, #-1]!\n\tRET\n\n\t/* erg - unaligned destination */\n.Lmemmove_bdestul:\n\tcmp\tr12, #2\n\n\t/* align destination with byte copies */\n\tldrb\tr3, [r1, #-1]!\n\tstrb\tr3, [r0, #-1]!\n\tldrbhs\tr3, [r1, #-1]!\n\tstrbhs\tr3, [r0, #-1]!\n\tldrbhi\tr3, [r1, #-1]!\n\tstrbhi\tr3, [r0, #-1]!\n\tsubs\tr2, r2, r12\n\tblo\t.Lmemmove_bl4\t\t/* less than 4 bytes to go */\n\tands\tr12, r1, #3\n\tbeq\t.Lmemmove_bt8\t\t/* we have an aligned source */\n\n\t/* erg - unaligned source */\n\t/* This is where it gets nasty ... */\n.Lmemmove_bsrcul:\n\tbic\tr1, r1, #3\n\tldr\tr3, [r1, #0]\n\tcmp\tr12, #2\n\tblo\t.Lmemmove_bsrcul1\n\tbeq\t.Lmemmove_bsrcul2\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_bsrcul3loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5, lr}\n\n.Lmemmove_bsrcul3loop16:\n#ifdef __ARMEB__\n\tmov\tlr, r3, lsr #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:11", "text": "blo\t.Lmemmove_bl4\t\t/* less than 4 bytes to go */\n\tands\tr12, r1, #3\n\tbeq\t.Lmemmove_bt8\t\t/* we have an aligned source */\n\n\t/* erg - unaligned source */\n\t/* This is where it gets nasty ... */\n.Lmemmove_bsrcul:\n\tbic\tr1, r1, #3\n\tldr\tr3, [r1, #0]\n\tcmp\tr12, #2\n\tblo\t.Lmemmove_bsrcul1\n\tbeq\t.Lmemmove_bsrcul2\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_bsrcul3loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5, lr}\n\n.Lmemmove_bsrcul3loop16:\n#ifdef __ARMEB__\n\tmov\tlr, r3, lsr #8\n#else\n\tmov\tlr, r3, lsl #8\n#endif\n\tldmdb\tr1!, {r3-r5, r12}\n#ifdef __ARMEB__\n\torr\tlr, lr, r12, lsl #24\n\tmov\tr12, r12, lsr #8\n\torr\tr12, r12, r5, lsl #24\n\tmov\tr5, r5, lsr #8\n\torr\tr5, r5, r4, lsl #24\n\tmov\tr4, r4, lsr #8\n\torr\tr4, r4, r3, lsl #24\n#else\n\torr\tlr, lr, r12, lsr #24\n\tmov\tr12, r12, lsl #8\n\torr\tr12, r12, r5, lsr #24\n\tmov\tr5, r5, lsl #8\n\torr\tr5, r5, r4, lsr #24\n\tmov\tr4, r4, lsl #8\n\torr\tr4, r4, r3, lsr #24\n#endif\n\tstmdb\tr0!, {r4, r5, r12, lr}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_bsrcul3loop16\n\tpop\t{r4, r5, lr}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_bsrcul3l4\n\n.Lmemmove_bsrcul3loop4:\n#ifdef __ARMEB__\n\tmov\tr12, r3, lsr #8\n#else\n\tmov\tr12, r3, lsl #8\n#endif\n\tldr\tr3, [r1, #-4]!\n#ifdef __ARMEB__\n\torr\tr12, r12, r3, lsl #24\n#else\n\torr\tr12, r12, r3, lsr #24\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:12", "text": "#endif\n\tstmdb\tr0!, {r4, r5, r12, lr}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_bsrcul3loop16\n\tpop\t{r4, r5, lr}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_bsrcul3l4\n\n.Lmemmove_bsrcul3loop4:\n#ifdef __ARMEB__\n\tmov\tr12, r3, lsr #8\n#else\n\tmov\tr12, r3, lsl #8\n#endif\n\tldr\tr3, [r1, #-4]!\n#ifdef __ARMEB__\n\torr\tr12, r12, r3, lsl #24\n#else\n\torr\tr12, r12, r3, lsr #24\n#endif\n\tstr\tr12, [r0, #-4]!\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_bsrcul3loop4\n\n.Lmemmove_bsrcul3l4:\n\tadd\tr1, r1, #3\n\tb\t.Lmemmove_bl4\n\n.Lmemmove_bsrcul2:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_bsrcul2loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5, lr}\n\n.Lmemmove_bsrcul2loop16:\n#ifdef __ARMEB__\n\tmov\tlr, r3, lsr #16\n#else\n\tmov\tlr, r3, lsl #16\n#endif\n\tldmdb\tr1!, {r3-r5, r12}\n#ifdef __ARMEB__\n\torr\tlr, lr, r12, lsl #16\n\tmov\tr12, r12, lsr #16\n\torr\tr12, r12, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r4, lsl #16\n\tmov\tr4, r4, lsr #16\n\torr\tr4, r4, r3, lsl #16\n#else\n\torr\tlr, lr, r12, lsr #16\n\tmov\tr12, r12, lsl #16\n\torr\tr12, r12, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r4, lsr #16\n\tmov\tr4, r4, lsl #16\n\torr\tr4, r4, r3, lsr #16\n#endif\n\tstmdb\tr0!, {r4, r5, r12, lr}\n\tsubs\tr2, r2, #0x10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:13", "text": "ldmdb\tr1!, {r3-r5, r12}\n#ifdef __ARMEB__\n\torr\tlr, lr, r12, lsl #16\n\tmov\tr12, r12, lsr #16\n\torr\tr12, r12, r5, lsl #16\n\tmov\tr5, r5, lsr #16\n\torr\tr5, r5, r4, lsl #16\n\tmov\tr4, r4, lsr #16\n\torr\tr4, r4, r3, lsl #16\n#else\n\torr\tlr, lr, r12, lsr #16\n\tmov\tr12, r12, lsl #16\n\torr\tr12, r12, r5, lsr #16\n\tmov\tr5, r5, lsl #16\n\torr\tr5, r5, r4, lsr #16\n\tmov\tr4, r4, lsl #16\n\torr\tr4, r4, r3, lsr #16\n#endif\n\tstmdb\tr0!, {r4, r5, r12, lr}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_bsrcul2loop16\n\tpop\t{r4, r5, lr}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_bsrcul2l4\n\n.Lmemmove_bsrcul2loop4:\n#ifdef __ARMEB__\n\tmov\tr12, r3, lsr #16\n#else\n\tmov\tr12, r3, lsl #16\n#endif\n\tldr\tr3, [r1, #-4]!\n#ifdef __ARMEB__\n\torr\tr12, r12, r3, lsl #16\n#else\n\torr\tr12, r12, r3, lsr #16\n#endif\n\tstr\tr12, [r0, #-4]!\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_bsrcul2loop4\n\n.Lmemmove_bsrcul2l4:\n\tadd\tr1, r1, #2\n\tb\t.Lmemmove_bl4\n\n.Lmemmove_bsrcul1:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_bsrcul1loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5, lr}\n\n.Lmemmove_bsrcul1loop32:\n#ifdef __ARMEB__\n\tmov\tlr, r3, lsr #24\n#else\n\tmov\tlr, r3, lsl #24\n#endif\n\tldmdb\tr1!, {r3-r5, r12}\n#ifdef __ARMEB__\n\torr\tlr, lr, r12, lsl #8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:14", "text": ".Lmemmove_bsrcul2l4:\n\tadd\tr1, r1, #2\n\tb\t.Lmemmove_bl4\n\n.Lmemmove_bsrcul1:\n\tcmp\tr2, #0x0c\n\tblo\t.Lmemmove_bsrcul1loop4\n\tsub\tr2, r2, #0x0c\n\tpush\t{r4, r5, lr}\n\n.Lmemmove_bsrcul1loop32:\n#ifdef __ARMEB__\n\tmov\tlr, r3, lsr #24\n#else\n\tmov\tlr, r3, lsl #24\n#endif\n\tldmdb\tr1!, {r3-r5, r12}\n#ifdef __ARMEB__\n\torr\tlr, lr, r12, lsl #8\n\tmov\tr12, r12, lsr #24\n\torr\tr12, r12, r5, lsl #8\n\tmov\tr5, r5, lsr #24\n\torr\tr5, r5, r4, lsl #8\n\tmov\tr4, r4, lsr #24\n\torr\tr4, r4, r3, lsl #8\n#else\n\torr\tlr, lr, r12, lsr #8\n\tmov\tr12, r12, lsl #24\n\torr\tr12, r12, r5, lsr #8\n\tmov\tr5, r5, lsl #24\n\torr\tr5, r5, r4, lsr #8\n\tmov\tr4, r4, lsl #24\n\torr\tr4, r4, r3, lsr #8\n#endif\n\tstmdb\tr0!, {r4, r5, r12, lr}\n\tsubs\tr2, r2, #0x10\n\tbhs\t.Lmemmove_bsrcul1loop32\n\tpop\t{r4, r5, lr}\n\tadds\tr2, r2, #0x0c\n\tblo\t.Lmemmove_bsrcul1l4\n\n.Lmemmove_bsrcul1loop4:\n#ifdef __ARMEB__\n\tmov\tr12, r3, lsr #24\n#else\n\tmov\tr12, r3, lsl #24\n#endif\n\tldr\tr3, [r1, #-4]!\n#ifdef __ARMEB__\n\torr\tr12, r12, r3, lsl #8\n#else\n\torr\tr12, r12, r3, lsr #8\n#endif\n\tstr\tr12, [r0, #-4]!\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_bsrcul1loop4\n\n.Lmemmove_bsrcul1l4:\n\tadd\tr1, r1, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memmove.S:15", "text": "blo\t.Lmemmove_bsrcul1l4\n\n.Lmemmove_bsrcul1loop4:\n#ifdef __ARMEB__\n\tmov\tr12, r3, lsr #24\n#else\n\tmov\tr12, r3, lsl #24\n#endif\n\tldr\tr3, [r1, #-4]!\n#ifdef __ARMEB__\n\torr\tr12, r12, r3, lsl #8\n#else\n\torr\tr12, r12, r3, lsr #8\n#endif\n\tstr\tr12, [r0, #-4]!\n\tsubs\tr2, r2, #4\n\tbhs\t.Lmemmove_bsrcul1loop4\n\n.Lmemmove_bsrcul1l4:\n\tadd\tr1, r1, #1\n\tb\t.Lmemmove_bl4\n#ifndef _BCOPY\nEND(memmove)\n#else\nEND(bcopy)\n#endif\n\n#if defined(__ARM_EABI__) && !defined(BCOPY) && !defined(_RUMPKERNEL)\nSTRONG_ALIAS(__aeabi_memmove, memmove)\nSTRONG_ALIAS(__aeabi_memmove4, memmove)\nSTRONG_ALIAS(__aeabi_memmove8, memmove)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memmove.S", "line_start": 561, "line_end": 592}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset.S:2", "text": "* Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. All advertising materials mentioning features or use of this software\n *    must display the following acknowledgement:\n *\tThis product includes software developed by Mark Brinicombe.\n * 4. The name of the company nor the name of the author may be used to\n *    endorse or promote products derived from this software without specific\n *    prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(__ARM_EABI__) && !defined(_BZERO) && !defined(_RUMPKERNEL)\nENTRY(__aeabi_memset)\n\tmov\tr3, r1\n\tmov\tr1, r2\n\tmov\tr2, r3\n\tb\tmemset\nEND(__aeabi_memset)\nSTRONG_ALIAS(__aeabi_memset4, __aeabi_memset)\nSTRONG_ALIAS(__aeabi_memset8, __aeabi_memset)\n\nENTRY(__aeabi_memclr)\n\tmov\tr2, r1\n\tmov\tr1, #0\n\tb\tmemset\nEND(__aeabi_memclr)\nSTRONG_ALIAS(__aeabi_memclr4, __aeabi_memclr)\nSTRONG_ALIAS(__aeabi_memclr8, __aeabi_memclr)\n#endif\n\n/*\n * memset: Sets a block of memory to the specified value\n *\n * On entry:\n *   r0 - dest address\n *   r1 - byte to write\n *   r2 - number of bytes to write\n *\n * On exit:\n *   r0 - dest address\n */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset.S:3", "text": "ENTRY(__aeabi_memclr)\n\tmov\tr2, r1\n\tmov\tr1, #0\n\tb\tmemset\nEND(__aeabi_memclr)\nSTRONG_ALIAS(__aeabi_memclr4, __aeabi_memclr)\nSTRONG_ALIAS(__aeabi_memclr8, __aeabi_memclr)\n#endif\n\n/*\n * memset: Sets a block of memory to the specified value\n *\n * On entry:\n *   r0 - dest address\n *   r1 - byte to write\n *   r2 - number of bytes to write\n *\n * On exit:\n *   r0 - dest address\n */\n#ifdef _BZERO\n/* LINTSTUB: Func: void bzero(void *, size_t) */\nENTRY(bzero)\n\tmov\tr3, #0x00\n#else\n/* LINTSTUB: Func: void *memset(void *, int, size_t) */\nENTRY(memset)\n\tand\tr3, r1, #0xff\t\t/* We deal with bytes */\n\tmov\tr1, r2\n#endif\n\tcmp\tr1, #0x04\t\t/* Do we have less than 4 bytes */\n\tmov\tip, r0\n\tblo\t.Lmemset_lessthanfour\n\n\t/* Ok first we will word align the address */\n\tands\tr2, ip, #0x03\t\t/* Get the bottom two bits */\n\tbne\t.Lmemset_wordunaligned\t/* The address is not word aligned */\n\n\t/* We are now word aligned */\n.Lmemset_wordaligned:\n#ifndef _BZERO\n\torr\tr3, r3, r3, lsl #8\t/* Extend value to 16-bits */\n#endif\n#ifdef _ARM_ARCH_DWORD_OK\n\ttst\tip, #0x04\t\t/* Quad-align for Xscale */\n#else\n\tcmp\tr1, #0x10\n#endif\n#ifndef _BZERO\n\torr\tr3, r3, r3, lsl #16\t/* Extend value to 32-bits */\n#endif\n#ifdef _ARM_ARCH_DWORD_OK\n\tsubne\tr1, r1, #0x04\t\t/* Quad-align if necessary */\n\tstrne\tr3, [ip], #0x04\n\tcmp\tr1, #0x10\n#endif\n\tblo\t.Lmemset_loop4\t\t/* If less than 16 then use words */\n\tmov\tr2, r3\t\t\t/* Duplicate data */\n\tcmp\tr1, #0x80\t\t/* If < 128 then skip the big loop */\n\tblo\t.Lmemset_loop32", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset.S:4", "text": "#ifndef _BZERO\n\torr\tr3, r3, r3, lsl #8\t/* Extend value to 16-bits */\n#endif\n#ifdef _ARM_ARCH_DWORD_OK\n\ttst\tip, #0x04\t\t/* Quad-align for Xscale */\n#else\n\tcmp\tr1, #0x10\n#endif\n#ifndef _BZERO\n\torr\tr3, r3, r3, lsl #16\t/* Extend value to 32-bits */\n#endif\n#ifdef _ARM_ARCH_DWORD_OK\n\tsubne\tr1, r1, #0x04\t\t/* Quad-align if necessary */\n\tstrne\tr3, [ip], #0x04\n\tcmp\tr1, #0x10\n#endif\n\tblo\t.Lmemset_loop4\t\t/* If less than 16 then use words */\n\tmov\tr2, r3\t\t\t/* Duplicate data */\n\tcmp\tr1, #0x80\t\t/* If < 128 then skip the big loop */\n\tblo\t.Lmemset_loop32\n\n\t/* Do 128 bytes at a time */\n.Lmemset_loop128:\n\tsubs\tr1, r1, #0x80\n#ifdef _ARM_ARCH_DWORD_OK\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n#else\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n#endif\n\tbhi\t.Lmemset_loop128", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset.S:5", "text": "strdhs\tr2, r3, [ip], #0x08\n#else\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n#endif\n\tbhi\t.Lmemset_loop128\n\tRETc(eq)\t\t\t/* Zero length so just exit */\n\n\tadd\tr1, r1, #0x80\t\t/* Adjust for extra sub */\n\n\t/* Do 32 bytes at a time */\n.Lmemset_loop32:\n\tsubs\tr1, r1, #0x20\n#ifdef _ARM_ARCH_DWORD_OK\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n#else\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n#endif\n\tbhi\t.Lmemset_loop32\n\tRETc(eq)\t\t\t/* Zero length so just exit */\n\n\tadds\tr1, r1, #0x10\t\t/* Partially adjust for extra sub */\n\n\t/* Deal with 16 bytes or more */\n#ifdef _ARM_ARCH_DWORD_OK\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n#else\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n#endif\n\tRETc(eq)\t\t\t/* Zero length so just exit */\n\n\taddlo\tr1, r1, #0x10\t\t/* Possibly adjust for extra sub */\n\n\t/* We have at least 4 bytes so copy as words */\n.Lmemset_loop4:\n\tsubs\tr1, r1, #0x04\n\tstrhs\tr3, [ip], #0x04\n\tbhi\t.Lmemset_loop4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset.S:6", "text": "adds\tr1, r1, #0x10\t\t/* Partially adjust for extra sub */\n\n\t/* Deal with 16 bytes or more */\n#ifdef _ARM_ARCH_DWORD_OK\n\tstrdhs\tr2, r3, [ip], #0x08\n\tstrdhs\tr2, r3, [ip], #0x08\n#else\n\tstmiahs\tip!, {r2-r3}\n\tstmiahs\tip!, {r2-r3}\n#endif\n\tRETc(eq)\t\t\t/* Zero length so just exit */\n\n\taddlo\tr1, r1, #0x10\t\t/* Possibly adjust for extra sub */\n\n\t/* We have at least 4 bytes so copy as words */\n.Lmemset_loop4:\n\tsubs\tr1, r1, #0x04\n\tstrhs\tr3, [ip], #0x04\n\tbhi\t.Lmemset_loop4\n\tRETc(eq)\t\t\t/* Zero length so just exit */\n\n#ifdef _ARM_ARCH_DWORD_OK\n\t/* Compensate for 64-bit alignment check */\n\tadds\tr1, r1, #0x04\n\tRETc(eq)\n\tcmp\tr1, #2\n#else\n\tcmp\tr1, #-2\n#endif\n\n\tstrb\tr3, [ip], #0x01\t\t/* Set 1 byte */\n\tstrbhs\tr3, [ip], #0x01\t\t/* Set another byte */\n\tstrbhi\tr3, [ip]\t\t/* and a third */\n\tRET\t\t\t\t/* Exit */\n\n.Lmemset_wordunaligned:\n\trsb\tr2, r2, #0x004\n\tstrb\tr3, [ip], #0x01\t\t/* Set 1 byte */\n\tcmp\tr2, #0x02\n\tstrbhs\tr3, [ip], #0x01\t\t/* Set another byte */\n\tsub\tr1, r1, r2\n\tstrbhi\tr3, [ip], #0x01\t\t/* and a third */\n\tcmp\tr1, #0x04\t\t/* More than 4 bytes left? */\n\tbhs\t.Lmemset_wordaligned\t/* Yup */\n\n.Lmemset_lessthanfour:\n\tcmp\tr1, #0x00\n\tRETc(eq)\t\t\t\t/* Zero length so exit */\n\tstrb\tr3, [ip], #0x01\t\t/* Set 1 byte */\n\tcmp\tr1, #0x02\n\tstrbhs\tr3, [ip], #0x01\t\t/* Set another byte */\n\tstrbhi\tr3, [ip]\t\t/* and a third */\n\tRET\t\t\t\t/* Exit */\n#ifdef _BZERO\nEND(bzero)\n#else\nEND(memset)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset.S", "line_start": 201, "line_end": 259}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset.S:7", "text": "strbhs\tr3, [ip], #0x01\t\t/* Set another byte */\n\tsub\tr1, r1, r2\n\tstrbhi\tr3, [ip], #0x01\t\t/* and a third */\n\tcmp\tr1, #0x04\t\t/* More than 4 bytes left? */\n\tbhs\t.Lmemset_wordaligned\t/* Yup */\n\n.Lmemset_lessthanfour:\n\tcmp\tr1, #0x00\n\tRETc(eq)\t\t\t\t/* Zero length so exit */\n\tstrb\tr3, [ip], #0x01\t\t/* Set 1 byte */\n\tcmp\tr1, #0x02\n\tstrbhs\tr3, [ip], #0x01\t\t/* Set another byte */\n\tstrbhi\tr3, [ip]\t\t/* and a third */\n\tRET\t\t\t\t/* Exit */\n#ifdef _BZERO\nEND(bzero)\n#else\nEND(memset)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset.S", "line_start": 241, "line_end": 259}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_arm.S:2", "text": "#elif defined(_ARM_ARCH_DWORD_OK)\n#define\tSTORE8\t\tstrd\t\tr2, [ip], #8\n#define\tSTORE16\t\tSTORE8; STORE8\n#define\tSTORE32\t\tSTORE16; STORE16\n#else\n#define\tSTORE8\t\tstmia\t\tip!, {r2,r3}\n#define\tSTORE16\t\tSTORE8; STORE8\n#define\tSTORE32\t\tSTORE16; STORE16\n#endif\n/*\n * memset: Sets a block of memory to the specified value\n * Using NEON instructions\n *\n * On entry:\n *   r0 - dest address\n *   r1 - byte to write\n *   r2 - number of bytes to write\n *\n * On exit:\n *   r0 - dest address\n */\n/* LINTSTUB: Func: void *memset(void *, int, size_t) */\nENTRY(memset)\n\tands\t\tr3, r1, #0xff\t/* We deal with bytes */\n\torrne\t\tr3, r3, r3, lsl #8\t/* replicate to all bytes */\n\torrne\t\tr3, r3, r3, lsl #16\t/* replicate to all bytes */\n\tmovs\t\tr1, r2\t\t/* we need r2 & r3 */\n\tRETc(eq)\t\t\t/* return if length is 0 */\n\tmov\t\tip, r0\t\t/* r0 needs to stay the same */\n\n\tcmp\t\tr1, #12\t\t/* is this a small memset? *?\n\tblt\t\t.Lbyte_by_byte\t/*   then do it byte by byte */\n\n\t/* Ok first we will dword align the address */\n\tands\t\tr2, ip, #7\t/* grab the bottom three bits */\n\tbeq\t\t.Lmemset_dwordaligned\t/* The addr is dword aligned */\n\n\trsb\t\tr2, r2, #8\t/* how far until dword aligned? */\n\tsub\t\tr1, r1, r2\t/* subtract it from remaining length */\n\tmov\t\tr2, r3\t\t/* duplicate fill value */\n\n\ttst\t\tip, #1\t\t/* halfword aligned? */\n\tstrneb\t\tr3, [ip], #1\t/*   no, write a byte */\n\ttst\t\tip, #2\t\t/* word aligned? */\n\tstrneh\t\tr3, [ip], #2\t/*   no, write a halfword */\n\ttst\t\tip, #4\t\t/* dword aligned? */\n\tstrne\t\tr3, [ip], #4\t/*   no, write a word */\n\n\t/* We are now doubleword aligned */\n.Lmemset_dwordaligned:\n#if defined(NEON)\n\tvdup.8\t\tq0, r3\t\t/* move fill to SIMD */\n\tvmov\t\tq1, q0\t\t/* put fill in q1 (d2-d3) */\n#elif defined(VFP)\n\tmov\t\tr2, r3\t\t/* duplicate fill value */\n\tvmov\t\td0, r2, r3\t/* move to VFP */\n\tvmov\t\td1, r2, r3\n\tvmov\t\td2, r2, r3\n\tvmov\t\td3, r2, r3\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_arm.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_arm.S:3", "text": "tst\t\tip, #1\t\t/* halfword aligned? */\n\tstrneb\t\tr3, [ip], #1\t/*   no, write a byte */\n\ttst\t\tip, #2\t\t/* word aligned? */\n\tstrneh\t\tr3, [ip], #2\t/*   no, write a halfword */\n\ttst\t\tip, #4\t\t/* dword aligned? */\n\tstrne\t\tr3, [ip], #4\t/*   no, write a word */\n\n\t/* We are now doubleword aligned */\n.Lmemset_dwordaligned:\n#if defined(NEON)\n\tvdup.8\t\tq0, r3\t\t/* move fill to SIMD */\n\tvmov\t\tq1, q0\t\t/* put fill in q1 (d2-d3) */\n#elif defined(VFP)\n\tmov\t\tr2, r3\t\t/* duplicate fill value */\n\tvmov\t\td0, r2, r3\t/* move to VFP */\n\tvmov\t\td1, r2, r3\n\tvmov\t\td2, r2, r3\n\tvmov\t\td3, r2, r3\n#endif\n\n#if 1\n\tcmp\t\tr1, #128\n\tblt\t\t.Lmemset_mainloop\n\tands\t\tr2, ip, #63\t/* check for 64-byte alignment */\n\tbeq\t\t.Lmemset_mainloop\n\t/*\n\t * Let's align to a 64-byte boundary so that stores don't cross\n\t * cacheline boundaries.  We also know we have at least 128-bytes to\n\t * copy so we don't have to worry about the length at the moment.\n\t */\n\trsb\t\tr2, r2, #64\t/* how many bytes until 64 bytes */\n\tsub\t\tr1, r1, r2\t/* subtract from remaining length */\n#if !defined(NEON) && !defined(VFP)\n\tmov\t\tr2, r3\t\t/* put fill back in r2 */\n#endif\n\n\ttst\t\tip, #8\t\t/* quadword aligned? */\n\tbeq\t\t1f\t\t/*   yes */\n\tSTORE8\t\t\t\t/*   no, store a dword */\n1:\ttst\t\tip, #16\t\t/* octaword aligned? *?\n\tbeq\t\t2f\t\t/*   yes */\n\tSTORE16\t\t\t\t/*   no, store a quadword */\n2:\ttst\t\tip, #32\t\t/* 32 word aligned? */\n\tbeq\t\t.Lmemset_mainloop\t\t/*   yes */\n\tSTORE32\t\t\t\t/*   no, make 64-byte aligned */\n#endif\n\n.Lmemset_mainloop:\n#if !defined(NEON) && !defined(VFP)\n\tmov\t\tr2, r3\t\t/* put fill back in r2 */\n#endif\n\tsubs\t\tr1, r1, #64\t/* subtract an initial 64 */\n\tblt\t\t.Lmemset_lessthan_64bytes\n\n3:\tSTORE32\t\t\t\t/* store first octaword */\n\tSTORE32\t\t\t\t/* store second octaword */\n\tRETc(eq)\t\t\t/* return if done */\n\tsubs\t\tr1, r1, #64\t/* subtract another 64 */\n\tbge\t\t3b\t\t/* and do other if still >= 0 */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_arm.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_arm.S:4", "text": "1:\ttst\t\tip, #16\t\t/* octaword aligned? *?\n\tbeq\t\t2f\t\t/*   yes */\n\tSTORE16\t\t\t\t/*   no, store a quadword */\n2:\ttst\t\tip, #32\t\t/* 32 word aligned? */\n\tbeq\t\t.Lmemset_mainloop\t\t/*   yes */\n\tSTORE32\t\t\t\t/*   no, make 64-byte aligned */\n#endif\n\n.Lmemset_mainloop:\n#if !defined(NEON) && !defined(VFP)\n\tmov\t\tr2, r3\t\t/* put fill back in r2 */\n#endif\n\tsubs\t\tr1, r1, #64\t/* subtract an initial 64 */\n\tblt\t\t.Lmemset_lessthan_64bytes\n\n3:\tSTORE32\t\t\t\t/* store first octaword */\n\tSTORE32\t\t\t\t/* store second octaword */\n\tRETc(eq)\t\t\t/* return if done */\n\tsubs\t\tr1, r1, #64\t/* subtract another 64 */\n\tbge\t\t3b\t\t/* and do other if still >= 0 */\n.Lmemset_lessthan_64bytes:\n\ttst\t\tr1, #32\t\t/* do we have 16 bytes left? */\n\tbeq\t\t.Lmemset_lessthan_32bytes\n\tSTORE32\t\t\t\t/*    yes, store an octaword */\n\tbics\t\tr1, r1, #32\t/* subtract 16 */\n\tRETc(eq)\t\t\t/* return if length is 0 */\n.Lmemset_lessthan_32bytes:\n\ttst\t\tr1, #16\t\t/* do we have 16 bytes left? */\n\tbeq\t\t.Lmemset_lessthan_16bytes\n\tSTORE16\t\t\t\t/*   yes, store a quadword */\n\tbics\t\tr1, r1, #16\t/* subtract 16 */\n\tRETc(eq)\t\t\t/* return if length is 0 */\n.Lmemset_lessthan_16bytes:\n\ttst\t\tr1, #8\t\t/* do we have 8 bytes left? */\n\tbeq\t\t.Lmemset_lessthan_8bytes/*   no */\n\tSTORE8\t\t\t\t/*   yes, store a dword */\n\tbics\t\tr1, r1, #8\t/* subtract 8 */\n\tRETc(eq)\t\t\t/* return if length is 0 */\n.Lmemset_lessthan_8bytes:\n\ttst\t\tr1, #4\t\t/* do we have a word left? */\n\tstrne\t\tr2, [ip], #4\t/*   yes, so write one */\n\ttst\t\tr1, #2\t\t/* do we have a halfword left? */\n\tstrneh\t\tr2, [ip], #2\t/*   yes, so write one */\n\ttst\t\tr1, #1\t\t/* do we have a byte left? */\n\tstrneb\t\tr2, [ip], #1\t/*   yes, so write one */\n\tRET\t\t\t\t/* return */\n\n.Lbyte_by_byte:\n\tsubs\t\tr1, r1, #1\t/* can we write a byte? */\n\tRETc(lt)\t\t\t/*   no, we're done */\n\tstrb\t\tr3, [ip], #1\t/*   yes, so do it */\n\tb\t\t.Lbyte_by_byte\t/* try next byte */\nEND(memset)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_arm.S", "line_start": 121, "line_end": 173}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_arm.S:5", "text": "strne\t\tr2, [ip], #4\t/*   yes, so write one */\n\ttst\t\tr1, #2\t\t/* do we have a halfword left? */\n\tstrneh\t\tr2, [ip], #2\t/*   yes, so write one */\n\ttst\t\tr1, #1\t\t/* do we have a byte left? */\n\tstrneb\t\tr2, [ip], #1\t/*   yes, so write one */\n\tRET\t\t\t\t/* return */\n\n.Lbyte_by_byte:\n\tsubs\t\tr1, r1, #1\t/* can we write a byte? */\n\tRETc(lt)\t\t\t/*   no, we're done */\n\tstrb\t\tr3, [ip], #1\t/*   yes, so do it */\n\tb\t\t.Lbyte_by_byte\t/* try next byte */\nEND(memset)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_arm.S", "line_start": 161, "line_end": 173}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: memset_naive.S,v 1.2 2023/01/19 18:03:03 mlelstv Exp $\")\n\n/*\n * This isn't quite as simple/short as it could be but the truly trivial\n * memset was an order of magnitude slower than this.\n */\n\nENTRY(memset)\n/* LINTSTUB: void *memset(void *, int, size_t) */\n\tmov\tip, r0\t\t\t/* need to preserve r0 */\n\tcmp\tr2, #10\t\t\t/* 10 bytes or less? */\n\tbls\t.Lbyte_by_byte\t\t/*    yes, bytewise is faster */\n\tands\tr3, r1, #0xff\t\t/* we are dealing with bytes */\n\torrne\tr3, r3, r3, lsl #8\t/* move value into 2nd byte lane */\n\torrne\tr3, r3, r3, lsl #16\t/* move value into all byte lanes */\n\tmov\tr1, r2\t\t\t/* move count */\n\tands\tr2, ip, #7\t\t/* are we dword aligned? */\n\tbeq\t1f\t\t\t/*   yes we are */\n\trsb\tr2, r2, #8\t\t/* how many bytes until aligned? */\n\tsub\tr1, r1, r2\t\t/* subtract from count */\n\ttst\tip, #1\t\t\t/* halfword aligned? */\n\tstrneb\tr3, [ip], #1\t\t/*   nope, write a byte */\n\ttst\tip, #2\t\t\t/* word aligned? */\n\tstrneh\tr3, [ip], #2\t\t/*   nope, write a halfword */\n\ttst\tip, #4\t\t\t/* dword aligned? */\n\tstrne\tr3, [ip], #4\t\t/*   nope, write a word */\n\t/*\n\t * At this point, we are dword aligned.\n\t */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_naive.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_naive.S:2", "text": "mov\tip, r0\t\t\t/* need to preserve r0 */\n\tcmp\tr2, #10\t\t\t/* 10 bytes or less? */\n\tbls\t.Lbyte_by_byte\t\t/*    yes, bytewise is faster */\n\tands\tr3, r1, #0xff\t\t/* we are dealing with bytes */\n\torrne\tr3, r3, r3, lsl #8\t/* move value into 2nd byte lane */\n\torrne\tr3, r3, r3, lsl #16\t/* move value into all byte lanes */\n\tmov\tr1, r2\t\t\t/* move count */\n\tands\tr2, ip, #7\t\t/* are we dword aligned? */\n\tbeq\t1f\t\t\t/*   yes we are */\n\trsb\tr2, r2, #8\t\t/* how many bytes until aligned? */\n\tsub\tr1, r1, r2\t\t/* subtract from count */\n\ttst\tip, #1\t\t\t/* halfword aligned? */\n\tstrneb\tr3, [ip], #1\t\t/*   nope, write a byte */\n\ttst\tip, #2\t\t\t/* word aligned? */\n\tstrneh\tr3, [ip], #2\t\t/*   nope, write a halfword */\n\ttst\tip, #4\t\t\t/* dword aligned? */\n\tstrne\tr3, [ip], #4\t\t/*   nope, write a word */\n\t/*\n\t * At this point, we are dword aligned.\n\t */\n1:\tmov\tr2, r3\t\t\t/* duplicate fill value */\n2:\tsubs\tr1, r1, #16\t\t/* can we write 16 bytes? */\n\tstmhsia\tip!, {r2,r3}\t\t/*   yes, write the first 8 of them */\n\tstmhsia\tip!, {r2,r3}\t\t/*   yes, write the second 8 of them */\n\tbhi\t2b\t\t\t/* more left to fill */\n\tRETc(eq)\t\t\t/*   no, return */\n\t/*\n\t * Our count went negative but the bits below 16 haven't changed.\n\t * So we are effectively testing modulo 16.\n\t */\n\ttst\tr1, #8\t\t\t/* can we write at least 8 bytes? */\n\tstmneia\tip!, {r2,r3}\t\t/*   so do it */\n\ttst\tr1, #4\t\t\t/* can we write at least 4 bytes? */\n\tstrne\tr3, [ip], #4\t\t/*   so do it */\n\ttst\tr1, #2\t\t\t/* can we write at least 2 bytes? */\n\tstrneh\tr3, [ip], #2\t\t/*   so do it */\n\ttst\tr1, #1\t\t\t/* can we write 1 bytes? */\n\tstrneb\tr3, [ip], #1\t\t/*   so do it */\n\tRET\t\t\t\t/* return */\n\n.Lbyte_by_byte:\n\tsubs\tr2, r2, #1\t\t/* can we write a byte? */\n\tRETc(lo)\t\t\t/*   no, return */\n\tstrb\tr3, [ip], #1\t\t/* write a byte */\n\tb\t.Lbyte_by_byte\t\t/* do next byte */\nEND(memset)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_naive.S", "line_start": 41, "line_end": 86}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_neon.S:2", "text": "*   r2 - number of bytes to write\n *\n * On exit:\n *   r0 - dest address\n */\n/* LINTSTUB: Func: void *memset(void *, int, size_t) */\nENTRY(memset)\n\tand\t\tr3, r1, #0xff\t/* We deal with bytes */\n\tmov\t\tr1, r2\n\tmov\t\tip, r0\t\t/* r0 needs to stay the same */\n\n\tvdup.8\t\tq0, r3\t\t/* move fill to SIMD */\n\t/* we no longer need to keep the fill value in a ARM register */\n\n\t/* Ok first we will dword align the address */\n\tands\t\tr2, ip, #7\t/* grab the bottom three bits */\n\tbeq\t\t.Lmemset_dwordaligned\t/* The addr is dword aligned */\n\n\tbic\t\tip, ip, #7\t/* clear bottom three bits of addr */\n\tvldr\t\td7, [ip]\t/* load from memory */\n\tadd\t\tr1, r1, r2\t/* add \"pre-fill\" to length */\n\tlsl\t\tr2, r2, #3\t/* byte to no-fill bit count */\n\n#ifdef __ARMEB__\n\tneg\t\tr1, r1\t\t/* start from the MSB */\n#endif\n\tvmov\t\ts4, r2\t\t/* move to SIMD d2 */\n\tvmvn.u64\td3, #0\t\t/* set all ones */\n\tvshl.u64\td3, d3, d2\t/* create a no-fill mask */\n\tvmvn.u64\td2, d3\t\t/* invert mask for a fill-mask */\n\tvand\t\td7, d7, d3\t/* mask out fill bits */\n\tvand\t\td2, d0, d2\t/* mask out no-fill bits */\n\tvorr\t\td7, d2, d7\t/* merge fill and memory */\n\n\tcmp\t\tr1, #8\t\t/* Do we have less than 8 bytes */\n\tmovlt\t\tr2, #0\t\t/* indicate this is the last word */\n\tblt\t\t.Lmemset_lessthaneight_noload\n\n\tvstmia\t\tip!, {d7}\t/* write back to memory */\n\tsubs\t\tr1, r1, #8\t/* and remove 8 bytes from the length */\n\tRETc(eq)\n\n\t/* We are now doubleword aligned */\n.Lmemset_dwordaligned:\n\tvmov\t\tq1, q0\t\t/* put fill in q1 (d2-d3) */\n\tvmov\t\tq2, q0\t\t/* put fill in q2 (d4-d5) */\n\tvmov\t\tq3, q0\t\t/* put fill in q3 (d6-d7) */\n\n\tand\t\tr2, ip, #63\t/* check for 64-byte alignment */\n\tbeq\t\t.Lmemset_8dwordaligned\n\t/*\n\t * Let's align to a 64-byte boundary so that stores don't cross\n\t * cacheline boundaries.  We also know we have at least 128-bytes to\n\t * copy so we don't have to worry about the length at the moment.\n\t */\n\trsb\t\tr2, r2, #64\t/* how many bytes until 64 bytes */\n\tcmp\t\tr1, r2\t\t/* compare against length */\n\tandlt\t\tr2, r1, #0x38 \t/* if < len, use trunc(len, 8) */\n\tsubs\t\tr1, r1, r2\t/* subtract from len */\n\tadd\t\tpc, pc, r2\t/* and jump to it */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_neon.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_neon.S:3", "text": "RETc(eq)\n\n\t/* We are now doubleword aligned */\n.Lmemset_dwordaligned:\n\tvmov\t\tq1, q0\t\t/* put fill in q1 (d2-d3) */\n\tvmov\t\tq2, q0\t\t/* put fill in q2 (d4-d5) */\n\tvmov\t\tq3, q0\t\t/* put fill in q3 (d6-d7) */\n\n\tand\t\tr2, ip, #63\t/* check for 64-byte alignment */\n\tbeq\t\t.Lmemset_8dwordaligned\n\t/*\n\t * Let's align to a 64-byte boundary so that stores don't cross\n\t * cacheline boundaries.  We also know we have at least 128-bytes to\n\t * copy so we don't have to worry about the length at the moment.\n\t */\n\trsb\t\tr2, r2, #64\t/* how many bytes until 64 bytes */\n\tcmp\t\tr1, r2\t\t/* compare against length */\n\tandlt\t\tr2, r1, #0x38 \t/* if < len, use trunc(len, 8) */\n\tsubs\t\tr1, r1, r2\t/* subtract from len */\n\tadd\t\tpc, pc, r2\t/* and jump to it */\n\tnop\n\tRETc(eq);\t\t\tb\t.Lmemset_lessthaneight\n\tvstmia\t\tip!, {d0};\tb\t.Lmemset_8dwordaligned\n\tvstmia\t\tip!, {d0-d1};\tb\t.Lmemset_8dwordaligned\n\tvstmia\t\tip!, {d0-d2};\tb\t.Lmemset_8dwordaligned\n\tvstmia\t\tip!, {d0-d3};\tb\t.Lmemset_8dwordaligned\n\tvstmia\t\tip!, {d0-d4};\tb\t.Lmemset_8dwordaligned\n\tvstmia\t\tip!, {d0-d5};\tb\t.Lmemset_8dwordaligned\n\tvstmia\t\tip!, {d0-d6}\n.Lmemset_8dwordaligned:\n\tvmov\t\td0, d1\t\t/* restore in case of unaligned start */\n\tcmp\t\tr1, #8\t\t/* do we have less than 8 bytes */\n\tmovlt\t\tr2, #0\t\t/* indicate last word */\n\tblt\t\t.Lmemset_lessthaneight\n\n\tcmp\t\tr1, #512\n\tblt\t\t.Lmemset_sub512\n\n\t/* Do 512 bytes at a time */\n\tmov\t\tr2, #512\n.Lmemset_512:\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n.Lmemset_0:\n\tsubs\t\tr1, r1, r2\n\tRETc(eq)\t\t\t/* return if done */\n\tcmp\t\tr1, #512\n\tbge\t\t.Lmemset_512\n\n\t/*\n\t * We have less than 512 bytes left, but since the sequence above\n\t * store 64 bytes at a time, we determine the number of instructions\n\t * we need to store the remainder (if >= 64 bytes) and execute that\n\t * many vstmia.", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_neon.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_neon.S:4", "text": ".Lmemset_512:\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n\tvstmia\t\tip!, {d0-d7}\n.Lmemset_0:\n\tsubs\t\tr1, r1, r2\n\tRETc(eq)\t\t\t/* return if done */\n\tcmp\t\tr1, #512\n\tbge\t\t.Lmemset_512\n\n\t/*\n\t * We have less than 512 bytes left, but since the sequence above\n\t * store 64 bytes at a time, we determine the number of instructions\n\t * we need to store the remainder (if >= 64 bytes) and execute that\n\t * many vstmia.\n\t */\n.Lmemset_sub512:\n\tlsr\t\tr2, r1, #6\t/* divide by 64 */\n\tlslne\t\tr4, r2, #2\t/* multiply by 4 */\n\taddne\t\tr4, r4, #1f + 8 - .Lmemset_0\n\t\t\t\t\t/* add the # of bytes between */\n1:\tsubne\t\tpc, r4 \t\t/* and go */\n\n\t/*\n\t * We have less than 64 bytes to copy on a 8dword aligned address\n\t */\n\tand\t\tr2, r1, #56\t/* get # of full dwords */\n\tands\t\tr1, r1, #7\t/* get # of extra bytes */\n\tbeq\t\t.Lmemset_finalstore\n\t/*\n\t * The last word is a partial fill so load its value and update it\n\t * to include the fill value.\n\t */\n.Lmemset_lessthaneight:\n\tvldr\t\td7, [ip, r2]\t/* load the last partial dword */\n.Lmemset_lessthaneight_noload:\n\tlsl\t\tr1, r1, #3\t/* byte to fill bit count */\n#ifdef __ARMEB__\n\tneg\t\tr1, r1\t\t/* start from the MSB */\n#endif\n\tvmov\t\ts4, r1\t\t/* move to SIMD d2 */\n\tvmvn.u64\td3, #0\t\t/* set all ones */\n\tvshl.u64\td3, d3, d2\t/* create a no-fill mask */\n\tvmvn.u64\td2, d3\t\t/* invert mask */\n\tvand\t\td7, d7, d2\t/* keep no-fill bits */\n\tvand\t\td2, d0, d3\t/* mask out no-fill bits */\n\tvorr\t\td7, d2, d7\t/* merge fill and no-fill */\n\tvmov\t\tq1, q0\t\t/* restore d2 & d3 */\n\tadd\t\tr2, r2, #8\t/* compensate for the partial dword */\n.Lmemset_finalstore:\n\tadd\t\tpc, pc, r2\t/* and jump to it */\n\tnop\n\tvstr\t\td7, [ip];\tRET\n\tvstmia\t\tip, {d6-d7};\tRET\n\tvstmia\t\tip, {d5-d7};\tRET", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_neon.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/memset_neon.S:5", "text": ".Lmemset_lessthaneight_noload:\n\tlsl\t\tr1, r1, #3\t/* byte to fill bit count */\n#ifdef __ARMEB__\n\tneg\t\tr1, r1\t\t/* start from the MSB */\n#endif\n\tvmov\t\ts4, r1\t\t/* move to SIMD d2 */\n\tvmvn.u64\td3, #0\t\t/* set all ones */\n\tvshl.u64\td3, d3, d2\t/* create a no-fill mask */\n\tvmvn.u64\td2, d3\t\t/* invert mask */\n\tvand\t\td7, d7, d2\t/* keep no-fill bits */\n\tvand\t\td2, d0, d3\t/* mask out no-fill bits */\n\tvorr\t\td7, d2, d7\t/* merge fill and no-fill */\n\tvmov\t\tq1, q0\t\t/* restore d2 & d3 */\n\tadd\t\tr2, r2, #8\t/* compensate for the partial dword */\n.Lmemset_finalstore:\n\tadd\t\tpc, pc, r2\t/* and jump to it */\n\tnop\n\tvstr\t\td7, [ip];\tRET\n\tvstmia\t\tip, {d6-d7};\tRET\n\tvstmia\t\tip, {d5-d7};\tRET\n\tvstmia\t\tip, {d4-d7};\tRET\n\tvstmia\t\tip, {d3-d7};\tRET\n\tvstmia\t\tip, {d2-d7};\tRET\n\tvstmia\t\tip, {d1-d7};\tRET\n\tvstmia\t\tip, {d0-d7};\tRET\nEND(memset)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/memset_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/memset_neon.S", "line_start": 161, "line_end": 186}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcat_arm.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n/*\n * Implementation of strcat using strlen/strcpy.\n */\nENTRY(strcat)\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.fnstart\n# endif\n\t.cfi_startproc\n#endif\n\tpush\t{r3-r5, lr}\t\t/* save registers */\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r3-r5, lr}\n# endif\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n\t.cfi_offset 3, -16\n#endif\n\n\tmov\tr4, r0\t\t\t/* save dst */\n\tmov\tr5, r1\t\t\t/* save append */\n\n\tbl\tPLT_SYM(strlen)\t\t/* find length of dst */\n\n\tadds\tr0, r0, r4\t\t/* add to dst pointer */\n\tmov\tr1, r5\t\t\t/* fetch append */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcat_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcat_arm.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcat_arm.S:2", "text": "#endif\n\tpush\t{r3-r5, lr}\t\t/* save registers */\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r3-r5, lr}\n# endif\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset 5, -8\n\t.cfi_offset 4, -12\n\t.cfi_offset 3, -16\n#endif\n\n\tmov\tr4, r0\t\t\t/* save dst */\n\tmov\tr5, r1\t\t\t/* save append */\n\n\tbl\tPLT_SYM(strlen)\t\t/* find length of dst */\n\n\tadds\tr0, r0, r4\t\t/* add to dst pointer */\n\tmov\tr1, r5\t\t\t/* fetch append */\n\tbl\tPLT_SYM(strcpy)\t\t/* append string */\n\n\tmov\tr0, r4\t\t\t/* restore dst as return value */\n\tpop\t{r3-r5, pc}\t\t/* restore registers */\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n\t.cfi_endproc\n# if !defined(__ARM_DWARF_EH__)\n\t.fnend\n# endif\n#endif\nEND(strcat)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcat_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcat_arm.S", "line_start": 41, "line_end": 71}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcat_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strcat_naive.S,v 1.3 2013/08/19 17:02:25 matt Exp $\")\n\nENTRY(strcat)\n\tmov\tip, r0\t\t\t/* need to preserve r0 */\n#if defined(__thumb__)\n1:\tldrb\tr2, [r0]\t\t/* load next byte */\n\tadds\tr0, r0, #1\t\t/* advance */\n\tcmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, get next byte */\n\tsubs\tr0, r0, #1\t\t/* back up one to the NUL */\n\tsubs\tr1, r1, r0\t\t/* save one increment */\n2:\tldrb\tr2, [r1, r0]\t\t/* load next byte from append */\n\tstrb\tr2, [r0]\t\t/* store it */\n\tadds\tr0, r0, #1\t\t/* advance */\n\tcmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t2b\t\t\t/*   no, get next byte */\n\tmov\tr0, ip\t\t\t/* restore dst address */\n\tRET\t\t\t\t/* return */\n#else /* !__thumb__ */\n\tmov\tip, r0\t\t\t/* need to preserve r0 */\n1:\tldrb\tr2, [ip], #1\t\t/* load next byte */\n\tteq\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, get next byte */\n\tsub\tip, ip, #1\t\t/* back up one to the NUL */\n2:\tldrb\tr2, [r1], #1\t\t/* load next byte from append */\n\tstrb\tr2, [ip], #1\t\t/* store it */\n\tteq\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t2b\t\t\t/*   no, get next byte */\n\tRET\t\t\t\t/* return */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcat_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcat_naive.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcat_naive.S:2", "text": "subs\tr0, r0, #1\t\t/* back up one to the NUL */\n\tsubs\tr1, r1, r0\t\t/* save one increment */\n2:\tldrb\tr2, [r1, r0]\t\t/* load next byte from append */\n\tstrb\tr2, [r0]\t\t/* store it */\n\tadds\tr0, r0, #1\t\t/* advance */\n\tcmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t2b\t\t\t/*   no, get next byte */\n\tmov\tr0, ip\t\t\t/* restore dst address */\n\tRET\t\t\t\t/* return */\n#else /* !__thumb__ */\n\tmov\tip, r0\t\t\t/* need to preserve r0 */\n1:\tldrb\tr2, [ip], #1\t\t/* load next byte */\n\tteq\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, get next byte */\n\tsub\tip, ip, #1\t\t/* back up one to the NUL */\n2:\tldrb\tr2, [r1], #1\t\t/* load next byte from append */\n\tstrb\tr2, [ip], #1\t\t/* store it */\n\tteq\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t2b\t\t\t/*   no, get next byte */\n\tRET\t\t\t\t/* return */\n#endif\nEND(strcat)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcat_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcat_naive.S", "line_start": 41, "line_end": 62}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strchr_arm.S:2", "text": "#define\tBYTE2\t0x00ff0000\n#define\tBYTE3\t0xff000000\n#define\tlshi\tlsl\n#define\tlshis\tlsls\n#else\n#define\tBYTE0\t0xff000000\n#define\tBYTE1\t0x00ff0000\n#define\tBYTE2\t0x0000ff00\n#define\tBYTE3\t0x000000ff\n#define\tlshi\tlsr\n#define\tlshis\tlsrs\n#endif\n\n\t.text\nENTRY(strchr)\n\tand\tr2, r1, #0xff\t\t/* restrict to byte value */\n1:\ttst\tr0, #3\t\t\t/* test for word alignment */\n\tbeq\t.Lpre_main_loop\t\t/*   finally word aligned */\n\tldrb\tr3, [r0], #1\t\t/* load a byte */\n\tcmp\tr3, r2\t\t\t/* is it a match? */\n\tbeq\t2f\t\t\t/*   yes, return current ptr - 1 */\n\tcmp\tr3, #0\t\t\t/* no, was it 0? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n\tmovs\tr0, #0\t\t\t/*   yes, set return value to NULL */\n\tRET\t\t\t\t/* return */\n2:\tsubs\tr0, r0, #1\t\t/* back up by one */\n\tRET\t\t\t\t/* return */\n.Lpre_main_loop:\n#if defined(_ARM_ARCH_7)\n\tmovw\tip, #0xfefe\t\t/* magic constant; 254 in each byte */\n\tmovt\tip, #0xfefe\t\t/* magic constant; 254 in each byte */\n#elif defined(_ARM_ARCH_6)\n\tmov\tip, #0xfe\t\t/* put 254 in low byte */\n\torr\tip, ip, ip, lsl #8\t/* move to next byte */\n\torr\tip, ip, ip, lsl #16\t/* move to next halfword */\n#endif /* _ARM_ARCH_6 */\n\torr\tr2, r2, r2, lsl #8\t/* move to next byte */\n\torr\tr2, r2, r2, lsl #16\t/* move to next halfword */\n.Lmain_loop:\n\tldr\tr3, [r0], #4\t\t/* load next word */\n#if defined(_ARM_ARCH_6)\n\t/*\n\t * Add 254 to each byte using the UQADD8 (unsigned saturating add 8)\n\t * instruction.  For every non-NUL byte, the result for that byte will\n\t * become 255.  For NUL, it will be 254.  When we complement the\n\t * result, if the result is non-0 then we must have encountered a NUL.\n\t */\n\tuqadd8\tr1, r3, ip\t\t/* NUL detection happens here */\n\teors\tr3, r3, r2\t\t/* xor to clear each lane */\n\tuqadd8\tr3, r3, ip\t\t/* char detection happens here */\n\tands\tr3, r3, r1\t\t/* merge results */\n\tmvns\tr3, r3\t\t\t/* is the complement non-0? */\n\tbeq\t.Lmain_loop\t\t/*    no, then keep going */\n\n\t/*\n\t * We've encountered a NUL or a match but we don't know which happened\n\t * first.\n\t */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tr2, .Lfind_match\t/* searching for NUL? yes, find it */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strchr_arm.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strchr_arm.S:3", "text": "#if defined(_ARM_ARCH_6)\n\t/*\n\t * Add 254 to each byte using the UQADD8 (unsigned saturating add 8)\n\t * instruction.  For every non-NUL byte, the result for that byte will\n\t * become 255.  For NUL, it will be 254.  When we complement the\n\t * result, if the result is non-0 then we must have encountered a NUL.\n\t */\n\tuqadd8\tr1, r3, ip\t\t/* NUL detection happens here */\n\teors\tr3, r3, r2\t\t/* xor to clear each lane */\n\tuqadd8\tr3, r3, ip\t\t/* char detection happens here */\n\tands\tr3, r3, r1\t\t/* merge results */\n\tmvns\tr3, r3\t\t\t/* is the complement non-0? */\n\tbeq\t.Lmain_loop\t\t/*    no, then keep going */\n\n\t/*\n\t * We've encountered a NUL or a match but we don't know which happened\n\t * first.\n\t */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tr2, .Lfind_match\t/* searching for NUL? yes, find it */\n#else\n\tcmp\tr2, #0\t\t\t/* searching for NUL? */\n\tbeq\t.Lfind_match\t\t/*   yes, find the match */\n#endif\n\tmvns\tr1, r1\t\t\t/* did we encounter a NUL? */\n\tbeq\t.Lfind_match\t\t/*   no, find the match */\n\tbics\tr3, r3, r1\t\t/* clear match for the NUL(s) */\n\tbeq\t.Lnomatch\t\t/*   any left set? if not, no match */\n\tlshis\tr1, r1, #8\t\t/* replicate NUL bit to other bytes */\n#ifdef __thumb__\n\titt\tne\n#endif\n\torrne\tr1, r1, r1, lshi #8\t/* replicate NUL bit to other bytes */\n\torrne\tr1, r1, r1, lshi #8\t/* replicate NUL bit to other bytes */\n\tbics\tr3, r3, r1\t\t/* clear any match bits after the NUL */\n\tbeq\t.Lnomatch\t\t/*   any left set? if not, no match */\n.Lfind_match:\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* we want this in BE for the CLZ */\n#endif\n\tclz\tr3, r3\t\t\t/* count how many leading zeros */\n\tadd\tr0, r0, r3, lsr #3\t/* divide that by 8 and add to count */\n\tsubs\tr0, r0, #4\t\t/* compensate for the post-inc */\n\tRET\n.Lnomatch:\n\tmovs\tr0, #0\n\tRET\n#else\n\t/*\n\t * No fancy shortcuts so just test each byte lane for a NUL.\n\t * (other tests for NULs in a word take more instructions/cycles).\n\t */\n\teor\tr1, r3, r2\t\t/* xor .. */\n\ttst\tr3, #BYTE0\t\t/* is this byte NUL? */\n\ttstne\tr1, #BYTE0\t\t/*   no, does this byte match? */\n\ttstne\tr3, #BYTE1\t\t/*   no, is this byte NUL? */\n\ttstne\tr1, #BYTE1\t\t/*   no, does this byte match? */\n\ttstne\tr3, #BYTE2\t\t/*   no, is this byte NUL? */\n\ttstne\tr1, #BYTE2\t\t/*   no, does this byte match? */\n\ttstne\tr3, #BYTE3\t\t/*   no, is this byte NUL? */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strchr_arm.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strchr_arm.S:4", "text": "clz\tr3, r3\t\t\t/* count how many leading zeros */\n\tadd\tr0, r0, r3, lsr #3\t/* divide that by 8 and add to count */\n\tsubs\tr0, r0, #4\t\t/* compensate for the post-inc */\n\tRET\n.Lnomatch:\n\tmovs\tr0, #0\n\tRET\n#else\n\t/*\n\t * No fancy shortcuts so just test each byte lane for a NUL.\n\t * (other tests for NULs in a word take more instructions/cycles).\n\t */\n\teor\tr1, r3, r2\t\t/* xor .. */\n\ttst\tr3, #BYTE0\t\t/* is this byte NUL? */\n\ttstne\tr1, #BYTE0\t\t/*   no, does this byte match? */\n\ttstne\tr3, #BYTE1\t\t/*   no, is this byte NUL? */\n\ttstne\tr1, #BYTE1\t\t/*   no, does this byte match? */\n\ttstne\tr3, #BYTE2\t\t/*   no, is this byte NUL? */\n\ttstne\tr1, #BYTE2\t\t/*   no, does this byte match? */\n\ttstne\tr3, #BYTE3\t\t/*   no, is this byte NUL? */\n\ttstne\tr1, #BYTE3\t\t/*   no, does this byte match? */\n\tbne\t.Lmain_loop\n\n\tsub\tr2, r0, #4\t\t/* un post-inc */\n\tmov\tr0, #0\t\t\t/* assume no match */\n\n\ttst\tr1, #BYTE0\t\t/* does this byte match? */\n\tmoveq\tr0, r2\t\t\t/*   yes, point to it */\n\tRETc(eq)\t\t\t/*        and return */\n\ttst\tr3, #BYTE0\t\t/* is this byte NUL? */\n\tRETc(eq)\t\t\t/*   yes, return NULL */\n\n\ttst\tr1, #BYTE1\t\t/* does this byte match? */\n\taddeq\tr0, r2, #1\t\t/*   yes, point to it */\n\tRETc(eq)\t\t\t/*        and return */\n\ttst\tr3, #BYTE1\t\t/* is this byte NUL? */\n\tRETc(eq)\t\t\t/*   yes, return NULL */\n\n\ttst\tr1, #BYTE2\t\t/* does this byte match? */\n\taddeq\tr0, r2, #2\t\t/*   yes, point to it */\n\tRETc(eq)\t\t\t/*        and return */\n\ttst\tr3, #BYTE2\t\t/* is this byte NUL? */\n\tRETc(eq)\t\t\t/*   yes, return NULL */\n\n\ttst\tr1, #BYTE3\t\t/* does this byte match? */\n\taddeq\tr0, r2, #3\t\t/*   yes, point to it */\n\t/*\n\t * Since no NULs and no matches this must be the only case left.\n\t */\n\tRET\t\t\t\t/* return */\n#endif /* _ARM_ARCH_6 */\nEND(strchr)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strchr_arm.S", "line_start": 121, "line_end": 172}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strchr_arm.S:5", "text": "RETc(eq)\t\t\t/*        and return */\n\ttst\tr3, #BYTE2\t\t/* is this byte NUL? */\n\tRETc(eq)\t\t\t/*   yes, return NULL */\n\n\ttst\tr1, #BYTE3\t\t/* does this byte match? */\n\taddeq\tr0, r2, #3\t\t/*   yes, point to it */\n\t/*\n\t * Since no NULs and no matches this must be the only case left.\n\t */\n\tRET\t\t\t\t/* return */\n#endif /* _ARM_ARCH_6 */\nEND(strchr)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strchr_arm.S", "line_start": 161, "line_end": 172}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strchr_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strchr_naive.S,v 1.4 2013/08/19 17:02:25 matt Exp $\")\n\n/* LINTSTUB: char * strchr(const char *, int) */\nENTRY(strchr)\n#ifdef __thumb__\n\tmovs\tr3, #0xff\n\tands\tr1, r1, r3\t/* restrict to a byte value */\n1:\tldrb\tr3, [r0]\t/* read a byte */\n\tcmp\tr3, r1\t\t/* does it match? */\n\tbeq\t2f\t\t/*   yes, set return value */\n\tadds\tr0, r0, #1\t/* advance to next byte */\n\tcmp\tr3, #0\t\t/* was it a NUL? */\n\tbne\t1b\t\t/*   no, get next byte */\n\tmovs\tr0, #0\t\t/* set return to NULL */\n2:\tRET\t\t\t/* return */\n#else\n\tmov\tr2, r0\t\t/* using r0 as return value */\n\tmov\tr0, #0\t\t/* default to no match */\n\tand\tr1, r1, #0xff\t/* restrict to a byte value */\n1:\tldrb\tr3, [r2], #1\t/* read a byte */\n\tcmp\tr3, r1\t\t/* does it match? */\n\tsubeq\tr0, r2, #1\t/*   yes, set return value to point to it */\n\tcmpne\tr3, #0\t\t/*   no, was it a NUL? */\n\tbne\t1b\t\t/*     no, get next byte */\n\tRET\n#endif\nEND(strchr)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strchr_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strchr_naive.S", "line_start": 1, "line_end": 57}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcmp.S:1", "text": "/*      $NetBSD: strcmp.S,v 1.2 2013/08/19 00:56:12 matt Exp $ */\n\n/*\n * Copyright (c) 2002 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strcmp.S,v 1.2 2013/08/19 00:56:12 matt Exp $\")\n\nENTRY(strcmp)\n#if !defined(__thumb__)\n1:\tldrb\tr2, [r0], #1\n\tldrb\tr3, [r1], #1\n\tcmp\tr2, #1\n\tcmpcs\tr2, r3\n#else\n\tsubs\tr1, r1, r0\t/* this allows us to only one increment */\n1:\tldrb\tr2, [r0]\n\tldrb\tr3, [r1, r0]\n\tadds\tr0, r0, #1\t/* increment */\n\tcmp\tr2, #1\n\tbcc\t2f\n\tcmp\tr2, r3\n#endif\n\tbeq\t1b\n2:\tsubs\tr0, r2, r3\n\tRET\nEND(strcmp)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcmp.S", "line_start": 1, "line_end": 53}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:3", "text": "* algorithms to detect NULs but they take longer and use more instructions.\n */\n\n/*\n * char *strcpy(char *dst, const char *src);\n * char *strncpy(char *dst, const char *src, size_t len);\n * size_t strlcpy(char *dst, const char *src, size_t len);\n */\n\n\t.text\nENTRY(FUNCNAME)\n#if defined(STRLCPY)\n\tcmp\tr2, #1\t\t\t/* is length 1 or less? */\n\tbhi\t1f\t\t\t/*   no, do normal */\n\tmoveq\tr3, #0\t\t\t/*   = 1? load NUL */\n\tstrbeq\tr3, [r0]\t\t/*   = 1? write NUL to dst */\n\tmov\tr0, r1\t\t\t/* move src to r0 */\n\tb\tPLT_SYM(_C_LABEL(strlen)) /* and tailcall strlen */\n1:\n\tsub\tr2, r2, #1\t\t/* leave one byte for NUL */\n#endif\n#if defined(STRNCPY)\n\tcmp\tr2, #0\t\t\t/* 0 length? */\n\tRETc(eq)\t\t\t/*   yes, just return */\n#endif\n\tpush\t{r4-r9}\t\t\t/* save some registers */\n#ifdef _ARM_ARCH_6\n#ifdef _ARM_ARCH_7\n\tmovw\tr7, #0xfefe\t\t/* magic constant; 254 in each byte */\n#else\n\tmov\tr7, #0xfe\t\t/* put 254 in low byte */\n\torr\tr7, r7, r7, lsl #8\t/* move to next byte */\n#endif\n\torr\tr7, r7, r7, lsl #16\t/* move to next halfword */\n#endif\n\n#if defined(STRLCPY)\n\tadd\tr6, r1, #1\t\t/* save for return (deal with NUL) */\n#else\n\tmov\tr6, r0\t\t\t/* save for return */\n#endif\n\n.Ldst_align:\n\ttst\tr0, #3\t\t\t/* check for dst alignment */\n\tbeq\t.Ldst_aligned\t\t/*   ok, proceed to next check */\n\tldrb\tr5, [r1], #1\t\t/* load a byte */\n#if defined(STRNCPY)\n\tsubs\tr2, r2, #1\t\t/* subtract out from count */\n\tbmi\t.Ldst_full\t\t/*   zero? the dst has no more room */\n#endif\n\tstrb\tr5, [r0], #1\t\t/* store a byte */\n\tteq\tr5, #0\t\t\t/* was it a NUL? */\n\tbeq\t.Lend_of_string\t\t/*   yes, we are done */\n#if defined(STRLCPY)\n\tsubs\tr2, r2, #1\t\t/* subtract one from count */\n\tstrbeq\tr2, [r0], #1\t\t/*    zero? write trailing NUL */\n\tbeq\t.Ldst_full\t\t/*    zero? the dst has no more room */\n#endif\n\tb\t.Ldst_align\t\t/* loop around for next byte */\n.Ldst_aligned:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:4", "text": "#endif\n\n.Ldst_align:\n\ttst\tr0, #3\t\t\t/* check for dst alignment */\n\tbeq\t.Ldst_aligned\t\t/*   ok, proceed to next check */\n\tldrb\tr5, [r1], #1\t\t/* load a byte */\n#if defined(STRNCPY)\n\tsubs\tr2, r2, #1\t\t/* subtract out from count */\n\tbmi\t.Ldst_full\t\t/*   zero? the dst has no more room */\n#endif\n\tstrb\tr5, [r0], #1\t\t/* store a byte */\n\tteq\tr5, #0\t\t\t/* was it a NUL? */\n\tbeq\t.Lend_of_string\t\t/*   yes, we are done */\n#if defined(STRLCPY)\n\tsubs\tr2, r2, #1\t\t/* subtract one from count */\n\tstrbeq\tr2, [r0], #1\t\t/*    zero? write trailing NUL */\n\tbeq\t.Ldst_full\t\t/*    zero? the dst has no more room */\n#endif\n\tb\t.Ldst_align\t\t/* loop around for next byte */\n.Ldst_aligned:\n\ttst\tr1, #3\t\t\t/* get the misalignment of src */\n\tbne\t.Lincongruent\t\t/*  !=? incongruent (slower) */\n\n\t/*   =?   congruent (faster) */\n\n.Lcongruent:\n#if defined(STRLCPY)\n\tadd\tr6, r6, #3\t\t/* compensate for word post-inc */\n#endif\n\tb\t.Lcongruent_mainloop_load\n.Lcongruent_mainloop:\n#if defined(STRLCPY) || defined(STRNCPY)\n\tsubs\tr2, r2, #4\t\t/* subtract 4 from the count */\n\tbmi\t.Lno_more_room\n#endif\n\tstr\tr5, [r0], #4\t\t/* store word into dst */\n#if defined(STRLCPY)\n\tbeq\t.Lno_more_room\t\t/*   count is 0? no room in dst */\n#endif\n#if defined(STRNCPY)\n\tbeq\t.Ldst_full_word_aligned\t/*   count is 0? no room in dst */\n#endif\n.Lcongruent_mainloop_load:\n\tldr\tr5, [r1], #4\t\t/* load word from source */\n#if defined(_ARM_ARCH_6)\n\tuqadd8\tr3, r5, r7\t\t/* magic happens here */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lcongruent_mainloop\t/*    yes, no NULs, do it again */\n#else\n\ttst\tr5, #BYTE0\t\t/* does byte 0 contain a NUL? */\n\ttstne\tr5, #BYTE1\t\t/*   no, does byte 1 contain a NUL? */\n\ttstne\tr5, #BYTE2\t\t/*   no, does byte 2 contain a NUL? */\n\ttstne\tr5, #BYTE3\t\t/*   no, does byte 3 contain a NUL? */\n\tbne\t.Lcongruent_mainloop\t/*    yes, no NULs, do it again */\n#endif\n#if defined(STRLCPY) && 0\n\tsub\tr1, r1, #3\t\t/* back up src pointer */\n#endif\n#if defined(_ARM_ARCH_6)\n#ifdef __ARMEL__", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:5", "text": "beq\t.Ldst_full_word_aligned\t/*   count is 0? no room in dst */\n#endif\n.Lcongruent_mainloop_load:\n\tldr\tr5, [r1], #4\t\t/* load word from source */\n#if defined(_ARM_ARCH_6)\n\tuqadd8\tr3, r5, r7\t\t/* magic happens here */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lcongruent_mainloop\t/*    yes, no NULs, do it again */\n#else\n\ttst\tr5, #BYTE0\t\t/* does byte 0 contain a NUL? */\n\ttstne\tr5, #BYTE1\t\t/*   no, does byte 1 contain a NUL? */\n\ttstne\tr5, #BYTE2\t\t/*   no, does byte 2 contain a NUL? */\n\ttstne\tr5, #BYTE3\t\t/*   no, does byte 3 contain a NUL? */\n\tbne\t.Lcongruent_mainloop\t/*    yes, no NULs, do it again */\n#endif\n#if defined(STRLCPY) && 0\n\tsub\tr1, r1, #3\t\t/* back up src pointer */\n#endif\n#if defined(_ARM_ARCH_6)\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ needs BE data */\n#endif\n\tclz\tr3, r3\t\t\t/* count leading zeros */\n#else\n\tmov\tr3, #0\t\t\t/* assume NUL is in byte 0 */\n\ttst\tr5, #BYTE0\t\t/* is NUL in byte 2? */\n\tbeq\t.Lcongruent_last_bytes\t/*   yes, done searching. */\n\tmov\tr3, #8\t\t\t/* assume NUL is in byte 1 */\n\ttst\tr5, #BYTE1\t\t/* is NUL in byte 2? */\n\tbeq\t.Lcongruent_last_bytes\t/*   yes, done searching. */\n\tmov\tr3, #16\t\t\t/* assume NUL is in byte 2 */\n\ttst\tr5, #BYTE2\t\t/* is NUL in byte 2? */\n#if !defined(STRLCPY)\n\tbeq\t.Lcongruent_last_bytes\t/*   yes, done searching. */\n\tmov\tr3, #24\t\t\t/* NUL must be in byte 3 */\n#else\n\tmovne\tr3, #24\t\t\t/*    no, then NUL is in byte 3 */\n#endif\n#endif /* _ARM_ARCH_6 */\n#if defined(STRLCPY)\n.Lcongruent_last_bytes:\n#endif\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* position to point at NUL + 4 */\n#endif\n\tb\t.Llast_bytes\t\t/* store the last bytes */\n\n\n.Lincongruent:\n\t/*\n\t * At this point dst is word aligned by src is not.  Read bytes\n\t * from src until it is read aligned.\n\t */\n\tand\tr3, r1, #3\t\t/* extract misalignment */\n\tmov\tr9, r3, lsl #3\t\t/* calculate discard shift */\n\trsb\tr8, r9, #32\t\t/* calculate insertion shift */\n#if defined(STRLCPY)\n\tadd\tr6, r6, #3\t\t/* compensate for word post-inc */\n#endif\n\tbic\tr1, r1, #3\t\t/* word align src */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:6", "text": ".Lcongruent_last_bytes:\n#endif\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* position to point at NUL + 4 */\n#endif\n\tb\t.Llast_bytes\t\t/* store the last bytes */\n\n\n.Lincongruent:\n\t/*\n\t * At this point dst is word aligned by src is not.  Read bytes\n\t * from src until it is read aligned.\n\t */\n\tand\tr3, r1, #3\t\t/* extract misalignment */\n\tmov\tr9, r3, lsl #3\t\t/* calculate discard shift */\n\trsb\tr8, r9, #32\t\t/* calculate insertion shift */\n#if defined(STRLCPY)\n\tadd\tr6, r6, #3\t\t/* compensate for word post-inc */\n#endif\n\tbic\tr1, r1, #3\t\t/* word align src */\n\tldr\tr5, [r1], #4\t\t/* load word frm src */\n\tmov\tr4, r5, lslo r9\t\t/* discard lo bytes from src */\n\ttst\tr4, #BYTE0\t\t/* does byte 0 contain a NUL? */\n#if defined(STRNCPY)\n\tbeq\t.Lend_of_string\t\t/*   yes, zero fill rest of string */\n#else\n\tmoveq\tr3, r9\t\t\t/*   yes, set offset */\n\tbeq\t.Lincongruent_end_of_string /*   yes, deal with the last bytes */\n#endif\n\t/*\n\t * To make our test for NULs below do not generate false positives,\n\t * fill the bytes in the word we don't want to match with all 1s.\n\t */\n\tmvn\tr3, #0\t\t\t/* create a mask */\n\tmov\tr3, r3, lslo r8\t\t/* zero out bytes being kept */\n\torr\tr5, r5, r3\t\t/* merge src and mask */\n#ifdef _ARM_ARCH_6\n\tuqadd8\tr3, r5, r7\t\t/* NUL detection magic happens */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lincongruent_mainloop_load /*   yes, no NUL encountered! */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ wants BE input */\n#endif\n\tclz\tr3, r3\t\t\t/* count leading zeros */\n#else\n\t/*\n\t * We already tested for byte 0 above so we don't need to it again.\n\t */\n\tmov\tr3, #24\t\t\t/* assume NUL is in byte 3 */\n\ttst\tr5, #BYTE1\t\t/* did we find a NUL in byte 1? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decrement byte position */\n\ttstne\tr5, #BYTE2\t\t/*   no, did we find a NUL in byte 2? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decrement byte position */\n\ttstne\tr5, #BYTE3\t\t/*   no, did we find a NUL in byte 3? */\n\tbne\t.Lincongruent_mainloop_load /*   no, no NUL encountered! */\n#endif\n\tmov\tr5, r4\t\t\t/* discard already dealt with bytes */\n.Lincongruent_end_of_string:\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* then add offset to NUL */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:7", "text": "#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ wants BE input */\n#endif\n\tclz\tr3, r3\t\t\t/* count leading zeros */\n#else\n\t/*\n\t * We already tested for byte 0 above so we don't need to it again.\n\t */\n\tmov\tr3, #24\t\t\t/* assume NUL is in byte 3 */\n\ttst\tr5, #BYTE1\t\t/* did we find a NUL in byte 1? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decrement byte position */\n\ttstne\tr5, #BYTE2\t\t/*   no, did we find a NUL in byte 2? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decrement byte position */\n\ttstne\tr5, #BYTE3\t\t/*   no, did we find a NUL in byte 3? */\n\tbne\t.Lincongruent_mainloop_load /*   no, no NUL encountered! */\n#endif\n\tmov\tr5, r4\t\t\t/* discard already dealt with bytes */\n.Lincongruent_end_of_string:\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* then add offset to NUL */\n#endif\n\tsub\tr3, r3, r9\t\t/* adjust NUL offset */\n\tb\t.Llast_bytes\t\t/* NUL encountered! finish up */\n\n#if defined(STRLCPY) || defined(STRNCPY)\n.Lincongruent_no_more_room:\n\tmov\tr5, r4\t\t\t/* move data to be stored to r5 */\n\tb\t.Lno_more_room\t\t/* fill remaining space */\n#endif /* STRLCPY || STRNCPY */\n\n\t/*\n\t * At this point both dst and src are word aligned and r4 contains\n\t * partial contents from src.\n\t */\n.Lincongruent_mainloop:\n\torr\tr4, r4, r5, lshi r8\t/* put new src data into dst word */\n#if defined(STRLCPY) || defined(STRNCPY)\n\tsubs\tr2, r2, #4\t\t/* subtract 4 from count */\n\tbmi\t.Lincongruent_no_more_room /*   count < 0? dst will be full */\n#endif\n\tstr\tr4, [r0], #4\t\t/* store word in dst */\n#if defined(STRLCPY)\n\tbeq\t.Lno_more_room\t\t/*   space left is 0? stop copy */\n#endif\n#if defined(STRNCPY)\n\tbeq\t.Ldst_full_word_aligned\t/*   space left is 0? stop copy */\n#endif\n\tmov\tr4, r5, lslo r9\t\t/* move rest of src into dst word */\n.Lincongruent_mainloop_load:\n\tldr\tr5, [r1], #4\t\t/* read src */\n#ifdef _ARM_ARCH_6\n\tuqadd8\tr3, r5, r7\t\t/* magic happens here */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lincongruent_mainloop\t/*   yes, no NUL encountered! */\n\t/*\n\t * fall into this since we encountered a NULL.  At this point we have\n\t * from 1-5 bytes (excluding trailing NUL) to write.\n\t */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ works on BE data */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:8", "text": "str\tr4, [r0], #4\t\t/* store word in dst */\n#if defined(STRLCPY)\n\tbeq\t.Lno_more_room\t\t/*   space left is 0? stop copy */\n#endif\n#if defined(STRNCPY)\n\tbeq\t.Ldst_full_word_aligned\t/*   space left is 0? stop copy */\n#endif\n\tmov\tr4, r5, lslo r9\t\t/* move rest of src into dst word */\n.Lincongruent_mainloop_load:\n\tldr\tr5, [r1], #4\t\t/* read src */\n#ifdef _ARM_ARCH_6\n\tuqadd8\tr3, r5, r7\t\t/* magic happens here */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lincongruent_mainloop\t/*   yes, no NUL encountered! */\n\t/*\n\t * fall into this since we encountered a NULL.  At this point we have\n\t * from 1-5 bytes (excluding trailing NUL) to write.\n\t */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ works on BE data */\n#endif\n\tclz\tr3, r3\t\t\t/* count leading zeroes */\n#else\n\ttst\tr5, #BYTE0\t\t/* does byte 0 contain a NUL? */\n\ttstne\tr5, #BYTE1\t\t/*   no, does byte 1 contain a NUL? */\n\ttstne\tr5, #BYTE2\t\t/*   no, does byte 2 contain a NUL? */\n\ttstne\tr5, #BYTE3\t\t/*   no, does byte 3 contain a NUL? */\n\tbne\t.Lincongruent_mainloop\t/*   no, no NUL encountered! */\n\t/*\n\t * fall into this since we encountered a NULL.  At this point we have\n\t * from 1-5 bytes (excluding trailing NUL) to write.\n\t */\n\tmov\tr3, #0\t\t\t/* assume a NUL is in byte 0 */\n\ttst\tr5, #BYTE0\t\t/* is there a NUL in byte 0? */\n\tbeq\t1f\t\t\t/*   yes, found a NUL! */\n\tmov\tr3, #8\t\t\t/* assume a NUL is in byte 1 */\n\ttst\tr5, #BYTE1\t\t/* is there a NUL in byte 0? */\n\tbeq\t1f\t\t\t/*   yes, found a NUL! */\n\ttst\tr5, #BYTE2\t\t/* is there a NUL in byte 2? */\n\tmoveq\tr3, #16\t\t\t/*   yes, mark its position */\n\tmovne\tr3, #24\t\t\t/*   no, it must be in byte 3 */\n1:\n#endif\n\torr\tr4, r4, r5, lshi r8\t/* merge new and old src words */\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* adjust src to point to NUL */\n#endif\n\tadd\tr3, r3, r8\t\t/* add remainder bytes worth */\n\tcmp\tr3, #32\t\t\t/* do we have at least one word to write? */\n\tmovlt\tr5, r4\t\t\t/*   no, move source bytes to expected reg */\n\tblt\t.Llast_bytes\t\t/*   no, deal with them */\n#if defined(STRLCPY)\n\tsubs\tr2, r2, #4\t\t/* subtract 4 from count */\n\tbpl\t1f\t\t\t/*   we have space for at least 4 */\n\t/*\n\t * Since the space just went minus, we don't have enough room to\n\t * write all 4 bytes.  In fact, the most we can write is 3 so just\n\t * just lie and say we have 3 bytes to write and discard the rest.\n\t */\n\tadd\tr2, r2, #4\t\t/* add 4 back */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:9", "text": "movne\tr3, #24\t\t\t/*   no, it must be in byte 3 */\n1:\n#endif\n\torr\tr4, r4, r5, lshi r8\t/* merge new and old src words */\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* adjust src to point to NUL */\n#endif\n\tadd\tr3, r3, r8\t\t/* add remainder bytes worth */\n\tcmp\tr3, #32\t\t\t/* do we have at least one word to write? */\n\tmovlt\tr5, r4\t\t\t/*   no, move source bytes to expected reg */\n\tblt\t.Llast_bytes\t\t/*   no, deal with them */\n#if defined(STRLCPY)\n\tsubs\tr2, r2, #4\t\t/* subtract 4 from count */\n\tbpl\t1f\t\t\t/*   we have space for at least 4 */\n\t/*\n\t * Since the space just went minus, we don't have enough room to\n\t * write all 4 bytes.  In fact, the most we can write is 3 so just\n\t * just lie and say we have 3 bytes to write and discard the rest.\n\t */\n\tadd\tr2, r2, #4\t\t/* add 4 back */\n\tmov\tr3, #24\t\t\t/* say we have 3 bytes */\n\tmov\tr5, r4\t\t\t/* discard the bytes we can't store */\n\tb\t.Llast_bytes\t\t/* and treat this as our last word */\n1:\n#elif defined(STRNCPY)\n\tsubs\tr2, r2, #4\t\t/* subtract 4 from count */\n\tbmi\t.Lincongruent_no_more_room /*   count < 0? dst will be full */\n#endif\n\tstr\tr4, [r0], #4\t\t/* store dst word */\n#if defined(STRNCPY)\n\tbeq\t.Ldst_full_word_aligned\t/*   space left is 0? stop copy */\n#endif\n#if defined(STRLCPY)\n\tbne\t1f\t\t\t/* we still have space remaining */\n\tstrb\tr2, [r0]\t\t/* write final NUL */\n\tb\t.Lend_of_string\t\t/* we are done */\n1:\n#endif\n\t/*\n\t * Subtract the 32 bits just written from the number of bits left\n\t * to write.  If 0 bits are left and not doing strncpy, just write\n\t * the trailing NUL and be done.\n\t */\n\tsubs\tr3, r3, #32\t\t/* we wrote one word */\n#if !defined(STRNCPY)\n\tbne\t1f\t\t\t/* no more data? */\n\tstrb\tr3, [r0]\t\t/* write final NUL */\n\tb\t.Lend_of_string\t\t/* we are done */\n1:\n#endif\n\t/*\n\t * At this point after writing 4 bytes, we have 0 or 1 bytes left to\n\t * write (excluding the trailing NUL).\n\t */\n\tmov\tr5, r5, lslo r9\t\t/* get remainder of src */\n\n\t/* fall into .Llast_bytes */\n\n#if !defined(STRLCPY)\n.Lcongruent_last_bytes:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:10", "text": "* to write.  If 0 bits are left and not doing strncpy, just write\n\t * the trailing NUL and be done.\n\t */\n\tsubs\tr3, r3, #32\t\t/* we wrote one word */\n#if !defined(STRNCPY)\n\tbne\t1f\t\t\t/* no more data? */\n\tstrb\tr3, [r0]\t\t/* write final NUL */\n\tb\t.Lend_of_string\t\t/* we are done */\n1:\n#endif\n\t/*\n\t * At this point after writing 4 bytes, we have 0 or 1 bytes left to\n\t * write (excluding the trailing NUL).\n\t */\n\tmov\tr5, r5, lslo r9\t\t/* get remainder of src */\n\n\t/* fall into .Llast_bytes */\n\n#if !defined(STRLCPY)\n.Lcongruent_last_bytes:\n#endif\n.Llast_bytes:\n\t/*\n\t * r5 contains the last word and is in host byte order.\n\t * r3 contains number of bits left to copy (0..31).\n\t * r1 should point to the NUL + 4.\n\t */\n\tbics\tip, r3, #7\t\t/* truncate bits, is result 0? */\n#if !defined(STRNCPY)\n\tbne\t1f\t\t\t/*   no, have to write some bytes */\n\tstrb\tip, [r0]\t\t/*   yes, write trailing NUL */\n\tb\t.Lend_of_string\t\t/*   yes, and we are the end */\n1:\n#endif\n#if defined(STRLCPY) || defined(STRNCPY)\n\tcmp\tr2, ip, lsr #3\t\t/* is there enough room? */\n\tmovlt\tip, r2, lsl #3\t\t/*   no, only fill remaining space */\n#endif\n\tmvn\tr3, #0\t\t\t/* create a mask */\n\tmov\tr3, r3, lshi ip\t\t/* clear leading bytes */\n\tbic\tr5, r5, r3\t\t/* clear trailing bytes */\n#if defined(STRNCPY)\n\tcmp\tr2, #4\t\t\t/* room for 4 bytes? */\n\tmovge\tip, #32\t\t\t/*   yes, we will write 4 bytes */\n\tbge\t2f\t\t\t/*   yes, and go do it */\n\tmvn\tr3, #0\t\t\t/* create a mask (again) */\n\tmov\tip, r2, lsl #3\t\t/* remaining space bytes -> bits */\n\tmov\tr3, r3, lshi ip\t\t/* clear remaining bytes */\n#elif defined(STRLCPY)\n\tcmp\tr2, #3\t\t\t/* do we have room for 3 bytes & NUL? */\n\tbge\t2f\t\t\t/*   yes, just clear out dst */\n\tmov\tr3, r3, lshi #8\t\t/* mask out trailing NUL */\n#else\n\tcmp\tip, #24\t\t\t/* are we writing 3 bytes & a NUL? */\n\tbge\t2f\t\t\t/*   yes, just overwrite dst */\n\tmov\tr3, r3, lshi #8\t\t/* mask out trailing NUL */\n#endif /* !STRNCPY */\n\tldr\tr4, [r0]\t\t/* fetch dst word */\n\tand\tr4, r4, r3\t\t/* preserve trailing bytes */\n\torr\tr5, r5, r4\t\t/* merge dst with src */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:11", "text": "bic\tr5, r5, r3\t\t/* clear trailing bytes */\n#if defined(STRNCPY)\n\tcmp\tr2, #4\t\t\t/* room for 4 bytes? */\n\tmovge\tip, #32\t\t\t/*   yes, we will write 4 bytes */\n\tbge\t2f\t\t\t/*   yes, and go do it */\n\tmvn\tr3, #0\t\t\t/* create a mask (again) */\n\tmov\tip, r2, lsl #3\t\t/* remaining space bytes -> bits */\n\tmov\tr3, r3, lshi ip\t\t/* clear remaining bytes */\n#elif defined(STRLCPY)\n\tcmp\tr2, #3\t\t\t/* do we have room for 3 bytes & NUL? */\n\tbge\t2f\t\t\t/*   yes, just clear out dst */\n\tmov\tr3, r3, lshi #8\t\t/* mask out trailing NUL */\n#else\n\tcmp\tip, #24\t\t\t/* are we writing 3 bytes & a NUL? */\n\tbge\t2f\t\t\t/*   yes, just overwrite dst */\n\tmov\tr3, r3, lshi #8\t\t/* mask out trailing NUL */\n#endif /* !STRNCPY */\n\tldr\tr4, [r0]\t\t/* fetch dst word */\n\tand\tr4, r4, r3\t\t/* preserve trailing bytes */\n\torr\tr5, r5, r4\t\t/* merge dst with src */\n2:\tstr\tr5, [r0], #4\t\t/* store last word */\n#if defined(STRNCPY)\n\tsubs\tr2, r2, ip, lsr #3\t/* subtract bytes cleared from count */\n\tbeq\t.Ldst_full_word_aligned\n#endif\n\tb\t.Lend_of_string\n\n#if defined(STRLCPY) || defined(STRNCPY)\n.Lno_more_room:\n#if defined(STRLCPY)\n\tcmp\tr2, #-1\t\t\t/* tried to write 3 bytes? */\n\tblt\t1f\t\t\t/*   less, partial word write */\n\tcmp\tr2, #0\t\t\t/* no space left? */\n\tstrbeq\tr2, [r0]\t\t/* write the final NUL */\n\tbicne\tr5, r5, #BYTE3\t\t/* clear trailing NUL */\n\tstrne\tr5, [r0]\t\t/* write last word */\n\tb\t.Ldst_full_word_aligned\t/* the dst buffer is full */\n1:\n#endif /* STRLCPY */\n\tadd\tr2, r2, #4\t\t/* restore remaining space */\n\tldr\tr4, [r0]\t\t/* load dst */\n\tmvn\tr3, #0\t\t\t/* create a mask */\n\tmov\tr2, r2, lsl #3\t\t/* bytes -> bits */\n\tmov\tr3, r3, lshi r2\t\t/* clear leading bytes */\n\tbic\tr5, r5, r3\t\t/* clear trailing bytes from src */\n#if defined(STRLCPY)\n\tmov\tr3, r3, lshi #8\t\t/* mask out trailing NUL */\n#endif /* STRLCPY */\n\tand\tr4, r4, r3\t\t/* preserve trailing bytes in dst */\n\torr\tr4, r4, r5\t\t/* merge src with dst */\n\tstr\tr4, [r0], #4\t\t/* write last word */\n\tb\t.Ldst_full_word_aligned\n#endif /* STRLCPY || STRNCPY */\n\n#if defined(STRLCPY)\n\t/*\n\t * Destination was filled (and NUL terminated).\n\t * All that's left is count the number of bytes left in src.\n\t */\n.Ldst_full:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:12", "text": "ldr\tr4, [r0]\t\t/* load dst */\n\tmvn\tr3, #0\t\t\t/* create a mask */\n\tmov\tr2, r2, lsl #3\t\t/* bytes -> bits */\n\tmov\tr3, r3, lshi r2\t\t/* clear leading bytes */\n\tbic\tr5, r5, r3\t\t/* clear trailing bytes from src */\n#if defined(STRLCPY)\n\tmov\tr3, r3, lshi #8\t\t/* mask out trailing NUL */\n#endif /* STRLCPY */\n\tand\tr4, r4, r3\t\t/* preserve trailing bytes in dst */\n\torr\tr4, r4, r5\t\t/* merge src with dst */\n\tstr\tr4, [r0], #4\t\t/* write last word */\n\tb\t.Ldst_full_word_aligned\n#endif /* STRLCPY || STRNCPY */\n\n#if defined(STRLCPY)\n\t/*\n\t * Destination was filled (and NUL terminated).\n\t * All that's left is count the number of bytes left in src.\n\t */\n.Ldst_full:\n1:\ttst\tr1, #3\t\t\t/* dst word aligned? */\n\tbeq\t2f\t\t\t/*   yes, so do it word by word */\n\tldrb\tr5, [r1], #1\t\t/* load next byte */\n\tteq\tr5, #0\t\t\t/* is it a NUL? */\n\tbne\t1b\t\t\t/*   no, check alignment */\n\tb\t.Lend_of_string\t\t/* and return */\n2:\tadd\tr6, r6, #3\t\t/* compensate for post-inc */\n.Ldst_full_word_aligned:\n3:\tldr\tr5, [r1], #4\t\t/* load word from src */\n#ifdef _ARM_ARCH_6\n\tuqadd8\tr5, r5, r7\t\t/* perform NUL magic */\n\tmvns\tr5, r5\t\t\t/* complement all 0s? */\n\tbeq\t3b\t\t\t/*   yes, no NUL so get next word */\n#else\n\ttst\tr5, #BYTE0\t\t/* does byte 0 contain a NUL? */\n\ttstne\tr5, #BYTE1\t\t/*   no, does byte 1 contain a NUL? */\n\ttstne\tr5, #BYTE2\t\t/*   no, does byte 2 contain a NUL? */\n\ttstne\tr5, #BYTE3\t\t/*   no, does byte 3 contain a NUL? */\n\tbne\t3b\t\t\t/*   no, no NUL encountered! */\n#endif\n#ifdef _ARM_ARCH_6\n#ifdef __ARMEL__\n\trev\tr5, r5\t\t\t/* CLZ needs BE data */\n#endif\n\tclz\tr5, r5\t\t\t/* count leading zeros */\n\tadd\tr1, r1, r5, lsr #3\t/* add offset to NUL to src pointer */\n#else\n\ttst\tr5, #BYTE0\t\t/* is there a NUL in byte 0? */\n\tbeq\t4f\t\t\t/*   yes, don't check any further */\n\tadd\tr1, r1, #1\t\t/*   no, advance src pointer by 1 */\n\ttst\tr5, #BYTE1\t\t/* is there a NUL in byte 1? */\n\tbeq\t4f\t\t\t/*   yes, don't check any further */\n\tadd\tr1, r1, #1\t\t/*   no, advance src pointer by 1 */\n\ttst\tr5, #BYTE2\t\t/* is there a NUL in byte 2? */\n\taddne\tr1, r1, #1\t\t/*   no, there must be in byte 3 */\n4:\n#endif /* _ARM_ARCH_6 */\n.Lend_of_string:\n\tsub\tr0, r1, r6\t\t/* subtract start from finish */\n\tpop\t{r4-r9}\t\t\t/* restore registers */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:13", "text": "#ifdef _ARM_ARCH_6\n#ifdef __ARMEL__\n\trev\tr5, r5\t\t\t/* CLZ needs BE data */\n#endif\n\tclz\tr5, r5\t\t\t/* count leading zeros */\n\tadd\tr1, r1, r5, lsr #3\t/* add offset to NUL to src pointer */\n#else\n\ttst\tr5, #BYTE0\t\t/* is there a NUL in byte 0? */\n\tbeq\t4f\t\t\t/*   yes, don't check any further */\n\tadd\tr1, r1, #1\t\t/*   no, advance src pointer by 1 */\n\ttst\tr5, #BYTE1\t\t/* is there a NUL in byte 1? */\n\tbeq\t4f\t\t\t/*   yes, don't check any further */\n\tadd\tr1, r1, #1\t\t/*   no, advance src pointer by 1 */\n\ttst\tr5, #BYTE2\t\t/* is there a NUL in byte 2? */\n\taddne\tr1, r1, #1\t\t/*   no, there must be in byte 3 */\n4:\n#endif /* _ARM_ARCH_6 */\n.Lend_of_string:\n\tsub\tr0, r1, r6\t\t/* subtract start from finish */\n\tpop\t{r4-r9}\t\t\t/* restore registers */\n\tRET\n#elif defined(STRNCPY)\n.Lend_of_string:\n\tteq\tr2, #0\t\t\t/* any bytes left to zero? */\n\tbeq\t3f \t\t\t/*   no, just return. */\n\tmov\tr1, #0\t\t\t/*   yes, prepare to zero */\n\tcmp\tr2, #16\t\t\t/* some, but not a lot? */\n\tble\t1f\n\tmov\tr4, lr\t\t\t/* preserve lr */\n\tbl\tPLT_SYM(_C_LABEL(memset)) /*   yes, and let memset do it */\n\tmov\tlr, r4\t\t\t/* restore lr */\n\tb\t3f\t\t\t/* return */\n1:\tadd\tip, r0, r2\t\t/* calculate stopping point */\n2:\tstrb\tr1, [r0], #1\t\t/* clear a byte */\n\tcmp\tr0, ip\t\t\t/* done? */\n\tblt\t2b\t\t\t/*   no, clear next byte */\n3:\tmov\tr0, r6\t\t\t/* restore dst pointer */\n\tpop\t{r4-r9}\t\t\t/* restore registers */\n\tRET\n.Ldst_full:\n.Ldst_full_word_aligned:\n\t/*\n\t * Destination was filled (but not NUL terminated).\n\t * All that's left is return the start of dst\n\t */\n\tmov\tr0, r6\t\t\t/* restore dst pointer */\n\tpop\t{r4-r9}\t\t\t/* restore registers */\n\tRET\n#else\n.Lend_of_string:\n\tmov\tr0, r6\t\t\t/* restore dst pointer */\n\tpop\t{r4-r9}\t\t\t/* restore registers */\n\tRET\n#endif\nEND(FUNCNAME)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 481, "line_end": 535}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:14", "text": ".Ldst_full_word_aligned:\n\t/*\n\t * Destination was filled (but not NUL terminated).\n\t * All that's left is return the start of dst\n\t */\n\tmov\tr0, r6\t\t\t/* restore dst pointer */\n\tpop\t{r4-r9}\t\t\t/* restore registers */\n\tRET\n#else\n.Lend_of_string:\n\tmov\tr0, r6\t\t\t/* restore dst pointer */\n\tpop\t{r4-r9}\t\t\t/* restore registers */\n\tRET\n#endif\nEND(FUNCNAME)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 521, "line_end": 535}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:6", "text": ".Lcongruent_last_bytes:\n#endif\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* position to point at NUL + 4 */\n#endif\n\tb\t.Llast_bytes\t\t/* store the last bytes */\n\n\n.Lincongruent:\n\t/*\n\t * At this point dst is word aligned by src is not.  Read bytes\n\t * from src until it is read aligned.\n\t */\n\tand\tr3, r1, #3\t\t/* extract misalignment */\n\tmov\tr9, r3, lsl #3\t\t/* calculate discard shift */\n\trsb\tr8, r9, #32\t\t/* calculate insertion shift */\n#if defined(STRLCPY)\n\tadd\tr6, r6, #3\t\t/* compensate for word post-inc */\n#endif\n\tbic\tr1, r1, #3\t\t/* word align src */\n\tldr\tr5, [r1], #4\t\t/* load word frm src */\n\tmov\tr4, r5, lslo r9\t\t/* discard lo bytes from src */\n\ttst\tr4, #BYTE0\t\t/* does byte 0 contain a NUL? */\n#if defined(STRNCPY)\n\tbeq\t.Lend_of_string\t\t/*   yes, zero fill rest of string */\n#else\n\tmoveq\tr3, r9\t\t\t/*   yes, set offset */\n\tbeq\t.Lincongruent_end_of_string /*   yes, deal with the last bytes */\n#endif\n\t/*\n\t * To make our test for NULs below do not generate false positives,\n\t * fill the bytes in the word we don't want to match with all 1s.\n\t */\n\tmvn\tr3, #0\t\t\t/* create a mask */\n\tmov\tr3, r3, lslo r8\t\t/* zero out bytes being kept */\n\torr\tr5, r5, r3\t\t/* merge src and mask */\n#ifdef _ARM_ARCH_6\n\tuqadd8\tr3, r5, r7\t\t/* NUL detection magic happens */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lincongruent_mainloop_load /*   yes, no NUL encountered! */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ wants BE input */\n#endif\n\tclz\tr3, r3\t\t\t/* count leading zeros */\n#else\n\t/*\n\t * We already tested for byte 0 above so we don't need to it again.\n\t */\n\tmov\tr3, #24\t\t\t/* assume NUL is in byte 3 */\n\ttst\tr5, #BYTE1\t\t/* did we find a NUL in byte 1? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decremnt byte position */\n\ttstne\tr5, #BYTE2\t\t/*   no, did we find a NUL in byte 2? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decremnt byte position */\n\ttstne\tr5, #BYTE3\t\t/*   no, did we find a NUL in byte 3? */\n\tbne\t.Lincongruent_mainloop_load /*   no, no NUL encountered! */\n#endif\n\tmov\tr5, r4\t\t\t/* discard already dealt with bytes */\n.Lincongruent_end_of_string:\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* then add offset to NUL */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_arm.S:7", "text": "#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ wants BE input */\n#endif\n\tclz\tr3, r3\t\t\t/* count leading zeros */\n#else\n\t/*\n\t * We already tested for byte 0 above so we don't need to it again.\n\t */\n\tmov\tr3, #24\t\t\t/* assume NUL is in byte 3 */\n\ttst\tr5, #BYTE1\t\t/* did we find a NUL in byte 1? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decremnt byte position */\n\ttstne\tr5, #BYTE2\t\t/*   no, did we find a NUL in byte 2? */\n\tsubeq\tr3, r3, #8\t\t/*   yes, decremnt byte position */\n\ttstne\tr5, #BYTE3\t\t/*   no, did we find a NUL in byte 3? */\n\tbne\t.Lincongruent_mainloop_load /*   no, no NUL encountered! */\n#endif\n\tmov\tr5, r4\t\t\t/* discard already dealt with bytes */\n.Lincongruent_end_of_string:\n#if defined(STRLCPY)\n\tadd\tr1, r1, r3, lsr #3\t/* then add offset to NUL */\n#endif\n\tsub\tr3, r3, r9\t\t/* adjust NUL offset */\n\tb\t.Llast_bytes\t\t/* NUL encountered! finish up */\n\n#if defined(STRLCPY) || defined(STRNCPY)\n.Lincongruent_no_more_room:\n\tmov\tr5, r4\t\t\t/* move data to be stored to r5 */\n\tb\t.Lno_more_room\t\t/* fill remaining space */\n#endif /* STRLCPY || STRNCPY */\n\n\t/*\n\t * At this point both dst and src are word aligned and r4 contains\n\t * partial contents from src.\n\t */\n.Lincongruent_mainloop:\n\torr\tr4, r4, r5, lshi r8\t/* put new src data into dst word */\n#if defined(STRLCPY) || defined(STRNCPY)\n\tsubs\tr2, r2, #4\t\t/* subtract 4 from count */\n\tbmi\t.Lincongruent_no_more_room /*   count < 0? dst will be full */\n#endif\n\tstr\tr4, [r0], #4\t\t/* store word in dst */\n#if defined(STRLCPY)\n\tbeq\t.Lno_more_room\t\t/*   space left is 0? stop copy */\n#endif\n#if defined(STRNCPY)\n\tbeq\t.Ldst_full_word_aligned\t/*   space left is 0? stop copy */\n#endif\n\tmov\tr4, r5, lslo r9\t\t/* move rest of src into dst word */\n.Lincongruent_mainloop_load:\n\tldr\tr5, [r1], #4\t\t/* read src */\n#ifdef _ARM_ARCH_6\n\tuqadd8\tr3, r5, r7\t\t/* magic happens here */\n\tmvns\tr3, r3\t\t\t/* is the complemented result 0? */\n\tbeq\t.Lincongruent_mainloop\t/*   yes, no NUL encountered! */\n\t/*\n\t * fall into this since we encountered a NULL.  At this point we have\n\t * from 1-5 bytes (excluding trailing NUL) to write.\n\t */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* CLZ works on BE data */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_arm.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/arm/string/strcpy_arm.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strcpy_naive.S,v 1.8 2017/01/14 04:54:42 christos Exp $\")\n\n#ifdef _LIBC\n#ifdef STRLCPY\nWEAK_ALIAS(strlcpy, _strlcpy)\n#define strlcpy _strlcpy\n#endif\n#endif\n\n/*\n * These are \"naive\" versions of the str*cpy routines designed to be simple\n * and small.\n */\n\n#if defined(STRLCPY)\n/* LINTSTUB: size_t strlcpy(char *, const char *, size_t) */\nENTRY(strlcpy)\n\tadd\tip, r1, #1\t\t/* save src pointer (+ NUL) */\n\tsubs\tr2, r2, #1\t\t/* make sure there's room for a NUL */\n\tblt\t3f\t\t\t/*   no room, do the strlen */\n\tadd\tr2, r2, r0\t\t/* get end of dst */\n1:\tcmp\tr0, r2\t\t\t/* room for another char? */\n\tbeq\t2f\t\t\t/*   no, write NUL and do the strlen */\n\tldrb\tr3, [r1], #1\t\t/* read a byte */\n\tstrb\tr3, [r0], #1\t\t/* write a byte */\n\tteq\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, do next byte */\n\tb\t4f\t\t\t/*   yes, end of string, so return */\n2:\tmov\tr3, #0\t\t\t/* NUL */\n\tstrb\tr3, [r0]\t\t/* write to end of string */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_naive.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_naive.S:2", "text": "* These are \"naive\" versions of the str*cpy routines designed to be simple\n * and small.\n */\n\n#if defined(STRLCPY)\n/* LINTSTUB: size_t strlcpy(char *, const char *, size_t) */\nENTRY(strlcpy)\n\tadd\tip, r1, #1\t\t/* save src pointer (+ NUL) */\n\tsubs\tr2, r2, #1\t\t/* make sure there's room for a NUL */\n\tblt\t3f\t\t\t/*   no room, do the strlen */\n\tadd\tr2, r2, r0\t\t/* get end of dst */\n1:\tcmp\tr0, r2\t\t\t/* room for another char? */\n\tbeq\t2f\t\t\t/*   no, write NUL and do the strlen */\n\tldrb\tr3, [r1], #1\t\t/* read a byte */\n\tstrb\tr3, [r0], #1\t\t/* write a byte */\n\tteq\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, do next byte */\n\tb\t4f\t\t\t/*   yes, end of string, so return */\n2:\tmov\tr3, #0\t\t\t/* NUL */\n\tstrb\tr3, [r0]\t\t/* write to end of string */\n3:\tldrb\tr3, [r1], #1\t\t/* read a byte */\n\tteq\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t3b\t\t\t/*   no, get next byte */\n4:\tsub\tr0, r1, ip \t\t/* return length of src string */\n\tRET\nEND(strlcpy)\n#elif defined(STRNCPY)\n/* LINTSTUB: char * strncpy(char *, const char *, size_t) */\nENTRY(strncpy)\n\tmov\tip, r0\t\t\t/* we want to preserve r0 */\n\tadd\tr2, r2, r0\t\t/* get end of dst buffer */\n1:\tcmp\tip, r2\t\t\t/* are at the end of dst already? */\n\tRETc(eq)\t\t\t/*   yes, just return. */\n\tldrb\tr3, [r1], #1\t\t/* read a byte */\n\tstrb\tr3, [ip], #1\t\t/* write a byte */\n\tteq\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n2:\tcmp\tip, r2\t\t\t/* are at the end of dst already? */\n\tstrblt\tr3, [ip], #1\t\t/*   no, write a NUL */\n\tblt\t2b\t\t\t/*       until dst is filled */\n3:\tRET\t\t\t\t/* return dst pointer */\nEND(strncpy)\n#else\n/* LINTSTUB: char * strcpy(char *, const char *) */\nENTRY(strcpy)\n\tmov\tip, r0\t\t\t/* we want to preserve r0 */\n1:\tldrb\tr3, [r1], #1\t\t/* read a byte */\n\tstrb\tr3, [ip], #1\t\t/* write a byte */\n\tteq\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n\tRET\t\t\t\t/* return dst pointer */\nEND(strcpy)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_naive.S", "line_start": 41, "line_end": 93}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_naive.S:3", "text": "3:\tRET\t\t\t\t/* return dst pointer */\nEND(strncpy)\n#else\n/* LINTSTUB: char * strcpy(char *, const char *) */\nENTRY(strcpy)\n\tmov\tip, r0\t\t\t/* we want to preserve r0 */\n1:\tldrb\tr3, [r1], #1\t\t/* read a byte */\n\tstrb\tr3, [ip], #1\t\t/* write a byte */\n\tteq\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n\tRET\t\t\t\t/* return dst pointer */\nEND(strcpy)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_naive.S", "line_start": 81, "line_end": 93}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_thumb.S:2", "text": "#endif\n#ifdef STRCPY\nWEAK_ALIAS(strcpy, _strcpy)\n#define strcpy _strcpy\n#endif\n#endif\n\n/*\n * These are \"naive\" versions of the str*cpy routines designed to be simple\n * and small.\n */\n\n#if defined(STRLCPY)\n/* LINTSTUB: size_t strlcpy(char *, const char *, size_t) */\nENTRY(strlcpy)\n\tadds\tr3, r1, #1\t\t/* save src pointer (+ NUL) */\n\tsubs\tr2, r2, #1\t\t/* make sure there's room for a NUL */\n\tblt\t3f\t\t\t/*   no room, do the strlen */\n\tadds\tr2, r2, r0\t\t/* get end of dst */\n\tsubs\tr0, r0, r1\t\t/* bias against r1 so one incr */\n1:\tcmp\tr0, r2\t\t\t/* room for another char? */\n\tbeq\t2f\t\t\t/*   no, write NUL and do the strlen */\n\tldrb\tr3, [r1]\t\t/* read a byte */\n\tstrb\tr3, [r0, r1]\t\t/* write a byte */\n\tadds\tr1, r1, #1\t\t/* advance to next byte */\n\tcmp\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, do next byte */\n\tb\t4f\t\t\t/*   yes, end of string, so return */\n2:\tmovs\tr3, #0\t\t\t/* NUL */\n\tstrb\tr3, [r0]\t\t/* write to end of string */\n3:\tldrb\tr3, [r1]\t\t/* read a byte */\n\tadds\tr1, r1, #1\t\t/* advance to next byte */\n\tcmp\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t3b\t\t\t/*   no, get next byte */\n4:\tsubs\tr0, r1, r3 \t\t/* return length of src string */\n\tRET\nEND(strlcpy)\n#elif defined(STRNCPY)\n/* LINTSTUB: char * strncpy(char *, const char *, size_t) */\nENTRY(strncpy)\n\tmov\tip, r0\t\t\t/* we want to preserve r0 */\n\tadds\tr2, r2, r0\t\t/* get end of dst buffer */\n\tsubs\tr1, r1, r0\t\t/* allows to only increment once */\n1:\tcmp\tr0, r2\t\t\t/* are at the end of dst already? */\n\tbeq\t3f\t\t\t/*   yes, just return. */\n\tldrb\tr3, [r1, r0]\t\t/* read a byte */\n\tstrb\tr3, [r0]\t\t/* write a byte */\n\tadds\tr0, r0, #1\t\t/* advance a byte */\n\tcmp\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n2:\tcmp\tr0, r2\t\t\t/* are at the end of dst already? */\n\tbeq\t3f\t\t\t/*   yes, exit loop\n\tstrb\tr3, [r0]\t\t/* write a NUL */\n\tadds\tr0, r0, #1\t\t/* advance a bytes */\n\tb\t2b\t\t\t/* until dst is filled */\n3:\tmov\tr0, ip\t\t\t/* return dst pointer */\n\tRET\nEND(strncpy)\n#else\n/* LINTSTUB: char * strcpy(char *, const char *) */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_thumb.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_thumb.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strcpy_thumb.S:3", "text": "mov\tip, r0\t\t\t/* we want to preserve r0 */\n\tadds\tr2, r2, r0\t\t/* get end of dst buffer */\n\tsubs\tr1, r1, r0\t\t/* allows to only increment once */\n1:\tcmp\tr0, r2\t\t\t/* are at the end of dst already? */\n\tbeq\t3f\t\t\t/*   yes, just return. */\n\tldrb\tr3, [r1, r0]\t\t/* read a byte */\n\tstrb\tr3, [r0]\t\t/* write a byte */\n\tadds\tr0, r0, #1\t\t/* advance a byte */\n\tcmp\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n2:\tcmp\tr0, r2\t\t\t/* are at the end of dst already? */\n\tbeq\t3f\t\t\t/*   yes, exit loop\n\tstrb\tr3, [r0]\t\t/* write a NUL */\n\tadds\tr0, r0, #1\t\t/* advance a bytes */\n\tb\t2b\t\t\t/* until dst is filled */\n3:\tmov\tr0, ip\t\t\t/* return dst pointer */\n\tRET\nEND(strncpy)\n#else\n/* LINTSTUB: char * strcpy(char *, const char *) */\nENTRY(strcpy)\n\tsubs\tr2, r0, r1\t\t/* we want to preserve r0 */\n1:\tldrb\tr3, [r1]\t\t/* read a byte */\n\tstrb\tr3, [r2, r1]\t\t/* write a byte */\n\tadds\tr1, r1, #1\t\t/* advance to next byte */\n\tcmp\tr3, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n\tRET\t\t\t\t/* return dst pointer */\nEND(strcpy)\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strcpy_thumb.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strcpy_thumb.S", "line_start": 81, "line_end": 110}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlcat_arm.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strlcat_arm.S,v 1.6 2014/05/06 16:02:11 joerg Exp $\")\n\n/* LINTSTUB: size_t strlcat(char *, const char *, size_t) */\nENTRY(strlcat)\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.fnstart\n# endif\n\t.cfi_startproc\n#endif\n\tpush\t{r4-r6, lr}\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r4-r6, lr}\n# endif\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset 6, -8\n\t.cfi_offset 5, -12\n\t.cfi_offset 4, -16\n#endif\n\tmov\tr4, r0\t\t\t/* save dst */\n\tmov\tr5, r1\t\t\t/* save src */\n\tmov\tr6, r2\t\t\t/* save siz */\n\n\tmov\tr1, r6\t\t\t/* get siz */\n\tbl\tPLT_SYM(strnlen)\t/* find length of dst (up to siz) */\n\n\tsubs\tr2, r6, r0\t\t/* get remaining space in dst */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlcat_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlcat_arm.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlcat_arm.S:2", "text": "#endif\n\tpush\t{r4-r6, lr}\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r4-r6, lr}\n# endif\n\t.cfi_def_cfa_offset 16\n\t.cfi_offset 14, -4\n\t.cfi_offset 6, -8\n\t.cfi_offset 5, -12\n\t.cfi_offset 4, -16\n#endif\n\tmov\tr4, r0\t\t\t/* save dst */\n\tmov\tr5, r1\t\t\t/* save src */\n\tmov\tr6, r2\t\t\t/* save siz */\n\n\tmov\tr1, r6\t\t\t/* get siz */\n\tbl\tPLT_SYM(strnlen)\t/* find length of dst (up to siz) */\n\n\tsubs\tr2, r6, r0\t\t/* get remaining space in dst */\n\tmov\tr1, r5\t\t\t/* restore src */\n\tmov\tr5, r0\t\t\t/* save remaining space */\n\tadds\tr0, r0, r4\t\t/* set start to end of dst */\n\tbl\tPLT_SYM(strlcpy)\t/* attempt to copy src */\n\tadds\tr0, r0, r5\t\t/* add remaining to strlcpy return */\n\tpop\t{r4-r6, pc}\t\t/* restore registers and return */\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n\t.cfi_endproc\n# if !defined(__ARM_DWARF_EH__)\n\t.fnend\n# endif\n#endif\nEND(strlcat)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlcat_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlcat_arm.S", "line_start": 41, "line_end": 73}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlcat_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strlcat_naive.S,v 1.3 2013/08/22 19:25:00 matt Exp $\")\n\n/* LINTSTUB: size_t strlcat(char *, const char *, size_t) */\nENTRY(strlcat)\n\tadds\tr3, r2, r0\t\t/* point to just end of dst */\n\tmov\tip, r0\t\t\t/* need to keep r0 for a while */\n1:\tcmp\tip, r3\t\t\t/* still within dst? */\n\tbeq\t3f\t\t\t/*   no, get length of src */\n\tldrb\tr2, [ip], #1\t\t/* load next byte */\n\tcmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, get next byte */\n\n\tsub\tr0, ip, r0\t\t/* get actual length of dst */\n\tsubs\tr0, r0, #1\t\t/* account for the trailing NUL */\n\tsubs\tr3, r3, #1\t\t/* back up to last byte in dst */\n\tsub\tip, ip, #1\t\t/* back up over the NUL */\n\n2:\tldrb\tr2, [r1], #1\t\t/* load next byte from append */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tr2, 5f\t\t\t/* was it a NUL? yes, end of append */\n#else\n\tcmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbeq\t5f\t\t\t/*   yes, end of append */\n#endif\n\tadds\tr0, r0, #1\t\t/* count another byte */\n\tcmp\tip, r3\t\t\t/* do we have enough room for it? */\n#ifdef __thumb__\n\tbge\t2b\n\tstrb\tr2, [ip], #1\t\t/*   yes, store it */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlcat_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlcat_naive.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlcat_naive.S:2", "text": "cmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbne\t1b\t\t\t/*   no, get next byte */\n\n\tsub\tr0, ip, r0\t\t/* get actual length of dst */\n\tsubs\tr0, r0, #1\t\t/* account for the trailing NUL */\n\tsubs\tr3, r3, #1\t\t/* back up to last byte in dst */\n\tsub\tip, ip, #1\t\t/* back up over the NUL */\n\n2:\tldrb\tr2, [r1], #1\t\t/* load next byte from append */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tr2, 5f\t\t\t/* was it a NUL? yes, end of append */\n#else\n\tcmp\tr2, #0\t\t\t/* was it a NUL? */\n\tbeq\t5f\t\t\t/*   yes, end of append */\n#endif\n\tadds\tr0, r0, #1\t\t/* count another byte */\n\tcmp\tip, r3\t\t\t/* do we have enough room for it? */\n#ifdef __thumb__\n\tbge\t2b\n\tstrb\tr2, [ip], #1\t\t/*   yes, store it */\n#else\n\tstrblt\tr2, [ip], #1\t\t/*   yes, store it */\n#endif\n\tb\t2b\t\t\t/* get next byte from append */\n\n3:\tsubs\tr0, r3, r0\t\t/* move size to return value */\n4:\tldrb\tr2, [r1], #1\t\t/* load next byte from append */\n#if defined(__thumb__) && defined(_ARM_ARCH_T2)\n\tcbz\tr2, 6f\t\t\t/* was it a NUL? yes, we're done */\n#else\n\tRETc(eq)\t\t\t/*   yes, we're done */\n#endif\n\tadds\tr0, r0, #1\t\t/* add one to return value */\n\tb\t4b\t\t\t/* get next byte from append */\n\n5:\tmovs\tr2, #0\t\t\t/* NUL */\n\tstrb\tr2, [ip]\t\t/* append final NUL */\n6:\tRET\t\t\t\t/* return */\nEND(strlcat)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlcat_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlcat_naive.S", "line_start": 41, "line_end": 79}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_arm.S:2", "text": "#define\tBYTE2\t0x00ff0000\n#define\tBYTE3\t0xff000000\n#else\n#define\tBYTE0\t0xff000000\n#define\tBYTE1\t0x00ff0000\n#define\tBYTE2\t0x0000ff00\n#define\tBYTE3\t0x000000ff\n#endif\n\n#ifdef STRNLEN\n#define\tFUNCNAME\tstrnlen\n#else\n#define\tFUNCNAME\tstrlen\n#endif\n\n\t.text\nENTRY(FUNCNAME)\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.fnstart\n# endif\n\t.cfi_startproc\n#endif\n#ifdef STRNLEN\n\tpush\t{r4,r5}\t\t\t/* save some registers */\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n# if !defined(__ARM_DWARF_EH__)\n\t.save\t{r4,r5}\n# endif\n\t.cfi_def_cfa_offset 8\n\t.cfi_offset 5, -4\n\t.cfi_offset 4, -8\n#endif\n\tadds\tr5, r0, r1\t\t/* get ptr to end of string */\n\tmov\tr4, r1\t\t\t/* save maxlen */\n#endif\n\tadds\tr2, r0, #4\t\t/* for the final post-inc */\n1:\ttst\tr0, #3\t\t\t/* test for word alignment */\n\tbeq\t.Lpre_main_loop\t\t/*   finally word aligned */\n#ifdef STRNLEN\n\tcmp\tr0, r5\t\t\t/* have we gone too far? */\n\tbeq\t.Lmaxed_out\t\t/*   yes, return maxlen */\n#endif\n\tldrb\tr3, [r0], #1\t\t/* load a byte */\n\tcmp\tr3, #0\t\t\t/* is it 0? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n\tsubs\tr2, r2, #3\t\t/* subtract (4 - the NUL) */\n\tsubs\tr0, r0, r2\t\t/* subtract start */\n#ifdef STRNLEN\n\tpop\t{r4, r5}\t\t/* restore registers */\n#endif\n\tRET\t\t\t\t/* return */\n.Lpre_main_loop:\n#if defined(_ARM_ARCH_7)\n\tmovw\tr1, #0xfefe\t\t/* magic constant; 254 in each byte */\n\tmovt\tr1, #0xfefe\t\t/* magic constant; 254 in each byte */\n#elif defined(_ARM_ARCH_6)\n\tmov\tr1, #0xfe\t\t/* put 254 in low byte */\n\torr\tr1, r1, r1, lsl #8\t/* move to next byte */\n\torr\tr1, r1, r1, lsl #16\t/* move to next halfword */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_arm.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_arm.S:3", "text": "cmp\tr0, r5\t\t\t/* have we gone too far? */\n\tbeq\t.Lmaxed_out\t\t/*   yes, return maxlen */\n#endif\n\tldrb\tr3, [r0], #1\t\t/* load a byte */\n\tcmp\tr3, #0\t\t\t/* is it 0? */\n\tbne\t1b\t\t\t/*   no, try next byte */\n\tsubs\tr2, r2, #3\t\t/* subtract (4 - the NUL) */\n\tsubs\tr0, r0, r2\t\t/* subtract start */\n#ifdef STRNLEN\n\tpop\t{r4, r5}\t\t/* restore registers */\n#endif\n\tRET\t\t\t\t/* return */\n.Lpre_main_loop:\n#if defined(_ARM_ARCH_7)\n\tmovw\tr1, #0xfefe\t\t/* magic constant; 254 in each byte */\n\tmovt\tr1, #0xfefe\t\t/* magic constant; 254 in each byte */\n#elif defined(_ARM_ARCH_6)\n\tmov\tr1, #0xfe\t\t/* put 254 in low byte */\n\torr\tr1, r1, r1, lsl #8\t/* move to next byte */\n\torr\tr1, r1, r1, lsl #16\t/* move to next halfword */\n#endif /* _ARM_ARCH_6 */\n.Lmain_loop:\n#ifdef STRNLEN\n\tcmp\tr0, r5\t\t\t/* gone too far? */\n\tbhs\t.Lmaxed_out\t\t/*   yes, return maxlen */\n#endif\n\tldr\tr3, [r0], #4\t\t/* load next word */\n#if defined(_ARM_ARCH_6)\n\t/*\n\t * Add 254 to each byte using the UQADD8 (unsigned saturating add 8)\n\t * instruction.  For every non-NUL byte, the result for that byte will\n\t * become 255.  For NUL, it will be 254.  When we complement the\n\t * result, if the result is non-0 then we must have encountered a NUL.\n\t */\n\tuqadd8\tr3, r3, r1\t\t/* magic happens here */\n\tmvns\tr3, r3\t\t\t/* is the complemented result non-0? */\n\tbeq\t.Lmain_loop\t\t/*    no, then we encountered no NULs */\n#else\n\t/*\n\t * No fancy shortcuts so just test each byte lane for a NUL.\n\t * (other tests for NULs in a word take more instructions/cycles).\n\t */\n\ttst\tr3, #BYTE0\t\t/* is this byte 0? */\n\ttstne\tr3, #BYTE1\t\t/*   no, is this byte 1? */\n\ttstne\tr3, #BYTE2\t\t/*   no, is this byte 2? */\n\ttstne\tr3, #BYTE3\t\t/*   no, is this byte 3? */\n\tbne\t.Lmain_loop\t\t/*   no, then get next word */\n#endif\n#if defined(_ARM_ARCH_6)\n\t/*\n\t * We encountered a NUL.  Find out where by doing a CLZ and then\n\t * shifting right by 3.  That will be the number of non-NUL bytes.\n\t */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* we want this in BE for the CLZ */\n#endif\n\tclz\tr3, r3\t\t\t/* count how many leading zeros */\n#ifdef __thumb__\n\tlsrs\tr3, r3, #3\n\tadds\tr0, r0, r3\t\t/* divide that by 8 and add to count */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_arm.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_arm.S:4", "text": "* (other tests for NULs in a word take more instructions/cycles).\n\t */\n\ttst\tr3, #BYTE0\t\t/* is this byte 0? */\n\ttstne\tr3, #BYTE1\t\t/*   no, is this byte 1? */\n\ttstne\tr3, #BYTE2\t\t/*   no, is this byte 2? */\n\ttstne\tr3, #BYTE3\t\t/*   no, is this byte 3? */\n\tbne\t.Lmain_loop\t\t/*   no, then get next word */\n#endif\n#if defined(_ARM_ARCH_6)\n\t/*\n\t * We encountered a NUL.  Find out where by doing a CLZ and then\n\t * shifting right by 3.  That will be the number of non-NUL bytes.\n\t */\n#ifdef __ARMEL__\n\trev\tr3, r3\t\t\t/* we want this in BE for the CLZ */\n#endif\n\tclz\tr3, r3\t\t\t/* count how many leading zeros */\n#ifdef __thumb__\n\tlsrs\tr3, r3, #3\n\tadds\tr0, r0, r3\t\t/* divide that by 8 and add to count */\n#else\n\tadd\tr0, r0, r3, lsr #3\t/* divide that by 8 and add to count */\n#endif\n#else\n\t/*\n\t * We encountered a NUL.\n\t */\n\ttst\tr3, #BYTE0\t\t/* 1st byte was NUL? */\n\tbeq\t1f\t\t\t/*   yes, done adding */\n\tadd\tr0, r0, #1\t\t/* we have one more non-NUL byte */\n\ttst\tr3, #BYTE1\t\t/* 2nd byte was NUL? */\n\tbeq\t1f\t\t\t/*   yes, done adding */\n\tadd\tr0, r0, #1\t\t/* we have one more non-NUL byte */\n\ttst\tr3, #BYTE2\t\t/* 3rd byte was NUL? */\n\taddne\tr0, r0, #1\t\t/* no, we have one more non-NUL byte */\n1:\n#endif /* _ARM_ARCH_6 */\n\t/*\n\t * r0 now points to 4 past the NUL due to the post-inc.  Subtract the\n\t * start of the string (which also has 4 added to it to compensate for\n\t * the post-inc.\n\t */\n\tsubs\tr0, r0, r2\t\t/* subtract start to get length */\n#ifdef STRNLEN\n\tcmp\tr0, r4\t\t\t/* is it larger than maxlen? */\n#ifdef __thumb__\n\tit\thi\n#endif\n\tmovhi\tr0, r4\t\t\t/*   yes, return maxlen */\n\tpop\t{r4, r5}\t\t/* restore registers */\n#endif\n\tRET\t\t\t\t/* return */\n\n#ifdef STRNLEN\n.Lmaxed_out:\n\tmov\tr0, r4\t\t\t/* return maxlen */\n\tpop\t{r4, r5}\t\t/* restore registers */\n\tRET\t\t\t\t/* return */\n#endif\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_arm.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_arm.S:5", "text": "* the post-inc.\n\t */\n\tsubs\tr0, r0, r2\t\t/* subtract start to get length */\n#ifdef STRNLEN\n\tcmp\tr0, r4\t\t\t/* is it larger than maxlen? */\n#ifdef __thumb__\n\tit\thi\n#endif\n\tmovhi\tr0, r4\t\t\t/*   yes, return maxlen */\n\tpop\t{r4, r5}\t\t/* restore registers */\n#endif\n\tRET\t\t\t\t/* return */\n\n#ifdef STRNLEN\n.Lmaxed_out:\n\tmov\tr0, r4\t\t\t/* return maxlen */\n\tpop\t{r4, r5}\t\t/* restore registers */\n\tRET\t\t\t\t/* return */\n#endif\n#if defined(__ARM_EABI__) && defined(__UNWIND_TABLES__)\n\t.cfi_endproc\n# if !defined(__ARM_DWARF_EH__)\n\t.fnend\n# endif\n#endif\nEND(FUNCNAME)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_arm.S", "line_start": 161, "line_end": 186}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strlen_naive.S,v 1.9 2022/12/03 11:30:24 skrll Exp $\")\n\n#ifdef STRNLEN\n/* LINTSTUB: size_t strnlen(const char *, size_t) */\nENTRY(strnlen)\n\tadds\tr3, r0, #1\t/* start of src + NUL */\n#ifdef __thumb__\n\tadds\tr2, r0, r1\t/* &src[maxlen] */\n\tmov\tip, r2\n#else\n\tadds\tip, r0, r1\t/* &src[maxlen] */\n#endif\n1:\tcmp\tr0, ip\t\t/* is this the end of string? */\n\tbeq\t2f\t\t/*   yes it is */\n#ifdef __thumb__\n\tldrb\tr2, [r0]\t/* read a byte */\n\tadds\tr0, r0, #1\t/* advance to next byte */\n#else\n\tldrb\tr2, [r0], #1\t/* read a byte */\n#endif\n\tcmp\tr2, #0\t\t/* is it a NUL? */\n\tbne\t1b\t\t/*   no, get next byte */\n\tsubs\tr0, r0, r3\t/* get difference between start and end */\n\tRET\t\t\t/* return */\n2:\tmov\tr0, r1\t\t/* get maxlen */\n\tRET\t\t\t/* return */\nEND(strnlen)\n#else /* STRNLEN */\n/* LINTSTUB: size_t strlen(const char *) */\nENTRY(strlen)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_naive.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_naive.S:2", "text": "adds\tip, r0, r1\t/* &src[maxlen] */\n#endif\n1:\tcmp\tr0, ip\t\t/* is this the end of string? */\n\tbeq\t2f\t\t/*   yes it is */\n#ifdef __thumb__\n\tldrb\tr2, [r0]\t/* read a byte */\n\tadds\tr0, r0, #1\t/* advance to next byte */\n#else\n\tldrb\tr2, [r0], #1\t/* read a byte */\n#endif\n\tcmp\tr2, #0\t\t/* is it a NUL? */\n\tbne\t1b\t\t/*   no, get next byte */\n\tsubs\tr0, r0, r3\t/* get difference between start and end */\n\tRET\t\t\t/* return */\n2:\tmov\tr0, r1\t\t/* get maxlen */\n\tRET\t\t\t/* return */\nEND(strnlen)\n#else /* STRNLEN */\n/* LINTSTUB: size_t strlen(const char *) */\nENTRY(strlen)\n\tadds\tr3, r0, #1\t/* start of src + NUL */\n1:\n#ifdef __thumb__\n\tldrb\tr2, [r0]\t/* read a byte */\n\tadds\tr0, r0, #1\n#else\n\tldrb\tr2, [r0], #1\t/* read a byte */\n#endif\n\tcmp\tr2, #0\t\t/* is it a NUL? */\n\tbne\t1b\t\t/*   no, get next byte */\n\tsubs\tr0, r0, r3\t/* return difference between start and end */\n\tRET\nEND(strlen)\n#endif /* !STRNLEN */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_naive.S", "line_start": 41, "line_end": 74}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_neon.S:1", "text": "/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strlen_neon.S,v 1.4 2023/01/19 18:03:03 mlelstv Exp $\")\n\t.text\n\nENTRY(strlen)\n\tmov\tip, r0\t\t/* we use r0 for return value */\n\tands\tr1, r0, #15\t/* verify qword alignment */\n\tneg\tr0, r1\t\t/* subtract misalignment from count */\n\tveor\tq2, q2, q2\t/* clear mask */\n\tmov\tr3, #7\t\t/* NBBY - 1 */\n\tvdup.32\tq3, r3\t\t/* dup throughout q3 */\n\tmovw\tr3, #0x0404\t/* magic since there are 4 bytes per U32 */\n\torr\tr3, r3, lsl #16\t/* copy to upper 16 bits */\n\tbeq\t.Lmain_loop\n\tveor\tq0, q0, q0\t/* clear q0 */\n\tvmvn\tq2, q2\t\t/* set all 16 bytes of mask to all 1s */\n\tbic\tip, ip, #15\t/* qword align string address */\n\tlsl\tr1, r1, #3\t/* convert to bits */\n\tcmp\tr1, #64\n\trsbhi\tr1, r1, #128\t/*   > 64? BE so we are shifting LSW right */\n\tmovhi\tr2, #0\t\t/*   > 64? leave MSW alone */\n\trsbls\tr2, r1, #64\t/*   <=64? BE so we are shifting MSW right */\n\tmovls\tr1, #64\t\t/*   <=64? clear LSW */\n\tvmov\td0, r1, r2\t/* set shifts for lower and upper halves */\n\tvmovl.u32 q0, d0\t/* 2 U32 -> 2 U64 */\n\tvshl.u64 q2, q2, q0\t/* shift */\n\t/*\n\t * Main loop.  Load 16 bytes, do a clz,\n\t */\n.Lmain_loop:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_neon.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strlen_neon.S:2", "text": "vdup.32\tq3, r3\t\t/* dup throughout q3 */\n\tmovw\tr3, #0x0404\t/* magic since there are 4 bytes per U32 */\n\torr\tr3, r3, lsl #16\t/* copy to upper 16 bits */\n\tbeq\t.Lmain_loop\n\tveor\tq0, q0, q0\t/* clear q0 */\n\tvmvn\tq2, q2\t\t/* set all 16 bytes of mask to all 1s */\n\tbic\tip, ip, #15\t/* qword align string address */\n\tlsl\tr1, r1, #3\t/* convert to bits */\n\tcmp\tr1, #64\n\trsbhi\tr1, r1, #128\t/*   > 64? BE so we are shifting LSW right */\n\tmovhi\tr2, #0\t\t/*   > 64? leave MSW alone */\n\trsbls\tr2, r1, #64\t/*   <=64? BE so we are shifting MSW right */\n\tmovls\tr1, #64\t\t/*   <=64? clear LSW */\n\tvmov\td0, r1, r2\t/* set shifts for lower and upper halves */\n\tvmovl.u32 q0, d0\t/* 2 U32 -> 2 U64 */\n\tvshl.u64 q2, q2, q0\t/* shift */\n\t/*\n\t * Main loop.  Load 16 bytes, do a clz,\n\t */\n.Lmain_loop:\n\tvld1.64 {d0, d1}, [ip:128]!\t/* load qword */\n#ifdef __ARMEL__\n\tvrev64.8 q0, q0\t\t/* convert to BE for clz */\n#endif\n\tvswp\td0, d1\t\t/* swap dwords to get BE qword */\n\tvorr\tq0, q0, q2\t/* or \"in\" leading byte mask */\n\tveor\tq2, q2, q2\t/* clear leading byte mask */\n\tvceq.i8\tq1, q0, #0\t/* test each byte for 0 */\n\t/* Why couldn't there be a 64-bit CLZ? */\n\tvclz.u32 q1, q1\t\t/* count leading zeroes to find the 0 byte */\n\tvadd.u32 q1, q1, q3\t/* round up to byte bounary */\n\tvshr.u32 q1, q1, #3\t/* convert to bytes */\n\tvmovn.u32 d0, q1\t/* 4 I32 -> 4 I16 */\n\tvmovn.u16 d0, q0\t/* 4 I16 -> 4  I8 */\n\tvmov\tr2, s0\t\t/* get counts */\n\teors\tr2, r2, r3\t/* xor with 0x04040404 */\n\taddeq\tr0, #16\t\t/*   0?  no NULs */\n\tbeq\t.Lmain_loop\t/* get next qword */\n\tclz\tip, r2\t\t/* count leading zeros */\n\tmov\tr2, r2, lsl ip\t/* discard them */\n\tmov\tip, ip, lsr #3\t/* divide leading zeroes by 8 */\n\tadd\tr0, r0, ip, lsl #2 /* multiple by 4 and add to count */\n\tand\tr2, r2, #(3 << 29)\n\tadd\tr0, r0, r2, lsr #29\n\tRET\t\t\t/* and return. */\nEND(strlen)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strlen_neon.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strlen_neon.S", "line_start": 41, "line_end": 86}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strncmp.S:1", "text": "/*      $NetBSD: strncmp.S,v 1.2 2013/08/19 00:57:25 matt Exp $ */\n\n/*\n * Copyright (c) 2002 ARM Ltd\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the company may not be used to endorse or promote\n *    products derived from this software without specific prior written\n *    permission.\n *\n * THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\n * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strncmp.S,v 1.2 2013/08/19 00:57:25 matt Exp $\")\n\nENTRY(strncmp)\n/* if ((len - 1) < 0) return 0 */\n\tsubs\tr2, r2, #1\n#ifdef __thumb__\n\tbmi\t5f\n#else\n\tmovmi\tr0, #0\n\tRETc(mi)\n#endif\n\n/* ip == last src address to compare */\n#ifdef __thumb__\n\tadds\tr3, r0, r2\n\tmov\tip, r3\n\tsubs\tr1, r1, r0\n#else\n\tadd\tip, r0, r2\n#endif\n1:\n#ifdef __thumb__\n\tldrb\tr2, [r0]\n\tldrb\tr3, [r1, r0]\n\tadds\tr0, r0, #1\n\tcmp\tip, r0\t\t/* exhausted length? */\n\tbcc\t4f\t\t/*   yes, we're done */\n\tcmp\tr2, #1\t\t/* NUL? */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strncmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strncmp.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strncmp.S:2", "text": "movmi\tr0, #0\n\tRETc(mi)\n#endif\n\n/* ip == last src address to compare */\n#ifdef __thumb__\n\tadds\tr3, r0, r2\n\tmov\tip, r3\n\tsubs\tr1, r1, r0\n#else\n\tadd\tip, r0, r2\n#endif\n1:\n#ifdef __thumb__\n\tldrb\tr2, [r0]\n\tldrb\tr3, [r1, r0]\n\tadds\tr0, r0, #1\n\tcmp\tip, r0\t\t/* exhausted length? */\n\tbcc\t4f\t\t/*   yes, we're done */\n\tcmp\tr2, #1\t\t/* NUL? */\n\tbcc\t4f\t\t/*   yes, we're done */\n\tcmp\tr2, r3\t\t/* different? */\n#else\n\tldrb\tr2, [r0], #1\n\tldrb\tr3, [r1], #1\n\tcmp\tip, r0\n\tcmpcs\tr2, #1\n\tcmpcs\tr2, r3\n#endif\n\tbeq\t1b\n4:\tsubs\tr0, r2, r3\n\tRET\n#ifdef __thumb__\n5:\tmovs\tr0, #0\n\tRET\n#endif\nEND(strncmp)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strncmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strncmp.S", "line_start": 41, "line_end": 77}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strrchr_arm.S:2", "text": "#else\n#define\tBYTE0\t0xff000000\n#define\tBYTE1\t0x00ff0000\n#define\tBYTE2\t0x0000ff00\n#define\tBYTE3\t0x000000ff\n#define\tlshi\tlsr\n#define\tlshis\tlsrs\n#endif\n\nENTRY(strrchr)\n\tands\tr2, r1, #0xff\t\t/* is the byte value NUL? */\n\tbne\t1f\t\t\t/*   no, do it the hard way */\n\tpush\t{r0, lr}\t\t/* save pointer and return addr */\n\tbl\tPLT_SYM(strlen)\t\t/* get length */\n\tpop\t{r1, r2}\t\t/* restore pointer / return addr */\n\tadds\tr0, r0, r1\t\t/* add pointer to length */\n\tRETr(r2)\t\t\t/* return */\n\n1:\tmov\tr1, r0\t\t\t/* we use r0 at the return value */\n\tmovs\tr0, #0\t\t\t/* return NULL by default */\n2:\ttst\tr1, #3\t\t\t/* test for word alignment */\n\tbeq\t.Lpre_main_loop\t\t/*   finally word aligned */\n\tldrb\tr3, [r1], #1\t\t/* load a byte */\n\tcmp\tr3, r2\t\t\t/* did it match? */\n#ifdef __thumb__\n\tit\teq\n#endif\n\tsubeq\tr0, r1, #1\t\t/*   yes, remember that it did */\n\tcmp\tr3, #0\t\t\t/* was it NUL? */\n\tbne\t2b\t\t\t/*   no, try next byte */\n\tRET\t\t\t\t/* return */\n.Lpre_main_loop:\n\tpush\t{r4, r5}\t\t/* save some registers */\n#if defined(_ARM_ARCH_7)\n\tmovw\tip, #0xfefe\t\t/* magic constant; 254 in each byte */\n\tmovt\tip, #0xfefe\t\t/* magic constant; 254 in each byte */\n#elif defined(_ARM_ARCH_6)\n\tmov\tip, #0xfe\t\t/* put 254 in low byte */\n\torr\tip, ip, ip, lsl #8\t/* move to next byte */\n\torr\tip, ip, ip, lsl #16\t/* move to next halfword */\n#endif /* _ARM_ARCH_6 */\n\torr\tr2, r2, r2, lsl #8\t/* move to next byte */\n\torr\tr2, r2, r2, lsl #16\t/* move to next halfword */\n.Lmain_loop:\n\tldr\tr3, [r1], #4\t\t/* load next word */\n#if defined(_ARM_ARCH_6)\n\t/*\n\t * Add 254 to each byte using the UQADD8 (unsigned saturating add 8)\n\t * instruction.  For every non-NUL byte, the result for that byte will\n\t * become 255.  For NUL, it will be 254.  When we complement the\n\t * result, if the result is non-0 then we must have encountered a NUL.\n\t */\n\tuqadd8\tr4, r3, ip\t\t/* NUL detection happens here */\n\tusub8\tr3, r3, r2\t\t/* bias for char looked for? */\n\tuqadd8\tr5, r3, ip\t\t/* char detection happens here */\n\tands\tr3, r4, r5\t\t/* merge results */\n\tmvns\tr3, r3\t\t\t/* is the complement non-0? */\n\tbeq\t.Lmain_loop\t\t/*   no, then keep going */\n\n\tmvns\tr5, r5\t\t\t/* get we find any matching bytes? */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strrchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strrchr_arm.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strrchr_arm.S:3", "text": "#endif /* _ARM_ARCH_6 */\n\torr\tr2, r2, r2, lsl #8\t/* move to next byte */\n\torr\tr2, r2, r2, lsl #16\t/* move to next halfword */\n.Lmain_loop:\n\tldr\tr3, [r1], #4\t\t/* load next word */\n#if defined(_ARM_ARCH_6)\n\t/*\n\t * Add 254 to each byte using the UQADD8 (unsigned saturating add 8)\n\t * instruction.  For every non-NUL byte, the result for that byte will\n\t * become 255.  For NUL, it will be 254.  When we complement the\n\t * result, if the result is non-0 then we must have encountered a NUL.\n\t */\n\tuqadd8\tr4, r3, ip\t\t/* NUL detection happens here */\n\tusub8\tr3, r3, r2\t\t/* bias for char looked for? */\n\tuqadd8\tr5, r3, ip\t\t/* char detection happens here */\n\tands\tr3, r4, r5\t\t/* merge results */\n\tmvns\tr3, r3\t\t\t/* is the complement non-0? */\n\tbeq\t.Lmain_loop\t\t/*   no, then keep going */\n\n\tmvns\tr5, r5\t\t\t/* get we find any matching bytes? */\n\tbeq\t.Ldone\t\t\t/*   no, then we hit the end, return */\n\tmvns\tr4, r4\t\t\t/* did we encounter a NUL? */\n\tbeq\t.Lfind_match\t\t/*   no, find matching byte */\n\t/*\n\t * Copy the NUL bit to the following byte lanes.  Then clear any match\n\t * bits in those byte lanes to prevent false positives in those bytes.\n\t */\n\tbics\tr5, r5, r4\t\t/* clear any NUL match bits */\n\tbeq\t.Ldone\t\t\t/*   no remaining matches, we're done */\n\tlshis\tr3, r4, #8\t\t/* shift up a byte */\n#ifdef __thumb__\n\titt\tne\n#endif\n\torrsne\tr3, r3, r3, lshi #8\t/* if non 0, copy up to next byte */\n\torrsne\tr3, r3, r3, lshi #8\t/* if non 0, copy up to last byte */\n\tbics\tr5, r5, r3\t\t/* clear match bits */\n\tbeq\t.Ldone\t\t\t/*   no remaining matches, we're done */\n.Lfind_match:\n#ifdef __ARMEL__\n\trev\tr5, r5\t\t\t/* we want this in BE for the CLZ */\n#endif\n\t/*\n\t * If we have multiple matches, we want to the select the \"last\" match\n\t * in the word which will be the lowest bit set.\n\t */\n\tsubs\tr3, r5, #1\t\t/* subtract 1 */\n\tands\tr3, r3, r5\t\t/* and with mask */\n\teors\tr5, r5, r3\t\t/* only have the lowest bit set left */\n\tclz\tr5, r5\t\t\t/* count how many leading zeros */\n\tadd\tr0, r1, r5, lsr #3\t/* divide that by 8 and add to count */\n\tsubs\tr0, r0, #4\t\t/* compensate for the post-inc */\n\tcmp\tr4, #0\t\t\t/* did we read any NULs? */\n\tbeq\t.Lmain_loop\t\t/*   no, get next word */\n#else\n\t/*\n\t * No fancy shortcuts so just test each byte lane for a NUL.\n\t * (other tests for NULs in a word take more instructions/cycles).\n\t */\n\teor\tr4, r3, r2\t\t/* xor .. */\n\ttst\tr3, #BYTE0\t\t/* is byte 0 a NUL? */", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strrchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strrchr_arm.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strrchr_arm.S:4", "text": "#endif\n\t/*\n\t * If we have multiple matches, we want to the select the \"last\" match\n\t * in the word which will be the lowest bit set.\n\t */\n\tsubs\tr3, r5, #1\t\t/* subtract 1 */\n\tands\tr3, r3, r5\t\t/* and with mask */\n\teors\tr5, r5, r3\t\t/* only have the lowest bit set left */\n\tclz\tr5, r5\t\t\t/* count how many leading zeros */\n\tadd\tr0, r1, r5, lsr #3\t/* divide that by 8 and add to count */\n\tsubs\tr0, r0, #4\t\t/* compensate for the post-inc */\n\tcmp\tr4, #0\t\t\t/* did we read any NULs? */\n\tbeq\t.Lmain_loop\t\t/*   no, get next word */\n#else\n\t/*\n\t * No fancy shortcuts so just test each byte lane for a NUL.\n\t * (other tests for NULs in a word take more instructions/cycles).\n\t */\n\teor\tr4, r3, r2\t\t/* xor .. */\n\ttst\tr3, #BYTE0\t\t/* is byte 0 a NUL? */\n\tbeq\t.Ldone\t\t\t/*   yes, then we're done */\n\ttst\tr4, #BYTE0\t\t/* is byte 0 a match? */\n\tsubeq\tr0, r1, #4\t\t/*   yes, remember its location */\n\ttst\tr3, #BYTE1\t\t/* is byte 1 a NUL? */\n\tbeq\t.Ldone\t\t\t/*   yes, then we're done */\n\ttst\tr4, #BYTE1\t\t/* is byte 1 a match? */\n\tsubeq\tr0, r1, #3\t\t/*   yes, remember its location */\n\ttst\tr3, #BYTE2\t\t/* is byte 2 a NUL? */\n\tbeq\t.Ldone\t\t\t/*   yes, then we're done */\n\ttst\tr4, #BYTE2\t\t/* is byte 2 a match? */\n\tsubeq\tr0, r1, #2\t\t/*   yes, remember its location */\n\ttst\tr3, #BYTE3\t\t/* is byte 3 a NUL? */\n\tbeq\t.Ldone\t\t\t/*   yes, then we're done */\n\ttst\tr4, #BYTE3\t\t/* is byte 3 a match? */\n\tsubeq\tr0, r1, #1\t\t/*   yes, remember its location */\n\tb\t.Lmain_loop\n#endif /* _ARM_ARCH_6 */\n.Ldone:\n\tpop\t{r4, r5}\n\tRET\nEND(strrchr)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strrchr_arm.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strrchr_arm.S", "line_start": 121, "line_end": 161}
{"id": "NetBSD/src:common/lib/libc/arch/arm/string/strrchr_naive.S:1", "text": "/*-\n * Copyright (c) 2013 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: strrchr_naive.S,v 1.4 2013/08/19 17:02:25 matt Exp $\")\n\n/* LINTSTUB: char * strrchr(const char *, int) */\nENTRY(strrchr)\n\tmov\tr2, r0\t\t/* using r0 as return value */\n\tmovs\tr0, #0\t\t/* default to no match */\n#ifdef __thumb__\n\tmovs\tr3, #0xff\n\tands\tr1, r1, r3\t/* restrict to a byte value */\n1:\tldrb\tr3, [r2]\t/* read a byte */\n\tcmp\tr3, r1\t\t/* does it match? */\n\tbne\t2f\t\t/*   no, go and advance */\n\tmov\tr0, r2\t\t/*   yes, set return value to point to it */\n2:\tadds\tr2, r2, #1\t/* advance to next byte */\n\tcmp\tr3, #0\t\t/* was it a NUL? */\n\tbne\t1b\t\t/*   no, get next byte */\n#else\n\tand\tr1, r1, #0xff\t/* restrict to a byte value */\n1:\tldrb\tr3, [r2], #1\t/* read a byte */\n\tcmp\tr3, r1\t\t/* does it match? */\n\tsubeq\tr0, r2, #1\t/*   yes, set return value to point to it */\n\tcmp\tr3, #0\t\t/* was it a NUL? */\n\tbne\t1b\t\t/*   no, get next byte */\n#endif\n\tRET\nEND(strrchr)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/arm/string/strrchr_naive.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/arm/string/strrchr_naive.S", "line_start": 1, "line_end": 56}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.17 2026/01/09 08:44:57 skrll Exp $\n\n.if defined(LIB)\n\n.  if (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" || \\\n    ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\tatomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c \\\n\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\tatomic_swap_32_cas.c \\\n\tmembar_ops_nop.c\n\n.  endif\n\n.  if (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_testset.c\nSRCS+=\tatomic_cas_up.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP\nCPPFLAGS+= -D__HAVE_ATOMIC_CAS_64_UP -D__HAVE_ASM_ATOMIC_CAS_64_UP\n.  endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_xor_64_cas.c atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\t\\\n\tatomic_sub_64_cas.c atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\t\\\n\tatomic_nand_64_cas.c atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_or_64_cas.c atomic_or_16_cas.c atomic_or_8_cas.c\t\t\t\t\t\\\n\tatomic_or_64_nv_cas.c \t\t\t\t\t\t\t\t\t\\\n\tatomic_and_64_cas.c atomic_and_16_cas.c atomic_and_8_cas.c\t\t\t\t\\\n\tatomic_and_64_nv_cas.c atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_add_64_cas.c atomic_add_16_cas.c atomic_add_8_cas.c\t\t\t\t\\\n\tatomic_add_64_nv_cas.c \t\t\t\t\t\t\t\t\t\\\n\tatomic_swap_64_cas.c atomic_swap_16_cas.c atomic_swap_8_cas.c\t\t\t\t\\\n\tatomic_cas_64_cas.c atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\t\\\n\tatomic_dec_64_cas.c atomic_dec_64_nv_cas.c\t\t\t\t\t\t\\\n\tatomic_inc_64_cas.c atomic_inc_64_nv_cas.c\t\t\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\t\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\t\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c\t\t\t\t\t\t\t\\\n\tatomic_is_lock_free.c\n\n\n.endif\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/hppa/atomic/Makefile.inc", "line_start": 1, "line_end": 49}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.16 2023/10/29 08:04:18 skrll Exp $\n\n.if defined(LIB)\n\n.  if (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" || \\\n    ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\tatomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c \\\n\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\tatomic_swap_32_cas.c \\\n\tmembar_ops_nop.c\n\n.  endif\n\n.  if (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_testset.c\nCPPFLAGS+= -D__HAVE_ATOMIC_CAS_64_UP\nSRCS+=\tatomic_cas_up.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP\n.  endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\t\t\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\t\t\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_add_16_cas.c atomic_add_8_cas.c\t\t\t\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c\t\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c\t\t\t\t\\\n\tatomic_is_lock_free.c\n.endif\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "7ada0067d380277b7213919226bef11097174df7", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/7ada0067d380277b7213919226bef11097174df7/common/lib/libc/arch/hppa/atomic/Makefile.inc", "line_start": 1, "line_end": 43}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.15 2023/03/30 15:03:35 riastradh Exp $\n\n.if defined(LIB)\n\n.  if (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" || \\\n    ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\tatomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c \\\n\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\tatomic_swap_32_cas.c \\\n\tmembar_ops_nop.c\n\n.  endif\n\n.  if (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_testset.c\nSRCS+=\tatomic_cas_up.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_16_UP\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_8_UP\n.  endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\t\t\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\t\t\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_add_16_cas.c atomic_add_8_cas.c\t\t\t\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c\t\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c\t\t\t\t\\\n\tatomic_is_lock_free.c\n.endif\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/hppa/atomic/Makefile.inc", "line_start": 1, "line_end": 42}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/atomic_cas_up.S:1", "text": "/*\t$NetBSD: atomic_cas_up.S,v 1.6 2026/01/08 15:54:45 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008, 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Nick Hudson\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include <machine/asm.h>\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tldw\t0(%arg0), %ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tstw\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_up)\n\n#if defined(__HAVE_ASM_ATOMIC_CAS_64_UP)\nENTRY_NOPROFILE(_atomic_cas_64_up, HPPA_FRAME_SIZE)\n\t.hidden\t_C_LABEL(_atomic_cas_64_up)\n\n\tldo\tHPPA_FRAME_ARG(5)(%sp), %arg1\n\tflddx\t0(%arg1), %fr23\t\t\t// load new\n\nRAS_START_ASM_HIDDEN(_atomic_cas_64)\n\tfldd\t0(%arg0), %fr22\t\t\t// load *ptr\n\tfstd\t%fr22,-16(%sp)\t\t\t// store to tmp\n\n\tldw\t-16(%sp),%ret0\t\t\t// load to ret0\n\tldw\t-12(%sp),%ret1\t\t\t// ... and ret1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/atomic_cas_up.S:2", "text": "stw\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_up)\n\n#if defined(__HAVE_ASM_ATOMIC_CAS_64_UP)\nENTRY_NOPROFILE(_atomic_cas_64_up, HPPA_FRAME_SIZE)\n\t.hidden\t_C_LABEL(_atomic_cas_64_up)\n\n\tldo\tHPPA_FRAME_ARG(5)(%sp), %arg1\n\tflddx\t0(%arg1), %fr23\t\t\t// load new\n\nRAS_START_ASM_HIDDEN(_atomic_cas_64)\n\tfldd\t0(%arg0), %fr22\t\t\t// load *ptr\n\tfstd\t%fr22,-16(%sp)\t\t\t// store to tmp\n\n\tldw\t-16(%sp),%ret0\t\t\t// load to ret0\n\tldw\t-12(%sp),%ret1\t\t\t// ... and ret1\n\n\tcomb,<>,n\t%arg3, %ret0, 1f\n\tcomb,<>,n\t%arg2, %ret1, 1f\n\n\tfstd\t %fr23, 0(%arg0) \t\t// *ptr = new\nRAS_END_ASM_HIDDEN(_atomic_cas_64)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_64_up)\n#endif /* __HAVE_ASM_ATOMIC_64_UP */\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tldh\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tsth\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_16_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tldb\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tstb\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_8)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_8_up)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "line_start": 41, "line_end": 93}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/atomic_cas_up.S:3", "text": "EXIT(_atomic_cas_16_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tldb\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tstb\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_8)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_8_up)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "line_start": 81, "line_end": 93}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/atomic_cas_up.S:1", "text": "/*\t$NetBSD: atomic_cas_up.S,v 1.5 2026/01/07 10:01:55 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008, 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Nick Hudson\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include <machine/asm.h>\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tldw\t0(%arg0), %ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tstw\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tldh\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tsth\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_16_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "c3bf19e1d461f8b4d8812b91b48116a1e45c9d04", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/c3bf19e1d461f8b4d8812b91b48116a1e45c9d04/common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/atomic_cas_up.S:2", "text": "stw\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tldh\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tsth\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_16_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tldb\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tstb\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_8)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_8_up)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "c3bf19e1d461f8b4d8812b91b48116a1e45c9d04", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/c3bf19e1d461f8b4d8812b91b48116a1e45c9d04/common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "line_start": 41, "line_end": 69}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/atomic_cas_up.S:1", "text": "/*\t$NetBSD: atomic_cas_up.S,v 1.4 2014/01/29 11:34:25 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008, 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Nick Hudson\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include <machine/asm.h>\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tldw\t0(%arg0), %ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tstw\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tbv,n\t%r0(%rp)\n\nEXIT(_atomic_cas_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tldh\t0(%arg0),%ret0\n\tcomb,<>,n\t%arg1, %ret0, 1f\n\tsth\t%arg2, 0(%arg0)\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\n\tbv,n\t%r0(%rp)\nEXIT(_atomic_cas_16_up)\n\nLEAF_ENTRY_NOPROFILE(_atomic_cas_8_up)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/hppa/atomic/atomic_cas_up.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/membar_ops.S:1", "text": "/*\t$NetBSD: membar_ops.S,v 1.3 2022/04/09 23:32:51 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe, and by Andrew Doran.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: membar_ops.S,v 1.3 2022/04/09 23:32:51 riastradh Exp $\")\n\n\t.text\n\nLEAF_ENTRY(_membar_sync)\n\tsync\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\tbv\t%r0(%rp)\n\t nop\nEXIT(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_sync)\nSTRONG_ALIAS(_membar_producer,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/hppa/atomic/membar_ops.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/hppa/atomic/membar_ops.S:2", "text": "nop\n\tnop\n\tnop\n\tnop\n\tbv\t%r0(%rp)\n\t nop\nEXIT(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_sync)\nSTRONG_ALIAS(_membar_producer,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/hppa/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/hppa/atomic/membar_ops.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.8 2014/02/18 10:16:55 martin Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_64_cas.c atomic_add_64_nv_cas.c atomic_and_64_cas.c \\\n\tatomic_and_64_nv_cas.c atomic_dec_64_cas.c atomic_dec_64_nv_cas.c \\\n\tatomic_inc_64_cas.c atomic_inc_64_nv_cas.c atomic_or_64_cas.c \\\n\tatomic_or_64_nv_cas.c atomic_swap_64_cas.c atomic.S\t\\\n\tatomic_nand_64_cas.c atomic_xor_64_cas.c atomic_sub_64_cas.c \\\n\tatomic_cas_64_cas.c\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_cas.c\n\n.endif", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/Makefile.inc", "line_start": 1, "line_end": 19}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:2", "text": "#else\n#define\tALIAS(f, t)\tWEAK_ALIAS(f,t)\n#endif\n\n#ifdef _HARDKERNEL\n#include \"opt_xen.h\"\n#include <machine/frameasm.h>\n#define LOCK\t\t\tHOTPATCH(HP_NAME_NOLOCK, 1); lock\n#define HOTPATCH_CAS_64\t\tHOTPATCH(HP_NAME_CAS_64, 49);\n#else\n#define LOCK\t\t\tlock\n#define HOTPATCH_CAS_64\t\t/* nothing */\n#endif\n\n\t.text\n\nENTRY(_atomic_add_32)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tLOCK\n\taddl\t%eax, (%edx)\n\tret\nEND(_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t%eax, %ecx\n\tLOCK\n\txaddl\t%eax, (%edx)\n\taddl\t%ecx, %eax\n\tret\nEND(_atomic_add_32_nv)\n\nENTRY(_atomic_and_32)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tLOCK\n\tandl\t%eax, (%edx)\n\tret\nEND(_atomic_and_32)\n\nENTRY(_atomic_and_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t(%edx), %eax\n0:\n\tmovl\t%eax, %ecx\n\tandl\t8(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\tjnz\t1f\n\tmovl\t%ecx, %eax\n\tret\n1:\n\tjmp\t0b\nEND(_atomic_and_32_nv)\n\nENTRY(_atomic_dec_32)\n\tmovl\t4(%esp), %edx\n\tLOCK", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:3", "text": "END(_atomic_and_32)\n\nENTRY(_atomic_and_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t(%edx), %eax\n0:\n\tmovl\t%eax, %ecx\n\tandl\t8(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\tjnz\t1f\n\tmovl\t%ecx, %eax\n\tret\n1:\n\tjmp\t0b\nEND(_atomic_and_32_nv)\n\nENTRY(_atomic_dec_32)\n\tmovl\t4(%esp), %edx\n\tLOCK\n\tdecl\t(%edx)\n\tret\nEND(_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t$-1, %eax\n\tLOCK\n\txaddl\t%eax, (%edx)\n\tdecl\t%eax\n\tret\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_inc_32)\n\tmovl\t4(%esp), %edx\n\tLOCK\n\tincl\t(%edx)\n\tret\nEND(_atomic_inc_32)\n\nENTRY(_atomic_inc_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t$1, %eax\n\tLOCK\n\txaddl\t%eax, (%edx)\n\tincl\t%eax\n\tret\nEND(_atomic_inc_32_nv)\n\nENTRY(_atomic_or_32)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tLOCK\n\torl\t%eax, (%edx)\n\tret\nEND(_atomic_or_32)\n\nENTRY(_atomic_or_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t(%edx), %eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:4", "text": "ENTRY(_atomic_inc_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t$1, %eax\n\tLOCK\n\txaddl\t%eax, (%edx)\n\tincl\t%eax\n\tret\nEND(_atomic_inc_32_nv)\n\nENTRY(_atomic_or_32)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tLOCK\n\torl\t%eax, (%edx)\n\tret\nEND(_atomic_or_32)\n\nENTRY(_atomic_or_32_nv)\n\tmovl\t4(%esp), %edx\n\tmovl\t(%edx), %eax\n0:\n\tmovl\t%eax, %ecx\n\torl\t8(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\tjnz\t1f\n\tmovl\t%ecx, %eax\n\tret\n1:\n\tjmp\t0b\nEND(_atomic_or_32_nv)\n\nENTRY(_atomic_swap_32)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\txchgl\t%eax, (%edx)\n\tret\nEND(_atomic_swap_32)\n\nENTRY(_atomic_cas_32)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32_ni)\n\nENTRY(_membar_acquire)\n\t/*", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:5", "text": "movl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32_ni)\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDL,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDL is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with paravirt_membar_sync in\n\t * sys/arch/i386/i386/cpufunc.S.\n\t */\n\tLOCK\n\taddl\t$0, -4(%esp)\n\tret", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:6", "text": "* ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDL is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with paravirt_membar_sync in\n\t * sys/arch/i386/i386/cpufunc.S.\n\t */\n\tLOCK\n\taddl\t$0, -4(%esp)\n\tret\nEND(_membar_sync)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)\n#ifdef XENPV\nSTRONG_ALIAS(_atomic_cas_64,_atomic_cas_cx8)\n#else\nENTRY(_atomic_cas_64)\n\tHOTPATCH_CAS_64\n\t/* 49 bytes of instructions */\n#ifdef _HARDKERNEL\n\tpushf\n\tcli\n#endif\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %eax\n\tmovl\t20(%esp), %edx\n\tmovl\t24(%esp), %ebx\n\tmovl\t28(%esp), %ecx\n\tcmpl\t0(%edi), %eax\n\tjne\t2f\n\tcmpl\t4(%edi), %edx\n\tjne\t2f\n\tmovl\t%ebx, 0(%edi)\n\tmovl\t%ecx, 4(%edi)\n1:\n\tpopl\t%ebx\n\tpopl\t%edi\n#ifdef _HARDKERNEL\n\tpopf\n#endif\n\tret\n2:\n\tmovl\t0(%edi), %eax\n\tmovl\t4(%edi), %edx\n\tjmp\t1b\nEND(_atomic_cas_64)\n#endif /* !XENPV */", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:7", "text": "cmpl\t0(%edi), %eax\n\tjne\t2f\n\tcmpl\t4(%edi), %edx\n\tjne\t2f\n\tmovl\t%ebx, 0(%edi)\n\tmovl\t%ecx, 4(%edi)\n1:\n\tpopl\t%ebx\n\tpopl\t%edi\n#ifdef _HARDKERNEL\n\tpopf\n#endif\n\tret\n2:\n\tmovl\t0(%edi), %eax\n\tmovl\t4(%edi), %edx\n\tjmp\t1b\nEND(_atomic_cas_64)\n#endif /* !XENPV */\n\nENTRY(_atomic_cas_cx8)\n\t/* 49 bytes of instructions */\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %eax\n\tmovl\t20(%esp), %edx\n\tmovl\t24(%esp), %ebx\n\tmovl\t28(%esp), %ecx\n\tLOCK\n\tcmpxchg8b (%edi)\n\tpopl\t%ebx\n\tpopl\t%edi\n\tret\n#ifdef _HARDKERNEL\n\t.space\t20, 0xCC\n#endif\nEND(_atomic_cas_cx8)\nLABEL(_atomic_cas_cx8_end)\n#endif /* __HAVE_ATOMIC64_OPS || _KERNEL */\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_32)\nALIAS(atomic_add_ptr,_atomic_add_32)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_32)\nALIAS(atomic_and_ptr,_atomic_and_32)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_32_nv)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:8", "text": "ALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_32)\nALIAS(atomic_add_ptr,_atomic_add_32)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_32)\nALIAS(atomic_and_ptr,_atomic_and_32)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_32_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_32)\nALIAS(atomic_dec_ptr,_atomic_dec_32)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_32)\nALIAS(atomic_inc_ptr,_atomic_inc_32)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_32)\nALIAS(atomic_or_ptr,_atomic_or_32)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_32_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_32)\nALIAS(atomic_swap_ptr,_atomic_swap_32)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_32)\nALIAS(atomic_cas_ptr,_atomic_cas_32)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:9", "text": "ALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_32)\nALIAS(atomic_or_ptr,_atomic_or_32)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_32_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_32)\nALIAS(atomic_swap_ptr,_atomic_swap_32)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_32)\nALIAS(atomic_cas_ptr,_atomic_cas_32)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_64_ni,_atomic_cas_64)\nALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)\n#endif /* __HAVE_ATOMIC64_OPS || _KERNEL */\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:10", "text": "ALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_32)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 361, "line_end": 418}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:11", "text": "STRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 401, "line_end": 418}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:5", "text": "movl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32_ni)\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDL,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDL is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with xen_mb in sys/arch/i386/i386/cpufunc.S.\n\t */\n\tLOCK\n\taddl\t$0, -4(%esp)\n\tret\nEND(_membar_sync)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:6", "text": "* ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDL is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with xen_mb in sys/arch/i386/i386/cpufunc.S.\n\t */\n\tLOCK\n\taddl\t$0, -4(%esp)\n\tret\nEND(_membar_sync)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)\n#ifdef XENPV\nSTRONG_ALIAS(_atomic_cas_64,_atomic_cas_cx8)\n#else\nENTRY(_atomic_cas_64)\n\tHOTPATCH_CAS_64\n\t/* 49 bytes of instructions */\n#ifdef _HARDKERNEL\n\tpushf\n\tcli\n#endif\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %eax\n\tmovl\t20(%esp), %edx\n\tmovl\t24(%esp), %ebx\n\tmovl\t28(%esp), %ecx\n\tcmpl\t0(%edi), %eax\n\tjne\t2f\n\tcmpl\t4(%edi), %edx\n\tjne\t2f\n\tmovl\t%ebx, 0(%edi)\n\tmovl\t%ecx, 4(%edi)\n1:\n\tpopl\t%ebx\n\tpopl\t%edi\n#ifdef _HARDKERNEL\n\tpopf\n#endif\n\tret\n2:\n\tmovl\t0(%edi), %eax\n\tmovl\t4(%edi), %edx\n\tjmp\t1b\nEND(_atomic_cas_64)\n#endif /* !XENPV */\n\nENTRY(_atomic_cas_cx8)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:7", "text": "jne\t2f\n\tcmpl\t4(%edi), %edx\n\tjne\t2f\n\tmovl\t%ebx, 0(%edi)\n\tmovl\t%ecx, 4(%edi)\n1:\n\tpopl\t%ebx\n\tpopl\t%edi\n#ifdef _HARDKERNEL\n\tpopf\n#endif\n\tret\n2:\n\tmovl\t0(%edi), %eax\n\tmovl\t4(%edi), %edx\n\tjmp\t1b\nEND(_atomic_cas_64)\n#endif /* !XENPV */\n\nENTRY(_atomic_cas_cx8)\n\t/* 49 bytes of instructions */\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %eax\n\tmovl\t20(%esp), %edx\n\tmovl\t24(%esp), %ebx\n\tmovl\t28(%esp), %ecx\n\tLOCK\n\tcmpxchg8b (%edi)\n\tpopl\t%ebx\n\tpopl\t%edi\n\tret\n#ifdef _HARDKERNEL\n\t.space\t20, 0xCC\n#endif\nEND(_atomic_cas_cx8)\nLABEL(_atomic_cas_cx8_end)\n#endif /* __HAVE_ATOMIC64_OPS || _KERNEL */\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_32)\nALIAS(atomic_add_ptr,_atomic_add_32)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_32)\nALIAS(atomic_and_ptr,_atomic_and_32)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_32_nv)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:9", "text": "ALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_32)\nALIAS(atomic_or_ptr,_atomic_or_32)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_32_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_32)\nALIAS(atomic_swap_ptr,_atomic_swap_32)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_32)\nALIAS(atomic_cas_ptr,_atomic_cas_32)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_64_ni,_atomic_cas_64)\nALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)\n#endif /* __HAVE_ATOMIC64_OPS || _KERNEL */\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:10", "text": "STRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_32)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 361, "line_end": 417}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:11", "text": "STRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 401, "line_end": 417}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:5", "text": "movl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t4(%esp), %edx\n\tmovl\t8(%esp), %eax\n\tmovl\t12(%esp), %ecx\n\tcmpxchgl %ecx, (%edx)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32_ni)\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDL,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDL is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t */\n\tLOCK\n\taddl\t$0, -4(%esp)\n\tret\nEND(_membar_sync)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:6", "text": "* ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDL is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t */\n\tLOCK\n\taddl\t$0, -4(%esp)\n\tret\nEND(_membar_sync)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)\n#ifdef XENPV\nSTRONG_ALIAS(_atomic_cas_64,_atomic_cas_cx8)\n#else\nENTRY(_atomic_cas_64)\n\tHOTPATCH_CAS_64\n\t/* 49 bytes of instructions */\n#ifdef _HARDKERNEL\n\tpushf\n\tcli\n#endif\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %eax\n\tmovl\t20(%esp), %edx\n\tmovl\t24(%esp), %ebx\n\tmovl\t28(%esp), %ecx\n\tcmpl\t0(%edi), %eax\n\tjne\t2f\n\tcmpl\t4(%edi), %edx\n\tjne\t2f\n\tmovl\t%ebx, 0(%edi)\n\tmovl\t%ecx, 4(%edi)\n1:\n\tpopl\t%ebx\n\tpopl\t%edi\n#ifdef _HARDKERNEL\n\tpopf\n#endif\n\tret\n2:\n\tmovl\t0(%edi), %eax\n\tmovl\t4(%edi), %edx\n\tjmp\t1b\nEND(_atomic_cas_64)\n#endif /* !XENPV */\n\nENTRY(_atomic_cas_cx8)\n\t/* 49 bytes of instructions */\n\tpushl\t%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:7", "text": "jne\t2f\n\tmovl\t%ebx, 0(%edi)\n\tmovl\t%ecx, 4(%edi)\n1:\n\tpopl\t%ebx\n\tpopl\t%edi\n#ifdef _HARDKERNEL\n\tpopf\n#endif\n\tret\n2:\n\tmovl\t0(%edi), %eax\n\tmovl\t4(%edi), %edx\n\tjmp\t1b\nEND(_atomic_cas_64)\n#endif /* !XENPV */\n\nENTRY(_atomic_cas_cx8)\n\t/* 49 bytes of instructions */\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %eax\n\tmovl\t20(%esp), %edx\n\tmovl\t24(%esp), %ebx\n\tmovl\t28(%esp), %ecx\n\tLOCK\n\tcmpxchg8b (%edi)\n\tpopl\t%ebx\n\tpopl\t%edi\n\tret\n#ifdef _HARDKERNEL\n\t.space\t20, 0xCC\n#endif\nEND(_atomic_cas_cx8)\nLABEL(_atomic_cas_cx8_end)\n#endif /* __HAVE_ATOMIC64_OPS || _KERNEL */\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_32)\nALIAS(atomic_add_ptr,_atomic_add_32)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_32)\nALIAS(atomic_and_ptr,_atomic_and_32)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_32_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_uint,_atomic_dec_32)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:8", "text": "ALIAS(atomic_add_long,_atomic_add_32)\nALIAS(atomic_add_ptr,_atomic_add_32)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_32)\nALIAS(atomic_and_ptr,_atomic_and_32)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_32_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_32)\nALIAS(atomic_dec_ptr,_atomic_dec_32)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_32)\nALIAS(atomic_inc_ptr,_atomic_inc_32)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_32)\nALIAS(atomic_or_ptr,_atomic_or_32)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_32_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_32)\nALIAS(atomic_swap_ptr,_atomic_swap_32)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_32)\nALIAS(atomic_cas_ptr,_atomic_cas_32)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:9", "text": "ALIAS(atomic_or_ulong,_atomic_or_32)\nALIAS(atomic_or_ptr,_atomic_or_32)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_32_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_32)\nALIAS(atomic_swap_ptr,_atomic_swap_32)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_32)\nALIAS(atomic_cas_ptr,_atomic_cas_32)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\n#if defined(__HAVE_ATOMIC64_OPS) || defined(_KERNEL)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_64_ni,_atomic_cas_64)\nALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)\n#endif /* __HAVE_ATOMIC64_OPS || _KERNEL */\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:10", "text": "STRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_32)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 361, "line_end": 415}
{"id": "NetBSD/src:common/lib/libc/arch/i386/atomic/atomic.S:11", "text": "STRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/atomic/atomic.S", "line_start": 401, "line_end": 415}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/ffs.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@NetBSD.org>.\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: ffs.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\nENTRY(ffs)\n\tbsfl\t4(%esp),%eax\n\tjz\tL1\t \t\t/* ZF is set if all bits are 0 */\n\tincl\t%eax\t\t\t/* bits numbered from 1, not 0 */\n\tret\n\n\t_ALIGN_TEXT\nL1:\txorl\t%eax,%eax\t\t/* clear result */\n\tret\nEND(ffs)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/ffs.S", "line_start": 1, "line_end": 21}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memchr.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: memchr.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\nENTRY(memchr)\n\tpushl\t%esi\n\tmovl\t8(%esp),%eax\n\tmovzbl\t12(%esp),%ecx\n\tmovl\t16(%esp),%esi\n\n\t/*\n\t * Align to word boundary.\n\t * Consider unrolling loop?\n\t */\n\ttestl\t%esi,%esi\t/* nbytes == 0? */\n\tje\t.Lzero\n.Lalign:\n\ttestb\t$3,%al\n\tje\t.Lword_aligned\n\tcmpb\t(%eax),%cl\n\tje\t.Ldone\n\tincl\t%eax\n\tdecl\t%esi\n\tjnz\t.Lalign\n\tjmp\t.Lzero\n\n.Lword_aligned:\n\t/* copy char to all bytes in word */\n\tmovb\t%cl,%ch\n\tmovl\t%ecx,%edx\n\tsall\t$16,%ecx\n\torl\t%edx,%ecx\n\n\t_ALIGN_TEXT\n.Lloop:\n\tcmpl\t$3,%esi\t\t/* nbytes > 4 */\n\tjbe\t.Lbyte\n\tmovl\t(%eax),%edx\n\taddl\t$4,%eax\n\txorl\t%ecx,%edx\n\tsubl\t$4,%esi\n\tsubl\t$0x01010101,%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word are\n\t * equal to ch.\n\t */\n\n\t/*\n\t * High load-use latency on the Athlon leads to significant", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memchr.S:2", "text": "_ALIGN_TEXT\n.Lloop:\n\tcmpl\t$3,%esi\t\t/* nbytes > 4 */\n\tjbe\t.Lbyte\n\tmovl\t(%eax),%edx\n\taddl\t$4,%eax\n\txorl\t%ecx,%edx\n\tsubl\t$4,%esi\n\tsubl\t$0x01010101,%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word are\n\t * equal to ch.\n\t */\n\n\t/*\n\t * High load-use latency on the Athlon leads to significant\n\t * stalls, so we preload the next char as soon as possible\n\t * instead of using cmp mem8, reg8.\n\t *\n\t * Alignment here avoids a stall on the Athlon, even though\n\t * it's not a branch target.\n\t */\n\t_ALIGN_TEXT\n\tcmpb\t-4(%eax),%cl\t/* 1st byte == ch? */\n\tmovb\t-3(%eax),%dl\n\tjne\t1f\n\tsubl\t$4,%eax\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n1:\tcmpb\t%dl,%cl\t\t/* 2nd byte == ch? */\n\tmovb\t-2(%eax),%dl\n\tjne\t1f\n\tsubl\t$3,%eax\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n1:\tcmpb\t%dl,%cl\t\t/* 3rd byte == ch? */\n\tmovb\t-1(%eax),%dl\n\tjne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n1:\tcmpb\t%dl,%cl\t\t/* 4th byte == ch? */\n\tjne\t.Lloop\n\tdecl\t%eax\n\tjmp\t.Ldone\n\n.Lbyte:\n\ttestl\t%esi,%esi\n\tje\t.Lzero\n.Lbyte_loop:\n\tcmpb\t(%eax),%cl\n\tje\t.Ldone\n\tincl\t%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memchr.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memchr.S:3", "text": "_ALIGN_TEXT\n1:\tcmpb\t%dl,%cl\t\t/* 3rd byte == ch? */\n\tmovb\t-1(%eax),%dl\n\tjne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n1:\tcmpb\t%dl,%cl\t\t/* 4th byte == ch? */\n\tjne\t.Lloop\n\tdecl\t%eax\n\tjmp\t.Ldone\n\n.Lbyte:\n\ttestl\t%esi,%esi\n\tje\t.Lzero\n.Lbyte_loop:\n\tcmpb\t(%eax),%cl\n\tje\t.Ldone\n\tincl\t%eax\n\tdecl\t%esi\n\tjnz\t.Lbyte_loop\n\n.Lzero:\n\txorl\t%eax,%eax\n\n.Ldone:\n\tpopl\t%esi\n\tret\nEND(memchr)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memchr.S", "line_start": 81, "line_end": 110}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memcpy.S:2", "text": "/*\n\t * (ov)bcopy (src,dst,cnt)\n\t *  ws@tools.de     (Wolfgang Solfrank, TooLs GmbH) +49-228-985800\n\t */\n\n#ifdef BCOPY\nENTRY(bcopy)\n#else\n#ifdef MEMMOVE\nENTRY(memmove)\n#else\n#define MEMCPY\n#define NO_OVERLAP\nENTRY(memcpy)\n#endif\n#endif\n\tpush\t%esi\n\tmov\t%edi,%edx\n#if defined(MEMCPY) || defined(MEMMOVE)\n\tmovl\t8(%esp),%edi\n\tmovl\t12(%esp),%esi\n#else\n\tmovl\t8(%esp),%esi\n\tmovl\t12(%esp),%edi\n#endif\n\tmovl\t16(%esp),%ecx\n#if defined(NO_OVERLAP)\n\tmovl\t%ecx,%eax\n#else\n\tmovl\t%edi,%eax\n\tsubl\t%esi,%eax\n\tcmpl\t%ecx,%eax\t/* overlapping? */\n\tmovl\t%ecx,%eax\n\tjb\t.Lbackwards\n#endif\n\t/* nope, copy forwards. */\n\tshrl\t$2,%ecx\t\t/* copy by words */\n\trep\n\tmovsl\n\tand\t$3,%eax\t\t/* any bytes left? */\n\tjnz\t.Ltrailing\n.Ldone:\n#if defined(MEMCPY) || defined(MEMMOVE)\n\tmovl\t8(%esp),%eax\n#endif\n\tmov\t%edx,%edi\n\tpop\t%esi\n\tret\n\n.Ltrailing:\n\tcmp\t$2,%eax\n\tjb\t1f\n\tmovw\t(%esi),%ax\n\tmovw\t%ax,(%edi)\n\tje\t.Ldone\n\tmovb\t2(%esi),%al\n\tmovb\t%al,2(%edi)\n\tjmp\t.Ldone\n1:\tmovb\t(%esi),%al\n\tmovb\t%al,(%edi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memcpy.S:3", "text": "jnz\t.Ltrailing\n.Ldone:\n#if defined(MEMCPY) || defined(MEMMOVE)\n\tmovl\t8(%esp),%eax\n#endif\n\tmov\t%edx,%edi\n\tpop\t%esi\n\tret\n\n.Ltrailing:\n\tcmp\t$2,%eax\n\tjb\t1f\n\tmovw\t(%esi),%ax\n\tmovw\t%ax,(%edi)\n\tje\t.Ldone\n\tmovb\t2(%esi),%al\n\tmovb\t%al,2(%edi)\n\tjmp\t.Ldone\n1:\tmovb\t(%esi),%al\n\tmovb\t%al,(%edi)\n\tjmp\t.Ldone\n\n#if !defined(NO_OVERLAP)\n.Lbackwards:\n\taddl\t%ecx,%edi\t/* copy backwards. */\n\taddl\t%ecx,%esi\n\tand\t$3,%eax\t\t/* any fractional bytes? */\n\tjnz\t.Lback_align\n.Lback_aligned:\n\tshrl\t$2,%ecx\n\tsubl\t$4,%esi\n\tsubl\t$4,%edi\n\tstd\n\trep\n\tmovsl\n\tcld\n\tjmp\t.Ldone\n\n.Lback_align:\n\tsub\t%eax,%esi\n\tsub\t%eax,%edi\n\tcmp\t$2,%eax\n\tjb\t1f\n\tje\t2f\n\tmovb\t2(%esi),%al\n\tmovb\t%al,2(%edi)\n2:\tmovw\t(%esi),%ax\n\tmovw\t%ax,(%edi)\n\tjmp\t.Lback_aligned\n1:\tmovb\t(%esi),%al\n\tmovb\t%al,(%edi)\n\tjmp\t.Lback_aligned\n#endif\n\n#ifdef BCOPY\nEND(bcopy)\n#else\n#ifdef MEMMOVE\nEND(memmove)\n#else", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memcpy.S:4", "text": "sub\t%eax,%edi\n\tcmp\t$2,%eax\n\tjb\t1f\n\tje\t2f\n\tmovb\t2(%esi),%al\n\tmovb\t%al,2(%edi)\n2:\tmovw\t(%esi),%ax\n\tmovw\t%ax,(%edi)\n\tjmp\t.Lback_aligned\n1:\tmovb\t(%esi),%al\n\tmovb\t%al,(%edi)\n\tjmp\t.Lback_aligned\n#endif\n\n#ifdef BCOPY\nEND(bcopy)\n#else\n#ifdef MEMMOVE\nEND(memmove)\n#else\nEND(memcpy)\n#endif\n#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memcpy.S", "line_start": 121, "line_end": 143}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memset.S:2", "text": "ENTRY(memset)\n#endif\n#ifdef BZERO\n\tmovl\t8(%esp),%ecx\n\txor\t%eax,%eax\n#else\n\tmovl\t12(%esp),%ecx\n\tmovzbl\t8(%esp),%eax\t\t/* unsigned char, zero extend */\n#endif\n\tcmpl\t$0x0f,%ecx\t\t/* avoid mispredicted branch... */\n\n\tpushl\t%edi\n\tmovl\t8(%esp),%edi\n\n\t/*\n\t * if the string is too short, it's really not worth the overhead\n\t * of aligning to word boundries, etc.  So we jump to a plain\n\t * unaligned set.\n\t *\n\t * NB aligning the transfer is actually pointless on my athlon 700,\n\t * It does make a difference to a PII though.\n\t *\n\t * The PII, PIII and PIV all seem to have a massive performance\n\t * drop when the initial target address is an odd multiple of 4.\n\t */\n\tjbe\t.Lby_bytes\n\n#ifndef BZERO\n\tmovb\t%al,%ah\t\t\t/* copy char to all bytes in word */\n\tmovl\t%eax,%edx\n\tsall\t$16,%eax\n\torl\t%edx,%eax\n#endif\n\n\tmovl\t%edi,%edx\t\t/* detect misalignment */\n\tneg\t%edx\n\tandl\t$7,%edx\n\tjnz\t.Lalign\n.Laligned:\n\tmovl\t%eax,-4(%edi,%ecx)\t/* zap last 4 bytes */\n\tshrl\t$2,%ecx\t\t\t/* zero by words */\n\trep\n\tstosl\n.Ldone:\n#ifndef BZERO\n\tmovl\t8(%esp),%eax\t\t/* return address of buffer */\n#endif\n\tpop\t%edi\n\tret\n\n.Lalign:\n\tmovl\t%eax,(%edi)\t\t/* zap first 8 bytes */\n\tmovl\t%eax,4(%edi)\n\tsubl\t%edx,%ecx\t\t/* remove from main count */\n\tadd\t%edx,%edi\n\tjmp\t.Laligned\n\n.Lby_bytes:\n\trep\n\tstosb", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/memset.S:3", "text": "shrl\t$2,%ecx\t\t\t/* zero by words */\n\trep\n\tstosl\n.Ldone:\n#ifndef BZERO\n\tmovl\t8(%esp),%eax\t\t/* return address of buffer */\n#endif\n\tpop\t%edi\n\tret\n\n.Lalign:\n\tmovl\t%eax,(%edi)\t\t/* zap first 8 bytes */\n\tmovl\t%eax,4(%edi)\n\tsubl\t%edx,%ecx\t\t/* remove from main count */\n\tadd\t%edx,%edi\n\tjmp\t.Laligned\n\n.Lby_bytes:\n\trep\n\tstosb\n\n#ifndef BZERO\n\tmovl\t8(%esp),%eax\t\t/* return address of buffer */\n#endif\n\tpopl\t%edi\n\tret\n#ifdef BZERO\nEND(bzero)\n#else\nEND(memset)\n#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/memset.S", "line_start": 81, "line_end": 111}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/memcmp.S:1", "text": "/*\t$NetBSD: memcmp.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\t*/\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Joerg Sonnenberger.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: memcmp.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n\nENTRY(memcmp)\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %esi\n\tmovl\t20(%esp), %ecx\n\txorl\t%eax, %eax\n\trep\n\tcmpsb\n\tpopl\t%edi\n\tpopl\t%esi\n\tja\t1f\n\tsetnz %al\n\tret\n1:\n\tdecl %eax\n\tret\nEND(memcmp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/memcmp.S", "line_start": 1, "line_end": 51}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/memcpy.S:1", "text": "/*\t$NetBSD: memcpy.S,v 1.2 2014/05/23 03:17:31 uebayasi Exp $\t*/\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Joerg Sonnenberger.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: memcpy.S,v 1.2 2014/05/23 03:17:31 uebayasi Exp $\")\n\n#  ifdef BCOPY\nENTRY(bcopy)\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp), %esi\n\tmovl\t16(%esp), %edi\n\tjmp\t__memmove_start\n#  endif\n#  if defined(MEMMOVE)\nENTRY(memcpy)\nENTRY(memmove)\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %esi\n\t.globl __memmove_start\n__memmove_start:\n\tmovl\t20(%esp), %ecx\n\tpushl\t%edi\n\ttestl %ecx, %ecx\n\tjz 2f\n\tcmpl\t%esi, %edi\n\tjb 1f\n\taddl %ecx, %esi\n\tdecl %esi\n\taddl %ecx, %edi\n\tdecl %edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/memcpy.S:2", "text": "#  endif\n#  if defined(MEMMOVE)\nENTRY(memcpy)\nENTRY(memmove)\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %esi\n\t.globl __memmove_start\n__memmove_start:\n\tmovl\t20(%esp), %ecx\n\tpushl\t%edi\n\ttestl %ecx, %ecx\n\tjz 2f\n\tcmpl\t%esi, %edi\n\tjb 1f\n\taddl %ecx, %esi\n\tdecl %esi\n\taddl %ecx, %edi\n\tdecl %edi\n\tstd\n1:\n\trep\n\tmovsb\n2:\n\tcld\n\tpopl\t%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\nEND(memcpy)\nEND(memmove)\n#  endif /* MEMMOVE */\n#  ifdef BCOPY\nEND(bcopy)\n#  endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/memcpy.S", "line_start": 41, "line_end": 76}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/memset.S:1", "text": "/*\t$NetBSD: memset.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\t*/\n\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Joerg Sonnenberger.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: memset.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n\nENTRY(memset)\n\tpushl\t%edi\n\tmovl\t8(%esp), %edi\n\tmovl\t12(%esp), %eax\n\tmovl\t16(%esp), %ecx\n\tpushl\t%edi\n\trep\n\tstosb\n\tpopl\t%eax\n\tpopl\t%edi\n\tret\nEND(memset)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/memset.S", "line_start": 1, "line_end": 46}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/strchr.S:1", "text": "/*\t$NetBSD: strchr.S,v 1.3 2014/09/22 20:31:56 khorben Exp $\t*/\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Joerg Sonnenberger.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: strchr.S,v 1.3 2014/09/22 20:31:56 khorben Exp $\")\n\nENTRY(strchr)\n\tpopl\t%edx\t\t/* Return address */\n\tpopl\t%eax\t\t/* String pointer */\n\tpopl\t%ecx\t\t/* Character to find */\n\tpushl\t%ecx\n\tpushl\t%eax\n\tpushl\t%edx\n1:\n\tcmpb\t%cl, 0(%eax)\n\tje 3f\n\tcmpb\t$0, 0(%eax)\n\tje 2f\n\tincl\t%eax\n\tjmp 1b\n2:\n\txorl\t%eax, %eax\n3:\n\tret\nEND(strchr)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/strchr.S", "line_start": 1, "line_end": 52}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/strcmp.S:1", "text": "/*\t$NetBSD: strcmp.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\t*/\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Joerg Sonnenberger.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: strcmp.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n\nENTRY(strcmp)\n\tpushl\t%esi\n\tmovl    12(%esp), %ecx\n\tmovl\t8(%esp), %esi\n\tdecl\t%ecx\n1:\n\tincl\t%ecx\n\tlodsb\n\tcmpb\t0(%ecx), %al\n\tjne 2f\n\ttestb\t%al, %al\n\tjne 1b\n2:\n\tsubb\t0(%ecx), %al\n\tmovsbl\t%al, %eax\n\tpopl\t%esi\n\tret\nEND(strcmp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/strcmp.S", "line_start": 1, "line_end": 51}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/strcpy.S:1", "text": "/*\t$NetBSD: strcpy.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\t*/\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Joerg Sonnenberger.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: strcpy.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n\nENTRY(strcpy)\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp), %edi\n\tmovl\t16(%esp), %esi\n\tpushl\t%edi\n1:\n\tlodsb\n\tstosb\n\ttestb\t%al, %al\n\tjne 1b\n\tpopl\t%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\nEND(strcpy)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/strcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/strcpy.S", "line_start": 1, "line_end": 49}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/small/strlen.S:1", "text": "/*\t$NetBSD: strlen.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\t*/\n/*-\n * Copyright (c) 2011 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by David Laight.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\tRCSID(\"$NetBSD: strlen.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\nENTRY(strlen)\n        movl    8(%esp), %ecx\n        xorl    %eax, %eax\n        dec     %eax\n1:\n        incl    %eax\n        cmpb    $0, 0(%ecx,%eax,1)\n        jnz 1b\n        ret\nEND(strlen)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/small/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/small/strlen.S", "line_start": 1, "line_end": 42}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcat.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strcat.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\nENTRY(strcat)\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%eax\n\n\t/*\n\t * Align destination to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lscan:\n.Lscan_align:\n\ttestb\t$3,%cl\n\tje\t.Lscan_aligned\n\tcmpb\t$0,(%ecx)\n\tje\t.Lcopy\n\tincl\t%ecx\n\tjmp\t.Lscan_align\n\n\t_ALIGN_TEXT\n.Lscan_aligned:\n.Lscan_loop:\n\tmovl\t(%ecx),%ebx\n\taddl\t$4,%ecx\n\tleal\t-0x01010101(%ebx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lscan_loop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\t/*\n\t * The optimal code for determining whether each byte is zero\n\t * differs by processor.  This space-optimized code should be\n\t * acceptable on all, especially since we don't expect it to\n\t * be run frequently,\n\t */\n\n\ttestb\t%bl,%bl\t\t/* 1st byte == 0? */\n\tjne\t1f\n\tsubl\t$4,%ecx\n\tjmp\t.Lcopy\n\n1:\ttestb\t%bh,%bh\t\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubl\t$3,%ecx\n\tjmp\t.Lcopy", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcat.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcat.S:2", "text": "* return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\t/*\n\t * The optimal code for determining whether each byte is zero\n\t * differs by processor.  This space-optimized code should be\n\t * acceptable on all, especially since we don't expect it to\n\t * be run frequently,\n\t */\n\n\ttestb\t%bl,%bl\t\t/* 1st byte == 0? */\n\tjne\t1f\n\tsubl\t$4,%ecx\n\tjmp\t.Lcopy\n\n1:\ttestb\t%bh,%bh\t\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubl\t$3,%ecx\n\tjmp\t.Lcopy\n\n1:\tshrl\t$16,%ebx\n\ttestb\t%bl,%bl\t\t/* 3rd byte == 0? */\n\tjne\t1f\n\tsubl\t$2,%ecx\n\tjmp\t.Lcopy\n\n1:\ttestb\t%bh,%bh\t\t/* 4th byte == 0? */\n\tjne\t.Lscan_loop\n\tsubl\t$1,%ecx\n\n\t/*\n\t * Align source to a word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lcopy:\n.Lcopy_align:\n\ttestl\t$3,%eax\n\tje\t.Lcopy_aligned\n\tmovb\t(%eax),%bl\n\tincl\t%eax\n\tmovb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tjne\t.Lcopy_align\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n.Lcopy_loop:\n\tmovl\t%ebx,(%ecx)\n\taddl\t$4,%ecx\n.Lcopy_aligned:\n\tmovl\t(%eax),%ebx\n\taddl\t$4,%eax\n\tleal\t-0x01010101(%ebx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lcopy_loop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcat.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcat.S:3", "text": "movb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tjne\t.Lcopy_align\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n.Lcopy_loop:\n\tmovl\t%ebx,(%ecx)\n\taddl\t$4,%ecx\n.Lcopy_aligned:\n\tmovl\t(%eax),%ebx\n\taddl\t$4,%eax\n\tleal\t-0x01010101(%ebx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lcopy_loop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\tmovb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tje\t.Ldone\n\n\tmovb\t%bh,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bh,%bh\n\tje\t.Ldone\n\n\tshrl\t$16,%ebx\n\tmovb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tje\t.Ldone\n\n\tmovb\t%bh,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bh,%bh\n\tjne\t.Lcopy_aligned\n\n.Ldone:\n\tmovl\t8(%esp),%eax\n\tpopl\t%ebx\n\tret\nEND(strcat)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcat.S", "line_start": 81, "line_end": 128}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strchr.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strchr.S,v 1.3 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\nENTRY(strchr)\n\tpushl\t%esi\n\tpushl\t%ebx\n\tmovl\t12(%esp),%eax\n\tmovzbl\t16(%esp),%ecx\n\n\t/*\n\t * Align to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lalign:\n\ttestb\t$3,%al\n\tje\t.Lword_aligned\n\tmovb\t(%eax),%bl\n\tcmpb\t%cl,%bl\n\tje\t.Ldone\n\ttestb\t%bl,%bl\n\tje\t.Lzero\n\tincl\t%eax\n\tjmp\t.Lalign\n\n.Lword_aligned:\n\t/* copy char to all bytes in word */\n\tmovb\t%cl,%ch\n\tmovl\t%ecx,%edx\n\tsall\t$16,%ecx\n\torl\t%edx,%ecx\n\n\t/* Check whether any byte in the word is equal to ch or 0. */\n\t_ALIGN_TEXT\n.Lloop:\n\tmovl\t(%eax),%ebx\n\taddl\t$4,%eax\n\tmovl\t%ebx,%esi\n\tleal\t-0x01010101(%ebx),%edx\n\txorl\t%ecx,%esi\n\tsubl\t$0x01010101,%esi\n\torl\t%esi,%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word match\n\t * ch or are equal to 0.\n\t */\n\n\t/*\n\t * Alignment here avoids a stall on the Athlon, even though", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strchr.S:2", "text": "_ALIGN_TEXT\n.Lloop:\n\tmovl\t(%eax),%ebx\n\taddl\t$4,%eax\n\tmovl\t%ebx,%esi\n\tleal\t-0x01010101(%ebx),%edx\n\txorl\t%ecx,%esi\n\tsubl\t$0x01010101,%esi\n\torl\t%esi,%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word match\n\t * ch or are equal to 0.\n\t */\n\n\t/*\n\t * Alignment here avoids a stall on the Athlon, even though\n\t * it's not a branch target.\n\t */\n\n\t_ALIGN_TEXT\n\tcmpb\t%cl,%bl\t\t/* 1st byte == ch? */\n\tjne\t1f\n\tsubl\t$4,%eax\n\tjmp\t.Ldone\n1:\ttestb\t%bl,%bl\t\t/* 1st byte == 0? */\n\tje\t.Lzero\n\n\tcmpb\t%cl,%bh\t\t/* 2nd byte == ch? */\n\tjne\t1f\n\tsubl\t$3,%eax\n\tjmp\t.Ldone\n1:\ttestb\t%bh,%bh\t\t/* 2nd byte == 0? */\n\tje\t.Lzero\n\n\tshrl\t$16,%ebx\n\tcmpb\t%cl,%bl\t\t/* 3rd byte == ch? */\n\tjne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n1:\ttestb\t%bl,%bl\t\t/* 3rd byte == 0? */\n\tje\t.Lzero\n\n\tcmpb\t%cl,%bh\t\t/* 4th byte == ch? */\n\tjne\t1f\n\tdecl\t%eax\n\tjmp\t.Ldone\n1:\ttestb\t%bh,%bh\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\n.Lzero:\n\t/* If a ch wasn't found, return 0. */\n\txorl\t%eax,%eax\n\n.Ldone:\n\tpopl\t%ebx\n\tpopl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strchr.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strchr.S:3", "text": "jne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n1:\ttestb\t%bl,%bl\t\t/* 3rd byte == 0? */\n\tje\t.Lzero\n\n\tcmpb\t%cl,%bh\t\t/* 4th byte == ch? */\n\tjne\t1f\n\tdecl\t%eax\n\tjmp\t.Ldone\n1:\ttestb\t%bh,%bh\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\n.Lzero:\n\t/* If a ch wasn't found, return 0. */\n\txorl\t%eax,%eax\n\n.Ldone:\n\tpopl\t%ebx\n\tpopl\t%esi\n\tret\nEND(strchr)\n\nSTRONG_ALIAS(index,strchr)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strchr.S", "line_start": 81, "line_end": 104}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcmp.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strcmp.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\nENTRY(strcmp)\n\tpushl\t%esi\n\tpushl\t%ebx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%esi\n\n\t/*\n\t * Align s1 to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Ls1align:\n\ttestb\t$3,%bl\n\tje\t.Ls1aligned\n\tmovb\t(%ebx),%al\n\tincl\t%ebx\n\tmovb\t(%esi),%dl\n\tincl\t%esi\n\ttestb\t%al,%al\n\tje\t.Ldone\n\tcmpb\t%al,%dl\n\tje\t.Ls1align\n\tjmp\t.Ldone\n\n\t/*\n\t * Check whether s2 is aligned to a word boundary.  If it is, we\n\t * can compare by words.  Otherwise we have to compare by bytes.\n\t */\n.Ls1aligned:\n\ttestl\t$3,%esi\n\tjne\t.Lbyte_loop\n\n\tsubl\t$4,%ebx\n\tsubl\t$4,%esi\n\n\t_ALIGN_TEXT\n.Lword_loop:\n\tmovl\t4(%ebx),%eax\n\taddl\t$4,%ebx\n\tmovl\t4(%esi),%edx\n\taddl\t$4,%esi\n\tcmpl\t%eax,%edx\n\tjne\t.Lbyte_loop\n\tsubl\t$0x01010101,%edx\n\tnotl\t%eax\n\tandl\t%eax,%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lword_loop\n\n\t_ALIGN_TEXT", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcmp.S:2", "text": "jne\t.Lbyte_loop\n\n\tsubl\t$4,%ebx\n\tsubl\t$4,%esi\n\n\t_ALIGN_TEXT\n.Lword_loop:\n\tmovl\t4(%ebx),%eax\n\taddl\t$4,%ebx\n\tmovl\t4(%esi),%edx\n\taddl\t$4,%esi\n\tcmpl\t%eax,%edx\n\tjne\t.Lbyte_loop\n\tsubl\t$0x01010101,%edx\n\tnotl\t%eax\n\tandl\t%eax,%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lword_loop\n\n\t_ALIGN_TEXT\n.Lbyte_loop:\n\tmovb\t(%ebx),%al\n\tincl\t%ebx\n\tmovb\t(%esi),%dl\n\tincl\t%esi\n\ttestb\t%al,%al\n\tje\t.Ldone\n\tcmpb\t%al,%dl\n\tje\t.Lbyte_loop\n\n.Ldone:\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tsubl\t%edx,%eax\n\tpopl\t%ebx\n\tpopl\t%esi\n\tret\nEND(strcmp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcmp.S", "line_start": 41, "line_end": 78}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcpy.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strcpy.S,v 1.2 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\n/*\n * This strcpy implementation copies a byte at a time until the\n * source pointer is aligned to a word boundary, it then copies by\n * words until it finds a word containing a zero byte, and finally\n * copies by bytes until the end of the string is reached.\n *\n * While this may result in unaligned stores if the source and\n * destination pointers are unaligned with respect to each other,\n * it is still faster than either byte copies or the overhead of\n * an implementation suitable for machines with strict alignment\n * requirements.\n */\n\nENTRY(strcpy)\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%eax\n\n\t/*\n\t * Align source to a word boundary.\n\t * Consider unrolling loop?\n\t */\n\t_ALIGN_TEXT\n.Lalign:\n\ttestl\t$3,%eax\n\tje\t.Lword_aligned\n\tmovb\t(%eax),%bl\n\tincl\t%eax\n\tmovb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tjne\t.Lalign\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n.Lloop:\n\tmovl\t%ebx,(%ecx)\n\taddl\t$4,%ecx\n.Lword_aligned:\n\tmovl\t(%eax),%ebx\n\taddl\t$4,%eax\n\tleal\t-0x01010101(%ebx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strcpy.S:2", "text": "incl\t%ecx\n\ttestb\t%bl,%bl\n\tjne\t.Lalign\n\tjmp\t.Ldone\n\n\t_ALIGN_TEXT\n.Lloop:\n\tmovl\t%ebx,(%ecx)\n\taddl\t$4,%ecx\n.Lword_aligned:\n\tmovl\t(%eax),%ebx\n\taddl\t$4,%eax\n\tleal\t-0x01010101(%ebx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\tmovb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tje\t.Ldone\n\n\tmovb\t%bh,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bh,%bh\n\tje\t.Ldone\n\n\tshrl\t$16,%ebx\n\tmovb\t%bl,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bl,%bl\n\tje\t.Ldone\n\n\tmovb\t%bh,(%ecx)\n\tincl\t%ecx\n\ttestb\t%bh,%bh\n\tjne\t.Lword_aligned\n\n.Ldone:\n\tmovl\t8(%esp),%eax\n\tpopl\t%ebx\n\tret\nEND(strcpy)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strcpy.S", "line_start": 41, "line_end": 87}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strlen.S:3", "text": "* presented above, code that uses it will be faster as long as\n\t * the rate of false positives is low.\n\t *\n\t * This is likely, because the false positive can only occur\n\t * if the most siginificant bit of a byte within the word is set.\n\t * The expression will never fail for typical 7-bit ASCII strings.\n\t *\n\t * This typically takes 2 instructions not including those needed\n\t * to load constants.\n\t *\n\t *\n\t * [1] Henry S. Warren Jr., \"Hacker's Delight\", Addison-Wesley 2003\n\t *\n\t * [2] International Business Machines, \"The PowerPC Compiler Writer's\n\t *     Guide\", Warthman Associates, 1996\n\t */\n\n\t_ALIGN_TEXT\n.Lword_aligned:\n.Lloop:\n\tmovl\t(%eax),%ecx\n\taddl\t$4,%eax\n\tleal\t-0x01010101(%ecx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\t/*\n\t * The optimal code for determining whether each byte is zero\n\t * differs by processor.  This space-optimized code should be\n\t * acceptable on all, especially since we don't expect it to\n\t * be run frequently,\n\t */\n\n\ttestb\t%cl,%cl\t\t/* 1st byte == 0? */\n\tjne\t1f\n\tsubl\t$4,%eax\n\tjmp\t.Ldone\n\n1:\ttestb\t%ch,%ch\t\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubl\t$3,%eax\n\tjmp\t.Ldone\n\n1:\tshrl\t$16,%ecx\n\ttestb\t%cl,%cl\t\t/* 3rd byte == 0? */\n\tjne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n\n1:\ttestb\t%ch,%ch\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\tdecl\t%eax\n\n.Ldone:\n\tsubl\t4(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strlen.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strlen.S:4", "text": "subl\t$4,%eax\n\tjmp\t.Ldone\n\n1:\ttestb\t%ch,%ch\t\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubl\t$3,%eax\n\tjmp\t.Ldone\n\n1:\tshrl\t$16,%ecx\n\ttestb\t%cl,%cl\t\t/* 3rd byte == 0? */\n\tjne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n\n1:\ttestb\t%ch,%ch\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\tdecl\t%eax\n\n.Ldone:\n\tsubl\t4(%esp),%eax\n\tret\nEND(strlen)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strlen.S", "line_start": 121, "line_end": 142}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strlen.S:3", "text": "* presented above, code that uses it will be faster as long as\n\t * the rate of false positives is low.\n\t *\n\t * This is likely, because the false positive can only occur\n\t * if the most siginificant bit of a byte within the word is set.\n\t * The expression will never fail for typical 7-bit ASCII strings.\n\t *\n\t * This typically takes 2 instructions not including those needed\n\t * to load constants.\n\t *\n\t *\n\t * [1] Henry S. Warren Jr., \"Hacker's Delight\", Addison-Westley 2003\n\t *\n\t * [2] International Business Machines, \"The PowerPC Compiler Writer's\n\t *     Guide\", Warthman Associates, 1996\n\t */\n\n\t_ALIGN_TEXT\n.Lword_aligned:\n.Lloop:\n\tmovl\t(%eax),%ecx\n\taddl\t$4,%eax\n\tleal\t-0x01010101(%ecx),%edx\n\ttestl\t$0x80808080,%edx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\t/*\n\t * The optimal code for determining whether each byte is zero\n\t * differs by processor.  This space-optimized code should be\n\t * acceptable on all, especially since we don't expect it to\n\t * be run frequently,\n\t */\n\n\ttestb\t%cl,%cl\t\t/* 1st byte == 0? */\n\tjne\t1f\n\tsubl\t$4,%eax\n\tjmp\t.Ldone\n\n1:\ttestb\t%ch,%ch\t\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubl\t$3,%eax\n\tjmp\t.Ldone\n\n1:\tshrl\t$16,%ecx\n\ttestb\t%cl,%cl\t\t/* 3rd byte == 0? */\n\tjne\t1f\n\tsubl\t$2,%eax\n\tjmp\t.Ldone\n\n1:\ttestb\t%ch,%ch\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\tdecl\t%eax\n\n.Ldone:\n\tsubl\t4(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strlen.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/i386/string/strlen.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strrchr.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strrchr.S,v 1.3 2014/03/22 19:38:46 jakllsch Exp $\")\n#endif\n\nENTRY(strrchr)\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%ebx\n\tmovl\t16(%esp),%edx\n\tmovzbl\t20(%esp),%ecx\n\n\t/* zero return value */\n\txorl\t%eax,%eax\n\n\t/*\n\t * Align to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lalign:\n\ttestb\t$3,%dl\n\tje\t.Lword_aligned\n\tmovb\t(%edx),%bl\n\tcmpb\t%cl,%bl\n\tjne\t1f\n\tmovl\t%edx,%eax\n1:\ttestb\t%bl,%bl\n\tje\t.Ldone\n\tincl\t%edx\n\tjmp\t.Lalign\n\n.Lword_aligned:\n\t/* copy char to all bytes in word */\n\tmovb\t%cl,%ch\n\tmovl\t%ecx,%edi\n\tsall\t$16,%ecx\n\torl\t%edi,%ecx\n\n\t/* Check whether any byte in the word is equal to ch or 0.  */\n\t_ALIGN_TEXT\n.Lloop:\n\tmovl\t(%edx),%ebx\n\taddl\t$4,%edx\n\tmovl\t%ebx,%esi\n\tleal\t-0x01010101(%ebx),%edi\n\txorl\t%ecx,%esi\n\tsubl\t$0x01010101,%esi\n\torl\t%esi,%edi\n\ttestl\t$0x80808080,%edi\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word match", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strrchr.S:2", "text": "movl\t%ecx,%edi\n\tsall\t$16,%ecx\n\torl\t%edi,%ecx\n\n\t/* Check whether any byte in the word is equal to ch or 0.  */\n\t_ALIGN_TEXT\n.Lloop:\n\tmovl\t(%edx),%ebx\n\taddl\t$4,%edx\n\tmovl\t%ebx,%esi\n\tleal\t-0x01010101(%ebx),%edi\n\txorl\t%ecx,%esi\n\tsubl\t$0x01010101,%esi\n\torl\t%esi,%edi\n\ttestl\t$0x80808080,%edi\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word match\n\t * ch or are equal to 0.\n\t */\n\n\t_ALIGN_TEXT\n\tcmpb\t%cl,%bl\t\t/* 1st byte == ch? */\n\tjne\t1f\n\tleal\t-4(%edx),%eax\n1:\ttestb\t%bl,%bl\t\t/* 1st byte == 0? */\n\tje\t.Ldone\n\n\tcmpb\t%cl,%bh\t\t/* 2nd byte == ch? */\n\tjne\t1f\n\tleal\t-3(%edx),%eax\n1:\ttestb\t%bh,%bh\t\t/* 2nd byte == 0? */\n\tje\t.Ldone\n\n\tshrl\t$16,%ebx\n\tcmpb\t%cl,%bl\t\t/* 3rd byte == ch? */\n\tjne\t1f\n\tleal\t-2(%edx),%eax\n1:\ttestb\t%bl,%bl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tcmpb\t%cl,%bh\t\t/* 4th byte == ch? */\n\tjne\t1f\n\tleal\t-1(%edx),%eax\n1:\ttestb\t%bh,%bh\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\n.Ldone:\n\tpopl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\nEND(strrchr)\n\nSTRONG_ALIAS(rindex,strrchr)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strrchr.S", "line_start": 41, "line_end": 97}
{"id": "NetBSD/src:common/lib/libc/arch/i386/string/strrchr.S:3", "text": "1:\ttestb\t%bl,%bl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tcmpb\t%cl,%bh\t\t/* 4th byte == ch? */\n\tjne\t1f\n\tleal\t-1(%edx),%eax\n1:\ttestb\t%bh,%bh\t\t/* 4th byte == 0? */\n\tjne\t.Lloop\n\n.Ldone:\n\tpopl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\nEND(strrchr)\n\nSTRONG_ALIAS(rindex,strrchr)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/i386/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/i386/string/strrchr.S", "line_start": 81, "line_end": 97}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.3 2009/01/04 17:54:29 pooka Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\"  || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\tatomic_add_64_cas.c atomic_add_64_nv_cas.c \\\n\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\tatomic_and_64_cas.c atomic_and_64_nv_cas.c \\\n\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\tatomic_or_64_cas.c atomic_or_64_nv_cas.c\n\nSRCS+=\tatomic.S\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\"  || ${LIB} == \"pthread\")\n\nSRCS += atomic_init_cas.c\n\n.endif", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/Makefile.inc", "line_start": 1, "line_end": 21}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:1", "text": "/*\t$NetBSD: atomic.S,v 1.7 2022/04/09 23:32:51 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Takayoshi Kochi.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#ifdef _KERNEL\n#define\tALIAS(f, t)\tSTRONG_ALIAS(f,t)\n#else\n#define\tALIAS(f, t)\tWEAK_ALIAS(f,t)\n#endif\n\n\t.text\n\nENTRY(_atomic_dec_32,1)\n\tfetchadd4.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_32)\n\nENTRY(_atomic_dec_64,1)\n\tfetchadd8.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_64)\n\nENTRY(_atomic_dec_32_nv,1)\n\tfetchadd4.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_dec_64_nv,1)\n\tfetchadd8.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:2", "text": "ENTRY(_atomic_dec_32,1)\n\tfetchadd4.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_32)\n\nENTRY(_atomic_dec_64,1)\n\tfetchadd8.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_64)\n\nENTRY(_atomic_dec_32_nv,1)\n\tfetchadd4.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_dec_64_nv,1)\n\tfetchadd8.rel\tr8=[r32],-1\n\tbr.ret.sptk\trp\nEND(_atomic_dec_64_nv)\n\nENTRY(_atomic_inc_32,1)\n\tfetchadd4.rel\tr8=[r32],1\n\tbr.ret.sptk\trp\nEND(_atomic_inc_32)\n\nENTRY(_atomic_inc_64,1)\n\tfetchadd8.rel\tr8=[r32],1\n\tbr.ret.sptk\trp\nEND(_atomic_inc_64)\n\nENTRY(_atomic_inc_32_nv,1)\n\tfetchadd4.rel\tr8=[r32],1\n\tbr.ret.sptk\trp\nEND(_atomic_inc_32_nv)\n\nENTRY(_atomic_inc_64_nv,1)\n\tfetchadd8.rel\tr8=[r32],1\n\tbr.ret.sptk\trp\nEND(_atomic_inc_64_nv)\n\nENTRY(_atomic_swap_32,2)\n\txchg4\t\tr8=[r32],r33\n\t;;\n\tmov\t\tr33=r8\n\tbr.ret.sptk\trp\nEND(_atomic_swap_32)\n\nENTRY(_atomic_swap_64,2)\n\txchg8\t\tr8=[r32],r33\n\t;;\n\tmov\t\tr33=r8\n\tbr.ret.sptk\trp\nEND(_atomic_swap_64)\n\nENTRY(_atomic_cas_32,3)\n\tmov\t\tar.ccv=r33\n\t;;\n\tcmpxchg4.acq\tr8=[r32],r34,ar.ccv\n\tbr.ret.sptk\trp", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:3", "text": "ENTRY(_atomic_swap_32,2)\n\txchg4\t\tr8=[r32],r33\n\t;;\n\tmov\t\tr33=r8\n\tbr.ret.sptk\trp\nEND(_atomic_swap_32)\n\nENTRY(_atomic_swap_64,2)\n\txchg8\t\tr8=[r32],r33\n\t;;\n\tmov\t\tr33=r8\n\tbr.ret.sptk\trp\nEND(_atomic_swap_64)\n\nENTRY(_atomic_cas_32,3)\n\tmov\t\tar.ccv=r33\n\t;;\n\tcmpxchg4.acq\tr8=[r32],r34,ar.ccv\n\tbr.ret.sptk\trp\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_64,3)\n\tmov\t\tar.ccv=r33\n\t;;\n\tcmpxchg8.acq\tr8=[r32],r34,ar.ccv\n\tbr.ret.sptk\trp\nEND(_atomic_cas_64)\n\nENTRY(_membar_consumer,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_consumer)\n\nENTRY(_membar_producer,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_producer)\n\nENTRY(_membar_acquire,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_acquire)\n\nENTRY(_membar_release,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_release)\n\nENTRY(_membar_enter,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_enter)\n\nENTRY(_membar_exit,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_exit)\n\nENTRY(_membar_sync,0)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:4", "text": "mf\n\tbr.ret.sptk\trp\nEND(_membar_acquire)\n\nENTRY(_membar_release,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_release)\n\nENTRY(_membar_enter,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_enter)\n\nENTRY(_membar_exit,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_exit)\n\nENTRY(_membar_sync,0)\n\tmf\n\tbr.ret.sptk\trp\nEND(_membar_sync)\n\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_64,_atomic_and_64)\nALIAS(atomic_and_ulong,_atomic_and_64)\nALIAS(atomic_and_ptr,_atomic_and_64)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_64_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:5", "text": "ALIAS(atomic_and_ulong,_atomic_and_64)\nALIAS(atomic_and_ptr,_atomic_and_64)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_64_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_ulong,_atomic_or_64)\nALIAS(atomic_or_ptr,_atomic_or_64)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_64_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_64,_atomic_swap_64)\nALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nALIAS(atomic_cas_64_ni,_atomic_cas_64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:6", "text": "ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_64_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_64,_atomic_swap_64)\nALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nALIAS(atomic_cas_64_ni,_atomic_cas_64)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\n\nALIAS(membar_consumer,_membar_consumer)\nALIAS(membar_producer,_membar_producer)\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_enter,_membar_enter)\nALIAS(membar_exit,_membar_exit)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_64)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/atomic/atomic.S:7", "text": "STRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_64)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/atomic/atomic.S", "line_start": 241, "line_end": 282}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/bcopy.S:1", "text": "/*\t$NetBSD: bcopy.S,v 1.1 2016/08/05 15:06:02 scole Exp $\t*/\n\n/*-\n * Copyright (c) 2000 Doug Rabson\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n *\n * __FBSDID(\"$FreeBSD: releng/10.1/lib/libc/ia64/string/bcopy.S 125669 2004-02-10 20:45:28Z cperciva $\");\n */\n\n#include <machine/asm.h>\n\n/*\n * void\n * bcopy(const void *src, void *dst, size_t len);\n */\n\n/*\n * Not the fastest bcopy in the world.\n */\nENTRY(bcopy, 3)\n\n\tcmp.le\tp6,p0=in2,r0\t\t\t// bail if len <= 0\n(p6)\tbr.ret.spnt.few rp\n\n\tsub\tr14=in1,in0 ;;\t\t\t// check for overlap\n\tcmp.ltu\tp6,p0=r14,in2\t\t\t// dst-src < len\n(p6)\tbr.cond.spnt.few 5f\n\n\textr.u\tr14=in0,0,3\t\t\t// src & 7\n\textr.u\tr15=in1,0,3 ;;\t\t\t// dst & 7\n\tcmp.eq\tp6,p0=r14,r15\t\t\t// different alignment?\n(p6)\tbr.cond.spnt.few 2f\t\t\t// branch if same alignment\n\n1:\tld1\tr14=[in0],1 ;;\t\t\t// copy bytewise\n\tst1\t[in1]=r14,1\n\tadd\tin2=-1,in2 ;;\t\t\t// len--\n\tcmp.ne\tp6,p0=r0,in2\n(p6)\tbr.cond.dptk.few 1b\t\t\t// loop\n\tbr.ret.sptk.few rp\t\t\t// done", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/bcopy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/bcopy.S:2", "text": "ENTRY(bcopy, 3)\n\n\tcmp.le\tp6,p0=in2,r0\t\t\t// bail if len <= 0\n(p6)\tbr.ret.spnt.few rp\n\n\tsub\tr14=in1,in0 ;;\t\t\t// check for overlap\n\tcmp.ltu\tp6,p0=r14,in2\t\t\t// dst-src < len\n(p6)\tbr.cond.spnt.few 5f\n\n\textr.u\tr14=in0,0,3\t\t\t// src & 7\n\textr.u\tr15=in1,0,3 ;;\t\t\t// dst & 7\n\tcmp.eq\tp6,p0=r14,r15\t\t\t// different alignment?\n(p6)\tbr.cond.spnt.few 2f\t\t\t// branch if same alignment\n\n1:\tld1\tr14=[in0],1 ;;\t\t\t// copy bytewise\n\tst1\t[in1]=r14,1\n\tadd\tin2=-1,in2 ;;\t\t\t// len--\n\tcmp.ne\tp6,p0=r0,in2\n(p6)\tbr.cond.dptk.few 1b\t\t\t// loop\n\tbr.ret.sptk.few rp\t\t\t// done\n\n2:\tcmp.eq\tp6,p0=r14,r0\t\t\t// aligned?\n(p6)\tbr.cond.sptk.few 4f\n\n3:\tld1\tr14=[in0],1 ;;\t\t\t// copy bytewise\n\tst1\t[in1]=r14,1\n\textr.u\tr15=in0,0,3\t\t\t// src & 7\n\tadd\tin2=-1,in2 ;;\t\t\t// len--\n\tcmp.eq\tp6,p0=r0,in2\t\t\t// done?\n\tcmp.eq\tp7,p0=r0,r15 ;;\t\t\t// aligned now?\n(p6)\tbr.ret.spnt.few rp\t\t\t// return if done\n(p7)\tbr.cond.spnt.few 4f\t\t\t// go to main copy\n\tbr.cond.sptk.few 3b\t\t\t// more bytes to copy\n\n\t// At this point, in2 is non-zero\n\n4:\tmov\tr14=8 ;;\n\tcmp.ltu\tp6,p0=in2,r14 ;;\t\t// len < 8?\n(p6)\tbr.cond.spnt.few 1b\t\t\t// byte copy the end\n\tld8\tr15=[in0],8 ;;\t\t\t// copy word\n\tst8\t[in1]=r15,8\n\tadd\tin2=-8,in2 ;;\t\t\t// len -= 8\n\tcmp.ne\tp6,p0=r0,in2\t\t\t// done?\n(p6)\tbr.cond.spnt.few 4b\t\t\t// again\n\n\tbr.ret.sptk.few rp\t\t\t// return\n\n\t// Don't bother optimising overlap case\n\n5:\tadd\tin0=in0,in2\n\tadd\tin1=in1,in2 ;;\n\tadd\tin0=-1,in0\n\tadd\tin1=-1,in1 ;;\n\n6:\tld1\tr14=[in0],-1 ;;\n\tst1\t[in1]=r14,-1\n\tadd\tin2=-1,in2 ;;\n\tcmp.ne\tp6,p0=r0,in2\n(p6)\tbr.cond.spnt.few 6b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/bcopy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/bcopy.S:3", "text": "st8\t[in1]=r15,8\n\tadd\tin2=-8,in2 ;;\t\t\t// len -= 8\n\tcmp.ne\tp6,p0=r0,in2\t\t\t// done?\n(p6)\tbr.cond.spnt.few 4b\t\t\t// again\n\n\tbr.ret.sptk.few rp\t\t\t// return\n\n\t// Don't bother optimising overlap case\n\n5:\tadd\tin0=in0,in2\n\tadd\tin1=in1,in2 ;;\n\tadd\tin0=-1,in0\n\tadd\tin1=-1,in1 ;;\n\n6:\tld1\tr14=[in0],-1 ;;\n\tst1\t[in1]=r14,-1\n\tadd\tin2=-1,in2 ;;\n\tcmp.ne\tp6,p0=r0,in2\n(p6)\tbr.cond.spnt.few 6b\n\n\tbr.ret.sptk.few rp\nEND(bcopy)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/bcopy.S", "line_start": 81, "line_end": 102}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/bzero.S:1", "text": "/*\t$NetBSD: bzero.S,v 1.1 2016/08/05 15:06:02 scole Exp $\t*/\n\n/*-\n * Copyright (c) 2000 Doug Rabson\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n *\n * __FBSDID(\"$FreeBSD: releng/10.1/lib/libc/ia64/string/bzero.S 125669 2004-02-10 20:45:28Z cperciva $\");\n */\n\n#include <machine/asm.h>\n\n/*\n * void\n * bzero(void *b, size_t len);\n */\nENTRY(bzero, 2)\n\n\tcmp.le\tp6,p0=in1,r0\t\t\t// bail if len <= 0\n(p6)\tbr.ret.spnt.few rp\n\t;;\n\tmov\tr14=ar.lc\t\t\t// save ar.lc\n\n\tcmp.ltu\tp6,p0=17,in1\t\t\t// check for small\n(p6)\tbr.dptk.few 3f\n\n1:\tadd\tr15=-1,in1 ;;\n\tmov\tar.lc=r15 ;;\n2:\tst1\t[in0]=r0,1\t\t\t// zero one byte\n\tbr.cloop.sptk.few 2b\t\t\t// loop\n\n\t;;\n\tmov\tar.lc=r14\t\t\t// done\n\tbr.ret.sptk.few rp\n\n\t// Zero up to 8byte alignment\n\n3:\ttbit.nz\tp6,p0=in0,0 ;;\n(p6)\tst1\t[in0]=r0,1\n(p6)\tadd\tin1=-1,in1 ;;", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/bzero.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/bzero.S:2", "text": ";;\n\tmov\tr14=ar.lc\t\t\t// save ar.lc\n\n\tcmp.ltu\tp6,p0=17,in1\t\t\t// check for small\n(p6)\tbr.dptk.few 3f\n\n1:\tadd\tr15=-1,in1 ;;\n\tmov\tar.lc=r15 ;;\n2:\tst1\t[in0]=r0,1\t\t\t// zero one byte\n\tbr.cloop.sptk.few 2b\t\t\t// loop\n\n\t;;\n\tmov\tar.lc=r14\t\t\t// done\n\tbr.ret.sptk.few rp\n\n\t// Zero up to 8byte alignment\n\n3:\ttbit.nz\tp6,p0=in0,0 ;;\n(p6)\tst1\t[in0]=r0,1\n(p6)\tadd\tin1=-1,in1 ;;\n\n\ttbit.nz\tp6,p0=in0,1 ;;\n(p6)\tst2\t[in0]=r0,2\n(p6)\tadd\tin1=-2,in1 ;;\n\n\ttbit.nz\tp6,p0=in0,2 ;;\n(p6)\tst4\t[in0]=r0,4\n(p6)\tadd\tin1=-4,in1\n\n\t;;\n\tshr.u\tr15=in1,3\t\t\t// word count\n\textr.u\tin1=in1,0,3 ;;\t\t\t// trailing bytes\n\tcmp.eq\tp6,p0=r15,r0\t\t\t// check for zero\n\tcmp.ne\tp7,p0=in1,r0\n(p6)\tbr.dpnt.few 1b\t\t\t\t// zero last bytes\n\n\tadd\tr15=-1,r15 ;;\n\tmov\tar.lc=r15 ;;\n4:\tst8\t[in0]=r0,8\n\tbr.cloop.sptk.few 4b\n\n(p7)\tbr.dpnt.few 1b\t\t\t\t// zero last bytes\n\n\t;;\n\tmov\tar.lc=r14\t\t\t// done\n\tbr.ret.sptk.few rp\n\nEND(bzero)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/bzero.S", "line_start": 41, "line_end": 88}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/ffs.S:2", "text": "* int\n * ffs(int value);\n */\nENTRY(ffs, 1)\n\tsxt4\tr14=in0 ;;\n\tcmp.eq\tp6,p0=r14,r0\n(p6)\tbr.dpnt.few Lallzero\n\n\t/*\n\t * Initialize return value (ret0), and set up r15 so that it\n\t * contains the mask with only the lowest bit set.\n\t */\n\tsub\tr15=r0,r14\n\tmov\tret0=1 ;;\n\tand\tr15=r14,r15 ;;\n\n\textr.u\tr16=r15,0,8 ;;\n\tcmp.ne\tp6,p0=r0,r16\n(p6)\tbr.dptk.few Ldo8\n\n\t/*\n\t * If lower 16 bits empty, add 16 to result and use upper 16.\n\t */\n\textr.u\tr16=r15,0,16 ;;\n\tcmp.ne\tp6,p0=r0,r16\n(p6)\tbr.dptk.few Ldo16\n\textr.u\tr15=r15,16,16\n\tadd\tret0=16,ret0 ;;\n\nLdo16:\n\t/*\n\t * If lower 8 bits empty, add 8 to result and use upper 8.\n\t */\n\textr.u\tr16=r15,0,8 ;;\n\tcmp.ne\tp6,p0=r0,r16\n(p6)\tbr.dptk.few Ldo8\n\textr.u\tr15=r15,8,24\n\tadd\tret0=8,ret0 ;;\n\nLdo8:\n\tand\tr16=0x0f,r15\t\t/* lower 4 of 8 empty? */\n\tand\tr17=0x33,r15\t\t/* lower 2 of each 4 empty? */\n\tand\tr18=0x55,r15 ;;\t\t/* lower 1 of each 2 empty? */\n\tcmp.ne\tp6,p0=r16,r0\n\tcmp.ne\tp7,p0=r17,r0\n\tcmp.ne\tp8,p0=r18,r0\n\n\t/* If lower 4 bits empty, add 4 to result. */\n(p6)\tbr.dptk.few Ldo4\n\tadd\tret0=4,ret0 ;;\n\nLdo4:\t/* If lower 2 bits of each 4 empty, add 2 to result. */\n(p7)\tbr.dptk.few Ldo2\n\tadd\tret0=2,ret0 ;;\n\nLdo2:\t/* If lower bit of each 2 empty, add 1 to result. */\n(p8)\tbr.dptk.few Ldone\n\tadd\tret0=1,ret0\n\nLdone:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/ffs.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/ia64/string/ffs.S:3", "text": "and\tr16=0x0f,r15\t\t/* lower 4 of 8 empty? */\n\tand\tr17=0x33,r15\t\t/* lower 2 of each 4 empty? */\n\tand\tr18=0x55,r15 ;;\t\t/* lower 1 of each 2 empty? */\n\tcmp.ne\tp6,p0=r16,r0\n\tcmp.ne\tp7,p0=r17,r0\n\tcmp.ne\tp8,p0=r18,r0\n\n\t/* If lower 4 bits empty, add 4 to result. */\n(p6)\tbr.dptk.few Ldo4\n\tadd\tret0=4,ret0 ;;\n\nLdo4:\t/* If lower 2 bits of each 4 empty, add 2 to result. */\n(p7)\tbr.dptk.few Ldo2\n\tadd\tret0=2,ret0 ;;\n\nLdo2:\t/* If lower bit of each 2 empty, add 1 to result. */\n(p8)\tbr.dptk.few Ldone\n\tadd\tret0=1,ret0\n\nLdone:\n\tbr.ret.sptk.few rp\n\nLallzero:\n\tmov\tret0=0\n\tbr.ret.sptk.few rp\nEND(ffs)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/ia64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/ia64/string/ffs.S", "line_start": 81, "line_end": 106}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.18 2025/12/19 03:29:54 thorpej Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_cas.S\n\n.if ${LIB} == \"kern\"\nSRCS+=\tatomic_cas_normc.c\n.endif\t# LIB == \"kern\"\n\nSRCS+=  atomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\tatomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c \\\n\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\tatomic_swap_32_cas.c \\\n\tmembar_ops_nop.c\n\n.if ${LIB} == \"c\"\nSRCS+=  atomic_add_16_cas.c atomic_add_8_cas.c\t\t\t\t\\\n\tatomic_and_32_cas.c atomic_and_16_cas.c atomic_and_8_cas.c\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_or_32_cas.c atomic_or_16_cas.c atomic_or_8_cas.c\t\t\\\n\tatomic_swap_32_cas.c atomic_swap_16_cas.c atomic_swap_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\n\nSRCS+=\tatomic_c11_compare_exchange_cas_8.c \\\n\tatomic_c11_compare_exchange_cas_16.c \\\n\tatomic_c11_compare_exchange_cas_32.c\n.endif\t# LIB == \"c\"\n\n.endif\t# LIB == (\"kern\" || \"c\" || \"pthread\" || \"rump\")\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\nSRCS+=\tatomic_init_m68k.c\n.endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_is_lock_free.c\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/atomic/Makefile.inc", "line_start": 1, "line_end": 44}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.17 2025/10/20 14:31:36 nat Exp $\n\n#\n# Note: The atomic operations here in these assembly files are atomic\n# only with respect to regular memory on uniprocessor systems.  Since\n# we don't support any MP m68k systems, this is just fine.  If we ever\n# do, then these routines will probably need to be replaced with CAS-\n# based routines (CAS generates an atomic bus cycle, whereas these\n# others are merely single-instruction).\n#\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n.if ${MACHINE_ARCH:S/m68ksf/m68k/} == \"m68k\"\n\nSRCS+=\tatomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \\\n\tatomic_inc.S atomic_or.S atomic_swap.S membar_ops_nop.c \\\n\tatomic_sub.S atomic_xor.S atomic_nand.S\n\n.else\n\nSRCS+=  atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \\\n\tatomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \\\n\tatomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c\n\n.if ${LIB} == \"c\"\nSRCS+=  atomic_add_16_cas.c atomic_add_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_and_32_cas.c atomic_and_16_cas.c atomic_and_8_cas.c\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_or_32_cas.c atomic_or_16_cas.c atomic_or_8_cas.c\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_swap_32_cas.c atomic_swap_16_cas.c atomic_swap_8_cas.c\n\nSRCS+=\tatomic_c11_compare_exchange_cas_8.c \\\n\tatomic_c11_compare_exchange_cas_16.c \\\n\tatomic_c11_compare_exchange_cas_32.c\n.endif\n\n.endif\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n.if ${MACHINE_ARCH:S/m68ksf/m68k/} == \"m68k\"\n\nSRCS+=\tatomic_init_cas.c\n\n.else\n\nSRCS+=\tatomic_init_testset.c\nSRCS+=\tatomic_cas_68000.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP -D__HAVE_ASM_ATOMIC_CAS_16_UP \\\n\t -D__HAVE_ASM_ATOMIC_CAS_8_UP\n\n.endif\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "e6ae303e03a6ad98c6255b204cd67add2068bb1f", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/e6ae303e03a6ad98c6255b204cd67add2068bb1f/common/lib/libc/arch/m68k/atomic/Makefile.inc", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/Makefile.inc:2", "text": ".endif\n\n.endif\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n.if ${MACHINE_ARCH:S/m68ksf/m68k/} == \"m68k\"\n\nSRCS+=\tatomic_init_cas.c\n\n.else\n\nSRCS+=\tatomic_init_testset.c\nSRCS+=\tatomic_cas_68000.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP -D__HAVE_ASM_ATOMIC_CAS_16_UP \\\n\t -D__HAVE_ASM_ATOMIC_CAS_8_UP\n\n.endif\n.endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_is_lock_free.c\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "e6ae303e03a6ad98c6255b204cd67add2068bb1f", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/e6ae303e03a6ad98c6255b204cd67add2068bb1f/common/lib/libc/arch/m68k/atomic/Makefile.inc", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.16 2023/03/30 15:03:35 riastradh Exp $\n\n#\n# Note: The atomic operations here in these assembly files are atomic\n# only with respect to regular memory on uniprocessor systems.  Since\n# we don't support any MP m68k systems, this is just fine.  If we ever\n# do, then these routines will probably need to be replaced with CAS-\n# based routines (CAS generates an atomic bus cycle, whereas these\n# others are merely single-instruction).\n#\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n.if ${MACHINE_ARCH} == \"m68k\"\n\nSRCS+=\tatomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \\\n\tatomic_inc.S atomic_or.S atomic_swap.S membar_ops_nop.c \\\n\tatomic_sub.S atomic_xor.S atomic_nand.S\n\n.else\n\nSRCS+=  atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \\\n\tatomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \\\n\tatomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c\n\n.if ${LIB} == \"c\"\nSRCS+=  atomic_add_16_cas.c atomic_add_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_and_32_cas.c atomic_and_16_cas.c atomic_and_8_cas.c\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_or_32_cas.c atomic_or_16_cas.c atomic_or_8_cas.c\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_swap_32_cas.c atomic_swap_16_cas.c atomic_swap_8_cas.c\n\nSRCS+=\tatomic_c11_compare_exchange_cas_8.c \\\n\tatomic_c11_compare_exchange_cas_16.c \\\n\tatomic_c11_compare_exchange_cas_32.c\n.endif\n\n.endif\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n.if ${MACHINE_ARCH} == \"m68k\"\n\nSRCS+=\tatomic_init_cas.c\n\n.else\n\nSRCS+=\tatomic_init_testset.c\nSRCS+=\tatomic_cas_68000.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP -D__HAVE_ASM_ATOMIC_CAS_16_UP \\\n\t -D__HAVE_ASM_ATOMIC_CAS_8_UP\n\n.endif\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/Makefile.inc", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/Makefile.inc:2", "text": ".endif\n\n.endif\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n.if ${MACHINE_ARCH} == \"m68k\"\n\nSRCS+=\tatomic_init_cas.c\n\n.else\n\nSRCS+=\tatomic_init_testset.c\nSRCS+=\tatomic_cas_68000.S\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP -D__HAVE_ASM_ATOMIC_CAS_16_UP \\\n\t -D__HAVE_ASM_ATOMIC_CAS_8_UP\n\n.endif\n.endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_is_lock_free.c\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/Makefile.inc", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_add.S:1", "text": "/*\t$NetBSD: atomic_add.S,v 1.11 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\t.align\t2\n\nENTRY(_atomic_add_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\taddl\t%d0, (%a0)\n\trts\nEND(_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\taddl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_add_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_add.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_add.S:2", "text": "rts\nEND(_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\taddl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\nCRT_ALIAS(__sync_add_and_fetch_4,_atomic_add_32_nv)\n\nENTRY(__sync_fetch_and_add_4)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\taddl\t8(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(__sync_fetch_and_add_4)\n\nENTRY(_atomic_add_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\taddw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_add_16_nv)\n\nCRT_ALIAS(__sync_add_and_fetch_2,_atomic_add_16_nv)\n\nENTRY(__sync_fetch_and_add_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\taddw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_add.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_add.S:3", "text": "ENTRY(_atomic_add_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\taddw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_add_16_nv)\n\nCRT_ALIAS(__sync_add_and_fetch_2,_atomic_add_16_nv)\n\nENTRY(__sync_fetch_and_add_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\taddw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_add_2)\n\nENTRY(_atomic_add_8_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\taddb\t8(%sp), %d0\n\tcasb\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_add_8_nv)\n\nCRT_ALIAS(__sync_add_and_fetch_1,_atomic_add_8_nv)\n\nENTRY(__sync_fetch_and_add_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\taddb\t8(%sp), %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_add_1)\n\nCRT_ALIAS(__atomic_fetch_add_1,__sync_fetch_and_add_1)\nCRT_ALIAS(__atomic_fetch_add_2,__sync_fetch_and_add_2)\nCRT_ALIAS(__atomic_fetch_add_4,__sync_fetch_and_add_4)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_add.S", "line_start": 81, "line_end": 128}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_and.S:1", "text": "/*\t$NetBSD: atomic_and.S,v 1.12 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_and_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tandl\t%d0, (%a0)\n\trts\nEND(_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ptr,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nENTRY(_atomic_and_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tandl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_and.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_and.S:2", "text": "END(_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ptr,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)\n\nENTRY(_atomic_and_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tandl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_ptr_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_32_nv)\nCRT_ALIAS(__sync_and_and_fetch_4,_atomic_and_32_nv)\n\nENTRY(__sync_fetch_and_and_4)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tandl\t8(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(__sync_fetch_and_and_4)\n\n\nENTRY(_atomic_and_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_and_16_nv)\n\nCRT_ALIAS(__sync_and_and_fetch_2,_atomic_and_16_nv)\n\nENTRY(__sync_fetch_and_and_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_and.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_and.S:3", "text": "ENTRY(_atomic_and_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_and_16_nv)\n\nCRT_ALIAS(__sync_and_and_fetch_2,_atomic_and_16_nv)\n\nENTRY(__sync_fetch_and_and_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_and_2)\n\n\nENTRY(_atomic_and_8_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tandb\t8(%sp), %d0\n\tcasb\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_and_8_nv)\n\nCRT_ALIAS(__sync_and_and_fetch_1,_atomic_and_8_nv)\n\nENTRY(__sync_fetch_and_and_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tandb\t8(%sp), %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_and_1)\n\nCRT_ALIAS(__atomic_fetch_and_1,__sync_fetch_and_and_1)\nCRT_ALIAS(__atomic_fetch_and_2,__sync_fetch_and_and_2)\nCRT_ALIAS(__atomic_fetch_and_4,__sync_fetch_and_and_4)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_and.S", "line_start": 81, "line_end": 128}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:2", "text": "*\n * On such systems, _atomic_cas_16() and _atomic_cas_8() are provided\n * by atomic_cas_by_cas32.c.\n */\n\n/* =====> restartable atomic sequence implementation (userspace only) <===== */\n\n#if !defined(_KERNEL)\nENTRY(_atomic_cas_32_ras)\n\t.hidden _C_LABEL(_atomic_cas_32_ras)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_32_ras)\n\tmovl\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpl\t8(%sp), %d0\t\t/* Same as old? */\n\tjne\t1f\t\t\t/* Nope */\n\tmovl\t12(%sp), (%a0)\t\t/* *ptr = new */\nRAS_END_ASM_HIDDEN(_atomic_cas_32_ras)\n1:\tmovl\t%d0, %a0\t\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_cas_32_ras)\n\nENTRY(_atomic_cas_16_ras)\n\t.hidden\t_C_LABEL(_atomic_cas_16_ras)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16_ras)\n\tmovw\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpw\t8+2(%sp), %d0\t\t/* Same as old? (lower word) */\n\tjne\t1f\t\t\t/* Nope */\n\tmovw\t12+2(%sp), (%a0)\t/* *ptr = new (lower word) */\nRAS_END_ASM_HIDDEN(_atomic_cas_16_ras)\n1:\trts\nEND(_atomic_cas_16_ras)\n\nENTRY(_atomic_cas_8_ras)\n\t.hidden\t_C_LABEL(_atomic_cas_8_ras)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_8_ras)\n\tmovb\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpb\t8+3(%sp), %d0\t\t/* Same as old? (lower byte) */\n\tjne\t1f\t\t\t/* Nope */\n\tmovb\t12+3(%sp), (%a0)\t/* *ptr = new (lower byte) */\nRAS_END_ASM_HIDDEN(_atomic_cas_8_ras)\n1:\trts\nEND(_atomic_cas_8_ras)\n#endif /* ! _KERNEL */\n\n/* =====> CASx implementation <===== */\n\n#ifndef __mc68010__\n#if !defined(_KERNEL) || !defined(__HAVE_M68K_BROKEN_RMC)\nENTRY(_atomic_cas_32_casl)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:3", "text": "movl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_8_ras)\n\tmovb\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpb\t8+3(%sp), %d0\t\t/* Same as old? (lower byte) */\n\tjne\t1f\t\t\t/* Nope */\n\tmovb\t12+3(%sp), (%a0)\t/* *ptr = new (lower byte) */\nRAS_END_ASM_HIDDEN(_atomic_cas_8_ras)\n1:\trts\nEND(_atomic_cas_8_ras)\n#endif /* ! _KERNEL */\n\n/* =====> CASx implementation <===== */\n\n#ifndef __mc68010__\n#if !defined(_KERNEL) || !defined(__HAVE_M68K_BROKEN_RMC)\nENTRY(_atomic_cas_32_casl)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_cas_32_casl)\n\n#ifdef _KERNEL\n/* Kernel-only aliases; userspace always uses the call stubs. */\nSTRONG_ALIAS(atomic_cas_ptr,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_uint,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_ulong,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_32,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_32,_atomic_cas_32_casl)\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32_casl)\n\nSTRONG_ALIAS(atomic_cas_32_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32_casl)\n\nSTRONG_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_uint_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_casl)\n#endif /* _KERNEL */\n\nENTRY(_atomic_cas_16_casw)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_16_casw)\n\n#ifdef _KERNEL\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16_casw)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:4", "text": "STRONG_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_uint_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32_casl)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_casl)\n#endif /* _KERNEL */\n\nENTRY(_atomic_cas_16_casw)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_16_casw)\n\n#ifdef _KERNEL\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16_casw)\nATOMIC_OP_ALIAS(_atomic_cas_16,_atomic_cas_16_casw)\nCRT_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16_casw)\n#endif /* _KERNEL */\n\nENTRY(_atomic_cas_8_casb)\n\tmovl\t4(%sp), %a0\n\tmovb\t8+3(%sp), %d0\t\t/* lower byte */\n\tmovb\t12+3(%sp), %d1\t\t/* lower byte */\n\tcasb\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_8_casb)\n\n#ifdef _KERNEL\nATOMIC_OP_ALIAS(atomic_cas_8,_atomic_cas_8_casb)\nATOMIC_OP_ALIAS(_atomic_cas_8,_atomic_cas_8_casb)\nCRT_ALIAS(__sync_val_compare_and_swap_1,_atomic_cas_8_casb)\n#endif /* _KERNEL */\n#endif /* ! _KERNEL || ! __HAVE_M68K_BROKEN_RMC */\n#endif /* ! __mc68010__ */", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 121, "line_end": 160}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.15 2025/11/29 21:57:14 thorpej Exp $\t*/\n\n/*-\n * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\n/*\n * For kernel builds on systems with __HAVE_M68K_BROKEN_RMC, then\n * m68k/m68k/lock_stubs.s provides a restartable atomic sequence\n * implementation of _atomic_cas_32() for the kernel's own use.\n *\n * The 8- and 16-bit CAS operations are not available in the kernel\n * environment on such platforms, so force a link error for them.\n */\n#if !defined(_KERNEL) || !defined(__HAVE_M68K_BROKEN_RMC)\n\nENTRY(_atomic_cas_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "0c9347f5ab117d5bb3bd94b514752f359213f171", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/0c9347f5ab117d5bb3bd94b514752f359213f171/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:2", "text": "* The 8- and 16-bit CAS operations are not available in the kernel\n * environment on such platforms, so force a link error for them.\n */\n#if !defined(_KERNEL) || !defined(__HAVE_M68K_BROKEN_RMC)\n\nENTRY(_atomic_cas_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\n\nENTRY(__sync_bool_compare_and_swap_4)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbeqs\t1f\n\tclrl\t%d0\t/* return false */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_4)\n\nENTRY(_atomic_cas_16)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nCRT_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16)\n\nENTRY(__sync_bool_compare_and_swap_2)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "0c9347f5ab117d5bb3bd94b514752f359213f171", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/0c9347f5ab117d5bb3bd94b514752f359213f171/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:3", "text": "rts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_4)\n\nENTRY(_atomic_cas_16)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nCRT_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16)\n\nENTRY(__sync_bool_compare_and_swap_2)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tbeqs\t1f\n\tclrl\t%d0\t/* return failure */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_2)\n\nENTRY(_atomic_cas_8)\n\tmovl\t4(%sp), %a0\n\tmovb\t8+3(%sp), %d0\t\t/* lower byte */\n\tmovb\t12+3(%sp), %d1\t\t/* lower byte */\n\tcasb\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_8)\n\nATOMIC_OP_ALIAS(atomic_cas_8,_atomic_cas_8)\nCRT_ALIAS(__sync_val_compare_and_swap_1,_atomic_cas_8)\n\nENTRY(__sync_bool_compare_and_swap_1)\n\tmovl\t4(%sp), %a0\n\tmovb\t8+3(%sp), %d0\t\t/* lower byte */\n\tmovb\t12+3(%sp), %d1\t\t/* lower byte */\n\tcasb\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tbeqs\t1f\n\tclrl\t%d0\t/* return failure */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_1)\n\n#endif /* !_KERNEL || !__HAVE_M68K_BROKEN_RMC */", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "0c9347f5ab117d5bb3bd94b514752f359213f171", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/0c9347f5ab117d5bb3bd94b514752f359213f171/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 81, "line_end": 136}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:4", "text": "CRT_ALIAS(__sync_val_compare_and_swap_1,_atomic_cas_8)\n\nENTRY(__sync_bool_compare_and_swap_1)\n\tmovl\t4(%sp), %a0\n\tmovb\t8+3(%sp), %d0\t\t/* lower byte */\n\tmovb\t12+3(%sp), %d1\t\t/* lower byte */\n\tcasb\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tbeqs\t1f\n\tclrl\t%d0\t/* return failure */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_1)\n\n#endif /* !_KERNEL || !__HAVE_M68K_BROKEN_RMC */", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "0c9347f5ab117d5bb3bd94b514752f359213f171", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/0c9347f5ab117d5bb3bd94b514752f359213f171/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 121, "line_end": 136}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.14 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_cas_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:2", "text": "/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\n\nENTRY(__sync_bool_compare_and_swap_4)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tmovl\t12(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbeqs\t1f\n\tclrl\t%d0\t/* return false */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_4)\n\nENTRY(_atomic_cas_16)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nCRT_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16)\n\nENTRY(__sync_bool_compare_and_swap_2)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tbeqs\t1f\n\tclrl\t%d0\t/* return failure */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_2)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas.S:3", "text": "/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_16)\n\nATOMIC_OP_ALIAS(atomic_cas_16,_atomic_cas_16)\nCRT_ALIAS(__sync_val_compare_and_swap_2,_atomic_cas_16)\n\nENTRY(__sync_bool_compare_and_swap_2)\n\tmovl\t4(%sp), %a0\n\tmovw\t8+2(%sp), %d0\t\t/* lower word */\n\tmovw\t12+2(%sp), %d1\t\t/* lower word */\n\tcasw\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tbeqs\t1f\n\tclrl\t%d0\t/* return failure */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_2)\n\nENTRY(_atomic_cas_8)\n\tmovl\t4(%sp), %a0\n\tmovb\t8+3(%sp), %d0\t\t/* lower byte */\n\tmovb\t12+3(%sp), %d1\t\t/* lower byte */\n\tcasb\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_cas_8)\n\nATOMIC_OP_ALIAS(atomic_cas_8,_atomic_cas_8)\nCRT_ALIAS(__sync_val_compare_and_swap_1,_atomic_cas_8)\n\n\nENTRY(__sync_bool_compare_and_swap_1)\n\tmovl\t4(%sp), %a0\n\tmovb\t8+3(%sp), %d0\t\t/* lower byte */\n\tmovb\t12+3(%sp), %d1\t\t/* lower byte */\n\tcasb\t%d0, %d1, (%a0)\n\t/* %d0 now contains the old value */\n\tbeqs\t1f\n\tclrl\t%d0\t/* return failure */\n\trts\n1:\tmovql\t#1, %d0\t/* return success */\n\trts\nEND(__sync_bool_compare_and_swap_1)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_cas.S", "line_start": 81, "line_end": 125}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S:1", "text": "/*\t$NetBSD: atomic_cas_68000.S,v 1.7 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Steve C. Woodford.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tmovl\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpl\t8(%sp), %d0\t\t/* Same as old? */\n\tjne\t1f\t\t\t/* Nope */\n\tmovl\t12(%sp), (%a0)\t\t/* *ptr = new */\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\trts\nEND(_atomic_cas_up)\n\nENTRY(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tmovw\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpw\t8(%sp), %d0\t\t/* Same as old? */\n\tjne\t1f\t\t\t/* Nope */\n\tmovw\t12(%sp), (%a0)\t\t/* *ptr = new */", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S:2", "text": "RAS_START_ASM_HIDDEN(_atomic_cas)\n\tmovl\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpl\t8(%sp), %d0\t\t/* Same as old? */\n\tjne\t1f\t\t\t/* Nope */\n\tmovl\t12(%sp), (%a0)\t\t/* *ptr = new */\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\trts\nEND(_atomic_cas_up)\n\nENTRY(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tmovw\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpw\t8(%sp), %d0\t\t/* Same as old? */\n\tjne\t1f\t\t\t/* Nope */\n\tmovw\t12(%sp), (%a0)\t\t/* *ptr = new */\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\trts\nEND(_atomic_cas_16_up)\n\n\nENTRY(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)\n\n\tmovl\t4(%sp), %a0\t\t/* Fetch ptr */\n\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tmovb\t(%a0), %d0\t\t/* d0 = *ptr */\n\tcmpb\t8(%sp), %d0\t\t/* Same as old? */\n\tjne\t1f\t\t\t/* Nope */\n\tmovb\t12(%sp), (%a0)\t\t/* *ptr = new */\nRAS_END_ASM_HIDDEN(_atomic_cas_8)\n1:\trts\nEND(_atomic_cas_8_up)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S", "line_start": 41, "line_end": 78}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_dec.S:1", "text": "/*\t$NetBSD: atomic_dec.S,v 1.7 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_dec_32)\n\tmovl\t4(%sp), %a0\n\tsubql\t#1, (%a0)\n\trts\nEND(_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tsubql\t#1, %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_dec.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_dec.S:2", "text": "ATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tsubql\t#1, %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_dec.S", "line_start": 41, "line_end": 65}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_inc.S:1", "text": "/*\t$NetBSD: atomic_inc.S,v 1.7 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_inc_32)\n\tmovl\t4(%sp), %a0\n\taddql\t#1, (%a0)\n\trts\nEND(_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nENTRY(_atomic_inc_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\taddql\t#1, %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_inc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_inc.S:2", "text": "ATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nENTRY(_atomic_inc_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\taddql\t#1, %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_inc.S", "line_start": 41, "line_end": 65}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_nand.S:1", "text": "/*\t$NetBSD: atomic_nand.S,v 1.3 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_nand_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tandl\t8(%sp), %d0\n\tnotl\t%d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_32_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ptr_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ptr_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ptr,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ptr,_atomic_nand_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_nand.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_nand.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_nand.S:2", "text": "notl\t%d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_32_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ptr_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ptr_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ptr,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ptr,_atomic_nand_32_nv)\nCRT_ALIAS(__sync_nand_and_fetch_4,_atomic_nand_32_nv)\n\nENTRY(__sync_fetch_and_nand_4)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tandl\t8(%sp), %d1\n\tnotl\t%d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(__sync_fetch_and_nand_4)\n\n\nENTRY(_atomic_nand_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d0\n\tnotw\t%d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_nand_16_nv)\n\nCRT_ALIAS(__sync_nand_and_fetch_2,_atomic_nand_16_nv)\n\nENTRY(__sync_fetch_and_nand_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d1\n\tnotw\t%d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_nand_2)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_nand.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_nand.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_nand.S:3", "text": "notw\t%d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_nand_16_nv)\n\nCRT_ALIAS(__sync_nand_and_fetch_2,_atomic_nand_16_nv)\n\nENTRY(__sync_fetch_and_nand_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tandw\t8(%sp), %d1\n\tnotw\t%d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_nand_2)\n\n\nENTRY(_atomic_nand_8_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tandb\t8(%sp), %d0\n\tnotb\t%d0\n\tcasb\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_nand_8_nv)\n\nCRT_ALIAS(__sync_nand_and_fetch_1,_atomic_nand_8_nv)\n\nENTRY(__sync_fetch_and_nand_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tandb\t8(%sp), %d1\n\tnotb\t%d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_nand_1)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_nand.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_nand.S", "line_start": 81, "line_end": 123}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_or.S:1", "text": "/*\t$NetBSD: atomic_or.S,v 1.12 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_or_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\torl\t%d0, (%a0)\n\trts\nEND(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ptr,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_32)\n\nENTRY(_atomic_or_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\torl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_or_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_or.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_or.S:2", "text": "END(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ptr,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_32)\n\nENTRY(_atomic_or_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\torl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_or_32_nv)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_ptr_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_32_nv)\nCRT_ALIAS(__sync_or_and_fetch_4, _atomic_or_32_nv)\n\n\nENTRY(__sync_fetch_and_or_4)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\torl\t8(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(__sync_fetch_and_or_4)\n\n\nENTRY(_atomic_or_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\torw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_or_16_nv)\nCRT_ALIAS(__sync_or_and_fetch_2, _atomic_or_16_nv)\n\nENTRY(__sync_fetch_and_or_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\torw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_or.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_or.S:3", "text": "END(__sync_fetch_and_or_4)\n\n\nENTRY(_atomic_or_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\torw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_or_16_nv)\nCRT_ALIAS(__sync_or_and_fetch_2, _atomic_or_16_nv)\n\nENTRY(__sync_fetch_and_or_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\torw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_or_2)\n\n\nENTRY(_atomic_or_8_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\torb\t8(%sp), %d0\n\tcasb\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_or_8_nv)\nCRT_ALIAS(__sync_or_and_fetch_1, _atomic_or_8_nv)\n\nENTRY(__sync_fetch_and_or_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\torb\t8(%sp), %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_or_1)\n\nCRT_ALIAS(__atomic_fetch_or_1,__sync_fetch_and_or_1)\nCRT_ALIAS(__atomic_fetch_or_2,__sync_fetch_and_or_2)\nCRT_ALIAS(__atomic_fetch_or_4,__sync_fetch_and_or_4)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_or.S", "line_start": 81, "line_end": 129}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_sub.S:1", "text": "/*\t$NetBSD: atomic_sub.S,v 1.4 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\t.align\t2\n\nENTRY(_atomic_sub_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\tsubl\t%d0, (%a0)\n\trts\nEND(_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n\nENTRY(_atomic_sub_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tsubl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_sub_32_nv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_sub.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_sub.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_sub.S:2", "text": "rts\nEND(_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n\nENTRY(_atomic_sub_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tsubl\t8(%sp), %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_sub_32_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_32_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_int_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_int_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_32_nv)\nCRT_ALIAS(__sync_sub_and_fetch_4,_atomic_sub_32_nv)\n\nENTRY(__sync_fetch_and_sub_4)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tsubl\t8(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(__sync_fetch_and_sub_4)\n\nENTRY(_atomic_sub_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tsubw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_sub_16_nv)\n\nCRT_ALIAS(__sync_sub_and_fetch_2,_atomic_sub_16_nv)\n\nENTRY(__sync_fetch_and_sub_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tsubw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_sub.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_sub.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_sub.S:3", "text": "ENTRY(_atomic_sub_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tsubw\t8(%sp), %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_sub_16_nv)\n\nCRT_ALIAS(__sync_sub_and_fetch_2,_atomic_sub_16_nv)\n\nENTRY(__sync_fetch_and_sub_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tsubw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_sub_2)\n\nENTRY(_atomic_sub_8_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tsubb\t8(%sp), %d0\n\tcasb\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_sub_8_nv)\n\nCRT_ALIAS(__sync_sub_and_fetch_1,_atomic_sub_8_nv)\n\nENTRY(__sync_fetch_and_sub_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tsubb\t8(%sp), %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_sub_1)\n\nCRT_ALIAS(__atomic_fetch_sub_1,__sync_fetch_and_sub_1)\nCRT_ALIAS(__atomic_fetch_sub_2,__sync_fetch_and_sub_2)\nCRT_ALIAS(__atomic_fetch_sub_4,__sync_fetch_and_sub_4)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_sub.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_sub.S", "line_start": 81, "line_end": 128}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_swap.S:1", "text": "/*\t$NetBSD: atomic_swap.S,v 1.10 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_swap_32)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t8(%sp), %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\t/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\nCRT_ALIAS(__sync_lock_test_and_set_4,_atomic_swap_32)\nCRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)\n\n\nENTRY(_atomic_swap_16)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t8(%sp), %d1", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_swap.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_swap.S:2", "text": "bne\t1b\n\t/* %d0 now contains the old value */\n\tmovl\t%d0, %a0\t/* pointers return also in %a0 */\n\trts\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\nCRT_ALIAS(__sync_lock_test_and_set_4,_atomic_swap_32)\nCRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)\n\n\nENTRY(_atomic_swap_16)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t8(%sp), %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_swap_16)\nATOMIC_OP_ALIAS(atomic_swap_16,_atomic_swap_16)\nCRT_ALIAS(__sync_lock_test_and_set_2,_atomic_swap_16)\nCRT_ALIAS(__atomic_exchange_2,_atomic_swap_16)\n\nENTRY(_atomic_swap_8)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t8(%sp), %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\t/* %d0 now contains the old value */\n\trts\nEND(_atomic_swap_8)\nATOMIC_OP_ALIAS(atomic_swap_8,_atomic_swap_8)\nCRT_ALIAS(__sync_lock_test_and_set_1,_atomic_swap_8)\nCRT_ALIAS(__atomic_exchange_1,_atomic_swap_8)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_swap.S", "line_start": 41, "line_end": 81}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_xor.S:1", "text": "/*\t$NetBSD: atomic_xor.S,v 1.4 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_xor_32)\n\tmovl\t4(%sp), %a0\n\tmovl\t8(%sp), %d0\n\teorl\t%d0, (%a0)\n\trts\nEND(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ptr,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ptr,_atomic_xor_32)\n\nENTRY(_atomic_xor_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tmovl\t8(%sp), %d2\n\teorl\t%d2, %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_xor.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_xor.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_xor.S:2", "text": "END(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ptr,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ptr,_atomic_xor_32)\n\nENTRY(_atomic_xor_32_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tmovl\t8(%sp), %d2\n\teorl\t%d2, %d0\n\tcasl\t%d1, %d0, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(_atomic_xor_32_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_32_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_uint_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_uint_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_ulong_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_ulong_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_ptr_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_ptr_nv,_atomic_xor_32_nv)\nCRT_ALIAS(__sync_xor_and_fetch_4, _atomic_xor_32_nv)\n\n\nENTRY(__sync_fetch_and_xor_4)\n\tmovl\t4(%sp), %a0\n1:\tmovl\t(%a0), %d0\n\tmovl\t%d0, %d1\n\tmovl\t8(%sp), %d2\n\teorl\t%d2, %d1\n\tcasl\t%d0, %d1, (%a0)\n\tbne\t1b\n\tmovl\t%d0, %a0\n\trts\nEND(__sync_fetch_and_xor_4)\n\n\nENTRY(_atomic_xor_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tmovw\t8(%sp), %d2\n\teorw\t%d2, %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_xor_16_nv)\nCRT_ALIAS(__sync_xor_and_fetch_2, _atomic_xor_16_nv)\n\nENTRY(__sync_fetch_and_xor_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_xor.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_xor.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_xor.S:3", "text": "movl\t%d0, %a0\n\trts\nEND(__sync_fetch_and_xor_4)\n\n\nENTRY(_atomic_xor_16_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tmovw\t8(%sp), %d2\n\teorw\t%d2, %d0\n\tcasw\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_xor_16_nv)\nCRT_ALIAS(__sync_xor_and_fetch_2, _atomic_xor_16_nv)\n\nENTRY(__sync_fetch_and_xor_2)\n\tmovl\t4(%sp), %a0\n1:\tmovw\t(%a0), %d0\n\tmovw\t%d0, %d1\n\tmovw\t8(%sp), %d2\n\teorw\t%d2, %d1\n\tcasw\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_xor_2)\n\n\nENTRY(_atomic_xor_8_nv)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tmovb\t8(%sp), %d2\n\teorb\t%d2, %d0\n\tcasb\t%d1, %d0, (%a0)\n\tbne\t1b\n\trts\nEND(_atomic_xor_8_nv)\nCRT_ALIAS(__sync_xor_and_fetch_1, _atomic_xor_8_nv)\n\nENTRY(__sync_fetch_and_xor_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tmovb\t8(%sp), %d2\n\teorb\t%d2, %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_xor_1)\n\nCRT_ALIAS(__atomic_fetch_xor_1,__sync_fetch_and_xor_1)\nCRT_ALIAS(__atomic_fetch_xor_2,__sync_fetch_and_xor_2)\nCRT_ALIAS(__atomic_fetch_xor_4,__sync_fetch_and_xor_4)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_xor.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_xor.S", "line_start": 81, "line_end": 135}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/atomic/atomic_xor.S:4", "text": "ENTRY(__sync_fetch_and_xor_1)\n\tmovl\t4(%sp), %a0\n1:\tmovb\t(%a0), %d0\n\tmovb\t%d0, %d1\n\tmovb\t8(%sp), %d2\n\teorb\t%d2, %d1\n\tcasb\t%d0, %d1, (%a0)\n\tbne\t1b\n\trts\nEND(__sync_fetch_and_xor_1)\n\nCRT_ALIAS(__atomic_fetch_xor_1,__sync_fetch_and_xor_1)\nCRT_ALIAS(__atomic_fetch_xor_2,__sync_fetch_and_xor_2)\nCRT_ALIAS(__atomic_fetch_xor_4,__sync_fetch_and_xor_4)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/atomic/atomic_xor.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/atomic/atomic_xor.S", "line_start": 121, "line_end": 135}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/bswap16.S:1", "text": "/*\t$NetBSD: bswap16.S,v 1.6 2014/03/18 18:20:35 riastradh Exp $\t*/\n\n/*\n * Copyright (C) 1996 Scott Reynolds.  All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define BSWAP16 _C_LABEL(bswap16)\n#else /* defined(_KERNEL) || defined(_STANDALONE) */\n#define BSWAP16 _C_LABEL(__bswap16)\n#endif /* defined(_KERNEL) || defined(_STANDALONE) */\n\n_ENTRY(BSWAP16)\n#ifdef __mcfisac__\n\tmvzw\t6(%sp),%d0\n\tswap\t%d0\n\tbyterev\t%d0\n#elif defined(__mcoldfire__)\n\tmvzw\t6(%sp),%d0\n\tmovl\t%d0,%d1\n\tmvzb\t%d0,%d0\n\tlsll\t#8,%d0\n\tlsrl\t#8,%d1\n\torl\t%d1,%d0\n#else\n\tmovl\t4(%sp),%d0\n\trolw\t#8,%d0\n#endif\n\trts\nEND(BSWAP16)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/bswap16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/bswap16.S", "line_start": 1, "line_end": 54}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/bswap32.S:1", "text": "/*\t$NetBSD: bswap32.S,v 1.6 2014/03/18 18:20:35 riastradh Exp $\t*/\n\n/*\n * Copyright (C) 1996 Scott Reynolds.  All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define BSWAP32 _C_LABEL(bswap32)\n#else /* defined(_KERNEL) || defined(_STANDALONE) */\n#define BSWAP32 _C_LABEL(__bswap32)\n#endif /* defined(_KERNEL) || defined(_STANDALONE) */\n\n_ENTRY(BSWAP32)\n\tmovl\t4(%sp),%d0\n#ifdef __mcfisac__\n\tbyterev\t%d0\n#elif defined(__mcoldfire__)\n\tmovl\t%d0,%d1\n\tlsrl\t#8,%d0\t\t| ABCD -> 0ABC\n\tandl\t#0x00ff00ff,%d0\t| 0ABC -> 0A0C\n\tandl\t#0x00ff00ff,%d1\t| ABCD -> 0B0D\n\tlsll\t#8,%d1\t\t| 0B0D -> B0D0\n\torl\t%d1,%d0\t\t| 0A0C | B0D0 -> BADC\n\tswap\t%d0\t\t| BADC -> DCBA\n#else\n \trolw\t#8,%d0\n \tswap\t%d0\n\trolw\t#8,%d0\n#endif\n\trts\nEND(BSWAP32)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/bswap32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/bswap32.S", "line_start": 1, "line_end": 55}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/bswap64.S:1", "text": "/*\t$NetBSD: bswap64.S,v 1.5 2014/03/18 18:20:35 riastradh Exp $\t*/\n\n/*\n * Copyright (C) 1996 Scott Reynolds.  All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nENTRY(bswap64)\n\tmovl\t4(%sp),%d1\n\tmovl\t8(%sp),%d0\n#ifdef __mcfisac__\n\tbyterev\t%d0\n\tbyterev\t%d1\n#elif defined(__mcoldfire__)\n\tmovl\t%d3,-(%sp)\n\tmovl\t%d2,-(%sp)\n\tmovl\t#0x00ff00ff, %d3\n\tmovl\t%d0,%d2\n\tandl\t%d3,%d2\n\tlsll\t#8,%d2\n\tlsrl\t#8,%d0\n\tandl\t%d3,%d0\n\torl\t%d2,%d0\n\tmovl\t%d1,%d2\n\tandl\t%d3,%d2\n\tlsll\t#8,%d2\n\tlsrl\t#8,%d1\n\tandl\t%d3,%d1\n\torl\t%d2,%d1\n\tmovl\t(%sp)+,%d2\n\tmovl\t(%sp)+,%d3\n#else\n\trolw\t#8,%d1\n\trolw\t#8,%d0\n\tswap\t%d1\n\tswap\t%d0\n\trolw\t#8,%d0", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/bswap64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/bswap64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/bswap64.S:2", "text": "movl\t%d0,%d2\n\tandl\t%d3,%d2\n\tlsll\t#8,%d2\n\tlsrl\t#8,%d0\n\tandl\t%d3,%d0\n\torl\t%d2,%d0\n\tmovl\t%d1,%d2\n\tandl\t%d3,%d2\n\tlsll\t#8,%d2\n\tlsrl\t#8,%d1\n\tandl\t%d3,%d1\n\torl\t%d2,%d1\n\tmovl\t(%sp)+,%d2\n\tmovl\t(%sp)+,%d3\n#else\n\trolw\t#8,%d1\n\trolw\t#8,%d0\n\tswap\t%d1\n\tswap\t%d0\n\trolw\t#8,%d0\n\trolw\t#8,%d1\n#endif\n\trts\nEND(bswap64)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/bswap64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/bswap64.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/muldi3.S:1", "text": "/*\t$NetBSD: muldi3.S,v 1.2 2020/05/31 12:37:07 rin Exp $\t*/\n\n/*\n * Copyright (c) 2020 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Rin Okuyama.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: muldi3.S,v 1.2 2020/05/31 12:37:07 rin Exp $\")\n\n| int64_t __muldi3(int64_t X, int64_t Y);\n|\n| * Return lower 64bit of (X * Y) into %d0:%d1.\n|\n| * Intended for 68060:\n|   - GCC does not emit __muldi3() for 68020-40, that have 32 * 32 --> 64 mulul.\n|   - mulsl (and moveml) are not implemented for 68010.\n|\n| * Notation:\n|   - H32:L32 --> higher:lower 32bit of variable\n|   - H:L     --> higher:lower 16bit of variable/register\n\n#ifdef __mc68010__\n#error \"not for 68010\"\n#endif\n\n#define X_H32 (4 * 4)\n#define X_L32 (X_H32 + 4)\n#define Y_H32 (X_L32 + 4)\n#define Y_L32 (Y_H32 + 4)\n\nENTRY(__muldi3)\n\tmoveml\t%d2-%d4, -(%sp)\t| push %d2-%d4\n\n| First, calculate (X_L32 * Y_L32) as a 64bit integer.", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/muldi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/muldi3.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/muldi3.S:2", "text": "|   - GCC does not emit __muldi3() for 68020-40, that have 32 * 32 --> 64 mulul.\n|   - mulsl (and moveml) are not implemented for 68010.\n|\n| * Notation:\n|   - H32:L32 --> higher:lower 32bit of variable\n|   - H:L     --> higher:lower 16bit of variable/register\n\n#ifdef __mc68010__\n#error \"not for 68010\"\n#endif\n\n#define X_H32 (4 * 4)\n#define X_L32 (X_H32 + 4)\n#define Y_H32 (X_L32 + 4)\n#define Y_L32 (Y_H32 + 4)\n\nENTRY(__muldi3)\n\tmoveml\t%d2-%d4, -(%sp)\t| push %d2-%d4\n\n| First, calculate (X_L32 * Y_L32) as a 64bit integer.\n\n\tmovel\tX_L32(%sp), %a0\t| save X_L32\n\tmovel\tY_L32(%sp), %a1\t| save Y_L32\n\n\tmovel\t%a0, %d2\t| prepare for X_L32(H) in L\n\tmovel\t%a1, %d3\t| prepare for Y_L32(H) in L\n\n\tmovel\t%a0, %d4\t| X_L32(L) in L\n\tmovel\t%a1, %d1\t| Y_L32(L) in L\n\tmovel\t%a0, %d0\t| X_L32(L) in L\n\n\tswap\t%d2\t\t| X_L32(H) in L\n\tswap\t%d3 \t\t| Y_L32(H) in L\n\n\tmuluw\t%d1, %d4\t| A = X_L32(L) * Y_L32(L)\n\tmuluw\t%d2, %d1\t| B = X_L32(H) * Y_L32(L)\n\tmuluw\t%d3, %d2\t| C = X_L32(H) * Y_L32(H)\n\tmuluw\t%d0, %d3\t| D = X_L32(L) * Y_L32(H)\n\n\tmovel\t%d4, %d0\t| extract A(H)\n\tclrw\t%d0\n\tswap\t%d0\n\n\taddl\t%d0, %d1\t| B += A(H) (no carry; max 0xffff0000)\n\n\taddl\t%d3, %d1\t| B += D\n\tbccs\t1f\t\t| if (carry)\n\taddil\t#0x10000, %d2\t| \tC += 0x10000\n\n1:\tswap\t%d1\t\t| B(H) <--> B(L)\n\n| (%d0), (%d1), %d2 = C, %d3 = free, %d4 = A\n\n\tclrl\t%d3\t\t| extract B(H)\n\tmovew\t%d1, %d3\n\n\tmovew\t%d4, %d1\t| %d1 = (B(L) << 16) + A(L)\n\n\taddl\t%d3, %d2\t| C += B(H)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/muldi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/muldi3.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/muldi3.S:3", "text": "clrw\t%d0\n\tswap\t%d0\n\n\taddl\t%d0, %d1\t| B += A(H) (no carry; max 0xffff0000)\n\n\taddl\t%d3, %d1\t| B += D\n\tbccs\t1f\t\t| if (carry)\n\taddil\t#0x10000, %d2\t| \tC += 0x10000\n\n1:\tswap\t%d1\t\t| B(H) <--> B(L)\n\n| (%d0), (%d1), %d2 = C, %d3 = free, %d4 = A\n\n\tclrl\t%d3\t\t| extract B(H)\n\tmovew\t%d1, %d3\n\n\tmovew\t%d4, %d1\t| %d1 = (B(L) << 16) + A(L)\n\n\taddl\t%d3, %d2\t| C += B(H)\n\n| We have (X_L32 * Y_L32) in %d2:%d1. Lower 32bit was completed.\n| Add (X_L32 * Y_H32 + X_H32 * Y_L32) to higher 32bit.\n|\n| (%d0), (%d1), %d2 = C, %d3 = free, %d4 = free\n\n\tmovel\t%a0, %d0\t| restore X_L32\n\tmovel\t%a1, %d3\t| restore Y_L32\n\tmulsl\tY_H32(%sp), %d0\t| E = X_L32 * Y_H32\n\tmulsl\tX_H32(%sp), %d3 | F = X_H32 * Y_L32\n\taddl\t%d2, %d0\t| E += C\n\taddl\t%d3, %d0\t| %d0 = E + F\n\n\tmoveml\t(%sp)+, %d2-%d4\t| pop %d2-%d4\n\trts\nEND(__muldi3)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/muldi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/muldi3.S", "line_start": 81, "line_end": 115}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/mulsi3.S:1", "text": "/*\t$NetBSD: mulsi3.S,v 1.5 2020/03/09 08:29:11 rin Exp $\t*/\n\n/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * the Systems Programming Group of the University of Utah Computer\n * Science Department.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)mulsi3.s\t5.1 (Berkeley) 6/7/90\")\n#else\n\tRCSID(\"$NetBSD: mulsi3.S,v 1.5 2020/03/09 08:29:11 rin Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/* int * int */\nENTRY(__mulsi3)\n#ifndef __mc68010__\n\tmovel\t4(%sp),%d0\n\tmulsl\t8(%sp),%d0\n#else\n\tmovew\t6(%sp), %d0\n\tmovel\t%d0, %a0\t| save B\n\tmuluw\t8(%sp), %d0\t| %d0 holds B * C\n\tmovew\t10(%sp), %d1\n\tmovel\t%d1, %a1\t| save D\n\tmuluw\t4(%sp), %d1\t| %d1 holds A * D\n\taddw\t%d1, %d0\t| %d0 holds (B * C) + (A * D)\n\tswap\t%d0\n\tclrw\t%d0\t\t| %d0 holds ((B * C) + (A * D)) << 16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/mulsi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/mulsi3.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/gen/mulsi3.S:2", "text": "#else\n\tRCSID(\"$NetBSD: mulsi3.S,v 1.5 2020/03/09 08:29:11 rin Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/* int * int */\nENTRY(__mulsi3)\n#ifndef __mc68010__\n\tmovel\t4(%sp),%d0\n\tmulsl\t8(%sp),%d0\n#else\n\tmovew\t6(%sp), %d0\n\tmovel\t%d0, %a0\t| save B\n\tmuluw\t8(%sp), %d0\t| %d0 holds B * C\n\tmovew\t10(%sp), %d1\n\tmovel\t%d1, %a1\t| save D\n\tmuluw\t4(%sp), %d1\t| %d1 holds A * D\n\taddw\t%d1, %d0\t| %d0 holds (B * C) + (A * D)\n\tswap\t%d0\n\tclrw\t%d0\t\t| %d0 holds ((B * C) + (A * D)) << 16\n\texg\t%a0, %d0\t| restore B\n\tmovel\t%a1, %d1\t| restore D\n\tmuluw\t%d1, %d0\t| %d0 holds B * D\n\taddl\t%a0, %d0\t| final result\n#endif /* __mc68010__ */\n\trts\nEND(__mulsi3)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/gen/mulsi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/gen/mulsi3.S", "line_start": 41, "line_end": 67}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcmp.S:3", "text": "#define\tCMPMW(a,b)\tcmpmw a,b\n#define\tCMPML(a,b)\tcmpml a,b\n#endif\n\nENTRY(bcmp)\n\tmovl\t4(%sp),%a0\t\t| string 1\n\tmovl\t8(%sp),%a1\t\t| string 2\n\tmovl\t12(%sp),%d1\t\t| length\n#ifdef __mcoldfire__\n\tmovl\t%d2,-(%sp)\t\t| save temp\n#endif\n\n\t/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#8,%d1\n\tjlt\t.Lbcbyte\n\n#ifdef\t__mc68010__\n\t/*\n\t * The 68010 cannot access a word or long on an odd boundary,\n\t * period.  If the source and the destination addresses aren't\n\t * of the same evenness, we're forced to do a bytewise compare.\n\t */\n\tmovl\t%a0,%d0\n\taddl\t%a1,%d0\n\tbtst\t#0,%d0\n\tjne\t.Lbcbyte\n#endif\t/* __mc68010__ */\n\n\t/* word align */\n\tmovl\t%a0,%d0\n\tbtst\t#0,%d0\n\tjeq\t.Lbcalgndw\n\tCMPMB((%a0)+,(%a1)+)\n\tjne\t.Lbcnoteq\n\tsubql\t#1,%d1\n.Lbcalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\n\tjeq\t.Lbcalgndl\n\tCMPMW((%a0)+,(%a1)+)\n\tjne\t.Lbcnoteq\n\tsubql\t#2,%d1\n.Lbcalgndl:\n\t/* compare by 8 longwords */\n\tmovl\t%d1,%d0\n\tlsrl\t#5,%d0\t\t\t| cnt = len / 32\n\tjeq\t.Lbclong\t\t\t| if (cnt)\n\tandl\t#31,%d1\t\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbc32loop:\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 1 of 8 longwords\n\tjne\t.Lbcnoteq\t\t|\tnot equal, return non-zero\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 2 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 3 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 4 of 8 longwords", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcmp.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcmp.S:4", "text": "btst\t#1,%d0\n\tjeq\t.Lbcalgndl\n\tCMPMW((%a0)+,(%a1)+)\n\tjne\t.Lbcnoteq\n\tsubql\t#2,%d1\n.Lbcalgndl:\n\t/* compare by 8 longwords */\n\tmovl\t%d1,%d0\n\tlsrl\t#5,%d0\t\t\t| cnt = len / 32\n\tjeq\t.Lbclong\t\t\t| if (cnt)\n\tandl\t#31,%d1\t\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbc32loop:\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 1 of 8 longwords\n\tjne\t.Lbcnoteq\t\t|\tnot equal, return non-zero\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 2 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 3 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 4 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 5 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 6 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 7 of 8 longwords\n\tjne\t.Lbcnoteq\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare 8 of 8 longwords\n\tjne\t.Lbcnoteq\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbc32loop\t\t|\ttill done\n\tclrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbc32loop\n\n.Lbclong:\n\t/* compare by longwords */\n\tmovl\t%d1,%d0\n\tlsrl\t#2,%d0\t\t\t| cnt = len / 4\n\tjeq\t.Lbcbyte\t\t\t| if (cnt)\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbclloop:\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare a longword\n\tjne\t.Lbcnoteq\t\t|\tnot equal, return non-zero\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t\t|\tdecrement\n\tjcc\t.Lbclloop\t\t|\ttill done\n#else\n\tdbf\t%d0,.Lbclloop\t\t|\ttill done\n#endif\n\tandl\t#3,%d1\t\t\t|\tlen %= 4\n\tjeq\t.Lbcdone\n\n\tsubql\t#1,%d1\t\t\t| set up for dbf\n.Lbcbloop:\n\tCMPMB((%a0)+,(%a1)+)\t\t| compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n.Lbcbyte:\n#ifdef __mcoldfire__", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcmp.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcmp.S:5", "text": "jeq\t.Lbcbyte\t\t\t| if (cnt)\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbclloop:\n\tCMPML((%a0)+,(%a1)+)\t\t|\tcompare a longword\n\tjne\t.Lbcnoteq\t\t|\tnot equal, return non-zero\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t\t|\tdecrement\n\tjcc\t.Lbclloop\t\t|\ttill done\n#else\n\tdbf\t%d0,.Lbclloop\t\t|\ttill done\n#endif\n\tandl\t#3,%d1\t\t\t|\tlen %= 4\n\tjeq\t.Lbcdone\n\n\tsubql\t#1,%d1\t\t\t| set up for dbf\n.Lbcbloop:\n\tCMPMB((%a0)+,(%a1)+)\t\t| compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n.Lbcbyte:\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t\t|\tdecrement\n\tjcc\t.Lbcbloop\t\t|\ttill done\n#else\n\tdbf\t%d1,.Lbcbloop\n#endif\n.Lbcdone:\n#ifdef __mcoldfire__\n\tmovl\t(%sp)+,%d2\t\t| restore temp\n#endif\n\tmovql\t#0,%d0\n\trts\n\n.Lbcnoteq:\n\tmovql\t#1,%d0\n\trts\nEND(bcmp)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcmp.S", "line_start": 161, "line_end": 196}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcopy.S:3", "text": "#define\tXCOPY\tbcopy\n#endif\n\nENTRY(XCOPY)\n#if defined(MEMCOPY) || defined(MEMMOVE)\n\tmovl\t4(%sp),%a1\t\t| dest address\n\tmovl\t8(%sp),%a0\t\t| src address\n#else\n\tmovl\t4(%sp),%a0\t\t| src address\n\tmovl\t8(%sp),%a1\t\t| dest address\n#endif\n\tmovl\t12(%sp),%d1\t\t| count\n\n\tcmpl\t%a1,%a0\t\t\t| src after dest?\n\tjlt\t.Lbcback\t\t\t| yes, must copy backwards\n\n\t/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#8,%d1\n\tjlt\t.Lbcfbyte\n\n#ifdef\t__mc68010__\n\t/*\n\t * The 68010 cannot access a word or long on an odd boundary,\n\t * period.  If the source and the destination addresses aren't\n\t * of the same evenness, we're forced to do a bytewise copy.\n\t */\n\tmovl\t%a0,%d0\n\taddl\t%a1,%d0\n\tbtst\t#0,%d0\n\tjne\t.Lbcfbyte\n#endif\t/* __mc68010__ */\n\n\t/* word align */\n\tmovl\t%a1,%d0\n\tbtst\t#0,%d0\t\t| if (dst & 1)\n\tjeq\t.Lbcfalgndw\t|\n\tmovb\t(%a0)+,(%a1)+\t|\t*(char *)dst++ = *(char *) src++\n\tsubql\t#1,%d1\t\t|\tlen--\n.Lbcfalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\t\t| if (dst & 2)\n\tjeq\t.Lbcfalgndl\n\tmovw\t(%a0)+,(%a1)+\t|\t*(short *)dst++ = *(short *) dst++\n\tsubql\t#2,%d1\t\t|\tlen -= 2\n.Lbcfalgndl:\n\t/* copy by 8 longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#5,%d0\t\t| cnt = len / 32\n\tjeq\t.Lbcflong\t| if (cnt)\n\tandl\t#31,%d1\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t|\tset up for dbf\n.Lbcf32loop:\n\tmovl\t(%a0)+,(%a1)+\t|\tcopy 8 long words\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcopy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcopy.S:4", "text": "subql\t#1,%d1\t\t|\tlen--\n.Lbcfalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\t\t| if (dst & 2)\n\tjeq\t.Lbcfalgndl\n\tmovw\t(%a0)+,(%a1)+\t|\t*(short *)dst++ = *(short *) dst++\n\tsubql\t#2,%d1\t\t|\tlen -= 2\n.Lbcfalgndl:\n\t/* copy by 8 longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#5,%d0\t\t| cnt = len / 32\n\tjeq\t.Lbcflong\t| if (cnt)\n\tandl\t#31,%d1\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t|\tset up for dbf\n.Lbcf32loop:\n\tmovl\t(%a0)+,(%a1)+\t|\tcopy 8 long words\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n\tmovl\t(%a0)+,(%a1)+\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbcf32loop\t|\ttill done\n\tclrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbcf32loop\n\n.Lbcflong:\n\t/* copy by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t| cnt = len / 4\n\tjeq\t.Lbcfbyte\t| if (cnt)\n\tsubql\t#1,%d0\t\t|\tset up for dbf\n.Lbcflloop:\n\tmovl\t(%a0)+,(%a1)+\t|\tcopy longwords\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t|\tdecrement\n\tjcc\t.Lbcflloop\t|\ttil done\n#else\n\tdbf\t%d0,.Lbcflloop\t|\ttil done\n#endif\n\tandl\t#3,%d1\t\t|\tlen %= 4\n\tjeq\t.Lbcdone\n\n\tsubql\t#1,%d1\t\t| set up for dbf\n.Lbcfbloop:\n\tmovb\t(%a0)+,(%a1)+\t| copy bytes\n.Lbcfbyte:\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t|\tdecrement\n\tjcc\t.Lbcfbloop\t|\ttil done\n#else\n\tdbf\t%d1,.Lbcfbloop\t| till done\n#endif\n.Lbcdone:\n#if defined(MEMCOPY) || defined(MEMMOVE)\n\tmovl\t4(%sp),%d0\t| dest address", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcopy.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcopy.S:5", "text": "jcc\t.Lbcflloop\t|\ttil done\n#else\n\tdbf\t%d0,.Lbcflloop\t|\ttil done\n#endif\n\tandl\t#3,%d1\t\t|\tlen %= 4\n\tjeq\t.Lbcdone\n\n\tsubql\t#1,%d1\t\t| set up for dbf\n.Lbcfbloop:\n\tmovb\t(%a0)+,(%a1)+\t| copy bytes\n.Lbcfbyte:\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t|\tdecrement\n\tjcc\t.Lbcfbloop\t|\ttil done\n#else\n\tdbf\t%d1,.Lbcfbloop\t| till done\n#endif\n.Lbcdone:\n#if defined(MEMCOPY) || defined(MEMMOVE)\n\tmovl\t4(%sp),%d0\t| dest address\n#if defined(__SVR4_ABI__)\n\tmoveal\t%d0,%a0\n#endif\n#endif\n\trts\n\n\n.Lbcback:\n\taddl\t%d1,%a0\t\t| src pointer to end\n\taddl\t%d1,%a1\t\t| dest pointer to end\n\n\t/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#8,%d1\n\tjlt\t.Lbcbbyte\n\n#ifdef\t__mc68010__\n\t/*\n\t * The 68010 cannot access a word or long on an odd boundary,\n\t * period.  If the source and the destination addresses aren't\n\t * of the same evenness, we're forced to do a bytewise copy.\n\t */\n\tmovl\t%a0,%d0\n\taddl\t%a1,%d0\n\tbtst\t#0,%d0\n\tjne\t.Lbcbbyte\n#endif\t/* __mc68010__ */\n\n\t/* word align */\n\tmovl\t%a1,%d0\n\tbtst\t#0,%d0\t\t| if (dst & 1)\n\tjeq\t.Lbcbalgndw\t|\n\tmovb\t-(%a0),-(%a1)\t|\t*(char *)dst-- = *(char *) src--\n\tsubql\t#1,%d1\t\t|\tlen--\n.Lbcbalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\t\t| if (dst & 2)\n\tjeq\t.Lbcbalgndl", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcopy.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcopy.S:6", "text": "* The 68010 cannot access a word or long on an odd boundary,\n\t * period.  If the source and the destination addresses aren't\n\t * of the same evenness, we're forced to do a bytewise copy.\n\t */\n\tmovl\t%a0,%d0\n\taddl\t%a1,%d0\n\tbtst\t#0,%d0\n\tjne\t.Lbcbbyte\n#endif\t/* __mc68010__ */\n\n\t/* word align */\n\tmovl\t%a1,%d0\n\tbtst\t#0,%d0\t\t| if (dst & 1)\n\tjeq\t.Lbcbalgndw\t|\n\tmovb\t-(%a0),-(%a1)\t|\t*(char *)dst-- = *(char *) src--\n\tsubql\t#1,%d1\t\t|\tlen--\n.Lbcbalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\t\t| if (dst & 2)\n\tjeq\t.Lbcbalgndl\n\tmovw\t-(%a0),-(%a1)\t|\t*(short *)dst-- = *(short *) dst--\n\tsubql\t#2,%d1\t\t|\tlen -= 2\n.Lbcbalgndl:\n\t/* copy by 8 longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#5,%d0\t\t| cnt = len / 32\n\tjeq\t.Lbcblong\t| if (cnt)\n\tandl\t#31,%d1\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t|\tset up for dbf\n.Lbcb32loop:\n\tmovl\t-(%a0),-(%a1)\t|\tcopy 8 long words\n\tmovl\t-(%a0),-(%a1)\n\tmovl\t-(%a0),-(%a1)\n\tmovl\t-(%a0),-(%a1)\n\tmovl\t-(%a0),-(%a1)\n\tmovl\t-(%a0),-(%a1)\n\tmovl\t-(%a0),-(%a1)\n\tmovl\t-(%a0),-(%a1)\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbcb32loop\t|\ttill done\n\tclrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbcb32loop\n\n.Lbcblong:\n\t/* copy by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t| cnt = len / 4\n\tjeq\t.Lbcbbyte\t| if (cnt)\n\tsubql\t#1,%d0\t\t|\tset up for dbf\n.Lbcblloop:\n\tmovl\t-(%a0),-(%a1)\t|\tcopy longwords\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t|\tdecrement\n\tjcc\t.Lbcblloop\t|\ttil done\n#else\n\tdbf\t%d0,.Lbcblloop\t|\ttil done\n#endif\n\tandl\t#3,%d1\t\t|\tlen %= 4", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcopy.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bcopy.S:7", "text": "clrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbcb32loop\n\n.Lbcblong:\n\t/* copy by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t| cnt = len / 4\n\tjeq\t.Lbcbbyte\t| if (cnt)\n\tsubql\t#1,%d0\t\t|\tset up for dbf\n.Lbcblloop:\n\tmovl\t-(%a0),-(%a1)\t|\tcopy longwords\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t|\tdecrement\n\tjcc\t.Lbcblloop\t|\ttil done\n#else\n\tdbf\t%d0,.Lbcblloop\t|\ttil done\n#endif\n\tandl\t#3,%d1\t\t|\tlen %= 4\n\tjeq\t.Lbcdone\n\n\tsubql\t#1,%d1\t\t| set up for dbf\n.Lbcbbloop:\n\tmovb\t-(%a0),-(%a1)\t| copy bytes\n.Lbcbbyte:\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t| decrement\n\tjcc\t.Lbcbbloop\t| til done\n#else\n\tdbf\t%d1,.Lbcbbloop\t| till done\n#endif\n\n#if defined(MEMCOPY) || defined(MEMMOVE)\n\tmovl\t4(%sp),%d0\t| dest address\n#if defined(__SVR4_ABI__)\n\tmoveal\t%d0,%a0\n#endif\n#endif\n\trts\nEND(XCOPY)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bcopy.S", "line_start": 241, "line_end": 281}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bzero.S:2", "text": "* modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)bzero.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: bzero.S,v 1.6 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(bzero)\n\tmovl\t%d2,-(%sp)\n\tmovl\t8(%sp),%a0\t\t| destination\n\tmovl\t12(%sp),%d1\t\t| count\n\n\tclrl\t%d2\n\n\t/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#8,%d1\n\tjlt\t.Lbzbyte\n\n\t/* word align */\n\tmovl\t%a0,%d0\n\tbtst\t#0,%d0\t\t\t| if (dst & 1)\n\tjeq\t.Lbzalgndw\t\t|\n\tmovb\t%d2,(%a0)+\t\t| \t*(char *)dst++ = 0\n\tsubql\t#1,%d1\t\t\t|\tlen--\n.Lbzalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\t\t\t| if (dst & 2)\n\tjeq\t.Lbzalgndl\t\t|\n\tmovw\t%d2,(%a0)+\t\t|\t*(short *)dst++ = 0\n\tsubql\t#2,%d1\t\t\t|\tlen -= 2", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bzero.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bzero.S:3", "text": "/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#8,%d1\n\tjlt\t.Lbzbyte\n\n\t/* word align */\n\tmovl\t%a0,%d0\n\tbtst\t#0,%d0\t\t\t| if (dst & 1)\n\tjeq\t.Lbzalgndw\t\t|\n\tmovb\t%d2,(%a0)+\t\t| \t*(char *)dst++ = 0\n\tsubql\t#1,%d1\t\t\t|\tlen--\n.Lbzalgndw:\n\t/* long word align */\n\tbtst\t#1,%d0\t\t\t| if (dst & 2)\n\tjeq\t.Lbzalgndl\t\t|\n\tmovw\t%d2,(%a0)+\t\t|\t*(short *)dst++ = 0\n\tsubql\t#2,%d1\t\t\t|\tlen -= 2\n.Lbzalgndl:\n\t/* zero by 8 longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#5,%d0\t\t\t| cnt = len / 32\n\tjeq\t.Lbzlong\t\t| if (cnt)\n\tandl\t#31,%d1\t\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbz32loop:\n\tmovl\t%d2,(%a0)+\t\t|\tzero 8 long words\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbz32loop\t\t|\ttill done\n\tclrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbz32loop\n\n.Lbzlong:\n\t/* copy by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t\t| cnt = len / 4\n\tjeq\t.Lbzbyte\t\t| if (cnt)\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbzlloop:\n\tmovl\t%d2,(%a0)+\t\t|\tclear longwords\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t\t|\tdecrement\n\tjcc\t.Lbzlloop\t\t|\ttill done\n#else\n\tdbf\t%d0,.Lbzlloop\t\t|\ttill done\n#endif\n\tandl\t#3,%d1\t\t\t|\tlen %= 4\n\tjeq\t.Lbzdone", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bzero.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/bzero.S:4", "text": "subql\t#1,%d0\n\tjcc\t.Lbz32loop\n\n.Lbzlong:\n\t/* copy by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t\t| cnt = len / 4\n\tjeq\t.Lbzbyte\t\t| if (cnt)\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbzlloop:\n\tmovl\t%d2,(%a0)+\t\t|\tclear longwords\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t\t|\tdecrement\n\tjcc\t.Lbzlloop\t\t|\ttill done\n#else\n\tdbf\t%d0,.Lbzlloop\t\t|\ttill done\n#endif\n\tandl\t#3,%d1\t\t\t|\tlen %= 4\n\tjeq\t.Lbzdone\n\n\tsubql\t#1,%d1\t\t\t| set up for dbf\n.Lbzbloop:\n\tmovb\t%d2,(%a0)+\t\t| zero bytes\n.Lbzbyte:\n#ifdef __mcoldfire__\n\tsubql\t#1,%d0\t\t\t| decrement\n\tjcc\t.Lbzbloop\t\t| till done\n#else\n\tdbf\t%d1,.Lbzbloop\t\t| till done\n#endif\n.Lbzdone:\n\tmovl\t(%sp)+,%d2\n\trts\nEND(bzero)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/bzero.S", "line_start": 121, "line_end": 154}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/ffs.S:2", "text": "#else\n\tRCSID(\"$NetBSD: ffs.S,v 1.8 2020/03/10 08:15:44 rin Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/* bit = ffs(value) */\n\n#ifdef _LIBC\nWEAK_ALIAS(__ffssi2,ffs)\n#else /* KERNEL */\n/*\n * Our in-kernel linker does not understand weak references, which\n * prevents modules depended on __ffssi2 from being loaded. Also,\n * we do not provide ffs(9) as a kernel routine. Let's rename it!\n */\n#define ffs __ffssi2\n#endif\n\n#if (!defined(__mc68010__) && !defined(__mcoldfire__)) || defined(__mcfisac__)\n\nENTRY(ffs)\n\tmovl\t4(%sp),%d0\n\tmovl\t%d0,%d1\n\tnegl\t%d0\n\tandl\t%d0,%d1\n\tmovql\t#32,%d0\n#if defined(__mcfisac__)\n\tff1.l\t%d1\t\t| count leading zeros\n#else\n\tbfffo\t%d1{#0:#32},%d1\n#endif\n\tsubl\t%d1,%d0\n\trts\nEND(ffs)\n\n#elif defined(__mcoldfire__)\n\nENTRY(ffs)\n\tclrl\t%d0\n\tmovl\t4(%sp),%d1\n\tjeq\t.L2\t\t| return 0 if 0\n.L1:\n\taddql\t#1,%d0\n\tlsrl\t#1,%d1\t\t| shift low bit into carry\n\tjcc\t.L1\t\t| keep looping while carry is clear.\n.L2:\n\trts\nEND(ffs)\n\n#else\t/* __mc68010__ */\n\nENTRY(ffs)\n\tmovl\t4(%sp),%d0\n\tjeq\t.L2\n\tmovql\t#31,%d1\n.L1:\n\tlsrl\t#1,%d0\n\tdbcs\t%d1,.L1\n\tmovql\t#32,%d0\n\tsubl\t%d1,%d0", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/ffs.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/ffs.S:3", "text": "jeq\t.L2\t\t| return 0 if 0\n.L1:\n\taddql\t#1,%d0\n\tlsrl\t#1,%d1\t\t| shift low bit into carry\n\tjcc\t.L1\t\t| keep looping while carry is clear.\n.L2:\n\trts\nEND(ffs)\n\n#else\t/* __mc68010__ */\n\nENTRY(ffs)\n\tmovl\t4(%sp),%d0\n\tjeq\t.L2\n\tmovql\t#31,%d1\n.L1:\n\tlsrl\t#1,%d0\n\tdbcs\t%d1,.L1\n\tmovql\t#32,%d0\n\tsubl\t%d1,%d0\n.L2:\n\trts\nEND(ffs)\n\n#endif\t/* __mc68010__ */", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/ffs.S", "line_start": 81, "line_end": 105}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memcmp.S:2", "text": "#else\n\tRCSID(\"$NetBSD: memcmp.S,v 1.6 2025/12/31 15:33:50 andvar Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/* memcmp(s1, s2, n) */\n\n#ifdef __mcoldfire__\n#define\tCMPMB(a,b)\tmovb b,%d2; cmpb a,%d2\n#define\tCMPMW(a,b)\tmovw b,%d2; cmpw a,%d2\n#define\tCMPML(a,b)\tmovl b,%d2; cmpl a,%d2\n#else\n#define\tCMPMB(a,b)\tcmpmb a,b\n#define\tCMPMW(a,b)\tcmpmw a,b\n#define\tCMPML(a,b)\tcmpml a,b\n#endif\n\n/*\n * This is probably not the best we can do, but it is still 2-10 times\n * faster than the C version in the portable gen directory.\n *\n * Things that might help:\n *\t- longword align when possible (only on the 68020)\n *\t- use nested DBcc instructions or use one and limit size to 64K\n */\nENTRY(memcmp)\n\tmovl\t4(%sp),%a0\t\t| string 1\n\tmovl\t8(%sp),%a1\t\t| string 2\n\tmovl\t12(%sp),%d0\t\t| length\n#ifdef __mcoldfire__\n\tmovl\t%d2,-(%sp)\t\t| save temp\n#endif\n\tjeq\t.Lbcdone\t\t| if zero, nothing to do\n\tmovl\t%a0,%d1\n\tbtst\t#0,%d1\t\t\t| string 1 address odd?\n\tjeq\t.Lbceven\t\t| no, skip alignment\n\tCMPMB((%a0)+,(%a1)+)\t\t| yes, compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n\tsubql\t#1,%d0\t\t\t| adjust count\n\tjeq\t.Lbcdone\t\t| count 0, return zero\n.Lbceven:\n\tmovl\t%a1,%d1\n\tbtst\t#0,%d1\t\t\t| string 2 address odd?\n\tjne\t.Lbcbloop\t\t| yes, no hope for alignment, compare bytes\n\tmovl\t%d0,%d1\t\t\t| no, both even\n\tlsrl\t#2,%d1\t\t\t| convert count to longword count\n\tjeq\t.Lbcbloop\t\t| count 0, skip longword loop\n.Lbclloop:\n\tCMPML((%a0)+,(%a1)+)\t\t| compare a longword\n\tjne\t.Lbcnoteql\t\t| not equal, return non-zero\n\tsubql\t#1,%d1\t\t\t| adjust count\n\tjne\t.Lbclloop\t\t| still more, keep comparing\n\tandl\t#3,%d0\t\t\t| what remains\n\tjeq\t.Lbcdone\t\t| nothing, all done\n.Lbcbloop:\n\tCMPMB((%a0)+,(%a1)+)\t\t| compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n\tsubql\t#1,%d0\t\t\t| adjust count\n\tjne\t.Lbcbloop\t\t| still more, keep going\n\trts", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memcmp.S:3", "text": ".Lbceven:\n\tmovl\t%a1,%d1\n\tbtst\t#0,%d1\t\t\t| string 2 address odd?\n\tjne\t.Lbcbloop\t\t| yes, no hope for alignment, compare bytes\n\tmovl\t%d0,%d1\t\t\t| no, both even\n\tlsrl\t#2,%d1\t\t\t| convert count to longword count\n\tjeq\t.Lbcbloop\t\t| count 0, skip longword loop\n.Lbclloop:\n\tCMPML((%a0)+,(%a1)+)\t\t| compare a longword\n\tjne\t.Lbcnoteql\t\t| not equal, return non-zero\n\tsubql\t#1,%d1\t\t\t| adjust count\n\tjne\t.Lbclloop\t\t| still more, keep comparing\n\tandl\t#3,%d0\t\t\t| what remains\n\tjeq\t.Lbcdone\t\t| nothing, all done\n.Lbcbloop:\n\tCMPMB((%a0)+,(%a1)+)\t\t| compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n\tsubql\t#1,%d0\t\t\t| adjust count\n\tjne\t.Lbcbloop\t\t| still more, keep going\n\trts\n.Lbcnoteql:\n\tsubql\t#4,%a0\n\tsubql\t#4,%a1\n\tmovl\t#4,%d0\n\tjra\t.Lbcbloop\n.Lbcnoteq:\n\tclrl\t%d0\n\tclrl\t%d1\n\tmovb\t-(%a0),%d0\n\tmovb\t-(%a1),%d1\n\tsubl\t%d1,%d0\n.Lbcdone:\n#ifdef __mcoldfire__\n\tmovl\t(%sp)+,%sp\t\t| restore temp\n#endif\n\trts\nEND(memcmp)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/memcmp.S", "line_start": 81, "line_end": 117}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memcmp.S:2", "text": "#else\n\tRCSID(\"$NetBSD: memcmp.S,v 1.5 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/* memcmp(s1, s2, n) */\n\n#ifdef __mcoldfire__\n#define\tCMPMB(a,b)\tmovb b,%d2; cmpb a,%d2\n#define\tCMPMW(a,b)\tmovw b,%d2; cmpw a,%d2\n#define\tCMPML(a,b)\tmovl b,%d2; cmpl a,%d2\n#else\n#define\tCMPMB(a,b)\tcmpmb a,b\n#define\tCMPMW(a,b)\tcmpmw a,b\n#define\tCMPML(a,b)\tcmpml a,b\n#endif\n\n/*\n * This is probably not the best we can do, but it is still 2-10 times\n * faster than the C version in the portable gen directory.\n *\n * Things that might help:\n *\t- longword align when possible (only on the 68020)\n *\t- use nested DBcc instructions or use one and limit size to 64K\n */\nENTRY(memcmp)\n\tmovl\t4(%sp),%a0\t\t| string 1\n\tmovl\t8(%sp),%a1\t\t| string 2\n\tmovl\t12(%sp),%d0\t\t| length\n#ifdef __mcoldfire__\n\tmovl\t%d2,-(%sp)\t\t| save temp\n#endif\n\tjeq\t.Lbcdone\t\t| if zero, nothing to do\n\tmovl\t%a0,%d1\n\tbtst\t#0,%d1\t\t\t| string 1 address odd?\n\tjeq\t.Lbceven\t\t| no, skip alignment\n\tCMPMB((%a0)+,(%a1)+)\t\t| yes, compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n\tsubql\t#1,%d0\t\t\t| adjust count\n\tjeq\t.Lbcdone\t\t| count 0, reutrn zero\n.Lbceven:\n\tmovl\t%a1,%d1\n\tbtst\t#0,%d1\t\t\t| string 2 address odd?\n\tjne\t.Lbcbloop\t\t| yes, no hope for alignment, compare bytes\n\tmovl\t%d0,%d1\t\t\t| no, both even\n\tlsrl\t#2,%d1\t\t\t| convert count to longword count\n\tjeq\t.Lbcbloop\t\t| count 0, skip longword loop\n.Lbclloop:\n\tCMPML((%a0)+,(%a1)+)\t\t| compare a longword\n\tjne\t.Lbcnoteql\t\t| not equal, return non-zero\n\tsubql\t#1,%d1\t\t\t| adjust count\n\tjne\t.Lbclloop\t\t| still more, keep comparing\n\tandl\t#3,%d0\t\t\t| what remains\n\tjeq\t.Lbcdone\t\t| nothing, all done\n.Lbcbloop:\n\tCMPMB((%a0)+,(%a1)+)\t\t| compare a byte\n\tjne\t.Lbcnoteq\t\t| not equal, return non-zero\n\tsubql\t#1,%d0\t\t\t| adjust count\n\tjne\t.Lbcbloop\t\t| still more, keep going\n\trts", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/m68k/string/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memset.S:2", "text": "* modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)bzero.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: memset.S,v 1.7 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(memset)\n\tmovl\t%d2,-(%sp)\n\tmovl\t8(%sp),%a0\t\t| destination\n\tmovl\t16(%sp),%d1\t\t| count\n\tmovb\t15(%sp),%d2\t\t| get fill character\n\n\t/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#15,%d1\n\tjlt\t.Lbzbyte\n\n\tclrl %d0\n\tmoveb\t%d2,%d0\n\tmovel\t%d0,%d2\n\tlsll\t#8,%d0\n\torl\t%d0,%d2\n\tlsll\t#8,%d0\n\torl\t%d0,%d2\n\tlsll\t#8,%d0\n\torl\t%d0,%d2\n\n\t/* word align */\n\tmovl\t%a0,%d0\n\tbtst\t#0,%d0\t\t\t| if (dst & 1)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memset.S:3", "text": "/*\n\t * It isn't worth the overhead of aligning to {long}word boundries\n\t * if the string is too short.\n\t */\n\tcmpl\t#15,%d1\n\tjlt\t.Lbzbyte\n\n\tclrl %d0\n\tmoveb\t%d2,%d0\n\tmovel\t%d0,%d2\n\tlsll\t#8,%d0\n\torl\t%d0,%d2\n\tlsll\t#8,%d0\n\torl\t%d0,%d2\n\tlsll\t#8,%d0\n\torl\t%d0,%d2\n\n\t/* word align */\n\tmovl\t%a0,%d0\n\tbtst\t#0,%d0\t\t\t| if (dst & 1)\n\tjeq\t.Lbzalgndw\t\t|\n\tmovb\t%d2,(%a0)+\t\t|\t*(char *)dst++ = X\n\tsubql\t#1,%d1\t\t\t|\tlen--\n\taddql\t#1,%d0\n.Lbzalgndw:\n#ifndef\t__mc68010__\n\t/* long word align */\n\tbtst\t#1,%d0\t\t\t| if (dst & 2)\n\tjeq\t.Lbzalgndl\t\t|\n\tmovw\t%d2,(%a0)+\t\t|\t*(short *)dst++ = X\n\tsubql\t#2,%d1\t\t\t|\tlen -= 2\n.Lbzalgndl:\n\t/* set by 8 longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#5,%d0\t\t\t| cnt = len / 32\n\tjeq\t.Lbzlong\t\t\t| if (cnt)\n\tandl\t#31,%d1\t\t\t|\tlen %= 32\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbz32loop:\n\tmovl\t%d2,(%a0)+\t\t|\tset 8 long words\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbz32loop\t\t|\ttill done\n\tclrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbz32loop\n#endif\t/* !__mc68010__ */\n\n.Lbzlong:\n\t/* set by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t\t| cnt = len / 4\n\tjeq\t.Lbzbyte\t\t\t| if (cnt)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/memset.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memset.S:4", "text": "movl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n\tmovl\t%d2,(%a0)+\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbz32loop\t\t|\ttill done\n\tclrw\t%d0\n#endif\n\tsubql\t#1,%d0\n\tjcc\t.Lbz32loop\n#endif\t/* !__mc68010__ */\n\n.Lbzlong:\n\t/* set by longwords */\n\tmovel\t%d1,%d0\n\tlsrl\t#2,%d0\t\t\t| cnt = len / 4\n\tjeq\t.Lbzbyte\t\t\t| if (cnt)\n\tsubql\t#1,%d0\t\t\t|\tset up for dbf\n.Lbzlloop:\n\tmovl\t%d2,(%a0)+\t\t|\tclear longwords\n#ifndef __mcoldfire__\n\tdbf\t%d0,.Lbzlloop\t\t|\ttill done\n#endif\n#ifdef\t__mc68010__\n\tclrw\t%d0\n#endif\t/* __mc68010__ */\n#if defined(__m68010) || defined(__mcoldfire__)\n\tsubql\t#1,%d0\n\tjcc\t.Lbzlloop\n#endif\t/* __mc68010__ || __mcoldfire__ */\n\tandl\t#3,%d1\t\t\t|\tlen %= 4\n\tjeq\t.Lbzdone\n\n\tsubql\t#1,%d1\t\t\t| set up for dbf\n.Lbzbloop:\n\tmovb\t%d2,(%a0)+\t\t| set bytes\n.Lbzbyte:\n#ifdef __mcoldfire__\n\tsubql\t#1,%d1\t\t\t| decrement\n\tjcc\t.Lbzbloop\t\t| till done\n#else\n\tdbf\t%d1,.Lbzbloop\t\t| till done\n#endif\n.Lbzdone:\n\tmovl\t8(%sp),%d0\t\t| return destination\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\tmovl\t(%sp)+,%d2\n\trts\nEND(memset)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/memset.S", "line_start": 121, "line_end": 174}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/memset.S:5", "text": "#ifdef __mcoldfire__\n\tsubql\t#1,%d1\t\t\t| decrement\n\tjcc\t.Lbzbloop\t\t| till done\n#else\n\tdbf\t%d1,.Lbzbloop\t\t| till done\n#endif\n.Lbzdone:\n\tmovl\t8(%sp),%d0\t\t| return destination\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\tmovl\t(%sp)+,%d2\n\trts\nEND(memset)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/memset.S", "line_start": 161, "line_end": 174}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strcat.S:1", "text": "/*\t$NetBSD: strcat.S,v 1.4 2013/09/07 19:06:29 chs Exp $\t*/\n\n/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * the Systems Programming Group of the University of Utah Computer\n * Science Department.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)strcpy.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: strcat.S,v 1.4 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strcat)\n\tmovl\t8(%sp),%a0\t\t| a0 = fromaddr\n\tmovl\t4(%sp),%d0\t\t| return value is toaddr\n\tmovl\t%d0,%a1\t\t\t| a1 = toaddr\n.Lslloop:\n\ttstb\t(%a1)+\t\t\t| null?\n\tjne\t.Lslloop\t\t| no, keep going\n\tsubql\t#1,%a1\n.Lscloop:\n\tmovb\t(%a0)+,(%a1)+\t\t| copy a byte\n\tjne\t.Lscloop\t\t| copied non-null, keep going\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\trts", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strcat.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strcat.S:2", "text": "#else\n\tRCSID(\"$NetBSD: strcat.S,v 1.4 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strcat)\n\tmovl\t8(%sp),%a0\t\t| a0 = fromaddr\n\tmovl\t4(%sp),%d0\t\t| return value is toaddr\n\tmovl\t%d0,%a1\t\t\t| a1 = toaddr\n.Lslloop:\n\ttstb\t(%a1)+\t\t\t| null?\n\tjne\t.Lslloop\t\t| no, keep going\n\tsubql\t#1,%a1\n.Lscloop:\n\tmovb\t(%a0)+,(%a1)+\t\t| copy a byte\n\tjne\t.Lscloop\t\t| copied non-null, keep going\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\trts\nEND(strcat)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strcat.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strchr.S:1", "text": "/*\t$NetBSD: strchr.S,v 1.4 2013/07/16 23:24:19 matt Exp $\t*/\n\n/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * the Systems Programming Group of the University of Utah Computer\n * Science Department.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)index.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: strchr.S,v 1.4 2013/07/16 23:24:19 matt Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strchr)\n\tmovl\t4(%sp),%a0\t\t| string\n\tmovb\t11(%sp),%d0\t\t| char to look for\nixloop:\n\tcmpb\t(%a0),%d0\t\t| found our char?\n\tjeq\tixfound\t\t\t| yes, break out\n\ttstb\t(%a0)+\t\t\t| null?\n\tjne\tixloop\t\t\t| no, keep going\n\tmoveq\t#0,%d0\t\t\t| not found, return null\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\trts\nixfound:\n\tmovl\t%a0,%d0\t\t\t| found, return pointer", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strchr.S:2", "text": "#else\n\tRCSID(\"$NetBSD: strchr.S,v 1.4 2013/07/16 23:24:19 matt Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strchr)\n\tmovl\t4(%sp),%a0\t\t| string\n\tmovb\t11(%sp),%d0\t\t| char to look for\nixloop:\n\tcmpb\t(%a0),%d0\t\t| found our char?\n\tjeq\tixfound\t\t\t| yes, break out\n\ttstb\t(%a0)+\t\t\t| null?\n\tjne\tixloop\t\t\t| no, keep going\n\tmoveq\t#0,%d0\t\t\t| not found, return null\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\trts\nixfound:\n\tmovl\t%a0,%d0\t\t\t| found, return pointer\n\trts\nEND(strchr)\n\nSTRONG_ALIAS(index,strchr)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strchr.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strcmp.S:1", "text": "/*\t$NetBSD: strcmp.S,v 1.7 2013/09/07 19:06:29 chs Exp $\t*/\n\n/*-\n * Copyright (c) 1997 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Hiroshi Horimoto <horimoto@cs-aoi.cs.sist.ac.jp> and\n * by J.T. Conklin <jtc@NetBSD.org>.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n\tRCSID(\"$NetBSD: strcmp.S,v 1.7 2013/09/07 19:06:29 chs Exp $\")\n#endif /* LIBC_SCCS and not lint */\n\n#ifdef __mcoldfire__\n#define GETC(a,b)\tmvsb\ta,b\n#define\tSUBC(a,b)\tmvsb\ta,%d0; subl %d0,b\n#else\n#define GETC(a,b)\tmovb\ta,b\n#define\tSUBC(a,b)\tsubb\ta,b\n#endif\n\nENTRY(strcmp)\n\tmovl\t4(%sp),%a0\n\tmovl\t8(%sp),%a1\n.L1:\t\t\t\t/* unrolled by 4 for 680[23]0's */\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strcmp.S:2", "text": "#define\tSUBC(a,b)\tmvsb\ta,%d0; subl %d0,b\n#else\n#define GETC(a,b)\tmovb\ta,b\n#define\tSUBC(a,b)\tsubb\ta,b\n#endif\n\nENTRY(strcmp)\n\tmovl\t4(%sp),%a0\n\tmovl\t8(%sp),%a1\n.L1:\t\t\t\t/* unrolled by 4 for 680[23]0's */\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjeq\t.L1\n\n.L3:\n#ifdef __mcoldfire__\n\tmovl\t%d1,%d0\n#else\n\tscs\t%d0\n\tEXTBL(%d0)\n\tmovb\t%d1,%d0\n#endif\n\trts\n\n.L2:\tmovq\t#0,%d0\n\tmovb\t(%a1),%d0\n\tnegl\t%d0\n\trts\nEND(strcmp)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strcmp.S", "line_start": 41, "line_end": 85}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strlen.S:1", "text": "/*\t$NetBSD: strlen.S,v 1.4 2013/09/07 19:06:29 chs Exp $\t*/\n\n/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * the Systems Programming Group of the University of Utah Computer\n * Science Department.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)strlen.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: strlen.S,v 1.4 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strlen)\n\tmovl\t4(%sp),%a0\t\t| string\n\tmovl\t%a0,%d0\n\tnotl\t%d0\n.Lslloop:\n\ttstb\t(%a0)+\t\t\t| null?\n\tjne\t.Lslloop\t\t| no, keep going\n\taddl\t%a0,%d0\n\trts\nEND(strlen)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strlen.S", "line_start": 1, "line_end": 55}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strncmp.S:2", "text": "#define GETC(a,b)\tmvsb\ta,b\n#define\tSUBC(a,b)\tmvsb\ta,%d2; subl %d2,b\n#else\n#define GETC(a,b)\tmovb\ta,b\n#define\tSUBC(a,b)\tsubb\ta,b\n#endif\n\nENTRY(strncmp)\n\tmovl\t12(%sp),%d0\n\tjeq\t.L4\n\tmovl\t4(%sp),%a0\n\tmovl\t8(%sp),%a1\n#ifdef __coldfire__\n\tmovl\t%d2,-(%sp)\t| save temp\n#endif\n.L1:\t\t\t\t/* unroll by 4 for m680[23]0's */\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\tsubql\t#1,%d0\n\tjeq\t.L4\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\tsubql\t#1,%d0\n\tjeq\t.L4\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\tsubql\t#1,%d0\n\tjeq\t.L4\n\n\tGETC((%a0)+,%d1)\n\tjeq\t.L2\n\tSUBC((%a1)+,%d1)\n\tjne\t.L3\n\tsubql\t#1,%d0\n\tjne\t.L1\n#ifdef __mcoldfire__\n\tmovl\t(%sp)+,%d2\t\t| restore temp\n#endif\n.L4:\trts\n\n.L2:\tSUBC((%a1),%d1)\n.L3:\n#ifdef __mcoldfire__\n\tmovl\t(%sp)+,%d2\t\t| restore temp\n\tmovl\t%d1,%d0\n#else\n\tscs\t%d0\n\tEXTBL(%d0)\n\tmoveb\t%d1,%d0\n#endif\n\trts\nEND(strncmp)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strncmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strncmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strncmp.S:3", "text": "jne\t.L3\n\tsubql\t#1,%d0\n\tjne\t.L1\n#ifdef __mcoldfire__\n\tmovl\t(%sp)+,%d2\t\t| restore temp\n#endif\n.L4:\trts\n\n.L2:\tSUBC((%a1),%d1)\n.L3:\n#ifdef __mcoldfire__\n\tmovl\t(%sp)+,%d2\t\t| restore temp\n\tmovl\t%d1,%d0\n#else\n\tscs\t%d0\n\tEXTBL(%d0)\n\tmoveb\t%d1,%d0\n#endif\n\trts\nEND(strncmp)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strncmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strncmp.S", "line_start": 81, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strncpy.S:1", "text": "/*\t$NetBSD: strncpy.S,v 1.5 2013/09/07 19:06:29 chs Exp $\t*/\n\n/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * the Systems Programming Group of the University of Utah Computer\n * Science Department.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)strncpy.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: strncpy.S,v 1.5 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strncpy)\n\tmovl\t4(%sp),%d0\t\t| return value is toaddr\n\tmovl\t12(%sp),%d1\t\t| count\n\tjeq\t.Lscdone\t\t| nothing to do\n\tmovl\t8(%sp),%a0\t\t| a0 = fromaddr\n\tmovl\t%d0,%a1\t\t\t| a1 = toaddr\n\tsubql\t#1,%d1\n.Lscloop:\n\tmovb\t(%a0)+,(%a1)+\t\t| copy a byte\n#ifndef __mcoldfire__\n\tdbeq\t%d1,.Lscloop\t\t| loop through low word of d1\n#endif\n\tjeq\t.Lscpadding\t\t| copied null, padding if necessary\n#ifndef __mcoldfire__\n\tclrw\t%d1\t\t\t| clear low word of d1", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strncpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strncpy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strncpy.S:2", "text": "#else\n\tRCSID(\"$NetBSD: strncpy.S,v 1.5 2013/09/07 19:06:29 chs Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strncpy)\n\tmovl\t4(%sp),%d0\t\t| return value is toaddr\n\tmovl\t12(%sp),%d1\t\t| count\n\tjeq\t.Lscdone\t\t| nothing to do\n\tmovl\t8(%sp),%a0\t\t| a0 = fromaddr\n\tmovl\t%d0,%a1\t\t\t| a1 = toaddr\n\tsubql\t#1,%d1\n.Lscloop:\n\tmovb\t(%a0)+,(%a1)+\t\t| copy a byte\n#ifndef __mcoldfire__\n\tdbeq\t%d1,.Lscloop\t\t| loop through low word of d1\n#endif\n\tjeq\t.Lscpadding\t\t| copied null, padding if necessary\n#ifndef __mcoldfire__\n\tclrw\t%d1\t\t\t| clear low word of d1\n#endif\n\tsubql\t#1,%d1\t\t\t| adjust count for long copies\n\tjcc\t.Lscloop\t\t| more room, keep going\n.Lscdone:\n#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif\n\trts\n\n.Lscploop:\n\tclrb\t(%a1)+\t\t\t| clear a byte\n#ifndef __mcoldfire__\n\tdbra\t%d1,.Lscploop\t\t| keep going\n\tclrw\t%d1\n#endif\n.Lscpadding:\n\tsubql\t#1,%d1\n\tjcc\t.Lscploop\n\tjra\t.Lscdone\nEND(strncpy)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strncpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strncpy.S", "line_start": 41, "line_end": 80}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strrchr.S:1", "text": "/*\t$NetBSD: strrchr.S,v 1.4 2013/07/16 23:24:19 matt Exp $\t*/\n\n/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * the Systems Programming Group of the University of Utah Computer\n * Science Department.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n#if 0\n\tRCSID(\"from: @(#)rindex.s\t5.1 (Berkeley) 5/12/90\")\n#else\n\tRCSID(\"$NetBSD: strrchr.S,v 1.4 2013/07/16 23:24:19 matt Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strrchr)\n\tmovl\t4(%sp),%a1\t\t| string\n\tmovb\t11(%sp),%d0\t\t| char to look for\n\tsubl\t%a0,%a0\t\t\t| clear rindex pointer\nrixloop:\n\tcmpb\t(%a1),%d0\t\t| found our char?\n\tjne\trixnope\t\t\t| no, check for null\n\tmovl\t%a1,%a0\t\t\t| yes, remember location\nrixnope:\n\ttstb\t(%a1)+\t\t\t| null?\n\tjne\trixloop\t\t\t| no, keep going\n\tmovl\t%a0,%d0\t\t\t| return value\n\trts\nEND(strrchr)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/m68k/string/strrchr.S:2", "text": "#else\n\tRCSID(\"$NetBSD: strrchr.S,v 1.4 2013/07/16 23:24:19 matt Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\nENTRY(strrchr)\n\tmovl\t4(%sp),%a1\t\t| string\n\tmovb\t11(%sp),%d0\t\t| char to look for\n\tsubl\t%a0,%a0\t\t\t| clear rindex pointer\nrixloop:\n\tcmpb\t(%a1),%d0\t\t| found our char?\n\tjne\trixnope\t\t\t| no, check for null\n\tmovl\t%a1,%a0\t\t\t| yes, remember location\nrixnope:\n\ttstb\t(%a1)+\t\t\t| null?\n\tjne\trixloop\t\t\t| no, keep going\n\tmovl\t%a0,%d0\t\t\t| return value\n\trts\nEND(strrchr)\n\nSTRONG_ALIAS(rindex,strrchr)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/m68k/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/m68k/string/strrchr.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.16 2023/03/30 15:03:36 riastradh Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\n.if !${MACHINE_MIPS64}\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c \\\n\tatomic_and_32_cas.c atomic_and_32_nv_cas.c \\\n\tatomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c \\\n\tatomic_or_32_cas.c atomic_or_32_nv_cas.c \\\n\tatomic_swap_32_cas.c \\\n\tatomic_add_64_cas.c atomic_add_64_nv_cas.c \\\n\tatomic_and_64_cas.c atomic_and_64_nv_cas.c \\\n\tatomic_dec_64_cas.c atomic_dec_64_nv_cas.c \\\n\tatomic_inc_64_cas.c atomic_inc_64_nv_cas.c \\\n\tatomic_or_64_cas.c atomic_or_64_nv_cas.c \\\n\tatomic_swap_64_cas.c\n\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP\n\n.else\nSRCS+=\tatomic_add.S atomic_dec.S atomic_inc.S\nSRCS+=\tatomic_and.S atomic_or.S\nSRCS+=\tatomic_swap.S\n.endif\n\nSRCS+=\tmembar_ops.S\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\n.if !${MACHINE_MIPS64}\nSRCS+=\tatomic_init_testset.c atomic_cas_up.S\n.else\nSRCS+=\tatomic_cas.S atomic_init_cas.c atomic_cas_by_cas32.c\n.endif\n\n.endif\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\t\t\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\t\t\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_add_16_cas.c atomic_add_8_cas.c\t\t\t\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c\t\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c\n.if !${MACHINE_MIPS64}\nSRCS+=\tatomic_is_lock_free.c\n.endif\n.endif\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"rump\")", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/Makefile.inc", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/Makefile.inc:2", "text": ".if defined(LIB) && ${LIB} == \"c\"\nSRCS+=\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\t\t\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\t\t\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\t\t\\\n\tatomic_add_16_cas.c atomic_add_8_cas.c\t\t\t\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c\t\t\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c\n.if !${MACHINE_MIPS64}\nSRCS+=\tatomic_is_lock_free.c\n.endif\n.endif\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"rump\")\n\nSRCS+=\tmembar_ops.S\n\n.endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/Makefile.inc", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_add.S:1", "text": "/*\t$NetBSD: atomic_add.S,v 1.7 2020/08/06 10:00:21 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: atomic_add.S,v 1.7 2020/08/06 10:00:21 skrll Exp $\")\n\n\t.text\n\t.set\tnoreorder\n#ifdef _KERNEL_OPT\n#include \"opt_cputype.h\"\n#ifndef MIPS3_LOONGSON2F\n\t.set\tnoat\n\t.set\tnomacro\n#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\n\nLEAF(_atomic_add_32)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tsaa\t\ta1, (a0)\n#else\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tINT_ADDU\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_add.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_add.S:2", "text": "#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\n\nLEAF(_atomic_add_32)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tsaa\t\ta1, (a0)\n#else\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tINT_ADDU\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_32, _atomic_add_32)\n\nLEAF(_atomic_add_32_nv)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tINT_ADDU\tv0, a1\n\tmove\t\tt0, v0\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_32_nv, _atomic_add_32_nv)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_add_64)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tsaad\t\ta1, (a0)\n#else\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tREG_ADDU\tt0, a1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_64, _atomic_add_64)\n\nLEAF(_atomic_add_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_add.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_add.S:3", "text": "#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tsaad\t\ta1, (a0)\n#else\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tREG_ADDU\tt0, a1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_64, _atomic_add_64)\n\nLEAF(_atomic_add_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tREG_ADDU\tv0, a1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_64_nv, _atomic_add_64_nv)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_add_long,\t\t_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long_nv,\t_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr,\t\t_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr_nv,\t_atomic_add_64_nv)\n#else\nSTRONG_ALIAS(_atomic_add_long,\t\t_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long_nv,\t_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr,\t\t_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr_nv,\t_atomic_add_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_add_int,\t\t_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int_nv,\t_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_int,\t\t_atomic_add_int)\nATOMIC_OP_ALIAS(atomic_add_int_nv,\t_atomic_add_int_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr,\t\t_atomic_add_ptr)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,\t_atomic_add_ptr_nv)\nATOMIC_OP_ALIAS(atomic_add_long,\t_atomic_add_long)\nATOMIC_OP_ALIAS(atomic_add_long_nv,\t_atomic_add_long_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_add.S", "line_start": 81, "line_end": 131}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_add.S:4", "text": "STRONG_ALIAS(_atomic_add_ptr_nv,\t_atomic_add_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_add_int,\t\t_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int_nv,\t_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_int,\t\t_atomic_add_int)\nATOMIC_OP_ALIAS(atomic_add_int_nv,\t_atomic_add_int_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr,\t\t_atomic_add_ptr)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,\t_atomic_add_ptr_nv)\nATOMIC_OP_ALIAS(atomic_add_long,\t_atomic_add_long)\nATOMIC_OP_ALIAS(atomic_add_long_nv,\t_atomic_add_long_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_add.S", "line_start": 121, "line_end": 131}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_and.S:1", "text": "/*\t$NetBSD: atomic_and.S,v 1.6 2020/08/06 10:00:21 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: atomic_and.S,v 1.6 2020/08/06 10:00:21 skrll Exp $\")\n\n\t.text\n\t.set\tnoreorder\n#ifdef _KERNEL_OPT\n#include \"opt_cputype.h\"\n#ifndef MIPS3_LOONGSON2F\n\t.set\tnoat\n\t.set\tnomacro\n#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\n\nLEAF(_atomic_and_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tand\t\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_32, _atomic_and_32)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_and.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_and.S:2", "text": "#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\n\nLEAF(_atomic_and_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tand\t\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_32, _atomic_and_32)\n\nLEAF(_atomic_and_32_nv)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tand\t\tv0, a1\n\tmove\t\tt0, v0\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv, _atomic_and_32_nv)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_and_64)\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tand\t\tt0, a1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_64, _atomic_and_64)\n\nLEAF(_atomic_and_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tand\t\tv0, a1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_64_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_and.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_and.S:3", "text": "REG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_64, _atomic_and_64)\n\nLEAF(_atomic_and_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tand\t\tv0, a1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64_nv, _atomic_and_64_nv)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_and_ulong,\t\t_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ulong_nv,\t_atomic_and_64_nv)\n#else\nSTRONG_ALIAS(_atomic_and_ulong,\t\t_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong_nv,\t_atomic_and_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_and_uint,\t\t_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint_nv,\t_atomic_and_32_nv)\n\nATOMIC_OP_ALIAS(atomic_and_uint,\t_atomic_and_uint)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,\t_atomic_and_uint_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong,\t_atomic_and_ulong)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,\t_atomic_and_ulong_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_and.S", "line_start": 81, "line_end": 117}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.9 2022/02/27 19:21:53 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: atomic_cas.S,v 1.9 2022/02/27 19:21:53 riastradh Exp $\")\n\n\t.text\n\t.set\tnoat\n\t.set\tnoreorder\n\t.set\tnomacro\n\nLEAF(_atomic_cas_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tbne\t\tv0, a1, 2f\n\t nop\n\tmove\t\tt0, a2\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tmove\t\tv0, a1\n\tSYNC_PLUNGER\n2:\n\tj\t\tra\n\t nop\nEND(_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32, _atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni, _atomic_cas_32)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_cas_64)\n\tLLSCSYNC", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_cas.S:2", "text": "1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tbne\t\tv0, a1, 2f\n\t nop\n\tmove\t\tt0, a2\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tmove\t\tv0, a1\n\tSYNC_PLUNGER\n2:\n\tj\t\tra\n\t nop\nEND(_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32, _atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni, _atomic_cas_32)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_cas_64)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tbne\t\tv0, a1, 2f\n\t nop\n\tmove\t\tt0, a2\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tmove\t\tv0, a1\n\tSYNC_PLUNGER\n2:\n\tj\t\tra\n\t nop\nEND(_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64, _atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64_ni, _atomic_cas_64)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_cas_ptr,\t\t_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,\t_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,\t\t_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,\t_atomic_cas_64)\n#else\nSTRONG_ALIAS(_atomic_cas_ptr,\t\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,\t\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,\t_atomic_cas_32)\n#endif\nSTRONG_ALIAS(_atomic_cas_uint,\t\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,\t_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,\t\t_atomic_cas_ptr)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,\t_atomic_cas_ptr_ni)\nATOMIC_OP_ALIAS(atomic_cas_uint,\t_atomic_cas_uint)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,\t_atomic_cas_uint_ni)\nATOMIC_OP_ALIAS(atomic_cas_ulong,\t_atomic_cas_ulong)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,\t_atomic_cas_ulong_ni)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_cas.S", "line_start": 41, "line_end": 98}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_cas.S:3", "text": "STRONG_ALIAS(_atomic_cas_ptr_ni,\t_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,\t\t_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,\t_atomic_cas_64)\n#else\nSTRONG_ALIAS(_atomic_cas_ptr,\t\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,\t\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,\t_atomic_cas_32)\n#endif\nSTRONG_ALIAS(_atomic_cas_uint,\t\t_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,\t_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,\t\t_atomic_cas_ptr)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,\t_atomic_cas_ptr_ni)\nATOMIC_OP_ALIAS(atomic_cas_uint,\t_atomic_cas_uint)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,\t_atomic_cas_uint_ni)\nATOMIC_OP_ALIAS(atomic_cas_ulong,\t_atomic_cas_ulong)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,\t_atomic_cas_ulong_ni)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_cas.S", "line_start": 81, "line_end": 98}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_cas_up.S:1", "text": "/*\t$NetBSD: atomic_cas_up.S,v 1.3 2020/08/01 09:26:49 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include \"atomic_op_asm.h\"\n\n\t.text\n\t.set\tnoat\n\t.set\tnoreorder\n\nLEAF(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tlw\tt0, (a0)\n\t nop\n\tbne\tt0, a1, 1f\n \t nop\n\tsw\ta2, (a0)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n\tj\tra\n\t addu\tv0, zero, a1\n1:\n\tj\tra\n\t addu\tv0, zero, t0\nEND(_atomic_cas_up)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_cas_up.S", "line_start": 1, "line_end": 50}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_dec.S:1", "text": "/*\t$NetBSD: atomic_dec.S,v 1.7 2020/08/06 10:00:21 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: atomic_dec.S,v 1.7 2020/08/06 10:00:21 skrll Exp $\")\n\n\t.text\n\t.set\tnoreorder\n#ifdef _KERNEL_OPT\n#include \"opt_cputype.h\"\n#ifndef MIPS3_LOONGSON2F\n\t.set\tnoat\n\t.set\tnomacro\n#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\nLEAF(_atomic_dec_32)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, -1\n\tsaa\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tINT_ADDU\tt0, -1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_dec.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_dec.S:2", "text": "#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\nLEAF(_atomic_dec_32)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, -1\n\tsaa\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tINT_ADDU\tt0, -1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_32, _atomic_dec_32)\n\nLEAF(_atomic_dec_32_nv)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tINT_ADDU\tv0, -1\n\tmove\t\tt0, v0\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_32_nv, _atomic_dec_32_nv)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_dec_64)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, -1\n\tsaad\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tREG_ADDU\tt0, -1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_64, _atomic_dec_64)\n\nLEAF(_atomic_dec_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_dec.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_dec.S:3", "text": "#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, -1\n\tsaad\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tREG_ADDU\tt0, -1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_64, _atomic_dec_64)\n\nLEAF(_atomic_dec_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tREG_ADDU\tv0, -1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_64_nv, _atomic_dec_64_nv)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_dec_ptr,\t\t_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,\t_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ulong,\t\t_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,\t_atomic_dec_64_nv)\n#else\nSTRONG_ALIAS(_atomic_dec_ptr,\t\t_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,\t_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong,\t\t_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,\t_atomic_dec_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_dec_uint,\t\t_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint_nv,\t_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_ptr,\t\t_atomic_dec_ptr)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,\t_atomic_dec_ptr_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint,\t_atomic_dec_uint)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,\t_atomic_dec_uint_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong,\t_atomic_dec_ulong)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,\t_atomic_dec_ulong_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_dec.S", "line_start": 81, "line_end": 132}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_dec.S:4", "text": "STRONG_ALIAS(_atomic_dec_ulong,\t\t_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,\t_atomic_dec_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_dec_uint,\t\t_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint_nv,\t_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_ptr,\t\t_atomic_dec_ptr)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,\t_atomic_dec_ptr_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint,\t_atomic_dec_uint)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,\t_atomic_dec_uint_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong,\t_atomic_dec_ulong)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,\t_atomic_dec_ulong_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_dec.S", "line_start": 121, "line_end": 132}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_inc.S:1", "text": "/*\t$NetBSD: atomic_inc.S,v 1.7 2020/08/06 10:00:21 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: atomic_inc.S,v 1.7 2020/08/06 10:00:21 skrll Exp $\")\n\n\t.text\n\t.set\tnoreorder\n#ifdef _KERNEL_OPT\n#include \"opt_cputype.h\"\n#ifndef MIPS3_LOONGSON2F\n\t.set\tnoat\n\t.set\tnomacro\n#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\n\nLEAF(_atomic_inc_32)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, 1\n\tsaa\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tINT_ADDU\tt0, 1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_inc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_inc.S:2", "text": "#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\n\nLEAF(_atomic_inc_32)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, 1\n\tsaa\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tINT_ADDU\tt0, 1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_32, _atomic_inc_32)\n\nLEAF(_atomic_inc_32_nv)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tINT_ADDU\tv0, 1\n\tmove\t\tt0, v0\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv, _atomic_inc_32_nv)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_inc_64)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, 1\n\tsaad\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tREG_ADDU\tt0, 1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_64, _atomic_inc_64)\n\nLEAF(_atomic_inc_64_nv)\n\tLLSCSYNC", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_inc.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_inc.S:3", "text": "LEAF(_atomic_inc_64)\n#if defined(_MIPS_ARCH_OCTEONP) || defined(_MIPS_ARCH_OCTEON2)\n\tli\t\tt0, 1\n\tsaad\t\tt0, (a0)\n#else\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tREG_ADDU\tt0, 1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n#endif\n\tj\t\tra\n\t nop\nEND(_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_64, _atomic_inc_64)\n\nLEAF(_atomic_inc_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tREG_ADDU\tv0, 1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_64_nv, _atomic_inc_64_nv)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_inc_ptr,\t\t_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,\t_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ulong,\t\t_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,\t_atomic_inc_64_nv)\n#else\nSTRONG_ALIAS(_atomic_inc_ptr,\t\t_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,\t_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong,\t\t_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,\t_atomic_inc_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_inc_uint,\t\t_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint_nv,\t_atomic_inc_32_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_ptr,\t\t_atomic_inc_ptr)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,\t_atomic_inc_ptr_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint,\t_atomic_inc_uint)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,\t_atomic_inc_uint_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong,\t_atomic_inc_ulong)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,\t_atomic_inc_ulong_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_inc.S", "line_start": 81, "line_end": 133}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_inc.S:4", "text": "STRONG_ALIAS(_atomic_inc_ptr_nv,\t_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong,\t\t_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,\t_atomic_inc_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_inc_uint,\t\t_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint_nv,\t_atomic_inc_32_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_ptr,\t\t_atomic_inc_ptr)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,\t_atomic_inc_ptr_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint,\t_atomic_inc_uint)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,\t_atomic_inc_uint_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong,\t_atomic_inc_ulong)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,\t_atomic_inc_ulong_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_inc.S", "line_start": 121, "line_end": 133}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_or.S:1", "text": "/*\t$NetBSD: atomic_or.S,v 1.6 2020/08/06 10:00:21 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\n\t.text\n\t.set\tnoreorder\n#ifdef _KERNEL_OPT\n#include \"opt_cputype.h\"\n#ifndef MIPS3_LOONGSON2F\n\t.set\tnoat\n\t.set\tnomacro\n#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\nLEAF(_atomic_or_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tor\t\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_32, _atomic_or_32)\n\nLEAF(_atomic_or_32_nv)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_or.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_or.S:2", "text": ".set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\nLEAF(_atomic_or_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tt0, 0(a0)\n\t nop\n\tor\t\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_32, _atomic_or_32)\n\nLEAF(_atomic_or_32_nv)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tor\t\tv0, a1\n\tmove\t\tt0, v0\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_32_nv, _atomic_or_32_nv)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_or_64)\n\tLLSCSYNC\n1:\tREG_LL\t\tt0, 0(a0)\n\t nop\n\tor\t\tt0, a1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_64, _atomic_or_64)\n\nLEAF(_atomic_or_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tor\t\tv0, a1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64_nv, _atomic_or_64_nv)\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_or.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_or.S:3", "text": "j\t\tra\n\t nop\nEND(_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_64, _atomic_or_64)\n\nLEAF(_atomic_or_64_nv)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tor\t\tv0, a1\n\tmove\t\tt0, v0\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n\tj\t\tra\n\t nop\nEND(_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_64_nv, _atomic_or_64_nv)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_or_ulong,\t\t_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ulong_nv,\t_atomic_or_64_nv)\n#else\nSTRONG_ALIAS(_atomic_or_ulong,\t\t_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong_nv,\t_atomic_or_32_nv)\n#endif\nSTRONG_ALIAS(_atomic_or_uint,\t\t_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint_nv,\t_atomic_or_32_nv)\n\nATOMIC_OP_ALIAS(atomic_or_uint,\t\t_atomic_or_uint)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,\t_atomic_or_uint_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong,\t_atomic_or_ulong)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,\t_atomic_or_ulong_nv)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_or.S", "line_start": 81, "line_end": 114}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_swap.S:1", "text": "/*\t$NetBSD: atomic_swap.S,v 1.8 2022/02/27 19:21:53 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n#include \"atomic_op_asm.h\"\n\nRCSID(\"$NetBSD: atomic_swap.S,v 1.8 2022/02/27 19:21:53 riastradh Exp $\")\n\n\t.text\n\t.set\tnoreorder\n#ifdef _KERNEL_OPT\n#include \"opt_cputype.h\"\n#ifndef MIPS3_LOONGSON2F\n\t.set\tnoat\n\t.set\tnomacro\n#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\nLEAF(_atomic_swap_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tmove\t\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n2:\n\tj\t\tra\n\t BDSYNC_PLUNGER\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32, _atomic_swap_32)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_swap.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/atomic_swap.S:2", "text": "#endif\n#else /* _KERNEL_OPT */\n\t.set\tnoat\n\t.set\tnomacro\n#endif /* _KERNEL_OPT */\n\nLEAF(_atomic_swap_32)\n\tLLSCSYNC\n1:\tINT_LL\t\tv0, 0(a0)\n\t nop\n\tmove\t\tt0, a1\n\tINT_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n2:\n\tj\t\tra\n\t BDSYNC_PLUNGER\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32, _atomic_swap_32)\n\n#if !defined(__mips_o32)\nLEAF(_atomic_swap_64)\n\tLLSCSYNC\n1:\tREG_LL\t\tv0, 0(a0)\n\t nop\n\tmove\t\tt0, a1\n\tREG_SC\t\tt0, 0(a0)\n\tbeq\t\tt0, zero, 1b\n \t nop\n2:\n\tj\t\tra\n\t BDSYNC_PLUNGER\nEND(_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_64, _atomic_swap_64)\n#endif\n\n#ifdef _LP64\nSTRONG_ALIAS(_atomic_swap_ptr,\t\t_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ulong,\t_atomic_swap_64)\n#else\nSTRONG_ALIAS(_atomic_swap_ptr,\t\t_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,\t_atomic_swap_32)\n#endif\nSTRONG_ALIAS(_atomic_swap_uint,\t\t_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_ptr,\t_atomic_swap_ptr)\nATOMIC_OP_ALIAS(atomic_swap_uint,\t_atomic_swap_uint)\nATOMIC_OP_ALIAS(atomic_swap_ulong,\t_atomic_swap_ulong)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/atomic_swap.S", "line_start": 41, "line_end": 88}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/membar_ops.S:2", "text": "ATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\n\n#ifdef __OCTEON__\n\n/*\n * cnMIPS guarantees load-before-load/store ordering without any\n * barriers.  So the only barriers we need are store-before-load (sync)\n * and store-before-store (syncw, i.e., sync 4).  See Table 2-32\n * `Execution Ordering Rules' on p. 104 of Cavium OCTEON III CN78XX\n * Hardware Reference Manual, CN78XX-HM-0.99E, September 2014:\n *\n *\tFirst Operation\t\tDLD [load instruction to a physical\n *\t\t\t\taddress that is L2/DRAM]\n *\tSecond Operation\tAny\n *\tExecution Ordering Comments\n *\n *\t\tThe second operation cannot appear to execute before\n *\t\tthe first (DLD) operation, regardless of the presence\n *\t\tor absence of SYNC* instructions.\n *\n * Note: I'm not sure if this applies to earlier cnMIPS -- can't find\n * it in the Cavium Networks OCTEON Plus CN50XX Hardware Reference\n * Manual CN50XX-HM-0.99E, July 2008.  Experimentally, on an erlite3\n * (Cavium Octeon CN5020-500), I can easily detect reordering of\n * store-before-store and store-before-load, but I haven't been able to\n * detect any reordering of load-before-load or load-before-store.\n *\n * Note: On early cnMIPS (CN3xxx), there is an erratum which sometimes\n * requires issuing two syncw's in a row.  I don't know the details --\n * don't have documentation -- and in Linux it is only used for I/O\n * purposes.\n *\n * Currently we don't build kernels that work on both Octeon and\n * non-Octeon MIPS CPUs, so none of this is done with binary patching.\n * For userlands we could use a separate shared library on Octeon with\n * ld.so.conf to override the symbols with cheaper definitions, but we\n * don't do that now.\n */\n\nLEAF(_membar_acquire)\n\tj\tra\n\t nop\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\n\nLEAF(_membar_release)\n\tj\tra\n\t syncw\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nSTRONG_ALIAS(_membar_exit,_membar_release)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/membar_ops.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/atomic/membar_ops.S:3", "text": "*/\n\nLEAF(_membar_acquire)\n\tj\tra\n\t nop\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\n\nLEAF(_membar_release)\n\tj\tra\n\t syncw\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nSTRONG_ALIAS(_membar_exit,_membar_release)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)\n\nSTRONG_ALIAS(_membar_producer,_membar_release)\nATOMIC_OP_ALIAS(membar_producer,_membar_release)\n\n#else  /* !__OCTEON__ */\n\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_producer,_membar_sync)\nATOMIC_OP_ALIAS(membar_producer,_membar_sync)\n\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/atomic/membar_ops.S", "line_start": 81, "line_end": 117}
{"id": "NetBSD/src:common/lib/libc/arch/mips/gen/byte_swap_2.S:2", "text": "RCSID(\"$NetBSD: byte_swap_2.S,v 1.3 2009/12/14 00:39:00 matt Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n#undef _LOCORE\n#define _LOCORE\t\t/* XXX not really, just assembly-code source */\n#include <machine/endian.h>\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define\tBSWAP16_NAME\tbswap16\n#else\n#define\tBSWAP16_NAME\t__bswap16\n#endif\n\nNLEAF(BSWAP16_NAME)\n#if BYTE_ORDER == LITTLE_ENDIAN\nALEAF(htons)\nALEAF(ntohs)\n#endif\n#if (__mips == 32 || __mips == 64) && __mips_isa_rev == 2\n\t/*\n\t * If we are on MIPS32r2 or MIPS64r2, use the new instructions\n\t */\n\twsbh\ta0, a0\t\t\t# word swap bytes within halfwords\n\tand\tv0, a0, 0xffff\t\t# bound it to 16bits\n\tj\tra\n#else\n\tsrl\tv0, a0, 8\n\tand\tv0, v0, 0xff\n\tsll\tv1, a0, 8\n\tand\tv1, v1, 0xff00\n\tor\tv0, v0, v1\n\tj\tra\n#endif\nEND(BSWAP16_NAME)\n\n#if BYTE_ORDER == BIG_ENDIAN\nNLEAF(htons)\nALEAF(ntohs)\n\tmove\tv0, a0\n\tj\tra\nEND(htons)\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/gen/byte_swap_2.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/gen/byte_swap_2.S", "line_start": 41, "line_end": 83}
{"id": "NetBSD/src:common/lib/libc/arch/mips/gen/byte_swap_4.S:2", "text": "RCSID(\"$NetBSD: byte_swap_4.S,v 1.3 2009/12/14 00:39:00 matt Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n#undef _LOCORE\n#define _LOCORE\t\t/* XXX not really, just assembly-code source */\n#include <machine/endian.h>\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n#define\tBSWAP32_NAME\tbswap32\n#else\n#define\tBSWAP32_NAME\t__bswap32\n#endif\n\nNLEAF(BSWAP32_NAME)\t\t\t# a0 = 0x11223344, return 0x44332211\n#if BYTE_ORDER == LITTLE_ENDIAN\nALEAF(htonl)\t\t\t\t# a0 = 0x11223344, return 0x44332211\nALEAF(ntohl)\n#endif\n#if (__mips == 32 || __mips == 64) && __mips_isa_rev == 2\n\t/*\n\t * If we are on MIPS32R2 or MIPS64R2 it's much easier\n\t */\n\twsbh\ta0, a0\t\t\t# word swap bytes within halfwords\n\trotr\tv0, a0, 16\t\t# rotate word 16bits\n\tj\tra\n#else\n\tsrl\tv1, a0, 24\t\t# v1 = 0x00000011\n\tsll\tv0, a0, 24\t\t# v0 = 0x44000000\n\tor\tv0, v0, v1\n\tand\tv1, a0, 0xff00\n\tsll\tv1, v1, 8\t\t# v1 = 0x00330000\n\tor\tv0, v0, v1\n\tsrl\tv1, a0, 8\n\tand\tv1, v1, 0xff00\t\t# v1 = 0x00002200\n\tor\tv0, v0, v1\n\tj\tra\n#endif\nEND(BSWAP32_NAME)\n\n#if BYTE_ORDER == BIG_ENDIAN\nNLEAF(htonl)\t\t\t\t# a0 = 0x11223344, return 0x44332211\nALEAF(ntohl)\n\tmove\tv0, a0\n\tj\tra\nEND(htonl)\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/gen/byte_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/gen/byte_swap_4.S", "line_start": 41, "line_end": 87}
{"id": "NetBSD/src:common/lib/libc/arch/mips/gen/byte_swap_8.S:2", "text": "#undef _LOCORE\n#define _LOCORE\t\t/* XXX not really, just assembly-code source */\n#include <machine/endian.h>\n\nNLEAF(bswap64)\t# a0 = 0xffeeddccbbaa9988 return 0x8899aabbccddeeff\n#if (__mips == 32 || __mips == 64) && __mips_isa_rev == 2\n#if !defined(__mips_o32)\n\t/*\n\t * If we are on MIPS32r2 or MIPS64r2 use the new instructions.\n\t */\n\tdsbh\tv0, a0\t\t\t# dwords swap bytes within halfwords\n\tdshd\tv0, v0\t\t\t# dwords swap halwords within dwords\n\tj\tra\n#else /* defined(__mips_o32) */\n\t/*\n\t * If we are on MIPS32r2 or MIPS64r2 use the new instructions.\n\t * (except we must use the 32bit versions)\n\t */\n\twsbh\tv1, a0\t\t\t# word swap bytes within halfwords\n\twsbh\tv0, a1\t\t\t# word swap bytes within halfwords\n\trotr\tv1, v1, 16\t\t# rotate word 16bits and swap word\n\trotr\tv0, v0, 16\t\t# rotate word 16bits and swap word\n\tj\tra\n#endif /* defined(__mips_o32) */\n#elif !defined(__mips_o32)\n\t\t\t\t\t# a0  = 0xffeeddccbbaa9988\n\tli\tt0, 0xffff\t\t# t0  = 0x000000000000ffff\n\tdsll\tt1, t0, 32\t\t# t1  = 0x0000ffff00000000\n\tor\tt0, t1\t\t\t# t0  = 0x0000ffff0000ffff\n\tdsll\tt2, t0, 8\t\t# t2  = 0x00ffff0000ffff00\n\txor\tt2, t0\t\t\t# t2  = 0x00ff00ff00ff00ff\n\t/*\n\t * We could swap by halfword, but that would be one instruction longer.\n\t */\n\tdsrl\tta0, a0, 32\t\t# ta0 = 0x00000000ffeeddcc\n\tdsll\tta1, a0, 32\t\t# ta1 = 0xbbaa998800000000\n\tor\ta1, ta0, ta1\t\t# a1  = 0xbbaa9988ffeeddcc\n\t\t\t\t\t# words swapped\n\tand\tta0, a1, t0\t\t# ta0 = 0x000099880000ddcc\n\tdsrl\tta1, a1, 16\t\t# ta1 = 0x0000bbaa9988ffee\n\tand\tta1, t0\t\t\t# ta1 = 0x0000bbaa0000ffee\n\tdsll\ta2, ta0, 16\t\t# a2  = 0x99880000ddcc0000\n\tor\ta2, ta1\t\t\t# a2  = 0x9988bbaaddccffee\n\t\t\t\t\t# halfwords swapped\n\tand\tta0, a2, t2\t\t# ta0 = 0x008800aa00cc00ee\n\tdsrl\tta1, a2, 8\t\t# ta1 = 0x009988bbaaddccff\n\tand\tta1, t2\t\t\t# ta1 = 0x009900bb00dd00ff\n\tdsll\tv0, ta0, 8\t\t# v0  = 0x8800aa00cc00ee00\n\tor\tv0, ta1\t\t\t# v0  = 0x8899aabbccddeeff\n\t\t\t\t\t# bytes swapped\n\tj\tra\n#else /* defined(__mips_o32) */\n\t/*\n\t * 32bit ABI.\n\t */\n\t\t\t\t\t# a0  = 0xccddeeff\n\t\t\t\t\t# a1  = 0x8899aabb\n\tsrl\tt0, a0, 24\t\t# t0  = 0x000000cc\n\tsrl\tt1, a1, 24\t\t# t1  = 0x00000088\n\tsll\tta0, a0, 24\t\t# ta0 = 0xff000000", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/gen/byte_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/gen/byte_swap_8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/gen/byte_swap_8.S:3", "text": "and\tta1, t0\t\t\t# ta1 = 0x0000bbaa0000ffee\n\tdsll\ta2, ta0, 16\t\t# a2  = 0x99880000ddcc0000\n\tor\ta2, ta1\t\t\t# a2  = 0x9988bbaaddccffee\n\t\t\t\t\t# halfwords swapped\n\tand\tta0, a2, t2\t\t# ta0 = 0x008800aa00cc00ee\n\tdsrl\tta1, a2, 8\t\t# ta1 = 0x009988bbaaddccff\n\tand\tta1, t2\t\t\t# ta1 = 0x009900bb00dd00ff\n\tdsll\tv0, ta0, 8\t\t# v0  = 0x8800aa00cc00ee00\n\tor\tv0, ta1\t\t\t# v0  = 0x8899aabbccddeeff\n\t\t\t\t\t# bytes swapped\n\tj\tra\n#else /* defined(__mips_o32) */\n\t/*\n\t * 32bit ABI.\n\t */\n\t\t\t\t\t# a0  = 0xccddeeff\n\t\t\t\t\t# a1  = 0x8899aabb\n\tsrl\tt0, a0, 24\t\t# t0  = 0x000000cc\n\tsrl\tt1, a1, 24\t\t# t1  = 0x00000088\n\tsll\tta0, a0, 24\t\t# ta0 = 0xff000000\n\tsll\tta1, a1, 24\t\t# ta1 = 0xbb000000\n\tor\tta0, ta0, t0\t\t# ta0 = 0xff0000cc\n\tor\tta1, ta1, t1\t\t# ta1 = 0xbb000088\n\tand\tt0, a0, 0xff00\t\t# t0  = 0x0000ee00\n\tand\tt1, a1, 0xff00\t\t# t1  = 0x0000aa00\n\tsll\tt0, t0, 8\t\t# t0  = 0x00ee0000\n\tsll\tt1, t1, 8\t\t# t1  = 0x00aa0000\n\tor\tta0, ta0, t0\t\t# ta0 = 0xffee00cc\n\tor\tta1, ta1, t1\t\t# ta1 = 0xbbaa0088\n\tsrl\tt0, a0, 8\t\t# t0  = 0x00ccddee\n\tsrl\tt1, a1, 8\t\t# t1  = 0x008899aa\n\tand\tt0, t0, 0xff00\t\t# t0  = 0x0000dd00\n\tand\tt1, t1, 0xff00\t\t# t1  = 0x00009900\n\tor\tv1, ta0, t0\t\t# v1  = 0xffeeddcc\n\tor\tv0, ta1, t1\t\t# v0  = 0xbbaa9988\n\tj\tra\n#endif /* defined(__mips_o32) */\nEND(bswap64)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/gen/byte_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/gen/byte_swap_8.S", "line_start": 81, "line_end": 118}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/bcopy.S:3", "text": "#if defined(MEMCOPY) || defined(MEMMOVE)\n\t/* set up return value, while we still can */\n\tmove\tv0,DSTREG\n#endif\n\t/*\n\t *\tMake sure we can copy forwards.\n\t */\n\tsltu\tt0,SRCREG,DSTREG\t# t0 == SRCREG < DSTREG\n\tbne\tt0,zero,6f\t\t# copy backwards\n\n\t/*\n\t * \tThere are four alignment cases (with frequency)\n\t *\t(Based on measurements taken with a DECstation 5000/200\n\t *\t inside a Mach kernel.)\n\t *\n\t * \taligned   -> aligned\t\t(mostly)\n\t * \tunaligned -> aligned\t\t(sometimes)\n\t * \taligned,unaligned -> unaligned\t(almost never)\n\t *\n\t *\tNote that we could add another case that checks if\n\t *\tthe destination and source are unaligned but the\n\t *\tcopy is alignable.  eg if src and dest are both\n\t *\ton a halfword boundary.\n\t */\n\tandi\t\tt1,DSTREG,(SZREG-1)\t# get last bits of dest\n\tbne\t\tt1,zero,3f\t\t# dest unaligned\n\tandi\t\tt0,SRCREG,(SZREG-1)\t# get last bits of src\n\tbne\t\tt0,zero,5f\n\n\t/*\n\t *\tForward aligned->aligned copy, 8 words at a time.\n\t */\n98:\n\tli\t\tAT,-(SZREG*8)\n\tand\t\tt0,SIZEREG,AT\t\t# count truncated to multiples\n\tPTR_ADDU\ta3,SRCREG,t0\t\t# run fast loop up to this addr\n\tsltu\t\tAT,SRCREG,a3\t\t# any work to do?\n\tbeq\t\tAT,zero,2f\n\tPTR_SUBU\tSIZEREG,t0\n\n\t/*\n\t *\tloop body\n\t */\n1:\t# cp\n\tREG_L\t\tt3,(0*SZREG)(SRCREG)\n\tREG_L\t\tv1,(1*SZREG)(SRCREG)\n\tREG_L\t\tt0,(2*SZREG)(SRCREG)\n\tREG_L\t\tt1,(3*SZREG)(SRCREG)\n\tPTR_ADDU\tSRCREG,SZREG*8\n\tREG_S\t\tt3,(0*SZREG)(DSTREG)\n\tREG_S\t\tv1,(1*SZREG)(DSTREG)\n\tREG_S\t\tt0,(2*SZREG)(DSTREG)\n\tREG_S\t\tt1,(3*SZREG)(DSTREG)\n\tREG_L\t\tt1,(-1*SZREG)(SRCREG)\n\tREG_L\t\tt0,(-2*SZREG)(SRCREG)\n\tREG_L\t\tv1,(-3*SZREG)(SRCREG)\n\tREG_L\t\tt3,(-4*SZREG)(SRCREG)\n\tPTR_ADDU\tDSTREG,SZREG*8\n\tREG_S\t\tt1,(-1*SZREG)(DSTREG)\n\tREG_S\t\tt0,(-2*SZREG)(DSTREG)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/bcopy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/bcopy.S:4", "text": "/*\n\t *\tloop body\n\t */\n1:\t# cp\n\tREG_L\t\tt3,(0*SZREG)(SRCREG)\n\tREG_L\t\tv1,(1*SZREG)(SRCREG)\n\tREG_L\t\tt0,(2*SZREG)(SRCREG)\n\tREG_L\t\tt1,(3*SZREG)(SRCREG)\n\tPTR_ADDU\tSRCREG,SZREG*8\n\tREG_S\t\tt3,(0*SZREG)(DSTREG)\n\tREG_S\t\tv1,(1*SZREG)(DSTREG)\n\tREG_S\t\tt0,(2*SZREG)(DSTREG)\n\tREG_S\t\tt1,(3*SZREG)(DSTREG)\n\tREG_L\t\tt1,(-1*SZREG)(SRCREG)\n\tREG_L\t\tt0,(-2*SZREG)(SRCREG)\n\tREG_L\t\tv1,(-3*SZREG)(SRCREG)\n\tREG_L\t\tt3,(-4*SZREG)(SRCREG)\n\tPTR_ADDU\tDSTREG,SZREG*8\n\tREG_S\t\tt1,(-1*SZREG)(DSTREG)\n\tREG_S\t\tt0,(-2*SZREG)(DSTREG)\n\tREG_S\t\tv1,(-3*SZREG)(DSTREG)\n\tbne\t\tSRCREG,a3,1b\n\tREG_S\t\tt3,(-4*SZREG)(DSTREG)\n\n\t/*\n\t *\tCopy a word at a time, no loop unrolling.\n\t */\n2:\t# wordcopy\n\tandi\t\tt2,SIZEREG,(SZREG-1)\t# get byte count / SZREG\n\tPTR_SUBU\tt2,SIZEREG,t2\t\t# t2 = words to copy * SZREG\n\tbeq\t\tt2,zero,3f\n\tPTR_ADDU\tt0,SRCREG,t2\t\t# stop at t0\n\tPTR_SUBU\tSIZEREG,SIZEREG,t2\n1:\n\tREG_L\t\tt3,0(SRCREG)\n\tPTR_ADDU\tSRCREG,SZREG\n\tREG_S\t\tt3,0(DSTREG)\n\tbne\t\tSRCREG,t0,1b\n\tPTR_ADDU\tDSTREG,SZREG\n\n3:\t# bytecopy\n\tbeq\t\tSIZEREG,zero,4f\t\t# nothing left to do?\n\tnop\n1:\n\tlb\t\tt3,0(SRCREG)\n\tPTR_ADDU\tSRCREG,1\n\tsb\t\tt3,0(DSTREG)\n\tPTR_SUBU\tSIZEREG,1\n\tbgtz\t\tSIZEREG,1b\n\tPTR_ADDU\tDSTREG,1\n\n4:\t# copydone\n\t.set at\t\t#-mfix-loongson2f-btb\n\tj\tra\n\tnop\n\t.set noat\n\n\t/*\n\t *\tCopy from unaligned source to aligned dest.\n\t */", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/bcopy.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/bcopy.S:5", "text": "3:\t# bytecopy\n\tbeq\t\tSIZEREG,zero,4f\t\t# nothing left to do?\n\tnop\n1:\n\tlb\t\tt3,0(SRCREG)\n\tPTR_ADDU\tSRCREG,1\n\tsb\t\tt3,0(DSTREG)\n\tPTR_SUBU\tSIZEREG,1\n\tbgtz\t\tSIZEREG,1b\n\tPTR_ADDU\tDSTREG,1\n\n4:\t# copydone\n\t.set at\t\t#-mfix-loongson2f-btb\n\tj\tra\n\tnop\n\t.set noat\n\n\t/*\n\t *\tCopy from unaligned source to aligned dest.\n\t */\n5:\t# destaligned\n\tandi\t\tt0,SIZEREG,(SZREG-1)\t# t0 = bytecount mod SZREG\n\tPTR_SUBU\ta3,SIZEREG,t0\t\t# number of words to transfer\n\tbeq\t\ta3,zero,3b\n\tnop\n\tmove\t\tSIZEREG,t0\t\t# this many to do after we are done\n\tPTR_ADDU\ta3,SRCREG,a3\t\t# stop point\n\n1:\n\tREG_LHI\t\tt3,0(SRCREG)\n\tREG_LLO\t\tt3,SZREG-1(SRCREG)\n\tPTR_ADDI\tSRCREG,SZREG\n\tREG_S\t\tt3,0(DSTREG)\n\tbne\t\tSRCREG,a3,1b\n\tPTR_ADDI\tDSTREG,SZREG\n\n\tb\t\t3b\n\tnop\n\n6:\t# backcopy -- based on above\n\tPTR_ADDU\tSRCREG,SIZEREG\n\tPTR_ADDU\tDSTREG,SIZEREG\n\tandi\t\tt1,DSTREG,SZREG-1\t# get last 3 bits of dest\n\tbne\t\tt1,zero,3f\n\tandi\t\tt0,SRCREG,SZREG-1\t# get last 3 bits of src\n\tbne\t\tt0,zero,5f\n\n\t/*\n\t *\tForward aligned->aligned copy, 8*4 bytes at a time.\n\t */\n\tli\t\tAT,(-8*SZREG)\n\tand\t\tt0,SIZEREG,AT\t\t# count truncated to multiple of 32\n\tbeq\t\tt0,zero,2f\t\t# any work to do?\n\tPTR_SUBU\tSIZEREG,t0\n\tPTR_SUBU\ta3,SRCREG,t0\n\n\t/*\n\t *\tloop body\n\t */\n1:\t# cp", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/bcopy.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/bcopy.S:6", "text": "PTR_ADDU\tSRCREG,SIZEREG\n\tPTR_ADDU\tDSTREG,SIZEREG\n\tandi\t\tt1,DSTREG,SZREG-1\t# get last 3 bits of dest\n\tbne\t\tt1,zero,3f\n\tandi\t\tt0,SRCREG,SZREG-1\t# get last 3 bits of src\n\tbne\t\tt0,zero,5f\n\n\t/*\n\t *\tForward aligned->aligned copy, 8*4 bytes at a time.\n\t */\n\tli\t\tAT,(-8*SZREG)\n\tand\t\tt0,SIZEREG,AT\t\t# count truncated to multiple of 32\n\tbeq\t\tt0,zero,2f\t\t# any work to do?\n\tPTR_SUBU\tSIZEREG,t0\n\tPTR_SUBU\ta3,SRCREG,t0\n\n\t/*\n\t *\tloop body\n\t */\n1:\t# cp\n\tREG_L\t\tt3,(-4*SZREG)(SRCREG)\n\tREG_L\t\tv1,(-3*SZREG)(SRCREG)\n\tREG_L\t\tt0,(-2*SZREG)(SRCREG)\n\tREG_L\t\tt1,(-1*SZREG)(SRCREG)\n\tPTR_SUBU\tSRCREG,8*SZREG\n\tREG_S\t\tt3,(-4*SZREG)(DSTREG)\n\tREG_S\t\tv1,(-3*SZREG)(DSTREG)\n\tREG_S\t\tt0,(-2*SZREG)(DSTREG)\n\tREG_S\t\tt1,(-1*SZREG)(DSTREG)\n\tREG_L\t\tt1,(3*SZREG)(SRCREG)\n\tREG_L\t\tt0,(2*SZREG)(SRCREG)\n\tREG_L\t\tv1,(1*SZREG)(SRCREG)\n\tREG_L\t\tt3,(0*SZREG)(SRCREG)\n\tPTR_SUBU\tDSTREG,8*SZREG\n\tREG_S\t\tt1,(3*SZREG)(DSTREG)\n\tREG_S\t\tt0,(2*SZREG)(DSTREG)\n\tREG_S\t\tv1,(1*SZREG)(DSTREG)\n\tbne\t\tSRCREG,a3,1b\n\tREG_S\t\tt3,(0*SZREG)(DSTREG)\n\n\t/*\n\t *\tCopy a word at a time, no loop unrolling.\n\t */\n2:\t# wordcopy\n\tandi\t\tt2,SIZEREG,SZREG-1\t# get byte count / 4\n\tPTR_SUBU\tt2,SIZEREG,t2\t\t# t2 = number of words to copy\n\tbeq\t\tt2,zero,3f\n\tPTR_SUBU\tt0,SRCREG,t2\t\t# stop at t0\n\tPTR_SUBU\tSIZEREG,SIZEREG,t2\n1:\n\tREG_L\t\tt3,-SZREG(SRCREG)\n\tPTR_SUBU\tSRCREG,SZREG\n\tREG_S\t\tt3,-SZREG(DSTREG)\n\tbne\t\tSRCREG,t0,1b\n\tPTR_SUBU\tDSTREG,SZREG\n\n3:\t# bytecopy\n\tbeq\t\tSIZEREG,zero,4f\t\t# nothing left to do?\n\tnop\n1:", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/bcopy.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/bcopy.S:7", "text": "/*\n\t *\tCopy a word at a time, no loop unrolling.\n\t */\n2:\t# wordcopy\n\tandi\t\tt2,SIZEREG,SZREG-1\t# get byte count / 4\n\tPTR_SUBU\tt2,SIZEREG,t2\t\t# t2 = number of words to copy\n\tbeq\t\tt2,zero,3f\n\tPTR_SUBU\tt0,SRCREG,t2\t\t# stop at t0\n\tPTR_SUBU\tSIZEREG,SIZEREG,t2\n1:\n\tREG_L\t\tt3,-SZREG(SRCREG)\n\tPTR_SUBU\tSRCREG,SZREG\n\tREG_S\t\tt3,-SZREG(DSTREG)\n\tbne\t\tSRCREG,t0,1b\n\tPTR_SUBU\tDSTREG,SZREG\n\n3:\t# bytecopy\n\tbeq\t\tSIZEREG,zero,4f\t\t# nothing left to do?\n\tnop\n1:\n\tlb\t\tt3,-1(SRCREG)\n\tPTR_SUBU\tSRCREG,1\n\tsb\t\tt3,-1(DSTREG)\n\tPTR_SUBU\tSIZEREG,1\n\tbgtz\t\tSIZEREG,1b\n\tPTR_SUBU\tDSTREG,1\n\n4:\t# copydone\n\t.set at\t\t#-mfix-loongson2f-btb\n\tj\tra\n\tnop\n\t.set noat\n\n\t/*\n\t *\tCopy from unaligned source to aligned dest.\n\t */\n5:\t# destaligned\n\tandi\t\tt0,SIZEREG,SZREG-1\t# t0 = bytecount mod 4\n\tPTR_SUBU\ta3,SIZEREG,t0\t\t# number of words to transfer\n\tbeq\t\ta3,zero,3b\n\tnop\n\tmove\t\tSIZEREG,t0\t\t# this many to do after we are done\n\tPTR_SUBU\ta3,SRCREG,a3\t\t# stop point\n\n1:\n\tREG_LHI\t\tt3,-SZREG(SRCREG)\n\tREG_LLO\t\tt3,-1(SRCREG)\n\tPTR_SUBU\tSRCREG,SZREG\n\tREG_S\t\tt3,-SZREG(DSTREG)\n\tbne\t\tSRCREG,a3,1b\n\tPTR_SUBU\tDSTREG,SZREG\n\n\tb\t\t3b\n\tnop\n\n\t.set\treorder\n\t.set\tat\n\tEND(FUNCTION)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/bcopy.S", "line_start": 241, "line_end": 298}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/bcopy.S:8", "text": "nop\n\tmove\t\tSIZEREG,t0\t\t# this many to do after we are done\n\tPTR_SUBU\ta3,SRCREG,a3\t\t# stop point\n\n1:\n\tREG_LHI\t\tt3,-SZREG(SRCREG)\n\tREG_LLO\t\tt3,-1(SRCREG)\n\tPTR_SUBU\tSRCREG,SZREG\n\tREG_S\t\tt3,-SZREG(DSTREG)\n\tbne\t\tSRCREG,a3,1b\n\tPTR_SUBU\tDSTREG,SZREG\n\n\tb\t\t3b\n\tnop\n\n\t.set\treorder\n\t.set\tat\n\tEND(FUNCTION)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/bcopy.S", "line_start": 281, "line_end": 298}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/ffs.S:1", "text": "/*\t$NetBSD: ffs.S,v 1.4 2011/07/04 11:35:26 mrg Exp $\t*/\n\n/*-\n * Copyright (c) 2010 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <mips/asm.h>\n\nRCSID(\"$NetBSD: ffs.S,v 1.4 2011/07/04 11:35:26 mrg Exp $\")\n\n/* bit = ffs(value) */\n\n\t.text\n\t.set\tnoreorder\n\nWEAK_ALIAS(__ffssi2,ffs)\n#if __mips == 64 || __mips == 32\nLEAF(ffs)\n#ifndef _LP64\nXLEAF(ffsl)\n#endif\n\t.set\tpush\n\t.set\tmips32\n\tli\tv1, 32\n#if __mips == 64\n\tsll\ta0, a0, 0\n#endif\n\tnegu\ta1, a0\n\tand\ta0, a1\n\tclz\tv0, a0\n\tj\tra\n\t subu\tv0, v1, v0\n\t.set\tpop\nEND(ffs)\n#if defined(_LP64) && __mips == 64", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/ffs.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/ffs.S:2", "text": "WEAK_ALIAS(__ffssi2,ffs)\n#if __mips == 64 || __mips == 32\nLEAF(ffs)\n#ifndef _LP64\nXLEAF(ffsl)\n#endif\n\t.set\tpush\n\t.set\tmips32\n\tli\tv1, 32\n#if __mips == 64\n\tsll\ta0, a0, 0\n#endif\n\tnegu\ta1, a0\n\tand\ta0, a1\n\tclz\tv0, a0\n\tj\tra\n\t subu\tv0, v1, v0\n\t.set\tpop\nEND(ffs)\n#if defined(_LP64) && __mips == 64\nLEAF(ffsl)\n\tli\tv1, 64\n\tnegu\ta1, a0\n\tand\ta0, a1\n\tdclz\tv0, a0\n\tj\tra\n\t subu\tv0, v1, v0\nEND(ffsl)\n#endif\n#else /* __mips != 64 && __mips != 32 */\n\n#ifdef _LP64\nXLEAF(ffsl)\n\tbeqz\ta0, 6f\t\t\t# fast escape if 0\n\t li\tv0, 0\n\n\tli\tv0, 1\n\tli\ta3, 0xffffffff\t\t# initial mask\n\tb\t1f\n\t li\ta2, 32\t\t\t# bit count of mask\n#endif /* _LP64 */\nLEAF(ffs)\n#ifndef _LP64\nXLEAF(ffsl)\n#endif /* !_LP64 */\n\tbeqz\ta0, 6f\n\t li\tv0, 0\n\n\tli\tv0, 1\n\tli\ta3, 0xffff\t\t# initial mask\n\tli\ta2, 16\t\t\t# bit count of mask\n1:\n\tand\tv1, a0, a3\t\t# focus no lower half of bits left\n\tbnez\tv1, 2f\t\t\t# any of the lower half set?\n\t nop\n\taddu\tv0, a2\t\t\t# nope, then bit is in the upper half\n#ifdef _LP64\n\tdsrlv\ta0, a0, a2\t\t# discard low bits\n#else\n\tsrlv\ta0, a0, a2\t\t# discard low bits", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/ffs.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/ffs.S:3", "text": "#endif /* _LP64 */\nLEAF(ffs)\n#ifndef _LP64\nXLEAF(ffsl)\n#endif /* !_LP64 */\n\tbeqz\ta0, 6f\n\t li\tv0, 0\n\n\tli\tv0, 1\n\tli\ta3, 0xffff\t\t# initial mask\n\tli\ta2, 16\t\t\t# bit count of mask\n1:\n\tand\tv1, a0, a3\t\t# focus no lower half of bits left\n\tbnez\tv1, 2f\t\t\t# any of the lower half set?\n\t nop\n\taddu\tv0, a2\t\t\t# nope, then bit is in the upper half\n#ifdef _LP64\n\tdsrlv\ta0, a0, a2\t\t# discard low bits\n#else\n\tsrlv\ta0, a0, a2\t\t# discard low bits\n#endif\n2:\n\tsrl\ta2, 1\t\t\t# divide bit count by 2\n\tbnez\ta2, 1b\t\t\t# still bits left to text?\n\t srlv\ta3, a3, a2\t\t# shrink mask in half\n6:\n\tj\tra\n\t nop\nEND(ffs)\n#endif /* __mips == 64 || __mips == 32 */", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/ffs.S", "line_start": 81, "line_end": 110}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/strchr.S:1", "text": "/*\t$NetBSD: strchr.S,v 1.5 2017/02/25 21:16:50 joerg Exp $\t*/\n\n/*-\n * Copyright (c) 1991, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * Ralph Campbell.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <mips/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n\tASMSTR(\"from: @(#)index.s\t8.1 (Berkeley) 6/4/93\")\n\tASMSTR(\"$NetBSD: strchr.S,v 1.5 2017/02/25 21:16:50 joerg Exp $\")\n#endif /* LIBC_SCCS and not lint */\n\n#ifdef __mips_abicalls\n\t.abicalls\n#endif\n\nLEAF(strchr)\nXLEAF(index)\n\tand\ta1, 0xff\t\t# limit to byte value\n1:\n\tlbu\ta2, 0(a0)\t\t# get a byte\n\tPTR_ADDU a0, 1\n\tbeq\ta2, a1, fnd\n\tbne\ta2, zero, 1b\nnotfnd:\n\tmove\tv0, zero\n\tj\tra\nfnd:\n\tPTR_SUBU v0, a0, 1\n\tj\tra\nEND(strchr)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/strchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/strcmp.S:1", "text": "/*\t$NetBSD: strcmp.S,v 1.2 2009/12/14 00:39:00 matt Exp $\t*/\n\n/*-\n * Copyright (c) 1991, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * Ralph Campbell.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <mips/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n\t/* RCSID(\"from: @(#)strcmp.s\t8.1 (Berkeley) 6/4/93\") */\n\tRCSID(\"$NetBSD: strcmp.S,v 1.2 2009/12/14 00:39:00 matt Exp $\")\n#endif /* LIBC_SCCS and not lint */\n\n/*\n * NOTE: this version assumes unsigned chars in order to be \"8 bit clean\".\n */\nLEAF(strcmp)\n1:\n\tlbu\tt0, 0(a0)\t\t# get two bytes and compare them\n\tlbu\tt1, 0(a1)\n\tbeq\tt0, zero, LessOrEq\t# end of first string?\n\tbne\tt0, t1, NotEq\n\tlbu\tt0, 1(a0)\t\t# unroll loop\n\tlbu\tt1, 1(a1)\n\tPTR_ADD\ta0, a0, 2\n\tbeq\tt0, zero, LessOrEq\t# end of first string?\n\tPTR_ADD\ta1, a1, 2\n\tbeq\tt0, t1, 1b\nNotEq:\n\tsubu\tv0, t0, t1\n\tj\tra\nLessOrEq:", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/strcmp.S:2", "text": "/*\n * NOTE: this version assumes unsigned chars in order to be \"8 bit clean\".\n */\nLEAF(strcmp)\n1:\n\tlbu\tt0, 0(a0)\t\t# get two bytes and compare them\n\tlbu\tt1, 0(a1)\n\tbeq\tt0, zero, LessOrEq\t# end of first string?\n\tbne\tt0, t1, NotEq\n\tlbu\tt0, 1(a0)\t\t# unroll loop\n\tlbu\tt1, 1(a1)\n\tPTR_ADD\ta0, a0, 2\n\tbeq\tt0, zero, LessOrEq\t# end of first string?\n\tPTR_ADD\ta1, a1, 2\n\tbeq\tt0, t1, 1b\nNotEq:\n\tsubu\tv0, t0, t1\n\tj\tra\nLessOrEq:\n\tsubu\tv0, zero, t1\n\tj\tra\nEND(strcmp)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/strcmp.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/mips/string/strrchr.S:1", "text": "/*\t$NetBSD: strrchr.S,v 1.4 2017/02/25 21:16:50 joerg Exp $\t*/\n\n/*-\n * Copyright (c) 1991, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * Ralph Campbell.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <mips/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n\tASMSTR(\"from: @(#)rindex.s\t8.1 (Berkeley) 6/4/93\")\n\tASMSTR(\"$NetBSD: strrchr.S,v 1.4 2017/02/25 21:16:50 joerg Exp $\")\n#endif /* LIBC_SCCS and not lint */\n\n#ifdef __mips_abicalls\n\t.abicalls\n#endif\n\nLEAF(strrchr)\nXLEAF(rindex)\n\tand\ta1, 0xff\t\t# limit to byte value\n\tmove\tv0, zero\t\t# default if not found\n1:\n\tlbu\ta3, 0(a0)\t\t# get a byte\n\tPTR_ADDU a0, a0, 1\n\tbne\ta3, a1, 2f\n\tPTR_SUBU v0, a0, 1\t\t# save address of last match\n2:\n\tbne\ta3, zero, 1b\t\t# continue if not end\n\tj\tra\nEND(strrchr)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/mips/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/mips/string/strrchr.S", "line_start": 1, "line_end": 58}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.1 2014/09/03 19:34:25 matt Exp $\n\n.for op in add and cas nand or swap xor\n.for sz in 32\nSRCS.atomic+=\tatomic_${op}_${sz}.S\n.endfor\n.for sz in 8 16\nSRCS.atomic+=\tatomic_${op}_${sz}_cas.c\n.endfor\n.endfor\nSRCS.atomic+=\tatomic_dec_32.S atomic_inc_32.S\nSRCS.atomic+=\tmembar_ops.S\nSRCS.atomic+=\tatomic_cas_by_cas32.c\n.if defined(LIB) && ${LIB} != \"kern\"\nSRCS.atomic+=\tsync_bool_compare_and_swap_4.S\n.endif\n\n#.if defined(LIB) && (${LIB} != \"kern\")\n#SRCS.atomic+=\tatomic_simplelock.c\n#.endif\n\n.if defined(LIB) && (${LIB} != \"kern\" && ${LIB} != \"rump\")\n\nSRCS.atomic+=\tatomic_init_cas.c\n\n.endif #LIB\n\nSRCS+=\t${SRCS.atomic}", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/Makefile.inc", "line_start": 1, "line_end": 28}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_add_32.S:1", "text": "/*\t$NetBSD: atomic_add_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_sub_32)\n\tl.sub\tr4, r0, r4\t\t/* negate */\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.add\tr5, r11, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_add_32)\nEND(_atomic_sub_32)\n\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nCRT_ALIAS(__sync_fetch_and_add_4,_atomic_add_32)\nCRT_ALIAS(__atomic_fetch_add_4,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_add_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_add_32.S:2", "text": "l.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_add_32)\nEND(_atomic_sub_32)\n\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nCRT_ALIAS(__sync_fetch_and_add_4,_atomic_add_32)\nCRT_ALIAS(__atomic_fetch_add_4,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_32)\nCRT_ALIAS(__sync_fetch_and_sub_4,_atomic_sub_32)\nCRT_ALIAS(__atomic_fetch_sub_4,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n\nENTRY_NP(_atomic_sub_32_nv)\n\tl.sub\tr4, r0, r4\t\t/* negate */\n\t/* FALLTHROUGH */\nENTRY_NP(_atomic_add_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.add\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_add_32_nv)\nEND(_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\nCRT_ALIAS(__sync_add_and_fetch_4,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_32_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_int_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_32_nv)\nCRT_ALIAS(__sync_sub_and_fetch_4,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_int_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_add_32.S", "line_start": 41, "line_end": 97}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_add_32.S:3", "text": "ATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\nCRT_ALIAS(__sync_add_and_fetch_4,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_32_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_int_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_32_nv)\nCRT_ALIAS(__sync_sub_and_fetch_4,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_int_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_add_32.S", "line_start": 81, "line_end": 97}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_and_32.S:1", "text": "/*\t$NetBSD: atomic_and_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_and_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.and\tr5, r11, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nCRT_ALIAS(__sync_fetch_and_and_4,_atomic_and_32)\nCRT_ALIAS(__atomic_fetch_and_4,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\n\nENTRY_NP(_atomic_and_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.and\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_and_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_and_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_and_32.S:2", "text": "l.nop\nEND(_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nCRT_ALIAS(__sync_fetch_and_and_4,_atomic_and_32)\nCRT_ALIAS(__atomic_fetch_and_4,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\n\nENTRY_NP(_atomic_and_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.and\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_and_32_nv)\n\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nCRT_ALIAS(__sync_and_and_fetch_4,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_and_32.S", "line_start": 41, "line_end": 67}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_cas_32.S:1", "text": "/*\t$NetBSD: atomic_cas_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_32)\n1:\tl.lwa\tr11, 0(r3)\n\tl.sfeq\tr11, r4\n\tl.bnf\t2f\n\tl.nop\n\tl.swa\t0(r3), r5\n\tl.bnf\t1b\n\tl.nop\n2:\tl.jr\tlr\n\tl.nop\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_cas_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_cas_32.S:2", "text": "l.nop\n2:\tl.jr\tlr\n\tl.nop\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_cas_32.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_dec_32.S:1", "text": "/*\t$NetBSD: atomic_dec_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_dec_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.addi\tr5, r11, -1\t\t/* calculate new value */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nENTRY_NP(_atomic_dec_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.addi\tr11, r5, -1\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_dec_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_dec_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_dec_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_dec_32.S:2", "text": "l.nop\nEND(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n\nENTRY_NP(_atomic_dec_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.addi\tr11, r5, -1\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_dec_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_dec_32.S", "line_start": 41, "line_end": 68}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_inc_32.S:1", "text": "/*\t$NetBSD: atomic_inc_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_inc_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.addi\tr5, r11, 1\t\t/* calculate new value */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nENTRY_NP(_atomic_inc_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.addi\tr11, r5, 1\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_inc_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_inc_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_inc_32.S:2", "text": "END(_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n\nENTRY_NP(_atomic_inc_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.addi\tr11, r5, 1\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_inc_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_inc_32.S", "line_start": 41, "line_end": 65}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_nand_32.S:1", "text": "/*\t$NetBSD: atomic_nand_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_nand_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.and\tr5, r11, r4\t\t/* calculate new value */\n\tl.xori\tr5, r5, -1\t\t/* complement */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32)\nCRT_ALIAS(__sync_fetch_and_nand_4,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32)\n\nENTRY_NP(_atomic_nand_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.add\tr11, r5, r4\t\t/* calculate new value */\n\tl.xori\tr11, r11, -1\t\t/* complement */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_nand_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_nand_32.S:2", "text": "l.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32)\nCRT_ALIAS(__sync_fetch_and_nand_4,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32)\n\nENTRY_NP(_atomic_nand_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.add\tr11, r5, r4\t\t/* calculate new value */\n\tl.xori\tr11, r11, -1\t\t/* complement */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_nand_32_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_32_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_32_nv)\nCRT_ALIAS(__sync_nand_and_fetch_4,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_nand_32.S", "line_start": 41, "line_end": 68}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_or_32.S:1", "text": "/*\t$NetBSD: atomic_or_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_or_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.or\tr5, r11, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nCRT_ALIAS(__sync_fetch_and_or_4,_atomic_or_32)\nCRT_ALIAS(__atomic_fetch_or_4,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\n\nENTRY_NP(_atomic_or_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.or\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_or_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_or_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_or_32.S:2", "text": "END(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nCRT_ALIAS(__sync_fetch_and_or_4,_atomic_or_32)\nCRT_ALIAS(__atomic_fetch_or_4,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\n\nENTRY_NP(_atomic_or_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.or\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_or_32_nv)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nCRT_ALIAS(__sync_or_and_fetch_4,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_or_32.S", "line_start": 41, "line_end": 66}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_swap_32.S:1", "text": "/*\t$NetBSD: atomic_swap_32.S,v 1.2 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007,2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe and Matt Thomas.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_32)\n1:\tl.lwa\tr11, 0(r3)\n\tl.swa\t0(r3), r4\n\tl.bnf\t1b\n\tl.nop\n2:\tl.jr\tlr\n\tl.nop\nEND(_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)\nCRT_ALIAS(__sync_lock_test_and_set_4,_atomic_swap_32)\nCRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n\n#if (!defined(_KERNEL) || defined(_RUMPKERNEL)) && !defined(_STANDALONE)\nENTRY_NP(__sync_lock_release_4)\n\tl.sw\t0(r3), r0\n\tl.jr\tlr\n\tl.nop\nEND(__sync_lock_release_4)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_swap_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_swap_32.S", "line_start": 1, "line_end": 59}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_xor_32.S:1", "text": "/*\t$NetBSD: atomic_xor_32.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_xor_32)\n1:\tl.lwa\tr11, 0(r3)\t\t/* load old value */\n\tl.xor\tr5, r11, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r5\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nCRT_ALIAS(__sync_fetch_and_xor_4,_atomic_xor_32)\nCRT_ALIAS(__atomic_fetch_xor_4,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\n\nENTRY_NP(_atomic_xor_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.xor\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_xor_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_xor_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/atomic_xor_32.S:2", "text": "END(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nCRT_ALIAS(__sync_fetch_and_xor_4,_atomic_xor_32)\nCRT_ALIAS(__atomic_fetch_xor_4,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\n\nENTRY_NP(_atomic_xor_32_nv)\n1:\tl.lwa\tr5, 0(r3)\t\t/* load old value */\n\tl.xor\tr11, r5, r4\t\t/* calculate new value */\n\tl.swa\t0(r3), r11\t\t/* try to store */\n\tl.bnf\t1b\t\t\t/*   succeed? no, try again */\n\tl.nop\t\t\t\t/* -- delay slot -- */\n\tl.jr\tlr\t\t\t/* return old value */\n\tl.nop\nEND(_atomic_xor_32_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_32_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_uint_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_ulong_nv,_atomic_xor_32_nv)\nCRT_ALIAS(__sync_xor_and_fetch_4,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_uint_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_ulong_nv,_atomic_xor_32_nv)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/atomic_xor_32.S", "line_start": 41, "line_end": 66}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/membar_ops.S:1", "text": "/*\t$NetBSD: membar_ops.S,v 1.2 2022/04/09 23:32:51 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_membar_sync)\n\tl.msync\n\tl.jr\tlr\n\tl.nop\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\nATOMIC_OP_ALIAS(membar_acquire,_membar_sync)\nATOMIC_OP_ALIAS(membar_release,_membar_sync)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_sync)\nATOMIC_OP_ALIAS(membar_consumer,_membar_sync)\nATOMIC_OP_ALIAS(membar_read,_membar_sync)\nATOMIC_OP_ALIAS(membar_producer,_membar_sync)\nATOMIC_OP_ALIAS(membar_write,_membar_sync)\nCRT_ALIAS(__sync_synchronize,_membar_sync)\nSTRONG_ALIAS(_membar_acquire,_membar_sync)\nSTRONG_ALIAS(_membar_release,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_sync)\nSTRONG_ALIAS(_membar_consumer,_membar_sync)\nSTRONG_ALIAS(_membar_read,_membar_sync)\nSTRONG_ALIAS(_membar_producer,_membar_sync)\nSTRONG_ALIAS(_membar_write,_membar_sync)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/membar_ops.S", "line_start": 1, "line_end": 56}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/atomic/sync_bool_compare_and_swap_4.S:1", "text": "/*\t$NetBSD: sync_bool_compare_and_swap_4.S,v 1.1 2014/09/03 19:34:25 matt Exp $\t*/\n/*-\n * Copyright (c) 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(__sync_bool_compare_and_swap_4)\n\tl.or\tr11, r0, r0\t\t/* assume failure */\n1:\tl.lwa\tr8, 0(r3)\t\t/* load it */\n\tl.sfeq\tr8, r4\t\t\t/* is this what we want? */\n\tl.bnf\t2f\t\t\t/*   no, return failure */\n\tl.nop\t\t\t\t/*   -- delay slot -- */\n\tl.swa\t0(r3), r5\t\t/* store new value */\n\tl.bnf\t1b\t\t\t/*   store failed, try again */\n\tl.nop\t\t\t\t/*   -- delay slot -- */\n\tl.addi\tr11, r11, 1\t\t/* indicate success */\n2:\tl.jr\tlr\t\t\t/* return */\n\tl.nop\t\t\t\t/*   -- delay slot -- */\nEND(__sync_bool_compare_and_swap_4)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/atomic/sync_bool_compare_and_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/atomic/sync_bool_compare_and_swap_4.S", "line_start": 1, "line_end": 45}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/gen/mulsi3.S:1", "text": "/* $NetBSD: mulsi3.S,v 1.1 2014/09/03 19:34:25 matt Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: mulsi3.S,v 1.1 2014/09/03 19:34:25 matt Exp $\")\n\nENTRY(__mulsi3)\n\tl.movhi\tr11, 0\n\n\tl.sfeqi\tr3, 0\n\tl.bf\t.Lret\n\tl.nop\n\n\tl.sfeqi\tr4, 0\n\tl.bf\t.Lret\n\tl.nop\n\n\tl.sfleu\tr3, r4\t\t# is r3 < r4 (unsigned)\n#if 0\n\tl.ori\tr6, r3, 0\t# move r3 to r6\n\tl.bf\t.Lloop\t\t#   yes, r6 already has smaller value,\n\tl.nop\n\tl.ori\tr6, r4, 0\t# move r4 to r6 because it's smaller than r3\n#else\n\tl.cmov\tr6, r3, r4\t# choose lesser of r3 or r4\n#endif\n\n.Lloop:\n\tl.andi\tr5, r6, 1\t# get LSB\n\tl.sub\tr8, r0, r5\t# 0 -> 0, 1 -> 0xffffffff\n\tl.and\tr8, r8, r4\t# r8 = r6 & 1 ? r4 : 0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/gen/mulsi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/gen/mulsi3.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/gen/mulsi3.S:2", "text": "l.nop\n\n\tl.sfeqi\tr4, 0\n\tl.bf\t.Lret\n\tl.nop\n\n\tl.sfleu\tr3, r4\t\t# is r3 < r4 (unsigned)\n#if 0\n\tl.ori\tr6, r3, 0\t# move r3 to r6\n\tl.bf\t.Lloop\t\t#   yes, r6 already has smaller value,\n\tl.nop\n\tl.ori\tr6, r4, 0\t# move r4 to r6 because it's smaller than r3\n#else\n\tl.cmov\tr6, r3, r4\t# choose lesser of r3 or r4\n#endif\n\n.Lloop:\n\tl.andi\tr5, r6, 1\t# get LSB\n\tl.sub\tr8, r0, r5\t# 0 -> 0, 1 -> 0xffffffff\n\tl.and\tr8, r8, r4\t# r8 = r6 & 1 ? r4 : 0\n\tl.add\tr11, r11, r8\t# add to result\n\tl.srli\tr4, r4, 1\t# discard LSB\n\tl.slli\tr6, r6, 1\t# multiply by 2\n.Lentry:\n\tl.sfeqi\tr4, 0\t\t# only 0 left?\n\tl.bf\t.Lret\t\t#   yes, we're done\n\tl.nop\n\tl.sfeqi\tr6, 0\t\t# only 0 left?\n\tl.bnf\t.Lloop\t\t#   no, another round of long multiplication.\n\tl.nop\n\n.Lret:\tl.jr\tlr\n\tl.nop\nEND(__mulsi3)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/gen/mulsi3.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/gen/mulsi3.S", "line_start": 41, "line_end": 74}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/clz.S:1", "text": "/*\t$NetBSD: clz.S,v 1.1 2014/09/03 19:34:25 matt Exp $ */\n\n/*-\n * Copyright (C) 2001\tMartin J. Laubach <mjl@NetBSD.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/*----------------------------------------------------------------------*/\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: clz.S,v 1.1 2014/09/03 19:34:25 matt Exp $\")\n\nENTRY_NP(__clzsi2)\n#ifdef _LP64\n\tl.slli\tr3, r3, 32\n\tl.addi\tr5, r0, 64\n#else\n\tl.addi\tr5, r0, 32\n#endif\n\tl.fl1\tr11, r3\n\tl.sub\tr11, r5, r11\n\tl.jr\tlr\n\tl.nop\nEND(__clzsi2)\n\nENTRY_NP(__clzdi2)\n#ifdef _LP64\n\tl.addi\tr5, r0, 64\n#else\n\tl.sfeqi\tr3, 0\n\tl.bf\t1f\n\tl.nop\n\tl.addi\tr5, r0, 32\n#endif\n\tl.fl1\tr11, r3\n\tl.sub\tr11, r5, r11\n\tl.jr\tlr\n\tl.nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/clz.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/clz.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/clz.S:2", "text": "#endif\n\tl.fl1\tr11, r3\n\tl.sub\tr11, r5, r11\n\tl.jr\tlr\n\tl.nop\nEND(__clzsi2)\n\nENTRY_NP(__clzdi2)\n#ifdef _LP64\n\tl.addi\tr5, r0, 64\n#else\n\tl.sfeqi\tr3, 0\n\tl.bf\t1f\n\tl.nop\n\tl.addi\tr5, r0, 32\n#endif\n\tl.fl1\tr11, r3\n\tl.sub\tr11, r5, r11\n\tl.jr\tlr\n\tl.nop\n#ifndef _LP64\n1:\tl.addi\tr5, r0, 64\n\tl.fl1\tr11, r4\n\tl.sub\tr11, r5, r11\n\tl.jr\tlr\n\tl.nop\n#endif\nEND(__clzdi2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/clz.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/clz.S", "line_start": 41, "line_end": 68}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/ctz.S:1", "text": "/*\t$NetBSD: ctz.S,v 1.1 2014/09/03 19:34:25 matt Exp $ */\n\n/*-\n * Copyright (C) 2001\tMartin J. Laubach <mjl@NetBSD.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/*----------------------------------------------------------------------*/\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: ctz.S,v 1.1 2014/09/03 19:34:25 matt Exp $\")\n\nENTRY_NP(__ctzsi2)\n#ifdef _LP64\n\tl.extwz\tr3, r3\n#endif\n\tl.ff1\tr11, r3\n\tl.addi\tr11, r11, -1\n\tl.jr\tlr\n\tl.nop\nEND(__ctzsi2)\n\nENTRY_NP(__ctzdi2)\n#ifdef _LP64\n\tl.ff1\tr11, r3\n\tl.addi\tr11, r11, -1\n\tl.jr\tlr\n\tl.nop\n#else\n\tl.sfeqi\tr4, 0\n\tl.bf\t1f\n\tl.nop\n\n\tl.ff1\tr11, r4\n\tl.addi\tr11, r11, -1\n\tl.jr\tlr\n\tl.nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/ctz.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/ctz.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/ctz.S:2", "text": "l.jr\tlr\n\tl.nop\nEND(__ctzsi2)\n\nENTRY_NP(__ctzdi2)\n#ifdef _LP64\n\tl.ff1\tr11, r3\n\tl.addi\tr11, r11, -1\n\tl.jr\tlr\n\tl.nop\n#else\n\tl.sfeqi\tr4, 0\n\tl.bf\t1f\n\tl.nop\n\n\tl.ff1\tr11, r4\n\tl.addi\tr11, r11, -1\n\tl.jr\tlr\n\tl.nop\n\n1:\tl.sfeqi\tr3, 0\n\tl.addi\tr12, r0, 64\n\tl.ff1\tr11, r3\n\tl.addi\tr11, r11, 31\n\tl.cmov\tr11, r12, r11\n\tl.jr\tlr\n\tl.nop\n#endif\nEND(__ctzdi2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/ctz.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/ctz.S", "line_start": 41, "line_end": 69}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/ffs.S:1", "text": "/*\t$NetBSD: ffs.S,v 1.1 2014/09/03 19:34:25 matt Exp $ */\n\n/*-\n * Copyright (C) 2001\tMartin J. Laubach <mjl@NetBSD.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/*----------------------------------------------------------------------*/\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: ffs.S,v 1.1 2014/09/03 19:34:25 matt Exp $\")\n\nENTRY_NP(__ffssi2)\n#ifdef _LP64\n\tl.extwz\tr3, r3\n#endif\n\tl.ff1\tr11, r3\n\tl.jr\tlr\n\tl.nop\nEND(__ffssi2)\nSTRONG_ALIAS(ffs, __ffssi2)\n\nENTRY_NP(__ffsdi2)\n#ifdef _LP64\n\tl.ff1\tr11, r3\n\tl.jr\tlr\n\tl.nop\n#else\n\tl.sfeqi\tr4, 0\n\tl.bf\t1f\n\tl.nop\n\n\tl.ff1\tr11, r4\n\tl.jr\tlr\n\tl.nop\n\n1:\tl.ff1\tr11, r3\n\tl.addi\tr11, r11, 32", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/ffs.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/ffs.S:2", "text": "l.nop\nEND(__ffssi2)\nSTRONG_ALIAS(ffs, __ffssi2)\n\nENTRY_NP(__ffsdi2)\n#ifdef _LP64\n\tl.ff1\tr11, r3\n\tl.jr\tlr\n\tl.nop\n#else\n\tl.sfeqi\tr4, 0\n\tl.bf\t1f\n\tl.nop\n\n\tl.ff1\tr11, r4\n\tl.jr\tlr\n\tl.nop\n\n1:\tl.ff1\tr11, r3\n\tl.addi\tr11, r11, 32\n\tl.jr\tlr\n\tl.nop\n#endif\nEND(__ffsdi2)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/ffs.S", "line_start": 41, "line_end": 64}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memcmp.S:2", "text": "*\t\t\treturn 1;\n *\t}\n *\treturn 0;\n *\n * Return:\t((s1 > s2) ? 1 : (s1 < s2) ? -1 : 0)\n *\n * ==========================================================================\n */\n\n#include <machine/asm.h>\n\n        .text\n        .align 4\n/* LINTSTUB: Func: void *memcmp(const void *, const void *, size_t) */\nENTRY(memcmp)\n\n\t/*\n\t * Check count passed in R5. If zero, return 0; otherwise continue.\n\t */\n\tl.sfeqi\tr5, 0\t\t\t/* nothing to compare?\t\t*/\n\tl.bf\t.Lret_0\t\t\t/*   yes, return equality\t*/\n\tl.nop\n\n#ifdef _KERNEL\n\tl.sfeqi\tr5, 6\t\t\t/* less than two words?\t\t*/\n\tl.bnf\t.Lsixbyte_compare\t/*   yes, just compare by bytes */\n\tl.nop\n#endif\n\n\tl.sfgesi r5, 7\t\t\t/* less than two words?\t\t*/\n\tl.bnf\t.Lbyte_compare\t\t/*   yes, just compare by bytes */\n\tl.nop\n\n\tl.xor\tr6, r3, r4\t\t/* check alignment compatibility */\n\tl.andi\tr6, r6, 3\t\t/* only care about the two bits */\n\tl.sfeqi\tr6, 0\t\t\t/* same alignment? */\n\tl.bnf\t.Lmisaligned\t\t/*   no, avoid alignment errors */\n\tl.nop\n\n\t/*\n\t * At this point, we know we read the data via word accesses.\n\t */\n\n\tl.andi\tr7, r3, 3\t\t/* check alignment\t\t*/\n\tl.sfeqi\tr7, 0\t\t\t/* word aligned?\t\t*/\n\tl.bf\t.Lword_compare\t\t/*   yes, it is.\t\t*/\n\n\tl.sub\tr3, r3, r7\t\t/* align string 1\t\t*/\n\tl.sub\tr4, r4, r7\t\t/* align string 2\t\t*/\n\tl.add\tr5, r5, r7\t\t/* pad length\t\t\t*/\n\n\tl.lwz\tr15, 0(r3)\t\t/* load word from s1\t\t*/\n\tl.lwz\tr17, 0(r4)\t\t/* load word from s2\t\t*/\n\n\tl.slli\tr7, r7, 3\t\t/* bytes to bits\t\t*/\n\tl.sll\tr15, r15, r7\t\t/* shift away leading bytes\t*/\n\tl.sll\tr17, r17, r7\t\t/* shift away leading bytes\t*/\n\tl.j\t.Lword_compare\t\t/* now we can compare them\t*/\n\tl.nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memcmp.S:3", "text": "* At this point, we know we read the data via word accesses.\n\t */\n\n\tl.andi\tr7, r3, 3\t\t/* check alignment\t\t*/\n\tl.sfeqi\tr7, 0\t\t\t/* word aligned?\t\t*/\n\tl.bf\t.Lword_compare\t\t/*   yes, it is.\t\t*/\n\n\tl.sub\tr3, r3, r7\t\t/* align string 1\t\t*/\n\tl.sub\tr4, r4, r7\t\t/* align string 2\t\t*/\n\tl.add\tr5, r5, r7\t\t/* pad length\t\t\t*/\n\n\tl.lwz\tr15, 0(r3)\t\t/* load word from s1\t\t*/\n\tl.lwz\tr17, 0(r4)\t\t/* load word from s2\t\t*/\n\n\tl.slli\tr7, r7, 3\t\t/* bytes to bits\t\t*/\n\tl.sll\tr15, r15, r7\t\t/* shift away leading bytes\t*/\n\tl.sll\tr17, r17, r7\t\t/* shift away leading bytes\t*/\n\tl.j\t.Lword_compare\t\t/* now we can compare them\t*/\n\tl.nop\n\n.Lword_loop:\n\tl.lwz\tr15, 0(r3)\t\t/* load s1 word\t\t\t*/\n\tl.lwz\tr17, 0(r4)\t\t/* load s2 word\t\t\t*/\n.Lword_compare:\n\tl.sfeq\tr15, r17\t\t/* compare s1 and s2 words\t*/\n\tl.bnf\t.Lall_done\t\t/*   different? we're done\t*/\n\n\tl.addi\tr3, r3, 4\t\t/* advance s1 one word\t\t*/\n\tl.addi\tr4, r4, 4\t\t/* advance s2 one word\t\t*/\n\tl.addi\tr5, r5, -4\t\t/* decrement one word\t\t*/\n\tl.sfgtsi r5, 4\t\t\t/* at least more than a word?\t*/\n\tl.bf\t.Lword_loop\t\t/*    yes, loop around\t\t*/\n\tl.nop\n\tl.sfeqi\tr5, 0\t\t\t/* nothing left?\t\t*/\n\tl.bf\t.Lret_0\t\t\t/*   yes, return equality\t*/\n\tl.nop\n\n\t/*\n\t * Fall through to handle the last word\n\t */\n\n\tl.sub\tr3, r0, r5\t\t/* If count <= 4, handle \t*/\n\tl.andi\tr3, r3, 3\t\t/* mask off low 2 bits\t\t*/\n\tl.slli\tr3, r3, 3\t\t/* count *= 8\t\t\t*/\n\tl.srl\tr15, r15, r3\t\t/* discard extra s1 bytes\t*/\n\tl.srl\tr17, r17, r3\t\t/* discard extra s2 bytes\t*/\n\n\tl.sfeq\tr17, r15\t\t/* compare result\t\t*/\n\tl.bnf\t.Lall_done\n.Lret_0:\n\tl.addi\tr11, r0, 0\n\tl.jr\tlr\n\tl.nop\n\n/*\n * The two string don't have the same word alignment.\n */\n.Lmisaligned:\n\tl.sfeqi\tr6, 2\t\t\t/* check for halfword alignment */\n\tl.bnf\t.Lbyte_compare", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memcmp.S:4", "text": "l.sub\tr3, r0, r5\t\t/* If count <= 4, handle \t*/\n\tl.andi\tr3, r3, 3\t\t/* mask off low 2 bits\t\t*/\n\tl.slli\tr3, r3, 3\t\t/* count *= 8\t\t\t*/\n\tl.srl\tr15, r15, r3\t\t/* discard extra s1 bytes\t*/\n\tl.srl\tr17, r17, r3\t\t/* discard extra s2 bytes\t*/\n\n\tl.sfeq\tr17, r15\t\t/* compare result\t\t*/\n\tl.bnf\t.Lall_done\n.Lret_0:\n\tl.addi\tr11, r0, 0\n\tl.jr\tlr\n\tl.nop\n\n/*\n * The two string don't have the same word alignment.\n */\n.Lmisaligned:\n\tl.sfeqi\tr6, 2\t\t\t/* check for halfword alignment */\n\tl.bnf\t.Lbyte_compare\n\tl.nop\n\tl.andi\tr7, r3, 1\n\tl.sfeqi\tr7, 0\n\tl.bf\t.Lhalfword_loop\n\tl.nop\n\tl.addi\tr5, r5, 1\n\tl.addi\tr3, r3, -1\n\tl.addi\tr4, r4, -1\n\tl.lbz\tr15, 1(r3)\n\tl.lbz\tr17, 1(r4)\n\tl.j\t.Lhalfword_compare\n\tl.nop\n.Lhalfword_loop:\n\tl.lhz\tr15, 0(r3)\n\tl.lhz\tr17, 0(r4)\n.Lhalfword_compare:\n\tl.sfeq\tr15, r17\n\tl.bnf\t.Lall_done\n\tl.nop\n\tl.addi\tr3, r3, 2\n\tl.addi\tr4, r4, 2\n\tl.addi\tr5, r5, -2\n\tl.sfgesi r5, 2\n\tl.bf\t.Lhalfword_loop\n\tl.nop\n\n.Lbyte_compare:\n\tl.addi\tr5, r5, -1\n\tl.sfgesi r5, 0\n\tl.bnf\t.Lret_0\n\tl.nop\n\tl.lbz\tr15, 0(r3)\n\tl.lbz\tr17, 0(r4)\n\tl.addi\tr3, r3, 1\n\tl.addi\tr4, r4, 1\n\tl.sfeq\tr15, r17\n\tl.bf\t.Lbyte_compare\n\tl.nop\n\n.Lall_done:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memcmp.S:5", "text": "l.addi\tr4, r4, 2\n\tl.addi\tr5, r5, -2\n\tl.sfgesi r5, 2\n\tl.bf\t.Lhalfword_loop\n\tl.nop\n\n.Lbyte_compare:\n\tl.addi\tr5, r5, -1\n\tl.sfgesi r5, 0\n\tl.bnf\t.Lret_0\n\tl.nop\n\tl.lbz\tr15, 0(r3)\n\tl.lbz\tr17, 0(r4)\n\tl.addi\tr3, r3, 1\n\tl.addi\tr4, r4, 1\n\tl.sfeq\tr15, r17\n\tl.bf\t.Lbyte_compare\n\tl.nop\n\n.Lall_done:\n\tl.sub\tr11, r15, r17\t\t/* subtract s2 from s1\t\t*/\n\tl.srai\tr11, r11, 30\t\t/* replicate sign bit thru bit 1 */\n\tl.ori\tr11, r11, 1\t\t/* make sure bit 0 is set\t*/\n\tl.jr\tlr\n\tl.nop\n\n#ifdef _KERNEL\n.Lsixbyte_compare:\n\tl.or\tr7, r3, r4\n\tl.andi\tr7, r7, 1\n\tl.sfeqi\tr7, 0\n\tl.bnf\t.Lbyte_compare\n\tl.nop\n\tl.lhz\tr15, 0(r3)\n\tl.lhz\tr17, 0(r4)\n\tl.sfeq\tr15, r17\n\tl.bnf\t.Lall_done\n\tl.nop\n\tl.lhz\tr15, 2(r3)\n\tl.lhz\tr17, 2(r4)\n\tl.sfeq\tr15, r17\n\tl.bnf\t.Lall_done\n\tl.nop\n\tl.lhz\tr15, 4(r3)\n\tl.lhz\tr17, 4(r4)\n\tl.sfeq\tr15, r17\n\tl.bnf\t.Lall_done\n\tl.nop\n\tl.addi\tr11, r0, 0\n\tl.jr\tlr\n\tl.nop\n#endif\nEND(memcmp)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memcmp.S", "line_start": 161, "line_end": 213}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memcmp.S:6", "text": "l.sfeq\tr15, r17\n\tl.bnf\t.Lall_done\n\tl.nop\n\tl.lhz\tr15, 4(r3)\n\tl.lhz\tr17, 4(r4)\n\tl.sfeq\tr15, r17\n\tl.bnf\t.Lall_done\n\tl.nop\n\tl.addi\tr11, r0, 0\n\tl.jr\tlr\n\tl.nop\n#endif\nEND(memcmp)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memcmp.S", "line_start": 201, "line_end": 213}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memmove.S:2", "text": "*\n *\t\tvoid *memmove(void * dest, const void * src, int n)\n *\n * Input:\tr3 - destination address\n *\t\tr4 - source address\n *\t\tr5 - byte count\n * Output:\tr11 - destination address\n *\n * ==========================================================================\n */\n\n#include <machine/asm.h>\n\n#ifdef _BCOPY\n/* bcopy = memcpy/memmove with arguments reversed. */\n/* LINTSTUB: Func: void bcopy(void *, void *, size_t) */\nENTRY(bcopy)\n\tl.or\tr6, r3, r0\t\t/* swap src/dst */\n\tl.or\tr3, r4, r0\n\tl.or\tr4, r6, r0\n#else\n/* LINTSTUB: Func: void *memmove(void *, const void *, size_t) */\nENTRY(memmove)\n#endif\n\n\tl.or\tr11, r3, r0\t\t/* Save dst (return value)\t*/\n\n\tl.sfges\tr4, r3\t\t\t/* Branch to reverse if \t*/\n\tl.bnf\t.Lreverse\t\t/* src < dest. Don't want to\t*/\n\t\t\t\t\t/* overwrite end of src with\t*/\n\t\t\t\t\t/* start of dest \t\t*/\n\n\tl.addi\tr4, r4, -4\t\t/* Back up src and dst pointers */\n\tl.addi\tr3, r3, -4\t\t/* due to auto-update of 'load' */\n\n\tl.srli\tr13, r5, 2\t\t/* How many words in total cnt\t*/\n\tl.sfeqi\tr13, 0\n\tl.bf\t.Llast1\t\t\t/* Handle byte by byte if < 4\t*/\n\t\t\t\t\t/* bytes total \t\t\t*/\n\tl.lwz\tr7, 4(r4)\t\t/* Preload first word\t\t*/\n\tl.addi\tr4, r4, 4\n\n\tl.j\t.Lg1\n\tl.nop\n\n.Lg0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tl.lwz\tr7, 4(r4)\t\t/* Load a new word\t\t*/\n\tl.sw\t4(r3), r6\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, 4\t\t/* advance */\n\tl.addi\tr3, r3, 4\t\t/* advance */\n\n.Lg1:\n\n\tl.addi\tr13, r13, -1\n\tl.sfeqi\tr13, 0\n\tl.bf\t.Llast\t\t\t/* Dec cnt, and branch if just\t*/\n\tl.nop\n\t\t\t\t\t/* one word to store\t\t*/\n\tl.lwz\tr6, 4(r4)\t\t/* Load another word\t\t*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memmove.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memmove.S:3", "text": "l.addi\tr4, r4, 4\n\n\tl.j\t.Lg1\n\tl.nop\n\n.Lg0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tl.lwz\tr7, 4(r4)\t\t/* Load a new word\t\t*/\n\tl.sw\t4(r3), r6\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, 4\t\t/* advance */\n\tl.addi\tr3, r3, 4\t\t/* advance */\n\n.Lg1:\n\n\tl.addi\tr13, r13, -1\n\tl.sfeqi\tr13, 0\n\tl.bf\t.Llast\t\t\t/* Dec cnt, and branch if just\t*/\n\tl.nop\n\t\t\t\t\t/* one word to store\t\t*/\n\tl.lwz\tr6, 4(r4)\t\t/* Load another word\t\t*/\n\tl.sw\t4(r3), r7\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, 4\t\t/* advance to next word\t\t*/\n\tl.addi\tr3, r3, 4\t\t/* advance to next word\t\t*/\n\tl.addi\tr13, r13, -1\t\t/* Decrement count\t\t*/\n\tl.sfeqi\tr13, 0\t\t\t/* last word?\t\t\t*/\n\tl.bnf\t.Lg0\t\t\t/*    no, loop, more words\t*/\n\tl.nop\n\n\tl.or\tr7, r6, r0\t\t/* If word count -> 0, then...\t*/\n\n.Llast:\n\n\tl.sw\t4(r3), r7\t\t/* ... store last word\t\t*/\n\tl.addi\tr3, r3, 4\n\n.Llast1:\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tl.andi\tr5, r5, 3\t\t/* get remaining byte count\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bf\t.Ldone\t\t\t/*   yes, we're done\t\t*/\n\tl.nop\t\t\t\t/* -- delay slot --\t\t*/\n\n\tl.lbz\tr6, 4(r4)\t\t/* 1st byte: update addr by 4\t*/\n\tl.sb\t4(r3), r6\t\t/* since we pre-adjusted by 4\t*/\n\tl.addi\tr4, r4, 4\t\t/* advance to next word\t\t*/\n\tl.addi\tr3, r3, 4\t\t/* advance to next word\t\t*/\n\tl.addi\tr5, r5, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bf\t.Ldone\t\t\t/*    yes, we're done\t\t*/\n\tl.nop\t\t\t\t/* -- delay slot --\t\t*/\n\n.Llast2:\n\n\tl.lbz\tr6, 1(r4)\t\t/* But handle the rest by\t*/\n\tl.sb\t1(r3), r6\t\t/* updating addr by 1\t\t*/\n\tl.addi\tr4, r4, 1\t\t/* advance to next word\t\t*/\n\tl.addi\tr3, r3, 1\t\t/* advance to next word\t\t*/\n\tl.addi\tr5, r5, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bnf\t.Llast2\t\t\t/*    yes, we're done\t\t*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memmove.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memmove.S:4", "text": "l.nop\t\t\t\t/* -- delay slot --\t\t*/\n\n\tl.lbz\tr6, 4(r4)\t\t/* 1st byte: update addr by 4\t*/\n\tl.sb\t4(r3), r6\t\t/* since we pre-adjusted by 4\t*/\n\tl.addi\tr4, r4, 4\t\t/* advance to next word\t\t*/\n\tl.addi\tr3, r3, 4\t\t/* advance to next word\t\t*/\n\tl.addi\tr5, r5, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bf\t.Ldone\t\t\t/*    yes, we're done\t\t*/\n\tl.nop\t\t\t\t/* -- delay slot --\t\t*/\n\n.Llast2:\n\n\tl.lbz\tr6, 1(r4)\t\t/* But handle the rest by\t*/\n\tl.sb\t1(r3), r6\t\t/* updating addr by 1\t\t*/\n\tl.addi\tr4, r4, 1\t\t/* advance to next word\t\t*/\n\tl.addi\tr3, r3, 1\t\t/* advance to next word\t\t*/\n\tl.addi\tr5, r5, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bnf\t.Llast2\t\t\t/*    yes, we're done\t\t*/\n\tl.nop\t\t\t\t/* -- delay slot --\t\t*/\n.Ldone:\n\tl.jr\tlr\t\t\t/* return\t\t\t*/\n\tl.nop\t\t\t\t/* -- delay slot --\t\t*/\n\n\t/* We're here since src < dest. Don't want to overwrite end of\t*/\n\t/* src with start of dest\t\t\t\t\t\t*/\n\n.Lreverse:\n\n\tl.add\tr4, r4, r5\t\t/* Work from end to beginning\t*/\n\tl.add\tr3, r3, r5 \t\t/* so add count to string ptrs\t*/\n\tl.srli\tr13, r5, 2\t\t/* Words in total count\t\t*/\n\tl.sfeqi\tr13, 0\n\tl.bf\t.Lrlast1\t\t/* Handle byte by byte if < 4\t*/\n\t\t\t\t\t/* bytes total \t\t\t*/\n\tl.nop\n\n\tl.lwz\tr7, -4(r4)\t\t/* Preload first word\t\t*/\n\tl.addi\tr4, r4, -4\t\t/* update pointer\t\t*/\n\n\tl.j\t.Lrg1\n\n.Lrg0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tl.lwz\tr7, -4(r4)\t\t/* Load a new word\t\t*/\n\tl.sw\t-4(r3), r6\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, -4\n\tl.addi\tr3, r3, -4\n\n.Lrg1:\n\n\tl.addi\tr13, r13, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr13, 0\t\t\t/* just one pending word left?\t*/\n\tl.bf\t.Lrlast\t\t\t/*    yes, deal with it\t\t*/\n\n\tl.lwz\tr6, -4(r4)\t\t/* Load another word\t\t*/\n\tl.sw\t-4(r3), r7\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, -4\n\tl.addi\tr3, r3, -4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memmove.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memmove.S:5", "text": "l.j\t.Lrg1\n\n.Lrg0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tl.lwz\tr7, -4(r4)\t\t/* Load a new word\t\t*/\n\tl.sw\t-4(r3), r6\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, -4\n\tl.addi\tr3, r3, -4\n\n.Lrg1:\n\n\tl.addi\tr13, r13, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr13, 0\t\t\t/* just one pending word left?\t*/\n\tl.bf\t.Lrlast\t\t\t/*    yes, deal with it\t\t*/\n\n\tl.lwz\tr6, -4(r4)\t\t/* Load another word\t\t*/\n\tl.sw\t-4(r3), r7\t\t/* Store previous word\t\t*/\n\tl.addi\tr4, r4, -4\n\tl.addi\tr3, r3, -4\n\n\tl.addi\tr13, r13, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr13, 0\t\t\t/* just one pending word left?\t*/\n\tl.bnf\t.Lrg0\t\t\t/*    no, loop again more words\t*/\n\tl.nop\n\n\tl.or\tr7, r6, r0\t\t/* If word count -> 0, then...\t*/\n\n.Lrlast:\n\n\tl.sw\t-4(r3), r7\t\t/* ... store last word\t\t*/\n\tl.addi\tr3, r3, -4\t\t/* update pointer */\n\n.Lrlast1:\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tl.andi\tr5, r5, 3\n\tl.sfeqi\tr5, 0\n\tl.bf\t.Lrdone\n\n.Lrlast2:\n\n\tl.lbz\tr6, -1(r4)\t\t/* Handle the rest, byte by \t*/\n\tl.sb\t-1(r3), r6\t\t/* byte\t\t\t\t*/\n\tl.addi\tr4, r4, -1\n\tl.addi\tr3, r3, -1\n\tl.addi\tr5, r5, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bnf\t.Lrlast2\t\t/*    no, loop again\t\t*/\n\tl.nop\n.Lrdone:\n\tl.jr\tlr\n\tl.nop\n\n#ifdef _BCOPY\nEND(bcopy)\n#else\nEND(memmove)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memmove.S", "line_start": 161, "line_end": 218}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memmove.S:6", "text": "l.lbz\tr6, -1(r4)\t\t/* Handle the rest, byte by \t*/\n\tl.sb\t-1(r3), r6\t\t/* byte\t\t\t\t*/\n\tl.addi\tr4, r4, -1\n\tl.addi\tr3, r3, -1\n\tl.addi\tr5, r5, -1\t\t/* decrement count\t\t*/\n\tl.sfeqi\tr5, 0\t\t\t/* is it 0?\t\t\t*/\n\tl.bnf\t.Lrlast2\t\t/*    no, loop again\t\t*/\n\tl.nop\n.Lrdone:\n\tl.jr\tlr\n\tl.nop\n\n#ifdef _BCOPY\nEND(bcopy)\n#else\nEND(memmove)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memmove.S", "line_start": 201, "line_end": 218}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memset.S:2", "text": "void bzero(void *b r3, size_t len r4);\n     void * memset(void *b r3, int c r4, size_t len r5);\n*/\n/*----------------------------------------------------------------------*/\n\n\n#ifdef _BZERO\n#define r_fill\tr0\nENTRY(bzero)\n#else\n#define r_fill\tr4\nENTRY(memset)\n#endif\n#ifdef _BZERO\n\t\tl.ori\tr5, r4, 0\n\t\tl.or\tr4, r0, r0\n#else\n\t\tl.or\tr11, r3, r0\t\t/* move start to return value */\n#endif\n\t\tl.sfeqi\tr5, 0\t\t\t/* anything to do? */\n\t\tl.bf\t.Lret\t\t\t/*   no, just return */\n\t\tl.nop\n\n\t\tl.sfgeui r5, 7\t\t\t/* small buffer? */\n\t\tl.add\tr5, r5, r3\t\t/* r5 is end pointer */\n\t\tl.bnf\t.Lbyte_fill\t\t/*   yes.  just byte fill */\n\t\tl.nop\n\n#ifndef _BZERO\n\t\t// Let's see the fill type\n\t\tl.sfeqi\tr4, 0\t\t\t/* filling with 0? */\n\t\tl.bf\t.Lalignment_check\t/* don't to replicate */\n\t\tl.nop\n\t\tl.extbz\tr4, r4\t\t\t/* truncate to 8 bits */\n\t\tl.slli\tr13, r4, 8\t\t/* shift left 8 bits */\n\t\tl.or\tr4, r4, r13\t\t/* merge the two bytes */\n\t\tl.slli\tr13, r4, 16\t\t/* shift left 16 bits */\n\t\tl.or\tr4, r4, r13\t\t/* merge the two halves */\n\n.Lalignment_check:\n#endif\n\t\tl.andi\tr13, r3, 3\t\t/* get low bits of start */\n\t\tl.sfeqi\tr13, 0\t\t\t/* word aligned? */\n\t\tl.bf\t.Lword_fill\t\t/*   yes, start setting */\n\t\tl.nop\n\n\t\tl.add\tr5, r5, r13\t\t/* increase length */\n\t\tl.sub\tr3, r3, r13\t\t/* mask word aligned */\n\t\tl.slli\tr13, r13, 3\t\t/* bytes to bits */\n\t\tl.addi\tr15, r13, -8\t\t/* minus one byte */\n\n\t\tl.lwz\tr6, 0(r3)\t\t/* get first word */\n\t\tl.movhi\tr7, 0xff00\t\t/* 0xff000000 */\n\t\tl.sra\tr7, r7, r13\t\t/* shift right align bytes */\n\t\tl.and\tr6, r6, r7\t\t/* clear bytes to be filled */\n#ifndef _BZERO\n\t\tl.srl\tr7, r_fill, r13\t\t/* clear bytes to preserve */\n\t\tl.or\tr6, r6, r7\t\t/* merge existing with new */\n#endif\n\t\tl.sw\t0(r3), r6\t\t/* store first word */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memset.S:3", "text": "#endif\n\t\tl.andi\tr13, r3, 3\t\t/* get low bits of start */\n\t\tl.sfeqi\tr13, 0\t\t\t/* word aligned? */\n\t\tl.bf\t.Lword_fill\t\t/*   yes, start setting */\n\t\tl.nop\n\n\t\tl.add\tr5, r5, r13\t\t/* increase length */\n\t\tl.sub\tr3, r3, r13\t\t/* mask word aligned */\n\t\tl.slli\tr13, r13, 3\t\t/* bytes to bits */\n\t\tl.addi\tr15, r13, -8\t\t/* minus one byte */\n\n\t\tl.lwz\tr6, 0(r3)\t\t/* get first word */\n\t\tl.movhi\tr7, 0xff00\t\t/* 0xff000000 */\n\t\tl.sra\tr7, r7, r13\t\t/* shift right align bytes */\n\t\tl.and\tr6, r6, r7\t\t/* clear bytes to be filled */\n#ifndef _BZERO\n\t\tl.srl\tr7, r_fill, r13\t\t/* clear bytes to preserve */\n\t\tl.or\tr6, r6, r7\t\t/* merge existing with new */\n#endif\n\t\tl.sw\t0(r3), r6\t\t/* store first word */\n\t\tl.addi\tr3, r3, 4\t\t/* advance to next word */\n\t\tl.addi\tr5, r5, -4\t\t/* one less word to do */\n\n.Lword_aligned:\n\t\tl.srli\tr6, r5, 2\t\t/* clear low two bits of len */\n\t\tl.srli\tr6, r6, 2\t\t/* ... */\n\t\tl.sfgeu\tr3, r6\t\t\t/* any more full words? */\n\t\tl.bf\t.Lend_fill\t\t/* no, handle the last bytes */\n\t\tl.nop\n\n.Lword_fill:\n\t\tl.sw\t0(r3), r_fill\t\t/* store a word */\n\t\tl.addi\tr3, r3, 4\t\t/* advance */\n\t\tl.sfgeu\tr3, r6\t\t\t/* any more full words? */\n\t\tl.bnf\t.Lword_fill\t\t/*   yes, fill next word */\n\t\tl.nop\n\t\tl.j\t.Lend_fill\t\t/* fill any leftover bytes */\n\t\tl.nop\n\n.Lbyte_fill:\n\t\tl.sb\t0(r3), r_fill\t\t/* store a byte */\n\t\tl.addi\tr3, r3, 1\t\t/* advance */\n.Lend_fill:\n\t\tl.sfeq\tr3, r5\t\t\t/* at the end? */\n\t\tl.bnf\t.Lbyte_fill\t\t/*   no, fill next byte */\n\t\tl.nop\n\n.Lret:\n\t\tl.jr\tlr\t\t\t/* return */\n\t\tl.nop\n#ifdef _BZERO\nEND(bzero)\n#else\nEND(memset)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memset.S", "line_start": 81, "line_end": 135}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/memset.S:4", "text": "l.sb\t0(r3), r_fill\t\t/* store a byte */\n\t\tl.addi\tr3, r3, 1\t\t/* advance */\n.Lend_fill:\n\t\tl.sfeq\tr3, r5\t\t\t/* at the end? */\n\t\tl.bnf\t.Lbyte_fill\t\t/*   no, fill next byte */\n\t\tl.nop\n\n.Lret:\n\t\tl.jr\tlr\t\t\t/* return */\n\t\tl.nop\n#ifdef _BZERO\nEND(bzero)\n#else\nEND(memset)\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/memset.S", "line_start": 121, "line_end": 135}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/strlen.S:1", "text": "/*\t$NetBSD: strlen.S,v 1.1 2014/09/03 19:34:25 matt Exp $ */\n\n/*-\n * Copyright (C) 2001\tMartin J. Laubach <mjl@NetBSD.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/*----------------------------------------------------------------------*/\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: strlen.S,v 1.1 2014/09/03 19:34:25 matt Exp $\");\n\n/*----------------------------------------------------------------------*/\n/* The algorithm here uses the following techniques:\n\n   1) Given a word 'x', we can test to see if it contains any 0 bytes\n      by subtracting 0x01010101, and seeing if any of the high bits of each\n      byte changed from 0 to 1. This works because the least significant\n      0 byte must have had no incoming carry (otherwise it's not the least\n      significant), so it is 0x00 - 0x01 == 0xff. For all other\n      byte values, either they have the high bit set initially, or when\n      1 is subtracted you get a value in the range 0x00-0x7f, none of which\n      have their high bit set. The expression here is\n      (x + 0xfefefeff) & ~(x | 0x7f7f7f7f), which gives 0x00000000 when\n      there were no 0x00 bytes in the word.\n\n   2) Given a word 'x', we can test to see _which_ byte was zero by\n      calculating ~(((x & 0x7f7f7f7f) + 0x7f7f7f7f) | x | 0x7f7f7f7f).\n      This produces 0x80 in each byte that was zero, and 0x00 in all\n      the other bytes. The '| 0x7f7f7f7f' clears the low 7 bits in each\n      byte, and the '| x' part ensures that bytes with the high bit set\n      produce 0x00. The addition will carry into the high bit of each byte\n      iff that byte had one of its low 7 bits set. We can then just see\n      which was the most significant bit set and divide by 8 to find how\n      many to add to the index.\n      This is from the book 'The PowerPC Compiler Writer's Guide',\n      by Steve Hoxey, Faraydon Karim, Bill Hay and Hank Warren.\n*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/strlen.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/strlen.S:2", "text": "0 byte must have had no incoming carry (otherwise it's not the least\n      significant), so it is 0x00 - 0x01 == 0xff. For all other\n      byte values, either they have the high bit set initially, or when\n      1 is subtracted you get a value in the range 0x00-0x7f, none of which\n      have their high bit set. The expression here is\n      (x + 0xfefefeff) & ~(x | 0x7f7f7f7f), which gives 0x00000000 when\n      there were no 0x00 bytes in the word.\n\n   2) Given a word 'x', we can test to see _which_ byte was zero by\n      calculating ~(((x & 0x7f7f7f7f) + 0x7f7f7f7f) | x | 0x7f7f7f7f).\n      This produces 0x80 in each byte that was zero, and 0x00 in all\n      the other bytes. The '| 0x7f7f7f7f' clears the low 7 bits in each\n      byte, and the '| x' part ensures that bytes with the high bit set\n      produce 0x00. The addition will carry into the high bit of each byte\n      iff that byte had one of its low 7 bits set. We can then just see\n      which was the most significant bit set and divide by 8 to find how\n      many to add to the index.\n      This is from the book 'The PowerPC Compiler Writer's Guide',\n      by Steve Hoxey, Faraydon Karim, Bill Hay and Hank Warren.\n*/\n/*----------------------------------------------------------------------*/\n\nENTRY(strlen)\n\n\t\tl.or\tr12, r3, r0\t\t/* save start */\n\n\t\t/* Setup constants */\n\t\tl.movhi\tr13, 0x7f7f\n\t\tl.movhi\tr15, 0xfefe\n\t\tl.ori\tr13, r13, 0x7f7f\n\t\tl.ori\tr15, r15, 0xfeff\n\n1:\t\tl.andi\tr7, r12, 3\t\t/* get low bits of start */\n\t\tl.sfeqi\tr7, 0\t\t\t/* all clear? */\n\t\tl.bf\t3f\t\t\t/*   yes, skip alignment */\n\t\tl.nop\t\t\t\t/* -- delay slot -- */\n\n\t\tl.sub\tr12, r12, r7\t\t/* word align start */\n\t\tl.lwz\tr8, 0(r12)\t\t/* load data */\n\t\tl.addi\tr6, r0, -1\t\t/* r6 = 0xffffffff */\n\t\tl.slli\tr5, r7, 3\t\t/* bits to bytes */\n\t\tl.srl\tr6, r6, r5\t\t/* clear low (MSB) bytes */\n\t\tl.xori\tr6, r6, -1\t\t/* complement */\n\t\tl.or\tr8, r8, r6\t\t/* merge with loaded word */\n\t\tl.j\t4f\t\t\t/* and process */\n\t\tl.nop\t\t\t\t/* -- delay-slot -- */\n\n2:\t\tl.addi\tr12, r12, 4\t\t/* advance to next word */\n3:\t\tl.lwz\tr8, 0(r12)\t\t/* fetch data word */\n\n\t\t// Step 1: (x + 0xfefefeff) & ~(x | 0x7f7f7f7f)\n4:\t\tl.or\tr7, r8, r13\t\t/* t0 = x | 0x7f7f7f7f */\n\t\tl.xori\tr6, r7, -1\t\t/* t1 = ~t0 */\n\t\tl.add\tr5, r8, r15\t\t/* t2 = x + 0xfefefeff */\n\t\tl.and\tr4, r7, r5\t\t/* t3 = t1 & t2 */\n\t\tl.sfeqi\tr4, 0\n\t\tl.bf\t2b\t\t\t/* no NUL bytes here */\n\t\tl.nop\t\t\t\t/* -- delay slot -- */\n\n\t\t// Step 2: ~(((x & 0x7f7f7f7f) + 0x7f7f7f7f) | x | 0x7f7f7f7f)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/strlen.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/or1k/string/strlen.S:3", "text": "l.slli\tr5, r7, 3\t\t/* bits to bytes */\n\t\tl.srl\tr6, r6, r5\t\t/* clear low (MSB) bytes */\n\t\tl.xori\tr6, r6, -1\t\t/* complement */\n\t\tl.or\tr8, r8, r6\t\t/* merge with loaded word */\n\t\tl.j\t4f\t\t\t/* and process */\n\t\tl.nop\t\t\t\t/* -- delay-slot -- */\n\n2:\t\tl.addi\tr12, r12, 4\t\t/* advance to next word */\n3:\t\tl.lwz\tr8, 0(r12)\t\t/* fetch data word */\n\n\t\t// Step 1: (x + 0xfefefeff) & ~(x | 0x7f7f7f7f)\n4:\t\tl.or\tr7, r8, r13\t\t/* t0 = x | 0x7f7f7f7f */\n\t\tl.xori\tr6, r7, -1\t\t/* t1 = ~t0 */\n\t\tl.add\tr5, r8, r15\t\t/* t2 = x + 0xfefefeff */\n\t\tl.and\tr4, r7, r5\t\t/* t3 = t1 & t2 */\n\t\tl.sfeqi\tr4, 0\n\t\tl.bf\t2b\t\t\t/* no NUL bytes here */\n\t\tl.nop\t\t\t\t/* -- delay slot -- */\n\n\t\t// Step 2: ~(((x & 0x7f7f7f7f) + 0x7f7f7f7f) | x | 0x7f7f7f7f)\n\t\tl.and\tr7, r8, r13\t\t/* t0 = x & 0x7f7f7f7f */\n\t\tl.or\tr6, r8, r13\t\t/* t1 = x | 0x7f7f7f7f */\n\t\tl.add\tr5, r7, r13\t\t/* t2 = t0 + 0x7f7f7f7f */\n\t\tl.or\tr4, r5, r6\t\t/* t3 = t2 | t1 */\n\t\tl.xori\tr4, r4, -1\t\t/* t3 = ~t3 */\n\n\t\tl.fl1\tr5, r4\t\t\t/* find last bit set */\n\t\tl.ori\tr6, r0, 32\t\t/* bits per word */\n\t\tl.sub\tr7, r6, r5\t\t/* cvt to leading zeros */\n\t\tl.srli\tr8, r7, 3\t\t/* shift to byte count */\n\nLdone:\n\t\tl.add\tr12, r12, r8\t\t/* r12 contains end pointer */\n\n\t\t/* NOTE: Keep it so this function returns the end pointer\n\t\t   in r12, so we can it use from other str* calls (strcat\n\t\t   comes to mind */\n\n\t\tl.sub\tr11, r12, r3\t\t/* length = end - start */\n\t\tl.jr\tlr\t\t\t/* return */\n\t\tl.nop\t\t\t\t/* -- delay slot -- */\nEND(strlen)\n/*----------------------------------------------------------------------*/", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/or1k/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/or1k/string/strlen.S", "line_start": 81, "line_end": 123}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.7 2026/01/09 22:54:25 jmcneill Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\" || ${LIB} == \"powerpc_espresso\")\n\nSRCS+=\tatomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \\\n\tatomic_inc.S atomic_or.S atomic_swap.S\n.if ${LIB} != \"powerpc_espresso\"\nSRCS+=\tmembar_ops.S\n.endif\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_cas.c\n\n.endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/Makefile.inc", "line_start": 1, "line_end": 18}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_add.S:1", "text": "/*\t$NetBSD: atomic_add.S,v 1.9 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_add.S,v 1.9 2022/04/06 22:47:56 riastradh Exp $\")\n\n\t.text\nATOMIC_OP_32(add)\nATOMIC_OP_32_NV(add)\n\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\n\n#ifdef _LP64\nATOMIC_OP_64(add)\nATOMIC_OP_64_NV(add)\n\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_64_nv)\n\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_add.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_add.S:2", "text": "ATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\n\n#ifdef _LP64\nATOMIC_OP_64(add)\nATOMIC_OP_64_NV(add)\n\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_64_nv)\n\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\n\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_add.S", "line_start": 41, "line_end": 73}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_and.S:1", "text": "/*\t$NetBSD: atomic_and.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_and.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\")\n\n\t.text\nATOMIC_OP_32(and)\nATOMIC_OP_32_NV(and)\n\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64(and)\nATOMIC_OP_64_NV(and)\n\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_and.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_and.S:2", "text": "ATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64(and)\nATOMIC_OP_64_NV(and)\n\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\n\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_and.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.11 2026/01/09 22:54:25 jmcneill Exp $\t*/\n\n/*-\n * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_cas.S,v 1.11 2026/01/09 22:54:25 jmcneill Exp $\")\n\n\t.text\nENTRY(_atomic_cas_32)\n\tmr\t%r10,%r3\n1:\tlwarx\t%r3,0,%r10\n\tcmpw\t%r3,%r4\n\tbnelr-\n\tPOWERPC_STWCX_PRE(0,%r10)\n\tstwcx.\t%r5,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\n#if defined(_LP64)\nENTRY(_atomic_cas_64)\n\tmr\t%r10,%r3", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_cas.S:2", "text": "bnelr-\n\tPOWERPC_STWCX_PRE(0,%r10)\n\tstwcx.\t%r5,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\n#if defined(_LP64)\nENTRY(_atomic_cas_64)\n\tmr\t%r10,%r3\n1:\tldarx\t%r3,0,%r10\n\tcmpd\t%r3,%r4\n\tbnelr-\n\tstdcx.\t%r5,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n#else\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "line_start": 41, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_cas.S:3", "text": "STRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n#else\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "line_start": 81, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.10 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_cas.S,v 1.10 2022/04/06 22:47:56 riastradh Exp $\")\n\n\t.text\nENTRY(_atomic_cas_32)\n\tmr\t%r10,%r3\n1:\tlwarx\t%r3,0,%r10\n\tcmpw\t%r3,%r4\n\tbnelr-\n\tIBM405_ERRATA77_DCBT(0,%r10)\n\tstwcx.\t%r5,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\n#if defined(_LP64)\nENTRY(_atomic_cas_64)\n\tmr\t%r10,%r3", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_cas.S:2", "text": "bnelr-\n\tIBM405_ERRATA77_DCBT(0,%r10)\n\tstwcx.\t%r5,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\n#if defined(_LP64)\nENTRY(_atomic_cas_64)\n\tmr\t%r10,%r3\n1:\tldarx\t%r3,0,%r10\n\tcmpd\t%r3,%r4\n\tbnelr-\n\tstdcx.\t%r5,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n#else\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\n\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/powerpc/atomic/atomic_cas.S", "line_start": 41, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_dec.S:1", "text": "/*\t$NetBSD: atomic_dec.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_dec.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\")\n\t.text\nATOMIC_OP_32_ARG(dec,addi,-1)\nATOMIC_OP_32_ARG_NV(dec,addi,-1)\n\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64_ARG(dec,addi,-1)\nATOMIC_OP_64_ARG_NV(dec,addi,-1)\n\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n#else", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_dec.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_dec.S:2", "text": "STRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64_ARG(dec,addi,-1)\nATOMIC_OP_64_ARG_NV(dec,addi,-1)\n\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\n\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_dec.S", "line_start": 41, "line_end": 72}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_inc.S:1", "text": "/*\t$NetBSD: atomic_inc.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_inc.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\")\n\n\t.text\nATOMIC_OP_32_ARG(inc,addi,1)\nATOMIC_OP_32_ARG_NV(inc,addi,1)\n\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64_ARG(inc,addi,1)\nATOMIC_OP_64_ARG_NV(inc,addi,1)\n\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_inc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_inc.S:2", "text": "ATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64_ARG(inc,addi,1)\nATOMIC_OP_64_ARG_NV(inc,addi,1)\n\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\n\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_inc.S", "line_start": 41, "line_end": 73}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_or.S:1", "text": "/*\t$NetBSD: atomic_or.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_or.S,v 1.8 2022/04/06 22:47:56 riastradh Exp $\")\n\n\t.text\nATOMIC_OP_32(or)\nATOMIC_OP_32_NV(or)\n\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64(or)\nATOMIC_OP_64_NV(or)\n\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_or.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_or.S:2", "text": "ATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\n\n#if defined(_LP64)\nATOMIC_OP_64(or)\nATOMIC_OP_64_NV(or)\n\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\n#else\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\n\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_or.S", "line_start": 41, "line_end": 61}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_swap.S:1", "text": "/*\t$NetBSD: atomic_swap.S,v 1.10 2026/01/09 22:54:25 jmcneill Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_swap.S,v 1.10 2026/01/09 22:54:25 jmcneill Exp $\")\n\n\t.text\nENTRY(_atomic_swap_32)\n\tmr\t%r10,%r3\n1:\tlwarx\t%r3,0,%r10\n\tPOWERPC_STWCX_PRE(0,%r10)\n\tstwcx.\t%r4,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\n#if defined(_LP64)\nENTRY(_atomic_swap_64)\n\tmr\t%r10,%r3\n1:\tldarx\t%r3,0,%r10\n\tstdcx.\t%r4,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\n\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_swap.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_swap.S:2", "text": "stwcx.\t%r4,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\n#if defined(_LP64)\nENTRY(_atomic_swap_64)\n\tmr\t%r10,%r3\n1:\tldarx\t%r3,0,%r10\n\tstdcx.\t%r4,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\n\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n#else\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)\n\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/atomic/atomic_swap.S", "line_start": 41, "line_end": 71}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/atomic/atomic_swap.S:1", "text": "/*\t$NetBSD: atomic_swap.S,v 1.9 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n__RCSID(\"$NetBSD: atomic_swap.S,v 1.9 2022/04/06 22:47:56 riastradh Exp $\")\n\n\t.text\nENTRY(_atomic_swap_32)\n\tmr\t%r10,%r3\n1:\tlwarx\t%r3,0,%r10\n\tIBM405_ERRATA77_DCBT(0,%r10)\n\tstwcx.\t%r4,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\n#if defined(_LP64)\nENTRY(_atomic_swap_64)\n\tmr\t%r10,%r3\n1:\tldarx\t%r3,0,%r10\n\tstdcx.\t%r4,0,%r10\n\tbeqlr+\n\tb\t1b\nEND(_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\n\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/powerpc/atomic/atomic_swap.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/ffs.S:1", "text": "/*\t$NetBSD: ffs.S,v 1.5 2011/01/15 07:31:12 matt Exp $ */\n\n/*-\n * Copyright (C) 2001\tMartin J. Laubach <mjl@NetBSD.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/*----------------------------------------------------------------------*/\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: ffs.S,v 1.5 2011/01/15 07:31:12 matt Exp $\")\n\n\t.align 4\nENTRY(ffs)\n\tneg\t%r4, %r3\n\tand\t%r3, %r4, %r3\n\tcntlzw\t%r3, %r3\n\tli\t%r0, 32\n\tsubf\t%r3, %r3, %r0\n\tblr\nEND(ffs)\n\n/*----------------------------------------------------------------------*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/ffs.S", "line_start": 1, "line_end": 45}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcmp.S:2", "text": "*\n *\t\tint memcmp(const char *s1, const char *s2, int n)\n *\n * Input:\tr3 - buffer 1 address\n *\t \tr4 - buffer 2 address\n *\t \tr5 - maximum characters to compare\n * Output: r3 <0 (less), 0 (equal), >0 (greater)\n *\n * ==========================================================================\n */\n\n#include <machine/asm.h>\n\n        .text\n        .align 4\n/* LINTSTUB: Func: void *memcmp(const void *, const void *, size_t) */\nENTRY(memcmp)\n\n\t/*\n\t * Check count passed in R5. If zero, return 0; otherwise continue.\n\t */\n\tcmpwi\t%r5,0\n\tbeq-\tret_0;\n\n\t/*\n\t * Most of the time the difference is found in the first\n\t * several bytes.  The following code minimizes the number\n\t * of load operations for short compares.\n\t */\n\n\tmr\t%r11, %r3\t\t/* Save buffer 1\t\t*/\n\nagain:\n\n\tnot\t%r10, %r4\t\t/* buffer 2: bytes to page bdy\t*/\n\trlwinm.\t%r10, %r10,29,23,31\t/* buffer 2: dwords to page bdy\t*/\n\tbeq-\tbytebybyte\t\t/* If < 8 bytes to the page bdy */\n\t\t\t\t\t/* do byte by byte\t\t*/\n\tlwz\t%r8, 0(%r4)\t\t/* load 1st buffer 2 word\t*/\n\n\tnot\t%r12, %r11\t\t/* buffer 1: bytes to page bdy\t*/\n\trlwinm.\t%r12, %r12,29,23,31\t/* buffer 1: dwords to page bdy\t*/\n\tbeq-\tbytebybyte\t\t/* If < 8 bytes to the page bdy */\n\t\t\t\t\t/* do byte by byte\t\t*/\n\tlwz\t%r6, 0(%r11)\t\t/* load 1st buffer 1 word\t*/\n\n\tcmpwi\t%r5, 4\t\t\t/* If remaining count <= 4\t*/\n\tble+\tfirst4\t\t\t/* handle specially.\tDWG\t*/\n\n\tcmplw\t%r8, %r6\t\t/* compare buffer 2 and buffer 1*/\n\tbne+\tall_done\t\t/* different => we're done\t*/\n\n\tlwzu\t%r9, 4(%r4)\t\t/* load 2nd buffer 2 word\t*/\n\tlwzu\t%r7, 4(%r11)\t\t/* load 2nd buffer 1 word\t*/\n\n\tcmpwi\t%r5, 8\t\t\t/* If remaining count <= 8\t*/\n\tble+\tlast4\t\t\t/* handle specially.\tDWG\t*/\n\n\tcmplw\t%r9, %r7\t\t/* compare buffer 2 and buffer 1*/\n\tbne+\tall_done\t\t/* different => we're done\t*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcmp.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcmp.S:3", "text": "not\t%r12, %r11\t\t/* buffer 1: bytes to page bdy\t*/\n\trlwinm.\t%r12, %r12,29,23,31\t/* buffer 1: dwords to page bdy\t*/\n\tbeq-\tbytebybyte\t\t/* If < 8 bytes to the page bdy */\n\t\t\t\t\t/* do byte by byte\t\t*/\n\tlwz\t%r6, 0(%r11)\t\t/* load 1st buffer 1 word\t*/\n\n\tcmpwi\t%r5, 4\t\t\t/* If remaining count <= 4\t*/\n\tble+\tfirst4\t\t\t/* handle specially.\tDWG\t*/\n\n\tcmplw\t%r8, %r6\t\t/* compare buffer 2 and buffer 1*/\n\tbne+\tall_done\t\t/* different => we're done\t*/\n\n\tlwzu\t%r9, 4(%r4)\t\t/* load 2nd buffer 2 word\t*/\n\tlwzu\t%r7, 4(%r11)\t\t/* load 2nd buffer 1 word\t*/\n\n\tcmpwi\t%r5, 8\t\t\t/* If remaining count <= 8\t*/\n\tble+\tlast4\t\t\t/* handle specially.\tDWG\t*/\n\n\tcmplw\t%r9, %r7\t\t/* compare buffer 2 and buffer 1*/\n\tbne+\tall_done\t\t/* different => we're done\t*/\n\n\taddi\t%r5, %r5, -8\t\t/* Update character counter DWG */\n\taddi\t%r10, %r4, 0x0004\t/* DWG*/\n\tnot\t%r10, %r10\t\t/* buffer 2: bytes to page bdy DWG */\n\trlwinm.\t%r10, %r10,29,23,31\t/* buffer 2: dwords to page bdy\tDWG */\n\taddi\t%r12, %r11, 0x0004\t/* DWG */\n\tnot\t%r12, %r12\t\t/* buffer 1: bytes to page bdy DWG */\n\trlwinm.\t%r12, %r12,29,23,31\t/* buffer 1: dwords to page bdy\tDWG */\n\n\t/* The following section prior to loop: figures out whether\t*/\n\t/* the buffer 1 or buffer 2 is closer to the page boundary.\t*/\n\t/* The main loop count is then set up to reflect the number of\t*/\n\t/* double words of the buffer that is closest\t\t\t*/\n\n\tcmpw\t%r10, %r12\t\t/* Find closest\t\t\t*/\n\tblt\tlt\n\n\tmr\t%r10, %r12\n\nlt:\n\n\tsrwi\t%r12, %r5, 3\t\t/* Double check the total count */\n\tcmpw\t%r10, %r12\t\t/* limitation\t\t\t*/\n\tblt\tlt2\n\n\tmr\t%r10, %r12\t\t/* DWG */\nlt2:\t\t\t\t\t/* DWG */\n\tcmpwi\t%r10, 0\t\t\t/* DWG */\n\tbne\tlt3\t\t\t/* DWG */\n\taddi\t%r4, %r4, 0x0004\t/* DWG */\n\taddi\t%r11,%r11,0x0004\t/* DWG */\n\tb\tagain\t\t\t/* DWG */\nlt3:\t\t\t\t\t/* DWG */\n\tmtctr\t%r10\t\t\t/* dword count for loop\t\t*/\n\tlwzu\t%r6, 4(%r11)\t\t/* pre-load buffer 1 word\t*/\n\n\tb\tin\t\t\t/* To the loop\t\t\t*/\n\nloop:\t\t\t\t\t/* main loop\t\t\t*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcmp.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcmp.S:4", "text": "srwi\t%r12, %r5, 3\t\t/* Double check the total count */\n\tcmpw\t%r10, %r12\t\t/* limitation\t\t\t*/\n\tblt\tlt2\n\n\tmr\t%r10, %r12\t\t/* DWG */\nlt2:\t\t\t\t\t/* DWG */\n\tcmpwi\t%r10, 0\t\t\t/* DWG */\n\tbne\tlt3\t\t\t/* DWG */\n\taddi\t%r4, %r4, 0x0004\t/* DWG */\n\taddi\t%r11,%r11,0x0004\t/* DWG */\n\tb\tagain\t\t\t/* DWG */\nlt3:\t\t\t\t\t/* DWG */\n\tmtctr\t%r10\t\t\t/* dword count for loop\t\t*/\n\tlwzu\t%r6, 4(%r11)\t\t/* pre-load buffer 1 word\t*/\n\n\tb\tin\t\t\t/* To the loop\t\t\t*/\n\nloop:\t\t\t\t\t/* main loop\t\t\t*/\n\n\tcmplw\t%r8, %r6\t\t/* Compare first buffer 2 word\t*/\n\tbne-\tall_done\t\t/* with first buffer 1 word\t*/\n\t\t\t\t\t/* If different, we're done\t*/\n\tcmplw\t%r9, %r7\t\t/* Compare second buffer 2 word\t*/\n\t\t\t\t\t/* with second buffer 1 word\t*/\n\tlwzu\t%r6, 4(%r11)\t\t/* pre-load buffer 1 word\t*/\n\n\tbne-\tall_done\t\t/* If different, we're done\t*/\n\nin:\n\n\tlwzu\t%r7, 4(%r11)\t\t/* pre-load buffer 1 word\t*/\n\tlwzu\t%r8, 4(%r4)\t\t/* pre-load buffer 2 word\t*/\n\tlwzu\t%r9, 4(%r4)\t\t/* pre-load buffer 2 word\t*/\n\n\tbdnz+\tloop\t\t\t/* Do more DW's if cnt > 0\t*/\n\n\t/*mfctr\t%r12*/ /*DWG*/\t\t/* number of dwords left\t*/\n\t/*subf\t%r10, %r12, %r10*/ /*DWG*//* number of dwords compared\t*/\n\tslwi\t%r10, %r10, 3\n\tsubf\t%r5, %r10, %r5\t\t/* adjust byte counter\t\t*/\n\t/*bne+\tpartial*/ /*DWG*/\t/* If less than 8 bytes, handle */\n\t\t\t\t\t/* specially\t\t\t*/\n\t/*cmpwi\t%r5, 8*/\t\t/* Removed.\t\t DWG */\n\t/*blt\tpartial*/\t\t/* Removed.\t\t DWG */\n\n\t/*addic\t%r5, %r5, -8*/ /*DWG*/\t/* Subtract two words from count*/\n\n\tcmplw\t%r8, %r6\t\t/* compare last dword\t\t*/\n\taddi\t%r4, %r4, 4\n\tbne-\tall_done\n\n\tcmplw\t%r9, %r7\n\taddi\t%r11, %r11, 4\n\tbne-\tall_done\n\nbytebybyte:\n\n\t/* We've gotten close to a page boundary: do a byte-byte-byte\n\t * compare for the following 8 bytes, and then go back to", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcmp.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcmp.S:5", "text": "subf\t%r5, %r10, %r5\t\t/* adjust byte counter\t\t*/\n\t/*bne+\tpartial*/ /*DWG*/\t/* If less than 8 bytes, handle */\n\t\t\t\t\t/* specially\t\t\t*/\n\t/*cmpwi\t%r5, 8*/\t\t/* Removed.\t\t DWG */\n\t/*blt\tpartial*/\t\t/* Removed.\t\t DWG */\n\n\t/*addic\t%r5, %r5, -8*/ /*DWG*/\t/* Subtract two words from count*/\n\n\tcmplw\t%r8, %r6\t\t/* compare last dword\t\t*/\n\taddi\t%r4, %r4, 4\n\tbne-\tall_done\n\n\tcmplw\t%r9, %r7\n\taddi\t%r11, %r11, 4\n\tbne-\tall_done\n\nbytebybyte:\n\n\t/* We've gotten close to a page boundary: do a byte-byte-byte\n\t * compare for the following 8 bytes, and then go back to\n\t * the full-word compare loop.\n\t */\n\n\tli\t%r3, 8\t\t\t/* loop count\t\t\t*/\n\tcmpw\t%r3, %r5\t\t/* take min(8, counter)\t\t*/\n\tble\tf2\n\n\tmr.\t%r3, %r5\n\n\tbeqlr\n\nf2:\n\n\tmtctr\t%r3\n\tsubf\t%r5, %r3, %r5\t\t/* adjust counter\t\t*/\n\nbbb:\n\n\tlbz\t%r6, 0(%r11)\t\t/* byte copy loop\t\t*/\n\n\taddi\t%r11, %r11, 1\n\n\tlbz\t%r8, 0(%r4)\n\n\taddi\t%r4, %r4, 1\n\n\tcmplw\t%r8, %r6\n\n\tbdnzt\teq, bbb\n\n\tbne\tall_done\n\n\tcmpwi\t%r5, 0\n\tbgt\tagain\t\t\t/* handle the rest\t\t*/\n\n\txor\t%r3,%r3,%r3\n\n\tblr\n\n#if 0 /* Removed code section. DWG */", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcmp.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcmp.S:6", "text": "addi\t%r11, %r11, 1\n\n\tlbz\t%r8, 0(%r4)\n\n\taddi\t%r4, %r4, 1\n\n\tcmplw\t%r8, %r6\n\n\tbdnzt\teq, bbb\n\n\tbne\tall_done\n\n\tcmpwi\t%r5, 0\n\tbgt\tagain\t\t\t/* handle the rest\t\t*/\n\n\txor\t%r3,%r3,%r3\n\n\tblr\n\n#if 0 /* Removed code section. DWG */\npartial:\n\n\tmr.\t%r3, %r5\n\n\tbeqlr\t\t\t\t/* If count -> 0, we're done\t*/\n\nf1:\n\n\tsubfic\t%r3, %r3, 4\t\t/* zero/end in first word?\t*/\n\tcmpwi\t%r3, 0\n\tblt\tlast4\n#endif /* DWG */\n\nfirst4:\n\tsubfic\t%r3, %r5, 4\t\t/* If count <= 4, handle \t*/\n\trlwinm\t%r3, %r3, 3, 0, 31\t/* count *= 8\t\t\t*/\n\tsrw\t%r6, %r6, %r3\t\t/* align 1st buffer 1 word\t*/\n\tsrw\t%r8, %r8, %r3\t\t/* align 1st buffer 2 word\t*/\n\n\tcmplw\t%r8, %r6\t\t/* get result\t\t\t*/\n\tbne\tall_done\n\txor\t%r3,%r3,%r3\n\tblr\n\nlast4:\n\tsubfic\t%r10, %r5, 8\t\t/*DWG*/\n\trlwinm\t%r10, %r10, 3, 0, 31\t/* count *= 8\t\t\t*/\n\tsrw\t%r7, %r7, %r10\t\t/* align 2nd buffer 1 word\t*/\n\tsrw\t%r9, %r9, %r10\t\t/* align 2nd buffer 2 word\t*/\n\n\tcmplw\t%r9, %r7\t\t/* get result\t\t\t*/\n\tbne\tall_done\nret_0:\n\txor\t%r3,%r3,%r3\t\t/* Equal result\t\t */\n\tblr\n\nall_done:\n\n\tblt\tfinish_lt", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcmp.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcmp.S:7", "text": "bne\tall_done\n\txor\t%r3,%r3,%r3\n\tblr\n\nlast4:\n\tsubfic\t%r10, %r5, 8\t\t/*DWG*/\n\trlwinm\t%r10, %r10, 3, 0, 31\t/* count *= 8\t\t\t*/\n\tsrw\t%r7, %r7, %r10\t\t/* align 2nd buffer 1 word\t*/\n\tsrw\t%r9, %r9, %r10\t\t/* align 2nd buffer 2 word\t*/\n\n\tcmplw\t%r9, %r7\t\t/* get result\t\t\t*/\n\tbne\tall_done\nret_0:\n\txor\t%r3,%r3,%r3\t\t/* Equal result\t\t */\n\tblr\n\nall_done:\n\n\tblt\tfinish_lt\n\n\taddi\t%r3,0,-1\t\t/* Less than result\t\t*/\n\n\tblr\n\nfinish_lt:\n\n\taddi\t%r3,0,1\t\t\t/* Greater than result\t\t*/\n\n\tblr\nEND(memcmp)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcmp.S", "line_start": 241, "line_end": 270}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcpy.S:2", "text": "*\t   undefined for objects that overlap.\n *\n *\n *\t   void *memcpy(void * dest, const void * src, int n)\n *\n * Input:  r3 - destination address\n *\t r4 - source address\n *\t r5 - byte count\n * Output: r3 - destination address\n *\n * ==========================================================================\n */\n\n#include <machine/asm.h>\n#ifdef _KERNEL_OPT\n#include \"opt_ppcarch.h\"\n#endif\n\n\t.text\n\t.align 4\n/* LINTSTUB: Func: void *memcpy(void *, const void *, size_t) */\nENTRY(memcpy)\n\t/*\n\t * Check count passed in R5. If zero, return; otherwise continue.\n\t */\n\tcmpwi\t%r5,0\n\tbeqlr-\n\n#if defined(_KERNEL) && defined(PPC_OEA601)\n\t/*\n\t* 601 will generate alignment exceptions if operand crosses\n\t * 4k page boundary, so do byte copy when exception handler\n\t * not available.  Maybe want to have a different memcpy for 601\n\t * that checks for page boundaries/word alignment...\n\t */\n\tmfspr   %r6, 287\t\t/* mfpvbr %r6 PVR = 287        */\n\tsrwi    %r6, %r6, 0x10\t\t/* get version field from PVR  */\n\tcmpwi   %r6, 0x1\t\t/* 601 CPU = 0x0001            */\n\tbne     bnorm\t\t\t/* skip byte-only unless 601   */\n\n\tor\t%r6, %r3, %r4\t\t/* see if both source and dest */\n\tandi.\t%r6, %r6, 3\t\t/* are 32bit aligned           */\n\tbeq\tbnorm\t\t\t/* skip byte-only if they are  */\nbcpy:\n\tmtctr   %r5\t\t\t/* byte copy everything */\n\tli      %r6, 0\nbloop:\n\tlbzx    %r7, %r4, %r6\n\tstbx    %r7, %r3, %r6\n\taddi    %r6, %r6, 1\n\tbdnz    bloop\n\tblr\n\nbnorm:\n\n#endif\n\n\tmr\t%r8, %r3\t\t/* Copy dst (return value)\t*/\n\n\taddi\t%r4, %r4, -4\t\t/* Prepare for main loop's auto\t*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcpy.S:3", "text": "or\t%r6, %r3, %r4\t\t/* see if both source and dest */\n\tandi.\t%r6, %r6, 3\t\t/* are 32bit aligned           */\n\tbeq\tbnorm\t\t\t/* skip byte-only if they are  */\nbcpy:\n\tmtctr   %r5\t\t\t/* byte copy everything */\n\tli      %r6, 0\nbloop:\n\tlbzx    %r7, %r4, %r6\n\tstbx    %r7, %r3, %r6\n\taddi    %r6, %r6, 1\n\tbdnz    bloop\n\tblr\n\nbnorm:\n\n#endif\n\n\tmr\t%r8, %r3\t\t/* Copy dst (return value)\t*/\n\n\taddi\t%r4, %r4, -4\t\t/* Prepare for main loop's auto\t*/\n\taddi\t%r8, %r8, -4\t\t/* update\t\t       */\n\n\tsrwi.\t%r9,%r5,2\t\t/* Word count -> r9 \t\t*/\n\tbeq-\tlast1\t\t\t/* Partial copy if <4 bytes\t*/\n\n\tmtctr\t%r9\t\t\t/* Word cnt in CTR for loop     */\n\tlwzu\t%r7, 4(%r4)\t\t/* Preload for main loop\t*/\n\n\tb\tg1\n\ng0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tlwzu\t%r7, 4(%r4)\t\t/* Load a new word\t\t*/\n\tstwu\t%r6, 4(%r8)\t\t/* Store previous word\t\t*/\n\ng1:\n\n\tbdz-\tlast\t\t\t/* Dec ctr and exit loop if no  */\n\t\t\t\t\t/* more words\t\t   */\n\tlwzu\t%r6, 4(%r4)\t\t/* Load another word\t\t*/\n\tstwu\t%r7, 4(%r8)\t\t/* Store previous word\t\t*/\n\tbdnz+\tg0\t\t\t/* Dec ctr and continue loop if */\n\t\t\t\t\t/* more words\t\t   */\n\n\tmr\t%r7, %r6\n\nlast:\n\n\tstwu\t%r7, 4(%r8)\t\t/* Store last word\t\t*/\n\nlast1:\t\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tclrlwi.\t%r5,%r5,30\n\tbeqlr\n\n\tmtctr\t%r5\n\n\tlbzu\t%r6, 4(%r4)\t\t/* 1st byte: update by word\t*/\n\tstbu\t%r6, 4(%r8)\n\tbdzlr-", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memcpy.S:4", "text": "stwu\t%r7, 4(%r8)\t\t/* Store previous word\t\t*/\n\tbdnz+\tg0\t\t\t/* Dec ctr and continue loop if */\n\t\t\t\t\t/* more words\t\t   */\n\n\tmr\t%r7, %r6\n\nlast:\n\n\tstwu\t%r7, 4(%r8)\t\t/* Store last word\t\t*/\n\nlast1:\t\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tclrlwi.\t%r5,%r5,30\n\tbeqlr\n\n\tmtctr\t%r5\n\n\tlbzu\t%r6, 4(%r4)\t\t/* 1st byte: update by word\t*/\n\tstbu\t%r6, 4(%r8)\n\tbdzlr-\n\nlast2:\n\n\tlbzu\t%r6, 1(%r4)\t\t/* Handle the rest\t\t*/\n\tstbu\t%r6, 1(%r8)\n\tbdnz+\tlast2\n\n\tblr\nEND(memcpy)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memcpy.S", "line_start": 121, "line_end": 149}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memmove.S:2", "text": "*\n *\t\tvoid *memmove(void * dest, const void * src, int n)\n *\n * Input:\tr3 - destination address\n *\t r4 - source address\n *\t r5 - byte count\n * Output: r3 - destination address\n *\n * ==========================================================================\n */\n\n#include <machine/asm.h>\n\n        .text\n        .align 4\n#ifdef _BCOPY\n/* bcopy = memcpy/memmove with arguments reversed. */\n/* LINTSTUB: Func: void bcopy(void *, void *, size_t) */\nENTRY(bcopy)\n\tmr\t%r6, %r3\t\t/* swap src/dst */\n\tmr\t%r3, %r4\n\tmr\t%r4, %r6\n#else\n/* LINTSTUB: Func: void *memmove(void *, const void *, size_t) */\nENTRY(memmove)\n#endif\n\n\tmr\t%r8, %r3\t\t/* Save dst (return value)\t*/\n\n\tcmpw\t%r4, %r8\t\t/* Branch to reverse if \t*/\n\tblt\treverse\t\t\t/* src < dest. Don't want to\t*/\n\t\t\t\t\t/* overwrite end of src with\t*/\n\t\t\t\t\t/* start of dest \t\t*/\n\n\taddi\t%r4, %r4, -4\t\t/* Back up src and dst pointers */\n\taddi\t%r8, %r8, -4\t\t/* due to auto-update of 'load' */\n\n\tsrwi.\t%r9,%r5,2\t\t\t/* How many words in total cnt\t*/\n\tbeq-\tlast1\t\t\t/* Handle byte by byte if < 4\t*/\n\t\t\t\t\t/* bytes total \t\t\t*/\n\tmtctr\t%r9\t\t\t/* Count of words for loop\t\t*/\n\tlwzu\t%r7, 4(%r4)\t\t/* Preload first word\t\t*/\n\n\tb\tg1\n\ng0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tlwzu\t%r7, 4(%r4)\t\t/* Load a new word\t\t*/\n\tstwu\t%r6, 4(%r8)\t\t/* Store previous word\t\t*/\n\ng1:\n\n\tbdz-\tlast\t\t\t/* Dec cnt, and branch if just\t*/\n\t\t\t\t\t/* one word to store\t\t*/\n\tlwzu\t%r6, 4(%r4)\t\t/* Load another word\t\t*/\n\tstwu\t%r7, 4(%r8)\t\t/* Store previous word\t\t*/\n\tbdnz+\tg0\t\t\t/* Dec cnt, and loop again if\t*/\n\t\t\t\t\t/* more words\t\t\t*/\n\tmr\t%r7, %r6\t\t\t/* If word count -> 0, then...\t*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memmove.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memmove.S:3", "text": "mtctr\t%r9\t\t\t/* Count of words for loop\t\t*/\n\tlwzu\t%r7, 4(%r4)\t\t/* Preload first word\t\t*/\n\n\tb\tg1\n\ng0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tlwzu\t%r7, 4(%r4)\t\t/* Load a new word\t\t*/\n\tstwu\t%r6, 4(%r8)\t\t/* Store previous word\t\t*/\n\ng1:\n\n\tbdz-\tlast\t\t\t/* Dec cnt, and branch if just\t*/\n\t\t\t\t\t/* one word to store\t\t*/\n\tlwzu\t%r6, 4(%r4)\t\t/* Load another word\t\t*/\n\tstwu\t%r7, 4(%r8)\t\t/* Store previous word\t\t*/\n\tbdnz+\tg0\t\t\t/* Dec cnt, and loop again if\t*/\n\t\t\t\t\t/* more words\t\t\t*/\n\tmr\t%r7, %r6\t\t\t/* If word count -> 0, then...\t*/\n\nlast:\n\n\tstwu\t%r7, 4(%r8)\t\t/* ... store last word\t\t*/\n\nlast1:\t\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tclrlwi.\t%r5,%r5,30\t\t/* If count -> 0, then ...\t*/\n\tbeqlr\t\t\t\t/* we're done\t\t\t*/\n\n\tmtctr\t%r5\t\t\t/* else load count for loop\t*/\n\n\tlbzu\t%r6, 4(%r4)\t\t/* 1st byte: update addr by 4\t*/\n\tstbu\t%r6, 4(%r8)\t\t/* since we pre-adjusted by 4\t*/\n\tbdzlr-\t\t\t\t/* in anticipation of main loop */\n\nlast2:\n\n\tlbzu\t%r6, 1(%r4)\t\t/* But handle the rest by\t\t*/\n\tstbu\t%r6, 1(%r8)\t\t/* updating addr by 1\t\t*/\n\tbdnz+\tlast2\n\n\tblr\n\n\t/* We're here since src < dest. Don't want to overwrite end of\t*/\n\t/* src with start of dest\t\t\t\t\t\t*/\n\nreverse:\n\n\tadd\t%r4, %r4, %r5\t\t/* Work from end to beginning\t*/\n\tadd\t%r8, %r8, %r5 \t\t/* so add count to string ptrs\t*/\n\tsrwi.\t%r9,%r5,2\t\t\t/* Words in total count\t\t*/\n\tbeq-\trlast1\t\t\t/* Handle byte by byte if < 4\t*/\n\t\t\t\t\t/* bytes total \t\t\t*/\n\n\tmtctr\t%r9\t\t\t/* Count of words for loop \t*/\n\n\tlwzu\t%r7, -4(%r4)\t\t/* Preload first word\t\t*/\n\tb\trg1\n\nrg0:\t\t\t\t\t/* Main loop\t\t\t*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memmove.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memmove.S:4", "text": "blr\n\n\t/* We're here since src < dest. Don't want to overwrite end of\t*/\n\t/* src with start of dest\t\t\t\t\t\t*/\n\nreverse:\n\n\tadd\t%r4, %r4, %r5\t\t/* Work from end to beginning\t*/\n\tadd\t%r8, %r8, %r5 \t\t/* so add count to string ptrs\t*/\n\tsrwi.\t%r9,%r5,2\t\t\t/* Words in total count\t\t*/\n\tbeq-\trlast1\t\t\t/* Handle byte by byte if < 4\t*/\n\t\t\t\t\t/* bytes total \t\t\t*/\n\n\tmtctr\t%r9\t\t\t/* Count of words for loop \t*/\n\n\tlwzu\t%r7, -4(%r4)\t\t/* Preload first word\t\t*/\n\tb\trg1\n\nrg0:\t\t\t\t\t/* Main loop\t\t\t*/\n\n\tlwzu\t%r7, -4(%r4)\t\t/* Load a new word\t\t*/\n\tstwu\t%r6, -4(%r8)\t\t/* Store previous word\t\t*/\n\nrg1:\n\n\tbdz-\trlast\t\t\t/* Dec cnt, and branch if just\t*/\n\t\t\t\t\t/* one word to store\t\t*/\n\n\tlwzu\t%r6, -4(%r4)\t\t/* Load another word\t\t*/\n\tstwu\t%r7, -4(%r8)\t\t/* Store previous word\t\t*/\n\n\tbdnz+\trg0\t\t\t/* Dec cnt, and loop again if\t*/\n\t\t\t\t\t/* more words\t\t\t*/\n\n\tmr\t%r7, %r6\t\t\t/* If word count -> 0, then...\t*/\n\nrlast:\n\n\tstwu\t%r7, -4(%r8)\t\t/* ... store last word\t\t*/\n\nrlast1:\t\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tclrlwi.\t%r5,%r5,30\t\t/* If count -> 0, then...\t*/\n\tbeqlr\t\t\t\t/* ... we're done \t\t*/\n\n\tmtctr\t%r5\t\t\t/* else load count for loop \t*/\n\nrlast2:\n\n\tlbzu\t%r6, -1(%r4)\t\t/* Handle the rest, byte by \t*/\n\tstbu\t%r6, -1(%r8)\t\t/* byte\t\t\t\t*/\n\n\tbdnz+\trlast2\t\t \t/* Dec ctr, and branch if more\t*/\n\t\t\t\t\t/* bytes left\t\t\t*/\n\tblr\n\n#ifdef _BCOPY\nEND(bcopy)\n#else", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memmove.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/memmove.S:5", "text": "rlast1:\t\t\t\t\t/* Byte-by-byte copy\t\t*/\n\n\tclrlwi.\t%r5,%r5,30\t\t/* If count -> 0, then...\t*/\n\tbeqlr\t\t\t\t/* ... we're done \t\t*/\n\n\tmtctr\t%r5\t\t\t/* else load count for loop \t*/\n\nrlast2:\n\n\tlbzu\t%r6, -1(%r4)\t\t/* Handle the rest, byte by \t*/\n\tstbu\t%r6, -1(%r8)\t\t/* byte\t\t\t\t*/\n\n\tbdnz+\trlast2\t\t \t/* Dec ctr, and branch if more\t*/\n\t\t\t\t\t/* bytes left\t\t\t*/\n\tblr\n\n#ifdef _BCOPY\nEND(bcopy)\n#else\nEND(memmove)\n#endif", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/memmove.S", "line_start": 161, "line_end": 182}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/strlen.S:1", "text": "/*\t$NetBSD: strlen.S,v 1.6 2011/01/15 07:31:12 matt Exp $ */\n\n/*-\n * Copyright (C) 2001\tMartin J. Laubach <mjl@NetBSD.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/*----------------------------------------------------------------------*/\n\n#include <machine/asm.h>\n\n__RCSID(\"$NetBSD: strlen.S,v 1.6 2011/01/15 07:31:12 matt Exp $\");\n\n/*----------------------------------------------------------------------*/\n/* The algorithm here uses the following techniques:\n\n   1) Given a word 'x', we can test to see if it contains any 0 bytes\n      by subtracting 0x01010101, and seeing if any of the high bits of each\n      byte changed from 0 to 1. This works because the least significant\n      0 byte must have had no incoming carry (otherwise it's not the least\n      significant), so it is 0x00 - 0x01 == 0xff. For all other\n      byte values, either they have the high bit set initially, or when\n      1 is subtracted you get a value in the range 0x00-0x7f, none of which\n      have their high bit set. The expression here is\n      (x + 0xfefefeff) & ~(x | 0x7f7f7f7f), which gives 0x00000000 when\n      there were no 0x00 bytes in the word.\n\n   2) Given a word 'x', we can test to see _which_ byte was zero by\n      calculating ~(((x & 0x7f7f7f7f) + 0x7f7f7f7f) | x | 0x7f7f7f7f).\n      This produces 0x80 in each byte that was zero, and 0x00 in all\n      the other bytes. The '| 0x7f7f7f7f' clears the low 7 bits in each\n      byte, and the '| x' part ensures that bytes with the high bit set\n      produce 0x00. The addition will carry into the high bit of each byte\n      iff that byte had one of its low 7 bits set. We can then just see\n      which was the most significant bit set and divide by 8 to find how\n      many to add to the index.\n      This is from the book 'The PowerPC Compiler Writer's Guide',\n      by Steve Hoxey, Faraydon Karim, Bill Hay and Hank Warren.\n*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/strlen.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/strlen.S:2", "text": "0 byte must have had no incoming carry (otherwise it's not the least\n      significant), so it is 0x00 - 0x01 == 0xff. For all other\n      byte values, either they have the high bit set initially, or when\n      1 is subtracted you get a value in the range 0x00-0x7f, none of which\n      have their high bit set. The expression here is\n      (x + 0xfefefeff) & ~(x | 0x7f7f7f7f), which gives 0x00000000 when\n      there were no 0x00 bytes in the word.\n\n   2) Given a word 'x', we can test to see _which_ byte was zero by\n      calculating ~(((x & 0x7f7f7f7f) + 0x7f7f7f7f) | x | 0x7f7f7f7f).\n      This produces 0x80 in each byte that was zero, and 0x00 in all\n      the other bytes. The '| 0x7f7f7f7f' clears the low 7 bits in each\n      byte, and the '| x' part ensures that bytes with the high bit set\n      produce 0x00. The addition will carry into the high bit of each byte\n      iff that byte had one of its low 7 bits set. We can then just see\n      which was the most significant bit set and divide by 8 to find how\n      many to add to the index.\n      This is from the book 'The PowerPC Compiler Writer's Guide',\n      by Steve Hoxey, Faraydon Karim, Bill Hay and Hank Warren.\n*/\n/*----------------------------------------------------------------------*/\n\n\t\t.text\n\t\t.align 4\n\nENTRY(strlen)\n\n\t\t/* Setup constants */\n\t\tlis\t%r10, 0x7f7f\n\t\tlis\t%r9, 0xfefe\n\t\tori\t%r10, %r10, 0x7f7f\n\t\tori\t%r9, %r9, 0xfeff\n\n\t\t/* Mask out leading bytes on non aligned strings */\n\t\trlwinm.\t%r8, %r3, 3, 27, 28\t/* leading bits to mask */\n#ifdef _LP64\n\t\tclrrdi\t%r5, %r3, 2\t\t/*  clear low 2 addr bits */\n#else\n\t\tclrrwi\t%r5, %r3, 2\t\t/*  clear low 2 addr bits */\n#endif\n\t\tli\t%r0, -1\n\t\tbeq+\t3f\t\t\t/* skip alignment if already */\n\t\t\t\t\t\t/* aligned */\n\n\t\tsrw\t%r0, %r0, %r8\t\t/* make 0000...1111 mask */\n\n\t\tlwz\t%r7, 0(%r5)\n\t\tnor\t%r0, %r0, %r0\t\t/* invert mask */\n\t\tor\t%r7, %r7, %r0\t\t/* make leading bytes != 0 */\n\t\tb\t2f\n\n3:\t\tsubi\t%r5, %r5, 4\n\n1:\t\tlwzu\t%r7, 4(%r5)\t\t/* fetch data word */\n\n2:\t\tnor\t%r0, %r7, %r10\t\t/* do step 1 */\n\t\tadd\t%r6, %r7, %r9\n\t\tand.\t%r0, %r0, %r6\n\n\t\tbeq+\t1b\t\t\t/* no NUL bytes here */", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/strlen.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/powerpc/string/strlen.S:3", "text": "li\t%r0, -1\n\t\tbeq+\t3f\t\t\t/* skip alignment if already */\n\t\t\t\t\t\t/* aligned */\n\n\t\tsrw\t%r0, %r0, %r8\t\t/* make 0000...1111 mask */\n\n\t\tlwz\t%r7, 0(%r5)\n\t\tnor\t%r0, %r0, %r0\t\t/* invert mask */\n\t\tor\t%r7, %r7, %r0\t\t/* make leading bytes != 0 */\n\t\tb\t2f\n\n3:\t\tsubi\t%r5, %r5, 4\n\n1:\t\tlwzu\t%r7, 4(%r5)\t\t/* fetch data word */\n\n2:\t\tnor\t%r0, %r7, %r10\t\t/* do step 1 */\n\t\tadd\t%r6, %r7, %r9\n\t\tand.\t%r0, %r0, %r6\n\n\t\tbeq+\t1b\t\t\t/* no NUL bytes here */\n\n\t\tand\t%r8, %r7, %r10\t\t/* ok, a NUL is somewhere */\n\t\tor\t%r7, %r7, %r10\t\t/* do step 2 to find out */\n\t\tadd\t%r0, %r8, %r10\t\t/* where */\n\t\tnor\t%r8, %r7, %r0\n\n\t\tcntlzw\t%r0, %r8\t\t/* offset from this word */\n\t\tsrwi\t%r4, %r0, 3\n\n\t\tadd\t%r4, %r5, %r4\t\t/* r4 contains end pointer */\n\t\t/* NOTE: Keep it so this function returns the end pointer\n\t\t   in r4, so we can it use from other str* calls (strcat\n\t\t   comes to mind */\n\n\t\tsubf\t%r3, %r3, %r4\n\t\tblr\nEND(strlen)\n/*----------------------------------------------------------------------*/", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/powerpc/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/powerpc/string/strlen.S", "line_start": 81, "line_end": 118}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.4 2019/06/01 12:42:27 maxv Exp $\n\n.for op in add and cas nand or sub swap xor\nsizes=32\n.if \"${MLIBDIR}\" != \"\"\n.if ${COMMON_MACHINE_ARCH} == \"riscv64\"\nsizes+=64\n.endif\n.elif ${MACHINE_ARCH} == \"riscv64\"\nsizes+=64\n.endif\n.for sz in ${sizes}\nSRCS.atomic+=\tatomic_${op}_${sz}.S\n.endfor\n.for sz in 8 16\nSRCS.atomic+=\tatomic_${op}_${sz}_cas.c\n.endfor\n.endfor\nSRCS.atomic+=\tmembar_ops.S\nSRCS.atomic+=\tatomic_cas_by_cas32.c\n\n.if defined(LIB) && (${LIB} != \"kern\" && ${LIB} != \"rump\")\n\nSRCS.atomic+=\tatomic_init_cas.c\t\t\t\\\n\t\tatomic_c11_compare_exchange_cas_16.c    \\\n\t\tatomic_c11_compare_exchange_cas_8.c\n\n.endif #LIB\n\n.if defined(LIB) && ${LIB} == \"c\"\nSRCS.atomic+=\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\n.endif\n\nSRCS+=\t${SRCS.atomic}", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/Makefile.inc", "line_start": 1, "line_end": 34}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_add_32.S:1", "text": "/*\t$NetBSD: atomic_add_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_inc_32)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_add_32)\n\tamoadd.w.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_add_32)\nEND(_atomic_inc_32)\n\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_add_4,_atomic_add_32)\nCRT_ALIAS(__atomic_fetch_add_4,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_add_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_add_32.S:2", "text": "ATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_add_4,_atomic_add_32)\nCRT_ALIAS(__atomic_fetch_add_4,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)\n#endif\n\nENTRY_NP(_atomic_inc_32_nv)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_add_32_nv)\n\tamoadd.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tINT_ADD\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_add_32_nv)\nEND(_atomic_inc_32_nv)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_32_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_32_nv)\n#endif\nCRT_ALIAS(__sync_add_and_fetch_4,_atomic_add_32_nv)\nCRT_ALIAS(__atomic_add_fetch_4,_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_add_32.S", "line_start": 41, "line_end": 93}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_add_32.S:3", "text": "#endif\nCRT_ALIAS(__sync_add_and_fetch_4,_atomic_add_32_nv)\nCRT_ALIAS(__atomic_add_fetch_4,_atomic_add_32_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_32_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_32_nv)\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_add_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_add_32.S", "line_start": 81, "line_end": 93}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_add_64.S:1", "text": "/*\t$NetBSD: atomic_add_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_inc_64)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_add_64)\n\tamoadd.d.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_add_64)\nEND(_atomic_inc_64)\n\nATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\nCRT_ALIAS(__sync_fetch_and_add_8,_atomic_add_64)\nCRT_ALIAS(__atomic_fetch_add_8,_atomic_add_64)\n\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nENTRY_NP(_atomic_inc_64_nv)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_add_64_nv)\n\tamoadd.d.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tLONG_ADD\ta0, t0, a1\t/* turn into new value */", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_add_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_add_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_add_64.S:2", "text": "ATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nATOMIC_OP_ALIAS(atomic_add_ptr,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\nCRT_ALIAS(__sync_fetch_and_add_8,_atomic_add_64)\nCRT_ALIAS(__atomic_fetch_add_8,_atomic_add_64)\n\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nATOMIC_OP_ALIAS(atomic_inc_ptr,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nENTRY_NP(_atomic_inc_64_nv)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_add_64_nv)\n\tamoadd.d.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tLONG_ADD\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_add_64_nv)\nEND(_atomic_inc_64_nv)\n\nATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nATOMIC_OP_ALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\nCRT_ALIAS(__sync_add_and_fetch_8,_atomic_add_64_nv)\nCRT_ALIAS(__atomic_add_fetch_8,_atomic_add_64_nv)\n\nATOMIC_OP_ALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nATOMIC_OP_ALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_add_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_add_64.S", "line_start": 41, "line_end": 77}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_and_32.S:1", "text": "/*\t$NetBSD: atomic_and_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_and_32)\n\tamoand.w.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_and_4,_atomic_and_32)\nCRT_ALIAS(__atomic_fetch_and_4,_atomic_and_32)\n\nENTRY_NP(_atomic_and_32_nv)\n\tamoand.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tand\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_and_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_and_32.S:2", "text": "STRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_and_4,_atomic_and_32)\nCRT_ALIAS(__atomic_fetch_and_4,_atomic_and_32)\n\nENTRY_NP(_atomic_and_32_nv)\n\tamoand.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tand\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_32_nv)\n#endif\nCRT_ALIAS(__sync_and_and_fetch_4,_atomic_and_32_nv)\nCRT_ALIAS(__atomic_and_fetch_4,_atomic_and_32_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_and_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_and_32.S", "line_start": 41, "line_end": 62}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_and_64.S:1", "text": "/*\t$NetBSD: atomic_and_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_and_64)\n\tamoand.d.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_and_64)\n\nATOMIC_OP_ALIAS(atomic_and_64,_atomic_and_64)\nATOMIC_OP_ALIAS(atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nCRT_ALIAS(__sync_fetch_and_and_8,_atomic_and_64)\nCRT_ALIAS(__atomic_fetch_and_8,_atomic_and_64)\n\nENTRY_NP(_atomic_and_64_nv)\n\tamoand.d.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tand\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nATOMIC_OP_ALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nCRT_ALIAS(__sync_and_and_fetch_8,_atomic_and_64_nv)\nCRT_ALIAS(__atomic_and_fetch_8,_atomic_and_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_and_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_and_64.S", "line_start": 1, "line_end": 54}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_cas_32.S:1", "text": "/*\t$NetBSD: atomic_cas_32.S,v 1.3 2019/04/17 07:35:38 mrg Exp $\t*/\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_32)\n\tmv\tt0, a0\n1:\tlr.w\ta0, 0(t0)\n\tbne\ta1, a0, 2f\n\tsc.w\tt1, a2, 0(t0)\n\tbnez\tt1, 1b\n2:\n\tret\nEND(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_cas_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_cas_32.S:2", "text": "END(_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)\n#endif\nCRT_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\n\nENTRY_NP(_atomic_bool_cas_32)\n\tmv\tt0, a0\n\tli\ta0, 0\n1:\tlr.w\tt1, 0(t0)\n\tbne\ta1, t1, 2f\n\tsc.w\tt1, a2, 0(t0)\n\tbnez\tt1, 1b\n\tli\ta0, 1\n2:\n\tret\nEND(_atomic_bool_cas_32)\n\nATOMIC_OP_ALIAS(atomic_bool_cas_32,_atomic_bool_cas_32)\nCRT_ALIAS(__bool_val_compare_and_swap_4,_atomic_bool_cas_32)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_cas_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_cas_32.S", "line_start": 41, "line_end": 77}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_cas_64.S:1", "text": "/*\t$NetBSD: atomic_cas_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifdef _LP64\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_cas_64)\n\tmv\tt0, a0\n1:\tlr.d\ta0, 0(t0)\n\tbne\ta1, a0, 2f\n\tsc.d\tt1, a2, 0(t0)\n\tbnez\tt1, 1b\n2:\n\tret\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n\nCRT_ALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)\n\nENTRY_NP(_atomic_bool_cas_64)\n\tmv\tt0, a0\n\tli\ta0, 0\n1:\tlr.d\tt1, 0(t0)\n\tbne\ta1, t1, 2f", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_cas_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_cas_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_cas_64.S:2", "text": "ret\nEND(_atomic_cas_64)\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64)\n\nCRT_ALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)\n\nENTRY_NP(_atomic_bool_cas_64)\n\tmv\tt0, a0\n\tli\ta0, 0\n1:\tlr.d\tt1, 0(t0)\n\tbne\ta1, t1, 2f\n\tsc.d\tt1, a2, 0(t0)\n\tbnez\tt1, 1b\n\tli\ta0, 1\n2:\n\tret\nEND(_atomic_bool_cas_64)\n\nATOMIC_OP_ALIAS(atomic_bool_cas_64,_atomic_bool_cas_64)\nCRT_ALIAS(__bool_val_compare_and_swap_8,_atomic_bool_cas_64)\n#endif /* _LP64 */", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_cas_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_cas_64.S", "line_start": 41, "line_end": 70}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_nand_32.S:1", "text": "/*\t$NetBSD: atomic_nand_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_nand_32)\n\tmv\tt0, a0\n1:\tlr.w\ta0, 0(t0)\n\tnot\tt2, a0\n\tand\tt2, t2, a1\n\tsc.w\tt1, t2, 0(t0)\n\tbnez\tt1, 1b\n\tret\nEND(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_nand_4,_atomic_nand_32)\nCRT_ALIAS(__atomic_fetch_nand_4,_atomic_nand_32)\n\nENTRY_NP(_atomic_nand_32_nv)\n\tmv\tt0, a0\n1:\tlr.w\ta0, 0(t0)\n\tnot\ta0, a0\n\tand\ta0, a0, a1\n\tsc.w\tt1, a0, 0(t0)\n\tbnez\tt1, 1b\n\tret", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_nand_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_nand_32.S:2", "text": "END(_atomic_nand_32)\n\nATOMIC_OP_ALIAS(atomic_nand_32,_atomic_nand_32)\nATOMIC_OP_ALIAS(atomic_nand_uint,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_uint,_atomic_nand_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_32)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_nand_4,_atomic_nand_32)\nCRT_ALIAS(__atomic_fetch_nand_4,_atomic_nand_32)\n\nENTRY_NP(_atomic_nand_32_nv)\n\tmv\tt0, a0\n1:\tlr.w\ta0, 0(t0)\n\tnot\ta0, a0\n\tand\ta0, a0, a1\n\tsc.w\tt1, a0, 0(t0)\n\tbnez\tt1, 1b\n\tret\nEND(_atomic_nand_32_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_32_nv,_atomic_nand_32_nv)\nATOMIC_OP_ALIAS(atomic_nand_uint_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_uint_nv,_atomic_nand_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_32_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_32_nv)\n#endif\nCRT_ALIAS(__sync_nand_and_fetch_4,_atomic_nand_32_nv)\nCRT_ALIAS(__atomic_nand_fetch_4,_atomic_nand_32_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_nand_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_nand_32.S", "line_start": 41, "line_end": 71}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_nand_64.S:1", "text": "/*\t$NetBSD: atomic_nand_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas <matt@3am-software.com>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_nand_64)\n\tmv\tt0, a0\n1:\tlr.d\ta0, 0(t0)\n\tnot\tt2, a0\n\tand\tt2, t2, a1\n\tsc.d\tt1, t2, 0(t0)\n\tbnez\tt1, 1b\n\tret\nEND(_atomic_nand_64)\n\nATOMIC_OP_ALIAS(atomic_nand_64,_atomic_nand_64)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_64)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_64)\nCRT_ALIAS(__sync_fetch_and_nand_8,_atomic_nand_64)\nCRT_ALIAS(__atomic_fetch_nand_8,_atomic_nand_64)\n\nENTRY_NP(_atomic_nand_64_nv)\n\tmv\tt0, a0\n1:\tlr.d\ta0, 0(t0)\n\tnot\ta0, a0\n\tand\ta0, a0, a1\n\tsc.d\tt1, a0, 0(t0)\n\tbnez\tt1, 1b\n\tret\nEND(_atomic_nand_64_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_64_nv,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_nand_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_nand_64.S:2", "text": "END(_atomic_nand_64)\n\nATOMIC_OP_ALIAS(atomic_nand_64,_atomic_nand_64)\nATOMIC_OP_ALIAS(atomic_nand_ulong,_atomic_nand_64)\nSTRONG_ALIAS(_atomic_nand_ulong,_atomic_nand_64)\nCRT_ALIAS(__sync_fetch_and_nand_8,_atomic_nand_64)\nCRT_ALIAS(__atomic_fetch_nand_8,_atomic_nand_64)\n\nENTRY_NP(_atomic_nand_64_nv)\n\tmv\tt0, a0\n1:\tlr.d\ta0, 0(t0)\n\tnot\ta0, a0\n\tand\ta0, a0, a1\n\tsc.d\tt1, a0, 0(t0)\n\tbnez\tt1, 1b\n\tret\nEND(_atomic_nand_64_nv)\n\nATOMIC_OP_ALIAS(atomic_nand_64_nv,_atomic_nand_64_nv)\nATOMIC_OP_ALIAS(atomic_nand_ulong_nv,_atomic_nand_64_nv)\nSTRONG_ALIAS(_atomic_nand_ulong_nv,_atomic_nand_64_nv)\nCRT_ALIAS(__sync_nand_and_fetch_8,_atomic_nand_64_nv)\nCRT_ALIAS(__atomic_nand_fetch_8,_atomic_nand_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_nand_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_nand_64.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_or_32.S:1", "text": "/*\t$NetBSD: atomic_or_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_or_32)\n\tamoor.w.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_or_4,_atomic_or_32)\nCRT_ALIAS(__atomic_fetch_or_4,_atomic_or_32)\n\nENTRY_NP(_atomic_or_32_nv)\n\tamoor.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tor\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_or_32_nv)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_or_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_or_32.S:2", "text": "STRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_or_4,_atomic_or_32)\nCRT_ALIAS(__atomic_fetch_or_4,_atomic_or_32)\n\nENTRY_NP(_atomic_or_32_nv)\n\tamoor.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tor\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_or_32_nv)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_32_nv)\n#endif\nCRT_ALIAS(__sync_or_and_fetch_4,_atomic_or_32_nv)\nCRT_ALIAS(__atomic_or_fetch_4,_atomic_or_32_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_or_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_or_32.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_or_64.S:1", "text": "/*\t$NetBSD: atomic_or_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_or_64)\n\tamoor.d.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_or_64)\n\nATOMIC_OP_ALIAS(atomic_or_64,_atomic_or_64)\nATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nCRT_ALIAS(__sync_fetch_and_or_8,_atomic_or_64)\nCRT_ALIAS(__atomic_fetch_or_8,_atomic_or_64)\n\nENTRY_NP(_atomic_or_64_nv)\n\tamoor.d.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\tor\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_or_64_nv)\n\nATOMIC_OP_ALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nATOMIC_OP_ALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nCRT_ALIAS(__sync_or_and_fetch_8,_atomic_or_64_nv)\nCRT_ALIAS(__atomic_or_fetch_8,_atomic_or_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_or_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_or_64.S", "line_start": 1, "line_end": 55}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_sub_32.S:1", "text": "/*\t$NetBSD: atomic_sub_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_dec_32)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_sub_32)\n\tINT_SUB\t\tt0, zero, a1\n\tamoadd.w.aq\ta0, t0, 0(a0)\n\tret\nEND(_atomic_sub_32)\nEND(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_sub_4,_atomic_sub_32)\nCRT_ALIAS(__atomic_fetch_sub_4,_atomic_sub_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_sub_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_sub_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_sub_32.S:2", "text": "END(_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_sub_32,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_int,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_int,_atomic_sub_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_32)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_32)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_sub_4,_atomic_sub_32)\nCRT_ALIAS(__atomic_fetch_sub_4,_atomic_sub_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)\n#endif\n\nENTRY_NP(_atomic_dec_32_nv)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_sub_32_nv)\n\tINT_SUB\t\tt1, zero, a1\n\tamoadd.w.aq\tt0, t1, 0(a0)\t/* update memory and get old value */\n\tINT_ADD\t\ta0, t0, t1\t/* turn into new value */\n\tret\nEND(_atomic_sub_32_nv)\nEND(_atomic_dec_32_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_32_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_int_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_int_nv,_atomic_sub_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_32_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_32_nv)\n#endif\nCRT_ALIAS(__sync_sub_and_fetch_4,_atomic_sub_32_nv)\nCRT_ALIAS(__atomic_sub_fetch_4,_atomic_sub_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_sub_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_sub_32.S", "line_start": 41, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_sub_32.S:3", "text": "ATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_32_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_32_nv)\n#endif\nCRT_ALIAS(__sync_sub_and_fetch_4,_atomic_sub_32_nv)\nCRT_ALIAS(__atomic_sub_fetch_4,_atomic_sub_32_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_32_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_32_nv)\n#endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_sub_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_sub_32.S", "line_start": 81, "line_end": 95}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_sub_64.S:1", "text": "/*\t$NetBSD: atomic_sub_64.S,v 1.3 2023/05/07 12:41:45 skrll Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_dec_64)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_sub_64)\n\tneg\t\tt1, a1\n\tamoadd.d.aq\ta0, t1, 0(a0)\n\tret\nEND(_atomic_sub_64)\nEND(_atomic_dec_64)\n\nATOMIC_OP_ALIAS(atomic_sub_64,_atomic_sub_64)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_64)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_64)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_64)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_64)\nCRT_ALIAS(__sync_fetch_and_sub_8,_atomic_sub_64)\nCRT_ALIAS(__atomic_fetch_sub_8,_atomic_sub_64)\n\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nENTRY_NP(_atomic_dec_64_nv)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_sub_64_nv)\n\tneg\t\tt1, a1", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_sub_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_sub_64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_sub_64.S:2", "text": "END(_atomic_dec_64)\n\nATOMIC_OP_ALIAS(atomic_sub_64,_atomic_sub_64)\nATOMIC_OP_ALIAS(atomic_sub_long,_atomic_sub_64)\nSTRONG_ALIAS(_atomic_sub_long,_atomic_sub_64)\nATOMIC_OP_ALIAS(atomic_sub_ptr,_atomic_sub_64)\nSTRONG_ALIAS(_atomic_sub_ptr,_atomic_sub_64)\nCRT_ALIAS(__sync_fetch_and_sub_8,_atomic_sub_64)\nCRT_ALIAS(__atomic_fetch_sub_8,_atomic_sub_64)\n\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nATOMIC_OP_ALIAS(atomic_dec_ptr,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nENTRY_NP(_atomic_dec_64_nv)\n\tli\t\ta1, 1\nENTRY_NP(_atomic_sub_64_nv)\n\tneg\t\tt1, a1\n\tamoadd.d.aq\tt0, t1, 0(a0)\t/* update memory and get old value */\n\tadd\t\ta0, t0, t1\t/* turn into new value */\n\tret\nEND(_atomic_sub_64_nv)\nEND(_atomic_dec_64_nv)\n\nATOMIC_OP_ALIAS(atomic_sub_64_nv,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_long_nv,_atomic_sub_64_nv)\nSTRONG_ALIAS(_atomic_sub_long_nv,_atomic_sub_64_nv)\nATOMIC_OP_ALIAS(atomic_sub_ptr_nv,_atomic_sub_64_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_64_nv)\nCRT_ALIAS(__sync_sub_and_fetch_8,_atomic_sub_64_nv)\nCRT_ALIAS(__atomic_sub_fetch_8,_atomic_sub_64_nv)\n\nATOMIC_OP_ALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nATOMIC_OP_ALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_sub_ptr_nv,_atomic_sub_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_sub_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_sub_64.S", "line_start": 41, "line_end": 79}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_swap_32.S:1", "text": "/* $NetBSD: atomic_swap_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_32)\n\tamoswap.w.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_swap_32)\n\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_32)\n#endif\nCRT_ALIAS(__sync_lock_test_and_set_4,_atomic_swap_32)\nCRT_ALIAS(__atomic_exchange_4,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n#ifndef _LP64\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_32)\n#endif\n\nENTRY_NP(_atomic_release_32)\n\tamoswap.w.rl\tzero, zero, 0(a0)\n\tret\nEND(_atomic_release_32)\nATOMIC_OP_ALIAS(atomic_release_32,_atomic_release_32)\n\nCRT_ALIAS(__sync_lock_release_4,_atomic_release_32)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_swap_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_swap_32.S", "line_start": 1, "line_end": 59}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_swap_64.S:1", "text": "/* $NetBSD: atomic_swap_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $ */\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifdef _LP64\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_swap_64)\n\tamoswap.d.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_swap_64)\n\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ulong,_atomic_swap_64)\nATOMIC_OP_ALIAS(atomic_swap_ptr,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\nCRT_ALIAS(__sync_lock_test_and_set_8,_atomic_swap_64)\nCRT_ALIAS(__atomic_exchange_8,_atomic_swap_64)\n\nENTRY_NP(_atomic_release_64)\n\tamoswap.d.rl\tzero, zero, 0(a0)\n\tret\nEND(_atomic_release_64)\nATOMIC_OP_ALIAS(atomic_release_64,_atomic_release_64)\n\nCRT_ALIAS(__sync_lock_release_8,_atomic_release_64)\n#endif /* _LP64 */", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_swap_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_swap_64.S", "line_start": 1, "line_end": 55}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_xor_32.S:1", "text": "/*\t$NetBSD: atomic_xor_32.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_xor_32)\n\tamoxor.w.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_xor_32)\n\nATOMIC_OP_ALIAS(atomic_xor_32,_atomic_xor_32)\nATOMIC_OP_ALIAS(atomic_xor_uint,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_xor_4,_atomic_xor_32)\nCRT_ALIAS(__atomic_fetch_xor_4,_atomic_xor_32)\n\nENTRY_NP(_atomic_xor_32_nv)\n\tamoxor.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\txor\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_xor_32_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_32_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_uint_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_uint_nv,_atomic_xor_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_xor_ulong_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_ulong_nv,_atomic_xor_32_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_xor_32.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_xor_32.S:2", "text": "STRONG_ALIAS(_atomic_xor_uint,_atomic_xor_32)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_32)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_32)\n#endif\nCRT_ALIAS(__sync_fetch_and_xor_4,_atomic_xor_32)\nCRT_ALIAS(__atomic_fetch_xor_4,_atomic_xor_32)\n\nENTRY_NP(_atomic_xor_32_nv)\n\tamoxor.w.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\txor\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_xor_32_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_32_nv,_atomic_xor_32_nv)\nATOMIC_OP_ALIAS(atomic_xor_uint_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_uint_nv,_atomic_xor_32_nv)\n#ifndef _LP64\nATOMIC_OP_ALIAS(atomic_xor_ulong_nv,_atomic_xor_32_nv)\nSTRONG_ALIAS(_atomic_xor_ulong_nv,_atomic_xor_32_nv)\n#endif\nCRT_ALIAS(__sync_xor_and_fetch_4,_atomic_xor_32_nv)\nCRT_ALIAS(__atomic_xor_fetch_4,_atomic_xor_32_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_xor_32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_xor_32.S", "line_start": 41, "line_end": 63}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/atomic_xor_64.S:1", "text": "/*\t$NetBSD: atomic_xor_64.S,v 1.2 2015/03/27 06:42:37 matt Exp $\t*/\n\n/*-\n * Copyright (c) 2014 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas of 3am Software Foundry.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_atomic_xor_64)\n\tamoxor.d.aq\ta0, a1, 0(a0)\n\tret\nEND(_atomic_xor_64)\n\nATOMIC_OP_ALIAS(atomic_xor_64,_atomic_xor_64)\nATOMIC_OP_ALIAS(atomic_xor_ulong,_atomic_xor_64)\nSTRONG_ALIAS(_atomic_xor_ulong,_atomic_xor_64)\nCRT_ALIAS(__sync_fetch_and_xor_8,_atomic_xor_64)\nCRT_ALIAS(__atomic_fetch_xor_8,_atomic_xor_64)\n\nENTRY_NP(_atomic_xor_64_nv)\n\tamoxor.d.aq\tt0, a1, 0(a0)\t/* update memory and get old value */\n\txor\t\ta0, t0, a1\t/* turn into new value */\n\tret\nEND(_atomic_xor_64_nv)\n\nATOMIC_OP_ALIAS(atomic_xor_64_nv,_atomic_xor_64_nv)\nATOMIC_OP_ALIAS(atomic_xor_ulong_nv,_atomic_xor_64_nv)\nSTRONG_ALIAS(_atomic_xor_ulong_nv,_atomic_xor_64_nv)\nCRT_ALIAS(__sync_xor_and_fetch_8,_atomic_xor_64_nv)\nCRT_ALIAS(__atomic_xor_fetch_8,_atomic_xor_64_nv)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/atomic_xor_64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/atomic_xor_64.S", "line_start": 1, "line_end": 55}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/membar_ops.S:1", "text": "/*\t$NetBSD: membar_ops.S,v 1.4 2022/04/09 23:32:52 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe, and by Andrew Doran.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\nENTRY_NP(_membar_sync)\n\tfence\trw,rw\n\tret\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\nCRT_ALIAS(__sync_synchronize,_membar_sync)\n\nENTRY_NP(_membar_acquire)\n\tfence\tr,rw\n\tret\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nENTRY_NP(_membar_release)\n\tfence\trw,w\n\tret\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nENTRY_NP(_membar_enter)\n\tfence\trw,rw\n\tret\nEND(_membar_enter)\nATOMIC_OP_ALIAS(membar_enter,_membar_enter)\n\nENTRY_NP(_membar_exit)\n\tfence\trw,w", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/membar_ops.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/riscv/atomic/membar_ops.S:2", "text": "ENTRY_NP(_membar_acquire)\n\tfence\tr,rw\n\tret\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nENTRY_NP(_membar_release)\n\tfence\trw,w\n\tret\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nENTRY_NP(_membar_enter)\n\tfence\trw,rw\n\tret\nEND(_membar_enter)\nATOMIC_OP_ALIAS(membar_enter,_membar_enter)\n\nENTRY_NP(_membar_exit)\n\tfence\trw,w\n\tret\nEND(_membar_exit)\nATOMIC_OP_ALIAS(membar_exit,_membar_exit)\n\nENTRY_NP(_membar_producer)\n\tfence\tw,w\n\tret\nEND(_membar_producer)\nATOMIC_OP_ALIAS(membar_producer,_membar_producer)\n\nENTRY_NP(_membar_consumer)\n\tfence\tr,r\n\tret\nEND(_membar_consumer)\nATOMIC_OP_ALIAS(membar_consumer,_membar_consumer)", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/riscv/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/riscv/atomic/membar_ops.S", "line_start": 41, "line_end": 75}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.9 2023/03/30 15:03:36 riastradh Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \\\n\tatomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \\\n\tatomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c\n\n.if ${LIB} == \"c\"\nSRCS+=\tatomic_add_16_cas.c atomic_add_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\\\n\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c \\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\\\n\tatomic_c11_compare_exchange_cas_8.c\t\\\n\tatomic_is_lock_free.c\n.endif\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_testset.c\n\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/atomic/Makefile.inc", "line_start": 1, "line_end": 33}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/ffs.S:1", "text": "/*\t$NetBSD: ffs.S,v 1.3 2011/07/04 12:18:05 mrg Exp $\t*/\n\n/*-\n * Copyright (c) 2002 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by ITOH Yasufumi.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS) && !defined(lint)\n\tRCSID(\"$NetBSD: ffs.S,v 1.3 2011/07/04 12:18:05 mrg Exp $\")\n#endif\n\n/*\n * ffs - find first bit set\n *\n * This code makes use of ``test 8bit'' and ``shift 8bit'' instructions.\n * The remaining 8bit is tested in every 2bit.\n */\n\nWEAK_ALIAS(__ffssi2,ffs)\nENTRY(ffs)\n\tmov\tr4,r0\t\t! using r0 specific instructions\n\ttst\t#0xff,r0\n\tbf/s\tL8bit\n\tmov\t#0+1,r1\t\t! ret = 1..8\n\n\ttst\tr0,r0\t\t! ffs(0) is 0\n\tbt\tLzero\t\t! testing here to accelerate ret=1..8 cases\n\n\tshlr8\tr0\n\ttst\t#0xff,r0\n\tbf/s\tL8bit\n\tmov\t#8+1,r1\t\t! ret = 9..16\n\n\tshlr8\tr0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/ffs.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/ffs.S:2", "text": "* This code makes use of ``test 8bit'' and ``shift 8bit'' instructions.\n * The remaining 8bit is tested in every 2bit.\n */\n\nWEAK_ALIAS(__ffssi2,ffs)\nENTRY(ffs)\n\tmov\tr4,r0\t\t! using r0 specific instructions\n\ttst\t#0xff,r0\n\tbf/s\tL8bit\n\tmov\t#0+1,r1\t\t! ret = 1..8\n\n\ttst\tr0,r0\t\t! ffs(0) is 0\n\tbt\tLzero\t\t! testing here to accelerate ret=1..8 cases\n\n\tshlr8\tr0\n\ttst\t#0xff,r0\n\tbf/s\tL8bit\n\tmov\t#8+1,r1\t\t! ret = 9..16\n\n\tshlr8\tr0\n\ttst\t#0xff,r0\n\tbf/s\tL8bit\n\tmov\t#16+1,r1\t! ret = 17..24\n\n\tshlr8\tr0\n\tmov\t#24+1,r1\t! ret = 25..32\n\nL8bit:\n\ttst\t#0x0f,r0\n\tbt\t4f\n\n\ttst\t#0x03,r0\n\tbt\t2f\n\ttst\t#0x01,r0\t! not bit 0 -> T\n\tmov\t#0,r0\n\trts\n\t addc\tr1,r0\t\t! 0 + r1 + T -> r0\n\n2:\ttst\t#0x04,r0\n\tmov\t#2,r0\n\trts\n\t addc\tr1,r0\n\n4:\ttst\t#0x30,r0\n\tbt\t6f\n\ttst\t#0x10,r0\n\tmov\t#4,r0\n\trts\n\t addc\tr1,r0\n\n6:\ttst\t#0x40,r0\n\tmov\t#6,r0\n\trts\n\t addc\tr1,r0\n\nLzero:\trts\n\t nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/ffs.S", "line_start": 41, "line_end": 97}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/ffs.S:3", "text": "rts\n\t addc\tr1,r0\n\n4:\ttst\t#0x30,r0\n\tbt\t6f\n\ttst\t#0x10,r0\n\tmov\t#4,r0\n\trts\n\t addc\tr1,r0\n\n6:\ttst\t#0x40,r0\n\tmov\t#6,r0\n\trts\n\t addc\tr1,r0\n\nLzero:\trts\n\t nop", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/ffs.S", "line_start": 81, "line_end": 97}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memcpy.S:2", "text": "#define\tREG_DST0\tr3\n#define\tREG_SRC\t\tr5\n#define\tREG_DST\t\tr4\n#else\n#define\tREG_SRC\t\tr4\n#define\tREG_DST\t\tr5\n#endif\n\n#define\tREG_LEN\t\tr6\n\n#if defined(MEMCOPY)\nENTRY(memcpy)\n#elif defined(MEMMOVE)\nENTRY(memmove)\n#elif defined(BCOPY)\nENTRY(bcopy)\n#endif\n#ifdef REG_DST0\n\tmov\tREG_DST,REG_DST0\n#endif\n\tcmp/eq\tREG_DST,REG_SRC\t/* if ( src == dst ) return; */\n\tbt/s\tbcopy_return\n\tcmp/hi\tREG_DST,REG_SRC\n\tbf/s\tbcopy_overlap\n\n\tmov\tREG_SRC,r0\n\txor\tREG_DST,r0\n\tand\t#3,r0\n\tmov\tr0,r1\n\ttst\tr0,r0\t\t/* (src ^ dst) & 3         */\n\tbf/s\tword_align\n\nlongword_align:\n\ttst\tREG_LEN,REG_LEN\t/* if ( len==0 ) return;   */\n\tbt/s\tbcopy_return\n\n\n\tmov\tREG_SRC,r0\n\ttst\t#1,r0\t\t/* if ( src & 1 )          */\n\tbt\t1f\n\tmov.b\t@REG_SRC+,r0\t/*    *dst++ = *src++;     */\n\tadd\t#-1,REG_LEN\n\tmov.b\tr0,@REG_DST\n\tadd\t#1,REG_DST\n1:\n\n\n\tmov\t#1,r0\n\tcmp/hi\tr0,REG_LEN\t/* if ( (len > 1) &&       */\n\tbf/s\t1f\n\tmov\tREG_SRC,r0\n\ttst\t#2,r0\t\t/*      (src & 2) {        */\n\tbt\t1f\n\tmov.w\t@REG_SRC+,r0\t/*        *((unsigned short*)dst)++ = *((unsigned short*)src)++; */\n\tadd\t#-2,REG_LEN\t/*        len -= 2;                                              */\n\tmov.w\tr0,@REG_DST\n\tadd\t#2,REG_DST\t/* }                       */\n1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memcpy.S:3", "text": "mov.b\t@REG_SRC+,r0\t/*    *dst++ = *src++;     */\n\tadd\t#-1,REG_LEN\n\tmov.b\tr0,@REG_DST\n\tadd\t#1,REG_DST\n1:\n\n\n\tmov\t#1,r0\n\tcmp/hi\tr0,REG_LEN\t/* if ( (len > 1) &&       */\n\tbf/s\t1f\n\tmov\tREG_SRC,r0\n\ttst\t#2,r0\t\t/*      (src & 2) {        */\n\tbt\t1f\n\tmov.w\t@REG_SRC+,r0\t/*        *((unsigned short*)dst)++ = *((unsigned short*)src)++; */\n\tadd\t#-2,REG_LEN\t/*        len -= 2;                                              */\n\tmov.w\tr0,@REG_DST\n\tadd\t#2,REG_DST\t/* }                       */\n1:\n\n\n\tmov\t#3,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 3 ) {     */\n\tbf/s\tno_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tmov.l\t@REG_SRC+,r0\t/*   *((unsigned long*)dst)++ = *((unsigned long*)src)++;        */\n\tadd\t#-4,REG_LEN\t/*   len -= 4;                                                   */\n\tmov.l\tr0,@REG_DST\n\tcmp/hi\tr1,REG_LEN\n\tbt/s\t2b\n\tadd\t#4,REG_DST\t/* }                       */\n\n\tbra\tno_align_delay\n\ttst\tREG_LEN,REG_LEN\n\n\nword_align:\n\tmov\tr1,r0\n\ttst\t#1,r0\n\tbf/s\tno_align_delay\n\ttst\tREG_LEN,REG_LEN\t/* if ( len == 0 ) return; */\n\tbt\tbcopy_return\n\n\n\tmov\tREG_SRC,r0\t/* if ( src & 1 )          */\n\ttst\t#1,r0\n\tbt\t1f\n\tmov.b\t@REG_SRC+,r0\t/*    *dst++ = *src++;     */\n\tadd\t#-1,REG_LEN\n\tmov.b\tr0,@REG_DST\n\tadd\t#1,REG_DST\n1:\n\n\n\tmov\t#1,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 1 ) {     */\n\tbf/s\tno_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tmov.w\t@REG_SRC+,r0\t/*   *((unsigned short*)dst)++ = *((unsigned short*)src)++;      */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memcpy.S:4", "text": "tst\tREG_LEN,REG_LEN\t/* if ( len == 0 ) return; */\n\tbt\tbcopy_return\n\n\n\tmov\tREG_SRC,r0\t/* if ( src & 1 )          */\n\ttst\t#1,r0\n\tbt\t1f\n\tmov.b\t@REG_SRC+,r0\t/*    *dst++ = *src++;     */\n\tadd\t#-1,REG_LEN\n\tmov.b\tr0,@REG_DST\n\tadd\t#1,REG_DST\n1:\n\n\n\tmov\t#1,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 1 ) {     */\n\tbf/s\tno_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tmov.w\t@REG_SRC+,r0\t/*   *((unsigned short*)dst)++ = *((unsigned short*)src)++;      */\n\tadd\t#-2,REG_LEN\t/*   len -= 2;                                                   */\n\tmov.w\tr0,@REG_DST\n\tcmp/hi\tr1,REG_LEN\n\tbt/s\t2b\n\tadd\t#2,REG_DST\t/* }                       */\n\n\nno_align:\n\ttst\tREG_LEN,REG_LEN\t/* while ( len!= ) {       */\nno_align_delay:\n\tbt\tbcopy_return\n1:\n\tmov.b\t@REG_SRC+,r0\t/*    *dst++ = *src++;     */\n\tadd\t#-1,REG_LEN\t/*    len--;               */\n\tmov.b\tr0,@REG_DST\n\ttst\tREG_LEN,REG_LEN\n\tbf/s\t1b\n\tadd\t#1,REG_DST\t/* }                       */\nbcopy_return:\n\trts\n#ifdef REG_DST0\n\tmov\tREG_DST0,r0\n#else\n\tnop\n#endif\n\n\nbcopy_overlap:\n\tadd\tREG_LEN,REG_SRC\n\tadd\tREG_LEN,REG_DST\n\n\tmov\tREG_SRC,r0\n\txor\tREG_DST,r0\n\tand\t#3,r0\n\tmov\tr0,r1\n\ttst\tr0,r0\t\t/* (src ^ dst) & 3         */\n\tbf/s\tov_word_align\n\nov_longword_align:\n\ttst\tREG_LEN,REG_LEN\t/* if ( len==0 ) return;   */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memcpy.S:5", "text": "#ifdef REG_DST0\n\tmov\tREG_DST0,r0\n#else\n\tnop\n#endif\n\n\nbcopy_overlap:\n\tadd\tREG_LEN,REG_SRC\n\tadd\tREG_LEN,REG_DST\n\n\tmov\tREG_SRC,r0\n\txor\tREG_DST,r0\n\tand\t#3,r0\n\tmov\tr0,r1\n\ttst\tr0,r0\t\t/* (src ^ dst) & 3         */\n\tbf/s\tov_word_align\n\nov_longword_align:\n\ttst\tREG_LEN,REG_LEN\t/* if ( len==0 ) return;   */\n\tbt/s\tbcopy_return\n\n\n\tmov\tREG_SRC,r0\n\ttst\t#1,r0\t\t/* if ( src & 1 )          */\n\tbt\t1f\n\tadd\t#-1,REG_SRC\t/*    *--dst = *--src;     */\n\tmov.b\t@REG_SRC,r0\n\tmov.b\tr0,@-REG_DST\n\tadd\t#-1,REG_LEN\n1:\n\n\n\tmov\t#1,r0\n\tcmp/hi\tr0,REG_LEN\t/* if ( (len > 1) &&       */\n\tbf/s\t1f\n\tmov\tREG_SRC,r0\n\ttst\t#2,r0\t\t/*      (src & 2) {        */\n\tbt\t1f\n\tadd\t#-2,REG_SRC\t/*        *--((unsigned short*)dst) = *--((unsigned short*)src); */\n\tmov.w\t@REG_SRC,r0\n\tadd\t#-2,REG_LEN\t/*        len -= 2;                                              */\n\tmov.w\tr0,@-REG_DST\t/* }                       */\n1:\n\n\n\tmov\t#3,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 3 ) {     */\n\tbf/s\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tadd\t#-4,REG_SRC\n\tmov.l\t@REG_SRC,r0\t/*   *((unsigned long*)dst)++ = *((unsigned long*)src)++;        */\n\tadd\t#-4,REG_LEN\t/*   len -= 4;                                                   */\n\tcmp/hi\tr1,REG_LEN\n\tbt/s\t2b\n\tmov.l\tr0,@-REG_DST\t/* }                       */\n\n\tbra\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memcpy.S:6", "text": "mov.w\t@REG_SRC,r0\n\tadd\t#-2,REG_LEN\t/*        len -= 2;                                              */\n\tmov.w\tr0,@-REG_DST\t/* }                       */\n1:\n\n\n\tmov\t#3,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 3 ) {     */\n\tbf/s\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tadd\t#-4,REG_SRC\n\tmov.l\t@REG_SRC,r0\t/*   *((unsigned long*)dst)++ = *((unsigned long*)src)++;        */\n\tadd\t#-4,REG_LEN\t/*   len -= 4;                                                   */\n\tcmp/hi\tr1,REG_LEN\n\tbt/s\t2b\n\tmov.l\tr0,@-REG_DST\t/* }                       */\n\n\tbra\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN\n\n\nov_word_align:\n\tmov\tr1,r0\n\ttst\t#1,r0\n\tbf/s\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN\t/* if ( len == 0 ) return; */\n\tbt\tbcopy_return\n\n\n\tmov\tREG_SRC,r0\t/* if ( src & 1 )          */\n\ttst\t#1,r0\n\tbt\t1f\n\tadd\t#-1,REG_SRC\n\tmov.b\t@REG_SRC,r0\t/*    *--dst = *--src;     */\n\tadd\t#-1,REG_LEN\n\tmov.b\tr0,@-REG_DST\n1:\n\n\n\tmov\t#1,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 1 ) {     */\n\tbf/s\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tadd\t#-2,REG_SRC\n\tmov.w\t@REG_SRC,r0\t/*   *--((unsigned short*)dst) = *--((unsigned short*)src);      */\n\tadd\t#-2,REG_LEN\t/*   len -= 2;                                                   */\n\tcmp/hi\tr1,REG_LEN\n\tbt/s\t2b\n\tmov.w\tr0,@-REG_DST\t/* }                       */\n\n\nov_no_align:\n\ttst\tREG_LEN,REG_LEN\t/* while ( len!= ) {       */\nov_no_align_delay:\n\tbt\t9f\n1:\n\tadd\t#-1,REG_SRC\n\tmov.b\t@REG_SRC,r0\t/*    *--dst = *--src;     */", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memcpy.S:7", "text": "mov\t#1,r1\n\tcmp/hi\tr1,REG_LEN\t/* while ( len > 1 ) {     */\n\tbf/s\tov_no_align_delay\n\ttst\tREG_LEN,REG_LEN\n2:\n\tadd\t#-2,REG_SRC\n\tmov.w\t@REG_SRC,r0\t/*   *--((unsigned short*)dst) = *--((unsigned short*)src);      */\n\tadd\t#-2,REG_LEN\t/*   len -= 2;                                                   */\n\tcmp/hi\tr1,REG_LEN\n\tbt/s\t2b\n\tmov.w\tr0,@-REG_DST\t/* }                       */\n\n\nov_no_align:\n\ttst\tREG_LEN,REG_LEN\t/* while ( len!= ) {       */\nov_no_align_delay:\n\tbt\t9f\n1:\n\tadd\t#-1,REG_SRC\n\tmov.b\t@REG_SRC,r0\t/*    *--dst = *--src;     */\n\tadd\t#-1,REG_LEN\t/*    len--;               */\n\ttst\tREG_LEN,REG_LEN\n\tbf/s\t1b\n\tmov.b\tr0,@-REG_DST\t/* }                       */\n9:\n\trts\n#ifdef REG_DST0\n\tmov\tREG_DST0,r0\n#else\n\tnop\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memcpy.S", "line_start": 241, "line_end": 271}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:2", "text": "# define\tREG_LEN\t\t\tr5\n#else\n# define\tREG_DST0\t\tr3\n# define\tREG_DST\t\t\tr4\n# define\tREG_C\t\t\tr5\n# define\tREG_LEN\t\t\tr6\n#endif\n\n#ifdef BZERO\nENTRY(bzero)\n#else\nENTRY(memset)\n\tmov\tREG_DST,REG_DST0\t/* for return value */\n#endif\n\t/* small amount to fill ? */\n\tmov\t#28,REG_TMP1\n\tcmp/hs\tREG_TMP1,REG_LEN\t/* if (len >= 28) goto large; */\n\tbt/s\tlarge\n\tmov\t#12,REG_TMP1\t\t/* if (len >= 12) goto small; */\n\tcmp/hs\tREG_TMP1,REG_LEN\n\tbt/s\tsmall\n#ifdef BZERO\n\tmov\t#0,REG_C\n#endif\n\t/* very little fill (0 ~ 11 bytes) */\n\ttst\tREG_LEN,REG_LEN\n\tadd\tREG_DST,REG_LEN\n\tbt/s\tdone\n\tadd\t#1,REG_DST\n\n\t/* unroll 4 loops */\n\tcmp/eq\tREG_DST,REG_LEN\n1:\tmov.b\tREG_C,@-REG_LEN\n\tbt/s\tdone\n\tcmp/eq\tREG_DST,REG_LEN\n\tmov.b\tREG_C,@-REG_LEN\n\tbt/s\tdone\n\tcmp/eq\tREG_DST,REG_LEN\n\tmov.b\tREG_C,@-REG_LEN\n\tbt/s\tdone\n\tcmp/eq\tREG_DST,REG_LEN\n\tmov.b\tREG_C,@-REG_LEN\n\tbf/s\t1b\n\tcmp/eq\tREG_DST,REG_LEN\ndone:\n#ifdef BZERO\n\trts\n\tnop\n#else\n\trts\n\tmov\tREG_DST0,r0\n#endif\n\n\nsmall:\n\tmov\tREG_DST,r0\n\ttst\t#1,r0\n\tbt/s\tsmall_aligned\n\tmov\tREG_DST,REG_TMP1\n\tshll\tREG_LEN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:3", "text": "cmp/eq\tREG_DST,REG_LEN\n\tmov.b\tREG_C,@-REG_LEN\n\tbf/s\t1b\n\tcmp/eq\tREG_DST,REG_LEN\ndone:\n#ifdef BZERO\n\trts\n\tnop\n#else\n\trts\n\tmov\tREG_DST0,r0\n#endif\n\n\nsmall:\n\tmov\tREG_DST,r0\n\ttst\t#1,r0\n\tbt/s\tsmall_aligned\n\tmov\tREG_DST,REG_TMP1\n\tshll\tREG_LEN\n\tmova\t1f,r0\t\t\t/* 1f must be 4bytes aligned! */\n\tadd\t#16,REG_TMP1\t\t/* REG_TMP1 = dst+16; */\n\tsub\tREG_LEN,r0\n\tjmp\t@r0\n\tmov\tREG_C,r0\n\n\t.align\t2\n\tmov.b\tr0,@(15,REG_TMP1)\n\tmov.b\tr0,@(14,REG_TMP1)\n\tmov.b\tr0,@(13,REG_TMP1)\n\tmov.b\tr0,@(12,REG_TMP1)\n\tmov.b\tr0,@(11,REG_TMP1)\n\tmov.b\tr0,@(10,REG_TMP1)\n\tmov.b\tr0,@(9,REG_TMP1)\n\tmov.b\tr0,@(8,REG_TMP1)\n\tmov.b\tr0,@(7,REG_TMP1)\n\tmov.b\tr0,@(6,REG_TMP1)\n\tmov.b\tr0,@(5,REG_TMP1)\n\tmov.b\tr0,@(4,REG_TMP1)\n\tmov.b\tr0,@(3,REG_TMP1)\n\tmov.b\tr0,@(2,REG_TMP1)\n\tmov.b\tr0,@(1,REG_TMP1)\n\tmov.b\tr0,@REG_TMP1\n\tmov.b\tr0,@(15,REG_DST)\n\tmov.b\tr0,@(14,REG_DST)\n\tmov.b\tr0,@(13,REG_DST)\n\tmov.b\tr0,@(12,REG_DST)\n\tmov.b\tr0,@(11,REG_DST)\n\tmov.b\tr0,@(10,REG_DST)\n\tmov.b\tr0,@(9,REG_DST)\n\tmov.b\tr0,@(8,REG_DST)\n\tmov.b\tr0,@(7,REG_DST)\n\tmov.b\tr0,@(6,REG_DST)\n\tmov.b\tr0,@(5,REG_DST)\n\tmov.b\tr0,@(4,REG_DST)\n\tmov.b\tr0,@(3,REG_DST)\n\tmov.b\tr0,@(2,REG_DST)\n\tmov.b\tr0,@(1,REG_DST)\n#ifdef BZERO\n\trts", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:4", "text": "mov.b\tr0,@(2,REG_TMP1)\n\tmov.b\tr0,@(1,REG_TMP1)\n\tmov.b\tr0,@REG_TMP1\n\tmov.b\tr0,@(15,REG_DST)\n\tmov.b\tr0,@(14,REG_DST)\n\tmov.b\tr0,@(13,REG_DST)\n\tmov.b\tr0,@(12,REG_DST)\n\tmov.b\tr0,@(11,REG_DST)\n\tmov.b\tr0,@(10,REG_DST)\n\tmov.b\tr0,@(9,REG_DST)\n\tmov.b\tr0,@(8,REG_DST)\n\tmov.b\tr0,@(7,REG_DST)\n\tmov.b\tr0,@(6,REG_DST)\n\tmov.b\tr0,@(5,REG_DST)\n\tmov.b\tr0,@(4,REG_DST)\n\tmov.b\tr0,@(3,REG_DST)\n\tmov.b\tr0,@(2,REG_DST)\n\tmov.b\tr0,@(1,REG_DST)\n#ifdef BZERO\n\trts\n1:\tmov.b\tr0,@REG_DST\n#else\n\tmov.b\tr0,@REG_DST\n1:\trts\n\tmov\tREG_DST0,r0\n#endif\n\n\n/* 2 bytes aligned small fill */\nsmall_aligned:\n#ifndef BZERO\n\textu.b\tREG_C,REG_TMP1\t\t/* REG_C = ??????xx, REG_TMP1 = ????00xx */\n\tshll8\tREG_C\t\t\t/* REG_C = ????xx00, REG_TMP1 = ????00xx */\n\tor\tREG_TMP1,REG_C\t\t/* REG_C = ????xxxx */\n#endif\n\n\tmov\tREG_LEN,r0\n\ttst\t#1,r0\t\t\t/* len is aligned? */\n\tbt/s\t1f\n\tadd\t#-1,r0\n\tmov.b\tREG_C,@(r0,REG_DST)\t/* fill last a byte */\n\tmov\tr0,REG_LEN\n1:\n\n\tmova\t1f,r0\t\t\t/* 1f must be 4bytes aligned! */\n\tsub\tREG_LEN,r0\n\tjmp\t@r0\n\tmov\tREG_C,r0\n\n\t.align\t2\n\tmov.w\tr0,@(30,REG_DST)\n\tmov.w\tr0,@(28,REG_DST)\n\tmov.w\tr0,@(26,REG_DST)\n\tmov.w\tr0,@(24,REG_DST)\n\tmov.w\tr0,@(22,REG_DST)\n\tmov.w\tr0,@(20,REG_DST)\n\tmov.w\tr0,@(18,REG_DST)\n\tmov.w\tr0,@(16,REG_DST)\n\tmov.w\tr0,@(14,REG_DST)\n\tmov.w\tr0,@(12,REG_DST)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:5", "text": "mov.b\tREG_C,@(r0,REG_DST)\t/* fill last a byte */\n\tmov\tr0,REG_LEN\n1:\n\n\tmova\t1f,r0\t\t\t/* 1f must be 4bytes aligned! */\n\tsub\tREG_LEN,r0\n\tjmp\t@r0\n\tmov\tREG_C,r0\n\n\t.align\t2\n\tmov.w\tr0,@(30,REG_DST)\n\tmov.w\tr0,@(28,REG_DST)\n\tmov.w\tr0,@(26,REG_DST)\n\tmov.w\tr0,@(24,REG_DST)\n\tmov.w\tr0,@(22,REG_DST)\n\tmov.w\tr0,@(20,REG_DST)\n\tmov.w\tr0,@(18,REG_DST)\n\tmov.w\tr0,@(16,REG_DST)\n\tmov.w\tr0,@(14,REG_DST)\n\tmov.w\tr0,@(12,REG_DST)\n\tmov.w\tr0,@(10,REG_DST)\n\tmov.w\tr0,@(8,REG_DST)\n\tmov.w\tr0,@(6,REG_DST)\n\tmov.w\tr0,@(4,REG_DST)\n\tmov.w\tr0,@(2,REG_DST)\n#ifdef BZERO\n\trts\n1:\tmov.w\tr0,@REG_DST\n#else\n\tmov.w\tr0,@REG_DST\n1:\trts\n\tmov\tREG_DST0,r0\n#endif\n\n\n\n\t.align\t2\nlarge:\n#ifdef BZERO\n\tmov\t#0,REG_C\n#else\n\textu.b\tREG_C,REG_TMP1\t\t/* REG_C = ??????xx, REG_TMP1 = ????00xx */\n\tshll8\tREG_C\t\t\t/* REG_C = ????xx00, REG_TMP1 = ????00xx */\n\tor\tREG_C,REG_TMP1\t\t/* REG_C = ????xx00, REG_TMP1 = ????xxxx */\n\tswap.w\tREG_TMP1,REG_C\t\t/* REG_C = xxxx????, REG_TMP1 = ????xxxx */\n\txtrct\tREG_TMP1,REG_C\t\t/* REG_C = xxxxxxxx */\n#endif\n\n\tmov\t#3,REG_TMP1\n\ttst\tREG_TMP1,REG_DST\n\tmov\tREG_DST,REG_PTR\n\tbf/s\tunaligned_dst\n\tadd\tREG_LEN,REG_PTR\t\t/* REG_PTR = dst + len; */\n\ttst\tREG_TMP1,REG_LEN\n\tbf/s\tunaligned_len\n\naligned:\n\t/* fill 32*n bytes */\n\tmov\t#32,REG_TMP1\n\tcmp/hi\tREG_LEN,REG_TMP1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:6", "text": "#else\n\textu.b\tREG_C,REG_TMP1\t\t/* REG_C = ??????xx, REG_TMP1 = ????00xx */\n\tshll8\tREG_C\t\t\t/* REG_C = ????xx00, REG_TMP1 = ????00xx */\n\tor\tREG_C,REG_TMP1\t\t/* REG_C = ????xx00, REG_TMP1 = ????xxxx */\n\tswap.w\tREG_TMP1,REG_C\t\t/* REG_C = xxxx????, REG_TMP1 = ????xxxx */\n\txtrct\tREG_TMP1,REG_C\t\t/* REG_C = xxxxxxxx */\n#endif\n\n\tmov\t#3,REG_TMP1\n\ttst\tREG_TMP1,REG_DST\n\tmov\tREG_DST,REG_PTR\n\tbf/s\tunaligned_dst\n\tadd\tREG_LEN,REG_PTR\t\t/* REG_PTR = dst + len; */\n\ttst\tREG_TMP1,REG_LEN\n\tbf/s\tunaligned_len\n\naligned:\n\t/* fill 32*n bytes */\n\tmov\t#32,REG_TMP1\n\tcmp/hi\tREG_LEN,REG_TMP1\n\tbt\t9f\n\t.align\t2\n1:\tsub\tREG_TMP1,REG_PTR\n\tmov.l\tREG_C,@REG_PTR\n\tsub\tREG_TMP1,REG_LEN\n\tmov.l\tREG_C,@(4,REG_PTR)\n\tcmp/hi\tREG_LEN,REG_TMP1\n\tmov.l\tREG_C,@(8,REG_PTR)\n\tmov.l\tREG_C,@(12,REG_PTR)\n\tmov.l\tREG_C,@(16,REG_PTR)\n\tmov.l\tREG_C,@(20,REG_PTR)\n\tmov.l\tREG_C,@(24,REG_PTR)\n\tbf/s\t1b\n\tmov.l\tREG_C,@(28,REG_PTR)\n9:\n\n\t/* fill left 4*n bytes */\n\tcmp/eq\tREG_DST,REG_PTR\n\tbt\t9f\n\tadd\t#4,REG_DST\n\tcmp/eq\tREG_DST,REG_PTR\n1:\tmov.l\tREG_C,@-REG_PTR\n\tbt/s\t9f\n\tcmp/eq\tREG_DST,REG_PTR\n\tmov.l\tREG_C,@-REG_PTR\n\tbt/s\t9f\n\tcmp/eq\tREG_DST,REG_PTR\n\tmov.l\tREG_C,@-REG_PTR\n\tbt/s\t9f\n\tcmp/eq\tREG_DST,REG_PTR\n\tmov.l\tREG_C,@-REG_PTR\n\tbf/s\t1b\n\tcmp/eq\tREG_DST,REG_PTR\n9:\n#ifdef BZERO\n\trts\n\tnop\n#else\n\trts\n\tmov\tREG_DST0,r0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:7", "text": "cmp/eq\tREG_DST,REG_PTR\n1:\tmov.l\tREG_C,@-REG_PTR\n\tbt/s\t9f\n\tcmp/eq\tREG_DST,REG_PTR\n\tmov.l\tREG_C,@-REG_PTR\n\tbt/s\t9f\n\tcmp/eq\tREG_DST,REG_PTR\n\tmov.l\tREG_C,@-REG_PTR\n\tbt/s\t9f\n\tcmp/eq\tREG_DST,REG_PTR\n\tmov.l\tREG_C,@-REG_PTR\n\tbf/s\t1b\n\tcmp/eq\tREG_DST,REG_PTR\n9:\n#ifdef BZERO\n\trts\n\tnop\n#else\n\trts\n\tmov\tREG_DST0,r0\n#endif\n\n\nunaligned_dst:\n\tmov\t#1,REG_TMP1\n\ttst\tREG_TMP1,REG_DST\t/* if (dst & 1) {               */\n\tadd\t#1,REG_TMP1\n\tbt/s\t2f\n\ttst\tREG_TMP1,REG_DST\n\tmov.b\tREG_C,@REG_DST\t\t/*   *dst++ = c;                */\n\tadd\t#1,REG_DST\n\ttst\tREG_TMP1,REG_DST\n2:\t\t\t\t\t/* }                            */\n\t\t\t\t\t/* if (dst & 2) {               */\n\tbt\t4f\n\tmov.w\tREG_C,@REG_DST\t\t/*   *(uint16_t*)dst++ = c;    */\n\tadd\t#2,REG_DST\n4:\t\t\t\t\t/* }                            */\n\n\n\ttst\t#3,REG_PTR\t\t/* if (ptr & 3) {               */\n\tbt/s\t4f\t\t\t/*                              */\nunaligned_len:\n\ttst\t#1,REG_PTR\t\t/*   if (ptr & 1) {             */\n\tbt/s\t2f\n\ttst\t#2,REG_PTR\n\tmov.b\tREG_C,@-REG_PTR\t\t/*     --ptr = c;               */\n2:\t\t\t\t\t/*   }                          */\n\t\t\t\t\t/*   if (ptr & 2) {             */\n\tbt\t4f\n\tmov.w\tREG_C,@-REG_PTR\t\t/*     *--(uint16_t*)ptr = c;  */\n4:\t\t\t\t\t/*   }                          */\n\t\t\t\t\t/* }                            */\n\n\tmov\tREG_PTR,REG_LEN\n\tbra\taligned\n\tsub\tREG_DST,REG_LEN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 241, "line_end": 297}
{"id": "NetBSD/src:common/lib/libc/arch/sh3/string/memset.S:8", "text": "tst\t#3,REG_PTR\t\t/* if (ptr & 3) {               */\n\tbt/s\t4f\t\t\t/*                              */\nunaligned_len:\n\ttst\t#1,REG_PTR\t\t/*   if (ptr & 1) {             */\n\tbt/s\t2f\n\ttst\t#2,REG_PTR\n\tmov.b\tREG_C,@-REG_PTR\t\t/*     --ptr = c;               */\n2:\t\t\t\t\t/*   }                          */\n\t\t\t\t\t/*   if (ptr & 2) {             */\n\tbt\t4f\n\tmov.w\tREG_C,@-REG_PTR\t\t/*     *--(uint16_t*)ptr = c;  */\n4:\t\t\t\t\t/*   }                          */\n\t\t\t\t\t/* }                            */\n\n\tmov\tREG_PTR,REG_LEN\n\tbra\taligned\n\tsub\tREG_DST,REG_LEN", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sh3/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sh3/string/memset.S", "line_start": 281, "line_end": 297}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.24 2023/03/30 15:03:36 riastradh Exp $\n\n.include <bsd.own.mk>\n\n# This is called with MACHINE=sparc64 && MACHINE_ARCH=sparc when building\n# 32 bit kernels for ultrasparc hardware\n.if ${MACHINE} == \"sparc64\" && \\\n\t(${HAVE_LLVM:Uno} == \"no\" || (defined(LIB) && ${LIB} == \"kern\"))\n\nSPARC64DIR=\t${.PARSEDIR}/../../sparc64/atomic\n.PATH.c: ${SPARC64DIR}\n.PATH.S: ${SPARC64DIR}\n\n.include \"${SPARC64DIR}/Makefile.inc\"\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\nSRCS+=\tatomic_nand_64_cas.c atomic_xor_64_cas.c atomic_sub_64_cas.c \\\n\tatomic_cas_64_cas.c\n.endif\n\n.else\n\n. if defined(LIB)\n\n.  if (${LIB} == \"kern\" || ${LIB} == \"c\"  || ${LIB} == \"pthread\"\t\\\n    || ${LIB} == \"rump\")\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \\\n\tatomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \\\n\tatomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops.S\t\\\n\tatomic_cas_32_cas.c atomic_nand_32_cas.c atomic_sub_32_cas.c\t\\\n\tatomic_xor_32_cas.c\n.  endif\n\n.  if ${LIB} == \"c\"\nSRCS+=\tatomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\\\n\tatomic_xor_16_cas.c atomic_xor_8_cas.c\t\t\\\n\tatomic_add_16_cas.c atomic_add_8_cas.c\t\t\\\n\tatomic_cas_16_cas.c atomic_cas_8_cas.c\t\t\\\n\tatomic_sub_16_cas.c atomic_sub_8_cas.c\t\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c \\\n\tatomic_load.c atomic_store.c \\\n\tatomic_is_lock_free.c\n.  endif\n\n.  if (${LIB} == \"kern\" || ${LIB} == \"rump\")\nSRCS+=\tatomic_cas.S\n.  endif\n\n.  if (${LIB} == \"c\" || ${LIB} == \"pthread\")\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP -D__HAVE_ASM_ATOMIC_CAS_16_UP\t\\\n\t-D__HAVE_ASM_ATOMIC_CAS_8_UP\nSRCS+=\tatomic_init_testset.c atomic_cas_up.S", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/Makefile.inc", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/Makefile.inc:2", "text": "atomic_add_16_cas.c atomic_add_8_cas.c\t\t\\\n\tatomic_cas_16_cas.c atomic_cas_8_cas.c\t\t\\\n\tatomic_sub_16_cas.c atomic_sub_8_cas.c\t\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c\t\\\n\tatomic_c11_compare_exchange_cas_32.c\t\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\t\\\n\tatomic_c11_compare_exchange_cas_8.c \\\n\tatomic_load.c atomic_store.c \\\n\tatomic_is_lock_free.c\n.  endif\n\n.  if (${LIB} == \"kern\" || ${LIB} == \"rump\")\nSRCS+=\tatomic_cas.S\n.  endif\n\n.  if (${LIB} == \"c\" || ${LIB} == \"pthread\")\nCPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP -D__HAVE_ASM_ATOMIC_CAS_16_UP\t\\\n\t-D__HAVE_ASM_ATOMIC_CAS_8_UP\nSRCS+=\tatomic_init_testset.c atomic_cas_up.S\n.  endif\n\n. endif\n\n.endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/Makefile.inc", "line_start": 41, "line_end": 65}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/atomic_cas.S:2", "text": "#define\tDISABLE_INTERRUPTS\t\t\t\t\t\t \\\n\trd\t%psr, %o4\t\t\t/* disable interrupts */;\\\n\tor\t%o4, PSR_PIL, %o5\t\t\t\t\t;\\\n\twr\t%o5, 0, %psr\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tnop\n\n#define\tRESTORE_INTERRUPTS\t\t\t\t\t\t \\\n\twr\t%o4, 0, %psr\t\t\t/* enable interrupts */\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tnop\n\n#else\t/* _HARDKERNEL */\n\n#define\tMULTIPROCESSOR\t1\n#define\tDISABLE_INTERRUPTS\t\t/* nothing */\n#define\tRESTORE_INTERRUPTS\t\t/* nothing */\n\n#endif\t/* _HARDKERNEL */\n\n#if defined(MULTIPROCESSOR)\n\t.section .bss\n\t.align\t1024\n#ifdef __PIC__\n\t.globl _C_LABEL(_atomic_cas_locktab)\n#endif\nOTYPE(_C_LABEL(_atomic_cas_locktab))\n_C_LABEL(_atomic_cas_locktab):\n\t.space\t1024\n\n#ifdef __PIC__\n/* o4 is not used for PSR in PIC cases, so we can use it here */\n#define GETLOCKTAB\t\t\t\t\t\t\t\\\n\tPIC_PROLOGUE(%o3,%o4)\t\t\t\t\t\t;\\\n\tset _C_LABEL(_atomic_cas_locktab), %o4\t\t\t\t;\\\n\tld [%o3 + %o4], %o3\n#else\n#define GETLOCKTAB\t\t\t\t\t\t\t\\\n\tsethi\t%hi(_C_LABEL(_atomic_cas_locktab)), %o3\n#endif\n\n#define\tACQUIRE_INTERLOCK\t\t\t\t\t\t \\\n\tDISABLE_INTERRUPTS\t\t\t\t\t\t;\\\n\tsrl\t%o0, 3, %o5\t\t\t/* get lock address */\t;\\\n\tand\t%o5, 1023, %o5\t\t\t\t\t\t;\\\n\tGETLOCKTAB\t\t\t\t\t\t\t;\\\n\tadd\t%o5, %o3, %o5\t\t\t\t\t\t;\\\n\t\t\t\t\t\t\t\t\t;\\\n\t/* %o5 has interlock address */\t\t\t\t\t;\\\n\t\t\t\t\t\t\t\t\t;\\\n1:\tldstub\t[%o5], %o3\t\t\t/* acquire lock */\t;\\\n\ttst\t%o3\t\t\t\t\t\t\t;\\\n\tbz,a\t2f\t\t\t\t\t\t\t;\\\n\t nop\t\t\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tb,a\t1b\t\t\t\t/* spin\t*/\t\t;\\\n\t nop\t\t\t\t\t\t\t\t;\\", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/atomic_cas.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/atomic_cas.S:3", "text": "sethi\t%hi(_C_LABEL(_atomic_cas_locktab)), %o3\n#endif\n\n#define\tACQUIRE_INTERLOCK\t\t\t\t\t\t \\\n\tDISABLE_INTERRUPTS\t\t\t\t\t\t;\\\n\tsrl\t%o0, 3, %o5\t\t\t/* get lock address */\t;\\\n\tand\t%o5, 1023, %o5\t\t\t\t\t\t;\\\n\tGETLOCKTAB\t\t\t\t\t\t\t;\\\n\tadd\t%o5, %o3, %o5\t\t\t\t\t\t;\\\n\t\t\t\t\t\t\t\t\t;\\\n\t/* %o5 has interlock address */\t\t\t\t\t;\\\n\t\t\t\t\t\t\t\t\t;\\\n1:\tldstub\t[%o5], %o3\t\t\t/* acquire lock */\t;\\\n\ttst\t%o3\t\t\t\t\t\t\t;\\\n\tbz,a\t2f\t\t\t\t\t\t\t;\\\n\t nop\t\t\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tnop\t\t\t\t\t\t\t\t;\\\n\tb,a\t1b\t\t\t\t/* spin\t*/\t\t;\\\n\t nop\t\t\t\t\t\t\t\t;\\\n\t/* We now hold the interlock */\t\t\t\t\t;\\\n2:\n\n#define\tRELEASE_INTERLOCK\t\t\t\t\t\t \\\n\tstb\t%g0, [%o5]\t\t\t/* release interlock */\t;\\\n\tRESTORE_INTERRUPTS\n\n#else /* ! MULTIPROCESSOR */\n\n#define\tACQUIRE_INTERLOCK\tDISABLE_INTERRUPTS\n\n#define\tRELEASE_INTERLOCK\tRESTORE_INTERRUPTS\n\n#endif /* MULTIPROCESSOR */\n\n\t.text\n\n/*\n * The v7 and v8 SPARC doesn't have compare-and-swap, so we block interrupts\n * and use an interlock.\n *\n * XXX On single CPU systems, this should use a restartable sequence:\n * XXX there we don't need the overhead of interlocking.\n *\n * XXX NOTE!  The interlock trick only works if EVERYTHING writes to\n * XXX the memory cell through this code path!\n */\nENTRY(_atomic_cas_32)\n\tACQUIRE_INTERLOCK\n\t! %o4 has saved PSR value\n\t! %o5 has interlock address\n\n\tld\t[%o0], %o3\t\t\t! get old value\n\tcmp\t%o1, %o3\t\t\t! old == new?\n\tbeq,a\t3f\t\t\t\t! yes, do the store\n\t st\t%o2, [%o0]\t\t\t! (in the delay slot)\n\n3:\tRELEASE_INTERLOCK\n\n\tretl", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/atomic_cas.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/atomic_cas.S:4", "text": "*\n * XXX On single CPU systems, this should use a restartable sequence:\n * XXX there we don't need the overhead of interlocking.\n *\n * XXX NOTE!  The interlock trick only works if EVERYTHING writes to\n * XXX the memory cell through this code path!\n */\nENTRY(_atomic_cas_32)\n\tACQUIRE_INTERLOCK\n\t! %o4 has saved PSR value\n\t! %o5 has interlock address\n\n\tld\t[%o0], %o3\t\t\t! get old value\n\tcmp\t%o1, %o3\t\t\t! old == new?\n\tbeq,a\t3f\t\t\t\t! yes, do the store\n\t st\t%o2, [%o0]\t\t\t! (in the delay slot)\n\n3:\tRELEASE_INTERLOCK\n\n\tretl\n\t mov\t%o3, %o0\t\t\t! return old value\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)\nSTRONG_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/atomic_cas.S", "line_start": 121, "line_end": 159}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/atomic_cas_up.S:1", "text": "/*\t$NetBSD: atomic_cas_up.S,v 1.3 2022/04/06 22:47:56 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2012 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/ras.h>\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_cas_up)\n\t.hidden\t_C_LABEL(_atomic_cas_up)\nRAS_START_ASM_HIDDEN(_atomic_cas)\n\tld\t[%o0], %o3\t\t\t! get old value\n\tcmp\t%o1, %o3\t\t\t! old == new?\n\tbeq,a\t1f\t\t\t\t! yes, do the store\n\t st\t%o2, [%o0]\t\t\t! (in the delay slot)\nRAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tretl\n\t mov\t%o3, %o0\t\t\t! return old value\n\nENTRY(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tlduh\t[%o0], %o3\t\t\t! get old value\n\tcmp\t%o1, %o3\t\t\t! old == new?\n\tbeq,a\t1f\t\t\t\t! yes, do the store\n\t sth\t%o2, [%o0]\t\t\t! (in the delay slot)\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\n\tretl\n\t mov\t%o3, %o0\t\t\t! return old value\n\nENTRY(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)\nRAS_START_ASM_HIDDEN(_atomic_cas_8)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/atomic_cas_up.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/atomic_cas_up.S:2", "text": "RAS_END_ASM_HIDDEN(_atomic_cas)\n1:\n\tretl\n\t mov\t%o3, %o0\t\t\t! return old value\n\nENTRY(_atomic_cas_16_up)\n\t.hidden\t_C_LABEL(_atomic_cas_16_up)\nRAS_START_ASM_HIDDEN(_atomic_cas_16)\n\tlduh\t[%o0], %o3\t\t\t! get old value\n\tcmp\t%o1, %o3\t\t\t! old == new?\n\tbeq,a\t1f\t\t\t\t! yes, do the store\n\t sth\t%o2, [%o0]\t\t\t! (in the delay slot)\nRAS_END_ASM_HIDDEN(_atomic_cas_16)\n1:\n\tretl\n\t mov\t%o3, %o0\t\t\t! return old value\n\nENTRY(_atomic_cas_8_up)\n\t.hidden\t_C_LABEL(_atomic_cas_8_up)\nRAS_START_ASM_HIDDEN(_atomic_cas_8)\n\tldub\t[%o0], %o3\t\t\t! get old value\n\tcmp\t%o1, %o3\t\t\t! old == new?\n\tbeq,a\t1f\t\t\t\t! yes, do the store\n\t stb\t%o2, [%o0]\t\t\t! (in the delay slot)\nRAS_END_ASM_HIDDEN(_atomic_cas_8)\n1:\n\tretl\n\t mov\t%o3, %o0\t\t\t! return old value", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/atomic_cas_up.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/atomic_cas_up.S", "line_start": 41, "line_end": 68}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/membar_ops.S:2", "text": "* These assume Total Store Order (TSO), which may reorder\n * store-before-load but nothing else.  Hence, only membar_sync (and\n * its deprecated alias membar_enter) must issue anything --\n * specifically, an LDSTUB, which (along with SWAP) is the only\n * instruction that implies a sequential consistency barrier.  (SWAP is\n * not available in sparcv7, and maybe not all sparcv8, so we use\n * LDSTUB here.)\n *\n * If we ran with Partial Store Order (PSO), we would also need to\n * issue STBAR for membar_release (load/store-before-store) and\n * membar_producer (store-before-store).\n *\n * Sync membar_sync with paravirt_membar_sync in\n * sys/arch/sparc/sparc/locore.s.\n */\n\nENTRY(_membar_acquire)\n\tretl\n\t nop\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nENTRY(_membar_release)\n\tretl\n\t nop\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nENTRY(_membar_sync)\n\tretl\n#if !defined(_KERNEL) || defined(MULTIPROCESSOR)\n\t ldstub\t[%sp - 4], %g0\n#else\n\t nop\n#endif\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/atomic/membar_ops.S", "line_start": 41, "line_end": 86}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/atomic/membar_ops.S:2", "text": "* These assume Total Store Order (TSO), which may reorder\n * store-before-load but nothing else.  Hence, only membar_sync (and\n * its deprecated alias membar_enter) must issue anything --\n * specifically, an LDSTUB, which (along with SWAP) is the only\n * instruction that implies a sequential consistency barrier.\n *\n * If we ran with Partial Store Order (PSO), we would also need to\n * issue STBAR for membar_release (load/store-before-store) and\n * membar_producer (store-before-store).\n */\n\nENTRY(_membar_acquire)\n\tretl\n\t nop\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nENTRY(_membar_release)\n\tretl\n\t nop\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nENTRY(_membar_sync)\n\tretl\n#if !defined(_KERNEL) || defined(MULTIPROCESSOR)\n\t ldstub\t[%sp - 4], %g0\n#else\n\t nop\n#endif\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/sparc/atomic/membar_ops.S", "line_start": 41, "line_end": 81}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/mul.S:2", "text": ".asciz \"@(#)mul.s\t8.1 (Berkeley) 6/4/93\"\n#else\n\tRCSID(\"$NetBSD: mul.S,v 1.1 2005/12/20 19:28:50 christos Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/*\n * Signed multiply, from Appendix E of the Sparc Version 8\n * Architecture Manual.\n *\n * Returns %o0 * %o1 in %o1%o0 (i.e., %o1 holds the upper 32 bits of\n * the 64-bit product).\n *\n * This code optimizes short (less than 13-bit) multiplies.\n */\n\nFUNC(.mul)\n\tmov\t%o0, %y\t\t! multiplier -> Y\n\tandncc\t%o0, 0xfff, %g0\t! test bits 12..31\n\tbe\tLmul_shortway\t! if zero, can do it the short way\n\tandcc\t%g0, %g0, %o4\t! zero the partial product and clear N and V\n\n\t/*\n\t * Long multiply.  32 steps, followed by a final shift step.\n\t */\n\tmulscc\t%o4, %o1, %o4\t! 1\n\tmulscc\t%o4, %o1, %o4\t! 2\n\tmulscc\t%o4, %o1, %o4\t! 3\n\tmulscc\t%o4, %o1, %o4\t! 4\n\tmulscc\t%o4, %o1, %o4\t! 5\n\tmulscc\t%o4, %o1, %o4\t! 6\n\tmulscc\t%o4, %o1, %o4\t! 7\n\tmulscc\t%o4, %o1, %o4\t! 8\n\tmulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %o1, %o4\t! 13\n\tmulscc\t%o4, %o1, %o4\t! 14\n\tmulscc\t%o4, %o1, %o4\t! 15\n\tmulscc\t%o4, %o1, %o4\t! 16\n\tmulscc\t%o4, %o1, %o4\t! 17\n\tmulscc\t%o4, %o1, %o4\t! 18\n\tmulscc\t%o4, %o1, %o4\t! 19\n\tmulscc\t%o4, %o1, %o4\t! 20\n\tmulscc\t%o4, %o1, %o4\t! 21\n\tmulscc\t%o4, %o1, %o4\t! 22\n\tmulscc\t%o4, %o1, %o4\t! 23\n\tmulscc\t%o4, %o1, %o4\t! 24\n\tmulscc\t%o4, %o1, %o4\t! 25\n\tmulscc\t%o4, %o1, %o4\t! 26\n\tmulscc\t%o4, %o1, %o4\t! 27\n\tmulscc\t%o4, %o1, %o4\t! 28\n\tmulscc\t%o4, %o1, %o4\t! 29\n\tmulscc\t%o4, %o1, %o4\t! 30\n\tmulscc\t%o4, %o1, %o4\t! 31\n\tmulscc\t%o4, %o1, %o4\t! 32\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\t! If %o0 was negative, the result is", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/mul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/mul.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/mul.S:3", "text": "mulscc\t%o4, %o1, %o4\t! 16\n\tmulscc\t%o4, %o1, %o4\t! 17\n\tmulscc\t%o4, %o1, %o4\t! 18\n\tmulscc\t%o4, %o1, %o4\t! 19\n\tmulscc\t%o4, %o1, %o4\t! 20\n\tmulscc\t%o4, %o1, %o4\t! 21\n\tmulscc\t%o4, %o1, %o4\t! 22\n\tmulscc\t%o4, %o1, %o4\t! 23\n\tmulscc\t%o4, %o1, %o4\t! 24\n\tmulscc\t%o4, %o1, %o4\t! 25\n\tmulscc\t%o4, %o1, %o4\t! 26\n\tmulscc\t%o4, %o1, %o4\t! 27\n\tmulscc\t%o4, %o1, %o4\t! 28\n\tmulscc\t%o4, %o1, %o4\t! 29\n\tmulscc\t%o4, %o1, %o4\t! 30\n\tmulscc\t%o4, %o1, %o4\t! 31\n\tmulscc\t%o4, %o1, %o4\t! 32\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\t! If %o0 was negative, the result is\n\t!\t(%o0 * %o1) + (%o1 << 32))\n\t! We fix that here.\n\n\ttst\t%o0\n\tbge\t1f\n\trd\t%y, %o0\n\n\t! %o0 was indeed negative; fix upper 32 bits of result by subtracting\n\t! %o1 (i.e., return %o4 - %o1 in %o1).\n\tretl\n\tsub\t%o4, %o1, %o1\n\n1:\n\tretl\n\tmov\t%o4, %o1\n\nLmul_shortway:\n\t/*\n\t * Short multiply.  12 steps, followed by a final shift step.\n\t * The resulting bits are off by 12 and (32-12) = 20 bit positions,\n\t * but there is no problem with %o0 being negative (unlike above).\n\t */\n\tmulscc\t%o4, %o1, %o4\t! 1\n\tmulscc\t%o4, %o1, %o4\t! 2\n\tmulscc\t%o4, %o1, %o4\t! 3\n\tmulscc\t%o4, %o1, %o4\t! 4\n\tmulscc\t%o4, %o1, %o4\t! 5\n\tmulscc\t%o4, %o1, %o4\t! 6\n\tmulscc\t%o4, %o1, %o4\t! 7\n\tmulscc\t%o4, %o1, %o4\t! 8\n\tmulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\t/*\n\t *  %o4 has 20 of the bits that should be in the low part of the\n\t * result; %y has the bottom 12 (as %y's top 12).  That is:\n\t *", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/mul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/mul.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/mul.S:4", "text": "* but there is no problem with %o0 being negative (unlike above).\n\t */\n\tmulscc\t%o4, %o1, %o4\t! 1\n\tmulscc\t%o4, %o1, %o4\t! 2\n\tmulscc\t%o4, %o1, %o4\t! 3\n\tmulscc\t%o4, %o1, %o4\t! 4\n\tmulscc\t%o4, %o1, %o4\t! 5\n\tmulscc\t%o4, %o1, %o4\t! 6\n\tmulscc\t%o4, %o1, %o4\t! 7\n\tmulscc\t%o4, %o1, %o4\t! 8\n\tmulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\t/*\n\t *  %o4 has 20 of the bits that should be in the low part of the\n\t * result; %y has the bottom 12 (as %y's top 12).  That is:\n\t *\n\t *\t  %o4\t\t    %y\n\t * +----------------+----------------+\n\t * | -12- |   -20-  | -12- |   -20-  |\n\t * +------(---------+------)---------+\n\t *  --hi-- ----low-part----\n\t *\n\t * The upper 12 bits of %o4 should be sign-extended to form the\n\t * high part of the product (i.e., highpart = %o4 >> 20).\n\t */\n\n\trd\t%y, %o5\n\tsll\t%o4, 12, %o0\t! shift middle bits left 12\n\tsrl\t%o5, 20, %o5\t! shift low bits right 20, zero fill at left\n\tor\t%o5, %o0, %o0\t! construct low part of result\n\tretl\n\tsra\t%o4, 20, %o1\t! ... and extract high part of result", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/mul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/mul.S", "line_start": 121, "line_end": 156}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/umul.S:2", "text": ".asciz \"@(#)umul.s\t8.1 (Berkeley) 6/4/93\"\n#else\n\tRCSID(\"$NetBSD: umul.S,v 1.1 2005/12/20 19:28:50 christos Exp $\")\n#endif\n#endif /* LIBC_SCCS and not lint */\n\n/*\n * Unsigned multiply.  Returns %o0 * %o1 in %o1%o0 (i.e., %o1 holds the\n * upper 32 bits of the 64-bit product).\n *\n * This code optimizes short (less than 13-bit) multiplies.  Short\n * multiplies require 25 instruction cycles, and long ones require\n * 45 instruction cycles.\n *\n * On return, overflow has occurred (%o1 is not zero) if and only if\n * the Z condition code is clear, allowing, e.g., the following:\n *\n *\tcall\t.umul\n *\tnop\n *\tbnz\toverflow\t(or tnz)\n */\n\nFUNC(.umul)\n\tor\t%o0, %o1, %o4\n\tmov\t%o0, %y\t\t! multiplier -> Y\n\tandncc\t%o4, 0xfff, %g0\t! test bits 12..31 of *both* args\n\tbe\tLmul_shortway\t! if zero, can do it the short way\n\tandcc\t%g0, %g0, %o4\t! zero the partial product and clear N and V\n\n\t/*\n\t * Long multiply.  32 steps, followed by a final shift step.\n\t */\n\tmulscc\t%o4, %o1, %o4\t! 1\n\tmulscc\t%o4, %o1, %o4\t! 2\n\tmulscc\t%o4, %o1, %o4\t! 3\n\tmulscc\t%o4, %o1, %o4\t! 4\n\tmulscc\t%o4, %o1, %o4\t! 5\n\tmulscc\t%o4, %o1, %o4\t! 6\n\tmulscc\t%o4, %o1, %o4\t! 7\n\tmulscc\t%o4, %o1, %o4\t! 8\n\tmulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %o1, %o4\t! 13\n\tmulscc\t%o4, %o1, %o4\t! 14\n\tmulscc\t%o4, %o1, %o4\t! 15\n\tmulscc\t%o4, %o1, %o4\t! 16\n\tmulscc\t%o4, %o1, %o4\t! 17\n\tmulscc\t%o4, %o1, %o4\t! 18\n\tmulscc\t%o4, %o1, %o4\t! 19\n\tmulscc\t%o4, %o1, %o4\t! 20\n\tmulscc\t%o4, %o1, %o4\t! 21\n\tmulscc\t%o4, %o1, %o4\t! 22\n\tmulscc\t%o4, %o1, %o4\t! 23\n\tmulscc\t%o4, %o1, %o4\t! 24\n\tmulscc\t%o4, %o1, %o4\t! 25\n\tmulscc\t%o4, %o1, %o4\t! 26\n\tmulscc\t%o4, %o1, %o4\t! 27\n\tmulscc\t%o4, %o1, %o4\t! 28", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/umul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/umul.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/umul.S:3", "text": "mulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %o1, %o4\t! 13\n\tmulscc\t%o4, %o1, %o4\t! 14\n\tmulscc\t%o4, %o1, %o4\t! 15\n\tmulscc\t%o4, %o1, %o4\t! 16\n\tmulscc\t%o4, %o1, %o4\t! 17\n\tmulscc\t%o4, %o1, %o4\t! 18\n\tmulscc\t%o4, %o1, %o4\t! 19\n\tmulscc\t%o4, %o1, %o4\t! 20\n\tmulscc\t%o4, %o1, %o4\t! 21\n\tmulscc\t%o4, %o1, %o4\t! 22\n\tmulscc\t%o4, %o1, %o4\t! 23\n\tmulscc\t%o4, %o1, %o4\t! 24\n\tmulscc\t%o4, %o1, %o4\t! 25\n\tmulscc\t%o4, %o1, %o4\t! 26\n\tmulscc\t%o4, %o1, %o4\t! 27\n\tmulscc\t%o4, %o1, %o4\t! 28\n\tmulscc\t%o4, %o1, %o4\t! 29\n\tmulscc\t%o4, %o1, %o4\t! 30\n\tmulscc\t%o4, %o1, %o4\t! 31\n\tmulscc\t%o4, %o1, %o4\t! 32\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\n\t/*\n\t * Normally, with the shift-and-add approach, if both numbers are\n\t * positive you get the correct result.  WIth 32-bit two's-complement\n\t * numbers, -x is represented as\n\t *\n\t *\t\t  x\t\t    32\n\t *\t( 2  -  ------ ) mod 2  *  2\n\t *\t\t   32\n\t *\t\t  2\n\t *\n\t * (the `mod 2' subtracts 1 from 1.bbbb).  To avoid lots of 2^32s,\n\t * we can treat this as if the radix point were just to the left\n\t * of the sign bit (multiply by 2^32), and get\n\t *\n\t *\t-x  =  (2 - x) mod 2\n\t *\n\t * Then, ignoring the `mod 2's for convenience:\n\t *\n\t *   x *  y\t= xy\n\t *  -x *  y\t= 2y - xy\n\t *   x * -y\t= 2x - xy\n\t *  -x * -y\t= 4 - 2x - 2y + xy\n\t *\n\t * For signed multiplies, we subtract (x << 32) from the partial\n\t * product to fix this problem for negative multipliers (see mul.s).\n\t * Because of the way the shift into the partial product is calculated\n\t * (N xor V), this term is automatically removed for the multiplicand,\n\t * so we don't have to adjust.\n\t *\n\t * But for unsigned multiplies, the high order bit wasn't a sign bit,\n\t * and the correction is wrong.  So for unsigned multiplies where the\n\t * high order bit is one, we end up with xy - (y << 32).  To fix it\n\t * we add y << 32.", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/umul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/umul.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/umul.S:4", "text": "*\n\t *\t-x  =  (2 - x) mod 2\n\t *\n\t * Then, ignoring the `mod 2's for convenience:\n\t *\n\t *   x *  y\t= xy\n\t *  -x *  y\t= 2y - xy\n\t *   x * -y\t= 2x - xy\n\t *  -x * -y\t= 4 - 2x - 2y + xy\n\t *\n\t * For signed multiplies, we subtract (x << 32) from the partial\n\t * product to fix this problem for negative multipliers (see mul.s).\n\t * Because of the way the shift into the partial product is calculated\n\t * (N xor V), this term is automatically removed for the multiplicand,\n\t * so we don't have to adjust.\n\t *\n\t * But for unsigned multiplies, the high order bit wasn't a sign bit,\n\t * and the correction is wrong.  So for unsigned multiplies where the\n\t * high order bit is one, we end up with xy - (y << 32).  To fix it\n\t * we add y << 32.\n\t */\n\ttst\t%o1\n\tbl,a\t1f\t\t! if %o1 < 0 (high order bit = 1),\n\tadd\t%o4, %o0, %o4\t! %o4 += %o0 (add y to upper half)\n1:\trd\t%y, %o0\t\t! get lower half of product\n\tretl\n\taddcc\t%o4, %g0, %o1\t! put upper half in place and set Z for %o1==0\n\nLmul_shortway:\n\t/*\n\t * Short multiply.  12 steps, followed by a final shift step.\n\t * The resulting bits are off by 12 and (32-12) = 20 bit positions,\n\t * but there is no problem with %o0 being negative (unlike above),\n\t * and overflow is impossible (the answer is at most 24 bits long).\n\t */\n\tmulscc\t%o4, %o1, %o4\t! 1\n\tmulscc\t%o4, %o1, %o4\t! 2\n\tmulscc\t%o4, %o1, %o4\t! 3\n\tmulscc\t%o4, %o1, %o4\t! 4\n\tmulscc\t%o4, %o1, %o4\t! 5\n\tmulscc\t%o4, %o1, %o4\t! 6\n\tmulscc\t%o4, %o1, %o4\t! 7\n\tmulscc\t%o4, %o1, %o4\t! 8\n\tmulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\t/*\n\t * %o4 has 20 of the bits that should be in the result; %y has\n\t * the bottom 12 (as %y's top 12).  That is:\n\t *\n\t *\t  %o4\t\t    %y\n\t * +----------------+----------------+\n\t * | -12- |   -20-  | -12- |   -20-  |\n\t * +------(---------+------)---------+\n\t *\t   -----result-----\n\t *\n\t * The 12 bits of %o4 left of the `result' area are all zero;", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/umul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/umul.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/gen/umul.S:5", "text": "mulscc\t%o4, %o1, %o4\t! 6\n\tmulscc\t%o4, %o1, %o4\t! 7\n\tmulscc\t%o4, %o1, %o4\t! 8\n\tmulscc\t%o4, %o1, %o4\t! 9\n\tmulscc\t%o4, %o1, %o4\t! 10\n\tmulscc\t%o4, %o1, %o4\t! 11\n\tmulscc\t%o4, %o1, %o4\t! 12\n\tmulscc\t%o4, %g0, %o4\t! final shift\n\n\t/*\n\t * %o4 has 20 of the bits that should be in the result; %y has\n\t * the bottom 12 (as %y's top 12).  That is:\n\t *\n\t *\t  %o4\t\t    %y\n\t * +----------------+----------------+\n\t * | -12- |   -20-  | -12- |   -20-  |\n\t * +------(---------+------)---------+\n\t *\t   -----result-----\n\t *\n\t * The 12 bits of %o4 left of the `result' area are all zero;\n\t * in fact, all top 20 bits of %o4 are zero.\n\t */\n\n\trd\t%y, %o5\n\tsll\t%o4, 12, %o0\t! shift middle bits left 12\n\tsrl\t%o5, 20, %o5\t! shift low bits right 20\n\tor\t%o5, %o0, %o0\n\tretl\n\taddcc\t%g0, %g0, %o1\t! %o1 = zero, and set Z", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/gen/umul.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/gen/umul.S", "line_start": 161, "line_end": 189}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/string/bzero.S:2", "text": ".asciz \"@(#)bzero.s\t8.1 (Berkeley) 6/4/93\"\n#else\n\tRCSID(\"$NetBSD: bzero.S,v 1.1 2005/12/20 19:28:50 christos Exp $\")\n#endif\n#endif  /* LIBC_SCCS and not lint */\n\n/*\n * We should unroll the loop, but at the moment this would\n * gain nothing since the `std' instructions are what limits us.\n */\n\n#ifdef MEMSET\n/*\n * void *\n * memset(void *addr, int pattern, size_t len)\n */\nENTRY(memset)\n\t! %o0 = addr, %o1 = pattern, %o2 = len\n\t/*\n\t * Expand the byte pattern to fill 64 bits in an even-aligned\n\t * register pair; shuffle arguments to match those of bzero.\n\t */\n\tand\t%o1, 0xff, %o3\n\tmov\t%o2, %o1\t\t! shuffle argument\n\tsll\t%o3, 8, %o2\n\tor\t%o2, %o3, %o2\n\tmov\t%o0, %g1\t\t! save original pointer\n\tsll\t%o2, 16, %o3\n\tor\t%o2, %o3, %o2\n\t! Optimize a common case: addr and len are both multiples of 8.\n\tor\t%o0, %o1, %o5\n\tbtst\t7, %o5\t\t\t! ((addr | len) & 7) != 0?\n\tbnz\t1f\t\t\t! if so, cannot optimize\n\t mov\t%o2, %o3\t\t! in any case, complete pat expansion\n#else\n/*\n * void\n * bzero(void *addr, size_t len)\n */\nENTRY(bzero)\n\t! %o0 = addr, %o1 = len\n\n\tclr\t%o2\n\t! Optimize a common case: addr and len are both multiples of 8.\n\tor\t%o0, %o1, %o5\n\tbtst\t7, %o5\t\t\t! ((addr | len) & 7) != 0?\n\tbnz\t1f\t\t\t! if so, cannot optimize\n\t clr\t%o3\t\t\t! in any case, we want o3=0\n#endif\n\n\t/* `Good' operands, can just store doubles. */\n0:\n\tdeccc\t8, %o1\t\t\t! while ((len -= 8) >= 0)\n\tbge,a\t0b\n\t std\t%o2, [%o0 + %o1]\t!\t*(quad *)(addr + len) = 0;\n\tretl\n\t nop\n\n\t/*\n\t * Either the address is unaligned, or the count is not a", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/string/bzero.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/string/bzero.S:3", "text": "! %o0 = addr, %o1 = len\n\n\tclr\t%o2\n\t! Optimize a common case: addr and len are both multiples of 8.\n\tor\t%o0, %o1, %o5\n\tbtst\t7, %o5\t\t\t! ((addr | len) & 7) != 0?\n\tbnz\t1f\t\t\t! if so, cannot optimize\n\t clr\t%o3\t\t\t! in any case, we want o3=0\n#endif\n\n\t/* `Good' operands, can just store doubles. */\n0:\n\tdeccc\t8, %o1\t\t\t! while ((len -= 8) >= 0)\n\tbge,a\t0b\n\t std\t%o2, [%o0 + %o1]\t!\t*(quad *)(addr + len) = 0;\n\tretl\n\t nop\n\n\t/*\n\t * Either the address is unaligned, or the count is not a\n\t * multiple of 8, or both.  We will have to align the address\n\t * in order to use anything `better' than stb.\n\t */\n1:\n\tcmp\t%o1, 15\t\t\t! len >= 15?\n\tbge,a\tLstd\t\t\t! yes, use std\n\t btst\t1, %o0\t\t\t! (but first check alignment)\n\n\t! not enough to bother: do byte-at-a-time loop.\n2:\n\tdeccc\t%o1\t\t\t! while (--len >= 0)\n\tbge,a\t2b\n\t stb\t%o2, [%o0 + %o1]\t!\taddr[len] = 0;\n\tretl\n\t nop\n\nLstd:\n\t/*\n\t * There are at least 15 bytes to zero.\n\t * We may have to zero some initial stuff to align\n\t * the address.\n\t */\n\tbz,a\t1f\t\t\t! if (addr & 1) {\n\t btst\t2, %o0\n\tstb\t%o2, [%o0]\t\t!\t*addr = 0;\n\tinc\t%o0\t\t\t!\taddr++;\n\tdec\t%o1\t\t\t!\tlen--;\n\tbtst\t2, %o0\t\t\t! }\n1:\n\tbz,a\t1f\t\t\t! if (addr & 2) {\n\t btst\t4, %o0\n\tsth\t%o2, [%o0]\t\t!\t*(short *)addr = 0;\n\tinc\t2, %o0\t\t\t!\taddr += 2;\n\tdec\t2, %o1\t\t\t!\tlen -= 2;\n\tbtst\t4, %o0\t\t\t! }\n1:\n\tbz\t1f\t\t\t! if (addr & 4) {\n\t dec\t8, %o1\n\tst\t%o2, [%o0]\t\t!\t*(int *)addr = 0;\n\tinc\t4, %o0\t\t\t!\taddr += 4;", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/string/bzero.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/string/bzero.S:4", "text": "* the address.\n\t */\n\tbz,a\t1f\t\t\t! if (addr & 1) {\n\t btst\t2, %o0\n\tstb\t%o2, [%o0]\t\t!\t*addr = 0;\n\tinc\t%o0\t\t\t!\taddr++;\n\tdec\t%o1\t\t\t!\tlen--;\n\tbtst\t2, %o0\t\t\t! }\n1:\n\tbz,a\t1f\t\t\t! if (addr & 2) {\n\t btst\t4, %o0\n\tsth\t%o2, [%o0]\t\t!\t*(short *)addr = 0;\n\tinc\t2, %o0\t\t\t!\taddr += 2;\n\tdec\t2, %o1\t\t\t!\tlen -= 2;\n\tbtst\t4, %o0\t\t\t! }\n1:\n\tbz\t1f\t\t\t! if (addr & 4) {\n\t dec\t8, %o1\n\tst\t%o2, [%o0]\t\t!\t*(int *)addr = 0;\n\tinc\t4, %o0\t\t\t!\taddr += 4;\n\tdec\t4, %o1\t\t\t!\tlen -= 4;\n\t\t\t\t\t! }\n\t/*\n\t * Address is double word aligned; len is 8 less than\n\t * the number of bytes remaining (i.e., len is 0 if\n\t * the remaining count is 8, 1 if it is 9, etc.).\n\t */\n1:\n\tstd\t%o2, [%o0]\t\t! do {\n2:\t\t\t\t\t!\t*(quad *)addr = 0;\n\tinc\t8, %o0\t\t\t!\taddr += 8;\n\tdeccc\t8, %o1\t\t\t! } while ((len -= 8) >= 0);\n\t bge,a\t2b\n\tstd\t%o2, [%o0]\n\n\t/*\n\t * Len is in [-8..-1] where -8 => done, -7 => 1 byte to zero,\n\t * -6 => two bytes, etc.  Mop up this remainder, if any.\n\t */\n\tbtst\t4, %o1\n\tbz\t1f\t\t\t! if (len & 4) {\n\t btst\t2, %o1\n\tst\t%o2, [%o0]\t\t!\t*(int *)addr = 0;\n\tinc\t4, %o0\t\t\t!\taddr += 4;\n1:\n\tbz\t1f\t\t\t! if (len & 2) {\n\t btst\t1, %o1\n\tsth\t%o2, [%o0]\t\t!\t*(short *)addr = 0;\n\tinc\t2, %o0\t\t\t!\taddr += 2;\n1:\n\tbnz,a\t1f\t\t\t! if (len & 1)\n\t stb\t%o2, [%o0]\t\t!\t*addr = 0;\n1:\n\tretl\n#ifdef MEMSET\n\t mov\t%g1, %o0\t\t! restore original pointer\n#else\n\t nop\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/string/bzero.S", "line_start": 121, "line_end": 179}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/string/bzero.S:5", "text": "bz\t1f\t\t\t! if (len & 4) {\n\t btst\t2, %o1\n\tst\t%o2, [%o0]\t\t!\t*(int *)addr = 0;\n\tinc\t4, %o0\t\t\t!\taddr += 4;\n1:\n\tbz\t1f\t\t\t! if (len & 2) {\n\t btst\t1, %o1\n\tsth\t%o2, [%o0]\t\t!\t*(short *)addr = 0;\n\tinc\t2, %o0\t\t\t!\taddr += 2;\n1:\n\tbnz,a\t1f\t\t\t! if (len & 1)\n\t stb\t%o2, [%o0]\t\t!\t*addr = 0;\n1:\n\tretl\n#ifdef MEMSET\n\t mov\t%g1, %o0\t\t! restore original pointer\n#else\n\t nop\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/string/bzero.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/string/bzero.S", "line_start": 161, "line_end": 179}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/string/ffs.S:2", "text": ".asciz \"@(#)ffs.s\t8.1 (Berkeley) 6/4/93\"\n#else\n\tRCSID(\"$NetBSD: ffs.S,v 1.4 2013/09/12 15:36:14 joerg Exp $\")\n#endif\n#endif  /* LIBC_SCCS and not lint */\n\n/*\n * ffs returns the number of the rightmost bit set in its argument,\n * i.e., the lowest value such that (x & (ffs(x) - 1)) is nonzero.\n * If no bits are set, ffs returns 0.\n *\n * We use a table lookup on each byte.\n *\n * In each section below, %o1 is the current byte (0, 1, 2, or 3).\n * The last byte is handled specially: for the first three,\n * if that byte is nonzero, we return the table value\n * (plus 0, 8, or 16 for the byte number), but for the last\n * one, we just return the table value plus 24.  This means\n * that ffstab[0] must be -24 so that ffs(0) will return 0.\n */\nWEAK_ALIAS(__ffssi2,ffs)\nENTRY(ffs)\n#ifdef __PIC__\n\tPICCY_SET(ffstab, %o2, %o3)\n#else\n\tset\tffstab, %o2\n#endif\n\tandcc\t%o0, 0xff, %o1\t! get low byte\n\tbe,a\t1f\t\t! try again if 0\n\t srl\t%o0, 8, %o0\t! delay slot, get ready for next byte\n\n\tretl\t\t\t! return ffstab[%o1]\n\t ldsb\t[%o2 + %o1], %o0\n\n1:\n\tandcc\t%o0, 0xff, %o1\t! byte 1 like byte 0...\n\tbe,a\t2f\n\t srl\t%o0, 8, %o0\t! (use delay to prepare for byte 2)\n\n\tldsb\t[%o2 + %o1], %o0\n\tretl\t\t\t! return ffstab[%o1] + 8\n\t add\t%o0, 8, %o0\n\n2:\n\tandcc\t%o0, 0xff, %o1\n\tbe,a\t3f\n\t srl\t%o0, 8, %o0\t! (prepare for byte 3)\n\n\tldsb\t[%o2 + %o1], %o0\n\tretl\t\t\t! return ffstab[%o1] + 16\n\t add\t%o0, 16, %o0\n\n3:\t\t\t\t! just return ffstab[%o0] + 24\n\tldsb\t[%o2 + %o0], %o0\n\tretl\n\t add\t%o0, 24, %o0\n\nffstab:\n\t.byte\t-24,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 00-0f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-1f */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/string/ffs.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc/string/ffs.S:3", "text": "retl\t\t\t! return ffstab[%o1] + 8\n\t add\t%o0, 8, %o0\n\n2:\n\tandcc\t%o0, 0xff, %o1\n\tbe,a\t3f\n\t srl\t%o0, 8, %o0\t! (prepare for byte 3)\n\n\tldsb\t[%o2 + %o1], %o0\n\tretl\t\t\t! return ffstab[%o1] + 16\n\t add\t%o0, 16, %o0\n\n3:\t\t\t\t! just return ffstab[%o0] + 24\n\tldsb\t[%o2 + %o0], %o0\n\tretl\n\t add\t%o0, 24, %o0\n\nffstab:\n\t.byte\t-24,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 00-0f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-1f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 20-2f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 30-3f */\n\t.byte\t7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 40-4f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 50-5f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 60-6f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 70-7f */\n\t.byte\t8,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 80-8f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-9f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* a0-af */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* b0-bf */\n\t.byte\t7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* c0-cf */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* d0-df */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* e0-ef */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* f0-ff */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc/string/ffs.S", "line_start": 81, "line_end": 114}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \\\n\tatomic_inc.S atomic_or.S atomic_swap.S membar_ops.S\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_cas.c\n\n.endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/Makefile.inc", "line_start": 1, "line_end": 15}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_add.S:1", "text": "/*\t$NetBSD: atomic_add.S,v 1.8 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_add_32)\n\tld\t[%o0], %o2\n1:\tadd\t%o1, %o2, %o3\n\tcas\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t add\t%o1, %o2, %o0\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_32_nv,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32)\n\nENTRY(_atomic_add_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tadd\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_add.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_add.S:2", "text": "bne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t add\t%o1, %o2, %o0\nATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\n\nATOMIC_OP_ALIAS(atomic_add_32_nv,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_32_nv,_atomic_add_32)\nATOMIC_OP_ALIAS(atomic_add_int_nv,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32)\n\nENTRY(_atomic_add_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tadd\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl\n\t add\t%o1, %o2, %o0\n#else\n\tadd\t%o1, %o2, %o0\n\tSPLIT_RETL(%o0, %o0, %o1)\n#endif\nATOMIC_OP_ALIAS(atomic_add_64,_atomic_add_64)\n\nATOMIC_OP_ALIAS(atomic_add_64_nv,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_64_nv,_atomic_add_64)\n\nATOMIC_OP_ALIAS_SIZE(atomic_add_long,_atomic_add)\nSTRONG_ALIAS_SIZE(_atomic_add_long,_atomic_add)\nATOMIC_OP_ALIAS_SIZE(atomic_add_ptr,_atomic_add)\nSTRONG_ALIAS_SIZE(_atomic_add_ptr,_atomic_add)\n\nATOMIC_OP_ALIAS_SIZE(atomic_add_long_nv,_atomic_add)\nSTRONG_ALIAS_SIZE(_atomic_add_long_nv,_atomic_add)\nATOMIC_OP_ALIAS_SIZE(atomic_add_ptr_nv,_atomic_add)\nSTRONG_ALIAS_SIZE(_atomic_add_ptr_nv,_atomic_add)\n\n#if !defined(__arch64__) && defined(CRT_ALIAS)\nENTRY(__sync_fetch_and_add_8)\n\tCOMBINE(%o1, %o2, %o1)\n\tldx\t[%o0], %o2\n1:\tadd\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n\tSPLIT_RETL(%o2, %o0, %o1)\nCRT_ALIAS(__sync_add_and_fetch_8,_atomic_add_64_nv)\n\nCRT_ALIAS(__atomic_fetch_add_8,__sync_fetch_and_add_8)\nCRT_ALIAS(__atomic_add_fetch_8,__sync_add_and_fetch_8)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_add.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_add.S:3", "text": "ATOMIC_OP_ALIAS_SIZE(atomic_add_long_nv,_atomic_add)\nSTRONG_ALIAS_SIZE(_atomic_add_long_nv,_atomic_add)\nATOMIC_OP_ALIAS_SIZE(atomic_add_ptr_nv,_atomic_add)\nSTRONG_ALIAS_SIZE(_atomic_add_ptr_nv,_atomic_add)\n\n#if !defined(__arch64__) && defined(CRT_ALIAS)\nENTRY(__sync_fetch_and_add_8)\n\tCOMBINE(%o1, %o2, %o1)\n\tldx\t[%o0], %o2\n1:\tadd\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n\tSPLIT_RETL(%o2, %o0, %o1)\nCRT_ALIAS(__sync_add_and_fetch_8,_atomic_add_64_nv)\n\nCRT_ALIAS(__atomic_fetch_add_8,__sync_fetch_and_add_8)\nCRT_ALIAS(__atomic_add_fetch_8,__sync_add_and_fetch_8)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_add.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_add.S", "line_start": 81, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_and.S:1", "text": "/*\t$NetBSD: atomic_and.S,v 1.8 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_and_32)\n\tld\t[%o0], %o2\n1:\tand\t%o1, %o2, %o3\n\tcas\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t and\t%o1, %o2, %o0\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_32_nv,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32)\n\nENTRY(_atomic_and_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tand\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_and.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_and.S:2", "text": "bne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t and\t%o1, %o2, %o0\nATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\n\nATOMIC_OP_ALIAS(atomic_and_32_nv,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_32_nv,_atomic_and_32)\nATOMIC_OP_ALIAS(atomic_and_uint_nv,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32)\n\nENTRY(_atomic_and_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tand\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl\n\t and\t%o1, %o2, %o0\n#else\n\tand\t%o1, %o2, %o0\n\tSPLIT_RETL(%o0, %o0, %o1)\n#endif\nATOMIC_OP_ALIAS(atomic_and_64,_atomic_and_64)\n\nATOMIC_OP_ALIAS(atomic_and_64_nv,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_64_nv,_atomic_and_64)\n\nATOMIC_OP_ALIAS_SIZE(atomic_and_ulong,_atomic_and)\nSTRONG_ALIAS_SIZE(_atomic_and_ulong,_atomic_and)\n\nATOMIC_OP_ALIAS_SIZE(atomic_and_ulong_nv,_atomic_and)\nSTRONG_ALIAS_SIZE(_atomic_and_ulong_nv,_atomic_and)\n\n#if !defined(__arch64__) && defined(CRT_ALIAS)\nENTRY(__sync_fetch_and_and_8)\n\tCOMBINE(%o1, %o2, %o1)\n\tldx\t[%o0], %o2\n1:\tand\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n\tSPLIT_RETL(%o2, %o0, %o1)\nCRT_ALIAS(__sync_and_and_fetch_8,_atomic_and_64_nv)\n\nCRT_ALIAS(__atomic_fetch_and_8,__sync_fetch_and_and_8)\nCRT_ALIAS(__atomic_and_fetch_8,__sync_and_and_fetch_8)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_and.S", "line_start": 41, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_and.S:3", "text": "#if !defined(__arch64__) && defined(CRT_ALIAS)\nENTRY(__sync_fetch_and_and_8)\n\tCOMBINE(%o1, %o2, %o1)\n\tldx\t[%o0], %o2\n1:\tand\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n\tSPLIT_RETL(%o2, %o0, %o1)\nCRT_ALIAS(__sync_and_and_fetch_8,_atomic_and_64_nv)\n\nCRT_ALIAS(__atomic_fetch_and_8,__sync_fetch_and_and_8)\nCRT_ALIAS(__atomic_and_fetch_8,__sync_and_and_fetch_8)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_and.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_and.S", "line_start": 81, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_cas.S:1", "text": "/*\t$NetBSD: atomic_cas.S,v 1.8 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_cas_32)\n\tcas\t[%o0], %o1, %o2\n\tretl\n\t mov\t%o2, %o0\n\nATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\nENTRY(_atomic_cas_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n\tCOMBINE(%o3, %o4, %o2)\n#endif\n\tcasx\t[%o0], %o1, %o2\n#ifdef __arch64__\n\tretl\n\t mov\t%o2, %o0\n#else\n\tSPLIT_RETL(%o2, %o0, %o1)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_cas.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_cas.S:2", "text": "ATOMIC_OP_ALIAS(atomic_cas_32,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\n\nATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)\nATOMIC_OP_ALIAS(atomic_cas_uint_ni,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32)\n\nENTRY(_atomic_cas_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n\tCOMBINE(%o3, %o4, %o2)\n#endif\n\tcasx\t[%o0], %o1, %o2\n#ifdef __arch64__\n\tretl\n\t mov\t%o2, %o0\n#else\n\tSPLIT_RETL(%o2, %o0, %o1)\n#endif\n\nATOMIC_OP_ALIAS(atomic_cas_64,_atomic_cas_64)\nATOMIC_OP_ALIAS_SIZE(atomic_cas_ulong,_atomic_cas)\nSTRONG_ALIAS_SIZE(_atomic_cas_ulong,_atomic_cas)\nATOMIC_OP_ALIAS_SIZE(atomic_cas_ptr,_atomic_cas)\nSTRONG_ALIAS_SIZE(_atomic_cas_ptr,_atomic_cas)\n\nATOMIC_OP_ALIAS(atomic_cas_64_ni,_atomic_cas_64)\nSTRONG_ALIAS_SIZE(_atomic_cas_64_ni,_atomic_cas)\nATOMIC_OP_ALIAS_SIZE(atomic_cas_ulong_ni,_atomic_cas)\nSTRONG_ALIAS_SIZE(_atomic_cas_ulong_ni,_atomic_cas)\nATOMIC_OP_ALIAS_SIZE(atomic_cas_ptr_ni,_atomic_cas)\nSTRONG_ALIAS_SIZE(_atomic_cas_ptr_ni,_atomic_cas)\n\n#if !defined(__arch64__) && defined(CRT_ALIAS)\nCRT_ALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_cas.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_cas.S", "line_start": 41, "line_end": 78}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_dec.S:1", "text": "/*\t$NetBSD: atomic_dec.S,v 1.9 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_dec_32)\n\tld\t[%o0], %o2\n1:\tadd\t%o2, -1, %o3\n\tcas\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t add\t%o2, -1, %o0\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_32_nv,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32)\n\nENTRY(_atomic_dec_64)\n\tldx\t[%o0], %o2\n1:\tadd\t%o2, -1, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_dec.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_dec.S:2", "text": "bne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t add\t%o2, -1, %o0\nATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\n\nATOMIC_OP_ALIAS(atomic_dec_32_nv,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_32_nv,_atomic_dec_32)\nATOMIC_OP_ALIAS(atomic_dec_uint_nv,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32)\n\nENTRY(_atomic_dec_64)\n\tldx\t[%o0], %o2\n1:\tadd\t%o2, -1, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl\n\t add\t%o2, -1, %o0\n#else\n\tadd\t%o2, -1, %o0\n\tSPLIT_RETL(%o0, %o0, %o1)\n#endif\nATOMIC_OP_ALIAS(atomic_dec_64,_atomic_dec_64)\n\nATOMIC_OP_ALIAS(atomic_dec_64_nv,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_64_nv,_atomic_dec_64)\n\nATOMIC_OP_ALIAS_SIZE(atomic_dec_ulong,_atomic_dec)\nSTRONG_ALIAS_SIZE(_atomic_dec_ulong,_atomic_dec)\nATOMIC_OP_ALIAS_SIZE(atomic_dec_ptr,_atomic_dec)\nSTRONG_ALIAS_SIZE(_atomic_dec_ptr,_atomic_dec)\n\nATOMIC_OP_ALIAS_SIZE(atomic_dec_ulong_nv,_atomic_dec)\nSTRONG_ALIAS_SIZE(_atomic_dec_ulong_nv,_atomic_dec)\nATOMIC_OP_ALIAS_SIZE(atomic_dec_ptr_nv,_atomic_dec)\nSTRONG_ALIAS_SIZE(_atomic_dec_ptr_nv,_atomic_dec)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_dec.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_dec.S", "line_start": 41, "line_end": 81}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_inc.S:1", "text": "/*\t$NetBSD: atomic_inc.S,v 1.8 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_inc_32)\n\tld\t[%o0], %o2\n1:\tadd\t%o2, 1, %o3\n\tcas\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t add\t%o2, 1, %o0\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_32_nv,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32)\n\nENTRY(_atomic_inc_64)\n\tldx\t[%o0], %o2\n1:\tadd\t%o2, 1, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_inc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_inc.S:2", "text": "bne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t add\t%o2, 1, %o0\nATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\n\nATOMIC_OP_ALIAS(atomic_inc_32_nv,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_32_nv,_atomic_inc_32)\nATOMIC_OP_ALIAS(atomic_inc_uint_nv,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32)\n\nENTRY(_atomic_inc_64)\n\tldx\t[%o0], %o2\n1:\tadd\t%o2, 1, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl\n\t add\t%o2, 1, %o0\n#else\n\tadd\t%o2, 1, %o0\n\tSPLIT_RETL(%o0, %o0, %o1)\n#endif\nATOMIC_OP_ALIAS(atomic_inc_64,_atomic_inc_64)\n\nATOMIC_OP_ALIAS(atomic_inc_64_nv,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_64_nv,_atomic_inc_64)\n\nATOMIC_OP_ALIAS_SIZE(atomic_inc_ulong,_atomic_inc)\nSTRONG_ALIAS_SIZE(_atomic_inc_ulong,_atomic_inc)\nATOMIC_OP_ALIAS_SIZE(atomic_inc_ptr,_atomic_inc)\nSTRONG_ALIAS_SIZE(_atomic_inc_ptr,_atomic_inc)\n\nATOMIC_OP_ALIAS_SIZE(atomic_inc_ulong_nv,_atomic_inc)\nSTRONG_ALIAS_SIZE(_atomic_inc_ulong_nv,_atomic_inc)\nATOMIC_OP_ALIAS_SIZE(atomic_inc_ptr_nv,_atomic_inc)\nSTRONG_ALIAS_SIZE(_atomic_inc_ptr_nv,_atomic_inc)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_inc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_inc.S", "line_start": 41, "line_end": 81}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_or.S:1", "text": "/*\t$NetBSD: atomic_or.S,v 1.9 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_or_32)\n\tld\t[%o0], %o2\n1:\tor\t%o1, %o2, %o3\n\tcas\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t or\t%o1, %o2, %o0\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_32_nv,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32)\n\nENTRY(_atomic_or_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tor\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_or.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_or.S:2", "text": "bne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t or\t%o1, %o2, %o0\nATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\n\nATOMIC_OP_ALIAS(atomic_or_32_nv,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_32_nv,_atomic_or_32)\nATOMIC_OP_ALIAS(atomic_or_uint_nv,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32)\n\nENTRY(_atomic_or_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tor\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl\n\t or\t%o1, %o2, %o0\n#else\n\tor\t%o1, %o2, %o0\n\tSPLIT_RETL(%o0, %o0, %o1)\n#endif\nATOMIC_OP_ALIAS(atomic_or_64,_atomic_or_64)\n\nATOMIC_OP_ALIAS(atomic_or_64_nv,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_64_nv,_atomic_or_64)\n\nATOMIC_OP_ALIAS_SIZE(atomic_or_ulong,_atomic_or)\nSTRONG_ALIAS_SIZE(_atomic_or_ulong,_atomic_or)\n\nATOMIC_OP_ALIAS_SIZE(atomic_or_ulong_nv,_atomic_or)\nSTRONG_ALIAS_SIZE(_atomic_or_ulong_nv,_atomic_or)\n\n#if !defined(__arch64__) && defined(CRT_ALIAS)\nENTRY(__sync_fetch_and_or_8)\n\tCOMBINE(%o1, %o2, %o1)\n\tldx\t[%o0], %o2\n1:\tor\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n\tSPLIT_RETL(%o2, %o0, %o1)\nCRT_ALIAS(__sync_or_and_fetch_8,_atomic_or_64_nv)\n\nCRT_ALIAS(__atomic_fetch_or_8,__sync_fetch_and_or_8)\nCRT_ALIAS(__atomic_or_fetch_8,__sync_or_and_fetch_8)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_or.S", "line_start": 41, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_or.S:3", "text": "#if !defined(__arch64__) && defined(CRT_ALIAS)\nENTRY(__sync_fetch_and_or_8)\n\tCOMBINE(%o1, %o2, %o1)\n\tldx\t[%o0], %o2\n1:\tor\t%o1, %o2, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n\tSPLIT_RETL(%o2, %o0, %o1)\nCRT_ALIAS(__sync_or_and_fetch_8,_atomic_or_64_nv)\n\nCRT_ALIAS(__atomic_fetch_or_8,__sync_fetch_and_or_8)\nCRT_ALIAS(__atomic_or_fetch_8,__sync_or_and_fetch_8)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_or.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_or.S", "line_start": 81, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_swap.S:1", "text": "/*\t$NetBSD: atomic_swap.S,v 1.8 2022/04/06 22:47:57 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include \"atomic_op_asm.h\"\n\n\t.text\n\nENTRY(_atomic_swap_32)\n\tld\t[%o0], %o2\n1:\tmov\t%o1, %o3\n\tcas\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t mov\t%o3, %o0\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\nENTRY(_atomic_swap_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tmov\t%o1, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_swap.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/atomic_swap.S:2", "text": "bne,a,pn %icc, 1b\n\t mov\t%o3, %o2\n\tretl\n\t mov\t%o3, %o0\nATOMIC_OP_ALIAS(atomic_swap_32,_atomic_swap_32)\nATOMIC_OP_ALIAS(atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\n\nENTRY(_atomic_swap_64)\n#ifndef __arch64__\n\tCOMBINE(%o1, %o2, %o1)\n#endif\n\tldx\t[%o0], %o2\n1:\tmov\t%o1, %o3\n\tcasx\t[%o0], %o2, %o3\n\tcmp\t%o2, %o3\n\tbne,a,pn %xcc, 1b\n\t mov\t%o3, %o2\n#ifdef __arch64__\n\tretl\n\t mov\t%o3, %o0\n#else\n\tSPLIT_RETL(%o3, %o0, %o1)\n#endif\nATOMIC_OP_ALIAS(atomic_swap_64,_atomic_swap_64)\n\nATOMIC_OP_ALIAS_SIZE(atomic_swap_ulong,_atomic_swap)\nSTRONG_ALIAS_SIZE(_atomic_swap_ulong,_atomic_swap)\nATOMIC_OP_ALIAS_SIZE(atomic_swap_ptr,_atomic_swap)\nSTRONG_ALIAS_SIZE(_atomic_swap_ptr,_atomic_swap)\n\n#if !defined(__arch64__) && defined(CRT_ALIAS)\nCRT_ALIAS(__sync_lock_test_and_set_8,_atomic_swap_64)\nCRT_ALIAS(__atomic_exchange_8,_atomic_swap_64)\n#endif", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/atomic_swap.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/atomic_swap.S", "line_start": 41, "line_end": 75}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/membar_ops.S:2", "text": "*\n * If we ran with Partial Store Order (PSO), we would also need to\n * issue membar #StoreStore for membar_exit (load/store-before-store)\n * and membar_producer (store-before-store).\n */\n\nENTRY(_membar_acquire)\n\tretl\n\t nop\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nENTRY(_membar_release)\n\tretl\n\t nop\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * Some SPARC CPUs have errata with MEMBAR in the delay slot of\n\t * a branch, such as the UltraSPARC-IIi:\n\t *\n\t *\t`Apparently, the deadlock is most easily caused if the\n\t *\t delay slot of the JMPL is a MEMBAR #Sync, or any\n\t *\t instruction that synchronizes on the load or store\n\t *\t buffers being empty.'\n\t *\n\t *\tUltraSPARC-IIi User's Manual, Part No. 805-0087-01, Sun\n\t *\tMicrosystems, October 1997, Appendix K.2 `Errata\n\t *\tCreated by UltraSPARC-I', Erratum 51, p. 476.\n\t *\thttps://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-2i-usersmanual-2516677.pdf#page=518\n\t *\n\t * So let's avoid doing that.\n\t *\n\t * Sync with paravirt_membar_sync in\n\t * sys/arch/sparc64/sparc64/locore.s.\n\t */\n\tmembar\t#StoreLoad\n\tretl\n\t nop\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/membar_ops.S", "line_start": 41, "line_end": 92}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/membar_ops.S:3", "text": "nop\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/atomic/membar_ops.S", "line_start": 81, "line_end": 92}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/atomic/membar_ops.S:2", "text": "*\n * If we ran with Partial Store Order (PSO), we would also need to\n * issue membar #StoreStore for membar_exit (load/store-before-store)\n * and membar_producer (store-before-store).\n */\n\nENTRY(_membar_acquire)\n\tretl\n\t nop\nEND(_membar_acquire)\nATOMIC_OP_ALIAS(membar_acquire,_membar_acquire)\n\nENTRY(_membar_release)\n\tretl\n\t nop\nEND(_membar_release)\nATOMIC_OP_ALIAS(membar_release,_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * Some SPARC CPUs have errata with MEMBAR in the delay slot of\n\t * a branch, such as the UltraSPARC-IIi:\n\t *\n\t *\t`Apparently, the deadlock is most easily caused if the\n\t *\t delay slot of the JMPL is a MEMBAR #Sync, or any\n\t *\t instruction that synchronizes on the load or store\n\t *\t buffers being empty.'\n\t *\n\t *\tUltraSPARC-IIi User's Manual, Part No. 805-0087-01, Sun\n\t *\tMicrosystems, October 1997, Appendix K.2 `Errata\n\t *\tCreated by UltraSPARC-I', Erratum 51, p. 476.\n\t *\thttps://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-2i-usersmanual-2516677.pdf#page=518\n\t *\n\t * So let's avoid doing that.\n\t */\n\tmembar\t#StoreLoad\n\tretl\n\t nop\nEND(_membar_sync)\nATOMIC_OP_ALIAS(membar_sync,_membar_sync)\n\nATOMIC_OP_ALIAS(membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nATOMIC_OP_ALIAS(membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nATOMIC_OP_ALIAS(membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nATOMIC_OP_ALIAS(membar_exit,_membar_release)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/atomic/membar_ops.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/sparc64/atomic/membar_ops.S", "line_start": 41, "line_end": 89}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/ffs.S:2", "text": ".asciz \"@(#)ffs.s\t8.1 (Berkeley) 6/4/93\"\n#else\n\tRCSID(\"$NetBSD: ffs.S,v 1.4 2025/11/03 20:01:32 nia Exp $\")\n#endif\n#endif  /* LIBC_SCCS and not lint */\n\n#if 0\n\t/*\n\t * We have a popcount instruction -- use it.\n\t * only uses %o0, %o1, %o2\n\t *\n\t * Here's the pseudo-code from the v9 spec:\n\t *\n\t * int ffs(unsigned zz) {\n\t *\treturn popc( zz ^ ( ~ (-zz)));\n\t * }\n\t *\n\t * XXXX spitfire and blackbirds don't implement popc,\n\t * so we won't use this nice clean code 8^(.\n\t */\nENTRY(ffs)\n\tneg\t%o0, %o1\t\t\t\t! %o1 = -zz\n\txnor\t%o0, %o1, %o2\t\t\t\t! %o2 = zz ^ ~ -zz\n\tpopc\t%o2, %o1\n\tmovrz\t%o0, %g0, %o1\t\t\t\t! result of ffs(0) should be zero\n\tretl\n\t mov\t%o1, %o0\n#endif\n/*\n * ffs returns the number of the rightmost bit set in its argument,\n * i.e., the lowest value such that (x & (ffs(x) - 1)) is nonzero.\n * If no bits are set, ffs returns 0.\n *\n * We use a table lookup on each byte.\n *\n * In each section below, %o1 is the current byte (0, 1, 2, or 3).\n * The last byte is handled specially: for the first three,\n * if that byte is nonzero, we return the table value\n * (plus 0, 8, or 16 for the byte number), but for the last\n * one, we just return the table value plus 24.  This means\n * that ffstab[0] must be -24 so that ffs(0) will return 0.\n */\nENTRY(ffs)\n#ifdef __PIC__\n\tPICCY_SET(ffstab, %o2, %o3)\n#else\n\tset\tffstab, %o2\n#endif\n\tandcc\t%o0, 0xff, %o1\t! get low byte\n\tbe,a\t1f\t\t! try again if 0\n\t srl\t%o0, 8, %o0\t! delay slot, get ready for next byte\n\n\tretl\t\t\t! return ffstab[%o1]\n\t ldsb\t[%o2 + %o1], %o0\n\n1:\n\tandcc\t%o0, 0xff, %o1\t! byte 1 like byte 0...\n\tbe,a\t2f\n\t srl\t%o0, 8, %o0\t! (use delay to prepare for byte 2)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/ffs.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/ffs.S:3", "text": "* that ffstab[0] must be -24 so that ffs(0) will return 0.\n */\nENTRY(ffs)\n#ifdef __PIC__\n\tPICCY_SET(ffstab, %o2, %o3)\n#else\n\tset\tffstab, %o2\n#endif\n\tandcc\t%o0, 0xff, %o1\t! get low byte\n\tbe,a\t1f\t\t! try again if 0\n\t srl\t%o0, 8, %o0\t! delay slot, get ready for next byte\n\n\tretl\t\t\t! return ffstab[%o1]\n\t ldsb\t[%o2 + %o1], %o0\n\n1:\n\tandcc\t%o0, 0xff, %o1\t! byte 1 like byte 0...\n\tbe,a\t2f\n\t srl\t%o0, 8, %o0\t! (use delay to prepare for byte 2)\n\n\tldsb\t[%o2 + %o1], %o0\n\tretl\t\t\t! return ffstab[%o1] + 8\n\t add\t%o0, 8, %o0\n\n2:\n\tandcc\t%o0, 0xff, %o1\n\tbe,a\t3f\n\t srl\t%o0, 8, %o0\t! (prepare for byte 3)\n\n\tldsb\t[%o2 + %o1], %o0\n\tretl\t\t\t! return ffstab[%o1] + 16\n\t add\t%o0, 16, %o0\n\n3:\t\t\t\t! just return ffstab[%o0] + 24\n\tldsb\t[%o2 + %o0], %o0\n\tretl\n\t add\t%o0, 24, %o0\n\nffstab:\n\t.byte\t-24,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1 /* 00-0f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-1f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 20-2f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 30-3f */\n\t.byte\t7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 40-4f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 50-5f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 60-6f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 70-7f */\n\t.byte\t8,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 80-8f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-9f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* a0-af */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* b0-bf */\n\t.byte\t7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* c0-cf */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* d0-df */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* e0-ef */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* f0-ff */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/ffs.S", "line_start": 81, "line_end": 135}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/ffs.S:4", "text": ".byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-1f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 20-2f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 30-3f */\n\t.byte\t7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 40-4f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 50-5f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 60-6f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 70-7f */\n\t.byte\t8,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 80-8f */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* 10-9f */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* a0-af */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* b0-bf */\n\t.byte\t7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* c0-cf */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* d0-df */\n\t.byte\t6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* e0-ef */\n\t.byte\t5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1\t/* f0-ff */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/ffs.S", "line_start": 121, "line_end": 135}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/ffs.S:2", "text": ".asciz \"@(#)ffs.s\t8.1 (Berkeley) 6/4/93\"\n#else\n\tRCSID(\"$NetBSD: ffs.S,v 1.3 2013/09/12 15:36:14 joerg Exp $\")\n#endif\n#endif  /* LIBC_SCCS and not lint */\n\n#if 0\n\t/*\n\t * We have a popcount instruction -- use it.\n\t * only uses %o0, %o1, %o2\n\t *\n\t * Here's the pseudo-code from the v9 spec:\n\t *\n\t * int ffs(unsigned zz) {\n\t *\treturn popc( zz ^ ( ~ (-zz)));\n\t * }\n\t *\n\t * XXXX sptifires and blackbirds don't implement popc,\n\t * so we won't use this nice clean code 8^(.\n\t */\nENTRY(ffs)\n\tneg\t%o0, %o1\t\t\t\t! %o1 = -zz\n\txnor\t%o0, %o1, %o2\t\t\t\t! %o2 = zz ^ ~ -zz\n\tpopc\t%o2, %o1\n\tmovrz\t%o0, %g0, %o1\t\t\t\t! result of ffs(0) should be zero\n\tretl\n\t mov\t%o1, %o0\n#endif\n/*\n * ffs returns the number of the rightmost bit set in its argument,\n * i.e., the lowest value such that (x & (ffs(x) - 1)) is nonzero.\n * If no bits are set, ffs returns 0.\n *\n * We use a table lookup on each byte.\n *\n * In each section below, %o1 is the current byte (0, 1, 2, or 3).\n * The last byte is handled specially: for the first three,\n * if that byte is nonzero, we return the table value\n * (plus 0, 8, or 16 for the byte number), but for the last\n * one, we just return the table value plus 24.  This means\n * that ffstab[0] must be -24 so that ffs(0) will return 0.\n */\nENTRY(ffs)\n#ifdef __PIC__\n\tPICCY_SET(ffstab, %o2, %o3)\n#else\n\tset\tffstab, %o2\n#endif\n\tandcc\t%o0, 0xff, %o1\t! get low byte\n\tbe,a\t1f\t\t! try again if 0\n\t srl\t%o0, 8, %o0\t! delay slot, get ready for next byte\n\n\tretl\t\t\t! return ffstab[%o1]\n\t ldsb\t[%o2 + %o1], %o0\n\n1:\n\tandcc\t%o0, 0xff, %o1\t! byte 1 like byte 0...\n\tbe,a\t2f\n\t srl\t%o0, 8, %o0\t! (use delay to prepare for byte 2)", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/sparc64/string/ffs.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:1", "text": "/*\t$NetBSD: memcpy.S,v 1.2 2013/03/17 02:13:10 christos Exp $\t*/\n\n/*\n * Copyright (c) 1996-2002 Eduardo Horvath\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR  ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR  BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n *\n */\n#include \"strmacros.h\"\n#if defined(LIBC_SCCS) && !defined(lint)\nRCSID(\"$NetBSD: memcpy.S,v 1.2 2013/03/17 02:13:10 christos Exp $\")\n#endif  /* LIBC_SCCS and not lint */\n\n/*\n * memcpy\n * Assumes regions do not overlap;\n *\n * Must not use %g7 (see copyin/copyout above).\n */\nENTRY(memcpy) /* dest, src, size */\n\t/*\n\t * Swap args for bcopy.  Gcc generates calls to memcpy for\n\t * structure assignments.\n\t */\n\tmov\t%o0, %o3\n\tmov\t%o1, %o0\n\tmov\t%o3, %o1\n#if !defined(_KERNEL) || defined(_RUMPKERNEL)\nENTRY(bcopy) /* src, dest, size */\n#endif\n#ifdef DEBUG\n#if defined(_KERNEL) && !defined(_RUMPKERNEL)\n\tset\tpmapdebug, %o4\n\tld\t[%o4], %o4\n\tbtst\t0x80, %o4\t! PDB_COPY\n\tbz,pt\t%icc, 3f\n\t nop\n#endif\n\tsave\t%sp, -CC64FSZ, %sp\n\tmov\t%i0, %o1\n\tset\t2f, %o0\n\tmov\t%i1, %o2\n\tcall\tprintf", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:2", "text": "*/\n\tmov\t%o0, %o3\n\tmov\t%o1, %o0\n\tmov\t%o3, %o1\n#if !defined(_KERNEL) || defined(_RUMPKERNEL)\nENTRY(bcopy) /* src, dest, size */\n#endif\n#ifdef DEBUG\n#if defined(_KERNEL) && !defined(_RUMPKERNEL)\n\tset\tpmapdebug, %o4\n\tld\t[%o4], %o4\n\tbtst\t0x80, %o4\t! PDB_COPY\n\tbz,pt\t%icc, 3f\n\t nop\n#endif\n\tsave\t%sp, -CC64FSZ, %sp\n\tmov\t%i0, %o1\n\tset\t2f, %o0\n\tmov\t%i1, %o2\n\tcall\tprintf\n\t mov\t%i2, %o3\n!\tta\t1; nop\n\trestore\n\t.data\n2:\t.asciz\t\"memcpy(%p<-%p,%x)\\n\"\n\t_ALIGN\n\t.text\n3:\n#endif\n\n\tcmp\t%o2, BCOPY_SMALL\n\nLmemcpy_start:\n\tbge,pt\tCCCR, 2f\t! if >= this many, go be fancy.\n\t cmp\t%o2, 256\n\n\tmov\t%o1, %o5\t! Save memcpy return value\n\t/*\n\t * Not much to copy, just do it a byte at a time.\n\t */\n\tdeccc\t%o2\t\t! while (--len >= 0)\n\tbl\t1f\n\t .empty\n0:\n\tinc\t%o0\n\tldsb\t[%o0 - 1], %o4\t!\t(++dst)[-1] = *src++;\n\tstb\t%o4, [%o1]\n\tdeccc\t%o2\n\tbge\t0b\n\t inc\t%o1\n1:\n\tretl\n\t mov\t%o5, %o0\n\tNOTREACHED\n\n\t/*\n\t * Plenty of data to copy, so try to do it optimally.\n\t */\n2:\n#ifdef USE_BLOCK_STORE_LOAD", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:3", "text": "deccc\t%o2\t\t! while (--len >= 0)\n\tbl\t1f\n\t .empty\n0:\n\tinc\t%o0\n\tldsb\t[%o0 - 1], %o4\t!\t(++dst)[-1] = *src++;\n\tstb\t%o4, [%o1]\n\tdeccc\t%o2\n\tbge\t0b\n\t inc\t%o1\n1:\n\tretl\n\t mov\t%o5, %o0\n\tNOTREACHED\n\n\t/*\n\t * Plenty of data to copy, so try to do it optimally.\n\t */\n2:\n#ifdef USE_BLOCK_STORE_LOAD\n\t! If it is big enough, use VIS instructions\n\tbge\tLmemcpy_block\n\t nop\n#endif /* USE_BLOCK_STORE_LOAD */\nLmemcpy_fancy:\n\n\t!!\n\t!! First align the output to a 8-byte entity\n\t!!\n\n\tsave\t%sp, -CC64FSZ, %sp\n\n\tmov\t%i0, %l0\n\tmov\t%i1, %l1\n\n\tmov\t%i2, %l2\n\tbtst\t1, %l1\n\n\tbz,pt\t%icc, 4f\n\t btst\t2, %l1\n\tldub\t[%l0], %l4\t\t\t\t! Load 1st byte\n\n\tdeccc\t1, %l2\n\tble,pn\tCCCR, Lmemcpy_finish\t\t\t! XXXX\n\t inc\t1, %l0\n\n\tstb\t%l4, [%l1]\t\t\t\t! Store 1st byte\n\tinc\t1, %l1\t\t\t\t\t! Update address\n\tbtst\t2, %l1\n4:\n\tbz,pt\t%icc, 4f\n\n\t btst\t1, %l0\n\tbz,a\t1f\n\t lduh\t[%l0], %l4\t\t\t\t! Load short\n\n\tldub\t[%l0], %l4\t\t\t\t! Load bytes\n\n\tldub\t[%l0+1], %l3\n\tsllx\t%l4, 8, %l4", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:4", "text": "ldub\t[%l0], %l4\t\t\t\t! Load 1st byte\n\n\tdeccc\t1, %l2\n\tble,pn\tCCCR, Lmemcpy_finish\t\t\t! XXXX\n\t inc\t1, %l0\n\n\tstb\t%l4, [%l1]\t\t\t\t! Store 1st byte\n\tinc\t1, %l1\t\t\t\t\t! Update address\n\tbtst\t2, %l1\n4:\n\tbz,pt\t%icc, 4f\n\n\t btst\t1, %l0\n\tbz,a\t1f\n\t lduh\t[%l0], %l4\t\t\t\t! Load short\n\n\tldub\t[%l0], %l4\t\t\t\t! Load bytes\n\n\tldub\t[%l0+1], %l3\n\tsllx\t%l4, 8, %l4\n\tor\t%l3, %l4, %l4\n\n1:\n\tdeccc\t2, %l2\n\tble,pn\tCCCR, Lmemcpy_finish\t\t\t! XXXX\n\t inc\t2, %l0\n\tsth\t%l4, [%l1]\t\t\t\t! Store 1st short\n\n\tinc\t2, %l1\n4:\n\tbtst\t4, %l1\n\tbz,pt\tCCCR, 4f\n\n\t btst\t3, %l0\n\tbz,a,pt\tCCCR, 1f\n\t lduw\t[%l0], %l4\t\t\t\t! Load word -1\n\n\tbtst\t1, %l0\n\tbz,a,pt\t%icc, 2f\n\t lduh\t[%l0], %l4\n\n\tldub\t[%l0], %l4\n\n\tlduh\t[%l0+1], %l3\n\tsllx\t%l4, 16, %l4\n\tor\t%l4, %l3, %l4\n\n\tldub\t[%l0+3], %l3\n\tsllx\t%l4, 8, %l4\n\tba,pt\t%icc, 1f\n\t or\t%l4, %l3, %l4\n\n2:\n\tlduh\t[%l0+2], %l3\n\tsllx\t%l4, 16, %l4\n\tor\t%l4, %l3, %l4\n\n1:\n\tdeccc\t4, %l2\n\tble,pn\tCCCR, Lmemcpy_finish\t\t! XXXX", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:5", "text": "ldub\t[%l0], %l4\n\n\tlduh\t[%l0+1], %l3\n\tsllx\t%l4, 16, %l4\n\tor\t%l4, %l3, %l4\n\n\tldub\t[%l0+3], %l3\n\tsllx\t%l4, 8, %l4\n\tba,pt\t%icc, 1f\n\t or\t%l4, %l3, %l4\n\n2:\n\tlduh\t[%l0+2], %l3\n\tsllx\t%l4, 16, %l4\n\tor\t%l4, %l3, %l4\n\n1:\n\tdeccc\t4, %l2\n\tble,pn\tCCCR, Lmemcpy_finish\t\t! XXXX\n\t inc\t4, %l0\n\n\tst\t%l4, [%l1]\t\t\t\t! Store word\n\tinc\t4, %l1\n4:\n\t!!\n\t!! We are now 32-bit aligned in the dest.\n\t!!\nLmemcpy_common:\n\n\tand\t%l0, 7, %l4\t\t\t\t! Shift amount\n\tandn\t%l0, 7, %l0\t\t\t\t! Source addr\n\n\tbrz,pt\t%l4, Lmemcpy_noshift8\t\t\t! No shift version...\n\n\t sllx\t%l4, 3, %l4\t\t\t\t! In bits\n\tmov\t8<<3, %l3\n\n\tldx\t[%l0], %o0\t\t\t\t! Load word -1\n\tsub\t%l3, %l4, %l3\t\t\t\t! Reverse shift\n\tdeccc\t12*8, %l2\t\t\t\t! Have enough room?\n\n\tsllx\t%o0, %l4, %o0\n\tbl,pn\tCCCR, 2f\n\t and\t%l3, 0x38, %l3\nLmemcpy_unrolled8:\n\n\t/*\n\t * This is about as close to optimal as you can get, since\n\t * the shifts require EU0 and cannot be paired, and you have\n\t * 3 dependent operations on the data.\n\t */\n\n!\tldx\t[%l0+0*8], %o0\t\t\t\t! Already done\n!\tsllx\t%o0, %l4, %o0\t\t\t\t! Already done\n\tldx\t[%l0+1*8], %o1\n\tldx\t[%l0+2*8], %o2\n\tldx\t[%l0+3*8], %o3\n\tldx\t[%l0+4*8], %o4\n\tba,pt\t%icc, 1f", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:6", "text": "deccc\t12*8, %l2\t\t\t\t! Have enough room?\n\n\tsllx\t%o0, %l4, %o0\n\tbl,pn\tCCCR, 2f\n\t and\t%l3, 0x38, %l3\nLmemcpy_unrolled8:\n\n\t/*\n\t * This is about as close to optimal as you can get, since\n\t * the shifts require EU0 and cannot be paired, and you have\n\t * 3 dependent operations on the data.\n\t */\n\n!\tldx\t[%l0+0*8], %o0\t\t\t\t! Already done\n!\tsllx\t%o0, %l4, %o0\t\t\t\t! Already done\n\tldx\t[%l0+1*8], %o1\n\tldx\t[%l0+2*8], %o2\n\tldx\t[%l0+3*8], %o3\n\tldx\t[%l0+4*8], %o4\n\tba,pt\t%icc, 1f\n\t ldx\t[%l0+5*8], %o5\n\t.align\t8\n1:\n\tsrlx\t%o1, %l3, %g1\n\tinc\t6*8, %l0\n\n\tsllx\t%o1, %l4, %o1\n\tor\t%g1, %o0, %g6\n\tldx\t[%l0+0*8], %o0\n\n\tstx\t%g6, [%l1+0*8]\n\tsrlx\t%o2, %l3, %g1\n\n\tsllx\t%o2, %l4, %o2\n\tor\t%g1, %o1, %g6\n\tldx\t[%l0+1*8], %o1\n\n\tstx\t%g6, [%l1+1*8]\n\tsrlx\t%o3, %l3, %g1\n\n\tsllx\t%o3, %l4, %o3\n\tor\t%g1, %o2, %g6\n\tldx\t[%l0+2*8], %o2\n\n\tstx\t%g6, [%l1+2*8]\n\tsrlx\t%o4, %l3, %g1\n\n\tsllx\t%o4, %l4, %o4\n\tor\t%g1, %o3, %g6\n\tldx\t[%l0+3*8], %o3\n\n\tstx\t%g6, [%l1+3*8]\n\tsrlx\t%o5, %l3, %g1\n\n\tsllx\t%o5, %l4, %o5\n\tor\t%g1, %o4, %g6\n\tldx\t[%l0+4*8], %o4\n\n\tstx\t%g6, [%l1+4*8]\n\tsrlx\t%o0, %l3, %g1", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:7", "text": "sllx\t%o3, %l4, %o3\n\tor\t%g1, %o2, %g6\n\tldx\t[%l0+2*8], %o2\n\n\tstx\t%g6, [%l1+2*8]\n\tsrlx\t%o4, %l3, %g1\n\n\tsllx\t%o4, %l4, %o4\n\tor\t%g1, %o3, %g6\n\tldx\t[%l0+3*8], %o3\n\n\tstx\t%g6, [%l1+3*8]\n\tsrlx\t%o5, %l3, %g1\n\n\tsllx\t%o5, %l4, %o5\n\tor\t%g1, %o4, %g6\n\tldx\t[%l0+4*8], %o4\n\n\tstx\t%g6, [%l1+4*8]\n\tsrlx\t%o0, %l3, %g1\n\tdeccc\t6*8, %l2\t\t\t\t! Have enough room?\n\n\tsllx\t%o0, %l4, %o0\t\t\t\t! Next loop\n\tor\t%g1, %o5, %g6\n\tldx\t[%l0+5*8], %o5\n\n\tstx\t%g6, [%l1+5*8]\n\tbge,pt\tCCCR, 1b\n\t inc\t6*8, %l1\n\nLmemcpy_unrolled8_cleanup:\n\t!!\n\t!! Finished 8 byte block, unload the regs.\n\t!!\n\tsrlx\t%o1, %l3, %g1\n\tinc\t5*8, %l0\n\n\tsllx\t%o1, %l4, %o1\n\tor\t%g1, %o0, %g6\n\n\tstx\t%g6, [%l1+0*8]\n\tsrlx\t%o2, %l3, %g1\n\n\tsllx\t%o2, %l4, %o2\n\tor\t%g1, %o1, %g6\n\n\tstx\t%g6, [%l1+1*8]\n\tsrlx\t%o3, %l3, %g1\n\n\tsllx\t%o3, %l4, %o3\n\tor\t%g1, %o2, %g6\n\n\tstx\t%g6, [%l1+2*8]\n\tsrlx\t%o4, %l3, %g1\n\n\tsllx\t%o4, %l4, %o4\n\tor\t%g1, %o3, %g6\n\n\tstx\t%g6, [%l1+3*8]\n\tsrlx\t%o5, %l3, %g1", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:8", "text": "stx\t%g6, [%l1+0*8]\n\tsrlx\t%o2, %l3, %g1\n\n\tsllx\t%o2, %l4, %o2\n\tor\t%g1, %o1, %g6\n\n\tstx\t%g6, [%l1+1*8]\n\tsrlx\t%o3, %l3, %g1\n\n\tsllx\t%o3, %l4, %o3\n\tor\t%g1, %o2, %g6\n\n\tstx\t%g6, [%l1+2*8]\n\tsrlx\t%o4, %l3, %g1\n\n\tsllx\t%o4, %l4, %o4\n\tor\t%g1, %o3, %g6\n\n\tstx\t%g6, [%l1+3*8]\n\tsrlx\t%o5, %l3, %g1\n\n\tsllx\t%o5, %l4, %o5\n\tor\t%g1, %o4, %g6\n\n\tstx\t%g6, [%l1+4*8]\n\tinc\t5*8, %l1\n\n\tmov\t%o5, %o0\t\t\t\t! Save our unused data\n\tdec\t5*8, %l2\n2:\n\tinccc\t12*8, %l2\n\tbz,pn\t%icc, Lmemcpy_complete\n\n\t!! Unrolled 8 times\nLmemcpy_aligned8:\n!\tldx\t[%l0], %o0\t\t\t\t! Already done\n!\tsllx\t%o0, %l4, %o0\t\t\t\t! Shift high word\n\n\t deccc\t8, %l2\t\t\t\t\t! Pre-decrement\n\tbl,pn\tCCCR, Lmemcpy_finish\n1:\n\tldx\t[%l0+8], %o1\t\t\t\t! Load word 0\n\tinc\t8, %l0\n\n\tsrlx\t%o1, %l3, %g6\n\tor\t%g6, %o0, %g6\t\t\t\t! Combine\n\n\tstx\t%g6, [%l1]\t\t\t\t! Store result\n\t inc\t8, %l1\n\n\tdeccc\t8, %l2\n\tbge,pn\tCCCR, 1b\n\t sllx\t%o1, %l4, %o0\n\n\tbtst\t7, %l2\t\t\t\t\t! Done?\n\tbz,pt\tCCCR, Lmemcpy_complete\n\n\t!!\n\t!! Loadup the last dregs into %o0 and shift it into place\n\t!!", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:9", "text": "1:\n\tldx\t[%l0+8], %o1\t\t\t\t! Load word 0\n\tinc\t8, %l0\n\n\tsrlx\t%o1, %l3, %g6\n\tor\t%g6, %o0, %g6\t\t\t\t! Combine\n\n\tstx\t%g6, [%l1]\t\t\t\t! Store result\n\t inc\t8, %l1\n\n\tdeccc\t8, %l2\n\tbge,pn\tCCCR, 1b\n\t sllx\t%o1, %l4, %o0\n\n\tbtst\t7, %l2\t\t\t\t\t! Done?\n\tbz,pt\tCCCR, Lmemcpy_complete\n\n\t!!\n\t!! Loadup the last dregs into %o0 and shift it into place\n\t!!\n\t srlx\t%l3, 3, %g6\t\t\t\t! # bytes in %o0\n\tdec\t8, %g6\t\t\t\t\t!  - 8\n\t!! n-8 - (by - 8) -> n - by\n\tsubcc\t%l2, %g6, %g0\t\t\t\t! # bytes we need\n\tble,pt\t%icc, Lmemcpy_finish\n\t nop\n\tldx\t[%l0+8], %o1\t\t\t\t! Need another word\n\tsrlx\t%o1, %l3, %o1\n\tba,pt\t%icc, Lmemcpy_finish\n\t or\t%o0, %o1, %o0\t\t\t\t! All loaded up.\n\nLmemcpy_noshift8:\n\tdeccc\t6*8, %l2\t\t\t\t! Have enough room?\n\tbl,pn\tCCCR, 2f\n\t nop\n\tba,pt\t%icc, 1f\n\t nop\n\t.align\t32\n1:\n\tldx\t[%l0+0*8], %o0\n\tldx\t[%l0+1*8], %o1\n\tldx\t[%l0+2*8], %o2\n\tstx\t%o0, [%l1+0*8]\n\tstx\t%o1, [%l1+1*8]\n\tstx\t%o2, [%l1+2*8]\n\n\n\tldx\t[%l0+3*8], %o3\n\tldx\t[%l0+4*8], %o4\n\tldx\t[%l0+5*8], %o5\n\tinc\t6*8, %l0\n\tstx\t%o3, [%l1+3*8]\n\tdeccc\t6*8, %l2\n\tstx\t%o4, [%l1+4*8]\n\tstx\t%o5, [%l1+5*8]\n\tbge,pt\tCCCR, 1b\n\t inc\t6*8, %l1\n2:\n\tinc\t6*8, %l2\n1:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:10", "text": "ldx\t[%l0+1*8], %o1\n\tldx\t[%l0+2*8], %o2\n\tstx\t%o0, [%l1+0*8]\n\tstx\t%o1, [%l1+1*8]\n\tstx\t%o2, [%l1+2*8]\n\n\n\tldx\t[%l0+3*8], %o3\n\tldx\t[%l0+4*8], %o4\n\tldx\t[%l0+5*8], %o5\n\tinc\t6*8, %l0\n\tstx\t%o3, [%l1+3*8]\n\tdeccc\t6*8, %l2\n\tstx\t%o4, [%l1+4*8]\n\tstx\t%o5, [%l1+5*8]\n\tbge,pt\tCCCR, 1b\n\t inc\t6*8, %l1\n2:\n\tinc\t6*8, %l2\n1:\n\tdeccc\t8, %l2\n\tbl,pn\t%icc, 1f\t\t\t\t! < 0 --> sub word\n\t nop\n\tldx\t[%l0], %g6\n\tinc\t8, %l0\n\tstx\t%g6, [%l1]\n\tbg,pt\t%icc, 1b\t\t\t\t! Exactly 0 --> done\n\t inc\t8, %l1\n1:\n\tbtst\t7, %l2\t\t\t\t\t! Done?\n\tbz,pt\tCCCR, Lmemcpy_complete\n\t clr\t%l4\n\tldx\t[%l0], %o0\nLmemcpy_finish:\n\n\tbrz,pn\t%l2, 2f\t\t\t\t\t! 100% complete?\n\t cmp\t%l2, 8\t\t\t\t\t! Exactly 8 bytes?\n\tbz,a,pn\tCCCR, 2f\n\t stx\t%o0, [%l1]\n\n\tbtst\t4, %l2\t\t\t\t\t! Word store?\n\tbz\tCCCR, 1f\n\t srlx\t%o0, 32, %g6\t\t\t\t! Shift high word down\n\tstw\t%g6, [%l1]\n\tinc\t4, %l1\n\tmov\t%o0, %g6\t\t\t\t! Operate on the low bits\n1:\n\tbtst\t2, %l2\n\tmov\t%g6, %o0\n\tbz\t1f\n\t srlx\t%o0, 16, %g6\n\n\tsth\t%g6, [%l1]\t\t\t\t! Store short\n\tinc\t2, %l1\n\tmov\t%o0, %g6\t\t\t\t! Operate on low bytes\n1:\n\tmov\t%g6, %o0\n\tbtst\t1, %l2\t\t\t\t\t! Byte aligned?\n\tbz\t2f\n\t srlx\t%o0, 8, %g6", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:11", "text": "btst\t4, %l2\t\t\t\t\t! Word store?\n\tbz\tCCCR, 1f\n\t srlx\t%o0, 32, %g6\t\t\t\t! Shift high word down\n\tstw\t%g6, [%l1]\n\tinc\t4, %l1\n\tmov\t%o0, %g6\t\t\t\t! Operate on the low bits\n1:\n\tbtst\t2, %l2\n\tmov\t%g6, %o0\n\tbz\t1f\n\t srlx\t%o0, 16, %g6\n\n\tsth\t%g6, [%l1]\t\t\t\t! Store short\n\tinc\t2, %l1\n\tmov\t%o0, %g6\t\t\t\t! Operate on low bytes\n1:\n\tmov\t%g6, %o0\n\tbtst\t1, %l2\t\t\t\t\t! Byte aligned?\n\tbz\t2f\n\t srlx\t%o0, 8, %g6\n\n\tstb\t%g6, [%l1]\t\t\t\t! Store last byte\n\tinc\t1, %l1\t\t\t\t\t! Update address\n2:\nLmemcpy_complete:\n#if 0\n\t!!\n\t!! verify copy success.\n\t!!\n\n\tmov\t%i0, %o2\n\tmov\t%i1, %o4\n\tmov\t%i2, %l4\n0:\n\tldub\t[%o2], %o1\n\tinc\t%o2\n\tldub\t[%o4], %o3\n\tinc\t%o4\n\tcmp\t%o3, %o1\n\tbnz\t1f\n\t dec\t%l4\n\tbrnz\t%l4, 0b\n\t nop\n\tba\t2f\n\t nop\n\n1:\n\tset\t0f, %o0\n\tcall\tprintf\n\t sub\t%i2, %l4, %o5\n\tset\t1f, %o0\n\tmov\t%i0, %o2\n\tmov\t%i1, %o1\n\tcall\tprintf\n\t mov\t%i2, %o3\n\tta\t1\n\t.data\n0:\t.asciz\t\"memcpy failed: %x@%p != %x@%p byte %d\\n\"\n1:\t.asciz\t\"memcpy(%p, %p, %lx)\\n\"\n\t.align 8", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:12", "text": "dec\t%l4\n\tbrnz\t%l4, 0b\n\t nop\n\tba\t2f\n\t nop\n\n1:\n\tset\t0f, %o0\n\tcall\tprintf\n\t sub\t%i2, %l4, %o5\n\tset\t1f, %o0\n\tmov\t%i0, %o2\n\tmov\t%i1, %o1\n\tcall\tprintf\n\t mov\t%i2, %o3\n\tta\t1\n\t.data\n0:\t.asciz\t\"memcpy failed: %x@%p != %x@%p byte %d\\n\"\n1:\t.asciz\t\"memcpy(%p, %p, %lx)\\n\"\n\t.align 8\n\t.text\n2:\n#endif\n\tret\n\t restore %i1, %g0, %o0\n\n#ifdef USE_BLOCK_STORE_LOAD\n\n/*\n * Block copy.  Useful for >256 byte copies.\n *\n * Benchmarking has shown this always seems to be slower than\n * the integer version, so this is disabled.  Maybe someone will\n * figure out why sometime.\n */\n\nLmemcpy_block:\n\tsethi\t%hi(block_disable), %o3\n\tldx\t[ %o3 + %lo(block_disable) ], %o3\n\tbrnz,pn\t%o3, Lmemcpy_fancy\n\t!! Make sure our trap table is installed\n\tset\t_C_LABEL(trapbase), %o5\n\trdpr\t%tba, %o3\n\tsub\t%o3, %o5, %o3\n\tbrnz,pn\t%o3, Lmemcpy_fancy\t! No, then don't use block load/store\n\t nop\n#if defined(_KERNEL) && !defined(_RUMPKERNEL)\n/*\n * Kernel:\n *\n * Here we use VIS instructions to do a block clear of a page.\n * But before we can do that we need to save and enable the FPU.\n * The last owner of the FPU registers is fplwp, and\n * fplwp->l_md.md_fpstate is the current fpstate.  If that's not\n * null, call savefpstate() with it to store our current fp state.\n *\n * Next, allocate an aligned fpstate on the stack.  We will properly\n * nest calls on a particular stack so this should not be a problem.\n *\n * Now we grab either curlwp (or if we're on the interrupt stack", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:14", "text": "* %l0\t\tXXXX DEBUG old fpstate\n * %l1\t\tfplwp (hi bits only)\n * %l2\t\torig fplwp\n * %l3\t\torig fpstate\n * %l5\t\tcurlwp\n * %l6\t\told fpstate\n *\n * Register ussage, Kernel and user:\n *\n * %g1\t\tsrc (retval for memcpy)\n *\n * %o0\t\tsrc\n * %o1\t\tdest\n * %o2\t\tend dest\n * %o5\t\tlast safe fetchable address\n */\n\n\tENABLE_FPU(0)\n\n\tmov\t%i0, %o0\t\t\t\t! Src addr.\n\tmov\t%i1, %o1\t\t\t\t! Store our dest ptr here.\n\tmov\t%i2, %o2\t\t\t\t! Len counter\n#endif\t/* _KERNEL */\n\n\t!!\n\t!! First align the output to a 64-bit entity\n\t!!\n\n\tmov\t%o1, %g1\t\t\t\t! memcpy retval\n\tadd\t%o0, %o2, %o5\t\t\t\t! End of source block\n\n\tandn\t%o0, 7, %o3\t\t\t\t! Start of block\n\tdec\t%o5\n\tfzero\t%f0\n\n\tandn\t%o5, BLOCK_ALIGN, %o5\t\t\t! Last safe addr.\n\tldd\t[%o3], %f2\t\t\t\t! Load 1st word\n\n\tdec\t8, %o3\t\t\t\t\t! Move %o3 1 word back\n\tbtst\t1, %o1\n\tbz\t4f\n\n\t mov\t-7, %o4\t\t\t\t\t! Lowest src addr possible\n\talignaddr %o0, %o4, %o4\t\t\t\t! Base addr for load.\n\n\tcmp\t%o3, %o4\n\tbe,pt\tCCCR, 1f\t\t\t\t! Already loaded?\n\t mov\t%o4, %o3\n\tfmovd\t%f2, %f0\t\t\t\t! No. Shift\n\tldd\t[%o3+8], %f2\t\t\t\t! And load\n1:\n\n\tfaligndata\t%f0, %f2, %f4\t\t\t! Isolate 1st byte\n\n\tstda\t%f4, [%o1] ASI_FL8_P\t\t\t! Store 1st byte\n\tinc\t1, %o1\t\t\t\t\t! Update address\n\tinc\t1, %o0\n\tdec\t1, %o2\n4:\n\tbtst\t2, %o1", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:15", "text": "bz\t4f\n\n\t mov\t-7, %o4\t\t\t\t\t! Lowest src addr possible\n\talignaddr %o0, %o4, %o4\t\t\t\t! Base addr for load.\n\n\tcmp\t%o3, %o4\n\tbe,pt\tCCCR, 1f\t\t\t\t! Already loaded?\n\t mov\t%o4, %o3\n\tfmovd\t%f2, %f0\t\t\t\t! No. Shift\n\tldd\t[%o3+8], %f2\t\t\t\t! And load\n1:\n\n\tfaligndata\t%f0, %f2, %f4\t\t\t! Isolate 1st byte\n\n\tstda\t%f4, [%o1] ASI_FL8_P\t\t\t! Store 1st byte\n\tinc\t1, %o1\t\t\t\t\t! Update address\n\tinc\t1, %o0\n\tdec\t1, %o2\n4:\n\tbtst\t2, %o1\n\tbz\t4f\n\n\t mov\t-6, %o4\t\t\t\t\t! Calculate src - 6\n\talignaddr %o0, %o4, %o4\t\t\t\t! calculate shift mask and dest.\n\n\tcmp\t%o3, %o4\t\t\t\t! Addresses same?\n\tbe,pt\tCCCR, 1f\n\t mov\t%o4, %o3\n\tfmovd\t%f2, %f0\t\t\t\t! Shuffle data\n\tldd\t[%o3+8], %f2\t\t\t\t! Load word 0\n1:\n\tfaligndata %f0, %f2, %f4\t\t\t! Move 1st short low part of f8\n\n\tstda\t%f4, [%o1] ASI_FL16_P\t\t\t! Store 1st short\n\tdec\t2, %o2\n\tinc\t2, %o1\n\tinc\t2, %o0\n4:\n\tbrz,pn\t%o2, Lmemcpy_blockfinish\t\t\t! XXXX\n\n\t btst\t4, %o1\n\tbz\t4f\n\n\tmov\t-4, %o4\n\talignaddr %o0, %o4, %o4\t\t\t\t! calculate shift mask and dest.\n\n\tcmp\t%o3, %o4\t\t\t\t! Addresses same?\n\tbeq,pt\tCCCR, 1f\n\t mov\t%o4, %o3\n\tfmovd\t%f2, %f0\t\t\t\t! Shuffle data\n\tldd\t[%o3+8], %f2\t\t\t\t! Load word 0\n1:\n\tfaligndata %f0, %f2, %f4\t\t\t! Move 1st short low part of f8\n\n\tst\t%f5, [%o1]\t\t\t\t! Store word\n\tdec\t4, %o2\n\tinc\t4, %o1\n\tinc\t4, %o0\n4:\n\tbrz,pn\t%o2, Lmemcpy_blockfinish\t\t\t! XXXX", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:16", "text": "btst\t4, %o1\n\tbz\t4f\n\n\tmov\t-4, %o4\n\talignaddr %o0, %o4, %o4\t\t\t\t! calculate shift mask and dest.\n\n\tcmp\t%o3, %o4\t\t\t\t! Addresses same?\n\tbeq,pt\tCCCR, 1f\n\t mov\t%o4, %o3\n\tfmovd\t%f2, %f0\t\t\t\t! Shuffle data\n\tldd\t[%o3+8], %f2\t\t\t\t! Load word 0\n1:\n\tfaligndata %f0, %f2, %f4\t\t\t! Move 1st short low part of f8\n\n\tst\t%f5, [%o1]\t\t\t\t! Store word\n\tdec\t4, %o2\n\tinc\t4, %o1\n\tinc\t4, %o0\n4:\n\tbrz,pn\t%o2, Lmemcpy_blockfinish\t\t\t! XXXX\n\t!!\n\t!! We are now 32-bit aligned in the dest.\n\t!!\nLmemcpy_block_common:\n\n\t mov\t-0, %o4\n\talignaddr %o0, %o4, %o4\t\t\t\t! base - shift\n\n\tcmp\t%o3, %o4\t\t\t\t! Addresses same?\n\tbeq,pt\tCCCR, 1f\n\t mov\t%o4, %o3\n\tfmovd\t%f2, %f0\t\t\t\t! Shuffle data\n\tldd\t[%o3+8], %f2\t\t\t\t! Load word 0\n1:\n\tadd\t%o3, 8, %o0\t\t\t\t! now use %o0 for src\n\n\t!!\n\t!! Continue until our dest is block aligned\n\t!!\nLmemcpy_block_aligned8:\n1:\n\tbrz\t%o2, Lmemcpy_blockfinish\n\t btst\tBLOCK_ALIGN, %o1\t\t\t! Block aligned?\n\tbz\t1f\n\n\t faligndata %f0, %f2, %f4\t\t\t! Generate result\n\tdeccc\t8, %o2\n\tble,pn\t%icc, Lmemcpy_blockfinish\t\t! Should never happen\n\t fmovd\t%f4, %f48\n\n\tstd\t%f4, [%o1]\t\t\t\t! Store result\n\tinc\t8, %o1\n\n\tfmovd\t%f2, %f0\n\tinc\t8, %o0\n\tba,pt\t%xcc, 1b\t\t\t\t! Not yet.\n\t ldd\t[%o0], %f2\t\t\t\t! Load next part\nLmemcpy_block_aligned64:\n1:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:17", "text": "1:\n\tbrz\t%o2, Lmemcpy_blockfinish\n\t btst\tBLOCK_ALIGN, %o1\t\t\t! Block aligned?\n\tbz\t1f\n\n\t faligndata %f0, %f2, %f4\t\t\t! Generate result\n\tdeccc\t8, %o2\n\tble,pn\t%icc, Lmemcpy_blockfinish\t\t! Should never happen\n\t fmovd\t%f4, %f48\n\n\tstd\t%f4, [%o1]\t\t\t\t! Store result\n\tinc\t8, %o1\n\n\tfmovd\t%f2, %f0\n\tinc\t8, %o0\n\tba,pt\t%xcc, 1b\t\t\t\t! Not yet.\n\t ldd\t[%o0], %f2\t\t\t\t! Load next part\nLmemcpy_block_aligned64:\n1:\n\n/*\n * 64-byte aligned -- ready for block operations.\n *\n * Here we have the destination block aligned, but the\n * source pointer may not be.  Sub-word alignment will\n * be handled by faligndata instructions.  But the source\n * can still be potentially aligned to 8 different words\n * in our 64-bit block, so we have 8 different copy routines.\n *\n * Once we figure out our source alignment, we branch\n * to the appropriate copy routine, which sets up the\n * alignment for faligndata and loads (sets) the values\n * into the source registers and does the copy loop.\n *\n * When were down to less than 1 block to store, we\n * exit the copy loop and execute cleanup code.\n *\n * Block loads and stores are not properly interlocked.\n * Stores save one reg/cycle, so you can start overwriting\n * registers the cycle after the store is issued.\n *\n * Block loads require a block load to a different register\n * block or a membar #Sync before accessing the loaded\n * data.\n *\n * Since the faligndata instructions may be offset as far\n * as 7 registers into a block (if you are shifting source\n * 7 -> dest 0), you need 3 source register blocks for full\n * performance: one you are copying, one you are loading,\n * and one for interlocking.  Otherwise, we would need to\n * sprinkle the code with membar #Sync and lose the advantage\n * of running faligndata in parallel with block stores.  This\n * means we are fetching a full 128 bytes ahead of the stores.\n * We need to make sure the prefetch does not inadvertently\n * cross a page boundary and fault on data that we will never\n * store.\n *\n */\n#if 1\n\tand\t%o0, BLOCK_ALIGN, %o3", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:18", "text": "*\n * Block loads require a block load to a different register\n * block or a membar #Sync before accessing the loaded\n * data.\n *\n * Since the faligndata instructions may be offset as far\n * as 7 registers into a block (if you are shifting source\n * 7 -> dest 0), you need 3 source register blocks for full\n * performance: one you are copying, one you are loading,\n * and one for interlocking.  Otherwise, we would need to\n * sprinkle the code with membar #Sync and lose the advantage\n * of running faligndata in parallel with block stores.  This\n * means we are fetching a full 128 bytes ahead of the stores.\n * We need to make sure the prefetch does not inadvertently\n * cross a page boundary and fault on data that we will never\n * store.\n *\n */\n#if 1\n\tand\t%o0, BLOCK_ALIGN, %o3\n\tsrax\t%o3, 3, %o3\t\t\t\t! Isolate the offset\n\n\tbrz\t%o3, L100\t\t\t\t! 0->0\n\t btst\t4, %o3\n\tbnz\t%xcc, 4f\n\t btst\t2, %o3\n\tbnz\t%xcc, 2f\n\t btst\t1, %o3\n\tba,pt\t%xcc, L101\t\t\t\t! 0->1\n\t nop\t/* XXX spitfire bug */\n2:\n\tbz\t%xcc, L102\t\t\t\t! 0->2\n\t nop\n\tba,pt\t%xcc, L103\t\t\t\t! 0->3\n\t nop\t/* XXX spitfire bug */\n4:\n\tbnz\t%xcc, 2f\n\t btst\t1, %o3\n\tbz\t%xcc, L104\t\t\t\t! 0->4\n\t nop\n\tba,pt\t%xcc, L105\t\t\t\t! 0->5\n\t nop\t/* XXX spitfire bug */\n2:\n\tbz\t%xcc, L106\t\t\t\t! 0->6\n\t nop\n\tba,pt\t%xcc, L107\t\t\t\t! 0->7\n\t nop\t/* XXX spitfire bug */\n#else\n\n\t!!\n\t!! Isolate the word offset, which just happens to be\n\t!! the slot in our jump table.\n\t!!\n\t!! This is 6 insns, most of which cannot be paired,\n\t!! which is about the same as the above version.\n\t!!\n\trd\t%pc, %o4\n1:\n\tand\t%o0, 0x31, %o3\n\tadd\t%o3, (Lmemcpy_block_jmp - 1b), %o3", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:19", "text": "ba,pt\t%xcc, L105\t\t\t\t! 0->5\n\t nop\t/* XXX spitfire bug */\n2:\n\tbz\t%xcc, L106\t\t\t\t! 0->6\n\t nop\n\tba,pt\t%xcc, L107\t\t\t\t! 0->7\n\t nop\t/* XXX spitfire bug */\n#else\n\n\t!!\n\t!! Isolate the word offset, which just happens to be\n\t!! the slot in our jump table.\n\t!!\n\t!! This is 6 insns, most of which cannot be paired,\n\t!! which is about the same as the above version.\n\t!!\n\trd\t%pc, %o4\n1:\n\tand\t%o0, 0x31, %o3\n\tadd\t%o3, (Lmemcpy_block_jmp - 1b), %o3\n\tjmpl\t%o4 + %o3, %g0\n\t nop\n\n\t!!\n\t!! Jump table\n\t!!\n\nLmemcpy_block_jmp:\n\tba,a,pt\t%xcc, L100\n\t nop\n\tba,a,pt\t%xcc, L101\n\t nop\n\tba,a,pt\t%xcc, L102\n\t nop\n\tba,a,pt\t%xcc, L103\n\t nop\n\tba,a,pt\t%xcc, L104\n\t nop\n\tba,a,pt\t%xcc, L105\n\t nop\n\tba,a,pt\t%xcc, L106\n\t nop\n\tba,a,pt\t%xcc, L107\n\t nop\n#endif\n\n\t!!\n\t!! Source is block aligned.\n\t!!\n\t!! Just load a block and go.\n\t!!\nL100:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L100\"\n\t.align\t8\n2:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:20", "text": "ba,a,pt\t%xcc, L106\n\t nop\n\tba,a,pt\t%xcc, L107\n\t nop\n#endif\n\n\t!!\n\t!! Source is block aligned.\n\t!!\n\t!! Just load a block and go.\n\t!!\nL100:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L100\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0 , %f62\n\tldda\t[%o0] ASI_BLK_P, %f0\n\tinc\tBLOCK_SIZE, %o0\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 3f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tba,pt\t%icc, 3f\n\t membar #Sync\n\n\t.align\t32\t\t\t\t\t! ICache align.\n3:\n\tfaligndata\t%f62, %f0, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f0, %f2, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f2, %f4, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f4, %f6, %f38\n\tfaligndata\t%f6, %f8, %f40\n\tfaligndata\t%f8, %f10, %f42\n\tfaligndata\t%f10, %f12, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f12, %f14, %f46\n\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tstda\t%f32, [%o1] ASI_STORE\n\tfaligndata\t%f14, %f16, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f16, %f18, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f18, %f20, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f20, %f22, %f38\n\tcmp\t%o0, %o5\n\tfaligndata\t%f22, %f24, %f40\n\tfaligndata\t%f24, %f26, %f42", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:21", "text": "faligndata\t%f8, %f10, %f42\n\tfaligndata\t%f10, %f12, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f12, %f14, %f46\n\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tstda\t%f32, [%o1] ASI_STORE\n\tfaligndata\t%f14, %f16, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f16, %f18, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f18, %f20, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f20, %f22, %f38\n\tcmp\t%o0, %o5\n\tfaligndata\t%f22, %f24, %f40\n\tfaligndata\t%f24, %f26, %f42\n\tfaligndata\t%f26, %f28, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f28, %f30, %f46\n\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tstda\t%f32, [%o1] ASI_STORE\n\tfaligndata\t%f30, %f48, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f48, %f50, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f50, %f52, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f52, %f54, %f38\n\tcmp\t%o0, %o5\n\tfaligndata\t%f54, %f56, %f40\n\tfaligndata\t%f56, %f58, %f42\n\tfaligndata\t%f58, %f60, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f60, %f62, %f46\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\t\t\t! Increment is at top\n\tmembar\t#Sync\n2:\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+8\n\t!!\n\t!! We need to load almost 1 complete block by hand.\n\t!!\nL101:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:22", "text": "brlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f60, %f62, %f46\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\t\t\t! Increment is at top\n\tmembar\t#Sync\n2:\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+8\n\t!!\n\t!! We need to load almost 1 complete block by hand.\n\t!!\nL101:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L101\"\n\t.align\t8\n2:\n#endif\n!\tfmovd\t%f0, %f0\t\t\t\t! Hoist fmovd\n\tldd\t[%o0], %f2\n\tinc\t8, %o0\n\tldd\t[%o0], %f4\n\tinc\t8, %o0\n\tldd\t[%o0], %f6\n\tinc\t8, %o0\n\tldd\t[%o0], %f8\n\tinc\t8, %o0\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 3f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n3:\n\tfaligndata\t%f0, %f2, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f2, %f4, %f34\n\tcmp\t%o0, %o5\n\tfaligndata\t%f4, %f6, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f6, %f8, %f38\n\tfaligndata\t%f8, %f10, %f40\n\tfaligndata\t%f10, %f12, %f42\n\tfaligndata\t%f12, %f14, %f44\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:23", "text": "cmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 3f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n3:\n\tfaligndata\t%f0, %f2, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f2, %f4, %f34\n\tcmp\t%o0, %o5\n\tfaligndata\t%f4, %f6, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f6, %f8, %f38\n\tfaligndata\t%f8, %f10, %f40\n\tfaligndata\t%f10, %f12, %f42\n\tfaligndata\t%f12, %f14, %f44\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f14, %f16, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f16, %f18, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f20, %f22, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f22, %f24, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f24, %f26, %f40\n\tfaligndata\t%f26, %f28, %f42\n\tfaligndata\t%f28, %f30, %f44\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f30, %f48, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f48, %f50, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f50, %f52, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f52, %f54, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f54, %f56, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f56, %f58, %f40\n\tfaligndata\t%f58, %f60, %f42\n\tfaligndata\t%f60, %f62, %f44\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:24", "text": "brlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f30, %f48, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f48, %f50, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f50, %f52, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f52, %f54, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f54, %f56, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f56, %f58, %f40\n\tfaligndata\t%f58, %f60, %f42\n\tfaligndata\t%f60, %f62, %f44\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f62, %f0, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+16\n\t!!\n\t!! We need to load 6 doubles by hand.\n\t!!\nL102:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L102\"\n\t.align\t8\n2:\n#endif\n\tldd\t[%o0], %f4\n\tinc\t8, %o0\n\tfmovd\t%f0, %f2\t\t\t\t! Hoist fmovd\n\tldd\t[%o0], %f6\n\tinc\t8, %o0\n\n\tldd\t[%o0], %f8\n\tinc\t8, %o0\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 3f\n\t ldda\t[%o0] ASI_BLK_P, %f16", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:25", "text": "2:\n#endif\n\tldd\t[%o0], %f4\n\tinc\t8, %o0\n\tfmovd\t%f0, %f2\t\t\t\t! Hoist fmovd\n\tldd\t[%o0], %f6\n\tinc\t8, %o0\n\n\tldd\t[%o0], %f8\n\tinc\t8, %o0\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 3f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n3:\n\tfaligndata\t%f2, %f4, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f4, %f6, %f34\n\tcmp\t%o0, %o5\n\tfaligndata\t%f6, %f8, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f8, %f10, %f38\n\tfaligndata\t%f10, %f12, %f40\n\tfaligndata\t%f12, %f14, %f42\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f44\n\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f16, %f18, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f18, %f20, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f20, %f22, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f22, %f24, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f24, %f26, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f26, %f28, %f40\n\tfaligndata\t%f28, %f30, %f42\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f48, %f50, %f46", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:26", "text": "stda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f18, %f20, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f20, %f22, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f22, %f24, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f24, %f26, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f26, %f28, %f40\n\tfaligndata\t%f28, %f30, %f42\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f48, %f50, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f50, %f52, %f32\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f52, %f54, %f34\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f54, %f56, %f36\n\tcmp\t%o0, %o5\n\tfaligndata\t%f56, %f58, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f58, %f60, %f40\n\tfaligndata\t%f60, %f62, %f42\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f0, %f2, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+24\n\t!!\n\t!! We need to load 5 doubles by hand.\n\t!!\nL103:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L103\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f4", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:27", "text": "stda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+24\n\t!!\n\t!! We need to load 5 doubles by hand.\n\t!!\nL103:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L103\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f4\n\tldd\t[%o0], %f6\n\tinc\t8, %o0\n\tldd\t[%o0], %f8\n\tinc\t8, %o0\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:\n\tinc\tBLOCK_SIZE, %o0\n3:\n\tfaligndata\t%f4, %f6, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f6, %f8, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f8, %f10, %f36\n\tfaligndata\t%f10, %f12, %f38\n\tfaligndata\t%f12, %f14, %f40\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f16, %f18, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f18, %f20, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f20, %f22, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f22, %f24, %f34", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:28", "text": "faligndata\t%f6, %f8, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f8, %f10, %f36\n\tfaligndata\t%f10, %f12, %f38\n\tfaligndata\t%f12, %f14, %f40\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f16, %f18, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f18, %f20, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f20, %f22, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f22, %f24, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f24, %f26, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f26, %f28, %f38\n\tfaligndata\t%f28, %f30, %f40\n\tble,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f48, %f50, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f50, %f52, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f52, %f54, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f54, %f56, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f56, %f58, %f36\n\tfaligndata\t%f58, %f60, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f60, %f62, %f40\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f0, %f2, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f2, %f4, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:29", "text": "dec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f56, %f58, %f36\n\tfaligndata\t%f58, %f60, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f60, %f62, %f40\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f0, %f2, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f2, %f4, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+32\n\t!!\n\t!! We need to load 4 doubles by hand.\n\t!!\nL104:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L104\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f6\n\tldd\t[%o0], %f8\n\tinc\t8, %o0\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:\n\tinc\tBLOCK_SIZE, %o0\n3:\n\tfaligndata\t%f6, %f8, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f8, %f10, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f10, %f12, %f36\n\tfaligndata\t%f12, %f14, %f38\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:30", "text": "inc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:\n\tinc\tBLOCK_SIZE, %o0\n3:\n\tfaligndata\t%f6, %f8, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f8, %f10, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f10, %f12, %f36\n\tfaligndata\t%f12, %f14, %f38\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f40\n\tfaligndata\t%f16, %f18, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f20, %f22, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f22, %f24, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f24, %f26, %f34\n\tfaligndata\t%f26, %f28, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f28, %f30, %f38\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f40\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f48, %f50, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f50, %f52, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f52, %f54, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f54, %f56, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f56, %f58, %f34\n\tfaligndata\t%f58, %f60, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f60, %f62, %f38\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:31", "text": "faligndata\t%f30, %f48, %f40\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f48, %f50, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f50, %f52, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f52, %f54, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f54, %f56, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f56, %f58, %f34\n\tfaligndata\t%f58, %f60, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f60, %f62, %f38\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f40\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f0, %f2, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f2, %f4, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f4, %f6, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\t!!\n\t!! Source at BLOCK_ALIGN+40\n\t!!\n\t!! We need to load 3 doubles by hand.\n\t!!\nL105:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L105\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f8\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:32", "text": "ba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L105\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f8\n\tldd\t[%o0], %f10\n\tinc\t8, %o0\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:\n\tinc\tBLOCK_SIZE, %o0\n3:\n\tfaligndata\t%f8, %f10, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f10, %f12, %f34\n\tfaligndata\t%f12, %f14, %f36\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f38\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f16, %f18, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f42\n\tfaligndata\t%f20, %f22, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f22, %f24, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f24, %f26, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f26, %f28, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f28, %f30, %f36\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f48, %f50, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f50, %f52, %f42\n\tfaligndata\t%f52, %f54, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f54, %f56, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:33", "text": "faligndata\t%f24, %f26, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f26, %f28, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f28, %f30, %f36\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f48, %f50, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f50, %f52, %f42\n\tfaligndata\t%f52, %f54, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f54, %f56, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f56, %f58, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f58, %f60, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f60, %f62, %f36\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f0, %f2, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f2, %f4, %f42\n\tfaligndata\t%f4, %f6, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f6, %f8, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\n\t!!\n\t!! Source at BLOCK_ALIGN+48\n\t!!\n\t!! We need to load 2 doubles by hand.\n\t!!\nL106:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L106\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f10", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:34", "text": "ba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\n\t!!\n\t!! Source at BLOCK_ALIGN+48\n\t!!\n\t!! We need to load 2 doubles by hand.\n\t!!\nL106:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L106\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f10\n\tldd\t[%o0], %f12\n\tinc\t8, %o0\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:\n\tinc\tBLOCK_SIZE, %o0\n3:\n\tfaligndata\t%f10, %f12, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f12, %f14, %f34\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f16, %f18, %f38\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f40\n\tfaligndata\t%f20, %f22, %f42\n\tfaligndata\t%f22, %f24, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f24, %f26, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f26, %f28, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f28, %f30, %f34\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f36\n\tdec\tBLOCK_SIZE, %o2", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:35", "text": "dec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f16, %f18, %f38\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f40\n\tfaligndata\t%f20, %f22, %f42\n\tfaligndata\t%f22, %f24, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f24, %f26, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f26, %f28, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f28, %f30, %f34\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f48, %f50, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f50, %f52, %f40\n\tfaligndata\t%f52, %f54, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f54, %f56, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f56, %f58, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f58, %f60, %f32\n\tcmp\t%o0, %o5\n\tfaligndata\t%f60, %f62, %f34\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f36\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f0, %f2, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f2, %f4, %f40\n\tfaligndata\t%f4, %f6, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f6, %f8, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f8, %f10, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\n\t!!\n\t!! Source at BLOCK_ALIGN+56\n\t!!\n\t!! We need to load 1 double by hand.\n\t!!\nL107:", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:36", "text": "faligndata\t%f0, %f2, %f38\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f2, %f4, %f40\n\tfaligndata\t%f4, %f6, %f42\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f6, %f8, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f8, %f10, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\n\n\t!!\n\t!! Source at BLOCK_ALIGN+56\n\t!!\n\t!! We need to load 1 double by hand.\n\t!!\nL107:\n#ifdef RETURN_NAME\n\tsethi\t%hi(1f), %g1\n\tba,pt\t%icc, 2f\n\t or\t%g1, %lo(1f), %g1\n1:\n\t.asciz\t\"L107\"\n\t.align\t8\n2:\n#endif\n\tfmovd\t%f0, %f12\n\tldd\t[%o0], %f14\n\tinc\t8, %o0\n\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar #Sync\n2:\n\tinc\tBLOCK_SIZE, %o0\n3:\n\tfaligndata\t%f12, %f14, %f32\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f16, %f18, %f36\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f38\n\tfaligndata\t%f20, %f22, %f40\n\tfaligndata\t%f22, %f24, %f42\n\tfaligndata\t%f24, %f26, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f26, %f28, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f28, %f30, %f32", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:37", "text": "faligndata\t%f12, %f14, %f32\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f48\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f14, %f16, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f16, %f18, %f36\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f18, %f20, %f38\n\tfaligndata\t%f20, %f22, %f40\n\tfaligndata\t%f22, %f24, %f42\n\tfaligndata\t%f24, %f26, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f26, %f28, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f28, %f30, %f32\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f0\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f30, %f48, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f48, %f50, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f50, %f52, %f38\n\tfaligndata\t%f52, %f54, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f54, %f56, %f42\n\tfaligndata\t%f56, %f58, %f44\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f58, %f60, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\n\tfaligndata\t%f60, %f62, %f32\n\tcmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f0, %f2, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f2, %f4, %f38\n\tfaligndata\t%f4, %f6, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f6, %f8, %f42\n\tfaligndata\t%f8, %f10, %f44\n\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f10, %f12, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:38", "text": "cmp\t%o0, %o5\n\tbleu,a,pn\t%icc, 2f\n\t ldda\t[%o0] ASI_BLK_P, %f16\n\tmembar\t#Sync\n2:\n\tfaligndata\t%f62, %f0, %f34\n\tdec\tBLOCK_SIZE, %o2\n\tfaligndata\t%f0, %f2, %f36\n\tinc\tBLOCK_SIZE, %o1\n\tfaligndata\t%f2, %f4, %f38\n\tfaligndata\t%f4, %f6, %f40\n\tinc\tBLOCK_SIZE, %o0\n\tfaligndata\t%f6, %f8, %f42\n\tfaligndata\t%f8, %f10, %f44\n\n\tbrlez,pn\t%o2, Lmemcpy_blockdone\n\t faligndata\t%f10, %f12, %f46\n\n\tstda\t%f32, [%o1] ASI_STORE\n\tba\t3b\n\t inc\tBLOCK_SIZE, %o1\n\nLmemcpy_blockdone:\n\tinc\tBLOCK_SIZE, %o2\t\t\t\t! Fixup our overcommit\n\tmembar\t#Sync\t\t\t\t\t! Finish any pending loads\n#define\tFINISH_REG(f)\t\t\t\t\\\n\tdeccc\t8, %o2;\t\t\t\t\\\n\tbl,a\tLmemcpy_blockfinish;\t\t\\\n\t fmovd\tf, %f48;\t\t\t\\\n\tstd\tf, [%o1];\t\t\t\\\n\tinc\t8, %o1\n\n\tFINISH_REG(%f32)\n\tFINISH_REG(%f34)\n\tFINISH_REG(%f36)\n\tFINISH_REG(%f38)\n\tFINISH_REG(%f40)\n\tFINISH_REG(%f42)\n\tFINISH_REG(%f44)\n\tFINISH_REG(%f46)\n\tFINISH_REG(%f48)\n#undef FINISH_REG\n\t!!\n\t!! The low 3 bits have the sub-word bits needed to be\n\t!! stored [because (x-8)&0x7 == x].\n\t!!\nLmemcpy_blockfinish:\n\tbrz,pn\t%o2, 2f\t\t\t\t\t! 100% complete?\n\t fmovd\t%f48, %f4\n\tcmp\t%o2, 8\t\t\t\t\t! Exactly 8 bytes?\n\tbz,a,pn\tCCCR, 2f\n\t std\t%f4, [%o1]\n\n\tbtst\t4, %o2\t\t\t\t\t! Word store?\n\tbz\tCCCR, 1f\n\t nop\n\tst\t%f4, [%o1]\n\tinc\t4, %o1\n1:\n\tbtst\t2, %o2", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:39", "text": "FINISH_REG(%f48)\n#undef FINISH_REG\n\t!!\n\t!! The low 3 bits have the sub-word bits needed to be\n\t!! stored [because (x-8)&0x7 == x].\n\t!!\nLmemcpy_blockfinish:\n\tbrz,pn\t%o2, 2f\t\t\t\t\t! 100% complete?\n\t fmovd\t%f48, %f4\n\tcmp\t%o2, 8\t\t\t\t\t! Exactly 8 bytes?\n\tbz,a,pn\tCCCR, 2f\n\t std\t%f4, [%o1]\n\n\tbtst\t4, %o2\t\t\t\t\t! Word store?\n\tbz\tCCCR, 1f\n\t nop\n\tst\t%f4, [%o1]\n\tinc\t4, %o1\n1:\n\tbtst\t2, %o2\n\tfzero\t%f0\n\tbz\t1f\n\n\t mov\t-6, %o4\n\talignaddr %o1, %o4, %g0\n\n\tfaligndata %f0, %f4, %f8\n\n\tstda\t%f8, [%o1] ASI_FL16_P\t\t\t! Store short\n\tinc\t2, %o1\n1:\n\tbtst\t1, %o2\t\t\t\t\t! Byte aligned?\n\tbz\t2f\n\n\t mov\t-7, %o0\t\t\t\t\t! Calculate dest - 7\n\talignaddr %o1, %o0, %g0\t\t\t\t! Calculate shift mask and dest.\n\n\tfaligndata %f0, %f4, %f8\t\t\t! Move 1st byte to low part of f8\n\n\tstda\t%f8, [%o1] ASI_FL8_P\t\t\t! Store 1st byte\n\tinc\t1, %o1\t\t\t\t\t! Update address\n2:\n\tmembar\t#Sync\n#if 0\n\t!!\n\t!! verify copy success.\n\t!!\n\n\tmov\t%i0, %o2\n\tmov\t%i1, %o4\n\tmov\t%i2, %l4\n0:\n\tldub\t[%o2], %o1\n\tinc\t%o2\n\tldub\t[%o4], %o3\n\tinc\t%o4\n\tcmp\t%o3, %o1\n\tbnz\t1f\n\t dec\t%l4\n\tbrnz\t%l4, 0b", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:40", "text": "inc\t1, %o1\t\t\t\t\t! Update address\n2:\n\tmembar\t#Sync\n#if 0\n\t!!\n\t!! verify copy success.\n\t!!\n\n\tmov\t%i0, %o2\n\tmov\t%i1, %o4\n\tmov\t%i2, %l4\n0:\n\tldub\t[%o2], %o1\n\tinc\t%o2\n\tldub\t[%o4], %o3\n\tinc\t%o4\n\tcmp\t%o3, %o1\n\tbnz\t1f\n\t dec\t%l4\n\tbrnz\t%l4, 0b\n\t nop\n\tba\t2f\n\t nop\n\n1:\n\tset\tblock_disable, %o0\n\tstx\t%o0, [%o0]\n\n\tset\t0f, %o0\n\tcall\tprom_printf\n\t sub\t%i2, %l4, %o5\n\tset\t1f, %o0\n\tmov\t%i0, %o2\n\tmov\t%i1, %o1\n\tcall\tprom_printf\n\t mov\t%i2, %o3\n\tta\t1\n\t.data\n\t_ALIGN\n0:\t.asciz\t\"block memcpy failed: %x@%p != %x@%p byte %d\\r\\n\"\n1:\t.asciz\t\"memcpy(%p, %p, %lx)\\r\\n\"\n\t_ALIGN\n\t.text\n2:\n#endif\n#if defined(_KERNEL) && !defined(_RUMPKERNEL)\n\n/*\n * Weve saved our possible fpstate, now disable the fpu\n * and continue with life.\n */\n\tRESTORE_FPU\n\tret\n\t restore\t%g1, 0, %o0\t\t\t! Return DEST for memcpy\n#endif\n \tretl\n\t mov\t%g1, %o0\n/*\n * Use block_disable to turn off block insns for\n * memcpy/memset", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memcpy.S:41", "text": "1:\t.asciz\t\"memcpy(%p, %p, %lx)\\r\\n\"\n\t_ALIGN\n\t.text\n2:\n#endif\n#if defined(_KERNEL) && !defined(_RUMPKERNEL)\n\n/*\n * Weve saved our possible fpstate, now disable the fpu\n * and continue with life.\n */\n\tRESTORE_FPU\n\tret\n\t restore\t%g1, 0, %o0\t\t\t! Return DEST for memcpy\n#endif\n \tretl\n\t mov\t%g1, %o0\n/*\n * Use block_disable to turn off block insns for\n * memcpy/memset\n */\n\t.data\n\t.align\t8\n\t.globl\tblock_disable\nblock_disable:\t.xword\t1\n\t.text\n#endif\t/* USE_BLOCK_STORE_LOAD */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memcpy.S", "line_start": 1601, "line_end": 1627}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memset.S:2", "text": "* We want to use VIS instructions if we're clearing out more than\n * 256 bytes, but to do that we need to properly save and restore the\n * FP registers.  Unfortunately the code to do that in the kernel needs\n * to keep track of the current owner of the FPU, hence the different\n * code.\n *\n * XXXXX To produce more efficient code, we do not allow lengths\n * greater than 0x80000000000000000, which are negative numbers.\n * This should not really be an issue since the VA hole should\n * cause any such ranges to fail anyway.\n */\n#if !defined(_KERNEL) || defined(_RUMPKERNEL)\nENTRY(bzero)\n\t! %o0 = addr, %o1 = len\n\tmov\t%o1, %o2\n\tclr\t%o1\t\t\t! ser pattern\n#endif\nENTRY(memset)\n\t! %o0 = addr, %o1 = pattern, %o2 = len\n\tmov\t%o0, %o4\t\t! Save original pointer\n\nLmemset_internal:\n\tbtst\t7, %o0\t\t\t! Word aligned?\n\tbz,pn\t%xcc, 0f\n\t nop\n\tinc\t%o0\n\tdeccc\t%o2\t\t\t! Store up to 7 bytes\n\tbge,a,pt\tCCCR, Lmemset_internal\n\t stb\t%o1, [%o0 - 1]\n\n\tretl\t\t\t\t! Duplicate Lmemset_done\n\t mov\t%o4, %o0\n0:\n\t/*\n\t * Duplicate the pattern so it fills 64-bits.\n\t */\n\tandcc\t%o1, 0x0ff, %o1\t\t! No need to extend zero\n\tbz,pt\t%icc, 1f\n\t sllx\t%o1, 8, %o3\t\t! sigh.  all dependent insns.\n\tor\t%o1, %o3, %o1\n\tsllx\t%o1, 16, %o3\n\tor\t%o1, %o3, %o1\n\tsllx\t%o1, 32, %o3\n\t or\t%o1, %o3, %o1\n1:\n#ifdef USE_BLOCK_STORE_LOAD\n\t!! Now we are 64-bit aligned\n\tcmp\t%o2, 256\t\t! Use block clear if len > 256\n\tbge,pt\tCCCR, Lmemset_block\t! use block store insns\n#endif\t/* USE_BLOCK_STORE_LOAD */\n\t deccc\t8, %o2\nLmemset_longs:\n\tbl,pn\tCCCR, Lmemset_cleanup\t! Less than 8 bytes left\n\t nop\n3:\n\tinc\t8, %o0\n\tdeccc\t8, %o2\n\tbge,pt\tCCCR, 3b\n\t stx\t%o1, [%o0 - 8]\t\t! Do 1 longword at a time", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memset.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memset.S:3", "text": "sllx\t%o1, 16, %o3\n\tor\t%o1, %o3, %o1\n\tsllx\t%o1, 32, %o3\n\t or\t%o1, %o3, %o1\n1:\n#ifdef USE_BLOCK_STORE_LOAD\n\t!! Now we are 64-bit aligned\n\tcmp\t%o2, 256\t\t! Use block clear if len > 256\n\tbge,pt\tCCCR, Lmemset_block\t! use block store insns\n#endif\t/* USE_BLOCK_STORE_LOAD */\n\t deccc\t8, %o2\nLmemset_longs:\n\tbl,pn\tCCCR, Lmemset_cleanup\t! Less than 8 bytes left\n\t nop\n3:\n\tinc\t8, %o0\n\tdeccc\t8, %o2\n\tbge,pt\tCCCR, 3b\n\t stx\t%o1, [%o0 - 8]\t\t! Do 1 longword at a time\n\n\t/*\n\t * Len is in [-8..-1] where -8 => done, -7 => 1 byte to zero,\n\t * -6 => two bytes, etc.  Mop up this remainder, if any.\n\t */\nLmemset_cleanup:\n\tbtst\t4, %o2\n\tbz,pt\tCCCR, 5f\t\t! if (len & 4) {\n\t nop\n\tstw\t%o1, [%o0]\t\t!\t*(int *)addr = 0;\n\tinc\t4, %o0\t\t\t!\taddr += 4;\n5:\n\tbtst\t2, %o2\n\tbz,pt\tCCCR, 7f\t\t! if (len & 2) {\n\t nop\n\tsth\t%o1, [%o0]\t\t!\t*(short *)addr = 0;\n\tinc\t2, %o0\t\t\t!\taddr += 2;\n7:\n\tbtst\t1, %o2\n\tbnz,a\t%icc, Lmemset_done\t! if (len & 1)\n\t stb\t%o1, [%o0]\t\t!\t*addr = 0;\nLmemset_done:\n\tretl\n\t mov\t%o4, %o0\t\t! Restore pointer for memset (ugh)\n\n#ifdef USE_BLOCK_STORE_LOAD\nLmemset_block:\n\tsethi\t%hi(block_disable), %o3\n\tldx\t[ %o3 + %lo(block_disable) ], %o3\n\tbrnz,pn\t%o3, Lmemset_longs\n\t!! Make sure our trap table is installed\n\tset\t_C_LABEL(trapbase), %o5\n\trdpr\t%tba, %o3\n\tsub\t%o3, %o5, %o3\n\tbrnz,pn\t%o3, Lmemset_longs\t! No, then don't use block load/store\n\t nop\n/*\n * Kernel:\n *\n * Here we use VIS instructions to do a block clear of a page.\n * But before we can do that we need to save and enable the FPU.", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memset.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memset.S:4", "text": "Lmemset_done:\n\tretl\n\t mov\t%o4, %o0\t\t! Restore pointer for memset (ugh)\n\n#ifdef USE_BLOCK_STORE_LOAD\nLmemset_block:\n\tsethi\t%hi(block_disable), %o3\n\tldx\t[ %o3 + %lo(block_disable) ], %o3\n\tbrnz,pn\t%o3, Lmemset_longs\n\t!! Make sure our trap table is installed\n\tset\t_C_LABEL(trapbase), %o5\n\trdpr\t%tba, %o3\n\tsub\t%o3, %o5, %o3\n\tbrnz,pn\t%o3, Lmemset_longs\t! No, then don't use block load/store\n\t nop\n/*\n * Kernel:\n *\n * Here we use VIS instructions to do a block clear of a page.\n * But before we can do that we need to save and enable the FPU.\n * The last owner of the FPU registers is fplwp, and\n * fplwp->l_md.md_fpstate is the current fpstate.  If that's not\n * null, call savefpstate() with it to store our current fp state.\n *\n * Next, allocate an aligned fpstate on the stack.  We will properly\n * nest calls on a particular stack so this should not be a problem.\n *\n * Now we grab either curlwp (or if we're on the interrupt stack\n * lwp0).  We stash its existing fpstate in a local register and\n * put our new fpstate in curlwp->p_md.md_fpstate.  We point\n * fplwp at curlwp (or lwp0) and enable the FPU.\n *\n * If we are ever preempted, our FPU state will be saved in our\n * fpstate.  Then, when we're resumed and we take an FPDISABLED\n * trap, the trap handler will be able to fish our FPU state out\n * of curlwp (or lwp0).\n *\n * On exiting this routine we undo the damage: restore the original\n * pointer to curlwp->p_md.md_fpstate, clear our fplwp, and disable\n * the MMU.\n *\n */\n\n\tENABLE_FPU(0)\n\n\t!! We are now 8-byte aligned.  We need to become 64-byte aligned.\n\tbtst\t63, %i0\n\tbz,pt\tCCCR, 2f\n\t nop\n1:\n\tstx\t%i1, [%i0]\n\tinc\t8, %i0\n\tbtst\t63, %i0\n\tbnz,pt\t%xcc, 1b\n\t dec\t8, %i2\n\n2:\n\tbrz\t%i1, 3f\t\t\t\t\t! Skip the memory op\n\t fzero\t%f0\t\t\t\t\t! if pattern is 0", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memset.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memset.S:5", "text": "*\n */\n\n\tENABLE_FPU(0)\n\n\t!! We are now 8-byte aligned.  We need to become 64-byte aligned.\n\tbtst\t63, %i0\n\tbz,pt\tCCCR, 2f\n\t nop\n1:\n\tstx\t%i1, [%i0]\n\tinc\t8, %i0\n\tbtst\t63, %i0\n\tbnz,pt\t%xcc, 1b\n\t dec\t8, %i2\n\n2:\n\tbrz\t%i1, 3f\t\t\t\t\t! Skip the memory op\n\t fzero\t%f0\t\t\t\t\t! if pattern is 0\n\n#ifdef _LP64\n\tstx\t%i1, [%i0]\t\t\t\t! Flush this puppy to RAM\n\tmembar\t#StoreLoad\n\tldd\t[%i0], %f0\n#else\n\tstw\t%i1, [%i0]\t\t\t\t! Flush this puppy to RAM\n\tmembar\t#StoreLoad\n\tld\t[%i0], %f0\n\tfmovsa\t%icc, %f0, %f1\n#endif\n\n3:\n\tfmovd\t%f0, %f2\t\t\t\t! Duplicate the pattern\n\tfmovd\t%f0, %f4\n\tfmovd\t%f0, %f6\n\tfmovd\t%f0, %f8\n\tfmovd\t%f0, %f10\n\tfmovd\t%f0, %f12\n\tfmovd\t%f0, %f14\n\n\t!! Remember: we were 8 bytes too far\n\tdec\t56, %i2\t\t\t\t\t! Go one iteration too far\n5:\n\tstda\t%f0, [%i0] ASI_STORE\t\t\t! Store 64 bytes\n\tdeccc\tBLOCK_SIZE, %i2\n\tbg,pt\t%icc, 5b\n\t inc\tBLOCK_SIZE, %i0\n\n\tmembar\t#Sync\n/*\n * We've saved our possible fpstate, now disable the fpu\n * and continue with life.\n */\n\tRESTORE_FPU\n\taddcc\t%i2, 56, %i2\t\t\t\t! Restore the count\n\tba,pt\t%xcc, Lmemset_longs\t\t\t! Finish up the remainder\n\t restore\n#endif\t/* USE_BLOCK_STORE_LOAD */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memset.S", "line_start": 161, "line_end": 218}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/memset.S:6", "text": "!! Remember: we were 8 bytes too far\n\tdec\t56, %i2\t\t\t\t\t! Go one iteration too far\n5:\n\tstda\t%f0, [%i0] ASI_STORE\t\t\t! Store 64 bytes\n\tdeccc\tBLOCK_SIZE, %i2\n\tbg,pt\t%icc, 5b\n\t inc\tBLOCK_SIZE, %i0\n\n\tmembar\t#Sync\n/*\n * We've saved our possible fpstate, now disable the fpu\n * and continue with life.\n */\n\tRESTORE_FPU\n\taddcc\t%i2, 56, %i2\t\t\t\t! Restore the count\n\tba,pt\t%xcc, Lmemset_longs\t\t\t! Finish up the remainder\n\t restore\n#endif\t/* USE_BLOCK_STORE_LOAD */", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/memset.S", "line_start": 201, "line_end": 218}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/strlen.S:2", "text": "#if defined(LIBC_SCCS) && !defined(lint)\n\tRCSID(\"$NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $\")\n#endif /* LIBC_SCCS and not lint */\n\n/* The algorithm here uses the following techniques:\n *\n * 1) Given a word 'x', we can test to see if it contains any 0 bytes\n *    by subtracting 0x01010101, and seeing if any of the high bits of each\n *    byte changed from 0 to 1. This works because the least significant\n *    0 byte must have had no incoming carry (otherwise it's not the least\n *    significant), so it is 0x00 - 0x01 == 0xff. For all other\n *    byte values, either they have the high bit set initially, or when\n *    1 is subtracted you get a value in the range 0x00-0x7f, none of which\n *    have their high bit set. The expression here is\n *    (x + 0xfefefeff) & ~(x | 0x7f7f7f7f), which gives 0x00000000 when\n *    there were no 0x00 bytes in the word.\n *\n * 2) Now just hunt for the first byte that's 0x00 in 'x'.\n *\n *    This is from the book 'The PowerPC Compiler Writer's Guide',\n *    by Steve Hoxey, Faraydon Karim, Bill Hay and Hank Warren.\n */\n\nENTRY(strlen)\n\t/*\n\t * Calculate address for and load the first xword.\n\t */\n\tandn\t%o0, 0x7, %o1\n\tldx\t[%o1], %g1\n\n\t/*\n\t * Now prepare some constants while the data arrives...\n\t */\n\tsethi\t%hi(0xfefefefe), %o3\n\tsethi\t%hi(0x7f7f7f7f), %o2\n\n\tor\t%o3, %lo(0xfefefefe), %o3\n\tor\t%o2, %lo(0x7f7f7f7f), %o2\n\n\tsllx\t%o3, 32, %o5\n\tandcc\t%o0, 0x7, %g5\t! Hoisted from below to fill a slot\n\n\tsllx\t%o2, 32, %o4\n\tor\t%o3, %o5, %o3\n\n\tsll\t%g5, 3,\t%g5\t! Convert to bytes. hoisted\n\tor\t%o2, %o4, %o2\n\n\tinc\t%o3\n\tneg\t%g5\t\t! hoisted\n\n\t/*\n\t * Mask off the leading bits:\n\t *\n\t * if (ptr & 0x7)\n\t *\tmask = -1 << (64 - ((ptr & 0x7) << 3));\n\t */\n\n!\tandcc\t%o0, 0x7, %g5\t! Hoisted above\n\tbz,pt\t%icc, 0f", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/strlen.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/strlen.S:3", "text": "andcc\t%o0, 0x7, %g5\t! Hoisted from below to fill a slot\n\n\tsllx\t%o2, 32, %o4\n\tor\t%o3, %o5, %o3\n\n\tsll\t%g5, 3,\t%g5\t! Convert to bytes. hoisted\n\tor\t%o2, %o4, %o2\n\n\tinc\t%o3\n\tneg\t%g5\t\t! hoisted\n\n\t/*\n\t * Mask off the leading bits:\n\t *\n\t * if (ptr & 0x7)\n\t *\tmask = -1 << (64 - ((ptr & 0x7) << 3));\n\t */\n\n!\tandcc\t%o0, 0x7, %g5\t! Hoisted above\n\tbz,pt\t%icc, 0f\n\n\n!\t sll\t%g5, 3,\t%g5\t! Convert to bytes. Also hoisted\n\n!\tneg\t%g5\t\t! Hoisted\n\n\t add\t%g5, 64, %g5\n\tmov\t-1, %o4\n\n\tsllx\t%o4, %g5, %o4\n\n\tor\t%o4, %g1, %g1\t! Make leading bytes != 0\n\n0:\n\tor\t%g1, %o2, %o5\t! Do step 1 -- use or/andn instead of nor/and\n\tadd\t%g1, %o3, %g5\n\n\tinc\t8, %o1\t\t! Point to next word\n\tandncc\t%g5, %o5, %g0\n\tbz,a,pt\t%xcc, 0b\n\t ldx\t[%o1], %g1\n\n\tmov\t-1, %o4\n\tdec\t8, %o1\n\n\tsllx\t%o4, 64-8, %o5\n\n\tbtst\t%g1, %o5\t! Check high byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 2nd byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 3rd byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/strlen.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/sparc64/string/strlen.S:4", "text": "ldx\t[%o1], %g1\n\n\tmov\t-1, %o4\n\tdec\t8, %o1\n\n\tsllx\t%o4, 64-8, %o5\n\n\tbtst\t%g1, %o5\t! Check high byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 2nd byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 3rd byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 4th byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 5th byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 6th byte\n\tbz\t%xcc,0f\n\t srlx\t%o5, 8, %o5\n\n\tinc\t%o1\n\tbtst\t%g1, %o5\t! Check 7th byte\n\tbz\t%xcc,0f\n\t nop\n\n\tinc\t%o1\n0:\n\tretl\n\t sub\t%o1, %o0, %o0\t! return length (ptr - (origptr+1))", "arch": "sparc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/sparc64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/sparc64/string/strlen.S", "line_start": 121, "line_end": 165}
{"id": "NetBSD/src:common/lib/libc/arch/vax/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.9 2023/03/30 15:03:36 riastradh Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \\\n\tatomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \\\n\tatomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \\\n\tatomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c\n\n.if ${LIB} == \"c\"\nSRCS+=\tatomic_add_16_cas.c atomic_add_8_cas.c\t\\\n\tatomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c\t\\\n\tatomic_or_16_cas.c atomic_or_8_cas.c\t\\\n\tatomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c\t\\\n\tatomic_and_16_cas.c atomic_and_8_cas.c\t\\\n\tatomic_and_16_nv_cas.c atomic_and_8_nv_cas.c\t\\\n\tatomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c\t\\\n\tatomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c\t\\\n\tatomic_swap_16_cas.c atomic_swap_8_cas.c \\\n\tatomic_c11_compare_exchange_cas_32.c\t\\\n\tatomic_c11_compare_exchange_cas_16.c\t\\\n\tatomic_c11_compare_exchange_cas_8.c\t\\\n\tatomic_is_lock_free.c\n.endif\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_testset.c\n\n.endif", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/atomic/Makefile.inc", "line_start": 1, "line_end": 33}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/bswap16.S:1", "text": "/*\t$NetBSD: bswap16.S,v 1.3 2011/01/25 04:45:28 matt Exp $\t*/\n\n/*-\n * Copyright (c) 1999 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: bswap16.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\n#if defined(_KERNEL) || defined(_STANDALONE)\nALTENTRY(_C_LABEL(bswap16))\n#else\nALTENTRY(_C_LABEL(ntohs))\nALTENTRY(_C_LABEL(htons))\n#endif\nENTRY(_C_LABEL(__bswap16), 0)\n\tmovl\t4(%ap), %r1\n\textzv\t$8, $8, %r1, %r0\n\tinsv\t%r1, $8, $8, %r0\n\tret\nEND(_C_LABEL(__bswap16))", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/bswap16.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/bswap16.S", "line_start": 1, "line_end": 47}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/bswap32.S:1", "text": "/*\t$NetBSD: bswap32.S,v 1.3 2011/01/25 04:45:28 matt Exp $\t*/\n\n/*-\n * Copyright (c) 1997 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Matt Thomas.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: bswap32.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\n#if defined(_KERNEL) || defined(_STANDALONE)\nALTENTRY(_C_LABEL(bswap32))\n#else\nALTENTRY(_C_LABEL(ntohl))\nALTENTRY(_C_LABEL(htonl))\n#endif\nENTRY(_C_LABEL(__bswap32), 0)\n\trotl    $-8, 4(%ap), %r0\n\tinsv    %r0, $16, $8, %r0\n\trotl    $8, 4(%ap), %r1\n\tmovb    %r1, %r0\n\tret\nEND(_C_LABEL(__bswap32))", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/bswap32.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/bswap32.S", "line_start": 1, "line_end": 48}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/bswap64.S:1", "text": "/* Written by Anders Magnusson. Public Domain */\n\n#include <machine/asm.h>\n\nRCSID(\"$NetBSD: bswap64.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\nENTRY(bswap64, 0)\n        movq 4(%ap),%r3\n\trotl $-8,%r3,%r1\n\tinsv %r1,$16,$8,%r1\n\trotl $8,%r3,%r2\n\tmovb %r2,%r1\n\trotl $-8,%r4,%r0\n\tinsv %r0,$16,$8,%r0\n\trotl $8,%r4,%r2\n\tmovb %r2,%r0\n\tret\nEND(bswap64)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/bswap64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/bswap64.S", "line_start": 1, "line_end": 18}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/udiv.S:1", "text": "/*-\n * Copyright (c) 1991, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * Donn Seeley at UUNET Technologies, Inc.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n\t/* .asciz \"@(#)udiv.s\t8.1 (Berkeley) 6/4/93\" */\nRCSID(\"$NetBSD: udiv.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\n/*\n * Unsigned division, PCC flavor.\n * udiv() takes an ordinary dividend/divisor pair;\n * audiv() takes a pointer to a dividend and an ordinary divisor.\n */\n\n#define\tDIVIDEND\t4(%ap)\n#define\tDIVISOR\t\t8(%ap)\n\nASENTRY(__udiv,0)\n\tmovl\tDIVISOR,%r2\n\tjlss\tLeasy\t\t# big divisor: settle by comparison\n\tmovl\tDIVIDEND,%r0\n\tjlss\tLhard\t\t# big dividend: extended division\n\tdivl2\t%r2,%r0\t\t# small divisor and dividend: signed division\n\tret\nLhard:\n\tclrl\t%r1\n\tediv\t%r2,%r0,%r0,%r1\n\tret\nLeasy:\n\tcmpl\tDIVIDEND,%r2\n\tjgequ\tLone\t\t# if dividend is as big or bigger, return 1", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/udiv.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/udiv.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/udiv.S:2", "text": "* audiv() takes a pointer to a dividend and an ordinary divisor.\n */\n\n#define\tDIVIDEND\t4(%ap)\n#define\tDIVISOR\t\t8(%ap)\n\nASENTRY(__udiv,0)\n\tmovl\tDIVISOR,%r2\n\tjlss\tLeasy\t\t# big divisor: settle by comparison\n\tmovl\tDIVIDEND,%r0\n\tjlss\tLhard\t\t# big dividend: extended division\n\tdivl2\t%r2,%r0\t\t# small divisor and dividend: signed division\n\tret\nLhard:\n\tclrl\t%r1\n\tediv\t%r2,%r0,%r0,%r1\n\tret\nLeasy:\n\tcmpl\tDIVIDEND,%r2\n\tjgequ\tLone\t\t# if dividend is as big or bigger, return 1\n\tclrl\t%r0\t\t# else return 0\n\tret\nLone:\n\tmovl\t$1,%r0\n\tret\nEND(__udiv)\n\nASENTRY(__audiv,0)\n\tmovl\tDIVIDEND,%r3\n\tmovl\tDIVISOR,%r2\n\tjlss\tLa_easy\t\t# big divisor: settle by comparison\n\tmovl\t(%r3),%r0\n\tjlss\tLa_hard\t\t# big dividend: extended division\n\tdivl2\t%r2,%r0\t\t# small divisor and dividend: signed division\n\tmovl\t%r0,(%r3)\t\t# leave the value of the assignment in %r0\n\tret\nLa_hard:\n\tclrl\t%r1\n\tediv\t%r2,%r0,%r0,%r1\n\tmovl\t%r0,(%r3)\n\tret\nLa_easy:\n\tcmpl\t(%r3),%r2\n\tjgequ\tLa_one\t\t# if dividend is as big or bigger, return 1\n\tclrl\t%r0\t\t# else return 0\n\tclrl\t(%r3)\n\tret\nLa_one:\n\tmovl\t$1,%r0\n\tmovl\t%r0,(%r3)\n\tret\nEND(__audiv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/udiv.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/udiv.S", "line_start": 41, "line_end": 92}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/udiv.S:3", "text": "ret\nLa_easy:\n\tcmpl\t(%r3),%r2\n\tjgequ\tLa_one\t\t# if dividend is as big or bigger, return 1\n\tclrl\t%r0\t\t# else return 0\n\tclrl\t(%r3)\n\tret\nLa_one:\n\tmovl\t$1,%r0\n\tmovl\t%r0,(%r3)\n\tret\nEND(__audiv)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/udiv.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/udiv.S", "line_start": 81, "line_end": 92}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/urem.S:1", "text": "/*-\n * Copyright (c) 1991, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * Donn Seeley at UUNET Technologies, Inc.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n\t/* .asciz \"@(#)urem.s\t8.1 (Berkeley) 6/4/93\" */\nRCSID(\"$NetBSD: urem.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\n/*\n * Unsigned modulus, PCC flavor.\n * urem() takes an ordinary dividend/divisor pair;\n * aurem() takes a pointer to a dividend and an ordinary divisor.\n */\n\n#define\tDIVIDEND\t4(%ap)\n#define\tDIVISOR\t\t8(%ap)\n\nASENTRY(__urem,0)\n\tmovl\tDIVISOR,%r2\n\tjlss\tLeasy\t\t# big divisor: settle by comparison\n\tmovl\tDIVIDEND,%r0\n\tjlss\tLhard\t\t# big dividend: need extended division\n\tdivl3\t%r2,%r0,%r1\t# small divisor and dividend: signed modulus\n\tmull2\t%r2,%r1\n\tsubl2\t%r1,%r0\n\tret\nLhard:\n\tclrl\t%r1\n\tediv\t%r2,%r0,%r1,%r0\n\tret\nLeasy:", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/urem.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/urem.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/urem.S:2", "text": "* aurem() takes a pointer to a dividend and an ordinary divisor.\n */\n\n#define\tDIVIDEND\t4(%ap)\n#define\tDIVISOR\t\t8(%ap)\n\nASENTRY(__urem,0)\n\tmovl\tDIVISOR,%r2\n\tjlss\tLeasy\t\t# big divisor: settle by comparison\n\tmovl\tDIVIDEND,%r0\n\tjlss\tLhard\t\t# big dividend: need extended division\n\tdivl3\t%r2,%r0,%r1\t# small divisor and dividend: signed modulus\n\tmull2\t%r2,%r1\n\tsubl2\t%r1,%r0\n\tret\nLhard:\n\tclrl\t%r1\n\tediv\t%r2,%r0,%r1,%r0\n\tret\nLeasy:\n\tsubl3\t%r2,DIVIDEND,%r0\n\tjcc\tLdifference\t# if divisor goes in once, return difference\n\tmovl\tDIVIDEND,%r0\t# if divisor is bigger, return dividend\nLdifference:\n\tret\nEND(__urem)\n\nASENTRY(__aurem,0)\n\tmovl\tDIVIDEND,%r3\n\tmovl\tDIVISOR,%r2\n\tjlss\tLa_easy\t\t# big divisor: settle by comparison\n\tmovl\t(%r3),%r0\n\tjlss\tLa_hard\t\t# big dividend: need extended division\n\tdivl3\t%r2,%r0,%r1\t# small divisor and dividend: signed modulus\n\tmull2\t%r2,%r1\n\tsubl2\t%r1,%r0\n\tmovl\t%r0,(%r3)\t\t# leave the value of the assignment in %r0\n\tret\nLa_hard:\n\tclrl\t%r1\n\tediv\t%r2,%r0,%r1,%r0\n\tmovl\t%r0,(%r3)\n\tret\nLa_easy:\n\tsubl3\t%r2,(%r3),%r0\n\tjcs\tLa_dividend\t# if divisor is bigger, leave dividend alone\n\tmovl\t%r0,(%r3)\t\t# if divisor goes in once, store difference\n\tret\nLa_dividend:\n\tmovl\t(%r3),%r0\n\tret\nEND(__aurem)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/urem.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/urem.S", "line_start": 41, "line_end": 92}
{"id": "NetBSD/src:common/lib/libc/arch/vax/gen/urem.S:3", "text": "ediv\t%r2,%r0,%r1,%r0\n\tmovl\t%r0,(%r3)\n\tret\nLa_easy:\n\tsubl3\t%r2,(%r3),%r0\n\tjcs\tLa_dividend\t# if divisor is bigger, leave dividend alone\n\tmovl\t%r0,(%r3)\t\t# if divisor goes in once, store difference\n\tret\nLa_dividend:\n\tmovl\t(%r3),%r0\n\tret\nEND(__aurem)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/gen/urem.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/gen/urem.S", "line_start": 81, "line_end": 92}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memcpy.S:1", "text": "/*\t$NetBSD: memcpy.S,v 1.3 2011/01/25 04:45:28 matt Exp $\t*/\n/*-\n * Copyright (c) 1990, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n/* .asciz \"@(#)memcpy.s\t8.1 (Berkeley) 6/4/93\" */\nRCSID(\"$NetBSD: memcpy.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\n/*\n * void *memcpy(dst, src, size)\n * returns dst\n *\n * This optimises the usual case (count < 65536) at the expense\n * of some extra memory references and branches when count >= 65536.\n */\n\nENTRY(memcpy, 0)\n\tmovzwl\t$65535,%r0\t/* %r0 = 64K (needed below) */\n\tmovq\t8(%ap),%r1\t/* %r1 = src, %r2 = length */\n\tmovl\t4(%ap),%r3\t/* %r3 = dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t1f\t\t/* normal forward case */\n\tbeql\t2f\t\t/* equal, nothing to do */\n\taddl2\t%r2,%r1\t\t/* overlaps iff src<dst but src+len>dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t4f\t\t/* overlapping, must move backwards */\n\tsubl2\t%r2,%r1\n\n1:\t/* move forward */\n\tcmpl\t%r2,%r0\n\tbgtru\t3f\t\t/* stupid movc3 limitation */\n\tmovc3\t%r2,(%r1),(%r3)\t/* move it all */\n2:", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memcpy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memcpy.S:2", "text": "* of some extra memory references and branches when count >= 65536.\n */\n\nENTRY(memcpy, 0)\n\tmovzwl\t$65535,%r0\t/* %r0 = 64K (needed below) */\n\tmovq\t8(%ap),%r1\t/* %r1 = src, %r2 = length */\n\tmovl\t4(%ap),%r3\t/* %r3 = dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t1f\t\t/* normal forward case */\n\tbeql\t2f\t\t/* equal, nothing to do */\n\taddl2\t%r2,%r1\t\t/* overlaps iff src<dst but src+len>dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t4f\t\t/* overlapping, must move backwards */\n\tsubl2\t%r2,%r1\n\n1:\t/* move forward */\n\tcmpl\t%r2,%r0\n\tbgtru\t3f\t\t/* stupid movc3 limitation */\n\tmovc3\t%r2,(%r1),(%r3)\t/* move it all */\n2:\n\tmovl\t4(%ap),%r0\t/* return original dst */\n\tret\n3:\n\tsubl2\t%r0,12(%ap)\t/* adjust length by 64K */\n\tmovc3\t%r0,(%r1),(%r3)\t/* move 64K */\n\tmovl\t12(%ap),%r2\n\tdecw\t%r0\t\t/* from 0 to 65535 */\n\tbrb\t1b\t\t/* retry */\n\n4:\t/* move backward */\n\taddl2\t%r2,%r3\n5:\n\tcmpl\t%r2,%r0\n\tbgtru\t6f\t\t/* stupid movc3 limitation */\n\tsubl2\t%r2,%r1\n\tsubl2\t%r2,%r3\n\tmovc3\t%r2,(%r1),(%r3)\t/* move it all */\n\tmovl\t4(%ap),%r0\t/* return original dst */\n\tret\n6:\n\tsubl2\t%r0,12(%ap)\t/* adjust length by 64K */\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tmovc3\t%r0,(%r1),(%r3)\t/* move 64K */\n\tmovl\t12(%ap),%r2\n\tdecw\t%r0\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tbrb\t5b\nEND(memcpy)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memcpy.S", "line_start": 41, "line_end": 90}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memcpy.S:3", "text": "subl2\t%r0,12(%ap)\t/* adjust length by 64K */\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tmovc3\t%r0,(%r1),(%r3)\t/* move 64K */\n\tmovl\t12(%ap),%r2\n\tdecw\t%r0\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tbrb\t5b\nEND(memcpy)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memcpy.S", "line_start": 81, "line_end": 90}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memmove.S:1", "text": "/*\t$NetBSD: memmove.S,v 1.3 2011/01/25 04:45:28 matt Exp $\t*/\n/*-\n * Copyright (c) 1990, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n/* .asciz \"@(#)memmove.s\t8.1 (Berkeley) 6/4/93\" */\nRCSID(\"$NetBSD: memmove.S,v 1.3 2011/01/25 04:45:28 matt Exp $\")\n\n/*\n * void *memmove(dst, src, size)\n * returns dst\n *\n * This optimises the usual case (count < 65536) at the expense\n * of some extra memory references and branches when count >= 65536.\n */\n\nENTRY(memmove, 0)\n\tmovzwl\t$65535,%r0\t/* %r0 = 64K (needed below) */\n\tmovq\t8(%ap),%r1\t/* %r1 = src, %r2 = length */\n\tmovl\t4(%ap),%r3\t/* %r3 = dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t1f\t\t/* normal forward case */\n\tbeql\t2f\t\t/* equal, nothing to do */\n\taddl2\t%r2,%r1\t\t/* overlaps iff src<dst but src+len>dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t4f\t\t/* overlapping, must move backwards */\n\tsubl2\t%r2,%r1\n\n1:\t/* move forward */\n\tcmpl\t%r2,%r0\n\tbgtru\t3f\t\t/* stupid movc3 limitation */\n\tmovc3\t%r2,(%r1),(%r3)\t/* move it all */\n2:", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memmove.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memmove.S:2", "text": "* of some extra memory references and branches when count >= 65536.\n */\n\nENTRY(memmove, 0)\n\tmovzwl\t$65535,%r0\t/* %r0 = 64K (needed below) */\n\tmovq\t8(%ap),%r1\t/* %r1 = src, %r2 = length */\n\tmovl\t4(%ap),%r3\t/* %r3 = dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t1f\t\t/* normal forward case */\n\tbeql\t2f\t\t/* equal, nothing to do */\n\taddl2\t%r2,%r1\t\t/* overlaps iff src<dst but src+len>dst */\n\tcmpl\t%r1,%r3\n\tbgtru\t4f\t\t/* overlapping, must move backwards */\n\tsubl2\t%r2,%r1\n\n1:\t/* move forward */\n\tcmpl\t%r2,%r0\n\tbgtru\t3f\t\t/* stupid movc3 limitation */\n\tmovc3\t%r2,(%r1),(%r3)\t/* move it all */\n2:\n\tmovl\t4(%ap),%r0\t/* return original dst */\n\tret\n3:\n\tsubl2\t%r0,12(%ap)\t/* adjust length by 64K */\n\tmovc3\t%r0,(%r1),(%r3)\t/* move 64K */\n\tmovl\t12(%ap),%r2\n\tdecw\t%r0\t\t/* from 0 to 65535 */\n\tbrb\t1b\t\t/* retry */\n\n4:\t/* move backward */\n\taddl2\t%r2,%r3\n5:\n\tcmpl\t%r2,%r0\n\tbgtru\t6f\t\t/* stupid movc3 limitation */\n\tsubl2\t%r2,%r1\n\tsubl2\t%r2,%r3\n\tmovc3\t%r2,(%r1),(%r3)\t/* move it all */\n\tmovl\t4(%ap),%r0\t/* return original dst */\n\tret\n6:\n\tsubl2\t%r0,12(%ap)\t/* adjust length by 64K */\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tmovc3\t%r0,(%r1),(%r3)\t/* move 64K */\n\tmovl\t12(%ap),%r2\n\tdecw\t%r0\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tbrb\t5b\nEND(memmove)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memmove.S", "line_start": 41, "line_end": 90}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memmove.S:3", "text": "subl2\t%r0,12(%ap)\t/* adjust length by 64K */\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tmovc3\t%r0,(%r1),(%r3)\t/* move 64K */\n\tmovl\t12(%ap),%r2\n\tdecw\t%r0\n\tsubl2\t%r0,%r1\n\tsubl2\t%r0,%r3\n\tbrb\t5b\nEND(memmove)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memmove.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memmove.S", "line_start": 81, "line_end": 90}
{"id": "NetBSD/src:common/lib/libc/arch/vax/string/memset.S:1", "text": "/*\t$NetBSD: memset.S,v 1.2 2011/01/25 04:45:28 matt Exp $\t*/\n/*-\n * Copyright (c) 1990, 1993\n *\tThe Regents of the University of California.  All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. Neither the name of the University nor the names of its contributors\n *    may be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n/* .asciz \"@(#)memset.s\t8.1 (Berkeley) 6/4/93\" */\nRCSID(\"$NetBSD: memset.S,v 1.2 2011/01/25 04:45:28 matt Exp $\")\n\n/* void *memset(base, c, length) */\n\nENTRY(memset, 0)\n\tmovl\t4(%ap),%r3\n1:\n\tmovzwl\t$65535,%r0\n\tmovq\t8(%ap),%r1\n\tcmpl\t%r2,%r0\n\tjgtru\t2f\n\tmovc5\t$0,(%r3),%r1,%r2,(%r3)\n\tmovl\t%r1,%r0\n\tret\n2:\n\tsubl2\t%r0,12(%ap)\n\tmovc5\t$0,(%r3),%r1,%r0,(%r3)\n\tjbr\t1b\nEND(memset)", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/vax/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/vax/string/memset.S", "line_start": 1, "line_end": 52}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $\n\n.if defined(LIB) && (${LIB} == \"kern\" || ${LIB} == \"c\" || ${LIB} == \"pthread\" \\\n\t|| ${LIB} == \"rump\")\n\nSRCS+=\tatomic.S\n\n.endif\n\n.if defined(LIB) && (${LIB} == \"c\" || ${LIB} == \"pthread\")\n\nSRCS+=\tatomic_init_cas.c\n\n.endif", "arch": "x86_64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/Makefile.inc", "line_start": 1, "line_end": 14}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:2", "text": "#ifdef _HARDKERNEL\n#include <machine/frameasm.h>\n#define\tLOCK\t\tHOTPATCH(HP_NAME_NOLOCK, 1); lock\n#else\n#define\tLOCK\t\tlock\n#endif\n\n\t.text\n\n/* 32-bit */\n\nENTRY(_atomic_add_32)\n\tLOCK\n\taddl\t%esi, (%rdi)\n\tret\nEND(_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t%esi, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\taddl\t%esi, %eax\n\tret\nEND(_atomic_add_32_nv)\n\nENTRY(_atomic_and_32)\n\tLOCK\n\tandl\t%esi, (%rdi)\n\tret\nEND(_atomic_and_32)\n\nENTRY(_atomic_and_32_nv)\n\tmovl\t(%rdi), %eax\n1:\n\tmovl\t%eax, %ecx\n\tandl\t%esi, %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%rdi)\n\tjnz\t1b\n\tmovl\t%ecx, %eax\n\tret\nEND(_atomic_and_32_nv)\n\nENTRY(_atomic_dec_32)\n\tLOCK\n\tdecl\t(%rdi)\n\tret\nEND(_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t$-1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\tdecl\t%eax\n\tret\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_inc_32)\n\tLOCK\n\tincl\t(%rdi)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:3", "text": "ret\nEND(_atomic_and_32_nv)\n\nENTRY(_atomic_dec_32)\n\tLOCK\n\tdecl\t(%rdi)\n\tret\nEND(_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t$-1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\tdecl\t%eax\n\tret\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_inc_32)\n\tLOCK\n\tincl\t(%rdi)\n\tret\nEND(_atomic_inc_32)\n\nENTRY(_atomic_inc_32_nv)\n\tmovl\t$1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\tincl\t%eax\n\tret\nEND(_atomic_inc_32_nv)\n\nENTRY(_atomic_or_32)\n\tLOCK\n\torl\t%esi, (%rdi)\n\tret\nEND(_atomic_or_32)\n\nENTRY(_atomic_or_32_nv)\n\tmovl\t(%rdi), %eax\n1:\n\tmovl\t%eax, %ecx\n\torl\t%esi, %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%rdi)\n\tjnz\t1b\n\tmovl\t%ecx, %eax\n\tret\nEND(_atomic_or_32_nv)\n\nENTRY(_atomic_swap_32)\n\tmovl\t%esi, %eax\n\txchgl\t%eax, (%rdi)\n\tret\nEND(_atomic_swap_32)\n\nENTRY(_atomic_cas_32)\n\tmovl\t%esi, %eax\n\tLOCK\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:4", "text": "movl\t%eax, %ecx\n\torl\t%esi, %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%rdi)\n\tjnz\t1b\n\tmovl\t%ecx, %eax\n\tret\nEND(_atomic_or_32_nv)\n\nENTRY(_atomic_swap_32)\n\tmovl\t%esi, %eax\n\txchgl\t%eax, (%rdi)\n\tret\nEND(_atomic_swap_32)\n\nENTRY(_atomic_cas_32)\n\tmovl\t%esi, %eax\n\tLOCK\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t%esi, %eax\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32_ni)\n\n/* 64-bit */\n\nENTRY(_atomic_add_64)\n\tLOCK\n\taddq\t%rsi, (%rdi)\n\tret\nEND(_atomic_add_64)\n\nENTRY(_atomic_add_64_nv)\n\tmovq\t%rsi, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\taddq\t%rsi, %rax\n\tret\nEND(_atomic_add_64_nv)\n\nENTRY(_atomic_and_64)\n\tLOCK\n\tandq\t%rsi, (%rdi)\n\tret\nEND(_atomic_and_64)\n\nENTRY(_atomic_and_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\tandq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:5", "text": "LOCK\n\txaddq\t%rax, (%rdi)\n\taddq\t%rsi, %rax\n\tret\nEND(_atomic_add_64_nv)\n\nENTRY(_atomic_and_64)\n\tLOCK\n\tandq\t%rsi, (%rdi)\n\tret\nEND(_atomic_and_64)\n\nENTRY(_atomic_and_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\tandq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b\n\tmovq\t%rcx, %rax\n\tret\nEND(_atomic_and_64_nv)\n\nENTRY(_atomic_dec_64)\n\tLOCK\n\tdecq\t(%rdi)\n\tret\nEND(_atomic_dec_64)\n\nENTRY(_atomic_dec_64_nv)\n\tmovq\t$-1, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\tdecq\t%rax\n\tret\nEND(_atomic_dec_64_nv)\n\nENTRY(_atomic_inc_64)\n\tLOCK\n\tincq\t(%rdi)\n\tret\nEND(_atomic_inc_64)\n\nENTRY(_atomic_inc_64_nv)\n\tmovq\t$1, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\tincq\t%rax\n\tret\nEND(_atomic_inc_64_nv)\n\nENTRY(_atomic_or_64)\n\tLOCK\n\torq\t%rsi, (%rdi)\n\tret\nEND(_atomic_or_64)\n\nENTRY(_atomic_or_64_nv)\n\tmovq\t(%rdi), %rax", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:6", "text": "incq\t(%rdi)\n\tret\nEND(_atomic_inc_64)\n\nENTRY(_atomic_inc_64_nv)\n\tmovq\t$1, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\tincq\t%rax\n\tret\nEND(_atomic_inc_64_nv)\n\nENTRY(_atomic_or_64)\n\tLOCK\n\torq\t%rsi, (%rdi)\n\tret\nEND(_atomic_or_64)\n\nENTRY(_atomic_or_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\torq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b\n\tmovq\t%rcx, %rax\n\tret\nEND(_atomic_or_64_nv)\n\nENTRY(_atomic_swap_64)\n\tmovq\t%rsi, %rax\n\txchgq\t%rax, (%rdi)\n\tret\nEND(_atomic_swap_64)\n\nENTRY(_atomic_cas_64)\n\tmovq\t%rsi, %rax\n\tLOCK\n\tcmpxchgq %rdx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64)\n\nENTRY(_atomic_cas_64_ni)\n\tmovq\t%rsi, %rax\n\tcmpxchgq %rdx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64_ni)\n\n/* memory barriers */\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:7", "text": "/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64)\n\nENTRY(_atomic_cas_64_ni)\n\tmovq\t%rsi, %rax\n\tcmpxchgq %rdx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64_ni)\n\n/* memory barriers */\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDQ,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDQ is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with paravirt_membar_sync in\n\t * sys/arch/amd64/amd64/cpufunc.S.\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:8", "text": "* the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with paravirt_membar_sync in\n\t * sys/arch/amd64/amd64/cpufunc.S.\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_64,_atomic_and_64)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_64)\nALIAS(atomic_and_ptr,_atomic_and_64)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_64_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:9", "text": "ALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_64)\nALIAS(atomic_or_ptr,_atomic_or_64)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_64_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_64,_atomic_swap_64)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:10", "text": "ALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_64)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:11", "text": "STRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 401, "line_end": 441}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:7", "text": "/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64)\n\nENTRY(_atomic_cas_64_ni)\n\tmovq\t%rsi, %rax\n\tcmpxchgq %rdx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64_ni)\n\n/* memory barriers */\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDQ,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDQ is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with xen_mb in sys/arch/amd64/amd64/cpufunc.S.\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "00d1317f303193bc6d536c94fa89a3193d111066", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/00d1317f303193bc6d536c94fa89a3193d111066/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:8", "text": "* the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with xen_mb in sys/arch/amd64/amd64/cpufunc.S.\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_64,_atomic_and_64)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_64)\nALIAS(atomic_and_ptr,_atomic_and_64)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_64_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "00d1317f303193bc6d536c94fa89a3193d111066", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/00d1317f303193bc6d536c94fa89a3193d111066/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:9", "text": "ALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_64)\nALIAS(atomic_or_ptr,_atomic_or_64)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_64_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_64,_atomic_swap_64)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "00d1317f303193bc6d536c94fa89a3193d111066", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/00d1317f303193bc6d536c94fa89a3193d111066/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:10", "text": "ALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_64)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "00d1317f303193bc6d536c94fa89a3193d111066", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/00d1317f303193bc6d536c94fa89a3193d111066/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:1", "text": "/*\t$NetBSD: atomic.S,v 1.30 2024/07/16 22:44:38 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe, and by Andrew Doran.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/param.h>\n#include <machine/asm.h>\n\n#ifdef _KERNEL\n#define\tALIAS(f, t)\tSTRONG_ALIAS(f,t)\n#else\n#define\tALIAS(f, t)\tWEAK_ALIAS(f,t)\n#endif\n\n\t.text\n\n/* 32-bit */\n\nENTRY(_atomic_add_32)\n\tLOCK\n\taddl\t%esi, (%rdi)\n\tret\nEND(_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t%esi, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\taddl\t%esi, %eax\n\tret\nEND(_atomic_add_32_nv)\n\nENTRY(_atomic_and_32)\n\tLOCK", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:2", "text": ".text\n\n/* 32-bit */\n\nENTRY(_atomic_add_32)\n\tLOCK\n\taddl\t%esi, (%rdi)\n\tret\nEND(_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t%esi, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\taddl\t%esi, %eax\n\tret\nEND(_atomic_add_32_nv)\n\nENTRY(_atomic_and_32)\n\tLOCK\n\tandl\t%esi, (%rdi)\n\tret\nEND(_atomic_and_32)\n\nENTRY(_atomic_and_32_nv)\n\tmovl\t(%rdi), %eax\n1:\n\tmovl\t%eax, %ecx\n\tandl\t%esi, %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%rdi)\n\tjnz\t1b\n\tmovl\t%ecx, %eax\n\tret\nEND(_atomic_and_32_nv)\n\nENTRY(_atomic_dec_32)\n\tLOCK\n\tdecl\t(%rdi)\n\tret\nEND(_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t$-1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\tdecl\t%eax\n\tret\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_inc_32)\n\tLOCK\n\tincl\t(%rdi)\n\tret\nEND(_atomic_inc_32)\n\nENTRY(_atomic_inc_32_nv)\n\tmovl\t$1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:3", "text": "END(_atomic_dec_32)\n\nENTRY(_atomic_dec_32_nv)\n\tmovl\t$-1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\tdecl\t%eax\n\tret\nEND(_atomic_dec_32_nv)\n\nENTRY(_atomic_inc_32)\n\tLOCK\n\tincl\t(%rdi)\n\tret\nEND(_atomic_inc_32)\n\nENTRY(_atomic_inc_32_nv)\n\tmovl\t$1, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\tincl\t%eax\n\tret\nEND(_atomic_inc_32_nv)\n\nENTRY(_atomic_or_32)\n\tLOCK\n\torl\t%esi, (%rdi)\n\tret\nEND(_atomic_or_32)\n\nENTRY(_atomic_or_32_nv)\n\tmovl\t(%rdi), %eax\n1:\n\tmovl\t%eax, %ecx\n\torl\t%esi, %ecx\n\tLOCK\n\tcmpxchgl %ecx, (%rdi)\n\tjnz\t1b\n\tmovl\t%ecx, %eax\n\tret\nEND(_atomic_or_32_nv)\n\nENTRY(_atomic_swap_32)\n\tmovl\t%esi, %eax\n\txchgl\t%eax, (%rdi)\n\tret\nEND(_atomic_swap_32)\n\nENTRY(_atomic_cas_32)\n\tmovl\t%esi, %eax\n\tLOCK\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t%esi, %eax\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:4", "text": "END(_atomic_or_32_nv)\n\nENTRY(_atomic_swap_32)\n\tmovl\t%esi, %eax\n\txchgl\t%eax, (%rdi)\n\tret\nEND(_atomic_swap_32)\n\nENTRY(_atomic_cas_32)\n\tmovl\t%esi, %eax\n\tLOCK\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32)\n\nENTRY(_atomic_cas_32_ni)\n\tmovl\t%esi, %eax\n\tcmpxchgl %edx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_32_ni)\n\n/* 64-bit */\n\nENTRY(_atomic_add_64)\n\tLOCK\n\taddq\t%rsi, (%rdi)\n\tret\nEND(_atomic_add_64)\n\nENTRY(_atomic_add_64_nv)\n\tmovq\t%rsi, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\taddq\t%rsi, %rax\n\tret\nEND(_atomic_add_64_nv)\n\nENTRY(_atomic_and_64)\n\tLOCK\n\tandq\t%rsi, (%rdi)\n\tret\nEND(_atomic_and_64)\n\nENTRY(_atomic_and_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\tandq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b\n\tmovq\t%rcx, %rax\n\tret\nEND(_atomic_and_64_nv)\n\nENTRY(_atomic_dec_64)\n\tLOCK\n\tdecq\t(%rdi)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:5", "text": "LOCK\n\tandq\t%rsi, (%rdi)\n\tret\nEND(_atomic_and_64)\n\nENTRY(_atomic_and_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\tandq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b\n\tmovq\t%rcx, %rax\n\tret\nEND(_atomic_and_64_nv)\n\nENTRY(_atomic_dec_64)\n\tLOCK\n\tdecq\t(%rdi)\n\tret\nEND(_atomic_dec_64)\n\nENTRY(_atomic_dec_64_nv)\n\tmovq\t$-1, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\tdecq\t%rax\n\tret\nEND(_atomic_dec_64_nv)\n\nENTRY(_atomic_inc_64)\n\tLOCK\n\tincq\t(%rdi)\n\tret\nEND(_atomic_inc_64)\n\nENTRY(_atomic_inc_64_nv)\n\tmovq\t$1, %rax\n\tLOCK\n\txaddq\t%rax, (%rdi)\n\tincq\t%rax\n\tret\nEND(_atomic_inc_64_nv)\n\nENTRY(_atomic_or_64)\n\tLOCK\n\torq\t%rsi, (%rdi)\n\tret\nEND(_atomic_or_64)\n\nENTRY(_atomic_or_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\torq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b\n\tmovq\t%rcx, %rax", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:6", "text": "xaddq\t%rax, (%rdi)\n\tincq\t%rax\n\tret\nEND(_atomic_inc_64_nv)\n\nENTRY(_atomic_or_64)\n\tLOCK\n\torq\t%rsi, (%rdi)\n\tret\nEND(_atomic_or_64)\n\nENTRY(_atomic_or_64_nv)\n\tmovq\t(%rdi), %rax\n1:\n\tmovq\t%rax, %rcx\n\torq\t%rsi, %rcx\n\tLOCK\n\tcmpxchgq %rcx, (%rdi)\n\tjnz\t1b\n\tmovq\t%rcx, %rax\n\tret\nEND(_atomic_or_64_nv)\n\nENTRY(_atomic_swap_64)\n\tmovq\t%rsi, %rax\n\txchgq\t%rax, (%rdi)\n\tret\nEND(_atomic_swap_64)\n\nENTRY(_atomic_cas_64)\n\tmovq\t%rsi, %rax\n\tLOCK\n\tcmpxchgq %rdx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64)\n\nENTRY(_atomic_cas_64_ni)\n\tmovq\t%rsi, %rax\n\tcmpxchgq %rdx, (%rdi)\n\t/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64_ni)\n\n/* memory barriers */\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:7", "text": "/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64_ni)\n\n/* memory barriers */\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDQ,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDQ is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with xen_mb in sys/arch/amd64/amd64/cpufunc.S.\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:8", "text": "* https://www.agner.org/optimize/instruction_tables.pdf\n\t *\n\t * Sync with xen_mb in sys/arch/amd64/amd64/cpufunc.S.\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_64,_atomic_and_64)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_64)\nALIAS(atomic_and_ptr,_atomic_and_64)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_64_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_uint,_atomic_or_32)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:9", "text": "ALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_64)\nALIAS(atomic_or_ptr,_atomic_or_64)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_64_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_64,_atomic_swap_64)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:10", "text": "ALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_64)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:11", "text": "STRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "f183eaeed00232c8d8b44a8611d174d9ff1b475b", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f183eaeed00232c8d8b44a8611d174d9ff1b475b/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 401, "line_end": 433}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:1", "text": "/*\t$NetBSD: atomic.S,v 1.29 2022/07/30 14:11:00 riastradh Exp $\t*/\n\n/*-\n * Copyright (c) 2007 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by Jason R. Thorpe, and by Andrew Doran.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <sys/param.h>\n#include <machine/asm.h>\n\n#ifdef _KERNEL\n#define\tALIAS(f, t)\tSTRONG_ALIAS(f,t)\n#else\n#define\tALIAS(f, t)\tWEAK_ALIAS(f,t)\n#endif\n\n\t.text\n\n/* 32-bit */\n\nENTRY(_atomic_add_32)\n\tLOCK\n\taddl\t%esi, (%rdi)\n\tret\nEND(_atomic_add_32)\n\nENTRY(_atomic_add_32_nv)\n\tmovl\t%esi, %eax\n\tLOCK\n\txaddl\t%eax, (%rdi)\n\taddl\t%esi, %eax\n\tret\nEND(_atomic_add_32_nv)\n\nENTRY(_atomic_and_32)\n\tLOCK", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:7", "text": "/* %eax now contains the old value */\n\tret\nEND(_atomic_cas_64_ni)\n\n/* memory barriers */\n\nENTRY(_membar_acquire)\n\t/*\n\t * Every load from normal memory is a load-acquire on x86, so\n\t * there is never any need for explicit barriers to order\n\t * load-before-anything.\n\t */\n\tret\nEND(_membar_acquire)\n\nENTRY(_membar_release)\n\t/*\n\t * Every store to normal memory is a store-release on x86, so\n\t * there is never any need for explicit barriers to order\n\t * anything-before-store.\n\t */\n\tret\nEND(_membar_release)\n\nENTRY(_membar_sync)\n\t/*\n\t * MFENCE, or a serializing instruction like a locked ADDQ,\n\t * is necessary to order store-before-load.  Every other\n\t * ordering -- load-before-anything, anything-before-store --\n\t * is already guaranteed without explicit barriers.\n\t *\n\t * Empirically it turns out locked ADDQ is cheaper than MFENCE,\n\t * so we use that, with an offset below the return address on\n\t * the stack to avoid a false dependency with RET.  (It might\n\t * even be better to use a much lower offset, say -128, to\n\t * avoid false dependencies for subsequent callees of the\n\t * caller.)\n\t *\n\t * https://pvk.ca/Blog/2014/10/19/performance-optimisation-~-writing-an-essay/\n\t * https://shipilev.net/blog/2014/on-the-fence-with-dependencies/\n\t * https://www.agner.org/optimize/instruction_tables.pdf\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:8", "text": "* https://www.agner.org/optimize/instruction_tables.pdf\n\t */\n\tLOCK\n\taddq\t$0, -8(%rsp)\n\tret\nEND(_membar_sync)\n\nALIAS(atomic_add_32,_atomic_add_32)\nALIAS(atomic_add_64,_atomic_add_64)\nALIAS(atomic_add_int,_atomic_add_32)\nALIAS(atomic_add_long,_atomic_add_64)\nALIAS(atomic_add_ptr,_atomic_add_64)\n\nALIAS(atomic_add_32_nv,_atomic_add_32_nv)\nALIAS(atomic_add_64_nv,_atomic_add_64_nv)\nALIAS(atomic_add_int_nv,_atomic_add_32_nv)\nALIAS(atomic_add_long_nv,_atomic_add_64_nv)\nALIAS(atomic_add_ptr_nv,_atomic_add_64_nv)\n\nALIAS(atomic_and_32,_atomic_and_32)\nALIAS(atomic_and_64,_atomic_and_64)\nALIAS(atomic_and_uint,_atomic_and_32)\nALIAS(atomic_and_ulong,_atomic_and_64)\nALIAS(atomic_and_ptr,_atomic_and_64)\n\nALIAS(atomic_and_32_nv,_atomic_and_32_nv)\nALIAS(atomic_and_64_nv,_atomic_and_64_nv)\nALIAS(atomic_and_uint_nv,_atomic_and_32_nv)\nALIAS(atomic_and_ulong_nv,_atomic_and_64_nv)\nALIAS(atomic_and_ptr_nv,_atomic_and_64_nv)\n\nALIAS(atomic_dec_32,_atomic_dec_32)\nALIAS(atomic_dec_64,_atomic_dec_64)\nALIAS(atomic_dec_uint,_atomic_dec_32)\nALIAS(atomic_dec_ulong,_atomic_dec_64)\nALIAS(atomic_dec_ptr,_atomic_dec_64)\n\nALIAS(atomic_dec_32_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_64_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_uint_nv,_atomic_dec_32_nv)\nALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_64)\nALIAS(atomic_or_ptr,_atomic_or_64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:9", "text": "ALIAS(atomic_dec_ulong_nv,_atomic_dec_64_nv)\nALIAS(atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nALIAS(atomic_inc_32,_atomic_inc_32)\nALIAS(atomic_inc_64,_atomic_inc_64)\nALIAS(atomic_inc_uint,_atomic_inc_32)\nALIAS(atomic_inc_ulong,_atomic_inc_64)\nALIAS(atomic_inc_ptr,_atomic_inc_64)\n\nALIAS(atomic_inc_32_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_64_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_uint_nv,_atomic_inc_32_nv)\nALIAS(atomic_inc_ulong_nv,_atomic_inc_64_nv)\nALIAS(atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nALIAS(atomic_or_32,_atomic_or_32)\nALIAS(atomic_or_64,_atomic_or_64)\nALIAS(atomic_or_uint,_atomic_or_32)\nALIAS(atomic_or_ulong,_atomic_or_64)\nALIAS(atomic_or_ptr,_atomic_or_64)\n\nALIAS(atomic_or_32_nv,_atomic_or_32_nv)\nALIAS(atomic_or_64_nv,_atomic_or_64_nv)\nALIAS(atomic_or_uint_nv,_atomic_or_32_nv)\nALIAS(atomic_or_ulong_nv,_atomic_or_64_nv)\nALIAS(atomic_or_ptr_nv,_atomic_or_64_nv)\n\nALIAS(atomic_swap_32,_atomic_swap_32)\nALIAS(atomic_swap_64,_atomic_swap_64)\nALIAS(atomic_swap_uint,_atomic_swap_32)\nALIAS(atomic_swap_ulong,_atomic_swap_64)\nALIAS(atomic_swap_ptr,_atomic_swap_64)\n\nALIAS(atomic_cas_32,_atomic_cas_32)\nALIAS(atomic_cas_64,_atomic_cas_64)\nALIAS(atomic_cas_uint,_atomic_cas_32)\nALIAS(atomic_cas_ulong,_atomic_cas_64)\nALIAS(atomic_cas_ptr,_atomic_cas_64)\n\nALIAS(atomic_cas_32_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:10", "text": "ALIAS(atomic_cas_64_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_uint_ni,_atomic_cas_32_ni)\nALIAS(atomic_cas_ulong_ni,_atomic_cas_64_ni)\nALIAS(atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nALIAS(membar_acquire,_membar_acquire)\nALIAS(membar_release,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nALIAS(membar_consumer,_membar_acquire)\nALIAS(membar_producer,_membar_release)\nALIAS(membar_enter,_membar_sync)\nALIAS(membar_exit,_membar_release)\nALIAS(membar_sync,_membar_sync)\n\nSTRONG_ALIAS(_atomic_add_int,_atomic_add_32)\nSTRONG_ALIAS(_atomic_add_long,_atomic_add_64)\nSTRONG_ALIAS(_atomic_add_ptr,_atomic_add_64)\n\nSTRONG_ALIAS(_atomic_add_int_nv,_atomic_add_32_nv)\nSTRONG_ALIAS(_atomic_add_long_nv,_atomic_add_64_nv)\nSTRONG_ALIAS(_atomic_add_ptr_nv,_atomic_add_64_nv)\n\nSTRONG_ALIAS(_atomic_and_uint,_atomic_and_32)\nSTRONG_ALIAS(_atomic_and_ulong,_atomic_and_64)\nSTRONG_ALIAS(_atomic_and_ptr,_atomic_and_64)\n\nSTRONG_ALIAS(_atomic_and_uint_nv,_atomic_and_32_nv)\nSTRONG_ALIAS(_atomic_and_ulong_nv,_atomic_and_64_nv)\nSTRONG_ALIAS(_atomic_and_ptr_nv,_atomic_and_64_nv)\n\nSTRONG_ALIAS(_atomic_dec_uint,_atomic_dec_32)\nSTRONG_ALIAS(_atomic_dec_ulong,_atomic_dec_64)\nSTRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_64)\n\nSTRONG_ALIAS(_atomic_dec_uint_nv,_atomic_dec_32_nv)\nSTRONG_ALIAS(_atomic_dec_ulong_nv,_atomic_dec_64_nv)\nSTRONG_ALIAS(_atomic_dec_ptr_nv,_atomic_dec_64_nv)\n\nSTRONG_ALIAS(_atomic_inc_uint,_atomic_inc_32)\nSTRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/atomic/atomic.S:11", "text": "STRONG_ALIAS(_atomic_inc_ulong,_atomic_inc_64)\nSTRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_64)\n\nSTRONG_ALIAS(_atomic_inc_uint_nv,_atomic_inc_32_nv)\nSTRONG_ALIAS(_atomic_inc_ulong_nv,_atomic_inc_64_nv)\nSTRONG_ALIAS(_atomic_inc_ptr_nv,_atomic_inc_64_nv)\n\nSTRONG_ALIAS(_atomic_or_uint,_atomic_or_32)\nSTRONG_ALIAS(_atomic_or_ulong,_atomic_or_64)\nSTRONG_ALIAS(_atomic_or_ptr,_atomic_or_64)\n\nSTRONG_ALIAS(_atomic_or_uint_nv,_atomic_or_32_nv)\nSTRONG_ALIAS(_atomic_or_ulong_nv,_atomic_or_64_nv)\nSTRONG_ALIAS(_atomic_or_ptr_nv,_atomic_or_64_nv)\n\nSTRONG_ALIAS(_atomic_swap_uint,_atomic_swap_32)\nSTRONG_ALIAS(_atomic_swap_ulong,_atomic_swap_64)\nSTRONG_ALIAS(_atomic_swap_ptr,_atomic_swap_64)\n\nSTRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32)\nSTRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_64)\nSTRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_64)\n\nSTRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)\nSTRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_64_ni)\nSTRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_64_ni)\n\nSTRONG_ALIAS(_membar_consumer,_membar_acquire)\nSTRONG_ALIAS(_membar_producer,_membar_release)\nSTRONG_ALIAS(_membar_enter,_membar_sync)\nSTRONG_ALIAS(_membar_exit,_membar_release)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/atomic/atomic.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/atomic/atomic.S", "line_start": 401, "line_end": 431}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/gen/byte_swap_2.S:1", "text": "/*\t$NetBSD: byte_swap_2.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $\t*/\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: byte_swap_2.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $\")\n#endif\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n_ENTRY(_C_LABEL(bswap16))\n#else\n_ENTRY(_C_LABEL(__bswap16))\n#endif\n_ENTRY(_C_LABEL(ntohs))\n_ENTRY(_C_LABEL(htons))\n_PROF_PROLOGUE\n\tmovl\t%edi,%eax\n\txchgb\t%ah,%al\n\tret\n#if defined(_KERNEL) || defined(_STANDALONE)\nEND(_C_LABEL(bswap16))\n#else\nEND(_C_LABEL(__bswap16))\n#endif\nEND(_C_LABEL(ntohs))\nEND(_C_LABEL(htons))", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/gen/byte_swap_2.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/gen/byte_swap_2.S", "line_start": 1, "line_end": 26}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/gen/byte_swap_4.S:1", "text": "/*\t$NetBSD: byte_swap_4.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $\t*/\n\n#include <machine/asm.h>\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: byte_swap_4.S,v 1.3 2014/05/22 15:23:11 uebayasi Exp $\")\n#endif\n\n#if defined(_KERNEL) || defined(_STANDALONE)\n_ENTRY(_C_LABEL(bswap32))\n#else\n_ENTRY(_C_LABEL(__bswap32))\n#endif\n_ENTRY(_C_LABEL(ntohl))\n_ENTRY(_C_LABEL(htonl))\n_PROF_PROLOGUE\n\tmovl\t%edi,%eax\n\tbswapl\t%eax\n\tret\n#if defined(_KERNEL) || defined(_STANDALONE)\nEND(_C_LABEL(bswap32))\n#else\nEND(_C_LABEL(__bswap32))\n#endif\nEND(_C_LABEL(ntohl))\nEND(_C_LABEL(htonl))", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/gen/byte_swap_4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/gen/byte_swap_4.S", "line_start": 1, "line_end": 25}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/gen/byte_swap_8.S:1", "text": "/*\t$NetBSD: byte_swap_8.S,v 1.2 2014/05/22 15:23:11 uebayasi Exp $\t*/\n\n/*\n * Written by Frank van der Linden (fvdl@wasabisystems.com)\n * Public Domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: byte_swap_8.S,v 1.2 2014/05/22 15:23:11 uebayasi Exp $\")\n#endif\n\nENTRY(bswap64)\n\tbswapq\t%rdi\n\tmovq\t%rdi,%rax\n\tret\nEND(bswap64)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/gen/byte_swap_8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/gen/byte_swap_8.S", "line_start": 1, "line_end": 18}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/bcopy.S:2", "text": "*\n\t * Hacked about by dsl@netbsd.org\n\t */\n\n#ifdef MEMCOPY\nENTRY(memcpy)\n#define NO_OVERLAP\n#else\n#ifdef MEMMOVE\nENTRY(memmove)\n#else\nENTRY(bcopy)\n#endif\n#endif\n\tmovq\t%rdx,%rcx\n#if defined(MEMCOPY) || defined(MEMMOVE)\n\tmovq\t%rdi,%rax\t/* must return destination address */\n\tmov\t%rdi,%r11\t/* for misaligned check */\n#else\n\tmov\t%rsi,%r11\t/* for misaligned check */\n\txchgq\t%rdi,%rsi\t/* bcopy() has arg order reversed */\n#endif\n\n#if !defined(NO_OVERLAP)\n\tmovq\t%rdi,%r8\n\tsubq\t%rsi,%r8\n#endif\n\n\tshrq\t$3,%rcx\t\t/* count for copy by words */\n\tjz\t8f\t\t/* j if less than 8 bytes */\n\n\tlea\t-8(%rdi,%rdx),%r9\t/* target address of last 8 */\n\tmov\t-8(%rsi,%rdx),%r10\t/* get last word */\n#if !defined(NO_OVERLAP)\n\tcmpq\t%rdx,%r8\t/* overlapping? */\n\tjb\t10f\n#endif\n\n/*\n * Non-overlaping, copy forwards.\n * Newer Intel cpus (Nehalem) will do 16byte read/write transfers\n * if %ecx is more than 76.\n * AMD might do something similar some day.\n */\n\tand\t$7,%r11\t\t/* destination misaligned ? */\n\tjnz\t2f\n\trep\n\tmovsq\n\tmov\t%r10,(%r9)\t/* write last word */\n\tret\n\n/*\n * Destination misaligned\n * AMD say it is better to align the destination (not the source).\n * This will also re-align copies if the source and dest are both\n * misaligned by the same amount)\n * (I think Nehalem will use its accelerated copy if the source\n * and destination have the same alignment.)\n */\n2:", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/bcopy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/bcopy.S:3", "text": "* Newer Intel cpus (Nehalem) will do 16byte read/write transfers\n * if %ecx is more than 76.\n * AMD might do something similar some day.\n */\n\tand\t$7,%r11\t\t/* destination misaligned ? */\n\tjnz\t2f\n\trep\n\tmovsq\n\tmov\t%r10,(%r9)\t/* write last word */\n\tret\n\n/*\n * Destination misaligned\n * AMD say it is better to align the destination (not the source).\n * This will also re-align copies if the source and dest are both\n * misaligned by the same amount)\n * (I think Nehalem will use its accelerated copy if the source\n * and destination have the same alignment.)\n */\n2:\n\tlea\t-9(%r11,%rdx),%rcx\t/* post re-alignment count */\n\tneg\t%r11\t\t\t/* now -1 .. -7 */\n\tmov\t(%rsi),%rdx\t\t/* get first word */\n\tmov\t%rdi,%r8\t\t/* target for first word */\n\tlea\t8(%rsi,%r11),%rsi\n\tlea\t8(%rdi,%r11),%rdi\n\tshr\t$3,%rcx\n\trep\n\tmovsq\n\tmov\t%rdx,(%r8)\t\t/* write first word */\n\tmov\t%r10,(%r9)\t\t/* write last word */\n\tret\n\n#if !defined(NO_OVERLAP)\n/* Must copy backwards.\n * Reverse copy is probably easy to code faster than 'rep movds'\n * since that requires (IIRC) an extra clock every 3 iterations (AMD).\n * However I don't suppose anything cares that much!\n * The big cost is the std/cld pair - reputedly 50+ cycles on Netburst P4.\n * The copy is aligned with the buffer start (more likely to\n * be a multiple of 8 than the end).\n */\n10:\n\tlea\t-8(%rsi,%rcx,8),%rsi\n\tlea\t-8(%rdi,%rcx,8),%rdi\n\tstd\n\trep\n\tmovsq\n\tcld\n\tmov\t%r10,(%r9)\t/* write last bytes */\n\tret\n#endif\n\n/* Less than 8 bytes to copy, copy by bytes */\n/* Intel Nehalem optimise 'rep movsb' for <= 7 bytes (9-15 clocks).\n * For longer transfers it is 50+ !\n */\n8:\tmov\t%rdx,%rcx\n\n#if !defined(NO_OVERLAP)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/bcopy.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/bcopy.S:4", "text": "* be a multiple of 8 than the end).\n */\n10:\n\tlea\t-8(%rsi,%rcx,8),%rsi\n\tlea\t-8(%rdi,%rcx,8),%rdi\n\tstd\n\trep\n\tmovsq\n\tcld\n\tmov\t%r10,(%r9)\t/* write last bytes */\n\tret\n#endif\n\n/* Less than 8 bytes to copy, copy by bytes */\n/* Intel Nehalem optimise 'rep movsb' for <= 7 bytes (9-15 clocks).\n * For longer transfers it is 50+ !\n */\n8:\tmov\t%rdx,%rcx\n\n#if !defined(NO_OVERLAP)\n\tcmpq\t%rdx,%r8\t/* overlapping? */\n\tjb\t81f\n#endif\n\n\t/* nope, copy forwards. */\n\trep\n\tmovsb\n\tret\n\n#if !defined(NO_OVERLAP)\n/* Must copy backwards */\n81:\n\tlea\t-1(%rsi,%rcx),%rsi\n\tlea\t-1(%rdi,%rcx),%rdi\n\tstd\n\trep\n\tmovsb\n\tcld\n\tret\n#endif\n\n#ifdef MEMCOPY\nEND(memcpy)\n#else\n#ifdef MEMMOVE\nEND(memmove)\n#else\nEND(bcopy)\n#endif\n#endif", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/bcopy.S", "line_start": 121, "line_end": 170}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/bcopy.S:5", "text": "#ifdef MEMCOPY\nEND(memcpy)\n#else\n#ifdef MEMMOVE\nEND(memmove)\n#else\nEND(bcopy)\n#endif\n#endif", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/bcopy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/bcopy.S", "line_start": 161, "line_end": 170}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/ffs.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@NetBSD.org>.\n * Public domain.\n * Adapted for NetBSD/x86_64 by Frank van der Linden <fvdl@wasabisystems.com>\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: ffs.S,v 1.5 2014/03/22 19:16:34 jakllsch Exp $\")\n#endif\n\nENTRY(ffs)\n\tbsfl\t%edi,%eax\n\tjz\t1f\t \t\t/* ZF is set if all bits are 0 */\n\tincl\t%eax\t\t\t/* bits numbered from 1, not 0 */\n\tret\n\n1:\txorl\t%eax,%eax\t\t/* clear result */\n\tret\nEND(ffs)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/ffs.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/ffs.S", "line_start": 1, "line_end": 21}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/memchr.S:2", "text": "* The 'imul' for %r9 could be put into the delay following the\n * memory read (ie inside the loop) at no obvious cost - except\n * that the loop is currently exactly 32 bytes - 2 fetch blocks!.\n *\n * I don't think aligning any of the other branch targets is useful.\n */\n\nENTRY(memchr)\n\tmovabsq\t$0x0101010101010101,%r8\n\tlea\t(%rdi,%rdx),%r10\t/* limit of buffer to scan */\n\tmovzbq\t%sil,%rsi\t/* mask high bits! */\n\n\t/* 'directpath' imuls can execute 3 at a time ... (amd) */\n\timul\t%r8,%rsi\t/* search byte replicated in word */\n\timul\t$0x80,%r8,%r9\t/* 0x8080808080808080 */\n\ttest\t$7,%dil\n\tjnz\t20f\t\t/* jump if misaligned */\n\tjmp\t1f\t\t/* jump to avoid 4 nops (13 bytes) in gap */\n\n\t_ALIGN_TEXT\t\t/* entire loop now in 32 aligned bytes */\n1:\n\tcmpq\t%r10,%rdi\t/* end of buffer ? */\n\tjae\t30f\t\t/* jump if so */\n\n\tmovq\t(%rdi),%rax\t/* value to check */\n\taddq\t$8,%rdi\n\txorq\t%rsi,%rax\t/* now looking for zeros */\n2:\n\tmov\t%rax,%rcx\n\tsubq\t%r8,%rax\t/* x - 0x01 */\n\tnot\t%rcx\n\tandq\t%r9,%rax\t/* (x - 0x01) & 0x80 */\n\tandq\t%rcx,%rax\t/* ((x - 0x01) & 0x80) & ~x */\n\tje\t1b\t\t/* jump if not found */\n\n/* Found byte in word, get its address */\n\tbsf\t%rax,%rax\n\tshr\t$3,%eax\n\tlea\t-8(%rax,%rdi),%rax\n\tcmpq\t%r10,%rax\t/* need to check not beyond buffer */\n\tjae\t30f\n\trep\n\tret\t\t\t/* amd - no ret after jmp */\n\n/* Input misaligned, read aligned and make low bytes invalid */\n20:\n\tmov\t%dil,%cl\t/* misalignment amount 1..7 (+high bits )*/\n\tand\t$~7,%dil\t/* %rdi now start of word */\n\ttest\t%rdx,%rdx\t/* zero length, don't read */\n\tjz\t30f\n\n\tneg\t%cl\t\t/* 7..1 (+high bits) */\n\tmov\t(%rdi),%rax\t/* word containing first byte */\n\taddq\t$8,%rdi\n\tand\t$7,%cl\t\t/* 7..1 */\n\n\tmov\t%r8,%r11\t/* any value with bits in each byte */\n\tshl\t$3,%cl\t\t/* 56..8 */\n\txorq\t%rsi,%rax\t/* now looking for zeros */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/memchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/memchr.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/memchr.S:3", "text": "jae\t30f\n\trep\n\tret\t\t\t/* amd - no ret after jmp */\n\n/* Input misaligned, read aligned and make low bytes invalid */\n20:\n\tmov\t%dil,%cl\t/* misalignment amount 1..7 (+high bits )*/\n\tand\t$~7,%dil\t/* %rdi now start of word */\n\ttest\t%rdx,%rdx\t/* zero length, don't read */\n\tjz\t30f\n\n\tneg\t%cl\t\t/* 7..1 (+high bits) */\n\tmov\t(%rdi),%rax\t/* word containing first byte */\n\taddq\t$8,%rdi\n\tand\t$7,%cl\t\t/* 7..1 */\n\n\tmov\t%r8,%r11\t/* any value with bits in each byte */\n\tshl\t$3,%cl\t\t/* 56..8 */\n\txorq\t%rsi,%rax\t/* now looking for zeros */\n\n\t/* Set low bytes non-zero */\n\tshr\t%cl,%r11\t/* non-zero in unwanted bytes */\n\tor\t%r11,%rax\t/* low bytes now set */\n\tjmp\t2b\n\n/* Not found */\n30:\txorq\t%rax,%rax\n\tret\nEND(memchr)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/memchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/memchr.S", "line_start": 81, "line_end": 109}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/memset.S:1", "text": "/*\t$NetBSD: memset.S,v 1.5 2014/05/22 16:47:31 pooka Exp $\t*/\n\n/*-\n * Copyright (c) 2009 The NetBSD Foundation, Inc.\n * All rights reserved.\n *\n * This code is derived from software contributed to The NetBSD Foundation\n * by David Laight.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: memset.S,v 1.5 2014/05/22 16:47:31 pooka Exp $\")\n#endif\n\n#ifndef _KERNEL\n/* bzero, %rdi is buffer, %rsi length */\n\nENTRY(bzero)\n\tmov\t%rsi,%rdx\t\t/* length */\n\txor\t%eax,%eax\t\t/* value to write */\n\tjmp\t1f\n#endif\n\n/* memset, %rdi is buffer, %rsi char to fill, %rdx length */\n\nENTRY(memset)\n\tmovzbq\t%sil,%rax\t\t/* byte value to fill */\n\tmov\t%rdx,%rsi\t\t/* copy of length */\n\tmov\t$0x0101010101010101,%r9\n\timul\t%r9,%rax\t\t/* fill value in all bytes */\n\n1:\n\tmov\t%rdi,%r9\t\t/* Need to return buffer address */\n\tor\t%edi,%edx\t\t/* address | length */\n\tmov\t%rsi,%rcx\n\tcmp\t$7,%rsi\n\tjbe\t10f\t\t\t/* jump if short fill */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/memset.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/memset.S:2", "text": "ENTRY(bzero)\n\tmov\t%rsi,%rdx\t\t/* length */\n\txor\t%eax,%eax\t\t/* value to write */\n\tjmp\t1f\n#endif\n\n/* memset, %rdi is buffer, %rsi char to fill, %rdx length */\n\nENTRY(memset)\n\tmovzbq\t%sil,%rax\t\t/* byte value to fill */\n\tmov\t%rdx,%rsi\t\t/* copy of length */\n\tmov\t$0x0101010101010101,%r9\n\timul\t%r9,%rax\t\t/* fill value in all bytes */\n\n1:\n\tmov\t%rdi,%r9\t\t/* Need to return buffer address */\n\tor\t%edi,%edx\t\t/* address | length */\n\tmov\t%rsi,%rcx\n\tcmp\t$7,%rsi\n\tjbe\t10f\t\t\t/* jump if short fill */\n\ttest\t$7,%dl\t\t\t/* check for misaligned fill */\n\tjnz\t20f\t\t\t/* jump if misaligned */\n\n/* Target aligned and length multiple of 8 */\n2:\n\tshr\t$3,%rcx\n\trep\tstosq\n\tmov\t%r9,%rax\n\tret\n\n/*\n * Short transfer, any faffing here will generate mispredicted branches.\n * So we keep it simple.\n */\n10:\trep\tstosb\n\tmov\t%r9,%rax\n\tret\n\n/*\n * Buffer or length misaligned.\n * Write pattern to first and last word of buffer, then fill middle.\n * (This writes to some bytes more than once - possibly three times!.)\n */\n20:\n\tmov\t%rax,(%rdi)\n\tmovzbq\t%dil,%rdx\t\t/* low address for alignment */\n\tmov\t%rax,-8(%rcx,%rdi)\n\tand\t$7,%dl\t\t\t/* offset in word */\n\tsub\t%rdx,%rcx\t\t/* adjust length ... */\n\tadd\t%rdx,%rdi\t\t/* ... and target */\n\tjmp\t2b\nEND(memset)\n\n#ifndef _KERNEL\nEND(bzero)\n#endif", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/memset.S", "line_start": 41, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/memset.S:3", "text": "* Write pattern to first and last word of buffer, then fill middle.\n * (This writes to some bytes more than once - possibly three times!.)\n */\n20:\n\tmov\t%rax,(%rdi)\n\tmovzbq\t%dil,%rdx\t\t/* low address for alignment */\n\tmov\t%rax,-8(%rcx,%rdi)\n\tand\t$7,%dl\t\t\t/* offset in word */\n\tsub\t%rdx,%rcx\t\t/* adjust length ... */\n\tadd\t%rdx,%rdi\t\t/* ... and target */\n\tjmp\t2b\nEND(memset)\n\n#ifndef _KERNEL\nEND(bzero)\n#endif", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/memset.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/memset.S", "line_start": 81, "line_end": 96}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcat.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strcat.S,v 1.2 2014/03/22 19:16:34 jakllsch Exp $\")\n#endif\n\nENTRY(strcat)\n\tmovq\t%rdi,%rax\n\tmovabsq\t$0x0101010101010101,%r8\n\tmovabsq\t$0x8080808080808080,%r9\n\n\t/*\n\t * Align destination to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lscan:\n.Lscan_align:\n\ttestb\t$7,%dil\n\tje\t.Lscan_aligned\n\tcmpb\t$0,(%rdi)\n\tje\t.Lcopy\n\tincq\t%rdi\n\tjmp\t.Lscan_align\n\n\t_ALIGN_TEXT\n.Lscan_aligned:\n.Lscan_loop:\n\tmovq\t(%rdi),%rdx\n\taddq\t$8,%rdi\n\tsubq\t%r8,%rdx\n\ttestq\t%r9,%rdx\n\tje\t.Lscan_loop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\tcmpb\t$0,-8(%rdi)\t/* 1st byte == 0? */\n\tjne\t1f\n\tsubq\t$8,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-7(%rdi)\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubq\t$7,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-6(%rdi)\t/* 3rd byte == 0? */\n\tjne\t1f\n\tsubq\t$6,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-5(%rdi)\t/* 4th byte == 0? */\n\tjne\t1f", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcat.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcat.S:2", "text": "* return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\tcmpb\t$0,-8(%rdi)\t/* 1st byte == 0? */\n\tjne\t1f\n\tsubq\t$8,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-7(%rdi)\t/* 2nd byte == 0? */\n\tjne\t1f\n\tsubq\t$7,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-6(%rdi)\t/* 3rd byte == 0? */\n\tjne\t1f\n\tsubq\t$6,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-5(%rdi)\t/* 4th byte == 0? */\n\tjne\t1f\n\tsubq\t$5,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-4(%rdi)\t/* 5th byte == 0? */\n\tjne\t1f\n\tsubq\t$4,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-3(%rdi)\t/* 6th byte == 0? */\n\tjne\t1f\n\tsubq\t$3,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-2(%rdi)\t/* 7th byte == 0? */\n\tjne\t1f\n\tsubq\t$2,%rdi\n\tjmp\t.Lcopy\n\n1:\tcmpb\t$0,-1(%rdi)\t/* 8th byte == 0? */\n\tjne\t.Lscan_loop\n\tsubq\t$1,%rdi\n\n\t/*\n\t * Align source to a word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lcopy:\n.Lcopy_align:\n\ttestb\t$7,%sil\n\tje\t.Lcopy_aligned\n\tmovb\t(%rsi),%dl\n\tincq\t%rsi\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\n\tjne\t.Lcopy_align\n\tret\n\n\t_ALIGN_TEXT\n.Lcopy_loop:", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcat.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcat.S:3", "text": "subq\t$1,%rdi\n\n\t/*\n\t * Align source to a word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lcopy:\n.Lcopy_align:\n\ttestb\t$7,%sil\n\tje\t.Lcopy_aligned\n\tmovb\t(%rsi),%dl\n\tincq\t%rsi\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\n\tjne\t.Lcopy_align\n\tret\n\n\t_ALIGN_TEXT\n.Lcopy_loop:\n\tmovq\t%rdx,(%rdi)\n\taddq\t$8,%rdi\n.Lcopy_aligned:\n\tmovq\t(%rsi),%rdx\n\tmovq\t%rdx,%rcx\n\taddq\t$8,%rsi\n\tsubq\t%r8,%rcx\n\ttestq\t%r9,%rcx\n\tje\t.Lcopy_loop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 1st byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 2nd byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 4th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcat.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcat.S:4", "text": "shrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 2nd byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 4th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 5th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 6th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 7th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 8th byte == 0? */\n\tjne\t.Lcopy_aligned\n\n.Ldone:\n\tret\nEND(strcat)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcat.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcat.S", "line_start": 121, "line_end": 165}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strchr.S:2", "text": "* On entry %rdi is the buffer and the low byte of %rsi (%sil) the\n * character to search for.\n *\n * Registers %rdx, %rcx, %r8-%r11 and %rax are also usable\n */\n\n/* Uncomment below to get regression test to run this version but\n * have everything else use the trivial one below. */\n/* #define TEST_STRCHR */\n\n#ifdef TEST_STRCHR\nENTRY(test_strchr)\n#else\nENTRY(strchr)\n#endif\n\tmovabsq\t$0x0101010101010101,%r8\n\n\tmovzbq\t%sil,%rdx\t/* value to search for (c) */\n\t/* These imul are 'directpath' on athlons, so are fast */\n\timul\t$0x80,%r8,%r9\t/* 0x8080808080808080 */\n\timul\t%r8,%rdx\t/* (c) copied to all bytes */\n\ttest\t$7,%dil\n\tjnz\t20f\t\t/* jump if misaligned */\n\n\t_ALIGN_TEXT\t\t/* one byte nop */\n1:\n\tmovq\t(%rdi),%rax\t/* bytes to check (x) */\n2:\n\taddq\t$8,%rdi\n\tmov\t%rax,%r10\n\tmov\t%rax,%r11\t/* for 'char' check */\n\tnot\t%r10\t\t/* invert of data (~x) */\n\n\txorq\t%rdx,%r11\t/* convert 'char' test to one for NUL */\n\tsubq\t%r8,%rax\t/* x - 0x10 */\n\tmovq\t%r10,%rsi\t/* ~x */\n\tsubq\t%r8,%r11\t/* (x ^ c) - 0x10 */\n/*\n * Here we could check ((x - 0x10) | ((x ^ c) - 0x10)) & 0x80\n * and short-circuit the case where no top bits are set, and\n * we continue the loop.\n * However it needs 3 more clocks that are difficult to interleave\n * in the existing dependency chain ...\n */\n\tandq\t%r9,%rax\t/* (x - 0x10) & 0x80 */\n\txorq\t%rdx,%rsi\t/* c ^ ~x == ~(c ^ x) */\n\tandq\t%r9,%r11\t/* ((x ^ c) - 0x10) & 0x80 */\n\tandq\t%r10,%rax\t/* (x - 0x10) & 0x80 & ~x */\n\tjne\t10f\t\t/* jump if string ends */\n\tandq\t%rsi,%r11\t/* ((x ^ c) - 0x10) & 0x80 & ~(x ^ c) */\n\tje\t1b\t\t/* jump if no match */\n\n\t/* Found char, since LE can use bit scan */\n\tbsf\t%r11,%r11\t/* 7, 15, 23 ... 63 */\n8:\tshr\t$3,%r11\t\t/* 0, 1, 2 .. 7 */\n\tlea\t-8(%r11,%rdi),%rax\n\tret\n\n/* End of string, check whether char is before NUL */\n\t_ALIGN_TEXT\t\t/* adds three byte nop */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strchr.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strchr.S:3", "text": "* we continue the loop.\n * However it needs 3 more clocks that are difficult to interleave\n * in the existing dependency chain ...\n */\n\tandq\t%r9,%rax\t/* (x - 0x10) & 0x80 */\n\txorq\t%rdx,%rsi\t/* c ^ ~x == ~(c ^ x) */\n\tandq\t%r9,%r11\t/* ((x ^ c) - 0x10) & 0x80 */\n\tandq\t%r10,%rax\t/* (x - 0x10) & 0x80 & ~x */\n\tjne\t10f\t\t/* jump if string ends */\n\tandq\t%rsi,%r11\t/* ((x ^ c) - 0x10) & 0x80 & ~(x ^ c) */\n\tje\t1b\t\t/* jump if no match */\n\n\t/* Found char, since LE can use bit scan */\n\tbsf\t%r11,%r11\t/* 7, 15, 23 ... 63 */\n8:\tshr\t$3,%r11\t\t/* 0, 1, 2 .. 7 */\n\tlea\t-8(%r11,%rdi),%rax\n\tret\n\n/* End of string, check whether char is before NUL */\n\t_ALIGN_TEXT\t\t/* adds three byte nop */\n10:\n\tbsf\t%rax,%rax\t/* count to NUL */\n\tandq\t%rsi,%r11\t/* check for char in last 8 bytes */\n\tje\t11f\n\tbsf\t%r11,%r11\t/* NUL and char - see which was first */\n\tcmp\t%r11,%rax\n\tjae\t8b\t\t/* return 'found' if same - searching for NUL */\n11:\txor\t%eax,%eax\t/* char not found */\n\tret\n\n/* Source misaligned: read aligned word and make low bytes invalid */\n/* I (dsl) think a _ALIGN_TEXT here will slow things down! */\n20:\n\txor\t%rcx,%rcx\n\tsub\t%dil,%cl\t/* Convert low address values 1..7 ... */\n\tsbb\t%rsi,%rsi\t/* carry was set, so %rsi now ~0u! */\n\tand\t$7,%cl\t\t/* ... to 7..1 */\n\tand\t$~7,%dil\t/* move address to start of word */\n\tshl\t$3,%cl\t\t/* now 56, 48 ... 16, 8 */\n\tmovq\t(%rdi),%rax\t/* aligned word containing first data */\n\txor\t%rdx,%rsi\t/* invert of search pattern (~c) */\n\tje\t22f\t\t/* searching for 0xff */\n21:\tshr\t%cl,%rsi\t/* ~c in low bytes */\n\tor\t%rsi,%rax\t/* set some bits making low bytes invalid */\n\tjmp\t2b\n\n/* We are searching for 0xff, so can't use ~pattern for invalid value */\n22:\n\tmov\t%r8,%r10\t/* 0x01 pattern */\n\tlea\t(%r8,%r8),%rsi\t/* 0x02 - bits gets set (above) */\n\tnot\t%r10\t\t/* now 0xfe */\n\tsar\t%cl,%r10\t/* top bytes 0xff */\n\tand\t%r10,%rax\t/* clear lsb from unwanted low bytes */\n\tjmp\t21b\n#ifdef TEST_STRCHR\nEND(test_strchr)\n#else\nEND(strchr)\n#endif", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strchr.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strchr.S:4", "text": "xor\t%rdx,%rsi\t/* invert of search pattern (~c) */\n\tje\t22f\t\t/* searching for 0xff */\n21:\tshr\t%cl,%rsi\t/* ~c in low bytes */\n\tor\t%rsi,%rax\t/* set some bits making low bytes invalid */\n\tjmp\t2b\n\n/* We are searching for 0xff, so can't use ~pattern for invalid value */\n22:\n\tmov\t%r8,%r10\t/* 0x01 pattern */\n\tlea\t(%r8,%r8),%rsi\t/* 0x02 - bits gets set (above) */\n\tnot\t%r10\t\t/* now 0xfe */\n\tsar\t%cl,%r10\t/* top bytes 0xff */\n\tand\t%r10,%rax\t/* clear lsb from unwanted low bytes */\n\tjmp\t21b\n#ifdef TEST_STRCHR\nEND(test_strchr)\n#else\nEND(strchr)\n#endif\n\n#ifdef TEST_STRCHR\n/* Trivial version for bug-fixing above */\nENTRY(strchr)\n\tmovq\t%rsi,%rdx\n\tmovq\t%rdi,%rsi\n1:\n\tlodsb\n\tcmp\t%al,%dl\n\tje\t2f\n\ttest\t%al,%al\n\tjne\t1b\n\txor\t%eax,%eax\n\tret\n2:\tlea\t-1(%rsi),%rax\n\tret\nEND(strchr)\n#endif\n\nSTRONG_ALIAS(index,strchr)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strchr.S", "line_start": 121, "line_end": 159}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcmp.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strcmp.S,v 1.2 2014/03/22 19:16:34 jakllsch Exp $\")\n#endif\n\nENTRY(strcmp)\n\t/*\n\t * Align s1 to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Ls1align:\n\ttestb\t$7,%dil\n\tje\t.Ls1aligned\n\tmovb\t(%rdi),%al\n\tincq\t%rdi\n\tmovb\t(%rsi),%dl\n\tincq\t%rsi\n\ttestb\t%al,%al\n\tje\t.Ldone\n\tcmpb\t%al,%dl\n\tje\t.Ls1align\n\tjmp\t.Ldone\n\n\t/*\n\t * Check whether s2 is aligned to a word boundary.  If it is, we\n\t * can compare by words.  Otherwise we have to compare by bytes.\n\t */\n.Ls1aligned:\n\ttestb\t$7,%sil\n\tjne\t.Lbyte_loop\n\n\tmovabsq\t$0x0101010101010101,%r8\n\tsubq\t$8,%rdi\n\tmovabsq\t$0x8080808080808080,%r9\n\tsubq\t$8,%rsi\n\n\t_ALIGN_TEXT\n.Lword_loop:\n\tmovq\t8(%rdi),%rax\n\taddq\t$8,%rdi\n\tmovq\t8(%rsi),%rdx\n\taddq\t$8,%rsi\n\tcmpq\t%rax,%rdx\n\tjne\t.Lbyte_loop\n\tsubq\t%r8,%rdx\n\tnotq\t%rax\n\tandq\t%rax,%rdx\n\ttestq\t%r9,%rdx\n\tje\t.Lword_loop\n\n\t_ALIGN_TEXT\n.Lbyte_loop:\n\tmovb\t(%rdi),%al\n\tincq\t%rdi", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcmp.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcmp.S:2", "text": "subq\t$8,%rsi\n\n\t_ALIGN_TEXT\n.Lword_loop:\n\tmovq\t8(%rdi),%rax\n\taddq\t$8,%rdi\n\tmovq\t8(%rsi),%rdx\n\taddq\t$8,%rsi\n\tcmpq\t%rax,%rdx\n\tjne\t.Lbyte_loop\n\tsubq\t%r8,%rdx\n\tnotq\t%rax\n\tandq\t%rax,%rdx\n\ttestq\t%r9,%rdx\n\tje\t.Lword_loop\n\n\t_ALIGN_TEXT\n.Lbyte_loop:\n\tmovb\t(%rdi),%al\n\tincq\t%rdi\n\tmovb\t(%rsi),%dl\n\tincq\t%rsi\n\ttestb\t%al,%al\n\tje\t.Ldone\n\tcmpb\t%al,%dl\n\tje\t.Lbyte_loop\n\n.Ldone:\n\tmovzbq\t%al,%rax\n\tmovzbq\t%dl,%rdx\n\tsubq\t%rdx,%rax\n\tret\nEND(strcmp)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcmp.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcmp.S", "line_start": 41, "line_end": 73}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcpy.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strcpy.S,v 1.2 2014/03/22 19:16:34 jakllsch Exp $\")\n#endif\n\n/*\n * This strcpy implementation copies a byte at a time until the\n * source pointer is aligned to a word boundary, it then copies by\n * words until it finds a word containing a zero byte, and finally\n * copies by bytes until the end of the string is reached.\n *\n * While this may result in unaligned stores if the source and\n * destination pointers are unaligned with respect to each other,\n * it is still faster than either byte copies or the overhead of\n * an implementation suitable for machines with strict alignment\n * requirements.\n */\n\nENTRY(strcpy)\n\tmovq\t%rdi,%rax\n\tmovabsq\t$0x0101010101010101,%r8\n\tmovabsq\t$0x8080808080808080,%r9\n\n\t/*\n\t * Align source to a word boundary.\n\t * Consider unrolling loop?\n\t */\n\t_ALIGN_TEXT\n.Lalign:\n\ttestb\t$7,%sil\n\tje\t.Lword_aligned\n\tmovb\t(%rsi),%dl\n\tincq\t%rsi\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\n\tjne\t.Lalign\n\tret\n\n\t_ALIGN_TEXT\n.Lloop:\n\tmovq\t%rdx,(%rdi)\n\taddq\t$8,%rdi\n.Lword_aligned:\n\tmovq\t(%rsi),%rdx\n\tmovq\t%rdx,%rcx\n\taddq\t$8,%rsi\n\tsubq\t%r8,%rcx\n\ttestq\t%r9,%rcx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcpy.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcpy.S:2", "text": "incq\t%rdi\n\ttestb\t%dl,%dl\n\tjne\t.Lalign\n\tret\n\n\t_ALIGN_TEXT\n.Lloop:\n\tmovq\t%rdx,(%rdi)\n\taddq\t$8,%rdi\n.Lword_aligned:\n\tmovq\t(%rsi),%rdx\n\tmovq\t%rdx,%rcx\n\taddq\t$8,%rsi\n\tsubq\t%r8,%rcx\n\ttestq\t%r9,%rcx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word equal 0.\n\t */\n\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 1st byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 2nd byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 4th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 5th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 6th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcpy.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strcpy.S:3", "text": "movb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 4th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 5th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 6th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 7th byte == 0? */\n\tje\t.Ldone\n\n\tshrq\t$8,%rdx\n\tmovb\t%dl,(%rdi)\n\tincq\t%rdi\n\ttestb\t%dl,%dl\t\t/* 8th byte == 0? */\n\tjne\t.Lword_aligned\n\n.Ldone:\n\tret\nEND(strcpy)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strcpy.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strcpy.S", "line_start": 81, "line_end": 112}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strlen.S:3", "text": "* testing each byte in the original for zero is necessary.\n *\n * This typically takes 3 instructions (4 on machines without\n * \"and with complement\") not including those needed to load\n * constants.\n *\n *\n * The expression:\n *\n * (3)  ((x - 0x01....01) & 0x80....80)\n *\n * always evaluates to a non-zero value if any of the bytes in\n * the original word is zero or has the top bit set.\n * For strings that are likely to only contain 7-bit ascii these\n * false positives will be rare.\n *\n * To account for possible false positives, each byte of the\n * original word must be checked when the expression evaluates to\n * a non-zero value.  However, because it is simpler than those\n * presented above, code that uses it will be faster as long as\n * the rate of false positives is low.\n *\n * This is likely, because the the false positive can only occur\n * if the most siginificant bit of a byte within the word is set.\n * The expression will never fail for typical 7-bit ASCII strings.\n *\n * This typically takes 2 instructions not including those needed\n * to load constants.\n *\n *\n * [1] Henry S. Warren Jr., \"Hacker's Delight\", Addison-Wesley 2003\n *\n * [2] International Business Machines, \"The PowerPC Compiler Writer's\n *     Guide\", Warthman Associates, 1996\n */\n\n#ifdef TEST_STRLEN\nENTRY(test_strlen)\n#else\nENTRY(strlen)\n#endif\n\tmovabsq\t$0x0101010101010101,%r8\n\n\ttest\t$7,%dil\n\tmovq\t%rdi,%rax\t\t/* Buffer, %rdi unchanged */\n\tmovabsq\t$0x8080808080808080,%r9\n\tjnz\t10f\t\t\t/* Jump if misaligned */\n\n\t_ALIGN_TEXT\n1:\n\tmovq\t(%rax),%rdx\t\t/* get bytes to check */\n2:\n\taddq\t$8,%rax\n\tmov\t%rdx,%rcx\t\t/* save for later check */\n\tsubq\t%r8,%rdx\t\t/* alg (3) above first */\n\tnot\t%rcx\t\t\t/* Invert of data */\n\tandq\t%r9,%rdx\n\tje\t1b\t\t\t/* jump if all 0x01-0x80 */\n\n\t/* Do check from alg (2) above - loops for 0x81..0xff bytes */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strlen.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strlen.S:4", "text": "#endif\n\tmovabsq\t$0x0101010101010101,%r8\n\n\ttest\t$7,%dil\n\tmovq\t%rdi,%rax\t\t/* Buffer, %rdi unchanged */\n\tmovabsq\t$0x8080808080808080,%r9\n\tjnz\t10f\t\t\t/* Jump if misaligned */\n\n\t_ALIGN_TEXT\n1:\n\tmovq\t(%rax),%rdx\t\t/* get bytes to check */\n2:\n\taddq\t$8,%rax\n\tmov\t%rdx,%rcx\t\t/* save for later check */\n\tsubq\t%r8,%rdx\t\t/* alg (3) above first */\n\tnot\t%rcx\t\t\t/* Invert of data */\n\tandq\t%r9,%rdx\n\tje\t1b\t\t\t/* jump if all 0x01-0x80 */\n\n\t/* Do check from alg (2) above - loops for 0x81..0xff bytes */\n\tandq\t%rcx,%rdx\n\tje\t1b\n\n\t/* Since we are LE, use bit scan for first 0x80 byte */\n\tsub\t%rdi,%rax\t\t/* length to next word */\n\tbsf\t%rdx,%rdx\t\t/* 7, 15, 23 ... 63 */\n\tshr\t$3,%rdx\t\t\t/* 0, 1, 2 ... 7 */\n\tlea\t-8(%rax,%rdx),%rax\n\tret\n\n/* Misaligned, read aligned word and make low bytes non-zero */\n\t_ALIGN_TEXT\n10:\n\tmov\t%al,%cl\n\tmov\t$1,%rsi\n\tand\t$7,%cl\t\t\t/* offset into word 1..7 */\n\tand\t$~7,%al\t\t\t/* start of word with buffer */\n\tshl\t$3,%cl\t\t\t/* bit count 8, 16 .. 56 */\n\tmovq\t(%rax),%rdx\t\t/* first data in high bytes */\n\tshl\t%cl,%rsi\n\tdec\t%rsi\n\tor\t%rsi,%rdx\t\t/* low bytes now non-zero */\n\tjmp\t2b\n#ifdef TEST_STRLEN\nEND(test_strlen)\n#else\nEND(strlen)\n#endif\n\n#ifdef TEST_STRLEN\n/* trivial implementation when testing above! */\nENTRY(strlen)\n\tmov\t%rdi,%rax\n1:\n\tcmpb\t$0,(%rax)\n\tjz\t2f\n\tinc\t%rax\n\tjmp\t1b\n2:\tsub\t%rdi,%rax\n\tret", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strlen.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strlen.S:5", "text": "dec\t%rsi\n\tor\t%rsi,%rdx\t\t/* low bytes now non-zero */\n\tjmp\t2b\n#ifdef TEST_STRLEN\nEND(test_strlen)\n#else\nEND(strlen)\n#endif\n\n#ifdef TEST_STRLEN\n/* trivial implementation when testing above! */\nENTRY(strlen)\n\tmov\t%rdi,%rax\n1:\n\tcmpb\t$0,(%rax)\n\tjz\t2f\n\tinc\t%rax\n\tjmp\t1b\n2:\tsub\t%rdi,%rax\n\tret\nEND(strlen)\n#endif", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strlen.S", "line_start": 161, "line_end": 182}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strlen.S:3", "text": "* testing each byte in the original for zero is necessary.\n *\n * This typically takes 3 instructions (4 on machines without\n * \"and with complement\") not including those needed to load\n * constants.\n *\n *\n * The expression:\n *\n * (3)  ((x - 0x01....01) & 0x80....80)\n *\n * always evaluates to a non-zero value if any of the bytes in\n * the original word is zero or has the top bit set.\n * For strings that are likely to only contain 7-bit ascii these\n * false positives will be rare.\n *\n * To account for possible false positives, each byte of the\n * original word must be checked when the expression evaluates to\n * a non-zero value.  However, because it is simpler than those\n * presented above, code that uses it will be faster as long as\n * the rate of false positives is low.\n *\n * This is likely, because the the false positive can only occur\n * if the most siginificant bit of a byte within the word is set.\n * The expression will never fail for typical 7-bit ASCII strings.\n *\n * This typically takes 2 instructions not including those needed\n * to load constants.\n *\n *\n * [1] Henry S. Warren Jr., \"Hacker's Delight\", Addison-Westley 2003\n *\n * [2] International Business Machines, \"The PowerPC Compiler Writer's\n *     Guide\", Warthman Associates, 1996\n */\n\n#ifdef TEST_STRLEN\nENTRY(test_strlen)\n#else\nENTRY(strlen)\n#endif\n\tmovabsq\t$0x0101010101010101,%r8\n\n\ttest\t$7,%dil\n\tmovq\t%rdi,%rax\t\t/* Buffer, %rdi unchanged */\n\tmovabsq\t$0x8080808080808080,%r9\n\tjnz\t10f\t\t\t/* Jump if misaligned */\n\n\t_ALIGN_TEXT\n1:\n\tmovq\t(%rax),%rdx\t\t/* get bytes to check */\n2:\n\taddq\t$8,%rax\n\tmov\t%rdx,%rcx\t\t/* save for later check */\n\tsubq\t%r8,%rdx\t\t/* alg (3) above first */\n\tnot\t%rcx\t\t\t/* Invert of data */\n\tandq\t%r9,%rdx\n\tje\t1b\t\t\t/* jump if all 0x01-0x80 */\n\n\t/* Do check from alg (2) above - loops for 0x81..0xff bytes */", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strlen.S", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libc/arch/x86_64/string/strlen.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strrchr.S:1", "text": "/*\n * Written by J.T. Conklin <jtc@acorntoolworks.com>\n * Public domain.\n */\n\n#include <machine/asm.h>\n\n#if defined(LIBC_SCCS)\n\tRCSID(\"$NetBSD: strrchr.S,v 1.3 2014/03/22 19:16:34 jakllsch Exp $\")\n#endif\n\nENTRY(strrchr)\n\tmovzbq\t%sil,%rcx\n\n\t/* zero return value */\n\txorq\t%rax,%rax\n\n\t/*\n\t * Align to word boundary.\n\t * Consider unrolling loop?\n\t */\n.Lalign:\n\ttestb\t$7,%dil\n\tje\t.Lword_aligned\n\tmovb\t(%rdi),%dl\n\tcmpb\t%cl,%dl\n\tcmoveq\t%rdi,%rax\n\tincq\t%rdi\n\ttestb\t%dl,%dl\n\tjne\t.Lalign\n\tjmp\t.Ldone\n\n.Lword_aligned:\n\t/* copy char to all bytes in word */\n\tmovb\t%cl,%ch\n\tmovq\t%rcx,%rdx\n\tsalq\t$16,%rcx\n\torq\t%rdx,%rcx\n\tmovq\t%rcx,%rdx\n\tsalq\t$32,%rcx\n\torq\t%rdx,%rcx\n\n\tmovabsq\t$0x0101010101010101,%r8\n\tmovabsq\t$0x8080808080808080,%r9\n\n\t/* Check whether any byte in the word is equal to ch or 0. */\n\t_ALIGN_TEXT\n.Lloop:\n\tmovq\t(%rdi),%rdx\n\taddq\t$8,%rdi\n\tmovq\t%rdx,%rsi\n\tsubq\t%r8,%rdx\n\txorq\t%rcx,%rsi\n\tsubq\t%r8,%rsi\n\torq\t%rsi,%rdx\n\ttestq\t%r9,%rdx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strrchr.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strrchr.S:2", "text": "orq\t%rdx,%rcx\n\n\tmovabsq\t$0x0101010101010101,%r8\n\tmovabsq\t$0x8080808080808080,%r9\n\n\t/* Check whether any byte in the word is equal to ch or 0. */\n\t_ALIGN_TEXT\n.Lloop:\n\tmovq\t(%rdi),%rdx\n\taddq\t$8,%rdi\n\tmovq\t%rdx,%rsi\n\tsubq\t%r8,%rdx\n\txorq\t%rcx,%rsi\n\tsubq\t%r8,%rsi\n\torq\t%rsi,%rdx\n\ttestq\t%r9,%rdx\n\tje\t.Lloop\n\n\t/*\n\t * In rare cases, the above loop may exit prematurely. We must\n\t * return to the loop if none of the bytes in the word match\n\t * ch or are equal to 0.\n\t */\n\n\tmovb\t-8(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 1st byte == ch? */\n\tjne\t1f\n\tleaq\t-8(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 1st byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-7(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 2nd byte == ch? */\n\tjne\t1f\n\tleaq\t-7(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 2nd byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-6(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 3rd byte == ch? */\n\tjne\t1f\n\tleaq\t-6(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-5(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 4th byte == ch? */\n\tjne\t1f\n\tleaq\t-5(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 4th byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-4(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 5th byte == ch? */\n\tjne\t1f\n\tleaq\t-4(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 5th byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-3(%rdi),%dl", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strrchr.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:common/lib/libc/arch/x86_64/string/strrchr.S:3", "text": "jne\t1f\n\tleaq\t-6(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 3rd byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-5(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 4th byte == ch? */\n\tjne\t1f\n\tleaq\t-5(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 4th byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-4(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 5th byte == ch? */\n\tjne\t1f\n\tleaq\t-4(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 5th byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-3(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 6th byte == ch? */\n\tjne\t1f\n\tleaq\t-3(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 6th byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-2(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 7th byte == ch? */\n\tjne\t1f\n\tleaq\t-2(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 7th byte == 0? */\n\tje\t.Ldone\n\n\tmovb\t-1(%rdi),%dl\n\tcmpb\t%cl,%dl\t\t/* 8th byte == ch? */\n\tjne\t1f\n\tleaq\t-1(%rdi),%rax\n1:\ttestb\t%dl,%dl\t\t/* 8th byte == 0? */\n\tjne\t.Lloop\n\n.Ldone:\n\tret\nEND(strrchr)\n\nSTRONG_ALIAS(rindex,strrchr)", "arch": "x86_64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libc/arch/x86_64/string/strrchr.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libc/arch/x86_64/string/strrchr.S", "line_start": 81, "line_end": 125}
{"id": "NetBSD/src:common/lib/libprop/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.13 2025/05/14 03:25:45 thorpej Exp $\n\n.PATH:\t${.PARSEDIR}\n\nSRCS+=\tprop_array.c prop_array_util.c prop_bool.c prop_data.c \\\n        prop_dictionary.c prop_dictionary_util.c prop_extern.c prop_ingest.c \\\n        prop_intern.c prop_kern.c prop_number.c prop_object.c prop_stack.c \\\n\tprop_string.c", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libprop/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libprop/Makefile.inc", "line_start": 1, "line_end": 8}
{"id": "NetBSD/src:common/lib/libprop/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.12 2025/05/13 15:00:15 thorpej Exp $\n\n.PATH:\t${.PARSEDIR}\n\nSRCS+=\tprop_array.c prop_array_util.c prop_bool.c prop_data.c \\\n        prop_dictionary.c prop_dictionary_util.c prop_ingest.c \\\n        prop_kern.c prop_number.c prop_object.c prop_stack.c prop_string.c", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libprop/Makefile.inc", "license": "BSD-2-Clause", "commit": "5d67befa92840c448643ac27ce9803a5221f2765", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/5d67befa92840c448643ac27ce9803a5221f2765/common/lib/libprop/Makefile.inc", "line_start": 1, "line_end": 7}
{"id": "NetBSD/src:common/lib/libprop/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.11 2025/05/13 13:26:12 thorpej Exp $\n\n.PATH:\t${.PARSEDIR}\n\nSRCS+=\tprop_array.c prop_array_util.c prop_bool.c prop_data.c \\\n        prop_dictionary.c prop_dictionary_util.c prop_extern.c prop_ingest.c \\\n        prop_intern.c prop_kern.c prop_number.c prop_object.c prop_stack.c \\\n\tprop_string.c", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libprop/Makefile.inc", "license": "BSD-2-Clause", "commit": "f1cb95f025f292bb8b519126b2e62f734a791417", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/f1cb95f025f292bb8b519126b2e62f734a791417/common/lib/libprop/Makefile.inc", "line_start": 1, "line_end": 8}
{"id": "NetBSD/src:common/lib/libprop/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.10 2016/06/28 05:18:11 pgoyette Exp $\n\n.PATH:\t${.PARSEDIR}\n\nSRCS+=\tprop_array.c prop_array_util.c prop_bool.c prop_data.c \\\n        prop_dictionary.c prop_dictionary_util.c prop_ingest.c \\\n        prop_kern.c prop_number.c prop_object.c prop_stack.c prop_string.c", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libprop/Makefile.inc", "license": "BSD-2-Clause", "commit": "3a3e6e6861107fa30395b99abb65697f94ef1bf8", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3a3e6e6861107fa30395b99abb65697f94ef1bf8/common/lib/libprop/Makefile.inc", "line_start": 1, "line_end": 7}
{"id": "NetBSD/src:common/lib/libutil/Makefile.inc:1", "text": "#\t$NetBSD: Makefile.inc,v 1.4 2011/11/13 21:56:53 christos Exp $\n.PATH.c: ${.PARSEDIR}\nSRCS+=\tsnprintb.c proc_compare.c getfstypename.c\nCOPTS.snprintb.c = -Wno-format-nonliteral", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "common/lib/libutil/Makefile.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/common/lib/libutil/Makefile.inc", "line_start": 1, "line_end": 4}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libapps/apps_lib.inc:1", "text": "#\t$NetBSD: apps_lib.inc,v 1.1 2025/07/17 14:25:23 christos Exp $\n\n.PATH:\t${OPENSSLSRC}/apps/lib\n\nAPPS_LIB_SRCS += \\\napp_libctx.c \\\napp_params.c \\\napp_provider.c \\\napp_rand.c \\\napp_x509.c \\\napps.c \\\napps_opt_printf.c \\\napps_ui.c \\\ncmp_mock_srv.c \\\ncolumns.c \\\nengine.c \\\nengine_loader.c \\\nfmt.c \\\nhttp_server.c \\\nlog.c \\\nnames.c \\\nopt.c \\\ns_cb.c \\\ns_socket.c \\\ntlssrp_depr.c \\\n\nSRCS += ${APPS_LIB_SRCS}\n\n.for commonsrc in ${APPS_LIB_SRCS}\nCPPFLAGS.${commonsrc} += -I${OPENSSLSRC}/apps/lib ${APPS_LIBCPPFLAGS}\n.endfor", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libapps/apps_lib.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libapps/apps_lib.inc", "line_start": 1, "line_end": 31}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libapps/srcs.inc:1", "text": "#\t$NetBSD: srcs.inc,v 1.1 2025/07/17 14:25:23 christos Exp $\n\nAPPSINCS= \\\napps_lib.inc \\\n\n.for appsinc in ${APPSINCS}\n.if exists(${.CURDIR}/arch/${APPS_MACHINE_CPU}/${appsinc})\n.include \"${.CURDIR}/arch/${APPS_MACHINE_CPU}/${appsinc}\"\n.else\n.include \"${appsinc}\"\n.endif\n.endfor", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libapps/srcs.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libapps/srcs.inc", "line_start": 1, "line_end": 12}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcommon/providers_common.inc:1", "text": "#\t$NetBSD: providers_common.inc,v 1.1 2025/07/17 14:25:23 christos Exp $\n\n.PATH:\t${OPENSSLSRC}/providers/common\n\nPROVIDERS_COMMON_SRCS += \\\nprovider_ctx.c \\\nprovider_err.c \\\n\nSRCS += ${PROVIDERS_COMMON_SRCS}\n\n.for commonsrc in ${PROVIDERS_COMMON_SRCS}\nCPPFLAGS.${commonsrc} += -I${OPENSSLSRC}/providers/common ${PROVIDERS_COMMONCPPFLAGS}\n.endfor", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcommon/providers_common.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcommon/providers_common.inc", "line_start": 1, "line_end": 13}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcommon/providers_common_der.inc:1", "text": "#\t$NetBSD: providers_common_der.inc,v 1.1 2025/07/17 14:25:23 christos Exp $\n\n.PATH:\t${OPENSSLSRC}/providers/common/der\n\nPROVIDERS_COMMON_DER_SRCS += \\\nder_digests_gen.c \\\nder_dsa_gen.c \\\nder_dsa_key.c \\\nder_dsa_sig.c \\\nder_ec_gen.c \\\nder_ec_key.c \\\nder_ec_sig.c \\\nder_ecx_gen.c \\\nder_ecx_key.c \\\nder_ml_dsa_gen.c \\\nder_ml_dsa_key.c \\\nder_rsa_gen.c \\\nder_rsa_key.c \\\nder_slh_dsa_gen.c \\\nder_slh_dsa_key.c \\\nder_wrap_gen.c \\\n\nSRCS += ${PROVIDERS_COMMON_DER_SRCS}\n\n.for commonsrc in ${PROVIDERS_COMMON_DER_SRCS}\nCPPFLAGS.${commonsrc} += -I${OPENSSLSRC}/providers/common/der ${PROVIDERS_COMMON_DERCPPFLAGS}\n.endfor", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcommon/providers_common_der.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcommon/providers_common_der.inc", "line_start": 1, "line_end": 27}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcommon/providers_implementations_ciphers.inc:1", "text": "#\t$NetBSD: providers_implementations_ciphers.inc,v 1.1 2025/07/17 14:25:23 christos Exp $\n\n.PATH:\t${OPENSSLSRC}/providers/implementations/ciphers\n\nPROVIDERS_IMPLEMENTATIONS_CIPHERS_SRCS += \\\nciphercommon.c \\\nciphercommon_block.c \\\nciphercommon_ccm.c \\\nciphercommon_ccm_hw.c \\\nciphercommon_gcm.c \\\nciphercommon_gcm_hw.c \\\nciphercommon_hw.c \\\n\nSRCS += ${PROVIDERS_IMPLEMENTATIONS_CIPHERS_SRCS}\n\n.for commonsrc in ${PROVIDERS_IMPLEMENTATIONS_CIPHERS_SRCS}\nCPPFLAGS.${commonsrc} += -I${OPENSSLSRC}/providers/implementations/ciphers ${PROVIDERS_IMPLEMENTATIONS_CIPHERSCPPFLAGS}\n.endfor", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcommon/providers_implementations_ciphers.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcommon/providers_implementations_ciphers.inc", "line_start": 1, "line_end": 18}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcommon/providers_implementations_digests.inc:1", "text": "#\t$NetBSD: providers_implementations_digests.inc,v 1.1 2025/07/17 14:25:23 christos Exp $\n\n.PATH:\t${OPENSSLSRC}/providers/implementations/digests\n\nPROVIDERS_IMPLEMENTATIONS_DIGESTS_SRCS += \\\ndigestcommon.c \\\n\nSRCS += ${PROVIDERS_IMPLEMENTATIONS_DIGESTS_SRCS}\n\n.for commonsrc in ${PROVIDERS_IMPLEMENTATIONS_DIGESTS_SRCS}\nCPPFLAGS.${commonsrc} += -I${OPENSSLSRC}/providers/implementations/digests ${PROVIDERS_IMPLEMENTATIONS_DIGESTSCPPFLAGS}\n.endfor", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcommon/providers_implementations_digests.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcommon/providers_implementations_digests.inc", "line_start": 1, "line_end": 12}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcommon/srcs.inc:1", "text": "#\t$NetBSD: srcs.inc,v 1.1 2025/07/17 14:25:24 christos Exp $\n\nCOMMONINCS= \\\nproviders_common.inc \\\nproviders_common_der.inc \\\nproviders_implementations_ciphers.inc \\\nproviders_implementations_digests.inc \\\nssl_record.inc \\\n\n.for commoninc in ${COMMONINCS}\n.if exists(${.CURDIR}/arch/${COMMON_MACHINE_CPU}/${commoninc})\n.include \"${.CURDIR}/arch/${COMMON_MACHINE_CPU}/${commoninc}\"\n.else\n.include \"${commoninc}\"\n.endif\n.endfor", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcommon/srcs.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcommon/srcs.inc", "line_start": 1, "line_end": 16}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcommon/ssl_record.inc:1", "text": "#\t$NetBSD: ssl_record.inc,v 1.1 2025/07/17 14:25:24 christos Exp $\n\n.PATH:\t${OPENSSLSRC}/ssl/record/methods\n\nSSL_RECORD_SRCS += \\\ntls_pad.c\n\nSRCS += ${SSL_RECORD_SRCS}\n\n.for commonsrc in ${SSL_RECORD_SRCS}\nCPPFLAGS.${commonsrc} += -I${OPENSSLSRC}/ssl/record/methods ${SSL_RECORDCPPFLAGS}\n.endfor", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcommon/ssl_record.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcommon/ssl_record.inc", "line_start": 1, "line_end": 12}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/aes.inc:1", "text": "#\t$NetBSD: aes.inc,v 1.1 2025/07/17 14:25:24 christos Exp $\n\n.PATH.c:\t${OPENSSLSRC}/crypto/aes\n\nAES_SRCS ?= aes_core.c aes_cbc.c\n\nAES_SRCS += \\\naes_cfb.c \\\naes_ecb.c \\\naes_ige.c \\\naes_misc.c \\\naes_ofb.c \\\naes_wrap.c \\\n\nSRCS += ${AES_SRCS}\n\n# need for all files\nCPPFLAGS+=${AESCPPFLAGS}", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/aes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/aes.inc", "line_start": 1, "line_end": 18}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/aes.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nAESCPPFLAGS = -DVPAES_ASM\nAES_SRCS += aes_core.c aes_cbc.c vpaes-armv8.S aesv8-armx.S aes-gcm-armv8_64.S\nAES_SRCS += aes-gcm-armv8-unroll8_64.S bsaes-armv8.S\n\n.include \"../../aes.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/aes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/aes.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S:1", "text": "#include \"arm_arch.h\"\n\n.text\n.arch\tarmv8-a+crypto\n\n.align\t5\n.globl\t_armv7_neon_probe\n.type\t_armv7_neon_probe,%function\n_armv7_neon_probe:\n\tAARCH64_VALID_CALL_TARGET\n\torr\tv15.16b, v15.16b, v15.16b\n\tret\n.size\t_armv7_neon_probe,.-_armv7_neon_probe\n\n.globl\t_armv7_tick\n.type\t_armv7_tick,%function\n_armv7_tick:\n\tAARCH64_VALID_CALL_TARGET\n#ifdef\t__APPLE__\n\tmrs\tx0, CNTPCT_EL0\n#else\n\tmrs\tx0, CNTVCT_EL0\n#endif\n\tret\n.size\t_armv7_tick,.-_armv7_tick\n\n.globl\t_armv8_aes_probe\n.type\t_armv8_aes_probe,%function\n_armv8_aes_probe:\n\tAARCH64_VALID_CALL_TARGET\n\taese\tv0.16b, v0.16b\n\tret\n.size\t_armv8_aes_probe,.-_armv8_aes_probe\n\n.globl\t_armv8_sha1_probe\n.type\t_armv8_sha1_probe,%function\n_armv8_sha1_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tsha1h\ts0, s0\n\tret\n.size\t_armv8_sha1_probe,.-_armv8_sha1_probe\n\n.globl\t_armv8_sha256_probe\n.type\t_armv8_sha256_probe,%function\n_armv8_sha256_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tsha256su0\tv0.4s, v0.4s\n\tret\n.size\t_armv8_sha256_probe,.-_armv8_sha256_probe\n\n.globl\t_armv8_pmull_probe\n.type\t_armv8_pmull_probe,%function\n_armv8_pmull_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tpmull\tv0.1q, v0.1d, v0.1d\n\tret\n.size\t_armv8_pmull_probe,.-_armv8_pmull_probe\n\n.globl\t_armv8_sm4_probe\n.type\t_armv8_sm4_probe,%function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S:2", "text": ".size\t_armv8_sha1_probe,.-_armv8_sha1_probe\n\n.globl\t_armv8_sha256_probe\n.type\t_armv8_sha256_probe,%function\n_armv8_sha256_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tsha256su0\tv0.4s, v0.4s\n\tret\n.size\t_armv8_sha256_probe,.-_armv8_sha256_probe\n\n.globl\t_armv8_pmull_probe\n.type\t_armv8_pmull_probe,%function\n_armv8_pmull_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tpmull\tv0.1q, v0.1d, v0.1d\n\tret\n.size\t_armv8_pmull_probe,.-_armv8_pmull_probe\n\n.globl\t_armv8_sm4_probe\n.type\t_armv8_sm4_probe,%function\n_armv8_sm4_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xcec08400\t// sm4e\tv0.4s, v0.4s\n\tret\n.size\t_armv8_sm4_probe,.-_armv8_sm4_probe\n\n.globl\t_armv8_sha512_probe\n.type\t_armv8_sha512_probe,%function\n_armv8_sha512_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xcec08000\t// sha512su0\tv0.2d,v0.2d\n\tret\n.size\t_armv8_sha512_probe,.-_armv8_sha512_probe\n\n.globl\t_armv8_eor3_probe\n.type\t_armv8_eor3_probe,%function\n_armv8_eor3_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xce010800\t// eor3\tv0.16b, v0.16b, v1.16b, v2.16b\n\tret\n.size\t_armv8_eor3_probe,.-_armv8_eor3_probe\n\n.globl\t_armv8_sve_probe\n.type\t_armv8_sve_probe,%function\n_armv8_sve_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04a03000\t// eor z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve_probe,.-_armv8_sve_probe\n\n.globl\t_armv8_sve2_probe\n.type\t_armv8_sve2_probe,%function\n_armv8_sve2_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04e03400\t// xar z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve2_probe,.-_armv8_sve2_probe\n\n.globl\t_armv8_cpuid_probe\n.type\t_armv8_cpuid_probe,%function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S:3", "text": ".size\t_armv8_eor3_probe,.-_armv8_eor3_probe\n\n.globl\t_armv8_sve_probe\n.type\t_armv8_sve_probe,%function\n_armv8_sve_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04a03000\t// eor z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve_probe,.-_armv8_sve_probe\n\n.globl\t_armv8_sve2_probe\n.type\t_armv8_sve2_probe,%function\n_armv8_sve2_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04e03400\t// xar z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve2_probe,.-_armv8_sve2_probe\n\n.globl\t_armv8_cpuid_probe\n.type\t_armv8_cpuid_probe,%function\n_armv8_cpuid_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tmrs\tx0, midr_el1\n\tret\n.size\t_armv8_cpuid_probe,.-_armv8_cpuid_probe\n\n.globl\t_armv8_sm3_probe\n.type\t_armv8_sm3_probe,%function\n_armv8_sm3_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xce63c004\t// sm3partw1 v4.4s, v0.4s, v3.4s\n\tret\n.size\t_armv8_sm3_probe,.-_armv8_sm3_probe\n\n.globl\tOPENSSL_cleanse\n.type\tOPENSSL_cleanse,%function\n.align\t5\nOPENSSL_cleanse:\n\tAARCH64_VALID_CALL_TARGET\n\tcbz\tx1,.Lret\t// len==0?\n\tcmp\tx1,#15\n\tb.hi\t.Lot\t\t// len>15\n\tnop\n.Little:\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsubs\tx1,x1,#1\n\tb.ne\t.Little\n.Lret:\tret\n\n.align\t4\n.Lot:\ttst\tx0,#7\n\tb.eq\t.Laligned\t// inp is aligned\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsub\tx1,x1,#1\n\tb\t.Lot\n\n.align\t4\n.Laligned:\n\tstr\txzr,[x0],#8\t// store word-by-word\n\tsub\tx1,x1,#8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S:4", "text": "cmp\tx1,#15\n\tb.hi\t.Lot\t\t// len>15\n\tnop\n.Little:\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsubs\tx1,x1,#1\n\tb.ne\t.Little\n.Lret:\tret\n\n.align\t4\n.Lot:\ttst\tx0,#7\n\tb.eq\t.Laligned\t// inp is aligned\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsub\tx1,x1,#1\n\tb\t.Lot\n\n.align\t4\n.Laligned:\n\tstr\txzr,[x0],#8\t// store word-by-word\n\tsub\tx1,x1,#8\n\ttst\tx1,#-8\n\tb.ne\t.Laligned\t// len>=8\n\tcbnz\tx1,.Little\t// len!=0?\n\tret\n.size\tOPENSSL_cleanse,.-OPENSSL_cleanse\n\n.globl\tCRYPTO_memcmp\n.type\tCRYPTO_memcmp,%function\n.align\t4\nCRYPTO_memcmp:\n\tAARCH64_VALID_CALL_TARGET\n\teor\tw3,w3,w3\n\tcbz\tx2,.Lno_data\t// len==0?\n\tcmp\tx2,#16\n\tb.ne\t.Loop_cmp\n\tldp\tx8,x9,[x0]\n\tldp\tx10,x11,[x1]\n\teor\tx8,x8,x10\n\teor\tx9,x9,x11\n\torr\tx8,x8,x9\n\tmov\tx0,#1\n\tcmp\tx8,#0\n\tcsel\tx0,xzr,x0,eq\n\tret\n\n.align\t4\n.Loop_cmp:\n\tldrb\tw4,[x0],#1\n\tldrb\tw5,[x1],#1\n\teor\tw4,w4,w5\n\torr\tw3,w3,w4\n\tsubs\tx2,x2,#1\n\tb.ne\t.Loop_cmp\n\n.Lno_data:\n\tneg\tw0,w3\n\tlsr\tw0,w0,#31\n\tret\n.size\tCRYPTO_memcmp,.-CRYPTO_memcmp", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S:5", "text": "mov\tx0,#1\n\tcmp\tx8,#0\n\tcsel\tx0,xzr,x0,eq\n\tret\n\n.align\t4\n.Loop_cmp:\n\tldrb\tw4,[x0],#1\n\tldrb\tw5,[x1],#1\n\teor\tw4,w4,w5\n\torr\tw3,w3,w4\n\tsubs\tx2,x2,#1\n\tb.ne\t.Loop_cmp\n\n.Lno_data:\n\tneg\tw0,w3\n\tlsr\tw0,w0,#31\n\tret\n.size\tCRYPTO_memcmp,.-CRYPTO_memcmp\n\n.globl\t_armv8_rng_probe\n.type\t_armv8_rng_probe,%function\n_armv8_rng_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tmrs\tx0, s3_3_c2_c4_0\t// rndr\n\tmrs\tx0, s3_3_c2_c4_1\t// rndrrs\n\tret\n.size\t_armv8_rng_probe,.-_armv8_rng_probe\n// Fill buffer with Randomly Generated Bytes\n// inputs:  char * in x0 - Pointer to buffer\n//          size_t in x1 - Number of bytes to write to buffer\n// outputs: size_t in x0 - Number of bytes successfully written to buffer\n.globl\tOPENSSL_rndr_asm\n.type\tOPENSSL_rndr_asm,%function\n.align\t4\nOPENSSL_rndr_asm:\n\tAARCH64_VALID_CALL_TARGET\n\tmov\tx2,xzr\n\tmov\tx3,xzr\n\n.align\t4\n.Loop_rndr:\n\tcmp\tx1,#0\n\tb.eq\t.rndr_done\n\tmov\tx3,xzr\n\tmrs\tx3,s3_3_c2_c4_0\n\tb.eq\t.rndr_done\n\n\tcmp\tx1,#8\n\tb.lt\t.Loop_single_byte_rndr\n\n\tstr\tx3,[x0]\n\tadd\tx0,x0,#8\n\tadd\tx2,x2,#8\n\tsubs\tx1,x1,#8\n\tb.ge\t.Loop_rndr\n\n.align\t4\n.Loop_single_byte_rndr:\n\tstrb\tw3,[x0]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S:7", "text": "mov\tx2,xzr\n\tmov\tx3,xzr\n\n.align\t4\n.Loop_rndrrs:\n\tcmp\tx1,#0\n\tb.eq\t.rndrrs_done\n\tmov\tx3,xzr\n\tmrs\tx3,s3_3_c2_c4_1\n\tb.eq\t.rndrrs_done\n\n\tcmp\tx1,#8\n\tb.lt\t.Loop_single_byte_rndrrs\n\n\tstr\tx3,[x0]\n\tadd\tx0,x0,#8\n\tadd\tx2,x2,#8\n\tsubs\tx1,x1,#8\n\tb.ge\t.Loop_rndrrs\n\n.align\t4\n.Loop_single_byte_rndrrs:\n\tstrb\tw3,[x0]\n\tlsr\tx3,x3,#8\n\tadd\tx2,x2,#1\n\tadd\tx0,x0,#1\n\tsubs\tx1,x1,#1\n\tb.gt\t.Loop_single_byte_rndrrs\n\n.align\t4\n.rndrrs_done:\n\tmov\tx0,x2\n\tret\n.size\tOPENSSL_rndrrs_asm,.-OPENSSL_rndrrs_asm", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/arm64cpuid.S", "line_start": 241, "line_end": 274}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:1", "text": "#include \"arm_arch.h\"\n#ifndef\t__KERNEL__\n\n.hidden\tOPENSSL_armv8_rsa_neonized\n#endif\n.text\n\n.globl\tbn_mul_mont\n.type\tbn_mul_mont,%function\n.align\t5\nbn_mul_mont:\n\tAARCH64_SIGN_LINK_REGISTER\n.Lbn_mul_mont:\n\ttst\tx5,#3\n\tb.ne\t.Lmul_mont\n\tcmp\tx5,#32\n\tb.le\t.Lscalar_impl\n#ifndef\t__KERNEL__\n#ifndef\t__AARCH64EB__\n\tadrp\tx17,OPENSSL_armv8_rsa_neonized\n\tldr\tw17,[x17,#:lo12:OPENSSL_armv8_rsa_neonized]\n\tcbnz\tw17, bn_mul8x_mont_neon\n#endif\n#endif\n\n.Lscalar_impl:\n\ttst\tx5,#7\n\tb.eq\t__bn_sqr8x_mont\n\ttst\tx5,#3\n\tb.eq\t__bn_mul4x_mont\n\n.Lmul_mont:\n\tstp\tx29,x30,[sp,#-64]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\n\tldr\tx9,[x2],#8\t\t// bp[0]\n\tsub\tx22,sp,x5,lsl#3\n\tldp\tx7,x8,[x1],#16\t// ap[0..1]\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tand\tx22,x22,#-16\t\t// ABI says so\n\tldp\tx13,x14,[x3],#16\t// np[0..1]\n\n\tmul\tx6,x7,x9\t\t// ap[0]*bp[0]\n\tsub\tx21,x5,#16\t\t// j=num-2\n\tumulh\tx7,x7,x9\n\tmul\tx10,x8,x9\t\t// ap[1]*bp[0]\n\tumulh\tx11,x8,x9\n\n\tmul\tx15,x6,x4\t\t// \"tp[0]\"*n0\n\tmov\tsp,x22\t\t\t// alloca\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\t// discarded\n\t// (*)\tAs for removal of first multiplication and addition", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:2", "text": "ldp\tx7,x8,[x1],#16\t// ap[0..1]\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tand\tx22,x22,#-16\t\t// ABI says so\n\tldp\tx13,x14,[x3],#16\t// np[0..1]\n\n\tmul\tx6,x7,x9\t\t// ap[0]*bp[0]\n\tsub\tx21,x5,#16\t\t// j=num-2\n\tumulh\tx7,x7,x9\n\tmul\tx10,x8,x9\t\t// ap[1]*bp[0]\n\tumulh\tx11,x8,x9\n\n\tmul\tx15,x6,x4\t\t// \"tp[0]\"*n0\n\tmov\tsp,x22\t\t\t// alloca\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\t// discarded\n\t// (*)\tAs for removal of first multiplication and addition\n\t//\tinstructions. The outcome of first addition is\n\t//\tguaranteed to be zero, which leaves two computationally\n\t//\tsignificant outcomes: it either carries or not. Then\n\t//\tquestion is when does it carry? Is there alternative\n\t//\tway to deduce it? If you follow operations, you can\n\t//\tobserve that condition for carry is quite simple:\n\t//\tx6 being non-zero. So that carry can be calculated\n\t//\tby adding -1 to x6. That's what next instruction does.\n\tsubs\txzr,x6,#1\t\t// (*)\n\tumulh\tx17,x14,x15\n\tadc\tx13,x13,xzr\n\tcbz\tx21,.L1st_skip\n\n.L1st:\n\tldr\tx8,[x1],#8\n\tadds\tx6,x10,x7\n\tsub\tx21,x21,#8\t\t// j--\n\tadc\tx7,x11,xzr\n\n\tldr\tx14,[x3],#8\n\tadds\tx12,x16,x13\n\tmul\tx10,x8,x9\t\t// ap[j]*bp[0]\n\tadc\tx13,x17,xzr\n\tumulh\tx11,x8,x9\n\n\tadds\tx12,x12,x6\n\tmul\tx16,x14,x15\t\t// np[j]*m1\n\tadc\tx13,x13,xzr\n\tumulh\tx17,x14,x15\n\tstr\tx12,[x22],#8\t\t// tp[j-1]\n\tcbnz\tx21,.L1st\n\n.L1st_skip:\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadc\tx13,x17,xzr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:3", "text": "adds\tx12,x16,x13\n\tmul\tx10,x8,x9\t\t// ap[j]*bp[0]\n\tadc\tx13,x17,xzr\n\tumulh\tx11,x8,x9\n\n\tadds\tx12,x12,x6\n\tmul\tx16,x14,x15\t\t// np[j]*m1\n\tadc\tx13,x13,xzr\n\tumulh\tx17,x14,x15\n\tstr\tx12,[x22],#8\t\t// tp[j-1]\n\tcbnz\tx21,.L1st\n\n.L1st_skip:\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadc\tx13,x17,xzr\n\n\tadds\tx12,x12,x6\n\tsub\tx20,x5,#8\t\t// i=num-1\n\tadcs\tx13,x13,x7\n\n\tadc\tx19,xzr,xzr\t\t// upmost overflow bit\n\tstp\tx12,x13,[x22]\n\n.Louter:\n\tldr\tx9,[x2],#8\t\t// bp[i]\n\tldp\tx7,x8,[x1],#16\n\tldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\n\tmul\tx6,x7,x9\t\t// ap[0]*bp[i]\n\tsub\tx21,x5,#16\t\t// j=num-2\n\tumulh\tx7,x7,x9\n\tldp\tx13,x14,[x3],#16\n\tmul\tx10,x8,x9\t\t// ap[1]*bp[i]\n\tadds\tx6,x6,x23\n\tumulh\tx11,x8,x9\n\tadc\tx7,x7,xzr\n\n\tmul\tx15,x6,x4\n\tsub\tx20,x20,#8\t\t// i--\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\n\tsubs\txzr,x6,#1\t\t// (*)\n\tumulh\tx17,x14,x15\n\tcbz\tx21,.Linner_skip\n\n.Linner:\n\tldr\tx8,[x1],#8\n\tadc\tx13,x13,xzr\n\tldr\tx23,[x22],#8\t\t// tp[j]\n\tadds\tx6,x10,x7\n\tsub\tx21,x21,#8\t\t// j--", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:4", "text": "umulh\tx11,x8,x9\n\tadc\tx7,x7,xzr\n\n\tmul\tx15,x6,x4\n\tsub\tx20,x20,#8\t\t// i--\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\n\tsubs\txzr,x6,#1\t\t// (*)\n\tumulh\tx17,x14,x15\n\tcbz\tx21,.Linner_skip\n\n.Linner:\n\tldr\tx8,[x1],#8\n\tadc\tx13,x13,xzr\n\tldr\tx23,[x22],#8\t\t// tp[j]\n\tadds\tx6,x10,x7\n\tsub\tx21,x21,#8\t\t// j--\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tldr\tx14,[x3],#8\n\tadc\tx13,x17,xzr\n\n\tmul\tx10,x8,x9\t\t// ap[j]*bp[i]\n\tadds\tx6,x6,x23\n\tumulh\tx11,x8,x9\n\tadc\tx7,x7,xzr\n\n\tmul\tx16,x14,x15\t\t// np[j]*m1\n\tadds\tx12,x12,x6\n\tumulh\tx17,x14,x15\n\tstur\tx12,[x22,#-16]\t\t// tp[j-1]\n\tcbnz\tx21,.Linner\n\n.Linner_skip:\n\tldr\tx23,[x22],#8\t\t// tp[j]\n\tadc\tx13,x13,xzr\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadcs\tx13,x17,x19\n\tadc\tx19,xzr,xzr\n\n\tadds\tx6,x6,x23\n\tadc\tx7,x7,xzr\n\n\tadds\tx12,x12,x6\n\tadcs\tx13,x13,x7\n\tadc\tx19,x19,xzr\t\t// upmost overflow bit\n\tstp\tx12,x13,[x22,#-16]\n\n\tcbnz\tx20,.Louter\n\n\t// Final step. We see if result is larger than modulus, and", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:5", "text": "adds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadcs\tx13,x17,x19\n\tadc\tx19,xzr,xzr\n\n\tadds\tx6,x6,x23\n\tadc\tx7,x7,xzr\n\n\tadds\tx12,x12,x6\n\tadcs\tx13,x13,x7\n\tadc\tx19,x19,xzr\t\t// upmost overflow bit\n\tstp\tx12,x13,[x22,#-16]\n\n\tcbnz\tx20,.Louter\n\n\t// Final step. We see if result is larger than modulus, and\n\t// if it is, subtract the modulus. But comparison implies\n\t// subtraction. So we subtract modulus, see if it borrowed,\n\t// and conditionally copy original value.\n\tldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\tldr\tx14,[x3],#8\t\t// np[0]\n\tsubs\tx21,x5,#8\t\t// j=num-1 and clear borrow\n\tmov\tx1,x0\n.Lsub:\n\tsbcs\tx8,x23,x14\t\t// tp[j]-np[j]\n\tldr\tx23,[x22],#8\n\tsub\tx21,x21,#8\t\t// j--\n\tldr\tx14,[x3],#8\n\tstr\tx8,[x1],#8\t\t// rp[j]=tp[j]-np[j]\n\tcbnz\tx21,.Lsub\n\n\tsbcs\tx8,x23,x14\n\tsbcs\tx19,x19,xzr\t\t// did it borrow?\n\tstr\tx8,[x1],#8\t\t// rp[num-1]\n\n\tldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\tldr\tx8,[x0],#8\t\t// rp[0]\n\tsub\tx5,x5,#8\t\t// num--\n\tnop\n.Lcond_copy:\n\tsub\tx5,x5,#8\t\t// num--\n\tcsel\tx14,x23,x8,lo\t\t// did it borrow?\n\tldr\tx23,[x22],#8\n\tldr\tx8,[x0],#8\n\tstur\txzr,[x22,#-16]\t\t// wipe tp\n\tstur\tx14,[x0,#-16]\n\tcbnz\tx5,.Lcond_copy\n\n\tcsel\tx14,x23,x8,lo\n\tstur\txzr,[x22,#-8]\t\t// wipe tp\n\tstur\tx14,[x0,#-8]\n\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:6", "text": "ldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\tldr\tx8,[x0],#8\t\t// rp[0]\n\tsub\tx5,x5,#8\t\t// num--\n\tnop\n.Lcond_copy:\n\tsub\tx5,x5,#8\t\t// num--\n\tcsel\tx14,x23,x8,lo\t\t// did it borrow?\n\tldr\tx23,[x22],#8\n\tldr\tx8,[x0],#8\n\tstur\txzr,[x22,#-16]\t\t// wipe tp\n\tstur\tx14,[x0,#-16]\n\tcbnz\tx5,.Lcond_copy\n\n\tcsel\tx14,x23,x8,lo\n\tstur\txzr,[x22,#-8]\t\t// wipe tp\n\tstur\tx14,[x0,#-8]\n\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldr\tx29,[sp],#64\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tbn_mul_mont,.-bn_mul_mont\n.type\tbn_mul8x_mont_neon,%function\n.align\t5\nbn_mul8x_mont_neon:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because bn_mul8x_mont_neon is jumped to\n\t// only from bn_mul_mont which has already signed the return address.\n\tstp\tx29,x30,[sp,#-80]!\n\tmov\tx16,sp\n\tstp\td8,d9,[sp,#16]\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tlsl\tx5,x5,#1\n\teor\tv14.16b,v14.16b,v14.16b\n\n.align\t4\n.LNEON_8n:\n\teor\tv6.16b,v6.16b,v6.16b\n\tsub\tx7,sp,#128\n\teor\tv7.16b,v7.16b,v7.16b\n\tsub\tx7,x7,x5,lsl#4\n\teor\tv8.16b,v8.16b,v8.16b\n\tand\tx7,x7,#-64\n\teor\tv9.16b,v9.16b,v9.16b\n\tmov\tsp,x7\t\t// alloca\n\teor\tv10.16b,v10.16b,v10.16b\n\tadd\tx7,x7,#256\n\teor\tv11.16b,v11.16b,v11.16b\n\tsub\tx8,x5,#8\n\teor\tv12.16b,v12.16b,v12.16b\n\teor\tv13.16b,v13.16b,v13.16b\n\n.LNEON_8n_init:\n\tst1\t{v6.2d,v7.2d},[x7],#32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:7", "text": ".align\t4\n.LNEON_8n:\n\teor\tv6.16b,v6.16b,v6.16b\n\tsub\tx7,sp,#128\n\teor\tv7.16b,v7.16b,v7.16b\n\tsub\tx7,x7,x5,lsl#4\n\teor\tv8.16b,v8.16b,v8.16b\n\tand\tx7,x7,#-64\n\teor\tv9.16b,v9.16b,v9.16b\n\tmov\tsp,x7\t\t// alloca\n\teor\tv10.16b,v10.16b,v10.16b\n\tadd\tx7,x7,#256\n\teor\tv11.16b,v11.16b,v11.16b\n\tsub\tx8,x5,#8\n\teor\tv12.16b,v12.16b,v12.16b\n\teor\tv13.16b,v13.16b,v13.16b\n\n.LNEON_8n_init:\n\tst1\t{v6.2d,v7.2d},[x7],#32\n\tsubs\tx8,x8,#8\n\tst1\t{v8.2d,v9.2d},[x7],#32\n\tst1\t{v10.2d,v11.2d},[x7],#32\n\tst1\t{v12.2d,v13.2d},[x7],#32\n\tbne\t.LNEON_8n_init\n\n\tadd\tx6,sp,#256\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tadd\tx10,sp,#8\n\tldr\ts30,[x4],#4\n\tmov\tx9,x5\n\tb\t.LNEON_8n_outer\n\n.align\t4\n.LNEON_8n_outer:\n\tldr\ts28,[x2],#4   // *b++\n\tuxtl\tv28.4s,v28.4h\n\tadd\tx7,sp,#128\n\tld1\t{v2.4s,v3.4s},[x3],#32\n\n\tumlal\tv6.2d,v28.2s,v0.s[0]\n\tumlal\tv7.2d,v28.2s,v0.s[1]\n\tumlal\tv8.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v6.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv9.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v6.2d\n\tumlal\tv10.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv11.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[sp]\t\t// put aside smashed b[8*i+0]\n\tumlal\tv12.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv13.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v6.2d,#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:8", "text": "umlal\tv6.2d,v28.2s,v0.s[0]\n\tumlal\tv7.2d,v28.2s,v0.s[1]\n\tumlal\tv8.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v6.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv9.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v6.2d\n\tumlal\tv10.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv11.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[sp]\t\t// put aside smashed b[8*i+0]\n\tumlal\tv12.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv13.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v6.2d,#16\n\tumlal\tv9.2d,v29.2s,v2.s[3]\n\tumlal\tv10.2d,v29.2s,v3.s[0]\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tadd\tv6.2d,v6.2d,v15.2d\n\tumlal\tv11.2d,v29.2s,v3.s[1]\n\tushr\tv6.2d,v6.2d,#16\n\tumlal\tv12.2d,v29.2s,v3.s[2]\n\tumlal\tv13.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v7.2d,v6.2d\n\tins\tv7.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+0]\n\tumlal\tv7.2d,v28.2s,v0.s[0]\n\tld1\t{v6.2d},[x6],#16\n\tumlal\tv8.2d,v28.2s,v0.s[1]\n\tumlal\tv9.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v7.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv10.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v7.2d\n\tumlal\tv11.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv6.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv7.2d,v29.2s,v2.s[0]\n\tumlal\tv8.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv9.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v7.2d,#16\n\tumlal\tv10.2d,v29.2s,v2.s[3]\n\tumlal\tv11.2d,v29.2s,v3.s[0]\n\text\tv7.16b,v7.16b,v7.16b,#8\n\tadd\tv7.2d,v7.2d,v15.2d\n\tumlal\tv12.2d,v29.2s,v3.s[1]\n\tushr\tv7.2d,v7.2d,#16\n\tumlal\tv13.2d,v29.2s,v3.s[2]\n\tumlal\tv6.2d,v29.2s,v3.s[3]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:9", "text": "mul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv6.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv7.2d,v29.2s,v2.s[0]\n\tumlal\tv8.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv9.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v7.2d,#16\n\tumlal\tv10.2d,v29.2s,v2.s[3]\n\tumlal\tv11.2d,v29.2s,v3.s[0]\n\text\tv7.16b,v7.16b,v7.16b,#8\n\tadd\tv7.2d,v7.2d,v15.2d\n\tumlal\tv12.2d,v29.2s,v3.s[1]\n\tushr\tv7.2d,v7.2d,#16\n\tumlal\tv13.2d,v29.2s,v3.s[2]\n\tumlal\tv6.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v8.2d,v7.2d\n\tins\tv8.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+1]\n\tumlal\tv8.2d,v28.2s,v0.s[0]\n\tld1\t{v7.2d},[x6],#16\n\tumlal\tv9.2d,v28.2s,v0.s[1]\n\tumlal\tv10.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v8.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv11.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v8.2d\n\tumlal\tv12.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv13.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+2]\n\tumlal\tv6.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv7.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v8.2d,#16\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\text\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tushr\tv8.2d,v8.2d,#16\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v9.2d,v8.2d\n\tins\tv9.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+2]\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6],#16\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tumlal\tv11.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v9.2d,#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:10", "text": "umlal\tv9.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v8.2d,#16\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\text\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tushr\tv8.2d,v8.2d,#16\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v9.2d,v8.2d\n\tins\tv9.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+2]\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6],#16\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tumlal\tv11.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v9.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv12.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v9.2d\n\tumlal\tv13.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv6.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+3]\n\tumlal\tv7.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv8.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv9.2d,v29.2s,v2.s[0]\n\tumlal\tv10.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv11.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v9.2d,#16\n\tumlal\tv12.2d,v29.2s,v2.s[3]\n\tumlal\tv13.2d,v29.2s,v3.s[0]\n\text\tv9.16b,v9.16b,v9.16b,#8\n\tadd\tv9.2d,v9.2d,v15.2d\n\tumlal\tv6.2d,v29.2s,v3.s[1]\n\tushr\tv9.2d,v9.2d,#16\n\tumlal\tv7.2d,v29.2s,v3.s[2]\n\tumlal\tv8.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v10.2d,v9.2d\n\tins\tv10.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+3]\n\tumlal\tv10.2d,v28.2s,v0.s[0]\n\tld1\t{v9.2d},[x6],#16\n\tumlal\tv11.2d,v28.2s,v0.s[1]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v10.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v10.2d\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+4]\n\tumlal\tv8.2d,v28.2s,v1.s[2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:11", "text": "umlal\tv6.2d,v29.2s,v3.s[1]\n\tushr\tv9.2d,v9.2d,#16\n\tumlal\tv7.2d,v29.2s,v3.s[2]\n\tumlal\tv8.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v10.2d,v9.2d\n\tins\tv10.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+3]\n\tumlal\tv10.2d,v28.2s,v0.s[0]\n\tld1\t{v9.2d},[x6],#16\n\tumlal\tv11.2d,v28.2s,v0.s[1]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v10.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v10.2d\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+4]\n\tumlal\tv8.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv9.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv10.2d,v29.2s,v2.s[0]\n\tumlal\tv11.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv12.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v10.2d,#16\n\tumlal\tv13.2d,v29.2s,v2.s[3]\n\tumlal\tv6.2d,v29.2s,v3.s[0]\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tv10.2d,v10.2d,v15.2d\n\tumlal\tv7.2d,v29.2s,v3.s[1]\n\tushr\tv10.2d,v10.2d,#16\n\tumlal\tv8.2d,v29.2s,v3.s[2]\n\tumlal\tv9.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v11.2d,v10.2d\n\tins\tv11.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+4]\n\tumlal\tv11.2d,v28.2s,v0.s[0]\n\tld1\t{v10.2d},[x6],#16\n\tumlal\tv12.2d,v28.2s,v0.s[1]\n\tumlal\tv13.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v11.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv6.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v11.2d\n\tumlal\tv7.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv8.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+5]\n\tumlal\tv9.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv10.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv11.2d,v29.2s,v2.s[0]\n\tumlal\tv12.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv13.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v11.2d,#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:12", "text": "ld1\t{v10.2d},[x6],#16\n\tumlal\tv12.2d,v28.2s,v0.s[1]\n\tumlal\tv13.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v11.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv6.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v11.2d\n\tumlal\tv7.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv8.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+5]\n\tumlal\tv9.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv10.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv11.2d,v29.2s,v2.s[0]\n\tumlal\tv12.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv13.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v11.2d,#16\n\tumlal\tv6.2d,v29.2s,v2.s[3]\n\tumlal\tv7.2d,v29.2s,v3.s[0]\n\text\tv11.16b,v11.16b,v11.16b,#8\n\tadd\tv11.2d,v11.2d,v15.2d\n\tumlal\tv8.2d,v29.2s,v3.s[1]\n\tushr\tv11.2d,v11.2d,#16\n\tumlal\tv9.2d,v29.2s,v3.s[2]\n\tumlal\tv10.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v12.2d,v11.2d\n\tins\tv12.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+5]\n\tumlal\tv12.2d,v28.2s,v0.s[0]\n\tld1\t{v11.2d},[x6],#16\n\tumlal\tv13.2d,v28.2s,v0.s[1]\n\tumlal\tv6.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v12.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv7.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v12.2d\n\tumlal\tv8.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+6]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv6.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v12.2d,#16\n\tumlal\tv7.2d,v29.2s,v2.s[3]\n\tumlal\tv8.2d,v29.2s,v3.s[0]\n\text\tv12.16b,v12.16b,v12.16b,#8\n\tadd\tv12.2d,v12.2d,v15.2d\n\tumlal\tv9.2d,v29.2s,v3.s[1]\n\tushr\tv12.2d,v12.2d,#16\n\tumlal\tv10.2d,v29.2s,v3.s[2]\n\tumlal\tv11.2d,v29.2s,v3.s[3]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:13", "text": "mul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+6]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv6.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v12.2d,#16\n\tumlal\tv7.2d,v29.2s,v2.s[3]\n\tumlal\tv8.2d,v29.2s,v3.s[0]\n\text\tv12.16b,v12.16b,v12.16b,#8\n\tadd\tv12.2d,v12.2d,v15.2d\n\tumlal\tv9.2d,v29.2s,v3.s[1]\n\tushr\tv12.2d,v12.2d,#16\n\tumlal\tv10.2d,v29.2s,v3.s[2]\n\tumlal\tv11.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v13.2d,v12.2d\n\tins\tv13.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+6]\n\tumlal\tv13.2d,v28.2s,v0.s[0]\n\tld1\t{v12.2d},[x6],#16\n\tumlal\tv6.2d,v28.2s,v0.s[1]\n\tumlal\tv7.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v13.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv8.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v13.2d\n\tumlal\tv9.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv10.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+7]\n\tumlal\tv11.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv12.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[sp]\t\t// pull smashed b[8*i+0]\n\tumlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tmov\tv5.16b,v13.16b\n\tushr\tv5.2d,v5.2d,#16\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tadd\tv13.2d,v13.2d,v5.2d\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tushr\tv13.2d,v13.2d,#16\n\teor\tv15.16b,v15.16b,v15.16b\n\tins\tv13.d[1],v15.d[0]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\tadd\tv6.2d,v6.2d,v13.2d\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+7]\n\tadd\tx10,sp,#8\t\t// rewind\n\tsub\tx8,x5,#8\n\tb\t.LNEON_8n_inner", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:14", "text": "ld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tmov\tv5.16b,v13.16b\n\tushr\tv5.2d,v5.2d,#16\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tadd\tv13.2d,v13.2d,v5.2d\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tushr\tv13.2d,v13.2d,#16\n\teor\tv15.16b,v15.16b,v15.16b\n\tins\tv13.d[1],v15.d[0]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\tadd\tv6.2d,v6.2d,v13.2d\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+7]\n\tadd\tx10,sp,#8\t\t// rewind\n\tsub\tx8,x5,#8\n\tb\t.LNEON_8n_inner\n\n.align\t4\n.LNEON_8n_inner:\n\tsubs\tx8,x8,#8\n\tumlal\tv6.2d,v28.2s,v0.s[0]\n\tld1\t{v13.2d},[x6]\n\tumlal\tv7.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+0]\n\tumlal\tv8.2d,v28.2s,v0.s[2]\n\tld1\t{v2.4s,v3.4s},[x3],#32\n\tumlal\tv9.2d,v28.2s,v0.s[3]\n\tb.eq\t.LInner_jump\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump:\n\tumlal\tv10.2d,v28.2s,v1.s[0]\n\tumlal\tv11.2d,v28.2s,v1.s[1]\n\tumlal\tv12.2d,v28.2s,v1.s[2]\n\tumlal\tv13.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+1]\n\tumlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tumlal\tv9.2d,v29.2s,v2.s[3]\n\tumlal\tv10.2d,v29.2s,v3.s[0]\n\tumlal\tv11.2d,v29.2s,v3.s[1]\n\tumlal\tv12.2d,v29.2s,v3.s[2]\n\tumlal\tv13.2d,v29.2s,v3.s[3]\n\tst1\t{v6.2d},[x7],#16\n\tumlal\tv7.2d,v28.2s,v0.s[0]\n\tld1\t{v6.2d},[x6]\n\tumlal\tv8.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+1]\n\tumlal\tv9.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump1\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump1:\n\tumlal\tv10.2d,v28.2s,v0.s[3]\n\tumlal\tv11.2d,v28.2s,v1.s[0]\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:15", "text": "umlal\tv7.2d,v29.2s,v2.s[1]\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tumlal\tv9.2d,v29.2s,v2.s[3]\n\tumlal\tv10.2d,v29.2s,v3.s[0]\n\tumlal\tv11.2d,v29.2s,v3.s[1]\n\tumlal\tv12.2d,v29.2s,v3.s[2]\n\tumlal\tv13.2d,v29.2s,v3.s[3]\n\tst1\t{v6.2d},[x7],#16\n\tumlal\tv7.2d,v28.2s,v0.s[0]\n\tld1\t{v6.2d},[x6]\n\tumlal\tv8.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+1]\n\tumlal\tv9.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump1\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump1:\n\tumlal\tv10.2d,v28.2s,v0.s[3]\n\tumlal\tv11.2d,v28.2s,v1.s[0]\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]\n\tumlal\tv6.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+2]\n\tumlal\tv7.2d,v29.2s,v2.s[0]\n\tumlal\tv8.2d,v29.2s,v2.s[1]\n\tumlal\tv9.2d,v29.2s,v2.s[2]\n\tumlal\tv10.2d,v29.2s,v2.s[3]\n\tumlal\tv11.2d,v29.2s,v3.s[0]\n\tumlal\tv12.2d,v29.2s,v3.s[1]\n\tumlal\tv13.2d,v29.2s,v3.s[2]\n\tumlal\tv6.2d,v29.2s,v3.s[3]\n\tst1\t{v7.2d},[x7],#16\n\tumlal\tv8.2d,v28.2s,v0.s[0]\n\tld1\t{v7.2d},[x6]\n\tumlal\tv9.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+2]\n\tumlal\tv10.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump2\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump2:\n\tumlal\tv11.2d,v28.2s,v0.s[3]\n\tumlal\tv12.2d,v28.2s,v1.s[0]\n\tumlal\tv13.2d,v28.2s,v1.s[1]\n\tumlal\tv6.2d,v28.2s,v1.s[2]\n\tumlal\tv7.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+3]\n\tumlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tst1\t{v8.2d},[x7],#16\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6]\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+3]\n\tumlal\tv11.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump3", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:16", "text": "umlal\tv12.2d,v28.2s,v1.s[0]\n\tumlal\tv13.2d,v28.2s,v1.s[1]\n\tumlal\tv6.2d,v28.2s,v1.s[2]\n\tumlal\tv7.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+3]\n\tumlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tst1\t{v8.2d},[x7],#16\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6]\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+3]\n\tumlal\tv11.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump3\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump3:\n\tumlal\tv12.2d,v28.2s,v0.s[3]\n\tumlal\tv13.2d,v28.2s,v1.s[0]\n\tumlal\tv6.2d,v28.2s,v1.s[1]\n\tumlal\tv7.2d,v28.2s,v1.s[2]\n\tumlal\tv8.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+4]\n\tumlal\tv9.2d,v29.2s,v2.s[0]\n\tumlal\tv10.2d,v29.2s,v2.s[1]\n\tumlal\tv11.2d,v29.2s,v2.s[2]\n\tumlal\tv12.2d,v29.2s,v2.s[3]\n\tumlal\tv13.2d,v29.2s,v3.s[0]\n\tumlal\tv6.2d,v29.2s,v3.s[1]\n\tumlal\tv7.2d,v29.2s,v3.s[2]\n\tumlal\tv8.2d,v29.2s,v3.s[3]\n\tst1\t{v9.2d},[x7],#16\n\tumlal\tv10.2d,v28.2s,v0.s[0]\n\tld1\t{v9.2d},[x6]\n\tumlal\tv11.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+4]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump4\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump4:\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tumlal\tv8.2d,v28.2s,v1.s[2]\n\tumlal\tv9.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+5]\n\tumlal\tv10.2d,v29.2s,v2.s[0]\n\tumlal\tv11.2d,v29.2s,v2.s[1]\n\tumlal\tv12.2d,v29.2s,v2.s[2]\n\tumlal\tv13.2d,v29.2s,v2.s[3]\n\tumlal\tv6.2d,v29.2s,v3.s[0]\n\tumlal\tv7.2d,v29.2s,v3.s[1]\n\tumlal\tv8.2d,v29.2s,v3.s[2]\n\tumlal\tv9.2d,v29.2s,v3.s[3]\n\tst1\t{v10.2d},[x7],#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:17", "text": "ld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+4]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump4\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump4:\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tumlal\tv8.2d,v28.2s,v1.s[2]\n\tumlal\tv9.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+5]\n\tumlal\tv10.2d,v29.2s,v2.s[0]\n\tumlal\tv11.2d,v29.2s,v2.s[1]\n\tumlal\tv12.2d,v29.2s,v2.s[2]\n\tumlal\tv13.2d,v29.2s,v2.s[3]\n\tumlal\tv6.2d,v29.2s,v3.s[0]\n\tumlal\tv7.2d,v29.2s,v3.s[1]\n\tumlal\tv8.2d,v29.2s,v3.s[2]\n\tumlal\tv9.2d,v29.2s,v3.s[3]\n\tst1\t{v10.2d},[x7],#16\n\tumlal\tv11.2d,v28.2s,v0.s[0]\n\tld1\t{v10.2d},[x6]\n\tumlal\tv12.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+5]\n\tumlal\tv13.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump5\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump5:\n\tumlal\tv6.2d,v28.2s,v0.s[3]\n\tumlal\tv7.2d,v28.2s,v1.s[0]\n\tumlal\tv8.2d,v28.2s,v1.s[1]\n\tumlal\tv9.2d,v28.2s,v1.s[2]\n\tumlal\tv10.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+6]\n\tumlal\tv11.2d,v29.2s,v2.s[0]\n\tumlal\tv12.2d,v29.2s,v2.s[1]\n\tumlal\tv13.2d,v29.2s,v2.s[2]\n\tumlal\tv6.2d,v29.2s,v2.s[3]\n\tumlal\tv7.2d,v29.2s,v3.s[0]\n\tumlal\tv8.2d,v29.2s,v3.s[1]\n\tumlal\tv9.2d,v29.2s,v3.s[2]\n\tumlal\tv10.2d,v29.2s,v3.s[3]\n\tst1\t{v11.2d},[x7],#16\n\tumlal\tv12.2d,v28.2s,v0.s[0]\n\tld1\t{v11.2d},[x6]\n\tumlal\tv13.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+6]\n\tumlal\tv6.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump6\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump6:\n\tumlal\tv7.2d,v28.2s,v0.s[3]\n\tumlal\tv8.2d,v28.2s,v1.s[0]\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+7]\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tumlal\tv6.2d,v29.2s,v2.s[2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:18", "text": "umlal\tv9.2d,v29.2s,v3.s[2]\n\tumlal\tv10.2d,v29.2s,v3.s[3]\n\tst1\t{v11.2d},[x7],#16\n\tumlal\tv12.2d,v28.2s,v0.s[0]\n\tld1\t{v11.2d},[x6]\n\tumlal\tv13.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+6]\n\tumlal\tv6.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump6\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump6:\n\tumlal\tv7.2d,v28.2s,v0.s[3]\n\tumlal\tv8.2d,v28.2s,v1.s[0]\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+7]\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tumlal\tv6.2d,v29.2s,v2.s[2]\n\tumlal\tv7.2d,v29.2s,v2.s[3]\n\tumlal\tv8.2d,v29.2s,v3.s[0]\n\tumlal\tv9.2d,v29.2s,v3.s[1]\n\tumlal\tv10.2d,v29.2s,v3.s[2]\n\tumlal\tv11.2d,v29.2s,v3.s[3]\n\tst1\t{v12.2d},[x7],#16\n\tumlal\tv13.2d,v28.2s,v0.s[0]\n\tld1\t{v12.2d},[x6]\n\tumlal\tv6.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+7]\n\tumlal\tv7.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump7\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump7:\n\tumlal\tv8.2d,v28.2s,v0.s[3]\n\tumlal\tv9.2d,v28.2s,v1.s[0]\n\tumlal\tv10.2d,v28.2s,v1.s[1]\n\tumlal\tv11.2d,v28.2s,v1.s[2]\n\tumlal\tv12.2d,v28.2s,v1.s[3]\n\tb.ne\t.LInner_after_rewind8\n\tsub\tx1,x1,x5,lsl#2\t// rewind\n.LInner_after_rewind8:\n\tumlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v28.2s},[sp]\t\t// pull smashed b[8*i+0]\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tadd\tx10,sp,#8\t\t// rewind\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tst1\t{v13.2d},[x7],#16\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\n\tbne\t.LNEON_8n_inner\n\tadd\tx6,sp,#128\n\tst1\t{v6.2d,v7.2d},[x7],#32\n\teor\tv2.16b,v2.16b,v2.16b\t// v2\n\tst1\t{v8.2d,v9.2d},[x7],#32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:19", "text": "sub\tx1,x1,x5,lsl#2\t// rewind\n.LInner_after_rewind8:\n\tumlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v28.2s},[sp]\t\t// pull smashed b[8*i+0]\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tadd\tx10,sp,#8\t\t// rewind\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tst1\t{v13.2d},[x7],#16\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\n\tbne\t.LNEON_8n_inner\n\tadd\tx6,sp,#128\n\tst1\t{v6.2d,v7.2d},[x7],#32\n\teor\tv2.16b,v2.16b,v2.16b\t// v2\n\tst1\t{v8.2d,v9.2d},[x7],#32\n\teor\tv3.16b,v3.16b,v3.16b\t// v3\n\tst1\t{v10.2d,v11.2d},[x7],#32\n\tst1\t{v12.2d},[x7]\n\n\tsubs\tx9,x9,#8\n\tld1\t{v6.2d,v7.2d},[x6],#32\n\tld1\t{v8.2d,v9.2d},[x6],#32\n\tld1\t{v10.2d,v11.2d},[x6],#32\n\tld1\t{v12.2d,v13.2d},[x6],#32\n\n\tb.eq\t.LInner_8n_jump_2steps\n\tsub\tx3,x3,x5,lsl#2\t// rewind\n\tb\t.LNEON_8n_outer\n\n.LInner_8n_jump_2steps:\n\tadd\tx7,sp,#128\n\tst1\t{v2.2d,v3.2d}, [sp],#32\t// start wiping stack frame\n\tmov\tv5.16b,v6.16b\n\tushr\tv15.2d,v6.2d,#16\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tushr\tv15.2d,v6.2d,#16\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tzip1\tv6.4h,v5.4h,v6.4h\n\tins\tv15.d[1],v14.d[0]\n\n\tmov\tx8,x5\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_tail:\n\tadd\tv6.2d,v6.2d,v15.2d\n\tmov\tv5.16b,v6.16b\n\tushr\tv15.2d,v6.2d,#16\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tld1\t{v8.2d,v9.2d}, [x6],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tld1\t{v10.2d,v11.2d}, [x6],#32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:20", "text": "st1\t{v2.2d,v3.2d}, [sp],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tushr\tv15.2d,v6.2d,#16\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tzip1\tv6.4h,v5.4h,v6.4h\n\tins\tv15.d[1],v14.d[0]\n\n\tmov\tx8,x5\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_tail:\n\tadd\tv6.2d,v6.2d,v15.2d\n\tmov\tv5.16b,v6.16b\n\tushr\tv15.2d,v6.2d,#16\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tld1\t{v8.2d,v9.2d}, [x6],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tld1\t{v10.2d,v11.2d}, [x6],#32\n\tushr\tv15.2d,v6.2d,#16\n\tld1\t{v12.2d,v13.2d}, [x6],#32\n\tzip1\tv6.4h,v5.4h,v6.4h\n\tins\tv15.d[1],v14.d[0]\n\n.LNEON_tail_entry:\n\tadd\tv7.2d,v7.2d,v15.2d\n\tst1\t{v6.s}[0], [x7],#4\n\tushr\tv15.2d,v7.2d,#16\n\tmov\tv5.16b,v7.16b\n\text\tv7.16b,v7.16b,v7.16b,#8\n\tadd\tv7.2d,v7.2d,v15.2d\n\tushr\tv15.2d,v7.2d,#16\n\tzip1\tv7.4h,v5.4h,v7.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv8.2d,v8.2d,v15.2d\n\tst1\t{v7.s}[0], [x7],#4\n\tushr\tv15.2d,v8.2d,#16\n\tmov\tv5.16b,v8.16b\n\text\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tushr\tv15.2d,v8.2d,#16\n\tzip1\tv8.4h,v5.4h,v8.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv9.2d,v9.2d,v15.2d\n\tst1\t{v8.s}[0], [x7],#4\n\tushr\tv15.2d,v9.2d,#16\n\tmov\tv5.16b,v9.16b\n\text\tv9.16b,v9.16b,v9.16b,#8\n\tadd\tv9.2d,v9.2d,v15.2d\n\tushr\tv15.2d,v9.2d,#16\n\tzip1\tv9.4h,v5.4h,v9.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv10.2d,v10.2d,v15.2d\n\tst1\t{v9.s}[0], [x7],#4\n\tushr\tv15.2d,v10.2d,#16\n\tmov\tv5.16b,v10.16b\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tv10.2d,v10.2d,v15.2d\n\tushr\tv15.2d,v10.2d,#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:21", "text": "add\tv8.2d,v8.2d,v15.2d\n\tushr\tv15.2d,v8.2d,#16\n\tzip1\tv8.4h,v5.4h,v8.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv9.2d,v9.2d,v15.2d\n\tst1\t{v8.s}[0], [x7],#4\n\tushr\tv15.2d,v9.2d,#16\n\tmov\tv5.16b,v9.16b\n\text\tv9.16b,v9.16b,v9.16b,#8\n\tadd\tv9.2d,v9.2d,v15.2d\n\tushr\tv15.2d,v9.2d,#16\n\tzip1\tv9.4h,v5.4h,v9.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv10.2d,v10.2d,v15.2d\n\tst1\t{v9.s}[0], [x7],#4\n\tushr\tv15.2d,v10.2d,#16\n\tmov\tv5.16b,v10.16b\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tv10.2d,v10.2d,v15.2d\n\tushr\tv15.2d,v10.2d,#16\n\tzip1\tv10.4h,v5.4h,v10.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv11.2d,v11.2d,v15.2d\n\tst1\t{v10.s}[0], [x7],#4\n\tushr\tv15.2d,v11.2d,#16\n\tmov\tv5.16b,v11.16b\n\text\tv11.16b,v11.16b,v11.16b,#8\n\tadd\tv11.2d,v11.2d,v15.2d\n\tushr\tv15.2d,v11.2d,#16\n\tzip1\tv11.4h,v5.4h,v11.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv12.2d,v12.2d,v15.2d\n\tst1\t{v11.s}[0], [x7],#4\n\tushr\tv15.2d,v12.2d,#16\n\tmov\tv5.16b,v12.16b\n\text\tv12.16b,v12.16b,v12.16b,#8\n\tadd\tv12.2d,v12.2d,v15.2d\n\tushr\tv15.2d,v12.2d,#16\n\tzip1\tv12.4h,v5.4h,v12.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv13.2d,v13.2d,v15.2d\n\tst1\t{v12.s}[0], [x7],#4\n\tushr\tv15.2d,v13.2d,#16\n\tmov\tv5.16b,v13.16b\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tadd\tv13.2d,v13.2d,v15.2d\n\tushr\tv15.2d,v13.2d,#16\n\tzip1\tv13.4h,v5.4h,v13.4h\n\tins\tv15.d[1],v14.d[0]\n\tld1\t{v6.2d,v7.2d}, [x6],#32\n\tsubs\tx8,x8,#8\n\tst1\t{v13.s}[0], [x7],#4\n\tbne\t.LNEON_tail\n\n\tst1\t{v15.s}[0], [x7],#4\t// top-most bit\n\tsub\tx3,x3,x5,lsl#2\t\t// rewind x3\n\tsubs\tx1,sp,#0\t\t\t// clear carry flag\n\tadd\tx2,sp,x5,lsl#2\n\n.LNEON_sub:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:22", "text": "add\tv13.2d,v13.2d,v15.2d\n\tst1\t{v12.s}[0], [x7],#4\n\tushr\tv15.2d,v13.2d,#16\n\tmov\tv5.16b,v13.16b\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tadd\tv13.2d,v13.2d,v15.2d\n\tushr\tv15.2d,v13.2d,#16\n\tzip1\tv13.4h,v5.4h,v13.4h\n\tins\tv15.d[1],v14.d[0]\n\tld1\t{v6.2d,v7.2d}, [x6],#32\n\tsubs\tx8,x8,#8\n\tst1\t{v13.s}[0], [x7],#4\n\tbne\t.LNEON_tail\n\n\tst1\t{v15.s}[0], [x7],#4\t// top-most bit\n\tsub\tx3,x3,x5,lsl#2\t\t// rewind x3\n\tsubs\tx1,sp,#0\t\t\t// clear carry flag\n\tadd\tx2,sp,x5,lsl#2\n\n.LNEON_sub:\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tldp\tw8,w9,[x3],#8\n\tldp\tw10,w11,[x3],#8\n\tsbcs\tw8,w4,w8\n\tsbcs\tw9,w5,w9\n\tsbcs\tw10,w6,w10\n\tsbcs\tw11,w7,w11\n\tsub\tx17,x2,x1\n\tstp\tw8,w9,[x0],#8\n\tstp\tw10,w11,[x0],#8\n\tcbnz\tx17,.LNEON_sub\n\n\tldr\tw10, [x1]\t\t// load top-most bit\n\tmov\tx11,sp\n\teor\tv0.16b,v0.16b,v0.16b\n\tsub\tx11,x2,x11\t\t// this is num*4\n\teor\tv1.16b,v1.16b,v1.16b\n\tmov\tx1,sp\n\tsub\tx0,x0,x11\t\t// rewind x0\n\tmov\tx3,x2\t\t// second 3/4th of frame\n\tsbcs\tw10,w10,wzr\t\t// result is carry flag\n\n.LNEON_copy_n_zap:\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tldp\tw8,w9,[x0],#8\n\tldp\tw10,w11,[x0]\n\tsub\tx0,x0,#8\n\tb.cs\t.LCopy_1\n\tmov\tw8,w4\n\tmov\tw9,w5\n\tmov\tw10,w6\n\tmov\tw11,w7\n.LCopy_1:\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tstp\tw8,w9,[x0],#8", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:23", "text": "mov\tx3,x2\t\t// second 3/4th of frame\n\tsbcs\tw10,w10,wzr\t\t// result is carry flag\n\n.LNEON_copy_n_zap:\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tldp\tw8,w9,[x0],#8\n\tldp\tw10,w11,[x0]\n\tsub\tx0,x0,#8\n\tb.cs\t.LCopy_1\n\tmov\tw8,w4\n\tmov\tw9,w5\n\tmov\tw10,w6\n\tmov\tw11,w7\n.LCopy_1:\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tstp\tw8,w9,[x0],#8\n\tstp\tw10,w11,[x0],#8\n\tsub\tx1,x1,#32\n\tldp\tw8,w9,[x0],#8\n\tldp\tw10,w11,[x0]\n\tsub\tx0,x0,#8\n\tb.cs\t.LCopy_2\n\tmov\tw8, w4\n\tmov\tw9, w5\n\tmov\tw10, w6\n\tmov\tw11, w7\n.LCopy_2:\n\tst1\t{v0.2d,v1.2d}, [x1],#32\t\t// wipe\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tsub\tx17,x2,x1\t\t// preserves carry\n\tstp\tw8,w9,[x0],#8\n\tstp\tw10,w11,[x0],#8\n\tcbnz\tx17,.LNEON_copy_n_zap\n\n\tmov\tsp,x16\n\tldp\td14,d15,[sp,#64]\n\tldp\td12,d13,[sp,#48]\n\tldp\td10,d11,[sp,#32]\n\tldp\td8,d9,[sp,#16]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\t// bx lr\n\n.size\tbn_mul8x_mont_neon,.-bn_mul8x_mont_neon\n.type\t__bn_sqr8x_mont,%function\n.align\t5\n__bn_sqr8x_mont:\n\tcmp\tx1,x2\n\tb.ne\t__bn_mul4x_mont\n.Lsqr8x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_sqr8x_mont is jumped to\n\t// only from bn_mul_mont which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:24", "text": "ldp\td12,d13,[sp,#48]\n\tldp\td10,d11,[sp,#32]\n\tldp\td8,d9,[sp,#16]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\t// bx lr\n\n.size\tbn_mul8x_mont_neon,.-bn_mul8x_mont_neon\n.type\t__bn_sqr8x_mont,%function\n.align\t5\n__bn_sqr8x_mont:\n\tcmp\tx1,x2\n\tb.ne\t__bn_mul4x_mont\n.Lsqr8x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_sqr8x_mont is jumped to\n\t// only from bn_mul_mont which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tstp\tx0,x3,[sp,#96]\t// offload rp and np\n\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tldp\tx10,x11,[x1,#8*4]\n\tldp\tx12,x13,[x1,#8*6]\n\n\tsub\tx2,sp,x5,lsl#4\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tmov\tsp,x2\t\t\t// alloca\n\tsub\tx27,x5,#8*8\n\tb\t.Lsqr8x_zero_start\n\n.Lsqr8x_zero:\n\tsub\tx27,x27,#8*8\n\tstp\txzr,xzr,[x2,#8*0]\n\tstp\txzr,xzr,[x2,#8*2]\n\tstp\txzr,xzr,[x2,#8*4]\n\tstp\txzr,xzr,[x2,#8*6]\n.Lsqr8x_zero_start:\n\tstp\txzr,xzr,[x2,#8*8]\n\tstp\txzr,xzr,[x2,#8*10]\n\tstp\txzr,xzr,[x2,#8*12]\n\tstp\txzr,xzr,[x2,#8*14]\n\tadd\tx2,x2,#8*16\n\tcbnz\tx27,.Lsqr8x_zero\n\n\tadd\tx3,x1,x5\n\tadd\tx1,x1,#8*8\n\tmov\tx19,xzr\n\tmov\tx20,xzr\n\tmov\tx21,xzr\n\tmov\tx22,xzr\n\tmov\tx23,xzr\n\tmov\tx24,xzr\n\tmov\tx25,xzr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:25", "text": "stp\txzr,xzr,[x2,#8*2]\n\tstp\txzr,xzr,[x2,#8*4]\n\tstp\txzr,xzr,[x2,#8*6]\n.Lsqr8x_zero_start:\n\tstp\txzr,xzr,[x2,#8*8]\n\tstp\txzr,xzr,[x2,#8*10]\n\tstp\txzr,xzr,[x2,#8*12]\n\tstp\txzr,xzr,[x2,#8*14]\n\tadd\tx2,x2,#8*16\n\tcbnz\tx27,.Lsqr8x_zero\n\n\tadd\tx3,x1,x5\n\tadd\tx1,x1,#8*8\n\tmov\tx19,xzr\n\tmov\tx20,xzr\n\tmov\tx21,xzr\n\tmov\tx22,xzr\n\tmov\tx23,xzr\n\tmov\tx24,xzr\n\tmov\tx25,xzr\n\tmov\tx26,xzr\n\tmov\tx2,sp\n\tstr\tx4,[x29,#112]\t\t// offload n0\n\n\t// Multiply everything but a[i]*a[i]\n.align\t4\n.Lsqr8x_outer_loop:\n        //                                                 a[1]a[0]\t(i)\n        //                                             a[2]a[0]\n        //                                         a[3]a[0]\n        //                                     a[4]a[0]\n        //                                 a[5]a[0]\n        //                             a[6]a[0]\n        //                         a[7]a[0]\n        //                                         a[2]a[1]\t\t(ii)\n        //                                     a[3]a[1]\n        //                                 a[4]a[1]\n        //                             a[5]a[1]\n        //                         a[6]a[1]\n        //                     a[7]a[1]\n        //                                 a[3]a[2]\t\t\t(iii)\n        //                             a[4]a[2]\n        //                         a[5]a[2]\n        //                     a[6]a[2]\n        //                 a[7]a[2]\n        //                         a[4]a[3]\t\t\t\t(iv)\n        //                     a[5]a[3]\n        //                 a[6]a[3]\n        //             a[7]a[3]\n        //                 a[5]a[4]\t\t\t\t\t(v)\n        //             a[6]a[4]\n        //         a[7]a[4]\n        //         a[6]a[5]\t\t\t\t\t\t(vi)\n        //     a[7]a[5]\n        // a[7]a[6]\t\t\t\t\t\t\t(vii)\n\n\tmul\tx14,x7,x6\t\t// lo(a[1..7]*a[0])\t\t(i)\n\tmul\tx15,x8,x6\n\tmul\tx16,x9,x6\n\tmul\tx17,x10,x6", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:26", "text": "//                                 a[3]a[2]\t\t\t(iii)\n        //                             a[4]a[2]\n        //                         a[5]a[2]\n        //                     a[6]a[2]\n        //                 a[7]a[2]\n        //                         a[4]a[3]\t\t\t\t(iv)\n        //                     a[5]a[3]\n        //                 a[6]a[3]\n        //             a[7]a[3]\n        //                 a[5]a[4]\t\t\t\t\t(v)\n        //             a[6]a[4]\n        //         a[7]a[4]\n        //         a[6]a[5]\t\t\t\t\t\t(vi)\n        //     a[7]a[5]\n        // a[7]a[6]\t\t\t\t\t\t\t(vii)\n\n\tmul\tx14,x7,x6\t\t// lo(a[1..7]*a[0])\t\t(i)\n\tmul\tx15,x8,x6\n\tmul\tx16,x9,x6\n\tmul\tx17,x10,x6\n\tadds\tx20,x20,x14\t\t// t[1]+lo(a[1]*a[0])\n\tmul\tx14,x11,x6\n\tadcs\tx21,x21,x15\n\tmul\tx15,x12,x6\n\tadcs\tx22,x22,x16\n\tmul\tx16,x13,x6\n\tadcs\tx23,x23,x17\n\tumulh\tx17,x7,x6\t\t// hi(a[1..7]*a[0])\n\tadcs\tx24,x24,x14\n\tumulh\tx14,x8,x6\n\tadcs\tx25,x25,x15\n\tumulh\tx15,x9,x6\n\tadcs\tx26,x26,x16\n\tumulh\tx16,x10,x6\n\tstp\tx19,x20,[x2],#8*2\t// t[0..1]\n\tadc\tx19,xzr,xzr\t\t// t[8]\n\tadds\tx21,x21,x17\t\t// t[2]+lo(a[1]*a[0])\n\tumulh\tx17,x11,x6\n\tadcs\tx22,x22,x14\n\tumulh\tx14,x12,x6\n\tadcs\tx23,x23,x15\n\tumulh\tx15,x13,x6\n\tadcs\tx24,x24,x16\n\tmul\tx16,x8,x7\t\t// lo(a[2..7]*a[1])\t\t(ii)\n\tadcs\tx25,x25,x17\n\tmul\tx17,x9,x7\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x7\n\tadc\tx19,x19,x15\n\n\tmul\tx15,x11,x7\n\tadds\tx22,x22,x16\n\tmul\tx16,x12,x7\n\tadcs\tx23,x23,x17\n\tmul\tx17,x13,x7\n\tadcs\tx24,x24,x14\n\tumulh\tx14,x8,x7\t\t// hi(a[2..7]*a[1])\n\tadcs\tx25,x25,x15\n\tumulh\tx15,x9,x7\n\tadcs\tx26,x26,x16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:27", "text": "adcs\tx23,x23,x15\n\tumulh\tx15,x13,x6\n\tadcs\tx24,x24,x16\n\tmul\tx16,x8,x7\t\t// lo(a[2..7]*a[1])\t\t(ii)\n\tadcs\tx25,x25,x17\n\tmul\tx17,x9,x7\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x7\n\tadc\tx19,x19,x15\n\n\tmul\tx15,x11,x7\n\tadds\tx22,x22,x16\n\tmul\tx16,x12,x7\n\tadcs\tx23,x23,x17\n\tmul\tx17,x13,x7\n\tadcs\tx24,x24,x14\n\tumulh\tx14,x8,x7\t\t// hi(a[2..7]*a[1])\n\tadcs\tx25,x25,x15\n\tumulh\tx15,x9,x7\n\tadcs\tx26,x26,x16\n\tumulh\tx16,x10,x7\n\tadcs\tx19,x19,x17\n\tumulh\tx17,x11,x7\n\tstp\tx21,x22,[x2],#8*2\t// t[2..3]\n\tadc\tx20,xzr,xzr\t\t// t[9]\n\tadds\tx23,x23,x14\n\tumulh\tx14,x12,x7\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x13,x7\n\tadcs\tx25,x25,x16\n\tmul\tx16,x9,x8\t\t// lo(a[3..7]*a[2])\t\t(iii)\n\tadcs\tx26,x26,x17\n\tmul\tx17,x10,x8\n\tadcs\tx19,x19,x14\n\tmul\tx14,x11,x8\n\tadc\tx20,x20,x15\n\n\tmul\tx15,x12,x8\n\tadds\tx24,x24,x16\n\tmul\tx16,x13,x8\n\tadcs\tx25,x25,x17\n\tumulh\tx17,x9,x8\t\t// hi(a[3..7]*a[2])\n\tadcs\tx26,x26,x14\n\tumulh\tx14,x10,x8\n\tadcs\tx19,x19,x15\n\tumulh\tx15,x11,x8\n\tadcs\tx20,x20,x16\n\tumulh\tx16,x12,x8\n\tstp\tx23,x24,[x2],#8*2\t// t[4..5]\n\tadc\tx21,xzr,xzr\t\t// t[10]\n\tadds\tx25,x25,x17\n\tumulh\tx17,x13,x8\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x9\t\t// lo(a[4..7]*a[3])\t\t(iv)\n\tadcs\tx19,x19,x15\n\tmul\tx15,x11,x9\n\tadcs\tx20,x20,x16\n\tmul\tx16,x12,x9\n\tadc\tx21,x21,x17", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:28", "text": "adcs\tx25,x25,x17\n\tumulh\tx17,x9,x8\t\t// hi(a[3..7]*a[2])\n\tadcs\tx26,x26,x14\n\tumulh\tx14,x10,x8\n\tadcs\tx19,x19,x15\n\tumulh\tx15,x11,x8\n\tadcs\tx20,x20,x16\n\tumulh\tx16,x12,x8\n\tstp\tx23,x24,[x2],#8*2\t// t[4..5]\n\tadc\tx21,xzr,xzr\t\t// t[10]\n\tadds\tx25,x25,x17\n\tumulh\tx17,x13,x8\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x9\t\t// lo(a[4..7]*a[3])\t\t(iv)\n\tadcs\tx19,x19,x15\n\tmul\tx15,x11,x9\n\tadcs\tx20,x20,x16\n\tmul\tx16,x12,x9\n\tadc\tx21,x21,x17\n\n\tmul\tx17,x13,x9\n\tadds\tx26,x26,x14\n\tumulh\tx14,x10,x9\t\t// hi(a[4..7]*a[3])\n\tadcs\tx19,x19,x15\n\tumulh\tx15,x11,x9\n\tadcs\tx20,x20,x16\n\tumulh\tx16,x12,x9\n\tadcs\tx21,x21,x17\n\tumulh\tx17,x13,x9\n\tstp\tx25,x26,[x2],#8*2\t// t[6..7]\n\tadc\tx22,xzr,xzr\t\t// t[11]\n\tadds\tx19,x19,x14\n\tmul\tx14,x11,x10\t\t// lo(a[5..7]*a[4])\t\t(v)\n\tadcs\tx20,x20,x15\n\tmul\tx15,x12,x10\n\tadcs\tx21,x21,x16\n\tmul\tx16,x13,x10\n\tadc\tx22,x22,x17\n\n\tumulh\tx17,x11,x10\t\t// hi(a[5..7]*a[4])\n\tadds\tx20,x20,x14\n\tumulh\tx14,x12,x10\n\tadcs\tx21,x21,x15\n\tumulh\tx15,x13,x10\n\tadcs\tx22,x22,x16\n\tmul\tx16,x12,x11\t\t// lo(a[6..7]*a[5])\t\t(vi)\n\tadc\tx23,xzr,xzr\t\t// t[12]\n\tadds\tx21,x21,x17\n\tmul\tx17,x13,x11\n\tadcs\tx22,x22,x14\n\tumulh\tx14,x12,x11\t\t// hi(a[6..7]*a[5])\n\tadc\tx23,x23,x15\n\n\tumulh\tx15,x13,x11\n\tadds\tx22,x22,x16\n\tmul\tx16,x13,x12\t\t// lo(a[7]*a[6])\t\t(vii)\n\tadcs\tx23,x23,x17\n\tumulh\tx17,x13,x12\t\t// hi(a[7]*a[6])\n\tadc\tx24,xzr,xzr\t\t// t[13]\n\tadds\tx23,x23,x14", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:29", "text": "adds\tx20,x20,x14\n\tumulh\tx14,x12,x10\n\tadcs\tx21,x21,x15\n\tumulh\tx15,x13,x10\n\tadcs\tx22,x22,x16\n\tmul\tx16,x12,x11\t\t// lo(a[6..7]*a[5])\t\t(vi)\n\tadc\tx23,xzr,xzr\t\t// t[12]\n\tadds\tx21,x21,x17\n\tmul\tx17,x13,x11\n\tadcs\tx22,x22,x14\n\tumulh\tx14,x12,x11\t\t// hi(a[6..7]*a[5])\n\tadc\tx23,x23,x15\n\n\tumulh\tx15,x13,x11\n\tadds\tx22,x22,x16\n\tmul\tx16,x13,x12\t\t// lo(a[7]*a[6])\t\t(vii)\n\tadcs\tx23,x23,x17\n\tumulh\tx17,x13,x12\t\t// hi(a[7]*a[6])\n\tadc\tx24,xzr,xzr\t\t// t[13]\n\tadds\tx23,x23,x14\n\tsub\tx27,x3,x1\t// done yet?\n\tadc\tx24,x24,x15\n\n\tadds\tx24,x24,x16\n\tsub\tx14,x3,x5\t// rewinded ap\n\tadc\tx25,xzr,xzr\t\t// t[14]\n\tadd\tx25,x25,x17\n\n\tcbz\tx27,.Lsqr8x_outer_break\n\n\tmov\tx4,x6\n\tldp\tx6,x7,[x2,#8*0]\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tadds\tx19,x19,x6\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx0,x1\n\tadcs\tx26,xzr,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved below\n\tmov\tx27,#-8*8\n\n\t//                                                         a[8]a[0]\n\t//                                                     a[9]a[0]\n\t//                                                 a[a]a[0]\n\t//                                             a[b]a[0]\n\t//                                         a[c]a[0]\n\t//                                     a[d]a[0]\n\t//                                 a[e]a[0]\n\t//                             a[f]a[0]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:30", "text": "ldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx0,x1\n\tadcs\tx26,xzr,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved below\n\tmov\tx27,#-8*8\n\n\t//                                                         a[8]a[0]\n\t//                                                     a[9]a[0]\n\t//                                                 a[a]a[0]\n\t//                                             a[b]a[0]\n\t//                                         a[c]a[0]\n\t//                                     a[d]a[0]\n\t//                                 a[e]a[0]\n\t//                             a[f]a[0]\n\t//                                                     a[8]a[1]\n\t//                         a[f]a[1]........................\n\t//                                                 a[8]a[2]\n\t//                     a[f]a[2]........................\n\t//                                             a[8]a[3]\n\t//                 a[f]a[3]........................\n\t//                                         a[8]a[4]\n\t//             a[f]a[4]........................\n\t//                                     a[8]a[5]\n\t//         a[f]a[5]........................\n\t//                                 a[8]a[6]\n\t//     a[f]a[6]........................\n\t//                             a[8]a[7]\n\t// a[f]a[7]........................\n.Lsqr8x_mul:\n\tmul\tx14,x6,x4\n\tadc\tx28,xzr,xzr\t\t// carry bit, modulo-scheduled\n\tmul\tx15,x7,x4\n\tadd\tx27,x27,#8\n\tmul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4\n\tadcs\tx22,x22,x17\n\tmul\tx17,x13,x4\n\tadcs\tx23,x23,x14\n\tumulh\tx14,x6,x4\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x7,x4\n\tadcs\tx25,x25,x16\n\tumulh\tx16,x8,x4\n\tadcs\tx26,x26,x17\n\tumulh\tx17,x9,x4\n\tadc\tx28,x28,xzr\n\tstr\tx19,[x2],#8\n\tadds\tx19,x20,x14", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:31", "text": "mul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4\n\tadcs\tx22,x22,x17\n\tmul\tx17,x13,x4\n\tadcs\tx23,x23,x14\n\tumulh\tx14,x6,x4\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x7,x4\n\tadcs\tx25,x25,x16\n\tumulh\tx16,x8,x4\n\tadcs\tx26,x26,x17\n\tumulh\tx17,x9,x4\n\tadc\tx28,x28,xzr\n\tstr\tx19,[x2],#8\n\tadds\tx19,x20,x14\n\tumulh\tx14,x10,x4\n\tadcs\tx20,x21,x15\n\tumulh\tx15,x11,x4\n\tadcs\tx21,x22,x16\n\tumulh\tx16,x12,x4\n\tadcs\tx22,x23,x17\n\tumulh\tx17,x13,x4\n\tldr\tx4,[x0,x27]\n\tadcs\tx23,x24,x14\n\tadcs\tx24,x25,x15\n\tadcs\tx25,x26,x16\n\tadcs\tx26,x28,x17\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tcbnz\tx27,.Lsqr8x_mul\n\t\t\t\t\t// note that carry flag is guaranteed\n\t\t\t\t\t// to be zero at this point\n\tcmp\tx1,x3\t\t// done yet?\n\tb.eq\t.Lsqr8x_break\n\n\tldp\tx6,x7,[x2,#8*0]\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tadds\tx19,x19,x6\n\tldur\tx4,[x0,#-8*8]\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx27,#-8*8\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tb\t.Lsqr8x_mul", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:32", "text": "ldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tadds\tx19,x19,x6\n\tldur\tx4,[x0,#-8*8]\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx27,#-8*8\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tb\t.Lsqr8x_mul\n\n.align\t4\n.Lsqr8x_break:\n\tldp\tx6,x7,[x0,#8*0]\n\tadd\tx1,x0,#8*8\n\tldp\tx8,x9,[x0,#8*2]\n\tsub\tx14,x3,x1\t\t// is it last iteration?\n\tldp\tx10,x11,[x0,#8*4]\n\tsub\tx15,x2,x14\n\tldp\tx12,x13,[x0,#8*6]\n\tcbz\tx14,.Lsqr8x_outer_loop\n\n\tstp\tx19,x20,[x2,#8*0]\n\tldp\tx19,x20,[x15,#8*0]\n\tstp\tx21,x22,[x2,#8*2]\n\tldp\tx21,x22,[x15,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[x15,#8*4]\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,x15\n\tldp\tx25,x26,[x15,#8*6]\n\tb\t.Lsqr8x_outer_loop\n\n.align\t4\n.Lsqr8x_outer_break:\n\t// Now multiply above result by 2 and add a[n-1]*a[n-1]|...|a[0]*a[0]\n\tldp\tx7,x9,[x14,#8*0]\t// recall that x14 is &a[0]\n\tldp\tx15,x16,[sp,#8*1]\n\tldp\tx11,x13,[x14,#8*2]\n\tadd\tx1,x14,#8*4\n\tldp\tx17,x14,[sp,#8*3]\n\n\tstp\tx19,x20,[x2,#8*0]\n\tmul\tx19,x7,x7\n\tstp\tx21,x22,[x2,#8*2]\n\tumulh\tx7,x7,x7\n\tstp\tx23,x24,[x2,#8*4]\n\tmul\tx8,x9,x9\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,sp", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:33", "text": "ldp\tx25,x26,[x15,#8*6]\n\tb\t.Lsqr8x_outer_loop\n\n.align\t4\n.Lsqr8x_outer_break:\n\t// Now multiply above result by 2 and add a[n-1]*a[n-1]|...|a[0]*a[0]\n\tldp\tx7,x9,[x14,#8*0]\t// recall that x14 is &a[0]\n\tldp\tx15,x16,[sp,#8*1]\n\tldp\tx11,x13,[x14,#8*2]\n\tadd\tx1,x14,#8*4\n\tldp\tx17,x14,[sp,#8*3]\n\n\tstp\tx19,x20,[x2,#8*0]\n\tmul\tx19,x7,x7\n\tstp\tx21,x22,[x2,#8*2]\n\tumulh\tx7,x7,x7\n\tstp\tx23,x24,[x2,#8*4]\n\tmul\tx8,x9,x9\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,sp\n\tumulh\tx9,x9,x9\n\tadds\tx20,x7,x15,lsl#1\n\textr\tx15,x16,x15,#63\n\tsub\tx27,x5,#8*4\n\n.Lsqr4x_shift_n_add:\n\tadcs\tx21,x8,x15\n\textr\tx16,x17,x16,#63\n\tsub\tx27,x27,#8*4\n\tadcs\tx22,x9,x16\n\tldp\tx15,x16,[x2,#8*5]\n\tmul\tx10,x11,x11\n\tldp\tx7,x9,[x1],#8*2\n\tumulh\tx11,x11,x11\n\tmul\tx12,x13,x13\n\tumulh\tx13,x13,x13\n\textr\tx17,x14,x17,#63\n\tstp\tx19,x20,[x2,#8*0]\n\tadcs\tx23,x10,x17\n\textr\tx14,x15,x14,#63\n\tstp\tx21,x22,[x2,#8*2]\n\tadcs\tx24,x11,x14\n\tldp\tx17,x14,[x2,#8*7]\n\textr\tx15,x16,x15,#63\n\tadcs\tx25,x12,x15\n\textr\tx16,x17,x16,#63\n\tadcs\tx26,x13,x16\n\tldp\tx15,x16,[x2,#8*9]\n\tmul\tx6,x7,x7\n\tldp\tx11,x13,[x1],#8*2\n\tumulh\tx7,x7,x7\n\tmul\tx8,x9,x9\n\tumulh\tx9,x9,x9\n\tstp\tx23,x24,[x2,#8*4]\n\textr\tx17,x14,x17,#63\n\tstp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8\n\tadcs\tx19,x6,x17\n\textr\tx14,x15,x14,#63\n\tadcs\tx20,x7,x14", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:34", "text": "stp\tx21,x22,[x2,#8*2]\n\tadcs\tx24,x11,x14\n\tldp\tx17,x14,[x2,#8*7]\n\textr\tx15,x16,x15,#63\n\tadcs\tx25,x12,x15\n\textr\tx16,x17,x16,#63\n\tadcs\tx26,x13,x16\n\tldp\tx15,x16,[x2,#8*9]\n\tmul\tx6,x7,x7\n\tldp\tx11,x13,[x1],#8*2\n\tumulh\tx7,x7,x7\n\tmul\tx8,x9,x9\n\tumulh\tx9,x9,x9\n\tstp\tx23,x24,[x2,#8*4]\n\textr\tx17,x14,x17,#63\n\tstp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8\n\tadcs\tx19,x6,x17\n\textr\tx14,x15,x14,#63\n\tadcs\tx20,x7,x14\n\tldp\tx17,x14,[x2,#8*3]\n\textr\tx15,x16,x15,#63\n\tcbnz\tx27,.Lsqr4x_shift_n_add\n\tldp\tx1,x4,[x29,#104]\t// pull np and n0\n\n\tadcs\tx21,x8,x15\n\textr\tx16,x17,x16,#63\n\tadcs\tx22,x9,x16\n\tldp\tx15,x16,[x2,#8*5]\n\tmul\tx10,x11,x11\n\tumulh\tx11,x11,x11\n\tstp\tx19,x20,[x2,#8*0]\n\tmul\tx12,x13,x13\n\tumulh\tx13,x13,x13\n\tstp\tx21,x22,[x2,#8*2]\n\textr\tx17,x14,x17,#63\n\tadcs\tx23,x10,x17\n\textr\tx14,x15,x14,#63\n\tldp\tx19,x20,[sp,#8*0]\n\tadcs\tx24,x11,x14\n\textr\tx15,x16,x15,#63\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx25,x12,x15\n\textr\tx16,xzr,x16,#63\n\tldp\tx8,x9,[x1,#8*2]\n\tadc\tx26,x13,x16\n\tldp\tx10,x11,[x1,#8*4]\n\n\t// Reduce by 512 bits per iteration\n\tmul\tx28,x4,x19\t\t// t[0]*n0\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx3,x1,x5\n\tldp\tx21,x22,[sp,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[sp,#8*4]\n\tstp\tx25,x26,[x2,#8*6]\n\tldp\tx25,x26,[sp,#8*6]\n\tadd\tx1,x1,#8*8\n\tmov\tx30,xzr\t\t// initial top-most carry\n\tmov\tx2,sp", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:35", "text": "extr\tx15,x16,x15,#63\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx25,x12,x15\n\textr\tx16,xzr,x16,#63\n\tldp\tx8,x9,[x1,#8*2]\n\tadc\tx26,x13,x16\n\tldp\tx10,x11,[x1,#8*4]\n\n\t// Reduce by 512 bits per iteration\n\tmul\tx28,x4,x19\t\t// t[0]*n0\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx3,x1,x5\n\tldp\tx21,x22,[sp,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[sp,#8*4]\n\tstp\tx25,x26,[x2,#8*6]\n\tldp\tx25,x26,[sp,#8*6]\n\tadd\tx1,x1,#8*8\n\tmov\tx30,xzr\t\t// initial top-most carry\n\tmov\tx2,sp\n\tmov\tx27,#8\n\n.Lsqr8x_reduction:\n\t// (*)\tmul\tx14,x6,x28\t// lo(n[0-7])*lo(t[0]*n0)\n\tmul\tx15,x7,x28\n\tsub\tx27,x27,#1\n\tmul\tx16,x8,x28\n\tstr\tx28,[x2],#8\t\t// put aside t[0]*n0 for tail processing\n\tmul\tx17,x9,x28\n\t// (*)\tadds\txzr,x19,x14\n\tsubs\txzr,x19,#1\t\t// (*)\n\tmul\tx14,x10,x28\n\tadcs\tx19,x20,x15\n\tmul\tx15,x11,x28\n\tadcs\tx20,x21,x16\n\tmul\tx16,x12,x28\n\tadcs\tx21,x22,x17\n\tmul\tx17,x13,x28\n\tadcs\tx22,x23,x14\n\tumulh\tx14,x6,x28\t\t// hi(n[0-7])*lo(t[0]*n0)\n\tadcs\tx23,x24,x15\n\tumulh\tx15,x7,x28\n\tadcs\tx24,x25,x16\n\tumulh\tx16,x8,x28\n\tadcs\tx25,x26,x17\n\tumulh\tx17,x9,x28\n\tadc\tx26,xzr,xzr\n\tadds\tx19,x19,x14\n\tumulh\tx14,x10,x28\n\tadcs\tx20,x20,x15\n\tumulh\tx15,x11,x28\n\tadcs\tx21,x21,x16\n\tumulh\tx16,x12,x28\n\tadcs\tx22,x22,x17\n\tumulh\tx17,x13,x28\n\tmul\tx28,x4,x19\t\t// next t[0]*n0\n\tadcs\tx23,x23,x14\n\tadcs\tx24,x24,x15\n\tadcs\tx25,x25,x16\n\tadc\tx26,x26,x17", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:36", "text": "adcs\tx23,x24,x15\n\tumulh\tx15,x7,x28\n\tadcs\tx24,x25,x16\n\tumulh\tx16,x8,x28\n\tadcs\tx25,x26,x17\n\tumulh\tx17,x9,x28\n\tadc\tx26,xzr,xzr\n\tadds\tx19,x19,x14\n\tumulh\tx14,x10,x28\n\tadcs\tx20,x20,x15\n\tumulh\tx15,x11,x28\n\tadcs\tx21,x21,x16\n\tumulh\tx16,x12,x28\n\tadcs\tx22,x22,x17\n\tumulh\tx17,x13,x28\n\tmul\tx28,x4,x19\t\t// next t[0]*n0\n\tadcs\tx23,x23,x14\n\tadcs\tx24,x24,x15\n\tadcs\tx25,x25,x16\n\tadc\tx26,x26,x17\n\tcbnz\tx27,.Lsqr8x_reduction\n\n\tldp\tx14,x15,[x2,#8*0]\n\tldp\tx16,x17,[x2,#8*2]\n\tmov\tx0,x2\n\tsub\tx27,x3,x1\t// done yet?\n\tadds\tx19,x19,x14\n\tadcs\tx20,x20,x15\n\tldp\tx14,x15,[x2,#8*4]\n\tadcs\tx21,x21,x16\n\tadcs\tx22,x22,x17\n\tldp\tx16,x17,[x2,#8*6]\n\tadcs\tx23,x23,x14\n\tadcs\tx24,x24,x15\n\tadcs\tx25,x25,x16\n\tadcs\tx26,x26,x17\n\t//adc\tx28,xzr,xzr\t\t// moved below\n\tcbz\tx27,.Lsqr8x8_post_condition\n\n\tldur\tx4,[x2,#-8*8]\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tldp\tx10,x11,[x1,#8*4]\n\tmov\tx27,#-8*8\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\n.Lsqr8x_tail:\n\tmul\tx14,x6,x4\n\tadc\tx28,xzr,xzr\t\t// carry bit, modulo-scheduled\n\tmul\tx15,x7,x4\n\tadd\tx27,x27,#8\n\tmul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:37", "text": "ldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tldp\tx10,x11,[x1,#8*4]\n\tmov\tx27,#-8*8\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\n.Lsqr8x_tail:\n\tmul\tx14,x6,x4\n\tadc\tx28,xzr,xzr\t\t// carry bit, modulo-scheduled\n\tmul\tx15,x7,x4\n\tadd\tx27,x27,#8\n\tmul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4\n\tadcs\tx22,x22,x17\n\tmul\tx17,x13,x4\n\tadcs\tx23,x23,x14\n\tumulh\tx14,x6,x4\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x7,x4\n\tadcs\tx25,x25,x16\n\tumulh\tx16,x8,x4\n\tadcs\tx26,x26,x17\n\tumulh\tx17,x9,x4\n\tadc\tx28,x28,xzr\n\tstr\tx19,[x2],#8\n\tadds\tx19,x20,x14\n\tumulh\tx14,x10,x4\n\tadcs\tx20,x21,x15\n\tumulh\tx15,x11,x4\n\tadcs\tx21,x22,x16\n\tumulh\tx16,x12,x4\n\tadcs\tx22,x23,x17\n\tumulh\tx17,x13,x4\n\tldr\tx4,[x0,x27]\n\tadcs\tx23,x24,x14\n\tadcs\tx24,x25,x15\n\tadcs\tx25,x26,x16\n\tadcs\tx26,x28,x17\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tcbnz\tx27,.Lsqr8x_tail\n\t\t\t\t\t// note that carry flag is guaranteed\n\t\t\t\t\t// to be zero at this point\n\tldp\tx6,x7,[x2,#8*0]\n\tsub\tx27,x3,x1\t// done yet?\n\tsub\tx16,x3,x5\t// rewinded np\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tcbz\tx27,.Lsqr8x_tail_break\n\n\tldur\tx4,[x0,#-8*8]\n\tadds\tx19,x19,x6\n\tadcs\tx20,x20,x7", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:38", "text": "ldr\tx4,[x0,x27]\n\tadcs\tx23,x24,x14\n\tadcs\tx24,x25,x15\n\tadcs\tx25,x26,x16\n\tadcs\tx26,x28,x17\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tcbnz\tx27,.Lsqr8x_tail\n\t\t\t\t\t// note that carry flag is guaranteed\n\t\t\t\t\t// to be zero at this point\n\tldp\tx6,x7,[x2,#8*0]\n\tsub\tx27,x3,x1\t// done yet?\n\tsub\tx16,x3,x5\t// rewinded np\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tcbz\tx27,.Lsqr8x_tail_break\n\n\tldur\tx4,[x0,#-8*8]\n\tadds\tx19,x19,x6\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx27,#-8*8\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tb\t.Lsqr8x_tail\n\n.align\t4\n.Lsqr8x_tail_break:\n\tldr\tx4,[x29,#112]\t\t// pull n0\n\tadd\tx27,x2,#8*8\t\t// end of current t[num] window\n\n\tsubs\txzr,x30,#1\t\t// \"move\" top-most carry to carry bit\n\tadcs\tx14,x19,x6\n\tadcs\tx15,x20,x7\n\tldp\tx19,x20,[x0,#8*0]\n\tadcs\tx21,x21,x8\n\tldp\tx6,x7,[x16,#8*0]\t// recall that x16 is &n[0]\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x16,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x16,#8*4]\n\tadcs\tx25,x25,x12\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x16,#8*6]\n\tadd\tx1,x16,#8*8\n\tadc\tx30,xzr,xzr\t// top-most carry\n\tmul\tx28,x4,x19\n\tstp\tx14,x15,[x2,#8*0]\n\tstp\tx21,x22,[x2,#8*2]\n\tldp\tx21,x22,[x0,#8*2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:39", "text": "subs\txzr,x30,#1\t\t// \"move\" top-most carry to carry bit\n\tadcs\tx14,x19,x6\n\tadcs\tx15,x20,x7\n\tldp\tx19,x20,[x0,#8*0]\n\tadcs\tx21,x21,x8\n\tldp\tx6,x7,[x16,#8*0]\t// recall that x16 is &n[0]\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x16,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x16,#8*4]\n\tadcs\tx25,x25,x12\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x16,#8*6]\n\tadd\tx1,x16,#8*8\n\tadc\tx30,xzr,xzr\t// top-most carry\n\tmul\tx28,x4,x19\n\tstp\tx14,x15,[x2,#8*0]\n\tstp\tx21,x22,[x2,#8*2]\n\tldp\tx21,x22,[x0,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[x0,#8*4]\n\tcmp\tx27,x29\t\t// did we hit the bottom?\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,x0\t\t\t// slide the window\n\tldp\tx25,x26,[x0,#8*6]\n\tmov\tx27,#8\n\tb.ne\t.Lsqr8x_reduction\n\n\t// Final step. We see if result is larger than modulus, and\n\t// if it is, subtract the modulus. But comparison implies\n\t// subtraction. So we subtract modulus, see if it borrowed,\n\t// and conditionally copy original value.\n\tldr\tx0,[x29,#96]\t\t// pull rp\n\tadd\tx2,x2,#8*8\n\tsubs\tx14,x19,x6\n\tsbcs\tx15,x20,x7\n\tsub\tx27,x5,#8*8\n\tmov\tx3,x0\t\t// x0 copy\n\n.Lsqr8x_sub:\n\tsbcs\tx16,x21,x8\n\tldp\tx6,x7,[x1,#8*0]\n\tsbcs\tx17,x22,x9\n\tstp\tx14,x15,[x0,#8*0]\n\tsbcs\tx14,x23,x10\n\tldp\tx8,x9,[x1,#8*2]\n\tsbcs\tx15,x24,x11\n\tstp\tx16,x17,[x0,#8*2]\n\tsbcs\tx16,x25,x12\n\tldp\tx10,x11,[x1,#8*4]\n\tsbcs\tx17,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\tldp\tx19,x20,[x2,#8*0]\n\tsub\tx27,x27,#8*8\n\tldp\tx21,x22,[x2,#8*2]\n\tldp\tx23,x24,[x2,#8*4]\n\tldp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:40", "text": ".Lsqr8x_sub:\n\tsbcs\tx16,x21,x8\n\tldp\tx6,x7,[x1,#8*0]\n\tsbcs\tx17,x22,x9\n\tstp\tx14,x15,[x0,#8*0]\n\tsbcs\tx14,x23,x10\n\tldp\tx8,x9,[x1,#8*2]\n\tsbcs\tx15,x24,x11\n\tstp\tx16,x17,[x0,#8*2]\n\tsbcs\tx16,x25,x12\n\tldp\tx10,x11,[x1,#8*4]\n\tsbcs\tx17,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\tldp\tx19,x20,[x2,#8*0]\n\tsub\tx27,x27,#8*8\n\tldp\tx21,x22,[x2,#8*2]\n\tldp\tx23,x24,[x2,#8*4]\n\tldp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8\n\tstp\tx14,x15,[x0,#8*4]\n\tsbcs\tx14,x19,x6\n\tstp\tx16,x17,[x0,#8*6]\n\tadd\tx0,x0,#8*8\n\tsbcs\tx15,x20,x7\n\tcbnz\tx27,.Lsqr8x_sub\n\n\tsbcs\tx16,x21,x8\n\tmov\tx2,sp\n\tadd\tx1,sp,x5\n\tldp\tx6,x7,[x3,#8*0]\n\tsbcs\tx17,x22,x9\n\tstp\tx14,x15,[x0,#8*0]\n\tsbcs\tx14,x23,x10\n\tldp\tx8,x9,[x3,#8*2]\n\tsbcs\tx15,x24,x11\n\tstp\tx16,x17,[x0,#8*2]\n\tsbcs\tx16,x25,x12\n\tldp\tx19,x20,[x1,#8*0]\n\tsbcs\tx17,x26,x13\n\tldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\tstp\tx14,x15,[x0,#8*4]\n\tstp\tx16,x17,[x0,#8*6]\n\n\tsub\tx27,x5,#8*4\n.Lsqr4x_cond_copy:\n\tsub\tx27,x27,#8*4\n\tcsel\tx14,x19,x6,lo\n\tstp\txzr,xzr,[x2,#8*0]\n\tcsel\tx15,x20,x7,lo\n\tldp\tx6,x7,[x3,#8*4]\n\tldp\tx19,x20,[x1,#8*4]\n\tcsel\tx16,x21,x8,lo\n\tstp\txzr,xzr,[x2,#8*2]\n\tadd\tx2,x2,#8*4\n\tcsel\tx17,x22,x9,lo\n\tldp\tx8,x9,[x3,#8*6]\n\tldp\tx21,x22,[x1,#8*6]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:41", "text": "ldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\tstp\tx14,x15,[x0,#8*4]\n\tstp\tx16,x17,[x0,#8*6]\n\n\tsub\tx27,x5,#8*4\n.Lsqr4x_cond_copy:\n\tsub\tx27,x27,#8*4\n\tcsel\tx14,x19,x6,lo\n\tstp\txzr,xzr,[x2,#8*0]\n\tcsel\tx15,x20,x7,lo\n\tldp\tx6,x7,[x3,#8*4]\n\tldp\tx19,x20,[x1,#8*4]\n\tcsel\tx16,x21,x8,lo\n\tstp\txzr,xzr,[x2,#8*2]\n\tadd\tx2,x2,#8*4\n\tcsel\tx17,x22,x9,lo\n\tldp\tx8,x9,[x3,#8*6]\n\tldp\tx21,x22,[x1,#8*6]\n\tadd\tx1,x1,#8*4\n\tstp\tx14,x15,[x3,#8*0]\n\tstp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tstp\txzr,xzr,[x1,#8*0]\n\tstp\txzr,xzr,[x1,#8*2]\n\tcbnz\tx27,.Lsqr4x_cond_copy\n\n\tcsel\tx14,x19,x6,lo\n\tstp\txzr,xzr,[x2,#8*0]\n\tcsel\tx15,x20,x7,lo\n\tstp\txzr,xzr,[x2,#8*2]\n\tcsel\tx16,x21,x8,lo\n\tcsel\tx17,x22,x9,lo\n\tstp\tx14,x15,[x3,#8*0]\n\tstp\tx16,x17,[x3,#8*2]\n\n\tb\t.Lsqr8x_done\n\n.align\t4\n.Lsqr8x8_post_condition:\n\tadc\tx28,xzr,xzr\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\t// x19-7,x28 hold result, x6-7 hold modulus\n\tsubs\tx6,x19,x6\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\tsbcs\tx7,x20,x7\n\tstp\txzr,xzr,[sp,#8*0]\n\tsbcs\tx8,x21,x8\n\tstp\txzr,xzr,[sp,#8*2]\n\tsbcs\tx9,x22,x9\n\tstp\txzr,xzr,[sp,#8*4]\n\tsbcs\tx10,x23,x10\n\tstp\txzr,xzr,[sp,#8*6]\n\tsbcs\tx11,x24,x11\n\tstp\txzr,xzr,[sp,#8*8]\n\tsbcs\tx12,x25,x12\n\tstp\txzr,xzr,[sp,#8*10]\n\tsbcs\tx13,x26,x13\n\tstp\txzr,xzr,[sp,#8*12]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:42", "text": ".Lsqr8x8_post_condition:\n\tadc\tx28,xzr,xzr\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\t// x19-7,x28 hold result, x6-7 hold modulus\n\tsubs\tx6,x19,x6\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\tsbcs\tx7,x20,x7\n\tstp\txzr,xzr,[sp,#8*0]\n\tsbcs\tx8,x21,x8\n\tstp\txzr,xzr,[sp,#8*2]\n\tsbcs\tx9,x22,x9\n\tstp\txzr,xzr,[sp,#8*4]\n\tsbcs\tx10,x23,x10\n\tstp\txzr,xzr,[sp,#8*6]\n\tsbcs\tx11,x24,x11\n\tstp\txzr,xzr,[sp,#8*8]\n\tsbcs\tx12,x25,x12\n\tstp\txzr,xzr,[sp,#8*10]\n\tsbcs\tx13,x26,x13\n\tstp\txzr,xzr,[sp,#8*12]\n\tsbcs\tx28,x28,xzr\t// did it borrow?\n\tstp\txzr,xzr,[sp,#8*14]\n\n\t// x6-7 hold result-modulus\n\tcsel\tx6,x19,x6,lo\n\tcsel\tx7,x20,x7,lo\n\tcsel\tx8,x21,x8,lo\n\tcsel\tx9,x22,x9,lo\n\tstp\tx6,x7,[x1,#8*0]\n\tcsel\tx10,x23,x10,lo\n\tcsel\tx11,x24,x11,lo\n\tstp\tx8,x9,[x1,#8*2]\n\tcsel\tx12,x25,x12,lo\n\tcsel\tx13,x26,x13,lo\n\tstp\tx10,x11,[x1,#8*4]\n\tstp\tx12,x13,[x1,#8*6]\n\n.Lsqr8x_done:\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 is loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_sqr8x_mont,.-__bn_sqr8x_mont\n.type\t__bn_mul4x_mont,%function\n.align\t5\n__bn_mul4x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_mul4x_mont is jumped to\n\t// only from bn_mul_mont (or __bn_sqr8x_mont from bn_mul_mont) which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:43", "text": "ldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 is loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_sqr8x_mont,.-__bn_sqr8x_mont\n.type\t__bn_mul4x_mont,%function\n.align\t5\n__bn_mul4x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_mul4x_mont is jumped to\n\t// only from bn_mul_mont (or __bn_sqr8x_mont from bn_mul_mont) which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n\tsub\tx26,sp,x5,lsl#3\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tsub\tsp,x26,#8*4\t\t// alloca\n\n\tadd\tx10,x2,x5\n\tadd\tx27,x1,x5\n\tstp\tx0,x10,[x29,#96]\t// offload rp and &b[num]\n\n\tldr\tx24,[x2,#8*0]\t\t// b[0]\n\tldp\tx6,x7,[x1,#8*0]\t// a[0..3]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tmov\tx19,xzr\n\tmov\tx20,xzr\n\tmov\tx21,xzr\n\tmov\tx22,xzr\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx28,#0\n\tmov\tx26,sp\n\n.Loop_mul4x_1st_reduction:\n\tmul\tx10,x6,x24\t\t// lo(a[0..3]*b[0])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[0..3]*b[0])\n\tadcs\tx20,x20,x11\n\tmul\tx25,x19,x4\t\t// t[0]*n0\n\tadcs\tx21,x21,x12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:44", "text": "ldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx28,#0\n\tmov\tx26,sp\n\n.Loop_mul4x_1st_reduction:\n\tmul\tx10,x6,x24\t\t// lo(a[0..3]*b[0])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[0..3]*b[0])\n\tadcs\tx20,x20,x11\n\tmul\tx25,x19,x4\t\t// t[0]*n0\n\tadcs\tx21,x21,x12\n\tumulh\tx11,x7,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx12,x8,x24\n\tadc\tx23,xzr,xzr\n\tumulh\tx13,x9,x24\n\tldr\tx24,[x2,x28]\t\t// next b[i] (or b[0])\n\tadds\tx20,x20,x10\n\t// (*)\tmul\tx10,x14,x25\t// lo(n[0..3]*t[0]*n0)\n\tstr\tx25,[x26],#8\t\t// put aside t[0]*n0 for tail processing\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\t// (*)\tadds\txzr,x19,x10\n\tsubs\txzr,x19,#1\t\t// (*)\n\tumulh\tx10,x14,x25\t\t// hi(n[0..3]*t[0]*n0)\n\tadcs\tx19,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0\n\tadc\tx0,xzr,xzr\n\tadds\tx19,x19,x10\n\tsub\tx10,x27,x1\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_1st_reduction\n\n\tcbz\tx10,.Lmul4x4_post_condition\n\n\tldp\tx6,x7,[x1,#8*0]\t// a[4..7]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tldr\tx25,[sp]\t\t// a[0]*n0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:45", "text": "adcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0\n\tadc\tx0,xzr,xzr\n\tadds\tx19,x19,x10\n\tsub\tx10,x27,x1\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_1st_reduction\n\n\tcbz\tx10,.Lmul4x4_post_condition\n\n\tldp\tx6,x7,[x1,#8*0]\t// a[4..7]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tldr\tx25,[sp]\t\t// a[0]*n0\n\tldp\tx14,x15,[x3,#8*0]\t// n[4..7]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\n.Loop_mul4x_1st_tail:\n\tmul\tx10,x6,x24\t\t// lo(a[4..7]*b[i])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[4..7]*b[i])\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x7,x24\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x8,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx13,x9,x24\n\tadc\tx23,xzr,xzr\n\tldr\tx24,[x2,x28]\t\t// next b[i] (or b[0])\n\tadds\tx20,x20,x10\n\tmul\tx10,x14,x25\t\t// lo(n[4..7]*a[0]*n0)\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\tadds\tx19,x19,x10\n\tumulh\tx10,x14,x25\t\t// hi(n[4..7]*a[0]*n0)\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx22,x22,x13\n\tadcs\tx23,x23,x0\n\tumulh\tx13,x17,x25\n\tadc\tx0,xzr,xzr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:46", "text": "adc\tx23,xzr,xzr\n\tldr\tx24,[x2,x28]\t\t// next b[i] (or b[0])\n\tadds\tx20,x20,x10\n\tmul\tx10,x14,x25\t\t// lo(n[4..7]*a[0]*n0)\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\tadds\tx19,x19,x10\n\tumulh\tx10,x14,x25\t\t// hi(n[4..7]*a[0]*n0)\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx22,x22,x13\n\tadcs\tx23,x23,x0\n\tumulh\tx13,x17,x25\n\tadc\tx0,xzr,xzr\n\tldr\tx25,[sp,x28]\t\t// next t[0]*n0\n\tstr\tx19,[x26],#8\t\t// result!!!\n\tadds\tx19,x20,x10\n\tsub\tx10,x27,x1\t\t// done yet?\n\tadcs\tx20,x21,x11\n\tadcs\tx21,x22,x12\n\tadcs\tx22,x23,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_1st_tail\n\n\tsub\tx11,x27,x5\t// rewinded x1\n\tcbz\tx10,.Lmul4x_proceed\n\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tldp\tx14,x15,[x3,#8*0]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tb\t.Loop_mul4x_1st_tail\n\n.align\t5\n.Lmul4x_proceed:\n\tldr\tx24,[x2,#8*4]!\t\t// *++b\n\tadc\tx30,x0,xzr\n\tldp\tx6,x7,[x11,#8*0]\t// a[0..3]\n\tsub\tx3,x3,x5\t\t// rewind np\n\tldp\tx8,x9,[x11,#8*2]\n\tadd\tx1,x11,#8*4\n\n\tstp\tx19,x20,[x26,#8*0]\t// result!!!\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tldp\tx21,x22,[sp,#8*6]\n\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tmov\tx26,sp\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:47", "text": ".align\t5\n.Lmul4x_proceed:\n\tldr\tx24,[x2,#8*4]!\t\t// *++b\n\tadc\tx30,x0,xzr\n\tldp\tx6,x7,[x11,#8*0]\t// a[0..3]\n\tsub\tx3,x3,x5\t\t// rewind np\n\tldp\tx8,x9,[x11,#8*2]\n\tadd\tx1,x11,#8*4\n\n\tstp\tx19,x20,[x26,#8*0]\t// result!!!\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tldp\tx21,x22,[sp,#8*6]\n\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tmov\tx26,sp\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\n.align\t4\n.Loop_mul4x_reduction:\n\tmul\tx10,x6,x24\t\t// lo(a[0..3]*b[4])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[0..3]*b[4])\n\tadcs\tx20,x20,x11\n\tmul\tx25,x19,x4\t\t// t[0]*n0\n\tadcs\tx21,x21,x12\n\tumulh\tx11,x7,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx12,x8,x24\n\tadc\tx23,xzr,xzr\n\tumulh\tx13,x9,x24\n\tldr\tx24,[x2,x28]\t\t// next b[i]\n\tadds\tx20,x20,x10\n\t// (*)\tmul\tx10,x14,x25\n\tstr\tx25,[x26],#8\t\t// put aside t[0]*n0 for tail processing\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\t\t// lo(n[0..3]*t[0]*n0\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\t// (*)\tadds\txzr,x19,x10\n\tsubs\txzr,x19,#1\t\t// (*)\n\tumulh\tx10,x14,x25\t\t// hi(n[0..3]*t[0]*n0\n\tadcs\tx19,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:48", "text": "ldr\tx24,[x2,x28]\t\t// next b[i]\n\tadds\tx20,x20,x10\n\t// (*)\tmul\tx10,x14,x25\n\tstr\tx25,[x26],#8\t\t// put aside t[0]*n0 for tail processing\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\t\t// lo(n[0..3]*t[0]*n0\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\t// (*)\tadds\txzr,x19,x10\n\tsubs\txzr,x19,#1\t\t// (*)\n\tumulh\tx10,x14,x25\t\t// hi(n[0..3]*t[0]*n0\n\tadcs\tx19,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0\n\tadc\tx0,xzr,xzr\n\tadds\tx19,x19,x10\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_reduction\n\n\tadc\tx0,x0,xzr\n\tldp\tx10,x11,[x26,#8*4]\t// t[4..7]\n\tldp\tx12,x13,[x26,#8*6]\n\tldp\tx6,x7,[x1,#8*0]\t// a[4..7]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tadds\tx19,x19,x10\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\n\tldr\tx25,[sp]\t\t// t[0]*n0\n\tldp\tx14,x15,[x3,#8*0]\t// n[4..7]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\n.align\t4\n.Loop_mul4x_tail:\n\tmul\tx10,x6,x24\t\t// lo(a[4..7]*b[4])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[4..7]*b[4])\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x7,x24\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x8,x24", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:49", "text": "ldr\tx25,[sp]\t\t// t[0]*n0\n\tldp\tx14,x15,[x3,#8*0]\t// n[4..7]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\n.align\t4\n.Loop_mul4x_tail:\n\tmul\tx10,x6,x24\t\t// lo(a[4..7]*b[4])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[4..7]*b[4])\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x7,x24\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x8,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx13,x9,x24\n\tadc\tx23,xzr,xzr\n\tldr\tx24,[x2,x28]\t\t// next b[i]\n\tadds\tx20,x20,x10\n\tmul\tx10,x14,x25\t\t// lo(n[4..7]*t[0]*n0)\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\tadds\tx19,x19,x10\n\tumulh\tx10,x14,x25\t\t// hi(n[4..7]*t[0]*n0)\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx22,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx23,x23,x0\n\tldr\tx25,[sp,x28]\t\t// next a[0]*n0\n\tadc\tx0,xzr,xzr\n\tstr\tx19,[x26],#8\t\t// result!!!\n\tadds\tx19,x20,x10\n\tsub\tx10,x27,x1\t\t// done yet?\n\tadcs\tx20,x21,x11\n\tadcs\tx21,x22,x12\n\tadcs\tx22,x23,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_tail\n\n\tsub\tx11,x3,x5\t\t// rewinded np?\n\tadc\tx0,x0,xzr\n\tcbz\tx10,.Loop_mul4x_break\n\n\tldp\tx10,x11,[x26,#8*4]\n\tldp\tx12,x13,[x26,#8*6]\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:50", "text": "adcs\tx23,x23,x0\n\tldr\tx25,[sp,x28]\t\t// next a[0]*n0\n\tadc\tx0,xzr,xzr\n\tstr\tx19,[x26],#8\t\t// result!!!\n\tadds\tx19,x20,x10\n\tsub\tx10,x27,x1\t\t// done yet?\n\tadcs\tx20,x21,x11\n\tadcs\tx21,x22,x12\n\tadcs\tx22,x23,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_tail\n\n\tsub\tx11,x3,x5\t\t// rewinded np?\n\tadc\tx0,x0,xzr\n\tcbz\tx10,.Loop_mul4x_break\n\n\tldp\tx10,x11,[x26,#8*4]\n\tldp\tx12,x13,[x26,#8*6]\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tadds\tx19,x19,x10\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tldp\tx14,x15,[x3,#8*0]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tb\t.Loop_mul4x_tail\n\n.align\t4\n.Loop_mul4x_break:\n\tldp\tx12,x13,[x29,#96]\t// pull rp and &b[num]\n\tadds\tx19,x19,x30\n\tadd\tx2,x2,#8*4\t\t// bp++\n\tadcs\tx20,x20,xzr\n\tsub\tx1,x1,x5\t\t// rewind ap\n\tadcs\tx21,x21,xzr\n\tstp\tx19,x20,[x26,#8*0]\t// result!!!\n\tadcs\tx22,x22,xzr\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tadc\tx30,x0,xzr\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tcmp\tx2,x13\t\t\t// done yet?\n\tldp\tx21,x22,[sp,#8*6]\n\tldp\tx14,x15,[x11,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x11,#8*2]\n\tadd\tx3,x11,#8*4\n\tb.eq\t.Lmul4x_post\n\n\tldr\tx24,[x2]\n\tldp\tx6,x7,[x1,#8*0]\t// a[0..3]\n\tldp\tx8,x9,[x1,#8*2]\n\tadds\tx1,x1,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx26,sp\n\tb\t.Loop_mul4x_reduction\n\n.align\t4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:51", "text": "adcs\tx22,x22,xzr\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tadc\tx30,x0,xzr\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tcmp\tx2,x13\t\t\t// done yet?\n\tldp\tx21,x22,[sp,#8*6]\n\tldp\tx14,x15,[x11,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x11,#8*2]\n\tadd\tx3,x11,#8*4\n\tb.eq\t.Lmul4x_post\n\n\tldr\tx24,[x2]\n\tldp\tx6,x7,[x1,#8*0]\t// a[0..3]\n\tldp\tx8,x9,[x1,#8*2]\n\tadds\tx1,x1,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx26,sp\n\tb\t.Loop_mul4x_reduction\n\n.align\t4\n.Lmul4x_post:\n\t// Final step. We see if result is larger than modulus, and\n\t// if it is, subtract the modulus. But comparison implies\n\t// subtraction. So we subtract modulus, see if it borrowed,\n\t// and conditionally copy original value.\n\tmov\tx0,x12\n\tmov\tx27,x12\t\t// x0 copy\n\tsubs\tx10,x19,x14\n\tadd\tx26,sp,#8*8\n\tsbcs\tx11,x20,x15\n\tsub\tx28,x5,#8*4\n\n.Lmul4x_sub:\n\tsbcs\tx12,x21,x16\n\tldp\tx14,x15,[x3,#8*0]\n\tsub\tx28,x28,#8*4\n\tldp\tx19,x20,[x26,#8*0]\n\tsbcs\tx13,x22,x17\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tldp\tx21,x22,[x26,#8*2]\n\tadd\tx26,x26,#8*4\n\tstp\tx10,x11,[x0,#8*0]\n\tsbcs\tx10,x19,x14\n\tstp\tx12,x13,[x0,#8*2]\n\tadd\tx0,x0,#8*4\n\tsbcs\tx11,x20,x15\n\tcbnz\tx28,.Lmul4x_sub\n\n\tsbcs\tx12,x21,x16\n\tmov\tx26,sp\n\tadd\tx1,sp,#8*4\n\tldp\tx6,x7,[x27,#8*0]\n\tsbcs\tx13,x22,x17\n\tstp\tx10,x11,[x0,#8*0]\n\tldp\tx8,x9,[x27,#8*2]\n\tstp\tx12,x13,[x0,#8*2]\n\tldp\tx19,x20,[x1,#8*0]\n\tldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:52", "text": "ldp\tx21,x22,[x26,#8*2]\n\tadd\tx26,x26,#8*4\n\tstp\tx10,x11,[x0,#8*0]\n\tsbcs\tx10,x19,x14\n\tstp\tx12,x13,[x0,#8*2]\n\tadd\tx0,x0,#8*4\n\tsbcs\tx11,x20,x15\n\tcbnz\tx28,.Lmul4x_sub\n\n\tsbcs\tx12,x21,x16\n\tmov\tx26,sp\n\tadd\tx1,sp,#8*4\n\tldp\tx6,x7,[x27,#8*0]\n\tsbcs\tx13,x22,x17\n\tstp\tx10,x11,[x0,#8*0]\n\tldp\tx8,x9,[x27,#8*2]\n\tstp\tx12,x13,[x0,#8*2]\n\tldp\tx19,x20,[x1,#8*0]\n\tldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\n\tsub\tx28,x5,#8*4\n.Lmul4x_cond_copy:\n\tsub\tx28,x28,#8*4\n\tcsel\tx10,x19,x6,lo\n\tstp\txzr,xzr,[x26,#8*0]\n\tcsel\tx11,x20,x7,lo\n\tldp\tx6,x7,[x27,#8*4]\n\tldp\tx19,x20,[x1,#8*4]\n\tcsel\tx12,x21,x8,lo\n\tstp\txzr,xzr,[x26,#8*2]\n\tadd\tx26,x26,#8*4\n\tcsel\tx13,x22,x9,lo\n\tldp\tx8,x9,[x27,#8*6]\n\tldp\tx21,x22,[x1,#8*6]\n\tadd\tx1,x1,#8*4\n\tstp\tx10,x11,[x27,#8*0]\n\tstp\tx12,x13,[x27,#8*2]\n\tadd\tx27,x27,#8*4\n\tcbnz\tx28,.Lmul4x_cond_copy\n\n\tcsel\tx10,x19,x6,lo\n\tstp\txzr,xzr,[x26,#8*0]\n\tcsel\tx11,x20,x7,lo\n\tstp\txzr,xzr,[x26,#8*2]\n\tcsel\tx12,x21,x8,lo\n\tstp\txzr,xzr,[x26,#8*3]\n\tcsel\tx13,x22,x9,lo\n\tstp\txzr,xzr,[x26,#8*4]\n\tstp\tx10,x11,[x27,#8*0]\n\tstp\tx12,x13,[x27,#8*2]\n\n\tb\t.Lmul4x_done\n\n.align\t4\n.Lmul4x4_post_condition:\n\tadc\tx0,x0,xzr\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\t// x19-3,x0 hold result, x14-7 hold modulus", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:53", "text": "cbnz\tx28,.Lmul4x_cond_copy\n\n\tcsel\tx10,x19,x6,lo\n\tstp\txzr,xzr,[x26,#8*0]\n\tcsel\tx11,x20,x7,lo\n\tstp\txzr,xzr,[x26,#8*2]\n\tcsel\tx12,x21,x8,lo\n\tstp\txzr,xzr,[x26,#8*3]\n\tcsel\tx13,x22,x9,lo\n\tstp\txzr,xzr,[x26,#8*4]\n\tstp\tx10,x11,[x27,#8*0]\n\tstp\tx12,x13,[x27,#8*2]\n\n\tb\t.Lmul4x_done\n\n.align\t4\n.Lmul4x4_post_condition:\n\tadc\tx0,x0,xzr\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\t// x19-3,x0 hold result, x14-7 hold modulus\n\tsubs\tx6,x19,x14\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\tsbcs\tx7,x20,x15\n\tstp\txzr,xzr,[sp,#8*0]\n\tsbcs\tx8,x21,x16\n\tstp\txzr,xzr,[sp,#8*2]\n\tsbcs\tx9,x22,x17\n\tstp\txzr,xzr,[sp,#8*4]\n\tsbcs\txzr,x0,xzr\t\t// did it borrow?\n\tstp\txzr,xzr,[sp,#8*6]\n\n\t// x6-3 hold result-modulus\n\tcsel\tx6,x19,x6,lo\n\tcsel\tx7,x20,x7,lo\n\tcsel\tx8,x21,x8,lo\n\tcsel\tx9,x22,x9,lo\n\tstp\tx6,x7,[x1,#8*0]\n\tstp\tx8,x9,[x1,#8*2]\n\n.Lmul4x_done:\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_mul4x_mont,.-__bn_mul4x_mont\n.section\t.rodata\n.byte\t77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 2081, "line_end": 2136}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S:54", "text": "ldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_mul4x_mont,.-__bn_mul4x_mont\n.section\t.rodata\n.byte\t77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/armv8-mont.S", "line_start": 2121, "line_end": 2136}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/bn.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nBN_SRCS = armv8-mont.S bn_asm.c\nCPPFLAGS += -DOPENSSL_BN_ASM_MONT\n.include \"../../bn.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/bn.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/bn.inc", "line_start": 1, "line_end": 4}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:1", "text": "#include \"arm_arch.h\"\n#ifndef\t__KERNEL__\n\n.hidden\tOPENSSL_armcap_P\n\n\n#endif\n\n.section\t.rodata\n\n.align\t5\n.Lsigma:\n.quad\t0x3320646e61707865,0x6b20657479622d32\t\t// endian-neutral\n.Lone:\n.long\t1,2,3,4\n.Lrot24:\n.long\t0x02010003,0x06050407,0x0a09080b,0x0e0d0c0f\n.byte\t67,104,97,67,104,97,50,48,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,64,100,111,116,45,97,115,109,0\n.align\t2\n\n.text\n\n.globl\tChaCha20_ctr32_dflt\n.type\tChaCha20_ctr32_dflt,%function\n.align\t5\nChaCha20_ctr32_dflt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcmp\tx2,#192\n\tb.lo\t.Lshort\n#ifndef\t__KERNEL__\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n.Lcheck_neon:\n\ttst\tw17,#ARMV7_NEON\n\tb.ne\t.LChaCha20_neon\n#endif\n\n.Lshort:\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tldp\tx28,x30,[x4]\t\t// load counter\n#ifdef\t__AARCH64EB__\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:2", "text": "adrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tldp\tx28,x30,[x4]\t\t// load counter\n#ifdef\t__AARCH64EB__\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32\n\tror\tx30,x30,#32\n#endif\n\n.Loop_outer:\n\tmov\tw5,w22\t\t\t// unpack key block\n\tlsr\tx6,x22,#32\n\tmov\tw7,w23\n\tlsr\tx8,x23,#32\n\tmov\tw9,w24\n\tlsr\tx10,x24,#32\n\tmov\tw11,w25\n\tlsr\tx12,x25,#32\n\tmov\tw13,w26\n\tlsr\tx14,x26,#32\n\tmov\tw15,w27\n\tlsr\tx16,x27,#32\n\tmov\tw17,w28\n\tlsr\tx19,x28,#32\n\tmov\tw20,w30\n\tlsr\tx21,x30,#32\n\n\tmov\tx4,#10\n\tsubs\tx2,x2,#64\n.Loop:\n\tsub\tx4,x4,#1\n\tadd\tw5,w5,w9\n\tadd\tw6,w6,w10\n\tadd\tw7,w7,w11\n\tadd\tw8,w8,w12\n\teor\tw17,w17,w5\n\teor\tw19,w19,w6\n\teor\tw20,w20,w7\n\teor\tw21,w21,w8\n\tror\tw17,w17,#16\n\tror\tw19,w19,#16\n\tror\tw20,w20,#16\n\tror\tw21,w21,#16\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:3", "text": "mov\tx4,#10\n\tsubs\tx2,x2,#64\n.Loop:\n\tsub\tx4,x4,#1\n\tadd\tw5,w5,w9\n\tadd\tw6,w6,w10\n\tadd\tw7,w7,w11\n\tadd\tw8,w8,w12\n\teor\tw17,w17,w5\n\teor\tw19,w19,w6\n\teor\tw20,w20,w7\n\teor\tw21,w21,w8\n\tror\tw17,w17,#16\n\tror\tw19,w19,#16\n\tror\tw20,w20,#16\n\tror\tw21,w21,#16\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20\n\tadd\tw16,w16,w21\n\teor\tw9,w9,w13\n\teor\tw10,w10,w14\n\teor\tw11,w11,w15\n\teor\tw12,w12,w16\n\tror\tw9,w9,#20\n\tror\tw10,w10,#20\n\tror\tw11,w11,#20\n\tror\tw12,w12,#20\n\tadd\tw5,w5,w9\n\tadd\tw6,w6,w10\n\tadd\tw7,w7,w11\n\tadd\tw8,w8,w12\n\teor\tw17,w17,w5\n\teor\tw19,w19,w6\n\teor\tw20,w20,w7\n\teor\tw21,w21,w8\n\tror\tw17,w17,#24\n\tror\tw19,w19,#24\n\tror\tw20,w20,#24\n\tror\tw21,w21,#24\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20\n\tadd\tw16,w16,w21\n\teor\tw9,w9,w13\n\teor\tw10,w10,w14\n\teor\tw11,w11,w15\n\teor\tw12,w12,w16\n\tror\tw9,w9,#25\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25\n\tadd\tw5,w5,w10\n\tadd\tw6,w6,w11\n\tadd\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:4", "text": "ror\tw21,w21,#24\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20\n\tadd\tw16,w16,w21\n\teor\tw9,w9,w13\n\teor\tw10,w10,w14\n\teor\tw11,w11,w15\n\teor\tw12,w12,w16\n\tror\tw9,w9,#25\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25\n\tadd\tw5,w5,w10\n\tadd\tw6,w6,w11\n\tadd\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7\n\teor\tw20,w20,w8\n\tror\tw21,w21,#16\n\tror\tw17,w17,#16\n\tror\tw19,w19,#16\n\tror\tw20,w20,#16\n\tadd\tw15,w15,w21\n\tadd\tw16,w16,w17\n\tadd\tw13,w13,w19\n\tadd\tw14,w14,w20\n\teor\tw10,w10,w15\n\teor\tw11,w11,w16\n\teor\tw12,w12,w13\n\teor\tw9,w9,w14\n\tror\tw10,w10,#20\n\tror\tw11,w11,#20\n\tror\tw12,w12,#20\n\tror\tw9,w9,#20\n\tadd\tw5,w5,w10\n\tadd\tw6,w6,w11\n\tadd\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7\n\teor\tw20,w20,w8\n\tror\tw21,w21,#24\n\tror\tw17,w17,#24\n\tror\tw19,w19,#24\n\tror\tw20,w20,#24\n\tadd\tw15,w15,w21\n\tadd\tw16,w16,w17\n\tadd\tw13,w13,w19\n\tadd\tw14,w14,w20\n\teor\tw10,w10,w15\n\teor\tw11,w11,w16\n\teor\tw12,w12,w13\n\teor\tw9,w9,w14\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:5", "text": "add\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7\n\teor\tw20,w20,w8\n\tror\tw21,w21,#24\n\tror\tw17,w17,#24\n\tror\tw19,w19,#24\n\tror\tw20,w20,#24\n\tadd\tw15,w15,w21\n\tadd\tw16,w16,w17\n\tadd\tw13,w13,w19\n\tadd\tw14,w14,w20\n\teor\tw10,w10,w15\n\teor\tw11,w11,w16\n\teor\tw12,w12,w13\n\teor\tw9,w9,w14\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25\n\tror\tw9,w9,#25\n\tcbnz\tx4,.Loop\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tadd\tx6,x6,x22,lsr#32\n\tadd\tw7,w7,w23\n\tadd\tx8,x8,x23,lsr#32\n\tadd\tw9,w9,w24\n\tadd\tx10,x10,x24,lsr#32\n\tadd\tw11,w11,w25\n\tadd\tx12,x12,x25,lsr#32\n\tadd\tw13,w13,w26\n\tadd\tx14,x14,x26,lsr#32\n\tadd\tw15,w15,w27\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tw17,w17,w28\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tw20,w20,w30\n\tadd\tx21,x21,x30,lsr#32\n\n\tb.lo\t.Ltail\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:6", "text": "b.lo\t.Ltail\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tx15,x15,x16\n\teor\tx17,x17,x19\n\teor\tx20,x20,x21\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#1\t\t\t// increment counter\n\tstp\tx9,x11,[x0,#16]\n\tstp\tx13,x15,[x0,#32]\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\n\tb.hi\t.Loop_outer\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n.Labort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n\n.align\t4\n.Ltail:\n\tadd\tx2,x2,#64\n.Less_than_64:\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:7", "text": "b.hi\t.Loop_outer\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n.Labort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n\n.align\t4\n.Ltail:\n\tadd\tx2,x2,#64\n.Less_than_64:\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2\n\tadd\tx0,x0,x2\n\tadd\tx4,sp,x2\n\tneg\tx2,x2\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tstp\tx5,x7,[sp,#0]\n\tstp\tx9,x11,[sp,#16]\n\tstp\tx13,x15,[sp,#32]\n\tstp\tx17,x20,[sp,#48]\n\n.Loop_tail:\n\tldrb\tw10,[x1,x2]\n\tldrb\tw11,[x4,x2]\n\tadd\tx2,x2,#1\n\teor\tw10,w10,w11\n\tstrb\tw10,[x0,x2]\n\tcbnz\tx2,.Loop_tail\n\n\tstp\txzr,xzr,[sp,#0]\n\tstp\txzr,xzr,[sp,#16]\n\tstp\txzr,xzr,[sp,#32]\n\tstp\txzr,xzr,[sp,#48]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:8", "text": "rev\tx20,x20\n#endif\n\tstp\tx5,x7,[sp,#0]\n\tstp\tx9,x11,[sp,#16]\n\tstp\tx13,x15,[sp,#32]\n\tstp\tx17,x20,[sp,#48]\n\n.Loop_tail:\n\tldrb\tw10,[x1,x2]\n\tldrb\tw11,[x4,x2]\n\tadd\tx2,x2,#1\n\teor\tw10,w10,w11\n\tstrb\tw10,[x0,x2]\n\tcbnz\tx2,.Loop_tail\n\n\tstp\txzr,xzr,[sp,#0]\n\tstp\txzr,xzr,[sp,#16]\n\tstp\txzr,xzr,[sp,#32]\n\tstp\txzr,xzr,[sp,#48]\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_ctr32_dflt,.-ChaCha20_ctr32_dflt\n\n.globl\tChaCha20_ctr32\n.type\tChaCha20_ctr32,%function\n.align\t5\nChaCha20_ctr32:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcbz\tx2,.Labort\n\tcmp\tx2,#192\n\tb.lo\t.Lshort\n#ifndef\t__KERNEL__\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n\ttst\tw17,#ARMV8_SVE\n\tb.eq\t.Lcheck_neon\n\tstp\tx29,x30,[sp,#-16]!\n\tsub\tsp,sp,#16\n\t// SVE handling will inevitably increment the counter\n\t// Neon/Scalar code that follows to process tail data needs to\n\t// use new counter, unfortunately the input counter buffer\n\t// pointed to by ctr is meant to be read-only per API contract\n\t// we have to copy the buffer to stack to be writable by SVE\n\tldp\tx5,x6,[x4]\n\tstp\tx5,x6,[sp]\n\tmov\tx4,sp\n\tbl\tChaCha20_ctr32_sve\n\tcbz\tx2,1f\n\tbl\tChaCha20_ctr32_dflt\n1:\n\tadd\tsp,sp,#16\n\tldp\tx29,x30,[sp],#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:9", "text": "adrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n\ttst\tw17,#ARMV8_SVE\n\tb.eq\t.Lcheck_neon\n\tstp\tx29,x30,[sp,#-16]!\n\tsub\tsp,sp,#16\n\t// SVE handling will inevitably increment the counter\n\t// Neon/Scalar code that follows to process tail data needs to\n\t// use new counter, unfortunately the input counter buffer\n\t// pointed to by ctr is meant to be read-only per API contract\n\t// we have to copy the buffer to stack to be writable by SVE\n\tldp\tx5,x6,[x4]\n\tstp\tx5,x6,[sp]\n\tmov\tx4,sp\n\tbl\tChaCha20_ctr32_sve\n\tcbz\tx2,1f\n\tbl\tChaCha20_ctr32_dflt\n1:\n\tadd\tsp,sp,#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n#endif\n\tb\t.Lshort\n.size\tChaCha20_ctr32,.-ChaCha20_ctr32\n\n#ifdef\t__KERNEL__\n.globl\tChaCha20_neon\n#endif\n.type\tChaCha20_neon,%function\n.align\t5\nChaCha20_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n.LChaCha20_neon:\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tcmp\tx2,#512\n\tb.hs\t.L512_or_more_neon\n\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tld1\t{v0.4s},[x5],#16\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tld1\t{v1.4s,v2.4s},[x3]\n\tldp\tx28,x30,[x4]\t\t// load counter\n\tld1\t{v3.4s},[x4]\n\tstp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\tld1\t{v8.4s,v9.4s},[x5]\n#ifdef\t__AARCH64EB__\n\trev64\tv0.4s,v0.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:10", "text": "stp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tcmp\tx2,#512\n\tb.hs\t.L512_or_more_neon\n\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tld1\t{v0.4s},[x5],#16\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tld1\t{v1.4s,v2.4s},[x3]\n\tldp\tx28,x30,[x4]\t\t// load counter\n\tld1\t{v3.4s},[x4]\n\tstp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\tld1\t{v8.4s,v9.4s},[x5]\n#ifdef\t__AARCH64EB__\n\trev64\tv0.4s,v0.4s\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32\n\tror\tx30,x30,#32\n#endif\n\n.Loop_outer_neon:\n\tdup\tv16.4s,v0.s[0]\t\t\t// unpack key block\n\tmov\tw5,w22\n\tdup\tv20.4s,v0.s[1]\n\tlsr\tx6,x22,#32\n\tdup\tv24.4s,v0.s[2]\n\tmov\tw7,w23\n\tdup\tv28.4s,v0.s[3]\n\tlsr\tx8,x23,#32\n\tdup\tv17.4s,v1.s[0]\n\tmov\tw9,w24\n\tdup\tv21.4s,v1.s[1]\n\tlsr\tx10,x24,#32\n\tdup\tv25.4s,v1.s[2]\n\tmov\tw11,w25\n\tdup\tv29.4s,v1.s[3]\n\tlsr\tx12,x25,#32\n\tdup\tv19.4s,v3.s[0]\n\tmov\tw13,w26\n\tdup\tv23.4s,v3.s[1]\n\tlsr\tx14,x26,#32\n\tdup\tv27.4s,v3.s[2]\n\tmov\tw15,w27\n\tdup\tv31.4s,v3.s[3]\n\tlsr\tx16,x27,#32\n\tadd\tv19.4s,v19.4s,v8.4s\n\tmov\tw17,w28\n\tdup\tv18.4s,v2.s[0]\n\tlsr\tx19,x28,#32\n\tdup\tv22.4s,v2.s[1]\n\tmov\tw20,w30\n\tdup\tv26.4s,v2.s[2]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:11", "text": "lsr\tx10,x24,#32\n\tdup\tv25.4s,v1.s[2]\n\tmov\tw11,w25\n\tdup\tv29.4s,v1.s[3]\n\tlsr\tx12,x25,#32\n\tdup\tv19.4s,v3.s[0]\n\tmov\tw13,w26\n\tdup\tv23.4s,v3.s[1]\n\tlsr\tx14,x26,#32\n\tdup\tv27.4s,v3.s[2]\n\tmov\tw15,w27\n\tdup\tv31.4s,v3.s[3]\n\tlsr\tx16,x27,#32\n\tadd\tv19.4s,v19.4s,v8.4s\n\tmov\tw17,w28\n\tdup\tv18.4s,v2.s[0]\n\tlsr\tx19,x28,#32\n\tdup\tv22.4s,v2.s[1]\n\tmov\tw20,w30\n\tdup\tv26.4s,v2.s[2]\n\tlsr\tx21,x30,#32\n\tdup\tv30.4s,v2.s[3]\n\n\tmov\tx4,#10\n\tsubs\tx2,x2,#320\n.Loop_neon:\n\tsub\tx4,x4,#1\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw5,w5,w9\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw6,w6,w10\n\tadd\tv24.4s,v24.4s,v25.4s\n\tadd\tw7,w7,w11\n\tadd\tv28.4s,v28.4s,v29.4s\n\tadd\tw8,w8,w12\n\teor\tv19.16b,v19.16b,v16.16b\n\teor\tw17,w17,w5\n\teor\tv23.16b,v23.16b,v20.16b\n\teor\tw19,w19,w6\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw20,w20,w7\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw21,w21,w8\n\trev32\tv19.8h,v19.8h\n\tror\tw17,w17,#16\n\trev32\tv23.8h,v23.8h\n\tror\tw19,w19,#16\n\trev32\tv27.8h,v27.8h\n\tror\tw20,w20,#16\n\trev32\tv31.8h,v31.8h\n\tror\tw21,w21,#16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w17\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w19\n\tadd\tv26.4s,v26.4s,v27.4s\n\tadd\tw15,w15,w20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tadd\tw16,w16,w21\n\teor\tv4.16b,v17.16b,v18.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:12", "text": "eor\tw20,w20,w7\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw21,w21,w8\n\trev32\tv19.8h,v19.8h\n\tror\tw17,w17,#16\n\trev32\tv23.8h,v23.8h\n\tror\tw19,w19,#16\n\trev32\tv27.8h,v27.8h\n\tror\tw20,w20,#16\n\trev32\tv31.8h,v31.8h\n\tror\tw21,w21,#16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w17\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w19\n\tadd\tv26.4s,v26.4s,v27.4s\n\tadd\tw15,w15,w20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tadd\tw16,w16,w21\n\teor\tv4.16b,v17.16b,v18.16b\n\teor\tw9,w9,w13\n\teor\tv5.16b,v21.16b,v22.16b\n\teor\tw10,w10,w14\n\teor\tv6.16b,v25.16b,v26.16b\n\teor\tw11,w11,w15\n\teor\tv7.16b,v29.16b,v30.16b\n\teor\tw12,w12,w16\n\tushr\tv17.4s,v4.4s,#20\n\tror\tw9,w9,#20\n\tushr\tv21.4s,v5.4s,#20\n\tror\tw10,w10,#20\n\tushr\tv25.4s,v6.4s,#20\n\tror\tw11,w11,#20\n\tushr\tv29.4s,v7.4s,#20\n\tror\tw12,w12,#20\n\tsli\tv17.4s,v4.4s,#12\n\tadd\tw5,w5,w9\n\tsli\tv21.4s,v5.4s,#12\n\tadd\tw6,w6,w10\n\tsli\tv25.4s,v6.4s,#12\n\tadd\tw7,w7,w11\n\tsli\tv29.4s,v7.4s,#12\n\tadd\tw8,w8,w12\n\tadd\tv16.4s,v16.4s,v17.4s\n\teor\tw17,w17,w5\n\tadd\tv20.4s,v20.4s,v21.4s\n\teor\tw19,w19,w6\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw20,w20,w7\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw21,w21,w8\n\teor\tv4.16b,v19.16b,v16.16b\n\tror\tw17,w17,#24\n\teor\tv5.16b,v23.16b,v20.16b\n\tror\tw19,w19,#24\n\teor\tv6.16b,v27.16b,v24.16b\n\tror\tw20,w20,#24\n\teor\tv7.16b,v31.16b,v28.16b\n\tror\tw21,w21,#24\n\ttbl\tv19.16b,{v4.16b},v9.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:13", "text": "add\tw7,w7,w11\n\tsli\tv29.4s,v7.4s,#12\n\tadd\tw8,w8,w12\n\tadd\tv16.4s,v16.4s,v17.4s\n\teor\tw17,w17,w5\n\tadd\tv20.4s,v20.4s,v21.4s\n\teor\tw19,w19,w6\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw20,w20,w7\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw21,w21,w8\n\teor\tv4.16b,v19.16b,v16.16b\n\tror\tw17,w17,#24\n\teor\tv5.16b,v23.16b,v20.16b\n\tror\tw19,w19,#24\n\teor\tv6.16b,v27.16b,v24.16b\n\tror\tw20,w20,#24\n\teor\tv7.16b,v31.16b,v28.16b\n\tror\tw21,w21,#24\n\ttbl\tv19.16b,{v4.16b},v9.16b\n\tadd\tw13,w13,w17\n\ttbl\tv23.16b,{v5.16b},v9.16b\n\tadd\tw14,w14,w19\n\ttbl\tv27.16b,{v6.16b},v9.16b\n\tadd\tw15,w15,w20\n\ttbl\tv31.16b,{v7.16b},v9.16b\n\tadd\tw16,w16,w21\n\tadd\tv18.4s,v18.4s,v19.4s\n\teor\tw9,w9,w13\n\tadd\tv22.4s,v22.4s,v23.4s\n\teor\tw10,w10,w14\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw11,w11,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw12,w12,w16\n\teor\tv4.16b,v17.16b,v18.16b\n\tror\tw9,w9,#25\n\teor\tv5.16b,v21.16b,v22.16b\n\tror\tw10,w10,#25\n\teor\tv6.16b,v25.16b,v26.16b\n\tror\tw11,w11,#25\n\teor\tv7.16b,v29.16b,v30.16b\n\tror\tw12,w12,#25\n\tushr\tv17.4s,v4.4s,#25\n\tushr\tv21.4s,v5.4s,#25\n\tushr\tv25.4s,v6.4s,#25\n\tushr\tv29.4s,v7.4s,#25\n\tsli\tv17.4s,v4.4s,#7\n\tsli\tv21.4s,v5.4s,#7\n\tsli\tv25.4s,v6.4s,#7\n\tsli\tv29.4s,v7.4s,#7\n\tadd\tv16.4s,v16.4s,v21.4s\n\tadd\tw5,w5,w10\n\tadd\tv20.4s,v20.4s,v25.4s\n\tadd\tw6,w6,w11\n\tadd\tv24.4s,v24.4s,v29.4s\n\tadd\tw7,w7,w12\n\tadd\tv28.4s,v28.4s,v17.4s\n\tadd\tw8,w8,w9\n\teor\tv31.16b,v31.16b,v16.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:14", "text": "ror\tw11,w11,#25\n\teor\tv7.16b,v29.16b,v30.16b\n\tror\tw12,w12,#25\n\tushr\tv17.4s,v4.4s,#25\n\tushr\tv21.4s,v5.4s,#25\n\tushr\tv25.4s,v6.4s,#25\n\tushr\tv29.4s,v7.4s,#25\n\tsli\tv17.4s,v4.4s,#7\n\tsli\tv21.4s,v5.4s,#7\n\tsli\tv25.4s,v6.4s,#7\n\tsli\tv29.4s,v7.4s,#7\n\tadd\tv16.4s,v16.4s,v21.4s\n\tadd\tw5,w5,w10\n\tadd\tv20.4s,v20.4s,v25.4s\n\tadd\tw6,w6,w11\n\tadd\tv24.4s,v24.4s,v29.4s\n\tadd\tw7,w7,w12\n\tadd\tv28.4s,v28.4s,v17.4s\n\tadd\tw8,w8,w9\n\teor\tv31.16b,v31.16b,v16.16b\n\teor\tw21,w21,w5\n\teor\tv19.16b,v19.16b,v20.16b\n\teor\tw17,w17,w6\n\teor\tv23.16b,v23.16b,v24.16b\n\teor\tw19,w19,w7\n\teor\tv27.16b,v27.16b,v28.16b\n\teor\tw20,w20,w8\n\trev32\tv31.8h,v31.8h\n\tror\tw21,w21,#16\n\trev32\tv19.8h,v19.8h\n\tror\tw17,w17,#16\n\trev32\tv23.8h,v23.8h\n\tror\tw19,w19,#16\n\trev32\tv27.8h,v27.8h\n\tror\tw20,w20,#16\n\tadd\tv26.4s,v26.4s,v31.4s\n\tadd\tw15,w15,w21\n\tadd\tv30.4s,v30.4s,v19.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v23.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v27.4s\n\tadd\tw14,w14,w20\n\teor\tv4.16b,v21.16b,v26.16b\n\teor\tw10,w10,w15\n\teor\tv5.16b,v25.16b,v30.16b\n\teor\tw11,w11,w16\n\teor\tv6.16b,v29.16b,v18.16b\n\teor\tw12,w12,w13\n\teor\tv7.16b,v17.16b,v22.16b\n\teor\tw9,w9,w14\n\tushr\tv21.4s,v4.4s,#20\n\tror\tw10,w10,#20\n\tushr\tv25.4s,v5.4s,#20\n\tror\tw11,w11,#20\n\tushr\tv29.4s,v6.4s,#20\n\tror\tw12,w12,#20\n\tushr\tv17.4s,v7.4s,#20\n\tror\tw9,w9,#20\n\tsli\tv21.4s,v4.4s,#12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:15", "text": "add\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v27.4s\n\tadd\tw14,w14,w20\n\teor\tv4.16b,v21.16b,v26.16b\n\teor\tw10,w10,w15\n\teor\tv5.16b,v25.16b,v30.16b\n\teor\tw11,w11,w16\n\teor\tv6.16b,v29.16b,v18.16b\n\teor\tw12,w12,w13\n\teor\tv7.16b,v17.16b,v22.16b\n\teor\tw9,w9,w14\n\tushr\tv21.4s,v4.4s,#20\n\tror\tw10,w10,#20\n\tushr\tv25.4s,v5.4s,#20\n\tror\tw11,w11,#20\n\tushr\tv29.4s,v6.4s,#20\n\tror\tw12,w12,#20\n\tushr\tv17.4s,v7.4s,#20\n\tror\tw9,w9,#20\n\tsli\tv21.4s,v4.4s,#12\n\tadd\tw5,w5,w10\n\tsli\tv25.4s,v5.4s,#12\n\tadd\tw6,w6,w11\n\tsli\tv29.4s,v6.4s,#12\n\tadd\tw7,w7,w12\n\tsli\tv17.4s,v7.4s,#12\n\tadd\tw8,w8,w9\n\tadd\tv16.4s,v16.4s,v21.4s\n\teor\tw21,w21,w5\n\tadd\tv20.4s,v20.4s,v25.4s\n\teor\tw17,w17,w6\n\tadd\tv24.4s,v24.4s,v29.4s\n\teor\tw19,w19,w7\n\tadd\tv28.4s,v28.4s,v17.4s\n\teor\tw20,w20,w8\n\teor\tv4.16b,v31.16b,v16.16b\n\tror\tw21,w21,#24\n\teor\tv5.16b,v19.16b,v20.16b\n\tror\tw17,w17,#24\n\teor\tv6.16b,v23.16b,v24.16b\n\tror\tw19,w19,#24\n\teor\tv7.16b,v27.16b,v28.16b\n\tror\tw20,w20,#24\n\ttbl\tv31.16b,{v4.16b},v9.16b\n\tadd\tw15,w15,w21\n\ttbl\tv19.16b,{v5.16b},v9.16b\n\tadd\tw16,w16,w17\n\ttbl\tv23.16b,{v6.16b},v9.16b\n\tadd\tw13,w13,w19\n\ttbl\tv27.16b,{v7.16b},v9.16b\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v31.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v19.4s\n\teor\tw11,w11,w16\n\tadd\tv18.4s,v18.4s,v23.4s\n\teor\tw12,w12,w13\n\tadd\tv22.4s,v22.4s,v27.4s\n\teor\tw9,w9,w14\n\teor\tv4.16b,v21.16b,v26.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:16", "text": "ror\tw19,w19,#24\n\teor\tv7.16b,v27.16b,v28.16b\n\tror\tw20,w20,#24\n\ttbl\tv31.16b,{v4.16b},v9.16b\n\tadd\tw15,w15,w21\n\ttbl\tv19.16b,{v5.16b},v9.16b\n\tadd\tw16,w16,w17\n\ttbl\tv23.16b,{v6.16b},v9.16b\n\tadd\tw13,w13,w19\n\ttbl\tv27.16b,{v7.16b},v9.16b\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v31.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v19.4s\n\teor\tw11,w11,w16\n\tadd\tv18.4s,v18.4s,v23.4s\n\teor\tw12,w12,w13\n\tadd\tv22.4s,v22.4s,v27.4s\n\teor\tw9,w9,w14\n\teor\tv4.16b,v21.16b,v26.16b\n\tror\tw10,w10,#25\n\teor\tv5.16b,v25.16b,v30.16b\n\tror\tw11,w11,#25\n\teor\tv6.16b,v29.16b,v18.16b\n\tror\tw12,w12,#25\n\teor\tv7.16b,v17.16b,v22.16b\n\tror\tw9,w9,#25\n\tushr\tv21.4s,v4.4s,#25\n\tushr\tv25.4s,v5.4s,#25\n\tushr\tv29.4s,v6.4s,#25\n\tushr\tv17.4s,v7.4s,#25\n\tsli\tv21.4s,v4.4s,#7\n\tsli\tv25.4s,v5.4s,#7\n\tsli\tv29.4s,v6.4s,#7\n\tsli\tv17.4s,v7.4s,#7\n\tcbnz\tx4,.Loop_neon\n\n\tadd\tv19.4s,v19.4s,v8.4s\n\n\tzip1\tv4.4s,v16.4s,v20.4s\t\t\t// transpose data\n\tzip1\tv5.4s,v24.4s,v28.4s\n\tzip2\tv6.4s,v16.4s,v20.4s\n\tzip2\tv7.4s,v24.4s,v28.4s\n\tzip1\tv16.2d,v4.2d,v5.2d\n\tzip2\tv20.2d,v4.2d,v5.2d\n\tzip1\tv24.2d,v6.2d,v7.2d\n\tzip2\tv28.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v17.4s,v21.4s\n\tzip1\tv5.4s,v25.4s,v29.4s\n\tzip2\tv6.4s,v17.4s,v21.4s\n\tzip2\tv7.4s,v25.4s,v29.4s\n\tzip1\tv17.2d,v4.2d,v5.2d\n\tzip2\tv21.2d,v4.2d,v5.2d\n\tzip1\tv25.2d,v6.2d,v7.2d\n\tzip2\tv29.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v18.4s,v22.4s\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tzip1\tv5.4s,v26.4s,v30.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:17", "text": "zip1\tv5.4s,v24.4s,v28.4s\n\tzip2\tv6.4s,v16.4s,v20.4s\n\tzip2\tv7.4s,v24.4s,v28.4s\n\tzip1\tv16.2d,v4.2d,v5.2d\n\tzip2\tv20.2d,v4.2d,v5.2d\n\tzip1\tv24.2d,v6.2d,v7.2d\n\tzip2\tv28.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v17.4s,v21.4s\n\tzip1\tv5.4s,v25.4s,v29.4s\n\tzip2\tv6.4s,v17.4s,v21.4s\n\tzip2\tv7.4s,v25.4s,v29.4s\n\tzip1\tv17.2d,v4.2d,v5.2d\n\tzip2\tv21.2d,v4.2d,v5.2d\n\tzip1\tv25.2d,v6.2d,v7.2d\n\tzip2\tv29.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v18.4s,v22.4s\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tzip1\tv5.4s,v26.4s,v30.4s\n\tadd\tx6,x6,x22,lsr#32\n\tzip2\tv6.4s,v18.4s,v22.4s\n\tadd\tw7,w7,w23\n\tzip2\tv7.4s,v26.4s,v30.4s\n\tadd\tx8,x8,x23,lsr#32\n\tzip1\tv18.2d,v4.2d,v5.2d\n\tadd\tw9,w9,w24\n\tzip2\tv22.2d,v4.2d,v5.2d\n\tadd\tx10,x10,x24,lsr#32\n\tzip1\tv26.2d,v6.2d,v7.2d\n\tadd\tw11,w11,w25\n\tzip2\tv30.2d,v6.2d,v7.2d\n\tadd\tx12,x12,x25,lsr#32\n\n\tzip1\tv4.4s,v19.4s,v23.4s\n\tadd\tw13,w13,w26\n\tzip1\tv5.4s,v27.4s,v31.4s\n\tadd\tx14,x14,x26,lsr#32\n\tzip2\tv6.4s,v19.4s,v23.4s\n\tadd\tw15,w15,w27\n\tzip2\tv7.4s,v27.4s,v31.4s\n\tadd\tx16,x16,x27,lsr#32\n\tzip1\tv19.2d,v4.2d,v5.2d\n\tadd\tw17,w17,w28\n\tzip2\tv23.2d,v4.2d,v5.2d\n\tadd\tx19,x19,x28,lsr#32\n\tzip1\tv27.2d,v6.2d,v7.2d\n\tadd\tw20,w20,w30\n\tzip2\tv31.2d,v6.2d,v7.2d\n\tadd\tx21,x21,x30,lsr#32\n\n\tb.lo\t.Ltail_neon\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv16.4s,v16.4s,v0.4s\t\t\t// accumulate key block\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:18", "text": "zip2\tv7.4s,v27.4s,v31.4s\n\tadd\tx16,x16,x27,lsr#32\n\tzip1\tv19.2d,v4.2d,v5.2d\n\tadd\tw17,w17,w28\n\tzip2\tv23.2d,v4.2d,v5.2d\n\tadd\tx19,x19,x28,lsr#32\n\tzip1\tv27.2d,v6.2d,v7.2d\n\tadd\tw20,w20,w30\n\tzip2\tv31.2d,v6.2d,v7.2d\n\tadd\tx21,x21,x30,lsr#32\n\n\tb.lo\t.Ltail_neon\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv16.4s,v16.4s,v0.4s\t\t\t// accumulate key block\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tv17.4s,v17.4s,v1.4s\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tv18.4s,v18.4s,v2.4s\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tv19.4s,v19.4s,v3.4s\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tx5,x5,x6\n\tadd\tv20.4s,v20.4s,v0.4s\n\teor\tx7,x7,x8\n\tadd\tv21.4s,v21.4s,v1.4s\n\teor\tx9,x9,x10\n\tadd\tv22.4s,v22.4s,v2.4s\n\teor\tx11,x11,x12\n\tadd\tv23.4s,v23.4s,v3.4s\n\teor\tx13,x13,x14\n\teor\tv16.16b,v16.16b,v4.16b\n\tmovi\tv4.4s,#5\n\teor\tx15,x15,x16\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tx17,x17,x19\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tx20,x20,x21\n\teor\tv19.16b,v19.16b,v7.16b\n\tadd\tv8.4s,v8.4s,v4.4s\t\t\t// += 5\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:19", "text": "ld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tx5,x5,x6\n\tadd\tv20.4s,v20.4s,v0.4s\n\teor\tx7,x7,x8\n\tadd\tv21.4s,v21.4s,v1.4s\n\teor\tx9,x9,x10\n\tadd\tv22.4s,v22.4s,v2.4s\n\teor\tx11,x11,x12\n\tadd\tv23.4s,v23.4s,v3.4s\n\teor\tx13,x13,x14\n\teor\tv16.16b,v16.16b,v4.16b\n\tmovi\tv4.4s,#5\n\teor\tx15,x15,x16\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tx17,x17,x19\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tx20,x20,x21\n\teor\tv19.16b,v19.16b,v7.16b\n\tadd\tv8.4s,v8.4s,v4.4s\t\t\t// += 5\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#5\t\t\t// increment counter\n\tstp\tx9,x11,[x0,#16]\n\tstp\tx13,x15,[x0,#32]\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\tadd\tv24.4s,v24.4s,v0.4s\n\tadd\tv25.4s,v25.4s,v1.4s\n\tadd\tv26.4s,v26.4s,v2.4s\n\tadd\tv27.4s,v27.4s,v3.4s\n\tld1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x1],#64\n\n\teor\tv20.16b,v20.16b,v4.16b\n\teor\tv21.16b,v21.16b,v5.16b\n\teor\tv22.16b,v22.16b,v6.16b\n\teor\tv23.16b,v23.16b,v7.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\tadd\tv28.4s,v28.4s,v0.4s\n\tadd\tv29.4s,v29.4s,v1.4s\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tv31.4s,v31.4s,v3.4s\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\n\teor\tv28.16b,v28.16b,v20.16b\n\teor\tv29.16b,v29.16b,v21.16b\n\teor\tv30.16b,v30.16b,v22.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\tst1\t{v28.16b,v29.16b,v30.16b,v31.16b},[x0],#64\n\n\tb.hi\t.Loop_outer_neon", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:20", "text": "add\tv28.4s,v28.4s,v0.4s\n\tadd\tv29.4s,v29.4s,v1.4s\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tv31.4s,v31.4s,v3.4s\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\n\teor\tv28.16b,v28.16b,v20.16b\n\teor\tv29.16b,v29.16b,v21.16b\n\teor\tv30.16b,v30.16b,v22.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\tst1\t{v28.16b,v29.16b,v30.16b,v31.16b},[x0],#64\n\n\tb.hi\t.Loop_outer_neon\n\n\tldp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n\n.align\t4\n.Ltail_neon:\n\tadd\tx2,x2,#320\n\tldp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\tcmp\tx2,#64\n\tb.lo\t.Less_than_64\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:21", "text": "add\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tx15,x15,x16\n\teor\tx17,x17,x19\n\teor\tx20,x20,x21\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tv16.4s,v16.4s,v0.4s\t\t\t// accumulate key block\n\tstp\tx9,x11,[x0,#16]\n\tadd\tv17.4s,v17.4s,v1.4s\n\tstp\tx13,x15,[x0,#32]\n\tadd\tv18.4s,v18.4s,v2.4s\n\tstp\tx17,x20,[x0,#48]\n\tadd\tv19.4s,v19.4s,v3.4s\n\tadd\tx0,x0,#64\n\tb.eq\t.Ldone_neon\n\tsub\tx2,x2,#64\n\tcmp\tx2,#64\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv16.16b,v16.16b,v4.16b\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tv19.16b,v19.16b,v7.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v20.4s,v0.4s\n\tadd\tv17.4s,v21.4s,v1.4s\n\tsub\tx2,x2,#64\n\tadd\tv18.4s,v22.4s,v2.4s\n\tcmp\tx2,#64\n\tadd\tv19.4s,v23.4s,v3.4s\n\tb.lo\t.Last_neon", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:22", "text": "b.eq\t.Ldone_neon\n\tsub\tx2,x2,#64\n\tcmp\tx2,#64\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv16.16b,v16.16b,v4.16b\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tv19.16b,v19.16b,v7.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v20.4s,v0.4s\n\tadd\tv17.4s,v21.4s,v1.4s\n\tsub\tx2,x2,#64\n\tadd\tv18.4s,v22.4s,v2.4s\n\tcmp\tx2,#64\n\tadd\tv19.4s,v23.4s,v3.4s\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv20.16b,v16.16b,v4.16b\n\teor\tv21.16b,v17.16b,v5.16b\n\teor\tv22.16b,v18.16b,v6.16b\n\teor\tv23.16b,v19.16b,v7.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v24.4s,v0.4s\n\tadd\tv17.4s,v25.4s,v1.4s\n\tsub\tx2,x2,#64\n\tadd\tv18.4s,v26.4s,v2.4s\n\tcmp\tx2,#64\n\tadd\tv19.4s,v27.4s,v3.4s\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv24.16b,v16.16b,v4.16b\n\teor\tv25.16b,v17.16b,v5.16b\n\teor\tv26.16b,v18.16b,v6.16b\n\teor\tv27.16b,v19.16b,v7.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v28.4s,v0.4s\n\tadd\tv17.4s,v29.4s,v1.4s\n\tadd\tv18.4s,v30.4s,v2.4s\n\tadd\tv19.4s,v31.4s,v3.4s\n\tsub\tx2,x2,#64\n\n.Last_neon:\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[sp]\n\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2\n\tadd\tx0,x0,x2\n\tadd\tx4,sp,x2\n\tneg\tx2,x2", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:23", "text": "eor\tv26.16b,v18.16b,v6.16b\n\teor\tv27.16b,v19.16b,v7.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v28.4s,v0.4s\n\tadd\tv17.4s,v29.4s,v1.4s\n\tadd\tv18.4s,v30.4s,v2.4s\n\tadd\tv19.4s,v31.4s,v3.4s\n\tsub\tx2,x2,#64\n\n.Last_neon:\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[sp]\n\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2\n\tadd\tx0,x0,x2\n\tadd\tx4,sp,x2\n\tneg\tx2,x2\n\n.Loop_tail_neon:\n\tldrb\tw10,[x1,x2]\n\tldrb\tw11,[x4,x2]\n\tadd\tx2,x2,#1\n\teor\tw10,w10,w11\n\tstrb\tw10,[x0,x2]\n\tcbnz\tx2,.Loop_tail_neon\n\n\tstp\txzr,xzr,[sp,#0]\n\tstp\txzr,xzr,[sp,#16]\n\tstp\txzr,xzr,[sp,#32]\n\tstp\txzr,xzr,[sp,#48]\n\n.Ldone_neon:\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_neon,.-ChaCha20_neon\n.type\tChaCha20_512_neon,%function\n.align\t5\nChaCha20_512_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n.L512_or_more_neon:", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:24", "text": "ldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_neon,.-ChaCha20_neon\n.type\tChaCha20_512_neon,%function\n.align\t5\nChaCha20_512_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n.L512_or_more_neon:\n\tsub\tsp,sp,#128+64\n\n\teor\tv7.16b,v7.16b,v7.16b\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tld1\t{v0.4s},[x5],#16\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tld1\t{v1.4s,v2.4s},[x3]\n\tldp\tx28,x30,[x4]\t\t// load counter\n\tld1\t{v3.4s},[x4]\n\tld1\t{v7.s}[0],[x5]\n\tadd\tx3,x5,#16\t\t\t// .Lrot24\n#ifdef\t__AARCH64EB__\n\trev64\tv0.4s,v0.4s\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32\n\tror\tx30,x30,#32\n#endif\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// += 1\n\tstp\tq0,q1,[sp,#0]\t\t// off-load key block, invariant part\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// not typo\n\tstr\tq2,[sp,#32]\n\tadd\tv4.4s,v3.4s,v7.4s\n\tadd\tv5.4s,v4.4s,v7.4s\n\tadd\tv6.4s,v5.4s,v7.4s\n\tshl\tv7.4s,v7.4s,#2\t\t\t// 1 -> 4\n\n\tstp\td8,d9,[sp,#128+0]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#128+16]\n\tstp\td12,d13,[sp,#128+32]\n\tstp\td14,d15,[sp,#128+48]\n\n\tsub\tx2,x2,#512\t\t\t// not typo\n\n.Loop_outer_512_neon:\n\tmov\tv8.16b,v0.16b\n\tmov\tv12.16b,v0.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:25", "text": "#endif\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// += 1\n\tstp\tq0,q1,[sp,#0]\t\t// off-load key block, invariant part\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// not typo\n\tstr\tq2,[sp,#32]\n\tadd\tv4.4s,v3.4s,v7.4s\n\tadd\tv5.4s,v4.4s,v7.4s\n\tadd\tv6.4s,v5.4s,v7.4s\n\tshl\tv7.4s,v7.4s,#2\t\t\t// 1 -> 4\n\n\tstp\td8,d9,[sp,#128+0]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#128+16]\n\tstp\td12,d13,[sp,#128+32]\n\tstp\td14,d15,[sp,#128+48]\n\n\tsub\tx2,x2,#512\t\t\t// not typo\n\n.Loop_outer_512_neon:\n\tmov\tv8.16b,v0.16b\n\tmov\tv12.16b,v0.16b\n\tmov\tv16.16b,v0.16b\n\tmov\tv20.16b,v0.16b\n\tmov\tv24.16b,v0.16b\n\tmov\tv28.16b,v0.16b\n\tmov\tv9.16b,v1.16b\n\tmov\tw5,w22\t\t\t// unpack key block\n\tmov\tv13.16b,v1.16b\n\tlsr\tx6,x22,#32\n\tmov\tv17.16b,v1.16b\n\tmov\tw7,w23\n\tmov\tv21.16b,v1.16b\n\tlsr\tx8,x23,#32\n\tmov\tv25.16b,v1.16b\n\tmov\tw9,w24\n\tmov\tv29.16b,v1.16b\n\tlsr\tx10,x24,#32\n\tmov\tv11.16b,v3.16b\n\tmov\tw11,w25\n\tmov\tv15.16b,v4.16b\n\tlsr\tx12,x25,#32\n\tmov\tv19.16b,v5.16b\n\tmov\tw13,w26\n\tmov\tv23.16b,v6.16b\n\tlsr\tx14,x26,#32\n\tmov\tv10.16b,v2.16b\n\tmov\tw15,w27\n\tmov\tv14.16b,v2.16b\n\tlsr\tx16,x27,#32\n\tadd\tv27.4s,v11.4s,v7.4s\t\t\t// +4\n\tmov\tw17,w28\n\tadd\tv31.4s,v15.4s,v7.4s\t\t\t// +4\n\tlsr\tx19,x28,#32\n\tmov\tv18.16b,v2.16b\n\tmov\tw20,w30\n\tmov\tv22.16b,v2.16b\n\tlsr\tx21,x30,#32\n\tmov\tv26.16b,v2.16b\n\tstp\tq3,q4,[sp,#48]\t\t// off-load key block, variable part\n\tmov\tv30.16b,v2.16b\n\tstp\tq5,q6,[sp,#80]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:26", "text": "mov\tv19.16b,v5.16b\n\tmov\tw13,w26\n\tmov\tv23.16b,v6.16b\n\tlsr\tx14,x26,#32\n\tmov\tv10.16b,v2.16b\n\tmov\tw15,w27\n\tmov\tv14.16b,v2.16b\n\tlsr\tx16,x27,#32\n\tadd\tv27.4s,v11.4s,v7.4s\t\t\t// +4\n\tmov\tw17,w28\n\tadd\tv31.4s,v15.4s,v7.4s\t\t\t// +4\n\tlsr\tx19,x28,#32\n\tmov\tv18.16b,v2.16b\n\tmov\tw20,w30\n\tmov\tv22.16b,v2.16b\n\tlsr\tx21,x30,#32\n\tmov\tv26.16b,v2.16b\n\tstp\tq3,q4,[sp,#48]\t\t// off-load key block, variable part\n\tmov\tv30.16b,v2.16b\n\tstp\tq5,q6,[sp,#80]\n\n\tmov\tx4,#5\n\tld1\t{v6.4s},[x3]\n\tsubs\tx2,x2,#512\n.Loop_upper_neon:\n\tsub\tx4,x4,#1\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:27", "text": "eor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:28", "text": "eor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:29", "text": "add\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:30", "text": "eor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:31", "text": "ext\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4\n\text\tv17.16b,v17.16b,v17.16b,#4\n\text\tv21.16b,v21.16b,v21.16b,#4\n\text\tv25.16b,v25.16b,v25.16b,#4\n\text\tv29.16b,v29.16b,v29.16b,#4\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:32", "text": "eor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:33", "text": "eor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:34", "text": "eor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:35", "text": "eor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#4\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:36", "text": "ext\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#4\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12\n\text\tv25.16b,v25.16b,v25.16b,#12\n\text\tv29.16b,v29.16b,v29.16b,#12\n\tcbnz\tx4,.Loop_upper_neon\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tadd\tx6,x6,x22,lsr#32\n\tadd\tw7,w7,w23\n\tadd\tx8,x8,x23,lsr#32\n\tadd\tw9,w9,w24\n\tadd\tx10,x10,x24,lsr#32\n\tadd\tw11,w11,w25\n\tadd\tx12,x12,x25,lsr#32\n\tadd\tw13,w13,w26\n\tadd\tx14,x14,x26,lsr#32\n\tadd\tw15,w15,w27\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tw17,w17,w28\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tw20,w20,w30\n\tadd\tx21,x21,x30,lsr#32\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:37", "text": "add\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tx15,x15,x16\n\teor\tx17,x17,x19\n\teor\tx20,x20,x21\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#1\t\t\t// increment counter\n\tmov\tw5,w22\t\t\t// unpack key block\n\tlsr\tx6,x22,#32\n\tstp\tx9,x11,[x0,#16]\n\tmov\tw7,w23\n\tlsr\tx8,x23,#32\n\tstp\tx13,x15,[x0,#32]\n\tmov\tw9,w24\n\tlsr\tx10,x24,#32\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\tmov\tw11,w25\n\tlsr\tx12,x25,#32\n\tmov\tw13,w26\n\tlsr\tx14,x26,#32\n\tmov\tw15,w27\n\tlsr\tx16,x27,#32\n\tmov\tw17,w28\n\tlsr\tx19,x28,#32\n\tmov\tw20,w30\n\tlsr\tx21,x30,#32\n\n\tmov\tx4,#5\n.Loop_lower_neon:\n\tsub\tx4,x4,#1\n\tadd\tv8.4s,v8.4s,v9.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:38", "text": "stp\tx13,x15,[x0,#32]\n\tmov\tw9,w24\n\tlsr\tx10,x24,#32\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\tmov\tw11,w25\n\tlsr\tx12,x25,#32\n\tmov\tw13,w26\n\tlsr\tx14,x26,#32\n\tmov\tw15,w27\n\tlsr\tx16,x27,#32\n\tmov\tw17,w28\n\tlsr\tx19,x28,#32\n\tmov\tw20,w30\n\tlsr\tx21,x30,#32\n\n\tmov\tx4,#5\n.Loop_lower_neon:\n\tsub\tx4,x4,#1\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:39", "text": "ror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:40", "text": "eor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:41", "text": "add\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:42", "text": "ror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4\n\text\tv17.16b,v17.16b,v17.16b,#4\n\text\tv21.16b,v21.16b,v21.16b,#4\n\text\tv25.16b,v25.16b,v25.16b,#4\n\text\tv29.16b,v29.16b,v29.16b,#4\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:43", "text": "eor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4\n\text\tv17.16b,v17.16b,v17.16b,#4\n\text\tv21.16b,v21.16b,v21.16b,#4\n\text\tv25.16b,v25.16b,v25.16b,#4\n\text\tv29.16b,v29.16b,v29.16b,#4\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:44", "text": "ror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:45", "text": "eor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:46", "text": "add\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:47", "text": "ror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#4\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12\n\text\tv25.16b,v25.16b,v25.16b,#12\n\text\tv29.16b,v29.16b,v29.16b,#12\n\tcbnz\tx4,.Loop_lower_neon\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tldp\tq0,q1,[sp,#0]\n\tadd\tx6,x6,x22,lsr#32", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:48", "text": "eor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12\n\text\tv25.16b,v25.16b,v25.16b,#12\n\text\tv29.16b,v29.16b,v29.16b,#12\n\tcbnz\tx4,.Loop_lower_neon\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tldp\tq0,q1,[sp,#0]\n\tadd\tx6,x6,x22,lsr#32\n\tldp\tq2,q3,[sp,#32]\n\tadd\tw7,w7,w23\n\tldp\tq4,q5,[sp,#64]\n\tadd\tx8,x8,x23,lsr#32\n\tldr\tq6,[sp,#96]\n\tadd\tv8.4s,v8.4s,v0.4s\n\tadd\tw9,w9,w24\n\tadd\tv12.4s,v12.4s,v0.4s\n\tadd\tx10,x10,x24,lsr#32\n\tadd\tv16.4s,v16.4s,v0.4s\n\tadd\tw11,w11,w25\n\tadd\tv20.4s,v20.4s,v0.4s\n\tadd\tx12,x12,x25,lsr#32\n\tadd\tv24.4s,v24.4s,v0.4s\n\tadd\tw13,w13,w26\n\tadd\tv28.4s,v28.4s,v0.4s\n\tadd\tx14,x14,x26,lsr#32\n\tadd\tv10.4s,v10.4s,v2.4s\n\tadd\tw15,w15,w27\n\tadd\tv14.4s,v14.4s,v2.4s\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tv18.4s,v18.4s,v2.4s\n\tadd\tw17,w17,w28\n\tadd\tv22.4s,v22.4s,v2.4s\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tv26.4s,v26.4s,v2.4s\n\tadd\tw20,w20,w30\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tx21,x21,x30,lsr#32\n\tadd\tv27.4s,v27.4s,v7.4s\t\t\t// +4\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tv31.4s,v31.4s,v7.4s\t\t\t// +4\n\tadd\tx7,x7,x8,lsl#32\n\tadd\tv11.4s,v11.4s,v3.4s\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv15.4s,v15.4s,v4.4s\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tv19.4s,v19.4s,v5.4s\n\tadd\tx11,x11,x12,lsl#32\n\tadd\tv23.4s,v23.4s,v6.4s", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:49", "text": "add\tx16,x16,x27,lsr#32\n\tadd\tv18.4s,v18.4s,v2.4s\n\tadd\tw17,w17,w28\n\tadd\tv22.4s,v22.4s,v2.4s\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tv26.4s,v26.4s,v2.4s\n\tadd\tw20,w20,w30\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tx21,x21,x30,lsr#32\n\tadd\tv27.4s,v27.4s,v7.4s\t\t\t// +4\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tv31.4s,v31.4s,v7.4s\t\t\t// +4\n\tadd\tx7,x7,x8,lsl#32\n\tadd\tv11.4s,v11.4s,v3.4s\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv15.4s,v15.4s,v4.4s\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tv19.4s,v19.4s,v5.4s\n\tadd\tx11,x11,x12,lsl#32\n\tadd\tv23.4s,v23.4s,v6.4s\n\tldp\tx10,x12,[x1,#16]\n\tadd\tv27.4s,v27.4s,v3.4s\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tv31.4s,v31.4s,v4.4s\n\tadd\tx15,x15,x16,lsl#32\n\tadd\tv9.4s,v9.4s,v1.4s\n\tldp\tx14,x16,[x1,#32]\n\tadd\tv13.4s,v13.4s,v1.4s\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tv17.4s,v17.4s,v1.4s\n\tadd\tx20,x20,x21,lsl#32\n\tadd\tv21.4s,v21.4s,v1.4s\n\tldp\tx19,x21,[x1,#48]\n\tadd\tv25.4s,v25.4s,v1.4s\n\tadd\tx1,x1,#64\n\tadd\tv29.4s,v29.4s,v1.4s\n\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tld1\t{v0.16b,v1.16b,v2.16b,v3.16b},[x1],#64\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tv8.16b,v8.16b,v0.16b\n\teor\tx15,x15,x16\n\teor\tv9.16b,v9.16b,v1.16b\n\teor\tx17,x17,x19\n\teor\tv10.16b,v10.16b,v2.16b\n\teor\tx20,x20,x21\n\teor\tv11.16b,v11.16b,v3.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:50", "text": "rev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tld1\t{v0.16b,v1.16b,v2.16b,v3.16b},[x1],#64\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tv8.16b,v8.16b,v0.16b\n\teor\tx15,x15,x16\n\teor\tv9.16b,v9.16b,v1.16b\n\teor\tx17,x17,x19\n\teor\tv10.16b,v10.16b,v2.16b\n\teor\tx20,x20,x21\n\teor\tv11.16b,v11.16b,v3.16b\n\tld1\t{v0.16b,v1.16b,v2.16b,v3.16b},[x1],#64\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#7\t\t\t// increment counter\n\tstp\tx9,x11,[x0,#16]\n\tstp\tx13,x15,[x0,#32]\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\tst1\t{v8.16b,v9.16b,v10.16b,v11.16b},[x0],#64\n\n\tld1\t{v8.16b,v9.16b,v10.16b,v11.16b},[x1],#64\n\teor\tv12.16b,v12.16b,v0.16b\n\teor\tv13.16b,v13.16b,v1.16b\n\teor\tv14.16b,v14.16b,v2.16b\n\teor\tv15.16b,v15.16b,v3.16b\n\tst1\t{v12.16b,v13.16b,v14.16b,v15.16b},[x0],#64\n\n\tld1\t{v12.16b,v13.16b,v14.16b,v15.16b},[x1],#64\n\teor\tv16.16b,v16.16b,v8.16b\n\tldp\tq0,q1,[sp,#0]\n\teor\tv17.16b,v17.16b,v9.16b\n\tldp\tq2,q3,[sp,#32]\n\teor\tv18.16b,v18.16b,v10.16b\n\teor\tv19.16b,v19.16b,v11.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\n\tld1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x1],#64\n\teor\tv20.16b,v20.16b,v12.16b\n\teor\tv21.16b,v21.16b,v13.16b\n\teor\tv22.16b,v22.16b,v14.16b\n\teor\tv23.16b,v23.16b,v15.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:51", "text": "eor\tv17.16b,v17.16b,v9.16b\n\tldp\tq2,q3,[sp,#32]\n\teor\tv18.16b,v18.16b,v10.16b\n\teor\tv19.16b,v19.16b,v11.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\n\tld1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x1],#64\n\teor\tv20.16b,v20.16b,v12.16b\n\teor\tv21.16b,v21.16b,v13.16b\n\teor\tv22.16b,v22.16b,v14.16b\n\teor\tv23.16b,v23.16b,v15.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\n\tshl\tv8.4s,v7.4s,#1\t\t\t// 4 -> 8\n\teor\tv28.16b,v28.16b,v20.16b\n\teor\tv29.16b,v29.16b,v21.16b\n\teor\tv30.16b,v30.16b,v22.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\tst1\t{v28.16b,v29.16b,v30.16b,v31.16b},[x0],#64\n\n\tadd\tv3.4s,v3.4s,v8.4s\t\t\t// += 8\n\tadd\tv4.4s,v4.4s,v8.4s\n\tadd\tv5.4s,v5.4s,v8.4s\n\tadd\tv6.4s,v6.4s,v8.4s\n\n\tb.hs\t.Loop_outer_512_neon\n\n\tadds\tx2,x2,#512\n\tushr\tv7.4s,v7.4s,#1\t\t\t// 4 -> 2\n\n\tldp\td10,d11,[sp,#128+16]\t\t// meet ABI requirements\n\tldp\td12,d13,[sp,#128+32]\n\tldp\td14,d15,[sp,#128+48]\n\n\tstp\tq0,q0,[sp,#0]\t\t// wipe off-load area\n\tstp\tq0,q0,[sp,#32]\n\tstp\tq0,q0,[sp,#64]\n\n\tb.eq\t.Ldone_512_neon\n\n\tsub\tx3,x3,#16\t\t\t// .Lone\n\tcmp\tx2,#192\n\tadd\tsp,sp,#128\n\tsub\tv3.4s,v3.4s,v7.4s\t\t// -= 2\n\tld1\t{v8.4s,v9.4s},[x3]\n\tb.hs\t.Loop_outer_neon\n\n\tldp\td8,d9,[sp,#0]\t\t\t// meet ABI requirements\n\teor\tv1.16b,v1.16b,v1.16b\n\teor\tv2.16b,v2.16b,v2.16b\n\teor\tv3.16b,v3.16b,v3.16b\n\teor\tv4.16b,v4.16b,v4.16b\n\teor\tv5.16b,v5.16b,v5.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S:52", "text": "stp\tq0,q0,[sp,#0]\t\t// wipe off-load area\n\tstp\tq0,q0,[sp,#32]\n\tstp\tq0,q0,[sp,#64]\n\n\tb.eq\t.Ldone_512_neon\n\n\tsub\tx3,x3,#16\t\t\t// .Lone\n\tcmp\tx2,#192\n\tadd\tsp,sp,#128\n\tsub\tv3.4s,v3.4s,v7.4s\t\t// -= 2\n\tld1\t{v8.4s,v9.4s},[x3]\n\tb.hs\t.Loop_outer_neon\n\n\tldp\td8,d9,[sp,#0]\t\t\t// meet ABI requirements\n\teor\tv1.16b,v1.16b,v1.16b\n\teor\tv2.16b,v2.16b,v2.16b\n\teor\tv3.16b,v3.16b,v3.16b\n\teor\tv4.16b,v4.16b,v4.16b\n\teor\tv5.16b,v5.16b,v5.16b\n\teor\tv6.16b,v6.16b,v6.16b\n\tb\t.Loop_outer\n\n.Ldone_512_neon:\n\tldp\td8,d9,[sp,#128+0]\t\t// meet ABI requirements\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#128+64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_512_neon,.-ChaCha20_512_neon", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/chacha-armv8.S", "line_start": 2041, "line_end": 2075}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/crypto.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nCPUID_SRCS += arm64cpuid.S armcap.c\nCPUID = yes\nARM_MAX_ARCH=8\nCPPFLAGS += -D__ARM_MAX_ARCH__=${ARM_MAX_ARCH}\nCPPFLAGS += -DOPENSSL_CPUID_OBJ\nCFLAGS+= ${${ACTIVE_CC} == \"clang\" :? -no-integrated-as :}\n.include \"../../crypto.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/crypto.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/crypto.inc", "line_start": 1, "line_end": 8}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/des.inc:1", "text": "#\t$NetBSD: des.inc,v 1.1 2025/07/17 14:25:27 christos Exp $\n\n.PATH.S: ${.PARSEDIR}\nCPPFLAGS+=\t-DDES_INT -DDES_UNROLL\n.include \"${.CURDIR}/des.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/des.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/des.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nECCPPFLAGS+=-DECP_NISTZ256_ASM\nEC_SRCS += ecp_nistz256-armv8.S ecp_sm2p256-armv8.S sm3-armv8.S sm4-armv8.S\nEC_SRCS += vpsm4-armv8.S vpsm4_ex-armv8.S\n\nECNI = yes\n.if ${MACHINE_ARCH} == \"aarch64eb\"\nECCPPFLAGS+=-DOPENSSL_NO_EC_NISTP_64_GCC_128\n.else\nEC_SRCS += ecp_nistp384.c\n.endif\n.include \"../../ec.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "line_start": 1, "line_end": 12}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nECCPPFLAGS+=-DECP_NISTZ256_ASM\nEC_SRCS += ecp_nistz256-armv8.S ecp_sm2p256-armv8.S sm3-armv8.S sm4-armv8.S\nEC_SRCS += vpsm4-armv8.S vpsm4_ex-armv8.S ecp_nistp384.c\n\nECNI = yes\n.if ${MACHINE_ARCH} == \"aarch64eb\"\nECCPPFLAGS+=-DOPENSSL_NO_EC_NISTP_64_GCC_128\n.endif\n.include \"../../ec.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "license": "BSD-2-Clause", "commit": "7f4128b7d46d9f56f2c6235b230d71d379c62991", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/7f4128b7d46d9f56f2c6235b230d71d379c62991/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nECCPPFLAGS+=-DECP_NISTZ256_ASM\nEC_SRCS += ecp_nistz256-armv8.S ecp_sm2p256-armv8.S sm3-armv8.S sm4-armv8.S\nEC_SRCS += vpsm4-armv8.S vpsm4_ex-armv8.S ec_lib.c\n\nECNI = yes\n.if ${MACHINE_ARCH} == \"aarch64eb\"\nECCPPFLAGS+=-DOPENSSL_NO_EC_NISTP_64_GCC_128\n.endif\n.include \"../../ec.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "license": "BSD-2-Clause", "commit": "be60572c0f30f801833318464602ab808bae0cf3", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/be60572c0f30f801833318464602ab808bae0cf3/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nECCPPFLAGS+=-DECP_NISTZ256_ASM\nEC_SRCS += ecp_nistz256-armv8.S ecp_sm2p256-armv8.S sm3-armv8.S sm4-armv8.S\nEC_SRCS += vpsm4-armv8.S vpsm4_ex-armv8.S\n\nECNI = yes\n.if ${MACHINE_ARCH} == \"aarch64eb\"\nECCPPFLAGS+=-DOPENSSL_NO_EC_NISTP_64_GCC_128\n.endif\n.include \"../../ec.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "license": "BSD-2-Clause", "commit": "1963a51e2804df19844fc7ec49ac45f80dc26ef7", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/1963a51e2804df19844fc7ec49ac45f80dc26ef7/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ec.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:1", "text": "#include \"arm_arch.h\"\n.arch\tarmv8-a\n.section\t.rodata\n\n.align\t5\n// The polynomial p\n.Lpoly:\n.quad\t0xffffffffffffffff,0xffffffff00000000,0xffffffffffffffff,0xfffffffeffffffff\n// The order of polynomial n\n.Lord:\n.quad\t0x53bbf40939d54123,0x7203df6b21c6052b,0xffffffffffffffff,0xfffffffeffffffff\n// (p + 1) / 2\n.Lpoly_div_2:\n.quad\t0x8000000000000000,0xffffffff80000000,0xffffffffffffffff,0x7fffffff7fffffff\n// (n + 1) / 2\n.Lord_div_2:\n.quad\t0xa9ddfa049ceaa092,0xb901efb590e30295,0xffffffffffffffff,0x7fffffff7fffffff\n\n.text\n\n// void bn_rshift1(BN_ULONG *a);\n.globl\tbn_rshift1\n.type\tbn_rshift1,%function\n.align\t5\nbn_rshift1:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x0]\n\tldp\tx9,x10,[x0,#16]\n\n\t// Right shift\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\tret\n.size\tbn_rshift1,.-bn_rshift1\n\n// void bn_sub(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);\n.globl\tbn_sub\n.type\tbn_sub,%function\n.align\t5\nbn_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbc\tx10,x10,x14", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:3", "text": "// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lpoly_div_2\n\tadd\tx2,x2,#:lo12:.Lpoly_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1\n\tcsel\tx11,xzr,x11,eq\n\tcsel\tx12,xzr,x12,eq\n\tcsel\tx13,xzr,x13,eq\n\tcsel\tx14,xzr,x14,eq\n\n\t// Add\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadc\tx10,x10,x14\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_div_by_2,.-ecp_sm2p256_div_by_2\n\n// void ecp_sm2p256_div_by_2_mod_ord(BN_ULONG *r,const BN_ULONG *a);\n.globl\tecp_sm2p256_div_by_2_mod_ord\n.type\tecp_sm2p256_div_by_2_mod_ord,%function\n.align\t5\necp_sm2p256_div_by_2_mod_ord:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// Save the least significant bit\n\tmov\tx3,x7\n\n\t// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lord_div_2\n\tadd\tx2,x2,#:lo12:.Lord_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1\n\tcsel\tx11,xzr,x11,eq", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:4", "text": "ldp\tx9,x10,[x1,#16]\n\n\t// Save the least significant bit\n\tmov\tx3,x7\n\n\t// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lord_div_2\n\tadd\tx2,x2,#:lo12:.Lord_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1\n\tcsel\tx11,xzr,x11,eq\n\tcsel\tx12,xzr,x12,eq\n\tcsel\tx13,xzr,x13,eq\n\tcsel\tx14,xzr,x14,eq\n\n\t// Add\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadc\tx10,x10,x14\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_div_by_2_mod_ord,.-ecp_sm2p256_div_by_2_mod_ord\n\n// void ecp_sm2p256_mul_by_3(BN_ULONG *r,const BN_ULONG *a);\n.globl\tecp_sm2p256_mul_by_3\n.type\tecp_sm2p256_mul_by_3,%function\n.align\t5\necp_sm2p256_mul_by_3:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// 2*a\n\tadds\tx7,x7,x7\n\tadcs\tx8,x8,x8\n\tadcs\tx9,x9,x9\n\tadcs\tx10,x10,x10\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:5", "text": "ecp_sm2p256_mul_by_3:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// 2*a\n\tadds\tx7,x7,x7\n\tadcs\tx8,x8,x8\n\tadcs\tx9,x9,x9\n\tadcs\tx10,x10,x10\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbcs\tx15,x15,xzr\n\n\tcsel\tx7,x7,x3,cs\n\tcsel\tx8,x8,x4,cs\n\tcsel\tx9,x9,x5,cs\n\tcsel\tx10,x10,x6,cs\n\teor\tx15,x15,x15\n\n\t// 3*a\n\tldp\tx11,x12,[x1]\n\tldp\tx13,x14,[x1,#16]\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbcs\tx15,x15,xzr", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:6", "text": "adcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbcs\tx15,x15,xzr\n\n\tcsel\tx7,x7,x3,cs\n\tcsel\tx8,x8,x4,cs\n\tcsel\tx9,x9,x5,cs\n\tcsel\tx10,x10,x6,cs\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\tret\n.size\tecp_sm2p256_mul_by_3,.-ecp_sm2p256_mul_by_3\n\n// void ecp_sm2p256_add(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_add\n.type\tecp_sm2p256_add,%function\n.align\t5\necp_sm2p256_add:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Addition\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup Addition\n\tmov\tx3,x7\n\tmov\tx4,x8", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:7", "text": "ldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Addition\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup Addition\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tsubs\tx3,x3,x11\n\tsbcs\tx4,x4,x12\n\tsbcs\tx5,x5,x13\n\tsbcs\tx6,x6,x14\n\tsbcs\tx15,x15,xzr\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,cc\n\tcsel\tx8,x8,x4,cc\n\tcsel\tx9,x9,x5,cc\n\tcsel\tx10,x10,x6,cc\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_add,.-ecp_sm2p256_add\n\n// void ecp_sm2p256_sub(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub\n.type\tecp_sm2p256_sub,%function\n.align\t5\necp_sm2p256_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbc\tx15,xzr,xzr", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:8", "text": ".size\tecp_sm2p256_add,.-ecp_sm2p256_add\n\n// void ecp_sm2p256_sub(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub\n.type\tecp_sm2p256_sub,%function\n.align\t5\necp_sm2p256_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup subtraction\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Add polynomial\n\tadds\tx3,x3,x11\n\tadcs\tx4,x4,x12\n\tadcs\tx5,x5,x13\n\tadcs\tx6,x6,x14\n\ttst\tx15,x15\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_sub,.-ecp_sm2p256_sub\n\n// void ecp_sm2p256_sub_mod_ord(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub_mod_ord\n.type\tecp_sm2p256_sub_mod_ord,%function\n.align\t5\necp_sm2p256_sub_mod_ord:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:9", "text": "// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_sub,.-ecp_sm2p256_sub\n\n// void ecp_sm2p256_sub_mod_ord(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub_mod_ord\n.type\tecp_sm2p256_sub_mod_ord,%function\n.align\t5\necp_sm2p256_sub_mod_ord:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lord\n\tadd\tx2,x2,#:lo12:.Lord\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup subtraction\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Add polynomial\n\tadds\tx3,x3,x11\n\tadcs\tx4,x4,x12\n\tadcs\tx5,x5,x13\n\tadcs\tx6,x6,x14\n\ttst\tx15,x15\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:10", "text": "mov\tx5,x9\n\tmov\tx6,x10\n\n\t// Add polynomial\n\tadds\tx3,x3,x11\n\tadcs\tx4,x4,x12\n\tadcs\tx5,x5,x13\n\tadcs\tx6,x6,x14\n\ttst\tx15,x15\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_sub_mod_ord,.-ecp_sm2p256_sub_mod_ord\n\n.macro\tRDC\n\t// a = |  s7   | ... | s0  |, where si are 64-bit quantities\n\t//   = |a15|a14| ... |a1|a0|, where ai are 32-bit quantities\n\t// |    s7     |    s6     |    s5     |    s4     |\n\t// | a15 | a14 | a13 | a12 | a11 | a10 | a9  | a8  |\n\t// |    s3     |    s2     |    s1     |    s0     |\n\t// | a7  | a6  | a5  | a4  | a3  | a2  | a1  | a0  |\n\t// =================================================\n\t// | a8  | a11 | a10 | a9  | a8  |   0 |    s4     | (+)\n\t// | a9  | a15 |    s6     | a11 |   0 | a10 | a9  | (+)\n\t// | a10 |   0 | a14 | a13 | a12 |   0 |    s5     | (+)\n\t// | a11 |   0 |    s7     | a13 |   0 | a12 | a11 | (+)\n\t// | a12 |   0 |    s7     | a13 |   0 |    s6     | (+)\n\t// | a12 |   0 |   0 | a15 | a14 |   0 | a14 | a13 | (+)\n\t// | a13 |   0 |   0 |   0 | a15 |   0 | a14 | a13 | (+)\n\t// | a13 |   0 |   0 |   0 |   0 |   0 |    s7     | (+)\n\t// | a14 |   0 |   0 |   0 |   0 |   0 |    s7     | (+)\n\t// | a14 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |    s7     |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |   0 |   0 |   0 |   0 |   0 | a8  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a9  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a13 |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a14 |   0 |   0 | (-)\n\t// | U[7]| U[6]| U[5]| U[4]| U[3]| U[2]| U[1]| U[0]|\n\t// |    V[3]   |    V[2]   |    V[1]   |    V[0]   |\n\n\t// 1. 64-bit addition\n\t// t2=s6+s7+s7\n\tadds\tx5,x13,x14\n\tadcs\tx4,xzr,xzr\n\tadds\tx5,x5,x14\n\tadcs\tx4,x4,xzr\n\t// t3=s4+s5+t2\n\tadds\tx6,x11,x5\n\tadcs\tx15,x4,xzr\n\tadds\tx6,x6,x12", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:11", "text": "// | a15 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |    s7     |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |   0 |   0 |   0 |   0 |   0 | a8  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a9  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a13 |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a14 |   0 |   0 | (-)\n\t// | U[7]| U[6]| U[5]| U[4]| U[3]| U[2]| U[1]| U[0]|\n\t// |    V[3]   |    V[2]   |    V[1]   |    V[0]   |\n\n\t// 1. 64-bit addition\n\t// t2=s6+s7+s7\n\tadds\tx5,x13,x14\n\tadcs\tx4,xzr,xzr\n\tadds\tx5,x5,x14\n\tadcs\tx4,x4,xzr\n\t// t3=s4+s5+t2\n\tadds\tx6,x11,x5\n\tadcs\tx15,x4,xzr\n\tadds\tx6,x6,x12\n\tadcs\tx15,x15,xzr\n\t// sum\n\tadds\tx7,x7,x6\n\tadcs\tx8,x8,x15\n\tadcs\tx9,x9,x5\n\tadcs\tx10,x10,x14\n\tadcs\tx3,xzr,xzr\n\tadds\tx10,x10,x4\n\tadcs\tx3,x3,xzr\n\n\tstp\tx7,x8,[sp,#32]\n\tstp\tx9,x10,[sp,#48]\n\n\t// 2. 64-bit to 32-bit spread\n\tmov\tx4,#0xffffffff\n\tmov\tx7,x11\n\tmov\tx8,x12\n\tmov\tx9,x13\n\tmov\tx10,x14\n\tand\tx7,x7,x4 // a8\n\tand\tx8,x8,x4 // a10\n\tand\tx9,x9,x4 // a12\n\tand\tx10,x10,x4 // a14\n\tlsr\tx11,x11,#32 // a9\n\tlsr\tx12,x12,#32 // a11\n\tlsr\tx13,x13,#32 // a13\n\tlsr\tx14,x14,#32 // a15\n\n\t// 3. 32-bit addition\n\tadd\tx4,x10,x9  // t1 <- a12 + a14\n\tadd\tx5,x14,x13  // t2 <- a13 + a15\n\tadd\tx6,x7,x11    // t3 <- a8 + a9\n\tadd\tx15,x10,x8  // t4 <- a10 + a14\n\tadd\tx14,x14,x12 // a15 <- a11 + a15\n\tadd\tx9,x5,x4   // a12 <- a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x6  // a10 <- a8 + a9 + a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x12 // a10 <- a8 + a9 + a10 + a11 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx9,x9,x13 // a12 <- a12 + 2*a13 + a14 + a15", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:12", "text": "and\tx8,x8,x4 // a10\n\tand\tx9,x9,x4 // a12\n\tand\tx10,x10,x4 // a14\n\tlsr\tx11,x11,#32 // a9\n\tlsr\tx12,x12,#32 // a11\n\tlsr\tx13,x13,#32 // a13\n\tlsr\tx14,x14,#32 // a15\n\n\t// 3. 32-bit addition\n\tadd\tx4,x10,x9  // t1 <- a12 + a14\n\tadd\tx5,x14,x13  // t2 <- a13 + a15\n\tadd\tx6,x7,x11    // t3 <- a8 + a9\n\tadd\tx15,x10,x8  // t4 <- a10 + a14\n\tadd\tx14,x14,x12 // a15 <- a11 + a15\n\tadd\tx9,x5,x4   // a12 <- a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x6  // a10 <- a8 + a9 + a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x12 // a10 <- a8 + a9 + a10 + a11 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx9,x9,x13 // a12 <- a12 + 2*a13 + a14 + a15\n\tadd\tx9,x9,x12 // a12 <- a11 + a12 + 2*a13 + a14 + a15\n\tadd\tx9,x9,x7  // a12 <- a8 + a11 + a12 + 2*a13 + a14 + a15\n\tadd\tx6,x6,x10   // t3 <- a8 + a9 + a14\n\tadd\tx6,x6,x13   // t3 <- a8 + a9 + a13 + a14\n\tadd\tx11,x11,x5    // a9 <- a9 + a13 + a15\n\tadd\tx12,x12,x11  // a11 <- a9 + a11 + a13 + a15\n\tadd\tx12,x12,x5  // a11 <- a9 + a11 + 2*(a13 + a15)\n\tadd\tx4,x4,x15    // t1 <- a10 + a12 + 2*a14\n\n\t// U[0]  s5\ta9 + a11 + 2*(a13 + a15)\n\t// U[1]  t1\ta10 + a12 + 2*a14\n\t// U[2] -t3\ta8 + a9 + a13 + a14\n\t// U[3]  s2\ta8 + a11 + a12 + 2*a13 + a14 + a15\n\t// U[4]  s4\ta9 + a13 + a15\n\t// U[5]  t4\ta10 + a14\n\t// U[6]  s7\ta11 + a15\n\t// U[7]  s1\ta8 + a9 + a10 + a11 + 2*(a12 + a13 + a14 + a15)\n\n\t// 4. 32-bit to 64-bit\n\tlsl\tx7,x4,#32\n\textr\tx4,x9,x4,#32\n\textr\tx9,x15,x9,#32\n\textr\tx15,x8,x15,#32\n\tlsr\tx8,x8,#32\n\n\t// 5. 64-bit addition\n\tadds\tx12,x12,x7\n\tadcs\tx4,x4,xzr\n\tadcs\tx11,x11,x9\n\tadcs\tx14,x14,x15\n\tadcs\tx3,x3,x8\n\n\t// V[0]\ts5\n\t// V[1]\tt1\n\t// V[2]\ts4\n\t// V[3]\ts7\n\t// carry\tt0\n\t// sub\tt3\n\n\t// 5. Process s0-s3", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:13", "text": "extr\tx4,x9,x4,#32\n\textr\tx9,x15,x9,#32\n\textr\tx15,x8,x15,#32\n\tlsr\tx8,x8,#32\n\n\t// 5. 64-bit addition\n\tadds\tx12,x12,x7\n\tadcs\tx4,x4,xzr\n\tadcs\tx11,x11,x9\n\tadcs\tx14,x14,x15\n\tadcs\tx3,x3,x8\n\n\t// V[0]\ts5\n\t// V[1]\tt1\n\t// V[2]\ts4\n\t// V[3]\ts7\n\t// carry\tt0\n\t// sub\tt3\n\n\t// 5. Process s0-s3\n\tldp\tx7,x8,[sp,#32]\n\tldp\tx9,x10,[sp,#48]\n\t// add with V0-V3\n\tadds\tx7,x7,x12\n\tadcs\tx8,x8,x4\n\tadcs\tx9,x9,x11\n\tadcs\tx10,x10,x14\n\tadcs\tx3,x3,xzr\n\t// sub with t3\n\tsubs\tx8,x8,x6\n\tsbcs\tx9,x9,xzr\n\tsbcs\tx10,x10,xzr\n\tsbcs\tx3,x3,xzr\n\n\t// 6. MOD\n\t// First Mod\n\tlsl\tx4,x3,#32\n\tsubs\tx5,x4,x3\n\n\tadds\tx7,x7,x3\n\tadcs\tx8,x8,x5\n\tadcs\tx9,x9,xzr\n\tadcs\tx10,x10,x4\n\n\t// Last Mod\n\t// return y - p if y > p else y\n\tmov\tx11,x7\n\tmov\tx12,x8\n\tmov\tx13,x9\n\tmov\tx14,x10\n\n\tadrp\tx3,.Lpoly\n\tadd\tx3,x3,#:lo12:.Lpoly\n\tldp\tx4,x5,[x3]\n\tldp\tx6,x15,[x3,#16]\n\n\tadcs\tx16,xzr,xzr\n\n\tsubs\tx7,x7,x4\n\tsbcs\tx8,x8,x5", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:14", "text": "adcs\tx8,x8,x5\n\tadcs\tx9,x9,xzr\n\tadcs\tx10,x10,x4\n\n\t// Last Mod\n\t// return y - p if y > p else y\n\tmov\tx11,x7\n\tmov\tx12,x8\n\tmov\tx13,x9\n\tmov\tx14,x10\n\n\tadrp\tx3,.Lpoly\n\tadd\tx3,x3,#:lo12:.Lpoly\n\tldp\tx4,x5,[x3]\n\tldp\tx6,x15,[x3,#16]\n\n\tadcs\tx16,xzr,xzr\n\n\tsubs\tx7,x7,x4\n\tsbcs\tx8,x8,x5\n\tsbcs\tx9,x9,x6\n\tsbcs\tx10,x10,x15\n\tsbcs\tx16,x16,xzr\n\n\tcsel\tx7,x7,x11,cs\n\tcsel\tx8,x8,x12,cs\n\tcsel\tx9,x9,x13,cs\n\tcsel\tx10,x10,x14,cs\n\n.endm\n\n// void ecp_sm2p256_mul(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);\n.globl\tecp_sm2p256_mul\n.type\tecp_sm2p256_mul,%function\n.align\t5\necp_sm2p256_mul:\n\tAARCH64_SIGN_LINK_REGISTER\n\t// Store scalar registers\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n// ### multiplication ###\n\t// ========================\n\t//             s3 s2 s1 s0\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s0 s0 s0 s0\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s1 s1 s1 s1\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:15", "text": "stp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n// ### multiplication ###\n\t// ========================\n\t//             s3 s2 s1 s0\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s0 s0 s0 s0\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s1 s1 s1 s1\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4\n\t//       s2 s2 s2 s2\n\t//        *  *  *  *\n\t//       s7 s6 s5 s4\n\t//    s3 s3 s3 s3\n\t//     *  *  *  *\n\t//    s7 s6 s5 s4\n\t// ------------------------\n\t// s7 s6 s5 s4 s3 s2 s1 s0\n\t// ========================\n\n// ### s0*s4 ###\n\tmul\tx16,x7,x11\n\tumulh\tx5,x7,x11\n\n// ### s1*s4 + s0*s5 ###\n\tmul\tx3,x8,x11\n\tumulh\tx4,x8,x11\n\tadds\tx5,x5,x3\n\tadcs\tx6,x4,xzr\n\n\tmul\tx3,x7,x12\n\tumulh\tx4,x7,x12\n\tadds\tx5,x5,x3\n\tadcs\tx6,x6,x4\n\tadcs\tx15,xzr,xzr\n\n// ### s2*s4 + s1*s5 + s0*s6 ###\n\tmul\tx3,x9,x11\n\tumulh\tx4,x9,x11\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\n\tmul\tx3,x8,x12\n\tumulh\tx4,x8,x12\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\tadcs\tx17,xzr,xzr\n\n\tmul\tx3,x7,x13\n\tumulh\tx4,x7,x13", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:16", "text": "mul\tx3,x7,x12\n\tumulh\tx4,x7,x12\n\tadds\tx5,x5,x3\n\tadcs\tx6,x6,x4\n\tadcs\tx15,xzr,xzr\n\n// ### s2*s4 + s1*s5 + s0*s6 ###\n\tmul\tx3,x9,x11\n\tumulh\tx4,x9,x11\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\n\tmul\tx3,x8,x12\n\tumulh\tx4,x8,x12\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\tadcs\tx17,xzr,xzr\n\n\tmul\tx3,x7,x13\n\tumulh\tx4,x7,x13\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\tadcs\tx17,x17,xzr\n\n// ### s3*s4 + s2*s5 + s1*s6 + s0*s7 ###\n\tmul\tx3,x10,x11\n\tumulh\tx4,x10,x11\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,xzr,xzr\n\n\tmul\tx3,x9,x12\n\tumulh\tx4,x9,x12\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n\tmul\tx3,x8,x13\n\tumulh\tx4,x8,x13\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n\tmul\tx3,x7,x14\n\tumulh\tx4,x7,x14\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n// ### s3*s5 + s2*s6 + s1*s7 ###\n\tmul\tx3,x10,x12\n\tumulh\tx4,x10,x12\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,xzr,xzr\n\n\tmul\tx3,x9,x13\n\tumulh\tx4,x9,x13\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:17", "text": "adcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n\tmul\tx3,x7,x14\n\tumulh\tx4,x7,x14\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n// ### s3*s5 + s2*s6 + s1*s7 ###\n\tmul\tx3,x10,x12\n\tumulh\tx4,x10,x12\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,xzr,xzr\n\n\tmul\tx3,x9,x13\n\tumulh\tx4,x9,x13\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,x20,xzr\n\n\tmul\tx3,x8,x14\n\tumulh\tx4,x8,x14\n\tadds\tx11,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,x20,xzr\n\n// ### s3*s6 + s2*s7 ###\n\tmul\tx3,x10,x13\n\tumulh\tx4,x10,x13\n\tadds\tx19,x19,x3\n\tadcs\tx20,x20,x4\n\tadcs\tx17,xzr,xzr\n\n\tmul\tx3,x9,x14\n\tumulh\tx4,x9,x14\n\tadds\tx12,x19,x3\n\tadcs\tx20,x20,x4\n\tadcs\tx17,x17,xzr\n\n// ### s3*s7 ###\n\tmul\tx3,x10,x14\n\tumulh\tx4,x10,x14\n\tadds\tx13,x20,x3\n\tadcs\tx14,x17,x4\n\n\tmov\tx7,x16\n\tmov\tx8,x5\n\tmov\tx9,x6\n\tmov\tx10,x15\n\n\t// result of mul: s7 s6 s5 s4 s3 s2 s1 s0\n\n// ### Reduction ###\n\tRDC\n\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:18", "text": "// ### s3*s7 ###\n\tmul\tx3,x10,x14\n\tumulh\tx4,x10,x14\n\tadds\tx13,x20,x3\n\tadcs\tx14,x17,x4\n\n\tmov\tx7,x16\n\tmov\tx8,x5\n\tmov\tx9,x6\n\tmov\tx10,x15\n\n\t// result of mul: s7 s6 s5 s4 s3 s2 s1 s0\n\n// ### Reduction ###\n\tRDC\n\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\t// Restore scalar registers\n\tldp\tx16,x17,[sp,#16]\n\tldp\tx19,x20,[sp,#64]\n\tldp\tx29,x30,[sp],#80\n\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tecp_sm2p256_mul,.-ecp_sm2p256_mul\n\n// void ecp_sm2p256_sqr(BN_ULONG *r, const BN_ULONG *a);\n.globl\tecp_sm2p256_sqr\n.type\tecp_sm2p256_sqr,%function\n.align\t5\n\necp_sm2p256_sqr:\n\tAARCH64_SIGN_LINK_REGISTER\n\t// Store scalar registers\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx11,x12,[x1]\n\tldp\tx13,x14,[x1,#16]\n\n// ### square ###\n\t// ========================\n\t//             s7 s6 s5 s4\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s4 s4 s4 s4\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s5 s5 s5 s5\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4\n\t//       s6 s6 s6 s6\n\t//        *  *  *  *\n\t//       s7 s6 s5 s4", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:19", "text": "stp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx11,x12,[x1]\n\tldp\tx13,x14,[x1,#16]\n\n// ### square ###\n\t// ========================\n\t//             s7 s6 s5 s4\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s4 s4 s4 s4\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s5 s5 s5 s5\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4\n\t//       s6 s6 s6 s6\n\t//        *  *  *  *\n\t//       s7 s6 s5 s4\n\t//    s7 s7 s7 s7\n\t//     *  *  *  *\n\t//    s7 s6 s5 s4\n\t// ------------------------\n\t// s7 s6 s5 s4 s3 s2 s1 s0\n\t// ========================\n\n// ### s4*s5 ###\n\tmul\tx8,x11,x12\n\tumulh\tx9,x11,x12\n\n// ### s4*s6 ###\n\tmul\tx3,x13,x11\n\tumulh\tx10,x13,x11\n\tadds\tx9,x9,x3\n\tadcs\tx10,x10,xzr\n\n// ### s4*s7 + s5*s6 ###\n\tmul\tx3,x14,x11\n\tumulh\tx4,x14,x11\n\tadds\tx10,x10,x3\n\tadcs\tx7,x4,xzr\n\n\tmul\tx3,x13,x12\n\tumulh\tx4,x13,x12\n\tadds\tx10,x10,x3\n\tadcs\tx7,x7,x4\n\tadcs\tx5,xzr,xzr\n\n// ### s5*s7 ###\n\tmul\tx3,x14,x12\n\tumulh\tx4,x14,x12\n\tadds\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\n// ### s6*s7 ###\n\tmul\tx3,x14,x13\n\tumulh\tx4,x14,x13\n\tadds\tx5,x5,x3\n\tadcs\tx6,x4,xzr", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:20", "text": "adds\tx10,x10,x3\n\tadcs\tx7,x4,xzr\n\n\tmul\tx3,x13,x12\n\tumulh\tx4,x13,x12\n\tadds\tx10,x10,x3\n\tadcs\tx7,x7,x4\n\tadcs\tx5,xzr,xzr\n\n// ### s5*s7 ###\n\tmul\tx3,x14,x12\n\tumulh\tx4,x14,x12\n\tadds\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\n// ### s6*s7 ###\n\tmul\tx3,x14,x13\n\tumulh\tx4,x14,x13\n\tadds\tx5,x5,x3\n\tadcs\tx6,x4,xzr\n\n// ### 2*(t3,t2,s0,s3,s2,s1) ###\n\tadds\tx8,x8,x8\n\tadcs\tx9,x9,x9\n\tadcs\tx10,x10,x10\n\tadcs\tx7,x7,x7\n\tadcs\tx5,x5,x5\n\tadcs\tx6,x6,x6\n\tadcs\tx15,xzr,xzr\n\n// ### s4*s4 ###\n\tmul\tx16,x11,x11\n\tumulh\tx17,x11,x11\n\n// ### s5*s5 ###\n\tmul\tx11,x12,x12\n\tumulh\tx12,x12,x12\n\n// ### s6*s6 ###\n\tmul\tx3,x13,x13\n\tumulh\tx4,x13,x13\n\n// ### s7*s7 ###\n\tmul\tx19,x14,x14\n\tumulh\tx20,x14,x14\n\n\tadds\tx8,x8,x17\n\tadcs\tx9,x9,x11\n\tadcs\tx10,x10,x12\n\tadcs\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\tadcs\tx6,x6,x19\n\tadcs\tx15,x15,x20\n\n\tmov\tx11,x7\n\tmov\tx7,x16\n\tmov\tx12,x5\n\tmov\tx13,x6\n\tmov\tx14,x15", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S:21", "text": "umulh\tx4,x13,x13\n\n// ### s7*s7 ###\n\tmul\tx19,x14,x14\n\tumulh\tx20,x14,x14\n\n\tadds\tx8,x8,x17\n\tadcs\tx9,x9,x11\n\tadcs\tx10,x10,x12\n\tadcs\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\tadcs\tx6,x6,x19\n\tadcs\tx15,x15,x20\n\n\tmov\tx11,x7\n\tmov\tx7,x16\n\tmov\tx12,x5\n\tmov\tx13,x6\n\tmov\tx14,x15\n\n\t// result of mul: s7 s6 s5 s4 s3 s2 s1 s0\n\n// ### Reduction ###\n\tRDC\n\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\t// Restore scalar registers\n\tldp\tx16,x17,[sp,#16]\n\tldp\tx19,x20,[sp,#64]\n\tldp\tx29,x30,[sp],#80\n\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tecp_sm2p256_sqr,.-ecp_sm2p256_sqr", "arch": "arm64", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ecp_sm2p256-armv8.S", "line_start": 801, "line_end": 836}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:1", "text": "#include \"arm_arch.h\"\n\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv8-a+crypto\n.text\n.globl\tgcm_init_v8\n.type\tgcm_init_v8,%function\n.align\t4\ngcm_init_v8:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v17.2d},[x1]\t\t//load input H\n\tmovi\tv19.16b,#0xe1\n\tshl\tv19.2d,v19.2d,#57\t\t//0xc2.0\n\text\tv3.16b,v17.16b,v17.16b,#8\n\tushr\tv18.2d,v19.2d,#63\n\tdup\tv17.4s,v17.s[1]\n\text\tv16.16b,v18.16b,v19.16b,#8\t\t//t0=0xc2....01\n\tushr\tv18.2d,v3.2d,#63\n\tsshr\tv17.4s,v17.4s,#31\t\t//broadcast carry bit\n\tand\tv18.16b,v18.16b,v16.16b\n\tshl\tv3.2d,v3.2d,#1\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tand\tv16.16b,v16.16b,v17.16b\n\torr\tv3.16b,v3.16b,v18.16b\t\t//H<<<=1\n\teor\tv20.16b,v3.16b,v16.16b\t\t//twisted H\n\tst1\t{v20.2d},[x0],#16\t\t//store Htable[0]\n\n\t//calculate H^2\n\text\tv16.16b,v20.16b,v20.16b,#8\t\t//Karatsuba pre-processing\n\tpmull\tv0.1q,v20.1d,v20.1d\n\teor\tv16.16b,v16.16b,v20.16b\n\tpmull2\tv2.1q,v20.2d,v20.2d\n\tpmull\tv1.1q,v16.1d,v16.1d\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv22.16b,v0.16b,v18.16b\n\n\text\tv17.16b,v22.16b,v22.16b,#8\t\t//Karatsuba pre-processing\n\teor\tv17.16b,v17.16b,v22.16b\n\text\tv21.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v21.2d,v22.2d},[x0],#32\t//store Htable[1..2]\n\t//calculate H^3 and H^4\n\tpmull\tv0.1q,v20.1d, v22.1d\n\tpmull\tv5.1q,v22.1d,v22.1d\n\tpmull2\tv2.1q,v20.2d, v22.2d\n\tpmull2\tv7.1q,v22.2d,v22.2d\n\tpmull\tv1.1q,v16.1d,v17.1d\n\tpmull\tv6.1q,v17.1d,v17.1d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:2", "text": "ins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv22.16b,v0.16b,v18.16b\n\n\text\tv17.16b,v22.16b,v22.16b,#8\t\t//Karatsuba pre-processing\n\teor\tv17.16b,v17.16b,v22.16b\n\text\tv21.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v21.2d,v22.2d},[x0],#32\t//store Htable[1..2]\n\t//calculate H^3 and H^4\n\tpmull\tv0.1q,v20.1d, v22.1d\n\tpmull\tv5.1q,v22.1d,v22.1d\n\tpmull2\tv2.1q,v20.2d, v22.2d\n\tpmull2\tv7.1q,v22.2d,v22.2d\n\tpmull\tv1.1q,v16.1d,v17.1d\n\tpmull\tv6.1q,v17.1d,v17.1d\n\n\text\tv16.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\text\tv17.16b,v5.16b,v7.16b,#8\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v16.16b\n\teor\tv4.16b,v5.16b,v7.16b\n\teor\tv6.16b,v6.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase\n\teor\tv6.16b,v6.16b,v4.16b\n\tpmull\tv4.1q,v5.1d,v19.1d\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv7.d[0],v6.d[1]\n\tins\tv1.d[1],v0.d[0]\n\tins\tv6.d[1],v5.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\teor\tv5.16b,v6.16b,v4.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\text\tv4.16b,v5.16b,v5.16b,#8\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv5.1q,v5.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv4.16b,v4.16b,v7.16b\n\teor\tv23.16b, v0.16b,v18.16b\t\t//H^3\n\teor\tv25.16b,v5.16b,v4.16b\t\t//H^4\n\n\text\tv16.16b,v23.16b, v23.16b,#8\t\t//Karatsuba pre-processing\n\text\tv17.16b,v25.16b,v25.16b,#8\n\text\tv18.16b,v22.16b,v22.16b,#8\n\teor\tv16.16b,v16.16b,v23.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v22.16b\n\text\tv24.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v23.2d,v24.2d,v25.2d},[x0],#48\t\t//store Htable[3..5]\n\n\t//calculate H^5 and H^6\n\tpmull\tv0.1q,v22.1d, v23.1d\n\tpmull\tv5.1q,v23.1d,v23.1d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:3", "text": "ext\tv4.16b,v5.16b,v5.16b,#8\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv5.1q,v5.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv4.16b,v4.16b,v7.16b\n\teor\tv23.16b, v0.16b,v18.16b\t\t//H^3\n\teor\tv25.16b,v5.16b,v4.16b\t\t//H^4\n\n\text\tv16.16b,v23.16b, v23.16b,#8\t\t//Karatsuba pre-processing\n\text\tv17.16b,v25.16b,v25.16b,#8\n\text\tv18.16b,v22.16b,v22.16b,#8\n\teor\tv16.16b,v16.16b,v23.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v22.16b\n\text\tv24.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v23.2d,v24.2d,v25.2d},[x0],#48\t\t//store Htable[3..5]\n\n\t//calculate H^5 and H^6\n\tpmull\tv0.1q,v22.1d, v23.1d\n\tpmull\tv5.1q,v23.1d,v23.1d\n\tpmull2\tv2.1q,v22.2d, v23.2d\n\tpmull2\tv7.1q,v23.2d,v23.2d\n\tpmull\tv1.1q,v16.1d,v18.1d\n\tpmull\tv6.1q,v16.1d,v16.1d\n\n\text\tv16.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\text\tv17.16b,v5.16b,v7.16b,#8\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v16.16b\n\teor\tv4.16b,v5.16b,v7.16b\n\teor\tv6.16b,v6.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase\n\teor\tv6.16b,v6.16b,v4.16b\n\tpmull\tv4.1q,v5.1d,v19.1d\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv7.d[0],v6.d[1]\n\tins\tv1.d[1],v0.d[0]\n\tins\tv6.d[1],v5.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\teor\tv5.16b,v6.16b,v4.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\text\tv4.16b,v5.16b,v5.16b,#8\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv5.1q,v5.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv4.16b,v4.16b,v7.16b\n\teor\tv26.16b,v0.16b,v18.16b\t\t//H^5\n\teor\tv28.16b,v5.16b,v4.16b\t\t//H^6\n\n\text\tv16.16b,v26.16b, v26.16b,#8\t\t//Karatsuba pre-processing\n\text\tv17.16b,v28.16b,v28.16b,#8\n\text\tv18.16b,v22.16b,v22.16b,#8\n\teor\tv16.16b,v16.16b,v26.16b\n\teor\tv17.16b,v17.16b,v28.16b\n\teor\tv18.16b,v18.16b,v22.16b\n\text\tv27.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v26.2d,v27.2d,v28.2d},[x0],#48\t\t//store Htable[6..8]", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:4", "text": "eor\tv0.16b,v1.16b,v18.16b\n\teor\tv5.16b,v6.16b,v4.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\text\tv4.16b,v5.16b,v5.16b,#8\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv5.1q,v5.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv4.16b,v4.16b,v7.16b\n\teor\tv26.16b,v0.16b,v18.16b\t\t//H^5\n\teor\tv28.16b,v5.16b,v4.16b\t\t//H^6\n\n\text\tv16.16b,v26.16b, v26.16b,#8\t\t//Karatsuba pre-processing\n\text\tv17.16b,v28.16b,v28.16b,#8\n\text\tv18.16b,v22.16b,v22.16b,#8\n\teor\tv16.16b,v16.16b,v26.16b\n\teor\tv17.16b,v17.16b,v28.16b\n\teor\tv18.16b,v18.16b,v22.16b\n\text\tv27.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v26.2d,v27.2d,v28.2d},[x0],#48\t\t//store Htable[6..8]\n\n\t//calculate H^7 and H^8\n\tpmull\tv0.1q,v22.1d,v26.1d\n\tpmull\tv5.1q,v22.1d,v28.1d\n\tpmull2\tv2.1q,v22.2d,v26.2d\n\tpmull2\tv7.1q,v22.2d,v28.2d\n\tpmull\tv1.1q,v16.1d,v18.1d\n\tpmull\tv6.1q,v17.1d,v18.1d\n\n\text\tv16.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\text\tv17.16b,v5.16b,v7.16b,#8\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v16.16b\n\teor\tv4.16b,v5.16b,v7.16b\n\teor\tv6.16b,v6.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase\n\teor\tv6.16b,v6.16b,v4.16b\n\tpmull\tv4.1q,v5.1d,v19.1d\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv7.d[0],v6.d[1]\n\tins\tv1.d[1],v0.d[0]\n\tins\tv6.d[1],v5.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\teor\tv5.16b,v6.16b,v4.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\text\tv4.16b,v5.16b,v5.16b,#8\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv5.1q,v5.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv4.16b,v4.16b,v7.16b\n\teor\tv29.16b,v0.16b,v18.16b\t\t//H^7\n\teor\tv31.16b,v5.16b,v4.16b\t\t//H^8\n\n\text\tv16.16b,v29.16b,v29.16b,#8\t\t//Karatsuba pre-processing\n\text\tv17.16b,v31.16b,v31.16b,#8\n\teor\tv16.16b,v16.16b,v29.16b\n\teor\tv17.16b,v17.16b,v31.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:5", "text": "ins\tv2.d[0],v1.d[1]\n\tins\tv7.d[0],v6.d[1]\n\tins\tv1.d[1],v0.d[0]\n\tins\tv6.d[1],v5.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\teor\tv5.16b,v6.16b,v4.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase\n\text\tv4.16b,v5.16b,v5.16b,#8\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv5.1q,v5.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv4.16b,v4.16b,v7.16b\n\teor\tv29.16b,v0.16b,v18.16b\t\t//H^7\n\teor\tv31.16b,v5.16b,v4.16b\t\t//H^8\n\n\text\tv16.16b,v29.16b,v29.16b,#8\t\t//Karatsuba pre-processing\n\text\tv17.16b,v31.16b,v31.16b,#8\n\teor\tv16.16b,v16.16b,v29.16b\n\teor\tv17.16b,v17.16b,v31.16b\n\text\tv30.16b,v16.16b,v17.16b,#8\t\t//pack Karatsuba pre-processed\n\tst1\t{v29.2d,v30.2d,v31.2d},[x0]\t\t//store Htable[9..11]\n\tret\n.size\tgcm_init_v8,.-gcm_init_v8\n.globl\tgcm_gmult_v8\n.type\tgcm_gmult_v8,%function\n.align\t4\ngcm_gmult_v8:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v17.2d},[x0]\t\t//load Xi\n\tmovi\tv19.16b,#0xe1\n\tld1\t{v20.2d,v21.2d},[x1]\t//load twisted H, ...\n\tshl\tv19.2d,v19.2d,#57\n#ifndef __AARCH64EB__\n\trev64\tv17.16b,v17.16b\n#endif\n\text\tv3.16b,v17.16b,v17.16b,#8\n\n\tpmull\tv0.1q,v20.1d,v3.1d\t\t//H.lo·Xi.lo\n\teor\tv17.16b,v17.16b,v3.16b\t\t//Karatsuba pre-processing\n\tpmull2\tv2.1q,v20.2d,v3.2d\t\t//H.hi·Xi.hi\n\tpmull\tv1.1q,v21.1d,v17.1d\t\t//(H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\n#ifndef __AARCH64EB__\n\trev64\tv0.16b,v0.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:6", "text": "pmull2\tv2.1q,v20.2d,v3.2d\t\t//H.hi·Xi.hi\n\tpmull\tv1.1q,v21.1d,v17.1d\t\t//(H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\n#ifndef __AARCH64EB__\n\trev64\tv0.16b,v0.16b\n#endif\n\text\tv0.16b,v0.16b,v0.16b,#8\n\tst1\t{v0.2d},[x0]\t\t//write out Xi\n\n\tret\n.size\tgcm_gmult_v8,.-gcm_gmult_v8\n.globl\tgcm_ghash_v8\n.type\tgcm_ghash_v8,%function\n.align\t4\ngcm_ghash_v8:\n\tAARCH64_VALID_CALL_TARGET\n\tcmp\tx3,#64\n\tb.hs\t.Lgcm_ghash_v8_4x\n\tld1\t{v0.2d},[x0]\t\t//load [rotated] Xi\n\t\t\t\t\t\t//\"[rotated]\" means that\n\t\t\t\t\t\t//loaded value would have\n\t\t\t\t\t\t//to be rotated in order to\n\t\t\t\t\t\t//make it appear as in\n\t\t\t\t\t\t//algorithm specification\n\tsubs\tx3,x3,#32\t\t//see if x3 is 32 or larger\n\tmov\tx12,#16\t\t//x12 is used as post-\n\t\t\t\t\t\t//increment for input pointer;\n\t\t\t\t\t\t//as loop is modulo-scheduled\n\t\t\t\t\t\t//x12 is zeroed just in time\n\t\t\t\t\t\t//to preclude overstepping\n\t\t\t\t\t\t//inp[len], which means that\n\t\t\t\t\t\t//last block[s] are actually\n\t\t\t\t\t\t//loaded twice, but last\n\t\t\t\t\t\t//copy is not processed\n\tld1\t{v20.2d,v21.2d},[x1],#32\t//load twisted H, ..., H^2\n\tmovi\tv19.16b,#0xe1\n\tld1\t{v22.2d},[x1]\n\tcsel\tx12,xzr,x12,eq\t\t\t//is it time to zero x12?\n\text\tv0.16b,v0.16b,v0.16b,#8\t\t//rotate Xi\n\tld1\t{v16.2d},[x2],#16\t//load [rotated] I[0]\n\tshl\tv19.2d,v19.2d,#57\t\t//compose 0xc2.0 constant\n#ifndef __AARCH64EB__\n\trev64\tv16.16b,v16.16b\n\trev64\tv0.16b,v0.16b\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:7", "text": "mov\tx12,#16\t\t//x12 is used as post-\n\t\t\t\t\t\t//increment for input pointer;\n\t\t\t\t\t\t//as loop is modulo-scheduled\n\t\t\t\t\t\t//x12 is zeroed just in time\n\t\t\t\t\t\t//to preclude overstepping\n\t\t\t\t\t\t//inp[len], which means that\n\t\t\t\t\t\t//last block[s] are actually\n\t\t\t\t\t\t//loaded twice, but last\n\t\t\t\t\t\t//copy is not processed\n\tld1\t{v20.2d,v21.2d},[x1],#32\t//load twisted H, ..., H^2\n\tmovi\tv19.16b,#0xe1\n\tld1\t{v22.2d},[x1]\n\tcsel\tx12,xzr,x12,eq\t\t\t//is it time to zero x12?\n\text\tv0.16b,v0.16b,v0.16b,#8\t\t//rotate Xi\n\tld1\t{v16.2d},[x2],#16\t//load [rotated] I[0]\n\tshl\tv19.2d,v19.2d,#57\t\t//compose 0xc2.0 constant\n#ifndef __AARCH64EB__\n\trev64\tv16.16b,v16.16b\n\trev64\tv0.16b,v0.16b\n#endif\n\text\tv3.16b,v16.16b,v16.16b,#8\t\t//rotate I[0]\n\tb.lo\t.Lodd_tail_v8\t\t//x3 was less than 32\n\tld1\t{v17.2d},[x2],x12\t//load [rotated] I[1]\n#ifndef __AARCH64EB__\n\trev64\tv17.16b,v17.16b\n#endif\n\text\tv7.16b,v17.16b,v17.16b,#8\n\teor\tv3.16b,v3.16b,v0.16b\t\t//I[i]^=Xi\n\tpmull\tv4.1q,v20.1d,v7.1d\t\t//H·Ii+1\n\teor\tv17.16b,v17.16b,v7.16b\t\t//Karatsuba pre-processing\n\tpmull2\tv6.1q,v20.2d,v7.2d\n\tb\t.Loop_mod2x_v8\n\n.align\t4\n.Loop_mod2x_v8:\n\text\tv18.16b,v3.16b,v3.16b,#8\n\tsubs\tx3,x3,#32\t\t//is there more data?\n\tpmull\tv0.1q,v22.1d,v3.1d\t\t//H^2.lo·Xi.lo\n\tcsel\tx12,xzr,x12,lo\t\t\t//is it time to zero x12?\n\n\tpmull\tv5.1q,v21.1d,v17.1d\n\teor\tv18.16b,v18.16b,v3.16b\t\t//Karatsuba pre-processing\n\tpmull2\tv2.1q,v22.2d,v3.2d\t\t//H^2.hi·Xi.hi\n\teor\tv0.16b,v0.16b,v4.16b\t\t//accumulate\n\tpmull2\tv1.1q,v21.2d,v18.2d\t\t//(H^2.lo+H^2.hi)·(Xi.lo+Xi.hi)\n\tld1\t{v16.2d},[x2],x12\t//load [rotated] I[i+2]\n\n\teor\tv2.16b,v2.16b,v6.16b\n\tcsel\tx12,xzr,x12,eq\t\t\t//is it time to zero x12?\n\teor\tv1.16b,v1.16b,v5.16b\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tld1\t{v17.2d},[x2],x12\t//load [rotated] I[i+3]\n#ifndef __AARCH64EB__\n\trev64\tv16.16b,v16.16b\n#endif\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:8", "text": "pmull\tv5.1q,v21.1d,v17.1d\n\teor\tv18.16b,v18.16b,v3.16b\t\t//Karatsuba pre-processing\n\tpmull2\tv2.1q,v22.2d,v3.2d\t\t//H^2.hi·Xi.hi\n\teor\tv0.16b,v0.16b,v4.16b\t\t//accumulate\n\tpmull2\tv1.1q,v21.2d,v18.2d\t\t//(H^2.lo+H^2.hi)·(Xi.lo+Xi.hi)\n\tld1\t{v16.2d},[x2],x12\t//load [rotated] I[i+2]\n\n\teor\tv2.16b,v2.16b,v6.16b\n\tcsel\tx12,xzr,x12,eq\t\t\t//is it time to zero x12?\n\teor\tv1.16b,v1.16b,v5.16b\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tld1\t{v17.2d},[x2],x12\t//load [rotated] I[i+3]\n#ifndef __AARCH64EB__\n\trev64\tv16.16b,v16.16b\n#endif\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\n#ifndef __AARCH64EB__\n\trev64\tv17.16b,v17.16b\n#endif\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\text\tv7.16b,v17.16b,v17.16b,#8\n\text\tv3.16b,v16.16b,v16.16b,#8\n\teor\tv0.16b,v1.16b,v18.16b\n\tpmull\tv4.1q,v20.1d,v7.1d\t\t//H·Ii+1\n\teor\tv3.16b,v3.16b,v2.16b\t\t//accumulate v3.16b early\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv3.16b,v3.16b,v18.16b\n\teor\tv17.16b,v17.16b,v7.16b\t\t//Karatsuba pre-processing\n\teor\tv3.16b,v3.16b,v0.16b\n\tpmull2\tv6.1q,v20.2d,v7.2d\n\tb.hs\t.Loop_mod2x_v8\t\t//there was at least 32 more bytes\n\n\teor\tv2.16b,v2.16b,v18.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\t\t//re-construct v3.16b\n\tadds\tx3,x3,#32\t\t//re-construct x3\n\teor\tv0.16b,v0.16b,v2.16b\t\t//re-construct v0.16b\n\tb.eq\t.Ldone_v8\t\t//is x3 zero?\n.Lodd_tail_v8:\n\text\tv18.16b,v0.16b,v0.16b,#8\n\teor\tv3.16b,v3.16b,v0.16b\t\t//inp^=Xi\n\teor\tv17.16b,v16.16b,v18.16b\t\t//v17.16b is rotated inp^Xi\n\n\tpmull\tv0.1q,v20.1d,v3.1d\t\t//H.lo·Xi.lo\n\teor\tv17.16b,v17.16b,v3.16b\t\t//Karatsuba pre-processing\n\tpmull2\tv2.1q,v20.2d,v3.2d\t\t//H.hi·Xi.hi\n\tpmull\tv1.1q,v21.1d,v17.1d\t\t//(H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:9", "text": "eor\tv2.16b,v2.16b,v18.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\t\t//re-construct v3.16b\n\tadds\tx3,x3,#32\t\t//re-construct x3\n\teor\tv0.16b,v0.16b,v2.16b\t\t//re-construct v0.16b\n\tb.eq\t.Ldone_v8\t\t//is x3 zero?\n.Lodd_tail_v8:\n\text\tv18.16b,v0.16b,v0.16b,#8\n\teor\tv3.16b,v3.16b,v0.16b\t\t//inp^=Xi\n\teor\tv17.16b,v16.16b,v18.16b\t\t//v17.16b is rotated inp^Xi\n\n\tpmull\tv0.1q,v20.1d,v3.1d\t\t//H.lo·Xi.lo\n\teor\tv17.16b,v17.16b,v3.16b\t\t//Karatsuba pre-processing\n\tpmull2\tv2.1q,v20.2d,v3.2d\t\t//H.hi·Xi.hi\n\tpmull\tv1.1q,v21.1d,v17.1d\t\t//(H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\n.Ldone_v8:\n#ifndef __AARCH64EB__\n\trev64\tv0.16b,v0.16b\n#endif\n\text\tv0.16b,v0.16b,v0.16b,#8\n\tst1\t{v0.2d},[x0]\t\t//write out Xi\n\n\tret\n.size\tgcm_ghash_v8,.-gcm_ghash_v8\n.type\tgcm_ghash_v8_4x,%function\n.align\t4\ngcm_ghash_v8_4x:\n.Lgcm_ghash_v8_4x:\n\tld1\t{v0.2d},[x0]\t\t//load [rotated] Xi\n\tld1\t{v20.2d,v21.2d,v22.2d},[x1],#48\t//load twisted H, ..., H^2\n\tmovi\tv19.16b,#0xe1\n\tld1\t{v26.2d,v27.2d,v28.2d},[x1]\t//load twisted H^3, ..., H^4\n\tshl\tv19.2d,v19.2d,#57\t\t//compose 0xc2.0 constant\n\n\tld1\t{v4.2d,v5.2d,v6.2d,v7.2d},[x2],#64\n#ifndef __AARCH64EB__\n\trev64\tv0.16b,v0.16b\n\trev64\tv5.16b,v5.16b\n\trev64\tv6.16b,v6.16b\n\trev64\tv7.16b,v7.16b\n\trev64\tv4.16b,v4.16b\n#endif\n\text\tv25.16b,v7.16b,v7.16b,#8\n\text\tv24.16b,v6.16b,v6.16b,#8\n\text\tv23.16b,v5.16b,v5.16b,#8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:10", "text": ".align\t4\ngcm_ghash_v8_4x:\n.Lgcm_ghash_v8_4x:\n\tld1\t{v0.2d},[x0]\t\t//load [rotated] Xi\n\tld1\t{v20.2d,v21.2d,v22.2d},[x1],#48\t//load twisted H, ..., H^2\n\tmovi\tv19.16b,#0xe1\n\tld1\t{v26.2d,v27.2d,v28.2d},[x1]\t//load twisted H^3, ..., H^4\n\tshl\tv19.2d,v19.2d,#57\t\t//compose 0xc2.0 constant\n\n\tld1\t{v4.2d,v5.2d,v6.2d,v7.2d},[x2],#64\n#ifndef __AARCH64EB__\n\trev64\tv0.16b,v0.16b\n\trev64\tv5.16b,v5.16b\n\trev64\tv6.16b,v6.16b\n\trev64\tv7.16b,v7.16b\n\trev64\tv4.16b,v4.16b\n#endif\n\text\tv25.16b,v7.16b,v7.16b,#8\n\text\tv24.16b,v6.16b,v6.16b,#8\n\text\tv23.16b,v5.16b,v5.16b,#8\n\n\tpmull\tv29.1q,v20.1d,v25.1d\t\t//H·Ii+3\n\teor\tv7.16b,v7.16b,v25.16b\n\tpmull2\tv31.1q,v20.2d,v25.2d\n\tpmull\tv30.1q,v21.1d,v7.1d\n\n\tpmull\tv16.1q,v22.1d,v24.1d\t\t//H^2·Ii+2\n\teor\tv6.16b,v6.16b,v24.16b\n\tpmull2\tv24.1q,v22.2d,v24.2d\n\tpmull2\tv6.1q,v21.2d,v6.2d\n\n\teor\tv29.16b,v29.16b,v16.16b\n\teor\tv31.16b,v31.16b,v24.16b\n\teor\tv30.16b,v30.16b,v6.16b\n\n\tpmull\tv7.1q,v26.1d,v23.1d\t\t//H^3·Ii+1\n\teor\tv5.16b,v5.16b,v23.16b\n\tpmull2\tv23.1q,v26.2d,v23.2d\n\tpmull\tv5.1q,v27.1d,v5.1d\n\n\teor\tv29.16b,v29.16b,v7.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\teor\tv30.16b,v30.16b,v5.16b\n\n\tsubs\tx3,x3,#128\n\tb.lo\t.Ltail4x\n\n\tb\t.Loop4x\n\n.align\t4\n.Loop4x:\n\teor\tv16.16b,v4.16b,v0.16b\n\tld1\t{v4.2d,v5.2d,v6.2d,v7.2d},[x2],#64\n\text\tv3.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev64\tv5.16b,v5.16b\n\trev64\tv6.16b,v6.16b\n\trev64\tv7.16b,v7.16b\n\trev64\tv4.16b,v4.16b\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:11", "text": "eor\tv29.16b,v29.16b,v7.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\teor\tv30.16b,v30.16b,v5.16b\n\n\tsubs\tx3,x3,#128\n\tb.lo\t.Ltail4x\n\n\tb\t.Loop4x\n\n.align\t4\n.Loop4x:\n\teor\tv16.16b,v4.16b,v0.16b\n\tld1\t{v4.2d,v5.2d,v6.2d,v7.2d},[x2],#64\n\text\tv3.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev64\tv5.16b,v5.16b\n\trev64\tv6.16b,v6.16b\n\trev64\tv7.16b,v7.16b\n\trev64\tv4.16b,v4.16b\n#endif\n\n\tpmull\tv0.1q,v28.1d,v3.1d\t\t//H^4·(Xi+Ii)\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v28.2d,v3.2d\n\text\tv25.16b,v7.16b,v7.16b,#8\n\tpmull2\tv1.1q,v27.2d,v16.2d\n\n\teor\tv0.16b,v0.16b,v29.16b\n\teor\tv2.16b,v2.16b,v31.16b\n\text\tv24.16b,v6.16b,v6.16b,#8\n\teor\tv1.16b,v1.16b,v30.16b\n\text\tv23.16b,v5.16b,v5.16b,#8\n\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\tpmull\tv29.1q,v20.1d,v25.1d\t\t//H·Ii+3\n\teor\tv7.16b,v7.16b,v25.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tpmull2\tv31.1q,v20.2d,v25.2d\n\teor\tv1.16b,v1.16b,v18.16b\n\tpmull\tv30.1q,v21.1d,v7.1d\n\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\tpmull\tv16.1q,v22.1d,v24.1d\t\t//H^2·Ii+2\n\teor\tv6.16b,v6.16b,v24.16b\n\tpmull2\tv24.1q,v22.2d,v24.2d\n\teor\tv0.16b,v1.16b,v18.16b\n\tpmull2\tv6.1q,v21.2d,v6.2d\n\n\teor\tv29.16b,v29.16b,v16.16b\n\teor\tv31.16b,v31.16b,v24.16b\n\teor\tv30.16b,v30.16b,v6.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv7.1q,v26.1d,v23.1d\t\t//H^3·Ii+1\n\teor\tv5.16b,v5.16b,v23.16b\n\teor\tv18.16b,v18.16b,v2.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:12", "text": "pmull\tv30.1q,v21.1d,v7.1d\n\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\tpmull\tv16.1q,v22.1d,v24.1d\t\t//H^2·Ii+2\n\teor\tv6.16b,v6.16b,v24.16b\n\tpmull2\tv24.1q,v22.2d,v24.2d\n\teor\tv0.16b,v1.16b,v18.16b\n\tpmull2\tv6.1q,v21.2d,v6.2d\n\n\teor\tv29.16b,v29.16b,v16.16b\n\teor\tv31.16b,v31.16b,v24.16b\n\teor\tv30.16b,v30.16b,v6.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\tpmull\tv7.1q,v26.1d,v23.1d\t\t//H^3·Ii+1\n\teor\tv5.16b,v5.16b,v23.16b\n\teor\tv18.16b,v18.16b,v2.16b\n\tpmull2\tv23.1q,v26.2d,v23.2d\n\tpmull\tv5.1q,v27.1d,v5.1d\n\n\teor\tv0.16b,v0.16b,v18.16b\n\teor\tv29.16b,v29.16b,v7.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\teor\tv30.16b,v30.16b,v5.16b\n\n\tsubs\tx3,x3,#64\n\tb.hs\t.Loop4x\n\n.Ltail4x:\n\teor\tv16.16b,v4.16b,v0.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\tpmull\tv0.1q,v28.1d,v3.1d\t\t//H^4·(Xi+Ii)\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v28.2d,v3.2d\n\tpmull2\tv1.1q,v27.2d,v16.2d\n\n\teor\tv0.16b,v0.16b,v29.16b\n\teor\tv2.16b,v2.16b,v31.16b\n\teor\tv1.16b,v1.16b,v30.16b\n\n\tadds\tx3,x3,#64\n\tb.eq\t.Ldone4x\n\n\tcmp\tx3,#32\n\tb.lo\t.Lone\n\tb.eq\t.Ltwo\n.Lthree:\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tld1\t{v4.2d,v5.2d,v6.2d},[x2]\n\teor\tv1.16b,v1.16b,v18.16b\n#ifndef\t__AARCH64EB__\n\trev64\tv5.16b,v5.16b\n\trev64\tv6.16b,v6.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:13", "text": "eor\tv0.16b,v0.16b,v29.16b\n\teor\tv2.16b,v2.16b,v31.16b\n\teor\tv1.16b,v1.16b,v30.16b\n\n\tadds\tx3,x3,#64\n\tb.eq\t.Ldone4x\n\n\tcmp\tx3,#32\n\tb.lo\t.Lone\n\tb.eq\t.Ltwo\n.Lthree:\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tld1\t{v4.2d,v5.2d,v6.2d},[x2]\n\teor\tv1.16b,v1.16b,v18.16b\n#ifndef\t__AARCH64EB__\n\trev64\tv5.16b,v5.16b\n\trev64\tv6.16b,v6.16b\n\trev64\tv4.16b,v4.16b\n#endif\n\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\text\tv24.16b,v6.16b,v6.16b,#8\n\text\tv23.16b,v5.16b,v5.16b,#8\n\teor\tv0.16b,v1.16b,v18.16b\n\n\tpmull\tv29.1q,v20.1d,v24.1d\t\t//H·Ii+2\n\teor\tv6.16b,v6.16b,v24.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\tpmull2\tv31.1q,v20.2d,v24.2d\n\tpmull\tv30.1q,v21.1d,v6.1d\n\teor\tv0.16b,v0.16b,v18.16b\n\tpmull\tv7.1q,v22.1d,v23.1d\t\t//H^2·Ii+1\n\teor\tv5.16b,v5.16b,v23.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n\tpmull2\tv23.1q,v22.2d,v23.2d\n\teor\tv16.16b,v4.16b,v0.16b\n\tpmull2\tv5.1q,v21.2d,v5.2d\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\teor\tv29.16b,v29.16b,v7.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\teor\tv30.16b,v30.16b,v5.16b\n\n\tpmull\tv0.1q,v26.1d,v3.1d\t\t//H^3·(Xi+Ii)\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v26.2d,v3.2d\n\tpmull\tv1.1q,v27.1d,v16.1d\n\n\teor\tv0.16b,v0.16b,v29.16b\n\teor\tv2.16b,v2.16b,v31.16b\n\teor\tv1.16b,v1.16b,v30.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:14", "text": "eor\tv5.16b,v5.16b,v23.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n\tpmull2\tv23.1q,v22.2d,v23.2d\n\teor\tv16.16b,v4.16b,v0.16b\n\tpmull2\tv5.1q,v21.2d,v5.2d\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\teor\tv29.16b,v29.16b,v7.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\teor\tv30.16b,v30.16b,v5.16b\n\n\tpmull\tv0.1q,v26.1d,v3.1d\t\t//H^3·(Xi+Ii)\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v26.2d,v3.2d\n\tpmull\tv1.1q,v27.1d,v16.1d\n\n\teor\tv0.16b,v0.16b,v29.16b\n\teor\tv2.16b,v2.16b,v31.16b\n\teor\tv1.16b,v1.16b,v30.16b\n\tb\t.Ldone4x\n\n.align\t4\n.Ltwo:\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tld1\t{v4.2d,v5.2d},[x2]\n\teor\tv1.16b,v1.16b,v18.16b\n#ifndef\t__AARCH64EB__\n\trev64\tv5.16b,v5.16b\n\trev64\tv4.16b,v4.16b\n#endif\n\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\text\tv23.16b,v5.16b,v5.16b,#8\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n\tpmull\tv29.1q,v20.1d,v23.1d\t\t//H·Ii+1\n\teor\tv5.16b,v5.16b,v23.16b\n\n\teor\tv16.16b,v4.16b,v0.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\tpmull2\tv31.1q,v20.2d,v23.2d\n\tpmull\tv30.1q,v21.1d,v5.1d\n\n\tpmull\tv0.1q,v22.1d,v3.1d\t\t//H^2·(Xi+Ii)\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v22.2d,v3.2d\n\tpmull2\tv1.1q,v21.2d,v16.2d", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:15", "text": "ext\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n\tpmull\tv29.1q,v20.1d,v23.1d\t\t//H·Ii+1\n\teor\tv5.16b,v5.16b,v23.16b\n\n\teor\tv16.16b,v4.16b,v0.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\tpmull2\tv31.1q,v20.2d,v23.2d\n\tpmull\tv30.1q,v21.1d,v5.1d\n\n\tpmull\tv0.1q,v22.1d,v3.1d\t\t//H^2·(Xi+Ii)\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v22.2d,v3.2d\n\tpmull2\tv1.1q,v21.2d,v16.2d\n\n\teor\tv0.16b,v0.16b,v29.16b\n\teor\tv2.16b,v2.16b,v31.16b\n\teor\tv1.16b,v1.16b,v30.16b\n\tb\t.Ldone4x\n\n.align\t4\n.Lone:\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\tld1\t{v4.2d},[x2]\n\teor\tv1.16b,v1.16b,v18.16b\n#ifndef\t__AARCH64EB__\n\trev64\tv4.16b,v4.16b\n#endif\n\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n\teor\tv16.16b,v4.16b,v0.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\tpmull\tv0.1q,v20.1d,v3.1d\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v20.2d,v3.2d\n\tpmull\tv1.1q,v21.1d,v16.1d\n\n.Ldone4x:\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S:16", "text": "ext\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n\teor\tv16.16b,v4.16b,v0.16b\n\text\tv3.16b,v16.16b,v16.16b,#8\n\n\tpmull\tv0.1q,v20.1d,v3.1d\n\teor\tv16.16b,v16.16b,v3.16b\n\tpmull2\tv2.1q,v20.2d,v3.2d\n\tpmull\tv1.1q,v21.1d,v16.1d\n\n.Ldone4x:\n\text\tv17.16b,v0.16b,v2.16b,#8\t\t//Karatsuba post-processing\n\teor\tv18.16b,v0.16b,v2.16b\n\teor\tv1.16b,v1.16b,v17.16b\n\teor\tv1.16b,v1.16b,v18.16b\n\n\tpmull\tv18.1q,v0.1d,v19.1d\t\t//1st phase of reduction\n\tins\tv2.d[0],v1.d[1]\n\tins\tv1.d[1],v0.d[0]\n\teor\tv0.16b,v1.16b,v18.16b\n\n\text\tv18.16b,v0.16b,v0.16b,#8\t\t//2nd phase of reduction\n\tpmull\tv0.1q,v0.1d,v19.1d\n\teor\tv18.16b,v18.16b,v2.16b\n\teor\tv0.16b,v0.16b,v18.16b\n\text\tv0.16b,v0.16b,v0.16b,#8\n\n#ifndef __AARCH64EB__\n\trev64\tv0.16b,v0.16b\n#endif\n\tst1\t{v0.2d},[x0]\t\t//write out Xi\n\n\tret\n.size\tgcm_ghash_v8_4x,.-gcm_ghash_v8_4x\n.section\t.rodata\n.byte\t71,72,65,83,72,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/ghashv8-armx.S", "line_start": 601, "line_end": 644}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:1", "text": "#include \"arm_arch.h\"\n\n.section\t.rodata\n\n.align\t8\t// strategic alignment and padding that allows to use\n\t\t// address value as loop termination condition...\n.quad\t0,0,0,0,0,0,0,0\n.type\tiotas,%object\niotas:\n.quad\t0x0000000000000001\n.quad\t0x0000000000008082\n.quad\t0x800000000000808a\n.quad\t0x8000000080008000\n.quad\t0x000000000000808b\n.quad\t0x0000000080000001\n.quad\t0x8000000080008081\n.quad\t0x8000000000008009\n.quad\t0x000000000000008a\n.quad\t0x0000000000000088\n.quad\t0x0000000080008009\n.quad\t0x000000008000000a\n.quad\t0x000000008000808b\n.quad\t0x800000000000008b\n.quad\t0x8000000000008089\n.quad\t0x8000000000008003\n.quad\t0x8000000000008002\n.quad\t0x8000000000000080\n.quad\t0x000000000000800a\n.quad\t0x800000008000000a\n.quad\t0x8000000080008081\n.quad\t0x8000000000008080\n.quad\t0x0000000080000001\n.quad\t0x8000000080008008\n.size\tiotas,.-iotas\n.text\n\n.type\tKeccakF1600_int,%function\n.align\t5\nKeccakF1600_int:\n\tAARCH64_SIGN_LINK_REGISTER\n\tadrp\tx28,iotas\n\tadd\tx28,x28,#:lo12:iotas\n\tstp\tx28,x30,[sp,#16]\t\t// 32 bytes on top are mine\n\tb\t.Loop\n.align\t4\n.Loop:\n\t////////////////////////////////////////// Theta\n\teor\tx26,x0,x5\n\tstp\tx4,x9,[sp,#0]\t// offload pair...\n\teor\tx27,x1,x6\n\teor\tx28,x2,x7\n\teor\tx30,x3,x8\n\teor\tx4,x4,x9\n\teor\tx26,x26,x10\n\teor\tx27,x27,x11\n\teor\tx28,x28,x12\n\teor\tx30,x30,x13\n\teor\tx4,x4,x14\n\teor\tx26,x26,x15\n\teor\tx27,x27,x16", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:2", "text": "adrp\tx28,iotas\n\tadd\tx28,x28,#:lo12:iotas\n\tstp\tx28,x30,[sp,#16]\t\t// 32 bytes on top are mine\n\tb\t.Loop\n.align\t4\n.Loop:\n\t////////////////////////////////////////// Theta\n\teor\tx26,x0,x5\n\tstp\tx4,x9,[sp,#0]\t// offload pair...\n\teor\tx27,x1,x6\n\teor\tx28,x2,x7\n\teor\tx30,x3,x8\n\teor\tx4,x4,x9\n\teor\tx26,x26,x10\n\teor\tx27,x27,x11\n\teor\tx28,x28,x12\n\teor\tx30,x30,x13\n\teor\tx4,x4,x14\n\teor\tx26,x26,x15\n\teor\tx27,x27,x16\n\teor\tx28,x28,x17\n\teor\tx30,x30,x25\n\teor\tx4,x4,x19\n\teor\tx26,x26,x20\n\teor\tx28,x28,x22\n\teor\tx27,x27,x21\n\teor\tx30,x30,x23\n\teor\tx4,x4,x24\n\n\teor\tx9,x26,x28,ror#63\n\n\teor\tx1,x1,x9\n\teor\tx6,x6,x9\n\teor\tx11,x11,x9\n\teor\tx16,x16,x9\n\teor\tx21,x21,x9\n\n\teor\tx9,x27,x30,ror#63\n\teor\tx28,x28,x4,ror#63\n\teor\tx30,x30,x26,ror#63\n\teor\tx4,x4,x27,ror#63\n\n\teor\tx27,   x2,x9\t\t// mov\tx27,x2\n\teor\tx7,x7,x9\n\teor\tx12,x12,x9\n\teor\tx17,x17,x9\n\teor\tx22,x22,x9\n\n\teor\tx0,x0,x4\n\teor\tx5,x5,x4\n\teor\tx10,x10,x4\n\teor\tx15,x15,x4\n\teor\tx20,x20,x4\n\tldp\tx4,x9,[sp,#0]\t// re-load offloaded data\n\teor\tx26,   x3,x28\t\t// mov\tx26,x3\n\teor\tx8,x8,x28\n\teor\tx13,x13,x28\n\teor\tx25,x25,x28\n\teor\tx23,x23,x28", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:3", "text": "eor\tx4,x4,x27,ror#63\n\n\teor\tx27,   x2,x9\t\t// mov\tx27,x2\n\teor\tx7,x7,x9\n\teor\tx12,x12,x9\n\teor\tx17,x17,x9\n\teor\tx22,x22,x9\n\n\teor\tx0,x0,x4\n\teor\tx5,x5,x4\n\teor\tx10,x10,x4\n\teor\tx15,x15,x4\n\teor\tx20,x20,x4\n\tldp\tx4,x9,[sp,#0]\t// re-load offloaded data\n\teor\tx26,   x3,x28\t\t// mov\tx26,x3\n\teor\tx8,x8,x28\n\teor\tx13,x13,x28\n\teor\tx25,x25,x28\n\teor\tx23,x23,x28\n\n\teor\tx28,   x4,x30\t\t// mov\tx28,x4\n\teor\tx9,x9,x30\n\teor\tx14,x14,x30\n\teor\tx19,x19,x30\n\teor\tx24,x24,x30\n\n\t////////////////////////////////////////// Rho+Pi\n\tmov\tx30,x1\n\tror\tx1,x6,#64-44\n\t//mov\tx27,x2\n\tror\tx2,x12,#64-43\n\t//mov\tx26,x3\n\tror\tx3,x25,#64-21\n\t//mov\tx28,x4\n\tror\tx4,x24,#64-14\n\n\tror\tx6,x9,#64-20\n\tror\tx12,x13,#64-25\n\tror\tx25,x17,#64-15\n\tror\tx24,x21,#64-2\n\n\tror\tx9,x22,#64-61\n\tror\tx13,x19,#64-8\n\tror\tx17,x11,#64-10\n\tror\tx21,x8,#64-55\n\n\tror\tx22,x14,#64-39\n\tror\tx19,x23,#64-56\n\tror\tx11,x7,#64-6\n\tror\tx8,x16,#64-45\n\n\tror\tx14,x20,#64-18\n\tror\tx23,x15,#64-41\n\tror\tx7,x10,#64-3\n\tror\tx16,x5,#64-36\n\n\tror\tx5,x26,#64-28\n\tror\tx10,x30,#64-1\n\tror\tx15,x28,#64-27\n\tror\tx20,x27,#64-62", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:4", "text": "ror\tx9,x22,#64-61\n\tror\tx13,x19,#64-8\n\tror\tx17,x11,#64-10\n\tror\tx21,x8,#64-55\n\n\tror\tx22,x14,#64-39\n\tror\tx19,x23,#64-56\n\tror\tx11,x7,#64-6\n\tror\tx8,x16,#64-45\n\n\tror\tx14,x20,#64-18\n\tror\tx23,x15,#64-41\n\tror\tx7,x10,#64-3\n\tror\tx16,x5,#64-36\n\n\tror\tx5,x26,#64-28\n\tror\tx10,x30,#64-1\n\tror\tx15,x28,#64-27\n\tror\tx20,x27,#64-62\n\n\t////////////////////////////////////////// Chi+Iota\n\tbic\tx26,x2,x1\n\tbic\tx27,x3,x2\n\tbic\tx28,x0,x4\n\tbic\tx30,x1,x0\n\teor\tx0,x0,x26\n\tbic\tx26,x4,x3\n\teor\tx1,x1,x27\n\tldr\tx27,[sp,#16]\n\teor\tx3,x3,x28\n\teor\tx4,x4,x30\n\teor\tx2,x2,x26\n\tldr\tx30,[x27],#8\t\t// Iota[i++]\n\n\tbic\tx26,x7,x6\n\ttst\tx27,#255\t\t\t// are we done?\n\tstr\tx27,[sp,#16]\n\tbic\tx27,x8,x7\n\tbic\tx28,x5,x9\n\teor\tx0,x0,x30\t\t// A[0][0] ^= Iota\n\tbic\tx30,x6,x5\n\teor\tx5,x5,x26\n\tbic\tx26,x9,x8\n\teor\tx6,x6,x27\n\teor\tx8,x8,x28\n\teor\tx9,x9,x30\n\teor\tx7,x7,x26\n\n\tbic\tx26,x12,x11\n\tbic\tx27,x13,x12\n\tbic\tx28,x10,x14\n\tbic\tx30,x11,x10\n\teor\tx10,x10,x26\n\tbic\tx26,x14,x13\n\teor\tx11,x11,x27\n\teor\tx13,x13,x28\n\teor\tx14,x14,x30\n\teor\tx12,x12,x26", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:5", "text": "eor\tx0,x0,x30\t\t// A[0][0] ^= Iota\n\tbic\tx30,x6,x5\n\teor\tx5,x5,x26\n\tbic\tx26,x9,x8\n\teor\tx6,x6,x27\n\teor\tx8,x8,x28\n\teor\tx9,x9,x30\n\teor\tx7,x7,x26\n\n\tbic\tx26,x12,x11\n\tbic\tx27,x13,x12\n\tbic\tx28,x10,x14\n\tbic\tx30,x11,x10\n\teor\tx10,x10,x26\n\tbic\tx26,x14,x13\n\teor\tx11,x11,x27\n\teor\tx13,x13,x28\n\teor\tx14,x14,x30\n\teor\tx12,x12,x26\n\n\tbic\tx26,x17,x16\n\tbic\tx27,x25,x17\n\tbic\tx28,x15,x19\n\tbic\tx30,x16,x15\n\teor\tx15,x15,x26\n\tbic\tx26,x19,x25\n\teor\tx16,x16,x27\n\teor\tx25,x25,x28\n\teor\tx19,x19,x30\n\teor\tx17,x17,x26\n\n\tbic\tx26,x22,x21\n\tbic\tx27,x23,x22\n\tbic\tx28,x20,x24\n\tbic\tx30,x21,x20\n\teor\tx20,x20,x26\n\tbic\tx26,x24,x23\n\teor\tx21,x21,x27\n\teor\tx23,x23,x28\n\teor\tx24,x24,x30\n\teor\tx22,x22,x26\n\n\tbne\t.Loop\n\n\tldr\tx30,[sp,#24]\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_int,.-KeccakF1600_int\n\n.type\tKeccakF1600,%function\n.align\t5\nKeccakF1600:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:6", "text": "eor\tx22,x22,x26\n\n\tbne\t.Loop\n\n\tldr\tx30,[sp,#24]\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_int,.-KeccakF1600_int\n\n.type\tKeccakF1600,%function\n.align\t5\nKeccakF1600:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#48\n\n\tstr\tx0,[sp,#32]\t\t\t// offload argument\n\tmov\tx26,x0\n\tldp\tx0,x1,[x0,#16*0]\n\tldp\tx2,x3,[x26,#16*1]\n\tldp\tx4,x5,[x26,#16*2]\n\tldp\tx6,x7,[x26,#16*3]\n\tldp\tx8,x9,[x26,#16*4]\n\tldp\tx10,x11,[x26,#16*5]\n\tldp\tx12,x13,[x26,#16*6]\n\tldp\tx14,x15,[x26,#16*7]\n\tldp\tx16,x17,[x26,#16*8]\n\tldp\tx25,x19,[x26,#16*9]\n\tldp\tx20,x21,[x26,#16*10]\n\tldp\tx22,x23,[x26,#16*11]\n\tldr\tx24,[x26,#16*12]\n\n\tbl\tKeccakF1600_int\n\n\tldr\tx26,[sp,#32]\n\tstp\tx0,x1,[x26,#16*0]\n\tstp\tx2,x3,[x26,#16*1]\n\tstp\tx4,x5,[x26,#16*2]\n\tstp\tx6,x7,[x26,#16*3]\n\tstp\tx8,x9,[x26,#16*4]\n\tstp\tx10,x11,[x26,#16*5]\n\tstp\tx12,x13,[x26,#16*6]\n\tstp\tx14,x15,[x26,#16*7]\n\tstp\tx16,x17,[x26,#16*8]\n\tstp\tx25,x19,[x26,#16*9]\n\tstp\tx20,x21,[x26,#16*10]\n\tstp\tx22,x23,[x26,#16*11]\n\tstr\tx24,[x26,#16*12]\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#48\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:7", "text": "ldr\tx26,[sp,#32]\n\tstp\tx0,x1,[x26,#16*0]\n\tstp\tx2,x3,[x26,#16*1]\n\tstp\tx4,x5,[x26,#16*2]\n\tstp\tx6,x7,[x26,#16*3]\n\tstp\tx8,x9,[x26,#16*4]\n\tstp\tx10,x11,[x26,#16*5]\n\tstp\tx12,x13,[x26,#16*6]\n\tstp\tx14,x15,[x26,#16*7]\n\tstp\tx16,x17,[x26,#16*8]\n\tstp\tx25,x19,[x26,#16*9]\n\tstp\tx20,x21,[x26,#16*10]\n\tstp\tx22,x23,[x26,#16*11]\n\tstr\tx24,[x26,#16*12]\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#48\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#128\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600,.-KeccakF1600\n\n.globl\tSHA3_absorb\n.type\tSHA3_absorb,%function\n.align\t5\nSHA3_absorb:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#64\n\n\tstp\tx0,x1,[sp,#32]\t\t\t// offload arguments\n\tstp\tx2,x3,[sp,#48]\n\n\tmov\tx26,x0\t\t\t// uint64_t A[5][5]\n\tmov\tx27,x1\t\t\t// const void *inp\n\tmov\tx28,x2\t\t\t// size_t len\n\tmov\tx30,x3\t\t\t// size_t bsz\n\tldp\tx0,x1,[x26,#16*0]\n\tldp\tx2,x3,[x26,#16*1]\n\tldp\tx4,x5,[x26,#16*2]\n\tldp\tx6,x7,[x26,#16*3]\n\tldp\tx8,x9,[x26,#16*4]\n\tldp\tx10,x11,[x26,#16*5]\n\tldp\tx12,x13,[x26,#16*6]\n\tldp\tx14,x15,[x26,#16*7]\n\tldp\tx16,x17,[x26,#16*8]\n\tldp\tx25,x19,[x26,#16*9]\n\tldp\tx20,x21,[x26,#16*10]\n\tldp\tx22,x23,[x26,#16*11]\n\tldr\tx24,[x26,#16*12]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:8", "text": "stp\tx0,x1,[sp,#32]\t\t\t// offload arguments\n\tstp\tx2,x3,[sp,#48]\n\n\tmov\tx26,x0\t\t\t// uint64_t A[5][5]\n\tmov\tx27,x1\t\t\t// const void *inp\n\tmov\tx28,x2\t\t\t// size_t len\n\tmov\tx30,x3\t\t\t// size_t bsz\n\tldp\tx0,x1,[x26,#16*0]\n\tldp\tx2,x3,[x26,#16*1]\n\tldp\tx4,x5,[x26,#16*2]\n\tldp\tx6,x7,[x26,#16*3]\n\tldp\tx8,x9,[x26,#16*4]\n\tldp\tx10,x11,[x26,#16*5]\n\tldp\tx12,x13,[x26,#16*6]\n\tldp\tx14,x15,[x26,#16*7]\n\tldp\tx16,x17,[x26,#16*8]\n\tldp\tx25,x19,[x26,#16*9]\n\tldp\tx20,x21,[x26,#16*10]\n\tldp\tx22,x23,[x26,#16*11]\n\tldr\tx24,[x26,#16*12]\n\tb\t.Loop_absorb\n\n.align\t4\n.Loop_absorb:\n\tsubs\tx26,x28,x30\t\t// len - bsz\n\tblo\t.Labsorbed\n\n\tstr\tx26,[sp,#48]\t\t\t// save len - bsz\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx0,x0,x26\n\tcmp\tx30,#8*(0+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx1,x1,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx2,x2,x26\n\tcmp\tx30,#8*(2+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx3,x3,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx4,x4,x26\n\tcmp\tx30,#8*(4+2)", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:9", "text": "beq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx2,x2,x26\n\tcmp\tx30,#8*(2+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx3,x3,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx4,x4,x26\n\tcmp\tx30,#8*(4+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx5,x5,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx6,x6,x26\n\tcmp\tx30,#8*(6+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx7,x7,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx8,x8,x26\n\tcmp\tx30,#8*(8+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx9,x9,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx10,x10,x26\n\tcmp\tx30,#8*(10+2)\n\tblo\t.Lprocess_block", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:10", "text": "ldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx8,x8,x26\n\tcmp\tx30,#8*(8+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx9,x9,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx10,x10,x26\n\tcmp\tx30,#8*(10+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx11,x11,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx12,x12,x26\n\tcmp\tx30,#8*(12+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx13,x13,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx14,x14,x26\n\tcmp\tx30,#8*(14+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx15,x15,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx16,x16,x26\n\tcmp\tx30,#8*(16+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:11", "text": "#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx14,x14,x26\n\tcmp\tx30,#8*(14+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx15,x15,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx16,x16,x26\n\tcmp\tx30,#8*(16+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx17,x17,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx25,x25,x26\n\tcmp\tx30,#8*(18+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx19,x19,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx20,x20,x26\n\tcmp\tx30,#8*(20+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx21,x21,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx22,x22,x26\n\tcmp\tx30,#8*(22+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:12", "text": "rev\tx26,x26\n#endif\n\teor\tx20,x20,x26\n\tcmp\tx30,#8*(20+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx21,x21,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx22,x22,x26\n\tcmp\tx30,#8*(22+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx23,x23,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx24,x24,x26\n\n.Lprocess_block:\n\tstr\tx27,[sp,#40]\t\t\t// save inp\n\n\tbl\tKeccakF1600_int\n\n\tldr\tx27,[sp,#40]\t\t\t// restore arguments\n\tldp\tx28,x30,[sp,#48]\n\tb\t.Loop_absorb\n\n.align\t4\n.Labsorbed:\n\tldr\tx27,[sp,#32]\n\tstp\tx0,x1,[x27,#16*0]\n\tstp\tx2,x3,[x27,#16*1]\n\tstp\tx4,x5,[x27,#16*2]\n\tstp\tx6,x7,[x27,#16*3]\n\tstp\tx8,x9,[x27,#16*4]\n\tstp\tx10,x11,[x27,#16*5]\n\tstp\tx12,x13,[x27,#16*6]\n\tstp\tx14,x15,[x27,#16*7]\n\tstp\tx16,x17,[x27,#16*8]\n\tstp\tx25,x19,[x27,#16*9]\n\tstp\tx20,x21,[x27,#16*10]\n\tstp\tx22,x23,[x27,#16*11]\n\tstr\tx24,[x27,#16*12]\n\n\tmov\tx0,x28\t\t\t// return value\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:13", "text": ".Labsorbed:\n\tldr\tx27,[sp,#32]\n\tstp\tx0,x1,[x27,#16*0]\n\tstp\tx2,x3,[x27,#16*1]\n\tstp\tx4,x5,[x27,#16*2]\n\tstp\tx6,x7,[x27,#16*3]\n\tstp\tx8,x9,[x27,#16*4]\n\tstp\tx10,x11,[x27,#16*5]\n\tstp\tx12,x13,[x27,#16*6]\n\tstp\tx14,x15,[x27,#16*7]\n\tstp\tx16,x17,[x27,#16*8]\n\tstp\tx25,x19,[x27,#16*9]\n\tstp\tx20,x21,[x27,#16*10]\n\tstp\tx22,x23,[x27,#16*11]\n\tstr\tx24,[x27,#16*12]\n\n\tmov\tx0,x28\t\t\t// return value\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#128\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_absorb,.-SHA3_absorb\n.globl\tSHA3_squeeze\n.type\tSHA3_squeeze,%function\n.align\t5\nSHA3_squeeze:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-48]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\n\tmov\tx19,x0\t\t\t// put aside arguments\n\tmov\tx20,x1\n\tmov\tx21,x2\n\tmov\tx22,x3\n\tcmp\tw4, #0\t\t\t\t// w4 = 'next' argument\n\tbne\t.Lnext_block\n\n.Loop_squeeze:\n\tldr\tx4,[x0],#8\n\tcmp\tx21,#8\n\tblo\t.Lsqueeze_tail\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x20],#8\n\tsubs\tx21,x21,#8\n\tbeq\t.Lsqueeze_done\n\n\tsubs\tx3,x3,#8\n\tbhi\t.Loop_squeeze\n.Lnext_block:\n\tmov\tx0,x19\n\tbl\tKeccakF1600", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:14", "text": "mov\tx22,x3\n\tcmp\tw4, #0\t\t\t\t// w4 = 'next' argument\n\tbne\t.Lnext_block\n\n.Loop_squeeze:\n\tldr\tx4,[x0],#8\n\tcmp\tx21,#8\n\tblo\t.Lsqueeze_tail\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x20],#8\n\tsubs\tx21,x21,#8\n\tbeq\t.Lsqueeze_done\n\n\tsubs\tx3,x3,#8\n\tbhi\t.Loop_squeeze\n.Lnext_block:\n\tmov\tx0,x19\n\tbl\tKeccakF1600\n\tmov\tx0,x19\n\tmov\tx3,x22\n\tb\t.Loop_squeeze\n\n.align\t4\n.Lsqueeze_tail:\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\n.Lsqueeze_done:\n\tldp\tx19,x20,[sp,#16]\n\tldp\tx21,x22,[sp,#32]\n\tldp\tx29,x30,[sp],#48\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze,.-SHA3_squeeze\n.type\tKeccakF1600_ce,%function", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:15", "text": "subs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\n.Lsqueeze_done:\n\tldp\tx19,x20,[sp,#16]\n\tldp\tx21,x22,[sp,#32]\n\tldp\tx29,x30,[sp],#48\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze,.-SHA3_squeeze\n.type\tKeccakF1600_ce,%function\n.align\t5\nKeccakF1600_ce:\n\tmov\tx9,#24\n\tadrp\tx10,iotas\n\tadd\tx10,x10,#:lo12:iotas\n\tb\t.Loop_ce\n.align\t4\n.Loop_ce:\n\t////////////////////////////////////////////////// Theta\n.inst\t0xce0f2a99\t//eor3 v25.16b,v20.16b,v15.16b,v10.16b\n.inst\t0xce102eba\t//eor3 v26.16b,v21.16b,v16.16b,v11.16b\n.inst\t0xce1132db\t//eor3 v27.16b,v22.16b,v17.16b,v12.16b\n.inst\t0xce1236fc\t//eor3 v28.16b,v23.16b,v18.16b,v13.16b\n.inst\t0xce133b1d\t//eor3 v29.16b,v24.16b,v19.16b,v14.16b\n.inst\t0xce050339\t//eor3 v25.16b,v25.16b,   v5.16b,v0.16b\n.inst\t0xce06075a\t//eor3 v26.16b,v26.16b,   v6.16b,v1.16b\n.inst\t0xce070b7b\t//eor3 v27.16b,v27.16b,   v7.16b,v2.16b\n.inst\t0xce080f9c\t//eor3 v28.16b,v28.16b,   v8.16b,v3.16b\n.inst\t0xce0913bd\t//eor3 v29.16b,v29.16b,   v9.16b,v4.16b\n\n.inst\t0xce7b8f3e\t//rax1 v30.16b,v25.16b,v27.16b\t\t\t// D[1]\n.inst\t0xce7c8f5f\t//rax1 v31.16b,v26.16b,v28.16b\t\t\t// D[2]\n.inst\t0xce7d8f7b\t//rax1 v27.16b,v27.16b,v29.16b\t\t\t// D[3]\n.inst\t0xce798f9c\t//rax1 v28.16b,v28.16b,v25.16b\t\t\t// D[4]\n.inst\t0xce7a8fbd\t//rax1 v29.16b,v29.16b,v26.16b\t\t\t// D[0]\n\n\t////////////////////////////////////////////////// Theta+Rho+Pi\n.inst\t0xce9efc39\t//xar v25.16b,   v1.16b,v30.16b,#64-1 // C[0]=A[2][0]\n\n.inst\t0xce9e50c1\t//xar v1.16b,v6.16b,v30.16b,#64-44\n.inst\t0xce9cb126\t//xar v6.16b,v9.16b,v28.16b,#64-20\n.inst\t0xce9f0ec9\t//xar v9.16b,v22.16b,v31.16b,#64-61\n.inst\t0xce9c65d6\t//xar v22.16b,v14.16b,v28.16b,#64-39\n.inst\t0xce9dba8e\t//xar v14.16b,v20.16b,v29.16b,#64-18\n\n.inst\t0xce9f085a\t//xar v26.16b,   v2.16b,v31.16b,#64-62 // C[1]=A[4][0]\n\n.inst\t0xce9f5582\t//xar v2.16b,v12.16b,v31.16b,#64-43\n.inst\t0xce9b9dac\t//xar v12.16b,v13.16b,v27.16b,#64-25\n.inst\t0xce9ce26d\t//xar v13.16b,v19.16b,v28.16b,#64-8", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:16", "text": ".inst\t0xce7b8f3e\t//rax1 v30.16b,v25.16b,v27.16b\t\t\t// D[1]\n.inst\t0xce7c8f5f\t//rax1 v31.16b,v26.16b,v28.16b\t\t\t// D[2]\n.inst\t0xce7d8f7b\t//rax1 v27.16b,v27.16b,v29.16b\t\t\t// D[3]\n.inst\t0xce798f9c\t//rax1 v28.16b,v28.16b,v25.16b\t\t\t// D[4]\n.inst\t0xce7a8fbd\t//rax1 v29.16b,v29.16b,v26.16b\t\t\t// D[0]\n\n\t////////////////////////////////////////////////// Theta+Rho+Pi\n.inst\t0xce9efc39\t//xar v25.16b,   v1.16b,v30.16b,#64-1 // C[0]=A[2][0]\n\n.inst\t0xce9e50c1\t//xar v1.16b,v6.16b,v30.16b,#64-44\n.inst\t0xce9cb126\t//xar v6.16b,v9.16b,v28.16b,#64-20\n.inst\t0xce9f0ec9\t//xar v9.16b,v22.16b,v31.16b,#64-61\n.inst\t0xce9c65d6\t//xar v22.16b,v14.16b,v28.16b,#64-39\n.inst\t0xce9dba8e\t//xar v14.16b,v20.16b,v29.16b,#64-18\n\n.inst\t0xce9f085a\t//xar v26.16b,   v2.16b,v31.16b,#64-62 // C[1]=A[4][0]\n\n.inst\t0xce9f5582\t//xar v2.16b,v12.16b,v31.16b,#64-43\n.inst\t0xce9b9dac\t//xar v12.16b,v13.16b,v27.16b,#64-25\n.inst\t0xce9ce26d\t//xar v13.16b,v19.16b,v28.16b,#64-8\n.inst\t0xce9b22f3\t//xar v19.16b,v23.16b,v27.16b,#64-56\n.inst\t0xce9d5df7\t//xar v23.16b,v15.16b,v29.16b,#64-41\n\n.inst\t0xce9c948f\t//xar v15.16b,v4.16b,v28.16b,#64-27\n\n.inst\t0xce9ccb1c\t//xar v28.16b,   v24.16b,v28.16b,#64-14 // D[4]=A[0][4]\n.inst\t0xce9efab8\t//xar v24.16b,v21.16b,v30.16b,#64-2\n.inst\t0xce9b2508\t//xar v8.16b,v8.16b,v27.16b,#64-55 // A[1][3]=A[4][1]\n.inst\t0xce9e4e04\t//xar v4.16b,v16.16b,v30.16b,#64-45 // A[0][4]=A[1][3]\n.inst\t0xce9d70b0\t//xar v16.16b,v5.16b,v29.16b,#64-36\n\n.inst\t0xce9b9065\t//xar v5.16b,v3.16b,v27.16b,#64-28\n\n\teor\tv0.16b,v0.16b,v29.16b\n\n.inst\t0xce9bae5b\t//xar v27.16b,   v18.16b,v27.16b,#64-21 // D[3]=A[0][3]\n.inst\t0xce9fc623\t//xar v3.16b,v17.16b,v31.16b,#64-15 // A[0][3]=A[3][3]\n.inst\t0xce9ed97e\t//xar v30.16b,   v11.16b,v30.16b,#64-10 // D[1]=A[3][2]\n.inst\t0xce9fe8ff\t//xar v31.16b,   v7.16b,v31.16b,#64-6 // D[2]=A[2][1]\n.inst\t0xce9df55d\t//xar v29.16b,   v10.16b,v29.16b,#64-3 // D[0]=A[1][2]\n\n\t////////////////////////////////////////////////// Chi+Iota\n.inst\t0xce362354\t//bcax v20.16b,v26.16b,   v22.16b,v8.16b\t// A[1][3]=A[4][1]\n.inst\t0xce375915\t//bcax v21.16b,v8.16b,v23.16b,v22.16b\t// A[1][3]=A[4][1]\n.inst\t0xce385ed6\t//bcax v22.16b,v22.16b,v24.16b,v23.16b\n.inst\t0xce3a62f7\t//bcax v23.16b,v23.16b,v26.16b,   v24.16b\n.inst\t0xce286b18\t//bcax v24.16b,v24.16b,v8.16b,v26.16b\t// A[1][3]=A[4][1]\n\n\tld1r\t{v26.2d},[x10],#8\n\n.inst\t0xce330fd1\t//bcax v17.16b,v30.16b,   v19.16b,v3.16b\t// A[0][3]=A[3][3]\n.inst\t0xce2f4c72\t//bcax v18.16b,v3.16b,v15.16b,v19.16b\t// A[0][3]=A[3][3]\n.inst\t0xce303e73\t//bcax v19.16b,v19.16b,v16.16b,v15.16b\n.inst\t0xce3e41ef\t//bcax v15.16b,v15.16b,v30.16b,   v16.16b\n.inst\t0xce237a10\t//bcax v16.16b,v16.16b,v3.16b,v30.16b\t// A[0][3]=A[3][3]\n\n.inst\t0xce2c7f2a\t//bcax v10.16b,v25.16b,   v12.16b,v31.16b\n.inst\t0xce2d33eb\t//bcax v11.16b,v31.16b,   v13.16b,v12.16b\n.inst\t0xce2e358c\t//bcax v12.16b,v12.16b,v14.16b,v13.16b\n.inst\t0xce3939ad\t//bcax v13.16b,v13.16b,v25.16b,   v14.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:17", "text": "////////////////////////////////////////////////// Chi+Iota\n.inst\t0xce362354\t//bcax v20.16b,v26.16b,   v22.16b,v8.16b\t// A[1][3]=A[4][1]\n.inst\t0xce375915\t//bcax v21.16b,v8.16b,v23.16b,v22.16b\t// A[1][3]=A[4][1]\n.inst\t0xce385ed6\t//bcax v22.16b,v22.16b,v24.16b,v23.16b\n.inst\t0xce3a62f7\t//bcax v23.16b,v23.16b,v26.16b,   v24.16b\n.inst\t0xce286b18\t//bcax v24.16b,v24.16b,v8.16b,v26.16b\t// A[1][3]=A[4][1]\n\n\tld1r\t{v26.2d},[x10],#8\n\n.inst\t0xce330fd1\t//bcax v17.16b,v30.16b,   v19.16b,v3.16b\t// A[0][3]=A[3][3]\n.inst\t0xce2f4c72\t//bcax v18.16b,v3.16b,v15.16b,v19.16b\t// A[0][3]=A[3][3]\n.inst\t0xce303e73\t//bcax v19.16b,v19.16b,v16.16b,v15.16b\n.inst\t0xce3e41ef\t//bcax v15.16b,v15.16b,v30.16b,   v16.16b\n.inst\t0xce237a10\t//bcax v16.16b,v16.16b,v3.16b,v30.16b\t// A[0][3]=A[3][3]\n\n.inst\t0xce2c7f2a\t//bcax v10.16b,v25.16b,   v12.16b,v31.16b\n.inst\t0xce2d33eb\t//bcax v11.16b,v31.16b,   v13.16b,v12.16b\n.inst\t0xce2e358c\t//bcax v12.16b,v12.16b,v14.16b,v13.16b\n.inst\t0xce3939ad\t//bcax v13.16b,v13.16b,v25.16b,   v14.16b\n.inst\t0xce3f65ce\t//bcax v14.16b,v14.16b,v31.16b,   v25.16b\n\n.inst\t0xce2913a7\t//bcax v7.16b,v29.16b,   v9.16b,v4.16b\t// A[0][4]=A[1][3]\n.inst\t0xce252488\t//bcax v8.16b,v4.16b,v5.16b,v9.16b\t// A[0][4]=A[1][3]\n.inst\t0xce261529\t//bcax v9.16b,v9.16b,v6.16b,v5.16b\n.inst\t0xce3d18a5\t//bcax v5.16b,v5.16b,v29.16b,   v6.16b\n.inst\t0xce2474c6\t//bcax v6.16b,v6.16b,v4.16b,v29.16b\t// A[0][4]=A[1][3]\n\n.inst\t0xce207363\t//bcax v3.16b,v27.16b,   v0.16b,v28.16b\n.inst\t0xce210384\t//bcax v4.16b,v28.16b,   v1.16b,v0.16b\n.inst\t0xce220400\t//bcax v0.16b,v0.16b,v2.16b,v1.16b\n.inst\t0xce3b0821\t//bcax v1.16b,v1.16b,v27.16b,   v2.16b\n.inst\t0xce3c6c42\t//bcax v2.16b,v2.16b,v28.16b,   v27.16b\n\n\teor\tv0.16b,v0.16b,v26.16b\n\n\tsubs\tx9,x9,#1\n\tbne\t.Loop_ce\n\n\tret\n.size\tKeccakF1600_ce,.-KeccakF1600_ce\n\n.type\tKeccakF1600_cext,%function\n.align\t5\nKeccakF1600_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tldp\td0,d1,[x0,#8*0]\n\tldp\td2,d3,[x0,#8*2]\n\tldp\td4,d5,[x0,#8*4]\n\tldp\td6,d7,[x0,#8*6]\n\tldp\td8,d9,[x0,#8*8]\n\tldp\td10,d11,[x0,#8*10]\n\tldp\td12,d13,[x0,#8*12]\n\tldp\td14,d15,[x0,#8*14]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:18", "text": ".size\tKeccakF1600_ce,.-KeccakF1600_ce\n\n.type\tKeccakF1600_cext,%function\n.align\t5\nKeccakF1600_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tldp\td0,d1,[x0,#8*0]\n\tldp\td2,d3,[x0,#8*2]\n\tldp\td4,d5,[x0,#8*4]\n\tldp\td6,d7,[x0,#8*6]\n\tldp\td8,d9,[x0,#8*8]\n\tldp\td10,d11,[x0,#8*10]\n\tldp\td12,d13,[x0,#8*12]\n\tldp\td14,d15,[x0,#8*14]\n\tldp\td16,d17,[x0,#8*16]\n\tldp\td18,d19,[x0,#8*18]\n\tldp\td20,d21,[x0,#8*20]\n\tldp\td22,d23,[x0,#8*22]\n\tldr\td24,[x0,#8*24]\n\tbl\tKeccakF1600_ce\n\tldr\tx30,[sp,#8]\n\tstp\td0,d1,[x0,#8*0]\n\tstp\td2,d3,[x0,#8*2]\n\tstp\td4,d5,[x0,#8*4]\n\tstp\td6,d7,[x0,#8*6]\n\tstp\td8,d9,[x0,#8*8]\n\tstp\td10,d11,[x0,#8*10]\n\tstp\td12,d13,[x0,#8*12]\n\tstp\td14,d15,[x0,#8*14]\n\tstp\td16,d17,[x0,#8*16]\n\tstp\td18,d19,[x0,#8*18]\n\tstp\td20,d21,[x0,#8*20]\n\tstp\td22,d23,[x0,#8*22]\n\tstr\td24,[x0,#8*24]\n\n\tldp\td8,d9,[sp,#16]\n\tldp\td10,d11,[sp,#32]\n\tldp\td12,d13,[sp,#48]\n\tldp\td14,d15,[sp,#64]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_cext,.-KeccakF1600_cext\n.globl\tSHA3_absorb_cext\n.type\tSHA3_absorb_cext,%function\n.align\t5\nSHA3_absorb_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:19", "text": "ldp\td8,d9,[sp,#16]\n\tldp\td10,d11,[sp,#32]\n\tldp\td12,d13,[sp,#48]\n\tldp\td14,d15,[sp,#64]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_cext,.-KeccakF1600_cext\n.globl\tSHA3_absorb_cext\n.type\tSHA3_absorb_cext,%function\n.align\t5\nSHA3_absorb_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tldp\td0,d1,[x0,#8*0]\n\tldp\td2,d3,[x0,#8*2]\n\tldp\td4,d5,[x0,#8*4]\n\tldp\td6,d7,[x0,#8*6]\n\tldp\td8,d9,[x0,#8*8]\n\tldp\td10,d11,[x0,#8*10]\n\tldp\td12,d13,[x0,#8*12]\n\tldp\td14,d15,[x0,#8*14]\n\tldp\td16,d17,[x0,#8*16]\n\tldp\td18,d19,[x0,#8*18]\n\tldp\td20,d21,[x0,#8*20]\n\tldp\td22,d23,[x0,#8*22]\n\tldr\td24,[x0,#8*24]\n\tb\t.Loop_absorb_ce\n\n.align\t4\n.Loop_absorb_ce:\n\tsubs\tx2,x2,x3\t\t// len - bsz\n\tblo\t.Labsorbed_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv0.16b,v0.16b,v31.16b\n\tcmp\tx3,#8*(0+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv1.16b,v1.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv2.16b,v2.16b,v31.16b\n\tcmp\tx3,#8*(2+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:20", "text": "#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv0.16b,v0.16b,v31.16b\n\tcmp\tx3,#8*(0+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv1.16b,v1.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv2.16b,v2.16b,v31.16b\n\tcmp\tx3,#8*(2+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv3.16b,v3.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv4.16b,v4.16b,v31.16b\n\tcmp\tx3,#8*(4+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv5.16b,v5.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv6.16b,v6.16b,v31.16b\n\tcmp\tx3,#8*(6+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv7.16b,v7.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv8.16b,v8.16b,v31.16b\n\tcmp\tx3,#8*(8+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:21", "text": "rev64\tv31.16b,v31.16b\n#endif\n\teor\tv6.16b,v6.16b,v31.16b\n\tcmp\tx3,#8*(6+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv7.16b,v7.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv8.16b,v8.16b,v31.16b\n\tcmp\tx3,#8*(8+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv9.16b,v9.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv10.16b,v10.16b,v31.16b\n\tcmp\tx3,#8*(10+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv11.16b,v11.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv12.16b,v12.16b,v31.16b\n\tcmp\tx3,#8*(12+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv13.16b,v13.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv14.16b,v14.16b,v31.16b\n\tcmp\tx3,#8*(14+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:22", "text": "#endif\n\teor\tv12.16b,v12.16b,v31.16b\n\tcmp\tx3,#8*(12+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv13.16b,v13.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv14.16b,v14.16b,v31.16b\n\tcmp\tx3,#8*(14+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv15.16b,v15.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv16.16b,v16.16b,v31.16b\n\tcmp\tx3,#8*(16+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv17.16b,v17.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv18.16b,v18.16b,v31.16b\n\tcmp\tx3,#8*(18+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv19.16b,v19.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv20.16b,v20.16b,v31.16b\n\tcmp\tx3,#8*(20+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:23", "text": "eor\tv18.16b,v18.16b,v31.16b\n\tcmp\tx3,#8*(18+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv19.16b,v19.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv20.16b,v20.16b,v31.16b\n\tcmp\tx3,#8*(20+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv21.16b,v21.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv22.16b,v22.16b,v31.16b\n\tcmp\tx3,#8*(22+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv23.16b,v23.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv24.16b,v24.16b,v31.16b\n\n.Lprocess_block_ce:\n\n\tbl\tKeccakF1600_ce\n\n\tb\t.Loop_absorb_ce\n\n.align\t4\n.Labsorbed_ce:\n\tstp\td0,d1,[x0,#8*0]\n\tstp\td2,d3,[x0,#8*2]\n\tstp\td4,d5,[x0,#8*4]\n\tstp\td6,d7,[x0,#8*6]\n\tstp\td8,d9,[x0,#8*8]\n\tstp\td10,d11,[x0,#8*10]\n\tstp\td12,d13,[x0,#8*12]\n\tstp\td14,d15,[x0,#8*14]\n\tstp\td16,d17,[x0,#8*16]\n\tstp\td18,d19,[x0,#8*18]\n\tstp\td20,d21,[x0,#8*20]", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:24", "text": ".Lprocess_block_ce:\n\n\tbl\tKeccakF1600_ce\n\n\tb\t.Loop_absorb_ce\n\n.align\t4\n.Labsorbed_ce:\n\tstp\td0,d1,[x0,#8*0]\n\tstp\td2,d3,[x0,#8*2]\n\tstp\td4,d5,[x0,#8*4]\n\tstp\td6,d7,[x0,#8*6]\n\tstp\td8,d9,[x0,#8*8]\n\tstp\td10,d11,[x0,#8*10]\n\tstp\td12,d13,[x0,#8*12]\n\tstp\td14,d15,[x0,#8*14]\n\tstp\td16,d17,[x0,#8*16]\n\tstp\td18,d19,[x0,#8*18]\n\tstp\td20,d21,[x0,#8*20]\n\tstp\td22,d23,[x0,#8*22]\n\tstr\td24,[x0,#8*24]\n\tadd\tx0,x2,x3\t\t// return value\n\n\tldp\td8,d9,[sp,#16]\n\tldp\td10,d11,[sp,#32]\n\tldp\td12,d13,[sp,#48]\n\tldp\td14,d15,[sp,#64]\n\tldp\tx29,x30,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_absorb_cext,.-SHA3_absorb_cext\n.globl\tSHA3_squeeze_cext\n.type\tSHA3_squeeze_cext,%function\n.align\t5\nSHA3_squeeze_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tmov\tx9,x0\n\tmov\tx10,x3\n\n.Loop_squeeze_ce:\n\tldr\tx4,[x9],#8\n\tcmp\tx2,#8\n\tblo\t.Lsqueeze_tail_ce\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x1],#8\n\tbeq\t.Lsqueeze_done_ce\n\n\tsub\tx2,x2,#8\n\tsubs\tx10,x10,#8\n\tbhi\t.Loop_squeeze_ce\n\n\tbl\tKeccakF1600_cext\n\tldr\tx30,[sp,#8]\n\tmov\tx9,x0\n\tmov\tx10,x3", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:25", "text": "mov\tx10,x3\n\n.Loop_squeeze_ce:\n\tldr\tx4,[x9],#8\n\tcmp\tx2,#8\n\tblo\t.Lsqueeze_tail_ce\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x1],#8\n\tbeq\t.Lsqueeze_done_ce\n\n\tsub\tx2,x2,#8\n\tsubs\tx10,x10,#8\n\tbhi\t.Loop_squeeze_ce\n\n\tbl\tKeccakF1600_cext\n\tldr\tx30,[sp,#8]\n\tmov\tx9,x0\n\tmov\tx10,x3\n\tb\t.Loop_squeeze_ce\n\n.align\t4\n.Lsqueeze_tail_ce:\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\n.Lsqueeze_done_ce:\n\tldr\tx29,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze_cext,.-SHA3_squeeze_cext\n.byte\t75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 961, "line_end": 1017}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S:26", "text": "strb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\n.Lsqueeze_done_ce:\n\tldr\tx29,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze_cext,.-SHA3_squeeze_cext\n.byte\t75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/keccak1600-armv8.S", "line_start": 1001, "line_end": 1017}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:1", "text": "#include \"arm_arch.h\"\n\n.text\n\n// forward \"declarations\" are required for Apple\n\n.hidden\tOPENSSL_armcap_P\n.globl\tpoly1305_init\n.hidden\tpoly1305_init\n.globl\tpoly1305_blocks\n.hidden\tpoly1305_blocks\n.globl\tpoly1305_emit\n.hidden\tpoly1305_emit\n\n.type\tpoly1305_init,%function\n.align\t5\npoly1305_init:\n\tAARCH64_VALID_CALL_TARGET\n\tcmp\tx1,xzr\n\tstp\txzr,xzr,[x0]\t\t// zero hash value\n\tstp\txzr,xzr,[x0,#16]\t// [along with is_base2_26]\n\n\tcsel\tx0,xzr,x0,eq\n\tb.eq\t.Lno_key\n\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n\n\tldp\tx7,x8,[x1]\t\t// load key\n\tmov\tx9,#0xfffffffc0fffffff\n\tmovk\tx9,#0x0fff,lsl#48\n#ifdef\t__AARCH64EB__\n\trev\tx7,x7\t\t\t// flip bytes\n\trev\tx8,x8\n#endif\n\tand\tx7,x7,x9\t\t// &=0ffffffc0fffffff\n\tand\tx9,x9,#-4\n\tand\tx8,x8,x9\t\t// &=0ffffffc0ffffffc\n\tstp\tx7,x8,[x0,#32]\t// save key value\n\n\ttst\tw17,#ARMV7_NEON\n\n\tadrp\tx12,poly1305_blocks\n\tadd\tx12,x12,#:lo12:.Lpoly1305_blocks\n\tadrp\tx7,poly1305_blocks_neon\n\tadd\tx7,x7,#:lo12:.Lpoly1305_blocks_neon\n\tadrp\tx13,poly1305_emit\n\tadd\tx13,x13,#:lo12:.Lpoly1305_emit\n\tadrp\tx8,poly1305_emit_neon\n\tadd\tx8,x8,#:lo12:.Lpoly1305_emit_neon\n\n\tcsel\tx12,x12,x7,eq\n\tcsel\tx13,x13,x8,eq\n\n#ifdef\t__ILP32__\n\tstp\tw12,w13,[x2]\n#else\n\tstp\tx12,x13,[x2]\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:2", "text": "tst\tw17,#ARMV7_NEON\n\n\tadrp\tx12,poly1305_blocks\n\tadd\tx12,x12,#:lo12:.Lpoly1305_blocks\n\tadrp\tx7,poly1305_blocks_neon\n\tadd\tx7,x7,#:lo12:.Lpoly1305_blocks_neon\n\tadrp\tx13,poly1305_emit\n\tadd\tx13,x13,#:lo12:.Lpoly1305_emit\n\tadrp\tx8,poly1305_emit_neon\n\tadd\tx8,x8,#:lo12:.Lpoly1305_emit_neon\n\n\tcsel\tx12,x12,x7,eq\n\tcsel\tx13,x13,x8,eq\n\n#ifdef\t__ILP32__\n\tstp\tw12,w13,[x2]\n#else\n\tstp\tx12,x13,[x2]\n#endif\n\n\tmov\tx0,#1\n.Lno_key:\n\tret\n.size\tpoly1305_init,.-poly1305_init\n\n.type\tpoly1305_blocks,%function\n.align\t5\npoly1305_blocks:\n.Lpoly1305_blocks:\n\t// The symbol .Lpoly1305_blocks is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tands\tx2,x2,#-16\n\tb.eq\t.Lno_data\n\n\tldp\tx4,x5,[x0]\t\t// load hash value\n\tldp\tx7,x8,[x0,#32]\t// load key value\n\tldr\tx6,[x0,#16]\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\tb\t.Loop\n\n.align\t5\n.Loop:\n\tldp\tx10,x11,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n#ifdef\t__AARCH64EB__\n\trev\tx10,x10\n\trev\tx11,x11\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate input\n\tadcs\tx5,x5,x11\n\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tadc\tx6,x6,x3\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:3", "text": ".align\t5\n.Loop:\n\tldp\tx10,x11,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n#ifdef\t__AARCH64EB__\n\trev\tx10,x10\n\trev\tx11,x11\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate input\n\tadcs\tx5,x5,x11\n\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tadc\tx6,x6,x3\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10\n\tmul\tx10,x4,x8\t\t// h0*r1\n\tadc\tx13,x13,x11\n\tumulh\tx14,x4,x8\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x5,x7\t\t// h1*r0\n\tadc\tx14,x14,xzr\n\tumulh\tx11,x5,x7\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x6,x9\t\t// h2*5*r1\n\tadc\tx14,x14,x11\n\tmul\tx11,x6,x7\t\t// h2*r0\n\n\tadds\tx13,x13,x10\n\tadc\tx14,x14,x11\n\n\tand\tx10,x14,#-4\t\t// final reduction\n\tand\tx6,x14,#3\n\tadd\tx10,x10,x14,lsr#2\n\tadds\tx4,x12,x10\n\tadcs\tx5,x13,xzr\n\tadc\tx6,x6,xzr\n\n\tcbnz\tx2,.Loop\n\n\tstp\tx4,x5,[x0]\t\t// store hash value\n\tstr\tx6,[x0,#16]\n\n.Lno_data:\n\tret\n.size\tpoly1305_blocks,.-poly1305_blocks\n\n.type\tpoly1305_emit,%function\n.align\t5\npoly1305_emit:\n.Lpoly1305_emit:\n\t// The symbol .poly1305_emit is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:4", "text": "adds\tx4,x12,x10\n\tadcs\tx5,x13,xzr\n\tadc\tx6,x6,xzr\n\n\tcbnz\tx2,.Loop\n\n\tstp\tx4,x5,[x0]\t\t// store hash value\n\tstr\tx6,[x0,#16]\n\n.Lno_data:\n\tret\n.size\tpoly1305_blocks,.-poly1305_blocks\n\n.type\tpoly1305_emit,%function\n.align\t5\npoly1305_emit:\n.Lpoly1305_emit:\n\t// The symbol .poly1305_emit is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tldp\tx4,x5,[x0]\t\t// load hash base 2^64\n\tldr\tx6,[x0,#16]\n\tldp\tx10,x11,[x2]\t// load nonce\n\n\tadds\tx12,x4,#5\t\t// compare to modulus\n\tadcs\tx13,x5,xzr\n\tadc\tx14,x6,xzr\n\n\ttst\tx14,#-4\t\t\t// see if it's carried/borrowed\n\n\tcsel\tx4,x4,x12,eq\n\tcsel\tx5,x5,x13,eq\n\n#ifdef\t__AARCH64EB__\n\tror\tx10,x10,#32\t\t// flip nonce words\n\tror\tx11,x11,#32\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate nonce\n\tadc\tx5,x5,x11\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\t\t\t// flip output bytes\n\trev\tx5,x5\n#endif\n\tstp\tx4,x5,[x1]\t\t// write result\n\n\tret\n.size\tpoly1305_emit,.-poly1305_emit\n.type\tpoly1305_mult,%function\n.align\t5\npoly1305_mult:\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10\n\tmul\tx10,x4,x8\t\t// h0*r1\n\tadc\tx13,x13,x11\n\tumulh\tx14,x4,x8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:5", "text": "rev\tx4,x4\t\t\t// flip output bytes\n\trev\tx5,x5\n#endif\n\tstp\tx4,x5,[x1]\t\t// write result\n\n\tret\n.size\tpoly1305_emit,.-poly1305_emit\n.type\tpoly1305_mult,%function\n.align\t5\npoly1305_mult:\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10\n\tmul\tx10,x4,x8\t\t// h0*r1\n\tadc\tx13,x13,x11\n\tumulh\tx14,x4,x8\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x5,x7\t\t// h1*r0\n\tadc\tx14,x14,xzr\n\tumulh\tx11,x5,x7\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x6,x9\t\t// h2*5*r1\n\tadc\tx14,x14,x11\n\tmul\tx11,x6,x7\t\t// h2*r0\n\n\tadds\tx13,x13,x10\n\tadc\tx14,x14,x11\n\n\tand\tx10,x14,#-4\t\t// final reduction\n\tand\tx6,x14,#3\n\tadd\tx10,x10,x14,lsr#2\n\tadds\tx4,x12,x10\n\tadcs\tx5,x13,xzr\n\tadc\tx6,x6,xzr\n\n\tret\n.size\tpoly1305_mult,.-poly1305_mult\n\n.type\tpoly1305_splat,%function\n.align\t5\npoly1305_splat:\n\tand\tx12,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx13,x4,#26,#26\n\textr\tx14,x5,x4,#52\n\tand\tx14,x14,#0x03ffffff\n\tubfx\tx15,x5,#14,#26\n\textr\tx16,x6,x5,#40\n\n\tstr\tw12,[x0,#16*0]\t// r0\n\tadd\tw12,w13,w13,lsl#2\t// r1*5\n\tstr\tw13,[x0,#16*1]\t// r1\n\tadd\tw13,w14,w14,lsl#2\t// r2*5\n\tstr\tw12,[x0,#16*2]\t// s1\n\tstr\tw14,[x0,#16*3]\t// r2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:6", "text": "ret\n.size\tpoly1305_mult,.-poly1305_mult\n\n.type\tpoly1305_splat,%function\n.align\t5\npoly1305_splat:\n\tand\tx12,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx13,x4,#26,#26\n\textr\tx14,x5,x4,#52\n\tand\tx14,x14,#0x03ffffff\n\tubfx\tx15,x5,#14,#26\n\textr\tx16,x6,x5,#40\n\n\tstr\tw12,[x0,#16*0]\t// r0\n\tadd\tw12,w13,w13,lsl#2\t// r1*5\n\tstr\tw13,[x0,#16*1]\t// r1\n\tadd\tw13,w14,w14,lsl#2\t// r2*5\n\tstr\tw12,[x0,#16*2]\t// s1\n\tstr\tw14,[x0,#16*3]\t// r2\n\tadd\tw14,w15,w15,lsl#2\t// r3*5\n\tstr\tw13,[x0,#16*4]\t// s2\n\tstr\tw15,[x0,#16*5]\t// r3\n\tadd\tw15,w16,w16,lsl#2\t// r4*5\n\tstr\tw14,[x0,#16*6]\t// s3\n\tstr\tw16,[x0,#16*7]\t// r4\n\tstr\tw15,[x0,#16*8]\t// s4\n\n\tret\n.size\tpoly1305_splat,.-poly1305_splat\n\n.type\tpoly1305_blocks_neon,%function\n.align\t5\npoly1305_blocks_neon:\n.Lpoly1305_blocks_neon:\n\t// The symbol .Lpoly1305_blocks_neon is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tldr\tx17,[x0,#24]\n\tcmp\tx2,#128\n\tb.hs\t.Lblocks_neon\n\tcbz\tx17,.Lpoly1305_blocks\n\n.Lblocks_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\n\tands\tx2,x2,#-16\n\tb.eq\t.Lno_data_neon\n\n\tcbz\tx17,.Lbase2_64_neon\n\n\tldp\tw10,w11,[x0]\t\t// load hash value base 2^26\n\tldp\tw12,w13,[x0,#8]\n\tldr\tw14,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Leven_neon", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:7", "text": "b.hs\t.Lblocks_neon\n\tcbz\tx17,.Lpoly1305_blocks\n\n.Lblocks_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\n\tands\tx2,x2,#-16\n\tb.eq\t.Lno_data_neon\n\n\tcbz\tx17,.Lbase2_64_neon\n\n\tldp\tw10,w11,[x0]\t\t// load hash value base 2^26\n\tldp\tw12,w13,[x0,#8]\n\tldr\tw14,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Leven_neon\n\n\tldp\tx7,x8,[x0,#32]\t// load key value\n\n\tadd\tx4,x10,x11,lsl#26\t// base 2^26 -> base 2^64\n\tlsr\tx5,x12,#12\n\tadds\tx4,x4,x12,lsl#52\n\tadd\tx5,x5,x13,lsl#14\n\tadc\tx5,x5,xzr\n\tlsr\tx6,x14,#24\n\tadds\tx5,x5,x14,lsl#40\n\tadc\tx14,x6,xzr\t\t// can be partially reduced...\n\n\tldp\tx12,x13,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\n\tand\tx10,x14,#-4\t\t// ... so reduce\n\tand\tx6,x14,#3\n\tadd\tx10,x10,x14,lsr#2\n\tadds\tx4,x4,x10\n\tadcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\tldr\tx30,[sp,#8]\n\n\tcbz\tx3,.Lstore_base2_64_neon\n\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx11,x4,#26,#26\n\textr\tx12,x5,x4,#52\n\tand\tx12,x12,#0x03ffffff\n\tubfx\tx13,x5,#14,#26", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:8", "text": "adc\tx6,x6,xzr\n\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\tldr\tx30,[sp,#8]\n\n\tcbz\tx3,.Lstore_base2_64_neon\n\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx11,x4,#26,#26\n\textr\tx12,x5,x4,#52\n\tand\tx12,x12,#0x03ffffff\n\tubfx\tx13,x5,#14,#26\n\textr\tx14,x6,x5,#40\n\n\tcbnz\tx2,.Leven_neon\n\n\tstp\tw10,w11,[x0]\t\t// store hash value base 2^26\n\tstp\tw12,w13,[x0,#8]\n\tstr\tw14,[x0,#16]\n\tb\t.Lno_data_neon\n\n.align\t4\n.Lstore_base2_64_neon:\n\tstp\tx4,x5,[x0]\t\t// store hash value base 2^64\n\tstp\tx6,xzr,[x0,#16]\t// note that is_base2_26 is zeroed\n\tb\t.Lno_data_neon\n\n.align\t4\n.Lbase2_64_neon:\n\tldp\tx7,x8,[x0,#32]\t// load key value\n\n\tldp\tx4,x5,[x0]\t\t// load hash value base 2^64\n\tldr\tx6,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Linit_neon\n\n\tldp\tx12,x13,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\n.Linit_neon:\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:9", "text": "ldr\tx6,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Linit_neon\n\n\tldp\tx12,x13,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\n.Linit_neon:\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx11,x4,#26,#26\n\textr\tx12,x5,x4,#52\n\tand\tx12,x12,#0x03ffffff\n\tubfx\tx13,x5,#14,#26\n\textr\tx14,x6,x5,#40\n\n\tstp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\n\tfmov\td24,x10\n\tfmov\td25,x11\n\tfmov\td26,x12\n\tfmov\td27,x13\n\tfmov\td28,x14\n\n\t////////////////////////////////// initialize r^n table\n\tmov\tx4,x7\t\t\t// r^1\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\tmov\tx5,x8\n\tmov\tx6,xzr\n\tadd\tx0,x0,#48+12\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^2\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^3\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^4\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\tldr\tx30,[sp,#8]\n\n\tadd\tx16,x1,#32\n\tadrp\tx17,.Lzeros", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:10", "text": "mov\tx5,x8\n\tmov\tx6,xzr\n\tadd\tx0,x0,#48+12\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^2\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^3\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^4\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\tldr\tx30,[sp,#8]\n\n\tadd\tx16,x1,#32\n\tadrp\tx17,.Lzeros\n\tadd\tx17,x17,#:lo12:.Lzeros\n\tsubs\tx2,x2,#64\n\tcsel\tx16,x17,x16,lo\n\n\tmov\tx4,#1\n\tstur\tx4,[x0,#-24]\t\t// set is_base2_26\n\tsub\tx0,x0,#48\t\t// restore original x0\n\tb\t.Ldo_neon\n\n.align\t4\n.Leven_neon:\n\tadd\tx16,x1,#32\n\tadrp\tx17,.Lzeros\n\tadd\tx17,x17,#:lo12:.Lzeros\n\tsubs\tx2,x2,#64\n\tcsel\tx16,x17,x16,lo\n\n\tstp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\n\tfmov\td24,x10\n\tfmov\td25,x11\n\tfmov\td26,x12\n\tfmov\td27,x13\n\tfmov\td28,x14\n\n.Ldo_neon:\n\tldp\tx8,x12,[x16],#16\t// inp[2:3] (or zero)\n\tldp\tx9,x13,[x16],#48\n\n\tlsl\tx3,x3,#24\n\tadd\tx15,x0,#48\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:11", "text": "stp\td14,d15,[sp,#64]\n\n\tfmov\td24,x10\n\tfmov\td25,x11\n\tfmov\td26,x12\n\tfmov\td27,x13\n\tfmov\td28,x14\n\n.Ldo_neon:\n\tldp\tx8,x12,[x16],#16\t// inp[2:3] (or zero)\n\tldp\tx9,x13,[x16],#48\n\n\tlsl\tx3,x3,#24\n\tadd\tx15,x0,#48\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tand\tx5,x9,#0x03ffffff\n\tubfx\tx6,x8,#26,#26\n\tubfx\tx7,x9,#26,#26\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\textr\tx8,x12,x8,#52\n\textr\tx9,x13,x9,#52\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tfmov\td14,x4\n\tand\tx8,x8,#0x03ffffff\n\tand\tx9,x9,#0x03ffffff\n\tubfx\tx10,x12,#14,#26\n\tubfx\tx11,x13,#14,#26\n\tadd\tx12,x3,x12,lsr#40\n\tadd\tx13,x3,x13,lsr#40\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tfmov\td15,x6\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tfmov\td16,x8\n\tfmov\td17,x10\n\tfmov\td18,x12\n\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tldp\tx9,x13,[x1],#48\n\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x15],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x15],#64\n\tld1\t{v8.4s},[x15]\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tand\tx5,x9,#0x03ffffff\n\tubfx\tx6,x8,#26,#26", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:12", "text": "fmov\td16,x8\n\tfmov\td17,x10\n\tfmov\td18,x12\n\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tldp\tx9,x13,[x1],#48\n\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x15],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x15],#64\n\tld1\t{v8.4s},[x15]\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tand\tx5,x9,#0x03ffffff\n\tubfx\tx6,x8,#26,#26\n\tubfx\tx7,x9,#26,#26\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\textr\tx8,x12,x8,#52\n\textr\tx9,x13,x9,#52\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tfmov\td9,x4\n\tand\tx8,x8,#0x03ffffff\n\tand\tx9,x9,#0x03ffffff\n\tubfx\tx10,x12,#14,#26\n\tubfx\tx11,x13,#14,#26\n\tadd\tx12,x3,x12,lsr#40\n\tadd\tx13,x3,x13,lsr#40\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tfmov\td10,x6\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tmovi\tv31.2d,#-1\n\tfmov\td11,x8\n\tfmov\td12,x10\n\tfmov\td13,x12\n\tushr\tv31.2d,v31.2d,#38\n\n\tb.ls\t.Lskip_loop\n\n.align\t4\n.Loop_neon:\n\t////////////////////////////////////////////////////////////////\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^3+inp[7]*r\n\t//   ___________________/\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2+inp[8])*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^4+inp[7]*r^2+inp[9])*r\n\t//   ___________________/ ____________________/\n\t//\n\t// Note that we start with inp[2:3]*r^2. This is because it\n\t// doesn't depend on reduction in previous iteration.\n\t////////////////////////////////////////////////////////////////\n\t// d4 = h0*r4 + h1*r3   + h2*r2   + h3*r1   + h4*r0\n\t// d3 = h0*r3 + h1*r2   + h2*r1   + h3*r0   + h4*5*r4\n\t// d2 = h0*r2 + h1*r1   + h2*r0   + h3*5*r4 + h4*5*r3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:13", "text": "ushr\tv31.2d,v31.2d,#38\n\n\tb.ls\t.Lskip_loop\n\n.align\t4\n.Loop_neon:\n\t////////////////////////////////////////////////////////////////\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^3+inp[7]*r\n\t//   ___________________/\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2+inp[8])*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^4+inp[7]*r^2+inp[9])*r\n\t//   ___________________/ ____________________/\n\t//\n\t// Note that we start with inp[2:3]*r^2. This is because it\n\t// doesn't depend on reduction in previous iteration.\n\t////////////////////////////////////////////////////////////////\n\t// d4 = h0*r4 + h1*r3   + h2*r2   + h3*r1   + h4*r0\n\t// d3 = h0*r3 + h1*r2   + h2*r1   + h3*r0   + h4*5*r4\n\t// d2 = h0*r2 + h1*r1   + h2*r0   + h3*5*r4 + h4*5*r3\n\t// d1 = h0*r1 + h1*r0   + h2*5*r4 + h3*5*r3 + h4*5*r2\n\t// d0 = h0*r0 + h1*5*r4 + h2*5*r3 + h3*5*r2 + h4*5*r1\n\n\tsubs\tx2,x2,#64\n\tumull\tv23.2d,v14.2s,v7.s[2]\n\tcsel\tx16,x17,x16,lo\n\tumull\tv22.2d,v14.2s,v5.s[2]\n\tumull\tv21.2d,v14.2s,v3.s[2]\n\tldp\tx8,x12,[x16],#16\t// inp[2:3] (or zero)\n\tumull\tv20.2d,v14.2s,v1.s[2]\n\tldp\tx9,x13,[x16],#48\n\tumull\tv19.2d,v14.2s,v0.s[2]\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\n\tumlal\tv23.2d,v15.2s,v5.s[2]\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tumlal\tv22.2d,v15.2s,v3.s[2]\n\tand\tx5,x9,#0x03ffffff\n\tumlal\tv21.2d,v15.2s,v1.s[2]\n\tubfx\tx6,x8,#26,#26\n\tumlal\tv20.2d,v15.2s,v0.s[2]\n\tubfx\tx7,x9,#26,#26\n\tumlal\tv19.2d,v15.2s,v8.s[2]\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\n\tumlal\tv23.2d,v16.2s,v3.s[2]\n\textr\tx8,x12,x8,#52\n\tumlal\tv22.2d,v16.2s,v1.s[2]\n\textr\tx9,x13,x9,#52\n\tumlal\tv21.2d,v16.2s,v0.s[2]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv20.2d,v16.2s,v8.s[2]\n\tfmov\td14,x4\n\tumlal\tv19.2d,v16.2s,v6.s[2]\n\tand\tx8,x8,#0x03ffffff", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:14", "text": "and\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tumlal\tv22.2d,v15.2s,v3.s[2]\n\tand\tx5,x9,#0x03ffffff\n\tumlal\tv21.2d,v15.2s,v1.s[2]\n\tubfx\tx6,x8,#26,#26\n\tumlal\tv20.2d,v15.2s,v0.s[2]\n\tubfx\tx7,x9,#26,#26\n\tumlal\tv19.2d,v15.2s,v8.s[2]\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\n\tumlal\tv23.2d,v16.2s,v3.s[2]\n\textr\tx8,x12,x8,#52\n\tumlal\tv22.2d,v16.2s,v1.s[2]\n\textr\tx9,x13,x9,#52\n\tumlal\tv21.2d,v16.2s,v0.s[2]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv20.2d,v16.2s,v8.s[2]\n\tfmov\td14,x4\n\tumlal\tv19.2d,v16.2s,v6.s[2]\n\tand\tx8,x8,#0x03ffffff\n\n\tumlal\tv23.2d,v17.2s,v1.s[2]\n\tand\tx9,x9,#0x03ffffff\n\tumlal\tv22.2d,v17.2s,v0.s[2]\n\tubfx\tx10,x12,#14,#26\n\tumlal\tv21.2d,v17.2s,v8.s[2]\n\tubfx\tx11,x13,#14,#26\n\tumlal\tv20.2d,v17.2s,v6.s[2]\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tumlal\tv19.2d,v17.2s,v4.s[2]\n\tfmov\td15,x6\n\n\tadd\tv11.2s,v11.2s,v26.2s\n\tadd\tx12,x3,x12,lsr#40\n\tumlal\tv23.2d,v18.2s,v0.s[2]\n\tadd\tx13,x3,x13,lsr#40\n\tumlal\tv22.2d,v18.2s,v8.s[2]\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tumlal\tv21.2d,v18.2s,v6.s[2]\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tumlal\tv20.2d,v18.2s,v4.s[2]\n\tfmov\td16,x8\n\tumlal\tv19.2d,v18.2s,v2.s[2]\n\tfmov\td17,x10\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tfmov\td18,x12\n\tumlal\tv22.2d,v11.2s,v1.s[0]\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tumlal\tv19.2d,v11.2s,v6.s[0]\n\tldp\tx9,x13,[x1],#48\n\tumlal\tv23.2d,v11.2s,v3.s[0]\n\tumlal\tv20.2d,v11.2s,v8.s[0]\n\tumlal\tv21.2d,v11.2s,v0.s[0]\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:15", "text": "umlal\tv20.2d,v18.2s,v4.s[2]\n\tfmov\td16,x8\n\tumlal\tv19.2d,v18.2s,v2.s[2]\n\tfmov\td17,x10\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tfmov\td18,x12\n\tumlal\tv22.2d,v11.2s,v1.s[0]\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tumlal\tv19.2d,v11.2s,v6.s[0]\n\tldp\tx9,x13,[x1],#48\n\tumlal\tv23.2d,v11.2s,v3.s[0]\n\tumlal\tv20.2d,v11.2s,v8.s[0]\n\tumlal\tv21.2d,v11.2s,v0.s[0]\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\n\tadd\tv10.2s,v10.2s,v25.2s\n\tumlal\tv22.2d,v9.2s,v5.s[0]\n\tumlal\tv23.2d,v9.2s,v7.s[0]\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tumlal\tv21.2d,v9.2s,v3.s[0]\n\tand\tx5,x9,#0x03ffffff\n\tumlal\tv19.2d,v9.2s,v0.s[0]\n\tubfx\tx6,x8,#26,#26\n\tumlal\tv20.2d,v9.2s,v1.s[0]\n\tubfx\tx7,x9,#26,#26\n\n\tadd\tv12.2s,v12.2s,v27.2s\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\tumlal\tv22.2d,v10.2s,v3.s[0]\n\textr\tx8,x12,x8,#52\n\tumlal\tv23.2d,v10.2s,v5.s[0]\n\textr\tx9,x13,x9,#52\n\tumlal\tv19.2d,v10.2s,v8.s[0]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv21.2d,v10.2s,v1.s[0]\n\tfmov\td9,x4\n\tumlal\tv20.2d,v10.2s,v0.s[0]\n\tand\tx8,x8,#0x03ffffff\n\n\tadd\tv13.2s,v13.2s,v28.2s\n\tand\tx9,x9,#0x03ffffff\n\tumlal\tv22.2d,v12.2s,v0.s[0]\n\tubfx\tx10,x12,#14,#26\n\tumlal\tv19.2d,v12.2s,v4.s[0]\n\tubfx\tx11,x13,#14,#26\n\tumlal\tv23.2d,v12.2s,v1.s[0]\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tumlal\tv20.2d,v12.2s,v6.s[0]\n\tfmov\td10,x6\n\tumlal\tv21.2d,v12.2s,v8.s[0]\n\tadd\tx12,x3,x12,lsr#40", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:16", "text": "extr\tx9,x13,x9,#52\n\tumlal\tv19.2d,v10.2s,v8.s[0]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv21.2d,v10.2s,v1.s[0]\n\tfmov\td9,x4\n\tumlal\tv20.2d,v10.2s,v0.s[0]\n\tand\tx8,x8,#0x03ffffff\n\n\tadd\tv13.2s,v13.2s,v28.2s\n\tand\tx9,x9,#0x03ffffff\n\tumlal\tv22.2d,v12.2s,v0.s[0]\n\tubfx\tx10,x12,#14,#26\n\tumlal\tv19.2d,v12.2s,v4.s[0]\n\tubfx\tx11,x13,#14,#26\n\tumlal\tv23.2d,v12.2s,v1.s[0]\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tumlal\tv20.2d,v12.2s,v6.s[0]\n\tfmov\td10,x6\n\tumlal\tv21.2d,v12.2s,v8.s[0]\n\tadd\tx12,x3,x12,lsr#40\n\n\tumlal\tv22.2d,v13.2s,v8.s[0]\n\tadd\tx13,x3,x13,lsr#40\n\tumlal\tv19.2d,v13.2s,v2.s[0]\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tumlal\tv23.2d,v13.2s,v0.s[0]\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tumlal\tv20.2d,v13.2s,v4.s[0]\n\tfmov\td11,x8\n\tumlal\tv21.2d,v13.2s,v6.s[0]\n\tfmov\td12,x10\n\tfmov\td13,x12\n\n\t/////////////////////////////////////////////////////////////////\n\t// lazy reduction as discussed in \"NEON crypto\" by D.J. Bernstein\n\t// and P. Schwabe\n\t//\n\t// [see discussion in poly1305-armv4 module]\n\n\tushr\tv29.2d,v22.2d,#26\n\txtn\tv27.2s,v22.2d\n\tushr\tv30.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tadd\tv23.2d,v23.2d,v29.2d\t// h3 -> h4\n\tbic\tv27.2s,#0xfc,lsl#24\t// &=0x03ffffff\n\tadd\tv20.2d,v20.2d,v30.2d\t// h0 -> h1\n\n\tushr\tv29.2d,v23.2d,#26\n\txtn\tv28.2s,v23.2d\n\tushr\tv30.2d,v20.2d,#26\n\txtn\tv25.2s,v20.2d\n\tbic\tv28.2s,#0xfc,lsl#24\n\tadd\tv21.2d,v21.2d,v30.2d\t// h1 -> h2\n\n\tadd\tv19.2d,v19.2d,v29.2d\n\tshl\tv29.2d,v29.2d,#2\n\tshrn\tv30.2s,v21.2d,#26\n\txtn\tv26.2s,v21.2d\n\tadd\tv19.2d,v19.2d,v29.2d\t// h4 -> h0\n\tbic\tv25.2s,#0xfc,lsl#24", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:17", "text": "xtn\tv27.2s,v22.2d\n\tushr\tv30.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tadd\tv23.2d,v23.2d,v29.2d\t// h3 -> h4\n\tbic\tv27.2s,#0xfc,lsl#24\t// &=0x03ffffff\n\tadd\tv20.2d,v20.2d,v30.2d\t// h0 -> h1\n\n\tushr\tv29.2d,v23.2d,#26\n\txtn\tv28.2s,v23.2d\n\tushr\tv30.2d,v20.2d,#26\n\txtn\tv25.2s,v20.2d\n\tbic\tv28.2s,#0xfc,lsl#24\n\tadd\tv21.2d,v21.2d,v30.2d\t// h1 -> h2\n\n\tadd\tv19.2d,v19.2d,v29.2d\n\tshl\tv29.2d,v29.2d,#2\n\tshrn\tv30.2s,v21.2d,#26\n\txtn\tv26.2s,v21.2d\n\tadd\tv19.2d,v19.2d,v29.2d\t// h4 -> h0\n\tbic\tv25.2s,#0xfc,lsl#24\n\tadd\tv27.2s,v27.2s,v30.2s\t\t// h2 -> h3\n\tbic\tv26.2s,#0xfc,lsl#24\n\n\tshrn\tv29.2s,v19.2d,#26\n\txtn\tv24.2s,v19.2d\n\tushr\tv30.2s,v27.2s,#26\n\tbic\tv27.2s,#0xfc,lsl#24\n\tbic\tv24.2s,#0xfc,lsl#24\n\tadd\tv25.2s,v25.2s,v29.2s\t\t// h0 -> h1\n\tadd\tv28.2s,v28.2s,v30.2s\t\t// h3 -> h4\n\n\tb.hi\t.Loop_neon\n\n.Lskip_loop:\n\tdup\tv16.2d,v16.d[0]\n\tadd\tv11.2s,v11.2s,v26.2s\n\n\t////////////////////////////////////////////////////////////////\n\t// multiply (inp[0:1]+hash) or inp[2:3] by r^2:r^1\n\n\tadds\tx2,x2,#32\n\tb.ne\t.Long_tail\n\n\tdup\tv16.2d,v11.d[0]\n\tadd\tv14.2s,v9.2s,v24.2s\n\tadd\tv17.2s,v12.2s,v27.2s\n\tadd\tv15.2s,v10.2s,v25.2s\n\tadd\tv18.2s,v13.2s,v28.2s\n\n.Long_tail:\n\tdup\tv14.2d,v14.d[0]\n\tumull2\tv19.2d,v16.4s,v6.4s\n\tumull2\tv22.2d,v16.4s,v1.4s\n\tumull2\tv23.2d,v16.4s,v3.4s\n\tumull2\tv21.2d,v16.4s,v0.4s\n\tumull2\tv20.2d,v16.4s,v8.4s\n\n\tdup\tv15.2d,v15.d[0]\n\tumlal2\tv19.2d,v14.4s,v0.4s\n\tumlal2\tv21.2d,v14.4s,v3.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:18", "text": "adds\tx2,x2,#32\n\tb.ne\t.Long_tail\n\n\tdup\tv16.2d,v11.d[0]\n\tadd\tv14.2s,v9.2s,v24.2s\n\tadd\tv17.2s,v12.2s,v27.2s\n\tadd\tv15.2s,v10.2s,v25.2s\n\tadd\tv18.2s,v13.2s,v28.2s\n\n.Long_tail:\n\tdup\tv14.2d,v14.d[0]\n\tumull2\tv19.2d,v16.4s,v6.4s\n\tumull2\tv22.2d,v16.4s,v1.4s\n\tumull2\tv23.2d,v16.4s,v3.4s\n\tumull2\tv21.2d,v16.4s,v0.4s\n\tumull2\tv20.2d,v16.4s,v8.4s\n\n\tdup\tv15.2d,v15.d[0]\n\tumlal2\tv19.2d,v14.4s,v0.4s\n\tumlal2\tv21.2d,v14.4s,v3.4s\n\tumlal2\tv22.2d,v14.4s,v5.4s\n\tumlal2\tv23.2d,v14.4s,v7.4s\n\tumlal2\tv20.2d,v14.4s,v1.4s\n\n\tdup\tv17.2d,v17.d[0]\n\tumlal2\tv19.2d,v15.4s,v8.4s\n\tumlal2\tv22.2d,v15.4s,v3.4s\n\tumlal2\tv21.2d,v15.4s,v1.4s\n\tumlal2\tv23.2d,v15.4s,v5.4s\n\tumlal2\tv20.2d,v15.4s,v0.4s\n\n\tdup\tv18.2d,v18.d[0]\n\tumlal2\tv22.2d,v17.4s,v0.4s\n\tumlal2\tv23.2d,v17.4s,v1.4s\n\tumlal2\tv19.2d,v17.4s,v4.4s\n\tumlal2\tv20.2d,v17.4s,v6.4s\n\tumlal2\tv21.2d,v17.4s,v8.4s\n\n\tumlal2\tv22.2d,v18.4s,v8.4s\n\tumlal2\tv19.2d,v18.4s,v2.4s\n\tumlal2\tv23.2d,v18.4s,v0.4s\n\tumlal2\tv20.2d,v18.4s,v4.4s\n\tumlal2\tv21.2d,v18.4s,v6.4s\n\n\tb.eq\t.Lshort_tail\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4:r^3 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tumlal\tv22.2d,v11.2s,v1.2s\n\tumlal\tv19.2d,v11.2s,v6.2s\n\tumlal\tv23.2d,v11.2s,v3.2s\n\tumlal\tv20.2d,v11.2s,v8.2s\n\tumlal\tv21.2d,v11.2s,v0.2s\n\n\tadd\tv10.2s,v10.2s,v25.2s\n\tumlal\tv22.2d,v9.2s,v5.2s\n\tumlal\tv19.2d,v9.2s,v0.2s\n\tumlal\tv23.2d,v9.2s,v7.2s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:19", "text": "umlal2\tv23.2d,v18.4s,v0.4s\n\tumlal2\tv20.2d,v18.4s,v4.4s\n\tumlal2\tv21.2d,v18.4s,v6.4s\n\n\tb.eq\t.Lshort_tail\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4:r^3 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tumlal\tv22.2d,v11.2s,v1.2s\n\tumlal\tv19.2d,v11.2s,v6.2s\n\tumlal\tv23.2d,v11.2s,v3.2s\n\tumlal\tv20.2d,v11.2s,v8.2s\n\tumlal\tv21.2d,v11.2s,v0.2s\n\n\tadd\tv10.2s,v10.2s,v25.2s\n\tumlal\tv22.2d,v9.2s,v5.2s\n\tumlal\tv19.2d,v9.2s,v0.2s\n\tumlal\tv23.2d,v9.2s,v7.2s\n\tumlal\tv20.2d,v9.2s,v1.2s\n\tumlal\tv21.2d,v9.2s,v3.2s\n\n\tadd\tv12.2s,v12.2s,v27.2s\n\tumlal\tv22.2d,v10.2s,v3.2s\n\tumlal\tv19.2d,v10.2s,v8.2s\n\tumlal\tv23.2d,v10.2s,v5.2s\n\tumlal\tv20.2d,v10.2s,v0.2s\n\tumlal\tv21.2d,v10.2s,v1.2s\n\n\tadd\tv13.2s,v13.2s,v28.2s\n\tumlal\tv22.2d,v12.2s,v0.2s\n\tumlal\tv19.2d,v12.2s,v4.2s\n\tumlal\tv23.2d,v12.2s,v1.2s\n\tumlal\tv20.2d,v12.2s,v6.2s\n\tumlal\tv21.2d,v12.2s,v8.2s\n\n\tumlal\tv22.2d,v13.2s,v8.2s\n\tumlal\tv19.2d,v13.2s,v2.2s\n\tumlal\tv23.2d,v13.2s,v0.2s\n\tumlal\tv20.2d,v13.2s,v4.2s\n\tumlal\tv21.2d,v13.2s,v6.2s\n\n.Lshort_tail:\n\t////////////////////////////////////////////////////////////////\n\t// horizontal add\n\n\taddp\tv22.2d,v22.2d,v22.2d\n\tldp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\taddp\tv19.2d,v19.2d,v19.2d\n\tldp\td10,d11,[sp,#32]\n\taddp\tv23.2d,v23.2d,v23.2d\n\tldp\td12,d13,[sp,#48]\n\taddp\tv20.2d,v20.2d,v20.2d\n\tldp\td14,d15,[sp,#64]\n\taddp\tv21.2d,v21.2d,v21.2d\n\n\t////////////////////////////////////////////////////////////////\n\t// lazy reduction, but without narrowing", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:20", "text": "umlal\tv20.2d,v13.2s,v4.2s\n\tumlal\tv21.2d,v13.2s,v6.2s\n\n.Lshort_tail:\n\t////////////////////////////////////////////////////////////////\n\t// horizontal add\n\n\taddp\tv22.2d,v22.2d,v22.2d\n\tldp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\taddp\tv19.2d,v19.2d,v19.2d\n\tldp\td10,d11,[sp,#32]\n\taddp\tv23.2d,v23.2d,v23.2d\n\tldp\td12,d13,[sp,#48]\n\taddp\tv20.2d,v20.2d,v20.2d\n\tldp\td14,d15,[sp,#64]\n\taddp\tv21.2d,v21.2d,v21.2d\n\n\t////////////////////////////////////////////////////////////////\n\t// lazy reduction, but without narrowing\n\n\tushr\tv29.2d,v22.2d,#26\n\tand\tv22.16b,v22.16b,v31.16b\n\tushr\tv30.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\n\tadd\tv23.2d,v23.2d,v29.2d\t// h3 -> h4\n\tadd\tv20.2d,v20.2d,v30.2d\t// h0 -> h1\n\n\tushr\tv29.2d,v23.2d,#26\n\tand\tv23.16b,v23.16b,v31.16b\n\tushr\tv30.2d,v20.2d,#26\n\tand\tv20.16b,v20.16b,v31.16b\n\tadd\tv21.2d,v21.2d,v30.2d\t// h1 -> h2\n\n\tadd\tv19.2d,v19.2d,v29.2d\n\tshl\tv29.2d,v29.2d,#2\n\tushr\tv30.2d,v21.2d,#26\n\tand\tv21.16b,v21.16b,v31.16b\n\tadd\tv19.2d,v19.2d,v29.2d\t// h4 -> h0\n\tadd\tv22.2d,v22.2d,v30.2d\t// h2 -> h3\n\n\tushr\tv29.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tushr\tv30.2d,v22.2d,#26\n\tand\tv22.16b,v22.16b,v31.16b\n\tadd\tv20.2d,v20.2d,v29.2d\t// h0 -> h1\n\tadd\tv23.2d,v23.2d,v30.2d\t// h3 -> h4\n\n\t////////////////////////////////////////////////////////////////\n\t// write the result, can be partially reduced\n\n\tst4\t{v19.s,v20.s,v21.s,v22.s}[0],[x0],#16\n\tst1\t{v23.s}[0],[x0]\n\n.Lno_data_neon:\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tpoly1305_blocks_neon,.-poly1305_blocks_neon", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:21", "text": "ushr\tv29.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tushr\tv30.2d,v22.2d,#26\n\tand\tv22.16b,v22.16b,v31.16b\n\tadd\tv20.2d,v20.2d,v29.2d\t// h0 -> h1\n\tadd\tv23.2d,v23.2d,v30.2d\t// h3 -> h4\n\n\t////////////////////////////////////////////////////////////////\n\t// write the result, can be partially reduced\n\n\tst4\t{v19.s,v20.s,v21.s,v22.s}[0],[x0],#16\n\tst1\t{v23.s}[0],[x0]\n\n.Lno_data_neon:\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tpoly1305_blocks_neon,.-poly1305_blocks_neon\n\n.type\tpoly1305_emit_neon,%function\n.align\t5\npoly1305_emit_neon:\n.Lpoly1305_emit_neon:\n\t// The symbol .Lpoly1305_emit_neon is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tldr\tx17,[x0,#24]\n\tcbz\tx17,poly1305_emit\n\n\tldp\tw10,w11,[x0]\t\t// load hash value base 2^26\n\tldp\tw12,w13,[x0,#8]\n\tldr\tw14,[x0,#16]\n\n\tadd\tx4,x10,x11,lsl#26\t// base 2^26 -> base 2^64\n\tlsr\tx5,x12,#12\n\tadds\tx4,x4,x12,lsl#52\n\tadd\tx5,x5,x13,lsl#14\n\tadc\tx5,x5,xzr\n\tlsr\tx6,x14,#24\n\tadds\tx5,x5,x14,lsl#40\n\tadc\tx6,x6,xzr\t\t// can be partially reduced...\n\n\tldp\tx10,x11,[x2]\t// load nonce\n\n\tand\tx12,x6,#-4\t\t// ... so reduce\n\tadd\tx12,x12,x6,lsr#2\n\tand\tx6,x6,#3\n\tadds\tx4,x4,x12\n\tadcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n\tadds\tx12,x4,#5\t\t// compare to modulus\n\tadcs\tx13,x5,xzr\n\tadc\tx14,x6,xzr\n\n\ttst\tx14,#-4\t\t\t// see if it's carried/borrowed\n\n\tcsel\tx4,x4,x12,eq\n\tcsel\tx5,x5,x13,eq", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S:22", "text": "adds\tx5,x5,x14,lsl#40\n\tadc\tx6,x6,xzr\t\t// can be partially reduced...\n\n\tldp\tx10,x11,[x2]\t// load nonce\n\n\tand\tx12,x6,#-4\t\t// ... so reduce\n\tadd\tx12,x12,x6,lsr#2\n\tand\tx6,x6,#3\n\tadds\tx4,x4,x12\n\tadcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n\tadds\tx12,x4,#5\t\t// compare to modulus\n\tadcs\tx13,x5,xzr\n\tadc\tx14,x6,xzr\n\n\ttst\tx14,#-4\t\t\t// see if it's carried/borrowed\n\n\tcsel\tx4,x4,x12,eq\n\tcsel\tx5,x5,x13,eq\n\n#ifdef\t__AARCH64EB__\n\tror\tx10,x10,#32\t\t// flip nonce words\n\tror\tx11,x11,#32\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate nonce\n\tadc\tx5,x5,x11\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\t\t\t// flip output bytes\n\trev\tx5,x5\n#endif\n\tstp\tx4,x5,[x1]\t\t// write result\n\n\tret\n.size\tpoly1305_emit_neon,.-poly1305_emit_neon\n\n.section\t.rodata\n\n.align\t5\n.Lzeros:\n.long\t0,0,0,0,0,0,0,0\n.byte\t80,111,108,121,49,51,48,53,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305-armv8.S", "line_start": 841, "line_end": 884}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\nPOLY1305_SRCS = poly1305-armv8.S\nPOLY1305_CPPFLAGS+=-DPOLY1305_ASM\n\n.include \"../../poly1305.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/poly1305.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nSHA_SRCS = sha1-armv8.S sha512-armv8.S keccak1600-armv8.S\nSHACPPFLAGS = -DSHA1_ASM -DSHA256_ASM -DKECCAK1600_ASM\nKECCAKNI = yes\n.include \"../../sha.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:1", "text": "#include \"arm_arch.h\"\n#ifndef\t__KERNEL__\n\n.hidden\tOPENSSL_armcap_P\n#endif\n\n.text\n\n.globl\tsha1_block_data_order\n.type\tsha1_block_data_order,%function\n.align\t6\nsha1_block_data_order:\n\tAARCH64_VALID_CALL_TARGET\n\tadrp\tx16,OPENSSL_armcap_P\n\tldr\tw16,[x16,#:lo12:OPENSSL_armcap_P]\n\ttst\tw16,#ARMV8_SHA1\n\tb.ne\t.Lv8_entry\n\n\t// Armv8.3-A PAuth: even though x30 is pushed to stack it is not popped later.\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n\tldp\tw20,w21,[x0]\n\tldp\tw22,w23,[x0,#8]\n\tldr\tw24,[x0,#16]\n\n.Loop:\n\tldr\tx3,[x1],#64\n\tmovz\tw28,#0x7999\n\tsub\tx2,x2,#1\n\tmovk\tw28,#0x5a82,lsl#16\n#ifdef\t__AARCH64EB__\n\tror\tx3,x3,#32\n#else\n\trev32\tx3,x3\n#endif\n\tadd\tw24,w24,w28\t\t// warm it up\n\tadd\tw24,w24,w3\n\tlsr\tx4,x3,#32\n\tldur\tx5,[x1,#-56]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w4\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx5,x5,#32\n#else\n\trev32\tx5,x5\n#endif\n\tbic\tw25,w22,w20", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:2", "text": "#endif\n\tadd\tw24,w24,w28\t\t// warm it up\n\tadd\tw24,w24,w3\n\tlsr\tx4,x3,#32\n\tldur\tx5,[x1,#-56]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w4\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx5,x5,#32\n#else\n\trev32\tx5,x5\n#endif\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w5\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tlsr\tx6,x5,#32\n\tldur\tx7,[x1,#-48]\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w6\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx7,x7,#32\n#else\n\trev32\tx7,x7\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w7\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx8,x7,#32\n\tldur\tx9,[x1,#-40]\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:3", "text": "ror\tx7,x7,#32\n#else\n\trev32\tx7,x7\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w7\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx8,x7,#32\n\tldur\tx9,[x1,#-40]\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w8\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx9,x9,#32\n#else\n\trev32\tx9,x9\n#endif\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w9\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tlsr\tx10,x9,#32\n\tldur\tx11,[x1,#-32]\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w10\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx11,x11,#32\n#else\n\trev32\tx11,x11\n#endif\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:4", "text": "bic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w10\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx11,x11,#32\n#else\n\trev32\tx11,x11\n#endif\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w11\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tlsr\tx12,x11,#32\n\tldur\tx13,[x1,#-24]\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w12\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx13,x13,#32\n#else\n\trev32\tx13,x13\n#endif\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w13\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tlsr\tx14,x13,#32\n\tldur\tx15,[x1,#-16]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w14\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:5", "text": "and\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w13\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tlsr\tx14,x13,#32\n\tldur\tx15,[x1,#-16]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w14\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx15,x15,#32\n#else\n\trev32\tx15,x15\n#endif\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w15\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tlsr\tx16,x15,#32\n\tldur\tx17,[x1,#-8]\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w16\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx17,x17,#32\n#else\n\trev32\tx17,x17\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w17\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx19,x17,#32\n\teor\tw3,w3,w5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:6", "text": "add\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w16\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx17,x17,#32\n#else\n\trev32\tx17,x17\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w17\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx19,x17,#32\n\teor\tw3,w3,w5\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\teor\tw3,w3,w11\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\teor\tw3,w3,w16\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w19\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\teor\tw4,w4,w12\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\teor\tw4,w4,w17\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w3\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\teor\tw5,w5,w13\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\teor\tw5,w5,w19\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w4\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\tbic\tw25,w21,w24", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:7", "text": "eor\tw4,w4,w17\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w3\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\teor\tw5,w5,w13\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\teor\tw5,w5,w19\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w4\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\teor\tw6,w6,w14\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\teor\tw6,w6,w3\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w5\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\teor\tw7,w7,w15\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\teor\tw7,w7,w4\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w6\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\tmovz\tw28,#0xeba1\n\tmovk\tw28,#0x6ed9,lsl#16\n\teor\tw8,w8,w10\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\teor\tw8,w8,w16\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\teor\tw8,w8,w5\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w7\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:8", "text": "ror\tw23,w23,#2\n\tadd\tw20,w20,w6\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\tmovz\tw28,#0xeba1\n\tmovk\tw28,#0x6ed9,lsl#16\n\teor\tw8,w8,w10\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\teor\tw8,w8,w16\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\teor\tw8,w8,w5\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w7\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw9,w9,w6\n\tadd\tw23,w23,w8\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw10,w10,w7\n\tadd\tw22,w22,w9\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw11,w11,w8\n\tadd\tw21,w21,w10\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\teor\tw12,w12,w14\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw12,w12,w4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:9", "text": "add\tw22,w22,w9\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw11,w11,w8\n\tadd\tw21,w21,w10\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\teor\tw12,w12,w14\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw12,w12,w9\n\tadd\tw20,w20,w11\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\teor\tw13,w13,w15\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw13,w13,w10\n\tadd\tw24,w24,w12\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\teor\tw14,w14,w16\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw14,w14,w11\n\tadd\tw23,w23,w13\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\teor\tw15,w15,w17\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw15,w15,w12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:10", "text": "eor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw14,w14,w11\n\tadd\tw23,w23,w13\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\teor\tw15,w15,w17\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw15,w15,w12\n\tadd\tw22,w22,w14\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\teor\tw16,w16,w19\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw16,w16,w13\n\tadd\tw21,w21,w15\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw17,w17,w14\n\tadd\tw20,w20,w16\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw19,w19,w15\n\tadd\tw24,w24,w17\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:11", "text": "eor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw17,w17,w14\n\tadd\tw20,w20,w16\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw19,w19,w15\n\tadd\tw24,w24,w17\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw3,w3,w16\n\tadd\tw23,w23,w19\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw4,w4,w17\n\tadd\tw22,w22,w3\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw5,w5,w19\n\tadd\tw21,w21,w4\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw6,w6,w14", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:12", "text": "add\tw22,w22,w3\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw5,w5,w19\n\tadd\tw21,w21,w4\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw6,w6,w3\n\tadd\tw20,w20,w5\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw7,w7,w4\n\tadd\tw24,w24,w6\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\teor\tw8,w8,w10\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw8,w8,w5\n\tadd\tw23,w23,w7\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw9,w9,w6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:13", "text": "eor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw8,w8,w5\n\tadd\tw23,w23,w7\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw9,w9,w6\n\tadd\tw22,w22,w8\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw10,w10,w7\n\tadd\tw21,w21,w9\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw11,w11,w8\n\tadd\tw20,w20,w10\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\tmovz\tw28,#0xbcdc\n\tmovk\tw28,#0x8f1b,lsl#16\n\teor\tw12,w12,w14\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw12,w12,w9\n\tadd\tw24,w24,w11\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:14", "text": "eor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw11,w11,w8\n\tadd\tw20,w20,w10\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\tmovz\tw28,#0xbcdc\n\tmovk\tw28,#0x8f1b,lsl#16\n\teor\tw12,w12,w14\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw12,w12,w9\n\tadd\tw24,w24,w11\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw13,w13,w15\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw13,w13,w10\n\tadd\tw23,w23,w12\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw14,w14,w16\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw14,w14,w11\n\tadd\tw22,w22,w13\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw15,w15,w17\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw15,w15,w12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:15", "text": "add\tw22,w22,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw14,w14,w11\n\tadd\tw22,w22,w13\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw15,w15,w17\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw15,w15,w12\n\tadd\tw21,w21,w14\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw16,w16,w19\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw16,w16,w13\n\tadd\tw20,w20,w15\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw17,w17,w3\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw17,w17,w14\n\tadd\tw24,w24,w16\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw19,w19,w4\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:16", "text": "ror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw17,w17,w14\n\tadd\tw24,w24,w16\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw19,w19,w4\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw19,w19,w15\n\tadd\tw23,w23,w17\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw3,w3,w5\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw3,w3,w16\n\tadd\tw22,w22,w19\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw4,w4,w6\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw4,w4,w17\n\tadd\tw21,w21,w3\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw5,w5,w7\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw5,w5,w13", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:17", "text": "and\tw26,w24,w20\n\teor\tw4,w4,w6\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw4,w4,w17\n\tadd\tw21,w21,w3\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw5,w5,w7\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw5,w5,w19\n\tadd\tw20,w20,w4\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw6,w6,w8\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw6,w6,w3\n\tadd\tw24,w24,w5\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw7,w7,w9\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw7,w7,w4\n\tadd\tw23,w23,w6\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw8,w8,w10\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:18", "text": "ror\tw6,w6,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw7,w7,w9\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw7,w7,w4\n\tadd\tw23,w23,w6\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw8,w8,w10\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw8,w8,w5\n\tadd\tw22,w22,w7\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw9,w9,w11\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw9,w9,w6\n\tadd\tw21,w21,w8\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw10,w10,w12\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw10,w10,w7\n\tadd\tw20,w20,w9\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw11,w11,w13", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:19", "text": "add\tw21,w21,w8\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw10,w10,w12\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw10,w10,w7\n\tadd\tw20,w20,w9\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw11,w11,w13\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw11,w11,w8\n\tadd\tw24,w24,w10\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw12,w12,w14\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw12,w12,w9\n\tadd\tw23,w23,w11\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw13,w13,w15\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw13,w13,w10\n\tadd\tw22,w22,w12\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\torr\tw25,w24,w20", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:20", "text": "ror\tw21,w21,#2\n\teor\tw12,w12,w9\n\tadd\tw23,w23,w11\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw13,w13,w15\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw13,w13,w10\n\tadd\tw22,w22,w12\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw14,w14,w16\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw14,w14,w11\n\tadd\tw21,w21,w13\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw15,w15,w17\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw15,w15,w12\n\tadd\tw20,w20,w14\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\tmovz\tw28,#0xc1d6\n\tmovk\tw28,#0xca62,lsl#16\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw16,w16,w19\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw16,w16,w13", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:21", "text": "add\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw15,w15,w12\n\tadd\tw20,w20,w14\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\tmovz\tw28,#0xc1d6\n\tmovk\tw28,#0xca62,lsl#16\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw16,w16,w19\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw16,w16,w13\n\tadd\tw24,w24,w15\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw17,w17,w14\n\tadd\tw23,w23,w16\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw19,w19,w15\n\tadd\tw22,w22,w17\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw3,w3,w16\n\tadd\tw21,w21,w19\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:22", "text": "eor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw19,w19,w15\n\tadd\tw22,w22,w17\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw3,w3,w16\n\tadd\tw21,w21,w19\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw4,w4,w17\n\tadd\tw20,w20,w3\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw5,w5,w19\n\tadd\tw24,w24,w4\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw6,w6,w3\n\tadd\tw23,w23,w5\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw7,w7,w15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:23", "text": "add\tw24,w24,w4\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw6,w6,w3\n\tadd\tw23,w23,w5\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw7,w7,w4\n\tadd\tw22,w22,w6\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\teor\tw8,w8,w10\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw8,w8,w5\n\tadd\tw21,w21,w7\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw9,w9,w6\n\tadd\tw20,w20,w8\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw10,w10,w7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:24", "text": "eor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw9,w9,w6\n\tadd\tw20,w20,w8\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw10,w10,w7\n\tadd\tw24,w24,w9\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw11,w11,w8\n\tadd\tw23,w23,w10\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\teor\tw12,w12,w14\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw12,w12,w9\n\tadd\tw22,w22,w11\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\teor\tw13,w13,w15\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw13,w13,w10\n\tadd\tw21,w21,w12\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\teor\tw14,w14,w16", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:25", "text": "eor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw12,w12,w9\n\tadd\tw22,w22,w11\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\teor\tw13,w13,w15\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw13,w13,w10\n\tadd\tw21,w21,w12\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\teor\tw14,w14,w16\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw14,w14,w11\n\tadd\tw20,w20,w13\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\teor\tw15,w15,w17\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw15,w15,w12\n\tadd\tw24,w24,w14\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\teor\tw16,w16,w19\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw16,w16,w13\n\tadd\tw23,w23,w15\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw17,w17,w9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:26", "text": "add\tw24,w24,w14\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\teor\tw16,w16,w19\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw16,w16,w13\n\tadd\tw23,w23,w15\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw17,w17,w14\n\tadd\tw22,w22,w16\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw19,w19,w15\n\tadd\tw21,w21,w17\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\tldp\tw4,w5,[x0]\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w19\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tldp\tw6,w7,[x0,#8]\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tldr\tw8,[x0,#16]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tadd\tw21,w21,w5\n\tadd\tw22,w22,w6\n\tadd\tw20,w20,w4\n\tadd\tw23,w23,w7", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:27", "text": "eor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w19\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tldp\tw6,w7,[x0,#8]\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tldr\tw8,[x0,#16]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tadd\tw21,w21,w5\n\tadd\tw22,w22,w6\n\tadd\tw20,w20,w4\n\tadd\tw23,w23,w7\n\tadd\tw24,w24,w8\n\tstp\tw20,w21,[x0]\n\tstp\tw22,w23,[x0,#8]\n\tstr\tw24,[x0,#16]\n\tcbnz\tx2,.Loop\n\n\tldp\tx19,x20,[sp,#16]\n\tldp\tx21,x22,[sp,#32]\n\tldp\tx23,x24,[sp,#48]\n\tldp\tx25,x26,[sp,#64]\n\tldp\tx27,x28,[sp,#80]\n\tldr\tx29,[sp],#96\n\tret\n.size\tsha1_block_data_order,.-sha1_block_data_order\n.type\tsha1_block_armv8,%function\n.align\t6\nsha1_block_armv8:\n.Lv8_entry:\n\t// Armv8.3-A PAuth: even though x30 is pushed to stack it is not popped later.\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx4,.Lconst\n\tadd\tx4,x4,#:lo12:.Lconst\n\teor\tv1.16b,v1.16b,v1.16b\n\tld1\t{v0.4s},[x0],#16\n\tld1\t{v1.s}[0],[x0]\n\tsub\tx0,x0,#16\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x4]\n\n.Loop_hw:\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\tsub\tx2,x2,#1\n\trev32\tv4.16b,v4.16b\n\trev32\tv5.16b,v5.16b\n\n\tadd\tv20.4s,v16.4s,v4.4s\n\trev32\tv6.16b,v6.16b\n\torr\tv22.16b,v0.16b,v0.16b\t// offload", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:28", "text": "add\tx29,sp,#0\n\n\tadrp\tx4,.Lconst\n\tadd\tx4,x4,#:lo12:.Lconst\n\teor\tv1.16b,v1.16b,v1.16b\n\tld1\t{v0.4s},[x0],#16\n\tld1\t{v1.s}[0],[x0]\n\tsub\tx0,x0,#16\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x4]\n\n.Loop_hw:\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\tsub\tx2,x2,#1\n\trev32\tv4.16b,v4.16b\n\trev32\tv5.16b,v5.16b\n\n\tadd\tv20.4s,v16.4s,v4.4s\n\trev32\tv6.16b,v6.16b\n\torr\tv22.16b,v0.16b,v0.16b\t// offload\n\n\tadd\tv21.4s,v16.4s,v5.4s\n\trev32\tv7.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\n.inst\t0x5e140020\t//sha1c v0.16b,v1.16b,v20.4s\t\t// 0\n\tadd\tv20.4s,v16.4s,v6.4s\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 1\n.inst\t0x5e150060\t//sha1c v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v16.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 2\n.inst\t0x5e140040\t//sha1c v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v16.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 3\n.inst\t0x5e150060\t//sha1c v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 4\n.inst\t0x5e140040\t//sha1c v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 5\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 6\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 7\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:29", "text": ".inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 4\n.inst\t0x5e140040\t//sha1c v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 5\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 6\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 7\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 8\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 9\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v18.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 10\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 11\n.inst\t0x5e152060\t//sha1m v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v18.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 12\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 13\n.inst\t0x5e152060\t//sha1m v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 14\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v19.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 15\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S:30", "text": ".inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 12\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 13\n.inst\t0x5e152060\t//sha1m v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 14\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v19.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 15\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 16\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v19.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 17\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v7.4s\n\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 18\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 19\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\n\tadd\tv1.4s,v1.4s,v2.4s\n\tadd\tv0.4s,v0.4s,v22.4s\n\n\tcbnz\tx2,.Loop_hw\n\n\tst1\t{v0.4s},[x0],#16\n\tst1\t{v1.s}[0],[x0]\n\n\tldr\tx29,[sp],#16\n\tret\n.size\tsha1_block_armv8,.-sha1_block_armv8\n\n.section\t.rodata\n\n.align\t6\n.Lconst:\n.long\t0x5a827999,0x5a827999,0x5a827999,0x5a827999\t//K_00_19\n.long\t0x6ed9eba1,0x6ed9eba1,0x6ed9eba1,0x6ed9eba1\t//K_20_39\n.long\t0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc\t//K_40_59\n.long\t0xca62c1d6,0xca62c1d6,0xca62c1d6,0xca62c1d6\t//K_60_79\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sha1-armv8.S", "line_start": 1161, "line_end": 1218}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S:1", "text": "// Copyright 2021-2025 The OpenSSL Project Authors. All Rights Reserved.\n//\n// Licensed under the Apache License 2.0 (the \"License\").  You may not use\n// this file except in compliance with the License.  You can obtain a copy\n// in the file LICENSE in the source distribution or at\n// https://www.openssl.org/source/license.html\n//\n// This module implements support for Armv8 SM3 instructions\n\n// $output is the last argument if it looks like a file (it has an extension)\n// $flavour is the first argument if it doesn't look like a file\n#include \"arm_arch.h\"\n.text\n.globl\tossl_hwsm3_block_data_order\n.type\tossl_hwsm3_block_data_order,%function\n.align\t5\nossl_hwsm3_block_data_order:\n\tAARCH64_VALID_CALL_TARGET\n\t// load state\n\tld1\t{v5.4s,v6.4s}, [x0]\n\trev64\tv5.4s, v5.4s\n\trev64\tv6.4s, v6.4s\n\text\tv5.16b, v5.16b, v5.16b, #8\n\text\tv6.16b, v6.16b, v6.16b, #8\n\tadrp\tx8, .Tj\n\tadd\tx8, x8, #:lo12:.Tj\n\tldp\ts16, s17, [x8]\n\n.Loop:\n\t// load input\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s}, [x1], #64\n\tsub\tw2, w2, #1\n\n\tmov\tv18.16b, v5.16b\n\tmov\tv19.16b, v6.16b\n\n#ifndef __AARCH64EB__\n\trev32\tv0.16b, v0.16b\n\trev32\tv1.16b, v1.16b\n\trev32\tv2.16b, v2.16b\n\trev32\tv3.16b, v3.16b\n#endif\n\n\text\tv20.16b, v16.16b, v16.16b, #4\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv4.16b, v1.16b, v2.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v0.16b, v1.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v2.16b, v3.16b, #8\n.inst\t0xce63c004\t//sm3partw1 v4.4s, v0.4s, v3.4s\n.inst\t0xce76c6e4\t//sm3partw2 v4.4s, v23.4s, v22.4s\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ae6\t//sm3tt2a v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S:12", "text": "sri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce43bee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[3]\n\teor\tv22.16b, v4.16b, v0.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce448ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce44aee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce44bee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[3]\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce409ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce40aee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\teor\tv5.16b, v5.16b, v18.16b\n\teor\tv6.16b, v6.16b, v19.16b\n\n\t// any remained blocks?\n\tcbnz\tw2, .Loop\n\n\t// save state\n\trev64\tv5.4s, v5.4s\n\trev64\tv6.4s, v6.4s\n\text\tv5.16b, v5.16b, v5.16b, #8\n\text\tv6.16b, v6.16b, v6.16b, #8\n\tst1\t{v5.4s,v6.4s}, [x0]\n\tret\n.size\tossl_hwsm3_block_data_order,.-ossl_hwsm3_block_data_order\n.section\t.rodata", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S:13", "text": ".inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\teor\tv5.16b, v5.16b, v18.16b\n\teor\tv6.16b, v6.16b, v19.16b\n\n\t// any remained blocks?\n\tcbnz\tw2, .Loop\n\n\t// save state\n\trev64\tv5.4s, v5.4s\n\trev64\tv6.4s, v6.4s\n\text\tv5.16b, v5.16b, v5.16b, #8\n\text\tv6.16b, v6.16b, v6.16b, #8\n\tst1\t{v5.4s,v6.4s}, [x0]\n\tret\n.size\tossl_hwsm3_block_data_order,.-ossl_hwsm3_block_data_order\n.section\t.rodata\n\n.type\t_sm3_consts,%object\n.align\t3\n_sm3_consts:\n.Tj:\n.word\t0x79cc4519, 0x9d8a7a87\n.size\t_sm3_consts,.-_sm3_consts\n.previous", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm3-armv8.S", "line_start": 481, "line_end": 508}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:1", "text": "// Copyright 2022-2025 The OpenSSL Project Authors. All Rights Reserved.\n//\n// Licensed under the Apache License 2.0 (the \"License\").  You may not use\n// this file except in compliance with the License.  You can obtain a copy\n// in the file LICENSE in the source distribution or at\n// https://www.openssl.org/source/license.html\n\n//\n// This module implements support for SM4 hw support on aarch64\n// Oct 2021\n//\n\n// $output is the last argument if it looks like a file (it has an extension)\n// $flavour is the first argument if it doesn't look like a file\n#include \"arm_arch.h\"\n.arch\tarmv8-a+crypto\n.text\n\n.section\t.rodata\n.type\t_sm4_v8_consts,%object\n.align\t6\n_sm4_v8_consts:\n.Lck:\n.long\t0x00070E15, 0x1C232A31, 0x383F464D, 0x545B6269\n.long\t0x70777E85, 0x8C939AA1, 0xA8AFB6BD, 0xC4CBD2D9\n.long\t0xE0E7EEF5, 0xFC030A11, 0x181F262D, 0x343B4249\n.long\t0x50575E65, 0x6C737A81, 0x888F969D, 0xA4ABB2B9\n.long\t0xC0C7CED5, 0xDCE3EAF1, 0xF8FF060D, 0x141B2229\n.long\t0x30373E45, 0x4C535A61, 0x686F767D, 0x848B9299\n.long\t0xA0A7AEB5, 0xBCC3CAD1, 0xD8DFE6ED, 0xF4FB0209\n.long\t0x10171E25, 0x2C333A41, 0x484F565D, 0x646B7279\n.Lfk:\n.long\t0xa3b1bac6, 0x56aa3350, 0x677d9197, 0xb27022dc\n.size\t_sm4_v8_consts,.-_sm4_v8_consts\n.previous\n\n.globl\tsm4_v8_set_encrypt_key\n.type\tsm4_v8_set_encrypt_key,%function\n.align\t5\nsm4_v8_set_encrypt_key:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s},[x0]\n\tadrp\tx2,.Lfk\n\tadd\tx2,x2,#:lo12:.Lfk\n\tld1\t{v24.4s},[x2]\n\tadrp\tx2,.Lck\n\tadd\tx2,x2,#:lo12:.Lck\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x2],64\n#ifndef __AARCH64EB__\n\trev32\tv0.16b,v0.16b\n#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv0.16b,v0.16b,v24.16b;\n.inst\t0xce70c800\t//sm4ekey v0.4S,v0.4S,v16.4S\n.inst\t0xce71c801\t//sm4ekey v1.4S,v0.4S,v17.4S\n.inst\t0xce72c822\t//sm4ekey v2.4S,v1.4S,v18.4S\n.inst\t0xce73c843\t//sm4ekey v3.4S,v2.4S,v19.4S\n.inst\t0xce74c864\t//sm4ekey v4.4S,v3.4S,v20.4S\n\tst1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x1],64\n.inst\t0xce75c885\t//sm4ekey v5.4S,v4.4S,v21.4S", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:2", "text": "AARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s},[x0]\n\tadrp\tx2,.Lfk\n\tadd\tx2,x2,#:lo12:.Lfk\n\tld1\t{v24.4s},[x2]\n\tadrp\tx2,.Lck\n\tadd\tx2,x2,#:lo12:.Lck\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x2],64\n#ifndef __AARCH64EB__\n\trev32\tv0.16b,v0.16b\n#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv0.16b,v0.16b,v24.16b;\n.inst\t0xce70c800\t//sm4ekey v0.4S,v0.4S,v16.4S\n.inst\t0xce71c801\t//sm4ekey v1.4S,v0.4S,v17.4S\n.inst\t0xce72c822\t//sm4ekey v2.4S,v1.4S,v18.4S\n.inst\t0xce73c843\t//sm4ekey v3.4S,v2.4S,v19.4S\n.inst\t0xce74c864\t//sm4ekey v4.4S,v3.4S,v20.4S\n\tst1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x1],64\n.inst\t0xce75c885\t//sm4ekey v5.4S,v4.4S,v21.4S\n.inst\t0xce76c8a6\t//sm4ekey v6.4S,v5.4S,v22.4S\n.inst\t0xce77c8c7\t//sm4ekey v7.4S,v6.4S,v23.4S\n\tst1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x1]\n\tret\n.size\tsm4_v8_set_encrypt_key,.-sm4_v8_set_encrypt_key\n.globl\tsm4_v8_set_decrypt_key\n.type\tsm4_v8_set_decrypt_key,%function\n.align\t5\nsm4_v8_set_decrypt_key:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v7.4s},[x0]\n\tadrp\tx2,.Lfk\n\tadd\tx2,x2,#:lo12:.Lfk\n\tld1\t{v24.4s},[x2]\n\tadrp\tx2,.Lck\n\tadd\tx2,x2,#:lo12:.Lck\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x2],64\n#ifndef __AARCH64EB__\n\trev32\tv7.16b,v7.16b\n#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv7.16b, v7.16b,v24.16b;\n.inst\t0xce70c8e7\t//sm4ekey v7.4S,v7.4S,v16.4S\n.inst\t0xce71c8e6\t//sm4ekey v6.4S,v7.4S,v17.4S\n.inst\t0xce72c8c5\t//sm4ekey v5.4S,v6.4S,v18.4S\n\trev64\tv7.4s,v7.4s\n\trev64\tv6.4s,v6.4s\n\text\tv7.16b,v7.16b,v7.16b,#8\n\text\tv6.16b,v6.16b,v6.16b,#8\n.inst\t0xce73c8a4\t//sm4ekey v4.4S,v5.4S,v19.4S\n.inst\t0xce74c883\t//sm4ekey v3.4S,v4.4S,v20.4S\n\trev64\tv5.4s,v5.4s\n\trev64\tv4.4s,v4.4s\n\text\tv5.16b,v5.16b,v5.16b,#8\n\text\tv4.16b,v4.16b,v4.16b,#8\n.inst\t0xce75c862\t//sm4ekey v2.4S,v3.4S,v21.4S\n.inst\t0xce76c841\t//sm4ekey v1.4S,v2.4S,v22.4S\n\trev64\tv3.4s,v3.4s\n\trev64\tv2.4s,v2.4s\n\text\tv3.16b,v3.16b,v3.16b,#8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:3", "text": "ld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv7.16b, v7.16b,v24.16b;\n.inst\t0xce70c8e7\t//sm4ekey v7.4S,v7.4S,v16.4S\n.inst\t0xce71c8e6\t//sm4ekey v6.4S,v7.4S,v17.4S\n.inst\t0xce72c8c5\t//sm4ekey v5.4S,v6.4S,v18.4S\n\trev64\tv7.4s,v7.4s\n\trev64\tv6.4s,v6.4s\n\text\tv7.16b,v7.16b,v7.16b,#8\n\text\tv6.16b,v6.16b,v6.16b,#8\n.inst\t0xce73c8a4\t//sm4ekey v4.4S,v5.4S,v19.4S\n.inst\t0xce74c883\t//sm4ekey v3.4S,v4.4S,v20.4S\n\trev64\tv5.4s,v5.4s\n\trev64\tv4.4s,v4.4s\n\text\tv5.16b,v5.16b,v5.16b,#8\n\text\tv4.16b,v4.16b,v4.16b,#8\n.inst\t0xce75c862\t//sm4ekey v2.4S,v3.4S,v21.4S\n.inst\t0xce76c841\t//sm4ekey v1.4S,v2.4S,v22.4S\n\trev64\tv3.4s,v3.4s\n\trev64\tv2.4s,v2.4s\n\text\tv3.16b,v3.16b,v3.16b,#8\n\text\tv2.16b,v2.16b,v2.16b,#8\n.inst\t0xce77c820\t//sm4ekey v0.4S,v1.4S,v23.4S\n\trev64\tv1.4s, v1.4s\n\trev64\tv0.4s, v0.4s\n\text\tv1.16b,v1.16b,v1.16b,#8\n\text\tv0.16b,v0.16b,v0.16b,#8\n\tst1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x1],64\n\tst1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x1]\n\tret\n.size\tsm4_v8_set_decrypt_key,.-sm4_v8_set_decrypt_key\n.globl\tsm4_v8_encrypt\n.type\tsm4_v8_encrypt,%function\n.align\t5\nsm4_v8_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v16.4s},[x0]\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x2],64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x2]\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_encrypt,.-sm4_v8_encrypt\n.globl\tsm4_v8_decrypt\n.type\tsm4_v8_decrypt,%function\n.align\t5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:4", "text": "#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_encrypt,.-sm4_v8_encrypt\n.globl\tsm4_v8_decrypt\n.type\tsm4_v8_decrypt,%function\n.align\t5\nsm4_v8_decrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v16.4s},[x0]\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x2],64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x2]\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_decrypt,.-sm4_v8_decrypt\n.globl\tsm4_v8_ecb_encrypt\n.type\tsm4_v8_ecb_encrypt,%function\n.align\t5\nsm4_v8_ecb_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n1:\n\tcmp\tx2,#64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\tcmp\tx2,#128\n\tb.lt\t2f\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x0],#64\n\t// 8 blocks\n#ifndef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:5", "text": "#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_decrypt,.-sm4_v8_decrypt\n.globl\tsm4_v8_ecb_encrypt\n.type\tsm4_v8_ecb_encrypt,%function\n.align\t5\nsm4_v8_ecb_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n1:\n\tcmp\tx2,#64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\tcmp\tx2,#128\n\tb.lt\t2f\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x0],#64\n\t// 8 blocks\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:6", "text": "#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:7", "text": ".inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s\n\n.inst\t0xcec08454\t//sm4e v20.4s,v2.4s\n.inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:8", "text": ".inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,#128\n\tb.gt\t1b\n\tret\n\t// 4 blocks\n2:\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:9", "text": "rev32\tv23.16b,v23.16b\n#endif\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,#128\n\tb.gt\t1b\n\tret\n\t// 4 blocks\n2:\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:10", "text": ".inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.gt\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t1f\n\tld1\t{v16.4s},[x0],#16\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:11", "text": "subs\tx2,x2,#64\n\tb.gt\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t1f\n\tld1\t{v16.4s},[x0],#16\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1],#16\n\tb.ne\t1b\n1:\n\tret\n.size\tsm4_v8_ecb_encrypt,.-sm4_v8_ecb_encrypt\n.globl\tsm4_v8_cbc_encrypt\n.type\tsm4_v8_cbc_encrypt,%function\n.align\t5\nsm4_v8_cbc_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tstp\td8,d9,[sp, #-16]!\n\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n\tld1\t{v8.4s},[x4]\n\tcmp\tw5,#0\n\tb.eq\t.Ldec\n1:\n\tcmp\tx2, #64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\teor\tv16.16b,v16.16b,v8.16b\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:12", "text": "cmp\tx2, #64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\teor\tv16.16b,v16.16b,v8.16b\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n\teor\tv17.16b,v17.16b,v16.16b\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\trev64\tv17.4S,v17.4S\n\text\tv17.16b,v17.16b,v17.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv18.16b,v18.16b,v17.16b\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\trev64\tv18.4S,v18.4S\n\text\tv18.16b,v18.16b,v18.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n\teor\tv19.16b,v19.16b,v18.16b\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:13", "text": "eor\tv18.16b,v18.16b,v17.16b\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\trev64\tv18.4S,v18.4S\n\text\tv18.16b,v18.16b,v18.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n\teor\tv19.16b,v19.16b,v18.16b\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\tmov\tv8.16b,v19.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.ne\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t3f\n\tld1\t{v16.4s},[x0],#16\n\teor\tv8.16b,v8.16b,v16.16b\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n.inst\t0xcec08408\t//sm4e v8.4s,v0.4s\n.inst\t0xcec08428\t//sm4e v8.4s,v1.4s\n.inst\t0xcec08448\t//sm4e v8.4s,v2.4s\n.inst\t0xcec08468\t//sm4e v8.4s,v3.4s\n.inst\t0xcec08488\t//sm4e v8.4s,v4.4s\n.inst\t0xcec084a8\t//sm4e v8.4s,v5.4s\n.inst\t0xcec084c8\t//sm4e v8.4s,v6.4s\n.inst\t0xcec084e8\t//sm4e v8.4s,v7.4s\n\trev64\tv8.4S,v8.4S\n\text\tv8.16b,v8.16b,v8.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n\tst1\t{v8.4s},[x1],#16\n\tb.ne\t1b\n\tb\t3f\n.Ldec:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:14", "text": "#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n.inst\t0xcec08408\t//sm4e v8.4s,v0.4s\n.inst\t0xcec08428\t//sm4e v8.4s,v1.4s\n.inst\t0xcec08448\t//sm4e v8.4s,v2.4s\n.inst\t0xcec08468\t//sm4e v8.4s,v3.4s\n.inst\t0xcec08488\t//sm4e v8.4s,v4.4s\n.inst\t0xcec084a8\t//sm4e v8.4s,v5.4s\n.inst\t0xcec084c8\t//sm4e v8.4s,v6.4s\n.inst\t0xcec084e8\t//sm4e v8.4s,v7.4s\n\trev64\tv8.4S,v8.4S\n\text\tv8.16b,v8.16b,v8.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n\tst1\t{v8.4s},[x1],#16\n\tb.ne\t1b\n\tb\t3f\n.Ldec:\n1:\n\tcmp\tx2, #64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0]\n\tld1\t{v24.4s,v25.4s,v26.4s,v27.4s},[x0],#64\n\tcmp\tx2,#128\n\tb.lt\t2f\n\t// 8 blocks mode\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x0]\n\tld1\t{v28.4s,v29.4s,v30.4s,v31.4s},[x0],#64\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:15", "text": "rev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:16", "text": ".inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s\n\n.inst\t0xcec08454\t//sm4e v20.4s,v2.4s\n.inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:17", "text": ".inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\teor\tv17.16b,v17.16b,v24.16b\n\teor\tv18.16b,v18.16b,v25.16b\n\tmov\tv8.16b,v31.16b\n\teor\tv19.16b,v19.16b,v26.16b\n\teor\tv20.16b,v20.16b,v27.16b\n\teor\tv21.16b,v21.16b,v28.16b\n\teor\tv22.16b,v22.16b,v29.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:18", "text": "#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\teor\tv17.16b,v17.16b,v24.16b\n\teor\tv18.16b,v18.16b,v25.16b\n\tmov\tv8.16b,v31.16b\n\teor\tv19.16b,v19.16b,v26.16b\n\teor\tv20.16b,v20.16b,v27.16b\n\teor\tv21.16b,v21.16b,v28.16b\n\teor\tv22.16b,v22.16b,v29.16b\n\teor\tv23.16b,v23.16b,v30.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,128\n\tb.gt\t1b\n\tb\t3f\n\t// 4 blocks mode\n2:\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:19", "text": ".inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:20", "text": ".inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\teor\tv17.16b,v17.16b,v24.16b\n\tmov\tv8.16b,v27.16b\n\teor\tv18.16b,v18.16b,v25.16b\n\teor\tv19.16b,v19.16b,v26.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.gt\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t3f\n\tld1\t{v16.4s},[x0],#16\n\tmov\tv24.16b,v16.16b\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\tmov\tv8.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.ne\t1b\n3:\n\t// save back IV\n\tst1\t{v8.4s},[x4]\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_cbc_encrypt,.-sm4_v8_cbc_encrypt\n.globl\tsm4_v8_ctr32_encrypt_blocks\n.type\tsm4_v8_ctr32_encrypt_blocks,%function", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:21", "text": ".inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\tmov\tv8.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.ne\t1b\n3:\n\t// save back IV\n\tst1\t{v8.4s},[x4]\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_cbc_encrypt,.-sm4_v8_cbc_encrypt\n.globl\tsm4_v8_ctr32_encrypt_blocks\n.type\tsm4_v8_ctr32_encrypt_blocks,%function\n.align\t5\nsm4_v8_ctr32_encrypt_blocks:\n\tAARCH64_VALID_CALL_TARGET\n\tstp\td8,d9,[sp, #-16]!\n\n\tld1\t{v8.4s},[x4]\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n\tmov\tw5,v8.s[3]\n1:\n\tcmp\tx2,#4\n\tb.lt\t1f\n\tld1\t{v24.4s,v25.4s,v26.4s,v27.4s},[x0],#64\n\tmov\tv16.16b,v8.16b\n\tmov\tv17.16b,v8.16b\n\tmov\tv18.16b,v8.16b\n\tmov\tv19.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv17.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv18.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv19.s[3],w5\n\tcmp\tx2,#8\n\tb.lt\t2f\n\tld1\t{v28.4s,v29.4s,v30.4s,v31.4s},[x0],#64\n\tmov\tv20.16b,v8.16b\n\tmov\tv21.16b,v8.16b\n\tmov\tv22.16b,v8.16b\n\tmov\tv23.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv20.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv21.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv22.s[3],w5\n\tadd\tw5,w5,#1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:22", "text": "add\tw5,w5,#1\n\tmov\tv17.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv18.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv19.s[3],w5\n\tcmp\tx2,#8\n\tb.lt\t2f\n\tld1\t{v28.4s,v29.4s,v30.4s,v31.4s},[x0],#64\n\tmov\tv20.16b,v8.16b\n\tmov\tv21.16b,v8.16b\n\tmov\tv22.16b,v8.16b\n\tmov\tv23.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv20.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv21.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv22.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv23.s[3],w5\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:23", "text": ".inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s\n\n.inst\t0xcec08454\t//sm4e v20.4s,v2.4s\n.inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:24", "text": ".inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:25", "text": "#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v26.16b\n\teor\tv19.16b,v19.16b,v27.16b\n\teor\tv20.16b,v20.16b,v28.16b\n\teor\tv21.16b,v21.16b,v29.16b\n\teor\tv22.16b,v22.16b,v30.16b\n\teor\tv23.16b,v23.16b,v31.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,#8\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n2:\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:26", "text": ".inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v26.16b\n\teor\tv19.16b,v19.16b,v27.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:27", "text": "rev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v26.16b\n\teor\tv19.16b,v19.16b,v27.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#4\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n1:\n\tsubs\tx2,x2,#1\n\tb.lt\t3f\n\tmov\tv16.16b,v8.16b\n\tld1\t{v24.4s},[x0],#16\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n3:\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_ctr32_encrypt_blocks,.-sm4_v8_ctr32_encrypt_blocks", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 1041, "line_end": 1092}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S:28", "text": "rev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n3:\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_ctr32_encrypt_blocks,.-sm4_v8_ctr32_encrypt_blocks", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/sm4-armv8.S", "line_start": 1081, "line_end": 1092}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:1", "text": "#include \"arm_arch.h\"\n\n.section\t.rodata\n\n.type\t_vpaes_consts,%object\n.align\t7\t// totally strategic alignment\n_vpaes_consts:\n.Lk_mc_forward:\t//\tmc_forward\n.quad\t0x0407060500030201, 0x0C0F0E0D080B0A09\n.quad\t0x080B0A0904070605, 0x000302010C0F0E0D\n.quad\t0x0C0F0E0D080B0A09, 0x0407060500030201\n.quad\t0x000302010C0F0E0D, 0x080B0A0904070605\n.Lk_mc_backward:\t//\tmc_backward\n.quad\t0x0605040702010003, 0x0E0D0C0F0A09080B\n.quad\t0x020100030E0D0C0F, 0x0A09080B06050407\n.quad\t0x0E0D0C0F0A09080B, 0x0605040702010003\n.quad\t0x0A09080B06050407, 0x020100030E0D0C0F\n.Lk_sr:\t//\tsr\n.quad\t0x0706050403020100, 0x0F0E0D0C0B0A0908\n.quad\t0x030E09040F0A0500, 0x0B06010C07020D08\n.quad\t0x0F060D040B020900, 0x070E050C030A0108\n.quad\t0x0B0E0104070A0D00, 0x0306090C0F020508\n\n//\n// \"Hot\" constants\n//\n.Lk_inv:\t//\tinv, inva\n.quad\t0x0E05060F0D080180, 0x040703090A0B0C02\n.quad\t0x01040A060F0B0780, 0x030D0E0C02050809\n.Lk_ipt:\t//\tinput transform (lo, hi)\n.quad\t0xC2B2E8985A2A7000, 0xCABAE09052227808\n.quad\t0x4C01307D317C4D00, 0xCD80B1FCB0FDCC81\n.Lk_sbo:\t//\tsbou, sbot\n.quad\t0xD0D26D176FBDC700, 0x15AABF7AC502A878\n.quad\t0xCFE474A55FBB6A00, 0x8E1E90D1412B35FA\n.Lk_sb1:\t//\tsb1u, sb1t\n.quad\t0x3618D415FAE22300, 0x3BF7CCC10D2ED9EF\n.quad\t0xB19BE18FCB503E00, 0xA5DF7A6E142AF544\n.Lk_sb2:\t//\tsb2u, sb2t\n.quad\t0x69EB88400AE12900, 0xC2A163C8AB82234A\n.quad\t0xE27A93C60B712400, 0x5EB7E955BC982FCD\n\n//\n//  Decryption stuff\n//\n.Lk_dipt:\t//\tdecryption input transform\n.quad\t0x0F505B040B545F00, 0x154A411E114E451A\n.quad\t0x86E383E660056500, 0x12771772F491F194\n.Lk_dsbo:\t//\tdecryption sbox final output\n.quad\t0x1387EA537EF94000, 0xC7AA6DB9D4943E2D\n.quad\t0x12D7560F93441D00, 0xCA4B8159D8C58E9C\n.Lk_dsb9:\t//\tdecryption sbox output *9*u, *9*t\n.quad\t0x851C03539A86D600, 0xCAD51F504F994CC9\n.quad\t0xC03B1789ECD74900, 0x725E2C9EB2FBA565\n.Lk_dsbd:\t//\tdecryption sbox output *D*u, *D*t\n.quad\t0x7D57CCDFE6B1A200, 0xF56E9B13882A4439\n.quad\t0x3CE2FAF724C6CB00, 0x2931180D15DEEFD3\n.Lk_dsbb:\t//\tdecryption sbox output *B*u, *B*t\n.quad\t0xD022649296B44200, 0x602646F6B0F2D404\n.quad\t0xC19498A6CD596700, 0xF3FF0C3E3255AA6B", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:2", "text": ".quad\t0xE27A93C60B712400, 0x5EB7E955BC982FCD\n\n//\n//  Decryption stuff\n//\n.Lk_dipt:\t//\tdecryption input transform\n.quad\t0x0F505B040B545F00, 0x154A411E114E451A\n.quad\t0x86E383E660056500, 0x12771772F491F194\n.Lk_dsbo:\t//\tdecryption sbox final output\n.quad\t0x1387EA537EF94000, 0xC7AA6DB9D4943E2D\n.quad\t0x12D7560F93441D00, 0xCA4B8159D8C58E9C\n.Lk_dsb9:\t//\tdecryption sbox output *9*u, *9*t\n.quad\t0x851C03539A86D600, 0xCAD51F504F994CC9\n.quad\t0xC03B1789ECD74900, 0x725E2C9EB2FBA565\n.Lk_dsbd:\t//\tdecryption sbox output *D*u, *D*t\n.quad\t0x7D57CCDFE6B1A200, 0xF56E9B13882A4439\n.quad\t0x3CE2FAF724C6CB00, 0x2931180D15DEEFD3\n.Lk_dsbb:\t//\tdecryption sbox output *B*u, *B*t\n.quad\t0xD022649296B44200, 0x602646F6B0F2D404\n.quad\t0xC19498A6CD596700, 0xF3FF0C3E3255AA6B\n.Lk_dsbe:\t//\tdecryption sbox output *E*u, *E*t\n.quad\t0x46F2929626D4D000, 0x2242600464B4F6B0\n.quad\t0x0C55A6CDFFAAC100, 0x9467F36B98593E32\n\n//\n//  Key schedule constants\n//\n.Lk_dksd:\t//\tdecryption key schedule: invskew x*D\n.quad\t0xFEB91A5DA3E44700, 0x0740E3A45A1DBEF9\n.quad\t0x41C277F4B5368300, 0x5FDC69EAAB289D1E\n.Lk_dksb:\t//\tdecryption key schedule: invskew x*B\n.quad\t0x9A4FCA1F8550D500, 0x03D653861CC94C99\n.quad\t0x115BEDA7B6FC4A00, 0xD993256F7E3482C8\n.Lk_dkse:\t//\tdecryption key schedule: invskew x*E + 0x63\n.quad\t0xD5031CCA1FC9D600, 0x53859A4C994F5086\n.quad\t0xA23196054FDC7BE8, 0xCD5EF96A20B31487\n.Lk_dks9:\t//\tdecryption key schedule: invskew x*9\n.quad\t0xB6116FC87ED9A700, 0x4AED933482255BFC\n.quad\t0x4576516227143300, 0x8BB89FACE9DAFDCE\n\n.Lk_rcon:\t//\trcon\n.quad\t0x1F8391B9AF9DEEB6, 0x702A98084D7C7D81\n\n.Lk_opt:\t//\toutput transform\n.quad\t0xFF9F4929D6B66000, 0xF7974121DEBE6808\n.quad\t0x01EDBD5150BCEC00, 0xE10D5DB1B05C0CE0\n.Lk_deskew:\t//\tdeskew tables: inverts the sbox's \"skew\"\n.quad\t0x07E4A34047A4E300, 0x1DFEB95A5DBEF91A\n.quad\t0x5F36B5DC83EA6900, 0x2841C2ABF49D1E77\n\n.byte\t86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105,111,110,32,65,69,83,32,102,111,114,32,65,82,77,118,56,44,32,77,105,107,101,32,72,97,109,98,117,114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105,118,101,114,115,105,116,121,41,0\n.align\t2\n.size\t_vpaes_consts,.-_vpaes_consts\n.align\t6\n\n.text\n\n//\n//  _aes_preheat\n//", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:3", "text": ".Lk_rcon:\t//\trcon\n.quad\t0x1F8391B9AF9DEEB6, 0x702A98084D7C7D81\n\n.Lk_opt:\t//\toutput transform\n.quad\t0xFF9F4929D6B66000, 0xF7974121DEBE6808\n.quad\t0x01EDBD5150BCEC00, 0xE10D5DB1B05C0CE0\n.Lk_deskew:\t//\tdeskew tables: inverts the sbox's \"skew\"\n.quad\t0x07E4A34047A4E300, 0x1DFEB95A5DBEF91A\n.quad\t0x5F36B5DC83EA6900, 0x2841C2ABF49D1E77\n\n.byte\t86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105,111,110,32,65,69,83,32,102,111,114,32,65,82,77,118,56,44,32,77,105,107,101,32,72,97,109,98,117,114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105,118,101,114,115,105,116,121,41,0\n.align\t2\n.size\t_vpaes_consts,.-_vpaes_consts\n.align\t6\n\n.text\n\n//\n//  _aes_preheat\n//\n//  Fills register %r10 -> .aes_consts (so you can -fPIC)\n//  and %xmm9-%xmm15 as specified below.\n//\n.type\t_vpaes_encrypt_preheat,%function\n.align\t4\n_vpaes_encrypt_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv17.16b, #0x0f\n\tld1\t{v18.2d,v19.2d}, [x10],#32\t// .Lk_inv\n\tld1\t{v20.2d,v21.2d,v22.2d,v23.2d}, [x10],#64\t// .Lk_ipt, .Lk_sbo\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x10]\t\t// .Lk_sb1, .Lk_sb2\n\tret\n.size\t_vpaes_encrypt_preheat,.-_vpaes_encrypt_preheat\n\n//\n//  _aes_encrypt_core\n//\n//  AES-encrypt %xmm0.\n//\n//  Inputs:\n//     %xmm0 = input\n//     %xmm9-%xmm15 as in _vpaes_preheat\n//    (%rdx) = scheduled keys\n//\n//  Output in %xmm0\n//  Clobbers  %xmm1-%xmm5, %r9, %r10, %r11, %rax\n//  Preserves %xmm6 - %xmm8 so you get some local vectors\n//\n//\n.type\t_vpaes_encrypt_core,%function\n.align\t4\n_vpaes_encrypt_core:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\tadrp\tx11, .Lk_mc_forward+16\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward+16\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt(%rip),\t%xmm2\t# iptlo\n\tld1\t{v16.2d}, [x9], #16\t\t// vmovdqu\t(%r9),\t%xmm5\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:4", "text": "//  Inputs:\n//     %xmm0 = input\n//     %xmm9-%xmm15 as in _vpaes_preheat\n//    (%rdx) = scheduled keys\n//\n//  Output in %xmm0\n//  Clobbers  %xmm1-%xmm5, %r9, %r10, %r11, %rax\n//  Preserves %xmm6 - %xmm8 so you get some local vectors\n//\n//\n.type\t_vpaes_encrypt_core,%function\n.align\t4\n_vpaes_encrypt_core:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\tadrp\tx11, .Lk_mc_forward+16\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward+16\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt(%rip),\t%xmm2\t# iptlo\n\tld1\t{v16.2d}, [x9], #16\t\t// vmovdqu\t(%r9),\t%xmm5\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v7.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm1\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt+16(%rip), %xmm3\t# ipthi\n\ttbl\tv2.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm3,\t%xmm2\n\teor\tv0.16b, v1.16b, v16.16b\t\t// vpxor\t%xmm5,\t%xmm1,\t%xmm0\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tb\t.Lenc_entry\n\n.align\t4\n.Lenc_loop:\n\t// middle of middle round\n\tadd\tx10, x11, #0x40\n\ttbl\tv4.16b, {v25.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm13,\t%xmm4\t# 4 = sb1u\n\tld1\t{v1.2d}, [x11], #16\t\t// vmovdqa\t-0x40(%r11,%r10), %xmm1\t# .Lk_mc_forward[]\n\ttbl\tv0.16b, {v24.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm12,\t%xmm0\t# 0 = sb1t\n\teor\tv4.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\ttbl\tv5.16b,\t{v27.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm15,\t%xmm5\t# 4 = sb2u\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\ttbl\tv2.16b, {v26.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm14,\t%xmm2\t# 2 = sb2t\n\tld1\t{v4.2d}, [x10]\t\t\t// vmovdqa\t(%r11,%r10), %xmm4\t# .Lk_mc_backward[]\n\ttbl\tv3.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm3\t# 0 = B\n\teor\tv2.16b, v2.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm2,\t%xmm2\t# 2 = 2A\n\ttbl\tv0.16b, {v0.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm0,\t%xmm0\t# 3 = D\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 0 = 2A+B\n\ttbl\tv4.16b, {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm4\t# 0 = 2B+C\n\teor\tv0.16b, v0.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm0,\t%xmm0\t# 3 = 2A+B+D\n\tand\tx11, x11, #~(1<<6)\t\t// and\t\t$0x30,\t%r11\t\t# ... mod 4\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0, %xmm0\t# 0 = 2A+3B+C+D\n\tsub\tw8, w8, #1\t\t\t// nr--\n\n.Lenc_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv5.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\teor\tv1.16b, v1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:5", "text": "tbl\tv3.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm3\t# 0 = B\n\teor\tv2.16b, v2.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm2,\t%xmm2\t# 2 = 2A\n\ttbl\tv0.16b, {v0.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm0,\t%xmm0\t# 3 = D\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 0 = 2A+B\n\ttbl\tv4.16b, {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm4\t# 0 = 2B+C\n\teor\tv0.16b, v0.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm0,\t%xmm0\t# 3 = 2A+B+D\n\tand\tx11, x11, #~(1<<6)\t\t// and\t\t$0x30,\t%r11\t\t# ... mod 4\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0, %xmm0\t# 0 = 2A+3B+C+D\n\tsub\tw8, w8, #1\t\t\t// nr--\n\n.Lenc_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv5.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\teor\tv1.16b, v1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2  \t# 2 = 1/iak\n\ttbl\tv3.16b, {v18.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm3\t# 3 = 1/jak\n\teor\tv2.16b, v2.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2  \t# 2 = io\n\teor\tv3.16b, v3.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm3,\t%xmm3\t# 3 = jo\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm5\n\tcbnz\tw8, .Lenc_loop\n\n\t// middle of last round\n\tadd\tx10, x11, #0x80\n\t\t\t\t\t\t// vmovdqa\t-0x60(%r10), %xmm4\t# 3 : sbou\t.Lk_sbo\n\t\t\t\t\t\t// vmovdqa\t-0x50(%r10), %xmm0\t# 0 : sbot\t.Lk_sbo+16\n\ttbl\tv4.16b, {v22.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\tld1\t{v1.2d}, [x10]\t\t\t// vmovdqa\t0x40(%r11,%r10), %xmm1\t# .Lk_sr[]\n\ttbl\tv0.16b, {v23.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm0,\t%xmm0\t# 0 = sb1t\n\teor\tv4.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\ttbl\tv0.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\n\tret\n.size\t_vpaes_encrypt_core,.-_vpaes_encrypt_core\n\n.globl\tvpaes_encrypt\n.type\tvpaes_encrypt,%function\n.align\t4\nvpaes_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_encrypt_preheat\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_encrypt,.-vpaes_encrypt\n\n.type\t_vpaes_encrypt_2x,%function\n.align\t4", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:6", "text": ".globl\tvpaes_encrypt\n.type\tvpaes_encrypt,%function\n.align\t4\nvpaes_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_encrypt_preheat\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_encrypt,.-vpaes_encrypt\n\n.type\t_vpaes_encrypt_2x,%function\n.align\t4\n_vpaes_encrypt_2x:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\tadrp\tx11, .Lk_mc_forward+16\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward+16\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt(%rip),\t%xmm2\t# iptlo\n\tld1\t{v16.2d}, [x9], #16\t\t// vmovdqu\t(%r9),\t%xmm5\t\t# round0 key\n\tand\tv1.16b,  v14.16b,  v17.16b\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b,  v14.16b,  #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\tand\tv9.16b,  v15.16b,  v17.16b\n\tushr\tv8.16b,  v15.16b,  #4\n\ttbl\tv1.16b,  {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm1\n\ttbl\tv9.16b,  {v20.16b}, v9.16b\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt+16(%rip), %xmm3\t# ipthi\n\ttbl\tv2.16b,  {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm3,\t%xmm2\n\ttbl\tv10.16b, {v21.16b}, v8.16b\n\teor\tv0.16b,  v1.16b,   v16.16b\t// vpxor\t%xmm5,\t%xmm1,\t%xmm0\n\teor\tv8.16b,  v9.16b,   v16.16b\n\teor\tv0.16b,  v0.16b,   v2.16b\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v8.16b,   v10.16b\n\tb\t.Lenc_2x_entry\n\n.align\t4\n.Lenc_2x_loop:\n\t// middle of middle round\n\tadd\tx10, x11, #0x40\n\ttbl\tv4.16b,  {v25.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm13,\t%xmm4\t# 4 = sb1u\n\ttbl\tv12.16b, {v25.16b}, v10.16b\n\tld1\t{v1.2d}, [x11], #16\t\t// vmovdqa\t-0x40(%r11,%r10), %xmm1\t# .Lk_mc_forward[]\n\ttbl\tv0.16b,  {v24.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm12,\t%xmm0\t# 0 = sb1t\n\ttbl\tv8.16b,  {v24.16b}, v11.16b\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\ttbl\tv5.16b,\t {v27.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm15,\t%xmm5\t# 4 = sb2u\n\ttbl\tv13.16b, {v27.16b}, v10.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v8.16b,  v12.16b\n\ttbl\tv2.16b,  {v26.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm14,\t%xmm2\t# 2 = sb2t\n\ttbl\tv10.16b, {v26.16b}, v11.16b\n\tld1\t{v4.2d}, [x10]\t\t\t// vmovdqa\t(%r11,%r10), %xmm4\t# .Lk_mc_backward[]", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:7", "text": "b\t.Lenc_2x_entry\n\n.align\t4\n.Lenc_2x_loop:\n\t// middle of middle round\n\tadd\tx10, x11, #0x40\n\ttbl\tv4.16b,  {v25.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm13,\t%xmm4\t# 4 = sb1u\n\ttbl\tv12.16b, {v25.16b}, v10.16b\n\tld1\t{v1.2d}, [x11], #16\t\t// vmovdqa\t-0x40(%r11,%r10), %xmm1\t# .Lk_mc_forward[]\n\ttbl\tv0.16b,  {v24.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm12,\t%xmm0\t# 0 = sb1t\n\ttbl\tv8.16b,  {v24.16b}, v11.16b\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\ttbl\tv5.16b,\t {v27.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm15,\t%xmm5\t# 4 = sb2u\n\ttbl\tv13.16b, {v27.16b}, v10.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v8.16b,  v12.16b\n\ttbl\tv2.16b,  {v26.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm14,\t%xmm2\t# 2 = sb2t\n\ttbl\tv10.16b, {v26.16b}, v11.16b\n\tld1\t{v4.2d}, [x10]\t\t\t// vmovdqa\t(%r11,%r10), %xmm4\t# .Lk_mc_backward[]\n\ttbl\tv3.16b,  {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm3\t# 0 = B\n\ttbl\tv11.16b, {v8.16b}, v1.16b\n\teor\tv2.16b,  v2.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm2,\t%xmm2\t# 2 = 2A\n\teor\tv10.16b, v10.16b, v13.16b\n\ttbl\tv0.16b,  {v0.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm0,\t%xmm0\t# 3 = D\n\ttbl\tv8.16b,  {v8.16b}, v4.16b\n\teor\tv3.16b,  v3.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 0 = 2A+B\n\teor\tv11.16b, v11.16b, v10.16b\n\ttbl\tv4.16b,  {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm4\t# 0 = 2B+C\n\ttbl\tv12.16b, {v11.16b},v1.16b\n\teor\tv0.16b,  v0.16b,  v3.16b\t// vpxor\t%xmm3,\t%xmm0,\t%xmm0\t# 3 = 2A+B+D\n\teor\tv8.16b,  v8.16b,  v11.16b\n\tand\tx11, x11, #~(1<<6)\t\t// and\t\t$0x30,\t%r11\t\t# ... mod 4\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0, %xmm0\t# 0 = 2A+3B+C+D\n\teor\tv8.16b,  v8.16b,  v12.16b\n\tsub\tw8, w8, #1\t\t\t// nr--\n\n.Lenc_2x_entry:\n\t// top of round\n\tand\tv1.16b,  v0.16b, v17.16b\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b,  v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\tand\tv9.16b,  v8.16b, v17.16b\n\tushr\tv8.16b,  v8.16b, #4\n\ttbl\tv5.16b,  {v19.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\ttbl\tv13.16b, {v19.16b},v9.16b\n\teor\tv1.16b,  v1.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\teor\tv9.16b,  v9.16b,  v8.16b\n\ttbl\tv3.16b,  {v18.16b},v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv11.16b, {v18.16b},v8.16b\n\ttbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v13.16b\n\teor\tv4.16b,  v4.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v13.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2  \t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2  \t# 2 = io", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:8", "text": "ushr\tv0.16b,  v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\tand\tv9.16b,  v8.16b, v17.16b\n\tushr\tv8.16b,  v8.16b, #4\n\ttbl\tv5.16b,  {v19.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\ttbl\tv13.16b, {v19.16b},v9.16b\n\teor\tv1.16b,  v1.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\teor\tv9.16b,  v9.16b,  v8.16b\n\ttbl\tv3.16b,  {v18.16b},v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv11.16b, {v18.16b},v8.16b\n\ttbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v13.16b\n\teor\tv4.16b,  v4.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v13.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2  \t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2  \t# 2 = io\n\teor\tv10.16b, v10.16b, v9.16b\n\teor\tv3.16b,  v3.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm3,\t%xmm3\t# 3 = jo\n\teor\tv11.16b, v11.16b, v8.16b\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm5\n\tcbnz\tw8, .Lenc_2x_loop\n\n\t// middle of last round\n\tadd\tx10, x11, #0x80\n\t\t\t\t\t\t// vmovdqa\t-0x60(%r10), %xmm4\t# 3 : sbou\t.Lk_sbo\n\t\t\t\t\t\t// vmovdqa\t-0x50(%r10), %xmm0\t# 0 : sbot\t.Lk_sbo+16\n\ttbl\tv4.16b,  {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\ttbl\tv12.16b, {v22.16b}, v10.16b\n\tld1\t{v1.2d}, [x10]\t\t\t// vmovdqa\t0x40(%r11,%r10), %xmm1\t# .Lk_sr[]\n\ttbl\tv0.16b,  {v23.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm0,\t%xmm0\t# 0 = sb1t\n\ttbl\tv8.16b,  {v23.16b}, v11.16b\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v8.16b,  v12.16b\n\ttbl\tv0.16b,  {v0.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b,  {v8.16b},v1.16b\n\tret\n.size\t_vpaes_encrypt_2x,.-_vpaes_encrypt_2x\n\n.type\t_vpaes_decrypt_preheat,%function\n.align\t4\n_vpaes_decrypt_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv17.16b, #0x0f\n\tadrp\tx11, .Lk_dipt\n\tadd\tx11, x11, #:lo12:.Lk_dipt\n\tld1\t{v18.2d,v19.2d}, [x10],#32\t// .Lk_inv\n\tld1\t{v20.2d,v21.2d,v22.2d,v23.2d}, [x11],#64\t// .Lk_dipt, .Lk_dsbo\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x11],#64\t// .Lk_dsb9, .Lk_dsbd\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x11]\t\t// .Lk_dsbb, .Lk_dsbe\n\tret\n.size\t_vpaes_decrypt_preheat,.-_vpaes_decrypt_preheat\n\n//", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:9", "text": "tbl\tv1.16b,  {v8.16b},v1.16b\n\tret\n.size\t_vpaes_encrypt_2x,.-_vpaes_encrypt_2x\n\n.type\t_vpaes_decrypt_preheat,%function\n.align\t4\n_vpaes_decrypt_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv17.16b, #0x0f\n\tadrp\tx11, .Lk_dipt\n\tadd\tx11, x11, #:lo12:.Lk_dipt\n\tld1\t{v18.2d,v19.2d}, [x10],#32\t// .Lk_inv\n\tld1\t{v20.2d,v21.2d,v22.2d,v23.2d}, [x11],#64\t// .Lk_dipt, .Lk_dsbo\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x11],#64\t// .Lk_dsb9, .Lk_dsbd\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x11]\t\t// .Lk_dsbb, .Lk_dsbe\n\tret\n.size\t_vpaes_decrypt_preheat,.-_vpaes_decrypt_preheat\n\n//\n//  Decryption core\n//\n//  Same API as encryption core.\n//\n.type\t_vpaes_decrypt_core,%function\n.align\t4\n_vpaes_decrypt_core:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt(%rip), %xmm2\t# iptlo\n\tlsl\tx11, x8, #4\t\t\t// mov\t%rax,\t%r11;\tshl\t$4, %r11\n\teor\tx11, x11, #0x30\t\t\t// xor\t\t$0x30,\t%r11\n\tadrp\tx10, .Lk_sr\n\tadd\tx10, x10, #:lo12:.Lk_sr\n\tand\tx11, x11, #0x30\t\t\t// and\t\t$0x30,\t%r11\n\tadd\tx11, x11, x10\n\tadrp\tx10, .Lk_mc_forward+48\n\tadd\tx10, x10, #:lo12:.Lk_mc_forward+48\n\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm4\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v7.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\ttbl\tv2.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\teor\tv2.16b, v2.16b, v16.16b\t\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tb\t.Ldec_entry\n\n.align\t4\n.Ldec_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b, {v24.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv1.16b, {v25.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sb9t", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:10", "text": "ld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm4\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v7.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\ttbl\tv2.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\teor\tv2.16b, v2.16b, v16.16b\t\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tb\t.Ldec_entry\n\n.align\t4\n.Ldec_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b, {v24.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv1.16b, {v25.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sb9t\n\teor\tv0.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\n\t\t\t\t\t\t// vmovdqa\t0x00(%r10),%xmm4\t\t# 4 : sbdu\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x10(%r10),%xmm1\t\t# 0 : sbdt\n\n\ttbl\tv4.16b, {v26.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbdu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v27.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbdt\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\t\t\t\t\t\t// vmovdqa\t0x20(%r10),\t%xmm4\t\t# 4 : sbbu\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x30(%r10),\t%xmm1\t\t# 0 : sbbt\n\n\ttbl\tv4.16b, {v28.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbbu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v29.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbbt\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\t\t\t\t\t\t// vmovdqa\t0x40(%r10),\t%xmm4\t\t# 4 : sbeu\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b, {v30.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v31.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\text\tv5.16b, v5.16b, v5.16b, #12\t// vpalignr $12,\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\tsub\tw8, w8, #1\t\t\t// sub\t\t$1,%rax\t\t\t# nr--\n\n.Ldec_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t# 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv2.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t# 2 = a/k\n\teor\tv1.16b,\tv1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:11", "text": "tbl\tv4.16b, {v30.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v31.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\text\tv5.16b, v5.16b, v5.16b, #12\t// vpalignr $12,\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\tsub\tw8, w8, #1\t\t\t// sub\t\t$1,%rax\t\t\t# nr--\n\n.Ldec_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t# 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv2.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t# 2 = a/k\n\teor\tv1.16b,\tv1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak\n\ttbl\tv3.16b, {v18.16b}, v4.16b\t// vpshufb\t%xmm4,  %xmm10,\t%xmm3\t# 3 = 1/jak\n\teor\tv2.16b, v2.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2\t# 2 = io\n\teor\tv3.16b, v3.16b, v0.16b\t\t// vpxor\t%xmm0,  %xmm3,\t%xmm3\t# 3 = jo\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm0\n\tcbnz\tw8, .Ldec_loop\n\n\t// middle of last round\n\t\t\t\t\t\t// vmovdqa\t0x60(%r10),\t%xmm4\t# 3 : sbou\n\ttbl\tv4.16b, {v22.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\t\t\t\t\t\t// vmovdqa\t0x70(%r10),\t%xmm1\t# 0 : sbot\n\tld1\t{v2.2d}, [x11]\t\t\t// vmovdqa\t-0x160(%r11),\t%xmm2\t# .Lk_sr-.Lk_dsbd=-0x160\n\ttbl\tv1.16b, {v23.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t# 0 = sb1t\n\teor\tv4.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm0,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv0.16b, v1.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm1,\t%xmm0\t# 0 = A\n\ttbl\tv0.16b, {v0.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm0,\t%xmm0\n\tret\n.size\t_vpaes_decrypt_core,.-_vpaes_decrypt_core\n\n.globl\tvpaes_decrypt\n.type\tvpaes_decrypt,%function\n.align\t4\nvpaes_decrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_decrypt_preheat\n\tbl\t_vpaes_decrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_decrypt,.-vpaes_decrypt\n\n// v14-v15 input, v0-v1 output\n.type\t_vpaes_decrypt_2x,%function\n.align\t4\n_vpaes_decrypt_2x:", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:12", "text": ".align\t4\nvpaes_decrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_decrypt_preheat\n\tbl\t_vpaes_decrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_decrypt,.-vpaes_decrypt\n\n// v14-v15 input, v0-v1 output\n.type\t_vpaes_decrypt_2x,%function\n.align\t4\n_vpaes_decrypt_2x:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt(%rip), %xmm2\t# iptlo\n\tlsl\tx11, x8, #4\t\t\t// mov\t%rax,\t%r11;\tshl\t$4, %r11\n\teor\tx11, x11, #0x30\t\t\t// xor\t\t$0x30,\t%r11\n\tadrp\tx10, .Lk_sr\n\tadd\tx10, x10, #:lo12:.Lk_sr\n\tand\tx11, x11, #0x30\t\t\t// and\t\t$0x30,\t%r11\n\tadd\tx11, x11, x10\n\tadrp\tx10, .Lk_mc_forward+48\n\tadd\tx10, x10, #:lo12:.Lk_mc_forward+48\n\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm4\t\t# round0 key\n\tand\tv1.16b,  v14.16b, v17.16b\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b,  v14.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\tand\tv9.16b,  v15.16b, v17.16b\n\tushr\tv8.16b,  v15.16b, #4\n\ttbl\tv2.16b,  {v20.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\ttbl\tv10.16b, {v20.16b},v9.16b\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b,  {v21.16b},v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\ttbl\tv8.16b,  {v21.16b},v8.16b\n\teor\tv2.16b,  v2.16b,  v16.16b\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv10.16b, v10.16b, v16.16b\n\teor\tv0.16b,  v0.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v8.16b,  v10.16b\n\tb\t.Ldec_2x_entry\n\n.align\t4\n.Ldec_2x_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b,  {v24.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv12.16b, {v24.16b}, v10.16b\n\ttbl\tv1.16b,  {v25.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sb9t", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:13", "text": "ld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b,  {v21.16b},v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\ttbl\tv8.16b,  {v21.16b},v8.16b\n\teor\tv2.16b,  v2.16b,  v16.16b\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv10.16b, v10.16b, v16.16b\n\teor\tv0.16b,  v0.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v8.16b,  v10.16b\n\tb\t.Ldec_2x_entry\n\n.align\t4\n.Ldec_2x_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b,  {v24.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv12.16b, {v24.16b}, v10.16b\n\ttbl\tv1.16b,  {v25.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sb9t\n\ttbl\tv9.16b,  {v25.16b}, v11.16b\n\teor\tv0.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v12.16b, v16.16b\n\t\t\t\t\t\t// vmovdqa\t0x00(%r10),%xmm4\t\t# 4 : sbdu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x10(%r10),%xmm1\t\t# 0 : sbdt\n\n\ttbl\tv4.16b,  {v26.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbdu\n\ttbl\tv12.16b, {v26.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v27.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbdt\n\ttbl\tv9.16b,  {v27.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\t\t\t\t\t\t// vmovdqa\t0x20(%r10),\t%xmm4\t\t# 4 : sbbu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\t\t\t\t\t\t// vmovdqa\t0x30(%r10),\t%xmm1\t\t# 0 : sbbt\n\n\ttbl\tv4.16b,  {v28.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbbu\n\ttbl\tv12.16b, {v28.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v29.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbbt\n\ttbl\tv9.16b,  {v29.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\t\t\t\t\t\t// vmovdqa\t0x40(%r10),\t%xmm4\t\t# 4 : sbeu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\t\t\t\t\t\t// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b,  {v30.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv12.16b, {v30.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v31.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\ttbl\tv9.16b,  {v31.16b}, v11.16b", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:14", "text": "tbl\tv4.16b,  {v28.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbbu\n\ttbl\tv12.16b, {v28.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v29.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbbt\n\ttbl\tv9.16b,  {v29.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\t\t\t\t\t\t// vmovdqa\t0x40(%r10),\t%xmm4\t\t# 4 : sbeu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\t\t\t\t\t\t// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b,  {v30.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv12.16b, {v30.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v31.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\ttbl\tv9.16b,  {v31.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\text\tv5.16b,  v5.16b,  v5.16b, #12\t// vpalignr $12,\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\tsub\tw8, w8, #1\t\t\t// sub\t\t$1,%rax\t\t\t# nr--\n\n.Ldec_2x_entry:\n\t// top of round\n\tand\tv1.16b,  v0.16b,  v17.16b\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t# 0 = k\n\tushr\tv0.16b,  v0.16b,  #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\tand\tv9.16b,  v8.16b,  v17.16b\n\tushr\tv8.16b,  v8.16b,  #4\n\ttbl\tv2.16b,  {v19.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t# 2 = a/k\n\ttbl\tv10.16b, {v19.16b},v9.16b\n\teor\tv1.16b,\t v1.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\teor\tv9.16b,\t v9.16b,  v8.16b\n\ttbl\tv3.16b,  {v18.16b},v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t# 3 = 1/i\n\ttbl\tv11.16b, {v18.16b},v8.16b\n\ttbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v10.16b\n\teor\tv4.16b,  v4.16b,  v2.16b\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v10.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,  %xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2\t# 2 = io\n\teor\tv10.16b, v10.16b, v9.16b\n\teor\tv3.16b,  v3.16b,  v0.16b\t// vpxor\t%xmm0,  %xmm3,\t%xmm3\t# 3 = jo\n\teor\tv11.16b, v11.16b, v8.16b\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm0\n\tcbnz\tw8, .Ldec_2x_loop\n\n\t// middle of last round\n\t\t\t\t\t\t// vmovdqa\t0x60(%r10),\t%xmm4\t# 3 : sbou\n\ttbl\tv4.16b,  {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\ttbl\tv12.16b, {v22.16b}, v10.16b", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:15", "text": "tbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v10.16b\n\teor\tv4.16b,  v4.16b,  v2.16b\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v10.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,  %xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2\t# 2 = io\n\teor\tv10.16b, v10.16b, v9.16b\n\teor\tv3.16b,  v3.16b,  v0.16b\t// vpxor\t%xmm0,  %xmm3,\t%xmm3\t# 3 = jo\n\teor\tv11.16b, v11.16b, v8.16b\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm0\n\tcbnz\tw8, .Ldec_2x_loop\n\n\t// middle of last round\n\t\t\t\t\t\t// vmovdqa\t0x60(%r10),\t%xmm4\t# 3 : sbou\n\ttbl\tv4.16b,  {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\ttbl\tv12.16b, {v22.16b}, v10.16b\n\t\t\t\t\t\t// vmovdqa\t0x70(%r10),\t%xmm1\t# 0 : sbot\n\ttbl\tv1.16b,  {v23.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t# 0 = sb1t\n\ttbl\tv9.16b,  {v23.16b}, v11.16b\n\tld1\t{v2.2d}, [x11]\t\t\t// vmovdqa\t-0x160(%r11),\t%xmm2\t# .Lk_sr-.Lk_dsbd=-0x160\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm0,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\teor\tv0.16b,  v1.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm1,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v9.16b,  v12.16b\n\ttbl\tv0.16b,  {v0.16b},v2.16b\t// vpshufb\t%xmm2,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b,  {v8.16b},v2.16b\n\tret\n.size\t_vpaes_decrypt_2x,.-_vpaes_decrypt_2x\n////////////////////////////////////////////////////////\n//                                                    //\n//                  AES key schedule                  //\n//                                                    //\n////////////////////////////////////////////////////////\n.type\t_vpaes_key_preheat,%function\n.align\t4\n_vpaes_key_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv16.16b, #0x5b\t\t\t// .Lk_s63\n\tadrp\tx11, .Lk_sb1\n\tadd\tx11, x11, #:lo12:.Lk_sb1\n\tmovi\tv17.16b, #0x0f\t\t\t// .Lk_s0F\n\tld1\t{v18.2d,v19.2d,v20.2d,v21.2d}, [x10]\t\t// .Lk_inv, .Lk_ipt\n\tadrp\tx10, .Lk_dksd\n\tadd\tx10, x10, #:lo12:.Lk_dksd\n\tld1\t{v22.2d,v23.2d}, [x11]\t\t// .Lk_sb1\n\tadrp\tx11, .Lk_mc_forward\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x10],#64\t// .Lk_dksd, .Lk_dksb\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x10],#64\t// .Lk_dkse, .Lk_dks9\n\tld1\t{v8.2d}, [x10]\t\t\t// .Lk_rcon\n\tld1\t{v9.2d}, [x11]\t\t\t// .Lk_mc_forward[0]\n\tret\n.size\t_vpaes_key_preheat,.-_vpaes_key_preheat\n\n.type\t_vpaes_schedule_core,%function", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:16", "text": "adrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv16.16b, #0x5b\t\t\t// .Lk_s63\n\tadrp\tx11, .Lk_sb1\n\tadd\tx11, x11, #:lo12:.Lk_sb1\n\tmovi\tv17.16b, #0x0f\t\t\t// .Lk_s0F\n\tld1\t{v18.2d,v19.2d,v20.2d,v21.2d}, [x10]\t\t// .Lk_inv, .Lk_ipt\n\tadrp\tx10, .Lk_dksd\n\tadd\tx10, x10, #:lo12:.Lk_dksd\n\tld1\t{v22.2d,v23.2d}, [x11]\t\t// .Lk_sb1\n\tadrp\tx11, .Lk_mc_forward\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x10],#64\t// .Lk_dksd, .Lk_dksb\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x10],#64\t// .Lk_dkse, .Lk_dks9\n\tld1\t{v8.2d}, [x10]\t\t\t// .Lk_rcon\n\tld1\t{v9.2d}, [x11]\t\t\t// .Lk_mc_forward[0]\n\tret\n.size\t_vpaes_key_preheat,.-_vpaes_key_preheat\n\n.type\t_vpaes_schedule_core,%function\n.align\t4\n_vpaes_schedule_core:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29, x30, [sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tbl\t_vpaes_key_preheat\t\t// load the tables\n\n\tld1\t{v0.16b}, [x0],#16\t\t// vmovdqu\t(%rdi),\t%xmm0\t\t# load key (unaligned)\n\n\t// input transform\n\tmov\tv3.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm3\n\tbl\t_vpaes_schedule_transform\n\tmov\tv7.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm7\n\n\tadrp\tx10, .Lk_sr\n\tadd\tx10, x10, #:lo12:.Lk_sr\n\tadd\tx8, x8, x10\n\tcbnz\tw3, .Lschedule_am_decrypting\n\n\t// encrypting, output zeroth round key after transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\n\tb\t.Lschedule_go\n\n.Lschedule_am_decrypting:\n\t// decrypting, output zeroth round key after shiftrows\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\ttbl\tv3.16b, {v3.16b}, v1.16b\t// vpshufb  %xmm1,\t%xmm3,\t%xmm3\n\tst1\t{v3.2d}, [x2]\t\t\t// vmovdqu\t%xmm3,\t(%rdx)\n\teor\tx8, x8, #0x30\t\t\t// xor\t$0x30, %r8\n\n.Lschedule_go:\n\tcmp\tw1, #192\t\t\t// cmp\t$192,\t%esi\n\tb.hi\t.Lschedule_256\n\tb.eq\t.Lschedule_192\n\t// 128: fall though\n\n//\n//  .schedule_128\n//", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:18", "text": "//  The main body of this schedule is the same as the 128-bit\n//  schedule, but with more smearing.  The long, high side is\n//  stored in %xmm7 as before, and the short, low side is in\n//  the high bits of %xmm6.\n//\n//  This schedule is somewhat nastier, however, because each\n//  round produces 192 bits of key material, or 1.5 round keys.\n//  Therefore, on each cycle we do 2 rounds and produce 3 round\n//  keys.\n//\n.align\t4\n.Lschedule_192:\n\tsub\tx0, x0, #8\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t8(%rdi),%xmm0\t\t# load key part 2 (very unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save short part\n\teor\tv4.16b, v4.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm4, %xmm4\t# clear 4\n\tins\tv6.d[0], v4.d[0]\t\t// vmovhlps\t%xmm4,\t%xmm6,\t%xmm6\t\t# clobber low side with zeros\n\tmov\tx0, #4\t\t\t// mov\t$4,\t%esi\n\n.Loop_schedule_192:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_round\n\text\tv0.16b, v6.16b, v0.16b, #8\t// vpalignr\t$8,%xmm6,%xmm0,%xmm0\n\tbl\t_vpaes_schedule_mangle\t\t// save key n\n\tbl\t_vpaes_schedule_192_smear\n\tbl\t_vpaes_schedule_mangle\t\t// save key n+1\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle\t\t// save key n+2\n\tbl\t_vpaes_schedule_192_smear\n\tb\t.Loop_schedule_192\n\n//\n//  .aes_schedule_256\n//\n//  256-bit specific part of key schedule.\n//\n//  The structure here is very similar to the 128-bit\n//  schedule, but with an additional \"low side\" in\n//  %xmm6.  The low side's rounds are the same as the\n//  high side's, except no rcon and no rotation.\n//\n.align\t4\n.Lschedule_256:\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t16(%rdi),%xmm0\t\t# load key part 2 (unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tx0, #7\t\t\t// mov\t$7, %esi\n\n.Loop_schedule_256:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_mangle\t\t// output low result\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save cur_lo in xmm6\n\n\t// high round\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle\n\n\t// low round. swap xmm7 and xmm6", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:19", "text": "//  %xmm6.  The low side's rounds are the same as the\n//  high side's, except no rcon and no rotation.\n//\n.align\t4\n.Lschedule_256:\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t16(%rdi),%xmm0\t\t# load key part 2 (unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tx0, #7\t\t\t// mov\t$7, %esi\n\n.Loop_schedule_256:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_mangle\t\t// output low result\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save cur_lo in xmm6\n\n\t// high round\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle\n\n\t// low round. swap xmm7 and xmm6\n\tdup\tv0.4s, v0.s[3]\t\t\t// vpshufd\t$0xFF,\t%xmm0,\t%xmm0\n\tmovi\tv4.16b, #0\n\tmov\tv5.16b, v7.16b\t\t\t// vmovdqa\t%xmm7,\t%xmm5\n\tmov\tv7.16b, v6.16b\t\t\t// vmovdqa\t%xmm6,\t%xmm7\n\tbl\t_vpaes_schedule_low_round\n\tmov\tv7.16b, v5.16b\t\t\t// vmovdqa\t%xmm5,\t%xmm7\n\n\tb\t.Loop_schedule_256\n\n//\n//  .aes_schedule_mangle_last\n//\n//  Mangler for last round of key schedule\n//  Mangles %xmm0\n//    when encrypting, outputs out(%xmm0) ^ 63\n//    when decrypting, outputs unskew(%xmm0)\n//\n//  Always called right before return... jumps to cleanup and exits\n//\n.align\t4\n.Lschedule_mangle_last:\n\t// schedule last round key from xmm0\n\tadrp\tx11, .Lk_deskew\n\tadd\tx11, x11, #:lo12:.Lk_deskew\n\tcbnz\tw3, .Lschedule_mangle_last_dec\n\n\t// encrypting\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),%xmm1\n\tadrp\tx11, .Lk_opt\n\tadd\tx11, x11, #:lo12:.Lk_opt\n\tadd\tx2, x2, #32\t\t\t// add\t$32,\t%rdx\n\ttbl\tv0.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\t\t# output permute\n\n.Lschedule_mangle_last_dec:\n\tld1\t{v20.2d,v21.2d}, [x11]\t\t// reload constants\n\tsub\tx2, x2, #16\t\t\t// add\t$-16,\t%rdx\n\teor\tv0.16b, v0.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm0,\t%xmm0\n\tbl\t_vpaes_schedule_transform\t// output transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\t\t# save last key", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:20", "text": ".Lschedule_mangle_last:\n\t// schedule last round key from xmm0\n\tadrp\tx11, .Lk_deskew\n\tadd\tx11, x11, #:lo12:.Lk_deskew\n\tcbnz\tw3, .Lschedule_mangle_last_dec\n\n\t// encrypting\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),%xmm1\n\tadrp\tx11, .Lk_opt\n\tadd\tx11, x11, #:lo12:.Lk_opt\n\tadd\tx2, x2, #32\t\t\t// add\t$32,\t%rdx\n\ttbl\tv0.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\t\t# output permute\n\n.Lschedule_mangle_last_dec:\n\tld1\t{v20.2d,v21.2d}, [x11]\t\t// reload constants\n\tsub\tx2, x2, #16\t\t\t// add\t$-16,\t%rdx\n\teor\tv0.16b, v0.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm0,\t%xmm0\n\tbl\t_vpaes_schedule_transform\t// output transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\t\t# save last key\n\n\t// cleanup\n\teor\tv0.16b, v0.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm0,\t%xmm0\n\teor\tv1.16b, v1.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm1,\t%xmm1\n\teor\tv2.16b, v2.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm2,\t%xmm2\n\teor\tv3.16b, v3.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm3,\t%xmm3\n\teor\tv4.16b, v4.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm4,\t%xmm4\n\teor\tv5.16b, v5.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv6.16b, v6.16b, v6.16b\t\t// vpxor\t%xmm6,\t%xmm6,\t%xmm6\n\teor\tv7.16b, v7.16b, v7.16b\t\t// vpxor\t%xmm7,\t%xmm7,\t%xmm7\n\tldp\tx29, x30, [sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t_vpaes_schedule_core,.-_vpaes_schedule_core\n\n//\n//  .aes_schedule_192_smear\n//\n//  Smear the short, low side in the 192-bit key schedule.\n//\n//  Inputs:\n//    %xmm7: high side, b  a  x  y\n//    %xmm6:  low side, d  c  0  0\n//    %xmm13: 0\n//\n//  Outputs:\n//    %xmm6: b+c+d  b+c  0  0\n//    %xmm0: b+c+d  b+c  b  a\n//\n.type\t_vpaes_schedule_192_smear,%function\n.align\t4\n_vpaes_schedule_192_smear:\n\tmovi\tv1.16b, #0\n\tdup\tv0.4s, v7.s[3]\n\tins\tv1.s[3], v6.s[2]\t// vpshufd\t$0x80,\t%xmm6,\t%xmm1\t# d c 0 0 -> c 0 0 0\n\tins\tv0.s[0], v7.s[2]\t// vpshufd\t$0xFE,\t%xmm7,\t%xmm0\t# b a _ _ -> b b b a\n\teor\tv6.16b, v6.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm6,\t%xmm6\t# -> c+d c 0 0\n\teor\tv1.16b, v1.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm1,\t%xmm1\n\teor\tv6.16b, v6.16b, v0.16b\t// vpxor\t%xmm0,\t%xmm6,\t%xmm6\t# -> b+c+d b+c b a\n\tmov\tv0.16b, v6.16b\t\t// vmovdqa\t%xmm6,\t%xmm0\n\tins\tv6.d[0], v1.d[0]\t// vmovhlps\t%xmm1,\t%xmm6,\t%xmm6\t# clobber low side with zeros", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:21", "text": "//    %xmm7: high side, b  a  x  y\n//    %xmm6:  low side, d  c  0  0\n//    %xmm13: 0\n//\n//  Outputs:\n//    %xmm6: b+c+d  b+c  0  0\n//    %xmm0: b+c+d  b+c  b  a\n//\n.type\t_vpaes_schedule_192_smear,%function\n.align\t4\n_vpaes_schedule_192_smear:\n\tmovi\tv1.16b, #0\n\tdup\tv0.4s, v7.s[3]\n\tins\tv1.s[3], v6.s[2]\t// vpshufd\t$0x80,\t%xmm6,\t%xmm1\t# d c 0 0 -> c 0 0 0\n\tins\tv0.s[0], v7.s[2]\t// vpshufd\t$0xFE,\t%xmm7,\t%xmm0\t# b a _ _ -> b b b a\n\teor\tv6.16b, v6.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm6,\t%xmm6\t# -> c+d c 0 0\n\teor\tv1.16b, v1.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm1,\t%xmm1\n\teor\tv6.16b, v6.16b, v0.16b\t// vpxor\t%xmm0,\t%xmm6,\t%xmm6\t# -> b+c+d b+c b a\n\tmov\tv0.16b, v6.16b\t\t// vmovdqa\t%xmm6,\t%xmm0\n\tins\tv6.d[0], v1.d[0]\t// vmovhlps\t%xmm1,\t%xmm6,\t%xmm6\t# clobber low side with zeros\n\tret\n.size\t_vpaes_schedule_192_smear,.-_vpaes_schedule_192_smear\n\n//\n//  .aes_schedule_round\n//\n//  Runs one main round of the key schedule on %xmm0, %xmm7\n//\n//  Specifically, runs subbytes on the high dword of %xmm0\n//  then rotates it by one byte and xors into the low dword of\n//  %xmm7.\n//\n//  Adds rcon from low byte of %xmm8, then rotates %xmm8 for\n//  next rcon.\n//\n//  Smears the dwords of %xmm7 by xoring the low into the\n//  second low, result into third, result into highest.\n//\n//  Returns results in %xmm7 = %xmm0.\n//  Clobbers %xmm1-%xmm4, %r11.\n//\n.type\t_vpaes_schedule_round,%function\n.align\t4\n_vpaes_schedule_round:\n\t// extract rcon from xmm8\n\tmovi\tv4.16b, #0\t\t\t// vpxor\t%xmm4,\t%xmm4,\t%xmm4\n\text\tv1.16b, v8.16b, v4.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm4,\t%xmm1\n\text\tv8.16b, v8.16b, v8.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm8,\t%xmm8\n\teor\tv7.16b, v7.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm7,\t%xmm7\n\n\t// rotate\n\tdup\tv0.4s, v0.s[3]\t\t\t// vpshufd\t$0xFF,\t%xmm0,\t%xmm0\n\text\tv0.16b, v0.16b, v0.16b, #1\t// vpalignr\t$1,\t%xmm0,\t%xmm0,\t%xmm0\n\n\t// fall through...\n\n\t// low round: same as high round, but no rotation and no rcon.\n_vpaes_schedule_low_round:\n\t// smear xmm7\n\text\tv1.16b, v4.16b, v7.16b, #12\t// vpslldq\t$4,\t%xmm7,\t%xmm1", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:22", "text": "//\n.type\t_vpaes_schedule_round,%function\n.align\t4\n_vpaes_schedule_round:\n\t// extract rcon from xmm8\n\tmovi\tv4.16b, #0\t\t\t// vpxor\t%xmm4,\t%xmm4,\t%xmm4\n\text\tv1.16b, v8.16b, v4.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm4,\t%xmm1\n\text\tv8.16b, v8.16b, v8.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm8,\t%xmm8\n\teor\tv7.16b, v7.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm7,\t%xmm7\n\n\t// rotate\n\tdup\tv0.4s, v0.s[3]\t\t\t// vpshufd\t$0xFF,\t%xmm0,\t%xmm0\n\text\tv0.16b, v0.16b, v0.16b, #1\t// vpalignr\t$1,\t%xmm0,\t%xmm0,\t%xmm0\n\n\t// fall through...\n\n\t// low round: same as high round, but no rotation and no rcon.\n_vpaes_schedule_low_round:\n\t// smear xmm7\n\text\tv1.16b, v4.16b, v7.16b, #12\t// vpslldq\t$4,\t%xmm7,\t%xmm1\n\teor\tv7.16b, v7.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm7,\t%xmm7\n\text\tv4.16b, v4.16b, v7.16b, #8\t// vpslldq\t$8,\t%xmm7,\t%xmm4\n\n\t// subbytes\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t\t# 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t\t# 1 = i\n\teor\tv7.16b, v7.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm7,\t%xmm7\n\ttbl\tv2.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t\t# 2 = a/k\n\teor\tv1.16b, v1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t\t# 3 = 1/i\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t\t# 3 = iak = 1/i + a/k\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t\t# 4 = 1/j\n\teor\tv7.16b, v7.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm7,\t%xmm7\n\ttbl\tv3.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm3\t\t# 2 = 1/iak\n\teor\tv4.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm2\t\t# 3 = 1/jak\n\teor\tv3.16b, v3.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm3,\t%xmm3\t\t# 2 = io\n\teor\tv2.16b, v2.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm2,\t%xmm2\t\t# 3 = jo\n\ttbl\tv4.16b, {v23.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm13,\t%xmm4\t\t# 4 = sbou\n\ttbl\tv1.16b, {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm12,\t%xmm1\t\t# 0 = sb1t\n\teor\tv1.16b, v1.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm1,\t%xmm1\t\t# 0 = sbox output\n\n\t// add in smeared stuff\n\teor\tv0.16b, v1.16b, v7.16b\t\t// vpxor\t%xmm7,\t%xmm1,\t%xmm0\n\teor\tv7.16b, v1.16b, v7.16b\t\t// vmovdqa\t%xmm0,\t%xmm7\n\tret\n.size\t_vpaes_schedule_round,.-_vpaes_schedule_round\n\n//\n//  .aes_schedule_transform\n//\n//  Linear-transform %xmm0 according to tables at (%r11)\n//\n//  Requires that %xmm9 = 0x0F0F... as in preheat\n//  Output in %xmm0\n//  Clobbers %xmm1, %xmm2\n//\n.type\t_vpaes_schedule_transform,%function\n.align\t4\n_vpaes_schedule_transform:", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:23", "text": "eor\tv1.16b, v1.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm1,\t%xmm1\t\t# 0 = sbox output\n\n\t// add in smeared stuff\n\teor\tv0.16b, v1.16b, v7.16b\t\t// vpxor\t%xmm7,\t%xmm1,\t%xmm0\n\teor\tv7.16b, v1.16b, v7.16b\t\t// vmovdqa\t%xmm0,\t%xmm7\n\tret\n.size\t_vpaes_schedule_round,.-_vpaes_schedule_round\n\n//\n//  .aes_schedule_transform\n//\n//  Linear-transform %xmm0 according to tables at (%r11)\n//\n//  Requires that %xmm9 = 0x0F0F... as in preheat\n//  Output in %xmm0\n//  Clobbers %xmm1, %xmm2\n//\n.type\t_vpaes_schedule_transform,%function\n.align\t4\n_vpaes_schedule_transform:\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\t\t\t\t\t\t// vmovdqa\t(%r11),\t%xmm2 \t# lo\n\ttbl\tv2.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t16(%r11),\t%xmm1 # hi\n\ttbl\tv0.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tret\n.size\t_vpaes_schedule_transform,.-_vpaes_schedule_transform\n\n//\n//  .aes_schedule_mangle\n//\n//  Mangle xmm0 from (basis-transformed) standard version\n//  to our version.\n//\n//  On encrypt,\n//    xor with 0x63\n//    multiply by circulant 0,1,1,1\n//    apply shiftrows transform\n//\n//  On decrypt,\n//    xor with 0x63\n//    multiply by \"inverse mixcolumns\" circulant E,B,D,9\n//    deskew\n//    apply shiftrows transform\n//\n//\n//  Writes out to (%rdx), and increments or decrements it\n//  Keeps track of round number mod 4 in %r8\n//  Preserves xmm0\n//  Clobbers xmm1-xmm5\n//\n.type\t_vpaes_schedule_mangle,%function\n.align\t4\n_vpaes_schedule_mangle:\n\tmov\tv4.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm4\t# save xmm0 for later\n\t\t\t\t\t\t// vmovdqa\t.Lk_mc_forward(%rip),%xmm5\n\tcbnz\tw3, .Lschedule_mangle_dec", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:24", "text": "//\n//  On decrypt,\n//    xor with 0x63\n//    multiply by \"inverse mixcolumns\" circulant E,B,D,9\n//    deskew\n//    apply shiftrows transform\n//\n//\n//  Writes out to (%rdx), and increments or decrements it\n//  Keeps track of round number mod 4 in %r8\n//  Preserves xmm0\n//  Clobbers xmm1-xmm5\n//\n.type\t_vpaes_schedule_mangle,%function\n.align\t4\n_vpaes_schedule_mangle:\n\tmov\tv4.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm4\t# save xmm0 for later\n\t\t\t\t\t\t// vmovdqa\t.Lk_mc_forward(%rip),%xmm5\n\tcbnz\tw3, .Lschedule_mangle_dec\n\n\t// encrypting\n\teor\tv4.16b, v0.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm0,\t%xmm4\n\tadd\tx2, x2, #16\t\t\t// add\t$16,\t%rdx\n\ttbl\tv4.16b, {v4.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm4,\t%xmm4\n\ttbl\tv1.16b, {v4.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm4,\t%xmm1\n\ttbl\tv3.16b, {v1.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm1,\t%xmm3\n\teor\tv4.16b, v4.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm4,\t%xmm4\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\teor\tv3.16b, v3.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm3,\t%xmm3\n\n\tb\t.Lschedule_mangle_both\n.align\t4\n.Lschedule_mangle_dec:\n\t// inverse mix columns\n\t\t\t\t\t\t// lea\t.Lk_dksd(%rip),%r11\n\tushr\tv1.16b, v4.16b, #4\t\t// vpsrlb\t$4,\t%xmm4,\t%xmm1\t# 1 = hi\n\tand\tv4.16b, v4.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm4,\t%xmm4\t# 4 = lo\n\n\t\t\t\t\t\t// vmovdqa\t0x00(%r11),\t%xmm2\n\ttbl\tv2.16b, {v24.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x10(%r11),\t%xmm3\n\ttbl\tv3.16b,\t{v25.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x20(%r11),\t%xmm2\n\ttbl\tv2.16b, {v26.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x30(%r11),\t%xmm3\n\ttbl\tv3.16b, {v27.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x40(%r11),\t%xmm2\n\ttbl\tv2.16b, {v28.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x50(%r11),\t%xmm3\n\ttbl\tv3.16b, {v29.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:25", "text": "// vmovdqa\t0x10(%r11),\t%xmm3\n\ttbl\tv3.16b,\t{v25.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x20(%r11),\t%xmm2\n\ttbl\tv2.16b, {v26.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x30(%r11),\t%xmm3\n\ttbl\tv3.16b, {v27.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x40(%r11),\t%xmm2\n\ttbl\tv2.16b, {v28.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x50(%r11),\t%xmm3\n\ttbl\tv3.16b, {v29.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x60(%r11),\t%xmm2\n\ttbl\tv2.16b, {v30.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\t\t\t\t\t\t// vmovdqa\t0x70(%r11),\t%xmm4\n\ttbl\tv4.16b, {v31.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm4,\t%xmm4\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\teor\tv3.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm4,\t%xmm3\n\n\tsub\tx2, x2, #16\t\t\t// add\t$-16,\t%rdx\n\n.Lschedule_mangle_both:\n\ttbl\tv3.16b, {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\tadd\tx8, x8, #64-16\t\t\t// add\t$-16,\t%r8\n\tand\tx8, x8, #~(1<<6)\t\t// and\t$0x30,\t%r8\n\tst1\t{v3.2d}, [x2]\t\t\t// vmovdqu\t%xmm3,\t(%rdx)\n\tret\n.size\t_vpaes_schedule_mangle,.-_vpaes_schedule_mangle\n\n.globl\tvpaes_set_encrypt_key\n.type\tvpaes_set_encrypt_key,%function\n.align\t4\nvpaes_set_encrypt_key:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\n\tlsr\tw9, w1, #5\t\t// shr\t$5,%eax\n\tadd\tw9, w9, #5\t\t// $5,%eax\n\tstr\tw9, [x2,#240]\t\t// mov\t%eax,240(%rdx)\t# AES_KEY->rounds = nbits/32+5;\n\n\tmov\tw3, #0\t\t// mov\t$0,%ecx\n\tmov\tx8, #0x30\t\t// mov\t$0x30,%r8d\n\tbl\t_vpaes_schedule_core\n\teor\tx0, x0, x0\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:26", "text": ".type\tvpaes_set_encrypt_key,%function\n.align\t4\nvpaes_set_encrypt_key:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\n\tlsr\tw9, w1, #5\t\t// shr\t$5,%eax\n\tadd\tw9, w9, #5\t\t// $5,%eax\n\tstr\tw9, [x2,#240]\t\t// mov\t%eax,240(%rdx)\t# AES_KEY->rounds = nbits/32+5;\n\n\tmov\tw3, #0\t\t// mov\t$0,%ecx\n\tmov\tx8, #0x30\t\t// mov\t$0x30,%r8d\n\tbl\t_vpaes_schedule_core\n\teor\tx0, x0, x0\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_set_encrypt_key,.-vpaes_set_encrypt_key\n\n.globl\tvpaes_set_decrypt_key\n.type\tvpaes_set_decrypt_key,%function\n.align\t4\nvpaes_set_decrypt_key:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\n\tlsr\tw9, w1, #5\t\t// shr\t$5,%eax\n\tadd\tw9, w9, #5\t\t// $5,%eax\n\tstr\tw9, [x2,#240]\t\t// mov\t%eax,240(%rdx)\t# AES_KEY->rounds = nbits/32+5;\n\tlsl\tw9, w9, #4\t\t// shl\t$4,%eax\n\tadd\tx2, x2, #16\t\t// lea\t16(%rdx,%rax),%rdx\n\tadd\tx2, x2, x9\n\n\tmov\tw3, #1\t\t// mov\t$1,%ecx\n\tlsr\tw8, w1, #1\t\t// shr\t$1,%r8d\n\tand\tx8, x8, #32\t\t// and\t$32,%r8d\n\teor\tx8, x8, #32\t\t// xor\t$32,%r8d\t# nbits==192?0:32\n\tbl\t_vpaes_schedule_core\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_set_decrypt_key,.-vpaes_set_decrypt_key\n.globl\tvpaes_cbc_encrypt\n.type\tvpaes_cbc_encrypt,%function\n.align\t4\nvpaes_cbc_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcbz\tx2, .Lcbc_abort\n\tcmp\tw5, #0\t\t\t// check direction\n\tb.eq\tvpaes_cbc_decrypt\n\n\tstp\tx29,x30,[sp,#-16]!", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:27", "text": "lsr\tw8, w1, #1\t\t// shr\t$1,%r8d\n\tand\tx8, x8, #32\t\t// and\t$32,%r8d\n\teor\tx8, x8, #32\t\t// xor\t$32,%r8d\t# nbits==192?0:32\n\tbl\t_vpaes_schedule_core\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_set_decrypt_key,.-vpaes_set_decrypt_key\n.globl\tvpaes_cbc_encrypt\n.type\tvpaes_cbc_encrypt,%function\n.align\t4\nvpaes_cbc_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcbz\tx2, .Lcbc_abort\n\tcmp\tw5, #0\t\t\t// check direction\n\tb.eq\tvpaes_cbc_decrypt\n\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tmov\tx17, x2\t\t// reassign\n\tmov\tx2,  x3\t\t// reassign\n\n\tld1\t{v0.16b}, [x4]\t// load ivec\n\tbl\t_vpaes_encrypt_preheat\n\tb\t.Lcbc_enc_loop\n\n.align\t4\n.Lcbc_enc_loop:\n\tld1\t{v7.16b}, [x0],#16\t// load input\n\teor\tv7.16b, v7.16b, v0.16b\t// xor with ivec\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1],#16\t// save output\n\tsubs\tx17, x17, #16\n\tb.hi\t.Lcbc_enc_loop\n\n\tst1\t{v0.16b}, [x4]\t// write ivec\n\n\tldp\tx29,x30,[sp],#16\n.Lcbc_abort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_encrypt,.-vpaes_cbc_encrypt\n\n.type\tvpaes_cbc_decrypt,%function\n.align\t4\nvpaes_cbc_decrypt:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because vpaes_cbc_decrypt is jumped to\n\t// only from vpaes_cbc_encrypt which has already signed the return address.\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\t\t// reassign\n\tmov\tx2,  x3\t\t// reassign", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:28", "text": "ldp\tx29,x30,[sp],#16\n.Lcbc_abort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_encrypt,.-vpaes_cbc_encrypt\n\n.type\tvpaes_cbc_decrypt,%function\n.align\t4\nvpaes_cbc_decrypt:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because vpaes_cbc_decrypt is jumped to\n\t// only from vpaes_cbc_encrypt which has already signed the return address.\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\t\t// reassign\n\tmov\tx2,  x3\t\t// reassign\n\tld1\t{v6.16b}, [x4]\t// load ivec\n\tbl\t_vpaes_decrypt_preheat\n\ttst\tx17, #16\n\tb.eq\t.Lcbc_dec_loop2x\n\n\tld1\t{v7.16b}, [x0], #16\t// load input\n\tbl\t_vpaes_decrypt_core\n\teor\tv0.16b, v0.16b, v6.16b\t// xor with ivec\n\torr\tv6.16b, v7.16b, v7.16b\t// next ivec value\n\tst1\t{v0.16b}, [x1], #16\n\tsubs\tx17, x17, #16\n\tb.ls\t.Lcbc_dec_done\n\n.align\t4\n.Lcbc_dec_loop2x:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_decrypt_2x\n\teor\tv0.16b, v0.16b, v6.16b\t// xor with ivec\n\teor\tv1.16b, v1.16b, v14.16b\n\torr\tv6.16b, v15.16b, v15.16b\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lcbc_dec_loop2x\n\n.Lcbc_dec_done:\n\tst1\t{v6.16b}, [x4]\n\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_decrypt,.-vpaes_cbc_decrypt\n.globl\tvpaes_ecb_encrypt\n.type\tvpaes_ecb_encrypt,%function\n.align\t4\nvpaes_ecb_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:29", "text": "st1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lcbc_dec_loop2x\n\n.Lcbc_dec_done:\n\tst1\t{v6.16b}, [x4]\n\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_decrypt,.-vpaes_cbc_decrypt\n.globl\tvpaes_ecb_encrypt\n.type\tvpaes_ecb_encrypt,%function\n.align\t4\nvpaes_ecb_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\n\tmov\tx2,  x3\n\tbl\t_vpaes_encrypt_preheat\n\ttst\tx17, #16\n\tb.eq\t.Lecb_enc_loop\n\n\tld1\t{v7.16b}, [x0],#16\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1],#16\n\tsubs\tx17, x17, #16\n\tb.ls\t.Lecb_enc_done\n\n.align\t4\n.Lecb_enc_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_encrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_enc_loop\n\n.Lecb_enc_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_encrypt,.-vpaes_ecb_encrypt\n\n.globl\tvpaes_ecb_decrypt\n.type\tvpaes_ecb_decrypt,%function\n.align\t4", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:30", "text": ".Lecb_enc_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_encrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_enc_loop\n\n.Lecb_enc_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_encrypt,.-vpaes_ecb_encrypt\n\n.globl\tvpaes_ecb_decrypt\n.type\tvpaes_ecb_decrypt,%function\n.align\t4\nvpaes_ecb_decrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\n\tmov\tx2,  x3\n\tbl\t_vpaes_decrypt_preheat\n\ttst\tx17, #16\n\tb.eq\t.Lecb_dec_loop\n\n\tld1\t{v7.16b}, [x0],#16\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1],#16\n\tsubs\tx17, x17, #16\n\tb.ls\t.Lecb_dec_done\n\n.align\t4\n.Lecb_dec_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_decrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_dec_loop\n\n.Lecb_dec_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_decrypt,.-vpaes_ecb_decrypt", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1161, "line_end": 1218}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S:31", "text": ".align\t4\n.Lecb_dec_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_decrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_dec_loop\n\n.Lecb_dec_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_decrypt,.-vpaes_ecb_decrypt", "arch": "arm64", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/aarch64/vpaes-armv8.S", "line_start": 1201, "line_end": 1218}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:1", "text": "#ifdef __linux__\n#include <asm/regdef.h>\n#else\n#include <asm.h>\n#include <regdef.h>\n#endif\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n\n.globl\tbn_mul_mont\n.align\t5\n.ent\tbn_mul_mont\nbn_mul_mont:\n\tlda\tsp,-48(sp)\n\tstq\tra,0(sp)\n\tstq\ts3,8(sp)\n\tstq\ts4,16(sp)\n\tstq\ts5,24(sp)\n\tstq\tfp,32(sp)\n\tmov\tsp,fp\n\t.mask\t0x0400f000,-48\n\t.frame\tfp,48,ra\n\t.prologue 0\n\n\t.align\t4\n\t.set\treorder\n\tsextl\ta5,a5\n\tmov\t0,v0\n\tcmplt\ta5,4,AT\n\tbne\tAT,.Lexit\n\n\tldq\tt1,0(a1)\t# ap[0]\n\ts8addq\ta5,16,AT\n\tldq\tt4,8(a1)\n\tsubq\tsp,AT,sp\n\tldq\tt5,0(a2)\t# bp[0]\n\tlda\tAT,-4096(zero)\t# mov\t-4096,AT\n\tldq\ta4,0(a4)\n\tand\tsp,AT,sp\n\n\tmulq\tt1,t5,t0\n\tldq\tt3,0(a3)\t# np[0]\n\tumulh\tt1,t5,t1\n\tldq\tt6,8(a3)\n\n\tmulq\tt0,a4,s5\n\n\tmulq\tt3,s5,t2\n\tumulh\tt3,s5,t3\n\n\taddq\tt2,t0,t2\n\tcmpult\tt2,t0,AT\n\taddq\tt3,AT,t3\n\n\tmulq\tt4,t5,t8\n\tmov\t2,s4\n\tumulh\tt4,t5,t9", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:2", "text": "ldq\ta4,0(a4)\n\tand\tsp,AT,sp\n\n\tmulq\tt1,t5,t0\n\tldq\tt3,0(a3)\t# np[0]\n\tumulh\tt1,t5,t1\n\tldq\tt6,8(a3)\n\n\tmulq\tt0,a4,s5\n\n\tmulq\tt3,s5,t2\n\tumulh\tt3,s5,t3\n\n\taddq\tt2,t0,t2\n\tcmpult\tt2,t0,AT\n\taddq\tt3,AT,t3\n\n\tmulq\tt4,t5,t8\n\tmov\t2,s4\n\tumulh\tt4,t5,t9\n\tmov\tsp,t7\n\n\tmulq\tt6,s5,t10\n\ts8addq\ts4,a1,t4\n\tumulh\tt6,s5,t11\n\ts8addq\ts4,a3,t6\n.align\t4\n.L1st:\n\t.set\tnoreorder\n\tldq\tt4,0(t4)\n\taddl\ts4,1,s4\n\tldq\tt6,0(t6)\n\tlda\tt7,8(t7)\n\n\taddq\tt8,t1,t0\n\tmulq\tt4,t5,t8\n\tcmpult\tt0,t1,AT\n\taddq\tt10,t3,t2\n\n\tmulq\tt6,s5,t10\n\taddq\tt9,AT,t1\n\tcmpult\tt2,t3,v0\n\tcmplt\ts4,a5,t12\n\n\tumulh\tt4,t5,t9\n\taddq\tt11,v0,t3\n\taddq\tt2,t0,t2\n\ts8addq\ts4,a1,t4\n\n\tumulh\tt6,s5,t11\n\tcmpult\tt2,t0,v0\n\taddq\tt3,v0,t3\n\ts8addq\ts4,a3,t6\n\n\tstq\tt2,-8(t7)\n\tnop\n\tunop\n\tbne\tt12,.L1st\n\t.set\treorder", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:3", "text": "addq\tt9,AT,t1\n\tcmpult\tt2,t3,v0\n\tcmplt\ts4,a5,t12\n\n\tumulh\tt4,t5,t9\n\taddq\tt11,v0,t3\n\taddq\tt2,t0,t2\n\ts8addq\ts4,a1,t4\n\n\tumulh\tt6,s5,t11\n\tcmpult\tt2,t0,v0\n\taddq\tt3,v0,t3\n\ts8addq\ts4,a3,t6\n\n\tstq\tt2,-8(t7)\n\tnop\n\tunop\n\tbne\tt12,.L1st\n\t.set\treorder\n\n\taddq\tt8,t1,t0\n\taddq\tt10,t3,t2\n\tcmpult\tt0,t1,AT\n\tcmpult\tt2,t3,v0\n\taddq\tt9,AT,t1\n\taddq\tt11,v0,t3\n\n\taddq\tt2,t0,t2\n\tcmpult\tt2,t0,v0\n\taddq\tt3,v0,t3\n\n\tstq\tt2,0(t7)\n\n\taddq\tt3,t1,t3\n\tcmpult\tt3,t1,AT\n\tstq\tt3,8(t7)\n\tstq\tAT,16(t7)\n\n\tmov\t1,s3\n.align\t4\n.Louter:\n\ts8addq\ts3,a2,t5\n\tldq\tt1,0(a1)\n\tldq\tt4,8(a1)\n\tldq\tt5,0(t5)\n\tldq\tt3,0(a3)\n\tldq\tt6,8(a3)\n\tldq\tt12,0(sp)\n\n\tmulq\tt1,t5,t0\n\tumulh\tt1,t5,t1\n\n\taddq\tt0,t12,t0\n\tcmpult\tt0,t12,AT\n\taddq\tt1,AT,t1\n\n\tmulq\tt0,a4,s5\n\n\tmulq\tt3,s5,t2\n\tumulh\tt3,s5,t3", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:4", "text": ".Louter:\n\ts8addq\ts3,a2,t5\n\tldq\tt1,0(a1)\n\tldq\tt4,8(a1)\n\tldq\tt5,0(t5)\n\tldq\tt3,0(a3)\n\tldq\tt6,8(a3)\n\tldq\tt12,0(sp)\n\n\tmulq\tt1,t5,t0\n\tumulh\tt1,t5,t1\n\n\taddq\tt0,t12,t0\n\tcmpult\tt0,t12,AT\n\taddq\tt1,AT,t1\n\n\tmulq\tt0,a4,s5\n\n\tmulq\tt3,s5,t2\n\tumulh\tt3,s5,t3\n\n\taddq\tt2,t0,t2\n\tcmpult\tt2,t0,AT\n\tmov\t2,s4\n\taddq\tt3,AT,t3\n\n\tmulq\tt4,t5,t8\n\tmov\tsp,t7\n\tumulh\tt4,t5,t9\n\n\tmulq\tt6,s5,t10\n\ts8addq\ts4,a1,t4\n\tumulh\tt6,s5,t11\n.align\t4\n.Linner:\n\t.set\tnoreorder\n\tldq\tt12,8(t7)\t#L0\n\tnop\t\t\t#U1\n\tldq\tt4,0(t4)\t#L1\n\ts8addq\ts4,a3,t6\t#U0\n\n\tldq\tt6,0(t6)\t#L0\n\tnop\t\t\t#U1\n\taddq\tt8,t1,t0\t#L1\n\tlda\tt7,8(t7)\n\n\tmulq\tt4,t5,t8\t#U1\n\tcmpult\tt0,t1,AT\t#L0\n\taddq\tt10,t3,t2\t#L1\n\taddl\ts4,1,s4\n\n\tmulq\tt6,s5,t10\t#U1\n\taddq\tt9,AT,t1\t#L0\n\taddq\tt0,t12,t0\t#L1\n\tcmpult\tt2,t3,v0\t#U0\n\n\tumulh\tt4,t5,t9\t#U1\n\tcmpult\tt0,t12,AT\t#L0\n\taddq\tt2,t0,t2\t#L1\n\taddq\tt11,v0,t3\t#U0", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:5", "text": "ldq\tt6,0(t6)\t#L0\n\tnop\t\t\t#U1\n\taddq\tt8,t1,t0\t#L1\n\tlda\tt7,8(t7)\n\n\tmulq\tt4,t5,t8\t#U1\n\tcmpult\tt0,t1,AT\t#L0\n\taddq\tt10,t3,t2\t#L1\n\taddl\ts4,1,s4\n\n\tmulq\tt6,s5,t10\t#U1\n\taddq\tt9,AT,t1\t#L0\n\taddq\tt0,t12,t0\t#L1\n\tcmpult\tt2,t3,v0\t#U0\n\n\tumulh\tt4,t5,t9\t#U1\n\tcmpult\tt0,t12,AT\t#L0\n\taddq\tt2,t0,t2\t#L1\n\taddq\tt11,v0,t3\t#U0\n\n\tumulh\tt6,s5,t11\t#U1\n\ts8addq\ts4,a1,t4\t#L0\n\tcmpult\tt2,t0,v0\t#L1\n\tcmplt\ts4,a5,t12\t#U0\t# borrow t12\n\n\taddq\tt1,AT,t1\t#L0\n\taddq\tt3,v0,t3\t#U1\n\tstq\tt2,-8(t7)\t#L1\n\tbne\tt12,.Linner\t#U0\n\t.set\treorder\n\n\tldq\tt12,8(t7)\n\taddq\tt8,t1,t0\n\taddq\tt10,t3,t2\n\tcmpult\tt0,t1,AT\n\tcmpult\tt2,t3,v0\n\taddq\tt9,AT,t1\n\taddq\tt11,v0,t3\n\n\taddq\tt0,t12,t0\n\tcmpult\tt0,t12,AT\n\taddq\tt1,AT,t1\n\n\tldq\tt12,16(t7)\n\taddq\tt2,t0,s4\n\tcmpult\ts4,t0,v0\n\taddq\tt3,v0,t3\n\n\taddq\tt3,t1,t2\n\tstq\ts4,0(t7)\n\tcmpult\tt2,t1,t3\n\taddq\tt2,t12,t2\n\tcmpult\tt2,t12,AT\n\taddl\ts3,1,s3\n\taddq\tt3,AT,t3\n\tstq\tt2,8(t7)\n\tcmplt\ts3,a5,t12\t# borrow t12\n\tstq\tt3,16(t7)\n\tbne\tt12,.Louter", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:6", "text": "addq\tt0,t12,t0\n\tcmpult\tt0,t12,AT\n\taddq\tt1,AT,t1\n\n\tldq\tt12,16(t7)\n\taddq\tt2,t0,s4\n\tcmpult\ts4,t0,v0\n\taddq\tt3,v0,t3\n\n\taddq\tt3,t1,t2\n\tstq\ts4,0(t7)\n\tcmpult\tt2,t1,t3\n\taddq\tt2,t12,t2\n\tcmpult\tt2,t12,AT\n\taddl\ts3,1,s3\n\taddq\tt3,AT,t3\n\tstq\tt2,8(t7)\n\tcmplt\ts3,a5,t12\t# borrow t12\n\tstq\tt3,16(t7)\n\tbne\tt12,.Louter\n\n\ts8addq\ta5,sp,t12\t# &tp[num]\n\tmov\ta0,a2\t\t# put rp aside\n\tmov\tsp,t7\n\tmov\tsp,a1\n\tmov\t0,t1\t\t# clear borrow bit\n\n.align\t4\n.Lsub:\tldq\tt0,0(t7)\n\tldq\tt2,0(a3)\n\tlda\tt7,8(t7)\n\tlda\ta3,8(a3)\n\tsubq\tt0,t2,t2\t# tp[i]-np[i]\n\tcmpult\tt0,t2,AT\n\tsubq\tt2,t1,t0\n\tcmpult\tt2,t0,t1\n\tor\tt1,AT,t1\n\tstq\tt0,0(a0)\n\tcmpult\tt7,t12,v0\n\tlda\ta0,8(a0)\n\tbne\tv0,.Lsub\n\n\tsubq\tt3,t1,t1\t# handle upmost overflow bit\n\tmov\tsp,t7\n\tmov\ta2,a0\t\t# restore rp\n\n.align\t4\n.Lcopy:\tldq\tt4,0(t7)\t# conditional copy\n\tldq\tt6,0(a0)\n\tlda\tt7,8(t7)\n\tlda\ta0,8(a0)\n\tcmoveq\tt1,t6,t4\n\tstq\tzero,-8(t7)\t# zap tp\n\tcmpult\tt7,t12,AT\n\tstq\tt4,-8(a0)\n\tbne\tAT,.Lcopy\n\tmov\t1,v0\n\n.Lexit:\n\t.set\tnoreorder", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S:7", "text": "bne\tv0,.Lsub\n\n\tsubq\tt3,t1,t1\t# handle upmost overflow bit\n\tmov\tsp,t7\n\tmov\ta2,a0\t\t# restore rp\n\n.align\t4\n.Lcopy:\tldq\tt4,0(t7)\t# conditional copy\n\tldq\tt6,0(a0)\n\tlda\tt7,8(t7)\n\tlda\ta0,8(a0)\n\tcmoveq\tt1,t6,t4\n\tstq\tzero,-8(t7)\t# zap tp\n\tcmpult\tt7,t12,AT\n\tstq\tt4,-8(a0)\n\tbne\tAT,.Lcopy\n\tmov\t1,v0\n\n.Lexit:\n\t.set\tnoreorder\n\tmov\tfp,sp\n\t/*ldq\tra,0(sp)*/\n\tldq\ts3,8(sp)\n\tldq\ts4,16(sp)\n\tldq\ts5,24(sp)\n\tldq\tfp,32(sp)\n\tlda\tsp,48(sp)\n\tret\t(ra)\n.end\tbn_mul_mont\n.ascii\t\"Montgomery Multiplication for Alpha, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t2", "arch": "arm64", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alpha-mont.S", "line_start": 241, "line_end": 271}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S:1", "text": ".text\n\n.set\tnoat\n\n.globl\tOPENSSL_cpuid_setup\n.ent\tOPENSSL_cpuid_setup\nOPENSSL_cpuid_setup:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\tret\t($26)\n.end\tOPENSSL_cpuid_setup\n\n.globl\tOPENSSL_wipe_cpu\n.ent\tOPENSSL_wipe_cpu\nOPENSSL_wipe_cpu:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\tclr\t$1\n\tclr\t$2\n\tclr\t$3\n\tclr\t$4\n\tclr\t$5\n\tclr\t$6\n\tclr\t$7\n\tclr\t$8\n\tclr\t$16\n\tclr\t$17\n\tclr\t$18\n\tclr\t$19\n\tclr\t$20\n\tclr\t$21\n\tclr\t$22\n\tclr\t$23\n\tclr\t$24\n\tclr\t$25\n\tclr\t$27\n\tclr\t$at\n\tclr\t$29\n\tfclr\t$f0\n\tfclr\t$f1\n\tfclr\t$f10\n\tfclr\t$f11\n\tfclr\t$f12\n\tfclr\t$f13\n\tfclr\t$f14\n\tfclr\t$f15\n\tfclr\t$f16\n\tfclr\t$f17\n\tfclr\t$f18\n\tfclr\t$f19\n\tfclr\t$f20\n\tfclr\t$f21\n\tfclr\t$f22\n\tfclr\t$f23\n\tfclr\t$f24\n\tfclr\t$f25\n\tfclr\t$f26\n\tfclr\t$f27\n\tfclr\t$f28\n\tfclr\t$f29", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S:2", "text": "fclr\t$f10\n\tfclr\t$f11\n\tfclr\t$f12\n\tfclr\t$f13\n\tfclr\t$f14\n\tfclr\t$f15\n\tfclr\t$f16\n\tfclr\t$f17\n\tfclr\t$f18\n\tfclr\t$f19\n\tfclr\t$f20\n\tfclr\t$f21\n\tfclr\t$f22\n\tfclr\t$f23\n\tfclr\t$f24\n\tfclr\t$f25\n\tfclr\t$f26\n\tfclr\t$f27\n\tfclr\t$f28\n\tfclr\t$f29\n\tfclr\t$f30\n\tmov\t$sp,$0\n\tret\t($26)\n.end\tOPENSSL_wipe_cpu\n\n.globl\tOPENSSL_atomic_add\n.ent\tOPENSSL_atomic_add\nOPENSSL_atomic_add:\n\t.frame\t$30,0,$26\n\t.prologue 0\n1:\tldl_l\t$0,0($16)\n\taddl\t$0,$17,$1\n\tstl_c\t$1,0($16)\n\tbeq\t$1,1b\n\taddl\t$0,$17,$0\n\tret\t($26)\n.end\tOPENSSL_atomic_add\n\n.globl\tOPENSSL_rdtsc\n.ent\tOPENSSL_rdtsc\nOPENSSL_rdtsc:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\trpcc\t$0\n\tret\t($26)\n.end\tOPENSSL_rdtsc\n\n.globl\tOPENSSL_cleanse\n.ent\tOPENSSL_cleanse\nOPENSSL_cleanse:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\tbeq\t$17,.Ldone\n\tand\t$16,7,$0\n\tbic\t$17,7,$at\n\tbeq\t$at,.Little\n\tbeq\t$0,.Laligned\n\n.Little:\n\tsubq\t$0,8,$0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S:3", "text": "OPENSSL_rdtsc:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\trpcc\t$0\n\tret\t($26)\n.end\tOPENSSL_rdtsc\n\n.globl\tOPENSSL_cleanse\n.ent\tOPENSSL_cleanse\nOPENSSL_cleanse:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\tbeq\t$17,.Ldone\n\tand\t$16,7,$0\n\tbic\t$17,7,$at\n\tbeq\t$at,.Little\n\tbeq\t$0,.Laligned\n\n.Little:\n\tsubq\t$0,8,$0\n\tldq_u\t$1,0($16)\n\tmov\t$16,$2\n.Lalign:\n\tmskbl\t$1,$16,$1\n\tlda\t$16,1($16)\n\tsubq\t$17,1,$17\n\taddq\t$0,1,$0\n\tbeq\t$17,.Lout\n\tbne\t$0,.Lalign\n.Lout:\tstq_u\t$1,0($2)\n\tbeq\t$17,.Ldone\n\tbic\t$17,7,$at\n\tbeq\t$at,.Little\n\n.Laligned:\n\tstq\t$31,0($16)\n\tsubq\t$17,8,$17\n\tlda\t$16,8($16)\n\tbic\t$17,7,$at\n\tbne\t$at,.Laligned\n\tbne\t$17,.Little\n.Ldone: ret\t($26)\n.end\tOPENSSL_cleanse\n\n.globl\tCRYPTO_memcmp\n.ent\tCRYPTO_memcmp\nCRYPTO_memcmp:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\txor\t$0,$0,$0\n\tbeq\t$18,.Lno_data\n\n\txor\t$1,$1,$1\n\tnop\n.Loop_cmp:\n\tldq_u\t$2,0($16)\n\tsubq\t$18,1,$18\n\tldq_u\t$3,0($17)\n\textbl\t$2,$16,$2\n\tlda\t$16,1($16)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S:4", "text": "bne\t$17,.Little\n.Ldone: ret\t($26)\n.end\tOPENSSL_cleanse\n\n.globl\tCRYPTO_memcmp\n.ent\tCRYPTO_memcmp\nCRYPTO_memcmp:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\txor\t$0,$0,$0\n\tbeq\t$18,.Lno_data\n\n\txor\t$1,$1,$1\n\tnop\n.Loop_cmp:\n\tldq_u\t$2,0($16)\n\tsubq\t$18,1,$18\n\tldq_u\t$3,0($17)\n\textbl\t$2,$16,$2\n\tlda\t$16,1($16)\n\textbl\t$3,$17,$3\n\tlda\t$17,1($17)\n\txor\t$3,$2,$2\n\tor\t$2,$0,$0\n\tbne\t$18,.Loop_cmp\n\n\tsubq\t$31,$0,$0\n\tsrl\t$0,63,$0\n.Lno_data:\n\tret\t($26)\n.end\tCRYPTO_memcmp\n.globl\tOPENSSL_instrument_bus\n.ent\tOPENSSL_instrument_bus\nOPENSSL_instrument_bus:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\tmov\t$17,$0\n\n\trpcc\t$20\n\tmov\t0,$21\n\n\tecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n.Loop:\trpcc\t$19\n\tsubq\t$19,$20,$21\n\tmov\t$19,$20\n\n\tecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n\tsubl\t$17,1,$17", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S:5", "text": "ecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n.Loop:\trpcc\t$19\n\tsubq\t$19,$20,$21\n\tmov\t$19,$20\n\n\tecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n\tsubl\t$17,1,$17\n\tlda\t$16,4($16)\n\tbne\t$17,.Loop\n\n\tret\t($26)\n.end\tOPENSSL_instrument_bus\n\n.globl\tOPENSSL_instrument_bus2\n.ent\tOPENSSL_instrument_bus2\nOPENSSL_instrument_bus2:\n\t.frame\t$30,0,$26\n\t.prologue 0\n\tmov\t$17,$0\n\n\trpcc\t$20\n\tmov\t0,$21\n\n\tecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n\trpcc\t$19\n\tsubq\t$19,$20,$21\n\tmov\t$19,$20\n\tmov\t$21,$22\n.Loop2:\n\tecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n\tsubl\t$18,1,$18\n\tbeq\t$18,.Ldone2\n\n\trpcc\t$19\n\tsubq\t$19,$20,$21", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S:6", "text": "stl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n\trpcc\t$19\n\tsubq\t$19,$20,$21\n\tmov\t$19,$20\n\tmov\t$21,$22\n.Loop2:\n\tecb\t($16)\n\tldl_l\t$19,0($16)\n\taddl\t$21,$19,$19\n\tmov\t$19,$21\n\tstl_c\t$19,0($16)\n\tstl\t$21,0($16)\n\n\tsubl\t$18,1,$18\n\tbeq\t$18,.Ldone2\n\n\trpcc\t$19\n\tsubq\t$19,$20,$21\n\tmov\t$19,$20\n\tsubq\t$22,$21,$19\n\tmov\t$21,$22\n\tcmovne\t$19,1,$19\n\tsubl\t$17,$19,$17\n\ts4addq\t$19,$16,$16\n\tbne\t$17,.Loop2\n\n.Ldone2:\n\tsubl\t$0,$17,$0\n\tret\t($26)\n.end\tOPENSSL_instrument_bus2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/alphacpuid.S", "line_start": 201, "line_end": 232}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/crypto.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\nASMDIR:=${.PARSEDIR}\n\nCPUID_SRCS += alpha-mont.S alphacpuid.S\nCPUID = yes\nCPPFLAGS += -DOPENSSL_BN_ASM_MONT -I${ASMDIR}\nCPPFLAGS += -DOPENSSL_CPUID_OBJ\n\n.include \"../../crypto.inc\"", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/crypto.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/crypto.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ec.inc:1", "text": "# $NetBSD: ec.inc,v 1.2 2025/07/19 11:31:42 christos Exp $\nECNI=yes\nECNONISTZ=yes\nEC_SRCS+= ecp_nistp384.c\n\n.include \"../../ec.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ec.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ec.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ec.inc:1", "text": "# $NetBSD: ec.inc,v 1.1 2025/07/17 14:25:28 christos Exp $\nECNI=yes\nECNONISTZ=yes\n\n.include \"../../ec.inc\"", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ec.inc", "license": "BSD-2-Clause", "commit": "22c49564e4ec2afc0cb74b2361834a8c0b4ae5ed", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/22c49564e4ec2afc0cb74b2361834a8c0b4ae5ed/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ec.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:1", "text": "#ifdef __linux__\n#include <asm/regdef.h>\n#else\n#include <asm.h>\n#include <regdef.h>\n#endif\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n.globl\tgcm_gmult_4bit\n.align\t4\n.ent\tgcm_gmult_4bit\ngcm_gmult_4bit:\n\t.frame\tsp,0,ra\n\t.prologue 0\n\n\tldq\tt11,8(a0)\n\tldq\tt10,0(a0)\n\n\tbsr\tt0,picmeup\n\tnop\n.align\t4\n\textbl\tt11,7,a4\n\tand\ta4,0xf0,a5\n\tsll\ta4,4,a4\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4\n\tldq\tt9,8(a4)\n\taddq\ta5,a1,a5\n\tldq\tt8,0(a4)\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tlda\tv0,6(zero)\n\textbl\tt11,6,a4\n\n\tldq\tt6,8(a5)\n\ts8addq\tt12,AT,t12\n\tldq\tt5,0(a5)\n\tsrl\tt9,4,t9\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\tand\ta4,0xf0,a5\n\n\txor\tt6,t9,t9\n\tsll\ta4,4,a4\n\txor\tt5,t8,t8\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4\n\tldq\tt4,8(a4)\n\taddq\ta5,a1,a5\n\tldq\tt3,0(a4)\n\n.Looplo1:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:2", "text": "s8addq\tt12,AT,t12\n\tldq\tt5,0(a5)\n\tsrl\tt9,4,t9\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\tand\ta4,0xf0,a5\n\n\txor\tt6,t9,t9\n\tsll\ta4,4,a4\n\txor\tt5,t8,t8\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4\n\tldq\tt4,8(a4)\n\taddq\ta5,a1,a5\n\tldq\tt3,0(a4)\n\n.Looplo1:\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsubq\tv0,1,v0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\textbl\tt11,v0,a4\n\n\tand\ta4,0xf0,a5\n\txor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Looplo1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:3", "text": "and\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Looplo1\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tlda\tv0,7(zero)\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\textbl\tt10,v0,a4\n\n\tand\ta4,0xf0,a5\n\txor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:4", "text": "sll\ta4,4,a4\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tunop\n\n\n.Loophi1:\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsubq\tv0,1,v0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\textbl\tt10,v0,a4\n\n\tand\ta4,0xf0,a5\n\txor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:5", "text": "xor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Loophi1\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\n\txor\tt4,t9,t9\n\txor\tt3,t8,t8\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\txor\tt0,t9,t9\n\txor\tt7,t8,t8\n\tsrl\tt9,24,t0\t# byte swap\n\tsrl\tt9,8,t1\n\n\tsll\tt9,8,t2\n\tsll\tt9,24,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:6", "text": "xor\tt3,t8,t8\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\txor\tt0,t9,t9\n\txor\tt7,t8,t8\n\tsrl\tt9,24,t0\t# byte swap\n\tsrl\tt9,8,t1\n\n\tsll\tt9,8,t2\n\tsll\tt9,24,t9\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\n\tzapnot\tt9,0x88,t9\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt9,t0,t9\n\tsrl\tt8,24,t0\n\tsrl\tt8,8,t1\n\n\tor\tt9,t2,t9\n\tsll\tt8,8,t2\n\tsll\tt8,24,t8\n\n\tsrl\tt9,32,t11\n\tsll\tt9,32,t9\n\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\tor\tt9,t11,t11\n\n\tzapnot\tt8,0x88,t8\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt8,t0,t8\n\tor\tt8,t2,t8\n\n\tsrl\tt8,32,t10\n\tsll\tt8,32,t8\n\n\tor\tt8,t10,t10\n\tstq\tt11,8(a0)\n\tstq\tt10,0(a0)\n\n\tret\t(ra)\n.end\tgcm_gmult_4bit\n.globl\tgcm_ghash_4bit\n.align\t4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:7", "text": "or\tt9,t11,t11\n\n\tzapnot\tt8,0x88,t8\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt8,t0,t8\n\tor\tt8,t2,t8\n\n\tsrl\tt8,32,t10\n\tsll\tt8,32,t8\n\n\tor\tt8,t10,t10\n\tstq\tt11,8(a0)\n\tstq\tt10,0(a0)\n\n\tret\t(ra)\n.end\tgcm_gmult_4bit\n.globl\tgcm_ghash_4bit\n.align\t4\n.ent\tgcm_ghash_4bit\ngcm_ghash_4bit:\n\tlda\tsp,-32(sp)\n\tstq\tra,0(sp)\n\tstq\ts0,8(sp)\n\tstq\ts1,16(sp)\n\t.mask\t0x04000600,-32\n\t.frame\tsp,32,ra\n\t.prologue 0\n\n\tldq_u\ts0,0(a2)\n\tldq_u\tt3,7(a2)\n\tldq_u\ts1,8(a2)\n\tldq_u\tt4,15(a2)\n\tldq\tt10,0(a0)\n\tldq\tt11,8(a0)\n\n\tbsr\tt0,picmeup\n\tnop\n\n.Louter:\n\textql\ts0,a2,s0\n\textqh\tt3,a2,t3\n\tor\ts0,t3,s0\n\tlda\ta2,16(a2)\n\n\textql\ts1,a2,s1\n\textqh\tt4,a2,t4\n\tor\ts1,t4,s1\n\tsubq\ta3,16,a3\n\n\txor\tt11,s1,t11\n\txor\tt10,s0,t10\n.align\t4\n\textbl\tt11,7,a4\n\tand\ta4,0xf0,a5\n\tsll\ta4,4,a4\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:8", "text": ".Louter:\n\textql\ts0,a2,s0\n\textqh\tt3,a2,t3\n\tor\ts0,t3,s0\n\tlda\ta2,16(a2)\n\n\textql\ts1,a2,s1\n\textqh\tt4,a2,t4\n\tor\ts1,t4,s1\n\tsubq\ta3,16,a3\n\n\txor\tt11,s1,t11\n\txor\tt10,s0,t10\n.align\t4\n\textbl\tt11,7,a4\n\tand\ta4,0xf0,a5\n\tsll\ta4,4,a4\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4\n\tldq\tt9,8(a4)\n\taddq\ta5,a1,a5\n\tldq\tt8,0(a4)\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tlda\tv0,6(zero)\n\textbl\tt11,6,a4\n\n\tldq\tt6,8(a5)\n\ts8addq\tt12,AT,t12\n\tldq\tt5,0(a5)\n\tsrl\tt9,4,t9\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\tand\ta4,0xf0,a5\n\n\txor\tt6,t9,t9\n\tsll\ta4,4,a4\n\txor\tt5,t8,t8\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4\n\tldq\tt4,8(a4)\n\taddq\ta5,a1,a5\n\tldq\tt3,0(a4)\n\n.Looplo2:\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsubq\tv0,1,v0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:9", "text": "sll\ta4,4,a4\n\txor\tt5,t8,t8\n\tand\ta4,0xf0,a4\n\n\taddq\ta4,a1,a4\n\tldq\tt4,8(a4)\n\taddq\ta5,a1,a5\n\tldq\tt3,0(a4)\n\n.Looplo2:\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsubq\tv0,1,v0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\textbl\tt11,v0,a4\n\n\tand\ta4,0xf0,a5\n\txor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Looplo2\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tlda\tv0,7(zero)\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:10", "text": "ldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Looplo2\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tlda\tv0,7(zero)\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\textbl\tt10,v0,a4\n\n\tand\ta4,0xf0,a5\n\txor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tunop\n\n\n.Loophi2:\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsubq\tv0,1,v0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:11", "text": "addq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tunop\n\n\n.Loophi2:\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsubq\tv0,1,v0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\textbl\tt10,v0,a4\n\n\tand\ta4,0xf0,a5\n\txor\tt3,t8,t8\n\txor\tt4,t9,t9\n\tsll\ta4,4,a4\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tand\ta4,0xf0,a4\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Loophi2\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsrl\tt9,4,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:12", "text": "s8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\taddq\ta4,a1,a4\n\taddq\ta5,a1,a5\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\tldq\tt4,8(a4)\n\txor\tt0,t9,t9\n\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\tldq\tt3,0(a4)\n\tbne\tv0,.Loophi2\n\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsrl\tt9,4,t9\n\n\tldq\tt6,8(a5)\n\txor\tt7,t8,t8\n\tldq\tt5,0(a5)\n\ts8addq\tt12,AT,t12\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt0,t9,t9\n\n\txor\tt4,t9,t9\n\txor\tt3,t8,t8\n\n\tand\tt9,0x0f,t12\n\tsll\tt8,60,t0\n\tsrl\tt9,4,t9\n\n\ts8addq\tt12,AT,t12\n\txor\tt7,t8,t8\n\n\tldq\tt7,0(t12)\n\tsrl\tt8,4,t8\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\txor\tt0,t9,t9\n\txor\tt7,t8,t8\n\tsrl\tt9,24,t0\t# byte swap\n\tsrl\tt9,8,t1\n\n\tsll\tt9,8,t2\n\tsll\tt9,24,t9\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\n\tzapnot\tt9,0x88,t9\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt9,t0,t9\n\tsrl\tt8,24,t0\n\tsrl\tt8,8,t1", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:13", "text": "srl\tt8,4,t8\n\txor\tt6,t9,t9\n\txor\tt5,t8,t8\n\txor\tt0,t9,t9\n\txor\tt7,t8,t8\n\tsrl\tt9,24,t0\t# byte swap\n\tsrl\tt9,8,t1\n\n\tsll\tt9,8,t2\n\tsll\tt9,24,t9\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\n\tzapnot\tt9,0x88,t9\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt9,t0,t9\n\tsrl\tt8,24,t0\n\tsrl\tt8,8,t1\n\n\tor\tt9,t2,t9\n\tsll\tt8,8,t2\n\tsll\tt8,24,t8\n\n\tsrl\tt9,32,t11\n\tsll\tt9,32,t9\n\tbeq\ta3,.Ldone\n\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\tor\tt9,t11,t11\n\tldq_u\ts0,0(a2)\n\n\tzapnot\tt8,0x88,t8\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\tldq_u\tt3,7(a2)\n\n\tor\tt8,t0,t8\n\tor\tt8,t2,t8\n\tldq_u\ts1,8(a2)\n\tldq_u\tt4,15(a2)\n\n\tsrl\tt8,32,t10\n\tsll\tt8,32,t8\n\n\tor\tt8,t10,t10\n\tbr\tzero,.Louter\n\n.Ldone:\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\tor\tt9,t11,t11\n\n\tzapnot\tt8,0x88,t8\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt8,t0,t8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:14", "text": "or\tt8,t2,t8\n\tldq_u\ts1,8(a2)\n\tldq_u\tt4,15(a2)\n\n\tsrl\tt8,32,t10\n\tsll\tt8,32,t8\n\n\tor\tt8,t10,t10\n\tbr\tzero,.Louter\n\n.Ldone:\n\tzapnot\tt0,0x11,t0\n\tzapnot\tt1,0x22,t1\n\tor\tt9,t11,t11\n\n\tzapnot\tt8,0x88,t8\n\tor\tt0,t1,t0\n\tzapnot\tt2,0x44,t2\n\n\tor\tt8,t0,t8\n\tor\tt8,t2,t8\n\n\tsrl\tt8,32,t10\n\tsll\tt8,32,t8\n\n\tor\tt8,t10,t10\n\n\tstq\tt11,8(a0)\n\tstq\tt10,0(a0)\n\n\t.set\tnoreorder\n\t/*ldq\tra,0(sp)*/\n\tldq\ts0,8(sp)\n\tldq\ts1,16(sp)\n\tlda\tsp,32(sp)\n\tret\t(ra)\n.end\tgcm_ghash_4bit\n\n.align\t4\n.ent\tpicmeup\npicmeup:\n\t.frame\tsp,0,t0\n\t.prologue 0\n\tbr\tAT,.Lpic\n.Lpic:\tlda\tAT,12(AT)\n\tret\t(t0)\n.end\tpicmeup\n\tnop\nrem_4bit:\n\t.long\t0,0x0000<<16, 0,0x1C20<<16, 0,0x3840<<16, 0,0x2460<<16\n\t.long\t0,0x7080<<16, 0,0x6CA0<<16, 0,0x48C0<<16, 0,0x54E0<<16\n\t.long\t0,0xE100<<16, 0,0xFD20<<16, 0,0xD940<<16, 0,0xC560<<16\n\t.long\t0,0x9180<<16, 0,0x8DA0<<16, 0,0xA9C0<<16, 0,0xB5E0<<16\n.ascii\t\"GHASH for Alpha, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 521, "line_end": 575}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S:15", "text": "picmeup:\n\t.frame\tsp,0,t0\n\t.prologue 0\n\tbr\tAT,.Lpic\n.Lpic:\tlda\tAT,12(AT)\n\tret\t(t0)\n.end\tpicmeup\n\tnop\nrem_4bit:\n\t.long\t0,0x0000<<16, 0,0x1C20<<16, 0,0x3840<<16, 0,0x2460<<16\n\t.long\t0,0x7080<<16, 0,0x6CA0<<16, 0,0x48C0<<16, 0,0x54E0<<16\n\t.long\t0,0xE100<<16, 0,0xFD20<<16, 0,0xD940<<16, 0,0xC560<<16\n\t.long\t0,0x9180<<16, 0,0x8DA0<<16, 0,0xA9C0<<16, 0,0xB5E0<<16\n.ascii\t\"GHASH for Alpha, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/ghash-alpha.S", "line_start": 561, "line_end": 575}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/modes.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\nMODES_SRCS += ghash-alpha.S\nMODESCPPFLAGS = -DGHASH_ASM\n\n.include \"../../modes.inc\"", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/modes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/modes.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\nSHA_SRCS = sha1-alpha.S\nSHACPPFLAGS = -DSHA1_ASM\n\n.include \"../../sha.inc\"", "arch": "riscv", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:1", "text": "#ifdef __linux__\n#include <asm/regdef.h>\n#else\n#include <asm.h>\n#include <regdef.h>\n#endif\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n.globl\tsha1_block_data_order\n.align\t5\n.ent\tsha1_block_data_order\nsha1_block_data_order:\n\tlda\tsp,-64(sp)\n\tstq\tra,0(sp)\n\tstq\ts0,8(sp)\n\tstq\ts1,16(sp)\n\tstq\ts2,24(sp)\n\tstq\ts3,32(sp)\n\tstq\ts4,40(sp)\n\tstq\ts5,48(sp)\n\tstq\tfp,56(sp)\n\t.mask\t0x0400fe00,-64\n\t.frame\tsp,64,ra\n\t.prologue 0\n\n\tldl\ta3,0(a0)\n\tldl\ta4,4(a0)\n\tsll\ta2,6,a2\n\tldl\ta5,8(a0)\n\tldl\tt8,12(a0)\n\tldl\tt9,16(a0)\n\taddq\ta1,a2,a2\n\n.Lloop:\n\t.set\tnoreorder\n\tldah\tAT,23170(zero)\n\tzapnot\ta4,0xf,a4\n\tlda\tAT,31129(AT)\t# K_00_19\n\tldq_u\t$0,0+0(a1)\n\tldq_u\t$1,0+7(a1)\n\tldq_u\t$2,(0+2)*4+0(a1)\n\tldq_u\t$3,(0+2)*4+7(a1)\n\textql\t$0,a1,$0\n\textqh\t$1,a1,$1\n\n\tor\t$1,$0,$0\t# pair of 32-bit values are fetched\n\n\tsrl\t$0,24,t10\t\t# vectorized byte swap\n\tsrl\t$0,8,ra\n\n\tsll\t$0,8,t12\n\tsll\t$0,24,$0\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$0,0x88,$0\n\tor\tt10,ra,t10", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:2", "text": "lda\tAT,31129(AT)\t# K_00_19\n\tldq_u\t$0,0+0(a1)\n\tldq_u\t$1,0+7(a1)\n\tldq_u\t$2,(0+2)*4+0(a1)\n\tldq_u\t$3,(0+2)*4+7(a1)\n\textql\t$0,a1,$0\n\textqh\t$1,a1,$1\n\n\tor\t$1,$0,$0\t# pair of 32-bit values are fetched\n\n\tsrl\t$0,24,t10\t\t# vectorized byte swap\n\tsrl\t$0,8,ra\n\n\tsll\t$0,8,t12\n\tsll\t$0,24,$0\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$0,0x88,$0\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta3,5,t11\n\n\tor\t$0,t10,$0\n\taddl\tAT,t9,t9\n\tand\ta4,a5,ra\n\tzapnot\ta3,0xf,a3\n\n\tor\t$0,t12,$0\n\tsrl\ta3,27,t10\n\tbic\tt8,a4,t12\n\tsll\ta4,30,a4\n\n\textll\t$0,4,$1\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$0,t9,t9\n\n\taddl\tt11,t9,t9\n\tsrl\ta4,32,t12\n\tzapnot\t$0,0xf,$0\n\n\taddl\tt10,t9,t9\n\taddl\tra,t9,t9\n\tor\tt12,a4,a4\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\tzapnot\tt9,0xf,t9\n\n\tsrl\tt9,27,t10\n\taddl\t$1,t8,t8\n\tbic\ta5,a3,t12\n\tsll\ta3,30,a3\n\n\tor\tra,t12,ra\n\taddl\tt11,t8,t8\n\tsrl\ta3,32,t12\n\tzapnot\t$1,0xf,$1\n\n\taddl\tt10,t8,t8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:3", "text": "addl\tt10,t9,t9\n\taddl\tra,t9,t9\n\tor\tt12,a4,a4\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\tzapnot\tt9,0xf,t9\n\n\tsrl\tt9,27,t10\n\taddl\t$1,t8,t8\n\tbic\ta5,a3,t12\n\tsll\ta3,30,a3\n\n\tor\tra,t12,ra\n\taddl\tt11,t8,t8\n\tsrl\ta3,32,t12\n\tzapnot\t$1,0xf,$1\n\n\taddl\tt10,t8,t8\n\taddl\tra,t8,t8\n\tor\tt12,a3,a3\n\tldq_u\t$4,(2+2)*4+0(a1)\n\tldq_u\t$5,(2+2)*4+7(a1)\n\textql\t$2,a1,$2\n\textqh\t$3,a1,$3\n\n\tor\t$3,$2,$2\t# pair of 32-bit values are fetched\n\n\tsrl\t$2,24,t10\t\t# vectorized byte swap\n\tsrl\t$2,8,ra\n\n\tsll\t$2,8,t12\n\tsll\t$2,24,$2\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$2,0x88,$2\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\tt8,5,t11\n\n\tor\t$2,t10,$2\n\taddl\tAT,a5,a5\n\tand\tt9,a3,ra\n\tzapnot\tt8,0xf,t8\n\n\tor\t$2,t12,$2\n\tsrl\tt8,27,t10\n\tbic\ta4,t9,t12\n\tsll\tt9,30,t9\n\n\textll\t$2,4,$3\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$2,a5,a5\n\n\taddl\tt11,a5,a5\n\tsrl\tt9,32,t12\n\tzapnot\t$2,0xf,$2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:4", "text": "sll\tt8,5,t11\n\n\tor\t$2,t10,$2\n\taddl\tAT,a5,a5\n\tand\tt9,a3,ra\n\tzapnot\tt8,0xf,t8\n\n\tor\t$2,t12,$2\n\tsrl\tt8,27,t10\n\tbic\ta4,t9,t12\n\tsll\tt9,30,t9\n\n\textll\t$2,4,$3\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$2,a5,a5\n\n\taddl\tt11,a5,a5\n\tsrl\tt9,32,t12\n\tzapnot\t$2,0xf,$2\n\n\taddl\tt10,a5,a5\n\taddl\tra,a5,a5\n\tor\tt12,t9,t9\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tand\tt8,t9,ra\n\tzapnot\ta5,0xf,a5\n\n\tsrl\ta5,27,t10\n\taddl\t$3,a4,a4\n\tbic\ta3,t8,t12\n\tsll\tt8,30,t8\n\n\tor\tra,t12,ra\n\taddl\tt11,a4,a4\n\tsrl\tt8,32,t12\n\tzapnot\t$3,0xf,$3\n\n\taddl\tt10,a4,a4\n\taddl\tra,a4,a4\n\tor\tt12,t8,t8\n\tldq_u\t$6,(4+2)*4+0(a1)\n\tldq_u\t$7,(4+2)*4+7(a1)\n\textql\t$4,a1,$4\n\textqh\t$5,a1,$5\n\n\tor\t$5,$4,$4\t# pair of 32-bit values are fetched\n\n\tsrl\t$4,24,t10\t\t# vectorized byte swap\n\tsrl\t$4,8,ra\n\n\tsll\t$4,8,t12\n\tsll\t$4,24,$4\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$4,0x88,$4\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta4,5,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:5", "text": "or\tt12,t8,t8\n\tldq_u\t$6,(4+2)*4+0(a1)\n\tldq_u\t$7,(4+2)*4+7(a1)\n\textql\t$4,a1,$4\n\textqh\t$5,a1,$5\n\n\tor\t$5,$4,$4\t# pair of 32-bit values are fetched\n\n\tsrl\t$4,24,t10\t\t# vectorized byte swap\n\tsrl\t$4,8,ra\n\n\tsll\t$4,8,t12\n\tsll\t$4,24,$4\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$4,0x88,$4\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta4,5,t11\n\n\tor\t$4,t10,$4\n\taddl\tAT,a3,a3\n\tand\ta5,t8,ra\n\tzapnot\ta4,0xf,a4\n\n\tor\t$4,t12,$4\n\tsrl\ta4,27,t10\n\tbic\tt9,a5,t12\n\tsll\ta5,30,a5\n\n\textll\t$4,4,$5\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$4,a3,a3\n\n\taddl\tt11,a3,a3\n\tsrl\ta5,32,t12\n\tzapnot\t$4,0xf,$4\n\n\taddl\tt10,a3,a3\n\taddl\tra,a3,a3\n\tor\tt12,a5,a5\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tand\ta4,a5,ra\n\tzapnot\ta3,0xf,a3\n\n\tsrl\ta3,27,t10\n\taddl\t$5,t9,t9\n\tbic\tt8,a4,t12\n\tsll\ta4,30,a4\n\n\tor\tra,t12,ra\n\taddl\tt11,t9,t9\n\tsrl\ta4,32,t12\n\tzapnot\t$5,0xf,$5\n\n\taddl\tt10,t9,t9\n\taddl\tra,t9,t9\n\tor\tt12,a4,a4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:6", "text": "addl\tra,a3,a3\n\tor\tt12,a5,a5\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tand\ta4,a5,ra\n\tzapnot\ta3,0xf,a3\n\n\tsrl\ta3,27,t10\n\taddl\t$5,t9,t9\n\tbic\tt8,a4,t12\n\tsll\ta4,30,a4\n\n\tor\tra,t12,ra\n\taddl\tt11,t9,t9\n\tsrl\ta4,32,t12\n\tzapnot\t$5,0xf,$5\n\n\taddl\tt10,t9,t9\n\taddl\tra,t9,t9\n\tor\tt12,a4,a4\n\tldq_u\t$8,(6+2)*4+0(a1)\n\tldq_u\t$9,(6+2)*4+7(a1)\n\textql\t$6,a1,$6\n\textqh\t$7,a1,$7\n\n\tor\t$7,$6,$6\t# pair of 32-bit values are fetched\n\n\tsrl\t$6,24,t10\t\t# vectorized byte swap\n\tsrl\t$6,8,ra\n\n\tsll\t$6,8,t12\n\tsll\t$6,24,$6\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$6,0x88,$6\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\tt9,5,t11\n\n\tor\t$6,t10,$6\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\tzapnot\tt9,0xf,t9\n\n\tor\t$6,t12,$6\n\tsrl\tt9,27,t10\n\tbic\ta5,a3,t12\n\tsll\ta3,30,a3\n\n\textll\t$6,4,$7\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$6,t8,t8\n\n\taddl\tt11,t8,t8\n\tsrl\ta3,32,t12\n\tzapnot\t$6,0xf,$6\n\n\taddl\tt10,t8,t8\n\taddl\tra,t8,t8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:7", "text": "or\t$6,t10,$6\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\tzapnot\tt9,0xf,t9\n\n\tor\t$6,t12,$6\n\tsrl\tt9,27,t10\n\tbic\ta5,a3,t12\n\tsll\ta3,30,a3\n\n\textll\t$6,4,$7\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$6,t8,t8\n\n\taddl\tt11,t8,t8\n\tsrl\ta3,32,t12\n\tzapnot\t$6,0xf,$6\n\n\taddl\tt10,t8,t8\n\taddl\tra,t8,t8\n\tor\tt12,a3,a3\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tand\tt9,a3,ra\n\tzapnot\tt8,0xf,t8\n\n\tsrl\tt8,27,t10\n\taddl\t$7,a5,a5\n\tbic\ta4,t9,t12\n\tsll\tt9,30,t9\n\n\tor\tra,t12,ra\n\taddl\tt11,a5,a5\n\tsrl\tt9,32,t12\n\tzapnot\t$7,0xf,$7\n\n\taddl\tt10,a5,a5\n\taddl\tra,a5,a5\n\tor\tt12,t9,t9\n\tldq_u\t$10,(8+2)*4+0(a1)\n\tldq_u\t$11,(8+2)*4+7(a1)\n\textql\t$8,a1,$8\n\textqh\t$9,a1,$9\n\n\tor\t$9,$8,$8\t# pair of 32-bit values are fetched\n\n\tsrl\t$8,24,t10\t\t# vectorized byte swap\n\tsrl\t$8,8,ra\n\n\tsll\t$8,8,t12\n\tsll\t$8,24,$8\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$8,0x88,$8\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta5,5,t11\n\n\tor\t$8,t10,$8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:8", "text": "ldq_u\t$11,(8+2)*4+7(a1)\n\textql\t$8,a1,$8\n\textqh\t$9,a1,$9\n\n\tor\t$9,$8,$8\t# pair of 32-bit values are fetched\n\n\tsrl\t$8,24,t10\t\t# vectorized byte swap\n\tsrl\t$8,8,ra\n\n\tsll\t$8,8,t12\n\tsll\t$8,24,$8\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$8,0x88,$8\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta5,5,t11\n\n\tor\t$8,t10,$8\n\taddl\tAT,a4,a4\n\tand\tt8,t9,ra\n\tzapnot\ta5,0xf,a5\n\n\tor\t$8,t12,$8\n\tsrl\ta5,27,t10\n\tbic\ta3,t8,t12\n\tsll\tt8,30,t8\n\n\textll\t$8,4,$9\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$8,a4,a4\n\n\taddl\tt11,a4,a4\n\tsrl\tt8,32,t12\n\tzapnot\t$8,0xf,$8\n\n\taddl\tt10,a4,a4\n\taddl\tra,a4,a4\n\tor\tt12,t8,t8\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tand\ta5,t8,ra\n\tzapnot\ta4,0xf,a4\n\n\tsrl\ta4,27,t10\n\taddl\t$9,a3,a3\n\tbic\tt9,a5,t12\n\tsll\ta5,30,a5\n\n\tor\tra,t12,ra\n\taddl\tt11,a3,a3\n\tsrl\ta5,32,t12\n\tzapnot\t$9,0xf,$9\n\n\taddl\tt10,a3,a3\n\taddl\tra,a3,a3\n\tor\tt12,a5,a5\n\tldq_u\t$12,(10+2)*4+0(a1)\n\tldq_u\t$13,(10+2)*4+7(a1)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:9", "text": "sll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tand\ta5,t8,ra\n\tzapnot\ta4,0xf,a4\n\n\tsrl\ta4,27,t10\n\taddl\t$9,a3,a3\n\tbic\tt9,a5,t12\n\tsll\ta5,30,a5\n\n\tor\tra,t12,ra\n\taddl\tt11,a3,a3\n\tsrl\ta5,32,t12\n\tzapnot\t$9,0xf,$9\n\n\taddl\tt10,a3,a3\n\taddl\tra,a3,a3\n\tor\tt12,a5,a5\n\tldq_u\t$12,(10+2)*4+0(a1)\n\tldq_u\t$13,(10+2)*4+7(a1)\n\textql\t$10,a1,$10\n\textqh\t$11,a1,$11\n\n\tor\t$11,$10,$10\t# pair of 32-bit values are fetched\n\n\tsrl\t$10,24,t10\t\t# vectorized byte swap\n\tsrl\t$10,8,ra\n\n\tsll\t$10,8,t12\n\tsll\t$10,24,$10\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$10,0x88,$10\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta3,5,t11\n\n\tor\t$10,t10,$10\n\taddl\tAT,t9,t9\n\tand\ta4,a5,ra\n\tzapnot\ta3,0xf,a3\n\n\tor\t$10,t12,$10\n\tsrl\ta3,27,t10\n\tbic\tt8,a4,t12\n\tsll\ta4,30,a4\n\n\textll\t$10,4,$11\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$10,t9,t9\n\n\taddl\tt11,t9,t9\n\tsrl\ta4,32,t12\n\tzapnot\t$10,0xf,$10\n\n\taddl\tt10,t9,t9\n\taddl\tra,t9,t9\n\tor\tt12,a4,a4\n\tsll\tt9,5,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:10", "text": "and\ta4,a5,ra\n\tzapnot\ta3,0xf,a3\n\n\tor\t$10,t12,$10\n\tsrl\ta3,27,t10\n\tbic\tt8,a4,t12\n\tsll\ta4,30,a4\n\n\textll\t$10,4,$11\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$10,t9,t9\n\n\taddl\tt11,t9,t9\n\tsrl\ta4,32,t12\n\tzapnot\t$10,0xf,$10\n\n\taddl\tt10,t9,t9\n\taddl\tra,t9,t9\n\tor\tt12,a4,a4\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\tzapnot\tt9,0xf,t9\n\n\tsrl\tt9,27,t10\n\taddl\t$11,t8,t8\n\tbic\ta5,a3,t12\n\tsll\ta3,30,a3\n\n\tor\tra,t12,ra\n\taddl\tt11,t8,t8\n\tsrl\ta3,32,t12\n\tzapnot\t$11,0xf,$11\n\n\taddl\tt10,t8,t8\n\taddl\tra,t8,t8\n\tor\tt12,a3,a3\n\tldq_u\t$14,(12+2)*4+0(a1)\n\tldq_u\t$15,(12+2)*4+7(a1)\n\textql\t$12,a1,$12\n\textqh\t$13,a1,$13\n\n\tor\t$13,$12,$12\t# pair of 32-bit values are fetched\n\n\tsrl\t$12,24,t10\t\t# vectorized byte swap\n\tsrl\t$12,8,ra\n\n\tsll\t$12,8,t12\n\tsll\t$12,24,$12\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$12,0x88,$12\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\tt8,5,t11\n\n\tor\t$12,t10,$12\n\taddl\tAT,a5,a5\n\tand\tt9,a3,ra", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:11", "text": "extqh\t$13,a1,$13\n\n\tor\t$13,$12,$12\t# pair of 32-bit values are fetched\n\n\tsrl\t$12,24,t10\t\t# vectorized byte swap\n\tsrl\t$12,8,ra\n\n\tsll\t$12,8,t12\n\tsll\t$12,24,$12\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$12,0x88,$12\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\tt8,5,t11\n\n\tor\t$12,t10,$12\n\taddl\tAT,a5,a5\n\tand\tt9,a3,ra\n\tzapnot\tt8,0xf,t8\n\n\tor\t$12,t12,$12\n\tsrl\tt8,27,t10\n\tbic\ta4,t9,t12\n\tsll\tt9,30,t9\n\n\textll\t$12,4,$13\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$12,a5,a5\n\n\taddl\tt11,a5,a5\n\tsrl\tt9,32,t12\n\tzapnot\t$12,0xf,$12\n\n\taddl\tt10,a5,a5\n\taddl\tra,a5,a5\n\tor\tt12,t9,t9\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tand\tt8,t9,ra\n\tzapnot\ta5,0xf,a5\n\n\tsrl\ta5,27,t10\n\taddl\t$13,a4,a4\n\tbic\ta3,t8,t12\n\tsll\tt8,30,t8\n\n\tor\tra,t12,ra\n\taddl\tt11,a4,a4\n\tsrl\tt8,32,t12\n\tzapnot\t$13,0xf,$13\n\n\taddl\tt10,a4,a4\n\taddl\tra,a4,a4\n\tor\tt12,t8,t8\n\textql\t$14,a1,$14\n\textqh\t$15,a1,$15\n\n\tor\t$15,$14,$14\t# pair of 32-bit values are fetched", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:12", "text": "and\tt8,t9,ra\n\tzapnot\ta5,0xf,a5\n\n\tsrl\ta5,27,t10\n\taddl\t$13,a4,a4\n\tbic\ta3,t8,t12\n\tsll\tt8,30,t8\n\n\tor\tra,t12,ra\n\taddl\tt11,a4,a4\n\tsrl\tt8,32,t12\n\tzapnot\t$13,0xf,$13\n\n\taddl\tt10,a4,a4\n\taddl\tra,a4,a4\n\tor\tt12,t8,t8\n\textql\t$14,a1,$14\n\textqh\t$15,a1,$15\n\n\tor\t$15,$14,$14\t# pair of 32-bit values are fetched\n\n\tsrl\t$14,24,t10\t\t# vectorized byte swap\n\tsrl\t$14,8,ra\n\n\tsll\t$14,8,t12\n\tsll\t$14,24,$14\n\tzapnot\tt10,0x11,t10\n\tzapnot\tra,0x22,ra\n\n\tzapnot\t$14,0x88,$14\n\tor\tt10,ra,t10\n\tzapnot\tt12,0x44,t12\n\tsll\ta4,5,t11\n\n\tor\t$14,t10,$14\n\taddl\tAT,a3,a3\n\tand\ta5,t8,ra\n\tzapnot\ta4,0xf,a4\n\n\tor\t$14,t12,$14\n\tsrl\ta4,27,t10\n\tbic\tt9,a5,t12\n\tsll\ta5,30,a5\n\n\textll\t$14,4,$15\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$14,a3,a3\n\n\taddl\tt11,a3,a3\n\tsrl\ta5,32,t12\n\tzapnot\t$14,0xf,$14\n\n\taddl\tt10,a3,a3\n\taddl\tra,a3,a3\n\tor\tt12,a5,a5\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tand\ta4,a5,ra\n\txor\t$2,$0,$0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:13", "text": "srl\ta4,27,t10\n\tbic\tt9,a5,t12\n\tsll\ta5,30,a5\n\n\textll\t$14,4,$15\t# extract upper half\n\tor\tra,t12,ra\n\taddl\t$14,a3,a3\n\n\taddl\tt11,a3,a3\n\tsrl\ta5,32,t12\n\tzapnot\t$14,0xf,$14\n\n\taddl\tt10,a3,a3\n\taddl\tra,a3,a3\n\tor\tt12,a5,a5\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tand\ta4,a5,ra\n\txor\t$2,$0,$0\n\n\tzapnot\ta3,0xf,a3\n\taddl\t$15,t9,t9\n\tbic\tt8,a4,t12\n\txor\t$8,$0,$0\n\n\tsrl\ta3,27,t10\n\taddl\tt11,t9,t9\n\tor\tra,t12,ra\n\txor\t$13,$0,$0\n\n\tsll\ta4,30,a4\n\taddl\tt10,t9,t9\n\tsrl\t$0,31,t11\n\n\taddl\tra,t9,t9\n\tsrl\ta4,32,t12\n\taddl\t$0,$0,$0\n\n\tor\tt12,a4,a4\n\tzapnot\t$15,0xf,$15\n\tor\tt11,$0,$0\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\txor\t$3,$1,$1\n\n\tzapnot\tt9,0xf,t9\n\taddl\t$0,t8,t8\n\tbic\ta5,a3,t12\n\txor\t$9,$1,$1\n\n\tsrl\tt9,27,t10\n\taddl\tt11,t8,t8\n\tor\tra,t12,ra\n\txor\t$14,$1,$1\n\n\tsll\ta3,30,a3\n\taddl\tt10,t8,t8\n\tsrl\t$1,31,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:14", "text": "or\tt11,$0,$0\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tand\ta3,a4,ra\n\txor\t$3,$1,$1\n\n\tzapnot\tt9,0xf,t9\n\taddl\t$0,t8,t8\n\tbic\ta5,a3,t12\n\txor\t$9,$1,$1\n\n\tsrl\tt9,27,t10\n\taddl\tt11,t8,t8\n\tor\tra,t12,ra\n\txor\t$14,$1,$1\n\n\tsll\ta3,30,a3\n\taddl\tt10,t8,t8\n\tsrl\t$1,31,t11\n\n\taddl\tra,t8,t8\n\tsrl\ta3,32,t12\n\taddl\t$1,$1,$1\n\n\tor\tt12,a3,a3\n\tzapnot\t$0,0xf,$0\n\tor\tt11,$1,$1\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tand\tt9,a3,ra\n\txor\t$4,$2,$2\n\n\tzapnot\tt8,0xf,t8\n\taddl\t$1,a5,a5\n\tbic\ta4,t9,t12\n\txor\t$10,$2,$2\n\n\tsrl\tt8,27,t10\n\taddl\tt11,a5,a5\n\tor\tra,t12,ra\n\txor\t$15,$2,$2\n\n\tsll\tt9,30,t9\n\taddl\tt10,a5,a5\n\tsrl\t$2,31,t11\n\n\taddl\tra,a5,a5\n\tsrl\tt9,32,t12\n\taddl\t$2,$2,$2\n\n\tor\tt12,t9,t9\n\tzapnot\t$1,0xf,$1\n\tor\tt11,$2,$2\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tand\tt8,t9,ra\n\txor\t$5,$3,$3\n\n\tzapnot\ta5,0xf,a5\n\taddl\t$2,a4,a4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:15", "text": "xor\t$15,$2,$2\n\n\tsll\tt9,30,t9\n\taddl\tt10,a5,a5\n\tsrl\t$2,31,t11\n\n\taddl\tra,a5,a5\n\tsrl\tt9,32,t12\n\taddl\t$2,$2,$2\n\n\tor\tt12,t9,t9\n\tzapnot\t$1,0xf,$1\n\tor\tt11,$2,$2\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tand\tt8,t9,ra\n\txor\t$5,$3,$3\n\n\tzapnot\ta5,0xf,a5\n\taddl\t$2,a4,a4\n\tbic\ta3,t8,t12\n\txor\t$11,$3,$3\n\n\tsrl\ta5,27,t10\n\taddl\tt11,a4,a4\n\tor\tra,t12,ra\n\txor\t$0,$3,$3\n\n\tsll\tt8,30,t8\n\taddl\tt10,a4,a4\n\tsrl\t$3,31,t11\n\n\taddl\tra,a4,a4\n\tsrl\tt8,32,t12\n\taddl\t$3,$3,$3\n\n\tor\tt12,t8,t8\n\tzapnot\t$2,0xf,$2\n\tor\tt11,$3,$3\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tand\ta5,t8,ra\n\txor\t$6,$4,$4\n\n\tzapnot\ta4,0xf,a4\n\taddl\t$3,a3,a3\n\tbic\tt9,a5,t12\n\txor\t$12,$4,$4\n\n\tsrl\ta4,27,t10\n\taddl\tt11,a3,a3\n\tor\tra,t12,ra\n\txor\t$1,$4,$4\n\n\tsll\ta5,30,a5\n\taddl\tt10,a3,a3\n\tsrl\t$4,31,t11\n\n\taddl\tra,a3,a3\n\tsrl\ta5,32,t12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:16", "text": "addl\tAT,a3,a3\n\tand\ta5,t8,ra\n\txor\t$6,$4,$4\n\n\tzapnot\ta4,0xf,a4\n\taddl\t$3,a3,a3\n\tbic\tt9,a5,t12\n\txor\t$12,$4,$4\n\n\tsrl\ta4,27,t10\n\taddl\tt11,a3,a3\n\tor\tra,t12,ra\n\txor\t$1,$4,$4\n\n\tsll\ta5,30,a5\n\taddl\tt10,a3,a3\n\tsrl\t$4,31,t11\n\n\taddl\tra,a3,a3\n\tsrl\ta5,32,t12\n\taddl\t$4,$4,$4\n\n\tor\tt12,a5,a5\n\tzapnot\t$3,0xf,$3\n\tor\tt11,$4,$4\n\tldah\tAT,28378(zero)\n\tlda\tAT,-5215(AT)\t# K_20_39\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$7,$5,$5\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$13,$5,$5\n\n\tsrl\ta4,2,a4\n\taddl\t$4,t9,t9\n\txor\tt8,ra,ra\n\txor\t$2,$5,$5\n\n\tsrl\t$5,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$5,$5,$5\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$5,$5\n\tzapnot\t$4,0xf,$4\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$8,$6,$6\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$14,$6,$6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:17", "text": "xor\t$2,$5,$5\n\n\tsrl\t$5,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$5,$5,$5\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$5,$5\n\tzapnot\t$4,0xf,$4\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$8,$6,$6\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$14,$6,$6\n\n\tsrl\ta3,2,a3\n\taddl\t$5,t8,t8\n\txor\ta5,ra,ra\n\txor\t$3,$6,$6\n\n\tsrl\t$6,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$6,$6,$6\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$6,$6\n\tzapnot\t$5,0xf,$5\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$9,$7,$7\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$15,$7,$7\n\n\tsrl\tt9,2,t9\n\taddl\t$6,a5,a5\n\txor\ta4,ra,ra\n\txor\t$4,$7,$7\n\n\tsrl\t$7,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$7,$7,$7\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\ta5,5,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:18", "text": "sll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$15,$7,$7\n\n\tsrl\tt9,2,t9\n\taddl\t$6,a5,a5\n\txor\ta4,ra,ra\n\txor\t$4,$7,$7\n\n\tsrl\t$7,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$7,$7,$7\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$10,$8,$8\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$0,$8,$8\n\n\tsrl\tt8,2,t8\n\taddl\t$7,a4,a4\n\txor\ta3,ra,ra\n\txor\t$5,$8,$8\n\n\tsrl\t$8,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$8,$8,$8\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$8,$8\n\tzapnot\t$7,0xf,$7\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$11,$9,$9\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$1,$9,$9\n\n\tsrl\ta5,2,a5\n\taddl\t$8,a3,a3\n\txor\tt9,ra,ra\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tra,a3,a3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:19", "text": "addl\tt10,a4,a4\n\tor\tt11,$8,$8\n\tzapnot\t$7,0xf,$7\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$11,$9,$9\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$1,$9,$9\n\n\tsrl\ta5,2,a5\n\taddl\t$8,a3,a3\n\txor\tt9,ra,ra\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$9,$9,$9\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$9,$9\n\tzapnot\t$8,0xf,$8\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$12,$10,$10\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$2,$10,$10\n\n\tsrl\ta4,2,a4\n\taddl\t$9,t9,t9\n\txor\tt8,ra,ra\n\txor\t$7,$10,$10\n\n\tsrl\t$10,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$10,$10,$10\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$13,$11,$11\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$3,$11,$11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:20", "text": "xor\t$7,$10,$10\n\n\tsrl\t$10,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$10,$10,$10\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$13,$11,$11\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$3,$11,$11\n\n\tsrl\ta3,2,a3\n\taddl\t$10,t8,t8\n\txor\ta5,ra,ra\n\txor\t$8,$11,$11\n\n\tsrl\t$11,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$11,$11,$11\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$11,$11\n\tzapnot\t$10,0xf,$10\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$14,$12,$12\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$4,$12,$12\n\n\tsrl\tt9,2,t9\n\taddl\t$11,a5,a5\n\txor\ta4,ra,ra\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$12,$12,$12\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$12,$12\n\tzapnot\t$11,0xf,$11\n\tsll\ta5,5,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:21", "text": "sll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$4,$12,$12\n\n\tsrl\tt9,2,t9\n\taddl\t$11,a5,a5\n\txor\ta4,ra,ra\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$12,$12,$12\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$12,$12\n\tzapnot\t$11,0xf,$11\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$15,$13,$13\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$5,$13,$13\n\n\tsrl\tt8,2,t8\n\taddl\t$12,a4,a4\n\txor\ta3,ra,ra\n\txor\t$10,$13,$13\n\n\tsrl\t$13,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$13,$13,$13\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$0,$14,$14\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$6,$14,$14\n\n\tsrl\ta5,2,a5\n\taddl\t$13,a3,a3\n\txor\tt9,ra,ra\n\txor\t$11,$14,$14\n\n\tsrl\t$14,31,t11\n\taddl\tra,a3,a3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:22", "text": "addl\tt10,a4,a4\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$0,$14,$14\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$6,$14,$14\n\n\tsrl\ta5,2,a5\n\taddl\t$13,a3,a3\n\txor\tt9,ra,ra\n\txor\t$11,$14,$14\n\n\tsrl\t$14,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$14,$14,$14\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$14,$14\n\tzapnot\t$13,0xf,$13\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$1,$15,$15\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$7,$15,$15\n\n\tsrl\ta4,2,a4\n\taddl\t$14,t9,t9\n\txor\tt8,ra,ra\n\txor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$15,$15,$15\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$15,$15\n\tzapnot\t$14,0xf,$14\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$2,$0,$0\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$8,$0,$0", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:23", "text": "xor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$15,$15,$15\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$15,$15\n\tzapnot\t$14,0xf,$14\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$2,$0,$0\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$8,$0,$0\n\n\tsrl\ta3,2,a3\n\taddl\t$15,t8,t8\n\txor\ta5,ra,ra\n\txor\t$13,$0,$0\n\n\tsrl\t$0,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$0,$0,$0\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$0,$0\n\tzapnot\t$15,0xf,$15\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$3,$1,$1\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$9,$1,$1\n\n\tsrl\tt9,2,t9\n\taddl\t$0,a5,a5\n\txor\ta4,ra,ra\n\txor\t$14,$1,$1\n\n\tsrl\t$1,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$1,$1,$1\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$1,$1\n\tzapnot\t$0,0xf,$0\n\tsll\ta5,5,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:24", "text": "sll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$9,$1,$1\n\n\tsrl\tt9,2,t9\n\taddl\t$0,a5,a5\n\txor\ta4,ra,ra\n\txor\t$14,$1,$1\n\n\tsrl\t$1,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$1,$1,$1\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$1,$1\n\tzapnot\t$0,0xf,$0\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$4,$2,$2\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$10,$2,$2\n\n\tsrl\tt8,2,t8\n\taddl\t$1,a4,a4\n\txor\ta3,ra,ra\n\txor\t$15,$2,$2\n\n\tsrl\t$2,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$2,$2,$2\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$2,$2\n\tzapnot\t$1,0xf,$1\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$5,$3,$3\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$11,$3,$3\n\n\tsrl\ta5,2,a5\n\taddl\t$2,a3,a3\n\txor\tt9,ra,ra\n\txor\t$0,$3,$3\n\n\tsrl\t$3,31,t11\n\taddl\tra,a3,a3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:25", "text": "addl\tt10,a4,a4\n\tor\tt11,$2,$2\n\tzapnot\t$1,0xf,$1\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$5,$3,$3\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$11,$3,$3\n\n\tsrl\ta5,2,a5\n\taddl\t$2,a3,a3\n\txor\tt9,ra,ra\n\txor\t$0,$3,$3\n\n\tsrl\t$3,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$3,$3,$3\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$3,$3\n\tzapnot\t$2,0xf,$2\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$6,$4,$4\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$12,$4,$4\n\n\tsrl\ta4,2,a4\n\taddl\t$3,t9,t9\n\txor\tt8,ra,ra\n\txor\t$1,$4,$4\n\n\tsrl\t$4,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$4,$4,$4\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$4,$4\n\tzapnot\t$3,0xf,$3\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$7,$5,$5\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$13,$5,$5", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:26", "text": "xor\t$1,$4,$4\n\n\tsrl\t$4,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$4,$4,$4\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$4,$4\n\tzapnot\t$3,0xf,$3\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$7,$5,$5\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$13,$5,$5\n\n\tsrl\ta3,2,a3\n\taddl\t$4,t8,t8\n\txor\ta5,ra,ra\n\txor\t$2,$5,$5\n\n\tsrl\t$5,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$5,$5,$5\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$5,$5\n\tzapnot\t$4,0xf,$4\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$8,$6,$6\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$14,$6,$6\n\n\tsrl\tt9,2,t9\n\taddl\t$5,a5,a5\n\txor\ta4,ra,ra\n\txor\t$3,$6,$6\n\n\tsrl\t$6,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$6,$6,$6\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$6,$6\n\tzapnot\t$5,0xf,$5\n\tsll\ta5,5,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:27", "text": "sll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$14,$6,$6\n\n\tsrl\tt9,2,t9\n\taddl\t$5,a5,a5\n\txor\ta4,ra,ra\n\txor\t$3,$6,$6\n\n\tsrl\t$6,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$6,$6,$6\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$6,$6\n\tzapnot\t$5,0xf,$5\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$9,$7,$7\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$15,$7,$7\n\n\tsrl\tt8,2,t8\n\taddl\t$6,a4,a4\n\txor\ta3,ra,ra\n\txor\t$4,$7,$7\n\n\tsrl\t$7,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$7,$7,$7\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$10,$8,$8\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$0,$8,$8\n\n\tsrl\ta5,2,a5\n\taddl\t$7,a3,a3\n\txor\tt9,ra,ra\n\txor\t$5,$8,$8\n\n\tsrl\t$8,31,t11\n\taddl\tra,a3,a3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:28", "text": "addl\tt10,a4,a4\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$10,$8,$8\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$0,$8,$8\n\n\tsrl\ta5,2,a5\n\taddl\t$7,a3,a3\n\txor\tt9,ra,ra\n\txor\t$5,$8,$8\n\n\tsrl\t$8,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$8,$8,$8\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$8,$8\n\tzapnot\t$7,0xf,$7\n\tldah\tAT,-28900(zero)\n\tlda\tAT,-17188(AT)\t# K_40_59\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$11,$9,$9\n\n\tsrl\ta3,27,t10\n\tand\ta4,a5,ra\n\tand\ta4,t8,t12\n\txor\t$1,$9,$9\n\n\tsll\ta4,30,a4\n\taddl\tt11,t9,t9\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tt10,t9,t9\n\tor\tra,t12,ra\n\tand\ta5,t8,t12\n\n\tor\tra,t12,ra\n\tsrl\ta4,32,t12\n\taddl\t$8,t9,t9\n\taddl\t$9,$9,$9\n\n\tor\tt12,a4,a4\n\taddl\tra,t9,t9\n\tor\tt11,$9,$9\n\tzapnot\t$8,0xf,$8\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:29", "text": "addl\tt11,t9,t9\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tt10,t9,t9\n\tor\tra,t12,ra\n\tand\ta5,t8,t12\n\n\tor\tra,t12,ra\n\tsrl\ta4,32,t12\n\taddl\t$8,t9,t9\n\taddl\t$9,$9,$9\n\n\tor\tt12,a4,a4\n\taddl\tra,t9,t9\n\tor\tt11,$9,$9\n\tzapnot\t$8,0xf,$8\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$12,$10,$10\n\n\tsrl\tt9,27,t10\n\tand\ta3,a4,ra\n\tand\ta3,a5,t12\n\txor\t$2,$10,$10\n\n\tsll\ta3,30,a3\n\taddl\tt11,t8,t8\n\txor\t$7,$10,$10\n\n\tsrl\t$10,31,t11\n\taddl\tt10,t8,t8\n\tor\tra,t12,ra\n\tand\ta4,a5,t12\n\n\tor\tra,t12,ra\n\tsrl\ta3,32,t12\n\taddl\t$9,t8,t8\n\taddl\t$10,$10,$10\n\n\tor\tt12,a3,a3\n\taddl\tra,t8,t8\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$13,$11,$11\n\n\tsrl\tt8,27,t10\n\tand\tt9,a3,ra\n\tand\tt9,a4,t12\n\txor\t$3,$11,$11\n\n\tsll\tt9,30,t9\n\taddl\tt11,a5,a5\n\txor\t$8,$11,$11\n\n\tsrl\t$11,31,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:30", "text": "or\tt12,a3,a3\n\taddl\tra,t8,t8\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$13,$11,$11\n\n\tsrl\tt8,27,t10\n\tand\tt9,a3,ra\n\tand\tt9,a4,t12\n\txor\t$3,$11,$11\n\n\tsll\tt9,30,t9\n\taddl\tt11,a5,a5\n\txor\t$8,$11,$11\n\n\tsrl\t$11,31,t11\n\taddl\tt10,a5,a5\n\tor\tra,t12,ra\n\tand\ta3,a4,t12\n\n\tor\tra,t12,ra\n\tsrl\tt9,32,t12\n\taddl\t$10,a5,a5\n\taddl\t$11,$11,$11\n\n\tor\tt12,t9,t9\n\taddl\tra,a5,a5\n\tor\tt11,$11,$11\n\tzapnot\t$10,0xf,$10\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$14,$12,$12\n\n\tsrl\ta5,27,t10\n\tand\tt8,t9,ra\n\tand\tt8,a3,t12\n\txor\t$4,$12,$12\n\n\tsll\tt8,30,t8\n\taddl\tt11,a4,a4\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tt10,a4,a4\n\tor\tra,t12,ra\n\tand\tt9,a3,t12\n\n\tor\tra,t12,ra\n\tsrl\tt8,32,t12\n\taddl\t$11,a4,a4\n\taddl\t$12,$12,$12\n\n\tor\tt12,t8,t8\n\taddl\tra,a4,a4\n\tor\tt11,$12,$12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:31", "text": "and\tt8,a3,t12\n\txor\t$4,$12,$12\n\n\tsll\tt8,30,t8\n\taddl\tt11,a4,a4\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tt10,a4,a4\n\tor\tra,t12,ra\n\tand\tt9,a3,t12\n\n\tor\tra,t12,ra\n\tsrl\tt8,32,t12\n\taddl\t$11,a4,a4\n\taddl\t$12,$12,$12\n\n\tor\tt12,t8,t8\n\taddl\tra,a4,a4\n\tor\tt11,$12,$12\n\tzapnot\t$11,0xf,$11\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$15,$13,$13\n\n\tsrl\ta4,27,t10\n\tand\ta5,t8,ra\n\tand\ta5,t9,t12\n\txor\t$5,$13,$13\n\n\tsll\ta5,30,a5\n\taddl\tt11,a3,a3\n\txor\t$10,$13,$13\n\n\tsrl\t$13,31,t11\n\taddl\tt10,a3,a3\n\tor\tra,t12,ra\n\tand\tt8,t9,t12\n\n\tor\tra,t12,ra\n\tsrl\ta5,32,t12\n\taddl\t$12,a3,a3\n\taddl\t$13,$13,$13\n\n\tor\tt12,a5,a5\n\taddl\tra,a3,a3\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$0,$14,$14\n\n\tsrl\ta3,27,t10\n\tand\ta4,a5,ra\n\tand\ta4,t8,t12\n\txor\t$6,$14,$14\n\n\tsll\ta4,30,a4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:32", "text": "or\tra,t12,ra\n\tsrl\ta5,32,t12\n\taddl\t$12,a3,a3\n\taddl\t$13,$13,$13\n\n\tor\tt12,a5,a5\n\taddl\tra,a3,a3\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$0,$14,$14\n\n\tsrl\ta3,27,t10\n\tand\ta4,a5,ra\n\tand\ta4,t8,t12\n\txor\t$6,$14,$14\n\n\tsll\ta4,30,a4\n\taddl\tt11,t9,t9\n\txor\t$11,$14,$14\n\n\tsrl\t$14,31,t11\n\taddl\tt10,t9,t9\n\tor\tra,t12,ra\n\tand\ta5,t8,t12\n\n\tor\tra,t12,ra\n\tsrl\ta4,32,t12\n\taddl\t$13,t9,t9\n\taddl\t$14,$14,$14\n\n\tor\tt12,a4,a4\n\taddl\tra,t9,t9\n\tor\tt11,$14,$14\n\tzapnot\t$13,0xf,$13\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$1,$15,$15\n\n\tsrl\tt9,27,t10\n\tand\ta3,a4,ra\n\tand\ta3,a5,t12\n\txor\t$7,$15,$15\n\n\tsll\ta3,30,a3\n\taddl\tt11,t8,t8\n\txor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tt10,t8,t8\n\tor\tra,t12,ra\n\tand\ta4,a5,t12\n\n\tor\tra,t12,ra\n\tsrl\ta3,32,t12\n\taddl\t$14,t8,t8\n\taddl\t$15,$15,$15", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:33", "text": "xor\t$1,$15,$15\n\n\tsrl\tt9,27,t10\n\tand\ta3,a4,ra\n\tand\ta3,a5,t12\n\txor\t$7,$15,$15\n\n\tsll\ta3,30,a3\n\taddl\tt11,t8,t8\n\txor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tt10,t8,t8\n\tor\tra,t12,ra\n\tand\ta4,a5,t12\n\n\tor\tra,t12,ra\n\tsrl\ta3,32,t12\n\taddl\t$14,t8,t8\n\taddl\t$15,$15,$15\n\n\tor\tt12,a3,a3\n\taddl\tra,t8,t8\n\tor\tt11,$15,$15\n\tzapnot\t$14,0xf,$14\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$2,$0,$0\n\n\tsrl\tt8,27,t10\n\tand\tt9,a3,ra\n\tand\tt9,a4,t12\n\txor\t$8,$0,$0\n\n\tsll\tt9,30,t9\n\taddl\tt11,a5,a5\n\txor\t$13,$0,$0\n\n\tsrl\t$0,31,t11\n\taddl\tt10,a5,a5\n\tor\tra,t12,ra\n\tand\ta3,a4,t12\n\n\tor\tra,t12,ra\n\tsrl\tt9,32,t12\n\taddl\t$15,a5,a5\n\taddl\t$0,$0,$0\n\n\tor\tt12,t9,t9\n\taddl\tra,a5,a5\n\tor\tt11,$0,$0\n\tzapnot\t$15,0xf,$15\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$3,$1,$1\n\n\tsrl\ta5,27,t10\n\tand\tt8,t9,ra", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:34", "text": "addl\tt10,a5,a5\n\tor\tra,t12,ra\n\tand\ta3,a4,t12\n\n\tor\tra,t12,ra\n\tsrl\tt9,32,t12\n\taddl\t$15,a5,a5\n\taddl\t$0,$0,$0\n\n\tor\tt12,t9,t9\n\taddl\tra,a5,a5\n\tor\tt11,$0,$0\n\tzapnot\t$15,0xf,$15\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$3,$1,$1\n\n\tsrl\ta5,27,t10\n\tand\tt8,t9,ra\n\tand\tt8,a3,t12\n\txor\t$9,$1,$1\n\n\tsll\tt8,30,t8\n\taddl\tt11,a4,a4\n\txor\t$14,$1,$1\n\n\tsrl\t$1,31,t11\n\taddl\tt10,a4,a4\n\tor\tra,t12,ra\n\tand\tt9,a3,t12\n\n\tor\tra,t12,ra\n\tsrl\tt8,32,t12\n\taddl\t$0,a4,a4\n\taddl\t$1,$1,$1\n\n\tor\tt12,t8,t8\n\taddl\tra,a4,a4\n\tor\tt11,$1,$1\n\tzapnot\t$0,0xf,$0\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$4,$2,$2\n\n\tsrl\ta4,27,t10\n\tand\ta5,t8,ra\n\tand\ta5,t9,t12\n\txor\t$10,$2,$2\n\n\tsll\ta5,30,a5\n\taddl\tt11,a3,a3\n\txor\t$15,$2,$2\n\n\tsrl\t$2,31,t11\n\taddl\tt10,a3,a3\n\tor\tra,t12,ra\n\tand\tt8,t9,t12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:35", "text": "zapnot\t$0,0xf,$0\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$4,$2,$2\n\n\tsrl\ta4,27,t10\n\tand\ta5,t8,ra\n\tand\ta5,t9,t12\n\txor\t$10,$2,$2\n\n\tsll\ta5,30,a5\n\taddl\tt11,a3,a3\n\txor\t$15,$2,$2\n\n\tsrl\t$2,31,t11\n\taddl\tt10,a3,a3\n\tor\tra,t12,ra\n\tand\tt8,t9,t12\n\n\tor\tra,t12,ra\n\tsrl\ta5,32,t12\n\taddl\t$1,a3,a3\n\taddl\t$2,$2,$2\n\n\tor\tt12,a5,a5\n\taddl\tra,a3,a3\n\tor\tt11,$2,$2\n\tzapnot\t$1,0xf,$1\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$5,$3,$3\n\n\tsrl\ta3,27,t10\n\tand\ta4,a5,ra\n\tand\ta4,t8,t12\n\txor\t$11,$3,$3\n\n\tsll\ta4,30,a4\n\taddl\tt11,t9,t9\n\txor\t$0,$3,$3\n\n\tsrl\t$3,31,t11\n\taddl\tt10,t9,t9\n\tor\tra,t12,ra\n\tand\ta5,t8,t12\n\n\tor\tra,t12,ra\n\tsrl\ta4,32,t12\n\taddl\t$2,t9,t9\n\taddl\t$3,$3,$3\n\n\tor\tt12,a4,a4\n\taddl\tra,t9,t9\n\tor\tt11,$3,$3\n\tzapnot\t$2,0xf,$2\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:36", "text": "addl\tt11,t9,t9\n\txor\t$0,$3,$3\n\n\tsrl\t$3,31,t11\n\taddl\tt10,t9,t9\n\tor\tra,t12,ra\n\tand\ta5,t8,t12\n\n\tor\tra,t12,ra\n\tsrl\ta4,32,t12\n\taddl\t$2,t9,t9\n\taddl\t$3,$3,$3\n\n\tor\tt12,a4,a4\n\taddl\tra,t9,t9\n\tor\tt11,$3,$3\n\tzapnot\t$2,0xf,$2\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$6,$4,$4\n\n\tsrl\tt9,27,t10\n\tand\ta3,a4,ra\n\tand\ta3,a5,t12\n\txor\t$12,$4,$4\n\n\tsll\ta3,30,a3\n\taddl\tt11,t8,t8\n\txor\t$1,$4,$4\n\n\tsrl\t$4,31,t11\n\taddl\tt10,t8,t8\n\tor\tra,t12,ra\n\tand\ta4,a5,t12\n\n\tor\tra,t12,ra\n\tsrl\ta3,32,t12\n\taddl\t$3,t8,t8\n\taddl\t$4,$4,$4\n\n\tor\tt12,a3,a3\n\taddl\tra,t8,t8\n\tor\tt11,$4,$4\n\tzapnot\t$3,0xf,$3\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$7,$5,$5\n\n\tsrl\tt8,27,t10\n\tand\tt9,a3,ra\n\tand\tt9,a4,t12\n\txor\t$13,$5,$5\n\n\tsll\tt9,30,t9\n\taddl\tt11,a5,a5\n\txor\t$2,$5,$5\n\n\tsrl\t$5,31,t11", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:37", "text": "or\tt12,a3,a3\n\taddl\tra,t8,t8\n\tor\tt11,$4,$4\n\tzapnot\t$3,0xf,$3\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$7,$5,$5\n\n\tsrl\tt8,27,t10\n\tand\tt9,a3,ra\n\tand\tt9,a4,t12\n\txor\t$13,$5,$5\n\n\tsll\tt9,30,t9\n\taddl\tt11,a5,a5\n\txor\t$2,$5,$5\n\n\tsrl\t$5,31,t11\n\taddl\tt10,a5,a5\n\tor\tra,t12,ra\n\tand\ta3,a4,t12\n\n\tor\tra,t12,ra\n\tsrl\tt9,32,t12\n\taddl\t$4,a5,a5\n\taddl\t$5,$5,$5\n\n\tor\tt12,t9,t9\n\taddl\tra,a5,a5\n\tor\tt11,$5,$5\n\tzapnot\t$4,0xf,$4\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$8,$6,$6\n\n\tsrl\ta5,27,t10\n\tand\tt8,t9,ra\n\tand\tt8,a3,t12\n\txor\t$14,$6,$6\n\n\tsll\tt8,30,t8\n\taddl\tt11,a4,a4\n\txor\t$3,$6,$6\n\n\tsrl\t$6,31,t11\n\taddl\tt10,a4,a4\n\tor\tra,t12,ra\n\tand\tt9,a3,t12\n\n\tor\tra,t12,ra\n\tsrl\tt8,32,t12\n\taddl\t$5,a4,a4\n\taddl\t$6,$6,$6\n\n\tor\tt12,t8,t8\n\taddl\tra,a4,a4\n\tor\tt11,$6,$6", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:38", "text": "and\tt8,a3,t12\n\txor\t$14,$6,$6\n\n\tsll\tt8,30,t8\n\taddl\tt11,a4,a4\n\txor\t$3,$6,$6\n\n\tsrl\t$6,31,t11\n\taddl\tt10,a4,a4\n\tor\tra,t12,ra\n\tand\tt9,a3,t12\n\n\tor\tra,t12,ra\n\tsrl\tt8,32,t12\n\taddl\t$5,a4,a4\n\taddl\t$6,$6,$6\n\n\tor\tt12,t8,t8\n\taddl\tra,a4,a4\n\tor\tt11,$6,$6\n\tzapnot\t$5,0xf,$5\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$9,$7,$7\n\n\tsrl\ta4,27,t10\n\tand\ta5,t8,ra\n\tand\ta5,t9,t12\n\txor\t$15,$7,$7\n\n\tsll\ta5,30,a5\n\taddl\tt11,a3,a3\n\txor\t$4,$7,$7\n\n\tsrl\t$7,31,t11\n\taddl\tt10,a3,a3\n\tor\tra,t12,ra\n\tand\tt8,t9,t12\n\n\tor\tra,t12,ra\n\tsrl\ta5,32,t12\n\taddl\t$6,a3,a3\n\taddl\t$7,$7,$7\n\n\tor\tt12,a5,a5\n\taddl\tra,a3,a3\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$10,$8,$8\n\n\tsrl\ta3,27,t10\n\tand\ta4,a5,ra\n\tand\ta4,t8,t12\n\txor\t$0,$8,$8\n\n\tsll\ta4,30,a4", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:39", "text": "or\tra,t12,ra\n\tsrl\ta5,32,t12\n\taddl\t$6,a3,a3\n\taddl\t$7,$7,$7\n\n\tor\tt12,a5,a5\n\taddl\tra,a3,a3\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$10,$8,$8\n\n\tsrl\ta3,27,t10\n\tand\ta4,a5,ra\n\tand\ta4,t8,t12\n\txor\t$0,$8,$8\n\n\tsll\ta4,30,a4\n\taddl\tt11,t9,t9\n\txor\t$5,$8,$8\n\n\tsrl\t$8,31,t11\n\taddl\tt10,t9,t9\n\tor\tra,t12,ra\n\tand\ta5,t8,t12\n\n\tor\tra,t12,ra\n\tsrl\ta4,32,t12\n\taddl\t$7,t9,t9\n\taddl\t$8,$8,$8\n\n\tor\tt12,a4,a4\n\taddl\tra,t9,t9\n\tor\tt11,$8,$8\n\tzapnot\t$7,0xf,$7\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$11,$9,$9\n\n\tsrl\tt9,27,t10\n\tand\ta3,a4,ra\n\tand\ta3,a5,t12\n\txor\t$1,$9,$9\n\n\tsll\ta3,30,a3\n\taddl\tt11,t8,t8\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tt10,t8,t8\n\tor\tra,t12,ra\n\tand\ta4,a5,t12\n\n\tor\tra,t12,ra\n\tsrl\ta3,32,t12\n\taddl\t$8,t8,t8\n\taddl\t$9,$9,$9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:40", "text": "xor\t$11,$9,$9\n\n\tsrl\tt9,27,t10\n\tand\ta3,a4,ra\n\tand\ta3,a5,t12\n\txor\t$1,$9,$9\n\n\tsll\ta3,30,a3\n\taddl\tt11,t8,t8\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tt10,t8,t8\n\tor\tra,t12,ra\n\tand\ta4,a5,t12\n\n\tor\tra,t12,ra\n\tsrl\ta3,32,t12\n\taddl\t$8,t8,t8\n\taddl\t$9,$9,$9\n\n\tor\tt12,a3,a3\n\taddl\tra,t8,t8\n\tor\tt11,$9,$9\n\tzapnot\t$8,0xf,$8\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$12,$10,$10\n\n\tsrl\tt8,27,t10\n\tand\tt9,a3,ra\n\tand\tt9,a4,t12\n\txor\t$2,$10,$10\n\n\tsll\tt9,30,t9\n\taddl\tt11,a5,a5\n\txor\t$7,$10,$10\n\n\tsrl\t$10,31,t11\n\taddl\tt10,a5,a5\n\tor\tra,t12,ra\n\tand\ta3,a4,t12\n\n\tor\tra,t12,ra\n\tsrl\tt9,32,t12\n\taddl\t$9,a5,a5\n\taddl\t$10,$10,$10\n\n\tor\tt12,t9,t9\n\taddl\tra,a5,a5\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$13,$11,$11\n\n\tsrl\ta5,27,t10\n\tand\tt8,t9,ra", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:41", "text": "addl\tt10,a5,a5\n\tor\tra,t12,ra\n\tand\ta3,a4,t12\n\n\tor\tra,t12,ra\n\tsrl\tt9,32,t12\n\taddl\t$9,a5,a5\n\taddl\t$10,$10,$10\n\n\tor\tt12,t9,t9\n\taddl\tra,a5,a5\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$13,$11,$11\n\n\tsrl\ta5,27,t10\n\tand\tt8,t9,ra\n\tand\tt8,a3,t12\n\txor\t$3,$11,$11\n\n\tsll\tt8,30,t8\n\taddl\tt11,a4,a4\n\txor\t$8,$11,$11\n\n\tsrl\t$11,31,t11\n\taddl\tt10,a4,a4\n\tor\tra,t12,ra\n\tand\tt9,a3,t12\n\n\tor\tra,t12,ra\n\tsrl\tt8,32,t12\n\taddl\t$10,a4,a4\n\taddl\t$11,$11,$11\n\n\tor\tt12,t8,t8\n\taddl\tra,a4,a4\n\tor\tt11,$11,$11\n\tzapnot\t$10,0xf,$10\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$14,$12,$12\n\n\tsrl\ta4,27,t10\n\tand\ta5,t8,ra\n\tand\ta5,t9,t12\n\txor\t$4,$12,$12\n\n\tsll\ta5,30,a5\n\taddl\tt11,a3,a3\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tt10,a3,a3\n\tor\tra,t12,ra\n\tand\tt8,t9,t12", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:42", "text": "zapnot\t$10,0xf,$10\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$14,$12,$12\n\n\tsrl\ta4,27,t10\n\tand\ta5,t8,ra\n\tand\ta5,t9,t12\n\txor\t$4,$12,$12\n\n\tsll\ta5,30,a5\n\taddl\tt11,a3,a3\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tt10,a3,a3\n\tor\tra,t12,ra\n\tand\tt8,t9,t12\n\n\tor\tra,t12,ra\n\tsrl\ta5,32,t12\n\taddl\t$11,a3,a3\n\taddl\t$12,$12,$12\n\n\tor\tt12,a5,a5\n\taddl\tra,a3,a3\n\tor\tt11,$12,$12\n\tzapnot\t$11,0xf,$11\n\tldah\tAT,-13725(zero)\n\tlda\tAT,-15914(AT)\t# K_60_79\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$15,$13,$13\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$5,$13,$13\n\n\tsrl\ta4,2,a4\n\taddl\t$12,t9,t9\n\txor\tt8,ra,ra\n\txor\t$10,$13,$13\n\n\tsrl\t$13,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$13,$13,$13\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$0,$14,$14", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:43", "text": "srl\ta4,2,a4\n\taddl\t$12,t9,t9\n\txor\tt8,ra,ra\n\txor\t$10,$13,$13\n\n\tsrl\t$13,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$13,$13,$13\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$0,$14,$14\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$6,$14,$14\n\n\tsrl\ta3,2,a3\n\taddl\t$13,t8,t8\n\txor\ta5,ra,ra\n\txor\t$11,$14,$14\n\n\tsrl\t$14,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$14,$14,$14\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$14,$14\n\tzapnot\t$13,0xf,$13\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$1,$15,$15\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$7,$15,$15\n\n\tsrl\tt9,2,t9\n\taddl\t$14,a5,a5\n\txor\ta4,ra,ra\n\txor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$15,$15,$15\n\n\tor\tt12,t9,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:44", "text": "addl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$1,$15,$15\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$7,$15,$15\n\n\tsrl\tt9,2,t9\n\taddl\t$14,a5,a5\n\txor\ta4,ra,ra\n\txor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$15,$15,$15\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$15,$15\n\tzapnot\t$14,0xf,$14\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$2,$0,$0\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$8,$0,$0\n\n\tsrl\tt8,2,t8\n\taddl\t$15,a4,a4\n\txor\ta3,ra,ra\n\txor\t$13,$0,$0\n\n\tsrl\t$0,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$0,$0,$0\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$0,$0\n\tzapnot\t$15,0xf,$15\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$3,$1,$1\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$9,$1,$1\n\n\tsrl\ta5,2,a5\n\taddl\t$0,a3,a3\n\txor\tt9,ra,ra", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:45", "text": "srl\ta5,27,t10\n\taddl\t$0,$0,$0\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$0,$0\n\tzapnot\t$15,0xf,$15\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$3,$1,$1\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$9,$1,$1\n\n\tsrl\ta5,2,a5\n\taddl\t$0,a3,a3\n\txor\tt9,ra,ra\n\txor\t$14,$1,$1\n\n\tsrl\t$1,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$1,$1,$1\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$1,$1\n\tzapnot\t$0,0xf,$0\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$4,$2,$2\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$10,$2,$2\n\n\tsrl\ta4,2,a4\n\taddl\t$1,t9,t9\n\txor\tt8,ra,ra\n\txor\t$15,$2,$2\n\n\tsrl\t$2,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$2,$2,$2\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$2,$2\n\tzapnot\t$1,0xf,$1\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$5,$3,$3", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:46", "text": "srl\ta4,2,a4\n\taddl\t$1,t9,t9\n\txor\tt8,ra,ra\n\txor\t$15,$2,$2\n\n\tsrl\t$2,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$2,$2,$2\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$2,$2\n\tzapnot\t$1,0xf,$1\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$5,$3,$3\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$11,$3,$3\n\n\tsrl\ta3,2,a3\n\taddl\t$2,t8,t8\n\txor\ta5,ra,ra\n\txor\t$0,$3,$3\n\n\tsrl\t$3,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$3,$3,$3\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$3,$3\n\tzapnot\t$2,0xf,$2\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$6,$4,$4\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$12,$4,$4\n\n\tsrl\tt9,2,t9\n\taddl\t$3,a5,a5\n\txor\ta4,ra,ra\n\txor\t$1,$4,$4\n\n\tsrl\t$4,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$4,$4,$4\n\n\tor\tt12,t9,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:47", "text": "addl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$6,$4,$4\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$12,$4,$4\n\n\tsrl\tt9,2,t9\n\taddl\t$3,a5,a5\n\txor\ta4,ra,ra\n\txor\t$1,$4,$4\n\n\tsrl\t$4,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$4,$4,$4\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$4,$4\n\tzapnot\t$3,0xf,$3\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$7,$5,$5\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$13,$5,$5\n\n\tsrl\tt8,2,t8\n\taddl\t$4,a4,a4\n\txor\ta3,ra,ra\n\txor\t$2,$5,$5\n\n\tsrl\t$5,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$5,$5,$5\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$5,$5\n\tzapnot\t$4,0xf,$4\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$8,$6,$6\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$14,$6,$6\n\n\tsrl\ta5,2,a5\n\taddl\t$5,a3,a3\n\txor\tt9,ra,ra", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:48", "text": "srl\ta5,27,t10\n\taddl\t$5,$5,$5\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$5,$5\n\tzapnot\t$4,0xf,$4\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$8,$6,$6\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$14,$6,$6\n\n\tsrl\ta5,2,a5\n\taddl\t$5,a3,a3\n\txor\tt9,ra,ra\n\txor\t$3,$6,$6\n\n\tsrl\t$6,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$6,$6,$6\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$6,$6\n\tzapnot\t$5,0xf,$5\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$9,$7,$7\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$15,$7,$7\n\n\tsrl\ta4,2,a4\n\taddl\t$6,t9,t9\n\txor\tt8,ra,ra\n\txor\t$4,$7,$7\n\n\tsrl\t$7,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$7,$7,$7\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$10,$8,$8", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:49", "text": "srl\ta4,2,a4\n\taddl\t$6,t9,t9\n\txor\tt8,ra,ra\n\txor\t$4,$7,$7\n\n\tsrl\t$7,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$7,$7,$7\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$7,$7\n\tzapnot\t$6,0xf,$6\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$10,$8,$8\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$0,$8,$8\n\n\tsrl\ta3,2,a3\n\taddl\t$7,t8,t8\n\txor\ta5,ra,ra\n\txor\t$5,$8,$8\n\n\tsrl\t$8,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$8,$8,$8\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$8,$8\n\tzapnot\t$7,0xf,$7\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$11,$9,$9\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$1,$9,$9\n\n\tsrl\tt9,2,t9\n\taddl\t$8,a5,a5\n\txor\ta4,ra,ra\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$9,$9,$9\n\n\tor\tt12,t9,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:50", "text": "addl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$11,$9,$9\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$1,$9,$9\n\n\tsrl\tt9,2,t9\n\taddl\t$8,a5,a5\n\txor\ta4,ra,ra\n\txor\t$6,$9,$9\n\n\tsrl\t$9,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$9,$9,$9\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$9,$9\n\tzapnot\t$8,0xf,$8\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$12,$10,$10\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$2,$10,$10\n\n\tsrl\tt8,2,t8\n\taddl\t$9,a4,a4\n\txor\ta3,ra,ra\n\txor\t$7,$10,$10\n\n\tsrl\t$10,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$10,$10,$10\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$13,$11,$11\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$3,$11,$11\n\n\tsrl\ta5,2,a5\n\taddl\t$10,a3,a3\n\txor\tt9,ra,ra", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:51", "text": "srl\ta5,27,t10\n\taddl\t$10,$10,$10\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$10,$10\n\tzapnot\t$9,0xf,$9\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\txor\t$13,$11,$11\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\txor\t$3,$11,$11\n\n\tsrl\ta5,2,a5\n\taddl\t$10,a3,a3\n\txor\tt9,ra,ra\n\txor\t$8,$11,$11\n\n\tsrl\t$11,31,t11\n\taddl\tra,a3,a3\n\tsrl\ta4,27,t10\n\taddl\t$11,$11,$11\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tor\tt11,$11,$11\n\tzapnot\t$10,0xf,$10\n\tsll\ta3,5,t11\n\taddl\tAT,t9,t9\n\tzapnot\ta3,0xf,a3\n\txor\t$14,$12,$12\n\n\tsll\ta4,30,t12\n\taddl\tt11,t9,t9\n\txor\ta4,a5,ra\n\txor\t$4,$12,$12\n\n\tsrl\ta4,2,a4\n\taddl\t$11,t9,t9\n\txor\tt8,ra,ra\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$12,$12,$12\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$12,$12\n\tzapnot\t$11,0xf,$11\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$15,$13,$13", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:52", "text": "srl\ta4,2,a4\n\taddl\t$11,t9,t9\n\txor\tt8,ra,ra\n\txor\t$9,$12,$12\n\n\tsrl\t$12,31,t11\n\taddl\tra,t9,t9\n\tsrl\ta3,27,t10\n\taddl\t$12,$12,$12\n\n\tor\tt12,a4,a4\n\taddl\tt10,t9,t9\n\tor\tt11,$12,$12\n\tzapnot\t$11,0xf,$11\n\tsll\tt9,5,t11\n\taddl\tAT,t8,t8\n\tzapnot\tt9,0xf,t9\n\txor\t$15,$13,$13\n\n\tsll\ta3,30,t12\n\taddl\tt11,t8,t8\n\txor\ta3,a4,ra\n\txor\t$5,$13,$13\n\n\tsrl\ta3,2,a3\n\taddl\t$12,t8,t8\n\txor\ta5,ra,ra\n\txor\t$10,$13,$13\n\n\tsrl\t$13,31,t11\n\taddl\tra,t8,t8\n\tsrl\tt9,27,t10\n\taddl\t$13,$13,$13\n\n\tor\tt12,a3,a3\n\taddl\tt10,t8,t8\n\tor\tt11,$13,$13\n\tzapnot\t$12,0xf,$12\n\tsll\tt8,5,t11\n\taddl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$0,$14,$14\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$6,$14,$14\n\n\tsrl\tt9,2,t9\n\taddl\t$13,a5,a5\n\txor\ta4,ra,ra\n\txor\t$11,$14,$14\n\n\tsrl\t$14,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$14,$14,$14\n\n\tor\tt12,t9,t9", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:53", "text": "addl\tAT,a5,a5\n\tzapnot\tt8,0xf,t8\n\txor\t$0,$14,$14\n\n\tsll\tt9,30,t12\n\taddl\tt11,a5,a5\n\txor\tt9,a3,ra\n\txor\t$6,$14,$14\n\n\tsrl\tt9,2,t9\n\taddl\t$13,a5,a5\n\txor\ta4,ra,ra\n\txor\t$11,$14,$14\n\n\tsrl\t$14,31,t11\n\taddl\tra,a5,a5\n\tsrl\tt8,27,t10\n\taddl\t$14,$14,$14\n\n\tor\tt12,t9,t9\n\taddl\tt10,a5,a5\n\tor\tt11,$14,$14\n\tsll\ta5,5,t11\n\taddl\tAT,a4,a4\n\tzapnot\ta5,0xf,a5\n\txor\t$1,$15,$15\n\n\tsll\tt8,30,t12\n\taddl\tt11,a4,a4\n\txor\tt8,t9,ra\n\txor\t$7,$15,$15\n\n\tsrl\tt8,2,t8\n\taddl\t$14,a4,a4\n\txor\ta3,ra,ra\n\txor\t$12,$15,$15\n\n\tsrl\t$15,31,t11\n\taddl\tra,a4,a4\n\tsrl\ta5,27,t10\n\taddl\t$15,$15,$15\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$15,$15\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\tldl\t$0,0(a0)\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\tldl\t$1,4(a0)\n\n\tsrl\ta5,2,a5\n\taddl\t$15,a3,a3\n\txor\tt9,ra,ra\n\tldl\t$2,8(a0)", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:54", "text": "addl\t$15,$15,$15\n\n\tor\tt12,t8,t8\n\taddl\tt10,a4,a4\n\tor\tt11,$15,$15\n\tsll\ta4,5,t11\n\taddl\tAT,a3,a3\n\tzapnot\ta4,0xf,a4\n\tldl\t$0,0(a0)\n\n\tsll\ta5,30,t12\n\taddl\tt11,a3,a3\n\txor\ta5,t8,ra\n\tldl\t$1,4(a0)\n\n\tsrl\ta5,2,a5\n\taddl\t$15,a3,a3\n\txor\tt9,ra,ra\n\tldl\t$2,8(a0)\n\n\tsrl\ta4,27,t10\n\taddl\tra,a3,a3\n\tldl\t$3,12(a0)\n\n\tor\tt12,a5,a5\n\taddl\tt10,a3,a3\n\tldl\t$4,16(a0)\n\taddl\t$0,a3,a3\n\taddl\t$1,a4,a4\n\taddl\t$2,a5,a5\n\taddl\t$3,t8,t8\n\taddl\t$4,t9,t9\n\tstl\ta3,0(a0)\n\tstl\ta4,4(a0)\n\taddq\ta1,64,a1\n\tstl\ta5,8(a0)\n\tstl\tt8,12(a0)\n\tstl\tt9,16(a0)\n\tcmpult\ta1,a2,t11\n\tbne\tt11,.Lloop\n\n\t.set\tnoreorder\n\tldq\tra,0(sp)\n\tldq\ts0,8(sp)\n\tldq\ts1,16(sp)\n\tldq\ts2,24(sp)\n\tldq\ts3,32(sp)\n\tldq\ts4,40(sp)\n\tldq\ts5,48(sp)\n\tldq\tfp,56(sp)\n\tlda\tsp,64(sp)\n\tret\t(ra)\n.end\tsha1_block_data_order\n.ascii\t\"SHA1 block transform for Alpha, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 2121, "line_end": 2175}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S:55", "text": ".set\tnoreorder\n\tldq\tra,0(sp)\n\tldq\ts0,8(sp)\n\tldq\ts1,16(sp)\n\tldq\ts2,24(sp)\n\tldq\ts3,32(sp)\n\tldq\ts4,40(sp)\n\tldq\ts5,48(sp)\n\tldq\tfp,56(sp)\n\tlda\tsp,64(sp)\n\tret\t(ra)\n.end\tsha1_block_data_order\n.ascii\t\"SHA1 block transform for Alpha, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t2", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/alpha/sha1-alpha.S", "line_start": 2161, "line_end": 2175}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:1", "text": "#include \"arm_asm.h\"\n@ Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.\n@\n@ Licensed under the Apache License 2.0 (the \"License\").  You may not use\n@ this file except in compliance with the License.  You can obtain a copy\n@ in the file LICENSE in the source distribution or at\n@ https://www.openssl.org/source/license.html\n\n\n@ ====================================================================\n@ Written by Andy Polyakov <appro@openssl.org> for the OpenSSL\n@ project. The module is, however, dual licensed under OpenSSL and\n@ CRYPTOGAMS licenses depending on where you obtain it. For further\n@ details see http://www.openssl.org/~appro/cryptogams/.\n@ ====================================================================\n\n@ AES for ARMv4\n\n@ January 2007.\n@\n@ Code uses single 1K S-box and is >2 times faster than code generated\n@ by gcc-3.4.1. This is thanks to unique feature of ARMv4 ISA, which\n@ allows to merge logical or arithmetic operation with shift or rotate\n@ in one instruction and emit combined result every cycle. The module\n@ is endian-neutral. The performance is ~42 cycles/byte for 128-bit\n@ key [on single-issue Xscale PXA250 core].\n\n@ May 2007.\n@\n@ AES_set_[en|de]crypt_key is added.\n\n@ July 2010.\n@\n@ Rescheduling for dual-issue pipeline resulted in 12% improvement on\n@ Cortex A8 core and ~25 cycles per byte processed with 128-bit key.\n\n@ February 2011.\n@\n@ Profiler-assisted and platform-specific optimization resulted in 16%\n@ improvement on Cortex A8 core and ~21.5 cycles per byte.\n\n@ $output is the last argument if it looks like a file (it has an extension)\n@ $flavour is the first argument if it doesn't look like a file\n#ifndef __KERNEL__\n# include \"arm_arch.h\"\n#else\n# define __ARM_ARCH__ __LINUX_ARM_ARCH__\n#endif\n\n#if defined(__thumb2__) && !defined(__APPLE__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#undef __thumb2__\n#endif\n\n.text\n\n.type\tAES_Te,%object", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:2", "text": "@ $output is the last argument if it looks like a file (it has an extension)\n@ $flavour is the first argument if it doesn't look like a file\n#ifndef __KERNEL__\n# include \"arm_arch.h\"\n#else\n# define __ARM_ARCH__ __LINUX_ARM_ARCH__\n#endif\n\n#if defined(__thumb2__) && !defined(__APPLE__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#undef __thumb2__\n#endif\n\n.text\n\n.type\tAES_Te,%object\n.align\t5\nAES_Te:\n.word\t0xc66363a5, 0xf87c7c84, 0xee777799, 0xf67b7b8d\n.word\t0xfff2f20d, 0xd66b6bbd, 0xde6f6fb1, 0x91c5c554\n.word\t0x60303050, 0x02010103, 0xce6767a9, 0x562b2b7d\n.word\t0xe7fefe19, 0xb5d7d762, 0x4dababe6, 0xec76769a\n.word\t0x8fcaca45, 0x1f82829d, 0x89c9c940, 0xfa7d7d87\n.word\t0xeffafa15, 0xb25959eb, 0x8e4747c9, 0xfbf0f00b\n.word\t0x41adadec, 0xb3d4d467, 0x5fa2a2fd, 0x45afafea\n.word\t0x239c9cbf, 0x53a4a4f7, 0xe4727296, 0x9bc0c05b\n.word\t0x75b7b7c2, 0xe1fdfd1c, 0x3d9393ae, 0x4c26266a\n.word\t0x6c36365a, 0x7e3f3f41, 0xf5f7f702, 0x83cccc4f\n.word\t0x6834345c, 0x51a5a5f4, 0xd1e5e534, 0xf9f1f108\n.word\t0xe2717193, 0xabd8d873, 0x62313153, 0x2a15153f\n.word\t0x0804040c, 0x95c7c752, 0x46232365, 0x9dc3c35e\n.word\t0x30181828, 0x379696a1, 0x0a05050f, 0x2f9a9ab5\n.word\t0x0e070709, 0x24121236, 0x1b80809b, 0xdfe2e23d\n.word\t0xcdebeb26, 0x4e272769, 0x7fb2b2cd, 0xea75759f\n.word\t0x1209091b, 0x1d83839e, 0x582c2c74, 0x341a1a2e\n.word\t0x361b1b2d, 0xdc6e6eb2, 0xb45a5aee, 0x5ba0a0fb\n.word\t0xa45252f6, 0x763b3b4d, 0xb7d6d661, 0x7db3b3ce\n.word\t0x5229297b, 0xdde3e33e, 0x5e2f2f71, 0x13848497\n.word\t0xa65353f5, 0xb9d1d168, 0x00000000, 0xc1eded2c\n.word\t0x40202060, 0xe3fcfc1f, 0x79b1b1c8, 0xb65b5bed\n.word\t0xd46a6abe, 0x8dcbcb46, 0x67bebed9, 0x7239394b\n.word\t0x944a4ade, 0x984c4cd4, 0xb05858e8, 0x85cfcf4a\n.word\t0xbbd0d06b, 0xc5efef2a, 0x4faaaae5, 0xedfbfb16\n.word\t0x864343c5, 0x9a4d4dd7, 0x66333355, 0x11858594\n.word\t0x8a4545cf, 0xe9f9f910, 0x04020206, 0xfe7f7f81\n.word\t0xa05050f0, 0x783c3c44, 0x259f9fba, 0x4ba8a8e3\n.word\t0xa25151f3, 0x5da3a3fe, 0x804040c0, 0x058f8f8a\n.word\t0x3f9292ad, 0x219d9dbc, 0x70383848, 0xf1f5f504\n.word\t0x63bcbcdf, 0x77b6b6c1, 0xafdada75, 0x42212163\n.word\t0x20101030, 0xe5ffff1a, 0xfdf3f30e, 0xbfd2d26d\n.word\t0x81cdcd4c, 0x180c0c14, 0x26131335, 0xc3ecec2f\n.word\t0xbe5f5fe1, 0x359797a2, 0x884444cc, 0x2e171739\n.word\t0x93c4c457, 0x55a7a7f2, 0xfc7e7e82, 0x7a3d3d47\n.word\t0xc86464ac, 0xba5d5de7, 0x3219192b, 0xe6737395\n.word\t0xc06060a0, 0x19818198, 0x9e4f4fd1, 0xa3dcdc7f\n.word\t0x44222266, 0x542a2a7e, 0x3b9090ab, 0x0b888883", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:3", "text": ".word\t0xa45252f6, 0x763b3b4d, 0xb7d6d661, 0x7db3b3ce\n.word\t0x5229297b, 0xdde3e33e, 0x5e2f2f71, 0x13848497\n.word\t0xa65353f5, 0xb9d1d168, 0x00000000, 0xc1eded2c\n.word\t0x40202060, 0xe3fcfc1f, 0x79b1b1c8, 0xb65b5bed\n.word\t0xd46a6abe, 0x8dcbcb46, 0x67bebed9, 0x7239394b\n.word\t0x944a4ade, 0x984c4cd4, 0xb05858e8, 0x85cfcf4a\n.word\t0xbbd0d06b, 0xc5efef2a, 0x4faaaae5, 0xedfbfb16\n.word\t0x864343c5, 0x9a4d4dd7, 0x66333355, 0x11858594\n.word\t0x8a4545cf, 0xe9f9f910, 0x04020206, 0xfe7f7f81\n.word\t0xa05050f0, 0x783c3c44, 0x259f9fba, 0x4ba8a8e3\n.word\t0xa25151f3, 0x5da3a3fe, 0x804040c0, 0x058f8f8a\n.word\t0x3f9292ad, 0x219d9dbc, 0x70383848, 0xf1f5f504\n.word\t0x63bcbcdf, 0x77b6b6c1, 0xafdada75, 0x42212163\n.word\t0x20101030, 0xe5ffff1a, 0xfdf3f30e, 0xbfd2d26d\n.word\t0x81cdcd4c, 0x180c0c14, 0x26131335, 0xc3ecec2f\n.word\t0xbe5f5fe1, 0x359797a2, 0x884444cc, 0x2e171739\n.word\t0x93c4c457, 0x55a7a7f2, 0xfc7e7e82, 0x7a3d3d47\n.word\t0xc86464ac, 0xba5d5de7, 0x3219192b, 0xe6737395\n.word\t0xc06060a0, 0x19818198, 0x9e4f4fd1, 0xa3dcdc7f\n.word\t0x44222266, 0x542a2a7e, 0x3b9090ab, 0x0b888883\n.word\t0x8c4646ca, 0xc7eeee29, 0x6bb8b8d3, 0x2814143c\n.word\t0xa7dede79, 0xbc5e5ee2, 0x160b0b1d, 0xaddbdb76\n.word\t0xdbe0e03b, 0x64323256, 0x743a3a4e, 0x140a0a1e\n.word\t0x924949db, 0x0c06060a, 0x4824246c, 0xb85c5ce4\n.word\t0x9fc2c25d, 0xbdd3d36e, 0x43acacef, 0xc46262a6\n.word\t0x399191a8, 0x319595a4, 0xd3e4e437, 0xf279798b\n.word\t0xd5e7e732, 0x8bc8c843, 0x6e373759, 0xda6d6db7\n.word\t0x018d8d8c, 0xb1d5d564, 0x9c4e4ed2, 0x49a9a9e0\n.word\t0xd86c6cb4, 0xac5656fa, 0xf3f4f407, 0xcfeaea25\n.word\t0xca6565af, 0xf47a7a8e, 0x47aeaee9, 0x10080818\n.word\t0x6fbabad5, 0xf0787888, 0x4a25256f, 0x5c2e2e72\n.word\t0x381c1c24, 0x57a6a6f1, 0x73b4b4c7, 0x97c6c651\n.word\t0xcbe8e823, 0xa1dddd7c, 0xe874749c, 0x3e1f1f21\n.word\t0x964b4bdd, 0x61bdbddc, 0x0d8b8b86, 0x0f8a8a85\n.word\t0xe0707090, 0x7c3e3e42, 0x71b5b5c4, 0xcc6666aa\n.word\t0x904848d8, 0x06030305, 0xf7f6f601, 0x1c0e0e12\n.word\t0xc26161a3, 0x6a35355f, 0xae5757f9, 0x69b9b9d0\n.word\t0x17868691, 0x99c1c158, 0x3a1d1d27, 0x279e9eb9\n.word\t0xd9e1e138, 0xebf8f813, 0x2b9898b3, 0x22111133\n.word\t0xd26969bb, 0xa9d9d970, 0x078e8e89, 0x339494a7\n.word\t0x2d9b9bb6, 0x3c1e1e22, 0x15878792, 0xc9e9e920\n.word\t0x87cece49, 0xaa5555ff, 0x50282878, 0xa5dfdf7a\n.word\t0x038c8c8f, 0x59a1a1f8, 0x09898980, 0x1a0d0d17\n.word\t0x65bfbfda, 0xd7e6e631, 0x844242c6, 0xd06868b8\n.word\t0x824141c3, 0x299999b0, 0x5a2d2d77, 0x1e0f0f11\n.word\t0x7bb0b0cb, 0xa85454fc, 0x6dbbbbd6, 0x2c16163a\n@ Te4[256]\n.byte\t0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5\n.byte\t0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76\n.byte\t0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0\n.byte\t0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0\n.byte\t0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc\n.byte\t0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15\n.byte\t0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a\n.byte\t0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75\n.byte\t0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0\n.byte\t0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84\n.byte\t0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b\n.byte\t0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf\n.byte\t0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:4", "text": ".word\t0x2d9b9bb6, 0x3c1e1e22, 0x15878792, 0xc9e9e920\n.word\t0x87cece49, 0xaa5555ff, 0x50282878, 0xa5dfdf7a\n.word\t0x038c8c8f, 0x59a1a1f8, 0x09898980, 0x1a0d0d17\n.word\t0x65bfbfda, 0xd7e6e631, 0x844242c6, 0xd06868b8\n.word\t0x824141c3, 0x299999b0, 0x5a2d2d77, 0x1e0f0f11\n.word\t0x7bb0b0cb, 0xa85454fc, 0x6dbbbbd6, 0x2c16163a\n@ Te4[256]\n.byte\t0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5\n.byte\t0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76\n.byte\t0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0\n.byte\t0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0\n.byte\t0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc\n.byte\t0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15\n.byte\t0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a\n.byte\t0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75\n.byte\t0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0\n.byte\t0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84\n.byte\t0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b\n.byte\t0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf\n.byte\t0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85\n.byte\t0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8\n.byte\t0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5\n.byte\t0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2\n.byte\t0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17\n.byte\t0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73\n.byte\t0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88\n.byte\t0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb\n.byte\t0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c\n.byte\t0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79\n.byte\t0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9\n.byte\t0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08\n.byte\t0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6\n.byte\t0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a\n.byte\t0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e\n.byte\t0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e\n.byte\t0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94\n.byte\t0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf\n.byte\t0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68\n.byte\t0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16\n@ rcon[]\n.word\t0x01000000, 0x02000000, 0x04000000, 0x08000000\n.word\t0x10000000, 0x20000000, 0x40000000, 0x80000000\n.word\t0x1B000000, 0x36000000, 0, 0, 0, 0, 0, 0\n.size\tAES_Te,.-AES_Te\n\n@ void AES_encrypt(const unsigned char *in, unsigned char *out,\n@ \t\t const AES_KEY *key) {\n.globl\tAES_encrypt\n.type\tAES_encrypt,%function\n.align\t5\nAES_encrypt:\n#ifndef\t__thumb2__\n\tsub\tr3,pc,#8\t\t@ AES_encrypt\n#else\n\tadr\tr3,.\n#endif\n\tstmdb\tsp!,{r1,r4-r12,lr}\n#if defined(__thumb2__) || defined(__APPLE__)\n\tadr\tr10,AES_Te\n#else", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:5", "text": ".word\t0x01000000, 0x02000000, 0x04000000, 0x08000000\n.word\t0x10000000, 0x20000000, 0x40000000, 0x80000000\n.word\t0x1B000000, 0x36000000, 0, 0, 0, 0, 0, 0\n.size\tAES_Te,.-AES_Te\n\n@ void AES_encrypt(const unsigned char *in, unsigned char *out,\n@ \t\t const AES_KEY *key) {\n.globl\tAES_encrypt\n.type\tAES_encrypt,%function\n.align\t5\nAES_encrypt:\n#ifndef\t__thumb2__\n\tsub\tr3,pc,#8\t\t@ AES_encrypt\n#else\n\tadr\tr3,.\n#endif\n\tstmdb\tsp!,{r1,r4-r12,lr}\n#if defined(__thumb2__) || defined(__APPLE__)\n\tadr\tr10,AES_Te\n#else\n\tsub\tr10,r3,#AES_encrypt-AES_Te\t@ Te\n#endif\n\tmov\tr12,r0\t\t@ inp\n\tmov\tr11,r2\n#if __ARM_ARCH__<7\n\tldrb\tr0,[r12,#3]\t@ load input data in endian-neutral\n\tldrb\tr4,[r12,#2]\t@ manner...\n\tldrb\tr5,[r12,#1]\n\tldrb\tr6,[r12,#0]\n\torr\tr0,r0,r4,lsl#8\n\tldrb\tr1,[r12,#7]\n\torr\tr0,r0,r5,lsl#16\n\tldrb\tr4,[r12,#6]\n\torr\tr0,r0,r6,lsl#24\n\tldrb\tr5,[r12,#5]\n\tldrb\tr6,[r12,#4]\n\torr\tr1,r1,r4,lsl#8\n\tldrb\tr2,[r12,#11]\n\torr\tr1,r1,r5,lsl#16\n\tldrb\tr4,[r12,#10]\n\torr\tr1,r1,r6,lsl#24\n\tldrb\tr5,[r12,#9]\n\tldrb\tr6,[r12,#8]\n\torr\tr2,r2,r4,lsl#8\n\tldrb\tr3,[r12,#15]\n\torr\tr2,r2,r5,lsl#16\n\tldrb\tr4,[r12,#14]\n\torr\tr2,r2,r6,lsl#24\n\tldrb\tr5,[r12,#13]\n\tldrb\tr6,[r12,#12]\n\torr\tr3,r3,r4,lsl#8\n\torr\tr3,r3,r5,lsl#16\n\torr\tr3,r3,r6,lsl#24\n#else\n\tldr\tr0,[r12,#0]\n\tldr\tr1,[r12,#4]\n\tldr\tr2,[r12,#8]\n\tldr\tr3,[r12,#12]\n#ifdef __ARMEL__\n\trev\tr0,r0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:6", "text": "orr\tr1,r1,r6,lsl#24\n\tldrb\tr5,[r12,#9]\n\tldrb\tr6,[r12,#8]\n\torr\tr2,r2,r4,lsl#8\n\tldrb\tr3,[r12,#15]\n\torr\tr2,r2,r5,lsl#16\n\tldrb\tr4,[r12,#14]\n\torr\tr2,r2,r6,lsl#24\n\tldrb\tr5,[r12,#13]\n\tldrb\tr6,[r12,#12]\n\torr\tr3,r3,r4,lsl#8\n\torr\tr3,r3,r5,lsl#16\n\torr\tr3,r3,r6,lsl#24\n#else\n\tldr\tr0,[r12,#0]\n\tldr\tr1,[r12,#4]\n\tldr\tr2,[r12,#8]\n\tldr\tr3,[r12,#12]\n#ifdef __ARMEL__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n#endif\n#endif\n\tbl\t_armv4_AES_encrypt\n\n\tldr\tr12,[sp],#4\t\t@ pop out\n#if __ARM_ARCH__>=7\n#ifdef __ARMEL__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n#endif\n\tstr\tr0,[r12,#0]\n\tstr\tr1,[r12,#4]\n\tstr\tr2,[r12,#8]\n\tstr\tr3,[r12,#12]\n#else\n\tmov\tr4,r0,lsr#24\t\t@ write output in endian-neutral\n\tmov\tr5,r0,lsr#16\t\t@ manner...\n\tmov\tr6,r0,lsr#8\n\tstrb\tr4,[r12,#0]\n\tstrb\tr5,[r12,#1]\n\tmov\tr4,r1,lsr#24\n\tstrb\tr6,[r12,#2]\n\tmov\tr5,r1,lsr#16\n\tstrb\tr0,[r12,#3]\n\tmov\tr6,r1,lsr#8\n\tstrb\tr4,[r12,#4]\n\tstrb\tr5,[r12,#5]\n\tmov\tr4,r2,lsr#24\n\tstrb\tr6,[r12,#6]\n\tmov\tr5,r2,lsr#16\n\tstrb\tr1,[r12,#7]\n\tmov\tr6,r2,lsr#8\n\tstrb\tr4,[r12,#8]\n\tstrb\tr5,[r12,#9]\n\tmov\tr4,r3,lsr#24", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:7", "text": "mov\tr4,r0,lsr#24\t\t@ write output in endian-neutral\n\tmov\tr5,r0,lsr#16\t\t@ manner...\n\tmov\tr6,r0,lsr#8\n\tstrb\tr4,[r12,#0]\n\tstrb\tr5,[r12,#1]\n\tmov\tr4,r1,lsr#24\n\tstrb\tr6,[r12,#2]\n\tmov\tr5,r1,lsr#16\n\tstrb\tr0,[r12,#3]\n\tmov\tr6,r1,lsr#8\n\tstrb\tr4,[r12,#4]\n\tstrb\tr5,[r12,#5]\n\tmov\tr4,r2,lsr#24\n\tstrb\tr6,[r12,#6]\n\tmov\tr5,r2,lsr#16\n\tstrb\tr1,[r12,#7]\n\tmov\tr6,r2,lsr#8\n\tstrb\tr4,[r12,#8]\n\tstrb\tr5,[r12,#9]\n\tmov\tr4,r3,lsr#24\n\tstrb\tr6,[r12,#10]\n\tmov\tr5,r3,lsr#16\n\tstrb\tr2,[r12,#11]\n\tmov\tr6,r3,lsr#8\n\tstrb\tr4,[r12,#12]\n\tstrb\tr5,[r12,#13]\n\tstrb\tr6,[r12,#14]\n\tstrb\tr3,[r12,#15]\n#endif\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tAES_encrypt,.-AES_encrypt\n\n.type\t_armv4_AES_encrypt,%function\n.align\t2\n_armv4_AES_encrypt:\n\tstr\tlr,[sp,#-4]!\t\t@ push lr\n\tldmia\tr11!,{r4,r5,r6,r7}\n\teor\tr0,r0,r4\n\tldr\tr12,[r11,#240-16]\n\teor\tr1,r1,r5\n\teor\tr2,r2,r6\n\teor\tr3,r3,r7\n\tsub\tr12,r12,#1\n\tmov\tlr,#255\n\n\tand\tr7,lr,r0\n\tand\tr8,lr,r0,lsr#8\n\tand\tr9,lr,r0,lsr#16\n\tmov\tr0,r0,lsr#24\n.Lenc_loop:\n\tldr\tr4,[r10,r7,lsl#2]\t@ Te3[s0>>0]\n\tand\tr7,lr,r1,lsr#16\t@ i0\n\tldr\tr5,[r10,r8,lsl#2]\t@ Te2[s0>>8]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:8", "text": ".align\t2\n_armv4_AES_encrypt:\n\tstr\tlr,[sp,#-4]!\t\t@ push lr\n\tldmia\tr11!,{r4,r5,r6,r7}\n\teor\tr0,r0,r4\n\tldr\tr12,[r11,#240-16]\n\teor\tr1,r1,r5\n\teor\tr2,r2,r6\n\teor\tr3,r3,r7\n\tsub\tr12,r12,#1\n\tmov\tlr,#255\n\n\tand\tr7,lr,r0\n\tand\tr8,lr,r0,lsr#8\n\tand\tr9,lr,r0,lsr#16\n\tmov\tr0,r0,lsr#24\n.Lenc_loop:\n\tldr\tr4,[r10,r7,lsl#2]\t@ Te3[s0>>0]\n\tand\tr7,lr,r1,lsr#16\t@ i0\n\tldr\tr5,[r10,r8,lsl#2]\t@ Te2[s0>>8]\n\tand\tr8,lr,r1\n\tldr\tr6,[r10,r9,lsl#2]\t@ Te1[s0>>16]\n\tand\tr9,lr,r1,lsr#8\n\tldr\tr0,[r10,r0,lsl#2]\t@ Te0[s0>>24]\n\tmov\tr1,r1,lsr#24\n\n\tldr\tr7,[r10,r7,lsl#2]\t@ Te1[s1>>16]\n\tldr\tr8,[r10,r8,lsl#2]\t@ Te3[s1>>0]\n\tldr\tr9,[r10,r9,lsl#2]\t@ Te2[s1>>8]\n\teor\tr0,r0,r7,ror#8\n\tldr\tr1,[r10,r1,lsl#2]\t@ Te0[s1>>24]\n\tand\tr7,lr,r2,lsr#8\t@ i0\n\teor\tr5,r5,r8,ror#8\n\tand\tr8,lr,r2,lsr#16\t@ i1\n\teor\tr6,r6,r9,ror#8\n\tand\tr9,lr,r2\n\tldr\tr7,[r10,r7,lsl#2]\t@ Te2[s2>>8]\n\teor\tr1,r1,r4,ror#24\n\tldr\tr8,[r10,r8,lsl#2]\t@ Te1[s2>>16]\n\tmov\tr2,r2,lsr#24\n\n\tldr\tr9,[r10,r9,lsl#2]\t@ Te3[s2>>0]\n\teor\tr0,r0,r7,ror#16\n\tldr\tr2,[r10,r2,lsl#2]\t@ Te0[s2>>24]\n\tand\tr7,lr,r3\t\t@ i0\n\teor\tr1,r1,r8,ror#8\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\teor\tr6,r6,r9,ror#16\n\tand\tr9,lr,r3,lsr#16\t@ i2\n\tldr\tr7,[r10,r7,lsl#2]\t@ Te3[s3>>0]\n\teor\tr2,r2,r5,ror#16\n\tldr\tr8,[r10,r8,lsl#2]\t@ Te2[s3>>8]\n\tmov\tr3,r3,lsr#24\n\n\tldr\tr9,[r10,r9,lsl#2]\t@ Te1[s3>>16]\n\teor\tr0,r0,r7,ror#24\n\tldr\tr7,[r11],#16\n\teor\tr1,r1,r8,ror#16\n\tldr\tr3,[r10,r3,lsl#2]\t@ Te0[s3>>24]\n\teor\tr2,r2,r9,ror#8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:9", "text": "ldr\tr9,[r10,r9,lsl#2]\t@ Te3[s2>>0]\n\teor\tr0,r0,r7,ror#16\n\tldr\tr2,[r10,r2,lsl#2]\t@ Te0[s2>>24]\n\tand\tr7,lr,r3\t\t@ i0\n\teor\tr1,r1,r8,ror#8\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\teor\tr6,r6,r9,ror#16\n\tand\tr9,lr,r3,lsr#16\t@ i2\n\tldr\tr7,[r10,r7,lsl#2]\t@ Te3[s3>>0]\n\teor\tr2,r2,r5,ror#16\n\tldr\tr8,[r10,r8,lsl#2]\t@ Te2[s3>>8]\n\tmov\tr3,r3,lsr#24\n\n\tldr\tr9,[r10,r9,lsl#2]\t@ Te1[s3>>16]\n\teor\tr0,r0,r7,ror#24\n\tldr\tr7,[r11],#16\n\teor\tr1,r1,r8,ror#16\n\tldr\tr3,[r10,r3,lsl#2]\t@ Te0[s3>>24]\n\teor\tr2,r2,r9,ror#8\n\tldr\tr4,[r11,#-12]\n\teor\tr3,r3,r6,ror#8\n\n\tldr\tr5,[r11,#-8]\n\teor\tr0,r0,r7\n\tldr\tr6,[r11,#-4]\n\tand\tr7,lr,r0\n\teor\tr1,r1,r4\n\tand\tr8,lr,r0,lsr#8\n\teor\tr2,r2,r5\n\tand\tr9,lr,r0,lsr#16\n\teor\tr3,r3,r6\n\tmov\tr0,r0,lsr#24\n\n\tsubs\tr12,r12,#1\n\tbne\t.Lenc_loop\n\n\tadd\tr10,r10,#2\n\n\tldrb\tr4,[r10,r7,lsl#2]\t@ Te4[s0>>0]\n\tand\tr7,lr,r1,lsr#16\t@ i0\n\tldrb\tr5,[r10,r8,lsl#2]\t@ Te4[s0>>8]\n\tand\tr8,lr,r1\n\tldrb\tr6,[r10,r9,lsl#2]\t@ Te4[s0>>16]\n\tand\tr9,lr,r1,lsr#8\n\tldrb\tr0,[r10,r0,lsl#2]\t@ Te4[s0>>24]\n\tmov\tr1,r1,lsr#24\n\n\tldrb\tr7,[r10,r7,lsl#2]\t@ Te4[s1>>16]\n\tldrb\tr8,[r10,r8,lsl#2]\t@ Te4[s1>>0]\n\tldrb\tr9,[r10,r9,lsl#2]\t@ Te4[s1>>8]\n\teor\tr0,r7,r0,lsl#8\n\tldrb\tr1,[r10,r1,lsl#2]\t@ Te4[s1>>24]\n\tand\tr7,lr,r2,lsr#8\t@ i0\n\teor\tr5,r8,r5,lsl#8\n\tand\tr8,lr,r2,lsr#16\t@ i1\n\teor\tr6,r9,r6,lsl#8\n\tand\tr9,lr,r2\n\tldrb\tr7,[r10,r7,lsl#2]\t@ Te4[s2>>8]\n\teor\tr1,r4,r1,lsl#24", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:10", "text": "and\tr7,lr,r1,lsr#16\t@ i0\n\tldrb\tr5,[r10,r8,lsl#2]\t@ Te4[s0>>8]\n\tand\tr8,lr,r1\n\tldrb\tr6,[r10,r9,lsl#2]\t@ Te4[s0>>16]\n\tand\tr9,lr,r1,lsr#8\n\tldrb\tr0,[r10,r0,lsl#2]\t@ Te4[s0>>24]\n\tmov\tr1,r1,lsr#24\n\n\tldrb\tr7,[r10,r7,lsl#2]\t@ Te4[s1>>16]\n\tldrb\tr8,[r10,r8,lsl#2]\t@ Te4[s1>>0]\n\tldrb\tr9,[r10,r9,lsl#2]\t@ Te4[s1>>8]\n\teor\tr0,r7,r0,lsl#8\n\tldrb\tr1,[r10,r1,lsl#2]\t@ Te4[s1>>24]\n\tand\tr7,lr,r2,lsr#8\t@ i0\n\teor\tr5,r8,r5,lsl#8\n\tand\tr8,lr,r2,lsr#16\t@ i1\n\teor\tr6,r9,r6,lsl#8\n\tand\tr9,lr,r2\n\tldrb\tr7,[r10,r7,lsl#2]\t@ Te4[s2>>8]\n\teor\tr1,r4,r1,lsl#24\n\tldrb\tr8,[r10,r8,lsl#2]\t@ Te4[s2>>16]\n\tmov\tr2,r2,lsr#24\n\n\tldrb\tr9,[r10,r9,lsl#2]\t@ Te4[s2>>0]\n\teor\tr0,r7,r0,lsl#8\n\tldrb\tr2,[r10,r2,lsl#2]\t@ Te4[s2>>24]\n\tand\tr7,lr,r3\t\t@ i0\n\teor\tr1,r1,r8,lsl#16\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\teor\tr6,r9,r6,lsl#8\n\tand\tr9,lr,r3,lsr#16\t@ i2\n\tldrb\tr7,[r10,r7,lsl#2]\t@ Te4[s3>>0]\n\teor\tr2,r5,r2,lsl#24\n\tldrb\tr8,[r10,r8,lsl#2]\t@ Te4[s3>>8]\n\tmov\tr3,r3,lsr#24\n\n\tldrb\tr9,[r10,r9,lsl#2]\t@ Te4[s3>>16]\n\teor\tr0,r7,r0,lsl#8\n\tldr\tr7,[r11,#0]\n\tldrb\tr3,[r10,r3,lsl#2]\t@ Te4[s3>>24]\n\teor\tr1,r1,r8,lsl#8\n\tldr\tr4,[r11,#4]\n\teor\tr2,r2,r9,lsl#16\n\tldr\tr5,[r11,#8]\n\teor\tr3,r6,r3,lsl#24\n\tldr\tr6,[r11,#12]\n\n\teor\tr0,r0,r7\n\teor\tr1,r1,r4\n\teor\tr2,r2,r5\n\teor\tr3,r3,r6\n\n\tsub\tr10,r10,#2\n\tldr\tpc,[sp],#4\t\t@ pop and return\n.size\t_armv4_AES_encrypt,.-_armv4_AES_encrypt\n\n.globl\tAES_set_encrypt_key\n.type\tAES_set_encrypt_key,%function\n.align\t5\nAES_set_encrypt_key:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:11", "text": "eor\tr1,r1,r8,lsl#8\n\tldr\tr4,[r11,#4]\n\teor\tr2,r2,r9,lsl#16\n\tldr\tr5,[r11,#8]\n\teor\tr3,r6,r3,lsl#24\n\tldr\tr6,[r11,#12]\n\n\teor\tr0,r0,r7\n\teor\tr1,r1,r4\n\teor\tr2,r2,r5\n\teor\tr3,r3,r6\n\n\tsub\tr10,r10,#2\n\tldr\tpc,[sp],#4\t\t@ pop and return\n.size\t_armv4_AES_encrypt,.-_armv4_AES_encrypt\n\n.globl\tAES_set_encrypt_key\n.type\tAES_set_encrypt_key,%function\n.align\t5\nAES_set_encrypt_key:\n_armv4_AES_set_encrypt_key:\n#ifndef\t__thumb2__\n\tsub\tr3,pc,#8\t\t@ AES_set_encrypt_key\n#else\n\tadr\tr3,.\n#endif\n\tteq\tr0,#0\n#ifdef\t__thumb2__\n\titt\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tmoveq\tr0,#-1\n\tbeq\t.Labrt\n\tteq\tr2,#0\n#ifdef\t__thumb2__\n\titt\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tmoveq\tr0,#-1\n\tbeq\t.Labrt\n\n\tteq\tr1,#128\n\tbeq\t.Lok\n\tteq\tr1,#192\n\tbeq\t.Lok\n\tteq\tr1,#256\n#ifdef\t__thumb2__\n\titt\tne\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tmovne\tr0,#-1\n\tbne\t.Labrt\n\n.Lok:\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\tmov\tr12,r0\t\t@ inp\n\tmov\tlr,r1\t\t\t@ bits\n\tmov\tr11,r2\t\t\t@ key\n\n#if defined(__thumb2__) || defined(__APPLE__)\n\tadr\tr10,AES_Te+1024\t\t\t\t@ Te4\n#else\n\tsub\tr10,r3,#_armv4_AES_set_encrypt_key-AES_Te-1024\t@ Te4\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:12", "text": "beq\t.Lok\n\tteq\tr1,#192\n\tbeq\t.Lok\n\tteq\tr1,#256\n#ifdef\t__thumb2__\n\titt\tne\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tmovne\tr0,#-1\n\tbne\t.Labrt\n\n.Lok:\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\tmov\tr12,r0\t\t@ inp\n\tmov\tlr,r1\t\t\t@ bits\n\tmov\tr11,r2\t\t\t@ key\n\n#if defined(__thumb2__) || defined(__APPLE__)\n\tadr\tr10,AES_Te+1024\t\t\t\t@ Te4\n#else\n\tsub\tr10,r3,#_armv4_AES_set_encrypt_key-AES_Te-1024\t@ Te4\n#endif\n\n#if __ARM_ARCH__<7\n\tldrb\tr0,[r12,#3]\t@ load input data in endian-neutral\n\tldrb\tr4,[r12,#2]\t@ manner...\n\tldrb\tr5,[r12,#1]\n\tldrb\tr6,[r12,#0]\n\torr\tr0,r0,r4,lsl#8\n\tldrb\tr1,[r12,#7]\n\torr\tr0,r0,r5,lsl#16\n\tldrb\tr4,[r12,#6]\n\torr\tr0,r0,r6,lsl#24\n\tldrb\tr5,[r12,#5]\n\tldrb\tr6,[r12,#4]\n\torr\tr1,r1,r4,lsl#8\n\tldrb\tr2,[r12,#11]\n\torr\tr1,r1,r5,lsl#16\n\tldrb\tr4,[r12,#10]\n\torr\tr1,r1,r6,lsl#24\n\tldrb\tr5,[r12,#9]\n\tldrb\tr6,[r12,#8]\n\torr\tr2,r2,r4,lsl#8\n\tldrb\tr3,[r12,#15]\n\torr\tr2,r2,r5,lsl#16\n\tldrb\tr4,[r12,#14]\n\torr\tr2,r2,r6,lsl#24\n\tldrb\tr5,[r12,#13]\n\tldrb\tr6,[r12,#12]\n\torr\tr3,r3,r4,lsl#8\n\tstr\tr0,[r11],#16\n\torr\tr3,r3,r5,lsl#16\n\tstr\tr1,[r11,#-12]\n\torr\tr3,r3,r6,lsl#24\n\tstr\tr2,[r11,#-8]\n\tstr\tr3,[r11,#-4]\n#else\n\tldr\tr0,[r12,#0]\n\tldr\tr1,[r12,#4]\n\tldr\tr2,[r12,#8]\n\tldr\tr3,[r12,#12]\n#ifdef __ARMEL__", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:13", "text": "orr\tr2,r2,r4,lsl#8\n\tldrb\tr3,[r12,#15]\n\torr\tr2,r2,r5,lsl#16\n\tldrb\tr4,[r12,#14]\n\torr\tr2,r2,r6,lsl#24\n\tldrb\tr5,[r12,#13]\n\tldrb\tr6,[r12,#12]\n\torr\tr3,r3,r4,lsl#8\n\tstr\tr0,[r11],#16\n\torr\tr3,r3,r5,lsl#16\n\tstr\tr1,[r11,#-12]\n\torr\tr3,r3,r6,lsl#24\n\tstr\tr2,[r11,#-8]\n\tstr\tr3,[r11,#-4]\n#else\n\tldr\tr0,[r12,#0]\n\tldr\tr1,[r12,#4]\n\tldr\tr2,[r12,#8]\n\tldr\tr3,[r12,#12]\n#ifdef __ARMEL__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n#endif\n\tstr\tr0,[r11],#16\n\tstr\tr1,[r11,#-12]\n\tstr\tr2,[r11,#-8]\n\tstr\tr3,[r11,#-4]\n#endif\n\n\tteq\tlr,#128\n\tbne\t.Lnot128\n\tmov\tr12,#10\n\tstr\tr12,[r11,#240-16]\n\tadd\tr6,r10,#256\t\t\t@ rcon\n\tmov\tlr,#255\n\n.L128_loop:\n\tand\tr5,lr,r3,lsr#24\n\tand\tr7,lr,r3,lsr#16\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r3,lsr#8\n\tldrb\tr7,[r10,r7]\n\tand\tr9,lr,r3\n\tldrb\tr8,[r10,r8]\n\torr\tr5,r5,r7,lsl#24\n\tldrb\tr9,[r10,r9]\n\torr\tr5,r5,r8,lsl#16\n\tldr\tr4,[r6],#4\t\t\t@ rcon[i++]\n\torr\tr5,r5,r9,lsl#8\n\teor\tr5,r5,r4\n\teor\tr0,r0,r5\t\t\t@ rk[4]=rk[0]^...\n\teor\tr1,r1,r0\t\t\t@ rk[5]=rk[1]^rk[4]\n\tstr\tr0,[r11],#16\n\teor\tr2,r2,r1\t\t\t@ rk[6]=rk[2]^rk[5]\n\tstr\tr1,[r11,#-12]\n\teor\tr3,r3,r2\t\t\t@ rk[7]=rk[3]^rk[6]\n\tstr\tr2,[r11,#-8]\n\tsubs\tr12,r12,#1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:14", "text": "and\tr7,lr,r3,lsr#16\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r3,lsr#8\n\tldrb\tr7,[r10,r7]\n\tand\tr9,lr,r3\n\tldrb\tr8,[r10,r8]\n\torr\tr5,r5,r7,lsl#24\n\tldrb\tr9,[r10,r9]\n\torr\tr5,r5,r8,lsl#16\n\tldr\tr4,[r6],#4\t\t\t@ rcon[i++]\n\torr\tr5,r5,r9,lsl#8\n\teor\tr5,r5,r4\n\teor\tr0,r0,r5\t\t\t@ rk[4]=rk[0]^...\n\teor\tr1,r1,r0\t\t\t@ rk[5]=rk[1]^rk[4]\n\tstr\tr0,[r11],#16\n\teor\tr2,r2,r1\t\t\t@ rk[6]=rk[2]^rk[5]\n\tstr\tr1,[r11,#-12]\n\teor\tr3,r3,r2\t\t\t@ rk[7]=rk[3]^rk[6]\n\tstr\tr2,[r11,#-8]\n\tsubs\tr12,r12,#1\n\tstr\tr3,[r11,#-4]\n\tbne\t.L128_loop\n\tsub\tr2,r11,#176\n\tb\t.Ldone\n\n.Lnot128:\n#if __ARM_ARCH__<7\n\tldrb\tr8,[r12,#19]\n\tldrb\tr4,[r12,#18]\n\tldrb\tr5,[r12,#17]\n\tldrb\tr6,[r12,#16]\n\torr\tr8,r8,r4,lsl#8\n\tldrb\tr9,[r12,#23]\n\torr\tr8,r8,r5,lsl#16\n\tldrb\tr4,[r12,#22]\n\torr\tr8,r8,r6,lsl#24\n\tldrb\tr5,[r12,#21]\n\tldrb\tr6,[r12,#20]\n\torr\tr9,r9,r4,lsl#8\n\torr\tr9,r9,r5,lsl#16\n\tstr\tr8,[r11],#8\n\torr\tr9,r9,r6,lsl#24\n\tstr\tr9,[r11,#-4]\n#else\n\tldr\tr8,[r12,#16]\n\tldr\tr9,[r12,#20]\n#ifdef __ARMEL__\n\trev\tr8,r8\n\trev\tr9,r9\n#endif\n\tstr\tr8,[r11],#8\n\tstr\tr9,[r11,#-4]\n#endif\n\n\tteq\tlr,#192\n\tbne\t.Lnot192\n\tmov\tr12,#12\n\tstr\tr12,[r11,#240-24]\n\tadd\tr6,r10,#256\t\t\t@ rcon\n\tmov\tlr,#255", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:15", "text": "str\tr8,[r11],#8\n\torr\tr9,r9,r6,lsl#24\n\tstr\tr9,[r11,#-4]\n#else\n\tldr\tr8,[r12,#16]\n\tldr\tr9,[r12,#20]\n#ifdef __ARMEL__\n\trev\tr8,r8\n\trev\tr9,r9\n#endif\n\tstr\tr8,[r11],#8\n\tstr\tr9,[r11,#-4]\n#endif\n\n\tteq\tlr,#192\n\tbne\t.Lnot192\n\tmov\tr12,#12\n\tstr\tr12,[r11,#240-24]\n\tadd\tr6,r10,#256\t\t\t@ rcon\n\tmov\tlr,#255\n\tmov\tr12,#8\n\n.L192_loop:\n\tand\tr5,lr,r9,lsr#24\n\tand\tr7,lr,r9,lsr#16\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r9,lsr#8\n\tldrb\tr7,[r10,r7]\n\tand\tr9,lr,r9\n\tldrb\tr8,[r10,r8]\n\torr\tr5,r5,r7,lsl#24\n\tldrb\tr9,[r10,r9]\n\torr\tr5,r5,r8,lsl#16\n\tldr\tr4,[r6],#4\t\t\t@ rcon[i++]\n\torr\tr5,r5,r9,lsl#8\n\teor\tr9,r5,r4\n\teor\tr0,r0,r9\t\t\t@ rk[6]=rk[0]^...\n\teor\tr1,r1,r0\t\t\t@ rk[7]=rk[1]^rk[6]\n\tstr\tr0,[r11],#24\n\teor\tr2,r2,r1\t\t\t@ rk[8]=rk[2]^rk[7]\n\tstr\tr1,[r11,#-20]\n\teor\tr3,r3,r2\t\t\t@ rk[9]=rk[3]^rk[8]\n\tstr\tr2,[r11,#-16]\n\tsubs\tr12,r12,#1\n\tstr\tr3,[r11,#-12]\n#ifdef\t__thumb2__\n\titt\teq\t\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tsubeq\tr2,r11,#216\n\tbeq\t.Ldone\n\n\tldr\tr7,[r11,#-32]\n\tldr\tr8,[r11,#-28]\n\teor\tr7,r7,r3\t\t\t@ rk[10]=rk[4]^rk[9]\n\teor\tr9,r8,r7\t\t\t@ rk[11]=rk[5]^rk[10]\n\tstr\tr7,[r11,#-8]\n\tstr\tr9,[r11,#-4]\n\tb\t.L192_loop\n\n.Lnot192:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:16", "text": "str\tr1,[r11,#-20]\n\teor\tr3,r3,r2\t\t\t@ rk[9]=rk[3]^rk[8]\n\tstr\tr2,[r11,#-16]\n\tsubs\tr12,r12,#1\n\tstr\tr3,[r11,#-12]\n#ifdef\t__thumb2__\n\titt\teq\t\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tsubeq\tr2,r11,#216\n\tbeq\t.Ldone\n\n\tldr\tr7,[r11,#-32]\n\tldr\tr8,[r11,#-28]\n\teor\tr7,r7,r3\t\t\t@ rk[10]=rk[4]^rk[9]\n\teor\tr9,r8,r7\t\t\t@ rk[11]=rk[5]^rk[10]\n\tstr\tr7,[r11,#-8]\n\tstr\tr9,[r11,#-4]\n\tb\t.L192_loop\n\n.Lnot192:\n#if __ARM_ARCH__<7\n\tldrb\tr8,[r12,#27]\n\tldrb\tr4,[r12,#26]\n\tldrb\tr5,[r12,#25]\n\tldrb\tr6,[r12,#24]\n\torr\tr8,r8,r4,lsl#8\n\tldrb\tr9,[r12,#31]\n\torr\tr8,r8,r5,lsl#16\n\tldrb\tr4,[r12,#30]\n\torr\tr8,r8,r6,lsl#24\n\tldrb\tr5,[r12,#29]\n\tldrb\tr6,[r12,#28]\n\torr\tr9,r9,r4,lsl#8\n\torr\tr9,r9,r5,lsl#16\n\tstr\tr8,[r11],#8\n\torr\tr9,r9,r6,lsl#24\n\tstr\tr9,[r11,#-4]\n#else\n\tldr\tr8,[r12,#24]\n\tldr\tr9,[r12,#28]\n#ifdef __ARMEL__\n\trev\tr8,r8\n\trev\tr9,r9\n#endif\n\tstr\tr8,[r11],#8\n\tstr\tr9,[r11,#-4]\n#endif\n\n\tmov\tr12,#14\n\tstr\tr12,[r11,#240-32]\n\tadd\tr6,r10,#256\t\t\t@ rcon\n\tmov\tlr,#255\n\tmov\tr12,#7\n\n.L256_loop:\n\tand\tr5,lr,r9,lsr#24\n\tand\tr7,lr,r9,lsr#16\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r9,lsr#8\n\tldrb\tr7,[r10,r7]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:17", "text": "#ifdef __ARMEL__\n\trev\tr8,r8\n\trev\tr9,r9\n#endif\n\tstr\tr8,[r11],#8\n\tstr\tr9,[r11,#-4]\n#endif\n\n\tmov\tr12,#14\n\tstr\tr12,[r11,#240-32]\n\tadd\tr6,r10,#256\t\t\t@ rcon\n\tmov\tlr,#255\n\tmov\tr12,#7\n\n.L256_loop:\n\tand\tr5,lr,r9,lsr#24\n\tand\tr7,lr,r9,lsr#16\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r9,lsr#8\n\tldrb\tr7,[r10,r7]\n\tand\tr9,lr,r9\n\tldrb\tr8,[r10,r8]\n\torr\tr5,r5,r7,lsl#24\n\tldrb\tr9,[r10,r9]\n\torr\tr5,r5,r8,lsl#16\n\tldr\tr4,[r6],#4\t\t\t@ rcon[i++]\n\torr\tr5,r5,r9,lsl#8\n\teor\tr9,r5,r4\n\teor\tr0,r0,r9\t\t\t@ rk[8]=rk[0]^...\n\teor\tr1,r1,r0\t\t\t@ rk[9]=rk[1]^rk[8]\n\tstr\tr0,[r11],#32\n\teor\tr2,r2,r1\t\t\t@ rk[10]=rk[2]^rk[9]\n\tstr\tr1,[r11,#-28]\n\teor\tr3,r3,r2\t\t\t@ rk[11]=rk[3]^rk[10]\n\tstr\tr2,[r11,#-24]\n\tsubs\tr12,r12,#1\n\tstr\tr3,[r11,#-20]\n#ifdef\t__thumb2__\n\titt\teq\t\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tsubeq\tr2,r11,#256\n\tbeq\t.Ldone\n\n\tand\tr5,lr,r3\n\tand\tr7,lr,r3,lsr#8\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r3,lsr#16\n\tldrb\tr7,[r10,r7]\n\tand\tr9,lr,r3,lsr#24\n\tldrb\tr8,[r10,r8]\n\torr\tr5,r5,r7,lsl#8\n\tldrb\tr9,[r10,r9]\n\torr\tr5,r5,r8,lsl#16\n\tldr\tr4,[r11,#-48]\n\torr\tr5,r5,r9,lsl#24\n\n\tldr\tr7,[r11,#-44]\n\tldr\tr8,[r11,#-40]\n\teor\tr4,r4,r5\t\t\t@ rk[12]=rk[4]^...\n\tldr\tr9,[r11,#-36]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:18", "text": "subeq\tr2,r11,#256\n\tbeq\t.Ldone\n\n\tand\tr5,lr,r3\n\tand\tr7,lr,r3,lsr#8\n\tldrb\tr5,[r10,r5]\n\tand\tr8,lr,r3,lsr#16\n\tldrb\tr7,[r10,r7]\n\tand\tr9,lr,r3,lsr#24\n\tldrb\tr8,[r10,r8]\n\torr\tr5,r5,r7,lsl#8\n\tldrb\tr9,[r10,r9]\n\torr\tr5,r5,r8,lsl#16\n\tldr\tr4,[r11,#-48]\n\torr\tr5,r5,r9,lsl#24\n\n\tldr\tr7,[r11,#-44]\n\tldr\tr8,[r11,#-40]\n\teor\tr4,r4,r5\t\t\t@ rk[12]=rk[4]^...\n\tldr\tr9,[r11,#-36]\n\teor\tr7,r7,r4\t\t\t@ rk[13]=rk[5]^rk[12]\n\tstr\tr4,[r11,#-16]\n\teor\tr8,r8,r7\t\t\t@ rk[14]=rk[6]^rk[13]\n\tstr\tr7,[r11,#-12]\n\teor\tr9,r9,r8\t\t\t@ rk[15]=rk[7]^rk[14]\n\tstr\tr8,[r11,#-8]\n\tstr\tr9,[r11,#-4]\n\tb\t.L256_loop\n\n.align\t2\n.Ldone:\tmov\tr0,#0\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n.Labrt:\n#if __ARM_ARCH__>=5\n\tRET\t\t\t\t@ .word\t0xe12fff1e\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tAES_set_encrypt_key,.-AES_set_encrypt_key\n\n.globl\tAES_set_decrypt_key\n.type\tAES_set_decrypt_key,%function\n.align\t5\nAES_set_decrypt_key:\n\tstr\tlr,[sp,#-4]!            @ push lr\n\tbl\t_armv4_AES_set_encrypt_key\n\tteq\tr0,#0\n\tldr\tlr,[sp],#4              @ pop lr\n\tbne\t.Labrt\n\n\tmov\tr0,r2\t\t\t@ AES_set_encrypt_key preserves r2,\n\tmov\tr1,r2\t\t\t@ which is AES_KEY *key\n\tb\t_armv4_AES_set_enc2dec_key\n.size\tAES_set_decrypt_key,.-AES_set_decrypt_key\n\n@ void AES_set_enc2dec_key(const AES_KEY *inp,AES_KEY *out)\n.globl\tAES_set_enc2dec_key\n.type\tAES_set_enc2dec_key,%function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:19", "text": ".size\tAES_set_encrypt_key,.-AES_set_encrypt_key\n\n.globl\tAES_set_decrypt_key\n.type\tAES_set_decrypt_key,%function\n.align\t5\nAES_set_decrypt_key:\n\tstr\tlr,[sp,#-4]!            @ push lr\n\tbl\t_armv4_AES_set_encrypt_key\n\tteq\tr0,#0\n\tldr\tlr,[sp],#4              @ pop lr\n\tbne\t.Labrt\n\n\tmov\tr0,r2\t\t\t@ AES_set_encrypt_key preserves r2,\n\tmov\tr1,r2\t\t\t@ which is AES_KEY *key\n\tb\t_armv4_AES_set_enc2dec_key\n.size\tAES_set_decrypt_key,.-AES_set_decrypt_key\n\n@ void AES_set_enc2dec_key(const AES_KEY *inp,AES_KEY *out)\n.globl\tAES_set_enc2dec_key\n.type\tAES_set_enc2dec_key,%function\n.align\t5\nAES_set_enc2dec_key:\n_armv4_AES_set_enc2dec_key:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\n\tldr\tr12,[r0,#240]\n\tmov\tr7,r0\t\t\t@ input\n\tadd\tr8,r0,r12,lsl#4\n\tmov\tr11,r1\t\t\t@ output\n\tadd\tr10,r1,r12,lsl#4\n\tstr\tr12,[r1,#240]\n\n.Linv:\tldr\tr0,[r7],#16\n\tldr\tr1,[r7,#-12]\n\tldr\tr2,[r7,#-8]\n\tldr\tr3,[r7,#-4]\n\tldr\tr4,[r8],#-16\n\tldr\tr5,[r8,#16+4]\n\tldr\tr6,[r8,#16+8]\n\tldr\tr9,[r8,#16+12]\n\tstr\tr0,[r10],#-16\n\tstr\tr1,[r10,#16+4]\n\tstr\tr2,[r10,#16+8]\n\tstr\tr3,[r10,#16+12]\n\tstr\tr4,[r11],#16\n\tstr\tr5,[r11,#-12]\n\tstr\tr6,[r11,#-8]\n\tstr\tr9,[r11,#-4]\n\tteq\tr7,r8\n\tbne\t.Linv\n\n\tldr\tr0,[r7]\n\tldr\tr1,[r7,#4]\n\tldr\tr2,[r7,#8]\n\tldr\tr3,[r7,#12]\n\tstr\tr0,[r11]\n\tstr\tr1,[r11,#4]\n\tstr\tr2,[r11,#8]\n\tstr\tr3,[r11,#12]\n\tsub\tr11,r11,r12,lsl#3", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:20", "text": "str\tr0,[r10],#-16\n\tstr\tr1,[r10,#16+4]\n\tstr\tr2,[r10,#16+8]\n\tstr\tr3,[r10,#16+12]\n\tstr\tr4,[r11],#16\n\tstr\tr5,[r11,#-12]\n\tstr\tr6,[r11,#-8]\n\tstr\tr9,[r11,#-4]\n\tteq\tr7,r8\n\tbne\t.Linv\n\n\tldr\tr0,[r7]\n\tldr\tr1,[r7,#4]\n\tldr\tr2,[r7,#8]\n\tldr\tr3,[r7,#12]\n\tstr\tr0,[r11]\n\tstr\tr1,[r11,#4]\n\tstr\tr2,[r11,#8]\n\tstr\tr3,[r11,#12]\n\tsub\tr11,r11,r12,lsl#3\n\tldr\tr0,[r11,#16]!\t\t@ prefetch tp1\n\tmov\tr7,#0x80\n\tmov\tr8,#0x1b\n\torr\tr7,r7,#0x8000\n\torr\tr8,r8,#0x1b00\n\torr\tr7,r7,r7,lsl#16\n\torr\tr8,r8,r8,lsl#16\n\tsub\tr12,r12,#1\n\tmvn\tr9,r7\n\tmov\tr12,r12,lsl#2\t@ (rounds-1)*4\n\n.Lmix:\tand\tr4,r0,r7\n\tand\tr1,r0,r9\n\tsub\tr4,r4,r4,lsr#7\n\tand\tr4,r4,r8\n\teor\tr1,r4,r1,lsl#1\t@ tp2\n\n\tand\tr4,r1,r7\n\tand\tr2,r1,r9\n\tsub\tr4,r4,r4,lsr#7\n\tand\tr4,r4,r8\n\teor\tr2,r4,r2,lsl#1\t@ tp4\n\n\tand\tr4,r2,r7\n\tand\tr3,r2,r9\n\tsub\tr4,r4,r4,lsr#7\n\tand\tr4,r4,r8\n\teor\tr3,r4,r3,lsl#1\t@ tp8\n\n\teor\tr4,r1,r2\n\teor\tr5,r0,r3\t\t@ tp9\n\teor\tr4,r4,r3\t\t@ tpe\n\teor\tr4,r4,r1,ror#24\n\teor\tr4,r4,r5,ror#24\t@ ^= ROTATE(tpb=tp9^tp2,8)\n\teor\tr4,r4,r2,ror#16\n\teor\tr4,r4,r5,ror#16\t@ ^= ROTATE(tpd=tp9^tp4,16)\n\teor\tr4,r4,r5,ror#8\t@ ^= ROTATE(tp9,24)\n\n\tldr\tr0,[r11,#4]\t\t@ prefetch tp1\n\tstr\tr4,[r11],#4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:21", "text": "and\tr4,r4,r8\n\teor\tr2,r4,r2,lsl#1\t@ tp4\n\n\tand\tr4,r2,r7\n\tand\tr3,r2,r9\n\tsub\tr4,r4,r4,lsr#7\n\tand\tr4,r4,r8\n\teor\tr3,r4,r3,lsl#1\t@ tp8\n\n\teor\tr4,r1,r2\n\teor\tr5,r0,r3\t\t@ tp9\n\teor\tr4,r4,r3\t\t@ tpe\n\teor\tr4,r4,r1,ror#24\n\teor\tr4,r4,r5,ror#24\t@ ^= ROTATE(tpb=tp9^tp2,8)\n\teor\tr4,r4,r2,ror#16\n\teor\tr4,r4,r5,ror#16\t@ ^= ROTATE(tpd=tp9^tp4,16)\n\teor\tr4,r4,r5,ror#8\t@ ^= ROTATE(tp9,24)\n\n\tldr\tr0,[r11,#4]\t\t@ prefetch tp1\n\tstr\tr4,[r11],#4\n\tsubs\tr12,r12,#1\n\tbne\t.Lmix\n\n\tmov\tr0,#0\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tAES_set_enc2dec_key,.-AES_set_enc2dec_key\n\n.type\tAES_Td,%object\n.align\t5\nAES_Td:\n.word\t0x51f4a750, 0x7e416553, 0x1a17a4c3, 0x3a275e96\n.word\t0x3bab6bcb, 0x1f9d45f1, 0xacfa58ab, 0x4be30393\n.word\t0x2030fa55, 0xad766df6, 0x88cc7691, 0xf5024c25\n.word\t0x4fe5d7fc, 0xc52acbd7, 0x26354480, 0xb562a38f\n.word\t0xdeb15a49, 0x25ba1b67, 0x45ea0e98, 0x5dfec0e1\n.word\t0xc32f7502, 0x814cf012, 0x8d4697a3, 0x6bd3f9c6\n.word\t0x038f5fe7, 0x15929c95, 0xbf6d7aeb, 0x955259da\n.word\t0xd4be832d, 0x587421d3, 0x49e06929, 0x8ec9c844\n.word\t0x75c2896a, 0xf48e7978, 0x99583e6b, 0x27b971dd\n.word\t0xbee14fb6, 0xf088ad17, 0xc920ac66, 0x7dce3ab4\n.word\t0x63df4a18, 0xe51a3182, 0x97513360, 0x62537f45\n.word\t0xb16477e0, 0xbb6bae84, 0xfe81a01c, 0xf9082b94\n.word\t0x70486858, 0x8f45fd19, 0x94de6c87, 0x527bf8b7\n.word\t0xab73d323, 0x724b02e2, 0xe31f8f57, 0x6655ab2a\n.word\t0xb2eb2807, 0x2fb5c203, 0x86c57b9a, 0xd33708a5\n.word\t0x302887f2, 0x23bfa5b2, 0x02036aba, 0xed16825c\n.word\t0x8acf1c2b, 0xa779b492, 0xf307f2f0, 0x4e69e2a1\n.word\t0x65daf4cd, 0x0605bed5, 0xd134621f, 0xc4a6fe8a\n.word\t0x342e539d, 0xa2f355a0, 0x058ae132, 0xa4f6eb75\n.word\t0x0b83ec39, 0x4060efaa, 0x5e719f06, 0xbd6e1051\n.word\t0x3e218af9, 0x96dd063d, 0xdd3e05ae, 0x4de6bd46\n.word\t0x91548db5, 0x71c45d05, 0x0406d46f, 0x605015ff\n.word\t0x1998fb24, 0xd6bde997, 0x894043cc, 0x67d99e77", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:22", "text": ".word\t0x4fe5d7fc, 0xc52acbd7, 0x26354480, 0xb562a38f\n.word\t0xdeb15a49, 0x25ba1b67, 0x45ea0e98, 0x5dfec0e1\n.word\t0xc32f7502, 0x814cf012, 0x8d4697a3, 0x6bd3f9c6\n.word\t0x038f5fe7, 0x15929c95, 0xbf6d7aeb, 0x955259da\n.word\t0xd4be832d, 0x587421d3, 0x49e06929, 0x8ec9c844\n.word\t0x75c2896a, 0xf48e7978, 0x99583e6b, 0x27b971dd\n.word\t0xbee14fb6, 0xf088ad17, 0xc920ac66, 0x7dce3ab4\n.word\t0x63df4a18, 0xe51a3182, 0x97513360, 0x62537f45\n.word\t0xb16477e0, 0xbb6bae84, 0xfe81a01c, 0xf9082b94\n.word\t0x70486858, 0x8f45fd19, 0x94de6c87, 0x527bf8b7\n.word\t0xab73d323, 0x724b02e2, 0xe31f8f57, 0x6655ab2a\n.word\t0xb2eb2807, 0x2fb5c203, 0x86c57b9a, 0xd33708a5\n.word\t0x302887f2, 0x23bfa5b2, 0x02036aba, 0xed16825c\n.word\t0x8acf1c2b, 0xa779b492, 0xf307f2f0, 0x4e69e2a1\n.word\t0x65daf4cd, 0x0605bed5, 0xd134621f, 0xc4a6fe8a\n.word\t0x342e539d, 0xa2f355a0, 0x058ae132, 0xa4f6eb75\n.word\t0x0b83ec39, 0x4060efaa, 0x5e719f06, 0xbd6e1051\n.word\t0x3e218af9, 0x96dd063d, 0xdd3e05ae, 0x4de6bd46\n.word\t0x91548db5, 0x71c45d05, 0x0406d46f, 0x605015ff\n.word\t0x1998fb24, 0xd6bde997, 0x894043cc, 0x67d99e77\n.word\t0xb0e842bd, 0x07898b88, 0xe7195b38, 0x79c8eedb\n.word\t0xa17c0a47, 0x7c420fe9, 0xf8841ec9, 0x00000000\n.word\t0x09808683, 0x322bed48, 0x1e1170ac, 0x6c5a724e\n.word\t0xfd0efffb, 0x0f853856, 0x3daed51e, 0x362d3927\n.word\t0x0a0fd964, 0x685ca621, 0x9b5b54d1, 0x24362e3a\n.word\t0x0c0a67b1, 0x9357e70f, 0xb4ee96d2, 0x1b9b919e\n.word\t0x80c0c54f, 0x61dc20a2, 0x5a774b69, 0x1c121a16\n.word\t0xe293ba0a, 0xc0a02ae5, 0x3c22e043, 0x121b171d\n.word\t0x0e090d0b, 0xf28bc7ad, 0x2db6a8b9, 0x141ea9c8\n.word\t0x57f11985, 0xaf75074c, 0xee99ddbb, 0xa37f60fd\n.word\t0xf701269f, 0x5c72f5bc, 0x44663bc5, 0x5bfb7e34\n.word\t0x8b432976, 0xcb23c6dc, 0xb6edfc68, 0xb8e4f163\n.word\t0xd731dcca, 0x42638510, 0x13972240, 0x84c61120\n.word\t0x854a247d, 0xd2bb3df8, 0xaef93211, 0xc729a16d\n.word\t0x1d9e2f4b, 0xdcb230f3, 0x0d8652ec, 0x77c1e3d0\n.word\t0x2bb3166c, 0xa970b999, 0x119448fa, 0x47e96422\n.word\t0xa8fc8cc4, 0xa0f03f1a, 0x567d2cd8, 0x223390ef\n.word\t0x87494ec7, 0xd938d1c1, 0x8ccaa2fe, 0x98d40b36\n.word\t0xa6f581cf, 0xa57ade28, 0xdab78e26, 0x3fadbfa4\n.word\t0x2c3a9de4, 0x5078920d, 0x6a5fcc9b, 0x547e4662\n.word\t0xf68d13c2, 0x90d8b8e8, 0x2e39f75e, 0x82c3aff5\n.word\t0x9f5d80be, 0x69d0937c, 0x6fd52da9, 0xcf2512b3\n.word\t0xc8ac993b, 0x10187da7, 0xe89c636e, 0xdb3bbb7b\n.word\t0xcd267809, 0x6e5918f4, 0xec9ab701, 0x834f9aa8\n.word\t0xe6956e65, 0xaaffe67e, 0x21bccf08, 0xef15e8e6\n.word\t0xbae79bd9, 0x4a6f36ce, 0xea9f09d4, 0x29b07cd6\n.word\t0x31a4b2af, 0x2a3f2331, 0xc6a59430, 0x35a266c0\n.word\t0x744ebc37, 0xfc82caa6, 0xe090d0b0, 0x33a7d815\n.word\t0xf104984a, 0x41ecdaf7, 0x7fcd500e, 0x1791f62f\n.word\t0x764dd68d, 0x43efb04d, 0xccaa4d54, 0xe49604df\n.word\t0x9ed1b5e3, 0x4c6a881b, 0xc12c1fb8, 0x4665517f\n.word\t0x9d5eea04, 0x018c355d, 0xfa877473, 0xfb0b412e\n.word\t0xb3671d5a, 0x92dbd252, 0xe9105633, 0x6dd64713\n.word\t0x9ad7618c, 0x37a10c7a, 0x59f8148e, 0xeb133c89\n.word\t0xcea927ee, 0xb761c935, 0xe11ce5ed, 0x7a47b13c\n.word\t0x9cd2df59, 0x55f2733f, 0x1814ce79, 0x73c737bf\n.word\t0x53f7cdea, 0x5ffdaa5b, 0xdf3d6f14, 0x7844db86\n.word\t0xcaaff381, 0xb968c43e, 0x3824342c, 0xc2a3405f\n.word\t0x161dc372, 0xbce2250c, 0x283c498b, 0xff0d9541\n.word\t0x39a80171, 0x080cb3de, 0xd8b4e49c, 0x6456c190", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:23", "text": ".word\t0xf68d13c2, 0x90d8b8e8, 0x2e39f75e, 0x82c3aff5\n.word\t0x9f5d80be, 0x69d0937c, 0x6fd52da9, 0xcf2512b3\n.word\t0xc8ac993b, 0x10187da7, 0xe89c636e, 0xdb3bbb7b\n.word\t0xcd267809, 0x6e5918f4, 0xec9ab701, 0x834f9aa8\n.word\t0xe6956e65, 0xaaffe67e, 0x21bccf08, 0xef15e8e6\n.word\t0xbae79bd9, 0x4a6f36ce, 0xea9f09d4, 0x29b07cd6\n.word\t0x31a4b2af, 0x2a3f2331, 0xc6a59430, 0x35a266c0\n.word\t0x744ebc37, 0xfc82caa6, 0xe090d0b0, 0x33a7d815\n.word\t0xf104984a, 0x41ecdaf7, 0x7fcd500e, 0x1791f62f\n.word\t0x764dd68d, 0x43efb04d, 0xccaa4d54, 0xe49604df\n.word\t0x9ed1b5e3, 0x4c6a881b, 0xc12c1fb8, 0x4665517f\n.word\t0x9d5eea04, 0x018c355d, 0xfa877473, 0xfb0b412e\n.word\t0xb3671d5a, 0x92dbd252, 0xe9105633, 0x6dd64713\n.word\t0x9ad7618c, 0x37a10c7a, 0x59f8148e, 0xeb133c89\n.word\t0xcea927ee, 0xb761c935, 0xe11ce5ed, 0x7a47b13c\n.word\t0x9cd2df59, 0x55f2733f, 0x1814ce79, 0x73c737bf\n.word\t0x53f7cdea, 0x5ffdaa5b, 0xdf3d6f14, 0x7844db86\n.word\t0xcaaff381, 0xb968c43e, 0x3824342c, 0xc2a3405f\n.word\t0x161dc372, 0xbce2250c, 0x283c498b, 0xff0d9541\n.word\t0x39a80171, 0x080cb3de, 0xd8b4e49c, 0x6456c190\n.word\t0x7bcb8461, 0xd532b670, 0x486c5c74, 0xd0b85742\n@ Td4[256]\n.byte\t0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38\n.byte\t0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb\n.byte\t0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87\n.byte\t0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb\n.byte\t0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d\n.byte\t0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e\n.byte\t0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2\n.byte\t0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25\n.byte\t0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16\n.byte\t0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92\n.byte\t0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda\n.byte\t0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84\n.byte\t0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a\n.byte\t0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06\n.byte\t0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02\n.byte\t0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b\n.byte\t0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea\n.byte\t0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73\n.byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d\n.byte\t0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef\n.byte\t0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0\n.byte\t0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61\n.byte\t0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26\n.byte\t0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d\n.size\tAES_Td,.-AES_Td\n\n@ void AES_decrypt(const unsigned char *in, unsigned char *out,\n@ \t\t const AES_KEY *key) {\n.globl\tAES_decrypt\n.type\tAES_decrypt,%function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:24", "text": ".byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d\n.byte\t0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef\n.byte\t0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0\n.byte\t0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61\n.byte\t0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26\n.byte\t0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d\n.size\tAES_Td,.-AES_Td\n\n@ void AES_decrypt(const unsigned char *in, unsigned char *out,\n@ \t\t const AES_KEY *key) {\n.globl\tAES_decrypt\n.type\tAES_decrypt,%function\n.align\t5\nAES_decrypt:\n#ifndef\t__thumb2__\n\tsub\tr3,pc,#8\t\t@ AES_decrypt\n#else\n\tadr\tr3,.\n#endif\n\tstmdb\tsp!,{r1,r4-r12,lr}\n#if defined(__thumb2__) || defined(__APPLE__)\n\tadr\tr10,AES_Td\n#else\n\tsub\tr10,r3,#AES_decrypt-AES_Td\t@ Td\n#endif\n\tmov\tr12,r0\t\t@ inp\n\tmov\tr11,r2\n#if __ARM_ARCH__<7\n\tldrb\tr0,[r12,#3]\t@ load input data in endian-neutral\n\tldrb\tr4,[r12,#2]\t@ manner...\n\tldrb\tr5,[r12,#1]\n\tldrb\tr6,[r12,#0]\n\torr\tr0,r0,r4,lsl#8\n\tldrb\tr1,[r12,#7]\n\torr\tr0,r0,r5,lsl#16\n\tldrb\tr4,[r12,#6]\n\torr\tr0,r0,r6,lsl#24\n\tldrb\tr5,[r12,#5]\n\tldrb\tr6,[r12,#4]\n\torr\tr1,r1,r4,lsl#8\n\tldrb\tr2,[r12,#11]\n\torr\tr1,r1,r5,lsl#16\n\tldrb\tr4,[r12,#10]\n\torr\tr1,r1,r6,lsl#24\n\tldrb\tr5,[r12,#9]\n\tldrb\tr6,[r12,#8]\n\torr\tr2,r2,r4,lsl#8\n\tldrb\tr3,[r12,#15]\n\torr\tr2,r2,r5,lsl#16\n\tldrb\tr4,[r12,#14]\n\torr\tr2,r2,r6,lsl#24\n\tldrb\tr5,[r12,#13]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:25", "text": "orr\tr0,r0,r4,lsl#8\n\tldrb\tr1,[r12,#7]\n\torr\tr0,r0,r5,lsl#16\n\tldrb\tr4,[r12,#6]\n\torr\tr0,r0,r6,lsl#24\n\tldrb\tr5,[r12,#5]\n\tldrb\tr6,[r12,#4]\n\torr\tr1,r1,r4,lsl#8\n\tldrb\tr2,[r12,#11]\n\torr\tr1,r1,r5,lsl#16\n\tldrb\tr4,[r12,#10]\n\torr\tr1,r1,r6,lsl#24\n\tldrb\tr5,[r12,#9]\n\tldrb\tr6,[r12,#8]\n\torr\tr2,r2,r4,lsl#8\n\tldrb\tr3,[r12,#15]\n\torr\tr2,r2,r5,lsl#16\n\tldrb\tr4,[r12,#14]\n\torr\tr2,r2,r6,lsl#24\n\tldrb\tr5,[r12,#13]\n\tldrb\tr6,[r12,#12]\n\torr\tr3,r3,r4,lsl#8\n\torr\tr3,r3,r5,lsl#16\n\torr\tr3,r3,r6,lsl#24\n#else\n\tldr\tr0,[r12,#0]\n\tldr\tr1,[r12,#4]\n\tldr\tr2,[r12,#8]\n\tldr\tr3,[r12,#12]\n#ifdef __ARMEL__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n#endif\n#endif\n\tbl\t_armv4_AES_decrypt\n\n\tldr\tr12,[sp],#4\t\t@ pop out\n#if __ARM_ARCH__>=7\n#ifdef __ARMEL__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n#endif\n\tstr\tr0,[r12,#0]\n\tstr\tr1,[r12,#4]\n\tstr\tr2,[r12,#8]\n\tstr\tr3,[r12,#12]\n#else\n\tmov\tr4,r0,lsr#24\t\t@ write output in endian-neutral\n\tmov\tr5,r0,lsr#16\t\t@ manner...\n\tmov\tr6,r0,lsr#8\n\tstrb\tr4,[r12,#0]\n\tstrb\tr5,[r12,#1]\n\tmov\tr4,r1,lsr#24\n\tstrb\tr6,[r12,#2]\n\tmov\tr5,r1,lsr#16\n\tstrb\tr0,[r12,#3]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:26", "text": "#ifdef __ARMEL__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n#endif\n\tstr\tr0,[r12,#0]\n\tstr\tr1,[r12,#4]\n\tstr\tr2,[r12,#8]\n\tstr\tr3,[r12,#12]\n#else\n\tmov\tr4,r0,lsr#24\t\t@ write output in endian-neutral\n\tmov\tr5,r0,lsr#16\t\t@ manner...\n\tmov\tr6,r0,lsr#8\n\tstrb\tr4,[r12,#0]\n\tstrb\tr5,[r12,#1]\n\tmov\tr4,r1,lsr#24\n\tstrb\tr6,[r12,#2]\n\tmov\tr5,r1,lsr#16\n\tstrb\tr0,[r12,#3]\n\tmov\tr6,r1,lsr#8\n\tstrb\tr4,[r12,#4]\n\tstrb\tr5,[r12,#5]\n\tmov\tr4,r2,lsr#24\n\tstrb\tr6,[r12,#6]\n\tmov\tr5,r2,lsr#16\n\tstrb\tr1,[r12,#7]\n\tmov\tr6,r2,lsr#8\n\tstrb\tr4,[r12,#8]\n\tstrb\tr5,[r12,#9]\n\tmov\tr4,r3,lsr#24\n\tstrb\tr6,[r12,#10]\n\tmov\tr5,r3,lsr#16\n\tstrb\tr2,[r12,#11]\n\tmov\tr6,r3,lsr#8\n\tstrb\tr4,[r12,#12]\n\tstrb\tr5,[r12,#13]\n\tstrb\tr6,[r12,#14]\n\tstrb\tr3,[r12,#15]\n#endif\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tAES_decrypt,.-AES_decrypt\n\n.type\t_armv4_AES_decrypt,%function\n.align\t2\n_armv4_AES_decrypt:\n\tstr\tlr,[sp,#-4]!\t\t@ push lr\n\tldmia\tr11!,{r4,r5,r6,r7}\n\teor\tr0,r0,r4\n\tldr\tr12,[r11,#240-16]\n\teor\tr1,r1,r5\n\teor\tr2,r2,r6\n\teor\tr3,r3,r7", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:27", "text": "#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tAES_decrypt,.-AES_decrypt\n\n.type\t_armv4_AES_decrypt,%function\n.align\t2\n_armv4_AES_decrypt:\n\tstr\tlr,[sp,#-4]!\t\t@ push lr\n\tldmia\tr11!,{r4,r5,r6,r7}\n\teor\tr0,r0,r4\n\tldr\tr12,[r11,#240-16]\n\teor\tr1,r1,r5\n\teor\tr2,r2,r6\n\teor\tr3,r3,r7\n\tsub\tr12,r12,#1\n\tmov\tlr,#255\n\n\tand\tr7,lr,r0,lsr#16\n\tand\tr8,lr,r0,lsr#8\n\tand\tr9,lr,r0\n\tmov\tr0,r0,lsr#24\n.Ldec_loop:\n\tldr\tr4,[r10,r7,lsl#2]\t@ Td1[s0>>16]\n\tand\tr7,lr,r1\t\t@ i0\n\tldr\tr5,[r10,r8,lsl#2]\t@ Td2[s0>>8]\n\tand\tr8,lr,r1,lsr#16\n\tldr\tr6,[r10,r9,lsl#2]\t@ Td3[s0>>0]\n\tand\tr9,lr,r1,lsr#8\n\tldr\tr0,[r10,r0,lsl#2]\t@ Td0[s0>>24]\n\tmov\tr1,r1,lsr#24\n\n\tldr\tr7,[r10,r7,lsl#2]\t@ Td3[s1>>0]\n\tldr\tr8,[r10,r8,lsl#2]\t@ Td1[s1>>16]\n\tldr\tr9,[r10,r9,lsl#2]\t@ Td2[s1>>8]\n\teor\tr0,r0,r7,ror#24\n\tldr\tr1,[r10,r1,lsl#2]\t@ Td0[s1>>24]\n\tand\tr7,lr,r2,lsr#8\t@ i0\n\teor\tr5,r8,r5,ror#8\n\tand\tr8,lr,r2\t\t@ i1\n\teor\tr6,r9,r6,ror#8\n\tand\tr9,lr,r2,lsr#16\n\tldr\tr7,[r10,r7,lsl#2]\t@ Td2[s2>>8]\n\teor\tr1,r1,r4,ror#8\n\tldr\tr8,[r10,r8,lsl#2]\t@ Td3[s2>>0]\n\tmov\tr2,r2,lsr#24\n\n\tldr\tr9,[r10,r9,lsl#2]\t@ Td1[s2>>16]\n\teor\tr0,r0,r7,ror#16\n\tldr\tr2,[r10,r2,lsl#2]\t@ Td0[s2>>24]\n\tand\tr7,lr,r3,lsr#16\t@ i0\n\teor\tr1,r1,r8,ror#24\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\teor\tr6,r9,r6,ror#8\n\tand\tr9,lr,r3\t\t@ i2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:28", "text": "eor\tr0,r0,r7,ror#24\n\tldr\tr1,[r10,r1,lsl#2]\t@ Td0[s1>>24]\n\tand\tr7,lr,r2,lsr#8\t@ i0\n\teor\tr5,r8,r5,ror#8\n\tand\tr8,lr,r2\t\t@ i1\n\teor\tr6,r9,r6,ror#8\n\tand\tr9,lr,r2,lsr#16\n\tldr\tr7,[r10,r7,lsl#2]\t@ Td2[s2>>8]\n\teor\tr1,r1,r4,ror#8\n\tldr\tr8,[r10,r8,lsl#2]\t@ Td3[s2>>0]\n\tmov\tr2,r2,lsr#24\n\n\tldr\tr9,[r10,r9,lsl#2]\t@ Td1[s2>>16]\n\teor\tr0,r0,r7,ror#16\n\tldr\tr2,[r10,r2,lsl#2]\t@ Td0[s2>>24]\n\tand\tr7,lr,r3,lsr#16\t@ i0\n\teor\tr1,r1,r8,ror#24\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\teor\tr6,r9,r6,ror#8\n\tand\tr9,lr,r3\t\t@ i2\n\tldr\tr7,[r10,r7,lsl#2]\t@ Td1[s3>>16]\n\teor\tr2,r2,r5,ror#8\n\tldr\tr8,[r10,r8,lsl#2]\t@ Td2[s3>>8]\n\tmov\tr3,r3,lsr#24\n\n\tldr\tr9,[r10,r9,lsl#2]\t@ Td3[s3>>0]\n\teor\tr0,r0,r7,ror#8\n\tldr\tr7,[r11],#16\n\teor\tr1,r1,r8,ror#16\n\tldr\tr3,[r10,r3,lsl#2]\t@ Td0[s3>>24]\n\teor\tr2,r2,r9,ror#24\n\n\tldr\tr4,[r11,#-12]\n\teor\tr0,r0,r7\n\tldr\tr5,[r11,#-8]\n\teor\tr3,r3,r6,ror#8\n\tldr\tr6,[r11,#-4]\n\tand\tr7,lr,r0,lsr#16\n\teor\tr1,r1,r4\n\tand\tr8,lr,r0,lsr#8\n\teor\tr2,r2,r5\n\tand\tr9,lr,r0\n\teor\tr3,r3,r6\n\tmov\tr0,r0,lsr#24\n\n\tsubs\tr12,r12,#1\n\tbne\t.Ldec_loop\n\n\tadd\tr10,r10,#1024\n\n\tldr\tr5,[r10,#0]\t\t@ prefetch Td4\n\tldr\tr6,[r10,#32]\n\tldr\tr4,[r10,#64]\n\tldr\tr5,[r10,#96]\n\tldr\tr6,[r10,#128]\n\tldr\tr4,[r10,#160]\n\tldr\tr5,[r10,#192]\n\tldr\tr6,[r10,#224]\n\n\tldrb\tr0,[r10,r0]\t\t@ Td4[s0>>24]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:29", "text": "eor\tr2,r2,r5\n\tand\tr9,lr,r0\n\teor\tr3,r3,r6\n\tmov\tr0,r0,lsr#24\n\n\tsubs\tr12,r12,#1\n\tbne\t.Ldec_loop\n\n\tadd\tr10,r10,#1024\n\n\tldr\tr5,[r10,#0]\t\t@ prefetch Td4\n\tldr\tr6,[r10,#32]\n\tldr\tr4,[r10,#64]\n\tldr\tr5,[r10,#96]\n\tldr\tr6,[r10,#128]\n\tldr\tr4,[r10,#160]\n\tldr\tr5,[r10,#192]\n\tldr\tr6,[r10,#224]\n\n\tldrb\tr0,[r10,r0]\t\t@ Td4[s0>>24]\n\tldrb\tr4,[r10,r7]\t\t@ Td4[s0>>16]\n\tand\tr7,lr,r1\t\t@ i0\n\tldrb\tr5,[r10,r8]\t\t@ Td4[s0>>8]\n\tand\tr8,lr,r1,lsr#16\n\tldrb\tr6,[r10,r9]\t\t@ Td4[s0>>0]\n\tand\tr9,lr,r1,lsr#8\n\n\tadd\tr1,r10,r1,lsr#24\n\tldrb\tr7,[r10,r7]\t\t@ Td4[s1>>0]\n\tldrb\tr1,[r1]\t\t@ Td4[s1>>24]\n\tldrb\tr8,[r10,r8]\t\t@ Td4[s1>>16]\n\teor\tr0,r7,r0,lsl#24\n\tldrb\tr9,[r10,r9]\t\t@ Td4[s1>>8]\n\teor\tr1,r4,r1,lsl#8\n\tand\tr7,lr,r2,lsr#8\t@ i0\n\teor\tr5,r5,r8,lsl#8\n\tand\tr8,lr,r2\t\t@ i1\n\tldrb\tr7,[r10,r7]\t\t@ Td4[s2>>8]\n\teor\tr6,r6,r9,lsl#8\n\tldrb\tr8,[r10,r8]\t\t@ Td4[s2>>0]\n\tand\tr9,lr,r2,lsr#16\n\n\tadd\tr2,r10,r2,lsr#24\n\tldrb\tr2,[r2]\t\t@ Td4[s2>>24]\n\teor\tr0,r0,r7,lsl#8\n\tldrb\tr9,[r10,r9]\t\t@ Td4[s2>>16]\n\teor\tr1,r8,r1,lsl#16\n\tand\tr7,lr,r3,lsr#16\t@ i0\n\teor\tr2,r5,r2,lsl#16\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\tldrb\tr7,[r10,r7]\t\t@ Td4[s3>>16]\n\teor\tr6,r6,r9,lsl#16\n\tldrb\tr8,[r10,r8]\t\t@ Td4[s3>>8]\n\tand\tr9,lr,r3\t\t@ i2\n\n\tadd\tr3,r10,r3,lsr#24\n\tldrb\tr9,[r10,r9]\t\t@ Td4[s3>>0]\n\tldrb\tr3,[r3]\t\t@ Td4[s3>>24]\n\teor\tr0,r0,r7,lsl#16\n\tldr\tr7,[r11,#0]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S:30", "text": "and\tr9,lr,r2,lsr#16\n\n\tadd\tr2,r10,r2,lsr#24\n\tldrb\tr2,[r2]\t\t@ Td4[s2>>24]\n\teor\tr0,r0,r7,lsl#8\n\tldrb\tr9,[r10,r9]\t\t@ Td4[s2>>16]\n\teor\tr1,r8,r1,lsl#16\n\tand\tr7,lr,r3,lsr#16\t@ i0\n\teor\tr2,r5,r2,lsl#16\n\tand\tr8,lr,r3,lsr#8\t@ i1\n\tldrb\tr7,[r10,r7]\t\t@ Td4[s3>>16]\n\teor\tr6,r6,r9,lsl#16\n\tldrb\tr8,[r10,r8]\t\t@ Td4[s3>>8]\n\tand\tr9,lr,r3\t\t@ i2\n\n\tadd\tr3,r10,r3,lsr#24\n\tldrb\tr9,[r10,r9]\t\t@ Td4[s3>>0]\n\tldrb\tr3,[r3]\t\t@ Td4[s3>>24]\n\teor\tr0,r0,r7,lsl#16\n\tldr\tr7,[r11,#0]\n\teor\tr1,r1,r8,lsl#8\n\tldr\tr4,[r11,#4]\n\teor\tr2,r9,r2,lsl#8\n\tldr\tr5,[r11,#8]\n\teor\tr3,r6,r3,lsl#24\n\tldr\tr6,[r11,#12]\n\n\teor\tr0,r0,r7\n\teor\tr1,r1,r4\n\teor\tr2,r2,r5\n\teor\tr3,r3,r6\n\n\tsub\tr10,r10,#1024\n\tldr\tpc,[sp],#4\t\t@ pop and return\n.size\t_armv4_AES_decrypt,.-_armv4_AES_decrypt\n.byte\t65,69,83,32,102,111,114,32,65,82,77,118,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes-armv4.S", "line_start": 1161, "line_end": 1198}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes.inc:1", "text": ".include \"arm.inc\"\n\n.PATH.S: ${.PARSEDIR}\nAES_SRCS += aes-armv4.S aes_cbc.c aesv8-armx.S\n\n\n.if ${ARM_MAX_ARCH} >= 7\nAES_SRCS+=bsaes-armv7.S\nAESCPPFLAGS += -DBSAES_ASM\n.endif\n\nAESCPPFLAGS += -DAES_ASM\n.include \"../../aes.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes.inc", "line_start": 1, "line_end": 13}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes.inc:1", "text": ".include \"arm.inc\"\n\n.PATH.S: ${.PARSEDIR}\nAES_SRCS += aes-armv4.S aes_cbc.c aesv8-armx.S bsaes-armv8.S \\\nvpsm4-armv8.S vpsm4_ex-armv8.S sm3-armv8.S sm4_ex-armv8.S\n\n\n.if ${ARM_MAX_ARCH} >= 7\nAES_SRCS+=bsaes-armv7.S\nAESCPPFLAGS += -DBSAES_ASM\n.endif\n\nAESCPPFLAGS += -DAES_ASM\n.include \"../../aes.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes.inc", "license": "BSD-2-Clause", "commit": "343326adbbf6e491874dca8a945d3cf7ea6eed7a", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/343326adbbf6e491874dca8a945d3cf7ea6eed7a/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aes.inc", "line_start": 1, "line_end": 14}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\t@ don't confuse not-so-latest binutils with argv8 :-)\n.fpu\tneon\n#ifdef\t__thumb2__\n.syntax\tunified\n.thumb\n# define INST(a,b,c,d)\t.byte\tc,d|0xc,a,b\n#else\n.code\t32\n# define INST(a,b,c,d)\t.byte\ta,b,c,d\n#endif\n\n.text\n.align\t5\n.Lrcon:\n.long\t0x01,0x01,0x01,0x01\n.long\t0x0c0f0e0d,0x0c0f0e0d,0x0c0f0e0d,0x0c0f0e0d\t@ rotate-n-splat\n.long\t0x1b,0x1b,0x1b,0x1b\n.globl\taes_v8_set_encrypt_key\n.type\taes_v8_set_encrypt_key,%function\n.align\t5\naes_v8_set_encrypt_key:\n.Lenc_key:\n\tmov\tr3,#-1\n\tcmp\tr0,#0\n\tbeq\t.Lenc_key_abort\n\tcmp\tr2,#0\n\tbeq\t.Lenc_key_abort\n\tmov\tr3,#-2\n\tcmp\tr1,#128\n\tblt\t.Lenc_key_abort\n\tcmp\tr1,#256\n\tbgt\t.Lenc_key_abort\n\ttst\tr1,#0x3f\n\tbne\t.Lenc_key_abort\n\n\tadr\tr3,.Lrcon\n\tcmp\tr1,#192\n\n\tveor\tq0,q0,q0\n\tvld1.8\t{q3},[r0]!\n\tmov\tr1,#8\t\t@ reuse r1\n\tvld1.32\t{q1,q2},[r3]!\n\n\tblt\t.Loop128\n\tbeq\t.L192\n\tb\t.L256\n\n.align\t4\n.Loop128:\n\tvtbl.8\td20,{q3},d4\n\tvtbl.8\td21,{q3},d5\n\tvext.8\tq9,q0,q3,#12\n\tvst1.32\t{q3},[r2]!\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\tsubs\tr1,r1,#1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:2", "text": "cmp\tr1,#192\n\n\tveor\tq0,q0,q0\n\tvld1.8\t{q3},[r0]!\n\tmov\tr1,#8\t\t@ reuse r1\n\tvld1.32\t{q1,q2},[r3]!\n\n\tblt\t.Loop128\n\tbeq\t.L192\n\tb\t.L256\n\n.align\t4\n.Loop128:\n\tvtbl.8\td20,{q3},d4\n\tvtbl.8\td21,{q3},d5\n\tvext.8\tq9,q0,q3,#12\n\tvst1.32\t{q3},[r2]!\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\tsubs\tr1,r1,#1\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tvshl.u8\tq1,q1,#1\n\tveor\tq3,q3,q10\n\tbne\t.Loop128\n\n\tvld1.32\t{q1},[r3]\n\n\tvtbl.8\td20,{q3},d4\n\tvtbl.8\td21,{q3},d5\n\tvext.8\tq9,q0,q3,#12\n\tvst1.32\t{q3},[r2]!\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tvshl.u8\tq1,q1,#1\n\tveor\tq3,q3,q10\n\n\tvtbl.8\td20,{q3},d4\n\tvtbl.8\td21,{q3},d5\n\tvext.8\tq9,q0,q3,#12\n\tvst1.32\t{q3},[r2]!\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tveor\tq3,q3,q10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:3", "text": "veor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tvshl.u8\tq1,q1,#1\n\tveor\tq3,q3,q10\n\n\tvtbl.8\td20,{q3},d4\n\tvtbl.8\td21,{q3},d5\n\tvext.8\tq9,q0,q3,#12\n\tvst1.32\t{q3},[r2]!\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tveor\tq3,q3,q10\n\tvst1.32\t{q3},[r2]\n\tadd\tr2,r2,#0x50\n\n\tmov\tr12,#10\n\tb\t.Ldone\n\n.align\t4\n.L192:\n\tvld1.8\t{d16},[r0]!\n\tvmov.i8\tq10,#8\t\t\t@ borrow q10\n\tvst1.32\t{q3},[r2]!\n\tvsub.i8\tq2,q2,q10\t@ adjust the mask\n\n.Loop192:\n\tvtbl.8\td20,{q8},d4\n\tvtbl.8\td21,{q8},d5\n\tvext.8\tq9,q0,q3,#12\n#ifdef __ARMEB__\n\tvst1.32\t{q8},[r2]!\n\tsub\tr2,r2,#8\n#else\n\tvst1.32\t{d16},[r2]!\n#endif\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\tsubs\tr1,r1,#1\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\n\tvdup.32\tq9,d7[1]\n\tveor\tq9,q9,q8\n\tveor\tq10,q10,q1\n\tvext.8\tq8,q0,q8,#12\n\tvshl.u8\tq1,q1,#1\n\tveor\tq8,q8,q9\n\tveor\tq3,q3,q10\n\tveor\tq8,q8,q10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:4", "text": "#else\n\tvst1.32\t{d16},[r2]!\n#endif\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\tsubs\tr1,r1,#1\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\n\tvdup.32\tq9,d7[1]\n\tveor\tq9,q9,q8\n\tveor\tq10,q10,q1\n\tvext.8\tq8,q0,q8,#12\n\tvshl.u8\tq1,q1,#1\n\tveor\tq8,q8,q9\n\tveor\tq3,q3,q10\n\tveor\tq8,q8,q10\n\tvst1.32\t{q3},[r2]!\n\tbne\t.Loop192\n\n\tmov\tr12,#12\n\tadd\tr2,r2,#0x20\n\tb\t.Ldone\n\n.align\t4\n.L256:\n\tvld1.8\t{q8},[r0]\n\tmov\tr1,#7\n\tmov\tr12,#14\n\tvst1.32\t{q3},[r2]!\n\n.Loop256:\n\tvtbl.8\td20,{q8},d4\n\tvtbl.8\td21,{q8},d5\n\tvext.8\tq9,q0,q3,#12\n\tvst1.32\t{q8},[r2]!\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\tsubs\tr1,r1,#1\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tvshl.u8\tq1,q1,#1\n\tveor\tq3,q3,q10\n\tvst1.32\t{q3},[r2]!\n\tbeq\t.Ldone\n\n\tvdup.32\tq10,d7[1]\n\tvext.8\tq9,q0,q8,#12\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\n\tveor\tq8,q8,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq8,q8,q9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:5", "text": "subs\tr1,r1,#1\n\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq3,q3,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq10,q10,q1\n\tveor\tq3,q3,q9\n\tvshl.u8\tq1,q1,#1\n\tveor\tq3,q3,q10\n\tvst1.32\t{q3},[r2]!\n\tbeq\t.Ldone\n\n\tvdup.32\tq10,d7[1]\n\tvext.8\tq9,q0,q8,#12\n\tINST(0x00,0x43,0xf0,0xf3)\t@ aese q10,q0\n\n\tveor\tq8,q8,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq8,q8,q9\n\tvext.8\tq9,q0,q9,#12\n\tveor\tq8,q8,q9\n\n\tveor\tq8,q8,q10\n\tb\t.Loop256\n\n.Ldone:\n\tstr\tr12,[r2]\n\tmov\tr3,#0\n\n.Lenc_key_abort:\n\tmov\tr0,r3\t\t\t@ return value\n\n\tRET\n.size\taes_v8_set_encrypt_key,.-aes_v8_set_encrypt_key\n\n.globl\taes_v8_set_decrypt_key\n.type\taes_v8_set_decrypt_key,%function\n.align\t5\naes_v8_set_decrypt_key:\n\tstmdb\tsp!,{r4,lr}\n\tbl\t.Lenc_key\n\n\tcmp\tr0,#0\n\tbne\t.Ldec_key_abort\n\n\tsub\tr2,r2,#240\t\t@ restore original r2\n\tmov\tr4,#-16\n\tadd\tr0,r2,r12,lsl#4\t@ end of key schedule\n\n\tvld1.32\t{q0},[r2]\n\tvld1.32\t{q1},[r0]\n\tvst1.32\t{q0},[r0],r4\n\tvst1.32\t{q1},[r2]!\n\n.Loop_imc:\n\tvld1.32\t{q0},[r2]\n\tvld1.32\t{q1},[r0]\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:6", "text": "stmdb\tsp!,{r4,lr}\n\tbl\t.Lenc_key\n\n\tcmp\tr0,#0\n\tbne\t.Ldec_key_abort\n\n\tsub\tr2,r2,#240\t\t@ restore original r2\n\tmov\tr4,#-16\n\tadd\tr0,r2,r12,lsl#4\t@ end of key schedule\n\n\tvld1.32\t{q0},[r2]\n\tvld1.32\t{q1},[r0]\n\tvst1.32\t{q0},[r0],r4\n\tvst1.32\t{q1},[r2]!\n\n.Loop_imc:\n\tvld1.32\t{q0},[r2]\n\tvld1.32\t{q1},[r0]\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tvst1.32\t{q0},[r0],r4\n\tvst1.32\t{q1},[r2]!\n\tcmp\tr0,r2\n\tbhi\t.Loop_imc\n\n\tvld1.32\t{q0},[r2]\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tvst1.32\t{q0},[r0]\n\n\teor\tr0,r0,r0\t\t@ return value\n.Ldec_key_abort:\n\tldmia\tsp!,{r4,pc}\n.size\taes_v8_set_decrypt_key,.-aes_v8_set_decrypt_key\n.globl\taes_v8_encrypt\n.type\taes_v8_encrypt,%function\n.align\t5\naes_v8_encrypt:\n\tldr\tr3,[r2,#240]\n\tvld1.32\t{q0},[r2]!\n\tvld1.8\t{q2},[r0]\n\tsub\tr3,r3,#2\n\tvld1.32\t{q1},[r2]!\n\n.Loop_enc:\n\tINST(0x00,0x43,0xb0,0xf3)\t@ aese q2,q0\n\tINST(0x84,0x43,0xb0,0xf3)\t@ aesmc q2,q2\n\tvld1.32\t{q0},[r2]!\n\tsubs\tr3,r3,#2\n\tINST(0x02,0x43,0xb0,0xf3)\t@ aese q2,q1\n\tINST(0x84,0x43,0xb0,0xf3)\t@ aesmc q2,q2\n\tvld1.32\t{q1},[r2]!\n\tbgt\t.Loop_enc\n\n\tINST(0x00,0x43,0xb0,0xf3)\t@ aese q2,q0\n\tINST(0x84,0x43,0xb0,0xf3)\t@ aesmc q2,q2\n\tvld1.32\t{q0},[r2]\n\tINST(0x02,0x43,0xb0,0xf3)\t@ aese q2,q1\n\tveor\tq2,q2,q0\n\n\tvst1.8\t{q2},[r1]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:7", "text": "sub\tr3,r3,#2\n\tvld1.32\t{q1},[r2]!\n\n.Loop_enc:\n\tINST(0x00,0x43,0xb0,0xf3)\t@ aese q2,q0\n\tINST(0x84,0x43,0xb0,0xf3)\t@ aesmc q2,q2\n\tvld1.32\t{q0},[r2]!\n\tsubs\tr3,r3,#2\n\tINST(0x02,0x43,0xb0,0xf3)\t@ aese q2,q1\n\tINST(0x84,0x43,0xb0,0xf3)\t@ aesmc q2,q2\n\tvld1.32\t{q1},[r2]!\n\tbgt\t.Loop_enc\n\n\tINST(0x00,0x43,0xb0,0xf3)\t@ aese q2,q0\n\tINST(0x84,0x43,0xb0,0xf3)\t@ aesmc q2,q2\n\tvld1.32\t{q0},[r2]\n\tINST(0x02,0x43,0xb0,0xf3)\t@ aese q2,q1\n\tveor\tq2,q2,q0\n\n\tvst1.8\t{q2},[r1]\n\tRET\n.size\taes_v8_encrypt,.-aes_v8_encrypt\n.globl\taes_v8_decrypt\n.type\taes_v8_decrypt,%function\n.align\t5\naes_v8_decrypt:\n\tldr\tr3,[r2,#240]\n\tvld1.32\t{q0},[r2]!\n\tvld1.8\t{q2},[r0]\n\tsub\tr3,r3,#2\n\tvld1.32\t{q1},[r2]!\n\n.Loop_dec:\n\tINST(0x40,0x43,0xb0,0xf3)\t@ aesd q2,q0\n\tINST(0xc4,0x43,0xb0,0xf3)\t@ aesimc q2,q2\n\tvld1.32\t{q0},[r2]!\n\tsubs\tr3,r3,#2\n\tINST(0x42,0x43,0xb0,0xf3)\t@ aesd q2,q1\n\tINST(0xc4,0x43,0xb0,0xf3)\t@ aesimc q2,q2\n\tvld1.32\t{q1},[r2]!\n\tbgt\t.Loop_dec\n\n\tINST(0x40,0x43,0xb0,0xf3)\t@ aesd q2,q0\n\tINST(0xc4,0x43,0xb0,0xf3)\t@ aesimc q2,q2\n\tvld1.32\t{q0},[r2]\n\tINST(0x42,0x43,0xb0,0xf3)\t@ aesd q2,q1\n\tveor\tq2,q2,q0\n\n\tvst1.8\t{q2},[r1]\n\tRET\n.size\taes_v8_decrypt,.-aes_v8_decrypt\n.globl\taes_v8_ecb_encrypt\n.type\taes_v8_ecb_encrypt,%function\n.align\t5\naes_v8_ecb_encrypt:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,lr}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t\t@ ABI specification says so\n\tldmia\tip,{r4,r5}\t\t\t@ load remaining args\n\tsubs\tr2,r2,#16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:8", "text": "bgt\t.Loop_dec\n\n\tINST(0x40,0x43,0xb0,0xf3)\t@ aesd q2,q0\n\tINST(0xc4,0x43,0xb0,0xf3)\t@ aesimc q2,q2\n\tvld1.32\t{q0},[r2]\n\tINST(0x42,0x43,0xb0,0xf3)\t@ aesd q2,q1\n\tveor\tq2,q2,q0\n\n\tvst1.8\t{q2},[r1]\n\tRET\n.size\taes_v8_decrypt,.-aes_v8_decrypt\n.globl\taes_v8_ecb_encrypt\n.type\taes_v8_ecb_encrypt,%function\n.align\t5\naes_v8_ecb_encrypt:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,lr}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t\t@ ABI specification says so\n\tldmia\tip,{r4,r5}\t\t\t@ load remaining args\n\tsubs\tr2,r2,#16\n\tmov\tr8,#16\n\tblo\t.Lecb_done\n\tit\teq\n\tmoveq\tr8,#0\n\n\tcmp\tr4,#0\t\t\t\t\t@ en- or decrypting?\n\tldr\tr5,[r3,#240]\n\tand\tr2,r2,#-16\n\tvld1.8\t{q0},[r0],r8\n\n\tvld1.32\t{q8,q9},[r3]\t\t\t\t@ load key schedule...\n\tsub\tr5,r5,#6\n\tadd\tr7,r3,r5,lsl#4\t\t\t\t@ pointer to last 7 round keys\n\tsub\tr5,r5,#2\n\tvld1.32\t{q10,q11},[r7]!\n\tvld1.32\t{q12,q13},[r7]!\n\tvld1.32\t{q14,q15},[r7]!\n\tvld1.32\t{q7},[r7]\n\n\tadd\tr7,r3,#32\n\tmov\tr6,r5\n\tbeq\t.Lecb_dec\n\n\tvld1.8\t{q1},[r0]!\n\tsubs\tr2,r2,#32\t\t\t\t@ bias\n\tadd\tr6,r5,#2\n\tvorr\tq3,q1,q1\n\tvorr\tq10,q1,q1\n\tvorr\tq1,q0,q0\n\tblo\t.Lecb_enc_tail\n\n\tvorr\tq1,q3,q3\n\tvld1.8\t{q10},[r0]!\n.Loop3x_ecb_enc:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:9", "text": "mov\tr6,r5\n\tbeq\t.Lecb_dec\n\n\tvld1.8\t{q1},[r0]!\n\tsubs\tr2,r2,#32\t\t\t\t@ bias\n\tadd\tr6,r5,#2\n\tvorr\tq3,q1,q1\n\tvorr\tq10,q1,q1\n\tvorr\tq1,q0,q0\n\tblo\t.Lecb_enc_tail\n\n\tvorr\tq1,q3,q3\n\tvld1.8\t{q10},[r0]!\n.Loop3x_ecb_enc:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Loop3x_ecb_enc\n\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tsubs\tr2,r2,#0x30\n\tit\tlo\n\tmovlo\tr6,r2\t\t\t\t@ r6, r6, is zero at this point\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tadd\tr0,r0,r6\t\t\t@ r0 is adjusted in such way that\n\t\t\t\t\t\t@ at exit from the loop q1-q10\n\t\t\t\t\t\t@ are loaded with last \"words\"\n\tmov\tr7,r3\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x28,0x23,0xb0,0xf3)\t@ aese q1,q12\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x28,0x43,0xf0,0xf3)\t@ aese q10,q12\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.8\t{q2},[r0]!\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2a,0x23,0xb0,0xf3)\t@ aese q1,q13", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:10", "text": "INST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tadd\tr0,r0,r6\t\t\t@ r0 is adjusted in such way that\n\t\t\t\t\t\t@ at exit from the loop q1-q10\n\t\t\t\t\t\t@ are loaded with last \"words\"\n\tmov\tr7,r3\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x28,0x23,0xb0,0xf3)\t@ aese q1,q12\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x28,0x43,0xf0,0xf3)\t@ aese q10,q12\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.8\t{q2},[r0]!\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2a,0x23,0xb0,0xf3)\t@ aese q1,q13\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x2a,0x43,0xf0,0xf3)\t@ aese q10,q13\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.8\t{q3},[r0]!\n\tINST(0x2c,0x03,0xb0,0xf3)\t@ aese q0,q14\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2c,0x23,0xb0,0xf3)\t@ aese q1,q14\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x2c,0x43,0xf0,0xf3)\t@ aese q10,q14\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.8\t{q11},[r0]!\n\tINST(0x2e,0x03,0xb0,0xf3)\t@ aese q0,q15\n\tINST(0x2e,0x23,0xb0,0xf3)\t@ aese q1,q15\n\tINST(0x2e,0x43,0xf0,0xf3)\t@ aese q10,q15\n\tvld1.32\t{q8},[r7]!\t\t@ re-pre-load rndkey[0]\n\tadd\tr6,r5,#2\n\tveor\tq4,q7,q0\n\tveor\tq5,q7,q1\n\tveor\tq10,q10,q7\n\tvld1.32\t{q9},[r7]!\t\t@ re-pre-load rndkey[1]\n\tvst1.8\t{q4},[r1]!\n\tvorr\tq0,q2,q2\n\tvst1.8\t{q5},[r1]!\n\tvorr\tq1,q3,q3\n\tvst1.8\t{q10},[r1]!\n\tvorr\tq10,q11,q11\n\tbhs\t.Loop3x_ecb_enc\n\n\tcmn\tr2,#0x30\n\tbeq\t.Lecb_done\n\tnop\n\n.Lecb_enc_tail:\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:11", "text": "vst1.8\t{q4},[r1]!\n\tvorr\tq0,q2,q2\n\tvst1.8\t{q5},[r1]!\n\tvorr\tq1,q3,q3\n\tvst1.8\t{q10},[r1]!\n\tvorr\tq10,q11,q11\n\tbhs\t.Loop3x_ecb_enc\n\n\tcmn\tr2,#0x30\n\tbeq\t.Lecb_done\n\tnop\n\n.Lecb_enc_tail:\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lecb_enc_tail\n\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tINST(0x28,0x23,0xb0,0xf3)\t@ aese q1,q12\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x28,0x43,0xf0,0xf3)\t@ aese q10,q12\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tcmn\tr2,#0x20\n\tINST(0x2a,0x23,0xb0,0xf3)\t@ aese q1,q13\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x2a,0x43,0xf0,0xf3)\t@ aese q10,q13\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tINST(0x2c,0x23,0xb0,0xf3)\t@ aese q1,q14\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x2c,0x43,0xf0,0xf3)\t@ aese q10,q14\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tINST(0x2e,0x23,0xb0,0xf3)\t@ aese q1,q15\n\tINST(0x2e,0x43,0xf0,0xf3)\t@ aese q10,q15\n\tbeq\t.Lecb_enc_one\n\tveor\tq5,q7,q1\n\tveor\tq9,q7,q10\n\tvst1.8\t{q5},[r1]!\n\tvst1.8\t{q9},[r1]!\n\tb\t.Lecb_done\n\n.Lecb_enc_one:\n\tveor\tq5,q7,q10\n\tvst1.8\t{q5},[r1]!\n\tb\t.Lecb_done", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:12", "text": "INST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x2a,0x43,0xf0,0xf3)\t@ aese q10,q13\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tINST(0x2c,0x23,0xb0,0xf3)\t@ aese q1,q14\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x2c,0x43,0xf0,0xf3)\t@ aese q10,q14\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tINST(0x2e,0x23,0xb0,0xf3)\t@ aese q1,q15\n\tINST(0x2e,0x43,0xf0,0xf3)\t@ aese q10,q15\n\tbeq\t.Lecb_enc_one\n\tveor\tq5,q7,q1\n\tveor\tq9,q7,q10\n\tvst1.8\t{q5},[r1]!\n\tvst1.8\t{q9},[r1]!\n\tb\t.Lecb_done\n\n.Lecb_enc_one:\n\tveor\tq5,q7,q10\n\tvst1.8\t{q5},[r1]!\n\tb\t.Lecb_done\n.align\t5\n.Lecb_dec:\n\tvld1.8\t{q1},[r0]!\n\tsubs\tr2,r2,#32\t\t\t@ bias\n\tadd\tr6,r5,#2\n\tvorr\tq3,q1,q1\n\tvorr\tq10,q1,q1\n\tvorr\tq1,q0,q0\n\tblo\t.Lecb_dec_tail\n\n\tvorr\tq1,q3,q3\n\tvld1.8\t{q10},[r0]!\n.Loop3x_ecb_dec:\n\tINST(0x60,0x03,0xb0,0xf3)\t@ aesd q0,q8\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Loop3x_ecb_dec\n\n\tINST(0x60,0x03,0xb0,0xf3)\t@ aesd q0,q8\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tsubs\tr2,r2,#0x30\n\tit\tlo\n\tmovlo\tr6,r2\t\t\t\t@ r6, r6, is zero at this point\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:13", "text": "subs\tr6,r6,#2\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Loop3x_ecb_dec\n\n\tINST(0x60,0x03,0xb0,0xf3)\t@ aesd q0,q8\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tsubs\tr2,r2,#0x30\n\tit\tlo\n\tmovlo\tr6,r2\t\t\t\t@ r6, r6, is zero at this point\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tadd\tr0,r0,r6 \t\t\t@ r0 is adjusted in such way that\n\t\t\t\t\t\t@ at exit from the loop q1-q10\n\t\t\t\t\t\t@ are loaded with last \"words\"\n\tmov\tr7,r3\n\tINST(0x68,0x03,0xb0,0xf3)\t@ aesd q0,q12\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x68,0x23,0xb0,0xf3)\t@ aesd q1,q12\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x68,0x43,0xf0,0xf3)\t@ aesd q10,q12\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q2},[r0]!\n\tINST(0x6a,0x03,0xb0,0xf3)\t@ aesd q0,q13\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6a,0x23,0xb0,0xf3)\t@ aesd q1,q13\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6a,0x43,0xf0,0xf3)\t@ aesd q10,q13\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q3},[r0]!\n\tINST(0x6c,0x03,0xb0,0xf3)\t@ aesd q0,q14\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6c,0x23,0xb0,0xf3)\t@ aesd q1,q14\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6c,0x43,0xf0,0xf3)\t@ aesd q10,q14\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q11},[r0]!\n\tINST(0x6e,0x03,0xb0,0xf3)\t@ aesd q0,q15\n\tINST(0x6e,0x23,0xb0,0xf3)\t@ aesd q1,q15\n\tINST(0x6e,0x43,0xf0,0xf3)\t@ aesd q10,q15\n\tvld1.32\t{q8},[r7]!\t\t\t@ re-pre-load rndkey[0]\n\tadd\tr6,r5,#2\n\tveor\tq4,q7,q0\n\tveor\tq5,q7,q1\n\tveor\tq10,q10,q7\n\tvld1.32\t{q9},[r7]!\t\t\t@ re-pre-load rndkey[1]\n\tvst1.8\t{q4},[r1]!", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:14", "text": "INST(0x6a,0x43,0xf0,0xf3)\t@ aesd q10,q13\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q3},[r0]!\n\tINST(0x6c,0x03,0xb0,0xf3)\t@ aesd q0,q14\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6c,0x23,0xb0,0xf3)\t@ aesd q1,q14\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6c,0x43,0xf0,0xf3)\t@ aesd q10,q14\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q11},[r0]!\n\tINST(0x6e,0x03,0xb0,0xf3)\t@ aesd q0,q15\n\tINST(0x6e,0x23,0xb0,0xf3)\t@ aesd q1,q15\n\tINST(0x6e,0x43,0xf0,0xf3)\t@ aesd q10,q15\n\tvld1.32\t{q8},[r7]!\t\t\t@ re-pre-load rndkey[0]\n\tadd\tr6,r5,#2\n\tveor\tq4,q7,q0\n\tveor\tq5,q7,q1\n\tveor\tq10,q10,q7\n\tvld1.32\t{q9},[r7]!\t\t\t@ re-pre-load rndkey[1]\n\tvst1.8\t{q4},[r1]!\n\tvorr\tq0,q2,q2\n\tvst1.8\t{q5},[r1]!\n\tvorr\tq1,q3,q3\n\tvst1.8\t{q10},[r1]!\n\tvorr\tq10,q11,q11\n\tbhs\t.Loop3x_ecb_dec\n\n\tcmn\tr2,#0x30\n\tbeq\t.Lecb_done\n\tnop\n\n.Lecb_dec_tail:\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lecb_dec_tail\n\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x68,0x23,0xb0,0xf3)\t@ aesd q1,q12\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x68,0x43,0xf0,0xf3)\t@ aesd q10,q12\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tcmn\tr2,#0x20\n\tINST(0x6a,0x23,0xb0,0xf3)\t@ aesd q1,q13\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:15", "text": "INST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lecb_dec_tail\n\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x68,0x23,0xb0,0xf3)\t@ aesd q1,q12\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x68,0x43,0xf0,0xf3)\t@ aesd q10,q12\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tcmn\tr2,#0x20\n\tINST(0x6a,0x23,0xb0,0xf3)\t@ aesd q1,q13\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6a,0x43,0xf0,0xf3)\t@ aesd q10,q13\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x6c,0x23,0xb0,0xf3)\t@ aesd q1,q14\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6c,0x43,0xf0,0xf3)\t@ aesd q10,q14\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x6e,0x23,0xb0,0xf3)\t@ aesd q1,q15\n\tINST(0x6e,0x43,0xf0,0xf3)\t@ aesd q10,q15\n\tbeq\t.Lecb_dec_one\n\tveor\tq5,q7,q1\n\tveor\tq9,q7,q10\n\tvst1.8\t{q5},[r1]!\n\tvst1.8\t{q9},[r1]!\n\tb\t.Lecb_done\n\n.Lecb_dec_one:\n\tveor\tq5,q7,q10\n\tvst1.8\t{q5},[r1]!\n\n.Lecb_done:\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,pc}\n.size\taes_v8_ecb_encrypt,.-aes_v8_ecb_encrypt\n.globl\taes_v8_cbc_encrypt\n.type\taes_v8_cbc_encrypt,%function\n.align\t5\naes_v8_cbc_encrypt:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,lr}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}            @ ABI specification says so\n\tldmia\tip,{r4,r5}\t\t@ load remaining args\n\tsubs\tr2,r2,#16\n\tmov\tr8,#16\n\tblo\t.Lcbc_abort\n\tit\teq\n\tmoveq\tr8,#0\n\n\tcmp\tr5,#0\t\t\t@ en- or decrypting?\n\tldr\tr5,[r3,#240]\n\tand\tr2,r2,#-16", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:16", "text": "vldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,pc}\n.size\taes_v8_ecb_encrypt,.-aes_v8_ecb_encrypt\n.globl\taes_v8_cbc_encrypt\n.type\taes_v8_cbc_encrypt,%function\n.align\t5\naes_v8_cbc_encrypt:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,lr}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}            @ ABI specification says so\n\tldmia\tip,{r4,r5}\t\t@ load remaining args\n\tsubs\tr2,r2,#16\n\tmov\tr8,#16\n\tblo\t.Lcbc_abort\n\tit\teq\n\tmoveq\tr8,#0\n\n\tcmp\tr5,#0\t\t\t@ en- or decrypting?\n\tldr\tr5,[r3,#240]\n\tand\tr2,r2,#-16\n\tvld1.8\t{q6},[r4]\n\tvld1.8\t{q0},[r0],r8\n\n\tvld1.32\t{q8,q9},[r3]\t\t@ load key schedule...\n\tsub\tr5,r5,#6\n\tadd\tr7,r3,r5,lsl#4\t@ pointer to last 7 round keys\n\tsub\tr5,r5,#2\n\tvld1.32\t{q10,q11},[r7]!\n\tvld1.32\t{q12,q13},[r7]!\n\tvld1.32\t{q14,q15},[r7]!\n\tvld1.32\t{q7},[r7]\n\n\tadd\tr7,r3,#32\n\tmov\tr6,r5\n\tbeq\t.Lcbc_dec\n\n\tcmp\tr5,#2\n\tveor\tq0,q0,q6\n\tveor\tq5,q8,q7\n\tbeq\t.Lcbc_enc128\n\n\tvld1.32\t{q2,q3},[r7]\n\tadd\tr7,r3,#16\n\tadd\tr6,r3,#16*4\n\tadd\tr12,r3,#16*5\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tadd\tr14,r3,#16*6\n\tadd\tr3,r3,#16*7\n\tb\t.Lenter_cbc_enc\n\n.align\t4\n.Loop_cbc_enc:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvst1.8\t{q6},[r1]!\n.Lenter_cbc_enc:\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x04,0x03,0xb0,0xf3)\t@ aese q0,q2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:17", "text": "vld1.32\t{q2,q3},[r7]\n\tadd\tr7,r3,#16\n\tadd\tr6,r3,#16*4\n\tadd\tr12,r3,#16*5\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tadd\tr14,r3,#16*6\n\tadd\tr3,r3,#16*7\n\tb\t.Lenter_cbc_enc\n\n.align\t4\n.Loop_cbc_enc:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvst1.8\t{q6},[r1]!\n.Lenter_cbc_enc:\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x04,0x03,0xb0,0xf3)\t@ aese q0,q2\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.32\t{q8},[r6]\n\tcmp\tr5,#4\n\tINST(0x06,0x03,0xb0,0xf3)\t@ aese q0,q3\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.32\t{q9},[r12]\n\tbeq\t.Lcbc_enc192\n\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.32\t{q8},[r14]\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.32\t{q9},[r3]\n\tnop\n\n.Lcbc_enc192:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tsubs\tr2,r2,#16\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tit\teq\n\tmoveq\tr8,#0\n\tINST(0x24,0x03,0xb0,0xf3)\t@ aese q0,q10\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x26,0x03,0xb0,0xf3)\t@ aese q0,q11\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.8\t{q8},[r0],r8\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tveor\tq8,q8,q5\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.32\t{q9},[r7]\t\t@ re-pre-load rndkey[1]\n\tINST(0x2c,0x03,0xb0,0xf3)\t@ aese q0,q14\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2e,0x03,0xb0,0xf3)\t@ aese q0,q15\n\tveor\tq6,q0,q7\n\tbhs\t.Loop_cbc_enc", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:18", "text": "INST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tit\teq\n\tmoveq\tr8,#0\n\tINST(0x24,0x03,0xb0,0xf3)\t@ aese q0,q10\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x26,0x03,0xb0,0xf3)\t@ aese q0,q11\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.8\t{q8},[r0],r8\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tveor\tq8,q8,q5\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.32\t{q9},[r7]\t\t@ re-pre-load rndkey[1]\n\tINST(0x2c,0x03,0xb0,0xf3)\t@ aese q0,q14\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2e,0x03,0xb0,0xf3)\t@ aese q0,q15\n\tveor\tq6,q0,q7\n\tbhs\t.Loop_cbc_enc\n\n\tvst1.8\t{q6},[r1]!\n\tb\t.Lcbc_done\n\n.align\t5\n.Lcbc_enc128:\n\tvld1.32\t{q2,q3},[r7]\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tb\t.Lenter_cbc_enc128\n.Loop_cbc_enc128:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvst1.8\t{q6},[r1]!\n.Lenter_cbc_enc128:\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tsubs\tr2,r2,#16\n\tINST(0x04,0x03,0xb0,0xf3)\t@ aese q0,q2\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tit\teq\n\tmoveq\tr8,#0\n\tINST(0x06,0x03,0xb0,0xf3)\t@ aese q0,q3\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x24,0x03,0xb0,0xf3)\t@ aese q0,q10\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x26,0x03,0xb0,0xf3)\t@ aese q0,q11\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.8\t{q8},[r0],r8\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2c,0x03,0xb0,0xf3)\t@ aese q0,q14\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tveor\tq8,q8,q5\n\tINST(0x2e,0x03,0xb0,0xf3)\t@ aese q0,q15\n\tveor\tq6,q0,q7\n\tbhs\t.Loop_cbc_enc128", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:19", "text": "it\teq\n\tmoveq\tr8,#0\n\tINST(0x06,0x03,0xb0,0xf3)\t@ aese q0,q3\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x24,0x03,0xb0,0xf3)\t@ aese q0,q10\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x26,0x03,0xb0,0xf3)\t@ aese q0,q11\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tvld1.8\t{q8},[r0],r8\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2c,0x03,0xb0,0xf3)\t@ aese q0,q14\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tveor\tq8,q8,q5\n\tINST(0x2e,0x03,0xb0,0xf3)\t@ aese q0,q15\n\tveor\tq6,q0,q7\n\tbhs\t.Loop_cbc_enc128\n\n\tvst1.8\t{q6},[r1]!\n\tb\t.Lcbc_done\n.align\t5\n.Lcbc_dec:\n\tvld1.8\t{q10},[r0]!\n\tsubs\tr2,r2,#32\t\t@ bias\n\tadd\tr6,r5,#2\n\tvorr\tq3,q0,q0\n\tvorr\tq1,q0,q0\n\tvorr\tq11,q10,q10\n\tblo\t.Lcbc_dec_tail\n\n\tvorr\tq1,q10,q10\n\tvld1.8\t{q10},[r0]!\n\tvorr\tq2,q0,q0\n\tvorr\tq3,q1,q1\n\tvorr\tq11,q10,q10\n.Loop3x_cbc_dec:\n\tINST(0x60,0x03,0xb0,0xf3)\t@ aesd q0,q8\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Loop3x_cbc_dec\n\n\tINST(0x60,0x03,0xb0,0xf3)\t@ aesd q0,q8\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:20", "text": "INST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Loop3x_cbc_dec\n\n\tINST(0x60,0x03,0xb0,0xf3)\t@ aesd q0,q8\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tveor\tq4,q6,q7\n\tsubs\tr2,r2,#0x30\n\tveor\tq5,q2,q7\n\tit\tlo\n\tmovlo\tr6,r2\t\t\t@ r6, r6, is zero at this point\n\tINST(0x62,0x03,0xb0,0xf3)\t@ aesd q0,q9\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tveor\tq9,q3,q7\n\tadd\tr0,r0,r6\t\t@ r0 is adjusted in such way that\n\t\t\t\t\t@ at exit from the loop q1-q10\n\t\t\t\t\t@ are loaded with last \"words\"\n\tvorr\tq6,q11,q11\n\tmov\tr7,r3\n\tINST(0x68,0x03,0xb0,0xf3)\t@ aesd q0,q12\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x68,0x23,0xb0,0xf3)\t@ aesd q1,q12\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x68,0x43,0xf0,0xf3)\t@ aesd q10,q12\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q2},[r0]!\n\tINST(0x6a,0x03,0xb0,0xf3)\t@ aesd q0,q13\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6a,0x23,0xb0,0xf3)\t@ aesd q1,q13\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6a,0x43,0xf0,0xf3)\t@ aesd q10,q13\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q3},[r0]!\n\tINST(0x6c,0x03,0xb0,0xf3)\t@ aesd q0,q14\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6c,0x23,0xb0,0xf3)\t@ aesd q1,q14\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6c,0x43,0xf0,0xf3)\t@ aesd q10,q14\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q11},[r0]!\n\tINST(0x6e,0x03,0xb0,0xf3)\t@ aesd q0,q15", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:21", "text": "INST(0x68,0x23,0xb0,0xf3)\t@ aesd q1,q12\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x68,0x43,0xf0,0xf3)\t@ aesd q10,q12\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q2},[r0]!\n\tINST(0x6a,0x03,0xb0,0xf3)\t@ aesd q0,q13\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6a,0x23,0xb0,0xf3)\t@ aesd q1,q13\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6a,0x43,0xf0,0xf3)\t@ aesd q10,q13\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q3},[r0]!\n\tINST(0x6c,0x03,0xb0,0xf3)\t@ aesd q0,q14\n\tINST(0xc0,0x03,0xb0,0xf3)\t@ aesimc q0,q0\n\tINST(0x6c,0x23,0xb0,0xf3)\t@ aesd q1,q14\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6c,0x43,0xf0,0xf3)\t@ aesd q10,q14\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.8\t{q11},[r0]!\n\tINST(0x6e,0x03,0xb0,0xf3)\t@ aesd q0,q15\n\tINST(0x6e,0x23,0xb0,0xf3)\t@ aesd q1,q15\n\tINST(0x6e,0x43,0xf0,0xf3)\t@ aesd q10,q15\n\tvld1.32\t{q8},[r7]!\t@ re-pre-load rndkey[0]\n\tadd\tr6,r5,#2\n\tveor\tq4,q4,q0\n\tveor\tq5,q5,q1\n\tveor\tq10,q10,q9\n\tvld1.32\t{q9},[r7]!\t@ re-pre-load rndkey[1]\n\tvst1.8\t{q4},[r1]!\n\tvorr\tq0,q2,q2\n\tvst1.8\t{q5},[r1]!\n\tvorr\tq1,q3,q3\n\tvst1.8\t{q10},[r1]!\n\tvorr\tq10,q11,q11\n\tbhs\t.Loop3x_cbc_dec\n\n\tcmn\tr2,#0x30\n\tbeq\t.Lcbc_done\n\tnop\n\n.Lcbc_dec_tail:\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lcbc_dec_tail\n\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:22", "text": ".Lcbc_dec_tail:\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lcbc_dec_tail\n\n\tINST(0x60,0x23,0xb0,0xf3)\t@ aesd q1,q8\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x60,0x43,0xf0,0xf3)\t@ aesd q10,q8\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x62,0x23,0xb0,0xf3)\t@ aesd q1,q9\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x62,0x43,0xf0,0xf3)\t@ aesd q10,q9\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tINST(0x68,0x23,0xb0,0xf3)\t@ aesd q1,q12\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x68,0x43,0xf0,0xf3)\t@ aesd q10,q12\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tcmn\tr2,#0x20\n\tINST(0x6a,0x23,0xb0,0xf3)\t@ aesd q1,q13\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6a,0x43,0xf0,0xf3)\t@ aesd q10,q13\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tveor\tq5,q6,q7\n\tINST(0x6c,0x23,0xb0,0xf3)\t@ aesd q1,q14\n\tINST(0xc2,0x23,0xb0,0xf3)\t@ aesimc q1,q1\n\tINST(0x6c,0x43,0xf0,0xf3)\t@ aesd q10,q14\n\tINST(0xe4,0x43,0xf0,0xf3)\t@ aesimc q10,q10\n\tveor\tq9,q3,q7\n\tINST(0x6e,0x23,0xb0,0xf3)\t@ aesd q1,q15\n\tINST(0x6e,0x43,0xf0,0xf3)\t@ aesd q10,q15\n\tbeq\t.Lcbc_dec_one\n\tveor\tq5,q5,q1\n\tveor\tq9,q9,q10\n\tvorr\tq6,q11,q11\n\tvst1.8\t{q5},[r1]!\n\tvst1.8\t{q9},[r1]!\n\tb\t.Lcbc_done\n\n.Lcbc_dec_one:\n\tveor\tq5,q5,q10\n\tvorr\tq6,q11,q11\n\tvst1.8\t{q5},[r1]!\n\n.Lcbc_done:\n\tvst1.8\t{q6},[r4]\n.Lcbc_abort:\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,pc}\n.size\taes_v8_cbc_encrypt,.-aes_v8_cbc_encrypt\n.globl\taes_v8_ctr32_encrypt_blocks\n.type\taes_v8_ctr32_encrypt_blocks,%function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:23", "text": "veor\tq5,q5,q1\n\tveor\tq9,q9,q10\n\tvorr\tq6,q11,q11\n\tvst1.8\t{q5},[r1]!\n\tvst1.8\t{q9},[r1]!\n\tb\t.Lcbc_done\n\n.Lcbc_dec_one:\n\tveor\tq5,q5,q10\n\tvorr\tq6,q11,q11\n\tvst1.8\t{q5},[r1]!\n\n.Lcbc_done:\n\tvst1.8\t{q6},[r4]\n.Lcbc_abort:\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,pc}\n.size\taes_v8_cbc_encrypt,.-aes_v8_cbc_encrypt\n.globl\taes_v8_ctr32_encrypt_blocks\n.type\taes_v8_ctr32_encrypt_blocks,%function\n.align\t5\naes_v8_ctr32_encrypt_blocks:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,lr}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}            @ ABI specification says so\n\tldr\tr4, [ip]\t\t@ load remaining arg\n\tldr\tr5,[r3,#240]\n\n\tldr\tr8, [r4, #12]\n#ifdef __ARMEB__\n\tvld1.8\t{q0},[r4]\n#else\n\tvld1.32\t{q0},[r4]\n#endif\n\tvld1.32\t{q8,q9},[r3]\t\t@ load key schedule...\n\tsub\tr5,r5,#4\n\tmov\tr12,#16\n\tcmp\tr2,#2\n\tadd\tr7,r3,r5,lsl#4\t@ pointer to last 5 round keys\n\tsub\tr5,r5,#2\n\tvld1.32\t{q12,q13},[r7]!\n\tvld1.32\t{q14,q15},[r7]!\n\tvld1.32\t{q7},[r7]\n\tadd\tr7,r3,#32\n\tmov\tr6,r5\n\tit\tlo\n\tmovlo\tr12,#0\n#ifndef __ARMEB__\n\trev\tr8, r8\n#endif\n\tadd\tr10, r8, #1\n\tvorr\tq6,q0,q0\n\trev\tr10, r10\n\tvmov.32\td13[1],r10\n\tadd\tr8, r8, #2\n\tvorr\tq1,q6,q6\n\tbls\t.Lctr32_tail\n\trev\tr12, r8\n\tvmov.32\td13[1],r12\n\tsub\tr2,r2,#3\t\t@ bias", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:24", "text": "vld1.32\t{q12,q13},[r7]!\n\tvld1.32\t{q14,q15},[r7]!\n\tvld1.32\t{q7},[r7]\n\tadd\tr7,r3,#32\n\tmov\tr6,r5\n\tit\tlo\n\tmovlo\tr12,#0\n#ifndef __ARMEB__\n\trev\tr8, r8\n#endif\n\tadd\tr10, r8, #1\n\tvorr\tq6,q0,q0\n\trev\tr10, r10\n\tvmov.32\td13[1],r10\n\tadd\tr8, r8, #2\n\tvorr\tq1,q6,q6\n\tbls\t.Lctr32_tail\n\trev\tr12, r8\n\tvmov.32\td13[1],r12\n\tsub\tr2,r2,#3\t\t@ bias\n\tvorr\tq10,q6,q6\n\tb\t.Loop3x_ctr32\n\n.align\t4\n.Loop3x_ctr32:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Loop3x_ctr32\n\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x83,0xb0,0xf3)\t@ aesmc q4,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0xa3,0xb0,0xf3)\t@ aesmc q5,q1\n\tvld1.8\t{q2},[r0]!\n\tadd\tr9,r8,#1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.8\t{q3},[r0]!\n\trev\tr9,r9\n\tINST(0x22,0x83,0xb0,0xf3)\t@ aese q4,q9\n\tINST(0x88,0x83,0xb0,0xf3)\t@ aesmc q4,q4\n\tINST(0x22,0xa3,0xb0,0xf3)\t@ aese q5,q9\n\tINST(0x8a,0xa3,0xb0,0xf3)\t@ aesmc q5,q5\n\tvld1.8\t{q11},[r0]!\n\tmov\tr7,r3\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x23,0xf0,0xf3)\t@ aesmc q9,q10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:25", "text": "bgt\t.Loop3x_ctr32\n\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x83,0xb0,0xf3)\t@ aesmc q4,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0xa3,0xb0,0xf3)\t@ aesmc q5,q1\n\tvld1.8\t{q2},[r0]!\n\tadd\tr9,r8,#1\n\tINST(0x20,0x43,0xf0,0xf3)\t@ aese q10,q8\n\tINST(0xa4,0x43,0xf0,0xf3)\t@ aesmc q10,q10\n\tvld1.8\t{q3},[r0]!\n\trev\tr9,r9\n\tINST(0x22,0x83,0xb0,0xf3)\t@ aese q4,q9\n\tINST(0x88,0x83,0xb0,0xf3)\t@ aesmc q4,q4\n\tINST(0x22,0xa3,0xb0,0xf3)\t@ aese q5,q9\n\tINST(0x8a,0xa3,0xb0,0xf3)\t@ aesmc q5,q5\n\tvld1.8\t{q11},[r0]!\n\tmov\tr7,r3\n\tINST(0x22,0x43,0xf0,0xf3)\t@ aese q10,q9\n\tINST(0xa4,0x23,0xf0,0xf3)\t@ aesmc q9,q10\n\tINST(0x28,0x83,0xb0,0xf3)\t@ aese q4,q12\n\tINST(0x88,0x83,0xb0,0xf3)\t@ aesmc q4,q4\n\tINST(0x28,0xa3,0xb0,0xf3)\t@ aese q5,q12\n\tINST(0x8a,0xa3,0xb0,0xf3)\t@ aesmc q5,q5\n\tveor\tq2,q2,q7\n\tadd\tr10,r8,#2\n\tINST(0x28,0x23,0xf0,0xf3)\t@ aese q9,q12\n\tINST(0xa2,0x23,0xf0,0xf3)\t@ aesmc q9,q9\n\tveor\tq3,q3,q7\n\tadd\tr8,r8,#3\n\tINST(0x2a,0x83,0xb0,0xf3)\t@ aese q4,q13\n\tINST(0x88,0x83,0xb0,0xf3)\t@ aesmc q4,q4\n\tINST(0x2a,0xa3,0xb0,0xf3)\t@ aese q5,q13\n\tINST(0x8a,0xa3,0xb0,0xf3)\t@ aesmc q5,q5\n\tveor\tq11,q11,q7\n\tvmov.32\td13[1], r9\n\tINST(0x2a,0x23,0xf0,0xf3)\t@ aese q9,q13\n\tINST(0xa2,0x23,0xf0,0xf3)\t@ aesmc q9,q9\n\tvorr\tq0,q6,q6\n\trev\tr10,r10\n\tINST(0x2c,0x83,0xb0,0xf3)\t@ aese q4,q14\n\tINST(0x88,0x83,0xb0,0xf3)\t@ aesmc q4,q4\n\tvmov.32\td13[1], r10\n\trev\tr12,r8\n\tINST(0x2c,0xa3,0xb0,0xf3)\t@ aese q5,q14\n\tINST(0x8a,0xa3,0xb0,0xf3)\t@ aesmc q5,q5\n\tvorr\tq1,q6,q6\n\tvmov.32\td13[1], r12\n\tINST(0x2c,0x23,0xf0,0xf3)\t@ aese q9,q14\n\tINST(0xa2,0x23,0xf0,0xf3)\t@ aesmc q9,q9\n\tvorr\tq10,q6,q6\n\tsubs\tr2,r2,#3\n\tINST(0x2e,0x83,0xb0,0xf3)\t@ aese q4,q15\n\tINST(0x2e,0xa3,0xb0,0xf3)\t@ aese q5,q15\n\tINST(0x2e,0x23,0xf0,0xf3)\t@ aese q9,q15\n\n\tveor\tq2,q2,q4\n\tvld1.32\t{q8},[r7]!\t@ re-pre-load rndkey[0]\n\tvst1.8\t{q2},[r1]!\n\tveor\tq3,q3,q5", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:26", "text": "INST(0x2c,0x83,0xb0,0xf3)\t@ aese q4,q14\n\tINST(0x88,0x83,0xb0,0xf3)\t@ aesmc q4,q4\n\tvmov.32\td13[1], r10\n\trev\tr12,r8\n\tINST(0x2c,0xa3,0xb0,0xf3)\t@ aese q5,q14\n\tINST(0x8a,0xa3,0xb0,0xf3)\t@ aesmc q5,q5\n\tvorr\tq1,q6,q6\n\tvmov.32\td13[1], r12\n\tINST(0x2c,0x23,0xf0,0xf3)\t@ aese q9,q14\n\tINST(0xa2,0x23,0xf0,0xf3)\t@ aesmc q9,q9\n\tvorr\tq10,q6,q6\n\tsubs\tr2,r2,#3\n\tINST(0x2e,0x83,0xb0,0xf3)\t@ aese q4,q15\n\tINST(0x2e,0xa3,0xb0,0xf3)\t@ aese q5,q15\n\tINST(0x2e,0x23,0xf0,0xf3)\t@ aese q9,q15\n\n\tveor\tq2,q2,q4\n\tvld1.32\t{q8},[r7]!\t@ re-pre-load rndkey[0]\n\tvst1.8\t{q2},[r1]!\n\tveor\tq3,q3,q5\n\tmov\tr6,r5\n\tvst1.8\t{q3},[r1]!\n\tveor\tq11,q11,q9\n\tvld1.32\t{q9},[r7]!\t@ re-pre-load rndkey[1]\n\tvst1.8\t{q11},[r1]!\n\tbhs\t.Loop3x_ctr32\n\n\tadds\tr2,r2,#3\n\tbeq\t.Lctr32_done\n\tcmp\tr2,#1\n\tmov\tr12,#16\n\tit\teq\n\tmoveq\tr12,#0\n\n.Lctr32_tail:\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tvld1.32\t{q8},[r7]!\n\tsubs\tr6,r6,#2\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lctr32_tail\n\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tvld1.8\t{q2},[r0],r12\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x28,0x23,0xb0,0xf3)\t@ aese q1,q12", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S:27", "text": "subs\tr6,r6,#2\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tvld1.32\t{q9},[r7]!\n\tbgt\t.Lctr32_tail\n\n\tINST(0x20,0x03,0xb0,0xf3)\t@ aese q0,q8\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x20,0x23,0xb0,0xf3)\t@ aese q1,q8\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tINST(0x22,0x03,0xb0,0xf3)\t@ aese q0,q9\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x22,0x23,0xb0,0xf3)\t@ aese q1,q9\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tvld1.8\t{q2},[r0],r12\n\tINST(0x28,0x03,0xb0,0xf3)\t@ aese q0,q12\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x28,0x23,0xb0,0xf3)\t@ aese q1,q12\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tvld1.8\t{q3},[r0]\n\tINST(0x2a,0x03,0xb0,0xf3)\t@ aese q0,q13\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2a,0x23,0xb0,0xf3)\t@ aese q1,q13\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tveor\tq2,q2,q7\n\tINST(0x2c,0x03,0xb0,0xf3)\t@ aese q0,q14\n\tINST(0x80,0x03,0xb0,0xf3)\t@ aesmc q0,q0\n\tINST(0x2c,0x23,0xb0,0xf3)\t@ aese q1,q14\n\tINST(0x82,0x23,0xb0,0xf3)\t@ aesmc q1,q1\n\tveor\tq3,q3,q7\n\tINST(0x2e,0x03,0xb0,0xf3)\t@ aese q0,q15\n\tINST(0x2e,0x23,0xb0,0xf3)\t@ aese q1,q15\n\n\tcmp\tr2,#1\n\tveor\tq2,q2,q0\n\tveor\tq3,q3,q1\n\tvst1.8\t{q2},[r1]!\n\tbeq\t.Lctr32_done\n\tvst1.8\t{q3},[r1]\n\n.Lctr32_done:\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,pc}\n.size\taes_v8_ctr32_encrypt_blocks,.-aes_v8_ctr32_encrypt_blocks\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/aesv8-armx.S", "line_start": 1041, "line_end": 1087}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm.inc:1", "text": ".if !defined(ARM_MAX_ARCH)\n.\tif !empty(MACHINE_ARCH:Mearmv4*) || \\\n\t    ${MACHINE_ARCH} == \"armeb\" || \\\n\t    ${MACHINE_ARCH} == \"arm\"\nARM_MAX_ARCH=4\n.\telif !empty(MACHINE_ARCH:Mearmv5*) || \\\n\t    ${MACHINE_ARCH} == \"earm\" || \\\n\t    ${MACHINE_ARCH} == \"earmhf\" || \\\n\t    ${MACHINE_ARCH} == \"earmeb\" || \\\n\t    ${MACHINE_ARCH} == \"earmhfeb\"\nARM_MAX_ARCH=5\n.\telif !empty(MACHINE_ARCH:Mearmv6*)\nARM_MAX_ARCH=6\n.\telif !empty(MACHINE_ARCH:Mearmv7*)\nARM_MAX_ARCH=7\n.\telse\nARM_MAX_ARCH=8\n.\tendif\nCPPFLAGS += -D__ARM_MAX_ARCH__=${ARM_MAX_ARCH}\n.endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm.inc", "line_start": 1, "line_end": 20}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n.text\n.arch\tarmv8-a+crypto\n\n.align\t5\n.globl\t_armv7_neon_probe\n.type\t_armv7_neon_probe,%function\n_armv7_neon_probe:\n\tAARCH64_VALID_CALL_TARGET\n\torr\tv15.16b, v15.16b, v15.16b\n\tret\n.size\t_armv7_neon_probe,.-_armv7_neon_probe\n\n.globl\t_armv7_tick\n.type\t_armv7_tick,%function\n_armv7_tick:\n\tAARCH64_VALID_CALL_TARGET\n#ifdef\t__APPLE__\n\tmrs\tx0, CNTPCT_EL0\n#else\n\tmrs\tx0, CNTVCT_EL0\n#endif\n\tret\n.size\t_armv7_tick,.-_armv7_tick\n\n.globl\t_armv8_aes_probe\n.type\t_armv8_aes_probe,%function\n_armv8_aes_probe:\n\tAARCH64_VALID_CALL_TARGET\n\taese\tv0.16b, v0.16b\n\tret\n.size\t_armv8_aes_probe,.-_armv8_aes_probe\n\n.globl\t_armv8_sha1_probe\n.type\t_armv8_sha1_probe,%function\n_armv8_sha1_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tsha1h\ts0, s0\n\tret\n.size\t_armv8_sha1_probe,.-_armv8_sha1_probe\n\n.globl\t_armv8_sha256_probe\n.type\t_armv8_sha256_probe,%function\n_armv8_sha256_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tsha256su0\tv0.4s, v0.4s\n\tret\n.size\t_armv8_sha256_probe,.-_armv8_sha256_probe\n\n.globl\t_armv8_pmull_probe\n.type\t_armv8_pmull_probe,%function\n_armv8_pmull_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tpmull\tv0.1q, v0.1d, v0.1d\n\tret\n.size\t_armv8_pmull_probe,.-_armv8_pmull_probe\n\n.globl\t_armv8_sm4_probe", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:2", "text": "ret\n.size\t_armv8_sha1_probe,.-_armv8_sha1_probe\n\n.globl\t_armv8_sha256_probe\n.type\t_armv8_sha256_probe,%function\n_armv8_sha256_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tsha256su0\tv0.4s, v0.4s\n\tret\n.size\t_armv8_sha256_probe,.-_armv8_sha256_probe\n\n.globl\t_armv8_pmull_probe\n.type\t_armv8_pmull_probe,%function\n_armv8_pmull_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tpmull\tv0.1q, v0.1d, v0.1d\n\tret\n.size\t_armv8_pmull_probe,.-_armv8_pmull_probe\n\n.globl\t_armv8_sm4_probe\n.type\t_armv8_sm4_probe,%function\n_armv8_sm4_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xcec08400\t// sm4e\tv0.4s, v0.4s\n\tret\n.size\t_armv8_sm4_probe,.-_armv8_sm4_probe\n\n.globl\t_armv8_sha512_probe\n.type\t_armv8_sha512_probe,%function\n_armv8_sha512_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xcec08000\t// sha512su0\tv0.2d,v0.2d\n\tret\n.size\t_armv8_sha512_probe,.-_armv8_sha512_probe\n\n.globl\t_armv8_eor3_probe\n.type\t_armv8_eor3_probe,%function\n_armv8_eor3_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xce010800\t// eor3\tv0.16b, v0.16b, v1.16b, v2.16b\n\tret\n.size\t_armv8_eor3_probe,.-_armv8_eor3_probe\n\n.globl\t_armv8_sve_probe\n.type\t_armv8_sve_probe,%function\n_armv8_sve_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04a03000\t// eor z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve_probe,.-_armv8_sve_probe\n\n.globl\t_armv8_sve2_probe\n.type\t_armv8_sve2_probe,%function\n_armv8_sve2_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04e03400\t// xar z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve2_probe,.-_armv8_sve2_probe\n\n.globl\t_armv8_cpuid_probe", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:3", "text": "ret\n.size\t_armv8_eor3_probe,.-_armv8_eor3_probe\n\n.globl\t_armv8_sve_probe\n.type\t_armv8_sve_probe,%function\n_armv8_sve_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04a03000\t// eor z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve_probe,.-_armv8_sve_probe\n\n.globl\t_armv8_sve2_probe\n.type\t_armv8_sve2_probe,%function\n_armv8_sve2_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0x04e03400\t// xar z0.d,z0.d,z0.d\n\tret\n.size\t_armv8_sve2_probe,.-_armv8_sve2_probe\n\n.globl\t_armv8_cpuid_probe\n.type\t_armv8_cpuid_probe,%function\n_armv8_cpuid_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tmrs\tx0, midr_el1\n\tret\n.size\t_armv8_cpuid_probe,.-_armv8_cpuid_probe\n\n.globl\t_armv8_sm3_probe\n.type\t_armv8_sm3_probe,%function\n_armv8_sm3_probe:\n\tAARCH64_VALID_CALL_TARGET\n.inst\t0xce63c004\t// sm3partw1 v4.4s, v0.4s, v3.4s\n\tret\n.size\t_armv8_sm3_probe,.-_armv8_sm3_probe\n\n.globl\tOPENSSL_cleanse\n.type\tOPENSSL_cleanse,%function\n.align\t5\nOPENSSL_cleanse:\n\tAARCH64_VALID_CALL_TARGET\n\tcbz\tx1,.Lret\t// len==0?\n\tcmp\tx1,#15\n\tb.hi\t.Lot\t\t// len>15\n\tnop\n.Little:\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsubs\tx1,x1,#1\n\tb.ne\t.Little\n.Lret:\tret\n\n.align\t4\n.Lot:\ttst\tx0,#7\n\tb.eq\t.Laligned\t// inp is aligned\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsub\tx1,x1,#1\n\tb\t.Lot\n\n.align\t4\n.Laligned:\n\tstr\txzr,[x0],#8\t// store word-by-word", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:4", "text": "cbz\tx1,.Lret\t// len==0?\n\tcmp\tx1,#15\n\tb.hi\t.Lot\t\t// len>15\n\tnop\n.Little:\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsubs\tx1,x1,#1\n\tb.ne\t.Little\n.Lret:\tret\n\n.align\t4\n.Lot:\ttst\tx0,#7\n\tb.eq\t.Laligned\t// inp is aligned\n\tstrb\twzr,[x0],#1\t// store byte-by-byte\n\tsub\tx1,x1,#1\n\tb\t.Lot\n\n.align\t4\n.Laligned:\n\tstr\txzr,[x0],#8\t// store word-by-word\n\tsub\tx1,x1,#8\n\ttst\tx1,#-8\n\tb.ne\t.Laligned\t// len>=8\n\tcbnz\tx1,.Little\t// len!=0?\n\tret\n.size\tOPENSSL_cleanse,.-OPENSSL_cleanse\n\n.globl\tCRYPTO_memcmp\n.type\tCRYPTO_memcmp,%function\n.align\t4\nCRYPTO_memcmp:\n\tAARCH64_VALID_CALL_TARGET\n\teor\tw3,w3,w3\n\tcbz\tx2,.Lno_data\t// len==0?\n\tcmp\tx2,#16\n\tb.ne\t.Loop_cmp\n\tldp\tx8,x9,[x0]\n\tldp\tx10,x11,[x1]\n\teor\tx8,x8,x10\n\teor\tx9,x9,x11\n\torr\tx8,x8,x9\n\tmov\tx0,#1\n\tcmp\tx8,#0\n\tcsel\tx0,xzr,x0,eq\n\tret\n\n.align\t4\n.Loop_cmp:\n\tldrb\tw4,[x0],#1\n\tldrb\tw5,[x1],#1\n\teor\tw4,w4,w5\n\torr\tw3,w3,w4\n\tsubs\tx2,x2,#1\n\tb.ne\t.Loop_cmp\n\n.Lno_data:\n\tneg\tw0,w3\n\tlsr\tw0,w0,#31\n\tret\n.size\tCRYPTO_memcmp,.-CRYPTO_memcmp", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:5", "text": "orr\tx8,x8,x9\n\tmov\tx0,#1\n\tcmp\tx8,#0\n\tcsel\tx0,xzr,x0,eq\n\tret\n\n.align\t4\n.Loop_cmp:\n\tldrb\tw4,[x0],#1\n\tldrb\tw5,[x1],#1\n\teor\tw4,w4,w5\n\torr\tw3,w3,w4\n\tsubs\tx2,x2,#1\n\tb.ne\t.Loop_cmp\n\n.Lno_data:\n\tneg\tw0,w3\n\tlsr\tw0,w0,#31\n\tret\n.size\tCRYPTO_memcmp,.-CRYPTO_memcmp\n\n.globl\t_armv8_rng_probe\n.type\t_armv8_rng_probe,%function\n_armv8_rng_probe:\n\tAARCH64_VALID_CALL_TARGET\n\tmrs\tx0, s3_3_c2_c4_0\t// rndr\n\tmrs\tx0, s3_3_c2_c4_1\t// rndrrs\n\tret\n.size\t_armv8_rng_probe,.-_armv8_rng_probe\n// Fill buffer with Randomly Generated Bytes\n// inputs:  char * in x0 - Pointer to buffer\n//          size_t in x1 - Number of bytes to write to buffer\n// outputs: size_t in x0 - Number of bytes successfully written to buffer\n.globl\tOPENSSL_rndr_asm\n.type\tOPENSSL_rndr_asm,%function\n.align\t4\nOPENSSL_rndr_asm:\n\tAARCH64_VALID_CALL_TARGET\n\tmov\tx2,xzr\n\tmov\tx3,xzr\n\n.align\t4\n.Loop_rndr:\n\tcmp\tx1,#0\n\tb.eq\t.rndr_done\n\tmov\tx3,xzr\n\tmrs\tx3,s3_3_c2_c4_0\n\tb.eq\t.rndr_done\n\n\tcmp\tx1,#8\n\tb.lt\t.Loop_single_byte_rndr\n\n\tstr\tx3,[x0]\n\tadd\tx0,x0,#8\n\tadd\tx2,x2,#8\n\tsubs\tx1,x1,#8\n\tb.ge\t.Loop_rndr\n\n.align\t4\n.Loop_single_byte_rndr:", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:6", "text": ".align\t4\n.Loop_rndr:\n\tcmp\tx1,#0\n\tb.eq\t.rndr_done\n\tmov\tx3,xzr\n\tmrs\tx3,s3_3_c2_c4_0\n\tb.eq\t.rndr_done\n\n\tcmp\tx1,#8\n\tb.lt\t.Loop_single_byte_rndr\n\n\tstr\tx3,[x0]\n\tadd\tx0,x0,#8\n\tadd\tx2,x2,#8\n\tsubs\tx1,x1,#8\n\tb.ge\t.Loop_rndr\n\n.align\t4\n.Loop_single_byte_rndr:\n\tstrb\tw3,[x0]\n\tlsr\tx3,x3,#8\n\tadd\tx2,x2,#1\n\tadd\tx0,x0,#1\n\tsubs\tx1,x1,#1\n\tb.gt\t.Loop_single_byte_rndr\n\n.align\t4\n.rndr_done:\n\tmov\tx0,x2\n\tret\n.size\tOPENSSL_rndr_asm,.-OPENSSL_rndr_asm\n// Fill buffer with Randomly Generated Bytes\n// inputs:  char * in x0 - Pointer to buffer\n//          size_t in x1 - Number of bytes to write to buffer\n// outputs: size_t in x0 - Number of bytes successfully written to buffer\n.globl\tOPENSSL_rndrrs_asm\n.type\tOPENSSL_rndrrs_asm,%function\n.align\t4\nOPENSSL_rndrrs_asm:\n\tAARCH64_VALID_CALL_TARGET\n\tmov\tx2,xzr\n\tmov\tx3,xzr\n\n.align\t4\n.Loop_rndrrs:\n\tcmp\tx1,#0\n\tb.eq\t.rndrrs_done\n\tmov\tx3,xzr\n\tmrs\tx3,s3_3_c2_c4_1\n\tb.eq\t.rndrrs_done\n\n\tcmp\tx1,#8\n\tb.lt\t.Loop_single_byte_rndrrs\n\n\tstr\tx3,[x0]\n\tadd\tx0,x0,#8\n\tadd\tx2,x2,#8\n\tsubs\tx1,x1,#8\n\tb.ge\t.Loop_rndrrs", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S:7", "text": "AARCH64_VALID_CALL_TARGET\n\tmov\tx2,xzr\n\tmov\tx3,xzr\n\n.align\t4\n.Loop_rndrrs:\n\tcmp\tx1,#0\n\tb.eq\t.rndrrs_done\n\tmov\tx3,xzr\n\tmrs\tx3,s3_3_c2_c4_1\n\tb.eq\t.rndrrs_done\n\n\tcmp\tx1,#8\n\tb.lt\t.Loop_single_byte_rndrrs\n\n\tstr\tx3,[x0]\n\tadd\tx0,x0,#8\n\tadd\tx2,x2,#8\n\tsubs\tx1,x1,#8\n\tb.ge\t.Loop_rndrrs\n\n.align\t4\n.Loop_single_byte_rndrrs:\n\tstrb\tw3,[x0]\n\tlsr\tx3,x3,#8\n\tadd\tx2,x2,#1\n\tadd\tx0,x0,#1\n\tsubs\tx1,x1,#1\n\tb.gt\t.Loop_single_byte_rndrrs\n\n.align\t4\n.rndrrs_done:\n\tmov\tx0,x2\n\tret\n.size\tOPENSSL_rndrrs_asm,.-OPENSSL_rndrrs_asm", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/arm64cpuid.S", "line_start": 241, "line_end": 275}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#endif\n\n.text\n.type\tmul_1x1_ialu,%function\n.align\t5\nmul_1x1_ialu:\n\tmov\tr4,#0\n\tbic\tr5,r1,#3<<30\t\t@ a1=a&0x3fffffff\n\tstr\tr4,[sp,#0]\t\t@ tab[0]=0\n\tadd\tr6,r5,r5\t\t@ a2=a1<<1\n\tstr\tr5,[sp,#4]\t\t@ tab[1]=a1\n\teor\tr7,r5,r6\t\t@ a1^a2\n\tstr\tr6,[sp,#8]\t\t@ tab[2]=a2\n\tmov\tr8,r5,lsl#2\t\t@ a4=a1<<2\n\tstr\tr7,[sp,#12]\t\t@ tab[3]=a1^a2\n\teor\tr9,r5,r8\t\t@ a1^a4\n\tstr\tr8,[sp,#16]\t\t@ tab[4]=a4\n\teor\tr4,r6,r8\t\t@ a2^a4\n\tstr\tr9,[sp,#20]\t\t@ tab[5]=a1^a4\n\teor\tr7,r7,r8\t\t@ a1^a2^a4\n\tstr\tr4,[sp,#24]\t\t@ tab[6]=a2^a4\n\tand\tr8,r12,r0,lsl#2\n\tstr\tr7,[sp,#28]\t\t@ tab[7]=a1^a2^a4\n\n\tand\tr9,r12,r0,lsr#1\n\tldr\tr5,[sp,r8]\t\t@ tab[b       & 0x7]\n\tand\tr8,r12,r0,lsr#4\n\tldr\tr7,[sp,r9]\t\t@ tab[b >>  3 & 0x7]\n\tand\tr9,r12,r0,lsr#7\n\tldr\tr6,[sp,r8]\t\t@ tab[b >>  6 & 0x7]\n\teor\tr5,r5,r7,lsl#3\t@ stall\n\tmov\tr4,r7,lsr#29\n\tldr\tr7,[sp,r9]\t\t@ tab[b >>  9 & 0x7]\n\n\tand\tr8,r12,r0,lsr#10\n\teor\tr5,r5,r6,lsl#6\n\teor\tr4,r4,r6,lsr#26\n\tldr\tr6,[sp,r8]\t\t@ tab[b >> 12 & 0x7]\n\n\tand\tr9,r12,r0,lsr#13\n\teor\tr5,r5,r7,lsl#9\n\teor\tr4,r4,r7,lsr#23\n\tldr\tr7,[sp,r9]\t\t@ tab[b >> 15 & 0x7]\n\n\tand\tr8,r12,r0,lsr#16\n\teor\tr5,r5,r6,lsl#12\n\teor\tr4,r4,r6,lsr#20\n\tldr\tr6,[sp,r8]\t\t@ tab[b >> 18 & 0x7]\n\n\tand\tr9,r12,r0,lsr#19\n\teor\tr5,r5,r7,lsl#15\n\teor\tr4,r4,r7,lsr#17", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S:2", "text": "ldr\tr7,[sp,r9]\t\t@ tab[b >>  9 & 0x7]\n\n\tand\tr8,r12,r0,lsr#10\n\teor\tr5,r5,r6,lsl#6\n\teor\tr4,r4,r6,lsr#26\n\tldr\tr6,[sp,r8]\t\t@ tab[b >> 12 & 0x7]\n\n\tand\tr9,r12,r0,lsr#13\n\teor\tr5,r5,r7,lsl#9\n\teor\tr4,r4,r7,lsr#23\n\tldr\tr7,[sp,r9]\t\t@ tab[b >> 15 & 0x7]\n\n\tand\tr8,r12,r0,lsr#16\n\teor\tr5,r5,r6,lsl#12\n\teor\tr4,r4,r6,lsr#20\n\tldr\tr6,[sp,r8]\t\t@ tab[b >> 18 & 0x7]\n\n\tand\tr9,r12,r0,lsr#19\n\teor\tr5,r5,r7,lsl#15\n\teor\tr4,r4,r7,lsr#17\n\tldr\tr7,[sp,r9]\t\t@ tab[b >> 21 & 0x7]\n\n\tand\tr8,r12,r0,lsr#22\n\teor\tr5,r5,r6,lsl#18\n\teor\tr4,r4,r6,lsr#14\n\tldr\tr6,[sp,r8]\t\t@ tab[b >> 24 & 0x7]\n\n\tand\tr9,r12,r0,lsr#25\n\teor\tr5,r5,r7,lsl#21\n\teor\tr4,r4,r7,lsr#11\n\tldr\tr7,[sp,r9]\t\t@ tab[b >> 27 & 0x7]\n\n\ttst\tr1,#1<<30\n\tand\tr8,r12,r0,lsr#28\n\teor\tr5,r5,r6,lsl#24\n\teor\tr4,r4,r6,lsr#8\n\tldr\tr6,[sp,r8]\t\t@ tab[b >> 30      ]\n\n#ifdef\t__thumb2__\n\titt\tne\n#endif\n\teorne\tr5,r5,r0,lsl#30\n\teorne\tr4,r4,r0,lsr#2\n\ttst\tr1,#1<<31\n\teor\tr5,r5,r7,lsl#27\n\teor\tr4,r4,r7,lsr#5\n#ifdef\t__thumb2__\n\titt\tne\n#endif\n\teorne\tr5,r5,r0,lsl#31\n\teorne\tr4,r4,r0,lsr#1\n\teor\tr5,r5,r6,lsl#30\n\teor\tr4,r4,r6,lsr#2\n\n\tmov\tpc,lr\n.size\tmul_1x1_ialu,.-mul_1x1_ialu\n.globl\tbn_GF2m_mul_2x2\n.type\tbn_GF2m_mul_2x2,%function\n.align\t5\nbn_GF2m_mul_2x2:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S:3", "text": "#endif\n\teorne\tr5,r5,r0,lsl#30\n\teorne\tr4,r4,r0,lsr#2\n\ttst\tr1,#1<<31\n\teor\tr5,r5,r7,lsl#27\n\teor\tr4,r4,r7,lsr#5\n#ifdef\t__thumb2__\n\titt\tne\n#endif\n\teorne\tr5,r5,r0,lsl#31\n\teorne\tr4,r4,r0,lsr#1\n\teor\tr5,r5,r6,lsl#30\n\teor\tr4,r4,r6,lsr#2\n\n\tmov\tpc,lr\n.size\tmul_1x1_ialu,.-mul_1x1_ialu\n.globl\tbn_GF2m_mul_2x2\n.type\tbn_GF2m_mul_2x2,%function\n.align\t5\nbn_GF2m_mul_2x2:\n#if __ARM_MAX_ARCH__>=7\n\tstmdb\tsp!,{r10,lr}\n\tldr\tr12,.LOPENSSL_armcap\n# if !defined(_WIN32)\n\tadr\tr10,.LOPENSSL_armcap\n\tldr\tr12,[r12,r10]\n# endif\n# if defined(__APPLE__) || defined(_WIN32)\n\tldr\tr12,[r12]\n# endif\n\ttst\tr12,#ARMV7_NEON\n\titt\tne\n\tldrne\tr10,[sp],#8\n\tbne\t.LNEON\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9}\n#else\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,lr}\n#endif\n\tmov\tr10,r0\t\t\t@ reassign 1st argument\n\tmov\tr0,r3\t\t\t@ r0=b1\n\tsub\tr7,sp,#36\n\tmov\tr8,sp\n\tand\tr7,r7,#-32\n\tldr\tr3,[sp,#32]\t\t@ load b0\n\tmov\tr12,#7<<2\n\tmov\tsp,r7\t\t\t@ allocate tab[8]\n\tstr\tr8,[r7,#32]\n\n\tbl\tmul_1x1_ialu\t\t@ a1·b1\n\tstr\tr5,[r10,#8]\n\tstr\tr4,[r10,#12]\n\n\teor\tr0,r0,r3\t\t@ flip b0 and b1\n\teor\tr1,r1,r2\t\t@ flip a0 and a1\n\teor\tr3,r3,r0\n\teor\tr2,r2,r1\n\teor\tr0,r0,r3\n\teor\tr1,r1,r2\n\tbl\tmul_1x1_ialu\t\t@ a0·b0\n\tstr\tr5,[r10]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S:4", "text": "sub\tr7,sp,#36\n\tmov\tr8,sp\n\tand\tr7,r7,#-32\n\tldr\tr3,[sp,#32]\t\t@ load b0\n\tmov\tr12,#7<<2\n\tmov\tsp,r7\t\t\t@ allocate tab[8]\n\tstr\tr8,[r7,#32]\n\n\tbl\tmul_1x1_ialu\t\t@ a1·b1\n\tstr\tr5,[r10,#8]\n\tstr\tr4,[r10,#12]\n\n\teor\tr0,r0,r3\t\t@ flip b0 and b1\n\teor\tr1,r1,r2\t\t@ flip a0 and a1\n\teor\tr3,r3,r0\n\teor\tr2,r2,r1\n\teor\tr0,r0,r3\n\teor\tr1,r1,r2\n\tbl\tmul_1x1_ialu\t\t@ a0·b0\n\tstr\tr5,[r10]\n\tstr\tr4,[r10,#4]\n\n\teor\tr1,r1,r2\n\teor\tr0,r0,r3\n\tbl\tmul_1x1_ialu\t\t@ (a1+a0)·(b1+b0)\n\tldmia\tr10,{r6,r7,r8,r9}\n\teor\tr5,r5,r4\n\tldr\tsp,[sp,#32]\t\t@ destroy tab[8]\n\teor\tr4,r4,r7\n\teor\tr5,r5,r6\n\teor\tr4,r4,r8\n\teor\tr5,r5,r9\n\teor\tr4,r4,r9\n\tstr\tr4,[r10,#8]\n\teor\tr5,r5,r4\n\tstr\tr5,[r10,#4]\n\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.align\t5\n.LNEON:\n\tldr\tr12, [sp]\t\t@ 5th argument\n\tvmov\td26, r2, r1\n\tvmov\td27, r12, r3\n\tvmov.i64\td28, #0x0000ffffffffffff\n\tvmov.i64\td29, #0x00000000ffffffff\n\tvmov.i64\td30, #0x000000000000ffff\n\n\tvext.8\td2, d26, d26, #1\t@ A1\n\tvmull.p8\tq1, d2, d27\t\t@ F = A1*B", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S:5", "text": "ldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.align\t5\n.LNEON:\n\tldr\tr12, [sp]\t\t@ 5th argument\n\tvmov\td26, r2, r1\n\tvmov\td27, r12, r3\n\tvmov.i64\td28, #0x0000ffffffffffff\n\tvmov.i64\td29, #0x00000000ffffffff\n\tvmov.i64\td30, #0x000000000000ffff\n\n\tvext.8\td2, d26, d26, #1\t@ A1\n\tvmull.p8\tq1, d2, d27\t\t@ F = A1*B\n\tvext.8\td0, d27, d27, #1\t@ B1\n\tvmull.p8\tq0, d26, d0\t\t@ E = A*B1\n\tvext.8\td4, d26, d26, #2\t@ A2\n\tvmull.p8\tq2, d4, d27\t\t@ H = A2*B\n\tvext.8\td16, d27, d27, #2\t@ B2\n\tvmull.p8\tq8, d26, d16\t\t@ G = A*B2\n\tvext.8\td6, d26, d26, #3\t@ A3\n\tveor\tq1, q1, q0\t\t@ L = E + F\n\tvmull.p8\tq3, d6, d27\t\t@ J = A3*B\n\tvext.8\td0, d27, d27, #3\t@ B3\n\tveor\tq2, q2, q8\t\t@ M = G + H\n\tvmull.p8\tq0, d26, d0\t\t@ I = A*B3\n\tveor\td2, d2, d3\t@ t0 = (L) (P0 + P1) << 8\n\tvand\td3, d3, d28\n\tvext.8\td16, d27, d27, #4\t@ B4\n\tveor\td4, d4, d5\t@ t1 = (M) (P2 + P3) << 16\n\tvand\td5, d5, d29\n\tvmull.p8\tq8, d26, d16\t\t@ K = A*B4\n\tveor\tq3, q3, q0\t\t@ N = I + J\n\tveor\td2, d2, d3\n\tveor\td4, d4, d5\n\tveor\td6, d6, d7\t@ t2 = (N) (P4 + P5) << 24\n\tvand\td7, d7, d30\n\tvext.8\tq1, q1, q1, #15\n\tveor\td16, d16, d17\t@ t3 = (K) (P6 + P7) << 32\n\tvmov.i64\td17, #0\n\tvext.8\tq2, q2, q2, #14\n\tveor\td6, d6, d7\n\tvmull.p8\tq0, d26, d27\t\t@ D = A*B\n\tvext.8\tq8, q8, q8, #12\n\tvext.8\tq3, q3, q3, #13\n\tveor\tq1, q1, q2\n\tveor\tq3, q3, q8\n\tveor\tq0, q0, q1\n\tveor\tq0, q0, q3\n\n\tvst1.32\t{q0}, [r0]\n\tRET\t\t@ bx lr\n#endif\n.size\tbn_GF2m_mul_2x2,.-bn_GF2m_mul_2x2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S:6", "text": "veor\td4, d4, d5\n\tveor\td6, d6, d7\t@ t2 = (N) (P4 + P5) << 24\n\tvand\td7, d7, d30\n\tvext.8\tq1, q1, q1, #15\n\tveor\td16, d16, d17\t@ t3 = (K) (P6 + P7) << 32\n\tvmov.i64\td17, #0\n\tvext.8\tq2, q2, q2, #14\n\tveor\td6, d6, d7\n\tvmull.p8\tq0, d26, d27\t\t@ D = A*B\n\tvext.8\tq8, q8, q8, #12\n\tvext.8\tq3, q3, q3, #13\n\tveor\tq1, q1, q2\n\tveor\tq3, q3, q8\n\tveor\tq0, q0, q1\n\tveor\tq0, q0, q3\n\n\tvst1.32\t{q0}, [r0]\n\tRET\t\t@ bx lr\n#endif\n.size\tbn_GF2m_mul_2x2,.-bn_GF2m_mul_2x2\n#if __ARM_MAX_ARCH__>=7\n.align\t5\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.\n# endif\n#endif\n.byte\t71,70,40,50,94,109,41,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t5\n\n#if __ARM_MAX_ARCH__>=7\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S", "line_start": 201, "line_end": 237}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#endif\n\n.text\n\n#if __ARM_MAX_ARCH__>=7\n.align\t5\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.Lbn_mul_mont\n# endif\n#endif\n\n.globl\tbn_mul_mont\n.type\tbn_mul_mont,%function\n\n.align\t5\nbn_mul_mont:\n.Lbn_mul_mont:\n\tldr\tip,[sp,#4]\t\t@ load num\n\tstmdb\tsp!,{r0,r2}\t\t@ sp points at argument block\n#if __ARM_MAX_ARCH__>=7\n\ttst\tip,#7\n\tbne\t.Lialu\n\tldr\tr0,.LOPENSSL_armcap\n#if !defined(_WIN32)\n\tadr\tr2,.Lbn_mul_mont\n\tldr\tr0,[r0,r2]\n# endif\n# if defined(__APPLE__) || defined(_WIN32)\n\tldr\tr0,[r0]\n# endif\n\ttst\tr0,#ARMV7_NEON\t\t@ NEON available?\n\tldmia\tsp, {r0,r2}\n\tbeq\t.Lialu\n\tadd\tsp,sp,#8\n\tb\tbn_mul8x_mont_neon\n.align\t4\n.Lialu:\n#endif\n\tcmp\tip,#2\n\tmov\tr0,ip\t\t\t@ load num\n#ifdef\t__thumb2__\n\tittt\tlt\n#endif\n\tmovlt\tr0,#0\n\taddlt\tsp,sp,#2*4\n\tblt\t.Labrt\n\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\t\t@ save 10 registers", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:2", "text": "# endif\n\ttst\tr0,#ARMV7_NEON\t\t@ NEON available?\n\tldmia\tsp, {r0,r2}\n\tbeq\t.Lialu\n\tadd\tsp,sp,#8\n\tb\tbn_mul8x_mont_neon\n.align\t4\n.Lialu:\n#endif\n\tcmp\tip,#2\n\tmov\tr0,ip\t\t\t@ load num\n#ifdef\t__thumb2__\n\tittt\tlt\n#endif\n\tmovlt\tr0,#0\n\taddlt\tsp,sp,#2*4\n\tblt\t.Labrt\n\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\t\t@ save 10 registers\n\n\tmov\tr0,r0,lsl#2\t\t@ rescale r0 for byte count\n\tsub\tsp,sp,r0\t\t@ alloca(4*num)\n\tsub\tsp,sp,#4\t\t@ +extra dword\n\tsub\tr0,r0,#4\t\t@ \"num=num-1\"\n\tadd\tr4,r2,r0\t\t@ &bp[num-1]\n\n\tadd\tr0,sp,r0\t\t@ r0 to point at &tp[num-1]\n\tldr\tr8,[r0,#14*4]\t\t@ &n0\n\tldr\tr2,[r2]\t\t@ bp[0]\n\tldr\tr5,[r1],#4\t\t@ ap[0],ap++\n\tldr\tr6,[r3],#4\t\t@ np[0],np++\n\tldr\tr8,[r8]\t\t@ *n0\n\tstr\tr4,[r0,#15*4]\t\t@ save &bp[num]\n\n\tumull\tr10,r11,r5,r2\t@ ap[0]*bp[0]\n\tstr\tr8,[r0,#14*4]\t\t@ save n0 value\n\tmul\tr8,r10,r8\t\t@ \"tp[0]\"*n0\n\tmov\tr12,#0\n\tumlal\tr10,r12,r6,r8\t@ np[0]*n0+\"t[0]\"\n\tmov\tr4,sp\n\n.L1st:\n\tldr\tr5,[r1],#4\t\t@ ap[j],ap++\n\tmov\tr10,r11\n\tldr\tr6,[r3],#4\t\t@ np[j],np++\n\tmov\tr11,#0\n\tumlal\tr10,r11,r5,r2\t@ ap[j]*bp[0]\n\tmov\tr14,#0\n\tumlal\tr12,r14,r6,r8\t@ np[j]*n0\n\tadds\tr12,r12,r10\n\tstr\tr12,[r4],#4\t\t@ tp[j-1]=,tp++\n\tadc\tr12,r14,#0\n\tcmp\tr4,r0\n\tbne\t.L1st\n\n\tadds\tr12,r12,r11\n\tldr\tr4,[r0,#13*4]\t\t@ restore bp\n\tmov\tr14,#0\n\tldr\tr8,[r0,#14*4]\t\t@ restore n0\n\tadc\tr14,r14,#0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:3", "text": ".L1st:\n\tldr\tr5,[r1],#4\t\t@ ap[j],ap++\n\tmov\tr10,r11\n\tldr\tr6,[r3],#4\t\t@ np[j],np++\n\tmov\tr11,#0\n\tumlal\tr10,r11,r5,r2\t@ ap[j]*bp[0]\n\tmov\tr14,#0\n\tumlal\tr12,r14,r6,r8\t@ np[j]*n0\n\tadds\tr12,r12,r10\n\tstr\tr12,[r4],#4\t\t@ tp[j-1]=,tp++\n\tadc\tr12,r14,#0\n\tcmp\tr4,r0\n\tbne\t.L1st\n\n\tadds\tr12,r12,r11\n\tldr\tr4,[r0,#13*4]\t\t@ restore bp\n\tmov\tr14,#0\n\tldr\tr8,[r0,#14*4]\t\t@ restore n0\n\tadc\tr14,r14,#0\n\tstr\tr12,[r0]\t\t@ tp[num-1]=\n\tmov\tr7,sp\n\tstr\tr14,[r0,#4]\t\t@ tp[num]=\n\n.Louter:\n\tsub\tr7,r0,r7\t\t@ \"original\" r0-1 value\n\tsub\tr1,r1,r7\t\t@ \"rewind\" ap to &ap[1]\n\tldr\tr2,[r4,#4]!\t\t@ *(++bp)\n\tsub\tr3,r3,r7\t\t@ \"rewind\" np to &np[1]\n\tldr\tr5,[r1,#-4]\t\t@ ap[0]\n\tldr\tr10,[sp]\t\t@ tp[0]\n\tldr\tr6,[r3,#-4]\t\t@ np[0]\n\tldr\tr7,[sp,#4]\t\t@ tp[1]\n\n\tmov\tr11,#0\n\tumlal\tr10,r11,r5,r2\t@ ap[0]*bp[i]+tp[0]\n\tstr\tr4,[r0,#13*4]\t\t@ save bp\n\tmul\tr8,r10,r8\n\tmov\tr12,#0\n\tumlal\tr10,r12,r6,r8\t@ np[0]*n0+\"tp[0]\"\n\tmov\tr4,sp\n\n.Linner:\n\tldr\tr5,[r1],#4\t\t@ ap[j],ap++\n\tadds\tr10,r11,r7\t\t@ +=tp[j]\n\tldr\tr6,[r3],#4\t\t@ np[j],np++\n\tmov\tr11,#0\n\tumlal\tr10,r11,r5,r2\t@ ap[j]*bp[i]\n\tmov\tr14,#0\n\tumlal\tr12,r14,r6,r8\t@ np[j]*n0\n\tadc\tr11,r11,#0\n\tldr\tr7,[r4,#8]\t\t@ tp[j+1]\n\tadds\tr12,r12,r10\n\tstr\tr12,[r4],#4\t\t@ tp[j-1]=,tp++\n\tadc\tr12,r14,#0\n\tcmp\tr4,r0\n\tbne\t.Linner\n\n\tadds\tr12,r12,r11\n\tmov\tr14,#0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:4", "text": "mov\tr4,sp\n\n.Linner:\n\tldr\tr5,[r1],#4\t\t@ ap[j],ap++\n\tadds\tr10,r11,r7\t\t@ +=tp[j]\n\tldr\tr6,[r3],#4\t\t@ np[j],np++\n\tmov\tr11,#0\n\tumlal\tr10,r11,r5,r2\t@ ap[j]*bp[i]\n\tmov\tr14,#0\n\tumlal\tr12,r14,r6,r8\t@ np[j]*n0\n\tadc\tr11,r11,#0\n\tldr\tr7,[r4,#8]\t\t@ tp[j+1]\n\tadds\tr12,r12,r10\n\tstr\tr12,[r4],#4\t\t@ tp[j-1]=,tp++\n\tadc\tr12,r14,#0\n\tcmp\tr4,r0\n\tbne\t.Linner\n\n\tadds\tr12,r12,r11\n\tmov\tr14,#0\n\tldr\tr4,[r0,#13*4]\t\t@ restore bp\n\tadc\tr14,r14,#0\n\tldr\tr8,[r0,#14*4]\t\t@ restore n0\n\tadds\tr12,r12,r7\n\tldr\tr7,[r0,#15*4]\t\t@ restore &bp[num]\n\tadc\tr14,r14,#0\n\tstr\tr12,[r0]\t\t@ tp[num-1]=\n\tstr\tr14,[r0,#4]\t\t@ tp[num]=\n\n\tcmp\tr4,r7\n#ifdef\t__thumb2__\n\titt\tne\n#endif\n\tmovne\tr7,sp\n\tbne\t.Louter\n\n\tldr\tr2,[r0,#12*4]\t\t@ pull rp\n\tmov\tr5,sp\n\tadd\tr0,r0,#4\t\t@ r0 to point at &tp[num]\n\tsub\tr5,r0,r5\t\t@ \"original\" num value\n\tmov\tr4,sp\t\t\t@ \"rewind\" r4\n\tmov\tr1,r4\t\t\t@ \"borrow\" r1\n\tsub\tr3,r3,r5\t\t@ \"rewind\" r3 to &np[0]\n\n\tsubs\tr7,r7,r7\t\t@ \"clear\" carry flag\n.Lsub:\tldr\tr7,[r4],#4\n\tldr\tr6,[r3],#4\n\tsbcs\tr7,r7,r6\t\t@ tp[j]-np[j]\n\tstr\tr7,[r2],#4\t\t@ rp[j]=\n\tteq\tr4,r0\t\t@ preserve carry\n\tbne\t.Lsub\n\tsbcs\tr14,r14,#0\t\t@ upmost carry\n\tmov\tr4,sp\t\t\t@ \"rewind\" r4\n\tsub\tr2,r2,r5\t\t@ \"rewind\" r2\n\n.Lcopy:\tldr\tr7,[r4]\t\t@ conditional copy\n\tldr\tr5,[r2]\n\tstr\tsp,[r4],#4\t\t@ zap tp\n#ifdef\t__thumb2__\n\tit\tcc", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:5", "text": "mov\tr4,sp\t\t\t@ \"rewind\" r4\n\tmov\tr1,r4\t\t\t@ \"borrow\" r1\n\tsub\tr3,r3,r5\t\t@ \"rewind\" r3 to &np[0]\n\n\tsubs\tr7,r7,r7\t\t@ \"clear\" carry flag\n.Lsub:\tldr\tr7,[r4],#4\n\tldr\tr6,[r3],#4\n\tsbcs\tr7,r7,r6\t\t@ tp[j]-np[j]\n\tstr\tr7,[r2],#4\t\t@ rp[j]=\n\tteq\tr4,r0\t\t@ preserve carry\n\tbne\t.Lsub\n\tsbcs\tr14,r14,#0\t\t@ upmost carry\n\tmov\tr4,sp\t\t\t@ \"rewind\" r4\n\tsub\tr2,r2,r5\t\t@ \"rewind\" r2\n\n.Lcopy:\tldr\tr7,[r4]\t\t@ conditional copy\n\tldr\tr5,[r2]\n\tstr\tsp,[r4],#4\t\t@ zap tp\n#ifdef\t__thumb2__\n\tit\tcc\n#endif\n\tmovcc\tr5,r7\n\tstr\tr5,[r2],#4\n\tteq\tr4,r0\t\t@ preserve carry\n\tbne\t.Lcopy\n\n\tmov\tsp,r0\n\tadd\tsp,sp,#4\t\t@ skip over tp[num+1]\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\t\t@ restore registers\n\tadd\tsp,sp,#2*4\t\t@ skip over {r0,r2}\n\tmov\tr0,#1\n.Labrt:\n#if __ARM_ARCH__>=5\n\tRET\t\t\t\t@ bx lr\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tbn_mul_mont,.-bn_mul_mont\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.type\tbn_mul8x_mont_neon,%function\n.align\t5\nbn_mul8x_mont_neon:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI specification says so\n\tldmia\tip,{r4,r5}\t\t@ load rest of parameter block\n\tmov\tip,sp\n\n\tcmp\tr5,#8\n\tbhi\t.LNEON_8n\n\n\t@ special case for r5==8, everything is in register bank...\n\n\tvld1.32\t{d28[0]}, [r2,:32]!\n\tveor\td8,d8,d8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:6", "text": "#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.type\tbn_mul8x_mont_neon,%function\n.align\t5\nbn_mul8x_mont_neon:\n\tmov\tip,sp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI specification says so\n\tldmia\tip,{r4,r5}\t\t@ load rest of parameter block\n\tmov\tip,sp\n\n\tcmp\tr5,#8\n\tbhi\t.LNEON_8n\n\n\t@ special case for r5==8, everything is in register bank...\n\n\tvld1.32\t{d28[0]}, [r2,:32]!\n\tveor\td8,d8,d8\n\tsub\tr7,sp,r5,lsl#4\n\tvld1.32\t{d0,d1,d2,d3},  [r1]!\t\t@ can't specify :32 :-(\n\tand\tr7,r7,#-64\n\tvld1.32\t{d30[0]}, [r4,:32]\n\tmov\tsp,r7\t\t\t@ alloca\n\tvzip.16\td28,d8\n\n\tvmull.u32\tq6,d28,d0[0]\n\tvmull.u32\tq7,d28,d0[1]\n\tvmull.u32\tq8,d28,d1[0]\n\tvshl.i64\td29,d13,#16\n\tvmull.u32\tq9,d28,d1[1]\n\n\tvadd.u64\td29,d29,d12\n\tveor\td8,d8,d8\n\tvmul.u32\td29,d29,d30\n\n\tvmull.u32\tq10,d28,d2[0]\n\tvld1.32\t{d4,d5,d6,d7}, [r3]!\n\tvmull.u32\tq11,d28,d2[1]\n\tvmull.u32\tq12,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmull.u32\tq13,d28,d3[1]\n\n\tvmlal.u32\tq6,d29,d4[0]\n\tsub\tr9,r5,#1\n\tvmlal.u32\tq7,d29,d4[1]\n\tvmlal.u32\tq8,d29,d5[0]\n\tvmlal.u32\tq9,d29,d5[1]\n\n\tvmlal.u32\tq10,d29,d6[0]\n\tvmov\tq5,q6\n\tvmlal.u32\tq11,d29,d6[1]\n\tvmov\tq6,q7\n\tvmlal.u32\tq12,d29,d7[0]\n\tvmov\tq7,q8\n\tvmlal.u32\tq13,d29,d7[1]\n\tvmov\tq8,q9\n\tvmov\tq9,q10\n\tvshr.u64\td10,d10,#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:7", "text": "vmull.u32\tq12,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmull.u32\tq13,d28,d3[1]\n\n\tvmlal.u32\tq6,d29,d4[0]\n\tsub\tr9,r5,#1\n\tvmlal.u32\tq7,d29,d4[1]\n\tvmlal.u32\tq8,d29,d5[0]\n\tvmlal.u32\tq9,d29,d5[1]\n\n\tvmlal.u32\tq10,d29,d6[0]\n\tvmov\tq5,q6\n\tvmlal.u32\tq11,d29,d6[1]\n\tvmov\tq6,q7\n\tvmlal.u32\tq12,d29,d7[0]\n\tvmov\tq7,q8\n\tvmlal.u32\tq13,d29,d7[1]\n\tvmov\tq8,q9\n\tvmov\tq9,q10\n\tvshr.u64\td10,d10,#16\n\tvmov\tq10,q11\n\tvmov\tq11,q12\n\tvadd.u64\td10,d10,d11\n\tvmov\tq12,q13\n\tveor\tq13,q13\n\tvshr.u64\td10,d10,#16\n\n\tb\t.LNEON_outer8\n\n.align\t4\n.LNEON_outer8:\n\tvld1.32\t{d28[0]}, [r2,:32]!\n\tveor\td8,d8,d8\n\tvzip.16\td28,d8\n\tvadd.u64\td12,d12,d10\n\n\tvmlal.u32\tq6,d28,d0[0]\n\tvmlal.u32\tq7,d28,d0[1]\n\tvmlal.u32\tq8,d28,d1[0]\n\tvshl.i64\td29,d13,#16\n\tvmlal.u32\tq9,d28,d1[1]\n\n\tvadd.u64\td29,d29,d12\n\tveor\td8,d8,d8\n\tsubs\tr9,r9,#1\n\tvmul.u32\td29,d29,d30\n\n\tvmlal.u32\tq10,d28,d2[0]\n\tvmlal.u32\tq11,d28,d2[1]\n\tvmlal.u32\tq12,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq13,d28,d3[1]\n\n\tvmlal.u32\tq6,d29,d4[0]\n\tvmlal.u32\tq7,d29,d4[1]\n\tvmlal.u32\tq8,d29,d5[0]\n\tvmlal.u32\tq9,d29,d5[1]\n\n\tvmlal.u32\tq10,d29,d6[0]\n\tvmov\tq5,q6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:8", "text": "vmlal.u32\tq9,d28,d1[1]\n\n\tvadd.u64\td29,d29,d12\n\tveor\td8,d8,d8\n\tsubs\tr9,r9,#1\n\tvmul.u32\td29,d29,d30\n\n\tvmlal.u32\tq10,d28,d2[0]\n\tvmlal.u32\tq11,d28,d2[1]\n\tvmlal.u32\tq12,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq13,d28,d3[1]\n\n\tvmlal.u32\tq6,d29,d4[0]\n\tvmlal.u32\tq7,d29,d4[1]\n\tvmlal.u32\tq8,d29,d5[0]\n\tvmlal.u32\tq9,d29,d5[1]\n\n\tvmlal.u32\tq10,d29,d6[0]\n\tvmov\tq5,q6\n\tvmlal.u32\tq11,d29,d6[1]\n\tvmov\tq6,q7\n\tvmlal.u32\tq12,d29,d7[0]\n\tvmov\tq7,q8\n\tvmlal.u32\tq13,d29,d7[1]\n\tvmov\tq8,q9\n\tvmov\tq9,q10\n\tvshr.u64\td10,d10,#16\n\tvmov\tq10,q11\n\tvmov\tq11,q12\n\tvadd.u64\td10,d10,d11\n\tvmov\tq12,q13\n\tveor\tq13,q13\n\tvshr.u64\td10,d10,#16\n\n\tbne\t.LNEON_outer8\n\n\tvadd.u64\td12,d12,d10\n\tmov\tr7,sp\n\tvshr.u64\td10,d12,#16\n\tmov\tr8,r5\n\tvadd.u64\td13,d13,d10\n\tadd\tr6,sp,#96\n\tvshr.u64\td10,d13,#16\n\tvzip.16\td12,d13\n\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_8n:\n\tveor\tq6,q6,q6\n\tsub\tr7,sp,#128\n\tveor\tq7,q7,q7\n\tsub\tr7,r7,r5,lsl#4\n\tveor\tq8,q8,q8\n\tand\tr7,r7,#-64\n\tveor\tq9,q9,q9\n\tmov\tsp,r7\t\t\t@ alloca\n\tveor\tq10,q10,q10\n\tadd\tr7,r7,#256", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:9", "text": "mov\tr8,r5\n\tvadd.u64\td13,d13,d10\n\tadd\tr6,sp,#96\n\tvshr.u64\td10,d13,#16\n\tvzip.16\td12,d13\n\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_8n:\n\tveor\tq6,q6,q6\n\tsub\tr7,sp,#128\n\tveor\tq7,q7,q7\n\tsub\tr7,r7,r5,lsl#4\n\tveor\tq8,q8,q8\n\tand\tr7,r7,#-64\n\tveor\tq9,q9,q9\n\tmov\tsp,r7\t\t\t@ alloca\n\tveor\tq10,q10,q10\n\tadd\tr7,r7,#256\n\tveor\tq11,q11,q11\n\tsub\tr8,r5,#8\n\tveor\tq12,q12,q12\n\tveor\tq13,q13,q13\n\n.LNEON_8n_init:\n\tvst1.64\t{q6,q7},[r7,:256]!\n\tsubs\tr8,r8,#8\n\tvst1.64\t{q8,q9},[r7,:256]!\n\tvst1.64\t{q10,q11},[r7,:256]!\n\tvst1.64\t{q12,q13},[r7,:256]!\n\tbne\t.LNEON_8n_init\n\n\tadd\tr6,sp,#256\n\tvld1.32\t{d0,d1,d2,d3},[r1]!\n\tadd\tr10,sp,#8\n\tvld1.32\t{d30[0]},[r4,:32]\n\tmov\tr9,r5\n\tb\t.LNEON_8n_outer\n\n.align\t4\n.LNEON_8n_outer:\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tveor\td8,d8,d8\n\tvzip.16\td28,d8\n\tadd\tr7,sp,#128\n\tvld1.32\t{d4,d5,d6,d7},[r3]!\n\n\tvmlal.u32\tq6,d28,d0[0]\n\tvmlal.u32\tq7,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq8,d28,d1[0]\n\tvshl.i64\td29,d13,#16\n\tvmlal.u32\tq9,d28,d1[1]\n\tvadd.u64\td29,d29,d12\n\tvmlal.u32\tq10,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq11,d28,d2[1]\n\tvst1.32\t{d28},[sp,:64]\t\t@ put aside smashed b[8*i+0]\n\tvmlal.u32\tq12,d28,d3[0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:10", "text": ".align\t4\n.LNEON_8n_outer:\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tveor\td8,d8,d8\n\tvzip.16\td28,d8\n\tadd\tr7,sp,#128\n\tvld1.32\t{d4,d5,d6,d7},[r3]!\n\n\tvmlal.u32\tq6,d28,d0[0]\n\tvmlal.u32\tq7,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq8,d28,d1[0]\n\tvshl.i64\td29,d13,#16\n\tvmlal.u32\tq9,d28,d1[1]\n\tvadd.u64\td29,d29,d12\n\tvmlal.u32\tq10,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq11,d28,d2[1]\n\tvst1.32\t{d28},[sp,:64]\t\t@ put aside smashed b[8*i+0]\n\tvmlal.u32\tq12,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq13,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq6,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq7,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq8,d29,d5[0]\n\tvshr.u64\td12,d12,#16\n\tvmlal.u32\tq9,d29,d5[1]\n\tvmlal.u32\tq10,d29,d6[0]\n\tvadd.u64\td12,d12,d13\n\tvmlal.u32\tq11,d29,d6[1]\n\tvshr.u64\td12,d12,#16\n\tvmlal.u32\tq12,d29,d7[0]\n\tvmlal.u32\tq13,d29,d7[1]\n\tvadd.u64\td14,d14,d12\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+0]\n\tvmlal.u32\tq7,d28,d0[0]\n\tvld1.64\t{q6},[r6,:128]!\n\tvmlal.u32\tq8,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq9,d28,d1[0]\n\tvshl.i64\td29,d15,#16\n\tvmlal.u32\tq10,d28,d1[1]\n\tvadd.u64\td29,d29,d14\n\tvmlal.u32\tq11,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq12,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+1]\n\tvmlal.u32\tq13,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq6,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq7,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq8,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq9,d29,d5[0]\n\tvshr.u64\td14,d14,#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:11", "text": "vmlal.u32\tq8,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq9,d28,d1[0]\n\tvshl.i64\td29,d15,#16\n\tvmlal.u32\tq10,d28,d1[1]\n\tvadd.u64\td29,d29,d14\n\tvmlal.u32\tq11,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq12,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+1]\n\tvmlal.u32\tq13,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq6,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq7,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq8,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq9,d29,d5[0]\n\tvshr.u64\td14,d14,#16\n\tvmlal.u32\tq10,d29,d5[1]\n\tvmlal.u32\tq11,d29,d6[0]\n\tvadd.u64\td14,d14,d15\n\tvmlal.u32\tq12,d29,d6[1]\n\tvshr.u64\td14,d14,#16\n\tvmlal.u32\tq13,d29,d7[0]\n\tvmlal.u32\tq6,d29,d7[1]\n\tvadd.u64\td16,d16,d14\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+1]\n\tvmlal.u32\tq8,d28,d0[0]\n\tvld1.64\t{q7},[r6,:128]!\n\tvmlal.u32\tq9,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq10,d28,d1[0]\n\tvshl.i64\td29,d17,#16\n\tvmlal.u32\tq11,d28,d1[1]\n\tvadd.u64\td29,d29,d16\n\tvmlal.u32\tq12,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq13,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+2]\n\tvmlal.u32\tq6,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq7,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq8,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq9,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq10,d29,d5[0]\n\tvshr.u64\td16,d16,#16\n\tvmlal.u32\tq11,d29,d5[1]\n\tvmlal.u32\tq12,d29,d6[0]\n\tvadd.u64\td16,d16,d17\n\tvmlal.u32\tq13,d29,d6[1]\n\tvshr.u64\td16,d16,#16\n\tvmlal.u32\tq6,d29,d7[0]\n\tvmlal.u32\tq7,d29,d7[1]\n\tvadd.u64\td18,d18,d16\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:12", "text": "vst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+2]\n\tvmlal.u32\tq6,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq7,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq8,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq9,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq10,d29,d5[0]\n\tvshr.u64\td16,d16,#16\n\tvmlal.u32\tq11,d29,d5[1]\n\tvmlal.u32\tq12,d29,d6[0]\n\tvadd.u64\td16,d16,d17\n\tvmlal.u32\tq13,d29,d6[1]\n\tvshr.u64\td16,d16,#16\n\tvmlal.u32\tq6,d29,d7[0]\n\tvmlal.u32\tq7,d29,d7[1]\n\tvadd.u64\td18,d18,d16\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+2]\n\tvmlal.u32\tq9,d28,d0[0]\n\tvld1.64\t{q8},[r6,:128]!\n\tvmlal.u32\tq10,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq11,d28,d1[0]\n\tvshl.i64\td29,d19,#16\n\tvmlal.u32\tq12,d28,d1[1]\n\tvadd.u64\td29,d29,d18\n\tvmlal.u32\tq13,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq6,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+3]\n\tvmlal.u32\tq7,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq8,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq9,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq10,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq11,d29,d5[0]\n\tvshr.u64\td18,d18,#16\n\tvmlal.u32\tq12,d29,d5[1]\n\tvmlal.u32\tq13,d29,d6[0]\n\tvadd.u64\td18,d18,d19\n\tvmlal.u32\tq6,d29,d6[1]\n\tvshr.u64\td18,d18,#16\n\tvmlal.u32\tq7,d29,d7[0]\n\tvmlal.u32\tq8,d29,d7[1]\n\tvadd.u64\td20,d20,d18\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+3]\n\tvmlal.u32\tq10,d28,d0[0]\n\tvld1.64\t{q9},[r6,:128]!\n\tvmlal.u32\tq11,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq12,d28,d1[0]\n\tvshl.i64\td29,d21,#16\n\tvmlal.u32\tq13,d28,d1[1]\n\tvadd.u64\td29,d29,d20\n\tvmlal.u32\tq6,d28,d2[0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:13", "text": "vmlal.u32\tq11,d29,d5[0]\n\tvshr.u64\td18,d18,#16\n\tvmlal.u32\tq12,d29,d5[1]\n\tvmlal.u32\tq13,d29,d6[0]\n\tvadd.u64\td18,d18,d19\n\tvmlal.u32\tq6,d29,d6[1]\n\tvshr.u64\td18,d18,#16\n\tvmlal.u32\tq7,d29,d7[0]\n\tvmlal.u32\tq8,d29,d7[1]\n\tvadd.u64\td20,d20,d18\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+3]\n\tvmlal.u32\tq10,d28,d0[0]\n\tvld1.64\t{q9},[r6,:128]!\n\tvmlal.u32\tq11,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq12,d28,d1[0]\n\tvshl.i64\td29,d21,#16\n\tvmlal.u32\tq13,d28,d1[1]\n\tvadd.u64\td29,d29,d20\n\tvmlal.u32\tq6,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq7,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+4]\n\tvmlal.u32\tq8,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq9,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq10,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq11,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq12,d29,d5[0]\n\tvshr.u64\td20,d20,#16\n\tvmlal.u32\tq13,d29,d5[1]\n\tvmlal.u32\tq6,d29,d6[0]\n\tvadd.u64\td20,d20,d21\n\tvmlal.u32\tq7,d29,d6[1]\n\tvshr.u64\td20,d20,#16\n\tvmlal.u32\tq8,d29,d7[0]\n\tvmlal.u32\tq9,d29,d7[1]\n\tvadd.u64\td22,d22,d20\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+4]\n\tvmlal.u32\tq11,d28,d0[0]\n\tvld1.64\t{q10},[r6,:128]!\n\tvmlal.u32\tq12,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq13,d28,d1[0]\n\tvshl.i64\td29,d23,#16\n\tvmlal.u32\tq6,d28,d1[1]\n\tvadd.u64\td29,d29,d22\n\tvmlal.u32\tq7,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq8,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+5]\n\tvmlal.u32\tq9,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq10,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq11,d29,d4[0]\n\tveor\td10,d10,d10", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:14", "text": "vadd.u64\td22,d22,d20\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+4]\n\tvmlal.u32\tq11,d28,d0[0]\n\tvld1.64\t{q10},[r6,:128]!\n\tvmlal.u32\tq12,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq13,d28,d1[0]\n\tvshl.i64\td29,d23,#16\n\tvmlal.u32\tq6,d28,d1[1]\n\tvadd.u64\td29,d29,d22\n\tvmlal.u32\tq7,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq8,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+5]\n\tvmlal.u32\tq9,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq10,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq11,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq12,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq13,d29,d5[0]\n\tvshr.u64\td22,d22,#16\n\tvmlal.u32\tq6,d29,d5[1]\n\tvmlal.u32\tq7,d29,d6[0]\n\tvadd.u64\td22,d22,d23\n\tvmlal.u32\tq8,d29,d6[1]\n\tvshr.u64\td22,d22,#16\n\tvmlal.u32\tq9,d29,d7[0]\n\tvmlal.u32\tq10,d29,d7[1]\n\tvadd.u64\td24,d24,d22\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+5]\n\tvmlal.u32\tq12,d28,d0[0]\n\tvld1.64\t{q11},[r6,:128]!\n\tvmlal.u32\tq13,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq6,d28,d1[0]\n\tvshl.i64\td29,d25,#16\n\tvmlal.u32\tq7,d28,d1[1]\n\tvadd.u64\td29,d29,d24\n\tvmlal.u32\tq8,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq9,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+6]\n\tvmlal.u32\tq10,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq11,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq12,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq13,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq6,d29,d5[0]\n\tvshr.u64\td24,d24,#16\n\tvmlal.u32\tq7,d29,d5[1]\n\tvmlal.u32\tq8,d29,d6[0]\n\tvadd.u64\td24,d24,d25\n\tvmlal.u32\tq9,d29,d6[1]\n\tvshr.u64\td24,d24,#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:15", "text": "vadd.u64\td29,d29,d24\n\tvmlal.u32\tq8,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq9,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+6]\n\tvmlal.u32\tq10,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq11,d28,d3[1]\n\tvld1.32\t{d28[0]},[r2,:32]!\t@ *b++\n\tvmlal.u32\tq12,d29,d4[0]\n\tveor\td10,d10,d10\n\tvmlal.u32\tq13,d29,d4[1]\n\tvzip.16\td28,d10\n\tvmlal.u32\tq6,d29,d5[0]\n\tvshr.u64\td24,d24,#16\n\tvmlal.u32\tq7,d29,d5[1]\n\tvmlal.u32\tq8,d29,d6[0]\n\tvadd.u64\td24,d24,d25\n\tvmlal.u32\tq9,d29,d6[1]\n\tvshr.u64\td24,d24,#16\n\tvmlal.u32\tq10,d29,d7[0]\n\tvmlal.u32\tq11,d29,d7[1]\n\tvadd.u64\td26,d26,d24\n\tvst1.32\t{d29},[r10,:64]!\t@ put aside smashed m[8*i+6]\n\tvmlal.u32\tq13,d28,d0[0]\n\tvld1.64\t{q12},[r6,:128]!\n\tvmlal.u32\tq6,d28,d0[1]\n\tveor\td8,d8,d8\n\tvmlal.u32\tq7,d28,d1[0]\n\tvshl.i64\td29,d27,#16\n\tvmlal.u32\tq8,d28,d1[1]\n\tvadd.u64\td29,d29,d26\n\tvmlal.u32\tq9,d28,d2[0]\n\tvmul.u32\td29,d29,d30\n\tvmlal.u32\tq10,d28,d2[1]\n\tvst1.32\t{d28},[r10,:64]!\t@ put aside smashed b[8*i+7]\n\tvmlal.u32\tq11,d28,d3[0]\n\tvzip.16\td29,d8\n\tvmlal.u32\tq12,d28,d3[1]\n\tvld1.32\t{d28},[sp,:64]\t\t@ pull smashed b[8*i+0]\n\tvmlal.u32\tq13,d29,d4[0]\n\tvld1.32\t{d0,d1,d2,d3},[r1]!\n\tvmlal.u32\tq6,d29,d4[1]\n\tvmlal.u32\tq7,d29,d5[0]\n\tvshr.u64\td26,d26,#16\n\tvmlal.u32\tq8,d29,d5[1]\n\tvmlal.u32\tq9,d29,d6[0]\n\tvadd.u64\td26,d26,d27\n\tvmlal.u32\tq10,d29,d6[1]\n\tvshr.u64\td26,d26,#16\n\tvmlal.u32\tq11,d29,d7[0]\n\tvmlal.u32\tq12,d29,d7[1]\n\tvadd.u64\td12,d12,d26\n\tvst1.32\t{d29},[r10,:64]\t@ put aside smashed m[8*i+7]\n\tadd\tr10,sp,#8\t\t@ rewind\n\tsub\tr8,r5,#8\n\tb\t.LNEON_8n_inner\n\n.align\t4\n.LNEON_8n_inner:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:16", "text": "vmlal.u32\tq13,d29,d4[0]\n\tvld1.32\t{d0,d1,d2,d3},[r1]!\n\tvmlal.u32\tq6,d29,d4[1]\n\tvmlal.u32\tq7,d29,d5[0]\n\tvshr.u64\td26,d26,#16\n\tvmlal.u32\tq8,d29,d5[1]\n\tvmlal.u32\tq9,d29,d6[0]\n\tvadd.u64\td26,d26,d27\n\tvmlal.u32\tq10,d29,d6[1]\n\tvshr.u64\td26,d26,#16\n\tvmlal.u32\tq11,d29,d7[0]\n\tvmlal.u32\tq12,d29,d7[1]\n\tvadd.u64\td12,d12,d26\n\tvst1.32\t{d29},[r10,:64]\t@ put aside smashed m[8*i+7]\n\tadd\tr10,sp,#8\t\t@ rewind\n\tsub\tr8,r5,#8\n\tb\t.LNEON_8n_inner\n\n.align\t4\n.LNEON_8n_inner:\n\tsubs\tr8,r8,#8\n\tvmlal.u32\tq6,d28,d0[0]\n\tvld1.64\t{q13},[r6,:128]\n\tvmlal.u32\tq7,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+0]\n\tvmlal.u32\tq8,d28,d1[0]\n\tvld1.32\t{d4,d5,d6,d7},[r3]!\n\tvmlal.u32\tq9,d28,d1[1]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq10,d28,d2[0]\n\tvmlal.u32\tq11,d28,d2[1]\n\tvmlal.u32\tq12,d28,d3[0]\n\tvmlal.u32\tq13,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+1]\n\tvmlal.u32\tq6,d29,d4[0]\n\tvmlal.u32\tq7,d29,d4[1]\n\tvmlal.u32\tq8,d29,d5[0]\n\tvmlal.u32\tq9,d29,d5[1]\n\tvmlal.u32\tq10,d29,d6[0]\n\tvmlal.u32\tq11,d29,d6[1]\n\tvmlal.u32\tq12,d29,d7[0]\n\tvmlal.u32\tq13,d29,d7[1]\n\tvst1.64\t{q6},[r7,:128]!\n\tvmlal.u32\tq7,d28,d0[0]\n\tvld1.64\t{q6},[r6,:128]\n\tvmlal.u32\tq8,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+1]\n\tvmlal.u32\tq9,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq10,d28,d1[1]\n\tvmlal.u32\tq11,d28,d2[0]\n\tvmlal.u32\tq12,d28,d2[1]\n\tvmlal.u32\tq13,d28,d3[0]\n\tvmlal.u32\tq6,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+2]\n\tvmlal.u32\tq7,d29,d4[0]\n\tvmlal.u32\tq8,d29,d4[1]\n\tvmlal.u32\tq9,d29,d5[0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:17", "text": "vmlal.u32\tq11,d29,d6[1]\n\tvmlal.u32\tq12,d29,d7[0]\n\tvmlal.u32\tq13,d29,d7[1]\n\tvst1.64\t{q6},[r7,:128]!\n\tvmlal.u32\tq7,d28,d0[0]\n\tvld1.64\t{q6},[r6,:128]\n\tvmlal.u32\tq8,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+1]\n\tvmlal.u32\tq9,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq10,d28,d1[1]\n\tvmlal.u32\tq11,d28,d2[0]\n\tvmlal.u32\tq12,d28,d2[1]\n\tvmlal.u32\tq13,d28,d3[0]\n\tvmlal.u32\tq6,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+2]\n\tvmlal.u32\tq7,d29,d4[0]\n\tvmlal.u32\tq8,d29,d4[1]\n\tvmlal.u32\tq9,d29,d5[0]\n\tvmlal.u32\tq10,d29,d5[1]\n\tvmlal.u32\tq11,d29,d6[0]\n\tvmlal.u32\tq12,d29,d6[1]\n\tvmlal.u32\tq13,d29,d7[0]\n\tvmlal.u32\tq6,d29,d7[1]\n\tvst1.64\t{q7},[r7,:128]!\n\tvmlal.u32\tq8,d28,d0[0]\n\tvld1.64\t{q7},[r6,:128]\n\tvmlal.u32\tq9,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+2]\n\tvmlal.u32\tq10,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq11,d28,d1[1]\n\tvmlal.u32\tq12,d28,d2[0]\n\tvmlal.u32\tq13,d28,d2[1]\n\tvmlal.u32\tq6,d28,d3[0]\n\tvmlal.u32\tq7,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+3]\n\tvmlal.u32\tq8,d29,d4[0]\n\tvmlal.u32\tq9,d29,d4[1]\n\tvmlal.u32\tq10,d29,d5[0]\n\tvmlal.u32\tq11,d29,d5[1]\n\tvmlal.u32\tq12,d29,d6[0]\n\tvmlal.u32\tq13,d29,d6[1]\n\tvmlal.u32\tq6,d29,d7[0]\n\tvmlal.u32\tq7,d29,d7[1]\n\tvst1.64\t{q8},[r7,:128]!\n\tvmlal.u32\tq9,d28,d0[0]\n\tvld1.64\t{q8},[r6,:128]\n\tvmlal.u32\tq10,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+3]\n\tvmlal.u32\tq11,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq12,d28,d1[1]\n\tvmlal.u32\tq13,d28,d2[0]\n\tvmlal.u32\tq6,d28,d2[1]\n\tvmlal.u32\tq7,d28,d3[0]\n\tvmlal.u32\tq8,d28,d3[1]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:18", "text": "vmlal.u32\tq9,d29,d4[1]\n\tvmlal.u32\tq10,d29,d5[0]\n\tvmlal.u32\tq11,d29,d5[1]\n\tvmlal.u32\tq12,d29,d6[0]\n\tvmlal.u32\tq13,d29,d6[1]\n\tvmlal.u32\tq6,d29,d7[0]\n\tvmlal.u32\tq7,d29,d7[1]\n\tvst1.64\t{q8},[r7,:128]!\n\tvmlal.u32\tq9,d28,d0[0]\n\tvld1.64\t{q8},[r6,:128]\n\tvmlal.u32\tq10,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+3]\n\tvmlal.u32\tq11,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq12,d28,d1[1]\n\tvmlal.u32\tq13,d28,d2[0]\n\tvmlal.u32\tq6,d28,d2[1]\n\tvmlal.u32\tq7,d28,d3[0]\n\tvmlal.u32\tq8,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+4]\n\tvmlal.u32\tq9,d29,d4[0]\n\tvmlal.u32\tq10,d29,d4[1]\n\tvmlal.u32\tq11,d29,d5[0]\n\tvmlal.u32\tq12,d29,d5[1]\n\tvmlal.u32\tq13,d29,d6[0]\n\tvmlal.u32\tq6,d29,d6[1]\n\tvmlal.u32\tq7,d29,d7[0]\n\tvmlal.u32\tq8,d29,d7[1]\n\tvst1.64\t{q9},[r7,:128]!\n\tvmlal.u32\tq10,d28,d0[0]\n\tvld1.64\t{q9},[r6,:128]\n\tvmlal.u32\tq11,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+4]\n\tvmlal.u32\tq12,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq13,d28,d1[1]\n\tvmlal.u32\tq6,d28,d2[0]\n\tvmlal.u32\tq7,d28,d2[1]\n\tvmlal.u32\tq8,d28,d3[0]\n\tvmlal.u32\tq9,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+5]\n\tvmlal.u32\tq10,d29,d4[0]\n\tvmlal.u32\tq11,d29,d4[1]\n\tvmlal.u32\tq12,d29,d5[0]\n\tvmlal.u32\tq13,d29,d5[1]\n\tvmlal.u32\tq6,d29,d6[0]\n\tvmlal.u32\tq7,d29,d6[1]\n\tvmlal.u32\tq8,d29,d7[0]\n\tvmlal.u32\tq9,d29,d7[1]\n\tvst1.64\t{q10},[r7,:128]!\n\tvmlal.u32\tq11,d28,d0[0]\n\tvld1.64\t{q10},[r6,:128]\n\tvmlal.u32\tq12,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+5]\n\tvmlal.u32\tq13,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq6,d28,d1[1]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:19", "text": "vmlal.u32\tq8,d28,d3[0]\n\tvmlal.u32\tq9,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+5]\n\tvmlal.u32\tq10,d29,d4[0]\n\tvmlal.u32\tq11,d29,d4[1]\n\tvmlal.u32\tq12,d29,d5[0]\n\tvmlal.u32\tq13,d29,d5[1]\n\tvmlal.u32\tq6,d29,d6[0]\n\tvmlal.u32\tq7,d29,d6[1]\n\tvmlal.u32\tq8,d29,d7[0]\n\tvmlal.u32\tq9,d29,d7[1]\n\tvst1.64\t{q10},[r7,:128]!\n\tvmlal.u32\tq11,d28,d0[0]\n\tvld1.64\t{q10},[r6,:128]\n\tvmlal.u32\tq12,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+5]\n\tvmlal.u32\tq13,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq6,d28,d1[1]\n\tvmlal.u32\tq7,d28,d2[0]\n\tvmlal.u32\tq8,d28,d2[1]\n\tvmlal.u32\tq9,d28,d3[0]\n\tvmlal.u32\tq10,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+6]\n\tvmlal.u32\tq11,d29,d4[0]\n\tvmlal.u32\tq12,d29,d4[1]\n\tvmlal.u32\tq13,d29,d5[0]\n\tvmlal.u32\tq6,d29,d5[1]\n\tvmlal.u32\tq7,d29,d6[0]\n\tvmlal.u32\tq8,d29,d6[1]\n\tvmlal.u32\tq9,d29,d7[0]\n\tvmlal.u32\tq10,d29,d7[1]\n\tvst1.64\t{q11},[r7,:128]!\n\tvmlal.u32\tq12,d28,d0[0]\n\tvld1.64\t{q11},[r6,:128]\n\tvmlal.u32\tq13,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+6]\n\tvmlal.u32\tq6,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq7,d28,d1[1]\n\tvmlal.u32\tq8,d28,d2[0]\n\tvmlal.u32\tq9,d28,d2[1]\n\tvmlal.u32\tq10,d28,d3[0]\n\tvmlal.u32\tq11,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+7]\n\tvmlal.u32\tq12,d29,d4[0]\n\tvmlal.u32\tq13,d29,d4[1]\n\tvmlal.u32\tq6,d29,d5[0]\n\tvmlal.u32\tq7,d29,d5[1]\n\tvmlal.u32\tq8,d29,d6[0]\n\tvmlal.u32\tq9,d29,d6[1]\n\tvmlal.u32\tq10,d29,d7[0]\n\tvmlal.u32\tq11,d29,d7[1]\n\tvst1.64\t{q12},[r7,:128]!\n\tvmlal.u32\tq13,d28,d0[0]\n\tvld1.64\t{q12},[r6,:128]\n\tvmlal.u32\tq6,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+7]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:20", "text": "addne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq7,d28,d1[1]\n\tvmlal.u32\tq8,d28,d2[0]\n\tvmlal.u32\tq9,d28,d2[1]\n\tvmlal.u32\tq10,d28,d3[0]\n\tvmlal.u32\tq11,d28,d3[1]\n\tvld1.32\t{d28},[r10,:64]!\t@ pull smashed b[8*i+7]\n\tvmlal.u32\tq12,d29,d4[0]\n\tvmlal.u32\tq13,d29,d4[1]\n\tvmlal.u32\tq6,d29,d5[0]\n\tvmlal.u32\tq7,d29,d5[1]\n\tvmlal.u32\tq8,d29,d6[0]\n\tvmlal.u32\tq9,d29,d6[1]\n\tvmlal.u32\tq10,d29,d7[0]\n\tvmlal.u32\tq11,d29,d7[1]\n\tvst1.64\t{q12},[r7,:128]!\n\tvmlal.u32\tq13,d28,d0[0]\n\tvld1.64\t{q12},[r6,:128]\n\tvmlal.u32\tq6,d28,d0[1]\n\tvld1.32\t{d29},[r10,:64]!\t@ pull smashed m[8*i+7]\n\tvmlal.u32\tq7,d28,d1[0]\n\tit\tne\n\taddne\tr6,r6,#16\t@ don't advance in last iteration\n\tvmlal.u32\tq8,d28,d1[1]\n\tvmlal.u32\tq9,d28,d2[0]\n\tvmlal.u32\tq10,d28,d2[1]\n\tvmlal.u32\tq11,d28,d3[0]\n\tvmlal.u32\tq12,d28,d3[1]\n\tit\teq\n\tsubeq\tr1,r1,r5,lsl#2\t@ rewind\n\tvmlal.u32\tq13,d29,d4[0]\n\tvld1.32\t{d28},[sp,:64]\t\t@ pull smashed b[8*i+0]\n\tvmlal.u32\tq6,d29,d4[1]\n\tvld1.32\t{d0,d1,d2,d3},[r1]!\n\tvmlal.u32\tq7,d29,d5[0]\n\tadd\tr10,sp,#8\t\t@ rewind\n\tvmlal.u32\tq8,d29,d5[1]\n\tvmlal.u32\tq9,d29,d6[0]\n\tvmlal.u32\tq10,d29,d6[1]\n\tvmlal.u32\tq11,d29,d7[0]\n\tvst1.64\t{q13},[r7,:128]!\n\tvmlal.u32\tq12,d29,d7[1]\n\n\tbne\t.LNEON_8n_inner\n\tadd\tr6,sp,#128\n\tvst1.64\t{q6,q7},[r7,:256]!\n\tveor\tq2,q2,q2\t\t@ d4-d5\n\tvst1.64\t{q8,q9},[r7,:256]!\n\tveor\tq3,q3,q3\t\t@ d6-d7\n\tvst1.64\t{q10,q11},[r7,:256]!\n\tvst1.64\t{q12},[r7,:128]\n\n\tsubs\tr9,r9,#8\n\tvld1.64\t{q6,q7},[r6,:256]!\n\tvld1.64\t{q8,q9},[r6,:256]!\n\tvld1.64\t{q10,q11},[r6,:256]!\n\tvld1.64\t{q12,q13},[r6,:256]!\n\n\titt\tne\n\tsubne\tr3,r3,r5,lsl#2\t@ rewind", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:21", "text": "vst1.64\t{q13},[r7,:128]!\n\tvmlal.u32\tq12,d29,d7[1]\n\n\tbne\t.LNEON_8n_inner\n\tadd\tr6,sp,#128\n\tvst1.64\t{q6,q7},[r7,:256]!\n\tveor\tq2,q2,q2\t\t@ d4-d5\n\tvst1.64\t{q8,q9},[r7,:256]!\n\tveor\tq3,q3,q3\t\t@ d6-d7\n\tvst1.64\t{q10,q11},[r7,:256]!\n\tvst1.64\t{q12},[r7,:128]\n\n\tsubs\tr9,r9,#8\n\tvld1.64\t{q6,q7},[r6,:256]!\n\tvld1.64\t{q8,q9},[r6,:256]!\n\tvld1.64\t{q10,q11},[r6,:256]!\n\tvld1.64\t{q12,q13},[r6,:256]!\n\n\titt\tne\n\tsubne\tr3,r3,r5,lsl#2\t@ rewind\n\tbne\t.LNEON_8n_outer\n\n\tadd\tr7,sp,#128\n\tvst1.64\t{q2,q3}, [sp,:256]!\t@ start wiping stack frame\n\tvshr.u64\td10,d12,#16\n\tvst1.64\t{q2,q3},[sp,:256]!\n\tvadd.u64\td13,d13,d10\n\tvst1.64\t{q2,q3}, [sp,:256]!\n\tvshr.u64\td10,d13,#16\n\tvst1.64\t{q2,q3}, [sp,:256]!\n\tvzip.16\td12,d13\n\n\tmov\tr8,r5\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_tail:\n\tvadd.u64\td12,d12,d10\n\tvshr.u64\td10,d12,#16\n\tvld1.64\t{q8,q9}, [r6, :256]!\n\tvadd.u64\td13,d13,d10\n\tvld1.64\t{q10,q11}, [r6, :256]!\n\tvshr.u64\td10,d13,#16\n\tvld1.64\t{q12,q13}, [r6, :256]!\n\tvzip.16\td12,d13\n\n.LNEON_tail_entry:\n\tvadd.u64\td14,d14,d10\n\tvst1.32\t{d12[0]}, [r7, :32]!\n\tvshr.u64\td10,d14,#16\n\tvadd.u64\td15,d15,d10\n\tvshr.u64\td10,d15,#16\n\tvzip.16\td14,d15\n\tvadd.u64\td16,d16,d10\n\tvst1.32\t{d14[0]}, [r7, :32]!\n\tvshr.u64\td10,d16,#16\n\tvadd.u64\td17,d17,d10\n\tvshr.u64\td10,d17,#16\n\tvzip.16\td16,d17\n\tvadd.u64\td18,d18,d10", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:22", "text": "vadd.u64\td13,d13,d10\n\tvld1.64\t{q10,q11}, [r6, :256]!\n\tvshr.u64\td10,d13,#16\n\tvld1.64\t{q12,q13}, [r6, :256]!\n\tvzip.16\td12,d13\n\n.LNEON_tail_entry:\n\tvadd.u64\td14,d14,d10\n\tvst1.32\t{d12[0]}, [r7, :32]!\n\tvshr.u64\td10,d14,#16\n\tvadd.u64\td15,d15,d10\n\tvshr.u64\td10,d15,#16\n\tvzip.16\td14,d15\n\tvadd.u64\td16,d16,d10\n\tvst1.32\t{d14[0]}, [r7, :32]!\n\tvshr.u64\td10,d16,#16\n\tvadd.u64\td17,d17,d10\n\tvshr.u64\td10,d17,#16\n\tvzip.16\td16,d17\n\tvadd.u64\td18,d18,d10\n\tvst1.32\t{d16[0]}, [r7, :32]!\n\tvshr.u64\td10,d18,#16\n\tvadd.u64\td19,d19,d10\n\tvshr.u64\td10,d19,#16\n\tvzip.16\td18,d19\n\tvadd.u64\td20,d20,d10\n\tvst1.32\t{d18[0]}, [r7, :32]!\n\tvshr.u64\td10,d20,#16\n\tvadd.u64\td21,d21,d10\n\tvshr.u64\td10,d21,#16\n\tvzip.16\td20,d21\n\tvadd.u64\td22,d22,d10\n\tvst1.32\t{d20[0]}, [r7, :32]!\n\tvshr.u64\td10,d22,#16\n\tvadd.u64\td23,d23,d10\n\tvshr.u64\td10,d23,#16\n\tvzip.16\td22,d23\n\tvadd.u64\td24,d24,d10\n\tvst1.32\t{d22[0]}, [r7, :32]!\n\tvshr.u64\td10,d24,#16\n\tvadd.u64\td25,d25,d10\n\tvshr.u64\td10,d25,#16\n\tvzip.16\td24,d25\n\tvadd.u64\td26,d26,d10\n\tvst1.32\t{d24[0]}, [r7, :32]!\n\tvshr.u64\td10,d26,#16\n\tvadd.u64\td27,d27,d10\n\tvshr.u64\td10,d27,#16\n\tvzip.16\td26,d27\n\tvld1.64\t{q6,q7}, [r6, :256]!\n\tsubs\tr8,r8,#8\n\tvst1.32\t{d26[0]},   [r7, :32]!\n\tbne\t.LNEON_tail\n\n\tvst1.32\t{d10[0]}, [r7, :32]\t\t@ top-most bit\n\tsub\tr3,r3,r5,lsl#2\t\t\t@ rewind r3\n\tsubs\tr1,sp,#0\t\t\t\t@ clear carry flag\n\tadd\tr2,sp,r5,lsl#2\n\n.LNEON_sub:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:23", "text": "vadd.u64\td25,d25,d10\n\tvshr.u64\td10,d25,#16\n\tvzip.16\td24,d25\n\tvadd.u64\td26,d26,d10\n\tvst1.32\t{d24[0]}, [r7, :32]!\n\tvshr.u64\td10,d26,#16\n\tvadd.u64\td27,d27,d10\n\tvshr.u64\td10,d27,#16\n\tvzip.16\td26,d27\n\tvld1.64\t{q6,q7}, [r6, :256]!\n\tsubs\tr8,r8,#8\n\tvst1.32\t{d26[0]},   [r7, :32]!\n\tbne\t.LNEON_tail\n\n\tvst1.32\t{d10[0]}, [r7, :32]\t\t@ top-most bit\n\tsub\tr3,r3,r5,lsl#2\t\t\t@ rewind r3\n\tsubs\tr1,sp,#0\t\t\t\t@ clear carry flag\n\tadd\tr2,sp,r5,lsl#2\n\n.LNEON_sub:\n\tldmia\tr1!, {r4,r5,r6,r7}\n\tldmia\tr3!, {r8,r9,r10,r11}\n\tsbcs\tr8, r4,r8\n\tsbcs\tr9, r5,r9\n\tsbcs\tr10,r6,r10\n\tsbcs\tr11,r7,r11\n\tteq\tr1,r2\t\t\t\t@ preserves carry\n\tstmia\tr0!, {r8,r9,r10,r11}\n\tbne\t.LNEON_sub\n\n\tldr\tr10, [r1]\t\t\t\t@ load top-most bit\n\tmov\tr11,sp\n\tveor\tq0,q0,q0\n\tsub\tr11,r2,r11\t\t\t\t@ this is num*4\n\tveor\tq1,q1,q1\n\tmov\tr1,sp\n\tsub\tr0,r0,r11\t\t\t\t@ rewind r0\n\tmov\tr3,r2\t\t\t\t@ second 3/4th of frame\n\tsbcs\tr10,r10,#0\t\t\t\t@ result is carry flag\n\n.LNEON_copy_n_zap:\n\tldmia\tr1!, {r4,r5,r6,r7}\n\tldmia\tr0,  {r8,r9,r10,r11}\n\tit\tcc\n\tmovcc\tr8, r4\n\tvst1.64\t{q0,q1}, [r3,:256]!\t\t\t@ wipe\n\titt\tcc\n\tmovcc\tr9, r5\n\tmovcc\tr10,r6\n\tvst1.64\t{q0,q1}, [r3,:256]!\t\t\t@ wipe\n\tit\tcc\n\tmovcc\tr11,r7\n\tldmia\tr1, {r4,r5,r6,r7}\n\tstmia\tr0!, {r8,r9,r10,r11}\n\tsub\tr1,r1,#16\n\tldmia\tr0, {r8,r9,r10,r11}\n\tit\tcc\n\tmovcc\tr8, r4\n\tvst1.64\t{q0,q1}, [r1,:256]!\t\t\t@ wipe\n\titt\tcc", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S:24", "text": ".LNEON_copy_n_zap:\n\tldmia\tr1!, {r4,r5,r6,r7}\n\tldmia\tr0,  {r8,r9,r10,r11}\n\tit\tcc\n\tmovcc\tr8, r4\n\tvst1.64\t{q0,q1}, [r3,:256]!\t\t\t@ wipe\n\titt\tcc\n\tmovcc\tr9, r5\n\tmovcc\tr10,r6\n\tvst1.64\t{q0,q1}, [r3,:256]!\t\t\t@ wipe\n\tit\tcc\n\tmovcc\tr11,r7\n\tldmia\tr1, {r4,r5,r6,r7}\n\tstmia\tr0!, {r8,r9,r10,r11}\n\tsub\tr1,r1,#16\n\tldmia\tr0, {r8,r9,r10,r11}\n\tit\tcc\n\tmovcc\tr8, r4\n\tvst1.64\t{q0,q1}, [r1,:256]!\t\t\t@ wipe\n\titt\tcc\n\tmovcc\tr9, r5\n\tmovcc\tr10,r6\n\tvst1.64\t{q0,q1}, [r3,:256]!\t\t\t@ wipe\n\tit\tcc\n\tmovcc\tr11,r7\n\tteq\tr1,r2\t\t\t\t@ preserves carry\n\tstmia\tr0!, {r8,r9,r10,r11}\n\tbne\t.LNEON_copy_n_zap\n\n\tmov\tsp,ip\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\tRET\t\t\t\t\t\t@ bx lr\n.size\tbn_mul8x_mont_neon,.-bn_mul8x_mont_neon\n#endif\n.byte\t77,111,110,116,103,111,109,101,114,121,32,109,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2\n#if __ARM_MAX_ARCH__>=7\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4-mont.S", "line_start": 921, "line_end": 962}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__) && !defined(__APPLE__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#undef\t__thumb2__\n#endif\n\n.text\n\n.align\t5\n.globl\tOPENSSL_atomic_add\n.type\tOPENSSL_atomic_add,%function\nOPENSSL_atomic_add:\n#if __ARM_ARCH__>=6\n.Ladd:\tldrex\tr2,[r0]\n\tadd\tr3,r2,r1\n\tstrex\tr2,r3,[r0]\n\tcmp\tr2,#0\n\tbne\t.Ladd\n\tmov\tr0,r3\n\tRET\n#else\n\tstmdb\tsp!,{r4,r5,r6,lr}\n\tldr\tr2,.Lspinlock\n\tadr\tr3,.Lspinlock\n\tmov\tr4,r0\n\tmov\tr5,r1\n\tadd\tr6,r3,r2\t@ &spinlock\n\tb\t.+8\n.Lspin:\tbl\tsched_yield\n\tmov\tr0,#-1\n\tswp\tr0,r0,[r6]\n\tcmp\tr0,#0\n\tbne\t.Lspin\n\n\tldr\tr2,[r4]\n\tadd\tr2,r2,r5\n\tstr\tr2,[r4]\n\tstr\tr0,[r6]\t\t@ release spinlock\n\tldmia\tsp!,{r4,r5,r6,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_atomic_add,.-OPENSSL_atomic_add\n\n.globl\tOPENSSL_cleanse\n.type\tOPENSSL_cleanse,%function\nOPENSSL_cleanse:\n\teor\tip,ip,ip\n\tcmp\tr1,#7\n#ifdef\t__thumb2__\n\titt\ths\n#endif\n\tsubhs\tr1,r1,#4\n\tbhs\t.Lot", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:2", "text": "add\tr2,r2,r5\n\tstr\tr2,[r4]\n\tstr\tr0,[r6]\t\t@ release spinlock\n\tldmia\tsp!,{r4,r5,r6,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_atomic_add,.-OPENSSL_atomic_add\n\n.globl\tOPENSSL_cleanse\n.type\tOPENSSL_cleanse,%function\nOPENSSL_cleanse:\n\teor\tip,ip,ip\n\tcmp\tr1,#7\n#ifdef\t__thumb2__\n\titt\ths\n#endif\n\tsubhs\tr1,r1,#4\n\tbhs\t.Lot\n\tcmp\tr1,#0\n\tbeq\t.Lcleanse_done\n.Little:\n\tstrb\tip,[r0],#1\n\tsubs\tr1,r1,#1\n\tbhi\t.Little\n\tb\t.Lcleanse_done\n\n.Lot:\ttst\tr0,#3\n\tbeq\t.Laligned\n\tstrb\tip,[r0],#1\n\tsub\tr1,r1,#1\n\tb\t.Lot\n.Laligned:\n\tstr\tip,[r0],#4\n\tsubs\tr1,r1,#4\n\tbhs\t.Laligned\n\tadds\tr1,r1,#4\n\tbne\t.Little\n.Lcleanse_done:\n#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_cleanse,.-OPENSSL_cleanse\n\n.globl\tCRYPTO_memcmp\n.type\tCRYPTO_memcmp,%function\n.align\t4\nCRYPTO_memcmp:\n\teor\tip,ip,ip\n\tcmp\tr2,#0\n\tbeq\t.Lno_data\n\tstmdb\tsp!,{r4,r5}\n\n.Loop_cmp:\n\tldrb\tr4,[r0],#1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:3", "text": "#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_cleanse,.-OPENSSL_cleanse\n\n.globl\tCRYPTO_memcmp\n.type\tCRYPTO_memcmp,%function\n.align\t4\nCRYPTO_memcmp:\n\teor\tip,ip,ip\n\tcmp\tr2,#0\n\tbeq\t.Lno_data\n\tstmdb\tsp!,{r4,r5}\n\n.Loop_cmp:\n\tldrb\tr4,[r0],#1\n\tldrb\tr5,[r1],#1\n\teor\tr4,r4,r5\n\torr\tip,ip,r4\n\tsubs\tr2,r2,#1\n\tbne\t.Loop_cmp\n\n\tldmia\tsp!,{r4,r5}\n.Lno_data:\n\trsb\tr0,ip,#0\n\tmov\tr0,r0,lsr#31\n#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tCRYPTO_memcmp,.-CRYPTO_memcmp\n\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.align\t5\n.globl\t_armv7_neon_probe\n.type\t_armv7_neon_probe,%function\n_armv7_neon_probe:\n\tvorr\tq0,q0,q0\n\tRET\n.size\t_armv7_neon_probe,.-_armv7_neon_probe\n\n.globl\t_armv7_tick\n.type\t_armv7_tick,%function\n_armv7_tick:\n#ifdef\t__APPLE__\n\tmrrc\tp15,0,r0,r1,c14\t\t@ CNTPCT\n#else\n\tmrrc\tp15,1,r0,r1,c14\t\t@ CNTVCT\n#endif\n\tRET", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:4", "text": ".arch\tarmv7-a\n.fpu\tneon\n\n.align\t5\n.globl\t_armv7_neon_probe\n.type\t_armv7_neon_probe,%function\n_armv7_neon_probe:\n\tvorr\tq0,q0,q0\n\tRET\n.size\t_armv7_neon_probe,.-_armv7_neon_probe\n\n.globl\t_armv7_tick\n.type\t_armv7_tick,%function\n_armv7_tick:\n#ifdef\t__APPLE__\n\tmrrc\tp15,0,r0,r1,c14\t\t@ CNTPCT\n#else\n\tmrrc\tp15,1,r0,r1,c14\t\t@ CNTVCT\n#endif\n\tRET\n.size\t_armv7_tick,.-_armv7_tick\n\n.globl\t_armv8_aes_probe\n.type\t_armv8_aes_probe,%function\n_armv8_aes_probe:\n#if defined(__thumb2__) && !defined(__APPLE__)\n.byte\t0xb0,0xff,0x00,0x03\t@ aese.8\tq0,q0\n#else\n.byte\t0x00,0x03,0xb0,0xf3\t@ aese.8\tq0,q0\n#endif\n\tRET\n.size\t_armv8_aes_probe,.-_armv8_aes_probe\n\n.globl\t_armv8_sha1_probe\n.type\t_armv8_sha1_probe,%function\n_armv8_sha1_probe:\n#if defined(__thumb2__) && !defined(__APPLE__)\n.byte\t0x00,0xef,0x40,0x0c\t@ sha1c.32\tq0,q0,q0\n#else\n.byte\t0x40,0x0c,0x00,0xf2\t@ sha1c.32\tq0,q0,q0\n#endif\n\tRET\n.size\t_armv8_sha1_probe,.-_armv8_sha1_probe\n\n.globl\t_armv8_sha256_probe\n.type\t_armv8_sha256_probe,%function\n_armv8_sha256_probe:\n#if defined(__thumb2__) && !defined(__APPLE__)\n.byte\t0x00,0xff,0x40,0x0c\t@ sha256h.32\tq0,q0,q0\n#else\n.byte\t0x40,0x0c,0x00,0xf3\t@ sha256h.32\tq0,q0,q0\n#endif\n\tRET\n.size\t_armv8_sha256_probe,.-_armv8_sha256_probe\n.globl\t_armv8_pmull_probe\n.type\t_armv8_pmull_probe,%function\n_armv8_pmull_probe:\n#if defined(__thumb2__) && !defined(__APPLE__)\n.byte\t0xa0,0xef,0x00,0x0e\t@ vmull.p64\tq0,d0,d0\n#else", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:5", "text": "#endif\n\tRET\n.size\t_armv8_sha1_probe,.-_armv8_sha1_probe\n\n.globl\t_armv8_sha256_probe\n.type\t_armv8_sha256_probe,%function\n_armv8_sha256_probe:\n#if defined(__thumb2__) && !defined(__APPLE__)\n.byte\t0x00,0xff,0x40,0x0c\t@ sha256h.32\tq0,q0,q0\n#else\n.byte\t0x40,0x0c,0x00,0xf3\t@ sha256h.32\tq0,q0,q0\n#endif\n\tRET\n.size\t_armv8_sha256_probe,.-_armv8_sha256_probe\n.globl\t_armv8_pmull_probe\n.type\t_armv8_pmull_probe,%function\n_armv8_pmull_probe:\n#if defined(__thumb2__) && !defined(__APPLE__)\n.byte\t0xa0,0xef,0x00,0x0e\t@ vmull.p64\tq0,d0,d0\n#else\n.byte\t0x00,0x0e,0xa0,0xf2\t@ vmull.p64\tq0,d0,d0\n#endif\n\tRET\n.size\t_armv8_pmull_probe,.-_armv8_pmull_probe\n#endif\n\n.globl\tOPENSSL_wipe_cpu\n.type\tOPENSSL_wipe_cpu,%function\nOPENSSL_wipe_cpu:\n#if __ARM_MAX_ARCH__>=7\n\tldr\tr0,.LOPENSSL_armcap\n\tadr\tr1,.LOPENSSL_armcap\n\tldr\tr0,[r1,r0]\n#ifdef\t__APPLE__\n\tldr\tr0,[r0]\n#endif\n#endif\n\teor\tr2,r2,r2\n\teor\tr3,r3,r3\n\teor\tip,ip,ip\n#if __ARM_MAX_ARCH__>=7\n\ttst\tr0,#1\n\tbeq\t.Lwipe_done\n\tveor\tq0, q0, q0\n\tveor\tq1, q1, q1\n\tveor\tq2, q2, q2\n\tveor\tq3, q3, q3\n\tveor\tq8, q8, q8\n\tveor\tq9, q9, q9\n\tveor\tq10, q10, q10\n\tveor\tq11, q11, q11\n\tveor\tq12, q12, q12\n\tveor\tq13, q13, q13\n\tveor\tq14, q14, q14\n\tveor\tq15, q15, q15\n.Lwipe_done:\n#endif\n\tmov\tr0,sp\n#if __ARM_ARCH__>=5\n\tRET", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:6", "text": "#if __ARM_MAX_ARCH__>=7\n\ttst\tr0,#1\n\tbeq\t.Lwipe_done\n\tveor\tq0, q0, q0\n\tveor\tq1, q1, q1\n\tveor\tq2, q2, q2\n\tveor\tq3, q3, q3\n\tveor\tq8, q8, q8\n\tveor\tq9, q9, q9\n\tveor\tq10, q10, q10\n\tveor\tq11, q11, q11\n\tveor\tq12, q12, q12\n\tveor\tq13, q13, q13\n\tveor\tq14, q14, q14\n\tveor\tq15, q15, q15\n.Lwipe_done:\n#endif\n\tmov\tr0,sp\n#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_wipe_cpu,.-OPENSSL_wipe_cpu\n\n.globl\tOPENSSL_instrument_bus\n.type\tOPENSSL_instrument_bus,%function\nOPENSSL_instrument_bus:\n\teor\tr0,r0,r0\n#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_instrument_bus,.-OPENSSL_instrument_bus\n\n.globl\tOPENSSL_instrument_bus2\n.type\tOPENSSL_instrument_bus2,%function\nOPENSSL_instrument_bus2:\n\teor\tr0,r0,r0\n#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_instrument_bus2,.-OPENSSL_instrument_bus2\n\n.align\t5\n#if __ARM_MAX_ARCH__>=7\n.LOPENSSL_armcap:\n.word\tOPENSSL_armcap_P-.\n#endif\n#if __ARM_ARCH__>=6\n.align\t5", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S:7", "text": ".globl\tOPENSSL_instrument_bus2\n.type\tOPENSSL_instrument_bus2,%function\nOPENSSL_instrument_bus2:\n\teor\tr0,r0,r0\n#if __ARM_ARCH__>=5\n\tRET\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\n.word\t0xe12fff1e\t@ RET\n#endif\n.size\tOPENSSL_instrument_bus2,.-OPENSSL_instrument_bus2\n\n.align\t5\n#if __ARM_MAX_ARCH__>=7\n.LOPENSSL_armcap:\n.word\tOPENSSL_armcap_P-.\n#endif\n#if __ARM_ARCH__>=6\n.align\t5\n#else\n.Lspinlock:\n.word\tatomic_add_spinlock-.Lspinlock\n.align\t5\n\n.data\n.align\t2\natomic_add_spinlock:\n.word\t0\n#endif\n\n\n.hidden\tOPENSSL_armcap_P", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv4cpuid.S", "line_start": 241, "line_end": 273}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n#ifndef\t__KERNEL__\n\n.hidden\tOPENSSL_armv8_rsa_neonized\n#endif\n.text\n\n.globl\tbn_mul_mont\n.type\tbn_mul_mont,%function\n.align\t5\nbn_mul_mont:\n\tAARCH64_SIGN_LINK_REGISTER\n.Lbn_mul_mont:\n\ttst\tx5,#3\n\tb.ne\t.Lmul_mont\n\tcmp\tx5,#32\n\tb.le\t.Lscalar_impl\n#ifndef\t__KERNEL__\n#ifndef\t__AARCH64EB__\n\tadrp\tx17,OPENSSL_armv8_rsa_neonized\n\tldr\tw17,[x17,#:lo12:OPENSSL_armv8_rsa_neonized]\n\tcbnz\tw17, bn_mul8x_mont_neon\n#endif\n#endif\n\n.Lscalar_impl:\n\ttst\tx5,#7\n\tb.eq\t__bn_sqr8x_mont\n\ttst\tx5,#3\n\tb.eq\t__bn_mul4x_mont\n\n.Lmul_mont:\n\tstp\tx29,x30,[sp,#-64]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\n\tldr\tx9,[x2],#8\t\t// bp[0]\n\tsub\tx22,sp,x5,lsl#3\n\tldp\tx7,x8,[x1],#16\t// ap[0..1]\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tand\tx22,x22,#-16\t\t// ABI says so\n\tldp\tx13,x14,[x3],#16\t// np[0..1]\n\n\tmul\tx6,x7,x9\t\t// ap[0]*bp[0]\n\tsub\tx21,x5,#16\t\t// j=num-2\n\tumulh\tx7,x7,x9\n\tmul\tx10,x8,x9\t\t// ap[1]*bp[0]\n\tumulh\tx11,x8,x9\n\n\tmul\tx15,x6,x4\t\t// \"tp[0]\"*n0\n\tmov\tsp,x22\t\t\t// alloca\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\t// discarded", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:2", "text": "sub\tx22,sp,x5,lsl#3\n\tldp\tx7,x8,[x1],#16\t// ap[0..1]\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tand\tx22,x22,#-16\t\t// ABI says so\n\tldp\tx13,x14,[x3],#16\t// np[0..1]\n\n\tmul\tx6,x7,x9\t\t// ap[0]*bp[0]\n\tsub\tx21,x5,#16\t\t// j=num-2\n\tumulh\tx7,x7,x9\n\tmul\tx10,x8,x9\t\t// ap[1]*bp[0]\n\tumulh\tx11,x8,x9\n\n\tmul\tx15,x6,x4\t\t// \"tp[0]\"*n0\n\tmov\tsp,x22\t\t\t// alloca\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\t// discarded\n\t// (*)\tAs for removal of first multiplication and addition\n\t//\tinstructions. The outcome of first addition is\n\t//\tguaranteed to be zero, which leaves two computationally\n\t//\tsignificant outcomes: it either carries or not. Then\n\t//\tquestion is when does it carry? Is there alternative\n\t//\tway to deduce it? If you follow operations, you can\n\t//\tobserve that condition for carry is quite simple:\n\t//\tx6 being non-zero. So that carry can be calculated\n\t//\tby adding -1 to x6. That's what next instruction does.\n\tsubs\txzr,x6,#1\t\t// (*)\n\tumulh\tx17,x14,x15\n\tadc\tx13,x13,xzr\n\tcbz\tx21,.L1st_skip\n\n.L1st:\n\tldr\tx8,[x1],#8\n\tadds\tx6,x10,x7\n\tsub\tx21,x21,#8\t\t// j--\n\tadc\tx7,x11,xzr\n\n\tldr\tx14,[x3],#8\n\tadds\tx12,x16,x13\n\tmul\tx10,x8,x9\t\t// ap[j]*bp[0]\n\tadc\tx13,x17,xzr\n\tumulh\tx11,x8,x9\n\n\tadds\tx12,x12,x6\n\tmul\tx16,x14,x15\t\t// np[j]*m1\n\tadc\tx13,x13,xzr\n\tumulh\tx17,x14,x15\n\tstr\tx12,[x22],#8\t\t// tp[j-1]\n\tcbnz\tx21,.L1st\n\n.L1st_skip:\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:3", "text": "ldr\tx14,[x3],#8\n\tadds\tx12,x16,x13\n\tmul\tx10,x8,x9\t\t// ap[j]*bp[0]\n\tadc\tx13,x17,xzr\n\tumulh\tx11,x8,x9\n\n\tadds\tx12,x12,x6\n\tmul\tx16,x14,x15\t\t// np[j]*m1\n\tadc\tx13,x13,xzr\n\tumulh\tx17,x14,x15\n\tstr\tx12,[x22],#8\t\t// tp[j-1]\n\tcbnz\tx21,.L1st\n\n.L1st_skip:\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadc\tx13,x17,xzr\n\n\tadds\tx12,x12,x6\n\tsub\tx20,x5,#8\t\t// i=num-1\n\tadcs\tx13,x13,x7\n\n\tadc\tx19,xzr,xzr\t\t// upmost overflow bit\n\tstp\tx12,x13,[x22]\n\n.Louter:\n\tldr\tx9,[x2],#8\t\t// bp[i]\n\tldp\tx7,x8,[x1],#16\n\tldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\n\tmul\tx6,x7,x9\t\t// ap[0]*bp[i]\n\tsub\tx21,x5,#16\t\t// j=num-2\n\tumulh\tx7,x7,x9\n\tldp\tx13,x14,[x3],#16\n\tmul\tx10,x8,x9\t\t// ap[1]*bp[i]\n\tadds\tx6,x6,x23\n\tumulh\tx11,x8,x9\n\tadc\tx7,x7,xzr\n\n\tmul\tx15,x6,x4\n\tsub\tx20,x20,#8\t\t// i--\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\n\tsubs\txzr,x6,#1\t\t// (*)\n\tumulh\tx17,x14,x15\n\tcbz\tx21,.Linner_skip\n\n.Linner:\n\tldr\tx8,[x1],#8\n\tadc\tx13,x13,xzr\n\tldr\tx23,[x22],#8\t\t// tp[j]\n\tadds\tx6,x10,x7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:4", "text": "adds\tx6,x6,x23\n\tumulh\tx11,x8,x9\n\tadc\tx7,x7,xzr\n\n\tmul\tx15,x6,x4\n\tsub\tx20,x20,#8\t\t// i--\n\n\t// (*)\tmul\tx12,x13,x15\t// np[0]*m1\n\tumulh\tx13,x13,x15\n\tmul\tx16,x14,x15\t\t// np[1]*m1\n\t// (*)\tadds\tx12,x12,x6\n\tsubs\txzr,x6,#1\t\t// (*)\n\tumulh\tx17,x14,x15\n\tcbz\tx21,.Linner_skip\n\n.Linner:\n\tldr\tx8,[x1],#8\n\tadc\tx13,x13,xzr\n\tldr\tx23,[x22],#8\t\t// tp[j]\n\tadds\tx6,x10,x7\n\tsub\tx21,x21,#8\t\t// j--\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tldr\tx14,[x3],#8\n\tadc\tx13,x17,xzr\n\n\tmul\tx10,x8,x9\t\t// ap[j]*bp[i]\n\tadds\tx6,x6,x23\n\tumulh\tx11,x8,x9\n\tadc\tx7,x7,xzr\n\n\tmul\tx16,x14,x15\t\t// np[j]*m1\n\tadds\tx12,x12,x6\n\tumulh\tx17,x14,x15\n\tstur\tx12,[x22,#-16]\t\t// tp[j-1]\n\tcbnz\tx21,.Linner\n\n.Linner_skip:\n\tldr\tx23,[x22],#8\t\t// tp[j]\n\tadc\tx13,x13,xzr\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadcs\tx13,x17,x19\n\tadc\tx19,xzr,xzr\n\n\tadds\tx6,x6,x23\n\tadc\tx7,x7,xzr\n\n\tadds\tx12,x12,x6\n\tadcs\tx13,x13,x7\n\tadc\tx19,x19,xzr\t\t// upmost overflow bit\n\tstp\tx12,x13,[x22,#-16]\n\n\tcbnz\tx20,.Louter", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:5", "text": "adc\tx13,x13,xzr\n\tadds\tx6,x10,x7\n\tsub\tx1,x1,x5\t\t// rewind x1\n\tadc\tx7,x11,xzr\n\n\tadds\tx12,x16,x13\n\tsub\tx3,x3,x5\t\t// rewind x3\n\tadcs\tx13,x17,x19\n\tadc\tx19,xzr,xzr\n\n\tadds\tx6,x6,x23\n\tadc\tx7,x7,xzr\n\n\tadds\tx12,x12,x6\n\tadcs\tx13,x13,x7\n\tadc\tx19,x19,xzr\t\t// upmost overflow bit\n\tstp\tx12,x13,[x22,#-16]\n\n\tcbnz\tx20,.Louter\n\n\t// Final step. We see if result is larger than modulus, and\n\t// if it is, subtract the modulus. But comparison implies\n\t// subtraction. So we subtract modulus, see if it borrowed,\n\t// and conditionally copy original value.\n\tldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\tldr\tx14,[x3],#8\t\t// np[0]\n\tsubs\tx21,x5,#8\t\t// j=num-1 and clear borrow\n\tmov\tx1,x0\n.Lsub:\n\tsbcs\tx8,x23,x14\t\t// tp[j]-np[j]\n\tldr\tx23,[x22],#8\n\tsub\tx21,x21,#8\t\t// j--\n\tldr\tx14,[x3],#8\n\tstr\tx8,[x1],#8\t\t// rp[j]=tp[j]-np[j]\n\tcbnz\tx21,.Lsub\n\n\tsbcs\tx8,x23,x14\n\tsbcs\tx19,x19,xzr\t\t// did it borrow?\n\tstr\tx8,[x1],#8\t\t// rp[num-1]\n\n\tldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\tldr\tx8,[x0],#8\t\t// rp[0]\n\tsub\tx5,x5,#8\t\t// num--\n\tnop\n.Lcond_copy:\n\tsub\tx5,x5,#8\t\t// num--\n\tcsel\tx14,x23,x8,lo\t\t// did it borrow?\n\tldr\tx23,[x22],#8\n\tldr\tx8,[x0],#8\n\tstur\txzr,[x22,#-16]\t\t// wipe tp\n\tstur\tx14,[x0,#-16]\n\tcbnz\tx5,.Lcond_copy\n\n\tcsel\tx14,x23,x8,lo\n\tstur\txzr,[x22,#-8]\t\t// wipe tp\n\tstur\tx14,[x0,#-8]\n\n\tldp\tx19,x20,[x29,#16]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:6", "text": "ldr\tx23,[sp]\t\t// tp[0]\n\tadd\tx22,sp,#8\n\tldr\tx8,[x0],#8\t\t// rp[0]\n\tsub\tx5,x5,#8\t\t// num--\n\tnop\n.Lcond_copy:\n\tsub\tx5,x5,#8\t\t// num--\n\tcsel\tx14,x23,x8,lo\t\t// did it borrow?\n\tldr\tx23,[x22],#8\n\tldr\tx8,[x0],#8\n\tstur\txzr,[x22,#-16]\t\t// wipe tp\n\tstur\tx14,[x0,#-16]\n\tcbnz\tx5,.Lcond_copy\n\n\tcsel\tx14,x23,x8,lo\n\tstur\txzr,[x22,#-8]\t\t// wipe tp\n\tstur\tx14,[x0,#-8]\n\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldr\tx29,[sp],#64\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tbn_mul_mont,.-bn_mul_mont\n.type\tbn_mul8x_mont_neon,%function\n.align\t5\nbn_mul8x_mont_neon:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because bn_mul8x_mont_neon is jumped to\n\t// only from bn_mul_mont which has already signed the return address.\n\tstp\tx29,x30,[sp,#-80]!\n\tmov\tx16,sp\n\tstp\td8,d9,[sp,#16]\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tlsl\tx5,x5,#1\n\teor\tv14.16b,v14.16b,v14.16b\n\n.align\t4\n.LNEON_8n:\n\teor\tv6.16b,v6.16b,v6.16b\n\tsub\tx7,sp,#128\n\teor\tv7.16b,v7.16b,v7.16b\n\tsub\tx7,x7,x5,lsl#4\n\teor\tv8.16b,v8.16b,v8.16b\n\tand\tx7,x7,#-64\n\teor\tv9.16b,v9.16b,v9.16b\n\tmov\tsp,x7\t\t// alloca\n\teor\tv10.16b,v10.16b,v10.16b\n\tadd\tx7,x7,#256\n\teor\tv11.16b,v11.16b,v11.16b\n\tsub\tx8,x5,#8\n\teor\tv12.16b,v12.16b,v12.16b\n\teor\tv13.16b,v13.16b,v13.16b\n\n.LNEON_8n_init:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:7", "text": "eor\tv14.16b,v14.16b,v14.16b\n\n.align\t4\n.LNEON_8n:\n\teor\tv6.16b,v6.16b,v6.16b\n\tsub\tx7,sp,#128\n\teor\tv7.16b,v7.16b,v7.16b\n\tsub\tx7,x7,x5,lsl#4\n\teor\tv8.16b,v8.16b,v8.16b\n\tand\tx7,x7,#-64\n\teor\tv9.16b,v9.16b,v9.16b\n\tmov\tsp,x7\t\t// alloca\n\teor\tv10.16b,v10.16b,v10.16b\n\tadd\tx7,x7,#256\n\teor\tv11.16b,v11.16b,v11.16b\n\tsub\tx8,x5,#8\n\teor\tv12.16b,v12.16b,v12.16b\n\teor\tv13.16b,v13.16b,v13.16b\n\n.LNEON_8n_init:\n\tst1\t{v6.2d,v7.2d},[x7],#32\n\tsubs\tx8,x8,#8\n\tst1\t{v8.2d,v9.2d},[x7],#32\n\tst1\t{v10.2d,v11.2d},[x7],#32\n\tst1\t{v12.2d,v13.2d},[x7],#32\n\tbne\t.LNEON_8n_init\n\n\tadd\tx6,sp,#256\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tadd\tx10,sp,#8\n\tldr\ts30,[x4],#4\n\tmov\tx9,x5\n\tb\t.LNEON_8n_outer\n\n.align\t4\n.LNEON_8n_outer:\n\tldr\ts28,[x2],#4   // *b++\n\tuxtl\tv28.4s,v28.4h\n\tadd\tx7,sp,#128\n\tld1\t{v2.4s,v3.4s},[x3],#32\n\n\tumlal\tv6.2d,v28.2s,v0.s[0]\n\tumlal\tv7.2d,v28.2s,v0.s[1]\n\tumlal\tv8.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v6.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv9.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v6.2d\n\tumlal\tv10.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv11.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[sp]\t\t// put aside smashed b[8*i+0]\n\tumlal\tv12.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv13.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv8.2d,v29.2s,v2.s[2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:8", "text": "umlal\tv6.2d,v28.2s,v0.s[0]\n\tumlal\tv7.2d,v28.2s,v0.s[1]\n\tumlal\tv8.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v6.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv9.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v6.2d\n\tumlal\tv10.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv11.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[sp]\t\t// put aside smashed b[8*i+0]\n\tumlal\tv12.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv13.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v6.2d,#16\n\tumlal\tv9.2d,v29.2s,v2.s[3]\n\tumlal\tv10.2d,v29.2s,v3.s[0]\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tadd\tv6.2d,v6.2d,v15.2d\n\tumlal\tv11.2d,v29.2s,v3.s[1]\n\tushr\tv6.2d,v6.2d,#16\n\tumlal\tv12.2d,v29.2s,v3.s[2]\n\tumlal\tv13.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v7.2d,v6.2d\n\tins\tv7.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+0]\n\tumlal\tv7.2d,v28.2s,v0.s[0]\n\tld1\t{v6.2d},[x6],#16\n\tumlal\tv8.2d,v28.2s,v0.s[1]\n\tumlal\tv9.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v7.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv10.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v7.2d\n\tumlal\tv11.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv6.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv7.2d,v29.2s,v2.s[0]\n\tumlal\tv8.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv9.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v7.2d,#16\n\tumlal\tv10.2d,v29.2s,v2.s[3]\n\tumlal\tv11.2d,v29.2s,v3.s[0]\n\text\tv7.16b,v7.16b,v7.16b,#8\n\tadd\tv7.2d,v7.2d,v15.2d\n\tumlal\tv12.2d,v29.2s,v3.s[1]\n\tushr\tv7.2d,v7.2d,#16\n\tumlal\tv13.2d,v29.2s,v3.s[2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:9", "text": "umlal\tv11.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv6.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv7.2d,v29.2s,v2.s[0]\n\tumlal\tv8.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv9.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v7.2d,#16\n\tumlal\tv10.2d,v29.2s,v2.s[3]\n\tumlal\tv11.2d,v29.2s,v3.s[0]\n\text\tv7.16b,v7.16b,v7.16b,#8\n\tadd\tv7.2d,v7.2d,v15.2d\n\tumlal\tv12.2d,v29.2s,v3.s[1]\n\tushr\tv7.2d,v7.2d,#16\n\tumlal\tv13.2d,v29.2s,v3.s[2]\n\tumlal\tv6.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v8.2d,v7.2d\n\tins\tv8.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+1]\n\tumlal\tv8.2d,v28.2s,v0.s[0]\n\tld1\t{v7.2d},[x6],#16\n\tumlal\tv9.2d,v28.2s,v0.s[1]\n\tumlal\tv10.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v8.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv11.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v8.2d\n\tumlal\tv12.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv13.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+2]\n\tumlal\tv6.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv7.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v8.2d,#16\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\text\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tushr\tv8.2d,v8.2d,#16\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v9.2d,v8.2d\n\tins\tv9.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+2]\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6],#16\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tumlal\tv11.2d,v28.2s,v0.s[2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:10", "text": "umlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v8.2d,#16\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\text\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tushr\tv8.2d,v8.2d,#16\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v9.2d,v8.2d\n\tins\tv9.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+2]\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6],#16\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tumlal\tv11.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v9.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv12.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v9.2d\n\tumlal\tv13.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv6.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+3]\n\tumlal\tv7.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv8.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv9.2d,v29.2s,v2.s[0]\n\tumlal\tv10.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv11.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v9.2d,#16\n\tumlal\tv12.2d,v29.2s,v2.s[3]\n\tumlal\tv13.2d,v29.2s,v3.s[0]\n\text\tv9.16b,v9.16b,v9.16b,#8\n\tadd\tv9.2d,v9.2d,v15.2d\n\tumlal\tv6.2d,v29.2s,v3.s[1]\n\tushr\tv9.2d,v9.2d,#16\n\tumlal\tv7.2d,v29.2s,v3.s[2]\n\tumlal\tv8.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v10.2d,v9.2d\n\tins\tv10.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+3]\n\tumlal\tv10.2d,v28.2s,v0.s[0]\n\tld1\t{v9.2d},[x6],#16\n\tumlal\tv11.2d,v28.2s,v0.s[1]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v10.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v10.2d\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+4]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:11", "text": "add\tv9.2d,v9.2d,v15.2d\n\tumlal\tv6.2d,v29.2s,v3.s[1]\n\tushr\tv9.2d,v9.2d,#16\n\tumlal\tv7.2d,v29.2s,v3.s[2]\n\tumlal\tv8.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v10.2d,v9.2d\n\tins\tv10.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+3]\n\tumlal\tv10.2d,v28.2s,v0.s[0]\n\tld1\t{v9.2d},[x6],#16\n\tumlal\tv11.2d,v28.2s,v0.s[1]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v10.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v10.2d\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+4]\n\tumlal\tv8.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv9.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv10.2d,v29.2s,v2.s[0]\n\tumlal\tv11.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv12.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v10.2d,#16\n\tumlal\tv13.2d,v29.2s,v2.s[3]\n\tumlal\tv6.2d,v29.2s,v3.s[0]\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tv10.2d,v10.2d,v15.2d\n\tumlal\tv7.2d,v29.2s,v3.s[1]\n\tushr\tv10.2d,v10.2d,#16\n\tumlal\tv8.2d,v29.2s,v3.s[2]\n\tumlal\tv9.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v11.2d,v10.2d\n\tins\tv11.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+4]\n\tumlal\tv11.2d,v28.2s,v0.s[0]\n\tld1\t{v10.2d},[x6],#16\n\tumlal\tv12.2d,v28.2s,v0.s[1]\n\tumlal\tv13.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v11.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv6.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v11.2d\n\tumlal\tv7.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv8.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+5]\n\tumlal\tv9.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv10.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv11.2d,v29.2s,v2.s[0]\n\tumlal\tv12.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv13.2d,v29.2s,v2.s[2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:12", "text": "umlal\tv11.2d,v28.2s,v0.s[0]\n\tld1\t{v10.2d},[x6],#16\n\tumlal\tv12.2d,v28.2s,v0.s[1]\n\tumlal\tv13.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v11.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv6.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v11.2d\n\tumlal\tv7.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv8.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+5]\n\tumlal\tv9.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv10.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv11.2d,v29.2s,v2.s[0]\n\tumlal\tv12.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv13.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v11.2d,#16\n\tumlal\tv6.2d,v29.2s,v2.s[3]\n\tumlal\tv7.2d,v29.2s,v3.s[0]\n\text\tv11.16b,v11.16b,v11.16b,#8\n\tadd\tv11.2d,v11.2d,v15.2d\n\tumlal\tv8.2d,v29.2s,v3.s[1]\n\tushr\tv11.2d,v11.2d,#16\n\tumlal\tv9.2d,v29.2s,v3.s[2]\n\tumlal\tv10.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v12.2d,v11.2d\n\tins\tv12.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+5]\n\tumlal\tv12.2d,v28.2s,v0.s[0]\n\tld1\t{v11.2d},[x6],#16\n\tumlal\tv13.2d,v28.2s,v0.s[1]\n\tumlal\tv6.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v12.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv7.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v12.2d\n\tumlal\tv8.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+6]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv6.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v12.2d,#16\n\tumlal\tv7.2d,v29.2s,v2.s[3]\n\tumlal\tv8.2d,v29.2s,v3.s[0]\n\text\tv12.16b,v12.16b,v12.16b,#8\n\tadd\tv12.2d,v12.2d,v15.2d\n\tumlal\tv9.2d,v29.2s,v3.s[1]\n\tushr\tv12.2d,v12.2d,#16\n\tumlal\tv10.2d,v29.2s,v3.s[2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:13", "text": "umlal\tv8.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+6]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tldr\ts28,[x2],#4   // *b++\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tuxtl\tv28.4s,v28.4h\n\tumlal\tv6.2d,v29.2s,v2.s[2]\n\tushr\tv15.2d,v12.2d,#16\n\tumlal\tv7.2d,v29.2s,v2.s[3]\n\tumlal\tv8.2d,v29.2s,v3.s[0]\n\text\tv12.16b,v12.16b,v12.16b,#8\n\tadd\tv12.2d,v12.2d,v15.2d\n\tumlal\tv9.2d,v29.2s,v3.s[1]\n\tushr\tv12.2d,v12.2d,#16\n\tumlal\tv10.2d,v29.2s,v3.s[2]\n\tumlal\tv11.2d,v29.2s,v3.s[3]\n\tadd\tv16.2d,v13.2d,v12.2d\n\tins\tv13.d[0],v16.d[0]\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+6]\n\tumlal\tv13.2d,v28.2s,v0.s[0]\n\tld1\t{v12.2d},[x6],#16\n\tumlal\tv6.2d,v28.2s,v0.s[1]\n\tumlal\tv7.2d,v28.2s,v0.s[2]\n\tshl\tv29.2d,v13.2d,#16\n\text\tv29.16b,v29.16b,v29.16b,#8\n\tumlal\tv8.2d,v28.2s,v0.s[3]\n\tadd\tv29.2d,v29.2d,v13.2d\n\tumlal\tv9.2d,v28.2s,v1.s[0]\n\tmul\tv29.2s,v29.2s,v30.2s\n\tumlal\tv10.2d,v28.2s,v1.s[1]\n\tst1\t{v28.2s},[x10],#8\t// put aside smashed b[8*i+7]\n\tumlal\tv11.2d,v28.2s,v1.s[2]\n\tuxtl\tv29.4s,v29.4h\n\tumlal\tv12.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[sp]\t\t// pull smashed b[8*i+0]\n\tumlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tmov\tv5.16b,v13.16b\n\tushr\tv5.2d,v5.2d,#16\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tadd\tv13.2d,v13.2d,v5.2d\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tushr\tv13.2d,v13.2d,#16\n\teor\tv15.16b,v15.16b,v15.16b\n\tins\tv13.d[1],v15.d[0]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\tadd\tv6.2d,v6.2d,v13.2d\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+7]\n\tadd\tx10,sp,#8\t\t// rewind\n\tsub\tx8,x5,#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:14", "text": "umlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tmov\tv5.16b,v13.16b\n\tushr\tv5.2d,v5.2d,#16\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tadd\tv13.2d,v13.2d,v5.2d\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tushr\tv13.2d,v13.2d,#16\n\teor\tv15.16b,v15.16b,v15.16b\n\tins\tv13.d[1],v15.d[0]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\tadd\tv6.2d,v6.2d,v13.2d\n\tst1\t{v29.2s},[x10],#8\t// put aside smashed m[8*i+7]\n\tadd\tx10,sp,#8\t\t// rewind\n\tsub\tx8,x5,#8\n\tb\t.LNEON_8n_inner\n\n.align\t4\n.LNEON_8n_inner:\n\tsubs\tx8,x8,#8\n\tumlal\tv6.2d,v28.2s,v0.s[0]\n\tld1\t{v13.2d},[x6]\n\tumlal\tv7.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+0]\n\tumlal\tv8.2d,v28.2s,v0.s[2]\n\tld1\t{v2.4s,v3.4s},[x3],#32\n\tumlal\tv9.2d,v28.2s,v0.s[3]\n\tb.eq\t.LInner_jump\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump:\n\tumlal\tv10.2d,v28.2s,v1.s[0]\n\tumlal\tv11.2d,v28.2s,v1.s[1]\n\tumlal\tv12.2d,v28.2s,v1.s[2]\n\tumlal\tv13.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+1]\n\tumlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tumlal\tv9.2d,v29.2s,v2.s[3]\n\tumlal\tv10.2d,v29.2s,v3.s[0]\n\tumlal\tv11.2d,v29.2s,v3.s[1]\n\tumlal\tv12.2d,v29.2s,v3.s[2]\n\tumlal\tv13.2d,v29.2s,v3.s[3]\n\tst1\t{v6.2d},[x7],#16\n\tumlal\tv7.2d,v28.2s,v0.s[0]\n\tld1\t{v6.2d},[x6]\n\tumlal\tv8.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+1]\n\tumlal\tv9.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump1\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump1:\n\tumlal\tv10.2d,v28.2s,v0.s[3]\n\tumlal\tv11.2d,v28.2s,v1.s[0]\n\tumlal\tv12.2d,v28.2s,v1.s[1]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:15", "text": "umlal\tv6.2d,v29.2s,v2.s[0]\n\tumlal\tv7.2d,v29.2s,v2.s[1]\n\tumlal\tv8.2d,v29.2s,v2.s[2]\n\tumlal\tv9.2d,v29.2s,v2.s[3]\n\tumlal\tv10.2d,v29.2s,v3.s[0]\n\tumlal\tv11.2d,v29.2s,v3.s[1]\n\tumlal\tv12.2d,v29.2s,v3.s[2]\n\tumlal\tv13.2d,v29.2s,v3.s[3]\n\tst1\t{v6.2d},[x7],#16\n\tumlal\tv7.2d,v28.2s,v0.s[0]\n\tld1\t{v6.2d},[x6]\n\tumlal\tv8.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+1]\n\tumlal\tv9.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump1\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump1:\n\tumlal\tv10.2d,v28.2s,v0.s[3]\n\tumlal\tv11.2d,v28.2s,v1.s[0]\n\tumlal\tv12.2d,v28.2s,v1.s[1]\n\tumlal\tv13.2d,v28.2s,v1.s[2]\n\tumlal\tv6.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+2]\n\tumlal\tv7.2d,v29.2s,v2.s[0]\n\tumlal\tv8.2d,v29.2s,v2.s[1]\n\tumlal\tv9.2d,v29.2s,v2.s[2]\n\tumlal\tv10.2d,v29.2s,v2.s[3]\n\tumlal\tv11.2d,v29.2s,v3.s[0]\n\tumlal\tv12.2d,v29.2s,v3.s[1]\n\tumlal\tv13.2d,v29.2s,v3.s[2]\n\tumlal\tv6.2d,v29.2s,v3.s[3]\n\tst1\t{v7.2d},[x7],#16\n\tumlal\tv8.2d,v28.2s,v0.s[0]\n\tld1\t{v7.2d},[x6]\n\tumlal\tv9.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+2]\n\tumlal\tv10.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump2\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump2:\n\tumlal\tv11.2d,v28.2s,v0.s[3]\n\tumlal\tv12.2d,v28.2s,v1.s[0]\n\tumlal\tv13.2d,v28.2s,v1.s[1]\n\tumlal\tv6.2d,v28.2s,v1.s[2]\n\tumlal\tv7.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+3]\n\tumlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tst1\t{v8.2d},[x7],#16\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6]\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+3]\n\tumlal\tv11.2d,v28.2s,v0.s[2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:16", "text": "umlal\tv11.2d,v28.2s,v0.s[3]\n\tumlal\tv12.2d,v28.2s,v1.s[0]\n\tumlal\tv13.2d,v28.2s,v1.s[1]\n\tumlal\tv6.2d,v28.2s,v1.s[2]\n\tumlal\tv7.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+3]\n\tumlal\tv8.2d,v29.2s,v2.s[0]\n\tumlal\tv9.2d,v29.2s,v2.s[1]\n\tumlal\tv10.2d,v29.2s,v2.s[2]\n\tumlal\tv11.2d,v29.2s,v2.s[3]\n\tumlal\tv12.2d,v29.2s,v3.s[0]\n\tumlal\tv13.2d,v29.2s,v3.s[1]\n\tumlal\tv6.2d,v29.2s,v3.s[2]\n\tumlal\tv7.2d,v29.2s,v3.s[3]\n\tst1\t{v8.2d},[x7],#16\n\tumlal\tv9.2d,v28.2s,v0.s[0]\n\tld1\t{v8.2d},[x6]\n\tumlal\tv10.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+3]\n\tumlal\tv11.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump3\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump3:\n\tumlal\tv12.2d,v28.2s,v0.s[3]\n\tumlal\tv13.2d,v28.2s,v1.s[0]\n\tumlal\tv6.2d,v28.2s,v1.s[1]\n\tumlal\tv7.2d,v28.2s,v1.s[2]\n\tumlal\tv8.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+4]\n\tumlal\tv9.2d,v29.2s,v2.s[0]\n\tumlal\tv10.2d,v29.2s,v2.s[1]\n\tumlal\tv11.2d,v29.2s,v2.s[2]\n\tumlal\tv12.2d,v29.2s,v2.s[3]\n\tumlal\tv13.2d,v29.2s,v3.s[0]\n\tumlal\tv6.2d,v29.2s,v3.s[1]\n\tumlal\tv7.2d,v29.2s,v3.s[2]\n\tumlal\tv8.2d,v29.2s,v3.s[3]\n\tst1\t{v9.2d},[x7],#16\n\tumlal\tv10.2d,v28.2s,v0.s[0]\n\tld1\t{v9.2d},[x6]\n\tumlal\tv11.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+4]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump4\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump4:\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tumlal\tv8.2d,v28.2s,v1.s[2]\n\tumlal\tv9.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+5]\n\tumlal\tv10.2d,v29.2s,v2.s[0]\n\tumlal\tv11.2d,v29.2s,v2.s[1]\n\tumlal\tv12.2d,v29.2s,v2.s[2]\n\tumlal\tv13.2d,v29.2s,v2.s[3]\n\tumlal\tv6.2d,v29.2s,v3.s[0]\n\tumlal\tv7.2d,v29.2s,v3.s[1]\n\tumlal\tv8.2d,v29.2s,v3.s[2]\n\tumlal\tv9.2d,v29.2s,v3.s[3]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:17", "text": "umlal\tv11.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+4]\n\tumlal\tv12.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump4\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump4:\n\tumlal\tv13.2d,v28.2s,v0.s[3]\n\tumlal\tv6.2d,v28.2s,v1.s[0]\n\tumlal\tv7.2d,v28.2s,v1.s[1]\n\tumlal\tv8.2d,v28.2s,v1.s[2]\n\tumlal\tv9.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+5]\n\tumlal\tv10.2d,v29.2s,v2.s[0]\n\tumlal\tv11.2d,v29.2s,v2.s[1]\n\tumlal\tv12.2d,v29.2s,v2.s[2]\n\tumlal\tv13.2d,v29.2s,v2.s[3]\n\tumlal\tv6.2d,v29.2s,v3.s[0]\n\tumlal\tv7.2d,v29.2s,v3.s[1]\n\tumlal\tv8.2d,v29.2s,v3.s[2]\n\tumlal\tv9.2d,v29.2s,v3.s[3]\n\tst1\t{v10.2d},[x7],#16\n\tumlal\tv11.2d,v28.2s,v0.s[0]\n\tld1\t{v10.2d},[x6]\n\tumlal\tv12.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+5]\n\tumlal\tv13.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump5\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump5:\n\tumlal\tv6.2d,v28.2s,v0.s[3]\n\tumlal\tv7.2d,v28.2s,v1.s[0]\n\tumlal\tv8.2d,v28.2s,v1.s[1]\n\tumlal\tv9.2d,v28.2s,v1.s[2]\n\tumlal\tv10.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+6]\n\tumlal\tv11.2d,v29.2s,v2.s[0]\n\tumlal\tv12.2d,v29.2s,v2.s[1]\n\tumlal\tv13.2d,v29.2s,v2.s[2]\n\tumlal\tv6.2d,v29.2s,v2.s[3]\n\tumlal\tv7.2d,v29.2s,v3.s[0]\n\tumlal\tv8.2d,v29.2s,v3.s[1]\n\tumlal\tv9.2d,v29.2s,v3.s[2]\n\tumlal\tv10.2d,v29.2s,v3.s[3]\n\tst1\t{v11.2d},[x7],#16\n\tumlal\tv12.2d,v28.2s,v0.s[0]\n\tld1\t{v11.2d},[x6]\n\tumlal\tv13.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+6]\n\tumlal\tv6.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump6\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump6:\n\tumlal\tv7.2d,v28.2s,v0.s[3]\n\tumlal\tv8.2d,v28.2s,v1.s[0]\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+7]\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:18", "text": "umlal\tv8.2d,v29.2s,v3.s[1]\n\tumlal\tv9.2d,v29.2s,v3.s[2]\n\tumlal\tv10.2d,v29.2s,v3.s[3]\n\tst1\t{v11.2d},[x7],#16\n\tumlal\tv12.2d,v28.2s,v0.s[0]\n\tld1\t{v11.2d},[x6]\n\tumlal\tv13.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+6]\n\tumlal\tv6.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump6\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump6:\n\tumlal\tv7.2d,v28.2s,v0.s[3]\n\tumlal\tv8.2d,v28.2s,v1.s[0]\n\tumlal\tv9.2d,v28.2s,v1.s[1]\n\tumlal\tv10.2d,v28.2s,v1.s[2]\n\tumlal\tv11.2d,v28.2s,v1.s[3]\n\tld1\t{v28.2s},[x10],#8\t// pull smashed b[8*i+7]\n\tumlal\tv12.2d,v29.2s,v2.s[0]\n\tumlal\tv13.2d,v29.2s,v2.s[1]\n\tumlal\tv6.2d,v29.2s,v2.s[2]\n\tumlal\tv7.2d,v29.2s,v2.s[3]\n\tumlal\tv8.2d,v29.2s,v3.s[0]\n\tumlal\tv9.2d,v29.2s,v3.s[1]\n\tumlal\tv10.2d,v29.2s,v3.s[2]\n\tumlal\tv11.2d,v29.2s,v3.s[3]\n\tst1\t{v12.2d},[x7],#16\n\tumlal\tv13.2d,v28.2s,v0.s[0]\n\tld1\t{v12.2d},[x6]\n\tumlal\tv6.2d,v28.2s,v0.s[1]\n\tld1\t{v29.2s},[x10],#8\t// pull smashed m[8*i+7]\n\tumlal\tv7.2d,v28.2s,v0.s[2]\n\tb.eq\t.LInner_jump7\n\tadd\tx6,x6,#16\t// don't advance in last iteration\n.LInner_jump7:\n\tumlal\tv8.2d,v28.2s,v0.s[3]\n\tumlal\tv9.2d,v28.2s,v1.s[0]\n\tumlal\tv10.2d,v28.2s,v1.s[1]\n\tumlal\tv11.2d,v28.2s,v1.s[2]\n\tumlal\tv12.2d,v28.2s,v1.s[3]\n\tb.ne\t.LInner_after_rewind8\n\tsub\tx1,x1,x5,lsl#2\t// rewind\n.LInner_after_rewind8:\n\tumlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v28.2s},[sp]\t\t// pull smashed b[8*i+0]\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tadd\tx10,sp,#8\t\t// rewind\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tst1\t{v13.2d},[x7],#16\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\n\tbne\t.LNEON_8n_inner\n\tadd\tx6,sp,#128\n\tst1\t{v6.2d,v7.2d},[x7],#32\n\teor\tv2.16b,v2.16b,v2.16b\t// v2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:19", "text": "b.ne\t.LInner_after_rewind8\n\tsub\tx1,x1,x5,lsl#2\t// rewind\n.LInner_after_rewind8:\n\tumlal\tv13.2d,v29.2s,v2.s[0]\n\tld1\t{v28.2s},[sp]\t\t// pull smashed b[8*i+0]\n\tumlal\tv6.2d,v29.2s,v2.s[1]\n\tld1\t{v0.4s,v1.4s},[x1],#32\n\tumlal\tv7.2d,v29.2s,v2.s[2]\n\tadd\tx10,sp,#8\t\t// rewind\n\tumlal\tv8.2d,v29.2s,v2.s[3]\n\tumlal\tv9.2d,v29.2s,v3.s[0]\n\tumlal\tv10.2d,v29.2s,v3.s[1]\n\tumlal\tv11.2d,v29.2s,v3.s[2]\n\tst1\t{v13.2d},[x7],#16\n\tumlal\tv12.2d,v29.2s,v3.s[3]\n\n\tbne\t.LNEON_8n_inner\n\tadd\tx6,sp,#128\n\tst1\t{v6.2d,v7.2d},[x7],#32\n\teor\tv2.16b,v2.16b,v2.16b\t// v2\n\tst1\t{v8.2d,v9.2d},[x7],#32\n\teor\tv3.16b,v3.16b,v3.16b\t// v3\n\tst1\t{v10.2d,v11.2d},[x7],#32\n\tst1\t{v12.2d},[x7]\n\n\tsubs\tx9,x9,#8\n\tld1\t{v6.2d,v7.2d},[x6],#32\n\tld1\t{v8.2d,v9.2d},[x6],#32\n\tld1\t{v10.2d,v11.2d},[x6],#32\n\tld1\t{v12.2d,v13.2d},[x6],#32\n\n\tb.eq\t.LInner_8n_jump_2steps\n\tsub\tx3,x3,x5,lsl#2\t// rewind\n\tb\t.LNEON_8n_outer\n\n.LInner_8n_jump_2steps:\n\tadd\tx7,sp,#128\n\tst1\t{v2.2d,v3.2d}, [sp],#32\t// start wiping stack frame\n\tmov\tv5.16b,v6.16b\n\tushr\tv15.2d,v6.2d,#16\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tushr\tv15.2d,v6.2d,#16\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tzip1\tv6.4h,v5.4h,v6.4h\n\tins\tv15.d[1],v14.d[0]\n\n\tmov\tx8,x5\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_tail:\n\tadd\tv6.2d,v6.2d,v15.2d\n\tmov\tv5.16b,v6.16b\n\tushr\tv15.2d,v6.2d,#16\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tld1\t{v8.2d,v9.2d}, [x6],#32\n\tadd\tv6.2d,v6.2d,v15.2d", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:20", "text": "ext\tv6.16b,v6.16b,v6.16b,#8\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tushr\tv15.2d,v6.2d,#16\n\tst1\t{v2.2d,v3.2d}, [sp],#32\n\tzip1\tv6.4h,v5.4h,v6.4h\n\tins\tv15.d[1],v14.d[0]\n\n\tmov\tx8,x5\n\tb\t.LNEON_tail_entry\n\n.align\t4\n.LNEON_tail:\n\tadd\tv6.2d,v6.2d,v15.2d\n\tmov\tv5.16b,v6.16b\n\tushr\tv15.2d,v6.2d,#16\n\text\tv6.16b,v6.16b,v6.16b,#8\n\tld1\t{v8.2d,v9.2d}, [x6],#32\n\tadd\tv6.2d,v6.2d,v15.2d\n\tld1\t{v10.2d,v11.2d}, [x6],#32\n\tushr\tv15.2d,v6.2d,#16\n\tld1\t{v12.2d,v13.2d}, [x6],#32\n\tzip1\tv6.4h,v5.4h,v6.4h\n\tins\tv15.d[1],v14.d[0]\n\n.LNEON_tail_entry:\n\tadd\tv7.2d,v7.2d,v15.2d\n\tst1\t{v6.s}[0], [x7],#4\n\tushr\tv15.2d,v7.2d,#16\n\tmov\tv5.16b,v7.16b\n\text\tv7.16b,v7.16b,v7.16b,#8\n\tadd\tv7.2d,v7.2d,v15.2d\n\tushr\tv15.2d,v7.2d,#16\n\tzip1\tv7.4h,v5.4h,v7.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv8.2d,v8.2d,v15.2d\n\tst1\t{v7.s}[0], [x7],#4\n\tushr\tv15.2d,v8.2d,#16\n\tmov\tv5.16b,v8.16b\n\text\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tushr\tv15.2d,v8.2d,#16\n\tzip1\tv8.4h,v5.4h,v8.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv9.2d,v9.2d,v15.2d\n\tst1\t{v8.s}[0], [x7],#4\n\tushr\tv15.2d,v9.2d,#16\n\tmov\tv5.16b,v9.16b\n\text\tv9.16b,v9.16b,v9.16b,#8\n\tadd\tv9.2d,v9.2d,v15.2d\n\tushr\tv15.2d,v9.2d,#16\n\tzip1\tv9.4h,v5.4h,v9.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv10.2d,v10.2d,v15.2d\n\tst1\t{v9.s}[0], [x7],#4\n\tushr\tv15.2d,v10.2d,#16\n\tmov\tv5.16b,v10.16b\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tv10.2d,v10.2d,v15.2d", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:21", "text": "ext\tv8.16b,v8.16b,v8.16b,#8\n\tadd\tv8.2d,v8.2d,v15.2d\n\tushr\tv15.2d,v8.2d,#16\n\tzip1\tv8.4h,v5.4h,v8.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv9.2d,v9.2d,v15.2d\n\tst1\t{v8.s}[0], [x7],#4\n\tushr\tv15.2d,v9.2d,#16\n\tmov\tv5.16b,v9.16b\n\text\tv9.16b,v9.16b,v9.16b,#8\n\tadd\tv9.2d,v9.2d,v15.2d\n\tushr\tv15.2d,v9.2d,#16\n\tzip1\tv9.4h,v5.4h,v9.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv10.2d,v10.2d,v15.2d\n\tst1\t{v9.s}[0], [x7],#4\n\tushr\tv15.2d,v10.2d,#16\n\tmov\tv5.16b,v10.16b\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tv10.2d,v10.2d,v15.2d\n\tushr\tv15.2d,v10.2d,#16\n\tzip1\tv10.4h,v5.4h,v10.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv11.2d,v11.2d,v15.2d\n\tst1\t{v10.s}[0], [x7],#4\n\tushr\tv15.2d,v11.2d,#16\n\tmov\tv5.16b,v11.16b\n\text\tv11.16b,v11.16b,v11.16b,#8\n\tadd\tv11.2d,v11.2d,v15.2d\n\tushr\tv15.2d,v11.2d,#16\n\tzip1\tv11.4h,v5.4h,v11.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv12.2d,v12.2d,v15.2d\n\tst1\t{v11.s}[0], [x7],#4\n\tushr\tv15.2d,v12.2d,#16\n\tmov\tv5.16b,v12.16b\n\text\tv12.16b,v12.16b,v12.16b,#8\n\tadd\tv12.2d,v12.2d,v15.2d\n\tushr\tv15.2d,v12.2d,#16\n\tzip1\tv12.4h,v5.4h,v12.4h\n\tins\tv15.d[1],v14.d[0]\n\tadd\tv13.2d,v13.2d,v15.2d\n\tst1\t{v12.s}[0], [x7],#4\n\tushr\tv15.2d,v13.2d,#16\n\tmov\tv5.16b,v13.16b\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tadd\tv13.2d,v13.2d,v15.2d\n\tushr\tv15.2d,v13.2d,#16\n\tzip1\tv13.4h,v5.4h,v13.4h\n\tins\tv15.d[1],v14.d[0]\n\tld1\t{v6.2d,v7.2d}, [x6],#32\n\tsubs\tx8,x8,#8\n\tst1\t{v13.s}[0], [x7],#4\n\tbne\t.LNEON_tail\n\n\tst1\t{v15.s}[0], [x7],#4\t// top-most bit\n\tsub\tx3,x3,x5,lsl#2\t\t// rewind x3\n\tsubs\tx1,sp,#0\t\t\t// clear carry flag\n\tadd\tx2,sp,x5,lsl#2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:22", "text": "ins\tv15.d[1],v14.d[0]\n\tadd\tv13.2d,v13.2d,v15.2d\n\tst1\t{v12.s}[0], [x7],#4\n\tushr\tv15.2d,v13.2d,#16\n\tmov\tv5.16b,v13.16b\n\text\tv13.16b,v13.16b,v13.16b,#8\n\tadd\tv13.2d,v13.2d,v15.2d\n\tushr\tv15.2d,v13.2d,#16\n\tzip1\tv13.4h,v5.4h,v13.4h\n\tins\tv15.d[1],v14.d[0]\n\tld1\t{v6.2d,v7.2d}, [x6],#32\n\tsubs\tx8,x8,#8\n\tst1\t{v13.s}[0], [x7],#4\n\tbne\t.LNEON_tail\n\n\tst1\t{v15.s}[0], [x7],#4\t// top-most bit\n\tsub\tx3,x3,x5,lsl#2\t\t// rewind x3\n\tsubs\tx1,sp,#0\t\t\t// clear carry flag\n\tadd\tx2,sp,x5,lsl#2\n\n.LNEON_sub:\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tldp\tw8,w9,[x3],#8\n\tldp\tw10,w11,[x3],#8\n\tsbcs\tw8,w4,w8\n\tsbcs\tw9,w5,w9\n\tsbcs\tw10,w6,w10\n\tsbcs\tw11,w7,w11\n\tsub\tx17,x2,x1\n\tstp\tw8,w9,[x0],#8\n\tstp\tw10,w11,[x0],#8\n\tcbnz\tx17,.LNEON_sub\n\n\tldr\tw10, [x1]\t\t// load top-most bit\n\tmov\tx11,sp\n\teor\tv0.16b,v0.16b,v0.16b\n\tsub\tx11,x2,x11\t\t// this is num*4\n\teor\tv1.16b,v1.16b,v1.16b\n\tmov\tx1,sp\n\tsub\tx0,x0,x11\t\t// rewind x0\n\tmov\tx3,x2\t\t// second 3/4th of frame\n\tsbcs\tw10,w10,wzr\t\t// result is carry flag\n\n.LNEON_copy_n_zap:\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tldp\tw8,w9,[x0],#8\n\tldp\tw10,w11,[x0]\n\tsub\tx0,x0,#8\n\tb.cs\t.LCopy_1\n\tmov\tw8,w4\n\tmov\tw9,w5\n\tmov\tw10,w6\n\tmov\tw11,w7\n.LCopy_1:\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:23", "text": "sub\tx0,x0,x11\t\t// rewind x0\n\tmov\tx3,x2\t\t// second 3/4th of frame\n\tsbcs\tw10,w10,wzr\t\t// result is carry flag\n\n.LNEON_copy_n_zap:\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tldp\tw8,w9,[x0],#8\n\tldp\tw10,w11,[x0]\n\tsub\tx0,x0,#8\n\tb.cs\t.LCopy_1\n\tmov\tw8,w4\n\tmov\tw9,w5\n\tmov\tw10,w6\n\tmov\tw11,w7\n.LCopy_1:\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tldp\tw4,w5,[x1],#8\n\tldp\tw6,w7,[x1],#8\n\tstp\tw8,w9,[x0],#8\n\tstp\tw10,w11,[x0],#8\n\tsub\tx1,x1,#32\n\tldp\tw8,w9,[x0],#8\n\tldp\tw10,w11,[x0]\n\tsub\tx0,x0,#8\n\tb.cs\t.LCopy_2\n\tmov\tw8, w4\n\tmov\tw9, w5\n\tmov\tw10, w6\n\tmov\tw11, w7\n.LCopy_2:\n\tst1\t{v0.2d,v1.2d}, [x1],#32\t\t// wipe\n\tst1\t{v0.2d,v1.2d}, [x3],#32\t\t// wipe\n\tsub\tx17,x2,x1\t\t// preserves carry\n\tstp\tw8,w9,[x0],#8\n\tstp\tw10,w11,[x0],#8\n\tcbnz\tx17,.LNEON_copy_n_zap\n\n\tmov\tsp,x16\n\tldp\td14,d15,[sp,#64]\n\tldp\td12,d13,[sp,#48]\n\tldp\td10,d11,[sp,#32]\n\tldp\td8,d9,[sp,#16]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\t// RET\n\n.size\tbn_mul8x_mont_neon,.-bn_mul8x_mont_neon\n.type\t__bn_sqr8x_mont,%function\n.align\t5\n__bn_sqr8x_mont:\n\tcmp\tx1,x2\n\tb.ne\t__bn_mul4x_mont\n.Lsqr8x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_sqr8x_mont is jumped to\n\t// only from bn_mul_mont which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:24", "text": "ldp\td14,d15,[sp,#64]\n\tldp\td12,d13,[sp,#48]\n\tldp\td10,d11,[sp,#32]\n\tldp\td8,d9,[sp,#16]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\t// RET\n\n.size\tbn_mul8x_mont_neon,.-bn_mul8x_mont_neon\n.type\t__bn_sqr8x_mont,%function\n.align\t5\n__bn_sqr8x_mont:\n\tcmp\tx1,x2\n\tb.ne\t__bn_mul4x_mont\n.Lsqr8x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_sqr8x_mont is jumped to\n\t// only from bn_mul_mont which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tstp\tx0,x3,[sp,#96]\t// offload rp and np\n\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tldp\tx10,x11,[x1,#8*4]\n\tldp\tx12,x13,[x1,#8*6]\n\n\tsub\tx2,sp,x5,lsl#4\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tmov\tsp,x2\t\t\t// alloca\n\tsub\tx27,x5,#8*8\n\tb\t.Lsqr8x_zero_start\n\n.Lsqr8x_zero:\n\tsub\tx27,x27,#8*8\n\tstp\txzr,xzr,[x2,#8*0]\n\tstp\txzr,xzr,[x2,#8*2]\n\tstp\txzr,xzr,[x2,#8*4]\n\tstp\txzr,xzr,[x2,#8*6]\n.Lsqr8x_zero_start:\n\tstp\txzr,xzr,[x2,#8*8]\n\tstp\txzr,xzr,[x2,#8*10]\n\tstp\txzr,xzr,[x2,#8*12]\n\tstp\txzr,xzr,[x2,#8*14]\n\tadd\tx2,x2,#8*16\n\tcbnz\tx27,.Lsqr8x_zero\n\n\tadd\tx3,x1,x5\n\tadd\tx1,x1,#8*8\n\tmov\tx19,xzr\n\tmov\tx20,xzr\n\tmov\tx21,xzr\n\tmov\tx22,xzr\n\tmov\tx23,xzr\n\tmov\tx24,xzr", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:25", "text": "stp\txzr,xzr,[x2,#8*0]\n\tstp\txzr,xzr,[x2,#8*2]\n\tstp\txzr,xzr,[x2,#8*4]\n\tstp\txzr,xzr,[x2,#8*6]\n.Lsqr8x_zero_start:\n\tstp\txzr,xzr,[x2,#8*8]\n\tstp\txzr,xzr,[x2,#8*10]\n\tstp\txzr,xzr,[x2,#8*12]\n\tstp\txzr,xzr,[x2,#8*14]\n\tadd\tx2,x2,#8*16\n\tcbnz\tx27,.Lsqr8x_zero\n\n\tadd\tx3,x1,x5\n\tadd\tx1,x1,#8*8\n\tmov\tx19,xzr\n\tmov\tx20,xzr\n\tmov\tx21,xzr\n\tmov\tx22,xzr\n\tmov\tx23,xzr\n\tmov\tx24,xzr\n\tmov\tx25,xzr\n\tmov\tx26,xzr\n\tmov\tx2,sp\n\tstr\tx4,[x29,#112]\t\t// offload n0\n\n\t// Multiply everything but a[i]*a[i]\n.align\t4\n.Lsqr8x_outer_loop:\n        //                                                 a[1]a[0]\t(i)\n        //                                             a[2]a[0]\n        //                                         a[3]a[0]\n        //                                     a[4]a[0]\n        //                                 a[5]a[0]\n        //                             a[6]a[0]\n        //                         a[7]a[0]\n        //                                         a[2]a[1]\t\t(ii)\n        //                                     a[3]a[1]\n        //                                 a[4]a[1]\n        //                             a[5]a[1]\n        //                         a[6]a[1]\n        //                     a[7]a[1]\n        //                                 a[3]a[2]\t\t\t(iii)\n        //                             a[4]a[2]\n        //                         a[5]a[2]\n        //                     a[6]a[2]\n        //                 a[7]a[2]\n        //                         a[4]a[3]\t\t\t\t(iv)\n        //                     a[5]a[3]\n        //                 a[6]a[3]\n        //             a[7]a[3]\n        //                 a[5]a[4]\t\t\t\t\t(v)\n        //             a[6]a[4]\n        //         a[7]a[4]\n        //         a[6]a[5]\t\t\t\t\t\t(vi)\n        //     a[7]a[5]\n        // a[7]a[6]\t\t\t\t\t\t\t(vii)\n\n\tmul\tx14,x7,x6\t\t// lo(a[1..7]*a[0])\t\t(i)\n\tmul\tx15,x8,x6\n\tmul\tx16,x9,x6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:26", "text": "//                     a[7]a[1]\n        //                                 a[3]a[2]\t\t\t(iii)\n        //                             a[4]a[2]\n        //                         a[5]a[2]\n        //                     a[6]a[2]\n        //                 a[7]a[2]\n        //                         a[4]a[3]\t\t\t\t(iv)\n        //                     a[5]a[3]\n        //                 a[6]a[3]\n        //             a[7]a[3]\n        //                 a[5]a[4]\t\t\t\t\t(v)\n        //             a[6]a[4]\n        //         a[7]a[4]\n        //         a[6]a[5]\t\t\t\t\t\t(vi)\n        //     a[7]a[5]\n        // a[7]a[6]\t\t\t\t\t\t\t(vii)\n\n\tmul\tx14,x7,x6\t\t// lo(a[1..7]*a[0])\t\t(i)\n\tmul\tx15,x8,x6\n\tmul\tx16,x9,x6\n\tmul\tx17,x10,x6\n\tadds\tx20,x20,x14\t\t// t[1]+lo(a[1]*a[0])\n\tmul\tx14,x11,x6\n\tadcs\tx21,x21,x15\n\tmul\tx15,x12,x6\n\tadcs\tx22,x22,x16\n\tmul\tx16,x13,x6\n\tadcs\tx23,x23,x17\n\tumulh\tx17,x7,x6\t\t// hi(a[1..7]*a[0])\n\tadcs\tx24,x24,x14\n\tumulh\tx14,x8,x6\n\tadcs\tx25,x25,x15\n\tumulh\tx15,x9,x6\n\tadcs\tx26,x26,x16\n\tumulh\tx16,x10,x6\n\tstp\tx19,x20,[x2],#8*2\t// t[0..1]\n\tadc\tx19,xzr,xzr\t\t// t[8]\n\tadds\tx21,x21,x17\t\t// t[2]+lo(a[1]*a[0])\n\tumulh\tx17,x11,x6\n\tadcs\tx22,x22,x14\n\tumulh\tx14,x12,x6\n\tadcs\tx23,x23,x15\n\tumulh\tx15,x13,x6\n\tadcs\tx24,x24,x16\n\tmul\tx16,x8,x7\t\t// lo(a[2..7]*a[1])\t\t(ii)\n\tadcs\tx25,x25,x17\n\tmul\tx17,x9,x7\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x7\n\tadc\tx19,x19,x15\n\n\tmul\tx15,x11,x7\n\tadds\tx22,x22,x16\n\tmul\tx16,x12,x7\n\tadcs\tx23,x23,x17\n\tmul\tx17,x13,x7\n\tadcs\tx24,x24,x14\n\tumulh\tx14,x8,x7\t\t// hi(a[2..7]*a[1])\n\tadcs\tx25,x25,x15\n\tumulh\tx15,x9,x7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:27", "text": "umulh\tx14,x12,x6\n\tadcs\tx23,x23,x15\n\tumulh\tx15,x13,x6\n\tadcs\tx24,x24,x16\n\tmul\tx16,x8,x7\t\t// lo(a[2..7]*a[1])\t\t(ii)\n\tadcs\tx25,x25,x17\n\tmul\tx17,x9,x7\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x7\n\tadc\tx19,x19,x15\n\n\tmul\tx15,x11,x7\n\tadds\tx22,x22,x16\n\tmul\tx16,x12,x7\n\tadcs\tx23,x23,x17\n\tmul\tx17,x13,x7\n\tadcs\tx24,x24,x14\n\tumulh\tx14,x8,x7\t\t// hi(a[2..7]*a[1])\n\tadcs\tx25,x25,x15\n\tumulh\tx15,x9,x7\n\tadcs\tx26,x26,x16\n\tumulh\tx16,x10,x7\n\tadcs\tx19,x19,x17\n\tumulh\tx17,x11,x7\n\tstp\tx21,x22,[x2],#8*2\t// t[2..3]\n\tadc\tx20,xzr,xzr\t\t// t[9]\n\tadds\tx23,x23,x14\n\tumulh\tx14,x12,x7\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x13,x7\n\tadcs\tx25,x25,x16\n\tmul\tx16,x9,x8\t\t// lo(a[3..7]*a[2])\t\t(iii)\n\tadcs\tx26,x26,x17\n\tmul\tx17,x10,x8\n\tadcs\tx19,x19,x14\n\tmul\tx14,x11,x8\n\tadc\tx20,x20,x15\n\n\tmul\tx15,x12,x8\n\tadds\tx24,x24,x16\n\tmul\tx16,x13,x8\n\tadcs\tx25,x25,x17\n\tumulh\tx17,x9,x8\t\t// hi(a[3..7]*a[2])\n\tadcs\tx26,x26,x14\n\tumulh\tx14,x10,x8\n\tadcs\tx19,x19,x15\n\tumulh\tx15,x11,x8\n\tadcs\tx20,x20,x16\n\tumulh\tx16,x12,x8\n\tstp\tx23,x24,[x2],#8*2\t// t[4..5]\n\tadc\tx21,xzr,xzr\t\t// t[10]\n\tadds\tx25,x25,x17\n\tumulh\tx17,x13,x8\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x9\t\t// lo(a[4..7]*a[3])\t\t(iv)\n\tadcs\tx19,x19,x15\n\tmul\tx15,x11,x9\n\tadcs\tx20,x20,x16\n\tmul\tx16,x12,x9\n\tadc\tx21,x21,x17", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:28", "text": "mul\tx16,x13,x8\n\tadcs\tx25,x25,x17\n\tumulh\tx17,x9,x8\t\t// hi(a[3..7]*a[2])\n\tadcs\tx26,x26,x14\n\tumulh\tx14,x10,x8\n\tadcs\tx19,x19,x15\n\tumulh\tx15,x11,x8\n\tadcs\tx20,x20,x16\n\tumulh\tx16,x12,x8\n\tstp\tx23,x24,[x2],#8*2\t// t[4..5]\n\tadc\tx21,xzr,xzr\t\t// t[10]\n\tadds\tx25,x25,x17\n\tumulh\tx17,x13,x8\n\tadcs\tx26,x26,x14\n\tmul\tx14,x10,x9\t\t// lo(a[4..7]*a[3])\t\t(iv)\n\tadcs\tx19,x19,x15\n\tmul\tx15,x11,x9\n\tadcs\tx20,x20,x16\n\tmul\tx16,x12,x9\n\tadc\tx21,x21,x17\n\n\tmul\tx17,x13,x9\n\tadds\tx26,x26,x14\n\tumulh\tx14,x10,x9\t\t// hi(a[4..7]*a[3])\n\tadcs\tx19,x19,x15\n\tumulh\tx15,x11,x9\n\tadcs\tx20,x20,x16\n\tumulh\tx16,x12,x9\n\tadcs\tx21,x21,x17\n\tumulh\tx17,x13,x9\n\tstp\tx25,x26,[x2],#8*2\t// t[6..7]\n\tadc\tx22,xzr,xzr\t\t// t[11]\n\tadds\tx19,x19,x14\n\tmul\tx14,x11,x10\t\t// lo(a[5..7]*a[4])\t\t(v)\n\tadcs\tx20,x20,x15\n\tmul\tx15,x12,x10\n\tadcs\tx21,x21,x16\n\tmul\tx16,x13,x10\n\tadc\tx22,x22,x17\n\n\tumulh\tx17,x11,x10\t\t// hi(a[5..7]*a[4])\n\tadds\tx20,x20,x14\n\tumulh\tx14,x12,x10\n\tadcs\tx21,x21,x15\n\tumulh\tx15,x13,x10\n\tadcs\tx22,x22,x16\n\tmul\tx16,x12,x11\t\t// lo(a[6..7]*a[5])\t\t(vi)\n\tadc\tx23,xzr,xzr\t\t// t[12]\n\tadds\tx21,x21,x17\n\tmul\tx17,x13,x11\n\tadcs\tx22,x22,x14\n\tumulh\tx14,x12,x11\t\t// hi(a[6..7]*a[5])\n\tadc\tx23,x23,x15\n\n\tumulh\tx15,x13,x11\n\tadds\tx22,x22,x16\n\tmul\tx16,x13,x12\t\t// lo(a[7]*a[6])\t\t(vii)\n\tadcs\tx23,x23,x17\n\tumulh\tx17,x13,x12\t\t// hi(a[7]*a[6])\n\tadc\tx24,xzr,xzr\t\t// t[13]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:29", "text": "umulh\tx17,x11,x10\t\t// hi(a[5..7]*a[4])\n\tadds\tx20,x20,x14\n\tumulh\tx14,x12,x10\n\tadcs\tx21,x21,x15\n\tumulh\tx15,x13,x10\n\tadcs\tx22,x22,x16\n\tmul\tx16,x12,x11\t\t// lo(a[6..7]*a[5])\t\t(vi)\n\tadc\tx23,xzr,xzr\t\t// t[12]\n\tadds\tx21,x21,x17\n\tmul\tx17,x13,x11\n\tadcs\tx22,x22,x14\n\tumulh\tx14,x12,x11\t\t// hi(a[6..7]*a[5])\n\tadc\tx23,x23,x15\n\n\tumulh\tx15,x13,x11\n\tadds\tx22,x22,x16\n\tmul\tx16,x13,x12\t\t// lo(a[7]*a[6])\t\t(vii)\n\tadcs\tx23,x23,x17\n\tumulh\tx17,x13,x12\t\t// hi(a[7]*a[6])\n\tadc\tx24,xzr,xzr\t\t// t[13]\n\tadds\tx23,x23,x14\n\tsub\tx27,x3,x1\t// done yet?\n\tadc\tx24,x24,x15\n\n\tadds\tx24,x24,x16\n\tsub\tx14,x3,x5\t// rewinded ap\n\tadc\tx25,xzr,xzr\t\t// t[14]\n\tadd\tx25,x25,x17\n\n\tcbz\tx27,.Lsqr8x_outer_break\n\n\tmov\tx4,x6\n\tldp\tx6,x7,[x2,#8*0]\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tadds\tx19,x19,x6\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx0,x1\n\tadcs\tx26,xzr,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved below\n\tmov\tx27,#-8*8\n\n\t//                                                         a[8]a[0]\n\t//                                                     a[9]a[0]\n\t//                                                 a[a]a[0]\n\t//                                             a[b]a[0]\n\t//                                         a[c]a[0]\n\t//                                     a[d]a[0]\n\t//                                 a[e]a[0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:30", "text": "adcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx0,x1\n\tadcs\tx26,xzr,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved below\n\tmov\tx27,#-8*8\n\n\t//                                                         a[8]a[0]\n\t//                                                     a[9]a[0]\n\t//                                                 a[a]a[0]\n\t//                                             a[b]a[0]\n\t//                                         a[c]a[0]\n\t//                                     a[d]a[0]\n\t//                                 a[e]a[0]\n\t//                             a[f]a[0]\n\t//                                                     a[8]a[1]\n\t//                         a[f]a[1]........................\n\t//                                                 a[8]a[2]\n\t//                     a[f]a[2]........................\n\t//                                             a[8]a[3]\n\t//                 a[f]a[3]........................\n\t//                                         a[8]a[4]\n\t//             a[f]a[4]........................\n\t//                                     a[8]a[5]\n\t//         a[f]a[5]........................\n\t//                                 a[8]a[6]\n\t//     a[f]a[6]........................\n\t//                             a[8]a[7]\n\t// a[f]a[7]........................\n.Lsqr8x_mul:\n\tmul\tx14,x6,x4\n\tadc\tx28,xzr,xzr\t\t// carry bit, modulo-scheduled\n\tmul\tx15,x7,x4\n\tadd\tx27,x27,#8\n\tmul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4\n\tadcs\tx22,x22,x17\n\tmul\tx17,x13,x4\n\tadcs\tx23,x23,x14\n\tumulh\tx14,x6,x4\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x7,x4\n\tadcs\tx25,x25,x16\n\tumulh\tx16,x8,x4\n\tadcs\tx26,x26,x17\n\tumulh\tx17,x9,x4\n\tadc\tx28,x28,xzr\n\tstr\tx19,[x2],#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:31", "text": "mul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4\n\tadcs\tx22,x22,x17\n\tmul\tx17,x13,x4\n\tadcs\tx23,x23,x14\n\tumulh\tx14,x6,x4\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x7,x4\n\tadcs\tx25,x25,x16\n\tumulh\tx16,x8,x4\n\tadcs\tx26,x26,x17\n\tumulh\tx17,x9,x4\n\tadc\tx28,x28,xzr\n\tstr\tx19,[x2],#8\n\tadds\tx19,x20,x14\n\tumulh\tx14,x10,x4\n\tadcs\tx20,x21,x15\n\tumulh\tx15,x11,x4\n\tadcs\tx21,x22,x16\n\tumulh\tx16,x12,x4\n\tadcs\tx22,x23,x17\n\tumulh\tx17,x13,x4\n\tldr\tx4,[x0,x27]\n\tadcs\tx23,x24,x14\n\tadcs\tx24,x25,x15\n\tadcs\tx25,x26,x16\n\tadcs\tx26,x28,x17\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tcbnz\tx27,.Lsqr8x_mul\n\t\t\t\t\t// note that carry flag is guaranteed\n\t\t\t\t\t// to be zero at this point\n\tcmp\tx1,x3\t\t// done yet?\n\tb.eq\t.Lsqr8x_break\n\n\tldp\tx6,x7,[x2,#8*0]\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tadds\tx19,x19,x6\n\tldur\tx4,[x0,#-8*8]\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx27,#-8*8\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved above", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:32", "text": "ldp\tx6,x7,[x2,#8*0]\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tadds\tx19,x19,x6\n\tldur\tx4,[x0,#-8*8]\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx27,#-8*8\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tb\t.Lsqr8x_mul\n\n.align\t4\n.Lsqr8x_break:\n\tldp\tx6,x7,[x0,#8*0]\n\tadd\tx1,x0,#8*8\n\tldp\tx8,x9,[x0,#8*2]\n\tsub\tx14,x3,x1\t\t// is it last iteration?\n\tldp\tx10,x11,[x0,#8*4]\n\tsub\tx15,x2,x14\n\tldp\tx12,x13,[x0,#8*6]\n\tcbz\tx14,.Lsqr8x_outer_loop\n\n\tstp\tx19,x20,[x2,#8*0]\n\tldp\tx19,x20,[x15,#8*0]\n\tstp\tx21,x22,[x2,#8*2]\n\tldp\tx21,x22,[x15,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[x15,#8*4]\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,x15\n\tldp\tx25,x26,[x15,#8*6]\n\tb\t.Lsqr8x_outer_loop\n\n.align\t4\n.Lsqr8x_outer_break:\n\t// Now multiply above result by 2 and add a[n-1]*a[n-1]|...|a[0]*a[0]\n\tldp\tx7,x9,[x14,#8*0]\t// recall that x14 is &a[0]\n\tldp\tx15,x16,[sp,#8*1]\n\tldp\tx11,x13,[x14,#8*2]\n\tadd\tx1,x14,#8*4\n\tldp\tx17,x14,[sp,#8*3]\n\n\tstp\tx19,x20,[x2,#8*0]\n\tmul\tx19,x7,x7\n\tstp\tx21,x22,[x2,#8*2]\n\tumulh\tx7,x7,x7\n\tstp\tx23,x24,[x2,#8*4]\n\tmul\tx8,x9,x9\n\tstp\tx25,x26,[x2,#8*6]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:33", "text": "mov\tx2,x15\n\tldp\tx25,x26,[x15,#8*6]\n\tb\t.Lsqr8x_outer_loop\n\n.align\t4\n.Lsqr8x_outer_break:\n\t// Now multiply above result by 2 and add a[n-1]*a[n-1]|...|a[0]*a[0]\n\tldp\tx7,x9,[x14,#8*0]\t// recall that x14 is &a[0]\n\tldp\tx15,x16,[sp,#8*1]\n\tldp\tx11,x13,[x14,#8*2]\n\tadd\tx1,x14,#8*4\n\tldp\tx17,x14,[sp,#8*3]\n\n\tstp\tx19,x20,[x2,#8*0]\n\tmul\tx19,x7,x7\n\tstp\tx21,x22,[x2,#8*2]\n\tumulh\tx7,x7,x7\n\tstp\tx23,x24,[x2,#8*4]\n\tmul\tx8,x9,x9\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,sp\n\tumulh\tx9,x9,x9\n\tadds\tx20,x7,x15,lsl#1\n\textr\tx15,x16,x15,#63\n\tsub\tx27,x5,#8*4\n\n.Lsqr4x_shift_n_add:\n\tadcs\tx21,x8,x15\n\textr\tx16,x17,x16,#63\n\tsub\tx27,x27,#8*4\n\tadcs\tx22,x9,x16\n\tldp\tx15,x16,[x2,#8*5]\n\tmul\tx10,x11,x11\n\tldp\tx7,x9,[x1],#8*2\n\tumulh\tx11,x11,x11\n\tmul\tx12,x13,x13\n\tumulh\tx13,x13,x13\n\textr\tx17,x14,x17,#63\n\tstp\tx19,x20,[x2,#8*0]\n\tadcs\tx23,x10,x17\n\textr\tx14,x15,x14,#63\n\tstp\tx21,x22,[x2,#8*2]\n\tadcs\tx24,x11,x14\n\tldp\tx17,x14,[x2,#8*7]\n\textr\tx15,x16,x15,#63\n\tadcs\tx25,x12,x15\n\textr\tx16,x17,x16,#63\n\tadcs\tx26,x13,x16\n\tldp\tx15,x16,[x2,#8*9]\n\tmul\tx6,x7,x7\n\tldp\tx11,x13,[x1],#8*2\n\tumulh\tx7,x7,x7\n\tmul\tx8,x9,x9\n\tumulh\tx9,x9,x9\n\tstp\tx23,x24,[x2,#8*4]\n\textr\tx17,x14,x17,#63\n\tstp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8\n\tadcs\tx19,x6,x17\n\textr\tx14,x15,x14,#63", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:34", "text": "extr\tx14,x15,x14,#63\n\tstp\tx21,x22,[x2,#8*2]\n\tadcs\tx24,x11,x14\n\tldp\tx17,x14,[x2,#8*7]\n\textr\tx15,x16,x15,#63\n\tadcs\tx25,x12,x15\n\textr\tx16,x17,x16,#63\n\tadcs\tx26,x13,x16\n\tldp\tx15,x16,[x2,#8*9]\n\tmul\tx6,x7,x7\n\tldp\tx11,x13,[x1],#8*2\n\tumulh\tx7,x7,x7\n\tmul\tx8,x9,x9\n\tumulh\tx9,x9,x9\n\tstp\tx23,x24,[x2,#8*4]\n\textr\tx17,x14,x17,#63\n\tstp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8\n\tadcs\tx19,x6,x17\n\textr\tx14,x15,x14,#63\n\tadcs\tx20,x7,x14\n\tldp\tx17,x14,[x2,#8*3]\n\textr\tx15,x16,x15,#63\n\tcbnz\tx27,.Lsqr4x_shift_n_add\n\tldp\tx1,x4,[x29,#104]\t// pull np and n0\n\n\tadcs\tx21,x8,x15\n\textr\tx16,x17,x16,#63\n\tadcs\tx22,x9,x16\n\tldp\tx15,x16,[x2,#8*5]\n\tmul\tx10,x11,x11\n\tumulh\tx11,x11,x11\n\tstp\tx19,x20,[x2,#8*0]\n\tmul\tx12,x13,x13\n\tumulh\tx13,x13,x13\n\tstp\tx21,x22,[x2,#8*2]\n\textr\tx17,x14,x17,#63\n\tadcs\tx23,x10,x17\n\textr\tx14,x15,x14,#63\n\tldp\tx19,x20,[sp,#8*0]\n\tadcs\tx24,x11,x14\n\textr\tx15,x16,x15,#63\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx25,x12,x15\n\textr\tx16,xzr,x16,#63\n\tldp\tx8,x9,[x1,#8*2]\n\tadc\tx26,x13,x16\n\tldp\tx10,x11,[x1,#8*4]\n\n\t// Reduce by 512 bits per iteration\n\tmul\tx28,x4,x19\t\t// t[0]*n0\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx3,x1,x5\n\tldp\tx21,x22,[sp,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[sp,#8*4]\n\tstp\tx25,x26,[x2,#8*6]\n\tldp\tx25,x26,[sp,#8*6]\n\tadd\tx1,x1,#8*8\n\tmov\tx30,xzr\t\t// initial top-most carry", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:35", "text": "adcs\tx24,x11,x14\n\textr\tx15,x16,x15,#63\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx25,x12,x15\n\textr\tx16,xzr,x16,#63\n\tldp\tx8,x9,[x1,#8*2]\n\tadc\tx26,x13,x16\n\tldp\tx10,x11,[x1,#8*4]\n\n\t// Reduce by 512 bits per iteration\n\tmul\tx28,x4,x19\t\t// t[0]*n0\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx3,x1,x5\n\tldp\tx21,x22,[sp,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[sp,#8*4]\n\tstp\tx25,x26,[x2,#8*6]\n\tldp\tx25,x26,[sp,#8*6]\n\tadd\tx1,x1,#8*8\n\tmov\tx30,xzr\t\t// initial top-most carry\n\tmov\tx2,sp\n\tmov\tx27,#8\n\n.Lsqr8x_reduction:\n\t// (*)\tmul\tx14,x6,x28\t// lo(n[0-7])*lo(t[0]*n0)\n\tmul\tx15,x7,x28\n\tsub\tx27,x27,#1\n\tmul\tx16,x8,x28\n\tstr\tx28,[x2],#8\t\t// put aside t[0]*n0 for tail processing\n\tmul\tx17,x9,x28\n\t// (*)\tadds\txzr,x19,x14\n\tsubs\txzr,x19,#1\t\t// (*)\n\tmul\tx14,x10,x28\n\tadcs\tx19,x20,x15\n\tmul\tx15,x11,x28\n\tadcs\tx20,x21,x16\n\tmul\tx16,x12,x28\n\tadcs\tx21,x22,x17\n\tmul\tx17,x13,x28\n\tadcs\tx22,x23,x14\n\tumulh\tx14,x6,x28\t\t// hi(n[0-7])*lo(t[0]*n0)\n\tadcs\tx23,x24,x15\n\tumulh\tx15,x7,x28\n\tadcs\tx24,x25,x16\n\tumulh\tx16,x8,x28\n\tadcs\tx25,x26,x17\n\tumulh\tx17,x9,x28\n\tadc\tx26,xzr,xzr\n\tadds\tx19,x19,x14\n\tumulh\tx14,x10,x28\n\tadcs\tx20,x20,x15\n\tumulh\tx15,x11,x28\n\tadcs\tx21,x21,x16\n\tumulh\tx16,x12,x28\n\tadcs\tx22,x22,x17\n\tumulh\tx17,x13,x28\n\tmul\tx28,x4,x19\t\t// next t[0]*n0\n\tadcs\tx23,x23,x14\n\tadcs\tx24,x24,x15\n\tadcs\tx25,x25,x16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:36", "text": "umulh\tx14,x6,x28\t\t// hi(n[0-7])*lo(t[0]*n0)\n\tadcs\tx23,x24,x15\n\tumulh\tx15,x7,x28\n\tadcs\tx24,x25,x16\n\tumulh\tx16,x8,x28\n\tadcs\tx25,x26,x17\n\tumulh\tx17,x9,x28\n\tadc\tx26,xzr,xzr\n\tadds\tx19,x19,x14\n\tumulh\tx14,x10,x28\n\tadcs\tx20,x20,x15\n\tumulh\tx15,x11,x28\n\tadcs\tx21,x21,x16\n\tumulh\tx16,x12,x28\n\tadcs\tx22,x22,x17\n\tumulh\tx17,x13,x28\n\tmul\tx28,x4,x19\t\t// next t[0]*n0\n\tadcs\tx23,x23,x14\n\tadcs\tx24,x24,x15\n\tadcs\tx25,x25,x16\n\tadc\tx26,x26,x17\n\tcbnz\tx27,.Lsqr8x_reduction\n\n\tldp\tx14,x15,[x2,#8*0]\n\tldp\tx16,x17,[x2,#8*2]\n\tmov\tx0,x2\n\tsub\tx27,x3,x1\t// done yet?\n\tadds\tx19,x19,x14\n\tadcs\tx20,x20,x15\n\tldp\tx14,x15,[x2,#8*4]\n\tadcs\tx21,x21,x16\n\tadcs\tx22,x22,x17\n\tldp\tx16,x17,[x2,#8*6]\n\tadcs\tx23,x23,x14\n\tadcs\tx24,x24,x15\n\tadcs\tx25,x25,x16\n\tadcs\tx26,x26,x17\n\t//adc\tx28,xzr,xzr\t\t// moved below\n\tcbz\tx27,.Lsqr8x8_post_condition\n\n\tldur\tx4,[x2,#-8*8]\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tldp\tx10,x11,[x1,#8*4]\n\tmov\tx27,#-8*8\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\n.Lsqr8x_tail:\n\tmul\tx14,x6,x4\n\tadc\tx28,xzr,xzr\t\t// carry bit, modulo-scheduled\n\tmul\tx15,x7,x4\n\tadd\tx27,x27,#8\n\tmul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:37", "text": "ldur\tx4,[x2,#-8*8]\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tldp\tx10,x11,[x1,#8*4]\n\tmov\tx27,#-8*8\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\n.Lsqr8x_tail:\n\tmul\tx14,x6,x4\n\tadc\tx28,xzr,xzr\t\t// carry bit, modulo-scheduled\n\tmul\tx15,x7,x4\n\tadd\tx27,x27,#8\n\tmul\tx16,x8,x4\n\tmul\tx17,x9,x4\n\tadds\tx19,x19,x14\n\tmul\tx14,x10,x4\n\tadcs\tx20,x20,x15\n\tmul\tx15,x11,x4\n\tadcs\tx21,x21,x16\n\tmul\tx16,x12,x4\n\tadcs\tx22,x22,x17\n\tmul\tx17,x13,x4\n\tadcs\tx23,x23,x14\n\tumulh\tx14,x6,x4\n\tadcs\tx24,x24,x15\n\tumulh\tx15,x7,x4\n\tadcs\tx25,x25,x16\n\tumulh\tx16,x8,x4\n\tadcs\tx26,x26,x17\n\tumulh\tx17,x9,x4\n\tadc\tx28,x28,xzr\n\tstr\tx19,[x2],#8\n\tadds\tx19,x20,x14\n\tumulh\tx14,x10,x4\n\tadcs\tx20,x21,x15\n\tumulh\tx15,x11,x4\n\tadcs\tx21,x22,x16\n\tumulh\tx16,x12,x4\n\tadcs\tx22,x23,x17\n\tumulh\tx17,x13,x4\n\tldr\tx4,[x0,x27]\n\tadcs\tx23,x24,x14\n\tadcs\tx24,x25,x15\n\tadcs\tx25,x26,x16\n\tadcs\tx26,x28,x17\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tcbnz\tx27,.Lsqr8x_tail\n\t\t\t\t\t// note that carry flag is guaranteed\n\t\t\t\t\t// to be zero at this point\n\tldp\tx6,x7,[x2,#8*0]\n\tsub\tx27,x3,x1\t// done yet?\n\tsub\tx16,x3,x5\t// rewinded np\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tcbz\tx27,.Lsqr8x_tail_break\n\n\tldur\tx4,[x0,#-8*8]\n\tadds\tx19,x19,x6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:38", "text": "umulh\tx17,x13,x4\n\tldr\tx4,[x0,x27]\n\tadcs\tx23,x24,x14\n\tadcs\tx24,x25,x15\n\tadcs\tx25,x26,x16\n\tadcs\tx26,x28,x17\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tcbnz\tx27,.Lsqr8x_tail\n\t\t\t\t\t// note that carry flag is guaranteed\n\t\t\t\t\t// to be zero at this point\n\tldp\tx6,x7,[x2,#8*0]\n\tsub\tx27,x3,x1\t// done yet?\n\tsub\tx16,x3,x5\t// rewinded np\n\tldp\tx8,x9,[x2,#8*2]\n\tldp\tx10,x11,[x2,#8*4]\n\tldp\tx12,x13,[x2,#8*6]\n\tcbz\tx27,.Lsqr8x_tail_break\n\n\tldur\tx4,[x0,#-8*8]\n\tadds\tx19,x19,x6\n\tadcs\tx20,x20,x7\n\tldp\tx6,x7,[x1,#8*0]\n\tadcs\tx21,x21,x8\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x1,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x1,#8*4]\n\tadcs\tx25,x25,x12\n\tmov\tx27,#-8*8\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\t//adc\tx28,xzr,xzr\t\t// moved above\n\tb\t.Lsqr8x_tail\n\n.align\t4\n.Lsqr8x_tail_break:\n\tldr\tx4,[x29,#112]\t\t// pull n0\n\tadd\tx27,x2,#8*8\t\t// end of current t[num] window\n\n\tsubs\txzr,x30,#1\t\t// \"move\" top-most carry to carry bit\n\tadcs\tx14,x19,x6\n\tadcs\tx15,x20,x7\n\tldp\tx19,x20,[x0,#8*0]\n\tadcs\tx21,x21,x8\n\tldp\tx6,x7,[x16,#8*0]\t// recall that x16 is &n[0]\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x16,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x16,#8*4]\n\tadcs\tx25,x25,x12\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x16,#8*6]\n\tadd\tx1,x16,#8*8\n\tadc\tx30,xzr,xzr\t// top-most carry\n\tmul\tx28,x4,x19\n\tstp\tx14,x15,[x2,#8*0]\n\tstp\tx21,x22,[x2,#8*2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:39", "text": "subs\txzr,x30,#1\t\t// \"move\" top-most carry to carry bit\n\tadcs\tx14,x19,x6\n\tadcs\tx15,x20,x7\n\tldp\tx19,x20,[x0,#8*0]\n\tadcs\tx21,x21,x8\n\tldp\tx6,x7,[x16,#8*0]\t// recall that x16 is &n[0]\n\tadcs\tx22,x22,x9\n\tldp\tx8,x9,[x16,#8*2]\n\tadcs\tx23,x23,x10\n\tadcs\tx24,x24,x11\n\tldp\tx10,x11,[x16,#8*4]\n\tadcs\tx25,x25,x12\n\tadcs\tx26,x26,x13\n\tldp\tx12,x13,[x16,#8*6]\n\tadd\tx1,x16,#8*8\n\tadc\tx30,xzr,xzr\t// top-most carry\n\tmul\tx28,x4,x19\n\tstp\tx14,x15,[x2,#8*0]\n\tstp\tx21,x22,[x2,#8*2]\n\tldp\tx21,x22,[x0,#8*2]\n\tstp\tx23,x24,[x2,#8*4]\n\tldp\tx23,x24,[x0,#8*4]\n\tcmp\tx27,x29\t\t// did we hit the bottom?\n\tstp\tx25,x26,[x2,#8*6]\n\tmov\tx2,x0\t\t\t// slide the window\n\tldp\tx25,x26,[x0,#8*6]\n\tmov\tx27,#8\n\tb.ne\t.Lsqr8x_reduction\n\n\t// Final step. We see if result is larger than modulus, and\n\t// if it is, subtract the modulus. But comparison implies\n\t// subtraction. So we subtract modulus, see if it borrowed,\n\t// and conditionally copy original value.\n\tldr\tx0,[x29,#96]\t\t// pull rp\n\tadd\tx2,x2,#8*8\n\tsubs\tx14,x19,x6\n\tsbcs\tx15,x20,x7\n\tsub\tx27,x5,#8*8\n\tmov\tx3,x0\t\t// x0 copy\n\n.Lsqr8x_sub:\n\tsbcs\tx16,x21,x8\n\tldp\tx6,x7,[x1,#8*0]\n\tsbcs\tx17,x22,x9\n\tstp\tx14,x15,[x0,#8*0]\n\tsbcs\tx14,x23,x10\n\tldp\tx8,x9,[x1,#8*2]\n\tsbcs\tx15,x24,x11\n\tstp\tx16,x17,[x0,#8*2]\n\tsbcs\tx16,x25,x12\n\tldp\tx10,x11,[x1,#8*4]\n\tsbcs\tx17,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\tldp\tx19,x20,[x2,#8*0]\n\tsub\tx27,x27,#8*8\n\tldp\tx21,x22,[x2,#8*2]\n\tldp\tx23,x24,[x2,#8*4]\n\tldp\tx25,x26,[x2,#8*6]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:40", "text": ".Lsqr8x_sub:\n\tsbcs\tx16,x21,x8\n\tldp\tx6,x7,[x1,#8*0]\n\tsbcs\tx17,x22,x9\n\tstp\tx14,x15,[x0,#8*0]\n\tsbcs\tx14,x23,x10\n\tldp\tx8,x9,[x1,#8*2]\n\tsbcs\tx15,x24,x11\n\tstp\tx16,x17,[x0,#8*2]\n\tsbcs\tx16,x25,x12\n\tldp\tx10,x11,[x1,#8*4]\n\tsbcs\tx17,x26,x13\n\tldp\tx12,x13,[x1,#8*6]\n\tadd\tx1,x1,#8*8\n\tldp\tx19,x20,[x2,#8*0]\n\tsub\tx27,x27,#8*8\n\tldp\tx21,x22,[x2,#8*2]\n\tldp\tx23,x24,[x2,#8*4]\n\tldp\tx25,x26,[x2,#8*6]\n\tadd\tx2,x2,#8*8\n\tstp\tx14,x15,[x0,#8*4]\n\tsbcs\tx14,x19,x6\n\tstp\tx16,x17,[x0,#8*6]\n\tadd\tx0,x0,#8*8\n\tsbcs\tx15,x20,x7\n\tcbnz\tx27,.Lsqr8x_sub\n\n\tsbcs\tx16,x21,x8\n\tmov\tx2,sp\n\tadd\tx1,sp,x5\n\tldp\tx6,x7,[x3,#8*0]\n\tsbcs\tx17,x22,x9\n\tstp\tx14,x15,[x0,#8*0]\n\tsbcs\tx14,x23,x10\n\tldp\tx8,x9,[x3,#8*2]\n\tsbcs\tx15,x24,x11\n\tstp\tx16,x17,[x0,#8*2]\n\tsbcs\tx16,x25,x12\n\tldp\tx19,x20,[x1,#8*0]\n\tsbcs\tx17,x26,x13\n\tldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\tstp\tx14,x15,[x0,#8*4]\n\tstp\tx16,x17,[x0,#8*6]\n\n\tsub\tx27,x5,#8*4\n.Lsqr4x_cond_copy:\n\tsub\tx27,x27,#8*4\n\tcsel\tx14,x19,x6,lo\n\tstp\txzr,xzr,[x2,#8*0]\n\tcsel\tx15,x20,x7,lo\n\tldp\tx6,x7,[x3,#8*4]\n\tldp\tx19,x20,[x1,#8*4]\n\tcsel\tx16,x21,x8,lo\n\tstp\txzr,xzr,[x2,#8*2]\n\tadd\tx2,x2,#8*4\n\tcsel\tx17,x22,x9,lo\n\tldp\tx8,x9,[x3,#8*6]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:41", "text": "sbcs\tx17,x26,x13\n\tldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\tstp\tx14,x15,[x0,#8*4]\n\tstp\tx16,x17,[x0,#8*6]\n\n\tsub\tx27,x5,#8*4\n.Lsqr4x_cond_copy:\n\tsub\tx27,x27,#8*4\n\tcsel\tx14,x19,x6,lo\n\tstp\txzr,xzr,[x2,#8*0]\n\tcsel\tx15,x20,x7,lo\n\tldp\tx6,x7,[x3,#8*4]\n\tldp\tx19,x20,[x1,#8*4]\n\tcsel\tx16,x21,x8,lo\n\tstp\txzr,xzr,[x2,#8*2]\n\tadd\tx2,x2,#8*4\n\tcsel\tx17,x22,x9,lo\n\tldp\tx8,x9,[x3,#8*6]\n\tldp\tx21,x22,[x1,#8*6]\n\tadd\tx1,x1,#8*4\n\tstp\tx14,x15,[x3,#8*0]\n\tstp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tstp\txzr,xzr,[x1,#8*0]\n\tstp\txzr,xzr,[x1,#8*2]\n\tcbnz\tx27,.Lsqr4x_cond_copy\n\n\tcsel\tx14,x19,x6,lo\n\tstp\txzr,xzr,[x2,#8*0]\n\tcsel\tx15,x20,x7,lo\n\tstp\txzr,xzr,[x2,#8*2]\n\tcsel\tx16,x21,x8,lo\n\tcsel\tx17,x22,x9,lo\n\tstp\tx14,x15,[x3,#8*0]\n\tstp\tx16,x17,[x3,#8*2]\n\n\tb\t.Lsqr8x_done\n\n.align\t4\n.Lsqr8x8_post_condition:\n\tadc\tx28,xzr,xzr\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\t// x19-7,x28 hold result, x6-7 hold modulus\n\tsubs\tx6,x19,x6\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\tsbcs\tx7,x20,x7\n\tstp\txzr,xzr,[sp,#8*0]\n\tsbcs\tx8,x21,x8\n\tstp\txzr,xzr,[sp,#8*2]\n\tsbcs\tx9,x22,x9\n\tstp\txzr,xzr,[sp,#8*4]\n\tsbcs\tx10,x23,x10\n\tstp\txzr,xzr,[sp,#8*6]\n\tsbcs\tx11,x24,x11\n\tstp\txzr,xzr,[sp,#8*8]\n\tsbcs\tx12,x25,x12\n\tstp\txzr,xzr,[sp,#8*10]\n\tsbcs\tx13,x26,x13", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:42", "text": ".align\t4\n.Lsqr8x8_post_condition:\n\tadc\tx28,xzr,xzr\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\t// x19-7,x28 hold result, x6-7 hold modulus\n\tsubs\tx6,x19,x6\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\tsbcs\tx7,x20,x7\n\tstp\txzr,xzr,[sp,#8*0]\n\tsbcs\tx8,x21,x8\n\tstp\txzr,xzr,[sp,#8*2]\n\tsbcs\tx9,x22,x9\n\tstp\txzr,xzr,[sp,#8*4]\n\tsbcs\tx10,x23,x10\n\tstp\txzr,xzr,[sp,#8*6]\n\tsbcs\tx11,x24,x11\n\tstp\txzr,xzr,[sp,#8*8]\n\tsbcs\tx12,x25,x12\n\tstp\txzr,xzr,[sp,#8*10]\n\tsbcs\tx13,x26,x13\n\tstp\txzr,xzr,[sp,#8*12]\n\tsbcs\tx28,x28,xzr\t// did it borrow?\n\tstp\txzr,xzr,[sp,#8*14]\n\n\t// x6-7 hold result-modulus\n\tcsel\tx6,x19,x6,lo\n\tcsel\tx7,x20,x7,lo\n\tcsel\tx8,x21,x8,lo\n\tcsel\tx9,x22,x9,lo\n\tstp\tx6,x7,[x1,#8*0]\n\tcsel\tx10,x23,x10,lo\n\tcsel\tx11,x24,x11,lo\n\tstp\tx8,x9,[x1,#8*2]\n\tcsel\tx12,x25,x12,lo\n\tcsel\tx13,x26,x13,lo\n\tstp\tx10,x11,[x1,#8*4]\n\tstp\tx12,x13,[x1,#8*6]\n\n.Lsqr8x_done:\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 is loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_sqr8x_mont,.-__bn_sqr8x_mont\n.type\t__bn_mul4x_mont,%function\n.align\t5\n__bn_mul4x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_mul4x_mont is jumped to\n\t// only from bn_mul_mont (or __bn_sqr8x_mont from bn_mul_mont) which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:43", "text": "mov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 is loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_sqr8x_mont,.-__bn_sqr8x_mont\n.type\t__bn_mul4x_mont,%function\n.align\t5\n__bn_mul4x_mont:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because __bn_mul4x_mont is jumped to\n\t// only from bn_mul_mont (or __bn_sqr8x_mont from bn_mul_mont) which has already signed the return address.\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n\tsub\tx26,sp,x5,lsl#3\n\tlsl\tx5,x5,#3\n\tldr\tx4,[x4]\t\t// *n0\n\tsub\tsp,x26,#8*4\t\t// alloca\n\n\tadd\tx10,x2,x5\n\tadd\tx27,x1,x5\n\tstp\tx0,x10,[x29,#96]\t// offload rp and &b[num]\n\n\tldr\tx24,[x2,#8*0]\t\t// b[0]\n\tldp\tx6,x7,[x1,#8*0]\t// a[0..3]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tmov\tx19,xzr\n\tmov\tx20,xzr\n\tmov\tx21,xzr\n\tmov\tx22,xzr\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx28,#0\n\tmov\tx26,sp\n\n.Loop_mul4x_1st_reduction:\n\tmul\tx10,x6,x24\t\t// lo(a[0..3]*b[0])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[0..3]*b[0])\n\tadcs\tx20,x20,x11\n\tmul\tx25,x19,x4\t\t// t[0]*n0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:44", "text": "mov\tx22,xzr\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx28,#0\n\tmov\tx26,sp\n\n.Loop_mul4x_1st_reduction:\n\tmul\tx10,x6,x24\t\t// lo(a[0..3]*b[0])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[0..3]*b[0])\n\tadcs\tx20,x20,x11\n\tmul\tx25,x19,x4\t\t// t[0]*n0\n\tadcs\tx21,x21,x12\n\tumulh\tx11,x7,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx12,x8,x24\n\tadc\tx23,xzr,xzr\n\tumulh\tx13,x9,x24\n\tldr\tx24,[x2,x28]\t\t// next b[i] (or b[0])\n\tadds\tx20,x20,x10\n\t// (*)\tmul\tx10,x14,x25\t// lo(n[0..3]*t[0]*n0)\n\tstr\tx25,[x26],#8\t\t// put aside t[0]*n0 for tail processing\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\t// (*)\tadds\txzr,x19,x10\n\tsubs\txzr,x19,#1\t\t// (*)\n\tumulh\tx10,x14,x25\t\t// hi(n[0..3]*t[0]*n0)\n\tadcs\tx19,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0\n\tadc\tx0,xzr,xzr\n\tadds\tx19,x19,x10\n\tsub\tx10,x27,x1\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_1st_reduction\n\n\tcbz\tx10,.Lmul4x4_post_condition\n\n\tldp\tx6,x7,[x1,#8*0]\t// a[4..7]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:45", "text": "umulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0\n\tadc\tx0,xzr,xzr\n\tadds\tx19,x19,x10\n\tsub\tx10,x27,x1\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_1st_reduction\n\n\tcbz\tx10,.Lmul4x4_post_condition\n\n\tldp\tx6,x7,[x1,#8*0]\t// a[4..7]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tldr\tx25,[sp]\t\t// a[0]*n0\n\tldp\tx14,x15,[x3,#8*0]\t// n[4..7]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\n.Loop_mul4x_1st_tail:\n\tmul\tx10,x6,x24\t\t// lo(a[4..7]*b[i])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[4..7]*b[i])\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x7,x24\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x8,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx13,x9,x24\n\tadc\tx23,xzr,xzr\n\tldr\tx24,[x2,x28]\t\t// next b[i] (or b[0])\n\tadds\tx20,x20,x10\n\tmul\tx10,x14,x25\t\t// lo(n[4..7]*a[0]*n0)\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\tadds\tx19,x19,x10\n\tumulh\tx10,x14,x25\t\t// hi(n[4..7]*a[0]*n0)\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx22,x22,x13\n\tadcs\tx23,x23,x0\n\tumulh\tx13,x17,x25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:46", "text": "umulh\tx13,x9,x24\n\tadc\tx23,xzr,xzr\n\tldr\tx24,[x2,x28]\t\t// next b[i] (or b[0])\n\tadds\tx20,x20,x10\n\tmul\tx10,x14,x25\t\t// lo(n[4..7]*a[0]*n0)\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\tadds\tx19,x19,x10\n\tumulh\tx10,x14,x25\t\t// hi(n[4..7]*a[0]*n0)\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx22,x22,x13\n\tadcs\tx23,x23,x0\n\tumulh\tx13,x17,x25\n\tadc\tx0,xzr,xzr\n\tldr\tx25,[sp,x28]\t\t// next t[0]*n0\n\tstr\tx19,[x26],#8\t\t// result!!!\n\tadds\tx19,x20,x10\n\tsub\tx10,x27,x1\t\t// done yet?\n\tadcs\tx20,x21,x11\n\tadcs\tx21,x22,x12\n\tadcs\tx22,x23,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_1st_tail\n\n\tsub\tx11,x27,x5\t// rewinded x1\n\tcbz\tx10,.Lmul4x_proceed\n\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tldp\tx14,x15,[x3,#8*0]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tb\t.Loop_mul4x_1st_tail\n\n.align\t5\n.Lmul4x_proceed:\n\tldr\tx24,[x2,#8*4]!\t\t// *++b\n\tadc\tx30,x0,xzr\n\tldp\tx6,x7,[x11,#8*0]\t// a[0..3]\n\tsub\tx3,x3,x5\t\t// rewind np\n\tldp\tx8,x9,[x11,#8*2]\n\tadd\tx1,x11,#8*4\n\n\tstp\tx19,x20,[x26,#8*0]\t// result!!!\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tldp\tx21,x22,[sp,#8*6]\n\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tmov\tx26,sp\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:47", "text": "b\t.Loop_mul4x_1st_tail\n\n.align\t5\n.Lmul4x_proceed:\n\tldr\tx24,[x2,#8*4]!\t\t// *++b\n\tadc\tx30,x0,xzr\n\tldp\tx6,x7,[x11,#8*0]\t// a[0..3]\n\tsub\tx3,x3,x5\t\t// rewind np\n\tldp\tx8,x9,[x11,#8*2]\n\tadd\tx1,x11,#8*4\n\n\tstp\tx19,x20,[x26,#8*0]\t// result!!!\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tldp\tx21,x22,[sp,#8*6]\n\n\tldp\tx14,x15,[x3,#8*0]\t// n[0..3]\n\tmov\tx26,sp\n\tldp\tx16,x17,[x3,#8*2]\n\tadds\tx3,x3,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\n.align\t4\n.Loop_mul4x_reduction:\n\tmul\tx10,x6,x24\t\t// lo(a[0..3]*b[4])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[0..3]*b[4])\n\tadcs\tx20,x20,x11\n\tmul\tx25,x19,x4\t\t// t[0]*n0\n\tadcs\tx21,x21,x12\n\tumulh\tx11,x7,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx12,x8,x24\n\tadc\tx23,xzr,xzr\n\tumulh\tx13,x9,x24\n\tldr\tx24,[x2,x28]\t\t// next b[i]\n\tadds\tx20,x20,x10\n\t// (*)\tmul\tx10,x14,x25\n\tstr\tx25,[x26],#8\t\t// put aside t[0]*n0 for tail processing\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\t\t// lo(n[0..3]*t[0]*n0\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\t// (*)\tadds\txzr,x19,x10\n\tsubs\txzr,x19,#1\t\t// (*)\n\tumulh\tx10,x14,x25\t\t// hi(n[0..3]*t[0]*n0\n\tadcs\tx19,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:48", "text": "umulh\tx13,x9,x24\n\tldr\tx24,[x2,x28]\t\t// next b[i]\n\tadds\tx20,x20,x10\n\t// (*)\tmul\tx10,x14,x25\n\tstr\tx25,[x26],#8\t\t// put aside t[0]*n0 for tail processing\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\t\t// lo(n[0..3]*t[0]*n0\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\t// (*)\tadds\txzr,x19,x10\n\tsubs\txzr,x19,#1\t\t// (*)\n\tumulh\tx10,x14,x25\t\t// hi(n[0..3]*t[0]*n0\n\tadcs\tx19,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx20,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx21,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx22,x23,x0\n\tadc\tx0,xzr,xzr\n\tadds\tx19,x19,x10\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_reduction\n\n\tadc\tx0,x0,xzr\n\tldp\tx10,x11,[x26,#8*4]\t// t[4..7]\n\tldp\tx12,x13,[x26,#8*6]\n\tldp\tx6,x7,[x1,#8*0]\t// a[4..7]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tadds\tx19,x19,x10\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\n\tldr\tx25,[sp]\t\t// t[0]*n0\n\tldp\tx14,x15,[x3,#8*0]\t// n[4..7]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\n.align\t4\n.Loop_mul4x_tail:\n\tmul\tx10,x6,x24\t\t// lo(a[4..7]*b[4])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[4..7]*b[4])\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x7,x24\n\tadcs\tx21,x21,x12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:49", "text": "ldr\tx25,[sp]\t\t// t[0]*n0\n\tldp\tx14,x15,[x3,#8*0]\t// n[4..7]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\n.align\t4\n.Loop_mul4x_tail:\n\tmul\tx10,x6,x24\t\t// lo(a[4..7]*b[4])\n\tadc\tx0,x0,xzr\t// modulo-scheduled\n\tmul\tx11,x7,x24\n\tadd\tx28,x28,#8\n\tmul\tx12,x8,x24\n\tand\tx28,x28,#31\n\tmul\tx13,x9,x24\n\tadds\tx19,x19,x10\n\tumulh\tx10,x6,x24\t\t// hi(a[4..7]*b[4])\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x7,x24\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x8,x24\n\tadcs\tx22,x22,x13\n\tumulh\tx13,x9,x24\n\tadc\tx23,xzr,xzr\n\tldr\tx24,[x2,x28]\t\t// next b[i]\n\tadds\tx20,x20,x10\n\tmul\tx10,x14,x25\t\t// lo(n[4..7]*t[0]*n0)\n\tadcs\tx21,x21,x11\n\tmul\tx11,x15,x25\n\tadcs\tx22,x22,x12\n\tmul\tx12,x16,x25\n\tadc\tx23,x23,x13\t\t// can't overflow\n\tmul\tx13,x17,x25\n\tadds\tx19,x19,x10\n\tumulh\tx10,x14,x25\t\t// hi(n[4..7]*t[0]*n0)\n\tadcs\tx20,x20,x11\n\tumulh\tx11,x15,x25\n\tadcs\tx21,x21,x12\n\tumulh\tx12,x16,x25\n\tadcs\tx22,x22,x13\n\tumulh\tx13,x17,x25\n\tadcs\tx23,x23,x0\n\tldr\tx25,[sp,x28]\t\t// next a[0]*n0\n\tadc\tx0,xzr,xzr\n\tstr\tx19,[x26],#8\t\t// result!!!\n\tadds\tx19,x20,x10\n\tsub\tx10,x27,x1\t\t// done yet?\n\tadcs\tx20,x21,x11\n\tadcs\tx21,x22,x12\n\tadcs\tx22,x23,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_tail\n\n\tsub\tx11,x3,x5\t\t// rewinded np?\n\tadc\tx0,x0,xzr\n\tcbz\tx10,.Loop_mul4x_break\n\n\tldp\tx10,x11,[x26,#8*4]\n\tldp\tx12,x13,[x26,#8*6]\n\tldp\tx6,x7,[x1,#8*0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:50", "text": "umulh\tx13,x17,x25\n\tadcs\tx23,x23,x0\n\tldr\tx25,[sp,x28]\t\t// next a[0]*n0\n\tadc\tx0,xzr,xzr\n\tstr\tx19,[x26],#8\t\t// result!!!\n\tadds\tx19,x20,x10\n\tsub\tx10,x27,x1\t\t// done yet?\n\tadcs\tx20,x21,x11\n\tadcs\tx21,x22,x12\n\tadcs\tx22,x23,x13\n\t//adc\tx0,x0,xzr\n\tcbnz\tx28,.Loop_mul4x_tail\n\n\tsub\tx11,x3,x5\t\t// rewinded np?\n\tadc\tx0,x0,xzr\n\tcbz\tx10,.Loop_mul4x_break\n\n\tldp\tx10,x11,[x26,#8*4]\n\tldp\tx12,x13,[x26,#8*6]\n\tldp\tx6,x7,[x1,#8*0]\n\tldp\tx8,x9,[x1,#8*2]\n\tadd\tx1,x1,#8*4\n\tadds\tx19,x19,x10\n\tadcs\tx20,x20,x11\n\tadcs\tx21,x21,x12\n\tadcs\tx22,x22,x13\n\t//adc\tx0,x0,xzr\n\tldp\tx14,x15,[x3,#8*0]\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tb\t.Loop_mul4x_tail\n\n.align\t4\n.Loop_mul4x_break:\n\tldp\tx12,x13,[x29,#96]\t// pull rp and &b[num]\n\tadds\tx19,x19,x30\n\tadd\tx2,x2,#8*4\t\t// bp++\n\tadcs\tx20,x20,xzr\n\tsub\tx1,x1,x5\t\t// rewind ap\n\tadcs\tx21,x21,xzr\n\tstp\tx19,x20,[x26,#8*0]\t// result!!!\n\tadcs\tx22,x22,xzr\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tadc\tx30,x0,xzr\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tcmp\tx2,x13\t\t\t// done yet?\n\tldp\tx21,x22,[sp,#8*6]\n\tldp\tx14,x15,[x11,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x11,#8*2]\n\tadd\tx3,x11,#8*4\n\tb.eq\t.Lmul4x_post\n\n\tldr\tx24,[x2]\n\tldp\tx6,x7,[x1,#8*0]\t// a[0..3]\n\tldp\tx8,x9,[x1,#8*2]\n\tadds\tx1,x1,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx26,sp\n\tb\t.Loop_mul4x_reduction", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:51", "text": "stp\tx19,x20,[x26,#8*0]\t// result!!!\n\tadcs\tx22,x22,xzr\n\tldp\tx19,x20,[sp,#8*4]\t// t[0..3]\n\tadc\tx30,x0,xzr\n\tstp\tx21,x22,[x26,#8*2]\t// result!!!\n\tcmp\tx2,x13\t\t\t// done yet?\n\tldp\tx21,x22,[sp,#8*6]\n\tldp\tx14,x15,[x11,#8*0]\t// n[0..3]\n\tldp\tx16,x17,[x11,#8*2]\n\tadd\tx3,x11,#8*4\n\tb.eq\t.Lmul4x_post\n\n\tldr\tx24,[x2]\n\tldp\tx6,x7,[x1,#8*0]\t// a[0..3]\n\tldp\tx8,x9,[x1,#8*2]\n\tadds\tx1,x1,#8*4\t\t// clear carry bit\n\tmov\tx0,xzr\n\tmov\tx26,sp\n\tb\t.Loop_mul4x_reduction\n\n.align\t4\n.Lmul4x_post:\n\t// Final step. We see if result is larger than modulus, and\n\t// if it is, subtract the modulus. But comparison implies\n\t// subtraction. So we subtract modulus, see if it borrowed,\n\t// and conditionally copy original value.\n\tmov\tx0,x12\n\tmov\tx27,x12\t\t// x0 copy\n\tsubs\tx10,x19,x14\n\tadd\tx26,sp,#8*8\n\tsbcs\tx11,x20,x15\n\tsub\tx28,x5,#8*4\n\n.Lmul4x_sub:\n\tsbcs\tx12,x21,x16\n\tldp\tx14,x15,[x3,#8*0]\n\tsub\tx28,x28,#8*4\n\tldp\tx19,x20,[x26,#8*0]\n\tsbcs\tx13,x22,x17\n\tldp\tx16,x17,[x3,#8*2]\n\tadd\tx3,x3,#8*4\n\tldp\tx21,x22,[x26,#8*2]\n\tadd\tx26,x26,#8*4\n\tstp\tx10,x11,[x0,#8*0]\n\tsbcs\tx10,x19,x14\n\tstp\tx12,x13,[x0,#8*2]\n\tadd\tx0,x0,#8*4\n\tsbcs\tx11,x20,x15\n\tcbnz\tx28,.Lmul4x_sub\n\n\tsbcs\tx12,x21,x16\n\tmov\tx26,sp\n\tadd\tx1,sp,#8*4\n\tldp\tx6,x7,[x27,#8*0]\n\tsbcs\tx13,x22,x17\n\tstp\tx10,x11,[x0,#8*0]\n\tldp\tx8,x9,[x27,#8*2]\n\tstp\tx12,x13,[x0,#8*2]\n\tldp\tx19,x20,[x1,#8*0]\n\tldp\tx21,x22,[x1,#8*2]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:52", "text": "add\tx3,x3,#8*4\n\tldp\tx21,x22,[x26,#8*2]\n\tadd\tx26,x26,#8*4\n\tstp\tx10,x11,[x0,#8*0]\n\tsbcs\tx10,x19,x14\n\tstp\tx12,x13,[x0,#8*2]\n\tadd\tx0,x0,#8*4\n\tsbcs\tx11,x20,x15\n\tcbnz\tx28,.Lmul4x_sub\n\n\tsbcs\tx12,x21,x16\n\tmov\tx26,sp\n\tadd\tx1,sp,#8*4\n\tldp\tx6,x7,[x27,#8*0]\n\tsbcs\tx13,x22,x17\n\tstp\tx10,x11,[x0,#8*0]\n\tldp\tx8,x9,[x27,#8*2]\n\tstp\tx12,x13,[x0,#8*2]\n\tldp\tx19,x20,[x1,#8*0]\n\tldp\tx21,x22,[x1,#8*2]\n\tsbcs\txzr,x30,xzr\t// did it borrow?\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\n\tsub\tx28,x5,#8*4\n.Lmul4x_cond_copy:\n\tsub\tx28,x28,#8*4\n\tcsel\tx10,x19,x6,lo\n\tstp\txzr,xzr,[x26,#8*0]\n\tcsel\tx11,x20,x7,lo\n\tldp\tx6,x7,[x27,#8*4]\n\tldp\tx19,x20,[x1,#8*4]\n\tcsel\tx12,x21,x8,lo\n\tstp\txzr,xzr,[x26,#8*2]\n\tadd\tx26,x26,#8*4\n\tcsel\tx13,x22,x9,lo\n\tldp\tx8,x9,[x27,#8*6]\n\tldp\tx21,x22,[x1,#8*6]\n\tadd\tx1,x1,#8*4\n\tstp\tx10,x11,[x27,#8*0]\n\tstp\tx12,x13,[x27,#8*2]\n\tadd\tx27,x27,#8*4\n\tcbnz\tx28,.Lmul4x_cond_copy\n\n\tcsel\tx10,x19,x6,lo\n\tstp\txzr,xzr,[x26,#8*0]\n\tcsel\tx11,x20,x7,lo\n\tstp\txzr,xzr,[x26,#8*2]\n\tcsel\tx12,x21,x8,lo\n\tstp\txzr,xzr,[x26,#8*3]\n\tcsel\tx13,x22,x9,lo\n\tstp\txzr,xzr,[x26,#8*4]\n\tstp\tx10,x11,[x27,#8*0]\n\tstp\tx12,x13,[x27,#8*2]\n\n\tb\t.Lmul4x_done\n\n.align\t4\n.Lmul4x4_post_condition:\n\tadc\tx0,x0,xzr\n\tldr\tx1,[x29,#96]\t\t// pull rp", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:53", "text": "add\tx27,x27,#8*4\n\tcbnz\tx28,.Lmul4x_cond_copy\n\n\tcsel\tx10,x19,x6,lo\n\tstp\txzr,xzr,[x26,#8*0]\n\tcsel\tx11,x20,x7,lo\n\tstp\txzr,xzr,[x26,#8*2]\n\tcsel\tx12,x21,x8,lo\n\tstp\txzr,xzr,[x26,#8*3]\n\tcsel\tx13,x22,x9,lo\n\tstp\txzr,xzr,[x26,#8*4]\n\tstp\tx10,x11,[x27,#8*0]\n\tstp\tx12,x13,[x27,#8*2]\n\n\tb\t.Lmul4x_done\n\n.align\t4\n.Lmul4x4_post_condition:\n\tadc\tx0,x0,xzr\n\tldr\tx1,[x29,#96]\t\t// pull rp\n\t// x19-3,x0 hold result, x14-7 hold modulus\n\tsubs\tx6,x19,x14\n\tldr\tx30,[x29,#8]\t\t// pull return address\n\tsbcs\tx7,x20,x15\n\tstp\txzr,xzr,[sp,#8*0]\n\tsbcs\tx8,x21,x16\n\tstp\txzr,xzr,[sp,#8*2]\n\tsbcs\tx9,x22,x17\n\tstp\txzr,xzr,[sp,#8*4]\n\tsbcs\txzr,x0,xzr\t\t// did it borrow?\n\tstp\txzr,xzr,[sp,#8*6]\n\n\t// x6-3 hold result-modulus\n\tcsel\tx6,x19,x6,lo\n\tcsel\tx7,x20,x7,lo\n\tcsel\tx8,x21,x8,lo\n\tcsel\tx9,x22,x9,lo\n\tstp\tx6,x7,[x1,#8*0]\n\tstp\tx8,x9,[x1,#8*2]\n\n.Lmul4x_done:\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_mul4x_mont,.-__bn_mul4x_mont\n.section\t.rodata\n.byte\t77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 2081, "line_end": 2137}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S:54", "text": ".Lmul4x_done:\n\tldp\tx19,x20,[x29,#16]\n\tmov\tsp,x29\n\tldp\tx21,x22,[x29,#32]\n\tmov\tx0,#1\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldr\tx29,[sp],#128\n\t// x30 loaded earlier\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t__bn_mul4x_mont,.-__bn_mul4x_mont\n.section\t.rodata\n.byte\t77,111,110,116,103,111,109,101,114,121,32,77,117,108,116,105,112,108,105,99,97,116,105,111,110,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/armv8-mont.S", "line_start": 2121, "line_end": 2137}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__) || defined(__clang__)\n.syntax\tunified\n#endif\n#if defined(__thumb2__)\n.thumb\n#else\n.code\t32\n#endif\n\n#if defined(__thumb2__) || defined(__clang__)\n#define ldrhsb\tldrbhs\n#endif\n\n.text\n\n.align\t5\n.Lsigma:\n.long\t0x61707865,0x3320646e,0x79622d32,0x6b206574\t@ endian-neutral\n.Lone:\n.long\t1,0,0,0\n#if __ARM_MAX_ARCH__>=7\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.LChaCha20_ctr32\n# endif\n#else\n.word\t-1\n#endif\n\n.globl\tChaCha20_ctr32\n.type\tChaCha20_ctr32,%function\n.align\t5\nChaCha20_ctr32:\n.LChaCha20_ctr32:\n\tldr\tr12,[sp,#0]\t\t@ pull pointer to counter and nonce\n\tstmdb\tsp!,{r0,r1,r2,r4-r11,lr}\n#if __ARM_ARCH__<7 && !defined(__thumb2__)\n\tsub\tr14,pc,#16\t\t@ ChaCha20_ctr32\n#else\n\tadr\tr14,.LChaCha20_ctr32\n#endif\n\tcmp\tr2,#0\t\t\t@ len==0?\n#ifdef\t__thumb2__\n\titt\teq\n#endif\n\taddeq\tsp,sp,#4*3\n\tbeq\t.Lno_data\n#if __ARM_MAX_ARCH__>=7\n\tcmp\tr2,#192\t\t\t@ test len\n\tbls\t.Lshort\n\tldr\tr4,[r14,#-32]\n# if !defined(_WIN32)\n\tldr\tr4,[r14,r4]\n# endif\n# if defined(__APPLE__) || defined(_WIN32)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:2", "text": "stmdb\tsp!,{r0,r1,r2,r4-r11,lr}\n#if __ARM_ARCH__<7 && !defined(__thumb2__)\n\tsub\tr14,pc,#16\t\t@ ChaCha20_ctr32\n#else\n\tadr\tr14,.LChaCha20_ctr32\n#endif\n\tcmp\tr2,#0\t\t\t@ len==0?\n#ifdef\t__thumb2__\n\titt\teq\n#endif\n\taddeq\tsp,sp,#4*3\n\tbeq\t.Lno_data\n#if __ARM_MAX_ARCH__>=7\n\tcmp\tr2,#192\t\t\t@ test len\n\tbls\t.Lshort\n\tldr\tr4,[r14,#-32]\n# if !defined(_WIN32)\n\tldr\tr4,[r14,r4]\n# endif\n# if defined(__APPLE__) || defined(_WIN32)\n\tldr\tr4,[r4]\n# endif\n\ttst\tr4,#ARMV7_NEON\n\tbne\t.LChaCha20_neon\n.Lshort:\n#endif\n\tldmia\tr12,{r4,r5,r6,r7}\t\t@ load counter and nonce\n\tsub\tsp,sp,#4*(16)\t\t@ off-load area\n\tsub\tr14,r14,#64\t\t@ .Lsigma\n\tstmdb\tsp!,{r4,r5,r6,r7}\t\t@ copy counter and nonce\n\tldmia\tr3,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ load key\n\tldmia\tr14,{r0,r1,r2,r3}\t\t@ load sigma\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ copy key\n\tstmdb\tsp!,{r0,r1,r2,r3}\t\t@ copy sigma\n\tstr\tr10,[sp,#4*(16+10)]\t@ off-load \"rx\"\n\tstr\tr11,[sp,#4*(16+11)]\t@ off-load \"rx\"\n\tb\t.Loop_outer_enter\n\n.align\t4\n.Loop_outer:\n\tldmia\tsp,{r0,r1,r2,r3,r4,r5,r6,r7,r8,r9}\t\t@ load key material\n\tstr\tr11,[sp,#4*(32+2)]\t@ save len\n\tstr\tr12,  [sp,#4*(32+1)]\t@ save inp\n\tstr\tr14,  [sp,#4*(32+0)]\t@ save out\n.Loop_outer_enter:\n\tldr\tr11, [sp,#4*(15)]\n\tldr\tr12,[sp,#4*(12)]\t@ modulo-scheduled load\n\tldr\tr10, [sp,#4*(13)]\n\tldr\tr14,[sp,#4*(14)]\n\tstr\tr11, [sp,#4*(16+15)]\n\tmov\tr11,#10\n\tb\t.Loop\n\n.align\t4\n.Loop:\n\tsubs\tr11,r11,#1\n\tadd\tr0,r0,r4\n\tmov\tr12,r12,ror#16\n\tadd\tr1,r1,r5\n\tmov\tr10,r10,ror#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:3", "text": "ldmia\tsp,{r0,r1,r2,r3,r4,r5,r6,r7,r8,r9}\t\t@ load key material\n\tstr\tr11,[sp,#4*(32+2)]\t@ save len\n\tstr\tr12,  [sp,#4*(32+1)]\t@ save inp\n\tstr\tr14,  [sp,#4*(32+0)]\t@ save out\n.Loop_outer_enter:\n\tldr\tr11, [sp,#4*(15)]\n\tldr\tr12,[sp,#4*(12)]\t@ modulo-scheduled load\n\tldr\tr10, [sp,#4*(13)]\n\tldr\tr14,[sp,#4*(14)]\n\tstr\tr11, [sp,#4*(16+15)]\n\tmov\tr11,#10\n\tb\t.Loop\n\n.align\t4\n.Loop:\n\tsubs\tr11,r11,#1\n\tadd\tr0,r0,r4\n\tmov\tr12,r12,ror#16\n\tadd\tr1,r1,r5\n\tmov\tr10,r10,ror#16\n\teor\tr12,r12,r0,ror#16\n\teor\tr10,r10,r1,ror#16\n\tadd\tr8,r8,r12\n\tmov\tr4,r4,ror#20\n\tadd\tr9,r9,r10\n\tmov\tr5,r5,ror#20\n\teor\tr4,r4,r8,ror#20\n\teor\tr5,r5,r9,ror#20\n\tadd\tr0,r0,r4\n\tmov\tr12,r12,ror#24\n\tadd\tr1,r1,r5\n\tmov\tr10,r10,ror#24\n\teor\tr12,r12,r0,ror#24\n\teor\tr10,r10,r1,ror#24\n\tadd\tr8,r8,r12\n\tmov\tr4,r4,ror#25\n\tadd\tr9,r9,r10\n\tmov\tr5,r5,ror#25\n\tstr\tr10,[sp,#4*(16+13)]\n\tldr\tr10,[sp,#4*(16+15)]\n\teor\tr4,r4,r8,ror#25\n\teor\tr5,r5,r9,ror#25\n\tstr\tr8,[sp,#4*(16+8)]\n\tldr\tr8,[sp,#4*(16+10)]\n\tadd\tr2,r2,r6\n\tmov\tr14,r14,ror#16\n\tstr\tr9,[sp,#4*(16+9)]\n\tldr\tr9,[sp,#4*(16+11)]\n\tadd\tr3,r3,r7\n\tmov\tr10,r10,ror#16\n\teor\tr14,r14,r2,ror#16\n\teor\tr10,r10,r3,ror#16\n\tadd\tr8,r8,r14\n\tmov\tr6,r6,ror#20\n\tadd\tr9,r9,r10\n\tmov\tr7,r7,ror#20\n\teor\tr6,r6,r8,ror#20\n\teor\tr7,r7,r9,ror#20\n\tadd\tr2,r2,r6\n\tmov\tr14,r14,ror#24", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:4", "text": "eor\tr4,r4,r8,ror#25\n\teor\tr5,r5,r9,ror#25\n\tstr\tr8,[sp,#4*(16+8)]\n\tldr\tr8,[sp,#4*(16+10)]\n\tadd\tr2,r2,r6\n\tmov\tr14,r14,ror#16\n\tstr\tr9,[sp,#4*(16+9)]\n\tldr\tr9,[sp,#4*(16+11)]\n\tadd\tr3,r3,r7\n\tmov\tr10,r10,ror#16\n\teor\tr14,r14,r2,ror#16\n\teor\tr10,r10,r3,ror#16\n\tadd\tr8,r8,r14\n\tmov\tr6,r6,ror#20\n\tadd\tr9,r9,r10\n\tmov\tr7,r7,ror#20\n\teor\tr6,r6,r8,ror#20\n\teor\tr7,r7,r9,ror#20\n\tadd\tr2,r2,r6\n\tmov\tr14,r14,ror#24\n\tadd\tr3,r3,r7\n\tmov\tr10,r10,ror#24\n\teor\tr14,r14,r2,ror#24\n\teor\tr10,r10,r3,ror#24\n\tadd\tr8,r8,r14\n\tmov\tr6,r6,ror#25\n\tadd\tr9,r9,r10\n\tmov\tr7,r7,ror#25\n\teor\tr6,r6,r8,ror#25\n\teor\tr7,r7,r9,ror#25\n\tadd\tr0,r0,r5\n\tmov\tr10,r10,ror#16\n\tadd\tr1,r1,r6\n\tmov\tr12,r12,ror#16\n\teor\tr10,r10,r0,ror#16\n\teor\tr12,r12,r1,ror#16\n\tadd\tr8,r8,r10\n\tmov\tr5,r5,ror#20\n\tadd\tr9,r9,r12\n\tmov\tr6,r6,ror#20\n\teor\tr5,r5,r8,ror#20\n\teor\tr6,r6,r9,ror#20\n\tadd\tr0,r0,r5\n\tmov\tr10,r10,ror#24\n\tadd\tr1,r1,r6\n\tmov\tr12,r12,ror#24\n\teor\tr10,r10,r0,ror#24\n\teor\tr12,r12,r1,ror#24\n\tadd\tr8,r8,r10\n\tmov\tr5,r5,ror#25\n\tstr\tr10,[sp,#4*(16+15)]\n\tldr\tr10,[sp,#4*(16+13)]\n\tadd\tr9,r9,r12\n\tmov\tr6,r6,ror#25\n\teor\tr5,r5,r8,ror#25\n\teor\tr6,r6,r9,ror#25\n\tstr\tr8,[sp,#4*(16+10)]\n\tldr\tr8,[sp,#4*(16+8)]\n\tadd\tr2,r2,r7\n\tmov\tr10,r10,ror#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:5", "text": "eor\tr5,r5,r8,ror#20\n\teor\tr6,r6,r9,ror#20\n\tadd\tr0,r0,r5\n\tmov\tr10,r10,ror#24\n\tadd\tr1,r1,r6\n\tmov\tr12,r12,ror#24\n\teor\tr10,r10,r0,ror#24\n\teor\tr12,r12,r1,ror#24\n\tadd\tr8,r8,r10\n\tmov\tr5,r5,ror#25\n\tstr\tr10,[sp,#4*(16+15)]\n\tldr\tr10,[sp,#4*(16+13)]\n\tadd\tr9,r9,r12\n\tmov\tr6,r6,ror#25\n\teor\tr5,r5,r8,ror#25\n\teor\tr6,r6,r9,ror#25\n\tstr\tr8,[sp,#4*(16+10)]\n\tldr\tr8,[sp,#4*(16+8)]\n\tadd\tr2,r2,r7\n\tmov\tr10,r10,ror#16\n\tstr\tr9,[sp,#4*(16+11)]\n\tldr\tr9,[sp,#4*(16+9)]\n\tadd\tr3,r3,r4\n\tmov\tr14,r14,ror#16\n\teor\tr10,r10,r2,ror#16\n\teor\tr14,r14,r3,ror#16\n\tadd\tr8,r8,r10\n\tmov\tr7,r7,ror#20\n\tadd\tr9,r9,r14\n\tmov\tr4,r4,ror#20\n\teor\tr7,r7,r8,ror#20\n\teor\tr4,r4,r9,ror#20\n\tadd\tr2,r2,r7\n\tmov\tr10,r10,ror#24\n\tadd\tr3,r3,r4\n\tmov\tr14,r14,ror#24\n\teor\tr10,r10,r2,ror#24\n\teor\tr14,r14,r3,ror#24\n\tadd\tr8,r8,r10\n\tmov\tr7,r7,ror#25\n\tadd\tr9,r9,r14\n\tmov\tr4,r4,ror#25\n\teor\tr7,r7,r8,ror#25\n\teor\tr4,r4,r9,ror#25\n\tbne\t.Loop\n\n\tldr\tr11,[sp,#4*(32+2)]\t@ load len\n\n\tstr\tr8, [sp,#4*(16+8)]\t@ modulo-scheduled store\n\tstr\tr9, [sp,#4*(16+9)]\n\tstr\tr12,[sp,#4*(16+12)]\n\tstr\tr10, [sp,#4*(16+13)]\n\tstr\tr14,[sp,#4*(16+14)]\n\n\t@ at this point we have first half of 512-bit result in\n\t@ rx and second half at sp+4*(16+8)\n\n\tcmp\tr11,#64\t\t@ done yet?\n#ifdef\t__thumb2__\n\titete\tlo", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:6", "text": "add\tr9,r9,r14\n\tmov\tr4,r4,ror#25\n\teor\tr7,r7,r8,ror#25\n\teor\tr4,r4,r9,ror#25\n\tbne\t.Loop\n\n\tldr\tr11,[sp,#4*(32+2)]\t@ load len\n\n\tstr\tr8, [sp,#4*(16+8)]\t@ modulo-scheduled store\n\tstr\tr9, [sp,#4*(16+9)]\n\tstr\tr12,[sp,#4*(16+12)]\n\tstr\tr10, [sp,#4*(16+13)]\n\tstr\tr14,[sp,#4*(16+14)]\n\n\t@ at this point we have first half of 512-bit result in\n\t@ rx and second half at sp+4*(16+8)\n\n\tcmp\tr11,#64\t\t@ done yet?\n#ifdef\t__thumb2__\n\titete\tlo\n#endif\n\taddlo\tr12,sp,#4*(0)\t\t@ shortcut or ...\n\tldrhs\tr12,[sp,#4*(32+1)]\t@ ... load inp\n\taddlo\tr14,sp,#4*(0)\t\t@ shortcut or ...\n\tldrhs\tr14,[sp,#4*(32+0)]\t@ ... load out\n\n\tldr\tr8,[sp,#4*(0)]\t@ load key material\n\tldr\tr9,[sp,#4*(1)]\n\n#if __ARM_ARCH__>=6 || !defined(__ARMEB__)\n# if __ARM_ARCH__<7\n\torr\tr10,r12,r14\n\ttst\tr10,#3\t\t@ are input and output aligned?\n\tldr\tr10,[sp,#4*(2)]\n\tbne\t.Lunaligned\n\tcmp\tr11,#64\t\t@ restore flags\n# else\n\tldr\tr10,[sp,#4*(2)]\n# endif\n\tldr\tr11,[sp,#4*(3)]\n\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tadd\tr1,r1,r9\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:7", "text": "add\tr0,r0,r8\t@ accumulate key material\n\tadd\tr1,r1,r9\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr0,r0,r8\t@ xor with input\n\teorhs\tr1,r1,r9\n\tadd\tr8,sp,#4*(4)\n\tstr\tr0,[r14],#16\t\t@ store output\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr2,r2,r10\n\teorhs\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr1,[r14,#-12]\n\tstr\tr2,[r14,#-8]\n\tstr\tr3,[r14,#-4]\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr5,r5,r9\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n# ifdef\t__thumb2__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:8", "text": "add\tr5,r5,r9\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr4,r4,r8\n\teorhs\tr5,r5,r9\n\tadd\tr8,sp,#4*(8)\n\tstr\tr4,[r14],#16\t\t@ store output\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr6,r6,r10\n\teorhs\tr7,r7,r11\n\tstr\tr5,[r14,#-12]\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr6,[r14,#-8]\n\tadd\tr0,sp,#4*(16+8)\n\tstr\tr7,[r14,#-4]\n\n\tldmia\tr0,{r0,r1,r2,r3,r4,r5,r6,r7}\t@ load second half\n\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tadd\tr1,r1,r9\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\tstrhi\tr10,[sp,#4*(16+10)]\t@ copy \"rx\" while at it\n\tstrhi\tr11,[sp,#4*(16+11)]\t@ copy \"rx\" while at it\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr0,r0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:9", "text": "add\tr1,r1,r9\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\tstrhi\tr10,[sp,#4*(16+10)]\t@ copy \"rx\" while at it\n\tstrhi\tr11,[sp,#4*(16+11)]\t@ copy \"rx\" while at it\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr0,r0,r8\n\teorhs\tr1,r1,r9\n\tadd\tr8,sp,#4*(12)\n\tstr\tr0,[r14],#16\t\t@ store output\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr2,r2,r10\n\teorhs\tr3,r3,r11\n\tstr\tr1,[r14,#-12]\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr2,[r14,#-8]\n\tstr\tr3,[r14,#-4]\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr5,r5,r9\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\taddhi\tr8,r8,#1\t\t@ next counter value\n\tstrhi\tr8,[sp,#4*(12)]\t@ save next counter value\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:10", "text": "add\tr4,r4,r8\t@ accumulate key material\n\tadd\tr5,r5,r9\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\taddhi\tr8,r8,#1\t\t@ next counter value\n\tstrhi\tr8,[sp,#4*(12)]\t@ save next counter value\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr8,[r12],#16\t\t@ load input\n\tldrhs\tr9,[r12,#-12]\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhs\tr10,[r12,#-8]\n\tldrhs\tr11,[r12,#-4]\n# if __ARM_ARCH__>=6 && defined(__ARMEB__)\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr4,r4,r8\n\teorhs\tr5,r5,r9\n# ifdef\t__thumb2__\n\tit\tne\n# endif\n\tldrne\tr8,[sp,#4*(32+2)]\t@ re-load len\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\teorhs\tr6,r6,r10\n\teorhs\tr7,r7,r11\n\tstr\tr4,[r14],#16\t\t@ store output\n\tstr\tr5,[r14,#-12]\n# ifdef\t__thumb2__\n\tit\ths\n# endif\n\tsubhs\tr11,r8,#64\t\t@ len-=64\n\tstr\tr6,[r14,#-8]\n\tstr\tr7,[r14,#-4]\n\tbhi\t.Loop_outer\n\n\tbeq\t.Ldone\n# if __ARM_ARCH__<7\n\tb\t.Ltail\n\n.align\t4\n.Lunaligned:@ unaligned endian-neutral path\n\tcmp\tr11,#64\t\t@ restore flags\n# endif\n#endif\n#if __ARM_ARCH__<7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:11", "text": "str\tr4,[r14],#16\t\t@ store output\n\tstr\tr5,[r14,#-12]\n# ifdef\t__thumb2__\n\tit\ths\n# endif\n\tsubhs\tr11,r8,#64\t\t@ len-=64\n\tstr\tr6,[r14,#-8]\n\tstr\tr7,[r14,#-4]\n\tbhi\t.Loop_outer\n\n\tbeq\t.Ldone\n# if __ARM_ARCH__<7\n\tb\t.Ltail\n\n.align\t4\n.Lunaligned:@ unaligned endian-neutral path\n\tcmp\tr11,#64\t\t@ restore flags\n# endif\n#endif\n#if __ARM_ARCH__<7\n\tldr\tr11,[sp,#4*(3)]\n\tadd\tr0,r0,r8\t\t@ accumulate key material\n\tadd\tr1,r1,r9\n\tadd\tr2,r2,r10\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr8,r8,r8\t\t@ zero or ...\n\tldrhsb\tr8,[r12],#16\t\t\t@ ... load input\n\teorlo\tr9,r9,r9\n\tldrhsb\tr9,[r12,#-12]\n\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr10,r10,r10\n\tldrhsb\tr10,[r12,#-8]\n\teorlo\tr11,r11,r11\n\tldrhsb\tr11,[r12,#-4]\n\n\teor\tr0,r8,r0\t\t@ xor with input (or zero)\n\teor\tr1,r9,r1\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-15]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-11]\n\teor\tr2,r10,r2\n\tstrb\tr0,[r14],#16\t\t@ store output\n\teor\tr3,r11,r3\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-7]\n\tldrhsb\tr11,[r12,#-3]\n\tstrb\tr1,[r14,#-12]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr2,[r14,#-8]\n\teor\tr1,r9,r1,lsr#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:12", "text": "eor\tr0,r8,r0\t\t@ xor with input (or zero)\n\teor\tr1,r9,r1\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-15]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-11]\n\teor\tr2,r10,r2\n\tstrb\tr0,[r14],#16\t\t@ store output\n\teor\tr3,r11,r3\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-7]\n\tldrhsb\tr11,[r12,#-3]\n\tstrb\tr1,[r14,#-12]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr2,[r14,#-8]\n\teor\tr1,r9,r1,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-14]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-10]\n\tstrb\tr3,[r14,#-4]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr0,[r14,#-15]\n\teor\tr3,r11,r3,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-6]\n\tldrhsb\tr11,[r12,#-2]\n\tstrb\tr1,[r14,#-11]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr2,[r14,#-7]\n\teor\tr1,r9,r1,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr3,[r14,#-3]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr0,[r14,#-14]\n\teor\tr3,r11,r3,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-5]\n\tldrhsb\tr11,[r12,#-1]\n\tstrb\tr1,[r14,#-10]\n\tstrb\tr2,[r14,#-6]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr3,[r14,#-2]\n\teor\tr1,r9,r1,lsr#8\n\tstrb\tr0,[r14,#-13]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr1,[r14,#-9]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:13", "text": "# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr3,[r14,#-3]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr0,[r14,#-14]\n\teor\tr3,r11,r3,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-5]\n\tldrhsb\tr11,[r12,#-1]\n\tstrb\tr1,[r14,#-10]\n\tstrb\tr2,[r14,#-6]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr3,[r14,#-2]\n\teor\tr1,r9,r1,lsr#8\n\tstrb\tr0,[r14,#-13]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr1,[r14,#-9]\n\teor\tr3,r11,r3,lsr#8\n\tstrb\tr2,[r14,#-5]\n\tstrb\tr3,[r14,#-1]\n\tadd\tr8,sp,#4*(4+0)\n\tldmia\tr8,{r8,r9,r10,r11}\t\t@ load key material\n\tadd\tr0,sp,#4*(16+8)\n\tadd\tr4,r4,r8\t\t@ accumulate key material\n\tadd\tr5,r5,r9\n\tadd\tr6,r6,r10\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr8,r8,r8\t\t@ zero or ...\n\tldrhsb\tr8,[r12],#16\t\t\t@ ... load input\n\teorlo\tr9,r9,r9\n\tldrhsb\tr9,[r12,#-12]\n\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr10,r10,r10\n\tldrhsb\tr10,[r12,#-8]\n\teorlo\tr11,r11,r11\n\tldrhsb\tr11,[r12,#-4]\n\n\teor\tr4,r8,r4\t\t@ xor with input (or zero)\n\teor\tr5,r9,r5\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-15]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-11]\n\teor\tr6,r10,r6\n\tstrb\tr4,[r14],#16\t\t@ store output\n\teor\tr7,r11,r7\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-7]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:14", "text": "# endif\n\teorlo\tr10,r10,r10\n\tldrhsb\tr10,[r12,#-8]\n\teorlo\tr11,r11,r11\n\tldrhsb\tr11,[r12,#-4]\n\n\teor\tr4,r8,r4\t\t@ xor with input (or zero)\n\teor\tr5,r9,r5\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-15]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-11]\n\teor\tr6,r10,r6\n\tstrb\tr4,[r14],#16\t\t@ store output\n\teor\tr7,r11,r7\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-7]\n\tldrhsb\tr11,[r12,#-3]\n\tstrb\tr5,[r14,#-12]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr6,[r14,#-8]\n\teor\tr5,r9,r5,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-14]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-10]\n\tstrb\tr7,[r14,#-4]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr4,[r14,#-15]\n\teor\tr7,r11,r7,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-6]\n\tldrhsb\tr11,[r12,#-2]\n\tstrb\tr5,[r14,#-11]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr6,[r14,#-7]\n\teor\tr5,r9,r5,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr7,[r14,#-3]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr4,[r14,#-14]\n\teor\tr7,r11,r7,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-5]\n\tldrhsb\tr11,[r12,#-1]\n\tstrb\tr5,[r14,#-10]\n\tstrb\tr6,[r14,#-6]\n\teor\tr4,r8,r4,lsr#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:15", "text": "eor\tr4,r8,r4,lsr#8\n\tstrb\tr6,[r14,#-7]\n\teor\tr5,r9,r5,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr7,[r14,#-3]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr4,[r14,#-14]\n\teor\tr7,r11,r7,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-5]\n\tldrhsb\tr11,[r12,#-1]\n\tstrb\tr5,[r14,#-10]\n\tstrb\tr6,[r14,#-6]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr7,[r14,#-2]\n\teor\tr5,r9,r5,lsr#8\n\tstrb\tr4,[r14,#-13]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr5,[r14,#-9]\n\teor\tr7,r11,r7,lsr#8\n\tstrb\tr6,[r14,#-5]\n\tstrb\tr7,[r14,#-1]\n\tadd\tr8,sp,#4*(4+4)\n\tldmia\tr8,{r8,r9,r10,r11}\t\t@ load key material\n\tldmia\tr0,{r0,r1,r2,r3,r4,r5,r6,r7}\t\t@ load second half\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\tstrhi\tr10,[sp,#4*(16+10)]\t\t@ copy \"rx\"\n\tstrhi\tr11,[sp,#4*(16+11)]\t\t@ copy \"rx\"\n\tadd\tr0,r0,r8\t\t@ accumulate key material\n\tadd\tr1,r1,r9\n\tadd\tr2,r2,r10\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr8,r8,r8\t\t@ zero or ...\n\tldrhsb\tr8,[r12],#16\t\t\t@ ... load input\n\teorlo\tr9,r9,r9\n\tldrhsb\tr9,[r12,#-12]\n\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr10,r10,r10\n\tldrhsb\tr10,[r12,#-8]\n\teorlo\tr11,r11,r11\n\tldrhsb\tr11,[r12,#-4]\n\n\teor\tr0,r8,r0\t\t@ xor with input (or zero)\n\teor\tr1,r9,r1\n# ifdef\t__thumb2__\n\titt\ths", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:16", "text": "itete\tlo\n# endif\n\teorlo\tr8,r8,r8\t\t@ zero or ...\n\tldrhsb\tr8,[r12],#16\t\t\t@ ... load input\n\teorlo\tr9,r9,r9\n\tldrhsb\tr9,[r12,#-12]\n\n\tadd\tr3,r3,r11\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr10,r10,r10\n\tldrhsb\tr10,[r12,#-8]\n\teorlo\tr11,r11,r11\n\tldrhsb\tr11,[r12,#-4]\n\n\teor\tr0,r8,r0\t\t@ xor with input (or zero)\n\teor\tr1,r9,r1\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-15]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-11]\n\teor\tr2,r10,r2\n\tstrb\tr0,[r14],#16\t\t@ store output\n\teor\tr3,r11,r3\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-7]\n\tldrhsb\tr11,[r12,#-3]\n\tstrb\tr1,[r14,#-12]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr2,[r14,#-8]\n\teor\tr1,r9,r1,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-14]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-10]\n\tstrb\tr3,[r14,#-4]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr0,[r14,#-15]\n\teor\tr3,r11,r3,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-6]\n\tldrhsb\tr11,[r12,#-2]\n\tstrb\tr1,[r14,#-11]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr2,[r14,#-7]\n\teor\tr1,r9,r1,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr3,[r14,#-3]\n\teor\tr2,r10,r2,lsr#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:17", "text": "strb\tr3,[r14,#-4]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr0,[r14,#-15]\n\teor\tr3,r11,r3,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-6]\n\tldrhsb\tr11,[r12,#-2]\n\tstrb\tr1,[r14,#-11]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr2,[r14,#-7]\n\teor\tr1,r9,r1,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr3,[r14,#-3]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr0,[r14,#-14]\n\teor\tr3,r11,r3,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-5]\n\tldrhsb\tr11,[r12,#-1]\n\tstrb\tr1,[r14,#-10]\n\tstrb\tr2,[r14,#-6]\n\teor\tr0,r8,r0,lsr#8\n\tstrb\tr3,[r14,#-2]\n\teor\tr1,r9,r1,lsr#8\n\tstrb\tr0,[r14,#-13]\n\teor\tr2,r10,r2,lsr#8\n\tstrb\tr1,[r14,#-9]\n\teor\tr3,r11,r3,lsr#8\n\tstrb\tr2,[r14,#-5]\n\tstrb\tr3,[r14,#-1]\n\tadd\tr8,sp,#4*(4+8)\n\tldmia\tr8,{r8,r9,r10,r11}\t\t@ load key material\n\tadd\tr4,r4,r8\t\t@ accumulate key material\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\taddhi\tr8,r8,#1\t\t\t@ next counter value\n\tstrhi\tr8,[sp,#4*(12)]\t\t@ save next counter value\n\tadd\tr5,r5,r9\n\tadd\tr6,r6,r10\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr8,r8,r8\t\t@ zero or ...\n\tldrhsb\tr8,[r12],#16\t\t\t@ ... load input\n\teorlo\tr9,r9,r9\n\tldrhsb\tr9,[r12,#-12]\n\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titete\tlo\n# endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:18", "text": "add\tr4,r4,r8\t\t@ accumulate key material\n# ifdef\t__thumb2__\n\titt\thi\n# endif\n\taddhi\tr8,r8,#1\t\t\t@ next counter value\n\tstrhi\tr8,[sp,#4*(12)]\t\t@ save next counter value\n\tadd\tr5,r5,r9\n\tadd\tr6,r6,r10\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr8,r8,r8\t\t@ zero or ...\n\tldrhsb\tr8,[r12],#16\t\t\t@ ... load input\n\teorlo\tr9,r9,r9\n\tldrhsb\tr9,[r12,#-12]\n\n\tadd\tr7,r7,r11\n# ifdef\t__thumb2__\n\titete\tlo\n# endif\n\teorlo\tr10,r10,r10\n\tldrhsb\tr10,[r12,#-8]\n\teorlo\tr11,r11,r11\n\tldrhsb\tr11,[r12,#-4]\n\n\teor\tr4,r8,r4\t\t@ xor with input (or zero)\n\teor\tr5,r9,r5\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-15]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-11]\n\teor\tr6,r10,r6\n\tstrb\tr4,[r14],#16\t\t@ store output\n\teor\tr7,r11,r7\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-7]\n\tldrhsb\tr11,[r12,#-3]\n\tstrb\tr5,[r14,#-12]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr6,[r14,#-8]\n\teor\tr5,r9,r5,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-14]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-10]\n\tstrb\tr7,[r14,#-4]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr4,[r14,#-15]\n\teor\tr7,r11,r7,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-6]\n\tldrhsb\tr11,[r12,#-2]\n\tstrb\tr5,[r14,#-11]\n\teor\tr4,r8,r4,lsr#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:19", "text": "strb\tr5,[r14,#-12]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr6,[r14,#-8]\n\teor\tr5,r9,r5,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-14]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-10]\n\tstrb\tr7,[r14,#-4]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr4,[r14,#-15]\n\teor\tr7,r11,r7,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-6]\n\tldrhsb\tr11,[r12,#-2]\n\tstrb\tr5,[r14,#-11]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr6,[r14,#-7]\n\teor\tr5,r9,r5,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr8,[r12,#-13]\t\t@ load more input\n\tldrhsb\tr9,[r12,#-9]\n\tstrb\tr7,[r14,#-3]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr4,[r14,#-14]\n\teor\tr7,r11,r7,lsr#8\n# ifdef\t__thumb2__\n\titt\ths\n# endif\n\tldrhsb\tr10,[r12,#-5]\n\tldrhsb\tr11,[r12,#-1]\n\tstrb\tr5,[r14,#-10]\n\tstrb\tr6,[r14,#-6]\n\teor\tr4,r8,r4,lsr#8\n\tstrb\tr7,[r14,#-2]\n\teor\tr5,r9,r5,lsr#8\n\tstrb\tr4,[r14,#-13]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr5,[r14,#-9]\n\teor\tr7,r11,r7,lsr#8\n\tstrb\tr6,[r14,#-5]\n\tstrb\tr7,[r14,#-1]\n# ifdef\t__thumb2__\n\tit\tne\n# endif\n\tldrne\tr8,[sp,#4*(32+2)]\t\t@ re-load len\n# ifdef\t__thumb2__\n\tit\ths\n# endif\n\tsubhs\tr11,r8,#64\t\t\t@ len-=64\n\tbhi\t.Loop_outer\n\n\tbeq\t.Ldone\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:20", "text": "eor\tr5,r9,r5,lsr#8\n\tstrb\tr4,[r14,#-13]\n\teor\tr6,r10,r6,lsr#8\n\tstrb\tr5,[r14,#-9]\n\teor\tr7,r11,r7,lsr#8\n\tstrb\tr6,[r14,#-5]\n\tstrb\tr7,[r14,#-1]\n# ifdef\t__thumb2__\n\tit\tne\n# endif\n\tldrne\tr8,[sp,#4*(32+2)]\t\t@ re-load len\n# ifdef\t__thumb2__\n\tit\ths\n# endif\n\tsubhs\tr11,r8,#64\t\t\t@ len-=64\n\tbhi\t.Loop_outer\n\n\tbeq\t.Ldone\n#endif\n\n.Ltail:\n\tldr\tr12,[sp,#4*(32+1)]\t@ load inp\n\tadd\tr9,sp,#4*(0)\n\tldr\tr14,[sp,#4*(32+0)]\t@ load out\n\n.Loop_tail:\n\tldrb\tr10,[r9],#1\t@ read buffer on stack\n\tldrb\tr11,[r12],#1\t\t@ read input\n\tsubs\tr8,r8,#1\n\teor\tr11,r11,r10\n\tstrb\tr11,[r14],#1\t\t@ store output\n\tbne\t.Loop_tail\n\n.Ldone:\n\tadd\tsp,sp,#4*(32+3)\n.Lno_data:\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,pc}\n.size\tChaCha20_ctr32,.-ChaCha20_ctr32\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.type\tChaCha20_neon,%function\n.align\t5\nChaCha20_neon:\n\tldr\tr12,[sp,#0]\t\t@ pull pointer to counter and nonce\n\tstmdb\tsp!,{r0,r1,r2,r4-r11,lr}\n.LChaCha20_neon:\n\tadr\tr14,.Lsigma\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI spec says so\n\tstmdb\tsp!,{r0,r1,r2,r3}\n\n\tvld1.32\t{q1,q2},[r3]\t\t@ load key\n\tldmia\tr3,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ load key\n\n\tsub\tsp,sp,#4*(16+16)\n\tvld1.32\t{q3},[r12]\t\t@ load counter and nonce\n\tadd\tr12,sp,#4*8\n\tldmia\tr14,{r0,r1,r2,r3}\t\t@ load sigma\n\tvld1.32\t{q0},[r14]!\t\t@ load sigma", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:21", "text": ".fpu\tneon\n\n.type\tChaCha20_neon,%function\n.align\t5\nChaCha20_neon:\n\tldr\tr12,[sp,#0]\t\t@ pull pointer to counter and nonce\n\tstmdb\tsp!,{r0,r1,r2,r4-r11,lr}\n.LChaCha20_neon:\n\tadr\tr14,.Lsigma\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI spec says so\n\tstmdb\tsp!,{r0,r1,r2,r3}\n\n\tvld1.32\t{q1,q2},[r3]\t\t@ load key\n\tldmia\tr3,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ load key\n\n\tsub\tsp,sp,#4*(16+16)\n\tvld1.32\t{q3},[r12]\t\t@ load counter and nonce\n\tadd\tr12,sp,#4*8\n\tldmia\tr14,{r0,r1,r2,r3}\t\t@ load sigma\n\tvld1.32\t{q0},[r14]!\t\t@ load sigma\n\tvld1.32\t{q12},[r14]\t\t@ one\n\tvst1.32\t{q2,q3},[r12]\t\t@ copy 1/2key|counter|nonce\n\tvst1.32\t{q0,q1},[sp]\t\t@ copy sigma|1/2key\n\n\tstr\tr10,[sp,#4*(16+10)]\t@ off-load \"rx\"\n\tstr\tr11,[sp,#4*(16+11)]\t@ off-load \"rx\"\n\tvshl.i32\td26,d24,#1\t@ two\n\tvstr\td24,[sp,#4*(16+0)]\n\tvshl.i32\td28,d24,#2\t@ four\n\tvstr\td26,[sp,#4*(16+2)]\n\tvmov\tq4,q0\n\tvstr\td28,[sp,#4*(16+4)]\n\tvmov\tq8,q0\n\tvmov\tq5,q1\n\tvmov\tq9,q1\n\tb\t.Loop_neon_enter\n\n.align\t4\n.Loop_neon_outer:\n\tldmia\tsp,{r0,r1,r2,r3,r4,r5,r6,r7,r8,r9}\t\t@ load key material\n\tcmp\tr11,#64*2\t\t@ if len<=64*2\n\tbls\t.Lbreak_neon\t\t@ switch to integer-only\n\tvmov\tq4,q0\n\tstr\tr11,[sp,#4*(32+2)]\t@ save len\n\tvmov\tq8,q0\n\tstr\tr12,  [sp,#4*(32+1)]\t@ save inp\n\tvmov\tq5,q1\n\tstr\tr14,  [sp,#4*(32+0)]\t@ save out\n\tvmov\tq9,q1\n.Loop_neon_enter:\n\tldr\tr11, [sp,#4*(15)]\n\tvadd.i32\tq7,q3,q12\t\t@ counter+1\n\tldr\tr12,[sp,#4*(12)]\t@ modulo-scheduled load\n\tvmov\tq6,q2\n\tldr\tr10, [sp,#4*(13)]\n\tvmov\tq10,q2\n\tldr\tr14,[sp,#4*(14)]\n\tvadd.i32\tq11,q7,q12\t\t@ counter+2\n\tstr\tr11, [sp,#4*(16+15)]\n\tmov\tr11,#10", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:22", "text": "cmp\tr11,#64*2\t\t@ if len<=64*2\n\tbls\t.Lbreak_neon\t\t@ switch to integer-only\n\tvmov\tq4,q0\n\tstr\tr11,[sp,#4*(32+2)]\t@ save len\n\tvmov\tq8,q0\n\tstr\tr12,  [sp,#4*(32+1)]\t@ save inp\n\tvmov\tq5,q1\n\tstr\tr14,  [sp,#4*(32+0)]\t@ save out\n\tvmov\tq9,q1\n.Loop_neon_enter:\n\tldr\tr11, [sp,#4*(15)]\n\tvadd.i32\tq7,q3,q12\t\t@ counter+1\n\tldr\tr12,[sp,#4*(12)]\t@ modulo-scheduled load\n\tvmov\tq6,q2\n\tldr\tr10, [sp,#4*(13)]\n\tvmov\tq10,q2\n\tldr\tr14,[sp,#4*(14)]\n\tvadd.i32\tq11,q7,q12\t\t@ counter+2\n\tstr\tr11, [sp,#4*(16+15)]\n\tmov\tr11,#10\n\tadd\tr12,r12,#3\t@ counter+3\n\tb\t.Loop_neon\n\n.align\t4\n.Loop_neon:\n\tsubs\tr11,r11,#1\n\tvadd.i32\tq0,q0,q1\n\tadd\tr0,r0,r4\n\tvadd.i32\tq4,q4,q5\n\tmov\tr12,r12,ror#16\n\tvadd.i32\tq8,q8,q9\n\tadd\tr1,r1,r5\n\tveor\tq3,q3,q0\n\tmov\tr10,r10,ror#16\n\tveor\tq7,q7,q4\n\teor\tr12,r12,r0,ror#16\n\tveor\tq11,q11,q8\n\teor\tr10,r10,r1,ror#16\n\tvrev32.16\tq3,q3\n\tadd\tr8,r8,r12\n\tvrev32.16\tq7,q7\n\tmov\tr4,r4,ror#20\n\tvrev32.16\tq11,q11\n\tadd\tr9,r9,r10\n\tvadd.i32\tq2,q2,q3\n\tmov\tr5,r5,ror#20\n\tvadd.i32\tq6,q6,q7\n\teor\tr4,r4,r8,ror#20\n\tvadd.i32\tq10,q10,q11\n\teor\tr5,r5,r9,ror#20\n\tveor\tq12,q1,q2\n\tadd\tr0,r0,r4\n\tveor\tq13,q5,q6\n\tmov\tr12,r12,ror#24\n\tveor\tq14,q9,q10\n\tadd\tr1,r1,r5\n\tvshr.u32\tq1,q12,#20\n\tmov\tr10,r10,ror#24\n\tvshr.u32\tq5,q13,#20\n\teor\tr12,r12,r0,ror#24", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:23", "text": "vrev32.16\tq7,q7\n\tmov\tr4,r4,ror#20\n\tvrev32.16\tq11,q11\n\tadd\tr9,r9,r10\n\tvadd.i32\tq2,q2,q3\n\tmov\tr5,r5,ror#20\n\tvadd.i32\tq6,q6,q7\n\teor\tr4,r4,r8,ror#20\n\tvadd.i32\tq10,q10,q11\n\teor\tr5,r5,r9,ror#20\n\tveor\tq12,q1,q2\n\tadd\tr0,r0,r4\n\tveor\tq13,q5,q6\n\tmov\tr12,r12,ror#24\n\tveor\tq14,q9,q10\n\tadd\tr1,r1,r5\n\tvshr.u32\tq1,q12,#20\n\tmov\tr10,r10,ror#24\n\tvshr.u32\tq5,q13,#20\n\teor\tr12,r12,r0,ror#24\n\tvshr.u32\tq9,q14,#20\n\teor\tr10,r10,r1,ror#24\n\tvsli.32\tq1,q12,#12\n\tadd\tr8,r8,r12\n\tvsli.32\tq5,q13,#12\n\tmov\tr4,r4,ror#25\n\tvsli.32\tq9,q14,#12\n\tadd\tr9,r9,r10\n\tvadd.i32\tq0,q0,q1\n\tmov\tr5,r5,ror#25\n\tvadd.i32\tq4,q4,q5\n\tstr\tr10,[sp,#4*(16+13)]\n\tvadd.i32\tq8,q8,q9\n\tldr\tr10,[sp,#4*(16+15)]\n\tveor\tq12,q3,q0\n\teor\tr4,r4,r8,ror#25\n\tveor\tq13,q7,q4\n\teor\tr5,r5,r9,ror#25\n\tveor\tq14,q11,q8\n\tstr\tr8,[sp,#4*(16+8)]\n\tvshr.u32\tq3,q12,#24\n\tldr\tr8,[sp,#4*(16+10)]\n\tvshr.u32\tq7,q13,#24\n\tadd\tr2,r2,r6\n\tvshr.u32\tq11,q14,#24\n\tmov\tr14,r14,ror#16\n\tvsli.32\tq3,q12,#8\n\tstr\tr9,[sp,#4*(16+9)]\n\tvsli.32\tq7,q13,#8\n\tldr\tr9,[sp,#4*(16+11)]\n\tvsli.32\tq11,q14,#8\n\tadd\tr3,r3,r7\n\tvadd.i32\tq2,q2,q3\n\tmov\tr10,r10,ror#16\n\tvadd.i32\tq6,q6,q7\n\teor\tr14,r14,r2,ror#16\n\tvadd.i32\tq10,q10,q11\n\teor\tr10,r10,r3,ror#16\n\tveor\tq12,q1,q2\n\tadd\tr8,r8,r14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:24", "text": "vshr.u32\tq3,q12,#24\n\tldr\tr8,[sp,#4*(16+10)]\n\tvshr.u32\tq7,q13,#24\n\tadd\tr2,r2,r6\n\tvshr.u32\tq11,q14,#24\n\tmov\tr14,r14,ror#16\n\tvsli.32\tq3,q12,#8\n\tstr\tr9,[sp,#4*(16+9)]\n\tvsli.32\tq7,q13,#8\n\tldr\tr9,[sp,#4*(16+11)]\n\tvsli.32\tq11,q14,#8\n\tadd\tr3,r3,r7\n\tvadd.i32\tq2,q2,q3\n\tmov\tr10,r10,ror#16\n\tvadd.i32\tq6,q6,q7\n\teor\tr14,r14,r2,ror#16\n\tvadd.i32\tq10,q10,q11\n\teor\tr10,r10,r3,ror#16\n\tveor\tq12,q1,q2\n\tadd\tr8,r8,r14\n\tveor\tq13,q5,q6\n\tmov\tr6,r6,ror#20\n\tveor\tq14,q9,q10\n\tadd\tr9,r9,r10\n\tvshr.u32\tq1,q12,#25\n\tmov\tr7,r7,ror#20\n\tvshr.u32\tq5,q13,#25\n\teor\tr6,r6,r8,ror#20\n\tvshr.u32\tq9,q14,#25\n\teor\tr7,r7,r9,ror#20\n\tvsli.32\tq1,q12,#7\n\tadd\tr2,r2,r6\n\tvsli.32\tq5,q13,#7\n\tmov\tr14,r14,ror#24\n\tvsli.32\tq9,q14,#7\n\tadd\tr3,r3,r7\n\tvext.8\tq2,q2,q2,#8\n\tmov\tr10,r10,ror#24\n\tvext.8\tq6,q6,q6,#8\n\teor\tr14,r14,r2,ror#24\n\tvext.8\tq10,q10,q10,#8\n\teor\tr10,r10,r3,ror#24\n\tvext.8\tq1,q1,q1,#4\n\tadd\tr8,r8,r14\n\tvext.8\tq5,q5,q5,#4\n\tmov\tr6,r6,ror#25\n\tvext.8\tq9,q9,q9,#4\n\tadd\tr9,r9,r10\n\tvext.8\tq3,q3,q3,#12\n\tmov\tr7,r7,ror#25\n\tvext.8\tq7,q7,q7,#12\n\teor\tr6,r6,r8,ror#25\n\tvext.8\tq11,q11,q11,#12\n\teor\tr7,r7,r9,ror#25\n\tvadd.i32\tq0,q0,q1\n\tadd\tr0,r0,r5\n\tvadd.i32\tq4,q4,q5\n\tmov\tr10,r10,ror#16\n\tvadd.i32\tq8,q8,q9\n\tadd\tr1,r1,r6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:25", "text": "vext.8\tq10,q10,q10,#8\n\teor\tr10,r10,r3,ror#24\n\tvext.8\tq1,q1,q1,#4\n\tadd\tr8,r8,r14\n\tvext.8\tq5,q5,q5,#4\n\tmov\tr6,r6,ror#25\n\tvext.8\tq9,q9,q9,#4\n\tadd\tr9,r9,r10\n\tvext.8\tq3,q3,q3,#12\n\tmov\tr7,r7,ror#25\n\tvext.8\tq7,q7,q7,#12\n\teor\tr6,r6,r8,ror#25\n\tvext.8\tq11,q11,q11,#12\n\teor\tr7,r7,r9,ror#25\n\tvadd.i32\tq0,q0,q1\n\tadd\tr0,r0,r5\n\tvadd.i32\tq4,q4,q5\n\tmov\tr10,r10,ror#16\n\tvadd.i32\tq8,q8,q9\n\tadd\tr1,r1,r6\n\tveor\tq3,q3,q0\n\tmov\tr12,r12,ror#16\n\tveor\tq7,q7,q4\n\teor\tr10,r10,r0,ror#16\n\tveor\tq11,q11,q8\n\teor\tr12,r12,r1,ror#16\n\tvrev32.16\tq3,q3\n\tadd\tr8,r8,r10\n\tvrev32.16\tq7,q7\n\tmov\tr5,r5,ror#20\n\tvrev32.16\tq11,q11\n\tadd\tr9,r9,r12\n\tvadd.i32\tq2,q2,q3\n\tmov\tr6,r6,ror#20\n\tvadd.i32\tq6,q6,q7\n\teor\tr5,r5,r8,ror#20\n\tvadd.i32\tq10,q10,q11\n\teor\tr6,r6,r9,ror#20\n\tveor\tq12,q1,q2\n\tadd\tr0,r0,r5\n\tveor\tq13,q5,q6\n\tmov\tr10,r10,ror#24\n\tveor\tq14,q9,q10\n\tadd\tr1,r1,r6\n\tvshr.u32\tq1,q12,#20\n\tmov\tr12,r12,ror#24\n\tvshr.u32\tq5,q13,#20\n\teor\tr10,r10,r0,ror#24\n\tvshr.u32\tq9,q14,#20\n\teor\tr12,r12,r1,ror#24\n\tvsli.32\tq1,q12,#12\n\tadd\tr8,r8,r10\n\tvsli.32\tq5,q13,#12\n\tmov\tr5,r5,ror#25\n\tvsli.32\tq9,q14,#12\n\tstr\tr10,[sp,#4*(16+15)]\n\tvadd.i32\tq0,q0,q1\n\tldr\tr10,[sp,#4*(16+13)]\n\tvadd.i32\tq4,q4,q5\n\tadd\tr9,r9,r12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:26", "text": "veor\tq13,q5,q6\n\tmov\tr10,r10,ror#24\n\tveor\tq14,q9,q10\n\tadd\tr1,r1,r6\n\tvshr.u32\tq1,q12,#20\n\tmov\tr12,r12,ror#24\n\tvshr.u32\tq5,q13,#20\n\teor\tr10,r10,r0,ror#24\n\tvshr.u32\tq9,q14,#20\n\teor\tr12,r12,r1,ror#24\n\tvsli.32\tq1,q12,#12\n\tadd\tr8,r8,r10\n\tvsli.32\tq5,q13,#12\n\tmov\tr5,r5,ror#25\n\tvsli.32\tq9,q14,#12\n\tstr\tr10,[sp,#4*(16+15)]\n\tvadd.i32\tq0,q0,q1\n\tldr\tr10,[sp,#4*(16+13)]\n\tvadd.i32\tq4,q4,q5\n\tadd\tr9,r9,r12\n\tvadd.i32\tq8,q8,q9\n\tmov\tr6,r6,ror#25\n\tveor\tq12,q3,q0\n\teor\tr5,r5,r8,ror#25\n\tveor\tq13,q7,q4\n\teor\tr6,r6,r9,ror#25\n\tveor\tq14,q11,q8\n\tstr\tr8,[sp,#4*(16+10)]\n\tvshr.u32\tq3,q12,#24\n\tldr\tr8,[sp,#4*(16+8)]\n\tvshr.u32\tq7,q13,#24\n\tadd\tr2,r2,r7\n\tvshr.u32\tq11,q14,#24\n\tmov\tr10,r10,ror#16\n\tvsli.32\tq3,q12,#8\n\tstr\tr9,[sp,#4*(16+11)]\n\tvsli.32\tq7,q13,#8\n\tldr\tr9,[sp,#4*(16+9)]\n\tvsli.32\tq11,q14,#8\n\tadd\tr3,r3,r4\n\tvadd.i32\tq2,q2,q3\n\tmov\tr14,r14,ror#16\n\tvadd.i32\tq6,q6,q7\n\teor\tr10,r10,r2,ror#16\n\tvadd.i32\tq10,q10,q11\n\teor\tr14,r14,r3,ror#16\n\tveor\tq12,q1,q2\n\tadd\tr8,r8,r10\n\tveor\tq13,q5,q6\n\tmov\tr7,r7,ror#20\n\tveor\tq14,q9,q10\n\tadd\tr9,r9,r14\n\tvshr.u32\tq1,q12,#25\n\tmov\tr4,r4,ror#20\n\tvshr.u32\tq5,q13,#25\n\teor\tr7,r7,r8,ror#20\n\tvshr.u32\tq9,q14,#25\n\teor\tr4,r4,r9,ror#20\n\tvsli.32\tq1,q12,#7\n\tadd\tr2,r2,r7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:27", "text": "vadd.i32\tq2,q2,q3\n\tmov\tr14,r14,ror#16\n\tvadd.i32\tq6,q6,q7\n\teor\tr10,r10,r2,ror#16\n\tvadd.i32\tq10,q10,q11\n\teor\tr14,r14,r3,ror#16\n\tveor\tq12,q1,q2\n\tadd\tr8,r8,r10\n\tveor\tq13,q5,q6\n\tmov\tr7,r7,ror#20\n\tveor\tq14,q9,q10\n\tadd\tr9,r9,r14\n\tvshr.u32\tq1,q12,#25\n\tmov\tr4,r4,ror#20\n\tvshr.u32\tq5,q13,#25\n\teor\tr7,r7,r8,ror#20\n\tvshr.u32\tq9,q14,#25\n\teor\tr4,r4,r9,ror#20\n\tvsli.32\tq1,q12,#7\n\tadd\tr2,r2,r7\n\tvsli.32\tq5,q13,#7\n\tmov\tr10,r10,ror#24\n\tvsli.32\tq9,q14,#7\n\tadd\tr3,r3,r4\n\tvext.8\tq2,q2,q2,#8\n\tmov\tr14,r14,ror#24\n\tvext.8\tq6,q6,q6,#8\n\teor\tr10,r10,r2,ror#24\n\tvext.8\tq10,q10,q10,#8\n\teor\tr14,r14,r3,ror#24\n\tvext.8\tq1,q1,q1,#12\n\tadd\tr8,r8,r10\n\tvext.8\tq5,q5,q5,#12\n\tmov\tr7,r7,ror#25\n\tvext.8\tq9,q9,q9,#12\n\tadd\tr9,r9,r14\n\tvext.8\tq3,q3,q3,#4\n\tmov\tr4,r4,ror#25\n\tvext.8\tq7,q7,q7,#4\n\teor\tr7,r7,r8,ror#25\n\tvext.8\tq11,q11,q11,#4\n\teor\tr4,r4,r9,ror#25\n\tbne\t.Loop_neon\n\n\tadd\tr11,sp,#32\n\tvld1.32\t{q12,q13},[sp]\t\t@ load key material\n\tvld1.32\t{q14,q15},[r11]\n\n\tldr\tr11,[sp,#4*(32+2)]\t@ load len\n\n\tstr\tr8, [sp,#4*(16+8)]\t@ modulo-scheduled store\n\tstr\tr9, [sp,#4*(16+9)]\n\tstr\tr12,[sp,#4*(16+12)]\n\tstr\tr10, [sp,#4*(16+13)]\n\tstr\tr14,[sp,#4*(16+14)]\n\n\t@ at this point we have first half of 512-bit result in\n\t@ rx and second half at sp+4*(16+8)\n\n\tldr\tr12,[sp,#4*(32+1)]\t@ load inp", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:28", "text": "vext.8\tq11,q11,q11,#4\n\teor\tr4,r4,r9,ror#25\n\tbne\t.Loop_neon\n\n\tadd\tr11,sp,#32\n\tvld1.32\t{q12,q13},[sp]\t\t@ load key material\n\tvld1.32\t{q14,q15},[r11]\n\n\tldr\tr11,[sp,#4*(32+2)]\t@ load len\n\n\tstr\tr8, [sp,#4*(16+8)]\t@ modulo-scheduled store\n\tstr\tr9, [sp,#4*(16+9)]\n\tstr\tr12,[sp,#4*(16+12)]\n\tstr\tr10, [sp,#4*(16+13)]\n\tstr\tr14,[sp,#4*(16+14)]\n\n\t@ at this point we have first half of 512-bit result in\n\t@ rx and second half at sp+4*(16+8)\n\n\tldr\tr12,[sp,#4*(32+1)]\t@ load inp\n\tldr\tr14,[sp,#4*(32+0)]\t@ load out\n\n\tvadd.i32\tq0,q0,q12\t\t@ accumulate key material\n\tvadd.i32\tq4,q4,q12\n\tvadd.i32\tq8,q8,q12\n\tvldr\td24,[sp,#4*(16+0)]\t@ one\n\n\tvadd.i32\tq1,q1,q13\n\tvadd.i32\tq5,q5,q13\n\tvadd.i32\tq9,q9,q13\n\tvldr\td26,[sp,#4*(16+2)]\t@ two\n\n\tvadd.i32\tq2,q2,q14\n\tvadd.i32\tq6,q6,q14\n\tvadd.i32\tq10,q10,q14\n\tvadd.i32\td14,d14,d24\t@ counter+1\n\tvadd.i32\td22,d22,d26\t@ counter+2\n\n\tvadd.i32\tq3,q3,q15\n\tvadd.i32\tq7,q7,q15\n\tvadd.i32\tq11,q11,q15\n\n\tcmp\tr11,#64*4\n\tblo\t.Ltail_neon\n\n\tvld1.8\t{q12,q13},[r12]!\t@ load input\n\tmov\tr11,sp\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\t\t@ xor with input\n\tveor\tq1,q1,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq2,q2,q14\n\tveor\tq3,q3,q15\n\tvld1.8\t{q14,q15},[r12]!\n\n\tveor\tq4,q4,q12\n\tvst1.8\t{q0,q1},[r14]!\t@ store output\n\tveor\tq5,q5,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq6,q6,q14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:29", "text": "vadd.i32\tq11,q11,q15\n\n\tcmp\tr11,#64*4\n\tblo\t.Ltail_neon\n\n\tvld1.8\t{q12,q13},[r12]!\t@ load input\n\tmov\tr11,sp\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\t\t@ xor with input\n\tveor\tq1,q1,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq2,q2,q14\n\tveor\tq3,q3,q15\n\tvld1.8\t{q14,q15},[r12]!\n\n\tveor\tq4,q4,q12\n\tvst1.8\t{q0,q1},[r14]!\t@ store output\n\tveor\tq5,q5,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq6,q6,q14\n\tvst1.8\t{q2,q3},[r14]!\n\tveor\tq7,q7,q15\n\tvld1.8\t{q14,q15},[r12]!\n\n\tveor\tq8,q8,q12\n\tvld1.32\t{q0,q1},[r11]!\t@ load for next iteration\n\tveor\td25,d25,d25\n\tvldr\td24,[sp,#4*(16+4)]\t@ four\n\tveor\tq9,q9,q13\n\tvld1.32\t{q2,q3},[r11]\n\tveor\tq10,q10,q14\n\tvst1.8\t{q4,q5},[r14]!\n\tveor\tq11,q11,q15\n\tvst1.8\t{q6,q7},[r14]!\n\n\tvadd.i32\td6,d6,d24\t@ next counter value\n\tvldr\td24,[sp,#4*(16+0)]\t@ one\n\n\tldmia\tsp,{r8,r9,r10,r11}\t@ load key material\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tldr\tr8,[r12],#16\t\t@ load input\n\tvst1.8\t{q8,q9},[r14]!\n\tadd\tr1,r1,r9\n\tldr\tr9,[r12,#-12]\n\tvst1.8\t{q10,q11},[r14]!\n\tadd\tr2,r2,r10\n\tldr\tr10,[r12,#-8]\n\tadd\tr3,r3,r11\n\tldr\tr11,[r12,#-4]\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n\teor\tr0,r0,r8\t@ xor with input\n\tadd\tr8,sp,#4*(4)\n\teor\tr1,r1,r9\n\tstr\tr0,[r14],#16\t\t@ store output\n\teor\tr2,r2,r10", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:30", "text": "ldr\tr8,[r12],#16\t\t@ load input\n\tvst1.8\t{q8,q9},[r14]!\n\tadd\tr1,r1,r9\n\tldr\tr9,[r12,#-12]\n\tvst1.8\t{q10,q11},[r14]!\n\tadd\tr2,r2,r10\n\tldr\tr10,[r12,#-8]\n\tadd\tr3,r3,r11\n\tldr\tr11,[r12,#-4]\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n\teor\tr0,r0,r8\t@ xor with input\n\tadd\tr8,sp,#4*(4)\n\teor\tr1,r1,r9\n\tstr\tr0,[r14],#16\t\t@ store output\n\teor\tr2,r2,r10\n\tstr\tr1,[r14,#-12]\n\teor\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr2,[r14,#-8]\n\tstr\tr3,[r14,#-4]\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tldr\tr8,[r12],#16\t\t@ load input\n\tadd\tr5,r5,r9\n\tldr\tr9,[r12,#-12]\n\tadd\tr6,r6,r10\n\tldr\tr10,[r12,#-8]\n\tadd\tr7,r7,r11\n\tldr\tr11,[r12,#-4]\n# ifdef\t__ARMEB__\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n\teor\tr4,r4,r8\n\tadd\tr8,sp,#4*(8)\n\teor\tr5,r5,r9\n\tstr\tr4,[r14],#16\t\t@ store output\n\teor\tr6,r6,r10\n\tstr\tr5,[r14,#-12]\n\teor\tr7,r7,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr6,[r14,#-8]\n\tadd\tr0,sp,#4*(16+8)\n\tstr\tr7,[r14,#-4]\n\n\tldmia\tr0,{r0,r1,r2,r3,r4,r5,r6,r7}\t@ load second half\n\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tldr\tr8,[r12],#16\t\t@ load input\n\tadd\tr1,r1,r9\n\tldr\tr9,[r12,#-12]\n# ifdef\t__thumb2__\n\tit\thi", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:31", "text": "eor\tr4,r4,r8\n\tadd\tr8,sp,#4*(8)\n\teor\tr5,r5,r9\n\tstr\tr4,[r14],#16\t\t@ store output\n\teor\tr6,r6,r10\n\tstr\tr5,[r14,#-12]\n\teor\tr7,r7,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr6,[r14,#-8]\n\tadd\tr0,sp,#4*(16+8)\n\tstr\tr7,[r14,#-4]\n\n\tldmia\tr0,{r0,r1,r2,r3,r4,r5,r6,r7}\t@ load second half\n\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tldr\tr8,[r12],#16\t\t@ load input\n\tadd\tr1,r1,r9\n\tldr\tr9,[r12,#-12]\n# ifdef\t__thumb2__\n\tit\thi\n# endif\n\tstrhi\tr10,[sp,#4*(16+10)]\t@ copy \"rx\" while at it\n\tadd\tr2,r2,r10\n\tldr\tr10,[r12,#-8]\n# ifdef\t__thumb2__\n\tit\thi\n# endif\n\tstrhi\tr11,[sp,#4*(16+11)]\t@ copy \"rx\" while at it\n\tadd\tr3,r3,r11\n\tldr\tr11,[r12,#-4]\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n\teor\tr0,r0,r8\n\tadd\tr8,sp,#4*(12)\n\teor\tr1,r1,r9\n\tstr\tr0,[r14],#16\t\t@ store output\n\teor\tr2,r2,r10\n\tstr\tr1,[r14,#-12]\n\teor\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr2,[r14,#-8]\n\tstr\tr3,[r14,#-4]\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr8,r8,#4\t\t@ next counter value\n\tadd\tr5,r5,r9\n\tstr\tr8,[sp,#4*(12)]\t@ save next counter value\n\tldr\tr8,[r12],#16\t\t@ load input\n\tadd\tr6,r6,r10\n\tadd\tr4,r4,#3\t\t@ counter+3\n\tldr\tr9,[r12,#-12]\n\tadd\tr7,r7,r11\n\tldr\tr10,[r12,#-8]\n\tldr\tr11,[r12,#-4]\n# ifdef\t__ARMEB__\n\trev\tr4,r4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:32", "text": "eor\tr2,r2,r10\n\tstr\tr1,[r14,#-12]\n\teor\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\tstr\tr2,[r14,#-8]\n\tstr\tr3,[r14,#-4]\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr8,r8,#4\t\t@ next counter value\n\tadd\tr5,r5,r9\n\tstr\tr8,[sp,#4*(12)]\t@ save next counter value\n\tldr\tr8,[r12],#16\t\t@ load input\n\tadd\tr6,r6,r10\n\tadd\tr4,r4,#3\t\t@ counter+3\n\tldr\tr9,[r12,#-12]\n\tadd\tr7,r7,r11\n\tldr\tr10,[r12,#-8]\n\tldr\tr11,[r12,#-4]\n# ifdef\t__ARMEB__\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n\teor\tr4,r4,r8\n# ifdef\t__thumb2__\n\tit\thi\n# endif\n\tldrhi\tr8,[sp,#4*(32+2)]\t@ re-load len\n\teor\tr5,r5,r9\n\teor\tr6,r6,r10\n\tstr\tr4,[r14],#16\t\t@ store output\n\teor\tr7,r7,r11\n\tstr\tr5,[r14,#-12]\n\tsub\tr11,r8,#64*4\t@ len-=64*4\n\tstr\tr6,[r14,#-8]\n\tstr\tr7,[r14,#-4]\n\tbhi\t.Loop_neon_outer\n\n\tb\t.Ldone_neon\n\n.align\t4\n.Lbreak_neon:\n\t@ harmonize NEON and integer-only stack frames: load data\n\t@ from NEON frame, but save to integer-only one; distance\n\t@ between the two is 4*(32+4+16-32)=4*(20).\n\n\tstr\tr11, [sp,#4*(20+32+2)]\t@ save len\n\tadd\tr11,sp,#4*(32+4)\n\tstr\tr12,   [sp,#4*(20+32+1)]\t@ save inp\n\tstr\tr14,   [sp,#4*(20+32+0)]\t@ save out\n\n\tldr\tr12,[sp,#4*(16+10)]\n\tldr\tr14,[sp,#4*(16+11)]\n\tvldmia\tr11,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t\t@ fulfill ABI requirement\n\tstr\tr12,[sp,#4*(20+16+10)]\t@ copy \"rx\"\n\tstr\tr14,[sp,#4*(20+16+11)]\t@ copy \"rx\"\n\n\tldr\tr11, [sp,#4*(15)]\n\tldr\tr12,[sp,#4*(12)]\t\t@ modulo-scheduled load", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:33", "text": ".align\t4\n.Lbreak_neon:\n\t@ harmonize NEON and integer-only stack frames: load data\n\t@ from NEON frame, but save to integer-only one; distance\n\t@ between the two is 4*(32+4+16-32)=4*(20).\n\n\tstr\tr11, [sp,#4*(20+32+2)]\t@ save len\n\tadd\tr11,sp,#4*(32+4)\n\tstr\tr12,   [sp,#4*(20+32+1)]\t@ save inp\n\tstr\tr14,   [sp,#4*(20+32+0)]\t@ save out\n\n\tldr\tr12,[sp,#4*(16+10)]\n\tldr\tr14,[sp,#4*(16+11)]\n\tvldmia\tr11,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t\t@ fulfill ABI requirement\n\tstr\tr12,[sp,#4*(20+16+10)]\t@ copy \"rx\"\n\tstr\tr14,[sp,#4*(20+16+11)]\t@ copy \"rx\"\n\n\tldr\tr11, [sp,#4*(15)]\n\tldr\tr12,[sp,#4*(12)]\t\t@ modulo-scheduled load\n\tldr\tr10, [sp,#4*(13)]\n\tldr\tr14,[sp,#4*(14)]\n\tstr\tr11, [sp,#4*(20+16+15)]\n\tadd\tr11,sp,#4*(20)\n\tvst1.32\t{q0,q1},[r11]!\t\t@ copy key\n\tadd\tsp,sp,#4*(20)\t\t\t@ switch frame\n\tvst1.32\t{q2,q3},[r11]\n\tmov\tr11,#10\n\tb\t.Loop\t\t\t\t@ go integer-only\n\n.align\t4\n.Ltail_neon:\n\tcmp\tr11,#64*3\n\tbhs\t.L192_or_more_neon\n\tcmp\tr11,#64*2\n\tbhs\t.L128_or_more_neon\n\tcmp\tr11,#64*1\n\tbhs\t.L64_or_more_neon\n\n\tadd\tr8,sp,#4*(8)\n\tvst1.8\t{q0,q1},[sp]\n\tadd\tr10,sp,#4*(0)\n\tvst1.8\t{q2,q3},[r8]\n\tb\t.Loop_tail_neon\n\n.align\t4\n.L64_or_more_neon:\n\tvld1.8\t{q12,q13},[r12]!\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\n\tveor\tq1,q1,q13\n\tveor\tq2,q2,q14\n\tveor\tq3,q3,q15\n\tvst1.8\t{q0,q1},[r14]!\n\tvst1.8\t{q2,q3},[r14]!\n\n\tbeq\t.Ldone_neon\n\n\tadd\tr8,sp,#4*(8)\n\tvst1.8\t{q4,q5},[sp]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:34", "text": "vst1.8\t{q0,q1},[sp]\n\tadd\tr10,sp,#4*(0)\n\tvst1.8\t{q2,q3},[r8]\n\tb\t.Loop_tail_neon\n\n.align\t4\n.L64_or_more_neon:\n\tvld1.8\t{q12,q13},[r12]!\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\n\tveor\tq1,q1,q13\n\tveor\tq2,q2,q14\n\tveor\tq3,q3,q15\n\tvst1.8\t{q0,q1},[r14]!\n\tvst1.8\t{q2,q3},[r14]!\n\n\tbeq\t.Ldone_neon\n\n\tadd\tr8,sp,#4*(8)\n\tvst1.8\t{q4,q5},[sp]\n\tadd\tr10,sp,#4*(0)\n\tvst1.8\t{q6,q7},[r8]\n\tsub\tr11,r11,#64*1\t@ len-=64*1\n\tb\t.Loop_tail_neon\n\n.align\t4\n.L128_or_more_neon:\n\tvld1.8\t{q12,q13},[r12]!\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\n\tveor\tq1,q1,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq2,q2,q14\n\tveor\tq3,q3,q15\n\tvld1.8\t{q14,q15},[r12]!\n\n\tveor\tq4,q4,q12\n\tveor\tq5,q5,q13\n\tvst1.8\t{q0,q1},[r14]!\n\tveor\tq6,q6,q14\n\tvst1.8\t{q2,q3},[r14]!\n\tveor\tq7,q7,q15\n\tvst1.8\t{q4,q5},[r14]!\n\tvst1.8\t{q6,q7},[r14]!\n\n\tbeq\t.Ldone_neon\n\n\tadd\tr8,sp,#4*(8)\n\tvst1.8\t{q8,q9},[sp]\n\tadd\tr10,sp,#4*(0)\n\tvst1.8\t{q10,q11},[r8]\n\tsub\tr11,r11,#64*2\t@ len-=64*2\n\tb\t.Loop_tail_neon\n\n.align\t4\n.L192_or_more_neon:\n\tvld1.8\t{q12,q13},[r12]!\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\n\tveor\tq1,q1,q13", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:35", "text": "vst1.8\t{q2,q3},[r14]!\n\tveor\tq7,q7,q15\n\tvst1.8\t{q4,q5},[r14]!\n\tvst1.8\t{q6,q7},[r14]!\n\n\tbeq\t.Ldone_neon\n\n\tadd\tr8,sp,#4*(8)\n\tvst1.8\t{q8,q9},[sp]\n\tadd\tr10,sp,#4*(0)\n\tvst1.8\t{q10,q11},[r8]\n\tsub\tr11,r11,#64*2\t@ len-=64*2\n\tb\t.Loop_tail_neon\n\n.align\t4\n.L192_or_more_neon:\n\tvld1.8\t{q12,q13},[r12]!\n\tvld1.8\t{q14,q15},[r12]!\n\tveor\tq0,q0,q12\n\tveor\tq1,q1,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq2,q2,q14\n\tveor\tq3,q3,q15\n\tvld1.8\t{q14,q15},[r12]!\n\n\tveor\tq4,q4,q12\n\tveor\tq5,q5,q13\n\tvld1.8\t{q12,q13},[r12]!\n\tveor\tq6,q6,q14\n\tvst1.8\t{q0,q1},[r14]!\n\tveor\tq7,q7,q15\n\tvld1.8\t{q14,q15},[r12]!\n\n\tveor\tq8,q8,q12\n\tvst1.8\t{q2,q3},[r14]!\n\tveor\tq9,q9,q13\n\tvst1.8\t{q4,q5},[r14]!\n\tveor\tq10,q10,q14\n\tvst1.8\t{q6,q7},[r14]!\n\tveor\tq11,q11,q15\n\tvst1.8\t{q8,q9},[r14]!\n\tvst1.8\t{q10,q11},[r14]!\n\n\tbeq\t.Ldone_neon\n\n\tldmia\tsp,{r8,r9,r10,r11}\t@ load key material\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(4)\n\tadd\tr1,r1,r9\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(8)\n\tadd\tr5,r5,r9\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n# ifdef\t__ARMEB__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:36", "text": "vst1.8\t{q8,q9},[r14]!\n\tvst1.8\t{q10,q11},[r14]!\n\n\tbeq\t.Ldone_neon\n\n\tldmia\tsp,{r8,r9,r10,r11}\t@ load key material\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(4)\n\tadd\tr1,r1,r9\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(8)\n\tadd\tr5,r5,r9\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n\tstmia\tsp,{r0,r1,r2,r3,r4,r5,r6,r7}\n\tadd\tr0,sp,#4*(16+8)\n\n\tldmia\tr0,{r0,r1,r2,r3,r4,r5,r6,r7}\t@ load second half\n\n\tadd\tr0,r0,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(12)\n\tadd\tr1,r1,r9\n\tadd\tr2,r2,r10\n\tadd\tr3,r3,r11\n\tldmia\tr8,{r8,r9,r10,r11}\t@ load key material\n\n\tadd\tr4,r4,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(8)\n\tadd\tr5,r5,r9\n\tadd\tr4,r4,#3\t\t@ counter+3\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n\tldr\tr11,[sp,#4*(32+2)]\t@ re-load len\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n\tstmia\tr8,{r0,r1,r2,r3,r4,r5,r6,r7}\n\tadd\tr10,sp,#4*(0)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S:37", "text": "add\tr4,r4,r8\t@ accumulate key material\n\tadd\tr8,sp,#4*(8)\n\tadd\tr5,r5,r9\n\tadd\tr4,r4,#3\t\t@ counter+3\n\tadd\tr6,r6,r10\n\tadd\tr7,r7,r11\n\tldr\tr11,[sp,#4*(32+2)]\t@ re-load len\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n\trev\tr7,r7\n# endif\n\tstmia\tr8,{r0,r1,r2,r3,r4,r5,r6,r7}\n\tadd\tr10,sp,#4*(0)\n\tsub\tr11,r11,#64*3\t@ len-=64*3\n\n.Loop_tail_neon:\n\tldrb\tr8,[r10],#1\t@ read buffer on stack\n\tldrb\tr9,[r12],#1\t\t@ read input\n\tsubs\tr11,r11,#1\n\teor\tr8,r8,r9\n\tstrb\tr8,[r14],#1\t\t@ store output\n\tbne\t.Loop_tail_neon\n\n.Ldone_neon:\n\tadd\tsp,sp,#4*(32+4)\n\tvldmia\tsp,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tadd\tsp,sp,#4*(16+3)\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,pc}\n.size\tChaCha20_neon,.-ChaCha20_neon\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv4.S", "line_start": 1441, "line_end": 1479}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n#ifndef\t__KERNEL__\n\n.hidden\tOPENSSL_armcap_P\n\n\n#endif\n\n.section\t.rodata\n\n.align\t5\n.Lsigma:\n.quad\t0x3320646e61707865,0x6b20657479622d32\t\t// endian-neutral\n.Lone:\n.long\t1,2,3,4\n.Lrot24:\n.long\t0x02010003,0x06050407,0x0a09080b,0x0e0d0c0f\n.byte\t67,104,97,67,104,97,50,48,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,64,100,111,116,45,97,115,109,0\n.align\t2\n\n.text\n\n.globl\tChaCha20_ctr32_dflt\n.type\tChaCha20_ctr32_dflt,%function\n.align\t5\nChaCha20_ctr32_dflt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcmp\tx2,#192\n\tb.lo\t.Lshort\n#ifndef\t__KERNEL__\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n.Lcheck_neon:\n\ttst\tw17,#ARMV7_NEON\n\tb.ne\t.LChaCha20_neon\n#endif\n\n.Lshort:\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tldp\tx28,x30,[x4]\t\t// load counter\n#ifdef\t__AARCH64EB__\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:2", "text": "add\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tldp\tx28,x30,[x4]\t\t// load counter\n#ifdef\t__AARCH64EB__\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32\n\tror\tx30,x30,#32\n#endif\n\n.Loop_outer:\n\tmov\tw5,w22\t\t\t// unpack key block\n\tlsr\tx6,x22,#32\n\tmov\tw7,w23\n\tlsr\tx8,x23,#32\n\tmov\tw9,w24\n\tlsr\tx10,x24,#32\n\tmov\tw11,w25\n\tlsr\tx12,x25,#32\n\tmov\tw13,w26\n\tlsr\tx14,x26,#32\n\tmov\tw15,w27\n\tlsr\tx16,x27,#32\n\tmov\tw17,w28\n\tlsr\tx19,x28,#32\n\tmov\tw20,w30\n\tlsr\tx21,x30,#32\n\n\tmov\tx4,#10\n\tsubs\tx2,x2,#64\n.Loop:\n\tsub\tx4,x4,#1\n\tadd\tw5,w5,w9\n\tadd\tw6,w6,w10\n\tadd\tw7,w7,w11\n\tadd\tw8,w8,w12\n\teor\tw17,w17,w5\n\teor\tw19,w19,w6\n\teor\tw20,w20,w7\n\teor\tw21,w21,w8\n\tror\tw17,w17,#16\n\tror\tw19,w19,#16\n\tror\tw20,w20,#16\n\tror\tw21,w21,#16\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:3", "text": "lsr\tx21,x30,#32\n\n\tmov\tx4,#10\n\tsubs\tx2,x2,#64\n.Loop:\n\tsub\tx4,x4,#1\n\tadd\tw5,w5,w9\n\tadd\tw6,w6,w10\n\tadd\tw7,w7,w11\n\tadd\tw8,w8,w12\n\teor\tw17,w17,w5\n\teor\tw19,w19,w6\n\teor\tw20,w20,w7\n\teor\tw21,w21,w8\n\tror\tw17,w17,#16\n\tror\tw19,w19,#16\n\tror\tw20,w20,#16\n\tror\tw21,w21,#16\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20\n\tadd\tw16,w16,w21\n\teor\tw9,w9,w13\n\teor\tw10,w10,w14\n\teor\tw11,w11,w15\n\teor\tw12,w12,w16\n\tror\tw9,w9,#20\n\tror\tw10,w10,#20\n\tror\tw11,w11,#20\n\tror\tw12,w12,#20\n\tadd\tw5,w5,w9\n\tadd\tw6,w6,w10\n\tadd\tw7,w7,w11\n\tadd\tw8,w8,w12\n\teor\tw17,w17,w5\n\teor\tw19,w19,w6\n\teor\tw20,w20,w7\n\teor\tw21,w21,w8\n\tror\tw17,w17,#24\n\tror\tw19,w19,#24\n\tror\tw20,w20,#24\n\tror\tw21,w21,#24\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20\n\tadd\tw16,w16,w21\n\teor\tw9,w9,w13\n\teor\tw10,w10,w14\n\teor\tw11,w11,w15\n\teor\tw12,w12,w16\n\tror\tw9,w9,#25\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25\n\tadd\tw5,w5,w10\n\tadd\tw6,w6,w11\n\tadd\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:4", "text": "ror\tw20,w20,#24\n\tror\tw21,w21,#24\n\tadd\tw13,w13,w17\n\tadd\tw14,w14,w19\n\tadd\tw15,w15,w20\n\tadd\tw16,w16,w21\n\teor\tw9,w9,w13\n\teor\tw10,w10,w14\n\teor\tw11,w11,w15\n\teor\tw12,w12,w16\n\tror\tw9,w9,#25\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25\n\tadd\tw5,w5,w10\n\tadd\tw6,w6,w11\n\tadd\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7\n\teor\tw20,w20,w8\n\tror\tw21,w21,#16\n\tror\tw17,w17,#16\n\tror\tw19,w19,#16\n\tror\tw20,w20,#16\n\tadd\tw15,w15,w21\n\tadd\tw16,w16,w17\n\tadd\tw13,w13,w19\n\tadd\tw14,w14,w20\n\teor\tw10,w10,w15\n\teor\tw11,w11,w16\n\teor\tw12,w12,w13\n\teor\tw9,w9,w14\n\tror\tw10,w10,#20\n\tror\tw11,w11,#20\n\tror\tw12,w12,#20\n\tror\tw9,w9,#20\n\tadd\tw5,w5,w10\n\tadd\tw6,w6,w11\n\tadd\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7\n\teor\tw20,w20,w8\n\tror\tw21,w21,#24\n\tror\tw17,w17,#24\n\tror\tw19,w19,#24\n\tror\tw20,w20,#24\n\tadd\tw15,w15,w21\n\tadd\tw16,w16,w17\n\tadd\tw13,w13,w19\n\tadd\tw14,w14,w20\n\teor\tw10,w10,w15\n\teor\tw11,w11,w16\n\teor\tw12,w12,w13\n\teor\tw9,w9,w14\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:5", "text": "add\tw7,w7,w12\n\tadd\tw8,w8,w9\n\teor\tw21,w21,w5\n\teor\tw17,w17,w6\n\teor\tw19,w19,w7\n\teor\tw20,w20,w8\n\tror\tw21,w21,#24\n\tror\tw17,w17,#24\n\tror\tw19,w19,#24\n\tror\tw20,w20,#24\n\tadd\tw15,w15,w21\n\tadd\tw16,w16,w17\n\tadd\tw13,w13,w19\n\tadd\tw14,w14,w20\n\teor\tw10,w10,w15\n\teor\tw11,w11,w16\n\teor\tw12,w12,w13\n\teor\tw9,w9,w14\n\tror\tw10,w10,#25\n\tror\tw11,w11,#25\n\tror\tw12,w12,#25\n\tror\tw9,w9,#25\n\tcbnz\tx4,.Loop\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tadd\tx6,x6,x22,lsr#32\n\tadd\tw7,w7,w23\n\tadd\tx8,x8,x23,lsr#32\n\tadd\tw9,w9,w24\n\tadd\tx10,x10,x24,lsr#32\n\tadd\tw11,w11,w25\n\tadd\tx12,x12,x25,lsr#32\n\tadd\tw13,w13,w26\n\tadd\tx14,x14,x26,lsr#32\n\tadd\tw15,w15,w27\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tw17,w17,w28\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tw20,w20,w30\n\tadd\tx21,x21,x30,lsr#32\n\n\tb.lo\t.Ltail\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:6", "text": "b.lo\t.Ltail\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tx15,x15,x16\n\teor\tx17,x17,x19\n\teor\tx20,x20,x21\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#1\t\t\t// increment counter\n\tstp\tx9,x11,[x0,#16]\n\tstp\tx13,x15,[x0,#32]\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\n\tb.hi\t.Loop_outer\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n.Labort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n\n.align\t4\n.Ltail:\n\tadd\tx2,x2,#64\n.Less_than_64:\n\tsub\tx0,x0,#1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:7", "text": "add\tx0,x0,#64\n\n\tb.hi\t.Loop_outer\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n.Labort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n\n.align\t4\n.Ltail:\n\tadd\tx2,x2,#64\n.Less_than_64:\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2\n\tadd\tx0,x0,x2\n\tadd\tx4,sp,x2\n\tneg\tx2,x2\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tstp\tx5,x7,[sp,#0]\n\tstp\tx9,x11,[sp,#16]\n\tstp\tx13,x15,[sp,#32]\n\tstp\tx17,x20,[sp,#48]\n\n.Loop_tail:\n\tldrb\tw10,[x1,x2]\n\tldrb\tw11,[x4,x2]\n\tadd\tx2,x2,#1\n\teor\tw10,w10,w11\n\tstrb\tw10,[x0,x2]\n\tcbnz\tx2,.Loop_tail\n\n\tstp\txzr,xzr,[sp,#0]\n\tstp\txzr,xzr,[sp,#16]\n\tstp\txzr,xzr,[sp,#32]\n\tstp\txzr,xzr,[sp,#48]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:8", "text": "rev\tx17,x17\n\trev\tx20,x20\n#endif\n\tstp\tx5,x7,[sp,#0]\n\tstp\tx9,x11,[sp,#16]\n\tstp\tx13,x15,[sp,#32]\n\tstp\tx17,x20,[sp,#48]\n\n.Loop_tail:\n\tldrb\tw10,[x1,x2]\n\tldrb\tw11,[x4,x2]\n\tadd\tx2,x2,#1\n\teor\tw10,w10,w11\n\tstrb\tw10,[x0,x2]\n\tcbnz\tx2,.Loop_tail\n\n\tstp\txzr,xzr,[sp,#0]\n\tstp\txzr,xzr,[sp,#16]\n\tstp\txzr,xzr,[sp,#32]\n\tstp\txzr,xzr,[sp,#48]\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_ctr32_dflt,.-ChaCha20_ctr32_dflt\n\n.globl\tChaCha20_ctr32\n.type\tChaCha20_ctr32,%function\n.align\t5\nChaCha20_ctr32:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcbz\tx2,.Labort\n\tcmp\tx2,#192\n\tb.lo\t.Lshort\n#ifndef\t__KERNEL__\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n\ttst\tw17,#ARMV8_SVE\n\tb.eq\t.Lcheck_neon\n\tstp\tx29,x30,[sp,#-16]!\n\tsub\tsp,sp,#16\n\t// SVE handling will inevitably increment the counter\n\t// Neon/Scalar code that follows to process tail data needs to\n\t// use new counter, unfortunately the input counter buffer\n\t// pointed to by ctr is meant to be read-only per API contract\n\t// we have to copy the buffer to stack to be writable by SVE\n\tldp\tx5,x6,[x4]\n\tstp\tx5,x6,[sp]\n\tmov\tx4,sp\n\tbl\tChaCha20_ctr32_sve\n\tcbz\tx2,1f\n\tbl\tChaCha20_ctr32_dflt\n1:\n\tadd\tsp,sp,#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:9", "text": "#ifndef\t__KERNEL__\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n\ttst\tw17,#ARMV8_SVE\n\tb.eq\t.Lcheck_neon\n\tstp\tx29,x30,[sp,#-16]!\n\tsub\tsp,sp,#16\n\t// SVE handling will inevitably increment the counter\n\t// Neon/Scalar code that follows to process tail data needs to\n\t// use new counter, unfortunately the input counter buffer\n\t// pointed to by ctr is meant to be read-only per API contract\n\t// we have to copy the buffer to stack to be writable by SVE\n\tldp\tx5,x6,[x4]\n\tstp\tx5,x6,[sp]\n\tmov\tx4,sp\n\tbl\tChaCha20_ctr32_sve\n\tcbz\tx2,1f\n\tbl\tChaCha20_ctr32_dflt\n1:\n\tadd\tsp,sp,#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n#endif\n\tb\t.Lshort\n.size\tChaCha20_ctr32,.-ChaCha20_ctr32\n\n#ifdef\t__KERNEL__\n.globl\tChaCha20_neon\n#endif\n.type\tChaCha20_neon,%function\n.align\t5\nChaCha20_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n.LChaCha20_neon:\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tcmp\tx2,#512\n\tb.hs\t.L512_or_more_neon\n\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tld1\t{v0.4s},[x5],#16\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tld1\t{v1.4s,v2.4s},[x3]\n\tldp\tx28,x30,[x4]\t\t// load counter\n\tld1\t{v3.4s},[x4]\n\tstp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\tld1\t{v8.4s,v9.4s},[x5]\n#ifdef\t__AARCH64EB__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:10", "text": "stp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tcmp\tx2,#512\n\tb.hs\t.L512_or_more_neon\n\n\tsub\tsp,sp,#64\n\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tld1\t{v0.4s},[x5],#16\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tld1\t{v1.4s,v2.4s},[x3]\n\tldp\tx28,x30,[x4]\t\t// load counter\n\tld1\t{v3.4s},[x4]\n\tstp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\tld1\t{v8.4s,v9.4s},[x5]\n#ifdef\t__AARCH64EB__\n\trev64\tv0.4s,v0.4s\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32\n\tror\tx30,x30,#32\n#endif\n\n.Loop_outer_neon:\n\tdup\tv16.4s,v0.s[0]\t\t\t// unpack key block\n\tmov\tw5,w22\n\tdup\tv20.4s,v0.s[1]\n\tlsr\tx6,x22,#32\n\tdup\tv24.4s,v0.s[2]\n\tmov\tw7,w23\n\tdup\tv28.4s,v0.s[3]\n\tlsr\tx8,x23,#32\n\tdup\tv17.4s,v1.s[0]\n\tmov\tw9,w24\n\tdup\tv21.4s,v1.s[1]\n\tlsr\tx10,x24,#32\n\tdup\tv25.4s,v1.s[2]\n\tmov\tw11,w25\n\tdup\tv29.4s,v1.s[3]\n\tlsr\tx12,x25,#32\n\tdup\tv19.4s,v3.s[0]\n\tmov\tw13,w26\n\tdup\tv23.4s,v3.s[1]\n\tlsr\tx14,x26,#32\n\tdup\tv27.4s,v3.s[2]\n\tmov\tw15,w27\n\tdup\tv31.4s,v3.s[3]\n\tlsr\tx16,x27,#32\n\tadd\tv19.4s,v19.4s,v8.4s\n\tmov\tw17,w28\n\tdup\tv18.4s,v2.s[0]\n\tlsr\tx19,x28,#32\n\tdup\tv22.4s,v2.s[1]\n\tmov\tw20,w30", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:11", "text": "dup\tv21.4s,v1.s[1]\n\tlsr\tx10,x24,#32\n\tdup\tv25.4s,v1.s[2]\n\tmov\tw11,w25\n\tdup\tv29.4s,v1.s[3]\n\tlsr\tx12,x25,#32\n\tdup\tv19.4s,v3.s[0]\n\tmov\tw13,w26\n\tdup\tv23.4s,v3.s[1]\n\tlsr\tx14,x26,#32\n\tdup\tv27.4s,v3.s[2]\n\tmov\tw15,w27\n\tdup\tv31.4s,v3.s[3]\n\tlsr\tx16,x27,#32\n\tadd\tv19.4s,v19.4s,v8.4s\n\tmov\tw17,w28\n\tdup\tv18.4s,v2.s[0]\n\tlsr\tx19,x28,#32\n\tdup\tv22.4s,v2.s[1]\n\tmov\tw20,w30\n\tdup\tv26.4s,v2.s[2]\n\tlsr\tx21,x30,#32\n\tdup\tv30.4s,v2.s[3]\n\n\tmov\tx4,#10\n\tsubs\tx2,x2,#320\n.Loop_neon:\n\tsub\tx4,x4,#1\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw5,w5,w9\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw6,w6,w10\n\tadd\tv24.4s,v24.4s,v25.4s\n\tadd\tw7,w7,w11\n\tadd\tv28.4s,v28.4s,v29.4s\n\tadd\tw8,w8,w12\n\teor\tv19.16b,v19.16b,v16.16b\n\teor\tw17,w17,w5\n\teor\tv23.16b,v23.16b,v20.16b\n\teor\tw19,w19,w6\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw20,w20,w7\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw21,w21,w8\n\trev32\tv19.8h,v19.8h\n\tror\tw17,w17,#16\n\trev32\tv23.8h,v23.8h\n\tror\tw19,w19,#16\n\trev32\tv27.8h,v27.8h\n\tror\tw20,w20,#16\n\trev32\tv31.8h,v31.8h\n\tror\tw21,w21,#16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w17\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w19\n\tadd\tv26.4s,v26.4s,v27.4s\n\tadd\tw15,w15,w20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tadd\tw16,w16,w21", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:12", "text": "eor\tv27.16b,v27.16b,v24.16b\n\teor\tw20,w20,w7\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw21,w21,w8\n\trev32\tv19.8h,v19.8h\n\tror\tw17,w17,#16\n\trev32\tv23.8h,v23.8h\n\tror\tw19,w19,#16\n\trev32\tv27.8h,v27.8h\n\tror\tw20,w20,#16\n\trev32\tv31.8h,v31.8h\n\tror\tw21,w21,#16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w17\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w19\n\tadd\tv26.4s,v26.4s,v27.4s\n\tadd\tw15,w15,w20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tadd\tw16,w16,w21\n\teor\tv4.16b,v17.16b,v18.16b\n\teor\tw9,w9,w13\n\teor\tv5.16b,v21.16b,v22.16b\n\teor\tw10,w10,w14\n\teor\tv6.16b,v25.16b,v26.16b\n\teor\tw11,w11,w15\n\teor\tv7.16b,v29.16b,v30.16b\n\teor\tw12,w12,w16\n\tushr\tv17.4s,v4.4s,#20\n\tror\tw9,w9,#20\n\tushr\tv21.4s,v5.4s,#20\n\tror\tw10,w10,#20\n\tushr\tv25.4s,v6.4s,#20\n\tror\tw11,w11,#20\n\tushr\tv29.4s,v7.4s,#20\n\tror\tw12,w12,#20\n\tsli\tv17.4s,v4.4s,#12\n\tadd\tw5,w5,w9\n\tsli\tv21.4s,v5.4s,#12\n\tadd\tw6,w6,w10\n\tsli\tv25.4s,v6.4s,#12\n\tadd\tw7,w7,w11\n\tsli\tv29.4s,v7.4s,#12\n\tadd\tw8,w8,w12\n\tadd\tv16.4s,v16.4s,v17.4s\n\teor\tw17,w17,w5\n\tadd\tv20.4s,v20.4s,v21.4s\n\teor\tw19,w19,w6\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw20,w20,w7\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw21,w21,w8\n\teor\tv4.16b,v19.16b,v16.16b\n\tror\tw17,w17,#24\n\teor\tv5.16b,v23.16b,v20.16b\n\tror\tw19,w19,#24\n\teor\tv6.16b,v27.16b,v24.16b\n\tror\tw20,w20,#24\n\teor\tv7.16b,v31.16b,v28.16b\n\tror\tw21,w21,#24", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:13", "text": "sli\tv25.4s,v6.4s,#12\n\tadd\tw7,w7,w11\n\tsli\tv29.4s,v7.4s,#12\n\tadd\tw8,w8,w12\n\tadd\tv16.4s,v16.4s,v17.4s\n\teor\tw17,w17,w5\n\tadd\tv20.4s,v20.4s,v21.4s\n\teor\tw19,w19,w6\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw20,w20,w7\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw21,w21,w8\n\teor\tv4.16b,v19.16b,v16.16b\n\tror\tw17,w17,#24\n\teor\tv5.16b,v23.16b,v20.16b\n\tror\tw19,w19,#24\n\teor\tv6.16b,v27.16b,v24.16b\n\tror\tw20,w20,#24\n\teor\tv7.16b,v31.16b,v28.16b\n\tror\tw21,w21,#24\n\ttbl\tv19.16b,{v4.16b},v9.16b\n\tadd\tw13,w13,w17\n\ttbl\tv23.16b,{v5.16b},v9.16b\n\tadd\tw14,w14,w19\n\ttbl\tv27.16b,{v6.16b},v9.16b\n\tadd\tw15,w15,w20\n\ttbl\tv31.16b,{v7.16b},v9.16b\n\tadd\tw16,w16,w21\n\tadd\tv18.4s,v18.4s,v19.4s\n\teor\tw9,w9,w13\n\tadd\tv22.4s,v22.4s,v23.4s\n\teor\tw10,w10,w14\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw11,w11,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw12,w12,w16\n\teor\tv4.16b,v17.16b,v18.16b\n\tror\tw9,w9,#25\n\teor\tv5.16b,v21.16b,v22.16b\n\tror\tw10,w10,#25\n\teor\tv6.16b,v25.16b,v26.16b\n\tror\tw11,w11,#25\n\teor\tv7.16b,v29.16b,v30.16b\n\tror\tw12,w12,#25\n\tushr\tv17.4s,v4.4s,#25\n\tushr\tv21.4s,v5.4s,#25\n\tushr\tv25.4s,v6.4s,#25\n\tushr\tv29.4s,v7.4s,#25\n\tsli\tv17.4s,v4.4s,#7\n\tsli\tv21.4s,v5.4s,#7\n\tsli\tv25.4s,v6.4s,#7\n\tsli\tv29.4s,v7.4s,#7\n\tadd\tv16.4s,v16.4s,v21.4s\n\tadd\tw5,w5,w10\n\tadd\tv20.4s,v20.4s,v25.4s\n\tadd\tw6,w6,w11\n\tadd\tv24.4s,v24.4s,v29.4s\n\tadd\tw7,w7,w12\n\tadd\tv28.4s,v28.4s,v17.4s\n\tadd\tw8,w8,w9", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:14", "text": "eor\tv6.16b,v25.16b,v26.16b\n\tror\tw11,w11,#25\n\teor\tv7.16b,v29.16b,v30.16b\n\tror\tw12,w12,#25\n\tushr\tv17.4s,v4.4s,#25\n\tushr\tv21.4s,v5.4s,#25\n\tushr\tv25.4s,v6.4s,#25\n\tushr\tv29.4s,v7.4s,#25\n\tsli\tv17.4s,v4.4s,#7\n\tsli\tv21.4s,v5.4s,#7\n\tsli\tv25.4s,v6.4s,#7\n\tsli\tv29.4s,v7.4s,#7\n\tadd\tv16.4s,v16.4s,v21.4s\n\tadd\tw5,w5,w10\n\tadd\tv20.4s,v20.4s,v25.4s\n\tadd\tw6,w6,w11\n\tadd\tv24.4s,v24.4s,v29.4s\n\tadd\tw7,w7,w12\n\tadd\tv28.4s,v28.4s,v17.4s\n\tadd\tw8,w8,w9\n\teor\tv31.16b,v31.16b,v16.16b\n\teor\tw21,w21,w5\n\teor\tv19.16b,v19.16b,v20.16b\n\teor\tw17,w17,w6\n\teor\tv23.16b,v23.16b,v24.16b\n\teor\tw19,w19,w7\n\teor\tv27.16b,v27.16b,v28.16b\n\teor\tw20,w20,w8\n\trev32\tv31.8h,v31.8h\n\tror\tw21,w21,#16\n\trev32\tv19.8h,v19.8h\n\tror\tw17,w17,#16\n\trev32\tv23.8h,v23.8h\n\tror\tw19,w19,#16\n\trev32\tv27.8h,v27.8h\n\tror\tw20,w20,#16\n\tadd\tv26.4s,v26.4s,v31.4s\n\tadd\tw15,w15,w21\n\tadd\tv30.4s,v30.4s,v19.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v23.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v27.4s\n\tadd\tw14,w14,w20\n\teor\tv4.16b,v21.16b,v26.16b\n\teor\tw10,w10,w15\n\teor\tv5.16b,v25.16b,v30.16b\n\teor\tw11,w11,w16\n\teor\tv6.16b,v29.16b,v18.16b\n\teor\tw12,w12,w13\n\teor\tv7.16b,v17.16b,v22.16b\n\teor\tw9,w9,w14\n\tushr\tv21.4s,v4.4s,#20\n\tror\tw10,w10,#20\n\tushr\tv25.4s,v5.4s,#20\n\tror\tw11,w11,#20\n\tushr\tv29.4s,v6.4s,#20\n\tror\tw12,w12,#20\n\tushr\tv17.4s,v7.4s,#20\n\tror\tw9,w9,#20", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:15", "text": "add\tv18.4s,v18.4s,v23.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v27.4s\n\tadd\tw14,w14,w20\n\teor\tv4.16b,v21.16b,v26.16b\n\teor\tw10,w10,w15\n\teor\tv5.16b,v25.16b,v30.16b\n\teor\tw11,w11,w16\n\teor\tv6.16b,v29.16b,v18.16b\n\teor\tw12,w12,w13\n\teor\tv7.16b,v17.16b,v22.16b\n\teor\tw9,w9,w14\n\tushr\tv21.4s,v4.4s,#20\n\tror\tw10,w10,#20\n\tushr\tv25.4s,v5.4s,#20\n\tror\tw11,w11,#20\n\tushr\tv29.4s,v6.4s,#20\n\tror\tw12,w12,#20\n\tushr\tv17.4s,v7.4s,#20\n\tror\tw9,w9,#20\n\tsli\tv21.4s,v4.4s,#12\n\tadd\tw5,w5,w10\n\tsli\tv25.4s,v5.4s,#12\n\tadd\tw6,w6,w11\n\tsli\tv29.4s,v6.4s,#12\n\tadd\tw7,w7,w12\n\tsli\tv17.4s,v7.4s,#12\n\tadd\tw8,w8,w9\n\tadd\tv16.4s,v16.4s,v21.4s\n\teor\tw21,w21,w5\n\tadd\tv20.4s,v20.4s,v25.4s\n\teor\tw17,w17,w6\n\tadd\tv24.4s,v24.4s,v29.4s\n\teor\tw19,w19,w7\n\tadd\tv28.4s,v28.4s,v17.4s\n\teor\tw20,w20,w8\n\teor\tv4.16b,v31.16b,v16.16b\n\tror\tw21,w21,#24\n\teor\tv5.16b,v19.16b,v20.16b\n\tror\tw17,w17,#24\n\teor\tv6.16b,v23.16b,v24.16b\n\tror\tw19,w19,#24\n\teor\tv7.16b,v27.16b,v28.16b\n\tror\tw20,w20,#24\n\ttbl\tv31.16b,{v4.16b},v9.16b\n\tadd\tw15,w15,w21\n\ttbl\tv19.16b,{v5.16b},v9.16b\n\tadd\tw16,w16,w17\n\ttbl\tv23.16b,{v6.16b},v9.16b\n\tadd\tw13,w13,w19\n\ttbl\tv27.16b,{v7.16b},v9.16b\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v31.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v19.4s\n\teor\tw11,w11,w16\n\tadd\tv18.4s,v18.4s,v23.4s\n\teor\tw12,w12,w13\n\tadd\tv22.4s,v22.4s,v27.4s\n\teor\tw9,w9,w14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:16", "text": "eor\tv6.16b,v23.16b,v24.16b\n\tror\tw19,w19,#24\n\teor\tv7.16b,v27.16b,v28.16b\n\tror\tw20,w20,#24\n\ttbl\tv31.16b,{v4.16b},v9.16b\n\tadd\tw15,w15,w21\n\ttbl\tv19.16b,{v5.16b},v9.16b\n\tadd\tw16,w16,w17\n\ttbl\tv23.16b,{v6.16b},v9.16b\n\tadd\tw13,w13,w19\n\ttbl\tv27.16b,{v7.16b},v9.16b\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v31.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v19.4s\n\teor\tw11,w11,w16\n\tadd\tv18.4s,v18.4s,v23.4s\n\teor\tw12,w12,w13\n\tadd\tv22.4s,v22.4s,v27.4s\n\teor\tw9,w9,w14\n\teor\tv4.16b,v21.16b,v26.16b\n\tror\tw10,w10,#25\n\teor\tv5.16b,v25.16b,v30.16b\n\tror\tw11,w11,#25\n\teor\tv6.16b,v29.16b,v18.16b\n\tror\tw12,w12,#25\n\teor\tv7.16b,v17.16b,v22.16b\n\tror\tw9,w9,#25\n\tushr\tv21.4s,v4.4s,#25\n\tushr\tv25.4s,v5.4s,#25\n\tushr\tv29.4s,v6.4s,#25\n\tushr\tv17.4s,v7.4s,#25\n\tsli\tv21.4s,v4.4s,#7\n\tsli\tv25.4s,v5.4s,#7\n\tsli\tv29.4s,v6.4s,#7\n\tsli\tv17.4s,v7.4s,#7\n\tcbnz\tx4,.Loop_neon\n\n\tadd\tv19.4s,v19.4s,v8.4s\n\n\tzip1\tv4.4s,v16.4s,v20.4s\t\t\t// transpose data\n\tzip1\tv5.4s,v24.4s,v28.4s\n\tzip2\tv6.4s,v16.4s,v20.4s\n\tzip2\tv7.4s,v24.4s,v28.4s\n\tzip1\tv16.2d,v4.2d,v5.2d\n\tzip2\tv20.2d,v4.2d,v5.2d\n\tzip1\tv24.2d,v6.2d,v7.2d\n\tzip2\tv28.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v17.4s,v21.4s\n\tzip1\tv5.4s,v25.4s,v29.4s\n\tzip2\tv6.4s,v17.4s,v21.4s\n\tzip2\tv7.4s,v25.4s,v29.4s\n\tzip1\tv17.2d,v4.2d,v5.2d\n\tzip2\tv21.2d,v4.2d,v5.2d\n\tzip1\tv25.2d,v6.2d,v7.2d\n\tzip2\tv29.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v18.4s,v22.4s\n\tadd\tw5,w5,w22\t\t// accumulate key block", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:17", "text": "zip1\tv4.4s,v16.4s,v20.4s\t\t\t// transpose data\n\tzip1\tv5.4s,v24.4s,v28.4s\n\tzip2\tv6.4s,v16.4s,v20.4s\n\tzip2\tv7.4s,v24.4s,v28.4s\n\tzip1\tv16.2d,v4.2d,v5.2d\n\tzip2\tv20.2d,v4.2d,v5.2d\n\tzip1\tv24.2d,v6.2d,v7.2d\n\tzip2\tv28.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v17.4s,v21.4s\n\tzip1\tv5.4s,v25.4s,v29.4s\n\tzip2\tv6.4s,v17.4s,v21.4s\n\tzip2\tv7.4s,v25.4s,v29.4s\n\tzip1\tv17.2d,v4.2d,v5.2d\n\tzip2\tv21.2d,v4.2d,v5.2d\n\tzip1\tv25.2d,v6.2d,v7.2d\n\tzip2\tv29.2d,v6.2d,v7.2d\n\n\tzip1\tv4.4s,v18.4s,v22.4s\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tzip1\tv5.4s,v26.4s,v30.4s\n\tadd\tx6,x6,x22,lsr#32\n\tzip2\tv6.4s,v18.4s,v22.4s\n\tadd\tw7,w7,w23\n\tzip2\tv7.4s,v26.4s,v30.4s\n\tadd\tx8,x8,x23,lsr#32\n\tzip1\tv18.2d,v4.2d,v5.2d\n\tadd\tw9,w9,w24\n\tzip2\tv22.2d,v4.2d,v5.2d\n\tadd\tx10,x10,x24,lsr#32\n\tzip1\tv26.2d,v6.2d,v7.2d\n\tadd\tw11,w11,w25\n\tzip2\tv30.2d,v6.2d,v7.2d\n\tadd\tx12,x12,x25,lsr#32\n\n\tzip1\tv4.4s,v19.4s,v23.4s\n\tadd\tw13,w13,w26\n\tzip1\tv5.4s,v27.4s,v31.4s\n\tadd\tx14,x14,x26,lsr#32\n\tzip2\tv6.4s,v19.4s,v23.4s\n\tadd\tw15,w15,w27\n\tzip2\tv7.4s,v27.4s,v31.4s\n\tadd\tx16,x16,x27,lsr#32\n\tzip1\tv19.2d,v4.2d,v5.2d\n\tadd\tw17,w17,w28\n\tzip2\tv23.2d,v4.2d,v5.2d\n\tadd\tx19,x19,x28,lsr#32\n\tzip1\tv27.2d,v6.2d,v7.2d\n\tadd\tw20,w20,w30\n\tzip2\tv31.2d,v6.2d,v7.2d\n\tadd\tx21,x21,x30,lsr#32\n\n\tb.lo\t.Ltail_neon\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv16.4s,v16.4s,v0.4s\t\t\t// accumulate key block\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:18", "text": "add\tw15,w15,w27\n\tzip2\tv7.4s,v27.4s,v31.4s\n\tadd\tx16,x16,x27,lsr#32\n\tzip1\tv19.2d,v4.2d,v5.2d\n\tadd\tw17,w17,w28\n\tzip2\tv23.2d,v4.2d,v5.2d\n\tadd\tx19,x19,x28,lsr#32\n\tzip1\tv27.2d,v6.2d,v7.2d\n\tadd\tw20,w20,w30\n\tzip2\tv31.2d,v6.2d,v7.2d\n\tadd\tx21,x21,x30,lsr#32\n\n\tb.lo\t.Ltail_neon\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv16.4s,v16.4s,v0.4s\t\t\t// accumulate key block\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tv17.4s,v17.4s,v1.4s\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tv18.4s,v18.4s,v2.4s\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tv19.4s,v19.4s,v3.4s\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tx5,x5,x6\n\tadd\tv20.4s,v20.4s,v0.4s\n\teor\tx7,x7,x8\n\tadd\tv21.4s,v21.4s,v1.4s\n\teor\tx9,x9,x10\n\tadd\tv22.4s,v22.4s,v2.4s\n\teor\tx11,x11,x12\n\tadd\tv23.4s,v23.4s,v3.4s\n\teor\tx13,x13,x14\n\teor\tv16.16b,v16.16b,v4.16b\n\tmovi\tv4.4s,#5\n\teor\tx15,x15,x16\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tx17,x17,x19\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tx20,x20,x21\n\teor\tv19.16b,v19.16b,v7.16b\n\tadd\tv8.4s,v8.4s,v4.4s\t\t\t// += 5", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:19", "text": "#endif\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tx5,x5,x6\n\tadd\tv20.4s,v20.4s,v0.4s\n\teor\tx7,x7,x8\n\tadd\tv21.4s,v21.4s,v1.4s\n\teor\tx9,x9,x10\n\tadd\tv22.4s,v22.4s,v2.4s\n\teor\tx11,x11,x12\n\tadd\tv23.4s,v23.4s,v3.4s\n\teor\tx13,x13,x14\n\teor\tv16.16b,v16.16b,v4.16b\n\tmovi\tv4.4s,#5\n\teor\tx15,x15,x16\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tx17,x17,x19\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tx20,x20,x21\n\teor\tv19.16b,v19.16b,v7.16b\n\tadd\tv8.4s,v8.4s,v4.4s\t\t\t// += 5\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#5\t\t\t// increment counter\n\tstp\tx9,x11,[x0,#16]\n\tstp\tx13,x15,[x0,#32]\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\tadd\tv24.4s,v24.4s,v0.4s\n\tadd\tv25.4s,v25.4s,v1.4s\n\tadd\tv26.4s,v26.4s,v2.4s\n\tadd\tv27.4s,v27.4s,v3.4s\n\tld1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x1],#64\n\n\teor\tv20.16b,v20.16b,v4.16b\n\teor\tv21.16b,v21.16b,v5.16b\n\teor\tv22.16b,v22.16b,v6.16b\n\teor\tv23.16b,v23.16b,v7.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\tadd\tv28.4s,v28.4s,v0.4s\n\tadd\tv29.4s,v29.4s,v1.4s\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tv31.4s,v31.4s,v3.4s\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\n\teor\tv28.16b,v28.16b,v20.16b\n\teor\tv29.16b,v29.16b,v21.16b\n\teor\tv30.16b,v30.16b,v22.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\tst1\t{v28.16b,v29.16b,v30.16b,v31.16b},[x0],#64\n\n\tb.hi\t.Loop_outer_neon", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:20", "text": "st1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\tadd\tv28.4s,v28.4s,v0.4s\n\tadd\tv29.4s,v29.4s,v1.4s\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tv31.4s,v31.4s,v3.4s\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\n\teor\tv28.16b,v28.16b,v20.16b\n\teor\tv29.16b,v29.16b,v21.16b\n\teor\tv30.16b,v30.16b,v22.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\tst1\t{v28.16b,v29.16b,v30.16b,v31.16b},[x0],#64\n\n\tb.hi\t.Loop_outer_neon\n\n\tldp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n\n.align\t4\n.Ltail_neon:\n\tadd\tx2,x2,#320\n\tldp\td8,d9,[sp]\t\t\t// meet ABI requirements\n\tcmp\tx2,#64\n\tb.lo\t.Less_than_64\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:21", "text": "add\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tx15,x15,x16\n\teor\tx17,x17,x19\n\teor\tx20,x20,x21\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tv16.4s,v16.4s,v0.4s\t\t\t// accumulate key block\n\tstp\tx9,x11,[x0,#16]\n\tadd\tv17.4s,v17.4s,v1.4s\n\tstp\tx13,x15,[x0,#32]\n\tadd\tv18.4s,v18.4s,v2.4s\n\tstp\tx17,x20,[x0,#48]\n\tadd\tv19.4s,v19.4s,v3.4s\n\tadd\tx0,x0,#64\n\tb.eq\t.Ldone_neon\n\tsub\tx2,x2,#64\n\tcmp\tx2,#64\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv16.16b,v16.16b,v4.16b\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tv19.16b,v19.16b,v7.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v20.4s,v0.4s\n\tadd\tv17.4s,v21.4s,v1.4s\n\tsub\tx2,x2,#64\n\tadd\tv18.4s,v22.4s,v2.4s\n\tcmp\tx2,#64\n\tadd\tv19.4s,v23.4s,v3.4s", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:22", "text": "add\tx0,x0,#64\n\tb.eq\t.Ldone_neon\n\tsub\tx2,x2,#64\n\tcmp\tx2,#64\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv16.16b,v16.16b,v4.16b\n\teor\tv17.16b,v17.16b,v5.16b\n\teor\tv18.16b,v18.16b,v6.16b\n\teor\tv19.16b,v19.16b,v7.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v20.4s,v0.4s\n\tadd\tv17.4s,v21.4s,v1.4s\n\tsub\tx2,x2,#64\n\tadd\tv18.4s,v22.4s,v2.4s\n\tcmp\tx2,#64\n\tadd\tv19.4s,v23.4s,v3.4s\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv20.16b,v16.16b,v4.16b\n\teor\tv21.16b,v17.16b,v5.16b\n\teor\tv22.16b,v18.16b,v6.16b\n\teor\tv23.16b,v19.16b,v7.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v24.4s,v0.4s\n\tadd\tv17.4s,v25.4s,v1.4s\n\tsub\tx2,x2,#64\n\tadd\tv18.4s,v26.4s,v2.4s\n\tcmp\tx2,#64\n\tadd\tv19.4s,v27.4s,v3.4s\n\tb.lo\t.Last_neon\n\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\teor\tv24.16b,v16.16b,v4.16b\n\teor\tv25.16b,v17.16b,v5.16b\n\teor\tv26.16b,v18.16b,v6.16b\n\teor\tv27.16b,v19.16b,v7.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v28.4s,v0.4s\n\tadd\tv17.4s,v29.4s,v1.4s\n\tadd\tv18.4s,v30.4s,v2.4s\n\tadd\tv19.4s,v31.4s,v3.4s\n\tsub\tx2,x2,#64\n\n.Last_neon:\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[sp]\n\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2\n\tadd\tx0,x0,x2\n\tadd\tx4,sp,x2\n\tneg\tx2,x2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:23", "text": "eor\tv25.16b,v17.16b,v5.16b\n\teor\tv26.16b,v18.16b,v6.16b\n\teor\tv27.16b,v19.16b,v7.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\tb.eq\t.Ldone_neon\n\n\tadd\tv16.4s,v28.4s,v0.4s\n\tadd\tv17.4s,v29.4s,v1.4s\n\tadd\tv18.4s,v30.4s,v2.4s\n\tadd\tv19.4s,v31.4s,v3.4s\n\tsub\tx2,x2,#64\n\n.Last_neon:\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[sp]\n\n\tsub\tx0,x0,#1\n\tadd\tx1,x1,x2\n\tadd\tx0,x0,x2\n\tadd\tx4,sp,x2\n\tneg\tx2,x2\n\n.Loop_tail_neon:\n\tldrb\tw10,[x1,x2]\n\tldrb\tw11,[x4,x2]\n\tadd\tx2,x2,#1\n\teor\tw10,w10,w11\n\tstrb\tw10,[x0,x2]\n\tcbnz\tx2,.Loop_tail_neon\n\n\tstp\txzr,xzr,[sp,#0]\n\tstp\txzr,xzr,[sp,#16]\n\tstp\txzr,xzr,[sp,#32]\n\tstp\txzr,xzr,[sp,#48]\n\n.Ldone_neon:\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_neon,.-ChaCha20_neon\n.type\tChaCha20_512_neon,%function\n.align\t5\nChaCha20_512_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:24", "text": "ldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_neon,.-ChaCha20_neon\n.type\tChaCha20_512_neon,%function\n.align\t5\nChaCha20_512_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx5,.Lsigma\n\tadd\tx5,x5,#:lo12:.Lsigma\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n.L512_or_more_neon:\n\tsub\tsp,sp,#128+64\n\n\teor\tv7.16b,v7.16b,v7.16b\n\tldp\tx22,x23,[x5]\t\t// load sigma\n\tld1\t{v0.4s},[x5],#16\n\tldp\tx24,x25,[x3]\t\t// load key\n\tldp\tx26,x27,[x3,#16]\n\tld1\t{v1.4s,v2.4s},[x3]\n\tldp\tx28,x30,[x4]\t\t// load counter\n\tld1\t{v3.4s},[x4]\n\tld1\t{v7.s}[0],[x5]\n\tadd\tx3,x5,#16\t\t\t// .Lrot24\n#ifdef\t__AARCH64EB__\n\trev64\tv0.4s,v0.4s\n\tror\tx24,x24,#32\n\tror\tx25,x25,#32\n\tror\tx26,x26,#32\n\tror\tx27,x27,#32\n\tror\tx28,x28,#32\n\tror\tx30,x30,#32\n#endif\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// += 1\n\tstp\tq0,q1,[sp,#0]\t\t// off-load key block, invariant part\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// not typo\n\tstr\tq2,[sp,#32]\n\tadd\tv4.4s,v3.4s,v7.4s\n\tadd\tv5.4s,v4.4s,v7.4s\n\tadd\tv6.4s,v5.4s,v7.4s\n\tshl\tv7.4s,v7.4s,#2\t\t\t// 1 -> 4\n\n\tstp\td8,d9,[sp,#128+0]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#128+16]\n\tstp\td12,d13,[sp,#128+32]\n\tstp\td14,d15,[sp,#128+48]\n\n\tsub\tx2,x2,#512\t\t\t// not typo\n\n.Loop_outer_512_neon:\n\tmov\tv8.16b,v0.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:25", "text": "ror\tx30,x30,#32\n#endif\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// += 1\n\tstp\tq0,q1,[sp,#0]\t\t// off-load key block, invariant part\n\tadd\tv3.4s,v3.4s,v7.4s\t\t// not typo\n\tstr\tq2,[sp,#32]\n\tadd\tv4.4s,v3.4s,v7.4s\n\tadd\tv5.4s,v4.4s,v7.4s\n\tadd\tv6.4s,v5.4s,v7.4s\n\tshl\tv7.4s,v7.4s,#2\t\t\t// 1 -> 4\n\n\tstp\td8,d9,[sp,#128+0]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#128+16]\n\tstp\td12,d13,[sp,#128+32]\n\tstp\td14,d15,[sp,#128+48]\n\n\tsub\tx2,x2,#512\t\t\t// not typo\n\n.Loop_outer_512_neon:\n\tmov\tv8.16b,v0.16b\n\tmov\tv12.16b,v0.16b\n\tmov\tv16.16b,v0.16b\n\tmov\tv20.16b,v0.16b\n\tmov\tv24.16b,v0.16b\n\tmov\tv28.16b,v0.16b\n\tmov\tv9.16b,v1.16b\n\tmov\tw5,w22\t\t\t// unpack key block\n\tmov\tv13.16b,v1.16b\n\tlsr\tx6,x22,#32\n\tmov\tv17.16b,v1.16b\n\tmov\tw7,w23\n\tmov\tv21.16b,v1.16b\n\tlsr\tx8,x23,#32\n\tmov\tv25.16b,v1.16b\n\tmov\tw9,w24\n\tmov\tv29.16b,v1.16b\n\tlsr\tx10,x24,#32\n\tmov\tv11.16b,v3.16b\n\tmov\tw11,w25\n\tmov\tv15.16b,v4.16b\n\tlsr\tx12,x25,#32\n\tmov\tv19.16b,v5.16b\n\tmov\tw13,w26\n\tmov\tv23.16b,v6.16b\n\tlsr\tx14,x26,#32\n\tmov\tv10.16b,v2.16b\n\tmov\tw15,w27\n\tmov\tv14.16b,v2.16b\n\tlsr\tx16,x27,#32\n\tadd\tv27.4s,v11.4s,v7.4s\t\t\t// +4\n\tmov\tw17,w28\n\tadd\tv31.4s,v15.4s,v7.4s\t\t\t// +4\n\tlsr\tx19,x28,#32\n\tmov\tv18.16b,v2.16b\n\tmov\tw20,w30\n\tmov\tv22.16b,v2.16b\n\tlsr\tx21,x30,#32\n\tmov\tv26.16b,v2.16b\n\tstp\tq3,q4,[sp,#48]\t\t// off-load key block, variable part\n\tmov\tv30.16b,v2.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:26", "text": "lsr\tx12,x25,#32\n\tmov\tv19.16b,v5.16b\n\tmov\tw13,w26\n\tmov\tv23.16b,v6.16b\n\tlsr\tx14,x26,#32\n\tmov\tv10.16b,v2.16b\n\tmov\tw15,w27\n\tmov\tv14.16b,v2.16b\n\tlsr\tx16,x27,#32\n\tadd\tv27.4s,v11.4s,v7.4s\t\t\t// +4\n\tmov\tw17,w28\n\tadd\tv31.4s,v15.4s,v7.4s\t\t\t// +4\n\tlsr\tx19,x28,#32\n\tmov\tv18.16b,v2.16b\n\tmov\tw20,w30\n\tmov\tv22.16b,v2.16b\n\tlsr\tx21,x30,#32\n\tmov\tv26.16b,v2.16b\n\tstp\tq3,q4,[sp,#48]\t\t// off-load key block, variable part\n\tmov\tv30.16b,v2.16b\n\tstp\tq5,q6,[sp,#80]\n\n\tmov\tx4,#5\n\tld1\t{v6.4s},[x3]\n\tsubs\tx2,x2,#512\n.Loop_upper_neon:\n\tsub\tx4,x4,#1\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:27", "text": "eor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:28", "text": "add\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:29", "text": "ror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:30", "text": "eor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:31", "text": "add\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4\n\text\tv17.16b,v17.16b,v17.16b,#4\n\text\tv21.16b,v21.16b,v21.16b,#4\n\text\tv25.16b,v25.16b,v25.16b,#4\n\text\tv29.16b,v29.16b,v29.16b,#4\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:32", "text": "eor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:33", "text": "add\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:34", "text": "ror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:35", "text": "eor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#4\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:36", "text": "add\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#4\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12\n\text\tv25.16b,v25.16b,v25.16b,#12\n\text\tv29.16b,v29.16b,v29.16b,#12\n\tcbnz\tx4,.Loop_upper_neon\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tadd\tx6,x6,x22,lsr#32\n\tadd\tw7,w7,w23\n\tadd\tx8,x8,x23,lsr#32\n\tadd\tw9,w9,w24\n\tadd\tx10,x10,x24,lsr#32\n\tadd\tw11,w11,w25\n\tadd\tx12,x12,x25,lsr#32\n\tadd\tw13,w13,w26\n\tadd\tx14,x14,x26,lsr#32\n\tadd\tw15,w15,w27\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tw17,w17,w28\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tw20,w20,w30\n\tadd\tx21,x21,x30,lsr#32\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:37", "text": "add\tx21,x21,x30,lsr#32\n\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tx7,x7,x8,lsl#32\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tx11,x11,x12,lsl#32\n\tldp\tx10,x12,[x1,#16]\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tx15,x15,x16,lsl#32\n\tldp\tx14,x16,[x1,#32]\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tx20,x20,x21,lsl#32\n\tldp\tx19,x21,[x1,#48]\n\tadd\tx1,x1,#64\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tx15,x15,x16\n\teor\tx17,x17,x19\n\teor\tx20,x20,x21\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#1\t\t\t// increment counter\n\tmov\tw5,w22\t\t\t// unpack key block\n\tlsr\tx6,x22,#32\n\tstp\tx9,x11,[x0,#16]\n\tmov\tw7,w23\n\tlsr\tx8,x23,#32\n\tstp\tx13,x15,[x0,#32]\n\tmov\tw9,w24\n\tlsr\tx10,x24,#32\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\tmov\tw11,w25\n\tlsr\tx12,x25,#32\n\tmov\tw13,w26\n\tlsr\tx14,x26,#32\n\tmov\tw15,w27\n\tlsr\tx16,x27,#32\n\tmov\tw17,w28\n\tlsr\tx19,x28,#32\n\tmov\tw20,w30\n\tlsr\tx21,x30,#32\n\n\tmov\tx4,#5\n.Loop_lower_neon:\n\tsub\tx4,x4,#1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:38", "text": "lsr\tx8,x23,#32\n\tstp\tx13,x15,[x0,#32]\n\tmov\tw9,w24\n\tlsr\tx10,x24,#32\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\tmov\tw11,w25\n\tlsr\tx12,x25,#32\n\tmov\tw13,w26\n\tlsr\tx14,x26,#32\n\tmov\tw15,w27\n\tlsr\tx16,x27,#32\n\tmov\tw17,w28\n\tlsr\tx19,x28,#32\n\tmov\tw20,w30\n\tlsr\tx21,x30,#32\n\n\tmov\tx4,#5\n.Loop_lower_neon:\n\tsub\tx4,x4,#1\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:39", "text": "eor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:40", "text": "ushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:41", "text": "eor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:42", "text": "eor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4\n\text\tv17.16b,v17.16b,v17.16b,#4\n\text\tv21.16b,v21.16b,v21.16b,#4\n\text\tv25.16b,v25.16b,v25.16b,#4\n\text\tv29.16b,v29.16b,v29.16b,#4\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:43", "text": "ext\tv11.16b,v11.16b,v11.16b,#12\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#12\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#12\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#12\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#12\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#12\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#4\n\text\tv13.16b,v13.16b,v13.16b,#4\n\text\tv17.16b,v17.16b,v17.16b,#4\n\text\tv21.16b,v21.16b,v21.16b,#4\n\text\tv25.16b,v25.16b,v25.16b,#4\n\text\tv29.16b,v29.16b,v29.16b,#4\n\tadd\tv8.4s,v8.4s,v9.4s\n\tadd\tw5,w5,w9\n\tadd\tv12.4s,v12.4s,v13.4s\n\tadd\tw6,w6,w10\n\tadd\tv16.4s,v16.4s,v17.4s\n\tadd\tw7,w7,w11\n\tadd\tv20.4s,v20.4s,v21.4s\n\tadd\tw8,w8,w12\n\tadd\tv24.4s,v24.4s,v25.4s\n\teor\tw17,w17,w5\n\tadd\tv28.4s,v28.4s,v29.4s\n\teor\tw19,w19,w6\n\teor\tv11.16b,v11.16b,v8.16b\n\teor\tw20,w20,w7\n\teor\tv15.16b,v15.16b,v12.16b\n\teor\tw21,w21,w8\n\teor\tv19.16b,v19.16b,v16.16b\n\tror\tw17,w17,#16\n\teor\tv23.16b,v23.16b,v20.16b\n\tror\tw19,w19,#16\n\teor\tv27.16b,v27.16b,v24.16b\n\tror\tw20,w20,#16\n\teor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:44", "text": "eor\tv31.16b,v31.16b,v28.16b\n\tror\tw21,w21,#16\n\trev32\tv11.8h,v11.8h\n\tadd\tw13,w13,w17\n\trev32\tv15.8h,v15.8h\n\tadd\tw14,w14,w19\n\trev32\tv19.8h,v19.8h\n\tadd\tw15,w15,w20\n\trev32\tv23.8h,v23.8h\n\tadd\tw16,w16,w21\n\trev32\tv27.8h,v27.8h\n\teor\tw9,w9,w13\n\trev32\tv31.8h,v31.8h\n\teor\tw10,w10,w14\n\tadd\tv10.4s,v10.4s,v11.4s\n\teor\tw11,w11,w15\n\tadd\tv14.4s,v14.4s,v15.4s\n\teor\tw12,w12,w16\n\tadd\tv18.4s,v18.4s,v19.4s\n\tror\tw9,w9,#20\n\tadd\tv22.4s,v22.4s,v23.4s\n\tror\tw10,w10,#20\n\tadd\tv26.4s,v26.4s,v27.4s\n\tror\tw11,w11,#20\n\tadd\tv30.4s,v30.4s,v31.4s\n\tror\tw12,w12,#20\n\teor\tv0.16b,v9.16b,v10.16b\n\tadd\tw5,w5,w9\n\teor\tv1.16b,v13.16b,v14.16b\n\tadd\tw6,w6,w10\n\teor\tv2.16b,v17.16b,v18.16b\n\tadd\tw7,w7,w11\n\teor\tv3.16b,v21.16b,v22.16b\n\tadd\tw8,w8,w12\n\teor\tv4.16b,v25.16b,v26.16b\n\teor\tw17,w17,w5\n\teor\tv5.16b,v29.16b,v30.16b\n\teor\tw19,w19,w6\n\tushr\tv9.4s,v0.4s,#20\n\teor\tw20,w20,w7\n\tushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:45", "text": "ushr\tv13.4s,v1.4s,#20\n\teor\tw21,w21,w8\n\tushr\tv17.4s,v2.4s,#20\n\tror\tw17,w17,#24\n\tushr\tv21.4s,v3.4s,#20\n\tror\tw19,w19,#24\n\tushr\tv25.4s,v4.4s,#20\n\tror\tw20,w20,#24\n\tushr\tv29.4s,v5.4s,#20\n\tror\tw21,w21,#24\n\tsli\tv9.4s,v0.4s,#12\n\tadd\tw13,w13,w17\n\tsli\tv13.4s,v1.4s,#12\n\tadd\tw14,w14,w19\n\tsli\tv17.4s,v2.4s,#12\n\tadd\tw15,w15,w20\n\tsli\tv21.4s,v3.4s,#12\n\tadd\tw16,w16,w21\n\tsli\tv25.4s,v4.4s,#12\n\teor\tw9,w9,w13\n\tsli\tv29.4s,v5.4s,#12\n\teor\tw10,w10,w14\n\tadd\tv8.4s,v8.4s,v9.4s\n\teor\tw11,w11,w15\n\tadd\tv12.4s,v12.4s,v13.4s\n\teor\tw12,w12,w16\n\tadd\tv16.4s,v16.4s,v17.4s\n\tror\tw9,w9,#25\n\tadd\tv20.4s,v20.4s,v21.4s\n\tror\tw10,w10,#25\n\tadd\tv24.4s,v24.4s,v25.4s\n\tror\tw11,w11,#25\n\tadd\tv28.4s,v28.4s,v29.4s\n\tror\tw12,w12,#25\n\teor\tv11.16b,v11.16b,v8.16b\n\tadd\tw5,w5,w10\n\teor\tv15.16b,v15.16b,v12.16b\n\tadd\tw6,w6,w11\n\teor\tv19.16b,v19.16b,v16.16b\n\tadd\tw7,w7,w12\n\teor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:46", "text": "eor\tv23.16b,v23.16b,v20.16b\n\tadd\tw8,w8,w9\n\teor\tv27.16b,v27.16b,v24.16b\n\teor\tw21,w21,w5\n\teor\tv31.16b,v31.16b,v28.16b\n\teor\tw17,w17,w6\n\ttbl\tv11.16b,{v11.16b},v6.16b\n\teor\tw19,w19,w7\n\ttbl\tv15.16b,{v15.16b},v6.16b\n\teor\tw20,w20,w8\n\ttbl\tv19.16b,{v19.16b},v6.16b\n\tror\tw21,w21,#16\n\ttbl\tv23.16b,{v23.16b},v6.16b\n\tror\tw17,w17,#16\n\ttbl\tv27.16b,{v27.16b},v6.16b\n\tror\tw19,w19,#16\n\ttbl\tv31.16b,{v31.16b},v6.16b\n\tror\tw20,w20,#16\n\tadd\tv10.4s,v10.4s,v11.4s\n\tadd\tw15,w15,w21\n\tadd\tv14.4s,v14.4s,v15.4s\n\tadd\tw16,w16,w17\n\tadd\tv18.4s,v18.4s,v19.4s\n\tadd\tw13,w13,w19\n\tadd\tv22.4s,v22.4s,v23.4s\n\tadd\tw14,w14,w20\n\tadd\tv26.4s,v26.4s,v27.4s\n\teor\tw10,w10,w15\n\tadd\tv30.4s,v30.4s,v31.4s\n\teor\tw11,w11,w16\n\teor\tv0.16b,v9.16b,v10.16b\n\teor\tw12,w12,w13\n\teor\tv1.16b,v13.16b,v14.16b\n\teor\tw9,w9,w14\n\teor\tv2.16b,v17.16b,v18.16b\n\tror\tw10,w10,#20\n\teor\tv3.16b,v21.16b,v22.16b\n\tror\tw11,w11,#20\n\teor\tv4.16b,v25.16b,v26.16b\n\tror\tw12,w12,#20\n\teor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:47", "text": "eor\tv5.16b,v29.16b,v30.16b\n\tror\tw9,w9,#20\n\tushr\tv9.4s,v0.4s,#25\n\tadd\tw5,w5,w10\n\tushr\tv13.4s,v1.4s,#25\n\tadd\tw6,w6,w11\n\tushr\tv17.4s,v2.4s,#25\n\tadd\tw7,w7,w12\n\tushr\tv21.4s,v3.4s,#25\n\tadd\tw8,w8,w9\n\tushr\tv25.4s,v4.4s,#25\n\teor\tw21,w21,w5\n\tushr\tv29.4s,v5.4s,#25\n\teor\tw17,w17,w6\n\tsli\tv9.4s,v0.4s,#7\n\teor\tw19,w19,w7\n\tsli\tv13.4s,v1.4s,#7\n\teor\tw20,w20,w8\n\tsli\tv17.4s,v2.4s,#7\n\tror\tw21,w21,#24\n\tsli\tv21.4s,v3.4s,#7\n\tror\tw17,w17,#24\n\tsli\tv25.4s,v4.4s,#7\n\tror\tw19,w19,#24\n\tsli\tv29.4s,v5.4s,#7\n\tror\tw20,w20,#24\n\text\tv10.16b,v10.16b,v10.16b,#8\n\tadd\tw15,w15,w21\n\text\tv14.16b,v14.16b,v14.16b,#8\n\tadd\tw16,w16,w17\n\text\tv18.16b,v18.16b,v18.16b,#8\n\tadd\tw13,w13,w19\n\text\tv22.16b,v22.16b,v22.16b,#8\n\tadd\tw14,w14,w20\n\text\tv26.16b,v26.16b,v26.16b,#8\n\teor\tw10,w10,w15\n\text\tv30.16b,v30.16b,v30.16b,#8\n\teor\tw11,w11,w16\n\text\tv11.16b,v11.16b,v11.16b,#4\n\teor\tw12,w12,w13\n\text\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12\n\text\tv25.16b,v25.16b,v25.16b,#12\n\text\tv29.16b,v29.16b,v29.16b,#12\n\tcbnz\tx4,.Loop_lower_neon\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tldp\tq0,q1,[sp,#0]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:48", "text": "ext\tv15.16b,v15.16b,v15.16b,#4\n\teor\tw9,w9,w14\n\text\tv19.16b,v19.16b,v19.16b,#4\n\tror\tw10,w10,#25\n\text\tv23.16b,v23.16b,v23.16b,#4\n\tror\tw11,w11,#25\n\text\tv27.16b,v27.16b,v27.16b,#4\n\tror\tw12,w12,#25\n\text\tv31.16b,v31.16b,v31.16b,#4\n\tror\tw9,w9,#25\n\text\tv9.16b,v9.16b,v9.16b,#12\n\text\tv13.16b,v13.16b,v13.16b,#12\n\text\tv17.16b,v17.16b,v17.16b,#12\n\text\tv21.16b,v21.16b,v21.16b,#12\n\text\tv25.16b,v25.16b,v25.16b,#12\n\text\tv29.16b,v29.16b,v29.16b,#12\n\tcbnz\tx4,.Loop_lower_neon\n\n\tadd\tw5,w5,w22\t\t// accumulate key block\n\tldp\tq0,q1,[sp,#0]\n\tadd\tx6,x6,x22,lsr#32\n\tldp\tq2,q3,[sp,#32]\n\tadd\tw7,w7,w23\n\tldp\tq4,q5,[sp,#64]\n\tadd\tx8,x8,x23,lsr#32\n\tldr\tq6,[sp,#96]\n\tadd\tv8.4s,v8.4s,v0.4s\n\tadd\tw9,w9,w24\n\tadd\tv12.4s,v12.4s,v0.4s\n\tadd\tx10,x10,x24,lsr#32\n\tadd\tv16.4s,v16.4s,v0.4s\n\tadd\tw11,w11,w25\n\tadd\tv20.4s,v20.4s,v0.4s\n\tadd\tx12,x12,x25,lsr#32\n\tadd\tv24.4s,v24.4s,v0.4s\n\tadd\tw13,w13,w26\n\tadd\tv28.4s,v28.4s,v0.4s\n\tadd\tx14,x14,x26,lsr#32\n\tadd\tv10.4s,v10.4s,v2.4s\n\tadd\tw15,w15,w27\n\tadd\tv14.4s,v14.4s,v2.4s\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tv18.4s,v18.4s,v2.4s\n\tadd\tw17,w17,w28\n\tadd\tv22.4s,v22.4s,v2.4s\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tv26.4s,v26.4s,v2.4s\n\tadd\tw20,w20,w30\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tx21,x21,x30,lsr#32\n\tadd\tv27.4s,v27.4s,v7.4s\t\t\t// +4\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tv31.4s,v31.4s,v7.4s\t\t\t// +4\n\tadd\tx7,x7,x8,lsl#32\n\tadd\tv11.4s,v11.4s,v3.4s\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv15.4s,v15.4s,v4.4s\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tv19.4s,v19.4s,v5.4s\n\tadd\tx11,x11,x12,lsl#32", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:49", "text": "add\tv14.4s,v14.4s,v2.4s\n\tadd\tx16,x16,x27,lsr#32\n\tadd\tv18.4s,v18.4s,v2.4s\n\tadd\tw17,w17,w28\n\tadd\tv22.4s,v22.4s,v2.4s\n\tadd\tx19,x19,x28,lsr#32\n\tadd\tv26.4s,v26.4s,v2.4s\n\tadd\tw20,w20,w30\n\tadd\tv30.4s,v30.4s,v2.4s\n\tadd\tx21,x21,x30,lsr#32\n\tadd\tv27.4s,v27.4s,v7.4s\t\t\t// +4\n\tadd\tx5,x5,x6,lsl#32\t// pack\n\tadd\tv31.4s,v31.4s,v7.4s\t\t\t// +4\n\tadd\tx7,x7,x8,lsl#32\n\tadd\tv11.4s,v11.4s,v3.4s\n\tldp\tx6,x8,[x1,#0]\t\t// load input\n\tadd\tv15.4s,v15.4s,v4.4s\n\tadd\tx9,x9,x10,lsl#32\n\tadd\tv19.4s,v19.4s,v5.4s\n\tadd\tx11,x11,x12,lsl#32\n\tadd\tv23.4s,v23.4s,v6.4s\n\tldp\tx10,x12,[x1,#16]\n\tadd\tv27.4s,v27.4s,v3.4s\n\tadd\tx13,x13,x14,lsl#32\n\tadd\tv31.4s,v31.4s,v4.4s\n\tadd\tx15,x15,x16,lsl#32\n\tadd\tv9.4s,v9.4s,v1.4s\n\tldp\tx14,x16,[x1,#32]\n\tadd\tv13.4s,v13.4s,v1.4s\n\tadd\tx17,x17,x19,lsl#32\n\tadd\tv17.4s,v17.4s,v1.4s\n\tadd\tx20,x20,x21,lsl#32\n\tadd\tv21.4s,v21.4s,v1.4s\n\tldp\tx19,x21,[x1,#48]\n\tadd\tv25.4s,v25.4s,v1.4s\n\tadd\tx1,x1,#64\n\tadd\tv29.4s,v29.4s,v1.4s\n\n#ifdef\t__AARCH64EB__\n\trev\tx5,x5\n\trev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tld1\t{v0.16b,v1.16b,v2.16b,v3.16b},[x1],#64\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tv8.16b,v8.16b,v0.16b\n\teor\tx15,x15,x16\n\teor\tv9.16b,v9.16b,v1.16b\n\teor\tx17,x17,x19\n\teor\tv10.16b,v10.16b,v2.16b\n\teor\tx20,x20,x21", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:50", "text": "rev\tx7,x7\n\trev\tx9,x9\n\trev\tx11,x11\n\trev\tx13,x13\n\trev\tx15,x15\n\trev\tx17,x17\n\trev\tx20,x20\n#endif\n\tld1\t{v0.16b,v1.16b,v2.16b,v3.16b},[x1],#64\n\teor\tx5,x5,x6\n\teor\tx7,x7,x8\n\teor\tx9,x9,x10\n\teor\tx11,x11,x12\n\teor\tx13,x13,x14\n\teor\tv8.16b,v8.16b,v0.16b\n\teor\tx15,x15,x16\n\teor\tv9.16b,v9.16b,v1.16b\n\teor\tx17,x17,x19\n\teor\tv10.16b,v10.16b,v2.16b\n\teor\tx20,x20,x21\n\teor\tv11.16b,v11.16b,v3.16b\n\tld1\t{v0.16b,v1.16b,v2.16b,v3.16b},[x1],#64\n\n\tstp\tx5,x7,[x0,#0]\t\t// store output\n\tadd\tx28,x28,#7\t\t\t// increment counter\n\tstp\tx9,x11,[x0,#16]\n\tstp\tx13,x15,[x0,#32]\n\tstp\tx17,x20,[x0,#48]\n\tadd\tx0,x0,#64\n\tst1\t{v8.16b,v9.16b,v10.16b,v11.16b},[x0],#64\n\n\tld1\t{v8.16b,v9.16b,v10.16b,v11.16b},[x1],#64\n\teor\tv12.16b,v12.16b,v0.16b\n\teor\tv13.16b,v13.16b,v1.16b\n\teor\tv14.16b,v14.16b,v2.16b\n\teor\tv15.16b,v15.16b,v3.16b\n\tst1\t{v12.16b,v13.16b,v14.16b,v15.16b},[x0],#64\n\n\tld1\t{v12.16b,v13.16b,v14.16b,v15.16b},[x1],#64\n\teor\tv16.16b,v16.16b,v8.16b\n\tldp\tq0,q1,[sp,#0]\n\teor\tv17.16b,v17.16b,v9.16b\n\tldp\tq2,q3,[sp,#32]\n\teor\tv18.16b,v18.16b,v10.16b\n\teor\tv19.16b,v19.16b,v11.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\n\tld1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x1],#64\n\teor\tv20.16b,v20.16b,v12.16b\n\teor\tv21.16b,v21.16b,v13.16b\n\teor\tv22.16b,v22.16b,v14.16b\n\teor\tv23.16b,v23.16b,v15.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:51", "text": "ldp\tq0,q1,[sp,#0]\n\teor\tv17.16b,v17.16b,v9.16b\n\tldp\tq2,q3,[sp,#32]\n\teor\tv18.16b,v18.16b,v10.16b\n\teor\tv19.16b,v19.16b,v11.16b\n\tst1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x0],#64\n\n\tld1\t{v16.16b,v17.16b,v18.16b,v19.16b},[x1],#64\n\teor\tv20.16b,v20.16b,v12.16b\n\teor\tv21.16b,v21.16b,v13.16b\n\teor\tv22.16b,v22.16b,v14.16b\n\teor\tv23.16b,v23.16b,v15.16b\n\tst1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x0],#64\n\n\tld1\t{v20.16b,v21.16b,v22.16b,v23.16b},[x1],#64\n\teor\tv24.16b,v24.16b,v16.16b\n\teor\tv25.16b,v25.16b,v17.16b\n\teor\tv26.16b,v26.16b,v18.16b\n\teor\tv27.16b,v27.16b,v19.16b\n\tst1\t{v24.16b,v25.16b,v26.16b,v27.16b},[x0],#64\n\n\tshl\tv8.4s,v7.4s,#1\t\t\t// 4 -> 8\n\teor\tv28.16b,v28.16b,v20.16b\n\teor\tv29.16b,v29.16b,v21.16b\n\teor\tv30.16b,v30.16b,v22.16b\n\teor\tv31.16b,v31.16b,v23.16b\n\tst1\t{v28.16b,v29.16b,v30.16b,v31.16b},[x0],#64\n\n\tadd\tv3.4s,v3.4s,v8.4s\t\t\t// += 8\n\tadd\tv4.4s,v4.4s,v8.4s\n\tadd\tv5.4s,v5.4s,v8.4s\n\tadd\tv6.4s,v6.4s,v8.4s\n\n\tb.hs\t.Loop_outer_512_neon\n\n\tadds\tx2,x2,#512\n\tushr\tv7.4s,v7.4s,#1\t\t\t// 4 -> 2\n\n\tldp\td10,d11,[sp,#128+16]\t\t// meet ABI requirements\n\tldp\td12,d13,[sp,#128+32]\n\tldp\td14,d15,[sp,#128+48]\n\n\tstp\tq0,q0,[sp,#0]\t\t// wipe off-load area\n\tstp\tq0,q0,[sp,#32]\n\tstp\tq0,q0,[sp,#64]\n\n\tb.eq\t.Ldone_512_neon\n\n\tsub\tx3,x3,#16\t\t\t// .Lone\n\tcmp\tx2,#192\n\tadd\tsp,sp,#128\n\tsub\tv3.4s,v3.4s,v7.4s\t\t// -= 2\n\tld1\t{v8.4s,v9.4s},[x3]\n\tb.hs\t.Loop_outer_neon\n\n\tldp\td8,d9,[sp,#0]\t\t\t// meet ABI requirements\n\teor\tv1.16b,v1.16b,v1.16b\n\teor\tv2.16b,v2.16b,v2.16b\n\teor\tv3.16b,v3.16b,v3.16b\n\teor\tv4.16b,v4.16b,v4.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S:52", "text": "ldp\td14,d15,[sp,#128+48]\n\n\tstp\tq0,q0,[sp,#0]\t\t// wipe off-load area\n\tstp\tq0,q0,[sp,#32]\n\tstp\tq0,q0,[sp,#64]\n\n\tb.eq\t.Ldone_512_neon\n\n\tsub\tx3,x3,#16\t\t\t// .Lone\n\tcmp\tx2,#192\n\tadd\tsp,sp,#128\n\tsub\tv3.4s,v3.4s,v7.4s\t\t// -= 2\n\tld1\t{v8.4s,v9.4s},[x3]\n\tb.hs\t.Loop_outer_neon\n\n\tldp\td8,d9,[sp,#0]\t\t\t// meet ABI requirements\n\teor\tv1.16b,v1.16b,v1.16b\n\teor\tv2.16b,v2.16b,v2.16b\n\teor\tv3.16b,v3.16b,v3.16b\n\teor\tv4.16b,v4.16b,v4.16b\n\teor\tv5.16b,v5.16b,v5.16b\n\teor\tv6.16b,v6.16b,v6.16b\n\tb\t.Loop_outer\n\n.Ldone_512_neon:\n\tldp\td8,d9,[sp,#128+0]\t\t// meet ABI requirements\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#128+64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#96\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tChaCha20_512_neon,.-ChaCha20_512_neon", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/chacha-armv8.S", "line_start": 2041, "line_end": 2076}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/crypto.inc:1", "text": ".include \"arm.inc\"\n.PATH.S: ${.PARSEDIR}\n\nCPUID_SRCS += armv4cpuid.S armcap.c armv4-mont.S armv4-gf2m.S\nCPUID = yes\nCPPFLAGS += -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m\nCPPFLAGS += -DOPENSSL_CPUID_OBJ\n\n.if ${ARM_MAX_ARCH} <= 5\nCOPTS.threads_pthread.c += -DBROKEN_CLANG_ATOMICS       # no atomic 64 bit ops\n.endif\n\n.include \"../../crypto.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/crypto.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/crypto.inc", "line_start": 1, "line_end": 13}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/des.inc:1", "text": "#\t$NetBSD: des.inc,v 1.1 2025/07/17 14:25:29 christos Exp $\n\n.PATH.S: ${.PARSEDIR}\nCPPFLAGS+=\t-DDES_INT -DDES_UNROLL\n.include \"${.CURDIR}/des.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/des.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/des.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\n.if ${ARM_MAX_ARCH} >= 4\nEC_SRCS += ecp_nistz256-armv4.S\nECCPPFLAGS+= -DECP_NISTZ256_ASM\nECNI = yes\n.endif\nECCPPFLAGS+= -DOPENSSL_NO_EC_NISTP_64_GCC_128\n\n.include \"../../ec.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ec.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ec.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\n.if ${ARM_MAX_ARCH} >= 4\nEC_SRCS += ecp_nistz256-armv4.S ecp_sm2p256-armv8.S\nECCPPFLAGS+= -DECP_NISTZ256_ASM\nECNI = yes\n.endif\nECCPPFLAGS+= -DOPENSSL_NO_EC_NISTP_64_GCC_128\n\n.include \"../../ec.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ec.inc", "license": "BSD-2-Clause", "commit": "343326adbbf6e491874dca8a945d3cf7ea6eed7a", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/343326adbbf6e491874dca8a945d3cf7ea6eed7a/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ec.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n.arch\tarmv8-a\n.section\t.rodata\n\n.align\t5\n// The polynomial p\n.Lpoly:\n.quad\t0xffffffffffffffff,0xffffffff00000000,0xffffffffffffffff,0xfffffffeffffffff\n// The order of polynomial n\n.Lord:\n.quad\t0x53bbf40939d54123,0x7203df6b21c6052b,0xffffffffffffffff,0xfffffffeffffffff\n// (p + 1) / 2\n.Lpoly_div_2:\n.quad\t0x8000000000000000,0xffffffff80000000,0xffffffffffffffff,0x7fffffff7fffffff\n// (n + 1) / 2\n.Lord_div_2:\n.quad\t0xa9ddfa049ceaa092,0xb901efb590e30295,0xffffffffffffffff,0x7fffffff7fffffff\n\n.text\n\n// void bn_rshift1(BN_ULONG *a);\n.globl\tbn_rshift1\n.type\tbn_rshift1,%function\n.align\t5\nbn_rshift1:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x0]\n\tldp\tx9,x10,[x0,#16]\n\n\t// Right shift\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\tret\n.size\tbn_rshift1,.-bn_rshift1\n\n// void bn_sub(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);\n.globl\tbn_sub\n.type\tbn_sub,%function\n.align\t5\nbn_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:2", "text": "ret\n.size\tbn_rshift1,.-bn_rshift1\n\n// void bn_sub(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);\n.globl\tbn_sub\n.type\tbn_sub,%function\n.align\t5\nbn_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbc\tx10,x10,x14\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\tret\n.size\tbn_sub,.-bn_sub\n\n// void ecp_sm2p256_div_by_2(BN_ULONG *r,const BN_ULONG *a);\n.globl\tecp_sm2p256_div_by_2\n.type\tecp_sm2p256_div_by_2,%function\n.align\t5\necp_sm2p256_div_by_2:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// Save the least significant bit\n\tmov\tx3,x7\n\n\t// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lpoly_div_2\n\tadd\tx2,x2,#:lo12:.Lpoly_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1\n\tcsel\tx11,xzr,x11,eq\n\tcsel\tx12,xzr,x12,eq\n\tcsel\tx13,xzr,x13,eq\n\tcsel\tx14,xzr,x14,eq", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:3", "text": "mov\tx3,x7\n\n\t// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lpoly_div_2\n\tadd\tx2,x2,#:lo12:.Lpoly_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1\n\tcsel\tx11,xzr,x11,eq\n\tcsel\tx12,xzr,x12,eq\n\tcsel\tx13,xzr,x13,eq\n\tcsel\tx14,xzr,x14,eq\n\n\t// Add\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadc\tx10,x10,x14\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_div_by_2,.-ecp_sm2p256_div_by_2\n\n// void ecp_sm2p256_div_by_2_mod_ord(BN_ULONG *r,const BN_ULONG *a);\n.globl\tecp_sm2p256_div_by_2_mod_ord\n.type\tecp_sm2p256_div_by_2_mod_ord,%function\n.align\t5\necp_sm2p256_div_by_2_mod_ord:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// Save the least significant bit\n\tmov\tx3,x7\n\n\t// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lord_div_2\n\tadd\tx2,x2,#:lo12:.Lord_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:4", "text": "ldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// Save the least significant bit\n\tmov\tx3,x7\n\n\t// Right shift 1\n\textr\tx7,x8,x7,#1\n\textr\tx8,x9,x8,#1\n\textr\tx9,x10,x9,#1\n\tlsr\tx10,x10,#1\n\n\t// Load mod\n\tadrp\tx2,.Lord_div_2\n\tadd\tx2,x2,#:lo12:.Lord_div_2\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Parity check\n\ttst\tx3,#1\n\tcsel\tx11,xzr,x11,eq\n\tcsel\tx12,xzr,x12,eq\n\tcsel\tx13,xzr,x13,eq\n\tcsel\tx14,xzr,x14,eq\n\n\t// Add\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadc\tx10,x10,x14\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_div_by_2_mod_ord,.-ecp_sm2p256_div_by_2_mod_ord\n\n// void ecp_sm2p256_mul_by_3(BN_ULONG *r,const BN_ULONG *a);\n.globl\tecp_sm2p256_mul_by_3\n.type\tecp_sm2p256_mul_by_3,%function\n.align\t5\necp_sm2p256_mul_by_3:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// 2*a\n\tadds\tx7,x7,x7\n\tadcs\tx8,x8,x8\n\tadcs\tx9,x9,x9\n\tadcs\tx10,x10,x10\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:5", "text": ".align\t5\necp_sm2p256_mul_by_3:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\n\t// 2*a\n\tadds\tx7,x7,x7\n\tadcs\tx8,x8,x8\n\tadcs\tx9,x9,x9\n\tadcs\tx10,x10,x10\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbcs\tx15,x15,xzr\n\n\tcsel\tx7,x7,x3,cs\n\tcsel\tx8,x8,x4,cs\n\tcsel\tx9,x9,x5,cs\n\tcsel\tx10,x10,x6,cs\n\teor\tx15,x15,x15\n\n\t// 3*a\n\tldp\tx11,x12,[x1]\n\tldp\tx13,x14,[x1,#16]\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbcs\tx15,x15,xzr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:6", "text": "adcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadcs\tx15,xzr,xzr\n\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbcs\tx15,x15,xzr\n\n\tcsel\tx7,x7,x3,cs\n\tcsel\tx8,x8,x4,cs\n\tcsel\tx9,x9,x5,cs\n\tcsel\tx10,x10,x6,cs\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\tret\n.size\tecp_sm2p256_mul_by_3,.-ecp_sm2p256_mul_by_3\n\n// void ecp_sm2p256_add(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_add\n.type\tecp_sm2p256_add,%function\n.align\t5\necp_sm2p256_add:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Addition\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup Addition\n\tmov\tx3,x7", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:7", "text": "ldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Addition\n\tadds\tx7,x7,x11\n\tadcs\tx8,x8,x12\n\tadcs\tx9,x9,x13\n\tadcs\tx10,x10,x14\n\tadc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup Addition\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Sub polynomial\n\tsubs\tx3,x3,x11\n\tsbcs\tx4,x4,x12\n\tsbcs\tx5,x5,x13\n\tsbcs\tx6,x6,x14\n\tsbcs\tx15,x15,xzr\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,cc\n\tcsel\tx8,x8,x4,cc\n\tcsel\tx9,x9,x5,cc\n\tcsel\tx10,x10,x6,cc\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_add,.-ecp_sm2p256_add\n\n// void ecp_sm2p256_sub(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub\n.type\tecp_sm2p256_sub,%function\n.align\t5\necp_sm2p256_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:8", "text": "ret\n.size\tecp_sm2p256_add,.-ecp_sm2p256_add\n\n// void ecp_sm2p256_sub(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub\n.type\tecp_sm2p256_sub,%function\n.align\t5\necp_sm2p256_sub:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lpoly\n\tadd\tx2,x2,#:lo12:.Lpoly\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup subtraction\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Add polynomial\n\tadds\tx3,x3,x11\n\tadcs\tx4,x4,x12\n\tadcs\tx5,x5,x13\n\tadcs\tx6,x6,x14\n\ttst\tx15,x15\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_sub,.-ecp_sm2p256_sub\n\n// void ecp_sm2p256_sub_mod_ord(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub_mod_ord\n.type\tecp_sm2p256_sub_mod_ord,%function\n.align\t5\necp_sm2p256_sub_mod_ord:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:9", "text": "// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_sub,.-ecp_sm2p256_sub\n\n// void ecp_sm2p256_sub_mod_ord(BN_ULONG *r,const BN_ULONG *a,const BN_ULONG *b);\n.globl\tecp_sm2p256_sub_mod_ord\n.type\tecp_sm2p256_sub_mod_ord,%function\n.align\t5\necp_sm2p256_sub_mod_ord:\n\tAARCH64_VALID_CALL_TARGET\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Subtraction\n\tsubs\tx7,x7,x11\n\tsbcs\tx8,x8,x12\n\tsbcs\tx9,x9,x13\n\tsbcs\tx10,x10,x14\n\tsbc\tx15,xzr,xzr\n\n\t// Load polynomial\n\tadrp\tx2,.Lord\n\tadd\tx2,x2,#:lo12:.Lord\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n\t// Backup subtraction\n\tmov\tx3,x7\n\tmov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Add polynomial\n\tadds\tx3,x3,x11\n\tadcs\tx4,x4,x12\n\tadcs\tx5,x5,x13\n\tadcs\tx6,x6,x14\n\ttst\tx15,x15\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:10", "text": "mov\tx4,x8\n\tmov\tx5,x9\n\tmov\tx6,x10\n\n\t// Add polynomial\n\tadds\tx3,x3,x11\n\tadcs\tx4,x4,x12\n\tadcs\tx5,x5,x13\n\tadcs\tx6,x6,x14\n\ttst\tx15,x15\n\n\t// Select based on carry\n\tcsel\tx7,x7,x3,eq\n\tcsel\tx8,x8,x4,eq\n\tcsel\tx9,x9,x5,eq\n\tcsel\tx10,x10,x6,eq\n\n\t// Store results\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\tret\n.size\tecp_sm2p256_sub_mod_ord,.-ecp_sm2p256_sub_mod_ord\n\n.macro\tRDC\n\t// a = |  s7   | ... | s0  |, where si are 64-bit quantities\n\t//   = |a15|a14| ... |a1|a0|, where ai are 32-bit quantities\n\t// |    s7     |    s6     |    s5     |    s4     |\n\t// | a15 | a14 | a13 | a12 | a11 | a10 | a9  | a8  |\n\t// |    s3     |    s2     |    s1     |    s0     |\n\t// | a7  | a6  | a5  | a4  | a3  | a2  | a1  | a0  |\n\t// =================================================\n\t// | a8  | a11 | a10 | a9  | a8  |   0 |    s4     | (+)\n\t// | a9  | a15 |    s6     | a11 |   0 | a10 | a9  | (+)\n\t// | a10 |   0 | a14 | a13 | a12 |   0 |    s5     | (+)\n\t// | a11 |   0 |    s7     | a13 |   0 | a12 | a11 | (+)\n\t// | a12 |   0 |    s7     | a13 |   0 |    s6     | (+)\n\t// | a12 |   0 |   0 | a15 | a14 |   0 | a14 | a13 | (+)\n\t// | a13 |   0 |   0 |   0 | a15 |   0 | a14 | a13 | (+)\n\t// | a13 |   0 |   0 |   0 |   0 |   0 |    s7     | (+)\n\t// | a14 |   0 |   0 |   0 |   0 |   0 |    s7     | (+)\n\t// | a14 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |    s7     |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |   0 |   0 |   0 |   0 |   0 | a8  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a9  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a13 |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a14 |   0 |   0 | (-)\n\t// | U[7]| U[6]| U[5]| U[4]| U[3]| U[2]| U[1]| U[0]|\n\t// |    V[3]   |    V[2]   |    V[1]   |    V[0]   |\n\n\t// 1. 64-bit addition\n\t// t2=s6+s7+s7\n\tadds\tx5,x13,x14\n\tadcs\tx4,xzr,xzr\n\tadds\tx5,x5,x14\n\tadcs\tx4,x4,xzr\n\t// t3=s4+s5+t2\n\tadds\tx6,x11,x5\n\tadcs\tx15,x4,xzr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:11", "text": "// | a14 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 | a15 | (+)\n\t// | a15 |   0 |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |    s7     |   0 |   0 |   0 |   0 |   0 |   0 | (+)\n\t// |   0 |   0 |   0 |   0 |   0 | a8  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a9  |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a13 |   0 |   0 | (-)\n\t// |   0 |   0 |   0 |   0 |   0 | a14 |   0 |   0 | (-)\n\t// | U[7]| U[6]| U[5]| U[4]| U[3]| U[2]| U[1]| U[0]|\n\t// |    V[3]   |    V[2]   |    V[1]   |    V[0]   |\n\n\t// 1. 64-bit addition\n\t// t2=s6+s7+s7\n\tadds\tx5,x13,x14\n\tadcs\tx4,xzr,xzr\n\tadds\tx5,x5,x14\n\tadcs\tx4,x4,xzr\n\t// t3=s4+s5+t2\n\tadds\tx6,x11,x5\n\tadcs\tx15,x4,xzr\n\tadds\tx6,x6,x12\n\tadcs\tx15,x15,xzr\n\t// sum\n\tadds\tx7,x7,x6\n\tadcs\tx8,x8,x15\n\tadcs\tx9,x9,x5\n\tadcs\tx10,x10,x14\n\tadcs\tx3,xzr,xzr\n\tadds\tx10,x10,x4\n\tadcs\tx3,x3,xzr\n\n\tstp\tx7,x8,[sp,#32]\n\tstp\tx9,x10,[sp,#48]\n\n\t// 2. 64-bit to 32-bit spread\n\tmov\tx4,#0xffffffff\n\tmov\tx7,x11\n\tmov\tx8,x12\n\tmov\tx9,x13\n\tmov\tx10,x14\n\tand\tx7,x7,x4 // a8\n\tand\tx8,x8,x4 // a10\n\tand\tx9,x9,x4 // a12\n\tand\tx10,x10,x4 // a14\n\tlsr\tx11,x11,#32 // a9\n\tlsr\tx12,x12,#32 // a11\n\tlsr\tx13,x13,#32 // a13\n\tlsr\tx14,x14,#32 // a15\n\n\t// 3. 32-bit addition\n\tadd\tx4,x10,x9  // t1 <- a12 + a14\n\tadd\tx5,x14,x13  // t2 <- a13 + a15\n\tadd\tx6,x7,x11    // t3 <- a8 + a9\n\tadd\tx15,x10,x8  // t4 <- a10 + a14\n\tadd\tx14,x14,x12 // a15 <- a11 + a15\n\tadd\tx9,x5,x4   // a12 <- a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x6  // a10 <- a8 + a9 + a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x12 // a10 <- a8 + a9 + a10 + a11 + 2*(a12 + a13 + a14 + a15)", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:12", "text": "and\tx7,x7,x4 // a8\n\tand\tx8,x8,x4 // a10\n\tand\tx9,x9,x4 // a12\n\tand\tx10,x10,x4 // a14\n\tlsr\tx11,x11,#32 // a9\n\tlsr\tx12,x12,#32 // a11\n\tlsr\tx13,x13,#32 // a13\n\tlsr\tx14,x14,#32 // a15\n\n\t// 3. 32-bit addition\n\tadd\tx4,x10,x9  // t1 <- a12 + a14\n\tadd\tx5,x14,x13  // t2 <- a13 + a15\n\tadd\tx6,x7,x11    // t3 <- a8 + a9\n\tadd\tx15,x10,x8  // t4 <- a10 + a14\n\tadd\tx14,x14,x12 // a15 <- a11 + a15\n\tadd\tx9,x5,x4   // a12 <- a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + a12 + a13 + a14 + a15\n\tadd\tx8,x8,x9 // a10 <- a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x6  // a10 <- a8 + a9 + a10 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx8,x8,x12 // a10 <- a8 + a9 + a10 + a11 + 2*(a12 + a13 + a14 + a15)\n\tadd\tx9,x9,x13 // a12 <- a12 + 2*a13 + a14 + a15\n\tadd\tx9,x9,x12 // a12 <- a11 + a12 + 2*a13 + a14 + a15\n\tadd\tx9,x9,x7  // a12 <- a8 + a11 + a12 + 2*a13 + a14 + a15\n\tadd\tx6,x6,x10   // t3 <- a8 + a9 + a14\n\tadd\tx6,x6,x13   // t3 <- a8 + a9 + a13 + a14\n\tadd\tx11,x11,x5    // a9 <- a9 + a13 + a15\n\tadd\tx12,x12,x11  // a11 <- a9 + a11 + a13 + a15\n\tadd\tx12,x12,x5  // a11 <- a9 + a11 + 2*(a13 + a15)\n\tadd\tx4,x4,x15    // t1 <- a10 + a12 + 2*a14\n\n\t// U[0]  s5\ta9 + a11 + 2*(a13 + a15)\n\t// U[1]  t1\ta10 + a12 + 2*a14\n\t// U[2] -t3\ta8 + a9 + a13 + a14\n\t// U[3]  s2\ta8 + a11 + a12 + 2*a13 + a14 + a15\n\t// U[4]  s4\ta9 + a13 + a15\n\t// U[5]  t4\ta10 + a14\n\t// U[6]  s7\ta11 + a15\n\t// U[7]  s1\ta8 + a9 + a10 + a11 + 2*(a12 + a13 + a14 + a15)\n\n\t// 4. 32-bit to 64-bit\n\tlsl\tx7,x4,#32\n\textr\tx4,x9,x4,#32\n\textr\tx9,x15,x9,#32\n\textr\tx15,x8,x15,#32\n\tlsr\tx8,x8,#32\n\n\t// 5. 64-bit addition\n\tadds\tx12,x12,x7\n\tadcs\tx4,x4,xzr\n\tadcs\tx11,x11,x9\n\tadcs\tx14,x14,x15\n\tadcs\tx3,x3,x8\n\n\t// V[0]\ts5\n\t// V[1]\tt1\n\t// V[2]\ts4\n\t// V[3]\ts7\n\t// carry\tt0\n\t// sub\tt3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:13", "text": "lsl\tx7,x4,#32\n\textr\tx4,x9,x4,#32\n\textr\tx9,x15,x9,#32\n\textr\tx15,x8,x15,#32\n\tlsr\tx8,x8,#32\n\n\t// 5. 64-bit addition\n\tadds\tx12,x12,x7\n\tadcs\tx4,x4,xzr\n\tadcs\tx11,x11,x9\n\tadcs\tx14,x14,x15\n\tadcs\tx3,x3,x8\n\n\t// V[0]\ts5\n\t// V[1]\tt1\n\t// V[2]\ts4\n\t// V[3]\ts7\n\t// carry\tt0\n\t// sub\tt3\n\n\t// 5. Process s0-s3\n\tldp\tx7,x8,[sp,#32]\n\tldp\tx9,x10,[sp,#48]\n\t// add with V0-V3\n\tadds\tx7,x7,x12\n\tadcs\tx8,x8,x4\n\tadcs\tx9,x9,x11\n\tadcs\tx10,x10,x14\n\tadcs\tx3,x3,xzr\n\t// sub with t3\n\tsubs\tx8,x8,x6\n\tsbcs\tx9,x9,xzr\n\tsbcs\tx10,x10,xzr\n\tsbcs\tx3,x3,xzr\n\n\t// 6. MOD\n\t// First Mod\n\tlsl\tx4,x3,#32\n\tsubs\tx5,x4,x3\n\n\tadds\tx7,x7,x3\n\tadcs\tx8,x8,x5\n\tadcs\tx9,x9,xzr\n\tadcs\tx10,x10,x4\n\n\t// Last Mod\n\t// return y - p if y > p else y\n\tmov\tx11,x7\n\tmov\tx12,x8\n\tmov\tx13,x9\n\tmov\tx14,x10\n\n\tadrp\tx3,.Lpoly\n\tadd\tx3,x3,#:lo12:.Lpoly\n\tldp\tx4,x5,[x3]\n\tldp\tx6,x15,[x3,#16]\n\n\tadcs\tx16,xzr,xzr\n\n\tsubs\tx7,x7,x4", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:14", "text": "adds\tx7,x7,x3\n\tadcs\tx8,x8,x5\n\tadcs\tx9,x9,xzr\n\tadcs\tx10,x10,x4\n\n\t// Last Mod\n\t// return y - p if y > p else y\n\tmov\tx11,x7\n\tmov\tx12,x8\n\tmov\tx13,x9\n\tmov\tx14,x10\n\n\tadrp\tx3,.Lpoly\n\tadd\tx3,x3,#:lo12:.Lpoly\n\tldp\tx4,x5,[x3]\n\tldp\tx6,x15,[x3,#16]\n\n\tadcs\tx16,xzr,xzr\n\n\tsubs\tx7,x7,x4\n\tsbcs\tx8,x8,x5\n\tsbcs\tx9,x9,x6\n\tsbcs\tx10,x10,x15\n\tsbcs\tx16,x16,xzr\n\n\tcsel\tx7,x7,x11,cs\n\tcsel\tx8,x8,x12,cs\n\tcsel\tx9,x9,x13,cs\n\tcsel\tx10,x10,x14,cs\n\n.endm\n\n// void ecp_sm2p256_mul(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b);\n.globl\tecp_sm2p256_mul\n.type\tecp_sm2p256_mul,%function\n.align\t5\necp_sm2p256_mul:\n\tAARCH64_SIGN_LINK_REGISTER\n\t// Store scalar registers\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n// ### multiplication ###\n\t// ========================\n\t//             s3 s2 s1 s0\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s0 s0 s0 s0\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s1 s1 s1 s1\n\t//           *  *  *  *", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:15", "text": "add\tx29,sp,#0\n\tstp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx7,x8,[x1]\n\tldp\tx9,x10,[x1,#16]\n\tldp\tx11,x12,[x2]\n\tldp\tx13,x14,[x2,#16]\n\n// ### multiplication ###\n\t// ========================\n\t//             s3 s2 s1 s0\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s0 s0 s0 s0\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s1 s1 s1 s1\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4\n\t//       s2 s2 s2 s2\n\t//        *  *  *  *\n\t//       s7 s6 s5 s4\n\t//    s3 s3 s3 s3\n\t//     *  *  *  *\n\t//    s7 s6 s5 s4\n\t// ------------------------\n\t// s7 s6 s5 s4 s3 s2 s1 s0\n\t// ========================\n\n// ### s0*s4 ###\n\tmul\tx16,x7,x11\n\tumulh\tx5,x7,x11\n\n// ### s1*s4 + s0*s5 ###\n\tmul\tx3,x8,x11\n\tumulh\tx4,x8,x11\n\tadds\tx5,x5,x3\n\tadcs\tx6,x4,xzr\n\n\tmul\tx3,x7,x12\n\tumulh\tx4,x7,x12\n\tadds\tx5,x5,x3\n\tadcs\tx6,x6,x4\n\tadcs\tx15,xzr,xzr\n\n// ### s2*s4 + s1*s5 + s0*s6 ###\n\tmul\tx3,x9,x11\n\tumulh\tx4,x9,x11\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\n\tmul\tx3,x8,x12\n\tumulh\tx4,x8,x12\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\tadcs\tx17,xzr,xzr\n\n\tmul\tx3,x7,x13", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:16", "text": "mul\tx3,x7,x12\n\tumulh\tx4,x7,x12\n\tadds\tx5,x5,x3\n\tadcs\tx6,x6,x4\n\tadcs\tx15,xzr,xzr\n\n// ### s2*s4 + s1*s5 + s0*s6 ###\n\tmul\tx3,x9,x11\n\tumulh\tx4,x9,x11\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\n\tmul\tx3,x8,x12\n\tumulh\tx4,x8,x12\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\tadcs\tx17,xzr,xzr\n\n\tmul\tx3,x7,x13\n\tumulh\tx4,x7,x13\n\tadds\tx6,x6,x3\n\tadcs\tx15,x15,x4\n\tadcs\tx17,x17,xzr\n\n// ### s3*s4 + s2*s5 + s1*s6 + s0*s7 ###\n\tmul\tx3,x10,x11\n\tumulh\tx4,x10,x11\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,xzr,xzr\n\n\tmul\tx3,x9,x12\n\tumulh\tx4,x9,x12\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n\tmul\tx3,x8,x13\n\tumulh\tx4,x8,x13\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n\tmul\tx3,x7,x14\n\tumulh\tx4,x7,x14\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n// ### s3*s5 + s2*s6 + s1*s7 ###\n\tmul\tx3,x10,x12\n\tumulh\tx4,x10,x12\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,xzr,xzr\n\n\tmul\tx3,x9,x13\n\tumulh\tx4,x9,x13\n\tadds\tx17,x17,x3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:17", "text": "adds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n\tmul\tx3,x7,x14\n\tumulh\tx4,x7,x14\n\tadds\tx15,x15,x3\n\tadcs\tx17,x17,x4\n\tadcs\tx19,x19,xzr\n\n// ### s3*s5 + s2*s6 + s1*s7 ###\n\tmul\tx3,x10,x12\n\tumulh\tx4,x10,x12\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,xzr,xzr\n\n\tmul\tx3,x9,x13\n\tumulh\tx4,x9,x13\n\tadds\tx17,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,x20,xzr\n\n\tmul\tx3,x8,x14\n\tumulh\tx4,x8,x14\n\tadds\tx11,x17,x3\n\tadcs\tx19,x19,x4\n\tadcs\tx20,x20,xzr\n\n// ### s3*s6 + s2*s7 ###\n\tmul\tx3,x10,x13\n\tumulh\tx4,x10,x13\n\tadds\tx19,x19,x3\n\tadcs\tx20,x20,x4\n\tadcs\tx17,xzr,xzr\n\n\tmul\tx3,x9,x14\n\tumulh\tx4,x9,x14\n\tadds\tx12,x19,x3\n\tadcs\tx20,x20,x4\n\tadcs\tx17,x17,xzr\n\n// ### s3*s7 ###\n\tmul\tx3,x10,x14\n\tumulh\tx4,x10,x14\n\tadds\tx13,x20,x3\n\tadcs\tx14,x17,x4\n\n\tmov\tx7,x16\n\tmov\tx8,x5\n\tmov\tx9,x6\n\tmov\tx10,x15\n\n\t// result of mul: s7 s6 s5 s4 s3 s2 s1 s0\n\n// ### Reduction ###\n\tRDC\n\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:18", "text": "adcs\tx17,x17,xzr\n\n// ### s3*s7 ###\n\tmul\tx3,x10,x14\n\tumulh\tx4,x10,x14\n\tadds\tx13,x20,x3\n\tadcs\tx14,x17,x4\n\n\tmov\tx7,x16\n\tmov\tx8,x5\n\tmov\tx9,x6\n\tmov\tx10,x15\n\n\t// result of mul: s7 s6 s5 s4 s3 s2 s1 s0\n\n// ### Reduction ###\n\tRDC\n\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\t// Restore scalar registers\n\tldp\tx16,x17,[sp,#16]\n\tldp\tx19,x20,[sp,#64]\n\tldp\tx29,x30,[sp],#80\n\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tecp_sm2p256_mul,.-ecp_sm2p256_mul\n\n// void ecp_sm2p256_sqr(BN_ULONG *r, const BN_ULONG *a);\n.globl\tecp_sm2p256_sqr\n.type\tecp_sm2p256_sqr,%function\n.align\t5\n\necp_sm2p256_sqr:\n\tAARCH64_SIGN_LINK_REGISTER\n\t// Store scalar registers\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx11,x12,[x1]\n\tldp\tx13,x14,[x1,#16]\n\n// ### square ###\n\t// ========================\n\t//             s7 s6 s5 s4\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s4 s4 s4 s4\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s5 s5 s5 s5\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4\n\t//       s6 s6 s6 s6\n\t//        *  *  *  *", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:19", "text": "stp\tx16,x17,[sp,#16]\n\tstp\tx19,x20,[sp,#64]\n\n\t// Load inputs\n\tldp\tx11,x12,[x1]\n\tldp\tx13,x14,[x1,#16]\n\n// ### square ###\n\t// ========================\n\t//             s7 s6 s5 s4\n\t// *           s7 s6 s5 s4\n\t// ------------------------\n\t// +           s4 s4 s4 s4\n\t//              *  *  *  *\n\t//             s7 s6 s5 s4\n\t//          s5 s5 s5 s5\n\t//           *  *  *  *\n\t//          s7 s6 s5 s4\n\t//       s6 s6 s6 s6\n\t//        *  *  *  *\n\t//       s7 s6 s5 s4\n\t//    s7 s7 s7 s7\n\t//     *  *  *  *\n\t//    s7 s6 s5 s4\n\t// ------------------------\n\t// s7 s6 s5 s4 s3 s2 s1 s0\n\t// ========================\n\n// ### s4*s5 ###\n\tmul\tx8,x11,x12\n\tumulh\tx9,x11,x12\n\n// ### s4*s6 ###\n\tmul\tx3,x13,x11\n\tumulh\tx10,x13,x11\n\tadds\tx9,x9,x3\n\tadcs\tx10,x10,xzr\n\n// ### s4*s7 + s5*s6 ###\n\tmul\tx3,x14,x11\n\tumulh\tx4,x14,x11\n\tadds\tx10,x10,x3\n\tadcs\tx7,x4,xzr\n\n\tmul\tx3,x13,x12\n\tumulh\tx4,x13,x12\n\tadds\tx10,x10,x3\n\tadcs\tx7,x7,x4\n\tadcs\tx5,xzr,xzr\n\n// ### s5*s7 ###\n\tmul\tx3,x14,x12\n\tumulh\tx4,x14,x12\n\tadds\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\n// ### s6*s7 ###\n\tmul\tx3,x14,x13\n\tumulh\tx4,x14,x13\n\tadds\tx5,x5,x3", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:20", "text": "umulh\tx4,x14,x11\n\tadds\tx10,x10,x3\n\tadcs\tx7,x4,xzr\n\n\tmul\tx3,x13,x12\n\tumulh\tx4,x13,x12\n\tadds\tx10,x10,x3\n\tadcs\tx7,x7,x4\n\tadcs\tx5,xzr,xzr\n\n// ### s5*s7 ###\n\tmul\tx3,x14,x12\n\tumulh\tx4,x14,x12\n\tadds\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\n// ### s6*s7 ###\n\tmul\tx3,x14,x13\n\tumulh\tx4,x14,x13\n\tadds\tx5,x5,x3\n\tadcs\tx6,x4,xzr\n\n// ### 2*(t3,t2,s0,s3,s2,s1) ###\n\tadds\tx8,x8,x8\n\tadcs\tx9,x9,x9\n\tadcs\tx10,x10,x10\n\tadcs\tx7,x7,x7\n\tadcs\tx5,x5,x5\n\tadcs\tx6,x6,x6\n\tadcs\tx15,xzr,xzr\n\n// ### s4*s4 ###\n\tmul\tx16,x11,x11\n\tumulh\tx17,x11,x11\n\n// ### s5*s5 ###\n\tmul\tx11,x12,x12\n\tumulh\tx12,x12,x12\n\n// ### s6*s6 ###\n\tmul\tx3,x13,x13\n\tumulh\tx4,x13,x13\n\n// ### s7*s7 ###\n\tmul\tx19,x14,x14\n\tumulh\tx20,x14,x14\n\n\tadds\tx8,x8,x17\n\tadcs\tx9,x9,x11\n\tadcs\tx10,x10,x12\n\tadcs\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\tadcs\tx6,x6,x19\n\tadcs\tx15,x15,x20\n\n\tmov\tx11,x7\n\tmov\tx7,x16\n\tmov\tx12,x5\n\tmov\tx13,x6\n\tmov\tx14,x15", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S:21", "text": "mul\tx3,x13,x13\n\tumulh\tx4,x13,x13\n\n// ### s7*s7 ###\n\tmul\tx19,x14,x14\n\tumulh\tx20,x14,x14\n\n\tadds\tx8,x8,x17\n\tadcs\tx9,x9,x11\n\tadcs\tx10,x10,x12\n\tadcs\tx7,x7,x3\n\tadcs\tx5,x5,x4\n\tadcs\tx6,x6,x19\n\tadcs\tx15,x15,x20\n\n\tmov\tx11,x7\n\tmov\tx7,x16\n\tmov\tx12,x5\n\tmov\tx13,x6\n\tmov\tx14,x15\n\n\t// result of mul: s7 s6 s5 s4 s3 s2 s1 s0\n\n// ### Reduction ###\n\tRDC\n\n\tstp\tx7,x8,[x0]\n\tstp\tx9,x10,[x0,#16]\n\n\t// Restore scalar registers\n\tldp\tx16,x17,[sp,#16]\n\tldp\tx19,x20,[sp,#64]\n\tldp\tx29,x30,[sp],#80\n\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tecp_sm2p256_sqr,.-ecp_sm2p256_sqr", "arch": "arm", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ecp_sm2p256-armv8.S", "line_start": 801, "line_end": 837}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__) || defined(__clang__)\n.syntax\tunified\n#define ldrplb  ldrbpl\n#define ldrneb  ldrbne\n#endif\n#if defined(__thumb2__)\n.thumb\n#else\n.code\t32\n#endif\n\n.text\n\n.type\trem_4bit,%object\n.align\t5\nrem_4bit:\n.short\t0x0000,0x1C20,0x3840,0x2460\n.short\t0x7080,0x6CA0,0x48C0,0x54E0\n.short\t0xE100,0xFD20,0xD940,0xC560\n.short\t0x9180,0x8DA0,0xA9C0,0xB5E0\n.size\trem_4bit,.-rem_4bit\n\n.type\trem_4bit_get,%function\nrem_4bit_get:\n#if defined(__thumb2__)\n\tadr\tr2,rem_4bit\n#else\n\tsub\tr2,pc,#8+32\t@ &rem_4bit\n#endif\n\tb\t.Lrem_4bit_got\n\tnop\n\tnop\n.size\trem_4bit_get,.-rem_4bit_get\n\n.globl\tgcm_ghash_4bit\n.type\tgcm_ghash_4bit,%function\n.align\t4\ngcm_ghash_4bit:\n#if defined(__thumb2__)\n\tadr\tr12,rem_4bit\n#else\n\tsub\tr12,pc,#8+48\t\t@ &rem_4bit\n#endif\n\tadd\tr3,r2,r3\t\t@ r3 to point at the end\n\tstmdb\tsp!,{r3,r4,r5,r6,r7,r8,r9,r10,r11,lr}\t\t@ save r3/end too\n\n\tldmia\tr12,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ copy rem_4bit ...\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ ... to stack\n\n\tldrb\tr12,[r2,#15]\n\tldrb\tr14,[r0,#15]\n.Louter:\n\teor\tr12,r12,r14\n\tand\tr14,r12,#0xf0\n\tand\tr12,r12,#0x0f\n\tmov\tr3,#14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:2", "text": "gcm_ghash_4bit:\n#if defined(__thumb2__)\n\tadr\tr12,rem_4bit\n#else\n\tsub\tr12,pc,#8+48\t\t@ &rem_4bit\n#endif\n\tadd\tr3,r2,r3\t\t@ r3 to point at the end\n\tstmdb\tsp!,{r3,r4,r5,r6,r7,r8,r9,r10,r11,lr}\t\t@ save r3/end too\n\n\tldmia\tr12,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ copy rem_4bit ...\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\t\t@ ... to stack\n\n\tldrb\tr12,[r2,#15]\n\tldrb\tr14,[r0,#15]\n.Louter:\n\teor\tr12,r12,r14\n\tand\tr14,r12,#0xf0\n\tand\tr12,r12,#0x0f\n\tmov\tr3,#14\n\n\tadd\tr7,r1,r12,lsl#4\n\tldmia\tr7,{r4,r5,r6,r7}\t@ load Htbl[nlo]\n\tadd\tr11,r1,r14\n\tldrb\tr12,[r2,#14]\n\n\tand\tr14,r4,#0xf\t\t@ rem\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nhi]\n\tadd\tr14,r14,r14\n\teor\tr4,r8,r4,lsr#4\n\tldrh\tr8,[sp,r14]\t\t@ rem_4bit[rem]\n\teor\tr4,r4,r5,lsl#28\n\tldrb\tr14,[r0,#14]\n\teor\tr5,r9,r5,lsr#4\n\teor\tr5,r5,r6,lsl#28\n\teor\tr6,r10,r6,lsr#4\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4\n\teor\tr12,r12,r14\n\tand\tr14,r12,#0xf0\n\tand\tr12,r12,#0x0f\n\teor\tr7,r7,r8,lsl#16\n\n.Linner:\n\tadd\tr11,r1,r12,lsl#4\n\tand\tr12,r4,#0xf\t\t@ rem\n\tsubs\tr3,r3,#1\n\tadd\tr12,r12,r12\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nlo]\n\teor\tr4,r8,r4,lsr#4\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\teor\tr5,r5,r6,lsl#28\n\tldrh\tr8,[sp,r12]\t\t@ rem_4bit[rem]\n\teor\tr6,r10,r6,lsr#4\n#ifdef\t__thumb2__\n\tit\tpl\n#endif\n\tldrplb\tr12,[r2,r3]\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:3", "text": "eor\tr7,r7,r8,lsl#16\n\n.Linner:\n\tadd\tr11,r1,r12,lsl#4\n\tand\tr12,r4,#0xf\t\t@ rem\n\tsubs\tr3,r3,#1\n\tadd\tr12,r12,r12\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nlo]\n\teor\tr4,r8,r4,lsr#4\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\teor\tr5,r5,r6,lsl#28\n\tldrh\tr8,[sp,r12]\t\t@ rem_4bit[rem]\n\teor\tr6,r10,r6,lsr#4\n#ifdef\t__thumb2__\n\tit\tpl\n#endif\n\tldrplb\tr12,[r2,r3]\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4\n\n\tadd\tr11,r1,r14\n\tand\tr14,r4,#0xf\t\t@ rem\n\teor\tr7,r7,r8,lsl#16\t@ ^= rem_4bit[rem]\n\tadd\tr14,r14,r14\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nhi]\n\teor\tr4,r8,r4,lsr#4\n#ifdef\t__thumb2__\n\tit\tpl\n#endif\n\tldrplb\tr8,[r0,r3]\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\tldrh\tr9,[sp,r14]\n\teor\tr5,r5,r6,lsl#28\n\teor\tr6,r10,r6,lsr#4\n\teor\tr6,r6,r7,lsl#28\n#ifdef\t__thumb2__\n\tit\tpl\n#endif\n\teorpl\tr12,r12,r8\n\teor\tr7,r11,r7,lsr#4\n#ifdef\t__thumb2__\n\titt\tpl\n#endif\n\tandpl\tr14,r12,#0xf0\n\tandpl\tr12,r12,#0x0f\n\teor\tr7,r7,r9,lsl#16\t@ ^= rem_4bit[rem]\n\tbpl\t.Linner\n\n\tldr\tr3,[sp,#32]\t\t@ re-load r3/end\n\tadd\tr2,r2,#16\n\tmov\tr14,r4\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr4,r4\n\tstr\tr4,[r0,#12]\n#elif defined(__ARMEB__)\n\tstr\tr4,[r0,#12]\n#else\n\tmov\tr9,r4,lsr#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:4", "text": "eorpl\tr12,r12,r8\n\teor\tr7,r11,r7,lsr#4\n#ifdef\t__thumb2__\n\titt\tpl\n#endif\n\tandpl\tr14,r12,#0xf0\n\tandpl\tr12,r12,#0x0f\n\teor\tr7,r7,r9,lsl#16\t@ ^= rem_4bit[rem]\n\tbpl\t.Linner\n\n\tldr\tr3,[sp,#32]\t\t@ re-load r3/end\n\tadd\tr2,r2,#16\n\tmov\tr14,r4\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr4,r4\n\tstr\tr4,[r0,#12]\n#elif defined(__ARMEB__)\n\tstr\tr4,[r0,#12]\n#else\n\tmov\tr9,r4,lsr#8\n\tstrb\tr4,[r0,#12+3]\n\tmov\tr10,r4,lsr#16\n\tstrb\tr9,[r0,#12+2]\n\tmov\tr11,r4,lsr#24\n\tstrb\tr10,[r0,#12+1]\n\tstrb\tr11,[r0,#12]\n#endif\n\tcmp\tr2,r3\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr5,r5\n\tstr\tr5,[r0,#8]\n#elif defined(__ARMEB__)\n\tstr\tr5,[r0,#8]\n#else\n\tmov\tr9,r5,lsr#8\n\tstrb\tr5,[r0,#8+3]\n\tmov\tr10,r5,lsr#16\n\tstrb\tr9,[r0,#8+2]\n\tmov\tr11,r5,lsr#24\n\tstrb\tr10,[r0,#8+1]\n\tstrb\tr11,[r0,#8]\n#endif\n\n#ifdef __thumb2__\n\tit\tne\n#endif\n\tldrneb\tr12,[r2,#15]\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr6,r6\n\tstr\tr6,[r0,#4]\n#elif defined(__ARMEB__)\n\tstr\tr6,[r0,#4]\n#else\n\tmov\tr9,r6,lsr#8\n\tstrb\tr6,[r0,#4+3]\n\tmov\tr10,r6,lsr#16\n\tstrb\tr9,[r0,#4+2]\n\tmov\tr11,r6,lsr#24\n\tstrb\tr10,[r0,#4+1]\n\tstrb\tr11,[r0,#4]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:5", "text": "strb\tr11,[r0,#8]\n#endif\n\n#ifdef __thumb2__\n\tit\tne\n#endif\n\tldrneb\tr12,[r2,#15]\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr6,r6\n\tstr\tr6,[r0,#4]\n#elif defined(__ARMEB__)\n\tstr\tr6,[r0,#4]\n#else\n\tmov\tr9,r6,lsr#8\n\tstrb\tr6,[r0,#4+3]\n\tmov\tr10,r6,lsr#16\n\tstrb\tr9,[r0,#4+2]\n\tmov\tr11,r6,lsr#24\n\tstrb\tr10,[r0,#4+1]\n\tstrb\tr11,[r0,#4]\n#endif\n\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr7,r7\n\tstr\tr7,[r0,#0]\n#elif defined(__ARMEB__)\n\tstr\tr7,[r0,#0]\n#else\n\tmov\tr9,r7,lsr#8\n\tstrb\tr7,[r0,#0+3]\n\tmov\tr10,r7,lsr#16\n\tstrb\tr9,[r0,#0+2]\n\tmov\tr11,r7,lsr#24\n\tstrb\tr10,[r0,#0+1]\n\tstrb\tr11,[r0,#0]\n#endif\n\n\tbne\t.Louter\n\n\tadd\tsp,sp,#36\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tgcm_ghash_4bit,.-gcm_ghash_4bit\n\n.globl\tgcm_gmult_4bit\n.type\tgcm_gmult_4bit,%function\ngcm_gmult_4bit:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\tldrb\tr12,[r0,#15]\n\tb\trem_4bit_get\n.Lrem_4bit_got:\n\tand\tr14,r12,#0xf0\n\tand\tr12,r12,#0x0f\n\tmov\tr3,#14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:6", "text": "#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tgcm_ghash_4bit,.-gcm_ghash_4bit\n\n.globl\tgcm_gmult_4bit\n.type\tgcm_gmult_4bit,%function\ngcm_gmult_4bit:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\tldrb\tr12,[r0,#15]\n\tb\trem_4bit_get\n.Lrem_4bit_got:\n\tand\tr14,r12,#0xf0\n\tand\tr12,r12,#0x0f\n\tmov\tr3,#14\n\n\tadd\tr7,r1,r12,lsl#4\n\tldmia\tr7,{r4,r5,r6,r7}\t@ load Htbl[nlo]\n\tldrb\tr12,[r0,#14]\n\n\tadd\tr11,r1,r14\n\tand\tr14,r4,#0xf\t\t@ rem\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nhi]\n\tadd\tr14,r14,r14\n\teor\tr4,r8,r4,lsr#4\n\tldrh\tr8,[r2,r14]\t@ rem_4bit[rem]\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\teor\tr5,r5,r6,lsl#28\n\teor\tr6,r10,r6,lsr#4\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4\n\tand\tr14,r12,#0xf0\n\teor\tr7,r7,r8,lsl#16\n\tand\tr12,r12,#0x0f\n\n.Loop:\n\tadd\tr11,r1,r12,lsl#4\n\tand\tr12,r4,#0xf\t\t@ rem\n\tsubs\tr3,r3,#1\n\tadd\tr12,r12,r12\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nlo]\n\teor\tr4,r8,r4,lsr#4\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\teor\tr5,r5,r6,lsl#28\n\tldrh\tr8,[r2,r12]\t@ rem_4bit[rem]\n\teor\tr6,r10,r6,lsr#4\n#ifdef\t__thumb2__\n\tit\tpl\n#endif\n\tldrplb\tr12,[r0,r3]\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:7", "text": ".Loop:\n\tadd\tr11,r1,r12,lsl#4\n\tand\tr12,r4,#0xf\t\t@ rem\n\tsubs\tr3,r3,#1\n\tadd\tr12,r12,r12\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nlo]\n\teor\tr4,r8,r4,lsr#4\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\teor\tr5,r5,r6,lsl#28\n\tldrh\tr8,[r2,r12]\t@ rem_4bit[rem]\n\teor\tr6,r10,r6,lsr#4\n#ifdef\t__thumb2__\n\tit\tpl\n#endif\n\tldrplb\tr12,[r0,r3]\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4\n\n\tadd\tr11,r1,r14\n\tand\tr14,r4,#0xf\t\t@ rem\n\teor\tr7,r7,r8,lsl#16\t@ ^= rem_4bit[rem]\n\tadd\tr14,r14,r14\n\tldmia\tr11,{r8,r9,r10,r11}\t@ load Htbl[nhi]\n\teor\tr4,r8,r4,lsr#4\n\teor\tr4,r4,r5,lsl#28\n\teor\tr5,r9,r5,lsr#4\n\tldrh\tr8,[r2,r14]\t@ rem_4bit[rem]\n\teor\tr5,r5,r6,lsl#28\n\teor\tr6,r10,r6,lsr#4\n\teor\tr6,r6,r7,lsl#28\n\teor\tr7,r11,r7,lsr#4\n#ifdef\t__thumb2__\n\titt\tpl\n#endif\n\tandpl\tr14,r12,#0xf0\n\tandpl\tr12,r12,#0x0f\n\teor\tr7,r7,r8,lsl#16\t@ ^= rem_4bit[rem]\n\tbpl\t.Loop\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr4,r4\n\tstr\tr4,[r0,#12]\n#elif defined(__ARMEB__)\n\tstr\tr4,[r0,#12]\n#else\n\tmov\tr9,r4,lsr#8\n\tstrb\tr4,[r0,#12+3]\n\tmov\tr10,r4,lsr#16\n\tstrb\tr9,[r0,#12+2]\n\tmov\tr11,r4,lsr#24\n\tstrb\tr10,[r0,#12+1]\n\tstrb\tr11,[r0,#12]\n#endif\n\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr5,r5\n\tstr\tr5,[r0,#8]\n#elif defined(__ARMEB__)\n\tstr\tr5,[r0,#8]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:8", "text": "#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr4,r4\n\tstr\tr4,[r0,#12]\n#elif defined(__ARMEB__)\n\tstr\tr4,[r0,#12]\n#else\n\tmov\tr9,r4,lsr#8\n\tstrb\tr4,[r0,#12+3]\n\tmov\tr10,r4,lsr#16\n\tstrb\tr9,[r0,#12+2]\n\tmov\tr11,r4,lsr#24\n\tstrb\tr10,[r0,#12+1]\n\tstrb\tr11,[r0,#12]\n#endif\n\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr5,r5\n\tstr\tr5,[r0,#8]\n#elif defined(__ARMEB__)\n\tstr\tr5,[r0,#8]\n#else\n\tmov\tr9,r5,lsr#8\n\tstrb\tr5,[r0,#8+3]\n\tmov\tr10,r5,lsr#16\n\tstrb\tr9,[r0,#8+2]\n\tmov\tr11,r5,lsr#24\n\tstrb\tr10,[r0,#8+1]\n\tstrb\tr11,[r0,#8]\n#endif\n\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr6,r6\n\tstr\tr6,[r0,#4]\n#elif defined(__ARMEB__)\n\tstr\tr6,[r0,#4]\n#else\n\tmov\tr9,r6,lsr#8\n\tstrb\tr6,[r0,#4+3]\n\tmov\tr10,r6,lsr#16\n\tstrb\tr9,[r0,#4+2]\n\tmov\tr11,r6,lsr#24\n\tstrb\tr10,[r0,#4+1]\n\tstrb\tr11,[r0,#4]\n#endif\n\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr7,r7\n\tstr\tr7,[r0,#0]\n#elif defined(__ARMEB__)\n\tstr\tr7,[r0,#0]\n#else\n\tmov\tr9,r7,lsr#8\n\tstrb\tr7,[r0,#0+3]\n\tmov\tr10,r7,lsr#16\n\tstrb\tr9,[r0,#0+2]\n\tmov\tr11,r7,lsr#24\n\tstrb\tr10,[r0,#0+1]\n\tstrb\tr11,[r0,#0]\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:9", "text": "mov\tr11,r6,lsr#24\n\tstrb\tr10,[r0,#4+1]\n\tstrb\tr11,[r0,#4]\n#endif\n\n#if __ARM_ARCH__>=7 && defined(__ARMEL__)\n\trev\tr7,r7\n\tstr\tr7,[r0,#0]\n#elif defined(__ARMEB__)\n\tstr\tr7,[r0,#0]\n#else\n\tmov\tr9,r7,lsr#8\n\tstrb\tr7,[r0,#0+3]\n\tmov\tr10,r7,lsr#16\n\tstrb\tr9,[r0,#0+2]\n\tmov\tr11,r7,lsr#24\n\tstrb\tr10,[r0,#0+1]\n\tstrb\tr11,[r0,#0]\n#endif\n\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tgcm_gmult_4bit,.-gcm_gmult_4bit\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.globl\tgcm_init_neon\n.type\tgcm_init_neon,%function\n.align\t4\ngcm_init_neon:\n\tvld1.64\td7,[r1]!\t\t@ load H\n\tvmov.i8\tq8,#0xe1\n\tvld1.64\td6,[r1]\n\tvshl.i64\td17,#57\n\tvshr.u64\td16,#63\t\t@ t0=0xc2....01\n\tvdup.8\tq9,d7[7]\n\tvshr.u64\td26,d6,#63\n\tvshr.s8\tq9,#7\t\t\t@ broadcast carry bit\n\tvshl.i64\tq3,q3,#1\n\tvand\tq8,q8,q9\n\tvorr\td7,d26\t\t@ H<<<=1\n\tveor\tq3,q3,q8\t\t@ twisted H\n\tvstmia\tr0,{q3}\n\n\tRET\t\t\t\t\t@ bx lr\n.size\tgcm_init_neon,.-gcm_init_neon\n\n.globl\tgcm_gmult_neon\n.type\tgcm_gmult_neon,%function\n.align\t4\ngcm_gmult_neon:\n\tvld1.64\td7,[r0]!\t\t@ load Xi\n\tvld1.64\td6,[r0]!", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:10", "text": "vshl.i64\td17,#57\n\tvshr.u64\td16,#63\t\t@ t0=0xc2....01\n\tvdup.8\tq9,d7[7]\n\tvshr.u64\td26,d6,#63\n\tvshr.s8\tq9,#7\t\t\t@ broadcast carry bit\n\tvshl.i64\tq3,q3,#1\n\tvand\tq8,q8,q9\n\tvorr\td7,d26\t\t@ H<<<=1\n\tveor\tq3,q3,q8\t\t@ twisted H\n\tvstmia\tr0,{q3}\n\n\tRET\t\t\t\t\t@ bx lr\n.size\tgcm_init_neon,.-gcm_init_neon\n\n.globl\tgcm_gmult_neon\n.type\tgcm_gmult_neon,%function\n.align\t4\ngcm_gmult_neon:\n\tvld1.64\td7,[r0]!\t\t@ load Xi\n\tvld1.64\td6,[r0]!\n\tvmov.i64\td29,#0x0000ffffffffffff\n\tvldmia\tr1,{d26,d27}\t@ load twisted H\n\tvmov.i64\td30,#0x00000000ffffffff\n#ifdef __ARMEL__\n\tvrev64.8\tq3,q3\n#endif\n\tvmov.i64\td31,#0x000000000000ffff\n\tveor\td28,d26,d27\t\t@ Karatsuba pre-processing\n\tmov\tr3,#16\n\tb\t.Lgmult_neon\n.size\tgcm_gmult_neon,.-gcm_gmult_neon\n\n.globl\tgcm_ghash_neon\n.type\tgcm_ghash_neon,%function\n.align\t4\ngcm_ghash_neon:\n\tvld1.64\td1,[r0]!\t\t@ load Xi\n\tvld1.64\td0,[r0]!\n\tvmov.i64\td29,#0x0000ffffffffffff\n\tvldmia\tr1,{d26,d27}\t@ load twisted H\n\tvmov.i64\td30,#0x00000000ffffffff\n#ifdef __ARMEL__\n\tvrev64.8\tq0,q0\n#endif\n\tvmov.i64\td31,#0x000000000000ffff\n\tveor\td28,d26,d27\t\t@ Karatsuba pre-processing\n\n.Loop_neon:\n\tvld1.64\td7,[r2]!\t\t@ load inp\n\tvld1.64\td6,[r2]!\n#ifdef __ARMEL__\n\tvrev64.8\tq3,q3\n#endif\n\tveor\tq3,q0\t\t\t@ inp^=Xi\n.Lgmult_neon:\n\tvext.8\td16, d26, d26, #1\t@ A1\n\tvmull.p8\tq8, d16, d6\t\t@ F = A1*B\n\tvext.8\td0, d6, d6, #1\t@ B1\n\tvmull.p8\tq0, d26, d0\t\t@ E = A*B1\n\tvext.8\td18, d26, d26, #2\t@ A2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:11", "text": "vmov.i64\td30,#0x00000000ffffffff\n#ifdef __ARMEL__\n\tvrev64.8\tq0,q0\n#endif\n\tvmov.i64\td31,#0x000000000000ffff\n\tveor\td28,d26,d27\t\t@ Karatsuba pre-processing\n\n.Loop_neon:\n\tvld1.64\td7,[r2]!\t\t@ load inp\n\tvld1.64\td6,[r2]!\n#ifdef __ARMEL__\n\tvrev64.8\tq3,q3\n#endif\n\tveor\tq3,q0\t\t\t@ inp^=Xi\n.Lgmult_neon:\n\tvext.8\td16, d26, d26, #1\t@ A1\n\tvmull.p8\tq8, d16, d6\t\t@ F = A1*B\n\tvext.8\td0, d6, d6, #1\t@ B1\n\tvmull.p8\tq0, d26, d0\t\t@ E = A*B1\n\tvext.8\td18, d26, d26, #2\t@ A2\n\tvmull.p8\tq9, d18, d6\t\t@ H = A2*B\n\tvext.8\td22, d6, d6, #2\t@ B2\n\tvmull.p8\tq11, d26, d22\t\t@ G = A*B2\n\tvext.8\td20, d26, d26, #3\t@ A3\n\tveor\tq8, q8, q0\t\t@ L = E + F\n\tvmull.p8\tq10, d20, d6\t\t@ J = A3*B\n\tvext.8\td0, d6, d6, #3\t@ B3\n\tveor\tq9, q9, q11\t\t@ M = G + H\n\tvmull.p8\tq0, d26, d0\t\t@ I = A*B3\n\tveor\td16, d16, d17\t@ t0 = (L) (P0 + P1) << 8\n\tvand\td17, d17, d29\n\tvext.8\td22, d6, d6, #4\t@ B4\n\tveor\td18, d18, d19\t@ t1 = (M) (P2 + P3) << 16\n\tvand\td19, d19, d30\n\tvmull.p8\tq11, d26, d22\t\t@ K = A*B4\n\tveor\tq10, q10, q0\t\t@ N = I + J\n\tveor\td16, d16, d17\n\tveor\td18, d18, d19\n\tveor\td20, d20, d21\t@ t2 = (N) (P4 + P5) << 24\n\tvand\td21, d21, d31\n\tvext.8\tq8, q8, q8, #15\n\tveor\td22, d22, d23\t@ t3 = (K) (P6 + P7) << 32\n\tvmov.i64\td23, #0\n\tvext.8\tq9, q9, q9, #14\n\tveor\td20, d20, d21\n\tvmull.p8\tq0, d26, d6\t\t@ D = A*B\n\tvext.8\tq11, q11, q11, #12\n\tvext.8\tq10, q10, q10, #13\n\tveor\tq8, q8, q9\n\tveor\tq10, q10, q11\n\tveor\tq0, q0, q8\n\tveor\tq0, q0, q10\n\tveor\td6,d6,d7\t@ Karatsuba pre-processing\n\tvext.8\td16, d28, d28, #1\t@ A1\n\tvmull.p8\tq8, d16, d6\t\t@ F = A1*B\n\tvext.8\td2, d6, d6, #1\t@ B1\n\tvmull.p8\tq1, d28, d2\t\t@ E = A*B1\n\tvext.8\td18, d28, d28, #2\t@ A2\n\tvmull.p8\tq9, d18, d6\t\t@ H = A2*B\n\tvext.8\td22, d6, d6, #2\t@ B2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:12", "text": "vext.8\tq8, q8, q8, #15\n\tveor\td22, d22, d23\t@ t3 = (K) (P6 + P7) << 32\n\tvmov.i64\td23, #0\n\tvext.8\tq9, q9, q9, #14\n\tveor\td20, d20, d21\n\tvmull.p8\tq0, d26, d6\t\t@ D = A*B\n\tvext.8\tq11, q11, q11, #12\n\tvext.8\tq10, q10, q10, #13\n\tveor\tq8, q8, q9\n\tveor\tq10, q10, q11\n\tveor\tq0, q0, q8\n\tveor\tq0, q0, q10\n\tveor\td6,d6,d7\t@ Karatsuba pre-processing\n\tvext.8\td16, d28, d28, #1\t@ A1\n\tvmull.p8\tq8, d16, d6\t\t@ F = A1*B\n\tvext.8\td2, d6, d6, #1\t@ B1\n\tvmull.p8\tq1, d28, d2\t\t@ E = A*B1\n\tvext.8\td18, d28, d28, #2\t@ A2\n\tvmull.p8\tq9, d18, d6\t\t@ H = A2*B\n\tvext.8\td22, d6, d6, #2\t@ B2\n\tvmull.p8\tq11, d28, d22\t\t@ G = A*B2\n\tvext.8\td20, d28, d28, #3\t@ A3\n\tveor\tq8, q8, q1\t\t@ L = E + F\n\tvmull.p8\tq10, d20, d6\t\t@ J = A3*B\n\tvext.8\td2, d6, d6, #3\t@ B3\n\tveor\tq9, q9, q11\t\t@ M = G + H\n\tvmull.p8\tq1, d28, d2\t\t@ I = A*B3\n\tveor\td16, d16, d17\t@ t0 = (L) (P0 + P1) << 8\n\tvand\td17, d17, d29\n\tvext.8\td22, d6, d6, #4\t@ B4\n\tveor\td18, d18, d19\t@ t1 = (M) (P2 + P3) << 16\n\tvand\td19, d19, d30\n\tvmull.p8\tq11, d28, d22\t\t@ K = A*B4\n\tveor\tq10, q10, q1\t\t@ N = I + J\n\tveor\td16, d16, d17\n\tveor\td18, d18, d19\n\tveor\td20, d20, d21\t@ t2 = (N) (P4 + P5) << 24\n\tvand\td21, d21, d31\n\tvext.8\tq8, q8, q8, #15\n\tveor\td22, d22, d23\t@ t3 = (K) (P6 + P7) << 32\n\tvmov.i64\td23, #0\n\tvext.8\tq9, q9, q9, #14\n\tveor\td20, d20, d21\n\tvmull.p8\tq1, d28, d6\t\t@ D = A*B\n\tvext.8\tq11, q11, q11, #12\n\tvext.8\tq10, q10, q10, #13\n\tveor\tq8, q8, q9\n\tveor\tq10, q10, q11\n\tveor\tq1, q1, q8\n\tveor\tq1, q1, q10\n\tvext.8\td16, d27, d27, #1\t@ A1\n\tvmull.p8\tq8, d16, d7\t\t@ F = A1*B\n\tvext.8\td4, d7, d7, #1\t@ B1\n\tvmull.p8\tq2, d27, d4\t\t@ E = A*B1\n\tvext.8\td18, d27, d27, #2\t@ A2\n\tvmull.p8\tq9, d18, d7\t\t@ H = A2*B\n\tvext.8\td22, d7, d7, #2\t@ B2\n\tvmull.p8\tq11, d27, d22\t\t@ G = A*B2\n\tvext.8\td20, d27, d27, #3\t@ A3\n\tveor\tq8, q8, q2\t\t@ L = E + F", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:13", "text": "vmov.i64\td23, #0\n\tvext.8\tq9, q9, q9, #14\n\tveor\td20, d20, d21\n\tvmull.p8\tq1, d28, d6\t\t@ D = A*B\n\tvext.8\tq11, q11, q11, #12\n\tvext.8\tq10, q10, q10, #13\n\tveor\tq8, q8, q9\n\tveor\tq10, q10, q11\n\tveor\tq1, q1, q8\n\tveor\tq1, q1, q10\n\tvext.8\td16, d27, d27, #1\t@ A1\n\tvmull.p8\tq8, d16, d7\t\t@ F = A1*B\n\tvext.8\td4, d7, d7, #1\t@ B1\n\tvmull.p8\tq2, d27, d4\t\t@ E = A*B1\n\tvext.8\td18, d27, d27, #2\t@ A2\n\tvmull.p8\tq9, d18, d7\t\t@ H = A2*B\n\tvext.8\td22, d7, d7, #2\t@ B2\n\tvmull.p8\tq11, d27, d22\t\t@ G = A*B2\n\tvext.8\td20, d27, d27, #3\t@ A3\n\tveor\tq8, q8, q2\t\t@ L = E + F\n\tvmull.p8\tq10, d20, d7\t\t@ J = A3*B\n\tvext.8\td4, d7, d7, #3\t@ B3\n\tveor\tq9, q9, q11\t\t@ M = G + H\n\tvmull.p8\tq2, d27, d4\t\t@ I = A*B3\n\tveor\td16, d16, d17\t@ t0 = (L) (P0 + P1) << 8\n\tvand\td17, d17, d29\n\tvext.8\td22, d7, d7, #4\t@ B4\n\tveor\td18, d18, d19\t@ t1 = (M) (P2 + P3) << 16\n\tvand\td19, d19, d30\n\tvmull.p8\tq11, d27, d22\t\t@ K = A*B4\n\tveor\tq10, q10, q2\t\t@ N = I + J\n\tveor\td16, d16, d17\n\tveor\td18, d18, d19\n\tveor\td20, d20, d21\t@ t2 = (N) (P4 + P5) << 24\n\tvand\td21, d21, d31\n\tvext.8\tq8, q8, q8, #15\n\tveor\td22, d22, d23\t@ t3 = (K) (P6 + P7) << 32\n\tvmov.i64\td23, #0\n\tvext.8\tq9, q9, q9, #14\n\tveor\td20, d20, d21\n\tvmull.p8\tq2, d27, d7\t\t@ D = A*B\n\tvext.8\tq11, q11, q11, #12\n\tvext.8\tq10, q10, q10, #13\n\tveor\tq8, q8, q9\n\tveor\tq10, q10, q11\n\tveor\tq2, q2, q8\n\tveor\tq2, q2, q10\n\tveor\tq1,q1,q0\t\t@ Karatsuba post-processing\n\tveor\tq1,q1,q2\n\tveor\td1,d1,d2\n\tveor\td4,d4,d3\t@ Xh|Xl - 256-bit result\n\n\t@ equivalent of reduction_avx from ghash-x86_64.pl\n\tvshl.i64\tq9,q0,#57\t\t@ 1st phase\n\tvshl.i64\tq10,q0,#62\n\tveor\tq10,q10,q9\t\t@\n\tvshl.i64\tq9,q0,#63\n\tveor\tq10, q10, q9\t\t@\n\tveor\td1,d1,d20\t@\n\tveor\td4,d4,d21", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S:14", "text": "vmull.p8\tq2, d27, d7\t\t@ D = A*B\n\tvext.8\tq11, q11, q11, #12\n\tvext.8\tq10, q10, q10, #13\n\tveor\tq8, q8, q9\n\tveor\tq10, q10, q11\n\tveor\tq2, q2, q8\n\tveor\tq2, q2, q10\n\tveor\tq1,q1,q0\t\t@ Karatsuba post-processing\n\tveor\tq1,q1,q2\n\tveor\td1,d1,d2\n\tveor\td4,d4,d3\t@ Xh|Xl - 256-bit result\n\n\t@ equivalent of reduction_avx from ghash-x86_64.pl\n\tvshl.i64\tq9,q0,#57\t\t@ 1st phase\n\tvshl.i64\tq10,q0,#62\n\tveor\tq10,q10,q9\t\t@\n\tvshl.i64\tq9,q0,#63\n\tveor\tq10, q10, q9\t\t@\n\tveor\td1,d1,d20\t@\n\tveor\td4,d4,d21\n\n\tvshr.u64\tq10,q0,#1\t\t@ 2nd phase\n\tveor\tq2,q2,q0\n\tveor\tq0,q0,q10\t\t@\n\tvshr.u64\tq10,q10,#6\n\tvshr.u64\tq0,q0,#1\t\t@\n\tveor\tq0,q0,q2\t\t@\n\tveor\tq0,q0,q10\t\t@\n\n\tsubs\tr3,#16\n\tbne\t.Loop_neon\n\n#ifdef __ARMEL__\n\tvrev64.8\tq0,q0\n#endif\n\tsub\tr0,#16\n\tvst1.64\td1,[r0]!\t\t@ write out Xi\n\tvst1.64\td0,[r0]\n\n\tRET\t\t\t\t\t@ bx lr\n.size\tgcm_ghash_neon,.-gcm_ghash_neon\n#endif\n.byte\t71,72,65,83,72,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghash-armv4.S", "line_start": 521, "line_end": 565}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if __ARM_MAX_ARCH__>=7\n.fpu\tneon\n#ifdef __thumb2__\n.syntax\tunified\n.thumb\n# define INST(a,b,c,d) .byte  c,0xef,a,b\n#else\n.code\t32\n# define INST(a,b,c,d) .byte  a,b,c,0xf2\n#endif\n\n.text\n.globl\tgcm_init_v8\n.type\tgcm_init_v8,%function\n.align\t4\ngcm_init_v8:\n\tvld1.64\t{q9},[r1]\t\t@ load input H\n\tvmov.i8\tq11,#0xe1\n\tvshl.i64\tq11,q11,#57\t\t@ 0xc2.0\n\tvext.8\tq3,q9,q9,#8\n\tvshr.u64\tq10,q11,#63\n\tvdup.32\tq9,d18[1]\n\tvext.8\tq8,q10,q11,#8\t\t@ t0=0xc2....01\n\tvshr.u64\tq10,q3,#63\n\tvshr.s32\tq9,q9,#31\t\t@ broadcast carry bit\n\tvand\tq10,q10,q8\n\tvshl.i64\tq3,q3,#1\n\tvext.8\tq10,q10,q10,#8\n\tvand\tq8,q8,q9\n\tvorr\tq3,q3,q10\t\t@ H<<<=1\n\tveor\tq12,q3,q8\t\t@ twisted H\n\tvst1.64\t{q12},[r0]!\t\t@ store Htable[0]\n\n\t@ calculate H^2\n\tvext.8\tq8,q12,q12,#8\t\t@ Karatsuba pre-processing\n\tINST(0xa8,0x0e,0xa8,0xf2)\t@ pmull q0,q12,q12\n\tveor\tq8,q8,q12\n\tINST(0xa9,0x4e,0xa9,0xf2)\t@ pmull2 q2,q12,q12\n\tINST(0xa0,0x2e,0xa0,0xf2)\t@ pmull q1,q8,q8\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase\n\n\tvmov\td4,d3\t\t@ Xh|Xm - 256-bit result\n\tvmov\td3,d0\t\t@ Xm is rotated Xl\n\tveor\tq0,q1,q10\n\n\tvext.8\tq10,q0,q0,#8\t\t@ 2nd phase\n\tINST(0x26,0x0e,0xa0,0xf2)\t@ pmull q0,q0,q11\n\tveor\tq10,q10,q2\n\tveor\tq14,q0,q10\n\n\tvext.8\tq9,q14,q14,#8\t\t@ Karatsuba pre-processing\n\tveor\tq9,q9,q14", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S:2", "text": "INST(0xa9,0x4e,0xa9,0xf2)\t@ pmull2 q2,q12,q12\n\tINST(0xa0,0x2e,0xa0,0xf2)\t@ pmull q1,q8,q8\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase\n\n\tvmov\td4,d3\t\t@ Xh|Xm - 256-bit result\n\tvmov\td3,d0\t\t@ Xm is rotated Xl\n\tveor\tq0,q1,q10\n\n\tvext.8\tq10,q0,q0,#8\t\t@ 2nd phase\n\tINST(0x26,0x0e,0xa0,0xf2)\t@ pmull q0,q0,q11\n\tveor\tq10,q10,q2\n\tveor\tq14,q0,q10\n\n\tvext.8\tq9,q14,q14,#8\t\t@ Karatsuba pre-processing\n\tveor\tq9,q9,q14\n\tvext.8\tq13,q8,q9,#8\t\t@ pack Karatsuba pre-processed\n\tvst1.64\t{q13,q14},[r0]!\t@ store Htable[1..2]\n\tRET\n.size\tgcm_init_v8,.-gcm_init_v8\n.globl\tgcm_gmult_v8\n.type\tgcm_gmult_v8,%function\n.align\t4\ngcm_gmult_v8:\n\tvld1.64\t{q9},[r0]\t\t@ load Xi\n\tvmov.i8\tq11,#0xe1\n\tvld1.64\t{q12,q13},[r1]\t@ load twisted H, ...\n\tvshl.u64\tq11,q11,#57\n#ifndef __ARMEB__\n\tvrev64.8\tq9,q9\n#endif\n\tvext.8\tq3,q9,q9,#8\n\n\tINST(0x86,0x0e,0xa8,0xf2)\t@ pmull q0,q12,q3\t\t@ H.lo·Xi.lo\n\tveor\tq9,q9,q3\t\t@ Karatsuba pre-processing\n\tINST(0x87,0x4e,0xa9,0xf2)\t@ pmull2 q2,q12,q3\t\t@ H.hi·Xi.hi\n\tINST(0xa2,0x2e,0xaa,0xf2)\t@ pmull q1,q13,q9\t\t@ (H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase of reduction\n\n\tvmov\td4,d3\t\t@ Xh|Xm - 256-bit result\n\tvmov\td3,d0\t\t@ Xm is rotated Xl\n\tveor\tq0,q1,q10\n\n\tvext.8\tq10,q0,q0,#8\t\t@ 2nd phase of reduction\n\tINST(0x26,0x0e,0xa0,0xf2)\t@ pmull q0,q0,q11\n\tveor\tq10,q10,q2\n\tveor\tq0,q0,q10\n\n#ifndef __ARMEB__\n\tvrev64.8\tq0,q0\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S:3", "text": "INST(0xa2,0x2e,0xaa,0xf2)\t@ pmull q1,q13,q9\t\t@ (H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase of reduction\n\n\tvmov\td4,d3\t\t@ Xh|Xm - 256-bit result\n\tvmov\td3,d0\t\t@ Xm is rotated Xl\n\tveor\tq0,q1,q10\n\n\tvext.8\tq10,q0,q0,#8\t\t@ 2nd phase of reduction\n\tINST(0x26,0x0e,0xa0,0xf2)\t@ pmull q0,q0,q11\n\tveor\tq10,q10,q2\n\tveor\tq0,q0,q10\n\n#ifndef __ARMEB__\n\tvrev64.8\tq0,q0\n#endif\n\tvext.8\tq0,q0,q0,#8\n\tvst1.64\t{q0},[r0]\t\t@ write out Xi\n\n\tRET\n.size\tgcm_gmult_v8,.-gcm_gmult_v8\n.globl\tgcm_ghash_v8\n.type\tgcm_ghash_v8,%function\n.align\t4\ngcm_ghash_v8:\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ 32-bit ABI says so\n\tvld1.64\t{q0},[r0]\t\t@ load [rotated] Xi\n\t\t\t\t\t\t@ \"[rotated]\" means that\n\t\t\t\t\t\t@ loaded value would have\n\t\t\t\t\t\t@ to be rotated in order to\n\t\t\t\t\t\t@ make it appear as in\n\t\t\t\t\t\t@ algorithm specification\n\tsubs\tr3,r3,#32\t\t@ see if r3 is 32 or larger\n\tmov\tr12,#16\t\t@ r12 is used as post-\n\t\t\t\t\t\t@ increment for input pointer;\n\t\t\t\t\t\t@ as loop is modulo-scheduled\n\t\t\t\t\t\t@ r12 is zeroed just in time\n\t\t\t\t\t\t@ to preclude overstepping\n\t\t\t\t\t\t@ inp[len], which means that\n\t\t\t\t\t\t@ last block[s] are actually\n\t\t\t\t\t\t@ loaded twice, but last\n\t\t\t\t\t\t@ copy is not processed\n\tvld1.64\t{q12,q13},[r1]!\t@ load twisted H, ..., H^2\n\tvmov.i8\tq11,#0xe1\n\tvld1.64\t{q14},[r1]\n\tit\teq\n\tmoveq\tr12,#0\t\t\t@ is it time to zero r12?\n\tvext.8\tq0,q0,q0,#8\t\t@ rotate Xi\n\tvld1.64\t{q8},[r2]!\t@ load [rotated] I[0]\n\tvshl.u64\tq11,q11,#57\t\t@ compose 0xc2.0 constant\n#ifndef __ARMEB__\n\tvrev64.8\tq8,q8\n\tvrev64.8\tq0,q0\n#endif\n\tvext.8\tq3,q8,q8,#8\t\t@ rotate I[0]\n\tblo\t.Lodd_tail_v8\t\t@ r3 was less than 32", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S:4", "text": "@ r12 is zeroed just in time\n\t\t\t\t\t\t@ to preclude overstepping\n\t\t\t\t\t\t@ inp[len], which means that\n\t\t\t\t\t\t@ last block[s] are actually\n\t\t\t\t\t\t@ loaded twice, but last\n\t\t\t\t\t\t@ copy is not processed\n\tvld1.64\t{q12,q13},[r1]!\t@ load twisted H, ..., H^2\n\tvmov.i8\tq11,#0xe1\n\tvld1.64\t{q14},[r1]\n\tit\teq\n\tmoveq\tr12,#0\t\t\t@ is it time to zero r12?\n\tvext.8\tq0,q0,q0,#8\t\t@ rotate Xi\n\tvld1.64\t{q8},[r2]!\t@ load [rotated] I[0]\n\tvshl.u64\tq11,q11,#57\t\t@ compose 0xc2.0 constant\n#ifndef __ARMEB__\n\tvrev64.8\tq8,q8\n\tvrev64.8\tq0,q0\n#endif\n\tvext.8\tq3,q8,q8,#8\t\t@ rotate I[0]\n\tblo\t.Lodd_tail_v8\t\t@ r3 was less than 32\n\tvld1.64\t{q9},[r2],r12\t@ load [rotated] I[1]\n#ifndef __ARMEB__\n\tvrev64.8\tq9,q9\n#endif\n\tvext.8\tq7,q9,q9,#8\n\tveor\tq3,q3,q0\t\t@ I[i]^=Xi\n\tINST(0x8e,0x8e,0xa8,0xf2)\t@ pmull q4,q12,q7\t\t@ H·Ii+1\n\tveor\tq9,q9,q7\t\t@ Karatsuba pre-processing\n\tINST(0x8f,0xce,0xa9,0xf2)\t@ pmull2 q6,q12,q7\n\tb\t.Loop_mod2x_v8\n\n.align\t4\n.Loop_mod2x_v8:\n\tvext.8\tq10,q3,q3,#8\n\tsubs\tr3,r3,#32\t\t@ is there more data?\n\tINST(0x86,0x0e,0xac,0xf2)\t@ pmull q0,q14,q3\t\t@ H^2.lo·Xi.lo\n\tit\tlo\n\tmovlo\tr12,#0\t\t\t@ is it time to zero r12?\n\n\tINST(0xa2,0xae,0xaa,0xf2)\t@ pmull q5,q13,q9\n\tveor\tq10,q10,q3\t\t@ Karatsuba pre-processing\n\tINST(0x87,0x4e,0xad,0xf2)\t@ pmull2 q2,q14,q3\t\t@ H^2.hi·Xi.hi\n\tveor\tq0,q0,q4\t\t@ accumulate\n\tINST(0xa5,0x2e,0xab,0xf2)\t@ pmull2 q1,q13,q10\t\t@ (H^2.lo+H^2.hi)·(Xi.lo+Xi.hi)\n\tvld1.64\t{q8},[r2],r12\t@ load [rotated] I[i+2]\n\n\tveor\tq2,q2,q6\n\tit\teq\n\tmoveq\tr12,#0\t\t\t@ is it time to zero r12?\n\tveor\tq1,q1,q5\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tvld1.64\t{q9},[r2],r12\t@ load [rotated] I[i+3]\n#ifndef __ARMEB__\n\tvrev64.8\tq8,q8\n#endif\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase of reduction", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S:5", "text": "veor\tq10,q10,q3\t\t@ Karatsuba pre-processing\n\tINST(0x87,0x4e,0xad,0xf2)\t@ pmull2 q2,q14,q3\t\t@ H^2.hi·Xi.hi\n\tveor\tq0,q0,q4\t\t@ accumulate\n\tINST(0xa5,0x2e,0xab,0xf2)\t@ pmull2 q1,q13,q10\t\t@ (H^2.lo+H^2.hi)·(Xi.lo+Xi.hi)\n\tvld1.64\t{q8},[r2],r12\t@ load [rotated] I[i+2]\n\n\tveor\tq2,q2,q6\n\tit\teq\n\tmoveq\tr12,#0\t\t\t@ is it time to zero r12?\n\tveor\tq1,q1,q5\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tvld1.64\t{q9},[r2],r12\t@ load [rotated] I[i+3]\n#ifndef __ARMEB__\n\tvrev64.8\tq8,q8\n#endif\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase of reduction\n\n#ifndef __ARMEB__\n\tvrev64.8\tq9,q9\n#endif\n\tvmov\td4,d3\t\t@ Xh|Xm - 256-bit result\n\tvmov\td3,d0\t\t@ Xm is rotated Xl\n\tvext.8\tq7,q9,q9,#8\n\tvext.8\tq3,q8,q8,#8\n\tveor\tq0,q1,q10\n\tINST(0x8e,0x8e,0xa8,0xf2)\t@ pmull q4,q12,q7\t\t@ H·Ii+1\n\tveor\tq3,q3,q2\t\t@ accumulate q3 early\n\n\tvext.8\tq10,q0,q0,#8\t\t@ 2nd phase of reduction\n\tINST(0x26,0x0e,0xa0,0xf2)\t@ pmull q0,q0,q11\n\tveor\tq3,q3,q10\n\tveor\tq9,q9,q7\t\t@ Karatsuba pre-processing\n\tveor\tq3,q3,q0\n\tINST(0x8f,0xce,0xa9,0xf2)\t@ pmull2 q6,q12,q7\n\tbhs\t.Loop_mod2x_v8\t\t@ there was at least 32 more bytes\n\n\tveor\tq2,q2,q10\n\tvext.8\tq3,q8,q8,#8\t\t@ re-construct q3\n\tadds\tr3,r3,#32\t\t@ re-construct r3\n\tveor\tq0,q0,q2\t\t@ re-construct q0\n\tbeq\t.Ldone_v8\t\t@ is r3 zero?\n.Lodd_tail_v8:\n\tvext.8\tq10,q0,q0,#8\n\tveor\tq3,q3,q0\t\t@ inp^=Xi\n\tveor\tq9,q8,q10\t\t@ q9 is rotated inp^Xi\n\n\tINST(0x86,0x0e,0xa8,0xf2)\t@ pmull q0,q12,q3\t\t@ H.lo·Xi.lo\n\tveor\tq9,q9,q3\t\t@ Karatsuba pre-processing\n\tINST(0x87,0x4e,0xa9,0xf2)\t@ pmull2 q2,q12,q3\t\t@ H.hi·Xi.hi\n\tINST(0xa2,0x2e,0xaa,0xf2)\t@ pmull q1,q13,q9\t\t@ (H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase of reduction", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S:6", "text": "veor\tq2,q2,q10\n\tvext.8\tq3,q8,q8,#8\t\t@ re-construct q3\n\tadds\tr3,r3,#32\t\t@ re-construct r3\n\tveor\tq0,q0,q2\t\t@ re-construct q0\n\tbeq\t.Ldone_v8\t\t@ is r3 zero?\n.Lodd_tail_v8:\n\tvext.8\tq10,q0,q0,#8\n\tveor\tq3,q3,q0\t\t@ inp^=Xi\n\tveor\tq9,q8,q10\t\t@ q9 is rotated inp^Xi\n\n\tINST(0x86,0x0e,0xa8,0xf2)\t@ pmull q0,q12,q3\t\t@ H.lo·Xi.lo\n\tveor\tq9,q9,q3\t\t@ Karatsuba pre-processing\n\tINST(0x87,0x4e,0xa9,0xf2)\t@ pmull2 q2,q12,q3\t\t@ H.hi·Xi.hi\n\tINST(0xa2,0x2e,0xaa,0xf2)\t@ pmull q1,q13,q9\t\t@ (H.lo+H.hi)·(Xi.lo+Xi.hi)\n\n\tvext.8\tq9,q0,q2,#8\t\t@ Karatsuba post-processing\n\tveor\tq10,q0,q2\n\tveor\tq1,q1,q9\n\tveor\tq1,q1,q10\n\tINST(0x26,0x4e,0xe0,0xf2)\t@ pmull q10,q0,q11\t\t@ 1st phase of reduction\n\n\tvmov\td4,d3\t\t@ Xh|Xm - 256-bit result\n\tvmov\td3,d0\t\t@ Xm is rotated Xl\n\tveor\tq0,q1,q10\n\n\tvext.8\tq10,q0,q0,#8\t\t@ 2nd phase of reduction\n\tINST(0x26,0x0e,0xa0,0xf2)\t@ pmull q0,q0,q11\n\tveor\tq10,q10,q2\n\tveor\tq0,q0,q10\n\n.Ldone_v8:\n#ifndef __ARMEB__\n\tvrev64.8\tq0,q0\n#endif\n\tvext.8\tq0,q0,q0,#8\n\tvst1.64\t{q0},[r0]\t\t@ write out Xi\n\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ 32-bit ABI says so\n\tRET\n.size\tgcm_ghash_v8,.-gcm_ghash_v8\n.section\t.rodata\n.byte\t71,72,65,83,72,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S", "line_start": 201, "line_end": 245}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n.section\t.rodata\n\n.align\t8\t// strategic alignment and padding that allows to use\n\t\t// address value as loop termination condition...\n.quad\t0,0,0,0,0,0,0,0\n.type\tiotas,%object\niotas:\n.quad\t0x0000000000000001\n.quad\t0x0000000000008082\n.quad\t0x800000000000808a\n.quad\t0x8000000080008000\n.quad\t0x000000000000808b\n.quad\t0x0000000080000001\n.quad\t0x8000000080008081\n.quad\t0x8000000000008009\n.quad\t0x000000000000008a\n.quad\t0x0000000000000088\n.quad\t0x0000000080008009\n.quad\t0x000000008000000a\n.quad\t0x000000008000808b\n.quad\t0x800000000000008b\n.quad\t0x8000000000008089\n.quad\t0x8000000000008003\n.quad\t0x8000000000008002\n.quad\t0x8000000000000080\n.quad\t0x000000000000800a\n.quad\t0x800000008000000a\n.quad\t0x8000000080008081\n.quad\t0x8000000000008080\n.quad\t0x0000000080000001\n.quad\t0x8000000080008008\n.size\tiotas,.-iotas\n.text\n\n.type\tKeccakF1600_int,%function\n.align\t5\nKeccakF1600_int:\n\tAARCH64_SIGN_LINK_REGISTER\n\tadrp\tx28,iotas\n\tadd\tx28,x28,#:lo12:iotas\n\tstp\tx28,x30,[sp,#16]\t\t// 32 bytes on top are mine\n\tb\t.Loop\n.align\t4\n.Loop:\n\t////////////////////////////////////////// Theta\n\teor\tx26,x0,x5\n\tstp\tx4,x9,[sp,#0]\t// offload pair...\n\teor\tx27,x1,x6\n\teor\tx28,x2,x7\n\teor\tx30,x3,x8\n\teor\tx4,x4,x9\n\teor\tx26,x26,x10\n\teor\tx27,x27,x11\n\teor\tx28,x28,x12\n\teor\tx30,x30,x13\n\teor\tx4,x4,x14\n\teor\tx26,x26,x15", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:2", "text": "AARCH64_SIGN_LINK_REGISTER\n\tadrp\tx28,iotas\n\tadd\tx28,x28,#:lo12:iotas\n\tstp\tx28,x30,[sp,#16]\t\t// 32 bytes on top are mine\n\tb\t.Loop\n.align\t4\n.Loop:\n\t////////////////////////////////////////// Theta\n\teor\tx26,x0,x5\n\tstp\tx4,x9,[sp,#0]\t// offload pair...\n\teor\tx27,x1,x6\n\teor\tx28,x2,x7\n\teor\tx30,x3,x8\n\teor\tx4,x4,x9\n\teor\tx26,x26,x10\n\teor\tx27,x27,x11\n\teor\tx28,x28,x12\n\teor\tx30,x30,x13\n\teor\tx4,x4,x14\n\teor\tx26,x26,x15\n\teor\tx27,x27,x16\n\teor\tx28,x28,x17\n\teor\tx30,x30,x25\n\teor\tx4,x4,x19\n\teor\tx26,x26,x20\n\teor\tx28,x28,x22\n\teor\tx27,x27,x21\n\teor\tx30,x30,x23\n\teor\tx4,x4,x24\n\n\teor\tx9,x26,x28,ror#63\n\n\teor\tx1,x1,x9\n\teor\tx6,x6,x9\n\teor\tx11,x11,x9\n\teor\tx16,x16,x9\n\teor\tx21,x21,x9\n\n\teor\tx9,x27,x30,ror#63\n\teor\tx28,x28,x4,ror#63\n\teor\tx30,x30,x26,ror#63\n\teor\tx4,x4,x27,ror#63\n\n\teor\tx27,   x2,x9\t\t// mov\tx27,x2\n\teor\tx7,x7,x9\n\teor\tx12,x12,x9\n\teor\tx17,x17,x9\n\teor\tx22,x22,x9\n\n\teor\tx0,x0,x4\n\teor\tx5,x5,x4\n\teor\tx10,x10,x4\n\teor\tx15,x15,x4\n\teor\tx20,x20,x4\n\tldp\tx4,x9,[sp,#0]\t// re-load offloaded data\n\teor\tx26,   x3,x28\t\t// mov\tx26,x3\n\teor\tx8,x8,x28\n\teor\tx13,x13,x28\n\teor\tx25,x25,x28\n\teor\tx23,x23,x28", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:3", "text": "eor\tx30,x30,x26,ror#63\n\teor\tx4,x4,x27,ror#63\n\n\teor\tx27,   x2,x9\t\t// mov\tx27,x2\n\teor\tx7,x7,x9\n\teor\tx12,x12,x9\n\teor\tx17,x17,x9\n\teor\tx22,x22,x9\n\n\teor\tx0,x0,x4\n\teor\tx5,x5,x4\n\teor\tx10,x10,x4\n\teor\tx15,x15,x4\n\teor\tx20,x20,x4\n\tldp\tx4,x9,[sp,#0]\t// re-load offloaded data\n\teor\tx26,   x3,x28\t\t// mov\tx26,x3\n\teor\tx8,x8,x28\n\teor\tx13,x13,x28\n\teor\tx25,x25,x28\n\teor\tx23,x23,x28\n\n\teor\tx28,   x4,x30\t\t// mov\tx28,x4\n\teor\tx9,x9,x30\n\teor\tx14,x14,x30\n\teor\tx19,x19,x30\n\teor\tx24,x24,x30\n\n\t////////////////////////////////////////// Rho+Pi\n\tmov\tx30,x1\n\tror\tx1,x6,#64-44\n\t//mov\tx27,x2\n\tror\tx2,x12,#64-43\n\t//mov\tx26,x3\n\tror\tx3,x25,#64-21\n\t//mov\tx28,x4\n\tror\tx4,x24,#64-14\n\n\tror\tx6,x9,#64-20\n\tror\tx12,x13,#64-25\n\tror\tx25,x17,#64-15\n\tror\tx24,x21,#64-2\n\n\tror\tx9,x22,#64-61\n\tror\tx13,x19,#64-8\n\tror\tx17,x11,#64-10\n\tror\tx21,x8,#64-55\n\n\tror\tx22,x14,#64-39\n\tror\tx19,x23,#64-56\n\tror\tx11,x7,#64-6\n\tror\tx8,x16,#64-45\n\n\tror\tx14,x20,#64-18\n\tror\tx23,x15,#64-41\n\tror\tx7,x10,#64-3\n\tror\tx16,x5,#64-36\n\n\tror\tx5,x26,#64-28\n\tror\tx10,x30,#64-1\n\tror\tx15,x28,#64-27", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:4", "text": "ror\tx24,x21,#64-2\n\n\tror\tx9,x22,#64-61\n\tror\tx13,x19,#64-8\n\tror\tx17,x11,#64-10\n\tror\tx21,x8,#64-55\n\n\tror\tx22,x14,#64-39\n\tror\tx19,x23,#64-56\n\tror\tx11,x7,#64-6\n\tror\tx8,x16,#64-45\n\n\tror\tx14,x20,#64-18\n\tror\tx23,x15,#64-41\n\tror\tx7,x10,#64-3\n\tror\tx16,x5,#64-36\n\n\tror\tx5,x26,#64-28\n\tror\tx10,x30,#64-1\n\tror\tx15,x28,#64-27\n\tror\tx20,x27,#64-62\n\n\t////////////////////////////////////////// Chi+Iota\n\tbic\tx26,x2,x1\n\tbic\tx27,x3,x2\n\tbic\tx28,x0,x4\n\tbic\tx30,x1,x0\n\teor\tx0,x0,x26\n\tbic\tx26,x4,x3\n\teor\tx1,x1,x27\n\tldr\tx27,[sp,#16]\n\teor\tx3,x3,x28\n\teor\tx4,x4,x30\n\teor\tx2,x2,x26\n\tldr\tx30,[x27],#8\t\t// Iota[i++]\n\n\tbic\tx26,x7,x6\n\ttst\tx27,#255\t\t\t// are we done?\n\tstr\tx27,[sp,#16]\n\tbic\tx27,x8,x7\n\tbic\tx28,x5,x9\n\teor\tx0,x0,x30\t\t// A[0][0] ^= Iota\n\tbic\tx30,x6,x5\n\teor\tx5,x5,x26\n\tbic\tx26,x9,x8\n\teor\tx6,x6,x27\n\teor\tx8,x8,x28\n\teor\tx9,x9,x30\n\teor\tx7,x7,x26\n\n\tbic\tx26,x12,x11\n\tbic\tx27,x13,x12\n\tbic\tx28,x10,x14\n\tbic\tx30,x11,x10\n\teor\tx10,x10,x26\n\tbic\tx26,x14,x13\n\teor\tx11,x11,x27\n\teor\tx13,x13,x28\n\teor\tx14,x14,x30\n\teor\tx12,x12,x26", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:5", "text": "bic\tx28,x5,x9\n\teor\tx0,x0,x30\t\t// A[0][0] ^= Iota\n\tbic\tx30,x6,x5\n\teor\tx5,x5,x26\n\tbic\tx26,x9,x8\n\teor\tx6,x6,x27\n\teor\tx8,x8,x28\n\teor\tx9,x9,x30\n\teor\tx7,x7,x26\n\n\tbic\tx26,x12,x11\n\tbic\tx27,x13,x12\n\tbic\tx28,x10,x14\n\tbic\tx30,x11,x10\n\teor\tx10,x10,x26\n\tbic\tx26,x14,x13\n\teor\tx11,x11,x27\n\teor\tx13,x13,x28\n\teor\tx14,x14,x30\n\teor\tx12,x12,x26\n\n\tbic\tx26,x17,x16\n\tbic\tx27,x25,x17\n\tbic\tx28,x15,x19\n\tbic\tx30,x16,x15\n\teor\tx15,x15,x26\n\tbic\tx26,x19,x25\n\teor\tx16,x16,x27\n\teor\tx25,x25,x28\n\teor\tx19,x19,x30\n\teor\tx17,x17,x26\n\n\tbic\tx26,x22,x21\n\tbic\tx27,x23,x22\n\tbic\tx28,x20,x24\n\tbic\tx30,x21,x20\n\teor\tx20,x20,x26\n\tbic\tx26,x24,x23\n\teor\tx21,x21,x27\n\teor\tx23,x23,x28\n\teor\tx24,x24,x30\n\teor\tx22,x22,x26\n\n\tbne\t.Loop\n\n\tldr\tx30,[sp,#24]\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_int,.-KeccakF1600_int\n\n.type\tKeccakF1600,%function\n.align\t5\nKeccakF1600:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:6", "text": "eor\tx24,x24,x30\n\teor\tx22,x22,x26\n\n\tbne\t.Loop\n\n\tldr\tx30,[sp,#24]\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_int,.-KeccakF1600_int\n\n.type\tKeccakF1600,%function\n.align\t5\nKeccakF1600:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#48\n\n\tstr\tx0,[sp,#32]\t\t\t// offload argument\n\tmov\tx26,x0\n\tldp\tx0,x1,[x0,#16*0]\n\tldp\tx2,x3,[x26,#16*1]\n\tldp\tx4,x5,[x26,#16*2]\n\tldp\tx6,x7,[x26,#16*3]\n\tldp\tx8,x9,[x26,#16*4]\n\tldp\tx10,x11,[x26,#16*5]\n\tldp\tx12,x13,[x26,#16*6]\n\tldp\tx14,x15,[x26,#16*7]\n\tldp\tx16,x17,[x26,#16*8]\n\tldp\tx25,x19,[x26,#16*9]\n\tldp\tx20,x21,[x26,#16*10]\n\tldp\tx22,x23,[x26,#16*11]\n\tldr\tx24,[x26,#16*12]\n\n\tbl\tKeccakF1600_int\n\n\tldr\tx26,[sp,#32]\n\tstp\tx0,x1,[x26,#16*0]\n\tstp\tx2,x3,[x26,#16*1]\n\tstp\tx4,x5,[x26,#16*2]\n\tstp\tx6,x7,[x26,#16*3]\n\tstp\tx8,x9,[x26,#16*4]\n\tstp\tx10,x11,[x26,#16*5]\n\tstp\tx12,x13,[x26,#16*6]\n\tstp\tx14,x15,[x26,#16*7]\n\tstp\tx16,x17,[x26,#16*8]\n\tstp\tx25,x19,[x26,#16*9]\n\tstp\tx20,x21,[x26,#16*10]\n\tstp\tx22,x23,[x26,#16*11]\n\tstr\tx24,[x26,#16*12]\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#48\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:7", "text": "ldr\tx26,[sp,#32]\n\tstp\tx0,x1,[x26,#16*0]\n\tstp\tx2,x3,[x26,#16*1]\n\tstp\tx4,x5,[x26,#16*2]\n\tstp\tx6,x7,[x26,#16*3]\n\tstp\tx8,x9,[x26,#16*4]\n\tstp\tx10,x11,[x26,#16*5]\n\tstp\tx12,x13,[x26,#16*6]\n\tstp\tx14,x15,[x26,#16*7]\n\tstp\tx16,x17,[x26,#16*8]\n\tstp\tx25,x19,[x26,#16*9]\n\tstp\tx20,x21,[x26,#16*10]\n\tstp\tx22,x23,[x26,#16*11]\n\tstr\tx24,[x26,#16*12]\n\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#48\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#128\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600,.-KeccakF1600\n\n.globl\tSHA3_absorb\n.type\tSHA3_absorb,%function\n.align\t5\nSHA3_absorb:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-128]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\tsub\tsp,sp,#64\n\n\tstp\tx0,x1,[sp,#32]\t\t\t// offload arguments\n\tstp\tx2,x3,[sp,#48]\n\n\tmov\tx26,x0\t\t\t// uint64_t A[5][5]\n\tmov\tx27,x1\t\t\t// const void *inp\n\tmov\tx28,x2\t\t\t// size_t len\n\tmov\tx30,x3\t\t\t// size_t bsz\n\tldp\tx0,x1,[x26,#16*0]\n\tldp\tx2,x3,[x26,#16*1]\n\tldp\tx4,x5,[x26,#16*2]\n\tldp\tx6,x7,[x26,#16*3]\n\tldp\tx8,x9,[x26,#16*4]\n\tldp\tx10,x11,[x26,#16*5]\n\tldp\tx12,x13,[x26,#16*6]\n\tldp\tx14,x15,[x26,#16*7]\n\tldp\tx16,x17,[x26,#16*8]\n\tldp\tx25,x19,[x26,#16*9]\n\tldp\tx20,x21,[x26,#16*10]\n\tldp\tx22,x23,[x26,#16*11]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:8", "text": "stp\tx0,x1,[sp,#32]\t\t\t// offload arguments\n\tstp\tx2,x3,[sp,#48]\n\n\tmov\tx26,x0\t\t\t// uint64_t A[5][5]\n\tmov\tx27,x1\t\t\t// const void *inp\n\tmov\tx28,x2\t\t\t// size_t len\n\tmov\tx30,x3\t\t\t// size_t bsz\n\tldp\tx0,x1,[x26,#16*0]\n\tldp\tx2,x3,[x26,#16*1]\n\tldp\tx4,x5,[x26,#16*2]\n\tldp\tx6,x7,[x26,#16*3]\n\tldp\tx8,x9,[x26,#16*4]\n\tldp\tx10,x11,[x26,#16*5]\n\tldp\tx12,x13,[x26,#16*6]\n\tldp\tx14,x15,[x26,#16*7]\n\tldp\tx16,x17,[x26,#16*8]\n\tldp\tx25,x19,[x26,#16*9]\n\tldp\tx20,x21,[x26,#16*10]\n\tldp\tx22,x23,[x26,#16*11]\n\tldr\tx24,[x26,#16*12]\n\tb\t.Loop_absorb\n\n.align\t4\n.Loop_absorb:\n\tsubs\tx26,x28,x30\t\t// len - bsz\n\tblo\t.Labsorbed\n\n\tstr\tx26,[sp,#48]\t\t\t// save len - bsz\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx0,x0,x26\n\tcmp\tx30,#8*(0+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx1,x1,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx2,x2,x26\n\tcmp\tx30,#8*(2+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx3,x3,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx4,x4,x26", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:9", "text": "eor\tx1,x1,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx2,x2,x26\n\tcmp\tx30,#8*(2+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx3,x3,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx4,x4,x26\n\tcmp\tx30,#8*(4+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx5,x5,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx6,x6,x26\n\tcmp\tx30,#8*(6+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx7,x7,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx8,x8,x26\n\tcmp\tx30,#8*(8+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx9,x9,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx10,x10,x26\n\tcmp\tx30,#8*(10+2)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:10", "text": "beq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx8,x8,x26\n\tcmp\tx30,#8*(8+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx9,x9,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx10,x10,x26\n\tcmp\tx30,#8*(10+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx11,x11,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx12,x12,x26\n\tcmp\tx30,#8*(12+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx13,x13,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx14,x14,x26\n\tcmp\tx30,#8*(14+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx15,x15,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx16,x16,x26\n\tcmp\tx30,#8*(16+2)\n\tblo\t.Lprocess_block", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:11", "text": "ldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx14,x14,x26\n\tcmp\tx30,#8*(14+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx15,x15,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx16,x16,x26\n\tcmp\tx30,#8*(16+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx17,x17,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx25,x25,x26\n\tcmp\tx30,#8*(18+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx19,x19,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx20,x20,x26\n\tcmp\tx30,#8*(20+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx21,x21,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx22,x22,x26\n\tcmp\tx30,#8*(22+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:12", "text": "#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx20,x20,x26\n\tcmp\tx30,#8*(20+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx21,x21,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx22,x22,x26\n\tcmp\tx30,#8*(22+2)\n\tblo\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx23,x23,x26\n\tbeq\t.Lprocess_block\n\tldr\tx26,[x27],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev\tx26,x26\n#endif\n\teor\tx24,x24,x26\n\n.Lprocess_block:\n\tstr\tx27,[sp,#40]\t\t\t// save inp\n\n\tbl\tKeccakF1600_int\n\n\tldr\tx27,[sp,#40]\t\t\t// restore arguments\n\tldp\tx28,x30,[sp,#48]\n\tb\t.Loop_absorb\n\n.align\t4\n.Labsorbed:\n\tldr\tx27,[sp,#32]\n\tstp\tx0,x1,[x27,#16*0]\n\tstp\tx2,x3,[x27,#16*1]\n\tstp\tx4,x5,[x27,#16*2]\n\tstp\tx6,x7,[x27,#16*3]\n\tstp\tx8,x9,[x27,#16*4]\n\tstp\tx10,x11,[x27,#16*5]\n\tstp\tx12,x13,[x27,#16*6]\n\tstp\tx14,x15,[x27,#16*7]\n\tstp\tx16,x17,[x27,#16*8]\n\tstp\tx25,x19,[x27,#16*9]\n\tstp\tx20,x21,[x27,#16*10]\n\tstp\tx22,x23,[x27,#16*11]\n\tstr\tx24,[x27,#16*12]\n\n\tmov\tx0,x28\t\t\t// return value\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:13", "text": ".align\t4\n.Labsorbed:\n\tldr\tx27,[sp,#32]\n\tstp\tx0,x1,[x27,#16*0]\n\tstp\tx2,x3,[x27,#16*1]\n\tstp\tx4,x5,[x27,#16*2]\n\tstp\tx6,x7,[x27,#16*3]\n\tstp\tx8,x9,[x27,#16*4]\n\tstp\tx10,x11,[x27,#16*5]\n\tstp\tx12,x13,[x27,#16*6]\n\tstp\tx14,x15,[x27,#16*7]\n\tstp\tx16,x17,[x27,#16*8]\n\tstp\tx25,x19,[x27,#16*9]\n\tstp\tx20,x21,[x27,#16*10]\n\tstp\tx22,x23,[x27,#16*11]\n\tstr\tx24,[x27,#16*12]\n\n\tmov\tx0,x28\t\t\t// return value\n\tldp\tx19,x20,[x29,#16]\n\tadd\tsp,sp,#64\n\tldp\tx21,x22,[x29,#32]\n\tldp\tx23,x24,[x29,#48]\n\tldp\tx25,x26,[x29,#64]\n\tldp\tx27,x28,[x29,#80]\n\tldp\tx29,x30,[sp],#128\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_absorb,.-SHA3_absorb\n.globl\tSHA3_squeeze\n.type\tSHA3_squeeze,%function\n.align\t5\nSHA3_squeeze:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-48]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\n\tmov\tx19,x0\t\t\t// put aside arguments\n\tmov\tx20,x1\n\tmov\tx21,x2\n\tmov\tx22,x3\n\tcmp\tw4, #0\t\t\t\t// w4 = 'next' argument\n\tbne\t.Lnext_block\n\n.Loop_squeeze:\n\tldr\tx4,[x0],#8\n\tcmp\tx21,#8\n\tblo\t.Lsqueeze_tail\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x20],#8\n\tsubs\tx21,x21,#8\n\tbeq\t.Lsqueeze_done\n\n\tsubs\tx3,x3,#8\n\tbhi\t.Loop_squeeze\n.Lnext_block:\n\tmov\tx0,x19", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:14", "text": "mov\tx21,x2\n\tmov\tx22,x3\n\tcmp\tw4, #0\t\t\t\t// w4 = 'next' argument\n\tbne\t.Lnext_block\n\n.Loop_squeeze:\n\tldr\tx4,[x0],#8\n\tcmp\tx21,#8\n\tblo\t.Lsqueeze_tail\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x20],#8\n\tsubs\tx21,x21,#8\n\tbeq\t.Lsqueeze_done\n\n\tsubs\tx3,x3,#8\n\tbhi\t.Loop_squeeze\n.Lnext_block:\n\tmov\tx0,x19\n\tbl\tKeccakF1600\n\tmov\tx0,x19\n\tmov\tx3,x22\n\tb\t.Loop_squeeze\n\n.align\t4\n.Lsqueeze_tail:\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\n.Lsqueeze_done:\n\tldp\tx19,x20,[sp,#16]\n\tldp\tx21,x22,[sp,#32]\n\tldp\tx29,x30,[sp],#48\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze,.-SHA3_squeeze", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:15", "text": "lsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx21,x21,#1\n\tbeq\t.Lsqueeze_done\n\tstrb\tw4,[x20],#1\n\n.Lsqueeze_done:\n\tldp\tx19,x20,[sp,#16]\n\tldp\tx21,x22,[sp,#32]\n\tldp\tx29,x30,[sp],#48\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze,.-SHA3_squeeze\n.type\tKeccakF1600_ce,%function\n.align\t5\nKeccakF1600_ce:\n\tmov\tx9,#24\n\tadrp\tx10,iotas\n\tadd\tx10,x10,#:lo12:iotas\n\tb\t.Loop_ce\n.align\t4\n.Loop_ce:\n\t////////////////////////////////////////////////// Theta\n.inst\t0xce0f2a99\t//eor3 v25.16b,v20.16b,v15.16b,v10.16b\n.inst\t0xce102eba\t//eor3 v26.16b,v21.16b,v16.16b,v11.16b\n.inst\t0xce1132db\t//eor3 v27.16b,v22.16b,v17.16b,v12.16b\n.inst\t0xce1236fc\t//eor3 v28.16b,v23.16b,v18.16b,v13.16b\n.inst\t0xce133b1d\t//eor3 v29.16b,v24.16b,v19.16b,v14.16b\n.inst\t0xce050339\t//eor3 v25.16b,v25.16b,   v5.16b,v0.16b\n.inst\t0xce06075a\t//eor3 v26.16b,v26.16b,   v6.16b,v1.16b\n.inst\t0xce070b7b\t//eor3 v27.16b,v27.16b,   v7.16b,v2.16b\n.inst\t0xce080f9c\t//eor3 v28.16b,v28.16b,   v8.16b,v3.16b\n.inst\t0xce0913bd\t//eor3 v29.16b,v29.16b,   v9.16b,v4.16b\n\n.inst\t0xce7b8f3e\t//rax1 v30.16b,v25.16b,v27.16b\t\t\t// D[1]\n.inst\t0xce7c8f5f\t//rax1 v31.16b,v26.16b,v28.16b\t\t\t// D[2]\n.inst\t0xce7d8f7b\t//rax1 v27.16b,v27.16b,v29.16b\t\t\t// D[3]\n.inst\t0xce798f9c\t//rax1 v28.16b,v28.16b,v25.16b\t\t\t// D[4]\n.inst\t0xce7a8fbd\t//rax1 v29.16b,v29.16b,v26.16b\t\t\t// D[0]\n\n\t////////////////////////////////////////////////// Theta+Rho+Pi\n.inst\t0xce9efc39\t//xar v25.16b,   v1.16b,v30.16b,#64-1 // C[0]=A[2][0]\n\n.inst\t0xce9e50c1\t//xar v1.16b,v6.16b,v30.16b,#64-44\n.inst\t0xce9cb126\t//xar v6.16b,v9.16b,v28.16b,#64-20\n.inst\t0xce9f0ec9\t//xar v9.16b,v22.16b,v31.16b,#64-61\n.inst\t0xce9c65d6\t//xar v22.16b,v14.16b,v28.16b,#64-39\n.inst\t0xce9dba8e\t//xar v14.16b,v20.16b,v29.16b,#64-18\n\n.inst\t0xce9f085a\t//xar v26.16b,   v2.16b,v31.16b,#64-62 // C[1]=A[4][0]\n\n.inst\t0xce9f5582\t//xar v2.16b,v12.16b,v31.16b,#64-43\n.inst\t0xce9b9dac\t//xar v12.16b,v13.16b,v27.16b,#64-25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:16", "text": ".inst\t0xce7b8f3e\t//rax1 v30.16b,v25.16b,v27.16b\t\t\t// D[1]\n.inst\t0xce7c8f5f\t//rax1 v31.16b,v26.16b,v28.16b\t\t\t// D[2]\n.inst\t0xce7d8f7b\t//rax1 v27.16b,v27.16b,v29.16b\t\t\t// D[3]\n.inst\t0xce798f9c\t//rax1 v28.16b,v28.16b,v25.16b\t\t\t// D[4]\n.inst\t0xce7a8fbd\t//rax1 v29.16b,v29.16b,v26.16b\t\t\t// D[0]\n\n\t////////////////////////////////////////////////// Theta+Rho+Pi\n.inst\t0xce9efc39\t//xar v25.16b,   v1.16b,v30.16b,#64-1 // C[0]=A[2][0]\n\n.inst\t0xce9e50c1\t//xar v1.16b,v6.16b,v30.16b,#64-44\n.inst\t0xce9cb126\t//xar v6.16b,v9.16b,v28.16b,#64-20\n.inst\t0xce9f0ec9\t//xar v9.16b,v22.16b,v31.16b,#64-61\n.inst\t0xce9c65d6\t//xar v22.16b,v14.16b,v28.16b,#64-39\n.inst\t0xce9dba8e\t//xar v14.16b,v20.16b,v29.16b,#64-18\n\n.inst\t0xce9f085a\t//xar v26.16b,   v2.16b,v31.16b,#64-62 // C[1]=A[4][0]\n\n.inst\t0xce9f5582\t//xar v2.16b,v12.16b,v31.16b,#64-43\n.inst\t0xce9b9dac\t//xar v12.16b,v13.16b,v27.16b,#64-25\n.inst\t0xce9ce26d\t//xar v13.16b,v19.16b,v28.16b,#64-8\n.inst\t0xce9b22f3\t//xar v19.16b,v23.16b,v27.16b,#64-56\n.inst\t0xce9d5df7\t//xar v23.16b,v15.16b,v29.16b,#64-41\n\n.inst\t0xce9c948f\t//xar v15.16b,v4.16b,v28.16b,#64-27\n\n.inst\t0xce9ccb1c\t//xar v28.16b,   v24.16b,v28.16b,#64-14 // D[4]=A[0][4]\n.inst\t0xce9efab8\t//xar v24.16b,v21.16b,v30.16b,#64-2\n.inst\t0xce9b2508\t//xar v8.16b,v8.16b,v27.16b,#64-55 // A[1][3]=A[4][1]\n.inst\t0xce9e4e04\t//xar v4.16b,v16.16b,v30.16b,#64-45 // A[0][4]=A[1][3]\n.inst\t0xce9d70b0\t//xar v16.16b,v5.16b,v29.16b,#64-36\n\n.inst\t0xce9b9065\t//xar v5.16b,v3.16b,v27.16b,#64-28\n\n\teor\tv0.16b,v0.16b,v29.16b\n\n.inst\t0xce9bae5b\t//xar v27.16b,   v18.16b,v27.16b,#64-21 // D[3]=A[0][3]\n.inst\t0xce9fc623\t//xar v3.16b,v17.16b,v31.16b,#64-15 // A[0][3]=A[3][3]\n.inst\t0xce9ed97e\t//xar v30.16b,   v11.16b,v30.16b,#64-10 // D[1]=A[3][2]\n.inst\t0xce9fe8ff\t//xar v31.16b,   v7.16b,v31.16b,#64-6 // D[2]=A[2][1]\n.inst\t0xce9df55d\t//xar v29.16b,   v10.16b,v29.16b,#64-3 // D[0]=A[1][2]\n\n\t////////////////////////////////////////////////// Chi+Iota\n.inst\t0xce362354\t//bcax v20.16b,v26.16b,   v22.16b,v8.16b\t// A[1][3]=A[4][1]\n.inst\t0xce375915\t//bcax v21.16b,v8.16b,v23.16b,v22.16b\t// A[1][3]=A[4][1]\n.inst\t0xce385ed6\t//bcax v22.16b,v22.16b,v24.16b,v23.16b\n.inst\t0xce3a62f7\t//bcax v23.16b,v23.16b,v26.16b,   v24.16b\n.inst\t0xce286b18\t//bcax v24.16b,v24.16b,v8.16b,v26.16b\t// A[1][3]=A[4][1]\n\n\tld1r\t{v26.2d},[x10],#8\n\n.inst\t0xce330fd1\t//bcax v17.16b,v30.16b,   v19.16b,v3.16b\t// A[0][3]=A[3][3]\n.inst\t0xce2f4c72\t//bcax v18.16b,v3.16b,v15.16b,v19.16b\t// A[0][3]=A[3][3]\n.inst\t0xce303e73\t//bcax v19.16b,v19.16b,v16.16b,v15.16b\n.inst\t0xce3e41ef\t//bcax v15.16b,v15.16b,v30.16b,   v16.16b\n.inst\t0xce237a10\t//bcax v16.16b,v16.16b,v3.16b,v30.16b\t// A[0][3]=A[3][3]\n\n.inst\t0xce2c7f2a\t//bcax v10.16b,v25.16b,   v12.16b,v31.16b\n.inst\t0xce2d33eb\t//bcax v11.16b,v31.16b,   v13.16b,v12.16b\n.inst\t0xce2e358c\t//bcax v12.16b,v12.16b,v14.16b,v13.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:17", "text": ".inst\t0xce9df55d\t//xar v29.16b,   v10.16b,v29.16b,#64-3 // D[0]=A[1][2]\n\n\t////////////////////////////////////////////////// Chi+Iota\n.inst\t0xce362354\t//bcax v20.16b,v26.16b,   v22.16b,v8.16b\t// A[1][3]=A[4][1]\n.inst\t0xce375915\t//bcax v21.16b,v8.16b,v23.16b,v22.16b\t// A[1][3]=A[4][1]\n.inst\t0xce385ed6\t//bcax v22.16b,v22.16b,v24.16b,v23.16b\n.inst\t0xce3a62f7\t//bcax v23.16b,v23.16b,v26.16b,   v24.16b\n.inst\t0xce286b18\t//bcax v24.16b,v24.16b,v8.16b,v26.16b\t// A[1][3]=A[4][1]\n\n\tld1r\t{v26.2d},[x10],#8\n\n.inst\t0xce330fd1\t//bcax v17.16b,v30.16b,   v19.16b,v3.16b\t// A[0][3]=A[3][3]\n.inst\t0xce2f4c72\t//bcax v18.16b,v3.16b,v15.16b,v19.16b\t// A[0][3]=A[3][3]\n.inst\t0xce303e73\t//bcax v19.16b,v19.16b,v16.16b,v15.16b\n.inst\t0xce3e41ef\t//bcax v15.16b,v15.16b,v30.16b,   v16.16b\n.inst\t0xce237a10\t//bcax v16.16b,v16.16b,v3.16b,v30.16b\t// A[0][3]=A[3][3]\n\n.inst\t0xce2c7f2a\t//bcax v10.16b,v25.16b,   v12.16b,v31.16b\n.inst\t0xce2d33eb\t//bcax v11.16b,v31.16b,   v13.16b,v12.16b\n.inst\t0xce2e358c\t//bcax v12.16b,v12.16b,v14.16b,v13.16b\n.inst\t0xce3939ad\t//bcax v13.16b,v13.16b,v25.16b,   v14.16b\n.inst\t0xce3f65ce\t//bcax v14.16b,v14.16b,v31.16b,   v25.16b\n\n.inst\t0xce2913a7\t//bcax v7.16b,v29.16b,   v9.16b,v4.16b\t// A[0][4]=A[1][3]\n.inst\t0xce252488\t//bcax v8.16b,v4.16b,v5.16b,v9.16b\t// A[0][4]=A[1][3]\n.inst\t0xce261529\t//bcax v9.16b,v9.16b,v6.16b,v5.16b\n.inst\t0xce3d18a5\t//bcax v5.16b,v5.16b,v29.16b,   v6.16b\n.inst\t0xce2474c6\t//bcax v6.16b,v6.16b,v4.16b,v29.16b\t// A[0][4]=A[1][3]\n\n.inst\t0xce207363\t//bcax v3.16b,v27.16b,   v0.16b,v28.16b\n.inst\t0xce210384\t//bcax v4.16b,v28.16b,   v1.16b,v0.16b\n.inst\t0xce220400\t//bcax v0.16b,v0.16b,v2.16b,v1.16b\n.inst\t0xce3b0821\t//bcax v1.16b,v1.16b,v27.16b,   v2.16b\n.inst\t0xce3c6c42\t//bcax v2.16b,v2.16b,v28.16b,   v27.16b\n\n\teor\tv0.16b,v0.16b,v26.16b\n\n\tsubs\tx9,x9,#1\n\tbne\t.Loop_ce\n\n\tret\n.size\tKeccakF1600_ce,.-KeccakF1600_ce\n\n.type\tKeccakF1600_cext,%function\n.align\t5\nKeccakF1600_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tldp\td0,d1,[x0,#8*0]\n\tldp\td2,d3,[x0,#8*2]\n\tldp\td4,d5,[x0,#8*4]\n\tldp\td6,d7,[x0,#8*6]\n\tldp\td8,d9,[x0,#8*8]\n\tldp\td10,d11,[x0,#8*10]\n\tldp\td12,d13,[x0,#8*12]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:18", "text": "ret\n.size\tKeccakF1600_ce,.-KeccakF1600_ce\n\n.type\tKeccakF1600_cext,%function\n.align\t5\nKeccakF1600_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tldp\td0,d1,[x0,#8*0]\n\tldp\td2,d3,[x0,#8*2]\n\tldp\td4,d5,[x0,#8*4]\n\tldp\td6,d7,[x0,#8*6]\n\tldp\td8,d9,[x0,#8*8]\n\tldp\td10,d11,[x0,#8*10]\n\tldp\td12,d13,[x0,#8*12]\n\tldp\td14,d15,[x0,#8*14]\n\tldp\td16,d17,[x0,#8*16]\n\tldp\td18,d19,[x0,#8*18]\n\tldp\td20,d21,[x0,#8*20]\n\tldp\td22,d23,[x0,#8*22]\n\tldr\td24,[x0,#8*24]\n\tbl\tKeccakF1600_ce\n\tldr\tx30,[sp,#8]\n\tstp\td0,d1,[x0,#8*0]\n\tstp\td2,d3,[x0,#8*2]\n\tstp\td4,d5,[x0,#8*4]\n\tstp\td6,d7,[x0,#8*6]\n\tstp\td8,d9,[x0,#8*8]\n\tstp\td10,d11,[x0,#8*10]\n\tstp\td12,d13,[x0,#8*12]\n\tstp\td14,d15,[x0,#8*14]\n\tstp\td16,d17,[x0,#8*16]\n\tstp\td18,d19,[x0,#8*18]\n\tstp\td20,d21,[x0,#8*20]\n\tstp\td22,d23,[x0,#8*22]\n\tstr\td24,[x0,#8*24]\n\n\tldp\td8,d9,[sp,#16]\n\tldp\td10,d11,[sp,#32]\n\tldp\td12,d13,[sp,#48]\n\tldp\td14,d15,[sp,#64]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_cext,.-KeccakF1600_cext\n.globl\tSHA3_absorb_cext\n.type\tSHA3_absorb_cext,%function\n.align\t5\nSHA3_absorb_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:19", "text": "str\td24,[x0,#8*24]\n\n\tldp\td8,d9,[sp,#16]\n\tldp\td10,d11,[sp,#32]\n\tldp\td12,d13,[sp,#48]\n\tldp\td14,d15,[sp,#64]\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tKeccakF1600_cext,.-KeccakF1600_cext\n.globl\tSHA3_absorb_cext\n.type\tSHA3_absorb_cext,%function\n.align\t5\nSHA3_absorb_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#16]\t\t// per ABI requirement\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\tldp\td0,d1,[x0,#8*0]\n\tldp\td2,d3,[x0,#8*2]\n\tldp\td4,d5,[x0,#8*4]\n\tldp\td6,d7,[x0,#8*6]\n\tldp\td8,d9,[x0,#8*8]\n\tldp\td10,d11,[x0,#8*10]\n\tldp\td12,d13,[x0,#8*12]\n\tldp\td14,d15,[x0,#8*14]\n\tldp\td16,d17,[x0,#8*16]\n\tldp\td18,d19,[x0,#8*18]\n\tldp\td20,d21,[x0,#8*20]\n\tldp\td22,d23,[x0,#8*22]\n\tldr\td24,[x0,#8*24]\n\tb\t.Loop_absorb_ce\n\n.align\t4\n.Loop_absorb_ce:\n\tsubs\tx2,x2,x3\t\t// len - bsz\n\tblo\t.Labsorbed_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv0.16b,v0.16b,v31.16b\n\tcmp\tx3,#8*(0+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv1.16b,v1.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv2.16b,v2.16b,v31.16b\n\tcmp\tx3,#8*(2+2)\n\tblo\t.Lprocess_block_ce", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:20", "text": "ldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv0.16b,v0.16b,v31.16b\n\tcmp\tx3,#8*(0+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv1.16b,v1.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv2.16b,v2.16b,v31.16b\n\tcmp\tx3,#8*(2+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv3.16b,v3.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv4.16b,v4.16b,v31.16b\n\tcmp\tx3,#8*(4+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv5.16b,v5.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv6.16b,v6.16b,v31.16b\n\tcmp\tx3,#8*(6+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv7.16b,v7.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv8.16b,v8.16b,v31.16b\n\tcmp\tx3,#8*(8+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:21", "text": "#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv6.16b,v6.16b,v31.16b\n\tcmp\tx3,#8*(6+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv7.16b,v7.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv8.16b,v8.16b,v31.16b\n\tcmp\tx3,#8*(8+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv9.16b,v9.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv10.16b,v10.16b,v31.16b\n\tcmp\tx3,#8*(10+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv11.16b,v11.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv12.16b,v12.16b,v31.16b\n\tcmp\tx3,#8*(12+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv13.16b,v13.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv14.16b,v14.16b,v31.16b\n\tcmp\tx3,#8*(14+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:22", "text": "rev64\tv31.16b,v31.16b\n#endif\n\teor\tv12.16b,v12.16b,v31.16b\n\tcmp\tx3,#8*(12+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv13.16b,v13.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv14.16b,v14.16b,v31.16b\n\tcmp\tx3,#8*(14+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv15.16b,v15.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv16.16b,v16.16b,v31.16b\n\tcmp\tx3,#8*(16+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv17.16b,v17.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv18.16b,v18.16b,v31.16b\n\tcmp\tx3,#8*(18+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv19.16b,v19.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv20.16b,v20.16b,v31.16b\n\tcmp\tx3,#8*(20+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:23", "text": "#endif\n\teor\tv18.16b,v18.16b,v31.16b\n\tcmp\tx3,#8*(18+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv19.16b,v19.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv20.16b,v20.16b,v31.16b\n\tcmp\tx3,#8*(20+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv21.16b,v21.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv22.16b,v22.16b,v31.16b\n\tcmp\tx3,#8*(22+2)\n\tblo\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv23.16b,v23.16b,v31.16b\n\tbeq\t.Lprocess_block_ce\n\tldr\td31,[x1],#8\t\t// *inp++\n#ifdef\t__AARCH64EB__\n\trev64\tv31.16b,v31.16b\n#endif\n\teor\tv24.16b,v24.16b,v31.16b\n\n.Lprocess_block_ce:\n\n\tbl\tKeccakF1600_ce\n\n\tb\t.Loop_absorb_ce\n\n.align\t4\n.Labsorbed_ce:\n\tstp\td0,d1,[x0,#8*0]\n\tstp\td2,d3,[x0,#8*2]\n\tstp\td4,d5,[x0,#8*4]\n\tstp\td6,d7,[x0,#8*6]\n\tstp\td8,d9,[x0,#8*8]\n\tstp\td10,d11,[x0,#8*10]\n\tstp\td12,d13,[x0,#8*12]\n\tstp\td14,d15,[x0,#8*14]\n\tstp\td16,d17,[x0,#8*16]\n\tstp\td18,d19,[x0,#8*18]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:24", "text": "eor\tv24.16b,v24.16b,v31.16b\n\n.Lprocess_block_ce:\n\n\tbl\tKeccakF1600_ce\n\n\tb\t.Loop_absorb_ce\n\n.align\t4\n.Labsorbed_ce:\n\tstp\td0,d1,[x0,#8*0]\n\tstp\td2,d3,[x0,#8*2]\n\tstp\td4,d5,[x0,#8*4]\n\tstp\td6,d7,[x0,#8*6]\n\tstp\td8,d9,[x0,#8*8]\n\tstp\td10,d11,[x0,#8*10]\n\tstp\td12,d13,[x0,#8*12]\n\tstp\td14,d15,[x0,#8*14]\n\tstp\td16,d17,[x0,#8*16]\n\tstp\td18,d19,[x0,#8*18]\n\tstp\td20,d21,[x0,#8*20]\n\tstp\td22,d23,[x0,#8*22]\n\tstr\td24,[x0,#8*24]\n\tadd\tx0,x2,x3\t\t// return value\n\n\tldp\td8,d9,[sp,#16]\n\tldp\td10,d11,[sp,#32]\n\tldp\td12,d13,[sp,#48]\n\tldp\td14,d15,[sp,#64]\n\tldp\tx29,x30,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_absorb_cext,.-SHA3_absorb_cext\n.globl\tSHA3_squeeze_cext\n.type\tSHA3_squeeze_cext,%function\n.align\t5\nSHA3_squeeze_cext:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tmov\tx9,x0\n\tmov\tx10,x3\n\n.Loop_squeeze_ce:\n\tldr\tx4,[x9],#8\n\tcmp\tx2,#8\n\tblo\t.Lsqueeze_tail_ce\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x1],#8\n\tbeq\t.Lsqueeze_done_ce\n\n\tsub\tx2,x2,#8\n\tsubs\tx10,x10,#8\n\tbhi\t.Loop_squeeze_ce\n\n\tbl\tKeccakF1600_cext\n\tldr\tx30,[sp,#8]\n\tmov\tx9,x0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:25", "text": "mov\tx9,x0\n\tmov\tx10,x3\n\n.Loop_squeeze_ce:\n\tldr\tx4,[x9],#8\n\tcmp\tx2,#8\n\tblo\t.Lsqueeze_tail_ce\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\n#endif\n\tstr\tx4,[x1],#8\n\tbeq\t.Lsqueeze_done_ce\n\n\tsub\tx2,x2,#8\n\tsubs\tx10,x10,#8\n\tbhi\t.Loop_squeeze_ce\n\n\tbl\tKeccakF1600_cext\n\tldr\tx30,[sp,#8]\n\tmov\tx9,x0\n\tmov\tx10,x3\n\tb\t.Loop_squeeze_ce\n\n.align\t4\n.Lsqueeze_tail_ce:\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\n.Lsqueeze_done_ce:\n\tldr\tx29,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze_cext,.-SHA3_squeeze_cext\n.byte\t75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 961, "line_end": 1018}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S:26", "text": "beq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\tlsr\tx4,x4,#8\n\tsubs\tx2,x2,#1\n\tbeq\t.Lsqueeze_done_ce\n\tstrb\tw4,[x1],#1\n\n.Lsqueeze_done_ce:\n\tldr\tx29,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tSHA3_squeeze_cext,.-SHA3_squeeze_cext\n.byte\t75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/keccak1600-armv8.S", "line_start": 1001, "line_end": 1018}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/modes.inc:1", "text": ".include \"arm.inc\"\n\n.PATH.S: ${.PARSEDIR}\nMODES_SRCS += ghash-armv4.S\n\nMODES_SRCS += ghashv8-armx.S\nAFLAGS.ghashv8-armx.S = -Wa,-march=armv8.4-a\n\nMODESCPPFLAGS = -DGHASH_ASM\n.include \"../../modes.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/modes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/modes.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#endif\n\n.text\n\n.globl\tpoly1305_emit\n.globl\tpoly1305_blocks\n.globl\tpoly1305_init\n.type\tpoly1305_init,%function\n.align\t5\npoly1305_init:\n.Lpoly1305_init:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\n\teor\tr3,r3,r3\n\tcmp\tr1,#0\n\tstr\tr3,[r0,#0]\t\t@ zero hash value\n\tstr\tr3,[r0,#4]\n\tstr\tr3,[r0,#8]\n\tstr\tr3,[r0,#12]\n\tstr\tr3,[r0,#16]\n\tstr\tr3,[r0,#36]\t\t@ is_base2_26\n\tadd\tr0,r0,#20\n\n#ifdef\t__thumb2__\n\tit\teq\n#endif\n\tmoveq\tr0,#0\n\tbeq\t.Lno_key\n\n#if\t__ARM_MAX_ARCH__>=7\n\tadr\tr11,.Lpoly1305_init\n\tldr\tr12,.LOPENSSL_armcap\n#endif\n\tldrb\tr4,[r1,#0]\n\tmov\tr10,#0x0fffffff\n\tldrb\tr5,[r1,#1]\n\tand\tr3,r10,#-4\t\t@ 0x0ffffffc\n\tldrb\tr6,[r1,#2]\n\tldrb\tr7,[r1,#3]\n\torr\tr4,r4,r5,lsl#8\n\tldrb\tr5,[r1,#4]\n\torr\tr4,r4,r6,lsl#16\n\tldrb\tr6,[r1,#5]\n\torr\tr4,r4,r7,lsl#24\n\tldrb\tr7,[r1,#6]\n\tand\tr4,r4,r10\n\n#if\t__ARM_MAX_ARCH__>=7\n# if !defined(_WIN32)\n\tldr\tr12,[r11,r12]\t\t@ OPENSSL_armcap_P\n# endif\n# if defined(__APPLE__) || defined(_WIN32)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:2", "text": "#endif\n\tldrb\tr4,[r1,#0]\n\tmov\tr10,#0x0fffffff\n\tldrb\tr5,[r1,#1]\n\tand\tr3,r10,#-4\t\t@ 0x0ffffffc\n\tldrb\tr6,[r1,#2]\n\tldrb\tr7,[r1,#3]\n\torr\tr4,r4,r5,lsl#8\n\tldrb\tr5,[r1,#4]\n\torr\tr4,r4,r6,lsl#16\n\tldrb\tr6,[r1,#5]\n\torr\tr4,r4,r7,lsl#24\n\tldrb\tr7,[r1,#6]\n\tand\tr4,r4,r10\n\n#if\t__ARM_MAX_ARCH__>=7\n# if !defined(_WIN32)\n\tldr\tr12,[r11,r12]\t\t@ OPENSSL_armcap_P\n# endif\n# if defined(__APPLE__) || defined(_WIN32)\n\tldr\tr12,[r12]\n# endif\n#endif\n\tldrb\tr8,[r1,#7]\n\torr\tr5,r5,r6,lsl#8\n\tldrb\tr6,[r1,#8]\n\torr\tr5,r5,r7,lsl#16\n\tldrb\tr7,[r1,#9]\n\torr\tr5,r5,r8,lsl#24\n\tldrb\tr8,[r1,#10]\n\tand\tr5,r5,r3\n\n#if\t__ARM_MAX_ARCH__>=7\n\ttst\tr12,#ARMV7_NEON\t\t@ check for NEON\n# ifdef\t__thumb2__\n\tadr\tr9,.Lpoly1305_blocks_neon\n\tadr\tr11,.Lpoly1305_blocks\n\tadr\tr12,.Lpoly1305_emit\n\tadr\tr10,.Lpoly1305_emit_neon\n\titt\tne\n\tmovne\tr11,r9\n\tmovne\tr12,r10\n\torr\tr11,r11,#1\t@ thumb-ify address\n\torr\tr12,r12,#1\n# else\n\taddeq\tr12,r11,#(.Lpoly1305_emit-.Lpoly1305_init)\n\taddne\tr12,r11,#(.Lpoly1305_emit_neon-.Lpoly1305_init)\n\taddeq\tr11,r11,#(.Lpoly1305_blocks-.Lpoly1305_init)\n\taddne\tr11,r11,#(.Lpoly1305_blocks_neon-.Lpoly1305_init)\n# endif\n#endif\n\tldrb\tr9,[r1,#11]\n\torr\tr6,r6,r7,lsl#8\n\tldrb\tr7,[r1,#12]\n\torr\tr6,r6,r8,lsl#16\n\tldrb\tr8,[r1,#13]\n\torr\tr6,r6,r9,lsl#24\n\tldrb\tr9,[r1,#14]\n\tand\tr6,r6,r3", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:3", "text": "movne\tr11,r9\n\tmovne\tr12,r10\n\torr\tr11,r11,#1\t@ thumb-ify address\n\torr\tr12,r12,#1\n# else\n\taddeq\tr12,r11,#(.Lpoly1305_emit-.Lpoly1305_init)\n\taddne\tr12,r11,#(.Lpoly1305_emit_neon-.Lpoly1305_init)\n\taddeq\tr11,r11,#(.Lpoly1305_blocks-.Lpoly1305_init)\n\taddne\tr11,r11,#(.Lpoly1305_blocks_neon-.Lpoly1305_init)\n# endif\n#endif\n\tldrb\tr9,[r1,#11]\n\torr\tr6,r6,r7,lsl#8\n\tldrb\tr7,[r1,#12]\n\torr\tr6,r6,r8,lsl#16\n\tldrb\tr8,[r1,#13]\n\torr\tr6,r6,r9,lsl#24\n\tldrb\tr9,[r1,#14]\n\tand\tr6,r6,r3\n\n\tldrb\tr10,[r1,#15]\n\torr\tr7,r7,r8,lsl#8\n\tstr\tr4,[r0,#0]\n\torr\tr7,r7,r9,lsl#16\n\tstr\tr5,[r0,#4]\n\torr\tr7,r7,r10,lsl#24\n\tstr\tr6,[r0,#8]\n\tand\tr7,r7,r3\n\tstr\tr7,[r0,#12]\n#if\t__ARM_MAX_ARCH__>=7\n\tstmia\tr2,{r11,r12}\t\t@ fill functions table\n\tmov\tr0,#1\n#else\n\tmov\tr0,#0\n#endif\n.Lno_key:\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n#if\t__ARM_ARCH__>=5\n\tRET\t\t\t\t@ bx\tlr\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tpoly1305_init,.-poly1305_init\n.type\tpoly1305_blocks,%function\n.align\t5\npoly1305_blocks:\n.Lpoly1305_blocks:\n\tstmdb\tsp!,{r3,r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\n\tands\tr2,r2,#-16\n\tbeq\t.Lno_data\n\n\tcmp\tr3,#0\n\tadd\tr2,r2,r1\t\t@ end pointer\n\tsub\tsp,sp,#32\n\n\tldmia\tr0,{r4,r5,r6,r7,r8,r9,r10,r11,r12}\t\t@ load context", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:4", "text": "tst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tpoly1305_init,.-poly1305_init\n.type\tpoly1305_blocks,%function\n.align\t5\npoly1305_blocks:\n.Lpoly1305_blocks:\n\tstmdb\tsp!,{r3,r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\n\tands\tr2,r2,#-16\n\tbeq\t.Lno_data\n\n\tcmp\tr3,#0\n\tadd\tr2,r2,r1\t\t@ end pointer\n\tsub\tsp,sp,#32\n\n\tldmia\tr0,{r4,r5,r6,r7,r8,r9,r10,r11,r12}\t\t@ load context\n\n\tstr\tr0,[sp,#12]\t\t@ offload stuff\n\tmov\tlr,r1\n\tstr\tr2,[sp,#16]\n\tstr\tr10,[sp,#20]\n\tstr\tr11,[sp,#24]\n\tstr\tr12,[sp,#28]\n\tb\t.Loop\n\n.Loop:\n#if __ARM_ARCH__<7\n\tldrb\tr0,[lr],#16\t\t@ load input\n# ifdef\t__thumb2__\n\tit\thi\n# endif\n\taddhi\tr8,r8,#1\t\t@ 1<<128\n\tldrb\tr1,[lr,#-15]\n\tldrb\tr2,[lr,#-14]\n\tldrb\tr3,[lr,#-13]\n\torr\tr1,r0,r1,lsl#8\n\tldrb\tr0,[lr,#-12]\n\torr\tr2,r1,r2,lsl#16\n\tldrb\tr1,[lr,#-11]\n\torr\tr3,r2,r3,lsl#24\n\tldrb\tr2,[lr,#-10]\n\tadds\tr4,r4,r3\t\t@ accumulate input\n\n\tldrb\tr3,[lr,#-9]\n\torr\tr1,r0,r1,lsl#8\n\tldrb\tr0,[lr,#-8]\n\torr\tr2,r1,r2,lsl#16\n\tldrb\tr1,[lr,#-7]\n\torr\tr3,r2,r3,lsl#24\n\tldrb\tr2,[lr,#-6]\n\tadcs\tr5,r5,r3\n\n\tldrb\tr3,[lr,#-5]\n\torr\tr1,r0,r1,lsl#8\n\tldrb\tr0,[lr,#-4]\n\torr\tr2,r1,r2,lsl#16\n\tldrb\tr1,[lr,#-3]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:5", "text": "orr\tr2,r1,r2,lsl#16\n\tldrb\tr1,[lr,#-11]\n\torr\tr3,r2,r3,lsl#24\n\tldrb\tr2,[lr,#-10]\n\tadds\tr4,r4,r3\t\t@ accumulate input\n\n\tldrb\tr3,[lr,#-9]\n\torr\tr1,r0,r1,lsl#8\n\tldrb\tr0,[lr,#-8]\n\torr\tr2,r1,r2,lsl#16\n\tldrb\tr1,[lr,#-7]\n\torr\tr3,r2,r3,lsl#24\n\tldrb\tr2,[lr,#-6]\n\tadcs\tr5,r5,r3\n\n\tldrb\tr3,[lr,#-5]\n\torr\tr1,r0,r1,lsl#8\n\tldrb\tr0,[lr,#-4]\n\torr\tr2,r1,r2,lsl#16\n\tldrb\tr1,[lr,#-3]\n\torr\tr3,r2,r3,lsl#24\n\tldrb\tr2,[lr,#-2]\n\tadcs\tr6,r6,r3\n\n\tldrb\tr3,[lr,#-1]\n\torr\tr1,r0,r1,lsl#8\n\tstr\tlr,[sp,#8]\t\t@ offload input pointer\n\torr\tr2,r1,r2,lsl#16\n\tadd\tr10,r10,r10,lsr#2\n\torr\tr3,r2,r3,lsl#24\n#else\n\tldr\tr0,[lr],#16\t\t@ load input\n# ifdef\t__thumb2__\n\tit\thi\n# endif\n\taddhi\tr8,r8,#1\t\t@ padbit\n\tldr\tr1,[lr,#-12]\n\tldr\tr2,[lr,#-8]\n\tldr\tr3,[lr,#-4]\n# ifdef\t__ARMEB__\n\trev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n\tadds\tr4,r4,r0\t\t@ accumulate input\n\tstr\tlr,[sp,#8]\t\t@ offload input pointer\n\tadcs\tr5,r5,r1\n\tadd\tr10,r10,r10,lsr#2\n\tadcs\tr6,r6,r2\n#endif\n\tadd\tr11,r11,r11,lsr#2\n\tadcs\tr7,r7,r3\n\tadd\tr12,r12,r12,lsr#2\n\n\tumull\tr2,r3,r5,r9\n\tadc\tr8,r8,#0\n\tumull\tr0,r1,r4,r9\n\tumlal\tr2,r3,r8,r10\n\tumlal\tr0,r1,r7,r10", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:6", "text": "rev\tr0,r0\n\trev\tr1,r1\n\trev\tr2,r2\n\trev\tr3,r3\n# endif\n\tadds\tr4,r4,r0\t\t@ accumulate input\n\tstr\tlr,[sp,#8]\t\t@ offload input pointer\n\tadcs\tr5,r5,r1\n\tadd\tr10,r10,r10,lsr#2\n\tadcs\tr6,r6,r2\n#endif\n\tadd\tr11,r11,r11,lsr#2\n\tadcs\tr7,r7,r3\n\tadd\tr12,r12,r12,lsr#2\n\n\tumull\tr2,r3,r5,r9\n\tadc\tr8,r8,#0\n\tumull\tr0,r1,r4,r9\n\tumlal\tr2,r3,r8,r10\n\tumlal\tr0,r1,r7,r10\n\tldr\tr10,[sp,#20]\t\t@ reload r10\n\tumlal\tr2,r3,r6,r12\n\tumlal\tr0,r1,r5,r12\n\tumlal\tr2,r3,r7,r11\n\tumlal\tr0,r1,r6,r11\n\tumlal\tr2,r3,r4,r10\n\tstr\tr0,[sp,#0]\t\t@ future r4\n\tmul\tr0,r11,r8\n\tldr\tr11,[sp,#24]\t\t@ reload r11\n\tadds\tr2,r2,r1\t\t@ d1+=d0>>32\n\teor\tr1,r1,r1\n\tadc\tlr,r3,#0\t\t@ future r6\n\tstr\tr2,[sp,#4]\t\t@ future r5\n\n\tmul\tr2,r12,r8\n\teor\tr3,r3,r3\n\tumlal\tr0,r1,r7,r12\n\tldr\tr12,[sp,#28]\t\t@ reload r12\n\tumlal\tr2,r3,r7,r9\n\tumlal\tr0,r1,r6,r9\n\tumlal\tr2,r3,r6,r10\n\tumlal\tr0,r1,r5,r10\n\tumlal\tr2,r3,r5,r11\n\tumlal\tr0,r1,r4,r11\n\tumlal\tr2,r3,r4,r12\n\tldr\tr4,[sp,#0]\n\tmul\tr8,r9,r8\n\tldr\tr5,[sp,#4]\n\n\tadds\tr6,lr,r0\t\t@ d2+=d1>>32\n\tldr\tlr,[sp,#8]\t\t@ reload input pointer\n\tadc\tr1,r1,#0\n\tadds\tr7,r2,r1\t\t@ d3+=d2>>32\n\tldr\tr0,[sp,#16]\t\t@ reload end pointer\n\tadc\tr3,r3,#0\n\tadd\tr8,r8,r3\t\t@ h4+=d3>>32\n\n\tand\tr1,r8,#-4\n\tand\tr8,r8,#3\n\tadd\tr1,r1,r1,lsr#2\t\t@ *=5", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:7", "text": "umlal\tr2,r3,r6,r10\n\tumlal\tr0,r1,r5,r10\n\tumlal\tr2,r3,r5,r11\n\tumlal\tr0,r1,r4,r11\n\tumlal\tr2,r3,r4,r12\n\tldr\tr4,[sp,#0]\n\tmul\tr8,r9,r8\n\tldr\tr5,[sp,#4]\n\n\tadds\tr6,lr,r0\t\t@ d2+=d1>>32\n\tldr\tlr,[sp,#8]\t\t@ reload input pointer\n\tadc\tr1,r1,#0\n\tadds\tr7,r2,r1\t\t@ d3+=d2>>32\n\tldr\tr0,[sp,#16]\t\t@ reload end pointer\n\tadc\tr3,r3,#0\n\tadd\tr8,r8,r3\t\t@ h4+=d3>>32\n\n\tand\tr1,r8,#-4\n\tand\tr8,r8,#3\n\tadd\tr1,r1,r1,lsr#2\t\t@ *=5\n\tadds\tr4,r4,r1\n\tadcs\tr5,r5,#0\n\tadcs\tr6,r6,#0\n\tadcs\tr7,r7,#0\n\tadc\tr8,r8,#0\n\n\tcmp\tr0,lr\t\t\t@ done yet?\n\tbhi\t.Loop\n\n\tldr\tr0,[sp,#12]\n\tadd\tsp,sp,#32\n\tstmia\tr0,{r4,r5,r6,r7,r8}\t\t@ store the result\n\n.Lno_data:\n#if\t__ARM_ARCH__>=5\n\tldmia\tsp!,{r3,r4,r5,r6,r7,r8,r9,r10,r11,pc}\n#else\n\tldmia\tsp!,{r3,r4,r5,r6,r7,r8,r9,r10,r11,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tpoly1305_blocks,.-poly1305_blocks\n.type\tpoly1305_emit,%function\n.align\t5\npoly1305_emit:\n.Lpoly1305_emit:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n.Lpoly1305_emit_enter:\n\n\tldmia\tr0,{r3,r4,r5,r6,r7}\n\tadds\tr8,r3,#5\t\t@ compare to modulus\n\tadcs\tr9,r4,#0\n\tadcs\tr10,r5,#0\n\tadcs\tr11,r6,#0\n\tadc\tr7,r7,#0\n\ttst\tr7,#4\t\t\t@ did it carry/borrow?\n\n#ifdef\t__thumb2__\n\tit\tne", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:8", "text": ".word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tpoly1305_blocks,.-poly1305_blocks\n.type\tpoly1305_emit,%function\n.align\t5\npoly1305_emit:\n.Lpoly1305_emit:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n.Lpoly1305_emit_enter:\n\n\tldmia\tr0,{r3,r4,r5,r6,r7}\n\tadds\tr8,r3,#5\t\t@ compare to modulus\n\tadcs\tr9,r4,#0\n\tadcs\tr10,r5,#0\n\tadcs\tr11,r6,#0\n\tadc\tr7,r7,#0\n\ttst\tr7,#4\t\t\t@ did it carry/borrow?\n\n#ifdef\t__thumb2__\n\tit\tne\n#endif\n\tmovne\tr3,r8\n\tldr\tr8,[r2,#0]\n#ifdef\t__thumb2__\n\tit\tne\n#endif\n\tmovne\tr4,r9\n\tldr\tr9,[r2,#4]\n#ifdef\t__thumb2__\n\tit\tne\n#endif\n\tmovne\tr5,r10\n\tldr\tr10,[r2,#8]\n#ifdef\t__thumb2__\n\tit\tne\n#endif\n\tmovne\tr6,r11\n\tldr\tr11,[r2,#12]\n\n\tadds\tr3,r3,r8\n\tadcs\tr4,r4,r9\n\tadcs\tr5,r5,r10\n\tadc\tr6,r6,r11\n\n#if __ARM_ARCH__>=7\n# ifdef __ARMEB__\n\trev\tr3,r3\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n# endif\n\tstr\tr3,[r1,#0]\n\tstr\tr4,[r1,#4]\n\tstr\tr5,[r1,#8]\n\tstr\tr6,[r1,#12]\n#else\n\tstrb\tr3,[r1,#0]\n\tmov\tr3,r3,lsr#8\n\tstrb\tr4,[r1,#4]\n\tmov\tr4,r4,lsr#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:9", "text": "adcs\tr4,r4,r9\n\tadcs\tr5,r5,r10\n\tadc\tr6,r6,r11\n\n#if __ARM_ARCH__>=7\n# ifdef __ARMEB__\n\trev\tr3,r3\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n# endif\n\tstr\tr3,[r1,#0]\n\tstr\tr4,[r1,#4]\n\tstr\tr5,[r1,#8]\n\tstr\tr6,[r1,#12]\n#else\n\tstrb\tr3,[r1,#0]\n\tmov\tr3,r3,lsr#8\n\tstrb\tr4,[r1,#4]\n\tmov\tr4,r4,lsr#8\n\tstrb\tr5,[r1,#8]\n\tmov\tr5,r5,lsr#8\n\tstrb\tr6,[r1,#12]\n\tmov\tr6,r6,lsr#8\n\n\tstrb\tr3,[r1,#1]\n\tmov\tr3,r3,lsr#8\n\tstrb\tr4,[r1,#5]\n\tmov\tr4,r4,lsr#8\n\tstrb\tr5,[r1,#9]\n\tmov\tr5,r5,lsr#8\n\tstrb\tr6,[r1,#13]\n\tmov\tr6,r6,lsr#8\n\n\tstrb\tr3,[r1,#2]\n\tmov\tr3,r3,lsr#8\n\tstrb\tr4,[r1,#6]\n\tmov\tr4,r4,lsr#8\n\tstrb\tr5,[r1,#10]\n\tmov\tr5,r5,lsr#8\n\tstrb\tr6,[r1,#14]\n\tmov\tr6,r6,lsr#8\n\n\tstrb\tr3,[r1,#3]\n\tstrb\tr4,[r1,#7]\n\tstrb\tr5,[r1,#11]\n\tstrb\tr6,[r1,#15]\n#endif\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n#if\t__ARM_ARCH__>=5\n\tRET\t\t\t\t@ bx\tlr\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tpoly1305_emit,.-poly1305_emit\n#if\t__ARM_MAX_ARCH__>=7\n.fpu\tneon", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:10", "text": "strb\tr6,[r1,#14]\n\tmov\tr6,r6,lsr#8\n\n\tstrb\tr3,[r1,#3]\n\tstrb\tr4,[r1,#7]\n\tstrb\tr5,[r1,#11]\n\tstrb\tr6,[r1,#15]\n#endif\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n#if\t__ARM_ARCH__>=5\n\tRET\t\t\t\t@ bx\tlr\n#else\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tpoly1305_emit,.-poly1305_emit\n#if\t__ARM_MAX_ARCH__>=7\n.fpu\tneon\n\n.type\tpoly1305_init_neon,%function\n.align\t5\npoly1305_init_neon:\n\tldr\tr4,[r0,#20]\t\t@ load key base 2^32\n\tldr\tr5,[r0,#24]\n\tldr\tr6,[r0,#28]\n\tldr\tr7,[r0,#32]\n\n\tand\tr2,r4,#0x03ffffff\t@ base 2^32 -> base 2^26\n\tmov\tr3,r4,lsr#26\n\tmov\tr4,r5,lsr#20\n\torr\tr3,r3,r5,lsl#6\n\tmov\tr5,r6,lsr#14\n\torr\tr4,r4,r6,lsl#12\n\tmov\tr6,r7,lsr#8\n\torr\tr5,r5,r7,lsl#18\n\tand\tr3,r3,#0x03ffffff\n\tand\tr4,r4,#0x03ffffff\n\tand\tr5,r5,#0x03ffffff\n\n\tvdup.32\td0,r2\t\t\t@ r^1 in both lanes\n\tadd\tr2,r3,r3,lsl#2\t\t@ *5\n\tvdup.32\td1,r3\n\tadd\tr3,r4,r4,lsl#2\n\tvdup.32\td2,r2\n\tvdup.32\td3,r4\n\tadd\tr4,r5,r5,lsl#2\n\tvdup.32\td4,r3\n\tvdup.32\td5,r5\n\tadd\tr5,r6,r6,lsl#2\n\tvdup.32\td6,r4\n\tvdup.32\td7,r6\n\tvdup.32\td8,r5\n\n\tmov\tr5,#2\t\t@ counter\n\n.Lsquare_neon:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ d0 = h0*r0 + h4*5*r1 + h3*5*r2 + h2*5*r3 + h1*5*r4\n\t@ d1 = h1*r0 + h0*r1   + h4*5*r2 + h3*5*r3 + h2*5*r4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:11", "text": "vdup.32\td0,r2\t\t\t@ r^1 in both lanes\n\tadd\tr2,r3,r3,lsl#2\t\t@ *5\n\tvdup.32\td1,r3\n\tadd\tr3,r4,r4,lsl#2\n\tvdup.32\td2,r2\n\tvdup.32\td3,r4\n\tadd\tr4,r5,r5,lsl#2\n\tvdup.32\td4,r3\n\tvdup.32\td5,r5\n\tadd\tr5,r6,r6,lsl#2\n\tvdup.32\td6,r4\n\tvdup.32\td7,r6\n\tvdup.32\td8,r5\n\n\tmov\tr5,#2\t\t@ counter\n\n.Lsquare_neon:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ d0 = h0*r0 + h4*5*r1 + h3*5*r2 + h2*5*r3 + h1*5*r4\n\t@ d1 = h1*r0 + h0*r1   + h4*5*r2 + h3*5*r3 + h2*5*r4\n\t@ d2 = h2*r0 + h1*r1   + h0*r2   + h4*5*r3 + h3*5*r4\n\t@ d3 = h3*r0 + h2*r1   + h1*r2   + h0*r3   + h4*5*r4\n\t@ d4 = h4*r0 + h3*r1   + h2*r2   + h1*r3   + h0*r4\n\n\tvmull.u32\tq5,d0,d0[1]\n\tvmull.u32\tq6,d1,d0[1]\n\tvmull.u32\tq7,d3,d0[1]\n\tvmull.u32\tq8,d5,d0[1]\n\tvmull.u32\tq9,d7,d0[1]\n\n\tvmlal.u32\tq5,d7,d2[1]\n\tvmlal.u32\tq6,d0,d1[1]\n\tvmlal.u32\tq7,d1,d1[1]\n\tvmlal.u32\tq8,d3,d1[1]\n\tvmlal.u32\tq9,d5,d1[1]\n\n\tvmlal.u32\tq5,d5,d4[1]\n\tvmlal.u32\tq6,d7,d4[1]\n\tvmlal.u32\tq8,d1,d3[1]\n\tvmlal.u32\tq7,d0,d3[1]\n\tvmlal.u32\tq9,d3,d3[1]\n\n\tvmlal.u32\tq5,d3,d6[1]\n\tvmlal.u32\tq8,d0,d5[1]\n\tvmlal.u32\tq6,d5,d6[1]\n\tvmlal.u32\tq7,d7,d6[1]\n\tvmlal.u32\tq9,d1,d5[1]\n\n\tvmlal.u32\tq8,d7,d8[1]\n\tvmlal.u32\tq5,d1,d8[1]\n\tvmlal.u32\tq6,d3,d8[1]\n\tvmlal.u32\tq7,d5,d8[1]\n\tvmlal.u32\tq9,d0,d7[1]\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ lazy reduction as discussed in \"NEON crypto\" by D.J. Bernstein\n\t@ and P. Schwabe\n\t@\n\t@ H0>>+H1>>+H2>>+H3>>+H4\n\t@ H3>>+H4>>*5+H0>>+H1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:12", "text": "vmlal.u32\tq9,d3,d3[1]\n\n\tvmlal.u32\tq5,d3,d6[1]\n\tvmlal.u32\tq8,d0,d5[1]\n\tvmlal.u32\tq6,d5,d6[1]\n\tvmlal.u32\tq7,d7,d6[1]\n\tvmlal.u32\tq9,d1,d5[1]\n\n\tvmlal.u32\tq8,d7,d8[1]\n\tvmlal.u32\tq5,d1,d8[1]\n\tvmlal.u32\tq6,d3,d8[1]\n\tvmlal.u32\tq7,d5,d8[1]\n\tvmlal.u32\tq9,d0,d7[1]\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ lazy reduction as discussed in \"NEON crypto\" by D.J. Bernstein\n\t@ and P. Schwabe\n\t@\n\t@ H0>>+H1>>+H2>>+H3>>+H4\n\t@ H3>>+H4>>*5+H0>>+H1\n\t@\n\t@ Trivia.\n\t@\n\t@ Result of multiplication of n-bit number by m-bit number is\n\t@ n+m bits wide. However! Even though 2^n is a n+1-bit number,\n\t@ m-bit number multiplied by 2^n is still n+m bits wide.\n\t@\n\t@ Sum of two n-bit numbers is n+1 bits wide, sum of three - n+2,\n\t@ and so is sum of four. Sum of 2^m n-m-bit numbers and n-bit\n\t@ one is n+1 bits wide.\n\t@\n\t@ >>+ denotes Hnext += Hn>>26, Hn &= 0x3ffffff. This means that\n\t@ H0, H2, H3 are guaranteed to be 26 bits wide, while H1 and H4\n\t@ can be 27. However! In cases when their width exceeds 26 bits\n\t@ they are limited by 2^26+2^6. This in turn means that *sum*\n\t@ of the products with these values can still be viewed as sum\n\t@ of 52-bit numbers as long as the amount of addends is not a\n\t@ power of 2. For example,\n\t@\n\t@ H4 = H4*R0 + H3*R1 + H2*R2 + H1*R3 + H0 * R4,\n\t@\n\t@ which can't be larger than 5 * (2^26 + 2^6) * (2^26 + 2^6), or\n\t@ 5 * (2^52 + 2*2^32 + 2^12), which in turn is smaller than\n\t@ 8 * (2^52) or 2^55. However, the value is then multiplied by\n\t@ by 5, so we should be looking at 5 * 5 * (2^52 + 2^33 + 2^12),\n\t@ which is less than 32 * (2^52) or 2^57. And when processing\n\t@ data we are looking at triple as many addends...\n\t@\n\t@ In key setup procedure pre-reduced H0 is limited by 5*4+1 and\n\t@ 5*H4 - by 5*5 52-bit addends, or 57 bits. But when hashing the\n\t@ input H0 is limited by (5*4+1)*3 addends, or 58 bits, while\n\t@ 5*H4 by 5*5*3, or 59[!] bits. How is this relevant? vmlal.u32\n\t@ instruction accepts 2x32-bit input and writes 2x64-bit result.\n\t@ This means that result of reduction have to be compressed upon\n\t@ loop wrap-around. This can be done in the process of reduction\n\t@ to minimize amount of instructions [as well as amount of\n\t@ 128-bit instructions, which benefits low-end processors], but\n\t@ one has to watch for H2 (which is narrower than H0) and 5*H4\n\t@ not being wider than 58 bits, so that result of right shift\n\t@ by 26 bits fits in 32 bits. This is also useful on x86,", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:13", "text": "@\n\t@ which can't be larger than 5 * (2^26 + 2^6) * (2^26 + 2^6), or\n\t@ 5 * (2^52 + 2*2^32 + 2^12), which in turn is smaller than\n\t@ 8 * (2^52) or 2^55. However, the value is then multiplied by\n\t@ by 5, so we should be looking at 5 * 5 * (2^52 + 2^33 + 2^12),\n\t@ which is less than 32 * (2^52) or 2^57. And when processing\n\t@ data we are looking at triple as many addends...\n\t@\n\t@ In key setup procedure pre-reduced H0 is limited by 5*4+1 and\n\t@ 5*H4 - by 5*5 52-bit addends, or 57 bits. But when hashing the\n\t@ input H0 is limited by (5*4+1)*3 addends, or 58 bits, while\n\t@ 5*H4 by 5*5*3, or 59[!] bits. How is this relevant? vmlal.u32\n\t@ instruction accepts 2x32-bit input and writes 2x64-bit result.\n\t@ This means that result of reduction have to be compressed upon\n\t@ loop wrap-around. This can be done in the process of reduction\n\t@ to minimize amount of instructions [as well as amount of\n\t@ 128-bit instructions, which benefits low-end processors], but\n\t@ one has to watch for H2 (which is narrower than H0) and 5*H4\n\t@ not being wider than 58 bits, so that result of right shift\n\t@ by 26 bits fits in 32 bits. This is also useful on x86,\n\t@ because it allows to use paddd in place for paddq, which\n\t@ benefits Atom, where paddq is ridiculously slow.\n\n\tvshr.u64\tq15,q8,#26\n\tvmovn.i64\td16,q8\n\tvshr.u64\tq4,q5,#26\n\tvmovn.i64\td10,q5\n\tvadd.i64\tq9,q9,q15\t\t@ h3 -> h4\n\tvbic.i32\td16,#0xfc000000\t@ &=0x03ffffff\n\tvadd.i64\tq6,q6,q4\t\t@ h0 -> h1\n\tvbic.i32\td10,#0xfc000000\n\n\tvshrn.u64\td30,q9,#26\n\tvmovn.i64\td18,q9\n\tvshr.u64\tq4,q6,#26\n\tvmovn.i64\td12,q6\n\tvadd.i64\tq7,q7,q4\t\t@ h1 -> h2\n\tvbic.i32\td18,#0xfc000000\n\tvbic.i32\td12,#0xfc000000\n\n\tvadd.i32\td10,d10,d30\n\tvshl.u32\td30,d30,#2\n\tvshrn.u64\td8,q7,#26\n\tvmovn.i64\td14,q7\n\tvadd.i32\td10,d10,d30\t@ h4 -> h0\n\tvadd.i32\td16,d16,d8\t@ h2 -> h3\n\tvbic.i32\td14,#0xfc000000\n\n\tvshr.u32\td30,d10,#26\n\tvbic.i32\td10,#0xfc000000\n\tvshr.u32\td8,d16,#26\n\tvbic.i32\td16,#0xfc000000\n\tvadd.i32\td12,d12,d30\t@ h0 -> h1\n\tvadd.i32\td18,d18,d8\t@ h3 -> h4\n\n\tsubs\tr5,r5,#1\n\tbeq\t.Lsquare_break_neon\n\n\tadd\tr6,r0,#(48+0*9*4)\n\tadd\tr7,r0,#(48+1*9*4)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:14", "text": "vadd.i32\td10,d10,d30\n\tvshl.u32\td30,d30,#2\n\tvshrn.u64\td8,q7,#26\n\tvmovn.i64\td14,q7\n\tvadd.i32\td10,d10,d30\t@ h4 -> h0\n\tvadd.i32\td16,d16,d8\t@ h2 -> h3\n\tvbic.i32\td14,#0xfc000000\n\n\tvshr.u32\td30,d10,#26\n\tvbic.i32\td10,#0xfc000000\n\tvshr.u32\td8,d16,#26\n\tvbic.i32\td16,#0xfc000000\n\tvadd.i32\td12,d12,d30\t@ h0 -> h1\n\tvadd.i32\td18,d18,d8\t@ h3 -> h4\n\n\tsubs\tr5,r5,#1\n\tbeq\t.Lsquare_break_neon\n\n\tadd\tr6,r0,#(48+0*9*4)\n\tadd\tr7,r0,#(48+1*9*4)\n\n\tvtrn.32\td0,d10\t\t@ r^2:r^1\n\tvtrn.32\td3,d14\n\tvtrn.32\td5,d16\n\tvtrn.32\td1,d12\n\tvtrn.32\td7,d18\n\n\tvshl.u32\td4,d3,#2\t\t@ *5\n\tvshl.u32\td6,d5,#2\n\tvshl.u32\td2,d1,#2\n\tvshl.u32\td8,d7,#2\n\tvadd.i32\td4,d4,d3\n\tvadd.i32\td2,d2,d1\n\tvadd.i32\td6,d6,d5\n\tvadd.i32\td8,d8,d7\n\n\tvst4.32\t{d0[0],d1[0],d2[0],d3[0]},[r6]!\n\tvst4.32\t{d0[1],d1[1],d2[1],d3[1]},[r7]!\n\tvst4.32\t{d4[0],d5[0],d6[0],d7[0]},[r6]!\n\tvst4.32\t{d4[1],d5[1],d6[1],d7[1]},[r7]!\n\tvst1.32\t{d8[0]},[r6,:32]\n\tvst1.32\t{d8[1]},[r7,:32]\n\n\tb\t.Lsquare_neon\n\n.align\t4\n.Lsquare_break_neon:\n\tadd\tr6,r0,#(48+2*4*9)\n\tadd\tr7,r0,#(48+3*4*9)\n\n\tvmov\td0,d10\t\t@ r^4:r^3\n\tvshl.u32\td2,d12,#2\t\t@ *5\n\tvmov\td1,d12\n\tvshl.u32\td4,d14,#2\n\tvmov\td3,d14\n\tvshl.u32\td6,d16,#2\n\tvmov\td5,d16\n\tvshl.u32\td8,d18,#2\n\tvmov\td7,d18\n\tvadd.i32\td2,d2,d12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:15", "text": "vst1.32\t{d8[0]},[r6,:32]\n\tvst1.32\t{d8[1]},[r7,:32]\n\n\tb\t.Lsquare_neon\n\n.align\t4\n.Lsquare_break_neon:\n\tadd\tr6,r0,#(48+2*4*9)\n\tadd\tr7,r0,#(48+3*4*9)\n\n\tvmov\td0,d10\t\t@ r^4:r^3\n\tvshl.u32\td2,d12,#2\t\t@ *5\n\tvmov\td1,d12\n\tvshl.u32\td4,d14,#2\n\tvmov\td3,d14\n\tvshl.u32\td6,d16,#2\n\tvmov\td5,d16\n\tvshl.u32\td8,d18,#2\n\tvmov\td7,d18\n\tvadd.i32\td2,d2,d12\n\tvadd.i32\td4,d4,d14\n\tvadd.i32\td6,d6,d16\n\tvadd.i32\td8,d8,d18\n\n\tvst4.32\t{d0[0],d1[0],d2[0],d3[0]},[r6]!\n\tvst4.32\t{d0[1],d1[1],d2[1],d3[1]},[r7]!\n\tvst4.32\t{d4[0],d5[0],d6[0],d7[0]},[r6]!\n\tvst4.32\t{d4[1],d5[1],d6[1],d7[1]},[r7]!\n\tvst1.32\t{d8[0]},[r6]\n\tvst1.32\t{d8[1]},[r7]\n\n\tRET\t\t\t\t@ bx\tlr\n.size\tpoly1305_init_neon,.-poly1305_init_neon\n\n.type\tpoly1305_blocks_neon,%function\n.align\t5\npoly1305_blocks_neon:\n.Lpoly1305_blocks_neon:\n\tldr\tip,[r0,#36]\t\t@ is_base2_26\n\tands\tr2,r2,#-16\n\tbeq\t.Lno_data_neon\n\n\tcmp\tr2,#64\n\tbhs\t.Lenter_neon\n\ttst\tip,ip\t\t\t@ is_base2_26?\n\tbeq\t.Lpoly1305_blocks\n\n.Lenter_neon:\n\tstmdb\tsp!,{r4,r5,r6,r7}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI specification says so\n\n\ttst\tip,ip\t\t\t@ is_base2_26?\n\tbne\t.Lbase2_26_neon\n\n\tstmdb\tsp!,{r1,r2,r3,lr}\n\tbl\tpoly1305_init_neon\n\n\tldr\tr4,[r0,#0]\t\t@ load hash value base 2^32\n\tldr\tr5,[r0,#4]\n\tldr\tr6,[r0,#8]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:16", "text": "beq\t.Lno_data_neon\n\n\tcmp\tr2,#64\n\tbhs\t.Lenter_neon\n\ttst\tip,ip\t\t\t@ is_base2_26?\n\tbeq\t.Lpoly1305_blocks\n\n.Lenter_neon:\n\tstmdb\tsp!,{r4,r5,r6,r7}\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI specification says so\n\n\ttst\tip,ip\t\t\t@ is_base2_26?\n\tbne\t.Lbase2_26_neon\n\n\tstmdb\tsp!,{r1,r2,r3,lr}\n\tbl\tpoly1305_init_neon\n\n\tldr\tr4,[r0,#0]\t\t@ load hash value base 2^32\n\tldr\tr5,[r0,#4]\n\tldr\tr6,[r0,#8]\n\tldr\tr7,[r0,#12]\n\tldr\tip,[r0,#16]\n\n\tand\tr2,r4,#0x03ffffff\t@ base 2^32 -> base 2^26\n\tmov\tr3,r4,lsr#26\n\tveor\td10,d10,d10\n\tmov\tr4,r5,lsr#20\n\torr\tr3,r3,r5,lsl#6\n\tveor\td12,d12,d12\n\tmov\tr5,r6,lsr#14\n\torr\tr4,r4,r6,lsl#12\n\tveor\td14,d14,d14\n\tmov\tr6,r7,lsr#8\n\torr\tr5,r5,r7,lsl#18\n\tveor\td16,d16,d16\n\tand\tr3,r3,#0x03ffffff\n\torr\tr6,r6,ip,lsl#24\n\tveor\td18,d18,d18\n\tand\tr4,r4,#0x03ffffff\n\tmov\tr1,#1\n\tand\tr5,r5,#0x03ffffff\n\tstr\tr1,[r0,#36]\t\t@ is_base2_26\n\n\tvmov.32\td10[0],r2\n\tvmov.32\td12[0],r3\n\tvmov.32\td14[0],r4\n\tvmov.32\td16[0],r5\n\tvmov.32\td18[0],r6\n\tadr\tr5,.Lzeros\n\n\tldmia\tsp!,{r1,r2,r3,lr}\n\tb\t.Lbase2_32_neon\n\n.align\t4\n.Lbase2_26_neon:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ load hash value\n\n\tveor\td10,d10,d10\n\tveor\td12,d12,d12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:17", "text": "and\tr5,r5,#0x03ffffff\n\tstr\tr1,[r0,#36]\t\t@ is_base2_26\n\n\tvmov.32\td10[0],r2\n\tvmov.32\td12[0],r3\n\tvmov.32\td14[0],r4\n\tvmov.32\td16[0],r5\n\tvmov.32\td18[0],r6\n\tadr\tr5,.Lzeros\n\n\tldmia\tsp!,{r1,r2,r3,lr}\n\tb\t.Lbase2_32_neon\n\n.align\t4\n.Lbase2_26_neon:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ load hash value\n\n\tveor\td10,d10,d10\n\tveor\td12,d12,d12\n\tveor\td14,d14,d14\n\tveor\td16,d16,d16\n\tveor\td18,d18,d18\n\tvld4.32\t{d10[0],d12[0],d14[0],d16[0]},[r0]!\n\tadr\tr5,.Lzeros\n\tvld1.32\t{d18[0]},[r0]\n\tsub\tr0,r0,#16\t\t@ rewind\n\n.Lbase2_32_neon:\n\tadd\tr4,r1,#32\n\tmov\tr3,r3,lsl#24\n\ttst\tr2,#31\n\tbeq\t.Leven\n\n\tvld4.32\t{d20[0],d22[0],d24[0],d26[0]},[r1]!\n\tvmov.32\td28[0],r3\n\tsub\tr2,r2,#16\n\tadd\tr4,r1,#32\n\n# ifdef\t__ARMEB__\n\tvrev32.8\tq10,q10\n\tvrev32.8\tq13,q13\n\tvrev32.8\tq11,q11\n\tvrev32.8\tq12,q12\n# endif\n\tvsri.u32\td28,d26,#8\t@ base 2^32 -> base 2^26\n\tvshl.u32\td26,d26,#18\n\n\tvsri.u32\td26,d24,#14\n\tvshl.u32\td24,d24,#12\n\tvadd.i32\td29,d28,d18\t@ add hash value and move to #hi\n\n\tvbic.i32\td26,#0xfc000000\n\tvsri.u32\td24,d22,#20\n\tvshl.u32\td22,d22,#6\n\n\tvbic.i32\td24,#0xfc000000\n\tvsri.u32\td22,d20,#26\n\tvadd.i32\td27,d26,d16", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:18", "text": "vrev32.8\tq10,q10\n\tvrev32.8\tq13,q13\n\tvrev32.8\tq11,q11\n\tvrev32.8\tq12,q12\n# endif\n\tvsri.u32\td28,d26,#8\t@ base 2^32 -> base 2^26\n\tvshl.u32\td26,d26,#18\n\n\tvsri.u32\td26,d24,#14\n\tvshl.u32\td24,d24,#12\n\tvadd.i32\td29,d28,d18\t@ add hash value and move to #hi\n\n\tvbic.i32\td26,#0xfc000000\n\tvsri.u32\td24,d22,#20\n\tvshl.u32\td22,d22,#6\n\n\tvbic.i32\td24,#0xfc000000\n\tvsri.u32\td22,d20,#26\n\tvadd.i32\td27,d26,d16\n\n\tvbic.i32\td20,#0xfc000000\n\tvbic.i32\td22,#0xfc000000\n\tvadd.i32\td25,d24,d14\n\n\tvadd.i32\td21,d20,d10\n\tvadd.i32\td23,d22,d12\n\n\tmov\tr7,r5\n\tadd\tr6,r0,#48\n\n\tcmp\tr2,r2\n\tb\t.Long_tail\n\n.align\t4\n.Leven:\n\tsubs\tr2,r2,#64\n\tit\tlo\n\tmovlo\tr4,r5\n\n\tvmov.i32\tq14,#1<<24\t\t@ padbit, yes, always\n\tvld4.32\t{d20,d22,d24,d26},[r1]\t@ inp[0:1]\n\tadd\tr1,r1,#64\n\tvld4.32\t{d21,d23,d25,d27},[r4]\t@ inp[2:3] (or 0)\n\tadd\tr4,r4,#64\n\titt\thi\n\taddhi\tr7,r0,#(48+1*9*4)\n\taddhi\tr6,r0,#(48+3*9*4)\n\n# ifdef\t__ARMEB__\n\tvrev32.8\tq10,q10\n\tvrev32.8\tq13,q13\n\tvrev32.8\tq11,q11\n\tvrev32.8\tq12,q12\n# endif\n\tvsri.u32\tq14,q13,#8\t\t@ base 2^32 -> base 2^26\n\tvshl.u32\tq13,q13,#18\n\n\tvsri.u32\tq13,q12,#14\n\tvshl.u32\tq12,q12,#12", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:19", "text": "vld4.32\t{d20,d22,d24,d26},[r1]\t@ inp[0:1]\n\tadd\tr1,r1,#64\n\tvld4.32\t{d21,d23,d25,d27},[r4]\t@ inp[2:3] (or 0)\n\tadd\tr4,r4,#64\n\titt\thi\n\taddhi\tr7,r0,#(48+1*9*4)\n\taddhi\tr6,r0,#(48+3*9*4)\n\n# ifdef\t__ARMEB__\n\tvrev32.8\tq10,q10\n\tvrev32.8\tq13,q13\n\tvrev32.8\tq11,q11\n\tvrev32.8\tq12,q12\n# endif\n\tvsri.u32\tq14,q13,#8\t\t@ base 2^32 -> base 2^26\n\tvshl.u32\tq13,q13,#18\n\n\tvsri.u32\tq13,q12,#14\n\tvshl.u32\tq12,q12,#12\n\n\tvbic.i32\tq13,#0xfc000000\n\tvsri.u32\tq12,q11,#20\n\tvshl.u32\tq11,q11,#6\n\n\tvbic.i32\tq12,#0xfc000000\n\tvsri.u32\tq11,q10,#26\n\n\tvbic.i32\tq10,#0xfc000000\n\tvbic.i32\tq11,#0xfc000000\n\n\tbls\t.Lskip_loop\n\n\tvld4.32\t{d0[1],d1[1],d2[1],d3[1]},[r7]!\t@ load r^2\n\tvld4.32\t{d0[0],d1[0],d2[0],d3[0]},[r6]!\t@ load r^4\n\tvld4.32\t{d4[1],d5[1],d6[1],d7[1]},[r7]!\n\tvld4.32\t{d4[0],d5[0],d6[0],d7[0]},[r6]!\n\tb\t.Loop_neon\n\n.align\t5\n.Loop_neon:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2\n\t@ ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^3+inp[7]*r\n\t@   ___________________/\n\t@ ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2+inp[8])*r^2\n\t@ ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^4+inp[7]*r^2+inp[9])*r\n\t@   ___________________/ ____________________/\n\t@\n\t@ Note that we start with inp[2:3]*r^2. This is because it\n\t@ doesn't depend on reduction in previous iteration.\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ d4 = h4*r0 + h3*r1   + h2*r2   + h1*r3   + h0*r4\n\t@ d3 = h3*r0 + h2*r1   + h1*r2   + h0*r3   + h4*5*r4\n\t@ d2 = h2*r0 + h1*r1   + h0*r2   + h4*5*r3 + h3*5*r4\n\t@ d1 = h1*r0 + h0*r1   + h4*5*r2 + h3*5*r3 + h2*5*r4\n\t@ d0 = h0*r0 + h4*5*r1 + h3*5*r2 + h2*5*r3 + h1*5*r4\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ inp[2:3]*r^2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:20", "text": "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2\n\t@ ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^3+inp[7]*r\n\t@   ___________________/\n\t@ ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2+inp[8])*r^2\n\t@ ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^4+inp[7]*r^2+inp[9])*r\n\t@   ___________________/ ____________________/\n\t@\n\t@ Note that we start with inp[2:3]*r^2. This is because it\n\t@ doesn't depend on reduction in previous iteration.\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ d4 = h4*r0 + h3*r1   + h2*r2   + h1*r3   + h0*r4\n\t@ d3 = h3*r0 + h2*r1   + h1*r2   + h0*r3   + h4*5*r4\n\t@ d2 = h2*r0 + h1*r1   + h0*r2   + h4*5*r3 + h3*5*r4\n\t@ d1 = h1*r0 + h0*r1   + h4*5*r2 + h3*5*r3 + h2*5*r4\n\t@ d0 = h0*r0 + h4*5*r1 + h3*5*r2 + h2*5*r3 + h1*5*r4\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ inp[2:3]*r^2\n\n\tvadd.i32\td24,d24,d14\t@ accumulate inp[0:1]\n\tvmull.u32\tq7,d25,d0[1]\n\tvadd.i32\td20,d20,d10\n\tvmull.u32\tq5,d21,d0[1]\n\tvadd.i32\td26,d26,d16\n\tvmull.u32\tq8,d27,d0[1]\n\tvmlal.u32\tq7,d23,d1[1]\n\tvadd.i32\td22,d22,d12\n\tvmull.u32\tq6,d23,d0[1]\n\n\tvadd.i32\td28,d28,d18\n\tvmull.u32\tq9,d29,d0[1]\n\tsubs\tr2,r2,#64\n\tvmlal.u32\tq5,d29,d2[1]\n\tit\tlo\n\tmovlo\tr4,r5\n\tvmlal.u32\tq8,d25,d1[1]\n\tvld1.32\td8[1],[r7,:32]\n\tvmlal.u32\tq6,d21,d1[1]\n\tvmlal.u32\tq9,d27,d1[1]\n\n\tvmlal.u32\tq5,d27,d4[1]\n\tvmlal.u32\tq8,d23,d3[1]\n\tvmlal.u32\tq9,d25,d3[1]\n\tvmlal.u32\tq6,d29,d4[1]\n\tvmlal.u32\tq7,d21,d3[1]\n\n\tvmlal.u32\tq8,d21,d5[1]\n\tvmlal.u32\tq5,d25,d6[1]\n\tvmlal.u32\tq9,d23,d5[1]\n\tvmlal.u32\tq6,d27,d6[1]\n\tvmlal.u32\tq7,d29,d6[1]\n\n\tvmlal.u32\tq8,d29,d8[1]\n\tvmlal.u32\tq5,d23,d8[1]\n\tvmlal.u32\tq9,d21,d7[1]\n\tvmlal.u32\tq6,d25,d8[1]\n\tvmlal.u32\tq7,d27,d8[1]\n\n\tvld4.32\t{d21,d23,d25,d27},[r4]\t@ inp[2:3] (or 0)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:21", "text": "vmlal.u32\tq5,d27,d4[1]\n\tvmlal.u32\tq8,d23,d3[1]\n\tvmlal.u32\tq9,d25,d3[1]\n\tvmlal.u32\tq6,d29,d4[1]\n\tvmlal.u32\tq7,d21,d3[1]\n\n\tvmlal.u32\tq8,d21,d5[1]\n\tvmlal.u32\tq5,d25,d6[1]\n\tvmlal.u32\tq9,d23,d5[1]\n\tvmlal.u32\tq6,d27,d6[1]\n\tvmlal.u32\tq7,d29,d6[1]\n\n\tvmlal.u32\tq8,d29,d8[1]\n\tvmlal.u32\tq5,d23,d8[1]\n\tvmlal.u32\tq9,d21,d7[1]\n\tvmlal.u32\tq6,d25,d8[1]\n\tvmlal.u32\tq7,d27,d8[1]\n\n\tvld4.32\t{d21,d23,d25,d27},[r4]\t@ inp[2:3] (or 0)\n\tadd\tr4,r4,#64\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ (hash+inp[0:1])*r^4 and accumulate\n\n\tvmlal.u32\tq8,d26,d0[0]\n\tvmlal.u32\tq5,d20,d0[0]\n\tvmlal.u32\tq9,d28,d0[0]\n\tvmlal.u32\tq6,d22,d0[0]\n\tvmlal.u32\tq7,d24,d0[0]\n\tvld1.32\td8[0],[r6,:32]\n\n\tvmlal.u32\tq8,d24,d1[0]\n\tvmlal.u32\tq5,d28,d2[0]\n\tvmlal.u32\tq9,d26,d1[0]\n\tvmlal.u32\tq6,d20,d1[0]\n\tvmlal.u32\tq7,d22,d1[0]\n\n\tvmlal.u32\tq8,d22,d3[0]\n\tvmlal.u32\tq5,d26,d4[0]\n\tvmlal.u32\tq9,d24,d3[0]\n\tvmlal.u32\tq6,d28,d4[0]\n\tvmlal.u32\tq7,d20,d3[0]\n\n\tvmlal.u32\tq8,d20,d5[0]\n\tvmlal.u32\tq5,d24,d6[0]\n\tvmlal.u32\tq9,d22,d5[0]\n\tvmlal.u32\tq6,d26,d6[0]\n\tvmlal.u32\tq8,d28,d8[0]\n\n\tvmlal.u32\tq7,d28,d6[0]\n\tvmlal.u32\tq5,d22,d8[0]\n\tvmlal.u32\tq9,d20,d7[0]\n\tvmov.i32\tq14,#1<<24\t\t@ padbit, yes, always\n\tvmlal.u32\tq6,d24,d8[0]\n\tvmlal.u32\tq7,d26,d8[0]\n\n\tvld4.32\t{d20,d22,d24,d26},[r1]\t@ inp[0:1]\n\tadd\tr1,r1,#64\n# ifdef\t__ARMEB__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:22", "text": "vmlal.u32\tq9,d24,d3[0]\n\tvmlal.u32\tq6,d28,d4[0]\n\tvmlal.u32\tq7,d20,d3[0]\n\n\tvmlal.u32\tq8,d20,d5[0]\n\tvmlal.u32\tq5,d24,d6[0]\n\tvmlal.u32\tq9,d22,d5[0]\n\tvmlal.u32\tq6,d26,d6[0]\n\tvmlal.u32\tq8,d28,d8[0]\n\n\tvmlal.u32\tq7,d28,d6[0]\n\tvmlal.u32\tq5,d22,d8[0]\n\tvmlal.u32\tq9,d20,d7[0]\n\tvmov.i32\tq14,#1<<24\t\t@ padbit, yes, always\n\tvmlal.u32\tq6,d24,d8[0]\n\tvmlal.u32\tq7,d26,d8[0]\n\n\tvld4.32\t{d20,d22,d24,d26},[r1]\t@ inp[0:1]\n\tadd\tr1,r1,#64\n# ifdef\t__ARMEB__\n\tvrev32.8\tq10,q10\n\tvrev32.8\tq11,q11\n\tvrev32.8\tq12,q12\n\tvrev32.8\tq13,q13\n# endif\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ lazy reduction interleaved with base 2^32 -> base 2^26 of\n\t@ inp[0:3] previously loaded to q10-q13 and smashed to q10-q14.\n\n\tvshr.u64\tq15,q8,#26\n\tvmovn.i64\td16,q8\n\tvshr.u64\tq4,q5,#26\n\tvmovn.i64\td10,q5\n\tvadd.i64\tq9,q9,q15\t\t@ h3 -> h4\n\tvbic.i32\td16,#0xfc000000\n\tvsri.u32\tq14,q13,#8\t\t@ base 2^32 -> base 2^26\n\tvadd.i64\tq6,q6,q4\t\t@ h0 -> h1\n\tvshl.u32\tq13,q13,#18\n\tvbic.i32\td10,#0xfc000000\n\n\tvshrn.u64\td30,q9,#26\n\tvmovn.i64\td18,q9\n\tvshr.u64\tq4,q6,#26\n\tvmovn.i64\td12,q6\n\tvadd.i64\tq7,q7,q4\t\t@ h1 -> h2\n\tvsri.u32\tq13,q12,#14\n\tvbic.i32\td18,#0xfc000000\n\tvshl.u32\tq12,q12,#12\n\tvbic.i32\td12,#0xfc000000\n\n\tvadd.i32\td10,d10,d30\n\tvshl.u32\td30,d30,#2\n\tvbic.i32\tq13,#0xfc000000\n\tvshrn.u64\td8,q7,#26\n\tvmovn.i64\td14,q7\n\tvaddl.u32\tq5,d10,d30\t@ h4 -> h0 [widen for a sec]\n\tvsri.u32\tq12,q11,#20\n\tvadd.i32\td16,d16,d8\t@ h2 -> h3\n\tvshl.u32\tq11,q11,#6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:23", "text": "vshrn.u64\td30,q9,#26\n\tvmovn.i64\td18,q9\n\tvshr.u64\tq4,q6,#26\n\tvmovn.i64\td12,q6\n\tvadd.i64\tq7,q7,q4\t\t@ h1 -> h2\n\tvsri.u32\tq13,q12,#14\n\tvbic.i32\td18,#0xfc000000\n\tvshl.u32\tq12,q12,#12\n\tvbic.i32\td12,#0xfc000000\n\n\tvadd.i32\td10,d10,d30\n\tvshl.u32\td30,d30,#2\n\tvbic.i32\tq13,#0xfc000000\n\tvshrn.u64\td8,q7,#26\n\tvmovn.i64\td14,q7\n\tvaddl.u32\tq5,d10,d30\t@ h4 -> h0 [widen for a sec]\n\tvsri.u32\tq12,q11,#20\n\tvadd.i32\td16,d16,d8\t@ h2 -> h3\n\tvshl.u32\tq11,q11,#6\n\tvbic.i32\td14,#0xfc000000\n\tvbic.i32\tq12,#0xfc000000\n\n\tvshrn.u64\td30,q5,#26\t\t@ re-narrow\n\tvmovn.i64\td10,q5\n\tvsri.u32\tq11,q10,#26\n\tvbic.i32\tq10,#0xfc000000\n\tvshr.u32\td8,d16,#26\n\tvbic.i32\td16,#0xfc000000\n\tvbic.i32\td10,#0xfc000000\n\tvadd.i32\td12,d12,d30\t@ h0 -> h1\n\tvadd.i32\td18,d18,d8\t@ h3 -> h4\n\tvbic.i32\tq11,#0xfc000000\n\n\tbhi\t.Loop_neon\n\n.Lskip_loop:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ multiply (inp[0:1]+hash) or inp[2:3] by r^2:r^1\n\n\tadd\tr7,r0,#(48+0*9*4)\n\tadd\tr6,r0,#(48+1*9*4)\n\tadds\tr2,r2,#32\n\tit\tne\n\tmovne\tr2,#0\n\tbne\t.Long_tail\n\n\tvadd.i32\td25,d24,d14\t@ add hash value and move to #hi\n\tvadd.i32\td21,d20,d10\n\tvadd.i32\td27,d26,d16\n\tvadd.i32\td23,d22,d12\n\tvadd.i32\td29,d28,d18\n\n.Long_tail:\n\tvld4.32\t{d0[1],d1[1],d2[1],d3[1]},[r7]!\t@ load r^1\n\tvld4.32\t{d0[0],d1[0],d2[0],d3[0]},[r6]!\t@ load r^2\n\n\tvadd.i32\td24,d24,d14\t@ can be redundant\n\tvmull.u32\tq7,d25,d0\n\tvadd.i32\td20,d20,d10", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:24", "text": "add\tr7,r0,#(48+0*9*4)\n\tadd\tr6,r0,#(48+1*9*4)\n\tadds\tr2,r2,#32\n\tit\tne\n\tmovne\tr2,#0\n\tbne\t.Long_tail\n\n\tvadd.i32\td25,d24,d14\t@ add hash value and move to #hi\n\tvadd.i32\td21,d20,d10\n\tvadd.i32\td27,d26,d16\n\tvadd.i32\td23,d22,d12\n\tvadd.i32\td29,d28,d18\n\n.Long_tail:\n\tvld4.32\t{d0[1],d1[1],d2[1],d3[1]},[r7]!\t@ load r^1\n\tvld4.32\t{d0[0],d1[0],d2[0],d3[0]},[r6]!\t@ load r^2\n\n\tvadd.i32\td24,d24,d14\t@ can be redundant\n\tvmull.u32\tq7,d25,d0\n\tvadd.i32\td20,d20,d10\n\tvmull.u32\tq5,d21,d0\n\tvadd.i32\td26,d26,d16\n\tvmull.u32\tq8,d27,d0\n\tvadd.i32\td22,d22,d12\n\tvmull.u32\tq6,d23,d0\n\tvadd.i32\td28,d28,d18\n\tvmull.u32\tq9,d29,d0\n\n\tvmlal.u32\tq5,d29,d2\n\tvld4.32\t{d4[1],d5[1],d6[1],d7[1]},[r7]!\n\tvmlal.u32\tq8,d25,d1\n\tvld4.32\t{d4[0],d5[0],d6[0],d7[0]},[r6]!\n\tvmlal.u32\tq6,d21,d1\n\tvmlal.u32\tq9,d27,d1\n\tvmlal.u32\tq7,d23,d1\n\n\tvmlal.u32\tq8,d23,d3\n\tvld1.32\td8[1],[r7,:32]\n\tvmlal.u32\tq5,d27,d4\n\tvld1.32\td8[0],[r6,:32]\n\tvmlal.u32\tq9,d25,d3\n\tvmlal.u32\tq6,d29,d4\n\tvmlal.u32\tq7,d21,d3\n\n\tvmlal.u32\tq8,d21,d5\n\tit\tne\n\taddne\tr7,r0,#(48+2*9*4)\n\tvmlal.u32\tq5,d25,d6\n\tit\tne\n\taddne\tr6,r0,#(48+3*9*4)\n\tvmlal.u32\tq9,d23,d5\n\tvmlal.u32\tq6,d27,d6\n\tvmlal.u32\tq7,d29,d6\n\n\tvmlal.u32\tq8,d29,d8\n\tvorn\tq0,q0,q0\t@ all-ones, can be redundant\n\tvmlal.u32\tq5,d23,d8\n\tvshr.u64\tq0,q0,#38\n\tvmlal.u32\tq9,d21,d7\n\tvmlal.u32\tq6,d25,d8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:25", "text": "vmlal.u32\tq9,d25,d3\n\tvmlal.u32\tq6,d29,d4\n\tvmlal.u32\tq7,d21,d3\n\n\tvmlal.u32\tq8,d21,d5\n\tit\tne\n\taddne\tr7,r0,#(48+2*9*4)\n\tvmlal.u32\tq5,d25,d6\n\tit\tne\n\taddne\tr6,r0,#(48+3*9*4)\n\tvmlal.u32\tq9,d23,d5\n\tvmlal.u32\tq6,d27,d6\n\tvmlal.u32\tq7,d29,d6\n\n\tvmlal.u32\tq8,d29,d8\n\tvorn\tq0,q0,q0\t@ all-ones, can be redundant\n\tvmlal.u32\tq5,d23,d8\n\tvshr.u64\tq0,q0,#38\n\tvmlal.u32\tq9,d21,d7\n\tvmlal.u32\tq6,d25,d8\n\tvmlal.u32\tq7,d27,d8\n\n\tbeq\t.Lshort_tail\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ (hash+inp[0:1])*r^4:r^3 and accumulate\n\n\tvld4.32\t{d0[1],d1[1],d2[1],d3[1]},[r7]!\t@ load r^3\n\tvld4.32\t{d0[0],d1[0],d2[0],d3[0]},[r6]!\t@ load r^4\n\n\tvmlal.u32\tq7,d24,d0\n\tvmlal.u32\tq5,d20,d0\n\tvmlal.u32\tq8,d26,d0\n\tvmlal.u32\tq6,d22,d0\n\tvmlal.u32\tq9,d28,d0\n\n\tvmlal.u32\tq5,d28,d2\n\tvld4.32\t{d4[1],d5[1],d6[1],d7[1]},[r7]!\n\tvmlal.u32\tq8,d24,d1\n\tvld4.32\t{d4[0],d5[0],d6[0],d7[0]},[r6]!\n\tvmlal.u32\tq6,d20,d1\n\tvmlal.u32\tq9,d26,d1\n\tvmlal.u32\tq7,d22,d1\n\n\tvmlal.u32\tq8,d22,d3\n\tvld1.32\td8[1],[r7,:32]\n\tvmlal.u32\tq5,d26,d4\n\tvld1.32\td8[0],[r6,:32]\n\tvmlal.u32\tq9,d24,d3\n\tvmlal.u32\tq6,d28,d4\n\tvmlal.u32\tq7,d20,d3\n\n\tvmlal.u32\tq8,d20,d5\n\tvmlal.u32\tq5,d24,d6\n\tvmlal.u32\tq9,d22,d5\n\tvmlal.u32\tq6,d26,d6\n\tvmlal.u32\tq7,d28,d6\n\n\tvmlal.u32\tq8,d28,d8\n\tvorn\tq0,q0,q0\t@ all-ones", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:26", "text": "vmlal.u32\tq6,d20,d1\n\tvmlal.u32\tq9,d26,d1\n\tvmlal.u32\tq7,d22,d1\n\n\tvmlal.u32\tq8,d22,d3\n\tvld1.32\td8[1],[r7,:32]\n\tvmlal.u32\tq5,d26,d4\n\tvld1.32\td8[0],[r6,:32]\n\tvmlal.u32\tq9,d24,d3\n\tvmlal.u32\tq6,d28,d4\n\tvmlal.u32\tq7,d20,d3\n\n\tvmlal.u32\tq8,d20,d5\n\tvmlal.u32\tq5,d24,d6\n\tvmlal.u32\tq9,d22,d5\n\tvmlal.u32\tq6,d26,d6\n\tvmlal.u32\tq7,d28,d6\n\n\tvmlal.u32\tq8,d28,d8\n\tvorn\tq0,q0,q0\t@ all-ones\n\tvmlal.u32\tq5,d22,d8\n\tvshr.u64\tq0,q0,#38\n\tvmlal.u32\tq9,d20,d7\n\tvmlal.u32\tq6,d24,d8\n\tvmlal.u32\tq7,d26,d8\n\n.Lshort_tail:\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ horizontal addition\n\n\tvadd.i64\td16,d16,d17\n\tvadd.i64\td10,d10,d11\n\tvadd.i64\td18,d18,d19\n\tvadd.i64\td12,d12,d13\n\tvadd.i64\td14,d14,d15\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ lazy reduction, but without narrowing\n\n\tvshr.u64\tq15,q8,#26\n\tvand.i64\tq8,q8,q0\n\tvshr.u64\tq4,q5,#26\n\tvand.i64\tq5,q5,q0\n\tvadd.i64\tq9,q9,q15\t\t@ h3 -> h4\n\tvadd.i64\tq6,q6,q4\t\t@ h0 -> h1\n\n\tvshr.u64\tq15,q9,#26\n\tvand.i64\tq9,q9,q0\n\tvshr.u64\tq4,q6,#26\n\tvand.i64\tq6,q6,q0\n\tvadd.i64\tq7,q7,q4\t\t@ h1 -> h2\n\n\tvadd.i64\tq5,q5,q15\n\tvshl.u64\tq15,q15,#2\n\tvshr.u64\tq4,q7,#26\n\tvand.i64\tq7,q7,q0\n\tvadd.i64\tq5,q5,q15\t\t@ h4 -> h0\n\tvadd.i64\tq8,q8,q4\t\t@ h2 -> h3\n\n\tvshr.u64\tq15,q5,#26", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:27", "text": "vand.i64\tq8,q8,q0\n\tvshr.u64\tq4,q5,#26\n\tvand.i64\tq5,q5,q0\n\tvadd.i64\tq9,q9,q15\t\t@ h3 -> h4\n\tvadd.i64\tq6,q6,q4\t\t@ h0 -> h1\n\n\tvshr.u64\tq15,q9,#26\n\tvand.i64\tq9,q9,q0\n\tvshr.u64\tq4,q6,#26\n\tvand.i64\tq6,q6,q0\n\tvadd.i64\tq7,q7,q4\t\t@ h1 -> h2\n\n\tvadd.i64\tq5,q5,q15\n\tvshl.u64\tq15,q15,#2\n\tvshr.u64\tq4,q7,#26\n\tvand.i64\tq7,q7,q0\n\tvadd.i64\tq5,q5,q15\t\t@ h4 -> h0\n\tvadd.i64\tq8,q8,q4\t\t@ h2 -> h3\n\n\tvshr.u64\tq15,q5,#26\n\tvand.i64\tq5,q5,q0\n\tvshr.u64\tq4,q8,#26\n\tvand.i64\tq8,q8,q0\n\tvadd.i64\tq6,q6,q15\t\t@ h0 -> h1\n\tvadd.i64\tq9,q9,q4\t\t@ h3 -> h4\n\n\tcmp\tr2,#0\n\tbne\t.Leven\n\n\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\t@ store hash value\n\n\tvst4.32\t{d10[0],d12[0],d14[0],d16[0]},[r0]!\n\tvst1.32\t{d18[0]},[r0]\n\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t\t@ epilogue\n\tldmia\tsp!,{r4,r5,r6,r7}\n.Lno_data_neon:\n\tRET\t\t\t\t\t@ bx\tlr\n.size\tpoly1305_blocks_neon,.-poly1305_blocks_neon\n\n.type\tpoly1305_emit_neon,%function\n.align\t5\npoly1305_emit_neon:\n.Lpoly1305_emit_neon:\n\tldr\tip,[r0,#36]\t\t@ is_base2_26\n\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\n\ttst\tip,ip\n\tbeq\t.Lpoly1305_emit_enter\n\n\tldmia\tr0,{r3,r4,r5,r6,r7}\n\teor\tr8,r8,r8\n\n\tadds\tr3,r3,r4,lsl#26\t@ base 2^26 -> base 2^32\n\tmov\tr4,r4,lsr#6\n\tadcs\tr4,r4,r5,lsl#20\n\tmov\tr5,r5,lsr#12\n\tadcs\tr5,r5,r6,lsl#14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:28", "text": ".type\tpoly1305_emit_neon,%function\n.align\t5\npoly1305_emit_neon:\n.Lpoly1305_emit_neon:\n\tldr\tip,[r0,#36]\t\t@ is_base2_26\n\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\n\ttst\tip,ip\n\tbeq\t.Lpoly1305_emit_enter\n\n\tldmia\tr0,{r3,r4,r5,r6,r7}\n\teor\tr8,r8,r8\n\n\tadds\tr3,r3,r4,lsl#26\t@ base 2^26 -> base 2^32\n\tmov\tr4,r4,lsr#6\n\tadcs\tr4,r4,r5,lsl#20\n\tmov\tr5,r5,lsr#12\n\tadcs\tr5,r5,r6,lsl#14\n\tmov\tr6,r6,lsr#18\n\tadcs\tr6,r6,r7,lsl#8\n\tadc\tr7,r8,r7,lsr#24\t@ can be partially reduced ...\n\n\tand\tr8,r7,#-4\t\t@ ... so reduce\n\tand\tr7,r6,#3\n\tadd\tr8,r8,r8,lsr#2\t@ *= 5\n\tadds\tr3,r3,r8\n\tadcs\tr4,r4,#0\n\tadcs\tr5,r5,#0\n\tadcs\tr6,r6,#0\n\tadc\tr7,r7,#0\n\n\tadds\tr8,r3,#5\t\t@ compare to modulus\n\tadcs\tr9,r4,#0\n\tadcs\tr10,r5,#0\n\tadcs\tr11,r6,#0\n\tadc\tr7,r7,#0\n\ttst\tr7,#4\t\t\t@ did it carry/borrow?\n\n\tit\tne\n\tmovne\tr3,r8\n\tldr\tr8,[r2,#0]\n\tit\tne\n\tmovne\tr4,r9\n\tldr\tr9,[r2,#4]\n\tit\tne\n\tmovne\tr5,r10\n\tldr\tr10,[r2,#8]\n\tit\tne\n\tmovne\tr6,r11\n\tldr\tr11,[r2,#12]\n\n\tadds\tr3,r3,r8\t\t@ accumulate nonce\n\tadcs\tr4,r4,r9\n\tadcs\tr5,r5,r10\n\tadc\tr6,r6,r11\n\n# ifdef __ARMEB__\n\trev\tr3,r3", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:29", "text": "it\tne\n\tmovne\tr3,r8\n\tldr\tr8,[r2,#0]\n\tit\tne\n\tmovne\tr4,r9\n\tldr\tr9,[r2,#4]\n\tit\tne\n\tmovne\tr5,r10\n\tldr\tr10,[r2,#8]\n\tit\tne\n\tmovne\tr6,r11\n\tldr\tr11,[r2,#12]\n\n\tadds\tr3,r3,r8\t\t@ accumulate nonce\n\tadcs\tr4,r4,r9\n\tadcs\tr5,r5,r10\n\tadc\tr6,r6,r11\n\n# ifdef __ARMEB__\n\trev\tr3,r3\n\trev\tr4,r4\n\trev\tr5,r5\n\trev\tr6,r6\n# endif\n\tstr\tr3,[r1,#0]\t\t@ store the result\n\tstr\tr4,[r1,#4]\n\tstr\tr5,[r1,#8]\n\tstr\tr6,[r1,#12]\n\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11}\n\tRET\t\t\t\t@ bx\tlr\n.size\tpoly1305_emit_neon,.-poly1305_emit_neon\n\n.align\t5\n.Lzeros:\n.long\t0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.Lpoly1305_init\n# endif\n#endif\n.byte\t80,111,108,121,49,51,48,53,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2\n#if\t__ARM_MAX_ARCH__>=7\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 1121, "line_end": 1170}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S:30", "text": ".word\tOPENSSL_armcap_P-.Lpoly1305_init\n# endif\n#endif\n.byte\t80,111,108,121,49,51,48,53,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2\n#if\t__ARM_MAX_ARCH__>=7\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S", "line_start": 1161, "line_end": 1170}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n.text\n\n// forward \"declarations\" are required for Apple\n\n.hidden\tOPENSSL_armcap_P\n.globl\tpoly1305_init\n.hidden\tpoly1305_init\n.globl\tpoly1305_blocks\n.hidden\tpoly1305_blocks\n.globl\tpoly1305_emit\n.hidden\tpoly1305_emit\n\n.type\tpoly1305_init,%function\n.align\t5\npoly1305_init:\n\tAARCH64_VALID_CALL_TARGET\n\tcmp\tx1,xzr\n\tstp\txzr,xzr,[x0]\t\t// zero hash value\n\tstp\txzr,xzr,[x0,#16]\t// [along with is_base2_26]\n\n\tcsel\tx0,xzr,x0,eq\n\tb.eq\t.Lno_key\n\n\tadrp\tx17,OPENSSL_armcap_P\n\tldr\tw17,[x17,#:lo12:OPENSSL_armcap_P]\n\n\tldp\tx7,x8,[x1]\t\t// load key\n\tmov\tx9,#0xfffffffc0fffffff\n\tmovk\tx9,#0x0fff,lsl#48\n#ifdef\t__AARCH64EB__\n\trev\tx7,x7\t\t\t// flip bytes\n\trev\tx8,x8\n#endif\n\tand\tx7,x7,x9\t\t// &=0ffffffc0fffffff\n\tand\tx9,x9,#-4\n\tand\tx8,x8,x9\t\t// &=0ffffffc0ffffffc\n\tstp\tx7,x8,[x0,#32]\t// save key value\n\n\ttst\tw17,#ARMV7_NEON\n\n\tadrp\tx12,poly1305_blocks\n\tadd\tx12,x12,#:lo12:.Lpoly1305_blocks\n\tadrp\tx7,poly1305_blocks_neon\n\tadd\tx7,x7,#:lo12:.Lpoly1305_blocks_neon\n\tadrp\tx13,poly1305_emit\n\tadd\tx13,x13,#:lo12:.Lpoly1305_emit\n\tadrp\tx8,poly1305_emit_neon\n\tadd\tx8,x8,#:lo12:.Lpoly1305_emit_neon\n\n\tcsel\tx12,x12,x7,eq\n\tcsel\tx13,x13,x8,eq\n\n#ifdef\t__ILP32__\n\tstp\tw12,w13,[x2]\n#else\n\tstp\tx12,x13,[x2]\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:2", "text": "tst\tw17,#ARMV7_NEON\n\n\tadrp\tx12,poly1305_blocks\n\tadd\tx12,x12,#:lo12:.Lpoly1305_blocks\n\tadrp\tx7,poly1305_blocks_neon\n\tadd\tx7,x7,#:lo12:.Lpoly1305_blocks_neon\n\tadrp\tx13,poly1305_emit\n\tadd\tx13,x13,#:lo12:.Lpoly1305_emit\n\tadrp\tx8,poly1305_emit_neon\n\tadd\tx8,x8,#:lo12:.Lpoly1305_emit_neon\n\n\tcsel\tx12,x12,x7,eq\n\tcsel\tx13,x13,x8,eq\n\n#ifdef\t__ILP32__\n\tstp\tw12,w13,[x2]\n#else\n\tstp\tx12,x13,[x2]\n#endif\n\n\tmov\tx0,#1\n.Lno_key:\n\tret\n.size\tpoly1305_init,.-poly1305_init\n\n.type\tpoly1305_blocks,%function\n.align\t5\npoly1305_blocks:\n.Lpoly1305_blocks:\n\t// The symbol .Lpoly1305_blocks is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tands\tx2,x2,#-16\n\tb.eq\t.Lno_data\n\n\tldp\tx4,x5,[x0]\t\t// load hash value\n\tldp\tx7,x8,[x0,#32]\t// load key value\n\tldr\tx6,[x0,#16]\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\tb\t.Loop\n\n.align\t5\n.Loop:\n\tldp\tx10,x11,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n#ifdef\t__AARCH64EB__\n\trev\tx10,x10\n\trev\tx11,x11\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate input\n\tadcs\tx5,x5,x11\n\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tadc\tx6,x6,x3\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:3", "text": "b\t.Loop\n\n.align\t5\n.Loop:\n\tldp\tx10,x11,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n#ifdef\t__AARCH64EB__\n\trev\tx10,x10\n\trev\tx11,x11\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate input\n\tadcs\tx5,x5,x11\n\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tadc\tx6,x6,x3\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10\n\tmul\tx10,x4,x8\t\t// h0*r1\n\tadc\tx13,x13,x11\n\tumulh\tx14,x4,x8\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x5,x7\t\t// h1*r0\n\tadc\tx14,x14,xzr\n\tumulh\tx11,x5,x7\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x6,x9\t\t// h2*5*r1\n\tadc\tx14,x14,x11\n\tmul\tx11,x6,x7\t\t// h2*r0\n\n\tadds\tx13,x13,x10\n\tadc\tx14,x14,x11\n\n\tand\tx10,x14,#-4\t\t// final reduction\n\tand\tx6,x14,#3\n\tadd\tx10,x10,x14,lsr#2\n\tadds\tx4,x12,x10\n\tadcs\tx5,x13,xzr\n\tadc\tx6,x6,xzr\n\n\tcbnz\tx2,.Loop\n\n\tstp\tx4,x5,[x0]\t\t// store hash value\n\tstr\tx6,[x0,#16]\n\n.Lno_data:\n\tret\n.size\tpoly1305_blocks,.-poly1305_blocks\n\n.type\tpoly1305_emit,%function\n.align\t5\npoly1305_emit:\n.Lpoly1305_emit:\n\t// The symbol .poly1305_emit is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:4", "text": "add\tx10,x10,x14,lsr#2\n\tadds\tx4,x12,x10\n\tadcs\tx5,x13,xzr\n\tadc\tx6,x6,xzr\n\n\tcbnz\tx2,.Loop\n\n\tstp\tx4,x5,[x0]\t\t// store hash value\n\tstr\tx6,[x0,#16]\n\n.Lno_data:\n\tret\n.size\tpoly1305_blocks,.-poly1305_blocks\n\n.type\tpoly1305_emit,%function\n.align\t5\npoly1305_emit:\n.Lpoly1305_emit:\n\t// The symbol .poly1305_emit is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tldp\tx4,x5,[x0]\t\t// load hash base 2^64\n\tldr\tx6,[x0,#16]\n\tldp\tx10,x11,[x2]\t// load nonce\n\n\tadds\tx12,x4,#5\t\t// compare to modulus\n\tadcs\tx13,x5,xzr\n\tadc\tx14,x6,xzr\n\n\ttst\tx14,#-4\t\t\t// see if it's carried/borrowed\n\n\tcsel\tx4,x4,x12,eq\n\tcsel\tx5,x5,x13,eq\n\n#ifdef\t__AARCH64EB__\n\tror\tx10,x10,#32\t\t// flip nonce words\n\tror\tx11,x11,#32\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate nonce\n\tadc\tx5,x5,x11\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\t\t\t// flip output bytes\n\trev\tx5,x5\n#endif\n\tstp\tx4,x5,[x1]\t\t// write result\n\n\tret\n.size\tpoly1305_emit,.-poly1305_emit\n.type\tpoly1305_mult,%function\n.align\t5\npoly1305_mult:\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10\n\tmul\tx10,x4,x8\t\t// h0*r1\n\tadc\tx13,x13,x11", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:5", "text": "#ifdef\t__AARCH64EB__\n\trev\tx4,x4\t\t\t// flip output bytes\n\trev\tx5,x5\n#endif\n\tstp\tx4,x5,[x1]\t\t// write result\n\n\tret\n.size\tpoly1305_emit,.-poly1305_emit\n.type\tpoly1305_mult,%function\n.align\t5\npoly1305_mult:\n\tmul\tx12,x4,x7\t\t// h0*r0\n\tumulh\tx13,x4,x7\n\n\tmul\tx10,x5,x9\t\t// h1*5*r1\n\tumulh\tx11,x5,x9\n\n\tadds\tx12,x12,x10\n\tmul\tx10,x4,x8\t\t// h0*r1\n\tadc\tx13,x13,x11\n\tumulh\tx14,x4,x8\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x5,x7\t\t// h1*r0\n\tadc\tx14,x14,xzr\n\tumulh\tx11,x5,x7\n\n\tadds\tx13,x13,x10\n\tmul\tx10,x6,x9\t\t// h2*5*r1\n\tadc\tx14,x14,x11\n\tmul\tx11,x6,x7\t\t// h2*r0\n\n\tadds\tx13,x13,x10\n\tadc\tx14,x14,x11\n\n\tand\tx10,x14,#-4\t\t// final reduction\n\tand\tx6,x14,#3\n\tadd\tx10,x10,x14,lsr#2\n\tadds\tx4,x12,x10\n\tadcs\tx5,x13,xzr\n\tadc\tx6,x6,xzr\n\n\tret\n.size\tpoly1305_mult,.-poly1305_mult\n\n.type\tpoly1305_splat,%function\n.align\t5\npoly1305_splat:\n\tand\tx12,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx13,x4,#26,#26\n\textr\tx14,x5,x4,#52\n\tand\tx14,x14,#0x03ffffff\n\tubfx\tx15,x5,#14,#26\n\textr\tx16,x6,x5,#40\n\n\tstr\tw12,[x0,#16*0]\t// r0\n\tadd\tw12,w13,w13,lsl#2\t// r1*5\n\tstr\tw13,[x0,#16*1]\t// r1\n\tadd\tw13,w14,w14,lsl#2\t// r2*5\n\tstr\tw12,[x0,#16*2]\t// s1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:6", "text": "adc\tx6,x6,xzr\n\n\tret\n.size\tpoly1305_mult,.-poly1305_mult\n\n.type\tpoly1305_splat,%function\n.align\t5\npoly1305_splat:\n\tand\tx12,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx13,x4,#26,#26\n\textr\tx14,x5,x4,#52\n\tand\tx14,x14,#0x03ffffff\n\tubfx\tx15,x5,#14,#26\n\textr\tx16,x6,x5,#40\n\n\tstr\tw12,[x0,#16*0]\t// r0\n\tadd\tw12,w13,w13,lsl#2\t// r1*5\n\tstr\tw13,[x0,#16*1]\t// r1\n\tadd\tw13,w14,w14,lsl#2\t// r2*5\n\tstr\tw12,[x0,#16*2]\t// s1\n\tstr\tw14,[x0,#16*3]\t// r2\n\tadd\tw14,w15,w15,lsl#2\t// r3*5\n\tstr\tw13,[x0,#16*4]\t// s2\n\tstr\tw15,[x0,#16*5]\t// r3\n\tadd\tw15,w16,w16,lsl#2\t// r4*5\n\tstr\tw14,[x0,#16*6]\t// s3\n\tstr\tw16,[x0,#16*7]\t// r4\n\tstr\tw15,[x0,#16*8]\t// s4\n\n\tret\n.size\tpoly1305_splat,.-poly1305_splat\n\n.type\tpoly1305_blocks_neon,%function\n.align\t5\npoly1305_blocks_neon:\n.Lpoly1305_blocks_neon:\n\t// The symbol .Lpoly1305_blocks_neon is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tldr\tx17,[x0,#24]\n\tcmp\tx2,#128\n\tb.hs\t.Lblocks_neon\n\tcbz\tx17,.Lpoly1305_blocks\n\n.Lblocks_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\n\tands\tx2,x2,#-16\n\tb.eq\t.Lno_data_neon\n\n\tcbz\tx17,.Lbase2_64_neon\n\n\tldp\tw10,w11,[x0]\t\t// load hash value base 2^26\n\tldp\tw12,w13,[x0,#8]\n\tldr\tw14,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Leven_neon", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:7", "text": "cmp\tx2,#128\n\tb.hs\t.Lblocks_neon\n\tcbz\tx17,.Lpoly1305_blocks\n\n.Lblocks_neon:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-80]!\n\tadd\tx29,sp,#0\n\n\tands\tx2,x2,#-16\n\tb.eq\t.Lno_data_neon\n\n\tcbz\tx17,.Lbase2_64_neon\n\n\tldp\tw10,w11,[x0]\t\t// load hash value base 2^26\n\tldp\tw12,w13,[x0,#8]\n\tldr\tw14,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Leven_neon\n\n\tldp\tx7,x8,[x0,#32]\t// load key value\n\n\tadd\tx4,x10,x11,lsl#26\t// base 2^26 -> base 2^64\n\tlsr\tx5,x12,#12\n\tadds\tx4,x4,x12,lsl#52\n\tadd\tx5,x5,x13,lsl#14\n\tadc\tx5,x5,xzr\n\tlsr\tx6,x14,#24\n\tadds\tx5,x5,x14,lsl#40\n\tadc\tx14,x6,xzr\t\t// can be partially reduced...\n\n\tldp\tx12,x13,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\n\tand\tx10,x14,#-4\t\t// ... so reduce\n\tand\tx6,x14,#3\n\tadd\tx10,x10,x14,lsr#2\n\tadds\tx4,x4,x10\n\tadcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\tldr\tx30,[sp,#8]\n\n\tcbz\tx3,.Lstore_base2_64_neon\n\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx11,x4,#26,#26\n\textr\tx12,x5,x4,#52\n\tand\tx12,x12,#0x03ffffff", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:8", "text": "adcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\tldr\tx30,[sp,#8]\n\n\tcbz\tx3,.Lstore_base2_64_neon\n\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx11,x4,#26,#26\n\textr\tx12,x5,x4,#52\n\tand\tx12,x12,#0x03ffffff\n\tubfx\tx13,x5,#14,#26\n\textr\tx14,x6,x5,#40\n\n\tcbnz\tx2,.Leven_neon\n\n\tstp\tw10,w11,[x0]\t\t// store hash value base 2^26\n\tstp\tw12,w13,[x0,#8]\n\tstr\tw14,[x0,#16]\n\tb\t.Lno_data_neon\n\n.align\t4\n.Lstore_base2_64_neon:\n\tstp\tx4,x5,[x0]\t\t// store hash value base 2^64\n\tstp\tx6,xzr,[x0,#16]\t// note that is_base2_26 is zeroed\n\tb\t.Lno_data_neon\n\n.align\t4\n.Lbase2_64_neon:\n\tldp\tx7,x8,[x0,#32]\t// load key value\n\n\tldp\tx4,x5,[x0]\t\t// load hash value base 2^64\n\tldr\tx6,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Linit_neon\n\n\tldp\tx12,x13,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\n.Linit_neon:", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:9", "text": "ldp\tx4,x5,[x0]\t\t// load hash value base 2^64\n\tldr\tx6,[x0,#16]\n\n\ttst\tx2,#31\n\tb.eq\t.Linit_neon\n\n\tldp\tx12,x13,[x1],#16\t// load input\n\tsub\tx2,x2,#16\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n#ifdef\t__AARCH64EB__\n\trev\tx12,x12\n\trev\tx13,x13\n#endif\n\tadds\tx4,x4,x12\t\t// accumulate input\n\tadcs\tx5,x5,x13\n\tadc\tx6,x6,x3\n\n\tbl\tpoly1305_mult\n\n.Linit_neon:\n\tand\tx10,x4,#0x03ffffff\t// base 2^64 -> base 2^26\n\tubfx\tx11,x4,#26,#26\n\textr\tx12,x5,x4,#52\n\tand\tx12,x12,#0x03ffffff\n\tubfx\tx13,x5,#14,#26\n\textr\tx14,x6,x5,#40\n\n\tstp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\n\tfmov\td24,x10\n\tfmov\td25,x11\n\tfmov\td26,x12\n\tfmov\td27,x13\n\tfmov\td28,x14\n\n\t////////////////////////////////// initialize r^n table\n\tmov\tx4,x7\t\t\t// r^1\n\tadd\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\tmov\tx5,x8\n\tmov\tx6,xzr\n\tadd\tx0,x0,#48+12\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^2\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^3\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^4\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\tldr\tx30,[sp,#8]\n\n\tadd\tx16,x1,#32", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:10", "text": "add\tx9,x8,x8,lsr#2\t// s1 = r1 + (r1 >> 2)\n\tmov\tx5,x8\n\tmov\tx6,xzr\n\tadd\tx0,x0,#48+12\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^2\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^3\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\n\tbl\tpoly1305_mult\t\t// r^4\n\tsub\tx0,x0,#4\n\tbl\tpoly1305_splat\n\tldr\tx30,[sp,#8]\n\n\tadd\tx16,x1,#32\n\tadrp\tx17,.Lzeros\n\tadd\tx17,x17,#:lo12:.Lzeros\n\tsubs\tx2,x2,#64\n\tcsel\tx16,x17,x16,lo\n\n\tmov\tx4,#1\n\tstur\tx4,[x0,#-24]\t\t// set is_base2_26\n\tsub\tx0,x0,#48\t\t// restore original x0\n\tb\t.Ldo_neon\n\n.align\t4\n.Leven_neon:\n\tadd\tx16,x1,#32\n\tadrp\tx17,.Lzeros\n\tadd\tx17,x17,#:lo12:.Lzeros\n\tsubs\tx2,x2,#64\n\tcsel\tx16,x17,x16,lo\n\n\tstp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\tstp\td10,d11,[sp,#32]\n\tstp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\n\tfmov\td24,x10\n\tfmov\td25,x11\n\tfmov\td26,x12\n\tfmov\td27,x13\n\tfmov\td28,x14\n\n.Ldo_neon:\n\tldp\tx8,x12,[x16],#16\t// inp[2:3] (or zero)\n\tldp\tx9,x13,[x16],#48\n\n\tlsl\tx3,x3,#24\n\tadd\tx15,x0,#48\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:11", "text": "stp\td12,d13,[sp,#48]\n\tstp\td14,d15,[sp,#64]\n\n\tfmov\td24,x10\n\tfmov\td25,x11\n\tfmov\td26,x12\n\tfmov\td27,x13\n\tfmov\td28,x14\n\n.Ldo_neon:\n\tldp\tx8,x12,[x16],#16\t// inp[2:3] (or zero)\n\tldp\tx9,x13,[x16],#48\n\n\tlsl\tx3,x3,#24\n\tadd\tx15,x0,#48\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tand\tx5,x9,#0x03ffffff\n\tubfx\tx6,x8,#26,#26\n\tubfx\tx7,x9,#26,#26\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\textr\tx8,x12,x8,#52\n\textr\tx9,x13,x9,#52\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tfmov\td14,x4\n\tand\tx8,x8,#0x03ffffff\n\tand\tx9,x9,#0x03ffffff\n\tubfx\tx10,x12,#14,#26\n\tubfx\tx11,x13,#14,#26\n\tadd\tx12,x3,x12,lsr#40\n\tadd\tx13,x3,x13,lsr#40\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tfmov\td15,x6\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tfmov\td16,x8\n\tfmov\td17,x10\n\tfmov\td18,x12\n\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tldp\tx9,x13,[x1],#48\n\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x15],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x15],#64\n\tld1\t{v8.4s},[x15]\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tand\tx5,x9,#0x03ffffff", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:12", "text": "add\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tfmov\td16,x8\n\tfmov\td17,x10\n\tfmov\td18,x12\n\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tldp\tx9,x13,[x1],#48\n\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x15],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x15],#64\n\tld1\t{v8.4s},[x15]\n\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tand\tx5,x9,#0x03ffffff\n\tubfx\tx6,x8,#26,#26\n\tubfx\tx7,x9,#26,#26\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\textr\tx8,x12,x8,#52\n\textr\tx9,x13,x9,#52\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tfmov\td9,x4\n\tand\tx8,x8,#0x03ffffff\n\tand\tx9,x9,#0x03ffffff\n\tubfx\tx10,x12,#14,#26\n\tubfx\tx11,x13,#14,#26\n\tadd\tx12,x3,x12,lsr#40\n\tadd\tx13,x3,x13,lsr#40\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tfmov\td10,x6\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tmovi\tv31.2d,#-1\n\tfmov\td11,x8\n\tfmov\td12,x10\n\tfmov\td13,x12\n\tushr\tv31.2d,v31.2d,#38\n\n\tb.ls\t.Lskip_loop\n\n.align\t4\n.Loop_neon:\n\t////////////////////////////////////////////////////////////////\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^3+inp[7]*r\n\t//   ___________________/\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2+inp[8])*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^4+inp[7]*r^2+inp[9])*r\n\t//   ___________________/ ____________________/\n\t//\n\t// Note that we start with inp[2:3]*r^2. This is because it\n\t// doesn't depend on reduction in previous iteration.\n\t////////////////////////////////////////////////////////////////\n\t// d4 = h0*r4 + h1*r3   + h2*r2   + h3*r1   + h4*r0\n\t// d3 = h0*r3 + h1*r2   + h2*r1   + h3*r0   + h4*5*r4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:13", "text": "fmov\td13,x12\n\tushr\tv31.2d,v31.2d,#38\n\n\tb.ls\t.Lskip_loop\n\n.align\t4\n.Loop_neon:\n\t////////////////////////////////////////////////////////////////\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^3+inp[7]*r\n\t//   ___________________/\n\t// ((inp[0]*r^4+inp[2]*r^2+inp[4])*r^4+inp[6]*r^2+inp[8])*r^2\n\t// ((inp[1]*r^4+inp[3]*r^2+inp[5])*r^4+inp[7]*r^2+inp[9])*r\n\t//   ___________________/ ____________________/\n\t//\n\t// Note that we start with inp[2:3]*r^2. This is because it\n\t// doesn't depend on reduction in previous iteration.\n\t////////////////////////////////////////////////////////////////\n\t// d4 = h0*r4 + h1*r3   + h2*r2   + h3*r1   + h4*r0\n\t// d3 = h0*r3 + h1*r2   + h2*r1   + h3*r0   + h4*5*r4\n\t// d2 = h0*r2 + h1*r1   + h2*r0   + h3*5*r4 + h4*5*r3\n\t// d1 = h0*r1 + h1*r0   + h2*5*r4 + h3*5*r3 + h4*5*r2\n\t// d0 = h0*r0 + h1*5*r4 + h2*5*r3 + h3*5*r2 + h4*5*r1\n\n\tsubs\tx2,x2,#64\n\tumull\tv23.2d,v14.2s,v7.s[2]\n\tcsel\tx16,x17,x16,lo\n\tumull\tv22.2d,v14.2s,v5.s[2]\n\tumull\tv21.2d,v14.2s,v3.s[2]\n\tldp\tx8,x12,[x16],#16\t// inp[2:3] (or zero)\n\tumull\tv20.2d,v14.2s,v1.s[2]\n\tldp\tx9,x13,[x16],#48\n\tumull\tv19.2d,v14.2s,v0.s[2]\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\n\tumlal\tv23.2d,v15.2s,v5.s[2]\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tumlal\tv22.2d,v15.2s,v3.s[2]\n\tand\tx5,x9,#0x03ffffff\n\tumlal\tv21.2d,v15.2s,v1.s[2]\n\tubfx\tx6,x8,#26,#26\n\tumlal\tv20.2d,v15.2s,v0.s[2]\n\tubfx\tx7,x9,#26,#26\n\tumlal\tv19.2d,v15.2s,v8.s[2]\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\n\tumlal\tv23.2d,v16.2s,v3.s[2]\n\textr\tx8,x12,x8,#52\n\tumlal\tv22.2d,v16.2s,v1.s[2]\n\textr\tx9,x13,x9,#52\n\tumlal\tv21.2d,v16.2s,v0.s[2]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv20.2d,v16.2s,v8.s[2]\n\tfmov\td14,x4\n\tumlal\tv19.2d,v16.2s,v6.s[2]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:14", "text": "umlal\tv23.2d,v15.2s,v5.s[2]\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tumlal\tv22.2d,v15.2s,v3.s[2]\n\tand\tx5,x9,#0x03ffffff\n\tumlal\tv21.2d,v15.2s,v1.s[2]\n\tubfx\tx6,x8,#26,#26\n\tumlal\tv20.2d,v15.2s,v0.s[2]\n\tubfx\tx7,x9,#26,#26\n\tumlal\tv19.2d,v15.2s,v8.s[2]\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\n\tumlal\tv23.2d,v16.2s,v3.s[2]\n\textr\tx8,x12,x8,#52\n\tumlal\tv22.2d,v16.2s,v1.s[2]\n\textr\tx9,x13,x9,#52\n\tumlal\tv21.2d,v16.2s,v0.s[2]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv20.2d,v16.2s,v8.s[2]\n\tfmov\td14,x4\n\tumlal\tv19.2d,v16.2s,v6.s[2]\n\tand\tx8,x8,#0x03ffffff\n\n\tumlal\tv23.2d,v17.2s,v1.s[2]\n\tand\tx9,x9,#0x03ffffff\n\tumlal\tv22.2d,v17.2s,v0.s[2]\n\tubfx\tx10,x12,#14,#26\n\tumlal\tv21.2d,v17.2s,v8.s[2]\n\tubfx\tx11,x13,#14,#26\n\tumlal\tv20.2d,v17.2s,v6.s[2]\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tumlal\tv19.2d,v17.2s,v4.s[2]\n\tfmov\td15,x6\n\n\tadd\tv11.2s,v11.2s,v26.2s\n\tadd\tx12,x3,x12,lsr#40\n\tumlal\tv23.2d,v18.2s,v0.s[2]\n\tadd\tx13,x3,x13,lsr#40\n\tumlal\tv22.2d,v18.2s,v8.s[2]\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tumlal\tv21.2d,v18.2s,v6.s[2]\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tumlal\tv20.2d,v18.2s,v4.s[2]\n\tfmov\td16,x8\n\tumlal\tv19.2d,v18.2s,v2.s[2]\n\tfmov\td17,x10\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tfmov\td18,x12\n\tumlal\tv22.2d,v11.2s,v1.s[0]\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tumlal\tv19.2d,v11.2s,v6.s[0]\n\tldp\tx9,x13,[x1],#48\n\tumlal\tv23.2d,v11.2s,v3.s[0]\n\tumlal\tv20.2d,v11.2s,v8.s[0]\n\tumlal\tv21.2d,v11.2s,v0.s[0]\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:15", "text": "add\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tumlal\tv20.2d,v18.2s,v4.s[2]\n\tfmov\td16,x8\n\tumlal\tv19.2d,v18.2s,v2.s[2]\n\tfmov\td17,x10\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tfmov\td18,x12\n\tumlal\tv22.2d,v11.2s,v1.s[0]\n\tldp\tx8,x12,[x1],#16\t// inp[0:1]\n\tumlal\tv19.2d,v11.2s,v6.s[0]\n\tldp\tx9,x13,[x1],#48\n\tumlal\tv23.2d,v11.2s,v3.s[0]\n\tumlal\tv20.2d,v11.2s,v8.s[0]\n\tumlal\tv21.2d,v11.2s,v0.s[0]\n#ifdef\t__AARCH64EB__\n\trev\tx8,x8\n\trev\tx12,x12\n\trev\tx9,x9\n\trev\tx13,x13\n#endif\n\n\tadd\tv10.2s,v10.2s,v25.2s\n\tumlal\tv22.2d,v9.2s,v5.s[0]\n\tumlal\tv23.2d,v9.2s,v7.s[0]\n\tand\tx4,x8,#0x03ffffff\t// base 2^64 -> base 2^26\n\tumlal\tv21.2d,v9.2s,v3.s[0]\n\tand\tx5,x9,#0x03ffffff\n\tumlal\tv19.2d,v9.2s,v0.s[0]\n\tubfx\tx6,x8,#26,#26\n\tumlal\tv20.2d,v9.2s,v1.s[0]\n\tubfx\tx7,x9,#26,#26\n\n\tadd\tv12.2s,v12.2s,v27.2s\n\tadd\tx4,x4,x5,lsl#32\t\t// bfi\tx4,x5,#32,#32\n\tumlal\tv22.2d,v10.2s,v3.s[0]\n\textr\tx8,x12,x8,#52\n\tumlal\tv23.2d,v10.2s,v5.s[0]\n\textr\tx9,x13,x9,#52\n\tumlal\tv19.2d,v10.2s,v8.s[0]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv21.2d,v10.2s,v1.s[0]\n\tfmov\td9,x4\n\tumlal\tv20.2d,v10.2s,v0.s[0]\n\tand\tx8,x8,#0x03ffffff\n\n\tadd\tv13.2s,v13.2s,v28.2s\n\tand\tx9,x9,#0x03ffffff\n\tumlal\tv22.2d,v12.2s,v0.s[0]\n\tubfx\tx10,x12,#14,#26\n\tumlal\tv19.2d,v12.2s,v4.s[0]\n\tubfx\tx11,x13,#14,#26\n\tumlal\tv23.2d,v12.2s,v1.s[0]\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tumlal\tv20.2d,v12.2s,v6.s[0]\n\tfmov\td10,x6\n\tumlal\tv21.2d,v12.2s,v8.s[0]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:16", "text": "umlal\tv23.2d,v10.2s,v5.s[0]\n\textr\tx9,x13,x9,#52\n\tumlal\tv19.2d,v10.2s,v8.s[0]\n\tadd\tx6,x6,x7,lsl#32\t\t// bfi\tx6,x7,#32,#32\n\tumlal\tv21.2d,v10.2s,v1.s[0]\n\tfmov\td9,x4\n\tumlal\tv20.2d,v10.2s,v0.s[0]\n\tand\tx8,x8,#0x03ffffff\n\n\tadd\tv13.2s,v13.2s,v28.2s\n\tand\tx9,x9,#0x03ffffff\n\tumlal\tv22.2d,v12.2s,v0.s[0]\n\tubfx\tx10,x12,#14,#26\n\tumlal\tv19.2d,v12.2s,v4.s[0]\n\tubfx\tx11,x13,#14,#26\n\tumlal\tv23.2d,v12.2s,v1.s[0]\n\tadd\tx8,x8,x9,lsl#32\t\t// bfi\tx8,x9,#32,#32\n\tumlal\tv20.2d,v12.2s,v6.s[0]\n\tfmov\td10,x6\n\tumlal\tv21.2d,v12.2s,v8.s[0]\n\tadd\tx12,x3,x12,lsr#40\n\n\tumlal\tv22.2d,v13.2s,v8.s[0]\n\tadd\tx13,x3,x13,lsr#40\n\tumlal\tv19.2d,v13.2s,v2.s[0]\n\tadd\tx10,x10,x11,lsl#32\t// bfi\tx10,x11,#32,#32\n\tumlal\tv23.2d,v13.2s,v0.s[0]\n\tadd\tx12,x12,x13,lsl#32\t// bfi\tx12,x13,#32,#32\n\tumlal\tv20.2d,v13.2s,v4.s[0]\n\tfmov\td11,x8\n\tumlal\tv21.2d,v13.2s,v6.s[0]\n\tfmov\td12,x10\n\tfmov\td13,x12\n\n\t/////////////////////////////////////////////////////////////////\n\t// lazy reduction as discussed in \"NEON crypto\" by D.J. Bernstein\n\t// and P. Schwabe\n\t//\n\t// [see discussion in poly1305-armv4 module]\n\n\tushr\tv29.2d,v22.2d,#26\n\txtn\tv27.2s,v22.2d\n\tushr\tv30.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tadd\tv23.2d,v23.2d,v29.2d\t// h3 -> h4\n\tbic\tv27.2s,#0xfc,lsl#24\t// &=0x03ffffff\n\tadd\tv20.2d,v20.2d,v30.2d\t// h0 -> h1\n\n\tushr\tv29.2d,v23.2d,#26\n\txtn\tv28.2s,v23.2d\n\tushr\tv30.2d,v20.2d,#26\n\txtn\tv25.2s,v20.2d\n\tbic\tv28.2s,#0xfc,lsl#24\n\tadd\tv21.2d,v21.2d,v30.2d\t// h1 -> h2\n\n\tadd\tv19.2d,v19.2d,v29.2d\n\tshl\tv29.2d,v29.2d,#2\n\tshrn\tv30.2s,v21.2d,#26\n\txtn\tv26.2s,v21.2d\n\tadd\tv19.2d,v19.2d,v29.2d\t// h4 -> h0", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:17", "text": "ushr\tv29.2d,v22.2d,#26\n\txtn\tv27.2s,v22.2d\n\tushr\tv30.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tadd\tv23.2d,v23.2d,v29.2d\t// h3 -> h4\n\tbic\tv27.2s,#0xfc,lsl#24\t// &=0x03ffffff\n\tadd\tv20.2d,v20.2d,v30.2d\t// h0 -> h1\n\n\tushr\tv29.2d,v23.2d,#26\n\txtn\tv28.2s,v23.2d\n\tushr\tv30.2d,v20.2d,#26\n\txtn\tv25.2s,v20.2d\n\tbic\tv28.2s,#0xfc,lsl#24\n\tadd\tv21.2d,v21.2d,v30.2d\t// h1 -> h2\n\n\tadd\tv19.2d,v19.2d,v29.2d\n\tshl\tv29.2d,v29.2d,#2\n\tshrn\tv30.2s,v21.2d,#26\n\txtn\tv26.2s,v21.2d\n\tadd\tv19.2d,v19.2d,v29.2d\t// h4 -> h0\n\tbic\tv25.2s,#0xfc,lsl#24\n\tadd\tv27.2s,v27.2s,v30.2s\t\t// h2 -> h3\n\tbic\tv26.2s,#0xfc,lsl#24\n\n\tshrn\tv29.2s,v19.2d,#26\n\txtn\tv24.2s,v19.2d\n\tushr\tv30.2s,v27.2s,#26\n\tbic\tv27.2s,#0xfc,lsl#24\n\tbic\tv24.2s,#0xfc,lsl#24\n\tadd\tv25.2s,v25.2s,v29.2s\t\t// h0 -> h1\n\tadd\tv28.2s,v28.2s,v30.2s\t\t// h3 -> h4\n\n\tb.hi\t.Loop_neon\n\n.Lskip_loop:\n\tdup\tv16.2d,v16.d[0]\n\tadd\tv11.2s,v11.2s,v26.2s\n\n\t////////////////////////////////////////////////////////////////\n\t// multiply (inp[0:1]+hash) or inp[2:3] by r^2:r^1\n\n\tadds\tx2,x2,#32\n\tb.ne\t.Long_tail\n\n\tdup\tv16.2d,v11.d[0]\n\tadd\tv14.2s,v9.2s,v24.2s\n\tadd\tv17.2s,v12.2s,v27.2s\n\tadd\tv15.2s,v10.2s,v25.2s\n\tadd\tv18.2s,v13.2s,v28.2s\n\n.Long_tail:\n\tdup\tv14.2d,v14.d[0]\n\tumull2\tv19.2d,v16.4s,v6.4s\n\tumull2\tv22.2d,v16.4s,v1.4s\n\tumull2\tv23.2d,v16.4s,v3.4s\n\tumull2\tv21.2d,v16.4s,v0.4s\n\tumull2\tv20.2d,v16.4s,v8.4s\n\n\tdup\tv15.2d,v15.d[0]\n\tumlal2\tv19.2d,v14.4s,v0.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:18", "text": "adds\tx2,x2,#32\n\tb.ne\t.Long_tail\n\n\tdup\tv16.2d,v11.d[0]\n\tadd\tv14.2s,v9.2s,v24.2s\n\tadd\tv17.2s,v12.2s,v27.2s\n\tadd\tv15.2s,v10.2s,v25.2s\n\tadd\tv18.2s,v13.2s,v28.2s\n\n.Long_tail:\n\tdup\tv14.2d,v14.d[0]\n\tumull2\tv19.2d,v16.4s,v6.4s\n\tumull2\tv22.2d,v16.4s,v1.4s\n\tumull2\tv23.2d,v16.4s,v3.4s\n\tumull2\tv21.2d,v16.4s,v0.4s\n\tumull2\tv20.2d,v16.4s,v8.4s\n\n\tdup\tv15.2d,v15.d[0]\n\tumlal2\tv19.2d,v14.4s,v0.4s\n\tumlal2\tv21.2d,v14.4s,v3.4s\n\tumlal2\tv22.2d,v14.4s,v5.4s\n\tumlal2\tv23.2d,v14.4s,v7.4s\n\tumlal2\tv20.2d,v14.4s,v1.4s\n\n\tdup\tv17.2d,v17.d[0]\n\tumlal2\tv19.2d,v15.4s,v8.4s\n\tumlal2\tv22.2d,v15.4s,v3.4s\n\tumlal2\tv21.2d,v15.4s,v1.4s\n\tumlal2\tv23.2d,v15.4s,v5.4s\n\tumlal2\tv20.2d,v15.4s,v0.4s\n\n\tdup\tv18.2d,v18.d[0]\n\tumlal2\tv22.2d,v17.4s,v0.4s\n\tumlal2\tv23.2d,v17.4s,v1.4s\n\tumlal2\tv19.2d,v17.4s,v4.4s\n\tumlal2\tv20.2d,v17.4s,v6.4s\n\tumlal2\tv21.2d,v17.4s,v8.4s\n\n\tumlal2\tv22.2d,v18.4s,v8.4s\n\tumlal2\tv19.2d,v18.4s,v2.4s\n\tumlal2\tv23.2d,v18.4s,v0.4s\n\tumlal2\tv20.2d,v18.4s,v4.4s\n\tumlal2\tv21.2d,v18.4s,v6.4s\n\n\tb.eq\t.Lshort_tail\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4:r^3 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tumlal\tv22.2d,v11.2s,v1.2s\n\tumlal\tv19.2d,v11.2s,v6.2s\n\tumlal\tv23.2d,v11.2s,v3.2s\n\tumlal\tv20.2d,v11.2s,v8.2s\n\tumlal\tv21.2d,v11.2s,v0.2s\n\n\tadd\tv10.2s,v10.2s,v25.2s\n\tumlal\tv22.2d,v9.2s,v5.2s\n\tumlal\tv19.2d,v9.2s,v0.2s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:19", "text": "umlal2\tv19.2d,v18.4s,v2.4s\n\tumlal2\tv23.2d,v18.4s,v0.4s\n\tumlal2\tv20.2d,v18.4s,v4.4s\n\tumlal2\tv21.2d,v18.4s,v6.4s\n\n\tb.eq\t.Lshort_tail\n\n\t////////////////////////////////////////////////////////////////\n\t// (hash+inp[0:1])*r^4:r^3 and accumulate\n\n\tadd\tv9.2s,v9.2s,v24.2s\n\tumlal\tv22.2d,v11.2s,v1.2s\n\tumlal\tv19.2d,v11.2s,v6.2s\n\tumlal\tv23.2d,v11.2s,v3.2s\n\tumlal\tv20.2d,v11.2s,v8.2s\n\tumlal\tv21.2d,v11.2s,v0.2s\n\n\tadd\tv10.2s,v10.2s,v25.2s\n\tumlal\tv22.2d,v9.2s,v5.2s\n\tumlal\tv19.2d,v9.2s,v0.2s\n\tumlal\tv23.2d,v9.2s,v7.2s\n\tumlal\tv20.2d,v9.2s,v1.2s\n\tumlal\tv21.2d,v9.2s,v3.2s\n\n\tadd\tv12.2s,v12.2s,v27.2s\n\tumlal\tv22.2d,v10.2s,v3.2s\n\tumlal\tv19.2d,v10.2s,v8.2s\n\tumlal\tv23.2d,v10.2s,v5.2s\n\tumlal\tv20.2d,v10.2s,v0.2s\n\tumlal\tv21.2d,v10.2s,v1.2s\n\n\tadd\tv13.2s,v13.2s,v28.2s\n\tumlal\tv22.2d,v12.2s,v0.2s\n\tumlal\tv19.2d,v12.2s,v4.2s\n\tumlal\tv23.2d,v12.2s,v1.2s\n\tumlal\tv20.2d,v12.2s,v6.2s\n\tumlal\tv21.2d,v12.2s,v8.2s\n\n\tumlal\tv22.2d,v13.2s,v8.2s\n\tumlal\tv19.2d,v13.2s,v2.2s\n\tumlal\tv23.2d,v13.2s,v0.2s\n\tumlal\tv20.2d,v13.2s,v4.2s\n\tumlal\tv21.2d,v13.2s,v6.2s\n\n.Lshort_tail:\n\t////////////////////////////////////////////////////////////////\n\t// horizontal add\n\n\taddp\tv22.2d,v22.2d,v22.2d\n\tldp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\taddp\tv19.2d,v19.2d,v19.2d\n\tldp\td10,d11,[sp,#32]\n\taddp\tv23.2d,v23.2d,v23.2d\n\tldp\td12,d13,[sp,#48]\n\taddp\tv20.2d,v20.2d,v20.2d\n\tldp\td14,d15,[sp,#64]\n\taddp\tv21.2d,v21.2d,v21.2d\n\n\t////////////////////////////////////////////////////////////////\n\t// lazy reduction, but without narrowing", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:20", "text": "umlal\tv23.2d,v13.2s,v0.2s\n\tumlal\tv20.2d,v13.2s,v4.2s\n\tumlal\tv21.2d,v13.2s,v6.2s\n\n.Lshort_tail:\n\t////////////////////////////////////////////////////////////////\n\t// horizontal add\n\n\taddp\tv22.2d,v22.2d,v22.2d\n\tldp\td8,d9,[sp,#16]\t\t// meet ABI requirements\n\taddp\tv19.2d,v19.2d,v19.2d\n\tldp\td10,d11,[sp,#32]\n\taddp\tv23.2d,v23.2d,v23.2d\n\tldp\td12,d13,[sp,#48]\n\taddp\tv20.2d,v20.2d,v20.2d\n\tldp\td14,d15,[sp,#64]\n\taddp\tv21.2d,v21.2d,v21.2d\n\n\t////////////////////////////////////////////////////////////////\n\t// lazy reduction, but without narrowing\n\n\tushr\tv29.2d,v22.2d,#26\n\tand\tv22.16b,v22.16b,v31.16b\n\tushr\tv30.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\n\tadd\tv23.2d,v23.2d,v29.2d\t// h3 -> h4\n\tadd\tv20.2d,v20.2d,v30.2d\t// h0 -> h1\n\n\tushr\tv29.2d,v23.2d,#26\n\tand\tv23.16b,v23.16b,v31.16b\n\tushr\tv30.2d,v20.2d,#26\n\tand\tv20.16b,v20.16b,v31.16b\n\tadd\tv21.2d,v21.2d,v30.2d\t// h1 -> h2\n\n\tadd\tv19.2d,v19.2d,v29.2d\n\tshl\tv29.2d,v29.2d,#2\n\tushr\tv30.2d,v21.2d,#26\n\tand\tv21.16b,v21.16b,v31.16b\n\tadd\tv19.2d,v19.2d,v29.2d\t// h4 -> h0\n\tadd\tv22.2d,v22.2d,v30.2d\t// h2 -> h3\n\n\tushr\tv29.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tushr\tv30.2d,v22.2d,#26\n\tand\tv22.16b,v22.16b,v31.16b\n\tadd\tv20.2d,v20.2d,v29.2d\t// h0 -> h1\n\tadd\tv23.2d,v23.2d,v30.2d\t// h3 -> h4\n\n\t////////////////////////////////////////////////////////////////\n\t// write the result, can be partially reduced\n\n\tst4\t{v19.s,v20.s,v21.s,v22.s}[0],[x0],#16\n\tst1\t{v23.s}[0],[x0]\n\n.Lno_data_neon:\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tpoly1305_blocks_neon,.-poly1305_blocks_neon", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:21", "text": "add\tv22.2d,v22.2d,v30.2d\t// h2 -> h3\n\n\tushr\tv29.2d,v19.2d,#26\n\tand\tv19.16b,v19.16b,v31.16b\n\tushr\tv30.2d,v22.2d,#26\n\tand\tv22.16b,v22.16b,v31.16b\n\tadd\tv20.2d,v20.2d,v29.2d\t// h0 -> h1\n\tadd\tv23.2d,v23.2d,v30.2d\t// h3 -> h4\n\n\t////////////////////////////////////////////////////////////////\n\t// write the result, can be partially reduced\n\n\tst4\t{v19.s,v20.s,v21.s,v22.s}[0],[x0],#16\n\tst1\t{v23.s}[0],[x0]\n\n.Lno_data_neon:\n\tldr\tx29,[sp],#80\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tpoly1305_blocks_neon,.-poly1305_blocks_neon\n\n.type\tpoly1305_emit_neon,%function\n.align\t5\npoly1305_emit_neon:\n.Lpoly1305_emit_neon:\n\t// The symbol .Lpoly1305_emit_neon is not a .globl symbol\n\t// but a pointer to it is returned by poly1305_init\n\tAARCH64_VALID_CALL_TARGET\n\tldr\tx17,[x0,#24]\n\tcbz\tx17,poly1305_emit\n\n\tldp\tw10,w11,[x0]\t\t// load hash value base 2^26\n\tldp\tw12,w13,[x0,#8]\n\tldr\tw14,[x0,#16]\n\n\tadd\tx4,x10,x11,lsl#26\t// base 2^26 -> base 2^64\n\tlsr\tx5,x12,#12\n\tadds\tx4,x4,x12,lsl#52\n\tadd\tx5,x5,x13,lsl#14\n\tadc\tx5,x5,xzr\n\tlsr\tx6,x14,#24\n\tadds\tx5,x5,x14,lsl#40\n\tadc\tx6,x6,xzr\t\t// can be partially reduced...\n\n\tldp\tx10,x11,[x2]\t// load nonce\n\n\tand\tx12,x6,#-4\t\t// ... so reduce\n\tadd\tx12,x12,x6,lsr#2\n\tand\tx6,x6,#3\n\tadds\tx4,x4,x12\n\tadcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n\tadds\tx12,x4,#5\t\t// compare to modulus\n\tadcs\tx13,x5,xzr\n\tadc\tx14,x6,xzr\n\n\ttst\tx14,#-4\t\t\t// see if it's carried/borrowed\n\n\tcsel\tx4,x4,x12,eq", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S:22", "text": "lsr\tx6,x14,#24\n\tadds\tx5,x5,x14,lsl#40\n\tadc\tx6,x6,xzr\t\t// can be partially reduced...\n\n\tldp\tx10,x11,[x2]\t// load nonce\n\n\tand\tx12,x6,#-4\t\t// ... so reduce\n\tadd\tx12,x12,x6,lsr#2\n\tand\tx6,x6,#3\n\tadds\tx4,x4,x12\n\tadcs\tx5,x5,xzr\n\tadc\tx6,x6,xzr\n\n\tadds\tx12,x4,#5\t\t// compare to modulus\n\tadcs\tx13,x5,xzr\n\tadc\tx14,x6,xzr\n\n\ttst\tx14,#-4\t\t\t// see if it's carried/borrowed\n\n\tcsel\tx4,x4,x12,eq\n\tcsel\tx5,x5,x13,eq\n\n#ifdef\t__AARCH64EB__\n\tror\tx10,x10,#32\t\t// flip nonce words\n\tror\tx11,x11,#32\n#endif\n\tadds\tx4,x4,x10\t\t// accumulate nonce\n\tadc\tx5,x5,x11\n#ifdef\t__AARCH64EB__\n\trev\tx4,x4\t\t\t// flip output bytes\n\trev\tx5,x5\n#endif\n\tstp\tx4,x5,[x1]\t\t// write result\n\n\tret\n.size\tpoly1305_emit_neon,.-poly1305_emit_neon\n\n.section\t.rodata\n\n.align\t5\n.Lzeros:\n.long\t0,0,0,0,0,0,0,0\n.byte\t80,111,108,121,49,51,48,53,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S", "line_start": 841, "line_end": 885}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha.inc:1", "text": ".if ${MACHINE_ARCH:M*armv4*} == \"\"\n.PATH.S: ${.PARSEDIR}\nSHA_SRCS = sha1-armv4-large.S sha256-armv4.S sha512-armv4.S keccak1600-armv4.S\nSHACPPFLAGS = -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM\nKECCAKNI = yes\n\n.endif\n.include \"../../sha.inc\"", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha.inc", "line_start": 1, "line_end": 8}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n#if defined(__thumb2__)\n.syntax\tunified\n.thumb\n#else\n.code\t32\n#endif\n\n.text\n\n.globl\tsha1_block_data_order\n.type\tsha1_block_data_order,%function\n\n.align\t5\nsha1_block_data_order:\n#if __ARM_MAX_ARCH__>=7\n.Lsha1_block:\n\tldr\tr12,.LOPENSSL_armcap\n# if !defined(_WIN32)\n\tadr\tr3,.Lsha1_block\n\tldr\tr12,[r3,r12]\t\t@ OPENSSL_armcap_P\n# endif\n# if defined(__APPLE__) || defined(_WIN32)\n\tldr\tr12,[r12]\n# endif\n\ttst\tr12,#ARMV8_SHA1\n\tbne\t.LARMv8\n\ttst\tr12,#ARMV7_NEON\n\tbne\t.LNEON\n#endif\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\tadd\tr2,r1,r2,lsl#6\t@ r2 to point at the end of r1\n\tldmia\tr0,{r3,r4,r5,r6,r7}\n.Lloop:\n\tldr\tr8,.LK_00_19\n\tmov\tr14,sp\n\tsub\tsp,sp,#15*4\n\tmov\tr5,r5,ror#30\n\tmov\tr6,r6,ror#30\n\tmov\tr7,r7,ror#30\t\t@ [6]\n.L_00_15:\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:2", "text": "mov\tr6,r6,ror#30\n\tmov\tr7,r7,ror#30\t\t@ [6]\n.L_00_15:\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r4,r10,ror#2\n\tadd\tr7,r7,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r6,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr7,r7,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r3,r10,ror#2\n\tadd\tr6,r6,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r5,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr6,r6,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:3", "text": "ldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r3,r10,ror#2\n\tadd\tr6,r6,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r5,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr6,r6,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r3,r4\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr5,r5,r6,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r3,r4\t\t\t@ F_xx_xx\n\tadd\tr5,r5,r6,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r7,r10,ror#2\n\tadd\tr5,r5,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r4,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr5,r5,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r6,r10,ror#2\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:4", "text": "ldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r6,r10,ror#2\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r3,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr4,r4,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr3,r8,r3,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r6,r7\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr3,r3,r4,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr3,r8,r3,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r6,r7\t\t\t@ F_xx_xx\n\tadd\tr3,r3,r4,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r5,r10,ror#2\n\tadd\tr3,r3,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r7,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr3,r3,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if defined(__thumb2__)\n\tmov\tr12,sp\n\tteq\tr14,r12\n#else\n\tteq\tr14,sp\n#endif\n\tbne\t.L_00_15\t\t@ [((11+4)*5+2)*3]\n\tsub\tsp,sp,#25*4\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:5", "text": "rev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r5,r10,ror#2\n\tadd\tr3,r3,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r7,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr3,r3,r10\t\t\t@ E+=F_00_19(B,C,D)\n#if defined(__thumb2__)\n\tmov\tr12,sp\n\tteq\tr14,r12\n#else\n\tteq\tr14,sp\n#endif\n\tbne\t.L_00_15\t\t@ [((11+4)*5+2)*3]\n\tsub\tsp,sp,#25*4\n#if __ARM_ARCH__<7\n\tldrb\tr10,[r1,#2]\n\tldrb\tr9,[r1,#3]\n\tldrb\tr11,[r1,#1]\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_00_19\n\tldrb\tr12,[r1],#4\n\torr\tr9,r9,r10,lsl#8\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\torr\tr9,r9,r11,lsl#16\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\torr\tr9,r9,r12,lsl#24\n#else\n\tldr\tr9,[r1],#4\t\t\t@ handles unaligned\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_00_19\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n#ifdef __ARMEL__\n\trev\tr9,r9\t\t\t\t@ byte swap\n#endif\n#endif\n\tand\tr10,r4,r10,ror#2\n\tadd\tr7,r7,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r6,ror#2\t\t@ F_00_19(B,C,D)\n\tstr\tr9,[r14,#-4]!\n\tadd\tr7,r7,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r3,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr6,r6,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r5,ror#2\t\t@ F_00_19(B,C,D)\n\tadd\tr6,r6,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:6", "text": "add\tr7,r7,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r3,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr6,r6,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r5,ror#2\t\t@ F_00_19(B,C,D)\n\tadd\tr6,r6,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r3,r4\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr5,r5,r6,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r7,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr5,r5,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r4,ror#2\t\t@ F_00_19(B,C,D)\n\tadd\tr5,r5,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r6,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r3,ror#2\t\t@ F_00_19(B,C,D)\n\tadd\tr4,r4,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr3,r8,r3,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r6,r7\t\t\t@ F_xx_xx", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:7", "text": "eor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r6,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r3,ror#2\t\t@ F_00_19(B,C,D)\n\tadd\tr4,r4,r10\t\t\t@ E+=F_00_19(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr3,r8,r3,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r6,r7\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr3,r3,r4,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r5,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr3,r3,r9\t\t\t@ E+=X[i]\n\teor\tr10,r10,r7,ror#2\t\t@ F_00_19(B,C,D)\n\tadd\tr3,r3,r10\t\t\t@ E+=F_00_19(B,C,D)\n\n\tldr\tr8,.LK_20_39\t\t@ [+15+16*4]\n\tcmn\tsp,#0\t\t\t@ [+3], clear carry to denote 20_39\n.L_20_39_or_60_79:\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r4,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r9\t\t\t@ E+=X[i]\n\tadd\tr7,r7,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:8", "text": "eor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r4,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r9\t\t\t@ E+=X[i]\n\tadd\tr7,r7,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r3,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr6,r6,r9\t\t\t@ E+=X[i]\n\tadd\tr6,r6,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r3,r4\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr5,r5,r6,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r7,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr5,r5,r9\t\t\t@ E+=X[i]\n\tadd\tr5,r5,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r6,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]\n\tadd\tr4,r4,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:9", "text": "add\tr5,r5,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r6,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]\n\tadd\tr4,r4,r10\t\t\t@ E+=F_20_39(B,C,D)\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr3,r8,r3,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r6,r7\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr3,r3,r4,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\teor\tr10,r5,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\t\t\t\t\t\t@ F_xx_xx\n\tadd\tr3,r3,r9\t\t\t@ E+=X[i]\n\tadd\tr3,r3,r10\t\t\t@ E+=F_20_39(B,C,D)\n#if defined(__thumb2__)\n\tmov\tr12,sp\n\tteq\tr14,r12\n#else\n\tteq\tr14,sp\t\t\t@ preserve carry\n#endif\n\tbne\t.L_20_39_or_60_79\t@ [+((12+3)*5+2)*4]\n\tbcs\t.L_done\t\t\t@ [+((12+3)*5+2)*4], spare 300 bytes\n\n\tldr\tr8,.LK_40_59\n\tsub\tsp,sp,#20*4\t\t@ [+2]\n.L_40_59:\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r4,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r5,r6\t\t\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r9\t\t\t@ E+=X[i]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:10", "text": "bcs\t.L_done\t\t\t@ [+((12+3)*5+2)*4], spare 300 bytes\n\n\tldr\tr8,.LK_40_59\n\tsub\tsp,sp,#20*4\t\t@ [+2]\n.L_40_59:\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr7,r8,r7,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r5,r6\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr7,r7,r3,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r4,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r5,r6\t\t\t\t\t@ F_xx_xx\n\tadd\tr7,r7,r9\t\t\t@ E+=X[i]\n\tadd\tr7,r7,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr7,r7,r11,ror#2\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr6,r8,r6,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r4,r5\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr6,r6,r7,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r3,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r4,r5\t\t\t\t\t@ F_xx_xx\n\tadd\tr6,r6,r9\t\t\t@ E+=X[i]\n\tadd\tr6,r6,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr6,r6,r11,ror#2\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r3,r4\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr5,r5,r6,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r7,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r3,r4\t\t\t\t\t@ F_xx_xx\n\tadd\tr5,r5,r9\t\t\t@ E+=X[i]\n\tadd\tr5,r5,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr5,r5,r11,ror#2\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_xx_xx", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:11", "text": "ldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr5,r8,r5,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r3,r4\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr5,r5,r6,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r7,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r3,r4\t\t\t\t\t@ F_xx_xx\n\tadd\tr5,r5,r9\t\t\t@ E+=X[i]\n\tadd\tr5,r5,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr5,r5,r11,ror#2\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr4,r8,r4,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r7,r3\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr4,r4,r5,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r6,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r7,r3\t\t\t\t\t@ F_xx_xx\n\tadd\tr4,r4,r9\t\t\t@ E+=X[i]\n\tadd\tr4,r4,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr4,r4,r11,ror#2\n\tldr\tr9,[r14,#15*4]\n\tldr\tr10,[r14,#13*4]\n\tldr\tr11,[r14,#7*4]\n\tadd\tr3,r8,r3,ror#2\t\t\t@ E+=K_xx_xx\n\tldr\tr12,[r14,#2*4]\n\teor\tr9,r9,r10\n\teor\tr11,r11,r12\t\t\t@ 1 cycle stall\n\teor\tr10,r6,r7\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr3,r3,r4,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r5,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r6,r7\t\t\t\t\t@ F_xx_xx\n\tadd\tr3,r3,r9\t\t\t@ E+=X[i]\n\tadd\tr3,r3,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr3,r3,r11,ror#2\n#if defined(__thumb2__)\n\tmov\tr12,sp\n\tteq\tr14,r12\n#else\n\tteq\tr14,sp\n#endif\n\tbne\t.L_40_59\t\t@ [+((12+5)*5+2)*4]\n\n\tldr\tr8,.LK_60_79\n\tsub\tsp,sp,#20*4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:12", "text": "eor\tr10,r6,r7\t\t\t@ F_xx_xx\n\tmov\tr9,r9,ror#31\n\tadd\tr3,r3,r4,ror#27\t\t\t@ E+=ROR(A,27)\n\teor\tr9,r9,r11,ror#31\n\tstr\tr9,[r14,#-4]!\n\tand\tr10,r5,r10,ror#2\t\t\t\t\t@ F_xx_xx\n\tand\tr11,r6,r7\t\t\t\t\t@ F_xx_xx\n\tadd\tr3,r3,r9\t\t\t@ E+=X[i]\n\tadd\tr3,r3,r10\t\t\t@ E+=F_40_59(B,C,D)\n\tadd\tr3,r3,r11,ror#2\n#if defined(__thumb2__)\n\tmov\tr12,sp\n\tteq\tr14,r12\n#else\n\tteq\tr14,sp\n#endif\n\tbne\t.L_40_59\t\t@ [+((12+5)*5+2)*4]\n\n\tldr\tr8,.LK_60_79\n\tsub\tsp,sp,#20*4\n\tcmp\tsp,#0\t\t\t@ set carry to denote 60_79\n\tb\t.L_20_39_or_60_79\t@ [+4], spare 300 bytes\n.L_done:\n\tadd\tsp,sp,#80*4\t\t@ \"deallocate\" stack frame\n\tldmia\tr0,{r8,r9,r10,r11,r12}\n\tadd\tr3,r8,r3\n\tadd\tr4,r9,r4\n\tadd\tr5,r10,r5,ror#2\n\tadd\tr6,r11,r6,ror#2\n\tadd\tr7,r12,r7,ror#2\n\tstmia\tr0,{r3,r4,r5,r6,r7}\n\tteq\tr1,r2\n\tbne\t.Lloop\t\t\t@ [+18], total 1307\n\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tsha1_block_data_order,.-sha1_block_data_order\n\n.align\t5\n.LK_00_19:.word\t0x5a827999\n.LK_20_39:.word\t0x6ed9eba1\n.LK_40_59:.word\t0x8f1bbcdc\n.LK_60_79:.word\t0xca62c1d6\n#if __ARM_MAX_ARCH__>=7\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.Lsha1_block\n# endif\n#endif\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,47,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t5", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:13", "text": ".word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tsha1_block_data_order,.-sha1_block_data_order\n\n.align\t5\n.LK_00_19:.word\t0x5a827999\n.LK_20_39:.word\t0x6ed9eba1\n.LK_40_59:.word\t0x8f1bbcdc\n.LK_60_79:.word\t0xca62c1d6\n#if __ARM_MAX_ARCH__>=7\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.Lsha1_block\n# endif\n#endif\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,47,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t5\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.type\tsha1_block_data_order_neon,%function\n.align\t4\nsha1_block_data_order_neon:\n.LNEON:\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\tadd\tr2,r1,r2,lsl#6\t@ r2 to point at the end of r1\n\t@ dmb\t\t\t\t@ errata #451034 on early Cortex A8\n\t@ vstmdb\tsp!,{d8-d15}\t@ ABI specification says so\n\tmov\tr14,sp\n\tsub\tr12,sp,#64\n\tadr\tr8,.LK_00_19\n\tbic\tr12,r12,#15\t\t@ align for 128-bit stores\n\n\tldmia\tr0,{r3,r4,r5,r6,r7}\t@ load context\n\tmov\tsp,r12\t\t@ alloca\n\n\tvld1.8\t{q0,q1},[r1]!\t@ handles unaligned\n\tveor\tq15,q15,q15\n\tvld1.8\t{q2,q3},[r1]!\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\t@ load K_00_19\n\tvrev32.8\tq0,q0\t\t@ yes, even on\n\tvrev32.8\tq1,q1\t\t@ big-endian...\n\tvrev32.8\tq2,q2\n\tvadd.i32\tq8,q0,q14\n\tvrev32.8\tq3,q3\n\tvadd.i32\tq9,q1,q14\n\tvst1.32\t{q8},[r12,:128]!\n\tvadd.i32\tq10,q2,q14\n\tvst1.32\t{q9},[r12,:128]!\n\tvst1.32\t{q10},[r12,:128]!\n\tldr\tr9,[sp]\t\t\t@ big RAW stall\n\n.Loop_neon:\n\tvext.8\tq8,q0,q1,#8\n\tbic\tr10,r6,r4\n\tadd\tr7,r7,r9", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:14", "text": "vld1.8\t{q0,q1},[r1]!\t@ handles unaligned\n\tveor\tq15,q15,q15\n\tvld1.8\t{q2,q3},[r1]!\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\t@ load K_00_19\n\tvrev32.8\tq0,q0\t\t@ yes, even on\n\tvrev32.8\tq1,q1\t\t@ big-endian...\n\tvrev32.8\tq2,q2\n\tvadd.i32\tq8,q0,q14\n\tvrev32.8\tq3,q3\n\tvadd.i32\tq9,q1,q14\n\tvst1.32\t{q8},[r12,:128]!\n\tvadd.i32\tq10,q2,q14\n\tvst1.32\t{q9},[r12,:128]!\n\tvst1.32\t{q10},[r12,:128]!\n\tldr\tr9,[sp]\t\t\t@ big RAW stall\n\n.Loop_neon:\n\tvext.8\tq8,q0,q1,#8\n\tbic\tr10,r6,r4\n\tadd\tr7,r7,r9\n\tand\tr11,r5,r4\n\tvadd.i32\tq13,q3,q14\n\tldr\tr9,[sp,#4]\n\tadd\tr7,r7,r3,ror#27\n\tvext.8\tq12,q3,q15,#4\n\teor\tr11,r11,r10\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tveor\tq8,q8,q0\n\tbic\tr10,r5,r3\n\tadd\tr6,r6,r9\n\tveor\tq12,q12,q2\n\tand\tr11,r4,r3\n\tldr\tr9,[sp,#8]\n\tveor\tq12,q12,q8\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r4,r7\n\tadd\tr5,r5,r9\n\tvadd.i32\tq8,q12,q12\n\tand\tr11,r3,r7\n\tldr\tr9,[sp,#12]\n\tvsri.32\tq8,q12,#31\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r11,r10\n\tmov\tr7,r7,ror#2\n\tvshr.u32\tq12,q13,#30\n\tadd\tr5,r5,r11\n\tbic\tr10,r3,r6\n\tvshl.u32\tq13,q13,#2\n\tadd\tr4,r4,r9\n\tand\tr11,r7,r6\n\tveor\tq8,q8,q12\n\tldr\tr9,[sp,#16]\n\tadd\tr4,r4,r5,ror#27", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:15", "text": "add\tr6,r6,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r4,r7\n\tadd\tr5,r5,r9\n\tvadd.i32\tq8,q12,q12\n\tand\tr11,r3,r7\n\tldr\tr9,[sp,#12]\n\tvsri.32\tq8,q12,#31\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r11,r10\n\tmov\tr7,r7,ror#2\n\tvshr.u32\tq12,q13,#30\n\tadd\tr5,r5,r11\n\tbic\tr10,r3,r6\n\tvshl.u32\tq13,q13,#2\n\tadd\tr4,r4,r9\n\tand\tr11,r7,r6\n\tveor\tq8,q8,q12\n\tldr\tr9,[sp,#16]\n\tadd\tr4,r4,r5,ror#27\n\tveor\tq8,q8,q13\n\teor\tr11,r11,r10\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvext.8\tq9,q1,q2,#8\n\tbic\tr10,r7,r5\n\tadd\tr3,r3,r9\n\tand\tr11,r6,r5\n\tvadd.i32\tq13,q8,q14\n\tldr\tr9,[sp,#20]\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\n\tadd\tr3,r3,r4,ror#27\n\tvext.8\tq12,q8,q15,#4\n\teor\tr11,r11,r10\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tveor\tq9,q9,q1\n\tbic\tr10,r6,r4\n\tadd\tr7,r7,r9\n\tveor\tq12,q12,q3\n\tand\tr11,r5,r4\n\tldr\tr9,[sp,#24]\n\tveor\tq12,q12,q9\n\tadd\tr7,r7,r3,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r5,r3\n\tadd\tr6,r6,r9\n\tvadd.i32\tq9,q12,q12\n\tand\tr11,r4,r3\n\tldr\tr9,[sp,#28]\n\tvsri.32\tq9,q12,#31\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r11,r10\n\tmov\tr3,r3,ror#2\n\tvshr.u32\tq12,q13,#30\n\tadd\tr6,r6,r11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:16", "text": "and\tr11,r5,r4\n\tldr\tr9,[sp,#24]\n\tveor\tq12,q12,q9\n\tadd\tr7,r7,r3,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r5,r3\n\tadd\tr6,r6,r9\n\tvadd.i32\tq9,q12,q12\n\tand\tr11,r4,r3\n\tldr\tr9,[sp,#28]\n\tvsri.32\tq9,q12,#31\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r11,r10\n\tmov\tr3,r3,ror#2\n\tvshr.u32\tq12,q13,#30\n\tadd\tr6,r6,r11\n\tbic\tr10,r4,r7\n\tvshl.u32\tq13,q13,#2\n\tadd\tr5,r5,r9\n\tand\tr11,r3,r7\n\tveor\tq9,q9,q12\n\tldr\tr9,[sp,#32]\n\tadd\tr5,r5,r6,ror#27\n\tveor\tq9,q9,q13\n\teor\tr11,r11,r10\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvext.8\tq10,q2,q3,#8\n\tbic\tr10,r3,r6\n\tadd\tr4,r4,r9\n\tand\tr11,r7,r6\n\tvadd.i32\tq13,q9,q14\n\tldr\tr9,[sp,#36]\n\tadd\tr4,r4,r5,ror#27\n\tvext.8\tq12,q9,q15,#4\n\teor\tr11,r11,r10\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tveor\tq10,q10,q2\n\tbic\tr10,r7,r5\n\tadd\tr3,r3,r9\n\tveor\tq12,q12,q8\n\tand\tr11,r6,r5\n\tldr\tr9,[sp,#40]\n\tveor\tq12,q12,q10\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r6,r4\n\tadd\tr7,r7,r9\n\tvadd.i32\tq10,q12,q12\n\tand\tr11,r5,r4\n\tldr\tr9,[sp,#44]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:17", "text": "mov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tveor\tq10,q10,q2\n\tbic\tr10,r7,r5\n\tadd\tr3,r3,r9\n\tveor\tq12,q12,q8\n\tand\tr11,r6,r5\n\tldr\tr9,[sp,#40]\n\tveor\tq12,q12,q10\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r6,r4\n\tadd\tr7,r7,r9\n\tvadd.i32\tq10,q12,q12\n\tand\tr11,r5,r4\n\tldr\tr9,[sp,#44]\n\tvsri.32\tq10,q12,#31\n\tadd\tr7,r7,r3,ror#27\n\teor\tr11,r11,r10\n\tmov\tr4,r4,ror#2\n\tvshr.u32\tq12,q13,#30\n\tadd\tr7,r7,r11\n\tbic\tr10,r5,r3\n\tvshl.u32\tq13,q13,#2\n\tadd\tr6,r6,r9\n\tand\tr11,r4,r3\n\tveor\tq10,q10,q12\n\tldr\tr9,[sp,#48]\n\tadd\tr6,r6,r7,ror#27\n\tveor\tq10,q10,q13\n\teor\tr11,r11,r10\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tvext.8\tq11,q3,q8,#8\n\tbic\tr10,r4,r7\n\tadd\tr5,r5,r9\n\tand\tr11,r3,r7\n\tvadd.i32\tq13,q10,q14\n\tldr\tr9,[sp,#52]\n\tadd\tr5,r5,r6,ror#27\n\tvext.8\tq12,q10,q15,#4\n\teor\tr11,r11,r10\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tveor\tq11,q11,q3\n\tbic\tr10,r3,r6\n\tadd\tr4,r4,r9\n\tveor\tq12,q12,q9\n\tand\tr11,r7,r6\n\tldr\tr9,[sp,#56]\n\tveor\tq12,q12,q11\n\tadd\tr4,r4,r5,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:18", "text": "and\tr11,r3,r7\n\tvadd.i32\tq13,q10,q14\n\tldr\tr9,[sp,#52]\n\tadd\tr5,r5,r6,ror#27\n\tvext.8\tq12,q10,q15,#4\n\teor\tr11,r11,r10\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tveor\tq11,q11,q3\n\tbic\tr10,r3,r6\n\tadd\tr4,r4,r9\n\tveor\tq12,q12,q9\n\tand\tr11,r7,r6\n\tldr\tr9,[sp,#56]\n\tveor\tq12,q12,q11\n\tadd\tr4,r4,r5,ror#27\n\teor\tr11,r11,r10\n\tvst1.32\t{q13},[r12,:128]!\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvext.8\tq13,q15,q12,#4\n\tbic\tr10,r7,r5\n\tadd\tr3,r3,r9\n\tvadd.i32\tq11,q12,q12\n\tand\tr11,r6,r5\n\tldr\tr9,[sp,#60]\n\tvsri.32\tq11,q12,#31\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r11,r10\n\tmov\tr5,r5,ror#2\n\tvshr.u32\tq12,q13,#30\n\tadd\tr3,r3,r11\n\tbic\tr10,r6,r4\n\tvshl.u32\tq13,q13,#2\n\tadd\tr7,r7,r9\n\tand\tr11,r5,r4\n\tveor\tq11,q11,q12\n\tldr\tr9,[sp,#0]\n\tadd\tr7,r7,r3,ror#27\n\tveor\tq11,q11,q13\n\teor\tr11,r11,r10\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq12,q10,q11,#8\n\tbic\tr10,r5,r3\n\tadd\tr6,r6,r9\n\tand\tr11,r4,r3\n\tveor\tq0,q0,q8\n\tldr\tr9,[sp,#4]\n\tadd\tr6,r6,r7,ror#27\n\tveor\tq0,q0,q1\n\teor\tr11,r11,r10\n\tmov\tr3,r3,ror#2\n\tvadd.i32\tq13,q11,q14\n\tadd\tr6,r6,r11\n\tbic\tr10,r4,r7\n\tveor\tq12,q12,q0\n\tadd\tr5,r5,r9\n\tand\tr11,r3,r7\n\tvshr.u32\tq0,q12,#30", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:19", "text": "eor\tr11,r11,r10\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq12,q10,q11,#8\n\tbic\tr10,r5,r3\n\tadd\tr6,r6,r9\n\tand\tr11,r4,r3\n\tveor\tq0,q0,q8\n\tldr\tr9,[sp,#4]\n\tadd\tr6,r6,r7,ror#27\n\tveor\tq0,q0,q1\n\teor\tr11,r11,r10\n\tmov\tr3,r3,ror#2\n\tvadd.i32\tq13,q11,q14\n\tadd\tr6,r6,r11\n\tbic\tr10,r4,r7\n\tveor\tq12,q12,q0\n\tadd\tr5,r5,r9\n\tand\tr11,r3,r7\n\tvshr.u32\tq0,q12,#30\n\tldr\tr9,[sp,#8]\n\tadd\tr5,r5,r6,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\teor\tr11,r11,r10\n\tmov\tr7,r7,ror#2\n\tvsli.32\tq0,q12,#2\n\tadd\tr5,r5,r11\n\tbic\tr10,r3,r6\n\tadd\tr4,r4,r9\n\tand\tr11,r7,r6\n\tldr\tr9,[sp,#12]\n\tadd\tr4,r4,r5,ror#27\n\teor\tr11,r11,r10\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tbic\tr10,r7,r5\n\tadd\tr3,r3,r9\n\tand\tr11,r6,r5\n\tldr\tr9,[sp,#16]\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r11,r10\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq12,q11,q0,#8\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#20]\n\tveor\tq1,q1,q9\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tveor\tq1,q1,q2\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvadd.i32\tq13,q0,q14\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tveor\tq12,q12,q1\n\tldr\tr9,[sp,#24]\n\teor\tr11,r10,r4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:20", "text": "add\tr3,r3,r4,ror#27\n\teor\tr11,r11,r10\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq12,q11,q0,#8\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#20]\n\tveor\tq1,q1,q9\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tveor\tq1,q1,q2\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvadd.i32\tq13,q0,q14\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tveor\tq12,q12,q1\n\tldr\tr9,[sp,#24]\n\teor\tr11,r10,r4\n\tvshr.u32\tq1,q12,#30\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr6,r6,r11\n\teor\tr10,r7,r4\n\tvsli.32\tq1,q12,#2\n\tadd\tr5,r5,r9\n\tldr\tr9,[sp,#28]\n\teor\tr11,r10,r3\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#32]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvext.8\tq12,q0,q1,#8\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#36]\n\tveor\tq2,q2,q10\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tveor\tq2,q2,q3\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvadd.i32\tq13,q1,q14\n\teor\tr10,r4,r6\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\n\tadd\tr7,r7,r9\n\tveor\tq12,q12,q2\n\tldr\tr9,[sp,#40]\n\teor\tr11,r10,r5\n\tvshr.u32\tq2,q12,#30\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:21", "text": "vext.8\tq12,q0,q1,#8\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#36]\n\tveor\tq2,q2,q10\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tveor\tq2,q2,q3\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvadd.i32\tq13,q1,q14\n\teor\tr10,r4,r6\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\n\tadd\tr7,r7,r9\n\tveor\tq12,q12,q2\n\tldr\tr9,[sp,#40]\n\teor\tr11,r10,r5\n\tvshr.u32\tq2,q12,#30\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr7,r7,r11\n\teor\tr10,r3,r5\n\tvsli.32\tq2,q12,#2\n\tadd\tr6,r6,r9\n\tldr\tr9,[sp,#44]\n\teor\tr11,r10,r4\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tldr\tr9,[sp,#48]\n\teor\tr11,r10,r3\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvext.8\tq12,q1,q2,#8\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#52]\n\tveor\tq3,q3,q11\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tveor\tq3,q3,q8\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvadd.i32\tq13,q2,q14\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tveor\tq12,q12,q3\n\tldr\tr9,[sp,#56]\n\teor\tr11,r10,r6\n\tvshr.u32\tq3,q12,#30\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tvsli.32\tq3,q12,#2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:22", "text": "ldr\tr9,[sp,#52]\n\tveor\tq3,q3,q11\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tveor\tq3,q3,q8\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvadd.i32\tq13,q2,q14\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tveor\tq12,q12,q3\n\tldr\tr9,[sp,#56]\n\teor\tr11,r10,r6\n\tvshr.u32\tq3,q12,#30\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tvsli.32\tq3,q12,#2\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#60]\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tldr\tr9,[sp,#0]\n\teor\tr11,r10,r4\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tvext.8\tq12,q2,q3,#8\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tldr\tr9,[sp,#4]\n\tveor\tq8,q8,q0\n\teor\tr11,r10,r3\n\tadd\tr5,r5,r6,ror#27\n\tveor\tq8,q8,q9\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvadd.i32\tq13,q3,q14\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tveor\tq12,q12,q8\n\tldr\tr9,[sp,#8]\n\teor\tr11,r10,r7\n\tvshr.u32\tq8,q12,#30\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tvsli.32\tq8,q12,#2\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#12]\n\teor\tr11,r10,r6", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:23", "text": "veor\tq8,q8,q9\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvadd.i32\tq13,q3,q14\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tveor\tq12,q12,q8\n\tldr\tr9,[sp,#8]\n\teor\tr11,r10,r7\n\tvshr.u32\tq8,q12,#30\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tvsli.32\tq8,q12,#2\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#12]\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#16]\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq12,q3,q8,#8\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tldr\tr9,[sp,#20]\n\tveor\tq9,q9,q1\n\teor\tr11,r10,r4\n\tadd\tr6,r6,r7,ror#27\n\tveor\tq9,q9,q10\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tvadd.i32\tq13,q8,q14\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tveor\tq12,q12,q9\n\tldr\tr9,[sp,#24]\n\teor\tr11,r10,r3\n\tvshr.u32\tq9,q12,#30\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tvsli.32\tq9,q12,#2\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#28]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:24", "text": "vadd.i32\tq13,q8,q14\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tveor\tq12,q12,q9\n\tldr\tr9,[sp,#24]\n\teor\tr11,r10,r3\n\tvshr.u32\tq9,q12,#30\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tvsli.32\tq9,q12,#2\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#28]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#32]\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq12,q8,q9,#8\n\tadd\tr7,r7,r9\n\tand\tr10,r5,r6\n\tldr\tr9,[sp,#36]\n\tveor\tq10,q10,q2\n\tadd\tr7,r7,r3,ror#27\n\teor\tr11,r5,r6\n\tveor\tq10,q10,q11\n\tadd\tr7,r7,r10\n\tand\tr11,r11,r4\n\tvadd.i32\tq13,q9,q14\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tveor\tq12,q12,q10\n\tadd\tr6,r6,r9\n\tand\tr10,r4,r5\n\tvshr.u32\tq10,q12,#30\n\tldr\tr9,[sp,#40]\n\tadd\tr6,r6,r7,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\teor\tr11,r4,r5\n\tadd\tr6,r6,r10\n\tvsli.32\tq10,q12,#2\n\tand\tr11,r11,r3\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4\n\tldr\tr9,[sp,#44]\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r3,r4\n\tadd\tr5,r5,r10\n\tand\tr11,r11,r7\n\tmov\tr7,r7,ror#2", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:25", "text": "add\tr6,r6,r9\n\tand\tr10,r4,r5\n\tvshr.u32\tq10,q12,#30\n\tldr\tr9,[sp,#40]\n\tadd\tr6,r6,r7,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\teor\tr11,r4,r5\n\tadd\tr6,r6,r10\n\tvsli.32\tq10,q12,#2\n\tand\tr11,r11,r3\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4\n\tldr\tr9,[sp,#44]\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r3,r4\n\tadd\tr5,r5,r10\n\tand\tr11,r11,r7\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tadd\tr4,r4,r9\n\tand\tr10,r7,r3\n\tldr\tr9,[sp,#48]\n\tadd\tr4,r4,r5,ror#27\n\teor\tr11,r7,r3\n\tadd\tr4,r4,r10\n\tand\tr11,r11,r6\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvext.8\tq12,q9,q10,#8\n\tadd\tr3,r3,r9\n\tand\tr10,r6,r7\n\tldr\tr9,[sp,#52]\n\tveor\tq11,q11,q3\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r6,r7\n\tveor\tq11,q11,q0\n\tadd\tr3,r3,r10\n\tand\tr11,r11,r5\n\tvadd.i32\tq13,q10,q14\n\tmov\tr5,r5,ror#2\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\n\tadd\tr3,r3,r11\n\tveor\tq12,q12,q11\n\tadd\tr7,r7,r9\n\tand\tr10,r5,r6\n\tvshr.u32\tq11,q12,#30\n\tldr\tr9,[sp,#56]\n\tadd\tr7,r7,r3,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\teor\tr11,r5,r6\n\tadd\tr7,r7,r10\n\tvsli.32\tq11,q12,#2\n\tand\tr11,r11,r4\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tadd\tr6,r6,r9\n\tand\tr10,r4,r5\n\tldr\tr9,[sp,#60]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:26", "text": "vadd.i32\tq13,q10,q14\n\tmov\tr5,r5,ror#2\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\n\tadd\tr3,r3,r11\n\tveor\tq12,q12,q11\n\tadd\tr7,r7,r9\n\tand\tr10,r5,r6\n\tvshr.u32\tq11,q12,#30\n\tldr\tr9,[sp,#56]\n\tadd\tr7,r7,r3,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\teor\tr11,r5,r6\n\tadd\tr7,r7,r10\n\tvsli.32\tq11,q12,#2\n\tand\tr11,r11,r4\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tadd\tr6,r6,r9\n\tand\tr10,r4,r5\n\tldr\tr9,[sp,#60]\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r4,r5\n\tadd\tr6,r6,r10\n\tand\tr11,r11,r3\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4\n\tldr\tr9,[sp,#0]\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r3,r4\n\tadd\tr5,r5,r10\n\tand\tr11,r11,r7\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvext.8\tq12,q10,q11,#8\n\tadd\tr4,r4,r9\n\tand\tr10,r7,r3\n\tldr\tr9,[sp,#4]\n\tveor\tq0,q0,q8\n\tadd\tr4,r4,r5,ror#27\n\teor\tr11,r7,r3\n\tveor\tq0,q0,q1\n\tadd\tr4,r4,r10\n\tand\tr11,r11,r6\n\tvadd.i32\tq13,q11,q14\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tveor\tq12,q12,q0\n\tadd\tr3,r3,r9\n\tand\tr10,r6,r7\n\tvshr.u32\tq0,q12,#30\n\tldr\tr9,[sp,#8]\n\tadd\tr3,r3,r4,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\teor\tr11,r6,r7\n\tadd\tr3,r3,r10\n\tvsli.32\tq0,q12,#2\n\tand\tr11,r11,r5", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:27", "text": "add\tr4,r4,r5,ror#27\n\teor\tr11,r7,r3\n\tveor\tq0,q0,q1\n\tadd\tr4,r4,r10\n\tand\tr11,r11,r6\n\tvadd.i32\tq13,q11,q14\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tveor\tq12,q12,q0\n\tadd\tr3,r3,r9\n\tand\tr10,r6,r7\n\tvshr.u32\tq0,q12,#30\n\tldr\tr9,[sp,#8]\n\tadd\tr3,r3,r4,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\teor\tr11,r6,r7\n\tadd\tr3,r3,r10\n\tvsli.32\tq0,q12,#2\n\tand\tr11,r11,r5\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tadd\tr7,r7,r9\n\tand\tr10,r5,r6\n\tldr\tr9,[sp,#12]\n\tadd\tr7,r7,r3,ror#27\n\teor\tr11,r5,r6\n\tadd\tr7,r7,r10\n\tand\tr11,r11,r4\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tadd\tr6,r6,r9\n\tand\tr10,r4,r5\n\tldr\tr9,[sp,#16]\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r4,r5\n\tadd\tr6,r6,r10\n\tand\tr11,r11,r3\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tvext.8\tq12,q11,q0,#8\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4\n\tldr\tr9,[sp,#20]\n\tveor\tq1,q1,q9\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r3,r4\n\tveor\tq1,q1,q2\n\tadd\tr5,r5,r10\n\tand\tr11,r11,r7\n\tvadd.i32\tq13,q0,q14\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tveor\tq12,q12,q1\n\tadd\tr4,r4,r9\n\tand\tr10,r7,r3\n\tvshr.u32\tq1,q12,#30\n\tldr\tr9,[sp,#24]\n\tadd\tr4,r4,r5,ror#27\n\tvst1.32\t{q13},[r12,:128]!", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:28", "text": "vext.8\tq12,q11,q0,#8\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4\n\tldr\tr9,[sp,#20]\n\tveor\tq1,q1,q9\n\tadd\tr5,r5,r6,ror#27\n\teor\tr11,r3,r4\n\tveor\tq1,q1,q2\n\tadd\tr5,r5,r10\n\tand\tr11,r11,r7\n\tvadd.i32\tq13,q0,q14\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tveor\tq12,q12,q1\n\tadd\tr4,r4,r9\n\tand\tr10,r7,r3\n\tvshr.u32\tq1,q12,#30\n\tldr\tr9,[sp,#24]\n\tadd\tr4,r4,r5,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\teor\tr11,r7,r3\n\tadd\tr4,r4,r10\n\tvsli.32\tq1,q12,#2\n\tand\tr11,r11,r6\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tadd\tr3,r3,r9\n\tand\tr10,r6,r7\n\tldr\tr9,[sp,#28]\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r6,r7\n\tadd\tr3,r3,r10\n\tand\tr11,r11,r5\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tadd\tr7,r7,r9\n\tand\tr10,r5,r6\n\tldr\tr9,[sp,#32]\n\tadd\tr7,r7,r3,ror#27\n\teor\tr11,r5,r6\n\tadd\tr7,r7,r10\n\tand\tr11,r11,r4\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq12,q0,q1,#8\n\tadd\tr6,r6,r9\n\tand\tr10,r4,r5\n\tldr\tr9,[sp,#36]\n\tveor\tq2,q2,q10\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r4,r5\n\tveor\tq2,q2,q3\n\tadd\tr6,r6,r10\n\tand\tr11,r11,r3\n\tvadd.i32\tq13,q1,q14\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tveor\tq12,q12,q2\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:29", "text": "add\tr7,r7,r10\n\tand\tr11,r11,r4\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvext.8\tq12,q0,q1,#8\n\tadd\tr6,r6,r9\n\tand\tr10,r4,r5\n\tldr\tr9,[sp,#36]\n\tveor\tq2,q2,q10\n\tadd\tr6,r6,r7,ror#27\n\teor\tr11,r4,r5\n\tveor\tq2,q2,q3\n\tadd\tr6,r6,r10\n\tand\tr11,r11,r3\n\tvadd.i32\tq13,q1,q14\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tveor\tq12,q12,q2\n\tadd\tr5,r5,r9\n\tand\tr10,r3,r4\n\tvshr.u32\tq2,q12,#30\n\tldr\tr9,[sp,#40]\n\tadd\tr5,r5,r6,ror#27\n\tvst1.32\t{q13},[r12,:128]!\n\teor\tr11,r3,r4\n\tadd\tr5,r5,r10\n\tvsli.32\tq2,q12,#2\n\tand\tr11,r11,r7\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tadd\tr4,r4,r9\n\tand\tr10,r7,r3\n\tldr\tr9,[sp,#44]\n\tadd\tr4,r4,r5,ror#27\n\teor\tr11,r7,r3\n\tadd\tr4,r4,r10\n\tand\tr11,r11,r6\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tadd\tr3,r3,r9\n\tand\tr10,r6,r7\n\tldr\tr9,[sp,#48]\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r6,r7\n\tadd\tr3,r3,r10\n\tand\tr11,r11,r5\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq12,q1,q2,#8\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#52]\n\tveor\tq3,q3,q11\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tveor\tq3,q3,q8\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvadd.i32\tq13,q2,q14\n\teor\tr10,r3,r5", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:30", "text": "and\tr10,r6,r7\n\tldr\tr9,[sp,#48]\n\tadd\tr3,r3,r4,ror#27\n\teor\tr11,r6,r7\n\tadd\tr3,r3,r10\n\tand\tr11,r11,r5\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tvext.8\tq12,q1,q2,#8\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#52]\n\tveor\tq3,q3,q11\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tveor\tq3,q3,q8\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvadd.i32\tq13,q2,q14\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tveor\tq12,q12,q3\n\tldr\tr9,[sp,#56]\n\teor\tr11,r10,r4\n\tvshr.u32\tq3,q12,#30\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tvst1.32\t{q13},[r12,:128]!\n\tadd\tr6,r6,r11\n\teor\tr10,r7,r4\n\tvsli.32\tq3,q12,#2\n\tadd\tr5,r5,r9\n\tldr\tr9,[sp,#60]\n\teor\tr11,r10,r3\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#0]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvadd.i32\tq13,q3,q14\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\tteq\tr1,r2\n\tsub\tr8,r8,#16\n\tit\teq\n\tsubeq\tr1,r1,#64\n\tvld1.8\t{q0,q1},[r1]!\n\tldr\tr9,[sp,#4]\n\teor\tr11,r10,r6\n\tvld1.8\t{q2,q3},[r1]!\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tvld1.32\t{d28[],d29[]},[r8,:32]!", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:31", "text": "eor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\tvadd.i32\tq13,q3,q14\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tvst1.32\t{q13},[r12,:128]!\n\tsub\tr12,r12,#64\n\tteq\tr1,r2\n\tsub\tr8,r8,#16\n\tit\teq\n\tsubeq\tr1,r1,#64\n\tvld1.8\t{q0,q1},[r1]!\n\tldr\tr9,[sp,#4]\n\teor\tr11,r10,r6\n\tvld1.8\t{q2,q3},[r1]!\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tvld1.32\t{d28[],d29[]},[r8,:32]!\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tvrev32.8\tq0,q0\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#8]\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tldr\tr9,[sp,#12]\n\teor\tr11,r10,r4\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tldr\tr9,[sp,#16]\n\teor\tr11,r10,r3\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvrev32.8\tq1,q1\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tvadd.i32\tq8,q0,q14\n\tldr\tr9,[sp,#20]\n\teor\tr11,r10,r7\n\tvst1.32\t{q8},[r12,:128]!\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#24]\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:32", "text": "add\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\tvrev32.8\tq1,q1\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tvadd.i32\tq8,q0,q14\n\tldr\tr9,[sp,#20]\n\teor\tr11,r10,r7\n\tvst1.32\t{q8},[r12,:128]!\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#24]\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#28]\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tldr\tr9,[sp,#32]\n\teor\tr11,r10,r4\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\tvrev32.8\tq2,q2\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tvadd.i32\tq9,q1,q14\n\tldr\tr9,[sp,#36]\n\teor\tr11,r10,r3\n\tvst1.32\t{q9},[r12,:128]!\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#40]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#44]\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:33", "text": "vst1.32\t{q9},[r12,:128]!\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#40]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\tldr\tr9,[sp,#44]\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\teor\tr10,r4,r6\n\tadd\tr7,r7,r9\n\tldr\tr9,[sp,#48]\n\teor\tr11,r10,r5\n\tadd\tr7,r7,r3,ror#27\n\tmov\tr4,r4,ror#2\n\tadd\tr7,r7,r11\n\tvrev32.8\tq3,q3\n\teor\tr10,r3,r5\n\tadd\tr6,r6,r9\n\tvadd.i32\tq10,q2,q14\n\tldr\tr9,[sp,#52]\n\teor\tr11,r10,r4\n\tvst1.32\t{q10},[r12,:128]!\n\tadd\tr6,r6,r7,ror#27\n\tmov\tr3,r3,ror#2\n\tadd\tr6,r6,r11\n\teor\tr10,r7,r4\n\tadd\tr5,r5,r9\n\tldr\tr9,[sp,#56]\n\teor\tr11,r10,r3\n\tadd\tr5,r5,r6,ror#27\n\tmov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#60]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tldmia\tr0,{r9,r10,r11,r12}\t@ accumulate context\n\tadd\tr3,r3,r9\n\tldr\tr9,[r0,#16]\n\tadd\tr4,r4,r10\n\tadd\tr5,r5,r11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:34", "text": "mov\tr7,r7,ror#2\n\tadd\tr5,r5,r11\n\teor\tr10,r6,r3\n\tadd\tr4,r4,r9\n\tldr\tr9,[sp,#60]\n\teor\tr11,r10,r7\n\tadd\tr4,r4,r5,ror#27\n\tmov\tr6,r6,ror#2\n\tadd\tr4,r4,r11\n\teor\tr10,r5,r7\n\tadd\tr3,r3,r9\n\teor\tr11,r10,r6\n\tadd\tr3,r3,r4,ror#27\n\tmov\tr5,r5,ror#2\n\tadd\tr3,r3,r11\n\tldmia\tr0,{r9,r10,r11,r12}\t@ accumulate context\n\tadd\tr3,r3,r9\n\tldr\tr9,[r0,#16]\n\tadd\tr4,r4,r10\n\tadd\tr5,r5,r11\n\tadd\tr6,r6,r12\n\tit\teq\n\tmoveq\tsp,r14\n\tadd\tr7,r7,r9\n\tit\tne\n\tldrne\tr9,[sp]\n\tstmia\tr0,{r3,r4,r5,r6,r7}\n\titt\tne\n\taddne\tr12,sp,#3*16\n\tbne\t.Loop_neon\n\n\t@ vldmia\tsp!,{d8-d15}\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n.size\tsha1_block_data_order_neon,.-sha1_block_data_order_neon\n#endif\n#if __ARM_MAX_ARCH__>=7\n\n# if defined(__thumb2__)\n#  define INST(a,b,c,d)\t.byte\tc,d|0xf,a,b\n# else\n#  define INST(a,b,c,d)\t.byte\ta,b,c,d|0x10\n# endif\n\n.type\tsha1_block_data_order_armv8,%function\n.align\t5\nsha1_block_data_order_armv8:\n.LARMv8:\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI specification says so\n\n\tveor\tq1,q1,q1\n\tadr\tr3,.LK_00_19\n\tvld1.32\t{q0},[r0]!\n\tvld1.32\t{d2[0]},[r0]\n\tsub\tr0,r0,#16\n\tvld1.32\t{d16[],d17[]},[r3,:32]!\n\tvld1.32\t{d18[],d19[]},[r3,:32]!\n\tvld1.32\t{d20[],d21[]},[r3,:32]!\n\tvld1.32\t{d22[],d23[]},[r3,:32]\n\n.Loop_v8:", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:35", "text": "#  define INST(a,b,c,d)\t.byte\ta,b,c,d|0x10\n# endif\n\n.type\tsha1_block_data_order_armv8,%function\n.align\t5\nsha1_block_data_order_armv8:\n.LARMv8:\n\tvstmdb\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\t\t@ ABI specification says so\n\n\tveor\tq1,q1,q1\n\tadr\tr3,.LK_00_19\n\tvld1.32\t{q0},[r0]!\n\tvld1.32\t{d2[0]},[r0]\n\tsub\tr0,r0,#16\n\tvld1.32\t{d16[],d17[]},[r3,:32]!\n\tvld1.32\t{d18[],d19[]},[r3,:32]!\n\tvld1.32\t{d20[],d21[]},[r3,:32]!\n\tvld1.32\t{d22[],d23[]},[r3,:32]\n\n.Loop_v8:\n\tvld1.8\t{q4,q5},[r1]!\n\tvld1.8\t{q6,q7},[r1]!\n\tvrev32.8\tq4,q4\n\tvrev32.8\tq5,q5\n\n\tvadd.i32\tq12,q8,q4\n\tvrev32.8\tq6,q6\n\tvmov\tq14,q0\t@ offload\n\tsubs\tr2,r2,#1\n\n\tvadd.i32\tq13,q8,q5\n\tvrev32.8\tq7,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 0\n\tINST(0x68,0x0c,0x02,0xe2)\t@ sha1c q0,q1,q12\n\tvadd.i32\tq12,q8,q6\n\tINST(0x4c,0x8c,0x3a,0xe2)\t@ sha1su0 q4,q5,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 1\n\tINST(0x6a,0x0c,0x06,0xe2)\t@ sha1c q0,q3,q13\n\tvadd.i32\tq13,q8,q7\n\tINST(0x8e,0x83,0xba,0xf3)\t@ sha1su1 q4,q7\n\tINST(0x4e,0xac,0x3c,0xe2)\t@ sha1su0 q5,q6,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 2\n\tINST(0x68,0x0c,0x04,0xe2)\t@ sha1c q0,q2,q12\n\tvadd.i32\tq12,q8,q4\n\tINST(0x88,0xa3,0xba,0xf3)\t@ sha1su1 q5,q4\n\tINST(0x48,0xcc,0x3e,0xe2)\t@ sha1su0 q6,q7,q4\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 3\n\tINST(0x6a,0x0c,0x06,0xe2)\t@ sha1c q0,q3,q13\n\tvadd.i32\tq13,q9,q5\n\tINST(0x8a,0xc3,0xba,0xf3)\t@ sha1su1 q6,q5\n\tINST(0x4a,0xec,0x38,0xe2)\t@ sha1su0 q7,q4,q5\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 4\n\tINST(0x68,0x0c,0x04,0xe2)\t@ sha1c q0,q2,q12\n\tvadd.i32\tq12,q9,q6\n\tINST(0x8c,0xe3,0xba,0xf3)\t@ sha1su1 q7,q6\n\tINST(0x4c,0x8c,0x3a,0xe2)\t@ sha1su0 q4,q5,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 5\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\tvadd.i32\tq13,q9,q7\n\tINST(0x8e,0x83,0xba,0xf3)\t@ sha1su1 q4,q7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:36", "text": "INST(0x4e,0xac,0x3c,0xe2)\t@ sha1su0 q5,q6,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 2\n\tINST(0x68,0x0c,0x04,0xe2)\t@ sha1c q0,q2,q12\n\tvadd.i32\tq12,q8,q4\n\tINST(0x88,0xa3,0xba,0xf3)\t@ sha1su1 q5,q4\n\tINST(0x48,0xcc,0x3e,0xe2)\t@ sha1su0 q6,q7,q4\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 3\n\tINST(0x6a,0x0c,0x06,0xe2)\t@ sha1c q0,q3,q13\n\tvadd.i32\tq13,q9,q5\n\tINST(0x8a,0xc3,0xba,0xf3)\t@ sha1su1 q6,q5\n\tINST(0x4a,0xec,0x38,0xe2)\t@ sha1su0 q7,q4,q5\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 4\n\tINST(0x68,0x0c,0x04,0xe2)\t@ sha1c q0,q2,q12\n\tvadd.i32\tq12,q9,q6\n\tINST(0x8c,0xe3,0xba,0xf3)\t@ sha1su1 q7,q6\n\tINST(0x4c,0x8c,0x3a,0xe2)\t@ sha1su0 q4,q5,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 5\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\tvadd.i32\tq13,q9,q7\n\tINST(0x8e,0x83,0xba,0xf3)\t@ sha1su1 q4,q7\n\tINST(0x4e,0xac,0x3c,0xe2)\t@ sha1su0 q5,q6,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 6\n\tINST(0x68,0x0c,0x14,0xe2)\t@ sha1p q0,q2,q12\n\tvadd.i32\tq12,q9,q4\n\tINST(0x88,0xa3,0xba,0xf3)\t@ sha1su1 q5,q4\n\tINST(0x48,0xcc,0x3e,0xe2)\t@ sha1su0 q6,q7,q4\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 7\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\tvadd.i32\tq13,q9,q5\n\tINST(0x8a,0xc3,0xba,0xf3)\t@ sha1su1 q6,q5\n\tINST(0x4a,0xec,0x38,0xe2)\t@ sha1su0 q7,q4,q5\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 8\n\tINST(0x68,0x0c,0x14,0xe2)\t@ sha1p q0,q2,q12\n\tvadd.i32\tq12,q10,q6\n\tINST(0x8c,0xe3,0xba,0xf3)\t@ sha1su1 q7,q6\n\tINST(0x4c,0x8c,0x3a,0xe2)\t@ sha1su0 q4,q5,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 9\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\tvadd.i32\tq13,q10,q7\n\tINST(0x8e,0x83,0xba,0xf3)\t@ sha1su1 q4,q7\n\tINST(0x4e,0xac,0x3c,0xe2)\t@ sha1su0 q5,q6,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 10\n\tINST(0x68,0x0c,0x24,0xe2)\t@ sha1m q0,q2,q12\n\tvadd.i32\tq12,q10,q4\n\tINST(0x88,0xa3,0xba,0xf3)\t@ sha1su1 q5,q4\n\tINST(0x48,0xcc,0x3e,0xe2)\t@ sha1su0 q6,q7,q4\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 11\n\tINST(0x6a,0x0c,0x26,0xe2)\t@ sha1m q0,q3,q13\n\tvadd.i32\tq13,q10,q5\n\tINST(0x8a,0xc3,0xba,0xf3)\t@ sha1su1 q6,q5\n\tINST(0x4a,0xec,0x38,0xe2)\t@ sha1su0 q7,q4,q5\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 12\n\tINST(0x68,0x0c,0x24,0xe2)\t@ sha1m q0,q2,q12\n\tvadd.i32\tq12,q10,q6\n\tINST(0x8c,0xe3,0xba,0xf3)\t@ sha1su1 q7,q6\n\tINST(0x4c,0x8c,0x3a,0xe2)\t@ sha1su0 q4,q5,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 13\n\tINST(0x6a,0x0c,0x26,0xe2)\t@ sha1m q0,q3,q13\n\tvadd.i32\tq13,q11,q7\n\tINST(0x8e,0x83,0xba,0xf3)\t@ sha1su1 q4,q7", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:37", "text": "INST(0x4e,0xac,0x3c,0xe2)\t@ sha1su0 q5,q6,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 10\n\tINST(0x68,0x0c,0x24,0xe2)\t@ sha1m q0,q2,q12\n\tvadd.i32\tq12,q10,q4\n\tINST(0x88,0xa3,0xba,0xf3)\t@ sha1su1 q5,q4\n\tINST(0x48,0xcc,0x3e,0xe2)\t@ sha1su0 q6,q7,q4\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 11\n\tINST(0x6a,0x0c,0x26,0xe2)\t@ sha1m q0,q3,q13\n\tvadd.i32\tq13,q10,q5\n\tINST(0x8a,0xc3,0xba,0xf3)\t@ sha1su1 q6,q5\n\tINST(0x4a,0xec,0x38,0xe2)\t@ sha1su0 q7,q4,q5\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 12\n\tINST(0x68,0x0c,0x24,0xe2)\t@ sha1m q0,q2,q12\n\tvadd.i32\tq12,q10,q6\n\tINST(0x8c,0xe3,0xba,0xf3)\t@ sha1su1 q7,q6\n\tINST(0x4c,0x8c,0x3a,0xe2)\t@ sha1su0 q4,q5,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 13\n\tINST(0x6a,0x0c,0x26,0xe2)\t@ sha1m q0,q3,q13\n\tvadd.i32\tq13,q11,q7\n\tINST(0x8e,0x83,0xba,0xf3)\t@ sha1su1 q4,q7\n\tINST(0x4e,0xac,0x3c,0xe2)\t@ sha1su0 q5,q6,q7\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 14\n\tINST(0x68,0x0c,0x24,0xe2)\t@ sha1m q0,q2,q12\n\tvadd.i32\tq12,q11,q4\n\tINST(0x88,0xa3,0xba,0xf3)\t@ sha1su1 q5,q4\n\tINST(0x48,0xcc,0x3e,0xe2)\t@ sha1su0 q6,q7,q4\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 15\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\tvadd.i32\tq13,q11,q5\n\tINST(0x8a,0xc3,0xba,0xf3)\t@ sha1su1 q6,q5\n\tINST(0x4a,0xec,0x38,0xe2)\t@ sha1su0 q7,q4,q5\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 16\n\tINST(0x68,0x0c,0x14,0xe2)\t@ sha1p q0,q2,q12\n\tvadd.i32\tq12,q11,q6\n\tINST(0x8c,0xe3,0xba,0xf3)\t@ sha1su1 q7,q6\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 17\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\tvadd.i32\tq13,q11,q7\n\n\tINST(0xc0,0x62,0xb9,0xf3)\t@ sha1h q3,q0\t\t@ 18\n\tINST(0x68,0x0c,0x14,0xe2)\t@ sha1p q0,q2,q12\n\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 19\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\n\tvadd.i32\tq1,q1,q2\n\tvadd.i32\tq0,q0,q14\n\tbne\t.Loop_v8\n\n\tvst1.32\t{q0},[r0]!\n\tvst1.32\t{d2[0]},[r0]\n\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tRET\t\t\t\t\t@ bx lr\n.size\tsha1_block_data_order_armv8,.-sha1_block_data_order_armv8\n#endif\n#if __ARM_MAX_ARCH__>=7\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S:38", "text": "INST(0x68,0x0c,0x14,0xe2)\t@ sha1p q0,q2,q12\n\n\tINST(0xc0,0x42,0xb9,0xf3)\t@ sha1h q2,q0\t\t@ 19\n\tINST(0x6a,0x0c,0x16,0xe2)\t@ sha1p q0,q3,q13\n\n\tvadd.i32\tq1,q1,q2\n\tvadd.i32\tq0,q0,q14\n\tbne\t.Loop_v8\n\n\tvst1.32\t{q0},[r0]!\n\tvst1.32\t{d2[0]},[r0]\n\n\tvldmia\tsp!,{d8,d9,d10,d11,d12,d13,d14,d15}\n\tRET\t\t\t\t\t@ bx lr\n.size\tsha1_block_data_order_armv8,.-sha1_block_data_order_armv8\n#endif\n#if __ARM_MAX_ARCH__>=7\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S", "line_start": 1481, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n#ifndef\t__KERNEL__\n\n.hidden\tOPENSSL_armcap_P\n#endif\n\n.text\n\n.globl\tsha1_block_data_order\n.type\tsha1_block_data_order,%function\n.align\t6\nsha1_block_data_order:\n\tAARCH64_VALID_CALL_TARGET\n\tadrp\tx16,OPENSSL_armcap_P\n\tldr\tw16,[x16,#:lo12:OPENSSL_armcap_P]\n\ttst\tw16,#ARMV8_SHA1\n\tb.ne\t.Lv8_entry\n\n\t// Armv8.3-A PAuth: even though x30 is pushed to stack it is not popped later.\n\tstp\tx29,x30,[sp,#-96]!\n\tadd\tx29,sp,#0\n\tstp\tx19,x20,[sp,#16]\n\tstp\tx21,x22,[sp,#32]\n\tstp\tx23,x24,[sp,#48]\n\tstp\tx25,x26,[sp,#64]\n\tstp\tx27,x28,[sp,#80]\n\n\tldp\tw20,w21,[x0]\n\tldp\tw22,w23,[x0,#8]\n\tldr\tw24,[x0,#16]\n\n.Loop:\n\tldr\tx3,[x1],#64\n\tmovz\tw28,#0x7999\n\tsub\tx2,x2,#1\n\tmovk\tw28,#0x5a82,lsl#16\n#ifdef\t__AARCH64EB__\n\tror\tx3,x3,#32\n#else\n\trev32\tx3,x3\n#endif\n\tadd\tw24,w24,w28\t\t// warm it up\n\tadd\tw24,w24,w3\n\tlsr\tx4,x3,#32\n\tldur\tx5,[x1,#-56]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w4\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx5,x5,#32\n#else\n\trev32\tx5,x5\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:2", "text": "rev32\tx3,x3\n#endif\n\tadd\tw24,w24,w28\t\t// warm it up\n\tadd\tw24,w24,w3\n\tlsr\tx4,x3,#32\n\tldur\tx5,[x1,#-56]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w4\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx5,x5,#32\n#else\n\trev32\tx5,x5\n#endif\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w5\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tlsr\tx6,x5,#32\n\tldur\tx7,[x1,#-48]\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w6\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx7,x7,#32\n#else\n\trev32\tx7,x7\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w7\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx8,x7,#32\n\tldur\tx9,[x1,#-40]\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:3", "text": "#ifdef\t__AARCH64EB__\n\tror\tx7,x7,#32\n#else\n\trev32\tx7,x7\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w7\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx8,x7,#32\n\tldur\tx9,[x1,#-40]\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w8\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx9,x9,#32\n#else\n\trev32\tx9,x9\n#endif\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w9\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tlsr\tx10,x9,#32\n\tldur\tx11,[x1,#-32]\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w10\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx11,x11,#32\n#else\n\trev32\tx11,x11\n#endif\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:4", "text": "ldur\tx11,[x1,#-32]\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w10\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx11,x11,#32\n#else\n\trev32\tx11,x11\n#endif\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w11\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tlsr\tx12,x11,#32\n\tldur\tx13,[x1,#-24]\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w12\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx13,x13,#32\n#else\n\trev32\tx13,x13\n#endif\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w13\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tlsr\tx14,x13,#32\n\tldur\tx15,[x1,#-16]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w14\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:5", "text": "bic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w13\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tlsr\tx14,x13,#32\n\tldur\tx15,[x1,#-16]\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w14\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx15,x15,#32\n#else\n\trev32\tx15,x15\n#endif\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w15\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tlsr\tx16,x15,#32\n\tldur\tx17,[x1,#-8]\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w16\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx17,x17,#32\n#else\n\trev32\tx17,x17\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w17\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx19,x17,#32", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:6", "text": "orr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w16\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n#ifdef\t__AARCH64EB__\n\tror\tx17,x17,#32\n#else\n\trev32\tx17,x17\n#endif\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w17\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tlsr\tx19,x17,#32\n\teor\tw3,w3,w5\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\teor\tw3,w3,w11\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\teor\tw3,w3,w16\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w19\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6\n\tbic\tw25,w23,w21\n\tand\tw26,w22,w21\n\tror\tw27,w20,#27\n\teor\tw4,w4,w12\n\tadd\tw23,w23,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\teor\tw4,w4,w17\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w3\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\teor\tw5,w5,w13\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\teor\tw5,w5,w19\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w4\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:7", "text": "add\tw24,w24,w27\t\t// e+=rot(a,5)\n\teor\tw4,w4,w17\n\tror\tw21,w21,#2\n\tadd\tw23,w23,w3\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\tbic\tw25,w22,w20\n\tand\tw26,w21,w20\n\tror\tw27,w24,#27\n\teor\tw5,w5,w13\n\tadd\tw22,w22,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\teor\tw5,w5,w19\n\tror\tw20,w20,#2\n\tadd\tw22,w22,w4\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\tbic\tw25,w21,w24\n\tand\tw26,w20,w24\n\tror\tw27,w23,#27\n\teor\tw6,w6,w14\n\tadd\tw21,w21,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\teor\tw6,w6,w3\n\tror\tw24,w24,#2\n\tadd\tw21,w21,w5\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\tbic\tw25,w20,w23\n\tand\tw26,w24,w23\n\tror\tw27,w22,#27\n\teor\tw7,w7,w15\n\tadd\tw20,w20,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\teor\tw7,w7,w4\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w6\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\tmovz\tw28,#0xeba1\n\tmovk\tw28,#0x6ed9,lsl#16\n\teor\tw8,w8,w10\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\teor\tw8,w8,w16\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\teor\tw8,w8,w5\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w7\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:8", "text": "eor\tw7,w7,w4\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w6\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\tmovz\tw28,#0xeba1\n\tmovk\tw28,#0x6ed9,lsl#16\n\teor\tw8,w8,w10\n\tbic\tw25,w24,w22\n\tand\tw26,w23,w22\n\tror\tw27,w21,#27\n\teor\tw8,w8,w16\n\tadd\tw24,w24,w28\t\t// future e+=K\n\torr\tw25,w25,w26\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\teor\tw8,w8,w5\n\tror\tw22,w22,#2\n\tadd\tw24,w24,w7\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw9,w9,w6\n\tadd\tw23,w23,w8\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw10,w10,w7\n\tadd\tw22,w22,w9\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw11,w11,w8\n\tadd\tw21,w21,w10\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\teor\tw12,w12,w14\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:9", "text": "eor\tw10,w10,w7\n\tadd\tw22,w22,w9\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw11,w11,w8\n\tadd\tw21,w21,w10\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\teor\tw12,w12,w14\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw12,w12,w9\n\tadd\tw20,w20,w11\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\teor\tw13,w13,w15\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw13,w13,w10\n\tadd\tw24,w24,w12\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\teor\tw14,w14,w16\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw14,w14,w11\n\tadd\tw23,w23,w13\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\teor\tw15,w15,w17\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:10", "text": "eor\tw14,w14,w16\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw14,w14,w11\n\tadd\tw23,w23,w13\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\teor\tw15,w15,w17\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw15,w15,w12\n\tadd\tw22,w22,w14\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\teor\tw16,w16,w19\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw16,w16,w13\n\tadd\tw21,w21,w15\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw17,w17,w14\n\tadd\tw20,w20,w16\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw19,w19,w15\n\tadd\tw24,w24,w17\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:11", "text": "eor\tw17,w17,w9\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw17,w17,w14\n\tadd\tw20,w20,w16\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw19,w19,w15\n\tadd\tw24,w24,w17\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw3,w3,w16\n\tadd\tw23,w23,w19\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw4,w4,w17\n\tadd\tw22,w22,w3\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw5,w5,w19\n\tadd\tw21,w21,w4\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:12", "text": "eor\tw4,w4,w17\n\tadd\tw22,w22,w3\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw5,w5,w19\n\tadd\tw21,w21,w4\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw6,w6,w3\n\tadd\tw20,w20,w5\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw7,w7,w4\n\tadd\tw24,w24,w6\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\teor\tw8,w8,w10\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw8,w8,w5\n\tadd\tw23,w23,w7\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:13", "text": "eor\tw8,w8,w10\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw8,w8,w5\n\tadd\tw23,w23,w7\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw9,w9,w6\n\tadd\tw22,w22,w8\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw10,w10,w7\n\tadd\tw21,w21,w9\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw11,w11,w8\n\tadd\tw20,w20,w10\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\tmovz\tw28,#0xbcdc\n\tmovk\tw28,#0x8f1b,lsl#16\n\teor\tw12,w12,w14\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw12,w12,w9\n\tadd\tw24,w24,w11\t// future e+=X[i]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:14", "text": "eor\tw11,w11,w3\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw11,w11,w8\n\tadd\tw20,w20,w10\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\tmovz\tw28,#0xbcdc\n\tmovk\tw28,#0x8f1b,lsl#16\n\teor\tw12,w12,w14\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw12,w12,w9\n\tadd\tw24,w24,w11\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw13,w13,w15\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw13,w13,w10\n\tadd\tw23,w23,w12\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw14,w14,w16\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw14,w14,w11\n\tadd\tw22,w22,w13\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw15,w15,w17\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:15", "text": "and\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw14,w14,w11\n\tadd\tw22,w22,w13\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw15,w15,w17\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw15,w15,w12\n\tadd\tw21,w21,w14\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw16,w16,w19\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw16,w16,w13\n\tadd\tw20,w20,w15\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw17,w17,w3\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw17,w17,w14\n\tadd\tw24,w24,w16\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw19,w19,w4\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:16", "text": "eor\tw17,w17,w3\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw17,w17,w14\n\tadd\tw24,w24,w16\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw19,w19,w4\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw19,w19,w15\n\tadd\tw23,w23,w17\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw3,w3,w5\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw3,w3,w16\n\tadd\tw22,w22,w19\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw4,w4,w6\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw4,w4,w17\n\tadd\tw21,w21,w3\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw5,w5,w7\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:17", "text": "orr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw4,w4,w6\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw4,w4,w17\n\tadd\tw21,w21,w3\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw5,w5,w7\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw5,w5,w19\n\tadd\tw20,w20,w4\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw6,w6,w8\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw6,w6,w3\n\tadd\tw24,w24,w5\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw7,w7,w9\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw7,w7,w4\n\tadd\tw23,w23,w6\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw8,w8,w10\n\tror\tw27,w24,#27", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:18", "text": "add\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw7,w7,w9\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw7,w7,w4\n\tadd\tw23,w23,w6\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw8,w8,w10\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw8,w8,w5\n\tadd\tw22,w22,w7\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw9,w9,w11\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw9,w9,w6\n\tadd\tw21,w21,w8\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw10,w10,w12\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw10,w10,w7\n\tadd\tw20,w20,w9\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:19", "text": "eor\tw9,w9,w6\n\tadd\tw21,w21,w8\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw10,w10,w12\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw10,w10,w7\n\tadd\tw20,w20,w9\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw11,w11,w13\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw11,w11,w8\n\tadd\tw24,w24,w10\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\torr\tw25,w21,w22\n\tand\tw26,w21,w22\n\teor\tw12,w12,w14\n\tror\tw27,w20,#27\n\tand\tw25,w25,w23\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw12,w12,w9\n\tadd\tw23,w23,w11\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw13,w13,w15\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw13,w13,w10\n\tadd\tw22,w22,w12\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:20", "text": "orr\tw25,w25,w26\n\tror\tw21,w21,#2\n\teor\tw12,w12,w9\n\tadd\tw23,w23,w11\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\torr\tw25,w20,w21\n\tand\tw26,w20,w21\n\teor\tw13,w13,w15\n\tror\tw27,w24,#27\n\tand\tw25,w25,w22\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw20,w20,#2\n\teor\tw13,w13,w10\n\tadd\tw22,w22,w12\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\torr\tw25,w24,w20\n\tand\tw26,w24,w20\n\teor\tw14,w14,w16\n\tror\tw27,w23,#27\n\tand\tw25,w25,w21\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw24,w24,#2\n\teor\tw14,w14,w11\n\tadd\tw21,w21,w13\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\torr\tw25,w23,w24\n\tand\tw26,w23,w24\n\teor\tw15,w15,w17\n\tror\tw27,w22,#27\n\tand\tw25,w25,w20\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw15,w15,w12\n\tadd\tw20,w20,w14\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\tmovz\tw28,#0xc1d6\n\tmovk\tw28,#0xca62,lsl#16\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw16,w16,w19\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:21", "text": "eor\tw15,w15,w7\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw23,w23,#2\n\teor\tw15,w15,w12\n\tadd\tw20,w20,w14\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\tmovz\tw28,#0xc1d6\n\tmovk\tw28,#0xca62,lsl#16\n\torr\tw25,w22,w23\n\tand\tw26,w22,w23\n\teor\tw16,w16,w19\n\tror\tw27,w21,#27\n\tand\tw25,w25,w24\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\torr\tw25,w25,w26\n\tror\tw22,w22,#2\n\teor\tw16,w16,w13\n\tadd\tw24,w24,w15\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw17,w17,w14\n\tadd\tw23,w23,w16\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw19,w19,w15\n\tadd\tw22,w22,w17\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw3,w3,w16\n\tadd\tw21,w21,w19\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:22", "text": "eor\tw19,w19,w10\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw19,w19,w15\n\tadd\tw22,w22,w17\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\teor\tw3,w3,w5\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw3,w3,w11\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw3,w3,w16\n\tadd\tw21,w21,w19\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw3,w3,#31\n\teor\tw4,w4,w6\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw4,w4,w12\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw4,w4,w17\n\tadd\tw20,w20,w3\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw4,w4,#31\n\teor\tw5,w5,w7\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw5,w5,w13\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw5,w5,w19\n\tadd\tw24,w24,w4\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw6,w6,w3\n\tadd\tw23,w23,w5\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:23", "text": "eor\tw5,w5,w19\n\tadd\tw24,w24,w4\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw5,w5,#31\n\teor\tw6,w6,w8\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw6,w6,w14\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw6,w6,w3\n\tadd\tw23,w23,w5\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw6,w6,#31\n\teor\tw7,w7,w9\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw7,w7,w15\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw7,w7,w4\n\tadd\tw22,w22,w6\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw7,w7,#31\n\teor\tw8,w8,w10\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw8,w8,w16\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw8,w8,w5\n\tadd\tw21,w21,w7\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw8,w8,#31\n\teor\tw9,w9,w11\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw9,w9,w6\n\tadd\tw20,w20,w8\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:24", "text": "eor\tw9,w9,w11\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw9,w9,w17\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw9,w9,w6\n\tadd\tw20,w20,w8\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw9,w9,#31\n\teor\tw10,w10,w12\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw10,w10,w19\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw10,w10,w7\n\tadd\tw24,w24,w9\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw10,w10,#31\n\teor\tw11,w11,w13\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw11,w11,w3\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw11,w11,w8\n\tadd\tw23,w23,w10\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw11,w11,#31\n\teor\tw12,w12,w14\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw12,w12,w4\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw12,w12,w9\n\tadd\tw22,w22,w11\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\teor\tw13,w13,w15\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw13,w13,w10\n\tadd\tw21,w21,w12\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:25", "text": "eor\tw12,w12,w4\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw12,w12,w9\n\tadd\tw22,w22,w11\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw12,w12,#31\n\teor\tw13,w13,w15\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw13,w13,w5\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw13,w13,w10\n\tadd\tw21,w21,w12\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw13,w13,#31\n\teor\tw14,w14,w16\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw14,w14,w6\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\teor\tw14,w14,w11\n\tadd\tw20,w20,w13\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tror\tw14,w14,#31\n\teor\tw15,w15,w17\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\tadd\tw24,w24,w28\t\t// future e+=K\n\teor\tw15,w15,w7\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\teor\tw15,w15,w12\n\tadd\tw24,w24,w14\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\teor\tw16,w16,w19\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw16,w16,w13\n\tadd\tw23,w23,w15\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:26", "text": "eor\tw15,w15,w12\n\tadd\tw24,w24,w14\t// future e+=X[i]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tror\tw15,w15,#31\n\teor\tw16,w16,w19\n\teor\tw25,w23,w21\n\tror\tw27,w20,#27\n\tadd\tw23,w23,w28\t\t// future e+=K\n\teor\tw16,w16,w8\n\teor\tw25,w25,w22\n\tadd\tw24,w24,w27\t\t// e+=rot(a,5)\n\tror\tw21,w21,#2\n\teor\tw16,w16,w13\n\tadd\tw23,w23,w15\t// future e+=X[i]\n\tadd\tw24,w24,w25\t\t// e+=F(b,c,d)\n\tror\tw16,w16,#31\n\teor\tw17,w17,w3\n\teor\tw25,w22,w20\n\tror\tw27,w24,#27\n\tadd\tw22,w22,w28\t\t// future e+=K\n\teor\tw17,w17,w9\n\teor\tw25,w25,w21\n\tadd\tw23,w23,w27\t\t// e+=rot(a,5)\n\tror\tw20,w20,#2\n\teor\tw17,w17,w14\n\tadd\tw22,w22,w16\t// future e+=X[i]\n\tadd\tw23,w23,w25\t\t// e+=F(b,c,d)\n\tror\tw17,w17,#31\n\teor\tw19,w19,w4\n\teor\tw25,w21,w24\n\tror\tw27,w23,#27\n\tadd\tw21,w21,w28\t\t// future e+=K\n\teor\tw19,w19,w10\n\teor\tw25,w25,w20\n\tadd\tw22,w22,w27\t\t// e+=rot(a,5)\n\tror\tw24,w24,#2\n\teor\tw19,w19,w15\n\tadd\tw21,w21,w17\t// future e+=X[i]\n\tadd\tw22,w22,w25\t\t// e+=F(b,c,d)\n\tror\tw19,w19,#31\n\tldp\tw4,w5,[x0]\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w19\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tldp\tw6,w7,[x0,#8]\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tldr\tw8,[x0,#16]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tadd\tw21,w21,w5\n\tadd\tw22,w22,w6\n\tadd\tw20,w20,w4", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:27", "text": "ldp\tw4,w5,[x0]\n\teor\tw25,w20,w23\n\tror\tw27,w22,#27\n\tadd\tw20,w20,w28\t\t// future e+=K\n\teor\tw25,w25,w24\n\tadd\tw21,w21,w27\t\t// e+=rot(a,5)\n\tror\tw23,w23,#2\n\tadd\tw20,w20,w19\t// future e+=X[i]\n\tadd\tw21,w21,w25\t\t// e+=F(b,c,d)\n\tldp\tw6,w7,[x0,#8]\n\teor\tw25,w24,w22\n\tror\tw27,w21,#27\n\teor\tw25,w25,w23\n\tadd\tw20,w20,w27\t\t// e+=rot(a,5)\n\tror\tw22,w22,#2\n\tldr\tw8,[x0,#16]\n\tadd\tw20,w20,w25\t\t// e+=F(b,c,d)\n\tadd\tw21,w21,w5\n\tadd\tw22,w22,w6\n\tadd\tw20,w20,w4\n\tadd\tw23,w23,w7\n\tadd\tw24,w24,w8\n\tstp\tw20,w21,[x0]\n\tstp\tw22,w23,[x0,#8]\n\tstr\tw24,[x0,#16]\n\tcbnz\tx2,.Loop\n\n\tldp\tx19,x20,[sp,#16]\n\tldp\tx21,x22,[sp,#32]\n\tldp\tx23,x24,[sp,#48]\n\tldp\tx25,x26,[sp,#64]\n\tldp\tx27,x28,[sp,#80]\n\tldr\tx29,[sp],#96\n\tret\n.size\tsha1_block_data_order,.-sha1_block_data_order\n.type\tsha1_block_armv8,%function\n.align\t6\nsha1_block_armv8:\n.Lv8_entry:\n\t// Armv8.3-A PAuth: even though x30 is pushed to stack it is not popped later.\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx4,.Lconst\n\tadd\tx4,x4,#:lo12:.Lconst\n\teor\tv1.16b,v1.16b,v1.16b\n\tld1\t{v0.4s},[x0],#16\n\tld1\t{v1.s}[0],[x0]\n\tsub\tx0,x0,#16\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x4]\n\n.Loop_hw:\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\tsub\tx2,x2,#1\n\trev32\tv4.16b,v4.16b\n\trev32\tv5.16b,v5.16b\n\n\tadd\tv20.4s,v16.4s,v4.4s\n\trev32\tv6.16b,v6.16b\n\torr\tv22.16b,v0.16b,v0.16b\t// offload", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:28", "text": "stp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tadrp\tx4,.Lconst\n\tadd\tx4,x4,#:lo12:.Lconst\n\teor\tv1.16b,v1.16b,v1.16b\n\tld1\t{v0.4s},[x0],#16\n\tld1\t{v1.s}[0],[x0]\n\tsub\tx0,x0,#16\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x4]\n\n.Loop_hw:\n\tld1\t{v4.16b,v5.16b,v6.16b,v7.16b},[x1],#64\n\tsub\tx2,x2,#1\n\trev32\tv4.16b,v4.16b\n\trev32\tv5.16b,v5.16b\n\n\tadd\tv20.4s,v16.4s,v4.4s\n\trev32\tv6.16b,v6.16b\n\torr\tv22.16b,v0.16b,v0.16b\t// offload\n\n\tadd\tv21.4s,v16.4s,v5.4s\n\trev32\tv7.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\n.inst\t0x5e140020\t//sha1c v0.16b,v1.16b,v20.4s\t\t// 0\n\tadd\tv20.4s,v16.4s,v6.4s\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 1\n.inst\t0x5e150060\t//sha1c v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v16.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 2\n.inst\t0x5e140040\t//sha1c v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v16.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 3\n.inst\t0x5e150060\t//sha1c v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 4\n.inst\t0x5e140040\t//sha1c v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 5\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 6\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 7\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v5.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:29", "text": ".inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 4\n.inst\t0x5e140040\t//sha1c v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 5\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 6\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v17.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 7\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v17.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 8\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 9\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v18.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 10\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 11\n.inst\t0x5e152060\t//sha1m v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v18.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 12\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 13\n.inst\t0x5e152060\t//sha1m v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 14\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v19.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 15\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v5.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:30", "text": ".inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 12\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v18.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e0630a4\t//sha1su0 v4.16b,v5.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 13\n.inst\t0x5e152060\t//sha1m v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v7.4s\n.inst\t0x5e2818e4\t//sha1su1 v4.16b,v7.16b\n.inst\t0x5e0730c5\t//sha1su0 v5.16b,v6.16b,v7.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 14\n.inst\t0x5e142040\t//sha1m v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v19.4s,v4.4s\n.inst\t0x5e281885\t//sha1su1 v5.16b,v4.16b\n.inst\t0x5e0430e6\t//sha1su0 v6.16b,v7.16b,v4.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 15\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v5.4s\n.inst\t0x5e2818a6\t//sha1su1 v6.16b,v5.16b\n.inst\t0x5e053087\t//sha1su0 v7.16b,v4.16b,v5.16b\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 16\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\tadd\tv20.4s,v19.4s,v6.4s\n.inst\t0x5e2818c7\t//sha1su1 v7.16b,v6.16b\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 17\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\tadd\tv21.4s,v19.4s,v7.4s\n\n.inst\t0x5e280803\t//sha1h v3.16b,v0.16b\t\t// 18\n.inst\t0x5e141040\t//sha1p v0.16b,v2.16b,v20.4s\n\n.inst\t0x5e280802\t//sha1h v2.16b,v0.16b\t\t// 19\n.inst\t0x5e151060\t//sha1p v0.16b,v3.16b,v21.4s\n\n\tadd\tv1.4s,v1.4s,v2.4s\n\tadd\tv0.4s,v0.4s,v22.4s\n\n\tcbnz\tx2,.Loop_hw\n\n\tst1\t{v0.4s},[x0],#16\n\tst1\t{v1.s}[0],[x0]\n\n\tldr\tx29,[sp],#16\n\tret\n.size\tsha1_block_armv8,.-sha1_block_armv8\n\n.section\t.rodata\n\n.align\t6\n.Lconst:\n.long\t0x5a827999,0x5a827999,0x5a827999,0x5a827999\t//K_00_19\n.long\t0x6ed9eba1,0x6ed9eba1,0x6ed9eba1,0x6ed9eba1\t//K_20_39\n.long\t0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc\t//K_40_59\n.long\t0xca62c1d6,0xca62c1d6,0xca62c1d6,0xca62c1d6\t//K_60_79\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1161, "line_end": 1219}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S:31", "text": "st1\t{v0.4s},[x0],#16\n\tst1\t{v1.s}[0],[x0]\n\n\tldr\tx29,[sp],#16\n\tret\n.size\tsha1_block_armv8,.-sha1_block_armv8\n\n.section\t.rodata\n\n.align\t6\n.Lconst:\n.long\t0x5a827999,0x5a827999,0x5a827999,0x5a827999\t//K_00_19\n.long\t0x6ed9eba1,0x6ed9eba1,0x6ed9eba1,0x6ed9eba1\t//K_20_39\n.long\t0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc\t//K_40_59\n.long\t0xca62c1d6,0xca62c1d6,0xca62c1d6,0xca62c1d6\t//K_60_79\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,65,82,77,118,56,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha1-armv8.S", "line_start": 1201, "line_end": 1219}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:1", "text": "#include \"arm_asm.h\"\n@ Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.\n@\n@ Licensed under the Apache License 2.0 (the \"License\").  You may not use\n@ this file except in compliance with the License.  You can obtain a copy\n@ in the file LICENSE in the source distribution or at\n@ https://www.openssl.org/source/license.html\n\n\n@ ====================================================================\n@ Written by Andy Polyakov <appro@openssl.org> for the OpenSSL\n@ project. The module is, however, dual licensed under OpenSSL and\n@ CRYPTOGAMS licenses depending on where you obtain it. For further\n@ details see http://www.openssl.org/~appro/cryptogams/.\n@\n@ Permission to use under GPL terms is granted.\n@ ====================================================================\n\n@ SHA512 block procedure for ARMv4. September 2007.\n\n@ This code is ~4.5 (four and a half) times faster than code generated\n@ by gcc 3.4 and it spends ~72 clock cycles per byte [on single-issue\n@ Xscale PXA250 core].\n@\n@ July 2010.\n@\n@ Rescheduling for dual-issue pipeline resulted in 6% improvement on\n@ Cortex A8 core and ~40 cycles per processed byte.\n\n@ February 2011.\n@\n@ Profiler-assisted and platform-specific optimization resulted in 7%\n@ improvement on Coxtex A8 core and ~38 cycles per byte.\n\n@ March 2011.\n@\n@ Add NEON implementation. On Cortex A8 it was measured to process\n@ one byte in 23.3 cycles or ~60% faster than integer-only code.\n\n@ August 2012.\n@\n@ Improve NEON performance by 12% on Snapdragon S4. In absolute\n@ terms it's 22.6 cycles per byte, which is disappointing result.\n@ Technical writers asserted that 3-way S4 pipeline can sustain\n@ multiple NEON instructions per cycle, but dual NEON issue could\n@ not be observed, see http://www.openssl.org/~appro/Snapdragon-S4.html\n@ for further details. On side note Cortex-A15 processes one byte in\n@ 16 cycles.\n\n@ Byte order [in]dependence. =========================================\n@\n@ Originally caller was expected to maintain specific *dword* order in\n@ h[0-7], namely with most significant dword at *lower* address, which\n@ was reflected in below two parameters as 0 and 4. Now caller is\n@ expected to maintain native byte order for whole 64-bit values.\n#ifndef __KERNEL__\n# include \"arm_arch.h\"\n# define VFP_ABI_PUSH\tvstmdb\tsp!,{d8-d15}\n# define VFP_ABI_POP\tvldmia\tsp!,{d8-d15}\n#else", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:2", "text": "@\n@ Improve NEON performance by 12% on Snapdragon S4. In absolute\n@ terms it's 22.6 cycles per byte, which is disappointing result.\n@ Technical writers asserted that 3-way S4 pipeline can sustain\n@ multiple NEON instructions per cycle, but dual NEON issue could\n@ not be observed, see http://www.openssl.org/~appro/Snapdragon-S4.html\n@ for further details. On side note Cortex-A15 processes one byte in\n@ 16 cycles.\n\n@ Byte order [in]dependence. =========================================\n@\n@ Originally caller was expected to maintain specific *dword* order in\n@ h[0-7], namely with most significant dword at *lower* address, which\n@ was reflected in below two parameters as 0 and 4. Now caller is\n@ expected to maintain native byte order for whole 64-bit values.\n#ifndef __KERNEL__\n# include \"arm_arch.h\"\n# define VFP_ABI_PUSH\tvstmdb\tsp!,{d8-d15}\n# define VFP_ABI_POP\tvldmia\tsp!,{d8-d15}\n#else\n# define __ARM_ARCH__ __LINUX_ARM_ARCH__\n# define __ARM_MAX_ARCH__ 7\n# define VFP_ABI_PUSH\n# define VFP_ABI_POP\n#endif\n\n#ifdef __ARMEL__\n# define LO 0\n# define HI 4\n# define WORD64(hi0,lo0,hi1,lo1)\t.word\tlo0,hi0, lo1,hi1\n#else\n# define HI 0\n# define LO 4\n# define WORD64(hi0,lo0,hi1,lo1)\t.word\thi0,lo0, hi1,lo1\n#endif\n\n#if defined(__thumb2__)\n.syntax\tunified\n.thumb\n# define adrl adr\n#else\n.code\t32\n#endif\n\n.text\n\n.type\tK512,%object\n.align\t5\nK512:\n\tWORD64(0x428a2f98,0xd728ae22,\t0x71374491,0x23ef65cd)\n\tWORD64(0xb5c0fbcf,0xec4d3b2f,\t0xe9b5dba5,0x8189dbbc)\n\tWORD64(0x3956c25b,0xf348b538,\t0x59f111f1,0xb605d019)\n\tWORD64(0x923f82a4,0xaf194f9b,\t0xab1c5ed5,0xda6d8118)\n\tWORD64(0xd807aa98,0xa3030242,\t0x12835b01,0x45706fbe)\n\tWORD64(0x243185be,0x4ee4b28c,\t0x550c7dc3,0xd5ffb4e2)\n\tWORD64(0x72be5d74,0xf27b896f,\t0x80deb1fe,0x3b1696b1)\n\tWORD64(0x9bdc06a7,0x25c71235,\t0xc19bf174,0xcf692694)\n\tWORD64(0xe49b69c1,0x9ef14ad2,\t0xefbe4786,0x384f25e3)\n\tWORD64(0x0fc19dc6,0x8b8cd5b5,\t0x240ca1cc,0x77ac9c65)\n\tWORD64(0x2de92c6f,0x592b0275,\t0x4a7484aa,0x6ea6e483)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:3", "text": "#else\n.code\t32\n#endif\n\n.text\n\n.type\tK512,%object\n.align\t5\nK512:\n\tWORD64(0x428a2f98,0xd728ae22,\t0x71374491,0x23ef65cd)\n\tWORD64(0xb5c0fbcf,0xec4d3b2f,\t0xe9b5dba5,0x8189dbbc)\n\tWORD64(0x3956c25b,0xf348b538,\t0x59f111f1,0xb605d019)\n\tWORD64(0x923f82a4,0xaf194f9b,\t0xab1c5ed5,0xda6d8118)\n\tWORD64(0xd807aa98,0xa3030242,\t0x12835b01,0x45706fbe)\n\tWORD64(0x243185be,0x4ee4b28c,\t0x550c7dc3,0xd5ffb4e2)\n\tWORD64(0x72be5d74,0xf27b896f,\t0x80deb1fe,0x3b1696b1)\n\tWORD64(0x9bdc06a7,0x25c71235,\t0xc19bf174,0xcf692694)\n\tWORD64(0xe49b69c1,0x9ef14ad2,\t0xefbe4786,0x384f25e3)\n\tWORD64(0x0fc19dc6,0x8b8cd5b5,\t0x240ca1cc,0x77ac9c65)\n\tWORD64(0x2de92c6f,0x592b0275,\t0x4a7484aa,0x6ea6e483)\n\tWORD64(0x5cb0a9dc,0xbd41fbd4,\t0x76f988da,0x831153b5)\n\tWORD64(0x983e5152,0xee66dfab,\t0xa831c66d,0x2db43210)\n\tWORD64(0xb00327c8,0x98fb213f,\t0xbf597fc7,0xbeef0ee4)\n\tWORD64(0xc6e00bf3,0x3da88fc2,\t0xd5a79147,0x930aa725)\n\tWORD64(0x06ca6351,0xe003826f,\t0x14292967,0x0a0e6e70)\n\tWORD64(0x27b70a85,0x46d22ffc,\t0x2e1b2138,0x5c26c926)\n\tWORD64(0x4d2c6dfc,0x5ac42aed,\t0x53380d13,0x9d95b3df)\n\tWORD64(0x650a7354,0x8baf63de,\t0x766a0abb,0x3c77b2a8)\n\tWORD64(0x81c2c92e,0x47edaee6,\t0x92722c85,0x1482353b)\n\tWORD64(0xa2bfe8a1,0x4cf10364,\t0xa81a664b,0xbc423001)\n\tWORD64(0xc24b8b70,0xd0f89791,\t0xc76c51a3,0x0654be30)\n\tWORD64(0xd192e819,0xd6ef5218,\t0xd6990624,0x5565a910)\n\tWORD64(0xf40e3585,0x5771202a,\t0x106aa070,0x32bbd1b8)\n\tWORD64(0x19a4c116,0xb8d2d0c8,\t0x1e376c08,0x5141ab53)\n\tWORD64(0x2748774c,0xdf8eeb99,\t0x34b0bcb5,0xe19b48a8)\n\tWORD64(0x391c0cb3,0xc5c95a63,\t0x4ed8aa4a,0xe3418acb)\n\tWORD64(0x5b9cca4f,0x7763e373,\t0x682e6ff3,0xd6b2b8a3)\n\tWORD64(0x748f82ee,0x5defb2fc,\t0x78a5636f,0x43172f60)\n\tWORD64(0x84c87814,0xa1f0ab72,\t0x8cc70208,0x1a6439ec)\n\tWORD64(0x90befffa,0x23631e28,\t0xa4506ceb,0xde82bde9)\n\tWORD64(0xbef9a3f7,0xb2c67915,\t0xc67178f2,0xe372532b)\n\tWORD64(0xca273ece,0xea26619c,\t0xd186b8c7,0x21c0c207)\n\tWORD64(0xeada7dd6,0xcde0eb1e,\t0xf57d4f7f,0xee6ed178)\n\tWORD64(0x06f067aa,0x72176fba,\t0x0a637dc5,0xa2c898a6)\n\tWORD64(0x113f9804,0xbef90dae,\t0x1b710b35,0x131c471b)\n\tWORD64(0x28db77f5,0x23047d84,\t0x32caab7b,0x40c72493)\n\tWORD64(0x3c9ebe0a,0x15c9bebc,\t0x431d67c4,0x9c100d4c)\n\tWORD64(0x4cc5d4be,0xcb3e42b6,\t0x597f299c,0xfc657e2a)\n\tWORD64(0x5fcb6fab,0x3ad6faec,\t0x6c44198c,0x4a475817)\n.size\tK512,.-K512\n#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.Lsha512_block_data_order\n# endif\n.skip\t32-4\n#else\n.skip\t32", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:4", "text": "WORD64(0xbef9a3f7,0xb2c67915,\t0xc67178f2,0xe372532b)\n\tWORD64(0xca273ece,0xea26619c,\t0xd186b8c7,0x21c0c207)\n\tWORD64(0xeada7dd6,0xcde0eb1e,\t0xf57d4f7f,0xee6ed178)\n\tWORD64(0x06f067aa,0x72176fba,\t0x0a637dc5,0xa2c898a6)\n\tWORD64(0x113f9804,0xbef90dae,\t0x1b710b35,0x131c471b)\n\tWORD64(0x28db77f5,0x23047d84,\t0x32caab7b,0x40c72493)\n\tWORD64(0x3c9ebe0a,0x15c9bebc,\t0x431d67c4,0x9c100d4c)\n\tWORD64(0x4cc5d4be,0xcb3e42b6,\t0x597f299c,0xfc657e2a)\n\tWORD64(0x5fcb6fab,0x3ad6faec,\t0x6c44198c,0x4a475817)\n.size\tK512,.-K512\n#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)\n.LOPENSSL_armcap:\n# ifdef\t_WIN32\n.word\tOPENSSL_armcap_P\n# else\n.word\tOPENSSL_armcap_P-.Lsha512_block_data_order\n# endif\n.skip\t32-4\n#else\n.skip\t32\n#endif\n\n.globl\tsha512_block_data_order\n.type\tsha512_block_data_order,%function\nsha512_block_data_order:\n.Lsha512_block_data_order:\n#if __ARM_ARCH__<7 && !defined(__thumb2__)\n\tsub\tr3,pc,#8\t\t@ sha512_block_data_order\n#else\n\tadr\tr3,.Lsha512_block_data_order\n#endif\n#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)\n\tldr\tr12,.LOPENSSL_armcap\n# if !defined(_WIN32)\n\tldr\tr12,[r3,r12]\t\t@ OPENSSL_armcap_P\n# endif\n# if defined(__APPLE__) || defined(_WIN32)\n\tldr\tr12,[r12]\n# endif\n\ttst\tr12,#ARMV7_NEON\n\tbne\t.LNEON\n#endif\n\tadd\tr2,r1,r2,lsl#7\t@ len to point at the end of inp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\tsub\tr14,r3,#672\t\t@ K512\n\tsub\tsp,sp,#9*8\n\n\tldr\tr7,[r0,#32+LO]\n\tldr\tr8,[r0,#32+HI]\n\tldr\tr9, [r0,#48+LO]\n\tldr\tr10, [r0,#48+HI]\n\tldr\tr11, [r0,#56+LO]\n\tldr\tr12, [r0,#56+HI]\n.Loop:\n\tstr\tr9, [sp,#48+0]\n\tstr\tr10, [sp,#48+4]\n\tstr\tr11, [sp,#56+0]\n\tstr\tr12, [sp,#56+4]\n\tldr\tr5,[r0,#0+LO]\n\tldr\tr6,[r0,#0+HI]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:5", "text": "bne\t.LNEON\n#endif\n\tadd\tr2,r1,r2,lsl#7\t@ len to point at the end of inp\n\tstmdb\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\tsub\tr14,r3,#672\t\t@ K512\n\tsub\tsp,sp,#9*8\n\n\tldr\tr7,[r0,#32+LO]\n\tldr\tr8,[r0,#32+HI]\n\tldr\tr9, [r0,#48+LO]\n\tldr\tr10, [r0,#48+HI]\n\tldr\tr11, [r0,#56+LO]\n\tldr\tr12, [r0,#56+HI]\n.Loop:\n\tstr\tr9, [sp,#48+0]\n\tstr\tr10, [sp,#48+4]\n\tstr\tr11, [sp,#56+0]\n\tstr\tr12, [sp,#56+4]\n\tldr\tr5,[r0,#0+LO]\n\tldr\tr6,[r0,#0+HI]\n\tldr\tr3,[r0,#8+LO]\n\tldr\tr4,[r0,#8+HI]\n\tldr\tr9, [r0,#16+LO]\n\tldr\tr10, [r0,#16+HI]\n\tldr\tr11, [r0,#24+LO]\n\tldr\tr12, [r0,#24+HI]\n\tstr\tr3,[sp,#8+0]\n\tstr\tr4,[sp,#8+4]\n\tstr\tr9, [sp,#16+0]\n\tstr\tr10, [sp,#16+4]\n\tstr\tr11, [sp,#24+0]\n\tstr\tr12, [sp,#24+4]\n\tldr\tr3,[r0,#40+LO]\n\tldr\tr4,[r0,#40+HI]\n\tstr\tr3,[sp,#40+0]\n\tstr\tr4,[sp,#40+4]\n\n.L00_15:\n#if __ARM_ARCH__<7\n\tldrb\tr3,[r1,#7]\n\tldrb\tr9, [r1,#6]\n\tldrb\tr10, [r1,#5]\n\tldrb\tr11, [r1,#4]\n\tldrb\tr4,[r1,#3]\n\tldrb\tr12, [r1,#2]\n\torr\tr3,r3,r9,lsl#8\n\tldrb\tr9, [r1,#1]\n\torr\tr3,r3,r10,lsl#16\n\tldrb\tr10, [r1],#8\n\torr\tr3,r3,r11,lsl#24\n\torr\tr4,r4,r12,lsl#8\n\torr\tr4,r4,r9,lsl#16\n\torr\tr4,r4,r10,lsl#24\n#else\n\tldr\tr3,[r1,#4]\n\tldr\tr4,[r1],#8\n#ifdef __ARMEL__\n\trev\tr3,r3\n\trev\tr4,r4\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:6", "text": "ldrb\tr9, [r1,#6]\n\tldrb\tr10, [r1,#5]\n\tldrb\tr11, [r1,#4]\n\tldrb\tr4,[r1,#3]\n\tldrb\tr12, [r1,#2]\n\torr\tr3,r3,r9,lsl#8\n\tldrb\tr9, [r1,#1]\n\torr\tr3,r3,r10,lsl#16\n\tldrb\tr10, [r1],#8\n\torr\tr3,r3,r11,lsl#24\n\torr\tr4,r4,r12,lsl#8\n\torr\tr4,r4,r9,lsl#16\n\torr\tr4,r4,r10,lsl#24\n#else\n\tldr\tr3,[r1,#4]\n\tldr\tr4,[r1],#8\n#ifdef __ARMEL__\n\trev\tr3,r3\n\trev\tr4,r4\n#endif\n#endif\n\t@ Sigma1(x)\t(ROTR((x),14) ^ ROTR((x),18)  ^ ROTR((x),41))\n\t@ LO\t\tlo>>14^hi<<18 ^ lo>>18^hi<<14 ^ hi>>9^lo<<23\n\t@ HI\t\thi>>14^lo<<18 ^ hi>>18^lo<<14 ^ lo>>9^hi<<23\n\tmov\tr9,r7,lsr#14\n\tstr\tr3,[sp,#64+0]\n\tmov\tr10,r8,lsr#14\n\tstr\tr4,[sp,#64+4]\n\teor\tr9,r9,r8,lsl#18\n\tldr\tr11,[sp,#56+0]\t@ h.lo\n\teor\tr10,r10,r7,lsl#18\n\tldr\tr12,[sp,#56+4]\t@ h.hi\n\teor\tr9,r9,r7,lsr#18\n\teor\tr10,r10,r8,lsr#18\n\teor\tr9,r9,r8,lsl#14\n\teor\tr10,r10,r7,lsl#14\n\teor\tr9,r9,r8,lsr#9\n\teor\tr10,r10,r7,lsr#9\n\teor\tr9,r9,r7,lsl#23\n\teor\tr10,r10,r8,lsl#23\t@ Sigma1(e)\n\tadds\tr3,r3,r9\n\tldr\tr9,[sp,#40+0]\t@ f.lo\n\tadc\tr4,r4,r10\t\t@ T += Sigma1(e)\n\tldr\tr10,[sp,#40+4]\t@ f.hi\n\tadds\tr3,r3,r11\n\tldr\tr11,[sp,#48+0]\t@ g.lo\n\tadc\tr4,r4,r12\t\t@ T += h\n\tldr\tr12,[sp,#48+4]\t@ g.hi\n\n\teor\tr9,r9,r11\n\tstr\tr7,[sp,#32+0]\n\teor\tr10,r10,r12\n\tstr\tr8,[sp,#32+4]\n\tand\tr9,r9,r7\n\tstr\tr5,[sp,#0+0]\n\tand\tr10,r10,r8\n\tstr\tr6,[sp,#0+4]\n\teor\tr9,r9,r11\n\tldr\tr11,[r14,#LO]\t@ K[i].lo\n\teor\tr10,r10,r12\t\t@ Ch(e,f,g)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:7", "text": "adds\tr3,r3,r9\n\tldr\tr9,[sp,#40+0]\t@ f.lo\n\tadc\tr4,r4,r10\t\t@ T += Sigma1(e)\n\tldr\tr10,[sp,#40+4]\t@ f.hi\n\tadds\tr3,r3,r11\n\tldr\tr11,[sp,#48+0]\t@ g.lo\n\tadc\tr4,r4,r12\t\t@ T += h\n\tldr\tr12,[sp,#48+4]\t@ g.hi\n\n\teor\tr9,r9,r11\n\tstr\tr7,[sp,#32+0]\n\teor\tr10,r10,r12\n\tstr\tr8,[sp,#32+4]\n\tand\tr9,r9,r7\n\tstr\tr5,[sp,#0+0]\n\tand\tr10,r10,r8\n\tstr\tr6,[sp,#0+4]\n\teor\tr9,r9,r11\n\tldr\tr11,[r14,#LO]\t@ K[i].lo\n\teor\tr10,r10,r12\t\t@ Ch(e,f,g)\n\tldr\tr12,[r14,#HI]\t@ K[i].hi\n\n\tadds\tr3,r3,r9\n\tldr\tr7,[sp,#24+0]\t@ d.lo\n\tadc\tr4,r4,r10\t\t@ T += Ch(e,f,g)\n\tldr\tr8,[sp,#24+4]\t@ d.hi\n\tadds\tr3,r3,r11\n\tand\tr9,r11,#0xff\n\tadc\tr4,r4,r12\t\t@ T += K[i]\n\tadds\tr7,r7,r3\n\tldr\tr11,[sp,#8+0]\t@ b.lo\n\tadc\tr8,r8,r4\t\t@ d += T\n\tteq\tr9,#148\n\n\tldr\tr12,[sp,#16+0]\t@ c.lo\n#ifdef\t__thumb2__\n\tit\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\torreq\tr14,r14,#1\n\t@ Sigma0(x)\t(ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39))\n\t@ LO\t\tlo>>28^hi<<4  ^ hi>>2^lo<<30 ^ hi>>7^lo<<25\n\t@ HI\t\thi>>28^lo<<4  ^ lo>>2^hi<<30 ^ lo>>7^hi<<25\n\tmov\tr9,r5,lsr#28\n\tmov\tr10,r6,lsr#28\n\teor\tr9,r9,r6,lsl#4\n\teor\tr10,r10,r5,lsl#4\n\teor\tr9,r9,r6,lsr#2\n\teor\tr10,r10,r5,lsr#2\n\teor\tr9,r9,r5,lsl#30\n\teor\tr10,r10,r6,lsl#30\n\teor\tr9,r9,r6,lsr#7\n\teor\tr10,r10,r5,lsr#7\n\teor\tr9,r9,r5,lsl#25\n\teor\tr10,r10,r6,lsl#25\t@ Sigma0(a)\n\tadds\tr3,r3,r9\n\tand\tr9,r5,r11\n\tadc\tr4,r4,r10\t\t@ T += Sigma0(a)\n\n\tldr\tr10,[sp,#8+4]\t@ b.hi\n\torr\tr5,r5,r11", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:8", "text": "@ LO\t\tlo>>28^hi<<4  ^ hi>>2^lo<<30 ^ hi>>7^lo<<25\n\t@ HI\t\thi>>28^lo<<4  ^ lo>>2^hi<<30 ^ lo>>7^hi<<25\n\tmov\tr9,r5,lsr#28\n\tmov\tr10,r6,lsr#28\n\teor\tr9,r9,r6,lsl#4\n\teor\tr10,r10,r5,lsl#4\n\teor\tr9,r9,r6,lsr#2\n\teor\tr10,r10,r5,lsr#2\n\teor\tr9,r9,r5,lsl#30\n\teor\tr10,r10,r6,lsl#30\n\teor\tr9,r9,r6,lsr#7\n\teor\tr10,r10,r5,lsr#7\n\teor\tr9,r9,r5,lsl#25\n\teor\tr10,r10,r6,lsl#25\t@ Sigma0(a)\n\tadds\tr3,r3,r9\n\tand\tr9,r5,r11\n\tadc\tr4,r4,r10\t\t@ T += Sigma0(a)\n\n\tldr\tr10,[sp,#8+4]\t@ b.hi\n\torr\tr5,r5,r11\n\tldr\tr11,[sp,#16+4]\t@ c.hi\n\tand\tr5,r5,r12\n\tand\tr12,r6,r10\n\torr\tr6,r6,r10\n\torr\tr5,r5,r9\t\t@ Maj(a,b,c).lo\n\tand\tr6,r6,r11\n\tadds\tr5,r5,r3\n\torr\tr6,r6,r12\t\t@ Maj(a,b,c).hi\n\tsub\tsp,sp,#8\n\tadc\tr6,r6,r4\t\t@ h += T\n\ttst\tr14,#1\n\tadd\tr14,r14,#8\n\ttst\tr14,#1\n\tbeq\t.L00_15\n\tldr\tr9,[sp,#184+0]\n\tldr\tr10,[sp,#184+4]\n\tbic\tr14,r14,#1\n.L16_79:\n\t@ sigma0(x)\t(ROTR((x),1)  ^ ROTR((x),8)  ^ ((x)>>7))\n\t@ LO\t\tlo>>1^hi<<31  ^ lo>>8^hi<<24 ^ lo>>7^hi<<25\n\t@ HI\t\thi>>1^lo<<31  ^ hi>>8^lo<<24 ^ hi>>7\n\tmov\tr3,r9,lsr#1\n\tldr\tr11,[sp,#80+0]\n\tmov\tr4,r10,lsr#1\n\tldr\tr12,[sp,#80+4]\n\teor\tr3,r3,r10,lsl#31\n\teor\tr4,r4,r9,lsl#31\n\teor\tr3,r3,r9,lsr#8\n\teor\tr4,r4,r10,lsr#8\n\teor\tr3,r3,r10,lsl#24\n\teor\tr4,r4,r9,lsl#24\n\teor\tr3,r3,r9,lsr#7\n\teor\tr4,r4,r10,lsr#7\n\teor\tr3,r3,r10,lsl#25\n\n\t@ sigma1(x)\t(ROTR((x),19) ^ ROTR((x),61) ^ ((x)>>6))\n\t@ LO\t\tlo>>19^hi<<13 ^ hi>>29^lo<<3 ^ lo>>6^hi<<26\n\t@ HI\t\thi>>19^lo<<13 ^ lo>>29^hi<<3 ^ hi>>6\n\tmov\tr9,r11,lsr#19\n\tmov\tr10,r12,lsr#19", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:9", "text": "@ HI\t\thi>>1^lo<<31  ^ hi>>8^lo<<24 ^ hi>>7\n\tmov\tr3,r9,lsr#1\n\tldr\tr11,[sp,#80+0]\n\tmov\tr4,r10,lsr#1\n\tldr\tr12,[sp,#80+4]\n\teor\tr3,r3,r10,lsl#31\n\teor\tr4,r4,r9,lsl#31\n\teor\tr3,r3,r9,lsr#8\n\teor\tr4,r4,r10,lsr#8\n\teor\tr3,r3,r10,lsl#24\n\teor\tr4,r4,r9,lsl#24\n\teor\tr3,r3,r9,lsr#7\n\teor\tr4,r4,r10,lsr#7\n\teor\tr3,r3,r10,lsl#25\n\n\t@ sigma1(x)\t(ROTR((x),19) ^ ROTR((x),61) ^ ((x)>>6))\n\t@ LO\t\tlo>>19^hi<<13 ^ hi>>29^lo<<3 ^ lo>>6^hi<<26\n\t@ HI\t\thi>>19^lo<<13 ^ lo>>29^hi<<3 ^ hi>>6\n\tmov\tr9,r11,lsr#19\n\tmov\tr10,r12,lsr#19\n\teor\tr9,r9,r12,lsl#13\n\teor\tr10,r10,r11,lsl#13\n\teor\tr9,r9,r12,lsr#29\n\teor\tr10,r10,r11,lsr#29\n\teor\tr9,r9,r11,lsl#3\n\teor\tr10,r10,r12,lsl#3\n\teor\tr9,r9,r11,lsr#6\n\teor\tr10,r10,r12,lsr#6\n\tldr\tr11,[sp,#120+0]\n\teor\tr9,r9,r12,lsl#26\n\n\tldr\tr12,[sp,#120+4]\n\tadds\tr3,r3,r9\n\tldr\tr9,[sp,#192+0]\n\tadc\tr4,r4,r10\n\n\tldr\tr10,[sp,#192+4]\n\tadds\tr3,r3,r11\n\tadc\tr4,r4,r12\n\tadds\tr3,r3,r9\n\tadc\tr4,r4,r10\n\t@ Sigma1(x)\t(ROTR((x),14) ^ ROTR((x),18)  ^ ROTR((x),41))\n\t@ LO\t\tlo>>14^hi<<18 ^ lo>>18^hi<<14 ^ hi>>9^lo<<23\n\t@ HI\t\thi>>14^lo<<18 ^ hi>>18^lo<<14 ^ lo>>9^hi<<23\n\tmov\tr9,r7,lsr#14\n\tstr\tr3,[sp,#64+0]\n\tmov\tr10,r8,lsr#14\n\tstr\tr4,[sp,#64+4]\n\teor\tr9,r9,r8,lsl#18\n\tldr\tr11,[sp,#56+0]\t@ h.lo\n\teor\tr10,r10,r7,lsl#18\n\tldr\tr12,[sp,#56+4]\t@ h.hi\n\teor\tr9,r9,r7,lsr#18\n\teor\tr10,r10,r8,lsr#18\n\teor\tr9,r9,r8,lsl#14\n\teor\tr10,r10,r7,lsl#14\n\teor\tr9,r9,r8,lsr#9\n\teor\tr10,r10,r7,lsr#9\n\teor\tr9,r9,r7,lsl#23\n\teor\tr10,r10,r8,lsl#23\t@ Sigma1(e)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:10", "text": "adc\tr4,r4,r10\n\t@ Sigma1(x)\t(ROTR((x),14) ^ ROTR((x),18)  ^ ROTR((x),41))\n\t@ LO\t\tlo>>14^hi<<18 ^ lo>>18^hi<<14 ^ hi>>9^lo<<23\n\t@ HI\t\thi>>14^lo<<18 ^ hi>>18^lo<<14 ^ lo>>9^hi<<23\n\tmov\tr9,r7,lsr#14\n\tstr\tr3,[sp,#64+0]\n\tmov\tr10,r8,lsr#14\n\tstr\tr4,[sp,#64+4]\n\teor\tr9,r9,r8,lsl#18\n\tldr\tr11,[sp,#56+0]\t@ h.lo\n\teor\tr10,r10,r7,lsl#18\n\tldr\tr12,[sp,#56+4]\t@ h.hi\n\teor\tr9,r9,r7,lsr#18\n\teor\tr10,r10,r8,lsr#18\n\teor\tr9,r9,r8,lsl#14\n\teor\tr10,r10,r7,lsl#14\n\teor\tr9,r9,r8,lsr#9\n\teor\tr10,r10,r7,lsr#9\n\teor\tr9,r9,r7,lsl#23\n\teor\tr10,r10,r8,lsl#23\t@ Sigma1(e)\n\tadds\tr3,r3,r9\n\tldr\tr9,[sp,#40+0]\t@ f.lo\n\tadc\tr4,r4,r10\t\t@ T += Sigma1(e)\n\tldr\tr10,[sp,#40+4]\t@ f.hi\n\tadds\tr3,r3,r11\n\tldr\tr11,[sp,#48+0]\t@ g.lo\n\tadc\tr4,r4,r12\t\t@ T += h\n\tldr\tr12,[sp,#48+4]\t@ g.hi\n\n\teor\tr9,r9,r11\n\tstr\tr7,[sp,#32+0]\n\teor\tr10,r10,r12\n\tstr\tr8,[sp,#32+4]\n\tand\tr9,r9,r7\n\tstr\tr5,[sp,#0+0]\n\tand\tr10,r10,r8\n\tstr\tr6,[sp,#0+4]\n\teor\tr9,r9,r11\n\tldr\tr11,[r14,#LO]\t@ K[i].lo\n\teor\tr10,r10,r12\t\t@ Ch(e,f,g)\n\tldr\tr12,[r14,#HI]\t@ K[i].hi\n\n\tadds\tr3,r3,r9\n\tldr\tr7,[sp,#24+0]\t@ d.lo\n\tadc\tr4,r4,r10\t\t@ T += Ch(e,f,g)\n\tldr\tr8,[sp,#24+4]\t@ d.hi\n\tadds\tr3,r3,r11\n\tand\tr9,r11,#0xff\n\tadc\tr4,r4,r12\t\t@ T += K[i]\n\tadds\tr7,r7,r3\n\tldr\tr11,[sp,#8+0]\t@ b.lo\n\tadc\tr8,r8,r4\t\t@ d += T\n\tteq\tr9,#23\n\n\tldr\tr12,[sp,#16+0]\t@ c.lo\n#ifdef\t__thumb2__\n\tit\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\torreq\tr14,r14,#1\n\t@ Sigma0(x)\t(ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39))", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:11", "text": "ldr\tr12,[r14,#HI]\t@ K[i].hi\n\n\tadds\tr3,r3,r9\n\tldr\tr7,[sp,#24+0]\t@ d.lo\n\tadc\tr4,r4,r10\t\t@ T += Ch(e,f,g)\n\tldr\tr8,[sp,#24+4]\t@ d.hi\n\tadds\tr3,r3,r11\n\tand\tr9,r11,#0xff\n\tadc\tr4,r4,r12\t\t@ T += K[i]\n\tadds\tr7,r7,r3\n\tldr\tr11,[sp,#8+0]\t@ b.lo\n\tadc\tr8,r8,r4\t\t@ d += T\n\tteq\tr9,#23\n\n\tldr\tr12,[sp,#16+0]\t@ c.lo\n#ifdef\t__thumb2__\n\tit\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\torreq\tr14,r14,#1\n\t@ Sigma0(x)\t(ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39))\n\t@ LO\t\tlo>>28^hi<<4  ^ hi>>2^lo<<30 ^ hi>>7^lo<<25\n\t@ HI\t\thi>>28^lo<<4  ^ lo>>2^hi<<30 ^ lo>>7^hi<<25\n\tmov\tr9,r5,lsr#28\n\tmov\tr10,r6,lsr#28\n\teor\tr9,r9,r6,lsl#4\n\teor\tr10,r10,r5,lsl#4\n\teor\tr9,r9,r6,lsr#2\n\teor\tr10,r10,r5,lsr#2\n\teor\tr9,r9,r5,lsl#30\n\teor\tr10,r10,r6,lsl#30\n\teor\tr9,r9,r6,lsr#7\n\teor\tr10,r10,r5,lsr#7\n\teor\tr9,r9,r5,lsl#25\n\teor\tr10,r10,r6,lsl#25\t@ Sigma0(a)\n\tadds\tr3,r3,r9\n\tand\tr9,r5,r11\n\tadc\tr4,r4,r10\t\t@ T += Sigma0(a)\n\n\tldr\tr10,[sp,#8+4]\t@ b.hi\n\torr\tr5,r5,r11\n\tldr\tr11,[sp,#16+4]\t@ c.hi\n\tand\tr5,r5,r12\n\tand\tr12,r6,r10\n\torr\tr6,r6,r10\n\torr\tr5,r5,r9\t\t@ Maj(a,b,c).lo\n\tand\tr6,r6,r11\n\tadds\tr5,r5,r3\n\torr\tr6,r6,r12\t\t@ Maj(a,b,c).hi\n\tsub\tsp,sp,#8\n\tadc\tr6,r6,r4\t\t@ h += T\n\ttst\tr14,#1\n\tadd\tr14,r14,#8\n#ifdef\t__thumb2__\n\tittt\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tldreq\tr9,[sp,#184+0]\n\tldreq\tr10,[sp,#184+4]\n\tbeq\t.L16_79\n\tbic\tr14,r14,#1", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:12", "text": "ldr\tr11,[sp,#16+4]\t@ c.hi\n\tand\tr5,r5,r12\n\tand\tr12,r6,r10\n\torr\tr6,r6,r10\n\torr\tr5,r5,r9\t\t@ Maj(a,b,c).lo\n\tand\tr6,r6,r11\n\tadds\tr5,r5,r3\n\torr\tr6,r6,r12\t\t@ Maj(a,b,c).hi\n\tsub\tsp,sp,#8\n\tadc\tr6,r6,r4\t\t@ h += T\n\ttst\tr14,#1\n\tadd\tr14,r14,#8\n#ifdef\t__thumb2__\n\tittt\teq\t\t\t@ Thumb2 thing, sanity check in ARM\n#endif\n\tldreq\tr9,[sp,#184+0]\n\tldreq\tr10,[sp,#184+4]\n\tbeq\t.L16_79\n\tbic\tr14,r14,#1\n\n\tldr\tr3,[sp,#8+0]\n\tldr\tr4,[sp,#8+4]\n\tldr\tr9, [r0,#0+LO]\n\tldr\tr10, [r0,#0+HI]\n\tldr\tr11, [r0,#8+LO]\n\tldr\tr12, [r0,#8+HI]\n\tadds\tr9,r5,r9\n\tstr\tr9, [r0,#0+LO]\n\tadc\tr10,r6,r10\n\tstr\tr10, [r0,#0+HI]\n\tadds\tr11,r3,r11\n\tstr\tr11, [r0,#8+LO]\n\tadc\tr12,r4,r12\n\tstr\tr12, [r0,#8+HI]\n\n\tldr\tr5,[sp,#16+0]\n\tldr\tr6,[sp,#16+4]\n\tldr\tr3,[sp,#24+0]\n\tldr\tr4,[sp,#24+4]\n\tldr\tr9, [r0,#16+LO]\n\tldr\tr10, [r0,#16+HI]\n\tldr\tr11, [r0,#24+LO]\n\tldr\tr12, [r0,#24+HI]\n\tadds\tr9,r5,r9\n\tstr\tr9, [r0,#16+LO]\n\tadc\tr10,r6,r10\n\tstr\tr10, [r0,#16+HI]\n\tadds\tr11,r3,r11\n\tstr\tr11, [r0,#24+LO]\n\tadc\tr12,r4,r12\n\tstr\tr12, [r0,#24+HI]\n\n\tldr\tr3,[sp,#40+0]\n\tldr\tr4,[sp,#40+4]\n\tldr\tr9, [r0,#32+LO]\n\tldr\tr10, [r0,#32+HI]\n\tldr\tr11, [r0,#40+LO]\n\tldr\tr12, [r0,#40+HI]\n\tadds\tr7,r7,r9\n\tstr\tr7,[r0,#32+LO]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:13", "text": "ldr\tr10, [r0,#16+HI]\n\tldr\tr11, [r0,#24+LO]\n\tldr\tr12, [r0,#24+HI]\n\tadds\tr9,r5,r9\n\tstr\tr9, [r0,#16+LO]\n\tadc\tr10,r6,r10\n\tstr\tr10, [r0,#16+HI]\n\tadds\tr11,r3,r11\n\tstr\tr11, [r0,#24+LO]\n\tadc\tr12,r4,r12\n\tstr\tr12, [r0,#24+HI]\n\n\tldr\tr3,[sp,#40+0]\n\tldr\tr4,[sp,#40+4]\n\tldr\tr9, [r0,#32+LO]\n\tldr\tr10, [r0,#32+HI]\n\tldr\tr11, [r0,#40+LO]\n\tldr\tr12, [r0,#40+HI]\n\tadds\tr7,r7,r9\n\tstr\tr7,[r0,#32+LO]\n\tadc\tr8,r8,r10\n\tstr\tr8,[r0,#32+HI]\n\tadds\tr11,r3,r11\n\tstr\tr11, [r0,#40+LO]\n\tadc\tr12,r4,r12\n\tstr\tr12, [r0,#40+HI]\n\n\tldr\tr5,[sp,#48+0]\n\tldr\tr6,[sp,#48+4]\n\tldr\tr3,[sp,#56+0]\n\tldr\tr4,[sp,#56+4]\n\tldr\tr9, [r0,#48+LO]\n\tldr\tr10, [r0,#48+HI]\n\tldr\tr11, [r0,#56+LO]\n\tldr\tr12, [r0,#56+HI]\n\tadds\tr9,r5,r9\n\tstr\tr9, [r0,#48+LO]\n\tadc\tr10,r6,r10\n\tstr\tr10, [r0,#48+HI]\n\tadds\tr11,r3,r11\n\tstr\tr11, [r0,#56+LO]\n\tadc\tr12,r4,r12\n\tstr\tr12, [r0,#56+HI]\n\n\tadd\tsp,sp,#640\n\tsub\tr14,r14,#640\n\n\tteq\tr1,r2\n\tbne\t.Loop\n\n\tadd\tsp,sp,#8*9\t\t@ destroy frame\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tsha512_block_data_order,.-sha512_block_data_order", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:14", "text": "str\tr11, [r0,#56+LO]\n\tadc\tr12,r4,r12\n\tstr\tr12, [r0,#56+HI]\n\n\tadd\tsp,sp,#640\n\tsub\tr14,r14,#640\n\n\tteq\tr1,r2\n\tbne\t.Loop\n\n\tadd\tsp,sp,#8*9\t\t@ destroy frame\n#if __ARM_ARCH__>=5\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,pc}\n#else\n\tldmia\tsp!,{r4,r5,r6,r7,r8,r9,r10,r11,r12,lr}\n\ttst\tlr,#1\n\tmoveq\tpc,lr\t\t\t@ be binary compatible with V4, yet\n.word\t0xe12fff1e\t\t\t@ interoperable with Thumb ISA:-)\n#endif\n.size\tsha512_block_data_order,.-sha512_block_data_order\n#if __ARM_MAX_ARCH__>=7\n.arch\tarmv7-a\n.fpu\tneon\n\n.globl\tsha512_block_data_order_neon\n.type\tsha512_block_data_order_neon,%function\n.align\t4\nsha512_block_data_order_neon:\n.LNEON:\n\tdmb\t@ errata #451034 on early Cortex A8\n\tadd\tr2,r1,r2,lsl#7\t@ len to point at the end of inp\n\tadr\tr3,K512\n\tVFP_ABI_PUSH\n\tvldmia\tr0,{d16,d17,d18,d19,d20,d21,d22,d23}\t\t@ load context\n.Loop_neon:\n\tvshr.u64\td24,d20,#14\t@ 0\n#if 0<16\n\tvld1.64\t{d0},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d20,#18\n#if 0>0\n\tvadd.i64\td16,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d20,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 0<16 && defined(__ARMEL__)\n\tvrev64.8\td0,d0\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d21,d22\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d16,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d23\n\tvshr.u64\td25,d16,#34\n\tvsli.64\td24,d16,#36\n\tvadd.i64\td27,d26", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:15", "text": "#if 0>0\n\tvadd.i64\td16,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d20,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 0<16 && defined(__ARMEL__)\n\tvrev64.8\td0,d0\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d21,d22\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d16,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d23\n\tvshr.u64\td25,d16,#34\n\tvsli.64\td24,d16,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d16,#39\n\tvadd.i64\td28,d0\n\tvsli.64\td25,d16,#30\n\tveor\td30,d16,d17\n\tvsli.64\td26,d16,#25\n\tveor\td23,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d18,d17\t\t@ Maj(a,b,c)\n\tveor\td23,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td19,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td23,d30\n\tvshr.u64\td24,d19,#14\t@ 1\n#if 1<16\n\tvld1.64\t{d1},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d19,#18\n#if 1>0\n\tvadd.i64\td23,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 1<16 && defined(__ARMEL__)\n\tvrev64.8\td1,d1\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d23,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d22\n\tvshr.u64\td25,d23,#34\n\tvsli.64\td24,d23,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d23,#39\n\tvadd.i64\td28,d1\n\tvsli.64\td25,d23,#30", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:16", "text": "vshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 1<16 && defined(__ARMEL__)\n\tvrev64.8\td1,d1\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d23,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d22\n\tvshr.u64\td25,d23,#34\n\tvsli.64\td24,d23,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d23,#39\n\tvadd.i64\td28,d1\n\tvsli.64\td25,d23,#30\n\tveor\td30,d23,d16\n\tvsli.64\td26,d23,#25\n\tveor\td22,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d17,d16\t\t@ Maj(a,b,c)\n\tveor\td22,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td18,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td22,d30\n\tvshr.u64\td24,d18,#14\t@ 2\n#if 2<16\n\tvld1.64\t{d2},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d18,#18\n#if 2>0\n\tvadd.i64\td22,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d18,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d18,#50\n\tvsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 2<16 && defined(__ARMEL__)\n\tvrev64.8\td2,d2\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d19,d20\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d22,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d21\n\tvshr.u64\td25,d22,#34\n\tvsli.64\td24,d22,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d22,#39\n\tvadd.i64\td28,d2\n\tvsli.64\td25,d22,#30\n\tveor\td30,d22,d23\n\tvsli.64\td26,d22,#25\n\tveor\td21,d24,d25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:17", "text": "vsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 2<16 && defined(__ARMEL__)\n\tvrev64.8\td2,d2\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d19,d20\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d22,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d21\n\tvshr.u64\td25,d22,#34\n\tvsli.64\td24,d22,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d22,#39\n\tvadd.i64\td28,d2\n\tvsli.64\td25,d22,#30\n\tveor\td30,d22,d23\n\tvsli.64\td26,d22,#25\n\tveor\td21,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d16,d23\t\t@ Maj(a,b,c)\n\tveor\td21,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td17,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 3\n#if 3<16\n\tvld1.64\t{d3},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 3>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50\n\tvsli.64\td25,d17,#46\n\tvmov\td29,d17\n\tvsli.64\td26,d17,#23\n#if 3<16 && defined(__ARMEL__)\n\tvrev64.8\td3,d3\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d18,d19\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d21,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d20\n\tvshr.u64\td25,d21,#34\n\tvsli.64\td24,d21,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d21,#39\n\tvadd.i64\td28,d3\n\tvsli.64\td25,d21,#30\n\tveor\td30,d21,d22\n\tvsli.64\td26,d21,#25\n\tveor\td20,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d23,d22\t\t@ Maj(a,b,c)\n\tveor\td20,d26\t\t\t@ Sigma0(a)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:18", "text": "#if 3<16 && defined(__ARMEL__)\n\tvrev64.8\td3,d3\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d18,d19\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d21,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d20\n\tvshr.u64\td25,d21,#34\n\tvsli.64\td24,d21,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d21,#39\n\tvadd.i64\td28,d3\n\tvsli.64\td25,d21,#30\n\tveor\td30,d21,d22\n\tvsli.64\td26,d21,#25\n\tveor\td20,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d23,d22\t\t@ Maj(a,b,c)\n\tveor\td20,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td16,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td20,d30\n\tvshr.u64\td24,d16,#14\t@ 4\n#if 4<16\n\tvld1.64\t{d4},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d16,#18\n#if 4>0\n\tvadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d16,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d16,#50\n\tvsli.64\td25,d16,#46\n\tvmov\td29,d16\n\tvsli.64\td26,d16,#23\n#if 4<16 && defined(__ARMEL__)\n\tvrev64.8\td4,d4\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d17,d18\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d20,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d19\n\tvshr.u64\td25,d20,#34\n\tvsli.64\td24,d20,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d20,#39\n\tvadd.i64\td28,d4\n\tvsli.64\td25,d20,#30\n\tveor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:19", "text": "veor\td25,d24\n\tvbsl\td29,d17,d18\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d20,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d19\n\tvshr.u64\td25,d20,#34\n\tvsli.64\td24,d20,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d20,#39\n\tvadd.i64\td28,d4\n\tvsli.64\td25,d20,#30\n\tveor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30\n\tvshr.u64\td24,d23,#14\t@ 5\n#if 5<16\n\tvld1.64\t{d5},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d23,#18\n#if 5>0\n\tvadd.i64\td19,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d23,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d23,#50\n\tvsli.64\td25,d23,#46\n\tvmov\td29,d23\n\tvsli.64\td26,d23,#23\n#if 5<16 && defined(__ARMEL__)\n\tvrev64.8\td5,d5\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d16,d17\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d19,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d18\n\tvshr.u64\td25,d19,#34\n\tvsli.64\td24,d19,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d19,#39\n\tvadd.i64\td28,d5\n\tvsli.64\td25,d19,#30\n\tveor\td30,d19,d20\n\tvsli.64\td26,d19,#25\n\tveor\td18,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\td24,d22,#14\t@ 6\n#if 6<16\n\tvld1.64\t{d6},[r1]!\t@ handles unaligned", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:20", "text": "veor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d18\n\tvshr.u64\td25,d19,#34\n\tvsli.64\td24,d19,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d19,#39\n\tvadd.i64\td28,d5\n\tvsli.64\td25,d19,#30\n\tveor\td30,d19,d20\n\tvsli.64\td26,d19,#25\n\tveor\td18,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\td24,d22,#14\t@ 6\n#if 6<16\n\tvld1.64\t{d6},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d22,#18\n#if 6>0\n\tvadd.i64\td18,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d22,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d22,#50\n\tvsli.64\td25,d22,#46\n\tvmov\td29,d22\n\tvsli.64\td26,d22,#23\n#if 6<16 && defined(__ARMEL__)\n\tvrev64.8\td6,d6\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d23,d16\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d18,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d6\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d20,d19\t\t@ Maj(a,b,c)\n\tveor\td17,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td21,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td17,d30\n\tvshr.u64\td24,d21,#14\t@ 7\n#if 7<16\n\tvld1.64\t{d7},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d21,#18\n#if 7>0", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:21", "text": "vsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d6\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d20,d19\t\t@ Maj(a,b,c)\n\tveor\td17,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td21,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td17,d30\n\tvshr.u64\td24,d21,#14\t@ 7\n#if 7<16\n\tvld1.64\t{d7},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d21,#18\n#if 7>0\n\tvadd.i64\td17,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d21,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d21,#50\n\tvsli.64\td25,d21,#46\n\tvmov\td29,d21\n\tvsli.64\td26,d21,#23\n#if 7<16 && defined(__ARMEL__)\n\tvrev64.8\td7,d7\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d22,d23\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d17,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d16\n\tvshr.u64\td25,d17,#34\n\tvsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d7\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td16,d30\n\tvshr.u64\td24,d20,#14\t@ 8\n#if 8<16\n\tvld1.64\t{d8},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d20,#18\n#if 8>0\n\tvadd.i64\td16,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d20,#41", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:22", "text": "vadd.i64\td28,d7\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td16,d30\n\tvshr.u64\td24,d20,#14\t@ 8\n#if 8<16\n\tvld1.64\t{d8},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d20,#18\n#if 8>0\n\tvadd.i64\td16,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d20,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 8<16 && defined(__ARMEL__)\n\tvrev64.8\td8,d8\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d21,d22\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d16,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d23\n\tvshr.u64\td25,d16,#34\n\tvsli.64\td24,d16,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d16,#39\n\tvadd.i64\td28,d8\n\tvsli.64\td25,d16,#30\n\tveor\td30,d16,d17\n\tvsli.64\td26,d16,#25\n\tveor\td23,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d18,d17\t\t@ Maj(a,b,c)\n\tveor\td23,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td19,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td23,d30\n\tvshr.u64\td24,d19,#14\t@ 9\n#if 9<16\n\tvld1.64\t{d9},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d19,#18\n#if 9>0\n\tvadd.i64\td23,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:23", "text": "vsli.64\td26,d16,#25\n\tveor\td23,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d18,d17\t\t@ Maj(a,b,c)\n\tveor\td23,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td19,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td23,d30\n\tvshr.u64\td24,d19,#14\t@ 9\n#if 9<16\n\tvld1.64\t{d9},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d19,#18\n#if 9>0\n\tvadd.i64\td23,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 9<16 && defined(__ARMEL__)\n\tvrev64.8\td9,d9\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d23,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d22\n\tvshr.u64\td25,d23,#34\n\tvsli.64\td24,d23,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d23,#39\n\tvadd.i64\td28,d9\n\tvsli.64\td25,d23,#30\n\tveor\td30,d23,d16\n\tvsli.64\td26,d23,#25\n\tveor\td22,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d17,d16\t\t@ Maj(a,b,c)\n\tveor\td22,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td18,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td22,d30\n\tvshr.u64\td24,d18,#14\t@ 10\n#if 10<16\n\tvld1.64\t{d10},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d18,#18\n#if 10>0\n\tvadd.i64\td22,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d18,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d18,#50\n\tvsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 10<16 && defined(__ARMEL__)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:24", "text": "vbsl\td30,d17,d16\t\t@ Maj(a,b,c)\n\tveor\td22,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td18,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td22,d30\n\tvshr.u64\td24,d18,#14\t@ 10\n#if 10<16\n\tvld1.64\t{d10},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d18,#18\n#if 10>0\n\tvadd.i64\td22,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d18,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d18,#50\n\tvsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 10<16 && defined(__ARMEL__)\n\tvrev64.8\td10,d10\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d19,d20\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d22,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d21\n\tvshr.u64\td25,d22,#34\n\tvsli.64\td24,d22,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d22,#39\n\tvadd.i64\td28,d10\n\tvsli.64\td25,d22,#30\n\tveor\td30,d22,d23\n\tvsli.64\td26,d22,#25\n\tveor\td21,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d16,d23\t\t@ Maj(a,b,c)\n\tveor\td21,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td17,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 11\n#if 11<16\n\tvld1.64\t{d11},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 11>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50\n\tvsli.64\td25,d17,#46\n\tvmov\td29,d17\n\tvsli.64\td26,d17,#23\n#if 11<16 && defined(__ARMEL__)\n\tvrev64.8\td11,d11\n#endif\n\tveor\td25,d24", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:25", "text": "vadd.i64\td30,d27\n\t@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 11\n#if 11<16\n\tvld1.64\t{d11},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 11>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50\n\tvsli.64\td25,d17,#46\n\tvmov\td29,d17\n\tvsli.64\td26,d17,#23\n#if 11<16 && defined(__ARMEL__)\n\tvrev64.8\td11,d11\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d18,d19\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d21,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d20\n\tvshr.u64\td25,d21,#34\n\tvsli.64\td24,d21,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d21,#39\n\tvadd.i64\td28,d11\n\tvsli.64\td25,d21,#30\n\tveor\td30,d21,d22\n\tvsli.64\td26,d21,#25\n\tveor\td20,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d23,d22\t\t@ Maj(a,b,c)\n\tveor\td20,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td16,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td20,d30\n\tvshr.u64\td24,d16,#14\t@ 12\n#if 12<16\n\tvld1.64\t{d12},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d16,#18\n#if 12>0\n\tvadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d16,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d16,#50\n\tvsli.64\td25,d16,#46\n\tvmov\td29,d16\n\tvsli.64\td26,d16,#23\n#if 12<16 && defined(__ARMEL__)\n\tvrev64.8\td12,d12\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d17,d18\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d20,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:26", "text": "#if 12<16\n\tvld1.64\t{d12},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d16,#18\n#if 12>0\n\tvadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d16,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d16,#50\n\tvsli.64\td25,d16,#46\n\tvmov\td29,d16\n\tvsli.64\td26,d16,#23\n#if 12<16 && defined(__ARMEL__)\n\tvrev64.8\td12,d12\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d17,d18\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d20,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d19\n\tvshr.u64\td25,d20,#34\n\tvsli.64\td24,d20,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d20,#39\n\tvadd.i64\td28,d12\n\tvsli.64\td25,d20,#30\n\tveor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30\n\tvshr.u64\td24,d23,#14\t@ 13\n#if 13<16\n\tvld1.64\t{d13},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d23,#18\n#if 13>0\n\tvadd.i64\td19,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d23,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d23,#50\n\tvsli.64\td25,d23,#46\n\tvmov\td29,d23\n\tvsli.64\td26,d23,#23\n#if 13<16 && defined(__ARMEL__)\n\tvrev64.8\td13,d13\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d16,d17\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d19,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d18\n\tvshr.u64\td25,d19,#34\n\tvsli.64\td24,d19,#36", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:27", "text": "vshr.u64\td25,d23,#18\n#if 13>0\n\tvadd.i64\td19,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d23,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d23,#50\n\tvsli.64\td25,d23,#46\n\tvmov\td29,d23\n\tvsli.64\td26,d23,#23\n#if 13<16 && defined(__ARMEL__)\n\tvrev64.8\td13,d13\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d16,d17\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d19,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d18\n\tvshr.u64\td25,d19,#34\n\tvsli.64\td24,d19,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d19,#39\n\tvadd.i64\td28,d13\n\tvsli.64\td25,d19,#30\n\tveor\td30,d19,d20\n\tvsli.64\td26,d19,#25\n\tveor\td18,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\td24,d22,#14\t@ 14\n#if 14<16\n\tvld1.64\t{d14},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d22,#18\n#if 14>0\n\tvadd.i64\td18,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d22,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d22,#50\n\tvsli.64\td25,d22,#46\n\tvmov\td29,d22\n\tvsli.64\td26,d22,#23\n#if 14<16 && defined(__ARMEL__)\n\tvrev64.8\td14,d14\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d23,d16\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d18,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d14", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:28", "text": "#endif\n\tvshr.u64\td26,d22,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d22,#50\n\tvsli.64\td25,d22,#46\n\tvmov\td29,d22\n\tvsli.64\td26,d22,#23\n#if 14<16 && defined(__ARMEL__)\n\tvrev64.8\td14,d14\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d23,d16\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d18,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d14\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d20,d19\t\t@ Maj(a,b,c)\n\tveor\td17,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td21,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td17,d30\n\tvshr.u64\td24,d21,#14\t@ 15\n#if 15<16\n\tvld1.64\t{d15},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d21,#18\n#if 15>0\n\tvadd.i64\td17,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d21,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d21,#50\n\tvsli.64\td25,d21,#46\n\tvmov\td29,d21\n\tvsli.64\td26,d21,#23\n#if 15<16 && defined(__ARMEL__)\n\tvrev64.8\td15,d15\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d22,d23\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d17,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d16\n\tvshr.u64\td25,d17,#34\n\tvsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d15\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:29", "text": "vsli.64\td24,d21,#50\n\tvsli.64\td25,d21,#46\n\tvmov\td29,d21\n\tvsli.64\td26,d21,#23\n#if 15<16 && defined(__ARMEL__)\n\tvrev64.8\td15,d15\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d22,d23\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d17,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d16\n\tvshr.u64\td25,d17,#34\n\tvsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d15\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td16,d30\n\tmov\tr12,#4\n.L16_79_neon:\n\tsubs\tr12,#1\n\tvshr.u64\tq12,q7,#19\n\tvshr.u64\tq13,q7,#61\n\tvadd.i64\td16,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q7,#6\n\tvsli.64\tq12,q7,#45\n\tvext.8\tq14,q0,q1,#8\t@ X[i+1]\n\tvsli.64\tq13,q7,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq0,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q4,q5,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d20,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq0,q14\n\tvshr.u64\td25,d20,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d20,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq0,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 16<16 && defined(__ARMEL__)\n\tvrev64.8\t,", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:30", "text": "vshr.u64\tq13,q14,#8\n\tvadd.i64\tq0,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q4,q5,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d20,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq0,q14\n\tvshr.u64\td25,d20,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d20,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq0,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 16<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d21,d22\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d16,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d23\n\tvshr.u64\td25,d16,#34\n\tvsli.64\td24,d16,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d16,#39\n\tvadd.i64\td28,d0\n\tvsli.64\td25,d16,#30\n\tveor\td30,d16,d17\n\tvsli.64\td26,d16,#25\n\tveor\td23,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d18,d17\t\t@ Maj(a,b,c)\n\tveor\td23,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td19,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td23,d30\n\tvshr.u64\td24,d19,#14\t@ 17\n#if 17<16\n\tvld1.64\t{d1},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d19,#18\n#if 17>0\n\tvadd.i64\td23,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 17<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:31", "text": "@ vadd.i64\td23,d30\n\tvshr.u64\td24,d19,#14\t@ 17\n#if 17<16\n\tvld1.64\t{d1},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d19,#18\n#if 17>0\n\tvadd.i64\td23,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 17<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d23,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d22\n\tvshr.u64\td25,d23,#34\n\tvsli.64\td24,d23,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d23,#39\n\tvadd.i64\td28,d1\n\tvsli.64\td25,d23,#30\n\tveor\td30,d23,d16\n\tvsli.64\td26,d23,#25\n\tveor\td22,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d17,d16\t\t@ Maj(a,b,c)\n\tveor\td22,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td18,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td22,d30\n\tvshr.u64\tq12,q0,#19\n\tvshr.u64\tq13,q0,#61\n\tvadd.i64\td22,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q0,#6\n\tvsli.64\tq12,q0,#45\n\tvext.8\tq14,q1,q2,#8\t@ X[i+1]\n\tvsli.64\tq13,q0,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq1,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q5,q6,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d18,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq1,q14\n\tvshr.u64\td25,d18,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d18,#41\t\t@ from NEON_00_15", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:32", "text": "vadd.i64\td22,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q0,#6\n\tvsli.64\tq12,q0,#45\n\tvext.8\tq14,q1,q2,#8\t@ X[i+1]\n\tvsli.64\tq13,q0,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq1,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q5,q6,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d18,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq1,q14\n\tvshr.u64\td25,d18,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d18,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq1,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d18,#50\n\tvsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 18<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d19,d20\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d22,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d21\n\tvshr.u64\td25,d22,#34\n\tvsli.64\td24,d22,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d22,#39\n\tvadd.i64\td28,d2\n\tvsli.64\td25,d22,#30\n\tveor\td30,d22,d23\n\tvsli.64\td26,d22,#25\n\tveor\td21,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d16,d23\t\t@ Maj(a,b,c)\n\tveor\td21,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td17,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 19\n#if 19<16\n\tvld1.64\t{d3},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 19>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:33", "text": "veor\td30,d22,d23\n\tvsli.64\td26,d22,#25\n\tveor\td21,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d16,d23\t\t@ Maj(a,b,c)\n\tveor\td21,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td17,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 19\n#if 19<16\n\tvld1.64\t{d3},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 19>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50\n\tvsli.64\td25,d17,#46\n\tvmov\td29,d17\n\tvsli.64\td26,d17,#23\n#if 19<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d18,d19\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d21,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d20\n\tvshr.u64\td25,d21,#34\n\tvsli.64\td24,d21,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d21,#39\n\tvadd.i64\td28,d3\n\tvsli.64\td25,d21,#30\n\tveor\td30,d21,d22\n\tvsli.64\td26,d21,#25\n\tveor\td20,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d23,d22\t\t@ Maj(a,b,c)\n\tveor\td20,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td16,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td20,d30\n\tvshr.u64\tq12,q1,#19\n\tvshr.u64\tq13,q1,#61\n\tvadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q1,#6\n\tvsli.64\tq12,q1,#45\n\tvext.8\tq14,q2,q3,#8\t@ X[i+1]\n\tvsli.64\tq13,q1,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq2,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:34", "text": "vadd.i64\td27,d28\n\tvbsl\td30,d23,d22\t\t@ Maj(a,b,c)\n\tveor\td20,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td16,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td20,d30\n\tvshr.u64\tq12,q1,#19\n\tvshr.u64\tq13,q1,#61\n\tvadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q1,#6\n\tvsli.64\tq12,q1,#45\n\tvext.8\tq14,q2,q3,#8\t@ X[i+1]\n\tvsli.64\tq13,q1,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq2,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q6,q7,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d16,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq2,q14\n\tvshr.u64\td25,d16,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d16,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq2,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d16,#50\n\tvsli.64\td25,d16,#46\n\tvmov\td29,d16\n\tvsli.64\td26,d16,#23\n#if 20<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d17,d18\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d20,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d19\n\tvshr.u64\td25,d20,#34\n\tvsli.64\td24,d20,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d20,#39\n\tvadd.i64\td28,d4\n\tvsli.64\td25,d20,#30\n\tveor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30\n\tvshr.u64\td24,d23,#14\t@ 21\n#if 21<16\n\tvld1.64\t{d5},[r1]!\t@ handles unaligned", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:35", "text": "veor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d19\n\tvshr.u64\td25,d20,#34\n\tvsli.64\td24,d20,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d20,#39\n\tvadd.i64\td28,d4\n\tvsli.64\td25,d20,#30\n\tveor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30\n\tvshr.u64\td24,d23,#14\t@ 21\n#if 21<16\n\tvld1.64\t{d5},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d23,#18\n#if 21>0\n\tvadd.i64\td19,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d23,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d23,#50\n\tvsli.64\td25,d23,#46\n\tvmov\td29,d23\n\tvsli.64\td26,d23,#23\n#if 21<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d16,d17\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d19,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d18\n\tvshr.u64\td25,d19,#34\n\tvsli.64\td24,d19,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d19,#39\n\tvadd.i64\td28,d5\n\tvsli.64\td25,d19,#30\n\tveor\td30,d19,d20\n\tvsli.64\td26,d19,#25\n\tveor\td18,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\tq12,q2,#19\n\tvshr.u64\tq13,q2,#61\n\tvadd.i64\td18,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q2,#6\n\tvsli.64\tq12,q2,#45\n\tvext.8\tq14,q3,q4,#8\t@ X[i+1]", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:36", "text": "vsli.64\td24,d19,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d19,#39\n\tvadd.i64\td28,d5\n\tvsli.64\td25,d19,#30\n\tveor\td30,d19,d20\n\tvsli.64\td26,d19,#25\n\tveor\td18,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\tq12,q2,#19\n\tvshr.u64\tq13,q2,#61\n\tvadd.i64\td18,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q2,#6\n\tvsli.64\tq12,q2,#45\n\tvext.8\tq14,q3,q4,#8\t@ X[i+1]\n\tvsli.64\tq13,q2,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq3,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q7,q0,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d22,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq3,q14\n\tvshr.u64\td25,d22,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d22,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq3,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d22,#50\n\tvsli.64\td25,d22,#46\n\tvmov\td29,d22\n\tvsli.64\td26,d22,#23\n#if 22<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d23,d16\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d18,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d6\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:37", "text": "vmov\td29,d22\n\tvsli.64\td26,d22,#23\n#if 22<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d23,d16\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d18,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d6\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d20,d19\t\t@ Maj(a,b,c)\n\tveor\td17,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td21,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td17,d30\n\tvshr.u64\td24,d21,#14\t@ 23\n#if 23<16\n\tvld1.64\t{d7},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d21,#18\n#if 23>0\n\tvadd.i64\td17,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d21,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d21,#50\n\tvsli.64\td25,d21,#46\n\tvmov\td29,d21\n\tvsli.64\td26,d21,#23\n#if 23<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d22,d23\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d17,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d16\n\tvshr.u64\td25,d17,#34\n\tvsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d7\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:38", "text": "vrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d22,d23\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d17,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d16\n\tvshr.u64\td25,d17,#34\n\tvsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d7\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td16,d30\n\tvshr.u64\tq12,q3,#19\n\tvshr.u64\tq13,q3,#61\n\tvadd.i64\td16,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q3,#6\n\tvsli.64\tq12,q3,#45\n\tvext.8\tq14,q4,q5,#8\t@ X[i+1]\n\tvsli.64\tq13,q3,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq4,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q0,q1,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d20,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq4,q14\n\tvshr.u64\td25,d20,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d20,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq4,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 24<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d21,d22\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d16,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d23\n\tvshr.u64\td25,d16,#34\n\tvsli.64\td24,d16,#36", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:39", "text": "vadd.i64\tq4,q14\n\tvshr.u64\td25,d20,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d20,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq4,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d20,#50\n\tvsli.64\td25,d20,#46\n\tvmov\td29,d20\n\tvsli.64\td26,d20,#23\n#if 24<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d21,d22\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d16,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d23\n\tvshr.u64\td25,d16,#34\n\tvsli.64\td24,d16,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d16,#39\n\tvadd.i64\td28,d8\n\tvsli.64\td25,d16,#30\n\tveor\td30,d16,d17\n\tvsli.64\td26,d16,#25\n\tveor\td23,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d18,d17\t\t@ Maj(a,b,c)\n\tveor\td23,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td19,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td23,d30\n\tvshr.u64\td24,d19,#14\t@ 25\n#if 25<16\n\tvld1.64\t{d9},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d19,#18\n#if 25>0\n\tvadd.i64\td23,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 25<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d23,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d22\n\tvshr.u64\td25,d23,#34\n\tvsli.64\td24,d23,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d23,#39\n\tvadd.i64\td28,d9", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:40", "text": "#endif\n\tvshr.u64\td26,d19,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d19,#50\n\tvsli.64\td25,d19,#46\n\tvmov\td29,d19\n\tvsli.64\td26,d19,#23\n#if 25<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d20,d21\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d23,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d22\n\tvshr.u64\td25,d23,#34\n\tvsli.64\td24,d23,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d23,#39\n\tvadd.i64\td28,d9\n\tvsli.64\td25,d23,#30\n\tveor\td30,d23,d16\n\tvsli.64\td26,d23,#25\n\tveor\td22,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d17,d16\t\t@ Maj(a,b,c)\n\tveor\td22,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td18,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td22,d30\n\tvshr.u64\tq12,q4,#19\n\tvshr.u64\tq13,q4,#61\n\tvadd.i64\td22,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q4,#6\n\tvsli.64\tq12,q4,#45\n\tvext.8\tq14,q5,q6,#8\t@ X[i+1]\n\tvsli.64\tq13,q4,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq5,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q1,q2,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d18,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq5,q14\n\tvshr.u64\td25,d18,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d18,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq5,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d18,#50\n\tvsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 26<16 && defined(__ARMEL__)\n\tvrev64.8\t,", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:41", "text": "vshr.u64\tq13,q14,#8\n\tvadd.i64\tq5,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q1,q2,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d18,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq5,q14\n\tvshr.u64\td25,d18,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d18,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq5,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d18,#50\n\tvsli.64\td25,d18,#46\n\tvmov\td29,d18\n\tvsli.64\td26,d18,#23\n#if 26<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d19,d20\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d22,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d21\n\tvshr.u64\td25,d22,#34\n\tvsli.64\td24,d22,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d22,#39\n\tvadd.i64\td28,d10\n\tvsli.64\td25,d22,#30\n\tveor\td30,d22,d23\n\tvsli.64\td26,d22,#25\n\tveor\td21,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d16,d23\t\t@ Maj(a,b,c)\n\tveor\td21,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td17,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 27\n#if 27<16\n\tvld1.64\t{d11},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 27>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50\n\tvsli.64\td25,d17,#46\n\tvmov\td29,d17\n\tvsli.64\td26,d17,#23\n#if 27<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d18,d19\t\t@ Ch(e,f,g)", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:42", "text": "@ vadd.i64\td21,d30\n\tvshr.u64\td24,d17,#14\t@ 27\n#if 27<16\n\tvld1.64\t{d11},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d17,#18\n#if 27>0\n\tvadd.i64\td21,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d17,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d17,#50\n\tvsli.64\td25,d17,#46\n\tvmov\td29,d17\n\tvsli.64\td26,d17,#23\n#if 27<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d18,d19\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d21,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d20\n\tvshr.u64\td25,d21,#34\n\tvsli.64\td24,d21,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d21,#39\n\tvadd.i64\td28,d11\n\tvsli.64\td25,d21,#30\n\tveor\td30,d21,d22\n\tvsli.64\td26,d21,#25\n\tveor\td20,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d23,d22\t\t@ Maj(a,b,c)\n\tveor\td20,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td16,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td20,d30\n\tvshr.u64\tq12,q5,#19\n\tvshr.u64\tq13,q5,#61\n\tvadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q5,#6\n\tvsli.64\tq12,q5,#45\n\tvext.8\tq14,q6,q7,#8\t@ X[i+1]\n\tvsli.64\tq13,q5,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq6,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q2,q3,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d16,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq6,q14\n\tvshr.u64\td25,d16,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d16,#41\t\t@ from NEON_00_15", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:43", "text": "vadd.i64\td20,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q5,#6\n\tvsli.64\tq12,q5,#45\n\tvext.8\tq14,q6,q7,#8\t@ X[i+1]\n\tvsli.64\tq13,q5,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq6,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q2,q3,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d16,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq6,q14\n\tvshr.u64\td25,d16,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d16,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq6,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d16,#50\n\tvsli.64\td25,d16,#46\n\tvmov\td29,d16\n\tvsli.64\td26,d16,#23\n#if 28<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d17,d18\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d20,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d19\n\tvshr.u64\td25,d20,#34\n\tvsli.64\td24,d20,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d20,#39\n\tvadd.i64\td28,d12\n\tvsli.64\td25,d20,#30\n\tveor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30\n\tvshr.u64\td24,d23,#14\t@ 29\n#if 29<16\n\tvld1.64\t{d13},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d23,#18\n#if 29>0\n\tvadd.i64\td19,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d23,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d23,#50", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:44", "text": "veor\td30,d20,d21\n\tvsli.64\td26,d20,#25\n\tveor\td19,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d22,d21\t\t@ Maj(a,b,c)\n\tveor\td19,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td23,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td19,d30\n\tvshr.u64\td24,d23,#14\t@ 29\n#if 29<16\n\tvld1.64\t{d13},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d23,#18\n#if 29>0\n\tvadd.i64\td19,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d23,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d23,#50\n\tvsli.64\td25,d23,#46\n\tvmov\td29,d23\n\tvsli.64\td26,d23,#23\n#if 29<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d16,d17\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d19,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d18\n\tvshr.u64\td25,d19,#34\n\tvsli.64\td24,d19,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d19,#39\n\tvadd.i64\td28,d13\n\tvsli.64\td25,d19,#30\n\tveor\td30,d19,d20\n\tvsli.64\td26,d19,#25\n\tveor\td18,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\tq12,q6,#19\n\tvshr.u64\tq13,q6,#61\n\tvadd.i64\td18,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q6,#6\n\tvsli.64\tq12,q6,#45\n\tvext.8\tq14,q7,q0,#8\t@ X[i+1]\n\tvsli.64\tq13,q6,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq7,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:45", "text": "vadd.i64\td27,d28\n\tvbsl\td30,d21,d20\t\t@ Maj(a,b,c)\n\tveor\td18,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td22,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td18,d30\n\tvshr.u64\tq12,q6,#19\n\tvshr.u64\tq13,q6,#61\n\tvadd.i64\td18,d30\t\t\t@ h+=Maj from the past\n\tvshr.u64\tq15,q6,#6\n\tvsli.64\tq12,q6,#45\n\tvext.8\tq14,q7,q0,#8\t@ X[i+1]\n\tvsli.64\tq13,q6,#3\n\tveor\tq15,q12\n\tvshr.u64\tq12,q14,#1\n\tveor\tq15,q13\t\t\t\t@ sigma1(X[i+14])\n\tvshr.u64\tq13,q14,#8\n\tvadd.i64\tq7,q15\n\tvshr.u64\tq15,q14,#7\n\tvsli.64\tq12,q14,#63\n\tvsli.64\tq13,q14,#56\n\tvext.8\tq14,q3,q4,#8\t@ X[i+9]\n\tveor\tq15,q12\n\tvshr.u64\td24,d22,#14\t\t@ from NEON_00_15\n\tvadd.i64\tq7,q14\n\tvshr.u64\td25,d22,#18\t\t@ from NEON_00_15\n\tveor\tq15,q13\t\t\t\t@ sigma0(X[i+1])\n\tvshr.u64\td26,d22,#41\t\t@ from NEON_00_15\n\tvadd.i64\tq7,q15\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d22,#50\n\tvsli.64\td25,d22,#46\n\tvmov\td29,d22\n\tvsli.64\td26,d22,#23\n#if 30<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d23,d16\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d18,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d14\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d20,d19\t\t@ Maj(a,b,c)\n\tveor\td17,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td21,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td17,d30\n\tvshr.u64\td24,d21,#14\t@ 31\n#if 31<16\n\tvld1.64\t{d15},[r1]!\t@ handles unaligned", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:46", "text": "veor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d17\n\tvshr.u64\td25,d18,#34\n\tvsli.64\td24,d18,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d18,#39\n\tvadd.i64\td28,d14\n\tvsli.64\td25,d18,#30\n\tveor\td30,d18,d19\n\tvsli.64\td26,d18,#25\n\tveor\td17,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d20,d19\t\t@ Maj(a,b,c)\n\tveor\td17,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td21,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td17,d30\n\tvshr.u64\td24,d21,#14\t@ 31\n#if 31<16\n\tvld1.64\t{d15},[r1]!\t@ handles unaligned\n#endif\n\tvshr.u64\td25,d21,#18\n#if 31>0\n\tvadd.i64\td17,d30\t\t\t@ h+=Maj from the past\n#endif\n\tvshr.u64\td26,d21,#41\n\tvld1.64\t{d28},[r3,:64]!\t@ K[i++]\n\tvsli.64\td24,d21,#50\n\tvsli.64\td25,d21,#46\n\tvmov\td29,d21\n\tvsli.64\td26,d21,#23\n#if 31<16 && defined(__ARMEL__)\n\tvrev64.8\t,\n#endif\n\tveor\td25,d24\n\tvbsl\td29,d22,d23\t\t@ Ch(e,f,g)\n\tvshr.u64\td24,d17,#28\n\tveor\td26,d25\t\t\t@ Sigma1(e)\n\tvadd.i64\td27,d29,d16\n\tvshr.u64\td25,d17,#34\n\tvsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d15\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td16,d30\n\tbne\t.L16_79_neon\n\n\tvadd.i64\td16,d30\t\t@ h+=Maj from the past\n\tvldmia\tr0,{d24,d25,d26,d27,d28,d29,d30,d31}\t@ load context to temp\n\tvadd.i64\tq8,q12\t\t@ vectorized accumulate\n\tvadd.i64\tq9,q13", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S:47", "text": "vsli.64\td24,d17,#36\n\tvadd.i64\td27,d26\n\tvshr.u64\td26,d17,#39\n\tvadd.i64\td28,d15\n\tvsli.64\td25,d17,#30\n\tveor\td30,d17,d18\n\tvsli.64\td26,d17,#25\n\tveor\td16,d24,d25\n\tvadd.i64\td27,d28\n\tvbsl\td30,d19,d18\t\t@ Maj(a,b,c)\n\tveor\td16,d26\t\t\t@ Sigma0(a)\n\tvadd.i64\td20,d27\n\tvadd.i64\td30,d27\n\t@ vadd.i64\td16,d30\n\tbne\t.L16_79_neon\n\n\tvadd.i64\td16,d30\t\t@ h+=Maj from the past\n\tvldmia\tr0,{d24,d25,d26,d27,d28,d29,d30,d31}\t@ load context to temp\n\tvadd.i64\tq8,q12\t\t@ vectorized accumulate\n\tvadd.i64\tq9,q13\n\tvadd.i64\tq10,q14\n\tvadd.i64\tq11,q15\n\tvstmia\tr0,{d16,d17,d18,d19,d20,d21,d22,d23}\t@ save context\n\tteq\tr1,r2\n\tsub\tr3,#640\t@ rewind K512\n\tbne\t.Loop_neon\n\n\tVFP_ABI_POP\n\tRET\t\t\t\t@ .word\t0xe12fff1e\n.size\tsha512_block_data_order_neon,.-sha512_block_data_order_neon\n#endif\n.byte\t83,72,65,53,49,50,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,65,82,77,118,52,47,78,69,79,78,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2\n#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)\n\n.hidden\tOPENSSL_armcap_P\n#endif", "arch": "arm", "syntax": "intel-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sha512-armv4.S", "line_start": 1841, "line_end": 1878}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:1", "text": "#include \"arm_asm.h\"\n// Copyright 2021-2025 The OpenSSL Project Authors. All Rights Reserved.\n//\n// Licensed under the Apache License 2.0 (the \"License\").  You may not use\n// this file except in compliance with the License.  You can obtain a copy\n// in the file LICENSE in the source distribution or at\n// https://www.openssl.org/source/license.html\n//\n// This module implements support for Armv8 SM3 instructions\n\n// $output is the last argument if it looks like a file (it has an extension)\n// $flavour is the first argument if it doesn't look like a file\n#include \"arm_arch.h\"\n.text\n.globl\tossl_hwsm3_block_data_order\n.type\tossl_hwsm3_block_data_order,%function\n.align\t5\nossl_hwsm3_block_data_order:\n\tAARCH64_VALID_CALL_TARGET\n\t// load state\n\tld1\t{v5.4s,v6.4s}, [x0]\n\trev64\tv5.4s, v5.4s\n\trev64\tv6.4s, v6.4s\n\text\tv5.16b, v5.16b, v5.16b, #8\n\text\tv6.16b, v6.16b, v6.16b, #8\n\tadr\tx8, .Tj\n\tldp\ts16, s17, [x8]\n\n.Loop:\n\t// load input\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s}, [x1], #64\n\tsub\tw2, w2, #1\n\n\tmov\tv18.16b, v5.16b\n\tmov\tv19.16b, v6.16b\n\n#ifndef __AARCH64EB__\n\trev32\tv0.16b, v0.16b\n\trev32\tv1.16b, v1.16b\n\trev32\tv2.16b, v2.16b\n\trev32\tv3.16b, v3.16b\n#endif\n\n\text\tv20.16b, v16.16b, v16.16b, #4\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv4.16b, v1.16b, v2.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v0.16b, v1.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v2.16b, v3.16b, #8\n.inst\t0xce63c004\t//sm3partw1 v4.4s, v0.4s, v3.4s\n.inst\t0xce76c6e4\t//sm3partw2 v4.4s, v23.4s, v22.4s\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ae6\t//sm3tt2a v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:2", "text": "rev32\tv3.16b, v3.16b\n#endif\n\n\text\tv20.16b, v16.16b, v16.16b, #4\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv4.16b, v1.16b, v2.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v0.16b, v1.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v2.16b, v3.16b, #8\n.inst\t0xce63c004\t//sm3partw1 v4.4s, v0.4s, v3.4s\n.inst\t0xce76c6e4\t//sm3partw2 v4.4s, v23.4s, v22.4s\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ae6\t//sm3tt2a v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5692e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce409ae6\t//sm3tt2a v6.4s, v23.4s, v0.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce40aae6\t//sm3tt2a v6.4s, v23.4s, v0.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bae6\t//sm3tt2a v6.4s, v23.4s, v0.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv0.16b, v2.16b, v3.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v1.16b, v2.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v3.16b, v4.16b, #8\n.inst\t0xce64c020\t//sm3partw1 v0.4s, v1.4s, v4.4s\n.inst\t0xce76c6e0\t//sm3partw2 v0.4s, v23.4s, v22.4s\n\teor\tv22.16b, v1.16b, v2.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce418ae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5692e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce419ae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce41aae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:3", "text": ".inst\t0xce76c6e0\t//sm3partw2 v0.4s, v23.4s, v22.4s\n\teor\tv22.16b, v1.16b, v2.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce418ae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5692e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce419ae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce41aae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce41bae6\t//sm3tt2a v6.4s, v23.4s, v1.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv1.16b, v3.16b, v4.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v2.16b, v3.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v4.16b, v0.16b, #8\n.inst\t0xce60c041\t//sm3partw1 v1.4s, v2.4s, v0.4s\n.inst\t0xce76c6e1\t//sm3partw2 v1.4s, v23.4s, v22.4s\n\teor\tv22.16b, v2.16b, v3.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce428ae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5692e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce429ae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce42aae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce42bae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv2.16b, v4.16b, v0.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v3.16b, v4.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v0.16b, v1.16b, #8\n.inst\t0xce61c062\t//sm3partw1 v2.4s, v3.4s, v1.4s\n.inst\t0xce76c6e2\t//sm3partw2 v2.4s, v23.4s, v22.4s\n\teor\tv22.16b, v3.16b, v4.16b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:4", "text": ".inst\t0xce429ae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce42aae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce42bae6\t//sm3tt2a v6.4s, v23.4s, v2.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv2.16b, v4.16b, v0.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v3.16b, v4.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v0.16b, v1.16b, #8\n.inst\t0xce61c062\t//sm3partw1 v2.4s, v3.4s, v1.4s\n.inst\t0xce76c6e2\t//sm3partw2 v2.4s, v23.4s, v22.4s\n\teor\tv22.16b, v3.16b, v4.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5682e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce438ae6\t//sm3tt2a v6.4s, v23.4s, v3.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5692e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce439ae6\t//sm3tt2a v6.4s, v23.4s, v3.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce43aae6\t//sm3tt2a v6.4s, v23.4s, v3.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b2e5\t//sm3tt1a v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce43bae6\t//sm3tt2a v6.4s, v23.4s, v3.4s[3]\n\text\tv20.16b, v17.16b, v17.16b, #4\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv3.16b, v0.16b, v1.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v4.16b, v0.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v1.16b, v2.16b, #8\n.inst\t0xce62c083\t//sm3partw1 v3.4s, v4.4s, v2.4s\n.inst\t0xce76c6e3\t//sm3partw2 v3.4s, v23.4s, v22.4s\n\teor\tv22.16b, v4.16b, v0.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce448ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:5", "text": "ext\tv20.16b, v17.16b, v17.16b, #4\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv3.16b, v0.16b, v1.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v4.16b, v0.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v1.16b, v2.16b, #8\n.inst\t0xce62c083\t//sm3partw1 v3.4s, v4.4s, v2.4s\n.inst\t0xce76c6e3\t//sm3partw2 v3.4s, v23.4s, v22.4s\n\teor\tv22.16b, v4.16b, v0.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce448ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce44aee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce44bee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv4.16b, v1.16b, v2.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v0.16b, v1.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v2.16b, v3.16b, #8\n.inst\t0xce63c004\t//sm3partw1 v4.4s, v0.4s, v3.4s\n.inst\t0xce76c6e4\t//sm3partw2 v4.4s, v23.4s, v22.4s\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce409ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce40aee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\t// s4 = w7  | w8  | w9  | w10", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:6", "text": "shl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce409ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce40aee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv0.16b, v2.16b, v3.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v1.16b, v2.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v3.16b, v4.16b, #8\n.inst\t0xce64c020\t//sm3partw1 v0.4s, v1.4s, v4.4s\n.inst\t0xce76c6e0\t//sm3partw2 v0.4s, v23.4s, v22.4s\n\teor\tv22.16b, v1.16b, v2.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce418ee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce419ee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce41aee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce41bee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv1.16b, v3.16b, v4.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v2.16b, v3.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v4.16b, v0.16b, #8\n.inst\t0xce60c041\t//sm3partw1 v1.4s, v2.4s, v0.4s\n.inst\t0xce76c6e1\t//sm3partw2 v1.4s, v23.4s, v22.4s\n\teor\tv22.16b, v2.16b, v3.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:7", "text": "sri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce41aee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce41bee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv1.16b, v3.16b, v4.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v2.16b, v3.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v4.16b, v0.16b, #8\n.inst\t0xce60c041\t//sm3partw1 v1.4s, v2.4s, v0.4s\n.inst\t0xce76c6e1\t//sm3partw2 v1.4s, v23.4s, v22.4s\n\teor\tv22.16b, v2.16b, v3.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce428ee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce429ee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce42aee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce42bee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv2.16b, v4.16b, v0.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v3.16b, v4.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v0.16b, v1.16b, #8\n.inst\t0xce61c062\t//sm3partw1 v2.4s, v3.4s, v1.4s\n.inst\t0xce76c6e2\t//sm3partw2 v2.4s, v23.4s, v22.4s\n\teor\tv22.16b, v3.16b, v4.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce438ee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce439ee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:8", "text": "ext\tv22.16b, v3.16b, v4.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v0.16b, v1.16b, #8\n.inst\t0xce61c062\t//sm3partw1 v2.4s, v3.4s, v1.4s\n.inst\t0xce76c6e2\t//sm3partw2 v2.4s, v23.4s, v22.4s\n\teor\tv22.16b, v3.16b, v4.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce438ee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce439ee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce43aee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce43bee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv3.16b, v0.16b, v1.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v4.16b, v0.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v1.16b, v2.16b, #8\n.inst\t0xce62c083\t//sm3partw1 v3.4s, v4.4s, v2.4s\n.inst\t0xce76c6e3\t//sm3partw2 v3.4s, v23.4s, v22.4s\n\teor\tv22.16b, v4.16b, v0.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce448ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce44aee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce44bee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv4.16b, v1.16b, v2.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v0.16b, v1.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:9", "text": ".inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce44aee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce44bee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv4.16b, v1.16b, v2.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v0.16b, v1.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v2.16b, v3.16b, #8\n.inst\t0xce63c004\t//sm3partw1 v4.4s, v0.4s, v3.4s\n.inst\t0xce76c6e4\t//sm3partw2 v4.4s, v23.4s, v22.4s\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce409ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce40aee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv0.16b, v2.16b, v3.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v1.16b, v2.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v3.16b, v4.16b, #8\n.inst\t0xce64c020\t//sm3partw1 v0.4s, v1.4s, v4.4s\n.inst\t0xce76c6e0\t//sm3partw2 v0.4s, v23.4s, v22.4s\n\teor\tv22.16b, v1.16b, v2.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce418ee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:10", "text": "shl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv0.16b, v2.16b, v3.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v1.16b, v2.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v3.16b, v4.16b, #8\n.inst\t0xce64c020\t//sm3partw1 v0.4s, v1.4s, v4.4s\n.inst\t0xce76c6e0\t//sm3partw2 v0.4s, v23.4s, v22.4s\n\teor\tv22.16b, v1.16b, v2.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce418ee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce419ee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce41aee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce41bee6\t//sm3tt2b v6.4s, v23.4s, v1.4s[3]\n\t// s4 = w7  | w8  | w9  | w10\n\text\tv1.16b, v3.16b, v4.16b, #12\n\t// vtmp1 = w3  | w4  | w5  | w6\n\text\tv22.16b, v2.16b, v3.16b, #12\n\t// vtmp2 = w10 | w11 | w12 | w13\n\text\tv23.16b, v4.16b, v0.16b, #8\n.inst\t0xce60c041\t//sm3partw1 v1.4s, v2.4s, v0.4s\n.inst\t0xce76c6e1\t//sm3partw2 v1.4s, v23.4s, v22.4s\n\teor\tv22.16b, v2.16b, v3.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce428ee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce429ee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce42aee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:11", "text": ".inst\t0xce76c6e1\t//sm3partw2 v1.4s, v23.4s, v22.4s\n\teor\tv22.16b, v2.16b, v3.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce428ee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce429ee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce42aee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce42bee6\t//sm3tt2b v6.4s, v23.4s, v2.4s[3]\n\teor\tv22.16b, v3.16b, v4.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce438ee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce439ee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce43aee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce43bee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[3]\n\teor\tv22.16b, v4.16b, v0.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce448ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce44aee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:12", "text": "sri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce43bee6\t//sm3tt2b v6.4s, v23.4s, v3.4s[3]\n\teor\tv22.16b, v4.16b, v0.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce448ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce449ee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce44aee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce44bee6\t//sm3tt2b v6.4s, v23.4s, v4.4s[3]\n\teor\tv22.16b, v0.16b, v1.16b\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce5686e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[0]\n.inst\t0xce408ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[0]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce5696e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[1]\n.inst\t0xce409ee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[1]\n.inst\t0xce5418b7\t//sm3ss1 v23.4s, v5.4s, v20.4s, v6.4s\n\tshl\tv21.4s, v20.4s, #1\n\tsri\tv21.4s, v20.4s, #31\n.inst\t0xce56a6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[2]\n.inst\t0xce40aee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[2]\n.inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\teor\tv5.16b, v5.16b, v18.16b\n\teor\tv6.16b, v6.16b, v19.16b\n\n\t// any remained blocks?\n\tcbnz\tw2, .Loop\n\n\t// save state\n\trev64\tv5.4s, v5.4s\n\trev64\tv6.4s, v6.4s\n\text\tv5.16b, v5.16b, v5.16b, #8\n\text\tv6.16b, v6.16b, v6.16b, #8\n\tst1\t{v5.4s,v6.4s}, [x0]\n\tret\n.size\tossl_hwsm3_block_data_order,.-ossl_hwsm3_block_data_order", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S:13", "text": ".inst\t0xce5518b7\t//sm3ss1 v23.4s, v5.4s, v21.4s, v6.4s\n\tshl\tv20.4s, v21.4s, #1\n\tsri\tv20.4s, v21.4s, #31\n.inst\t0xce56b6e5\t//sm3tt1b v5.4s, v23.4s, v22.4s[3]\n.inst\t0xce40bee6\t//sm3tt2b v6.4s, v23.4s, v0.4s[3]\n\teor\tv5.16b, v5.16b, v18.16b\n\teor\tv6.16b, v6.16b, v19.16b\n\n\t// any remained blocks?\n\tcbnz\tw2, .Loop\n\n\t// save state\n\trev64\tv5.4s, v5.4s\n\trev64\tv6.4s, v6.4s\n\text\tv5.16b, v5.16b, v5.16b, #8\n\text\tv6.16b, v6.16b, v6.16b, #8\n\tst1\t{v5.4s,v6.4s}, [x0]\n\tret\n.size\tossl_hwsm3_block_data_order,.-ossl_hwsm3_block_data_order\n\n.type\t_sm3_consts,%object\n.align\t3\n_sm3_consts:\n.Tj:\n.word\t0x79cc4519, 0x9d8a7a87\n.size\t_sm3_consts,.-_sm3_consts", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm3-armv8.S", "line_start": 481, "line_end": 506}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:1", "text": "#include \"arm_asm.h\"\n// Copyright 2022-2025 The OpenSSL Project Authors. All Rights Reserved.\n//\n// Licensed under the Apache License 2.0 (the \"License\").  You may not use\n// this file except in compliance with the License.  You can obtain a copy\n// in the file LICENSE in the source distribution or at\n// https://www.openssl.org/source/license.html\n\n//\n// This module implements support for SM4 hw support on aarch64\n// Oct 2021\n//\n\n// $output is the last argument if it looks like a file (it has an extension)\n// $flavour is the first argument if it doesn't look like a file\n#include \"arm_arch.h\"\n.arch\tarmv8-a+crypto\n.text\n\n.section\t.rodata\n.type\t_sm4_v8_consts,%object\n.align\t6\n_sm4_v8_consts:\n.Lck:\n.long\t0x00070E15, 0x1C232A31, 0x383F464D, 0x545B6269\n.long\t0x70777E85, 0x8C939AA1, 0xA8AFB6BD, 0xC4CBD2D9\n.long\t0xE0E7EEF5, 0xFC030A11, 0x181F262D, 0x343B4249\n.long\t0x50575E65, 0x6C737A81, 0x888F969D, 0xA4ABB2B9\n.long\t0xC0C7CED5, 0xDCE3EAF1, 0xF8FF060D, 0x141B2229\n.long\t0x30373E45, 0x4C535A61, 0x686F767D, 0x848B9299\n.long\t0xA0A7AEB5, 0xBCC3CAD1, 0xD8DFE6ED, 0xF4FB0209\n.long\t0x10171E25, 0x2C333A41, 0x484F565D, 0x646B7279\n.Lfk:\n.long\t0xa3b1bac6, 0x56aa3350, 0x677d9197, 0xb27022dc\n.size\t_sm4_v8_consts,.-_sm4_v8_consts\n.previous\n\n.globl\tsm4_v8_set_encrypt_key\n.type\tsm4_v8_set_encrypt_key,%function\n.align\t5\nsm4_v8_set_encrypt_key:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s},[x0]\n\tadrp\tx2,.Lfk\n\tadd\tx2,x2,#:lo12:.Lfk\n\tld1\t{v24.4s},[x2]\n\tadrp\tx2,.Lck\n\tadd\tx2,x2,#:lo12:.Lck\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x2],64\n#ifndef __AARCH64EB__\n\trev32\tv0.16b,v0.16b\n#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv0.16b,v0.16b,v24.16b;\n.inst\t0xce70c800\t//sm4ekey v0.4S,v0.4S,v16.4S\n.inst\t0xce71c801\t//sm4ekey v1.4S,v0.4S,v17.4S\n.inst\t0xce72c822\t//sm4ekey v2.4S,v1.4S,v18.4S\n.inst\t0xce73c843\t//sm4ekey v3.4S,v2.4S,v19.4S\n.inst\t0xce74c864\t//sm4ekey v4.4S,v3.4S,v20.4S\n\tst1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x1],64", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:2", "text": "sm4_v8_set_encrypt_key:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s},[x0]\n\tadrp\tx2,.Lfk\n\tadd\tx2,x2,#:lo12:.Lfk\n\tld1\t{v24.4s},[x2]\n\tadrp\tx2,.Lck\n\tadd\tx2,x2,#:lo12:.Lck\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x2],64\n#ifndef __AARCH64EB__\n\trev32\tv0.16b,v0.16b\n#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv0.16b,v0.16b,v24.16b;\n.inst\t0xce70c800\t//sm4ekey v0.4S,v0.4S,v16.4S\n.inst\t0xce71c801\t//sm4ekey v1.4S,v0.4S,v17.4S\n.inst\t0xce72c822\t//sm4ekey v2.4S,v1.4S,v18.4S\n.inst\t0xce73c843\t//sm4ekey v3.4S,v2.4S,v19.4S\n.inst\t0xce74c864\t//sm4ekey v4.4S,v3.4S,v20.4S\n\tst1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x1],64\n.inst\t0xce75c885\t//sm4ekey v5.4S,v4.4S,v21.4S\n.inst\t0xce76c8a6\t//sm4ekey v6.4S,v5.4S,v22.4S\n.inst\t0xce77c8c7\t//sm4ekey v7.4S,v6.4S,v23.4S\n\tst1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x1]\n\tret\n.size\tsm4_v8_set_encrypt_key,.-sm4_v8_set_encrypt_key\n.globl\tsm4_v8_set_decrypt_key\n.type\tsm4_v8_set_decrypt_key,%function\n.align\t5\nsm4_v8_set_decrypt_key:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v7.4s},[x0]\n\tadrp\tx2,.Lfk\n\tadd\tx2,x2,#:lo12:.Lfk\n\tld1\t{v24.4s},[x2]\n\tadrp\tx2,.Lck\n\tadd\tx2,x2,#:lo12:.Lck\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x2],64\n#ifndef __AARCH64EB__\n\trev32\tv7.16b,v7.16b\n#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv7.16b, v7.16b,v24.16b;\n.inst\t0xce70c8e7\t//sm4ekey v7.4S,v7.4S,v16.4S\n.inst\t0xce71c8e6\t//sm4ekey v6.4S,v7.4S,v17.4S\n.inst\t0xce72c8c5\t//sm4ekey v5.4S,v6.4S,v18.4S\n\trev64\tv7.4s,v7.4s\n\trev64\tv6.4s,v6.4s\n\text\tv7.16b,v7.16b,v7.16b,#8\n\text\tv6.16b,v6.16b,v6.16b,#8\n.inst\t0xce73c8a4\t//sm4ekey v4.4S,v5.4S,v19.4S\n.inst\t0xce74c883\t//sm4ekey v3.4S,v4.4S,v20.4S\n\trev64\tv5.4s,v5.4s\n\trev64\tv4.4s,v4.4s\n\text\tv5.16b,v5.16b,v5.16b,#8\n\text\tv4.16b,v4.16b,v4.16b,#8\n.inst\t0xce75c862\t//sm4ekey v2.4S,v3.4S,v21.4S\n.inst\t0xce76c841\t//sm4ekey v1.4S,v2.4S,v22.4S\n\trev64\tv3.4s,v3.4s\n\trev64\tv2.4s,v2.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:3", "text": "#endif\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x2]\n\teor\tv7.16b, v7.16b,v24.16b;\n.inst\t0xce70c8e7\t//sm4ekey v7.4S,v7.4S,v16.4S\n.inst\t0xce71c8e6\t//sm4ekey v6.4S,v7.4S,v17.4S\n.inst\t0xce72c8c5\t//sm4ekey v5.4S,v6.4S,v18.4S\n\trev64\tv7.4s,v7.4s\n\trev64\tv6.4s,v6.4s\n\text\tv7.16b,v7.16b,v7.16b,#8\n\text\tv6.16b,v6.16b,v6.16b,#8\n.inst\t0xce73c8a4\t//sm4ekey v4.4S,v5.4S,v19.4S\n.inst\t0xce74c883\t//sm4ekey v3.4S,v4.4S,v20.4S\n\trev64\tv5.4s,v5.4s\n\trev64\tv4.4s,v4.4s\n\text\tv5.16b,v5.16b,v5.16b,#8\n\text\tv4.16b,v4.16b,v4.16b,#8\n.inst\t0xce75c862\t//sm4ekey v2.4S,v3.4S,v21.4S\n.inst\t0xce76c841\t//sm4ekey v1.4S,v2.4S,v22.4S\n\trev64\tv3.4s,v3.4s\n\trev64\tv2.4s,v2.4s\n\text\tv3.16b,v3.16b,v3.16b,#8\n\text\tv2.16b,v2.16b,v2.16b,#8\n.inst\t0xce77c820\t//sm4ekey v0.4S,v1.4S,v23.4S\n\trev64\tv1.4s, v1.4s\n\trev64\tv0.4s, v0.4s\n\text\tv1.16b,v1.16b,v1.16b,#8\n\text\tv0.16b,v0.16b,v0.16b,#8\n\tst1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x1],64\n\tst1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x1]\n\tret\n.size\tsm4_v8_set_decrypt_key,.-sm4_v8_set_decrypt_key\n.globl\tsm4_v8_encrypt\n.type\tsm4_v8_encrypt,%function\n.align\t5\nsm4_v8_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v16.4s},[x0]\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x2],64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x2]\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_encrypt,.-sm4_v8_encrypt\n.globl\tsm4_v8_decrypt\n.type\tsm4_v8_decrypt,%function", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:4", "text": "rev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_encrypt,.-sm4_v8_encrypt\n.globl\tsm4_v8_decrypt\n.type\tsm4_v8_decrypt,%function\n.align\t5\nsm4_v8_decrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v16.4s},[x0]\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x2],64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x2]\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_decrypt,.-sm4_v8_decrypt\n.globl\tsm4_v8_ecb_encrypt\n.type\tsm4_v8_ecb_encrypt,%function\n.align\t5\nsm4_v8_ecb_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n1:\n\tcmp\tx2,#64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\tcmp\tx2,#128\n\tb.lt\t2f\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x0],#64\n\t// 8 blocks", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:5", "text": "rev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1]\n\tret\n.size\tsm4_v8_decrypt,.-sm4_v8_decrypt\n.globl\tsm4_v8_ecb_encrypt\n.type\tsm4_v8_ecb_encrypt,%function\n.align\t5\nsm4_v8_ecb_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n1:\n\tcmp\tx2,#64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\tcmp\tx2,#128\n\tb.lt\t2f\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x0],#64\n\t// 8 blocks\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:6", "text": "#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:7", "text": "rev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s\n\n.inst\t0xcec08454\t//sm4e v20.4s,v2.4s\n.inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:8", "text": ".inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,#128\n\tb.gt\t1b\n\tret\n\t// 4 blocks\n2:\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:9", "text": "#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,#128\n\tb.gt\t1b\n\tret\n\t// 4 blocks\n2:\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:10", "text": ".inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.gt\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t1f\n\tld1\t{v16.4s},[x0],#16\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:11", "text": "st1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.gt\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t1f\n\tld1\t{v16.4s},[x0],#16\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\tst1\t{v16.4s},[x1],#16\n\tb.ne\t1b\n1:\n\tret\n.size\tsm4_v8_ecb_encrypt,.-sm4_v8_ecb_encrypt\n.globl\tsm4_v8_cbc_encrypt\n.type\tsm4_v8_cbc_encrypt,%function\n.align\t5\nsm4_v8_cbc_encrypt:\n\tAARCH64_VALID_CALL_TARGET\n\tstp\td8,d9,[sp, #-16]!\n\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],#64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n\tld1\t{v8.4s},[x4]\n\tcmp\tw5,#0\n\tb.eq\t.Ldec\n1:\n\tcmp\tx2, #64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\teor\tv16.16b,v16.16b,v8.16b\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:12", "text": "1:\n\tcmp\tx2, #64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0],#64\n\teor\tv16.16b,v16.16b,v8.16b\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n\teor\tv17.16b,v17.16b,v16.16b\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\trev64\tv17.4S,v17.4S\n\text\tv17.16b,v17.16b,v17.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv18.16b,v18.16b,v17.16b\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\trev64\tv18.4S,v18.4S\n\text\tv18.16b,v18.16b,v18.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n\teor\tv19.16b,v19.16b,v18.16b\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:13", "text": "#endif\n\teor\tv18.16b,v18.16b,v17.16b\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\trev64\tv18.4S,v18.4S\n\text\tv18.16b,v18.16b,v18.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n\teor\tv19.16b,v19.16b,v18.16b\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\tmov\tv8.16b,v19.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.ne\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t3f\n\tld1\t{v16.4s},[x0],#16\n\teor\tv8.16b,v8.16b,v16.16b\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n.inst\t0xcec08408\t//sm4e v8.4s,v0.4s\n.inst\t0xcec08428\t//sm4e v8.4s,v1.4s\n.inst\t0xcec08448\t//sm4e v8.4s,v2.4s\n.inst\t0xcec08468\t//sm4e v8.4s,v3.4s\n.inst\t0xcec08488\t//sm4e v8.4s,v4.4s\n.inst\t0xcec084a8\t//sm4e v8.4s,v5.4s\n.inst\t0xcec084c8\t//sm4e v8.4s,v6.4s\n.inst\t0xcec084e8\t//sm4e v8.4s,v7.4s\n\trev64\tv8.4S,v8.4S\n\text\tv8.16b,v8.16b,v8.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n\tst1\t{v8.4s},[x1],#16\n\tb.ne\t1b\n\tb\t3f", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:14", "text": "eor\tv8.16b,v8.16b,v16.16b\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n.inst\t0xcec08408\t//sm4e v8.4s,v0.4s\n.inst\t0xcec08428\t//sm4e v8.4s,v1.4s\n.inst\t0xcec08448\t//sm4e v8.4s,v2.4s\n.inst\t0xcec08468\t//sm4e v8.4s,v3.4s\n.inst\t0xcec08488\t//sm4e v8.4s,v4.4s\n.inst\t0xcec084a8\t//sm4e v8.4s,v5.4s\n.inst\t0xcec084c8\t//sm4e v8.4s,v6.4s\n.inst\t0xcec084e8\t//sm4e v8.4s,v7.4s\n\trev64\tv8.4S,v8.4S\n\text\tv8.16b,v8.16b,v8.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n\tst1\t{v8.4s},[x1],#16\n\tb.ne\t1b\n\tb\t3f\n.Ldec:\n1:\n\tcmp\tx2, #64\n\tb.lt\t1f\n\tld1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x0]\n\tld1\t{v24.4s,v25.4s,v26.4s,v27.4s},[x0],#64\n\tcmp\tx2,#128\n\tb.lt\t2f\n\t// 8 blocks mode\n\tld1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x0]\n\tld1\t{v28.4s,v29.4s,v30.4s,v31.4s},[x0],#64\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:15", "text": "#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:16", "text": ".inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s\n\n.inst\t0xcec08454\t//sm4e v20.4s,v2.4s\n.inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:17", "text": ".inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\teor\tv17.16b,v17.16b,v24.16b\n\teor\tv18.16b,v18.16b,v25.16b\n\tmov\tv8.16b,v31.16b\n\teor\tv19.16b,v19.16b,v26.16b\n\teor\tv20.16b,v20.16b,v27.16b\n\teor\tv21.16b,v21.16b,v28.16b", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:18", "text": "#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\teor\tv17.16b,v17.16b,v24.16b\n\teor\tv18.16b,v18.16b,v25.16b\n\tmov\tv8.16b,v31.16b\n\teor\tv19.16b,v19.16b,v26.16b\n\teor\tv20.16b,v20.16b,v27.16b\n\teor\tv21.16b,v21.16b,v28.16b\n\teor\tv22.16b,v22.16b,v29.16b\n\teor\tv23.16b,v23.16b,v30.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,128\n\tb.gt\t1b\n\tb\t3f\n\t// 4 blocks mode\n2:\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:19", "text": "#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:20", "text": "rev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\teor\tv17.16b,v17.16b,v24.16b\n\tmov\tv8.16b,v27.16b\n\teor\tv18.16b,v18.16b,v25.16b\n\teor\tv19.16b,v19.16b,v26.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#64\n\tb.gt\t1b\n1:\n\tsubs\tx2,x2,#16\n\tb.lt\t3f\n\tld1\t{v16.4s},[x0],#16\n\tmov\tv24.16b,v16.16b\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\tmov\tv8.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.ne\t1b\n3:\n\t// save back IV\n\tst1\t{v8.4s},[x4]\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_cbc_encrypt,.-sm4_v8_cbc_encrypt\n.globl\tsm4_v8_ctr32_encrypt_blocks", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:21", "text": ".inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v8.16b\n\tmov\tv8.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.ne\t1b\n3:\n\t// save back IV\n\tst1\t{v8.4s},[x4]\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_cbc_encrypt,.-sm4_v8_cbc_encrypt\n.globl\tsm4_v8_ctr32_encrypt_blocks\n.type\tsm4_v8_ctr32_encrypt_blocks,%function\n.align\t5\nsm4_v8_ctr32_encrypt_blocks:\n\tAARCH64_VALID_CALL_TARGET\n\tstp\td8,d9,[sp, #-16]!\n\n\tld1\t{v8.4s},[x4]\n\tld1\t{v0.4s,v1.4s,v2.4s,v3.4s},[x3],64\n\tld1\t{v4.4s,v5.4s,v6.4s,v7.4s},[x3]\n#ifndef __AARCH64EB__\n\trev32\tv8.16b,v8.16b\n#endif\n\tmov\tw5,v8.s[3]\n1:\n\tcmp\tx2,#4\n\tb.lt\t1f\n\tld1\t{v24.4s,v25.4s,v26.4s,v27.4s},[x0],#64\n\tmov\tv16.16b,v8.16b\n\tmov\tv17.16b,v8.16b\n\tmov\tv18.16b,v8.16b\n\tmov\tv19.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv17.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv18.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv19.s[3],w5\n\tcmp\tx2,#8\n\tb.lt\t2f\n\tld1\t{v28.4s,v29.4s,v30.4s,v31.4s},[x0],#64\n\tmov\tv20.16b,v8.16b\n\tmov\tv21.16b,v8.16b\n\tmov\tv22.16b,v8.16b\n\tmov\tv23.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv20.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv21.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv22.s[3],w5", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:22", "text": "mov\tv19.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv17.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv18.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv19.s[3],w5\n\tcmp\tx2,#8\n\tb.lt\t2f\n\tld1\t{v28.4s,v29.4s,v30.4s,v31.4s},[x0],#64\n\tmov\tv20.16b,v8.16b\n\tmov\tv21.16b,v8.16b\n\tmov\tv22.16b,v8.16b\n\tmov\tv23.16b,v8.16b\n\tadd\tw5,w5,#1\n\tmov\tv20.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv21.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv22.s[3],w5\n\tadd\tw5,w5,#1\n\tmov\tv23.s[3],w5\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:23", "text": ".inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n.inst\t0xcec08414\t//sm4e v20.4s,v0.4s\n.inst\t0xcec08415\t//sm4e v21.4s,v0.4s\n.inst\t0xcec08416\t//sm4e v22.4s,v0.4s\n.inst\t0xcec08417\t//sm4e v23.4s,v0.4s\n\n.inst\t0xcec08434\t//sm4e v20.4s,v1.4s\n.inst\t0xcec08435\t//sm4e v21.4s,v1.4s\n.inst\t0xcec08436\t//sm4e v22.4s,v1.4s\n.inst\t0xcec08437\t//sm4e v23.4s,v1.4s\n\n.inst\t0xcec08454\t//sm4e v20.4s,v2.4s\n.inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:24", "text": ".inst\t0xcec08455\t//sm4e v21.4s,v2.4s\n.inst\t0xcec08456\t//sm4e v22.4s,v2.4s\n.inst\t0xcec08457\t//sm4e v23.4s,v2.4s\n\n.inst\t0xcec08474\t//sm4e v20.4s,v3.4s\n.inst\t0xcec08475\t//sm4e v21.4s,v3.4s\n.inst\t0xcec08476\t//sm4e v22.4s,v3.4s\n.inst\t0xcec08477\t//sm4e v23.4s,v3.4s\n\n.inst\t0xcec08494\t//sm4e v20.4s,v4.4s\n.inst\t0xcec08495\t//sm4e v21.4s,v4.4s\n.inst\t0xcec08496\t//sm4e v22.4s,v4.4s\n.inst\t0xcec08497\t//sm4e v23.4s,v4.4s\n\n.inst\t0xcec084b4\t//sm4e v20.4s,v5.4s\n.inst\t0xcec084b5\t//sm4e v21.4s,v5.4s\n.inst\t0xcec084b6\t//sm4e v22.4s,v5.4s\n.inst\t0xcec084b7\t//sm4e v23.4s,v5.4s\n\n.inst\t0xcec084d4\t//sm4e v20.4s,v6.4s\n.inst\t0xcec084d5\t//sm4e v21.4s,v6.4s\n.inst\t0xcec084d6\t//sm4e v22.4s,v6.4s\n.inst\t0xcec084d7\t//sm4e v23.4s,v6.4s\n\n.inst\t0xcec084f4\t//sm4e v20.4s,v7.4s\n\trev64\tv20.4S,v20.4S\n.inst\t0xcec084f5\t//sm4e v21.4s,v7.4s\n\text\tv20.16b,v20.16b,v20.16b,#8\n\trev64\tv21.4S,v21.4S\n.inst\t0xcec084f6\t//sm4e v22.4s,v7.4s\n\text\tv21.16b,v21.16b,v21.16b,#8\n\trev64\tv22.4S,v22.4S\n.inst\t0xcec084f7\t//sm4e v23.4s,v7.4s\n\text\tv22.16b,v22.16b,v22.16b,#8\n\trev64\tv23.4S,v23.4S\n\text\tv23.16b,v23.16b,v23.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:25", "text": "rev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv20.16b,v20.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv21.16b,v21.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv22.16b,v22.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv23.16b,v23.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v26.16b\n\teor\tv19.16b,v19.16b,v27.16b\n\teor\tv20.16b,v20.16b,v28.16b\n\teor\tv21.16b,v21.16b,v29.16b\n\teor\tv22.16b,v22.16b,v30.16b\n\teor\tv23.16b,v23.16b,v31.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tst1\t{v20.4s,v21.4s,v22.4s,v23.4s},[x1],#64\n\tsubs\tx2,x2,#8\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n2:\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08411\t//sm4e v17.4s,v0.4s\n.inst\t0xcec08412\t//sm4e v18.4s,v0.4s\n.inst\t0xcec08413\t//sm4e v19.4s,v0.4s\n\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:26", "text": ".inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08431\t//sm4e v17.4s,v1.4s\n.inst\t0xcec08432\t//sm4e v18.4s,v1.4s\n.inst\t0xcec08433\t//sm4e v19.4s,v1.4s\n\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08451\t//sm4e v17.4s,v2.4s\n.inst\t0xcec08452\t//sm4e v18.4s,v2.4s\n.inst\t0xcec08453\t//sm4e v19.4s,v2.4s\n\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08471\t//sm4e v17.4s,v3.4s\n.inst\t0xcec08472\t//sm4e v18.4s,v3.4s\n.inst\t0xcec08473\t//sm4e v19.4s,v3.4s\n\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec08491\t//sm4e v17.4s,v4.4s\n.inst\t0xcec08492\t//sm4e v18.4s,v4.4s\n.inst\t0xcec08493\t//sm4e v19.4s,v4.4s\n\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084b1\t//sm4e v17.4s,v5.4s\n.inst\t0xcec084b2\t//sm4e v18.4s,v5.4s\n.inst\t0xcec084b3\t//sm4e v19.4s,v5.4s\n\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084d1\t//sm4e v17.4s,v6.4s\n.inst\t0xcec084d2\t//sm4e v18.4s,v6.4s\n.inst\t0xcec084d3\t//sm4e v19.4s,v6.4s\n\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n.inst\t0xcec084f1\t//sm4e v17.4s,v7.4s\n\text\tv16.16b,v16.16b,v16.16b,#8\n\trev64\tv17.4S,v17.4S\n.inst\t0xcec084f2\t//sm4e v18.4s,v7.4s\n\text\tv17.16b,v17.16b,v17.16b,#8\n\trev64\tv18.4S,v18.4S\n.inst\t0xcec084f3\t//sm4e v19.4s,v7.4s\n\text\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v26.16b\n\teor\tv19.16b,v19.16b,v27.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:27", "text": "ext\tv18.16b,v18.16b,v18.16b,#8\n\trev64\tv19.4S,v19.4S\n\text\tv19.16b,v19.16b,v19.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv17.16b,v17.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv18.16b,v18.16b\n#endif\n#ifndef __AARCH64EB__\n\trev32\tv19.16b,v19.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\teor\tv17.16b,v17.16b,v25.16b\n\teor\tv18.16b,v18.16b,v26.16b\n\teor\tv19.16b,v19.16b,v27.16b\n\tst1\t{v16.4s,v17.4s,v18.4s,v19.4s},[x1],#64\n\tsubs\tx2,x2,#4\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n1:\n\tsubs\tx2,x2,#1\n\tb.lt\t3f\n\tmov\tv16.16b,v8.16b\n\tld1\t{v24.4s},[x0],#16\n.inst\t0xcec08410\t//sm4e v16.4s,v0.4s\n.inst\t0xcec08430\t//sm4e v16.4s,v1.4s\n.inst\t0xcec08450\t//sm4e v16.4s,v2.4s\n.inst\t0xcec08470\t//sm4e v16.4s,v3.4s\n.inst\t0xcec08490\t//sm4e v16.4s,v4.4s\n.inst\t0xcec084b0\t//sm4e v16.4s,v5.4s\n.inst\t0xcec084d0\t//sm4e v16.4s,v6.4s\n.inst\t0xcec084f0\t//sm4e v16.4s,v7.4s\n\trev64\tv16.4S,v16.4S\n\text\tv16.16b,v16.16b,v16.16b,#8\n#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n3:\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_ctr32_encrypt_blocks,.-sm4_v8_ctr32_encrypt_blocks", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 1041, "line_end": 1093}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S:28", "text": "#ifndef __AARCH64EB__\n\trev32\tv16.16b,v16.16b\n#endif\n\teor\tv16.16b,v16.16b,v24.16b\n\tst1\t{v16.4s},[x1],#16\n\tb.eq\t3f\n\tadd\tw5,w5,#1\n\tmov\tv8.s[3],w5\n\tb\t1b\n3:\n\tldp\td8,d9,[sp],#16\n\tret\n.size\tsm4_v8_ctr32_encrypt_blocks,.-sm4_v8_ctr32_encrypt_blocks", "arch": "arm", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/sm4-armv8.S", "line_start": 1081, "line_end": 1093}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:1", "text": "#include \"arm_asm.h\"\n#include \"arm_arch.h\"\n\n.section\t.rodata\n\n.type\t_vpaes_consts,%object\n.align\t7\t// totally strategic alignment\n_vpaes_consts:\n.Lk_mc_forward:\t//\tmc_forward\n.quad\t0x0407060500030201, 0x0C0F0E0D080B0A09\n.quad\t0x080B0A0904070605, 0x000302010C0F0E0D\n.quad\t0x0C0F0E0D080B0A09, 0x0407060500030201\n.quad\t0x000302010C0F0E0D, 0x080B0A0904070605\n.Lk_mc_backward:\t//\tmc_backward\n.quad\t0x0605040702010003, 0x0E0D0C0F0A09080B\n.quad\t0x020100030E0D0C0F, 0x0A09080B06050407\n.quad\t0x0E0D0C0F0A09080B, 0x0605040702010003\n.quad\t0x0A09080B06050407, 0x020100030E0D0C0F\n.Lk_sr:\t//\tsr\n.quad\t0x0706050403020100, 0x0F0E0D0C0B0A0908\n.quad\t0x030E09040F0A0500, 0x0B06010C07020D08\n.quad\t0x0F060D040B020900, 0x070E050C030A0108\n.quad\t0x0B0E0104070A0D00, 0x0306090C0F020508\n\n//\n// \"Hot\" constants\n//\n.Lk_inv:\t//\tinv, inva\n.quad\t0x0E05060F0D080180, 0x040703090A0B0C02\n.quad\t0x01040A060F0B0780, 0x030D0E0C02050809\n.Lk_ipt:\t//\tinput transform (lo, hi)\n.quad\t0xC2B2E8985A2A7000, 0xCABAE09052227808\n.quad\t0x4C01307D317C4D00, 0xCD80B1FCB0FDCC81\n.Lk_sbo:\t//\tsbou, sbot\n.quad\t0xD0D26D176FBDC700, 0x15AABF7AC502A878\n.quad\t0xCFE474A55FBB6A00, 0x8E1E90D1412B35FA\n.Lk_sb1:\t//\tsb1u, sb1t\n.quad\t0x3618D415FAE22300, 0x3BF7CCC10D2ED9EF\n.quad\t0xB19BE18FCB503E00, 0xA5DF7A6E142AF544\n.Lk_sb2:\t//\tsb2u, sb2t\n.quad\t0x69EB88400AE12900, 0xC2A163C8AB82234A\n.quad\t0xE27A93C60B712400, 0x5EB7E955BC982FCD\n\n//\n//  Decryption stuff\n//\n.Lk_dipt:\t//\tdecryption input transform\n.quad\t0x0F505B040B545F00, 0x154A411E114E451A\n.quad\t0x86E383E660056500, 0x12771772F491F194\n.Lk_dsbo:\t//\tdecryption sbox final output\n.quad\t0x1387EA537EF94000, 0xC7AA6DB9D4943E2D\n.quad\t0x12D7560F93441D00, 0xCA4B8159D8C58E9C\n.Lk_dsb9:\t//\tdecryption sbox output *9*u, *9*t\n.quad\t0x851C03539A86D600, 0xCAD51F504F994CC9\n.quad\t0xC03B1789ECD74900, 0x725E2C9EB2FBA565\n.Lk_dsbd:\t//\tdecryption sbox output *D*u, *D*t\n.quad\t0x7D57CCDFE6B1A200, 0xF56E9B13882A4439\n.quad\t0x3CE2FAF724C6CB00, 0x2931180D15DEEFD3\n.Lk_dsbb:\t//\tdecryption sbox output *B*u, *B*t\n.quad\t0xD022649296B44200, 0x602646F6B0F2D404", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:2", "text": ".quad\t0x69EB88400AE12900, 0xC2A163C8AB82234A\n.quad\t0xE27A93C60B712400, 0x5EB7E955BC982FCD\n\n//\n//  Decryption stuff\n//\n.Lk_dipt:\t//\tdecryption input transform\n.quad\t0x0F505B040B545F00, 0x154A411E114E451A\n.quad\t0x86E383E660056500, 0x12771772F491F194\n.Lk_dsbo:\t//\tdecryption sbox final output\n.quad\t0x1387EA537EF94000, 0xC7AA6DB9D4943E2D\n.quad\t0x12D7560F93441D00, 0xCA4B8159D8C58E9C\n.Lk_dsb9:\t//\tdecryption sbox output *9*u, *9*t\n.quad\t0x851C03539A86D600, 0xCAD51F504F994CC9\n.quad\t0xC03B1789ECD74900, 0x725E2C9EB2FBA565\n.Lk_dsbd:\t//\tdecryption sbox output *D*u, *D*t\n.quad\t0x7D57CCDFE6B1A200, 0xF56E9B13882A4439\n.quad\t0x3CE2FAF724C6CB00, 0x2931180D15DEEFD3\n.Lk_dsbb:\t//\tdecryption sbox output *B*u, *B*t\n.quad\t0xD022649296B44200, 0x602646F6B0F2D404\n.quad\t0xC19498A6CD596700, 0xF3FF0C3E3255AA6B\n.Lk_dsbe:\t//\tdecryption sbox output *E*u, *E*t\n.quad\t0x46F2929626D4D000, 0x2242600464B4F6B0\n.quad\t0x0C55A6CDFFAAC100, 0x9467F36B98593E32\n\n//\n//  Key schedule constants\n//\n.Lk_dksd:\t//\tdecryption key schedule: invskew x*D\n.quad\t0xFEB91A5DA3E44700, 0x0740E3A45A1DBEF9\n.quad\t0x41C277F4B5368300, 0x5FDC69EAAB289D1E\n.Lk_dksb:\t//\tdecryption key schedule: invskew x*B\n.quad\t0x9A4FCA1F8550D500, 0x03D653861CC94C99\n.quad\t0x115BEDA7B6FC4A00, 0xD993256F7E3482C8\n.Lk_dkse:\t//\tdecryption key schedule: invskew x*E + 0x63\n.quad\t0xD5031CCA1FC9D600, 0x53859A4C994F5086\n.quad\t0xA23196054FDC7BE8, 0xCD5EF96A20B31487\n.Lk_dks9:\t//\tdecryption key schedule: invskew x*9\n.quad\t0xB6116FC87ED9A700, 0x4AED933482255BFC\n.quad\t0x4576516227143300, 0x8BB89FACE9DAFDCE\n\n.Lk_rcon:\t//\trcon\n.quad\t0x1F8391B9AF9DEEB6, 0x702A98084D7C7D81\n\n.Lk_opt:\t//\toutput transform\n.quad\t0xFF9F4929D6B66000, 0xF7974121DEBE6808\n.quad\t0x01EDBD5150BCEC00, 0xE10D5DB1B05C0CE0\n.Lk_deskew:\t//\tdeskew tables: inverts the sbox's \"skew\"\n.quad\t0x07E4A34047A4E300, 0x1DFEB95A5DBEF91A\n.quad\t0x5F36B5DC83EA6900, 0x2841C2ABF49D1E77\n\n.byte\t86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105,111,110,32,65,69,83,32,102,111,114,32,65,82,77,118,56,44,32,77,105,107,101,32,72,97,109,98,117,114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105,118,101,114,115,105,116,121,41,0\n.align\t2\n.size\t_vpaes_consts,.-_vpaes_consts\n.align\t6\n\n.text\n\n//\n//  _aes_preheat", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:3", "text": ".Lk_rcon:\t//\trcon\n.quad\t0x1F8391B9AF9DEEB6, 0x702A98084D7C7D81\n\n.Lk_opt:\t//\toutput transform\n.quad\t0xFF9F4929D6B66000, 0xF7974121DEBE6808\n.quad\t0x01EDBD5150BCEC00, 0xE10D5DB1B05C0CE0\n.Lk_deskew:\t//\tdeskew tables: inverts the sbox's \"skew\"\n.quad\t0x07E4A34047A4E300, 0x1DFEB95A5DBEF91A\n.quad\t0x5F36B5DC83EA6900, 0x2841C2ABF49D1E77\n\n.byte\t86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105,111,110,32,65,69,83,32,102,111,114,32,65,82,77,118,56,44,32,77,105,107,101,32,72,97,109,98,117,114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105,118,101,114,115,105,116,121,41,0\n.align\t2\n.size\t_vpaes_consts,.-_vpaes_consts\n.align\t6\n\n.text\n\n//\n//  _aes_preheat\n//\n//  Fills register %r10 -> .aes_consts (so you can -fPIC)\n//  and %xmm9-%xmm15 as specified below.\n//\n.type\t_vpaes_encrypt_preheat,%function\n.align\t4\n_vpaes_encrypt_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv17.16b, #0x0f\n\tld1\t{v18.2d,v19.2d}, [x10],#32\t// .Lk_inv\n\tld1\t{v20.2d,v21.2d,v22.2d,v23.2d}, [x10],#64\t// .Lk_ipt, .Lk_sbo\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x10]\t\t// .Lk_sb1, .Lk_sb2\n\tret\n.size\t_vpaes_encrypt_preheat,.-_vpaes_encrypt_preheat\n\n//\n//  _aes_encrypt_core\n//\n//  AES-encrypt %xmm0.\n//\n//  Inputs:\n//     %xmm0 = input\n//     %xmm9-%xmm15 as in _vpaes_preheat\n//    (%rdx) = scheduled keys\n//\n//  Output in %xmm0\n//  Clobbers  %xmm1-%xmm5, %r9, %r10, %r11, %rax\n//  Preserves %xmm6 - %xmm8 so you get some local vectors\n//\n//\n.type\t_vpaes_encrypt_core,%function\n.align\t4\n_vpaes_encrypt_core:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\tadrp\tx11, .Lk_mc_forward+16\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward+16\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt(%rip),\t%xmm2\t# iptlo\n\tld1\t{v16.2d}, [x9], #16\t\t// vmovdqu\t(%r9),\t%xmm5\t\t# round0 key", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:4", "text": "//\n//  Inputs:\n//     %xmm0 = input\n//     %xmm9-%xmm15 as in _vpaes_preheat\n//    (%rdx) = scheduled keys\n//\n//  Output in %xmm0\n//  Clobbers  %xmm1-%xmm5, %r9, %r10, %r11, %rax\n//  Preserves %xmm6 - %xmm8 so you get some local vectors\n//\n//\n.type\t_vpaes_encrypt_core,%function\n.align\t4\n_vpaes_encrypt_core:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\tadrp\tx11, .Lk_mc_forward+16\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward+16\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt(%rip),\t%xmm2\t# iptlo\n\tld1\t{v16.2d}, [x9], #16\t\t// vmovdqu\t(%r9),\t%xmm5\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v7.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm1\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt+16(%rip), %xmm3\t# ipthi\n\ttbl\tv2.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm3,\t%xmm2\n\teor\tv0.16b, v1.16b, v16.16b\t\t// vpxor\t%xmm5,\t%xmm1,\t%xmm0\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tb\t.Lenc_entry\n\n.align\t4\n.Lenc_loop:\n\t// middle of middle round\n\tadd\tx10, x11, #0x40\n\ttbl\tv4.16b, {v25.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm13,\t%xmm4\t# 4 = sb1u\n\tld1\t{v1.2d}, [x11], #16\t\t// vmovdqa\t-0x40(%r11,%r10), %xmm1\t# .Lk_mc_forward[]\n\ttbl\tv0.16b, {v24.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm12,\t%xmm0\t# 0 = sb1t\n\teor\tv4.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\ttbl\tv5.16b,\t{v27.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm15,\t%xmm5\t# 4 = sb2u\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\ttbl\tv2.16b, {v26.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm14,\t%xmm2\t# 2 = sb2t\n\tld1\t{v4.2d}, [x10]\t\t\t// vmovdqa\t(%r11,%r10), %xmm4\t# .Lk_mc_backward[]\n\ttbl\tv3.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm3\t# 0 = B\n\teor\tv2.16b, v2.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm2,\t%xmm2\t# 2 = 2A\n\ttbl\tv0.16b, {v0.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm0,\t%xmm0\t# 3 = D\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 0 = 2A+B\n\ttbl\tv4.16b, {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm4\t# 0 = 2B+C\n\teor\tv0.16b, v0.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm0,\t%xmm0\t# 3 = 2A+B+D\n\tand\tx11, x11, #~(1<<6)\t\t// and\t\t$0x30,\t%r11\t\t# ... mod 4\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0, %xmm0\t# 0 = 2A+3B+C+D\n\tsub\tw8, w8, #1\t\t\t// nr--\n\n.Lenc_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv5.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\teor\tv1.16b, v1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:5", "text": "ld1\t{v4.2d}, [x10]\t\t\t// vmovdqa\t(%r11,%r10), %xmm4\t# .Lk_mc_backward[]\n\ttbl\tv3.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm3\t# 0 = B\n\teor\tv2.16b, v2.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm2,\t%xmm2\t# 2 = 2A\n\ttbl\tv0.16b, {v0.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm0,\t%xmm0\t# 3 = D\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 0 = 2A+B\n\ttbl\tv4.16b, {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm4\t# 0 = 2B+C\n\teor\tv0.16b, v0.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm0,\t%xmm0\t# 3 = 2A+B+D\n\tand\tx11, x11, #~(1<<6)\t\t// and\t\t$0x30,\t%r11\t\t# ... mod 4\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0, %xmm0\t# 0 = 2A+3B+C+D\n\tsub\tw8, w8, #1\t\t\t// nr--\n\n.Lenc_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv5.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\teor\tv1.16b, v1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2  \t# 2 = 1/iak\n\ttbl\tv3.16b, {v18.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm3\t# 3 = 1/jak\n\teor\tv2.16b, v2.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2  \t# 2 = io\n\teor\tv3.16b, v3.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm3,\t%xmm3\t# 3 = jo\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm5\n\tcbnz\tw8, .Lenc_loop\n\n\t// middle of last round\n\tadd\tx10, x11, #0x80\n\t\t\t\t\t\t// vmovdqa\t-0x60(%r10), %xmm4\t# 3 : sbou\t.Lk_sbo\n\t\t\t\t\t\t// vmovdqa\t-0x50(%r10), %xmm0\t# 0 : sbot\t.Lk_sbo+16\n\ttbl\tv4.16b, {v22.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\tld1\t{v1.2d}, [x10]\t\t\t// vmovdqa\t0x40(%r11,%r10), %xmm1\t# .Lk_sr[]\n\ttbl\tv0.16b, {v23.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm0,\t%xmm0\t# 0 = sb1t\n\teor\tv4.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\ttbl\tv0.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\n\tret\n.size\t_vpaes_encrypt_core,.-_vpaes_encrypt_core\n\n.globl\tvpaes_encrypt\n.type\tvpaes_encrypt,%function\n.align\t4\nvpaes_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_encrypt_preheat\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_encrypt,.-vpaes_encrypt\n\n.type\t_vpaes_encrypt_2x,%function", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:6", "text": ".globl\tvpaes_encrypt\n.type\tvpaes_encrypt,%function\n.align\t4\nvpaes_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_encrypt_preheat\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_encrypt,.-vpaes_encrypt\n\n.type\t_vpaes_encrypt_2x,%function\n.align\t4\n_vpaes_encrypt_2x:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\tadrp\tx11, .Lk_mc_forward+16\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward+16\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt(%rip),\t%xmm2\t# iptlo\n\tld1\t{v16.2d}, [x9], #16\t\t// vmovdqu\t(%r9),\t%xmm5\t\t# round0 key\n\tand\tv1.16b,  v14.16b,  v17.16b\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b,  v14.16b,  #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\tand\tv9.16b,  v15.16b,  v17.16b\n\tushr\tv8.16b,  v15.16b,  #4\n\ttbl\tv1.16b,  {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm1\n\ttbl\tv9.16b,  {v20.16b}, v9.16b\n\t\t\t\t\t\t// vmovdqa\t.Lk_ipt+16(%rip), %xmm3\t# ipthi\n\ttbl\tv2.16b,  {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm3,\t%xmm2\n\ttbl\tv10.16b, {v21.16b}, v8.16b\n\teor\tv0.16b,  v1.16b,   v16.16b\t// vpxor\t%xmm5,\t%xmm1,\t%xmm0\n\teor\tv8.16b,  v9.16b,   v16.16b\n\teor\tv0.16b,  v0.16b,   v2.16b\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v8.16b,   v10.16b\n\tb\t.Lenc_2x_entry\n\n.align\t4\n.Lenc_2x_loop:\n\t// middle of middle round\n\tadd\tx10, x11, #0x40\n\ttbl\tv4.16b,  {v25.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm13,\t%xmm4\t# 4 = sb1u\n\ttbl\tv12.16b, {v25.16b}, v10.16b\n\tld1\t{v1.2d}, [x11], #16\t\t// vmovdqa\t-0x40(%r11,%r10), %xmm1\t# .Lk_mc_forward[]\n\ttbl\tv0.16b,  {v24.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm12,\t%xmm0\t# 0 = sb1t\n\ttbl\tv8.16b,  {v24.16b}, v11.16b\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\ttbl\tv5.16b,\t {v27.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm15,\t%xmm5\t# 4 = sb2u\n\ttbl\tv13.16b, {v27.16b}, v10.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v8.16b,  v12.16b\n\ttbl\tv2.16b,  {v26.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm14,\t%xmm2\t# 2 = sb2t\n\ttbl\tv10.16b, {v26.16b}, v11.16b", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:7", "text": "eor\tv8.16b,  v8.16b,   v10.16b\n\tb\t.Lenc_2x_entry\n\n.align\t4\n.Lenc_2x_loop:\n\t// middle of middle round\n\tadd\tx10, x11, #0x40\n\ttbl\tv4.16b,  {v25.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm13,\t%xmm4\t# 4 = sb1u\n\ttbl\tv12.16b, {v25.16b}, v10.16b\n\tld1\t{v1.2d}, [x11], #16\t\t// vmovdqa\t-0x40(%r11,%r10), %xmm1\t# .Lk_mc_forward[]\n\ttbl\tv0.16b,  {v24.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm12,\t%xmm0\t# 0 = sb1t\n\ttbl\tv8.16b,  {v24.16b}, v11.16b\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\ttbl\tv5.16b,\t {v27.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm15,\t%xmm5\t# 4 = sb2u\n\ttbl\tv13.16b, {v27.16b}, v10.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v8.16b,  v12.16b\n\ttbl\tv2.16b,  {v26.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm14,\t%xmm2\t# 2 = sb2t\n\ttbl\tv10.16b, {v26.16b}, v11.16b\n\tld1\t{v4.2d}, [x10]\t\t\t// vmovdqa\t(%r11,%r10), %xmm4\t# .Lk_mc_backward[]\n\ttbl\tv3.16b,  {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm3\t# 0 = B\n\ttbl\tv11.16b, {v8.16b}, v1.16b\n\teor\tv2.16b,  v2.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm2,\t%xmm2\t# 2 = 2A\n\teor\tv10.16b, v10.16b, v13.16b\n\ttbl\tv0.16b,  {v0.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm0,\t%xmm0\t# 3 = D\n\ttbl\tv8.16b,  {v8.16b}, v4.16b\n\teor\tv3.16b,  v3.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 0 = 2A+B\n\teor\tv11.16b, v11.16b, v10.16b\n\ttbl\tv4.16b,  {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm4\t# 0 = 2B+C\n\ttbl\tv12.16b, {v11.16b},v1.16b\n\teor\tv0.16b,  v0.16b,  v3.16b\t// vpxor\t%xmm3,\t%xmm0,\t%xmm0\t# 3 = 2A+B+D\n\teor\tv8.16b,  v8.16b,  v11.16b\n\tand\tx11, x11, #~(1<<6)\t\t// and\t\t$0x30,\t%r11\t\t# ... mod 4\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0, %xmm0\t# 0 = 2A+3B+C+D\n\teor\tv8.16b,  v8.16b,  v12.16b\n\tsub\tw8, w8, #1\t\t\t// nr--\n\n.Lenc_2x_entry:\n\t// top of round\n\tand\tv1.16b,  v0.16b, v17.16b\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b,  v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\tand\tv9.16b,  v8.16b, v17.16b\n\tushr\tv8.16b,  v8.16b, #4\n\ttbl\tv5.16b,  {v19.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\ttbl\tv13.16b, {v19.16b},v9.16b\n\teor\tv1.16b,  v1.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\teor\tv9.16b,  v9.16b,  v8.16b\n\ttbl\tv3.16b,  {v18.16b},v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv11.16b, {v18.16b},v8.16b\n\ttbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v13.16b\n\teor\tv4.16b,  v4.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v13.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2  \t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:8", "text": "and\tv1.16b,  v0.16b, v17.16b\t// vpand\t%xmm0,\t%xmm9,\t%xmm1   # 0 = k\n\tushr\tv0.16b,  v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\tand\tv9.16b,  v8.16b, v17.16b\n\tushr\tv8.16b,  v8.16b, #4\n\ttbl\tv5.16b,  {v19.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm5\t# 2 = a/k\n\ttbl\tv13.16b, {v19.16b},v9.16b\n\teor\tv1.16b,  v1.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\teor\tv9.16b,  v9.16b,  v8.16b\n\ttbl\tv3.16b,  {v18.16b},v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3  \t# 3 = 1/i\n\ttbl\tv11.16b, {v18.16b},v8.16b\n\ttbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1, \t%xmm10,\t%xmm4  \t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v13.16b\n\teor\tv4.16b,  v4.16b,  v5.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4  \t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v13.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2  \t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2  \t# 2 = io\n\teor\tv10.16b, v10.16b, v9.16b\n\teor\tv3.16b,  v3.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm3,\t%xmm3\t# 3 = jo\n\teor\tv11.16b, v11.16b, v8.16b\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm5\n\tcbnz\tw8, .Lenc_2x_loop\n\n\t// middle of last round\n\tadd\tx10, x11, #0x80\n\t\t\t\t\t\t// vmovdqa\t-0x60(%r10), %xmm4\t# 3 : sbou\t.Lk_sbo\n\t\t\t\t\t\t// vmovdqa\t-0x50(%r10), %xmm0\t# 0 : sbot\t.Lk_sbo+16\n\ttbl\tv4.16b,  {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\ttbl\tv12.16b, {v22.16b}, v10.16b\n\tld1\t{v1.2d}, [x10]\t\t\t// vmovdqa\t0x40(%r11,%r10), %xmm1\t# .Lk_sr[]\n\ttbl\tv0.16b,  {v23.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm0,\t%xmm0\t# 0 = sb1t\n\ttbl\tv8.16b,  {v23.16b}, v11.16b\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm5,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v8.16b,  v12.16b\n\ttbl\tv0.16b,  {v0.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b,  {v8.16b},v1.16b\n\tret\n.size\t_vpaes_encrypt_2x,.-_vpaes_encrypt_2x\n\n.type\t_vpaes_decrypt_preheat,%function\n.align\t4\n_vpaes_decrypt_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv17.16b, #0x0f\n\tadrp\tx11, .Lk_dipt\n\tadd\tx11, x11, #:lo12:.Lk_dipt\n\tld1\t{v18.2d,v19.2d}, [x10],#32\t// .Lk_inv\n\tld1\t{v20.2d,v21.2d,v22.2d,v23.2d}, [x11],#64\t// .Lk_dipt, .Lk_dsbo\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x11],#64\t// .Lk_dsb9, .Lk_dsbd\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x11]\t\t// .Lk_dsbb, .Lk_dsbe\n\tret\n.size\t_vpaes_decrypt_preheat,.-_vpaes_decrypt_preheat", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:9", "text": "tbl\tv0.16b,  {v0.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b,  {v8.16b},v1.16b\n\tret\n.size\t_vpaes_encrypt_2x,.-_vpaes_encrypt_2x\n\n.type\t_vpaes_decrypt_preheat,%function\n.align\t4\n_vpaes_decrypt_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv17.16b, #0x0f\n\tadrp\tx11, .Lk_dipt\n\tadd\tx11, x11, #:lo12:.Lk_dipt\n\tld1\t{v18.2d,v19.2d}, [x10],#32\t// .Lk_inv\n\tld1\t{v20.2d,v21.2d,v22.2d,v23.2d}, [x11],#64\t// .Lk_dipt, .Lk_dsbo\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x11],#64\t// .Lk_dsb9, .Lk_dsbd\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x11]\t\t// .Lk_dsbb, .Lk_dsbe\n\tret\n.size\t_vpaes_decrypt_preheat,.-_vpaes_decrypt_preheat\n\n//\n//  Decryption core\n//\n//  Same API as encryption core.\n//\n.type\t_vpaes_decrypt_core,%function\n.align\t4\n_vpaes_decrypt_core:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt(%rip), %xmm2\t# iptlo\n\tlsl\tx11, x8, #4\t\t\t// mov\t%rax,\t%r11;\tshl\t$4, %r11\n\teor\tx11, x11, #0x30\t\t\t// xor\t\t$0x30,\t%r11\n\tadrp\tx10, .Lk_sr\n\tadd\tx10, x10, #:lo12:.Lk_sr\n\tand\tx11, x11, #0x30\t\t\t// and\t\t$0x30,\t%r11\n\tadd\tx11, x11, x10\n\tadrp\tx10, .Lk_mc_forward+48\n\tadd\tx10, x10, #:lo12:.Lk_mc_forward+48\n\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm4\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v7.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\ttbl\tv2.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\teor\tv2.16b, v2.16b, v16.16b\t\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tb\t.Ldec_entry\n\n.align\t4\n.Ldec_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b, {v24.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:10", "text": "ld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm4\t\t# round0 key\n\tand\tv1.16b, v7.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v7.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\ttbl\tv2.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\teor\tv2.16b, v2.16b, v16.16b\t\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tb\t.Ldec_entry\n\n.align\t4\n.Ldec_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b, {v24.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv1.16b, {v25.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sb9t\n\teor\tv0.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\n\t\t\t\t\t\t// vmovdqa\t0x00(%r10),%xmm4\t\t# 4 : sbdu\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x10(%r10),%xmm1\t\t# 0 : sbdt\n\n\ttbl\tv4.16b, {v26.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbdu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v27.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbdt\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\t\t\t\t\t\t// vmovdqa\t0x20(%r10),\t%xmm4\t\t# 4 : sbbu\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x30(%r10),\t%xmm1\t\t# 0 : sbbt\n\n\ttbl\tv4.16b, {v28.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbbu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v29.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbbt\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\t\t\t\t\t\t// vmovdqa\t0x40(%r10),\t%xmm4\t\t# 4 : sbeu\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b, {v30.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v31.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\text\tv5.16b, v5.16b, v5.16b, #12\t// vpalignr $12,\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\tsub\tw8, w8, #1\t\t\t// sub\t\t$1,%rax\t\t\t# nr--\n\n.Ldec_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t# 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv2.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t# 2 = a/k\n\teor\tv1.16b,\tv1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:11", "text": "// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b, {v30.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv0.16b, {v0.16b}, v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv1.16b, {v31.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\teor\tv0.16b, v0.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\text\tv5.16b, v5.16b, v5.16b, #12\t// vpalignr $12,\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv0.16b, v0.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\tsub\tw8, w8, #1\t\t\t// sub\t\t$1,%rax\t\t\t# nr--\n\n.Ldec_entry:\n\t// top of round\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t# 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\ttbl\tv2.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t# 2 = a/k\n\teor\tv1.16b,\tv1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t# 3 = 1/i\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv4.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak\n\ttbl\tv3.16b, {v18.16b}, v4.16b\t// vpshufb\t%xmm4,  %xmm10,\t%xmm3\t# 3 = 1/jak\n\teor\tv2.16b, v2.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2\t# 2 = io\n\teor\tv3.16b, v3.16b, v0.16b\t\t// vpxor\t%xmm0,  %xmm3,\t%xmm3\t# 3 = jo\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm0\n\tcbnz\tw8, .Ldec_loop\n\n\t// middle of last round\n\t\t\t\t\t\t// vmovdqa\t0x60(%r10),\t%xmm4\t# 3 : sbou\n\ttbl\tv4.16b, {v22.16b}, v2.16b\t\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\t\t\t\t\t\t// vmovdqa\t0x70(%r10),\t%xmm1\t# 0 : sbot\n\tld1\t{v2.2d}, [x11]\t\t\t// vmovdqa\t-0x160(%r11),\t%xmm2\t# .Lk_sr-.Lk_dsbd=-0x160\n\ttbl\tv1.16b, {v23.16b}, v3.16b\t\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t# 0 = sb1t\n\teor\tv4.16b, v4.16b, v16.16b\t\t// vpxor\t%xmm0,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv0.16b, v1.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm1,\t%xmm0\t# 0 = A\n\ttbl\tv0.16b, {v0.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm0,\t%xmm0\n\tret\n.size\t_vpaes_decrypt_core,.-_vpaes_decrypt_core\n\n.globl\tvpaes_decrypt\n.type\tvpaes_decrypt,%function\n.align\t4\nvpaes_decrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_decrypt_preheat\n\tbl\t_vpaes_decrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_decrypt,.-vpaes_decrypt\n\n// v14-v15 input, v0-v1 output\n.type\t_vpaes_decrypt_2x,%function\n.align\t4", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:12", "text": ".type\tvpaes_decrypt,%function\n.align\t4\nvpaes_decrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tld1\t{v7.16b}, [x0]\n\tbl\t_vpaes_decrypt_preheat\n\tbl\t_vpaes_decrypt_core\n\tst1\t{v0.16b}, [x1]\n\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_decrypt,.-vpaes_decrypt\n\n// v14-v15 input, v0-v1 output\n.type\t_vpaes_decrypt_2x,%function\n.align\t4\n_vpaes_decrypt_2x:\n\tmov\tx9, x2\n\tldr\tw8, [x2,#240]\t\t\t// pull rounds\n\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt(%rip), %xmm2\t# iptlo\n\tlsl\tx11, x8, #4\t\t\t// mov\t%rax,\t%r11;\tshl\t$4, %r11\n\teor\tx11, x11, #0x30\t\t\t// xor\t\t$0x30,\t%r11\n\tadrp\tx10, .Lk_sr\n\tadd\tx10, x10, #:lo12:.Lk_sr\n\tand\tx11, x11, #0x30\t\t\t// and\t\t$0x30,\t%r11\n\tadd\tx11, x11, x10\n\tadrp\tx10, .Lk_mc_forward+48\n\tadd\tx10, x10, #:lo12:.Lk_mc_forward+48\n\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm4\t\t# round0 key\n\tand\tv1.16b,  v14.16b, v17.16b\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b,  v14.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\tand\tv9.16b,  v15.16b, v17.16b\n\tushr\tv8.16b,  v15.16b, #4\n\ttbl\tv2.16b,  {v20.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\ttbl\tv10.16b, {v20.16b},v9.16b\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b,  {v21.16b},v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\ttbl\tv8.16b,  {v21.16b},v8.16b\n\teor\tv2.16b,  v2.16b,  v16.16b\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv10.16b, v10.16b, v16.16b\n\teor\tv0.16b,  v0.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v8.16b,  v10.16b\n\tb\t.Ldec_2x_entry\n\n.align\t4\n.Ldec_2x_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b,  {v24.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv12.16b, {v24.16b}, v10.16b", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:13", "text": "tbl\tv10.16b, {v20.16b},v9.16b\n\tld1\t{v5.2d}, [x10]\t\t\t// vmovdqa\t.Lk_mc_forward+48(%rip), %xmm5\n\t\t\t\t\t\t// vmovdqa\t.Lk_dipt+16(%rip), %xmm1 # ipthi\n\ttbl\tv0.16b,  {v21.16b},v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\ttbl\tv8.16b,  {v21.16b},v8.16b\n\teor\tv2.16b,  v2.16b,  v16.16b\t// vpxor\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv10.16b, v10.16b, v16.16b\n\teor\tv0.16b,  v0.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v8.16b,  v10.16b\n\tb\t.Ldec_2x_entry\n\n.align\t4\n.Ldec_2x_loop:\n//\n//  Inverse mix columns\n//\n\t\t\t\t\t\t// vmovdqa\t-0x20(%r10),%xmm4\t\t# 4 : sb9u\n\t\t\t\t\t\t// vmovdqa\t-0x10(%r10),%xmm1\t\t# 0 : sb9t\n\ttbl\tv4.16b,  {v24.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sb9u\n\ttbl\tv12.16b, {v24.16b}, v10.16b\n\ttbl\tv1.16b,  {v25.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sb9t\n\ttbl\tv9.16b,  {v25.16b}, v11.16b\n\teor\tv0.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\n\teor\tv8.16b,  v12.16b, v16.16b\n\t\t\t\t\t\t// vmovdqa\t0x00(%r10),%xmm4\t\t# 4 : sbdu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\t\t\t\t\t\t// vmovdqa\t0x10(%r10),%xmm1\t\t# 0 : sbdt\n\n\ttbl\tv4.16b,  {v26.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbdu\n\ttbl\tv12.16b, {v26.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v27.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbdt\n\ttbl\tv9.16b,  {v27.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\t\t\t\t\t\t// vmovdqa\t0x20(%r10),\t%xmm4\t\t# 4 : sbbu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\t\t\t\t\t\t// vmovdqa\t0x30(%r10),\t%xmm1\t\t# 0 : sbbt\n\n\ttbl\tv4.16b,  {v28.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbbu\n\ttbl\tv12.16b, {v28.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v29.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbbt\n\ttbl\tv9.16b,  {v29.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\t\t\t\t\t\t// vmovdqa\t0x40(%r10),\t%xmm4\t\t# 4 : sbeu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\t\t\t\t\t\t// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b,  {v30.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv12.16b, {v30.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v31.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:14", "text": "// vmovdqa\t0x30(%r10),\t%xmm1\t\t# 0 : sbbt\n\n\ttbl\tv4.16b,  {v28.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbbu\n\ttbl\tv12.16b, {v28.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v29.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbbt\n\ttbl\tv9.16b,  {v29.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\t\t\t\t\t\t// vmovdqa\t0x40(%r10),\t%xmm4\t\t# 4 : sbeu\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\t\t\t\t\t\t// vmovdqa\t0x50(%r10),\t%xmm1\t\t# 0 : sbet\n\n\ttbl\tv4.16b,  {v30.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = sbeu\n\ttbl\tv12.16b, {v30.16b}, v10.16b\n\ttbl\tv0.16b,  {v0.16b},v5.16b\t// vpshufb\t%xmm5,\t%xmm0,\t%xmm0\t\t# MC ch\n\ttbl\tv8.16b,  {v8.16b},v5.16b\n\ttbl\tv1.16b,  {v31.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t\t# 0 = sbet\n\ttbl\tv9.16b,  {v31.16b}, v11.16b\n\teor\tv0.16b,  v0.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm0,\t%xmm0\t\t# 4 = ch\n\teor\tv8.16b,  v8.16b,  v12.16b\n\text\tv5.16b,  v5.16b,  v5.16b, #12\t// vpalignr $12,\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv0.16b,  v0.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm0,\t%xmm0\t\t# 0 = ch\n\teor\tv8.16b,  v8.16b,  v9.16b\n\tsub\tw8, w8, #1\t\t\t// sub\t\t$1,%rax\t\t\t# nr--\n\n.Ldec_2x_entry:\n\t// top of round\n\tand\tv1.16b,  v0.16b,  v17.16b\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t# 0 = k\n\tushr\tv0.16b,  v0.16b,  #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t# 1 = i\n\tand\tv9.16b,  v8.16b,  v17.16b\n\tushr\tv8.16b,  v8.16b,  #4\n\ttbl\tv2.16b,  {v19.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t# 2 = a/k\n\ttbl\tv10.16b, {v19.16b},v9.16b\n\teor\tv1.16b,\t v1.16b,  v0.16b\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t# 0 = j\n\teor\tv9.16b,\t v9.16b,  v8.16b\n\ttbl\tv3.16b,  {v18.16b},v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t# 3 = 1/i\n\ttbl\tv11.16b, {v18.16b},v8.16b\n\ttbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v10.16b\n\teor\tv4.16b,  v4.16b,  v2.16b\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v10.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,  %xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2\t# 2 = io\n\teor\tv10.16b, v10.16b, v9.16b\n\teor\tv3.16b,  v3.16b,  v0.16b\t// vpxor\t%xmm0,  %xmm3,\t%xmm3\t# 3 = jo\n\teor\tv11.16b, v11.16b, v8.16b\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm0\n\tcbnz\tw8, .Ldec_2x_loop\n\n\t// middle of last round\n\t\t\t\t\t\t// vmovdqa\t0x60(%r10),\t%xmm4\t# 3 : sbou\n\ttbl\tv4.16b,  {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:15", "text": "tbl\tv4.16b,  {v18.16b},v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t# 4 = 1/j\n\ttbl\tv12.16b, {v18.16b},v9.16b\n\teor\tv3.16b,  v3.16b,  v2.16b\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t# 3 = iak = 1/i + a/k\n\teor\tv11.16b, v11.16b, v10.16b\n\teor\tv4.16b,  v4.16b,  v2.16b\t// vpxor\t%xmm2, \t%xmm4,\t%xmm4\t# 4 = jak = 1/j + a/k\n\teor\tv12.16b, v12.16b, v10.16b\n\ttbl\tv2.16b,  {v18.16b},v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm2\t# 2 = 1/iak\n\ttbl\tv10.16b, {v18.16b},v11.16b\n\ttbl\tv3.16b,  {v18.16b},v4.16b\t// vpshufb\t%xmm4,  %xmm10,\t%xmm3\t# 3 = 1/jak\n\ttbl\tv11.16b, {v18.16b},v12.16b\n\teor\tv2.16b,  v2.16b,  v1.16b\t// vpxor\t%xmm1,\t%xmm2,\t%xmm2\t# 2 = io\n\teor\tv10.16b, v10.16b, v9.16b\n\teor\tv3.16b,  v3.16b,  v0.16b\t// vpxor\t%xmm0,  %xmm3,\t%xmm3\t# 3 = jo\n\teor\tv11.16b, v11.16b, v8.16b\n\tld1\t{v16.2d}, [x9],#16\t\t// vmovdqu\t(%r9),\t%xmm0\n\tcbnz\tw8, .Ldec_2x_loop\n\n\t// middle of last round\n\t\t\t\t\t\t// vmovdqa\t0x60(%r10),\t%xmm4\t# 3 : sbou\n\ttbl\tv4.16b,  {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm4,\t%xmm4\t# 4 = sbou\n\ttbl\tv12.16b, {v22.16b}, v10.16b\n\t\t\t\t\t\t// vmovdqa\t0x70(%r10),\t%xmm1\t# 0 : sbot\n\ttbl\tv1.16b,  {v23.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm1,\t%xmm1\t# 0 = sb1t\n\ttbl\tv9.16b,  {v23.16b}, v11.16b\n\tld1\t{v2.2d}, [x11]\t\t\t// vmovdqa\t-0x160(%r11),\t%xmm2\t# .Lk_sr-.Lk_dsbd=-0x160\n\teor\tv4.16b,  v4.16b,  v16.16b\t// vpxor\t%xmm0,\t%xmm4,\t%xmm4\t# 4 = sb1u + k\n\teor\tv12.16b, v12.16b, v16.16b\n\teor\tv0.16b,  v1.16b,  v4.16b\t// vpxor\t%xmm4,\t%xmm1,\t%xmm0\t# 0 = A\n\teor\tv8.16b,  v9.16b,  v12.16b\n\ttbl\tv0.16b,  {v0.16b},v2.16b\t// vpshufb\t%xmm2,\t%xmm0,\t%xmm0\n\ttbl\tv1.16b,  {v8.16b},v2.16b\n\tret\n.size\t_vpaes_decrypt_2x,.-_vpaes_decrypt_2x\n////////////////////////////////////////////////////////\n//                                                    //\n//                  AES key schedule                  //\n//                                                    //\n////////////////////////////////////////////////////////\n.type\t_vpaes_key_preheat,%function\n.align\t4\n_vpaes_key_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv16.16b, #0x5b\t\t\t// .Lk_s63\n\tadrp\tx11, .Lk_sb1\n\tadd\tx11, x11, #:lo12:.Lk_sb1\n\tmovi\tv17.16b, #0x0f\t\t\t// .Lk_s0F\n\tld1\t{v18.2d,v19.2d,v20.2d,v21.2d}, [x10]\t\t// .Lk_inv, .Lk_ipt\n\tadrp\tx10, .Lk_dksd\n\tadd\tx10, x10, #:lo12:.Lk_dksd\n\tld1\t{v22.2d,v23.2d}, [x11]\t\t// .Lk_sb1\n\tadrp\tx11, .Lk_mc_forward\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x10],#64\t// .Lk_dksd, .Lk_dksb\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x10],#64\t// .Lk_dkse, .Lk_dks9\n\tld1\t{v8.2d}, [x10]\t\t\t// .Lk_rcon\n\tld1\t{v9.2d}, [x11]\t\t\t// .Lk_mc_forward[0]\n\tret\n.size\t_vpaes_key_preheat,.-_vpaes_key_preheat", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:16", "text": "_vpaes_key_preheat:\n\tadrp\tx10, .Lk_inv\n\tadd\tx10, x10, #:lo12:.Lk_inv\n\tmovi\tv16.16b, #0x5b\t\t\t// .Lk_s63\n\tadrp\tx11, .Lk_sb1\n\tadd\tx11, x11, #:lo12:.Lk_sb1\n\tmovi\tv17.16b, #0x0f\t\t\t// .Lk_s0F\n\tld1\t{v18.2d,v19.2d,v20.2d,v21.2d}, [x10]\t\t// .Lk_inv, .Lk_ipt\n\tadrp\tx10, .Lk_dksd\n\tadd\tx10, x10, #:lo12:.Lk_dksd\n\tld1\t{v22.2d,v23.2d}, [x11]\t\t// .Lk_sb1\n\tadrp\tx11, .Lk_mc_forward\n\tadd\tx11, x11, #:lo12:.Lk_mc_forward\n\tld1\t{v24.2d,v25.2d,v26.2d,v27.2d}, [x10],#64\t// .Lk_dksd, .Lk_dksb\n\tld1\t{v28.2d,v29.2d,v30.2d,v31.2d}, [x10],#64\t// .Lk_dkse, .Lk_dks9\n\tld1\t{v8.2d}, [x10]\t\t\t// .Lk_rcon\n\tld1\t{v9.2d}, [x11]\t\t\t// .Lk_mc_forward[0]\n\tret\n.size\t_vpaes_key_preheat,.-_vpaes_key_preheat\n\n.type\t_vpaes_schedule_core,%function\n.align\t4\n_vpaes_schedule_core:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29, x30, [sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tbl\t_vpaes_key_preheat\t\t// load the tables\n\n\tld1\t{v0.16b}, [x0],#16\t\t// vmovdqu\t(%rdi),\t%xmm0\t\t# load key (unaligned)\n\n\t// input transform\n\tmov\tv3.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm3\n\tbl\t_vpaes_schedule_transform\n\tmov\tv7.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm7\n\n\tadrp\tx10, .Lk_sr\n\tadd\tx10, x10, #:lo12:.Lk_sr\n\tadd\tx8, x8, x10\n\tcbnz\tw3, .Lschedule_am_decrypting\n\n\t// encrypting, output zeroth round key after transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\n\tb\t.Lschedule_go\n\n.Lschedule_am_decrypting:\n\t// decrypting, output zeroth round key after shiftrows\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\ttbl\tv3.16b, {v3.16b}, v1.16b\t// vpshufb  %xmm1,\t%xmm3,\t%xmm3\n\tst1\t{v3.2d}, [x2]\t\t\t// vmovdqu\t%xmm3,\t(%rdx)\n\teor\tx8, x8, #0x30\t\t\t// xor\t$0x30, %r8\n\n.Lschedule_go:\n\tcmp\tw1, #192\t\t\t// cmp\t$192,\t%esi\n\tb.hi\t.Lschedule_256\n\tb.eq\t.Lschedule_192\n\t// 128: fall though\n\n//\n//  .schedule_128", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:17", "text": "// encrypting, output zeroth round key after transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\n\tb\t.Lschedule_go\n\n.Lschedule_am_decrypting:\n\t// decrypting, output zeroth round key after shiftrows\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\ttbl\tv3.16b, {v3.16b}, v1.16b\t// vpshufb  %xmm1,\t%xmm3,\t%xmm3\n\tst1\t{v3.2d}, [x2]\t\t\t// vmovdqu\t%xmm3,\t(%rdx)\n\teor\tx8, x8, #0x30\t\t\t// xor\t$0x30, %r8\n\n.Lschedule_go:\n\tcmp\tw1, #192\t\t\t// cmp\t$192,\t%esi\n\tb.hi\t.Lschedule_256\n\tb.eq\t.Lschedule_192\n\t// 128: fall though\n\n//\n//  .schedule_128\n//\n//  128-bit specific part of key schedule.\n//\n//  This schedule is really simple, because all its parts\n//  are accomplished by the subroutines.\n//\n.Lschedule_128:\n\tmov\tx0, #10\t\t\t// mov\t$10, %esi\n\n.Loop_schedule_128:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle\t\t// write output\n\tb\t.Loop_schedule_128\n\n//\n//  .aes_schedule_192\n//\n//  192-bit specific part of key schedule.\n//\n//  The main body of this schedule is the same as the 128-bit\n//  schedule, but with more smearing.  The long, high side is\n//  stored in %xmm7 as before, and the short, low side is in\n//  the high bits of %xmm6.\n//\n//  This schedule is somewhat nastier, however, because each\n//  round produces 192 bits of key material, or 1.5 round keys.\n//  Therefore, on each cycle we do 2 rounds and produce 3 round\n//  keys.\n//\n.align\t4\n.Lschedule_192:\n\tsub\tx0, x0, #8\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t8(%rdi),%xmm0\t\t# load key part 2 (very unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save short part\n\teor\tv4.16b, v4.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm4, %xmm4\t# clear 4\n\tins\tv6.d[0], v4.d[0]\t\t// vmovhlps\t%xmm4,\t%xmm6,\t%xmm6\t\t# clobber low side with zeros\n\tmov\tx0, #4\t\t\t// mov\t$4,\t%esi", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:18", "text": "//\n//  The main body of this schedule is the same as the 128-bit\n//  schedule, but with more smearing.  The long, high side is\n//  stored in %xmm7 as before, and the short, low side is in\n//  the high bits of %xmm6.\n//\n//  This schedule is somewhat nastier, however, because each\n//  round produces 192 bits of key material, or 1.5 round keys.\n//  Therefore, on each cycle we do 2 rounds and produce 3 round\n//  keys.\n//\n.align\t4\n.Lschedule_192:\n\tsub\tx0, x0, #8\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t8(%rdi),%xmm0\t\t# load key part 2 (very unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save short part\n\teor\tv4.16b, v4.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm4, %xmm4\t# clear 4\n\tins\tv6.d[0], v4.d[0]\t\t// vmovhlps\t%xmm4,\t%xmm6,\t%xmm6\t\t# clobber low side with zeros\n\tmov\tx0, #4\t\t\t// mov\t$4,\t%esi\n\n.Loop_schedule_192:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_round\n\text\tv0.16b, v6.16b, v0.16b, #8\t// vpalignr\t$8,%xmm6,%xmm0,%xmm0\n\tbl\t_vpaes_schedule_mangle\t\t// save key n\n\tbl\t_vpaes_schedule_192_smear\n\tbl\t_vpaes_schedule_mangle\t\t// save key n+1\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle\t\t// save key n+2\n\tbl\t_vpaes_schedule_192_smear\n\tb\t.Loop_schedule_192\n\n//\n//  .aes_schedule_256\n//\n//  256-bit specific part of key schedule.\n//\n//  The structure here is very similar to the 128-bit\n//  schedule, but with an additional \"low side\" in\n//  %xmm6.  The low side's rounds are the same as the\n//  high side's, except no rcon and no rotation.\n//\n.align\t4\n.Lschedule_256:\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t16(%rdi),%xmm0\t\t# load key part 2 (unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tx0, #7\t\t\t// mov\t$7, %esi\n\n.Loop_schedule_256:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_mangle\t\t// output low result\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save cur_lo in xmm6\n\n\t// high round\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:19", "text": "//  schedule, but with an additional \"low side\" in\n//  %xmm6.  The low side's rounds are the same as the\n//  high side's, except no rcon and no rotation.\n//\n.align\t4\n.Lschedule_256:\n\tld1\t{v0.16b}, [x0]\t\t// vmovdqu\t16(%rdi),%xmm0\t\t# load key part 2 (unaligned)\n\tbl\t_vpaes_schedule_transform\t// input transform\n\tmov\tx0, #7\t\t\t// mov\t$7, %esi\n\n.Loop_schedule_256:\n\tsub\tx0, x0, #1\t\t\t// dec\t%esi\n\tbl\t_vpaes_schedule_mangle\t\t// output low result\n\tmov\tv6.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm6\t\t# save cur_lo in xmm6\n\n\t// high round\n\tbl\t_vpaes_schedule_round\n\tcbz\tx0, .Lschedule_mangle_last\n\tbl\t_vpaes_schedule_mangle\n\n\t// low round. swap xmm7 and xmm6\n\tdup\tv0.4s, v0.s[3]\t\t\t// vpshufd\t$0xFF,\t%xmm0,\t%xmm0\n\tmovi\tv4.16b, #0\n\tmov\tv5.16b, v7.16b\t\t\t// vmovdqa\t%xmm7,\t%xmm5\n\tmov\tv7.16b, v6.16b\t\t\t// vmovdqa\t%xmm6,\t%xmm7\n\tbl\t_vpaes_schedule_low_round\n\tmov\tv7.16b, v5.16b\t\t\t// vmovdqa\t%xmm5,\t%xmm7\n\n\tb\t.Loop_schedule_256\n\n//\n//  .aes_schedule_mangle_last\n//\n//  Mangler for last round of key schedule\n//  Mangles %xmm0\n//    when encrypting, outputs out(%xmm0) ^ 63\n//    when decrypting, outputs unskew(%xmm0)\n//\n//  Always called right before return... jumps to cleanup and exits\n//\n.align\t4\n.Lschedule_mangle_last:\n\t// schedule last round key from xmm0\n\tadrp\tx11, .Lk_deskew\n\tadd\tx11, x11, #:lo12:.Lk_deskew\n\tcbnz\tw3, .Lschedule_mangle_last_dec\n\n\t// encrypting\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),%xmm1\n\tadrp\tx11, .Lk_opt\n\tadd\tx11, x11, #:lo12:.Lk_opt\n\tadd\tx2, x2, #32\t\t\t// add\t$32,\t%rdx\n\ttbl\tv0.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\t\t# output permute\n\n.Lschedule_mangle_last_dec:\n\tld1\t{v20.2d,v21.2d}, [x11]\t\t// reload constants\n\tsub\tx2, x2, #16\t\t\t// add\t$-16,\t%rdx\n\teor\tv0.16b, v0.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm0,\t%xmm0\n\tbl\t_vpaes_schedule_transform\t// output transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\t\t# save last key", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:20", "text": ".align\t4\n.Lschedule_mangle_last:\n\t// schedule last round key from xmm0\n\tadrp\tx11, .Lk_deskew\n\tadd\tx11, x11, #:lo12:.Lk_deskew\n\tcbnz\tw3, .Lschedule_mangle_last_dec\n\n\t// encrypting\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),%xmm1\n\tadrp\tx11, .Lk_opt\n\tadd\tx11, x11, #:lo12:.Lk_opt\n\tadd\tx2, x2, #32\t\t\t// add\t$32,\t%rdx\n\ttbl\tv0.16b, {v0.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm0,\t%xmm0\t\t# output permute\n\n.Lschedule_mangle_last_dec:\n\tld1\t{v20.2d,v21.2d}, [x11]\t\t// reload constants\n\tsub\tx2, x2, #16\t\t\t// add\t$-16,\t%rdx\n\teor\tv0.16b, v0.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm0,\t%xmm0\n\tbl\t_vpaes_schedule_transform\t// output transform\n\tst1\t{v0.2d}, [x2]\t\t\t// vmovdqu\t%xmm0,\t(%rdx)\t\t# save last key\n\n\t// cleanup\n\teor\tv0.16b, v0.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm0,\t%xmm0\n\teor\tv1.16b, v1.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm1,\t%xmm1\n\teor\tv2.16b, v2.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm2,\t%xmm2\n\teor\tv3.16b, v3.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm3,\t%xmm3\n\teor\tv4.16b, v4.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm4,\t%xmm4\n\teor\tv5.16b, v5.16b, v5.16b\t\t// vpxor\t%xmm5,\t%xmm5,\t%xmm5\n\teor\tv6.16b, v6.16b, v6.16b\t\t// vpxor\t%xmm6,\t%xmm6,\t%xmm6\n\teor\tv7.16b, v7.16b, v7.16b\t\t// vpxor\t%xmm7,\t%xmm7,\t%xmm7\n\tldp\tx29, x30, [sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\t_vpaes_schedule_core,.-_vpaes_schedule_core\n\n//\n//  .aes_schedule_192_smear\n//\n//  Smear the short, low side in the 192-bit key schedule.\n//\n//  Inputs:\n//    %xmm7: high side, b  a  x  y\n//    %xmm6:  low side, d  c  0  0\n//    %xmm13: 0\n//\n//  Outputs:\n//    %xmm6: b+c+d  b+c  0  0\n//    %xmm0: b+c+d  b+c  b  a\n//\n.type\t_vpaes_schedule_192_smear,%function\n.align\t4\n_vpaes_schedule_192_smear:\n\tmovi\tv1.16b, #0\n\tdup\tv0.4s, v7.s[3]\n\tins\tv1.s[3], v6.s[2]\t// vpshufd\t$0x80,\t%xmm6,\t%xmm1\t# d c 0 0 -> c 0 0 0\n\tins\tv0.s[0], v7.s[2]\t// vpshufd\t$0xFE,\t%xmm7,\t%xmm0\t# b a _ _ -> b b b a\n\teor\tv6.16b, v6.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm6,\t%xmm6\t# -> c+d c 0 0\n\teor\tv1.16b, v1.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm1,\t%xmm1\n\teor\tv6.16b, v6.16b, v0.16b\t// vpxor\t%xmm0,\t%xmm6,\t%xmm6\t# -> b+c+d b+c b a\n\tmov\tv0.16b, v6.16b\t\t// vmovdqa\t%xmm6,\t%xmm0", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:21", "text": "//  Inputs:\n//    %xmm7: high side, b  a  x  y\n//    %xmm6:  low side, d  c  0  0\n//    %xmm13: 0\n//\n//  Outputs:\n//    %xmm6: b+c+d  b+c  0  0\n//    %xmm0: b+c+d  b+c  b  a\n//\n.type\t_vpaes_schedule_192_smear,%function\n.align\t4\n_vpaes_schedule_192_smear:\n\tmovi\tv1.16b, #0\n\tdup\tv0.4s, v7.s[3]\n\tins\tv1.s[3], v6.s[2]\t// vpshufd\t$0x80,\t%xmm6,\t%xmm1\t# d c 0 0 -> c 0 0 0\n\tins\tv0.s[0], v7.s[2]\t// vpshufd\t$0xFE,\t%xmm7,\t%xmm0\t# b a _ _ -> b b b a\n\teor\tv6.16b, v6.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm6,\t%xmm6\t# -> c+d c 0 0\n\teor\tv1.16b, v1.16b, v1.16b\t// vpxor\t%xmm1,\t%xmm1,\t%xmm1\n\teor\tv6.16b, v6.16b, v0.16b\t// vpxor\t%xmm0,\t%xmm6,\t%xmm6\t# -> b+c+d b+c b a\n\tmov\tv0.16b, v6.16b\t\t// vmovdqa\t%xmm6,\t%xmm0\n\tins\tv6.d[0], v1.d[0]\t// vmovhlps\t%xmm1,\t%xmm6,\t%xmm6\t# clobber low side with zeros\n\tret\n.size\t_vpaes_schedule_192_smear,.-_vpaes_schedule_192_smear\n\n//\n//  .aes_schedule_round\n//\n//  Runs one main round of the key schedule on %xmm0, %xmm7\n//\n//  Specifically, runs subbytes on the high dword of %xmm0\n//  then rotates it by one byte and xors into the low dword of\n//  %xmm7.\n//\n//  Adds rcon from low byte of %xmm8, then rotates %xmm8 for\n//  next rcon.\n//\n//  Smears the dwords of %xmm7 by xoring the low into the\n//  second low, result into third, result into highest.\n//\n//  Returns results in %xmm7 = %xmm0.\n//  Clobbers %xmm1-%xmm4, %r11.\n//\n.type\t_vpaes_schedule_round,%function\n.align\t4\n_vpaes_schedule_round:\n\t// extract rcon from xmm8\n\tmovi\tv4.16b, #0\t\t\t// vpxor\t%xmm4,\t%xmm4,\t%xmm4\n\text\tv1.16b, v8.16b, v4.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm4,\t%xmm1\n\text\tv8.16b, v8.16b, v8.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm8,\t%xmm8\n\teor\tv7.16b, v7.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm7,\t%xmm7\n\n\t// rotate\n\tdup\tv0.4s, v0.s[3]\t\t\t// vpshufd\t$0xFF,\t%xmm0,\t%xmm0\n\text\tv0.16b, v0.16b, v0.16b, #1\t// vpalignr\t$1,\t%xmm0,\t%xmm0,\t%xmm0\n\n\t// fall through...\n\n\t// low round: same as high round, but no rotation and no rcon.\n_vpaes_schedule_low_round:\n\t// smear xmm7", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:22", "text": "//  Clobbers %xmm1-%xmm4, %r11.\n//\n.type\t_vpaes_schedule_round,%function\n.align\t4\n_vpaes_schedule_round:\n\t// extract rcon from xmm8\n\tmovi\tv4.16b, #0\t\t\t// vpxor\t%xmm4,\t%xmm4,\t%xmm4\n\text\tv1.16b, v8.16b, v4.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm4,\t%xmm1\n\text\tv8.16b, v8.16b, v8.16b, #15\t// vpalignr\t$15,\t%xmm8,\t%xmm8,\t%xmm8\n\teor\tv7.16b, v7.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm7,\t%xmm7\n\n\t// rotate\n\tdup\tv0.4s, v0.s[3]\t\t\t// vpshufd\t$0xFF,\t%xmm0,\t%xmm0\n\text\tv0.16b, v0.16b, v0.16b, #1\t// vpalignr\t$1,\t%xmm0,\t%xmm0,\t%xmm0\n\n\t// fall through...\n\n\t// low round: same as high round, but no rotation and no rcon.\n_vpaes_schedule_low_round:\n\t// smear xmm7\n\text\tv1.16b, v4.16b, v7.16b, #12\t// vpslldq\t$4,\t%xmm7,\t%xmm1\n\teor\tv7.16b, v7.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm7,\t%xmm7\n\text\tv4.16b, v4.16b, v7.16b, #8\t// vpslldq\t$8,\t%xmm7,\t%xmm4\n\n\t// subbytes\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\t\t# 0 = k\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\t\t# 1 = i\n\teor\tv7.16b, v7.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm7,\t%xmm7\n\ttbl\tv2.16b, {v19.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm11,\t%xmm2\t\t# 2 = a/k\n\teor\tv1.16b, v1.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm1,\t%xmm1\t\t# 0 = j\n\ttbl\tv3.16b, {v18.16b}, v0.16b\t// vpshufb\t%xmm0, \t%xmm10,\t%xmm3\t\t# 3 = 1/i\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\t\t# 3 = iak = 1/i + a/k\n\ttbl\tv4.16b, {v18.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm10,\t%xmm4\t\t# 4 = 1/j\n\teor\tv7.16b, v7.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm7,\t%xmm7\n\ttbl\tv3.16b, {v18.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm10,\t%xmm3\t\t# 2 = 1/iak\n\teor\tv4.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm4,\t%xmm4\t\t# 4 = jak = 1/j + a/k\n\ttbl\tv2.16b, {v18.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm10,\t%xmm2\t\t# 3 = 1/jak\n\teor\tv3.16b, v3.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm3,\t%xmm3\t\t# 2 = io\n\teor\tv2.16b, v2.16b, v0.16b\t\t// vpxor\t%xmm0,\t%xmm2,\t%xmm2\t\t# 3 = jo\n\ttbl\tv4.16b, {v23.16b}, v3.16b\t// vpshufb\t%xmm3,\t%xmm13,\t%xmm4\t\t# 4 = sbou\n\ttbl\tv1.16b, {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm12,\t%xmm1\t\t# 0 = sb1t\n\teor\tv1.16b, v1.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm1,\t%xmm1\t\t# 0 = sbox output\n\n\t// add in smeared stuff\n\teor\tv0.16b, v1.16b, v7.16b\t\t// vpxor\t%xmm7,\t%xmm1,\t%xmm0\n\teor\tv7.16b, v1.16b, v7.16b\t\t// vmovdqa\t%xmm0,\t%xmm7\n\tret\n.size\t_vpaes_schedule_round,.-_vpaes_schedule_round\n\n//\n//  .aes_schedule_transform\n//\n//  Linear-transform %xmm0 according to tables at (%r11)\n//\n//  Requires that %xmm9 = 0x0F0F... as in preheat\n//  Output in %xmm0\n//  Clobbers %xmm1, %xmm2\n//\n.type\t_vpaes_schedule_transform,%function\n.align\t4", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:23", "text": "tbl\tv1.16b, {v22.16b}, v2.16b\t// vpshufb\t%xmm2,\t%xmm12,\t%xmm1\t\t# 0 = sb1t\n\teor\tv1.16b, v1.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm1,\t%xmm1\t\t# 0 = sbox output\n\n\t// add in smeared stuff\n\teor\tv0.16b, v1.16b, v7.16b\t\t// vpxor\t%xmm7,\t%xmm1,\t%xmm0\n\teor\tv7.16b, v1.16b, v7.16b\t\t// vmovdqa\t%xmm0,\t%xmm7\n\tret\n.size\t_vpaes_schedule_round,.-_vpaes_schedule_round\n\n//\n//  .aes_schedule_transform\n//\n//  Linear-transform %xmm0 according to tables at (%r11)\n//\n//  Requires that %xmm9 = 0x0F0F... as in preheat\n//  Output in %xmm0\n//  Clobbers %xmm1, %xmm2\n//\n.type\t_vpaes_schedule_transform,%function\n.align\t4\n_vpaes_schedule_transform:\n\tand\tv1.16b, v0.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm0,\t%xmm1\n\tushr\tv0.16b, v0.16b, #4\t\t// vpsrlb\t$4,\t%xmm0,\t%xmm0\n\t\t\t\t\t\t// vmovdqa\t(%r11),\t%xmm2 \t# lo\n\ttbl\tv2.16b, {v20.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t16(%r11),\t%xmm1 # hi\n\ttbl\tv0.16b, {v21.16b}, v0.16b\t// vpshufb\t%xmm0,\t%xmm1,\t%xmm0\n\teor\tv0.16b, v0.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm0,\t%xmm0\n\tret\n.size\t_vpaes_schedule_transform,.-_vpaes_schedule_transform\n\n//\n//  .aes_schedule_mangle\n//\n//  Mangle xmm0 from (basis-transformed) standard version\n//  to our version.\n//\n//  On encrypt,\n//    xor with 0x63\n//    multiply by circulant 0,1,1,1\n//    apply shiftrows transform\n//\n//  On decrypt,\n//    xor with 0x63\n//    multiply by \"inverse mixcolumns\" circulant E,B,D,9\n//    deskew\n//    apply shiftrows transform\n//\n//\n//  Writes out to (%rdx), and increments or decrements it\n//  Keeps track of round number mod 4 in %r8\n//  Preserves xmm0\n//  Clobbers xmm1-xmm5\n//\n.type\t_vpaes_schedule_mangle,%function\n.align\t4\n_vpaes_schedule_mangle:\n\tmov\tv4.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm4\t# save xmm0 for later\n\t\t\t\t\t\t// vmovdqa\t.Lk_mc_forward(%rip),%xmm5\n\tcbnz\tw3, .Lschedule_mangle_dec", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:24", "text": "//    apply shiftrows transform\n//\n//  On decrypt,\n//    xor with 0x63\n//    multiply by \"inverse mixcolumns\" circulant E,B,D,9\n//    deskew\n//    apply shiftrows transform\n//\n//\n//  Writes out to (%rdx), and increments or decrements it\n//  Keeps track of round number mod 4 in %r8\n//  Preserves xmm0\n//  Clobbers xmm1-xmm5\n//\n.type\t_vpaes_schedule_mangle,%function\n.align\t4\n_vpaes_schedule_mangle:\n\tmov\tv4.16b, v0.16b\t\t\t// vmovdqa\t%xmm0,\t%xmm4\t# save xmm0 for later\n\t\t\t\t\t\t// vmovdqa\t.Lk_mc_forward(%rip),%xmm5\n\tcbnz\tw3, .Lschedule_mangle_dec\n\n\t// encrypting\n\teor\tv4.16b, v0.16b, v16.16b\t\t// vpxor\t.Lk_s63(%rip),\t%xmm0,\t%xmm4\n\tadd\tx2, x2, #16\t\t\t// add\t$16,\t%rdx\n\ttbl\tv4.16b, {v4.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm4,\t%xmm4\n\ttbl\tv1.16b, {v4.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm4,\t%xmm1\n\ttbl\tv3.16b, {v1.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm1,\t%xmm3\n\teor\tv4.16b, v4.16b, v1.16b\t\t// vpxor\t%xmm1,\t%xmm4,\t%xmm4\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\teor\tv3.16b, v3.16b, v4.16b\t\t// vpxor\t%xmm4,\t%xmm3,\t%xmm3\n\n\tb\t.Lschedule_mangle_both\n.align\t4\n.Lschedule_mangle_dec:\n\t// inverse mix columns\n\t\t\t\t\t\t// lea\t.Lk_dksd(%rip),%r11\n\tushr\tv1.16b, v4.16b, #4\t\t// vpsrlb\t$4,\t%xmm4,\t%xmm1\t# 1 = hi\n\tand\tv4.16b, v4.16b, v17.16b\t\t// vpand\t%xmm9,\t%xmm4,\t%xmm4\t# 4 = lo\n\n\t\t\t\t\t\t// vmovdqa\t0x00(%r11),\t%xmm2\n\ttbl\tv2.16b, {v24.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x10(%r11),\t%xmm3\n\ttbl\tv3.16b,\t{v25.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x20(%r11),\t%xmm2\n\ttbl\tv2.16b, {v26.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x30(%r11),\t%xmm3\n\ttbl\tv3.16b, {v27.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x40(%r11),\t%xmm2\n\ttbl\tv2.16b, {v28.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x50(%r11),\t%xmm3\n\ttbl\tv3.16b, {v29.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:25", "text": "tbl\tv2.16b, {v24.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x10(%r11),\t%xmm3\n\ttbl\tv3.16b,\t{v25.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x20(%r11),\t%xmm2\n\ttbl\tv2.16b, {v26.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x30(%r11),\t%xmm3\n\ttbl\tv3.16b, {v27.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x40(%r11),\t%xmm2\n\ttbl\tv2.16b, {v28.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\t\t\t\t\t\t// vmovdqa\t0x50(%r11),\t%xmm3\n\ttbl\tv3.16b, {v29.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\teor\tv3.16b, v3.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm3,\t%xmm3\n\n\t\t\t\t\t\t// vmovdqa\t0x60(%r11),\t%xmm2\n\ttbl\tv2.16b, {v30.16b}, v4.16b\t// vpshufb\t%xmm4,\t%xmm2,\t%xmm2\n\ttbl\tv3.16b, {v3.16b}, v9.16b\t// vpshufb\t%xmm5,\t%xmm3,\t%xmm3\n\t\t\t\t\t\t// vmovdqa\t0x70(%r11),\t%xmm4\n\ttbl\tv4.16b, {v31.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm4,\t%xmm4\n\tld1\t{v1.2d}, [x8]\t\t\t// vmovdqa\t(%r8,%r10),\t%xmm1\n\teor\tv2.16b, v2.16b, v3.16b\t\t// vpxor\t%xmm3,\t%xmm2,\t%xmm2\n\teor\tv3.16b, v4.16b, v2.16b\t\t// vpxor\t%xmm2,\t%xmm4,\t%xmm3\n\n\tsub\tx2, x2, #16\t\t\t// add\t$-16,\t%rdx\n\n.Lschedule_mangle_both:\n\ttbl\tv3.16b, {v3.16b}, v1.16b\t// vpshufb\t%xmm1,\t%xmm3,\t%xmm3\n\tadd\tx8, x8, #64-16\t\t\t// add\t$-16,\t%r8\n\tand\tx8, x8, #~(1<<6)\t\t// and\t$0x30,\t%r8\n\tst1\t{v3.2d}, [x2]\t\t\t// vmovdqu\t%xmm3,\t(%rdx)\n\tret\n.size\t_vpaes_schedule_mangle,.-_vpaes_schedule_mangle\n\n.globl\tvpaes_set_encrypt_key\n.type\tvpaes_set_encrypt_key,%function\n.align\t4\nvpaes_set_encrypt_key:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\n\tlsr\tw9, w1, #5\t\t// shr\t$5,%eax\n\tadd\tw9, w9, #5\t\t// $5,%eax\n\tstr\tw9, [x2,#240]\t\t// mov\t%eax,240(%rdx)\t# AES_KEY->rounds = nbits/32+5;\n\n\tmov\tw3, #0\t\t// mov\t$0,%ecx\n\tmov\tx8, #0x30\t\t// mov\t$0x30,%r8d\n\tbl\t_vpaes_schedule_core\n\teor\tx0, x0, x0\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:26", "text": ".globl\tvpaes_set_encrypt_key\n.type\tvpaes_set_encrypt_key,%function\n.align\t4\nvpaes_set_encrypt_key:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\n\tlsr\tw9, w1, #5\t\t// shr\t$5,%eax\n\tadd\tw9, w9, #5\t\t// $5,%eax\n\tstr\tw9, [x2,#240]\t\t// mov\t%eax,240(%rdx)\t# AES_KEY->rounds = nbits/32+5;\n\n\tmov\tw3, #0\t\t// mov\t$0,%ecx\n\tmov\tx8, #0x30\t\t// mov\t$0x30,%r8d\n\tbl\t_vpaes_schedule_core\n\teor\tx0, x0, x0\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_set_encrypt_key,.-vpaes_set_encrypt_key\n\n.globl\tvpaes_set_decrypt_key\n.type\tvpaes_set_decrypt_key,%function\n.align\t4\nvpaes_set_decrypt_key:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\n\tlsr\tw9, w1, #5\t\t// shr\t$5,%eax\n\tadd\tw9, w9, #5\t\t// $5,%eax\n\tstr\tw9, [x2,#240]\t\t// mov\t%eax,240(%rdx)\t# AES_KEY->rounds = nbits/32+5;\n\tlsl\tw9, w9, #4\t\t// shl\t$4,%eax\n\tadd\tx2, x2, #16\t\t// lea\t16(%rdx,%rax),%rdx\n\tadd\tx2, x2, x9\n\n\tmov\tw3, #1\t\t// mov\t$1,%ecx\n\tlsr\tw8, w1, #1\t\t// shr\t$1,%r8d\n\tand\tx8, x8, #32\t\t// and\t$32,%r8d\n\teor\tx8, x8, #32\t\t// xor\t$32,%r8d\t# nbits==192?0:32\n\tbl\t_vpaes_schedule_core\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_set_decrypt_key,.-vpaes_set_decrypt_key\n.globl\tvpaes_cbc_encrypt\n.type\tvpaes_cbc_encrypt,%function\n.align\t4\nvpaes_cbc_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcbz\tx2, .Lcbc_abort\n\tcmp\tw5, #0\t\t\t// check direction\n\tb.eq\tvpaes_cbc_decrypt", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:27", "text": "mov\tw3, #1\t\t// mov\t$1,%ecx\n\tlsr\tw8, w1, #1\t\t// shr\t$1,%r8d\n\tand\tx8, x8, #32\t\t// and\t$32,%r8d\n\teor\tx8, x8, #32\t\t// xor\t$32,%r8d\t# nbits==192?0:32\n\tbl\t_vpaes_schedule_core\n\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_set_decrypt_key,.-vpaes_set_decrypt_key\n.globl\tvpaes_cbc_encrypt\n.type\tvpaes_cbc_encrypt,%function\n.align\t4\nvpaes_cbc_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tcbz\tx2, .Lcbc_abort\n\tcmp\tw5, #0\t\t\t// check direction\n\tb.eq\tvpaes_cbc_decrypt\n\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\n\tmov\tx17, x2\t\t// reassign\n\tmov\tx2,  x3\t\t// reassign\n\n\tld1\t{v0.16b}, [x4]\t// load ivec\n\tbl\t_vpaes_encrypt_preheat\n\tb\t.Lcbc_enc_loop\n\n.align\t4\n.Lcbc_enc_loop:\n\tld1\t{v7.16b}, [x0],#16\t// load input\n\teor\tv7.16b, v7.16b, v0.16b\t// xor with ivec\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1],#16\t// save output\n\tsubs\tx17, x17, #16\n\tb.hi\t.Lcbc_enc_loop\n\n\tst1\t{v0.16b}, [x4]\t// write ivec\n\n\tldp\tx29,x30,[sp],#16\n.Lcbc_abort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_encrypt,.-vpaes_cbc_encrypt\n\n.type\tvpaes_cbc_decrypt,%function\n.align\t4\nvpaes_cbc_decrypt:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because vpaes_cbc_decrypt is jumped to\n\t// only from vpaes_cbc_encrypt which has already signed the return address.\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\t\t// reassign", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:28", "text": "ldp\tx29,x30,[sp],#16\n.Lcbc_abort:\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_encrypt,.-vpaes_cbc_encrypt\n\n.type\tvpaes_cbc_decrypt,%function\n.align\t4\nvpaes_cbc_decrypt:\n\t// Not adding AARCH64_SIGN_LINK_REGISTER here because vpaes_cbc_decrypt is jumped to\n\t// only from vpaes_cbc_encrypt which has already signed the return address.\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\t\t// reassign\n\tmov\tx2,  x3\t\t// reassign\n\tld1\t{v6.16b}, [x4]\t// load ivec\n\tbl\t_vpaes_decrypt_preheat\n\ttst\tx17, #16\n\tb.eq\t.Lcbc_dec_loop2x\n\n\tld1\t{v7.16b}, [x0], #16\t// load input\n\tbl\t_vpaes_decrypt_core\n\teor\tv0.16b, v0.16b, v6.16b\t// xor with ivec\n\torr\tv6.16b, v7.16b, v7.16b\t// next ivec value\n\tst1\t{v0.16b}, [x1], #16\n\tsubs\tx17, x17, #16\n\tb.ls\t.Lcbc_dec_done\n\n.align\t4\n.Lcbc_dec_loop2x:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_decrypt_2x\n\teor\tv0.16b, v0.16b, v6.16b\t// xor with ivec\n\teor\tv1.16b, v1.16b, v14.16b\n\torr\tv6.16b, v15.16b, v15.16b\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lcbc_dec_loop2x\n\n.Lcbc_dec_done:\n\tst1\t{v6.16b}, [x4]\n\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_decrypt,.-vpaes_cbc_decrypt\n.globl\tvpaes_ecb_encrypt\n.type\tvpaes_ecb_encrypt,%function\n.align\t4\nvpaes_ecb_encrypt:", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:29", "text": "orr\tv6.16b, v15.16b, v15.16b\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lcbc_dec_loop2x\n\n.Lcbc_dec_done:\n\tst1\t{v6.16b}, [x4]\n\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_cbc_decrypt,.-vpaes_cbc_decrypt\n.globl\tvpaes_ecb_encrypt\n.type\tvpaes_ecb_encrypt,%function\n.align\t4\nvpaes_ecb_encrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\n\tmov\tx2,  x3\n\tbl\t_vpaes_encrypt_preheat\n\ttst\tx17, #16\n\tb.eq\t.Lecb_enc_loop\n\n\tld1\t{v7.16b}, [x0],#16\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1],#16\n\tsubs\tx17, x17, #16\n\tb.ls\t.Lecb_enc_done\n\n.align\t4\n.Lecb_enc_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_encrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_enc_loop\n\n.Lecb_enc_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_encrypt,.-vpaes_ecb_encrypt\n\n.globl\tvpaes_ecb_decrypt\n.type\tvpaes_ecb_decrypt,%function", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:30", "text": ".align\t4\n.Lecb_enc_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_encrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_enc_loop\n\n.Lecb_enc_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_encrypt,.-vpaes_ecb_encrypt\n\n.globl\tvpaes_ecb_decrypt\n.type\tvpaes_ecb_decrypt,%function\n.align\t4\nvpaes_ecb_decrypt:\n\tAARCH64_SIGN_LINK_REGISTER\n\tstp\tx29,x30,[sp,#-16]!\n\tadd\tx29,sp,#0\n\tstp\td8,d9,[sp,#-16]!\t// ABI spec says so\n\tstp\td10,d11,[sp,#-16]!\n\tstp\td12,d13,[sp,#-16]!\n\tstp\td14,d15,[sp,#-16]!\n\n\tmov\tx17, x2\n\tmov\tx2,  x3\n\tbl\t_vpaes_decrypt_preheat\n\ttst\tx17, #16\n\tb.eq\t.Lecb_dec_loop\n\n\tld1\t{v7.16b}, [x0],#16\n\tbl\t_vpaes_encrypt_core\n\tst1\t{v0.16b}, [x1],#16\n\tsubs\tx17, x17, #16\n\tb.ls\t.Lecb_dec_done\n\n.align\t4\n.Lecb_dec_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_decrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_dec_loop\n\n.Lecb_dec_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_decrypt,.-vpaes_ecb_decrypt", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1161, "line_end": 1219}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S:31", "text": "b.ls\t.Lecb_dec_done\n\n.align\t4\n.Lecb_dec_loop:\n\tld1\t{v14.16b,v15.16b}, [x0], #32\n\tbl\t_vpaes_decrypt_2x\n\tst1\t{v0.16b,v1.16b}, [x1], #32\n\tsubs\tx17, x17, #32\n\tb.hi\t.Lecb_dec_loop\n\n.Lecb_dec_done:\n\tldp\td14,d15,[sp],#16\n\tldp\td12,d13,[sp],#16\n\tldp\td10,d11,[sp],#16\n\tldp\td8,d9,[sp],#16\n\tldp\tx29,x30,[sp],#16\n\tAARCH64_VALIDATE_LINK_REGISTER\n\tret\n.size\tvpaes_ecb_decrypt,.-vpaes_ecb_decrypt", "arch": "arm", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/arm/vpaes-armv8.S", "line_start": 1201, "line_end": 1219}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/aes.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nAES_SRCS = aes-586.S aesni-x86.S\nAESNI = yes\nAESCPPFLAGS = -DAES_ASM -DOPENSSL_IA32_SSE2\n.include \"../../aes.inc\"", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/aes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/aes.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tBF_encrypt\n.type\tBF_encrypt,@function\n.align\t16\nBF_encrypt:\n.L_BF_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\txorl\t%eax,%eax\n\tmovl\t(%ebp),%ebx\n\txorl\t%ecx,%ecx\n\txorl\t%ebx,%edi\n\n\n\tmovl\t4(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:2", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t12(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t16(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:3", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t16(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t20(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:4", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t28(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t32(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:5", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t32(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t36(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:6", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t44(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t48(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:7", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t48(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t52(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:8", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t60(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t64(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:9", "text": "movl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t64(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\n\tmovl\t20(%esp),%eax\n\txorl\t%ebx,%edi\n\tmovl\t68(%ebp),%edx\n\txorl\t%edx,%esi\n\tmovl\t%edi,4(%eax)\n\tmovl\t%esi,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tBF_encrypt,.-.L_BF_encrypt_begin\n.globl\tBF_decrypt\n.type\tBF_decrypt,@function\n.align\t16\nBF_decrypt:\n.L_BF_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\txorl\t%eax,%eax\n\tmovl\t68(%ebp),%ebx\n\txorl\t%ecx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:10", "text": "BF_decrypt:\n.L_BF_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\txorl\t%eax,%eax\n\tmovl\t68(%ebp),%ebx\n\txorl\t%ecx,%ecx\n\txorl\t%ebx,%edi\n\n\n\tmovl\t64(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t60(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:11", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t60(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t52(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:12", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t52(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t48(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t44(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:13", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t44(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t36(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:14", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t36(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t32(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t28(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:15", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t28(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t20(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:16", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t20(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t16(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t12(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:17", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t12(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%edi\n\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t%edi,%ebx\n\txorl\t%edx,%esi\n\tshrl\t$16,%ebx\n\tmovl\t%edi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%esi\n\n\n\tmovl\t4(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:18", "text": "xorl\t%ebx,%esi\n\n\n\tmovl\t4(%ebp),%edx\n\tmovl\t%esi,%ebx\n\txorl\t%edx,%edi\n\tshrl\t$16,%ebx\n\tmovl\t%esi,%edx\n\tmovb\t%bh,%al\n\tandl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t$255,%edx\n\tmovl\t72(%ebp,%eax,4),%eax\n\tmovl\t1096(%ebp,%ebx,4),%ebx\n\taddl\t%eax,%ebx\n\tmovl\t2120(%ebp,%ecx,4),%eax\n\txorl\t%eax,%ebx\n\tmovl\t3144(%ebp,%edx,4),%edx\n\taddl\t%edx,%ebx\n\n\tmovl\t20(%esp),%eax\n\txorl\t%ebx,%edi\n\tmovl\t(%ebp),%edx\n\txorl\t%edx,%esi\n\tmovl\t%edi,4(%eax)\n\tmovl\t%esi,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tBF_decrypt,.-.L_BF_decrypt_begin\n.globl\tBF_cbc_encrypt\n.type\tBF_cbc_encrypt,@function\n.align\t16\nBF_cbc_encrypt:\n.L_BF_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:19", "text": "#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tmovl\t48(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L000decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tjz\t.L001encrypt_finish\n.L002encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L002encrypt_loop\n.L001encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tcall\t.L004PIC_point\n.L004PIC_point:\n\tpopl\t%edx\n\tleal\t.L005cbc_enc_jmp_table-.L004PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:20", "text": "call\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L002encrypt_loop\n.L001encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tcall\t.L004PIC_point\n.L004PIC_point:\n\tpopl\t%edx\n\tleal\t.L005cbc_enc_jmp_table-.L004PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L006ej7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L007ej6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t5(%esi),%dh\n.L008ej5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L009ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L010ejend\n.L011ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:21", "text": "#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L009ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L010ejend\n.L011ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L012ej2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t1(%esi),%ch\n.L013ej1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t(%esi),%cl\n.L010ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L003finish\n.L000decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L014decrypt_finish\n.L015decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:22", "text": "bswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L003finish\n.L000decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L014decrypt_finish\n.L015decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L015decrypt_loop\n.L014decrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:23", "text": "subl\t$8,%ebp\n\tjnz\t.L015decrypt_loop\n.L014decrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L016dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L017dj6:\n\tmovb\t%dh,5(%edi)\n.L018dj5:\n\tmovb\t%dl,4(%edi)\n.L019dj4:\n\tmovl\t%ecx,(%edi)\n\tjmp\t.L020djend\n.L021dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L022dj2:\n\tmovb\t%ch,1(%esi)\n.L023dj1:\n\tmovb\t%cl,(%esi)\n.L020djend:\n\tjmp\t.L003finish\n.L003finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L005cbc_enc_jmp_table:\n.long\t0\n.long\t.L013ej1-.L004PIC_point\n.long\t.L012ej2-.L004PIC_point\n.long\t.L011ej3-.L004PIC_point", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S:24", "text": ".L023dj1:\n\tmovb\t%cl,(%esi)\n.L020djend:\n\tjmp\t.L003finish\n.L003finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L005cbc_enc_jmp_table:\n.long\t0\n.long\t.L013ej1-.L004PIC_point\n.long\t.L012ej2-.L004PIC_point\n.long\t.L011ej3-.L004PIC_point\n.long\t.L009ej4-.L004PIC_point\n.long\t.L008ej5-.L004PIC_point\n.long\t.L007ej6-.L004PIC_point\n.long\t.L006ej7-.L004PIC_point\n.align\t64\n.size\tBF_cbc_encrypt,.-.L_BF_cbc_encrypt_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-586.S", "line_start": 921, "line_end": 963}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tBF_encrypt\n.type\tBF_encrypt,@function\n.align\t16\nBF_encrypt:\n.L_BF_encrypt_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t20(%esp),%eax\n\tmovl\t(%eax),%ecx\n\tmovl\t4(%eax),%edx\n\n\n\tmovl\t24(%esp),%edi\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\txorl\t(%edi),%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t4(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t8(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:2", "text": "xorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t8(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t12(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t16(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:3", "text": "rorl\t$16,%edx\n\tmovl\t16(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t20(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t24(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t28(%edi),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:4", "text": "movl\t24(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t28(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t32(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t36(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:5", "text": "movb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t36(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t40(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t44(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:6", "text": "xorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t44(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t48(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t52(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:7", "text": "movl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t52(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t56(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t60(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:8", "text": "movb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t60(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t64(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\txorl\t68(%edi),%edx\n\tmovl\t20(%esp),%eax\n\tmovl\t%edx,(%eax)\n\tmovl\t%ecx,4(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tBF_encrypt,.-.L_BF_encrypt_begin\n.globl\tBF_decrypt\n.type\tBF_decrypt,@function\n.align\t16\nBF_decrypt:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:9", "text": "movl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\txorl\t68(%edi),%edx\n\tmovl\t20(%esp),%eax\n\tmovl\t%edx,(%eax)\n\tmovl\t%ecx,4(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tBF_encrypt,.-.L_BF_encrypt_begin\n.globl\tBF_decrypt\n.type\tBF_decrypt,@function\n.align\t16\nBF_decrypt:\n.L_BF_decrypt_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t20(%esp),%eax\n\tmovl\t(%eax),%ecx\n\tmovl\t4(%eax),%edx\n\n\n\tmovl\t24(%esp),%edi\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\txorl\t68(%edi),%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t64(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t60(%edi),%esi\n\tmovb\t%dh,%al", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:10", "text": "movb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t60(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t56(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t52(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:11", "text": "rorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t52(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t48(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t44(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:12", "text": "movl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t44(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t40(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t36(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:13", "text": "movb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t36(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t32(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t28(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:14", "text": "addl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t28(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t24(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t20(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:15", "text": "xorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t20(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t16(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t12(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:16", "text": "addl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t12(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\n\n\trorl\t$16,%ecx\n\tmovl\t8(%edi),%esi\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\trorl\t$16,%ecx\n\txorl\t%esi,%edx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%ch,%al\n\tmovb\t%cl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t4(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:17", "text": "xorl\t%esi,%edx\n\n\n\trorl\t$16,%edx\n\tmovl\t4(%edi),%esi\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\trorl\t$16,%edx\n\txorl\t%esi,%ecx\n\tmovl\t72(%edi,%eax,4),%esi\n\tmovl\t1096(%edi,%ebx,4),%ebp\n\tmovb\t%dh,%al\n\tmovb\t%dl,%bl\n\taddl\t%ebp,%esi\n\tmovl\t2120(%edi,%eax,4),%eax\n\txorl\t%eax,%esi\n\tmovl\t3144(%edi,%ebx,4),%ebp\n\taddl\t%ebp,%esi\n\txorl\t%eax,%eax\n\txorl\t%esi,%ecx\n\txorl\t(%edi),%edx\n\tmovl\t20(%esp),%eax\n\tmovl\t%edx,(%eax)\n\tmovl\t%ecx,4(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tBF_decrypt,.-.L_BF_decrypt_begin\n.globl\tBF_cbc_encrypt\n.type\tBF_cbc_encrypt,@function\n.align\t16\nBF_cbc_encrypt:\n.L_BF_cbc_encrypt_begin:\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tmovl\t48(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L000decrypt", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:18", "text": "movl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tmovl\t48(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L000decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tjz\t.L001encrypt_finish\n.L002encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L002encrypt_loop\n.L001encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tcall\t.L004PIC_point\n.L004PIC_point:\n\tpopl\t%edx\n\tleal\t.L005cbc_enc_jmp_table-.L004PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L006ej7:\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:19", "text": "addl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L002encrypt_loop\n.L001encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tcall\t.L004PIC_point\n.L004PIC_point:\n\tpopl\t%edx\n\tleal\t.L005cbc_enc_jmp_table-.L004PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L006ej7:\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L007ej6:\n\tmovb\t5(%esi),%dh\n.L008ej5:\n\tmovb\t4(%esi),%dl\n.L009ej4:\n\tmovl\t(%esi),%ecx\n\tjmp\t.L010ejend\n.L011ej3:\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L012ej2:\n\tmovb\t1(%esi),%ch\n.L013ej1:\n\tmovb\t(%esi),%cl\n.L010ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L003finish\n.L000decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L014decrypt_finish\n.L015decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:20", "text": "movl\t%ebx,12(%esp)\n\tcall\t.L_BF_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L003finish\n.L000decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L014decrypt_finish\n.L015decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L015decrypt_loop\n.L014decrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:21", "text": ".L014decrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L003finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_BF_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L016dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L017dj6:\n\tmovb\t%dh,5(%edi)\n.L018dj5:\n\tmovb\t%dl,4(%edi)\n.L019dj4:\n\tmovl\t%ecx,(%edi)\n\tjmp\t.L020djend\n.L021dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L022dj2:\n\tmovb\t%ch,1(%esi)\n.L023dj1:\n\tmovb\t%cl,(%esi)\n.L020djend:\n\tjmp\t.L003finish\n.L003finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L005cbc_enc_jmp_table:\n.long\t0\n.long\t.L013ej1-.L004PIC_point\n.long\t.L012ej2-.L004PIC_point\n.long\t.L011ej3-.L004PIC_point\n.long\t.L009ej4-.L004PIC_point\n.long\t.L008ej5-.L004PIC_point", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S:22", "text": ".L020djend:\n\tjmp\t.L003finish\n.L003finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L005cbc_enc_jmp_table:\n.long\t0\n.long\t.L013ej1-.L004PIC_point\n.long\t.L012ej2-.L004PIC_point\n.long\t.L011ej3-.L004PIC_point\n.long\t.L009ej4-.L004PIC_point\n.long\t.L008ej5-.L004PIC_point\n.long\t.L007ej6-.L004PIC_point\n.long\t.L006ej7-.L004PIC_point\n.align\t64\n.size\tBF_cbc_encrypt,.-.L_BF_cbc_encrypt_begin", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bf-686.S", "line_start": 841, "line_end": 864}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tbn_mul_add_words\n.type\tbn_mul_add_words,@function\n.align\t16\nbn_mul_add_words:\n.L_bn_mul_add_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L000PIC_me_up\n.L000PIC_me_up:\n\tpopl\t%eax\n\tleal\tOPENSSL_ia32cap_P-.L000PIC_me_up(%eax),%eax\n\tbtl\t$26,(%eax)\n\tjnc\t.L001maw_non_sse2\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%edx\n\tmovl\t12(%esp),%ecx\n\tmovd\t16(%esp),%mm0\n\tpxor\t%mm1,%mm1\n\tjmp\t.L002maw_sse2_entry\n.align\t16\n.L003maw_sse2_unrolled:\n\tmovd\t(%eax),%mm3\n\tpaddq\t%mm3,%mm1\n\tmovd\t(%edx),%mm2\n\tpmuludq\t%mm0,%mm2\n\tmovd\t4(%edx),%mm4\n\tpmuludq\t%mm0,%mm4\n\tmovd\t8(%edx),%mm6\n\tpmuludq\t%mm0,%mm6\n\tmovd\t12(%edx),%mm7\n\tpmuludq\t%mm0,%mm7\n\tpaddq\t%mm2,%mm1\n\tmovd\t4(%eax),%mm3\n\tpaddq\t%mm4,%mm3\n\tmovd\t8(%eax),%mm5\n\tpaddq\t%mm6,%mm5\n\tmovd\t12(%eax),%mm4\n\tpaddq\t%mm4,%mm7\n\tmovd\t%mm1,(%eax)\n\tmovd\t16(%edx),%mm2\n\tpmuludq\t%mm0,%mm2\n\tpsrlq\t$32,%mm1\n\tmovd\t20(%edx),%mm4\n\tpmuludq\t%mm0,%mm4\n\tpaddq\t%mm3,%mm1\n\tmovd\t24(%edx),%mm6\n\tpmuludq\t%mm0,%mm6\n\tmovd\t%mm1,4(%eax)\n\tpsrlq\t$32,%mm1\n\tmovd\t28(%edx),%mm3\n\taddl\t$32,%edx\n\tpmuludq\t%mm0,%mm3\n\tpaddq\t%mm5,%mm1\n\tmovd\t16(%eax),%mm5\n\tpaddq\t%mm5,%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:2", "text": "paddq\t%mm6,%mm5\n\tmovd\t12(%eax),%mm4\n\tpaddq\t%mm4,%mm7\n\tmovd\t%mm1,(%eax)\n\tmovd\t16(%edx),%mm2\n\tpmuludq\t%mm0,%mm2\n\tpsrlq\t$32,%mm1\n\tmovd\t20(%edx),%mm4\n\tpmuludq\t%mm0,%mm4\n\tpaddq\t%mm3,%mm1\n\tmovd\t24(%edx),%mm6\n\tpmuludq\t%mm0,%mm6\n\tmovd\t%mm1,4(%eax)\n\tpsrlq\t$32,%mm1\n\tmovd\t28(%edx),%mm3\n\taddl\t$32,%edx\n\tpmuludq\t%mm0,%mm3\n\tpaddq\t%mm5,%mm1\n\tmovd\t16(%eax),%mm5\n\tpaddq\t%mm5,%mm2\n\tmovd\t%mm1,8(%eax)\n\tpsrlq\t$32,%mm1\n\tpaddq\t%mm7,%mm1\n\tmovd\t20(%eax),%mm5\n\tpaddq\t%mm5,%mm4\n\tmovd\t%mm1,12(%eax)\n\tpsrlq\t$32,%mm1\n\tpaddq\t%mm2,%mm1\n\tmovd\t24(%eax),%mm5\n\tpaddq\t%mm5,%mm6\n\tmovd\t%mm1,16(%eax)\n\tpsrlq\t$32,%mm1\n\tpaddq\t%mm4,%mm1\n\tmovd\t28(%eax),%mm5\n\tpaddq\t%mm5,%mm3\n\tmovd\t%mm1,20(%eax)\n\tpsrlq\t$32,%mm1\n\tpaddq\t%mm6,%mm1\n\tmovd\t%mm1,24(%eax)\n\tpsrlq\t$32,%mm1\n\tpaddq\t%mm3,%mm1\n\tmovd\t%mm1,28(%eax)\n\tleal\t32(%eax),%eax\n\tpsrlq\t$32,%mm1\n\tsubl\t$8,%ecx\n\tjz\t.L004maw_sse2_exit\n.L002maw_sse2_entry:\n\ttestl\t$4294967288,%ecx\n\tjnz\t.L003maw_sse2_unrolled\n.align\t4\n.L005maw_sse2_loop:\n\tmovd\t(%edx),%mm2\n\tmovd\t(%eax),%mm3\n\tpmuludq\t%mm0,%mm2\n\tleal\t4(%edx),%edx\n\tpaddq\t%mm3,%mm1\n\tpaddq\t%mm2,%mm1\n\tmovd\t%mm1,(%eax)\n\tsubl\t$1,%ecx\n\tpsrlq\t$32,%mm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:3", "text": "paddq\t%mm3,%mm1\n\tmovd\t%mm1,28(%eax)\n\tleal\t32(%eax),%eax\n\tpsrlq\t$32,%mm1\n\tsubl\t$8,%ecx\n\tjz\t.L004maw_sse2_exit\n.L002maw_sse2_entry:\n\ttestl\t$4294967288,%ecx\n\tjnz\t.L003maw_sse2_unrolled\n.align\t4\n.L005maw_sse2_loop:\n\tmovd\t(%edx),%mm2\n\tmovd\t(%eax),%mm3\n\tpmuludq\t%mm0,%mm2\n\tleal\t4(%edx),%edx\n\tpaddq\t%mm3,%mm1\n\tpaddq\t%mm2,%mm1\n\tmovd\t%mm1,(%eax)\n\tsubl\t$1,%ecx\n\tpsrlq\t$32,%mm1\n\tleal\t4(%eax),%eax\n\tjnz\t.L005maw_sse2_loop\n.L004maw_sse2_exit:\n\tmovd\t%mm1,%eax\n\temms\n\tret\n.align\t16\n.L001maw_non_sse2:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\txorl\t%esi,%esi\n\tmovl\t20(%esp),%edi\n\tmovl\t28(%esp),%ecx\n\tmovl\t24(%esp),%ebx\n\tandl\t$4294967288,%ecx\n\tmovl\t32(%esp),%ebp\n\tpushl\t%ecx\n\tjz\t.L006maw_finish\n.align\t16\n.L007maw_loop:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t4(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:4", "text": "jz\t.L006maw_finish\n.align\t16\n.L007maw_loop:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t4(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t8(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t12(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t16(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t20(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:5", "text": "movl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t16(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t20(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t24(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t28(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t28(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,28(%edi)\n\tmovl\t%edx,%esi\n\n\tsubl\t$8,%ecx\n\tleal\t32(%ebx),%ebx\n\tleal\t32(%edi),%edi\n\tjnz\t.L007maw_loop\n.L006maw_finish:\n\tmovl\t32(%esp),%ecx\n\tandl\t$7,%ecx\n\tjnz\t.L008maw_finish2\n\tjmp\t.L009maw_end\n.L008maw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:6", "text": ".L006maw_finish:\n\tmovl\t32(%esp),%ecx\n\tandl\t$7,%ecx\n\tjnz\t.L008maw_finish2\n\tjmp\t.L009maw_end\n.L008maw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t4(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t8(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t12(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t16(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:7", "text": "movl\t12(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t12(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t16(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t20(%edi),%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L009maw_end\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\taddl\t24(%edi),%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n.L009maw_end:\n\tmovl\t%esi,%eax\n\tpopl\t%ecx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_mul_add_words,.-.L_bn_mul_add_words_begin\n.globl\tbn_mul_words\n.type\tbn_mul_words,@function\n.align\t16\nbn_mul_words:\n.L_bn_mul_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:8", "text": "movl\t%edx,%esi\n.L009maw_end:\n\tmovl\t%esi,%eax\n\tpopl\t%ecx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_mul_add_words,.-.L_bn_mul_add_words_begin\n.globl\tbn_mul_words\n.type\tbn_mul_words,@function\n.align\t16\nbn_mul_words:\n.L_bn_mul_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L010PIC_me_up\n.L010PIC_me_up:\n\tpopl\t%eax\n\tleal\tOPENSSL_ia32cap_P-.L010PIC_me_up(%eax),%eax\n\tbtl\t$26,(%eax)\n\tjnc\t.L011mw_non_sse2\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%edx\n\tmovl\t12(%esp),%ecx\n\tmovd\t16(%esp),%mm0\n\tpxor\t%mm1,%mm1\n.align\t16\n.L012mw_sse2_loop:\n\tmovd\t(%edx),%mm2\n\tpmuludq\t%mm0,%mm2\n\tleal\t4(%edx),%edx\n\tpaddq\t%mm2,%mm1\n\tmovd\t%mm1,(%eax)\n\tsubl\t$1,%ecx\n\tpsrlq\t$32,%mm1\n\tleal\t4(%eax),%eax\n\tjnz\t.L012mw_sse2_loop\n\tmovd\t%mm1,%eax\n\temms\n\tret\n.align\t16\n.L011mw_non_sse2:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\txorl\t%esi,%esi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ebp\n\tmovl\t32(%esp),%ecx\n\tandl\t$4294967288,%ebp\n\tjz\t.L013mw_finish\n.L014mw_loop:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:9", "text": "leal\t4(%eax),%eax\n\tjnz\t.L012mw_sse2_loop\n\tmovd\t%mm1,%eax\n\temms\n\tret\n.align\t16\n.L011mw_non_sse2:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\txorl\t%esi,%esi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ebp\n\tmovl\t32(%esp),%ecx\n\tandl\t$4294967288,%ebp\n\tjz\t.L013mw_finish\n.L014mw_loop:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:10", "text": "movl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t28(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,28(%edi)\n\tmovl\t%edx,%esi\n\n\taddl\t$32,%ebx\n\taddl\t$32,%edi\n\tsubl\t$8,%ebp\n\tjz\t.L013mw_finish\n\tjmp\t.L014mw_loop\n.L013mw_finish:\n\tmovl\t28(%esp),%ebp\n\tandl\t$7,%ebp\n\tjnz\t.L015mw_finish2\n\tjmp\t.L016mw_end\n.L015mw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:11", "text": "jz\t.L013mw_finish\n\tjmp\t.L014mw_loop\n.L013mw_finish:\n\tmovl\t28(%esp),%ebp\n\tandl\t$7,%ebp\n\tjnz\t.L015mw_finish2\n\tjmp\t.L016mw_end\n.L015mw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:12", "text": "movl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L016mw_end\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n.L016mw_end:\n\tmovl\t%esi,%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_mul_words,.-.L_bn_mul_words_begin\n.globl\tbn_sqr_words\n.type\tbn_sqr_words,@function\n.align\t16\nbn_sqr_words:\n.L_bn_sqr_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L017PIC_me_up\n.L017PIC_me_up:\n\tpopl\t%eax\n\tleal\tOPENSSL_ia32cap_P-.L017PIC_me_up(%eax),%eax\n\tbtl\t$26,(%eax)\n\tjnc\t.L018sqr_non_sse2\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%edx\n\tmovl\t12(%esp),%ecx\n.align\t16\n.L019sqr_sse2_loop:\n\tmovd\t(%edx),%mm0\n\tpmuludq\t%mm0,%mm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:13", "text": "bn_sqr_words:\n.L_bn_sqr_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L017PIC_me_up\n.L017PIC_me_up:\n\tpopl\t%eax\n\tleal\tOPENSSL_ia32cap_P-.L017PIC_me_up(%eax),%eax\n\tbtl\t$26,(%eax)\n\tjnc\t.L018sqr_non_sse2\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%edx\n\tmovl\t12(%esp),%ecx\n.align\t16\n.L019sqr_sse2_loop:\n\tmovd\t(%edx),%mm0\n\tpmuludq\t%mm0,%mm0\n\tleal\t4(%edx),%edx\n\tmovq\t%mm0,(%eax)\n\tsubl\t$1,%ecx\n\tleal\t8(%eax),%eax\n\tjnz\t.L019sqr_sse2_loop\n\temms\n\tret\n.align\t16\n.L018sqr_non_sse2:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%esi\n\tmovl\t24(%esp),%edi\n\tmovl\t28(%esp),%ebx\n\tandl\t$4294967288,%ebx\n\tjz\t.L020sw_finish\n.L021sw_loop:\n\n\tmovl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)\n\tmovl\t%edx,4(%esi)\n\n\tmovl\t4(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,8(%esi)\n\tmovl\t%edx,12(%esi)\n\n\tmovl\t8(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,16(%esi)\n\tmovl\t%edx,20(%esi)\n\n\tmovl\t12(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,24(%esi)\n\tmovl\t%edx,28(%esi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:14", "text": "movl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)\n\tmovl\t%edx,4(%esi)\n\n\tmovl\t4(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,8(%esi)\n\tmovl\t%edx,12(%esi)\n\n\tmovl\t8(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,16(%esi)\n\tmovl\t%edx,20(%esi)\n\n\tmovl\t12(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,24(%esi)\n\tmovl\t%edx,28(%esi)\n\n\tmovl\t16(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,32(%esi)\n\tmovl\t%edx,36(%esi)\n\n\tmovl\t20(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,40(%esi)\n\tmovl\t%edx,44(%esi)\n\n\tmovl\t24(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,48(%esi)\n\tmovl\t%edx,52(%esi)\n\n\tmovl\t28(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,56(%esi)\n\tmovl\t%edx,60(%esi)\n\n\taddl\t$32,%edi\n\taddl\t$64,%esi\n\tsubl\t$8,%ebx\n\tjnz\t.L021sw_loop\n.L020sw_finish:\n\tmovl\t28(%esp),%ebx\n\tandl\t$7,%ebx\n\tjz\t.L022sw_end\n\n\tmovl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,4(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t4(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,8(%esi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:15", "text": "addl\t$32,%edi\n\taddl\t$64,%esi\n\tsubl\t$8,%ebx\n\tjnz\t.L021sw_loop\n.L020sw_finish:\n\tmovl\t28(%esp),%ebx\n\tandl\t$7,%ebx\n\tjz\t.L022sw_end\n\n\tmovl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,4(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t4(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,8(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,12(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t8(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,16(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,20(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t12(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,24(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,28(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t16(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,32(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,36(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t20(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,40(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,44(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t24(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,48(%esi)\n\tmovl\t%edx,52(%esi)\n.L022sw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:16", "text": "movl\t%eax,32(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,36(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t20(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,40(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,44(%esi)\n\tjz\t.L022sw_end\n\n\tmovl\t24(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,48(%esi)\n\tmovl\t%edx,52(%esi)\n.L022sw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sqr_words,.-.L_bn_sqr_words_begin\n.globl\tbn_div_words\n.type\tbn_div_words,@function\n.align\t16\nbn_div_words:\n.L_bn_div_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ecx\n\tdivl\t%ecx\n\tret\n.size\tbn_div_words,.-.L_bn_div_words_begin\n.globl\tbn_add_words\n.type\tbn_add_words,@function\n.align\t16\nbn_add_words:\n.L_bn_add_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:17", "text": ".type\tbn_add_words,@function\n.align\t16\nbn_add_words:\n.L_bn_add_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L023aw_finish\n.L024aw_loop:\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:18", "text": "movl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L024aw_loop", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:19", "text": "movl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L024aw_loop\n.L023aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L025aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:20", "text": "adcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,12(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L025aw_end:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:21", "text": "movl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L025aw_end\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L025aw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_add_words,.-.L_bn_add_words_begin\n.globl\tbn_sub_words\n.type\tbn_sub_words,@function\n.align\t16\nbn_sub_words:\n.L_bn_sub_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L026aw_finish\n.L027aw_loop:\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:22", "text": "movl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L026aw_finish\n.L027aw_loop:\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:23", "text": "movl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L027aw_loop\n.L026aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L028aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:24", "text": "movl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L027aw_loop\n.L026aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L028aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,12(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:25", "text": "adcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,12(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L028aw_end\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L028aw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sub_words,.-.L_bn_sub_words_begin\n.globl\tbn_sub_part_words\n.type\tbn_sub_part_words,@function\n.align\t16\nbn_sub_part_words:\n.L_bn_sub_part_words_begin:\n\t#ifdef __CET__", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:26", "text": "subl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L028aw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sub_words,.-.L_bn_sub_words_begin\n.globl\tbn_sub_part_words\n.type\tbn_sub_part_words,@function\n.align\t16\nbn_sub_part_words:\n.L_bn_sub_part_words_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L029aw_finish\n.L030aw_loop:\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:27", "text": "movl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:28", "text": "movl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L030aw_loop\n.L029aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:29", "text": "movl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:30", "text": "movl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n\tdecl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n.L031aw_end:\n\tcmpl\t$0,36(%esp)\n\tje\t.L032pw_end\n\tmovl\t36(%esp),%ebp\n\tcmpl\t$0,%ebp\n\tje\t.L032pw_end", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:31", "text": "decl\t%ebp\n\tjz\t.L031aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\taddl\t$4,%esi\n\taddl\t$4,%edi\n\taddl\t$4,%ebx\n.L031aw_end:\n\tcmpl\t$0,36(%esp)\n\tje\t.L032pw_end\n\tmovl\t36(%esp),%ebp\n\tcmpl\t$0,%ebp\n\tje\t.L032pw_end\n\tjge\t.L033pw_pos\n\n\tmovl\t$0,%edx\n\tsubl\t%ebp,%edx\n\tmovl\t%edx,%ebp\n\tandl\t$4294967288,%ebp\n\tjz\t.L034pw_neg_finish\n.L035pw_neg_loop:\n\n\tmovl\t$0,%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:32", "text": "subl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t28(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:33", "text": "adcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t$0,%ecx\n\tmovl\t28(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L035pw_neg_loop\n.L034pw_neg_finish:\n\tmovl\t36(%esp),%edx\n\tmovl\t$0,%ebp\n\tsubl\t%edx,%ebp\n\tandl\t$7,%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:34", "text": "movl\t%ecx,(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,12(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t24(%edi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:35", "text": "adcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L032pw_end\n\n\tmovl\t$0,%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\tjmp\t.L032pw_end\n.L033pw_pos:\n\tandl\t$4294967288,%ebp\n\tjz\t.L036pw_pos_finish\n.L037pw_pos_loop:\n\n\tmovl\t(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,(%ebx)\n\tjnc\t.L038pw_nc0\n\n\tmovl\t4(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,4(%ebx)\n\tjnc\t.L039pw_nc1\n\n\tmovl\t8(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,8(%ebx)\n\tjnc\t.L040pw_nc2\n\n\tmovl\t12(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,12(%ebx)\n\tjnc\t.L041pw_nc3\n\n\tmovl\t16(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,16(%ebx)\n\tjnc\t.L042pw_nc4\n\n\tmovl\t20(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,20(%ebx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:36", "text": "jnc\t.L039pw_nc1\n\n\tmovl\t8(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,8(%ebx)\n\tjnc\t.L040pw_nc2\n\n\tmovl\t12(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,12(%ebx)\n\tjnc\t.L041pw_nc3\n\n\tmovl\t16(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,16(%ebx)\n\tjnc\t.L042pw_nc4\n\n\tmovl\t20(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,20(%ebx)\n\tjnc\t.L043pw_nc5\n\n\tmovl\t24(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,24(%ebx)\n\tjnc\t.L044pw_nc6\n\n\tmovl\t28(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,28(%ebx)\n\tjnc\t.L045pw_nc7\n\n\taddl\t$32,%esi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L037pw_pos_loop\n.L036pw_pos_finish:\n\tmovl\t36(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,(%ebx)\n\tjnc\t.L046pw_tail_nc0\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t4(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,4(%ebx)\n\tjnc\t.L047pw_tail_nc1\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t8(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,8(%ebx)\n\tjnc\t.L048pw_tail_nc2\n\tdecl\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:37", "text": "movl\t(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,(%ebx)\n\tjnc\t.L046pw_tail_nc0\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t4(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,4(%ebx)\n\tjnc\t.L047pw_tail_nc1\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t8(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,8(%ebx)\n\tjnc\t.L048pw_tail_nc2\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t12(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,12(%ebx)\n\tjnc\t.L049pw_tail_nc3\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t16(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,16(%ebx)\n\tjnc\t.L050pw_tail_nc4\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t20(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,20(%ebx)\n\tjnc\t.L051pw_tail_nc5\n\tdecl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t24(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,24(%ebx)\n\tjnc\t.L052pw_tail_nc6\n\tmovl\t$1,%eax\n\tjmp\t.L032pw_end\n.L053pw_nc_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t%ecx,(%ebx)\n.L038pw_nc0:\n\tmovl\t4(%esi),%ecx\n\tmovl\t%ecx,4(%ebx)\n.L039pw_nc1:\n\tmovl\t8(%esi),%ecx\n\tmovl\t%ecx,8(%ebx)\n.L040pw_nc2:\n\tmovl\t12(%esi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:38", "text": "decl\t%ebp\n\tjz\t.L032pw_end\n\n\tmovl\t24(%esi),%ecx\n\tsubl\t%eax,%ecx\n\tmovl\t%ecx,24(%ebx)\n\tjnc\t.L052pw_tail_nc6\n\tmovl\t$1,%eax\n\tjmp\t.L032pw_end\n.L053pw_nc_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t%ecx,(%ebx)\n.L038pw_nc0:\n\tmovl\t4(%esi),%ecx\n\tmovl\t%ecx,4(%ebx)\n.L039pw_nc1:\n\tmovl\t8(%esi),%ecx\n\tmovl\t%ecx,8(%ebx)\n.L040pw_nc2:\n\tmovl\t12(%esi),%ecx\n\tmovl\t%ecx,12(%ebx)\n.L041pw_nc3:\n\tmovl\t16(%esi),%ecx\n\tmovl\t%ecx,16(%ebx)\n.L042pw_nc4:\n\tmovl\t20(%esi),%ecx\n\tmovl\t%ecx,20(%ebx)\n.L043pw_nc5:\n\tmovl\t24(%esi),%ecx\n\tmovl\t%ecx,24(%ebx)\n.L044pw_nc6:\n\tmovl\t28(%esi),%ecx\n\tmovl\t%ecx,28(%ebx)\n.L045pw_nc7:\n\n\taddl\t$32,%esi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L053pw_nc_loop\n\tmovl\t36(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t(%esi),%ecx\n\tmovl\t%ecx,(%ebx)\n.L046pw_tail_nc0:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t4(%esi),%ecx\n\tmovl\t%ecx,4(%ebx)\n.L047pw_tail_nc1:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t8(%esi),%ecx\n\tmovl\t%ecx,8(%ebx)\n.L048pw_tail_nc2:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t12(%esi),%ecx\n\tmovl\t%ecx,12(%ebx)\n.L049pw_tail_nc3:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:39", "text": "andl\t$7,%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t(%esi),%ecx\n\tmovl\t%ecx,(%ebx)\n.L046pw_tail_nc0:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t4(%esi),%ecx\n\tmovl\t%ecx,4(%ebx)\n.L047pw_tail_nc1:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t8(%esi),%ecx\n\tmovl\t%ecx,8(%ebx)\n.L048pw_tail_nc2:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t12(%esi),%ecx\n\tmovl\t%ecx,12(%ebx)\n.L049pw_tail_nc3:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t16(%esi),%ecx\n\tmovl\t%ecx,16(%ebx)\n.L050pw_tail_nc4:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t20(%esi),%ecx\n\tmovl\t%ecx,20(%ebx)\n.L051pw_tail_nc5:\n\tdecl\t%ebp\n\tjz\t.L054pw_nc_end\n\tmovl\t24(%esi),%ecx\n\tmovl\t%ecx,24(%ebx)\n.L052pw_tail_nc6:\n.L054pw_nc_end:\n\tmovl\t$0,%eax\n.L032pw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sub_part_words,.-.L_bn_sub_part_words_begin\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S:40", "text": "popl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sub_part_words,.-.L_bn_sub_part_words_begin\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn-586.S", "line_start": 1561, "line_end": 1582}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nBN_SRCS = bn-586.S co-586.S\n.include \"../../bn.inc\"\nBNCPPFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/bn.inc", "line_start": 1, "line_end": 4}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tCAST_encrypt\n.type\tCAST_encrypt,@function\n.align\t16\nCAST_encrypt:\n.L_CAST_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\n\tmovl\t128(%ebp),%eax\n\tpushl\t%eax\n\txorl\t%eax,%eax\n\n\tmovl\t(%ebp),%edx\n\tmovl\t4(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t12(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:2", "text": "movl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t12(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t16(%ebp),%edx\n\tmovl\t20(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t28(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:3", "text": "andl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t28(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t32(%ebp),%edx\n\tmovl\t36(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t44(%ebp),%ecx\n\tsubl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:4", "text": "xorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t44(%ebp),%ecx\n\tsubl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t48(%ebp),%edx\n\tmovl\t52(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t60(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:5", "text": "andl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t60(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t64(%ebp),%edx\n\tmovl\t68(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t72(%ebp),%edx\n\tmovl\t76(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:6", "text": "movl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t72(%ebp),%edx\n\tmovl\t76(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t80(%ebp),%edx\n\tmovl\t84(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t88(%ebp),%edx\n\tmovl\t92(%ebp),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:7", "text": "roll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t88(%ebp),%edx\n\tmovl\t92(%ebp),%ecx\n\tsubl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tpopl\t%edx\n\torl\t%edx,%edx\n\tjnz\t.L000cast_enc_done\n\n\tmovl\t96(%ebp),%edx\n\tmovl\t100(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:8", "text": "orl\t%edx,%edx\n\tjnz\t.L000cast_enc_done\n\n\tmovl\t96(%ebp),%edx\n\tmovl\t100(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t104(%ebp),%edx\n\tmovl\t108(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t112(%ebp),%edx\n\tmovl\t116(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:9", "text": "addl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t112(%ebp),%edx\n\tmovl\t116(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t120(%ebp),%edx\n\tmovl\t124(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n.L000cast_enc_done:\n\tnop\n\tmovl\t20(%esp),%eax\n\tmovl\t%edi,4(%eax)\n\tmovl\t%esi,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCAST_encrypt,.-.L_CAST_encrypt_begin\n.globl\tCAST_decrypt\n.type\tCAST_decrypt,@function\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:10", "text": "xorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n.L000cast_enc_done:\n\tnop\n\tmovl\t20(%esp),%eax\n\tmovl\t%edi,4(%eax)\n\tmovl\t%esi,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCAST_encrypt,.-.L_CAST_encrypt_begin\n.globl\tCAST_decrypt\n.type\tCAST_decrypt,@function\n.align\t16\nCAST_decrypt:\n.L_CAST_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\n\tmovl\t128(%ebp),%eax\n\torl\t%eax,%eax\n\tjnz\t.L001cast_dec_skip\n\txorl\t%eax,%eax\n\n\tmovl\t120(%ebp),%edx\n\tmovl\t124(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:11", "text": "jnz\t.L001cast_dec_skip\n\txorl\t%eax,%eax\n\n\tmovl\t120(%ebp),%edx\n\tmovl\t124(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t112(%ebp),%edx\n\tmovl\t116(%ebp),%ecx\n\tsubl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t104(%ebp),%edx\n\tmovl\t108(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:12", "text": "xorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t104(%ebp),%edx\n\tmovl\t108(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t96(%ebp),%edx\n\tmovl\t100(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n.L001cast_dec_skip:\n\n\tmovl\t88(%ebp),%edx\n\tmovl\t92(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:13", "text": "xorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n.L001cast_dec_skip:\n\n\tmovl\t88(%ebp),%edx\n\tmovl\t92(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t80(%ebp),%edx\n\tmovl\t84(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t72(%ebp),%edx\n\tmovl\t76(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:14", "text": "andl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t72(%ebp),%edx\n\tmovl\t76(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t64(%ebp),%edx\n\tmovl\t68(%ebp),%ecx\n\tsubl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t60(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:15", "text": "xorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t56(%ebp),%edx\n\tmovl\t60(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t48(%ebp),%edx\n\tmovl\t52(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t44(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:16", "text": "andl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t40(%ebp),%edx\n\tmovl\t44(%ebp),%ecx\n\tsubl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t32(%ebp),%edx\n\tmovl\t36(%ebp),%ecx\n\txorl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t28(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:17", "text": "movl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t24(%ebp),%edx\n\tmovl\t28(%ebp),%ecx\n\taddl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t16(%ebp),%edx\n\tmovl\t20(%ebp),%ecx\n\tsubl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t12(%ebp),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:18", "text": "roll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\tsubl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\n\tmovl\t8(%ebp),%edx\n\tmovl\t12(%ebp),%ecx\n\txorl\t%esi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\taddl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\txorl\t%ebx,%ecx\n\txorl\t%ecx,%edi\n\n\tmovl\t(%ebp),%edx\n\tmovl\t4(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\tnop", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:19", "text": "movl\t4(%ebp),%ecx\n\taddl\t%edi,%edx\n\troll\t%cl,%edx\n\txorl\t%ecx,%ecx\n\tmovl\t$255,%ebx\n\tmovb\t%dh,%cl\n\tandl\t%edx,%ebx\n\tshrl\t$16,%edx\n\txorl\t%eax,%eax\n\tmovb\t%dh,%al\n\tandl\t$255,%edx\n\tmovl\tCAST_S_table0(,%ecx,4),%ecx\n\tmovl\tCAST_S_table1(,%ebx,4),%ebx\n\txorl\t%ebx,%ecx\n\tmovl\tCAST_S_table2(,%eax,4),%ebx\n\tsubl\t%ebx,%ecx\n\tmovl\tCAST_S_table3(,%edx,4),%ebx\n\taddl\t%ebx,%ecx\n\txorl\t%ecx,%esi\n\tnop\n\tmovl\t20(%esp),%eax\n\tmovl\t%edi,4(%eax)\n\tmovl\t%esi,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCAST_decrypt,.-.L_CAST_decrypt_begin\n.globl\tCAST_cbc_encrypt\n.type\tCAST_cbc_encrypt,@function\n.align\t16\nCAST_cbc_encrypt:\n.L_CAST_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tmovl\t48(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:20", "text": "pushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tmovl\t48(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L002decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tjz\t.L003encrypt_finish\n.L004encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_CAST_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L004encrypt_loop\n.L003encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L005finish\n\tcall\t.L006PIC_point\n.L006PIC_point:\n\tpopl\t%edx\n\tleal\t.L007cbc_enc_jmp_table-.L006PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:21", "text": "bswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L004encrypt_loop\n.L003encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L005finish\n\tcall\t.L006PIC_point\n.L006PIC_point:\n\tpopl\t%edx\n\tleal\t.L007cbc_enc_jmp_table-.L006PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L008ej7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L009ej6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t5(%esi),%dh\n.L010ej5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L011ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L012ejend\n.L013ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L014ej2:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:22", "text": "#endif\n\n\tmovb\t4(%esi),%dl\n.L011ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L012ejend\n.L013ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L014ej2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t1(%esi),%ch\n.L015ej1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t(%esi),%cl\n.L012ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_CAST_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L005finish\n.L002decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L016decrypt_finish\n.L017decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:23", "text": "call\t.L_CAST_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L005finish\n.L002decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L016decrypt_finish\n.L017decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_CAST_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L017decrypt_loop\n.L016decrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L005finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_CAST_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:24", "text": "movl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L005finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_CAST_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L018dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L019dj6:\n\tmovb\t%dh,5(%edi)\n.L020dj5:\n\tmovb\t%dl,4(%edi)\n.L021dj4:\n\tmovl\t%ecx,(%edi)\n\tjmp\t.L022djend\n.L023dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L024dj2:\n\tmovb\t%ch,1(%esi)\n.L025dj1:\n\tmovb\t%cl,(%esi)\n.L022djend:\n\tjmp\t.L005finish\n.L005finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L007cbc_enc_jmp_table:\n.long\t0\n.long\t.L015ej1-.L006PIC_point\n.long\t.L014ej2-.L006PIC_point\n.long\t.L013ej3-.L006PIC_point\n.long\t.L011ej4-.L006PIC_point\n.long\t.L010ej5-.L006PIC_point\n.long\t.L009ej6-.L006PIC_point", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S:25", "text": "jmp\t.L005finish\n.L005finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L007cbc_enc_jmp_table:\n.long\t0\n.long\t.L015ej1-.L006PIC_point\n.long\t.L014ej2-.L006PIC_point\n.long\t.L013ej3-.L006PIC_point\n.long\t.L011ej4-.L006PIC_point\n.long\t.L010ej5-.L006PIC_point\n.long\t.L009ej6-.L006PIC_point\n.long\t.L008ej7-.L006PIC_point\n.align\t64\n.size\tCAST_cbc_encrypt,.-.L_CAST_cbc_encrypt_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cast-586.S", "line_start": 961, "line_end": 1000}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tChaCha20_ctr32\n.type\tChaCha20_ctr32,@function\n.align\t16\nChaCha20_ctr32:\n.L_ChaCha20_ctr32_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\txorl\t%eax,%eax\n\tcmpl\t28(%esp),%eax\n\tje\t.L000no_data\n\tcall\t.Lpic_point\n.Lpic_point:\n\tpopl\t%eax\n\tleal\tOPENSSL_ia32cap_P-.Lpic_point(%eax),%ebp\n\ttestl\t$16777216,(%ebp)\n\tjz\t.L001x86\n\ttestl\t$512,4(%ebp)\n\tjz\t.L001x86\n\tjmp\t.Lssse3_shortcut\n.L001x86:\n\tmovl\t32(%esp),%esi\n\tmovl\t36(%esp),%edi\n\tsubl\t$132,%esp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tmovl\t%eax,80(%esp)\n\tmovl\t%ebx,84(%esp)\n\tmovl\t%ecx,88(%esp)\n\tmovl\t%edx,92(%esp)\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx\n\tmovl\t%eax,96(%esp)\n\tmovl\t%ebx,100(%esp)\n\tmovl\t%ecx,104(%esp)\n\tmovl\t%edx,108(%esp)\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t$1,%eax\n\tmovl\t%eax,112(%esp)\n\tmovl\t%ebx,116(%esp)\n\tmovl\t%ecx,120(%esp)\n\tmovl\t%edx,124(%esp)\n\tjmp\t.L002entry\n.align\t16\n.L003outer_loop:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:2", "text": "movl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx\n\tmovl\t%eax,96(%esp)\n\tmovl\t%ebx,100(%esp)\n\tmovl\t%ecx,104(%esp)\n\tmovl\t%edx,108(%esp)\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t$1,%eax\n\tmovl\t%eax,112(%esp)\n\tmovl\t%ebx,116(%esp)\n\tmovl\t%ecx,120(%esp)\n\tmovl\t%edx,124(%esp)\n\tjmp\t.L002entry\n.align\t16\n.L003outer_loop:\n\tmovl\t%ebx,156(%esp)\n\tmovl\t%eax,152(%esp)\n\tmovl\t%ecx,160(%esp)\n.L002entry:\n\tmovl\t$1634760805,%eax\n\tmovl\t$857760878,4(%esp)\n\tmovl\t$2036477234,8(%esp)\n\tmovl\t$1797285236,12(%esp)\n\tmovl\t84(%esp),%ebx\n\tmovl\t88(%esp),%ebp\n\tmovl\t104(%esp),%ecx\n\tmovl\t108(%esp),%esi\n\tmovl\t116(%esp),%edx\n\tmovl\t120(%esp),%edi\n\tmovl\t%ebx,20(%esp)\n\tmovl\t%ebp,24(%esp)\n\tmovl\t%ecx,40(%esp)\n\tmovl\t%esi,44(%esp)\n\tmovl\t%edx,52(%esp)\n\tmovl\t%edi,56(%esp)\n\tmovl\t92(%esp),%ebx\n\tmovl\t124(%esp),%edi\n\tmovl\t112(%esp),%edx\n\tmovl\t80(%esp),%ebp\n\tmovl\t96(%esp),%ecx\n\tmovl\t100(%esp),%esi\n\taddl\t$1,%edx\n\tmovl\t%ebx,28(%esp)\n\tmovl\t%edi,60(%esp)\n\tmovl\t%edx,112(%esp)\n\tmovl\t$10,%ebx\n\tjmp\t.L004loop\n.align\t16\n.L004loop:\n\taddl\t%ebp,%eax\n\tmovl\t%ebx,128(%esp)\n\tmovl\t%ebp,%ebx\n\txorl\t%eax,%edx\n\troll\t$16,%edx\n\taddl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:3", "text": "movl\t92(%esp),%ebx\n\tmovl\t124(%esp),%edi\n\tmovl\t112(%esp),%edx\n\tmovl\t80(%esp),%ebp\n\tmovl\t96(%esp),%ecx\n\tmovl\t100(%esp),%esi\n\taddl\t$1,%edx\n\tmovl\t%ebx,28(%esp)\n\tmovl\t%edi,60(%esp)\n\tmovl\t%edx,112(%esp)\n\tmovl\t$10,%ebx\n\tjmp\t.L004loop\n.align\t16\n.L004loop:\n\taddl\t%ebp,%eax\n\tmovl\t%ebx,128(%esp)\n\tmovl\t%ebp,%ebx\n\txorl\t%eax,%edx\n\troll\t$16,%edx\n\taddl\t%edx,%ecx\n\txorl\t%ecx,%ebx\n\tmovl\t52(%esp),%edi\n\troll\t$12,%ebx\n\tmovl\t20(%esp),%ebp\n\taddl\t%ebx,%eax\n\txorl\t%eax,%edx\n\tmovl\t%eax,(%esp)\n\troll\t$8,%edx\n\tmovl\t4(%esp),%eax\n\taddl\t%edx,%ecx\n\tmovl\t%edx,48(%esp)\n\txorl\t%ecx,%ebx\n\taddl\t%ebp,%eax\n\troll\t$7,%ebx\n\txorl\t%eax,%edi\n\tmovl\t%ecx,32(%esp)\n\troll\t$16,%edi\n\tmovl\t%ebx,16(%esp)\n\taddl\t%edi,%esi\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%ebp\n\tmovl\t56(%esp),%edx\n\troll\t$12,%ebp\n\tmovl\t24(%esp),%ebx\n\taddl\t%ebp,%eax\n\txorl\t%eax,%edi\n\tmovl\t%eax,4(%esp)\n\troll\t$8,%edi\n\tmovl\t8(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,52(%esp)\n\txorl\t%esi,%ebp\n\taddl\t%ebx,%eax\n\troll\t$7,%ebp\n\txorl\t%eax,%edx\n\tmovl\t%esi,36(%esp)\n\troll\t$16,%edx\n\tmovl\t%ebp,20(%esp)\n\taddl\t%edx,%ecx\n\tmovl\t44(%esp),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:4", "text": "xorl\t%esi,%ebp\n\tmovl\t56(%esp),%edx\n\troll\t$12,%ebp\n\tmovl\t24(%esp),%ebx\n\taddl\t%ebp,%eax\n\txorl\t%eax,%edi\n\tmovl\t%eax,4(%esp)\n\troll\t$8,%edi\n\tmovl\t8(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,52(%esp)\n\txorl\t%esi,%ebp\n\taddl\t%ebx,%eax\n\troll\t$7,%ebp\n\txorl\t%eax,%edx\n\tmovl\t%esi,36(%esp)\n\troll\t$16,%edx\n\tmovl\t%ebp,20(%esp)\n\taddl\t%edx,%ecx\n\tmovl\t44(%esp),%esi\n\txorl\t%ecx,%ebx\n\tmovl\t60(%esp),%edi\n\troll\t$12,%ebx\n\tmovl\t28(%esp),%ebp\n\taddl\t%ebx,%eax\n\txorl\t%eax,%edx\n\tmovl\t%eax,8(%esp)\n\troll\t$8,%edx\n\tmovl\t12(%esp),%eax\n\taddl\t%edx,%ecx\n\tmovl\t%edx,56(%esp)\n\txorl\t%ecx,%ebx\n\taddl\t%ebp,%eax\n\troll\t$7,%ebx\n\txorl\t%eax,%edi\n\troll\t$16,%edi\n\tmovl\t%ebx,24(%esp)\n\taddl\t%edi,%esi\n\txorl\t%esi,%ebp\n\troll\t$12,%ebp\n\tmovl\t20(%esp),%ebx\n\taddl\t%ebp,%eax\n\txorl\t%eax,%edi\n\tmovl\t%eax,12(%esp)\n\troll\t$8,%edi\n\tmovl\t(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%ebp\n\taddl\t%ebx,%eax\n\troll\t$7,%ebp\n\txorl\t%eax,%edx\n\troll\t$16,%edx\n\tmovl\t%ebp,28(%esp)\n\taddl\t%edx,%ecx\n\txorl\t%ecx,%ebx\n\tmovl\t48(%esp),%edi\n\troll\t$12,%ebx\n\tmovl\t24(%esp),%ebp\n\taddl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:5", "text": "movl\t20(%esp),%ebx\n\taddl\t%ebp,%eax\n\txorl\t%eax,%edi\n\tmovl\t%eax,12(%esp)\n\troll\t$8,%edi\n\tmovl\t(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%ebp\n\taddl\t%ebx,%eax\n\troll\t$7,%ebp\n\txorl\t%eax,%edx\n\troll\t$16,%edx\n\tmovl\t%ebp,28(%esp)\n\taddl\t%edx,%ecx\n\txorl\t%ecx,%ebx\n\tmovl\t48(%esp),%edi\n\troll\t$12,%ebx\n\tmovl\t24(%esp),%ebp\n\taddl\t%ebx,%eax\n\txorl\t%eax,%edx\n\tmovl\t%eax,(%esp)\n\troll\t$8,%edx\n\tmovl\t4(%esp),%eax\n\taddl\t%edx,%ecx\n\tmovl\t%edx,60(%esp)\n\txorl\t%ecx,%ebx\n\taddl\t%ebp,%eax\n\troll\t$7,%ebx\n\txorl\t%eax,%edi\n\tmovl\t%ecx,40(%esp)\n\troll\t$16,%edi\n\tmovl\t%ebx,20(%esp)\n\taddl\t%edi,%esi\n\tmovl\t32(%esp),%ecx\n\txorl\t%esi,%ebp\n\tmovl\t52(%esp),%edx\n\troll\t$12,%ebp\n\tmovl\t28(%esp),%ebx\n\taddl\t%ebp,%eax\n\txorl\t%eax,%edi\n\tmovl\t%eax,4(%esp)\n\troll\t$8,%edi\n\tmovl\t8(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,48(%esp)\n\txorl\t%esi,%ebp\n\taddl\t%ebx,%eax\n\troll\t$7,%ebp\n\txorl\t%eax,%edx\n\tmovl\t%esi,44(%esp)\n\troll\t$16,%edx\n\tmovl\t%ebp,24(%esp)\n\taddl\t%edx,%ecx\n\tmovl\t36(%esp),%esi\n\txorl\t%ecx,%ebx\n\tmovl\t56(%esp),%edi\n\troll\t$12,%ebx\n\tmovl\t16(%esp),%ebp\n\taddl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:6", "text": "xorl\t%eax,%edi\n\tmovl\t%eax,4(%esp)\n\troll\t$8,%edi\n\tmovl\t8(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,48(%esp)\n\txorl\t%esi,%ebp\n\taddl\t%ebx,%eax\n\troll\t$7,%ebp\n\txorl\t%eax,%edx\n\tmovl\t%esi,44(%esp)\n\troll\t$16,%edx\n\tmovl\t%ebp,24(%esp)\n\taddl\t%edx,%ecx\n\tmovl\t36(%esp),%esi\n\txorl\t%ecx,%ebx\n\tmovl\t56(%esp),%edi\n\troll\t$12,%ebx\n\tmovl\t16(%esp),%ebp\n\taddl\t%ebx,%eax\n\txorl\t%eax,%edx\n\tmovl\t%eax,8(%esp)\n\troll\t$8,%edx\n\tmovl\t12(%esp),%eax\n\taddl\t%edx,%ecx\n\tmovl\t%edx,52(%esp)\n\txorl\t%ecx,%ebx\n\taddl\t%ebp,%eax\n\troll\t$7,%ebx\n\txorl\t%eax,%edi\n\troll\t$16,%edi\n\tmovl\t%ebx,28(%esp)\n\taddl\t%edi,%esi\n\txorl\t%esi,%ebp\n\tmovl\t48(%esp),%edx\n\troll\t$12,%ebp\n\tmovl\t128(%esp),%ebx\n\taddl\t%ebp,%eax\n\txorl\t%eax,%edi\n\tmovl\t%eax,12(%esp)\n\troll\t$8,%edi\n\tmovl\t(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,56(%esp)\n\txorl\t%esi,%ebp\n\troll\t$7,%ebp\n\tdecl\t%ebx\n\tjnz\t.L004loop\n\tmovl\t160(%esp),%ebx\n\taddl\t$1634760805,%eax\n\taddl\t80(%esp),%ebp\n\taddl\t96(%esp),%ecx\n\taddl\t100(%esp),%esi\n\tcmpl\t$64,%ebx\n\tjb\t.L005tail\n\tmovl\t156(%esp),%ebx\n\taddl\t112(%esp),%edx\n\taddl\t120(%esp),%edi\n\txorl\t(%ebx),%eax\n\txorl\t16(%ebx),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:7", "text": "roll\t$8,%edi\n\tmovl\t(%esp),%eax\n\taddl\t%edi,%esi\n\tmovl\t%edi,56(%esp)\n\txorl\t%esi,%ebp\n\troll\t$7,%ebp\n\tdecl\t%ebx\n\tjnz\t.L004loop\n\tmovl\t160(%esp),%ebx\n\taddl\t$1634760805,%eax\n\taddl\t80(%esp),%ebp\n\taddl\t96(%esp),%ecx\n\taddl\t100(%esp),%esi\n\tcmpl\t$64,%ebx\n\tjb\t.L005tail\n\tmovl\t156(%esp),%ebx\n\taddl\t112(%esp),%edx\n\taddl\t120(%esp),%edi\n\txorl\t(%ebx),%eax\n\txorl\t16(%ebx),%ebp\n\tmovl\t%eax,(%esp)\n\tmovl\t152(%esp),%eax\n\txorl\t32(%ebx),%ecx\n\txorl\t36(%ebx),%esi\n\txorl\t48(%ebx),%edx\n\txorl\t56(%ebx),%edi\n\tmovl\t%ebp,16(%eax)\n\tmovl\t%ecx,32(%eax)\n\tmovl\t%esi,36(%eax)\n\tmovl\t%edx,48(%eax)\n\tmovl\t%edi,56(%eax)\n\tmovl\t4(%esp),%ebp\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%esi\n\tmovl\t20(%esp),%edx\n\tmovl\t24(%esp),%edi\n\taddl\t$857760878,%ebp\n\taddl\t$2036477234,%ecx\n\taddl\t$1797285236,%esi\n\taddl\t84(%esp),%edx\n\taddl\t88(%esp),%edi\n\txorl\t4(%ebx),%ebp\n\txorl\t8(%ebx),%ecx\n\txorl\t12(%ebx),%esi\n\txorl\t20(%ebx),%edx\n\txorl\t24(%ebx),%edi\n\tmovl\t%ebp,4(%eax)\n\tmovl\t%ecx,8(%eax)\n\tmovl\t%esi,12(%eax)\n\tmovl\t%edx,20(%eax)\n\tmovl\t%edi,24(%eax)\n\tmovl\t28(%esp),%ebp\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%esi\n\tmovl\t52(%esp),%edx\n\tmovl\t60(%esp),%edi\n\taddl\t92(%esp),%ebp\n\taddl\t104(%esp),%ecx\n\taddl\t108(%esp),%esi\n\taddl\t116(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:8", "text": "addl\t88(%esp),%edi\n\txorl\t4(%ebx),%ebp\n\txorl\t8(%ebx),%ecx\n\txorl\t12(%ebx),%esi\n\txorl\t20(%ebx),%edx\n\txorl\t24(%ebx),%edi\n\tmovl\t%ebp,4(%eax)\n\tmovl\t%ecx,8(%eax)\n\tmovl\t%esi,12(%eax)\n\tmovl\t%edx,20(%eax)\n\tmovl\t%edi,24(%eax)\n\tmovl\t28(%esp),%ebp\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%esi\n\tmovl\t52(%esp),%edx\n\tmovl\t60(%esp),%edi\n\taddl\t92(%esp),%ebp\n\taddl\t104(%esp),%ecx\n\taddl\t108(%esp),%esi\n\taddl\t116(%esp),%edx\n\taddl\t124(%esp),%edi\n\txorl\t28(%ebx),%ebp\n\txorl\t40(%ebx),%ecx\n\txorl\t44(%ebx),%esi\n\txorl\t52(%ebx),%edx\n\txorl\t60(%ebx),%edi\n\tleal\t64(%ebx),%ebx\n\tmovl\t%ebp,28(%eax)\n\tmovl\t(%esp),%ebp\n\tmovl\t%ecx,40(%eax)\n\tmovl\t160(%esp),%ecx\n\tmovl\t%esi,44(%eax)\n\tmovl\t%edx,52(%eax)\n\tmovl\t%edi,60(%eax)\n\tmovl\t%ebp,(%eax)\n\tleal\t64(%eax),%eax\n\tsubl\t$64,%ecx\n\tjnz\t.L003outer_loop\n\tjmp\t.L006done\n.L005tail:\n\taddl\t112(%esp),%edx\n\taddl\t120(%esp),%edi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebp,16(%esp)\n\tmovl\t%ecx,32(%esp)\n\tmovl\t%esi,36(%esp)\n\tmovl\t%edx,48(%esp)\n\tmovl\t%edi,56(%esp)\n\tmovl\t4(%esp),%ebp\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%esi\n\tmovl\t20(%esp),%edx\n\tmovl\t24(%esp),%edi\n\taddl\t$857760878,%ebp\n\taddl\t$2036477234,%ecx\n\taddl\t$1797285236,%esi\n\taddl\t84(%esp),%edx\n\taddl\t88(%esp),%edi\n\tmovl\t%ebp,4(%esp)\n\tmovl\t%ecx,8(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:9", "text": "addl\t112(%esp),%edx\n\taddl\t120(%esp),%edi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebp,16(%esp)\n\tmovl\t%ecx,32(%esp)\n\tmovl\t%esi,36(%esp)\n\tmovl\t%edx,48(%esp)\n\tmovl\t%edi,56(%esp)\n\tmovl\t4(%esp),%ebp\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%esi\n\tmovl\t20(%esp),%edx\n\tmovl\t24(%esp),%edi\n\taddl\t$857760878,%ebp\n\taddl\t$2036477234,%ecx\n\taddl\t$1797285236,%esi\n\taddl\t84(%esp),%edx\n\taddl\t88(%esp),%edi\n\tmovl\t%ebp,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%esi,12(%esp)\n\tmovl\t%edx,20(%esp)\n\tmovl\t%edi,24(%esp)\n\tmovl\t28(%esp),%ebp\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%esi\n\tmovl\t52(%esp),%edx\n\tmovl\t60(%esp),%edi\n\taddl\t92(%esp),%ebp\n\taddl\t104(%esp),%ecx\n\taddl\t108(%esp),%esi\n\taddl\t116(%esp),%edx\n\taddl\t124(%esp),%edi\n\tmovl\t%ebp,28(%esp)\n\tmovl\t156(%esp),%ebp\n\tmovl\t%ecx,40(%esp)\n\tmovl\t152(%esp),%ecx\n\tmovl\t%esi,44(%esp)\n\txorl\t%esi,%esi\n\tmovl\t%edx,52(%esp)\n\tmovl\t%edi,60(%esp)\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n.L007tail_loop:\n\tmovb\t(%esi,%ebp,1),%al\n\tmovb\t(%esp,%esi,1),%dl\n\tleal\t1(%esi),%esi\n\txorb\t%dl,%al\n\tmovb\t%al,-1(%ecx,%esi,1)\n\tdecl\t%ebx\n\tjnz\t.L007tail_loop\n.L006done:\n\taddl\t$132,%esp\n.L000no_data:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tChaCha20_ctr32,.-.L_ChaCha20_ctr32_begin", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:10", "text": "movl\t%edi,60(%esp)\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n.L007tail_loop:\n\tmovb\t(%esi,%ebp,1),%al\n\tmovb\t(%esp,%esi,1),%dl\n\tleal\t1(%esi),%esi\n\txorb\t%dl,%al\n\tmovb\t%al,-1(%ecx,%esi,1)\n\tdecl\t%ebx\n\tjnz\t.L007tail_loop\n.L006done:\n\taddl\t$132,%esp\n.L000no_data:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tChaCha20_ctr32,.-.L_ChaCha20_ctr32_begin\n.globl\tChaCha20_ssse3\n.type\tChaCha20_ssse3,@function\n.align\t16\nChaCha20_ssse3:\n.L_ChaCha20_ssse3_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n.Lssse3_shortcut:\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n\tmovl\t32(%esp),%edx\n\tmovl\t36(%esp),%ebx\n\tmovl\t%esp,%ebp\n\tsubl\t$524,%esp\n\tandl\t$-64,%esp\n\tmovl\t%ebp,512(%esp)\n\tleal\t.Lssse3_data-.Lpic_point(%eax),%eax\n\tmovdqu\t(%ebx),%xmm3\n.L0081x:\n\tmovdqa\t32(%eax),%xmm0\n\tmovdqu\t(%edx),%xmm1\n\tmovdqu\t16(%edx),%xmm2\n\tmovdqa\t(%eax),%xmm6\n\tmovdqa\t16(%eax),%xmm7\n\tmovl\t%ebp,48(%esp)\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovl\t$10,%edx\n\tjmp\t.L009loop1x\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:11", "text": "movl\t%esp,%ebp\n\tsubl\t$524,%esp\n\tandl\t$-64,%esp\n\tmovl\t%ebp,512(%esp)\n\tleal\t.Lssse3_data-.Lpic_point(%eax),%eax\n\tmovdqu\t(%ebx),%xmm3\n.L0081x:\n\tmovdqa\t32(%eax),%xmm0\n\tmovdqu\t(%edx),%xmm1\n\tmovdqu\t16(%edx),%xmm2\n\tmovdqa\t(%eax),%xmm6\n\tmovdqa\t16(%eax),%xmm7\n\tmovl\t%ebp,48(%esp)\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovl\t$10,%edx\n\tjmp\t.L009loop1x\n.align\t16\n.L010outer1x:\n\tmovdqa\t80(%eax),%xmm3\n\tmovdqa\t(%esp),%xmm0\n\tmovdqa\t16(%esp),%xmm1\n\tmovdqa\t32(%esp),%xmm2\n\tpaddd\t48(%esp),%xmm3\n\tmovl\t$10,%edx\n\tmovdqa\t%xmm3,48(%esp)\n\tjmp\t.L009loop1x\n.align\t16\n.L009loop1x:\n\tpaddd\t%xmm1,%xmm0\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,222\n\tpaddd\t%xmm3,%xmm2\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm1,%xmm4\n\tpsrld\t$20,%xmm1\n\tpslld\t$12,%xmm4\n\tpor\t%xmm4,%xmm1\n\tpaddd\t%xmm1,%xmm0\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,223\n\tpaddd\t%xmm3,%xmm2\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm1,%xmm4\n\tpsrld\t$25,%xmm1\n\tpslld\t$7,%xmm4\n\tpor\t%xmm4,%xmm1\n\tpshufd\t$78,%xmm2,%xmm2\n\tpshufd\t$57,%xmm1,%xmm1\n\tpshufd\t$147,%xmm3,%xmm3\n\tnop\n\tpaddd\t%xmm1,%xmm0\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,222\n\tpaddd\t%xmm3,%xmm2\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm1,%xmm4\n\tpsrld\t$20,%xmm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:12", "text": "paddd\t%xmm1,%xmm0\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,223\n\tpaddd\t%xmm3,%xmm2\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm1,%xmm4\n\tpsrld\t$25,%xmm1\n\tpslld\t$7,%xmm4\n\tpor\t%xmm4,%xmm1\n\tpshufd\t$78,%xmm2,%xmm2\n\tpshufd\t$57,%xmm1,%xmm1\n\tpshufd\t$147,%xmm3,%xmm3\n\tnop\n\tpaddd\t%xmm1,%xmm0\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,222\n\tpaddd\t%xmm3,%xmm2\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm1,%xmm4\n\tpsrld\t$20,%xmm1\n\tpslld\t$12,%xmm4\n\tpor\t%xmm4,%xmm1\n\tpaddd\t%xmm1,%xmm0\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,223\n\tpaddd\t%xmm3,%xmm2\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm1,%xmm4\n\tpsrld\t$25,%xmm1\n\tpslld\t$7,%xmm4\n\tpor\t%xmm4,%xmm1\n\tpshufd\t$78,%xmm2,%xmm2\n\tpshufd\t$147,%xmm1,%xmm1\n\tpshufd\t$57,%xmm3,%xmm3\n\tdecl\t%edx\n\tjnz\t.L009loop1x\n\tpaddd\t(%esp),%xmm0\n\tpaddd\t16(%esp),%xmm1\n\tpaddd\t32(%esp),%xmm2\n\tpaddd\t48(%esp),%xmm3\n\tcmpl\t$64,%ecx\n\tjb\t.L011tail\n\tmovdqu\t(%esi),%xmm4\n\tmovdqu\t16(%esi),%xmm5\n\tpxor\t%xmm4,%xmm0\n\tmovdqu\t32(%esi),%xmm4\n\tpxor\t%xmm5,%xmm1\n\tmovdqu\t48(%esi),%xmm5\n\tpxor\t%xmm4,%xmm2\n\tpxor\t%xmm5,%xmm3\n\tleal\t64(%esi),%esi\n\tmovdqu\t%xmm0,(%edi)\n\tmovdqu\t%xmm1,16(%edi)\n\tmovdqu\t%xmm2,32(%edi)\n\tmovdqu\t%xmm3,48(%edi)\n\tleal\t64(%edi),%edi\n\tsubl\t$64,%ecx\n\tjnz\t.L010outer1x\n\tjmp\t.L012done\n.L011tail:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:13", "text": "cmpl\t$64,%ecx\n\tjb\t.L011tail\n\tmovdqu\t(%esi),%xmm4\n\tmovdqu\t16(%esi),%xmm5\n\tpxor\t%xmm4,%xmm0\n\tmovdqu\t32(%esi),%xmm4\n\tpxor\t%xmm5,%xmm1\n\tmovdqu\t48(%esi),%xmm5\n\tpxor\t%xmm4,%xmm2\n\tpxor\t%xmm5,%xmm3\n\tleal\t64(%esi),%esi\n\tmovdqu\t%xmm0,(%edi)\n\tmovdqu\t%xmm1,16(%edi)\n\tmovdqu\t%xmm2,32(%edi)\n\tmovdqu\t%xmm3,48(%edi)\n\tleal\t64(%edi),%edi\n\tsubl\t$64,%ecx\n\tjnz\t.L010outer1x\n\tjmp\t.L012done\n.L011tail:\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\txorl\t%ebp,%ebp\n.L013tail_loop:\n\tmovb\t(%esp,%ebp,1),%al\n\tmovb\t(%esi,%ebp,1),%dl\n\tleal\t1(%ebp),%ebp\n\txorb\t%dl,%al\n\tmovb\t%al,-1(%edi,%ebp,1)\n\tdecl\t%ecx\n\tjnz\t.L013tail_loop\n.L012done:\n\tmovl\t512(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tChaCha20_ssse3,.-.L_ChaCha20_ssse3_begin\n.align\t64\n.Lssse3_data:\n.byte\t2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13\n.byte\t3,0,1,2,7,4,5,6,11,8,9,10,15,12,13,14\n.long\t1634760805,857760878,2036477234,1797285236\n.long\t0,1,2,3\n.long\t4,4,4,4\n.long\t1,0,0,0\n.long\t4,0,0,0\n.long\t0,-1,-1,-1\n.align\t64\n.byte\t67,104,97,67,104,97,50,48,32,102,111,114,32,120,56,54\n.byte\t44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32\n.byte\t60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111\n.byte\t114,103,62,0\n.comm\tOPENSSL_ia32cap_P,40,4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S:14", "text": "popl\t%ebp\n\tret\n.size\tChaCha20_ssse3,.-.L_ChaCha20_ssse3_begin\n.align\t64\n.Lssse3_data:\n.byte\t2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13\n.byte\t3,0,1,2,7,4,5,6,11,8,9,10,15,12,13,14\n.long\t1634760805,857760878,2036477234,1797285236\n.long\t0,1,2,3\n.long\t4,4,4,4\n.long\t1,0,0,0\n.long\t4,0,0,0\n.long\t0,-1,-1,-1\n.align\t64\n.byte\t67,104,97,67,104,97,50,48,32,102,111,114,32,120,56,54\n.byte\t44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32\n.byte\t60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111\n.byte\t114,103,62,0\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/chacha-x86.S", "line_start": 521, "line_end": 556}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tCamellia_EncryptBlock_Rounds\n.type\tCamellia_EncryptBlock_Rounds,@function\n.align\t16\nCamellia_EncryptBlock_Rounds:\n.L_Camellia_EncryptBlock_Rounds_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%eax\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%esp,%ebx\n\tsubl\t$28,%esp\n\tandl\t$-64,%esp\n\tleal\t-127(%edi),%ecx\n\tsubl\t%esp,%ecx\n\tnegl\t%ecx\n\tandl\t$960,%ecx\n\tsubl\t%ecx,%esp\n\taddl\t$4,%esp\n\tshll\t$6,%eax\n\tleal\t(%edi,%eax,1),%eax\n\tmovl\t%ebx,20(%esp)\n\tmovl\t%eax,16(%esp)\n\tcall\t.L000pic_point\n.L000pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L000pic_point(%ebp),%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_encrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t32(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:2", "text": "movl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_encrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t32(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_EncryptBlock_Rounds,.-.L_Camellia_EncryptBlock_Rounds_begin\n.globl\tCamellia_EncryptBlock\n.type\tCamellia_EncryptBlock,@function\n.align\t16\nCamellia_EncryptBlock:\n.L_Camellia_EncryptBlock_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t$128,%eax\n\tsubl\t4(%esp),%eax\n\tmovl\t$3,%eax\n\tadcl\t$0,%eax\n\tmovl\t%eax,4(%esp)\n\tjmp\t.L_Camellia_EncryptBlock_Rounds_begin\n.size\tCamellia_EncryptBlock,.-.L_Camellia_EncryptBlock_begin\n.globl\tCamellia_encrypt\n.type\tCamellia_encrypt,@function\n.align\t16\nCamellia_encrypt:\n.L_Camellia_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%esp,%ebx\n\tsubl\t$28,%esp\n\tandl\t$-64,%esp\n\tmovl\t272(%edi),%eax\n\tleal\t-127(%edi),%ecx\n\tsubl\t%esp,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:3", "text": ".align\t16\nCamellia_encrypt:\n.L_Camellia_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%esp,%ebx\n\tsubl\t$28,%esp\n\tandl\t$-64,%esp\n\tmovl\t272(%edi),%eax\n\tleal\t-127(%edi),%ecx\n\tsubl\t%esp,%ecx\n\tnegl\t%ecx\n\tandl\t$960,%ecx\n\tsubl\t%ecx,%esp\n\taddl\t$4,%esp\n\tshll\t$6,%eax\n\tleal\t(%edi,%eax,1),%eax\n\tmovl\t%ebx,20(%esp)\n\tmovl\t%eax,16(%esp)\n\tcall\t.L001pic_point\n.L001pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L001pic_point(%ebp),%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_encrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t24(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_encrypt,.-.L_Camellia_encrypt_begin\n.type\t_x86_Camellia_encrypt,@function\n.align\t16\n_x86_Camellia_encrypt:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:4", "text": "call\t_x86_Camellia_encrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t24(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_encrypt,.-.L_Camellia_encrypt_begin\n.type\t_x86_Camellia_encrypt,@function\n.align\t16\n_x86_Camellia_encrypt:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\txorl\t(%edi),%eax\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n\tmovl\t16(%edi),%esi\n\tmovl\t%eax,4(%esp)\n\tmovl\t%ebx,8(%esp)\n\tmovl\t%ecx,12(%esp)\n\tmovl\t%edx,16(%esp)\n.align\t16\n.L002loop:\n\txorl\t%esi,%eax\n\txorl\t20(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:5", "text": "movzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t24(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t28(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t32(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\txorl\t%esi,%eax\n\txorl\t36(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:6", "text": "movzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t32(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\txorl\t%esi,%eax\n\txorl\t36(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t40(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t44(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:7", "text": "xorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t40(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t44(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t48(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\txorl\t%esi,%eax\n\txorl\t52(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:8", "text": "movzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t56(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t60(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t64(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\taddl\t$64,%edi\n\tcmpl\t20(%esp),%edi\n\tje\t.L003done\n\tandl\t%eax,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:9", "text": "movzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t64(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\taddl\t$64,%edi\n\tcmpl\t20(%esp),%edi\n\tje\t.L003done\n\tandl\t%eax,%esi\n\tmovl\t16(%esp),%edx\n\troll\t$1,%esi\n\tmovl\t%edx,%ecx\n\txorl\t%esi,%ebx\n\torl\t12(%edi),%ecx\n\tmovl\t%ebx,8(%esp)\n\txorl\t12(%esp),%ecx\n\tmovl\t4(%edi),%esi\n\tmovl\t%ecx,12(%esp)\n\torl\t%ebx,%esi\n\tandl\t8(%edi),%ecx\n\txorl\t%esi,%eax\n\troll\t$1,%ecx\n\tmovl\t%eax,4(%esp)\n\txorl\t%ecx,%edx\n\tmovl\t16(%edi),%esi\n\tmovl\t%edx,16(%esp)\n\tjmp\t.L002loop\n.align\t8\n.L003done:\n\tmovl\t%eax,%ecx\n\tmovl\t%ebx,%edx\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\txorl\t%esi,%eax\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n\tret\n.size\t_x86_Camellia_encrypt,.-_x86_Camellia_encrypt\n.globl\tCamellia_DecryptBlock_Rounds\n.type\tCamellia_DecryptBlock_Rounds,@function\n.align\t16\nCamellia_DecryptBlock_Rounds:\n.L_Camellia_DecryptBlock_Rounds_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:10", "text": "movl\t%eax,%ecx\n\tmovl\t%ebx,%edx\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\txorl\t%esi,%eax\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n\tret\n.size\t_x86_Camellia_encrypt,.-_x86_Camellia_encrypt\n.globl\tCamellia_DecryptBlock_Rounds\n.type\tCamellia_DecryptBlock_Rounds,@function\n.align\t16\nCamellia_DecryptBlock_Rounds:\n.L_Camellia_DecryptBlock_Rounds_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%eax\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%esp,%ebx\n\tsubl\t$28,%esp\n\tandl\t$-64,%esp\n\tleal\t-127(%edi),%ecx\n\tsubl\t%esp,%ecx\n\tnegl\t%ecx\n\tandl\t$960,%ecx\n\tsubl\t%ecx,%esp\n\taddl\t$4,%esp\n\tshll\t$6,%eax\n\tmovl\t%edi,16(%esp)\n\tleal\t(%edi,%eax,1),%edi\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L004pic_point\n.L004pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L004pic_point(%ebp),%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t32(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:11", "text": "call\t.L004pic_point\n.L004pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L004pic_point(%ebp),%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t32(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_DecryptBlock_Rounds,.-.L_Camellia_DecryptBlock_Rounds_begin\n.globl\tCamellia_DecryptBlock\n.type\tCamellia_DecryptBlock,@function\n.align\t16\nCamellia_DecryptBlock:\n.L_Camellia_DecryptBlock_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t$128,%eax\n\tsubl\t4(%esp),%eax\n\tmovl\t$3,%eax\n\tadcl\t$0,%eax\n\tmovl\t%eax,4(%esp)\n\tjmp\t.L_Camellia_DecryptBlock_Rounds_begin\n.size\tCamellia_DecryptBlock,.-.L_Camellia_DecryptBlock_begin\n.globl\tCamellia_decrypt\n.type\tCamellia_decrypt,@function\n.align\t16\nCamellia_decrypt:\n.L_Camellia_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:12", "text": "subl\t4(%esp),%eax\n\tmovl\t$3,%eax\n\tadcl\t$0,%eax\n\tmovl\t%eax,4(%esp)\n\tjmp\t.L_Camellia_DecryptBlock_Rounds_begin\n.size\tCamellia_DecryptBlock,.-.L_Camellia_DecryptBlock_begin\n.globl\tCamellia_decrypt\n.type\tCamellia_decrypt,@function\n.align\t16\nCamellia_decrypt:\n.L_Camellia_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%esp,%ebx\n\tsubl\t$28,%esp\n\tandl\t$-64,%esp\n\tmovl\t272(%edi),%eax\n\tleal\t-127(%edi),%ecx\n\tsubl\t%esp,%ecx\n\tnegl\t%ecx\n\tandl\t$960,%ecx\n\tsubl\t%ecx,%esp\n\taddl\t$4,%esp\n\tshll\t$6,%eax\n\tmovl\t%edi,16(%esp)\n\tleal\t(%edi,%eax,1),%edi\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L005pic_point\n.L005pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L005pic_point(%ebp),%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t24(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:13", "text": "movl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t20(%esp),%esp\n\tbswap\t%eax\n\tmovl\t24(%esp),%esi\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_decrypt,.-.L_Camellia_decrypt_begin\n.type\t_x86_Camellia_decrypt,@function\n.align\t16\n_x86_Camellia_decrypt:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\txorl\t(%edi),%eax\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n\tmovl\t-8(%edi),%esi\n\tmovl\t%eax,4(%esp)\n\tmovl\t%ebx,8(%esp)\n\tmovl\t%ecx,12(%esp)\n\tmovl\t%edx,16(%esp)\n.align\t16\n.L006loop:\n\txorl\t%esi,%eax\n\txorl\t-4(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:14", "text": "movl\t%ecx,12(%esp)\n\tmovl\t%edx,16(%esp)\n.align\t16\n.L006loop:\n\txorl\t%esi,%eax\n\txorl\t-4(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t-16(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t-12(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t-24(%edi),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:15", "text": "shrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t-24(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\txorl\t%esi,%eax\n\txorl\t-20(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t-32(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t-28(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:16", "text": "movzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t-32(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t-28(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t-40(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\txorl\t%esi,%eax\n\txorl\t-36(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:17", "text": "xorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\txorl\t%esi,%eax\n\txorl\t-36(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t12(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t-48(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,16(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,12(%esp)\n\txorl\t%esi,%ecx\n\txorl\t-44(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t-56(%edi),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:18", "text": "shrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t8(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t-56(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,8(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,4(%esp)\n\tsubl\t$64,%edi\n\tcmpl\t20(%esp),%edi\n\tje\t.L007done\n\tandl\t%eax,%esi\n\tmovl\t16(%esp),%edx\n\troll\t$1,%esi\n\tmovl\t%edx,%ecx\n\txorl\t%esi,%ebx\n\torl\t4(%edi),%ecx\n\tmovl\t%ebx,8(%esp)\n\txorl\t12(%esp),%ecx\n\tmovl\t12(%edi),%esi\n\tmovl\t%ecx,12(%esp)\n\torl\t%ebx,%esi\n\tandl\t(%edi),%ecx\n\txorl\t%esi,%eax\n\troll\t$1,%ecx\n\tmovl\t%eax,4(%esp)\n\txorl\t%ecx,%edx\n\tmovl\t-8(%edi),%esi\n\tmovl\t%edx,16(%esp)\n\tjmp\t.L006loop\n.align\t8\n.L007done:\n\tmovl\t%eax,%ecx\n\tmovl\t%ebx,%edx\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t12(%edi),%edx\n\txorl\t(%edi),%eax\n\txorl\t4(%edi),%ebx\n\tret\n.size\t_x86_Camellia_decrypt,.-_x86_Camellia_decrypt\n.globl\tCamellia_Ekeygen\n.type\tCamellia_Ekeygen,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:19", "text": "roll\t$1,%ecx\n\tmovl\t%eax,4(%esp)\n\txorl\t%ecx,%edx\n\tmovl\t-8(%edi),%esi\n\tmovl\t%edx,16(%esp)\n\tjmp\t.L006loop\n.align\t8\n.L007done:\n\tmovl\t%eax,%ecx\n\tmovl\t%ebx,%edx\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t12(%edi),%edx\n\txorl\t(%edi),%eax\n\txorl\t4(%edi),%ebx\n\tret\n.size\t_x86_Camellia_decrypt,.-_x86_Camellia_decrypt\n.globl\tCamellia_Ekeygen\n.type\tCamellia_Ekeygen,@function\n.align\t16\nCamellia_Ekeygen:\n.L_Camellia_Ekeygen_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tsubl\t$16,%esp\n\tmovl\t36(%esp),%ebp\n\tmovl\t40(%esp),%esi\n\tmovl\t44(%esp),%edi\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tcmpl\t$128,%ebp\n\tje\t.L0081st128\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tcmpl\t$192,%ebp\n\tje\t.L0091st192\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx\n\tjmp\t.L0101st256\n.align\t4\n.L0091st192:\n\tmovl\t%eax,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:20", "text": "bswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tcmpl\t$128,%ebp\n\tje\t.L0081st128\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tcmpl\t$192,%ebp\n\tje\t.L0091st192\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx\n\tjmp\t.L0101st256\n.align\t4\n.L0091st192:\n\tmovl\t%eax,%ecx\n\tmovl\t%ebx,%edx\n\tnotl\t%ecx\n\tnotl\t%edx\n.align\t4\n.L0101st256:\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,32(%edi)\n\tmovl\t%ebx,36(%edi)\n\tmovl\t%ecx,40(%edi)\n\tmovl\t%edx,44(%edi)\n\txorl\t(%edi),%eax\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n.align\t4\n.L0081st128:\n\tcall\t.L011pic_point\n.L011pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L011pic_point(%ebp),%ebp\n\tleal\t.LCamellia_SIGMA-.LCamellia_SBOX(%ebp),%edi\n\tmovl\t(%edi),%esi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\txorl\t%esi,%eax\n\txorl\t4(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:21", "text": ".L011pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L011pic_point(%ebp),%ebp\n\tleal\t.LCamellia_SIGMA-.LCamellia_SBOX(%ebp),%edi\n\tmovl\t(%edi),%esi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\txorl\t%esi,%eax\n\txorl\t4(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t12(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t8(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t8(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,12(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,8(%esp)\n\txorl\t%esi,%ecx\n\txorl\t12(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t4(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:22", "text": "xorl\t12(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t4(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t16(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,4(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,(%esp)\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t44(%esp),%esi\n\txorl\t(%esi),%eax\n\txorl\t4(%esi),%ebx\n\txorl\t8(%esi),%ecx\n\txorl\t12(%esi),%edx\n\tmovl\t16(%edi),%esi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\txorl\t%esi,%eax\n\txorl\t20(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t12(%esp),%eax\n\txorl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:23", "text": "movl\t%edx,12(%esp)\n\txorl\t%esi,%eax\n\txorl\t20(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t12(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t8(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t24(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,12(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,8(%esp)\n\txorl\t%esi,%ecx\n\txorl\t28(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t4(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t32(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,4(%esp)\n\txorl\t%edx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:24", "text": "movzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t4(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t32(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,4(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,(%esp)\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t36(%esp),%esi\n\tcmpl\t$128,%esi\n\tjne\t.L0122nd256\n\tmovl\t44(%esp),%edi\n\tleal\t128(%edi),%edi\n\tmovl\t%eax,-112(%edi)\n\tmovl\t%ebx,-108(%edi)\n\tmovl\t%ecx,-104(%edi)\n\tmovl\t%edx,-100(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,-80(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,-76(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-72(%edi)\n\tmovl\t%edx,-68(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:25", "text": "movl\t%eax,-80(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,-76(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-72(%edi)\n\tmovl\t%edx,-68(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,-64(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,-60(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-56(%edi)\n\tmovl\t%edx,-52(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,-32(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,-28(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,-16(%edi)\n\tshrl\t$17,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:26", "text": "movl\t%eax,-32(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,-28(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,-16(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,-12(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-8(%edi)\n\tmovl\t%edx,-4(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$2,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$30,%esi\n\tshll\t$2,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$2,%edx\n\tmovl\t%ebx,32(%edi)\n\tshrl\t$30,%esi\n\torl\t%esi,%ecx\n\tshrl\t$30,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$30,%esi\n\tmovl\t%ecx,36(%edi)\n\tshll\t$2,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,40(%edi)\n\tmovl\t%eax,44(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx\n\tmovl\t%ebx,64(%edi)\n\tshrl\t$15,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:27", "text": "orl\t%esi,%ecx\n\tshrl\t$30,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$30,%esi\n\tmovl\t%ecx,36(%edi)\n\tshll\t$2,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,40(%edi)\n\tmovl\t%eax,44(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx\n\tmovl\t%ebx,64(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%ecx\n\tshrl\t$15,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$15,%esi\n\tmovl\t%ecx,68(%edi)\n\tshll\t$17,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,72(%edi)\n\tmovl\t%eax,76(%edi)\n\tmovl\t-128(%edi),%ebx\n\tmovl\t-124(%edi),%ecx\n\tmovl\t-120(%edi),%edx\n\tmovl\t-116(%edi),%eax\n\tmovl\t%ebx,%ebp\n\tshll\t$15,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$15,%edx\n\tmovl\t%ebx,-96(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ecx,-92(%edi)\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-88(%edi)\n\tmovl\t%eax,-84(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$30,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%ecx\n\torl\t%esi,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:28", "text": "movl\t%edx,%esi\n\tshll\t$15,%edx\n\tmovl\t%ebx,-96(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ecx,-92(%edi)\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-88(%edi)\n\tmovl\t%eax,-84(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$30,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$30,%edx\n\tmovl\t%ebx,-48(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%ecx\n\tshrl\t$2,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$2,%esi\n\tmovl\t%ecx,-44(%edi)\n\tshll\t$30,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-40(%edi)\n\tmovl\t%eax,-36(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$15,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$15,%edx\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-24(%edi)\n\tmovl\t%eax,-20(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:29", "text": "movl\t%edx,%esi\n\tshll\t$15,%edx\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-24(%edi)\n\tmovl\t%eax,-20(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx\n\tmovl\t%ebx,(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%ecx\n\tshrl\t$15,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$15,%esi\n\tmovl\t%ecx,4(%edi)\n\tshll\t$17,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,8(%edi)\n\tmovl\t%eax,12(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx\n\tmovl\t%ebx,16(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%ecx\n\tshrl\t$15,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$15,%esi\n\tmovl\t%ecx,20(%edi)\n\tshll\t$17,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,24(%edi)\n\tmovl\t%eax,28(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:30", "text": "movl\t%ebx,16(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%ecx\n\tshrl\t$15,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$15,%esi\n\tmovl\t%ecx,20(%edi)\n\tshll\t$17,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,24(%edi)\n\tmovl\t%eax,28(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$17,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$17,%edx\n\tmovl\t%ebx,48(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%ecx\n\tshrl\t$15,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$15,%esi\n\tmovl\t%ecx,52(%edi)\n\tshll\t$17,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,56(%edi)\n\tmovl\t%eax,60(%edi)\n\tmovl\t$3,%eax\n\tjmp\t.L013done\n.align\t16\n.L0122nd256:\n\tmovl\t44(%esp),%esi\n\tmovl\t%eax,48(%esi)\n\tmovl\t%ebx,52(%esi)\n\tmovl\t%ecx,56(%esi)\n\tmovl\t%edx,60(%esi)\n\txorl\t32(%esi),%eax\n\txorl\t36(%esi),%ebx\n\txorl\t40(%esi),%ecx\n\txorl\t44(%esi),%edx\n\tmovl\t32(%edi),%esi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\txorl\t%esi,%eax\n\txorl\t36(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:31", "text": "movl\t%edx,60(%esi)\n\txorl\t32(%esi),%eax\n\txorl\t36(%esi),%ebx\n\txorl\t40(%esi),%ecx\n\txorl\t44(%esi),%edx\n\tmovl\t32(%edi),%esi\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\txorl\t%esi,%eax\n\txorl\t36(%edi),%ebx\n\tmovzbl\t%ah,%esi\n\tmovl\t2052(%ebp,%esi,8),%edx\n\tmovzbl\t%al,%esi\n\txorl\t4(%ebp,%esi,8),%edx\n\tshrl\t$16,%eax\n\tmovzbl\t%bl,%esi\n\tmovl\t(%ebp,%esi,8),%ecx\n\tmovzbl\t%ah,%esi\n\txorl\t(%ebp,%esi,8),%edx\n\tmovzbl\t%bh,%esi\n\txorl\t4(%ebp,%esi,8),%ecx\n\tshrl\t$16,%ebx\n\tmovzbl\t%al,%eax\n\txorl\t2048(%ebp,%eax,8),%edx\n\tmovzbl\t%bh,%esi\n\tmovl\t12(%esp),%eax\n\txorl\t%edx,%ecx\n\trorl\t$8,%edx\n\txorl\t2048(%ebp,%esi,8),%ecx\n\tmovzbl\t%bl,%esi\n\tmovl\t8(%esp),%ebx\n\txorl\t%eax,%edx\n\txorl\t2052(%ebp,%esi,8),%ecx\n\tmovl\t40(%edi),%esi\n\txorl\t%ecx,%edx\n\tmovl\t%edx,12(%esp)\n\txorl\t%ebx,%ecx\n\tmovl\t%ecx,8(%esp)\n\txorl\t%esi,%ecx\n\txorl\t44(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t4(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:32", "text": "xorl\t%esi,%ecx\n\txorl\t44(%edi),%edx\n\tmovzbl\t%ch,%esi\n\tmovl\t2052(%ebp,%esi,8),%ebx\n\tmovzbl\t%cl,%esi\n\txorl\t4(%ebp,%esi,8),%ebx\n\tshrl\t$16,%ecx\n\tmovzbl\t%dl,%esi\n\tmovl\t(%ebp,%esi,8),%eax\n\tmovzbl\t%ch,%esi\n\txorl\t(%ebp,%esi,8),%ebx\n\tmovzbl\t%dh,%esi\n\txorl\t4(%ebp,%esi,8),%eax\n\tshrl\t$16,%edx\n\tmovzbl\t%cl,%ecx\n\txorl\t2048(%ebp,%ecx,8),%ebx\n\tmovzbl\t%dh,%esi\n\tmovl\t4(%esp),%ecx\n\txorl\t%ebx,%eax\n\trorl\t$8,%ebx\n\txorl\t2048(%ebp,%esi,8),%eax\n\tmovzbl\t%dl,%esi\n\tmovl\t(%esp),%edx\n\txorl\t%ecx,%ebx\n\txorl\t2052(%ebp,%esi,8),%eax\n\tmovl\t48(%edi),%esi\n\txorl\t%eax,%ebx\n\tmovl\t%ebx,4(%esp)\n\txorl\t%edx,%eax\n\tmovl\t%eax,(%esp)\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t44(%esp),%edi\n\tleal\t128(%edi),%edi\n\tmovl\t%eax,-112(%edi)\n\tmovl\t%ebx,-108(%edi)\n\tmovl\t%ecx,-104(%edi)\n\tmovl\t%edx,-100(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$30,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$30,%ecx\n\tmovl\t%eax,-48(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%ebx\n\tshrl\t$2,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$2,%esi\n\tmovl\t%ebx,-44(%edi)\n\tshll\t$30,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-40(%edi)\n\tmovl\t%edx,-36(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$30,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:33", "text": "movl\t%ebx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$30,%ecx\n\tmovl\t%eax,-48(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%ebx\n\tshrl\t$2,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$2,%esi\n\tmovl\t%ebx,-44(%edi)\n\tshll\t$30,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-40(%edi)\n\tmovl\t%edx,-36(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$30,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$30,%ecx\n\tmovl\t%eax,32(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%ebx\n\tshrl\t$2,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$2,%esi\n\tmovl\t%ebx,36(%edi)\n\tshll\t$30,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,40(%edi)\n\tmovl\t%edx,44(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$19,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$13,%esi\n\tshll\t$19,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$19,%edx\n\tmovl\t%ebx,128(%edi)\n\tshrl\t$13,%esi\n\torl\t%esi,%ecx\n\tshrl\t$13,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$13,%esi\n\tmovl\t%ecx,132(%edi)\n\tshll\t$19,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,136(%edi)\n\tmovl\t%eax,140(%edi)\n\tmovl\t-96(%edi),%ebx\n\tmovl\t-92(%edi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:34", "text": "movl\t%ecx,%esi\n\tshrl\t$13,%esi\n\tshll\t$19,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$19,%edx\n\tmovl\t%ebx,128(%edi)\n\tshrl\t$13,%esi\n\torl\t%esi,%ecx\n\tshrl\t$13,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$13,%esi\n\tmovl\t%ecx,132(%edi)\n\tshll\t$19,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,136(%edi)\n\tmovl\t%eax,140(%edi)\n\tmovl\t-96(%edi),%ebx\n\tmovl\t-92(%edi),%ecx\n\tmovl\t-88(%edi),%edx\n\tmovl\t-84(%edi),%eax\n\tmovl\t%ebx,%ebp\n\tshll\t$15,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$15,%edx\n\tmovl\t%ebx,-96(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ecx,-92(%edi)\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-88(%edi)\n\tmovl\t%eax,-84(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$15,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$15,%edx\n\tmovl\t%ebx,-64(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ecx,-60(%edi)\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:35", "text": "movl\t%edx,-88(%edi)\n\tmovl\t%eax,-84(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$15,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$15,%edx\n\tmovl\t%ebx,-64(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ecx\n\tshrl\t$17,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ecx,-60(%edi)\n\tshll\t$15,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,-56(%edi)\n\tmovl\t%eax,-52(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$30,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$30,%edx\n\tmovl\t%ebx,16(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%ecx\n\tshrl\t$2,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$2,%esi\n\tmovl\t%ecx,20(%edi)\n\tshll\t$30,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,24(%edi)\n\tmovl\t%eax,28(%edi)\n\tmovl\t%ecx,%ebp\n\tshll\t$2,%ecx\n\tmovl\t%edx,%esi\n\tshrl\t$30,%esi\n\tshll\t$2,%edx\n\torl\t%esi,%ecx\n\tmovl\t%eax,%esi\n\tshll\t$2,%eax\n\tmovl\t%ecx,80(%edi)\n\tshrl\t$30,%esi\n\torl\t%esi,%edx\n\tshrl\t$30,%ebp\n\tmovl\t%ebx,%esi\n\tshrl\t$30,%esi\n\tmovl\t%edx,84(%edi)\n\tshll\t$2,%ebx\n\torl\t%esi,%eax\n\torl\t%ebp,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:36", "text": "movl\t%edx,24(%edi)\n\tmovl\t%eax,28(%edi)\n\tmovl\t%ecx,%ebp\n\tshll\t$2,%ecx\n\tmovl\t%edx,%esi\n\tshrl\t$30,%esi\n\tshll\t$2,%edx\n\torl\t%esi,%ecx\n\tmovl\t%eax,%esi\n\tshll\t$2,%eax\n\tmovl\t%ecx,80(%edi)\n\tshrl\t$30,%esi\n\torl\t%esi,%edx\n\tshrl\t$30,%ebp\n\tmovl\t%ebx,%esi\n\tshrl\t$30,%esi\n\tmovl\t%edx,84(%edi)\n\tshll\t$2,%ebx\n\torl\t%esi,%eax\n\torl\t%ebp,%ebx\n\tmovl\t%eax,88(%edi)\n\tmovl\t%ebx,92(%edi)\n\tmovl\t-80(%edi),%ecx\n\tmovl\t-76(%edi),%edx\n\tmovl\t-72(%edi),%eax\n\tmovl\t-68(%edi),%ebx\n\tmovl\t%ecx,%ebp\n\tshll\t$15,%ecx\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\tmovl\t%eax,%esi\n\tshll\t$15,%eax\n\tmovl\t%ecx,-80(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%edx\n\tshrl\t$17,%ebp\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%edx,-76(%edi)\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\torl\t%ebp,%ebx\n\tmovl\t%eax,-72(%edi)\n\tmovl\t%ebx,-68(%edi)\n\tmovl\t%ecx,%ebp\n\tshll\t$30,%ecx\n\tmovl\t%edx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%edx\n\torl\t%esi,%ecx\n\tmovl\t%eax,%esi\n\tshll\t$30,%eax\n\tmovl\t%ecx,-16(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%edx\n\tshrl\t$2,%ebp\n\tmovl\t%ebx,%esi\n\tshrl\t$2,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:37", "text": "movl\t%edx,-76(%edi)\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\torl\t%ebp,%ebx\n\tmovl\t%eax,-72(%edi)\n\tmovl\t%ebx,-68(%edi)\n\tmovl\t%ecx,%ebp\n\tshll\t$30,%ecx\n\tmovl\t%edx,%esi\n\tshrl\t$2,%esi\n\tshll\t$30,%edx\n\torl\t%esi,%ecx\n\tmovl\t%eax,%esi\n\tshll\t$30,%eax\n\tmovl\t%ecx,-16(%edi)\n\tshrl\t$2,%esi\n\torl\t%esi,%edx\n\tshrl\t$2,%ebp\n\tmovl\t%ebx,%esi\n\tshrl\t$2,%esi\n\tmovl\t%edx,-12(%edi)\n\tshll\t$30,%ebx\n\torl\t%esi,%eax\n\torl\t%ebp,%ebx\n\tmovl\t%eax,-8(%edi)\n\tmovl\t%ebx,-4(%edi)\n\tmovl\t%edx,64(%edi)\n\tmovl\t%eax,68(%edi)\n\tmovl\t%ebx,72(%edi)\n\tmovl\t%ecx,76(%edi)\n\tmovl\t%edx,%ebp\n\tshll\t$17,%edx\n\tmovl\t%eax,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%eax\n\torl\t%esi,%edx\n\tmovl\t%ebx,%esi\n\tshll\t$17,%ebx\n\tmovl\t%edx,96(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%eax\n\tshrl\t$15,%ebp\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tmovl\t%eax,100(%edi)\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\torl\t%ebp,%ecx\n\tmovl\t%ebx,104(%edi)\n\tmovl\t%ecx,108(%edi)\n\tmovl\t-128(%edi),%edx\n\tmovl\t-124(%edi),%eax\n\tmovl\t-120(%edi),%ebx\n\tmovl\t-116(%edi),%ecx\n\tmovl\t%eax,%ebp\n\tshll\t$13,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$19,%esi\n\tshll\t$13,%ebx\n\torl\t%esi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:38", "text": "orl\t%esi,%eax\n\tshrl\t$15,%ebp\n\tmovl\t%ecx,%esi\n\tshrl\t$15,%esi\n\tmovl\t%eax,100(%edi)\n\tshll\t$17,%ecx\n\torl\t%esi,%ebx\n\torl\t%ebp,%ecx\n\tmovl\t%ebx,104(%edi)\n\tmovl\t%ecx,108(%edi)\n\tmovl\t-128(%edi),%edx\n\tmovl\t-124(%edi),%eax\n\tmovl\t-120(%edi),%ebx\n\tmovl\t-116(%edi),%ecx\n\tmovl\t%eax,%ebp\n\tshll\t$13,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$19,%esi\n\tshll\t$13,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$13,%ecx\n\tmovl\t%eax,-32(%edi)\n\tshrl\t$19,%esi\n\torl\t%esi,%ebx\n\tshrl\t$19,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$19,%esi\n\tmovl\t%ebx,-28(%edi)\n\tshll\t$13,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,-24(%edi)\n\tmovl\t%edx,-20(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$15,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$17,%esi\n\tshll\t$15,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,4(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$17,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ebx\n\torl\t%esi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:39", "text": "movl\t%ecx,%esi\n\tshll\t$15,%ecx\n\tmovl\t%eax,(%edi)\n\tshrl\t$17,%esi\n\torl\t%esi,%ebx\n\tshrl\t$17,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$17,%esi\n\tmovl\t%ebx,4(%edi)\n\tshll\t$15,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tmovl\t%eax,%ebp\n\tshll\t$17,%eax\n\tmovl\t%ebx,%esi\n\tshrl\t$15,%esi\n\tshll\t$17,%ebx\n\torl\t%esi,%eax\n\tmovl\t%ecx,%esi\n\tshll\t$17,%ecx\n\tmovl\t%eax,48(%edi)\n\tshrl\t$15,%esi\n\torl\t%esi,%ebx\n\tshrl\t$15,%ebp\n\tmovl\t%edx,%esi\n\tshrl\t$15,%esi\n\tmovl\t%ebx,52(%edi)\n\tshll\t$17,%edx\n\torl\t%esi,%ecx\n\torl\t%ebp,%edx\n\tmovl\t%ecx,56(%edi)\n\tmovl\t%edx,60(%edi)\n\tmovl\t%ebx,%ebp\n\tshll\t$2,%ebx\n\tmovl\t%ecx,%esi\n\tshrl\t$30,%esi\n\tshll\t$2,%ecx\n\torl\t%esi,%ebx\n\tmovl\t%edx,%esi\n\tshll\t$2,%edx\n\tmovl\t%ebx,112(%edi)\n\tshrl\t$30,%esi\n\torl\t%esi,%ecx\n\tshrl\t$30,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$30,%esi\n\tmovl\t%ecx,116(%edi)\n\tshll\t$2,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,120(%edi)\n\tmovl\t%eax,124(%edi)\n\tmovl\t$4,%eax\n.L013done:\n\tleal\t144(%edi),%edx\n\taddl\t$16,%esp\n\tpopl\t%edi\n\tpopl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:40", "text": "movl\t%edx,%esi\n\tshll\t$2,%edx\n\tmovl\t%ebx,112(%edi)\n\tshrl\t$30,%esi\n\torl\t%esi,%ecx\n\tshrl\t$30,%ebp\n\tmovl\t%eax,%esi\n\tshrl\t$30,%esi\n\tmovl\t%ecx,116(%edi)\n\tshll\t$2,%eax\n\torl\t%esi,%edx\n\torl\t%ebp,%eax\n\tmovl\t%edx,120(%edi)\n\tmovl\t%eax,124(%edi)\n\tmovl\t$4,%eax\n.L013done:\n\tleal\t144(%edi),%edx\n\taddl\t$16,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_Ekeygen,.-.L_Camellia_Ekeygen_begin\n.globl\tCamellia_set_key\n.type\tCamellia_set_key,@function\n.align\t16\nCamellia_set_key:\n.L_Camellia_set_key_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%edx\n\tmovl\t$-1,%eax\n\ttestl\t%ecx,%ecx\n\tjz\t.L014done\n\ttestl\t%edx,%edx\n\tjz\t.L014done\n\tmovl\t$-2,%eax\n\tcmpl\t$256,%ebx\n\tje\t.L015arg_ok\n\tcmpl\t$192,%ebx\n\tje\t.L015arg_ok\n\tcmpl\t$128,%ebx\n\tjne\t.L014done\n.align\t4\n.L015arg_ok:\n\tpushl\t%edx\n\tpushl\t%ecx\n\tpushl\t%ebx\n\tcall\t.L_Camellia_Ekeygen_begin\n\taddl\t$12,%esp\n\tmovl\t%eax,(%edx)\n\txorl\t%eax,%eax\n.align\t4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:41", "text": "jz\t.L014done\n\ttestl\t%edx,%edx\n\tjz\t.L014done\n\tmovl\t$-2,%eax\n\tcmpl\t$256,%ebx\n\tje\t.L015arg_ok\n\tcmpl\t$192,%ebx\n\tje\t.L015arg_ok\n\tcmpl\t$128,%ebx\n\tjne\t.L014done\n.align\t4\n.L015arg_ok:\n\tpushl\t%edx\n\tpushl\t%ecx\n\tpushl\t%ebx\n\tcall\t.L_Camellia_Ekeygen_begin\n\taddl\t$12,%esp\n\tmovl\t%eax,(%edx)\n\txorl\t%eax,%eax\n.align\t4\n.L014done:\n\tpopl\t%ebx\n\tret\n.size\tCamellia_set_key,.-.L_Camellia_set_key_begin\n.align\t64\n.LCamellia_SIGMA:\n.long\t2694735487,1003262091,3061508184,1286239154,3337565999,3914302142,1426019237,4057165596,283453434,3731369245,2958461122,3018244605,0,0,0,0\n.align\t64\n.LCamellia_SBOX:\n.long\t1886416896,1886388336\n.long\t2189591040,741081132\n.long\t741092352,3014852787\n.long\t3974949888,3233808576\n.long\t3014898432,3840147684\n.long\t656877312,1465319511\n.long\t3233857536,3941204202\n.long\t3857048832,2930639022\n.long\t3840205824,589496355\n.long\t2240120064,1802174571\n.long\t1465341696,1162149957\n.long\t892679424,2779054245\n.long\t3941263872,3991732461\n.long\t202116096,1330577487\n.long\t2930683392,488439837\n.long\t1094795520,2459041938\n.long\t589505280,2256928902\n.long\t4025478912,2947481775\n.long\t1802201856,2088501372\n.long\t2475922176,522125343\n.long\t1162167552,1044250686\n.long\t421075200,3705405660\n.long\t2779096320,1583218782\n.long\t555819264,185270283\n.long\t3991792896,2795896998\n.long\t235802112,960036921\n.long\t1330597632,3587506389\n.long\t1313754624,1566376029\n.long\t488447232,3654877401\n.long\t1701143808,1515847770\n.long\t2459079168,1364262993", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:42", "text": ".long\t892679424,2779054245\n.long\t3941263872,3991732461\n.long\t202116096,1330577487\n.long\t2930683392,488439837\n.long\t1094795520,2459041938\n.long\t589505280,2256928902\n.long\t4025478912,2947481775\n.long\t1802201856,2088501372\n.long\t2475922176,522125343\n.long\t1162167552,1044250686\n.long\t421075200,3705405660\n.long\t2779096320,1583218782\n.long\t555819264,185270283\n.long\t3991792896,2795896998\n.long\t235802112,960036921\n.long\t1330597632,3587506389\n.long\t1313754624,1566376029\n.long\t488447232,3654877401\n.long\t1701143808,1515847770\n.long\t2459079168,1364262993\n.long\t3183328512,1819017324\n.long\t2256963072,2341142667\n.long\t3099113472,2593783962\n.long\t2947526400,4227531003\n.long\t2408550144,2964324528\n.long\t2088532992,1953759348\n.long\t3958106880,724238379\n.long\t522133248,4042260720\n.long\t3469659648,2223243396\n.long\t1044266496,3755933919\n.long\t808464384,3419078859\n.long\t3705461760,875823156\n.long\t1600085760,1987444854\n.long\t1583242752,1835860077\n.long\t3318072576,2846425257\n.long\t185273088,3520135377\n.long\t437918208,67371012\n.long\t2795939328,336855060\n.long\t3789676800,976879674\n.long\t960051456,3739091166\n.long\t3402287616,286326801\n.long\t3587560704,842137650\n.long\t1195853568,2627469468\n.long\t1566399744,1397948499\n.long\t1027423488,4075946226\n.long\t3654932736,4278059262\n.long\t16843008,3486449871\n.long\t1515870720,3284336835\n.long\t3604403712,2054815866\n.long\t1364283648,606339108\n.long\t1448498688,3907518696\n.long\t1819044864,1616904288\n.long\t1296911616,1768489065\n.long\t2341178112,2863268010\n.long\t218959104,2694840480\n.long\t2593823232,2711683233\n.long\t1717986816,1650589794\n.long\t4227595008,1414791252\n.long\t3435973632,505282590\n.long\t2964369408,3772776672", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:43", "text": ".long\t3402287616,286326801\n.long\t3587560704,842137650\n.long\t1195853568,2627469468\n.long\t1566399744,1397948499\n.long\t1027423488,4075946226\n.long\t3654932736,4278059262\n.long\t16843008,3486449871\n.long\t1515870720,3284336835\n.long\t3604403712,2054815866\n.long\t1364283648,606339108\n.long\t1448498688,3907518696\n.long\t1819044864,1616904288\n.long\t1296911616,1768489065\n.long\t2341178112,2863268010\n.long\t218959104,2694840480\n.long\t2593823232,2711683233\n.long\t1717986816,1650589794\n.long\t4227595008,1414791252\n.long\t3435973632,505282590\n.long\t2964369408,3772776672\n.long\t757935360,1684275300\n.long\t1953788928,269484048\n.long\t303174144,0\n.long\t724249344,2745368739\n.long\t538976256,1970602101\n.long\t4042321920,2324299914\n.long\t2981212416,3873833190\n.long\t2223277056,151584777\n.long\t2576980224,3722248413\n.long\t3755990784,2273771655\n.long\t1280068608,2206400643\n.long\t3419130624,3452764365\n.long\t3267543552,2425356432\n.long\t875836416,1936916595\n.long\t2122219008,4143317238\n.long\t1987474944,2644312221\n.long\t84215040,3216965823\n.long\t1835887872,1381105746\n.long\t3082270464,3638034648\n.long\t2846468352,3368550600\n.long\t825307392,3334865094\n.long\t3520188672,2172715137\n.long\t387389184,1869545583\n.long\t67372032,320012307\n.long\t3621246720,1667432547\n.long\t336860160,3924361449\n.long\t1482184704,2812739751\n.long\t976894464,2677997727\n.long\t1633771776,3166437564\n.long\t3739147776,690552873\n.long\t454761216,4193845497\n.long\t286331136,791609391\n.long\t471604224,3031695540\n.long\t842150400,2021130360\n.long\t252645120,101056518\n.long\t2627509248,3890675943\n.long\t370546176,1903231089\n.long\t1397969664,3570663636\n.long\t404232192,2880110763\n.long\t4076007936,2290614408", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:44", "text": ".long\t825307392,3334865094\n.long\t3520188672,2172715137\n.long\t387389184,1869545583\n.long\t67372032,320012307\n.long\t3621246720,1667432547\n.long\t336860160,3924361449\n.long\t1482184704,2812739751\n.long\t976894464,2677997727\n.long\t1633771776,3166437564\n.long\t3739147776,690552873\n.long\t454761216,4193845497\n.long\t286331136,791609391\n.long\t471604224,3031695540\n.long\t842150400,2021130360\n.long\t252645120,101056518\n.long\t2627509248,3890675943\n.long\t370546176,1903231089\n.long\t1397969664,3570663636\n.long\t404232192,2880110763\n.long\t4076007936,2290614408\n.long\t572662272,2374828173\n.long\t4278124032,1920073842\n.long\t1145324544,3115909305\n.long\t3486502656,4177002744\n.long\t2998055424,2896953516\n.long\t3284386560,909508662\n.long\t3048584448,707395626\n.long\t2054846976,1010565180\n.long\t2442236160,4059103473\n.long\t606348288,1077936192\n.long\t134744064,3553820883\n.long\t3907577856,3149594811\n.long\t2829625344,1128464451\n.long\t1616928768,353697813\n.long\t4244438016,2913796269\n.long\t1768515840,2004287607\n.long\t1347440640,2155872384\n.long\t2863311360,2189557890\n.long\t3503345664,3974889708\n.long\t2694881280,656867367\n.long\t2105376000,3856990437\n.long\t2711724288,2240086149\n.long\t2307492096,892665909\n.long\t1650614784,202113036\n.long\t2543294208,1094778945\n.long\t1414812672,4025417967\n.long\t1532713728,2475884691\n.long\t505290240,421068825\n.long\t2509608192,555810849\n.long\t3772833792,235798542\n.long\t4294967040,1313734734\n.long\t1684300800,1701118053\n.long\t3537031680,3183280317\n.long\t269488128,3099066552\n.long\t3301229568,2408513679\n.long\t0,3958046955\n.long\t1212696576,3469607118\n.long\t2745410304,808452144\n.long\t4160222976,1600061535\n.long\t1970631936,3318022341", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:45", "text": ".long\t2105376000,3856990437\n.long\t2711724288,2240086149\n.long\t2307492096,892665909\n.long\t1650614784,202113036\n.long\t2543294208,1094778945\n.long\t1414812672,4025417967\n.long\t1532713728,2475884691\n.long\t505290240,421068825\n.long\t2509608192,555810849\n.long\t3772833792,235798542\n.long\t4294967040,1313734734\n.long\t1684300800,1701118053\n.long\t3537031680,3183280317\n.long\t269488128,3099066552\n.long\t3301229568,2408513679\n.long\t0,3958046955\n.long\t1212696576,3469607118\n.long\t2745410304,808452144\n.long\t4160222976,1600061535\n.long\t1970631936,3318022341\n.long\t3688618752,437911578\n.long\t2324335104,3789619425\n.long\t50529024,3402236106\n.long\t3873891840,1195835463\n.long\t3671775744,1027407933\n.long\t151587072,16842753\n.long\t1061109504,3604349142\n.long\t3722304768,1448476758\n.long\t2492765184,1296891981\n.long\t2273806080,218955789\n.long\t1549556736,1717960806\n.long\t2206434048,3435921612\n.long\t33686016,757923885\n.long\t3452816640,303169554\n.long\t1246382592,538968096\n.long\t2425393152,2981167281\n.long\t858993408,2576941209\n.long\t1936945920,1280049228\n.long\t1734829824,3267494082\n.long\t4143379968,2122186878\n.long\t4092850944,84213765\n.long\t2644352256,3082223799\n.long\t2139062016,825294897\n.long\t3217014528,387383319\n.long\t3806519808,3621191895\n.long\t1381126656,1482162264\n.long\t2610666240,1633747041\n.long\t3638089728,454754331\n.long\t640034304,471597084\n.long\t3368601600,252641295\n.long\t926365440,370540566\n.long\t3334915584,404226072\n.long\t993737472,572653602\n.long\t2172748032,1145307204\n.long\t2526451200,2998010034\n.long\t1869573888,3048538293\n.long\t1263225600,2442199185\n.long\t320017152,134742024\n.long\t3200171520,2829582504\n.long\t1667457792,4244373756", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:46", "text": ".long\t4092850944,84213765\n.long\t2644352256,3082223799\n.long\t2139062016,825294897\n.long\t3217014528,387383319\n.long\t3806519808,3621191895\n.long\t1381126656,1482162264\n.long\t2610666240,1633747041\n.long\t3638089728,454754331\n.long\t640034304,471597084\n.long\t3368601600,252641295\n.long\t926365440,370540566\n.long\t3334915584,404226072\n.long\t993737472,572653602\n.long\t2172748032,1145307204\n.long\t2526451200,2998010034\n.long\t1869573888,3048538293\n.long\t1263225600,2442199185\n.long\t320017152,134742024\n.long\t3200171520,2829582504\n.long\t1667457792,4244373756\n.long\t774778368,1347420240\n.long\t3924420864,3503292624\n.long\t2038003968,2105344125\n.long\t2812782336,2307457161\n.long\t2358021120,2543255703\n.long\t2678038272,1532690523\n.long\t1852730880,2509570197\n.long\t3166485504,4294902015\n.long\t2391707136,3536978130\n.long\t690563328,3301179588\n.long\t4126536960,1212678216\n.long\t4193908992,4160159991\n.long\t3065427456,3688562907\n.long\t791621376,50528259\n.long\t4261281024,3671720154\n.long\t3031741440,1061093439\n.long\t1499027712,2492727444\n.long\t2021160960,1549533276\n.long\t2560137216,33685506\n.long\t101058048,1246363722\n.long\t1785358848,858980403\n.long\t3890734848,1734803559\n.long\t1179010560,4092788979\n.long\t1903259904,2139029631\n.long\t3132799488,3806462178\n.long\t3570717696,2610626715\n.long\t623191296,640024614\n.long\t2880154368,926351415\n.long\t1111638528,993722427\n.long\t2290649088,2526412950\n.long\t2728567296,1263206475\n.long\t2374864128,3200123070\n.long\t4210752000,774766638\n.long\t1920102912,2037973113\n.long\t117901056,2357985420\n.long\t3115956480,1852702830\n.long\t1431655680,2391670926\n.long\t4177065984,4126474485\n.long\t4008635904,3065381046\n.long\t2896997376,4261216509", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:47", "text": ".long\t1785358848,858980403\n.long\t3890734848,1734803559\n.long\t1179010560,4092788979\n.long\t1903259904,2139029631\n.long\t3132799488,3806462178\n.long\t3570717696,2610626715\n.long\t623191296,640024614\n.long\t2880154368,926351415\n.long\t1111638528,993722427\n.long\t2290649088,2526412950\n.long\t2728567296,1263206475\n.long\t2374864128,3200123070\n.long\t4210752000,774766638\n.long\t1920102912,2037973113\n.long\t117901056,2357985420\n.long\t3115956480,1852702830\n.long\t1431655680,2391670926\n.long\t4177065984,4126474485\n.long\t4008635904,3065381046\n.long\t2896997376,4261216509\n.long\t168430080,1499005017\n.long\t909522432,2560098456\n.long\t1229539584,1785331818\n.long\t707406336,1178992710\n.long\t1751672832,3132752058\n.long\t1010580480,623181861\n.long\t943208448,1111621698\n.long\t4059164928,2728525986\n.long\t2762253312,4210688250\n.long\t1077952512,117899271\n.long\t673720320,1431634005\n.long\t3553874688,4008575214\n.long\t2071689984,168427530\n.long\t3149642496,1229520969\n.long\t3385444608,1751646312\n.long\t1128481536,943194168\n.long\t3250700544,2762211492\n.long\t353703168,673710120\n.long\t3823362816,2071658619\n.long\t2913840384,3385393353\n.long\t4109693952,3250651329\n.long\t2004317952,3823304931\n.long\t3351758592,4109631732\n.long\t2155905024,3351707847\n.long\t2661195264,2661154974\n.long\t14737632,939538488\n.long\t328965,1090535745\n.long\t5789784,369104406\n.long\t14277081,1979741814\n.long\t6776679,3640711641\n.long\t5131854,2466288531\n.long\t8487297,1610637408\n.long\t13355979,4060148466\n.long\t13224393,1912631922\n.long\t723723,3254829762\n.long\t11447982,2868947883\n.long\t6974058,2583730842\n.long\t14013909,1962964341\n.long\t1579032,100664838\n.long\t6118749,1459640151", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:48", "text": ".long\t4109693952,3250651329\n.long\t2004317952,3823304931\n.long\t3351758592,4109631732\n.long\t2155905024,3351707847\n.long\t2661195264,2661154974\n.long\t14737632,939538488\n.long\t328965,1090535745\n.long\t5789784,369104406\n.long\t14277081,1979741814\n.long\t6776679,3640711641\n.long\t5131854,2466288531\n.long\t8487297,1610637408\n.long\t13355979,4060148466\n.long\t13224393,1912631922\n.long\t723723,3254829762\n.long\t11447982,2868947883\n.long\t6974058,2583730842\n.long\t14013909,1962964341\n.long\t1579032,100664838\n.long\t6118749,1459640151\n.long\t8553090,2684395680\n.long\t4605510,2432733585\n.long\t14671839,4144035831\n.long\t14079702,3036722613\n.long\t2565927,3372272073\n.long\t9079434,2717950626\n.long\t3289650,2348846220\n.long\t4934475,3523269330\n.long\t4342338,2415956112\n.long\t14408667,4127258358\n.long\t1842204,117442311\n.long\t10395294,2801837991\n.long\t10263708,654321447\n.long\t3815994,2382401166\n.long\t13290186,2986390194\n.long\t2434341,1224755529\n.long\t8092539,3724599006\n.long\t855309,1124090691\n.long\t7434609,1543527516\n.long\t6250335,3607156695\n.long\t2039583,3338717127\n.long\t16316664,1040203326\n.long\t14145495,4110480885\n.long\t4079166,2399178639\n.long\t10329501,1728079719\n.long\t8158332,520101663\n.long\t6316128,402659352\n.long\t12171705,1845522030\n.long\t12500670,2936057775\n.long\t12369084,788541231\n.long\t9145227,3791708898\n.long\t1447446,2231403909\n.long\t3421236,218107149\n.long\t5066061,1392530259\n.long\t12829635,4026593520\n.long\t7500402,2617285788\n.long\t9803157,1694524773\n.long\t11250603,3925928682\n.long\t9342606,2734728099\n.long\t12237498,2919280302", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:49", "text": ".long\t2039583,3338717127\n.long\t16316664,1040203326\n.long\t14145495,4110480885\n.long\t4079166,2399178639\n.long\t10329501,1728079719\n.long\t8158332,520101663\n.long\t6316128,402659352\n.long\t12171705,1845522030\n.long\t12500670,2936057775\n.long\t12369084,788541231\n.long\t9145227,3791708898\n.long\t1447446,2231403909\n.long\t3421236,218107149\n.long\t5066061,1392530259\n.long\t12829635,4026593520\n.long\t7500402,2617285788\n.long\t9803157,1694524773\n.long\t11250603,3925928682\n.long\t9342606,2734728099\n.long\t12237498,2919280302\n.long\t8026746,2650840734\n.long\t11776947,3959483628\n.long\t131586,2147516544\n.long\t11842740,754986285\n.long\t11382189,1795189611\n.long\t10658466,2818615464\n.long\t11316396,721431339\n.long\t14211288,905983542\n.long\t10132122,2785060518\n.long\t1513239,3305162181\n.long\t1710618,2248181382\n.long\t3487029,1291865421\n.long\t13421772,855651123\n.long\t16250871,4244700669\n.long\t10066329,1711302246\n.long\t6381921,1476417624\n.long\t5921370,2516620950\n.long\t15263976,973093434\n.long\t2368548,150997257\n.long\t5658198,2499843477\n.long\t4210752,268439568\n.long\t14803425,2013296760\n.long\t6513507,3623934168\n.long\t592137,1107313218\n.long\t3355443,3422604492\n.long\t12566463,4009816047\n.long\t10000536,637543974\n.long\t9934743,3842041317\n.long\t8750469,1627414881\n.long\t6842472,436214298\n.long\t16579836,1056980799\n.long\t15527148,989870907\n.long\t657930,2181071490\n.long\t14342874,3053500086\n.long\t7303023,3674266587\n.long\t5460819,3556824276\n.long\t6447714,2550175896\n.long\t10724259,3892373736\n.long\t3026478,2332068747\n.long\t526344,33554946", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:50", "text": ".long\t4210752,268439568\n.long\t14803425,2013296760\n.long\t6513507,3623934168\n.long\t592137,1107313218\n.long\t3355443,3422604492\n.long\t12566463,4009816047\n.long\t10000536,637543974\n.long\t9934743,3842041317\n.long\t8750469,1627414881\n.long\t6842472,436214298\n.long\t16579836,1056980799\n.long\t15527148,989870907\n.long\t657930,2181071490\n.long\t14342874,3053500086\n.long\t7303023,3674266587\n.long\t5460819,3556824276\n.long\t6447714,2550175896\n.long\t10724259,3892373736\n.long\t3026478,2332068747\n.long\t526344,33554946\n.long\t11513775,3942706155\n.long\t2631720,167774730\n.long\t11579568,738208812\n.long\t7631988,486546717\n.long\t12763842,2952835248\n.long\t12434877,1862299503\n.long\t3552822,2365623693\n.long\t2236962,2281736328\n.long\t3684408,234884622\n.long\t6579300,419436825\n.long\t1973790,2264958855\n.long\t3750201,1308642894\n.long\t2894892,184552203\n.long\t10921638,2835392937\n.long\t3158064,201329676\n.long\t15066597,2030074233\n.long\t4473924,285217041\n.long\t16645629,2130739071\n.long\t8947848,570434082\n.long\t10461087,3875596263\n.long\t6645093,1493195097\n.long\t8882055,3774931425\n.long\t7039851,3657489114\n.long\t16053492,1023425853\n.long\t2302755,3355494600\n.long\t4737096,301994514\n.long\t1052688,67109892\n.long\t13750737,1946186868\n.long\t5329233,1409307732\n.long\t12632256,805318704\n.long\t16382457,2113961598\n.long\t13816530,3019945140\n.long\t10526880,671098920\n.long\t5592405,1426085205\n.long\t10592673,1744857192\n.long\t4276545,1342197840\n.long\t16448250,3187719870\n.long\t4408131,3489714384\n.long\t1250067,3288384708\n.long\t12895428,822096177", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:51", "text": ".long\t6645093,1493195097\n.long\t8882055,3774931425\n.long\t7039851,3657489114\n.long\t16053492,1023425853\n.long\t2302755,3355494600\n.long\t4737096,301994514\n.long\t1052688,67109892\n.long\t13750737,1946186868\n.long\t5329233,1409307732\n.long\t12632256,805318704\n.long\t16382457,2113961598\n.long\t13816530,3019945140\n.long\t10526880,671098920\n.long\t5592405,1426085205\n.long\t10592673,1744857192\n.long\t4276545,1342197840\n.long\t16448250,3187719870\n.long\t4408131,3489714384\n.long\t1250067,3288384708\n.long\t12895428,822096177\n.long\t3092271,3405827019\n.long\t11053224,704653866\n.long\t11974326,2902502829\n.long\t3947580,251662095\n.long\t2829099,3389049546\n.long\t12698049,1879076976\n.long\t16777215,4278255615\n.long\t13158600,838873650\n.long\t10855845,1761634665\n.long\t2105376,134219784\n.long\t9013641,1644192354\n.long\t0,0\n.long\t9474192,603989028\n.long\t4671303,3506491857\n.long\t15724527,4211145723\n.long\t15395562,3120609978\n.long\t12040119,3976261101\n.long\t1381653,1157645637\n.long\t394758,2164294017\n.long\t13487565,1929409395\n.long\t11908533,1828744557\n.long\t1184274,2214626436\n.long\t8289918,2667618207\n.long\t12303291,3993038574\n.long\t2697513,1241533002\n.long\t986895,3271607235\n.long\t12105912,771763758\n.long\t460551,3238052289\n.long\t263172,16777473\n.long\t10197915,3858818790\n.long\t9737364,620766501\n.long\t2171169,1207978056\n.long\t6710886,2566953369\n.long\t15132390,3103832505\n.long\t13553358,3003167667\n.long\t15592941,2063629179\n.long\t15198183,4177590777\n.long\t3881787,3456159438\n.long\t16711422,3204497343\n.long\t8355711,3741376479", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:52", "text": ".long\t11908533,1828744557\n.long\t1184274,2214626436\n.long\t8289918,2667618207\n.long\t12303291,3993038574\n.long\t2697513,1241533002\n.long\t986895,3271607235\n.long\t12105912,771763758\n.long\t460551,3238052289\n.long\t263172,16777473\n.long\t10197915,3858818790\n.long\t9737364,620766501\n.long\t2171169,1207978056\n.long\t6710886,2566953369\n.long\t15132390,3103832505\n.long\t13553358,3003167667\n.long\t15592941,2063629179\n.long\t15198183,4177590777\n.long\t3881787,3456159438\n.long\t16711422,3204497343\n.long\t8355711,3741376479\n.long\t12961221,1895854449\n.long\t10790052,687876393\n.long\t3618615,3439381965\n.long\t11645361,1811967084\n.long\t5000268,318771987\n.long\t9539985,1677747300\n.long\t7237230,2600508315\n.long\t9276813,1660969827\n.long\t7763574,2634063261\n.long\t197379,3221274816\n.long\t2960685,1258310475\n.long\t14606046,3070277559\n.long\t9868950,2768283045\n.long\t2500134,2298513801\n.long\t8224125,1593859935\n.long\t13027014,2969612721\n.long\t6052956,385881879\n.long\t13882323,4093703412\n.long\t15921906,3154164924\n.long\t5197647,3540046803\n.long\t1644825,1174423110\n.long\t4144959,3472936911\n.long\t14474460,922761015\n.long\t7960953,1577082462\n.long\t1907997,1191200583\n.long\t5395026,2483066004\n.long\t15461355,4194368250\n.long\t15987699,4227923196\n.long\t7171437,1526750043\n.long\t6184542,2533398423\n.long\t16514043,4261478142\n.long\t6908265,1509972570\n.long\t11711154,2885725356\n.long\t15790320,1006648380\n.long\t3223857,1275087948\n.long\t789516,50332419\n.long\t13948116,889206069\n.long\t13619151,4076925939\n.long\t9211020,587211555\n.long\t14869218,3087055032", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:53", "text": ".long\t1644825,1174423110\n.long\t4144959,3472936911\n.long\t14474460,922761015\n.long\t7960953,1577082462\n.long\t1907997,1191200583\n.long\t5395026,2483066004\n.long\t15461355,4194368250\n.long\t15987699,4227923196\n.long\t7171437,1526750043\n.long\t6184542,2533398423\n.long\t16514043,4261478142\n.long\t6908265,1509972570\n.long\t11711154,2885725356\n.long\t15790320,1006648380\n.long\t3223857,1275087948\n.long\t789516,50332419\n.long\t13948116,889206069\n.long\t13619151,4076925939\n.long\t9211020,587211555\n.long\t14869218,3087055032\n.long\t7697781,1560304989\n.long\t11119017,1778412138\n.long\t4868682,2449511058\n.long\t5723991,3573601749\n.long\t8684676,553656609\n.long\t1118481,1140868164\n.long\t4539717,1358975313\n.long\t1776411,3321939654\n.long\t16119285,2097184125\n.long\t15000804,956315961\n.long\t921102,2197848963\n.long\t7566195,3691044060\n.long\t11184810,2852170410\n.long\t15856113,2080406652\n.long\t14540253,1996519287\n.long\t5855577,1442862678\n.long\t1315860,83887365\n.long\t7105644,452991771\n.long\t9605778,2751505572\n.long\t5526612,352326933\n.long\t13684944,872428596\n.long\t7895160,503324190\n.long\t7368816,469769244\n.long\t14935011,4160813304\n.long\t4802889,1375752786\n.long\t8421504,536879136\n.long\t5263440,335549460\n.long\t10987431,3909151209\n.long\t16185078,3170942397\n.long\t7829367,3707821533\n.long\t9671571,3825263844\n.long\t8816262,2701173153\n.long\t8618883,3758153952\n.long\t2763306,2315291274\n.long\t13092807,4043370993\n.long\t5987163,3590379222\n.long\t15329769,2046851706\n.long\t15658734,3137387451\n.long\t9408399,3808486371\n.long\t65793,1073758272", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:54", "text": ".long\t13684944,872428596\n.long\t7895160,503324190\n.long\t7368816,469769244\n.long\t14935011,4160813304\n.long\t4802889,1375752786\n.long\t8421504,536879136\n.long\t5263440,335549460\n.long\t10987431,3909151209\n.long\t16185078,3170942397\n.long\t7829367,3707821533\n.long\t9671571,3825263844\n.long\t8816262,2701173153\n.long\t8618883,3758153952\n.long\t2763306,2315291274\n.long\t13092807,4043370993\n.long\t5987163,3590379222\n.long\t15329769,2046851706\n.long\t15658734,3137387451\n.long\t9408399,3808486371\n.long\t65793,1073758272\n.long\t4013373,1325420367\n.globl\tCamellia_cbc_encrypt\n.type\tCamellia_cbc_encrypt,@function\n.align\t16\nCamellia_cbc_encrypt:\n.L_Camellia_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ecx\n\tcmpl\t$0,%ecx\n\tje\t.L016enc_out\n\tpushfl\n\tcld\n\tmovl\t24(%esp),%eax\n\tmovl\t28(%esp),%ebx\n\tmovl\t36(%esp),%edx\n\tmovl\t40(%esp),%ebp\n\tleal\t-64(%esp),%esi\n\tandl\t$-64,%esi\n\tleal\t-127(%edx),%edi\n\tsubl\t%esi,%edi\n\tnegl\t%edi\n\tandl\t$960,%edi\n\tsubl\t%edi,%esi\n\tmovl\t44(%esp),%edi\n\txchgl\t%esi,%esp\n\taddl\t$4,%esp\n\tmovl\t%esi,20(%esp)\n\tmovl\t%eax,24(%esp)\n\tmovl\t%ebx,28(%esp)\n\tmovl\t%ecx,32(%esp)\n\tmovl\t%edx,36(%esp)\n\tmovl\t%ebp,40(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:55", "text": "movl\t24(%esp),%eax\n\tmovl\t28(%esp),%ebx\n\tmovl\t36(%esp),%edx\n\tmovl\t40(%esp),%ebp\n\tleal\t-64(%esp),%esi\n\tandl\t$-64,%esi\n\tleal\t-127(%edx),%edi\n\tsubl\t%esi,%edi\n\tnegl\t%edi\n\tandl\t$960,%edi\n\tsubl\t%edi,%esi\n\tmovl\t44(%esp),%edi\n\txchgl\t%esi,%esp\n\taddl\t$4,%esp\n\tmovl\t%esi,20(%esp)\n\tmovl\t%eax,24(%esp)\n\tmovl\t%ebx,28(%esp)\n\tmovl\t%ecx,32(%esp)\n\tmovl\t%edx,36(%esp)\n\tmovl\t%ebp,40(%esp)\n\tcall\t.L017pic_point\n.L017pic_point:\n\tpopl\t%ebp\n\tleal\t.LCamellia_SBOX-.L017pic_point(%ebp),%ebp\n\tmovl\t$32,%esi\n.align\t4\n.L018prefetch_sbox:\n\tmovl\t(%ebp),%eax\n\tmovl\t32(%ebp),%ebx\n\tmovl\t64(%ebp),%ecx\n\tmovl\t96(%ebp),%edx\n\tleal\t128(%ebp),%ebp\n\tdecl\t%esi\n\tjnz\t.L018prefetch_sbox\n\tmovl\t36(%esp),%eax\n\tsubl\t$4096,%ebp\n\tmovl\t24(%esp),%esi\n\tmovl\t272(%eax),%edx\n\tcmpl\t$0,%edi\n\tje\t.L019DECRYPT\n\tmovl\t32(%esp),%ecx\n\tmovl\t40(%esp),%edi\n\tshll\t$6,%edx\n\tleal\t(%eax,%edx,1),%edx\n\tmovl\t%edx,16(%esp)\n\ttestl\t$4294967280,%ecx\n\tjz\t.L020enc_tail\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n.align\t4\n.L021enc_loop:\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\txorl\t(%esi),%eax\n\txorl\t4(%esi),%ebx\n\txorl\t8(%esi),%ecx\n\tbswap\t%eax\n\txorl\t12(%esi),%edx\n\tbswap\t%ebx\n\tmovl\t36(%esp),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2161, "line_end": 2220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:56", "text": "movl\t32(%esp),%ecx\n\tmovl\t40(%esp),%edi\n\tshll\t$6,%edx\n\tleal\t(%eax,%edx,1),%edx\n\tmovl\t%edx,16(%esp)\n\ttestl\t$4294967280,%ecx\n\tjz\t.L020enc_tail\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n.align\t4\n.L021enc_loop:\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\txorl\t(%esi),%eax\n\txorl\t4(%esi),%ebx\n\txorl\t8(%esi),%ecx\n\tbswap\t%eax\n\txorl\t12(%esi),%edx\n\tbswap\t%ebx\n\tmovl\t36(%esp),%edi\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_encrypt\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tmovl\t%eax,(%edi)\n\tbswap\t%edx\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tmovl\t32(%esp),%ecx\n\tleal\t16(%esi),%esi\n\tmovl\t%esi,24(%esp)\n\tleal\t16(%edi),%edx\n\tmovl\t%edx,28(%esp)\n\tsubl\t$16,%ecx\n\ttestl\t$4294967280,%ecx\n\tmovl\t%ecx,32(%esp)\n\tjnz\t.L021enc_loop\n\ttestl\t$15,%ecx\n\tjnz\t.L020enc_tail\n\tmovl\t40(%esp),%esi\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tmovl\t20(%esp),%esp\n\tpopfl\n.L016enc_out:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n\tpushfl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2201, "line_end": 2260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:57", "text": "movl\t%ecx,32(%esp)\n\tjnz\t.L021enc_loop\n\ttestl\t$15,%ecx\n\tjnz\t.L020enc_tail\n\tmovl\t40(%esp),%esi\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tmovl\t20(%esp),%esp\n\tpopfl\n.L016enc_out:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n\tpushfl\n.align\t4\n.L020enc_tail:\n\tmovl\t%edi,%eax\n\tmovl\t28(%esp),%edi\n\tpushl\t%eax\n\tmovl\t$16,%ebx\n\tsubl\t%ecx,%ebx\n\tcmpl\t%esi,%edi\n\tje\t.L022enc_in_place\n.align\t4\n.long\t2767451785\n\tjmp\t.L023enc_skip_in_place\n.L022enc_in_place:\n\tleal\t(%edi,%ecx,1),%edi\n.L023enc_skip_in_place:\n\tmovl\t%ebx,%ecx\n\txorl\t%eax,%eax\n.align\t4\n.long\t2868115081\n\tpopl\t%edi\n\tmovl\t28(%esp),%esi\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t$16,32(%esp)\n\tjmp\t.L021enc_loop\n.align\t16\n.L019DECRYPT:\n\tshll\t$6,%edx\n\tleal\t(%eax,%edx,1),%edx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%edx,36(%esp)\n\tcmpl\t28(%esp),%esi\n\tje\t.L024dec_in_place\n\tmovl\t40(%esp),%edi\n\tmovl\t%edi,44(%esp)\n.align\t4\n.L025dec_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2241, "line_end": 2300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:58", "text": "movl\t28(%esp),%esi\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t$16,32(%esp)\n\tjmp\t.L021enc_loop\n.align\t16\n.L019DECRYPT:\n\tshll\t$6,%edx\n\tleal\t(%eax,%edx,1),%edx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%edx,36(%esp)\n\tcmpl\t28(%esp),%esi\n\tje\t.L024dec_in_place\n\tmovl\t40(%esp),%edi\n\tmovl\t%edi,44(%esp)\n.align\t4\n.L025dec_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tbswap\t%eax\n\tmovl\t12(%esi),%edx\n\tbswap\t%ebx\n\tmovl\t36(%esp),%edi\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t44(%esp),%edi\n\tmovl\t32(%esp),%esi\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\txorl\t(%edi),%eax\n\tbswap\t%edx\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n\tsubl\t$16,%esi\n\tjc\t.L026dec_partial\n\tmovl\t%esi,32(%esp)\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tmovl\t%esi,44(%esp)\n\tleal\t16(%esi),%esi\n\tmovl\t%esi,24(%esp)\n\tleal\t16(%edi),%edi\n\tmovl\t%edi,28(%esp)\n\tjnz\t.L025dec_loop\n\tmovl\t44(%esp),%edi\n.L027dec_end:\n\tmovl\t40(%esp),%esi\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tmovl\t%eax,(%esi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2281, "line_end": 2340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:59", "text": "movl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tmovl\t%esi,44(%esp)\n\tleal\t16(%esi),%esi\n\tmovl\t%esi,24(%esp)\n\tleal\t16(%edi),%edi\n\tmovl\t%edi,28(%esp)\n\tjnz\t.L025dec_loop\n\tmovl\t44(%esp),%edi\n.L027dec_end:\n\tmovl\t40(%esp),%esi\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tjmp\t.L028dec_out\n.align\t4\n.L026dec_partial:\n\tleal\t44(%esp),%edi\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tleal\t16(%esi),%ecx\n\tmovl\t%edi,%esi\n\tmovl\t28(%esp),%edi\n.long\t2767451785\n\tmovl\t24(%esp),%edi\n\tjmp\t.L027dec_end\n.align\t4\n.L024dec_in_place:\n.L029dec_in_place_loop:\n\tleal\t44(%esp),%edi\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tbswap\t%eax\n\tmovl\t%edx,12(%edi)\n\tbswap\t%ebx\n\tmovl\t36(%esp),%edi\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t40(%esp),%edi\n\tmovl\t28(%esp),%esi\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2321, "line_end": 2380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:60", "text": "leal\t44(%esp),%edi\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tbswap\t%eax\n\tmovl\t%edx,12(%edi)\n\tbswap\t%ebx\n\tmovl\t36(%esp),%edi\n\tbswap\t%ecx\n\tbswap\t%edx\n\tcall\t_x86_Camellia_decrypt\n\tmovl\t40(%esp),%edi\n\tmovl\t28(%esp),%esi\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\txorl\t(%edi),%eax\n\tbswap\t%edx\n\txorl\t4(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t12(%edi),%edx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tleal\t16(%esi),%esi\n\tmovl\t%esi,28(%esp)\n\tleal\t44(%esp),%esi\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tmovl\t24(%esp),%esi\n\tleal\t16(%esi),%esi\n\tmovl\t%esi,24(%esp)\n\tmovl\t32(%esp),%ecx\n\tsubl\t$16,%ecx\n\tjc\t.L030dec_in_place_partial\n\tmovl\t%ecx,32(%esp)\n\tjnz\t.L029dec_in_place_loop\n\tjmp\t.L028dec_out\n.align\t4\n.L030dec_in_place_partial:\n\tmovl\t28(%esp),%edi\n\tleal\t44(%esp),%esi\n\tleal\t(%edi,%ecx,1),%edi\n\tleal\t16(%esi,%ecx,1),%esi\n\tnegl\t%ecx\n.long\t2767451785\n.align\t4\n.L028dec_out:\n\tmovl\t20(%esp),%esp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2361, "line_end": 2420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S:61", "text": "movl\t24(%esp),%esi\n\tleal\t16(%esi),%esi\n\tmovl\t%esi,24(%esp)\n\tmovl\t32(%esp),%ecx\n\tsubl\t$16,%ecx\n\tjc\t.L030dec_in_place_partial\n\tmovl\t%ecx,32(%esp)\n\tjnz\t.L029dec_in_place_loop\n\tjmp\t.L028dec_out\n.align\t4\n.L030dec_in_place_partial:\n\tmovl\t28(%esp),%edi\n\tleal\t44(%esp),%esi\n\tleal\t(%edi,%ecx,1),%edi\n\tleal\t16(%esi,%ecx,1),%esi\n\tnegl\t%ecx\n.long\t2767451785\n.align\t4\n.L028dec_out:\n\tmovl\t20(%esp),%esp\n\tpopfl\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tCamellia_cbc_encrypt,.-.L_Camellia_cbc_encrypt_begin\n.byte\t67,97,109,101,108,108,105,97,32,102,111,114,32,120,56,54\n.byte\t32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115\n.byte\t115,108,46,111,114,103,62,0\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/cmll-x86.S", "line_start": 2401, "line_end": 2447}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tbn_mul_comba8\n.type\tbn_mul_comba8,@function\n.align\t16\nbn_mul_comba8:\n.L_bn_mul_comba8_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tmovl\t12(%esp),%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\txorl\t%ebx,%ebx\n\tmovl\t(%esi),%eax\n\txorl\t%ecx,%ecx\n\tmovl\t(%edi),%edx\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%eax)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%eax)\n\tmovl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:2", "text": "adcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%eax)\n\tmovl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:3", "text": "xorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%eax)\n\tmovl\t16(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:4", "text": "adcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:5", "text": "adcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%eax)\n\tmovl\t24(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:6", "text": "xorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:7", "text": "adcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:8", "text": "adcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,28(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:9", "text": "adcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,32(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:10", "text": "addl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,32(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,36(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:11", "text": "addl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,36(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,40(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:12", "text": "addl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,40(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:13", "text": "addl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,48(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,52(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:14", "text": "adcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,52(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,56(%eax)\n\n\n\tmovl\t%ebx,60(%eax)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba8,.-.L_bn_mul_comba8_begin\n.globl\tbn_mul_comba4\n.type\tbn_mul_comba4,@function\n.align\t16\nbn_mul_comba4:\n.L_bn_mul_comba4_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tmovl\t12(%esp),%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\txorl\t%ebx,%ebx\n\tmovl\t(%esi),%eax\n\txorl\t%ecx,%ecx\n\tmovl\t(%edi),%edx\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:15", "text": "pushl\t%esi\n\tmovl\t12(%esp),%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\txorl\t%ebx,%ebx\n\tmovl\t(%esi),%eax\n\txorl\t%ecx,%ecx\n\tmovl\t(%edi),%edx\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%eax)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%eax)\n\tmovl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:16", "text": "movl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%eax)\n\tmovl\t12(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:17", "text": "movl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:18", "text": "movl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%eax)\n\n\n\tmovl\t%ecx,28(%eax)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba4,.-.L_bn_mul_comba4_begin\n.globl\tbn_sqr_comba8\n.type\tbn_sqr_comba8,@function\n.align\t16\nbn_sqr_comba8:\n.L_bn_sqr_comba8_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:19", "text": "popl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba4,.-.L_bn_mul_comba4_begin\n.globl\tbn_sqr_comba8\n.type\tbn_sqr_comba8,@function\n.align\t16\nbn_sqr_comba8:\n.L_bn_sqr_comba8_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\txorl\t%ebx,%ebx\n\txorl\t%ecx,%ecx\n\tmovl\t(%esi),%eax\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%edi)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t$0,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:20", "text": "adcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t$0,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%edi)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:21", "text": "mull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\n\tmull\t%eax\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%edi)\n\tmovl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:22", "text": "movl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:23", "text": "addl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:24", "text": "addl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,28(%edi)\n\tmovl\t4(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t20(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:25", "text": "xorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t8(%esi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,32(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:26", "text": "xorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t16(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,36(%edi)\n\tmovl\t12(%esi),%edx\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t16(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx\n\n\tmull\t%eax\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t16(%esi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:27", "text": "adcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t16(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx\n\n\tmull\t%eax\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t16(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,40(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t20(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%edi)\n\tmovl\t20(%esi),%edx\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:28", "text": "adcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%edi)\n\tmovl\t20(%esi),%edx\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,48(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,52(%edi)\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,56(%edi)\n\n\tmovl\t%ebx,60(%edi)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_sqr_comba8,.-.L_bn_sqr_comba8_begin\n.globl\tbn_sqr_comba4\n.type\tbn_sqr_comba4,@function\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:29", "text": "xorl\t%ecx,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,56(%edi)\n\n\tmovl\t%ebx,60(%edi)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_sqr_comba8,.-.L_bn_sqr_comba8_begin\n.globl\tbn_sqr_comba4\n.type\tbn_sqr_comba4,@function\n.align\t16\nbn_sqr_comba4:\n.L_bn_sqr_comba4_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\txorl\t%ebx,%ebx\n\txorl\t%ecx,%ecx\n\tmovl\t(%esi),%eax\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%edi)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:32", "text": "movl\t8(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%edi)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%edi)\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%edi)\n\n\tmovl\t%ecx,28(%edi)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_sqr_comba4,.-.L_bn_sqr_comba4_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1241, "line_end": 1291}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S:33", "text": "0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/co-586.S", "line_start": 1281, "line_end": 1291}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tfcrypt_body\n.type\tfcrypt_body,@function\n.align\t16\nfcrypt_body:\n.L_fcrypt_body_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\txorl\t%edi,%edi\n\txorl\t%esi,%esi\n\tcall\t.L000PIC_me_up\n.L000PIC_me_up:\n\tpopl\t%edx\n\tleal\t_GLOBAL_OFFSET_TABLE_+[.-.L000PIC_me_up](%edx),%edx\n\tmovl\tDES_SPtrans@GOT(%edx),%edx\n\tpushl\t%edx\n\tmovl\t28(%esp),%ebp\n\tpushl\t$25\n.L001start:\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t4(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:2", "text": "movl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t4(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t8(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t12(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:3", "text": "movl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t8(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t12(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:4", "text": "movl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t16(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t20(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:5", "text": "xorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t24(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t28(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:6", "text": "andl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t32(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t36(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:7", "text": "movl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t32(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t36(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t40(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t44(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:8", "text": "movl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t40(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t44(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:9", "text": "movl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t48(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t52(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:10", "text": "xorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t56(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t60(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:11", "text": "andl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t64(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t68(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:12", "text": "movl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t64(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t68(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t72(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t76(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:13", "text": "movl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t72(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t76(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:14", "text": "movl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t80(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t84(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:15", "text": "xorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t88(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t92(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:16", "text": "andl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t96(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t100(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:17", "text": "movl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t96(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t100(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t104(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t108(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:18", "text": "movl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t104(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t108(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:19", "text": "movl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%esi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%esi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t112(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t116(%ebp),%ecx\n\txorl\t%esi,%eax\n\txorl\t%esi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:20", "text": "xorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%edi\n\tmovl\t32(%esp),%ebp\n\n\n\tmovl\t36(%esp),%eax\n\tmovl\t%edi,%edx\n\tshrl\t$16,%edx\n\tmovl\t40(%esp),%ecx\n\txorl\t%edi,%edx\n\tandl\t%edx,%eax\n\tandl\t%ecx,%edx\n\tmovl\t%eax,%ebx\n\tshll\t$16,%ebx\n\tmovl\t%edx,%ecx\n\tshll\t$16,%ecx\n\txorl\t%ebx,%eax\n\txorl\t%ecx,%edx\n\tmovl\t120(%ebp),%ebx\n\txorl\t%ebx,%eax\n\tmovl\t124(%ebp),%ecx\n\txorl\t%edi,%eax\n\txorl\t%edi,%edx\n\txorl\t%ecx,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:21", "text": "andl\t$0xfcfcfcfc,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$0xcfcfcfcf,%edx\n\txorl\t%ecx,%ecx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\tmovl\t4(%esp),%ebp\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\tmovl\t0x600(%ebp,%ebx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x700(%ebp,%ecx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x400(%ebp,%eax,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t0x500(%ebp,%edx,1),%ebx\n\txorl\t%ebx,%esi\n\tmovl\t32(%esp),%ebp\n\tmovl\t(%esp),%ebx\n\tmovl\t%edi,%eax\n\tdecl\t%ebx\n\tmovl\t%esi,%edi\n\tmovl\t%eax,%esi\n\tmovl\t%ebx,(%esp)\n\tjnz\t.L001start\n\n\n\tmovl\t28(%esp),%edx\n\trorl\t$1,%edi\n\tmovl\t%esi,%eax\n\txorl\t%edi,%esi\n\tandl\t$0xaaaaaaaa,%esi\n\txorl\t%esi,%eax\n\txorl\t%esi,%edi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%esi\n\txorl\t%edi,%eax\n\tandl\t$0x03fc03fc,%eax\n\txorl\t%eax,%esi\n\txorl\t%eax,%edi\n\n\troll\t$10,%esi\n\tmovl\t%esi,%eax\n\txorl\t%edi,%esi\n\tandl\t$0x33333333,%esi\n\txorl\t%esi,%eax\n\txorl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:22", "text": "movl\t%esi,%eax\n\txorl\t%edi,%esi\n\tandl\t$0xaaaaaaaa,%esi\n\txorl\t%esi,%eax\n\txorl\t%esi,%edi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%esi\n\txorl\t%edi,%eax\n\tandl\t$0x03fc03fc,%eax\n\txorl\t%eax,%esi\n\txorl\t%eax,%edi\n\n\troll\t$10,%esi\n\tmovl\t%esi,%eax\n\txorl\t%edi,%esi\n\tandl\t$0x33333333,%esi\n\txorl\t%esi,%eax\n\txorl\t%esi,%edi\n\n\troll\t$18,%edi\n\tmovl\t%edi,%esi\n\txorl\t%eax,%edi\n\tandl\t$0xfff0000f,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%eax\n\n\troll\t$12,%esi\n\tmovl\t%esi,%edi\n\txorl\t%eax,%esi\n\tandl\t$0xf0f0f0f0,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%eax\n\n\trorl\t$4,%eax\n\tmovl\t%eax,(%edx)\n\tmovl\t%edi,4(%edx)\n\taddl\t$8,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tfcrypt_body,.-.L_fcrypt_body_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S:23", "text": "popl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tfcrypt_body,.-.L_fcrypt_body_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypt586.S", "line_start": 881, "line_end": 901}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypto.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nCPUID_SRCS = x86cpuid.S\nCPUID = yes\nCPPFLAGS += -DOPENSSL_CPUID_OBJ\nCOPTS.threads_pthread.c += -DBROKEN_CLANG_ATOMICS       # no atomic 64 bit ops\n\n.include \"../../crypto.inc\"", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypto.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/crypto.inc", "line_start": 1, "line_end": 7}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tDES_SPtrans\n.type\t_x86_DES_encrypt,@function\n.align\t16\n_x86_DES_encrypt:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ecx\n\n\tmovl\t(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t4(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t8(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t12(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:2", "text": "xorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t8(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t12(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t16(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t20(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:3", "text": "movb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t24(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t28(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t32(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t36(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:4", "text": "movb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t32(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t36(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t40(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t44(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:5", "text": "movl\t44(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t48(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t52(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t56(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t60(%ecx),%edx\n\txorl\t%edi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:6", "text": "xorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t56(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t60(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t64(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t68(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:7", "text": "xorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t64(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t68(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t72(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t76(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:8", "text": "andl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t80(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t84(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t88(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t92(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:9", "text": "movb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t88(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t92(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t96(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t100(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:10", "text": "movl\t96(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t100(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t104(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t108(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t112(%ecx),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:11", "text": "rorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t112(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t116(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t120(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t124(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:12", "text": "andl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t120(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t124(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\taddl\t$4,%esp\n\tret\n.size\t_x86_DES_encrypt,.-_x86_DES_encrypt\n.type\t_x86_DES_decrypt,@function\n.align\t16\n_x86_DES_decrypt:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ecx\n\n\tmovl\t120(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t124(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:13", "text": ".align\t16\n_x86_DES_decrypt:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ecx\n\n\tmovl\t120(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t124(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t112(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t116(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:14", "text": "movl\t116(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t104(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t108(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t96(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t100(%ecx),%edx\n\txorl\t%edi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:15", "text": "xorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t96(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t100(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t88(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t92(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:16", "text": "xorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t88(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t92(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t80(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t84(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:17", "text": "andl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t72(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t76(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t64(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t68(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:18", "text": "movb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t64(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t68(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t56(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t60(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:19", "text": "movl\t56(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t60(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t48(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t52(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t40(%ecx),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:20", "text": "rorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t40(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t44(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t32(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t36(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:21", "text": "andl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t32(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t36(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t24(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t28(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:22", "text": "xorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t16(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t20(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t8(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t12(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:23", "text": "movb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\n\tmovl\t8(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t12(%ecx),%edx\n\txorl\t%esi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%esi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%edi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%edi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%edi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%edi\n\txorl\t0x700(%ebp,%ecx,1),%edi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t4(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:24", "text": "movl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%edi\n\txorl\t0x500(%ebp,%edx,1),%edi\n\n\tmovl\t(%ecx),%eax\n\txorl\t%ebx,%ebx\n\tmovl\t4(%ecx),%edx\n\txorl\t%edi,%eax\n\txorl\t%ecx,%ecx\n\txorl\t%edi,%edx\n\tandl\t$0xfcfcfcfc,%eax\n\tandl\t$0xcfcfcfcf,%edx\n\tmovb\t%al,%bl\n\tmovb\t%ah,%cl\n\trorl\t$4,%edx\n\txorl\t(%ebp,%ebx,1),%esi\n\tmovb\t%dl,%bl\n\txorl\t0x200(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tshrl\t$16,%eax\n\txorl\t0x100(%ebp,%ebx,1),%esi\n\tmovb\t%ah,%bl\n\tshrl\t$16,%edx\n\txorl\t0x300(%ebp,%ecx,1),%esi\n\tmovb\t%dh,%cl\n\tandl\t$0xff,%eax\n\tandl\t$0xff,%edx\n\txorl\t0x600(%ebp,%ebx,1),%esi\n\txorl\t0x700(%ebp,%ecx,1),%esi\n\tmovl\t(%esp),%ecx\n\txorl\t0x400(%ebp,%eax,1),%esi\n\txorl\t0x500(%ebp,%edx,1),%esi\n\taddl\t$4,%esp\n\tret\n.size\t_x86_DES_decrypt,.-_x86_DES_decrypt\n.globl\tDES_encrypt1\n.type\tDES_encrypt1,@function\n.align\t16\nDES_encrypt1:\n.L_DES_encrypt1_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t12(%esp),%esi\n\txorl\t%ecx,%ecx\n\tpushl\t%ebx\n\tpushl\t%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t28(%esp),%ebx\n\tmovl\t4(%esi),%edi\n\n\n\troll\t$4,%eax\n\tmovl\t%eax,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:25", "text": "#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t12(%esp),%esi\n\txorl\t%ecx,%ecx\n\tpushl\t%ebx\n\tpushl\t%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t28(%esp),%ebx\n\tmovl\t4(%esi),%edi\n\n\n\troll\t$4,%eax\n\tmovl\t%eax,%esi\n\txorl\t%edi,%eax\n\tandl\t$0xf0f0f0f0,%eax\n\txorl\t%eax,%esi\n\txorl\t%eax,%edi\n\n\troll\t$20,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0xfff0000f,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$14,%eax\n\tmovl\t%eax,%edi\n\txorl\t%esi,%eax\n\tandl\t$0x33333333,%eax\n\txorl\t%eax,%edi\n\txorl\t%eax,%esi\n\n\troll\t$22,%esi\n\tmovl\t%esi,%eax\n\txorl\t%edi,%esi\n\tandl\t$0x03fc03fc,%esi\n\txorl\t%esi,%eax\n\txorl\t%esi,%edi\n\n\troll\t$9,%eax\n\tmovl\t%eax,%esi\n\txorl\t%edi,%eax\n\tandl\t$0xaaaaaaaa,%eax\n\txorl\t%eax,%esi\n\txorl\t%eax,%edi\n\n\troll\t$1,%edi\n\tcall\t.L000pic_point\n.L000pic_point:\n\tpopl\t%ebp\n\tleal\t.Ldes_sptrans-.L000pic_point(%ebp),%ebp\n\tmovl\t24(%esp),%ecx\n\tcmpl\t$0,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:26", "text": "movl\t%esi,%eax\n\txorl\t%edi,%esi\n\tandl\t$0x03fc03fc,%esi\n\txorl\t%esi,%eax\n\txorl\t%esi,%edi\n\n\troll\t$9,%eax\n\tmovl\t%eax,%esi\n\txorl\t%edi,%eax\n\tandl\t$0xaaaaaaaa,%eax\n\txorl\t%eax,%esi\n\txorl\t%eax,%edi\n\n\troll\t$1,%edi\n\tcall\t.L000pic_point\n.L000pic_point:\n\tpopl\t%ebp\n\tleal\t.Ldes_sptrans-.L000pic_point(%ebp),%ebp\n\tmovl\t24(%esp),%ecx\n\tcmpl\t$0,%ebx\n\tje\t.L001decrypt\n\tcall\t_x86_DES_encrypt\n\tjmp\t.L002done\n.L001decrypt:\n\tcall\t_x86_DES_decrypt\n.L002done:\n\n\n\tmovl\t20(%esp),%edx\n\trorl\t$1,%esi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%edi\n\txorl\t%esi,%eax\n\tandl\t$0x03fc03fc,%eax\n\txorl\t%eax,%edi\n\txorl\t%eax,%esi\n\n\troll\t$10,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$18,%esi\n\tmovl\t%esi,%edi\n\txorl\t%eax,%esi\n\tandl\t$0xfff0000f,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%eax\n\n\troll\t$12,%edi\n\tmovl\t%edi,%esi\n\txorl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:27", "text": "xorl\t%eax,%edi\n\txorl\t%eax,%esi\n\n\troll\t$10,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$18,%esi\n\tmovl\t%esi,%edi\n\txorl\t%eax,%esi\n\tandl\t$0xfff0000f,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%eax\n\n\troll\t$12,%edi\n\tmovl\t%edi,%esi\n\txorl\t%eax,%edi\n\tandl\t$0xf0f0f0f0,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%eax\n\n\trorl\t$4,%eax\n\tmovl\t%eax,(%edx)\n\tmovl\t%esi,4(%edx)\n\tpopl\t%ebp\n\tpopl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tDES_encrypt1,.-.L_DES_encrypt1_begin\n.globl\tDES_encrypt2\n.type\tDES_encrypt2,@function\n.align\t16\nDES_encrypt2:\n.L_DES_encrypt2_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t12(%esp),%eax\n\txorl\t%ecx,%ecx\n\tpushl\t%ebx\n\tpushl\t%ebp\n\tmovl\t(%eax),%esi\n\tmovl\t28(%esp),%ebx\n\troll\t$3,%esi\n\tmovl\t4(%eax),%edi\n\troll\t$3,%edi\n\tcall\t.L003pic_point\n.L003pic_point:\n\tpopl\t%ebp\n\tleal\t.Ldes_sptrans-.L003pic_point(%ebp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:28", "text": ".byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t12(%esp),%eax\n\txorl\t%ecx,%ecx\n\tpushl\t%ebx\n\tpushl\t%ebp\n\tmovl\t(%eax),%esi\n\tmovl\t28(%esp),%ebx\n\troll\t$3,%esi\n\tmovl\t4(%eax),%edi\n\troll\t$3,%edi\n\tcall\t.L003pic_point\n.L003pic_point:\n\tpopl\t%ebp\n\tleal\t.Ldes_sptrans-.L003pic_point(%ebp),%ebp\n\tmovl\t24(%esp),%ecx\n\tcmpl\t$0,%ebx\n\tje\t.L004decrypt\n\tcall\t_x86_DES_encrypt\n\tjmp\t.L005done\n.L004decrypt:\n\tcall\t_x86_DES_decrypt\n.L005done:\n\n\n\trorl\t$3,%edi\n\tmovl\t20(%esp),%eax\n\trorl\t$3,%esi\n\tmovl\t%edi,(%eax)\n\tmovl\t%esi,4(%eax)\n\tpopl\t%ebp\n\tpopl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tDES_encrypt2,.-.L_DES_encrypt2_begin\n.globl\tDES_encrypt3\n.type\tDES_encrypt3,@function\n.align\t16\nDES_encrypt3:\n.L_DES_encrypt3_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ebx\n\tpushl\t%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:29", "text": ".size\tDES_encrypt2,.-.L_DES_encrypt2_begin\n.globl\tDES_encrypt3\n.type\tDES_encrypt3,@function\n.align\t16\nDES_encrypt3:\n.L_DES_encrypt3_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ebx\n\tpushl\t%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\tsubl\t$12,%esp\n\n\n\troll\t$4,%edi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%edi\n\tandl\t$0xf0f0f0f0,%edi\n\txorl\t%edi,%edx\n\txorl\t%edi,%esi\n\n\troll\t$20,%esi\n\tmovl\t%esi,%edi\n\txorl\t%edx,%esi\n\tandl\t$0xfff0000f,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%edx\n\n\troll\t$14,%edi\n\tmovl\t%edi,%esi\n\txorl\t%edx,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%edx\n\n\troll\t$22,%edx\n\tmovl\t%edx,%edi\n\txorl\t%esi,%edx\n\tandl\t$0x03fc03fc,%edx\n\txorl\t%edx,%edi\n\txorl\t%edx,%esi\n\n\troll\t$9,%edi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%edx\n\txorl\t%edi,%esi\n\n\trorl\t$3,%edx\n\trorl\t$2,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:30", "text": "andl\t$0x33333333,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%edx\n\n\troll\t$22,%edx\n\tmovl\t%edx,%edi\n\txorl\t%esi,%edx\n\tandl\t$0x03fc03fc,%edx\n\txorl\t%edx,%edi\n\txorl\t%edx,%esi\n\n\troll\t$9,%edi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%edx\n\txorl\t%edi,%esi\n\n\trorl\t$3,%edx\n\trorl\t$2,%esi\n\tmovl\t%esi,4(%ebx)\n\tmovl\t36(%esp),%eax\n\tmovl\t%edx,(%ebx)\n\tmovl\t40(%esp),%edi\n\tmovl\t44(%esp),%esi\n\tmovl\t$1,8(%esp)\n\tmovl\t%eax,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\tmovl\t$0,8(%esp)\n\tmovl\t%edi,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\tmovl\t$1,8(%esp)\n\tmovl\t%esi,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\taddl\t$12,%esp\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\n\n\troll\t$2,%esi\n\troll\t$3,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%edi\n\txorl\t%esi,%eax\n\tandl\t$0x03fc03fc,%eax\n\txorl\t%eax,%edi\n\txorl\t%eax,%esi\n\n\troll\t$10,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:31", "text": "roll\t$2,%esi\n\troll\t$3,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%edi\n\txorl\t%esi,%eax\n\tandl\t$0x03fc03fc,%eax\n\txorl\t%eax,%edi\n\txorl\t%eax,%esi\n\n\troll\t$10,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$18,%esi\n\tmovl\t%esi,%edi\n\txorl\t%eax,%esi\n\tandl\t$0xfff0000f,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%eax\n\n\troll\t$12,%edi\n\tmovl\t%edi,%esi\n\txorl\t%eax,%edi\n\tandl\t$0xf0f0f0f0,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%eax\n\n\trorl\t$4,%eax\n\tmovl\t%eax,(%ebx)\n\tmovl\t%esi,4(%ebx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebp\n\tpopl\t%ebx\n\tret\n.size\tDES_encrypt3,.-.L_DES_encrypt3_begin\n.globl\tDES_decrypt3\n.type\tDES_decrypt3,@function\n.align\t16\nDES_decrypt3:\n.L_DES_decrypt3_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ebx\n\tpushl\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:32", "text": "movl\t%esi,4(%ebx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebp\n\tpopl\t%ebx\n\tret\n.size\tDES_encrypt3,.-.L_DES_encrypt3_begin\n.globl\tDES_decrypt3\n.type\tDES_decrypt3,@function\n.align\t16\nDES_decrypt3:\n.L_DES_decrypt3_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebx\n\tmovl\t8(%esp),%ebx\n\tpushl\t%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\n\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\tsubl\t$12,%esp\n\n\n\troll\t$4,%edi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%edi\n\tandl\t$0xf0f0f0f0,%edi\n\txorl\t%edi,%edx\n\txorl\t%edi,%esi\n\n\troll\t$20,%esi\n\tmovl\t%esi,%edi\n\txorl\t%edx,%esi\n\tandl\t$0xfff0000f,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%edx\n\n\troll\t$14,%edi\n\tmovl\t%edi,%esi\n\txorl\t%edx,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%edx\n\n\troll\t$22,%edx\n\tmovl\t%edx,%edi\n\txorl\t%esi,%edx\n\tandl\t$0x03fc03fc,%edx\n\txorl\t%edx,%edi\n\txorl\t%edx,%esi\n\n\troll\t$9,%edi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:33", "text": "xorl\t%esi,%edi\n\txorl\t%esi,%edx\n\n\troll\t$14,%edi\n\tmovl\t%edi,%esi\n\txorl\t%edx,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%edx\n\n\troll\t$22,%edx\n\tmovl\t%edx,%edi\n\txorl\t%esi,%edx\n\tandl\t$0x03fc03fc,%edx\n\txorl\t%edx,%edi\n\txorl\t%edx,%esi\n\n\troll\t$9,%edi\n\tmovl\t%edi,%edx\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%edx\n\txorl\t%edi,%esi\n\n\trorl\t$3,%edx\n\trorl\t$2,%esi\n\tmovl\t%esi,4(%ebx)\n\tmovl\t36(%esp),%esi\n\tmovl\t%edx,(%ebx)\n\tmovl\t40(%esp),%edi\n\tmovl\t44(%esp),%eax\n\tmovl\t$0,8(%esp)\n\tmovl\t%eax,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\tmovl\t$1,8(%esp)\n\tmovl\t%edi,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\tmovl\t$0,8(%esp)\n\tmovl\t%esi,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\taddl\t$12,%esp\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\n\n\troll\t$2,%esi\n\troll\t$3,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%edi\n\txorl\t%esi,%eax\n\tandl\t$0x03fc03fc,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:34", "text": "movl\t%esi,4(%esp)\n\tmovl\t%ebx,(%esp)\n\tcall\t.L_DES_encrypt2_begin\n\taddl\t$12,%esp\n\tmovl\t(%ebx),%edi\n\tmovl\t4(%ebx),%esi\n\n\n\troll\t$2,%esi\n\troll\t$3,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0xaaaaaaaa,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$23,%eax\n\tmovl\t%eax,%edi\n\txorl\t%esi,%eax\n\tandl\t$0x03fc03fc,%eax\n\txorl\t%eax,%edi\n\txorl\t%eax,%esi\n\n\troll\t$10,%edi\n\tmovl\t%edi,%eax\n\txorl\t%esi,%edi\n\tandl\t$0x33333333,%edi\n\txorl\t%edi,%eax\n\txorl\t%edi,%esi\n\n\troll\t$18,%esi\n\tmovl\t%esi,%edi\n\txorl\t%eax,%esi\n\tandl\t$0xfff0000f,%esi\n\txorl\t%esi,%edi\n\txorl\t%esi,%eax\n\n\troll\t$12,%edi\n\tmovl\t%edi,%esi\n\txorl\t%eax,%edi\n\tandl\t$0xf0f0f0f0,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%eax\n\n\trorl\t$4,%eax\n\tmovl\t%eax,(%ebx)\n\tmovl\t%esi,4(%ebx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebp\n\tpopl\t%ebx\n\tret\n.size\tDES_decrypt3,.-.L_DES_decrypt3_begin\n.globl\tDES_ncbc_encrypt\n.type\tDES_ncbc_encrypt,@function\n.align\t16\nDES_ncbc_encrypt:\n.L_DES_ncbc_encrypt_begin:\n\t#ifdef __CET__", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:35", "text": "andl\t$0xf0f0f0f0,%edi\n\txorl\t%edi,%esi\n\txorl\t%edi,%eax\n\n\trorl\t$4,%eax\n\tmovl\t%eax,(%ebx)\n\tmovl\t%esi,4(%ebx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebp\n\tpopl\t%ebx\n\tret\n.size\tDES_decrypt3,.-.L_DES_decrypt3_begin\n.globl\tDES_ncbc_encrypt\n.type\tDES_ncbc_encrypt,@function\n.align\t16\nDES_ncbc_encrypt:\n.L_DES_ncbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tpushl\t%ecx\n\n\tmovl\t52(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L006decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\tjz\t.L007encrypt_finish\n.L008encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,12(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:36", "text": "movl\t56(%esp),%ecx\n\n\tpushl\t%ecx\n\n\tmovl\t52(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L006decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\tjz\t.L007encrypt_finish\n.L008encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,12(%esp)\n\tmovl\t%ebx,16(%esp)\n\tcall\t.L_DES_encrypt1_begin\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L008encrypt_loop\n.L007encrypt_finish:\n\tmovl\t56(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L009finish\n\tcall\t.L010PIC_point\n.L010PIC_point:\n\tpopl\t%edx\n\tleal\t.L011cbc_enc_jmp_table-.L010PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L012ej7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L013ej6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t5(%esi),%dh\n.L014ej5:\n\t#ifdef __CET__", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:37", "text": "xorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L012ej7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L013ej6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t5(%esi),%dh\n.L014ej5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L015ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L016ejend\n.L017ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L018ej2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t1(%esi),%ch\n.L019ej1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t(%esi),%cl\n.L016ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,12(%esp)\n\tmovl\t%ebx,16(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:38", "text": "shll\t$8,%ecx\n.L018ej2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t1(%esi),%ch\n.L019ej1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t(%esi),%cl\n.L016ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,12(%esp)\n\tmovl\t%ebx,16(%esp)\n\tcall\t.L_DES_encrypt1_begin\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L009finish\n.L006decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t20(%esp),%eax\n\tmovl\t24(%esp),%ebx\n\tjz\t.L020decrypt_finish\n.L021decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,12(%esp)\n\tmovl\t%ebx,16(%esp)\n\tcall\t.L_DES_encrypt1_begin\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\tmovl\t20(%esp),%ecx\n\tmovl\t24(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,20(%esp)\n\tmovl\t%ebx,24(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L021decrypt_loop\n.L020decrypt_finish:\n\tmovl\t56(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L009finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,12(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:39", "text": "movl\t24(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,20(%esp)\n\tmovl\t%ebx,24(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L021decrypt_loop\n.L020decrypt_finish:\n\tmovl\t56(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L009finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,12(%esp)\n\tmovl\t%ebx,16(%esp)\n\tcall\t.L_DES_encrypt1_begin\n\tmovl\t12(%esp),%eax\n\tmovl\t16(%esp),%ebx\n\tmovl\t20(%esp),%ecx\n\tmovl\t24(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L022dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L023dj6:\n\tmovb\t%dh,5(%edi)\n.L024dj5:\n\tmovb\t%dl,4(%edi)\n.L025dj4:\n\tmovl\t%ecx,(%edi)\n\tjmp\t.L026djend\n.L027dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L028dj2:\n\tmovb\t%ch,1(%esi)\n.L029dj1:\n\tmovb\t%cl,(%esi)\n.L026djend:\n\tjmp\t.L009finish\n.L009finish:\n\tmovl\t64(%esp),%ecx\n\taddl\t$28,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:40", "text": "jmp\t.L026djend\n.L027dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L028dj2:\n\tmovb\t%ch,1(%esi)\n.L029dj1:\n\tmovb\t%cl,(%esi)\n.L026djend:\n\tjmp\t.L009finish\n.L009finish:\n\tmovl\t64(%esp),%ecx\n\taddl\t$28,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L011cbc_enc_jmp_table:\n.long\t0\n.long\t.L019ej1-.L010PIC_point\n.long\t.L018ej2-.L010PIC_point\n.long\t.L017ej3-.L010PIC_point\n.long\t.L015ej4-.L010PIC_point\n.long\t.L014ej5-.L010PIC_point\n.long\t.L013ej6-.L010PIC_point\n.long\t.L012ej7-.L010PIC_point\n.align\t64\n.size\tDES_ncbc_encrypt,.-.L_DES_ncbc_encrypt_begin\n.globl\tDES_ede3_cbc_encrypt\n.type\tDES_ede3_cbc_encrypt,@function\n.align\t16\nDES_ede3_cbc_encrypt:\n.L_DES_ede3_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t44(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:41", "text": ".byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t44(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t64(%esp),%ecx\n\n\tmovl\t56(%esp),%eax\n\tpushl\t%eax\n\n\tmovl\t56(%esp),%eax\n\tpushl\t%eax\n\n\tmovl\t56(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L030decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L031encrypt_finish\n.L032encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_encrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L032encrypt_loop\n.L031encrypt_finish:\n\tmovl\t60(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L033finish\n\tcall\t.L034PIC_point\n.L034PIC_point:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:42", "text": "movl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_encrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L032encrypt_loop\n.L031encrypt_finish:\n\tmovl\t60(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L033finish\n\tcall\t.L034PIC_point\n.L034PIC_point:\n\tpopl\t%edx\n\tleal\t.L035cbc_enc_jmp_table-.L034PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L036ej7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L037ej6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t5(%esi),%dh\n.L038ej5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L039ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L040ejend\n.L041ej3:\n\t#ifdef __CET__", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:43", "text": "movb\t5(%esi),%dh\n.L038ej5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L039ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L040ejend\n.L041ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L042ej2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t1(%esi),%ch\n.L043ej1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t(%esi),%cl\n.L040ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_encrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L033finish\n.L030decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t24(%esp),%eax\n\tmovl\t28(%esp),%ebx\n\tjz\t.L044decrypt_finish\n.L045decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:44", "text": "xorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_encrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L033finish\n.L030decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t24(%esp),%eax\n\tmovl\t28(%esp),%ebx\n\tjz\t.L044decrypt_finish\n.L045decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_decrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%ecx\n\tmovl\t28(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,24(%esp)\n\tmovl\t%ebx,28(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L045decrypt_loop\n.L044decrypt_finish:\n\tmovl\t60(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L033finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_decrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%ecx\n\tmovl\t28(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L046dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L047dj6:\n\tmovb\t%dh,5(%edi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:45", "text": "jz\t.L033finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tcall\t.L_DES_decrypt3_begin\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%ecx\n\tmovl\t28(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L046dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L047dj6:\n\tmovb\t%dh,5(%edi)\n.L048dj5:\n\tmovb\t%dl,4(%edi)\n.L049dj4:\n\tmovl\t%ecx,(%edi)\n\tjmp\t.L050djend\n.L051dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L052dj2:\n\tmovb\t%ch,1(%esi)\n.L053dj1:\n\tmovb\t%cl,(%esi)\n.L050djend:\n\tjmp\t.L033finish\n.L033finish:\n\tmovl\t76(%esp),%ecx\n\taddl\t$32,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L035cbc_enc_jmp_table:\n.long\t0\n.long\t.L043ej1-.L034PIC_point\n.long\t.L042ej2-.L034PIC_point\n.long\t.L041ej3-.L034PIC_point\n.long\t.L039ej4-.L034PIC_point\n.long\t.L038ej5-.L034PIC_point\n.long\t.L037ej6-.L034PIC_point\n.long\t.L036ej7-.L034PIC_point\n.align\t64\n.size\tDES_ede3_cbc_encrypt,.-.L_DES_ede3_cbc_encrypt_begin\n.align\t64\nDES_SPtrans:\n.Ldes_sptrans:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:46", "text": "popl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L035cbc_enc_jmp_table:\n.long\t0\n.long\t.L043ej1-.L034PIC_point\n.long\t.L042ej2-.L034PIC_point\n.long\t.L041ej3-.L034PIC_point\n.long\t.L039ej4-.L034PIC_point\n.long\t.L038ej5-.L034PIC_point\n.long\t.L037ej6-.L034PIC_point\n.long\t.L036ej7-.L034PIC_point\n.align\t64\n.size\tDES_ede3_cbc_encrypt,.-.L_DES_ede3_cbc_encrypt_begin\n.align\t64\nDES_SPtrans:\n.Ldes_sptrans:\n.long\t34080768,524288,33554434,34080770\n.long\t33554432,526338,524290,33554434\n.long\t526338,34080768,34078720,2050\n.long\t33556482,33554432,0,524290\n.long\t524288,2,33556480,526336\n.long\t34080770,34078720,2050,33556480\n.long\t2,2048,526336,34078722\n.long\t2048,33556482,34078722,0\n.long\t0,34080770,33556480,524290\n.long\t34080768,524288,2050,33556480\n.long\t34078722,2048,526336,33554434\n.long\t526338,2,33554434,34078720\n.long\t34080770,526336,34078720,33556482\n.long\t33554432,2050,524290,0\n.long\t524288,33554432,33556482,34080768\n.long\t2,34078722,2048,526338\n.long\t1074823184,0,1081344,1074790400\n.long\t1073741840,32784,1073774592,1081344\n.long\t32768,1074790416,16,1073774592\n.long\t1048592,1074823168,1074790400,16\n.long\t1048576,1073774608,1074790416,32768\n.long\t1081360,1073741824,0,1048592\n.long\t1073774608,1081360,1074823168,1073741840\n.long\t1073741824,1048576,32784,1074823184\n.long\t1048592,1074823168,1073774592,1081360\n.long\t1074823184,1048592,1073741840,0\n.long\t1073741824,32784,1048576,1074790416\n.long\t32768,1073741824,1081360,1073774608\n.long\t1074823168,32768,0,1073741840\n.long\t16,1074823184,1081344,1074790400\n.long\t1074790416,1048576,32784,1073774592\n.long\t1073774608,16,1074790400,1081344\n.long\t67108865,67371264,256,67109121\n.long\t262145,67108864,67109121,262400\n.long\t67109120,262144,67371008,1\n.long\t67371265,257,1,67371009\n.long\t0,262145,67371264,256\n.long\t257,67371265,262144,67108865\n.long\t67371009,67109120,262401,67371008\n.long\t262400,0,67108864,262401", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:47", "text": ".long\t1048576,1073774608,1074790416,32768\n.long\t1081360,1073741824,0,1048592\n.long\t1073774608,1081360,1074823168,1073741840\n.long\t1073741824,1048576,32784,1074823184\n.long\t1048592,1074823168,1073774592,1081360\n.long\t1074823184,1048592,1073741840,0\n.long\t1073741824,32784,1048576,1074790416\n.long\t32768,1073741824,1081360,1073774608\n.long\t1074823168,32768,0,1073741840\n.long\t16,1074823184,1081344,1074790400\n.long\t1074790416,1048576,32784,1073774592\n.long\t1073774608,16,1074790400,1081344\n.long\t67108865,67371264,256,67109121\n.long\t262145,67108864,67109121,262400\n.long\t67109120,262144,67371008,1\n.long\t67371265,257,1,67371009\n.long\t0,262145,67371264,256\n.long\t257,67371265,262144,67108865\n.long\t67371009,67109120,262401,67371008\n.long\t262400,0,67108864,262401\n.long\t67371264,256,1,262144\n.long\t257,262145,67371008,67109121\n.long\t0,67371264,262400,67371009\n.long\t262145,67108864,67371265,1\n.long\t262401,67108865,67108864,67371265\n.long\t262144,67109120,67109121,262400\n.long\t67109120,0,67371009,257\n.long\t67108865,262401,256,67371008\n.long\t4198408,268439552,8,272633864\n.long\t0,272629760,268439560,4194312\n.long\t272633856,268435464,268435456,4104\n.long\t268435464,4198408,4194304,268435456\n.long\t272629768,4198400,4096,8\n.long\t4198400,268439560,272629760,4096\n.long\t4104,0,4194312,272633856\n.long\t268439552,272629768,272633864,4194304\n.long\t272629768,4104,4194304,268435464\n.long\t4198400,268439552,8,272629760\n.long\t268439560,0,4096,4194312\n.long\t0,272629768,272633856,4096\n.long\t268435456,272633864,4198408,4194304\n.long\t272633864,8,268439552,4198408\n.long\t4194312,4198400,272629760,268439560\n.long\t4104,268435456,268435464,272633856\n.long\t134217728,65536,1024,134284320\n.long\t134283296,134218752,66592,134283264\n.long\t65536,32,134217760,66560\n.long\t134218784,134283296,134284288,0\n.long\t66560,134217728,65568,1056\n.long\t134218752,66592,0,134217760\n.long\t32,134218784,134284320,65568\n.long\t134283264,1024,1056,134284288\n.long\t134284288,134218784,65568,134283264\n.long\t65536,32,134217760,134218752\n.long\t134217728,66560,134284320,0\n.long\t66592,134217728,1024,65568\n.long\t134218784,1024,0,134284320\n.long\t134283296,134284288,1056,65536\n.long\t66560,134283296,134218752,1056\n.long\t32,66592,134283264,134217760", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:48", "text": ".long\t268435456,272633864,4198408,4194304\n.long\t272633864,8,268439552,4198408\n.long\t4194312,4198400,272629760,268439560\n.long\t4104,268435456,268435464,272633856\n.long\t134217728,65536,1024,134284320\n.long\t134283296,134218752,66592,134283264\n.long\t65536,32,134217760,66560\n.long\t134218784,134283296,134284288,0\n.long\t66560,134217728,65568,1056\n.long\t134218752,66592,0,134217760\n.long\t32,134218784,134284320,65568\n.long\t134283264,1024,1056,134284288\n.long\t134284288,134218784,65568,134283264\n.long\t65536,32,134217760,134218752\n.long\t134217728,66560,134284320,0\n.long\t66592,134217728,1024,65568\n.long\t134218784,1024,0,134284320\n.long\t134283296,134284288,1056,65536\n.long\t66560,134283296,134218752,1056\n.long\t32,66592,134283264,134217760\n.long\t2147483712,2097216,0,2149588992\n.long\t2097216,8192,2147491904,2097152\n.long\t8256,2149589056,2105344,2147483648\n.long\t2147491840,2147483712,2149580800,2105408\n.long\t2097152,2147491904,2149580864,0\n.long\t8192,64,2149588992,2149580864\n.long\t2149589056,2149580800,2147483648,8256\n.long\t64,2105344,2105408,2147491840\n.long\t8256,2147483648,2147491840,2105408\n.long\t2149588992,2097216,0,2147491840\n.long\t2147483648,8192,2149580864,2097152\n.long\t2097216,2149589056,2105344,64\n.long\t2149589056,2105344,2097152,2147491904\n.long\t2147483712,2149580800,2105408,0\n.long\t8192,2147483712,2147491904,2149588992\n.long\t2149580800,8256,64,2149580864\n.long\t16384,512,16777728,16777220\n.long\t16794116,16388,16896,0\n.long\t16777216,16777732,516,16793600\n.long\t4,16794112,16793600,516\n.long\t16777732,16384,16388,16794116\n.long\t0,16777728,16777220,16896\n.long\t16793604,16900,16794112,4\n.long\t16900,16793604,512,16777216\n.long\t16900,16793600,16793604,516\n.long\t16384,512,16777216,16793604\n.long\t16777732,16900,16896,0\n.long\t512,16777220,4,16777728\n.long\t0,16777732,16777728,16896\n.long\t516,16384,16794116,16777216\n.long\t16794112,4,16388,16794116\n.long\t16777220,16794112,16793600,16388\n.long\t545259648,545390592,131200,0\n.long\t537001984,8388736,545259520,545390720\n.long\t128,536870912,8519680,131200\n.long\t8519808,537002112,536871040,545259520\n.long\t131072,8519808,8388736,537001984\n.long\t545390720,536871040,0,8519680\n.long\t536870912,8388608,537002112,545259648\n.long\t8388608,131072,545390592,128", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S:49", "text": ".long\t16777732,16384,16388,16794116\n.long\t0,16777728,16777220,16896\n.long\t16793604,16900,16794112,4\n.long\t16900,16793604,512,16777216\n.long\t16900,16793600,16793604,516\n.long\t16384,512,16777216,16793604\n.long\t16777732,16900,16896,0\n.long\t512,16777220,4,16777728\n.long\t0,16777732,16777728,16896\n.long\t516,16384,16794116,16777216\n.long\t16794112,4,16388,16794116\n.long\t16777220,16794112,16793600,16388\n.long\t545259648,545390592,131200,0\n.long\t537001984,8388736,545259520,545390720\n.long\t128,536870912,8519680,131200\n.long\t8519808,537002112,536871040,545259520\n.long\t131072,8519808,8388736,537001984\n.long\t545390720,536871040,0,8519680\n.long\t536870912,8388608,537002112,545259648\n.long\t8388608,131072,545390592,128\n.long\t8388608,131072,536871040,545390720\n.long\t131200,536870912,0,8519680\n.long\t545259648,537002112,537001984,8388736\n.long\t545390592,128,8388736,537001984\n.long\t545390720,8388608,545259520,536871040\n.long\t8519680,131200,537002112,545259520\n.long\t128,545390592,8519808,0\n.long\t536870912,545259648,131072,8519808\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/des-586.S", "line_start": 1921, "line_end": 1965}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tpadlock_capability\n.type\tpadlock_capability,@function\n.align\t16\npadlock_capability:\n.L_padlock_capability_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebx\n\tpushfl\n\tpopl\t%eax\n\tmovl\t%eax,%ecx\n\txorl\t$2097152,%eax\n\tpushl\t%eax\n\tpopfl\n\tpushfl\n\tpopl\t%eax\n\txorl\t%eax,%ecx\n\txorl\t%eax,%eax\n\tbtl\t$21,%ecx\n\tjnc\t.L000noluck\n\t.byte\t0x0f,0xa2\n\txorl\t%eax,%eax\n\tcmpl\t$0x746e6543,%ebx\n\tjne\t.L001zhaoxin\n\tcmpl\t$0x48727561,%edx\n\tjne\t.L000noluck\n\tcmpl\t$0x736c7561,%ecx\n\tjne\t.L000noluck\n\tjmp\t.L002zhaoxinEnd\n.L001zhaoxin:\n\tcmpl\t$0x68532020,%ebx\n\tjne\t.L000noluck\n\tcmpl\t$0x68676e61,%edx\n\tjne\t.L000noluck\n\tcmpl\t$0x20206961,%ecx\n\tjne\t.L000noluck\n.L002zhaoxinEnd:\n\tmovl\t$3221225472,%eax\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,%edx\n\txorl\t%eax,%eax\n\tcmpl\t$3221225473,%edx\n\tjb\t.L000noluck\n\tmovl\t$1,%eax\n\t.byte\t0x0f,0xa2\n\torl\t$15,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$4095,%eax\n\tcmpl\t$1791,%eax\n\tsete\t%bl\n\tmovl\t$3221225473,%eax\n\tpushl\t%ebx\n\t.byte\t0x0f,0xa2\n\tpopl\t%ebx\n\tmovl\t%edx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:2", "text": "jne\t.L000noluck\n.L002zhaoxinEnd:\n\tmovl\t$3221225472,%eax\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,%edx\n\txorl\t%eax,%eax\n\tcmpl\t$3221225473,%edx\n\tjb\t.L000noluck\n\tmovl\t$1,%eax\n\t.byte\t0x0f,0xa2\n\torl\t$15,%eax\n\txorl\t%ebx,%ebx\n\tandl\t$4095,%eax\n\tcmpl\t$1791,%eax\n\tsete\t%bl\n\tmovl\t$3221225473,%eax\n\tpushl\t%ebx\n\t.byte\t0x0f,0xa2\n\tpopl\t%ebx\n\tmovl\t%edx,%eax\n\tshll\t$4,%ebx\n\tandl\t$4294967279,%eax\n\torl\t%ebx,%eax\n.L000noluck:\n\tpopl\t%ebx\n\tret\n.size\tpadlock_capability,.-.L_padlock_capability_begin\n.globl\tpadlock_key_bswap\n.type\tpadlock_key_bswap,@function\n.align\t16\npadlock_key_bswap:\n.L_padlock_key_bswap_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t240(%edx),%ecx\n\tincl\t%ecx\n\tshll\t$2,%ecx\n.L003bswap_loop:\n\tmovl\t(%edx),%eax\n\tbswap\t%eax\n\tmovl\t%eax,(%edx)\n\tleal\t4(%edx),%edx\n\tsubl\t$1,%ecx\n\tjnz\t.L003bswap_loop\n\tret\n.size\tpadlock_key_bswap,.-.L_padlock_key_bswap_begin\n.globl\tpadlock_verify_context\n.type\tpadlock_verify_context,@function\n.align\t16\npadlock_verify_context:\n.L_padlock_verify_context_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:3", "text": "shll\t$2,%ecx\n.L003bswap_loop:\n\tmovl\t(%edx),%eax\n\tbswap\t%eax\n\tmovl\t%eax,(%edx)\n\tleal\t4(%edx),%edx\n\tsubl\t$1,%ecx\n\tjnz\t.L003bswap_loop\n\tret\n.size\tpadlock_key_bswap,.-.L_padlock_key_bswap_begin\n.globl\tpadlock_verify_context\n.type\tpadlock_verify_context,@function\n.align\t16\npadlock_verify_context:\n.L_padlock_verify_context_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tleal\t.Lpadlock_saved_context-.L004verify_pic_point,%eax\n\tpushfl\n\tcall\t_padlock_verify_ctx\n.L004verify_pic_point:\n\tleal\t4(%esp),%esp\n\tret\n.size\tpadlock_verify_context,.-.L_padlock_verify_context_begin\n.type\t_padlock_verify_ctx,@function\n.align\t16\n_padlock_verify_ctx:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\taddl\t(%esp),%eax\n\tbtl\t$30,4(%esp)\n\tjnc\t.L005verified\n\tcmpl\t(%eax),%edx\n\tje\t.L005verified\n\tpushfl\n\tpopfl\n.L005verified:\n\tmovl\t%edx,(%eax)\n\tret\n.size\t_padlock_verify_ctx,.-_padlock_verify_ctx\n.globl\tpadlock_reload_key\n.type\tpadlock_reload_key,@function\n.align\t16\npadlock_reload_key:\n.L_padlock_reload_key_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushfl\n\tpopfl\n\tret", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:4", "text": "je\t.L005verified\n\tpushfl\n\tpopfl\n.L005verified:\n\tmovl\t%edx,(%eax)\n\tret\n.size\t_padlock_verify_ctx,.-_padlock_verify_ctx\n.globl\tpadlock_reload_key\n.type\tpadlock_reload_key,@function\n.align\t16\npadlock_reload_key:\n.L_padlock_reload_key_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushfl\n\tpopfl\n\tret\n.size\tpadlock_reload_key,.-.L_padlock_reload_key_begin\n.globl\tpadlock_aes_block\n.type\tpadlock_aes_block,@function\n.align\t16\npadlock_aes_block:\n.L_padlock_aes_block_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%ebx\n\tmovl\t16(%esp),%edi\n\tmovl\t20(%esp),%esi\n\tmovl\t24(%esp),%edx\n\tmovl\t$1,%ecx\n\tleal\t32(%edx),%ebx\n\tleal\t16(%edx),%edx\n.byte\t243,15,167,200\n\tpopl\t%ebx\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_aes_block,.-.L_padlock_aes_block_begin\n.globl\tpadlock_ecb_encrypt\n.type\tpadlock_ecb_encrypt,@function\n.align\t16\npadlock_ecb_encrypt:\n.L_padlock_ecb_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:5", "text": ".byte\t243,15,167,200\n\tpopl\t%ebx\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_aes_block,.-.L_padlock_aes_block_begin\n.globl\tpadlock_ecb_encrypt\n.type\tpadlock_ecb_encrypt,@function\n.align\t16\npadlock_ecb_encrypt:\n.L_padlock_ecb_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L006ecb_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L006ecb_abort\n\tleal\t.Lpadlock_saved_context-.L007ecb_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L007ecb_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\ttestl\t$32,(%edx)\n\tjnz\t.L008ecb_aligned\n\ttestl\t$15,%edi\n\tsetz\t%al\n\ttestl\t$15,%esi\n\tsetz\t%bl\n\ttestl\t%ebx,%eax\n\tjnz\t.L008ecb_aligned\n\tnegl\t%eax\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp\n\tcmpl\t%ebx,%ecx\n\tcmovcl\t%ecx,%ebx\n\tandl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tnegl\t%eax\n\tandl\t$511,%ebx\n\tleal\t(%eax,%ebp,1),%esp\n\tmovl\t$512,%eax\n\tcmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:6", "text": "testl\t$15,%esi\n\tsetz\t%bl\n\ttestl\t%ebx,%eax\n\tjnz\t.L008ecb_aligned\n\tnegl\t%eax\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp\n\tcmpl\t%ebx,%ecx\n\tcmovcl\t%ecx,%ebx\n\tandl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tnegl\t%eax\n\tandl\t$511,%ebx\n\tleal\t(%eax,%ebp,1),%esp\n\tmovl\t$512,%eax\n\tcmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tcmpl\t%ebx,%ecx\n\tja\t.L009ecb_loop\n\tmovl\t%esi,%eax\n\tcmpl\t%esp,%ebp\n\tcmovel\t%edi,%eax\n\taddl\t%ecx,%eax\n\tnegl\t%eax\n\tandl\t$4095,%eax\n\tcmpl\t$128,%eax\n\tmovl\t$-128,%eax\n\tcmovael\t%ebx,%eax\n\tandl\t%eax,%ebx\n\tjz\t.L010ecb_unaligned_tail\n\tjmp\t.L009ecb_loop\n.align\t16\n.L009ecb_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L011ecb_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L011ecb_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,200\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi\n\tjz\t.L012ecb_out_aligned", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:7", "text": "movl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L011ecb_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L011ecb_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,200\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi\n\tjz\t.L012ecb_out_aligned\n\tmovl\t%ebx,%ecx\n\tleal\t(%esp),%esi\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n.L012ecb_out_aligned:\n\tmovl\t4(%ebp),%esi\n\tmovl\t8(%ebp),%ecx\n\taddl\t%ebx,%edi\n\taddl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjz\t.L013ecb_break\n\tcmpl\t%ebx,%ecx\n\tjae\t.L009ecb_loop\n.L010ecb_unaligned_tail:\n\txorl\t%eax,%eax\n\tcmpl\t%ebp,%esp\n\tcmovel\t%ecx,%eax\n\tsubl\t%eax,%esp\n\tmovl\t%edi,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L009ecb_loop\n.align\t16\n.L013ecb_break:\n\tcmpl\t%ebp,%esp\n\tje\t.L014ecb_done\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L015ecb_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L015ecb_bzero", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:8", "text": "movl\t%edi,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L009ecb_loop\n.align\t16\n.L013ecb_break:\n\tcmpl\t%ebp,%esp\n\tje\t.L014ecb_done\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L015ecb_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L015ecb_bzero\n.L014ecb_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L016ecb_exit\n.align\t16\n.L008ecb_aligned:\n\tleal\t(%esi,%ecx,1),%ebp\n\tnegl\t%ebp\n\tandl\t$4095,%ebp\n\txorl\t%eax,%eax\n\tcmpl\t$128,%ebp\n\tmovl\t$127,%ebp\n\tcmovael\t%eax,%ebp\n\tandl\t%ecx,%ebp\n\tsubl\t%ebp,%ecx\n\tjz\t.L017ecb_aligned_tail\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,200\n\ttestl\t%ebp,%ebp\n\tjz\t.L016ecb_exit\n.L017ecb_aligned_tail:\n\tmovl\t%ebp,%ecx\n\tleal\t-24(%esp),%ebp\n\tmovl\t%ebp,%esp\n\tmovl\t%ebp,%eax\n\tsubl\t%ecx,%esp\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tmovl\t%edi,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L009ecb_loop", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:9", "text": "testl\t%ebp,%ebp\n\tjz\t.L016ecb_exit\n.L017ecb_aligned_tail:\n\tmovl\t%ebp,%ecx\n\tleal\t-24(%esp),%ebp\n\tmovl\t%ebp,%esp\n\tmovl\t%ebp,%eax\n\tsubl\t%ecx,%esp\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tmovl\t%edi,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L009ecb_loop\n.L016ecb_exit:\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n.L006ecb_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpadlock_ecb_encrypt,.-.L_padlock_ecb_encrypt_begin\n.globl\tpadlock_cbc_encrypt\n.type\tpadlock_cbc_encrypt,@function\n.align\t16\npadlock_cbc_encrypt:\n.L_padlock_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L018cbc_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L018cbc_abort\n\tleal\t.Lpadlock_saved_context-.L019cbc_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L019cbc_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:10", "text": "pushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L018cbc_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L018cbc_abort\n\tleal\t.Lpadlock_saved_context-.L019cbc_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L019cbc_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\ttestl\t$32,(%edx)\n\tjnz\t.L020cbc_aligned\n\ttestl\t$15,%edi\n\tsetz\t%al\n\ttestl\t$15,%esi\n\tsetz\t%bl\n\ttestl\t%ebx,%eax\n\tjnz\t.L020cbc_aligned\n\tnegl\t%eax\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp\n\tcmpl\t%ebx,%ecx\n\tcmovcl\t%ecx,%ebx\n\tandl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tnegl\t%eax\n\tandl\t$511,%ebx\n\tleal\t(%eax,%ebp,1),%esp\n\tmovl\t$512,%eax\n\tcmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tcmpl\t%ebx,%ecx\n\tja\t.L021cbc_loop\n\tmovl\t%esi,%eax\n\tcmpl\t%esp,%ebp\n\tcmovel\t%edi,%eax\n\taddl\t%ecx,%eax\n\tnegl\t%eax\n\tandl\t$4095,%eax\n\tcmpl\t$64,%eax\n\tmovl\t$-64,%eax\n\tcmovael\t%ebx,%eax\n\tandl\t%eax,%ebx\n\tjz\t.L022cbc_unaligned_tail\n\tjmp\t.L021cbc_loop\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:11", "text": "cmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tcmpl\t%ebx,%ecx\n\tja\t.L021cbc_loop\n\tmovl\t%esi,%eax\n\tcmpl\t%esp,%ebp\n\tcmovel\t%edi,%eax\n\taddl\t%ecx,%eax\n\tnegl\t%eax\n\tandl\t$4095,%eax\n\tcmpl\t$64,%eax\n\tmovl\t$-64,%eax\n\tcmovael\t%ebx,%eax\n\tandl\t%eax,%ebx\n\tjz\t.L022cbc_unaligned_tail\n\tjmp\t.L021cbc_loop\n.align\t16\n.L021cbc_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L023cbc_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L023cbc_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,208\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi\n\tjz\t.L024cbc_out_aligned\n\tmovl\t%ebx,%ecx\n\tleal\t(%esp),%esi\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n.L024cbc_out_aligned:\n\tmovl\t4(%ebp),%esi\n\tmovl\t8(%ebp),%ecx\n\taddl\t%ebx,%edi\n\taddl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjz\t.L025cbc_break\n\tcmpl\t%ebx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:12", "text": "movaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi\n\tjz\t.L024cbc_out_aligned\n\tmovl\t%ebx,%ecx\n\tleal\t(%esp),%esi\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n.L024cbc_out_aligned:\n\tmovl\t4(%ebp),%esi\n\tmovl\t8(%ebp),%ecx\n\taddl\t%ebx,%edi\n\taddl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjz\t.L025cbc_break\n\tcmpl\t%ebx,%ecx\n\tjae\t.L021cbc_loop\n.L022cbc_unaligned_tail:\n\txorl\t%eax,%eax\n\tcmpl\t%ebp,%esp\n\tcmovel\t%ecx,%eax\n\tsubl\t%eax,%esp\n\tmovl\t%edi,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L021cbc_loop\n.align\t16\n.L025cbc_break:\n\tcmpl\t%ebp,%esp\n\tje\t.L026cbc_done\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L027cbc_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L027cbc_bzero\n.L026cbc_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L028cbc_exit\n.align\t16\n.L020cbc_aligned:\n\tleal\t(%esi,%ecx,1),%ebp\n\tnegl\t%ebp\n\tandl\t$4095,%ebp\n\txorl\t%eax,%eax\n\tcmpl\t$64,%ebp\n\tmovl\t$63,%ebp\n\tcmovael\t%eax,%ebp\n\tandl\t%ecx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:13", "text": "leal\t(%esp),%eax\n.L027cbc_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L027cbc_bzero\n.L026cbc_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L028cbc_exit\n.align\t16\n.L020cbc_aligned:\n\tleal\t(%esi,%ecx,1),%ebp\n\tnegl\t%ebp\n\tandl\t$4095,%ebp\n\txorl\t%eax,%eax\n\tcmpl\t$64,%ebp\n\tmovl\t$63,%ebp\n\tcmovael\t%eax,%ebp\n\tandl\t%ecx,%ebp\n\tsubl\t%ebp,%ecx\n\tjz\t.L029cbc_aligned_tail\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,208\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n\ttestl\t%ebp,%ebp\n\tjz\t.L028cbc_exit\n.L029cbc_aligned_tail:\n\tmovl\t%ebp,%ecx\n\tleal\t-24(%esp),%ebp\n\tmovl\t%ebp,%esp\n\tmovl\t%ebp,%eax\n\tsubl\t%ecx,%esp\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tmovl\t%edi,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L021cbc_loop\n.L028cbc_exit:\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n.L018cbc_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpadlock_cbc_encrypt,.-.L_padlock_cbc_encrypt_begin\n.globl\tpadlock_cfb_encrypt\n.type\tpadlock_cfb_encrypt,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:14", "text": "movl\t%ecx,%ebx\n\tshrl\t$2,%ecx\n\tleal\t(%esp),%edi\n.byte\t243,165\n\tmovl\t%esp,%esi\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%ecx\n\tjmp\t.L021cbc_loop\n.L028cbc_exit:\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n.L018cbc_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpadlock_cbc_encrypt,.-.L_padlock_cbc_encrypt_begin\n.globl\tpadlock_cfb_encrypt\n.type\tpadlock_cfb_encrypt,@function\n.align\t16\npadlock_cfb_encrypt:\n.L_padlock_cfb_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L030cfb_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L030cfb_abort\n\tleal\t.Lpadlock_saved_context-.L031cfb_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L031cfb_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\ttestl\t$32,(%edx)\n\tjnz\t.L032cfb_aligned\n\ttestl\t$15,%edi\n\tsetz\t%al\n\ttestl\t$15,%esi\n\tsetz\t%bl\n\ttestl\t%ebx,%eax\n\tjnz\t.L032cfb_aligned\n\tnegl\t%eax\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:15", "text": "leal\t.Lpadlock_saved_context-.L031cfb_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L031cfb_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\ttestl\t$32,(%edx)\n\tjnz\t.L032cfb_aligned\n\ttestl\t$15,%edi\n\tsetz\t%al\n\ttestl\t$15,%esi\n\tsetz\t%bl\n\ttestl\t%ebx,%eax\n\tjnz\t.L032cfb_aligned\n\tnegl\t%eax\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp\n\tcmpl\t%ebx,%ecx\n\tcmovcl\t%ecx,%ebx\n\tandl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tnegl\t%eax\n\tandl\t$511,%ebx\n\tleal\t(%eax,%ebp,1),%esp\n\tmovl\t$512,%eax\n\tcmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tjmp\t.L033cfb_loop\n.align\t16\n.L033cfb_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L034cfb_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L034cfb_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,224\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:16", "text": "movl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L034cfb_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L034cfb_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,224\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi\n\tjz\t.L035cfb_out_aligned\n\tmovl\t%ebx,%ecx\n\tleal\t(%esp),%esi\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n.L035cfb_out_aligned:\n\tmovl\t4(%ebp),%esi\n\tmovl\t8(%ebp),%ecx\n\taddl\t%ebx,%edi\n\taddl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjnz\t.L033cfb_loop\n\tcmpl\t%ebp,%esp\n\tje\t.L036cfb_done\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L037cfb_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L037cfb_bzero\n.L036cfb_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L038cfb_exit\n.align\t16\n.L032cfb_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,224\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n.L038cfb_exit:\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n.L030cfb_abort:\n\tpopl\t%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:17", "text": "leal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L037cfb_bzero\n.L036cfb_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L038cfb_exit\n.align\t16\n.L032cfb_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,224\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n.L038cfb_exit:\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n.L030cfb_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpadlock_cfb_encrypt,.-.L_padlock_cfb_encrypt_begin\n.globl\tpadlock_ofb_encrypt\n.type\tpadlock_ofb_encrypt,@function\n.align\t16\npadlock_ofb_encrypt:\n.L_padlock_ofb_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L039ofb_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L039ofb_abort\n\tleal\t.Lpadlock_saved_context-.L040ofb_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L040ofb_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\ttestl\t$32,(%edx)\n\tjnz\t.L041ofb_aligned\n\ttestl\t$15,%edi\n\tsetz\t%al\n\ttestl\t$15,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:18", "text": "movl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L039ofb_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L039ofb_abort\n\tleal\t.Lpadlock_saved_context-.L040ofb_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L040ofb_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\ttestl\t$32,(%edx)\n\tjnz\t.L041ofb_aligned\n\ttestl\t$15,%edi\n\tsetz\t%al\n\ttestl\t$15,%esi\n\tsetz\t%bl\n\ttestl\t%ebx,%eax\n\tjnz\t.L041ofb_aligned\n\tnegl\t%eax\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp\n\tcmpl\t%ebx,%ecx\n\tcmovcl\t%ecx,%ebx\n\tandl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tnegl\t%eax\n\tandl\t$511,%ebx\n\tleal\t(%eax,%ebp,1),%esp\n\tmovl\t$512,%eax\n\tcmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tjmp\t.L042ofb_loop\n.align\t16\n.L042ofb_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L043ofb_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L043ofb_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:19", "text": "jmp\t.L042ofb_loop\n.align\t16\n.L042ofb_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\ttestl\t$15,%edi\n\tcmovnzl\t%esp,%edi\n\ttestl\t$15,%esi\n\tjz\t.L043ofb_inp_aligned\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n\tmovl\t%ebx,%ecx\n\tmovl\t%edi,%esi\n.L043ofb_inp_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,232\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\ttestl\t$15,%edi\n\tjz\t.L044ofb_out_aligned\n\tmovl\t%ebx,%ecx\n\tleal\t(%esp),%esi\n\tshrl\t$2,%ecx\n.byte\t243,165\n\tsubl\t%ebx,%edi\n.L044ofb_out_aligned:\n\tmovl\t4(%ebp),%esi\n\tmovl\t8(%ebp),%ecx\n\taddl\t%ebx,%edi\n\taddl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjnz\t.L042ofb_loop\n\tcmpl\t%ebp,%esp\n\tje\t.L045ofb_done\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L046ofb_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L046ofb_bzero\n.L045ofb_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L047ofb_exit\n.align\t16\n.L041ofb_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,232", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:20", "text": "jnz\t.L042ofb_loop\n\tcmpl\t%ebp,%esp\n\tje\t.L045ofb_done\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L046ofb_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L046ofb_bzero\n.L045ofb_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tjmp\t.L047ofb_exit\n.align\t16\n.L041ofb_aligned:\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,232\n\tmovaps\t(%eax),%xmm0\n\tmovaps\t%xmm0,-16(%edx)\n.L047ofb_exit:\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n.L039ofb_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpadlock_ofb_encrypt,.-.L_padlock_ofb_encrypt_begin\n.globl\tpadlock_ctr32_encrypt\n.type\tpadlock_ctr32_encrypt,@function\n.align\t16\npadlock_ctr32_encrypt:\n.L_padlock_ctr32_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L048ctr32_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L048ctr32_abort\n\tleal\t.Lpadlock_saved_context-.L049ctr32_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L049ctr32_pic_point:\n\tleal\t16(%edx),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:21", "text": "#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edx\n\tmovl\t32(%esp),%ecx\n\ttestl\t$15,%edx\n\tjnz\t.L048ctr32_abort\n\ttestl\t$15,%ecx\n\tjnz\t.L048ctr32_abort\n\tleal\t.Lpadlock_saved_context-.L049ctr32_pic_point,%eax\n\tpushfl\n\tcld\n\tcall\t_padlock_verify_ctx\n.L049ctr32_pic_point:\n\tleal\t16(%edx),%edx\n\txorl\t%eax,%eax\n\tmovq\t-16(%edx),%mm0\n\tmovl\t$512,%ebx\n\tnotl\t%eax\n\tleal\t-24(%esp),%ebp\n\tcmpl\t%ebx,%ecx\n\tcmovcl\t%ecx,%ebx\n\tandl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tnegl\t%eax\n\tandl\t$511,%ebx\n\tleal\t(%eax,%ebp,1),%esp\n\tmovl\t$512,%eax\n\tcmovzl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\tandl\t$-16,%ebp\n\tandl\t$-16,%esp\n\tmovl\t%eax,16(%ebp)\n\tjmp\t.L050ctr32_loop\n.align\t16\n.L050ctr32_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\tmovl\t-4(%edx),%ecx\n\txorl\t%edi,%edi\n\tmovl\t-8(%edx),%eax\n.L051ctr32_prepare:\n\tmovl\t%ecx,12(%esp,%edi,1)\n\tbswap\t%ecx\n\tmovq\t%mm0,(%esp,%edi,1)\n\tincl\t%ecx\n\tmovl\t%eax,8(%esp,%edi,1)\n\tbswap\t%ecx\n\tleal\t16(%edi),%edi\n\tcmpl\t%ebx,%edi\n\tjb\t.L051ctr32_prepare\n\tmovl\t%ecx,-4(%edx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:22", "text": ".L050ctr32_loop:\n\tmovl\t%edi,(%ebp)\n\tmovl\t%esi,4(%ebp)\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ebx,%ecx\n\tmovl\t%ebx,12(%ebp)\n\tmovl\t-4(%edx),%ecx\n\txorl\t%edi,%edi\n\tmovl\t-8(%edx),%eax\n.L051ctr32_prepare:\n\tmovl\t%ecx,12(%esp,%edi,1)\n\tbswap\t%ecx\n\tmovq\t%mm0,(%esp,%edi,1)\n\tincl\t%ecx\n\tmovl\t%eax,8(%esp,%edi,1)\n\tbswap\t%ecx\n\tleal\t16(%edi),%edi\n\tcmpl\t%ebx,%edi\n\tjb\t.L051ctr32_prepare\n\tmovl\t%ecx,-4(%edx)\n\tleal\t(%esp),%esi\n\tleal\t(%esp),%edi\n\tmovl\t%ebx,%ecx\n\tleal\t-16(%edx),%eax\n\tleal\t16(%edx),%ebx\n\tshrl\t$4,%ecx\n.byte\t243,15,167,200\n\tmovl\t(%ebp),%edi\n\tmovl\t12(%ebp),%ebx\n\tmovl\t4(%ebp),%esi\n\txorl\t%ecx,%ecx\n.L052ctr32_xor:\n\tmovups\t(%esi,%ecx,1),%xmm1\n\tleal\t16(%ecx),%ecx\n\tpxor\t-16(%esp,%ecx,1),%xmm1\n\tmovups\t%xmm1,-16(%edi,%ecx,1)\n\tcmpl\t%ebx,%ecx\n\tjb\t.L052ctr32_xor\n\tmovl\t8(%ebp),%ecx\n\taddl\t%ebx,%edi\n\taddl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjnz\t.L050ctr32_loop\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L053ctr32_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L053ctr32_bzero\n.L054ctr32_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n\temms\n.L048ctr32_abort:\n\tpopl\t%edi\n\tpopl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:23", "text": "addl\t%ebx,%esi\n\tsubl\t%ebx,%ecx\n\tmovl\t$512,%ebx\n\tjnz\t.L050ctr32_loop\n\tpxor\t%xmm0,%xmm0\n\tleal\t(%esp),%eax\n.L053ctr32_bzero:\n\tmovaps\t%xmm0,(%eax)\n\tleal\t16(%eax),%eax\n\tcmpl\t%eax,%ebp\n\tja\t.L053ctr32_bzero\n.L054ctr32_done:\n\tmovl\t16(%ebp),%ebp\n\tleal\t24(%ebp),%esp\n\tmovl\t$1,%eax\n\tleal\t4(%esp),%esp\n\temms\n.L048ctr32_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpadlock_ctr32_encrypt,.-.L_padlock_ctr32_encrypt_begin\n.globl\tpadlock_xstore\n.type\tpadlock_xstore,@function\n.align\t16\npadlock_xstore:\n.L_padlock_xstore_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tmovl\t8(%esp),%edi\n\tmovl\t12(%esp),%edx\n.byte\t15,167,192\n\tpopl\t%edi\n\tret\n.size\tpadlock_xstore,.-.L_padlock_xstore_begin\n.type\t_win32_segv_handler,@function\n.align\t16\n_win32_segv_handler:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t$1,%eax\n\tmovl\t4(%esp),%edx\n\tmovl\t12(%esp),%ecx\n\tcmpl\t$3221225477,(%edx)\n\tjne\t.L055ret\n\taddl\t$4,184(%ecx)\n\tmovl\t$0,%eax\n.L055ret:\n\tret\n.size\t_win32_segv_handler,.-_win32_segv_handler\n.globl\tpadlock_sha1_oneshot", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:24", "text": ".size\tpadlock_xstore,.-.L_padlock_xstore_begin\n.type\t_win32_segv_handler,@function\n.align\t16\n_win32_segv_handler:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t$1,%eax\n\tmovl\t4(%esp),%edx\n\tmovl\t12(%esp),%ecx\n\tcmpl\t$3221225477,(%edx)\n\tjne\t.L055ret\n\taddl\t$4,184(%ecx)\n\tmovl\t$0,%eax\n.L055ret:\n\tret\n.size\t_win32_segv_handler,.-_win32_segv_handler\n.globl\tpadlock_sha1_oneshot\n.type\tpadlock_sha1_oneshot,@function\n.align\t16\npadlock_sha1_oneshot:\n.L_padlock_sha1_oneshot_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\txorl\t%eax,%eax\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%ecx\n\tmovl\t%esp,%edx\n\taddl\t$-128,%esp\n\tmovups\t(%edi),%xmm0\n\tandl\t$-16,%esp\n\tmovl\t16(%edi),%eax\n\tmovaps\t%xmm0,(%esp)\n\tmovl\t%esp,%edi\n\tmovl\t%eax,16(%esp)\n\txorl\t%eax,%eax\n.byte\t243,15,166,200\n\tmovaps\t(%esp),%xmm0\n\tmovl\t16(%esp),%eax\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovl\t%eax,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha1_oneshot,.-.L_padlock_sha1_oneshot_begin\n.globl\tpadlock_sha1_blocks\n.type\tpadlock_sha1_blocks,@function\n.align\t16\npadlock_sha1_blocks:\n.L_padlock_sha1_blocks_begin:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:25", "text": "movaps\t%xmm0,(%esp)\n\tmovl\t%esp,%edi\n\tmovl\t%eax,16(%esp)\n\txorl\t%eax,%eax\n.byte\t243,15,166,200\n\tmovaps\t(%esp),%xmm0\n\tmovl\t16(%esp),%eax\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovl\t%eax,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha1_oneshot,.-.L_padlock_sha1_oneshot_begin\n.globl\tpadlock_sha1_blocks\n.type\tpadlock_sha1_blocks,@function\n.align\t16\npadlock_sha1_blocks:\n.L_padlock_sha1_blocks_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t%esp,%edx\n\tmovl\t20(%esp),%ecx\n\taddl\t$-128,%esp\n\tmovups\t(%edi),%xmm0\n\tandl\t$-16,%esp\n\tmovl\t16(%edi),%eax\n\tmovaps\t%xmm0,(%esp)\n\tmovl\t%esp,%edi\n\tmovl\t%eax,16(%esp)\n\tmovl\t$-1,%eax\n.byte\t243,15,166,200\n\tmovaps\t(%esp),%xmm0\n\tmovl\t16(%esp),%eax\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovl\t%eax,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha1_blocks,.-.L_padlock_sha1_blocks_begin\n.globl\tpadlock_sha256_oneshot\n.type\tpadlock_sha256_oneshot,@function\n.align\t16\npadlock_sha256_oneshot:\n.L_padlock_sha256_oneshot_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:26", "text": "movaps\t(%esp),%xmm0\n\tmovl\t16(%esp),%eax\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovl\t%eax,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha1_blocks,.-.L_padlock_sha1_blocks_begin\n.globl\tpadlock_sha256_oneshot\n.type\tpadlock_sha256_oneshot,@function\n.align\t16\npadlock_sha256_oneshot:\n.L_padlock_sha256_oneshot_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\txorl\t%eax,%eax\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%ecx\n\tmovl\t%esp,%edx\n\taddl\t$-128,%esp\n\tmovups\t(%edi),%xmm0\n\tandl\t$-16,%esp\n\tmovups\t16(%edi),%xmm1\n\tmovaps\t%xmm0,(%esp)\n\tmovl\t%esp,%edi\n\tmovaps\t%xmm1,16(%esp)\n\txorl\t%eax,%eax\n.byte\t243,15,166,208\n\tmovaps\t(%esp),%xmm0\n\tmovaps\t16(%esp),%xmm1\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovups\t%xmm1,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha256_oneshot,.-.L_padlock_sha256_oneshot_begin\n.globl\tpadlock_sha256_blocks\n.type\tpadlock_sha256_blocks,@function\n.align\t16\npadlock_sha256_blocks:\n.L_padlock_sha256_blocks_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:27", "text": "movups\t%xmm0,(%edi)\n\tmovups\t%xmm1,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha256_oneshot,.-.L_padlock_sha256_oneshot_begin\n.globl\tpadlock_sha256_blocks\n.type\tpadlock_sha256_blocks,@function\n.align\t16\npadlock_sha256_blocks:\n.L_padlock_sha256_blocks_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%ecx\n\tmovl\t%esp,%edx\n\taddl\t$-128,%esp\n\tmovups\t(%edi),%xmm0\n\tandl\t$-16,%esp\n\tmovups\t16(%edi),%xmm1\n\tmovaps\t%xmm0,(%esp)\n\tmovl\t%esp,%edi\n\tmovaps\t%xmm1,16(%esp)\n\tmovl\t$-1,%eax\n.byte\t243,15,166,208\n\tmovaps\t(%esp),%xmm0\n\tmovaps\t16(%esp),%xmm1\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovups\t%xmm1,16(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha256_blocks,.-.L_padlock_sha256_blocks_begin\n.globl\tpadlock_sha512_blocks\n.type\tpadlock_sha512_blocks,@function\n.align\t16\npadlock_sha512_blocks:\n.L_padlock_sha512_blocks_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%ecx\n\tmovl\t%esp,%edx\n\taddl\t$-128,%esp\n\tmovups\t(%edi),%xmm0\n\tandl\t$-16,%esp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:28", "text": ".size\tpadlock_sha256_blocks,.-.L_padlock_sha256_blocks_begin\n.globl\tpadlock_sha512_blocks\n.type\tpadlock_sha512_blocks,@function\n.align\t16\npadlock_sha512_blocks:\n.L_padlock_sha512_blocks_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%ecx\n\tmovl\t%esp,%edx\n\taddl\t$-128,%esp\n\tmovups\t(%edi),%xmm0\n\tandl\t$-16,%esp\n\tmovups\t16(%edi),%xmm1\n\tmovups\t32(%edi),%xmm2\n\tmovups\t48(%edi),%xmm3\n\tmovaps\t%xmm0,(%esp)\n\tmovl\t%esp,%edi\n\tmovaps\t%xmm1,16(%esp)\n\tmovaps\t%xmm2,32(%esp)\n\tmovaps\t%xmm3,48(%esp)\n.byte\t243,15,166,224\n\tmovaps\t(%esp),%xmm0\n\tmovaps\t16(%esp),%xmm1\n\tmovaps\t32(%esp),%xmm2\n\tmovaps\t48(%esp),%xmm3\n\tmovl\t%edx,%esp\n\tmovl\t12(%esp),%edi\n\tmovups\t%xmm0,(%edi)\n\tmovups\t%xmm1,16(%edi)\n\tmovups\t%xmm2,32(%edi)\n\tmovups\t%xmm3,48(%edi)\n\tpopl\t%esi\n\tpopl\t%edi\n\tret\n.size\tpadlock_sha512_blocks,.-.L_padlock_sha512_blocks_begin\n.byte\t86,73,65,32,80,97,100,108,111,99,107,32,120,56,54,32\n.byte\t109,111,100,117,108,101,44,32,67,82,89,80,84,79,71,65\n.byte\t77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101\n.byte\t110,115,115,108,46,111,114,103,62,0\n.align\t16\n.data\n.align\t4\n.Lpadlock_saved_context:\n.long\t0\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S:29", "text": "popl\t%edi\n\tret\n.size\tpadlock_sha512_blocks,.-.L_padlock_sha512_blocks_begin\n.byte\t86,73,65,32,80,97,100,108,111,99,107,32,120,56,54,32\n.byte\t109,111,100,117,108,101,44,32,67,82,89,80,84,79,71,65\n.byte\t77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101\n.byte\t110,115,115,108,46,111,114,103,62,0\n.align\t16\n.data\n.align\t4\n.Lpadlock_saved_context:\n.long\t0\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/e_padlock-x86.S", "line_start": 1121, "line_end": 1149}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ec.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nEC_SRCS += \\\necp_nistz256-x86.S\n\nECCPPFLAGS+= -DOPENSSL_NO_EC_NISTP_64_GCC_128\nECCPPFLAGS+= -DECP_NISTZ256_ASM\n\nECNI = yes\n.include \"../../ec.inc\"", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ec.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ec.inc", "line_start": 1, "line_end": 9}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tgcm_gmult_4bit_x86\n.type\tgcm_gmult_4bit_x86,@function\n.align\t16\ngcm_gmult_4bit_x86:\n.L_gcm_gmult_4bit_x86_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tsubl\t$84,%esp\n\tmovl\t104(%esp),%edi\n\tmovl\t108(%esp),%esi\n\tmovl\t(%edi),%ebp\n\tmovl\t4(%edi),%edx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%ebx\n\tmovl\t$0,16(%esp)\n\tmovl\t$471859200,20(%esp)\n\tmovl\t$943718400,24(%esp)\n\tmovl\t$610271232,28(%esp)\n\tmovl\t$1887436800,32(%esp)\n\tmovl\t$1822425088,36(%esp)\n\tmovl\t$1220542464,40(%esp)\n\tmovl\t$1423966208,44(%esp)\n\tmovl\t$3774873600,48(%esp)\n\tmovl\t$4246732800,52(%esp)\n\tmovl\t$3644850176,56(%esp)\n\tmovl\t$3311403008,60(%esp)\n\tmovl\t$2441084928,64(%esp)\n\tmovl\t$2376073216,68(%esp)\n\tmovl\t$2847932416,72(%esp)\n\tmovl\t$3051356160,76(%esp)\n\tmovl\t%ebp,(%esp)\n\tmovl\t%edx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tshrl\t$20,%ebx\n\tandl\t$240,%ebx\n\tmovl\t4(%esi,%ebx,1),%ebp\n\tmovl\t(%esi,%ebx,1),%edx\n\tmovl\t12(%esi,%ebx,1),%ecx\n\tmovl\t8(%esi,%ebx,1),%ebx\n\txorl\t%eax,%eax\n\tmovl\t$15,%edi\n\tjmp\t.L000x86_loop\n.align\t16\n.L000x86_loop:\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx\n\tandb\t$15,%al\n\tshrdl\t$4,%edx,%ecx\n\tshrdl\t$4,%ebp,%edx\n\tshrl\t$4,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:2", "text": "movl\t%edx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tshrl\t$20,%ebx\n\tandl\t$240,%ebx\n\tmovl\t4(%esi,%ebx,1),%ebp\n\tmovl\t(%esi,%ebx,1),%edx\n\tmovl\t12(%esi,%ebx,1),%ecx\n\tmovl\t8(%esi,%ebx,1),%ebx\n\txorl\t%eax,%eax\n\tmovl\t$15,%edi\n\tjmp\t.L000x86_loop\n.align\t16\n.L000x86_loop:\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx\n\tandb\t$15,%al\n\tshrdl\t$4,%edx,%ecx\n\tshrdl\t$4,%ebp,%edx\n\tshrl\t$4,%ebp\n\txorl\t16(%esp,%eax,4),%ebp\n\tmovb\t(%esp,%edi,1),%al\n\tandb\t$240,%al\n\txorl\t8(%esi,%eax,1),%ebx\n\txorl\t12(%esi,%eax,1),%ecx\n\txorl\t(%esi,%eax,1),%edx\n\txorl\t4(%esi,%eax,1),%ebp\n\tdecl\t%edi\n\tjs\t.L001x86_break\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx\n\tandb\t$15,%al\n\tshrdl\t$4,%edx,%ecx\n\tshrdl\t$4,%ebp,%edx\n\tshrl\t$4,%ebp\n\txorl\t16(%esp,%eax,4),%ebp\n\tmovb\t(%esp,%edi,1),%al\n\tshlb\t$4,%al\n\txorl\t8(%esi,%eax,1),%ebx\n\txorl\t12(%esi,%eax,1),%ecx\n\txorl\t(%esi,%eax,1),%edx\n\txorl\t4(%esi,%eax,1),%ebp\n\tjmp\t.L000x86_loop\n.align\t16\n.L001x86_break:\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tbswap\t%ebp\n\tmovl\t104(%esp),%edi\n\tmovl\t%ebx,12(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%ebp,(%edi)\n\taddl\t$84,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:3", "text": "xorl\t(%esi,%eax,1),%edx\n\txorl\t4(%esi,%eax,1),%ebp\n\tjmp\t.L000x86_loop\n.align\t16\n.L001x86_break:\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tbswap\t%ebp\n\tmovl\t104(%esp),%edi\n\tmovl\t%ebx,12(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%ebp,(%edi)\n\taddl\t$84,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_gmult_4bit_x86,.-.L_gcm_gmult_4bit_x86_begin\n.globl\tgcm_ghash_4bit_x86\n.type\tgcm_ghash_4bit_x86,@function\n.align\t16\ngcm_ghash_4bit_x86:\n.L_gcm_ghash_4bit_x86_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tsubl\t$84,%esp\n\tmovl\t104(%esp),%ebx\n\tmovl\t108(%esp),%esi\n\tmovl\t112(%esp),%edi\n\tmovl\t116(%esp),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t%ecx,116(%esp)\n\tmovl\t(%ebx),%ebp\n\tmovl\t4(%ebx),%edx\n\tmovl\t8(%ebx),%ecx\n\tmovl\t12(%ebx),%ebx\n\tmovl\t$0,16(%esp)\n\tmovl\t$471859200,20(%esp)\n\tmovl\t$943718400,24(%esp)\n\tmovl\t$610271232,28(%esp)\n\tmovl\t$1887436800,32(%esp)\n\tmovl\t$1822425088,36(%esp)\n\tmovl\t$1220542464,40(%esp)\n\tmovl\t$1423966208,44(%esp)\n\tmovl\t$3774873600,48(%esp)\n\tmovl\t$4246732800,52(%esp)\n\tmovl\t$3644850176,56(%esp)\n\tmovl\t$3311403008,60(%esp)\n\tmovl\t$2441084928,64(%esp)\n\tmovl\t$2376073216,68(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:4", "text": "addl\t%edi,%ecx\n\tmovl\t%ecx,116(%esp)\n\tmovl\t(%ebx),%ebp\n\tmovl\t4(%ebx),%edx\n\tmovl\t8(%ebx),%ecx\n\tmovl\t12(%ebx),%ebx\n\tmovl\t$0,16(%esp)\n\tmovl\t$471859200,20(%esp)\n\tmovl\t$943718400,24(%esp)\n\tmovl\t$610271232,28(%esp)\n\tmovl\t$1887436800,32(%esp)\n\tmovl\t$1822425088,36(%esp)\n\tmovl\t$1220542464,40(%esp)\n\tmovl\t$1423966208,44(%esp)\n\tmovl\t$3774873600,48(%esp)\n\tmovl\t$4246732800,52(%esp)\n\tmovl\t$3644850176,56(%esp)\n\tmovl\t$3311403008,60(%esp)\n\tmovl\t$2441084928,64(%esp)\n\tmovl\t$2376073216,68(%esp)\n\tmovl\t$2847932416,72(%esp)\n\tmovl\t$3051356160,76(%esp)\n.align\t16\n.L002x86_outer_loop:\n\txorl\t12(%edi),%ebx\n\txorl\t8(%edi),%ecx\n\txorl\t4(%edi),%edx\n\txorl\t(%edi),%ebp\n\tmovl\t%ebx,12(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,4(%esp)\n\tmovl\t%ebp,(%esp)\n\tshrl\t$20,%ebx\n\tandl\t$240,%ebx\n\tmovl\t4(%esi,%ebx,1),%ebp\n\tmovl\t(%esi,%ebx,1),%edx\n\tmovl\t12(%esi,%ebx,1),%ecx\n\tmovl\t8(%esi,%ebx,1),%ebx\n\txorl\t%eax,%eax\n\tmovl\t$15,%edi\n\tjmp\t.L003x86_loop\n.align\t16\n.L003x86_loop:\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx\n\tandb\t$15,%al\n\tshrdl\t$4,%edx,%ecx\n\tshrdl\t$4,%ebp,%edx\n\tshrl\t$4,%ebp\n\txorl\t16(%esp,%eax,4),%ebp\n\tmovb\t(%esp,%edi,1),%al\n\tandb\t$240,%al\n\txorl\t8(%esi,%eax,1),%ebx\n\txorl\t12(%esi,%eax,1),%ecx\n\txorl\t(%esi,%eax,1),%edx\n\txorl\t4(%esi,%eax,1),%ebp\n\tdecl\t%edi\n\tjs\t.L004x86_break\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:5", "text": "jmp\t.L003x86_loop\n.align\t16\n.L003x86_loop:\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx\n\tandb\t$15,%al\n\tshrdl\t$4,%edx,%ecx\n\tshrdl\t$4,%ebp,%edx\n\tshrl\t$4,%ebp\n\txorl\t16(%esp,%eax,4),%ebp\n\tmovb\t(%esp,%edi,1),%al\n\tandb\t$240,%al\n\txorl\t8(%esi,%eax,1),%ebx\n\txorl\t12(%esi,%eax,1),%ecx\n\txorl\t(%esi,%eax,1),%edx\n\txorl\t4(%esi,%eax,1),%ebp\n\tdecl\t%edi\n\tjs\t.L004x86_break\n\tmovb\t%bl,%al\n\tshrdl\t$4,%ecx,%ebx\n\tandb\t$15,%al\n\tshrdl\t$4,%edx,%ecx\n\tshrdl\t$4,%ebp,%edx\n\tshrl\t$4,%ebp\n\txorl\t16(%esp,%eax,4),%ebp\n\tmovb\t(%esp,%edi,1),%al\n\tshlb\t$4,%al\n\txorl\t8(%esi,%eax,1),%ebx\n\txorl\t12(%esi,%eax,1),%ecx\n\txorl\t(%esi,%eax,1),%edx\n\txorl\t4(%esi,%eax,1),%ebp\n\tjmp\t.L003x86_loop\n.align\t16\n.L004x86_break:\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tbswap\t%ebp\n\tmovl\t112(%esp),%edi\n\tleal\t16(%edi),%edi\n\tcmpl\t116(%esp),%edi\n\tmovl\t%edi,112(%esp)\n\tjb\t.L002x86_outer_loop\n\tmovl\t104(%esp),%edi\n\tmovl\t%ebx,12(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%ebp,(%edi)\n\taddl\t$84,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_ghash_4bit_x86,.-.L_gcm_ghash_4bit_x86_begin\n.globl\tgcm_gmult_4bit_mmx\n.type\tgcm_gmult_4bit_mmx,@function\n.align\t16\ngcm_gmult_4bit_mmx:\n.L_gcm_gmult_4bit_mmx_begin:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:6", "text": "cmpl\t116(%esp),%edi\n\tmovl\t%edi,112(%esp)\n\tjb\t.L002x86_outer_loop\n\tmovl\t104(%esp),%edi\n\tmovl\t%ebx,12(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%ebp,(%edi)\n\taddl\t$84,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_ghash_4bit_x86,.-.L_gcm_ghash_4bit_x86_begin\n.globl\tgcm_gmult_4bit_mmx\n.type\tgcm_gmult_4bit_mmx,@function\n.align\t16\ngcm_gmult_4bit_mmx:\n.L_gcm_gmult_4bit_mmx_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tcall\t.L005pic_point\n.L005pic_point:\n\tpopl\t%eax\n\tleal\t.Lrem_4bit-.L005pic_point(%eax),%eax\n\tmovzbl\t15(%edi),%ebx\n\txorl\t%ecx,%ecx\n\tmovl\t%ebx,%edx\n\tmovb\t%dl,%cl\n\tmovl\t$14,%ebp\n\tshlb\t$4,%cl\n\tandl\t$240,%edx\n\tmovq\t8(%esi,%ecx,1),%mm0\n\tmovq\t(%esi,%ecx,1),%mm1\n\tmovd\t%mm0,%ebx\n\tjmp\t.L006mmx_loop\n.align\t16\n.L006mmx_loop:\n\tpsrlq\t$4,%mm0\n\tandl\t$15,%ebx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%edx,1),%mm0\n\tmovb\t(%edi,%ebp,1),%cl\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tdecl\t%ebp\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%edx,1),%mm1\n\tmovl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:7", "text": "shlb\t$4,%cl\n\tandl\t$240,%edx\n\tmovq\t8(%esi,%ecx,1),%mm0\n\tmovq\t(%esi,%ecx,1),%mm1\n\tmovd\t%mm0,%ebx\n\tjmp\t.L006mmx_loop\n.align\t16\n.L006mmx_loop:\n\tpsrlq\t$4,%mm0\n\tandl\t$15,%ebx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%edx,1),%mm0\n\tmovb\t(%edi,%ebp,1),%cl\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tdecl\t%ebp\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%edx,1),%mm1\n\tmovl\t%ecx,%edx\n\tpxor\t%mm2,%mm0\n\tjs\t.L007mmx_break\n\tshlb\t$4,%cl\n\tandl\t$15,%ebx\n\tpsrlq\t$4,%mm0\n\tandl\t$240,%edx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%ecx,1),%mm0\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%ecx,1),%mm1\n\tpxor\t%mm2,%mm0\n\tjmp\t.L006mmx_loop\n.align\t16\n.L007mmx_break:\n\tshlb\t$4,%cl\n\tandl\t$15,%ebx\n\tpsrlq\t$4,%mm0\n\tandl\t$240,%edx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%ecx,1),%mm0\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%ecx,1),%mm1\n\tpxor\t%mm2,%mm0\n\tpsrlq\t$4,%mm0\n\tandl\t$15,%ebx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%edx,1),%mm0\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%edx,1),%mm1\n\tpxor\t%mm2,%mm0\n\tpsrlq\t$32,%mm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:8", "text": "andl\t$240,%edx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%ecx,1),%mm0\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%ecx,1),%mm1\n\tpxor\t%mm2,%mm0\n\tpsrlq\t$4,%mm0\n\tandl\t$15,%ebx\n\tmovq\t%mm1,%mm2\n\tpsrlq\t$4,%mm1\n\tpxor\t8(%esi,%edx,1),%mm0\n\tpsllq\t$60,%mm2\n\tpxor\t(%eax,%ebx,8),%mm1\n\tmovd\t%mm0,%ebx\n\tpxor\t(%esi,%edx,1),%mm1\n\tpxor\t%mm2,%mm0\n\tpsrlq\t$32,%mm0\n\tmovd\t%mm1,%edx\n\tpsrlq\t$32,%mm1\n\tmovd\t%mm0,%ecx\n\tmovd\t%mm1,%ebp\n\tbswap\t%ebx\n\tbswap\t%edx\n\tbswap\t%ecx\n\tbswap\t%ebp\n\temms\n\tmovl\t%ebx,12(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%ebp,(%edi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_gmult_4bit_mmx,.-.L_gcm_gmult_4bit_mmx_begin\n.globl\tgcm_ghash_4bit_mmx\n.type\tgcm_ghash_4bit_mmx,@function\n.align\t16\ngcm_ghash_4bit_mmx:\n.L_gcm_ghash_4bit_mmx_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%eax\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ecx\n\tmovl\t32(%esp),%edx\n\tmovl\t%esp,%ebp\n\tcall\t.L008pic_point\n.L008pic_point:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:9", "text": ".type\tgcm_ghash_4bit_mmx,@function\n.align\t16\ngcm_ghash_4bit_mmx:\n.L_gcm_ghash_4bit_mmx_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%eax\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ecx\n\tmovl\t32(%esp),%edx\n\tmovl\t%esp,%ebp\n\tcall\t.L008pic_point\n.L008pic_point:\n\tpopl\t%esi\n\tleal\t.Lrem_8bit-.L008pic_point(%esi),%esi\n\tsubl\t$544,%esp\n\tandl\t$-64,%esp\n\tsubl\t$16,%esp\n\taddl\t%ecx,%edx\n\tmovl\t%eax,544(%esp)\n\tmovl\t%edx,552(%esp)\n\tmovl\t%ebp,556(%esp)\n\taddl\t$128,%ebx\n\tleal\t144(%esp),%edi\n\tleal\t400(%esp),%ebp\n\tmovl\t-120(%ebx),%edx\n\tmovq\t-120(%ebx),%mm0\n\tmovq\t-128(%ebx),%mm3\n\tshll\t$4,%edx\n\tmovb\t%dl,(%esp)\n\tmovl\t-104(%ebx),%edx\n\tmovq\t-104(%ebx),%mm2\n\tmovq\t-112(%ebx),%mm5\n\tmovq\t%mm0,-128(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,(%edi)\n\tmovq\t%mm3,%mm7\n\tpsrlq\t$4,%mm3\n\tshll\t$4,%edx\n\tmovb\t%dl,1(%esp)\n\tmovl\t-88(%ebx),%edx\n\tmovq\t-88(%ebx),%mm1\n\tpsllq\t$60,%mm7\n\tmovq\t-96(%ebx),%mm4\n\tpor\t%mm7,%mm0\n\tmovq\t%mm2,-120(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,8(%edi)\n\tmovq\t%mm5,%mm6\n\tmovq\t%mm0,-128(%ebp)\n\tpsrlq\t$4,%mm5\n\tmovq\t%mm3,(%ebp)\n\tshll\t$4,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:10", "text": "movq\t%mm0,-128(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,(%edi)\n\tmovq\t%mm3,%mm7\n\tpsrlq\t$4,%mm3\n\tshll\t$4,%edx\n\tmovb\t%dl,1(%esp)\n\tmovl\t-88(%ebx),%edx\n\tmovq\t-88(%ebx),%mm1\n\tpsllq\t$60,%mm7\n\tmovq\t-96(%ebx),%mm4\n\tpor\t%mm7,%mm0\n\tmovq\t%mm2,-120(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,8(%edi)\n\tmovq\t%mm5,%mm6\n\tmovq\t%mm0,-128(%ebp)\n\tpsrlq\t$4,%mm5\n\tmovq\t%mm3,(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,2(%esp)\n\tmovl\t-72(%ebx),%edx\n\tmovq\t-72(%ebx),%mm0\n\tpsllq\t$60,%mm6\n\tmovq\t-80(%ebx),%mm3\n\tpor\t%mm6,%mm2\n\tmovq\t%mm1,-112(%edi)\n\tpsrlq\t$4,%mm1\n\tmovq\t%mm4,16(%edi)\n\tmovq\t%mm4,%mm7\n\tmovq\t%mm2,-120(%ebp)\n\tpsrlq\t$4,%mm4\n\tmovq\t%mm5,8(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,3(%esp)\n\tmovl\t-56(%ebx),%edx\n\tmovq\t-56(%ebx),%mm2\n\tpsllq\t$60,%mm7\n\tmovq\t-64(%ebx),%mm5\n\tpor\t%mm7,%mm1\n\tmovq\t%mm0,-104(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,24(%edi)\n\tmovq\t%mm3,%mm6\n\tmovq\t%mm1,-112(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,16(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,4(%esp)\n\tmovl\t-40(%ebx),%edx\n\tmovq\t-40(%ebx),%mm1\n\tpsllq\t$60,%mm6\n\tmovq\t-48(%ebx),%mm4\n\tpor\t%mm6,%mm0\n\tmovq\t%mm2,-96(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,32(%edi)\n\tmovq\t%mm5,%mm7\n\tmovq\t%mm0,-104(%ebp)\n\tpsrlq\t$4,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:11", "text": "movq\t%mm0,-104(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,24(%edi)\n\tmovq\t%mm3,%mm6\n\tmovq\t%mm1,-112(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,16(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,4(%esp)\n\tmovl\t-40(%ebx),%edx\n\tmovq\t-40(%ebx),%mm1\n\tpsllq\t$60,%mm6\n\tmovq\t-48(%ebx),%mm4\n\tpor\t%mm6,%mm0\n\tmovq\t%mm2,-96(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,32(%edi)\n\tmovq\t%mm5,%mm7\n\tmovq\t%mm0,-104(%ebp)\n\tpsrlq\t$4,%mm5\n\tmovq\t%mm3,24(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,5(%esp)\n\tmovl\t-24(%ebx),%edx\n\tmovq\t-24(%ebx),%mm0\n\tpsllq\t$60,%mm7\n\tmovq\t-32(%ebx),%mm3\n\tpor\t%mm7,%mm2\n\tmovq\t%mm1,-88(%edi)\n\tpsrlq\t$4,%mm1\n\tmovq\t%mm4,40(%edi)\n\tmovq\t%mm4,%mm6\n\tmovq\t%mm2,-96(%ebp)\n\tpsrlq\t$4,%mm4\n\tmovq\t%mm5,32(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,6(%esp)\n\tmovl\t-8(%ebx),%edx\n\tmovq\t-8(%ebx),%mm2\n\tpsllq\t$60,%mm6\n\tmovq\t-16(%ebx),%mm5\n\tpor\t%mm6,%mm1\n\tmovq\t%mm0,-80(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,48(%edi)\n\tmovq\t%mm3,%mm7\n\tmovq\t%mm1,-88(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,40(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,7(%esp)\n\tmovl\t8(%ebx),%edx\n\tmovq\t8(%ebx),%mm1\n\tpsllq\t$60,%mm7\n\tmovq\t(%ebx),%mm4\n\tpor\t%mm7,%mm0\n\tmovq\t%mm2,-72(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,56(%edi)\n\tmovq\t%mm5,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:12", "text": "movq\t-16(%ebx),%mm5\n\tpor\t%mm6,%mm1\n\tmovq\t%mm0,-80(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,48(%edi)\n\tmovq\t%mm3,%mm7\n\tmovq\t%mm1,-88(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,40(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,7(%esp)\n\tmovl\t8(%ebx),%edx\n\tmovq\t8(%ebx),%mm1\n\tpsllq\t$60,%mm7\n\tmovq\t(%ebx),%mm4\n\tpor\t%mm7,%mm0\n\tmovq\t%mm2,-72(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,56(%edi)\n\tmovq\t%mm5,%mm6\n\tmovq\t%mm0,-80(%ebp)\n\tpsrlq\t$4,%mm5\n\tmovq\t%mm3,48(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,8(%esp)\n\tmovl\t24(%ebx),%edx\n\tmovq\t24(%ebx),%mm0\n\tpsllq\t$60,%mm6\n\tmovq\t16(%ebx),%mm3\n\tpor\t%mm6,%mm2\n\tmovq\t%mm1,-64(%edi)\n\tpsrlq\t$4,%mm1\n\tmovq\t%mm4,64(%edi)\n\tmovq\t%mm4,%mm7\n\tmovq\t%mm2,-72(%ebp)\n\tpsrlq\t$4,%mm4\n\tmovq\t%mm5,56(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,9(%esp)\n\tmovl\t40(%ebx),%edx\n\tmovq\t40(%ebx),%mm2\n\tpsllq\t$60,%mm7\n\tmovq\t32(%ebx),%mm5\n\tpor\t%mm7,%mm1\n\tmovq\t%mm0,-56(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,72(%edi)\n\tmovq\t%mm3,%mm6\n\tmovq\t%mm1,-64(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,64(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,10(%esp)\n\tmovl\t56(%ebx),%edx\n\tmovq\t56(%ebx),%mm1\n\tpsllq\t$60,%mm6\n\tmovq\t48(%ebx),%mm4\n\tpor\t%mm6,%mm0\n\tmovq\t%mm2,-48(%edi)\n\tpsrlq\t$4,%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:13", "text": "movq\t40(%ebx),%mm2\n\tpsllq\t$60,%mm7\n\tmovq\t32(%ebx),%mm5\n\tpor\t%mm7,%mm1\n\tmovq\t%mm0,-56(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,72(%edi)\n\tmovq\t%mm3,%mm6\n\tmovq\t%mm1,-64(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,64(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,10(%esp)\n\tmovl\t56(%ebx),%edx\n\tmovq\t56(%ebx),%mm1\n\tpsllq\t$60,%mm6\n\tmovq\t48(%ebx),%mm4\n\tpor\t%mm6,%mm0\n\tmovq\t%mm2,-48(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,80(%edi)\n\tmovq\t%mm5,%mm7\n\tmovq\t%mm0,-56(%ebp)\n\tpsrlq\t$4,%mm5\n\tmovq\t%mm3,72(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,11(%esp)\n\tmovl\t72(%ebx),%edx\n\tmovq\t72(%ebx),%mm0\n\tpsllq\t$60,%mm7\n\tmovq\t64(%ebx),%mm3\n\tpor\t%mm7,%mm2\n\tmovq\t%mm1,-40(%edi)\n\tpsrlq\t$4,%mm1\n\tmovq\t%mm4,88(%edi)\n\tmovq\t%mm4,%mm6\n\tmovq\t%mm2,-48(%ebp)\n\tpsrlq\t$4,%mm4\n\tmovq\t%mm5,80(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,12(%esp)\n\tmovl\t88(%ebx),%edx\n\tmovq\t88(%ebx),%mm2\n\tpsllq\t$60,%mm6\n\tmovq\t80(%ebx),%mm5\n\tpor\t%mm6,%mm1\n\tmovq\t%mm0,-32(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,96(%edi)\n\tmovq\t%mm3,%mm7\n\tmovq\t%mm1,-40(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,88(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,13(%esp)\n\tmovl\t104(%ebx),%edx\n\tmovq\t104(%ebx),%mm1\n\tpsllq\t$60,%mm7\n\tmovq\t96(%ebx),%mm4\n\tpor\t%mm7,%mm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:14", "text": "movb\t%dl,12(%esp)\n\tmovl\t88(%ebx),%edx\n\tmovq\t88(%ebx),%mm2\n\tpsllq\t$60,%mm6\n\tmovq\t80(%ebx),%mm5\n\tpor\t%mm6,%mm1\n\tmovq\t%mm0,-32(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,96(%edi)\n\tmovq\t%mm3,%mm7\n\tmovq\t%mm1,-40(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,88(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,13(%esp)\n\tmovl\t104(%ebx),%edx\n\tmovq\t104(%ebx),%mm1\n\tpsllq\t$60,%mm7\n\tmovq\t96(%ebx),%mm4\n\tpor\t%mm7,%mm0\n\tmovq\t%mm2,-24(%edi)\n\tpsrlq\t$4,%mm2\n\tmovq\t%mm5,104(%edi)\n\tmovq\t%mm5,%mm6\n\tmovq\t%mm0,-32(%ebp)\n\tpsrlq\t$4,%mm5\n\tmovq\t%mm3,96(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,14(%esp)\n\tmovl\t120(%ebx),%edx\n\tmovq\t120(%ebx),%mm0\n\tpsllq\t$60,%mm6\n\tmovq\t112(%ebx),%mm3\n\tpor\t%mm6,%mm2\n\tmovq\t%mm1,-16(%edi)\n\tpsrlq\t$4,%mm1\n\tmovq\t%mm4,112(%edi)\n\tmovq\t%mm4,%mm7\n\tmovq\t%mm2,-24(%ebp)\n\tpsrlq\t$4,%mm4\n\tmovq\t%mm5,104(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,15(%esp)\n\tpsllq\t$60,%mm7\n\tpor\t%mm7,%mm1\n\tmovq\t%mm0,-8(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,120(%edi)\n\tmovq\t%mm3,%mm6\n\tmovq\t%mm1,-16(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,112(%ebp)\n\tpsllq\t$60,%mm6\n\tpor\t%mm6,%mm0\n\tmovq\t%mm0,-8(%ebp)\n\tmovq\t%mm3,120(%ebp)\n\tmovq\t(%eax),%mm6\n\tmovl\t8(%eax),%ebx\n\tmovl\t12(%eax),%edx\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:15", "text": "movq\t%mm5,104(%ebp)\n\tshll\t$4,%edx\n\tmovb\t%dl,15(%esp)\n\tpsllq\t$60,%mm7\n\tpor\t%mm7,%mm1\n\tmovq\t%mm0,-8(%edi)\n\tpsrlq\t$4,%mm0\n\tmovq\t%mm3,120(%edi)\n\tmovq\t%mm3,%mm6\n\tmovq\t%mm1,-16(%ebp)\n\tpsrlq\t$4,%mm3\n\tmovq\t%mm4,112(%ebp)\n\tpsllq\t$60,%mm6\n\tpor\t%mm6,%mm0\n\tmovq\t%mm0,-8(%ebp)\n\tmovq\t%mm3,120(%ebp)\n\tmovq\t(%eax),%mm6\n\tmovl\t8(%eax),%ebx\n\tmovl\t12(%eax),%edx\n.align\t16\n.L009outer:\n\txorl\t12(%ecx),%edx\n\txorl\t8(%ecx),%ebx\n\tpxor\t(%ecx),%mm6\n\tleal\t16(%ecx),%ecx\n\tmovl\t%ebx,536(%esp)\n\tmovq\t%mm6,528(%esp)\n\tmovl\t%ecx,548(%esp)\n\txorl\t%eax,%eax\n\troll\t$8,%edx\n\tmovb\t%dl,%al\n\tmovl\t%eax,%ebp\n\tandb\t$15,%al\n\tshrl\t$4,%ebp\n\tpxor\t%mm0,%mm0\n\troll\t$8,%edx\n\tpxor\t%mm1,%mm1\n\tpxor\t%mm2,%mm2\n\tmovq\t16(%esp,%eax,8),%mm7\n\tmovq\t144(%esp,%eax,8),%mm6\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tshrl\t$4,%edi\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:16", "text": "movb\t%dl,%al\n\tmovd\t%mm7,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tshrl\t$4,%edi\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovl\t536(%esp),%edx\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:17", "text": "movl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm1,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm0\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm0,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:18", "text": "pxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm0,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovl\t532(%esp),%edx\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm1,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm0\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:19", "text": "andb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm1,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm0\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm0,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm1,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:20", "text": "pxor\t%mm2,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm1,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm0\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovl\t528(%esp),%edx\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm0,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:21", "text": "shrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm1,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm0\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm0,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:22", "text": "pxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tmovb\t%dl,%al\n\tmovd\t%mm7,%ecx\n\tmovzbl\t%bl,%ebx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%ebp\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%edi,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm0,%mm6\n\tshrl\t$4,%ebp\n\tpinsrw\t$2,(%esi,%ebx,2),%mm2\n\tpxor\t16(%esp,%eax,8),%mm7\n\troll\t$8,%edx\n\tpxor\t144(%esp,%eax,8),%mm6\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%edi,8),%mm6\n\txorb\t(%esp,%edi,1),%cl\n\tmovb\t%dl,%al\n\tmovl\t524(%esp),%edx\n\tmovd\t%mm7,%ebx\n\tmovzbl\t%cl,%ecx\n\tpsrlq\t$8,%mm7\n\tmovq\t%mm6,%mm3\n\tmovl\t%eax,%edi\n\tpsrlq\t$8,%mm6\n\tpxor\t272(%esp,%ebp,8),%mm7\n\tandb\t$15,%al\n\tpsllq\t$56,%mm3\n\tpxor\t%mm2,%mm6\n\tshrl\t$4,%edi\n\tpinsrw\t$2,(%esi,%ecx,2),%mm1\n\tpxor\t16(%esp,%eax,8),%mm7\n\tpxor\t144(%esp,%eax,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\tmovzbl\t%bl,%ebx\n\tpxor\t%mm2,%mm2\n\tpsllq\t$4,%mm1\n\tmovd\t%mm7,%ecx\n\tpsrlq\t$4,%mm7\n\tmovq\t%mm6,%mm3\n\tpsrlq\t$4,%mm6\n\tshll\t$4,%ecx\n\tpxor\t16(%esp,%edi,8),%mm7\n\tpsllq\t$60,%mm3\n\tmovzbl\t%cl,%ecx\n\tpxor\t%mm3,%mm7\n\tpxor\t144(%esp,%edi,8),%mm6\n\tpinsrw\t$2,(%esi,%ebx,2),%mm0\n\tpxor\t%mm1,%mm6\n\tmovd\t%mm7,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:23", "text": "pxor\t144(%esp,%eax,8),%mm6\n\txorb\t(%esp,%ebp,1),%bl\n\tpxor\t%mm3,%mm7\n\tpxor\t400(%esp,%ebp,8),%mm6\n\tmovzbl\t%bl,%ebx\n\tpxor\t%mm2,%mm2\n\tpsllq\t$4,%mm1\n\tmovd\t%mm7,%ecx\n\tpsrlq\t$4,%mm7\n\tmovq\t%mm6,%mm3\n\tpsrlq\t$4,%mm6\n\tshll\t$4,%ecx\n\tpxor\t16(%esp,%edi,8),%mm7\n\tpsllq\t$60,%mm3\n\tmovzbl\t%cl,%ecx\n\tpxor\t%mm3,%mm7\n\tpxor\t144(%esp,%edi,8),%mm6\n\tpinsrw\t$2,(%esi,%ebx,2),%mm0\n\tpxor\t%mm1,%mm6\n\tmovd\t%mm7,%edx\n\tpinsrw\t$3,(%esi,%ecx,2),%mm2\n\tpsllq\t$12,%mm0\n\tpxor\t%mm0,%mm6\n\tpsrlq\t$32,%mm7\n\tpxor\t%mm2,%mm6\n\tmovl\t548(%esp),%ecx\n\tmovd\t%mm7,%ebx\n\tmovq\t%mm6,%mm3\n\tpsllw\t$8,%mm6\n\tpsrlw\t$8,%mm3\n\tpor\t%mm3,%mm6\n\tbswap\t%edx\n\tpshufw\t$27,%mm6,%mm6\n\tbswap\t%ebx\n\tcmpl\t552(%esp),%ecx\n\tjne\t.L009outer\n\tmovl\t544(%esp),%eax\n\tmovl\t%edx,12(%eax)\n\tmovl\t%ebx,8(%eax)\n\tmovq\t%mm6,(%eax)\n\tmovl\t556(%esp),%esp\n\temms\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_ghash_4bit_mmx,.-.L_gcm_ghash_4bit_mmx_begin\n.globl\tgcm_init_clmul\n.type\tgcm_init_clmul,@function\n.align\t16\ngcm_init_clmul:\n.L_gcm_init_clmul_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:24", "text": "movl\t556(%esp),%esp\n\temms\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_ghash_4bit_mmx,.-.L_gcm_ghash_4bit_mmx_begin\n.globl\tgcm_init_clmul\n.type\tgcm_init_clmul,@function\n.align\t16\ngcm_init_clmul:\n.L_gcm_init_clmul_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%eax\n\tcall\t.L010pic\n.L010pic:\n\tpopl\t%ecx\n\tleal\t.Lbswap-.L010pic(%ecx),%ecx\n\tmovdqu\t(%eax),%xmm2\n\tpshufd\t$78,%xmm2,%xmm2\n\tpshufd\t$255,%xmm2,%xmm4\n\tmovdqa\t%xmm2,%xmm3\n\tpsllq\t$1,%xmm2\n\tpxor\t%xmm5,%xmm5\n\tpsrlq\t$63,%xmm3\n\tpcmpgtd\t%xmm4,%xmm5\n\tpslldq\t$8,%xmm3\n\tpor\t%xmm3,%xmm2\n\tpand\t16(%ecx),%xmm5\n\tpxor\t%xmm5,%xmm2\n\tmovdqa\t%xmm2,%xmm0\n\tmovdqa\t%xmm0,%xmm1\n\tpshufd\t$78,%xmm0,%xmm3\n\tpshufd\t$78,%xmm2,%xmm4\n\tpxor\t%xmm0,%xmm3\n\tpxor\t%xmm2,%xmm4\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,220,0\n\txorps\t%xmm0,%xmm3\n\txorps\t%xmm1,%xmm3\n\tmovdqa\t%xmm3,%xmm4\n\tpsrldq\t$8,%xmm3\n\tpslldq\t$8,%xmm4\n\tpxor\t%xmm3,%xmm1\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:25", "text": "pxor\t%xmm0,%xmm3\n\tpxor\t%xmm2,%xmm4\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,220,0\n\txorps\t%xmm0,%xmm3\n\txorps\t%xmm1,%xmm3\n\tmovdqa\t%xmm3,%xmm4\n\tpsrldq\t$8,%xmm3\n\tpslldq\t$8,%xmm4\n\tpxor\t%xmm3,%xmm1\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3\n\tpslldq\t$8,%xmm0\n\tpsrldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm0,%xmm4\n\tpsrlq\t$5,%xmm0\n\tpxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n\tpshufd\t$78,%xmm2,%xmm3\n\tpshufd\t$78,%xmm0,%xmm4\n\tpxor\t%xmm2,%xmm3\n\tmovdqu\t%xmm2,(%edx)\n\tpxor\t%xmm0,%xmm4\n\tmovdqu\t%xmm0,16(%edx)\n.byte\t102,15,58,15,227,8\n\tmovdqu\t%xmm4,32(%edx)\n\tret\n.size\tgcm_init_clmul,.-.L_gcm_init_clmul_begin\n.globl\tgcm_gmult_clmul\n.type\tgcm_gmult_clmul,@function\n.align\t16\ngcm_gmult_clmul:\n.L_gcm_gmult_clmul_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%edx\n\tcall\t.L011pic\n.L011pic:\n\tpopl\t%ecx\n\tleal\t.Lbswap-.L011pic(%ecx),%ecx\n\tmovdqu\t(%eax),%xmm0\n\tmovdqa\t(%ecx),%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:26", "text": "ret\n.size\tgcm_init_clmul,.-.L_gcm_init_clmul_begin\n.globl\tgcm_gmult_clmul\n.type\tgcm_gmult_clmul,@function\n.align\t16\ngcm_gmult_clmul:\n.L_gcm_gmult_clmul_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%edx\n\tcall\t.L011pic\n.L011pic:\n\tpopl\t%ecx\n\tleal\t.Lbswap-.L011pic(%ecx),%ecx\n\tmovdqu\t(%eax),%xmm0\n\tmovdqa\t(%ecx),%xmm5\n\tmovups\t(%edx),%xmm2\n.byte\t102,15,56,0,197\n\tmovups\t32(%edx),%xmm4\n\tmovdqa\t%xmm0,%xmm1\n\tpshufd\t$78,%xmm0,%xmm3\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,220,0\n\txorps\t%xmm0,%xmm3\n\txorps\t%xmm1,%xmm3\n\tmovdqa\t%xmm3,%xmm4\n\tpsrldq\t$8,%xmm3\n\tpslldq\t$8,%xmm4\n\tpxor\t%xmm3,%xmm1\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3\n\tpslldq\t$8,%xmm0\n\tpsrldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm0,%xmm4\n\tpsrlq\t$5,%xmm0\n\tpxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n.byte\t102,15,56,0,197\n\tmovdqu\t%xmm0,(%eax)\n\tret\n.size\tgcm_gmult_clmul,.-.L_gcm_gmult_clmul_begin", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:27", "text": "psllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3\n\tpslldq\t$8,%xmm0\n\tpsrldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm0,%xmm4\n\tpsrlq\t$5,%xmm0\n\tpxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n.byte\t102,15,56,0,197\n\tmovdqu\t%xmm0,(%eax)\n\tret\n.size\tgcm_gmult_clmul,.-.L_gcm_gmult_clmul_begin\n.globl\tgcm_ghash_clmul\n.type\tgcm_ghash_clmul,@function\n.align\t16\ngcm_ghash_clmul:\n.L_gcm_ghash_clmul_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%eax\n\tmovl\t24(%esp),%edx\n\tmovl\t28(%esp),%esi\n\tmovl\t32(%esp),%ebx\n\tcall\t.L012pic\n.L012pic:\n\tpopl\t%ecx\n\tleal\t.Lbswap-.L012pic(%ecx),%ecx\n\tmovdqu\t(%eax),%xmm0\n\tmovdqa\t(%ecx),%xmm5\n\tmovdqu\t(%edx),%xmm2\n.byte\t102,15,56,0,197\n\tsubl\t$16,%ebx\n\tjz\t.L013odd_tail\n\tmovdqu\t(%esi),%xmm3\n\tmovdqu\t16(%esi),%xmm6\n.byte\t102,15,56,0,221\n.byte\t102,15,56,0,245\n\tmovdqu\t32(%edx),%xmm5\n\tpxor\t%xmm3,%xmm0\n\tpshufd\t$78,%xmm6,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpxor\t%xmm6,%xmm3\n\tleal\t32(%esi),%esi\n.byte\t102,15,58,68,242,0\n.byte\t102,15,58,68,250,17", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:28", "text": "popl\t%ecx\n\tleal\t.Lbswap-.L012pic(%ecx),%ecx\n\tmovdqu\t(%eax),%xmm0\n\tmovdqa\t(%ecx),%xmm5\n\tmovdqu\t(%edx),%xmm2\n.byte\t102,15,56,0,197\n\tsubl\t$16,%ebx\n\tjz\t.L013odd_tail\n\tmovdqu\t(%esi),%xmm3\n\tmovdqu\t16(%esi),%xmm6\n.byte\t102,15,56,0,221\n.byte\t102,15,56,0,245\n\tmovdqu\t32(%edx),%xmm5\n\tpxor\t%xmm3,%xmm0\n\tpshufd\t$78,%xmm6,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpxor\t%xmm6,%xmm3\n\tleal\t32(%esi),%esi\n.byte\t102,15,58,68,242,0\n.byte\t102,15,58,68,250,17\n.byte\t102,15,58,68,221,0\n\tmovups\t16(%edx),%xmm2\n\tnop\n\tsubl\t$32,%ebx\n\tjbe\t.L014even_tail\n\tjmp\t.L015mod_loop\n.align\t32\n.L015mod_loop:\n\tpshufd\t$78,%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm1\n\tpxor\t%xmm0,%xmm4\n\tnop\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,229,16\n\tmovups\t(%edx),%xmm2\n\txorps\t%xmm6,%xmm0\n\tmovdqa\t(%ecx),%xmm5\n\txorps\t%xmm7,%xmm1\n\tmovdqu\t(%esi),%xmm7\n\tpxor\t%xmm0,%xmm3\n\tmovdqu\t16(%esi),%xmm6\n\tpxor\t%xmm1,%xmm3\n.byte\t102,15,56,0,253\n\tpxor\t%xmm3,%xmm4\n\tmovdqa\t%xmm4,%xmm3\n\tpsrldq\t$8,%xmm4\n\tpslldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm3,%xmm0\n.byte\t102,15,56,0,245\n\tpxor\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n.byte\t102,15,58,68,242,0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:29", "text": "pxor\t%xmm0,%xmm3\n\tmovdqu\t16(%esi),%xmm6\n\tpxor\t%xmm1,%xmm3\n.byte\t102,15,56,0,253\n\tpxor\t%xmm3,%xmm4\n\tmovdqa\t%xmm4,%xmm3\n\tpsrldq\t$8,%xmm4\n\tpslldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm3,%xmm0\n.byte\t102,15,56,0,245\n\tpxor\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n.byte\t102,15,58,68,242,0\n\tmovups\t32(%edx),%xmm5\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3\n\tpslldq\t$8,%xmm0\n\tpsrldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm3,%xmm1\n\tpshufd\t$78,%xmm7,%xmm3\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm7,%xmm3\n\tpxor\t%xmm4,%xmm1\n.byte\t102,15,58,68,250,17\n\tmovups\t16(%edx),%xmm2\n\tpxor\t%xmm0,%xmm4\n\tpsrlq\t$5,%xmm0\n\tpxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n.byte\t102,15,58,68,221,0\n\tleal\t32(%esi),%esi\n\tsubl\t$32,%ebx\n\tja\t.L015mod_loop\n.L014even_tail:\n\tpshufd\t$78,%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm1\n\tpxor\t%xmm0,%xmm4\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,229,16\n\tmovdqa\t(%ecx),%xmm5\n\txorps\t%xmm6,%xmm0\n\txorps\t%xmm7,%xmm1\n\tpxor\t%xmm0,%xmm3\n\tpxor\t%xmm1,%xmm3\n\tpxor\t%xmm3,%xmm4\n\tmovdqa\t%xmm4,%xmm3\n\tpsrldq\t$8,%xmm4\n\tpslldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:30", "text": "leal\t32(%esi),%esi\n\tsubl\t$32,%ebx\n\tja\t.L015mod_loop\n.L014even_tail:\n\tpshufd\t$78,%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm1\n\tpxor\t%xmm0,%xmm4\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,229,16\n\tmovdqa\t(%ecx),%xmm5\n\txorps\t%xmm6,%xmm0\n\txorps\t%xmm7,%xmm1\n\tpxor\t%xmm0,%xmm3\n\tpxor\t%xmm1,%xmm3\n\tpxor\t%xmm3,%xmm4\n\tmovdqa\t%xmm4,%xmm3\n\tpsrldq\t$8,%xmm4\n\tpslldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm3,%xmm0\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3\n\tpslldq\t$8,%xmm0\n\tpsrldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm0,%xmm4\n\tpsrlq\t$5,%xmm0\n\tpxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n\ttestl\t%ebx,%ebx\n\tjnz\t.L016done\n\tmovups\t(%edx),%xmm2\n.L013odd_tail:\n\tmovdqu\t(%esi),%xmm3\n.byte\t102,15,56,0,221\n\tpxor\t%xmm3,%xmm0\n\tmovdqa\t%xmm0,%xmm1\n\tpshufd\t$78,%xmm0,%xmm3\n\tpshufd\t$78,%xmm2,%xmm4\n\tpxor\t%xmm0,%xmm3\n\tpxor\t%xmm2,%xmm4\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,220,0\n\txorps\t%xmm0,%xmm3\n\txorps\t%xmm1,%xmm3\n\tmovdqa\t%xmm3,%xmm4\n\tpsrldq\t$8,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:31", "text": "pxor\t%xmm1,%xmm0\n\ttestl\t%ebx,%ebx\n\tjnz\t.L016done\n\tmovups\t(%edx),%xmm2\n.L013odd_tail:\n\tmovdqu\t(%esi),%xmm3\n.byte\t102,15,56,0,221\n\tpxor\t%xmm3,%xmm0\n\tmovdqa\t%xmm0,%xmm1\n\tpshufd\t$78,%xmm0,%xmm3\n\tpshufd\t$78,%xmm2,%xmm4\n\tpxor\t%xmm0,%xmm3\n\tpxor\t%xmm2,%xmm4\n.byte\t102,15,58,68,194,0\n.byte\t102,15,58,68,202,17\n.byte\t102,15,58,68,220,0\n\txorps\t%xmm0,%xmm3\n\txorps\t%xmm1,%xmm3\n\tmovdqa\t%xmm3,%xmm4\n\tpsrldq\t$8,%xmm3\n\tpslldq\t$8,%xmm4\n\tpxor\t%xmm3,%xmm1\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t%xmm0,%xmm3\n\tpsllq\t$5,%xmm0\n\tpxor\t%xmm0,%xmm3\n\tpsllq\t$1,%xmm0\n\tpxor\t%xmm3,%xmm0\n\tpsllq\t$57,%xmm0\n\tmovdqa\t%xmm0,%xmm3\n\tpslldq\t$8,%xmm0\n\tpsrldq\t$8,%xmm3\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm4,%xmm1\n\tpxor\t%xmm0,%xmm4\n\tpsrlq\t$5,%xmm0\n\tpxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n.L016done:\n.byte\t102,15,56,0,197\n\tmovdqu\t%xmm0,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_ghash_clmul,.-.L_gcm_ghash_clmul_begin\n.align\t64\n.Lbswap:\n.byte\t15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0\n.byte\t1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,194\n.align\t64\n.Lrem_8bit:\n.value\t0,450,900,582,1800,1738,1164,1358\n.value\t3600,4050,3476,3158,2328,2266,2716,2910", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:32", "text": "pxor\t%xmm4,%xmm0\n\tpsrlq\t$1,%xmm0\n\tpxor\t%xmm1,%xmm0\n.L016done:\n.byte\t102,15,56,0,197\n\tmovdqu\t%xmm0,(%eax)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tgcm_ghash_clmul,.-.L_gcm_ghash_clmul_begin\n.align\t64\n.Lbswap:\n.byte\t15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0\n.byte\t1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,194\n.align\t64\n.Lrem_8bit:\n.value\t0,450,900,582,1800,1738,1164,1358\n.value\t3600,4050,3476,3158,2328,2266,2716,2910\n.value\t7200,7650,8100,7782,6952,6890,6316,6510\n.value\t4656,5106,4532,4214,5432,5370,5820,6014\n.value\t14400,14722,15300,14854,16200,16010,15564,15630\n.value\t13904,14226,13780,13334,12632,12442,13020,13086\n.value\t9312,9634,10212,9766,9064,8874,8428,8494\n.value\t10864,11186,10740,10294,11640,11450,12028,12094\n.value\t28800,28994,29444,29382,30600,30282,29708,30158\n.value\t32400,32594,32020,31958,31128,30810,31260,31710\n.value\t27808,28002,28452,28390,27560,27242,26668,27118\n.value\t25264,25458,24884,24822,26040,25722,26172,26622\n.value\t18624,18690,19268,19078,20424,19978,19532,19854\n.value\t18128,18194,17748,17558,16856,16410,16988,17310\n.value\t21728,21794,22372,22182,21480,21034,20588,20910\n.value\t23280,23346,22900,22710,24056,23610,24188,24510\n.value\t57600,57538,57988,58182,58888,59338,58764,58446\n.value\t61200,61138,60564,60758,59416,59866,60316,59998\n.value\t64800,64738,65188,65382,64040,64490,63916,63598\n.value\t62256,62194,61620,61814,62520,62970,63420,63102\n.value\t55616,55426,56004,56070,56904,57226,56780,56334\n.value\t55120,54930,54484,54550,53336,53658,54236,53790\n.value\t50528,50338,50916,50982,49768,50090,49644,49198\n.value\t52080,51890,51444,51510,52344,52666,53244,52798\n.value\t37248,36930,37380,37830,38536,38730,38156,38094\n.value\t40848,40530,39956,40406,39064,39258,39708,39646\n.value\t36256,35938,36388,36838,35496,35690,35116,35054\n.value\t33712,33394,32820,33270,33976,34170,34620,34558\n.value\t43456,43010,43588,43910,44744,44810,44364,44174\n.value\t42960,42514,42068,42390,41176,41242,41820,41630\n.value\t46560,46114,46692,47014,45800,45866,45420,45230\n.value\t48112,47666,47220,47542,48376,48442,49020,48830\n.align\t64\n.Lrem_4bit:\n.long\t0,0,0,471859200,0,943718400,0,610271232\n.long\t0,1887436800,0,1822425088,0,1220542464,0,1423966208\n.long\t0,3774873600,0,4246732800,0,3644850176,0,3311403008\n.long\t0,2441084928,0,2376073216,0,2847932416,0,3051356160\n.byte\t71,72,65,83,72,32,102,111,114,32,120,56,54,44,32,67\n.byte\t82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112\n.byte\t112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62\n.byte\t0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S:33", "text": ".value\t50528,50338,50916,50982,49768,50090,49644,49198\n.value\t52080,51890,51444,51510,52344,52666,53244,52798\n.value\t37248,36930,37380,37830,38536,38730,38156,38094\n.value\t40848,40530,39956,40406,39064,39258,39708,39646\n.value\t36256,35938,36388,36838,35496,35690,35116,35054\n.value\t33712,33394,32820,33270,33976,34170,34620,34558\n.value\t43456,43010,43588,43910,44744,44810,44364,44174\n.value\t42960,42514,42068,42390,41176,41242,41820,41630\n.value\t46560,46114,46692,47014,45800,45866,45420,45230\n.value\t48112,47666,47220,47542,48376,48442,49020,48830\n.align\t64\n.Lrem_4bit:\n.long\t0,0,0,471859200,0,943718400,0,610271232\n.long\t0,1887436800,0,1822425088,0,1220542464,0,1423966208\n.long\t0,3774873600,0,4246732800,0,3644850176,0,3311403008\n.long\t0,2441084928,0,2376073216,0,2847932416,0,3051356160\n.byte\t71,72,65,83,72,32,102,111,114,32,120,56,54,44,32,67\n.byte\t82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112\n.byte\t112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62\n.byte\t0\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/ghash-x86.S", "line_start": 1281, "line_end": 1317}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tossl_md5_block_asm_data_order\n.type\tossl_md5_block_asm_data_order,@function\n.align\t16\nossl_md5_block_asm_data_order:\n.L_ossl_md5_block_asm_data_order_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%ecx\n\tpushl\t%ebp\n\tshll\t$6,%ecx\n\tpushl\t%ebx\n\taddl\t%esi,%ecx\n\tsubl\t$64,%ecx\n\tmovl\t(%edi),%eax\n\tpushl\t%ecx\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n.L000start:\n\n\n\tmovl\t%ecx,%edi\n\tmovl\t(%esi),%ebp\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t3614090360(%eax,%ebp,1),%eax\n\txorl\t%edx,%edi\n\tmovl\t4(%esi),%ebp\n\taddl\t%edi,%eax\n\troll\t$7,%eax\n\tmovl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t3905402710(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t8(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t606105819(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:2", "text": "movl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t3905402710(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t8(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t606105819(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx\n\tmovl\t%edx,%edi\n\taddl\t%edx,%ecx\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t3250441966(%ebx,%ebp,1),%ebx\n\txorl\t%eax,%edi\n\tmovl\t16(%esi),%ebp\n\taddl\t%edi,%ebx\n\troll\t$22,%ebx\n\tmovl\t%ecx,%edi\n\taddl\t%ecx,%ebx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t4118548399(%eax,%ebp,1),%eax\n\txorl\t%edx,%edi\n\tmovl\t20(%esi),%ebp\n\taddl\t%edi,%eax\n\troll\t$7,%eax\n\tmovl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t1200080426(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t24(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t2821735955(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:3", "text": "movl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t1200080426(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t24(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t2821735955(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx\n\tmovl\t%edx,%edi\n\taddl\t%edx,%ecx\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t4249261313(%ebx,%ebp,1),%ebx\n\txorl\t%eax,%edi\n\tmovl\t32(%esi),%ebp\n\taddl\t%edi,%ebx\n\troll\t$22,%ebx\n\tmovl\t%ecx,%edi\n\taddl\t%ecx,%ebx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t1770035416(%eax,%ebp,1),%eax\n\txorl\t%edx,%edi\n\tmovl\t36(%esi),%ebp\n\taddl\t%edi,%eax\n\troll\t$7,%eax\n\tmovl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t2336552879(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t40(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t4294925233(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:4", "text": "movl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t2336552879(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t40(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t4294925233(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx\n\tmovl\t%edx,%edi\n\taddl\t%edx,%ecx\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t2304563134(%ebx,%ebp,1),%ebx\n\txorl\t%eax,%edi\n\tmovl\t48(%esi),%ebp\n\taddl\t%edi,%ebx\n\troll\t$22,%ebx\n\tmovl\t%ecx,%edi\n\taddl\t%ecx,%ebx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t1804603682(%eax,%ebp,1),%eax\n\txorl\t%edx,%edi\n\tmovl\t52(%esi),%ebp\n\taddl\t%edi,%eax\n\troll\t$7,%eax\n\tmovl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t4254626195(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t56(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t2792965006(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t60(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:5", "text": "movl\t%ebx,%edi\n\taddl\t%ebx,%eax\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t4254626195(%edx,%ebp,1),%edx\n\txorl\t%ecx,%edi\n\tmovl\t56(%esi),%ebp\n\taddl\t%edi,%edx\n\troll\t$12,%edx\n\tmovl\t%eax,%edi\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t2792965006(%ecx,%ebp,1),%ecx\n\txorl\t%ebx,%edi\n\tmovl\t60(%esi),%ebp\n\taddl\t%edi,%ecx\n\troll\t$17,%ecx\n\tmovl\t%edx,%edi\n\taddl\t%edx,%ecx\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t1236535329(%ebx,%ebp,1),%ebx\n\txorl\t%eax,%edi\n\tmovl\t4(%esi),%ebp\n\taddl\t%edi,%ebx\n\troll\t$22,%ebx\n\tmovl\t%ecx,%edi\n\taddl\t%ecx,%ebx\n\n\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t4129170786(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t24(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t3225465664(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t643717713(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:6", "text": "addl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t3225465664(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t643717713(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t%edx,%edi\n\troll\t$14,%ecx\n\taddl\t%edx,%ecx\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t3921069994(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t20(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$20,%ebx\n\taddl\t%ecx,%ebx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t3593408605(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t40(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t38016083(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t60(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t3634488961(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t16(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:7", "text": "addl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t38016083(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t60(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t3634488961(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t16(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t%edx,%edi\n\troll\t$14,%ecx\n\taddl\t%edx,%ecx\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t3889429448(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t36(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$20,%ebx\n\taddl\t%ecx,%ebx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t568446438(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t56(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t3275163606(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t4107603335(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t32(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:8", "text": "addl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t3275163606(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t4107603335(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t32(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t%edx,%edi\n\troll\t$14,%ecx\n\taddl\t%edx,%ecx\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t1163531501(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t52(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$20,%ebx\n\taddl\t%ecx,%ebx\n\n\txorl\t%ebx,%edi\n\tandl\t%edx,%edi\n\tleal\t2850285829(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t8(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t4243563512(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t1735328473(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t48(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:9", "text": "addl\t%edi,%eax\n\tmovl\t%ebx,%edi\n\troll\t$5,%eax\n\taddl\t%ebx,%eax\n\n\txorl\t%eax,%edi\n\tandl\t%ecx,%edi\n\tleal\t4243563512(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$9,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%edx,%edi\n\tandl\t%ebx,%edi\n\tleal\t1735328473(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t48(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t%edx,%edi\n\troll\t$14,%ecx\n\taddl\t%edx,%ecx\n\n\txorl\t%ecx,%edi\n\tandl\t%eax,%edi\n\tleal\t2368359562(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t20(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$20,%ebx\n\taddl\t%ecx,%ebx\n\n\n\n\txorl\t%edx,%edi\n\txorl\t%ebx,%edi\n\tleal\t4294588738(%eax,%ebp,1),%eax\n\taddl\t%edi,%eax\n\tmovl\t32(%esi),%ebp\n\troll\t$4,%eax\n\tmovl\t%ebx,%edi\n\n\taddl\t%ebx,%eax\n\txorl\t%ecx,%edi\n\tleal\t2272392833(%edx,%ebp,1),%edx\n\txorl\t%eax,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t1839030562(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t56(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:10", "text": "addl\t%edi,%eax\n\tmovl\t32(%esi),%ebp\n\troll\t$4,%eax\n\tmovl\t%ebx,%edi\n\n\taddl\t%ebx,%eax\n\txorl\t%ecx,%edi\n\tleal\t2272392833(%edx,%ebp,1),%edx\n\txorl\t%eax,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t1839030562(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t56(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx\n\txorl\t%eax,%edi\n\tleal\t4259657740(%ebx,%ebp,1),%ebx\n\txorl\t%ecx,%edi\n\tmovl\t4(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$23,%ebx\n\taddl\t%ecx,%ebx\n\n\txorl\t%edx,%edi\n\txorl\t%ebx,%edi\n\tleal\t2763975236(%eax,%ebp,1),%eax\n\taddl\t%edi,%eax\n\tmovl\t16(%esi),%ebp\n\troll\t$4,%eax\n\tmovl\t%ebx,%edi\n\n\taddl\t%ebx,%eax\n\txorl\t%ecx,%edi\n\tleal\t1272893353(%edx,%ebp,1),%edx\n\txorl\t%eax,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t4139469664(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t40(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:11", "text": "addl\t%ebx,%eax\n\txorl\t%ecx,%edi\n\tleal\t1272893353(%edx,%ebp,1),%edx\n\txorl\t%eax,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t4139469664(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t40(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx\n\txorl\t%eax,%edi\n\tleal\t3200236656(%ebx,%ebp,1),%ebx\n\txorl\t%ecx,%edi\n\tmovl\t52(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$23,%ebx\n\taddl\t%ecx,%ebx\n\n\txorl\t%edx,%edi\n\txorl\t%ebx,%edi\n\tleal\t681279174(%eax,%ebp,1),%eax\n\taddl\t%edi,%eax\n\tmovl\t(%esi),%ebp\n\troll\t$4,%eax\n\tmovl\t%ebx,%edi\n\n\taddl\t%ebx,%eax\n\txorl\t%ecx,%edi\n\tleal\t3936430074(%edx,%ebp,1),%edx\n\txorl\t%eax,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t3572445317(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t24(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx\n\txorl\t%eax,%edi\n\tleal\t76029189(%ebx,%ebp,1),%ebx\n\txorl\t%ecx,%edi\n\tmovl\t36(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:12", "text": "xorl\t%eax,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t3572445317(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t24(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx\n\txorl\t%eax,%edi\n\tleal\t76029189(%ebx,%ebp,1),%ebx\n\txorl\t%ecx,%edi\n\tmovl\t36(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t%ecx,%edi\n\troll\t$23,%ebx\n\taddl\t%ecx,%ebx\n\n\txorl\t%edx,%edi\n\txorl\t%ebx,%edi\n\tleal\t3654602809(%eax,%ebp,1),%eax\n\taddl\t%edi,%eax\n\tmovl\t48(%esi),%ebp\n\troll\t$4,%eax\n\tmovl\t%ebx,%edi\n\n\taddl\t%ebx,%eax\n\txorl\t%ecx,%edi\n\tleal\t3873151461(%edx,%ebp,1),%edx\n\txorl\t%eax,%edi\n\tmovl\t60(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t%eax,%edi\n\troll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t530742520(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t8(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx\n\txorl\t%eax,%edi\n\tleal\t3299628645(%ebx,%ebp,1),%ebx\n\txorl\t%ecx,%edi\n\tmovl\t(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi\n\troll\t$23,%ebx\n\taddl\t%ecx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:13", "text": "roll\t$11,%edx\n\taddl\t%eax,%edx\n\n\txorl\t%ebx,%edi\n\txorl\t%edx,%edi\n\tleal\t530742520(%ecx,%ebp,1),%ecx\n\taddl\t%edi,%ecx\n\tmovl\t8(%esi),%ebp\n\troll\t$16,%ecx\n\tmovl\t%edx,%edi\n\n\taddl\t%edx,%ecx\n\txorl\t%eax,%edi\n\tleal\t3299628645(%ebx,%ebp,1),%ebx\n\txorl\t%ecx,%edi\n\tmovl\t(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi\n\troll\t$23,%ebx\n\taddl\t%ecx,%ebx\n\n\n\n\txorl\t%edx,%edi\n\torl\t%ebx,%edi\n\tleal\t4096336452(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t28(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t$-1,%edi\n\troll\t$6,%eax\n\txorl\t%ecx,%edi\n\taddl\t%ebx,%eax\n\n\torl\t%eax,%edi\n\tleal\t1126891415(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t56(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t$-1,%edi\n\troll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t2878612391(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t20(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t4237533241(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t48(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:14", "text": "roll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t2878612391(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t20(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t4237533241(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t48(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi\n\troll\t$21,%ebx\n\txorl\t%edx,%edi\n\taddl\t%ecx,%ebx\n\n\torl\t%ebx,%edi\n\tleal\t1700485571(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t12(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t$-1,%edi\n\troll\t$6,%eax\n\txorl\t%ecx,%edi\n\taddl\t%ebx,%eax\n\n\torl\t%eax,%edi\n\tleal\t2399980690(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t40(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t$-1,%edi\n\troll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t4293915773(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t4(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t2240044497(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t32(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:15", "text": "roll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t4293915773(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t4(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t2240044497(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t32(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi\n\troll\t$21,%ebx\n\txorl\t%edx,%edi\n\taddl\t%ecx,%ebx\n\n\torl\t%ebx,%edi\n\tleal\t1873313359(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t60(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t$-1,%edi\n\troll\t$6,%eax\n\txorl\t%ecx,%edi\n\taddl\t%ebx,%eax\n\n\torl\t%eax,%edi\n\tleal\t4264355552(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t24(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t$-1,%edi\n\troll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t2734768916(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t52(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t1309151649(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t16(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:16", "text": "roll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t2734768916(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t52(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t1309151649(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t16(%esi),%ebp\n\taddl\t%edi,%ebx\n\tmovl\t$-1,%edi\n\troll\t$21,%ebx\n\txorl\t%edx,%edi\n\taddl\t%ecx,%ebx\n\n\torl\t%ebx,%edi\n\tleal\t4149444226(%eax,%ebp,1),%eax\n\txorl\t%ecx,%edi\n\tmovl\t44(%esi),%ebp\n\taddl\t%edi,%eax\n\tmovl\t$-1,%edi\n\troll\t$6,%eax\n\txorl\t%ecx,%edi\n\taddl\t%ebx,%eax\n\n\torl\t%eax,%edi\n\tleal\t3174756917(%edx,%ebp,1),%edx\n\txorl\t%ebx,%edi\n\tmovl\t8(%esi),%ebp\n\taddl\t%edi,%edx\n\tmovl\t$-1,%edi\n\troll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t718787259(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t36(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t3951481745(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t24(%esp),%ebp\n\taddl\t%edi,%ebx\n\taddl\t$64,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:17", "text": "roll\t$10,%edx\n\txorl\t%ebx,%edi\n\taddl\t%eax,%edx\n\n\torl\t%edx,%edi\n\tleal\t718787259(%ecx,%ebp,1),%ecx\n\txorl\t%eax,%edi\n\tmovl\t36(%esi),%ebp\n\taddl\t%edi,%ecx\n\tmovl\t$-1,%edi\n\troll\t$15,%ecx\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\n\torl\t%ecx,%edi\n\tleal\t3951481745(%ebx,%ebp,1),%ebx\n\txorl\t%edx,%edi\n\tmovl\t24(%esp),%ebp\n\taddl\t%edi,%ebx\n\taddl\t$64,%esi\n\troll\t$21,%ebx\n\tmovl\t(%ebp),%edi\n\taddl\t%ecx,%ebx\n\taddl\t%edi,%eax\n\tmovl\t4(%ebp),%edi\n\taddl\t%edi,%ebx\n\tmovl\t8(%ebp),%edi\n\taddl\t%edi,%ecx\n\tmovl\t12(%ebp),%edi\n\taddl\t%edi,%edx\n\tmovl\t%eax,(%ebp)\n\tmovl\t%ebx,4(%ebp)\n\tmovl\t(%esp),%edi\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%edx,12(%ebp)\n\tcmpl\t%esi,%edi\n\tjae\t.L000start\n\tpopl\t%eax\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tossl_md5_block_asm_data_order,.-.L_ossl_md5_block_asm_data_order_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S:18", "text": "popl\t%edi\n\tpopl\t%esi\n\tret\n.size\tossl_md5_block_asm_data_order,.-.L_ossl_md5_block_asm_data_order_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/md5-586.S", "line_start": 681, "line_end": 701}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/modes.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nMODES_SRCS += ghash-x86.o\nMODESCPPFLAGS = -DGHASH_ASM -DOPENSSL_IA32_SSE2\n\n.include \"../../modes.inc\"", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/modes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/modes.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.align\t64\n.globl\tpoly1305_init\n.type\tpoly1305_init,@function\n.align\t16\npoly1305_init:\n.L_poly1305_init_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ebp\n\txorl\t%eax,%eax\n\tmovl\t%eax,(%edi)\n\tmovl\t%eax,4(%edi)\n\tmovl\t%eax,8(%edi)\n\tmovl\t%eax,12(%edi)\n\tmovl\t%eax,16(%edi)\n\tmovl\t%eax,20(%edi)\n\tcmpl\t$0,%esi\n\tje\t.L000nokey\n\tcall\t.L001pic_point\n.L001pic_point:\n\tpopl\t%ebx\n\tleal\tpoly1305_blocks-.L001pic_point(%ebx),%eax\n\tleal\tpoly1305_emit-.L001pic_point(%ebx),%edx\n\tleal\tOPENSSL_ia32cap_P-.L001pic_point(%ebx),%edi\n\tmovl\t(%edi),%ecx\n\tandl\t$83886080,%ecx\n\tcmpl\t$83886080,%ecx\n\tjne\t.L002no_sse2\n\tleal\t_poly1305_blocks_sse2-.L001pic_point(%ebx),%eax\n\tleal\t_poly1305_emit_sse2-.L001pic_point(%ebx),%edx\n.L002no_sse2:\n\tmovl\t20(%esp),%edi\n\tmovl\t%eax,(%ebp)\n\tmovl\t%edx,4(%ebp)\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tandl\t$268435455,%eax\n\tandl\t$268435452,%ebx\n\tandl\t$268435452,%ecx\n\tandl\t$268435452,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%ebx,28(%edi)\n\tmovl\t%ecx,32(%edi)\n\tmovl\t%edx,36(%edi)\n\tmovl\t$1,%eax\n.L000nokey:\n\tpopl\t%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:2", "text": "leal\t_poly1305_emit_sse2-.L001pic_point(%ebx),%edx\n.L002no_sse2:\n\tmovl\t20(%esp),%edi\n\tmovl\t%eax,(%ebp)\n\tmovl\t%edx,4(%ebp)\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tandl\t$268435455,%eax\n\tandl\t$268435452,%ebx\n\tandl\t$268435452,%ecx\n\tandl\t$268435452,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%ebx,28(%edi)\n\tmovl\t%ecx,32(%edi)\n\tmovl\t%edx,36(%edi)\n\tmovl\t$1,%eax\n.L000nokey:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpoly1305_init,.-.L_poly1305_init_begin\n.globl\tpoly1305_blocks\n.type\tpoly1305_blocks,@function\n.align\t16\npoly1305_blocks:\n.L_poly1305_blocks_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n.Lenter_blocks:\n\tandl\t$-15,%ecx\n\tjz\t.L003nodata\n\tsubl\t$64,%esp\n\tmovl\t24(%edi),%eax\n\tmovl\t28(%edi),%ebx\n\tleal\t(%esi,%ecx,1),%ebp\n\tmovl\t32(%edi),%ecx\n\tmovl\t36(%edi),%edx\n\tmovl\t%ebp,92(%esp)\n\tmovl\t%esi,%ebp\n\tmovl\t%eax,36(%esp)\n\tmovl\t%ebx,%eax\n\tshrl\t$2,%eax\n\tmovl\t%ebx,40(%esp)\n\taddl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:3", "text": "movl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n.Lenter_blocks:\n\tandl\t$-15,%ecx\n\tjz\t.L003nodata\n\tsubl\t$64,%esp\n\tmovl\t24(%edi),%eax\n\tmovl\t28(%edi),%ebx\n\tleal\t(%esi,%ecx,1),%ebp\n\tmovl\t32(%edi),%ecx\n\tmovl\t36(%edi),%edx\n\tmovl\t%ebp,92(%esp)\n\tmovl\t%esi,%ebp\n\tmovl\t%eax,36(%esp)\n\tmovl\t%ebx,%eax\n\tshrl\t$2,%eax\n\tmovl\t%ebx,40(%esp)\n\taddl\t%ebx,%eax\n\tmovl\t%ecx,%ebx\n\tshrl\t$2,%ebx\n\tmovl\t%ecx,44(%esp)\n\taddl\t%ecx,%ebx\n\tmovl\t%edx,%ecx\n\tshrl\t$2,%ecx\n\tmovl\t%edx,48(%esp)\n\taddl\t%edx,%ecx\n\tmovl\t%eax,52(%esp)\n\tmovl\t%ebx,56(%esp)\n\tmovl\t%ecx,60(%esp)\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%esi\n\tmovl\t16(%edi),%edi\n\tjmp\t.L004loop\n.align\t32\n.L004loop:\n\taddl\t(%ebp),%eax\n\tadcl\t4(%ebp),%ebx\n\tadcl\t8(%ebp),%ecx\n\tadcl\t12(%ebp),%esi\n\tleal\t16(%ebp),%ebp\n\tadcl\t96(%esp),%edi\n\tmovl\t%eax,(%esp)\n\tmovl\t%esi,12(%esp)\n\tmull\t36(%esp)\n\tmovl\t%edi,16(%esp)\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\tmovl\t%edx,%esi\n\tmull\t60(%esp)\n\taddl\t%eax,%edi\n\tmovl\t%ecx,%eax\n\tadcl\t%edx,%esi\n\tmull\t56(%esp)\n\taddl\t%eax,%edi\n\tmovl\t12(%esp),%eax\n\tadcl\t%edx,%esi\n\tmull\t52(%esp)\n\taddl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:4", "text": "adcl\t12(%ebp),%esi\n\tleal\t16(%ebp),%ebp\n\tadcl\t96(%esp),%edi\n\tmovl\t%eax,(%esp)\n\tmovl\t%esi,12(%esp)\n\tmull\t36(%esp)\n\tmovl\t%edi,16(%esp)\n\tmovl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\tmovl\t%edx,%esi\n\tmull\t60(%esp)\n\taddl\t%eax,%edi\n\tmovl\t%ecx,%eax\n\tadcl\t%edx,%esi\n\tmull\t56(%esp)\n\taddl\t%eax,%edi\n\tmovl\t12(%esp),%eax\n\tadcl\t%edx,%esi\n\tmull\t52(%esp)\n\taddl\t%eax,%edi\n\tmovl\t(%esp),%eax\n\tadcl\t%edx,%esi\n\tmull\t40(%esp)\n\tmovl\t%edi,20(%esp)\n\txorl\t%edi,%edi\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tadcl\t%edx,%edi\n\tmull\t36(%esp)\n\taddl\t%eax,%esi\n\tmovl\t%ecx,%eax\n\tadcl\t%edx,%edi\n\tmull\t60(%esp)\n\taddl\t%eax,%esi\n\tmovl\t12(%esp),%eax\n\tadcl\t%edx,%edi\n\tmull\t56(%esp)\n\taddl\t%eax,%esi\n\tmovl\t16(%esp),%eax\n\tadcl\t%edx,%edi\n\timull\t52(%esp),%eax\n\taddl\t%eax,%esi\n\tmovl\t(%esp),%eax\n\tadcl\t$0,%edi\n\tmull\t44(%esp)\n\tmovl\t%esi,24(%esp)\n\txorl\t%esi,%esi\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\tadcl\t%edx,%esi\n\tmull\t40(%esp)\n\taddl\t%eax,%edi\n\tmovl\t%ecx,%eax\n\tadcl\t%edx,%esi\n\tmull\t36(%esp)\n\taddl\t%eax,%edi\n\tmovl\t12(%esp),%eax\n\tadcl\t%edx,%esi\n\tmull\t60(%esp)\n\taddl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:5", "text": "imull\t52(%esp),%eax\n\taddl\t%eax,%esi\n\tmovl\t(%esp),%eax\n\tadcl\t$0,%edi\n\tmull\t44(%esp)\n\tmovl\t%esi,24(%esp)\n\txorl\t%esi,%esi\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\tadcl\t%edx,%esi\n\tmull\t40(%esp)\n\taddl\t%eax,%edi\n\tmovl\t%ecx,%eax\n\tadcl\t%edx,%esi\n\tmull\t36(%esp)\n\taddl\t%eax,%edi\n\tmovl\t12(%esp),%eax\n\tadcl\t%edx,%esi\n\tmull\t60(%esp)\n\taddl\t%eax,%edi\n\tmovl\t16(%esp),%eax\n\tadcl\t%edx,%esi\n\timull\t56(%esp),%eax\n\taddl\t%eax,%edi\n\tmovl\t(%esp),%eax\n\tadcl\t$0,%esi\n\tmull\t48(%esp)\n\tmovl\t%edi,28(%esp)\n\txorl\t%edi,%edi\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tadcl\t%edx,%edi\n\tmull\t44(%esp)\n\taddl\t%eax,%esi\n\tmovl\t%ecx,%eax\n\tadcl\t%edx,%edi\n\tmull\t40(%esp)\n\taddl\t%eax,%esi\n\tmovl\t12(%esp),%eax\n\tadcl\t%edx,%edi\n\tmull\t36(%esp)\n\taddl\t%eax,%esi\n\tmovl\t16(%esp),%ecx\n\tadcl\t%edx,%edi\n\tmovl\t%ecx,%edx\n\timull\t60(%esp),%ecx\n\taddl\t%ecx,%esi\n\tmovl\t20(%esp),%eax\n\tadcl\t$0,%edi\n\timull\t36(%esp),%edx\n\taddl\t%edi,%edx\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$2,%edx\n\tandl\t$3,%edi\n\tleal\t(%edx,%edx,4),%edx\n\taddl\t%edx,%eax\n\tadcl\t$0,%ebx\n\tadcl\t$0,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:6", "text": "mull\t36(%esp)\n\taddl\t%eax,%esi\n\tmovl\t16(%esp),%ecx\n\tadcl\t%edx,%edi\n\tmovl\t%ecx,%edx\n\timull\t60(%esp),%ecx\n\taddl\t%ecx,%esi\n\tmovl\t20(%esp),%eax\n\tadcl\t$0,%edi\n\timull\t36(%esp),%edx\n\taddl\t%edi,%edx\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$2,%edx\n\tandl\t$3,%edi\n\tleal\t(%edx,%edx,4),%edx\n\taddl\t%edx,%eax\n\tadcl\t$0,%ebx\n\tadcl\t$0,%ecx\n\tadcl\t$0,%esi\n\tadcl\t$0,%edi\n\tcmpl\t92(%esp),%ebp\n\tjne\t.L004loop\n\tmovl\t84(%esp),%edx\n\taddl\t$64,%esp\n\tmovl\t%eax,(%edx)\n\tmovl\t%ebx,4(%edx)\n\tmovl\t%ecx,8(%edx)\n\tmovl\t%esi,12(%edx)\n\tmovl\t%edi,16(%edx)\n.L003nodata:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpoly1305_blocks,.-.L_poly1305_blocks_begin\n.globl\tpoly1305_emit\n.type\tpoly1305_emit,@function\n.align\t16\npoly1305_emit:\n.L_poly1305_emit_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%ebp\n.Lenter_emit:\n\tmovl\t24(%esp),%edi\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%ebx\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\tmovl\t16(%ebp),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:7", "text": ".align\t16\npoly1305_emit:\n.L_poly1305_emit_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%ebp\n.Lenter_emit:\n\tmovl\t24(%esp),%edi\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%ebx\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\tmovl\t16(%ebp),%esi\n\taddl\t$5,%eax\n\tadcl\t$0,%ebx\n\tadcl\t$0,%ecx\n\tadcl\t$0,%edx\n\tadcl\t$0,%esi\n\tshrl\t$2,%esi\n\tnegl\t%esi\n\tandl\t%esi,%eax\n\tandl\t%esi,%ebx\n\tandl\t%esi,%ecx\n\tandl\t%esi,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tnotl\t%esi\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%ebx\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\tmovl\t28(%esp),%ebp\n\tandl\t%esi,%eax\n\tandl\t%esi,%ebx\n\tandl\t%esi,%ecx\n\tandl\t%esi,%edx\n\torl\t(%edi),%eax\n\torl\t4(%edi),%ebx\n\torl\t8(%edi),%ecx\n\torl\t12(%edi),%edx\n\taddl\t(%ebp),%eax\n\tadcl\t4(%ebp),%ebx\n\tadcl\t8(%ebp),%ecx\n\tadcl\t12(%ebp),%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:8", "text": "movl\t28(%esp),%ebp\n\tandl\t%esi,%eax\n\tandl\t%esi,%ebx\n\tandl\t%esi,%ecx\n\tandl\t%esi,%edx\n\torl\t(%edi),%eax\n\torl\t4(%edi),%ebx\n\torl\t8(%edi),%ecx\n\torl\t12(%edi),%edx\n\taddl\t(%ebp),%eax\n\tadcl\t4(%ebp),%ebx\n\tadcl\t8(%ebp),%ecx\n\tadcl\t12(%ebp),%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tpoly1305_emit,.-.L_poly1305_emit_begin\n.align\t32\n.type\t_poly1305_init_sse2,@function\n.align\t16\n_poly1305_init_sse2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovdqu\t24(%edi),%xmm4\n\tleal\t48(%edi),%edi\n\tmovl\t%esp,%ebp\n\tsubl\t$224,%esp\n\tandl\t$-16,%esp\n\tmovq\t64(%ebx),%xmm7\n\tmovdqa\t%xmm4,%xmm0\n\tmovdqa\t%xmm4,%xmm1\n\tmovdqa\t%xmm4,%xmm2\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm1\n\tpsrldq\t$6,%xmm2\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpsrldq\t$13,%xmm4\n\tleal\t144(%esp),%edx\n\tmovl\t$2,%ecx\n.L005square:\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovdqa\t%xmm4,64(%esp)\n\tmovdqa\t%xmm1,%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:9", "text": "movdqa\t%xmm4,%xmm2\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm1\n\tpsrldq\t$6,%xmm2\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpsrldq\t$13,%xmm4\n\tleal\t144(%esp),%edx\n\tmovl\t$2,%ecx\n.L005square:\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovdqa\t%xmm4,64(%esp)\n\tmovdqa\t%xmm1,%xmm6\n\tmovdqa\t%xmm2,%xmm5\n\tpslld\t$2,%xmm6\n\tpslld\t$2,%xmm5\n\tpaddd\t%xmm1,%xmm6\n\tpaddd\t%xmm2,%xmm5\n\tmovdqa\t%xmm6,80(%esp)\n\tmovdqa\t%xmm5,96(%esp)\n\tmovdqa\t%xmm3,%xmm6\n\tmovdqa\t%xmm4,%xmm5\n\tpslld\t$2,%xmm6\n\tpslld\t$2,%xmm5\n\tpaddd\t%xmm3,%xmm6\n\tpaddd\t%xmm4,%xmm5\n\tmovdqa\t%xmm6,112(%esp)\n\tmovdqa\t%xmm5,128(%esp)\n\tpshufd\t$68,%xmm0,%xmm6\n\tmovdqa\t%xmm1,%xmm5\n\tpshufd\t$68,%xmm1,%xmm1\n\tpshufd\t$68,%xmm2,%xmm2\n\tpshufd\t$68,%xmm3,%xmm3\n\tpshufd\t$68,%xmm4,%xmm4\n\tmovdqa\t%xmm6,(%edx)\n\tmovdqa\t%xmm1,16(%edx)\n\tmovdqa\t%xmm2,32(%edx)\n\tmovdqa\t%xmm3,48(%edx)\n\tmovdqa\t%xmm4,64(%edx)\n\tpmuludq\t%xmm0,%xmm4\n\tpmuludq\t%xmm0,%xmm3\n\tpmuludq\t%xmm0,%xmm2\n\tpmuludq\t%xmm0,%xmm1\n\tpmuludq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%edx),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t80(%esp),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:10", "text": "pshufd\t$68,%xmm4,%xmm4\n\tmovdqa\t%xmm6,(%edx)\n\tmovdqa\t%xmm1,16(%edx)\n\tmovdqa\t%xmm2,32(%edx)\n\tmovdqa\t%xmm3,48(%edx)\n\tmovdqa\t%xmm4,64(%edx)\n\tpmuludq\t%xmm0,%xmm4\n\tpmuludq\t%xmm0,%xmm3\n\tpmuludq\t%xmm0,%xmm2\n\tpmuludq\t%xmm0,%xmm1\n\tpmuludq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%edx),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t80(%esp),%xmm6\n\tpmuludq\t(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tpmuludq\t64(%edx),%xmm6\n\tmovdqa\t32(%esp),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t32(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t16(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm4\n\tmovdqa\t96(%esp),%xmm7\n\tpmuludq\t(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t64(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm2\n\tpmuludq\t48(%edx),%xmm5\n\tmovdqa\t48(%esp),%xmm6\n\tpaddq\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t112(%esp),%xmm5\n\tpmuludq\t(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%edx),%xmm7\n\tmovdqa\t64(%esp),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t128(%esp),%xmm6\n\tpmuludq\t(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%edx),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:11", "text": "movdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t112(%esp),%xmm5\n\tpmuludq\t(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%edx),%xmm7\n\tmovdqa\t64(%esp),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t128(%esp),%xmm6\n\tpmuludq\t(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tpmuludq\t48(%edx),%xmm6\n\tmovdqa\t64(%ebx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tmovdqa\t%xmm3,%xmm5\n\tpand\t%xmm7,%xmm3\n\tpsrlq\t$26,%xmm5\n\tpaddq\t%xmm4,%xmm5\n\tmovdqa\t%xmm0,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm6\n\tmovdqa\t%xmm5,%xmm4\n\tpaddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpaddd\t%xmm5,%xmm1\n\tpand\t%xmm7,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:12", "text": "psrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpaddd\t%xmm5,%xmm1\n\tpand\t%xmm7,%xmm3\n\tpaddd\t%xmm6,%xmm4\n\tdecl\t%ecx\n\tjz\t.L006square_break\n\tpunpcklqdq\t(%esp),%xmm0\n\tpunpcklqdq\t16(%esp),%xmm1\n\tpunpcklqdq\t32(%esp),%xmm2\n\tpunpcklqdq\t48(%esp),%xmm3\n\tpunpcklqdq\t64(%esp),%xmm4\n\tjmp\t.L005square\n.L006square_break:\n\tpsllq\t$32,%xmm0\n\tpsllq\t$32,%xmm1\n\tpsllq\t$32,%xmm2\n\tpsllq\t$32,%xmm3\n\tpsllq\t$32,%xmm4\n\tpor\t(%esp),%xmm0\n\tpor\t16(%esp),%xmm1\n\tpor\t32(%esp),%xmm2\n\tpor\t48(%esp),%xmm3\n\tpor\t64(%esp),%xmm4\n\tpshufd\t$141,%xmm0,%xmm0\n\tpshufd\t$141,%xmm1,%xmm1\n\tpshufd\t$141,%xmm2,%xmm2\n\tpshufd\t$141,%xmm3,%xmm3\n\tpshufd\t$141,%xmm4,%xmm4\n\tmovdqu\t%xmm0,(%edi)\n\tmovdqu\t%xmm1,16(%edi)\n\tmovdqu\t%xmm2,32(%edi)\n\tmovdqu\t%xmm3,48(%edi)\n\tmovdqu\t%xmm4,64(%edi)\n\tmovdqa\t%xmm1,%xmm6\n\tmovdqa\t%xmm2,%xmm5\n\tpslld\t$2,%xmm6\n\tpslld\t$2,%xmm5\n\tpaddd\t%xmm1,%xmm6\n\tpaddd\t%xmm2,%xmm5\n\tmovdqu\t%xmm6,80(%edi)\n\tmovdqu\t%xmm5,96(%edi)\n\tmovdqa\t%xmm3,%xmm6\n\tmovdqa\t%xmm4,%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:13", "text": "pshufd\t$141,%xmm0,%xmm0\n\tpshufd\t$141,%xmm1,%xmm1\n\tpshufd\t$141,%xmm2,%xmm2\n\tpshufd\t$141,%xmm3,%xmm3\n\tpshufd\t$141,%xmm4,%xmm4\n\tmovdqu\t%xmm0,(%edi)\n\tmovdqu\t%xmm1,16(%edi)\n\tmovdqu\t%xmm2,32(%edi)\n\tmovdqu\t%xmm3,48(%edi)\n\tmovdqu\t%xmm4,64(%edi)\n\tmovdqa\t%xmm1,%xmm6\n\tmovdqa\t%xmm2,%xmm5\n\tpslld\t$2,%xmm6\n\tpslld\t$2,%xmm5\n\tpaddd\t%xmm1,%xmm6\n\tpaddd\t%xmm2,%xmm5\n\tmovdqu\t%xmm6,80(%edi)\n\tmovdqu\t%xmm5,96(%edi)\n\tmovdqa\t%xmm3,%xmm6\n\tmovdqa\t%xmm4,%xmm5\n\tpslld\t$2,%xmm6\n\tpslld\t$2,%xmm5\n\tpaddd\t%xmm3,%xmm6\n\tpaddd\t%xmm4,%xmm5\n\tmovdqu\t%xmm6,112(%edi)\n\tmovdqu\t%xmm5,128(%edi)\n\tmovl\t%ebp,%esp\n\tleal\t-48(%edi),%edi\n\tret\n.size\t_poly1305_init_sse2,.-_poly1305_init_sse2\n.align\t32\n.type\t_poly1305_blocks_sse2,@function\n.align\t16\n_poly1305_blocks_sse2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n\tmovl\t20(%edi),%eax\n\tandl\t$-16,%ecx\n\tjz\t.L007nodata\n\tcmpl\t$64,%ecx\n\tjae\t.L008enter_sse2\n\ttestl\t%eax,%eax\n\tjz\t.Lenter_blocks\n.align\t16\n.L008enter_sse2:\n\tcall\t.L009pic_point\n.L009pic_point:\n\tpopl\t%ebx\n\tleal\t.Lconst_sse2-.L009pic_point(%ebx),%ebx\n\ttestl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:14", "text": "pushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n\tmovl\t20(%edi),%eax\n\tandl\t$-16,%ecx\n\tjz\t.L007nodata\n\tcmpl\t$64,%ecx\n\tjae\t.L008enter_sse2\n\ttestl\t%eax,%eax\n\tjz\t.Lenter_blocks\n.align\t16\n.L008enter_sse2:\n\tcall\t.L009pic_point\n.L009pic_point:\n\tpopl\t%ebx\n\tleal\t.Lconst_sse2-.L009pic_point(%ebx),%ebx\n\ttestl\t%eax,%eax\n\tjnz\t.L010base2_26\n\tcall\t_poly1305_init_sse2\n\tmovl\t(%edi),%eax\n\tmovl\t3(%edi),%ecx\n\tmovl\t6(%edi),%edx\n\tmovl\t9(%edi),%esi\n\tmovl\t13(%edi),%ebp\n\tmovl\t$1,20(%edi)\n\tshrl\t$2,%ecx\n\tandl\t$67108863,%eax\n\tshrl\t$4,%edx\n\tandl\t$67108863,%ecx\n\tshrl\t$6,%esi\n\tandl\t$67108863,%edx\n\tmovd\t%eax,%xmm0\n\tmovd\t%ecx,%xmm1\n\tmovd\t%edx,%xmm2\n\tmovd\t%esi,%xmm3\n\tmovd\t%ebp,%xmm4\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n\tjmp\t.L011base2_32\n.align\t16\n.L010base2_26:\n\tmovd\t(%edi),%xmm0\n\tmovd\t4(%edi),%xmm1\n\tmovd\t8(%edi),%xmm2\n\tmovd\t12(%edi),%xmm3\n\tmovd\t16(%edi),%xmm4\n\tmovdqa\t64(%ebx),%xmm7\n.L011base2_32:\n\tmovl\t32(%esp),%eax\n\tmovl\t%esp,%ebp\n\tsubl\t$528,%esp\n\tandl\t$-16,%esp\n\tleal\t48(%edi),%edi\n\tshll\t$24,%eax\n\ttestl\t$31,%ecx\n\tjz\t.L012even\n\tmovdqu\t(%esi),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:15", "text": "movl\t28(%esp),%ecx\n\tjmp\t.L011base2_32\n.align\t16\n.L010base2_26:\n\tmovd\t(%edi),%xmm0\n\tmovd\t4(%edi),%xmm1\n\tmovd\t8(%edi),%xmm2\n\tmovd\t12(%edi),%xmm3\n\tmovd\t16(%edi),%xmm4\n\tmovdqa\t64(%ebx),%xmm7\n.L011base2_32:\n\tmovl\t32(%esp),%eax\n\tmovl\t%esp,%ebp\n\tsubl\t$528,%esp\n\tandl\t$-16,%esp\n\tleal\t48(%edi),%edi\n\tshll\t$24,%eax\n\ttestl\t$31,%ecx\n\tjz\t.L012even\n\tmovdqu\t(%esi),%xmm6\n\tleal\t16(%esi),%esi\n\tmovdqa\t%xmm6,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpaddd\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpsrldq\t$6,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpaddd\t%xmm5,%xmm1\n\tmovdqa\t%xmm6,%xmm5\n\tpsrlq\t$4,%xmm6\n\tpand\t%xmm7,%xmm6\n\tpaddd\t%xmm6,%xmm2\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$30,%xmm5\n\tpand\t%xmm7,%xmm5\n\tpsrldq\t$7,%xmm6\n\tpaddd\t%xmm5,%xmm3\n\tmovd\t%eax,%xmm5\n\tpaddd\t%xmm6,%xmm4\n\tmovd\t12(%edi),%xmm6\n\tpaddd\t%xmm5,%xmm4\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovdqa\t%xmm4,64(%esp)\n\tpmuludq\t%xmm6,%xmm0\n\tpmuludq\t%xmm6,%xmm1\n\tpmuludq\t%xmm6,%xmm2\n\tmovd\t28(%edi),%xmm5\n\tpmuludq\t%xmm6,%xmm3\n\tpmuludq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%esp),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:16", "text": "movd\t12(%edi),%xmm6\n\tpaddd\t%xmm5,%xmm4\n\tmovdqa\t%xmm0,(%esp)\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovdqa\t%xmm4,64(%esp)\n\tpmuludq\t%xmm6,%xmm0\n\tpmuludq\t%xmm6,%xmm1\n\tpmuludq\t%xmm6,%xmm2\n\tmovd\t28(%edi),%xmm5\n\tpmuludq\t%xmm6,%xmm3\n\tpmuludq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%esp),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovd\t92(%edi),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tpmuludq\t64(%esp),%xmm6\n\tmovd\t44(%edi),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t32(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t16(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm4\n\tmovd\t108(%edi),%xmm7\n\tpmuludq\t(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t64(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm2\n\tpmuludq\t48(%esp),%xmm5\n\tmovd\t60(%edi),%xmm6\n\tpaddq\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovd\t124(%edi),%xmm5\n\tpmuludq\t(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%esp),%xmm7\n\tmovd\t76(%edi),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tmovd\t140(%edi),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:17", "text": "movd\t60(%edi),%xmm6\n\tpaddq\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovd\t124(%edi),%xmm5\n\tpmuludq\t(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%esp),%xmm7\n\tmovd\t76(%edi),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tmovd\t140(%edi),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tpmuludq\t48(%esp),%xmm6\n\tmovdqa\t64(%ebx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tmovdqa\t%xmm3,%xmm5\n\tpand\t%xmm7,%xmm3\n\tpsrlq\t$26,%xmm5\n\tpaddq\t%xmm4,%xmm5\n\tmovdqa\t%xmm0,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm6\n\tmovdqa\t%xmm5,%xmm4\n\tpaddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:18", "text": "movdqa\t%xmm5,%xmm4\n\tpaddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpaddd\t%xmm5,%xmm1\n\tpand\t%xmm7,%xmm3\n\tpaddd\t%xmm6,%xmm4\n\tsubl\t$16,%ecx\n\tjz\t.L013done\n.L012even:\n\tleal\t384(%esp),%edx\n\tleal\t-32(%esi),%eax\n\tsubl\t$64,%ecx\n\tmovdqu\t(%edi),%xmm5\n\tpshufd\t$68,%xmm5,%xmm6\n\tcmovbl\t%eax,%esi\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,(%edx)\n\tleal\t160(%esp),%eax\n\tmovdqu\t16(%edi),%xmm6\n\tmovdqa\t%xmm5,-144(%edx)\n\tpshufd\t$68,%xmm6,%xmm5\n\tpshufd\t$238,%xmm6,%xmm6\n\tmovdqa\t%xmm5,16(%edx)\n\tmovdqu\t32(%edi),%xmm5\n\tmovdqa\t%xmm6,-128(%edx)\n\tpshufd\t$68,%xmm5,%xmm6\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,32(%edx)\n\tmovdqu\t48(%edi),%xmm6\n\tmovdqa\t%xmm5,-112(%edx)\n\tpshufd\t$68,%xmm6,%xmm5\n\tpshufd\t$238,%xmm6,%xmm6\n\tmovdqa\t%xmm5,48(%edx)\n\tmovdqu\t64(%edi),%xmm5\n\tmovdqa\t%xmm6,-96(%edx)\n\tpshufd\t$68,%xmm5,%xmm6\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,64(%edx)\n\tmovdqu\t80(%edi),%xmm6\n\tmovdqa\t%xmm5,-80(%edx)\n\tpshufd\t$68,%xmm6,%xmm5\n\tpshufd\t$238,%xmm6,%xmm6\n\tmovdqa\t%xmm5,80(%edx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:19", "text": "movdqu\t32(%edi),%xmm5\n\tmovdqa\t%xmm6,-128(%edx)\n\tpshufd\t$68,%xmm5,%xmm6\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,32(%edx)\n\tmovdqu\t48(%edi),%xmm6\n\tmovdqa\t%xmm5,-112(%edx)\n\tpshufd\t$68,%xmm6,%xmm5\n\tpshufd\t$238,%xmm6,%xmm6\n\tmovdqa\t%xmm5,48(%edx)\n\tmovdqu\t64(%edi),%xmm5\n\tmovdqa\t%xmm6,-96(%edx)\n\tpshufd\t$68,%xmm5,%xmm6\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,64(%edx)\n\tmovdqu\t80(%edi),%xmm6\n\tmovdqa\t%xmm5,-80(%edx)\n\tpshufd\t$68,%xmm6,%xmm5\n\tpshufd\t$238,%xmm6,%xmm6\n\tmovdqa\t%xmm5,80(%edx)\n\tmovdqu\t96(%edi),%xmm5\n\tmovdqa\t%xmm6,-64(%edx)\n\tpshufd\t$68,%xmm5,%xmm6\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,96(%edx)\n\tmovdqu\t112(%edi),%xmm6\n\tmovdqa\t%xmm5,-48(%edx)\n\tpshufd\t$68,%xmm6,%xmm5\n\tpshufd\t$238,%xmm6,%xmm6\n\tmovdqa\t%xmm5,112(%edx)\n\tmovdqu\t128(%edi),%xmm5\n\tmovdqa\t%xmm6,-32(%edx)\n\tpshufd\t$68,%xmm5,%xmm6\n\tpshufd\t$238,%xmm5,%xmm5\n\tmovdqa\t%xmm6,128(%edx)\n\tmovdqa\t%xmm5,-16(%edx)\n\tmovdqu\t32(%esi),%xmm5\n\tmovdqu\t48(%esi),%xmm6\n\tleal\t32(%esi),%esi\n\tmovdqa\t%xmm2,112(%esp)\n\tmovdqa\t%xmm3,128(%esp)\n\tmovdqa\t%xmm4,144(%esp)\n\tmovdqa\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm3\n\tpsrldq\t$6,%xmm2\n\tpsrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:20", "text": "movdqa\t%xmm3,128(%esp)\n\tmovdqa\t%xmm4,144(%esp)\n\tmovdqa\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm3\n\tpsrldq\t$6,%xmm2\n\tpsrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpor\t(%ebx),%xmm4\n\tmovdqa\t%xmm0,80(%esp)\n\tmovdqa\t%xmm1,96(%esp)\n\tjbe\t.L014skip_loop\n\tjmp\t.L015loop\n.align\t32\n.L015loop:\n\tmovdqa\t-144(%edx),%xmm7\n\tmovdqa\t%xmm6,16(%eax)\n\tmovdqa\t%xmm2,32(%eax)\n\tmovdqa\t%xmm3,48(%eax)\n\tmovdqa\t%xmm4,64(%eax)\n\tmovdqa\t%xmm5,%xmm1\n\tpmuludq\t%xmm7,%xmm5\n\tmovdqa\t%xmm6,%xmm0\n\tpmuludq\t%xmm7,%xmm6\n\tpmuludq\t%xmm7,%xmm2\n\tpmuludq\t%xmm7,%xmm3\n\tpmuludq\t%xmm7,%xmm4\n\tpmuludq\t-16(%edx),%xmm0\n\tmovdqa\t%xmm1,%xmm7\n\tpmuludq\t-128(%edx),%xmm1\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-112(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-96(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t16(%eax),%xmm7\n\tpmuludq\t-80(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-128(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-112(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t32(%eax),%xmm7\n\tpmuludq\t-96(%edx),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:21", "text": "movdqa\t%xmm1,%xmm7\n\tpmuludq\t-128(%edx),%xmm1\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-112(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-96(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t16(%eax),%xmm7\n\tpmuludq\t-80(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-128(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-112(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t32(%eax),%xmm7\n\tpmuludq\t-96(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-32(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-16(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t-128(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t48(%eax),%xmm5\n\tpmuludq\t-112(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-48(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t-32(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t64(%eax),%xmm6\n\tpmuludq\t-128(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t-16(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-64(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-48(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t64(%ebx),%xmm7\n\tpmuludq\t-32(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tmovdqu\t-32(%esi),%xmm5\n\tmovdqu\t-16(%esi),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:22", "text": "pmuludq\t-16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t64(%eax),%xmm6\n\tpmuludq\t-128(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t-16(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t-64(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t-48(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t64(%ebx),%xmm7\n\tpmuludq\t-32(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tmovdqu\t-32(%esi),%xmm5\n\tmovdqu\t-16(%esi),%xmm6\n\tleal\t32(%esi),%esi\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovdqa\t%xmm4,64(%esp)\n\tmovdqa\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm3\n\tpsrldq\t$6,%xmm2\n\tpsrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpor\t(%ebx),%xmm4\n\tleal\t-32(%esi),%eax\n\tsubl\t$64,%ecx\n\tpaddd\t80(%esp),%xmm5\n\tpaddd\t96(%esp),%xmm6\n\tpaddd\t112(%esp),%xmm2\n\tpaddd\t128(%esp),%xmm3\n\tpaddd\t144(%esp),%xmm4\n\tcmovbl\t%eax,%esi\n\tleal\t160(%esp),%eax\n\tmovdqa\t(%edx),%xmm7\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm6,16(%eax)\n\tmovdqa\t%xmm2,32(%eax)\n\tmovdqa\t%xmm3,48(%eax)\n\tmovdqa\t%xmm4,64(%eax)\n\tmovdqa\t%xmm5,%xmm1\n\tpmuludq\t%xmm7,%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:23", "text": "pand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpor\t(%ebx),%xmm4\n\tleal\t-32(%esi),%eax\n\tsubl\t$64,%ecx\n\tpaddd\t80(%esp),%xmm5\n\tpaddd\t96(%esp),%xmm6\n\tpaddd\t112(%esp),%xmm2\n\tpaddd\t128(%esp),%xmm3\n\tpaddd\t144(%esp),%xmm4\n\tcmovbl\t%eax,%esi\n\tleal\t160(%esp),%eax\n\tmovdqa\t(%edx),%xmm7\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm6,16(%eax)\n\tmovdqa\t%xmm2,32(%eax)\n\tmovdqa\t%xmm3,48(%eax)\n\tmovdqa\t%xmm4,64(%eax)\n\tmovdqa\t%xmm5,%xmm1\n\tpmuludq\t%xmm7,%xmm5\n\tpaddq\t%xmm0,%xmm5\n\tmovdqa\t%xmm6,%xmm0\n\tpmuludq\t%xmm7,%xmm6\n\tpmuludq\t%xmm7,%xmm2\n\tpmuludq\t%xmm7,%xmm3\n\tpmuludq\t%xmm7,%xmm4\n\tpaddq\t16(%esp),%xmm6\n\tpaddq\t32(%esp),%xmm2\n\tpaddq\t48(%esp),%xmm3\n\tpaddq\t64(%esp),%xmm4\n\tpmuludq\t128(%edx),%xmm0\n\tmovdqa\t%xmm1,%xmm7\n\tpmuludq\t16(%edx),%xmm1\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t32(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t16(%eax),%xmm7\n\tpmuludq\t64(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t32(%eax),%xmm7\n\tpmuludq\t48(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t112(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t128(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%edx),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:24", "text": "movdqa\t16(%eax),%xmm7\n\tpmuludq\t64(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t32(%eax),%xmm7\n\tpmuludq\t48(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t112(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t128(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t48(%eax),%xmm5\n\tpmuludq\t32(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t96(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t112(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t128(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t64(%eax),%xmm6\n\tpmuludq\t16(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t128(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t80(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t96(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t64(%ebx),%xmm7\n\tpmuludq\t112(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tmovdqa\t%xmm3,%xmm5\n\tpand\t%xmm7,%xmm3\n\tpsrlq\t$26,%xmm5\n\tpaddq\t%xmm4,%xmm5\n\tmovdqa\t%xmm0,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm6\n\tmovdqa\t%xmm5,%xmm4\n\tpaddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:25", "text": "pmuludq\t80(%edx),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t96(%edx),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t64(%ebx),%xmm7\n\tpmuludq\t112(%edx),%xmm6\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tmovdqa\t%xmm3,%xmm5\n\tpand\t%xmm7,%xmm3\n\tpsrlq\t$26,%xmm5\n\tpaddq\t%xmm4,%xmm5\n\tmovdqa\t%xmm0,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm6\n\tmovdqa\t%xmm5,%xmm4\n\tpaddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpaddd\t%xmm5,%xmm1\n\tpand\t%xmm7,%xmm3\n\tpaddd\t%xmm6,%xmm4\n\tmovdqu\t32(%esi),%xmm5\n\tmovdqu\t48(%esi),%xmm6\n\tleal\t32(%esi),%esi\n\tmovdqa\t%xmm2,112(%esp)\n\tmovdqa\t%xmm3,128(%esp)\n\tmovdqa\t%xmm4,144(%esp)\n\tmovdqa\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm3\n\tpsrldq\t$6,%xmm2\n\tpsrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:26", "text": "movdqu\t48(%esi),%xmm6\n\tleal\t32(%esi),%esi\n\tmovdqa\t%xmm2,112(%esp)\n\tmovdqa\t%xmm3,128(%esp)\n\tmovdqa\t%xmm4,144(%esp)\n\tmovdqa\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm3\n\tpsrldq\t$6,%xmm2\n\tpsrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpor\t(%ebx),%xmm4\n\tmovdqa\t%xmm0,80(%esp)\n\tmovdqa\t%xmm1,96(%esp)\n\tja\t.L015loop\n.L014skip_loop:\n\tpshufd\t$16,-144(%edx),%xmm7\n\taddl\t$32,%ecx\n\tjnz\t.L016long_tail\n\tpaddd\t%xmm0,%xmm5\n\tpaddd\t%xmm1,%xmm6\n\tpaddd\t112(%esp),%xmm2\n\tpaddd\t128(%esp),%xmm3\n\tpaddd\t144(%esp),%xmm4\n.L016long_tail:\n\tmovdqa\t%xmm5,(%eax)\n\tmovdqa\t%xmm6,16(%eax)\n\tmovdqa\t%xmm2,32(%eax)\n\tmovdqa\t%xmm3,48(%eax)\n\tmovdqa\t%xmm4,64(%eax)\n\tpmuludq\t%xmm7,%xmm5\n\tpmuludq\t%xmm7,%xmm6\n\tpmuludq\t%xmm7,%xmm2\n\tmovdqa\t%xmm5,%xmm0\n\tpshufd\t$16,-128(%edx),%xmm5\n\tpmuludq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm1\n\tpmuludq\t%xmm7,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%eax),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tpshufd\t$16,-64(%edx),%xmm6\n\tpmuludq\t(%eax),%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:27", "text": "movdqa\t%xmm3,48(%eax)\n\tmovdqa\t%xmm4,64(%eax)\n\tpmuludq\t%xmm7,%xmm5\n\tpmuludq\t%xmm7,%xmm6\n\tpmuludq\t%xmm7,%xmm2\n\tmovdqa\t%xmm5,%xmm0\n\tpshufd\t$16,-128(%edx),%xmm5\n\tpmuludq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm1\n\tpmuludq\t%xmm7,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%eax),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tpshufd\t$16,-64(%edx),%xmm6\n\tpmuludq\t(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tpmuludq\t64(%eax),%xmm6\n\tpshufd\t$16,-112(%edx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t32(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t16(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm4\n\tpshufd\t$16,-48(%edx),%xmm7\n\tpmuludq\t(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t64(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm2\n\tpmuludq\t48(%eax),%xmm5\n\tpshufd\t$16,-96(%edx),%xmm6\n\tpaddq\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tpshufd\t$16,-32(%edx),%xmm5\n\tpmuludq\t(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%eax),%xmm7\n\tpshufd\t$16,-80(%edx),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tpshufd\t$16,-16(%edx),%xmm6\n\tpmuludq\t(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:28", "text": "pmuludq\t16(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tpshufd\t$16,-32(%edx),%xmm5\n\tpmuludq\t(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%eax),%xmm7\n\tpshufd\t$16,-80(%edx),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tpshufd\t$16,-16(%edx),%xmm6\n\tpmuludq\t(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%eax),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%eax),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%eax),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tpmuludq\t48(%eax),%xmm6\n\tmovdqa\t64(%ebx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n\tjz\t.L017short_tail\n\tmovdqu\t-32(%esi),%xmm5\n\tmovdqu\t-16(%esi),%xmm6\n\tleal\t32(%esi),%esi\n\tmovdqa\t%xmm2,32(%esp)\n\tmovdqa\t%xmm3,48(%esp)\n\tmovdqa\t%xmm4,64(%esp)\n\tmovdqa\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm3\n\tpsrldq\t$6,%xmm2\n\tpsrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpor\t(%ebx),%xmm4\n\tpshufd\t$16,(%edx),%xmm7\n\tpaddd\t80(%esp),%xmm5\n\tpaddd\t96(%esp),%xmm6\n\tpaddd\t112(%esp),%xmm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:29", "text": "psrldq\t$6,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm2\n\tpunpckhqdq\t%xmm6,%xmm4\n\tpunpcklqdq\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm3\n\tpsrlq\t$4,%xmm2\n\tpsrlq\t$30,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpsrlq\t$40,%xmm4\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm5\n\tpand\t%xmm7,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpand\t%xmm7,%xmm3\n\tpor\t(%ebx),%xmm4\n\tpshufd\t$16,(%edx),%xmm7\n\tpaddd\t80(%esp),%xmm5\n\tpaddd\t96(%esp),%xmm6\n\tpaddd\t112(%esp),%xmm2\n\tpaddd\t128(%esp),%xmm3\n\tpaddd\t144(%esp),%xmm4\n\tmovdqa\t%xmm5,(%esp)\n\tpmuludq\t%xmm7,%xmm5\n\tmovdqa\t%xmm6,16(%esp)\n\tpmuludq\t%xmm7,%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tmovdqa\t%xmm2,%xmm5\n\tpmuludq\t%xmm7,%xmm2\n\tpaddq\t%xmm6,%xmm1\n\tmovdqa\t%xmm3,%xmm6\n\tpmuludq\t%xmm7,%xmm3\n\tpaddq\t32(%esp),%xmm2\n\tmovdqa\t%xmm5,32(%esp)\n\tpshufd\t$16,16(%edx),%xmm5\n\tpaddq\t48(%esp),%xmm3\n\tmovdqa\t%xmm6,48(%esp)\n\tmovdqa\t%xmm4,%xmm6\n\tpmuludq\t%xmm7,%xmm4\n\tpaddq\t64(%esp),%xmm4\n\tmovdqa\t%xmm6,64(%esp)\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%esp),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tpshufd\t$16,80(%edx),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tpmuludq\t64(%esp),%xmm6\n\tpshufd\t$16,32(%edx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t32(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t16(%esp),%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:30", "text": "movdqa\t%xmm6,64(%esp)\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t48(%esp),%xmm5\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t32(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tpshufd\t$16,80(%edx),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm2\n\tpmuludq\t64(%esp),%xmm6\n\tpshufd\t$16,32(%edx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t32(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm0\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t16(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm4\n\tpshufd\t$16,96(%edx),%xmm7\n\tpmuludq\t(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t64(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm2\n\tpmuludq\t48(%esp),%xmm5\n\tpshufd\t$16,48(%edx),%xmm6\n\tpaddq\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t16(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm0\n\tpshufd\t$16,112(%edx),%xmm5\n\tpmuludq\t(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t64(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm3\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t48(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%esp),%xmm7\n\tpshufd\t$16,64(%edx),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tpshufd\t$16,128(%edx),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tpmuludq\t48(%esp),%xmm6\n\tmovdqa\t64(%ebx),%xmm7\n\tpaddq\t%xmm5,%xmm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:31", "text": "pmuludq\t48(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm2\n\tpmuludq\t32(%esp),%xmm7\n\tpshufd\t$16,64(%edx),%xmm5\n\tpaddq\t%xmm6,%xmm1\n\tpshufd\t$16,128(%edx),%xmm6\n\tpmuludq\t(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tpmuludq\t64(%esp),%xmm6\n\tpaddq\t%xmm5,%xmm4\n\tmovdqa\t%xmm7,%xmm5\n\tpmuludq\t16(%esp),%xmm7\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm5,%xmm6\n\tpmuludq\t32(%esp),%xmm5\n\tpaddq\t%xmm7,%xmm0\n\tpmuludq\t48(%esp),%xmm6\n\tmovdqa\t64(%ebx),%xmm7\n\tpaddq\t%xmm5,%xmm1\n\tpaddq\t%xmm6,%xmm2\n.L017short_tail:\n\tpshufd\t$78,%xmm4,%xmm6\n\tpshufd\t$78,%xmm3,%xmm5\n\tpaddq\t%xmm6,%xmm4\n\tpaddq\t%xmm5,%xmm3\n\tpshufd\t$78,%xmm0,%xmm6\n\tpshufd\t$78,%xmm1,%xmm5\n\tpaddq\t%xmm6,%xmm0\n\tpaddq\t%xmm5,%xmm1\n\tpshufd\t$78,%xmm2,%xmm6\n\tmovdqa\t%xmm3,%xmm5\n\tpand\t%xmm7,%xmm3\n\tpsrlq\t$26,%xmm5\n\tpaddq\t%xmm6,%xmm2\n\tpaddq\t%xmm4,%xmm5\n\tmovdqa\t%xmm0,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpsrlq\t$26,%xmm6\n\tmovdqa\t%xmm5,%xmm4\n\tpaddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpaddd\t%xmm5,%xmm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:32", "text": "paddq\t%xmm1,%xmm6\n\tpsrlq\t$26,%xmm5\n\tpand\t%xmm7,%xmm4\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$26,%xmm6\n\tpaddd\t%xmm5,%xmm0\n\tpsllq\t$2,%xmm5\n\tpaddq\t%xmm2,%xmm6\n\tpaddq\t%xmm0,%xmm5\n\tpand\t%xmm7,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm2\n\tpaddd\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$26,%xmm5\n\tmovdqa\t%xmm6,%xmm3\n\tpsrlq\t$26,%xmm6\n\tpand\t%xmm7,%xmm0\n\tpaddd\t%xmm5,%xmm1\n\tpand\t%xmm7,%xmm3\n\tpaddd\t%xmm6,%xmm4\n.L013done:\n\tmovd\t%xmm0,-48(%edi)\n\tmovd\t%xmm1,-44(%edi)\n\tmovd\t%xmm2,-40(%edi)\n\tmovd\t%xmm3,-36(%edi)\n\tmovd\t%xmm4,-32(%edi)\n\tmovl\t%ebp,%esp\n.L007nodata:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\t_poly1305_blocks_sse2,.-_poly1305_blocks_sse2\n.align\t32\n.type\t_poly1305_emit_sse2,@function\n.align\t16\n_poly1305_emit_sse2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%ebp\n\tcmpl\t$0,20(%ebp)\n\tje\t.Lenter_emit\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%edi\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\tmovl\t16(%ebp),%esi\n\tmovl\t%edi,%ebx\n\tshll\t$26,%edi\n\tshrl\t$6,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:33", "text": "#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%ebp\n\tcmpl\t$0,20(%ebp)\n\tje\t.Lenter_emit\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%edi\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\tmovl\t16(%ebp),%esi\n\tmovl\t%edi,%ebx\n\tshll\t$26,%edi\n\tshrl\t$6,%ebx\n\taddl\t%edi,%eax\n\tmovl\t%ecx,%edi\n\tadcl\t$0,%ebx\n\tshll\t$20,%edi\n\tshrl\t$12,%ecx\n\taddl\t%edi,%ebx\n\tmovl\t%edx,%edi\n\tadcl\t$0,%ecx\n\tshll\t$14,%edi\n\tshrl\t$18,%edx\n\taddl\t%edi,%ecx\n\tmovl\t%esi,%edi\n\tadcl\t$0,%edx\n\tshll\t$8,%edi\n\tshrl\t$24,%esi\n\taddl\t%edi,%edx\n\tadcl\t$0,%esi\n\tmovl\t%esi,%edi\n\tandl\t$3,%esi\n\tshrl\t$2,%edi\n\tleal\t(%edi,%edi,4),%ebp\n\tmovl\t24(%esp),%edi\n\taddl\t%ebp,%eax\n\tmovl\t28(%esp),%ebp\n\tadcl\t$0,%ebx\n\tadcl\t$0,%ecx\n\tadcl\t$0,%edx\n\tadcl\t$0,%esi\n\tmovd\t%eax,%xmm0\n\taddl\t$5,%eax\n\tmovd\t%ebx,%xmm1\n\tadcl\t$0,%ebx\n\tmovd\t%ecx,%xmm2\n\tadcl\t$0,%ecx\n\tmovd\t%edx,%xmm3\n\tadcl\t$0,%edx\n\tadcl\t$0,%esi\n\tshrl\t$2,%esi\n\tnegl\t%esi\n\tandl\t%esi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:34", "text": "leal\t(%edi,%edi,4),%ebp\n\tmovl\t24(%esp),%edi\n\taddl\t%ebp,%eax\n\tmovl\t28(%esp),%ebp\n\tadcl\t$0,%ebx\n\tadcl\t$0,%ecx\n\tadcl\t$0,%edx\n\tadcl\t$0,%esi\n\tmovd\t%eax,%xmm0\n\taddl\t$5,%eax\n\tmovd\t%ebx,%xmm1\n\tadcl\t$0,%ebx\n\tmovd\t%ecx,%xmm2\n\tadcl\t$0,%ecx\n\tmovd\t%edx,%xmm3\n\tadcl\t$0,%edx\n\tadcl\t$0,%esi\n\tshrl\t$2,%esi\n\tnegl\t%esi\n\tandl\t%esi,%eax\n\tandl\t%esi,%ebx\n\tandl\t%esi,%ecx\n\tandl\t%esi,%edx\n\tmovl\t%eax,(%edi)\n\tmovd\t%xmm0,%eax\n\tmovl\t%ebx,4(%edi)\n\tmovd\t%xmm1,%ebx\n\tmovl\t%ecx,8(%edi)\n\tmovd\t%xmm2,%ecx\n\tmovl\t%edx,12(%edi)\n\tmovd\t%xmm3,%edx\n\tnotl\t%esi\n\tandl\t%esi,%eax\n\tandl\t%esi,%ebx\n\torl\t(%edi),%eax\n\tandl\t%esi,%ecx\n\torl\t4(%edi),%ebx\n\tandl\t%esi,%edx\n\torl\t8(%edi),%ecx\n\torl\t12(%edi),%edx\n\taddl\t(%ebp),%eax\n\tadcl\t4(%ebp),%ebx\n\tmovl\t%eax,(%edi)\n\tadcl\t8(%ebp),%ecx\n\tmovl\t%ebx,4(%edi)\n\tadcl\t12(%ebp),%edx\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\t_poly1305_emit_sse2,.-_poly1305_emit_sse2\n.align\t64\n.Lconst_sse2:\n.long\t16777216,0,16777216,0,16777216,0,16777216,0\n.long\t0,0,0,0,0,0,0,0\n.long\t67108863,0,67108863,0,67108863,0,67108863,0\n.long\t268435455,268435452,268435452,268435452", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S:35", "text": "addl\t(%ebp),%eax\n\tadcl\t4(%ebp),%ebx\n\tmovl\t%eax,(%edi)\n\tadcl\t8(%ebp),%ecx\n\tmovl\t%ebx,4(%edi)\n\tadcl\t12(%ebp),%edx\n\tmovl\t%ecx,8(%edi)\n\tmovl\t%edx,12(%edi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\t_poly1305_emit_sse2,.-_poly1305_emit_sse2\n.align\t64\n.Lconst_sse2:\n.long\t16777216,0,16777216,0,16777216,0,16777216,0\n.long\t0,0,0,0,0,0,0,0\n.long\t67108863,0,67108863,0,67108863,0,67108863,0\n.long\t268435455,268435452,268435452,268435452\n.byte\t80,111,108,121,49,51,48,53,32,102,111,114,32,120,56,54\n.byte\t44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32\n.byte\t60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111\n.byte\t114,103,62,0\n.align\t4\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305-x86.S", "line_start": 1361, "line_end": 1403}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305.inc:1", "text": ".PATH.S: ${.PARSEDIR}\n\nPOLY1305_SRCS = poly1305-x86.S\nPOLY1305_CPPFLAGS+=-DPOLY1305_ASM\n\n.include \"../../poly1305.inc\"", "arch": "x86", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/poly1305.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tRC4\n.type\tRC4,@function\n.align\t16\nRC4:\n.L_RC4_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%edx\n\tmovl\t28(%esp),%esi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\txorl\t%ebx,%ebx\n\tcmpl\t$0,%edx\n\tje\t.L000abort\n\tmovb\t(%edi),%al\n\tmovb\t4(%edi),%bl\n\taddl\t$8,%edi\n\tleal\t(%esi,%edx,1),%ecx\n\tsubl\t%esi,%ebp\n\tmovl\t%ecx,24(%esp)\n\tincb\t%al\n\tcmpl\t$-1,256(%edi)\n\tje\t.L001RC4_CHAR\n\tmovl\t(%edi,%eax,4),%ecx\n\tandl\t$-4,%edx\n\tjz\t.L002loop1\n\tmovl\t%ebp,32(%esp)\n\ttestl\t$-8,%edx\n\tjz\t.L003go4loop4\n\tcall\t.L004PIC_me_up\n.L004PIC_me_up:\n\tpopl\t%ebp\n\tleal\tOPENSSL_ia32cap_P-.L004PIC_me_up(%ebp),%ebp\n\tbtl\t$26,(%ebp)\n\tjnc\t.L003go4loop4\n\tmovl\t32(%esp),%ebp\n\tandl\t$-8,%edx\n\tleal\t-8(%esi,%edx,1),%edx\n\tmovl\t%edx,-4(%edi)\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tmovq\t(%esi),%mm0\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:2", "text": ".L004PIC_me_up:\n\tpopl\t%ebp\n\tleal\tOPENSSL_ia32cap_P-.L004PIC_me_up(%ebp),%ebp\n\tbtl\t$26,(%ebp)\n\tjnc\t.L003go4loop4\n\tmovl\t32(%esp),%ebp\n\tandl\t$-8,%edx\n\tleal\t-8(%esi,%edx,1),%edx\n\tmovl\t%edx,-4(%edi)\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tmovq\t(%esi),%mm0\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm2\n\tjmp\t.L005loop_mmx_enter\n.align\t16\n.L006loop_mmx:\n\taddb\t%cl,%bl\n\tpsllq\t$56,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovq\t(%esi),%mm0\n\tmovq\t%mm2,-8(%ebp,%esi,1)\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm2\n.L005loop_mmx_enter:\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm0,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$8,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:3", "text": "movl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm0,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$8,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$16,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$24,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$32,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$40,%mm1\n\tmovl\t(%edi,%ebx,4),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:4", "text": "movzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$32,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$40,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\taddb\t%cl,%bl\n\tpsllq\t$48,%mm1\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\tincl\t%eax\n\taddl\t%ecx,%edx\n\tmovzbl\t%al,%eax\n\tmovzbl\t%dl,%edx\n\tpxor\t%mm1,%mm2\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovd\t(%edi,%edx,4),%mm1\n\tmovl\t%ebx,%edx\n\txorl\t%ebx,%ebx\n\tmovb\t%dl,%bl\n\tcmpl\t-4(%edi),%esi\n\tleal\t8(%esi),%esi\n\tjb\t.L006loop_mmx\n\tpsllq\t$56,%mm1\n\tpxor\t%mm1,%mm2\n\tmovq\t%mm2,-8(%ebp,%esi,1)\n\temms\n\tcmpl\t24(%esp),%esi\n\tje\t.L007done\n\tjmp\t.L002loop1\n.align\t16\n.L003go4loop4:\n\tleal\t-4(%esi,%edx,1),%edx\n\tmovl\t%edx,28(%esp)\n.L008loop4:\n\taddb\t%cl,%bl", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:5", "text": "movd\t(%edi,%edx,4),%mm1\n\tmovl\t%ebx,%edx\n\txorl\t%ebx,%ebx\n\tmovb\t%dl,%bl\n\tcmpl\t-4(%edi),%esi\n\tleal\t8(%esi),%esi\n\tjb\t.L006loop_mmx\n\tpsllq\t$56,%mm1\n\tpxor\t%mm1,%mm2\n\tmovq\t%mm2,-8(%ebp,%esi,1)\n\temms\n\tcmpl\t24(%esp),%esi\n\tje\t.L007done\n\tjmp\t.L002loop1\n.align\t16\n.L003go4loop4:\n\tleal\t-4(%esi,%edx,1),%edx\n\tmovl\t%edx,28(%esp)\n.L008loop4:\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\tmovl\t(%edi,%eax,4),%ecx\n\tmovl\t(%edi,%edx,4),%ebp\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\trorl\t$8,%ebp\n\tmovl\t(%edi,%eax,4),%ecx\n\torl\t(%edi,%edx,4),%ebp\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\trorl\t$8,%ebp\n\tmovl\t(%edi,%eax,4),%ecx\n\torl\t(%edi,%edx,4),%ebp\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\trorl\t$8,%ebp\n\tmovl\t32(%esp),%ecx\n\torl\t(%edi,%edx,4),%ebp\n\trorl\t$8,%ebp\n\txorl\t(%esi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:6", "text": "movl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\trorl\t$8,%ebp\n\tmovl\t(%edi,%eax,4),%ecx\n\torl\t(%edi,%edx,4),%ebp\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\trorl\t$8,%ebp\n\tmovl\t32(%esp),%ecx\n\torl\t(%edi,%edx,4),%ebp\n\trorl\t$8,%ebp\n\txorl\t(%esi),%ebp\n\tcmpl\t28(%esp),%esi\n\tmovl\t%ebp,(%ecx,%esi,1)\n\tleal\t4(%esi),%esi\n\tmovl\t(%edi,%eax,4),%ecx\n\tjb\t.L008loop4\n\tcmpl\t24(%esp),%esi\n\tje\t.L007done\n\tmovl\t32(%esp),%ebp\n.align\t16\n.L002loop1:\n\taddb\t%cl,%bl\n\tmovl\t(%edi,%ebx,4),%edx\n\tmovl\t%ecx,(%edi,%ebx,4)\n\tmovl\t%edx,(%edi,%eax,4)\n\taddl\t%ecx,%edx\n\tincb\t%al\n\tandl\t$255,%edx\n\tmovl\t(%edi,%edx,4),%edx\n\txorb\t(%esi),%dl\n\tleal\t1(%esi),%esi\n\tmovl\t(%edi,%eax,4),%ecx\n\tcmpl\t24(%esp),%esi\n\tmovb\t%dl,-1(%ebp,%esi,1)\n\tjb\t.L002loop1\n\tjmp\t.L007done\n.align\t16\n.L001RC4_CHAR:\n\tmovzbl\t(%edi,%eax,1),%ecx\n.L009cloop1:\n\taddb\t%cl,%bl\n\tmovzbl\t(%edi,%ebx,1),%edx\n\tmovb\t%cl,(%edi,%ebx,1)\n\tmovb\t%dl,(%edi,%eax,1)\n\taddb\t%cl,%dl\n\tmovzbl\t(%edi,%edx,1),%edx\n\taddb\t$1,%al\n\txorb\t(%esi),%dl\n\tleal\t1(%esi),%esi\n\tmovzbl\t(%edi,%eax,1),%ecx\n\tcmpl\t24(%esp),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:7", "text": "movl\t(%edi,%eax,4),%ecx\n\tcmpl\t24(%esp),%esi\n\tmovb\t%dl,-1(%ebp,%esi,1)\n\tjb\t.L002loop1\n\tjmp\t.L007done\n.align\t16\n.L001RC4_CHAR:\n\tmovzbl\t(%edi,%eax,1),%ecx\n.L009cloop1:\n\taddb\t%cl,%bl\n\tmovzbl\t(%edi,%ebx,1),%edx\n\tmovb\t%cl,(%edi,%ebx,1)\n\tmovb\t%dl,(%edi,%eax,1)\n\taddb\t%cl,%dl\n\tmovzbl\t(%edi,%edx,1),%edx\n\taddb\t$1,%al\n\txorb\t(%esi),%dl\n\tleal\t1(%esi),%esi\n\tmovzbl\t(%edi,%eax,1),%ecx\n\tcmpl\t24(%esp),%esi\n\tmovb\t%dl,-1(%ebp,%esi,1)\n\tjb\t.L009cloop1\n.L007done:\n\tdecb\t%al\n\tmovl\t%ebx,-4(%edi)\n\tmovb\t%al,-8(%edi)\n.L000abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tRC4,.-.L_RC4_begin\n.globl\tRC4_set_key\n.type\tRC4_set_key,@function\n.align\t16\nRC4_set_key:\n.L_RC4_set_key_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebp\n\tmovl\t28(%esp),%esi\n\tcall\t.L010PIC_me_up\n.L010PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L010PIC_me_up(%edx),%edx\n\tleal\t8(%edi),%edi\n\tleal\t(%esi,%ebp,1),%esi\n\tnegl\t%ebp\n\txorl\t%eax,%eax\n\tmovl\t%ebp,-4(%edi)\n\tbtl\t$20,(%edx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:8", "text": ".byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebp\n\tmovl\t28(%esp),%esi\n\tcall\t.L010PIC_me_up\n.L010PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L010PIC_me_up(%edx),%edx\n\tleal\t8(%edi),%edi\n\tleal\t(%esi,%ebp,1),%esi\n\tnegl\t%ebp\n\txorl\t%eax,%eax\n\tmovl\t%ebp,-4(%edi)\n\tbtl\t$20,(%edx)\n\tjc\t.L011c1stloop\n.align\t16\n.L012w1stloop:\n\tmovl\t%eax,(%edi,%eax,4)\n\taddb\t$1,%al\n\tjnc\t.L012w1stloop\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n.align\t16\n.L013w2ndloop:\n\tmovl\t(%edi,%ecx,4),%eax\n\taddb\t(%esi,%ebp,1),%dl\n\taddb\t%al,%dl\n\taddl\t$1,%ebp\n\tmovl\t(%edi,%edx,4),%ebx\n\tjnz\t.L014wnowrap\n\tmovl\t-4(%edi),%ebp\n.L014wnowrap:\n\tmovl\t%eax,(%edi,%edx,4)\n\tmovl\t%ebx,(%edi,%ecx,4)\n\taddb\t$1,%cl\n\tjnc\t.L013w2ndloop\n\tjmp\t.L015exit\n.align\t16\n.L011c1stloop:\n\tmovb\t%al,(%edi,%eax,1)\n\taddb\t$1,%al\n\tjnc\t.L011c1stloop\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\txorl\t%ebx,%ebx\n.align\t16\n.L016c2ndloop:\n\tmovb\t(%edi,%ecx,1),%al\n\taddb\t(%esi,%ebp,1),%dl\n\taddb\t%al,%dl\n\taddl\t$1,%ebp\n\tmovb\t(%edi,%edx,1),%bl\n\tjnz\t.L017cnowrap\n\tmovl\t-4(%edi),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:9", "text": "addb\t$1,%cl\n\tjnc\t.L013w2ndloop\n\tjmp\t.L015exit\n.align\t16\n.L011c1stloop:\n\tmovb\t%al,(%edi,%eax,1)\n\taddb\t$1,%al\n\tjnc\t.L011c1stloop\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\txorl\t%ebx,%ebx\n.align\t16\n.L016c2ndloop:\n\tmovb\t(%edi,%ecx,1),%al\n\taddb\t(%esi,%ebp,1),%dl\n\taddb\t%al,%dl\n\taddl\t$1,%ebp\n\tmovb\t(%edi,%edx,1),%bl\n\tjnz\t.L017cnowrap\n\tmovl\t-4(%edi),%ebp\n.L017cnowrap:\n\tmovb\t%al,(%edi,%edx,1)\n\tmovb\t%bl,(%edi,%ecx,1)\n\taddb\t$1,%cl\n\tjnc\t.L016c2ndloop\n\tmovl\t$-1,256(%edi)\n.L015exit:\n\txorl\t%eax,%eax\n\tmovl\t%eax,-8(%edi)\n\tmovl\t%eax,-4(%edi)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tRC4_set_key,.-.L_RC4_set_key_begin\n.globl\tRC4_options\n.type\tRC4_options,@function\n.align\t16\nRC4_options:\n.L_RC4_options_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L018pic_point\n.L018pic_point:\n\tpopl\t%eax\n\tleal\t.L019opts-.L018pic_point(%eax),%eax\n\tcall\t.L020PIC_me_up\n.L020PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L020PIC_me_up(%edx),%edx\n\tmovl\t(%edx),%edx\n\tbtl\t$20,%edx\n\tjc\t.L0211xchar\n\tbtl\t$26,%edx\n\tjnc\t.L022ret\n\taddl\t$25,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:10", "text": ".L_RC4_options_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L018pic_point\n.L018pic_point:\n\tpopl\t%eax\n\tleal\t.L019opts-.L018pic_point(%eax),%eax\n\tcall\t.L020PIC_me_up\n.L020PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L020PIC_me_up(%edx),%edx\n\tmovl\t(%edx),%edx\n\tbtl\t$20,%edx\n\tjc\t.L0211xchar\n\tbtl\t$26,%edx\n\tjnc\t.L022ret\n\taddl\t$25,%eax\n\tret\n.L0211xchar:\n\taddl\t$12,%eax\n.L022ret:\n\tret\n.align\t64\n.L019opts:\n.byte\t114,99,52,40,52,120,44,105,110,116,41,0\n.byte\t114,99,52,40,49,120,44,99,104,97,114,41,0\n.byte\t114,99,52,40,56,120,44,109,109,120,41,0\n.byte\t82,67,52,32,102,111,114,32,120,56,54,44,32,67,82,89\n.byte\t80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114\n.byte\t111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t64\n.size\tRC4_options,.-.L_RC4_options_begin\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 361, "line_end": 413}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S:11", "text": ".long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc4-586.S", "line_start": 401, "line_end": 413}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tRC5_32_encrypt\n.type\tRC5_32_encrypt,@function\n.align\t16\nRC5_32_encrypt:\n.L_RC5_32_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t16(%esp),%edx\n\tmovl\t20(%esp),%ebp\n\n\tmovl\t(%edx),%edi\n\tmovl\t4(%edx),%esi\n\tpushl\t%ebx\n\tmovl\t(%ebp),%ebx\n\taddl\t4(%ebp),%edi\n\taddl\t8(%ebp),%esi\n\txorl\t%esi,%edi\n\tmovl\t12(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t16(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t20(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t24(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t28(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t32(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t36(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:2", "text": "xorl\t%edi,%esi\n\tmovl\t24(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t28(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t32(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t36(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t40(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t44(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t48(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t52(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t56(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t60(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t64(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t68(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:3", "text": "xorl\t%edi,%esi\n\tmovl\t56(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t60(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t64(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t68(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t72(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\tcmpl\t$8,%ebx\n\tje\t.L000rc5_exit\n\txorl\t%esi,%edi\n\tmovl\t76(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t80(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t84(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t88(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t92(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t96(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t100(%ebp),%eax\n\tmovl\t%esi,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:4", "text": "roll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t88(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t92(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t96(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t100(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t104(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\tcmpl\t$12,%ebx\n\tje\t.L000rc5_exit\n\txorl\t%esi,%edi\n\tmovl\t108(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t112(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t116(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t120(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t124(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t128(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:5", "text": "movl\t116(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t120(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t124(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t128(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n\txorl\t%esi,%edi\n\tmovl\t132(%ebp),%eax\n\tmovl\t%esi,%ecx\n\troll\t%cl,%edi\n\taddl\t%eax,%edi\n\txorl\t%edi,%esi\n\tmovl\t136(%ebp),%eax\n\tmovl\t%edi,%ecx\n\troll\t%cl,%esi\n\taddl\t%eax,%esi\n.L000rc5_exit:\n\tmovl\t%edi,(%edx)\n\tmovl\t%esi,4(%edx)\n\tpopl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebp\n\tret\n.size\tRC5_32_encrypt,.-.L_RC5_32_encrypt_begin\n.globl\tRC5_32_decrypt\n.type\tRC5_32_decrypt,@function\n.align\t16\nRC5_32_decrypt:\n.L_RC5_32_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t16(%esp),%edx\n\tmovl\t20(%esp),%ebp\n\n\tmovl\t(%edx),%edi\n\tmovl\t4(%edx),%esi\n\tpushl\t%ebx\n\tmovl\t(%ebp),%ebx\n\tcmpl\t$12,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:6", "text": ".align\t16\nRC5_32_decrypt:\n.L_RC5_32_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t16(%esp),%edx\n\tmovl\t20(%esp),%ebp\n\n\tmovl\t(%edx),%edi\n\tmovl\t4(%edx),%esi\n\tpushl\t%ebx\n\tmovl\t(%ebp),%ebx\n\tcmpl\t$12,%ebx\n\tje\t.L001rc5_dec_12\n\tcmpl\t$8,%ebx\n\tje\t.L002rc5_dec_8\n\tmovl\t136(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t132(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t128(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t124(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t120(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t116(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t112(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t108(%ebp),%eax\n\tsubl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:7", "text": "movl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t120(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t116(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t112(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t108(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n.L001rc5_dec_12:\n\tmovl\t104(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t100(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t96(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t92(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t88(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t84(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t80(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t76(%ebp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:8", "text": "subl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t88(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t84(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t80(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t76(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n.L002rc5_dec_8:\n\tmovl\t72(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t68(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t64(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t60(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t56(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t52(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t48(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:9", "text": "movl\t60(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t56(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t52(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t48(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t44(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t40(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t36(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t32(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t28(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t24(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t20(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t16(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:10", "text": "movl\t28(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t24(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t20(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tmovl\t16(%ebp),%eax\n\tsubl\t%eax,%esi\n\tmovl\t%edi,%ecx\n\trorl\t%cl,%esi\n\txorl\t%edi,%esi\n\tmovl\t12(%ebp),%eax\n\tsubl\t%eax,%edi\n\tmovl\t%esi,%ecx\n\trorl\t%cl,%edi\n\txorl\t%esi,%edi\n\tsubl\t8(%ebp),%esi\n\tsubl\t4(%ebp),%edi\n.L003rc5_exit:\n\tmovl\t%edi,(%edx)\n\tmovl\t%esi,4(%edx)\n\tpopl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebp\n\tret\n.size\tRC5_32_decrypt,.-.L_RC5_32_decrypt_begin\n.globl\tRC5_32_cbc_encrypt\n.type\tRC5_32_cbc_encrypt,@function\n.align\t16\nRC5_32_cbc_encrypt:\n.L_RC5_32_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:11", "text": ".L_RC5_32_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t28(%esp),%ebp\n\n\tmovl\t36(%esp),%ebx\n\tmovl\t(%ebx),%esi\n\tmovl\t4(%ebx),%edi\n\tpushl\t%edi\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%esi\n\tmovl\t%esp,%ebx\n\tmovl\t36(%esp),%esi\n\tmovl\t40(%esp),%edi\n\n\tmovl\t56(%esp),%ecx\n\n\tmovl\t48(%esp),%eax\n\tpushl\t%eax\n\tpushl\t%ebx\n\tcmpl\t$0,%ecx\n\tjz\t.L004decrypt\n\tandl\t$4294967288,%ebp\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tjz\t.L005encrypt_finish\n.L006encrypt_loop:\n\tmovl\t(%esi),%ecx\n\tmovl\t4(%esi),%edx\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L006encrypt_loop\n.L005encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L007finish\n\tcall\t.L008PIC_point\n.L008PIC_point:\n\tpopl\t%edx\n\tleal\t.L009cbc_enc_jmp_table-.L008PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:12", "text": "movl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L006encrypt_loop\n.L005encrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L007finish\n\tcall\t.L008PIC_point\n.L008PIC_point:\n\tpopl\t%edx\n\tleal\t.L009cbc_enc_jmp_table-.L008PIC_point(%edx),%ecx\n\tmovl\t(%ecx,%ebp,4),%ebp\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%ecx\n\txorl\t%edx,%edx\n\tjmp\t*%ebp\n.L010ej7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t6(%esi),%dh\n\tshll\t$8,%edx\n.L011ej6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t5(%esi),%dh\n.L012ej5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L013ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L014ejend\n.L015ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:13", "text": "#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t4(%esi),%dl\n.L013ej4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t(%esi),%ecx\n\tjmp\t.L014ejend\n.L015ej3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t2(%esi),%ch\n\tshll\t$8,%ecx\n.L016ej2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t1(%esi),%ch\n.L017ej1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovb\t(%esi),%cl\n.L014ejend:\n\txorl\t%ecx,%eax\n\txorl\t%edx,%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L007finish\n.L004decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L018decrypt_finish\n.L019decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:14", "text": "movl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_encrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t%eax,(%edi)\n\tmovl\t%ebx,4(%edi)\n\tjmp\t.L007finish\n.L004decrypt:\n\tandl\t$4294967288,%ebp\n\tmovl\t16(%esp),%eax\n\tmovl\t20(%esp),%ebx\n\tjz\t.L018decrypt_finish\n.L019decrypt_loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%ecx,(%edi)\n\tmovl\t%edx,4(%edi)\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\taddl\t$8,%esi\n\taddl\t$8,%edi\n\tsubl\t$8,%ebp\n\tjnz\t.L019decrypt_loop\n.L018decrypt_finish:\n\tmovl\t52(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L007finish\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L020dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L021dj6:\n\tmovb\t%dh,5(%edi)\n.L022dj5:\n\tmovb\t%dl,4(%edi)\n.L023dj4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:15", "text": "movl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tcall\t.L_RC5_32_decrypt_begin\n\tmovl\t8(%esp),%eax\n\tmovl\t12(%esp),%ebx\n\tmovl\t16(%esp),%ecx\n\tmovl\t20(%esp),%edx\n\txorl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n.L020dj7:\n\trorl\t$16,%edx\n\tmovb\t%dl,6(%edi)\n\tshrl\t$16,%edx\n.L021dj6:\n\tmovb\t%dh,5(%edi)\n.L022dj5:\n\tmovb\t%dl,4(%edi)\n.L023dj4:\n\tmovl\t%ecx,(%edi)\n\tjmp\t.L024djend\n.L025dj3:\n\trorl\t$16,%ecx\n\tmovb\t%cl,2(%edi)\n\tshll\t$16,%ecx\n.L026dj2:\n\tmovb\t%ch,1(%esi)\n.L027dj1:\n\tmovb\t%cl,(%esi)\n.L024djend:\n\tjmp\t.L007finish\n.L007finish:\n\tmovl\t60(%esp),%ecx\n\taddl\t$24,%esp\n\tmovl\t%eax,(%ecx)\n\tmovl\t%ebx,4(%ecx)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L009cbc_enc_jmp_table:\n.long\t0\n.long\t.L017ej1-.L008PIC_point\n.long\t.L016ej2-.L008PIC_point\n.long\t.L015ej3-.L008PIC_point\n.long\t.L013ej4-.L008PIC_point\n.long\t.L012ej5-.L008PIC_point\n.long\t.L011ej6-.L008PIC_point\n.long\t.L010ej7-.L008PIC_point\n.align\t64\n.size\tRC5_32_cbc_encrypt,.-.L_RC5_32_cbc_encrypt_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S:16", "text": "popl\t%ebp\n\tret\n.align\t64\n.L009cbc_enc_jmp_table:\n.long\t0\n.long\t.L017ej1-.L008PIC_point\n.long\t.L016ej2-.L008PIC_point\n.long\t.L015ej3-.L008PIC_point\n.long\t.L013ej4-.L008PIC_point\n.long\t.L012ej5-.L008PIC_point\n.long\t.L011ej6-.L008PIC_point\n.long\t.L010ej7-.L008PIC_point\n.align\t64\n.size\tRC5_32_cbc_encrypt,.-.L_RC5_32_cbc_encrypt_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rc5-586.S", "line_start": 601, "line_end": 631}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tripemd160_block_asm_data_order\n.type\tripemd160_block_asm_data_order,@function\n.align\t16\nripemd160_block_asm_data_order:\n.L_ripemd160_block_asm_data_order_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%eax\n\tpushl\t%esi\n\tmovl\t(%edx),%ecx\n\tpushl\t%edi\n\tmovl\t4(%edx),%esi\n\tpushl\t%ebp\n\tmovl\t8(%edx),%edi\n\tpushl\t%ebx\n\tsubl\t$108,%esp\n.L000start:\n\n\tmovl\t(%eax),%ebx\n\tmovl\t4(%eax),%ebp\n\tmovl\t%ebx,(%esp)\n\tmovl\t%ebp,4(%esp)\n\tmovl\t8(%eax),%ebx\n\tmovl\t12(%eax),%ebp\n\tmovl\t%ebx,8(%esp)\n\tmovl\t%ebp,12(%esp)\n\tmovl\t16(%eax),%ebx\n\tmovl\t20(%eax),%ebp\n\tmovl\t%ebx,16(%esp)\n\tmovl\t%ebp,20(%esp)\n\tmovl\t24(%eax),%ebx\n\tmovl\t28(%eax),%ebp\n\tmovl\t%ebx,24(%esp)\n\tmovl\t%ebp,28(%esp)\n\tmovl\t32(%eax),%ebx\n\tmovl\t36(%eax),%ebp\n\tmovl\t%ebx,32(%esp)\n\tmovl\t%ebp,36(%esp)\n\tmovl\t40(%eax),%ebx\n\tmovl\t44(%eax),%ebp\n\tmovl\t%ebx,40(%esp)\n\tmovl\t%ebp,44(%esp)\n\tmovl\t48(%eax),%ebx\n\tmovl\t52(%eax),%ebp\n\tmovl\t%ebx,48(%esp)\n\tmovl\t%ebp,52(%esp)\n\tmovl\t56(%eax),%ebx\n\tmovl\t60(%eax),%ebp\n\tmovl\t%ebx,56(%esp)\n\tmovl\t%ebp,60(%esp)\n\tmovl\t%edi,%eax\n\tmovl\t12(%edx),%ebx\n\tmovl\t16(%edx),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:2", "text": "movl\t32(%eax),%ebx\n\tmovl\t36(%eax),%ebp\n\tmovl\t%ebx,32(%esp)\n\tmovl\t%ebp,36(%esp)\n\tmovl\t40(%eax),%ebx\n\tmovl\t44(%eax),%ebp\n\tmovl\t%ebx,40(%esp)\n\tmovl\t%ebp,44(%esp)\n\tmovl\t48(%eax),%ebx\n\tmovl\t52(%eax),%ebp\n\tmovl\t%ebx,48(%esp)\n\tmovl\t%ebp,52(%esp)\n\tmovl\t56(%eax),%ebx\n\tmovl\t60(%eax),%ebp\n\tmovl\t%ebx,56(%esp)\n\tmovl\t%ebp,60(%esp)\n\tmovl\t%edi,%eax\n\tmovl\t12(%edx),%ebx\n\tmovl\t16(%edx),%ebp\n\n\txorl\t%ebx,%eax\n\tmovl\t(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%edx,%ecx\n\troll\t$10,%edi\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$11,%ecx\n\taddl\t%ebp,%ecx\n\n\txorl\t%edi,%eax\n\tmovl\t4(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$10,%esi\n\taddl\t%edx,%ebp\n\txorl\t%esi,%eax\n\troll\t$14,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t8(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\troll\t$10,%ecx\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$15,%ebx\n\taddl\t%edi,%ebx\n\n\txorl\t%ecx,%eax\n\tmovl\t12(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$10,%ebp\n\taddl\t%edx,%edi\n\txorl\t%ebp,%eax\n\troll\t$12,%edi\n\taddl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:3", "text": "movl\t8(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\troll\t$10,%ecx\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$15,%ebx\n\taddl\t%edi,%ebx\n\n\txorl\t%ecx,%eax\n\tmovl\t12(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$10,%ebp\n\taddl\t%edx,%edi\n\txorl\t%ebp,%eax\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t16(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%edx,%esi\n\troll\t$10,%ebx\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$5,%esi\n\taddl\t%ecx,%esi\n\n\txorl\t%ebx,%eax\n\tmovl\t20(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$10,%edi\n\taddl\t%edx,%ecx\n\txorl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t24(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\troll\t$10,%esi\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$7,%ebp\n\taddl\t%ebx,%ebp\n\n\txorl\t%esi,%eax\n\tmovl\t28(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$10,%ecx\n\taddl\t%edx,%ebx\n\txorl\t%ecx,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:4", "text": "movl\t24(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\troll\t$10,%esi\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$7,%ebp\n\taddl\t%ebx,%ebp\n\n\txorl\t%esi,%eax\n\tmovl\t28(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$10,%ecx\n\taddl\t%edx,%ebx\n\txorl\t%ecx,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t32(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%edx,%edi\n\troll\t$10,%ebp\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\txorl\t%ebp,%eax\n\tmovl\t36(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$10,%ebx\n\taddl\t%edx,%esi\n\txorl\t%ebx,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t40(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%edx,%ecx\n\troll\t$10,%edi\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\txorl\t%edi,%eax\n\tmovl\t44(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$10,%esi\n\taddl\t%edx,%ebp\n\txorl\t%esi,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:5", "text": "movl\t40(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%edx,%ecx\n\troll\t$10,%edi\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\txorl\t%edi,%eax\n\tmovl\t44(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$10,%esi\n\taddl\t%edx,%ebp\n\txorl\t%esi,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t48(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\troll\t$10,%ecx\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$6,%ebx\n\taddl\t%edi,%ebx\n\n\txorl\t%ecx,%eax\n\tmovl\t52(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$10,%ebp\n\taddl\t%edx,%edi\n\txorl\t%ebp,%eax\n\troll\t$7,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t56(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%edx,%esi\n\troll\t$10,%ebx\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$9,%esi\n\taddl\t%ecx,%esi\n\n\txorl\t%ebx,%eax\n\tmovl\t60(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%eax,%ecx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\taddl\t%edx,%ecx\n\tmovl\t28(%esp),%edx\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:6", "text": "movl\t56(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%edx,%esi\n\troll\t$10,%ebx\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$9,%esi\n\taddl\t%ecx,%esi\n\n\txorl\t%ebx,%eax\n\tmovl\t60(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%eax,%ecx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\taddl\t%edx,%ecx\n\tmovl\t28(%esp),%edx\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%edx,%ebp\n\tmovl\t%esi,%edx\n\tsubl\t%ecx,%eax\n\tandl\t%ecx,%edx\n\tandl\t%edi,%eax\n\torl\t%eax,%edx\n\tmovl\t16(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1518500249(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\troll\t$7,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\tsubl\t%ebp,%edx\n\tandl\t%ebp,%eax\n\tandl\t%esi,%edx\n\torl\t%edx,%eax\n\tmovl\t52(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t1518500249(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$6,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1518500249(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\troll\t$8,%edi\n\taddl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:7", "text": "movl\t52(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t1518500249(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$6,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1518500249(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\troll\t$8,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tsubl\t%edi,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebp,%edx\n\torl\t%edx,%eax\n\tmovl\t40(%esp),%edx\n\troll\t$10,%ebx\n\tleal\t1518500249(%esi,%eax,1),%esi\n\tmovl\t$-1,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%edx,%ecx\n\tmovl\t%edi,%edx\n\tsubl\t%esi,%eax\n\tandl\t%esi,%edx\n\tandl\t%ebx,%eax\n\torl\t%eax,%edx\n\tmovl\t24(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1518500249(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$11,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t60(%esp),%edx\n\troll\t$10,%esi\n\tleal\t1518500249(%ebp,%eax,1),%ebp\n\tmovl\t$-1,%eax\n\troll\t$9,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%edx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:8", "text": "roll\t$10,%edi\n\tleal\t1518500249(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$11,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t60(%esp),%edx\n\troll\t$10,%esi\n\tleal\t1518500249(%ebp,%eax,1),%ebp\n\tmovl\t$-1,%eax\n\troll\t$9,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%edx,%ebx\n\tmovl\t%ecx,%edx\n\tsubl\t%ebp,%eax\n\tandl\t%ebp,%edx\n\tandl\t%esi,%eax\n\torl\t%eax,%edx\n\tmovl\t12(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t1518500249(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\troll\t$7,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\tsubl\t%ebx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ecx,%edx\n\torl\t%edx,%eax\n\tmovl\t48(%esp),%edx\n\troll\t$10,%ebp\n\tleal\t1518500249(%edi,%eax,1),%edi\n\tmovl\t$-1,%eax\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%edx,%esi\n\tmovl\t%ebx,%edx\n\tsubl\t%edi,%eax\n\tandl\t%edi,%edx\n\tandl\t%ebp,%eax\n\torl\t%eax,%edx\n\tmovl\t(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t1518500249(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:9", "text": "leal\t1518500249(%edi,%eax,1),%edi\n\tmovl\t$-1,%eax\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%edx,%esi\n\tmovl\t%ebx,%edx\n\tsubl\t%edi,%eax\n\tandl\t%edi,%edx\n\tandl\t%ebp,%eax\n\torl\t%eax,%edx\n\tmovl\t(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t1518500249(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\tsubl\t%esi,%edx\n\tandl\t%esi,%eax\n\tandl\t%ebx,%edx\n\torl\t%edx,%eax\n\tmovl\t36(%esp),%edx\n\troll\t$10,%edi\n\tleal\t1518500249(%ecx,%eax,1),%ecx\n\tmovl\t$-1,%eax\n\troll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%edx,%ebp\n\tmovl\t%esi,%edx\n\tsubl\t%ecx,%eax\n\tandl\t%ecx,%edx\n\tandl\t%edi,%eax\n\torl\t%eax,%edx\n\tmovl\t20(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1518500249(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\tsubl\t%ebp,%edx\n\tandl\t%ebp,%eax\n\tandl\t%esi,%edx\n\torl\t%edx,%eax\n\tmovl\t8(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t1518500249(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:10", "text": "movl\t$-1,%edx\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\tsubl\t%ebp,%edx\n\tandl\t%ebp,%eax\n\tandl\t%esi,%edx\n\torl\t%edx,%eax\n\tmovl\t8(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t1518500249(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t56(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1518500249(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tsubl\t%edi,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebp,%edx\n\torl\t%edx,%eax\n\tmovl\t44(%esp),%edx\n\troll\t$10,%ebx\n\tleal\t1518500249(%esi,%eax,1),%esi\n\tmovl\t$-1,%eax\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%edx,%ecx\n\tmovl\t%edi,%edx\n\tsubl\t%esi,%eax\n\tandl\t%esi,%edx\n\tandl\t%ebx,%eax\n\torl\t%eax,%edx\n\tmovl\t32(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1518500249(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:11", "text": "roll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%edx,%ecx\n\tmovl\t%edi,%edx\n\tsubl\t%esi,%eax\n\tandl\t%esi,%edx\n\tandl\t%ebx,%eax\n\torl\t%eax,%edx\n\tmovl\t32(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1518500249(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1518500249(%ebp,%eax,1),%ebp\n\tsubl\t%ecx,%edx\n\troll\t$12,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t12(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%ebx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1859775393(%ebx,%edx,1),%ebx\n\tsubl\t%ebp,%eax\n\troll\t$11,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t40(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%edi\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1859775393(%edi,%eax,1),%edi\n\tsubl\t%ebx,%edx\n\troll\t$13,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t56(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1859775393(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$6,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:12", "text": "movl\t40(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%edi\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1859775393(%edi,%eax,1),%edi\n\tsubl\t%ebx,%edx\n\troll\t$13,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t56(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1859775393(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$6,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t16(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1859775393(%ecx,%eax,1),%ecx\n\tsubl\t%esi,%edx\n\troll\t$7,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t36(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebp\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t1859775393(%ebp,%edx,1),%ebp\n\tsubl\t%ecx,%eax\n\troll\t$14,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t60(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tsubl\t%ebp,%edx\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t32(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%edi\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:13", "text": "subl\t%ecx,%eax\n\troll\t$14,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t60(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tsubl\t%ebp,%edx\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t32(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%edi\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t1859775393(%edi,%edx,1),%edi\n\tsubl\t%ebx,%eax\n\troll\t$13,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t4(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%esi\n\txorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebx\n\tleal\t1859775393(%esi,%eax,1),%esi\n\tsubl\t%edi,%edx\n\troll\t$15,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t8(%esp),%eax\n\torl\t%esi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t1859775393(%ecx,%edx,1),%ecx\n\tsubl\t%esi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t28(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\txorl\t%edi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1859775393(%ebp,%eax,1),%ebp\n\tsubl\t%ecx,%edx\n\troll\t$8,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:14", "text": "xorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t1859775393(%ecx,%edx,1),%ecx\n\tsubl\t%esi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t28(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\txorl\t%edi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1859775393(%ebp,%eax,1),%ebp\n\tsubl\t%ecx,%edx\n\troll\t$8,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%ebx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1859775393(%ebx,%edx,1),%ebx\n\tsubl\t%ebp,%eax\n\troll\t$13,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t24(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%edi\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1859775393(%edi,%eax,1),%edi\n\tsubl\t%ebx,%edx\n\troll\t$6,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t52(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1859775393(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$5,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t44(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1859775393(%ecx,%eax,1),%ecx\n\tsubl\t%esi,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:15", "text": "movl\t52(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1859775393(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$5,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t44(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1859775393(%ecx,%eax,1),%ecx\n\tsubl\t%esi,%edx\n\troll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t20(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebp\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t1859775393(%ebp,%edx,1),%ebp\n\tsubl\t%ecx,%eax\n\troll\t$7,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t48(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tmovl\t%ecx,%eax\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2400959708(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:16", "text": "leal\t1859775393(%ebx,%eax,1),%ebx\n\tmovl\t%ecx,%eax\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2400959708(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t36(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t2400959708(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$12,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t44(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2400959708(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t40(%esp),%eax\n\troll\t$10,%esi\n\tleal\t2400959708(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:17", "text": "movl\t%edi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t40(%esp),%eax\n\troll\t$10,%esi\n\tleal\t2400959708(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t2400959708(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$14,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t32(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2400959708(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t48(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t2400959708(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$9,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:18", "text": "roll\t$15,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t48(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t2400959708(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$9,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t16(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2400959708(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t52(%esp),%eax\n\troll\t$10,%esi\n\tleal\t2400959708(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$9,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t12(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t2400959708(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$14,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t28(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:19", "text": "addl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t12(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t2400959708(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$14,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t28(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2400959708(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$5,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t60(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t2400959708(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$6,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t56(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2400959708(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t20(%esp),%eax\n\troll\t$10,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:20", "text": "subl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t56(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2400959708(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t20(%esp),%eax\n\troll\t$10,%esi\n\tleal\t2400959708(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$6,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t24(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t2400959708(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t8(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2400959708(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tsubl\t%ebp,%edx\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t16(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t2840853838(%esi,%edx,1),%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:21", "text": "subl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t8(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2400959708(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tsubl\t%ebp,%edx\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t16(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t2840853838(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$9,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t2840853838(%ecx,%eax,1),%ecx\n\tsubl\t%edi,%edx\n\troll\t$15,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t20(%esp),%eax\n\torl\t%esi,%edx\n\taddl\t%eax,%ebp\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t2840853838(%ebp,%edx,1),%ebp\n\tsubl\t%esi,%eax\n\troll\t$5,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t36(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebx\n\txorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t2840853838(%ebx,%eax,1),%ebx\n\tsubl\t%ecx,%edx\n\troll\t$11,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t28(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:22", "text": "roll\t$10,%esi\n\tleal\t2840853838(%ebp,%edx,1),%ebp\n\tsubl\t%esi,%eax\n\troll\t$5,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t36(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebx\n\txorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t2840853838(%ebx,%eax,1),%ebx\n\tsubl\t%ecx,%edx\n\troll\t$11,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t28(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%edi\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t2840853838(%edi,%edx,1),%edi\n\tsubl\t%ebp,%eax\n\troll\t$6,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t48(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%esi\n\txorl\t%edi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebx\n\tleal\t2840853838(%esi,%eax,1),%esi\n\tsubl\t%ebx,%edx\n\troll\t$8,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t8(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t2840853838(%ecx,%edx,1),%ecx\n\tsubl\t%edi,%eax\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t40(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t2840853838(%ebp,%eax,1),%ebp\n\tsubl\t%esi,%edx\n\troll\t$12,%ebp\n\taddl\t%ebx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:23", "text": "orl\t%edi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t2840853838(%ecx,%edx,1),%ecx\n\tsubl\t%edi,%eax\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t40(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t2840853838(%ebp,%eax,1),%ebp\n\tsubl\t%esi,%edx\n\troll\t$12,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t56(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebx\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t2840853838(%ebx,%edx,1),%ebx\n\tsubl\t%ecx,%eax\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t4(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%edi\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t2840853838(%edi,%eax,1),%edi\n\tsubl\t%ebp,%edx\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t12(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t2840853838(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t32(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:24", "text": "roll\t$12,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t12(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t2840853838(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t32(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t2840853838(%ecx,%eax,1),%ecx\n\tsubl\t%edi,%edx\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t44(%esp),%eax\n\torl\t%esi,%edx\n\taddl\t%eax,%ebp\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t2840853838(%ebp,%edx,1),%ebp\n\tsubl\t%esi,%eax\n\troll\t$11,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t24(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebx\n\txorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t2840853838(%ebx,%eax,1),%ebx\n\tsubl\t%ecx,%edx\n\troll\t$8,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t60(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%edi\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t2840853838(%edi,%edx,1),%edi\n\tsubl\t%ebp,%eax\n\troll\t$5,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t52(%esp),%edx\n\torl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:25", "text": "movl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t2840853838(%ebx,%eax,1),%ebx\n\tsubl\t%ecx,%edx\n\troll\t$8,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t60(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%edi\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t2840853838(%edi,%edx,1),%edi\n\tsubl\t%ebp,%eax\n\troll\t$5,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t52(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%esi\n\txorl\t%edi,%eax\n\tmovl\t128(%esp),%edx\n\troll\t$10,%ebx\n\tleal\t2840853838(%esi,%eax,1),%esi\n\tmovl\t%ecx,64(%esp)\n\troll\t$6,%esi\n\taddl\t%ecx,%esi\n\tmovl\t(%edx),%ecx\n\tmovl\t%esi,68(%esp)\n\tmovl\t%edi,72(%esp)\n\tmovl\t4(%edx),%esi\n\tmovl\t%ebx,76(%esp)\n\tmovl\t8(%edx),%edi\n\tmovl\t%ebp,80(%esp)\n\tmovl\t12(%edx),%ebx\n\tmovl\t16(%edx),%ebp\n\n\tmovl\t$-1,%edx\n\tsubl\t%ebx,%edx\n\tmovl\t20(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t1352829926(%ecx,%edx,1),%ecx\n\tsubl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t56(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1352829926(%ebp,%eax,1),%ebp\n\tsubl\t%esi,%edx\n\troll\t$9,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:26", "text": "movl\t20(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t1352829926(%ecx,%edx,1),%ecx\n\tsubl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t56(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1352829926(%ebp,%eax,1),%ebp\n\tsubl\t%esi,%edx\n\troll\t$9,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t28(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebx\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1352829926(%ebx,%edx,1),%ebx\n\tsubl\t%ecx,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%edi\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1352829926(%edi,%eax,1),%edi\n\tsubl\t%ebp,%edx\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t36(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1352829926(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t8(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:27", "text": "subl\t%ebp,%edx\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t36(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1352829926(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t8(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1352829926(%ecx,%eax,1),%ecx\n\tsubl\t%edi,%edx\n\troll\t$15,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t44(%esp),%eax\n\torl\t%esi,%edx\n\taddl\t%eax,%ebp\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t1352829926(%ebp,%edx,1),%ebp\n\tsubl\t%esi,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t16(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebx\n\txorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1352829926(%ebx,%eax,1),%ebx\n\tsubl\t%ecx,%edx\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t52(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%edi\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t1352829926(%edi,%edx,1),%edi\n\tsubl\t%ebp,%eax\n\troll\t$7,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t24(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:28", "text": "xorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1352829926(%ebx,%eax,1),%ebx\n\tsubl\t%ecx,%edx\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t52(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%edi\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t1352829926(%edi,%edx,1),%edi\n\tsubl\t%ebp,%eax\n\troll\t$7,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t24(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%esi\n\txorl\t%edi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebx\n\tleal\t1352829926(%esi,%eax,1),%esi\n\tsubl\t%ebx,%edx\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t60(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t1352829926(%ecx,%edx,1),%ecx\n\tsubl\t%edi,%eax\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t32(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1352829926(%ebp,%eax,1),%ebp\n\tsubl\t%esi,%edx\n\troll\t$11,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t4(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebx\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1352829926(%ebx,%edx,1),%ebx\n\tsubl\t%ecx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:29", "text": "movl\t32(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ebp\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1352829926(%ebp,%eax,1),%ebp\n\tsubl\t%esi,%edx\n\troll\t$11,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t4(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebx\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1352829926(%ebx,%edx,1),%ebx\n\tsubl\t%ecx,%eax\n\troll\t$14,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t40(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%edi\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1352829926(%edi,%eax,1),%edi\n\tsubl\t%ebp,%edx\n\troll\t$14,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t12(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%esi\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1352829926(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$12,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t48(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1352829926(%ecx,%eax,1),%ecx\n\tmovl\t%edi,%eax\n\troll\t$6,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:30", "text": "leal\t1352829926(%esi,%edx,1),%esi\n\tsubl\t%ebx,%eax\n\troll\t$12,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t48(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1352829926(%ecx,%eax,1),%ecx\n\tmovl\t%edi,%eax\n\troll\t$6,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t24(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1548603684(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$9,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t44(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t1548603684(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$13,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t12(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1548603684(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t28(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:31", "text": "addl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t12(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1548603684(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t28(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t1548603684(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1548603684(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t52(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1548603684(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$8,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t20(%esp),%eax\n\troll\t$10,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:32", "text": "subl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t52(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1548603684(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$8,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t20(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t1548603684(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t40(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1548603684(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t56(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t1548603684(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t60(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1548603684(%ecx,%edx,1),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:33", "text": "subl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t56(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t1548603684(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$7,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t60(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1548603684(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$7,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t32(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1548603684(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\troll\t$12,%ebp\n\taddl\t%ebx,%ebp\n\n\tsubl\t%esi,%edx\n\tandl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t48(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t1548603684(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$7,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t16(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1548603684(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:34", "text": "andl\t%ebp,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t48(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t1548603684(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\troll\t$7,%ebx\n\taddl\t%edi,%ebx\n\n\tsubl\t%ecx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ebp,%edx\n\torl\t%eax,%edx\n\tmovl\t16(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t1548603684(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\troll\t$6,%edi\n\taddl\t%esi,%edi\n\n\tsubl\t%ebp,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebx,%edx\n\torl\t%eax,%edx\n\tmovl\t36(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t1548603684(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\troll\t$15,%esi\n\taddl\t%ecx,%esi\n\n\tsubl\t%ebx,%edx\n\tandl\t%esi,%eax\n\tandl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1548603684(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t8(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1548603684(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:35", "text": "andl\t%edi,%edx\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%edi\n\tleal\t1548603684(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\tsubl\t%edi,%edx\n\tandl\t%ecx,%eax\n\tandl\t%esi,%edx\n\torl\t%eax,%edx\n\tmovl\t8(%esp),%eax\n\troll\t$10,%esi\n\tleal\t1548603684(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\taddl\t%eax,%ebp\n\tsubl\t%ecx,%edx\n\troll\t$11,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t60(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%ebx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1836072691(%ebx,%edx,1),%ebx\n\tsubl\t%ebp,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t20(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%edi\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1836072691(%edi,%eax,1),%edi\n\tsubl\t%ebx,%edx\n\troll\t$7,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t4(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1836072691(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$15,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t12(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:36", "text": "roll\t$10,%ebp\n\tleal\t1836072691(%edi,%eax,1),%edi\n\tsubl\t%ebx,%edx\n\troll\t$7,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t4(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1836072691(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$15,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t12(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1836072691(%ecx,%eax,1),%ecx\n\tsubl\t%esi,%edx\n\troll\t$11,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t28(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebp\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t1836072691(%ebp,%edx,1),%ebp\n\tsubl\t%ecx,%eax\n\troll\t$8,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t56(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1836072691(%ebx,%eax,1),%ebx\n\tsubl\t%ebp,%edx\n\troll\t$6,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t24(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%edi\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t1836072691(%edi,%edx,1),%edi\n\tsubl\t%ebx,%eax\n\troll\t$6,%edi\n\taddl\t%esi,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:37", "text": "orl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\txorl\t%esi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ecx\n\tleal\t1836072691(%ebx,%eax,1),%ebx\n\tsubl\t%ebp,%edx\n\troll\t$6,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t24(%esp),%eax\n\torl\t%ebx,%edx\n\taddl\t%eax,%edi\n\txorl\t%ecx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebp\n\tleal\t1836072691(%edi,%edx,1),%edi\n\tsubl\t%ebx,%eax\n\troll\t$6,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t36(%esp),%edx\n\torl\t%edi,%eax\n\taddl\t%edx,%esi\n\txorl\t%ebp,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebx\n\tleal\t1836072691(%esi,%eax,1),%esi\n\tsubl\t%edi,%edx\n\troll\t$14,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t44(%esp),%eax\n\torl\t%esi,%edx\n\taddl\t%eax,%ecx\n\txorl\t%ebx,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%edi\n\tleal\t1836072691(%ecx,%edx,1),%ecx\n\tsubl\t%esi,%eax\n\troll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t32(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\txorl\t%edi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1836072691(%ebp,%eax,1),%ebp\n\tsubl\t%ecx,%edx\n\troll\t$13,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t48(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%ebx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:38", "text": "roll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t32(%esp),%edx\n\torl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\txorl\t%edi,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%esi\n\tleal\t1836072691(%ebp,%eax,1),%ebp\n\tsubl\t%ecx,%edx\n\troll\t$13,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t48(%esp),%eax\n\torl\t%ebp,%edx\n\taddl\t%eax,%ebx\n\txorl\t%esi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ecx\n\tleal\t1836072691(%ebx,%edx,1),%ebx\n\tsubl\t%ebp,%eax\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t8(%esp),%edx\n\torl\t%ebx,%eax\n\taddl\t%edx,%edi\n\txorl\t%ecx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%ebp\n\tleal\t1836072691(%edi,%eax,1),%edi\n\tsubl\t%ebx,%edx\n\troll\t$14,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t40(%esp),%eax\n\torl\t%edi,%edx\n\taddl\t%eax,%esi\n\txorl\t%ebp,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1836072691(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1836072691(%ecx,%eax,1),%ecx\n\tsubl\t%esi,%edx\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t16(%esp),%eax\n\torl\t%ecx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:39", "text": "movl\t$-1,%eax\n\troll\t$10,%ebx\n\tleal\t1836072691(%esi,%edx,1),%esi\n\tsubl\t%edi,%eax\n\troll\t$13,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t(%esp),%edx\n\torl\t%esi,%eax\n\taddl\t%edx,%ecx\n\txorl\t%ebx,%eax\n\tmovl\t$-1,%edx\n\troll\t$10,%edi\n\tleal\t1836072691(%ecx,%eax,1),%ecx\n\tsubl\t%esi,%edx\n\troll\t$13,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t16(%esp),%eax\n\torl\t%ecx,%edx\n\taddl\t%eax,%ebp\n\txorl\t%edi,%edx\n\tmovl\t$-1,%eax\n\troll\t$10,%esi\n\tleal\t1836072691(%ebp,%edx,1),%ebp\n\tsubl\t%ecx,%eax\n\troll\t$7,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t52(%esp),%edx\n\torl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\txorl\t%esi,%eax\n\tmovl\t32(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t1836072691(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$5,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t24(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tsubl\t%edi,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebp,%edx\n\torl\t%edx,%eax\n\tmovl\t16(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:40", "text": "addl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t24(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\troll\t$15,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tsubl\t%edi,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebp,%edx\n\torl\t%edx,%eax\n\tmovl\t16(%esp),%edx\n\troll\t$10,%ebx\n\tleal\t2053994217(%esi,%eax,1),%esi\n\tmovl\t$-1,%eax\n\troll\t$5,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%edx,%ecx\n\tmovl\t%edi,%edx\n\tsubl\t%esi,%eax\n\tandl\t%esi,%edx\n\tandl\t%ebx,%eax\n\torl\t%eax,%edx\n\tmovl\t4(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2053994217(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$8,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t12(%esp),%edx\n\troll\t$10,%esi\n\tleal\t2053994217(%ebp,%eax,1),%ebp\n\tmovl\t$-1,%eax\n\troll\t$11,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%edx,%ebx\n\tmovl\t%ecx,%edx\n\tsubl\t%ebp,%eax\n\tandl\t%ebp,%edx\n\tandl\t%esi,%eax\n\torl\t%eax,%edx\n\tmovl\t44(%esp),%eax\n\troll\t$10,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:41", "text": "movl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t12(%esp),%edx\n\troll\t$10,%esi\n\tleal\t2053994217(%ebp,%eax,1),%ebp\n\tmovl\t$-1,%eax\n\troll\t$11,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%edx,%ebx\n\tmovl\t%ecx,%edx\n\tsubl\t%ebp,%eax\n\tandl\t%ebp,%edx\n\tandl\t%esi,%eax\n\torl\t%eax,%edx\n\tmovl\t44(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t2053994217(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\troll\t$14,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\tsubl\t%ebx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ecx,%edx\n\torl\t%edx,%eax\n\tmovl\t60(%esp),%edx\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%eax,1),%edi\n\tmovl\t$-1,%eax\n\troll\t$14,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%edx,%esi\n\tmovl\t%ebx,%edx\n\tsubl\t%edi,%eax\n\tandl\t%edi,%edx\n\tandl\t%ebp,%eax\n\torl\t%eax,%edx\n\tmovl\t(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t2053994217(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\troll\t$6,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\tsubl\t%esi,%edx\n\tandl\t%esi,%eax\n\tandl\t%ebx,%edx\n\torl\t%edx,%eax\n\tmovl\t20(%esp),%edx\n\troll\t$10,%edi\n\tleal\t2053994217(%ecx,%eax,1),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:42", "text": "subl\t%edi,%eax\n\tandl\t%edi,%edx\n\tandl\t%ebp,%eax\n\torl\t%eax,%edx\n\tmovl\t(%esp),%eax\n\troll\t$10,%ebx\n\tleal\t2053994217(%esi,%edx,1),%esi\n\tmovl\t$-1,%edx\n\troll\t$6,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%eax,%ecx\n\tmovl\t%edi,%eax\n\tsubl\t%esi,%edx\n\tandl\t%esi,%eax\n\tandl\t%ebx,%edx\n\torl\t%edx,%eax\n\tmovl\t20(%esp),%edx\n\troll\t$10,%edi\n\tleal\t2053994217(%ecx,%eax,1),%ecx\n\tmovl\t$-1,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%edx,%ebp\n\tmovl\t%esi,%edx\n\tsubl\t%ecx,%eax\n\tandl\t%ecx,%edx\n\tandl\t%edi,%eax\n\torl\t%eax,%edx\n\tmovl\t48(%esp),%eax\n\troll\t$10,%esi\n\tleal\t2053994217(%ebp,%edx,1),%ebp\n\tmovl\t$-1,%edx\n\troll\t$6,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%eax,%ebx\n\tmovl\t%ecx,%eax\n\tsubl\t%ebp,%edx\n\tandl\t%ebp,%eax\n\tandl\t%esi,%edx\n\torl\t%edx,%eax\n\tmovl\t8(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t2053994217(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t52(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:43", "text": "andl\t%ebp,%eax\n\tandl\t%esi,%edx\n\torl\t%edx,%eax\n\tmovl\t8(%esp),%edx\n\troll\t$10,%ecx\n\tleal\t2053994217(%ebx,%eax,1),%ebx\n\tmovl\t$-1,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%edx,%edi\n\tmovl\t%ebp,%edx\n\tsubl\t%ebx,%eax\n\tandl\t%ebx,%edx\n\tandl\t%ecx,%eax\n\torl\t%eax,%edx\n\tmovl\t52(%esp),%eax\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%edx,1),%edi\n\tmovl\t$-1,%edx\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\taddl\t%eax,%esi\n\tmovl\t%ebx,%eax\n\tsubl\t%edi,%edx\n\tandl\t%edi,%eax\n\tandl\t%ebp,%edx\n\torl\t%edx,%eax\n\tmovl\t36(%esp),%edx\n\troll\t$10,%ebx\n\tleal\t2053994217(%esi,%eax,1),%esi\n\tmovl\t$-1,%eax\n\troll\t$9,%esi\n\taddl\t%ecx,%esi\n\n\taddl\t%edx,%ecx\n\tmovl\t%edi,%edx\n\tsubl\t%esi,%eax\n\tandl\t%esi,%edx\n\tandl\t%ebx,%eax\n\torl\t%eax,%edx\n\tmovl\t28(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2053994217(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t40(%esp),%edx\n\troll\t$10,%esi\n\tleal\t2053994217(%ebp,%eax,1),%ebp\n\tmovl\t$-1,%eax\n\troll\t$5,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:44", "text": "andl\t%ebx,%eax\n\torl\t%eax,%edx\n\tmovl\t28(%esp),%eax\n\troll\t$10,%edi\n\tleal\t2053994217(%ecx,%edx,1),%ecx\n\tmovl\t$-1,%edx\n\troll\t$12,%ecx\n\taddl\t%ebp,%ecx\n\n\taddl\t%eax,%ebp\n\tmovl\t%esi,%eax\n\tsubl\t%ecx,%edx\n\tandl\t%ecx,%eax\n\tandl\t%edi,%edx\n\torl\t%edx,%eax\n\tmovl\t40(%esp),%edx\n\troll\t$10,%esi\n\tleal\t2053994217(%ebp,%eax,1),%ebp\n\tmovl\t$-1,%eax\n\troll\t$5,%ebp\n\taddl\t%ebx,%ebp\n\n\taddl\t%edx,%ebx\n\tmovl\t%ecx,%edx\n\tsubl\t%ebp,%eax\n\tandl\t%ebp,%edx\n\tandl\t%esi,%eax\n\torl\t%eax,%edx\n\tmovl\t56(%esp),%eax\n\troll\t$10,%ecx\n\tleal\t2053994217(%ebx,%edx,1),%ebx\n\tmovl\t$-1,%edx\n\troll\t$15,%ebx\n\taddl\t%edi,%ebx\n\n\taddl\t%eax,%edi\n\tmovl\t%ebp,%eax\n\tsubl\t%ebx,%edx\n\tandl\t%ebx,%eax\n\tandl\t%ecx,%edx\n\torl\t%eax,%edx\n\tmovl\t%ebx,%eax\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%edx,1),%edi\n\txorl\t%ebp,%eax\n\troll\t$8,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t48(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%edx,%esi\n\troll\t$10,%ebx\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$8,%esi\n\taddl\t%ecx,%esi\n\n\txorl\t%ebx,%eax\n\tmovl\t60(%esp),%edx\n\txorl\t%esi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:45", "text": "orl\t%eax,%edx\n\tmovl\t%ebx,%eax\n\troll\t$10,%ebp\n\tleal\t2053994217(%edi,%edx,1),%edi\n\txorl\t%ebp,%eax\n\troll\t$8,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t48(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%edx,%esi\n\troll\t$10,%ebx\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$8,%esi\n\taddl\t%ecx,%esi\n\n\txorl\t%ebx,%eax\n\tmovl\t60(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$10,%edi\n\taddl\t%edx,%ecx\n\txorl\t%edi,%eax\n\troll\t$5,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t40(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\troll\t$10,%esi\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$12,%ebp\n\taddl\t%ebx,%ebp\n\n\txorl\t%esi,%eax\n\tmovl\t16(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$10,%ecx\n\taddl\t%edx,%ebx\n\txorl\t%ecx,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t4(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%edx,%edi\n\troll\t$10,%ebp\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\txorl\t%ebp,%eax\n\tmovl\t20(%esp),%edx\n\txorl\t%edi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:46", "text": "addl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$10,%ecx\n\taddl\t%edx,%ebx\n\txorl\t%ecx,%eax\n\troll\t$9,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t4(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%edx,%edi\n\troll\t$10,%ebp\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$12,%edi\n\taddl\t%esi,%edi\n\n\txorl\t%ebp,%eax\n\tmovl\t20(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$10,%ebx\n\taddl\t%edx,%esi\n\txorl\t%ebx,%eax\n\troll\t$5,%esi\n\taddl\t%ecx,%esi\n\n\tmovl\t32(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%edx,%ecx\n\troll\t$10,%edi\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$14,%ecx\n\taddl\t%ebp,%ecx\n\n\txorl\t%edi,%eax\n\tmovl\t28(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$10,%esi\n\taddl\t%edx,%ebp\n\txorl\t%esi,%eax\n\troll\t$6,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t24(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\troll\t$10,%ecx\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$8,%ebx\n\taddl\t%edi,%ebx\n\n\txorl\t%ecx,%eax\n\tmovl\t8(%esp),%edx\n\txorl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:47", "text": "addl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$10,%esi\n\taddl\t%edx,%ebp\n\txorl\t%esi,%eax\n\troll\t$6,%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t24(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%edx,%ebx\n\troll\t$10,%ecx\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$8,%ebx\n\taddl\t%edi,%ebx\n\n\txorl\t%ecx,%eax\n\tmovl\t8(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$10,%ebp\n\taddl\t%edx,%edi\n\txorl\t%ebp,%eax\n\troll\t$13,%edi\n\taddl\t%esi,%edi\n\n\tmovl\t52(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%edx,%esi\n\troll\t$10,%ebx\n\taddl\t%eax,%esi\n\tmovl\t%edi,%eax\n\troll\t$6,%esi\n\taddl\t%ecx,%esi\n\n\txorl\t%ebx,%eax\n\tmovl\t56(%esp),%edx\n\txorl\t%esi,%eax\n\taddl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$10,%edi\n\taddl\t%edx,%ecx\n\txorl\t%edi,%eax\n\troll\t$5,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\troll\t$10,%esi\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\txorl\t%esi,%eax\n\tmovl\t12(%esp),%edx\n\txorl\t%ebp,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:48", "text": "addl\t%eax,%ecx\n\tmovl\t%esi,%eax\n\troll\t$10,%edi\n\taddl\t%edx,%ecx\n\txorl\t%edi,%eax\n\troll\t$5,%ecx\n\taddl\t%ebp,%ecx\n\n\tmovl\t(%esp),%edx\n\txorl\t%ecx,%eax\n\taddl\t%edx,%ebp\n\troll\t$10,%esi\n\taddl\t%eax,%ebp\n\tmovl\t%ecx,%eax\n\troll\t$15,%ebp\n\taddl\t%ebx,%ebp\n\n\txorl\t%esi,%eax\n\tmovl\t12(%esp),%edx\n\txorl\t%ebp,%eax\n\taddl\t%eax,%ebx\n\tmovl\t%ebp,%eax\n\troll\t$10,%ecx\n\taddl\t%edx,%ebx\n\txorl\t%ecx,%eax\n\troll\t$13,%ebx\n\taddl\t%edi,%ebx\n\n\tmovl\t36(%esp),%edx\n\txorl\t%ebx,%eax\n\taddl\t%edx,%edi\n\troll\t$10,%ebp\n\taddl\t%eax,%edi\n\tmovl\t%ebx,%eax\n\troll\t$11,%edi\n\taddl\t%esi,%edi\n\n\txorl\t%ebp,%eax\n\tmovl\t44(%esp),%edx\n\txorl\t%edi,%eax\n\taddl\t%eax,%esi\n\troll\t$10,%ebx\n\taddl\t%edx,%esi\n\tmovl\t128(%esp),%edx\n\troll\t$11,%esi\n\taddl\t%ecx,%esi\n\tmovl\t4(%edx),%eax\n\taddl\t%eax,%ebx\n\tmovl\t72(%esp),%eax\n\taddl\t%eax,%ebx\n\tmovl\t8(%edx),%eax\n\taddl\t%eax,%ebp\n\tmovl\t76(%esp),%eax\n\taddl\t%eax,%ebp\n\tmovl\t12(%edx),%eax\n\taddl\t%eax,%ecx\n\tmovl\t80(%esp),%eax\n\taddl\t%eax,%ecx\n\tmovl\t16(%edx),%eax\n\taddl\t%eax,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:49", "text": "addl\t%eax,%esi\n\troll\t$10,%ebx\n\taddl\t%edx,%esi\n\tmovl\t128(%esp),%edx\n\troll\t$11,%esi\n\taddl\t%ecx,%esi\n\tmovl\t4(%edx),%eax\n\taddl\t%eax,%ebx\n\tmovl\t72(%esp),%eax\n\taddl\t%eax,%ebx\n\tmovl\t8(%edx),%eax\n\taddl\t%eax,%ebp\n\tmovl\t76(%esp),%eax\n\taddl\t%eax,%ebp\n\tmovl\t12(%edx),%eax\n\taddl\t%eax,%ecx\n\tmovl\t80(%esp),%eax\n\taddl\t%eax,%ecx\n\tmovl\t16(%edx),%eax\n\taddl\t%eax,%esi\n\tmovl\t64(%esp),%eax\n\taddl\t%eax,%esi\n\tmovl\t(%edx),%eax\n\taddl\t%eax,%edi\n\tmovl\t68(%esp),%eax\n\taddl\t%eax,%edi\n\tmovl\t136(%esp),%eax\n\tmovl\t%ebx,(%edx)\n\tmovl\t%ebp,4(%edx)\n\tmovl\t%ecx,8(%edx)\n\tsubl\t$1,%eax\n\tmovl\t%esi,12(%edx)\n\tmovl\t%edi,16(%edx)\n\tjle\t.L001get_out\n\tmovl\t%eax,136(%esp)\n\tmovl\t%ecx,%edi\n\tmovl\t132(%esp),%eax\n\tmovl\t%ebx,%ecx\n\taddl\t$64,%eax\n\tmovl\t%ebp,%esi\n\tmovl\t%eax,132(%esp)\n\tjmp\t.L000start\n.L001get_out:\n\taddl\t$108,%esp\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tripemd160_block_asm_data_order,.-.L_ripemd160_block_asm_data_order_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S:50", "text": "movl\t%eax,132(%esp)\n\tjmp\t.L000start\n.L001get_out:\n\taddl\t$108,%esp\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tripemd160_block_asm_data_order,.-.L_ripemd160_block_asm_data_order_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/rmd-586.S", "line_start": 1961, "line_end": 1987}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tsha1_block_data_order\n.type\tsha1_block_data_order,@function\n.align\t16\nsha1_block_data_order:\n.L_sha1_block_data_order_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tcall\t.L000pic_point\n.L000pic_point:\n\tpopl\t%ebp\n\tleal\tOPENSSL_ia32cap_P-.L000pic_point(%ebp),%esi\n\tleal\t.LK_XX_XX-.L000pic_point(%ebp),%ebp\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%edx\n\ttestl\t$512,%edx\n\tjz\t.L001x86\n\tmovl\t8(%esi),%ecx\n\ttestl\t$16777216,%eax\n\tjz\t.L001x86\n\ttestl\t$536870912,%ecx\n\tjnz\t.Lshaext_shortcut\n\tjmp\t.Lssse3_shortcut\n.align\t16\n.L001x86:\n\tmovl\t20(%esp),%ebp\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%eax\n\tsubl\t$76,%esp\n\tshll\t$6,%eax\n\taddl\t%esi,%eax\n\tmovl\t%eax,104(%esp)\n\tmovl\t16(%ebp),%edi\n\tjmp\t.L002loop\n.align\t16\n.L002loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:2", "text": "movl\t16(%ebp),%edi\n\tjmp\t.L002loop\n.align\t16\n.L002loop:\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t%ecx,8(%esp)\n\tmovl\t%edx,12(%esp)\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,16(%esp)\n\tmovl\t%ebx,20(%esp)\n\tmovl\t%ecx,24(%esp)\n\tmovl\t%edx,28(%esp)\n\tmovl\t32(%esi),%eax\n\tmovl\t36(%esi),%ebx\n\tmovl\t40(%esi),%ecx\n\tmovl\t44(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,32(%esp)\n\tmovl\t%ebx,36(%esp)\n\tmovl\t%ecx,40(%esp)\n\tmovl\t%edx,44(%esp)\n\tmovl\t48(%esi),%eax\n\tmovl\t52(%esi),%ebx\n\tmovl\t56(%esi),%ecx\n\tmovl\t60(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,48(%esp)\n\tmovl\t%ebx,52(%esp)\n\tmovl\t%ecx,56(%esp)\n\tmovl\t%edx,60(%esp)\n\tmovl\t%esi,100(%esp)\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%ebx\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\n\tmovl\t%ecx,%esi\n\tmovl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:3", "text": "movl\t48(%esi),%eax\n\tmovl\t52(%esi),%ebx\n\tmovl\t56(%esi),%ecx\n\tmovl\t60(%esi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tmovl\t%eax,48(%esp)\n\tmovl\t%ebx,52(%esp)\n\tmovl\t%ecx,56(%esp)\n\tmovl\t%edx,60(%esp)\n\tmovl\t%esi,100(%esp)\n\tmovl\t(%ebp),%eax\n\tmovl\t4(%ebp),%ebx\n\tmovl\t8(%ebp),%ecx\n\tmovl\t12(%ebp),%edx\n\n\tmovl\t%ecx,%esi\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\txorl\t%edx,%esi\n\taddl\t%edi,%ebp\n\tmovl\t(%esp),%edi\n\tandl\t%ebx,%esi\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tleal\t1518500249(%ebp,%edi,1),%ebp\n\taddl\t%esi,%ebp\n\n\tmovl\t%ebx,%edi\n\tmovl\t%ebp,%esi\n\troll\t$5,%ebp\n\txorl\t%ecx,%edi\n\taddl\t%edx,%ebp\n\tmovl\t4(%esp),%edx\n\tandl\t%eax,%edi\n\trorl\t$2,%eax\n\txorl\t%ecx,%edi\n\tleal\t1518500249(%ebp,%edx,1),%ebp\n\taddl\t%edi,%ebp\n\n\tmovl\t%eax,%edx\n\tmovl\t%ebp,%edi\n\troll\t$5,%ebp\n\txorl\t%ebx,%edx\n\taddl\t%ecx,%ebp\n\tmovl\t8(%esp),%ecx\n\tandl\t%esi,%edx\n\trorl\t$2,%esi\n\txorl\t%ebx,%edx\n\tleal\t1518500249(%ebp,%ecx,1),%ebp\n\taddl\t%edx,%ebp\n\n\tmovl\t%esi,%ecx\n\tmovl\t%ebp,%edx\n\troll\t$5,%ebp\n\txorl\t%eax,%ecx\n\taddl\t%ebx,%ebp\n\tmovl\t12(%esp),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:4", "text": "addl\t%edi,%ebp\n\n\tmovl\t%eax,%edx\n\tmovl\t%ebp,%edi\n\troll\t$5,%ebp\n\txorl\t%ebx,%edx\n\taddl\t%ecx,%ebp\n\tmovl\t8(%esp),%ecx\n\tandl\t%esi,%edx\n\trorl\t$2,%esi\n\txorl\t%ebx,%edx\n\tleal\t1518500249(%ebp,%ecx,1),%ebp\n\taddl\t%edx,%ebp\n\n\tmovl\t%esi,%ecx\n\tmovl\t%ebp,%edx\n\troll\t$5,%ebp\n\txorl\t%eax,%ecx\n\taddl\t%ebx,%ebp\n\tmovl\t12(%esp),%ebx\n\tandl\t%edi,%ecx\n\trorl\t$2,%edi\n\txorl\t%eax,%ecx\n\tleal\t1518500249(%ebp,%ebx,1),%ebp\n\taddl\t%ecx,%ebp\n\n\tmovl\t%edi,%ebx\n\tmovl\t%ebp,%ecx\n\troll\t$5,%ebp\n\txorl\t%esi,%ebx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esp),%eax\n\tandl\t%edx,%ebx\n\trorl\t$2,%edx\n\txorl\t%esi,%ebx\n\tleal\t1518500249(%ebp,%eax,1),%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t%edx,%eax\n\tmovl\t%ebp,%ebx\n\troll\t$5,%ebp\n\txorl\t%edi,%eax\n\taddl\t%esi,%ebp\n\tmovl\t20(%esp),%esi\n\tandl\t%ecx,%eax\n\trorl\t$2,%ecx\n\txorl\t%edi,%eax\n\tleal\t1518500249(%ebp,%esi,1),%ebp\n\taddl\t%eax,%ebp\n\n\tmovl\t%ecx,%esi\n\tmovl\t%ebp,%eax\n\troll\t$5,%ebp\n\txorl\t%edx,%esi\n\taddl\t%edi,%ebp\n\tmovl\t24(%esp),%edi\n\tandl\t%ebx,%esi\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tleal\t1518500249(%ebp,%edi,1),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:5", "text": "roll\t$5,%ebp\n\txorl\t%edi,%eax\n\taddl\t%esi,%ebp\n\tmovl\t20(%esp),%esi\n\tandl\t%ecx,%eax\n\trorl\t$2,%ecx\n\txorl\t%edi,%eax\n\tleal\t1518500249(%ebp,%esi,1),%ebp\n\taddl\t%eax,%ebp\n\n\tmovl\t%ecx,%esi\n\tmovl\t%ebp,%eax\n\troll\t$5,%ebp\n\txorl\t%edx,%esi\n\taddl\t%edi,%ebp\n\tmovl\t24(%esp),%edi\n\tandl\t%ebx,%esi\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tleal\t1518500249(%ebp,%edi,1),%ebp\n\taddl\t%esi,%ebp\n\n\tmovl\t%ebx,%edi\n\tmovl\t%ebp,%esi\n\troll\t$5,%ebp\n\txorl\t%ecx,%edi\n\taddl\t%edx,%ebp\n\tmovl\t28(%esp),%edx\n\tandl\t%eax,%edi\n\trorl\t$2,%eax\n\txorl\t%ecx,%edi\n\tleal\t1518500249(%ebp,%edx,1),%ebp\n\taddl\t%edi,%ebp\n\n\tmovl\t%eax,%edx\n\tmovl\t%ebp,%edi\n\troll\t$5,%ebp\n\txorl\t%ebx,%edx\n\taddl\t%ecx,%ebp\n\tmovl\t32(%esp),%ecx\n\tandl\t%esi,%edx\n\trorl\t$2,%esi\n\txorl\t%ebx,%edx\n\tleal\t1518500249(%ebp,%ecx,1),%ebp\n\taddl\t%edx,%ebp\n\n\tmovl\t%esi,%ecx\n\tmovl\t%ebp,%edx\n\troll\t$5,%ebp\n\txorl\t%eax,%ecx\n\taddl\t%ebx,%ebp\n\tmovl\t36(%esp),%ebx\n\tandl\t%edi,%ecx\n\trorl\t$2,%edi\n\txorl\t%eax,%ecx\n\tleal\t1518500249(%ebp,%ebx,1),%ebp\n\taddl\t%ecx,%ebp\n\n\tmovl\t%edi,%ebx\n\tmovl\t%ebp,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:6", "text": "andl\t%esi,%edx\n\trorl\t$2,%esi\n\txorl\t%ebx,%edx\n\tleal\t1518500249(%ebp,%ecx,1),%ebp\n\taddl\t%edx,%ebp\n\n\tmovl\t%esi,%ecx\n\tmovl\t%ebp,%edx\n\troll\t$5,%ebp\n\txorl\t%eax,%ecx\n\taddl\t%ebx,%ebp\n\tmovl\t36(%esp),%ebx\n\tandl\t%edi,%ecx\n\trorl\t$2,%edi\n\txorl\t%eax,%ecx\n\tleal\t1518500249(%ebp,%ebx,1),%ebp\n\taddl\t%ecx,%ebp\n\n\tmovl\t%edi,%ebx\n\tmovl\t%ebp,%ecx\n\troll\t$5,%ebp\n\txorl\t%esi,%ebx\n\taddl\t%eax,%ebp\n\tmovl\t40(%esp),%eax\n\tandl\t%edx,%ebx\n\trorl\t$2,%edx\n\txorl\t%esi,%ebx\n\tleal\t1518500249(%ebp,%eax,1),%ebp\n\taddl\t%ebx,%ebp\n\n\tmovl\t%edx,%eax\n\tmovl\t%ebp,%ebx\n\troll\t$5,%ebp\n\txorl\t%edi,%eax\n\taddl\t%esi,%ebp\n\tmovl\t44(%esp),%esi\n\tandl\t%ecx,%eax\n\trorl\t$2,%ecx\n\txorl\t%edi,%eax\n\tleal\t1518500249(%ebp,%esi,1),%ebp\n\taddl\t%eax,%ebp\n\n\tmovl\t%ecx,%esi\n\tmovl\t%ebp,%eax\n\troll\t$5,%ebp\n\txorl\t%edx,%esi\n\taddl\t%edi,%ebp\n\tmovl\t48(%esp),%edi\n\tandl\t%ebx,%esi\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tleal\t1518500249(%ebp,%edi,1),%ebp\n\taddl\t%esi,%ebp\n\n\tmovl\t%ebx,%edi\n\tmovl\t%ebp,%esi\n\troll\t$5,%ebp\n\txorl\t%ecx,%edi\n\taddl\t%edx,%ebp\n\tmovl\t52(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:7", "text": "addl\t%eax,%ebp\n\n\tmovl\t%ecx,%esi\n\tmovl\t%ebp,%eax\n\troll\t$5,%ebp\n\txorl\t%edx,%esi\n\taddl\t%edi,%ebp\n\tmovl\t48(%esp),%edi\n\tandl\t%ebx,%esi\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tleal\t1518500249(%ebp,%edi,1),%ebp\n\taddl\t%esi,%ebp\n\n\tmovl\t%ebx,%edi\n\tmovl\t%ebp,%esi\n\troll\t$5,%ebp\n\txorl\t%ecx,%edi\n\taddl\t%edx,%ebp\n\tmovl\t52(%esp),%edx\n\tandl\t%eax,%edi\n\trorl\t$2,%eax\n\txorl\t%ecx,%edi\n\tleal\t1518500249(%ebp,%edx,1),%ebp\n\taddl\t%edi,%ebp\n\n\tmovl\t%eax,%edx\n\tmovl\t%ebp,%edi\n\troll\t$5,%ebp\n\txorl\t%ebx,%edx\n\taddl\t%ecx,%ebp\n\tmovl\t56(%esp),%ecx\n\tandl\t%esi,%edx\n\trorl\t$2,%esi\n\txorl\t%ebx,%edx\n\tleal\t1518500249(%ebp,%ecx,1),%ebp\n\taddl\t%edx,%ebp\n\n\tmovl\t%esi,%ecx\n\tmovl\t%ebp,%edx\n\troll\t$5,%ebp\n\txorl\t%eax,%ecx\n\taddl\t%ebx,%ebp\n\tmovl\t60(%esp),%ebx\n\tandl\t%edi,%ecx\n\trorl\t$2,%edi\n\txorl\t%eax,%ecx\n\tleal\t1518500249(%ebp,%ebx,1),%ebp\n\tmovl\t(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edi,%ebp\n\txorl\t8(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t32(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t52(%esp),%ebx\n\troll\t$1,%ebx\n\txorl\t%esi,%ebp\n\taddl\t%ebp,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:8", "text": "roll\t$5,%ebp\n\txorl\t%eax,%ecx\n\taddl\t%ebx,%ebp\n\tmovl\t60(%esp),%ebx\n\tandl\t%edi,%ecx\n\trorl\t$2,%edi\n\txorl\t%eax,%ecx\n\tleal\t1518500249(%ebp,%ebx,1),%ebp\n\tmovl\t(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edi,%ebp\n\txorl\t8(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t32(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t52(%esp),%ebx\n\troll\t$1,%ebx\n\txorl\t%esi,%ebp\n\taddl\t%ebp,%eax\n\tmovl\t%ecx,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ebx,(%esp)\n\troll\t$5,%ebp\n\tleal\t1518500249(%ebx,%eax,1),%ebx\n\tmovl\t4(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t12(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t36(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t56(%esp),%eax\n\troll\t$1,%eax\n\txorl\t%edi,%ebp\n\taddl\t%ebp,%esi\n\tmovl\t%ebx,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%eax,4(%esp)\n\troll\t$5,%ebp\n\tleal\t1518500249(%eax,%esi,1),%eax\n\tmovl\t8(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ecx,%ebp\n\txorl\t16(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t40(%esp),%esi\n\tandl\t%ebx,%ebp\n\txorl\t60(%esp),%esi\n\troll\t$1,%esi\n\txorl\t%edx,%ebp\n\taddl\t%ebp,%edi\n\tmovl\t%eax,%ebp\n\trorl\t$2,%ebx\n\tmovl\t%esi,8(%esp)\n\troll\t$5,%ebp\n\tleal\t1518500249(%esi,%edi,1),%esi\n\tmovl\t12(%esp),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:9", "text": "roll\t$5,%ebp\n\tleal\t1518500249(%eax,%esi,1),%eax\n\tmovl\t8(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ecx,%ebp\n\txorl\t16(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t40(%esp),%esi\n\tandl\t%ebx,%ebp\n\txorl\t60(%esp),%esi\n\troll\t$1,%esi\n\txorl\t%edx,%ebp\n\taddl\t%ebp,%edi\n\tmovl\t%eax,%ebp\n\trorl\t$2,%ebx\n\tmovl\t%esi,8(%esp)\n\troll\t$5,%ebp\n\tleal\t1518500249(%esi,%edi,1),%esi\n\tmovl\t12(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t20(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t44(%esp),%edi\n\tandl\t%eax,%ebp\n\txorl\t(%esp),%edi\n\troll\t$1,%edi\n\txorl\t%ecx,%ebp\n\taddl\t%ebp,%edx\n\tmovl\t%esi,%ebp\n\trorl\t$2,%eax\n\tmovl\t%edi,12(%esp)\n\troll\t$5,%ebp\n\tleal\t1518500249(%edi,%edx,1),%edi\n\tmovl\t16(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t24(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t4(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,16(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx\n\tmovl\t20(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t28(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t52(%esp),%ecx\n\txorl\t%eax,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:10", "text": "xorl\t24(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t4(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,16(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx\n\tmovl\t20(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t28(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t52(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,20(%esp)\n\tleal\t1859775393(%ecx,%ebx,1),%ecx\n\tmovl\t24(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t32(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t56(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t12(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,24(%esp)\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tmovl\t28(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t36(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t60(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t16(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,28(%esp)\n\tleal\t1859775393(%eax,%esi,1),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:11", "text": "movl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,24(%esp)\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tmovl\t28(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t36(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t60(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t16(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,28(%esp)\n\tleal\t1859775393(%eax,%esi,1),%eax\n\tmovl\t32(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t40(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t20(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,32(%esp)\n\tleal\t1859775393(%esi,%edi,1),%esi\n\tmovl\t36(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t44(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t24(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,36(%esp)\n\tleal\t1859775393(%edi,%edx,1),%edi\n\tmovl\t40(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%edx\n\txorl\t%ebx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:12", "text": "xorl\t44(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t24(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,36(%esp)\n\tleal\t1859775393(%edi,%edx,1),%edi\n\tmovl\t40(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,40(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx\n\tmovl\t44(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t52(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t12(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t32(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,44(%esp)\n\tleal\t1859775393(%ecx,%ebx,1),%ecx\n\tmovl\t48(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t56(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t16(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t36(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,48(%esp)\n\tleal\t1859775393(%ebx,%eax,1),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:13", "text": "movl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,44(%esp)\n\tleal\t1859775393(%ecx,%ebx,1),%ecx\n\tmovl\t48(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t56(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t16(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t36(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,48(%esp)\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tmovl\t52(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t20(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t40(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,52(%esp)\n\tleal\t1859775393(%eax,%esi,1),%eax\n\tmovl\t56(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t24(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t44(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,56(%esp)\n\tleal\t1859775393(%esi,%edi,1),%esi\n\tmovl\t60(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edi\n\txorl\t%ecx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:14", "text": "xorl\t(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t24(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t44(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,56(%esp)\n\tleal\t1859775393(%esi,%edi,1),%esi\n\tmovl\t60(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t48(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,60(%esp)\n\tleal\t1859775393(%edi,%edx,1),%edi\n\tmovl\t(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t8(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t32(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t52(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx\n\tmovl\t4(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t12(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t36(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t56(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,4(%esp)\n\tleal\t1859775393(%ecx,%ebx,1),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:15", "text": "movl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx\n\tmovl\t4(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t12(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t36(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t56(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,4(%esp)\n\tleal\t1859775393(%ecx,%ebx,1),%ecx\n\tmovl\t8(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t16(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t40(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t60(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,8(%esp)\n\tleal\t1859775393(%ebx,%eax,1),%ebx\n\tmovl\t12(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t20(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t44(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,12(%esp)\n\tleal\t1859775393(%eax,%esi,1),%eax\n\tmovl\t16(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t24(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t48(%esp),%esi\n\txorl\t%edx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:16", "text": "xorl\t20(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t44(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,12(%esp)\n\tleal\t1859775393(%eax,%esi,1),%eax\n\tmovl\t16(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t24(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t48(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t4(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,16(%esp)\n\tleal\t1859775393(%esi,%edi,1),%esi\n\tmovl\t20(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t28(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t52(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t8(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,20(%esp)\n\tleal\t1859775393(%edi,%edx,1),%edi\n\tmovl\t24(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t32(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t56(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t12(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,24(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:17", "text": "movl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,20(%esp)\n\tleal\t1859775393(%edi,%edx,1),%edi\n\tmovl\t24(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t32(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t56(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t12(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,24(%esp)\n\tleal\t1859775393(%edx,%ecx,1),%edx\n\tmovl\t28(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t36(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t60(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t16(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,28(%esp)\n\tleal\t1859775393(%ecx,%ebx,1),%ecx\n\tmovl\t32(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edi,%ebp\n\txorl\t40(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t20(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%eax,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ecx,%eax\n\troll\t$5,%eax\n\tmovl\t%ebx,32(%esp)\n\tleal\t2400959708(%ebx,%ebp,1),%ebx\n\tmovl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t36(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t44(%esp),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:18", "text": "xorl\t40(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t20(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%eax,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ecx,%eax\n\troll\t$5,%eax\n\tmovl\t%ebx,32(%esp)\n\tleal\t2400959708(%ebx,%ebp,1),%ebx\n\tmovl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t36(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t44(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t4(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t24(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%esi\n\troll\t$5,%esi\n\tmovl\t%eax,36(%esp)\n\tleal\t2400959708(%eax,%ebp,1),%eax\n\tmovl\t%edx,%ebp\n\taddl\t%esi,%eax\n\tandl\t%edi,%ebp\n\tmovl\t40(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ecx,%ebp\n\txorl\t48(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t8(%esp),%esi\n\tandl\t%ebx,%ebp\n\txorl\t28(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%edi,%ebp\n\trorl\t$2,%ebx\n\tmovl\t%eax,%edi\n\troll\t$5,%edi\n\tmovl\t%esi,40(%esp)\n\tleal\t2400959708(%esi,%ebp,1),%esi\n\tmovl\t%ecx,%ebp\n\taddl\t%edi,%esi\n\tandl\t%edx,%ebp\n\tmovl\t44(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t52(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t12(%esp),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:19", "text": "xorl\t8(%esp),%esi\n\tandl\t%ebx,%ebp\n\txorl\t28(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%edi,%ebp\n\trorl\t$2,%ebx\n\tmovl\t%eax,%edi\n\troll\t$5,%edi\n\tmovl\t%esi,40(%esp)\n\tleal\t2400959708(%esi,%ebp,1),%esi\n\tmovl\t%ecx,%ebp\n\taddl\t%edi,%esi\n\tandl\t%edx,%ebp\n\tmovl\t44(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t52(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t12(%esp),%edi\n\tandl\t%eax,%ebp\n\txorl\t32(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%edx,%ebp\n\trorl\t$2,%eax\n\tmovl\t%esi,%edx\n\troll\t$5,%edx\n\tmovl\t%edi,44(%esp)\n\tleal\t2400959708(%edi,%ebp,1),%edi\n\tmovl\t%ebx,%ebp\n\taddl\t%edx,%edi\n\tandl\t%ecx,%ebp\n\tmovl\t48(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%eax,%ebp\n\txorl\t56(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t16(%esp),%edx\n\tandl\t%esi,%ebp\n\txorl\t36(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ecx,%ebp\n\trorl\t$2,%esi\n\tmovl\t%edi,%ecx\n\troll\t$5,%ecx\n\tmovl\t%edx,48(%esp)\n\tleal\t2400959708(%edx,%ebp,1),%edx\n\tmovl\t%eax,%ebp\n\taddl\t%ecx,%edx\n\tandl\t%ebx,%ebp\n\tmovl\t52(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%esi,%ebp\n\txorl\t60(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t20(%esp),%ecx\n\tandl\t%edi,%ebp\n\txorl\t40(%esp),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:20", "text": "xorl\t36(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ecx,%ebp\n\trorl\t$2,%esi\n\tmovl\t%edi,%ecx\n\troll\t$5,%ecx\n\tmovl\t%edx,48(%esp)\n\tleal\t2400959708(%edx,%ebp,1),%edx\n\tmovl\t%eax,%ebp\n\taddl\t%ecx,%edx\n\tandl\t%ebx,%ebp\n\tmovl\t52(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%esi,%ebp\n\txorl\t60(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t20(%esp),%ecx\n\tandl\t%edi,%ebp\n\txorl\t40(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebx,%ebp\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebx\n\troll\t$5,%ebx\n\tmovl\t%ecx,52(%esp)\n\tleal\t2400959708(%ecx,%ebp,1),%ecx\n\tmovl\t%esi,%ebp\n\taddl\t%ebx,%ecx\n\tandl\t%eax,%ebp\n\tmovl\t56(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edi,%ebp\n\txorl\t(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t24(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t44(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%eax,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ecx,%eax\n\troll\t$5,%eax\n\tmovl\t%ebx,56(%esp)\n\tleal\t2400959708(%ebx,%ebp,1),%ebx\n\tmovl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t60(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t4(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t28(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t48(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:21", "text": "addl\t%eax,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ecx,%eax\n\troll\t$5,%eax\n\tmovl\t%ebx,56(%esp)\n\tleal\t2400959708(%ebx,%ebp,1),%ebx\n\tmovl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t60(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t4(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t28(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t48(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%esi\n\troll\t$5,%esi\n\tmovl\t%eax,60(%esp)\n\tleal\t2400959708(%eax,%ebp,1),%eax\n\tmovl\t%edx,%ebp\n\taddl\t%esi,%eax\n\tandl\t%edi,%ebp\n\tmovl\t(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ecx,%ebp\n\txorl\t8(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t32(%esp),%esi\n\tandl\t%ebx,%ebp\n\txorl\t52(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%edi,%ebp\n\trorl\t$2,%ebx\n\tmovl\t%eax,%edi\n\troll\t$5,%edi\n\tmovl\t%esi,(%esp)\n\tleal\t2400959708(%esi,%ebp,1),%esi\n\tmovl\t%ecx,%ebp\n\taddl\t%edi,%esi\n\tandl\t%edx,%ebp\n\tmovl\t4(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t12(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t36(%esp),%edi\n\tandl\t%eax,%ebp\n\txorl\t56(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%edx,%ebp\n\trorl\t$2,%eax\n\tmovl\t%esi,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:22", "text": "movl\t%eax,%edi\n\troll\t$5,%edi\n\tmovl\t%esi,(%esp)\n\tleal\t2400959708(%esi,%ebp,1),%esi\n\tmovl\t%ecx,%ebp\n\taddl\t%edi,%esi\n\tandl\t%edx,%ebp\n\tmovl\t4(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t12(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t36(%esp),%edi\n\tandl\t%eax,%ebp\n\txorl\t56(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%edx,%ebp\n\trorl\t$2,%eax\n\tmovl\t%esi,%edx\n\troll\t$5,%edx\n\tmovl\t%edi,4(%esp)\n\tleal\t2400959708(%edi,%ebp,1),%edi\n\tmovl\t%ebx,%ebp\n\taddl\t%edx,%edi\n\tandl\t%ecx,%ebp\n\tmovl\t8(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%eax,%ebp\n\txorl\t16(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t40(%esp),%edx\n\tandl\t%esi,%ebp\n\txorl\t60(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ecx,%ebp\n\trorl\t$2,%esi\n\tmovl\t%edi,%ecx\n\troll\t$5,%ecx\n\tmovl\t%edx,8(%esp)\n\tleal\t2400959708(%edx,%ebp,1),%edx\n\tmovl\t%eax,%ebp\n\taddl\t%ecx,%edx\n\tandl\t%ebx,%ebp\n\tmovl\t12(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%esi,%ebp\n\txorl\t20(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t44(%esp),%ecx\n\tandl\t%edi,%ebp\n\txorl\t(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebx,%ebp\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebx\n\troll\t$5,%ebx\n\tmovl\t%ecx,12(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:23", "text": "movl\t%edx,8(%esp)\n\tleal\t2400959708(%edx,%ebp,1),%edx\n\tmovl\t%eax,%ebp\n\taddl\t%ecx,%edx\n\tandl\t%ebx,%ebp\n\tmovl\t12(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%esi,%ebp\n\txorl\t20(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t44(%esp),%ecx\n\tandl\t%edi,%ebp\n\txorl\t(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebx,%ebp\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebx\n\troll\t$5,%ebx\n\tmovl\t%ecx,12(%esp)\n\tleal\t2400959708(%ecx,%ebp,1),%ecx\n\tmovl\t%esi,%ebp\n\taddl\t%ebx,%ecx\n\tandl\t%eax,%ebp\n\tmovl\t16(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edi,%ebp\n\txorl\t24(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t48(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t4(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%eax,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ecx,%eax\n\troll\t$5,%eax\n\tmovl\t%ebx,16(%esp)\n\tleal\t2400959708(%ebx,%ebp,1),%ebx\n\tmovl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t20(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t28(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t52(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t8(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%esi\n\troll\t$5,%esi\n\tmovl\t%eax,20(%esp)\n\tleal\t2400959708(%eax,%ebp,1),%eax\n\tmovl\t%edx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:24", "text": "movl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t20(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t28(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t52(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t8(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%esi\n\troll\t$5,%esi\n\tmovl\t%eax,20(%esp)\n\tleal\t2400959708(%eax,%ebp,1),%eax\n\tmovl\t%edx,%ebp\n\taddl\t%esi,%eax\n\tandl\t%edi,%ebp\n\tmovl\t24(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ecx,%ebp\n\txorl\t32(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t56(%esp),%esi\n\tandl\t%ebx,%ebp\n\txorl\t12(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%edi,%ebp\n\trorl\t$2,%ebx\n\tmovl\t%eax,%edi\n\troll\t$5,%edi\n\tmovl\t%esi,24(%esp)\n\tleal\t2400959708(%esi,%ebp,1),%esi\n\tmovl\t%ecx,%ebp\n\taddl\t%edi,%esi\n\tandl\t%edx,%ebp\n\tmovl\t28(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t36(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t60(%esp),%edi\n\tandl\t%eax,%ebp\n\txorl\t16(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%edx,%ebp\n\trorl\t$2,%eax\n\tmovl\t%esi,%edx\n\troll\t$5,%edx\n\tmovl\t%edi,28(%esp)\n\tleal\t2400959708(%edi,%ebp,1),%edi\n\tmovl\t%ebx,%ebp\n\taddl\t%edx,%edi\n\tandl\t%ecx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:25", "text": "andl\t%edx,%ebp\n\tmovl\t28(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%ebx,%ebp\n\txorl\t36(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t60(%esp),%edi\n\tandl\t%eax,%ebp\n\txorl\t16(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%edx,%ebp\n\trorl\t$2,%eax\n\tmovl\t%esi,%edx\n\troll\t$5,%edx\n\tmovl\t%edi,28(%esp)\n\tleal\t2400959708(%edi,%ebp,1),%edi\n\tmovl\t%ebx,%ebp\n\taddl\t%edx,%edi\n\tandl\t%ecx,%ebp\n\tmovl\t32(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%eax,%ebp\n\txorl\t40(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t(%esp),%edx\n\tandl\t%esi,%ebp\n\txorl\t20(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ecx,%ebp\n\trorl\t$2,%esi\n\tmovl\t%edi,%ecx\n\troll\t$5,%ecx\n\tmovl\t%edx,32(%esp)\n\tleal\t2400959708(%edx,%ebp,1),%edx\n\tmovl\t%eax,%ebp\n\taddl\t%ecx,%edx\n\tandl\t%ebx,%ebp\n\tmovl\t36(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%esi,%ebp\n\txorl\t44(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t4(%esp),%ecx\n\tandl\t%edi,%ebp\n\txorl\t24(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebx,%ebp\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebx\n\troll\t$5,%ebx\n\tmovl\t%ecx,36(%esp)\n\tleal\t2400959708(%ecx,%ebp,1),%ecx\n\tmovl\t%esi,%ebp\n\taddl\t%ebx,%ecx\n\tandl\t%eax,%ebp\n\tmovl\t40(%esp),%ebx\n\taddl\t%ebp,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:26", "text": "addl\t%ebp,%edx\n\n\tmovl\t%esi,%ebp\n\txorl\t44(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t4(%esp),%ecx\n\tandl\t%edi,%ebp\n\txorl\t24(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebx,%ebp\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebx\n\troll\t$5,%ebx\n\tmovl\t%ecx,36(%esp)\n\tleal\t2400959708(%ecx,%ebp,1),%ecx\n\tmovl\t%esi,%ebp\n\taddl\t%ebx,%ecx\n\tandl\t%eax,%ebp\n\tmovl\t40(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edi,%ebp\n\txorl\t48(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t8(%esp),%ebx\n\tandl\t%edx,%ebp\n\txorl\t28(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%eax,%ebp\n\trorl\t$2,%edx\n\tmovl\t%ecx,%eax\n\troll\t$5,%eax\n\tmovl\t%ebx,40(%esp)\n\tleal\t2400959708(%ebx,%ebp,1),%ebx\n\tmovl\t%edi,%ebp\n\taddl\t%eax,%ebx\n\tandl\t%esi,%ebp\n\tmovl\t44(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%edx,%ebp\n\txorl\t52(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t12(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t32(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%esi\n\troll\t$5,%esi\n\tmovl\t%eax,44(%esp)\n\tleal\t2400959708(%eax,%ebp,1),%eax\n\tmovl\t%edx,%ebp\n\taddl\t%esi,%eax\n\tandl\t%edi,%ebp\n\tmovl\t48(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:27", "text": "movl\t%edx,%ebp\n\txorl\t52(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t12(%esp),%eax\n\tandl\t%ecx,%ebp\n\txorl\t32(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%esi,%ebp\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%esi\n\troll\t$5,%esi\n\tmovl\t%eax,44(%esp)\n\tleal\t2400959708(%eax,%ebp,1),%eax\n\tmovl\t%edx,%ebp\n\taddl\t%esi,%eax\n\tandl\t%edi,%ebp\n\tmovl\t48(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t56(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t16(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t36(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,48(%esp)\n\tleal\t3395469782(%esi,%edi,1),%esi\n\tmovl\t52(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t60(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t20(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t40(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,52(%esp)\n\tleal\t3395469782(%edi,%edx,1),%edi\n\tmovl\t56(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t24(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t44(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:28", "text": "xorl\t40(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,52(%esp)\n\tleal\t3395469782(%edi,%edx,1),%edi\n\tmovl\t56(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t24(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t44(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,56(%esp)\n\tleal\t3395469782(%edx,%ecx,1),%edx\n\tmovl\t60(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t4(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t28(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t48(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,60(%esp)\n\tleal\t3395469782(%ecx,%ebx,1),%ecx\n\tmovl\t(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t8(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t32(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t52(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,(%esp)\n\tleal\t3395469782(%ebx,%eax,1),%ebx\n\tmovl\t4(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:29", "text": "movl\t(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t8(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t32(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t52(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,(%esp)\n\tleal\t3395469782(%ebx,%eax,1),%ebx\n\tmovl\t4(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t12(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t36(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t56(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,4(%esp)\n\tleal\t3395469782(%eax,%esi,1),%eax\n\tmovl\t8(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t16(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t40(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t60(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,8(%esp)\n\tleal\t3395469782(%esi,%edi,1),%esi\n\tmovl\t12(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t20(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t44(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:30", "text": "xorl\t60(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,8(%esp)\n\tleal\t3395469782(%esi,%edi,1),%esi\n\tmovl\t12(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t20(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t44(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,12(%esp)\n\tleal\t3395469782(%edi,%edx,1),%edi\n\tmovl\t16(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t24(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t4(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,16(%esp)\n\tleal\t3395469782(%edx,%ecx,1),%edx\n\tmovl\t20(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t28(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t52(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,20(%esp)\n\tleal\t3395469782(%ecx,%ebx,1),%ecx\n\tmovl\t24(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:31", "text": "movl\t20(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t28(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t52(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,20(%esp)\n\tleal\t3395469782(%ecx,%ebx,1),%ecx\n\tmovl\t24(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t32(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t56(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t12(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,24(%esp)\n\tleal\t3395469782(%ebx,%eax,1),%ebx\n\tmovl\t28(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t36(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t60(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t16(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,28(%esp)\n\tleal\t3395469782(%eax,%esi,1),%eax\n\tmovl\t32(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t40(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t20(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:32", "text": "xorl\t16(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%eax,28(%esp)\n\tleal\t3395469782(%eax,%esi,1),%eax\n\tmovl\t32(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t40(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t20(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tmovl\t%esi,32(%esp)\n\tleal\t3395469782(%esi,%edi,1),%esi\n\tmovl\t36(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t44(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t24(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edi,36(%esp)\n\tleal\t3395469782(%edi,%edx,1),%edi\n\tmovl\t40(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,40(%esp)\n\tleal\t3395469782(%edx,%ecx,1),%edx\n\tmovl\t44(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:33", "text": "movl\t40(%esp),%edx\n\taddl\t%ebp,%edi\n\n\tmovl\t%esi,%ebp\n\txorl\t48(%esp),%edx\n\txorl\t%eax,%ebp\n\txorl\t8(%esp),%edx\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edx\n\troll\t$1,%edx\n\taddl\t%ebp,%ecx\n\trorl\t$2,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%ebp\n\tmovl\t%edx,40(%esp)\n\tleal\t3395469782(%edx,%ecx,1),%edx\n\tmovl\t44(%esp),%ecx\n\taddl\t%ebp,%edx\n\n\tmovl\t%edi,%ebp\n\txorl\t52(%esp),%ecx\n\txorl\t%esi,%ebp\n\txorl\t12(%esp),%ecx\n\txorl\t%eax,%ebp\n\txorl\t32(%esp),%ecx\n\troll\t$1,%ecx\n\taddl\t%ebp,%ebx\n\trorl\t$2,%edi\n\tmovl\t%edx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ecx,44(%esp)\n\tleal\t3395469782(%ecx,%ebx,1),%ecx\n\tmovl\t48(%esp),%ebx\n\taddl\t%ebp,%ecx\n\n\tmovl\t%edx,%ebp\n\txorl\t56(%esp),%ebx\n\txorl\t%edi,%ebp\n\txorl\t16(%esp),%ebx\n\txorl\t%esi,%ebp\n\txorl\t36(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,48(%esp)\n\tleal\t3395469782(%ebx,%eax,1),%ebx\n\tmovl\t52(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t20(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t40(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:34", "text": "xorl\t36(%esp),%ebx\n\troll\t$1,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$2,%edx\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ebp\n\tmovl\t%ebx,48(%esp)\n\tleal\t3395469782(%ebx,%eax,1),%ebx\n\tmovl\t52(%esp),%eax\n\taddl\t%ebp,%ebx\n\n\tmovl\t%ecx,%ebp\n\txorl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\txorl\t20(%esp),%eax\n\txorl\t%edi,%ebp\n\txorl\t40(%esp),%eax\n\troll\t$1,%eax\n\taddl\t%ebp,%esi\n\trorl\t$2,%ecx\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebp\n\tleal\t3395469782(%eax,%esi,1),%eax\n\tmovl\t56(%esp),%esi\n\taddl\t%ebp,%eax\n\n\tmovl\t%ebx,%ebp\n\txorl\t(%esp),%esi\n\txorl\t%ecx,%ebp\n\txorl\t24(%esp),%esi\n\txorl\t%edx,%ebp\n\txorl\t44(%esp),%esi\n\troll\t$1,%esi\n\taddl\t%ebp,%edi\n\trorl\t$2,%ebx\n\tmovl\t%eax,%ebp\n\troll\t$5,%ebp\n\tleal\t3395469782(%esi,%edi,1),%esi\n\tmovl\t60(%esp),%edi\n\taddl\t%ebp,%esi\n\n\tmovl\t%eax,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t48(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tleal\t3395469782(%edi,%edx,1),%edi\n\taddl\t%ebp,%edi\n\tmovl\t96(%esp),%ebp\n\tmovl\t100(%esp),%edx\n\taddl\t(%ebp),%edi\n\taddl\t4(%ebp),%esi\n\taddl\t8(%ebp),%eax\n\taddl\t12(%ebp),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:35", "text": "movl\t%eax,%ebp\n\txorl\t4(%esp),%edi\n\txorl\t%ebx,%ebp\n\txorl\t28(%esp),%edi\n\txorl\t%ecx,%ebp\n\txorl\t48(%esp),%edi\n\troll\t$1,%edi\n\taddl\t%ebp,%edx\n\trorl\t$2,%eax\n\tmovl\t%esi,%ebp\n\troll\t$5,%ebp\n\tleal\t3395469782(%edi,%edx,1),%edi\n\taddl\t%ebp,%edi\n\tmovl\t96(%esp),%ebp\n\tmovl\t100(%esp),%edx\n\taddl\t(%ebp),%edi\n\taddl\t4(%ebp),%esi\n\taddl\t8(%ebp),%eax\n\taddl\t12(%ebp),%ebx\n\taddl\t16(%ebp),%ecx\n\tmovl\t%edi,(%ebp)\n\taddl\t$64,%edx\n\tmovl\t%esi,4(%ebp)\n\tcmpl\t104(%esp),%edx\n\tmovl\t%eax,8(%ebp)\n\tmovl\t%ecx,%edi\n\tmovl\t%ebx,12(%ebp)\n\tmovl\t%edx,%esi\n\tmovl\t%ecx,16(%ebp)\n\tjb\t.L002loop\n\taddl\t$76,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tsha1_block_data_order,.-.L_sha1_block_data_order_begin\n.type\t_sha1_block_data_order_shaext,@function\n.align\t16\n_sha1_block_data_order_shaext:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tcall\t.L003pic_point\n.L003pic_point:\n\tpopl\t%ebp\n\tleal\t.LK_XX_XX-.L003pic_point(%ebp),%ebp\n.Lshaext_shortcut:\n\tmovl\t20(%esp),%edi\n\tmovl\t%esp,%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n\tsubl\t$32,%esp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:36", "text": "_sha1_block_data_order_shaext:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tcall\t.L003pic_point\n.L003pic_point:\n\tpopl\t%ebp\n\tleal\t.LK_XX_XX-.L003pic_point(%ebp),%ebp\n.Lshaext_shortcut:\n\tmovl\t20(%esp),%edi\n\tmovl\t%esp,%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%ecx\n\tsubl\t$32,%esp\n\tmovdqu\t(%edi),%xmm0\n\tmovd\t16(%edi),%xmm1\n\tandl\t$-32,%esp\n\tmovdqa\t80(%ebp),%xmm3\n\tmovdqu\t(%esi),%xmm4\n\tpshufd\t$27,%xmm0,%xmm0\n\tmovdqu\t16(%esi),%xmm5\n\tpshufd\t$27,%xmm1,%xmm1\n\tmovdqu\t32(%esi),%xmm6\n.byte\t102,15,56,0,227\n\tmovdqu\t48(%esi),%xmm7\n.byte\t102,15,56,0,235\n.byte\t102,15,56,0,243\n.byte\t102,15,56,0,251\n\tjmp\t.L004loop_shaext\n.align\t16\n.L004loop_shaext:\n\tdecl\t%ecx\n\tleal\t64(%esi),%eax\n\tmovdqa\t%xmm1,(%esp)\n\tpaddd\t%xmm4,%xmm1\n\tcmovnel\t%eax,%esi\n\tmovdqa\t%xmm0,16(%esp)\n.byte\t15,56,201,229\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,0\n.byte\t15,56,200,213\n\tpxor\t%xmm6,%xmm4\n.byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,0\n.byte\t15,56,200,206\n\tpxor\t%xmm7,%xmm5\n.byte\t15,56,202,236\n.byte\t15,56,201,247\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,0\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:37", "text": "paddd\t%xmm4,%xmm1\n\tcmovnel\t%eax,%esi\n\tmovdqa\t%xmm0,16(%esp)\n.byte\t15,56,201,229\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,0\n.byte\t15,56,200,213\n\tpxor\t%xmm6,%xmm4\n.byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,0\n.byte\t15,56,200,206\n\tpxor\t%xmm7,%xmm5\n.byte\t15,56,202,236\n.byte\t15,56,201,247\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,0\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6\n.byte\t15,56,201,252\n.byte\t15,56,202,245\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,0\n.byte\t15,56,200,204\n\tpxor\t%xmm5,%xmm7\n.byte\t15,56,202,254\n.byte\t15,56,201,229\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,0\n.byte\t15,56,200,213\n\tpxor\t%xmm6,%xmm4\n.byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,1\n.byte\t15,56,200,206\n\tpxor\t%xmm7,%xmm5\n.byte\t15,56,202,236\n.byte\t15,56,201,247\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,1\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6\n.byte\t15,56,201,252\n.byte\t15,56,202,245\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,1\n.byte\t15,56,200,204\n\tpxor\t%xmm5,%xmm7\n.byte\t15,56,202,254\n.byte\t15,56,201,229\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,1\n.byte\t15,56,200,213\n\tpxor\t%xmm6,%xmm4\n.byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:38", "text": "movdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,1\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6\n.byte\t15,56,201,252\n.byte\t15,56,202,245\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,1\n.byte\t15,56,200,204\n\tpxor\t%xmm5,%xmm7\n.byte\t15,56,202,254\n.byte\t15,56,201,229\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,1\n.byte\t15,56,200,213\n\tpxor\t%xmm6,%xmm4\n.byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,1\n.byte\t15,56,200,206\n\tpxor\t%xmm7,%xmm5\n.byte\t15,56,202,236\n.byte\t15,56,201,247\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,2\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6\n.byte\t15,56,201,252\n.byte\t15,56,202,245\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,2\n.byte\t15,56,200,204\n\tpxor\t%xmm5,%xmm7\n.byte\t15,56,202,254\n.byte\t15,56,201,229\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,2\n.byte\t15,56,200,213\n\tpxor\t%xmm6,%xmm4\n.byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,2\n.byte\t15,56,200,206\n\tpxor\t%xmm7,%xmm5\n.byte\t15,56,202,236\n.byte\t15,56,201,247\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,2\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6\n.byte\t15,56,201,252\n.byte\t15,56,202,245\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,3\n.byte\t15,56,200,204\n\tpxor\t%xmm5,%xmm7\n.byte\t15,56,202,254\n\tmovdqu\t(%esi),%xmm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:39", "text": ".byte\t15,56,201,238\n.byte\t15,56,202,231\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,2\n.byte\t15,56,200,206\n\tpxor\t%xmm7,%xmm5\n.byte\t15,56,202,236\n.byte\t15,56,201,247\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,2\n.byte\t15,56,200,215\n\tpxor\t%xmm4,%xmm6\n.byte\t15,56,201,252\n.byte\t15,56,202,245\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,3\n.byte\t15,56,200,204\n\tpxor\t%xmm5,%xmm7\n.byte\t15,56,202,254\n\tmovdqu\t(%esi),%xmm4\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,3\n.byte\t15,56,200,213\n\tmovdqu\t16(%esi),%xmm5\n.byte\t102,15,56,0,227\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,3\n.byte\t15,56,200,206\n\tmovdqu\t32(%esi),%xmm6\n.byte\t102,15,56,0,235\n\tmovdqa\t%xmm0,%xmm2\n.byte\t15,58,204,193,3\n.byte\t15,56,200,215\n\tmovdqu\t48(%esi),%xmm7\n.byte\t102,15,56,0,243\n\tmovdqa\t%xmm0,%xmm1\n.byte\t15,58,204,194,3\n\tmovdqa\t(%esp),%xmm2\n.byte\t102,15,56,0,251\n.byte\t15,56,200,202\n\tpaddd\t16(%esp),%xmm0\n\tjnz\t.L004loop_shaext\n\tpshufd\t$27,%xmm0,%xmm0\n\tpshufd\t$27,%xmm1,%xmm1\n\tmovdqu\t%xmm0,(%edi)\n\tmovd\t%xmm1,16(%edi)\n\tmovl\t%ebx,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\t_sha1_block_data_order_shaext,.-_sha1_block_data_order_shaext\n.type\t_sha1_block_data_order_ssse3,@function\n.align\t16\n_sha1_block_data_order_ssse3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:40", "text": "paddd\t16(%esp),%xmm0\n\tjnz\t.L004loop_shaext\n\tpshufd\t$27,%xmm0,%xmm0\n\tpshufd\t$27,%xmm1,%xmm1\n\tmovdqu\t%xmm0,(%edi)\n\tmovd\t%xmm1,16(%edi)\n\tmovl\t%ebx,%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\t_sha1_block_data_order_shaext,.-_sha1_block_data_order_shaext\n.type\t_sha1_block_data_order_ssse3,@function\n.align\t16\n_sha1_block_data_order_ssse3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tcall\t.L005pic_point\n.L005pic_point:\n\tpopl\t%ebp\n\tleal\t.LK_XX_XX-.L005pic_point(%ebp),%ebp\n.Lssse3_shortcut:\n\tmovdqa\t(%ebp),%xmm7\n\tmovdqa\t16(%ebp),%xmm0\n\tmovdqa\t32(%ebp),%xmm1\n\tmovdqa\t48(%ebp),%xmm2\n\tmovdqa\t64(%ebp),%xmm6\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebp\n\tmovl\t28(%esp),%edx\n\tmovl\t%esp,%esi\n\tsubl\t$208,%esp\n\tandl\t$-64,%esp\n\tmovdqa\t%xmm0,112(%esp)\n\tmovdqa\t%xmm1,128(%esp)\n\tmovdqa\t%xmm2,144(%esp)\n\tshll\t$6,%edx\n\tmovdqa\t%xmm7,160(%esp)\n\taddl\t%ebp,%edx\n\tmovdqa\t%xmm6,176(%esp)\n\taddl\t$64,%ebp\n\tmovl\t%edi,192(%esp)\n\tmovl\t%ebp,196(%esp)\n\tmovl\t%edx,200(%esp)\n\tmovl\t%esi,204(%esp)\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tmovl\t16(%edi),%edi\n\tmovl\t%ebx,%esi\n\tmovdqu\t-64(%ebp),%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:41", "text": "andl\t$-64,%esp\n\tmovdqa\t%xmm0,112(%esp)\n\tmovdqa\t%xmm1,128(%esp)\n\tmovdqa\t%xmm2,144(%esp)\n\tshll\t$6,%edx\n\tmovdqa\t%xmm7,160(%esp)\n\taddl\t%ebp,%edx\n\tmovdqa\t%xmm6,176(%esp)\n\taddl\t$64,%ebp\n\tmovl\t%edi,192(%esp)\n\tmovl\t%ebp,196(%esp)\n\tmovl\t%edx,200(%esp)\n\tmovl\t%esi,204(%esp)\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tmovl\t16(%edi),%edi\n\tmovl\t%ebx,%esi\n\tmovdqu\t-64(%ebp),%xmm0\n\tmovdqu\t-48(%ebp),%xmm1\n\tmovdqu\t-32(%ebp),%xmm2\n\tmovdqu\t-16(%ebp),%xmm3\n.byte\t102,15,56,0,198\n.byte\t102,15,56,0,206\n.byte\t102,15,56,0,214\n\tmovdqa\t%xmm7,96(%esp)\n.byte\t102,15,56,0,222\n\tpaddd\t%xmm7,%xmm0\n\tpaddd\t%xmm7,%xmm1\n\tpaddd\t%xmm7,%xmm2\n\tmovdqa\t%xmm0,(%esp)\n\tpsubd\t%xmm7,%xmm0\n\tmovdqa\t%xmm1,16(%esp)\n\tpsubd\t%xmm7,%xmm1\n\tmovdqa\t%xmm2,32(%esp)\n\tmovl\t%ecx,%ebp\n\tpsubd\t%xmm7,%xmm2\n\txorl\t%edx,%ebp\n\tpshufd\t$238,%xmm0,%xmm4\n\tandl\t%ebp,%esi\n\tjmp\t.L006loop\n.align\t16\n.L006loop:\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tmovl\t%eax,%ebp\n\tpunpcklqdq\t%xmm1,%xmm4\n\tmovdqa\t%xmm3,%xmm6\n\taddl\t(%esp),%edi\n\txorl\t%ecx,%ebx\n\tpaddd\t%xmm3,%xmm7\n\tmovdqa\t%xmm0,64(%esp)\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\tpsrldq\t$4,%xmm6\n\tandl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\tpxor\t%xmm0,%xmm4\n\taddl\t%eax,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:42", "text": "andl\t%ebp,%esi\n\tjmp\t.L006loop\n.align\t16\n.L006loop:\n\trorl\t$2,%ebx\n\txorl\t%edx,%esi\n\tmovl\t%eax,%ebp\n\tpunpcklqdq\t%xmm1,%xmm4\n\tmovdqa\t%xmm3,%xmm6\n\taddl\t(%esp),%edi\n\txorl\t%ecx,%ebx\n\tpaddd\t%xmm3,%xmm7\n\tmovdqa\t%xmm0,64(%esp)\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\tpsrldq\t$4,%xmm6\n\tandl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\tpxor\t%xmm0,%xmm4\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tpxor\t%xmm2,%xmm6\n\txorl\t%ecx,%ebp\n\tmovl\t%edi,%esi\n\taddl\t4(%esp),%edx\n\tpxor\t%xmm6,%xmm4\n\txorl\t%ebx,%eax\n\troll\t$5,%edi\n\tmovdqa\t%xmm7,48(%esp)\n\taddl\t%ebp,%edx\n\tandl\t%eax,%esi\n\tmovdqa\t%xmm4,%xmm0\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\trorl\t$7,%edi\n\tmovdqa\t%xmm4,%xmm6\n\txorl\t%ebx,%esi\n\tpslldq\t$12,%xmm0\n\tpaddd\t%xmm4,%xmm4\n\tmovl\t%edx,%ebp\n\taddl\t8(%esp),%ecx\n\tpsrld\t$31,%xmm6\n\txorl\t%eax,%edi\n\troll\t$5,%edx\n\tmovdqa\t%xmm0,%xmm7\n\taddl\t%esi,%ecx\n\tandl\t%edi,%ebp\n\txorl\t%eax,%edi\n\tpsrld\t$30,%xmm0\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\tpor\t%xmm6,%xmm4\n\txorl\t%eax,%ebp\n\tmovl\t%ecx,%esi\n\taddl\t12(%esp),%ebx\n\tpslld\t$2,%xmm7\n\txorl\t%edi,%edx\n\troll\t$5,%ecx\n\tpxor\t%xmm0,%xmm4\n\tmovdqa\t96(%esp),%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:43", "text": "addl\t8(%esp),%ecx\n\tpsrld\t$31,%xmm6\n\txorl\t%eax,%edi\n\troll\t$5,%edx\n\tmovdqa\t%xmm0,%xmm7\n\taddl\t%esi,%ecx\n\tandl\t%edi,%ebp\n\txorl\t%eax,%edi\n\tpsrld\t$30,%xmm0\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\tpor\t%xmm6,%xmm4\n\txorl\t%eax,%ebp\n\tmovl\t%ecx,%esi\n\taddl\t12(%esp),%ebx\n\tpslld\t$2,%xmm7\n\txorl\t%edi,%edx\n\troll\t$5,%ecx\n\tpxor\t%xmm0,%xmm4\n\tmovdqa\t96(%esp),%xmm0\n\taddl\t%ebp,%ebx\n\tandl\t%edx,%esi\n\tpxor\t%xmm7,%xmm4\n\tpshufd\t$238,%xmm1,%xmm5\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\trorl\t$7,%ecx\n\txorl\t%edi,%esi\n\tmovl\t%ebx,%ebp\n\tpunpcklqdq\t%xmm2,%xmm5\n\tmovdqa\t%xmm4,%xmm7\n\taddl\t16(%esp),%eax\n\txorl\t%edx,%ecx\n\tpaddd\t%xmm4,%xmm0\n\tmovdqa\t%xmm1,80(%esp)\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\tpsrldq\t$4,%xmm7\n\tandl\t%ecx,%ebp\n\txorl\t%edx,%ecx\n\tpxor\t%xmm1,%xmm5\n\taddl\t%ebx,%eax\n\trorl\t$7,%ebx\n\tpxor\t%xmm3,%xmm7\n\txorl\t%edx,%ebp\n\tmovl\t%eax,%esi\n\taddl\t20(%esp),%edi\n\tpxor\t%xmm7,%xmm5\n\txorl\t%ecx,%ebx\n\troll\t$5,%eax\n\tmovdqa\t%xmm0,(%esp)\n\taddl\t%ebp,%edi\n\tandl\t%ebx,%esi\n\tmovdqa\t%xmm5,%xmm1\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tmovdqa\t%xmm5,%xmm7\n\txorl\t%ecx,%esi\n\tpslldq\t$12,%xmm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:44", "text": "pxor\t%xmm1,%xmm5\n\taddl\t%ebx,%eax\n\trorl\t$7,%ebx\n\tpxor\t%xmm3,%xmm7\n\txorl\t%edx,%ebp\n\tmovl\t%eax,%esi\n\taddl\t20(%esp),%edi\n\tpxor\t%xmm7,%xmm5\n\txorl\t%ecx,%ebx\n\troll\t$5,%eax\n\tmovdqa\t%xmm0,(%esp)\n\taddl\t%ebp,%edi\n\tandl\t%ebx,%esi\n\tmovdqa\t%xmm5,%xmm1\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tmovdqa\t%xmm5,%xmm7\n\txorl\t%ecx,%esi\n\tpslldq\t$12,%xmm1\n\tpaddd\t%xmm5,%xmm5\n\tmovl\t%edi,%ebp\n\taddl\t24(%esp),%edx\n\tpsrld\t$31,%xmm7\n\txorl\t%ebx,%eax\n\troll\t$5,%edi\n\tmovdqa\t%xmm1,%xmm0\n\taddl\t%esi,%edx\n\tandl\t%eax,%ebp\n\txorl\t%ebx,%eax\n\tpsrld\t$30,%xmm1\n\taddl\t%edi,%edx\n\trorl\t$7,%edi\n\tpor\t%xmm7,%xmm5\n\txorl\t%ebx,%ebp\n\tmovl\t%edx,%esi\n\taddl\t28(%esp),%ecx\n\tpslld\t$2,%xmm0\n\txorl\t%eax,%edi\n\troll\t$5,%edx\n\tpxor\t%xmm1,%xmm5\n\tmovdqa\t112(%esp),%xmm1\n\taddl\t%ebp,%ecx\n\tandl\t%edi,%esi\n\tpxor\t%xmm0,%xmm5\n\tpshufd\t$238,%xmm2,%xmm6\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\txorl\t%eax,%esi\n\tmovl\t%ecx,%ebp\n\tpunpcklqdq\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\taddl\t32(%esp),%ebx\n\txorl\t%edi,%edx\n\tpaddd\t%xmm5,%xmm1\n\tmovdqa\t%xmm2,96(%esp)\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\tpsrldq\t$4,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:45", "text": "pxor\t%xmm1,%xmm5\n\tmovdqa\t112(%esp),%xmm1\n\taddl\t%ebp,%ecx\n\tandl\t%edi,%esi\n\tpxor\t%xmm0,%xmm5\n\tpshufd\t$238,%xmm2,%xmm6\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\txorl\t%eax,%esi\n\tmovl\t%ecx,%ebp\n\tpunpcklqdq\t%xmm3,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\taddl\t32(%esp),%ebx\n\txorl\t%edi,%edx\n\tpaddd\t%xmm5,%xmm1\n\tmovdqa\t%xmm2,96(%esp)\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\tpsrldq\t$4,%xmm0\n\tandl\t%edx,%ebp\n\txorl\t%edi,%edx\n\tpxor\t%xmm2,%xmm6\n\taddl\t%ecx,%ebx\n\trorl\t$7,%ecx\n\tpxor\t%xmm4,%xmm0\n\txorl\t%edi,%ebp\n\tmovl\t%ebx,%esi\n\taddl\t36(%esp),%eax\n\tpxor\t%xmm0,%xmm6\n\txorl\t%edx,%ecx\n\troll\t$5,%ebx\n\tmovdqa\t%xmm1,16(%esp)\n\taddl\t%ebp,%eax\n\tandl\t%ecx,%esi\n\tmovdqa\t%xmm6,%xmm2\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\trorl\t$7,%ebx\n\tmovdqa\t%xmm6,%xmm0\n\txorl\t%edx,%esi\n\tpslldq\t$12,%xmm2\n\tpaddd\t%xmm6,%xmm6\n\tmovl\t%eax,%ebp\n\taddl\t40(%esp),%edi\n\tpsrld\t$31,%xmm0\n\txorl\t%ecx,%ebx\n\troll\t$5,%eax\n\tmovdqa\t%xmm2,%xmm1\n\taddl\t%esi,%edi\n\tandl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\tpsrld\t$30,%xmm2\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tpor\t%xmm0,%xmm6\n\txorl\t%ecx,%ebp\n\tmovdqa\t64(%esp),%xmm0\n\tmovl\t%edi,%esi\n\taddl\t44(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:46", "text": "xorl\t%edx,%esi\n\tpslldq\t$12,%xmm2\n\tpaddd\t%xmm6,%xmm6\n\tmovl\t%eax,%ebp\n\taddl\t40(%esp),%edi\n\tpsrld\t$31,%xmm0\n\txorl\t%ecx,%ebx\n\troll\t$5,%eax\n\tmovdqa\t%xmm2,%xmm1\n\taddl\t%esi,%edi\n\tandl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\tpsrld\t$30,%xmm2\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tpor\t%xmm0,%xmm6\n\txorl\t%ecx,%ebp\n\tmovdqa\t64(%esp),%xmm0\n\tmovl\t%edi,%esi\n\taddl\t44(%esp),%edx\n\tpslld\t$2,%xmm1\n\txorl\t%ebx,%eax\n\troll\t$5,%edi\n\tpxor\t%xmm2,%xmm6\n\tmovdqa\t112(%esp),%xmm2\n\taddl\t%ebp,%edx\n\tandl\t%eax,%esi\n\tpxor\t%xmm1,%xmm6\n\tpshufd\t$238,%xmm3,%xmm7\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\trorl\t$7,%edi\n\txorl\t%ebx,%esi\n\tmovl\t%edx,%ebp\n\tpunpcklqdq\t%xmm4,%xmm7\n\tmovdqa\t%xmm6,%xmm1\n\taddl\t48(%esp),%ecx\n\txorl\t%eax,%edi\n\tpaddd\t%xmm6,%xmm2\n\tmovdqa\t%xmm3,64(%esp)\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\tpsrldq\t$4,%xmm1\n\tandl\t%edi,%ebp\n\txorl\t%eax,%edi\n\tpxor\t%xmm3,%xmm7\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\tpxor\t%xmm5,%xmm1\n\txorl\t%eax,%ebp\n\tmovl\t%ecx,%esi\n\taddl\t52(%esp),%ebx\n\tpxor\t%xmm1,%xmm7\n\txorl\t%edi,%edx\n\troll\t$5,%ecx\n\tmovdqa\t%xmm2,32(%esp)\n\taddl\t%ebp,%ebx\n\tandl\t%edx,%esi\n\tmovdqa\t%xmm7,%xmm3\n\txorl\t%edi,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:47", "text": "roll\t$5,%edx\n\taddl\t%esi,%ecx\n\tpsrldq\t$4,%xmm1\n\tandl\t%edi,%ebp\n\txorl\t%eax,%edi\n\tpxor\t%xmm3,%xmm7\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\tpxor\t%xmm5,%xmm1\n\txorl\t%eax,%ebp\n\tmovl\t%ecx,%esi\n\taddl\t52(%esp),%ebx\n\tpxor\t%xmm1,%xmm7\n\txorl\t%edi,%edx\n\troll\t$5,%ecx\n\tmovdqa\t%xmm2,32(%esp)\n\taddl\t%ebp,%ebx\n\tandl\t%edx,%esi\n\tmovdqa\t%xmm7,%xmm3\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\trorl\t$7,%ecx\n\tmovdqa\t%xmm7,%xmm1\n\txorl\t%edi,%esi\n\tpslldq\t$12,%xmm3\n\tpaddd\t%xmm7,%xmm7\n\tmovl\t%ebx,%ebp\n\taddl\t56(%esp),%eax\n\tpsrld\t$31,%xmm1\n\txorl\t%edx,%ecx\n\troll\t$5,%ebx\n\tmovdqa\t%xmm3,%xmm2\n\taddl\t%esi,%eax\n\tandl\t%ecx,%ebp\n\txorl\t%edx,%ecx\n\tpsrld\t$30,%xmm3\n\taddl\t%ebx,%eax\n\trorl\t$7,%ebx\n\tpor\t%xmm1,%xmm7\n\txorl\t%edx,%ebp\n\tmovdqa\t80(%esp),%xmm1\n\tmovl\t%eax,%esi\n\taddl\t60(%esp),%edi\n\tpslld\t$2,%xmm2\n\txorl\t%ecx,%ebx\n\troll\t$5,%eax\n\tpxor\t%xmm3,%xmm7\n\tmovdqa\t112(%esp),%xmm3\n\taddl\t%ebp,%edi\n\tandl\t%ebx,%esi\n\tpxor\t%xmm2,%xmm7\n\tpshufd\t$238,%xmm6,%xmm2\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tpxor\t%xmm4,%xmm0\n\tpunpcklqdq\t%xmm7,%xmm2\n\txorl\t%ecx,%esi\n\tmovl\t%edi,%ebp\n\taddl\t(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:48", "text": "movdqa\t80(%esp),%xmm1\n\tmovl\t%eax,%esi\n\taddl\t60(%esp),%edi\n\tpslld\t$2,%xmm2\n\txorl\t%ecx,%ebx\n\troll\t$5,%eax\n\tpxor\t%xmm3,%xmm7\n\tmovdqa\t112(%esp),%xmm3\n\taddl\t%ebp,%edi\n\tandl\t%ebx,%esi\n\tpxor\t%xmm2,%xmm7\n\tpshufd\t$238,%xmm6,%xmm2\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\trorl\t$7,%eax\n\tpxor\t%xmm4,%xmm0\n\tpunpcklqdq\t%xmm7,%xmm2\n\txorl\t%ecx,%esi\n\tmovl\t%edi,%ebp\n\taddl\t(%esp),%edx\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t%xmm4,80(%esp)\n\txorl\t%ebx,%eax\n\troll\t$5,%edi\n\tmovdqa\t%xmm3,%xmm4\n\taddl\t%esi,%edx\n\tpaddd\t%xmm7,%xmm3\n\tandl\t%eax,%ebp\n\tpxor\t%xmm2,%xmm0\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\trorl\t$7,%edi\n\txorl\t%ebx,%ebp\n\tmovdqa\t%xmm0,%xmm2\n\tmovdqa\t%xmm3,48(%esp)\n\tmovl\t%edx,%esi\n\taddl\t4(%esp),%ecx\n\txorl\t%eax,%edi\n\troll\t$5,%edx\n\tpslld\t$2,%xmm0\n\taddl\t%ebp,%ecx\n\tandl\t%edi,%esi\n\tpsrld\t$30,%xmm2\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\txorl\t%eax,%esi\n\tmovl\t%ecx,%ebp\n\taddl\t8(%esp),%ebx\n\txorl\t%edi,%edx\n\troll\t$5,%ecx\n\tpor\t%xmm2,%xmm0\n\taddl\t%esi,%ebx\n\tandl\t%edx,%ebp\n\tmovdqa\t96(%esp),%xmm2\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\taddl\t12(%esp),%eax\n\txorl\t%edi,%ebp\n\tmovl\t%ebx,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:49", "text": "addl\t%ebp,%ecx\n\tandl\t%edi,%esi\n\tpsrld\t$30,%xmm2\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\trorl\t$7,%edx\n\txorl\t%eax,%esi\n\tmovl\t%ecx,%ebp\n\taddl\t8(%esp),%ebx\n\txorl\t%edi,%edx\n\troll\t$5,%ecx\n\tpor\t%xmm2,%xmm0\n\taddl\t%esi,%ebx\n\tandl\t%edx,%ebp\n\tmovdqa\t96(%esp),%xmm2\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\taddl\t12(%esp),%eax\n\txorl\t%edi,%ebp\n\tmovl\t%ebx,%esi\n\tpshufd\t$238,%xmm7,%xmm3\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\taddl\t16(%esp),%edi\n\tpxor\t%xmm5,%xmm1\n\tpunpcklqdq\t%xmm0,%xmm3\n\txorl\t%ecx,%esi\n\tmovl\t%eax,%ebp\n\troll\t$5,%eax\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm5,96(%esp)\n\taddl\t%esi,%edi\n\txorl\t%ecx,%ebp\n\tmovdqa\t%xmm4,%xmm5\n\trorl\t$7,%ebx\n\tpaddd\t%xmm0,%xmm4\n\taddl\t%eax,%edi\n\tpxor\t%xmm3,%xmm1\n\taddl\t20(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\tmovdqa\t%xmm1,%xmm3\n\tmovdqa\t%xmm4,(%esp)\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\tpslld\t$2,%xmm1\n\taddl\t24(%esp),%ecx\n\txorl\t%eax,%esi\n\tpsrld\t$30,%xmm3\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:50", "text": "pxor\t%xmm3,%xmm1\n\taddl\t20(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\tmovdqa\t%xmm1,%xmm3\n\tmovdqa\t%xmm4,(%esp)\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\tpslld\t$2,%xmm1\n\taddl\t24(%esp),%ecx\n\txorl\t%eax,%esi\n\tpsrld\t$30,%xmm3\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\tpor\t%xmm3,%xmm1\n\taddl\t28(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovdqa\t64(%esp),%xmm3\n\tmovl\t%ecx,%esi\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\tpshufd\t$238,%xmm0,%xmm4\n\taddl\t%ecx,%ebx\n\taddl\t32(%esp),%eax\n\tpxor\t%xmm6,%xmm2\n\tpunpcklqdq\t%xmm1,%xmm4\n\txorl\t%edx,%esi\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebx\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t%xmm6,64(%esp)\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\tmovdqa\t128(%esp),%xmm6\n\trorl\t$7,%ecx\n\tpaddd\t%xmm1,%xmm5\n\taddl\t%ebx,%eax\n\tpxor\t%xmm4,%xmm2\n\taddl\t36(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovl\t%eax,%esi\n\troll\t$5,%eax\n\tmovdqa\t%xmm2,%xmm4\n\tmovdqa\t%xmm5,16(%esp)\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\tpslld\t$2,%xmm2\n\taddl\t40(%esp),%edx\n\txorl\t%ebx,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:51", "text": "addl\t%esi,%eax\n\txorl\t%edx,%ebp\n\tmovdqa\t128(%esp),%xmm6\n\trorl\t$7,%ecx\n\tpaddd\t%xmm1,%xmm5\n\taddl\t%ebx,%eax\n\tpxor\t%xmm4,%xmm2\n\taddl\t36(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovl\t%eax,%esi\n\troll\t$5,%eax\n\tmovdqa\t%xmm2,%xmm4\n\tmovdqa\t%xmm5,16(%esp)\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\tpslld\t$2,%xmm2\n\taddl\t40(%esp),%edx\n\txorl\t%ebx,%esi\n\tpsrld\t$30,%xmm4\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\tpor\t%xmm4,%xmm2\n\taddl\t44(%esp),%ecx\n\txorl\t%eax,%ebp\n\tmovdqa\t80(%esp),%xmm4\n\tmovl\t%edx,%esi\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\tpshufd\t$238,%xmm1,%xmm5\n\taddl\t%edx,%ecx\n\taddl\t48(%esp),%ebx\n\tpxor\t%xmm7,%xmm3\n\tpunpcklqdq\t%xmm2,%xmm5\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\tpxor\t%xmm4,%xmm3\n\tmovdqa\t%xmm7,80(%esp)\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\tmovdqa\t%xmm6,%xmm7\n\trorl\t$7,%edx\n\tpaddd\t%xmm2,%xmm6\n\taddl\t%ecx,%ebx\n\tpxor\t%xmm5,%xmm3\n\taddl\t52(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\tmovdqa\t%xmm3,%xmm5\n\tmovdqa\t%xmm6,32(%esp)\n\taddl\t%ebp,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:52", "text": "punpcklqdq\t%xmm2,%xmm5\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\tpxor\t%xmm4,%xmm3\n\tmovdqa\t%xmm7,80(%esp)\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\tmovdqa\t%xmm6,%xmm7\n\trorl\t$7,%edx\n\tpaddd\t%xmm2,%xmm6\n\taddl\t%ecx,%ebx\n\tpxor\t%xmm5,%xmm3\n\taddl\t52(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\tmovdqa\t%xmm3,%xmm5\n\tmovdqa\t%xmm6,32(%esp)\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\tpslld\t$2,%xmm3\n\taddl\t56(%esp),%edi\n\txorl\t%ecx,%esi\n\tpsrld\t$30,%xmm5\n\tmovl\t%eax,%ebp\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\txorl\t%ecx,%ebp\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\tpor\t%xmm5,%xmm3\n\taddl\t60(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovdqa\t96(%esp),%xmm5\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\tpshufd\t$238,%xmm2,%xmm6\n\taddl\t%edi,%edx\n\taddl\t(%esp),%ecx\n\tpxor\t%xmm0,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm6\n\txorl\t%eax,%esi\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\tpxor\t%xmm5,%xmm4\n\tmovdqa\t%xmm0,96(%esp)\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\tmovdqa\t%xmm7,%xmm0\n\trorl\t$7,%edi\n\tpaddd\t%xmm3,%xmm7\n\taddl\t%edx,%ecx\n\tpxor\t%xmm6,%xmm4\n\taddl\t4(%esp),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:53", "text": "xorl\t%ebx,%esi\n\trorl\t$7,%eax\n\tpshufd\t$238,%xmm2,%xmm6\n\taddl\t%edi,%edx\n\taddl\t(%esp),%ecx\n\tpxor\t%xmm0,%xmm4\n\tpunpcklqdq\t%xmm3,%xmm6\n\txorl\t%eax,%esi\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\tpxor\t%xmm5,%xmm4\n\tmovdqa\t%xmm0,96(%esp)\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\tmovdqa\t%xmm7,%xmm0\n\trorl\t$7,%edi\n\tpaddd\t%xmm3,%xmm7\n\taddl\t%edx,%ecx\n\tpxor\t%xmm6,%xmm4\n\taddl\t4(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovl\t%ecx,%esi\n\troll\t$5,%ecx\n\tmovdqa\t%xmm4,%xmm6\n\tmovdqa\t%xmm7,48(%esp)\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\tpslld\t$2,%xmm4\n\taddl\t8(%esp),%eax\n\txorl\t%edx,%esi\n\tpsrld\t$30,%xmm6\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\tpor\t%xmm6,%xmm4\n\taddl\t12(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovdqa\t64(%esp),%xmm6\n\tmovl\t%eax,%esi\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\tpshufd\t$238,%xmm3,%xmm7\n\taddl\t%eax,%edi\n\taddl\t16(%esp),%edx\n\tpxor\t%xmm1,%xmm5\n\tpunpcklqdq\t%xmm4,%xmm7\n\txorl\t%ebx,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\tpxor\t%xmm6,%xmm5\n\tmovdqa\t%xmm1,64(%esp)\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:54", "text": "addl\t12(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovdqa\t64(%esp),%xmm6\n\tmovl\t%eax,%esi\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\tpshufd\t$238,%xmm3,%xmm7\n\taddl\t%eax,%edi\n\taddl\t16(%esp),%edx\n\tpxor\t%xmm1,%xmm5\n\tpunpcklqdq\t%xmm4,%xmm7\n\txorl\t%ebx,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\tpxor\t%xmm6,%xmm5\n\tmovdqa\t%xmm1,64(%esp)\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp\n\tmovdqa\t%xmm0,%xmm1\n\trorl\t$7,%eax\n\tpaddd\t%xmm4,%xmm0\n\taddl\t%edi,%edx\n\tpxor\t%xmm7,%xmm5\n\taddl\t20(%esp),%ecx\n\txorl\t%eax,%ebp\n\tmovl\t%edx,%esi\n\troll\t$5,%edx\n\tmovdqa\t%xmm5,%xmm7\n\tmovdqa\t%xmm0,(%esp)\n\taddl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\tpslld\t$2,%xmm5\n\taddl\t24(%esp),%ebx\n\txorl\t%edi,%esi\n\tpsrld\t$30,%xmm7\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\tpor\t%xmm7,%xmm5\n\taddl\t28(%esp),%eax\n\tmovdqa\t80(%esp),%xmm7\n\trorl\t$7,%ecx\n\tmovl\t%ebx,%esi\n\txorl\t%edx,%ebp\n\troll\t$5,%ebx\n\tpshufd\t$238,%xmm4,%xmm0\n\taddl\t%ebp,%eax\n\txorl\t%ecx,%esi\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\taddl\t32(%esp),%edi\n\tpxor\t%xmm2,%xmm6\n\tpunpcklqdq\t%xmm5,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:55", "text": "roll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\tpor\t%xmm7,%xmm5\n\taddl\t28(%esp),%eax\n\tmovdqa\t80(%esp),%xmm7\n\trorl\t$7,%ecx\n\tmovl\t%ebx,%esi\n\txorl\t%edx,%ebp\n\troll\t$5,%ebx\n\tpshufd\t$238,%xmm4,%xmm0\n\taddl\t%ebp,%eax\n\txorl\t%ecx,%esi\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\taddl\t32(%esp),%edi\n\tpxor\t%xmm2,%xmm6\n\tpunpcklqdq\t%xmm5,%xmm0\n\tandl\t%ecx,%esi\n\txorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tpxor\t%xmm7,%xmm6\n\tmovdqa\t%xmm2,80(%esp)\n\tmovl\t%eax,%ebp\n\txorl\t%ecx,%esi\n\troll\t$5,%eax\n\tmovdqa\t%xmm1,%xmm2\n\taddl\t%esi,%edi\n\tpaddd\t%xmm5,%xmm1\n\txorl\t%ebx,%ebp\n\tpxor\t%xmm0,%xmm6\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\taddl\t36(%esp),%edx\n\tandl\t%ebx,%ebp\n\tmovdqa\t%xmm6,%xmm0\n\tmovdqa\t%xmm1,16(%esp)\n\txorl\t%ecx,%ebx\n\trorl\t$7,%eax\n\tmovl\t%edi,%esi\n\txorl\t%ebx,%ebp\n\troll\t$5,%edi\n\tpslld\t$2,%xmm6\n\taddl\t%ebp,%edx\n\txorl\t%eax,%esi\n\tpsrld\t$30,%xmm0\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\taddl\t40(%esp),%ecx\n\tandl\t%eax,%esi\n\txorl\t%ebx,%eax\n\trorl\t$7,%edi\n\tpor\t%xmm0,%xmm6\n\tmovl\t%edx,%ebp\n\txorl\t%eax,%esi\n\tmovdqa\t96(%esp),%xmm0\n\troll\t$5,%edx\n\taddl\t%esi,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2161, "line_end": 2220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:56", "text": "rorl\t$7,%eax\n\tmovl\t%edi,%esi\n\txorl\t%ebx,%ebp\n\troll\t$5,%edi\n\tpslld\t$2,%xmm6\n\taddl\t%ebp,%edx\n\txorl\t%eax,%esi\n\tpsrld\t$30,%xmm0\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\taddl\t40(%esp),%ecx\n\tandl\t%eax,%esi\n\txorl\t%ebx,%eax\n\trorl\t$7,%edi\n\tpor\t%xmm0,%xmm6\n\tmovl\t%edx,%ebp\n\txorl\t%eax,%esi\n\tmovdqa\t96(%esp),%xmm0\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%edi,%ebp\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\tpshufd\t$238,%xmm5,%xmm1\n\taddl\t44(%esp),%ebx\n\tandl\t%edi,%ebp\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tmovl\t%ecx,%esi\n\txorl\t%edi,%ebp\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edx,%esi\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\taddl\t48(%esp),%eax\n\tpxor\t%xmm3,%xmm7\n\tpunpcklqdq\t%xmm6,%xmm1\n\tandl\t%edx,%esi\n\txorl\t%edi,%edx\n\trorl\t$7,%ecx\n\tpxor\t%xmm0,%xmm7\n\tmovdqa\t%xmm3,96(%esp)\n\tmovl\t%ebx,%ebp\n\txorl\t%edx,%esi\n\troll\t$5,%ebx\n\tmovdqa\t144(%esp),%xmm3\n\taddl\t%esi,%eax\n\tpaddd\t%xmm6,%xmm2\n\txorl\t%ecx,%ebp\n\tpxor\t%xmm1,%xmm7\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\taddl\t52(%esp),%edi\n\tandl\t%ecx,%ebp\n\tmovdqa\t%xmm7,%xmm1\n\tmovdqa\t%xmm2,32(%esp)\n\txorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tmovl\t%eax,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2201, "line_end": 2260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:57", "text": "rorl\t$7,%ecx\n\tpxor\t%xmm0,%xmm7\n\tmovdqa\t%xmm3,96(%esp)\n\tmovl\t%ebx,%ebp\n\txorl\t%edx,%esi\n\troll\t$5,%ebx\n\tmovdqa\t144(%esp),%xmm3\n\taddl\t%esi,%eax\n\tpaddd\t%xmm6,%xmm2\n\txorl\t%ecx,%ebp\n\tpxor\t%xmm1,%xmm7\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\taddl\t52(%esp),%edi\n\tandl\t%ecx,%ebp\n\tmovdqa\t%xmm7,%xmm1\n\tmovdqa\t%xmm2,32(%esp)\n\txorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tmovl\t%eax,%esi\n\txorl\t%ecx,%ebp\n\troll\t$5,%eax\n\tpslld\t$2,%xmm7\n\taddl\t%ebp,%edi\n\txorl\t%ebx,%esi\n\tpsrld\t$30,%xmm1\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\taddl\t56(%esp),%edx\n\tandl\t%ebx,%esi\n\txorl\t%ecx,%ebx\n\trorl\t$7,%eax\n\tpor\t%xmm1,%xmm7\n\tmovl\t%edi,%ebp\n\txorl\t%ebx,%esi\n\tmovdqa\t64(%esp),%xmm1\n\troll\t$5,%edi\n\taddl\t%esi,%edx\n\txorl\t%eax,%ebp\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\tpshufd\t$238,%xmm6,%xmm2\n\taddl\t60(%esp),%ecx\n\tandl\t%eax,%ebp\n\txorl\t%ebx,%eax\n\trorl\t$7,%edi\n\tmovl\t%edx,%esi\n\txorl\t%eax,%ebp\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%edi,%esi\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\taddl\t(%esp),%ebx\n\tpxor\t%xmm4,%xmm0\n\tpunpcklqdq\t%xmm7,%xmm2\n\tandl\t%edi,%esi\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tpxor\t%xmm1,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2241, "line_end": 2300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:58", "text": "addl\t%edi,%edx\n\tpshufd\t$238,%xmm6,%xmm2\n\taddl\t60(%esp),%ecx\n\tandl\t%eax,%ebp\n\txorl\t%ebx,%eax\n\trorl\t$7,%edi\n\tmovl\t%edx,%esi\n\txorl\t%eax,%ebp\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%edi,%esi\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\taddl\t(%esp),%ebx\n\tpxor\t%xmm4,%xmm0\n\tpunpcklqdq\t%xmm7,%xmm2\n\tandl\t%edi,%esi\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t%xmm4,64(%esp)\n\tmovl\t%ecx,%ebp\n\txorl\t%edi,%esi\n\troll\t$5,%ecx\n\tmovdqa\t%xmm3,%xmm4\n\taddl\t%esi,%ebx\n\tpaddd\t%xmm7,%xmm3\n\txorl\t%edx,%ebp\n\tpxor\t%xmm2,%xmm0\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\taddl\t4(%esp),%eax\n\tandl\t%edx,%ebp\n\tmovdqa\t%xmm0,%xmm2\n\tmovdqa\t%xmm3,48(%esp)\n\txorl\t%edi,%edx\n\trorl\t$7,%ecx\n\tmovl\t%ebx,%esi\n\txorl\t%edx,%ebp\n\troll\t$5,%ebx\n\tpslld\t$2,%xmm0\n\taddl\t%ebp,%eax\n\txorl\t%ecx,%esi\n\tpsrld\t$30,%xmm2\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\taddl\t8(%esp),%edi\n\tandl\t%ecx,%esi\n\txorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tpor\t%xmm2,%xmm0\n\tmovl\t%eax,%ebp\n\txorl\t%ecx,%esi\n\tmovdqa\t80(%esp),%xmm2\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\txorl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\tpshufd\t$238,%xmm7,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2281, "line_end": 2340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:59", "text": "pslld\t$2,%xmm0\n\taddl\t%ebp,%eax\n\txorl\t%ecx,%esi\n\tpsrld\t$30,%xmm2\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\taddl\t8(%esp),%edi\n\tandl\t%ecx,%esi\n\txorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tpor\t%xmm2,%xmm0\n\tmovl\t%eax,%ebp\n\txorl\t%ecx,%esi\n\tmovdqa\t80(%esp),%xmm2\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\txorl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\tpshufd\t$238,%xmm7,%xmm3\n\taddl\t12(%esp),%edx\n\tandl\t%ebx,%ebp\n\txorl\t%ecx,%ebx\n\trorl\t$7,%eax\n\tmovl\t%edi,%esi\n\txorl\t%ebx,%ebp\n\troll\t$5,%edi\n\taddl\t%ebp,%edx\n\txorl\t%eax,%esi\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\taddl\t16(%esp),%ecx\n\tpxor\t%xmm5,%xmm1\n\tpunpcklqdq\t%xmm0,%xmm3\n\tandl\t%eax,%esi\n\txorl\t%ebx,%eax\n\trorl\t$7,%edi\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm5,80(%esp)\n\tmovl\t%edx,%ebp\n\txorl\t%eax,%esi\n\troll\t$5,%edx\n\tmovdqa\t%xmm4,%xmm5\n\taddl\t%esi,%ecx\n\tpaddd\t%xmm0,%xmm4\n\txorl\t%edi,%ebp\n\tpxor\t%xmm3,%xmm1\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\taddl\t20(%esp),%ebx\n\tandl\t%edi,%ebp\n\tmovdqa\t%xmm1,%xmm3\n\tmovdqa\t%xmm4,(%esp)\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tmovl\t%ecx,%esi\n\txorl\t%edi,%ebp\n\troll\t$5,%ecx\n\tpslld\t$2,%xmm1\n\taddl\t%ebp,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2321, "line_end": 2380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:60", "text": "xorl\t%eax,%esi\n\troll\t$5,%edx\n\tmovdqa\t%xmm4,%xmm5\n\taddl\t%esi,%ecx\n\tpaddd\t%xmm0,%xmm4\n\txorl\t%edi,%ebp\n\tpxor\t%xmm3,%xmm1\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\taddl\t20(%esp),%ebx\n\tandl\t%edi,%ebp\n\tmovdqa\t%xmm1,%xmm3\n\tmovdqa\t%xmm4,(%esp)\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tmovl\t%ecx,%esi\n\txorl\t%edi,%ebp\n\troll\t$5,%ecx\n\tpslld\t$2,%xmm1\n\taddl\t%ebp,%ebx\n\txorl\t%edx,%esi\n\tpsrld\t$30,%xmm3\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\taddl\t24(%esp),%eax\n\tandl\t%edx,%esi\n\txorl\t%edi,%edx\n\trorl\t$7,%ecx\n\tpor\t%xmm3,%xmm1\n\tmovl\t%ebx,%ebp\n\txorl\t%edx,%esi\n\tmovdqa\t96(%esp),%xmm3\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%ecx,%ebp\n\txorl\t%edx,%ecx\n\taddl\t%ebx,%eax\n\tpshufd\t$238,%xmm0,%xmm4\n\taddl\t28(%esp),%edi\n\tandl\t%ecx,%ebp\n\txorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tmovl\t%eax,%esi\n\txorl\t%ecx,%ebp\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ebx,%esi\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\taddl\t32(%esp),%edx\n\tpxor\t%xmm6,%xmm2\n\tpunpcklqdq\t%xmm1,%xmm4\n\tandl\t%ebx,%esi\n\txorl\t%ecx,%ebx\n\trorl\t$7,%eax\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t%xmm6,96(%esp)\n\tmovl\t%edi,%ebp\n\txorl\t%ebx,%esi\n\troll\t$5,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2361, "line_end": 2420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:61", "text": "xorl\t%edx,%ecx\n\trorl\t$7,%ebx\n\tmovl\t%eax,%esi\n\txorl\t%ecx,%ebp\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ebx,%esi\n\txorl\t%ecx,%ebx\n\taddl\t%eax,%edi\n\taddl\t32(%esp),%edx\n\tpxor\t%xmm6,%xmm2\n\tpunpcklqdq\t%xmm1,%xmm4\n\tandl\t%ebx,%esi\n\txorl\t%ecx,%ebx\n\trorl\t$7,%eax\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t%xmm6,96(%esp)\n\tmovl\t%edi,%ebp\n\txorl\t%ebx,%esi\n\troll\t$5,%edi\n\tmovdqa\t%xmm5,%xmm6\n\taddl\t%esi,%edx\n\tpaddd\t%xmm1,%xmm5\n\txorl\t%eax,%ebp\n\tpxor\t%xmm4,%xmm2\n\txorl\t%ebx,%eax\n\taddl\t%edi,%edx\n\taddl\t36(%esp),%ecx\n\tandl\t%eax,%ebp\n\tmovdqa\t%xmm2,%xmm4\n\tmovdqa\t%xmm5,16(%esp)\n\txorl\t%ebx,%eax\n\trorl\t$7,%edi\n\tmovl\t%edx,%esi\n\txorl\t%eax,%ebp\n\troll\t$5,%edx\n\tpslld\t$2,%xmm2\n\taddl\t%ebp,%ecx\n\txorl\t%edi,%esi\n\tpsrld\t$30,%xmm4\n\txorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\taddl\t40(%esp),%ebx\n\tandl\t%edi,%esi\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tpor\t%xmm4,%xmm2\n\tmovl\t%ecx,%ebp\n\txorl\t%edi,%esi\n\tmovdqa\t64(%esp),%xmm4\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edx,%ebp\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\tpshufd\t$238,%xmm1,%xmm5\n\taddl\t44(%esp),%eax\n\tandl\t%edx,%ebp\n\txorl\t%edi,%edx\n\trorl\t$7,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2401, "line_end": 2460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:62", "text": "xorl\t%eax,%edi\n\taddl\t%edx,%ecx\n\taddl\t40(%esp),%ebx\n\tandl\t%edi,%esi\n\txorl\t%eax,%edi\n\trorl\t$7,%edx\n\tpor\t%xmm4,%xmm2\n\tmovl\t%ecx,%ebp\n\txorl\t%edi,%esi\n\tmovdqa\t64(%esp),%xmm4\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edx,%ebp\n\txorl\t%edi,%edx\n\taddl\t%ecx,%ebx\n\tpshufd\t$238,%xmm1,%xmm5\n\taddl\t44(%esp),%eax\n\tandl\t%edx,%ebp\n\txorl\t%edi,%edx\n\trorl\t$7,%ecx\n\tmovl\t%ebx,%esi\n\txorl\t%edx,%ebp\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\taddl\t%ebx,%eax\n\taddl\t48(%esp),%edi\n\tpxor\t%xmm7,%xmm3\n\tpunpcklqdq\t%xmm2,%xmm5\n\txorl\t%ecx,%esi\n\tmovl\t%eax,%ebp\n\troll\t$5,%eax\n\tpxor\t%xmm4,%xmm3\n\tmovdqa\t%xmm7,64(%esp)\n\taddl\t%esi,%edi\n\txorl\t%ecx,%ebp\n\tmovdqa\t%xmm6,%xmm7\n\trorl\t$7,%ebx\n\tpaddd\t%xmm2,%xmm6\n\taddl\t%eax,%edi\n\tpxor\t%xmm5,%xmm3\n\taddl\t52(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\tmovdqa\t%xmm3,%xmm5\n\tmovdqa\t%xmm6,32(%esp)\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\tpslld\t$2,%xmm3\n\taddl\t56(%esp),%ecx\n\txorl\t%eax,%esi\n\tpsrld\t$30,%xmm5\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2441, "line_end": 2500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:63", "text": "pxor\t%xmm5,%xmm3\n\taddl\t52(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\tmovdqa\t%xmm3,%xmm5\n\tmovdqa\t%xmm6,32(%esp)\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\tpslld\t$2,%xmm3\n\taddl\t56(%esp),%ecx\n\txorl\t%eax,%esi\n\tpsrld\t$30,%xmm5\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\tpor\t%xmm5,%xmm3\n\taddl\t60(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovl\t%ecx,%esi\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t(%esp),%eax\n\txorl\t%edx,%esi\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\trorl\t$7,%ecx\n\tpaddd\t%xmm3,%xmm7\n\taddl\t%ebx,%eax\n\taddl\t4(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovl\t%eax,%esi\n\tmovdqa\t%xmm7,48(%esp)\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\taddl\t8(%esp),%edx\n\txorl\t%ebx,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\taddl\t12(%esp),%ecx\n\txorl\t%eax,%ebp\n\tmovl\t%edx,%esi\n\troll\t$5,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2481, "line_end": 2540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:64", "text": "xorl\t%ecx,%ebp\n\tmovl\t%eax,%esi\n\tmovdqa\t%xmm7,48(%esp)\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\taddl\t8(%esp),%edx\n\txorl\t%ebx,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\taddl\t12(%esp),%ecx\n\txorl\t%eax,%ebp\n\tmovl\t%edx,%esi\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\tmovl\t196(%esp),%ebp\n\tcmpl\t200(%esp),%ebp\n\tje\t.L007done\n\tmovdqa\t160(%esp),%xmm7\n\tmovdqa\t176(%esp),%xmm6\n\tmovdqu\t(%ebp),%xmm0\n\tmovdqu\t16(%ebp),%xmm1\n\tmovdqu\t32(%ebp),%xmm2\n\tmovdqu\t48(%ebp),%xmm3\n\taddl\t$64,%ebp\n.byte\t102,15,56,0,198\n\tmovl\t%ebp,196(%esp)\n\tmovdqa\t%xmm7,96(%esp)\n\taddl\t16(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n.byte\t102,15,56,0,206\n\taddl\t%ecx,%ebx\n\taddl\t20(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\tpaddd\t%xmm7,%xmm0\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\trorl\t$7,%ecx\n\tmovdqa\t%xmm0,(%esp)\n\taddl\t%ebx,%eax\n\taddl\t24(%esp),%edi\n\txorl\t%ecx,%esi\n\tmovl\t%eax,%ebp\n\tpsubd\t%xmm7,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2521, "line_end": 2580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:65", "text": "roll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n.byte\t102,15,56,0,206\n\taddl\t%ecx,%ebx\n\taddl\t20(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\tpaddd\t%xmm7,%xmm0\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\trorl\t$7,%ecx\n\tmovdqa\t%xmm0,(%esp)\n\taddl\t%ebx,%eax\n\taddl\t24(%esp),%edi\n\txorl\t%ecx,%esi\n\tmovl\t%eax,%ebp\n\tpsubd\t%xmm7,%xmm0\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\txorl\t%ecx,%ebp\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\taddl\t28(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\taddl\t32(%esp),%ecx\n\txorl\t%eax,%esi\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi\n.byte\t102,15,56,0,214\n\taddl\t%edx,%ecx\n\taddl\t36(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovl\t%ecx,%esi\n\tpaddd\t%xmm7,%xmm1\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\tmovdqa\t%xmm1,16(%esp)\n\taddl\t%ecx,%ebx\n\taddl\t40(%esp),%eax\n\txorl\t%edx,%esi\n\tmovl\t%ebx,%ebp\n\tpsubd\t%xmm7,%xmm1\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\trorl\t$7,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2561, "line_end": 2620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:66", "text": ".byte\t102,15,56,0,214\n\taddl\t%edx,%ecx\n\taddl\t36(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovl\t%ecx,%esi\n\tpaddd\t%xmm7,%xmm1\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\tmovdqa\t%xmm1,16(%esp)\n\taddl\t%ecx,%ebx\n\taddl\t40(%esp),%eax\n\txorl\t%edx,%esi\n\tmovl\t%ebx,%ebp\n\tpsubd\t%xmm7,%xmm1\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\taddl\t44(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovl\t%eax,%esi\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\taddl\t48(%esp),%edx\n\txorl\t%ebx,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp\n\trorl\t$7,%eax\n.byte\t102,15,56,0,222\n\taddl\t%edi,%edx\n\taddl\t52(%esp),%ecx\n\txorl\t%eax,%ebp\n\tmovl\t%edx,%esi\n\tpaddd\t%xmm7,%xmm2\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\tmovdqa\t%xmm2,32(%esp)\n\taddl\t%edx,%ecx\n\taddl\t56(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\tpsubd\t%xmm7,%xmm2\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2601, "line_end": 2660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:67", "text": "movl\t%edx,%esi\n\tpaddd\t%xmm7,%xmm2\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\tmovdqa\t%xmm2,32(%esp)\n\taddl\t%edx,%ecx\n\taddl\t56(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\tpsubd\t%xmm7,%xmm2\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\tmovl\t192(%esp),%ebp\n\taddl\t(%ebp),%eax\n\taddl\t4(%ebp),%esi\n\taddl\t8(%ebp),%ecx\n\tmovl\t%eax,(%ebp)\n\taddl\t12(%ebp),%edx\n\tmovl\t%esi,4(%ebp)\n\taddl\t16(%ebp),%edi\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%ecx,%ebx\n\tmovl\t%edx,12(%ebp)\n\txorl\t%edx,%ebx\n\tmovl\t%edi,16(%ebp)\n\tmovl\t%esi,%ebp\n\tpshufd\t$238,%xmm0,%xmm4\n\tandl\t%ebx,%esi\n\tmovl\t%ebp,%ebx\n\tjmp\t.L006loop\n.align\t16\n.L007done:\n\taddl\t16(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t20(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2641, "line_end": 2700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:68", "text": "movl\t%ebp,%ebx\n\tjmp\t.L006loop\n.align\t16\n.L007done:\n\taddl\t16(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t20(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\txorl\t%edx,%esi\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\taddl\t24(%esp),%edi\n\txorl\t%ecx,%esi\n\tmovl\t%eax,%ebp\n\troll\t$5,%eax\n\taddl\t%esi,%edi\n\txorl\t%ecx,%ebp\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\taddl\t28(%esp),%edx\n\txorl\t%ebx,%ebp\n\tmovl\t%edi,%esi\n\troll\t$5,%edi\n\taddl\t%ebp,%edx\n\txorl\t%ebx,%esi\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\taddl\t32(%esp),%ecx\n\txorl\t%eax,%esi\n\tmovl\t%edx,%ebp\n\troll\t$5,%edx\n\taddl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\taddl\t36(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovl\t%ecx,%esi\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t40(%esp),%eax\n\txorl\t%edx,%esi\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2681, "line_end": 2740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:69", "text": "addl\t%esi,%ecx\n\txorl\t%eax,%ebp\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\taddl\t36(%esp),%ebx\n\txorl\t%edi,%ebp\n\tmovl\t%ecx,%esi\n\troll\t$5,%ecx\n\taddl\t%ebp,%ebx\n\txorl\t%edi,%esi\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t40(%esp),%eax\n\txorl\t%edx,%esi\n\tmovl\t%ebx,%ebp\n\troll\t$5,%ebx\n\taddl\t%esi,%eax\n\txorl\t%edx,%ebp\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\taddl\t44(%esp),%edi\n\txorl\t%ecx,%ebp\n\tmovl\t%eax,%esi\n\troll\t$5,%eax\n\taddl\t%ebp,%edi\n\txorl\t%ecx,%esi\n\trorl\t$7,%ebx\n\taddl\t%eax,%edi\n\taddl\t48(%esp),%edx\n\txorl\t%ebx,%esi\n\tmovl\t%edi,%ebp\n\troll\t$5,%edi\n\taddl\t%esi,%edx\n\txorl\t%ebx,%ebp\n\trorl\t$7,%eax\n\taddl\t%edi,%edx\n\taddl\t52(%esp),%ecx\n\txorl\t%eax,%ebp\n\tmovl\t%edx,%esi\n\troll\t$5,%edx\n\taddl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\taddl\t56(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\tmovl\t192(%esp),%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2721, "line_end": 2780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:70", "text": "addl\t%ebp,%ecx\n\txorl\t%eax,%esi\n\trorl\t$7,%edi\n\taddl\t%edx,%ecx\n\taddl\t56(%esp),%ebx\n\txorl\t%edi,%esi\n\tmovl\t%ecx,%ebp\n\troll\t$5,%ecx\n\taddl\t%esi,%ebx\n\txorl\t%edi,%ebp\n\trorl\t$7,%edx\n\taddl\t%ecx,%ebx\n\taddl\t60(%esp),%eax\n\txorl\t%edx,%ebp\n\tmovl\t%ebx,%esi\n\troll\t$5,%ebx\n\taddl\t%ebp,%eax\n\trorl\t$7,%ecx\n\taddl\t%ebx,%eax\n\tmovl\t192(%esp),%ebp\n\taddl\t(%ebp),%eax\n\tmovl\t204(%esp),%esp\n\taddl\t4(%ebp),%esi\n\taddl\t8(%ebp),%ecx\n\tmovl\t%eax,(%ebp)\n\taddl\t12(%ebp),%edx\n\tmovl\t%esi,4(%ebp)\n\taddl\t16(%ebp),%edi\n\tmovl\t%ecx,8(%ebp)\n\tmovl\t%edx,12(%ebp)\n\tmovl\t%edi,16(%ebp)\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\t_sha1_block_data_order_ssse3,.-_sha1_block_data_order_ssse3\n.align\t64\n.LK_XX_XX:\n.long\t1518500249,1518500249,1518500249,1518500249\n.long\t1859775393,1859775393,1859775393,1859775393\n.long\t2400959708,2400959708,2400959708,2400959708\n.long\t3395469782,3395469782,3395469782,3395469782\n.long\t66051,67438087,134810123,202182159\n.byte\t15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115\n.byte\t102,111,114,109,32,102,111,114,32,120,56,54,44,32,67,82\n.byte\t89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112\n.byte\t114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2761, "line_end": 2820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S:71", "text": ".long\t1859775393,1859775393,1859775393,1859775393\n.long\t2400959708,2400959708,2400959708,2400959708\n.long\t3395469782,3395469782,3395469782,3395469782\n.long\t66051,67438087,134810123,202182159\n.byte\t15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0\n.byte\t83,72,65,49,32,98,108,111,99,107,32,116,114,97,110,115\n.byte\t102,111,114,109,32,102,111,114,32,120,56,54,44,32,67,82\n.byte\t89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112\n.byte\t114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha1-586.S", "line_start": 2801, "line_end": 2827}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tsha512_block_data_order\n.type\tsha512_block_data_order,@function\n.align\t16\nsha512_block_data_order:\n.L_sha512_block_data_order_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tmovl\t24(%esp),%edi\n\tmovl\t28(%esp),%eax\n\tmovl\t%esp,%ebx\n\tcall\t.L000pic_point\n.L000pic_point:\n\tpopl\t%ebp\n\tleal\t.L001K512-.L000pic_point(%ebp),%ebp\n\tsubl\t$16,%esp\n\tandl\t$-64,%esp\n\tshll\t$7,%eax\n\taddl\t%edi,%eax\n\tmovl\t%esi,(%esp)\n\tmovl\t%edi,4(%esp)\n\tmovl\t%eax,8(%esp)\n\tmovl\t%ebx,12(%esp)\n\tleal\tOPENSSL_ia32cap_P-.L001K512(%ebp),%edx\n\tmovl\t(%edx),%ecx\n\ttestl\t$67108864,%ecx\n\tjz\t.L002loop_x86\n\tmovl\t4(%edx),%edx\n\tmovq\t(%esi),%mm0\n\tandl\t$16777216,%ecx\n\tmovq\t8(%esi),%mm1\n\tandl\t$512,%edx\n\tmovq\t16(%esi),%mm2\n\torl\t%edx,%ecx\n\tmovq\t24(%esi),%mm3\n\tmovq\t32(%esi),%mm4\n\tmovq\t40(%esi),%mm5\n\tmovq\t48(%esi),%mm6\n\tmovq\t56(%esi),%mm7\n\tcmpl\t$16777728,%ecx\n\tje\t.L003SSSE3\n\tsubl\t$80,%esp\n\tjmp\t.L004loop_sse2\n.align\t16\n.L004loop_sse2:\n\tmovq\t%mm1,8(%esp)\n\tmovq\t%mm2,16(%esp)\n\tmovq\t%mm3,24(%esp)\n\tmovq\t%mm5,40(%esp)\n\tmovq\t%mm6,48(%esp)\n\tpxor\t%mm1,%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:2", "text": "andl\t$512,%edx\n\tmovq\t16(%esi),%mm2\n\torl\t%edx,%ecx\n\tmovq\t24(%esi),%mm3\n\tmovq\t32(%esi),%mm4\n\tmovq\t40(%esi),%mm5\n\tmovq\t48(%esi),%mm6\n\tmovq\t56(%esi),%mm7\n\tcmpl\t$16777728,%ecx\n\tje\t.L003SSSE3\n\tsubl\t$80,%esp\n\tjmp\t.L004loop_sse2\n.align\t16\n.L004loop_sse2:\n\tmovq\t%mm1,8(%esp)\n\tmovq\t%mm2,16(%esp)\n\tmovq\t%mm3,24(%esp)\n\tmovq\t%mm5,40(%esp)\n\tmovq\t%mm6,48(%esp)\n\tpxor\t%mm1,%mm2\n\tmovq\t%mm7,56(%esp)\n\tmovq\t%mm0,%mm3\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\taddl\t$8,%edi\n\tmovl\t$15,%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tjmp\t.L00500_14_sse2\n.align\t16\n.L00500_14_sse2:\n\tmovd\t%eax,%mm1\n\tmovl\t(%edi),%eax\n\tmovd\t%ebx,%mm7\n\tmovl\t4(%edi),%ebx\n\taddl\t$8,%edi\n\tbswap\t%eax\n\tbswap\t%ebx\n\tpunpckldq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tmovq\t%mm3,%mm0\n\tmovq\t%mm7,72(%esp)\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:3", "text": "pxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tmovq\t%mm3,%mm0\n\tmovq\t%mm7,72(%esp)\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpaddq\t(%ebp),%mm7\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm2,%mm3\n\tmovq\t%mm0,%mm2\n\taddl\t$8,%ebp\n\tpaddq\t%mm6,%mm3\n\tmovq\t48(%esp),%mm6\n\tdecl\t%edx\n\tjnz\t.L00500_14_sse2\n\tmovd\t%eax,%mm1\n\tmovd\t%ebx,%mm7\n\tpunpckldq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:4", "text": "psllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm2,%mm3\n\tmovq\t%mm0,%mm2\n\taddl\t$8,%ebp\n\tpaddq\t%mm6,%mm3\n\tmovq\t48(%esp),%mm6\n\tdecl\t%edx\n\tjnz\t.L00500_14_sse2\n\tmovd\t%eax,%mm1\n\tmovd\t%ebx,%mm7\n\tpunpckldq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tmovq\t%mm3,%mm0\n\tmovq\t%mm7,72(%esp)\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpaddq\t(%ebp),%mm7\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:5", "text": "movq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t192(%esp),%mm7\n\tpaddq\t%mm2,%mm3\n\tmovq\t%mm0,%mm2\n\taddl\t$8,%ebp\n\tpaddq\t%mm6,%mm3\n\tpxor\t%mm0,%mm0\n\tmovl\t$32,%edx\n\tjmp\t.L00616_79_sse2\n.align\t16\n.L00616_79_sse2:\n\tmovq\t88(%esp),%mm5\n\tmovq\t%mm7,%mm1\n\tpsrlq\t$1,%mm7\n\tmovq\t%mm5,%mm6\n\tpsrlq\t$6,%mm5\n\tpsllq\t$56,%mm1\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm7,%mm3\n\tpsrlq\t$6,%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$7,%mm1\n\tpxor\t%mm7,%mm3\n\tpsrlq\t$1,%mm7\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm5,%mm1\n\tpsrlq\t$13,%mm5\n\tpxor\t%mm3,%mm7\n\tpsllq\t$3,%mm6\n\tpxor\t%mm5,%mm1\n\tpaddq\t200(%esp),%mm7\n\tpxor\t%mm6,%mm1\n\tpsrlq\t$42,%mm5\n\tpaddq\t128(%esp),%mm7\n\tpxor\t%mm5,%mm1\n\tpsllq\t$42,%mm6\n\tmovq\t40(%esp),%mm5\n\tpxor\t%mm6,%mm1\n\tmovq\t48(%esp),%mm6\n\tpaddq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:6", "text": "psllq\t$7,%mm1\n\tpxor\t%mm7,%mm3\n\tpsrlq\t$1,%mm7\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm5,%mm1\n\tpsrlq\t$13,%mm5\n\tpxor\t%mm3,%mm7\n\tpsllq\t$3,%mm6\n\tpxor\t%mm5,%mm1\n\tpaddq\t200(%esp),%mm7\n\tpxor\t%mm6,%mm1\n\tpsrlq\t$42,%mm5\n\tpaddq\t128(%esp),%mm7\n\tpxor\t%mm5,%mm1\n\tpsllq\t$42,%mm6\n\tmovq\t40(%esp),%mm5\n\tpxor\t%mm6,%mm1\n\tmovq\t48(%esp),%mm6\n\tpaddq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tmovq\t%mm7,72(%esp)\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpaddq\t(%ebp),%mm7\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:7", "text": "pxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t192(%esp),%mm7\n\tpaddq\t%mm6,%mm2\n\taddl\t$8,%ebp\n\tmovq\t88(%esp),%mm5\n\tmovq\t%mm7,%mm1\n\tpsrlq\t$1,%mm7\n\tmovq\t%mm5,%mm6\n\tpsrlq\t$6,%mm5\n\tpsllq\t$56,%mm1\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm7,%mm3\n\tpsrlq\t$6,%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$7,%mm1\n\tpxor\t%mm7,%mm3\n\tpsrlq\t$1,%mm7\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm5,%mm1\n\tpsrlq\t$13,%mm5\n\tpxor\t%mm3,%mm7\n\tpsllq\t$3,%mm6\n\tpxor\t%mm5,%mm1\n\tpaddq\t200(%esp),%mm7\n\tpxor\t%mm6,%mm1\n\tpsrlq\t$42,%mm5\n\tpaddq\t128(%esp),%mm7\n\tpxor\t%mm5,%mm1\n\tpsllq\t$42,%mm6\n\tmovq\t40(%esp),%mm5\n\tpxor\t%mm6,%mm1\n\tmovq\t48(%esp),%mm6\n\tpaddq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:8", "text": "movq\t%mm5,%mm1\n\tpsrlq\t$13,%mm5\n\tpxor\t%mm3,%mm7\n\tpsllq\t$3,%mm6\n\tpxor\t%mm5,%mm1\n\tpaddq\t200(%esp),%mm7\n\tpxor\t%mm6,%mm1\n\tpsrlq\t$42,%mm5\n\tpaddq\t128(%esp),%mm7\n\tpxor\t%mm5,%mm1\n\tpsllq\t$42,%mm6\n\tmovq\t40(%esp),%mm5\n\tpxor\t%mm6,%mm1\n\tmovq\t48(%esp),%mm6\n\tpaddq\t%mm1,%mm7\n\tmovq\t%mm4,%mm1\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tmovq\t%mm7,72(%esp)\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpaddq\t(%ebp),%mm7\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t192(%esp),%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:9", "text": "psrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tsubl\t$8,%esp\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t192(%esp),%mm7\n\tpaddq\t%mm6,%mm0\n\taddl\t$8,%ebp\n\tdecl\t%edx\n\tjnz\t.L00616_79_sse2\n\tpaddq\t%mm3,%mm0\n\tmovq\t8(%esp),%mm1\n\tmovq\t24(%esp),%mm3\n\tmovq\t40(%esp),%mm5\n\tmovq\t48(%esp),%mm6\n\tmovq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm2\n\tpaddq\t(%esi),%mm0\n\tpaddq\t8(%esi),%mm1\n\tpaddq\t16(%esi),%mm2\n\tpaddq\t24(%esi),%mm3\n\tpaddq\t32(%esi),%mm4\n\tpaddq\t40(%esi),%mm5\n\tpaddq\t48(%esi),%mm6\n\tpaddq\t56(%esi),%mm7\n\tmovl\t$640,%eax\n\tmovq\t%mm0,(%esi)\n\tmovq\t%mm1,8(%esi)\n\tmovq\t%mm2,16(%esi)\n\tmovq\t%mm3,24(%esi)\n\tmovq\t%mm4,32(%esi)\n\tmovq\t%mm5,40(%esi)\n\tmovq\t%mm6,48(%esi)\n\tmovq\t%mm7,56(%esi)\n\tleal\t(%esp,%eax,1),%esp\n\tsubl\t%eax,%ebp\n\tcmpl\t88(%esp),%edi\n\tjb\t.L004loop_sse2\n\tmovl\t92(%esp),%esp\n\temms\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t32", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:10", "text": "movq\t%mm0,(%esi)\n\tmovq\t%mm1,8(%esi)\n\tmovq\t%mm2,16(%esi)\n\tmovq\t%mm3,24(%esi)\n\tmovq\t%mm4,32(%esi)\n\tmovq\t%mm5,40(%esi)\n\tmovq\t%mm6,48(%esi)\n\tmovq\t%mm7,56(%esi)\n\tleal\t(%esp,%eax,1),%esp\n\tsubl\t%eax,%ebp\n\tcmpl\t88(%esp),%edi\n\tjb\t.L004loop_sse2\n\tmovl\t92(%esp),%esp\n\temms\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t32\n.L003SSSE3:\n\tleal\t-64(%esp),%edx\n\tsubl\t$256,%esp\n\tmovdqa\t640(%ebp),%xmm1\n\tmovdqu\t(%edi),%xmm0\n.byte\t102,15,56,0,193\n\tmovdqa\t(%ebp),%xmm3\n\tmovdqa\t%xmm1,%xmm2\n\tmovdqu\t16(%edi),%xmm1\n\tpaddq\t%xmm0,%xmm3\n.byte\t102,15,56,0,202\n\tmovdqa\t%xmm3,-128(%edx)\n\tmovdqa\t16(%ebp),%xmm4\n\tmovdqa\t%xmm2,%xmm3\n\tmovdqu\t32(%edi),%xmm2\n\tpaddq\t%xmm1,%xmm4\n.byte\t102,15,56,0,211\n\tmovdqa\t%xmm4,-112(%edx)\n\tmovdqa\t32(%ebp),%xmm5\n\tmovdqa\t%xmm3,%xmm4\n\tmovdqu\t48(%edi),%xmm3\n\tpaddq\t%xmm2,%xmm5\n.byte\t102,15,56,0,220\n\tmovdqa\t%xmm5,-96(%edx)\n\tmovdqa\t48(%ebp),%xmm6\n\tmovdqa\t%xmm4,%xmm5\n\tmovdqu\t64(%edi),%xmm4\n\tpaddq\t%xmm3,%xmm6\n.byte\t102,15,56,0,229\n\tmovdqa\t%xmm6,-80(%edx)\n\tmovdqa\t64(%ebp),%xmm7\n\tmovdqa\t%xmm5,%xmm6\n\tmovdqu\t80(%edi),%xmm5\n\tpaddq\t%xmm4,%xmm7\n.byte\t102,15,56,0,238\n\tmovdqa\t%xmm7,-64(%edx)\n\tmovdqa\t%xmm0,(%edx)\n\tmovdqa\t80(%ebp),%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tmovdqu\t96(%edi),%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:11", "text": "movdqu\t48(%edi),%xmm3\n\tpaddq\t%xmm2,%xmm5\n.byte\t102,15,56,0,220\n\tmovdqa\t%xmm5,-96(%edx)\n\tmovdqa\t48(%ebp),%xmm6\n\tmovdqa\t%xmm4,%xmm5\n\tmovdqu\t64(%edi),%xmm4\n\tpaddq\t%xmm3,%xmm6\n.byte\t102,15,56,0,229\n\tmovdqa\t%xmm6,-80(%edx)\n\tmovdqa\t64(%ebp),%xmm7\n\tmovdqa\t%xmm5,%xmm6\n\tmovdqu\t80(%edi),%xmm5\n\tpaddq\t%xmm4,%xmm7\n.byte\t102,15,56,0,238\n\tmovdqa\t%xmm7,-64(%edx)\n\tmovdqa\t%xmm0,(%edx)\n\tmovdqa\t80(%ebp),%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tmovdqu\t96(%edi),%xmm6\n\tpaddq\t%xmm5,%xmm0\n.byte\t102,15,56,0,247\n\tmovdqa\t%xmm0,-48(%edx)\n\tmovdqa\t%xmm1,16(%edx)\n\tmovdqa\t96(%ebp),%xmm1\n\tmovdqa\t%xmm7,%xmm0\n\tmovdqu\t112(%edi),%xmm7\n\tpaddq\t%xmm6,%xmm1\n.byte\t102,15,56,0,248\n\tmovdqa\t%xmm1,-32(%edx)\n\tmovdqa\t%xmm2,32(%edx)\n\tmovdqa\t112(%ebp),%xmm2\n\tmovdqa\t(%edx),%xmm0\n\tpaddq\t%xmm7,%xmm2\n\tmovdqa\t%xmm2,-16(%edx)\n\tnop\n.align\t32\n.L007loop_ssse3:\n\tmovdqa\t16(%edx),%xmm2\n\tmovdqa\t%xmm3,48(%edx)\n\tleal\t128(%ebp),%ebp\n\tmovq\t%mm1,8(%esp)\n\tmovl\t%edi,%ebx\n\tmovq\t%mm2,16(%esp)\n\tleal\t128(%edi),%edi\n\tmovq\t%mm3,24(%esp)\n\tcmpl\t%eax,%edi\n\tmovq\t%mm5,40(%esp)\n\tcmovbl\t%edi,%ebx\n\tmovq\t%mm6,48(%esp)\n\tmovl\t$4,%ecx\n\tpxor\t%mm1,%mm2\n\tmovq\t%mm7,56(%esp)\n\tpxor\t%mm3,%mm3\n\tjmp\t.L00800_47_ssse3\n.align\t32\n.L00800_47_ssse3:\n\tmovdqa\t%xmm5,%xmm3\n\tmovdqa\t%xmm2,%xmm1\n.byte\t102,15,58,15,208,8", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:12", "text": "leal\t128(%ebp),%ebp\n\tmovq\t%mm1,8(%esp)\n\tmovl\t%edi,%ebx\n\tmovq\t%mm2,16(%esp)\n\tleal\t128(%edi),%edi\n\tmovq\t%mm3,24(%esp)\n\tcmpl\t%eax,%edi\n\tmovq\t%mm5,40(%esp)\n\tcmovbl\t%edi,%ebx\n\tmovq\t%mm6,48(%esp)\n\tmovl\t$4,%ecx\n\tpxor\t%mm1,%mm2\n\tmovq\t%mm7,56(%esp)\n\tpxor\t%mm3,%mm3\n\tjmp\t.L00800_47_ssse3\n.align\t32\n.L00800_47_ssse3:\n\tmovdqa\t%xmm5,%xmm3\n\tmovdqa\t%xmm2,%xmm1\n.byte\t102,15,58,15,208,8\n\tmovdqa\t%xmm4,(%edx)\n.byte\t102,15,58,15,220,8\n\tmovdqa\t%xmm2,%xmm4\n\tpsrlq\t$7,%xmm2\n\tpaddq\t%xmm3,%xmm0\n\tmovdqa\t%xmm4,%xmm3\n\tpsrlq\t$1,%xmm4\n\tpsllq\t$56,%xmm3\n\tpxor\t%xmm4,%xmm2\n\tpsrlq\t$7,%xmm4\n\tpxor\t%xmm3,%xmm2\n\tpsllq\t$7,%xmm3\n\tpxor\t%xmm4,%xmm2\n\tmovdqa\t%xmm7,%xmm4\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t%xmm7,%xmm3\n\tpsrlq\t$6,%xmm4\n\tpaddq\t%xmm2,%xmm0\n\tmovdqa\t%xmm7,%xmm2\n\tpsrlq\t$19,%xmm3\n\tpsllq\t$3,%xmm2\n\tpxor\t%xmm3,%xmm4\n\tpsrlq\t$42,%xmm3\n\tpxor\t%xmm2,%xmm4\n\tpsllq\t$42,%xmm2\n\tpxor\t%xmm3,%xmm4\n\tmovdqa\t32(%edx),%xmm3\n\tpxor\t%xmm2,%xmm4\n\tmovdqa\t(%ebp),%xmm2\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm4,%xmm0\n\tmovq\t-128(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpaddq\t%xmm0,%xmm2\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:13", "text": "psllq\t$3,%xmm2\n\tpxor\t%xmm3,%xmm4\n\tpsrlq\t$42,%xmm3\n\tpxor\t%xmm2,%xmm4\n\tpsllq\t$42,%xmm2\n\tpxor\t%xmm3,%xmm4\n\tmovdqa\t32(%edx),%xmm3\n\tpxor\t%xmm2,%xmm4\n\tmovdqa\t(%ebp),%xmm2\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm4,%xmm0\n\tmovq\t-128(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpaddq\t%xmm0,%xmm2\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-120(%edx),%mm7\n\tpxor\t%mm6,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:14", "text": "psllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-120(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,56(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t48(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t16(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:15", "text": "paddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm2,-128(%edx)\n\tmovdqa\t%xmm6,%xmm4\n\tmovdqa\t%xmm3,%xmm2\n.byte\t102,15,58,15,217,8\n\tmovdqa\t%xmm5,16(%edx)\n.byte\t102,15,58,15,229,8\n\tmovdqa\t%xmm3,%xmm5\n\tpsrlq\t$7,%xmm3\n\tpaddq\t%xmm4,%xmm1\n\tmovdqa\t%xmm5,%xmm4\n\tpsrlq\t$1,%xmm5\n\tpsllq\t$56,%xmm4\n\tpxor\t%xmm5,%xmm3\n\tpsrlq\t$7,%xmm5\n\tpxor\t%xmm4,%xmm3\n\tpsllq\t$7,%xmm4\n\tpxor\t%xmm5,%xmm3\n\tmovdqa\t%xmm0,%xmm5\n\tpxor\t%xmm4,%xmm3\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$6,%xmm5\n\tpaddq\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm3\n\tpsrlq\t$19,%xmm4\n\tpsllq\t$3,%xmm3\n\tpxor\t%xmm4,%xmm5\n\tpsrlq\t$42,%xmm4\n\tpxor\t%xmm3,%xmm5\n\tpsllq\t$42,%xmm3\n\tpxor\t%xmm4,%xmm5\n\tmovdqa\t48(%edx),%xmm4\n\tpxor\t%xmm3,%xmm5\n\tmovdqa\t16(%ebp),%xmm3\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm5,%xmm1\n\tmovq\t-112(%edx),%mm7\n\tpxor\t%mm6,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:16", "text": "movdqa\t%xmm0,%xmm5\n\tpxor\t%xmm4,%xmm3\n\tmovdqa\t%xmm0,%xmm4\n\tpsrlq\t$6,%xmm5\n\tpaddq\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm3\n\tpsrlq\t$19,%xmm4\n\tpsllq\t$3,%xmm3\n\tpxor\t%xmm4,%xmm5\n\tpsrlq\t$42,%xmm4\n\tpxor\t%xmm3,%xmm5\n\tpsllq\t$42,%xmm3\n\tpxor\t%xmm4,%xmm5\n\tmovdqa\t48(%edx),%xmm4\n\tpxor\t%xmm3,%xmm5\n\tmovdqa\t16(%ebp),%xmm3\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm5,%xmm1\n\tmovq\t-112(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,16(%esp)\n\tpaddq\t%xmm1,%xmm3\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,48(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t40(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t8(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:17", "text": "movq\t8(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t16(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t24(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-104(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,8(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,40(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:18", "text": "pxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t8(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t16(%esp),%mm6\n\tmovdqa\t%xmm3,-112(%edx)\n\tmovdqa\t%xmm7,%xmm5\n\tmovdqa\t%xmm4,%xmm3\n.byte\t102,15,58,15,226,8\n\tmovdqa\t%xmm6,32(%edx)\n.byte\t102,15,58,15,238,8\n\tmovdqa\t%xmm4,%xmm6\n\tpsrlq\t$7,%xmm4\n\tpaddq\t%xmm5,%xmm2\n\tmovdqa\t%xmm6,%xmm5\n\tpsrlq\t$1,%xmm6\n\tpsllq\t$56,%xmm5\n\tpxor\t%xmm6,%xmm4\n\tpsrlq\t$7,%xmm6\n\tpxor\t%xmm5,%xmm4\n\tpsllq\t$7,%xmm5\n\tpxor\t%xmm6,%xmm4\n\tmovdqa\t%xmm1,%xmm6\n\tpxor\t%xmm5,%xmm4\n\tmovdqa\t%xmm1,%xmm5\n\tpsrlq\t$6,%xmm6\n\tpaddq\t%xmm4,%xmm2\n\tmovdqa\t%xmm1,%xmm4\n\tpsrlq\t$19,%xmm5\n\tpsllq\t$3,%xmm4\n\tpxor\t%xmm5,%xmm6\n\tpsrlq\t$42,%xmm5\n\tpxor\t%xmm4,%xmm6\n\tpsllq\t$42,%xmm4\n\tpxor\t%xmm5,%xmm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:19", "text": "psrlq\t$1,%xmm6\n\tpsllq\t$56,%xmm5\n\tpxor\t%xmm6,%xmm4\n\tpsrlq\t$7,%xmm6\n\tpxor\t%xmm5,%xmm4\n\tpsllq\t$7,%xmm5\n\tpxor\t%xmm6,%xmm4\n\tmovdqa\t%xmm1,%xmm6\n\tpxor\t%xmm5,%xmm4\n\tmovdqa\t%xmm1,%xmm5\n\tpsrlq\t$6,%xmm6\n\tpaddq\t%xmm4,%xmm2\n\tmovdqa\t%xmm1,%xmm4\n\tpsrlq\t$19,%xmm5\n\tpsllq\t$3,%xmm4\n\tpxor\t%xmm5,%xmm6\n\tpsrlq\t$42,%xmm5\n\tpxor\t%xmm4,%xmm6\n\tpsllq\t$42,%xmm4\n\tpxor\t%xmm5,%xmm6\n\tmovdqa\t(%edx),%xmm5\n\tpxor\t%xmm4,%xmm6\n\tmovdqa\t32(%ebp),%xmm4\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm6,%xmm2\n\tmovq\t-96(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,(%esp)\n\tpaddq\t%xmm2,%xmm4\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,32(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t56(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t40(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:20", "text": "paddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t56(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t40(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-88(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,56(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,24(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t16(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t48(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:21", "text": "psrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,24(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t16(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t48(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t32(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t56(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t(%esp),%mm6\n\tmovdqa\t%xmm4,-96(%edx)\n\tmovdqa\t%xmm0,%xmm6\n\tmovdqa\t%xmm5,%xmm4\n.byte\t102,15,58,15,235,8\n\tmovdqa\t%xmm7,48(%edx)\n.byte\t102,15,58,15,247,8\n\tmovdqa\t%xmm5,%xmm7\n\tpsrlq\t$7,%xmm5\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm7,%xmm6\n\tpsrlq\t$1,%xmm7\n\tpsllq\t$56,%xmm6\n\tpxor\t%xmm7,%xmm5\n\tpsrlq\t$7,%xmm7\n\tpxor\t%xmm6,%xmm5\n\tpsllq\t$7,%xmm6\n\tpxor\t%xmm7,%xmm5\n\tmovdqa\t%xmm2,%xmm7\n\tpxor\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm6\n\tpsrlq\t$6,%xmm7\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm2,%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:22", "text": ".byte\t102,15,58,15,235,8\n\tmovdqa\t%xmm7,48(%edx)\n.byte\t102,15,58,15,247,8\n\tmovdqa\t%xmm5,%xmm7\n\tpsrlq\t$7,%xmm5\n\tpaddq\t%xmm6,%xmm3\n\tmovdqa\t%xmm7,%xmm6\n\tpsrlq\t$1,%xmm7\n\tpsllq\t$56,%xmm6\n\tpxor\t%xmm7,%xmm5\n\tpsrlq\t$7,%xmm7\n\tpxor\t%xmm6,%xmm5\n\tpsllq\t$7,%xmm6\n\tpxor\t%xmm7,%xmm5\n\tmovdqa\t%xmm2,%xmm7\n\tpxor\t%xmm6,%xmm5\n\tmovdqa\t%xmm2,%xmm6\n\tpsrlq\t$6,%xmm7\n\tpaddq\t%xmm5,%xmm3\n\tmovdqa\t%xmm2,%xmm5\n\tpsrlq\t$19,%xmm6\n\tpsllq\t$3,%xmm5\n\tpxor\t%xmm6,%xmm7\n\tpsrlq\t$42,%xmm6\n\tpxor\t%xmm5,%xmm7\n\tpsllq\t$42,%xmm5\n\tpxor\t%xmm6,%xmm7\n\tmovdqa\t16(%edx),%xmm6\n\tpxor\t%xmm5,%xmm7\n\tmovdqa\t48(%ebp),%xmm5\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm7,%xmm3\n\tmovq\t-80(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,48(%esp)\n\tpaddq\t%xmm3,%xmm5\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,16(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t8(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:23", "text": "movq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,16(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t8(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t48(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t56(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-72(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,40(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,8(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:24", "text": "pxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,40(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,8(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t48(%esp),%mm6\n\tmovdqa\t%xmm5,-80(%edx)\n\tmovdqa\t%xmm1,%xmm7\n\tmovdqa\t%xmm6,%xmm5\n.byte\t102,15,58,15,244,8\n\tmovdqa\t%xmm0,(%edx)\n.byte\t102,15,58,15,248,8\n\tmovdqa\t%xmm6,%xmm0\n\tpsrlq\t$7,%xmm6\n\tpaddq\t%xmm7,%xmm4\n\tmovdqa\t%xmm0,%xmm7\n\tpsrlq\t$1,%xmm0\n\tpsllq\t$56,%xmm7\n\tpxor\t%xmm0,%xmm6\n\tpsrlq\t$7,%xmm0\n\tpxor\t%xmm7,%xmm6\n\tpsllq\t$7,%xmm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:25", "text": "pxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t48(%esp),%mm6\n\tmovdqa\t%xmm5,-80(%edx)\n\tmovdqa\t%xmm1,%xmm7\n\tmovdqa\t%xmm6,%xmm5\n.byte\t102,15,58,15,244,8\n\tmovdqa\t%xmm0,(%edx)\n.byte\t102,15,58,15,248,8\n\tmovdqa\t%xmm6,%xmm0\n\tpsrlq\t$7,%xmm6\n\tpaddq\t%xmm7,%xmm4\n\tmovdqa\t%xmm0,%xmm7\n\tpsrlq\t$1,%xmm0\n\tpsllq\t$56,%xmm7\n\tpxor\t%xmm0,%xmm6\n\tpsrlq\t$7,%xmm0\n\tpxor\t%xmm7,%xmm6\n\tpsllq\t$7,%xmm7\n\tpxor\t%xmm0,%xmm6\n\tmovdqa\t%xmm3,%xmm0\n\tpxor\t%xmm7,%xmm6\n\tmovdqa\t%xmm3,%xmm7\n\tpsrlq\t$6,%xmm0\n\tpaddq\t%xmm6,%xmm4\n\tmovdqa\t%xmm3,%xmm6\n\tpsrlq\t$19,%xmm7\n\tpsllq\t$3,%xmm6\n\tpxor\t%xmm7,%xmm0\n\tpsrlq\t$42,%xmm7\n\tpxor\t%xmm6,%xmm0\n\tpsllq\t$42,%xmm6\n\tpxor\t%xmm7,%xmm0\n\tmovdqa\t32(%edx),%xmm7\n\tpxor\t%xmm6,%xmm0\n\tmovdqa\t64(%ebp),%xmm6\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm0,%xmm4\n\tmovq\t-64(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpaddq\t%xmm4,%xmm6\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:26", "text": "pxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpaddq\t%xmm4,%xmm6\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-56(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,56(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:27", "text": "pxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-56(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,56(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t48(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t16(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm6,-64(%edx)\n\tmovdqa\t%xmm2,%xmm0\n\tmovdqa\t%xmm7,%xmm6\n.byte\t102,15,58,15,253,8\n\tmovdqa\t%xmm1,16(%edx)\n.byte\t102,15,58,15,193,8\n\tmovdqa\t%xmm7,%xmm1\n\tpsrlq\t$7,%xmm7\n\tpaddq\t%xmm0,%xmm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:28", "text": "pxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm6,-64(%edx)\n\tmovdqa\t%xmm2,%xmm0\n\tmovdqa\t%xmm7,%xmm6\n.byte\t102,15,58,15,253,8\n\tmovdqa\t%xmm1,16(%edx)\n.byte\t102,15,58,15,193,8\n\tmovdqa\t%xmm7,%xmm1\n\tpsrlq\t$7,%xmm7\n\tpaddq\t%xmm0,%xmm5\n\tmovdqa\t%xmm1,%xmm0\n\tpsrlq\t$1,%xmm1\n\tpsllq\t$56,%xmm0\n\tpxor\t%xmm1,%xmm7\n\tpsrlq\t$7,%xmm1\n\tpxor\t%xmm0,%xmm7\n\tpsllq\t$7,%xmm0\n\tpxor\t%xmm1,%xmm7\n\tmovdqa\t%xmm4,%xmm1\n\tpxor\t%xmm0,%xmm7\n\tmovdqa\t%xmm4,%xmm0\n\tpsrlq\t$6,%xmm1\n\tpaddq\t%xmm7,%xmm5\n\tmovdqa\t%xmm4,%xmm7\n\tpsrlq\t$19,%xmm0\n\tpsllq\t$3,%xmm7\n\tpxor\t%xmm0,%xmm1\n\tpsrlq\t$42,%xmm0\n\tpxor\t%xmm7,%xmm1\n\tpsllq\t$42,%xmm7\n\tpxor\t%xmm0,%xmm1\n\tmovdqa\t48(%edx),%xmm0\n\tpxor\t%xmm7,%xmm1\n\tmovdqa\t80(%ebp),%xmm7\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm1,%xmm5\n\tmovq\t-48(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,16(%esp)\n\tpaddq\t%xmm5,%xmm7\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:29", "text": "pxor\t%xmm0,%xmm1\n\tmovdqa\t48(%edx),%xmm0\n\tpxor\t%xmm7,%xmm1\n\tmovdqa\t80(%ebp),%xmm7\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm1,%xmm5\n\tmovq\t-48(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,16(%esp)\n\tpaddq\t%xmm5,%xmm7\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,48(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t40(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t8(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t16(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t24(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-40(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,8(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:30", "text": "pxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t16(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t24(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-40(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,8(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,40(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t8(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t16(%esp),%mm6\n\tmovdqa\t%xmm7,-48(%edx)\n\tmovdqa\t%xmm3,%xmm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:31", "text": "movq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t8(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t16(%esp),%mm6\n\tmovdqa\t%xmm7,-48(%edx)\n\tmovdqa\t%xmm3,%xmm1\n\tmovdqa\t%xmm0,%xmm7\n.byte\t102,15,58,15,198,8\n\tmovdqa\t%xmm2,32(%edx)\n.byte\t102,15,58,15,202,8\n\tmovdqa\t%xmm0,%xmm2\n\tpsrlq\t$7,%xmm0\n\tpaddq\t%xmm1,%xmm6\n\tmovdqa\t%xmm2,%xmm1\n\tpsrlq\t$1,%xmm2\n\tpsllq\t$56,%xmm1\n\tpxor\t%xmm2,%xmm0\n\tpsrlq\t$7,%xmm2\n\tpxor\t%xmm1,%xmm0\n\tpsllq\t$7,%xmm1\n\tpxor\t%xmm2,%xmm0\n\tmovdqa\t%xmm5,%xmm2\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t%xmm5,%xmm1\n\tpsrlq\t$6,%xmm2\n\tpaddq\t%xmm0,%xmm6\n\tmovdqa\t%xmm5,%xmm0\n\tpsrlq\t$19,%xmm1\n\tpsllq\t$3,%xmm0\n\tpxor\t%xmm1,%xmm2\n\tpsrlq\t$42,%xmm1\n\tpxor\t%xmm0,%xmm2\n\tpsllq\t$42,%xmm0\n\tpxor\t%xmm1,%xmm2\n\tmovdqa\t(%edx),%xmm1\n\tpxor\t%xmm0,%xmm2\n\tmovdqa\t96(%ebp),%xmm0\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm2,%xmm6\n\tmovq\t-32(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,(%esp)\n\tpaddq\t%xmm6,%xmm0\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:32", "text": "movdqa\t%xmm5,%xmm0\n\tpsrlq\t$19,%xmm1\n\tpsllq\t$3,%xmm0\n\tpxor\t%xmm1,%xmm2\n\tpsrlq\t$42,%xmm1\n\tpxor\t%xmm0,%xmm2\n\tpsllq\t$42,%xmm0\n\tpxor\t%xmm1,%xmm2\n\tmovdqa\t(%edx),%xmm1\n\tpxor\t%xmm0,%xmm2\n\tmovdqa\t96(%ebp),%xmm0\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm2,%xmm6\n\tmovq\t-32(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,(%esp)\n\tpaddq\t%xmm6,%xmm0\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,32(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t56(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t40(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:33", "text": "movq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t40(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-24(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,56(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,24(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t16(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t48(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t32(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:34", "text": "pxor\t%mm4,%mm3\n\tmovq\t48(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t32(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t56(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t(%esp),%mm6\n\tmovdqa\t%xmm0,-32(%edx)\n\tmovdqa\t%xmm4,%xmm2\n\tmovdqa\t%xmm1,%xmm0\n.byte\t102,15,58,15,207,8\n\tmovdqa\t%xmm3,48(%edx)\n.byte\t102,15,58,15,211,8\n\tmovdqa\t%xmm1,%xmm3\n\tpsrlq\t$7,%xmm1\n\tpaddq\t%xmm2,%xmm7\n\tmovdqa\t%xmm3,%xmm2\n\tpsrlq\t$1,%xmm3\n\tpsllq\t$56,%xmm2\n\tpxor\t%xmm3,%xmm1\n\tpsrlq\t$7,%xmm3\n\tpxor\t%xmm2,%xmm1\n\tpsllq\t$7,%xmm2\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm6,%xmm3\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$6,%xmm3\n\tpaddq\t%xmm1,%xmm7\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$19,%xmm2\n\tpsllq\t$3,%xmm1\n\tpxor\t%xmm2,%xmm3\n\tpsrlq\t$42,%xmm2\n\tpxor\t%xmm1,%xmm3\n\tpsllq\t$42,%xmm1\n\tpxor\t%xmm2,%xmm3\n\tmovdqa\t16(%edx),%xmm2\n\tpxor\t%xmm1,%xmm3\n\tmovdqa\t112(%ebp),%xmm1\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm3,%xmm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:35", "text": "psllq\t$7,%xmm2\n\tpxor\t%xmm3,%xmm1\n\tmovdqa\t%xmm6,%xmm3\n\tpxor\t%xmm2,%xmm1\n\tmovdqa\t%xmm6,%xmm2\n\tpsrlq\t$6,%xmm3\n\tpaddq\t%xmm1,%xmm7\n\tmovdqa\t%xmm6,%xmm1\n\tpsrlq\t$19,%xmm2\n\tpsllq\t$3,%xmm1\n\tpxor\t%xmm2,%xmm3\n\tpsrlq\t$42,%xmm2\n\tpxor\t%xmm1,%xmm3\n\tpsllq\t$42,%xmm1\n\tpxor\t%xmm2,%xmm3\n\tmovdqa\t16(%edx),%xmm2\n\tpxor\t%xmm1,%xmm3\n\tmovdqa\t112(%ebp),%xmm1\n\tmovq\t%mm4,%mm1\n\tpaddq\t%xmm3,%xmm7\n\tmovq\t-16(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,48(%esp)\n\tpaddq\t%xmm7,%xmm1\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,16(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t8(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:36", "text": "psllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t48(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t56(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-8(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,40(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,8(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:37", "text": "movq\t%mm2,8(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t48(%esp),%mm6\n\tmovdqa\t%xmm1,-16(%edx)\n\tleal\t128(%ebp),%ebp\n\tdecl\t%ecx\n\tjnz\t.L00800_47_ssse3\n\tmovdqa\t(%ebp),%xmm1\n\tleal\t-640(%ebp),%ebp\n\tmovdqu\t(%ebx),%xmm0\n.byte\t102,15,56,0,193\n\tmovdqa\t(%ebp),%xmm3\n\tmovdqa\t%xmm1,%xmm2\n\tmovdqu\t16(%ebx),%xmm1\n\tpaddq\t%xmm0,%xmm3\n.byte\t102,15,56,0,202\n\tmovq\t%mm4,%mm1\n\tmovq\t-128(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:38", "text": "movdqa\t(%ebp),%xmm3\n\tmovdqa\t%xmm1,%xmm2\n\tmovdqu\t16(%ebx),%xmm1\n\tpaddq\t%xmm0,%xmm3\n.byte\t102,15,56,0,202\n\tmovq\t%mm4,%mm1\n\tmovq\t-128(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-120(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:39", "text": "pxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-120(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,56(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t48(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t16(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm3,-128(%edx)\n\tmovdqa\t16(%ebp),%xmm4\n\tmovdqa\t%xmm2,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:40", "text": "psllq\t$25,%mm6\n\tmovq\t(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm3,-128(%edx)\n\tmovdqa\t16(%ebp),%xmm4\n\tmovdqa\t%xmm2,%xmm3\n\tmovdqu\t32(%ebx),%xmm2\n\tpaddq\t%xmm1,%xmm4\n.byte\t102,15,56,0,211\n\tmovq\t%mm4,%mm1\n\tmovq\t-112(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,16(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,48(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t40(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t8(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:41", "text": "psrlq\t$23,%mm1\n\tpaddq\t40(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t8(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t16(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t24(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-104(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,8(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,40(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:42", "text": "pxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,40(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t8(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t16(%esp),%mm6\n\tmovdqa\t%xmm4,-112(%edx)\n\tmovdqa\t32(%ebp),%xmm5\n\tmovdqa\t%xmm3,%xmm4\n\tmovdqu\t48(%ebx),%xmm3\n\tpaddq\t%xmm2,%xmm5\n.byte\t102,15,56,0,220\n\tmovq\t%mm4,%mm1\n\tmovq\t-96(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,32(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:43", "text": ".byte\t102,15,56,0,220\n\tmovq\t%mm4,%mm1\n\tmovq\t-96(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,32(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t56(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t40(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-88(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,56(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:44", "text": "psllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-88(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,56(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,24(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t16(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t48(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t32(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t56(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t(%esp),%mm6\n\tmovdqa\t%xmm5,-96(%edx)\n\tmovdqa\t48(%ebp),%xmm6\n\tmovdqa\t%xmm4,%xmm5\n\tmovdqu\t64(%ebx),%xmm4\n\tpaddq\t%xmm3,%xmm6\n.byte\t102,15,56,0,229\n\tmovq\t%mm4,%mm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:45", "text": "psllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t56(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t(%esp),%mm6\n\tmovdqa\t%xmm5,-96(%edx)\n\tmovdqa\t48(%ebp),%xmm6\n\tmovdqa\t%xmm4,%xmm5\n\tmovdqu\t64(%ebx),%xmm4\n\tpaddq\t%xmm3,%xmm6\n.byte\t102,15,56,0,229\n\tmovq\t%mm4,%mm1\n\tmovq\t-80(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,48(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,16(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t8(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:46", "text": "pxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t48(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t56(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-72(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,40(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,8(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:47", "text": "paddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t48(%esp),%mm6\n\tmovdqa\t%xmm6,-80(%edx)\n\tmovdqa\t64(%ebp),%xmm7\n\tmovdqa\t%xmm5,%xmm6\n\tmovdqu\t80(%ebx),%xmm5\n\tpaddq\t%xmm4,%xmm7\n.byte\t102,15,56,0,238\n\tmovq\t%mm4,%mm1\n\tmovq\t-64(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:48", "text": "psrlq\t$14,%mm1\n\tmovq\t%mm4,32(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t24(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t8(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-56(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,56(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:49", "text": "movq\t32(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t40(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-56(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,24(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,56(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t48(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t16(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm7,-64(%edx)\n\tmovdqa\t%xmm0,(%edx)\n\tmovdqa\t80(%ebp),%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tmovdqu\t96(%ebx),%xmm6\n\tpaddq\t%xmm5,%xmm0\n.byte\t102,15,56,0,247\n\tmovq\t%mm4,%mm1\n\tmovq\t-48(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:50", "text": "pxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t24(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t32(%esp),%mm6\n\tmovdqa\t%xmm7,-64(%edx)\n\tmovdqa\t%xmm0,(%edx)\n\tmovdqa\t80(%ebp),%xmm0\n\tmovdqa\t%xmm6,%xmm7\n\tmovdqu\t96(%ebx),%xmm6\n\tpaddq\t%xmm5,%xmm0\n.byte\t102,15,56,0,247\n\tmovq\t%mm4,%mm1\n\tmovq\t-48(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,16(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,48(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t40(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t8(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t16(%esp),%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:51", "text": "movq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t56(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t16(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t24(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-40(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,8(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,40(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:52", "text": "paddq\t32(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t48(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t8(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t16(%esp),%mm6\n\tmovdqa\t%xmm0,-48(%edx)\n\tmovdqa\t%xmm1,16(%edx)\n\tmovdqa\t96(%ebp),%xmm1\n\tmovdqa\t%xmm7,%xmm0\n\tmovdqu\t112(%ebx),%xmm7\n\tpaddq\t%xmm6,%xmm1\n.byte\t102,15,56,0,248\n\tmovq\t%mm4,%mm1\n\tmovq\t-32(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,32(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t56(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:53", "text": "pand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,32(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t24(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t56(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t40(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-24(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,56(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,24(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t16(%esp),%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:54", "text": "movq\t8(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-24(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,56(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,24(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t16(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t48(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t32(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t56(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t(%esp),%mm6\n\tmovdqa\t%xmm1,-32(%edx)\n\tmovdqa\t%xmm2,32(%edx)\n\tmovdqa\t112(%ebp),%xmm2\n\tmovdqa\t(%edx),%xmm0\n\tpaddq\t%xmm7,%xmm2\n\tmovq\t%mm4,%mm1\n\tmovq\t-16(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,48(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:55", "text": "psllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t56(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t(%esp),%mm6\n\tmovdqa\t%xmm1,-32(%edx)\n\tmovdqa\t%xmm2,32(%edx)\n\tmovdqa\t112(%ebp),%xmm2\n\tmovdqa\t(%edx),%xmm0\n\tpaddq\t%xmm7,%xmm2\n\tmovq\t%mm4,%mm1\n\tmovq\t-16(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,48(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm0\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm0,16(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t8(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t40(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm0,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm0,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t48(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t56(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-8(%edx),%mm7", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2161, "line_end": 2220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:56", "text": "movq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t24(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm0,%mm2\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpxor\t%mm7,%mm6\n\tmovq\t48(%esp),%mm5\n\tpaddq\t%mm6,%mm2\n\tmovq\t56(%esp),%mm6\n\tmovq\t%mm4,%mm1\n\tmovq\t-8(%edx),%mm7\n\tpxor\t%mm6,%mm5\n\tpsrlq\t$14,%mm1\n\tmovq\t%mm4,40(%esp)\n\tpand\t%mm4,%mm5\n\tpsllq\t$23,%mm4\n\tpaddq\t%mm3,%mm2\n\tmovq\t%mm1,%mm3\n\tpsrlq\t$4,%mm1\n\tpxor\t%mm6,%mm5\n\tpxor\t%mm4,%mm3\n\tpsllq\t$23,%mm4\n\tpxor\t%mm1,%mm3\n\tmovq\t%mm2,8(%esp)\n\tpaddq\t%mm5,%mm7\n\tpxor\t%mm4,%mm3\n\tpsrlq\t$23,%mm1\n\tpaddq\t(%esp),%mm7\n\tpxor\t%mm1,%mm3\n\tpsllq\t$4,%mm4\n\tpxor\t%mm4,%mm3\n\tmovq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2201, "line_end": 2260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:57", "text": "movq\t32(%esp),%mm4\n\tpaddq\t%mm7,%mm3\n\tmovq\t%mm2,%mm5\n\tpsrlq\t$28,%mm5\n\tpaddq\t%mm3,%mm4\n\tmovq\t%mm2,%mm6\n\tmovq\t%mm5,%mm7\n\tpsllq\t$25,%mm6\n\tmovq\t16(%esp),%mm1\n\tpsrlq\t$6,%mm5\n\tpxor\t%mm6,%mm7\n\tpsllq\t$5,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm2\n\tpsrlq\t$5,%mm5\n\tpxor\t%mm6,%mm7\n\tpand\t%mm2,%mm0\n\tpsllq\t$6,%mm6\n\tpxor\t%mm5,%mm7\n\tpxor\t%mm1,%mm0\n\tpxor\t%mm7,%mm6\n\tmovq\t40(%esp),%mm5\n\tpaddq\t%mm6,%mm0\n\tmovq\t48(%esp),%mm6\n\tmovdqa\t%xmm2,-16(%edx)\n\tmovq\t8(%esp),%mm1\n\tpaddq\t%mm3,%mm0\n\tmovq\t24(%esp),%mm3\n\tmovq\t56(%esp),%mm7\n\tpxor\t%mm1,%mm2\n\tpaddq\t(%esi),%mm0\n\tpaddq\t8(%esi),%mm1\n\tpaddq\t16(%esi),%mm2\n\tpaddq\t24(%esi),%mm3\n\tpaddq\t32(%esi),%mm4\n\tpaddq\t40(%esi),%mm5\n\tpaddq\t48(%esi),%mm6\n\tpaddq\t56(%esi),%mm7\n\tmovq\t%mm0,(%esi)\n\tmovq\t%mm1,8(%esi)\n\tmovq\t%mm2,16(%esi)\n\tmovq\t%mm3,24(%esi)\n\tmovq\t%mm4,32(%esi)\n\tmovq\t%mm5,40(%esi)\n\tmovq\t%mm6,48(%esi)\n\tmovq\t%mm7,56(%esi)\n\tcmpl\t%eax,%edi\n\tjb\t.L007loop_ssse3\n\tmovl\t76(%edx),%esp\n\temms\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t16\n.L002loop_x86:\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2241, "line_end": 2300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:58", "text": "movq\t%mm2,16(%esi)\n\tmovq\t%mm3,24(%esi)\n\tmovq\t%mm4,32(%esi)\n\tmovq\t%mm5,40(%esi)\n\tmovq\t%mm6,48(%esi)\n\tmovq\t%mm7,56(%esi)\n\tcmpl\t%eax,%edi\n\tjb\t.L007loop_ssse3\n\tmovl\t76(%edx),%esp\n\temms\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t16\n.L002loop_x86:\n\tmovl\t(%edi),%eax\n\tmovl\t4(%edi),%ebx\n\tmovl\t8(%edi),%ecx\n\tmovl\t12(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t16(%edi),%eax\n\tmovl\t20(%edi),%ebx\n\tmovl\t24(%edi),%ecx\n\tmovl\t28(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t32(%edi),%eax\n\tmovl\t36(%edi),%ebx\n\tmovl\t40(%edi),%ecx\n\tmovl\t44(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t48(%edi),%eax\n\tmovl\t52(%edi),%ebx\n\tmovl\t56(%edi),%ecx\n\tmovl\t60(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2281, "line_end": 2340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:59", "text": "pushl\t%edx\n\tmovl\t32(%edi),%eax\n\tmovl\t36(%edi),%ebx\n\tmovl\t40(%edi),%ecx\n\tmovl\t44(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t48(%edi),%eax\n\tmovl\t52(%edi),%ebx\n\tmovl\t56(%edi),%ecx\n\tmovl\t60(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t64(%edi),%eax\n\tmovl\t68(%edi),%ebx\n\tmovl\t72(%edi),%ecx\n\tmovl\t76(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t80(%edi),%eax\n\tmovl\t84(%edi),%ebx\n\tmovl\t88(%edi),%ecx\n\tmovl\t92(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t96(%edi),%eax\n\tmovl\t100(%edi),%ebx\n\tmovl\t104(%edi),%ecx\n\tmovl\t108(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2321, "line_end": 2380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:60", "text": "movl\t92(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t96(%edi),%eax\n\tmovl\t100(%edi),%ebx\n\tmovl\t104(%edi),%ecx\n\tmovl\t108(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\tmovl\t112(%edi),%eax\n\tmovl\t116(%edi),%ebx\n\tmovl\t120(%edi),%ecx\n\tmovl\t124(%edi),%edx\n\tbswap\t%eax\n\tbswap\t%ebx\n\tbswap\t%ecx\n\tbswap\t%edx\n\tpushl\t%eax\n\tpushl\t%ebx\n\tpushl\t%ecx\n\tpushl\t%edx\n\taddl\t$128,%edi\n\tsubl\t$72,%esp\n\tmovl\t%edi,204(%esp)\n\tleal\t8(%esp),%edi\n\tmovl\t$16,%ecx\n.long\t2784229001\n.align\t16\n.L00900_15_x86:\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%edx\n\tmovl\t%ecx,%esi\n\tshrl\t$9,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$9,%edx\n\tmovl\t%ecx,%ebx\n\tshll\t$14,%esi\n\tmovl\t%edx,%eax\n\tshll\t$14,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$5,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$5,%edx\n\txorl\t%ecx,%eax\n\tshll\t$4,%esi\n\txorl\t%edx,%ebx\n\tshll\t$4,%edi\n\txorl\t%esi,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2361, "line_end": 2420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:61", "text": ".L00900_15_x86:\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%edx\n\tmovl\t%ecx,%esi\n\tshrl\t$9,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$9,%edx\n\tmovl\t%ecx,%ebx\n\tshll\t$14,%esi\n\tmovl\t%edx,%eax\n\tshll\t$14,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$5,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$5,%edx\n\txorl\t%ecx,%eax\n\tshll\t$4,%esi\n\txorl\t%edx,%ebx\n\tshll\t$4,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$4,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$4,%edx\n\txorl\t%ecx,%eax\n\tshll\t$5,%esi\n\txorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx\n\tmovl\t48(%esp),%ecx\n\tmovl\t52(%esp),%edx\n\tmovl\t56(%esp),%esi\n\tmovl\t60(%esp),%edi\n\taddl\t64(%esp),%eax\n\tadcl\t68(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tandl\t40(%esp),%ecx\n\tandl\t44(%esp),%edx\n\taddl\t192(%esp),%eax\n\tadcl\t196(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tmovl\t(%ebp),%esi\n\tmovl\t4(%ebp),%edi\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t32(%esp),%ecx\n\tmovl\t36(%esp),%edx\n\taddl\t%esi,%eax\n\tadcl\t%edi,%ebx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t%eax,32(%esp)\n\tmovl\t%ebx,36(%esp)\n\tmovl\t%ecx,%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2401, "line_end": 2460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:62", "text": "adcl\t196(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tmovl\t(%ebp),%esi\n\tmovl\t4(%ebp),%edi\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t32(%esp),%ecx\n\tmovl\t36(%esp),%edx\n\taddl\t%esi,%eax\n\tadcl\t%edi,%ebx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t%eax,32(%esp)\n\tmovl\t%ebx,36(%esp)\n\tmovl\t%ecx,%esi\n\tshrl\t$2,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$2,%edx\n\tmovl\t%ecx,%ebx\n\tshll\t$4,%esi\n\tmovl\t%edx,%eax\n\tshll\t$4,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$5,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$5,%edx\n\txorl\t%ecx,%ebx\n\tshll\t$21,%esi\n\txorl\t%edx,%eax\n\tshll\t$21,%edi\n\txorl\t%esi,%eax\n\tshrl\t$21,%ecx\n\txorl\t%edi,%ebx\n\tshrl\t$21,%edx\n\txorl\t%ecx,%eax\n\tshll\t$5,%esi\n\txorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%edi\n\taddl\t(%esp),%eax\n\tadcl\t4(%esp),%ebx\n\torl\t%esi,%ecx\n\torl\t%edi,%edx\n\tandl\t24(%esp),%ecx\n\tandl\t28(%esp),%edx\n\tandl\t8(%esp),%esi\n\tandl\t12(%esp),%edi\n\torl\t%esi,%ecx\n\torl\t%edi,%edx\n\taddl\t%ecx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2441, "line_end": 2500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:63", "text": "shll\t$5,%esi\n\txorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%edi\n\taddl\t(%esp),%eax\n\tadcl\t4(%esp),%ebx\n\torl\t%esi,%ecx\n\torl\t%edi,%edx\n\tandl\t24(%esp),%ecx\n\tandl\t28(%esp),%edx\n\tandl\t8(%esp),%esi\n\tandl\t12(%esp),%edi\n\torl\t%esi,%ecx\n\torl\t%edi,%edx\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovb\t(%ebp),%dl\n\tsubl\t$8,%esp\n\tleal\t8(%ebp),%ebp\n\tcmpb\t$148,%dl\n\tjne\t.L00900_15_x86\n.align\t16\n.L01016_79_x86:\n\tmovl\t312(%esp),%ecx\n\tmovl\t316(%esp),%edx\n\tmovl\t%ecx,%esi\n\tshrl\t$1,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$1,%edx\n\tmovl\t%ecx,%eax\n\tshll\t$24,%esi\n\tmovl\t%edx,%ebx\n\tshll\t$24,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$6,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$6,%edx\n\txorl\t%ecx,%eax\n\tshll\t$7,%esi\n\txorl\t%edx,%ebx\n\tshll\t$1,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$1,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$1,%edx\n\txorl\t%ecx,%eax\n\tshll\t$6,%edi\n\txorl\t%edx,%ebx\n\txorl\t%edi,%eax\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t208(%esp),%ecx\n\tmovl\t212(%esp),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2481, "line_end": 2540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:64", "text": "xorl\t%esi,%ebx\n\tshrl\t$6,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$6,%edx\n\txorl\t%ecx,%eax\n\tshll\t$7,%esi\n\txorl\t%edx,%ebx\n\tshll\t$1,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$1,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$1,%edx\n\txorl\t%ecx,%eax\n\tshll\t$6,%edi\n\txorl\t%edx,%ebx\n\txorl\t%edi,%eax\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovl\t208(%esp),%ecx\n\tmovl\t212(%esp),%edx\n\tmovl\t%ecx,%esi\n\tshrl\t$6,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$6,%edx\n\tmovl\t%ecx,%eax\n\tshll\t$3,%esi\n\tmovl\t%edx,%ebx\n\tshll\t$3,%edi\n\txorl\t%esi,%eax\n\tshrl\t$13,%ecx\n\txorl\t%edi,%ebx\n\tshrl\t$13,%edx\n\txorl\t%ecx,%eax\n\tshll\t$10,%esi\n\txorl\t%edx,%ebx\n\tshll\t$10,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$10,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$10,%edx\n\txorl\t%ecx,%ebx\n\tshll\t$13,%edi\n\txorl\t%edx,%eax\n\txorl\t%edi,%eax\n\tmovl\t320(%esp),%ecx\n\tmovl\t324(%esp),%edx\n\taddl\t(%esp),%eax\n\tadcl\t4(%esp),%ebx\n\tmovl\t248(%esp),%esi\n\tmovl\t252(%esp),%edi\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\taddl\t%esi,%eax\n\tadcl\t%edi,%ebx\n\tmovl\t%eax,192(%esp)\n\tmovl\t%ebx,196(%esp)\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%edx\n\tmovl\t%ecx,%esi\n\tshrl\t$9,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2521, "line_end": 2580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:65", "text": "xorl\t%ecx,%ebx\n\tshll\t$13,%edi\n\txorl\t%edx,%eax\n\txorl\t%edi,%eax\n\tmovl\t320(%esp),%ecx\n\tmovl\t324(%esp),%edx\n\taddl\t(%esp),%eax\n\tadcl\t4(%esp),%ebx\n\tmovl\t248(%esp),%esi\n\tmovl\t252(%esp),%edi\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\taddl\t%esi,%eax\n\tadcl\t%edi,%ebx\n\tmovl\t%eax,192(%esp)\n\tmovl\t%ebx,196(%esp)\n\tmovl\t40(%esp),%ecx\n\tmovl\t44(%esp),%edx\n\tmovl\t%ecx,%esi\n\tshrl\t$9,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$9,%edx\n\tmovl\t%ecx,%ebx\n\tshll\t$14,%esi\n\tmovl\t%edx,%eax\n\tshll\t$14,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$5,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$5,%edx\n\txorl\t%ecx,%eax\n\tshll\t$4,%esi\n\txorl\t%edx,%ebx\n\tshll\t$4,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$4,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$4,%edx\n\txorl\t%ecx,%eax\n\tshll\t$5,%esi\n\txorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx\n\tmovl\t48(%esp),%ecx\n\tmovl\t52(%esp),%edx\n\tmovl\t56(%esp),%esi\n\tmovl\t60(%esp),%edi\n\taddl\t64(%esp),%eax\n\tadcl\t68(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tandl\t40(%esp),%ecx\n\tandl\t44(%esp),%edx\n\taddl\t192(%esp),%eax\n\tadcl\t196(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tmovl\t(%ebp),%esi\n\tmovl\t4(%ebp),%edi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2561, "line_end": 2620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:66", "text": "xorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx\n\tmovl\t48(%esp),%ecx\n\tmovl\t52(%esp),%edx\n\tmovl\t56(%esp),%esi\n\tmovl\t60(%esp),%edi\n\taddl\t64(%esp),%eax\n\tadcl\t68(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tandl\t40(%esp),%ecx\n\tandl\t44(%esp),%edx\n\taddl\t192(%esp),%eax\n\tadcl\t196(%esp),%ebx\n\txorl\t%esi,%ecx\n\txorl\t%edi,%edx\n\tmovl\t(%ebp),%esi\n\tmovl\t4(%ebp),%edi\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t32(%esp),%ecx\n\tmovl\t36(%esp),%edx\n\taddl\t%esi,%eax\n\tadcl\t%edi,%ebx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t%eax,32(%esp)\n\tmovl\t%ebx,36(%esp)\n\tmovl\t%ecx,%esi\n\tshrl\t$2,%ecx\n\tmovl\t%edx,%edi\n\tshrl\t$2,%edx\n\tmovl\t%ecx,%ebx\n\tshll\t$4,%esi\n\tmovl\t%edx,%eax\n\tshll\t$4,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$5,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$5,%edx\n\txorl\t%ecx,%ebx\n\tshll\t$21,%esi\n\txorl\t%edx,%eax\n\tshll\t$21,%edi\n\txorl\t%esi,%eax\n\tshrl\t$21,%ecx\n\txorl\t%edi,%ebx\n\tshrl\t$21,%edx\n\txorl\t%ecx,%eax\n\tshll\t$5,%esi\n\txorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2601, "line_end": 2660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:67", "text": "movl\t%edx,%eax\n\tshll\t$4,%edi\n\txorl\t%esi,%ebx\n\tshrl\t$5,%ecx\n\txorl\t%edi,%eax\n\tshrl\t$5,%edx\n\txorl\t%ecx,%ebx\n\tshll\t$21,%esi\n\txorl\t%edx,%eax\n\tshll\t$21,%edi\n\txorl\t%esi,%eax\n\tshrl\t$21,%ecx\n\txorl\t%edi,%ebx\n\tshrl\t$21,%edx\n\txorl\t%ecx,%eax\n\tshll\t$5,%esi\n\txorl\t%edx,%ebx\n\tshll\t$5,%edi\n\txorl\t%esi,%eax\n\txorl\t%edi,%ebx\n\tmovl\t8(%esp),%ecx\n\tmovl\t12(%esp),%edx\n\tmovl\t16(%esp),%esi\n\tmovl\t20(%esp),%edi\n\taddl\t(%esp),%eax\n\tadcl\t4(%esp),%ebx\n\torl\t%esi,%ecx\n\torl\t%edi,%edx\n\tandl\t24(%esp),%ecx\n\tandl\t28(%esp),%edx\n\tandl\t8(%esp),%esi\n\tandl\t12(%esp),%edi\n\torl\t%esi,%ecx\n\torl\t%edi,%edx\n\taddl\t%ecx,%eax\n\tadcl\t%edx,%ebx\n\tmovl\t%eax,(%esp)\n\tmovl\t%ebx,4(%esp)\n\tmovb\t(%ebp),%dl\n\tsubl\t$8,%esp\n\tleal\t8(%ebp),%ebp\n\tcmpb\t$23,%dl\n\tjne\t.L01016_79_x86\n\tmovl\t840(%esp),%esi\n\tmovl\t844(%esp),%edi\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\taddl\t8(%esp),%eax\n\tadcl\t12(%esp),%ebx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\taddl\t16(%esp),%ecx\n\tadcl\t20(%esp),%edx\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tmovl\t24(%esi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2641, "line_end": 2700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:68", "text": "leal\t8(%ebp),%ebp\n\tcmpb\t$23,%dl\n\tjne\t.L01016_79_x86\n\tmovl\t840(%esp),%esi\n\tmovl\t844(%esp),%edi\n\tmovl\t(%esi),%eax\n\tmovl\t4(%esi),%ebx\n\tmovl\t8(%esi),%ecx\n\tmovl\t12(%esi),%edx\n\taddl\t8(%esp),%eax\n\tadcl\t12(%esp),%ebx\n\tmovl\t%eax,(%esi)\n\tmovl\t%ebx,4(%esi)\n\taddl\t16(%esp),%ecx\n\tadcl\t20(%esp),%edx\n\tmovl\t%ecx,8(%esi)\n\tmovl\t%edx,12(%esi)\n\tmovl\t16(%esi),%eax\n\tmovl\t20(%esi),%ebx\n\tmovl\t24(%esi),%ecx\n\tmovl\t28(%esi),%edx\n\taddl\t24(%esp),%eax\n\tadcl\t28(%esp),%ebx\n\tmovl\t%eax,16(%esi)\n\tmovl\t%ebx,20(%esi)\n\taddl\t32(%esp),%ecx\n\tadcl\t36(%esp),%edx\n\tmovl\t%ecx,24(%esi)\n\tmovl\t%edx,28(%esi)\n\tmovl\t32(%esi),%eax\n\tmovl\t36(%esi),%ebx\n\tmovl\t40(%esi),%ecx\n\tmovl\t44(%esi),%edx\n\taddl\t40(%esp),%eax\n\tadcl\t44(%esp),%ebx\n\tmovl\t%eax,32(%esi)\n\tmovl\t%ebx,36(%esi)\n\taddl\t48(%esp),%ecx\n\tadcl\t52(%esp),%edx\n\tmovl\t%ecx,40(%esi)\n\tmovl\t%edx,44(%esi)\n\tmovl\t48(%esi),%eax\n\tmovl\t52(%esi),%ebx\n\tmovl\t56(%esi),%ecx\n\tmovl\t60(%esi),%edx\n\taddl\t56(%esp),%eax\n\tadcl\t60(%esp),%ebx\n\tmovl\t%eax,48(%esi)\n\tmovl\t%ebx,52(%esi)\n\taddl\t64(%esp),%ecx\n\tadcl\t68(%esp),%edx\n\tmovl\t%ecx,56(%esi)\n\tmovl\t%edx,60(%esi)\n\taddl\t$840,%esp\n\tsubl\t$640,%ebp\n\tcmpl\t8(%esp),%edi\n\tjb\t.L002loop_x86\n\tmovl\t12(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2681, "line_end": 2740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:69", "text": "movl\t%edx,44(%esi)\n\tmovl\t48(%esi),%eax\n\tmovl\t52(%esi),%ebx\n\tmovl\t56(%esi),%ecx\n\tmovl\t60(%esi),%edx\n\taddl\t56(%esp),%eax\n\tadcl\t60(%esp),%ebx\n\tmovl\t%eax,48(%esi)\n\tmovl\t%ebx,52(%esi)\n\taddl\t64(%esp),%ecx\n\tadcl\t68(%esp),%edx\n\tmovl\t%ecx,56(%esi)\n\tmovl\t%edx,60(%esi)\n\taddl\t$840,%esp\n\tsubl\t$640,%ebp\n\tcmpl\t8(%esp),%edi\n\tjb\t.L002loop_x86\n\tmovl\t12(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.align\t64\n.L001K512:\n.long\t3609767458,1116352408\n.long\t602891725,1899447441\n.long\t3964484399,3049323471\n.long\t2173295548,3921009573\n.long\t4081628472,961987163\n.long\t3053834265,1508970993\n.long\t2937671579,2453635748\n.long\t3664609560,2870763221\n.long\t2734883394,3624381080\n.long\t1164996542,310598401\n.long\t1323610764,607225278\n.long\t3590304994,1426881987\n.long\t4068182383,1925078388\n.long\t991336113,2162078206\n.long\t633803317,2614888103\n.long\t3479774868,3248222580\n.long\t2666613458,3835390401\n.long\t944711139,4022224774\n.long\t2341262773,264347078\n.long\t2007800933,604807628\n.long\t1495990901,770255983\n.long\t1856431235,1249150122\n.long\t3175218132,1555081692\n.long\t2198950837,1996064986\n.long\t3999719339,2554220882\n.long\t766784016,2821834349\n.long\t2566594879,2952996808\n.long\t3203337956,3210313671\n.long\t1034457026,3336571891\n.long\t2466948901,3584528711\n.long\t3758326383,113926993\n.long\t168717936,338241895\n.long\t1188179964,666307205\n.long\t1546045734,773529912\n.long\t1522805485,1294757372", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2721, "line_end": 2780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:70", "text": ".long\t3479774868,3248222580\n.long\t2666613458,3835390401\n.long\t944711139,4022224774\n.long\t2341262773,264347078\n.long\t2007800933,604807628\n.long\t1495990901,770255983\n.long\t1856431235,1249150122\n.long\t3175218132,1555081692\n.long\t2198950837,1996064986\n.long\t3999719339,2554220882\n.long\t766784016,2821834349\n.long\t2566594879,2952996808\n.long\t3203337956,3210313671\n.long\t1034457026,3336571891\n.long\t2466948901,3584528711\n.long\t3758326383,113926993\n.long\t168717936,338241895\n.long\t1188179964,666307205\n.long\t1546045734,773529912\n.long\t1522805485,1294757372\n.long\t2643833823,1396182291\n.long\t2343527390,1695183700\n.long\t1014477480,1986661051\n.long\t1206759142,2177026350\n.long\t344077627,2456956037\n.long\t1290863460,2730485921\n.long\t3158454273,2820302411\n.long\t3505952657,3259730800\n.long\t106217008,3345764771\n.long\t3606008344,3516065817\n.long\t1432725776,3600352804\n.long\t1467031594,4094571909\n.long\t851169720,275423344\n.long\t3100823752,430227734\n.long\t1363258195,506948616\n.long\t3750685593,659060556\n.long\t3785050280,883997877\n.long\t3318307427,958139571\n.long\t3812723403,1322822218\n.long\t2003034995,1537002063\n.long\t3602036899,1747873779\n.long\t1575990012,1955562222\n.long\t1125592928,2024104815\n.long\t2716904306,2227730452\n.long\t442776044,2361852424\n.long\t593698344,2428436474\n.long\t3733110249,2756734187\n.long\t2999351573,3204031479\n.long\t3815920427,3329325298\n.long\t3928383900,3391569614\n.long\t566280711,3515267271\n.long\t3454069534,3940187606\n.long\t4000239992,4118630271\n.long\t1914138554,116418474\n.long\t2731055270,174292421\n.long\t3203993006,289380356\n.long\t320620315,460393269\n.long\t587496836,685471733\n.long\t1086792851,852142971\n.long\t365543100,1017036298", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2761, "line_end": 2820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S:71", "text": ".long\t3602036899,1747873779\n.long\t1575990012,1955562222\n.long\t1125592928,2024104815\n.long\t2716904306,2227730452\n.long\t442776044,2361852424\n.long\t593698344,2428436474\n.long\t3733110249,2756734187\n.long\t2999351573,3204031479\n.long\t3815920427,3329325298\n.long\t3928383900,3391569614\n.long\t566280711,3515267271\n.long\t3454069534,3940187606\n.long\t4000239992,4118630271\n.long\t1914138554,116418474\n.long\t2731055270,174292421\n.long\t3203993006,289380356\n.long\t320620315,460393269\n.long\t587496836,685471733\n.long\t1086792851,852142971\n.long\t365543100,1017036298\n.long\t2618297676,1126000580\n.long\t3409855158,1288033470\n.long\t4234509866,1501505948\n.long\t987167468,1607167915\n.long\t1246189591,1816402316\n.long\t67438087,66051\n.long\t202182159,134810123\n.size\tsha512_block_data_order,.-.L_sha512_block_data_order_begin\n.byte\t83,72,65,53,49,50,32,98,108,111,99,107,32,116,114,97\n.byte\t110,115,102,111,114,109,32,102,111,114,32,120,56,54,44,32\n.byte\t67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97\n.byte\t112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103\n.byte\t62,0\n.comm\tOPENSSL_ia32cap_P,40,4\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/sha512-586.S", "line_start": 2801, "line_end": 2851}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tOPENSSL_UplinkTable\n.type\t_$lazy1,@function\n.align\t16\n_$lazy1:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$1\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*4(%eax)\n.size\t_$lazy1,.-_$lazy1\n.type\t_$lazy2,@function\n.align\t16\n_$lazy2:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$2\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*8(%eax)\n.size\t_$lazy2,.-_$lazy2\n.type\t_$lazy3,@function\n.align\t16\n_$lazy3:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$3\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*12(%eax)\n.size\t_$lazy3,.-_$lazy3\n.type\t_$lazy4,@function\n.align\t16\n_$lazy4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:2", "text": ".byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$3\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*12(%eax)\n.size\t_$lazy3,.-_$lazy3\n.type\t_$lazy4,@function\n.align\t16\n_$lazy4:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$4\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*16(%eax)\n.size\t_$lazy4,.-_$lazy4\n.type\t_$lazy5,@function\n.align\t16\n_$lazy5:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$5\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*20(%eax)\n.size\t_$lazy5,.-_$lazy5\n.type\t_$lazy6,@function\n.align\t16\n_$lazy6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$6\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*24(%eax)\n.size\t_$lazy6,.-_$lazy6\n.type\t_$lazy7,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:3", "text": "addl\t$4,%esp\n\tjmp\t*20(%eax)\n.size\t_$lazy5,.-_$lazy5\n.type\t_$lazy6,@function\n.align\t16\n_$lazy6:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$6\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*24(%eax)\n.size\t_$lazy6,.-_$lazy6\n.type\t_$lazy7,@function\n.align\t16\n_$lazy7:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$7\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*28(%eax)\n.size\t_$lazy7,.-_$lazy7\n.type\t_$lazy8,@function\n.align\t16\n_$lazy8:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$8\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*32(%eax)\n.size\t_$lazy8,.-_$lazy8\n.type\t_$lazy9,@function\n.align\t16\n_$lazy9:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:4", "text": ".byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$8\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*32(%eax)\n.size\t_$lazy8,.-_$lazy8\n.type\t_$lazy9,@function\n.align\t16\n_$lazy9:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$9\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*36(%eax)\n.size\t_$lazy9,.-_$lazy9\n.type\t_$lazy10,@function\n.align\t16\n_$lazy10:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$10\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*40(%eax)\n.size\t_$lazy10,.-_$lazy10\n.type\t_$lazy11,@function\n.align\t16\n_$lazy11:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$11\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*44(%eax)\n.size\t_$lazy11,.-_$lazy11\n.type\t_$lazy12,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:5", "text": "addl\t$4,%esp\n\tjmp\t*40(%eax)\n.size\t_$lazy10,.-_$lazy10\n.type\t_$lazy11,@function\n.align\t16\n_$lazy11:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$11\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*44(%eax)\n.size\t_$lazy11,.-_$lazy11\n.type\t_$lazy12,@function\n.align\t16\n_$lazy12:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$12\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*48(%eax)\n.size\t_$lazy12,.-_$lazy12\n.type\t_$lazy13,@function\n.align\t16\n_$lazy13:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$13\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*52(%eax)\n.size\t_$lazy13,.-_$lazy13\n.type\t_$lazy14,@function\n.align\t16\n_$lazy14:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:6", "text": ".byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$13\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*52(%eax)\n.size\t_$lazy13,.-_$lazy13\n.type\t_$lazy14,@function\n.align\t16\n_$lazy14:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$14\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*56(%eax)\n.size\t_$lazy14,.-_$lazy14\n.type\t_$lazy15,@function\n.align\t16\n_$lazy15:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$15\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*60(%eax)\n.size\t_$lazy15,.-_$lazy15\n.type\t_$lazy16,@function\n.align\t16\n_$lazy16:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$16\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*64(%eax)\n.size\t_$lazy16,.-_$lazy16\n.type\t_$lazy17,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:7", "text": "addl\t$4,%esp\n\tjmp\t*60(%eax)\n.size\t_$lazy15,.-_$lazy15\n.type\t_$lazy16,@function\n.align\t16\n_$lazy16:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$16\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*64(%eax)\n.size\t_$lazy16,.-_$lazy16\n.type\t_$lazy17,@function\n.align\t16\n_$lazy17:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$17\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*68(%eax)\n.size\t_$lazy17,.-_$lazy17\n.type\t_$lazy18,@function\n.align\t16\n_$lazy18:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$18\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*72(%eax)\n.size\t_$lazy18,.-_$lazy18\n.type\t_$lazy19,@function\n.align\t16\n_$lazy19:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:8", "text": ".byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$18\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*72(%eax)\n.size\t_$lazy18,.-_$lazy18\n.type\t_$lazy19,@function\n.align\t16\n_$lazy19:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$19\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*76(%eax)\n.size\t_$lazy19,.-_$lazy19\n.type\t_$lazy20,@function\n.align\t16\n_$lazy20:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$20\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*80(%eax)\n.size\t_$lazy20,.-_$lazy20\n.type\t_$lazy21,@function\n.align\t16\n_$lazy21:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$21\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*84(%eax)\n.size\t_$lazy21,.-_$lazy21\n.type\t_$lazy22,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:9", "text": "addl\t$4,%esp\n\tjmp\t*80(%eax)\n.size\t_$lazy20,.-_$lazy20\n.type\t_$lazy21,@function\n.align\t16\n_$lazy21:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$21\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*84(%eax)\n.size\t_$lazy21,.-_$lazy21\n.type\t_$lazy22,@function\n.align\t16\n_$lazy22:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\tOPENSSL_UplinkTable,%eax\n\tpushl\t$22\n\tpushl\t%eax\n\tcall\tOPENSSL_Uplink\n\tpopl\t%eax\n\taddl\t$4,%esp\n\tjmp\t*88(%eax)\n.size\t_$lazy22,.-_$lazy22\n.data\n.align\t4\nOPENSSL_UplinkTable:\n.long\t22\n.long\t_$lazy1\n.long\t_$lazy2\n.long\t_$lazy3\n.long\t_$lazy4\n.long\t_$lazy5\n.long\t_$lazy6\n.long\t_$lazy7\n.long\t_$lazy8\n.long\t_$lazy9\n.long\t_$lazy10\n.long\t_$lazy11\n.long\t_$lazy12\n.long\t_$lazy13\n.long\t_$lazy14\n.long\t_$lazy15\n.long\t_$lazy16\n.long\t_$lazy17\n.long\t_$lazy18\n.long\t_$lazy19\n.long\t_$lazy20\n.long\t_$lazy21", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S:10", "text": ".long\t_$lazy2\n.long\t_$lazy3\n.long\t_$lazy4\n.long\t_$lazy5\n.long\t_$lazy6\n.long\t_$lazy7\n.long\t_$lazy8\n.long\t_$lazy9\n.long\t_$lazy10\n.long\t_$lazy11\n.long\t_$lazy12\n.long\t_$lazy13\n.long\t_$lazy14\n.long\t_$lazy15\n.long\t_$lazy16\n.long\t_$lazy17\n.long\t_$lazy18\n.long\t_$lazy19\n.long\t_$lazy20\n.long\t_$lazy21\n.long\t_$lazy22\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/uplink-x86.S", "line_start": 361, "line_end": 398}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:1", "text": "#include <machine/asm.h>\n.text\n.align\t64\n.L_vpaes_consts:\n.long\t218628480,235210255,168496130,67568393\n.long\t252381056,17041926,33884169,51187212\n.long\t252645135,252645135,252645135,252645135\n.long\t1512730624,3266504856,1377990664,3401244816\n.long\t830229760,1275146365,2969422977,3447763452\n.long\t3411033600,2979783055,338359620,2782886510\n.long\t4209124096,907596821,221174255,1006095553\n.long\t191964160,3799684038,3164090317,1589111125\n.long\t182528256,1777043520,2877432650,3265356744\n.long\t1874708224,3503451415,3305285752,363511674\n.long\t1606117888,3487855781,1093350906,2384367825\n.long\t197121,67569157,134941193,202313229\n.long\t67569157,134941193,202313229,197121\n.long\t134941193,202313229,197121,67569157\n.long\t202313229,197121,67569157,134941193\n.long\t33619971,100992007,168364043,235736079\n.long\t235736079,33619971,100992007,168364043\n.long\t168364043,235736079,33619971,100992007\n.long\t100992007,168364043,235736079,33619971\n.long\t50462976,117835012,185207048,252579084\n.long\t252314880,51251460,117574920,184942860\n.long\t184682752,252054788,50987272,118359308\n.long\t118099200,185467140,251790600,50727180\n.long\t2946363062,528716217,1300004225,1881839624\n.long\t1532713819,1532713819,1532713819,1532713819\n.long\t3602276352,4288629033,3737020424,4153884961\n.long\t1354558464,32357713,2958822624,3775749553\n.long\t1201988352,132424512,1572796698,503232858\n.long\t2213177600,1597421020,4103937655,675398315\n.long\t2749646592,4273543773,1511898873,121693092\n.long\t3040248576,1103263732,2871565598,1608280554\n.long\t2236667136,2588920351,482954393,64377734\n.long\t3069987328,291237287,2117370568,3650299247\n.long\t533321216,3573750986,2572112006,1401264716\n.long\t1339849704,2721158661,548607111,3445553514\n.long\t2128193280,3054596040,2183486460,1257083700\n.long\t655635200,1165381986,3923443150,2344132524\n.long\t190078720,256924420,290342170,357187870\n.long\t1610966272,2263057382,4103205268,309794674\n.long\t2592527872,2233205587,1335446729,3402964816\n.long\t3973531904,3225098121,3002836325,1918774430\n.long\t3870401024,2102906079,2284471353,4117666579\n.long\t617007872,1021508343,366931923,691083277\n.long\t2528395776,3491914898,2968704004,1613121270\n.long\t3445188352,3247741094,844474987,4093578302\n.long\t651481088,1190302358,1689581232,574775300\n.long\t4289380608,206939853,2555985458,2489840491\n.long\t2130264064,327674451,3566485037,3349835193\n.long\t2470714624,316102159,3636825756,3393945945\n.byte\t86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105\n.byte\t111,110,32,65,69,83,32,102,111,114,32,120,56,54,47,83\n.byte\t83,83,69,51,44,32,77,105,107,101,32,72,97,109,98,117\n.byte\t114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105\n.byte\t118,101,114,115,105,116,121,41,0\n.align\t64\n.type\t_vpaes_preheat,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:2", "text": ".long\t655635200,1165381986,3923443150,2344132524\n.long\t190078720,256924420,290342170,357187870\n.long\t1610966272,2263057382,4103205268,309794674\n.long\t2592527872,2233205587,1335446729,3402964816\n.long\t3973531904,3225098121,3002836325,1918774430\n.long\t3870401024,2102906079,2284471353,4117666579\n.long\t617007872,1021508343,366931923,691083277\n.long\t2528395776,3491914898,2968704004,1613121270\n.long\t3445188352,3247741094,844474987,4093578302\n.long\t651481088,1190302358,1689581232,574775300\n.long\t4289380608,206939853,2555985458,2489840491\n.long\t2130264064,327674451,3566485037,3349835193\n.long\t2470714624,316102159,3636825756,3393945945\n.byte\t86,101,99,116,111,114,32,80,101,114,109,117,116,97,116,105\n.byte\t111,110,32,65,69,83,32,102,111,114,32,120,56,54,47,83\n.byte\t83,83,69,51,44,32,77,105,107,101,32,72,97,109,98,117\n.byte\t114,103,32,40,83,116,97,110,102,111,114,100,32,85,110,105\n.byte\t118,101,114,115,105,116,121,41,0\n.align\t64\n.type\t_vpaes_preheat,@function\n.align\t16\n_vpaes_preheat:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\taddl\t(%esp),%ebp\n\tmovdqa\t-48(%ebp),%xmm7\n\tmovdqa\t-16(%ebp),%xmm6\n\tret\n.size\t_vpaes_preheat,.-_vpaes_preheat\n.type\t_vpaes_encrypt_core,@function\n.align\t16\n_vpaes_encrypt_core:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t$16,%ecx\n\tmovl\t240(%edx),%eax\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t(%ebp),%xmm2\n\tpandn\t%xmm0,%xmm1\n\tpand\t%xmm6,%xmm0\n\tmovdqu\t(%edx),%xmm5\n.byte\t102,15,56,0,208\n\tmovdqa\t16(%ebp),%xmm0\n\tpxor\t%xmm5,%xmm2\n\tpsrld\t$4,%xmm1\n\taddl\t$16,%edx\n.byte\t102,15,56,0,193\n\tleal\t192(%ebp),%ebx\n\tpxor\t%xmm2,%xmm0\n\tjmp\t.L000enc_entry\n.align\t16\n.L001enc_loop:\n\tmovdqa\t32(%ebp),%xmm4\n\tmovdqa\t48(%ebp),%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:3", "text": "movl\t$16,%ecx\n\tmovl\t240(%edx),%eax\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t(%ebp),%xmm2\n\tpandn\t%xmm0,%xmm1\n\tpand\t%xmm6,%xmm0\n\tmovdqu\t(%edx),%xmm5\n.byte\t102,15,56,0,208\n\tmovdqa\t16(%ebp),%xmm0\n\tpxor\t%xmm5,%xmm2\n\tpsrld\t$4,%xmm1\n\taddl\t$16,%edx\n.byte\t102,15,56,0,193\n\tleal\t192(%ebp),%ebx\n\tpxor\t%xmm2,%xmm0\n\tjmp\t.L000enc_entry\n.align\t16\n.L001enc_loop:\n\tmovdqa\t32(%ebp),%xmm4\n\tmovdqa\t48(%ebp),%xmm0\n.byte\t102,15,56,0,226\n.byte\t102,15,56,0,195\n\tpxor\t%xmm5,%xmm4\n\tmovdqa\t64(%ebp),%xmm5\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t-64(%ebx,%ecx,1),%xmm1\n.byte\t102,15,56,0,234\n\tmovdqa\t80(%ebp),%xmm2\n\tmovdqa\t(%ebx,%ecx,1),%xmm4\n.byte\t102,15,56,0,211\n\tmovdqa\t%xmm0,%xmm3\n\tpxor\t%xmm5,%xmm2\n.byte\t102,15,56,0,193\n\taddl\t$16,%edx\n\tpxor\t%xmm2,%xmm0\n.byte\t102,15,56,0,220\n\taddl\t$16,%ecx\n\tpxor\t%xmm0,%xmm3\n.byte\t102,15,56,0,193\n\tandl\t$48,%ecx\n\tsubl\t$1,%eax\n\tpxor\t%xmm3,%xmm0\n.L000enc_entry:\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t-32(%ebp),%xmm5\n\tpandn\t%xmm0,%xmm1\n\tpsrld\t$4,%xmm1\n\tpand\t%xmm6,%xmm0\n.byte\t102,15,56,0,232\n\tmovdqa\t%xmm7,%xmm3\n\tpxor\t%xmm1,%xmm0\n.byte\t102,15,56,0,217\n\tmovdqa\t%xmm7,%xmm4\n\tpxor\t%xmm5,%xmm3\n.byte\t102,15,56,0,224\n\tmovdqa\t%xmm7,%xmm2\n\tpxor\t%xmm5,%xmm4\n.byte\t102,15,56,0,211\n\tmovdqa\t%xmm7,%xmm3\n\tpxor\t%xmm0,%xmm2", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:4", "text": "subl\t$1,%eax\n\tpxor\t%xmm3,%xmm0\n.L000enc_entry:\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t-32(%ebp),%xmm5\n\tpandn\t%xmm0,%xmm1\n\tpsrld\t$4,%xmm1\n\tpand\t%xmm6,%xmm0\n.byte\t102,15,56,0,232\n\tmovdqa\t%xmm7,%xmm3\n\tpxor\t%xmm1,%xmm0\n.byte\t102,15,56,0,217\n\tmovdqa\t%xmm7,%xmm4\n\tpxor\t%xmm5,%xmm3\n.byte\t102,15,56,0,224\n\tmovdqa\t%xmm7,%xmm2\n\tpxor\t%xmm5,%xmm4\n.byte\t102,15,56,0,211\n\tmovdqa\t%xmm7,%xmm3\n\tpxor\t%xmm0,%xmm2\n.byte\t102,15,56,0,220\n\tmovdqu\t(%edx),%xmm5\n\tpxor\t%xmm1,%xmm3\n\tjnz\t.L001enc_loop\n\tmovdqa\t96(%ebp),%xmm4\n\tmovdqa\t112(%ebp),%xmm0\n.byte\t102,15,56,0,226\n\tpxor\t%xmm5,%xmm4\n.byte\t102,15,56,0,195\n\tmovdqa\t64(%ebx,%ecx,1),%xmm1\n\tpxor\t%xmm4,%xmm0\n.byte\t102,15,56,0,193\n\tret\n.size\t_vpaes_encrypt_core,.-_vpaes_encrypt_core\n.type\t_vpaes_decrypt_core,@function\n.align\t16\n_vpaes_decrypt_core:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tleal\t608(%ebp),%ebx\n\tmovl\t240(%edx),%eax\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t-64(%ebx),%xmm2\n\tpandn\t%xmm0,%xmm1\n\tmovl\t%eax,%ecx\n\tpsrld\t$4,%xmm1\n\tmovdqu\t(%edx),%xmm5\n\tshll\t$4,%ecx\n\tpand\t%xmm6,%xmm0\n.byte\t102,15,56,0,208\n\tmovdqa\t-48(%ebx),%xmm0\n\txorl\t$48,%ecx\n.byte\t102,15,56,0,193\n\tandl\t$48,%ecx\n\tpxor\t%xmm5,%xmm2\n\tmovdqa\t176(%ebp),%xmm5\n\tpxor\t%xmm2,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:5", "text": "#endif\n\n\tleal\t608(%ebp),%ebx\n\tmovl\t240(%edx),%eax\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t-64(%ebx),%xmm2\n\tpandn\t%xmm0,%xmm1\n\tmovl\t%eax,%ecx\n\tpsrld\t$4,%xmm1\n\tmovdqu\t(%edx),%xmm5\n\tshll\t$4,%ecx\n\tpand\t%xmm6,%xmm0\n.byte\t102,15,56,0,208\n\tmovdqa\t-48(%ebx),%xmm0\n\txorl\t$48,%ecx\n.byte\t102,15,56,0,193\n\tandl\t$48,%ecx\n\tpxor\t%xmm5,%xmm2\n\tmovdqa\t176(%ebp),%xmm5\n\tpxor\t%xmm2,%xmm0\n\taddl\t$16,%edx\n\tleal\t-352(%ebx,%ecx,1),%ecx\n\tjmp\t.L002dec_entry\n.align\t16\n.L003dec_loop:\n\tmovdqa\t-32(%ebx),%xmm4\n\tmovdqa\t-16(%ebx),%xmm1\n.byte\t102,15,56,0,226\n.byte\t102,15,56,0,203\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t(%ebx),%xmm4\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t16(%ebx),%xmm1\n.byte\t102,15,56,0,226\n.byte\t102,15,56,0,197\n.byte\t102,15,56,0,203\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t32(%ebx),%xmm4\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t48(%ebx),%xmm1\n.byte\t102,15,56,0,226\n.byte\t102,15,56,0,197\n.byte\t102,15,56,0,203\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t64(%ebx),%xmm4\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t80(%ebx),%xmm1\n.byte\t102,15,56,0,226\n.byte\t102,15,56,0,197\n.byte\t102,15,56,0,203\n\tpxor\t%xmm4,%xmm0\n\taddl\t$16,%edx\n.byte\t102,15,58,15,237,12\n\tpxor\t%xmm1,%xmm0\n\tsubl\t$1,%eax\n.L002dec_entry:\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t-32(%ebp),%xmm2\n\tpandn\t%xmm0,%xmm1\n\tpand\t%xmm6,%xmm0", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:6", "text": ".byte\t102,15,56,0,226\n.byte\t102,15,56,0,197\n.byte\t102,15,56,0,203\n\tpxor\t%xmm4,%xmm0\n\tmovdqa\t64(%ebx),%xmm4\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t80(%ebx),%xmm1\n.byte\t102,15,56,0,226\n.byte\t102,15,56,0,197\n.byte\t102,15,56,0,203\n\tpxor\t%xmm4,%xmm0\n\taddl\t$16,%edx\n.byte\t102,15,58,15,237,12\n\tpxor\t%xmm1,%xmm0\n\tsubl\t$1,%eax\n.L002dec_entry:\n\tmovdqa\t%xmm6,%xmm1\n\tmovdqa\t-32(%ebp),%xmm2\n\tpandn\t%xmm0,%xmm1\n\tpand\t%xmm6,%xmm0\n\tpsrld\t$4,%xmm1\n.byte\t102,15,56,0,208\n\tmovdqa\t%xmm7,%xmm3\n\tpxor\t%xmm1,%xmm0\n.byte\t102,15,56,0,217\n\tmovdqa\t%xmm7,%xmm4\n\tpxor\t%xmm2,%xmm3\n.byte\t102,15,56,0,224\n\tpxor\t%xmm2,%xmm4\n\tmovdqa\t%xmm7,%xmm2\n.byte\t102,15,56,0,211\n\tmovdqa\t%xmm7,%xmm3\n\tpxor\t%xmm0,%xmm2\n.byte\t102,15,56,0,220\n\tmovdqu\t(%edx),%xmm0\n\tpxor\t%xmm1,%xmm3\n\tjnz\t.L003dec_loop\n\tmovdqa\t96(%ebx),%xmm4\n.byte\t102,15,56,0,226\n\tpxor\t%xmm0,%xmm4\n\tmovdqa\t112(%ebx),%xmm0\n\tmovdqa\t(%ecx),%xmm2\n.byte\t102,15,56,0,195\n\tpxor\t%xmm4,%xmm0\n.byte\t102,15,56,0,194\n\tret\n.size\t_vpaes_decrypt_core,.-_vpaes_decrypt_core\n.type\t_vpaes_schedule_core,@function\n.align\t16\n_vpaes_schedule_core:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\taddl\t(%esp),%ebp\n\tmovdqu\t(%esi),%xmm0\n\tmovdqa\t320(%ebp),%xmm2\n\tmovdqa\t%xmm0,%xmm3\n\tleal\t(%ebp),%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:7", "text": "movdqa\t112(%ebx),%xmm0\n\tmovdqa\t(%ecx),%xmm2\n.byte\t102,15,56,0,195\n\tpxor\t%xmm4,%xmm0\n.byte\t102,15,56,0,194\n\tret\n.size\t_vpaes_decrypt_core,.-_vpaes_decrypt_core\n.type\t_vpaes_schedule_core,@function\n.align\t16\n_vpaes_schedule_core:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\taddl\t(%esp),%ebp\n\tmovdqu\t(%esi),%xmm0\n\tmovdqa\t320(%ebp),%xmm2\n\tmovdqa\t%xmm0,%xmm3\n\tleal\t(%ebp),%ebx\n\tmovdqa\t%xmm2,4(%esp)\n\tcall\t_vpaes_schedule_transform\n\tmovdqa\t%xmm0,%xmm7\n\ttestl\t%edi,%edi\n\tjnz\t.L004schedule_am_decrypting\n\tmovdqu\t%xmm0,(%edx)\n\tjmp\t.L005schedule_go\n.L004schedule_am_decrypting:\n\tmovdqa\t256(%ebp,%ecx,1),%xmm1\n.byte\t102,15,56,0,217\n\tmovdqu\t%xmm3,(%edx)\n\txorl\t$48,%ecx\n.L005schedule_go:\n\tcmpl\t$192,%eax\n\tja\t.L006schedule_256\n\tje\t.L007schedule_192\n.L008schedule_128:\n\tmovl\t$10,%eax\n.L009loop_schedule_128:\n\tcall\t_vpaes_schedule_round\n\tdecl\t%eax\n\tjz\t.L010schedule_mangle_last\n\tcall\t_vpaes_schedule_mangle\n\tjmp\t.L009loop_schedule_128\n.align\t16\n.L007schedule_192:\n\tmovdqu\t8(%esi),%xmm0\n\tcall\t_vpaes_schedule_transform\n\tmovdqa\t%xmm0,%xmm6\n\tpxor\t%xmm4,%xmm4\n\tmovhlps\t%xmm4,%xmm6\n\tmovl\t$4,%eax\n.L011loop_schedule_192:\n\tcall\t_vpaes_schedule_round\n.byte\t102,15,58,15,198,8\n\tcall\t_vpaes_schedule_mangle\n\tcall\t_vpaes_schedule_192_smear\n\tcall\t_vpaes_schedule_mangle\n\tcall\t_vpaes_schedule_round\n\tdecl\t%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:8", "text": "decl\t%eax\n\tjz\t.L010schedule_mangle_last\n\tcall\t_vpaes_schedule_mangle\n\tjmp\t.L009loop_schedule_128\n.align\t16\n.L007schedule_192:\n\tmovdqu\t8(%esi),%xmm0\n\tcall\t_vpaes_schedule_transform\n\tmovdqa\t%xmm0,%xmm6\n\tpxor\t%xmm4,%xmm4\n\tmovhlps\t%xmm4,%xmm6\n\tmovl\t$4,%eax\n.L011loop_schedule_192:\n\tcall\t_vpaes_schedule_round\n.byte\t102,15,58,15,198,8\n\tcall\t_vpaes_schedule_mangle\n\tcall\t_vpaes_schedule_192_smear\n\tcall\t_vpaes_schedule_mangle\n\tcall\t_vpaes_schedule_round\n\tdecl\t%eax\n\tjz\t.L010schedule_mangle_last\n\tcall\t_vpaes_schedule_mangle\n\tcall\t_vpaes_schedule_192_smear\n\tjmp\t.L011loop_schedule_192\n.align\t16\n.L006schedule_256:\n\tmovdqu\t16(%esi),%xmm0\n\tcall\t_vpaes_schedule_transform\n\tmovl\t$7,%eax\n.L012loop_schedule_256:\n\tcall\t_vpaes_schedule_mangle\n\tmovdqa\t%xmm0,%xmm6\n\tcall\t_vpaes_schedule_round\n\tdecl\t%eax\n\tjz\t.L010schedule_mangle_last\n\tcall\t_vpaes_schedule_mangle\n\tpshufd\t$255,%xmm0,%xmm0\n\tmovdqa\t%xmm7,20(%esp)\n\tmovdqa\t%xmm6,%xmm7\n\tcall\t.L_vpaes_schedule_low_round\n\tmovdqa\t20(%esp),%xmm7\n\tjmp\t.L012loop_schedule_256\n.align\t16\n.L010schedule_mangle_last:\n\tleal\t384(%ebp),%ebx\n\ttestl\t%edi,%edi\n\tjnz\t.L013schedule_mangle_last_dec\n\tmovdqa\t256(%ebp,%ecx,1),%xmm1\n.byte\t102,15,56,0,193\n\tleal\t352(%ebp),%ebx\n\taddl\t$32,%edx\n.L013schedule_mangle_last_dec:\n\taddl\t$-16,%edx\n\tpxor\t336(%ebp),%xmm0\n\tcall\t_vpaes_schedule_transform\n\tmovdqu\t%xmm0,(%edx)\n\tpxor\t%xmm0,%xmm0\n\tpxor\t%xmm1,%xmm1\n\tpxor\t%xmm2,%xmm2\n\tpxor\t%xmm3,%xmm3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:9", "text": "movdqa\t20(%esp),%xmm7\n\tjmp\t.L012loop_schedule_256\n.align\t16\n.L010schedule_mangle_last:\n\tleal\t384(%ebp),%ebx\n\ttestl\t%edi,%edi\n\tjnz\t.L013schedule_mangle_last_dec\n\tmovdqa\t256(%ebp,%ecx,1),%xmm1\n.byte\t102,15,56,0,193\n\tleal\t352(%ebp),%ebx\n\taddl\t$32,%edx\n.L013schedule_mangle_last_dec:\n\taddl\t$-16,%edx\n\tpxor\t336(%ebp),%xmm0\n\tcall\t_vpaes_schedule_transform\n\tmovdqu\t%xmm0,(%edx)\n\tpxor\t%xmm0,%xmm0\n\tpxor\t%xmm1,%xmm1\n\tpxor\t%xmm2,%xmm2\n\tpxor\t%xmm3,%xmm3\n\tpxor\t%xmm4,%xmm4\n\tpxor\t%xmm5,%xmm5\n\tpxor\t%xmm6,%xmm6\n\tpxor\t%xmm7,%xmm7\n\tret\n.size\t_vpaes_schedule_core,.-_vpaes_schedule_core\n.type\t_vpaes_schedule_192_smear,@function\n.align\t16\n_vpaes_schedule_192_smear:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpshufd\t$128,%xmm6,%xmm1\n\tpshufd\t$254,%xmm7,%xmm0\n\tpxor\t%xmm1,%xmm6\n\tpxor\t%xmm1,%xmm1\n\tpxor\t%xmm0,%xmm6\n\tmovdqa\t%xmm6,%xmm0\n\tmovhlps\t%xmm1,%xmm6\n\tret\n.size\t_vpaes_schedule_192_smear,.-_vpaes_schedule_192_smear\n.type\t_vpaes_schedule_round,@function\n.align\t16\n_vpaes_schedule_round:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovdqa\t8(%esp),%xmm2\n\tpxor\t%xmm1,%xmm1\n.byte\t102,15,58,15,202,15\n.byte\t102,15,58,15,210,15\n\tpxor\t%xmm1,%xmm7\n\tpshufd\t$255,%xmm0,%xmm0\n.byte\t102,15,58,15,192,1\n\tmovdqa\t%xmm2,8(%esp)\n.L_vpaes_schedule_low_round:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:10", "text": "movhlps\t%xmm1,%xmm6\n\tret\n.size\t_vpaes_schedule_192_smear,.-_vpaes_schedule_192_smear\n.type\t_vpaes_schedule_round,@function\n.align\t16\n_vpaes_schedule_round:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovdqa\t8(%esp),%xmm2\n\tpxor\t%xmm1,%xmm1\n.byte\t102,15,58,15,202,15\n.byte\t102,15,58,15,210,15\n\tpxor\t%xmm1,%xmm7\n\tpshufd\t$255,%xmm0,%xmm0\n.byte\t102,15,58,15,192,1\n\tmovdqa\t%xmm2,8(%esp)\n.L_vpaes_schedule_low_round:\n\tmovdqa\t%xmm7,%xmm1\n\tpslldq\t$4,%xmm7\n\tpxor\t%xmm1,%xmm7\n\tmovdqa\t%xmm7,%xmm1\n\tpslldq\t$8,%xmm7\n\tpxor\t%xmm1,%xmm7\n\tpxor\t336(%ebp),%xmm7\n\tmovdqa\t-16(%ebp),%xmm4\n\tmovdqa\t-48(%ebp),%xmm5\n\tmovdqa\t%xmm4,%xmm1\n\tpandn\t%xmm0,%xmm1\n\tpsrld\t$4,%xmm1\n\tpand\t%xmm4,%xmm0\n\tmovdqa\t-32(%ebp),%xmm2\n.byte\t102,15,56,0,208\n\tpxor\t%xmm1,%xmm0\n\tmovdqa\t%xmm5,%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n\tmovdqa\t%xmm5,%xmm4\n.byte\t102,15,56,0,224\n\tpxor\t%xmm2,%xmm4\n\tmovdqa\t%xmm5,%xmm2\n.byte\t102,15,56,0,211\n\tpxor\t%xmm0,%xmm2\n\tmovdqa\t%xmm5,%xmm3\n.byte\t102,15,56,0,220\n\tpxor\t%xmm1,%xmm3\n\tmovdqa\t32(%ebp),%xmm4\n.byte\t102,15,56,0,226\n\tmovdqa\t48(%ebp),%xmm0\n.byte\t102,15,56,0,195\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm7,%xmm0\n\tmovdqa\t%xmm0,%xmm7\n\tret\n.size\t_vpaes_schedule_round,.-_vpaes_schedule_round\n.type\t_vpaes_schedule_transform,@function\n.align\t16\n_vpaes_schedule_transform:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:11", "text": ".byte\t102,15,56,0,224\n\tpxor\t%xmm2,%xmm4\n\tmovdqa\t%xmm5,%xmm2\n.byte\t102,15,56,0,211\n\tpxor\t%xmm0,%xmm2\n\tmovdqa\t%xmm5,%xmm3\n.byte\t102,15,56,0,220\n\tpxor\t%xmm1,%xmm3\n\tmovdqa\t32(%ebp),%xmm4\n.byte\t102,15,56,0,226\n\tmovdqa\t48(%ebp),%xmm0\n.byte\t102,15,56,0,195\n\tpxor\t%xmm4,%xmm0\n\tpxor\t%xmm7,%xmm0\n\tmovdqa\t%xmm0,%xmm7\n\tret\n.size\t_vpaes_schedule_round,.-_vpaes_schedule_round\n.type\t_vpaes_schedule_transform,@function\n.align\t16\n_vpaes_schedule_transform:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovdqa\t-16(%ebp),%xmm2\n\tmovdqa\t%xmm2,%xmm1\n\tpandn\t%xmm0,%xmm1\n\tpsrld\t$4,%xmm1\n\tpand\t%xmm2,%xmm0\n\tmovdqa\t(%ebx),%xmm2\n.byte\t102,15,56,0,208\n\tmovdqa\t16(%ebx),%xmm0\n.byte\t102,15,56,0,193\n\tpxor\t%xmm2,%xmm0\n\tret\n.size\t_vpaes_schedule_transform,.-_vpaes_schedule_transform\n.type\t_vpaes_schedule_mangle,@function\n.align\t16\n_vpaes_schedule_mangle:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t128(%ebp),%xmm5\n\ttestl\t%edi,%edi\n\tjnz\t.L014schedule_mangle_dec\n\taddl\t$16,%edx\n\tpxor\t336(%ebp),%xmm4\n.byte\t102,15,56,0,229\n\tmovdqa\t%xmm4,%xmm3\n.byte\t102,15,56,0,229\n\tpxor\t%xmm4,%xmm3\n.byte\t102,15,56,0,229\n\tpxor\t%xmm4,%xmm3\n\tjmp\t.L015schedule_mangle_both\n.align\t16\n.L014schedule_mangle_dec:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:12", "text": "#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovdqa\t%xmm0,%xmm4\n\tmovdqa\t128(%ebp),%xmm5\n\ttestl\t%edi,%edi\n\tjnz\t.L014schedule_mangle_dec\n\taddl\t$16,%edx\n\tpxor\t336(%ebp),%xmm4\n.byte\t102,15,56,0,229\n\tmovdqa\t%xmm4,%xmm3\n.byte\t102,15,56,0,229\n\tpxor\t%xmm4,%xmm3\n.byte\t102,15,56,0,229\n\tpxor\t%xmm4,%xmm3\n\tjmp\t.L015schedule_mangle_both\n.align\t16\n.L014schedule_mangle_dec:\n\tmovdqa\t-16(%ebp),%xmm2\n\tleal\t416(%ebp),%esi\n\tmovdqa\t%xmm2,%xmm1\n\tpandn\t%xmm4,%xmm1\n\tpsrld\t$4,%xmm1\n\tpand\t%xmm2,%xmm4\n\tmovdqa\t(%esi),%xmm2\n.byte\t102,15,56,0,212\n\tmovdqa\t16(%esi),%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n.byte\t102,15,56,0,221\n\tmovdqa\t32(%esi),%xmm2\n.byte\t102,15,56,0,212\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t48(%esi),%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n.byte\t102,15,56,0,221\n\tmovdqa\t64(%esi),%xmm2\n.byte\t102,15,56,0,212\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t80(%esi),%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n.byte\t102,15,56,0,221\n\tmovdqa\t96(%esi),%xmm2\n.byte\t102,15,56,0,212\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t112(%esi),%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n\taddl\t$-16,%edx\n.L015schedule_mangle_both:\n\tmovdqa\t256(%ebp,%ecx,1),%xmm1\n.byte\t102,15,56,0,217\n\taddl\t$-16,%ecx\n\tandl\t$48,%ecx\n\tmovdqu\t%xmm3,(%edx)\n\tret", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:13", "text": ".byte\t102,15,56,0,212\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t80(%esi),%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n.byte\t102,15,56,0,221\n\tmovdqa\t96(%esi),%xmm2\n.byte\t102,15,56,0,212\n\tpxor\t%xmm3,%xmm2\n\tmovdqa\t112(%esi),%xmm3\n.byte\t102,15,56,0,217\n\tpxor\t%xmm2,%xmm3\n\taddl\t$-16,%edx\n.L015schedule_mangle_both:\n\tmovdqa\t256(%ebp,%ecx,1),%xmm1\n.byte\t102,15,56,0,217\n\taddl\t$-16,%ecx\n\tandl\t$48,%ecx\n\tmovdqu\t%xmm3,(%edx)\n\tret\n.size\t_vpaes_schedule_mangle,.-_vpaes_schedule_mangle\n.globl\tvpaes_set_encrypt_key\n.type\tvpaes_set_encrypt_key,@function\n.align\t16\nvpaes_set_encrypt_key:\n.L_vpaes_set_encrypt_key_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tleal\t-56(%esp),%ebx\n\tmovl\t24(%esp),%eax\n\tandl\t$-16,%ebx\n\tmovl\t28(%esp),%edx\n\txchgl\t%esp,%ebx\n\tmovl\t%ebx,48(%esp)\n\tmovl\t%eax,%ebx\n\tshrl\t$5,%ebx\n\taddl\t$5,%ebx\n\tmovl\t%ebx,240(%edx)\n\tmovl\t$48,%ecx\n\tmovl\t$0,%edi\n\tleal\t.L_vpaes_consts+0x30-.L016pic_point,%ebp\n\tcall\t_vpaes_schedule_core\n.L016pic_point:\n\tmovl\t48(%esp),%esp\n\txorl\t%eax,%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_set_encrypt_key,.-.L_vpaes_set_encrypt_key_begin\n.globl\tvpaes_set_decrypt_key", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:14", "text": "xchgl\t%esp,%ebx\n\tmovl\t%ebx,48(%esp)\n\tmovl\t%eax,%ebx\n\tshrl\t$5,%ebx\n\taddl\t$5,%ebx\n\tmovl\t%ebx,240(%edx)\n\tmovl\t$48,%ecx\n\tmovl\t$0,%edi\n\tleal\t.L_vpaes_consts+0x30-.L016pic_point,%ebp\n\tcall\t_vpaes_schedule_core\n.L016pic_point:\n\tmovl\t48(%esp),%esp\n\txorl\t%eax,%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_set_encrypt_key,.-.L_vpaes_set_encrypt_key_begin\n.globl\tvpaes_set_decrypt_key\n.type\tvpaes_set_decrypt_key,@function\n.align\t16\nvpaes_set_decrypt_key:\n.L_vpaes_set_decrypt_key_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tleal\t-56(%esp),%ebx\n\tmovl\t24(%esp),%eax\n\tandl\t$-16,%ebx\n\tmovl\t28(%esp),%edx\n\txchgl\t%esp,%ebx\n\tmovl\t%ebx,48(%esp)\n\tmovl\t%eax,%ebx\n\tshrl\t$5,%ebx\n\taddl\t$5,%ebx\n\tmovl\t%ebx,240(%edx)\n\tshll\t$4,%ebx\n\tleal\t16(%edx,%ebx,1),%edx\n\tmovl\t$1,%edi\n\tmovl\t%eax,%ecx\n\tshrl\t$1,%ecx\n\tandl\t$32,%ecx\n\txorl\t$32,%ecx\n\tleal\t.L_vpaes_consts+0x30-.L017pic_point,%ebp\n\tcall\t_vpaes_schedule_core\n.L017pic_point:\n\tmovl\t48(%esp),%esp\n\txorl\t%eax,%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:15", "text": "movl\t%eax,%ebx\n\tshrl\t$5,%ebx\n\taddl\t$5,%ebx\n\tmovl\t%ebx,240(%edx)\n\tshll\t$4,%ebx\n\tleal\t16(%edx,%ebx,1),%edx\n\tmovl\t$1,%edi\n\tmovl\t%eax,%ecx\n\tshrl\t$1,%ecx\n\tandl\t$32,%ecx\n\txorl\t$32,%ecx\n\tleal\t.L_vpaes_consts+0x30-.L017pic_point,%ebp\n\tcall\t_vpaes_schedule_core\n.L017pic_point:\n\tmovl\t48(%esp),%esp\n\txorl\t%eax,%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_set_decrypt_key,.-.L_vpaes_set_decrypt_key_begin\n.globl\tvpaes_encrypt\n.type\tvpaes_encrypt,@function\n.align\t16\nvpaes_encrypt:\n.L_vpaes_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tleal\t.L_vpaes_consts+0x30-.L018pic_point,%ebp\n\tcall\t_vpaes_preheat\n.L018pic_point:\n\tmovl\t20(%esp),%esi\n\tleal\t-56(%esp),%ebx\n\tmovl\t24(%esp),%edi\n\tandl\t$-16,%ebx\n\tmovl\t28(%esp),%edx\n\txchgl\t%esp,%ebx\n\tmovl\t%ebx,48(%esp)\n\tmovdqu\t(%esi),%xmm0\n\tcall\t_vpaes_encrypt_core\n\tmovdqu\t%xmm0,(%edi)\n\tmovl\t48(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_encrypt,.-.L_vpaes_encrypt_begin\n.globl\tvpaes_decrypt\n.type\tvpaes_decrypt,@function\n.align\t16\nvpaes_decrypt:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:16", "text": "leal\t-56(%esp),%ebx\n\tmovl\t24(%esp),%edi\n\tandl\t$-16,%ebx\n\tmovl\t28(%esp),%edx\n\txchgl\t%esp,%ebx\n\tmovl\t%ebx,48(%esp)\n\tmovdqu\t(%esi),%xmm0\n\tcall\t_vpaes_encrypt_core\n\tmovdqu\t%xmm0,(%edi)\n\tmovl\t48(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_encrypt,.-.L_vpaes_encrypt_begin\n.globl\tvpaes_decrypt\n.type\tvpaes_decrypt,@function\n.align\t16\nvpaes_decrypt:\n.L_vpaes_decrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tleal\t.L_vpaes_consts+0x30-.L019pic_point,%ebp\n\tcall\t_vpaes_preheat\n.L019pic_point:\n\tmovl\t20(%esp),%esi\n\tleal\t-56(%esp),%ebx\n\tmovl\t24(%esp),%edi\n\tandl\t$-16,%ebx\n\tmovl\t28(%esp),%edx\n\txchgl\t%esp,%ebx\n\tmovl\t%ebx,48(%esp)\n\tmovdqu\t(%esi),%xmm0\n\tcall\t_vpaes_decrypt_core\n\tmovdqu\t%xmm0,(%edi)\n\tmovl\t48(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_decrypt,.-.L_vpaes_decrypt_begin\n.globl\tvpaes_cbc_encrypt\n.type\tvpaes_cbc_encrypt,@function\n.align\t16\nvpaes_cbc_encrypt:\n.L_vpaes_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:17", "text": "movdqu\t(%esi),%xmm0\n\tcall\t_vpaes_decrypt_core\n\tmovdqu\t%xmm0,(%edi)\n\tmovl\t48(%esp),%esp\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_decrypt,.-.L_vpaes_decrypt_begin\n.globl\tvpaes_cbc_encrypt\n.type\tvpaes_cbc_encrypt,@function\n.align\t16\nvpaes_cbc_encrypt:\n.L_vpaes_cbc_encrypt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%esi\n\tmovl\t24(%esp),%edi\n\tmovl\t28(%esp),%eax\n\tmovl\t32(%esp),%edx\n\tsubl\t$16,%eax\n\tjc\t.L020cbc_abort\n\tleal\t-56(%esp),%ebx\n\tmovl\t36(%esp),%ebp\n\tandl\t$-16,%ebx\n\tmovl\t40(%esp),%ecx\n\txchgl\t%esp,%ebx\n\tmovdqu\t(%ebp),%xmm1\n\tsubl\t%esi,%edi\n\tmovl\t%ebx,48(%esp)\n\tmovl\t%edi,(%esp)\n\tmovl\t%edx,4(%esp)\n\tmovl\t%ebp,8(%esp)\n\tmovl\t%eax,%edi\n\tleal\t.L_vpaes_consts+0x30-.L021pic_point,%ebp\n\tcall\t_vpaes_preheat\n.L021pic_point:\n\tcmpl\t$0,%ecx\n\tje\t.L022cbc_dec_loop\n\tjmp\t.L023cbc_enc_loop\n.align\t16\n.L023cbc_enc_loop:\n\tmovdqu\t(%esi),%xmm0\n\tpxor\t%xmm1,%xmm0\n\tcall\t_vpaes_encrypt_core\n\tmovl\t(%esp),%ebx\n\tmovl\t4(%esp),%edx\n\tmovdqa\t%xmm0,%xmm1\n\tmovdqu\t%xmm0,(%ebx,%esi,1)\n\tleal\t16(%esi),%esi\n\tsubl\t$16,%edi\n\tjnc\t.L023cbc_enc_loop", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:18", "text": "movl\t%ebp,8(%esp)\n\tmovl\t%eax,%edi\n\tleal\t.L_vpaes_consts+0x30-.L021pic_point,%ebp\n\tcall\t_vpaes_preheat\n.L021pic_point:\n\tcmpl\t$0,%ecx\n\tje\t.L022cbc_dec_loop\n\tjmp\t.L023cbc_enc_loop\n.align\t16\n.L023cbc_enc_loop:\n\tmovdqu\t(%esi),%xmm0\n\tpxor\t%xmm1,%xmm0\n\tcall\t_vpaes_encrypt_core\n\tmovl\t(%esp),%ebx\n\tmovl\t4(%esp),%edx\n\tmovdqa\t%xmm0,%xmm1\n\tmovdqu\t%xmm0,(%ebx,%esi,1)\n\tleal\t16(%esi),%esi\n\tsubl\t$16,%edi\n\tjnc\t.L023cbc_enc_loop\n\tjmp\t.L024cbc_done\n.align\t16\n.L022cbc_dec_loop:\n\tmovdqu\t(%esi),%xmm0\n\tmovdqa\t%xmm1,16(%esp)\n\tmovdqa\t%xmm0,32(%esp)\n\tcall\t_vpaes_decrypt_core\n\tmovl\t(%esp),%ebx\n\tmovl\t4(%esp),%edx\n\tpxor\t16(%esp),%xmm0\n\tmovdqa\t32(%esp),%xmm1\n\tmovdqu\t%xmm0,(%ebx,%esi,1)\n\tleal\t16(%esi),%esi\n\tsubl\t$16,%edi\n\tjnc\t.L022cbc_dec_loop\n.L024cbc_done:\n\tmovl\t8(%esp),%ebx\n\tmovl\t48(%esp),%esp\n\tmovdqu\t%xmm1,(%ebx)\n.L020cbc_abort:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_cbc_encrypt,.-.L_vpaes_cbc_encrypt_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S:19", "text": "popl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tvpaes_cbc_encrypt,.-.L_vpaes_cbc_encrypt_begin\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/vpaes-x86.S", "line_start": 721, "line_end": 743}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tbn_mul_add_words\n.type\tbn_mul_add_words,@function\n.align\t16\nbn_mul_add_words:\n.L_bn_mul_add_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\txorl\t%esi,%esi\n\tmovl\t20(%esp),%edi\n\tmovl\t28(%esp),%ecx\n\tmovl\t24(%esp),%ebx\n\tandl\t$4294967288,%ecx\n\tmovl\t32(%esp),%ebp\n\tpushl\t%ecx\n\tjz\t.L000maw_finish\n.L001maw_loop:\n\tmovl\t%ecx,(%esp)\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t4(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t8(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t12(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:2", "text": "movl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t8(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t12(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t16(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t20(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t24(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t28(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t28(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:3", "text": "movl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t24(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t28(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t28(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,28(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t(%esp),%ecx\n\taddl\t$32,%ebx\n\taddl\t$32,%edi\n\tsubl\t$8,%ecx\n\tjnz\t.L001maw_loop\n.L000maw_finish:\n\tmovl\t32(%esp),%ecx\n\tandl\t$7,%ecx\n\tjnz\t.L002maw_finish2\n\tjmp\t.L003maw_end\n.L002maw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t4(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t8(%ebx),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:4", "text": "addl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t4(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t8(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t12(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t16(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t20(%edi),%esi\n\tadcl\t$0,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:5", "text": "movl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t16(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t20(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tdecl\t%ecx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\tjz\t.L003maw_end\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ebp\n\taddl\t%esi,%eax\n\tmovl\t24(%edi),%esi\n\tadcl\t$0,%edx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n.L003maw_end:\n\tmovl\t%esi,%eax\n\tpopl\t%ecx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_mul_add_words,.-.L_bn_mul_add_words_begin\n.globl\tbn_mul_words\n.type\tbn_mul_words,@function\n.align\t16\nbn_mul_words:\n.L_bn_mul_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\txorl\t%esi,%esi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ebp\n\tmovl\t32(%esp),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:6", "text": "popl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_mul_add_words,.-.L_bn_mul_add_words_begin\n.globl\tbn_mul_words\n.type\tbn_mul_words,@function\n.align\t16\nbn_mul_words:\n.L_bn_mul_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\txorl\t%esi,%esi\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ebx\n\tmovl\t28(%esp),%ebp\n\tmovl\t32(%esp),%ecx\n\tandl\t$4294967288,%ebp\n\tjz\t.L004mw_finish\n.L005mw_loop:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:7", "text": "addl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n\n\tmovl\t28(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,28(%edi)\n\tmovl\t%edx,%esi\n\n\taddl\t$32,%ebx\n\taddl\t$32,%edi\n\tsubl\t$8,%ebp\n\tjz\t.L004mw_finish\n\tjmp\t.L005mw_loop\n.L004mw_finish:\n\tmovl\t28(%esp),%ebp\n\tandl\t$7,%ebp\n\tjnz\t.L006mw_finish2\n\tjmp\t.L007mw_end\n.L006mw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:8", "text": "addl\t$32,%ebx\n\taddl\t$32,%edi\n\tsubl\t$8,%ebp\n\tjz\t.L004mw_finish\n\tjmp\t.L005mw_loop\n.L004mw_finish:\n\tmovl\t28(%esp),%ebp\n\tandl\t$7,%ebp\n\tjnz\t.L006mw_finish2\n\tjmp\t.L007mw_end\n.L006mw_finish2:\n\n\tmovl\t(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t4(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,4(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t8(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,8(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t12(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:9", "text": "mull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,12(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t16(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,16(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t20(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,%esi\n\tdecl\t%ebp\n\tjz\t.L007mw_end\n\n\tmovl\t24(%ebx),%eax\n\tmull\t%ecx\n\taddl\t%esi,%eax\n\tadcl\t$0,%edx\n\tmovl\t%eax,24(%edi)\n\tmovl\t%edx,%esi\n.L007mw_end:\n\tmovl\t%esi,%eax\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_mul_words,.-.L_bn_mul_words_begin\n.globl\tbn_sqr_words\n.type\tbn_sqr_words,@function\n.align\t16\nbn_sqr_words:\n.L_bn_sqr_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%esi\n\tmovl\t24(%esp),%edi\n\tmovl\t28(%esp),%ebx\n\tandl\t$4294967288,%ebx\n\tjz\t.L008sw_finish\n.L009sw_loop:\n\n\tmovl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:10", "text": ".globl\tbn_sqr_words\n.type\tbn_sqr_words,@function\n.align\t16\nbn_sqr_words:\n.L_bn_sqr_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%esi\n\tmovl\t24(%esp),%edi\n\tmovl\t28(%esp),%ebx\n\tandl\t$4294967288,%ebx\n\tjz\t.L008sw_finish\n.L009sw_loop:\n\n\tmovl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)\n\tmovl\t%edx,4(%esi)\n\n\tmovl\t4(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,8(%esi)\n\tmovl\t%edx,12(%esi)\n\n\tmovl\t8(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,16(%esi)\n\tmovl\t%edx,20(%esi)\n\n\tmovl\t12(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,24(%esi)\n\tmovl\t%edx,28(%esi)\n\n\tmovl\t16(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,32(%esi)\n\tmovl\t%edx,36(%esi)\n\n\tmovl\t20(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,40(%esi)\n\tmovl\t%edx,44(%esi)\n\n\tmovl\t24(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,48(%esi)\n\tmovl\t%edx,52(%esi)\n\n\tmovl\t28(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,56(%esi)\n\tmovl\t%edx,60(%esi)\n\n\taddl\t$32,%edi\n\taddl\t$64,%esi\n\tsubl\t$8,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:11", "text": "movl\t%edx,36(%esi)\n\n\tmovl\t20(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,40(%esi)\n\tmovl\t%edx,44(%esi)\n\n\tmovl\t24(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,48(%esi)\n\tmovl\t%edx,52(%esi)\n\n\tmovl\t28(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,56(%esi)\n\tmovl\t%edx,60(%esi)\n\n\taddl\t$32,%edi\n\taddl\t$64,%esi\n\tsubl\t$8,%ebx\n\tjnz\t.L009sw_loop\n.L008sw_finish:\n\tmovl\t28(%esp),%ebx\n\tandl\t$7,%ebx\n\tjz\t.L010sw_end\n\n\tmovl\t(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,4(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t4(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,8(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,12(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t8(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,16(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,20(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t12(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,24(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,28(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t16(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,32(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,36(%esi)\n\tjz\t.L010sw_end", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:12", "text": "movl\t8(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,16(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,20(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t12(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,24(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,28(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t16(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,32(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,36(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t20(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,40(%esi)\n\tdecl\t%ebx\n\tmovl\t%edx,44(%esi)\n\tjz\t.L010sw_end\n\n\tmovl\t24(%edi),%eax\n\tmull\t%eax\n\tmovl\t%eax,48(%esi)\n\tmovl\t%edx,52(%esi)\n.L010sw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sqr_words,.-.L_bn_sqr_words_begin\n.globl\tbn_div_words\n.type\tbn_div_words,@function\n.align\t16\nbn_div_words:\n.L_bn_div_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edx\n\tmovl\t24(%esp),%eax\n\tmovl\t28(%esp),%ebx\n\tdivl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_div_words,.-.L_bn_div_words_begin\n.globl\tbn_add_words\n.type\tbn_add_words,@function", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:13", "text": ".type\tbn_div_words,@function\n.align\t16\nbn_div_words:\n.L_bn_div_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edx\n\tmovl\t24(%esp),%eax\n\tmovl\t28(%esp),%ebx\n\tdivl\t%ebx\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_div_words,.-.L_bn_div_words_begin\n.globl\tbn_add_words\n.type\tbn_add_words,@function\n.align\t16\nbn_add_words:\n.L_bn_add_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L011aw_finish\n.L012aw_loop:\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:14", "text": "movl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:15", "text": "movl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L012aw_loop\n.L011aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L013aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L013aw_end", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:16", "text": "movl\t(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,12(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:17", "text": "movl\t%ecx,12(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L013aw_end\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\taddl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\taddl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L013aw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_add_words,.-.L_bn_add_words_begin\n.globl\tbn_sub_words\n.type\tbn_sub_words,@function\n.align\t16\nbn_sub_words:\n.L_bn_sub_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L014aw_finish\n.L015aw_loop:\n\n\tmovl\t(%esi),%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:18", "text": ".globl\tbn_sub_words\n.type\tbn_sub_words,@function\n.align\t16\nbn_sub_words:\n.L_bn_sub_words_begin:\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\n\tmovl\t20(%esp),%ebx\n\tmovl\t24(%esp),%esi\n\tmovl\t28(%esp),%edi\n\tmovl\t32(%esp),%ebp\n\txorl\t%eax,%eax\n\tandl\t$4294967288,%ebp\n\tjz\t.L014aw_finish\n.L015aw_loop:\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,(%ebx)\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,4(%ebx)\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:19", "text": "movl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,8(%ebx)\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,12(%ebx)\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,16(%ebx)\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,20(%ebx)\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L015aw_loop\n.L014aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L016aw_end", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:20", "text": "movl\t%ecx,24(%ebx)\n\n\tmovl\t28(%esi),%ecx\n\tmovl\t28(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,28(%ebx)\n\n\taddl\t$32,%esi\n\taddl\t$32,%edi\n\taddl\t$32,%ebx\n\tsubl\t$8,%ebp\n\tjnz\t.L015aw_loop\n.L014aw_finish:\n\tmovl\t32(%esp),%ebp\n\tandl\t$7,%ebp\n\tjz\t.L016aw_end\n\n\tmovl\t(%esi),%ecx\n\tmovl\t(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t4(%esi),%ecx\n\tmovl\t4(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,4(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:21", "text": "movl\t%ecx,4(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t8(%esi),%ecx\n\tmovl\t8(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,8(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t12(%esi),%ecx\n\tmovl\t12(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,12(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t16(%esi),%ecx\n\tmovl\t16(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,16(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t20(%esi),%ecx\n\tmovl\t20(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L016aw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:22", "text": "adcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tdecl\t%ebp\n\tmovl\t%ecx,20(%ebx)\n\tjz\t.L016aw_end\n\n\tmovl\t24(%esi),%ecx\n\tmovl\t24(%edi),%edx\n\tsubl\t%eax,%ecx\n\tmovl\t$0,%eax\n\tadcl\t%eax,%eax\n\tsubl\t%edx,%ecx\n\tadcl\t$0,%eax\n\tmovl\t%ecx,24(%ebx)\n.L016aw_end:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tbn_sub_words,.-.L_bn_sub_words_begin\n.globl\tbn_mul_comba8\n.type\tbn_mul_comba8,@function\n.align\t16\nbn_mul_comba8:\n.L_bn_mul_comba8_begin:\n\tpushl\t%esi\n\tmovl\t12(%esp),%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\txorl\t%ebx,%ebx\n\tmovl\t(%esi),%eax\n\txorl\t%ecx,%ecx\n\tmovl\t(%edi),%edx\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%eax)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:23", "text": "mull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%eax)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%eax)\n\tmovl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:24", "text": "movl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%eax)\n\tmovl\t16(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:25", "text": "movl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%eax)\n\tmovl\t16(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t12(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:26", "text": "movl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%eax)\n\tmovl\t24(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:27", "text": "movl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%eax)\n\tmovl\t24(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:28", "text": "movl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:29", "text": "movl\t20(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,28(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:30", "text": "mull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,28(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:31", "text": "mull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,32(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:32", "text": "mull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,36(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:33", "text": "mull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t16(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,40(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:34", "text": "mull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t20(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,48(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:35", "text": "mull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t24(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,48(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t28(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,52(%eax)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,56(%eax)\n\n\n\tmovl\t%ebx,60(%eax)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba8,.-.L_bn_mul_comba8_begin\n.globl\tbn_mul_comba4\n.type\tbn_mul_comba4,@function\n.align\t16\nbn_mul_comba4:\n.L_bn_mul_comba4_begin:\n\tpushl\t%esi\n\tmovl\t12(%esp),%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\txorl\t%ebx,%ebx\n\tmovl\t(%esi),%eax\n\txorl\t%ecx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:36", "text": "popl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba8,.-.L_bn_mul_comba8_begin\n.globl\tbn_mul_comba4\n.type\tbn_mul_comba4,@function\n.align\t16\nbn_mul_comba4:\n.L_bn_mul_comba4_begin:\n\tpushl\t%esi\n\tmovl\t12(%esp),%esi\n\tpushl\t%edi\n\tmovl\t20(%esp),%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\txorl\t%ebx,%ebx\n\tmovl\t(%esi),%eax\n\txorl\t%ecx,%ecx\n\tmovl\t(%edi),%edx\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%eax)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%eax)\n\tmovl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:37", "text": "movl\t4(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%eax)\n\tmovl\t8(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:38", "text": "mull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t(%esi),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tmovl\t4(%edi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:39", "text": "mull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t4(%esi),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%ecx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebp\n\tmovl\t8(%edi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%ebp\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ebx\n\tmovl\t12(%edi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%eax)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%eax)\n\n\n\tmovl\t%ecx,28(%eax)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba4,.-.L_bn_mul_comba4_begin\n.globl\tbn_sqr_comba8\n.type\tbn_sqr_comba8,@function\n.align\t16\nbn_sqr_comba8:\n.L_bn_sqr_comba8_begin:\n\tpushl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:40", "text": "addl\t%eax,%ebx\n\tmovl\t20(%esp),%eax\n\tadcl\t%edx,%ecx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%eax)\n\n\n\tmovl\t%ecx,28(%eax)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_mul_comba4,.-.L_bn_mul_comba4_begin\n.globl\tbn_sqr_comba8\n.type\tbn_sqr_comba8,@function\n.align\t16\nbn_sqr_comba8:\n.L_bn_sqr_comba8_begin:\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\txorl\t%ebx,%ebx\n\txorl\t%ecx,%ecx\n\tmovl\t(%esi),%eax\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%edi)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:41", "text": "xorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t$0,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%edi)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ebx,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:42", "text": "addl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\n\tmull\t%eax\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%edi)\n\tmovl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t4(%esi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:43", "text": "addl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%edi)\n\tmovl\t20(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:44", "text": "xorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:45", "text": "xorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,28(%edi)\n\tmovl\t4(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:46", "text": "movl\t28(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,28(%edi)\n\tmovl\t4(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t8(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t16(%esi),%eax\n\tadcl\t$0,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t8(%esi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,32(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:47", "text": "movl\t8(%esi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,32(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t12(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t16(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,36(%edi)\n\tmovl\t12(%esi),%edx\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t16(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:48", "text": "xorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t16(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t20(%esi),%eax\n\tadcl\t$0,%ebx\n\n\tmull\t%eax\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t16(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,40(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t20(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%edi)\n\tmovl\t20(%esi),%edx\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:49", "text": "movl\t20(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,44(%edi)\n\tmovl\t20(%esi),%edx\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%eax\n\tadcl\t$0,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t24(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,48(%edi)\n\tmovl\t28(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,52(%edi)\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,56(%edi)\n\n\tmovl\t%ebx,60(%edi)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:50", "text": "addl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t28(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,52(%edi)\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,56(%edi)\n\n\tmovl\t%ebx,60(%edi)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_sqr_comba8,.-.L_bn_sqr_comba8_begin\n.globl\tbn_sqr_comba4\n.type\tbn_sqr_comba4,@function\n.align\t16\nbn_sqr_comba4:\n.L_bn_sqr_comba4_begin:\n\tpushl\t%esi\n\tpushl\t%edi\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%esi\n\txorl\t%ebx,%ebx\n\txorl\t%ecx,%ecx\n\tmovl\t(%esi),%eax\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%edi)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:51", "text": "addl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,(%edi)\n\tmovl\t4(%esi),%eax\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,4(%edi)\n\tmovl\t(%esi),%edx\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t4(%esi),%eax\n\tadcl\t$0,%ecx\n\n\tmull\t%eax\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t(%esi),%edx\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,8(%edi)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:52", "text": "xorl\t%ebp,%ebp\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t4(%esi),%edx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebp\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,12(%edi)\n\tmovl\t4(%esi),%edx\n\n\n\txorl\t%ebx,%ebx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ebx\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%eax\n\tadcl\t$0,%ebx\n\n\tmull\t%eax\n\taddl\t%eax,%ecx\n\tadcl\t%edx,%ebp\n\tmovl\t8(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%edi)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%edi)\n\n\n\txorl\t%ebp,%ebp", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S:53", "text": "movl\t8(%esi),%edx\n\tadcl\t$0,%ebx\n\tmovl\t%ecx,16(%edi)\n\tmovl\t12(%esi),%eax\n\n\n\txorl\t%ecx,%ecx\n\n\tmull\t%edx\n\taddl\t%eax,%eax\n\tadcl\t%edx,%edx\n\tadcl\t$0,%ecx\n\taddl\t%eax,%ebp\n\tadcl\t%edx,%ebx\n\tmovl\t12(%esi),%eax\n\tadcl\t$0,%ecx\n\tmovl\t%ebp,20(%edi)\n\n\n\txorl\t%ebp,%ebp\n\n\tmull\t%eax\n\taddl\t%eax,%ebx\n\tadcl\t%edx,%ecx\n\tadcl\t$0,%ebp\n\tmovl\t%ebx,24(%edi)\n\n\tmovl\t%ecx,28(%edi)\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tbn_sqr_comba4,.-.L_bn_sqr_comba4_begin", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86.S", "line_start": 2081, "line_end": 2114}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:1", "text": "#include <machine/asm.h>\n.text\n.globl\tOPENSSL_ia32_cpuid\n.type\tOPENSSL_ia32_cpuid,@function\n.align\t16\nOPENSSL_ia32_cpuid:\n.L_OPENSSL_ia32_cpuid_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\txorl\t%edx,%edx\n\tpushfl\n\tpopl\t%eax\n\tmovl\t%eax,%ecx\n\txorl\t$2097152,%eax\n\tpushl\t%eax\n\tpopfl\n\tpushfl\n\tpopl\t%eax\n\txorl\t%eax,%ecx\n\txorl\t%eax,%eax\n\tmovl\t20(%esp),%esi\n\tmovl\t%eax,8(%esi)\n\tbtl\t$21,%ecx\n\tjnc\t.L000nocpuid\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,%edi\n\txorl\t%eax,%eax\n\tcmpl\t$1970169159,%ebx\n\tsetne\t%al\n\tmovl\t%eax,%ebp\n\tcmpl\t$1231384169,%edx\n\tsetne\t%al\n\torl\t%eax,%ebp\n\tcmpl\t$1818588270,%ecx\n\tsetne\t%al\n\torl\t%eax,%ebp\n\tjz\t.L001intel\n\tcmpl\t$1752462657,%ebx\n\tsetne\t%al\n\tmovl\t%eax,%esi\n\tcmpl\t$1769238117,%edx\n\tsetne\t%al\n\torl\t%eax,%esi\n\tcmpl\t$1145913699,%ecx\n\tsetne\t%al\n\torl\t%eax,%esi\n\tjnz\t.L001intel\n\tmovl\t$2147483648,%eax\n\t.byte\t0x0f,0xa2\n\tcmpl\t$2147483649,%eax\n\tjb\t.L001intel\n\tmovl\t%eax,%esi\n\tmovl\t$2147483649,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:2", "text": "cmpl\t$1818588270,%ecx\n\tsetne\t%al\n\torl\t%eax,%ebp\n\tjz\t.L001intel\n\tcmpl\t$1752462657,%ebx\n\tsetne\t%al\n\tmovl\t%eax,%esi\n\tcmpl\t$1769238117,%edx\n\tsetne\t%al\n\torl\t%eax,%esi\n\tcmpl\t$1145913699,%ecx\n\tsetne\t%al\n\torl\t%eax,%esi\n\tjnz\t.L001intel\n\tmovl\t$2147483648,%eax\n\t.byte\t0x0f,0xa2\n\tcmpl\t$2147483649,%eax\n\tjb\t.L001intel\n\tmovl\t%eax,%esi\n\tmovl\t$2147483649,%eax\n\t.byte\t0x0f,0xa2\n\torl\t%ecx,%ebp\n\tandl\t$2049,%ebp\n\tcmpl\t$2147483656,%esi\n\tjb\t.L001intel\n\tmovl\t$2147483656,%eax\n\t.byte\t0x0f,0xa2\n\tmovzbl\t%cl,%esi\n\tincl\t%esi\n\tmovl\t$1,%eax\n\txorl\t%ecx,%ecx\n\t.byte\t0x0f,0xa2\n\tbtl\t$28,%edx\n\tjnc\t.L002generic\n\tshrl\t$16,%ebx\n\tandl\t$255,%ebx\n\tcmpl\t%esi,%ebx\n\tja\t.L002generic\n\tandl\t$4026531839,%edx\n\tjmp\t.L002generic\n.L001intel:\n\tcmpl\t$4,%edi\n\tmovl\t$-1,%esi\n\tjb\t.L003nocacheinfo\n\tmovl\t$4,%eax\n\tmovl\t$0,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,%esi\n\tshrl\t$14,%esi\n\tandl\t$4095,%esi\n.L003nocacheinfo:\n\tmovl\t$1,%eax\n\txorl\t%ecx,%ecx\n\t.byte\t0x0f,0xa2\n\tandl\t$3220176895,%edx\n\tcmpl\t$0,%ebp\n\tjne\t.L004notintel\n\torl\t$1073741824,%edx\n\tandb\t$15,%ah\n\tcmpb\t$15,%ah", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:3", "text": ".L001intel:\n\tcmpl\t$4,%edi\n\tmovl\t$-1,%esi\n\tjb\t.L003nocacheinfo\n\tmovl\t$4,%eax\n\tmovl\t$0,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,%esi\n\tshrl\t$14,%esi\n\tandl\t$4095,%esi\n.L003nocacheinfo:\n\tmovl\t$1,%eax\n\txorl\t%ecx,%ecx\n\t.byte\t0x0f,0xa2\n\tandl\t$3220176895,%edx\n\tcmpl\t$0,%ebp\n\tjne\t.L004notintel\n\torl\t$1073741824,%edx\n\tandb\t$15,%ah\n\tcmpb\t$15,%ah\n\tjne\t.L004notintel\n\torl\t$1048576,%edx\n.L004notintel:\n\tbtl\t$28,%edx\n\tjnc\t.L002generic\n\tandl\t$4026531839,%edx\n\tcmpl\t$0,%esi\n\tje\t.L002generic\n\torl\t$268435456,%edx\n\tshrl\t$16,%ebx\n\tcmpb\t$1,%bl\n\tja\t.L002generic\n\tandl\t$4026531839,%edx\n.L002generic:\n\tandl\t$2048,%ebp\n\tandl\t$4294965247,%ecx\n\tmovl\t%edx,%esi\n\torl\t%ecx,%ebp\n\tcmpl\t$7,%edi\n\tmovl\t20(%esp),%edi\n\tjb\t.L005no_extended_info\n\tmovl\t$7,%eax\n\txorl\t%ecx,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%ebx,8(%edi)\n\tmovl\t%ecx,12(%edi)\n\tmovl\t%edx,16(%edi)\n\tcmpl\t$1,%eax\n\tjb\t.L005no_extended_info\n\tmovl\t$7,%eax\n\tmovl\t$1,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,24(%edi)\n\tmovl\t%ebx,28(%edi)\n\tmovl\t%ecx,32(%edi)\n\tandl\t$524288,%edx\n\tcmpl\t$0,%edx\n\tje\t.L005no_extended_info\n\tmovl\t$36,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:4", "text": "jb\t.L005no_extended_info\n\tmovl\t$7,%eax\n\txorl\t%ecx,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%ebx,8(%edi)\n\tmovl\t%ecx,12(%edi)\n\tmovl\t%edx,16(%edi)\n\tcmpl\t$1,%eax\n\tjb\t.L005no_extended_info\n\tmovl\t$7,%eax\n\tmovl\t$1,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%eax,20(%edi)\n\tmovl\t%edx,24(%edi)\n\tmovl\t%ebx,28(%edi)\n\tmovl\t%ecx,32(%edi)\n\tandl\t$524288,%edx\n\tcmpl\t$0,%edx\n\tje\t.L005no_extended_info\n\tmovl\t$36,%eax\n\tmovl\t$0,%ecx\n\t.byte\t0x0f,0xa2\n\tmovl\t%ebx,36(%edi)\n.L005no_extended_info:\n\tbtl\t$27,%ebp\n\tjnc\t.L006clear_avx\n\txorl\t%ecx,%ecx\n.byte\t15,1,208\n\tandl\t$6,%eax\n\tcmpl\t$6,%eax\n\tje\t.L007done\n\tcmpl\t$2,%eax\n\tje\t.L006clear_avx\n.L008clear_xmm:\n\tandl\t$4261412861,%ebp\n\tandl\t$4278190079,%esi\n.L006clear_avx:\n\tandl\t$4026525695,%ebp\n\tandl\t$4286578687,20(%edi)\n\tandl\t$4294967263,8(%edi)\n.L007done:\n\tmovl\t%esi,%eax\n\tmovl\t%ebp,%edx\n.L000nocpuid:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tOPENSSL_ia32_cpuid,.-.L_OPENSSL_ia32_cpuid_begin\n.globl\tOPENSSL_rdtsc\n.type\tOPENSSL_rdtsc,@function\n.align\t16\nOPENSSL_rdtsc:\n.L_OPENSSL_rdtsc_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:5", "text": ".L007done:\n\tmovl\t%esi,%eax\n\tmovl\t%ebp,%edx\n.L000nocpuid:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tOPENSSL_ia32_cpuid,.-.L_OPENSSL_ia32_cpuid_begin\n.globl\tOPENSSL_rdtsc\n.type\tOPENSSL_rdtsc,@function\n.align\t16\nOPENSSL_rdtsc:\n.L_OPENSSL_rdtsc_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\tcall\t.L009PIC_me_up\n.L009PIC_me_up:\n\tpopl\t%ecx\n\tleal\tOPENSSL_ia32cap_P-.L009PIC_me_up(%ecx),%ecx\n\tbtl\t$4,(%ecx)\n\tjnc\t.L010notsc\n\t.byte\t0x0f,0x31\n.L010notsc:\n\tret\n.size\tOPENSSL_rdtsc,.-.L_OPENSSL_rdtsc_begin\n.globl\tOPENSSL_instrument_halt\n.type\tOPENSSL_instrument_halt,@function\n.align\t16\nOPENSSL_instrument_halt:\n.L_OPENSSL_instrument_halt_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tcall\t.L011PIC_me_up\n.L011PIC_me_up:\n\tpopl\t%ecx\n\tleal\tOPENSSL_ia32cap_P-.L011PIC_me_up(%ecx),%ecx\n\tbtl\t$4,(%ecx)\n\tjnc\t.L012nohalt\n.long\t2421723150\n\tandl\t$3,%eax\n\tjnz\t.L012nohalt\n\tpushfl\n\tpopl\t%eax\n\tbtl\t$9,%eax\n\tjnc\t.L012nohalt\n\t.byte\t0x0f,0x31\n\tpushl\t%edx\n\tpushl\t%eax\n\thlt\n\t.byte\t0x0f,0x31", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:6", "text": "#endif\n\n\tcall\t.L011PIC_me_up\n.L011PIC_me_up:\n\tpopl\t%ecx\n\tleal\tOPENSSL_ia32cap_P-.L011PIC_me_up(%ecx),%ecx\n\tbtl\t$4,(%ecx)\n\tjnc\t.L012nohalt\n.long\t2421723150\n\tandl\t$3,%eax\n\tjnz\t.L012nohalt\n\tpushfl\n\tpopl\t%eax\n\tbtl\t$9,%eax\n\tjnc\t.L012nohalt\n\t.byte\t0x0f,0x31\n\tpushl\t%edx\n\tpushl\t%eax\n\thlt\n\t.byte\t0x0f,0x31\n\tsubl\t(%esp),%eax\n\tsbbl\t4(%esp),%edx\n\taddl\t$8,%esp\n\tret\n.L012nohalt:\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\tret\n.size\tOPENSSL_instrument_halt,.-.L_OPENSSL_instrument_halt_begin\n.globl\tOPENSSL_far_spin\n.type\tOPENSSL_far_spin,@function\n.align\t16\nOPENSSL_far_spin:\n.L_OPENSSL_far_spin_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushfl\n\tpopl\t%eax\n\tbtl\t$9,%eax\n\tjnc\t.L013nospin\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%ecx\n.long\t2430111262\n\txorl\t%eax,%eax\n\tmovl\t(%ecx),%edx\n\tjmp\t.L014spin\n.align\t16\n.L014spin:\n\tincl\t%eax\n\tcmpl\t(%ecx),%edx\n\tje\t.L014spin\n.long\t529567888\n\tret\n.L013nospin:\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\tret", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:7", "text": "popl\t%eax\n\tbtl\t$9,%eax\n\tjnc\t.L013nospin\n\tmovl\t4(%esp),%eax\n\tmovl\t8(%esp),%ecx\n.long\t2430111262\n\txorl\t%eax,%eax\n\tmovl\t(%ecx),%edx\n\tjmp\t.L014spin\n.align\t16\n.L014spin:\n\tincl\t%eax\n\tcmpl\t(%ecx),%edx\n\tje\t.L014spin\n.long\t529567888\n\tret\n.L013nospin:\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\tret\n.size\tOPENSSL_far_spin,.-.L_OPENSSL_far_spin_begin\n.globl\tOPENSSL_wipe_cpu\n.type\tOPENSSL_wipe_cpu,@function\n.align\t16\nOPENSSL_wipe_cpu:\n.L_OPENSSL_wipe_cpu_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\tcall\t.L015PIC_me_up\n.L015PIC_me_up:\n\tpopl\t%ecx\n\tleal\tOPENSSL_ia32cap_P-.L015PIC_me_up(%ecx),%ecx\n\tmovl\t(%ecx),%ecx\n\tbtl\t$1,(%ecx)\n\tjnc\t.L016no_x87\n\tandl\t$83886080,%ecx\n\tcmpl\t$83886080,%ecx\n\tjne\t.L017no_sse2\n\tpxor\t%xmm0,%xmm0\n\tpxor\t%xmm1,%xmm1\n\tpxor\t%xmm2,%xmm2\n\tpxor\t%xmm3,%xmm3\n\tpxor\t%xmm4,%xmm4\n\tpxor\t%xmm5,%xmm5\n\tpxor\t%xmm6,%xmm6\n\tpxor\t%xmm7,%xmm7\n.L017no_sse2:\n.long\t4007259865,4007259865,4007259865,4007259865,2430851995\n.L016no_x87:\n\tleal\t4(%esp),%eax\n\tret\n.size\tOPENSSL_wipe_cpu,.-.L_OPENSSL_wipe_cpu_begin\n.globl\tOPENSSL_atomic_add\n.type\tOPENSSL_atomic_add,@function\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:8", "text": "andl\t$83886080,%ecx\n\tcmpl\t$83886080,%ecx\n\tjne\t.L017no_sse2\n\tpxor\t%xmm0,%xmm0\n\tpxor\t%xmm1,%xmm1\n\tpxor\t%xmm2,%xmm2\n\tpxor\t%xmm3,%xmm3\n\tpxor\t%xmm4,%xmm4\n\tpxor\t%xmm5,%xmm5\n\tpxor\t%xmm6,%xmm6\n\tpxor\t%xmm7,%xmm7\n.L017no_sse2:\n.long\t4007259865,4007259865,4007259865,4007259865,2430851995\n.L016no_x87:\n\tleal\t4(%esp),%eax\n\tret\n.size\tOPENSSL_wipe_cpu,.-.L_OPENSSL_wipe_cpu_begin\n.globl\tOPENSSL_atomic_add\n.type\tOPENSSL_atomic_add,@function\n.align\t16\nOPENSSL_atomic_add:\n.L_OPENSSL_atomic_add_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%ecx\n\tpushl\t%ebx\n\tnop\n\tmovl\t(%edx),%eax\n.L018spin:\n\tleal\t(%eax,%ecx,1),%ebx\n\tnop\n.long\t447811568\n\tjne\t.L018spin\n\tmovl\t%ebx,%eax\n\tpopl\t%ebx\n\tret\n.size\tOPENSSL_atomic_add,.-.L_OPENSSL_atomic_add_begin\n.globl\tOPENSSL_cleanse\n.type\tOPENSSL_cleanse,@function\n.align\t16\nOPENSSL_cleanse:\n.L_OPENSSL_cleanse_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%ecx\n\txorl\t%eax,%eax\n\tcmpl\t$7,%ecx\n\tjae\t.L019lot\n\tcmpl\t$0,%ecx\n\tje\t.L020ret\n.L021little:\n\tmovb\t%al,(%edx)", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:9", "text": ".size\tOPENSSL_atomic_add,.-.L_OPENSSL_atomic_add_begin\n.globl\tOPENSSL_cleanse\n.type\tOPENSSL_cleanse,@function\n.align\t16\nOPENSSL_cleanse:\n.L_OPENSSL_cleanse_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tmovl\t4(%esp),%edx\n\tmovl\t8(%esp),%ecx\n\txorl\t%eax,%eax\n\tcmpl\t$7,%ecx\n\tjae\t.L019lot\n\tcmpl\t$0,%ecx\n\tje\t.L020ret\n.L021little:\n\tmovb\t%al,(%edx)\n\tsubl\t$1,%ecx\n\tleal\t1(%edx),%edx\n\tjnz\t.L021little\n.L020ret:\n\tret\n.align\t16\n.L019lot:\n\ttestl\t$3,%edx\n\tjz\t.L022aligned\n\tmovb\t%al,(%edx)\n\tleal\t-1(%ecx),%ecx\n\tleal\t1(%edx),%edx\n\tjmp\t.L019lot\n.L022aligned:\n\tmovl\t%eax,(%edx)\n\tleal\t-4(%ecx),%ecx\n\ttestl\t$-4,%ecx\n\tleal\t4(%edx),%edx\n\tjnz\t.L022aligned\n\tcmpl\t$0,%ecx\n\tjne\t.L021little\n\tret\n.size\tOPENSSL_cleanse,.-.L_OPENSSL_cleanse_begin\n.globl\tCRYPTO_memcmp\n.type\tCRYPTO_memcmp,@function\n.align\t16\nCRYPTO_memcmp:\n.L_CRYPTO_memcmp_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp),%esi\n\tmovl\t16(%esp),%edi\n\tmovl\t20(%esp),%ecx\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:10", "text": "jne\t.L021little\n\tret\n.size\tOPENSSL_cleanse,.-.L_OPENSSL_cleanse_begin\n.globl\tCRYPTO_memcmp\n.type\tCRYPTO_memcmp,@function\n.align\t16\nCRYPTO_memcmp:\n.L_CRYPTO_memcmp_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t12(%esp),%esi\n\tmovl\t16(%esp),%edi\n\tmovl\t20(%esp),%ecx\n\txorl\t%eax,%eax\n\txorl\t%edx,%edx\n\tcmpl\t$0,%ecx\n\tje\t.L023no_data\n.L024loop:\n\tmovb\t(%esi),%dl\n\tleal\t1(%esi),%esi\n\txorb\t(%edi),%dl\n\tleal\t1(%edi),%edi\n\torb\t%dl,%al\n\tdecl\t%ecx\n\tjnz\t.L024loop\n\tnegl\t%eax\n\tshrl\t$31,%eax\n.L023no_data:\n\tpopl\t%edi\n\tpopl\t%esi\n\tret\n.size\tCRYPTO_memcmp,.-.L_CRYPTO_memcmp_begin\n.globl\tOPENSSL_instrument_bus\n.type\tOPENSSL_instrument_bus,@function\n.align\t16\nOPENSSL_instrument_bus:\n.L_OPENSSL_instrument_bus_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t$0,%eax\n\tcall\t.L025PIC_me_up\n.L025PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L025PIC_me_up(%edx),%edx\n\tbtl\t$4,(%edx)\n\tjnc\t.L026nogo\n\tbtl\t$19,(%edx)\n\tjnc\t.L026nogo", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:11", "text": "OPENSSL_instrument_bus:\n.L_OPENSSL_instrument_bus_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t$0,%eax\n\tcall\t.L025PIC_me_up\n.L025PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L025PIC_me_up(%edx),%edx\n\tbtl\t$4,(%edx)\n\tjnc\t.L026nogo\n\tbtl\t$19,(%edx)\n\tjnc\t.L026nogo\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ecx\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%esi\n\tmovl\t$0,%ebx\n\tclflush\t(%edi)\n.byte\t240\n\taddl\t%ebx,(%edi)\n\tjmp\t.L027loop\n.align\t16\n.L027loop:\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%edx\n\tsubl\t%esi,%eax\n\tmovl\t%edx,%esi\n\tmovl\t%eax,%ebx\n\tclflush\t(%edi)\n.byte\t240\n\taddl\t%eax,(%edi)\n\tleal\t4(%edi),%edi\n\tsubl\t$1,%ecx\n\tjnz\t.L027loop\n\tmovl\t24(%esp),%eax\n.L026nogo:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tOPENSSL_instrument_bus,.-.L_OPENSSL_instrument_bus_begin\n.globl\tOPENSSL_instrument_bus2\n.type\tOPENSSL_instrument_bus2,@function\n.align\t16\nOPENSSL_instrument_bus2:\n.L_OPENSSL_instrument_bus2_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:12", "text": "subl\t$1,%ecx\n\tjnz\t.L027loop\n\tmovl\t24(%esp),%eax\n.L026nogo:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tOPENSSL_instrument_bus,.-.L_OPENSSL_instrument_bus_begin\n.globl\tOPENSSL_instrument_bus2\n.type\tOPENSSL_instrument_bus2,@function\n.align\t16\nOPENSSL_instrument_bus2:\n.L_OPENSSL_instrument_bus2_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%ebp\n\tpushl\t%ebx\n\tpushl\t%esi\n\tpushl\t%edi\n\tmovl\t$0,%eax\n\tcall\t.L028PIC_me_up\n.L028PIC_me_up:\n\tpopl\t%edx\n\tleal\tOPENSSL_ia32cap_P-.L028PIC_me_up(%edx),%edx\n\tbtl\t$4,(%edx)\n\tjnc\t.L029nogo\n\tbtl\t$19,(%edx)\n\tjnc\t.L029nogo\n\tmovl\t20(%esp),%edi\n\tmovl\t24(%esp),%ecx\n\tmovl\t28(%esp),%ebp\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%esi\n\tmovl\t$0,%ebx\n\tclflush\t(%edi)\n.byte\t240\n\taddl\t%ebx,(%edi)\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%edx\n\tsubl\t%esi,%eax\n\tmovl\t%edx,%esi\n\tmovl\t%eax,%ebx\n\tjmp\t.L030loop2\n.align\t16\n.L030loop2:\n\tclflush\t(%edi)\n.byte\t240\n\taddl\t%eax,(%edi)\n\tsubl\t$1,%ebp\n\tjz\t.L031done2\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%edx\n\tsubl\t%esi,%eax\n\tmovl\t%edx,%esi\n\tcmpl\t%ebx,%eax", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:13", "text": ".byte\t240\n\taddl\t%ebx,(%edi)\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%edx\n\tsubl\t%esi,%eax\n\tmovl\t%edx,%esi\n\tmovl\t%eax,%ebx\n\tjmp\t.L030loop2\n.align\t16\n.L030loop2:\n\tclflush\t(%edi)\n.byte\t240\n\taddl\t%eax,(%edi)\n\tsubl\t$1,%ebp\n\tjz\t.L031done2\n\t.byte\t0x0f,0x31\n\tmovl\t%eax,%edx\n\tsubl\t%esi,%eax\n\tmovl\t%edx,%esi\n\tcmpl\t%ebx,%eax\n\tmovl\t%eax,%ebx\n\tmovl\t$0,%edx\n\tsetne\t%dl\n\tsubl\t%edx,%ecx\n\tleal\t(%edi,%edx,4),%edi\n\tjnz\t.L030loop2\n.L031done2:\n\tmovl\t24(%esp),%eax\n\tsubl\t%ecx,%eax\n.L029nogo:\n\tpopl\t%edi\n\tpopl\t%esi\n\tpopl\t%ebx\n\tpopl\t%ebp\n\tret\n.size\tOPENSSL_instrument_bus2,.-.L_OPENSSL_instrument_bus2_begin\n.globl\tOPENSSL_ia32_rdrand_bytes\n.type\tOPENSSL_ia32_rdrand_bytes,@function\n.align\t16\nOPENSSL_ia32_rdrand_bytes:\n.L_OPENSSL_ia32_rdrand_bytes_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%ebx\n\txorl\t%eax,%eax\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%ebx\n\tcmpl\t$0,%ebx\n\tje\t.L032done\n\tmovl\t$8,%ecx\n.L033loop:\n.byte\t15,199,242\n\tjc\t.L034break\n\tloop\t.L033loop\n\tjmp\t.L032done\n.align\t16", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:14", "text": ".L_OPENSSL_ia32_rdrand_bytes_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%ebx\n\txorl\t%eax,%eax\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%ebx\n\tcmpl\t$0,%ebx\n\tje\t.L032done\n\tmovl\t$8,%ecx\n.L033loop:\n.byte\t15,199,242\n\tjc\t.L034break\n\tloop\t.L033loop\n\tjmp\t.L032done\n.align\t16\n.L034break:\n\tcmpl\t$4,%ebx\n\tjb\t.L035tail\n\tmovl\t%edx,(%edi)\n\tleal\t4(%edi),%edi\n\taddl\t$4,%eax\n\tsubl\t$4,%ebx\n\tjz\t.L032done\n\tmovl\t$8,%ecx\n\tjmp\t.L033loop\n.align\t16\n.L035tail:\n\tmovb\t%dl,(%edi)\n\tleal\t1(%edi),%edi\n\tincl\t%eax\n\tshrl\t$8,%edx\n\tdecl\t%ebx\n\tjnz\t.L035tail\n.L032done:\n\txorl\t%edx,%edx\n\tpopl\t%ebx\n\tpopl\t%edi\n\tret\n.size\tOPENSSL_ia32_rdrand_bytes,.-.L_OPENSSL_ia32_rdrand_bytes_begin\n.globl\tOPENSSL_ia32_rdseed_bytes\n.type\tOPENSSL_ia32_rdseed_bytes,@function\n.align\t16\nOPENSSL_ia32_rdseed_bytes:\n.L_OPENSSL_ia32_rdseed_bytes_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%ebx\n\txorl\t%eax,%eax\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%ebx\n\tcmpl\t$0,%ebx", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:15", "text": "popl\t%ebx\n\tpopl\t%edi\n\tret\n.size\tOPENSSL_ia32_rdrand_bytes,.-.L_OPENSSL_ia32_rdrand_bytes_begin\n.globl\tOPENSSL_ia32_rdseed_bytes\n.type\tOPENSSL_ia32_rdseed_bytes,@function\n.align\t16\nOPENSSL_ia32_rdseed_bytes:\n.L_OPENSSL_ia32_rdseed_bytes_begin:\n\t#ifdef __CET__\n\n.byte\t243,15,30,251\n\t#endif\n\n\tpushl\t%edi\n\tpushl\t%ebx\n\txorl\t%eax,%eax\n\tmovl\t12(%esp),%edi\n\tmovl\t16(%esp),%ebx\n\tcmpl\t$0,%ebx\n\tje\t.L036done\n\tmovl\t$8,%ecx\n.L037loop:\n.byte\t15,199,250\n\tjc\t.L038break\n\tloop\t.L037loop\n\tjmp\t.L036done\n.align\t16\n.L038break:\n\tcmpl\t$4,%ebx\n\tjb\t.L039tail\n\tmovl\t%edx,(%edi)\n\tleal\t4(%edi),%edi\n\taddl\t$4,%eax\n\tsubl\t$4,%ebx\n\tjz\t.L036done\n\tmovl\t$8,%ecx\n\tjmp\t.L037loop\n.align\t16\n.L039tail:\n\tmovb\t%dl,(%edi)\n\tleal\t1(%edi),%edi\n\tincl\t%eax\n\tshrl\t$8,%edx\n\tdecl\t%ebx\n\tjnz\t.L039tail\n.L036done:\n\txorl\t%edx,%edx\n\tpopl\t%ebx\n\tpopl\t%edi\n\tret\n.size\tOPENSSL_ia32_rdseed_bytes,.-.L_OPENSSL_ia32_rdseed_bytes_begin\n.hidden\tOPENSSL_cpuid_setup\n.hidden\tOPENSSL_ia32cap_P\n.comm\tOPENSSL_ia32cap_P,40,4\n.section\t.init\n\tPIC_PROLOGUE\n\tcall\tPIC_PLT(OPENSSL_cpuid_setup)\n\tPIC_EPILOGUE", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S:16", "text": "movb\t%dl,(%edi)\n\tleal\t1(%edi),%edi\n\tincl\t%eax\n\tshrl\t$8,%edx\n\tdecl\t%ebx\n\tjnz\t.L039tail\n.L036done:\n\txorl\t%edx,%edx\n\tpopl\t%ebx\n\tpopl\t%edi\n\tret\n.size\tOPENSSL_ia32_rdseed_bytes,.-.L_OPENSSL_ia32_rdseed_bytes_begin\n.hidden\tOPENSSL_cpuid_setup\n.hidden\tOPENSSL_ia32cap_P\n.comm\tOPENSSL_ia32cap_P,40,4\n.section\t.init\n\tPIC_PROLOGUE\n\tcall\tPIC_PLT(OPENSSL_cpuid_setup)\n\tPIC_EPILOGUE\n\n\t.section \".note.gnu.property\", \"a\"\n\t.p2align 2\n\t.long 1f - 0f\n\t.long 4f - 1f\n\t.long 5\n0:\n\t.asciz \"GNU\"\n1:\n\t.p2align 2\n\t.long 0xc0000002\n\t.long 3f - 2f\n2:\n\t.long 3\n3:\n\t.p2align 2\n4:", "arch": "x86", "syntax": "gas-att", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/i386/x86cpuid.S", "line_start": 601, "line_end": 636}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/ia64/ec.inc:1", "text": "# $NetBSD: ec.inc,v 1.2 2025/07/20 22:53:34 christos Exp $\nECNI=yes\nECNONISTZ=yes\nEC_SRCS+= ecp_nistp384.c\n\n.include \"../../ec.inc\"", "arch": "arm64", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/ia64/ec.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/ia64/ec.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/ia64/ec.inc:1", "text": "# $NetBSD: ec.inc,v 1.1 2025/07/17 14:25:31 christos Exp $\nECNI=yes\nECNONISTZ=yes\n\n.include \"../../ec.inc\"", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/ia64/ec.inc", "license": "BSD-2-Clause", "commit": "22c49564e4ec2afc0cb74b2361834a8c0b4ae5ed", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/22c49564e4ec2afc0cb74b2361834a8c0b4ae5ed/crypto/external/apache2/openssl/lib/libcrypto/arch/ia64/ec.inc", "line_start": 1, "line_end": 5}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/m68k/aes.inc:1", "text": ".if ${MACHINE_ARCH} != \"m68000\"\n.PATH.S: ${.PARSEDIR}\nAES_SRCS = aes-m68k.S aes_cbc.c\nAESCPPFLAGS = -DAES_ASM\n.endif\n.include \"../../aes.inc\"", "arch": "unknown", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/m68k/aes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/m68k/aes.inc", "line_start": 1, "line_end": 6}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:1", "text": "#include \"mips_arch.h\"\n\n.text\n#if !defined(__mips_eabi) && (!defined(__vxworks) || defined(__pic__))\n.option\tpic2\n#endif\n.set\tnoat\n.align\t5\n.ent\t_mips_AES_encrypt\n_mips_AES_encrypt:\n\t.frame\t$29,0,$31\n\t.set\treorder\n\tlw\t$12,0($6)\n\tlw\t$13,4($6)\n\tlw\t$14,8($6)\n\tlw\t$15,12($6)\n\tlw\t$30,240($6)\n\taddu $3,$6,16\n\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tsubu\t$30,1\n#if defined(__mips_smartmips)\n\text\t$1,$9,8,8\n.Loop_enc:\n\text\t$2,$10,8,8\n\text\t$24,$11,8,8\n\text\t$25,$8,8,8\n\tlwxs\t$12,$1($7)\t\t# Te1[s1>>16]\n\text\t$1,$10,16,8\n\tlwxs\t$13,$2($7)\t\t# Te1[s2>>16]\n\text\t$2,$11,16,8\n\tlwxs\t$14,$24($7)\t\t# Te1[s3>>16]\n\text\t$24,$8,16,8\n\tlwxs\t$15,$25($7)\t\t# Te1[s0>>16]\n\text\t$25,$9,16,8\n\n\tlwxs\t$16,$1($7)\t\t# Te2[s2>>8]\n\text\t$1,$11,24,8\n\tlwxs\t$17,$2($7)\t\t# Te2[s3>>8]\n\text\t$2,$8,24,8\n\tlwxs\t$18,$24($7)\t\t# Te2[s0>>8]\n\text\t$24,$9,24,8\n\tlwxs\t$19,$25($7)\t\t# Te2[s1>>8]\n\text\t$25,$10,24,8\n\n\tlwxs\t$20,$1($7)\t\t# Te3[s3]\n\text\t$1,$8,0,8\n\tlwxs\t$21,$2($7)\t\t# Te3[s0]\n\text\t$2,$9,0,8\n\tlwxs\t$22,$24($7)\t\t# Te3[s1]\n\text\t$24,$10,0,8\n\tlwxs\t$23,$25($7)\t\t# Te3[s2]\n\text\t$25,$11,0,8\n\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:2", "text": "lwxs\t$16,$1($7)\t\t# Te2[s2>>8]\n\text\t$1,$11,24,8\n\tlwxs\t$17,$2($7)\t\t# Te2[s3>>8]\n\text\t$2,$8,24,8\n\tlwxs\t$18,$24($7)\t\t# Te2[s0>>8]\n\text\t$24,$9,24,8\n\tlwxs\t$19,$25($7)\t\t# Te2[s1>>8]\n\text\t$25,$10,24,8\n\n\tlwxs\t$20,$1($7)\t\t# Te3[s3]\n\text\t$1,$8,0,8\n\tlwxs\t$21,$2($7)\t\t# Te3[s0]\n\text\t$2,$9,0,8\n\tlwxs\t$22,$24($7)\t\t# Te3[s1]\n\text\t$24,$10,0,8\n\tlwxs\t$23,$25($7)\t\t# Te3[s2]\n\text\t$25,$11,0,8\n\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\txor\t$12,$16\n\tlwxs\t$16,$1($7)\t\t# Te0[s0>>24]\n\txor\t$13,$17\n\tlwxs\t$17,$2($7)\t\t# Te0[s1>>24]\n\txor\t$14,$18\n\tlwxs\t$18,$24($7)\t\t# Te0[s2>>24]\n\txor\t$15,$19\n\tlwxs\t$19,$25($7)\t\t# Te0[s3>>24]\n\n\trotr\t$20,$20,8\n\tlw\t$8,0($3)\n\trotr\t$21,$21,8\n\tlw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\taddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:3", "text": "lw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\taddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_enc\n\text\t$1,$9,8,8\n\n\tsrl\t$1,$9,6\n#else\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\tmove\t$1,$7\n\tmove\t$2,$7\n\tmove\t$24,$7\n\tmove\t$25,$7\n\text\t$12,$9,8,8\n.Loop_enc:\n\text\t$13,$10,8,8\n\text\t$14,$11,8,8\n\text\t$15,$8,8,8\n\tins $1,$12,2,8\n\tins $2,$13,2,8\n\tins $24,$14,2,8\n\tins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Te1[s1>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Te1[s2>>16]\n\text\t$17,$11,16,8\n\tlw\t$14,0($24)\t\t# Te1[s3>>16]\n\text\t$18,$8,16,8\n\tlw\t$15,0($25)\t\t# Te1[s0>>16]\n\text\t$19,$9,16,8\n\tins $1,$16,2,8\n\tins $2,$17,2,8\n\tins $24,$18,2,8\n\tins $25,$19,2,8\n#else\n\tsrl\t$1,$9,6\n.Loop_enc:\n\tsrl\t$2,$10,6\n\tsrl\t$24,$11,6\n\tsrl\t$25,$8,6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:4", "text": "ins $24,$14,2,8\n\tins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Te1[s1>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Te1[s2>>16]\n\text\t$17,$11,16,8\n\tlw\t$14,0($24)\t\t# Te1[s3>>16]\n\text\t$18,$8,16,8\n\tlw\t$15,0($25)\t\t# Te1[s0>>16]\n\text\t$19,$9,16,8\n\tins $1,$16,2,8\n\tins $2,$17,2,8\n\tins $24,$18,2,8\n\tins $25,$19,2,8\n#else\n\tsrl\t$1,$9,6\n.Loop_enc:\n\tsrl\t$2,$10,6\n\tsrl\t$24,$11,6\n\tsrl\t$25,$8,6\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlwl\t$12,2($1)\t\t# Te1[s1>>16]\n\tlwl\t$13,2($2)\t\t# Te1[s2>>16]\n\tlwl\t$14,2($24)\t\t# Te1[s3>>16]\n\tlwl\t$15,2($25)\t\t# Te1[s0>>16]\n\tlwr\t$12,3($1)\t\t# Te1[s1>>16]\n\tsrl\t$1,$10,14\n\tlwr\t$13,3($2)\t\t# Te1[s2>>16]\n\tsrl\t$2,$11,14\n\tlwr\t$14,3($24)\t\t# Te1[s3>>16]\n\tsrl\t$24,$8,14\n\tlwr\t$15,3($25)\t\t# Te1[s0>>16]\n\tsrl\t$25,$9,14\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n# if defined(_MIPSEL)\n\tlw\t$16,0($1)\t\t# Te2[s2>>8]\n\text\t$20,$11,24,8\n\tlw\t$17,0($2)\t\t# Te2[s3>>8]\n\text\t$21,$8,24,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:5", "text": "and\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n# if defined(_MIPSEL)\n\tlw\t$16,0($1)\t\t# Te2[s2>>8]\n\text\t$20,$11,24,8\n\tlw\t$17,0($2)\t\t# Te2[s3>>8]\n\text\t$21,$8,24,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]\n\text\t$22,$9,24,8\n\tlw\t$19,0($25)\t\t# Te2[s1>>8]\n\text\t$23,$10,24,8\n\tins $1,$20,2,8\n\tins $2,$21,2,8\n\tins $24,$22,2,8\n\tins $25,$23,2,8\n\n\tlw\t$20,0($1)\t\t# Te3[s3]\n\tins $1,$8,2,8\n\tlw\t$21,0($2)\t\t# Te3[s0]\n\tins $2,$9,2,8\n\tlw\t$22,0($24)\t\t# Te3[s1]\n\tins $24,$10,2,8\n\tlw\t$23,0($25)\t\t# Te3[s2]\n\tins $25,$11,2,8\n# else\n\tlw\t$16,0($1)\t\t# Te2[s2>>8]\n\tins $1,$11,2,8\n\tlw\t$17,0($2)\t\t# Te2[s3>>8]\n\tins $2,$8,2,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]\n\tins $24,$9,2,8\n\tlw\t$19,0($25)\t\t# Te2[s1>>8]\n\tins $25,$10,2,8\n\n\tlw\t$20,0($1)\t\t# Te3[s3]\n\tsll\t$1,$8,2\n\tlw\t$21,0($2)\t\t# Te3[s0]\n\tsll\t$2,$9,2\n\tlw\t$22,0($24)\t\t# Te3[s1]\n\tsll\t$24,$10,2\n\tlw\t$23,0($25)\t\t# Te3[s2]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:6", "text": "ins $2,$8,2,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]\n\tins $24,$9,2,8\n\tlw\t$19,0($25)\t\t# Te2[s1>>8]\n\tins $25,$10,2,8\n\n\tlw\t$20,0($1)\t\t# Te3[s3]\n\tsll\t$1,$8,2\n\tlw\t$21,0($2)\t\t# Te3[s0]\n\tsll\t$2,$9,2\n\tlw\t$22,0($24)\t\t# Te3[s1]\n\tsll\t$24,$10,2\n\tlw\t$23,0($25)\t\t# Te3[s2]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n# endif\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\trotr\t$20,$20,8\n\trotr\t$21,$21,8\n\trotr\t$22,$22,8\n\trotr\t$23,$23,8\n#else\n\tlwl\t$16,1($1)\t\t# Te2[s2>>8]\n\tlwl\t$17,1($2)\t\t# Te2[s3>>8]\n\tlwl\t$18,1($24)\t\t# Te2[s0>>8]\n\tlwl\t$19,1($25)\t\t# Te2[s1>>8]\n\tlwr\t$16,2($1)\t\t# Te2[s2>>8]\n\tsrl\t$1,$11,22\n\tlwr\t$17,2($2)\t\t# Te2[s3>>8]\n\tsrl\t$2,$8,22\n\tlwr\t$18,2($24)\t\t# Te2[s0>>8]\n\tsrl\t$24,$9,22\n\tlwr\t$19,2($25)\t\t# Te2[s1>>8]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlwl\t$20,0($1)\t\t# Te3[s3]\n\tlwl\t$21,0($2)\t\t# Te3[s0]\n\tlwl\t$22,0($24)\t\t# Te3[s1]\n\tlwl\t$23,0($25)\t\t# Te3[s2]\n\tlwr\t$20,1($1)\t\t# Te3[s3]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:7", "text": "lwr\t$17,2($2)\t\t# Te2[s3>>8]\n\tsrl\t$2,$8,22\n\tlwr\t$18,2($24)\t\t# Te2[s0>>8]\n\tsrl\t$24,$9,22\n\tlwr\t$19,2($25)\t\t# Te2[s1>>8]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlwl\t$20,0($1)\t\t# Te3[s3]\n\tlwl\t$21,0($2)\t\t# Te3[s0]\n\tlwl\t$22,0($24)\t\t# Te3[s1]\n\tlwl\t$23,0($25)\t\t# Te3[s2]\n\tlwr\t$20,1($1)\t\t# Te3[s3]\n\tsll\t$1,$8,2\n\tlwr\t$21,1($2)\t\t# Te3[s0]\n\tsll\t$2,$9,2\n\tlwr\t$22,1($24)\t\t# Te3[s1]\n\tsll\t$24,$10,2\n\tlwr\t$23,1($25)\t\t# Te3[s2]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n\txor\t$12,$16\n\tlw\t$16,0($1)\t\t# Te0[s0>>24]\n\txor\t$13,$17\n\tlw\t$17,0($2)\t\t# Te0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Te0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Te0[s3>>24]\n\n\txor\t$12,$20\n\tlw\t$8,0($3)\n\txor\t$13,$21\n\tlw\t$9,4($3)\n\txor\t$14,$22\n\tlw\t$10,8($3)\n\txor\t$15,$23\n\tlw\t$11,12($3)\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:8", "text": "lw\t$17,0($2)\t\t# Te0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Te0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Te0[s3>>24]\n\n\txor\t$12,$20\n\tlw\t$8,0($3)\n\txor\t$13,$21\n\tlw\t$9,4($3)\n\txor\t$14,$22\n\tlw\t$10,8($3)\n\txor\t$15,$23\n\tlw\t$11,12($3)\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\taddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_enc\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\text\t$12,$9,8,8\n#endif\n\tsrl\t$1,$9,6\n#endif\n\n\t.set\treorder\n\tsrl\t$2,$10,6\n\tsrl\t$24,$11,6\n\tsrl\t$25,$8,6\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$12,2($1)\t\t# Te4[s1>>16]\n\tsrl\t$1,$10,14\n\tlbu\t$13,2($2)\t\t# Te4[s2>>16]\n\tsrl\t$2,$11,14\n\tlbu\t$14,2($24)\t\t# Te4[s3>>16]\n\tsrl\t$24,$8,14\n\tlbu\t$15,2($25)\t\t# Te4[s0>>16]\n\tsrl\t$25,$9,14\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:9", "text": "and\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$12,2($1)\t\t# Te4[s1>>16]\n\tsrl\t$1,$10,14\n\tlbu\t$13,2($2)\t\t# Te4[s2>>16]\n\tsrl\t$2,$11,14\n\tlbu\t$14,2($24)\t\t# Te4[s3>>16]\n\tsrl\t$24,$8,14\n\tlbu\t$15,2($25)\t\t# Te4[s0>>16]\n\tsrl\t$25,$9,14\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n# if defined(_MIPSEL)\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tins $1,$8,2,8\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tins $2,$9,2,8\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tins $24,$10,2,8\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tins $25,$11,2,8\n\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tsrl\t$1,$11,22\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tsrl\t$2,$8,22\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tsrl\t$24,$9,22\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n# else\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tsll\t$1,$8,2\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tsll\t$2,$9,2\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tsll\t$24,$10,2\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tsll\t$25,$11,2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:10", "text": "lbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n# else\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tsll\t$1,$8,2\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tsll\t$2,$9,2\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tsll\t$24,$10,2\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tins $1,$11,2,8\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tins $2,$8,2,8\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tins $24,$9,2,8\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tins $25,$10,2,8\n# endif\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tins\t$12,$16,16,8\n\tlbu\t$16,2($1)\t\t# Te4[s3]\n\tins\t$13,$17,16,8\n\tlbu\t$17,2($2)\t\t# Te4[s0]\n\tins\t$14,$18,16,8\n\tlbu\t$18,2($24)\t\t# Te4[s1]\n\tins\t$15,$19,16,8\n\tlbu\t$19,2($25)\t\t# Te4[s2]\n\n\tins\t$12,$20,0,8\n\tlw\t$8,0($3)\n\tins\t$13,$21,0,8\n\tlw\t$9,4($3)\n\tins\t$14,$22,0,8\n\tlw\t$10,8($3)\n\tins\t$15,$23,0,8\n\tlw\t$11,12($3)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:11", "text": "sll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tins\t$12,$16,16,8\n\tlbu\t$16,2($1)\t\t# Te4[s3]\n\tins\t$13,$17,16,8\n\tlbu\t$17,2($2)\t\t# Te4[s0]\n\tins\t$14,$18,16,8\n\tlbu\t$18,2($24)\t\t# Te4[s1]\n\tins\t$15,$19,16,8\n\tlbu\t$19,2($25)\t\t# Te4[s2]\n\n\tins\t$12,$20,0,8\n\tlw\t$8,0($3)\n\tins\t$13,$21,0,8\n\tlw\t$9,4($3)\n\tins\t$14,$22,0,8\n\tlw\t$10,8($3)\n\tins\t$15,$23,0,8\n\tlw\t$11,12($3)\n\n\tins\t$12,$16,24,8\n\tins\t$13,$17,24,8\n\tins\t$14,$18,24,8\n\tins\t$15,$19,24,8\n#else\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tsll\t$1,$8,2\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tsll\t$2,$9,2\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tsll\t$24,$10,2\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tsrl\t$1,$11,22\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tsrl\t$2,$8,22\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tsrl\t$24,$9,22\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:12", "text": "addu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tsrl\t$1,$11,22\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tsrl\t$2,$8,22\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tsrl\t$24,$9,22\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tsll\t$16,$16,16\n\tsll\t$17,$17,16\n\tsll\t$18,$18,16\n\tsll\t$19,$19,16\n\n\txor\t$12,$16\n\tlbu\t$16,2($1)\t\t# Te4[s3]\n\txor\t$13,$17\n\tlbu\t$17,2($2)\t\t# Te4[s0]\n\txor\t$14,$18\n\tlbu\t$18,2($24)\t\t# Te4[s1]\n\txor\t$15,$19\n\tlbu\t$19,2($25)\t\t# Te4[s2]\n\n\t#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\tsll\t$16,$16,24\n\tsll\t$17,$17,24\n\tsll\t$18,$18,24\n\tsll\t$19,$19,24\n\n\txor\t$12,$16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:13", "text": "#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\tsll\t$16,$16,24\n\tsll\t$17,$17,24\n\tsll\t$18,$18,24\n\tsll\t$19,$19,24\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n#endif\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tjr\t$31\n.end\t_mips_AES_encrypt\n\n.align\t5\n.globl\tAES_encrypt\n.ent\tAES_encrypt\nAES_encrypt:\n\t.frame\t$29,64,$31\n\t.mask\t0xc0ff0000,-4\n\t.set\tnoreorder\n\t.cpload\t$25\n\tsubu $29,64\n\tsw\t$31,64-1*4($29)\n\tsw\t$30,64-2*4($29)\n\tsw\t$23,64-3*4($29)\n\tsw\t$22,64-4*4($29)\n\tsw\t$21,64-5*4($29)\n\tsw\t$20,64-6*4($29)\n\tsw\t$19,64-7*4($29)\n\tsw\t$18,64-8*4($29)\n\tsw\t$17,64-9*4($29)\n\tsw\t$16,64-10*4($29)\n\t.set\treorder\n\tla\t$7,AES_Te\t\t# PIC-ified 'load address'\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:14", "text": "subu $29,64\n\tsw\t$31,64-1*4($29)\n\tsw\t$30,64-2*4($29)\n\tsw\t$23,64-3*4($29)\n\tsw\t$22,64-4*4($29)\n\tsw\t$21,64-5*4($29)\n\tsw\t$20,64-6*4($29)\n\tsw\t$19,64-7*4($29)\n\tsw\t$18,64-8*4($29)\n\tsw\t$17,64-9*4($29)\n\tsw\t$16,64-10*4($29)\n\t.set\treorder\n\tla\t$7,AES_Te\t\t# PIC-ified 'load address'\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\n\tbal\t_mips_AES_encrypt\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n#else\n\tswr\t$8,0+0($5)\n\tswr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder\n\tlw\t$31,64-1*4($29)\n\tlw\t$30,64-2*4($29)\n\tlw\t$23,64-3*4($29)\n\tlw\t$22,64-4*4($29)\n\tlw\t$21,64-5*4($29)\n\tlw\t$20,64-6*4($29)\n\tlw\t$19,64-7*4($29)\n\tlw\t$18,64-8*4($29)\n\tlw\t$17,64-9*4($29)\n\tlw\t$16,64-10*4($29)\n\tjr\t$31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:15", "text": "swr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder\n\tlw\t$31,64-1*4($29)\n\tlw\t$30,64-2*4($29)\n\tlw\t$23,64-3*4($29)\n\tlw\t$22,64-4*4($29)\n\tlw\t$21,64-5*4($29)\n\tlw\t$20,64-6*4($29)\n\tlw\t$19,64-7*4($29)\n\tlw\t$18,64-8*4($29)\n\tlw\t$17,64-9*4($29)\n\tlw\t$16,64-10*4($29)\n\tjr\t$31\n\taddu $29,64\n.end\tAES_encrypt\n.align\t5\n.ent\t_mips_AES_decrypt\n_mips_AES_decrypt:\n\t.frame\t$29,0,$31\n\t.set\treorder\n\tlw\t$12,0($6)\n\tlw\t$13,4($6)\n\tlw\t$14,8($6)\n\tlw\t$15,12($6)\n\tlw\t$30,240($6)\n\taddu $3,$6,16\n\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tsubu\t$30,1\n#if defined(__mips_smartmips)\n\text\t$1,$11,8,8\n.Loop_dec:\n\text\t$2,$8,8,8\n\text\t$24,$9,8,8\n\text\t$25,$10,8,8\n\tlwxs\t$12,$1($7)\t\t# Td1[s3>>16]\n\text\t$1,$10,16,8\n\tlwxs\t$13,$2($7)\t\t# Td1[s0>>16]\n\text\t$2,$11,16,8\n\tlwxs\t$14,$24($7)\t\t# Td1[s1>>16]\n\text\t$24,$8,16,8\n\tlwxs\t$15,$25($7)\t\t# Td1[s2>>16]\n\text\t$25,$9,16,8\n\n\tlwxs\t$16,$1($7)\t\t# Td2[s2>>8]\n\text\t$1,$9,24,8\n\tlwxs\t$17,$2($7)\t\t# Td2[s3>>8]\n\text\t$2,$10,24,8\n\tlwxs\t$18,$24($7)\t\t# Td2[s0>>8]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:16", "text": "#if defined(__mips_smartmips)\n\text\t$1,$11,8,8\n.Loop_dec:\n\text\t$2,$8,8,8\n\text\t$24,$9,8,8\n\text\t$25,$10,8,8\n\tlwxs\t$12,$1($7)\t\t# Td1[s3>>16]\n\text\t$1,$10,16,8\n\tlwxs\t$13,$2($7)\t\t# Td1[s0>>16]\n\text\t$2,$11,16,8\n\tlwxs\t$14,$24($7)\t\t# Td1[s1>>16]\n\text\t$24,$8,16,8\n\tlwxs\t$15,$25($7)\t\t# Td1[s2>>16]\n\text\t$25,$9,16,8\n\n\tlwxs\t$16,$1($7)\t\t# Td2[s2>>8]\n\text\t$1,$9,24,8\n\tlwxs\t$17,$2($7)\t\t# Td2[s3>>8]\n\text\t$2,$10,24,8\n\tlwxs\t$18,$24($7)\t\t# Td2[s0>>8]\n\text\t$24,$11,24,8\n\tlwxs\t$19,$25($7)\t\t# Td2[s1>>8]\n\text\t$25,$8,24,8\n\n\tlwxs\t$20,$1($7)\t\t# Td3[s1]\n\text\t$1,$8,0,8\n\tlwxs\t$21,$2($7)\t\t# Td3[s2]\n\text\t$2,$9,0,8\n\tlwxs\t$22,$24($7)\t\t# Td3[s3]\n\text\t$24,$10,0,8\n\tlwxs\t$23,$25($7)\t\t# Td3[s0]\n\text\t$25,$11,0,8\n\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\txor\t$12,$16\n\tlwxs\t$16,$1($7)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlwxs\t$17,$2($7)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlwxs\t$18,$24($7)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlwxs\t$19,$25($7)\t\t# Td0[s3>>24]\n\n\trotr\t$20,$20,8\n\tlw\t$8,0($3)\n\trotr\t$21,$21,8\n\tlw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:17", "text": "rotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\txor\t$12,$16\n\tlwxs\t$16,$1($7)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlwxs\t$17,$2($7)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlwxs\t$18,$24($7)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlwxs\t$19,$25($7)\t\t# Td0[s3>>24]\n\n\trotr\t$20,$20,8\n\tlw\t$8,0($3)\n\trotr\t$21,$21,8\n\tlw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\taddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_dec\n\text\t$1,$11,8,8\n\n\tsrl\t$1,$11,6\n#else\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\tmove\t$1,$7\n\tmove\t$2,$7\n\tmove\t$24,$7\n\tmove\t$25,$7\n\text\t$12,$11,8,8\n.Loop_dec:\n\text\t$13,$8,8,8\n\text\t$14,$9,8,8\n\text\t$15,$10,8,8\n\tins $1,$12,2,8\n\tins $2,$13,2,8\n\tins $24,$14,2,8\n\tins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Td1[s3>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Td1[s0>>16]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:18", "text": "srl\t$1,$11,6\n#else\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\tmove\t$1,$7\n\tmove\t$2,$7\n\tmove\t$24,$7\n\tmove\t$25,$7\n\text\t$12,$11,8,8\n.Loop_dec:\n\text\t$13,$8,8,8\n\text\t$14,$9,8,8\n\text\t$15,$10,8,8\n\tins $1,$12,2,8\n\tins $2,$13,2,8\n\tins $24,$14,2,8\n\tins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Td1[s3>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Td1[s0>>16]\n\text\t$17,$11,16,8\n\tlw\t$14,0($24)\t\t# Td1[s1>>16]\n\text\t$18,$8,16,8\n\tlw\t$15,0($25)\t\t# Td1[s2>>16]\n\text\t$19,$9,16,8\n\tins $1,$16,2,8\n\tins $2,$17,2,8\n\tins $24,$18,2,8\n\tins $25,$19,2,8\n#else\n\tsrl\t$1,$11,6\n.Loop_dec:\n\tsrl\t$2,$8,6\n\tsrl\t$24,$9,6\n\tsrl\t$25,$10,6\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlwl\t$12,2($1)\t\t# Td1[s3>>16]\n\tlwl\t$13,2($2)\t\t# Td1[s0>>16]\n\tlwl\t$14,2($24)\t\t# Td1[s1>>16]\n\tlwl\t$15,2($25)\t\t# Td1[s2>>16]\n\tlwr\t$12,3($1)\t\t# Td1[s3>>16]\n\tsrl\t$1,$10,14\n\tlwr\t$13,3($2)\t\t# Td1[s0>>16]\n\tsrl\t$2,$11,14\n\tlwr\t$14,3($24)\t\t# Td1[s1>>16]\n\tsrl\t$24,$8,14\n\tlwr\t$15,3($25)\t\t# Td1[s2>>16]\n\tsrl\t$25,$9,14\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:19", "text": "addu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlwl\t$12,2($1)\t\t# Td1[s3>>16]\n\tlwl\t$13,2($2)\t\t# Td1[s0>>16]\n\tlwl\t$14,2($24)\t\t# Td1[s1>>16]\n\tlwl\t$15,2($25)\t\t# Td1[s2>>16]\n\tlwr\t$12,3($1)\t\t# Td1[s3>>16]\n\tsrl\t$1,$10,14\n\tlwr\t$13,3($2)\t\t# Td1[s0>>16]\n\tsrl\t$2,$11,14\n\tlwr\t$14,3($24)\t\t# Td1[s1>>16]\n\tsrl\t$24,$8,14\n\tlwr\t$15,3($25)\t\t# Td1[s2>>16]\n\tsrl\t$25,$9,14\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n# if defined(_MIPSEL)\n\tlw\t$16,0($1)\t\t# Td2[s2>>8]\n\text\t$20,$9,24,8\n\tlw\t$17,0($2)\t\t# Td2[s3>>8]\n\text\t$21,$10,24,8\n\tlw\t$18,0($24)\t\t# Td2[s0>>8]\n\text\t$22,$11,24,8\n\tlw\t$19,0($25)\t\t# Td2[s1>>8]\n\text\t$23,$8,24,8\n\tins $1,$20,2,8\n\tins $2,$21,2,8\n\tins $24,$22,2,8\n\tins $25,$23,2,8\n\tlw\t$20,0($1)\t\t# Td3[s1]\n\tins $1,$8,2,8\n\tlw\t$21,0($2)\t\t# Td3[s2]\n\tins $2,$9,2,8\n\tlw\t$22,0($24)\t\t# Td3[s3]\n\tins $24,$10,2,8\n\tlw\t$23,0($25)\t\t# Td3[s0]\n\tins $25,$11,2,8\n#else\n\tlw\t$16,0($1)\t\t# Td2[s2>>8]\n\tins $1,$9,2,8\n\tlw\t$17,0($2)\t\t# Td2[s3>>8]\n\tins $2,$10,2,8\n\tlw\t$18,0($24)\t\t# Td2[s0>>8]\n\tins $24,$11,2,8\n\tlw\t$19,0($25)\t\t# Td2[s1>>8]\n\tins $25,$8,2,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:20", "text": "ins $24,$22,2,8\n\tins $25,$23,2,8\n\tlw\t$20,0($1)\t\t# Td3[s1]\n\tins $1,$8,2,8\n\tlw\t$21,0($2)\t\t# Td3[s2]\n\tins $2,$9,2,8\n\tlw\t$22,0($24)\t\t# Td3[s3]\n\tins $24,$10,2,8\n\tlw\t$23,0($25)\t\t# Td3[s0]\n\tins $25,$11,2,8\n#else\n\tlw\t$16,0($1)\t\t# Td2[s2>>8]\n\tins $1,$9,2,8\n\tlw\t$17,0($2)\t\t# Td2[s3>>8]\n\tins $2,$10,2,8\n\tlw\t$18,0($24)\t\t# Td2[s0>>8]\n\tins $24,$11,2,8\n\tlw\t$19,0($25)\t\t# Td2[s1>>8]\n\tins $25,$8,2,8\n\n\tlw\t$20,0($1)\t\t# Td3[s1]\n\tsll\t$1,$8,2\n\tlw\t$21,0($2)\t\t# Td3[s2]\n\tsll\t$2,$9,2\n\tlw\t$22,0($24)\t\t# Td3[s3]\n\tsll\t$24,$10,2\n\tlw\t$23,0($25)\t\t# Td3[s0]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\trotr\t$20,$20,8\n\trotr\t$21,$21,8\n\trotr\t$22,$22,8\n\trotr\t$23,$23,8\n#else\n\tlwl\t$16,1($1)\t\t# Td2[s2>>8]\n\tlwl\t$17,1($2)\t\t# Td2[s3>>8]\n\tlwl\t$18,1($24)\t\t# Td2[s0>>8]\n\tlwl\t$19,1($25)\t\t# Td2[s1>>8]\n\tlwr\t$16,2($1)\t\t# Td2[s2>>8]\n\tsrl\t$1,$9,22\n\tlwr\t$17,2($2)\t\t# Td2[s3>>8]\n\tsrl\t$2,$10,22\n\tlwr\t$18,2($24)\t\t# Td2[s0>>8]\n\tsrl\t$24,$11,22\n\tlwr\t$19,2($25)\t\t# Td2[s1>>8]\n\tsrl\t$25,$8,22", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:21", "text": "rotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\trotr\t$20,$20,8\n\trotr\t$21,$21,8\n\trotr\t$22,$22,8\n\trotr\t$23,$23,8\n#else\n\tlwl\t$16,1($1)\t\t# Td2[s2>>8]\n\tlwl\t$17,1($2)\t\t# Td2[s3>>8]\n\tlwl\t$18,1($24)\t\t# Td2[s0>>8]\n\tlwl\t$19,1($25)\t\t# Td2[s1>>8]\n\tlwr\t$16,2($1)\t\t# Td2[s2>>8]\n\tsrl\t$1,$9,22\n\tlwr\t$17,2($2)\t\t# Td2[s3>>8]\n\tsrl\t$2,$10,22\n\tlwr\t$18,2($24)\t\t# Td2[s0>>8]\n\tsrl\t$24,$11,22\n\tlwr\t$19,2($25)\t\t# Td2[s1>>8]\n\tsrl\t$25,$8,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlwl\t$20,0($1)\t\t# Td3[s1]\n\tlwl\t$21,0($2)\t\t# Td3[s2]\n\tlwl\t$22,0($24)\t\t# Td3[s3]\n\tlwl\t$23,0($25)\t\t# Td3[s0]\n\tlwr\t$20,1($1)\t\t# Td3[s1]\n\tsll\t$1,$8,2\n\tlwr\t$21,1($2)\t\t# Td3[s2]\n\tsll\t$2,$9,2\n\tlwr\t$22,1($24)\t\t# Td3[s3]\n\tsll\t$24,$10,2\n\tlwr\t$23,1($25)\t\t# Td3[s0]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n\n\txor\t$12,$16\n\tlw\t$16,0($1)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlw\t$17,0($2)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Td0[s3>>24]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:22", "text": "sll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#endif\n\n\txor\t$12,$16\n\tlw\t$16,0($1)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlw\t$17,0($2)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Td0[s3>>24]\n\n\txor\t$12,$20\n\tlw\t$8,0($3)\n\txor\t$13,$21\n\tlw\t$9,4($3)\n\txor\t$14,$22\n\tlw\t$10,8($3)\n\txor\t$15,$23\n\tlw\t$11,12($3)\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\taddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_dec\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\text\t$12,$11,8,8\n#endif\n\n\tsrl\t$1,$11,6\n#endif\n\n\t.set\treorder\n\tlw\t$16,1024($7)\t\t# prefetch Td4\n\tsrl\t$1,$11,8\n\tlw\t$17,1024+32($7)\n\tsrl\t$2,$8,8\n\tlw\t$18,1024+64($7)\n\tsrl\t$24,$9,8\n\tlw\t$19,1024+96($7)\n\tsrl\t$25,$10,8\n\tlw\t$20,1024+128($7)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:23", "text": "xor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_dec\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\text\t$12,$11,8,8\n#endif\n\n\tsrl\t$1,$11,6\n#endif\n\n\t.set\treorder\n\tlw\t$16,1024($7)\t\t# prefetch Td4\n\tsrl\t$1,$11,8\n\tlw\t$17,1024+32($7)\n\tsrl\t$2,$8,8\n\tlw\t$18,1024+64($7)\n\tsrl\t$24,$9,8\n\tlw\t$19,1024+96($7)\n\tsrl\t$25,$10,8\n\tlw\t$20,1024+128($7)\n\tand\t$1,0xff\n\tlw\t$21,1024+160($7)\n\tand\t$2,0xff\n\tlw\t$22,1024+192($7)\n\tand\t$24,0xff\n\tlw\t$23,1024+224($7)\n\tand\t$25,0xff\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$12,1024($1)\t\t# Td4[s3>>16]\n\tsrl\t$1,$10,16\n\tlbu\t$13,1024($2)\t\t# Td4[s0>>16]\n\tsrl\t$2,$11,16\n\tlbu\t$14,1024($24)\t\t# Td4[s1>>16]\n\tsrl\t$24,$8,16\n\tlbu\t$15,1024($25)\t\t# Td4[s2>>16]\n\tsrl\t$25,$9,16\n\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,0xff\n\tand\t$25,0xff\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n# if defined(_MIPSEL)\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tins $1,$8,0,8\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tins $2,$9,0,8\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tins $24,$10,0,8\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tins $25,$11,0,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:24", "text": "and\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,0xff\n\tand\t$25,0xff\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n# if defined(_MIPSEL)\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tins $1,$8,0,8\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tins $2,$9,0,8\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tins $24,$10,0,8\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tins $25,$11,0,8\n\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tsrl\t$1,$9,24\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tsrl\t$2,$10,24\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tsrl\t$24,$11,24\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tsrl\t$25,$8,24\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n# else\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tand\t$1,$8,0xff\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tand\t$2,$9,0xff\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tand\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tins $1,$9,0,8\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tins $2,$10,0,8\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tins $24,$11,0,8\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tins $25,$8,0,8\n# endif\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:25", "text": "lbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tins $1,$9,0,8\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tins $2,$10,0,8\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tins $24,$11,0,8\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tins $25,$8,0,8\n# endif\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tins\t$12,$16,16,8\n\tlbu\t$16,1024($1)\t\t# Td4[s1]\n\tins\t$13,$17,16,8\n\tlbu\t$17,1024($2)\t\t# Td4[s2]\n\tins\t$14,$18,16,8\n\tlbu\t$18,1024($24)\t\t# Td4[s3]\n\tins\t$15,$19,16,8\n\tlbu\t$19,1024($25)\t\t# Td4[s0]\n\n\tins\t$12,$20,0,8\n\tlw\t$8,0($3)\n\tins\t$13,$21,0,8\n\tlw\t$9,4($3)\n\tins\t$14,$22,0,8\n\tlw\t$10,8($3)\n\tins\t$15,$23,0,8\n\tlw\t$11,12($3)\n\n\tins\t$12,$16,24,8\n\tins\t$13,$17,24,8\n\tins\t$14,$18,24,8\n\tins\t$15,$19,24,8\n#else\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tand\t$1,$8,0xff\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tand\t$2,$9,0xff\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tand\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tsrl\t$1,$9,24\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:26", "text": "ins\t$13,$17,24,8\n\tins\t$14,$18,24,8\n\tins\t$15,$19,24,8\n#else\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tand\t$1,$8,0xff\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tand\t$2,$9,0xff\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tand\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tsrl\t$1,$9,24\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tsrl\t$2,$10,24\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tsrl\t$24,$11,24\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tsrl\t$25,$8,24\n\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tsll\t$16,$16,16\n\tsll\t$17,$17,16\n\tsll\t$18,$18,16\n\tsll\t$19,$19,16\n\n\txor\t$12,$16\n\tlbu\t$16,1024($1)\t\t# Td4[s1]\n\txor\t$13,$17\n\tlbu\t$17,1024($2)\t\t# Td4[s2]\n\txor\t$14,$18\n\tlbu\t$18,1024($24)\t\t# Td4[s3]\n\txor\t$15,$19\n\tlbu\t$19,1024($25)\t\t# Td4[s0]\n\n\t#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:27", "text": "xor\t$12,$16\n\tlbu\t$16,1024($1)\t\t# Td4[s1]\n\txor\t$13,$17\n\tlbu\t$17,1024($2)\t\t# Td4[s2]\n\txor\t$14,$18\n\tlbu\t$18,1024($24)\t\t# Td4[s3]\n\txor\t$15,$19\n\tlbu\t$19,1024($25)\t\t# Td4[s0]\n\n\t#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\tsll\t$16,$16,24\n\tsll\t$17,$17,24\n\tsll\t$18,$18,24\n\tsll\t$19,$19,24\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n#endif\n\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tjr\t$31\n.end\t_mips_AES_decrypt\n\n.align\t5\n.globl\tAES_decrypt\n.ent\tAES_decrypt\nAES_decrypt:\n\t.frame\t$29,64,$31\n\t.mask\t0xc0ff0000,-4\n\t.set\tnoreorder\n\t.cpload\t$25\n\tsubu $29,64\n\tsw\t$31,64-1*4($29)\n\tsw\t$30,64-2*4($29)\n\tsw\t$23,64-3*4($29)\n\tsw\t$22,64-4*4($29)\n\tsw\t$21,64-5*4($29)\n\tsw\t$20,64-6*4($29)\n\tsw\t$19,64-7*4($29)\n\tsw\t$18,64-8*4($29)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:28", "text": "jr\t$31\n.end\t_mips_AES_decrypt\n\n.align\t5\n.globl\tAES_decrypt\n.ent\tAES_decrypt\nAES_decrypt:\n\t.frame\t$29,64,$31\n\t.mask\t0xc0ff0000,-4\n\t.set\tnoreorder\n\t.cpload\t$25\n\tsubu $29,64\n\tsw\t$31,64-1*4($29)\n\tsw\t$30,64-2*4($29)\n\tsw\t$23,64-3*4($29)\n\tsw\t$22,64-4*4($29)\n\tsw\t$21,64-5*4($29)\n\tsw\t$20,64-6*4($29)\n\tsw\t$19,64-7*4($29)\n\tsw\t$18,64-8*4($29)\n\tsw\t$17,64-9*4($29)\n\tsw\t$16,64-10*4($29)\n\t.set\treorder\n\tla\t$7,AES_Td\t\t# PIC-ified 'load address'\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\n\tbal\t_mips_AES_decrypt\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n#else\n\tswr\t$8,0+0($5)\n\tswr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:29", "text": "bal\t_mips_AES_decrypt\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n#else\n\tswr\t$8,0+0($5)\n\tswr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder\n\tlw\t$31,64-1*4($29)\n\tlw\t$30,64-2*4($29)\n\tlw\t$23,64-3*4($29)\n\tlw\t$22,64-4*4($29)\n\tlw\t$21,64-5*4($29)\n\tlw\t$20,64-6*4($29)\n\tlw\t$19,64-7*4($29)\n\tlw\t$18,64-8*4($29)\n\tlw\t$17,64-9*4($29)\n\tlw\t$16,64-10*4($29)\n\tjr\t$31\n\taddu $29,64\n.end\tAES_decrypt\n.align\t5\n.ent\t_mips_AES_set_encrypt_key\n_mips_AES_set_encrypt_key:\n\t.frame\t$29,0,$31\n\t.set\tnoreorder\n\tbeqz\t$4,.Lekey_done\n\tli\t$2,-1\n\tbeqz\t$6,.Lekey_done\n\taddu $3,$7,256\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\t\t# load 128 bits\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\t# load 128 bits\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\tli\t$1,128", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:30", "text": "beqz\t$6,.Lekey_done\n\taddu $3,$7,256\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\t\t# load 128 bits\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\t# load 128 bits\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\tli\t$1,128\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L128bits\n\tli\t$30,10\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$12,16($4)\t\t# load 192 bits\n\tlw\t$13,20($4)\n#else\n\tlwl\t$12,16+3($4)\t# load 192 bits\n\tlwl\t$13,20+3($4)\n\tlwr\t$12,16+0($4)\n\tlwr\t$13,20+0($4)\n#endif\n\tli\t$1,192\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L192bits\n\tli\t$30,8\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$14,24($4)\t\t# load 256 bits\n\tlw\t$15,28($4)\n#else\n\tlwl\t$14,24+3($4)\t# load 256 bits\n\tlwl\t$15,28+3($4)\n\tlwr\t$14,24+0($4)\n\tlwr\t$15,28+0($4)\n#endif\n\tli\t$1,256\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L256bits\n\tli\t$30,7\n\n\tb\t.Lekey_done\n\tli\t$2,-2\n\n.align\t4\n.L128bits:\n\t.set\treorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:31", "text": "#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$14,24($4)\t\t# load 256 bits\n\tlw\t$15,28($4)\n#else\n\tlwl\t$14,24+3($4)\t# load 256 bits\n\tlwl\t$15,28+3($4)\n\tlwr\t$14,24+0($4)\n\tlwr\t$15,28+0($4)\n#endif\n\tli\t$1,256\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L256bits\n\tli\t$30,7\n\n\tb\t.Lekey_done\n\tli\t$2,-2\n\n.align\t4\n.L128bits:\n\t.set\treorder\n\tsrl\t$1,$11,16\n\tsrl\t$2,$11,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$11,0xff\n\tsrl\t$25,$11,24\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsubu\t$30,1\n\taddu $6,16\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\n\t.set\tnoreorder\n\tbnez\t$30,.L128bits", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:32", "text": "addu $6,16\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\n\t.set\tnoreorder\n\tbnez\t$30,.L128bits\n\taddu $3,4\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tli\t$30,10\n\tsw\t$11,12($6)\n\tli\t$2,0\n\tsw\t$30,80($6)\n\tb\t.Lekey_done\n\tsubu $6,10*16\n\n.align\t4\n.L192bits:\n\t.set\treorder\n\tsrl\t$1,$13,16\n\tsrl\t$2,$13,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$13,0xff\n\tsrl\t$25,$13,24\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsw\t$12,16($6)\n\tsw\t$13,20($6)\n\tsubu\t$30,1\n\taddu $6,24\n\n\tsll\t$1,$1,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:33", "text": "srl\t$25,$13,24\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsw\t$12,16($6)\n\tsw\t$13,20($6)\n\tsubu\t$30,1\n\taddu $6,24\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\txor\t$12,$11\n\txor\t$13,$12\n\n\t.set\tnoreorder\n\tbnez\t$30,.L192bits\n\taddu $3,4\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tli\t$30,12\n\tsw\t$11,12($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tb\t.Lekey_done\n\tsubu $6,12*16\n\n.align\t4\n.L256bits:\n\t.set\treorder\n\tsrl\t$1,$15,16\n\tsrl\t$2,$15,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$15,0xff\n\tsrl\t$25,$15,24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:34", "text": "sw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tli\t$30,12\n\tsw\t$11,12($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tb\t.Lekey_done\n\tsubu $6,12*16\n\n.align\t4\n.L256bits:\n\t.set\treorder\n\tsrl\t$1,$15,16\n\tsrl\t$2,$15,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$15,0xff\n\tsrl\t$25,$15,24\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsw\t$12,16($6)\n\tsw\t$13,20($6)\n\tsw\t$14,24($6)\n\tsw\t$15,28($6)\n\tsubu\t$30,1\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\tbeqz\t$30,.L256bits_done\n\n\tsrl\t$1,$11,24\n\tsrl\t$2,$11,16\n\tsrl\t$24,$11,8\n\tand\t$25,$11,0xff", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:35", "text": "#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\tbeqz\t$30,.L256bits_done\n\n\tsrl\t$1,$11,24\n\tsrl\t$2,$11,16\n\tsrl\t$24,$11,8\n\tand\t$25,$11,0xff\n\tand\t$2,0xff\n\tand\t$24,0xff\n\taddu $1,$7\n\taddu $2,$7\n\taddu $24,$7\n\taddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\tsll\t$1,24\n\tsll\t$2,16\n\tsll\t$24,8\n\n\txor\t$12,$1\n\txor\t$12,$2\n\txor\t$12,$24\n\txor\t$12,$25\n\n\txor\t$13,$12\n\txor\t$14,$13\n\txor\t$15,$14\n\n\taddu $6,32\n\t.set\tnoreorder\n\tb\t.L256bits\n\taddu $3,4\n\n.L256bits_done:\n\tsw\t$8,32($6)\n\tsw\t$9,36($6)\n\tsw\t$10,40($6)\n\tli\t$30,14\n\tsw\t$11,44($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tsubu $6,12*16\n\n.Lekey_done:\n\tjr\t$31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:36", "text": "xor\t$14,$13\n\txor\t$15,$14\n\n\taddu $6,32\n\t.set\tnoreorder\n\tb\t.L256bits\n\taddu $3,4\n\n.L256bits_done:\n\tsw\t$8,32($6)\n\tsw\t$9,36($6)\n\tsw\t$10,40($6)\n\tli\t$30,14\n\tsw\t$11,44($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tsubu $6,12*16\n\n.Lekey_done:\n\tjr\t$31\n\tnop\n.end\t_mips_AES_set_encrypt_key\n\n.globl\tAES_set_encrypt_key\n.ent\tAES_set_encrypt_key\nAES_set_encrypt_key:\n\t.frame\t$29,32,$31\n\t.mask\t0xc0000000,-4\n\t.set\tnoreorder\n\t.cpload\t$25\n\tsubu $29,32\n\tsw\t$31,32-1*4($29)\n\tsw\t$30,32-2*4($29)\n\t.set\treorder\n\tla\t$7,AES_Te4\t\t# PIC-ified 'load address'\n\n\tbal\t_mips_AES_set_encrypt_key\n\n\t.set\tnoreorder\n\tmove\t$4,$2\n\tlw\t$31,32-1*4($29)\n\tlw\t$30,32-2*4($29)\n\tjr\t$31\n\taddu $29,32\n.end\tAES_set_encrypt_key\n.align\t5\n.globl\tAES_set_decrypt_key\n.ent\tAES_set_decrypt_key\nAES_set_decrypt_key:\n\t.frame\t$29,32,$31\n\t.mask\t0xc0000000,-4\n\t.set\tnoreorder\n\t.cpload\t$25\n\tsubu $29,32\n\tsw\t$31,32-1*4($29)\n\tsw\t$30,32-2*4($29)\n\t.set\treorder\n\tla\t$7,AES_Te4\t\t# PIC-ified 'load address'\n\n\tbal\t_mips_AES_set_encrypt_key", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:37", "text": "lw\t$31,32-1*4($29)\n\tlw\t$30,32-2*4($29)\n\tjr\t$31\n\taddu $29,32\n.end\tAES_set_encrypt_key\n.align\t5\n.globl\tAES_set_decrypt_key\n.ent\tAES_set_decrypt_key\nAES_set_decrypt_key:\n\t.frame\t$29,32,$31\n\t.mask\t0xc0000000,-4\n\t.set\tnoreorder\n\t.cpload\t$25\n\tsubu $29,32\n\tsw\t$31,32-1*4($29)\n\tsw\t$30,32-2*4($29)\n\t.set\treorder\n\tla\t$7,AES_Te4\t\t# PIC-ified 'load address'\n\n\tbal\t_mips_AES_set_encrypt_key\n\n\tbltz\t$2,.Ldkey_done\n\n\tsll\t$1,$30,4\n\taddu $4,$6,0\n\taddu $5,$6,$1\n.align\t4\n.Lswap:\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n\tlw\t$12,0($5)\n\tlw\t$13,4($5)\n\tlw\t$14,8($5)\n\tlw\t$15,12($5)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n\taddu $4,16\n\tsubu $5,16\n\tsw\t$12,-16($4)\n\tsw\t$13,-12($4)\n\tsw\t$14,-8($4)\n\tsw\t$15,-4($4)\n\tbne\t$4,$5,.Lswap\n\n\tlw\t$8,16($6)\t\t# modulo-scheduled\n\tlui\t$2,0x8080\n\tsubu\t$30,1\n\tor\t$2,0x8080\n\tsll\t$30,2\n\taddu $6,16\n\tlui\t$25,0x1b1b\n\tnor\t$24,$0,$2\n\tor\t$25,0x1b1b\n.align\t4\n.Lmix:\n\tand\t$1,$8,$2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:38", "text": "addu $4,16\n\tsubu $5,16\n\tsw\t$12,-16($4)\n\tsw\t$13,-12($4)\n\tsw\t$14,-8($4)\n\tsw\t$15,-4($4)\n\tbne\t$4,$5,.Lswap\n\n\tlw\t$8,16($6)\t\t# modulo-scheduled\n\tlui\t$2,0x8080\n\tsubu\t$30,1\n\tor\t$2,0x8080\n\tsll\t$30,2\n\taddu $6,16\n\tlui\t$25,0x1b1b\n\tnor\t$24,$0,$2\n\tor\t$25,0x1b1b\n.align\t4\n.Lmix:\n\tand\t$1,$8,$2\n\tand\t$9,$8,$24\n\tsrl\t$10,$1,7\n\taddu\t$9,$9\t\t# tp2<<1\n\tsubu\t$1,$10\n\tand\t$1,$25\n\txor\t$9,$1\n\n\tand\t$1,$9,$2\n\tand\t$10,$9,$24\n\tsrl\t$11,$1,7\n\taddu\t$10,$10\t\t# tp4<<1\n\tsubu\t$1,$11\n\tand\t$1,$25\n\txor\t$10,$1\n\n\tand\t$1,$10,$2\n\tand\t$11,$10,$24\n\tsrl\t$12,$1,7\n\taddu\t$11,$11\t\t# tp8<<1\n\tsubu\t$1,$12\n\tand\t$1,$25\n\txor\t$11,$1\n\n\txor\t$12,$11,$8\n\txor\t$15,$11,$10\n\txor\t$13,$12,$9\n\txor\t$14,$12,$10\n\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$8,$14,16\n\t xor\t$15,$9\n\trotr\t$9,$12,24\n\txor\t$15,$8\n\trotr\t$10,$13,8\n\txor\t$15,$9\n\tlw\t$8,4($6)\t\t# modulo-scheduled\n\txor\t$15,$10\n#else\n\tsll\t$8,$14,16\n\t xor\t$15,$9", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:39", "text": "and\t$1,$25\n\txor\t$11,$1\n\n\txor\t$12,$11,$8\n\txor\t$15,$11,$10\n\txor\t$13,$12,$9\n\txor\t$14,$12,$10\n\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$8,$14,16\n\t xor\t$15,$9\n\trotr\t$9,$12,24\n\txor\t$15,$8\n\trotr\t$10,$13,8\n\txor\t$15,$9\n\tlw\t$8,4($6)\t\t# modulo-scheduled\n\txor\t$15,$10\n#else\n\tsll\t$8,$14,16\n\t xor\t$15,$9\n\tsrl\t$9,$14,16\n\txor\t$15,$8\n\tsll\t$8,$12,8\n\txor\t$15,$9\n\tsrl\t$9,$12,24\n\txor\t$15,$8\n\tsll\t$8,$13,24\n\txor\t$15,$9\n\tsrl\t$9,$13,8\n\txor\t$15,$8\n\tlw\t$8,4($6)\t\t# modulo-scheduled\n\txor\t$15,$9\n#endif\n\tsubu\t$30,1\n\tsw\t$15,0($6)\n\taddu $6,4\n\tbnez\t$30,.Lmix\n\n\tli\t$2,0\n.Ldkey_done:\n\t.set\tnoreorder\n\tmove\t$4,$2\n\tlw\t$31,32-1*4($29)\n\tlw\t$30,32-2*4($29)\n\tjr\t$31\n\taddu $29,32\n.end\tAES_set_decrypt_key\n.rdata\n.align\t10\nAES_Te:\n.byte\t0xc6,0x63,0x63,0xa5,\t0xf8,0x7c,0x7c,0x84\t# Te0\n.byte\t0xee,0x77,0x77,0x99,\t0xf6,0x7b,0x7b,0x8d\n.byte\t0xff,0xf2,0xf2,0x0d,\t0xd6,0x6b,0x6b,0xbd\n.byte\t0xde,0x6f,0x6f,0xb1,\t0x91,0xc5,0xc5,0x54\n.byte\t0x60,0x30,0x30,0x50,\t0x02,0x01,0x01,0x03\n.byte\t0xce,0x67,0x67,0xa9,\t0x56,0x2b,0x2b,0x7d\n.byte\t0xe7,0xfe,0xfe,0x19,\t0xb5,0xd7,0xd7,0x62\n.byte\t0x4d,0xab,0xab,0xe6,\t0xec,0x76,0x76,0x9a\n.byte\t0x8f,0xca,0xca,0x45,\t0x1f,0x82,0x82,0x9d\n.byte\t0x89,0xc9,0xc9,0x40,\t0xfa,0x7d,0x7d,0x87", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:40", "text": ".set\tnoreorder\n\tmove\t$4,$2\n\tlw\t$31,32-1*4($29)\n\tlw\t$30,32-2*4($29)\n\tjr\t$31\n\taddu $29,32\n.end\tAES_set_decrypt_key\n.rdata\n.align\t10\nAES_Te:\n.byte\t0xc6,0x63,0x63,0xa5,\t0xf8,0x7c,0x7c,0x84\t# Te0\n.byte\t0xee,0x77,0x77,0x99,\t0xf6,0x7b,0x7b,0x8d\n.byte\t0xff,0xf2,0xf2,0x0d,\t0xd6,0x6b,0x6b,0xbd\n.byte\t0xde,0x6f,0x6f,0xb1,\t0x91,0xc5,0xc5,0x54\n.byte\t0x60,0x30,0x30,0x50,\t0x02,0x01,0x01,0x03\n.byte\t0xce,0x67,0x67,0xa9,\t0x56,0x2b,0x2b,0x7d\n.byte\t0xe7,0xfe,0xfe,0x19,\t0xb5,0xd7,0xd7,0x62\n.byte\t0x4d,0xab,0xab,0xe6,\t0xec,0x76,0x76,0x9a\n.byte\t0x8f,0xca,0xca,0x45,\t0x1f,0x82,0x82,0x9d\n.byte\t0x89,0xc9,0xc9,0x40,\t0xfa,0x7d,0x7d,0x87\n.byte\t0xef,0xfa,0xfa,0x15,\t0xb2,0x59,0x59,0xeb\n.byte\t0x8e,0x47,0x47,0xc9,\t0xfb,0xf0,0xf0,0x0b\n.byte\t0x41,0xad,0xad,0xec,\t0xb3,0xd4,0xd4,0x67\n.byte\t0x5f,0xa2,0xa2,0xfd,\t0x45,0xaf,0xaf,0xea\n.byte\t0x23,0x9c,0x9c,0xbf,\t0x53,0xa4,0xa4,0xf7\n.byte\t0xe4,0x72,0x72,0x96,\t0x9b,0xc0,0xc0,0x5b\n.byte\t0x75,0xb7,0xb7,0xc2,\t0xe1,0xfd,0xfd,0x1c\n.byte\t0x3d,0x93,0x93,0xae,\t0x4c,0x26,0x26,0x6a\n.byte\t0x6c,0x36,0x36,0x5a,\t0x7e,0x3f,0x3f,0x41\n.byte\t0xf5,0xf7,0xf7,0x02,\t0x83,0xcc,0xcc,0x4f\n.byte\t0x68,0x34,0x34,0x5c,\t0x51,0xa5,0xa5,0xf4\n.byte\t0xd1,0xe5,0xe5,0x34,\t0xf9,0xf1,0xf1,0x08\n.byte\t0xe2,0x71,0x71,0x93,\t0xab,0xd8,0xd8,0x73\n.byte\t0x62,0x31,0x31,0x53,\t0x2a,0x15,0x15,0x3f\n.byte\t0x08,0x04,0x04,0x0c,\t0x95,0xc7,0xc7,0x52\n.byte\t0x46,0x23,0x23,0x65,\t0x9d,0xc3,0xc3,0x5e\n.byte\t0x30,0x18,0x18,0x28,\t0x37,0x96,0x96,0xa1\n.byte\t0x0a,0x05,0x05,0x0f,\t0x2f,0x9a,0x9a,0xb5\n.byte\t0x0e,0x07,0x07,0x09,\t0x24,0x12,0x12,0x36\n.byte\t0x1b,0x80,0x80,0x9b,\t0xdf,0xe2,0xe2,0x3d\n.byte\t0xcd,0xeb,0xeb,0x26,\t0x4e,0x27,0x27,0x69\n.byte\t0x7f,0xb2,0xb2,0xcd,\t0xea,0x75,0x75,0x9f\n.byte\t0x12,0x09,0x09,0x1b,\t0x1d,0x83,0x83,0x9e\n.byte\t0x58,0x2c,0x2c,0x74,\t0x34,0x1a,0x1a,0x2e\n.byte\t0x36,0x1b,0x1b,0x2d,\t0xdc,0x6e,0x6e,0xb2\n.byte\t0xb4,0x5a,0x5a,0xee,\t0x5b,0xa0,0xa0,0xfb\n.byte\t0xa4,0x52,0x52,0xf6,\t0x76,0x3b,0x3b,0x4d\n.byte\t0xb7,0xd6,0xd6,0x61,\t0x7d,0xb3,0xb3,0xce\n.byte\t0x52,0x29,0x29,0x7b,\t0xdd,0xe3,0xe3,0x3e\n.byte\t0x5e,0x2f,0x2f,0x71,\t0x13,0x84,0x84,0x97\n.byte\t0xa6,0x53,0x53,0xf5,\t0xb9,0xd1,0xd1,0x68\n.byte\t0x00,0x00,0x00,0x00,\t0xc1,0xed,0xed,0x2c\n.byte\t0x40,0x20,0x20,0x60,\t0xe3,0xfc,0xfc,0x1f\n.byte\t0x79,0xb1,0xb1,0xc8,\t0xb6,0x5b,0x5b,0xed\n.byte\t0xd4,0x6a,0x6a,0xbe,\t0x8d,0xcb,0xcb,0x46\n.byte\t0x67,0xbe,0xbe,0xd9,\t0x72,0x39,0x39,0x4b\n.byte\t0x94,0x4a,0x4a,0xde,\t0x98,0x4c,0x4c,0xd4\n.byte\t0xb0,0x58,0x58,0xe8,\t0x85,0xcf,0xcf,0x4a\n.byte\t0xbb,0xd0,0xd0,0x6b,\t0xc5,0xef,0xef,0x2a\n.byte\t0x4f,0xaa,0xaa,0xe5,\t0xed,0xfb,0xfb,0x16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:41", "text": ".byte\t0xcd,0xeb,0xeb,0x26,\t0x4e,0x27,0x27,0x69\n.byte\t0x7f,0xb2,0xb2,0xcd,\t0xea,0x75,0x75,0x9f\n.byte\t0x12,0x09,0x09,0x1b,\t0x1d,0x83,0x83,0x9e\n.byte\t0x58,0x2c,0x2c,0x74,\t0x34,0x1a,0x1a,0x2e\n.byte\t0x36,0x1b,0x1b,0x2d,\t0xdc,0x6e,0x6e,0xb2\n.byte\t0xb4,0x5a,0x5a,0xee,\t0x5b,0xa0,0xa0,0xfb\n.byte\t0xa4,0x52,0x52,0xf6,\t0x76,0x3b,0x3b,0x4d\n.byte\t0xb7,0xd6,0xd6,0x61,\t0x7d,0xb3,0xb3,0xce\n.byte\t0x52,0x29,0x29,0x7b,\t0xdd,0xe3,0xe3,0x3e\n.byte\t0x5e,0x2f,0x2f,0x71,\t0x13,0x84,0x84,0x97\n.byte\t0xa6,0x53,0x53,0xf5,\t0xb9,0xd1,0xd1,0x68\n.byte\t0x00,0x00,0x00,0x00,\t0xc1,0xed,0xed,0x2c\n.byte\t0x40,0x20,0x20,0x60,\t0xe3,0xfc,0xfc,0x1f\n.byte\t0x79,0xb1,0xb1,0xc8,\t0xb6,0x5b,0x5b,0xed\n.byte\t0xd4,0x6a,0x6a,0xbe,\t0x8d,0xcb,0xcb,0x46\n.byte\t0x67,0xbe,0xbe,0xd9,\t0x72,0x39,0x39,0x4b\n.byte\t0x94,0x4a,0x4a,0xde,\t0x98,0x4c,0x4c,0xd4\n.byte\t0xb0,0x58,0x58,0xe8,\t0x85,0xcf,0xcf,0x4a\n.byte\t0xbb,0xd0,0xd0,0x6b,\t0xc5,0xef,0xef,0x2a\n.byte\t0x4f,0xaa,0xaa,0xe5,\t0xed,0xfb,0xfb,0x16\n.byte\t0x86,0x43,0x43,0xc5,\t0x9a,0x4d,0x4d,0xd7\n.byte\t0x66,0x33,0x33,0x55,\t0x11,0x85,0x85,0x94\n.byte\t0x8a,0x45,0x45,0xcf,\t0xe9,0xf9,0xf9,0x10\n.byte\t0x04,0x02,0x02,0x06,\t0xfe,0x7f,0x7f,0x81\n.byte\t0xa0,0x50,0x50,0xf0,\t0x78,0x3c,0x3c,0x44\n.byte\t0x25,0x9f,0x9f,0xba,\t0x4b,0xa8,0xa8,0xe3\n.byte\t0xa2,0x51,0x51,0xf3,\t0x5d,0xa3,0xa3,0xfe\n.byte\t0x80,0x40,0x40,0xc0,\t0x05,0x8f,0x8f,0x8a\n.byte\t0x3f,0x92,0x92,0xad,\t0x21,0x9d,0x9d,0xbc\n.byte\t0x70,0x38,0x38,0x48,\t0xf1,0xf5,0xf5,0x04\n.byte\t0x63,0xbc,0xbc,0xdf,\t0x77,0xb6,0xb6,0xc1\n.byte\t0xaf,0xda,0xda,0x75,\t0x42,0x21,0x21,0x63\n.byte\t0x20,0x10,0x10,0x30,\t0xe5,0xff,0xff,0x1a\n.byte\t0xfd,0xf3,0xf3,0x0e,\t0xbf,0xd2,0xd2,0x6d\n.byte\t0x81,0xcd,0xcd,0x4c,\t0x18,0x0c,0x0c,0x14\n.byte\t0x26,0x13,0x13,0x35,\t0xc3,0xec,0xec,0x2f\n.byte\t0xbe,0x5f,0x5f,0xe1,\t0x35,0x97,0x97,0xa2\n.byte\t0x88,0x44,0x44,0xcc,\t0x2e,0x17,0x17,0x39\n.byte\t0x93,0xc4,0xc4,0x57,\t0x55,0xa7,0xa7,0xf2\n.byte\t0xfc,0x7e,0x7e,0x82,\t0x7a,0x3d,0x3d,0x47\n.byte\t0xc8,0x64,0x64,0xac,\t0xba,0x5d,0x5d,0xe7\n.byte\t0x32,0x19,0x19,0x2b,\t0xe6,0x73,0x73,0x95\n.byte\t0xc0,0x60,0x60,0xa0,\t0x19,0x81,0x81,0x98\n.byte\t0x9e,0x4f,0x4f,0xd1,\t0xa3,0xdc,0xdc,0x7f\n.byte\t0x44,0x22,0x22,0x66,\t0x54,0x2a,0x2a,0x7e\n.byte\t0x3b,0x90,0x90,0xab,\t0x0b,0x88,0x88,0x83\n.byte\t0x8c,0x46,0x46,0xca,\t0xc7,0xee,0xee,0x29\n.byte\t0x6b,0xb8,0xb8,0xd3,\t0x28,0x14,0x14,0x3c\n.byte\t0xa7,0xde,0xde,0x79,\t0xbc,0x5e,0x5e,0xe2\n.byte\t0x16,0x0b,0x0b,0x1d,\t0xad,0xdb,0xdb,0x76\n.byte\t0xdb,0xe0,0xe0,0x3b,\t0x64,0x32,0x32,0x56\n.byte\t0x74,0x3a,0x3a,0x4e,\t0x14,0x0a,0x0a,0x1e\n.byte\t0x92,0x49,0x49,0xdb,\t0x0c,0x06,0x06,0x0a\n.byte\t0x48,0x24,0x24,0x6c,\t0xb8,0x5c,0x5c,0xe4\n.byte\t0x9f,0xc2,0xc2,0x5d,\t0xbd,0xd3,0xd3,0x6e\n.byte\t0x43,0xac,0xac,0xef,\t0xc4,0x62,0x62,0xa6\n.byte\t0x39,0x91,0x91,0xa8,\t0x31,0x95,0x95,0xa4\n.byte\t0xd3,0xe4,0xe4,0x37,\t0xf2,0x79,0x79,0x8b\n.byte\t0xd5,0xe7,0xe7,0x32,\t0x8b,0xc8,0xc8,0x43\n.byte\t0x6e,0x37,0x37,0x59,\t0xda,0x6d,0x6d,0xb7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:42", "text": ".byte\t0xc8,0x64,0x64,0xac,\t0xba,0x5d,0x5d,0xe7\n.byte\t0x32,0x19,0x19,0x2b,\t0xe6,0x73,0x73,0x95\n.byte\t0xc0,0x60,0x60,0xa0,\t0x19,0x81,0x81,0x98\n.byte\t0x9e,0x4f,0x4f,0xd1,\t0xa3,0xdc,0xdc,0x7f\n.byte\t0x44,0x22,0x22,0x66,\t0x54,0x2a,0x2a,0x7e\n.byte\t0x3b,0x90,0x90,0xab,\t0x0b,0x88,0x88,0x83\n.byte\t0x8c,0x46,0x46,0xca,\t0xc7,0xee,0xee,0x29\n.byte\t0x6b,0xb8,0xb8,0xd3,\t0x28,0x14,0x14,0x3c\n.byte\t0xa7,0xde,0xde,0x79,\t0xbc,0x5e,0x5e,0xe2\n.byte\t0x16,0x0b,0x0b,0x1d,\t0xad,0xdb,0xdb,0x76\n.byte\t0xdb,0xe0,0xe0,0x3b,\t0x64,0x32,0x32,0x56\n.byte\t0x74,0x3a,0x3a,0x4e,\t0x14,0x0a,0x0a,0x1e\n.byte\t0x92,0x49,0x49,0xdb,\t0x0c,0x06,0x06,0x0a\n.byte\t0x48,0x24,0x24,0x6c,\t0xb8,0x5c,0x5c,0xe4\n.byte\t0x9f,0xc2,0xc2,0x5d,\t0xbd,0xd3,0xd3,0x6e\n.byte\t0x43,0xac,0xac,0xef,\t0xc4,0x62,0x62,0xa6\n.byte\t0x39,0x91,0x91,0xa8,\t0x31,0x95,0x95,0xa4\n.byte\t0xd3,0xe4,0xe4,0x37,\t0xf2,0x79,0x79,0x8b\n.byte\t0xd5,0xe7,0xe7,0x32,\t0x8b,0xc8,0xc8,0x43\n.byte\t0x6e,0x37,0x37,0x59,\t0xda,0x6d,0x6d,0xb7\n.byte\t0x01,0x8d,0x8d,0x8c,\t0xb1,0xd5,0xd5,0x64\n.byte\t0x9c,0x4e,0x4e,0xd2,\t0x49,0xa9,0xa9,0xe0\n.byte\t0xd8,0x6c,0x6c,0xb4,\t0xac,0x56,0x56,0xfa\n.byte\t0xf3,0xf4,0xf4,0x07,\t0xcf,0xea,0xea,0x25\n.byte\t0xca,0x65,0x65,0xaf,\t0xf4,0x7a,0x7a,0x8e\n.byte\t0x47,0xae,0xae,0xe9,\t0x10,0x08,0x08,0x18\n.byte\t0x6f,0xba,0xba,0xd5,\t0xf0,0x78,0x78,0x88\n.byte\t0x4a,0x25,0x25,0x6f,\t0x5c,0x2e,0x2e,0x72\n.byte\t0x38,0x1c,0x1c,0x24,\t0x57,0xa6,0xa6,0xf1\n.byte\t0x73,0xb4,0xb4,0xc7,\t0x97,0xc6,0xc6,0x51\n.byte\t0xcb,0xe8,0xe8,0x23,\t0xa1,0xdd,0xdd,0x7c\n.byte\t0xe8,0x74,0x74,0x9c,\t0x3e,0x1f,0x1f,0x21\n.byte\t0x96,0x4b,0x4b,0xdd,\t0x61,0xbd,0xbd,0xdc\n.byte\t0x0d,0x8b,0x8b,0x86,\t0x0f,0x8a,0x8a,0x85\n.byte\t0xe0,0x70,0x70,0x90,\t0x7c,0x3e,0x3e,0x42\n.byte\t0x71,0xb5,0xb5,0xc4,\t0xcc,0x66,0x66,0xaa\n.byte\t0x90,0x48,0x48,0xd8,\t0x06,0x03,0x03,0x05\n.byte\t0xf7,0xf6,0xf6,0x01,\t0x1c,0x0e,0x0e,0x12\n.byte\t0xc2,0x61,0x61,0xa3,\t0x6a,0x35,0x35,0x5f\n.byte\t0xae,0x57,0x57,0xf9,\t0x69,0xb9,0xb9,0xd0\n.byte\t0x17,0x86,0x86,0x91,\t0x99,0xc1,0xc1,0x58\n.byte\t0x3a,0x1d,0x1d,0x27,\t0x27,0x9e,0x9e,0xb9\n.byte\t0xd9,0xe1,0xe1,0x38,\t0xeb,0xf8,0xf8,0x13\n.byte\t0x2b,0x98,0x98,0xb3,\t0x22,0x11,0x11,0x33\n.byte\t0xd2,0x69,0x69,0xbb,\t0xa9,0xd9,0xd9,0x70\n.byte\t0x07,0x8e,0x8e,0x89,\t0x33,0x94,0x94,0xa7\n.byte\t0x2d,0x9b,0x9b,0xb6,\t0x3c,0x1e,0x1e,0x22\n.byte\t0x15,0x87,0x87,0x92,\t0xc9,0xe9,0xe9,0x20\n.byte\t0x87,0xce,0xce,0x49,\t0xaa,0x55,0x55,0xff\n.byte\t0x50,0x28,0x28,0x78,\t0xa5,0xdf,0xdf,0x7a\n.byte\t0x03,0x8c,0x8c,0x8f,\t0x59,0xa1,0xa1,0xf8\n.byte\t0x09,0x89,0x89,0x80,\t0x1a,0x0d,0x0d,0x17\n.byte\t0x65,0xbf,0xbf,0xda,\t0xd7,0xe6,0xe6,0x31\n.byte\t0x84,0x42,0x42,0xc6,\t0xd0,0x68,0x68,0xb8\n.byte\t0x82,0x41,0x41,0xc3,\t0x29,0x99,0x99,0xb0\n.byte\t0x5a,0x2d,0x2d,0x77,\t0x1e,0x0f,0x0f,0x11\n.byte\t0x7b,0xb0,0xb0,0xcb,\t0xa8,0x54,0x54,0xfc\n.byte\t0x6d,0xbb,0xbb,0xd6,\t0x2c,0x16,0x16,0x3a\n\nAES_Td:", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:43", "text": ".byte\t0x17,0x86,0x86,0x91,\t0x99,0xc1,0xc1,0x58\n.byte\t0x3a,0x1d,0x1d,0x27,\t0x27,0x9e,0x9e,0xb9\n.byte\t0xd9,0xe1,0xe1,0x38,\t0xeb,0xf8,0xf8,0x13\n.byte\t0x2b,0x98,0x98,0xb3,\t0x22,0x11,0x11,0x33\n.byte\t0xd2,0x69,0x69,0xbb,\t0xa9,0xd9,0xd9,0x70\n.byte\t0x07,0x8e,0x8e,0x89,\t0x33,0x94,0x94,0xa7\n.byte\t0x2d,0x9b,0x9b,0xb6,\t0x3c,0x1e,0x1e,0x22\n.byte\t0x15,0x87,0x87,0x92,\t0xc9,0xe9,0xe9,0x20\n.byte\t0x87,0xce,0xce,0x49,\t0xaa,0x55,0x55,0xff\n.byte\t0x50,0x28,0x28,0x78,\t0xa5,0xdf,0xdf,0x7a\n.byte\t0x03,0x8c,0x8c,0x8f,\t0x59,0xa1,0xa1,0xf8\n.byte\t0x09,0x89,0x89,0x80,\t0x1a,0x0d,0x0d,0x17\n.byte\t0x65,0xbf,0xbf,0xda,\t0xd7,0xe6,0xe6,0x31\n.byte\t0x84,0x42,0x42,0xc6,\t0xd0,0x68,0x68,0xb8\n.byte\t0x82,0x41,0x41,0xc3,\t0x29,0x99,0x99,0xb0\n.byte\t0x5a,0x2d,0x2d,0x77,\t0x1e,0x0f,0x0f,0x11\n.byte\t0x7b,0xb0,0xb0,0xcb,\t0xa8,0x54,0x54,0xfc\n.byte\t0x6d,0xbb,0xbb,0xd6,\t0x2c,0x16,0x16,0x3a\n\nAES_Td:\n.byte\t0x51,0xf4,0xa7,0x50,\t0x7e,0x41,0x65,0x53\t# Td0\n.byte\t0x1a,0x17,0xa4,0xc3,\t0x3a,0x27,0x5e,0x96\n.byte\t0x3b,0xab,0x6b,0xcb,\t0x1f,0x9d,0x45,0xf1\n.byte\t0xac,0xfa,0x58,0xab,\t0x4b,0xe3,0x03,0x93\n.byte\t0x20,0x30,0xfa,0x55,\t0xad,0x76,0x6d,0xf6\n.byte\t0x88,0xcc,0x76,0x91,\t0xf5,0x02,0x4c,0x25\n.byte\t0x4f,0xe5,0xd7,0xfc,\t0xc5,0x2a,0xcb,0xd7\n.byte\t0x26,0x35,0x44,0x80,\t0xb5,0x62,0xa3,0x8f\n.byte\t0xde,0xb1,0x5a,0x49,\t0x25,0xba,0x1b,0x67\n.byte\t0x45,0xea,0x0e,0x98,\t0x5d,0xfe,0xc0,0xe1\n.byte\t0xc3,0x2f,0x75,0x02,\t0x81,0x4c,0xf0,0x12\n.byte\t0x8d,0x46,0x97,0xa3,\t0x6b,0xd3,0xf9,0xc6\n.byte\t0x03,0x8f,0x5f,0xe7,\t0x15,0x92,0x9c,0x95\n.byte\t0xbf,0x6d,0x7a,0xeb,\t0x95,0x52,0x59,0xda\n.byte\t0xd4,0xbe,0x83,0x2d,\t0x58,0x74,0x21,0xd3\n.byte\t0x49,0xe0,0x69,0x29,\t0x8e,0xc9,0xc8,0x44\n.byte\t0x75,0xc2,0x89,0x6a,\t0xf4,0x8e,0x79,0x78\n.byte\t0x99,0x58,0x3e,0x6b,\t0x27,0xb9,0x71,0xdd\n.byte\t0xbe,0xe1,0x4f,0xb6,\t0xf0,0x88,0xad,0x17\n.byte\t0xc9,0x20,0xac,0x66,\t0x7d,0xce,0x3a,0xb4\n.byte\t0x63,0xdf,0x4a,0x18,\t0xe5,0x1a,0x31,0x82\n.byte\t0x97,0x51,0x33,0x60,\t0x62,0x53,0x7f,0x45\n.byte\t0xb1,0x64,0x77,0xe0,\t0xbb,0x6b,0xae,0x84\n.byte\t0xfe,0x81,0xa0,0x1c,\t0xf9,0x08,0x2b,0x94\n.byte\t0x70,0x48,0x68,0x58,\t0x8f,0x45,0xfd,0x19\n.byte\t0x94,0xde,0x6c,0x87,\t0x52,0x7b,0xf8,0xb7\n.byte\t0xab,0x73,0xd3,0x23,\t0x72,0x4b,0x02,0xe2\n.byte\t0xe3,0x1f,0x8f,0x57,\t0x66,0x55,0xab,0x2a\n.byte\t0xb2,0xeb,0x28,0x07,\t0x2f,0xb5,0xc2,0x03\n.byte\t0x86,0xc5,0x7b,0x9a,\t0xd3,0x37,0x08,0xa5\n.byte\t0x30,0x28,0x87,0xf2,\t0x23,0xbf,0xa5,0xb2\n.byte\t0x02,0x03,0x6a,0xba,\t0xed,0x16,0x82,0x5c\n.byte\t0x8a,0xcf,0x1c,0x2b,\t0xa7,0x79,0xb4,0x92\n.byte\t0xf3,0x07,0xf2,0xf0,\t0x4e,0x69,0xe2,0xa1\n.byte\t0x65,0xda,0xf4,0xcd,\t0x06,0x05,0xbe,0xd5\n.byte\t0xd1,0x34,0x62,0x1f,\t0xc4,0xa6,0xfe,0x8a\n.byte\t0x34,0x2e,0x53,0x9d,\t0xa2,0xf3,0x55,0xa0\n.byte\t0x05,0x8a,0xe1,0x32,\t0xa4,0xf6,0xeb,0x75\n.byte\t0x0b,0x83,0xec,0x39,\t0x40,0x60,0xef,0xaa\n.byte\t0x5e,0x71,0x9f,0x06,\t0xbd,0x6e,0x10,0x51", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:44", "text": ".byte\t0x63,0xdf,0x4a,0x18,\t0xe5,0x1a,0x31,0x82\n.byte\t0x97,0x51,0x33,0x60,\t0x62,0x53,0x7f,0x45\n.byte\t0xb1,0x64,0x77,0xe0,\t0xbb,0x6b,0xae,0x84\n.byte\t0xfe,0x81,0xa0,0x1c,\t0xf9,0x08,0x2b,0x94\n.byte\t0x70,0x48,0x68,0x58,\t0x8f,0x45,0xfd,0x19\n.byte\t0x94,0xde,0x6c,0x87,\t0x52,0x7b,0xf8,0xb7\n.byte\t0xab,0x73,0xd3,0x23,\t0x72,0x4b,0x02,0xe2\n.byte\t0xe3,0x1f,0x8f,0x57,\t0x66,0x55,0xab,0x2a\n.byte\t0xb2,0xeb,0x28,0x07,\t0x2f,0xb5,0xc2,0x03\n.byte\t0x86,0xc5,0x7b,0x9a,\t0xd3,0x37,0x08,0xa5\n.byte\t0x30,0x28,0x87,0xf2,\t0x23,0xbf,0xa5,0xb2\n.byte\t0x02,0x03,0x6a,0xba,\t0xed,0x16,0x82,0x5c\n.byte\t0x8a,0xcf,0x1c,0x2b,\t0xa7,0x79,0xb4,0x92\n.byte\t0xf3,0x07,0xf2,0xf0,\t0x4e,0x69,0xe2,0xa1\n.byte\t0x65,0xda,0xf4,0xcd,\t0x06,0x05,0xbe,0xd5\n.byte\t0xd1,0x34,0x62,0x1f,\t0xc4,0xa6,0xfe,0x8a\n.byte\t0x34,0x2e,0x53,0x9d,\t0xa2,0xf3,0x55,0xa0\n.byte\t0x05,0x8a,0xe1,0x32,\t0xa4,0xf6,0xeb,0x75\n.byte\t0x0b,0x83,0xec,0x39,\t0x40,0x60,0xef,0xaa\n.byte\t0x5e,0x71,0x9f,0x06,\t0xbd,0x6e,0x10,0x51\n.byte\t0x3e,0x21,0x8a,0xf9,\t0x96,0xdd,0x06,0x3d\n.byte\t0xdd,0x3e,0x05,0xae,\t0x4d,0xe6,0xbd,0x46\n.byte\t0x91,0x54,0x8d,0xb5,\t0x71,0xc4,0x5d,0x05\n.byte\t0x04,0x06,0xd4,0x6f,\t0x60,0x50,0x15,0xff\n.byte\t0x19,0x98,0xfb,0x24,\t0xd6,0xbd,0xe9,0x97\n.byte\t0x89,0x40,0x43,0xcc,\t0x67,0xd9,0x9e,0x77\n.byte\t0xb0,0xe8,0x42,0xbd,\t0x07,0x89,0x8b,0x88\n.byte\t0xe7,0x19,0x5b,0x38,\t0x79,0xc8,0xee,0xdb\n.byte\t0xa1,0x7c,0x0a,0x47,\t0x7c,0x42,0x0f,0xe9\n.byte\t0xf8,0x84,0x1e,0xc9,\t0x00,0x00,0x00,0x00\n.byte\t0x09,0x80,0x86,0x83,\t0x32,0x2b,0xed,0x48\n.byte\t0x1e,0x11,0x70,0xac,\t0x6c,0x5a,0x72,0x4e\n.byte\t0xfd,0x0e,0xff,0xfb,\t0x0f,0x85,0x38,0x56\n.byte\t0x3d,0xae,0xd5,0x1e,\t0x36,0x2d,0x39,0x27\n.byte\t0x0a,0x0f,0xd9,0x64,\t0x68,0x5c,0xa6,0x21\n.byte\t0x9b,0x5b,0x54,0xd1,\t0x24,0x36,0x2e,0x3a\n.byte\t0x0c,0x0a,0x67,0xb1,\t0x93,0x57,0xe7,0x0f\n.byte\t0xb4,0xee,0x96,0xd2,\t0x1b,0x9b,0x91,0x9e\n.byte\t0x80,0xc0,0xc5,0x4f,\t0x61,0xdc,0x20,0xa2\n.byte\t0x5a,0x77,0x4b,0x69,\t0x1c,0x12,0x1a,0x16\n.byte\t0xe2,0x93,0xba,0x0a,\t0xc0,0xa0,0x2a,0xe5\n.byte\t0x3c,0x22,0xe0,0x43,\t0x12,0x1b,0x17,0x1d\n.byte\t0x0e,0x09,0x0d,0x0b,\t0xf2,0x8b,0xc7,0xad\n.byte\t0x2d,0xb6,0xa8,0xb9,\t0x14,0x1e,0xa9,0xc8\n.byte\t0x57,0xf1,0x19,0x85,\t0xaf,0x75,0x07,0x4c\n.byte\t0xee,0x99,0xdd,0xbb,\t0xa3,0x7f,0x60,0xfd\n.byte\t0xf7,0x01,0x26,0x9f,\t0x5c,0x72,0xf5,0xbc\n.byte\t0x44,0x66,0x3b,0xc5,\t0x5b,0xfb,0x7e,0x34\n.byte\t0x8b,0x43,0x29,0x76,\t0xcb,0x23,0xc6,0xdc\n.byte\t0xb6,0xed,0xfc,0x68,\t0xb8,0xe4,0xf1,0x63\n.byte\t0xd7,0x31,0xdc,0xca,\t0x42,0x63,0x85,0x10\n.byte\t0x13,0x97,0x22,0x40,\t0x84,0xc6,0x11,0x20\n.byte\t0x85,0x4a,0x24,0x7d,\t0xd2,0xbb,0x3d,0xf8\n.byte\t0xae,0xf9,0x32,0x11,\t0xc7,0x29,0xa1,0x6d\n.byte\t0x1d,0x9e,0x2f,0x4b,\t0xdc,0xb2,0x30,0xf3\n.byte\t0x0d,0x86,0x52,0xec,\t0x77,0xc1,0xe3,0xd0\n.byte\t0x2b,0xb3,0x16,0x6c,\t0xa9,0x70,0xb9,0x99\n.byte\t0x11,0x94,0x48,0xfa,\t0x47,0xe9,0x64,0x22\n.byte\t0xa8,0xfc,0x8c,0xc4,\t0xa0,0xf0,0x3f,0x1a\n.byte\t0x56,0x7d,0x2c,0xd8,\t0x22,0x33,0x90,0xef", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:45", "text": ".byte\t0xe2,0x93,0xba,0x0a,\t0xc0,0xa0,0x2a,0xe5\n.byte\t0x3c,0x22,0xe0,0x43,\t0x12,0x1b,0x17,0x1d\n.byte\t0x0e,0x09,0x0d,0x0b,\t0xf2,0x8b,0xc7,0xad\n.byte\t0x2d,0xb6,0xa8,0xb9,\t0x14,0x1e,0xa9,0xc8\n.byte\t0x57,0xf1,0x19,0x85,\t0xaf,0x75,0x07,0x4c\n.byte\t0xee,0x99,0xdd,0xbb,\t0xa3,0x7f,0x60,0xfd\n.byte\t0xf7,0x01,0x26,0x9f,\t0x5c,0x72,0xf5,0xbc\n.byte\t0x44,0x66,0x3b,0xc5,\t0x5b,0xfb,0x7e,0x34\n.byte\t0x8b,0x43,0x29,0x76,\t0xcb,0x23,0xc6,0xdc\n.byte\t0xb6,0xed,0xfc,0x68,\t0xb8,0xe4,0xf1,0x63\n.byte\t0xd7,0x31,0xdc,0xca,\t0x42,0x63,0x85,0x10\n.byte\t0x13,0x97,0x22,0x40,\t0x84,0xc6,0x11,0x20\n.byte\t0x85,0x4a,0x24,0x7d,\t0xd2,0xbb,0x3d,0xf8\n.byte\t0xae,0xf9,0x32,0x11,\t0xc7,0x29,0xa1,0x6d\n.byte\t0x1d,0x9e,0x2f,0x4b,\t0xdc,0xb2,0x30,0xf3\n.byte\t0x0d,0x86,0x52,0xec,\t0x77,0xc1,0xe3,0xd0\n.byte\t0x2b,0xb3,0x16,0x6c,\t0xa9,0x70,0xb9,0x99\n.byte\t0x11,0x94,0x48,0xfa,\t0x47,0xe9,0x64,0x22\n.byte\t0xa8,0xfc,0x8c,0xc4,\t0xa0,0xf0,0x3f,0x1a\n.byte\t0x56,0x7d,0x2c,0xd8,\t0x22,0x33,0x90,0xef\n.byte\t0x87,0x49,0x4e,0xc7,\t0xd9,0x38,0xd1,0xc1\n.byte\t0x8c,0xca,0xa2,0xfe,\t0x98,0xd4,0x0b,0x36\n.byte\t0xa6,0xf5,0x81,0xcf,\t0xa5,0x7a,0xde,0x28\n.byte\t0xda,0xb7,0x8e,0x26,\t0x3f,0xad,0xbf,0xa4\n.byte\t0x2c,0x3a,0x9d,0xe4,\t0x50,0x78,0x92,0x0d\n.byte\t0x6a,0x5f,0xcc,0x9b,\t0x54,0x7e,0x46,0x62\n.byte\t0xf6,0x8d,0x13,0xc2,\t0x90,0xd8,0xb8,0xe8\n.byte\t0x2e,0x39,0xf7,0x5e,\t0x82,0xc3,0xaf,0xf5\n.byte\t0x9f,0x5d,0x80,0xbe,\t0x69,0xd0,0x93,0x7c\n.byte\t0x6f,0xd5,0x2d,0xa9,\t0xcf,0x25,0x12,0xb3\n.byte\t0xc8,0xac,0x99,0x3b,\t0x10,0x18,0x7d,0xa7\n.byte\t0xe8,0x9c,0x63,0x6e,\t0xdb,0x3b,0xbb,0x7b\n.byte\t0xcd,0x26,0x78,0x09,\t0x6e,0x59,0x18,0xf4\n.byte\t0xec,0x9a,0xb7,0x01,\t0x83,0x4f,0x9a,0xa8\n.byte\t0xe6,0x95,0x6e,0x65,\t0xaa,0xff,0xe6,0x7e\n.byte\t0x21,0xbc,0xcf,0x08,\t0xef,0x15,0xe8,0xe6\n.byte\t0xba,0xe7,0x9b,0xd9,\t0x4a,0x6f,0x36,0xce\n.byte\t0xea,0x9f,0x09,0xd4,\t0x29,0xb0,0x7c,0xd6\n.byte\t0x31,0xa4,0xb2,0xaf,\t0x2a,0x3f,0x23,0x31\n.byte\t0xc6,0xa5,0x94,0x30,\t0x35,0xa2,0x66,0xc0\n.byte\t0x74,0x4e,0xbc,0x37,\t0xfc,0x82,0xca,0xa6\n.byte\t0xe0,0x90,0xd0,0xb0,\t0x33,0xa7,0xd8,0x15\n.byte\t0xf1,0x04,0x98,0x4a,\t0x41,0xec,0xda,0xf7\n.byte\t0x7f,0xcd,0x50,0x0e,\t0x17,0x91,0xf6,0x2f\n.byte\t0x76,0x4d,0xd6,0x8d,\t0x43,0xef,0xb0,0x4d\n.byte\t0xcc,0xaa,0x4d,0x54,\t0xe4,0x96,0x04,0xdf\n.byte\t0x9e,0xd1,0xb5,0xe3,\t0x4c,0x6a,0x88,0x1b\n.byte\t0xc1,0x2c,0x1f,0xb8,\t0x46,0x65,0x51,0x7f\n.byte\t0x9d,0x5e,0xea,0x04,\t0x01,0x8c,0x35,0x5d\n.byte\t0xfa,0x87,0x74,0x73,\t0xfb,0x0b,0x41,0x2e\n.byte\t0xb3,0x67,0x1d,0x5a,\t0x92,0xdb,0xd2,0x52\n.byte\t0xe9,0x10,0x56,0x33,\t0x6d,0xd6,0x47,0x13\n.byte\t0x9a,0xd7,0x61,0x8c,\t0x37,0xa1,0x0c,0x7a\n.byte\t0x59,0xf8,0x14,0x8e,\t0xeb,0x13,0x3c,0x89\n.byte\t0xce,0xa9,0x27,0xee,\t0xb7,0x61,0xc9,0x35\n.byte\t0xe1,0x1c,0xe5,0xed,\t0x7a,0x47,0xb1,0x3c\n.byte\t0x9c,0xd2,0xdf,0x59,\t0x55,0xf2,0x73,0x3f\n.byte\t0x18,0x14,0xce,0x79,\t0x73,0xc7,0x37,0xbf\n.byte\t0x53,0xf7,0xcd,0xea,\t0x5f,0xfd,0xaa,0x5b\n.byte\t0xdf,0x3d,0x6f,0x14,\t0x78,0x44,0xdb,0x86", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:46", "text": ".byte\t0x74,0x4e,0xbc,0x37,\t0xfc,0x82,0xca,0xa6\n.byte\t0xe0,0x90,0xd0,0xb0,\t0x33,0xa7,0xd8,0x15\n.byte\t0xf1,0x04,0x98,0x4a,\t0x41,0xec,0xda,0xf7\n.byte\t0x7f,0xcd,0x50,0x0e,\t0x17,0x91,0xf6,0x2f\n.byte\t0x76,0x4d,0xd6,0x8d,\t0x43,0xef,0xb0,0x4d\n.byte\t0xcc,0xaa,0x4d,0x54,\t0xe4,0x96,0x04,0xdf\n.byte\t0x9e,0xd1,0xb5,0xe3,\t0x4c,0x6a,0x88,0x1b\n.byte\t0xc1,0x2c,0x1f,0xb8,\t0x46,0x65,0x51,0x7f\n.byte\t0x9d,0x5e,0xea,0x04,\t0x01,0x8c,0x35,0x5d\n.byte\t0xfa,0x87,0x74,0x73,\t0xfb,0x0b,0x41,0x2e\n.byte\t0xb3,0x67,0x1d,0x5a,\t0x92,0xdb,0xd2,0x52\n.byte\t0xe9,0x10,0x56,0x33,\t0x6d,0xd6,0x47,0x13\n.byte\t0x9a,0xd7,0x61,0x8c,\t0x37,0xa1,0x0c,0x7a\n.byte\t0x59,0xf8,0x14,0x8e,\t0xeb,0x13,0x3c,0x89\n.byte\t0xce,0xa9,0x27,0xee,\t0xb7,0x61,0xc9,0x35\n.byte\t0xe1,0x1c,0xe5,0xed,\t0x7a,0x47,0xb1,0x3c\n.byte\t0x9c,0xd2,0xdf,0x59,\t0x55,0xf2,0x73,0x3f\n.byte\t0x18,0x14,0xce,0x79,\t0x73,0xc7,0x37,0xbf\n.byte\t0x53,0xf7,0xcd,0xea,\t0x5f,0xfd,0xaa,0x5b\n.byte\t0xdf,0x3d,0x6f,0x14,\t0x78,0x44,0xdb,0x86\n.byte\t0xca,0xaf,0xf3,0x81,\t0xb9,0x68,0xc4,0x3e\n.byte\t0x38,0x24,0x34,0x2c,\t0xc2,0xa3,0x40,0x5f\n.byte\t0x16,0x1d,0xc3,0x72,\t0xbc,0xe2,0x25,0x0c\n.byte\t0x28,0x3c,0x49,0x8b,\t0xff,0x0d,0x95,0x41\n.byte\t0x39,0xa8,0x01,0x71,\t0x08,0x0c,0xb3,0xde\n.byte\t0xd8,0xb4,0xe4,0x9c,\t0x64,0x56,0xc1,0x90\n.byte\t0x7b,0xcb,0x84,0x61,\t0xd5,0x32,0xb6,0x70\n.byte\t0x48,0x6c,0x5c,0x74,\t0xd0,0xb8,0x57,0x42\n\n.byte\t0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38\t# Td4\n.byte\t0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb\n.byte\t0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87\n.byte\t0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb\n.byte\t0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d\n.byte\t0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e\n.byte\t0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2\n.byte\t0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25\n.byte\t0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16\n.byte\t0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92\n.byte\t0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda\n.byte\t0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84\n.byte\t0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a\n.byte\t0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06\n.byte\t0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02\n.byte\t0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b\n.byte\t0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea\n.byte\t0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73\n.byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d\n.byte\t0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef\n.byte\t0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0\n.byte\t0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61\n.byte\t0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:47", "text": ".byte\t0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84\n.byte\t0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a\n.byte\t0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06\n.byte\t0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02\n.byte\t0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b\n.byte\t0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea\n.byte\t0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73\n.byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d\n.byte\t0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef\n.byte\t0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0\n.byte\t0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61\n.byte\t0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26\n.byte\t0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d\n\nAES_Te4:\n.byte\t0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5\t# Te4\n.byte\t0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76\n.byte\t0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0\n.byte\t0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0\n.byte\t0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc\n.byte\t0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15\n.byte\t0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a\n.byte\t0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75\n.byte\t0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0\n.byte\t0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84\n.byte\t0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b\n.byte\t0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf\n.byte\t0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85\n.byte\t0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8\n.byte\t0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5\n.byte\t0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2\n.byte\t0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17\n.byte\t0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73\n.byte\t0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88\n.byte\t0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb\n.byte\t0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c\n.byte\t0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79\n.byte\t0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9\n.byte\t0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08\n.byte\t0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6\n.byte\t0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a\n.byte\t0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e\n.byte\t0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e\n.byte\t0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94\n.byte\t0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf\n.byte\t0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68\n.byte\t0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16\n\n.byte\t0x01,0x00,0x00,0x00,\t0x02,0x00,0x00,0x00\t# rcon\n.byte\t0x04,0x00,0x00,0x00,\t0x08,0x00,0x00,0x00\n.byte\t0x10,0x00,0x00,0x00,\t0x20,0x00,0x00,0x00\n.byte\t0x40,0x00,0x00,0x00,\t0x80,0x00,0x00,0x00", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S:48", "text": ".byte\t0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73\n.byte\t0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88\n.byte\t0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb\n.byte\t0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c\n.byte\t0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79\n.byte\t0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9\n.byte\t0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08\n.byte\t0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6\n.byte\t0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a\n.byte\t0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e\n.byte\t0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e\n.byte\t0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94\n.byte\t0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf\n.byte\t0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68\n.byte\t0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16\n\n.byte\t0x01,0x00,0x00,0x00,\t0x02,0x00,0x00,0x00\t# rcon\n.byte\t0x04,0x00,0x00,0x00,\t0x08,0x00,0x00,0x00\n.byte\t0x10,0x00,0x00,0x00,\t0x20,0x00,0x00,0x00\n.byte\t0x40,0x00,0x00,0x00,\t0x80,0x00,0x00,0x00\n.byte\t0x1B,0x00,0x00,0x00,\t0x36,0x00,0x00,0x00", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips.S", "line_start": 1881, "line_end": 1901}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:1", "text": "#include \"mips_arch.h\"\n\n.text\n#if !defined(__mips_eabi) && (!defined(__vxworks) || defined(__pic__))\n.option\tpic2\n#endif\n.set\tnoat\n.align\t5\n.ent\t_mips_AES_encrypt\n_mips_AES_encrypt:\n\t.frame\t$29,0,$31\n\t.set\treorder\n\tlw\t$12,0($6)\n\tlw\t$13,4($6)\n\tlw\t$14,8($6)\n\tlw\t$15,12($6)\n\tlw\t$30,240($6)\n\tdaddu $3,$6,16\n\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tsubu\t$30,1\n#if defined(__mips_smartmips)\n\text\t$1,$9,8,8\n.Loop_enc:\n\text\t$2,$10,8,8\n\text\t$24,$11,8,8\n\text\t$25,$8,8,8\n\tlwxs\t$12,$1($7)\t\t# Te1[s1>>16]\n\text\t$1,$10,16,8\n\tlwxs\t$13,$2($7)\t\t# Te1[s2>>16]\n\text\t$2,$11,16,8\n\tlwxs\t$14,$24($7)\t\t# Te1[s3>>16]\n\text\t$24,$8,16,8\n\tlwxs\t$15,$25($7)\t\t# Te1[s0>>16]\n\text\t$25,$9,16,8\n\n\tlwxs\t$16,$1($7)\t\t# Te2[s2>>8]\n\text\t$1,$11,24,8\n\tlwxs\t$17,$2($7)\t\t# Te2[s3>>8]\n\text\t$2,$8,24,8\n\tlwxs\t$18,$24($7)\t\t# Te2[s0>>8]\n\text\t$24,$9,24,8\n\tlwxs\t$19,$25($7)\t\t# Te2[s1>>8]\n\text\t$25,$10,24,8\n\n\tlwxs\t$20,$1($7)\t\t# Te3[s3]\n\text\t$1,$8,0,8\n\tlwxs\t$21,$2($7)\t\t# Te3[s0]\n\text\t$2,$9,0,8\n\tlwxs\t$22,$24($7)\t\t# Te3[s1]\n\text\t$24,$10,0,8\n\tlwxs\t$23,$25($7)\t\t# Te3[s2]\n\text\t$25,$11,0,8\n\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:2", "text": "lwxs\t$16,$1($7)\t\t# Te2[s2>>8]\n\text\t$1,$11,24,8\n\tlwxs\t$17,$2($7)\t\t# Te2[s3>>8]\n\text\t$2,$8,24,8\n\tlwxs\t$18,$24($7)\t\t# Te2[s0>>8]\n\text\t$24,$9,24,8\n\tlwxs\t$19,$25($7)\t\t# Te2[s1>>8]\n\text\t$25,$10,24,8\n\n\tlwxs\t$20,$1($7)\t\t# Te3[s3]\n\text\t$1,$8,0,8\n\tlwxs\t$21,$2($7)\t\t# Te3[s0]\n\text\t$2,$9,0,8\n\tlwxs\t$22,$24($7)\t\t# Te3[s1]\n\text\t$24,$10,0,8\n\tlwxs\t$23,$25($7)\t\t# Te3[s2]\n\text\t$25,$11,0,8\n\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\txor\t$12,$16\n\tlwxs\t$16,$1($7)\t\t# Te0[s0>>24]\n\txor\t$13,$17\n\tlwxs\t$17,$2($7)\t\t# Te0[s1>>24]\n\txor\t$14,$18\n\tlwxs\t$18,$24($7)\t\t# Te0[s2>>24]\n\txor\t$15,$19\n\tlwxs\t$19,$25($7)\t\t# Te0[s3>>24]\n\n\trotr\t$20,$20,8\n\tlw\t$8,0($3)\n\trotr\t$21,$21,8\n\tlw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\tdaddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:3", "text": "lw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\tdaddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_enc\n\text\t$1,$9,8,8\n\n\tsrl\t$1,$9,6\n#else\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\tmove\t$1,$7\n\tmove\t$2,$7\n\tmove\t$24,$7\n\tmove\t$25,$7\n\text\t$12,$9,8,8\n.Loop_enc:\n\text\t$13,$10,8,8\n\text\t$14,$11,8,8\n\text\t$15,$8,8,8\n\tdins $1,$12,2,8\n\tdins $2,$13,2,8\n\tdins $24,$14,2,8\n\tdins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Te1[s1>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Te1[s2>>16]\n\text\t$17,$11,16,8\n\tlw\t$14,0($24)\t\t# Te1[s3>>16]\n\text\t$18,$8,16,8\n\tlw\t$15,0($25)\t\t# Te1[s0>>16]\n\text\t$19,$9,16,8\n\tdins $1,$16,2,8\n\tdins $2,$17,2,8\n\tdins $24,$18,2,8\n\tdins $25,$19,2,8\n#else\n\tsrl\t$1,$9,6\n.Loop_enc:\n\tsrl\t$2,$10,6\n\tsrl\t$24,$11,6\n\tsrl\t$25,$8,6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:4", "text": "dins $24,$14,2,8\n\tdins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Te1[s1>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Te1[s2>>16]\n\text\t$17,$11,16,8\n\tlw\t$14,0($24)\t\t# Te1[s3>>16]\n\text\t$18,$8,16,8\n\tlw\t$15,0($25)\t\t# Te1[s0>>16]\n\text\t$19,$9,16,8\n\tdins $1,$16,2,8\n\tdins $2,$17,2,8\n\tdins $24,$18,2,8\n\tdins $25,$19,2,8\n#else\n\tsrl\t$1,$9,6\n.Loop_enc:\n\tsrl\t$2,$10,6\n\tsrl\t$24,$11,6\n\tsrl\t$25,$8,6\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlwl\t$12,2($1)\t\t# Te1[s1>>16]\n\tlwl\t$13,2($2)\t\t# Te1[s2>>16]\n\tlwl\t$14,2($24)\t\t# Te1[s3>>16]\n\tlwl\t$15,2($25)\t\t# Te1[s0>>16]\n\tlwr\t$12,3($1)\t\t# Te1[s1>>16]\n\tsrl\t$1,$10,14\n\tlwr\t$13,3($2)\t\t# Te1[s2>>16]\n\tsrl\t$2,$11,14\n\tlwr\t$14,3($24)\t\t# Te1[s3>>16]\n\tsrl\t$24,$8,14\n\tlwr\t$15,3($25)\t\t# Te1[s0>>16]\n\tsrl\t$25,$9,14\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n# if defined(_MIPSEL)\n\tlw\t$16,0($1)\t\t# Te2[s2>>8]\n\text\t$20,$11,24,8\n\tlw\t$17,0($2)\t\t# Te2[s3>>8]\n\text\t$21,$8,24,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:5", "text": "and\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n# if defined(_MIPSEL)\n\tlw\t$16,0($1)\t\t# Te2[s2>>8]\n\text\t$20,$11,24,8\n\tlw\t$17,0($2)\t\t# Te2[s3>>8]\n\text\t$21,$8,24,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]\n\text\t$22,$9,24,8\n\tlw\t$19,0($25)\t\t# Te2[s1>>8]\n\text\t$23,$10,24,8\n\tdins $1,$20,2,8\n\tdins $2,$21,2,8\n\tdins $24,$22,2,8\n\tdins $25,$23,2,8\n\n\tlw\t$20,0($1)\t\t# Te3[s3]\n\tdins $1,$8,2,8\n\tlw\t$21,0($2)\t\t# Te3[s0]\n\tdins $2,$9,2,8\n\tlw\t$22,0($24)\t\t# Te3[s1]\n\tdins $24,$10,2,8\n\tlw\t$23,0($25)\t\t# Te3[s2]\n\tdins $25,$11,2,8\n# else\n\tlw\t$16,0($1)\t\t# Te2[s2>>8]\n\tdins $1,$11,2,8\n\tlw\t$17,0($2)\t\t# Te2[s3>>8]\n\tdins $2,$8,2,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]\n\tdins $24,$9,2,8\n\tlw\t$19,0($25)\t\t# Te2[s1>>8]\n\tdins $25,$10,2,8\n\n\tlw\t$20,0($1)\t\t# Te3[s3]\n\tsll\t$1,$8,2\n\tlw\t$21,0($2)\t\t# Te3[s0]\n\tsll\t$2,$9,2\n\tlw\t$22,0($24)\t\t# Te3[s1]\n\tsll\t$24,$10,2\n\tlw\t$23,0($25)\t\t# Te3[s2]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:6", "text": "dins $2,$8,2,8\n\tlw\t$18,0($24)\t\t# Te2[s0>>8]\n\tdins $24,$9,2,8\n\tlw\t$19,0($25)\t\t# Te2[s1>>8]\n\tdins $25,$10,2,8\n\n\tlw\t$20,0($1)\t\t# Te3[s3]\n\tsll\t$1,$8,2\n\tlw\t$21,0($2)\t\t# Te3[s0]\n\tsll\t$2,$9,2\n\tlw\t$22,0($24)\t\t# Te3[s1]\n\tsll\t$24,$10,2\n\tlw\t$23,0($25)\t\t# Te3[s2]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n# endif\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\trotr\t$20,$20,8\n\trotr\t$21,$21,8\n\trotr\t$22,$22,8\n\trotr\t$23,$23,8\n#else\n\tlwl\t$16,1($1)\t\t# Te2[s2>>8]\n\tlwl\t$17,1($2)\t\t# Te2[s3>>8]\n\tlwl\t$18,1($24)\t\t# Te2[s0>>8]\n\tlwl\t$19,1($25)\t\t# Te2[s1>>8]\n\tlwr\t$16,2($1)\t\t# Te2[s2>>8]\n\tsrl\t$1,$11,22\n\tlwr\t$17,2($2)\t\t# Te2[s3>>8]\n\tsrl\t$2,$8,22\n\tlwr\t$18,2($24)\t\t# Te2[s0>>8]\n\tsrl\t$24,$9,22\n\tlwr\t$19,2($25)\t\t# Te2[s1>>8]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlwl\t$20,0($1)\t\t# Te3[s3]\n\tlwl\t$21,0($2)\t\t# Te3[s0]\n\tlwl\t$22,0($24)\t\t# Te3[s1]\n\tlwl\t$23,0($25)\t\t# Te3[s2]\n\tlwr\t$20,1($1)\t\t# Te3[s3]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:7", "text": "lwr\t$17,2($2)\t\t# Te2[s3>>8]\n\tsrl\t$2,$8,22\n\tlwr\t$18,2($24)\t\t# Te2[s0>>8]\n\tsrl\t$24,$9,22\n\tlwr\t$19,2($25)\t\t# Te2[s1>>8]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlwl\t$20,0($1)\t\t# Te3[s3]\n\tlwl\t$21,0($2)\t\t# Te3[s0]\n\tlwl\t$22,0($24)\t\t# Te3[s1]\n\tlwl\t$23,0($25)\t\t# Te3[s2]\n\tlwr\t$20,1($1)\t\t# Te3[s3]\n\tsll\t$1,$8,2\n\tlwr\t$21,1($2)\t\t# Te3[s0]\n\tsll\t$2,$9,2\n\tlwr\t$22,1($24)\t\t# Te3[s1]\n\tsll\t$24,$10,2\n\tlwr\t$23,1($25)\t\t# Te3[s2]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n\txor\t$12,$16\n\tlw\t$16,0($1)\t\t# Te0[s0>>24]\n\txor\t$13,$17\n\tlw\t$17,0($2)\t\t# Te0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Te0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Te0[s3>>24]\n\n\txor\t$12,$20\n\tlw\t$8,0($3)\n\txor\t$13,$21\n\tlw\t$9,4($3)\n\txor\t$14,$22\n\tlw\t$10,8($3)\n\txor\t$15,$23\n\tlw\t$11,12($3)\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:8", "text": "lw\t$17,0($2)\t\t# Te0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Te0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Te0[s3>>24]\n\n\txor\t$12,$20\n\tlw\t$8,0($3)\n\txor\t$13,$21\n\tlw\t$9,4($3)\n\txor\t$14,$22\n\tlw\t$10,8($3)\n\txor\t$15,$23\n\tlw\t$11,12($3)\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\tdaddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_enc\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\text\t$12,$9,8,8\n#endif\n\tsrl\t$1,$9,6\n#endif\n\n\t.set\treorder\n\tsrl\t$2,$10,6\n\tsrl\t$24,$11,6\n\tsrl\t$25,$8,6\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$12,2($1)\t\t# Te4[s1>>16]\n\tsrl\t$1,$10,14\n\tlbu\t$13,2($2)\t\t# Te4[s2>>16]\n\tsrl\t$2,$11,14\n\tlbu\t$14,2($24)\t\t# Te4[s3>>16]\n\tsrl\t$24,$8,14\n\tlbu\t$15,2($25)\t\t# Te4[s0>>16]\n\tsrl\t$25,$9,14\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:9", "text": "and\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$12,2($1)\t\t# Te4[s1>>16]\n\tsrl\t$1,$10,14\n\tlbu\t$13,2($2)\t\t# Te4[s2>>16]\n\tsrl\t$2,$11,14\n\tlbu\t$14,2($24)\t\t# Te4[s3>>16]\n\tsrl\t$24,$8,14\n\tlbu\t$15,2($25)\t\t# Te4[s0>>16]\n\tsrl\t$25,$9,14\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n# if defined(_MIPSEL)\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tdins $1,$8,2,8\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tdins $2,$9,2,8\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tdins $24,$10,2,8\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tdins $25,$11,2,8\n\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tsrl\t$1,$11,22\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tsrl\t$2,$8,22\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tsrl\t$24,$9,22\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n# else\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tsll\t$1,$8,2\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tsll\t$2,$9,2\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tsll\t$24,$10,2\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tsll\t$25,$11,2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:10", "text": "lbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n# else\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tsll\t$1,$8,2\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tsll\t$2,$9,2\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tsll\t$24,$10,2\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tdins $1,$11,2,8\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tdins $2,$8,2,8\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tdins $24,$9,2,8\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tdins $25,$10,2,8\n# endif\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tins\t$12,$16,16,8\n\tlbu\t$16,2($1)\t\t# Te4[s3]\n\tins\t$13,$17,16,8\n\tlbu\t$17,2($2)\t\t# Te4[s0]\n\tins\t$14,$18,16,8\n\tlbu\t$18,2($24)\t\t# Te4[s1]\n\tins\t$15,$19,16,8\n\tlbu\t$19,2($25)\t\t# Te4[s2]\n\n\tins\t$12,$20,0,8\n\tlw\t$8,0($3)\n\tins\t$13,$21,0,8\n\tlw\t$9,4($3)\n\tins\t$14,$22,0,8\n\tlw\t$10,8($3)\n\tins\t$15,$23,0,8\n\tlw\t$11,12($3)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:11", "text": "sll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tins\t$12,$16,16,8\n\tlbu\t$16,2($1)\t\t# Te4[s3]\n\tins\t$13,$17,16,8\n\tlbu\t$17,2($2)\t\t# Te4[s0]\n\tins\t$14,$18,16,8\n\tlbu\t$18,2($24)\t\t# Te4[s1]\n\tins\t$15,$19,16,8\n\tlbu\t$19,2($25)\t\t# Te4[s2]\n\n\tins\t$12,$20,0,8\n\tlw\t$8,0($3)\n\tins\t$13,$21,0,8\n\tlw\t$9,4($3)\n\tins\t$14,$22,0,8\n\tlw\t$10,8($3)\n\tins\t$15,$23,0,8\n\tlw\t$11,12($3)\n\n\tins\t$12,$16,24,8\n\tins\t$13,$17,24,8\n\tins\t$14,$18,24,8\n\tins\t$15,$19,24,8\n#else\n\tlbu\t$16,2($1)\t\t# Te4[s2>>8]\n\tsll\t$1,$8,2\n\tlbu\t$17,2($2)\t\t# Te4[s3>>8]\n\tsll\t$2,$9,2\n\tlbu\t$18,2($24)\t\t# Te4[s0>>8]\n\tsll\t$24,$10,2\n\tlbu\t$19,2($25)\t\t# Te4[s1>>8]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tsrl\t$1,$11,22\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tsrl\t$2,$8,22\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tsrl\t$24,$9,22\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:12", "text": "daddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,2($1)\t\t# Te4[s0>>24]\n\tsrl\t$1,$11,22\n\tlbu\t$21,2($2)\t\t# Te4[s1>>24]\n\tsrl\t$2,$8,22\n\tlbu\t$22,2($24)\t\t# Te4[s2>>24]\n\tsrl\t$24,$9,22\n\tlbu\t$23,2($25)\t\t# Te4[s3>>24]\n\tsrl\t$25,$10,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tsll\t$16,$16,16\n\tsll\t$17,$17,16\n\tsll\t$18,$18,16\n\tsll\t$19,$19,16\n\n\txor\t$12,$16\n\tlbu\t$16,2($1)\t\t# Te4[s3]\n\txor\t$13,$17\n\tlbu\t$17,2($2)\t\t# Te4[s0]\n\txor\t$14,$18\n\tlbu\t$18,2($24)\t\t# Te4[s1]\n\txor\t$15,$19\n\tlbu\t$19,2($25)\t\t# Te4[s2]\n\n\t#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\tsll\t$16,$16,24\n\tsll\t$17,$17,24\n\tsll\t$18,$18,24\n\tsll\t$19,$19,24\n\n\txor\t$12,$16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:13", "text": "#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\tsll\t$16,$16,24\n\tsll\t$17,$17,24\n\tsll\t$18,$18,24\n\tsll\t$19,$19,24\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n#endif\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tjr\t$31\n.end\t_mips_AES_encrypt\n\n.align\t5\n.globl\tAES_encrypt\n.ent\tAES_encrypt\nAES_encrypt:\n\t.frame\t$29,128,$31\n\t.mask\t0xc0ff0000,-8\n\t.set\tnoreorder\n\tdsubu $29,128\n\tsd\t$31,128-1*8($29)\n\tsd\t$30,128-2*8($29)\n\tsd\t$23,128-3*8($29)\n\tsd\t$22,128-4*8($29)\n\tsd\t$21,128-5*8($29)\n\tsd\t$20,128-6*8($29)\n\tsd\t$19,128-7*8($29)\n\tsd\t$18,128-8*8($29)\n\tsd\t$17,128-9*8($29)\n\tsd\t$16,128-10*8($29)\n\t.cplocal\t$7\n\t.cpsetup\t$25,$0,AES_encrypt\n\t.set\treorder\n\tdla\t$7,AES_Te\t\t# PIC-ified 'load address'\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:14", "text": "sd\t$31,128-1*8($29)\n\tsd\t$30,128-2*8($29)\n\tsd\t$23,128-3*8($29)\n\tsd\t$22,128-4*8($29)\n\tsd\t$21,128-5*8($29)\n\tsd\t$20,128-6*8($29)\n\tsd\t$19,128-7*8($29)\n\tsd\t$18,128-8*8($29)\n\tsd\t$17,128-9*8($29)\n\tsd\t$16,128-10*8($29)\n\t.cplocal\t$7\n\t.cpsetup\t$25,$0,AES_encrypt\n\t.set\treorder\n\tdla\t$7,AES_Te\t\t# PIC-ified 'load address'\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\n\tbal\t_mips_AES_encrypt\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n#else\n\tswr\t$8,0+0($5)\n\tswr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder\n\tld\t$31,128-1*8($29)\n\tld\t$30,128-2*8($29)\n\tld\t$23,128-3*8($29)\n\tld\t$22,128-4*8($29)\n\tld\t$21,128-5*8($29)\n\tld\t$20,128-6*8($29)\n\tld\t$19,128-7*8($29)\n\tld\t$18,128-8*8($29)\n\tld\t$17,128-9*8($29)\n\tld\t$16,128-10*8($29)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:15", "text": "swr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder\n\tld\t$31,128-1*8($29)\n\tld\t$30,128-2*8($29)\n\tld\t$23,128-3*8($29)\n\tld\t$22,128-4*8($29)\n\tld\t$21,128-5*8($29)\n\tld\t$20,128-6*8($29)\n\tld\t$19,128-7*8($29)\n\tld\t$18,128-8*8($29)\n\tld\t$17,128-9*8($29)\n\tld\t$16,128-10*8($29)\n\tjr\t$31\n\tdaddu $29,128\n.end\tAES_encrypt\n.align\t5\n.ent\t_mips_AES_decrypt\n_mips_AES_decrypt:\n\t.frame\t$29,0,$31\n\t.set\treorder\n\tlw\t$12,0($6)\n\tlw\t$13,4($6)\n\tlw\t$14,8($6)\n\tlw\t$15,12($6)\n\tlw\t$30,240($6)\n\tdaddu $3,$6,16\n\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tsubu\t$30,1\n#if defined(__mips_smartmips)\n\text\t$1,$11,8,8\n.Loop_dec:\n\text\t$2,$8,8,8\n\text\t$24,$9,8,8\n\text\t$25,$10,8,8\n\tlwxs\t$12,$1($7)\t\t# Td1[s3>>16]\n\text\t$1,$10,16,8\n\tlwxs\t$13,$2($7)\t\t# Td1[s0>>16]\n\text\t$2,$11,16,8\n\tlwxs\t$14,$24($7)\t\t# Td1[s1>>16]\n\text\t$24,$8,16,8\n\tlwxs\t$15,$25($7)\t\t# Td1[s2>>16]\n\text\t$25,$9,16,8\n\n\tlwxs\t$16,$1($7)\t\t# Td2[s2>>8]\n\text\t$1,$9,24,8\n\tlwxs\t$17,$2($7)\t\t# Td2[s3>>8]\n\text\t$2,$10,24,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:16", "text": "subu\t$30,1\n#if defined(__mips_smartmips)\n\text\t$1,$11,8,8\n.Loop_dec:\n\text\t$2,$8,8,8\n\text\t$24,$9,8,8\n\text\t$25,$10,8,8\n\tlwxs\t$12,$1($7)\t\t# Td1[s3>>16]\n\text\t$1,$10,16,8\n\tlwxs\t$13,$2($7)\t\t# Td1[s0>>16]\n\text\t$2,$11,16,8\n\tlwxs\t$14,$24($7)\t\t# Td1[s1>>16]\n\text\t$24,$8,16,8\n\tlwxs\t$15,$25($7)\t\t# Td1[s2>>16]\n\text\t$25,$9,16,8\n\n\tlwxs\t$16,$1($7)\t\t# Td2[s2>>8]\n\text\t$1,$9,24,8\n\tlwxs\t$17,$2($7)\t\t# Td2[s3>>8]\n\text\t$2,$10,24,8\n\tlwxs\t$18,$24($7)\t\t# Td2[s0>>8]\n\text\t$24,$11,24,8\n\tlwxs\t$19,$25($7)\t\t# Td2[s1>>8]\n\text\t$25,$8,24,8\n\n\tlwxs\t$20,$1($7)\t\t# Td3[s1]\n\text\t$1,$8,0,8\n\tlwxs\t$21,$2($7)\t\t# Td3[s2]\n\text\t$2,$9,0,8\n\tlwxs\t$22,$24($7)\t\t# Td3[s3]\n\text\t$24,$10,0,8\n\tlwxs\t$23,$25($7)\t\t# Td3[s0]\n\text\t$25,$11,0,8\n\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\txor\t$12,$16\n\tlwxs\t$16,$1($7)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlwxs\t$17,$2($7)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlwxs\t$18,$24($7)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlwxs\t$19,$25($7)\t\t# Td0[s3>>24]\n\n\trotr\t$20,$20,8\n\tlw\t$8,0($3)\n\trotr\t$21,$21,8\n\tlw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:17", "text": "rotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\txor\t$12,$16\n\tlwxs\t$16,$1($7)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlwxs\t$17,$2($7)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlwxs\t$18,$24($7)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlwxs\t$19,$25($7)\t\t# Td0[s3>>24]\n\n\trotr\t$20,$20,8\n\tlw\t$8,0($3)\n\trotr\t$21,$21,8\n\tlw\t$9,4($3)\n\trotr\t$22,$22,8\n\tlw\t$10,8($3)\n\trotr\t$23,$23,8\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\tdaddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_dec\n\text\t$1,$11,8,8\n\n\tsrl\t$1,$11,6\n#else\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\tmove\t$1,$7\n\tmove\t$2,$7\n\tmove\t$24,$7\n\tmove\t$25,$7\n\text\t$12,$11,8,8\n.Loop_dec:\n\text\t$13,$8,8,8\n\text\t$14,$9,8,8\n\text\t$15,$10,8,8\n\tdins $1,$12,2,8\n\tdins $2,$13,2,8\n\tdins $24,$14,2,8\n\tdins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Td1[s3>>16]\n\text\t$16,$10,16,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:18", "text": "ext\t$1,$11,8,8\n\n\tsrl\t$1,$11,6\n#else\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\tmove\t$1,$7\n\tmove\t$2,$7\n\tmove\t$24,$7\n\tmove\t$25,$7\n\text\t$12,$11,8,8\n.Loop_dec:\n\text\t$13,$8,8,8\n\text\t$14,$9,8,8\n\text\t$15,$10,8,8\n\tdins $1,$12,2,8\n\tdins $2,$13,2,8\n\tdins $24,$14,2,8\n\tdins $25,$15,2,8\n\tlw\t$12,0($1)\t\t# Td1[s3>>16]\n\text\t$16,$10,16,8\n\tlw\t$13,0($2)\t\t# Td1[s0>>16]\n\text\t$17,$11,16,8\n\tlw\t$14,0($24)\t\t# Td1[s1>>16]\n\text\t$18,$8,16,8\n\tlw\t$15,0($25)\t\t# Td1[s2>>16]\n\text\t$19,$9,16,8\n\tdins $1,$16,2,8\n\tdins $2,$17,2,8\n\tdins $24,$18,2,8\n\tdins $25,$19,2,8\n#else\n\tsrl\t$1,$11,6\n.Loop_dec:\n\tsrl\t$2,$8,6\n\tsrl\t$24,$9,6\n\tsrl\t$25,$10,6\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlwl\t$12,2($1)\t\t# Td1[s3>>16]\n\tlwl\t$13,2($2)\t\t# Td1[s0>>16]\n\tlwl\t$14,2($24)\t\t# Td1[s1>>16]\n\tlwl\t$15,2($25)\t\t# Td1[s2>>16]\n\tlwr\t$12,3($1)\t\t# Td1[s3>>16]\n\tsrl\t$1,$10,14\n\tlwr\t$13,3($2)\t\t# Td1[s0>>16]\n\tsrl\t$2,$11,14\n\tlwr\t$14,3($24)\t\t# Td1[s1>>16]\n\tsrl\t$24,$8,14\n\tlwr\t$15,3($25)\t\t# Td1[s2>>16]\n\tsrl\t$25,$9,14\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:19", "text": "daddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlwl\t$12,2($1)\t\t# Td1[s3>>16]\n\tlwl\t$13,2($2)\t\t# Td1[s0>>16]\n\tlwl\t$14,2($24)\t\t# Td1[s1>>16]\n\tlwl\t$15,2($25)\t\t# Td1[s2>>16]\n\tlwr\t$12,3($1)\t\t# Td1[s3>>16]\n\tsrl\t$1,$10,14\n\tlwr\t$13,3($2)\t\t# Td1[s0>>16]\n\tsrl\t$2,$11,14\n\tlwr\t$14,3($24)\t\t# Td1[s1>>16]\n\tsrl\t$24,$8,14\n\tlwr\t$15,3($25)\t\t# Td1[s2>>16]\n\tsrl\t$25,$9,14\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$12,$12,24\n\trotr\t$13,$13,24\n\trotr\t$14,$14,24\n\trotr\t$15,$15,24\n# if defined(_MIPSEL)\n\tlw\t$16,0($1)\t\t# Td2[s2>>8]\n\text\t$20,$9,24,8\n\tlw\t$17,0($2)\t\t# Td2[s3>>8]\n\text\t$21,$10,24,8\n\tlw\t$18,0($24)\t\t# Td2[s0>>8]\n\text\t$22,$11,24,8\n\tlw\t$19,0($25)\t\t# Td2[s1>>8]\n\text\t$23,$8,24,8\n\tdins $1,$20,2,8\n\tdins $2,$21,2,8\n\tdins $24,$22,2,8\n\tdins $25,$23,2,8\n\tlw\t$20,0($1)\t\t# Td3[s1]\n\tdins $1,$8,2,8\n\tlw\t$21,0($2)\t\t# Td3[s2]\n\tdins $2,$9,2,8\n\tlw\t$22,0($24)\t\t# Td3[s3]\n\tdins $24,$10,2,8\n\tlw\t$23,0($25)\t\t# Td3[s0]\n\tdins $25,$11,2,8\n#else\n\tlw\t$16,0($1)\t\t# Td2[s2>>8]\n\tdins $1,$9,2,8\n\tlw\t$17,0($2)\t\t# Td2[s3>>8]\n\tdins $2,$10,2,8\n\tlw\t$18,0($24)\t\t# Td2[s0>>8]\n\tdins $24,$11,2,8\n\tlw\t$19,0($25)\t\t# Td2[s1>>8]\n\tdins $25,$8,2,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:20", "text": "dins $2,$21,2,8\n\tdins $24,$22,2,8\n\tdins $25,$23,2,8\n\tlw\t$20,0($1)\t\t# Td3[s1]\n\tdins $1,$8,2,8\n\tlw\t$21,0($2)\t\t# Td3[s2]\n\tdins $2,$9,2,8\n\tlw\t$22,0($24)\t\t# Td3[s3]\n\tdins $24,$10,2,8\n\tlw\t$23,0($25)\t\t# Td3[s0]\n\tdins $25,$11,2,8\n#else\n\tlw\t$16,0($1)\t\t# Td2[s2>>8]\n\tdins $1,$9,2,8\n\tlw\t$17,0($2)\t\t# Td2[s3>>8]\n\tdins $2,$10,2,8\n\tlw\t$18,0($24)\t\t# Td2[s0>>8]\n\tdins $24,$11,2,8\n\tlw\t$19,0($25)\t\t# Td2[s1>>8]\n\tdins $25,$8,2,8\n\n\tlw\t$20,0($1)\t\t# Td3[s1]\n\tsll\t$1,$8,2\n\tlw\t$21,0($2)\t\t# Td3[s2]\n\tsll\t$2,$9,2\n\tlw\t$22,0($24)\t\t# Td3[s3]\n\tsll\t$24,$10,2\n\tlw\t$23,0($25)\t\t# Td3[s0]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n\trotr\t$16,$16,16\n\trotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\trotr\t$20,$20,8\n\trotr\t$21,$21,8\n\trotr\t$22,$22,8\n\trotr\t$23,$23,8\n#else\n\tlwl\t$16,1($1)\t\t# Td2[s2>>8]\n\tlwl\t$17,1($2)\t\t# Td2[s3>>8]\n\tlwl\t$18,1($24)\t\t# Td2[s0>>8]\n\tlwl\t$19,1($25)\t\t# Td2[s1>>8]\n\tlwr\t$16,2($1)\t\t# Td2[s2>>8]\n\tsrl\t$1,$9,22\n\tlwr\t$17,2($2)\t\t# Td2[s3>>8]\n\tsrl\t$2,$10,22\n\tlwr\t$18,2($24)\t\t# Td2[s0>>8]\n\tsrl\t$24,$11,22\n\tlwr\t$19,2($25)\t\t# Td2[s1>>8]", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:21", "text": "rotr\t$17,$17,16\n\trotr\t$18,$18,16\n\trotr\t$19,$19,16\n\n\trotr\t$20,$20,8\n\trotr\t$21,$21,8\n\trotr\t$22,$22,8\n\trotr\t$23,$23,8\n#else\n\tlwl\t$16,1($1)\t\t# Td2[s2>>8]\n\tlwl\t$17,1($2)\t\t# Td2[s3>>8]\n\tlwl\t$18,1($24)\t\t# Td2[s0>>8]\n\tlwl\t$19,1($25)\t\t# Td2[s1>>8]\n\tlwr\t$16,2($1)\t\t# Td2[s2>>8]\n\tsrl\t$1,$9,22\n\tlwr\t$17,2($2)\t\t# Td2[s3>>8]\n\tsrl\t$2,$10,22\n\tlwr\t$18,2($24)\t\t# Td2[s0>>8]\n\tsrl\t$24,$11,22\n\tlwr\t$19,2($25)\t\t# Td2[s1>>8]\n\tsrl\t$25,$8,22\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlwl\t$20,0($1)\t\t# Td3[s1]\n\tlwl\t$21,0($2)\t\t# Td3[s2]\n\tlwl\t$22,0($24)\t\t# Td3[s3]\n\tlwl\t$23,0($25)\t\t# Td3[s0]\n\tlwr\t$20,1($1)\t\t# Td3[s1]\n\tsll\t$1,$8,2\n\tlwr\t$21,1($2)\t\t# Td3[s2]\n\tsll\t$2,$9,2\n\tlwr\t$22,1($24)\t\t# Td3[s3]\n\tsll\t$24,$10,2\n\tlwr\t$23,1($25)\t\t# Td3[s0]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n\n\txor\t$12,$16\n\tlw\t$16,0($1)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlw\t$17,0($2)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Td0[s2>>24]\n\txor\t$15,$19", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:22", "text": "lwr\t$23,1($25)\t\t# Td3[s0]\n\tsll\t$25,$11,2\n\n\tand\t$1,0x3fc\n\tand\t$2,0x3fc\n\tand\t$24,0x3fc\n\tand\t$25,0x3fc\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#endif\n\n\txor\t$12,$16\n\tlw\t$16,0($1)\t\t# Td0[s0>>24]\n\txor\t$13,$17\n\tlw\t$17,0($2)\t\t# Td0[s1>>24]\n\txor\t$14,$18\n\tlw\t$18,0($24)\t\t# Td0[s2>>24]\n\txor\t$15,$19\n\tlw\t$19,0($25)\t\t# Td0[s3>>24]\n\n\txor\t$12,$20\n\tlw\t$8,0($3)\n\txor\t$13,$21\n\tlw\t$9,4($3)\n\txor\t$14,$22\n\tlw\t$10,8($3)\n\txor\t$15,$23\n\tlw\t$11,12($3)\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n\n\tsubu\t$30,1\n\tdaddu $3,16\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_dec\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\text\t$12,$11,8,8\n#endif\n\n\tsrl\t$1,$11,6\n#endif\n\n\t.set\treorder\n\tlw\t$16,1024($7)\t\t# prefetch Td4\n\tsrl\t$1,$11,8\n\tlw\t$17,1024+32($7)\n\tsrl\t$2,$8,8\n\tlw\t$18,1024+64($7)\n\tsrl\t$24,$9,8\n\tlw\t$19,1024+96($7)\n\tsrl\t$25,$10,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:23", "text": "xor\t$10,$14\n\txor\t$11,$15\n\t.set\tnoreorder\n\tbnez\t$30,.Loop_dec\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\text\t$12,$11,8,8\n#endif\n\n\tsrl\t$1,$11,6\n#endif\n\n\t.set\treorder\n\tlw\t$16,1024($7)\t\t# prefetch Td4\n\tsrl\t$1,$11,8\n\tlw\t$17,1024+32($7)\n\tsrl\t$2,$8,8\n\tlw\t$18,1024+64($7)\n\tsrl\t$24,$9,8\n\tlw\t$19,1024+96($7)\n\tsrl\t$25,$10,8\n\tlw\t$20,1024+128($7)\n\tand\t$1,0xff\n\tlw\t$21,1024+160($7)\n\tand\t$2,0xff\n\tlw\t$22,1024+192($7)\n\tand\t$24,0xff\n\tlw\t$23,1024+224($7)\n\tand\t$25,0xff\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$12,1024($1)\t\t# Td4[s3>>16]\n\tsrl\t$1,$10,16\n\tlbu\t$13,1024($2)\t\t# Td4[s0>>16]\n\tsrl\t$2,$11,16\n\tlbu\t$14,1024($24)\t\t# Td4[s1>>16]\n\tsrl\t$24,$8,16\n\tlbu\t$15,1024($25)\t\t# Td4[s2>>16]\n\tsrl\t$25,$9,16\n\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,0xff\n\tand\t$25,0xff\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n# if defined(_MIPSEL)\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tdins $1,$8,0,8\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tdins $2,$9,0,8\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tdins $24,$10,0,8\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tdins $25,$11,0,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:24", "text": "srl\t$25,$9,16\n\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,0xff\n\tand\t$25,0xff\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n# if defined(_MIPSEL)\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tdins $1,$8,0,8\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tdins $2,$9,0,8\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tdins $24,$10,0,8\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tdins $25,$11,0,8\n\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tsrl\t$1,$9,24\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tsrl\t$2,$10,24\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tsrl\t$24,$11,24\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tsrl\t$25,$8,24\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n# else\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tand\t$1,$8,0xff\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tand\t$2,$9,0xff\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tand\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tdins $1,$9,0,8\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tdins $2,$10,0,8\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tdins $24,$11,0,8\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tdins $25,$8,0,8\n# endif\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:25", "text": "and\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tdins $1,$9,0,8\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tdins $2,$10,0,8\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tdins $24,$11,0,8\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tdins $25,$8,0,8\n# endif\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tins\t$12,$16,16,8\n\tlbu\t$16,1024($1)\t\t# Td4[s1]\n\tins\t$13,$17,16,8\n\tlbu\t$17,1024($2)\t\t# Td4[s2]\n\tins\t$14,$18,16,8\n\tlbu\t$18,1024($24)\t\t# Td4[s3]\n\tins\t$15,$19,16,8\n\tlbu\t$19,1024($25)\t\t# Td4[s0]\n\n\tins\t$12,$20,0,8\n\tlw\t$8,0($3)\n\tins\t$13,$21,0,8\n\tlw\t$9,4($3)\n\tins\t$14,$22,0,8\n\tlw\t$10,8($3)\n\tins\t$15,$23,0,8\n\tlw\t$11,12($3)\n\n\tins\t$12,$16,24,8\n\tins\t$13,$17,24,8\n\tins\t$14,$18,24,8\n\tins\t$15,$19,24,8\n#else\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tand\t$1,$8,0xff\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tand\t$2,$9,0xff\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tand\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tsrl\t$1,$9,24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:26", "text": "ins\t$12,$16,24,8\n\tins\t$13,$17,24,8\n\tins\t$14,$18,24,8\n\tins\t$15,$19,24,8\n#else\n\tlbu\t$16,1024($1)\t\t# Td4[s2>>8]\n\tand\t$1,$8,0xff\n\tlbu\t$17,1024($2)\t\t# Td4[s3>>8]\n\tand\t$2,$9,0xff\n\tlbu\t$18,1024($24)\t\t# Td4[s0>>8]\n\tand\t$24,$10,0xff\n\tlbu\t$19,1024($25)\t\t# Td4[s1>>8]\n\tand\t$25,$11,0xff\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$20,1024($1)\t\t# Td4[s0>>24]\n\tsrl\t$1,$9,24\n\tlbu\t$21,1024($2)\t\t# Td4[s1>>24]\n\tsrl\t$2,$10,24\n\tlbu\t$22,1024($24)\t\t# Td4[s2>>24]\n\tsrl\t$24,$11,24\n\tlbu\t$23,1024($25)\t\t# Td4[s3>>24]\n\tsrl\t$25,$8,24\n\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\n\tsll\t$12,$12,8\n\tsll\t$13,$13,8\n\tsll\t$14,$14,8\n\tsll\t$15,$15,8\n\n\tsll\t$16,$16,16\n\tsll\t$17,$17,16\n\tsll\t$18,$18,16\n\tsll\t$19,$19,16\n\n\txor\t$12,$16\n\tlbu\t$16,1024($1)\t\t# Td4[s1]\n\txor\t$13,$17\n\tlbu\t$17,1024($2)\t\t# Td4[s2]\n\txor\t$14,$18\n\tlbu\t$18,1024($24)\t\t# Td4[s3]\n\txor\t$15,$19\n\tlbu\t$19,1024($25)\t\t# Td4[s0]\n\n\t#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:27", "text": "sll\t$19,$19,16\n\n\txor\t$12,$16\n\tlbu\t$16,1024($1)\t\t# Td4[s1]\n\txor\t$13,$17\n\tlbu\t$17,1024($2)\t\t# Td4[s2]\n\txor\t$14,$18\n\tlbu\t$18,1024($24)\t\t# Td4[s3]\n\txor\t$15,$19\n\tlbu\t$19,1024($25)\t\t# Td4[s0]\n\n\t#sll\t$20,$20,0\n\tlw\t$8,0($3)\n\t#sll\t$21,$21,0\n\tlw\t$9,4($3)\n\t#sll\t$22,$22,0\n\tlw\t$10,8($3)\n\t#sll\t$23,$23,0\n\tlw\t$11,12($3)\n\n\txor\t$12,$20\n\txor\t$13,$21\n\txor\t$14,$22\n\txor\t$15,$23\n\n\tsll\t$16,$16,24\n\tsll\t$17,$17,24\n\tsll\t$18,$18,24\n\tsll\t$19,$19,24\n\n\txor\t$12,$16\n\txor\t$13,$17\n\txor\t$14,$18\n\txor\t$15,$19\n#endif\n\n\txor\t$8,$12\n\txor\t$9,$13\n\txor\t$10,$14\n\txor\t$11,$15\n\n\tjr\t$31\n.end\t_mips_AES_decrypt\n\n.align\t5\n.globl\tAES_decrypt\n.ent\tAES_decrypt\nAES_decrypt:\n\t.frame\t$29,128,$31\n\t.mask\t0xc0ff0000,-8\n\t.set\tnoreorder\n\tdsubu $29,128\n\tsd\t$31,128-1*8($29)\n\tsd\t$30,128-2*8($29)\n\tsd\t$23,128-3*8($29)\n\tsd\t$22,128-4*8($29)\n\tsd\t$21,128-5*8($29)\n\tsd\t$20,128-6*8($29)\n\tsd\t$19,128-7*8($29)\n\tsd\t$18,128-8*8($29)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:28", "text": "jr\t$31\n.end\t_mips_AES_decrypt\n\n.align\t5\n.globl\tAES_decrypt\n.ent\tAES_decrypt\nAES_decrypt:\n\t.frame\t$29,128,$31\n\t.mask\t0xc0ff0000,-8\n\t.set\tnoreorder\n\tdsubu $29,128\n\tsd\t$31,128-1*8($29)\n\tsd\t$30,128-2*8($29)\n\tsd\t$23,128-3*8($29)\n\tsd\t$22,128-4*8($29)\n\tsd\t$21,128-5*8($29)\n\tsd\t$20,128-6*8($29)\n\tsd\t$19,128-7*8($29)\n\tsd\t$18,128-8*8($29)\n\tsd\t$17,128-9*8($29)\n\tsd\t$16,128-10*8($29)\n\t.cplocal\t$7\n\t.cpsetup\t$25,$0,AES_decrypt\n\t.set\treorder\n\tdla\t$7,AES_Td\t\t# PIC-ified 'load address'\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\n\tbal\t_mips_AES_decrypt\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n#else\n\tswr\t$8,0+0($5)\n\tswr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:29", "text": "lwr\t$11,12+0($4)\n#endif\n\n\tbal\t_mips_AES_decrypt\n\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n#else\n\tswr\t$8,0+0($5)\n\tswr\t$9,4+0($5)\n\tswr\t$10,8+0($5)\n\tswr\t$11,12+0($5)\n\tswl\t$8,0+3($5)\n\tswl\t$9,4+3($5)\n\tswl\t$10,8+3($5)\n\tswl\t$11,12+3($5)\n#endif\n\n\t.set\tnoreorder\n\tld\t$31,128-1*8($29)\n\tld\t$30,128-2*8($29)\n\tld\t$23,128-3*8($29)\n\tld\t$22,128-4*8($29)\n\tld\t$21,128-5*8($29)\n\tld\t$20,128-6*8($29)\n\tld\t$19,128-7*8($29)\n\tld\t$18,128-8*8($29)\n\tld\t$17,128-9*8($29)\n\tld\t$16,128-10*8($29)\n\tjr\t$31\n\tdaddu $29,128\n.end\tAES_decrypt\n.align\t5\n.ent\t_mips_AES_set_encrypt_key\n_mips_AES_set_encrypt_key:\n\t.frame\t$29,0,$31\n\t.set\tnoreorder\n\tbeqz\t$4,.Lekey_done\n\tli\t$2,-1\n\tbeqz\t$6,.Lekey_done\n\tdaddu $3,$7,256\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\t\t# load 128 bits\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\t# load 128 bits\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:30", "text": "beqz\t$4,.Lekey_done\n\tli\t$2,-1\n\tbeqz\t$6,.Lekey_done\n\tdaddu $3,$7,256\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$8,0($4)\t\t# load 128 bits\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n#else\n\tlwl\t$8,0+3($4)\t# load 128 bits\n\tlwl\t$9,4+3($4)\n\tlwl\t$10,8+3($4)\n\tlwl\t$11,12+3($4)\n\tlwr\t$8,0+0($4)\n\tlwr\t$9,4+0($4)\n\tlwr\t$10,8+0($4)\n\tlwr\t$11,12+0($4)\n#endif\n\tli\t$1,128\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L128bits\n\tli\t$30,10\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$12,16($4)\t\t# load 192 bits\n\tlw\t$13,20($4)\n#else\n\tlwl\t$12,16+3($4)\t# load 192 bits\n\tlwl\t$13,20+3($4)\n\tlwr\t$12,16+0($4)\n\tlwr\t$13,20+0($4)\n#endif\n\tli\t$1,192\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L192bits\n\tli\t$30,8\n\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$14,24($4)\t\t# load 256 bits\n\tlw\t$15,28($4)\n#else\n\tlwl\t$14,24+3($4)\t# load 256 bits\n\tlwl\t$15,28+3($4)\n\tlwr\t$14,24+0($4)\n\tlwr\t$15,28+0($4)\n#endif\n\tli\t$1,256\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L256bits\n\tli\t$30,7\n\n\tb\t.Lekey_done\n\tli\t$2,-2\n\n.align\t4", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:31", "text": ".set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlw\t$14,24($4)\t\t# load 256 bits\n\tlw\t$15,28($4)\n#else\n\tlwl\t$14,24+3($4)\t# load 256 bits\n\tlwl\t$15,28+3($4)\n\tlwr\t$14,24+0($4)\n\tlwr\t$15,28+0($4)\n#endif\n\tli\t$1,256\n\t.set\tnoreorder\n\tbeq\t$5,$1,.L256bits\n\tli\t$30,7\n\n\tb\t.Lekey_done\n\tli\t$2,-2\n\n.align\t4\n.L128bits:\n\t.set\treorder\n\tsrl\t$1,$11,16\n\tsrl\t$2,$11,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$11,0xff\n\tsrl\t$25,$11,24\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsubu\t$30,1\n\tdaddu $6,16\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:32", "text": "sw\t$11,12($6)\n\tsubu\t$30,1\n\tdaddu $6,16\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\n\t.set\tnoreorder\n\tbnez\t$30,.L128bits\n\tdaddu $3,4\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tli\t$30,10\n\tsw\t$11,12($6)\n\tli\t$2,0\n\tsw\t$30,80($6)\n\tb\t.Lekey_done\n\tdsubu $6,10*16\n\n.align\t4\n.L192bits:\n\t.set\treorder\n\tsrl\t$1,$13,16\n\tsrl\t$2,$13,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$13,0xff\n\tsrl\t$25,$13,24\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsw\t$12,16($6)\n\tsw\t$13,20($6)\n\tsubu\t$30,1\n\tdaddu $6,24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:33", "text": "and\t$2,0xff\n\tand\t$24,$13,0xff\n\tsrl\t$25,$13,24\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsw\t$12,16($6)\n\tsw\t$13,20($6)\n\tsubu\t$30,1\n\tdaddu $6,24\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\txor\t$12,$11\n\txor\t$13,$12\n\n\t.set\tnoreorder\n\tbnez\t$30,.L192bits\n\tdaddu $3,4\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tli\t$30,12\n\tsw\t$11,12($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tb\t.Lekey_done\n\tdsubu $6,12*16\n\n.align\t4\n.L256bits:\n\t.set\treorder\n\tsrl\t$1,$15,16\n\tsrl\t$2,$15,8\n\tand\t$1,0xff\n\tand\t$2,0xff", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:34", "text": "bnez\t$30,.L192bits\n\tdaddu $3,4\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tli\t$30,12\n\tsw\t$11,12($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tb\t.Lekey_done\n\tdsubu $6,12*16\n\n.align\t4\n.L256bits:\n\t.set\treorder\n\tsrl\t$1,$15,16\n\tsrl\t$2,$15,8\n\tand\t$1,0xff\n\tand\t$2,0xff\n\tand\t$24,$15,0xff\n\tsrl\t$25,$15,24\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\n\tsw\t$8,0($6)\n\tsw\t$9,4($6)\n\tsw\t$10,8($6)\n\tsw\t$11,12($6)\n\tsw\t$12,16($6)\n\tsw\t$13,20($6)\n\tsw\t$14,24($6)\n\tsw\t$15,28($6)\n\tsubu\t$30,1\n\n\tsll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\tbeqz\t$30,.L256bits_done\n\n\tsrl\t$1,$11,24\n\tsrl\t$2,$11,16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:35", "text": "sll\t$1,$1,8\n\t#sll\t$2,$2,0\n\tsll\t$24,$24,24\n\tsll\t$25,$25,16\n\n\txor\t$8,$1\n\tlw\t$1,0($3)\n\txor\t$8,$2\n\txor\t$8,$24\n\txor\t$8,$25\n\txor\t$8,$1\n\n\txor\t$9,$8\n\txor\t$10,$9\n\txor\t$11,$10\n\tbeqz\t$30,.L256bits_done\n\n\tsrl\t$1,$11,24\n\tsrl\t$2,$11,16\n\tsrl\t$24,$11,8\n\tand\t$25,$11,0xff\n\tand\t$2,0xff\n\tand\t$24,0xff\n\tdaddu $1,$7\n\tdaddu $2,$7\n\tdaddu $24,$7\n\tdaddu $25,$7\n\tlbu\t$1,0($1)\n\tlbu\t$2,0($2)\n\tlbu\t$24,0($24)\n\tlbu\t$25,0($25)\n\tsll\t$1,24\n\tsll\t$2,16\n\tsll\t$24,8\n\n\txor\t$12,$1\n\txor\t$12,$2\n\txor\t$12,$24\n\txor\t$12,$25\n\n\txor\t$13,$12\n\txor\t$14,$13\n\txor\t$15,$14\n\n\tdaddu $6,32\n\t.set\tnoreorder\n\tb\t.L256bits\n\tdaddu $3,4\n\n.L256bits_done:\n\tsw\t$8,32($6)\n\tsw\t$9,36($6)\n\tsw\t$10,40($6)\n\tli\t$30,14\n\tsw\t$11,44($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tdsubu $6,12*16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:36", "text": "xor\t$13,$12\n\txor\t$14,$13\n\txor\t$15,$14\n\n\tdaddu $6,32\n\t.set\tnoreorder\n\tb\t.L256bits\n\tdaddu $3,4\n\n.L256bits_done:\n\tsw\t$8,32($6)\n\tsw\t$9,36($6)\n\tsw\t$10,40($6)\n\tli\t$30,14\n\tsw\t$11,44($6)\n\tli\t$2,0\n\tsw\t$30,48($6)\n\tdsubu $6,12*16\n\n.Lekey_done:\n\tjr\t$31\n\tnop\n.end\t_mips_AES_set_encrypt_key\n\n.globl\tAES_set_encrypt_key\n.ent\tAES_set_encrypt_key\nAES_set_encrypt_key:\n\t.frame\t$29,64,$31\n\t.mask\t0xc0000000,-8\n\t.set\tnoreorder\n\tdsubu $29,64\n\tsd\t$31,64-1*8($29)\n\tsd\t$30,64-2*8($29)\n\t.cplocal\t$7\n\t.cpsetup\t$25,$0,AES_set_encrypt_key\n\t.set\treorder\n\tdla\t$7,AES_Te4\t\t# PIC-ified 'load address'\n\n\tbal\t_mips_AES_set_encrypt_key\n\n\t.set\tnoreorder\n\tmove\t$4,$2\n\tld\t$31,64-1*8($29)\n\tld\t$30,64-2*8($29)\n\tjr\t$31\n\tdaddu $29,64\n.end\tAES_set_encrypt_key\n.align\t5\n.globl\tAES_set_decrypt_key\n.ent\tAES_set_decrypt_key\nAES_set_decrypt_key:\n\t.frame\t$29,64,$31\n\t.mask\t0xc0000000,-8\n\t.set\tnoreorder\n\tdsubu $29,64\n\tsd\t$31,64-1*8($29)\n\tsd\t$30,64-2*8($29)\n\t.cplocal\t$7\n\t.cpsetup\t$25,$0,AES_set_decrypt_key", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:37", "text": ".set\tnoreorder\n\tmove\t$4,$2\n\tld\t$31,64-1*8($29)\n\tld\t$30,64-2*8($29)\n\tjr\t$31\n\tdaddu $29,64\n.end\tAES_set_encrypt_key\n.align\t5\n.globl\tAES_set_decrypt_key\n.ent\tAES_set_decrypt_key\nAES_set_decrypt_key:\n\t.frame\t$29,64,$31\n\t.mask\t0xc0000000,-8\n\t.set\tnoreorder\n\tdsubu $29,64\n\tsd\t$31,64-1*8($29)\n\tsd\t$30,64-2*8($29)\n\t.cplocal\t$7\n\t.cpsetup\t$25,$0,AES_set_decrypt_key\n\t.set\treorder\n\tdla\t$7,AES_Te4\t\t# PIC-ified 'load address'\n\n\tbal\t_mips_AES_set_encrypt_key\n\n\tbltz\t$2,.Ldkey_done\n\n\tsll\t$1,$30,4\n\tdaddu $4,$6,0\n\tdaddu $5,$6,$1\n.align\t4\n.Lswap:\n\tlw\t$8,0($4)\n\tlw\t$9,4($4)\n\tlw\t$10,8($4)\n\tlw\t$11,12($4)\n\tlw\t$12,0($5)\n\tlw\t$13,4($5)\n\tlw\t$14,8($5)\n\tlw\t$15,12($5)\n\tsw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n\tdaddu $4,16\n\tdsubu $5,16\n\tsw\t$12,-16($4)\n\tsw\t$13,-12($4)\n\tsw\t$14,-8($4)\n\tsw\t$15,-4($4)\n\tbne\t$4,$5,.Lswap\n\n\tlw\t$8,16($6)\t\t# modulo-scheduled\n\tlui\t$2,0x8080\n\tsubu\t$30,1\n\tor\t$2,0x8080\n\tsll\t$30,2\n\tdaddu $6,16\n\tlui\t$25,0x1b1b\n\tnor\t$24,$0,$2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:38", "text": "sw\t$8,0($5)\n\tsw\t$9,4($5)\n\tsw\t$10,8($5)\n\tsw\t$11,12($5)\n\tdaddu $4,16\n\tdsubu $5,16\n\tsw\t$12,-16($4)\n\tsw\t$13,-12($4)\n\tsw\t$14,-8($4)\n\tsw\t$15,-4($4)\n\tbne\t$4,$5,.Lswap\n\n\tlw\t$8,16($6)\t\t# modulo-scheduled\n\tlui\t$2,0x8080\n\tsubu\t$30,1\n\tor\t$2,0x8080\n\tsll\t$30,2\n\tdaddu $6,16\n\tlui\t$25,0x1b1b\n\tnor\t$24,$0,$2\n\tor\t$25,0x1b1b\n.align\t4\n.Lmix:\n\tand\t$1,$8,$2\n\tand\t$9,$8,$24\n\tsrl\t$10,$1,7\n\taddu\t$9,$9\t\t# tp2<<1\n\tsubu\t$1,$10\n\tand\t$1,$25\n\txor\t$9,$1\n\n\tand\t$1,$9,$2\n\tand\t$10,$9,$24\n\tsrl\t$11,$1,7\n\taddu\t$10,$10\t\t# tp4<<1\n\tsubu\t$1,$11\n\tand\t$1,$25\n\txor\t$10,$1\n\n\tand\t$1,$10,$2\n\tand\t$11,$10,$24\n\tsrl\t$12,$1,7\n\taddu\t$11,$11\t\t# tp8<<1\n\tsubu\t$1,$12\n\tand\t$1,$25\n\txor\t$11,$1\n\n\txor\t$12,$11,$8\n\txor\t$15,$11,$10\n\txor\t$13,$12,$9\n\txor\t$14,$12,$10\n\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$8,$14,16\n\t xor\t$15,$9\n\trotr\t$9,$12,24\n\txor\t$15,$8\n\trotr\t$10,$13,8\n\txor\t$15,$9\n\tlw\t$8,4($6)\t\t# modulo-scheduled", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:39", "text": "and\t$11,$10,$24\n\tsrl\t$12,$1,7\n\taddu\t$11,$11\t\t# tp8<<1\n\tsubu\t$1,$12\n\tand\t$1,$25\n\txor\t$11,$1\n\n\txor\t$12,$11,$8\n\txor\t$15,$11,$10\n\txor\t$13,$12,$9\n\txor\t$14,$12,$10\n\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\trotr\t$8,$14,16\n\t xor\t$15,$9\n\trotr\t$9,$12,24\n\txor\t$15,$8\n\trotr\t$10,$13,8\n\txor\t$15,$9\n\tlw\t$8,4($6)\t\t# modulo-scheduled\n\txor\t$15,$10\n#else\n\tsll\t$8,$14,16\n\t xor\t$15,$9\n\tsrl\t$9,$14,16\n\txor\t$15,$8\n\tsll\t$8,$12,8\n\txor\t$15,$9\n\tsrl\t$9,$12,24\n\txor\t$15,$8\n\tsll\t$8,$13,24\n\txor\t$15,$9\n\tsrl\t$9,$13,8\n\txor\t$15,$8\n\tlw\t$8,4($6)\t\t# modulo-scheduled\n\txor\t$15,$9\n#endif\n\tsubu\t$30,1\n\tsw\t$15,0($6)\n\tdaddu $6,4\n\tbnez\t$30,.Lmix\n\n\tli\t$2,0\n.Ldkey_done:\n\t.set\tnoreorder\n\tmove\t$4,$2\n\tld\t$31,64-1*8($29)\n\tld\t$30,64-2*8($29)\n\tjr\t$31\n\tdaddu $29,64\n.end\tAES_set_decrypt_key\n.rdata\n.align\t10\nAES_Te:\n.byte\t0xc6,0x63,0x63,0xa5,\t0xf8,0x7c,0x7c,0x84\t# Te0\n.byte\t0xee,0x77,0x77,0x99,\t0xf6,0x7b,0x7b,0x8d\n.byte\t0xff,0xf2,0xf2,0x0d,\t0xd6,0x6b,0x6b,0xbd\n.byte\t0xde,0x6f,0x6f,0xb1,\t0x91,0xc5,0xc5,0x54\n.byte\t0x60,0x30,0x30,0x50,\t0x02,0x01,0x01,0x03\n.byte\t0xce,0x67,0x67,0xa9,\t0x56,0x2b,0x2b,0x7d", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:40", "text": "bnez\t$30,.Lmix\n\n\tli\t$2,0\n.Ldkey_done:\n\t.set\tnoreorder\n\tmove\t$4,$2\n\tld\t$31,64-1*8($29)\n\tld\t$30,64-2*8($29)\n\tjr\t$31\n\tdaddu $29,64\n.end\tAES_set_decrypt_key\n.rdata\n.align\t10\nAES_Te:\n.byte\t0xc6,0x63,0x63,0xa5,\t0xf8,0x7c,0x7c,0x84\t# Te0\n.byte\t0xee,0x77,0x77,0x99,\t0xf6,0x7b,0x7b,0x8d\n.byte\t0xff,0xf2,0xf2,0x0d,\t0xd6,0x6b,0x6b,0xbd\n.byte\t0xde,0x6f,0x6f,0xb1,\t0x91,0xc5,0xc5,0x54\n.byte\t0x60,0x30,0x30,0x50,\t0x02,0x01,0x01,0x03\n.byte\t0xce,0x67,0x67,0xa9,\t0x56,0x2b,0x2b,0x7d\n.byte\t0xe7,0xfe,0xfe,0x19,\t0xb5,0xd7,0xd7,0x62\n.byte\t0x4d,0xab,0xab,0xe6,\t0xec,0x76,0x76,0x9a\n.byte\t0x8f,0xca,0xca,0x45,\t0x1f,0x82,0x82,0x9d\n.byte\t0x89,0xc9,0xc9,0x40,\t0xfa,0x7d,0x7d,0x87\n.byte\t0xef,0xfa,0xfa,0x15,\t0xb2,0x59,0x59,0xeb\n.byte\t0x8e,0x47,0x47,0xc9,\t0xfb,0xf0,0xf0,0x0b\n.byte\t0x41,0xad,0xad,0xec,\t0xb3,0xd4,0xd4,0x67\n.byte\t0x5f,0xa2,0xa2,0xfd,\t0x45,0xaf,0xaf,0xea\n.byte\t0x23,0x9c,0x9c,0xbf,\t0x53,0xa4,0xa4,0xf7\n.byte\t0xe4,0x72,0x72,0x96,\t0x9b,0xc0,0xc0,0x5b\n.byte\t0x75,0xb7,0xb7,0xc2,\t0xe1,0xfd,0xfd,0x1c\n.byte\t0x3d,0x93,0x93,0xae,\t0x4c,0x26,0x26,0x6a\n.byte\t0x6c,0x36,0x36,0x5a,\t0x7e,0x3f,0x3f,0x41\n.byte\t0xf5,0xf7,0xf7,0x02,\t0x83,0xcc,0xcc,0x4f\n.byte\t0x68,0x34,0x34,0x5c,\t0x51,0xa5,0xa5,0xf4\n.byte\t0xd1,0xe5,0xe5,0x34,\t0xf9,0xf1,0xf1,0x08\n.byte\t0xe2,0x71,0x71,0x93,\t0xab,0xd8,0xd8,0x73\n.byte\t0x62,0x31,0x31,0x53,\t0x2a,0x15,0x15,0x3f\n.byte\t0x08,0x04,0x04,0x0c,\t0x95,0xc7,0xc7,0x52\n.byte\t0x46,0x23,0x23,0x65,\t0x9d,0xc3,0xc3,0x5e\n.byte\t0x30,0x18,0x18,0x28,\t0x37,0x96,0x96,0xa1\n.byte\t0x0a,0x05,0x05,0x0f,\t0x2f,0x9a,0x9a,0xb5\n.byte\t0x0e,0x07,0x07,0x09,\t0x24,0x12,0x12,0x36\n.byte\t0x1b,0x80,0x80,0x9b,\t0xdf,0xe2,0xe2,0x3d\n.byte\t0xcd,0xeb,0xeb,0x26,\t0x4e,0x27,0x27,0x69\n.byte\t0x7f,0xb2,0xb2,0xcd,\t0xea,0x75,0x75,0x9f\n.byte\t0x12,0x09,0x09,0x1b,\t0x1d,0x83,0x83,0x9e\n.byte\t0x58,0x2c,0x2c,0x74,\t0x34,0x1a,0x1a,0x2e\n.byte\t0x36,0x1b,0x1b,0x2d,\t0xdc,0x6e,0x6e,0xb2\n.byte\t0xb4,0x5a,0x5a,0xee,\t0x5b,0xa0,0xa0,0xfb\n.byte\t0xa4,0x52,0x52,0xf6,\t0x76,0x3b,0x3b,0x4d\n.byte\t0xb7,0xd6,0xd6,0x61,\t0x7d,0xb3,0xb3,0xce\n.byte\t0x52,0x29,0x29,0x7b,\t0xdd,0xe3,0xe3,0x3e\n.byte\t0x5e,0x2f,0x2f,0x71,\t0x13,0x84,0x84,0x97\n.byte\t0xa6,0x53,0x53,0xf5,\t0xb9,0xd1,0xd1,0x68\n.byte\t0x00,0x00,0x00,0x00,\t0xc1,0xed,0xed,0x2c\n.byte\t0x40,0x20,0x20,0x60,\t0xe3,0xfc,0xfc,0x1f\n.byte\t0x79,0xb1,0xb1,0xc8,\t0xb6,0x5b,0x5b,0xed\n.byte\t0xd4,0x6a,0x6a,0xbe,\t0x8d,0xcb,0xcb,0x46\n.byte\t0x67,0xbe,0xbe,0xd9,\t0x72,0x39,0x39,0x4b", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:41", "text": ".byte\t0x30,0x18,0x18,0x28,\t0x37,0x96,0x96,0xa1\n.byte\t0x0a,0x05,0x05,0x0f,\t0x2f,0x9a,0x9a,0xb5\n.byte\t0x0e,0x07,0x07,0x09,\t0x24,0x12,0x12,0x36\n.byte\t0x1b,0x80,0x80,0x9b,\t0xdf,0xe2,0xe2,0x3d\n.byte\t0xcd,0xeb,0xeb,0x26,\t0x4e,0x27,0x27,0x69\n.byte\t0x7f,0xb2,0xb2,0xcd,\t0xea,0x75,0x75,0x9f\n.byte\t0x12,0x09,0x09,0x1b,\t0x1d,0x83,0x83,0x9e\n.byte\t0x58,0x2c,0x2c,0x74,\t0x34,0x1a,0x1a,0x2e\n.byte\t0x36,0x1b,0x1b,0x2d,\t0xdc,0x6e,0x6e,0xb2\n.byte\t0xb4,0x5a,0x5a,0xee,\t0x5b,0xa0,0xa0,0xfb\n.byte\t0xa4,0x52,0x52,0xf6,\t0x76,0x3b,0x3b,0x4d\n.byte\t0xb7,0xd6,0xd6,0x61,\t0x7d,0xb3,0xb3,0xce\n.byte\t0x52,0x29,0x29,0x7b,\t0xdd,0xe3,0xe3,0x3e\n.byte\t0x5e,0x2f,0x2f,0x71,\t0x13,0x84,0x84,0x97\n.byte\t0xa6,0x53,0x53,0xf5,\t0xb9,0xd1,0xd1,0x68\n.byte\t0x00,0x00,0x00,0x00,\t0xc1,0xed,0xed,0x2c\n.byte\t0x40,0x20,0x20,0x60,\t0xe3,0xfc,0xfc,0x1f\n.byte\t0x79,0xb1,0xb1,0xc8,\t0xb6,0x5b,0x5b,0xed\n.byte\t0xd4,0x6a,0x6a,0xbe,\t0x8d,0xcb,0xcb,0x46\n.byte\t0x67,0xbe,0xbe,0xd9,\t0x72,0x39,0x39,0x4b\n.byte\t0x94,0x4a,0x4a,0xde,\t0x98,0x4c,0x4c,0xd4\n.byte\t0xb0,0x58,0x58,0xe8,\t0x85,0xcf,0xcf,0x4a\n.byte\t0xbb,0xd0,0xd0,0x6b,\t0xc5,0xef,0xef,0x2a\n.byte\t0x4f,0xaa,0xaa,0xe5,\t0xed,0xfb,0xfb,0x16\n.byte\t0x86,0x43,0x43,0xc5,\t0x9a,0x4d,0x4d,0xd7\n.byte\t0x66,0x33,0x33,0x55,\t0x11,0x85,0x85,0x94\n.byte\t0x8a,0x45,0x45,0xcf,\t0xe9,0xf9,0xf9,0x10\n.byte\t0x04,0x02,0x02,0x06,\t0xfe,0x7f,0x7f,0x81\n.byte\t0xa0,0x50,0x50,0xf0,\t0x78,0x3c,0x3c,0x44\n.byte\t0x25,0x9f,0x9f,0xba,\t0x4b,0xa8,0xa8,0xe3\n.byte\t0xa2,0x51,0x51,0xf3,\t0x5d,0xa3,0xa3,0xfe\n.byte\t0x80,0x40,0x40,0xc0,\t0x05,0x8f,0x8f,0x8a\n.byte\t0x3f,0x92,0x92,0xad,\t0x21,0x9d,0x9d,0xbc\n.byte\t0x70,0x38,0x38,0x48,\t0xf1,0xf5,0xf5,0x04\n.byte\t0x63,0xbc,0xbc,0xdf,\t0x77,0xb6,0xb6,0xc1\n.byte\t0xaf,0xda,0xda,0x75,\t0x42,0x21,0x21,0x63\n.byte\t0x20,0x10,0x10,0x30,\t0xe5,0xff,0xff,0x1a\n.byte\t0xfd,0xf3,0xf3,0x0e,\t0xbf,0xd2,0xd2,0x6d\n.byte\t0x81,0xcd,0xcd,0x4c,\t0x18,0x0c,0x0c,0x14\n.byte\t0x26,0x13,0x13,0x35,\t0xc3,0xec,0xec,0x2f\n.byte\t0xbe,0x5f,0x5f,0xe1,\t0x35,0x97,0x97,0xa2\n.byte\t0x88,0x44,0x44,0xcc,\t0x2e,0x17,0x17,0x39\n.byte\t0x93,0xc4,0xc4,0x57,\t0x55,0xa7,0xa7,0xf2\n.byte\t0xfc,0x7e,0x7e,0x82,\t0x7a,0x3d,0x3d,0x47\n.byte\t0xc8,0x64,0x64,0xac,\t0xba,0x5d,0x5d,0xe7\n.byte\t0x32,0x19,0x19,0x2b,\t0xe6,0x73,0x73,0x95\n.byte\t0xc0,0x60,0x60,0xa0,\t0x19,0x81,0x81,0x98\n.byte\t0x9e,0x4f,0x4f,0xd1,\t0xa3,0xdc,0xdc,0x7f\n.byte\t0x44,0x22,0x22,0x66,\t0x54,0x2a,0x2a,0x7e\n.byte\t0x3b,0x90,0x90,0xab,\t0x0b,0x88,0x88,0x83\n.byte\t0x8c,0x46,0x46,0xca,\t0xc7,0xee,0xee,0x29\n.byte\t0x6b,0xb8,0xb8,0xd3,\t0x28,0x14,0x14,0x3c\n.byte\t0xa7,0xde,0xde,0x79,\t0xbc,0x5e,0x5e,0xe2\n.byte\t0x16,0x0b,0x0b,0x1d,\t0xad,0xdb,0xdb,0x76\n.byte\t0xdb,0xe0,0xe0,0x3b,\t0x64,0x32,0x32,0x56\n.byte\t0x74,0x3a,0x3a,0x4e,\t0x14,0x0a,0x0a,0x1e\n.byte\t0x92,0x49,0x49,0xdb,\t0x0c,0x06,0x06,0x0a\n.byte\t0x48,0x24,0x24,0x6c,\t0xb8,0x5c,0x5c,0xe4\n.byte\t0x9f,0xc2,0xc2,0x5d,\t0xbd,0xd3,0xd3,0x6e\n.byte\t0x43,0xac,0xac,0xef,\t0xc4,0x62,0x62,0xa6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:42", "text": ".byte\t0xbe,0x5f,0x5f,0xe1,\t0x35,0x97,0x97,0xa2\n.byte\t0x88,0x44,0x44,0xcc,\t0x2e,0x17,0x17,0x39\n.byte\t0x93,0xc4,0xc4,0x57,\t0x55,0xa7,0xa7,0xf2\n.byte\t0xfc,0x7e,0x7e,0x82,\t0x7a,0x3d,0x3d,0x47\n.byte\t0xc8,0x64,0x64,0xac,\t0xba,0x5d,0x5d,0xe7\n.byte\t0x32,0x19,0x19,0x2b,\t0xe6,0x73,0x73,0x95\n.byte\t0xc0,0x60,0x60,0xa0,\t0x19,0x81,0x81,0x98\n.byte\t0x9e,0x4f,0x4f,0xd1,\t0xa3,0xdc,0xdc,0x7f\n.byte\t0x44,0x22,0x22,0x66,\t0x54,0x2a,0x2a,0x7e\n.byte\t0x3b,0x90,0x90,0xab,\t0x0b,0x88,0x88,0x83\n.byte\t0x8c,0x46,0x46,0xca,\t0xc7,0xee,0xee,0x29\n.byte\t0x6b,0xb8,0xb8,0xd3,\t0x28,0x14,0x14,0x3c\n.byte\t0xa7,0xde,0xde,0x79,\t0xbc,0x5e,0x5e,0xe2\n.byte\t0x16,0x0b,0x0b,0x1d,\t0xad,0xdb,0xdb,0x76\n.byte\t0xdb,0xe0,0xe0,0x3b,\t0x64,0x32,0x32,0x56\n.byte\t0x74,0x3a,0x3a,0x4e,\t0x14,0x0a,0x0a,0x1e\n.byte\t0x92,0x49,0x49,0xdb,\t0x0c,0x06,0x06,0x0a\n.byte\t0x48,0x24,0x24,0x6c,\t0xb8,0x5c,0x5c,0xe4\n.byte\t0x9f,0xc2,0xc2,0x5d,\t0xbd,0xd3,0xd3,0x6e\n.byte\t0x43,0xac,0xac,0xef,\t0xc4,0x62,0x62,0xa6\n.byte\t0x39,0x91,0x91,0xa8,\t0x31,0x95,0x95,0xa4\n.byte\t0xd3,0xe4,0xe4,0x37,\t0xf2,0x79,0x79,0x8b\n.byte\t0xd5,0xe7,0xe7,0x32,\t0x8b,0xc8,0xc8,0x43\n.byte\t0x6e,0x37,0x37,0x59,\t0xda,0x6d,0x6d,0xb7\n.byte\t0x01,0x8d,0x8d,0x8c,\t0xb1,0xd5,0xd5,0x64\n.byte\t0x9c,0x4e,0x4e,0xd2,\t0x49,0xa9,0xa9,0xe0\n.byte\t0xd8,0x6c,0x6c,0xb4,\t0xac,0x56,0x56,0xfa\n.byte\t0xf3,0xf4,0xf4,0x07,\t0xcf,0xea,0xea,0x25\n.byte\t0xca,0x65,0x65,0xaf,\t0xf4,0x7a,0x7a,0x8e\n.byte\t0x47,0xae,0xae,0xe9,\t0x10,0x08,0x08,0x18\n.byte\t0x6f,0xba,0xba,0xd5,\t0xf0,0x78,0x78,0x88\n.byte\t0x4a,0x25,0x25,0x6f,\t0x5c,0x2e,0x2e,0x72\n.byte\t0x38,0x1c,0x1c,0x24,\t0x57,0xa6,0xa6,0xf1\n.byte\t0x73,0xb4,0xb4,0xc7,\t0x97,0xc6,0xc6,0x51\n.byte\t0xcb,0xe8,0xe8,0x23,\t0xa1,0xdd,0xdd,0x7c\n.byte\t0xe8,0x74,0x74,0x9c,\t0x3e,0x1f,0x1f,0x21\n.byte\t0x96,0x4b,0x4b,0xdd,\t0x61,0xbd,0xbd,0xdc\n.byte\t0x0d,0x8b,0x8b,0x86,\t0x0f,0x8a,0x8a,0x85\n.byte\t0xe0,0x70,0x70,0x90,\t0x7c,0x3e,0x3e,0x42\n.byte\t0x71,0xb5,0xb5,0xc4,\t0xcc,0x66,0x66,0xaa\n.byte\t0x90,0x48,0x48,0xd8,\t0x06,0x03,0x03,0x05\n.byte\t0xf7,0xf6,0xf6,0x01,\t0x1c,0x0e,0x0e,0x12\n.byte\t0xc2,0x61,0x61,0xa3,\t0x6a,0x35,0x35,0x5f\n.byte\t0xae,0x57,0x57,0xf9,\t0x69,0xb9,0xb9,0xd0\n.byte\t0x17,0x86,0x86,0x91,\t0x99,0xc1,0xc1,0x58\n.byte\t0x3a,0x1d,0x1d,0x27,\t0x27,0x9e,0x9e,0xb9\n.byte\t0xd9,0xe1,0xe1,0x38,\t0xeb,0xf8,0xf8,0x13\n.byte\t0x2b,0x98,0x98,0xb3,\t0x22,0x11,0x11,0x33\n.byte\t0xd2,0x69,0x69,0xbb,\t0xa9,0xd9,0xd9,0x70\n.byte\t0x07,0x8e,0x8e,0x89,\t0x33,0x94,0x94,0xa7\n.byte\t0x2d,0x9b,0x9b,0xb6,\t0x3c,0x1e,0x1e,0x22\n.byte\t0x15,0x87,0x87,0x92,\t0xc9,0xe9,0xe9,0x20\n.byte\t0x87,0xce,0xce,0x49,\t0xaa,0x55,0x55,0xff\n.byte\t0x50,0x28,0x28,0x78,\t0xa5,0xdf,0xdf,0x7a\n.byte\t0x03,0x8c,0x8c,0x8f,\t0x59,0xa1,0xa1,0xf8\n.byte\t0x09,0x89,0x89,0x80,\t0x1a,0x0d,0x0d,0x17\n.byte\t0x65,0xbf,0xbf,0xda,\t0xd7,0xe6,0xe6,0x31\n.byte\t0x84,0x42,0x42,0xc6,\t0xd0,0x68,0x68,0xb8\n.byte\t0x82,0x41,0x41,0xc3,\t0x29,0x99,0x99,0xb0\n.byte\t0x5a,0x2d,0x2d,0x77,\t0x1e,0x0f,0x0f,0x11", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:43", "text": ".byte\t0x90,0x48,0x48,0xd8,\t0x06,0x03,0x03,0x05\n.byte\t0xf7,0xf6,0xf6,0x01,\t0x1c,0x0e,0x0e,0x12\n.byte\t0xc2,0x61,0x61,0xa3,\t0x6a,0x35,0x35,0x5f\n.byte\t0xae,0x57,0x57,0xf9,\t0x69,0xb9,0xb9,0xd0\n.byte\t0x17,0x86,0x86,0x91,\t0x99,0xc1,0xc1,0x58\n.byte\t0x3a,0x1d,0x1d,0x27,\t0x27,0x9e,0x9e,0xb9\n.byte\t0xd9,0xe1,0xe1,0x38,\t0xeb,0xf8,0xf8,0x13\n.byte\t0x2b,0x98,0x98,0xb3,\t0x22,0x11,0x11,0x33\n.byte\t0xd2,0x69,0x69,0xbb,\t0xa9,0xd9,0xd9,0x70\n.byte\t0x07,0x8e,0x8e,0x89,\t0x33,0x94,0x94,0xa7\n.byte\t0x2d,0x9b,0x9b,0xb6,\t0x3c,0x1e,0x1e,0x22\n.byte\t0x15,0x87,0x87,0x92,\t0xc9,0xe9,0xe9,0x20\n.byte\t0x87,0xce,0xce,0x49,\t0xaa,0x55,0x55,0xff\n.byte\t0x50,0x28,0x28,0x78,\t0xa5,0xdf,0xdf,0x7a\n.byte\t0x03,0x8c,0x8c,0x8f,\t0x59,0xa1,0xa1,0xf8\n.byte\t0x09,0x89,0x89,0x80,\t0x1a,0x0d,0x0d,0x17\n.byte\t0x65,0xbf,0xbf,0xda,\t0xd7,0xe6,0xe6,0x31\n.byte\t0x84,0x42,0x42,0xc6,\t0xd0,0x68,0x68,0xb8\n.byte\t0x82,0x41,0x41,0xc3,\t0x29,0x99,0x99,0xb0\n.byte\t0x5a,0x2d,0x2d,0x77,\t0x1e,0x0f,0x0f,0x11\n.byte\t0x7b,0xb0,0xb0,0xcb,\t0xa8,0x54,0x54,0xfc\n.byte\t0x6d,0xbb,0xbb,0xd6,\t0x2c,0x16,0x16,0x3a\n\nAES_Td:\n.byte\t0x51,0xf4,0xa7,0x50,\t0x7e,0x41,0x65,0x53\t# Td0\n.byte\t0x1a,0x17,0xa4,0xc3,\t0x3a,0x27,0x5e,0x96\n.byte\t0x3b,0xab,0x6b,0xcb,\t0x1f,0x9d,0x45,0xf1\n.byte\t0xac,0xfa,0x58,0xab,\t0x4b,0xe3,0x03,0x93\n.byte\t0x20,0x30,0xfa,0x55,\t0xad,0x76,0x6d,0xf6\n.byte\t0x88,0xcc,0x76,0x91,\t0xf5,0x02,0x4c,0x25\n.byte\t0x4f,0xe5,0xd7,0xfc,\t0xc5,0x2a,0xcb,0xd7\n.byte\t0x26,0x35,0x44,0x80,\t0xb5,0x62,0xa3,0x8f\n.byte\t0xde,0xb1,0x5a,0x49,\t0x25,0xba,0x1b,0x67\n.byte\t0x45,0xea,0x0e,0x98,\t0x5d,0xfe,0xc0,0xe1\n.byte\t0xc3,0x2f,0x75,0x02,\t0x81,0x4c,0xf0,0x12\n.byte\t0x8d,0x46,0x97,0xa3,\t0x6b,0xd3,0xf9,0xc6\n.byte\t0x03,0x8f,0x5f,0xe7,\t0x15,0x92,0x9c,0x95\n.byte\t0xbf,0x6d,0x7a,0xeb,\t0x95,0x52,0x59,0xda\n.byte\t0xd4,0xbe,0x83,0x2d,\t0x58,0x74,0x21,0xd3\n.byte\t0x49,0xe0,0x69,0x29,\t0x8e,0xc9,0xc8,0x44\n.byte\t0x75,0xc2,0x89,0x6a,\t0xf4,0x8e,0x79,0x78\n.byte\t0x99,0x58,0x3e,0x6b,\t0x27,0xb9,0x71,0xdd\n.byte\t0xbe,0xe1,0x4f,0xb6,\t0xf0,0x88,0xad,0x17\n.byte\t0xc9,0x20,0xac,0x66,\t0x7d,0xce,0x3a,0xb4\n.byte\t0x63,0xdf,0x4a,0x18,\t0xe5,0x1a,0x31,0x82\n.byte\t0x97,0x51,0x33,0x60,\t0x62,0x53,0x7f,0x45\n.byte\t0xb1,0x64,0x77,0xe0,\t0xbb,0x6b,0xae,0x84\n.byte\t0xfe,0x81,0xa0,0x1c,\t0xf9,0x08,0x2b,0x94\n.byte\t0x70,0x48,0x68,0x58,\t0x8f,0x45,0xfd,0x19\n.byte\t0x94,0xde,0x6c,0x87,\t0x52,0x7b,0xf8,0xb7\n.byte\t0xab,0x73,0xd3,0x23,\t0x72,0x4b,0x02,0xe2\n.byte\t0xe3,0x1f,0x8f,0x57,\t0x66,0x55,0xab,0x2a\n.byte\t0xb2,0xeb,0x28,0x07,\t0x2f,0xb5,0xc2,0x03\n.byte\t0x86,0xc5,0x7b,0x9a,\t0xd3,0x37,0x08,0xa5\n.byte\t0x30,0x28,0x87,0xf2,\t0x23,0xbf,0xa5,0xb2\n.byte\t0x02,0x03,0x6a,0xba,\t0xed,0x16,0x82,0x5c\n.byte\t0x8a,0xcf,0x1c,0x2b,\t0xa7,0x79,0xb4,0x92\n.byte\t0xf3,0x07,0xf2,0xf0,\t0x4e,0x69,0xe2,0xa1\n.byte\t0x65,0xda,0xf4,0xcd,\t0x06,0x05,0xbe,0xd5\n.byte\t0xd1,0x34,0x62,0x1f,\t0xc4,0xa6,0xfe,0x8a", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:44", "text": ".byte\t0x75,0xc2,0x89,0x6a,\t0xf4,0x8e,0x79,0x78\n.byte\t0x99,0x58,0x3e,0x6b,\t0x27,0xb9,0x71,0xdd\n.byte\t0xbe,0xe1,0x4f,0xb6,\t0xf0,0x88,0xad,0x17\n.byte\t0xc9,0x20,0xac,0x66,\t0x7d,0xce,0x3a,0xb4\n.byte\t0x63,0xdf,0x4a,0x18,\t0xe5,0x1a,0x31,0x82\n.byte\t0x97,0x51,0x33,0x60,\t0x62,0x53,0x7f,0x45\n.byte\t0xb1,0x64,0x77,0xe0,\t0xbb,0x6b,0xae,0x84\n.byte\t0xfe,0x81,0xa0,0x1c,\t0xf9,0x08,0x2b,0x94\n.byte\t0x70,0x48,0x68,0x58,\t0x8f,0x45,0xfd,0x19\n.byte\t0x94,0xde,0x6c,0x87,\t0x52,0x7b,0xf8,0xb7\n.byte\t0xab,0x73,0xd3,0x23,\t0x72,0x4b,0x02,0xe2\n.byte\t0xe3,0x1f,0x8f,0x57,\t0x66,0x55,0xab,0x2a\n.byte\t0xb2,0xeb,0x28,0x07,\t0x2f,0xb5,0xc2,0x03\n.byte\t0x86,0xc5,0x7b,0x9a,\t0xd3,0x37,0x08,0xa5\n.byte\t0x30,0x28,0x87,0xf2,\t0x23,0xbf,0xa5,0xb2\n.byte\t0x02,0x03,0x6a,0xba,\t0xed,0x16,0x82,0x5c\n.byte\t0x8a,0xcf,0x1c,0x2b,\t0xa7,0x79,0xb4,0x92\n.byte\t0xf3,0x07,0xf2,0xf0,\t0x4e,0x69,0xe2,0xa1\n.byte\t0x65,0xda,0xf4,0xcd,\t0x06,0x05,0xbe,0xd5\n.byte\t0xd1,0x34,0x62,0x1f,\t0xc4,0xa6,0xfe,0x8a\n.byte\t0x34,0x2e,0x53,0x9d,\t0xa2,0xf3,0x55,0xa0\n.byte\t0x05,0x8a,0xe1,0x32,\t0xa4,0xf6,0xeb,0x75\n.byte\t0x0b,0x83,0xec,0x39,\t0x40,0x60,0xef,0xaa\n.byte\t0x5e,0x71,0x9f,0x06,\t0xbd,0x6e,0x10,0x51\n.byte\t0x3e,0x21,0x8a,0xf9,\t0x96,0xdd,0x06,0x3d\n.byte\t0xdd,0x3e,0x05,0xae,\t0x4d,0xe6,0xbd,0x46\n.byte\t0x91,0x54,0x8d,0xb5,\t0x71,0xc4,0x5d,0x05\n.byte\t0x04,0x06,0xd4,0x6f,\t0x60,0x50,0x15,0xff\n.byte\t0x19,0x98,0xfb,0x24,\t0xd6,0xbd,0xe9,0x97\n.byte\t0x89,0x40,0x43,0xcc,\t0x67,0xd9,0x9e,0x77\n.byte\t0xb0,0xe8,0x42,0xbd,\t0x07,0x89,0x8b,0x88\n.byte\t0xe7,0x19,0x5b,0x38,\t0x79,0xc8,0xee,0xdb\n.byte\t0xa1,0x7c,0x0a,0x47,\t0x7c,0x42,0x0f,0xe9\n.byte\t0xf8,0x84,0x1e,0xc9,\t0x00,0x00,0x00,0x00\n.byte\t0x09,0x80,0x86,0x83,\t0x32,0x2b,0xed,0x48\n.byte\t0x1e,0x11,0x70,0xac,\t0x6c,0x5a,0x72,0x4e\n.byte\t0xfd,0x0e,0xff,0xfb,\t0x0f,0x85,0x38,0x56\n.byte\t0x3d,0xae,0xd5,0x1e,\t0x36,0x2d,0x39,0x27\n.byte\t0x0a,0x0f,0xd9,0x64,\t0x68,0x5c,0xa6,0x21\n.byte\t0x9b,0x5b,0x54,0xd1,\t0x24,0x36,0x2e,0x3a\n.byte\t0x0c,0x0a,0x67,0xb1,\t0x93,0x57,0xe7,0x0f\n.byte\t0xb4,0xee,0x96,0xd2,\t0x1b,0x9b,0x91,0x9e\n.byte\t0x80,0xc0,0xc5,0x4f,\t0x61,0xdc,0x20,0xa2\n.byte\t0x5a,0x77,0x4b,0x69,\t0x1c,0x12,0x1a,0x16\n.byte\t0xe2,0x93,0xba,0x0a,\t0xc0,0xa0,0x2a,0xe5\n.byte\t0x3c,0x22,0xe0,0x43,\t0x12,0x1b,0x17,0x1d\n.byte\t0x0e,0x09,0x0d,0x0b,\t0xf2,0x8b,0xc7,0xad\n.byte\t0x2d,0xb6,0xa8,0xb9,\t0x14,0x1e,0xa9,0xc8\n.byte\t0x57,0xf1,0x19,0x85,\t0xaf,0x75,0x07,0x4c\n.byte\t0xee,0x99,0xdd,0xbb,\t0xa3,0x7f,0x60,0xfd\n.byte\t0xf7,0x01,0x26,0x9f,\t0x5c,0x72,0xf5,0xbc\n.byte\t0x44,0x66,0x3b,0xc5,\t0x5b,0xfb,0x7e,0x34\n.byte\t0x8b,0x43,0x29,0x76,\t0xcb,0x23,0xc6,0xdc\n.byte\t0xb6,0xed,0xfc,0x68,\t0xb8,0xe4,0xf1,0x63\n.byte\t0xd7,0x31,0xdc,0xca,\t0x42,0x63,0x85,0x10\n.byte\t0x13,0x97,0x22,0x40,\t0x84,0xc6,0x11,0x20\n.byte\t0x85,0x4a,0x24,0x7d,\t0xd2,0xbb,0x3d,0xf8\n.byte\t0xae,0xf9,0x32,0x11,\t0xc7,0x29,0xa1,0x6d\n.byte\t0x1d,0x9e,0x2f,0x4b,\t0xdc,0xb2,0x30,0xf3\n.byte\t0x0d,0x86,0x52,0xec,\t0x77,0xc1,0xe3,0xd0", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:45", "text": ".byte\t0x0c,0x0a,0x67,0xb1,\t0x93,0x57,0xe7,0x0f\n.byte\t0xb4,0xee,0x96,0xd2,\t0x1b,0x9b,0x91,0x9e\n.byte\t0x80,0xc0,0xc5,0x4f,\t0x61,0xdc,0x20,0xa2\n.byte\t0x5a,0x77,0x4b,0x69,\t0x1c,0x12,0x1a,0x16\n.byte\t0xe2,0x93,0xba,0x0a,\t0xc0,0xa0,0x2a,0xe5\n.byte\t0x3c,0x22,0xe0,0x43,\t0x12,0x1b,0x17,0x1d\n.byte\t0x0e,0x09,0x0d,0x0b,\t0xf2,0x8b,0xc7,0xad\n.byte\t0x2d,0xb6,0xa8,0xb9,\t0x14,0x1e,0xa9,0xc8\n.byte\t0x57,0xf1,0x19,0x85,\t0xaf,0x75,0x07,0x4c\n.byte\t0xee,0x99,0xdd,0xbb,\t0xa3,0x7f,0x60,0xfd\n.byte\t0xf7,0x01,0x26,0x9f,\t0x5c,0x72,0xf5,0xbc\n.byte\t0x44,0x66,0x3b,0xc5,\t0x5b,0xfb,0x7e,0x34\n.byte\t0x8b,0x43,0x29,0x76,\t0xcb,0x23,0xc6,0xdc\n.byte\t0xb6,0xed,0xfc,0x68,\t0xb8,0xe4,0xf1,0x63\n.byte\t0xd7,0x31,0xdc,0xca,\t0x42,0x63,0x85,0x10\n.byte\t0x13,0x97,0x22,0x40,\t0x84,0xc6,0x11,0x20\n.byte\t0x85,0x4a,0x24,0x7d,\t0xd2,0xbb,0x3d,0xf8\n.byte\t0xae,0xf9,0x32,0x11,\t0xc7,0x29,0xa1,0x6d\n.byte\t0x1d,0x9e,0x2f,0x4b,\t0xdc,0xb2,0x30,0xf3\n.byte\t0x0d,0x86,0x52,0xec,\t0x77,0xc1,0xe3,0xd0\n.byte\t0x2b,0xb3,0x16,0x6c,\t0xa9,0x70,0xb9,0x99\n.byte\t0x11,0x94,0x48,0xfa,\t0x47,0xe9,0x64,0x22\n.byte\t0xa8,0xfc,0x8c,0xc4,\t0xa0,0xf0,0x3f,0x1a\n.byte\t0x56,0x7d,0x2c,0xd8,\t0x22,0x33,0x90,0xef\n.byte\t0x87,0x49,0x4e,0xc7,\t0xd9,0x38,0xd1,0xc1\n.byte\t0x8c,0xca,0xa2,0xfe,\t0x98,0xd4,0x0b,0x36\n.byte\t0xa6,0xf5,0x81,0xcf,\t0xa5,0x7a,0xde,0x28\n.byte\t0xda,0xb7,0x8e,0x26,\t0x3f,0xad,0xbf,0xa4\n.byte\t0x2c,0x3a,0x9d,0xe4,\t0x50,0x78,0x92,0x0d\n.byte\t0x6a,0x5f,0xcc,0x9b,\t0x54,0x7e,0x46,0x62\n.byte\t0xf6,0x8d,0x13,0xc2,\t0x90,0xd8,0xb8,0xe8\n.byte\t0x2e,0x39,0xf7,0x5e,\t0x82,0xc3,0xaf,0xf5\n.byte\t0x9f,0x5d,0x80,0xbe,\t0x69,0xd0,0x93,0x7c\n.byte\t0x6f,0xd5,0x2d,0xa9,\t0xcf,0x25,0x12,0xb3\n.byte\t0xc8,0xac,0x99,0x3b,\t0x10,0x18,0x7d,0xa7\n.byte\t0xe8,0x9c,0x63,0x6e,\t0xdb,0x3b,0xbb,0x7b\n.byte\t0xcd,0x26,0x78,0x09,\t0x6e,0x59,0x18,0xf4\n.byte\t0xec,0x9a,0xb7,0x01,\t0x83,0x4f,0x9a,0xa8\n.byte\t0xe6,0x95,0x6e,0x65,\t0xaa,0xff,0xe6,0x7e\n.byte\t0x21,0xbc,0xcf,0x08,\t0xef,0x15,0xe8,0xe6\n.byte\t0xba,0xe7,0x9b,0xd9,\t0x4a,0x6f,0x36,0xce\n.byte\t0xea,0x9f,0x09,0xd4,\t0x29,0xb0,0x7c,0xd6\n.byte\t0x31,0xa4,0xb2,0xaf,\t0x2a,0x3f,0x23,0x31\n.byte\t0xc6,0xa5,0x94,0x30,\t0x35,0xa2,0x66,0xc0\n.byte\t0x74,0x4e,0xbc,0x37,\t0xfc,0x82,0xca,0xa6\n.byte\t0xe0,0x90,0xd0,0xb0,\t0x33,0xa7,0xd8,0x15\n.byte\t0xf1,0x04,0x98,0x4a,\t0x41,0xec,0xda,0xf7\n.byte\t0x7f,0xcd,0x50,0x0e,\t0x17,0x91,0xf6,0x2f\n.byte\t0x76,0x4d,0xd6,0x8d,\t0x43,0xef,0xb0,0x4d\n.byte\t0xcc,0xaa,0x4d,0x54,\t0xe4,0x96,0x04,0xdf\n.byte\t0x9e,0xd1,0xb5,0xe3,\t0x4c,0x6a,0x88,0x1b\n.byte\t0xc1,0x2c,0x1f,0xb8,\t0x46,0x65,0x51,0x7f\n.byte\t0x9d,0x5e,0xea,0x04,\t0x01,0x8c,0x35,0x5d\n.byte\t0xfa,0x87,0x74,0x73,\t0xfb,0x0b,0x41,0x2e\n.byte\t0xb3,0x67,0x1d,0x5a,\t0x92,0xdb,0xd2,0x52\n.byte\t0xe9,0x10,0x56,0x33,\t0x6d,0xd6,0x47,0x13\n.byte\t0x9a,0xd7,0x61,0x8c,\t0x37,0xa1,0x0c,0x7a\n.byte\t0x59,0xf8,0x14,0x8e,\t0xeb,0x13,0x3c,0x89\n.byte\t0xce,0xa9,0x27,0xee,\t0xb7,0x61,0xc9,0x35\n.byte\t0xe1,0x1c,0xe5,0xed,\t0x7a,0x47,0xb1,0x3c", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:46", "text": ".byte\t0xba,0xe7,0x9b,0xd9,\t0x4a,0x6f,0x36,0xce\n.byte\t0xea,0x9f,0x09,0xd4,\t0x29,0xb0,0x7c,0xd6\n.byte\t0x31,0xa4,0xb2,0xaf,\t0x2a,0x3f,0x23,0x31\n.byte\t0xc6,0xa5,0x94,0x30,\t0x35,0xa2,0x66,0xc0\n.byte\t0x74,0x4e,0xbc,0x37,\t0xfc,0x82,0xca,0xa6\n.byte\t0xe0,0x90,0xd0,0xb0,\t0x33,0xa7,0xd8,0x15\n.byte\t0xf1,0x04,0x98,0x4a,\t0x41,0xec,0xda,0xf7\n.byte\t0x7f,0xcd,0x50,0x0e,\t0x17,0x91,0xf6,0x2f\n.byte\t0x76,0x4d,0xd6,0x8d,\t0x43,0xef,0xb0,0x4d\n.byte\t0xcc,0xaa,0x4d,0x54,\t0xe4,0x96,0x04,0xdf\n.byte\t0x9e,0xd1,0xb5,0xe3,\t0x4c,0x6a,0x88,0x1b\n.byte\t0xc1,0x2c,0x1f,0xb8,\t0x46,0x65,0x51,0x7f\n.byte\t0x9d,0x5e,0xea,0x04,\t0x01,0x8c,0x35,0x5d\n.byte\t0xfa,0x87,0x74,0x73,\t0xfb,0x0b,0x41,0x2e\n.byte\t0xb3,0x67,0x1d,0x5a,\t0x92,0xdb,0xd2,0x52\n.byte\t0xe9,0x10,0x56,0x33,\t0x6d,0xd6,0x47,0x13\n.byte\t0x9a,0xd7,0x61,0x8c,\t0x37,0xa1,0x0c,0x7a\n.byte\t0x59,0xf8,0x14,0x8e,\t0xeb,0x13,0x3c,0x89\n.byte\t0xce,0xa9,0x27,0xee,\t0xb7,0x61,0xc9,0x35\n.byte\t0xe1,0x1c,0xe5,0xed,\t0x7a,0x47,0xb1,0x3c\n.byte\t0x9c,0xd2,0xdf,0x59,\t0x55,0xf2,0x73,0x3f\n.byte\t0x18,0x14,0xce,0x79,\t0x73,0xc7,0x37,0xbf\n.byte\t0x53,0xf7,0xcd,0xea,\t0x5f,0xfd,0xaa,0x5b\n.byte\t0xdf,0x3d,0x6f,0x14,\t0x78,0x44,0xdb,0x86\n.byte\t0xca,0xaf,0xf3,0x81,\t0xb9,0x68,0xc4,0x3e\n.byte\t0x38,0x24,0x34,0x2c,\t0xc2,0xa3,0x40,0x5f\n.byte\t0x16,0x1d,0xc3,0x72,\t0xbc,0xe2,0x25,0x0c\n.byte\t0x28,0x3c,0x49,0x8b,\t0xff,0x0d,0x95,0x41\n.byte\t0x39,0xa8,0x01,0x71,\t0x08,0x0c,0xb3,0xde\n.byte\t0xd8,0xb4,0xe4,0x9c,\t0x64,0x56,0xc1,0x90\n.byte\t0x7b,0xcb,0x84,0x61,\t0xd5,0x32,0xb6,0x70\n.byte\t0x48,0x6c,0x5c,0x74,\t0xd0,0xb8,0x57,0x42\n\n.byte\t0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38\t# Td4\n.byte\t0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb\n.byte\t0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87\n.byte\t0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb\n.byte\t0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d\n.byte\t0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e\n.byte\t0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2\n.byte\t0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25\n.byte\t0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16\n.byte\t0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92\n.byte\t0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda\n.byte\t0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84\n.byte\t0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a\n.byte\t0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06\n.byte\t0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02\n.byte\t0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b\n.byte\t0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea\n.byte\t0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73\n.byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:47", "text": ".byte\t0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25\n.byte\t0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16\n.byte\t0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92\n.byte\t0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda\n.byte\t0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84\n.byte\t0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a\n.byte\t0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06\n.byte\t0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02\n.byte\t0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b\n.byte\t0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea\n.byte\t0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73\n.byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d\n.byte\t0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef\n.byte\t0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0\n.byte\t0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61\n.byte\t0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26\n.byte\t0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d\n\nAES_Te4:\n.byte\t0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5\t# Te4\n.byte\t0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76\n.byte\t0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0\n.byte\t0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0\n.byte\t0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc\n.byte\t0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15\n.byte\t0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a\n.byte\t0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75\n.byte\t0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0\n.byte\t0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84\n.byte\t0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b\n.byte\t0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf\n.byte\t0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85\n.byte\t0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8\n.byte\t0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5\n.byte\t0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2\n.byte\t0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17\n.byte\t0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73\n.byte\t0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88\n.byte\t0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb\n.byte\t0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c\n.byte\t0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79\n.byte\t0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9\n.byte\t0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08\n.byte\t0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6\n.byte\t0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a\n.byte\t0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e\n.byte\t0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e\n.byte\t0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94\n.byte\t0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf\n.byte\t0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68\n.byte\t0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S:48", "text": ".byte\t0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8\n.byte\t0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5\n.byte\t0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2\n.byte\t0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17\n.byte\t0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73\n.byte\t0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88\n.byte\t0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb\n.byte\t0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c\n.byte\t0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79\n.byte\t0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9\n.byte\t0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08\n.byte\t0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6\n.byte\t0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a\n.byte\t0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e\n.byte\t0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e\n.byte\t0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94\n.byte\t0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf\n.byte\t0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68\n.byte\t0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16\n\n.byte\t0x01,0x00,0x00,0x00,\t0x02,0x00,0x00,0x00\t# rcon\n.byte\t0x04,0x00,0x00,0x00,\t0x08,0x00,0x00,0x00\n.byte\t0x10,0x00,0x00,0x00,\t0x20,0x00,0x00,0x00\n.byte\t0x40,0x00,0x00,0x00,\t0x80,0x00,0x00,0x00\n.byte\t0x1B,0x00,0x00,0x00,\t0x36,0x00,0x00,0x00", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes-mips64.S", "line_start": 1881, "line_end": 1905}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes.inc:1", "text": ".include \"mips.inc\"\n.if ${MIPS_LE}\n.PATH.S: ${.PARSEDIR}\n\n#AES_SRCS = aes-mips${MIPS_64}.S\n#AESCPPFLAGS = -DAES_ASM\n.endif\n\n.include \"../../aes.inc\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/aes.inc", "line_start": 1, "line_end": 9}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/bn.inc:1", "text": ".include \"mips.inc\"\n\n# Don't include mips.S for 32 bit mips because it does not work for mips1\n.if ${MIPS_LE} && ${MIPS_64} == \"64\"\n.PATH.S: ${.PARSEDIR}\n\nBN_SRCS = mips${MIPS_64}.S\n.endif\n\n.include \"../../bn.inc\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/bn.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/bn.inc", "line_start": 1, "line_end": 10}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/crypto.inc:1", "text": ".include \"mips.inc\"\n\n.if ${MIPS_LE}\n.PATH.S: ${.PARSEDIR}\n\nCRYPTO_SRCS += mips-mont${MIPS_64}.S\n.endif\n\n.if ${MIPS_64} == \"\"\nCOPTS.threads_pthread.c += -DBROKEN_CLANG_ATOMICS       # no atomic 64 bit ops\n.endif\n\n.include \"../../crypto.inc\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/crypto.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/crypto.inc", "line_start": 1, "line_end": 13}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:1", "text": "#include \"mips_arch.h\"\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n\n.align\t5\n.globl\tbn_mul_mont\n.ent\tbn_mul_mont\nbn_mul_mont:\n\tlw\t$8,16($29)\n\tlw\t$9,20($29)\n\tslt\t$1,$9,4\n\tbnez\t$1,1f\n\tli\t$2,0\n\tslt\t$1,$9,17\t# on in-order CPU\n\tbnez\t$1,bn_mul_mont_internal\n\tnop\n1:\tjr\t$31\n\tli\t$4,0\n.end\tbn_mul_mont\n\n.align\t5\n.ent\tbn_mul_mont_internal\nbn_mul_mont_internal:\n\t.frame\t$30,14*4,$31\n\t.mask\t0x40000000|16711680,-4\n\tsubu $29,14*4\n\tsw\t$30,(14-1)*4($29)\n\tsw\t$23,(14-2)*4($29)\n\tsw\t$22,(14-3)*4($29)\n\tsw\t$21,(14-4)*4($29)\n\tsw\t$20,(14-5)*4($29)\n\tsw\t$19,(14-6)*4($29)\n\tsw\t$18,(14-7)*4($29)\n\tsw\t$17,(14-8)*4($29)\n\tsw\t$16,(14-9)*4($29)\n\tmove\t$30,$29\n\n\t.set\treorder\n\tlw\t$8,0($8)\n\tlw\t$13,0($6)\t# bp[0]\n\tlw\t$12,0($5)\t# ap[0]\n\tlw\t$14,0($7)\t# np[0]\n\n\tsubu $29,2*4\t# place for two extra words\n\tsll\t$9,2\n\tli\t$1,-4096\n\tsubu $29,$9\n\tand\t$29,$1\n\n\tmultu\t($12,$13)\n\tlw\t$17,4($5)\n\tlw\t$19,4($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\tmultu\t($10,$8)\n\tmflo\t($23,$10,$8)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:2", "text": ".set\treorder\n\tlw\t$8,0($8)\n\tlw\t$13,0($6)\t# bp[0]\n\tlw\t$12,0($5)\t# ap[0]\n\tlw\t$14,0($7)\t# np[0]\n\n\tsubu $29,2*4\t# place for two extra words\n\tsll\t$9,2\n\tli\t$1,-4096\n\tsubu $29,$9\n\tand\t$29,$1\n\n\tmultu\t($12,$13)\n\tlw\t$17,4($5)\n\tlw\t$19,4($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\tmultu\t($10,$8)\n\tmflo\t($23,$10,$8)\n\n\tmultu\t($17,$13)\n\tmflo\t($16,$17,$13)\n\tmfhi\t($17,$17,$13)\n\n\tmultu\t($14,$23)\n\tmflo\t($24,$14,$23)\n\tmfhi\t($25,$14,$23)\n\tmultu\t($19,$23)\n\taddu\t$24,$10\n\tsltu\t$1,$24,$10\n\taddu\t$25,$1\n\tmflo\t($18,$19,$23)\n\tmfhi\t($19,$19,$23)\n\n\tmove\t$15,$29\n\tli\t$22,2*4\n.align\t4\n.L1st:\n\t.set\tnoreorder\n\taddu $12,$5,$22\n\taddu $14,$7,$22\n\tlw\t$12,($12)\n\tlw\t$14,($14)\n\n\tmultu\t($12,$13)\n\taddu\t$10,$16,$11\n\taddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\taddu\t$11,$17,$1\n\taddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)\n\n\taddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tmultu\t($14,$23)\n\taddu\t$25,$1\n\taddu\t$22,4\n\tsw\t$24,($15)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:3", "text": "addu $14,$7,$22\n\tlw\t$12,($12)\n\tlw\t$14,($14)\n\n\tmultu\t($12,$13)\n\taddu\t$10,$16,$11\n\taddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\taddu\t$11,$17,$1\n\taddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)\n\n\taddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tmultu\t($14,$23)\n\taddu\t$25,$1\n\taddu\t$22,4\n\tsw\t$24,($15)\n\tsltu\t$2,$22,$9\n\tmflo\t($18,$14,$23)\n\tmfhi\t($19,$14,$23)\n\n\tbnez\t$2,.L1st\n\taddu $15,4\n\t.set\treorder\n\n\taddu\t$10,$16,$11\n\tsltu\t$1,$10,$11\n\taddu\t$11,$17,$1\n\n\taddu\t$24,$18,$25\n\tsltu\t$2,$24,$25\n\taddu\t$25,$19,$2\n\taddu\t$24,$10\n\tsltu\t$1,$24,$10\n\taddu\t$25,$1\n\n\tsw\t$24,($15)\n\n\taddu\t$25,$11\n\tsltu\t$1,$25,$11\n\tsw\t$25,4($15)\n\tsw\t$1,2*4($15)\n\n\tli\t$21,4\n.align\t4\n.Louter:\n\taddu $13,$6,$21\n\tlw\t$13,($13)\n\tlw\t$12,($5)\n\tlw\t$17,4($5)\n\tlw\t$20,($29)\n\n\tmultu\t($12,$13)\n\tlw\t$14,($7)\n\tlw\t$19,4($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:4", "text": "addu\t$25,$11\n\tsltu\t$1,$25,$11\n\tsw\t$25,4($15)\n\tsw\t$1,2*4($15)\n\n\tli\t$21,4\n.align\t4\n.Louter:\n\taddu $13,$6,$21\n\tlw\t$13,($13)\n\tlw\t$12,($5)\n\tlw\t$17,4($5)\n\tlw\t$20,($29)\n\n\tmultu\t($12,$13)\n\tlw\t$14,($7)\n\tlw\t$19,4($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\taddu\t$10,$20\n\tmultu\t($10,$8)\n\tsltu\t$1,$10,$20\n\taddu\t$11,$1\n\tmflo\t($23,$10,$8)\n\n\tmultu\t($17,$13)\n\tmflo\t($16,$17,$13)\n\tmfhi\t($17,$17,$13)\n\n\tmultu\t($14,$23)\n\tmflo\t($24,$14,$23)\n\tmfhi\t($25,$14,$23)\n\n\tmultu\t($19,$23)\n\taddu\t$24,$10\n\tsltu\t$1,$24,$10\n\taddu\t$25,$1\n\tmflo\t($18,$19,$23)\n\tmfhi\t($19,$19,$23)\n\n\tmove\t$15,$29\n\tli\t$22,2*4\n\tlw\t$20,4($15)\n.align\t4\n.Linner:\n\t.set\tnoreorder\n\taddu $12,$5,$22\n\taddu $14,$7,$22\n\tlw\t$12,($12)\n\tlw\t$14,($14)\n\n\tmultu\t($12,$13)\n\taddu\t$10,$16,$11\n\taddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\taddu\t$11,$17,$1\n\taddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:5", "text": "move\t$15,$29\n\tli\t$22,2*4\n\tlw\t$20,4($15)\n.align\t4\n.Linner:\n\t.set\tnoreorder\n\taddu $12,$5,$22\n\taddu $14,$7,$22\n\tlw\t$12,($12)\n\tlw\t$14,($14)\n\n\tmultu\t($12,$13)\n\taddu\t$10,$16,$11\n\taddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\taddu\t$11,$17,$1\n\taddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)\n\n\taddu\t$10,$20\n\taddu\t$22,4\n\tmultu\t($14,$23)\n\tsltu\t$1,$10,$20\n\taddu\t$24,$10\n\taddu\t$11,$1\n\tsltu\t$2,$24,$10\n\tlw\t$20,2*4($15)\n\taddu\t$25,$2\n\tsltu\t$1,$22,$9\n\tmflo\t($18,$14,$23)\n\tmfhi\t($19,$14,$23)\n\tsw\t$24,($15)\n\tbnez\t$1,.Linner\n\taddu $15,4\n\t.set\treorder\n\n\taddu\t$10,$16,$11\n\tsltu\t$1,$10,$11\n\taddu\t$11,$17,$1\n\taddu\t$10,$20\n\tsltu\t$2,$10,$20\n\taddu\t$11,$2\n\n\tlw\t$20,2*4($15)\n\taddu\t$24,$18,$25\n\tsltu\t$1,$24,$25\n\taddu\t$25,$19,$1\n\taddu\t$24,$10\n\tsltu\t$2,$24,$10\n\taddu\t$25,$2\n\tsw\t$24,($15)\n\n\taddu\t$24,$25,$11\n\tsltu\t$25,$24,$11\n\taddu\t$24,$20\n\tsltu\t$1,$24,$20\n\taddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:6", "text": "sltu\t$1,$10,$11\n\taddu\t$11,$17,$1\n\taddu\t$10,$20\n\tsltu\t$2,$10,$20\n\taddu\t$11,$2\n\n\tlw\t$20,2*4($15)\n\taddu\t$24,$18,$25\n\tsltu\t$1,$24,$25\n\taddu\t$25,$19,$1\n\taddu\t$24,$10\n\tsltu\t$2,$24,$10\n\taddu\t$25,$2\n\tsw\t$24,($15)\n\n\taddu\t$24,$25,$11\n\tsltu\t$25,$24,$11\n\taddu\t$24,$20\n\tsltu\t$1,$24,$20\n\taddu\t$25,$1\n\tsw\t$24,4($15)\n\tsw\t$25,2*4($15)\n\n\taddu\t$21,4\n\tsltu\t$2,$21,$9\n\tbnez\t$2,.Louter\n\n\t.set\tnoreorder\n\taddu $20,$29,$9\t# &tp[num]\n\tmove\t$15,$29\n\tmove\t$5,$29\n\tli\t$11,0\t\t# clear borrow bit\n\n.align\t4\n.Lsub:\tlw\t$10,($15)\n\tlw\t$24,($7)\n\taddu $15,4\n\taddu $7,4\n\tsubu\t$24,$10,$24\t# tp[i]-np[i]\n\tsgtu\t$1,$24,$10\n\tsubu\t$10,$24,$11\n\tsgtu\t$11,$10,$24\n\tsw\t$10,($4)\n\tor\t$11,$1\n\tsltu\t$1,$15,$20\n\tbnez\t$1,.Lsub\n\taddu $4,4\n\n\tsubu\t$11,$25,$11\t# handle upmost overflow bit\n\tmove\t$15,$29\n\tsubu $4,$9\t# restore rp\n\tnot\t$25,$11\n\n.Lcopy:\tlw\t$14,($15)\t# conditional move\n\tlw\t$12,($4)\n\tsw\t$0,($15)\n\taddu $15,4\n\tand\t$14,$11\n\tand\t$12,$25\n\tor\t$12,$14", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S:7", "text": "subu\t$10,$24,$11\n\tsgtu\t$11,$10,$24\n\tsw\t$10,($4)\n\tor\t$11,$1\n\tsltu\t$1,$15,$20\n\tbnez\t$1,.Lsub\n\taddu $4,4\n\n\tsubu\t$11,$25,$11\t# handle upmost overflow bit\n\tmove\t$15,$29\n\tsubu $4,$9\t# restore rp\n\tnot\t$25,$11\n\n.Lcopy:\tlw\t$14,($15)\t# conditional move\n\tlw\t$12,($4)\n\tsw\t$0,($15)\n\taddu $15,4\n\tand\t$14,$11\n\tand\t$12,$25\n\tor\t$12,$14\n\tsltu\t$1,$15,$20\n\tsw\t$12,($4)\n\tbnez\t$1,.Lcopy\n\taddu $4,4\n\n\tli\t$4,1\n\tli\t$2,1\n\n\t.set\tnoreorder\n\tmove\t$29,$30\n\tlw\t$30,(14-1)*4($29)\n\tlw\t$23,(14-2)*4($29)\n\tlw\t$22,(14-3)*4($29)\n\tlw\t$21,(14-4)*4($29)\n\tlw\t$20,(14-5)*4($29)\n\tlw\t$19,(14-6)*4($29)\n\tlw\t$18,(14-7)*4($29)\n\tlw\t$17,(14-8)*4($29)\n\tlw\t$16,(14-9)*4($29)\n\tjr\t$31\n\taddu $29,14*4\n.end\tbn_mul_mont_internal\n.rdata\n.asciiz\t\"Montgomery Multiplication for MIPS, CRYPTOGAMS by <appro@openssl.org>\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont.S", "line_start": 241, "line_end": 284}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:1", "text": "#include \"mips_arch.h\"\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n\n.align\t5\n.globl\tbn_mul_mont\n.ent\tbn_mul_mont\nbn_mul_mont:\n\tslt\t$1,$9,4\n\tbnez\t$1,1f\n\tli\t$2,0\n\tslt\t$1,$9,17\t# on in-order CPU\n\tbnez\t$1,bn_mul_mont_internal\n\tnop\n1:\tjr\t$31\n\tli\t$4,0\n.end\tbn_mul_mont\n\n.align\t5\n.ent\tbn_mul_mont_internal\nbn_mul_mont_internal:\n\t.frame\t$30,14*8,$31\n\t.mask\t0x40000000|16711680,-8\n\tdsubu $29,14*8\n\tsd\t$30,(14-1)*8($29)\n\tsd\t$23,(14-2)*8($29)\n\tsd\t$22,(14-3)*8($29)\n\tsd\t$21,(14-4)*8($29)\n\tsd\t$20,(14-5)*8($29)\n\tsd\t$19,(14-6)*8($29)\n\tsd\t$18,(14-7)*8($29)\n\tsd\t$17,(14-8)*8($29)\n\tsd\t$16,(14-9)*8($29)\n\tmove\t$30,$29\n\n\t.set\treorder\n\tld\t$8,0($8)\n\tld\t$13,0($6)\t# bp[0]\n\tld\t$12,0($5)\t# ap[0]\n\tld\t$14,0($7)\t# np[0]\n\n\tdsubu $29,2*8\t# place for two extra words\n\tsll\t$9,3\n\tli\t$1,-4096\n\tdsubu $29,$9\n\tand\t$29,$1\n\n\tdmultu\t($12,$13)\n\tld\t$17,8($5)\n\tld\t$19,8($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\tdmultu\t($10,$8)\n\tmflo\t($23,$10,$8)\n\n\tdmultu\t($17,$13)\n\tmflo\t($16,$17,$13)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:2", "text": "ld\t$13,0($6)\t# bp[0]\n\tld\t$12,0($5)\t# ap[0]\n\tld\t$14,0($7)\t# np[0]\n\n\tdsubu $29,2*8\t# place for two extra words\n\tsll\t$9,3\n\tli\t$1,-4096\n\tdsubu $29,$9\n\tand\t$29,$1\n\n\tdmultu\t($12,$13)\n\tld\t$17,8($5)\n\tld\t$19,8($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\tdmultu\t($10,$8)\n\tmflo\t($23,$10,$8)\n\n\tdmultu\t($17,$13)\n\tmflo\t($16,$17,$13)\n\tmfhi\t($17,$17,$13)\n\n\tdmultu\t($14,$23)\n\tmflo\t($24,$14,$23)\n\tmfhi\t($25,$14,$23)\n\tdmultu\t($19,$23)\n\tdaddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tdaddu\t$25,$1\n\tmflo\t($18,$19,$23)\n\tmfhi\t($19,$19,$23)\n\n\tmove\t$15,$29\n\tli\t$22,2*8\n.align\t4\n.L1st:\n\t.set\tnoreorder\n\tdaddu $12,$5,$22\n\tdaddu $14,$7,$22\n\tld\t$12,($12)\n\tld\t$14,($14)\n\n\tdmultu\t($12,$13)\n\tdaddu\t$10,$16,$11\n\tdaddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\tdaddu\t$11,$17,$1\n\tdaddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)\n\n\tdaddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tdmultu\t($14,$23)\n\tdaddu\t$25,$1\n\taddu\t$22,8\n\tsd\t$24,($15)\n\tsltu\t$2,$22,$9\n\tmflo\t($18,$14,$23)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:3", "text": "ld\t$14,($14)\n\n\tdmultu\t($12,$13)\n\tdaddu\t$10,$16,$11\n\tdaddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\tdaddu\t$11,$17,$1\n\tdaddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)\n\n\tdaddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tdmultu\t($14,$23)\n\tdaddu\t$25,$1\n\taddu\t$22,8\n\tsd\t$24,($15)\n\tsltu\t$2,$22,$9\n\tmflo\t($18,$14,$23)\n\tmfhi\t($19,$14,$23)\n\n\tbnez\t$2,.L1st\n\tdaddu $15,8\n\t.set\treorder\n\n\tdaddu\t$10,$16,$11\n\tsltu\t$1,$10,$11\n\tdaddu\t$11,$17,$1\n\n\tdaddu\t$24,$18,$25\n\tsltu\t$2,$24,$25\n\tdaddu\t$25,$19,$2\n\tdaddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tdaddu\t$25,$1\n\n\tsd\t$24,($15)\n\n\tdaddu\t$25,$11\n\tsltu\t$1,$25,$11\n\tsd\t$25,8($15)\n\tsd\t$1,2*8($15)\n\n\tli\t$21,8\n.align\t4\n.Louter:\n\tdaddu $13,$6,$21\n\tld\t$13,($13)\n\tld\t$12,($5)\n\tld\t$17,8($5)\n\tld\t$20,($29)\n\n\tdmultu\t($12,$13)\n\tld\t$14,($7)\n\tld\t$19,8($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\tdaddu\t$10,$20\n\tdmultu\t($10,$8)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:4", "text": "sltu\t$1,$25,$11\n\tsd\t$25,8($15)\n\tsd\t$1,2*8($15)\n\n\tli\t$21,8\n.align\t4\n.Louter:\n\tdaddu $13,$6,$21\n\tld\t$13,($13)\n\tld\t$12,($5)\n\tld\t$17,8($5)\n\tld\t$20,($29)\n\n\tdmultu\t($12,$13)\n\tld\t$14,($7)\n\tld\t$19,8($7)\n\tmflo\t($10,$12,$13)\n\tmfhi\t($11,$12,$13)\n\tdaddu\t$10,$20\n\tdmultu\t($10,$8)\n\tsltu\t$1,$10,$20\n\tdaddu\t$11,$1\n\tmflo\t($23,$10,$8)\n\n\tdmultu\t($17,$13)\n\tmflo\t($16,$17,$13)\n\tmfhi\t($17,$17,$13)\n\n\tdmultu\t($14,$23)\n\tmflo\t($24,$14,$23)\n\tmfhi\t($25,$14,$23)\n\n\tdmultu\t($19,$23)\n\tdaddu\t$24,$10\n\tsltu\t$1,$24,$10\n\tdaddu\t$25,$1\n\tmflo\t($18,$19,$23)\n\tmfhi\t($19,$19,$23)\n\n\tmove\t$15,$29\n\tli\t$22,2*8\n\tld\t$20,8($15)\n.align\t4\n.Linner:\n\t.set\tnoreorder\n\tdaddu $12,$5,$22\n\tdaddu $14,$7,$22\n\tld\t$12,($12)\n\tld\t$14,($14)\n\n\tdmultu\t($12,$13)\n\tdaddu\t$10,$16,$11\n\tdaddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\tdaddu\t$11,$17,$1\n\tdaddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:5", "text": "li\t$22,2*8\n\tld\t$20,8($15)\n.align\t4\n.Linner:\n\t.set\tnoreorder\n\tdaddu $12,$5,$22\n\tdaddu $14,$7,$22\n\tld\t$12,($12)\n\tld\t$14,($14)\n\n\tdmultu\t($12,$13)\n\tdaddu\t$10,$16,$11\n\tdaddu\t$24,$18,$25\n\tsltu\t$1,$10,$11\n\tsltu\t$2,$24,$25\n\tdaddu\t$11,$17,$1\n\tdaddu\t$25,$19,$2\n\tmflo\t($16,$12,$13)\n\tmfhi\t($17,$12,$13)\n\n\tdaddu\t$10,$20\n\taddu\t$22,8\n\tdmultu\t($14,$23)\n\tsltu\t$1,$10,$20\n\tdaddu\t$24,$10\n\tdaddu\t$11,$1\n\tsltu\t$2,$24,$10\n\tld\t$20,2*8($15)\n\tdaddu\t$25,$2\n\tsltu\t$1,$22,$9\n\tmflo\t($18,$14,$23)\n\tmfhi\t($19,$14,$23)\n\tsd\t$24,($15)\n\tbnez\t$1,.Linner\n\tdaddu $15,8\n\t.set\treorder\n\n\tdaddu\t$10,$16,$11\n\tsltu\t$1,$10,$11\n\tdaddu\t$11,$17,$1\n\tdaddu\t$10,$20\n\tsltu\t$2,$10,$20\n\tdaddu\t$11,$2\n\n\tld\t$20,2*8($15)\n\tdaddu\t$24,$18,$25\n\tsltu\t$1,$24,$25\n\tdaddu\t$25,$19,$1\n\tdaddu\t$24,$10\n\tsltu\t$2,$24,$10\n\tdaddu\t$25,$2\n\tsd\t$24,($15)\n\n\tdaddu\t$24,$25,$11\n\tsltu\t$25,$24,$11\n\tdaddu\t$24,$20\n\tsltu\t$1,$24,$20\n\tdaddu\t$25,$1\n\tsd\t$24,8($15)\n\tsd\t$25,2*8($15)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:6", "text": "daddu\t$10,$20\n\tsltu\t$2,$10,$20\n\tdaddu\t$11,$2\n\n\tld\t$20,2*8($15)\n\tdaddu\t$24,$18,$25\n\tsltu\t$1,$24,$25\n\tdaddu\t$25,$19,$1\n\tdaddu\t$24,$10\n\tsltu\t$2,$24,$10\n\tdaddu\t$25,$2\n\tsd\t$24,($15)\n\n\tdaddu\t$24,$25,$11\n\tsltu\t$25,$24,$11\n\tdaddu\t$24,$20\n\tsltu\t$1,$24,$20\n\tdaddu\t$25,$1\n\tsd\t$24,8($15)\n\tsd\t$25,2*8($15)\n\n\taddu\t$21,8\n\tsltu\t$2,$21,$9\n\tbnez\t$2,.Louter\n\n\t.set\tnoreorder\n\tdaddu $20,$29,$9\t# &tp[num]\n\tmove\t$15,$29\n\tmove\t$5,$29\n\tli\t$11,0\t\t# clear borrow bit\n\n.align\t4\n.Lsub:\tld\t$10,($15)\n\tld\t$24,($7)\n\tdaddu $15,8\n\tdaddu $7,8\n\tdsubu\t$24,$10,$24\t# tp[i]-np[i]\n\tsgtu\t$1,$24,$10\n\tdsubu\t$10,$24,$11\n\tsgtu\t$11,$10,$24\n\tsd\t$10,($4)\n\tor\t$11,$1\n\tsltu\t$1,$15,$20\n\tbnez\t$1,.Lsub\n\tdaddu $4,8\n\n\tdsubu\t$11,$25,$11\t# handle upmost overflow bit\n\tmove\t$15,$29\n\tdsubu $4,$9\t# restore rp\n\tnot\t$25,$11\n\n.Lcopy:\tld\t$14,($15)\t# conditional move\n\tld\t$12,($4)\n\tsd\t$0,($15)\n\tdaddu $15,8\n\tand\t$14,$11\n\tand\t$12,$25\n\tor\t$12,$14\n\tsltu\t$1,$15,$20\n\tsd\t$12,($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S:7", "text": "sd\t$10,($4)\n\tor\t$11,$1\n\tsltu\t$1,$15,$20\n\tbnez\t$1,.Lsub\n\tdaddu $4,8\n\n\tdsubu\t$11,$25,$11\t# handle upmost overflow bit\n\tmove\t$15,$29\n\tdsubu $4,$9\t# restore rp\n\tnot\t$25,$11\n\n.Lcopy:\tld\t$14,($15)\t# conditional move\n\tld\t$12,($4)\n\tsd\t$0,($15)\n\tdaddu $15,8\n\tand\t$14,$11\n\tand\t$12,$25\n\tor\t$12,$14\n\tsltu\t$1,$15,$20\n\tsd\t$12,($4)\n\tbnez\t$1,.Lcopy\n\tdaddu $4,8\n\n\tli\t$4,1\n\tli\t$2,1\n\n\t.set\tnoreorder\n\tmove\t$29,$30\n\tld\t$30,(14-1)*8($29)\n\tld\t$23,(14-2)*8($29)\n\tld\t$22,(14-3)*8($29)\n\tld\t$21,(14-4)*8($29)\n\tld\t$20,(14-5)*8($29)\n\tld\t$19,(14-6)*8($29)\n\tld\t$18,(14-7)*8($29)\n\tld\t$17,(14-8)*8($29)\n\tld\t$16,(14-9)*8($29)\n\tjr\t$31\n\tdaddu $29,14*8\n.end\tbn_mul_mont_internal\n.rdata\n.asciiz\t\"Montgomery Multiplication for MIPS, CRYPTOGAMS by <appro@openssl.org>\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips-mont64.S", "line_start": 241, "line_end": 282}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:1", "text": "#if !(defined (__mips_isa_rev) && (__mips_isa_rev >= 6))\n.set     mips2\n#endif\n#include \"mips_arch.h\"\n\n#if defined(_MIPS_ARCH_MIPS64R6)\n# define ddivu(rs,rt)\n# define mfqt(rd,rs,rt)\tddivu\trd,rs,rt\n# define mfrm(rd,rs,rt)\tdmodu\trd,rs,rt\n#elif defined(_MIPS_ARCH_MIPS32R6)\n# define divu(rs,rt)\n# define mfqt(rd,rs,rt)\tdivu\trd,rs,rt\n# define mfrm(rd,rs,rt)\tmodu\trd,rs,rt\n#else\n# define divu(rs,rt)\tdivu\t$0,rs,rt\n# define mfqt(rd,rs,rt)\tmflo\trd\n# define mfrm(rd,rs,rt)\tmfhi\trd\n#endif\n\n.rdata\n.asciiz\t\"mips3.s, Version 1.2\"\n.asciiz\t\"MIPS II/III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>\"\n\n.text\n.set\tnoat\n\n.align\t5\n.globl\tbn_mul_add_words\n.ent\tbn_mul_add_words\nbn_mul_add_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_mul_add_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_add_words\n\n.align\t5\n.ent\tbn_mul_add_words_internal\nbn_mul_add_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_add_words_tail\n\n.L_bn_mul_add_words_loop:\n\tlw\t$12,0($5)\n\tmultu\t($12,$7)\n\tlw\t$13,0($4)\n\tlw\t$14,4($5)\n\tlw\t$15,4($4)\n\tlw\t$8,2*4($5)\n\tlw\t$9,2*4($4)\n\taddu\t$13,$2\n\tsltu\t$2,$13,$2\t# All manuals say it \"compares 32-bit\n\t\t\t\t# values\", but it seems to work fine\n\t\t\t\t# even on 64-bit registers.\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$13,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:2", "text": ".set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_add_words_tail\n\n.L_bn_mul_add_words_loop:\n\tlw\t$12,0($5)\n\tmultu\t($12,$7)\n\tlw\t$13,0($4)\n\tlw\t$14,4($5)\n\tlw\t$15,4($4)\n\tlw\t$8,2*4($5)\n\tlw\t$9,2*4($4)\n\taddu\t$13,$2\n\tsltu\t$2,$13,$2\t# All manuals say it \"compares 32-bit\n\t\t\t\t# values\", but it seems to work fine\n\t\t\t\t# even on 64-bit registers.\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$13,$1\n\taddu\t$2,$12\n\t multu\t($14,$7)\n\tsltu\t$1,$13,$1\n\tsw\t$13,0($4)\n\taddu\t$2,$1\n\n\tlw\t$10,3*4($5)\n\tlw\t$11,3*4($4)\n\taddu\t$15,$2\n\tsltu\t$2,$15,$2\n\tmflo\t($1,$14,$7)\n\tmfhi\t($14,$14,$7)\n\taddu\t$15,$1\n\taddu\t$2,$14\n\t multu\t($8,$7)\n\tsltu\t$1,$15,$1\n\tsw\t$15,4($4)\n\taddu\t$2,$1\n\n\tsubu\t$6,4\n\taddu $4,4*4\n\taddu $5,4*4\n\taddu\t$9,$2\n\tsltu\t$2,$9,$2\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\taddu\t$9,$1\n\taddu\t$2,$8\n\t multu\t($10,$7)\n\tsltu\t$1,$9,$1\n\tsw\t$9,-2*4($4)\n\taddu\t$2,$1\n\n\n\tand\t$8,$6,$3\n\taddu\t$11,$2\n\tsltu\t$2,$11,$2\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\taddu\t$11,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:3", "text": "addu $4,4*4\n\taddu $5,4*4\n\taddu\t$9,$2\n\tsltu\t$2,$9,$2\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\taddu\t$9,$1\n\taddu\t$2,$8\n\t multu\t($10,$7)\n\tsltu\t$1,$9,$1\n\tsw\t$9,-2*4($4)\n\taddu\t$2,$1\n\n\n\tand\t$8,$6,$3\n\taddu\t$11,$2\n\tsltu\t$2,$11,$2\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\taddu\t$11,$1\n\taddu\t$2,$10\n\tsltu\t$1,$11,$1\n\tsw\t$11,-4($4)\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_mul_add_words_loop\n\taddu\t$2,$1\n\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\tnop\n\n.L_bn_mul_add_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tmultu\t($12,$7)\n\tlw\t$13,0($4)\n\tsubu\t$6,1\n\taddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$13,$1\n\taddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsw\t$13,0($4)\n\taddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tlw\t$12,4($5)\n\tmultu\t($12,$7)\n\tlw\t$13,4($4)\n\tsubu\t$6,1\n\taddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$13,$1\n\taddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsw\t$13,4($4)\n\taddu\t$2,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:4", "text": "addu\t$13,$1\n\taddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsw\t$13,0($4)\n\taddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tlw\t$12,4($5)\n\tmultu\t($12,$7)\n\tlw\t$13,4($4)\n\tsubu\t$6,1\n\taddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$13,$1\n\taddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsw\t$13,4($4)\n\taddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tlw\t$12,2*4($5)\n\tmultu\t($12,$7)\n\tlw\t$13,2*4($4)\n\taddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$13,$1\n\taddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsw\t$13,2*4($4)\n\taddu\t$2,$1\n\n.L_bn_mul_add_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_add_words_internal\n\n.align\t5\n.globl\tbn_mul_words\n.ent\tbn_mul_words\nbn_mul_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_mul_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_words\n\n.align\t5\n.ent\tbn_mul_words_internal\nbn_mul_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_words_tail", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:5", "text": ".align\t5\n.globl\tbn_mul_words\n.ent\tbn_mul_words\nbn_mul_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_mul_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_words\n\n.align\t5\n.ent\tbn_mul_words_internal\nbn_mul_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_words_tail\n\n.L_bn_mul_words_loop:\n\tlw\t$12,0($5)\n\tmultu\t($12,$7)\n\tlw\t$14,4($5)\n\tlw\t$8,2*4($5)\n\tlw\t$10,3*4($5)\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$2,$1\n\tsltu\t$13,$2,$1\n\t multu\t($14,$7)\n\tsw\t$2,0($4)\n\taddu\t$2,$13,$12\n\n\tsubu\t$6,4\n\taddu $4,4*4\n\taddu $5,4*4\n\tmflo\t($1,$14,$7)\n\tmfhi\t($14,$14,$7)\n\taddu\t$2,$1\n\tsltu\t$15,$2,$1\n\t multu\t($8,$7)\n\tsw\t$2,-3*4($4)\n\taddu\t$2,$15,$14\n\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\taddu\t$2,$1\n\tsltu\t$9,$2,$1\n\t multu\t($10,$7)\n\tsw\t$2,-2*4($4)\n\taddu\t$2,$9,$8\n\n\tand\t$8,$6,$3\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\taddu\t$2,$1\n\tsltu\t$11,$2,$1\n\tsw\t$2,-4($4)\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:6", "text": "sltu\t$15,$2,$1\n\t multu\t($8,$7)\n\tsw\t$2,-3*4($4)\n\taddu\t$2,$15,$14\n\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\taddu\t$2,$1\n\tsltu\t$9,$2,$1\n\t multu\t($10,$7)\n\tsw\t$2,-2*4($4)\n\taddu\t$2,$9,$8\n\n\tand\t$8,$6,$3\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\taddu\t$2,$1\n\tsltu\t$11,$2,$1\n\tsw\t$2,-4($4)\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_mul_words_loop\n\taddu\t$2,$11,$10\n\n\tbeqz\t$6,.L_bn_mul_words_return\n\tnop\n\n.L_bn_mul_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tmultu\t($12,$7)\n\tsubu\t$6,1\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsw\t$2,0($4)\n\taddu\t$2,$13,$12\n\tbeqz\t$6,.L_bn_mul_words_return\n\n\tlw\t$12,4($5)\n\tmultu\t($12,$7)\n\tsubu\t$6,1\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsw\t$2,4($4)\n\taddu\t$2,$13,$12\n\tbeqz\t$6,.L_bn_mul_words_return\n\n\tlw\t$12,2*4($5)\n\tmultu\t($12,$7)\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsw\t$2,2*4($4)\n\taddu\t$2,$13,$12\n\n.L_bn_mul_words_return:", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:7", "text": "multu\t($12,$7)\n\tsubu\t$6,1\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsw\t$2,4($4)\n\taddu\t$2,$13,$12\n\tbeqz\t$6,.L_bn_mul_words_return\n\n\tlw\t$12,2*4($5)\n\tmultu\t($12,$7)\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\taddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsw\t$2,2*4($4)\n\taddu\t$2,$13,$12\n\n.L_bn_mul_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_words_internal\n\n.align\t5\n.globl\tbn_sqr_words\n.ent\tbn_sqr_words\nbn_sqr_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_sqr_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_sqr_words\n\n.align\t5\n.ent\tbn_sqr_words_internal\nbn_sqr_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_sqr_words_tail\n\n.L_bn_sqr_words_loop:\n\tlw\t$12,0($5)\n\tmultu\t($12,$12)\n\tlw\t$14,4($5)\n\tlw\t$8,2*4($5)\n\tlw\t$10,3*4($5)\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsw\t$13,0($4)\n\tsw\t$12,4($4)\n\n\tmultu\t($14,$14)\n\tsubu\t$6,4\n\taddu $4,8*4\n\taddu $5,4*4\n\tmflo\t($15,$14,$14)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:8", "text": "li\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_sqr_words_tail\n\n.L_bn_sqr_words_loop:\n\tlw\t$12,0($5)\n\tmultu\t($12,$12)\n\tlw\t$14,4($5)\n\tlw\t$8,2*4($5)\n\tlw\t$10,3*4($5)\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsw\t$13,0($4)\n\tsw\t$12,4($4)\n\n\tmultu\t($14,$14)\n\tsubu\t$6,4\n\taddu $4,8*4\n\taddu $5,4*4\n\tmflo\t($15,$14,$14)\n\tmfhi\t($14,$14,$14)\n\tsw\t$15,-6*4($4)\n\tsw\t$14,-5*4($4)\n\n\tmultu\t($8,$8)\n\tmflo\t($9,$8,$8)\n\tmfhi\t($8,$8,$8)\n\tsw\t$9,-4*4($4)\n\tsw\t$8,-3*4($4)\n\n\n\tmultu\t($10,$10)\n\tand\t$8,$6,$3\n\tmflo\t($11,$10,$10)\n\tmfhi\t($10,$10,$10)\n\tsw\t$11,-2*4($4)\n\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_sqr_words_loop\n\tsw\t$10,-4($4)\n\n\tbeqz\t$6,.L_bn_sqr_words_return\n\tnop\n\n.L_bn_sqr_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsw\t$13,0($4)\n\tsw\t$12,4($4)\n\tbeqz\t$6,.L_bn_sqr_words_return\n\n\tlw\t$12,4($5)\n\tmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:9", "text": "beqz\t$6,.L_bn_sqr_words_return\n\tnop\n\n.L_bn_sqr_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsw\t$13,0($4)\n\tsw\t$12,4($4)\n\tbeqz\t$6,.L_bn_sqr_words_return\n\n\tlw\t$12,4($5)\n\tmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsw\t$13,2*4($4)\n\tsw\t$12,3*4($4)\n\tbeqz\t$6,.L_bn_sqr_words_return\n\n\tlw\t$12,2*4($5)\n\tmultu\t($12,$12)\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsw\t$13,4*4($4)\n\tsw\t$12,5*4($4)\n\n.L_bn_sqr_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n\n.end\tbn_sqr_words_internal\n\n.align\t5\n.globl\tbn_add_words\n.ent\tbn_add_words\nbn_add_words:\n\t.set\tnoreorder\n\tbgtz\t$7,bn_add_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_add_words\n\n.align\t5\n.ent\tbn_add_words_internal\nbn_add_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_add_words_tail\n\n.L_bn_add_words_loop:\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:10", "text": ".ent\tbn_add_words\nbn_add_words:\n\t.set\tnoreorder\n\tbgtz\t$7,bn_add_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_add_words\n\n.align\t5\n.ent\tbn_add_words_internal\nbn_add_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_add_words_tail\n\n.L_bn_add_words_loop:\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\tsubu\t$7,4\n\tlw\t$13,4($5)\n\tand\t$1,$7,$3\n\tlw\t$14,2*4($5)\n\taddu $6,4*4\n\tlw\t$15,3*4($5)\n\taddu $4,4*4\n\tlw\t$9,-3*4($6)\n\taddu $5,4*4\n\tlw\t$10,-2*4($6)\n\tlw\t$11,-4($6)\n\taddu\t$8,$12\n\tsltu\t$24,$8,$12\n\taddu\t$12,$8,$2\n\tsltu\t$2,$12,$8\n\tsw\t$12,-4*4($4)\n\taddu\t$2,$24\n\n\taddu\t$9,$13\n\tsltu\t$25,$9,$13\n\taddu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsw\t$13,-3*4($4)\n\taddu\t$2,$25\n\n\taddu\t$10,$14\n\tsltu\t$24,$10,$14\n\taddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsw\t$14,-2*4($4)\n\taddu\t$2,$24\n\n\taddu\t$11,$15\n\tsltu\t$25,$11,$15\n\taddu\t$15,$11,$2\n\tsltu\t$2,$15,$11\n\tsw\t$15,-4($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_add_words_loop", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:11", "text": "addu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsw\t$13,-3*4($4)\n\taddu\t$2,$25\n\n\taddu\t$10,$14\n\tsltu\t$24,$10,$14\n\taddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsw\t$14,-2*4($4)\n\taddu\t$2,$24\n\n\taddu\t$11,$15\n\tsltu\t$25,$11,$15\n\taddu\t$15,$11,$2\n\tsltu\t$2,$15,$11\n\tsw\t$15,-4($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_add_words_loop\n\taddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_add_words_return\n\tnop\n\n.L_bn_add_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\taddu\t$8,$12\n\tsubu\t$7,1\n\tsltu\t$24,$8,$12\n\taddu\t$12,$8,$2\n\tsltu\t$2,$12,$8\n\tsw\t$12,0($4)\n\taddu\t$2,$24\n\tbeqz\t$7,.L_bn_add_words_return\n\n\tlw\t$13,4($5)\n\tlw\t$9,4($6)\n\taddu\t$9,$13\n\tsubu\t$7,1\n\tsltu\t$25,$9,$13\n\taddu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsw\t$13,4($4)\n\taddu\t$2,$25\n\tbeqz\t$7,.L_bn_add_words_return\n\n\tlw\t$14,2*4($5)\n\tlw\t$10,2*4($6)\n\taddu\t$10,$14\n\tsltu\t$24,$10,$14\n\taddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsw\t$14,2*4($4)\n\taddu\t$2,$24\n\n.L_bn_add_words_return:\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:12", "text": "addu\t$9,$13\n\tsubu\t$7,1\n\tsltu\t$25,$9,$13\n\taddu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsw\t$13,4($4)\n\taddu\t$2,$25\n\tbeqz\t$7,.L_bn_add_words_return\n\n\tlw\t$14,2*4($5)\n\tlw\t$10,2*4($6)\n\taddu\t$10,$14\n\tsltu\t$24,$10,$14\n\taddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsw\t$14,2*4($4)\n\taddu\t$2,$24\n\n.L_bn_add_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n\n.end\tbn_add_words_internal\n\n.align\t5\n.globl\tbn_sub_words\n.ent\tbn_sub_words\nbn_sub_words:\n\t.set\tnoreorder\n\tbgtz\t$7,bn_sub_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$0\n.end\tbn_sub_words\n\n.align\t5\n.ent\tbn_sub_words_internal\nbn_sub_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_sub_words_tail\n\n.L_bn_sub_words_loop:\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\tsubu\t$7,4\n\tlw\t$13,4($5)\n\tand\t$1,$7,$3\n\tlw\t$14,2*4($5)\n\taddu $6,4*4\n\tlw\t$15,3*4($5)\n\taddu $4,4*4\n\tlw\t$9,-3*4($6)\n\taddu $5,4*4\n\tlw\t$10,-2*4($6)\n\tlw\t$11,-4($6)\n\tsltu\t$24,$12,$8\n\tsubu\t$8,$12,$8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:13", "text": "li\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_sub_words_tail\n\n.L_bn_sub_words_loop:\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\tsubu\t$7,4\n\tlw\t$13,4($5)\n\tand\t$1,$7,$3\n\tlw\t$14,2*4($5)\n\taddu $6,4*4\n\tlw\t$15,3*4($5)\n\taddu $4,4*4\n\tlw\t$9,-3*4($6)\n\taddu $5,4*4\n\tlw\t$10,-2*4($6)\n\tlw\t$11,-4($6)\n\tsltu\t$24,$12,$8\n\tsubu\t$8,$12,$8\n\tsubu\t$12,$8,$2\n\tsgtu\t$2,$12,$8\n\tsw\t$12,-4*4($4)\n\taddu\t$2,$24\n\n\tsltu\t$25,$13,$9\n\tsubu\t$9,$13,$9\n\tsubu\t$13,$9,$2\n\tsgtu\t$2,$13,$9\n\tsw\t$13,-3*4($4)\n\taddu\t$2,$25\n\n\n\tsltu\t$24,$14,$10\n\tsubu\t$10,$14,$10\n\tsubu\t$14,$10,$2\n\tsgtu\t$2,$14,$10\n\tsw\t$14,-2*4($4)\n\taddu\t$2,$24\n\n\tsltu\t$25,$15,$11\n\tsubu\t$11,$15,$11\n\tsubu\t$15,$11,$2\n\tsgtu\t$2,$15,$11\n\tsw\t$15,-4($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_sub_words_loop\n\taddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_sub_words_return\n\tnop\n\n.L_bn_sub_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\tsubu\t$7,1\n\tsltu\t$24,$12,$8\n\tsubu\t$8,$12,$8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:14", "text": "sltu\t$25,$15,$11\n\tsubu\t$11,$15,$11\n\tsubu\t$15,$11,$2\n\tsgtu\t$2,$15,$11\n\tsw\t$15,-4($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_sub_words_loop\n\taddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_sub_words_return\n\tnop\n\n.L_bn_sub_words_tail:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\tsubu\t$7,1\n\tsltu\t$24,$12,$8\n\tsubu\t$8,$12,$8\n\tsubu\t$12,$8,$2\n\tsgtu\t$2,$12,$8\n\tsw\t$12,0($4)\n\taddu\t$2,$24\n\tbeqz\t$7,.L_bn_sub_words_return\n\n\tlw\t$13,4($5)\n\tsubu\t$7,1\n\tlw\t$9,4($6)\n\tsltu\t$25,$13,$9\n\tsubu\t$9,$13,$9\n\tsubu\t$13,$9,$2\n\tsgtu\t$2,$13,$9\n\tsw\t$13,4($4)\n\taddu\t$2,$25\n\tbeqz\t$7,.L_bn_sub_words_return\n\n\tlw\t$14,2*4($5)\n\tlw\t$10,2*4($6)\n\tsltu\t$24,$14,$10\n\tsubu\t$10,$14,$10\n\tsubu\t$14,$10,$2\n\tsgtu\t$2,$14,$10\n\tsw\t$14,2*4($4)\n\taddu\t$2,$24\n\n.L_bn_sub_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_sub_words_internal\n\n#if 0\n/*\n * The bn_div_3_words entry point is reused for constant-time interface.\n * Implementation is retained as historical reference.\n */\n.align 5\n.globl\tbn_div_3_words\n.ent\tbn_div_3_words", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:15", "text": "subu\t$10,$14,$10\n\tsubu\t$14,$10,$2\n\tsgtu\t$2,$14,$10\n\tsw\t$14,2*4($4)\n\taddu\t$2,$24\n\n.L_bn_sub_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_sub_words_internal\n\n#if 0\n/*\n * The bn_div_3_words entry point is reused for constant-time interface.\n * Implementation is retained as historical reference.\n */\n.align 5\n.globl\tbn_div_3_words\n.ent\tbn_div_3_words\nbn_div_3_words:\n\t.set\tnoreorder\n\tmove\t$7,$4\t\t# we know that bn_div_words does not\n\t\t\t\t# touch $7, $10, $11 and preserves $6\n\t\t\t\t# so that we can save two arguments\n\t\t\t\t# and return address in registers\n\t\t\t\t# instead of stack:-)\n\n\tlw\t$4,($7)\n\tmove\t$10,$5\n\tbne\t$4,$6,bn_div_3_words_internal\n\tlw\t$5,-4($7)\n\tli\t$2,-1\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_3_words\n\n.align\t5\n.ent\tbn_div_3_words_internal\nbn_div_3_words_internal:\n\t.set\treorder\n\tmove\t$11,$31\n\tbal\tbn_div_words_internal\n\tmove\t$31,$11\n\tmultu\t($10,$2)\n\tlw\t$14,-2*4($7)\n\tmove\t$8,$0\n\tmfhi\t($13,$10,$2)\n\tmflo\t($12,$10,$2)\n\tsltu\t$24,$13,$5\n.L_bn_div_3_words_inner_loop:\n\tbnez\t$24,.L_bn_div_3_words_inner_loop_done\n\tsgeu\t$1,$14,$12\n\tseq\t$25,$13,$5\n\tand\t$1,$25\n\tsltu\t$15,$12,$10\n\taddu\t$5,$6\n\tsubu\t$13,$15\n\tsubu\t$12,$10\n\tsltu\t$24,$13,$5", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:16", "text": ".set\treorder\n\tmove\t$11,$31\n\tbal\tbn_div_words_internal\n\tmove\t$31,$11\n\tmultu\t($10,$2)\n\tlw\t$14,-2*4($7)\n\tmove\t$8,$0\n\tmfhi\t($13,$10,$2)\n\tmflo\t($12,$10,$2)\n\tsltu\t$24,$13,$5\n.L_bn_div_3_words_inner_loop:\n\tbnez\t$24,.L_bn_div_3_words_inner_loop_done\n\tsgeu\t$1,$14,$12\n\tseq\t$25,$13,$5\n\tand\t$1,$25\n\tsltu\t$15,$12,$10\n\taddu\t$5,$6\n\tsubu\t$13,$15\n\tsubu\t$12,$10\n\tsltu\t$24,$13,$5\n\tsltu\t$8,$5,$6\n\tor\t$24,$8\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_3_words_inner_loop\n\tsubu\t$2,1\n\taddu\t$2,1\n\t.set\treorder\n.L_bn_div_3_words_inner_loop_done:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_3_words_internal\n#endif\n\n.align\t5\n.globl\tbn_div_words\n.ent\tbn_div_words\nbn_div_words:\n\t.set\tnoreorder\n\tbnez\t$6,bn_div_words_internal\n\tli\t$2,-1\t\t# I would rather signal div-by-zero\n\t\t\t\t# which can be done with 'break 7'\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_words\n\n.align\t5\n.ent\tbn_div_words_internal\nbn_div_words_internal:\n\tmove\t$3,$0\n\tbltz\t$6,.L_bn_div_words_body\n\tmove\t$25,$3\n\tsll\t$6,1\n\tbgtz\t$6,.-4\n\taddu\t$25,1\n\n\t.set\treorder\n\tnegu\t$13,$25\n\tli\t$14,-1\n\tsll\t$14,$13", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:17", "text": "li\t$2,-1\t\t# I would rather signal div-by-zero\n\t\t\t\t# which can be done with 'break 7'\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_words\n\n.align\t5\n.ent\tbn_div_words_internal\nbn_div_words_internal:\n\tmove\t$3,$0\n\tbltz\t$6,.L_bn_div_words_body\n\tmove\t$25,$3\n\tsll\t$6,1\n\tbgtz\t$6,.-4\n\taddu\t$25,1\n\n\t.set\treorder\n\tnegu\t$13,$25\n\tli\t$14,-1\n\tsll\t$14,$13\n\tand\t$14,$4\n\tsrl\t$1,$5,$13\n\t.set\tnoreorder\n\tbeqz\t$14,.+12\n\tnop\n\tbreak\t6\t\t# signal overflow\n\t.set\treorder\n\tsll\t$4,$25\n\tsll\t$5,$25\n\tor\t$4,$1\n.L_bn_div_words_body:\n\tsrl\t$3,$6,4*4\t# bits\n\tsgeu\t$1,$4,$6\n\t.set\tnoreorder\n\tbeqz\t$1,.+12\n\tnop\n\tsubu\t$4,$6\n\t.set\treorder\n\n\tli\t$8,-1\n\tsrl\t$9,$4,4*4\t# bits\n\tsrl\t$8,4*4\t# q=0xffffffff\n\tbeq\t$3,$9,.L_bn_div_words_skip_div1\n\tdivu\t($4,$3)\n\tmfqt\t($8,$4,$3)\n.L_bn_div_words_skip_div1:\n\tmultu\t($6,$8)\n\tsll\t$15,$4,4*4\t# bits\n\tsrl\t$1,$5,4*4\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop1:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$2,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:18", "text": "srl\t$9,$4,4*4\t# bits\n\tsrl\t$8,4*4\t# q=0xffffffff\n\tbeq\t$3,$9,.L_bn_div_words_skip_div1\n\tdivu\t($4,$3)\n\tmfqt\t($8,$4,$3)\n.L_bn_div_words_skip_div1:\n\tmultu\t($6,$8)\n\tsll\t$15,$4,4*4\t# bits\n\tsrl\t$1,$5,4*4\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop1:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$2,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop1_done\n\tsubu\t$13,$2\n\tsubu\t$12,$6\n\tb\t.L_bn_div_words_inner_loop1\n\tsubu\t$8,1\n\t.set\treorder\n.L_bn_div_words_inner_loop1_done:\n\n\tsll\t$5,4*4\t# bits\n\tsubu\t$4,$15,$12\n\tsll\t$2,$8,4*4\t# bits\n\n\tli\t$8,-1\n\tsrl\t$9,$4,4*4\t# bits\n\tsrl\t$8,4*4\t# q=0xffffffff\n\tbeq\t$3,$9,.L_bn_div_words_skip_div2\n\tdivu\t($4,$3)\n\tmfqt\t($8,$4,$3)\n.L_bn_div_words_skip_div2:\n\tmultu\t($6,$8)\n\tsll\t$15,$4,4*4\t# bits\n\tsrl\t$1,$5,4*4\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop2:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$3,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop2_done\n\tsubu\t$13,$3\n\tsubu\t$12,$6\n\tb\t.L_bn_div_words_inner_loop2\n\tsubu\t$8,1\n\t.set\treorder\n.L_bn_div_words_inner_loop2_done:", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:19", "text": "sll\t$15,$4,4*4\t# bits\n\tsrl\t$1,$5,4*4\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop2:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$3,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop2_done\n\tsubu\t$13,$3\n\tsubu\t$12,$6\n\tb\t.L_bn_div_words_inner_loop2\n\tsubu\t$8,1\n\t.set\treorder\n.L_bn_div_words_inner_loop2_done:\n\n\tsubu\t$4,$15,$12\n\tor\t$2,$8\n\tsrl\t$3,$4,$25\t# $3 contains remainder if anybody wants it\n\tsrl\t$6,$25\t\t# restore $6\n\n\t.set\tnoreorder\n\tmove\t$5,$3\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_words_internal\n\n.align\t5\n.globl\tbn_mul_comba8\n.ent\tbn_mul_comba8\nbn_mul_comba8:\n\t.set\tnoreorder\n\t.frame\t$29,6*4,$31\n\t.mask\t0x003f0000,-4\n\tsubu $29,6*4\n\tsw\t$21,5*4($29)\n\tsw\t$20,4*4($29)\n\tsw\t$19,3*4($29)\n\tsw\t$18,2*4($29)\n\tsw\t$17,1*4($29)\n\tsw\t$16,0*4($29)\n\n\t.set\treorder\n\tlw\t$12,0($5)\t# If compiled with -mips3 option on\n\t\t\t\t# R5000 box assembler barks on this\n\t\t\t\t# 1ine with \"should not have mult/div\n\t\t\t\t# as last instruction in bb (R10K\n\t\t\t\t# bug)\" warning. If anybody out there\n\t\t\t\t# has a clue about how to circumvent\n\t\t\t\t# this do send me a note.\n\t\t\t\t#\t\t<appro@fy.chalmers.se>\n\n\tlw\t$8,0($6)\n\tlw\t$13,4($5)\n\tlw\t$14,2*4($5)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:20", "text": "sw\t$21,5*4($29)\n\tsw\t$20,4*4($29)\n\tsw\t$19,3*4($29)\n\tsw\t$18,2*4($29)\n\tsw\t$17,1*4($29)\n\tsw\t$16,0*4($29)\n\n\t.set\treorder\n\tlw\t$12,0($5)\t# If compiled with -mips3 option on\n\t\t\t\t# R5000 box assembler barks on this\n\t\t\t\t# 1ine with \"should not have mult/div\n\t\t\t\t# as last instruction in bb (R10K\n\t\t\t\t# bug)\" warning. If anybody out there\n\t\t\t\t# has a clue about how to circumvent\n\t\t\t\t# this do send me a note.\n\t\t\t\t#\t\t<appro@fy.chalmers.se>\n\n\tlw\t$8,0($6)\n\tlw\t$13,4($5)\n\tlw\t$14,2*4($5)\n\tmultu\t($12,$8)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tlw\t$15,3*4($5)\n\tlw\t$9,4($6)\n\tlw\t$10,2*4($6)\n\tlw\t$11,3*4($6)\n\tmflo\t($2,$12,$8)\n\tmfhi\t($3,$12,$8)\n\n\tlw\t$16,4*4($5)\n\tlw\t$18,5*4($5)\n\tmultu\t($12,$9)\t\t# mul_add_c(a[0],b[1],c2,c3,c1);\n\tlw\t$20,6*4($5)\n\tlw\t$5,7*4($5)\n\tlw\t$17,4*4($6)\n\tlw\t$19,5*4($6)\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$8)\t\t# mul_add_c(a[1],b[0],c2,c3,c1);\n\taddu\t$7,$25,$1\n\tlw\t$21,6*4($6)\n\tlw\t$6,7*4($6)\n\tsw\t$2,0($4)\t# r[0]=c1;\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsw\t$3,4($4)\t# r[1]=c2;\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$9)\t\t# mul_add_c(a[1],b[1],c3,c1,c2);\n\taddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:21", "text": "addu\t$7,$25,$1\n\tlw\t$21,6*4($6)\n\tlw\t$6,7*4($6)\n\tsw\t$2,0($4)\t# r[0]=c1;\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsw\t$3,4($4)\t# r[1]=c2;\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$9)\t\t# mul_add_c(a[1],b[1],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tmflo\t($24,$13,$9)\n\tmfhi\t($25,$13,$9)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($12,$10)\t\t# mul_add_c(a[0],b[2],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$12,$10)\n\tmfhi\t($25,$12,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($12,$11)\t\t# mul_add_c(a[0],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,2*4($4)\t# r[2]=c3;\n\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\taddu\t$2,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:22", "text": "mflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($15,$8)\t\t# mul_add_c(a[3],b[0],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($16,$8)\t\t# mul_add_c(a[4],b[0],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,3*4($4)\t# r[3]=c1;\n\n\tmflo\t($24,$16,$8)\n\tmfhi\t($25,$16,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($15,$9)\t\t# mul_add_c(a[3],b[1],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\taddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:23", "text": "sltu\t$1,$3,$24\n\tmultu\t($15,$9)\t\t# mul_add_c(a[3],b[1],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$13,$11)\n\tmfhi\t($25,$13,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($12,$17)\t\t# mul_add_c(a[0],b[4],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$12,$17)\n\tmfhi\t($25,$12,$17)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($12,$19)\t\t# mul_add_c(a[0],b[5],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,4*4($4)\t# r[4]=c2;\n\n\tmflo\t($24,$12,$19)\n\tmfhi\t($25,$12,$19)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$17)\t\t# mul_add_c(a[1],b[4],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$13,$17)\n\tmfhi\t($25,$13,$17)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($14,$11)\t\t# mul_add_c(a[2],b[3],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:24", "text": "addu\t$2,$1\n\tsw\t$3,4*4($4)\t# r[4]=c2;\n\n\tmflo\t($24,$12,$19)\n\tmfhi\t($25,$12,$19)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$17)\t\t# mul_add_c(a[1],b[4],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$13,$17)\n\tmfhi\t($25,$13,$17)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($14,$11)\t\t# mul_add_c(a[2],b[3],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($15,$10)\t\t# mul_add_c(a[3],b[2],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($16,$9)\t\t# mul_add_c(a[4],b[1],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$16,$9)\n\tmfhi\t($25,$16,$9)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($18,$8)\t\t# mul_add_c(a[5],b[0],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$18,$8)\n\tmfhi\t($25,$18,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($20,$8)\t\t# mul_add_c(a[6],b[0],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,5*4($4)\t# r[5]=c3;\n\n\tmflo\t($24,$20,$8)\n\tmfhi\t($25,$20,$8)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:25", "text": "addu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($18,$8)\t\t# mul_add_c(a[5],b[0],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$18,$8)\n\tmfhi\t($25,$18,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($20,$8)\t\t# mul_add_c(a[6],b[0],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,5*4($4)\t# r[5]=c3;\n\n\tmflo\t($24,$20,$8)\n\tmfhi\t($25,$20,$8)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($18,$9)\t\t# mul_add_c(a[5],b[1],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$18,$9)\n\tmfhi\t($25,$18,$9)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($16,$10)\t\t# mul_add_c(a[4],b[2],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$16,$10)\n\tmfhi\t($25,$16,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($15,$11)\t\t# mul_add_c(a[3],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($14,$17)\t\t# mul_add_c(a[2],b[4],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$14,$17)\n\tmfhi\t($25,$14,$17)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($13,$19)\t\t# mul_add_c(a[1],b[5],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:26", "text": "addu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($14,$17)\t\t# mul_add_c(a[2],b[4],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$14,$17)\n\tmfhi\t($25,$14,$17)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($13,$19)\t\t# mul_add_c(a[1],b[5],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$13,$19)\n\tmfhi\t($25,$13,$19)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($12,$21)\t\t# mul_add_c(a[0],b[6],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$12,$21)\n\tmfhi\t($25,$12,$21)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($12,$6)\t\t# mul_add_c(a[0],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,6*4($4)\t# r[6]=c1;\n\n\tmflo\t($24,$12,$6)\n\tmfhi\t($25,$12,$6)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$21)\t\t# mul_add_c(a[1],b[6],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$13,$21)\n\tmfhi\t($25,$13,$21)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($14,$19)\t\t# mul_add_c(a[2],b[5],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$19)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:27", "text": "sw\t$2,6*4($4)\t# r[6]=c1;\n\n\tmflo\t($24,$12,$6)\n\tmfhi\t($25,$12,$6)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$21)\t\t# mul_add_c(a[1],b[6],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$13,$21)\n\tmfhi\t($25,$13,$21)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($14,$19)\t\t# mul_add_c(a[2],b[5],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$19)\n\tmfhi\t($25,$14,$19)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($15,$17)\t\t# mul_add_c(a[3],b[4],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$15,$17)\n\tmfhi\t($25,$15,$17)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($16,$11)\t\t# mul_add_c(a[4],b[3],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$16,$11)\n\tmfhi\t($25,$16,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($18,$10)\t\t# mul_add_c(a[5],b[2],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$18,$10)\n\tmfhi\t($25,$18,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($20,$9)\t\t# mul_add_c(a[6],b[1],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$20,$9)\n\tmfhi\t($25,$20,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($5,$8)\t\t# mul_add_c(a[7],b[0],c2,c3,c1);", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:28", "text": "sltu\t$1,$3,$24\n\tmultu\t($18,$10)\t\t# mul_add_c(a[5],b[2],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$18,$10)\n\tmfhi\t($25,$18,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($20,$9)\t\t# mul_add_c(a[6],b[1],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$20,$9)\n\tmfhi\t($25,$20,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($5,$8)\t\t# mul_add_c(a[7],b[0],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$5,$8)\n\tmfhi\t($25,$5,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($5,$9)\t\t# mul_add_c(a[7],b[1],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,7*4($4)\t# r[7]=c2;\n\n\tmflo\t($24,$5,$9)\n\tmfhi\t($25,$5,$9)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($20,$10)\t\t# mul_add_c(a[6],b[2],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$20,$10)\n\tmfhi\t($25,$20,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($18,$11)\t\t# mul_add_c(a[5],b[3],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$18,$11)\n\tmfhi\t($25,$18,$11)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($16,$17)\t\t# mul_add_c(a[4],b[4],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:29", "text": "addu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$20,$10)\n\tmfhi\t($25,$20,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($18,$11)\t\t# mul_add_c(a[5],b[3],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$18,$11)\n\tmfhi\t($25,$18,$11)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($16,$17)\t\t# mul_add_c(a[4],b[4],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$16,$17)\n\tmfhi\t($25,$16,$17)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($15,$19)\t\t# mul_add_c(a[3],b[5],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$15,$19)\n\tmfhi\t($25,$15,$19)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($14,$21)\t\t# mul_add_c(a[2],b[6],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$14,$21)\n\tmfhi\t($25,$14,$21)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$6)\t\t# mul_add_c(a[1],b[7],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$13,$6)\n\tmfhi\t($25,$13,$6)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($14,$6)\t\t# mul_add_c(a[2],b[7],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,8*4($4)\t# r[8]=c3;\n\n\tmflo\t($24,$14,$6)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:30", "text": "mfhi\t($25,$14,$21)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$6)\t\t# mul_add_c(a[1],b[7],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$13,$6)\n\tmfhi\t($25,$13,$6)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($14,$6)\t\t# mul_add_c(a[2],b[7],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,8*4($4)\t# r[8]=c3;\n\n\tmflo\t($24,$14,$6)\n\tmfhi\t($25,$14,$6)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($15,$21)\t\t# mul_add_c(a[3],b[6],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$15,$21)\n\tmfhi\t($25,$15,$21)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($16,$19)\t\t# mul_add_c(a[4],b[5],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$16,$19)\n\tmfhi\t($25,$16,$19)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($18,$17)\t\t# mul_add_c(a[5],b[4],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$18,$17)\n\tmfhi\t($25,$18,$17)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($20,$11)\t\t# mul_add_c(a[6],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$20,$11)\n\tmfhi\t($25,$20,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($5,$10)\t\t# mul_add_c(a[7],b[2],c1,c2,c3);\n\taddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:31", "text": "multu\t($18,$17)\t\t# mul_add_c(a[5],b[4],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$18,$17)\n\tmfhi\t($25,$18,$17)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($20,$11)\t\t# mul_add_c(a[6],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$20,$11)\n\tmfhi\t($25,$20,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($5,$10)\t\t# mul_add_c(a[7],b[2],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$5,$10)\n\tmfhi\t($25,$5,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($5,$11)\t\t# mul_add_c(a[7],b[3],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,9*4($4)\t# r[9]=c1;\n\n\tmflo\t($24,$5,$11)\n\tmfhi\t($25,$5,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($20,$17)\t\t# mul_add_c(a[6],b[4],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$20,$17)\n\tmfhi\t($25,$20,$17)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($18,$19)\t\t# mul_add_c(a[5],b[5],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$18,$19)\n\tmfhi\t($25,$18,$19)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($16,$21)\t\t# mul_add_c(a[4],b[6],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:32", "text": "addu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$20,$17)\n\tmfhi\t($25,$20,$17)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($18,$19)\t\t# mul_add_c(a[5],b[5],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$18,$19)\n\tmfhi\t($25,$18,$19)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($16,$21)\t\t# mul_add_c(a[4],b[6],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$16,$21)\n\tmfhi\t($25,$16,$21)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($15,$6)\t\t# mul_add_c(a[3],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$15,$6)\n\tmfhi\t($25,$15,$6)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($16,$6)\t\t# mul_add_c(a[4],b[7],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,10*4($4)\t# r[10]=c2;\n\n\tmflo\t($24,$16,$6)\n\tmfhi\t($25,$16,$6)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($18,$21)\t\t# mul_add_c(a[5],b[6],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$18,$21)\n\tmfhi\t($25,$18,$21)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($20,$19)\t\t# mul_add_c(a[6],b[5],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$20,$19)\n\tmfhi\t($25,$20,$19)\n\taddu\t$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:33", "text": "mflo\t($24,$16,$6)\n\tmfhi\t($25,$16,$6)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($18,$21)\t\t# mul_add_c(a[5],b[6],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$18,$21)\n\tmfhi\t($25,$18,$21)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($20,$19)\t\t# mul_add_c(a[6],b[5],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$20,$19)\n\tmfhi\t($25,$20,$19)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($5,$17)\t\t# mul_add_c(a[7],b[4],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tmflo\t($24,$5,$17)\n\tmfhi\t($25,$5,$17)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($5,$19)\t\t# mul_add_c(a[7],b[5],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,11*4($4)\t# r[11]=c3;\n\n\tmflo\t($24,$5,$19)\n\tmfhi\t($25,$5,$19)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($20,$21)\t\t# mul_add_c(a[6],b[6],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$20,$21)\n\tmfhi\t($25,$20,$21)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($18,$6)\t\t# mul_add_c(a[5],b[7],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$18,$6)\n\tmfhi\t($25,$18,$6)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($20,$6)\t\t# mul_add_c(a[6],b[7],c2,c3,c1);\n\taddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:34", "text": "sltu\t$1,$2,$24\n\tmultu\t($20,$21)\t\t# mul_add_c(a[6],b[6],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$20,$21)\n\tmfhi\t($25,$20,$21)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($18,$6)\t\t# mul_add_c(a[5],b[7],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$18,$6)\n\tmfhi\t($25,$18,$6)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($20,$6)\t\t# mul_add_c(a[6],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,12*4($4)\t# r[12]=c1;\n\n\tmflo\t($24,$20,$6)\n\tmfhi\t($25,$20,$6)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($5,$21)\t\t# mul_add_c(a[7],b[6],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$5,$21)\n\tmfhi\t($25,$5,$21)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($5,$6)\t\t# mul_add_c(a[7],b[7],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,13*4($4)\t# r[13]=c2;\n\n\tmflo\t($24,$5,$6)\n\tmfhi\t($25,$5,$6)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsw\t$7,14*4($4)\t# r[14]=c3;\n\tsw\t$2,15*4($4)\t# r[15]=c1;\n\n\t.set\tnoreorder\n\tlw\t$21,5*4($29)\n\tlw\t$20,4*4($29)\n\tlw\t$19,3*4($29)\n\tlw\t$18,2*4($29)\n\tlw\t$17,1*4($29)\n\tlw\t$16,0*4($29)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:35", "text": "sltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,13*4($4)\t# r[13]=c2;\n\n\tmflo\t($24,$5,$6)\n\tmfhi\t($25,$5,$6)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsw\t$7,14*4($4)\t# r[14]=c3;\n\tsw\t$2,15*4($4)\t# r[15]=c1;\n\n\t.set\tnoreorder\n\tlw\t$21,5*4($29)\n\tlw\t$20,4*4($29)\n\tlw\t$19,3*4($29)\n\tlw\t$18,2*4($29)\n\tlw\t$17,1*4($29)\n\tlw\t$16,0*4($29)\n\tjr\t$31\n\taddu $29,6*4\n.end\tbn_mul_comba8\n\n.align\t5\n.globl\tbn_mul_comba4\n.ent\tbn_mul_comba4\nbn_mul_comba4:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$8,0($6)\n\tlw\t$13,4($5)\n\tlw\t$14,2*4($5)\n\tmultu\t($12,$8)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tlw\t$15,3*4($5)\n\tlw\t$9,4($6)\n\tlw\t$10,2*4($6)\n\tlw\t$11,3*4($6)\n\tmflo\t($2,$12,$8)\n\tmfhi\t($3,$12,$8)\n\tsw\t$2,0($4)\n\n\tmultu\t($12,$9)\t\t# mul_add_c(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$8)\t\t# mul_add_c(a[1],b[0],c2,c3,c1);\n\taddu\t$7,$25,$1\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsw\t$3,4($4)\n\n\tmflo\t($24,$14,$8)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:36", "text": "sw\t$2,0($4)\n\n\tmultu\t($12,$9)\t\t# mul_add_c(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$8)\t\t# mul_add_c(a[1],b[0],c2,c3,c1);\n\taddu\t$7,$25,$1\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsw\t$3,4($4)\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($13,$9)\t\t# mul_add_c(a[1],b[1],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tmflo\t($24,$13,$9)\n\tmfhi\t($25,$13,$9)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($12,$10)\t\t# mul_add_c(a[0],b[2],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$12,$10)\n\tmfhi\t($25,$12,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($12,$11)\t\t# mul_add_c(a[0],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,2*4($4)\n\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:37", "text": "addu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,2*4($4)\n\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tmultu\t($15,$8)\t\t# mul_add_c(a[3],b[0],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($15,$9)\t\t# mul_add_c(a[3],b[1],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,3*4($4)\n\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$13,$11)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:38", "text": "sw\t$2,3*4($4)\n\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$13,$11)\n\tmfhi\t($25,$13,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$11)\t\t# mul_add_c(a[2],b[3],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,4*4($4)\n\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tmultu\t($15,$10)\t\t# mul_add_c(a[3],b[2],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($15,$11)\t\t# mul_add_c(a[3],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,5*4($4)\n\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsw\t$2,6*4($4)\n\tsw\t$3,7*4($4)\n\n\t.set\tnoreorder\n\tjr\t$31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:39", "text": "addu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($15,$11)\t\t# mul_add_c(a[3],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,5*4($4)\n\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsw\t$2,6*4($4)\n\tsw\t$3,7*4($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_mul_comba4\n\n.align\t5\n.globl\tbn_sqr_comba8\n.ent\tbn_sqr_comba8\nbn_sqr_comba8:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$13,4($5)\n\tlw\t$14,2*4($5)\n\tlw\t$15,3*4($5)\n\n\tmultu\t($12,$12)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tlw\t$8,4*4($5)\n\tlw\t$9,5*4($5)\n\tlw\t$10,6*4($5)\n\tlw\t$11,7*4($5)\n\tmflo\t($2,$12,$12)\n\tmfhi\t($3,$12,$12)\n\tsw\t$2,0($4)\n\n\tmultu\t($12,$13)\t\t# mul_add_c2(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$13)\n\tmfhi\t($25,$12,$13)\n\tslt\t$2,$25,$0\n\tsll\t$25,1\n\t multu\t($14,$12)\t\t# mul_add_c2(a[2],b[0],c3,c1,c2);\n\tslt\t$6,$24,$0\n\taddu\t$25,$6\n\tsll\t$24,1\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\taddu\t$7,$25,$1\n\tsw\t$3,4($4)\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\taddu\t$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:40", "text": "sw\t$2,0($4)\n\n\tmultu\t($12,$13)\t\t# mul_add_c2(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$13)\n\tmfhi\t($25,$12,$13)\n\tslt\t$2,$25,$0\n\tsll\t$25,1\n\t multu\t($14,$12)\t\t# mul_add_c2(a[2],b[0],c3,c1,c2);\n\tslt\t$6,$24,$0\n\taddu\t$25,$6\n\tsll\t$24,1\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\taddu\t$7,$25,$1\n\tsw\t$3,4($4)\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($13,$13)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$13,$13)\n\tmfhi\t($25,$13,$13)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($12,$15)\t\t# mul_add_c2(a[0],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,2*4($4)\n\tmflo\t($24,$12,$15)\n\tmfhi\t($25,$12,$15)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($13,$14)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$13,$14)\n\tmfhi\t($25,$13,$14)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($8,$12)\t\t# forward multiplication", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:41", "text": "sw\t$7,2*4($4)\n\tmflo\t($24,$12,$15)\n\tmfhi\t($25,$12,$15)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($13,$14)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$13,$14)\n\tmfhi\t($25,$13,$14)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($8,$12)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$8,$12)\n\tmfhi\t($25,$8,$12)\n\tsw\t$2,3*4($4)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($15,$13)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$14)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:42", "text": "addu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$14)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$14,$14)\n\tmfhi\t($25,$14,$14)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($12,$9)\t\t# mul_add_c2(a[0],b[5],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,4*4($4)\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($13,$8)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($14,$15)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$14,$15)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:43", "text": "sltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($14,$15)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$14,$15)\n\tmfhi\t($25,$14,$15)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($10,$12)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$10,$12)\n\tmfhi\t($25,$10,$12)\n\tsw\t$7,5*4($4)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($9,$13)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$9,$13)\n\tmfhi\t($25,$9,$13)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($8,$14)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:44", "text": "addu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$9,$13)\n\tmfhi\t($25,$9,$13)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($8,$14)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$8,$14)\n\tmfhi\t($25,$8,$14)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($15,$15)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$15,$15)\n\tmfhi\t($25,$15,$15)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($12,$11)\t\t# mul_add_c2(a[0],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,6*4($4)\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($13,$10)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:45", "text": "mfhi\t($25,$15,$15)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($12,$11)\t\t# mul_add_c2(a[0],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,6*4($4)\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($13,$10)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$9)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($15,$8)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($11,$13)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:46", "text": "addu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($15,$8)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($11,$13)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$11,$13)\n\tmfhi\t($25,$11,$13)\n\tsw\t$3,7*4($4)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($10,$14)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$10,$14)\n\tmfhi\t($25,$10,$14)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($9,$15)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$9,$15)\n\tmfhi\t($25,$9,$15)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:47", "text": "addu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$10,$14)\n\tmfhi\t($25,$10,$14)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($9,$15)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$9,$15)\n\tmfhi\t($25,$9,$15)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($8,$8)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$8,$8)\n\tmfhi\t($25,$8,$8)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($14,$11)\t\t# mul_add_c2(a[2],b[7],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,8*4($4)\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($15,$10)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\taddu\t$2,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:48", "text": "sltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,8*4($4)\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($15,$10)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($8,$9)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$8,$9)\n\tmfhi\t($25,$8,$9)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($11,$15)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$11,$15)\n\tmfhi\t($25,$11,$15)\n\tsw\t$2,9*4($4)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($10,$8)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:49", "text": "addu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$11,$15)\n\tmfhi\t($25,$11,$15)\n\tsw\t$2,9*4($4)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($10,$8)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$10,$8)\n\tmfhi\t($25,$10,$8)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($9,$9)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$1,$7,$1\n\taddu\t$7,$25\n\taddu\t$2,$1\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$9,$9)\n\tmfhi\t($25,$9,$9)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($8,$11)\t\t# mul_add_c2(a[4],b[7],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,10*4($4)\n\tmflo\t($24,$8,$11)\n\tmfhi\t($25,$8,$11)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($9,$10)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:50", "text": "sltu\t$1,$3,$24\n\t multu\t($8,$11)\t\t# mul_add_c2(a[4],b[7],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,10*4($4)\n\tmflo\t($24,$8,$11)\n\tmfhi\t($25,$8,$11)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($9,$10)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$9,$10)\n\tmfhi\t($25,$9,$10)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($11,$9)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$1,$2,$1\n\taddu\t$2,$25\n\taddu\t$3,$1\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$11,$9)\n\tmfhi\t($25,$11,$9)\n\tsw\t$7,11*4($4)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($10,$10)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$10,$10)\n\tmfhi\t($25,$10,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($10,$11)\t\t# mul_add_c2(a[6],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:51", "text": "sltu\t$1,$2,$24\n\t multu\t($10,$10)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$10,$10)\n\tmfhi\t($25,$10,$10)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($10,$11)\t\t# mul_add_c2(a[6],b[7],c2,c3,c1);\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsltu\t$1,$3,$25\n\taddu\t$7,$1\n\tsw\t$2,12*4($4)\n\tmflo\t($24,$10,$11)\n\tmfhi\t($25,$10,$11)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($11,$11)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$11,$11)\n\tmfhi\t($25,$11,$11)\n\tsw\t$3,13*4($4)\n\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsw\t$7,14*4($4)\n\tsw\t$2,15*4($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_sqr_comba8\n\n.align\t5\n.globl\tbn_sqr_comba4\n.ent\tbn_sqr_comba4\nbn_sqr_comba4:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$13,4($5)\n\tmultu\t($12,$12)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tlw\t$14,2*4($5)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:52", "text": "sltu\t$1,$7,$24\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsw\t$7,14*4($4)\n\tsw\t$2,15*4($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_sqr_comba8\n\n.align\t5\n.globl\tbn_sqr_comba4\n.ent\tbn_sqr_comba4\nbn_sqr_comba4:\n\t.set\treorder\n\tlw\t$12,0($5)\n\tlw\t$13,4($5)\n\tmultu\t($12,$12)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tlw\t$14,2*4($5)\n\tlw\t$15,3*4($5)\n\tmflo\t($2,$12,$12)\n\tmfhi\t($3,$12,$12)\n\tsw\t$2,0($4)\n\n\tmultu\t($12,$13)\t\t# mul_add_c2(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$13)\n\tmfhi\t($25,$12,$13)\n\tslt\t$2,$25,$0\n\tsll\t$25,1\n\t multu\t($14,$12)\t\t# mul_add_c2(a[2],b[0],c3,c1,c2);\n\tslt\t$6,$24,$0\n\taddu\t$25,$6\n\tsll\t$24,1\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\taddu\t$7,$25,$1\n\tsw\t$3,4($4)\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tmflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($13,$13)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$13,$13)\n\tmfhi\t($25,$13,$13)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($12,$15)\t\t# mul_add_c2(a[0],b[3],c1,c2,c3);\n\taddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:53", "text": "mflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($13,$13)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$13,$13)\n\tmfhi\t($25,$13,$13)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($12,$15)\t\t# mul_add_c2(a[0],b[3],c1,c2,c3);\n\taddu\t$25,$1\n\taddu\t$2,$25\n\tsltu\t$1,$2,$25\n\taddu\t$3,$1\n\tsw\t$7,2*4($4)\n\tmflo\t($24,$12,$15)\n\tmfhi\t($25,$12,$15)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($13,$14)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$7,$3,$1\n\taddu\t$3,$25\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$13,$14)\n\tmfhi\t($25,$13,$14)\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($15,$13)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\tsw\t$2,3*4($4)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$14)\t\t# forward multiplication\n\taddu\t$3,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:54", "text": "addu\t$2,$24\n\tsltu\t$1,$2,$24\n\t multu\t($15,$13)\t\t# forward multiplication\n\taddu\t$2,$24\n\taddu\t$1,$25\n\tsltu\t$24,$2,$24\n\taddu\t$3,$1\n\taddu\t$25,$24\n\tsltu\t$1,$3,$1\n\taddu\t$3,$25\n\taddu\t$7,$1\n\tsltu\t$25,$3,$25\n\taddu\t$7,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\tsw\t$2,3*4($4)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$14)\t\t# forward multiplication\n\taddu\t$3,$24\n\taddu\t$1,$25\n\tsltu\t$24,$3,$24\n\taddu\t$7,$1\n\taddu\t$25,$24\n\tsltu\t$2,$7,$1\n\taddu\t$7,$25\n\tsltu\t$25,$7,$25\n\taddu\t$2,$25\n\tmflo\t($24,$14,$14)\n\tmfhi\t($25,$14,$14)\n\taddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t multu\t($14,$15)\t\t# mul_add_c2(a[2],b[3],c3,c1,c2);\n\taddu\t$25,$1\n\taddu\t$7,$25\n\tsltu\t$1,$7,$25\n\taddu\t$2,$1\n\tsw\t$3,4*4($4)\n\tmflo\t($24,$14,$15)\n\tmfhi\t($25,$14,$15)\n\taddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($15,$15)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$15,$15)\n\tmfhi\t($25,$15,$15)\n\tsw\t$7,5*4($4)\n\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\taddu\t$25,$1\n\taddu\t$3,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S:55", "text": "addu\t$7,$24\n\tsltu\t$1,$7,$24\n\t multu\t($15,$15)\t\t# forward multiplication\n\taddu\t$7,$24\n\taddu\t$1,$25\n\tsltu\t$24,$7,$24\n\taddu\t$2,$1\n\taddu\t$25,$24\n\tsltu\t$3,$2,$1\n\taddu\t$2,$25\n\tsltu\t$25,$2,$25\n\taddu\t$3,$25\n\tmflo\t($24,$15,$15)\n\tmfhi\t($25,$15,$15)\n\tsw\t$7,5*4($4)\n\n\taddu\t$2,$24\n\tsltu\t$1,$2,$24\n\taddu\t$25,$1\n\taddu\t$3,$25\n\tsw\t$2,6*4($4)\n\tsw\t$3,7*4($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_sqr_comba4", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.S", "line_start": 2161, "line_end": 2187}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.inc:1", "text": "# $NetBSD: mips.inc,v 1.1 2025/07/17 14:25:32 christos Exp $\n\n.ifndef MIPS_LE\n\n.\tif empty(MACHINE_ARCH:M*el)\nMIPS_LE=0\n.\telse\nMIPS_LE=1\n.\tendif\n\n.\tif (!empty(MACHINE_ARCH:Mmipsn64*) && empty(COPTS:M-mabi=*32*)) || \\\n\t   (!empty(MACHINE_ARCH:Mmips64*) && !empty(COPTS:M-mabi=*64*))\nMIPS_64=64\n.\telse\nMIPS_64=\n.\tendif\n\n.endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips.inc", "line_start": 1, "line_end": 18}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:1", "text": "#include \"mips_arch.h\"\n\n#if defined(_MIPS_ARCH_MIPS64R6)\n# define ddivu(rs,rt)\n# define mfqt(rd,rs,rt)\tddivu\trd,rs,rt\n# define mfrm(rd,rs,rt)\tdmodu\trd,rs,rt\n#elif defined(_MIPS_ARCH_MIPS32R6)\n# define divu(rs,rt)\n# define mfqt(rd,rs,rt)\tdivu\trd,rs,rt\n# define mfrm(rd,rs,rt)\tmodu\trd,rs,rt\n#else\n# define ddivu(rs,rt)\tddivu\t$0,rs,rt\n# define mfqt(rd,rs,rt)\tmflo\trd\n# define mfrm(rd,rs,rt)\tmfhi\trd\n#endif\n\n.rdata\n.asciiz\t\"mips3.s, Version 1.2\"\n.asciiz\t\"MIPS II/III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>\"\n\n.text\n.set\tnoat\n\n.align\t5\n.globl\tbn_mul_add_words\n.ent\tbn_mul_add_words\nbn_mul_add_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_mul_add_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_add_words\n\n.align\t5\n.ent\tbn_mul_add_words_internal\nbn_mul_add_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_add_words_tail\n\n.L_bn_mul_add_words_loop:\n\tld\t$12,0($5)\n\tdmultu\t($12,$7)\n\tld\t$13,0($4)\n\tld\t$14,8($5)\n\tld\t$15,8($4)\n\tld\t$8,2*8($5)\n\tld\t$9,2*8($4)\n\tdaddu\t$13,$2\n\tsltu\t$2,$13,$2\t# All manuals say it \"compares 32-bit\n\t\t\t\t# values\", but it seems to work fine\n\t\t\t\t# even on 64-bit registers.\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$13,$1\n\tdaddu\t$2,$12\n\t dmultu\t($14,$7)\n\tsltu\t$1,$13,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:2", "text": "beqz\t$8,.L_bn_mul_add_words_tail\n\n.L_bn_mul_add_words_loop:\n\tld\t$12,0($5)\n\tdmultu\t($12,$7)\n\tld\t$13,0($4)\n\tld\t$14,8($5)\n\tld\t$15,8($4)\n\tld\t$8,2*8($5)\n\tld\t$9,2*8($4)\n\tdaddu\t$13,$2\n\tsltu\t$2,$13,$2\t# All manuals say it \"compares 32-bit\n\t\t\t\t# values\", but it seems to work fine\n\t\t\t\t# even on 64-bit registers.\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$13,$1\n\tdaddu\t$2,$12\n\t dmultu\t($14,$7)\n\tsltu\t$1,$13,$1\n\tsd\t$13,0($4)\n\tdaddu\t$2,$1\n\n\tld\t$10,3*8($5)\n\tld\t$11,3*8($4)\n\tdaddu\t$15,$2\n\tsltu\t$2,$15,$2\n\tmflo\t($1,$14,$7)\n\tmfhi\t($14,$14,$7)\n\tdaddu\t$15,$1\n\tdaddu\t$2,$14\n\t dmultu\t($8,$7)\n\tsltu\t$1,$15,$1\n\tsd\t$15,8($4)\n\tdaddu\t$2,$1\n\n\tsubu\t$6,4\n\tdaddu $4,4*8\n\tdaddu $5,4*8\n\tdaddu\t$9,$2\n\tsltu\t$2,$9,$2\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\tdaddu\t$9,$1\n\tdaddu\t$2,$8\n\t dmultu\t($10,$7)\n\tsltu\t$1,$9,$1\n\tsd\t$9,-2*8($4)\n\tdaddu\t$2,$1\n\n\n\tand\t$8,$6,$3\n\tdaddu\t$11,$2\n\tsltu\t$2,$11,$2\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\tdaddu\t$11,$1\n\tdaddu\t$2,$10\n\tsltu\t$1,$11,$1\n\tsd\t$11,-8($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:3", "text": "sltu\t$2,$9,$2\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\tdaddu\t$9,$1\n\tdaddu\t$2,$8\n\t dmultu\t($10,$7)\n\tsltu\t$1,$9,$1\n\tsd\t$9,-2*8($4)\n\tdaddu\t$2,$1\n\n\n\tand\t$8,$6,$3\n\tdaddu\t$11,$2\n\tsltu\t$2,$11,$2\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\tdaddu\t$11,$1\n\tdaddu\t$2,$10\n\tsltu\t$1,$11,$1\n\tsd\t$11,-8($4)\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_mul_add_words_loop\n\tdaddu\t$2,$1\n\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\tnop\n\n.L_bn_mul_add_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tdmultu\t($12,$7)\n\tld\t$13,0($4)\n\tsubu\t$6,1\n\tdaddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$13,$1\n\tdaddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsd\t$13,0($4)\n\tdaddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tld\t$12,8($5)\n\tdmultu\t($12,$7)\n\tld\t$13,8($4)\n\tsubu\t$6,1\n\tdaddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$13,$1\n\tdaddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsd\t$13,8($4)\n\tdaddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tld\t$12,2*8($5)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:4", "text": "sd\t$13,0($4)\n\tdaddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tld\t$12,8($5)\n\tdmultu\t($12,$7)\n\tld\t$13,8($4)\n\tsubu\t$6,1\n\tdaddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$13,$1\n\tdaddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsd\t$13,8($4)\n\tdaddu\t$2,$1\n\tbeqz\t$6,.L_bn_mul_add_words_return\n\n\tld\t$12,2*8($5)\n\tdmultu\t($12,$7)\n\tld\t$13,2*8($4)\n\tdaddu\t$13,$2\n\tsltu\t$2,$13,$2\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$13,$1\n\tdaddu\t$2,$12\n\tsltu\t$1,$13,$1\n\tsd\t$13,2*8($4)\n\tdaddu\t$2,$1\n\n.L_bn_mul_add_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_add_words_internal\n\n.align\t5\n.globl\tbn_mul_words\n.ent\tbn_mul_words\nbn_mul_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_mul_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_words\n\n.align\t5\n.ent\tbn_mul_words_internal\nbn_mul_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_words_tail\n\n.L_bn_mul_words_loop:\n\tld\t$12,0($5)\n\tdmultu\t($12,$7)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:5", "text": ".ent\tbn_mul_words\nbn_mul_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_mul_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_words\n\n.align\t5\n.ent\tbn_mul_words_internal\nbn_mul_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_mul_words_tail\n\n.L_bn_mul_words_loop:\n\tld\t$12,0($5)\n\tdmultu\t($12,$7)\n\tld\t$14,8($5)\n\tld\t$8,2*8($5)\n\tld\t$10,3*8($5)\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$2,$1\n\tsltu\t$13,$2,$1\n\t dmultu\t($14,$7)\n\tsd\t$2,0($4)\n\tdaddu\t$2,$13,$12\n\n\tsubu\t$6,4\n\tdaddu $4,4*8\n\tdaddu $5,4*8\n\tmflo\t($1,$14,$7)\n\tmfhi\t($14,$14,$7)\n\tdaddu\t$2,$1\n\tsltu\t$15,$2,$1\n\t dmultu\t($8,$7)\n\tsd\t$2,-3*8($4)\n\tdaddu\t$2,$15,$14\n\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\tdaddu\t$2,$1\n\tsltu\t$9,$2,$1\n\t dmultu\t($10,$7)\n\tsd\t$2,-2*8($4)\n\tdaddu\t$2,$9,$8\n\n\tand\t$8,$6,$3\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\tdaddu\t$2,$1\n\tsltu\t$11,$2,$1\n\tsd\t$2,-8($4)\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_mul_words_loop\n\tdaddu\t$2,$11,$10", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:6", "text": "daddu\t$2,$15,$14\n\n\tmflo\t($1,$8,$7)\n\tmfhi\t($8,$8,$7)\n\tdaddu\t$2,$1\n\tsltu\t$9,$2,$1\n\t dmultu\t($10,$7)\n\tsd\t$2,-2*8($4)\n\tdaddu\t$2,$9,$8\n\n\tand\t$8,$6,$3\n\tmflo\t($1,$10,$7)\n\tmfhi\t($10,$10,$7)\n\tdaddu\t$2,$1\n\tsltu\t$11,$2,$1\n\tsd\t$2,-8($4)\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_mul_words_loop\n\tdaddu\t$2,$11,$10\n\n\tbeqz\t$6,.L_bn_mul_words_return\n\tnop\n\n.L_bn_mul_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tdmultu\t($12,$7)\n\tsubu\t$6,1\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsd\t$2,0($4)\n\tdaddu\t$2,$13,$12\n\tbeqz\t$6,.L_bn_mul_words_return\n\n\tld\t$12,8($5)\n\tdmultu\t($12,$7)\n\tsubu\t$6,1\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsd\t$2,8($4)\n\tdaddu\t$2,$13,$12\n\tbeqz\t$6,.L_bn_mul_words_return\n\n\tld\t$12,2*8($5)\n\tdmultu\t($12,$7)\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsd\t$2,2*8($4)\n\tdaddu\t$2,$13,$12\n\n.L_bn_mul_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:7", "text": "mfhi\t($12,$12,$7)\n\tdaddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsd\t$2,8($4)\n\tdaddu\t$2,$13,$12\n\tbeqz\t$6,.L_bn_mul_words_return\n\n\tld\t$12,2*8($5)\n\tdmultu\t($12,$7)\n\tmflo\t($1,$12,$7)\n\tmfhi\t($12,$12,$7)\n\tdaddu\t$2,$1\n\tsltu\t$13,$2,$1\n\tsd\t$2,2*8($4)\n\tdaddu\t$2,$13,$12\n\n.L_bn_mul_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_mul_words_internal\n\n.align\t5\n.globl\tbn_sqr_words\n.ent\tbn_sqr_words\nbn_sqr_words:\n\t.set\tnoreorder\n\tbgtz\t$6,bn_sqr_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_sqr_words\n\n.align\t5\n.ent\tbn_sqr_words_internal\nbn_sqr_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$8,$6,$3\n\tbeqz\t$8,.L_bn_sqr_words_tail\n\n.L_bn_sqr_words_loop:\n\tld\t$12,0($5)\n\tdmultu\t($12,$12)\n\tld\t$14,8($5)\n\tld\t$8,2*8($5)\n\tld\t$10,3*8($5)\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,0($4)\n\tsd\t$12,8($4)\n\n\tdmultu\t($14,$14)\n\tsubu\t$6,4\n\tdaddu $4,8*8\n\tdaddu $5,4*8\n\tmflo\t($15,$14,$14)\n\tmfhi\t($14,$14,$14)\n\tsd\t$15,-6*8($4)\n\tsd\t$14,-5*8($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:8", "text": ".L_bn_sqr_words_loop:\n\tld\t$12,0($5)\n\tdmultu\t($12,$12)\n\tld\t$14,8($5)\n\tld\t$8,2*8($5)\n\tld\t$10,3*8($5)\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,0($4)\n\tsd\t$12,8($4)\n\n\tdmultu\t($14,$14)\n\tsubu\t$6,4\n\tdaddu $4,8*8\n\tdaddu $5,4*8\n\tmflo\t($15,$14,$14)\n\tmfhi\t($14,$14,$14)\n\tsd\t$15,-6*8($4)\n\tsd\t$14,-5*8($4)\n\n\tdmultu\t($8,$8)\n\tmflo\t($9,$8,$8)\n\tmfhi\t($8,$8,$8)\n\tsd\t$9,-4*8($4)\n\tsd\t$8,-3*8($4)\n\n\n\tdmultu\t($10,$10)\n\tand\t$8,$6,$3\n\tmflo\t($11,$10,$10)\n\tmfhi\t($10,$10,$10)\n\tsd\t$11,-2*8($4)\n\n\t.set\tnoreorder\n\tbgtz\t$8,.L_bn_sqr_words_loop\n\tsd\t$10,-8($4)\n\n\tbeqz\t$6,.L_bn_sqr_words_return\n\tnop\n\n.L_bn_sqr_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tdmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,0($4)\n\tsd\t$12,8($4)\n\tbeqz\t$6,.L_bn_sqr_words_return\n\n\tld\t$12,8($5)\n\tdmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,2*8($4)\n\tsd\t$12,3*8($4)\n\tbeqz\t$6,.L_bn_sqr_words_return", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:9", "text": ".L_bn_sqr_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tdmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,0($4)\n\tsd\t$12,8($4)\n\tbeqz\t$6,.L_bn_sqr_words_return\n\n\tld\t$12,8($5)\n\tdmultu\t($12,$12)\n\tsubu\t$6,1\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,2*8($4)\n\tsd\t$12,3*8($4)\n\tbeqz\t$6,.L_bn_sqr_words_return\n\n\tld\t$12,2*8($5)\n\tdmultu\t($12,$12)\n\tmflo\t($13,$12,$12)\n\tmfhi\t($12,$12,$12)\n\tsd\t$13,4*8($4)\n\tsd\t$12,5*8($4)\n\n.L_bn_sqr_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n\n.end\tbn_sqr_words_internal\n\n.align\t5\n.globl\tbn_add_words\n.ent\tbn_add_words\nbn_add_words:\n\t.set\tnoreorder\n\tbgtz\t$7,bn_add_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_add_words\n\n.align\t5\n.ent\tbn_add_words_internal\nbn_add_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_add_words_tail\n\n.L_bn_add_words_loop:\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tsubu\t$7,4\n\tld\t$13,8($5)\n\tand\t$1,$7,$3", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:10", "text": "bgtz\t$7,bn_add_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_add_words\n\n.align\t5\n.ent\tbn_add_words_internal\nbn_add_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_add_words_tail\n\n.L_bn_add_words_loop:\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tsubu\t$7,4\n\tld\t$13,8($5)\n\tand\t$1,$7,$3\n\tld\t$14,2*8($5)\n\tdaddu $6,4*8\n\tld\t$15,3*8($5)\n\tdaddu $4,4*8\n\tld\t$9,-3*8($6)\n\tdaddu $5,4*8\n\tld\t$10,-2*8($6)\n\tld\t$11,-8($6)\n\tdaddu\t$8,$12\n\tsltu\t$24,$8,$12\n\tdaddu\t$12,$8,$2\n\tsltu\t$2,$12,$8\n\tsd\t$12,-4*8($4)\n\tdaddu\t$2,$24\n\n\tdaddu\t$9,$13\n\tsltu\t$25,$9,$13\n\tdaddu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsd\t$13,-3*8($4)\n\tdaddu\t$2,$25\n\n\tdaddu\t$10,$14\n\tsltu\t$24,$10,$14\n\tdaddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsd\t$14,-2*8($4)\n\tdaddu\t$2,$24\n\n\tdaddu\t$11,$15\n\tsltu\t$25,$11,$15\n\tdaddu\t$15,$11,$2\n\tsltu\t$2,$15,$11\n\tsd\t$15,-8($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_add_words_loop\n\tdaddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_add_words_return", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:11", "text": "daddu\t$2,$25\n\n\tdaddu\t$10,$14\n\tsltu\t$24,$10,$14\n\tdaddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsd\t$14,-2*8($4)\n\tdaddu\t$2,$24\n\n\tdaddu\t$11,$15\n\tsltu\t$25,$11,$15\n\tdaddu\t$15,$11,$2\n\tsltu\t$2,$15,$11\n\tsd\t$15,-8($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_add_words_loop\n\tdaddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_add_words_return\n\tnop\n\n.L_bn_add_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tdaddu\t$8,$12\n\tsubu\t$7,1\n\tsltu\t$24,$8,$12\n\tdaddu\t$12,$8,$2\n\tsltu\t$2,$12,$8\n\tsd\t$12,0($4)\n\tdaddu\t$2,$24\n\tbeqz\t$7,.L_bn_add_words_return\n\n\tld\t$13,8($5)\n\tld\t$9,8($6)\n\tdaddu\t$9,$13\n\tsubu\t$7,1\n\tsltu\t$25,$9,$13\n\tdaddu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsd\t$13,8($4)\n\tdaddu\t$2,$25\n\tbeqz\t$7,.L_bn_add_words_return\n\n\tld\t$14,2*8($5)\n\tld\t$10,2*8($6)\n\tdaddu\t$10,$14\n\tsltu\t$24,$10,$14\n\tdaddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsd\t$14,2*8($4)\n\tdaddu\t$2,$24\n\n.L_bn_add_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:12", "text": "daddu\t$13,$9,$2\n\tsltu\t$2,$13,$9\n\tsd\t$13,8($4)\n\tdaddu\t$2,$25\n\tbeqz\t$7,.L_bn_add_words_return\n\n\tld\t$14,2*8($5)\n\tld\t$10,2*8($6)\n\tdaddu\t$10,$14\n\tsltu\t$24,$10,$14\n\tdaddu\t$14,$10,$2\n\tsltu\t$2,$14,$10\n\tsd\t$14,2*8($4)\n\tdaddu\t$2,$24\n\n.L_bn_add_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n\n.end\tbn_add_words_internal\n\n.align\t5\n.globl\tbn_sub_words\n.ent\tbn_sub_words\nbn_sub_words:\n\t.set\tnoreorder\n\tbgtz\t$7,bn_sub_words_internal\n\tmove\t$2,$0\n\tjr\t$31\n\tmove\t$4,$0\n.end\tbn_sub_words\n\n.align\t5\n.ent\tbn_sub_words_internal\nbn_sub_words_internal:\n\t.set\treorder\n\tli\t$3,-4\n\tand\t$1,$7,$3\n\tbeqz\t$1,.L_bn_sub_words_tail\n\n.L_bn_sub_words_loop:\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tsubu\t$7,4\n\tld\t$13,8($5)\n\tand\t$1,$7,$3\n\tld\t$14,2*8($5)\n\tdaddu $6,4*8\n\tld\t$15,3*8($5)\n\tdaddu $4,4*8\n\tld\t$9,-3*8($6)\n\tdaddu $5,4*8\n\tld\t$10,-2*8($6)\n\tld\t$11,-8($6)\n\tsltu\t$24,$12,$8\n\tdsubu\t$8,$12,$8\n\tdsubu\t$12,$8,$2\n\tsgtu\t$2,$12,$8\n\tsd\t$12,-4*8($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:13", "text": ".L_bn_sub_words_loop:\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tsubu\t$7,4\n\tld\t$13,8($5)\n\tand\t$1,$7,$3\n\tld\t$14,2*8($5)\n\tdaddu $6,4*8\n\tld\t$15,3*8($5)\n\tdaddu $4,4*8\n\tld\t$9,-3*8($6)\n\tdaddu $5,4*8\n\tld\t$10,-2*8($6)\n\tld\t$11,-8($6)\n\tsltu\t$24,$12,$8\n\tdsubu\t$8,$12,$8\n\tdsubu\t$12,$8,$2\n\tsgtu\t$2,$12,$8\n\tsd\t$12,-4*8($4)\n\tdaddu\t$2,$24\n\n\tsltu\t$25,$13,$9\n\tdsubu\t$9,$13,$9\n\tdsubu\t$13,$9,$2\n\tsgtu\t$2,$13,$9\n\tsd\t$13,-3*8($4)\n\tdaddu\t$2,$25\n\n\n\tsltu\t$24,$14,$10\n\tdsubu\t$10,$14,$10\n\tdsubu\t$14,$10,$2\n\tsgtu\t$2,$14,$10\n\tsd\t$14,-2*8($4)\n\tdaddu\t$2,$24\n\n\tsltu\t$25,$15,$11\n\tdsubu\t$11,$15,$11\n\tdsubu\t$15,$11,$2\n\tsgtu\t$2,$15,$11\n\tsd\t$15,-8($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_sub_words_loop\n\tdaddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_sub_words_return\n\tnop\n\n.L_bn_sub_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tsubu\t$7,1\n\tsltu\t$24,$12,$8\n\tdsubu\t$8,$12,$8\n\tdsubu\t$12,$8,$2\n\tsgtu\t$2,$12,$8\n\tsd\t$12,0($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:14", "text": "sgtu\t$2,$15,$11\n\tsd\t$15,-8($4)\n\n\t.set\tnoreorder\n\tbgtz\t$1,.L_bn_sub_words_loop\n\tdaddu\t$2,$25\n\n\tbeqz\t$7,.L_bn_sub_words_return\n\tnop\n\n.L_bn_sub_words_tail:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tsubu\t$7,1\n\tsltu\t$24,$12,$8\n\tdsubu\t$8,$12,$8\n\tdsubu\t$12,$8,$2\n\tsgtu\t$2,$12,$8\n\tsd\t$12,0($4)\n\tdaddu\t$2,$24\n\tbeqz\t$7,.L_bn_sub_words_return\n\n\tld\t$13,8($5)\n\tsubu\t$7,1\n\tld\t$9,8($6)\n\tsltu\t$25,$13,$9\n\tdsubu\t$9,$13,$9\n\tdsubu\t$13,$9,$2\n\tsgtu\t$2,$13,$9\n\tsd\t$13,8($4)\n\tdaddu\t$2,$25\n\tbeqz\t$7,.L_bn_sub_words_return\n\n\tld\t$14,2*8($5)\n\tld\t$10,2*8($6)\n\tsltu\t$24,$14,$10\n\tdsubu\t$10,$14,$10\n\tdsubu\t$14,$10,$2\n\tsgtu\t$2,$14,$10\n\tsd\t$14,2*8($4)\n\tdaddu\t$2,$24\n\n.L_bn_sub_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_sub_words_internal\n\n#if 0\n/*\n * The bn_div_3_words entry point is reused for constant-time interface.\n * Implementation is retained as historical reference.\n */\n.align 5\n.globl\tbn_div_3_words\n.ent\tbn_div_3_words\nbn_div_3_words:\n\t.set\tnoreorder\n\tmove\t$7,$4\t\t# we know that bn_div_words does not", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:15", "text": "sd\t$14,2*8($4)\n\tdaddu\t$2,$24\n\n.L_bn_sub_words_return:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_sub_words_internal\n\n#if 0\n/*\n * The bn_div_3_words entry point is reused for constant-time interface.\n * Implementation is retained as historical reference.\n */\n.align 5\n.globl\tbn_div_3_words\n.ent\tbn_div_3_words\nbn_div_3_words:\n\t.set\tnoreorder\n\tmove\t$7,$4\t\t# we know that bn_div_words does not\n\t\t\t\t# touch $7, $10, $11 and preserves $6\n\t\t\t\t# so that we can save two arguments\n\t\t\t\t# and return address in registers\n\t\t\t\t# instead of stack:-)\n\n\tld\t$4,($7)\n\tmove\t$10,$5\n\tbne\t$4,$6,bn_div_3_words_internal\n\tld\t$5,-8($7)\n\tli\t$2,-1\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_3_words\n\n.align\t5\n.ent\tbn_div_3_words_internal\nbn_div_3_words_internal:\n\t.set\treorder\n\tmove\t$11,$31\n\tbal\tbn_div_words_internal\n\tmove\t$31,$11\n\tdmultu\t($10,$2)\n\tld\t$14,-2*8($7)\n\tmove\t$8,$0\n\tmfhi\t($13,$10,$2)\n\tmflo\t($12,$10,$2)\n\tsltu\t$24,$13,$5\n.L_bn_div_3_words_inner_loop:\n\tbnez\t$24,.L_bn_div_3_words_inner_loop_done\n\tsgeu\t$1,$14,$12\n\tseq\t$25,$13,$5\n\tand\t$1,$25\n\tsltu\t$15,$12,$10\n\tdaddu\t$5,$6\n\tdsubu\t$13,$15\n\tdsubu\t$12,$10\n\tsltu\t$24,$13,$5\n\tsltu\t$8,$5,$6\n\tor\t$24,$8\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:16", "text": "move\t$31,$11\n\tdmultu\t($10,$2)\n\tld\t$14,-2*8($7)\n\tmove\t$8,$0\n\tmfhi\t($13,$10,$2)\n\tmflo\t($12,$10,$2)\n\tsltu\t$24,$13,$5\n.L_bn_div_3_words_inner_loop:\n\tbnez\t$24,.L_bn_div_3_words_inner_loop_done\n\tsgeu\t$1,$14,$12\n\tseq\t$25,$13,$5\n\tand\t$1,$25\n\tsltu\t$15,$12,$10\n\tdaddu\t$5,$6\n\tdsubu\t$13,$15\n\tdsubu\t$12,$10\n\tsltu\t$24,$13,$5\n\tsltu\t$8,$5,$6\n\tor\t$24,$8\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_3_words_inner_loop\n\tdsubu\t$2,1\n\tdaddu\t$2,1\n\t.set\treorder\n.L_bn_div_3_words_inner_loop_done:\n\t.set\tnoreorder\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_3_words_internal\n#endif\n\n.align\t5\n.globl\tbn_div_words\n.ent\tbn_div_words\nbn_div_words:\n\t.set\tnoreorder\n\tbnez\t$6,bn_div_words_internal\n\tli\t$2,-1\t\t# I would rather signal div-by-zero\n\t\t\t\t# which can be done with 'break 7'\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_words\n\n.align\t5\n.ent\tbn_div_words_internal\nbn_div_words_internal:\n\tmove\t$3,$0\n\tbltz\t$6,.L_bn_div_words_body\n\tmove\t$25,$3\n\tdsll\t$6,1\n\tbgtz\t$6,.-4\n\taddu\t$25,1\n\n\t.set\treorder\n\tnegu\t$13,$25\n\tli\t$14,-1\n\tdsll\t$14,$13\n\tand\t$14,$4\n\tdsrl\t$1,$5,$13\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:17", "text": "move\t$4,$2\n.end\tbn_div_words\n\n.align\t5\n.ent\tbn_div_words_internal\nbn_div_words_internal:\n\tmove\t$3,$0\n\tbltz\t$6,.L_bn_div_words_body\n\tmove\t$25,$3\n\tdsll\t$6,1\n\tbgtz\t$6,.-4\n\taddu\t$25,1\n\n\t.set\treorder\n\tnegu\t$13,$25\n\tli\t$14,-1\n\tdsll\t$14,$13\n\tand\t$14,$4\n\tdsrl\t$1,$5,$13\n\t.set\tnoreorder\n\tbeqz\t$14,.+12\n\tnop\n\tbreak\t6\t\t# signal overflow\n\t.set\treorder\n\tdsll\t$4,$25\n\tdsll\t$5,$25\n\tor\t$4,$1\n.L_bn_div_words_body:\n\tdsrl\t$3,$6,4*8\t# bits\n\tsgeu\t$1,$4,$6\n\t.set\tnoreorder\n\tbeqz\t$1,.+12\n\tnop\n\tdsubu\t$4,$6\n\t.set\treorder\n\n\tli\t$8,-1\n\tdsrl\t$9,$4,4*8\t# bits\n\tdsrl\t$8,4*8\t# q=0xffffffff\n\tbeq\t$3,$9,.L_bn_div_words_skip_div1\n\tddivu\t($4,$3)\n\tmfqt\t($8,$4,$3)\n.L_bn_div_words_skip_div1:\n\tdmultu\t($6,$8)\n\tdsll\t$15,$4,4*8\t# bits\n\tdsrl\t$1,$5,4*8\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop1:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$2,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop1_done\n\tdsubu\t$13,$2\n\tdsubu\t$12,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:18", "text": "ddivu\t($4,$3)\n\tmfqt\t($8,$4,$3)\n.L_bn_div_words_skip_div1:\n\tdmultu\t($6,$8)\n\tdsll\t$15,$4,4*8\t# bits\n\tdsrl\t$1,$5,4*8\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop1:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$2,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop1_done\n\tdsubu\t$13,$2\n\tdsubu\t$12,$6\n\tb\t.L_bn_div_words_inner_loop1\n\tdsubu\t$8,1\n\t.set\treorder\n.L_bn_div_words_inner_loop1_done:\n\n\tdsll\t$5,4*8\t# bits\n\tdsubu\t$4,$15,$12\n\tdsll\t$2,$8,4*8\t# bits\n\n\tli\t$8,-1\n\tdsrl\t$9,$4,4*8\t# bits\n\tdsrl\t$8,4*8\t# q=0xffffffff\n\tbeq\t$3,$9,.L_bn_div_words_skip_div2\n\tddivu\t($4,$3)\n\tmfqt\t($8,$4,$3)\n.L_bn_div_words_skip_div2:\n\tdmultu\t($6,$8)\n\tdsll\t$15,$4,4*8\t# bits\n\tdsrl\t$1,$5,4*8\t# bits\n\tor\t$15,$1\n\tmflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop2:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$3,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop2_done\n\tdsubu\t$13,$3\n\tdsubu\t$12,$6\n\tb\t.L_bn_div_words_inner_loop2\n\tdsubu\t$8,1\n\t.set\treorder\n.L_bn_div_words_inner_loop2_done:\n\n\tdsubu\t$4,$15,$12\n\tor\t$2,$8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:19", "text": "mflo\t($12,$6,$8)\n\tmfhi\t($13,$6,$8)\n.L_bn_div_words_inner_loop2:\n\tsltu\t$14,$15,$12\n\tseq\t$24,$9,$13\n\tsltu\t$1,$9,$13\n\tand\t$14,$24\n\tsltu\t$3,$12,$6\n\tor\t$1,$14\n\t.set\tnoreorder\n\tbeqz\t$1,.L_bn_div_words_inner_loop2_done\n\tdsubu\t$13,$3\n\tdsubu\t$12,$6\n\tb\t.L_bn_div_words_inner_loop2\n\tdsubu\t$8,1\n\t.set\treorder\n.L_bn_div_words_inner_loop2_done:\n\n\tdsubu\t$4,$15,$12\n\tor\t$2,$8\n\tdsrl\t$3,$4,$25\t# $3 contains remainder if anybody wants it\n\tdsrl\t$6,$25\t\t# restore $6\n\n\t.set\tnoreorder\n\tmove\t$5,$3\n\tjr\t$31\n\tmove\t$4,$2\n.end\tbn_div_words_internal\n\n.align\t5\n.globl\tbn_mul_comba8\n.ent\tbn_mul_comba8\nbn_mul_comba8:\n\t.set\tnoreorder\n\t.frame\t$29,6*8,$31\n\t.mask\t0x003f0000,-8\n\tdsubu $29,6*8\n\tsd\t$21,5*8($29)\n\tsd\t$20,4*8($29)\n\tsd\t$19,3*8($29)\n\tsd\t$18,2*8($29)\n\tsd\t$17,1*8($29)\n\tsd\t$16,0*8($29)\n\n\t.set\treorder\n\tld\t$12,0($5)\t# If compiled with -mips3 option on\n\t\t\t\t# R5000 box assembler barks on this\n\t\t\t\t# 1ine with \"should not have mult/div\n\t\t\t\t# as last instruction in bb (R10K\n\t\t\t\t# bug)\" warning. If anybody out there\n\t\t\t\t# has a clue about how to circumvent\n\t\t\t\t# this do send me a note.\n\t\t\t\t#\t\t<appro@fy.chalmers.se>\n\n\tld\t$8,0($6)\n\tld\t$13,8($5)\n\tld\t$14,2*8($5)\n\tdmultu\t($12,$8)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tld\t$15,3*8($5)\n\tld\t$9,8($6)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:20", "text": "sd\t$18,2*8($29)\n\tsd\t$17,1*8($29)\n\tsd\t$16,0*8($29)\n\n\t.set\treorder\n\tld\t$12,0($5)\t# If compiled with -mips3 option on\n\t\t\t\t# R5000 box assembler barks on this\n\t\t\t\t# 1ine with \"should not have mult/div\n\t\t\t\t# as last instruction in bb (R10K\n\t\t\t\t# bug)\" warning. If anybody out there\n\t\t\t\t# has a clue about how to circumvent\n\t\t\t\t# this do send me a note.\n\t\t\t\t#\t\t<appro@fy.chalmers.se>\n\n\tld\t$8,0($6)\n\tld\t$13,8($5)\n\tld\t$14,2*8($5)\n\tdmultu\t($12,$8)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tld\t$15,3*8($5)\n\tld\t$9,8($6)\n\tld\t$10,2*8($6)\n\tld\t$11,3*8($6)\n\tmflo\t($2,$12,$8)\n\tmfhi\t($3,$12,$8)\n\n\tld\t$16,4*8($5)\n\tld\t$18,5*8($5)\n\tdmultu\t($12,$9)\t\t# mul_add_c(a[0],b[1],c2,c3,c1);\n\tld\t$20,6*8($5)\n\tld\t$5,7*8($5)\n\tld\t$17,4*8($6)\n\tld\t$19,5*8($6)\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$8)\t\t# mul_add_c(a[1],b[0],c2,c3,c1);\n\tdaddu\t$7,$25,$1\n\tld\t$21,6*8($6)\n\tld\t$6,7*8($6)\n\tsd\t$2,0($4)\t# r[0]=c1;\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsd\t$3,8($4)\t# r[1]=c2;\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($13,$9)\t\t# mul_add_c(a[1],b[1],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tmflo\t($24,$13,$9)\n\tmfhi\t($25,$13,$9)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:21", "text": "sd\t$2,0($4)\t# r[0]=c1;\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsd\t$3,8($4)\t# r[1]=c2;\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($13,$9)\t\t# mul_add_c(a[1],b[1],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tmflo\t($24,$13,$9)\n\tmfhi\t($25,$13,$9)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($12,$10)\t\t# mul_add_c(a[0],b[2],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$12,$10)\n\tmfhi\t($25,$12,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($12,$11)\t\t# mul_add_c(a[0],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,2*8($4)\t# r[2]=c3;\n\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($15,$8)\t\t# mul_add_c(a[3],b[0],c1,c2,c3);\n\tdaddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:22", "text": "sltu\t$1,$2,$24\n\tdmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($15,$8)\t\t# mul_add_c(a[3],b[0],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($16,$8)\t\t# mul_add_c(a[4],b[0],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,3*8($4)\t# r[3]=c1;\n\n\tmflo\t($24,$16,$8)\n\tmfhi\t($25,$16,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($15,$9)\t\t# mul_add_c(a[3],b[1],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:23", "text": "daddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$13,$11)\n\tmfhi\t($25,$13,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($12,$17)\t\t# mul_add_c(a[0],b[4],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$12,$17)\n\tmfhi\t($25,$12,$17)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($12,$19)\t\t# mul_add_c(a[0],b[5],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,4*8($4)\t# r[4]=c2;\n\n\tmflo\t($24,$12,$19)\n\tmfhi\t($25,$12,$19)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($13,$17)\t\t# mul_add_c(a[1],b[4],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$13,$17)\n\tmfhi\t($25,$13,$17)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($14,$11)\t\t# mul_add_c(a[2],b[3],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\tdaddu\t$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:24", "text": "mflo\t($24,$12,$19)\n\tmfhi\t($25,$12,$19)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($13,$17)\t\t# mul_add_c(a[1],b[4],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$13,$17)\n\tmfhi\t($25,$13,$17)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($14,$11)\t\t# mul_add_c(a[2],b[3],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($15,$10)\t\t# mul_add_c(a[3],b[2],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($16,$9)\t\t# mul_add_c(a[4],b[1],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$16,$9)\n\tmfhi\t($25,$16,$9)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($18,$8)\t\t# mul_add_c(a[5],b[0],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$18,$8)\n\tmfhi\t($25,$18,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($20,$8)\t\t# mul_add_c(a[6],b[0],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,5*8($4)\t# r[5]=c3;\n\n\tmflo\t($24,$20,$8)\n\tmfhi\t($25,$20,$8)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($18,$9)\t\t# mul_add_c(a[5],b[1],c1,c2,c3);", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:25", "text": "daddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$18,$8)\n\tmfhi\t($25,$18,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($20,$8)\t\t# mul_add_c(a[6],b[0],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,5*8($4)\t# r[5]=c3;\n\n\tmflo\t($24,$20,$8)\n\tmfhi\t($25,$20,$8)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($18,$9)\t\t# mul_add_c(a[5],b[1],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$18,$9)\n\tmfhi\t($25,$18,$9)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($16,$10)\t\t# mul_add_c(a[4],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$16,$10)\n\tmfhi\t($25,$16,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($15,$11)\t\t# mul_add_c(a[3],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($14,$17)\t\t# mul_add_c(a[2],b[4],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$14,$17)\n\tmfhi\t($25,$14,$17)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($13,$19)\t\t# mul_add_c(a[1],b[5],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$13,$19)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:26", "text": "daddu\t$7,$1\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($14,$17)\t\t# mul_add_c(a[2],b[4],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$14,$17)\n\tmfhi\t($25,$14,$17)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($13,$19)\t\t# mul_add_c(a[1],b[5],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$13,$19)\n\tmfhi\t($25,$13,$19)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($12,$21)\t\t# mul_add_c(a[0],b[6],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$12,$21)\n\tmfhi\t($25,$12,$21)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($12,$6)\t\t# mul_add_c(a[0],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,6*8($4)\t# r[6]=c1;\n\n\tmflo\t($24,$12,$6)\n\tmfhi\t($25,$12,$6)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$21)\t\t# mul_add_c(a[1],b[6],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$13,$21)\n\tmfhi\t($25,$13,$21)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($14,$19)\t\t# mul_add_c(a[2],b[5],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$19)\n\tmfhi\t($25,$14,$19)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:27", "text": "mfhi\t($25,$12,$6)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$21)\t\t# mul_add_c(a[1],b[6],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$13,$21)\n\tmfhi\t($25,$13,$21)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($14,$19)\t\t# mul_add_c(a[2],b[5],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$19)\n\tmfhi\t($25,$14,$19)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($15,$17)\t\t# mul_add_c(a[3],b[4],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$15,$17)\n\tmfhi\t($25,$15,$17)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($16,$11)\t\t# mul_add_c(a[4],b[3],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$16,$11)\n\tmfhi\t($25,$16,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($18,$10)\t\t# mul_add_c(a[5],b[2],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$18,$10)\n\tmfhi\t($25,$18,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($20,$9)\t\t# mul_add_c(a[6],b[1],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$20,$9)\n\tmfhi\t($25,$20,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($5,$8)\t\t# mul_add_c(a[7],b[0],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:28", "text": "daddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$18,$10)\n\tmfhi\t($25,$18,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($20,$9)\t\t# mul_add_c(a[6],b[1],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$20,$9)\n\tmfhi\t($25,$20,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($5,$8)\t\t# mul_add_c(a[7],b[0],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$5,$8)\n\tmfhi\t($25,$5,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($5,$9)\t\t# mul_add_c(a[7],b[1],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,7*8($4)\t# r[7]=c2;\n\n\tmflo\t($24,$5,$9)\n\tmfhi\t($25,$5,$9)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($20,$10)\t\t# mul_add_c(a[6],b[2],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$20,$10)\n\tmfhi\t($25,$20,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($18,$11)\t\t# mul_add_c(a[5],b[3],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$18,$11)\n\tmfhi\t($25,$18,$11)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($16,$17)\t\t# mul_add_c(a[4],b[4],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$16,$17)\n\tmfhi\t($25,$16,$17)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:29", "text": "mflo\t($24,$20,$10)\n\tmfhi\t($25,$20,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($18,$11)\t\t# mul_add_c(a[5],b[3],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$18,$11)\n\tmfhi\t($25,$18,$11)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($16,$17)\t\t# mul_add_c(a[4],b[4],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$16,$17)\n\tmfhi\t($25,$16,$17)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($15,$19)\t\t# mul_add_c(a[3],b[5],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$15,$19)\n\tmfhi\t($25,$15,$19)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($14,$21)\t\t# mul_add_c(a[2],b[6],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$14,$21)\n\tmfhi\t($25,$14,$21)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($13,$6)\t\t# mul_add_c(a[1],b[7],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$13,$6)\n\tmfhi\t($25,$13,$6)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($14,$6)\t\t# mul_add_c(a[2],b[7],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,8*8($4)\t# r[8]=c3;\n\n\tmflo\t($24,$14,$6)\n\tmfhi\t($25,$14,$6)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:30", "text": "dmultu\t($13,$6)\t\t# mul_add_c(a[1],b[7],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$13,$6)\n\tmfhi\t($25,$13,$6)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($14,$6)\t\t# mul_add_c(a[2],b[7],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,8*8($4)\t# r[8]=c3;\n\n\tmflo\t($24,$14,$6)\n\tmfhi\t($25,$14,$6)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($15,$21)\t\t# mul_add_c(a[3],b[6],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$15,$21)\n\tmfhi\t($25,$15,$21)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($16,$19)\t\t# mul_add_c(a[4],b[5],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$16,$19)\n\tmfhi\t($25,$16,$19)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($18,$17)\t\t# mul_add_c(a[5],b[4],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$18,$17)\n\tmfhi\t($25,$18,$17)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($20,$11)\t\t# mul_add_c(a[6],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$20,$11)\n\tmfhi\t($25,$20,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($5,$10)\t\t# mul_add_c(a[7],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:31", "text": "sltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$18,$17)\n\tmfhi\t($25,$18,$17)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($20,$11)\t\t# mul_add_c(a[6],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$20,$11)\n\tmfhi\t($25,$20,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($5,$10)\t\t# mul_add_c(a[7],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$5,$10)\n\tmfhi\t($25,$5,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($5,$11)\t\t# mul_add_c(a[7],b[3],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,9*8($4)\t# r[9]=c1;\n\n\tmflo\t($24,$5,$11)\n\tmfhi\t($25,$5,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($20,$17)\t\t# mul_add_c(a[6],b[4],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$20,$17)\n\tmfhi\t($25,$20,$17)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($18,$19)\t\t# mul_add_c(a[5],b[5],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$18,$19)\n\tmfhi\t($25,$18,$19)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($16,$21)\t\t# mul_add_c(a[4],b[6],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$16,$21)\n\tmfhi\t($25,$16,$21)\n\tdaddu\t$3,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:32", "text": "mfhi\t($25,$20,$17)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($18,$19)\t\t# mul_add_c(a[5],b[5],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$18,$19)\n\tmfhi\t($25,$18,$19)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($16,$21)\t\t# mul_add_c(a[4],b[6],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$16,$21)\n\tmfhi\t($25,$16,$21)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($15,$6)\t\t# mul_add_c(a[3],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$15,$6)\n\tmfhi\t($25,$15,$6)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($16,$6)\t\t# mul_add_c(a[4],b[7],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,10*8($4)\t# r[10]=c2;\n\n\tmflo\t($24,$16,$6)\n\tmfhi\t($25,$16,$6)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($18,$21)\t\t# mul_add_c(a[5],b[6],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$18,$21)\n\tmfhi\t($25,$18,$21)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($20,$19)\t\t# mul_add_c(a[6],b[5],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$20,$19)\n\tmfhi\t($25,$20,$19)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($5,$17)\t\t# mul_add_c(a[7],b[4],c3,c1,c2);\n\tdaddu\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:33", "text": "sltu\t$1,$7,$24\n\tdmultu\t($18,$21)\t\t# mul_add_c(a[5],b[6],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$18,$21)\n\tmfhi\t($25,$18,$21)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($20,$19)\t\t# mul_add_c(a[6],b[5],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$20,$19)\n\tmfhi\t($25,$20,$19)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($5,$17)\t\t# mul_add_c(a[7],b[4],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tmflo\t($24,$5,$17)\n\tmfhi\t($25,$5,$17)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($5,$19)\t\t# mul_add_c(a[7],b[5],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,11*8($4)\t# r[11]=c3;\n\n\tmflo\t($24,$5,$19)\n\tmfhi\t($25,$5,$19)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($20,$21)\t\t# mul_add_c(a[6],b[6],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$20,$21)\n\tmfhi\t($25,$20,$21)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($18,$6)\t\t# mul_add_c(a[5],b[7],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$18,$6)\n\tmfhi\t($25,$18,$6)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($20,$6)\t\t# mul_add_c(a[6],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:34", "text": "daddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$20,$21)\n\tmfhi\t($25,$20,$21)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($18,$6)\t\t# mul_add_c(a[5],b[7],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$18,$6)\n\tmfhi\t($25,$18,$6)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($20,$6)\t\t# mul_add_c(a[6],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,12*8($4)\t# r[12]=c1;\n\n\tmflo\t($24,$20,$6)\n\tmfhi\t($25,$20,$6)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($5,$21)\t\t# mul_add_c(a[7],b[6],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$5,$21)\n\tmfhi\t($25,$5,$21)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($5,$6)\t\t# mul_add_c(a[7],b[7],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,13*8($4)\t# r[13]=c2;\n\n\tmflo\t($24,$5,$6)\n\tmfhi\t($25,$5,$6)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsd\t$7,14*8($4)\t# r[14]=c3;\n\tsd\t$2,15*8($4)\t# r[15]=c1;\n\n\t.set\tnoreorder\n\tld\t$21,5*8($29)\n\tld\t$20,4*8($29)\n\tld\t$19,3*8($29)\n\tld\t$18,2*8($29)\n\tld\t$17,1*8($29)\n\tld\t$16,0*8($29)\n\tjr\t$31\n\tdaddu $29,6*8\n.end\tbn_mul_comba8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:35", "text": "mflo\t($24,$5,$6)\n\tmfhi\t($25,$5,$6)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsd\t$7,14*8($4)\t# r[14]=c3;\n\tsd\t$2,15*8($4)\t# r[15]=c1;\n\n\t.set\tnoreorder\n\tld\t$21,5*8($29)\n\tld\t$20,4*8($29)\n\tld\t$19,3*8($29)\n\tld\t$18,2*8($29)\n\tld\t$17,1*8($29)\n\tld\t$16,0*8($29)\n\tjr\t$31\n\tdaddu $29,6*8\n.end\tbn_mul_comba8\n\n.align\t5\n.globl\tbn_mul_comba4\n.ent\tbn_mul_comba4\nbn_mul_comba4:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$8,0($6)\n\tld\t$13,8($5)\n\tld\t$14,2*8($5)\n\tdmultu\t($12,$8)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tld\t$15,3*8($5)\n\tld\t$9,8($6)\n\tld\t$10,2*8($6)\n\tld\t$11,3*8($6)\n\tmflo\t($2,$12,$8)\n\tmfhi\t($3,$12,$8)\n\tsd\t$2,0($4)\n\n\tdmultu\t($12,$9)\t\t# mul_add_c(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$8)\t\t# mul_add_c(a[1],b[0],c2,c3,c1);\n\tdaddu\t$7,$25,$1\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsd\t$3,8($4)\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:36", "text": "mflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$8)\t\t# mul_add_c(a[1],b[0],c2,c3,c1);\n\tdaddu\t$7,$25,$1\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$8)\t\t# mul_add_c(a[2],b[0],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tsd\t$3,8($4)\n\n\tmflo\t($24,$14,$8)\n\tmfhi\t($25,$14,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($13,$9)\t\t# mul_add_c(a[1],b[1],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tmflo\t($24,$13,$9)\n\tmfhi\t($25,$13,$9)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($12,$10)\t\t# mul_add_c(a[0],b[2],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$12,$10)\n\tmfhi\t($25,$12,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($12,$11)\t\t# mul_add_c(a[0],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,2*8($4)\n\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$14,$9)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:37", "text": "sd\t$7,2*8($4)\n\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($13,$10)\t\t# mul_add_c(a[1],b[2],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$7,$3,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($14,$9)\t\t# mul_add_c(a[2],b[1],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdmultu\t($15,$8)\t\t# mul_add_c(a[3],b[0],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($15,$9)\t\t# mul_add_c(a[3],b[1],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,3*8($4)\n\n\tmflo\t($24,$15,$9)\n\tmfhi\t($25,$15,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$13,$11)\n\tmfhi\t($25,$13,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:38", "text": "mfhi\t($25,$15,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($14,$10)\t\t# mul_add_c(a[2],b[2],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$2,$7,$25\n\tmflo\t($24,$14,$10)\n\tmfhi\t($25,$14,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdmultu\t($13,$11)\t\t# mul_add_c(a[1],b[3],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$13,$11)\n\tmfhi\t($25,$13,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$11)\t\t# mul_add_c(a[2],b[3],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,4*8($4)\n\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdmultu\t($15,$10)\t\t# mul_add_c(a[3],b[2],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$3,$2,$25\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($15,$11)\t\t# mul_add_c(a[3],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,5*8($4)\n\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsd\t$2,6*8($4)\n\tsd\t$3,7*8($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_mul_comba4", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:39", "text": "daddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,5*8($4)\n\n\tmflo\t($24,$15,$11)\n\tmfhi\t($25,$15,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsd\t$2,6*8($4)\n\tsd\t$3,7*8($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_mul_comba4\n\n.align\t5\n.globl\tbn_sqr_comba8\n.ent\tbn_sqr_comba8\nbn_sqr_comba8:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$13,8($5)\n\tld\t$14,2*8($5)\n\tld\t$15,3*8($5)\n\n\tdmultu\t($12,$12)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tld\t$8,4*8($5)\n\tld\t$9,5*8($5)\n\tld\t$10,6*8($5)\n\tld\t$11,7*8($5)\n\tmflo\t($2,$12,$12)\n\tmfhi\t($3,$12,$12)\n\tsd\t$2,0($4)\n\n\tdmultu\t($12,$13)\t\t# mul_add_c2(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$13)\n\tmfhi\t($25,$12,$13)\n\tslt\t$2,$25,$0\n\tdsll\t$25,1\n\t dmultu\t($14,$12)\t\t# mul_add_c2(a[2],b[0],c3,c1,c2);\n\tslt\t$6,$24,$0\n\tdaddu\t$25,$6\n\tdsll\t$24,1\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdaddu\t$7,$25,$1\n\tsd\t$3,8($4)\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($13,$13)\t\t# forward multiplication\n\tdaddu\t$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:40", "text": "mflo\t($24,$12,$13)\n\tmfhi\t($25,$12,$13)\n\tslt\t$2,$25,$0\n\tdsll\t$25,1\n\t dmultu\t($14,$12)\t\t# mul_add_c2(a[2],b[0],c3,c1,c2);\n\tslt\t$6,$24,$0\n\tdaddu\t$25,$6\n\tdsll\t$24,1\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdaddu\t$7,$25,$1\n\tsd\t$3,8($4)\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($13,$13)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$13,$13)\n\tmfhi\t($25,$13,$13)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($12,$15)\t\t# mul_add_c2(a[0],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,2*8($4)\n\tmflo\t($24,$12,$15)\n\tmfhi\t($25,$12,$15)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($13,$14)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$13,$14)\n\tmfhi\t($25,$13,$14)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($8,$12)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:41", "text": "daddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($13,$14)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$13,$14)\n\tmfhi\t($25,$13,$14)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($8,$12)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$8,$12)\n\tmfhi\t($25,$8,$12)\n\tsd\t$2,3*8($4)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($15,$13)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$14)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$14,$14)\n\tmfhi\t($25,$14,$14)\n\tdaddu\t$3,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:42", "text": "sltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$14)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$14,$14)\n\tmfhi\t($25,$14,$14)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($12,$9)\t\t# mul_add_c2(a[0],b[5],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,4*8($4)\n\tmflo\t($24,$12,$9)\n\tmfhi\t($25,$12,$9)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($13,$8)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($14,$15)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$14,$15)\n\tmfhi\t($25,$14,$15)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:43", "text": "daddu\t$3,$25\n\tmflo\t($24,$13,$8)\n\tmfhi\t($25,$13,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($14,$15)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$14,$15)\n\tmfhi\t($25,$14,$15)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($10,$12)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$10,$12)\n\tmfhi\t($25,$10,$12)\n\tsd\t$7,5*8($4)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($9,$13)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$9,$13)\n\tmfhi\t($25,$9,$13)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($8,$14)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:44", "text": "daddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$9,$13)\n\tmfhi\t($25,$9,$13)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($8,$14)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$8,$14)\n\tmfhi\t($25,$8,$14)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($15,$15)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$15,$15)\n\tmfhi\t($25,$15,$15)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($12,$11)\t\t# mul_add_c2(a[0],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,6*8($4)\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($13,$10)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:45", "text": "dmultu\t($12,$11)\t\t# mul_add_c2(a[0],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,6*8($4)\n\tmflo\t($24,$12,$11)\n\tmfhi\t($25,$12,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($13,$10)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$13,$10)\n\tmfhi\t($25,$13,$10)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$9)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$14,$9)\n\tmfhi\t($25,$14,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($15,$8)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($11,$13)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:46", "text": "daddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$15,$8)\n\tmfhi\t($25,$15,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($11,$13)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$11,$13)\n\tmfhi\t($25,$11,$13)\n\tsd\t$3,7*8($4)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($10,$14)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$10,$14)\n\tmfhi\t($25,$10,$14)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($9,$15)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$9,$15)\n\tmfhi\t($25,$9,$15)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($8,$8)\t\t# forward multiplication", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:47", "text": "mflo\t($24,$10,$14)\n\tmfhi\t($25,$10,$14)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($9,$15)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$9,$15)\n\tmfhi\t($25,$9,$15)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($8,$8)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$8,$8)\n\tmfhi\t($25,$8,$8)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($14,$11)\t\t# mul_add_c2(a[2],b[7],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,8*8($4)\n\tmflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($15,$10)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($8,$9)\t\t# forward multiplication\n\tdaddu\t$2,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:48", "text": "mflo\t($24,$14,$11)\n\tmfhi\t($25,$14,$11)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($15,$10)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$15,$10)\n\tmfhi\t($25,$15,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($8,$9)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$8,$9)\n\tmfhi\t($25,$8,$9)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($11,$15)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$11,$15)\n\tmfhi\t($25,$11,$15)\n\tsd\t$2,9*8($4)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($10,$8)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$10,$8)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:49", "text": "daddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$11,$15)\n\tmfhi\t($25,$11,$15)\n\tsd\t$2,9*8($4)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($10,$8)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$10,$8)\n\tmfhi\t($25,$10,$8)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($9,$9)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$7,$1\n\tdaddu\t$7,$25\n\tdaddu\t$2,$1\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$9,$9)\n\tmfhi\t($25,$9,$9)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($8,$11)\t\t# mul_add_c2(a[4],b[7],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,10*8($4)\n\tmflo\t($24,$8,$11)\n\tmfhi\t($25,$8,$11)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($9,$10)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$9,$10)\n\tmfhi\t($25,$9,$10)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:50", "text": "daddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,10*8($4)\n\tmflo\t($24,$8,$11)\n\tmfhi\t($25,$8,$11)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($9,$10)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$9,$10)\n\tmfhi\t($25,$9,$10)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($11,$9)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$2,$1\n\tdaddu\t$2,$25\n\tdaddu\t$3,$1\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$11,$9)\n\tmfhi\t($25,$11,$9)\n\tsd\t$7,11*8($4)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($10,$10)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$10,$10)\n\tmfhi\t($25,$10,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($10,$11)\t\t# mul_add_c2(a[6],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,12*8($4)\n\tmflo\t($24,$10,$11)\n\tmfhi\t($25,$10,$11)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:51", "text": "daddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$10,$10)\n\tmfhi\t($25,$10,$10)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($10,$11)\t\t# mul_add_c2(a[6],b[7],c2,c3,c1);\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsltu\t$1,$3,$25\n\tdaddu\t$7,$1\n\tsd\t$2,12*8($4)\n\tmflo\t($24,$10,$11)\n\tmfhi\t($25,$10,$11)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($11,$11)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$11,$11)\n\tmfhi\t($25,$11,$11)\n\tsd\t$3,13*8($4)\n\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsd\t$7,14*8($4)\n\tsd\t$2,15*8($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_sqr_comba8\n\n.align\t5\n.globl\tbn_sqr_comba4\n.ent\tbn_sqr_comba4\nbn_sqr_comba4:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$13,8($5)\n\tdmultu\t($12,$12)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tld\t$14,2*8($5)\n\tld\t$15,3*8($5)\n\tmflo\t($2,$12,$12)\n\tmfhi\t($3,$12,$12)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:52", "text": "sd\t$7,14*8($4)\n\tsd\t$2,15*8($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_sqr_comba8\n\n.align\t5\n.globl\tbn_sqr_comba4\n.ent\tbn_sqr_comba4\nbn_sqr_comba4:\n\t.set\treorder\n\tld\t$12,0($5)\n\tld\t$13,8($5)\n\tdmultu\t($12,$12)\t\t# mul_add_c(a[0],b[0],c1,c2,c3);\n\tld\t$14,2*8($5)\n\tld\t$15,3*8($5)\n\tmflo\t($2,$12,$12)\n\tmfhi\t($3,$12,$12)\n\tsd\t$2,0($4)\n\n\tdmultu\t($12,$13)\t\t# mul_add_c2(a[0],b[1],c2,c3,c1);\n\tmflo\t($24,$12,$13)\n\tmfhi\t($25,$12,$13)\n\tslt\t$2,$25,$0\n\tdsll\t$25,1\n\t dmultu\t($14,$12)\t\t# mul_add_c2(a[2],b[0],c3,c1,c2);\n\tslt\t$6,$24,$0\n\tdaddu\t$25,$6\n\tdsll\t$24,1\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\tdaddu\t$7,$25,$1\n\tsd\t$3,8($4)\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tmflo\t($24,$14,$12)\n\tmfhi\t($25,$14,$12)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($13,$13)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$13,$13)\n\tmfhi\t($25,$13,$13)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($12,$15)\t\t# mul_add_c2(a[0],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:53", "text": "sltu\t$1,$7,$24\n\t dmultu\t($13,$13)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$13,$13)\n\tmfhi\t($25,$13,$13)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($12,$15)\t\t# mul_add_c2(a[0],b[3],c1,c2,c3);\n\tdaddu\t$25,$1\n\tdaddu\t$2,$25\n\tsltu\t$1,$2,$25\n\tdaddu\t$3,$1\n\tsd\t$7,2*8($4)\n\tmflo\t($24,$12,$15)\n\tmfhi\t($25,$12,$15)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($13,$14)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$7,$3,$1\n\tdaddu\t$3,$25\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$13,$14)\n\tmfhi\t($25,$13,$14)\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\t dmultu\t($15,$13)\t\t# forward multiplication\n\tdaddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\tsd\t$2,3*8($4)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$14)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:54", "text": "daddu\t$2,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$2,$24\n\tdaddu\t$3,$1\n\tdaddu\t$25,$24\n\tsltu\t$1,$3,$1\n\tdaddu\t$3,$25\n\tdaddu\t$7,$1\n\tsltu\t$25,$3,$25\n\tdaddu\t$7,$25\n\tmflo\t($24,$15,$13)\n\tmfhi\t($25,$15,$13)\n\tsd\t$2,3*8($4)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$14)\t\t# forward multiplication\n\tdaddu\t$3,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$3,$24\n\tdaddu\t$7,$1\n\tdaddu\t$25,$24\n\tsltu\t$2,$7,$1\n\tdaddu\t$7,$25\n\tsltu\t$25,$7,$25\n\tdaddu\t$2,$25\n\tmflo\t($24,$14,$14)\n\tmfhi\t($25,$14,$14)\n\tdaddu\t$3,$24\n\tsltu\t$1,$3,$24\n\t dmultu\t($14,$15)\t\t# mul_add_c2(a[2],b[3],c3,c1,c2);\n\tdaddu\t$25,$1\n\tdaddu\t$7,$25\n\tsltu\t$1,$7,$25\n\tdaddu\t$2,$1\n\tsd\t$3,4*8($4)\n\tmflo\t($24,$14,$15)\n\tmfhi\t($25,$14,$15)\n\tdaddu\t$7,$24\n\tsltu\t$1,$7,$24\n\t dmultu\t($15,$15)\t\t# forward multiplication\n\tdaddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$15,$15)\n\tmfhi\t($25,$15,$15)\n\tsd\t$7,5*8($4)\n\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsd\t$2,6*8($4)\n\tsd\t$3,7*8($4)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S:55", "text": "daddu\t$7,$24\n\tdaddu\t$1,$25\n\tsltu\t$24,$7,$24\n\tdaddu\t$2,$1\n\tdaddu\t$25,$24\n\tsltu\t$3,$2,$1\n\tdaddu\t$2,$25\n\tsltu\t$25,$2,$25\n\tdaddu\t$3,$25\n\tmflo\t($24,$15,$15)\n\tmfhi\t($25,$15,$15)\n\tsd\t$7,5*8($4)\n\n\tdaddu\t$2,$24\n\tsltu\t$1,$2,$24\n\tdaddu\t$25,$1\n\tdaddu\t$3,$25\n\tsd\t$2,6*8($4)\n\tsd\t$3,7*8($4)\n\n\t.set\tnoreorder\n\tjr\t$31\n\tnop\n.end\tbn_sqr_comba4", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/mips64.S", "line_start": 2161, "line_end": 2184}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:1", "text": "#include \"mips_arch.h\"\n\n#ifdef MIPSEB\n# define MSB 0\n# define LSB 7\n#else\n# define MSB 7\n# define LSB 0\n#endif\n\n.text\n.set\tnoat\n.set\tnoreorder\n\n.align\t5\n.globl\tpoly1305_init\n.ent\tpoly1305_init\npoly1305_init:\n\t.frame\t$29,0,$31\n\t.set\treorder\n\n\tsd\t$0,0($4)\n\tsd\t$0,8($4)\n\tsd\t$0,16($4)\n\n\tbeqz\t$5,.Lno_key\n\n#if defined(_MIPS_ARCH_MIPS64R6)\n\tld\t$8,0($5)\n\tld\t$9,8($5)\n#else\n\tldl\t$8,0+MSB($5)\n\tldl\t$9,8+MSB($5)\n\tldr\t$8,0+LSB($5)\n\tldr\t$9,8+LSB($5)\n#endif\n#ifdef\tMIPSEB\n# if defined(_MIPS_ARCH_MIPS64R2)\n\tdsbh\t$8,$8\t\t# byte swap\n\t dsbh\t$9,$9\n\tdshd\t$8,$8\n\t dshd\t$9,$9\n# else\n\tori\t$10,$0,0xFF\n\tdsll\t$1,$10,32\n\tor\t$10,$1\t\t# 0x000000FF000000FF\n\n\tand\t$11,$8,$10\t# byte swap\n\t and\t$2,$9,$10\n\tdsrl\t$1,$8,24\n\t dsrl\t$24,$9,24\n\tdsll\t$11,24\n\t dsll\t$2,24\n\tand\t$1,$10\n\t and\t$24,$10\n\tdsll\t$10,8\t\t\t# 0x0000FF000000FF00\n\tor\t$11,$1\n\t or\t$2,$24\n\tand\t$1,$8,$10\n\t and\t$24,$9,$10", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:2", "text": "dshd\t$8,$8\n\t dshd\t$9,$9\n# else\n\tori\t$10,$0,0xFF\n\tdsll\t$1,$10,32\n\tor\t$10,$1\t\t# 0x000000FF000000FF\n\n\tand\t$11,$8,$10\t# byte swap\n\t and\t$2,$9,$10\n\tdsrl\t$1,$8,24\n\t dsrl\t$24,$9,24\n\tdsll\t$11,24\n\t dsll\t$2,24\n\tand\t$1,$10\n\t and\t$24,$10\n\tdsll\t$10,8\t\t\t# 0x0000FF000000FF00\n\tor\t$11,$1\n\t or\t$2,$24\n\tand\t$1,$8,$10\n\t and\t$24,$9,$10\n\tdsrl\t$8,8\n\t dsrl\t$9,8\n\tdsll\t$1,8\n\t dsll\t$24,8\n\tand\t$8,$10\n\t and\t$9,$10\n\tor\t$11,$1\n\t or\t$2,$24\n\tor\t$8,$11\n\t or\t$9,$2\n\tdsrl\t$11,$8,32\n\t dsrl\t$2,$9,32\n\tdsll\t$8,32\n\t dsll\t$9,32\n\tor\t$8,$11\n\t or\t$9,$2\n# endif\n#endif\n\tli\t$10,1\n\tdsll\t$10,32\n\tdaddiu\t$10,-63\n\tdsll\t$10,28\n\tdaddiu\t$10,-1\t\t# 0ffffffc0fffffff\n\n\tand\t$8,$10\n\tdaddiu\t$10,-3\t\t# 0ffffffc0ffffffc\n\tand\t$9,$10\n\n\tsd\t$8,24($4)\n\tdsrl\t$10,$9,2\n\tsd\t$9,32($4)\n\tdaddu\t$10,$9\t\t# s1 = r1 + (r1 >> 2)\n\tsd\t$10,40($4)\n\n.Lno_key:\n\tli\t$2,0\t\t\t# return 0\n\tjr\t$31\n.end\tpoly1305_init\n.align\t5\n.globl\tpoly1305_blocks", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:3", "text": "daddiu\t$10,-63\n\tdsll\t$10,28\n\tdaddiu\t$10,-1\t\t# 0ffffffc0fffffff\n\n\tand\t$8,$10\n\tdaddiu\t$10,-3\t\t# 0ffffffc0ffffffc\n\tand\t$9,$10\n\n\tsd\t$8,24($4)\n\tdsrl\t$10,$9,2\n\tsd\t$9,32($4)\n\tdaddu\t$10,$9\t\t# s1 = r1 + (r1 >> 2)\n\tsd\t$10,40($4)\n\n.Lno_key:\n\tli\t$2,0\t\t\t# return 0\n\tjr\t$31\n.end\tpoly1305_init\n.align\t5\n.globl\tpoly1305_blocks\n.ent\tpoly1305_blocks\npoly1305_blocks:\n\t.set\tnoreorder\n\tdsrl\t$6,4\t\t\t# number of complete blocks\n\tbnez\t$6,poly1305_blocks_internal\n\tnop\n\tjr\t$31\n\tnop\n.end\tpoly1305_blocks\n\n.align\t5\n.ent\tpoly1305_blocks_internal\npoly1305_blocks_internal:\n\t.frame\t$29,6*8,$31\n\t.mask\t0x00030000,-8\n\t.set\tnoreorder\n\tdsubu\t$29,6*8\n\tsd\t$17,40($29)\n\tsd\t$16,32($29)\n\t.set\treorder\n\n\tld\t$12,0($4)\t\t# load hash value\n\tld\t$13,8($4)\n\tld\t$14,16($4)\n\n\tld\t$15,24($4)\t\t# load key\n\tld\t$16,32($4)\n\tld\t$17,40($4)\n\n.Loop:\n#if defined(_MIPS_ARCH_MIPS64R6)\n\tld\t$8,0($5)\t\t# load input\n\tld\t$9,8($5)\n#else\n\tldl\t$8,0+MSB($5)\t# load input\n\tldl\t$9,8+MSB($5)\n\tldr\t$8,0+LSB($5)\n\tldr\t$9,8+LSB($5)\n#endif\n\tdaddiu\t$6,-1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:4", "text": "ld\t$12,0($4)\t\t# load hash value\n\tld\t$13,8($4)\n\tld\t$14,16($4)\n\n\tld\t$15,24($4)\t\t# load key\n\tld\t$16,32($4)\n\tld\t$17,40($4)\n\n.Loop:\n#if defined(_MIPS_ARCH_MIPS64R6)\n\tld\t$8,0($5)\t\t# load input\n\tld\t$9,8($5)\n#else\n\tldl\t$8,0+MSB($5)\t# load input\n\tldl\t$9,8+MSB($5)\n\tldr\t$8,0+LSB($5)\n\tldr\t$9,8+LSB($5)\n#endif\n\tdaddiu\t$6,-1\n\tdaddiu\t$5,16\n#ifdef\tMIPSEB\n# if defined(_MIPS_ARCH_MIPS64R2)\n\tdsbh\t$8,$8\t\t# byte swap\n\t dsbh\t$9,$9\n\tdshd\t$8,$8\n\t dshd\t$9,$9\n# else\n\tori\t$10,$0,0xFF\n\tdsll\t$1,$10,32\n\tor\t$10,$1\t\t# 0x000000FF000000FF\n\n\tand\t$11,$8,$10\t# byte swap\n\t and\t$2,$9,$10\n\tdsrl\t$1,$8,24\n\t dsrl\t$24,$9,24\n\tdsll\t$11,24\n\t dsll\t$2,24\n\tand\t$1,$10\n\t and\t$24,$10\n\tdsll\t$10,8\t\t\t# 0x0000FF000000FF00\n\tor\t$11,$1\n\t or\t$2,$24\n\tand\t$1,$8,$10\n\t and\t$24,$9,$10\n\tdsrl\t$8,8\n\t dsrl\t$9,8\n\tdsll\t$1,8\n\t dsll\t$24,8\n\tand\t$8,$10\n\t and\t$9,$10\n\tor\t$11,$1\n\t or\t$2,$24\n\tor\t$8,$11\n\t or\t$9,$2\n\tdsrl\t$11,$8,32\n\t dsrl\t$2,$9,32\n\tdsll\t$8,32\n\t dsll\t$9,32\n\tor\t$8,$11", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:5", "text": "dsll\t$10,8\t\t\t# 0x0000FF000000FF00\n\tor\t$11,$1\n\t or\t$2,$24\n\tand\t$1,$8,$10\n\t and\t$24,$9,$10\n\tdsrl\t$8,8\n\t dsrl\t$9,8\n\tdsll\t$1,8\n\t dsll\t$24,8\n\tand\t$8,$10\n\t and\t$9,$10\n\tor\t$11,$1\n\t or\t$2,$24\n\tor\t$8,$11\n\t or\t$9,$2\n\tdsrl\t$11,$8,32\n\t dsrl\t$2,$9,32\n\tdsll\t$8,32\n\t dsll\t$9,32\n\tor\t$8,$11\n\t or\t$9,$2\n# endif\n#endif\n\tdaddu\t$12,$8\t\t# accumulate input\n\tdaddu\t$13,$9\n\tsltu\t$10,$12,$8\n\tsltu\t$11,$13,$9\n\tdaddu\t$13,$10\n\n\tdmultu\t($15,$12)\t\t# h0*r0\n\t daddu\t$14,$7\n\t sltu\t$10,$13,$10\n\tmflo\t($8,$15,$12)\n\tmfhi\t($9,$15,$12)\n\n\tdmultu\t($17,$13)\t\t# h1*5*r1\n\t daddu\t$10,$11\n\t daddu\t$14,$10\n\tmflo\t($10,$17,$13)\n\tmfhi\t($11,$17,$13)\n\n\tdmultu\t($16,$12)\t\t# h0*r1\n\t daddu\t$8,$10\n\t daddu\t$9,$11\n\tmflo\t($1,$16,$12)\n\tmfhi\t($25,$16,$12)\n\t sltu\t$10,$8,$10\n\t daddu\t$9,$10\n\n\tdmultu\t($15,$13)\t\t# h1*r0\n\t daddu\t$9,$1\n\t sltu\t$1,$9,$1\n\tmflo\t($10,$15,$13)\n\tmfhi\t($11,$15,$13)\n\t daddu\t$25,$1\n\n\tdmultu\t($17,$14)\t\t# h2*5*r1\n\t daddu\t$9,$10\n\t daddu\t$25,$11\n\tmflo\t($1,$17,$14)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:6", "text": "dmultu\t($16,$12)\t\t# h0*r1\n\t daddu\t$8,$10\n\t daddu\t$9,$11\n\tmflo\t($1,$16,$12)\n\tmfhi\t($25,$16,$12)\n\t sltu\t$10,$8,$10\n\t daddu\t$9,$10\n\n\tdmultu\t($15,$13)\t\t# h1*r0\n\t daddu\t$9,$1\n\t sltu\t$1,$9,$1\n\tmflo\t($10,$15,$13)\n\tmfhi\t($11,$15,$13)\n\t daddu\t$25,$1\n\n\tdmultu\t($17,$14)\t\t# h2*5*r1\n\t daddu\t$9,$10\n\t daddu\t$25,$11\n\tmflo\t($1,$17,$14)\n\n\tdmultu\t($15,$14)\t\t# h2*r0\n\t sltu\t$10,$9,$10\n\t daddu\t$25,$10\n\tmflo\t($2,$15,$14)\n\n\tdaddu\t$9,$1\n\tdaddu\t$25,$2\n\tsltu\t$1,$9,$1\n\tdaddu\t$25,$1\n\n\tli\t$10,-4\t\t# final reduction\n\tand\t$10,$25\n\tdsrl\t$11,$25,2\n\tandi\t$14,$25,3\n\tdaddu\t$10,$11\n\tdaddu\t$12,$8,$10\n\tsltu\t$10,$12,$10\n\tdaddu\t$13,$9,$10\n\tsltu\t$10,$13,$10\n\tdaddu\t$14,$14,$10\n\n\tbnez\t$6,.Loop\n\n\tsd\t$12,0($4)\t\t# store hash value\n\tsd\t$13,8($4)\n\tsd\t$14,16($4)\n\n\t.set\tnoreorder\n\tld\t$17,40($29)\t\t# epilogue\n\tld\t$16,32($29)\n\tjr\t$31\n\tdaddu\t$29,6*8\n.end\tpoly1305_blocks_internal\n.align\t5\n.globl\tpoly1305_emit\n.ent\tpoly1305_emit\npoly1305_emit:\n\t.frame\t$29,0,$31\n\t.set\treorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:7", "text": "daddu\t$14,$14,$10\n\n\tbnez\t$6,.Loop\n\n\tsd\t$12,0($4)\t\t# store hash value\n\tsd\t$13,8($4)\n\tsd\t$14,16($4)\n\n\t.set\tnoreorder\n\tld\t$17,40($29)\t\t# epilogue\n\tld\t$16,32($29)\n\tjr\t$31\n\tdaddu\t$29,6*8\n.end\tpoly1305_blocks_internal\n.align\t5\n.globl\tpoly1305_emit\n.ent\tpoly1305_emit\npoly1305_emit:\n\t.frame\t$29,0,$31\n\t.set\treorder\n\n\tld\t$10,0($4)\n\tld\t$11,8($4)\n\tld\t$1,16($4)\n\n\tdaddiu\t$8,$10,5\t\t# compare to modulus\n\tsltiu\t$2,$8,5\n\tdaddu\t$9,$11,$2\n\tsltu\t$2,$9,$2\n\tdaddu\t$1,$1,$2\n\n\tdsrl\t$1,2\t\t\t# see if it carried/borrowed\n\tdsubu\t$1,$0,$1\n\tnor\t$2,$0,$1\n\n\tand\t$8,$1\n\tand\t$10,$2\n\tand\t$9,$1\n\tand\t$11,$2\n\tor\t$8,$10\n\tor\t$9,$11\n\n\tlwu\t$10,0($6)\t\t# load nonce\n\tlwu\t$11,4($6)\n\tlwu\t$1,8($6)\n\tlwu\t$2,12($6)\n\tdsll\t$11,32\n\tdsll\t$2,32\n\tor\t$10,$11\n\tor\t$1,$2\n\n\tdaddu\t$8,$10\t\t# accumulate nonce\n\tdaddu\t$9,$1\n\tsltu\t$10,$8,$10\n\tdaddu\t$9,$10\n\n\tdsrl\t$10,$8,8\t\t# write mac value\n\tdsrl\t$11,$8,16\n\tdsrl\t$1,$8,24\n\tsb\t$8,0($5)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:8", "text": "or\t$9,$11\n\n\tlwu\t$10,0($6)\t\t# load nonce\n\tlwu\t$11,4($6)\n\tlwu\t$1,8($6)\n\tlwu\t$2,12($6)\n\tdsll\t$11,32\n\tdsll\t$2,32\n\tor\t$10,$11\n\tor\t$1,$2\n\n\tdaddu\t$8,$10\t\t# accumulate nonce\n\tdaddu\t$9,$1\n\tsltu\t$10,$8,$10\n\tdaddu\t$9,$10\n\n\tdsrl\t$10,$8,8\t\t# write mac value\n\tdsrl\t$11,$8,16\n\tdsrl\t$1,$8,24\n\tsb\t$8,0($5)\n\tdsrl\t$2,$8,32\n\tsb\t$10,1($5)\n\tdsrl\t$10,$8,40\n\tsb\t$11,2($5)\n\tdsrl\t$11,$8,48\n\tsb\t$1,3($5)\n\tdsrl\t$1,$8,56\n\tsb\t$2,4($5)\n\tdsrl\t$2,$9,8\n\tsb\t$10,5($5)\n\tdsrl\t$10,$9,16\n\tsb\t$11,6($5)\n\tdsrl\t$11,$9,24\n\tsb\t$1,7($5)\n\n\tsb\t$9,8($5)\n\tdsrl\t$1,$9,32\n\tsb\t$2,9($5)\n\tdsrl\t$2,$9,40\n\tsb\t$10,10($5)\n\tdsrl\t$10,$9,48\n\tsb\t$11,11($5)\n\tdsrl\t$11,$9,56\n\tsb\t$1,12($5)\n\tsb\t$2,13($5)\n\tsb\t$10,14($5)\n\tsb\t$11,15($5)\n\n\tjr\t$31\n.end\tpoly1305_emit\n.rdata\n.asciiz\t\"Poly1305 for MIPS64, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 281, "line_end": 333}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S:9", "text": "dsrl\t$10,$9,48\n\tsb\t$11,11($5)\n\tdsrl\t$11,$9,56\n\tsb\t$1,12($5)\n\tsb\t$2,13($5)\n\tsb\t$10,14($5)\n\tsb\t$11,15($5)\n\n\tjr\t$31\n.end\tpoly1305_emit\n.rdata\n.asciiz\t\"Poly1305 for MIPS64, CRYPTOGAMS by <appro@openssl.org>\"\n.align\t2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305-mips64.S", "line_start": 321, "line_end": 333}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305.inc:1", "text": ".include \"mips.inc\"\n\n.if ${MIPS_LE} && ${MIPS_64} == \"64\"\n\n.PATH.S: ${.PARSEDIR}\n\nPOLY1305_SRCS = poly1305-mips64.S\nPOLY1305_CPPFLAGS+=-DPOLY1305_ASM\n\n.endif\n\n.include \"../../poly1305.inc\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/poly1305.inc", "line_start": 1, "line_end": 12}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha.inc:1", "text": ".include \"mips.inc\"\n\n.if ${MIPS_LE}\n.PATH.S: ${.PARSEDIR}\n\nSHA_SRCS += sha1-mips${MIPS_64}.S\nSHA_SRCS += sha512-mips${MIPS_64}.S\n\nSHACPPFLAGS = -DSHA1_ASM\n.endif\n\n.include \"../../sha.inc\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha.inc", "line_start": 1, "line_end": 12}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S:1", "text": "#include \"mips_arch.h\"\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n.align\t5\n.globl\tsha1_block_data_order\n.ent\tsha1_block_data_order\nsha1_block_data_order:\n\t.frame\t$29,16*4,$31\n\t.mask\t0xc0ff0000,-4\n\t.set\tnoreorder\n\tsubu $29,16*4\n\tsw\t$31,(16-1)*4($29)\n\tsw\t$30,(16-2)*4($29)\n\tsw\t$23,(16-3)*4($29)\n\tsw\t$22,(16-4)*4($29)\n\tsw\t$21,(16-5)*4($29)\n\tsw\t$20,(16-6)*4($29)\n\tsw\t$19,(16-7)*4($29)\n\tsw\t$18,(16-8)*4($29)\n\tsw\t$17,(16-9)*4($29)\n\tsw\t$16,(16-10)*4($29)\n\tsll $6,6\n\taddu $6,$5\n\tsw\t$6,0($29)\n\tlw\t$1,0($4)\n\tlw\t$2,4($4)\n\tlw\t$3,8($4)\n\tlw\t$7,12($4)\n\tb\t.Loop\n\tlw\t$24,16($4)\n.align\t4\n.Loop:\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlui\t$31,0x5a82\n\tlw\t$8,($5)\n\tori\t$31,0x7999\t# K_00_19\n#else\n\tlwl\t$8,3($5)\n\tlui\t$31,0x5a82\n\tlwr\t$8,0($5)\n\tori\t$31,0x7999\t# K_00_19\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$8,$8\t# byte swap(0)\n\trotr\t$8,$8,16\n#else\n\tsrl\t$25,$8,24\t# byte swap(0)\n\tsrl\t$6,$8,8\n\tandi\t$30,$8,0xFF00\n\tsll\t$8,$8,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$8,$25\n\tor\t$6,$30\n\tor\t$8,$6\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S:75", "text": "xor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$23,$20\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$23,31\n\t addu\t$23,$23\n\tsrl\t$7,$7,2\n\taddu\t$2,$22\n\t or\t$23,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t lw\t$8,0($4)\n\taddu\t$1,$31\t\t# 79\n\t lw\t$9,4($4)\n\trotr\t$6,$2,27\n\t lw\t$10,8($4)\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t lw\t$11,12($4)\n\txor\t$25,$3\n\taddu\t$1,$23\n\t lw\t$12,16($4)\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t lw\t$8,0($4)\n\tsll\t$25,$2,5\t# 79\n\taddu\t$1,$31\n\t lw\t$9,4($4)\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t lw\t$10,8($4)\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t lw\t$11,12($4)\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t lw\t$12,16($4)\n\tsrl\t$3,$3,2\n\taddu\t$1,$23\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\taddu $5,64\n\tlw\t$6,0($29)\n\n\taddu\t$1,$8\n\taddu\t$2,$9\n\tsw\t$1,0($4)\n\taddu\t$3,$10\n\taddu\t$7,$11\n\tsw\t$2,4($4)\n\taddu\t$24,$12\n\tsw\t$3,8($4)\n\tsw\t$7,12($4)\n\tsw\t$24,16($4)\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S", "line_start": 2961, "line_end": 3020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S:76", "text": "lw\t$12,16($4)\n\tsrl\t$3,$3,2\n\taddu\t$1,$23\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\taddu $5,64\n\tlw\t$6,0($29)\n\n\taddu\t$1,$8\n\taddu\t$2,$9\n\tsw\t$1,0($4)\n\taddu\t$3,$10\n\taddu\t$7,$11\n\tsw\t$2,4($4)\n\taddu\t$24,$12\n\tsw\t$3,8($4)\n\tsw\t$7,12($4)\n\tsw\t$24,16($4)\n\t.set\tnoreorder\n\tbne\t$5,$6,.Loop\n\tnop\n\n\t.set\tnoreorder\n\tlw\t$31,(16-1)*4($29)\n\tlw\t$30,(16-2)*4($29)\n\tlw\t$23,(16-3)*4($29)\n\tlw\t$22,(16-4)*4($29)\n\tlw\t$21,(16-5)*4($29)\n\tlw\t$20,(16-6)*4($29)\n\tlw\t$19,(16-7)*4($29)\n\tlw\t$18,(16-8)*4($29)\n\tlw\t$17,(16-9)*4($29)\n\tlw\t$16,(16-10)*4($29)\n\tjr\t$31\n\taddu $29,16*4\n.end\tsha1_block_data_order\n.rdata\n.asciiz\t\"SHA1 for MIPS, CRYPTOGAMS by <appro@openssl.org>\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips.S", "line_start": 3001, "line_end": 3039}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:1", "text": "#include \"mips_arch.h\"\n\n.text\n\n.set\tnoat\n.set\tnoreorder\n.align\t5\n.globl\tsha1_block_data_order\n.ent\tsha1_block_data_order\nsha1_block_data_order:\n\t.frame\t$29,16*8,$31\n\t.mask\t0xc0ff0000,-8\n\t.set\tnoreorder\n\tdsubu $29,16*8\n\tsd\t$31,(16-1)*8($29)\n\tsd\t$30,(16-2)*8($29)\n\tsd\t$23,(16-3)*8($29)\n\tsd\t$22,(16-4)*8($29)\n\tsd\t$21,(16-5)*8($29)\n\tsd\t$20,(16-6)*8($29)\n\tsd\t$19,(16-7)*8($29)\n\tsd\t$18,(16-8)*8($29)\n\tsd\t$17,(16-9)*8($29)\n\tsd\t$16,(16-10)*8($29)\n\tdsll $6,6\n\tdaddu $6,$5\n\tsd\t$6,0($29)\n\tlw\t$1,0($4)\n\tlw\t$2,4($4)\n\tlw\t$3,8($4)\n\tlw\t$7,12($4)\n\tb\t.Loop\n\tlw\t$24,16($4)\n.align\t4\n.Loop:\n\t.set\treorder\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\tlui\t$31,0x5a82\n\tlw\t$8,($5)\n\tori\t$31,0x7999\t# K_00_19\n#else\n\tlwl\t$8,3($5)\n\tlui\t$31,0x5a82\n\tlwr\t$8,0($5)\n\tori\t$31,0x7999\t# K_00_19\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$8,$8\t# byte swap(0)\n\trotr\t$8,$8,16\n#else\n\tsrl\t$25,$8,24\t# byte swap(0)\n\tsrl\t$6,$8,8\n\tandi\t$30,$8,0xFF00\n\tsll\t$8,$8,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$8,$25\n\tor\t$6,$30\n\tor\t$8,$6\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:2", "text": "#else\n\tlwl\t$8,3($5)\n\tlui\t$31,0x5a82\n\tlwr\t$8,0($5)\n\tori\t$31,0x7999\t# K_00_19\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$8,$8\t# byte swap(0)\n\trotr\t$8,$8,16\n#else\n\tsrl\t$25,$8,24\t# byte swap(0)\n\tsrl\t$6,$8,8\n\tandi\t$30,$8,0xFF00\n\tsll\t$8,$8,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$8,$25\n\tor\t$6,$30\n\tor\t$8,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 0\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\tand\t$25,$2\n\taddu\t$24,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$9,1*4($5)\n#else\n\t lwl\t$9,1*4+3($5)\n\t lwr\t$9,1*4+0($5)\n#endif\n\txor\t$25,$7\n\taddu\t$24,$8\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t lwl\t$9,1*4+3($5)\n\tsll\t$25,$1,5\t# 0\n\taddu\t$24,$31\n\t lwr\t$9,1*4+0($5)\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\tsll\t$30,$2,30\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\txor\t$25,$7\n\taddu\t$24,$8\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$9,$9\t# byte swap(1)\n\trotr\t$9,$9,16\n#else\n\tsrl\t$25,$9,24\t# byte swap(1)\n\tsrl\t$6,$9,8\n\tandi\t$30,$9,0xFF00", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:3", "text": "lwr\t$9,1*4+0($5)\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\tsll\t$30,$2,30\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\txor\t$25,$7\n\taddu\t$24,$8\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$9,$9\t# byte swap(1)\n\trotr\t$9,$9,16\n#else\n\tsrl\t$25,$9,24\t# byte swap(1)\n\tsrl\t$6,$9,8\n\tandi\t$30,$9,0xFF00\n\tsll\t$9,$9,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$9,$25\n\tor\t$6,$30\n\tor\t$9,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 1\n\txor\t$25,$2,$3\n\trotr\t$6,$24,27\n\tand\t$25,$1\n\taddu\t$7,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$10,2*4($5)\n#else\n\t lwl\t$10,2*4+3($5)\n\t lwr\t$10,2*4+0($5)\n#endif\n\txor\t$25,$3\n\taddu\t$7,$9\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t lwl\t$10,2*4+3($5)\n\tsll\t$25,$24,5\t# 1\n\taddu\t$7,$31\n\t lwr\t$10,2*4+0($5)\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\taddu\t$7,$9\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:4", "text": "addu\t$7,$9\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t lwl\t$10,2*4+3($5)\n\tsll\t$25,$24,5\t# 1\n\taddu\t$7,$31\n\t lwr\t$10,2*4+0($5)\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\taddu\t$7,$9\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$10,$10\t# byte swap(2)\n\trotr\t$10,$10,16\n#else\n\tsrl\t$25,$10,24\t# byte swap(2)\n\tsrl\t$6,$10,8\n\tandi\t$30,$10,0xFF00\n\tsll\t$10,$10,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$10,$25\n\tor\t$6,$30\n\tor\t$10,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 2\n\txor\t$25,$1,$2\n\trotr\t$6,$7,27\n\tand\t$25,$24\n\taddu\t$3,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$11,3*4($5)\n#else\n\t lwl\t$11,3*4+3($5)\n\t lwr\t$11,3*4+0($5)\n#endif\n\txor\t$25,$2\n\taddu\t$3,$10\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t lwl\t$11,3*4+3($5)\n\tsll\t$25,$7,5\t# 2\n\taddu\t$3,$31\n\t lwr\t$11,3*4+0($5)\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\tsll\t$30,$24,30", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:5", "text": "#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$11,3*4($5)\n#else\n\t lwl\t$11,3*4+3($5)\n\t lwr\t$11,3*4+0($5)\n#endif\n\txor\t$25,$2\n\taddu\t$3,$10\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t lwl\t$11,3*4+3($5)\n\tsll\t$25,$7,5\t# 2\n\taddu\t$3,$31\n\t lwr\t$11,3*4+0($5)\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\tsll\t$30,$24,30\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\txor\t$25,$2\n\taddu\t$3,$10\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$11,$11\t# byte swap(3)\n\trotr\t$11,$11,16\n#else\n\tsrl\t$25,$11,24\t# byte swap(3)\n\tsrl\t$6,$11,8\n\tandi\t$30,$11,0xFF00\n\tsll\t$11,$11,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$11,$25\n\tor\t$6,$30\n\tor\t$11,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 3\n\txor\t$25,$24,$1\n\trotr\t$6,$3,27\n\tand\t$25,$7\n\taddu\t$2,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$12,4*4($5)\n#else\n\t lwl\t$12,4*4+3($5)\n\t lwr\t$12,4*4+0($5)\n#endif\n\txor\t$25,$1\n\taddu\t$2,$11\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t lwl\t$12,4*4+3($5)\n\tsll\t$25,$3,5\t# 3", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:6", "text": "#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 3\n\txor\t$25,$24,$1\n\trotr\t$6,$3,27\n\tand\t$25,$7\n\taddu\t$2,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$12,4*4($5)\n#else\n\t lwl\t$12,4*4+3($5)\n\t lwr\t$12,4*4+0($5)\n#endif\n\txor\t$25,$1\n\taddu\t$2,$11\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t lwl\t$12,4*4+3($5)\n\tsll\t$25,$3,5\t# 3\n\taddu\t$2,$31\n\t lwr\t$12,4*4+0($5)\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\tsll\t$30,$7,30\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\txor\t$25,$1\n\taddu\t$2,$11\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$12,$12\t# byte swap(4)\n\trotr\t$12,$12,16\n#else\n\tsrl\t$25,$12,24\t# byte swap(4)\n\tsrl\t$6,$12,8\n\tandi\t$30,$12,0xFF00\n\tsll\t$12,$12,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$12,$25\n\tor\t$6,$30\n\tor\t$12,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 4\n\txor\t$25,$7,$24\n\trotr\t$6,$2,27\n\tand\t$25,$3\n\taddu\t$1,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$13,5*4($5)\n#else\n\t lwl\t$13,5*4+3($5)\n\t lwr\t$13,5*4+0($5)\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:7", "text": "andi\t$30,$12,0xFF00\n\tsll\t$12,$12,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$12,$25\n\tor\t$6,$30\n\tor\t$12,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 4\n\txor\t$25,$7,$24\n\trotr\t$6,$2,27\n\tand\t$25,$3\n\taddu\t$1,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$13,5*4($5)\n#else\n\t lwl\t$13,5*4+3($5)\n\t lwr\t$13,5*4+0($5)\n#endif\n\txor\t$25,$24\n\taddu\t$1,$12\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t lwl\t$13,5*4+3($5)\n\tsll\t$25,$2,5\t# 4\n\taddu\t$1,$31\n\t lwr\t$13,5*4+0($5)\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\tsll\t$30,$3,30\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\txor\t$25,$24\n\taddu\t$1,$12\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$13,$13\t# byte swap(5)\n\trotr\t$13,$13,16\n#else\n\tsrl\t$25,$13,24\t# byte swap(5)\n\tsrl\t$6,$13,8\n\tandi\t$30,$13,0xFF00\n\tsll\t$13,$13,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$13,$25\n\tor\t$6,$30\n\tor\t$13,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 5\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\tand\t$25,$2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:8", "text": "#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$13,$13\t# byte swap(5)\n\trotr\t$13,$13,16\n#else\n\tsrl\t$25,$13,24\t# byte swap(5)\n\tsrl\t$6,$13,8\n\tandi\t$30,$13,0xFF00\n\tsll\t$13,$13,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$13,$25\n\tor\t$6,$30\n\tor\t$13,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 5\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\tand\t$25,$2\n\taddu\t$24,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$14,6*4($5)\n#else\n\t lwl\t$14,6*4+3($5)\n\t lwr\t$14,6*4+0($5)\n#endif\n\txor\t$25,$7\n\taddu\t$24,$13\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t lwl\t$14,6*4+3($5)\n\tsll\t$25,$1,5\t# 5\n\taddu\t$24,$31\n\t lwr\t$14,6*4+0($5)\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\tsll\t$30,$2,30\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\txor\t$25,$7\n\taddu\t$24,$13\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$14,$14\t# byte swap(6)\n\trotr\t$14,$14,16\n#else\n\tsrl\t$25,$14,24\t# byte swap(6)\n\tsrl\t$6,$14,8\n\tandi\t$30,$14,0xFF00\n\tsll\t$14,$14,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$14,$25\n\tor\t$6,$30", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:9", "text": "sll\t$30,$2,30\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\txor\t$25,$7\n\taddu\t$24,$13\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$14,$14\t# byte swap(6)\n\trotr\t$14,$14,16\n#else\n\tsrl\t$25,$14,24\t# byte swap(6)\n\tsrl\t$6,$14,8\n\tandi\t$30,$14,0xFF00\n\tsll\t$14,$14,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$14,$25\n\tor\t$6,$30\n\tor\t$14,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 6\n\txor\t$25,$2,$3\n\trotr\t$6,$24,27\n\tand\t$25,$1\n\taddu\t$7,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$15,7*4($5)\n#else\n\t lwl\t$15,7*4+3($5)\n\t lwr\t$15,7*4+0($5)\n#endif\n\txor\t$25,$3\n\taddu\t$7,$14\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t lwl\t$15,7*4+3($5)\n\tsll\t$25,$24,5\t# 6\n\taddu\t$7,$31\n\t lwr\t$15,7*4+0($5)\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\taddu\t$7,$14\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$15,$15\t# byte swap(7)\n\trotr\t$15,$15,16\n#else\n\tsrl\t$25,$15,24\t# byte swap(7)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:10", "text": "sll\t$25,$24,5\t# 6\n\taddu\t$7,$31\n\t lwr\t$15,7*4+0($5)\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\taddu\t$7,$14\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$15,$15\t# byte swap(7)\n\trotr\t$15,$15,16\n#else\n\tsrl\t$25,$15,24\t# byte swap(7)\n\tsrl\t$6,$15,8\n\tandi\t$30,$15,0xFF00\n\tsll\t$15,$15,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$15,$25\n\tor\t$6,$30\n\tor\t$15,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 7\n\txor\t$25,$1,$2\n\trotr\t$6,$7,27\n\tand\t$25,$24\n\taddu\t$3,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$16,8*4($5)\n#else\n\t lwl\t$16,8*4+3($5)\n\t lwr\t$16,8*4+0($5)\n#endif\n\txor\t$25,$2\n\taddu\t$3,$15\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t lwl\t$16,8*4+3($5)\n\tsll\t$25,$7,5\t# 7\n\taddu\t$3,$31\n\t lwr\t$16,8*4+0($5)\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\tsll\t$30,$24,30\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\txor\t$25,$2\n\taddu\t$3,$15\n\tor\t$24,$30", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:11", "text": "#endif\n\txor\t$25,$2\n\taddu\t$3,$15\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t lwl\t$16,8*4+3($5)\n\tsll\t$25,$7,5\t# 7\n\taddu\t$3,$31\n\t lwr\t$16,8*4+0($5)\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\tsll\t$30,$24,30\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\txor\t$25,$2\n\taddu\t$3,$15\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$16,$16\t# byte swap(8)\n\trotr\t$16,$16,16\n#else\n\tsrl\t$25,$16,24\t# byte swap(8)\n\tsrl\t$6,$16,8\n\tandi\t$30,$16,0xFF00\n\tsll\t$16,$16,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$16,$25\n\tor\t$6,$30\n\tor\t$16,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 8\n\txor\t$25,$24,$1\n\trotr\t$6,$3,27\n\tand\t$25,$7\n\taddu\t$2,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$17,9*4($5)\n#else\n\t lwl\t$17,9*4+3($5)\n\t lwr\t$17,9*4+0($5)\n#endif\n\txor\t$25,$1\n\taddu\t$2,$16\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t lwl\t$17,9*4+3($5)\n\tsll\t$25,$3,5\t# 8\n\taddu\t$2,$31\n\t lwr\t$17,9*4+0($5)\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\txor\t$25,$24,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:12", "text": "and\t$25,$7\n\taddu\t$2,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$17,9*4($5)\n#else\n\t lwl\t$17,9*4+3($5)\n\t lwr\t$17,9*4+0($5)\n#endif\n\txor\t$25,$1\n\taddu\t$2,$16\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t lwl\t$17,9*4+3($5)\n\tsll\t$25,$3,5\t# 8\n\taddu\t$2,$31\n\t lwr\t$17,9*4+0($5)\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\tsll\t$30,$7,30\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\txor\t$25,$1\n\taddu\t$2,$16\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$17,$17\t# byte swap(9)\n\trotr\t$17,$17,16\n#else\n\tsrl\t$25,$17,24\t# byte swap(9)\n\tsrl\t$6,$17,8\n\tandi\t$30,$17,0xFF00\n\tsll\t$17,$17,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$17,$25\n\tor\t$6,$30\n\tor\t$17,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 9\n\txor\t$25,$7,$24\n\trotr\t$6,$2,27\n\tand\t$25,$3\n\taddu\t$1,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$18,10*4($5)\n#else\n\t lwl\t$18,10*4+3($5)\n\t lwr\t$18,10*4+0($5)\n#endif\n\txor\t$25,$24\n\taddu\t$1,$17\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:13", "text": "or\t$6,$30\n\tor\t$17,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 9\n\txor\t$25,$7,$24\n\trotr\t$6,$2,27\n\tand\t$25,$3\n\taddu\t$1,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$18,10*4($5)\n#else\n\t lwl\t$18,10*4+3($5)\n\t lwr\t$18,10*4+0($5)\n#endif\n\txor\t$25,$24\n\taddu\t$1,$17\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t lwl\t$18,10*4+3($5)\n\tsll\t$25,$2,5\t# 9\n\taddu\t$1,$31\n\t lwr\t$18,10*4+0($5)\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\tsll\t$30,$3,30\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\txor\t$25,$24\n\taddu\t$1,$17\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$18,$18\t# byte swap(10)\n\trotr\t$18,$18,16\n#else\n\tsrl\t$25,$18,24\t# byte swap(10)\n\tsrl\t$6,$18,8\n\tandi\t$30,$18,0xFF00\n\tsll\t$18,$18,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$18,$25\n\tor\t$6,$30\n\tor\t$18,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 10\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\tand\t$25,$2\n\taddu\t$24,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$19,11*4($5)\n#else\n\t lwl\t$19,11*4+3($5)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:14", "text": "srl\t$25,$18,24\t# byte swap(10)\n\tsrl\t$6,$18,8\n\tandi\t$30,$18,0xFF00\n\tsll\t$18,$18,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$18,$25\n\tor\t$6,$30\n\tor\t$18,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 10\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\tand\t$25,$2\n\taddu\t$24,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$19,11*4($5)\n#else\n\t lwl\t$19,11*4+3($5)\n\t lwr\t$19,11*4+0($5)\n#endif\n\txor\t$25,$7\n\taddu\t$24,$18\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t lwl\t$19,11*4+3($5)\n\tsll\t$25,$1,5\t# 10\n\taddu\t$24,$31\n\t lwr\t$19,11*4+0($5)\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\tsll\t$30,$2,30\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\txor\t$25,$7\n\taddu\t$24,$18\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$19,$19\t# byte swap(11)\n\trotr\t$19,$19,16\n#else\n\tsrl\t$25,$19,24\t# byte swap(11)\n\tsrl\t$6,$19,8\n\tandi\t$30,$19,0xFF00\n\tsll\t$19,$19,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$19,$25\n\tor\t$6,$30\n\tor\t$19,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 11\n\txor\t$25,$2,$3", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:15", "text": "or\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$19,$19\t# byte swap(11)\n\trotr\t$19,$19,16\n#else\n\tsrl\t$25,$19,24\t# byte swap(11)\n\tsrl\t$6,$19,8\n\tandi\t$30,$19,0xFF00\n\tsll\t$19,$19,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$19,$25\n\tor\t$6,$30\n\tor\t$19,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 11\n\txor\t$25,$2,$3\n\trotr\t$6,$24,27\n\tand\t$25,$1\n\taddu\t$7,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$20,12*4($5)\n#else\n\t lwl\t$20,12*4+3($5)\n\t lwr\t$20,12*4+0($5)\n#endif\n\txor\t$25,$3\n\taddu\t$7,$19\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t lwl\t$20,12*4+3($5)\n\tsll\t$25,$24,5\t# 11\n\taddu\t$7,$31\n\t lwr\t$20,12*4+0($5)\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\taddu\t$7,$19\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$20,$20\t# byte swap(12)\n\trotr\t$20,$20,16\n#else\n\tsrl\t$25,$20,24\t# byte swap(12)\n\tsrl\t$6,$20,8\n\tandi\t$30,$20,0xFF00\n\tsll\t$20,$20,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:16", "text": "xor\t$25,$2,$3\n\taddu\t$7,$6\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\taddu\t$7,$19\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$20,$20\t# byte swap(12)\n\trotr\t$20,$20,16\n#else\n\tsrl\t$25,$20,24\t# byte swap(12)\n\tsrl\t$6,$20,8\n\tandi\t$30,$20,0xFF00\n\tsll\t$20,$20,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$20,$25\n\tor\t$6,$30\n\tor\t$20,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 12\n\txor\t$25,$1,$2\n\trotr\t$6,$7,27\n\tand\t$25,$24\n\taddu\t$3,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$21,13*4($5)\n#else\n\t lwl\t$21,13*4+3($5)\n\t lwr\t$21,13*4+0($5)\n#endif\n\txor\t$25,$2\n\taddu\t$3,$20\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t lwl\t$21,13*4+3($5)\n\tsll\t$25,$7,5\t# 12\n\taddu\t$3,$31\n\t lwr\t$21,13*4+0($5)\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\tsll\t$30,$24,30\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\txor\t$25,$2\n\taddu\t$3,$20\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$21,$21\t# byte swap(13)\n\trotr\t$21,$21,16", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:17", "text": "#else\n\t lwl\t$21,13*4+3($5)\n\tsll\t$25,$7,5\t# 12\n\taddu\t$3,$31\n\t lwr\t$21,13*4+0($5)\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\tsll\t$30,$24,30\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\txor\t$25,$2\n\taddu\t$3,$20\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$21,$21\t# byte swap(13)\n\trotr\t$21,$21,16\n#else\n\tsrl\t$25,$21,24\t# byte swap(13)\n\tsrl\t$6,$21,8\n\tandi\t$30,$21,0xFF00\n\tsll\t$21,$21,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$21,$25\n\tor\t$6,$30\n\tor\t$21,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 13\n\txor\t$25,$24,$1\n\trotr\t$6,$3,27\n\tand\t$25,$7\n\taddu\t$2,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$22,14*4($5)\n#else\n\t lwl\t$22,14*4+3($5)\n\t lwr\t$22,14*4+0($5)\n#endif\n\txor\t$25,$1\n\taddu\t$2,$21\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t lwl\t$22,14*4+3($5)\n\tsll\t$25,$3,5\t# 13\n\taddu\t$2,$31\n\t lwr\t$22,14*4+0($5)\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\tsll\t$30,$7,30\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\txor\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:18", "text": "lwl\t$22,14*4+3($5)\n\t lwr\t$22,14*4+0($5)\n#endif\n\txor\t$25,$1\n\taddu\t$2,$21\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t lwl\t$22,14*4+3($5)\n\tsll\t$25,$3,5\t# 13\n\taddu\t$2,$31\n\t lwr\t$22,14*4+0($5)\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\tsll\t$30,$7,30\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\txor\t$25,$1\n\taddu\t$2,$21\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$22,$22\t# byte swap(14)\n\trotr\t$22,$22,16\n#else\n\tsrl\t$25,$22,24\t# byte swap(14)\n\tsrl\t$6,$22,8\n\tandi\t$30,$22,0xFF00\n\tsll\t$22,$22,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$22,$25\n\tor\t$6,$30\n\tor\t$22,$6\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 14\n\txor\t$25,$7,$24\n\trotr\t$6,$2,27\n\tand\t$25,$3\n\taddu\t$1,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$23,15*4($5)\n#else\n\t lwl\t$23,15*4+3($5)\n\t lwr\t$23,15*4+0($5)\n#endif\n\txor\t$25,$24\n\taddu\t$1,$22\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t lwl\t$23,15*4+3($5)\n\tsll\t$25,$2,5\t# 14\n\taddu\t$1,$31\n\t lwr\t$23,15*4+0($5)\n\tsrl\t$6,$2,27", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:19", "text": "xor\t$25,$7,$24\n\trotr\t$6,$2,27\n\tand\t$25,$3\n\taddu\t$1,$6\n#if defined(_MIPS_ARCH_MIPS32R6) || defined(_MIPS_ARCH_MIPS64R6)\n\t lw\t$23,15*4($5)\n#else\n\t lwl\t$23,15*4+3($5)\n\t lwr\t$23,15*4+0($5)\n#endif\n\txor\t$25,$24\n\taddu\t$1,$22\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t lwl\t$23,15*4+3($5)\n\tsll\t$25,$2,5\t# 14\n\taddu\t$1,$31\n\t lwr\t$23,15*4+0($5)\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\tsll\t$30,$3,30\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\txor\t$25,$24\n\taddu\t$1,$22\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\twsbh\t$23,$23\t# byte swap(15)\n\trotr\t$23,$23,16\n#else\n\tsrl\t$25,$23,24\t# byte swap(15)\n\tsrl\t$6,$23,8\n\tandi\t$30,$23,0xFF00\n\tsll\t$23,$23,24\n\tandi\t$6,0xFF00\n\tsll\t$30,$30,8\n\tor\t$23,$25\n\tor\t$23,$6\n\tor\t$23,$30\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 15\n\t xor\t$8,$10\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\t xor\t$8,$16\n\tand\t$25,$2\n\taddu\t$24,$6\n\t xor\t$8,$21\n\txor\t$25,$7\n\taddu\t$24,$23\n\t rotr\t$8,$8,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:20", "text": "sll\t$30,$30,8\n\tor\t$23,$25\n\tor\t$23,$6\n\tor\t$23,$30\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 15\n\t xor\t$8,$10\n\txor\t$25,$3,$7\n\trotr\t$6,$1,27\n\t xor\t$8,$16\n\tand\t$25,$2\n\taddu\t$24,$6\n\t xor\t$8,$21\n\txor\t$25,$7\n\taddu\t$24,$23\n\t rotr\t$8,$8,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$8,$10\n\tsll\t$25,$1,5\t# 15\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$8,$16\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$8,$21\n\tsll\t$30,$2,30\n\tand\t$25,$2\n\t srl\t$6,$8,31\n\t addu\t$8,$8\n\tsrl\t$2,$2,2\n\txor\t$25,$7\n\t or\t$8,$6\n\taddu\t$24,$23\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 16\n\t xor\t$9,$11\n\txor\t$25,$2,$3\n\trotr\t$6,$24,27\n\t xor\t$9,$17\n\tand\t$25,$1\n\taddu\t$7,$6\n\t xor\t$9,$22\n\txor\t$25,$3\n\taddu\t$7,$8\n\t rotr\t$9,$9,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$9,$11\n\tsll\t$25,$24,5\t# 16\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:21", "text": "#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 16\n\t xor\t$9,$11\n\txor\t$25,$2,$3\n\trotr\t$6,$24,27\n\t xor\t$9,$17\n\tand\t$25,$1\n\taddu\t$7,$6\n\t xor\t$9,$22\n\txor\t$25,$3\n\taddu\t$7,$8\n\t rotr\t$9,$9,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$9,$11\n\tsll\t$25,$24,5\t# 16\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$9,$17\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$9,$22\n\tsll\t$30,$1,30\n\tand\t$25,$1\n\t srl\t$6,$9,31\n\t addu\t$9,$9\n\tsrl\t$1,$1,2\n\txor\t$25,$3\n\t or\t$9,$6\n\taddu\t$7,$8\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 17\n\t xor\t$10,$12\n\txor\t$25,$1,$2\n\trotr\t$6,$7,27\n\t xor\t$10,$18\n\tand\t$25,$24\n\taddu\t$3,$6\n\t xor\t$10,$23\n\txor\t$25,$2\n\taddu\t$3,$9\n\t rotr\t$10,$10,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$10,$12\n\tsll\t$25,$7,5\t# 17\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$10,$18\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$10,$23\n\tsll\t$30,$24,30", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:22", "text": "xor\t$10,$18\n\tand\t$25,$24\n\taddu\t$3,$6\n\t xor\t$10,$23\n\txor\t$25,$2\n\taddu\t$3,$9\n\t rotr\t$10,$10,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$10,$12\n\tsll\t$25,$7,5\t# 17\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$10,$18\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$10,$23\n\tsll\t$30,$24,30\n\tand\t$25,$24\n\t srl\t$6,$10,31\n\t addu\t$10,$10\n\tsrl\t$24,$24,2\n\txor\t$25,$2\n\t or\t$10,$6\n\taddu\t$3,$9\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 18\n\t xor\t$11,$13\n\txor\t$25,$24,$1\n\trotr\t$6,$3,27\n\t xor\t$11,$19\n\tand\t$25,$7\n\taddu\t$2,$6\n\t xor\t$11,$8\n\txor\t$25,$1\n\taddu\t$2,$10\n\t rotr\t$11,$11,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$11,$13\n\tsll\t$25,$3,5\t# 18\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$11,$19\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$11,$8\n\tsll\t$30,$7,30\n\tand\t$25,$7\n\t srl\t$6,$11,31\n\t addu\t$11,$11\n\tsrl\t$7,$7,2\n\txor\t$25,$1", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:23", "text": "addu\t$2,$10\n\t rotr\t$11,$11,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$11,$13\n\tsll\t$25,$3,5\t# 18\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$11,$19\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$11,$8\n\tsll\t$30,$7,30\n\tand\t$25,$7\n\t srl\t$6,$11,31\n\t addu\t$11,$11\n\tsrl\t$7,$7,2\n\txor\t$25,$1\n\t or\t$11,$6\n\taddu\t$2,$10\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 19\n\t xor\t$12,$14\n\txor\t$25,$7,$24\n\trotr\t$6,$2,27\n\t xor\t$12,$20\n\tand\t$25,$3\n\taddu\t$1,$6\n\t xor\t$12,$9\n\txor\t$25,$24\n\taddu\t$1,$11\n\t rotr\t$12,$12,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$12,$14\n\tsll\t$25,$2,5\t# 19\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$12,$20\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$12,$9\n\tsll\t$30,$3,30\n\tand\t$25,$3\n\t srl\t$6,$12,31\n\t addu\t$12,$12\n\tsrl\t$3,$3,2\n\txor\t$25,$24\n\t or\t$12,$6\n\taddu\t$1,$11\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:24", "text": "xor\t$12,$14\n\tsll\t$25,$2,5\t# 19\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$12,$20\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$12,$9\n\tsll\t$30,$3,30\n\tand\t$25,$3\n\t srl\t$6,$12,31\n\t addu\t$12,$12\n\tsrl\t$3,$3,2\n\txor\t$25,$24\n\t or\t$12,$6\n\taddu\t$1,$11\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\tlui\t$31,0x6ed9\n\tori\t$31,0xeba1\t# K_20_39\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$13,$15\n\taddu\t$24,$31\t\t# 20\n\trotr\t$6,$1,27\n\t xor\t$13,$21\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$13,$10\n\txor\t$25,$2\n\taddu\t$24,$12\n\t rotr\t$13,$13,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$13,$15\n\tsll\t$25,$1,5\t# 20\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$13,$21\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$13,$10\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$13,31\n\t addu\t$13,$13\n\tsrl\t$2,$2,2\n\taddu\t$24,$12\n\t or\t$13,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$14,$16\n\taddu\t$7,$31\t\t# 21\n\trotr\t$6,$24,27\n\t xor\t$14,$22", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:25", "text": "addu\t$24,$25\n\t xor\t$13,$21\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$13,$10\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$13,31\n\t addu\t$13,$13\n\tsrl\t$2,$2,2\n\taddu\t$24,$12\n\t or\t$13,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$14,$16\n\taddu\t$7,$31\t\t# 21\n\trotr\t$6,$24,27\n\t xor\t$14,$22\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$14,$11\n\txor\t$25,$1\n\taddu\t$7,$13\n\t rotr\t$14,$14,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$14,$16\n\tsll\t$25,$24,5\t# 21\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$14,$22\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$14,$11\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$14,31\n\t addu\t$14,$14\n\tsrl\t$1,$1,2\n\taddu\t$7,$13\n\t or\t$14,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$15,$17\n\taddu\t$3,$31\t\t# 22\n\trotr\t$6,$7,27\n\t xor\t$15,$23\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$15,$12\n\txor\t$25,$24\n\taddu\t$3,$14\n\t rotr\t$15,$15,31\n\trotr\t$24,$24,2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:26", "text": "srl\t$6,$14,31\n\t addu\t$14,$14\n\tsrl\t$1,$1,2\n\taddu\t$7,$13\n\t or\t$14,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$15,$17\n\taddu\t$3,$31\t\t# 22\n\trotr\t$6,$7,27\n\t xor\t$15,$23\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$15,$12\n\txor\t$25,$24\n\taddu\t$3,$14\n\t rotr\t$15,$15,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$15,$17\n\tsll\t$25,$7,5\t# 22\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$15,$23\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$15,$12\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$15,31\n\t addu\t$15,$15\n\tsrl\t$24,$24,2\n\taddu\t$3,$14\n\t or\t$15,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$16,$18\n\taddu\t$2,$31\t\t# 23\n\trotr\t$6,$3,27\n\t xor\t$16,$8\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$16,$13\n\txor\t$25,$7\n\taddu\t$2,$15\n\t rotr\t$16,$16,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$3,5\t# 23\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:27", "text": "#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$16,$18\n\taddu\t$2,$31\t\t# 23\n\trotr\t$6,$3,27\n\t xor\t$16,$8\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$16,$13\n\txor\t$25,$7\n\taddu\t$2,$15\n\t rotr\t$16,$16,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$3,5\t# 23\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$16,$8\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$16,$13\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$16,31\n\t addu\t$16,$16\n\tsrl\t$7,$7,2\n\taddu\t$2,$15\n\t or\t$16,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$17,$19\n\taddu\t$1,$31\t\t# 24\n\trotr\t$6,$2,27\n\t xor\t$17,$9\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$17,$14\n\txor\t$25,$3\n\taddu\t$1,$16\n\t rotr\t$17,$17,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$17,$19\n\tsll\t$25,$2,5\t# 24\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$17,$9\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$17,$14\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$17,31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:28", "text": "addu\t$1,$6\n\t xor\t$17,$14\n\txor\t$25,$3\n\taddu\t$1,$16\n\t rotr\t$17,$17,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$17,$19\n\tsll\t$25,$2,5\t# 24\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$17,$9\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$17,$14\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$17,31\n\t addu\t$17,$17\n\tsrl\t$3,$3,2\n\taddu\t$1,$16\n\t or\t$17,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$18,$20\n\taddu\t$24,$31\t\t# 25\n\trotr\t$6,$1,27\n\t xor\t$18,$10\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$18,$15\n\txor\t$25,$2\n\taddu\t$24,$17\n\t rotr\t$18,$18,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$18,$20\n\tsll\t$25,$1,5\t# 25\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$18,$10\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$18,$15\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$18,31\n\t addu\t$18,$18\n\tsrl\t$2,$2,2\n\taddu\t$24,$17\n\t or\t$18,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:29", "text": "#else\n\t xor\t$18,$20\n\tsll\t$25,$1,5\t# 25\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$18,$10\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$18,$15\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$18,31\n\t addu\t$18,$18\n\tsrl\t$2,$2,2\n\taddu\t$24,$17\n\t or\t$18,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$19,$21\n\taddu\t$7,$31\t\t# 26\n\trotr\t$6,$24,27\n\t xor\t$19,$11\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$19,$16\n\txor\t$25,$1\n\taddu\t$7,$18\n\t rotr\t$19,$19,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$19,$21\n\tsll\t$25,$24,5\t# 26\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$19,$11\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$19,$16\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$19,31\n\t addu\t$19,$19\n\tsrl\t$1,$1,2\n\taddu\t$7,$18\n\t or\t$19,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$20,$22\n\taddu\t$3,$31\t\t# 27\n\trotr\t$6,$7,27\n\t xor\t$20,$12\n\txor\t$25,$1,$2\n\taddu\t$3,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:30", "text": "xor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$19,$16\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$19,31\n\t addu\t$19,$19\n\tsrl\t$1,$1,2\n\taddu\t$7,$18\n\t or\t$19,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$20,$22\n\taddu\t$3,$31\t\t# 27\n\trotr\t$6,$7,27\n\t xor\t$20,$12\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$20,$17\n\txor\t$25,$24\n\taddu\t$3,$19\n\t rotr\t$20,$20,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$7,5\t# 27\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$20,$12\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$20,$17\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$20,31\n\t addu\t$20,$20\n\tsrl\t$24,$24,2\n\taddu\t$3,$19\n\t or\t$20,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$21,$23\n\taddu\t$2,$31\t\t# 28\n\trotr\t$6,$3,27\n\t xor\t$21,$13\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$21,$18\n\txor\t$25,$7\n\taddu\t$2,$20\n\t rotr\t$21,$21,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:31", "text": "srl\t$24,$24,2\n\taddu\t$3,$19\n\t or\t$20,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$21,$23\n\taddu\t$2,$31\t\t# 28\n\trotr\t$6,$3,27\n\t xor\t$21,$13\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$21,$18\n\txor\t$25,$7\n\taddu\t$2,$20\n\t rotr\t$21,$21,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$21,$23\n\tsll\t$25,$3,5\t# 28\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$21,$13\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$21,$18\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$21,31\n\t addu\t$21,$21\n\tsrl\t$7,$7,2\n\taddu\t$2,$20\n\t or\t$21,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$22,$8\n\taddu\t$1,$31\t\t# 29\n\trotr\t$6,$2,27\n\t xor\t$22,$14\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$22,$19\n\txor\t$25,$3\n\taddu\t$1,$21\n\t rotr\t$22,$22,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$22,$8\n\tsll\t$25,$2,5\t# 29\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$22,$14\n\txor\t$25,$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:32", "text": "xor\t$22,$8\n\taddu\t$1,$31\t\t# 29\n\trotr\t$6,$2,27\n\t xor\t$22,$14\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$22,$19\n\txor\t$25,$3\n\taddu\t$1,$21\n\t rotr\t$22,$22,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$22,$8\n\tsll\t$25,$2,5\t# 29\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$22,$14\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$22,$19\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$22,31\n\t addu\t$22,$22\n\tsrl\t$3,$3,2\n\taddu\t$1,$21\n\t or\t$22,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$23,$9\n\taddu\t$24,$31\t\t# 30\n\trotr\t$6,$1,27\n\t xor\t$23,$15\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$23,$20\n\txor\t$25,$2\n\taddu\t$24,$22\n\t rotr\t$23,$23,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$23,$9\n\tsll\t$25,$1,5\t# 30\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$23,$15\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$23,$20\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$23,31\n\t addu\t$23,$23\n\tsrl\t$2,$2,2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:33", "text": "xor\t$25,$2\n\taddu\t$24,$22\n\t rotr\t$23,$23,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$23,$9\n\tsll\t$25,$1,5\t# 30\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$23,$15\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$23,$20\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$23,31\n\t addu\t$23,$23\n\tsrl\t$2,$2,2\n\taddu\t$24,$22\n\t or\t$23,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$8,$10\n\taddu\t$7,$31\t\t# 31\n\trotr\t$6,$24,27\n\t xor\t$8,$16\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$8,$21\n\txor\t$25,$1\n\taddu\t$7,$23\n\t rotr\t$8,$8,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$8,$10\n\tsll\t$25,$24,5\t# 31\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$8,$16\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$8,$21\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$8,31\n\t addu\t$8,$8\n\tsrl\t$1,$1,2\n\taddu\t$7,$23\n\t or\t$8,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$9,$11", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:34", "text": "sll\t$25,$24,5\t# 31\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$8,$16\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$8,$21\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$8,31\n\t addu\t$8,$8\n\tsrl\t$1,$1,2\n\taddu\t$7,$23\n\t or\t$8,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$9,$11\n\taddu\t$3,$31\t\t# 32\n\trotr\t$6,$7,27\n\t xor\t$9,$17\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$9,$22\n\txor\t$25,$24\n\taddu\t$3,$8\n\t rotr\t$9,$9,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$9,$11\n\tsll\t$25,$7,5\t# 32\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$9,$17\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$9,$22\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$9,31\n\t addu\t$9,$9\n\tsrl\t$24,$24,2\n\taddu\t$3,$8\n\t or\t$9,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$10,$12\n\taddu\t$2,$31\t\t# 33\n\trotr\t$6,$3,27\n\t xor\t$10,$18\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$10,$23\n\txor\t$25,$7", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:35", "text": "xor\t$9,$22\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$9,31\n\t addu\t$9,$9\n\tsrl\t$24,$24,2\n\taddu\t$3,$8\n\t or\t$9,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$10,$12\n\taddu\t$2,$31\t\t# 33\n\trotr\t$6,$3,27\n\t xor\t$10,$18\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$10,$23\n\txor\t$25,$7\n\taddu\t$2,$9\n\t rotr\t$10,$10,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$10,$12\n\tsll\t$25,$3,5\t# 33\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$10,$18\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$10,$23\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$10,31\n\t addu\t$10,$10\n\tsrl\t$7,$7,2\n\taddu\t$2,$9\n\t or\t$10,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$11,$13\n\taddu\t$1,$31\t\t# 34\n\trotr\t$6,$2,27\n\t xor\t$11,$19\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$11,$8\n\txor\t$25,$3\n\taddu\t$1,$10\n\t rotr\t$11,$11,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$11,$13\n\tsll\t$25,$2,5\t# 34", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:36", "text": "or\t$10,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$11,$13\n\taddu\t$1,$31\t\t# 34\n\trotr\t$6,$2,27\n\t xor\t$11,$19\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$11,$8\n\txor\t$25,$3\n\taddu\t$1,$10\n\t rotr\t$11,$11,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$11,$13\n\tsll\t$25,$2,5\t# 34\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$11,$19\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$11,$8\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$11,31\n\t addu\t$11,$11\n\tsrl\t$3,$3,2\n\taddu\t$1,$10\n\t or\t$11,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$12,$14\n\taddu\t$24,$31\t\t# 35\n\trotr\t$6,$1,27\n\t xor\t$12,$20\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$12,$9\n\txor\t$25,$2\n\taddu\t$24,$11\n\t rotr\t$12,$12,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$12,$14\n\tsll\t$25,$1,5\t# 35\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$12,$20\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$12,$9", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:37", "text": "rotr\t$6,$1,27\n\t xor\t$12,$20\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$12,$9\n\txor\t$25,$2\n\taddu\t$24,$11\n\t rotr\t$12,$12,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$12,$14\n\tsll\t$25,$1,5\t# 35\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$12,$20\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$12,$9\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$12,31\n\t addu\t$12,$12\n\tsrl\t$2,$2,2\n\taddu\t$24,$11\n\t or\t$12,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$13,$15\n\taddu\t$7,$31\t\t# 36\n\trotr\t$6,$24,27\n\t xor\t$13,$21\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$13,$10\n\txor\t$25,$1\n\taddu\t$7,$12\n\t rotr\t$13,$13,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$13,$15\n\tsll\t$25,$24,5\t# 36\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$13,$21\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$13,$10\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$13,31\n\t addu\t$13,$13\n\tsrl\t$1,$1,2\n\taddu\t$7,$12\n\t or\t$13,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:38", "text": "rotr\t$13,$13,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$13,$15\n\tsll\t$25,$24,5\t# 36\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$13,$21\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$13,$10\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$13,31\n\t addu\t$13,$13\n\tsrl\t$1,$1,2\n\taddu\t$7,$12\n\t or\t$13,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$14,$16\n\taddu\t$3,$31\t\t# 37\n\trotr\t$6,$7,27\n\t xor\t$14,$22\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$14,$11\n\txor\t$25,$24\n\taddu\t$3,$13\n\t rotr\t$14,$14,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$14,$16\n\tsll\t$25,$7,5\t# 37\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$14,$22\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$14,$11\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$14,31\n\t addu\t$14,$14\n\tsrl\t$24,$24,2\n\taddu\t$3,$13\n\t or\t$14,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$15,$17\n\taddu\t$2,$31\t\t# 38\n\trotr\t$6,$3,27", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:39", "text": "srl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$14,$22\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$14,$11\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$14,31\n\t addu\t$14,$14\n\tsrl\t$24,$24,2\n\taddu\t$3,$13\n\t or\t$14,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$15,$17\n\taddu\t$2,$31\t\t# 38\n\trotr\t$6,$3,27\n\t xor\t$15,$23\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$15,$12\n\txor\t$25,$7\n\taddu\t$2,$14\n\t rotr\t$15,$15,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$15,$17\n\tsll\t$25,$3,5\t# 38\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$15,$23\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$15,$12\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$15,31\n\t addu\t$15,$15\n\tsrl\t$7,$7,2\n\taddu\t$2,$14\n\t or\t$15,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$16,$18\n\taddu\t$1,$31\t\t# 39\n\trotr\t$6,$2,27\n\t xor\t$16,$8\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$16,$13\n\txor\t$25,$3\n\taddu\t$1,$15\n\t rotr\t$16,$16,31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:40", "text": "xor\t$25,$7\n\t srl\t$6,$15,31\n\t addu\t$15,$15\n\tsrl\t$7,$7,2\n\taddu\t$2,$14\n\t or\t$15,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$16,$18\n\taddu\t$1,$31\t\t# 39\n\trotr\t$6,$2,27\n\t xor\t$16,$8\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$16,$13\n\txor\t$25,$3\n\taddu\t$1,$15\n\t rotr\t$16,$16,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$2,5\t# 39\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$16,$8\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$16,$13\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$16,31\n\t addu\t$16,$16\n\tsrl\t$3,$3,2\n\taddu\t$1,$15\n\t or\t$16,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\tlui\t$31,0x8f1b\n\tori\t$31,0xbcdc\t# K_40_59\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 40\n\tand\t$25,$3,$7\n\t xor\t$17,$19\n\trotr\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$17,$9\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$17,$14\n\tand\t$25,$2\n\taddu\t$24,$16\n\t rotr\t$17,$17,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:41", "text": "addu\t$1,$25\n#endif\n\tlui\t$31,0x8f1b\n\tori\t$31,0xbcdc\t# K_40_59\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 40\n\tand\t$25,$3,$7\n\t xor\t$17,$19\n\trotr\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$17,$9\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$17,$14\n\tand\t$25,$2\n\taddu\t$24,$16\n\t rotr\t$17,$17,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$17,$19\n\tsll\t$25,$1,5\t# 40\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$17,$9\n\tand\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$17,$14\n\tsll\t$30,$2,30\n\taddu\t$24,$25\n\t srl\t$6,$17,31\n\txor\t$25,$3,$7\n\t addu\t$17,$17\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\t or\t$17,$6\n\taddu\t$24,$16\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 41\n\tand\t$25,$2,$3\n\t xor\t$18,$20\n\trotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$18,$10\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$18,$15\n\tand\t$25,$1\n\taddu\t$7,$17\n\t rotr\t$18,$18,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$18,$20\n\tsll\t$25,$24,5\t# 41\n\taddu\t$7,$31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:42", "text": "#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 41\n\tand\t$25,$2,$3\n\t xor\t$18,$20\n\trotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$18,$10\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$18,$15\n\tand\t$25,$1\n\taddu\t$7,$17\n\t rotr\t$18,$18,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$18,$20\n\tsll\t$25,$24,5\t# 41\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$18,$10\n\tand\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$18,$15\n\tsll\t$30,$1,30\n\taddu\t$7,$25\n\t srl\t$6,$18,31\n\txor\t$25,$2,$3\n\t addu\t$18,$18\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\t or\t$18,$6\n\taddu\t$7,$17\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 42\n\tand\t$25,$1,$2\n\t xor\t$19,$21\n\trotr\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$19,$11\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$19,$16\n\tand\t$25,$24\n\taddu\t$3,$18\n\t rotr\t$19,$19,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$19,$21\n\tsll\t$25,$7,5\t# 42\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$19,$11", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:43", "text": "and\t$25,$1,$2\n\t xor\t$19,$21\n\trotr\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$19,$11\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$19,$16\n\tand\t$25,$24\n\taddu\t$3,$18\n\t rotr\t$19,$19,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$19,$21\n\tsll\t$25,$7,5\t# 42\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$19,$11\n\tand\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$19,$16\n\tsll\t$30,$24,30\n\taddu\t$3,$25\n\t srl\t$6,$19,31\n\txor\t$25,$1,$2\n\t addu\t$19,$19\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\t or\t$19,$6\n\taddu\t$3,$18\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 43\n\tand\t$25,$24,$1\n\t xor\t$20,$22\n\trotr\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$20,$12\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$20,$17\n\tand\t$25,$7\n\taddu\t$2,$19\n\t rotr\t$20,$20,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$3,5\t# 43\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$20,$12\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$20,$17", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:44", "text": "addu\t$2,$25\n\t xor\t$20,$12\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$20,$17\n\tand\t$25,$7\n\taddu\t$2,$19\n\t rotr\t$20,$20,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$3,5\t# 43\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$20,$12\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$20,$17\n\tsll\t$30,$7,30\n\taddu\t$2,$25\n\t srl\t$6,$20,31\n\txor\t$25,$24,$1\n\t addu\t$20,$20\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\t or\t$20,$6\n\taddu\t$2,$19\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 44\n\tand\t$25,$7,$24\n\t xor\t$21,$23\n\trotr\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$21,$13\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$21,$18\n\tand\t$25,$3\n\taddu\t$1,$20\n\t rotr\t$21,$21,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$21,$23\n\tsll\t$25,$2,5\t# 44\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$21,$13\n\tand\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$21,$18\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$21,31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:45", "text": "addu\t$1,$6\n\t xor\t$21,$18\n\tand\t$25,$3\n\taddu\t$1,$20\n\t rotr\t$21,$21,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$21,$23\n\tsll\t$25,$2,5\t# 44\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$21,$13\n\tand\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$21,$18\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$21,31\n\txor\t$25,$7,$24\n\t addu\t$21,$21\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\t or\t$21,$6\n\taddu\t$1,$20\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 45\n\tand\t$25,$3,$7\n\t xor\t$22,$8\n\trotr\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$22,$14\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$22,$19\n\tand\t$25,$2\n\taddu\t$24,$21\n\t rotr\t$22,$22,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$22,$8\n\tsll\t$25,$1,5\t# 45\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$22,$14\n\tand\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$22,$19\n\tsll\t$30,$2,30\n\taddu\t$24,$25\n\t srl\t$6,$22,31\n\txor\t$25,$3,$7\n\t addu\t$22,$22\n\tand\t$25,$2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:46", "text": "addu\t$24,$21\n\t rotr\t$22,$22,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$22,$8\n\tsll\t$25,$1,5\t# 45\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$22,$14\n\tand\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$22,$19\n\tsll\t$30,$2,30\n\taddu\t$24,$25\n\t srl\t$6,$22,31\n\txor\t$25,$3,$7\n\t addu\t$22,$22\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\t or\t$22,$6\n\taddu\t$24,$21\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 46\n\tand\t$25,$2,$3\n\t xor\t$23,$9\n\trotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$23,$15\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$23,$20\n\tand\t$25,$1\n\taddu\t$7,$22\n\t rotr\t$23,$23,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$23,$9\n\tsll\t$25,$24,5\t# 46\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$23,$15\n\tand\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$23,$20\n\tsll\t$30,$1,30\n\taddu\t$7,$25\n\t srl\t$6,$23,31\n\txor\t$25,$2,$3\n\t addu\t$23,$23\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\t or\t$23,$6\n\taddu\t$7,$22", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:47", "text": "addu\t$7,$25\n#else\n\t xor\t$23,$9\n\tsll\t$25,$24,5\t# 46\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$23,$15\n\tand\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$23,$20\n\tsll\t$30,$1,30\n\taddu\t$7,$25\n\t srl\t$6,$23,31\n\txor\t$25,$2,$3\n\t addu\t$23,$23\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\t or\t$23,$6\n\taddu\t$7,$22\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 47\n\tand\t$25,$1,$2\n\t xor\t$8,$10\n\trotr\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$8,$16\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$8,$21\n\tand\t$25,$24\n\taddu\t$3,$23\n\t rotr\t$8,$8,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$8,$10\n\tsll\t$25,$7,5\t# 47\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$8,$16\n\tand\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$8,$21\n\tsll\t$30,$24,30\n\taddu\t$3,$25\n\t srl\t$6,$8,31\n\txor\t$25,$1,$2\n\t addu\t$8,$8\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\t or\t$8,$6\n\taddu\t$3,$23\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:48", "text": "sll\t$25,$7,5\t# 47\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$8,$16\n\tand\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$8,$21\n\tsll\t$30,$24,30\n\taddu\t$3,$25\n\t srl\t$6,$8,31\n\txor\t$25,$1,$2\n\t addu\t$8,$8\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\t or\t$8,$6\n\taddu\t$3,$23\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 48\n\tand\t$25,$24,$1\n\t xor\t$9,$11\n\trotr\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$9,$17\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$9,$22\n\tand\t$25,$7\n\taddu\t$2,$8\n\t rotr\t$9,$9,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$9,$11\n\tsll\t$25,$3,5\t# 48\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$9,$17\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$9,$22\n\tsll\t$30,$7,30\n\taddu\t$2,$25\n\t srl\t$6,$9,31\n\txor\t$25,$24,$1\n\t addu\t$9,$9\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\t or\t$9,$6\n\taddu\t$2,$8\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 49\n\tand\t$25,$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:49", "text": "addu\t$2,$25\n\t xor\t$9,$17\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$9,$22\n\tsll\t$30,$7,30\n\taddu\t$2,$25\n\t srl\t$6,$9,31\n\txor\t$25,$24,$1\n\t addu\t$9,$9\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\t or\t$9,$6\n\taddu\t$2,$8\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 49\n\tand\t$25,$7,$24\n\t xor\t$10,$12\n\trotr\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$10,$18\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$10,$23\n\tand\t$25,$3\n\taddu\t$1,$9\n\t rotr\t$10,$10,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$10,$12\n\tsll\t$25,$2,5\t# 49\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$10,$18\n\tand\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$10,$23\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$10,31\n\txor\t$25,$7,$24\n\t addu\t$10,$10\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\t or\t$10,$6\n\taddu\t$1,$9\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 50\n\tand\t$25,$3,$7\n\t xor\t$11,$13\n\trotr\t$6,$1,27\n\taddu\t$24,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:50", "text": "addu\t$1,$6\n\t xor\t$10,$23\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$10,31\n\txor\t$25,$7,$24\n\t addu\t$10,$10\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\t or\t$10,$6\n\taddu\t$1,$9\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 50\n\tand\t$25,$3,$7\n\t xor\t$11,$13\n\trotr\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$11,$19\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$11,$8\n\tand\t$25,$2\n\taddu\t$24,$10\n\t rotr\t$11,$11,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$11,$13\n\tsll\t$25,$1,5\t# 50\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$11,$19\n\tand\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$11,$8\n\tsll\t$30,$2,30\n\taddu\t$24,$25\n\t srl\t$6,$11,31\n\txor\t$25,$3,$7\n\t addu\t$11,$11\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\t or\t$11,$6\n\taddu\t$24,$10\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 51\n\tand\t$25,$2,$3\n\t xor\t$12,$14\n\trotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$12,$20\n\txor\t$25,$2,$3\n\taddu\t$7,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:51", "text": "addu\t$24,$25\n\t srl\t$6,$11,31\n\txor\t$25,$3,$7\n\t addu\t$11,$11\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\t or\t$11,$6\n\taddu\t$24,$10\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 51\n\tand\t$25,$2,$3\n\t xor\t$12,$14\n\trotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$12,$20\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$12,$9\n\tand\t$25,$1\n\taddu\t$7,$11\n\t rotr\t$12,$12,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$12,$14\n\tsll\t$25,$24,5\t# 51\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$12,$20\n\tand\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$12,$9\n\tsll\t$30,$1,30\n\taddu\t$7,$25\n\t srl\t$6,$12,31\n\txor\t$25,$2,$3\n\t addu\t$12,$12\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\t or\t$12,$6\n\taddu\t$7,$11\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 52\n\tand\t$25,$1,$2\n\t xor\t$13,$15\n\trotr\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$13,$21\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$13,$10\n\tand\t$25,$24\n\taddu\t$3,$12", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:52", "text": "addu\t$12,$12\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\t or\t$12,$6\n\taddu\t$7,$11\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 52\n\tand\t$25,$1,$2\n\t xor\t$13,$15\n\trotr\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$13,$21\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$13,$10\n\tand\t$25,$24\n\taddu\t$3,$12\n\t rotr\t$13,$13,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$13,$15\n\tsll\t$25,$7,5\t# 52\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$13,$21\n\tand\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$13,$10\n\tsll\t$30,$24,30\n\taddu\t$3,$25\n\t srl\t$6,$13,31\n\txor\t$25,$1,$2\n\t addu\t$13,$13\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\t or\t$13,$6\n\taddu\t$3,$12\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 53\n\tand\t$25,$24,$1\n\t xor\t$14,$16\n\trotr\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$14,$22\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$14,$11\n\tand\t$25,$7\n\taddu\t$2,$13\n\t rotr\t$14,$14,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:53", "text": "or\t$13,$6\n\taddu\t$3,$12\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 53\n\tand\t$25,$24,$1\n\t xor\t$14,$16\n\trotr\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$14,$22\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$14,$11\n\tand\t$25,$7\n\taddu\t$2,$13\n\t rotr\t$14,$14,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$14,$16\n\tsll\t$25,$3,5\t# 53\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$14,$22\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$14,$11\n\tsll\t$30,$7,30\n\taddu\t$2,$25\n\t srl\t$6,$14,31\n\txor\t$25,$24,$1\n\t addu\t$14,$14\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\t or\t$14,$6\n\taddu\t$2,$13\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 54\n\tand\t$25,$7,$24\n\t xor\t$15,$17\n\trotr\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$15,$23\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$15,$12\n\tand\t$25,$3\n\taddu\t$1,$14\n\t rotr\t$15,$15,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$15,$17\n\tsll\t$25,$2,5\t# 54", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:54", "text": "addu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 54\n\tand\t$25,$7,$24\n\t xor\t$15,$17\n\trotr\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$15,$23\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$15,$12\n\tand\t$25,$3\n\taddu\t$1,$14\n\t rotr\t$15,$15,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$15,$17\n\tsll\t$25,$2,5\t# 54\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$15,$23\n\tand\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$15,$12\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$15,31\n\txor\t$25,$7,$24\n\t addu\t$15,$15\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\t or\t$15,$6\n\taddu\t$1,$14\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$24,$31\t\t# 55\n\tand\t$25,$3,$7\n\t xor\t$16,$18\n\trotr\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$16,$8\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$16,$13\n\tand\t$25,$2\n\taddu\t$24,$15\n\t rotr\t$16,$16,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$1,5\t# 55\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:55", "text": "addu\t$24,$31\t\t# 55\n\tand\t$25,$3,$7\n\t xor\t$16,$18\n\trotr\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$16,$8\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$16,$13\n\tand\t$25,$2\n\taddu\t$24,$15\n\t rotr\t$16,$16,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$1,5\t# 55\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$16,$8\n\tand\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$16,$13\n\tsll\t$30,$2,30\n\taddu\t$24,$25\n\t srl\t$6,$16,31\n\txor\t$25,$3,$7\n\t addu\t$16,$16\n\tand\t$25,$2\n\tsrl\t$2,$2,2\n\t or\t$16,$6\n\taddu\t$24,$15\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$7,$31\t\t# 56\n\tand\t$25,$2,$3\n\t xor\t$17,$19\n\trotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$17,$9\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$17,$14\n\tand\t$25,$1\n\taddu\t$7,$16\n\t rotr\t$17,$17,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$17,$19\n\tsll\t$25,$24,5\t# 56\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$17,$9\n\tand\t$25,$2,$3\n\taddu\t$7,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2161, "line_end": 2220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:56", "text": "rotr\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$17,$9\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$17,$14\n\tand\t$25,$1\n\taddu\t$7,$16\n\t rotr\t$17,$17,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$17,$19\n\tsll\t$25,$24,5\t# 56\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$17,$9\n\tand\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$17,$14\n\tsll\t$30,$1,30\n\taddu\t$7,$25\n\t srl\t$6,$17,31\n\txor\t$25,$2,$3\n\t addu\t$17,$17\n\tand\t$25,$1\n\tsrl\t$1,$1,2\n\t or\t$17,$6\n\taddu\t$7,$16\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$3,$31\t\t# 57\n\tand\t$25,$1,$2\n\t xor\t$18,$20\n\trotr\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$18,$10\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$18,$15\n\tand\t$25,$24\n\taddu\t$3,$17\n\t rotr\t$18,$18,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$18,$20\n\tsll\t$25,$7,5\t# 57\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$18,$10\n\tand\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$18,$15\n\tsll\t$30,$24,30\n\taddu\t$3,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2201, "line_end": 2260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:57", "text": "xor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$18,$15\n\tand\t$25,$24\n\taddu\t$3,$17\n\t rotr\t$18,$18,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$18,$20\n\tsll\t$25,$7,5\t# 57\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$18,$10\n\tand\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$18,$15\n\tsll\t$30,$24,30\n\taddu\t$3,$25\n\t srl\t$6,$18,31\n\txor\t$25,$1,$2\n\t addu\t$18,$18\n\tand\t$25,$24\n\tsrl\t$24,$24,2\n\t or\t$18,$6\n\taddu\t$3,$17\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$2,$31\t\t# 58\n\tand\t$25,$24,$1\n\t xor\t$19,$21\n\trotr\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$19,$11\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$19,$16\n\tand\t$25,$7\n\taddu\t$2,$18\n\t rotr\t$19,$19,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$19,$21\n\tsll\t$25,$3,5\t# 58\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$19,$11\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$19,$16\n\tsll\t$30,$7,30\n\taddu\t$2,$25\n\t srl\t$6,$19,31\n\txor\t$25,$24,$1\n\t addu\t$19,$19", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2241, "line_end": 2300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:58", "text": "and\t$25,$7\n\taddu\t$2,$18\n\t rotr\t$19,$19,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$19,$21\n\tsll\t$25,$3,5\t# 58\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$19,$11\n\tand\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$19,$16\n\tsll\t$30,$7,30\n\taddu\t$2,$25\n\t srl\t$6,$19,31\n\txor\t$25,$24,$1\n\t addu\t$19,$19\n\tand\t$25,$7\n\tsrl\t$7,$7,2\n\t or\t$19,$6\n\taddu\t$2,$18\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\taddu\t$1,$31\t\t# 59\n\tand\t$25,$7,$24\n\t xor\t$20,$22\n\trotr\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$20,$12\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$20,$17\n\tand\t$25,$3\n\taddu\t$1,$19\n\t rotr\t$20,$20,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$2,5\t# 59\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$20,$12\n\tand\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$20,$17\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$20,31\n\txor\t$25,$7,$24\n\t addu\t$20,$20\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\t or\t$20,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2281, "line_end": 2340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:59", "text": "rotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$2,5\t# 59\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$20,$12\n\tand\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$20,$17\n\tsll\t$30,$3,30\n\taddu\t$1,$25\n\t srl\t$6,$20,31\n\txor\t$25,$7,$24\n\t addu\t$20,$20\n\tand\t$25,$3\n\tsrl\t$3,$3,2\n\t or\t$20,$6\n\taddu\t$1,$19\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\tlui\t$31,0xca62\n\tori\t$31,0xc1d6\t# K_60_79\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$21,$23\n\taddu\t$24,$31\t\t# 60\n\trotr\t$6,$1,27\n\t xor\t$21,$13\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$21,$18\n\txor\t$25,$2\n\taddu\t$24,$20\n\t rotr\t$21,$21,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$21,$23\n\tsll\t$25,$1,5\t# 60\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$21,$13\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$21,$18\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$21,31\n\t addu\t$21,$21\n\tsrl\t$2,$2,2\n\taddu\t$24,$20\n\t or\t$21,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2321, "line_end": 2380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:60", "text": "xor\t$21,$23\n\tsll\t$25,$1,5\t# 60\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$21,$13\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$21,$18\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$21,31\n\t addu\t$21,$21\n\tsrl\t$2,$2,2\n\taddu\t$24,$20\n\t or\t$21,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$22,$8\n\taddu\t$7,$31\t\t# 61\n\trotr\t$6,$24,27\n\t xor\t$22,$14\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$22,$19\n\txor\t$25,$1\n\taddu\t$7,$21\n\t rotr\t$22,$22,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$22,$8\n\tsll\t$25,$24,5\t# 61\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$22,$14\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$22,$19\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$22,31\n\t addu\t$22,$22\n\tsrl\t$1,$1,2\n\taddu\t$7,$21\n\t or\t$22,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$23,$9\n\taddu\t$3,$31\t\t# 62\n\trotr\t$6,$7,27\n\t xor\t$23,$15\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$23,$20", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2361, "line_end": 2420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:61", "text": "addu\t$7,$6\n\t xor\t$22,$19\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$22,31\n\t addu\t$22,$22\n\tsrl\t$1,$1,2\n\taddu\t$7,$21\n\t or\t$22,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$23,$9\n\taddu\t$3,$31\t\t# 62\n\trotr\t$6,$7,27\n\t xor\t$23,$15\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$23,$20\n\txor\t$25,$24\n\taddu\t$3,$22\n\t rotr\t$23,$23,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$23,$9\n\tsll\t$25,$7,5\t# 62\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$23,$15\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$23,$20\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$23,31\n\t addu\t$23,$23\n\tsrl\t$24,$24,2\n\taddu\t$3,$22\n\t or\t$23,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$8,$10\n\taddu\t$2,$31\t\t# 63\n\trotr\t$6,$3,27\n\t xor\t$8,$16\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$8,$21\n\txor\t$25,$7\n\taddu\t$2,$23\n\t rotr\t$8,$8,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$8,$10", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2401, "line_end": 2460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:62", "text": "addu\t$3,$22\n\t or\t$23,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$8,$10\n\taddu\t$2,$31\t\t# 63\n\trotr\t$6,$3,27\n\t xor\t$8,$16\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$8,$21\n\txor\t$25,$7\n\taddu\t$2,$23\n\t rotr\t$8,$8,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$8,$10\n\tsll\t$25,$3,5\t# 63\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$8,$16\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$8,$21\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$8,31\n\t addu\t$8,$8\n\tsrl\t$7,$7,2\n\taddu\t$2,$23\n\t or\t$8,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$9,$11\n\taddu\t$1,$31\t\t# 64\n\trotr\t$6,$2,27\n\t xor\t$9,$17\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$9,$22\n\txor\t$25,$3\n\taddu\t$1,$8\n\t rotr\t$9,$9,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$9,$11\n\tsll\t$25,$2,5\t# 64\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$9,$17\n\txor\t$25,$7,$24\n\taddu\t$1,$6", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2441, "line_end": 2500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:63", "text": "addu\t$1,$31\t\t# 64\n\trotr\t$6,$2,27\n\t xor\t$9,$17\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$9,$22\n\txor\t$25,$3\n\taddu\t$1,$8\n\t rotr\t$9,$9,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$9,$11\n\tsll\t$25,$2,5\t# 64\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$9,$17\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$9,$22\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$9,31\n\t addu\t$9,$9\n\tsrl\t$3,$3,2\n\taddu\t$1,$8\n\t or\t$9,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$10,$12\n\taddu\t$24,$31\t\t# 65\n\trotr\t$6,$1,27\n\t xor\t$10,$18\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$10,$23\n\txor\t$25,$2\n\taddu\t$24,$9\n\t rotr\t$10,$10,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$10,$12\n\tsll\t$25,$1,5\t# 65\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$10,$18\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$10,$23\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$10,31\n\t addu\t$10,$10\n\tsrl\t$2,$2,2\n\taddu\t$24,$9", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2481, "line_end": 2540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:64", "text": "addu\t$24,$9\n\t rotr\t$10,$10,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$10,$12\n\tsll\t$25,$1,5\t# 65\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$10,$18\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$10,$23\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$10,31\n\t addu\t$10,$10\n\tsrl\t$2,$2,2\n\taddu\t$24,$9\n\t or\t$10,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$11,$13\n\taddu\t$7,$31\t\t# 66\n\trotr\t$6,$24,27\n\t xor\t$11,$19\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$11,$8\n\txor\t$25,$1\n\taddu\t$7,$10\n\t rotr\t$11,$11,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$11,$13\n\tsll\t$25,$24,5\t# 66\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$11,$19\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$11,$8\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$11,31\n\t addu\t$11,$11\n\tsrl\t$1,$1,2\n\taddu\t$7,$10\n\t or\t$11,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$12,$14\n\taddu\t$3,$31\t\t# 67", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2521, "line_end": 2580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:65", "text": "addu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$11,$19\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$11,$8\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$11,31\n\t addu\t$11,$11\n\tsrl\t$1,$1,2\n\taddu\t$7,$10\n\t or\t$11,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$12,$14\n\taddu\t$3,$31\t\t# 67\n\trotr\t$6,$7,27\n\t xor\t$12,$20\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$12,$9\n\txor\t$25,$24\n\taddu\t$3,$11\n\t rotr\t$12,$12,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$12,$14\n\tsll\t$25,$7,5\t# 67\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$12,$20\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$12,$9\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$12,31\n\t addu\t$12,$12\n\tsrl\t$24,$24,2\n\taddu\t$3,$11\n\t or\t$12,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$13,$15\n\taddu\t$2,$31\t\t# 68\n\trotr\t$6,$3,27\n\t xor\t$13,$21\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$13,$10\n\txor\t$25,$7\n\taddu\t$2,$12", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2561, "line_end": 2620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:66", "text": "sll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$12,31\n\t addu\t$12,$12\n\tsrl\t$24,$24,2\n\taddu\t$3,$11\n\t or\t$12,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$13,$15\n\taddu\t$2,$31\t\t# 68\n\trotr\t$6,$3,27\n\t xor\t$13,$21\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$13,$10\n\txor\t$25,$7\n\taddu\t$2,$12\n\t rotr\t$13,$13,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$13,$15\n\tsll\t$25,$3,5\t# 68\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$13,$21\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$13,$10\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$13,31\n\t addu\t$13,$13\n\tsrl\t$7,$7,2\n\taddu\t$2,$12\n\t or\t$13,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$14,$16\n\taddu\t$1,$31\t\t# 69\n\trotr\t$6,$2,27\n\t xor\t$14,$22\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$14,$11\n\txor\t$25,$3\n\taddu\t$1,$13\n\t rotr\t$14,$14,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$14,$16\n\tsll\t$25,$2,5\t# 69\n\taddu\t$1,$31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2601, "line_end": 2660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:67", "text": "or\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$14,$16\n\taddu\t$1,$31\t\t# 69\n\trotr\t$6,$2,27\n\t xor\t$14,$22\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$14,$11\n\txor\t$25,$3\n\taddu\t$1,$13\n\t rotr\t$14,$14,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$14,$16\n\tsll\t$25,$2,5\t# 69\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$14,$22\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$14,$11\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$14,31\n\t addu\t$14,$14\n\tsrl\t$3,$3,2\n\taddu\t$1,$13\n\t or\t$14,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$15,$17\n\taddu\t$24,$31\t\t# 70\n\trotr\t$6,$1,27\n\t xor\t$15,$23\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$15,$12\n\txor\t$25,$2\n\taddu\t$24,$14\n\t rotr\t$15,$15,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$15,$17\n\tsll\t$25,$1,5\t# 70\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$15,$23\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$15,$12\n\tsll\t$30,$2,30", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2641, "line_end": 2700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:68", "text": "xor\t$15,$23\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$15,$12\n\txor\t$25,$2\n\taddu\t$24,$14\n\t rotr\t$15,$15,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$15,$17\n\tsll\t$25,$1,5\t# 70\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$15,$23\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$15,$12\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$15,31\n\t addu\t$15,$15\n\tsrl\t$2,$2,2\n\taddu\t$24,$14\n\t or\t$15,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$16,$18\n\taddu\t$7,$31\t\t# 71\n\trotr\t$6,$24,27\n\t xor\t$16,$8\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$16,$13\n\txor\t$25,$1\n\taddu\t$7,$15\n\t rotr\t$16,$16,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$24,5\t# 71\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$16,$8\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$16,$13\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$16,31\n\t addu\t$16,$16\n\tsrl\t$1,$1,2\n\taddu\t$7,$15\n\t or\t$16,$6\n\tor\t$1,$30", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2681, "line_end": 2740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:69", "text": "rotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$16,$18\n\tsll\t$25,$24,5\t# 71\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$16,$8\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$16,$13\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$16,31\n\t addu\t$16,$16\n\tsrl\t$1,$1,2\n\taddu\t$7,$15\n\t or\t$16,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$17,$19\n\taddu\t$3,$31\t\t# 72\n\trotr\t$6,$7,27\n\t xor\t$17,$9\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$17,$14\n\txor\t$25,$24\n\taddu\t$3,$16\n\t rotr\t$17,$17,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$17,$19\n\tsll\t$25,$7,5\t# 72\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$17,$9\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$17,$14\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$17,31\n\t addu\t$17,$17\n\tsrl\t$24,$24,2\n\taddu\t$3,$16\n\t or\t$17,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$18,$20\n\taddu\t$2,$31\t\t# 73\n\trotr\t$6,$3,27\n\t xor\t$18,$10", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2721, "line_end": 2780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:70", "text": "addu\t$3,$25\n\t xor\t$17,$9\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$17,$14\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$17,31\n\t addu\t$17,$17\n\tsrl\t$24,$24,2\n\taddu\t$3,$16\n\t or\t$17,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$18,$20\n\taddu\t$2,$31\t\t# 73\n\trotr\t$6,$3,27\n\t xor\t$18,$10\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$18,$15\n\txor\t$25,$7\n\taddu\t$2,$17\n\t rotr\t$18,$18,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$18,$20\n\tsll\t$25,$3,5\t# 73\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$18,$10\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$18,$15\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$18,31\n\t addu\t$18,$18\n\tsrl\t$7,$7,2\n\taddu\t$2,$17\n\t or\t$18,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$19,$21\n\taddu\t$1,$31\t\t# 74\n\trotr\t$6,$2,27\n\t xor\t$19,$11\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$19,$16\n\txor\t$25,$3\n\taddu\t$1,$18\n\t rotr\t$19,$19,31\n\trotr\t$3,$3,2", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2761, "line_end": 2820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:71", "text": "srl\t$6,$18,31\n\t addu\t$18,$18\n\tsrl\t$7,$7,2\n\taddu\t$2,$17\n\t or\t$18,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$19,$21\n\taddu\t$1,$31\t\t# 74\n\trotr\t$6,$2,27\n\t xor\t$19,$11\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$19,$16\n\txor\t$25,$3\n\taddu\t$1,$18\n\t rotr\t$19,$19,31\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t xor\t$19,$21\n\tsll\t$25,$2,5\t# 74\n\taddu\t$1,$31\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t xor\t$19,$11\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t xor\t$19,$16\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t srl\t$6,$19,31\n\t addu\t$19,$19\n\tsrl\t$3,$3,2\n\taddu\t$1,$18\n\t or\t$19,$6\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$20,$22\n\taddu\t$24,$31\t\t# 75\n\trotr\t$6,$1,27\n\t xor\t$20,$12\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$20,$17\n\txor\t$25,$2\n\taddu\t$24,$19\n\t rotr\t$20,$20,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$1,5\t# 75\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2801, "line_end": 2860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:72", "text": "#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$20,$22\n\taddu\t$24,$31\t\t# 75\n\trotr\t$6,$1,27\n\t xor\t$20,$12\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$20,$17\n\txor\t$25,$2\n\taddu\t$24,$19\n\t rotr\t$20,$20,31\n\trotr\t$2,$2,2\n\taddu\t$24,$25\n#else\n\t xor\t$20,$22\n\tsll\t$25,$1,5\t# 75\n\taddu\t$24,$31\n\tsrl\t$6,$1,27\n\taddu\t$24,$25\n\t xor\t$20,$12\n\txor\t$25,$3,$7\n\taddu\t$24,$6\n\t xor\t$20,$17\n\tsll\t$30,$2,30\n\txor\t$25,$2\n\t srl\t$6,$20,31\n\t addu\t$20,$20\n\tsrl\t$2,$2,2\n\taddu\t$24,$19\n\t or\t$20,$6\n\tor\t$2,$30\n\taddu\t$24,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$21,$23\n\taddu\t$7,$31\t\t# 76\n\trotr\t$6,$24,27\n\t xor\t$21,$13\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$21,$18\n\txor\t$25,$1\n\taddu\t$7,$20\n\t rotr\t$21,$21,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$21,$23\n\tsll\t$25,$24,5\t# 76\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$21,$13\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$21,$18\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$21,31", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2841, "line_end": 2900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:73", "text": "addu\t$7,$6\n\t xor\t$21,$18\n\txor\t$25,$1\n\taddu\t$7,$20\n\t rotr\t$21,$21,31\n\trotr\t$1,$1,2\n\taddu\t$7,$25\n#else\n\t xor\t$21,$23\n\tsll\t$25,$24,5\t# 76\n\taddu\t$7,$31\n\tsrl\t$6,$24,27\n\taddu\t$7,$25\n\t xor\t$21,$13\n\txor\t$25,$2,$3\n\taddu\t$7,$6\n\t xor\t$21,$18\n\tsll\t$30,$1,30\n\txor\t$25,$1\n\t srl\t$6,$21,31\n\t addu\t$21,$21\n\tsrl\t$1,$1,2\n\taddu\t$7,$20\n\t or\t$21,$6\n\tor\t$1,$30\n\taddu\t$7,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$22,$8\n\taddu\t$3,$31\t\t# 77\n\trotr\t$6,$7,27\n\t xor\t$22,$14\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$22,$19\n\txor\t$25,$24\n\taddu\t$3,$21\n\t rotr\t$22,$22,31\n\trotr\t$24,$24,2\n\taddu\t$3,$25\n#else\n\t xor\t$22,$8\n\tsll\t$25,$7,5\t# 77\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$22,$14\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$22,$19\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$22,31\n\t addu\t$22,$22\n\tsrl\t$24,$24,2\n\taddu\t$3,$21\n\t or\t$22,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2881, "line_end": 2940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:74", "text": "#else\n\t xor\t$22,$8\n\tsll\t$25,$7,5\t# 77\n\taddu\t$3,$31\n\tsrl\t$6,$7,27\n\taddu\t$3,$25\n\t xor\t$22,$14\n\txor\t$25,$1,$2\n\taddu\t$3,$6\n\t xor\t$22,$19\n\tsll\t$30,$24,30\n\txor\t$25,$24\n\t srl\t$6,$22,31\n\t addu\t$22,$22\n\tsrl\t$24,$24,2\n\taddu\t$3,$21\n\t or\t$22,$6\n\tor\t$24,$30\n\taddu\t$3,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t xor\t$23,$9\n\taddu\t$2,$31\t\t# 78\n\trotr\t$6,$3,27\n\t xor\t$23,$15\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$23,$20\n\txor\t$25,$7\n\taddu\t$2,$22\n\t rotr\t$23,$23,31\n\trotr\t$7,$7,2\n\taddu\t$2,$25\n#else\n\t xor\t$23,$9\n\tsll\t$25,$3,5\t# 78\n\taddu\t$2,$31\n\tsrl\t$6,$3,27\n\taddu\t$2,$25\n\t xor\t$23,$15\n\txor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$23,$20\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$23,31\n\t addu\t$23,$23\n\tsrl\t$7,$7,2\n\taddu\t$2,$22\n\t or\t$23,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t lw\t$8,0($4)\n\taddu\t$1,$31\t\t# 79\n\t lw\t$9,4($4)\n\trotr\t$6,$2,27\n\t lw\t$10,8($4)\n\txor\t$25,$7,$24", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2921, "line_end": 2980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:75", "text": "xor\t$25,$24,$1\n\taddu\t$2,$6\n\t xor\t$23,$20\n\tsll\t$30,$7,30\n\txor\t$25,$7\n\t srl\t$6,$23,31\n\t addu\t$23,$23\n\tsrl\t$7,$7,2\n\taddu\t$2,$22\n\t or\t$23,$6\n\tor\t$7,$30\n\taddu\t$2,$25\n#endif\n#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)\n\t lw\t$8,0($4)\n\taddu\t$1,$31\t\t# 79\n\t lw\t$9,4($4)\n\trotr\t$6,$2,27\n\t lw\t$10,8($4)\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t lw\t$11,12($4)\n\txor\t$25,$3\n\taddu\t$1,$23\n\t lw\t$12,16($4)\n\trotr\t$3,$3,2\n\taddu\t$1,$25\n#else\n\t lw\t$8,0($4)\n\tsll\t$25,$2,5\t# 79\n\taddu\t$1,$31\n\t lw\t$9,4($4)\n\tsrl\t$6,$2,27\n\taddu\t$1,$25\n\t lw\t$10,8($4)\n\txor\t$25,$7,$24\n\taddu\t$1,$6\n\t lw\t$11,12($4)\n\tsll\t$30,$3,30\n\txor\t$25,$3\n\t lw\t$12,16($4)\n\tsrl\t$3,$3,2\n\taddu\t$1,$23\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\tdaddu $5,64\n\tld\t$6,0($29)\n\n\taddu\t$1,$8\n\taddu\t$2,$9\n\tsw\t$1,0($4)\n\taddu\t$3,$10\n\taddu\t$7,$11\n\tsw\t$2,4($4)\n\taddu\t$24,$12\n\tsw\t$3,8($4)\n\tsw\t$7,12($4)\n\tsw\t$24,16($4)\n\t.set\tnoreorder", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 2961, "line_end": 3020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S:76", "text": "lw\t$12,16($4)\n\tsrl\t$3,$3,2\n\taddu\t$1,$23\n\tor\t$3,$30\n\taddu\t$1,$25\n#endif\n\tdaddu $5,64\n\tld\t$6,0($29)\n\n\taddu\t$1,$8\n\taddu\t$2,$9\n\tsw\t$1,0($4)\n\taddu\t$3,$10\n\taddu\t$7,$11\n\tsw\t$2,4($4)\n\taddu\t$24,$12\n\tsw\t$3,8($4)\n\tsw\t$7,12($4)\n\tsw\t$24,16($4)\n\t.set\tnoreorder\n\tbne\t$5,$6,.Loop\n\tnop\n\n\t.set\tnoreorder\n\tld\t$31,(16-1)*8($29)\n\tld\t$30,(16-2)*8($29)\n\tld\t$23,(16-3)*8($29)\n\tld\t$22,(16-4)*8($29)\n\tld\t$21,(16-5)*8($29)\n\tld\t$20,(16-6)*8($29)\n\tld\t$19,(16-7)*8($29)\n\tld\t$18,(16-8)*8($29)\n\tld\t$17,(16-9)*8($29)\n\tld\t$16,(16-10)*8($29)\n\tjr\t$31\n\tdaddu $29,16*8\n.end\tsha1_block_data_order\n.rdata\n.asciiz\t\"SHA1 for MIPS, CRYPTOGAMS by <appro@openssl.org>\"", "arch": "mips", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/mips/sha1-mips64.S", "line_start": 3001, "line_end": 3039}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:1", "text": ".machine\t\"any\"\n.text\n\n.macro\tSAVE_REGS\n\tmflr\t0\n\tstd\t0, 16(1)\n\tstdu\t1,-512(1)\n\n\tstd\t14, 112(1)\n\tstd\t15, 120(1)\n\tstd\t16, 128(1)\n\tstd\t17, 136(1)\n\tstd\t18, 144(1)\n\tstd\t19, 152(1)\n\tstd\t20, 160(1)\n\tstd\t21, 168(1)\n\tstd\t22, 176(1)\n\tstd\t23, 184(1)\n\tstd\t24, 192(1)\n\n\tstxv\t32+20, 256(1)\n\tstxv\t32+21, 256+16(1)\n\tstxv\t32+22, 256+32(1)\n\tstxv\t32+23, 256+48(1)\n\tstxv\t32+24, 256+64(1)\n\tstxv\t32+25, 256+80(1)\n\tstxv\t32+26, 256+96(1)\n\tstxv\t32+27, 256+112(1)\n\tstxv\t32+28, 256+128(1)\n\tstxv\t32+29, 256+144(1)\n\tstxv\t32+30, 256+160(1)\n\tstxv\t32+31, 256+176(1)\n.endm\n\n.macro\tRESTORE_REGS\n\tlxv\t32+20, 256(1)\n\tlxv\t32+21, 256+16(1)\n\tlxv\t32+22, 256+32(1)\n\tlxv\t32+23, 256+48(1)\n\tlxv\t32+24, 256+64(1)\n\tlxv\t32+25, 256+80(1)\n\tlxv\t32+26, 256+96(1)\n\tlxv\t32+27, 256+112(1)\n\tlxv\t32+28, 256+128(1)\n\tlxv\t32+29, 256+144(1)\n\tlxv\t32+30, 256+160(1)\n\tlxv\t32+31, 256+176(1)\n\n\tld\t14, 112(1)\n\tld\t15, 120(1)\n\tld\t16, 128(1)\n\tld\t17, 136(1)\n\tld\t18, 144(1)\n\tld\t19, 152(1)\n\tld\t20, 160(1)\n\tld\t21, 168(1)\n\tld\t22, 176(1)\n\tld\t23, 184(1)\n\tld\t24, 192(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:2", "text": "lxv\t32+25, 256+80(1)\n\tlxv\t32+26, 256+96(1)\n\tlxv\t32+27, 256+112(1)\n\tlxv\t32+28, 256+128(1)\n\tlxv\t32+29, 256+144(1)\n\tlxv\t32+30, 256+160(1)\n\tlxv\t32+31, 256+176(1)\n\n\tld\t14, 112(1)\n\tld\t15, 120(1)\n\tld\t16, 128(1)\n\tld\t17, 136(1)\n\tld\t18, 144(1)\n\tld\t19, 152(1)\n\tld\t20, 160(1)\n\tld\t21, 168(1)\n\tld\t22, 176(1)\n\tld\t23, 184(1)\n\tld\t24, 192(1)\n\n\taddi\t1, 1, 512\n\tld\t0, 16(1)\n\tmtlr\t0\n.endm\n\n\n.macro\tAES_CIPHER_4x r\n\t.long\t0x11EF0508\n\t.long\t0x12100508\n\t.long\t0x12310508\n\t.long\t0x12520508\n.endm\n\n\n.macro\tAES_CIPHER_8x r\n\t.long\t0x11EF0508\n\t.long\t0x12100508\n\t.long\t0x12310508\n\t.long\t0x12520508\n\t.long\t0x12730508\n\t.long\t0x12940508\n\t.long\t0x12B50508\n\t.long\t0x12D60508\n.endm\n\n.macro\t.LOOP_8AES_STATE\n\tAES_CIPHER_8x\t23\n\tAES_CIPHER_8x\t24\n\tAES_CIPHER_8x\t25\n\tAES_CIPHER_8x\t26\n\tAES_CIPHER_8x\t27\n\tAES_CIPHER_8x\t28\n\tAES_CIPHER_8x\t29\n\tAES_CIPHER_8x\t1\n.endm", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:3", "text": ".long\t0x12940508\n\t.long\t0x12B50508\n\t.long\t0x12D60508\n.endm\n\n.macro\t.LOOP_8AES_STATE\n\tAES_CIPHER_8x\t23\n\tAES_CIPHER_8x\t24\n\tAES_CIPHER_8x\t25\n\tAES_CIPHER_8x\t26\n\tAES_CIPHER_8x\t27\n\tAES_CIPHER_8x\t28\n\tAES_CIPHER_8x\t29\n\tAES_CIPHER_8x\t1\n.endm\n\n\n\n\n\n\n\n\n\n\n\n\n.macro\tPPC_GFMUL128_8x\n\n\t.long\t0x12EC7CC8\n\t.long\t0x130984C8\n\t.long\t0x13268CC8\n\t.long\t0x134394C8\n\n\tvxor\t23, 23, 24\n\tvxor\t23, 23, 25\n\tvxor\t23, 23, 26\n\n\t.long\t0x136D7CC8\n\t.long\t0x138A84C8\n\t.long\t0x13278CC8\n\t.long\t0x134494C8\n\n\tvxor\t24, 27, 28\n\tvxor\t24, 24, 25\n\tvxor\t24, 24, 26\n\n\t.long\t0x134E7CC8\n\t.long\t0x136B84C8\n\t.long\t0x13888CC8\n\t.long\t0x13A594C8\n\n\tvxor\t26, 26, 27\n\tvxor\t26, 26, 28\n\tvxor\t26, 26, 29\n\n\n\t.long\t0x139714C8\n\n\tvxor\t1, 1, 1", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:4", "text": ".long\t0x13278CC8\n\t.long\t0x134494C8\n\n\tvxor\t24, 27, 28\n\tvxor\t24, 24, 25\n\tvxor\t24, 24, 26\n\n\t.long\t0x134E7CC8\n\t.long\t0x136B84C8\n\t.long\t0x13888CC8\n\t.long\t0x13A594C8\n\n\tvxor\t26, 26, 27\n\tvxor\t26, 26, 28\n\tvxor\t26, 26, 29\n\n\n\t.long\t0x139714C8\n\n\tvxor\t1, 1, 1\n\tvsldoi\t25, 24, 1, 8\n\tvsldoi\t1, 1, 24, 8\n\tvxor\t23, 23, 25\n\n\n\n\n\txxlor\t32+29, 10, 10\n\tvpermxor\t23, 23, 28, 29\n\n\tvxor\t24, 26, 1\n\n\n\n\n\n\n\n\tvpermxor\t27, 23, 24, 29\n\t.long\t0x12F714C8\n\tvxor\t0, 23, 27\n\n\tvxor\t19, 19, 0\n\n\n\t.long\t0x1309A4C8\n\t.long\t0x1326ACC8\n\t.long\t0x1343B4C8\n\t.long\t0x12EC9CC8\n\n\tvxor\t23, 23, 24\n\tvxor\t23, 23, 25\n\tvxor\t23, 23, 26\n\n\t.long\t0x136D9CC8\n\t.long\t0x138AA4C8\n\t.long\t0x1327ACC8\n\t.long\t0x1344B4C8\n\n\tvxor\t24, 27, 28", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:5", "text": "vxor\t0, 23, 27\n\n\tvxor\t19, 19, 0\n\n\n\t.long\t0x1309A4C8\n\t.long\t0x1326ACC8\n\t.long\t0x1343B4C8\n\t.long\t0x12EC9CC8\n\n\tvxor\t23, 23, 24\n\tvxor\t23, 23, 25\n\tvxor\t23, 23, 26\n\n\t.long\t0x136D9CC8\n\t.long\t0x138AA4C8\n\t.long\t0x1327ACC8\n\t.long\t0x1344B4C8\n\n\tvxor\t24, 27, 28\n\tvxor\t24, 24, 25\n\tvxor\t24, 24, 26\n\n\t.long\t0x134E9CC8\n\t.long\t0x136BA4C8\n\t.long\t0x1388ACC8\n\t.long\t0x13A5B4C8\n\n\tvxor\t26, 26, 27\n\tvxor\t26, 26, 28\n\tvxor\t26, 26, 29\n\n\n\t.long\t0x139714C8\n\n\tvxor\t1, 1, 1\n\tvsldoi\t25, 24, 1, 8\n\tvsldoi\t1, 1, 24, 8\n\tvxor\t23, 23, 25\n\n\n\n\n\txxlor\t32+29, 10, 10\n\tvpermxor\t23, 23, 28, 29\n\n\tvxor\t24, 26, 1\n\n\n\n\n\n\n\n\tvpermxor\t27, 23, 24, 29\n\t.long\t0x12F714C8\n\tvxor\t0, 23, 27\n.endm", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:6", "text": "xxlor\t32+29, 10, 10\n\tvpermxor\t23, 23, 28, 29\n\n\tvxor\t24, 26, 1\n\n\n\n\n\n\n\n\tvpermxor\t27, 23, 24, 29\n\t.long\t0x12F714C8\n\tvxor\t0, 23, 27\n.endm\n\n\n\n\n\n\n.macro\tPPC_GHASH1x H S1\n\n\tvxor\t1, 1, 1\n\n\t.long\t0x12C304C8\n\t.long\t0x12E404C8\n\t.long\t0x130504C8\n\n\t.long\t0x137614C8\n\n\tvsldoi\t25, 23, 1, 8\n\tvsldoi\t26, 1, 23, 8\n\tvxor\t22, 22, 25\n\tvxor\t24, 24, 26\n\n\txxlor\t32+25, 10, 10\n\tvpermxor\t22, 22, 27, 25\n\n\n\n\n\tvpermxor\t23, 22, 24, 25\n\t.long\t0x12D614C8\n\n\tvxor\t\\H, 22, 23\n.endm\n\n\n\n\n\n\n\n.macro\t.LOAD_HASH_TABLE\n\n\tlxvb16x\t32, 0, 8", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:7", "text": "vpermxor\t22, 22, 27, 25\n\n\n\n\n\tvpermxor\t23, 22, 24, 25\n\t.long\t0x12D614C8\n\n\tvxor\t\\H, 22, 23\n.endm\n\n\n\n\n\n\n\n.macro\t.LOAD_HASH_TABLE\n\n\tlxvb16x\t32, 0, 8\n\n\tvxor\t1, 1, 1\n\n\tli\t10, 32\n\tlxvd2x\t2+32, 10, 8\n\n\n\tli\t10, 64\n\tlxvd2x\t4+32, 10, 8\n\tvsldoi\t3, 1, 4, 8\n\tvsldoi\t5, 4, 1, 8\n\tli\t10, 112\n\tlxvd2x\t7+32, 10, 8\n\tvsldoi\t6, 1, 7, 8\n\tvsldoi\t8, 7, 1, 8\n\tli\t10, 160\n\tlxvd2x\t10+32, 10, 8\n\tvsldoi\t9, 1, 10, 8\n\tvsldoi\t11, 10, 1, 8\n\tli\t10, 208\n\tlxvd2x\t13+32, 10, 8\n\tvsldoi\t12, 1, 13, 8\n\tvsldoi\t14, 13, 1, 8\n.endm\n\n.macro\tPROCESS_8X_AES_STATES\n\t.long\t0x11EF0D09\n\t.long\t0x12100D09\n\t.long\t0x12310D09\n\t.long\t0x12520D09\n\t.long\t0x12730D09\n\t.long\t0x12940D09\n\t.long\t0x12B50D09\n\t.long\t0x12D60D09\n\n\tlxvb16x\t32+23, 0, 14\n\tlxvb16x\t32+24, 15, 14\n\tlxvb16x\t32+25, 16, 14\n\tlxvb16x\t32+26, 17, 14\n\tlxvb16x\t32+27, 18, 14", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:8", "text": "lxvd2x\t13+32, 10, 8\n\tvsldoi\t12, 1, 13, 8\n\tvsldoi\t14, 13, 1, 8\n.endm\n\n.macro\tPROCESS_8X_AES_STATES\n\t.long\t0x11EF0D09\n\t.long\t0x12100D09\n\t.long\t0x12310D09\n\t.long\t0x12520D09\n\t.long\t0x12730D09\n\t.long\t0x12940D09\n\t.long\t0x12B50D09\n\t.long\t0x12D60D09\n\n\tlxvb16x\t32+23, 0, 14\n\tlxvb16x\t32+24, 15, 14\n\tlxvb16x\t32+25, 16, 14\n\tlxvb16x\t32+26, 17, 14\n\tlxvb16x\t32+27, 18, 14\n\tlxvb16x\t32+28, 19, 14\n\tlxvb16x\t32+29, 20, 14\n\tlxvb16x\t32+30, 21, 14\n\taddi\t14, 14, 128\n\n\tvxor\t15, 15, 23\n\tvxor\t16, 16, 24\n\tvxor\t17, 17, 25\n\tvxor\t18, 18, 26\n\tvxor\t19, 19, 27\n\tvxor\t20, 20, 28\n\tvxor\t21, 21, 29\n\tvxor\t22, 22, 30\n\n\tstxvb16x\t47, 0, 9\n\tstxvb16x\t48, 15, 9\n\tstxvb16x\t49, 16, 9\n\tstxvb16x\t50, 17, 9\n\tstxvb16x\t51, 18, 9\n\tstxvb16x\t52, 19, 9\n\tstxvb16x\t53, 20, 9\n\tstxvb16x\t54, 21, 9\n\taddi\t9, 9, 128\n.endm\n\n.macro\tCOMPUTE_STATES\n\txxlor\t32+15, 9, 9\n\tvadduwm\t15, 15, 31\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31\n\tvadduwm\t18, 17, 31\n\tvadduwm\t19, 18, 31\n\tvadduwm\t20, 19, 31\n\tvadduwm\t21, 20, 31\n\tvadduwm\t22, 21, 31\n\txxlor\t9, 32+22, 32+22\n\n\txxlxor\t32+15, 32+15, 0\n\txxlxor\t32+16, 32+16, 0\n\txxlxor\t32+17, 32+17, 0", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:9", "text": "stxvb16x\t53, 20, 9\n\tstxvb16x\t54, 21, 9\n\taddi\t9, 9, 128\n.endm\n\n.macro\tCOMPUTE_STATES\n\txxlor\t32+15, 9, 9\n\tvadduwm\t15, 15, 31\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31\n\tvadduwm\t18, 17, 31\n\tvadduwm\t19, 18, 31\n\tvadduwm\t20, 19, 31\n\tvadduwm\t21, 20, 31\n\tvadduwm\t22, 21, 31\n\txxlor\t9, 32+22, 32+22\n\n\txxlxor\t32+15, 32+15, 0\n\txxlxor\t32+16, 32+16, 0\n\txxlxor\t32+17, 32+17, 0\n\txxlxor\t32+18, 32+18, 0\n\txxlxor\t32+19, 32+19, 0\n\txxlxor\t32+20, 32+20, 0\n\txxlxor\t32+21, 32+21, 0\n\txxlxor\t32+22, 32+22, 0\n.endm\n\n\n\n\n\n\n\n\n.align\t4\naes_gcm_crypt_1x:\n.localentry\taes_gcm_crypt_1x,0\n\n\tcmpdi\t5, 16\n\tbge\t__More_1x\n\tblr\n__More_1x:\n\tli\t10, 16\n\tdivdu\t12, 5, 10\n\n\txxlxor\t32+15, 32+30, 0\n\n\n\tlxv\t32+16, 16(6)\n\tlxv\t32+17, 32(6)\n\tlxv\t32+18, 48(6)\n\tlxv\t32+19, 64(6)\n\tlxv\t32+20, 80(6)\n\tlxv\t32+21, 96(6)\n\tlxv\t32+28, 112(6)\n\tlxv\t32+29, 128(6)\n\n\tlwz\t23, 240(6)\n\taddi\t22, 23, -9", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:10", "text": "blr\n__More_1x:\n\tli\t10, 16\n\tdivdu\t12, 5, 10\n\n\txxlxor\t32+15, 32+30, 0\n\n\n\tlxv\t32+16, 16(6)\n\tlxv\t32+17, 32(6)\n\tlxv\t32+18, 48(6)\n\tlxv\t32+19, 64(6)\n\tlxv\t32+20, 80(6)\n\tlxv\t32+21, 96(6)\n\tlxv\t32+28, 112(6)\n\tlxv\t32+29, 128(6)\n\n\tlwz\t23, 240(6)\n\taddi\t22, 23, -9\n\n\tcmpdi\t12, 0\n\tbgt\t__Loop_1x\n\tblr\n\n__Loop_1x:\n\tmtctr\t22\n\taddi\t10, 6, 144\n\t.long\t0x11EF8508\n\t.long\t0x11EF8D08\n\t.long\t0x11EF9508\n\t.long\t0x11EF9D08\n\t.long\t0x11EFA508\n\t.long\t0x11EFAD08\n\t.long\t0x11EFE508\n\t.long\t0x11EFED08\n\n__Loop_aes_1state:\n\tlxv\t32+1, 0(10)\n\t.long\t0x11EF0D08\n\taddi\t10, 10, 16\n\tbdnz\t__Loop_aes_1state\n\tlxv\t32+1, 0(10)\n\tlxvb16x\t11, 0, 14\n\t.long\t0x11EF0D09\n\n\txxlxor\t32+15, 32+15, 11\n\tstxvb16x\t32+15, 0, 9\n\taddi\t14, 14, 16\n\taddi\t9, 9, 16\n\n\tcmpdi\t24, 0\n\tbne\t__Encrypt_1x\n\txxlor\t15+32, 11, 11\n__Encrypt_1x:\n\tvxor\t15, 15, 0\n\tPPC_GHASH1x\t0, 15\n\n\taddi\t5, 5, -16\n\taddi\t11, 11, 16", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:11", "text": "bdnz\t__Loop_aes_1state\n\tlxv\t32+1, 0(10)\n\tlxvb16x\t11, 0, 14\n\t.long\t0x11EF0D09\n\n\txxlxor\t32+15, 32+15, 11\n\tstxvb16x\t32+15, 0, 9\n\taddi\t14, 14, 16\n\taddi\t9, 9, 16\n\n\tcmpdi\t24, 0\n\tbne\t__Encrypt_1x\n\txxlor\t15+32, 11, 11\n__Encrypt_1x:\n\tvxor\t15, 15, 0\n\tPPC_GHASH1x\t0, 15\n\n\taddi\t5, 5, -16\n\taddi\t11, 11, 16\n\n\tvadduwm\t30, 30, 31\n\txxlxor\t32+15, 32+30, 0\n\taddi\t12, 12, -1\n\tcmpdi\t12, 0\n\tbgt\t__Loop_1x\n\n\tstxvb16x\t32+0, 0, 8\n\tblr\n.size\taes_gcm_crypt_1x,.-aes_gcm_crypt_1x\n\n\n\n\n\n\n\n\n.align\t4\n__Process_partial:\n.localentry\t__Process_partial,0\n\n\n\tvspltisb\t16,-1\n\tli\t12, 16\n\tsub\t12, 12, 5\n\tsldi\t12, 12, 3\n\tmtvsrdd\t32+17, 0, 12\n\tvslo\t16, 16, 17\n\n\tlxvb16x\t11, 0, 14\n\txxland\t11, 11, 32+16\n\n\n\txxlxor\t32+15, 32+30, 0\n\tlwz\t23, 240(6)\n\taddi\t22, 23, -1\n\tmtctr\t22\n\taddi\t10, 6, 16\n\n__Loop_aes_pstate:", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:12", "text": "vspltisb\t16,-1\n\tli\t12, 16\n\tsub\t12, 12, 5\n\tsldi\t12, 12, 3\n\tmtvsrdd\t32+17, 0, 12\n\tvslo\t16, 16, 17\n\n\tlxvb16x\t11, 0, 14\n\txxland\t11, 11, 32+16\n\n\n\txxlxor\t32+15, 32+30, 0\n\tlwz\t23, 240(6)\n\taddi\t22, 23, -1\n\tmtctr\t22\n\taddi\t10, 6, 16\n\n__Loop_aes_pstate:\n\tlxv\t32+1, 0(10)\n\t.long\t0x11EF0D08\n\taddi\t10, 10, 16\n\tbdnz\t__Loop_aes_pstate\n\tlxv\t32+1, 0(10)\n\t.long\t0x11EF0D09\n\n\txxlxor\t32+15, 32+15, 11\n\tvand\t15, 15, 16\n\n\n\n\tli\t10, 224\n\tstxvb16x\t15+32, 10, 1\n\taddi\t10, 1, 223\n\taddi\t12, 9, -1\n\tmtctr\t5\n__Write_partial:\n\tlbzu\t22, 1(10)\n\tstbu\t22, 1(12)\n\tbdnz\t__Write_partial\n\n\tcmpdi\t24, 0\n\tbne\t__Encrypt_partial\n\txxlor\t32+15, 11, 11\n__Encrypt_partial:\n\tvxor\t15, 15, 0\n\tPPC_GHASH1x\t0, 15\n\tli\t5, 0\n\tstxvb16x\t32+0, 0, 8\n\tblr\n.size\t__Process_partial,.-__Process_partial", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:13", "text": "bdnz\t__Write_partial\n\n\tcmpdi\t24, 0\n\tbne\t__Encrypt_partial\n\txxlor\t32+15, 11, 11\n__Encrypt_partial:\n\tvxor\t15, 15, 0\n\tPPC_GHASH1x\t0, 15\n\tli\t5, 0\n\tstxvb16x\t32+0, 0, 8\n\tblr\n.size\t__Process_partial,.-__Process_partial\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.global\tppc_aes_gcm_encrypt\n.align\t5\nppc_aes_gcm_encrypt:\n.localentry\tppc_aes_gcm_encrypt,0\n\n\tSAVE_REGS\n.LOAD_HASH_TABLE\n\n\n\tlxvb16x\t30+32, 0, 7\n\n\tmr\t14, 3\n\tmr\t9, 4\n\n\n\tvxor\t31, 31, 31\n\tvspltisb\t22,1\n\tvsldoi\t31, 31, 22,1\n\n\taddis\t11, 2, permx@toc@ha\n\taddi\t11, 11, permx@toc@l\n\tlxv\t10, 0(11)\n\tli\t11, 0\n\n\tlxv\t0, 0(6)\n\n\n\n\n\tcmpdi\t5, 128\n\tblt\t__Process_more_enc", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:14", "text": "mr\t9, 4\n\n\n\tvxor\t31, 31, 31\n\tvspltisb\t22,1\n\tvsldoi\t31, 31, 22,1\n\n\taddis\t11, 2, permx@toc@ha\n\taddi\t11, 11, permx@toc@l\n\tlxv\t10, 0(11)\n\tli\t11, 0\n\n\tlxv\t0, 0(6)\n\n\n\n\n\tcmpdi\t5, 128\n\tblt\t__Process_more_enc\n\n\n\tlxv\t32+23, 16(6)\n\tlxv\t32+24, 32(6)\n\tlxv\t32+25, 48(6)\n\tlxv\t32+26, 64(6)\n\tlxv\t32+27, 80(6)\n\tlxv\t32+28, 96(6)\n\tlxv\t32+29, 112(6)\n\tlxv\t32+1, 128(6)\n\n\n\tlwz\t23, 240(6)\n\n__Process_encrypt:\n\n\n\n__Process_8x_enc:\n\n\tli\t10, 128\n\tdivdu\t12, 5, 10\n\n\taddi\t12, 12, -1\n\n\tvor\t15,30,30\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31\n\tvadduwm\t18, 17, 31\n\tvadduwm\t19, 18, 31\n\tvadduwm\t20, 19, 31\n\tvadduwm\t21, 20, 31\n\tvadduwm\t22, 21, 31\n\txxlor\t9, 32+22, 32+22\n\n\n\txxlxor\t32+15, 32+15, 0\n\txxlxor\t32+16, 32+16, 0\n\txxlxor\t32+17, 32+17, 0\n\txxlxor\t32+18, 32+18, 0\n\txxlxor\t32+19, 32+19, 0", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:15", "text": "divdu\t12, 5, 10\n\n\taddi\t12, 12, -1\n\n\tvor\t15,30,30\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31\n\tvadduwm\t18, 17, 31\n\tvadduwm\t19, 18, 31\n\tvadduwm\t20, 19, 31\n\tvadduwm\t21, 20, 31\n\tvadduwm\t22, 21, 31\n\txxlor\t9, 32+22, 32+22\n\n\n\txxlxor\t32+15, 32+15, 0\n\txxlxor\t32+16, 32+16, 0\n\txxlxor\t32+17, 32+17, 0\n\txxlxor\t32+18, 32+18, 0\n\txxlxor\t32+19, 32+19, 0\n\txxlxor\t32+20, 32+20, 0\n\txxlxor\t32+21, 32+21, 0\n\txxlxor\t32+22, 32+22, 0\n\n\tli\t15, 16\n\tli\t16, 32\n\tli\t17, 48\n\tli\t18, 64\n\tli\t19, 80\n\tli\t20, 96\n\tli\t21, 112\n\n\n\n\n\n\taddi\t22, 23, -9\n\tmtctr\t22\n\taddi\t10, 6, 144\n\n.LOOP_8AES_STATE\n\n__PreLoop_aes_state:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__PreLoop_aes_state\n\tlxv\t32+1, 0(10)\n\n\tcmpdi\t12, 0\n\tbeq\t__Finish_ghash\n\n\n\n\n__Loop_8x_block_enc:\n\tPROCESS_8X_AES_STATES\n\n\n\tvxor\t15, 15, 0", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:16", "text": ".LOOP_8AES_STATE\n\n__PreLoop_aes_state:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__PreLoop_aes_state\n\tlxv\t32+1, 0(10)\n\n\tcmpdi\t12, 0\n\tbeq\t__Finish_ghash\n\n\n\n\n__Loop_8x_block_enc:\n\tPROCESS_8X_AES_STATES\n\n\n\tvxor\t15, 15, 0\n\tPPC_GFMUL128_8x\n\n\tCOMPUTE_STATES\n\n\taddi\t5, 5, -128\n\taddi\t11, 11, 128\n\n\tlxv\t32+23, 16(6)\n\tlxv\t32+24, 32(6)\n\tlxv\t32+25, 48(6)\n\tlxv\t32+26, 64(6)\n\tlxv\t32+27, 80(6)\n\tlxv\t32+28, 96(6)\n\tlxv\t32+29, 112(6)\n\tlxv\t32+1, 128(6)\n\n\n\n.LOOP_8AES_STATE\n\tmtctr\t22\n\taddi\t10, 6, 144\n\n__LastLoop_aes_state:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__LastLoop_aes_state\n\n\tlxv\t32+1, 0(10)\n\n\taddi\t12, 12, -1\n\tcmpdi\t12, 0\n\tbne\t__Loop_8x_block_enc\n\n\n\n\n__Finish_ghash:\n\tPROCESS_8X_AES_STATES", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:17", "text": "addi\t10, 6, 144\n\n__LastLoop_aes_state:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__LastLoop_aes_state\n\n\tlxv\t32+1, 0(10)\n\n\taddi\t12, 12, -1\n\tcmpdi\t12, 0\n\tbne\t__Loop_8x_block_enc\n\n\n\n\n__Finish_ghash:\n\tPROCESS_8X_AES_STATES\n\n\n\tvxor\t15, 15, 0\n\tPPC_GFMUL128_8x\n\n\n\txxlor\t30+32, 9, 9\n\tvadduwm\t30, 30, 31\n\tstxvb16x\t32+0, 0, 8\n\n\taddi\t5, 5, -128\n\taddi\t11, 11, 128\n\n\n\n\n\n\tcmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n__Process_more_enc:\n\tli\t24, 1\n\tbl\taes_gcm_crypt_1x\n\tcmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n\tbl\t__Process_partial\n\tb\taes_gcm_out\n\n.size\tppc_aes_gcm_encrypt,.-ppc_aes_gcm_encrypt\n\n\n\n\n\n\n\n.global\tppc_aes_gcm_decrypt\n.align\t5\nppc_aes_gcm_decrypt:\n.localentry\tppc_aes_gcm_decrypt, 0", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:18", "text": "li\t24, 1\n\tbl\taes_gcm_crypt_1x\n\tcmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n\tbl\t__Process_partial\n\tb\taes_gcm_out\n\n.size\tppc_aes_gcm_encrypt,.-ppc_aes_gcm_encrypt\n\n\n\n\n\n\n\n.global\tppc_aes_gcm_decrypt\n.align\t5\nppc_aes_gcm_decrypt:\n.localentry\tppc_aes_gcm_decrypt, 0\n\n\tSAVE_REGS\n.LOAD_HASH_TABLE\n\n\n\tlxvb16x\t30+32, 0, 7\n\n\tmr\t14, 3\n\tmr\t9, 4\n\n\n\tvxor\t31, 31, 31\n\tvspltisb\t22,1\n\tvsldoi\t31, 31, 22,1\n\n\taddis\t11, 2, permx@toc@ha\n\taddi\t11, 11, permx@toc@l\n\tlxv\t10, 0(11)\n\tli\t11, 0\n\n\tlxv\t0, 0(6)\n\n\n\n\n\tcmpdi\t5, 128\n\tblt\t__Process_more_dec\n\n\n\tlxv\t32+23, 16(6)\n\tlxv\t32+24, 32(6)\n\tlxv\t32+25, 48(6)\n\tlxv\t32+26, 64(6)\n\tlxv\t32+27, 80(6)\n\tlxv\t32+28, 96(6)\n\tlxv\t32+29, 112(6)\n\tlxv\t32+1, 128(6)\n\n\n\tlwz\t23, 240(6)", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:19", "text": "lxv\t0, 0(6)\n\n\n\n\n\tcmpdi\t5, 128\n\tblt\t__Process_more_dec\n\n\n\tlxv\t32+23, 16(6)\n\tlxv\t32+24, 32(6)\n\tlxv\t32+25, 48(6)\n\tlxv\t32+26, 64(6)\n\tlxv\t32+27, 80(6)\n\tlxv\t32+28, 96(6)\n\tlxv\t32+29, 112(6)\n\tlxv\t32+1, 128(6)\n\n\n\tlwz\t23, 240(6)\n\n__Process_decrypt:\n\n\n\n__Process_8x_dec:\n\n\tli\t10, 128\n\tdivdu\t12, 5, 10\n\n\taddi\t12, 12, -1\n\n\tvor\t15,30,30\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31\n\tvadduwm\t18, 17, 31\n\tvadduwm\t19, 18, 31\n\tvadduwm\t20, 19, 31\n\tvadduwm\t21, 20, 31\n\tvadduwm\t22, 21, 31\n\txxlor\t9, 32+22, 32+22\n\n\n\txxlxor\t32+15, 32+15, 0\n\txxlxor\t32+16, 32+16, 0\n\txxlxor\t32+17, 32+17, 0\n\txxlxor\t32+18, 32+18, 0\n\txxlxor\t32+19, 32+19, 0\n\txxlxor\t32+20, 32+20, 0\n\txxlxor\t32+21, 32+21, 0\n\txxlxor\t32+22, 32+22, 0\n\n\tli\t15, 16\n\tli\t16, 32\n\tli\t17, 48\n\tli\t18, 64\n\tli\t19, 80\n\tli\t20, 96\n\tli\t21, 112", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:20", "text": "xxlor\t9, 32+22, 32+22\n\n\n\txxlxor\t32+15, 32+15, 0\n\txxlxor\t32+16, 32+16, 0\n\txxlxor\t32+17, 32+17, 0\n\txxlxor\t32+18, 32+18, 0\n\txxlxor\t32+19, 32+19, 0\n\txxlxor\t32+20, 32+20, 0\n\txxlxor\t32+21, 32+21, 0\n\txxlxor\t32+22, 32+22, 0\n\n\tli\t15, 16\n\tli\t16, 32\n\tli\t17, 48\n\tli\t18, 64\n\tli\t19, 80\n\tli\t20, 96\n\tli\t21, 112\n\n\n\n\n\n\taddi\t22, 23, -9\n\tmtctr\t22\n\taddi\t10, 6, 144\n\n.LOOP_8AES_STATE\n\n__PreLoop_aes_state_dec:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__PreLoop_aes_state_dec\n\tlxv\t32+1, 0(10)\n\n\tcmpdi\t12, 0\n\tbeq\t__Finish_ghash_dec\n\n\n\n\n__Loop_8x_block_dec:\n\t.long\t0x11EF0D09\n\t.long\t0x12100D09\n\t.long\t0x12310D09\n\t.long\t0x12520D09\n\t.long\t0x12730D09\n\t.long\t0x12940D09\n\t.long\t0x12B50D09\n\t.long\t0x12D60D09\n\n\tlxvb16x\t32+23, 0, 14\n\tlxvb16x\t32+24, 15, 14\n\tlxvb16x\t32+25, 16, 14\n\tlxvb16x\t32+26, 17, 14\n\tlxvb16x\t32+27, 18, 14\n\tlxvb16x\t32+28, 19, 14\n\tlxvb16x\t32+29, 20, 14", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:21", "text": "__Loop_8x_block_dec:\n\t.long\t0x11EF0D09\n\t.long\t0x12100D09\n\t.long\t0x12310D09\n\t.long\t0x12520D09\n\t.long\t0x12730D09\n\t.long\t0x12940D09\n\t.long\t0x12B50D09\n\t.long\t0x12D60D09\n\n\tlxvb16x\t32+23, 0, 14\n\tlxvb16x\t32+24, 15, 14\n\tlxvb16x\t32+25, 16, 14\n\tlxvb16x\t32+26, 17, 14\n\tlxvb16x\t32+27, 18, 14\n\tlxvb16x\t32+28, 19, 14\n\tlxvb16x\t32+29, 20, 14\n\tlxvb16x\t32+30, 21, 14\n\taddi\t14, 14, 128\n\n\tvxor\t15, 15, 23\n\tvxor\t16, 16, 24\n\tvxor\t17, 17, 25\n\tvxor\t18, 18, 26\n\tvxor\t19, 19, 27\n\tvxor\t20, 20, 28\n\tvxor\t21, 21, 29\n\tvxor\t22, 22, 30\n\n\tstxvb16x\t47, 0, 9\n\tstxvb16x\t48, 15, 9\n\tstxvb16x\t49, 16, 9\n\tstxvb16x\t50, 17, 9\n\tstxvb16x\t51, 18, 9\n\tstxvb16x\t52, 19, 9\n\tstxvb16x\t53, 20, 9\n\tstxvb16x\t54, 21, 9\n\n\taddi\t9, 9, 128\n\n\tvor\t15,23,23\n\tvor\t16,24,24\n\tvor\t17,25,25\n\tvor\t18,26,26\n\tvor\t19,27,27\n\tvor\t20,28,28\n\tvor\t21,29,29\n\tvor\t22,30,30\n\n\n\tvxor\t15, 15, 0\n\tPPC_GFMUL128_8x\n\n\txxlor\t32+15, 9, 9\n\tvadduwm\t15, 15, 31\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:22", "text": "addi\t9, 9, 128\n\n\tvor\t15,23,23\n\tvor\t16,24,24\n\tvor\t17,25,25\n\tvor\t18,26,26\n\tvor\t19,27,27\n\tvor\t20,28,28\n\tvor\t21,29,29\n\tvor\t22,30,30\n\n\n\tvxor\t15, 15, 0\n\tPPC_GFMUL128_8x\n\n\txxlor\t32+15, 9, 9\n\tvadduwm\t15, 15, 31\n\tvadduwm\t16, 15, 31\n\tvadduwm\t17, 16, 31\n\tvadduwm\t18, 17, 31\n\tvadduwm\t19, 18, 31\n\tvadduwm\t20, 19, 31\n\tvadduwm\t21, 20, 31\n\tvadduwm\t22, 21, 31\n\txxlor\t9, 32+22, 32+22\n\n\txxlor\t32+27, 0, 0\n\tvxor\t15, 15, 27\n\tvxor\t16, 16, 27\n\tvxor\t17, 17, 27\n\tvxor\t18, 18, 27\n\tvxor\t19, 19, 27\n\tvxor\t20, 20, 27\n\tvxor\t21, 21, 27\n\tvxor\t22, 22, 27\n\n\taddi\t5, 5, -128\n\taddi\t11, 11, 128\n\n\tlxv\t32+23, 16(6)\n\tlxv\t32+24, 32(6)\n\tlxv\t32+25, 48(6)\n\tlxv\t32+26, 64(6)\n\tlxv\t32+27, 80(6)\n\tlxv\t32+28, 96(6)\n\tlxv\t32+29, 112(6)\n\tlxv\t32+1, 128(6)\n\n.LOOP_8AES_STATE\n\tmtctr\t22\n\taddi\t10, 6, 144\n__LastLoop_aes_state_dec:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__LastLoop_aes_state_dec\n\tlxv\t32+1, 0(10)\n\n\taddi\t12, 12, -1", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:23", "text": "lxv\t32+23, 16(6)\n\tlxv\t32+24, 32(6)\n\tlxv\t32+25, 48(6)\n\tlxv\t32+26, 64(6)\n\tlxv\t32+27, 80(6)\n\tlxv\t32+28, 96(6)\n\tlxv\t32+29, 112(6)\n\tlxv\t32+1, 128(6)\n\n.LOOP_8AES_STATE\n\tmtctr\t22\n\taddi\t10, 6, 144\n__LastLoop_aes_state_dec:\n\tlxv\t32+1, 0(10)\n\tAES_CIPHER_8x\t1\n\taddi\t10, 10, 16\n\tbdnz\t__LastLoop_aes_state_dec\n\tlxv\t32+1, 0(10)\n\n\taddi\t12, 12, -1\n\tcmpdi\t12, 0\n\tbne\t__Loop_8x_block_dec\n\n__Finish_ghash_dec:\n\t.long\t0x11EF0D09\n\t.long\t0x12100D09\n\t.long\t0x12310D09\n\t.long\t0x12520D09\n\t.long\t0x12730D09\n\t.long\t0x12940D09\n\t.long\t0x12B50D09\n\t.long\t0x12D60D09\n\n\tlxvb16x\t32+23, 0, 14\n\tlxvb16x\t32+24, 15, 14\n\tlxvb16x\t32+25, 16, 14\n\tlxvb16x\t32+26, 17, 14\n\tlxvb16x\t32+27, 18, 14\n\tlxvb16x\t32+28, 19, 14\n\tlxvb16x\t32+29, 20, 14\n\tlxvb16x\t32+30, 21, 14\n\taddi\t14, 14, 128\n\n\tvxor\t15, 15, 23\n\tvxor\t16, 16, 24\n\tvxor\t17, 17, 25\n\tvxor\t18, 18, 26\n\tvxor\t19, 19, 27\n\tvxor\t20, 20, 28\n\tvxor\t21, 21, 29\n\tvxor\t22, 22, 30\n\n\tstxvb16x\t47, 0, 9\n\tstxvb16x\t48, 15, 9\n\tstxvb16x\t49, 16, 9\n\tstxvb16x\t50, 17, 9\n\tstxvb16x\t51, 18, 9\n\tstxvb16x\t52, 19, 9\n\tstxvb16x\t53, 20, 9\n\tstxvb16x\t54, 21, 9", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:24", "text": "lxvb16x\t32+30, 21, 14\n\taddi\t14, 14, 128\n\n\tvxor\t15, 15, 23\n\tvxor\t16, 16, 24\n\tvxor\t17, 17, 25\n\tvxor\t18, 18, 26\n\tvxor\t19, 19, 27\n\tvxor\t20, 20, 28\n\tvxor\t21, 21, 29\n\tvxor\t22, 22, 30\n\n\tstxvb16x\t47, 0, 9\n\tstxvb16x\t48, 15, 9\n\tstxvb16x\t49, 16, 9\n\tstxvb16x\t50, 17, 9\n\tstxvb16x\t51, 18, 9\n\tstxvb16x\t52, 19, 9\n\tstxvb16x\t53, 20, 9\n\tstxvb16x\t54, 21, 9\n\taddi\t9, 9, 128\n\n\tvxor\t15, 23, 0\n\tvor\t16,24,24\n\tvor\t17,25,25\n\tvor\t18,26,26\n\tvor\t19,27,27\n\tvor\t20,28,28\n\tvor\t21,29,29\n\tvor\t22,30,30\n\n\n\tPPC_GFMUL128_8x\n\n\txxlor\t30+32, 9, 9\n\tvadduwm\t30, 30, 31\n\tstxvb16x\t32+0, 0, 8\n\n\taddi\t5, 5, -128\n\taddi\t11, 11, 128\n\n\n\n\n\n\tcmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n__Process_more_dec:\n\tli\t24, 0\n\tbl\taes_gcm_crypt_1x\n\tcmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n\tbl\t__Process_partial\n\tb\taes_gcm_out\n.size\tppc_aes_gcm_decrypt,.-ppc_aes_gcm_decrypt\n\naes_gcm_out:\n.localentry\taes_gcm_out,0", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S:25", "text": "cmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n__Process_more_dec:\n\tli\t24, 0\n\tbl\taes_gcm_crypt_1x\n\tcmpdi\t5, 0\n\tbeq\taes_gcm_out\n\n\tbl\t__Process_partial\n\tb\taes_gcm_out\n.size\tppc_aes_gcm_decrypt,.-ppc_aes_gcm_decrypt\n\naes_gcm_out:\n.localentry\taes_gcm_out,0\n\n\tmr\t3, 11\n\n\tRESTORE_REGS\n\tblr\n.size\taes_gcm_out,.-aes_gcm_out\n\n.rodata\n.align\t4\n\npermx:\n.long\t0x4c5d6e7f, 0x08192a3b, 0xc4d5e6f7, 0x8091a2b3", "arch": "powerpc", "syntax": "gas-like", "kind": "macro-heavy", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "license": "BSD-2-Clause", "commit": "ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/ce03afc0e8ab23f18d5b25dafa623c5ce2ab4d89/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-gcm-ppc.S", "line_start": 961, "line_end": 992}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:15", "text": ".long\t0x39a80171,0x39a80171\n.long\t0x080cb3de,0x080cb3de\n.long\t0xd8b4e49c,0xd8b4e49c\n.long\t0x6456c190,0x6456c190\n.long\t0x7bcb8461,0x7bcb8461\n.long\t0xd532b670,0xd532b670\n.long\t0x486c5c74,0x486c5c74\n.long\t0xd0b85742,0xd0b85742\n.byte\t0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38\n.byte\t0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb\n.byte\t0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87\n.byte\t0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb\n.byte\t0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d\n.byte\t0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e\n.byte\t0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2\n.byte\t0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25\n.byte\t0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16\n.byte\t0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92\n.byte\t0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda\n.byte\t0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84\n.byte\t0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a\n.byte\t0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06\n.byte\t0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02\n.byte\t0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b\n.byte\t0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea\n.byte\t0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73\n.byte\t0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85\n.byte\t0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e\n.byte\t0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89\n.byte\t0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b\n.byte\t0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20\n.byte\t0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4\n.byte\t0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31\n.byte\t0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f\n.byte\t0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d\n.byte\t0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef\n.byte\t0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0\n.byte\t0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61\n.byte\t0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26\n.byte\t0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d\n\n\n.globl\tAES_encrypt\n.type\tAES_encrypt,@function\n.align\t7\nAES_encrypt:\n\tstwu\t1,-128(1)\n\tmflr\t0\n\n\tstw\t4,52(1)\n\tstw\t14,56(1)\n\tstw\t15,60(1)\n\tstw\t16,64(1)\n\tstw\t17,68(1)\n\tstw\t18,72(1)\n\tstw\t19,76(1)\n\tstw\t20,80(1)\n\tstw\t21,84(1)\n\tstw\t22,88(1)\n\tstw\t23,92(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:16", "text": ".globl\tAES_encrypt\n.type\tAES_encrypt,@function\n.align\t7\nAES_encrypt:\n\tstwu\t1,-128(1)\n\tmflr\t0\n\n\tstw\t4,52(1)\n\tstw\t14,56(1)\n\tstw\t15,60(1)\n\tstw\t16,64(1)\n\tstw\t17,68(1)\n\tstw\t18,72(1)\n\tstw\t19,76(1)\n\tstw\t20,80(1)\n\tstw\t21,84(1)\n\tstw\t22,88(1)\n\tstw\t23,92(1)\n\tstw\t24,96(1)\n\tstw\t25,100(1)\n\tstw\t26,104(1)\n\tstw\t27,108(1)\n\tstw\t28,112(1)\n\tstw\t29,116(1)\n\tstw\t30,120(1)\n\tstw\t31,124(1)\n\tstw\t0,132(1)\n\n\tandi.\t12,3,3\n\tandi.\t0,4,3\n\tor.\t12,12,0\n\tbne\t.Lenc_unaligned\n\n.Lenc_unaligned_ok:\n\tlwz\t8,0(3)\n\tlwz\t9,4(3)\n\tlwz\t10,8(3)\n\tlwz\t11,12(3)\n\tbl\t.LAES_Te\n\tbl\t.Lppc_AES_encrypt_compact\n\tlwz\t4,52(1)\n\tstw\t8,0(4)\n\tstw\t9,4(4)\n\tstw\t10,8(4)\n\tstw\t11,12(4)\n\tb\t.Lenc_done\n\n.Lenc_unaligned:\n\tsubfic\t12,3,4096\n\tsubfic\t0,4,4096\n\tandi.\t12,12,4096-16\n\tbeq\t.Lenc_xpage\n\tandi.\t0,0,4096-16\n\tbne\t.Lenc_unaligned_ok\n\n.Lenc_xpage:\n\tlbz\t16,0(3)\n\tlbz\t17,1(3)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:17", "text": "bl\t.LAES_Te\n\tbl\t.Lppc_AES_encrypt_compact\n\tlwz\t4,52(1)\n\tstw\t8,0(4)\n\tstw\t9,4(4)\n\tstw\t10,8(4)\n\tstw\t11,12(4)\n\tb\t.Lenc_done\n\n.Lenc_unaligned:\n\tsubfic\t12,3,4096\n\tsubfic\t0,4,4096\n\tandi.\t12,12,4096-16\n\tbeq\t.Lenc_xpage\n\tandi.\t0,0,4096-16\n\tbne\t.Lenc_unaligned_ok\n\n.Lenc_xpage:\n\tlbz\t16,0(3)\n\tlbz\t17,1(3)\n\tlbz\t18,2(3)\n\tlbz\t8,3(3)\n\tlbz\t20,4(3)\n\tlbz\t21,5(3)\n\tlbz\t22,6(3)\n\tlbz\t9,7(3)\n\tlbz\t24,8(3)\n\tlbz\t25,9(3)\n\tlbz\t26,10(3)\n\tinsrwi\t8,16,8,0\n\tlbz\t10,11(3)\n\tinsrwi\t9,20,8,0\n\tlbz\t28,12(3)\n\tinsrwi\t8,17,8,8\n\tlbz\t29,13(3)\n\tinsrwi\t9,21,8,8\n\tlbz\t30,14(3)\n\tinsrwi\t8,18,8,16\n\tlbz\t11,15(3)\n\tinsrwi\t9,22,8,16\n\tinsrwi\t10,24,8,0\n\tinsrwi\t11,28,8,0\n\tinsrwi\t10,25,8,8\n\tinsrwi\t11,29,8,8\n\tinsrwi\t10,26,8,16\n\tinsrwi\t11,30,8,16\n\n\tbl\t.LAES_Te\n\tbl\t.Lppc_AES_encrypt_compact\n\tlwz\t4,52(1)\n\n\textrwi\t16,8,8,0\n\textrwi\t17,8,8,8\n\tstb\t16,0(4)\n\textrwi\t18,8,8,16\n\tstb\t17,1(4)\n\tstb\t18,2(4)\n\textrwi\t20,9,8,0\n\tstb\t8,3(4)\n\textrwi\t21,9,8,8", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:18", "text": "insrwi\t10,24,8,0\n\tinsrwi\t11,28,8,0\n\tinsrwi\t10,25,8,8\n\tinsrwi\t11,29,8,8\n\tinsrwi\t10,26,8,16\n\tinsrwi\t11,30,8,16\n\n\tbl\t.LAES_Te\n\tbl\t.Lppc_AES_encrypt_compact\n\tlwz\t4,52(1)\n\n\textrwi\t16,8,8,0\n\textrwi\t17,8,8,8\n\tstb\t16,0(4)\n\textrwi\t18,8,8,16\n\tstb\t17,1(4)\n\tstb\t18,2(4)\n\textrwi\t20,9,8,0\n\tstb\t8,3(4)\n\textrwi\t21,9,8,8\n\tstb\t20,4(4)\n\textrwi\t22,9,8,16\n\tstb\t21,5(4)\n\tstb\t22,6(4)\n\textrwi\t24,10,8,0\n\tstb\t9,7(4)\n\textrwi\t25,10,8,8\n\tstb\t24,8(4)\n\textrwi\t26,10,8,16\n\tstb\t25,9(4)\n\tstb\t26,10(4)\n\textrwi\t28,11,8,0\n\tstb\t10,11(4)\n\textrwi\t29,11,8,8\n\tstb\t28,12(4)\n\textrwi\t30,11,8,16\n\tstb\t29,13(4)\n\tstb\t30,14(4)\n\tstb\t11,15(4)\n\n.Lenc_done:\n\tlwz\t0,132(1)\n\tlwz\t14,56(1)\n\tlwz\t15,60(1)\n\tlwz\t16,64(1)\n\tlwz\t17,68(1)\n\tlwz\t18,72(1)\n\tlwz\t19,76(1)\n\tlwz\t20,80(1)\n\tlwz\t21,84(1)\n\tlwz\t22,88(1)\n\tlwz\t23,92(1)\n\tlwz\t24,96(1)\n\tlwz\t25,100(1)\n\tlwz\t26,104(1)\n\tlwz\t27,108(1)\n\tlwz\t28,112(1)\n\tlwz\t29,116(1)\n\tlwz\t30,120(1)\n\tlwz\t31,124(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:19", "text": ".Lenc_done:\n\tlwz\t0,132(1)\n\tlwz\t14,56(1)\n\tlwz\t15,60(1)\n\tlwz\t16,64(1)\n\tlwz\t17,68(1)\n\tlwz\t18,72(1)\n\tlwz\t19,76(1)\n\tlwz\t20,80(1)\n\tlwz\t21,84(1)\n\tlwz\t22,88(1)\n\tlwz\t23,92(1)\n\tlwz\t24,96(1)\n\tlwz\t25,100(1)\n\tlwz\t26,104(1)\n\tlwz\t27,108(1)\n\tlwz\t28,112(1)\n\tlwz\t29,116(1)\n\tlwz\t30,120(1)\n\tlwz\t31,124(1)\n\tmtlr\t0\n\taddi\t1,1,128\n\tblr\n.long\t0\n.byte\t0,12,4,1,0x80,18,3,0\n.long\t0\n\n.align\t5\n.Lppc_AES_encrypt:\n\tlwz\t16,240(5)\n\taddi\t6,3,3\n\tlwz\t12,0(5)\n\taddi\t7,3,2\n\tlwz\t0,4(5)\n\taddi\t4,3,1\n\tlwz\t14,8(5)\n\taddi\t16,16,-1\n\tlwz\t15,12(5)\n\taddi\t5,5,16\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tmtctr\t16\n.align\t4\n.Lenc_loop:\n\trlwinm\t16,8,11,21,28\n\trlwinm\t17,9,11,21,28\n\trlwinm\t18,10,11,21,28\n\trlwinm\t19,11,11,21,28\n\tlwz\t12,0(5)\n\trlwinm\t20,9,19,21,28\n\tlwz\t0,4(5)\n\trlwinm\t21,10,19,21,28\n\tlwz\t14,8(5)\n\trlwinm\t22,11,19,21,28\n\tlwz\t15,12(5)\n\trlwinm\t23,8,19,21,28\n\tlwzx\t16,3,16\n\trlwinm\t24,10,27,21,28", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:20", "text": "xor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tmtctr\t16\n.align\t4\n.Lenc_loop:\n\trlwinm\t16,8,11,21,28\n\trlwinm\t17,9,11,21,28\n\trlwinm\t18,10,11,21,28\n\trlwinm\t19,11,11,21,28\n\tlwz\t12,0(5)\n\trlwinm\t20,9,19,21,28\n\tlwz\t0,4(5)\n\trlwinm\t21,10,19,21,28\n\tlwz\t14,8(5)\n\trlwinm\t22,11,19,21,28\n\tlwz\t15,12(5)\n\trlwinm\t23,8,19,21,28\n\tlwzx\t16,3,16\n\trlwinm\t24,10,27,21,28\n\tlwzx\t17,3,17\n\trlwinm\t25,11,27,21,28\n\tlwzx\t18,3,18\n\trlwinm\t26,8,27,21,28\n\tlwzx\t19,3,19\n\trlwinm\t27,9,27,21,28\n\tlwzx\t20,6,20\n\trlwinm\t28,11,3,21,28\n\tlwzx\t21,6,21\n\trlwinm\t29,8,3,21,28\n\tlwzx\t22,6,22\n\trlwinm\t30,9,3,21,28\n\tlwzx\t23,6,23\n\trlwinm\t31,10,3,21,28\n\tlwzx\t24,7,24\n\txor\t12,12,16\n\tlwzx\t25,7,25\n\txor\t0,0,17\n\tlwzx\t26,7,26\n\txor\t14,14,18\n\tlwzx\t27,7,27\n\txor\t15,15,19\n\tlwzx\t28,4,28\n\txor\t12,12,20\n\tlwzx\t29,4,29\n\txor\t0,0,21\n\tlwzx\t30,4,30\n\txor\t14,14,22\n\tlwzx\t31,4,31\n\txor\t15,15,23\n\txor\t12,12,24\n\txor\t0,0,25\n\txor\t14,14,26\n\txor\t15,15,27\n\txor\t8,12,28\n\txor\t9,0,29\n\txor\t10,14,30\n\txor\t11,15,31\n\taddi\t5,5,16\n\tbc\t16,0,.Lenc_loop", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:21", "text": "lwzx\t27,7,27\n\txor\t15,15,19\n\tlwzx\t28,4,28\n\txor\t12,12,20\n\tlwzx\t29,4,29\n\txor\t0,0,21\n\tlwzx\t30,4,30\n\txor\t14,14,22\n\tlwzx\t31,4,31\n\txor\t15,15,23\n\txor\t12,12,24\n\txor\t0,0,25\n\txor\t14,14,26\n\txor\t15,15,27\n\txor\t8,12,28\n\txor\t9,0,29\n\txor\t10,14,30\n\txor\t11,15,31\n\taddi\t5,5,16\n\tbc\t16,0,.Lenc_loop\n\n\taddi\t7,3,2048\n\tnop\n\tlwz\t12,0(5)\n\trlwinm\t16,8,8,24,31\n\tlwz\t0,4(5)\n\trlwinm\t17,9,8,24,31\n\tlwz\t14,8(5)\n\trlwinm\t18,10,8,24,31\n\tlwz\t15,12(5)\n\trlwinm\t19,11,8,24,31\n\tlwz\t24,2048(3)\n\trlwinm\t20,9,16,24,31\n\tlwz\t25,2080(3)\n\trlwinm\t21,10,16,24,31\n\tlwz\t26,2112(3)\n\trlwinm\t22,11,16,24,31\n\tlwz\t27,2144(3)\n\trlwinm\t23,8,16,24,31\n\tlwz\t28,2176(3)\n\trlwinm\t24,10,24,24,31\n\tlwz\t29,2208(3)\n\trlwinm\t25,11,24,24,31\n\tlwz\t30,2240(3)\n\trlwinm\t26,8,24,24,31\n\tlwz\t31,2272(3)\n\trlwinm\t27,9,24,24,31\n\tlbzx\t16,7,16\n\trlwinm\t28,11,0,24,31\n\tlbzx\t17,7,17\n\trlwinm\t29,8,0,24,31\n\tlbzx\t18,7,18\n\trlwinm\t30,9,0,24,31\n\tlbzx\t19,7,19\n\trlwinm\t31,10,0,24,31\n\tlbzx\t20,7,20\n\trlwinm\t8,16,24,0,7\n\tlbzx\t21,7,21\n\trlwinm\t9,17,24,0,7\n\tlbzx\t22,7,22", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:22", "text": "rlwinm\t24,10,24,24,31\n\tlwz\t29,2208(3)\n\trlwinm\t25,11,24,24,31\n\tlwz\t30,2240(3)\n\trlwinm\t26,8,24,24,31\n\tlwz\t31,2272(3)\n\trlwinm\t27,9,24,24,31\n\tlbzx\t16,7,16\n\trlwinm\t28,11,0,24,31\n\tlbzx\t17,7,17\n\trlwinm\t29,8,0,24,31\n\tlbzx\t18,7,18\n\trlwinm\t30,9,0,24,31\n\tlbzx\t19,7,19\n\trlwinm\t31,10,0,24,31\n\tlbzx\t20,7,20\n\trlwinm\t8,16,24,0,7\n\tlbzx\t21,7,21\n\trlwinm\t9,17,24,0,7\n\tlbzx\t22,7,22\n\trlwinm\t10,18,24,0,7\n\tlbzx\t23,7,23\n\trlwinm\t11,19,24,0,7\n\tlbzx\t24,7,24\n\trlwimi\t8,20,16,8,15\n\tlbzx\t25,7,25\n\trlwimi\t9,21,16,8,15\n\tlbzx\t26,7,26\n\trlwimi\t10,22,16,8,15\n\tlbzx\t27,7,27\n\trlwimi\t11,23,16,8,15\n\tlbzx\t28,7,28\n\trlwimi\t8,24,8,16,23\n\tlbzx\t29,7,29\n\trlwimi\t9,25,8,16,23\n\tlbzx\t30,7,30\n\trlwimi\t10,26,8,16,23\n\tlbzx\t31,7,31\n\trlwimi\t11,27,8,16,23\n\tor\t8,8,28\n\tor\t9,9,29\n\tor\t10,10,30\n\tor\t11,11,31\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.align\t4\n.Lppc_AES_encrypt_compact:\n\tlwz\t16,240(5)\n\taddi\t6,3,2048\n\tlwz\t12,0(5)\n\tlis\t7,0x8080\n\tlwz\t0,4(5)\n\tlis\t4,0x1b1b\n\tlwz\t14,8(5)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:23", "text": "or\t9,9,29\n\tor\t10,10,30\n\tor\t11,11,31\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.align\t4\n.Lppc_AES_encrypt_compact:\n\tlwz\t16,240(5)\n\taddi\t6,3,2048\n\tlwz\t12,0(5)\n\tlis\t7,0x8080\n\tlwz\t0,4(5)\n\tlis\t4,0x1b1b\n\tlwz\t14,8(5)\n\tori\t7,7,0x8080\n\tlwz\t15,12(5)\n\tori\t4,4,0x1b1b\n\taddi\t5,5,16\n\tmtctr\t16\n.align\t4\n.Lenc_compact_loop:\n\txor\t8,8,12\n\txor\t9,9,0\n\trlwinm\t16,8,8,24,31\n\txor\t10,10,14\n\trlwinm\t17,9,8,24,31\n\txor\t11,11,15\n\trlwinm\t18,10,8,24,31\n\trlwinm\t19,11,8,24,31\n\trlwinm\t20,9,16,24,31\n\trlwinm\t21,10,16,24,31\n\trlwinm\t22,11,16,24,31\n\trlwinm\t23,8,16,24,31\n\tlbzx\t16,6,16\n\trlwinm\t24,10,24,24,31\n\tlbzx\t17,6,17\n\trlwinm\t25,11,24,24,31\n\tlbzx\t18,6,18\n\trlwinm\t26,8,24,24,31\n\tlbzx\t19,6,19\n\trlwinm\t27,9,24,24,31\n\tlbzx\t20,6,20\n\trlwinm\t28,11,0,24,31\n\tlbzx\t21,6,21\n\trlwinm\t29,8,0,24,31\n\tlbzx\t22,6,22\n\trlwinm\t30,9,0,24,31\n\tlbzx\t23,6,23\n\trlwinm\t31,10,0,24,31\n\tlbzx\t24,6,24\n\trlwinm\t8,16,24,0,7\n\tlbzx\t25,6,25\n\trlwinm\t9,17,24,0,7\n\tlbzx\t26,6,26", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:24", "text": "rlwinm\t24,10,24,24,31\n\tlbzx\t17,6,17\n\trlwinm\t25,11,24,24,31\n\tlbzx\t18,6,18\n\trlwinm\t26,8,24,24,31\n\tlbzx\t19,6,19\n\trlwinm\t27,9,24,24,31\n\tlbzx\t20,6,20\n\trlwinm\t28,11,0,24,31\n\tlbzx\t21,6,21\n\trlwinm\t29,8,0,24,31\n\tlbzx\t22,6,22\n\trlwinm\t30,9,0,24,31\n\tlbzx\t23,6,23\n\trlwinm\t31,10,0,24,31\n\tlbzx\t24,6,24\n\trlwinm\t8,16,24,0,7\n\tlbzx\t25,6,25\n\trlwinm\t9,17,24,0,7\n\tlbzx\t26,6,26\n\trlwinm\t10,18,24,0,7\n\tlbzx\t27,6,27\n\trlwinm\t11,19,24,0,7\n\tlbzx\t28,6,28\n\trlwimi\t8,20,16,8,15\n\tlbzx\t29,6,29\n\trlwimi\t9,21,16,8,15\n\tlbzx\t30,6,30\n\trlwimi\t10,22,16,8,15\n\tlbzx\t31,6,31\n\trlwimi\t11,23,16,8,15\n\trlwimi\t8,24,8,16,23\n\trlwimi\t9,25,8,16,23\n\trlwimi\t10,26,8,16,23\n\trlwimi\t11,27,8,16,23\n\tlwz\t12,0(5)\n\tor\t8,8,28\n\tlwz\t0,4(5)\n\tor\t9,9,29\n\tlwz\t14,8(5)\n\tor\t10,10,30\n\tlwz\t15,12(5)\n\tor\t11,11,31\n\n\taddi\t5,5,16\n\tbdz\t.Lenc_compact_done\n\n\tand\t16,8,7\n\tand\t17,9,7\n\tand\t18,10,7\n\tand\t19,11,7\n\tsrwi\t20,16,7\n\tandc\t24,8,7\n\tsrwi\t21,17,7\n\tandc\t25,9,7\n\tsrwi\t22,18,7\n\tandc\t26,10,7\n\tsrwi\t23,19,7\n\tandc\t27,11,7\n\tsub\t16,16,20", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:25", "text": "or\t10,10,30\n\tlwz\t15,12(5)\n\tor\t11,11,31\n\n\taddi\t5,5,16\n\tbdz\t.Lenc_compact_done\n\n\tand\t16,8,7\n\tand\t17,9,7\n\tand\t18,10,7\n\tand\t19,11,7\n\tsrwi\t20,16,7\n\tandc\t24,8,7\n\tsrwi\t21,17,7\n\tandc\t25,9,7\n\tsrwi\t22,18,7\n\tandc\t26,10,7\n\tsrwi\t23,19,7\n\tandc\t27,11,7\n\tsub\t16,16,20\n\tsub\t17,17,21\n\tsub\t18,18,22\n\tsub\t19,19,23\n\tadd\t24,24,24\n\tadd\t25,25,25\n\tadd\t26,26,26\n\tadd\t27,27,27\n\tand\t16,16,4\n\tand\t17,17,4\n\tand\t18,18,4\n\tand\t19,19,4\n\txor\t16,16,24\n\txor\t17,17,25\n\trotlwi\t28,8,16\n\txor\t18,18,26\n\trotlwi\t29,9,16\n\txor\t19,19,27\n\trotlwi\t30,10,16\n\n\txor\t8,8,16\n\trotlwi\t31,11,16\n\txor\t9,9,17\n\trotrwi\t8,8,24\n\txor\t10,10,18\n\trotrwi\t9,9,24\n\txor\t11,11,19\n\trotrwi\t10,10,24\n\txor\t8,8,16\n\trotrwi\t11,11,24\n\txor\t9,9,17\n\txor\t10,10,18\n\txor\t11,11,19\n\trotlwi\t24,28,8\n\txor\t8,8,28\n\trotlwi\t25,29,8\n\txor\t9,9,29\n\trotlwi\t26,30,8\n\txor\t10,10,30\n\trotlwi\t27,31,8\n\txor\t11,11,31", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:26", "text": "rotlwi\t31,11,16\n\txor\t9,9,17\n\trotrwi\t8,8,24\n\txor\t10,10,18\n\trotrwi\t9,9,24\n\txor\t11,11,19\n\trotrwi\t10,10,24\n\txor\t8,8,16\n\trotrwi\t11,11,24\n\txor\t9,9,17\n\txor\t10,10,18\n\txor\t11,11,19\n\trotlwi\t24,28,8\n\txor\t8,8,28\n\trotlwi\t25,29,8\n\txor\t9,9,29\n\trotlwi\t26,30,8\n\txor\t10,10,30\n\trotlwi\t27,31,8\n\txor\t11,11,31\n\txor\t8,8,24\n\txor\t9,9,25\n\txor\t10,10,26\n\txor\t11,11,27\n\n\tb\t.Lenc_compact_loop\n.align\t4\n.Lenc_compact_done:\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n\n.globl\tAES_decrypt\n.type\tAES_decrypt,@function\n.align\t7\nAES_decrypt:\n\tstwu\t1,-128(1)\n\tmflr\t0\n\n\tstw\t4,52(1)\n\tstw\t14,56(1)\n\tstw\t15,60(1)\n\tstw\t16,64(1)\n\tstw\t17,68(1)\n\tstw\t18,72(1)\n\tstw\t19,76(1)\n\tstw\t20,80(1)\n\tstw\t21,84(1)\n\tstw\t22,88(1)\n\tstw\t23,92(1)\n\tstw\t24,96(1)\n\tstw\t25,100(1)\n\tstw\t26,104(1)\n\tstw\t27,108(1)\n\tstw\t28,112(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:27", "text": "AES_decrypt:\n\tstwu\t1,-128(1)\n\tmflr\t0\n\n\tstw\t4,52(1)\n\tstw\t14,56(1)\n\tstw\t15,60(1)\n\tstw\t16,64(1)\n\tstw\t17,68(1)\n\tstw\t18,72(1)\n\tstw\t19,76(1)\n\tstw\t20,80(1)\n\tstw\t21,84(1)\n\tstw\t22,88(1)\n\tstw\t23,92(1)\n\tstw\t24,96(1)\n\tstw\t25,100(1)\n\tstw\t26,104(1)\n\tstw\t27,108(1)\n\tstw\t28,112(1)\n\tstw\t29,116(1)\n\tstw\t30,120(1)\n\tstw\t31,124(1)\n\tstw\t0,132(1)\n\n\tandi.\t12,3,3\n\tandi.\t0,4,3\n\tor.\t12,12,0\n\tbne\t.Ldec_unaligned\n\n.Ldec_unaligned_ok:\n\tlwz\t8,0(3)\n\tlwz\t9,4(3)\n\tlwz\t10,8(3)\n\tlwz\t11,12(3)\n\tbl\t.LAES_Td\n\tbl\t.Lppc_AES_decrypt_compact\n\tlwz\t4,52(1)\n\tstw\t8,0(4)\n\tstw\t9,4(4)\n\tstw\t10,8(4)\n\tstw\t11,12(4)\n\tb\t.Ldec_done\n\n.Ldec_unaligned:\n\tsubfic\t12,3,4096\n\tsubfic\t0,4,4096\n\tandi.\t12,12,4096-16\n\tbeq\t.Ldec_xpage\n\tandi.\t0,0,4096-16\n\tbne\t.Ldec_unaligned_ok\n\n.Ldec_xpage:\n\tlbz\t16,0(3)\n\tlbz\t17,1(3)\n\tlbz\t18,2(3)\n\tlbz\t8,3(3)\n\tlbz\t20,4(3)\n\tlbz\t21,5(3)\n\tlbz\t22,6(3)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:28", "text": "stw\t10,8(4)\n\tstw\t11,12(4)\n\tb\t.Ldec_done\n\n.Ldec_unaligned:\n\tsubfic\t12,3,4096\n\tsubfic\t0,4,4096\n\tandi.\t12,12,4096-16\n\tbeq\t.Ldec_xpage\n\tandi.\t0,0,4096-16\n\tbne\t.Ldec_unaligned_ok\n\n.Ldec_xpage:\n\tlbz\t16,0(3)\n\tlbz\t17,1(3)\n\tlbz\t18,2(3)\n\tlbz\t8,3(3)\n\tlbz\t20,4(3)\n\tlbz\t21,5(3)\n\tlbz\t22,6(3)\n\tlbz\t9,7(3)\n\tlbz\t24,8(3)\n\tlbz\t25,9(3)\n\tlbz\t26,10(3)\n\tinsrwi\t8,16,8,0\n\tlbz\t10,11(3)\n\tinsrwi\t9,20,8,0\n\tlbz\t28,12(3)\n\tinsrwi\t8,17,8,8\n\tlbz\t29,13(3)\n\tinsrwi\t9,21,8,8\n\tlbz\t30,14(3)\n\tinsrwi\t8,18,8,16\n\tlbz\t11,15(3)\n\tinsrwi\t9,22,8,16\n\tinsrwi\t10,24,8,0\n\tinsrwi\t11,28,8,0\n\tinsrwi\t10,25,8,8\n\tinsrwi\t11,29,8,8\n\tinsrwi\t10,26,8,16\n\tinsrwi\t11,30,8,16\n\n\tbl\t.LAES_Td\n\tbl\t.Lppc_AES_decrypt_compact\n\tlwz\t4,52(1)\n\n\textrwi\t16,8,8,0\n\textrwi\t17,8,8,8\n\tstb\t16,0(4)\n\textrwi\t18,8,8,16\n\tstb\t17,1(4)\n\tstb\t18,2(4)\n\textrwi\t20,9,8,0\n\tstb\t8,3(4)\n\textrwi\t21,9,8,8\n\tstb\t20,4(4)\n\textrwi\t22,9,8,16\n\tstb\t21,5(4)\n\tstb\t22,6(4)\n\textrwi\t24,10,8,0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:29", "text": "insrwi\t11,30,8,16\n\n\tbl\t.LAES_Td\n\tbl\t.Lppc_AES_decrypt_compact\n\tlwz\t4,52(1)\n\n\textrwi\t16,8,8,0\n\textrwi\t17,8,8,8\n\tstb\t16,0(4)\n\textrwi\t18,8,8,16\n\tstb\t17,1(4)\n\tstb\t18,2(4)\n\textrwi\t20,9,8,0\n\tstb\t8,3(4)\n\textrwi\t21,9,8,8\n\tstb\t20,4(4)\n\textrwi\t22,9,8,16\n\tstb\t21,5(4)\n\tstb\t22,6(4)\n\textrwi\t24,10,8,0\n\tstb\t9,7(4)\n\textrwi\t25,10,8,8\n\tstb\t24,8(4)\n\textrwi\t26,10,8,16\n\tstb\t25,9(4)\n\tstb\t26,10(4)\n\textrwi\t28,11,8,0\n\tstb\t10,11(4)\n\textrwi\t29,11,8,8\n\tstb\t28,12(4)\n\textrwi\t30,11,8,16\n\tstb\t29,13(4)\n\tstb\t30,14(4)\n\tstb\t11,15(4)\n\n.Ldec_done:\n\tlwz\t0,132(1)\n\tlwz\t14,56(1)\n\tlwz\t15,60(1)\n\tlwz\t16,64(1)\n\tlwz\t17,68(1)\n\tlwz\t18,72(1)\n\tlwz\t19,76(1)\n\tlwz\t20,80(1)\n\tlwz\t21,84(1)\n\tlwz\t22,88(1)\n\tlwz\t23,92(1)\n\tlwz\t24,96(1)\n\tlwz\t25,100(1)\n\tlwz\t26,104(1)\n\tlwz\t27,108(1)\n\tlwz\t28,112(1)\n\tlwz\t29,116(1)\n\tlwz\t30,120(1)\n\tlwz\t31,124(1)\n\tmtlr\t0\n\taddi\t1,1,128\n\tblr\n.long\t0\n.byte\t0,12,4,1,0x80,18,3,0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:30", "text": "lwz\t17,68(1)\n\tlwz\t18,72(1)\n\tlwz\t19,76(1)\n\tlwz\t20,80(1)\n\tlwz\t21,84(1)\n\tlwz\t22,88(1)\n\tlwz\t23,92(1)\n\tlwz\t24,96(1)\n\tlwz\t25,100(1)\n\tlwz\t26,104(1)\n\tlwz\t27,108(1)\n\tlwz\t28,112(1)\n\tlwz\t29,116(1)\n\tlwz\t30,120(1)\n\tlwz\t31,124(1)\n\tmtlr\t0\n\taddi\t1,1,128\n\tblr\n.long\t0\n.byte\t0,12,4,1,0x80,18,3,0\n.long\t0\n\n.align\t5\n.Lppc_AES_decrypt:\n\tlwz\t16,240(5)\n\taddi\t6,3,3\n\tlwz\t12,0(5)\n\taddi\t7,3,2\n\tlwz\t0,4(5)\n\taddi\t4,3,1\n\tlwz\t14,8(5)\n\taddi\t16,16,-1\n\tlwz\t15,12(5)\n\taddi\t5,5,16\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tmtctr\t16\n.align\t4\n.Ldec_loop:\n\trlwinm\t16,8,11,21,28\n\trlwinm\t17,9,11,21,28\n\trlwinm\t18,10,11,21,28\n\trlwinm\t19,11,11,21,28\n\tlwz\t12,0(5)\n\trlwinm\t20,11,19,21,28\n\tlwz\t0,4(5)\n\trlwinm\t21,8,19,21,28\n\tlwz\t14,8(5)\n\trlwinm\t22,9,19,21,28\n\tlwz\t15,12(5)\n\trlwinm\t23,10,19,21,28\n\tlwzx\t16,3,16\n\trlwinm\t24,10,27,21,28\n\tlwzx\t17,3,17\n\trlwinm\t25,11,27,21,28\n\tlwzx\t18,3,18\n\trlwinm\t26,8,27,21,28\n\tlwzx\t19,3,19", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:31", "text": ".Ldec_loop:\n\trlwinm\t16,8,11,21,28\n\trlwinm\t17,9,11,21,28\n\trlwinm\t18,10,11,21,28\n\trlwinm\t19,11,11,21,28\n\tlwz\t12,0(5)\n\trlwinm\t20,11,19,21,28\n\tlwz\t0,4(5)\n\trlwinm\t21,8,19,21,28\n\tlwz\t14,8(5)\n\trlwinm\t22,9,19,21,28\n\tlwz\t15,12(5)\n\trlwinm\t23,10,19,21,28\n\tlwzx\t16,3,16\n\trlwinm\t24,10,27,21,28\n\tlwzx\t17,3,17\n\trlwinm\t25,11,27,21,28\n\tlwzx\t18,3,18\n\trlwinm\t26,8,27,21,28\n\tlwzx\t19,3,19\n\trlwinm\t27,9,27,21,28\n\tlwzx\t20,6,20\n\trlwinm\t28,9,3,21,28\n\tlwzx\t21,6,21\n\trlwinm\t29,10,3,21,28\n\tlwzx\t22,6,22\n\trlwinm\t30,11,3,21,28\n\tlwzx\t23,6,23\n\trlwinm\t31,8,3,21,28\n\tlwzx\t24,7,24\n\txor\t12,12,16\n\tlwzx\t25,7,25\n\txor\t0,0,17\n\tlwzx\t26,7,26\n\txor\t14,14,18\n\tlwzx\t27,7,27\n\txor\t15,15,19\n\tlwzx\t28,4,28\n\txor\t12,12,20\n\tlwzx\t29,4,29\n\txor\t0,0,21\n\tlwzx\t30,4,30\n\txor\t14,14,22\n\tlwzx\t31,4,31\n\txor\t15,15,23\n\txor\t12,12,24\n\txor\t0,0,25\n\txor\t14,14,26\n\txor\t15,15,27\n\txor\t8,12,28\n\txor\t9,0,29\n\txor\t10,14,30\n\txor\t11,15,31\n\taddi\t5,5,16\n\tbc\t16,0,.Ldec_loop\n\n\taddi\t7,3,2048\n\tnop\n\tlwz\t12,0(5)\n\trlwinm\t16,8,8,24,31", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:32", "text": "xor\t0,0,21\n\tlwzx\t30,4,30\n\txor\t14,14,22\n\tlwzx\t31,4,31\n\txor\t15,15,23\n\txor\t12,12,24\n\txor\t0,0,25\n\txor\t14,14,26\n\txor\t15,15,27\n\txor\t8,12,28\n\txor\t9,0,29\n\txor\t10,14,30\n\txor\t11,15,31\n\taddi\t5,5,16\n\tbc\t16,0,.Ldec_loop\n\n\taddi\t7,3,2048\n\tnop\n\tlwz\t12,0(5)\n\trlwinm\t16,8,8,24,31\n\tlwz\t0,4(5)\n\trlwinm\t17,9,8,24,31\n\tlwz\t14,8(5)\n\trlwinm\t18,10,8,24,31\n\tlwz\t15,12(5)\n\trlwinm\t19,11,8,24,31\n\tlwz\t24,2048(3)\n\trlwinm\t20,11,16,24,31\n\tlwz\t25,2080(3)\n\trlwinm\t21,8,16,24,31\n\tlwz\t26,2112(3)\n\tlbzx\t16,7,16\n\tlwz\t27,2144(3)\n\tlbzx\t17,7,17\n\tlwz\t28,2176(3)\n\trlwinm\t22,9,16,24,31\n\tlwz\t29,2208(3)\n\trlwinm\t23,10,16,24,31\n\tlwz\t30,2240(3)\n\trlwinm\t24,10,24,24,31\n\tlwz\t31,2272(3)\n\trlwinm\t25,11,24,24,31\n\tlbzx\t18,7,18\n\trlwinm\t26,8,24,24,31\n\tlbzx\t19,7,19\n\trlwinm\t27,9,24,24,31\n\tlbzx\t20,7,20\n\trlwinm\t28,9,0,24,31\n\tlbzx\t21,7,21\n\trlwinm\t29,10,0,24,31\n\tlbzx\t22,7,22\n\trlwinm\t30,11,0,24,31\n\tlbzx\t23,7,23\n\trlwinm\t31,8,0,24,31\n\tlbzx\t24,7,24\n\trlwinm\t8,16,24,0,7\n\tlbzx\t25,7,25\n\trlwinm\t9,17,24,0,7\n\tlbzx\t26,7,26\n\trlwinm\t10,18,24,0,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:33", "text": "lwz\t31,2272(3)\n\trlwinm\t25,11,24,24,31\n\tlbzx\t18,7,18\n\trlwinm\t26,8,24,24,31\n\tlbzx\t19,7,19\n\trlwinm\t27,9,24,24,31\n\tlbzx\t20,7,20\n\trlwinm\t28,9,0,24,31\n\tlbzx\t21,7,21\n\trlwinm\t29,10,0,24,31\n\tlbzx\t22,7,22\n\trlwinm\t30,11,0,24,31\n\tlbzx\t23,7,23\n\trlwinm\t31,8,0,24,31\n\tlbzx\t24,7,24\n\trlwinm\t8,16,24,0,7\n\tlbzx\t25,7,25\n\trlwinm\t9,17,24,0,7\n\tlbzx\t26,7,26\n\trlwinm\t10,18,24,0,7\n\tlbzx\t27,7,27\n\trlwinm\t11,19,24,0,7\n\tlbzx\t28,7,28\n\trlwimi\t8,20,16,8,15\n\tlbzx\t29,7,29\n\trlwimi\t9,21,16,8,15\n\tlbzx\t30,7,30\n\trlwimi\t10,22,16,8,15\n\tlbzx\t31,7,31\n\trlwimi\t11,23,16,8,15\n\trlwimi\t8,24,8,16,23\n\trlwimi\t9,25,8,16,23\n\trlwimi\t10,26,8,16,23\n\trlwimi\t11,27,8,16,23\n\tor\t8,8,28\n\tor\t9,9,29\n\tor\t10,10,30\n\tor\t11,11,31\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.align\t4\n.Lppc_AES_decrypt_compact:\n\tlwz\t16,240(5)\n\taddi\t6,3,2048\n\tlwz\t12,0(5)\n\tlis\t7,0x8080\n\tlwz\t0,4(5)\n\tlis\t4,0x1b1b\n\tlwz\t14,8(5)\n\tori\t7,7,0x8080\n\tlwz\t15,12(5)\n\tori\t4,4,0x1b1b\n\taddi\t5,5,16\n\tmtctr\t16", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:34", "text": "xor\t10,10,14\n\txor\t11,11,15\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.align\t4\n.Lppc_AES_decrypt_compact:\n\tlwz\t16,240(5)\n\taddi\t6,3,2048\n\tlwz\t12,0(5)\n\tlis\t7,0x8080\n\tlwz\t0,4(5)\n\tlis\t4,0x1b1b\n\tlwz\t14,8(5)\n\tori\t7,7,0x8080\n\tlwz\t15,12(5)\n\tori\t4,4,0x1b1b\n\taddi\t5,5,16\n\tmtctr\t16\n.align\t4\n.Ldec_compact_loop:\n\txor\t8,8,12\n\txor\t9,9,0\n\trlwinm\t16,8,8,24,31\n\txor\t10,10,14\n\trlwinm\t17,9,8,24,31\n\txor\t11,11,15\n\trlwinm\t18,10,8,24,31\n\trlwinm\t19,11,8,24,31\n\trlwinm\t20,11,16,24,31\n\trlwinm\t21,8,16,24,31\n\trlwinm\t22,9,16,24,31\n\trlwinm\t23,10,16,24,31\n\tlbzx\t16,6,16\n\trlwinm\t24,10,24,24,31\n\tlbzx\t17,6,17\n\trlwinm\t25,11,24,24,31\n\tlbzx\t18,6,18\n\trlwinm\t26,8,24,24,31\n\tlbzx\t19,6,19\n\trlwinm\t27,9,24,24,31\n\tlbzx\t20,6,20\n\trlwinm\t28,9,0,24,31\n\tlbzx\t21,6,21\n\trlwinm\t29,10,0,24,31\n\tlbzx\t22,6,22\n\trlwinm\t30,11,0,24,31\n\tlbzx\t23,6,23\n\trlwinm\t31,8,0,24,31\n\tlbzx\t24,6,24\n\trlwinm\t8,16,24,0,7\n\tlbzx\t25,6,25\n\trlwinm\t9,17,24,0,7\n\tlbzx\t26,6,26\n\trlwinm\t10,18,24,0,7\n\tlbzx\t27,6,27\n\trlwinm\t11,19,24,0,7\n\tlbzx\t28,6,28\n\trlwimi\t8,20,16,8,15", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:35", "text": "lbzx\t19,6,19\n\trlwinm\t27,9,24,24,31\n\tlbzx\t20,6,20\n\trlwinm\t28,9,0,24,31\n\tlbzx\t21,6,21\n\trlwinm\t29,10,0,24,31\n\tlbzx\t22,6,22\n\trlwinm\t30,11,0,24,31\n\tlbzx\t23,6,23\n\trlwinm\t31,8,0,24,31\n\tlbzx\t24,6,24\n\trlwinm\t8,16,24,0,7\n\tlbzx\t25,6,25\n\trlwinm\t9,17,24,0,7\n\tlbzx\t26,6,26\n\trlwinm\t10,18,24,0,7\n\tlbzx\t27,6,27\n\trlwinm\t11,19,24,0,7\n\tlbzx\t28,6,28\n\trlwimi\t8,20,16,8,15\n\tlbzx\t29,6,29\n\trlwimi\t9,21,16,8,15\n\tlbzx\t30,6,30\n\trlwimi\t10,22,16,8,15\n\tlbzx\t31,6,31\n\trlwimi\t11,23,16,8,15\n\trlwimi\t8,24,8,16,23\n\trlwimi\t9,25,8,16,23\n\trlwimi\t10,26,8,16,23\n\trlwimi\t11,27,8,16,23\n\tlwz\t12,0(5)\n\tor\t8,8,28\n\tlwz\t0,4(5)\n\tor\t9,9,29\n\tlwz\t14,8(5)\n\tor\t10,10,30\n\tlwz\t15,12(5)\n\tor\t11,11,31\n\n\taddi\t5,5,16\n\tbdz\t.Ldec_compact_done\n\tand\t16,8,7\n\tand\t17,9,7\n\tand\t18,10,7\n\tand\t19,11,7\n\tsrwi\t20,16,7\n\tandc\t24,8,7\n\tsrwi\t21,17,7\n\tandc\t25,9,7\n\tsrwi\t22,18,7\n\tandc\t26,10,7\n\tsrwi\t23,19,7\n\tandc\t27,11,7\n\tsub\t16,16,20\n\tsub\t17,17,21\n\tsub\t18,18,22\n\tsub\t19,19,23\n\tadd\t24,24,24\n\tadd\t25,25,25\n\tadd\t26,26,26", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:36", "text": "bdz\t.Ldec_compact_done\n\tand\t16,8,7\n\tand\t17,9,7\n\tand\t18,10,7\n\tand\t19,11,7\n\tsrwi\t20,16,7\n\tandc\t24,8,7\n\tsrwi\t21,17,7\n\tandc\t25,9,7\n\tsrwi\t22,18,7\n\tandc\t26,10,7\n\tsrwi\t23,19,7\n\tandc\t27,11,7\n\tsub\t16,16,20\n\tsub\t17,17,21\n\tsub\t18,18,22\n\tsub\t19,19,23\n\tadd\t24,24,24\n\tadd\t25,25,25\n\tadd\t26,26,26\n\tadd\t27,27,27\n\tand\t16,16,4\n\tand\t17,17,4\n\tand\t18,18,4\n\tand\t19,19,4\n\txor\t16,16,24\n\txor\t17,17,25\n\txor\t18,18,26\n\txor\t19,19,27\n\n\tand\t20,16,7\n\tand\t21,17,7\n\tand\t22,18,7\n\tand\t23,19,7\n\tsrwi\t24,20,7\n\tandc\t28,16,7\n\tsrwi\t25,21,7\n\tandc\t29,17,7\n\tsrwi\t26,22,7\n\tandc\t30,18,7\n\tsrwi\t27,23,7\n\tandc\t31,19,7\n\tsub\t20,20,24\n\tsub\t21,21,25\n\tsub\t22,22,26\n\tsub\t23,23,27\n\tadd\t28,28,28\n\tadd\t29,29,29\n\tadd\t30,30,30\n\tadd\t31,31,31\n\tand\t20,20,4\n\tand\t21,21,4\n\tand\t22,22,4\n\tand\t23,23,4\n\txor\t20,20,28\n\txor\t21,21,29\n\txor\t22,22,30\n\txor\t23,23,31\n\n\tand\t24,20,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:37", "text": "srwi\t27,23,7\n\tandc\t31,19,7\n\tsub\t20,20,24\n\tsub\t21,21,25\n\tsub\t22,22,26\n\tsub\t23,23,27\n\tadd\t28,28,28\n\tadd\t29,29,29\n\tadd\t30,30,30\n\tadd\t31,31,31\n\tand\t20,20,4\n\tand\t21,21,4\n\tand\t22,22,4\n\tand\t23,23,4\n\txor\t20,20,28\n\txor\t21,21,29\n\txor\t22,22,30\n\txor\t23,23,31\n\n\tand\t24,20,7\n\tand\t25,21,7\n\tsrwi\t28,24,7\n\tand\t26,22,7\n\tsrwi\t29,25,7\n\tand\t27,23,7\n\tsrwi\t30,26,7\n\tsub\t24,24,28\n\tsrwi\t31,27,7\n\tsub\t25,25,29\n\tsub\t26,26,30\n\tsub\t27,27,31\n\tandc\t28,20,7\n\tandc\t29,21,7\n\tandc\t30,22,7\n\tandc\t31,23,7\n\tadd\t28,28,28\n\tadd\t29,29,29\n\tadd\t30,30,30\n\tadd\t31,31,31\n\tand\t24,24,4\n\tand\t25,25,4\n\tand\t26,26,4\n\tand\t27,27,4\n\txor\t24,24,28\n\txor\t25,25,29\n\txor\t26,26,30\n\txor\t27,27,31\n\n\txor\t16,16,8\n\txor\t17,17,9\n\txor\t18,18,10\n\txor\t19,19,11\n\txor\t20,20,8\n\txor\t21,21,9\n\txor\t22,22,10\n\txor\t23,23,11\n\trotrwi\t8,8,8\n\trotrwi\t9,9,8\n\txor\t8,8,16\n\trotrwi\t10,10,8", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:38", "text": "and\t25,25,4\n\tand\t26,26,4\n\tand\t27,27,4\n\txor\t24,24,28\n\txor\t25,25,29\n\txor\t26,26,30\n\txor\t27,27,31\n\n\txor\t16,16,8\n\txor\t17,17,9\n\txor\t18,18,10\n\txor\t19,19,11\n\txor\t20,20,8\n\txor\t21,21,9\n\txor\t22,22,10\n\txor\t23,23,11\n\trotrwi\t8,8,8\n\trotrwi\t9,9,8\n\txor\t8,8,16\n\trotrwi\t10,10,8\n\txor\t9,9,17\n\trotrwi\t11,11,8\n\txor\t10,10,18\n\txor\t11,11,19\n\txor\t16,16,24\n\txor\t17,17,25\n\txor\t18,18,26\n\txor\t19,19,27\n\txor\t8,8,20\n\trotrwi\t16,16,24\n\txor\t9,9,21\n\trotrwi\t17,17,24\n\txor\t10,10,22\n\trotrwi\t18,18,24\n\txor\t11,11,23\n\trotrwi\t19,19,24\n\txor\t20,20,24\n\txor\t21,21,25\n\txor\t22,22,26\n\txor\t23,23,27\n\txor\t8,8,24\n\trotrwi\t20,20,16\n\txor\t9,9,25\n\trotrwi\t21,21,16\n\txor\t10,10,26\n\trotrwi\t22,22,16\n\txor\t11,11,27\n\trotrwi\t23,23,16\n\txor\t8,8,16\n\trotrwi\t24,24,8\n\txor\t9,9,17\n\trotrwi\t25,25,8\n\txor\t10,10,18\n\trotrwi\t26,26,8\n\txor\t11,11,19\n\trotrwi\t27,27,8\n\txor\t8,8,20\n\txor\t9,9,21\n\txor\t10,10,22\n\txor\t11,11,23", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S:39", "text": "xor\t8,8,24\n\trotrwi\t20,20,16\n\txor\t9,9,25\n\trotrwi\t21,21,16\n\txor\t10,10,26\n\trotrwi\t22,22,16\n\txor\t11,11,27\n\trotrwi\t23,23,16\n\txor\t8,8,16\n\trotrwi\t24,24,8\n\txor\t9,9,17\n\trotrwi\t25,25,8\n\txor\t10,10,18\n\trotrwi\t26,26,8\n\txor\t11,11,19\n\trotrwi\t27,27,8\n\txor\t8,8,20\n\txor\t9,9,21\n\txor\t10,10,22\n\txor\t11,11,23\n\txor\t8,8,24\n\txor\t9,9,25\n\txor\t10,10,26\n\txor\t11,11,27\n\n\tb\t.Ldec_compact_loop\n.align\t4\n.Ldec_compact_done:\n\txor\t8,8,12\n\txor\t9,9,0\n\txor\t10,10,14\n\txor\t11,11,15\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n\n.byte\t65,69,83,32,102,111,114,32,80,80,67,44,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aes-ppc.S", "line_start": 1521, "line_end": 1560}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:1", "text": ".machine\t\"any\"\n\n.text\n\n.align\t7\nrcon:\n.byte\t0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00\n.byte\t0x1b,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x1b,0x00,0x00,0x00\n.byte\t0x0d,0x0e,0x0f,0x0c,0x0d,0x0e,0x0f,0x0c,0x0d,0x0e,0x0f,0x0c,0x0d,0x0e,0x0f,0x0c\n.byte\t0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00\n.long\t0x0f102132, 0x43546576, 0x8798a9ba, 0xcbdcedfe\n.Lconsts:\n\tmflr\t0\n\tbcl\t20,31,$+4\n\tmflr\t6\n\taddi\t6,6,-0x58\n\tmtlr\t0\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n.byte\t65,69,83,32,102,111,114,32,80,111,119,101,114,73,83,65,32,50,46,48,55,44,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n\n.globl\taes_p8_set_encrypt_key\n.type\taes_p8_set_encrypt_key,@function\n.align\t5\naes_p8_set_encrypt_key:\n.Lset_encrypt_key:\n\tmflr\t11\n\tstw\t11,4(1)\n\n\tli\t6,-1\n\tcmplwi\t3,0\n\tbeq-\t.Lenc_key_abort\n\tcmplwi\t5,0\n\tbeq-\t.Lenc_key_abort\n\tli\t6,-2\n\tcmpwi\t4,128\n\tblt-\t.Lenc_key_abort\n\tcmpwi\t4,256\n\tbgt-\t.Lenc_key_abort\n\tandi.\t0,4,0x3f\n\tbne-\t.Lenc_key_abort\n\n\tlis\t0,0xfff0\n\tmfspr\t12,256\n\tmtspr\t256,0\n\n\tbl\t.Lconsts\n\tmtlr\t11\n\n\tneg\t9,3\n\tlvx\t1,0,3\n\taddi\t3,3,15\n\tlvsr\t3,0,9\n\tli\t8,0x20\n\tcmpwi\t4,192\n\tlvx\t2,0,3\n\n\tlvx\t4,0,6", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:2", "text": "bgt-\t.Lenc_key_abort\n\tandi.\t0,4,0x3f\n\tbne-\t.Lenc_key_abort\n\n\tlis\t0,0xfff0\n\tmfspr\t12,256\n\tmtspr\t256,0\n\n\tbl\t.Lconsts\n\tmtlr\t11\n\n\tneg\t9,3\n\tlvx\t1,0,3\n\taddi\t3,3,15\n\tlvsr\t3,0,9\n\tli\t8,0x20\n\tcmpwi\t4,192\n\tlvx\t2,0,3\n\n\tlvx\t4,0,6\n\n\tlvx\t5,8,6\n\taddi\t6,6,0x10\n\tvperm\t1,1,2,3\n\tli\t7,8\n\tvxor\t0,0,0\n\tmtctr\t7\n\n\tlvsr\t8,0,5\n\tvspltisb\t9,-1\n\tlvx\t10,0,5\n\tvperm\t9,0,9,8\n\n\tblt\t.Loop128\n\taddi\t3,3,8\n\tbeq\t.L192\n\taddi\t3,3,8\n\tb\t.L256\n\n.align\t4\n.Loop128:\n\tvperm\t3,1,1,5\n\tvsldoi\t6,0,1,12\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvadduwm\t4,4,4\n\tvxor\t1,1,3\n\tbc\t16,0,.Loop128\n\n\tlvx\t4,0,6", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:3", "text": ".Loop128:\n\tvperm\t3,1,1,5\n\tvsldoi\t6,0,1,12\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvadduwm\t4,4,4\n\tvxor\t1,1,3\n\tbc\t16,0,.Loop128\n\n\tlvx\t4,0,6\n\n\tvperm\t3,1,1,5\n\tvsldoi\t6,0,1,12\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvadduwm\t4,4,4\n\tvxor\t1,1,3\n\n\tvperm\t3,1,1,5\n\tvsldoi\t6,0,1,12\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvxor\t1,1,3\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\n\taddi\t3,5,15\n\taddi\t5,5,0x50", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:4", "text": "vperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvxor\t1,1,3\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\n\taddi\t3,5,15\n\taddi\t5,5,0x50\n\n\tli\t8,10\n\tb\t.Ldone\n\n.align\t4\n.L192:\n\tlvx\t6,0,3\n\tli\t7,4\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\tvperm\t2,2,6,3\n\tvspltisb\t3,8\n\tmtctr\t7\n\tvsububm\t5,5,3\n\n.Loop192:\n\tvperm\t3,2,2,5\n\tvsldoi\t6,0,1,12\n.long\t0x10632509\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\n\tvsldoi\t7,0,2,8\n\tvspltw\t6,1,3\n\tvxor\t6,6,2\n\tvsldoi\t2,0,2,12\n\tvadduwm\t4,4,4\n\tvxor\t2,2,6\n\tvxor\t1,1,3\n\tvxor\t2,2,3\n\tvsldoi\t7,7,1,8\n\n\tvperm\t3,2,2,5", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:5", "text": "vsldoi\t6,0,1,12\n.long\t0x10632509\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\n\tvsldoi\t7,0,2,8\n\tvspltw\t6,1,3\n\tvxor\t6,6,2\n\tvsldoi\t2,0,2,12\n\tvadduwm\t4,4,4\n\tvxor\t2,2,6\n\tvxor\t1,1,3\n\tvxor\t2,2,3\n\tvsldoi\t7,7,1,8\n\n\tvperm\t3,2,2,5\n\tvsldoi\t6,0,1,12\n\tvperm\t11,7,7,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvsldoi\t7,1,2,8\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvperm\t11,7,7,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvspltw\t6,1,3\n\tvxor\t6,6,2\n\tvsldoi\t2,0,2,12\n\tvadduwm\t4,4,4\n\tvxor\t2,2,6\n\tvxor\t1,1,3\n\tvxor\t2,2,3\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\taddi\t3,5,15\n\taddi\t5,5,16\n\tbc\t16,0,.Loop192\n\n\tli\t8,12\n\taddi\t5,5,0x20\n\tb\t.Ldone\n\n.align\t4", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:6", "text": "vspltw\t6,1,3\n\tvxor\t6,6,2\n\tvsldoi\t2,0,2,12\n\tvadduwm\t4,4,4\n\tvxor\t2,2,6\n\tvxor\t1,1,3\n\tvxor\t2,2,3\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\taddi\t3,5,15\n\taddi\t5,5,16\n\tbc\t16,0,.Loop192\n\n\tli\t8,12\n\taddi\t5,5,0x20\n\tb\t.Ldone\n\n.align\t4\n.L256:\n\tlvx\t6,0,3\n\tli\t7,7\n\tli\t8,14\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\tvperm\t2,2,6,3\n\tmtctr\t7\n\n.Loop256:\n\tvperm\t3,2,2,5\n\tvsldoi\t6,0,1,12\n\tvperm\t11,2,2,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n.long\t0x10632509\n\tstvx\t7,0,5\n\taddi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvadduwm\t4,4,4\n\tvxor\t1,1,3\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\taddi\t3,5,15\n\taddi\t5,5,16\n\tbdz\t.Ldone\n\n\tvspltw\t3,1,3\n\tvsldoi\t6,0,2,12\n.long\t0x106305C8", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:7", "text": "addi\t5,5,16\n\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvsldoi\t6,0,6,12\n\tvxor\t1,1,6\n\tvadduwm\t4,4,4\n\tvxor\t1,1,3\n\tvperm\t11,1,1,8\n\tvsel\t7,10,11,9\n\tvor\t10,11,11\n\tstvx\t7,0,5\n\taddi\t3,5,15\n\taddi\t5,5,16\n\tbdz\t.Ldone\n\n\tvspltw\t3,1,3\n\tvsldoi\t6,0,2,12\n.long\t0x106305C8\n\n\tvxor\t2,2,6\n\tvsldoi\t6,0,6,12\n\tvxor\t2,2,6\n\tvsldoi\t6,0,6,12\n\tvxor\t2,2,6\n\n\tvxor\t2,2,3\n\tb\t.Loop256\n\n.align\t4\n.Ldone:\n\tlvx\t2,0,3\n\tvsel\t2,10,2,9\n\tstvx\t2,0,3\n\tli\t6,0\n\tmtspr\t256,12\n\tstw\t8,0(5)\n\n.Lenc_key_abort:\n\tmr\t3,6\n\tblr\n.long\t0\n.byte\t0,12,0x14,1,0,0,3,0\n.long\t0\n\n\n.globl\taes_p8_set_decrypt_key\n.type\taes_p8_set_decrypt_key,@function\n.align\t5\naes_p8_set_decrypt_key:\n\tstwu\t1,-32(1)\n\tmflr\t10\n\tstw\t10,32+4(1)\n\tbl\t.Lset_encrypt_key\n\tmtlr\t10\n\n\tcmpwi\t3,0\n\tbne-\t.Ldec_key_abort", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:8", "text": "mr\t3,6\n\tblr\n.long\t0\n.byte\t0,12,0x14,1,0,0,3,0\n.long\t0\n\n\n.globl\taes_p8_set_decrypt_key\n.type\taes_p8_set_decrypt_key,@function\n.align\t5\naes_p8_set_decrypt_key:\n\tstwu\t1,-32(1)\n\tmflr\t10\n\tstw\t10,32+4(1)\n\tbl\t.Lset_encrypt_key\n\tmtlr\t10\n\n\tcmpwi\t3,0\n\tbne-\t.Ldec_key_abort\n\n\tslwi\t7,8,4\n\tsubi\t3,5,240\n\tsrwi\t8,8,1\n\tadd\t5,3,7\n\tmtctr\t8\n\n.Ldeckey:\n\tlwz\t0, 0(3)\n\tlwz\t6, 4(3)\n\tlwz\t7, 8(3)\n\tlwz\t8, 12(3)\n\taddi\t3,3,16\n\tlwz\t9, 0(5)\n\tlwz\t10,4(5)\n\tlwz\t11,8(5)\n\tlwz\t12,12(5)\n\tstw\t0, 0(5)\n\tstw\t6, 4(5)\n\tstw\t7, 8(5)\n\tstw\t8, 12(5)\n\tsubi\t5,5,16\n\tstw\t9, -16(3)\n\tstw\t10,-12(3)\n\tstw\t11,-8(3)\n\tstw\t12,-4(3)\n\tbc\t16,0,.Ldeckey\n\n\txor\t3,3,3\n.Ldec_key_abort:\n\taddi\t1,1,32\n\tblr\n.long\t0\n.byte\t0,12,4,1,0x80,0,3,0\n.long\t0\n\n.globl\taes_p8_encrypt\n.type\taes_p8_encrypt,@function\n.align\t5\naes_p8_encrypt:\n\tlwz\t6,240(5)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:9", "text": "subi\t5,5,16\n\tstw\t9, -16(3)\n\tstw\t10,-12(3)\n\tstw\t11,-8(3)\n\tstw\t12,-4(3)\n\tbc\t16,0,.Ldeckey\n\n\txor\t3,3,3\n.Ldec_key_abort:\n\taddi\t1,1,32\n\tblr\n.long\t0\n.byte\t0,12,4,1,0x80,0,3,0\n.long\t0\n\n.globl\taes_p8_encrypt\n.type\taes_p8_encrypt,@function\n.align\t5\naes_p8_encrypt:\n\tlwz\t6,240(5)\n\tlis\t0,0xfc00\n\tmfspr\t12,256\n\tli\t7,15\n\tmtspr\t256,0\n\n\tlvx\t0,0,3\n\tneg\t11,4\n\tlvx\t1,7,3\n\tlvsl\t2,0,3\n\n\tlvsl\t3,0,11\n\n\tli\t7,16\n\tvperm\t0,0,1,2\n\tlvx\t1,0,5\n\tlvsl\t5,0,5\n\tsrwi\t6,6,1\n\tlvx\t2,7,5\n\taddi\t7,7,16\n\tsubi\t6,6,1\n\tvperm\t1,1,2,5\n\n\tvxor\t0,0,1\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tmtctr\t6\n\n.Loop_enc:\n\tvperm\t2,2,1,5\n.long\t0x10001508\n\tlvx\t2,7,5\n\taddi\t7,7,16\n\tvperm\t1,1,2,5\n.long\t0x10000D08\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tbc\t16,0,.Loop_enc\n\n\tvperm\t2,2,1,5\n.long\t0x10001508", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:10", "text": "vperm\t1,1,2,5\n\n\tvxor\t0,0,1\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tmtctr\t6\n\n.Loop_enc:\n\tvperm\t2,2,1,5\n.long\t0x10001508\n\tlvx\t2,7,5\n\taddi\t7,7,16\n\tvperm\t1,1,2,5\n.long\t0x10000D08\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tbc\t16,0,.Loop_enc\n\n\tvperm\t2,2,1,5\n.long\t0x10001508\n\tlvx\t2,7,5\n\tvperm\t1,1,2,5\n.long\t0x10000D09\n\n\tvspltisb\t2,-1\n\tvxor\t1,1,1\n\tli\t7,15\n\tvperm\t2,1,2,3\n\n\tlvx\t1,0,4\n\tvperm\t0,0,0,3\n\tvsel\t1,1,0,2\n\tlvx\t4,7,4\n\tstvx\t1,0,4\n\tvsel\t0,0,4,2\n\tstvx\t0,7,4\n\n\tmtspr\t256,12\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,3,0\n.long\t0\n\n.globl\taes_p8_decrypt\n.type\taes_p8_decrypt,@function\n.align\t5\naes_p8_decrypt:\n\tlwz\t6,240(5)\n\tlis\t0,0xfc00\n\tmfspr\t12,256\n\tli\t7,15\n\tmtspr\t256,0\n\n\tlvx\t0,0,3\n\tneg\t11,4\n\tlvx\t1,7,3\n\tlvsl\t2,0,3\n\n\tlvsl\t3,0,11", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:11", "text": ".byte\t0,12,0x14,0,0,0,3,0\n.long\t0\n\n.globl\taes_p8_decrypt\n.type\taes_p8_decrypt,@function\n.align\t5\naes_p8_decrypt:\n\tlwz\t6,240(5)\n\tlis\t0,0xfc00\n\tmfspr\t12,256\n\tli\t7,15\n\tmtspr\t256,0\n\n\tlvx\t0,0,3\n\tneg\t11,4\n\tlvx\t1,7,3\n\tlvsl\t2,0,3\n\n\tlvsl\t3,0,11\n\n\tli\t7,16\n\tvperm\t0,0,1,2\n\tlvx\t1,0,5\n\tlvsl\t5,0,5\n\tsrwi\t6,6,1\n\tlvx\t2,7,5\n\taddi\t7,7,16\n\tsubi\t6,6,1\n\tvperm\t1,1,2,5\n\n\tvxor\t0,0,1\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tmtctr\t6\n\n.Loop_dec:\n\tvperm\t2,2,1,5\n.long\t0x10001548\n\tlvx\t2,7,5\n\taddi\t7,7,16\n\tvperm\t1,1,2,5\n.long\t0x10000D48\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tbc\t16,0,.Loop_dec\n\n\tvperm\t2,2,1,5\n.long\t0x10001548\n\tlvx\t2,7,5\n\tvperm\t1,1,2,5\n.long\t0x10000D49\n\n\tvspltisb\t2,-1\n\tvxor\t1,1,1\n\tli\t7,15\n\tvperm\t2,1,2,3\n\n\tlvx\t1,0,4\n\tvperm\t0,0,0,3\n\tvsel\t1,1,0,2", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:12", "text": "vperm\t1,1,2,5\n.long\t0x10000D48\n\tlvx\t1,7,5\n\taddi\t7,7,16\n\tbc\t16,0,.Loop_dec\n\n\tvperm\t2,2,1,5\n.long\t0x10001548\n\tlvx\t2,7,5\n\tvperm\t1,1,2,5\n.long\t0x10000D49\n\n\tvspltisb\t2,-1\n\tvxor\t1,1,1\n\tli\t7,15\n\tvperm\t2,1,2,3\n\n\tlvx\t1,0,4\n\tvperm\t0,0,0,3\n\tvsel\t1,1,0,2\n\tlvx\t4,7,4\n\tstvx\t1,0,4\n\tvsel\t0,0,4,2\n\tstvx\t0,7,4\n\n\tmtspr\t256,12\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,3,0\n.long\t0\n\n.globl\taes_p8_cbc_encrypt\n.type\taes_p8_cbc_encrypt,@function\n.align\t5\naes_p8_cbc_encrypt:\n\tcmplwi\t5,16\n\tbltlr\n\n\tcmpwi\t8,0\n\tlis\t0,0xffe0\n\tmfspr\t12,256\n\tmtspr\t256,0\n\n\tli\t10,15\n\tvxor\t0,0,0\n\n\n\tlvx\t4,0,7\n\tlvsl\t6,0,7\n\tlvx\t5,10,7\n\n\tvperm\t4,4,5,6\n\n\tneg\t11,3\n\tlvsl\t10,0,6\n\tlwz\t9,240(6)\n\n\tlvsr\t6,0,11\n\tlvx\t5,0,3\n\taddi\t3,3,15", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:13", "text": "mfspr\t12,256\n\tmtspr\t256,0\n\n\tli\t10,15\n\tvxor\t0,0,0\n\n\n\tlvx\t4,0,7\n\tlvsl\t6,0,7\n\tlvx\t5,10,7\n\n\tvperm\t4,4,5,6\n\n\tneg\t11,3\n\tlvsl\t10,0,6\n\tlwz\t9,240(6)\n\n\tlvsr\t6,0,11\n\tlvx\t5,0,3\n\taddi\t3,3,15\n\n\n\tlvsr\t8,0,4\n\tvspltisb\t9,-1\n\tlvx\t7,0,4\n\tvperm\t9,0,9,8\n\n\n\tsrwi\t9,9,1\n\tli\t10,16\n\tsubi\t9,9,1\n\tbeq\t.Lcbc_dec\n\n.Lcbc_enc:\n\tvor\t2,5,5\n\tlvx\t5,0,3\n\taddi\t3,3,16\n\tmtctr\t9\n\tsubi\t5,5,16\n\n\tlvx\t0,0,6\n\tvperm\t2,2,5,6\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n\tvxor\t2,2,0\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tvxor\t2,2,4\n\n.Loop_cbc_enc:\n\tvperm\t1,1,0,10\n.long\t0x10420D08\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n.long\t0x10420508\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tbc\t16,0,.Loop_cbc_enc", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:14", "text": "lvx\t0,0,6\n\tvperm\t2,2,5,6\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n\tvxor\t2,2,0\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tvxor\t2,2,4\n\n.Loop_cbc_enc:\n\tvperm\t1,1,0,10\n.long\t0x10420D08\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n.long\t0x10420508\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tbc\t16,0,.Loop_cbc_enc\n\n\tvperm\t1,1,0,10\n.long\t0x10420D08\n\tlvx\t1,10,6\n\tli\t10,16\n\tvperm\t0,0,1,10\n.long\t0x10820509\n\tcmplwi\t5,16\n\n\tvperm\t3,4,4,8\n\tvsel\t2,7,3,9\n\tvor\t7,3,3\n\tstvx\t2,0,4\n\taddi\t4,4,16\n\tbge\t.Lcbc_enc\n\n\tb\t.Lcbc_done\n\n.align\t4\n.Lcbc_dec:\n\tcmplwi\t5,128\n\tbge\t_aesp8_cbc_decrypt8x\n\tvor\t3,5,5\n\tlvx\t5,0,3\n\taddi\t3,3,16\n\tmtctr\t9\n\tsubi\t5,5,16\n\n\tlvx\t0,0,6\n\tvperm\t3,3,5,6\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n\tvxor\t2,3,0\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\n.Loop_cbc_dec:\n\tvperm\t1,1,0,10\n.long\t0x10420D48", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:15", "text": "cmplwi\t5,128\n\tbge\t_aesp8_cbc_decrypt8x\n\tvor\t3,5,5\n\tlvx\t5,0,3\n\taddi\t3,3,16\n\tmtctr\t9\n\tsubi\t5,5,16\n\n\tlvx\t0,0,6\n\tvperm\t3,3,5,6\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n\tvxor\t2,3,0\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\n.Loop_cbc_dec:\n\tvperm\t1,1,0,10\n.long\t0x10420D48\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n.long\t0x10420548\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tbc\t16,0,.Loop_cbc_dec\n\n\tvperm\t1,1,0,10\n.long\t0x10420D48\n\tlvx\t1,10,6\n\tli\t10,16\n\tvperm\t0,0,1,10\n.long\t0x10420549\n\tcmplwi\t5,16\n\n\tvxor\t2,2,4\n\tvor\t4,3,3\n\tvperm\t3,2,2,8\n\tvsel\t2,7,3,9\n\tvor\t7,3,3\n\tstvx\t2,0,4\n\taddi\t4,4,16\n\tbge\t.Lcbc_dec\n\n.Lcbc_done:\n\taddi\t4,4,-1\n\tlvx\t2,0,4\n\tvsel\t2,7,2,9\n\tstvx\t2,0,4\n\n\tneg\t8,7\n\tli\t10,15\n\tvxor\t0,0,0\n\tvspltisb\t9,-1\n\n\tlvsl\t8,0,8\n\tvperm\t9,0,9,8\n\n\tlvx\t7,0,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:16", "text": "vor\t7,3,3\n\tstvx\t2,0,4\n\taddi\t4,4,16\n\tbge\t.Lcbc_dec\n\n.Lcbc_done:\n\taddi\t4,4,-1\n\tlvx\t2,0,4\n\tvsel\t2,7,2,9\n\tstvx\t2,0,4\n\n\tneg\t8,7\n\tli\t10,15\n\tvxor\t0,0,0\n\tvspltisb\t9,-1\n\n\tlvsl\t8,0,8\n\tvperm\t9,0,9,8\n\n\tlvx\t7,0,7\n\tvperm\t4,4,4,8\n\tvsel\t2,7,4,9\n\tlvx\t5,10,7\n\tstvx\t2,0,7\n\tvsel\t2,4,5,9\n\tstvx\t2,10,7\n\n\tmtspr\t256,12\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,6,0\n.long\t0\n.align\t5\n_aesp8_cbc_decrypt8x:\n\tstwu\t1,-392(1)\n\tli\t10,175\n\tli\t11,191\n\tstvx\t20,10,1\n\taddi\t10,10,32\n\tstvx\t21,11,1\n\taddi\t11,11,32\n\tstvx\t22,10,1\n\taddi\t10,10,32\n\tstvx\t23,11,1\n\taddi\t11,11,32\n\tstvx\t24,10,1\n\taddi\t10,10,32\n\tstvx\t25,11,1\n\taddi\t11,11,32\n\tstvx\t26,10,1\n\taddi\t10,10,32\n\tstvx\t27,11,1\n\taddi\t11,11,32\n\tstvx\t28,10,1\n\taddi\t10,10,32\n\tstvx\t29,11,1\n\taddi\t11,11,32\n\tstvx\t30,10,1\n\tstvx\t31,11,1\n\tli\t0,-1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:17", "text": "addi\t11,11,32\n\tstvx\t22,10,1\n\taddi\t10,10,32\n\tstvx\t23,11,1\n\taddi\t11,11,32\n\tstvx\t24,10,1\n\taddi\t10,10,32\n\tstvx\t25,11,1\n\taddi\t11,11,32\n\tstvx\t26,10,1\n\taddi\t10,10,32\n\tstvx\t27,11,1\n\taddi\t11,11,32\n\tstvx\t28,10,1\n\taddi\t10,10,32\n\tstvx\t29,11,1\n\taddi\t11,11,32\n\tstvx\t30,10,1\n\tstvx\t31,11,1\n\tli\t0,-1\n\tstw\t12,364(1)\n\tli\t8,0x10\n\tstw\t26,368(1)\n\tli\t26,0x20\n\tstw\t27,372(1)\n\tli\t27,0x30\n\tstw\t28,376(1)\n\tli\t28,0x40\n\tstw\t29,380(1)\n\tli\t29,0x50\n\tstw\t30,384(1)\n\tli\t30,0x60\n\tstw\t31,388(1)\n\tli\t31,0x70\n\tmtspr\t256,0\n\n\tsubi\t9,9,3\n\tsubi\t5,5,128\n\n\tlvx\t23,0,6\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,10\n\taddi\t11,1,32+15\n\tmtctr\t9\n\n.Load_cbc_dec_key:\n\tvperm\t24,30,31,10\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,11\n\tvperm\t25,31,30,10\n\tlvx\t31,0,6\n\tstvx\t25,8,11\n\taddi\t11,11,0x20\n\tbc\t16,0,.Load_cbc_dec_key\n\n\tlvx\t26,8,6\n\tvperm\t24,30,31,10", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:18", "text": "lvx\t30,8,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,10\n\taddi\t11,1,32+15\n\tmtctr\t9\n\n.Load_cbc_dec_key:\n\tvperm\t24,30,31,10\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,11\n\tvperm\t25,31,30,10\n\tlvx\t31,0,6\n\tstvx\t25,8,11\n\taddi\t11,11,0x20\n\tbc\t16,0,.Load_cbc_dec_key\n\n\tlvx\t26,8,6\n\tvperm\t24,30,31,10\n\tlvx\t27,26,6\n\tstvx\t24,0,11\n\tvperm\t25,31,26,10\n\tlvx\t28,27,6\n\tstvx\t25,8,11\n\taddi\t11,1,32+15\n\tvperm\t26,26,27,10\n\tlvx\t29,28,6\n\tvperm\t27,27,28,10\n\tlvx\t30,29,6\n\tvperm\t28,28,29,10\n\tlvx\t31,30,6\n\tvperm\t29,29,30,10\n\tlvx\t14,31,6\n\tvperm\t30,30,31,10\n\tlvx\t24,0,11\n\tvperm\t31,31,14,10\n\tlvx\t25,8,11\n\n\n\n\tsubi\t3,3,15\n\n\n.long\t0x7C001E99\n\n\n.long\t0x7C281E99\n\n.long\t0x7C5A1E99\n\n.long\t0x7C7B1E99\n\n.long\t0x7D5C1E99\n\n\tvxor\t14,0,23\n.long\t0x7D7D1E99\n\n\tvxor\t15,1,23\n.long\t0x7D9E1E99", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:19", "text": "subi\t3,3,15\n\n\n.long\t0x7C001E99\n\n\n.long\t0x7C281E99\n\n.long\t0x7C5A1E99\n\n.long\t0x7C7B1E99\n\n.long\t0x7D5C1E99\n\n\tvxor\t14,0,23\n.long\t0x7D7D1E99\n\n\tvxor\t15,1,23\n.long\t0x7D9E1E99\n\n\tvxor\t16,2,23\n.long\t0x7DBF1E99\n\taddi\t3,3,0x80\n\n\tvxor\t17,3,23\n\n\tvxor\t18,10,23\n\n\tvxor\t19,11,23\n\tvxor\t20,12,23\n\tvxor\t21,13,23\n\n\tmtctr\t9\n\tb\t.Loop_cbc_dec8x\n.align\t5\n.Loop_cbc_dec8x:\n.long\t0x11CEC548\n.long\t0x11EFC548\n.long\t0x1210C548\n.long\t0x1231C548\n.long\t0x1252C548\n.long\t0x1273C548\n.long\t0x1294C548\n.long\t0x12B5C548\n\tlvx\t24,26,11\n\taddi\t11,11,0x20\n\n.long\t0x11CECD48\n.long\t0x11EFCD48\n.long\t0x1210CD48\n.long\t0x1231CD48\n.long\t0x1252CD48\n.long\t0x1273CD48\n.long\t0x1294CD48\n.long\t0x12B5CD48\n\tlvx\t25,8,11\n\tbc\t16,0,.Loop_cbc_dec8x\n\n\tsubic\t5,5,128", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:20", "text": ".long\t0x1231C548\n.long\t0x1252C548\n.long\t0x1273C548\n.long\t0x1294C548\n.long\t0x12B5C548\n\tlvx\t24,26,11\n\taddi\t11,11,0x20\n\n.long\t0x11CECD48\n.long\t0x11EFCD48\n.long\t0x1210CD48\n.long\t0x1231CD48\n.long\t0x1252CD48\n.long\t0x1273CD48\n.long\t0x1294CD48\n.long\t0x12B5CD48\n\tlvx\t25,8,11\n\tbc\t16,0,.Loop_cbc_dec8x\n\n\tsubic\t5,5,128\n.long\t0x11CEC548\n.long\t0x11EFC548\n.long\t0x1210C548\n.long\t0x1231C548\n.long\t0x1252C548\n.long\t0x1273C548\n.long\t0x1294C548\n.long\t0x12B5C548\n\n\tsubfe.\t0,0,0\n.long\t0x11CECD48\n.long\t0x11EFCD48\n.long\t0x1210CD48\n.long\t0x1231CD48\n.long\t0x1252CD48\n.long\t0x1273CD48\n.long\t0x1294CD48\n.long\t0x12B5CD48\n\n\tand\t0,0,5\n.long\t0x11CED548\n.long\t0x11EFD548\n.long\t0x1210D548\n.long\t0x1231D548\n.long\t0x1252D548\n.long\t0x1273D548\n.long\t0x1294D548\n.long\t0x12B5D548\n\n\tadd\t3,3,0\n\n\n\n.long\t0x11CEDD48\n.long\t0x11EFDD48\n.long\t0x1210DD48\n.long\t0x1231DD48\n.long\t0x1252DD48\n.long\t0x1273DD48\n.long\t0x1294DD48", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:21", "text": ".long\t0x11CED548\n.long\t0x11EFD548\n.long\t0x1210D548\n.long\t0x1231D548\n.long\t0x1252D548\n.long\t0x1273D548\n.long\t0x1294D548\n.long\t0x12B5D548\n\n\tadd\t3,3,0\n\n\n\n.long\t0x11CEDD48\n.long\t0x11EFDD48\n.long\t0x1210DD48\n.long\t0x1231DD48\n.long\t0x1252DD48\n.long\t0x1273DD48\n.long\t0x1294DD48\n.long\t0x12B5DD48\n\n\taddi\t11,1,32+15\n.long\t0x11CEE548\n.long\t0x11EFE548\n.long\t0x1210E548\n.long\t0x1231E548\n.long\t0x1252E548\n.long\t0x1273E548\n.long\t0x1294E548\n.long\t0x12B5E548\n\tlvx\t24,0,11\n\n.long\t0x11CEED48\n.long\t0x11EFED48\n.long\t0x1210ED48\n.long\t0x1231ED48\n.long\t0x1252ED48\n.long\t0x1273ED48\n.long\t0x1294ED48\n.long\t0x12B5ED48\n\tlvx\t25,8,11\n\n.long\t0x11CEF548\n\tvxor\t4,4,31\n.long\t0x11EFF548\n\tvxor\t0,0,31\n.long\t0x1210F548\n\tvxor\t1,1,31\n.long\t0x1231F548\n\tvxor\t2,2,31\n.long\t0x1252F548\n\tvxor\t3,3,31\n.long\t0x1273F548\n\tvxor\t10,10,31\n.long\t0x1294F548\n\tvxor\t11,11,31\n.long\t0x12B5F548\n\tvxor\t12,12,31", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:22", "text": ".long\t0x12B5ED48\n\tlvx\t25,8,11\n\n.long\t0x11CEF548\n\tvxor\t4,4,31\n.long\t0x11EFF548\n\tvxor\t0,0,31\n.long\t0x1210F548\n\tvxor\t1,1,31\n.long\t0x1231F548\n\tvxor\t2,2,31\n.long\t0x1252F548\n\tvxor\t3,3,31\n.long\t0x1273F548\n\tvxor\t10,10,31\n.long\t0x1294F548\n\tvxor\t11,11,31\n.long\t0x12B5F548\n\tvxor\t12,12,31\n\n.long\t0x11CE2549\n.long\t0x11EF0549\n.long\t0x7C001E99\n.long\t0x12100D49\n.long\t0x7C281E99\n.long\t0x12311549\n\n.long\t0x7C5A1E99\n.long\t0x12521D49\n\n.long\t0x7C7B1E99\n.long\t0x12735549\n\n.long\t0x7D5C1E99\n.long\t0x12945D49\n\n.long\t0x7D7D1E99\n.long\t0x12B56549\n\n.long\t0x7D9E1E99\n\tvor\t4,13,13\n\n.long\t0x7DBF1E99\n\taddi\t3,3,0x80\n\n\n\n.long\t0x7DC02799\n\n\tvxor\t14,0,23\n\n.long\t0x7DE82799\n\n\tvxor\t15,1,23\n\n.long\t0x7E1A2799\n\tvxor\t16,2,23\n\n.long\t0x7E3B2799\n\tvxor\t17,3,23", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:23", "text": "vor\t4,13,13\n\n.long\t0x7DBF1E99\n\taddi\t3,3,0x80\n\n\n\n.long\t0x7DC02799\n\n\tvxor\t14,0,23\n\n.long\t0x7DE82799\n\n\tvxor\t15,1,23\n\n.long\t0x7E1A2799\n\tvxor\t16,2,23\n\n.long\t0x7E3B2799\n\tvxor\t17,3,23\n\n.long\t0x7E5C2799\n\tvxor\t18,10,23\n\n.long\t0x7E7D2799\n\tvxor\t19,11,23\n\n.long\t0x7E9E2799\n\tvxor\t20,12,23\n.long\t0x7EBF2799\n\taddi\t4,4,0x80\n\tvxor\t21,13,23\n\n\tmtctr\t9\n\tbeq\t.Loop_cbc_dec8x\n\n\taddic.\t5,5,128\n\tbeq\t.Lcbc_dec8x_done\n\tnop\n\tnop\n\n.Loop_cbc_dec8x_tail:\n.long\t0x11EFC548\n.long\t0x1210C548\n.long\t0x1231C548\n.long\t0x1252C548\n.long\t0x1273C548\n.long\t0x1294C548\n.long\t0x12B5C548\n\tlvx\t24,26,11\n\taddi\t11,11,0x20\n\n.long\t0x11EFCD48\n.long\t0x1210CD48\n.long\t0x1231CD48\n.long\t0x1252CD48\n.long\t0x1273CD48\n.long\t0x1294CD48\n.long\t0x12B5CD48\n\tlvx\t25,8,11", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:24", "text": ".Loop_cbc_dec8x_tail:\n.long\t0x11EFC548\n.long\t0x1210C548\n.long\t0x1231C548\n.long\t0x1252C548\n.long\t0x1273C548\n.long\t0x1294C548\n.long\t0x12B5C548\n\tlvx\t24,26,11\n\taddi\t11,11,0x20\n\n.long\t0x11EFCD48\n.long\t0x1210CD48\n.long\t0x1231CD48\n.long\t0x1252CD48\n.long\t0x1273CD48\n.long\t0x1294CD48\n.long\t0x12B5CD48\n\tlvx\t25,8,11\n\tbc\t16,0,.Loop_cbc_dec8x_tail\n\n.long\t0x11EFC548\n.long\t0x1210C548\n.long\t0x1231C548\n.long\t0x1252C548\n.long\t0x1273C548\n.long\t0x1294C548\n.long\t0x12B5C548\n\n.long\t0x11EFCD48\n.long\t0x1210CD48\n.long\t0x1231CD48\n.long\t0x1252CD48\n.long\t0x1273CD48\n.long\t0x1294CD48\n.long\t0x12B5CD48\n\n.long\t0x11EFD548\n.long\t0x1210D548\n.long\t0x1231D548\n.long\t0x1252D548\n.long\t0x1273D548\n.long\t0x1294D548\n.long\t0x12B5D548\n\n.long\t0x11EFDD48\n.long\t0x1210DD48\n.long\t0x1231DD48\n.long\t0x1252DD48\n.long\t0x1273DD48\n.long\t0x1294DD48\n.long\t0x12B5DD48\n\n.long\t0x11EFE548\n.long\t0x1210E548\n.long\t0x1231E548\n.long\t0x1252E548\n.long\t0x1273E548\n.long\t0x1294E548", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:25", "text": ".long\t0x1231D548\n.long\t0x1252D548\n.long\t0x1273D548\n.long\t0x1294D548\n.long\t0x12B5D548\n\n.long\t0x11EFDD48\n.long\t0x1210DD48\n.long\t0x1231DD48\n.long\t0x1252DD48\n.long\t0x1273DD48\n.long\t0x1294DD48\n.long\t0x12B5DD48\n\n.long\t0x11EFE548\n.long\t0x1210E548\n.long\t0x1231E548\n.long\t0x1252E548\n.long\t0x1273E548\n.long\t0x1294E548\n.long\t0x12B5E548\n\n.long\t0x11EFED48\n.long\t0x1210ED48\n.long\t0x1231ED48\n.long\t0x1252ED48\n.long\t0x1273ED48\n.long\t0x1294ED48\n.long\t0x12B5ED48\n\n.long\t0x11EFF548\n\tvxor\t4,4,31\n.long\t0x1210F548\n\tvxor\t1,1,31\n.long\t0x1231F548\n\tvxor\t2,2,31\n.long\t0x1252F548\n\tvxor\t3,3,31\n.long\t0x1273F548\n\tvxor\t10,10,31\n.long\t0x1294F548\n\tvxor\t11,11,31\n.long\t0x12B5F548\n\tvxor\t12,12,31\n\n\tcmplwi\t5,32\n\tblt\t.Lcbc_dec8x_one\n\tnop\n\tbeq\t.Lcbc_dec8x_two\n\tcmplwi\t5,64\n\tblt\t.Lcbc_dec8x_three\n\tnop\n\tbeq\t.Lcbc_dec8x_four\n\tcmplwi\t5,96\n\tblt\t.Lcbc_dec8x_five\n\tnop\n\tbeq\t.Lcbc_dec8x_six\n\n.Lcbc_dec8x_seven:\n.long\t0x11EF2549", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:26", "text": ".long\t0x1294F548\n\tvxor\t11,11,31\n.long\t0x12B5F548\n\tvxor\t12,12,31\n\n\tcmplwi\t5,32\n\tblt\t.Lcbc_dec8x_one\n\tnop\n\tbeq\t.Lcbc_dec8x_two\n\tcmplwi\t5,64\n\tblt\t.Lcbc_dec8x_three\n\tnop\n\tbeq\t.Lcbc_dec8x_four\n\tcmplwi\t5,96\n\tblt\t.Lcbc_dec8x_five\n\tnop\n\tbeq\t.Lcbc_dec8x_six\n\n.Lcbc_dec8x_seven:\n.long\t0x11EF2549\n.long\t0x12100D49\n.long\t0x12311549\n.long\t0x12521D49\n.long\t0x12735549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799\n\n.long\t0x7E7C2799\n\n.long\t0x7E9D2799\n.long\t0x7EBE2799\n\taddi\t4,4,0x70\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_six:\n.long\t0x12102549\n.long\t0x12311549\n.long\t0x12521D49\n.long\t0x12735549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E002799\n\n.long\t0x7E282799", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:27", "text": ".long\t0x7E9D2799\n.long\t0x7EBE2799\n\taddi\t4,4,0x70\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_six:\n.long\t0x12102549\n.long\t0x12311549\n.long\t0x12521D49\n.long\t0x12735549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E002799\n\n.long\t0x7E282799\n\n.long\t0x7E5A2799\n\n.long\t0x7E7B2799\n\n.long\t0x7E9C2799\n.long\t0x7EBD2799\n\taddi\t4,4,0x60\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_five:\n.long\t0x12312549\n.long\t0x12521D49\n.long\t0x12735549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E202799\n\n.long\t0x7E482799\n\n.long\t0x7E7A2799\n\n.long\t0x7E9B2799\n.long\t0x7EBC2799\n\taddi\t4,4,0x50\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_four:\n.long\t0x12522549\n.long\t0x12735549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:28", "text": ".long\t0x7E202799\n\n.long\t0x7E482799\n\n.long\t0x7E7A2799\n\n.long\t0x7E9B2799\n.long\t0x7EBC2799\n\taddi\t4,4,0x50\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_four:\n.long\t0x12522549\n.long\t0x12735549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E402799\n\n.long\t0x7E682799\n\n.long\t0x7E9A2799\n.long\t0x7EBB2799\n\taddi\t4,4,0x40\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_three:\n.long\t0x12732549\n.long\t0x12945D49\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E602799\n\n.long\t0x7E882799\n.long\t0x7EBA2799\n\taddi\t4,4,0x30\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_two:\n.long\t0x12942549\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E802799\n.long\t0x7EA82799\n\taddi\t4,4,0x20\n\tb\t.Lcbc_dec8x_done", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:29", "text": ".long\t0x7E602799\n\n.long\t0x7E882799\n.long\t0x7EBA2799\n\taddi\t4,4,0x30\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_two:\n.long\t0x12942549\n.long\t0x12B56549\n\tvor\t4,13,13\n\n\n\n.long\t0x7E802799\n.long\t0x7EA82799\n\taddi\t4,4,0x20\n\tb\t.Lcbc_dec8x_done\n\n.align\t5\n.Lcbc_dec8x_one:\n.long\t0x12B52549\n\tvor\t4,13,13\n\n\n.long\t0x7EA02799\n\taddi\t4,4,0x10\n\n.Lcbc_dec8x_done:\n\n.long\t0x7C803F99\n\n\tli\t10,47\n\tli\t11,63\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\n\tmtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:30", "text": "addi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\n\tmtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1\n\taddi\t11,11,32\n\tlvx\t24,10,1\n\taddi\t10,10,32\n\tlvx\t25,11,1\n\taddi\t11,11,32\n\tlvx\t26,10,1\n\taddi\t10,10,32\n\tlvx\t27,11,1\n\taddi\t11,11,32\n\tlvx\t28,10,1\n\taddi\t10,10,32\n\tlvx\t29,11,1\n\taddi\t11,11,32\n\tlvx\t30,10,1\n\tlvx\t31,11,1\n\tlwz\t26,368(1)\n\tlwz\t27,372(1)\n\tlwz\t28,376(1)\n\tlwz\t29,380(1)\n\tlwz\t30,384(1)\n\tlwz\t31,388(1)\n\taddi\t1,1,392\n\tblr\n.long\t0\n.byte\t0,12,0x04,0,0x80,6,6,0\n.long\t0\n\n.globl\taes_p8_ctr32_encrypt_blocks\n.type\taes_p8_ctr32_encrypt_blocks,@function\n.align\t5\naes_p8_ctr32_encrypt_blocks:\n\tcmplwi\t5,1\n\tbltlr\n\n\tlis\t0,0xfff0\n\tmfspr\t12,256\n\tmtspr\t256,0\n\n\tli\t10,15\n\tvxor\t0,0,0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:31", "text": "lwz\t31,388(1)\n\taddi\t1,1,392\n\tblr\n.long\t0\n.byte\t0,12,0x04,0,0x80,6,6,0\n.long\t0\n\n.globl\taes_p8_ctr32_encrypt_blocks\n.type\taes_p8_ctr32_encrypt_blocks,@function\n.align\t5\naes_p8_ctr32_encrypt_blocks:\n\tcmplwi\t5,1\n\tbltlr\n\n\tlis\t0,0xfff0\n\tmfspr\t12,256\n\tmtspr\t256,0\n\n\tli\t10,15\n\tvxor\t0,0,0\n\n\n\tlvx\t4,0,7\n\tlvsl\t6,0,7\n\tlvx\t5,10,7\n\tvspltisb\t11,1\n\n\tvperm\t4,4,5,6\n\tvsldoi\t11,0,11,1\n\n\tneg\t11,3\n\tlvsl\t10,0,6\n\tlwz\t9,240(6)\n\n\tlvsr\t6,0,11\n\tlvx\t5,0,3\n\taddi\t3,3,15\n\n\n\tsrwi\t9,9,1\n\tli\t10,16\n\tsubi\t9,9,1\n\n\tcmplwi\t5,8\n\tbge\t_aesp8_ctr32_encrypt8x\n\n\tlvsr\t8,0,4\n\tvspltisb\t9,-1\n\tlvx\t7,0,4\n\tvperm\t9,0,9,8\n\n\n\tlvx\t0,0,6\n\tmtctr\t9\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n\tvxor\t2,4,0\n\tlvx\t0,10,6\n\taddi\t10,10,16", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:32", "text": "li\t10,16\n\tsubi\t9,9,1\n\n\tcmplwi\t5,8\n\tbge\t_aesp8_ctr32_encrypt8x\n\n\tlvsr\t8,0,4\n\tvspltisb\t9,-1\n\tlvx\t7,0,4\n\tvperm\t9,0,9,8\n\n\n\tlvx\t0,0,6\n\tmtctr\t9\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n\tvxor\t2,4,0\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tb\t.Loop_ctr32_enc\n\n.align\t5\n.Loop_ctr32_enc:\n\tvperm\t1,1,0,10\n.long\t0x10420D08\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t0,0,1,10\n.long\t0x10420508\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tbc\t16,0,.Loop_ctr32_enc\n\n\tvadduwm\t4,4,11\n\tvor\t3,5,5\n\tlvx\t5,0,3\n\taddi\t3,3,16\n\tsubic.\t5,5,1\n\n\tvperm\t1,1,0,10\n.long\t0x10420D08\n\tlvx\t1,10,6\n\tvperm\t3,3,5,6\n\tli\t10,16\n\tvperm\t1,0,1,10\n\tlvx\t0,0,6\n\tvxor\t3,3,1\n.long\t0x10421D09\n\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t2,2,2,8\n\tvsel\t3,7,2,9\n\tmtctr\t9\n\tvperm\t0,0,1,10\n\tvor\t7,2,2\n\tvxor\t2,4,0\n\tlvx\t0,10,6\n\taddi\t10,10,16", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:33", "text": "vperm\t1,1,0,10\n.long\t0x10420D08\n\tlvx\t1,10,6\n\tvperm\t3,3,5,6\n\tli\t10,16\n\tvperm\t1,0,1,10\n\tlvx\t0,0,6\n\tvxor\t3,3,1\n.long\t0x10421D09\n\n\tlvx\t1,10,6\n\taddi\t10,10,16\n\tvperm\t2,2,2,8\n\tvsel\t3,7,2,9\n\tmtctr\t9\n\tvperm\t0,0,1,10\n\tvor\t7,2,2\n\tvxor\t2,4,0\n\tlvx\t0,10,6\n\taddi\t10,10,16\n\tstvx\t3,0,4\n\taddi\t4,4,16\n\tbne\t.Loop_ctr32_enc\n\n\taddi\t4,4,-1\n\tlvx\t2,0,4\n\tvsel\t2,7,2,9\n\tstvx\t2,0,4\n\n\tmtspr\t256,12\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,6,0\n.long\t0\n.align\t5\n_aesp8_ctr32_encrypt8x:\n\tstwu\t1,-392(1)\n\tli\t10,175\n\tli\t11,191\n\tstvx\t20,10,1\n\taddi\t10,10,32\n\tstvx\t21,11,1\n\taddi\t11,11,32\n\tstvx\t22,10,1\n\taddi\t10,10,32\n\tstvx\t23,11,1\n\taddi\t11,11,32\n\tstvx\t24,10,1\n\taddi\t10,10,32\n\tstvx\t25,11,1\n\taddi\t11,11,32\n\tstvx\t26,10,1\n\taddi\t10,10,32\n\tstvx\t27,11,1\n\taddi\t11,11,32\n\tstvx\t28,10,1\n\taddi\t10,10,32\n\tstvx\t29,11,1\n\taddi\t11,11,32\n\tstvx\t30,10,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:34", "text": "addi\t10,10,32\n\tstvx\t21,11,1\n\taddi\t11,11,32\n\tstvx\t22,10,1\n\taddi\t10,10,32\n\tstvx\t23,11,1\n\taddi\t11,11,32\n\tstvx\t24,10,1\n\taddi\t10,10,32\n\tstvx\t25,11,1\n\taddi\t11,11,32\n\tstvx\t26,10,1\n\taddi\t10,10,32\n\tstvx\t27,11,1\n\taddi\t11,11,32\n\tstvx\t28,10,1\n\taddi\t10,10,32\n\tstvx\t29,11,1\n\taddi\t11,11,32\n\tstvx\t30,10,1\n\tstvx\t31,11,1\n\tli\t0,-1\n\tstw\t12,364(1)\n\tli\t8,0x10\n\tstw\t26,368(1)\n\tli\t26,0x20\n\tstw\t27,372(1)\n\tli\t27,0x30\n\tstw\t28,376(1)\n\tli\t28,0x40\n\tstw\t29,380(1)\n\tli\t29,0x50\n\tstw\t30,384(1)\n\tli\t30,0x60\n\tstw\t31,388(1)\n\tli\t31,0x70\n\tmtspr\t256,0\n\n\tsubi\t9,9,3\n\n\tlvx\t23,0,6\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,10\n\taddi\t11,1,32+15\n\tmtctr\t9\n\n.Load_ctr32_enc_key:\n\tvperm\t24,30,31,10\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,11\n\tvperm\t25,31,30,10\n\tlvx\t31,0,6\n\tstvx\t25,8,11\n\taddi\t11,11,0x20\n\tbc\t16,0,.Load_ctr32_enc_key\n\n\tlvx\t26,8,6", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:35", "text": "lvx\t23,0,6\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,10\n\taddi\t11,1,32+15\n\tmtctr\t9\n\n.Load_ctr32_enc_key:\n\tvperm\t24,30,31,10\n\tlvx\t30,8,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,11\n\tvperm\t25,31,30,10\n\tlvx\t31,0,6\n\tstvx\t25,8,11\n\taddi\t11,11,0x20\n\tbc\t16,0,.Load_ctr32_enc_key\n\n\tlvx\t26,8,6\n\tvperm\t24,30,31,10\n\tlvx\t27,26,6\n\tstvx\t24,0,11\n\tvperm\t25,31,26,10\n\tlvx\t28,27,6\n\tstvx\t25,8,11\n\taddi\t11,1,32+15\n\tvperm\t26,26,27,10\n\tlvx\t29,28,6\n\tvperm\t27,27,28,10\n\tlvx\t30,29,6\n\tvperm\t28,28,29,10\n\tlvx\t31,30,6\n\tvperm\t29,29,30,10\n\tlvx\t15,31,6\n\tvperm\t30,30,31,10\n\tlvx\t24,0,11\n\tvperm\t31,31,15,10\n\tlvx\t25,8,11\n\n\tvadduwm\t7,11,11\n\tsubi\t3,3,15\n\tslwi\t5,5,4\n\n\tvadduwm\t16,4,11\n\tvadduwm\t17,4,7\n\tvxor\t15,4,23\n\n\tvadduwm\t18,16,7\n\tvxor\t16,16,23\n\n\tvadduwm\t19,17,7\n\tvxor\t17,17,23\n\n\tvadduwm\t20,18,7\n\tvxor\t18,18,23\n\n\tvadduwm\t21,19,7\n\tvxor\t19,19,23\n\tvadduwm\t22,20,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:36", "text": "vadduwm\t7,11,11\n\tsubi\t3,3,15\n\tslwi\t5,5,4\n\n\tvadduwm\t16,4,11\n\tvadduwm\t17,4,7\n\tvxor\t15,4,23\n\n\tvadduwm\t18,16,7\n\tvxor\t16,16,23\n\n\tvadduwm\t19,17,7\n\tvxor\t17,17,23\n\n\tvadduwm\t20,18,7\n\tvxor\t18,18,23\n\n\tvadduwm\t21,19,7\n\tvxor\t19,19,23\n\tvadduwm\t22,20,7\n\tvxor\t20,20,23\n\tvadduwm\t4,21,7\n\tvxor\t21,21,23\n\tvxor\t22,22,23\n\n\tmtctr\t9\n\tb\t.Loop_ctr32_enc8x\n.align\t5\n.Loop_ctr32_enc8x:\n.long\t0x11EFC508\n.long\t0x1210C508\n.long\t0x1231C508\n.long\t0x1252C508\n.long\t0x1273C508\n.long\t0x1294C508\n.long\t0x12B5C508\n.long\t0x12D6C508\n.Loop_ctr32_enc8x_middle:\n\tlvx\t24,26,11\n\taddi\t11,11,0x20\n\n.long\t0x11EFCD08\n.long\t0x1210CD08\n.long\t0x1231CD08\n.long\t0x1252CD08\n.long\t0x1273CD08\n.long\t0x1294CD08\n.long\t0x12B5CD08\n.long\t0x12D6CD08\n\tlvx\t25,8,11\n\tbc\t16,0,.Loop_ctr32_enc8x\n\n\tsubic\t11,5,256\n.long\t0x11EFC508\n.long\t0x1210C508\n.long\t0x1231C508\n.long\t0x1252C508\n.long\t0x1273C508\n.long\t0x1294C508\n.long\t0x12B5C508", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:37", "text": ".long\t0x11EFCD08\n.long\t0x1210CD08\n.long\t0x1231CD08\n.long\t0x1252CD08\n.long\t0x1273CD08\n.long\t0x1294CD08\n.long\t0x12B5CD08\n.long\t0x12D6CD08\n\tlvx\t25,8,11\n\tbc\t16,0,.Loop_ctr32_enc8x\n\n\tsubic\t11,5,256\n.long\t0x11EFC508\n.long\t0x1210C508\n.long\t0x1231C508\n.long\t0x1252C508\n.long\t0x1273C508\n.long\t0x1294C508\n.long\t0x12B5C508\n.long\t0x12D6C508\n\n\tsubfe\t0,0,0\n.long\t0x11EFCD08\n.long\t0x1210CD08\n.long\t0x1231CD08\n.long\t0x1252CD08\n.long\t0x1273CD08\n.long\t0x1294CD08\n.long\t0x12B5CD08\n.long\t0x12D6CD08\n\n\tand\t0,0,11\n\taddi\t11,1,32+15\n.long\t0x11EFD508\n.long\t0x1210D508\n.long\t0x1231D508\n.long\t0x1252D508\n.long\t0x1273D508\n.long\t0x1294D508\n.long\t0x12B5D508\n.long\t0x12D6D508\n\tlvx\t24,0,11\n\n\tsubic\t5,5,129\n.long\t0x11EFDD08\n\taddi\t5,5,1\n.long\t0x1210DD08\n.long\t0x1231DD08\n.long\t0x1252DD08\n.long\t0x1273DD08\n.long\t0x1294DD08\n.long\t0x12B5DD08\n.long\t0x12D6DD08\n\tlvx\t25,8,11\n\n.long\t0x11EFE508\n.long\t0x7C001E99\n.long\t0x1210E508\n.long\t0x7C281E99", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1441, "line_end": 1500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:38", "text": ".long\t0x12B5D508\n.long\t0x12D6D508\n\tlvx\t24,0,11\n\n\tsubic\t5,5,129\n.long\t0x11EFDD08\n\taddi\t5,5,1\n.long\t0x1210DD08\n.long\t0x1231DD08\n.long\t0x1252DD08\n.long\t0x1273DD08\n.long\t0x1294DD08\n.long\t0x12B5DD08\n.long\t0x12D6DD08\n\tlvx\t25,8,11\n\n.long\t0x11EFE508\n.long\t0x7C001E99\n.long\t0x1210E508\n.long\t0x7C281E99\n.long\t0x1231E508\n.long\t0x7C5A1E99\n.long\t0x1252E508\n.long\t0x7C7B1E99\n.long\t0x1273E508\n.long\t0x7D5C1E99\n.long\t0x1294E508\n.long\t0x7D9D1E99\n.long\t0x12B5E508\n.long\t0x7DBE1E99\n.long\t0x12D6E508\n.long\t0x7DDF1E99\n\taddi\t3,3,0x80\n\n.long\t0x11EFED08\n\n.long\t0x1210ED08\n\n.long\t0x1231ED08\n\n.long\t0x1252ED08\n\n.long\t0x1273ED08\n\n.long\t0x1294ED08\n\n.long\t0x12B5ED08\n\n.long\t0x12D6ED08\n\n\n\tadd\t3,3,0\n\n\n\n\tsubfe.\t0,0,0\n.long\t0x11EFF508\n\tvxor\t0,0,31\n.long\t0x1210F508\n\tvxor\t1,1,31", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1481, "line_end": 1540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:39", "text": ".long\t0x1252ED08\n\n.long\t0x1273ED08\n\n.long\t0x1294ED08\n\n.long\t0x12B5ED08\n\n.long\t0x12D6ED08\n\n\n\tadd\t3,3,0\n\n\n\n\tsubfe.\t0,0,0\n.long\t0x11EFF508\n\tvxor\t0,0,31\n.long\t0x1210F508\n\tvxor\t1,1,31\n.long\t0x1231F508\n\tvxor\t2,2,31\n.long\t0x1252F508\n\tvxor\t3,3,31\n.long\t0x1273F508\n\tvxor\t10,10,31\n.long\t0x1294F508\n\tvxor\t12,12,31\n.long\t0x12B5F508\n\tvxor\t13,13,31\n.long\t0x12D6F508\n\tvxor\t14,14,31\n\n\tbne\t.Lctr32_enc8x_break\n\n.long\t0x100F0509\n.long\t0x10300D09\n\tvadduwm\t16,4,11\n.long\t0x10511509\n\tvadduwm\t17,4,7\n\tvxor\t15,4,23\n.long\t0x10721D09\n\tvadduwm\t18,16,7\n\tvxor\t16,16,23\n.long\t0x11535509\n\tvadduwm\t19,17,7\n\tvxor\t17,17,23\n.long\t0x11946509\n\tvadduwm\t20,18,7\n\tvxor\t18,18,23\n.long\t0x11B56D09\n\tvadduwm\t21,19,7\n\tvxor\t19,19,23\n.long\t0x11D67509\n\tvadduwm\t22,20,7\n\tvxor\t20,20,23\n\n\tvadduwm\t4,21,7\n\tvxor\t21,21,23", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1521, "line_end": 1580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:40", "text": "vxor\t15,4,23\n.long\t0x10721D09\n\tvadduwm\t18,16,7\n\tvxor\t16,16,23\n.long\t0x11535509\n\tvadduwm\t19,17,7\n\tvxor\t17,17,23\n.long\t0x11946509\n\tvadduwm\t20,18,7\n\tvxor\t18,18,23\n.long\t0x11B56D09\n\tvadduwm\t21,19,7\n\tvxor\t19,19,23\n.long\t0x11D67509\n\tvadduwm\t22,20,7\n\tvxor\t20,20,23\n\n\tvadduwm\t4,21,7\n\tvxor\t21,21,23\n\n\tvxor\t22,22,23\n\tmtctr\t9\n\n.long\t0x11EFC508\n.long\t0x7C002799\n\n.long\t0x1210C508\n.long\t0x7C282799\n\n.long\t0x1231C508\n.long\t0x7C5A2799\n\n.long\t0x1252C508\n.long\t0x7C7B2799\n\n.long\t0x1273C508\n.long\t0x7D5C2799\n\n.long\t0x1294C508\n.long\t0x7D9D2799\n\n.long\t0x12B5C508\n.long\t0x7DBE2799\n.long\t0x12D6C508\n.long\t0x7DDF2799\n\taddi\t4,4,0x80\n\n\tb\t.Loop_ctr32_enc8x_middle\n\n.align\t5\n.Lctr32_enc8x_break:\n\tcmpwi\t5,-0x60\n\tblt\t.Lctr32_enc8x_one\n\tnop\n\tbeq\t.Lctr32_enc8x_two\n\tcmpwi\t5,-0x40\n\tblt\t.Lctr32_enc8x_three\n\tnop\n\tbeq\t.Lctr32_enc8x_four\n\tcmpwi\t5,-0x20", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1561, "line_end": 1620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:41", "text": ".long\t0x12B5C508\n.long\t0x7DBE2799\n.long\t0x12D6C508\n.long\t0x7DDF2799\n\taddi\t4,4,0x80\n\n\tb\t.Loop_ctr32_enc8x_middle\n\n.align\t5\n.Lctr32_enc8x_break:\n\tcmpwi\t5,-0x60\n\tblt\t.Lctr32_enc8x_one\n\tnop\n\tbeq\t.Lctr32_enc8x_two\n\tcmpwi\t5,-0x40\n\tblt\t.Lctr32_enc8x_three\n\tnop\n\tbeq\t.Lctr32_enc8x_four\n\tcmpwi\t5,-0x20\n\tblt\t.Lctr32_enc8x_five\n\tnop\n\tbeq\t.Lctr32_enc8x_six\n\tcmpwi\t5,0x00\n\tblt\t.Lctr32_enc8x_seven\n\n.Lctr32_enc8x_eight:\n.long\t0x11EF0509\n.long\t0x12100D09\n.long\t0x12311509\n.long\t0x12521D09\n.long\t0x12735509\n.long\t0x12946509\n.long\t0x12B56D09\n.long\t0x12D67509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799\n\n.long\t0x7E7C2799\n\n.long\t0x7E9D2799\n\n.long\t0x7EBE2799\n.long\t0x7EDF2799\n\taddi\t4,4,0x80\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_seven:\n.long\t0x11EF0D09\n.long\t0x12101509\n.long\t0x12311D09", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1601, "line_end": 1660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:42", "text": ".long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799\n\n.long\t0x7E7C2799\n\n.long\t0x7E9D2799\n\n.long\t0x7EBE2799\n.long\t0x7EDF2799\n\taddi\t4,4,0x80\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_seven:\n.long\t0x11EF0D09\n.long\t0x12101509\n.long\t0x12311D09\n.long\t0x12525509\n.long\t0x12736509\n.long\t0x12946D09\n.long\t0x12B57509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799\n\n.long\t0x7E7C2799\n\n.long\t0x7E9D2799\n.long\t0x7EBE2799\n\taddi\t4,4,0x70\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_six:\n.long\t0x11EF1509\n.long\t0x12101D09\n.long\t0x12315509\n.long\t0x12526509\n.long\t0x12736D09\n.long\t0x12947509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1641, "line_end": 1700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:43", "text": "b\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_six:\n.long\t0x11EF1509\n.long\t0x12101D09\n.long\t0x12315509\n.long\t0x12526509\n.long\t0x12736D09\n.long\t0x12947509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799\n\n.long\t0x7E7C2799\n.long\t0x7E9D2799\n\taddi\t4,4,0x60\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_five:\n.long\t0x11EF1D09\n.long\t0x12105509\n.long\t0x12316509\n.long\t0x12526D09\n.long\t0x12737509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n\n.long\t0x7E5B2799\n.long\t0x7E7C2799\n\taddi\t4,4,0x50\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_four:\n.long\t0x11EF5509\n.long\t0x12106509\n.long\t0x12316D09\n.long\t0x12527509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1681, "line_end": 1740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:44", "text": ".long\t0x7E3A2799\n\n.long\t0x7E5B2799\n.long\t0x7E7C2799\n\taddi\t4,4,0x50\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_four:\n.long\t0x11EF5509\n.long\t0x12106509\n.long\t0x12316D09\n.long\t0x12527509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n\n.long\t0x7E3A2799\n.long\t0x7E5B2799\n\taddi\t4,4,0x40\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_three:\n.long\t0x11EF6509\n.long\t0x12106D09\n.long\t0x12317509\n\n\n\n.long\t0x7DE02799\n\n.long\t0x7E082799\n.long\t0x7E3A2799\n\taddi\t4,4,0x30\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_two:\n.long\t0x11EF6D09\n.long\t0x12107509\n\n\n\n.long\t0x7DE02799\n.long\t0x7E082799\n\taddi\t4,4,0x20\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_one:\n.long\t0x11EF7509\n\n\n.long\t0x7DE02799\n\taddi\t4,4,0x10", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1721, "line_end": 1780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:45", "text": ".align\t5\n.Lctr32_enc8x_two:\n.long\t0x11EF6D09\n.long\t0x12107509\n\n\n\n.long\t0x7DE02799\n.long\t0x7E082799\n\taddi\t4,4,0x20\n\tb\t.Lctr32_enc8x_done\n\n.align\t5\n.Lctr32_enc8x_one:\n.long\t0x11EF7509\n\n\n.long\t0x7DE02799\n\taddi\t4,4,0x10\n\n.Lctr32_enc8x_done:\n\tli\t10,47\n\tli\t11,63\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\tstvx\t6,10,1\n\taddi\t10,10,32\n\tstvx\t6,11,1\n\taddi\t11,11,32\n\n\tmtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1\n\taddi\t11,11,32\n\tlvx\t24,10,1\n\taddi\t10,10,32\n\tlvx\t25,11,1\n\taddi\t11,11,32\n\tlvx\t26,10,1\n\taddi\t10,10,32\n\tlvx\t27,11,1\n\taddi\t11,11,32\n\tlvx\t28,10,1\n\taddi\t10,10,32\n\tlvx\t29,11,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1761, "line_end": 1820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:46", "text": "mtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1\n\taddi\t11,11,32\n\tlvx\t24,10,1\n\taddi\t10,10,32\n\tlvx\t25,11,1\n\taddi\t11,11,32\n\tlvx\t26,10,1\n\taddi\t10,10,32\n\tlvx\t27,11,1\n\taddi\t11,11,32\n\tlvx\t28,10,1\n\taddi\t10,10,32\n\tlvx\t29,11,1\n\taddi\t11,11,32\n\tlvx\t30,10,1\n\tlvx\t31,11,1\n\tlwz\t26,368(1)\n\tlwz\t27,372(1)\n\tlwz\t28,376(1)\n\tlwz\t29,380(1)\n\tlwz\t30,384(1)\n\tlwz\t31,388(1)\n\taddi\t1,1,392\n\tblr\n.long\t0\n.byte\t0,12,0x04,0,0x80,6,6,0\n.long\t0\n\n.globl\taes_p8_xts_encrypt\n.type\taes_p8_xts_encrypt,@function\n.align\t5\naes_p8_xts_encrypt:\n\tmr\t10,3\n\tli\t3,-1\n\tcmplwi\t5,16\n\tbltlr\n\n\tlis\t0,0xfff0\n\tmfspr\t12,256\n\tli\t11,0\n\tmtspr\t256,0\n\n\tvspltisb\t9,0x07\n\n\n\n\n\tli\t3,15\n\tlvx\t8,0,8\n\tlvsl\t5,0,8\n\tlvx\t4,3,8\n\n\tvperm\t8,8,4,5", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1801, "line_end": 1860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:47", "text": "li\t3,-1\n\tcmplwi\t5,16\n\tbltlr\n\n\tlis\t0,0xfff0\n\tmfspr\t12,256\n\tli\t11,0\n\tmtspr\t256,0\n\n\tvspltisb\t9,0x07\n\n\n\n\n\tli\t3,15\n\tlvx\t8,0,8\n\tlvsl\t5,0,8\n\tlvx\t4,3,8\n\n\tvperm\t8,8,4,5\n\n\tneg\t11,10\n\tlvsr\t5,0,11\n\tlvx\t2,0,10\n\taddi\t10,10,15\n\n\n\tcmplwi\t7,0\n\tbeq\t.Lxts_enc_no_key2\n\n\tlvsl\t7,0,7\n\tlwz\t9,240(7)\n\tsrwi\t9,9,1\n\tsubi\t9,9,1\n\tli\t3,16\n\n\tlvx\t0,0,7\n\tlvx\t1,3,7\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n\tvxor\t8,8,0\n\tlvx\t0,3,7\n\taddi\t3,3,16\n\tmtctr\t9\n\n.Ltweak_xts_enc:\n\tvperm\t1,1,0,7\n.long\t0x11080D08\n\tlvx\t1,3,7\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x11080508\n\tlvx\t0,3,7\n\taddi\t3,3,16\n\tbc\t16,0,.Ltweak_xts_enc\n\n\tvperm\t1,1,0,7\n.long\t0x11080D08\n\tlvx\t1,3,7\n\tvperm\t0,0,1,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1841, "line_end": 1900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:48", "text": "vxor\t8,8,0\n\tlvx\t0,3,7\n\taddi\t3,3,16\n\tmtctr\t9\n\n.Ltweak_xts_enc:\n\tvperm\t1,1,0,7\n.long\t0x11080D08\n\tlvx\t1,3,7\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x11080508\n\tlvx\t0,3,7\n\taddi\t3,3,16\n\tbc\t16,0,.Ltweak_xts_enc\n\n\tvperm\t1,1,0,7\n.long\t0x11080D08\n\tlvx\t1,3,7\n\tvperm\t0,0,1,7\n.long\t0x11080509\n\n\tli\t8,0\n\tb\t.Lxts_enc\n\n.Lxts_enc_no_key2:\n\tli\t3,-16\n\tand\t5,5,3\n\n\n.Lxts_enc:\n\tlvx\t4,0,10\n\taddi\t10,10,16\n\n\tlvsl\t7,0,6\n\tlwz\t9,240(6)\n\tsrwi\t9,9,1\n\tsubi\t9,9,1\n\tli\t3,16\n\n\tvslb\t10,9,9\n\tvor\t10,10,9\n\tvspltisb\t11,1\n\tvsldoi\t10,10,11,15\n\n\tcmplwi\t5,96\n\tbge\t_aesp8_xts_encrypt6x\n\n\tandi.\t7,5,15\n\tsubic\t0,5,32\n\tsubi\t7,7,16\n\tsubfe\t0,0,0\n\tand\t0,0,7\n\tadd\t10,10,0\n\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1881, "line_end": 1940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:49", "text": "vslb\t10,9,9\n\tvor\t10,10,9\n\tvspltisb\t11,1\n\tvsldoi\t10,10,11,15\n\n\tcmplwi\t5,96\n\tbge\t_aesp8_xts_encrypt6x\n\n\tandi.\t7,5,15\n\tsubic\t0,5,32\n\tsubi\t7,7,16\n\tsubfe\t0,0,0\n\tand\t0,0,7\n\tadd\t10,10,0\n\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7\n\tvxor\t2,2,8\n\tvxor\t2,2,0\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\tmtctr\t9\n\tb\t.Loop_xts_enc\n\n.align\t5\n.Loop_xts_enc:\n\tvperm\t1,1,0,7\n.long\t0x10420D08\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x10420508\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\tbc\t16,0,.Loop_xts_enc\n\n\tvperm\t1,1,0,7\n.long\t0x10420D08\n\tlvx\t1,3,6\n\tli\t3,16\n\tvperm\t0,0,1,7\n\tvxor\t0,0,8\n.long\t0x10620509\n\n\n\tnop\n\n.long\t0x7C602799\n\taddi\t4,4,16\n\n\tsubic.\t5,5,16\n\tbeq\t.Lxts_enc_done\n\n\tvor\t2,4,4\n\tlvx\t4,0,10\n\taddi\t10,10,16\n\tlvx\t0,0,6", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1921, "line_end": 1980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:50", "text": ".long\t0x10420D08\n\tlvx\t1,3,6\n\tli\t3,16\n\tvperm\t0,0,1,7\n\tvxor\t0,0,8\n.long\t0x10620509\n\n\n\tnop\n\n.long\t0x7C602799\n\taddi\t4,4,16\n\n\tsubic.\t5,5,16\n\tbeq\t.Lxts_enc_done\n\n\tvor\t2,4,4\n\tlvx\t4,0,10\n\taddi\t10,10,16\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\n\tsubic\t0,5,32\n\tsubfe\t0,0,0\n\tand\t0,0,7\n\tadd\t10,10,0\n\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t8,8,11\n\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7\n\tvxor\t2,2,8\n\tvxor\t3,3,0\n\tvxor\t2,2,0\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\n\tmtctr\t9\n\tcmplwi\t5,16\n\tbge\t.Loop_xts_enc\n\n\tvxor\t3,3,8\n\tlvsr\t5,0,5\n\tvxor\t4,4,4\n\tvspltisb\t11,-1\n\tvperm\t4,4,11,5\n\tvsel\t2,2,3,4\n\n\tsubi\t11,4,17\n\tsubi\t4,4,16\n\tmtctr\t5\n\tli\t5,16\n.Loop_xts_enc_steal:\n\tlbzu\t0,1(11)\n\tstb\t0,16(11)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 1961, "line_end": 2020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:51", "text": "addi\t3,3,16\n\n\tmtctr\t9\n\tcmplwi\t5,16\n\tbge\t.Loop_xts_enc\n\n\tvxor\t3,3,8\n\tlvsr\t5,0,5\n\tvxor\t4,4,4\n\tvspltisb\t11,-1\n\tvperm\t4,4,11,5\n\tvsel\t2,2,3,4\n\n\tsubi\t11,4,17\n\tsubi\t4,4,16\n\tmtctr\t5\n\tli\t5,16\n.Loop_xts_enc_steal:\n\tlbzu\t0,1(11)\n\tstb\t0,16(11)\n\tbc\t16,0,.Loop_xts_enc_steal\n\n\tmtctr\t9\n\tb\t.Loop_xts_enc\n\n.Lxts_enc_done:\n\tcmplwi\t8,0\n\tbeq\t.Lxts_enc_ret\n\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t8,8,11\n\n\n.long\t0x7D004799\n\n.Lxts_enc_ret:\n\tmtspr\t256,12\n\tli\t3,0\n\tblr\n.long\t0\n.byte\t0,12,0x04,0,0x80,6,6,0\n.long\t0\n\n\n.globl\taes_p8_xts_decrypt\n.type\taes_p8_xts_decrypt,@function\n.align\t5\naes_p8_xts_decrypt:\n\tmr\t10,3\n\tli\t3,-1\n\tcmplwi\t5,16\n\tbltlr\n\n\tlis\t0,0xfff8\n\tmfspr\t12,256\n\tli\t11,0\n\tmtspr\t256,0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2001, "line_end": 2060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:52", "text": "li\t3,0\n\tblr\n.long\t0\n.byte\t0,12,0x04,0,0x80,6,6,0\n.long\t0\n\n\n.globl\taes_p8_xts_decrypt\n.type\taes_p8_xts_decrypt,@function\n.align\t5\naes_p8_xts_decrypt:\n\tmr\t10,3\n\tli\t3,-1\n\tcmplwi\t5,16\n\tbltlr\n\n\tlis\t0,0xfff8\n\tmfspr\t12,256\n\tli\t11,0\n\tmtspr\t256,0\n\n\tandi.\t0,5,15\n\tneg\t0,0\n\tandi.\t0,0,16\n\tsub\t5,5,0\n\n\tvspltisb\t9,0x07\n\n\n\n\n\tli\t3,15\n\tlvx\t8,0,8\n\tlvsl\t5,0,8\n\tlvx\t4,3,8\n\n\tvperm\t8,8,4,5\n\n\tneg\t11,10\n\tlvsr\t5,0,11\n\tlvx\t2,0,10\n\taddi\t10,10,15\n\n\n\tcmplwi\t7,0\n\tbeq\t.Lxts_dec_no_key2\n\n\tlvsl\t7,0,7\n\tlwz\t9,240(7)\n\tsrwi\t9,9,1\n\tsubi\t9,9,1\n\tli\t3,16\n\n\tlvx\t0,0,7\n\tlvx\t1,3,7\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n\tvxor\t8,8,0\n\tlvx\t0,3,7\n\taddi\t3,3,16", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2041, "line_end": 2100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:53", "text": "lvx\t2,0,10\n\taddi\t10,10,15\n\n\n\tcmplwi\t7,0\n\tbeq\t.Lxts_dec_no_key2\n\n\tlvsl\t7,0,7\n\tlwz\t9,240(7)\n\tsrwi\t9,9,1\n\tsubi\t9,9,1\n\tli\t3,16\n\n\tlvx\t0,0,7\n\tlvx\t1,3,7\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n\tvxor\t8,8,0\n\tlvx\t0,3,7\n\taddi\t3,3,16\n\tmtctr\t9\n\n.Ltweak_xts_dec:\n\tvperm\t1,1,0,7\n.long\t0x11080D08\n\tlvx\t1,3,7\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x11080508\n\tlvx\t0,3,7\n\taddi\t3,3,16\n\tbc\t16,0,.Ltweak_xts_dec\n\n\tvperm\t1,1,0,7\n.long\t0x11080D08\n\tlvx\t1,3,7\n\tvperm\t0,0,1,7\n.long\t0x11080509\n\n\tli\t8,0\n\tb\t.Lxts_dec\n\n.Lxts_dec_no_key2:\n\tneg\t3,5\n\tandi.\t3,3,15\n\tadd\t5,5,3\n\n\n.Lxts_dec:\n\tlvx\t4,0,10\n\taddi\t10,10,16\n\n\tlvsl\t7,0,6\n\tlwz\t9,240(6)\n\tsrwi\t9,9,1\n\tsubi\t9,9,1\n\tli\t3,16\n\n\tvslb\t10,9,9\n\tvor\t10,10,9", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2081, "line_end": 2140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:54", "text": "b\t.Lxts_dec\n\n.Lxts_dec_no_key2:\n\tneg\t3,5\n\tandi.\t3,3,15\n\tadd\t5,5,3\n\n\n.Lxts_dec:\n\tlvx\t4,0,10\n\taddi\t10,10,16\n\n\tlvsl\t7,0,6\n\tlwz\t9,240(6)\n\tsrwi\t9,9,1\n\tsubi\t9,9,1\n\tli\t3,16\n\n\tvslb\t10,9,9\n\tvor\t10,10,9\n\tvspltisb\t11,1\n\tvsldoi\t10,10,11,15\n\n\tcmplwi\t5,96\n\tbge\t_aesp8_xts_decrypt6x\n\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7\n\tvxor\t2,2,8\n\tvxor\t2,2,0\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\tmtctr\t9\n\n\tcmplwi\t5,16\n\tblt\t.Ltail_xts_dec\n\tb\t.Loop_xts_dec\n\n.align\t5\n.Loop_xts_dec:\n\tvperm\t1,1,0,7\n.long\t0x10420D48\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x10420548\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\tbc\t16,0,.Loop_xts_dec\n\n\tvperm\t1,1,0,7\n.long\t0x10420D48\n\tlvx\t1,3,6\n\tli\t3,16\n\tvperm\t0,0,1,7\n\tvxor\t0,0,8\n.long\t0x10620549", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2121, "line_end": 2180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:55", "text": ".align\t5\n.Loop_xts_dec:\n\tvperm\t1,1,0,7\n.long\t0x10420D48\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x10420548\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\tbc\t16,0,.Loop_xts_dec\n\n\tvperm\t1,1,0,7\n.long\t0x10420D48\n\tlvx\t1,3,6\n\tli\t3,16\n\tvperm\t0,0,1,7\n\tvxor\t0,0,8\n.long\t0x10620549\n\n\n\tnop\n\n.long\t0x7C602799\n\taddi\t4,4,16\n\n\tsubic.\t5,5,16\n\tbeq\t.Lxts_dec_done\n\n\tvor\t2,4,4\n\tlvx\t4,0,10\n\taddi\t10,10,16\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t8,8,11\n\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7\n\tvxor\t2,2,8\n\tvxor\t2,2,0\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\n\tmtctr\t9\n\tcmplwi\t5,16\n\tbge\t.Loop_xts_dec\n\n.Ltail_xts_dec:\n\tvsrab\t11,8,9\n\tvaddubm\t12,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t12,12,11", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2161, "line_end": 2220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:56", "text": "vand\t11,11,10\n\tvxor\t8,8,11\n\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7\n\tvxor\t2,2,8\n\tvxor\t2,2,0\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\n\tmtctr\t9\n\tcmplwi\t5,16\n\tbge\t.Loop_xts_dec\n\n.Ltail_xts_dec:\n\tvsrab\t11,8,9\n\tvaddubm\t12,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t12,12,11\n\n\tsubi\t10,10,16\n\tadd\t10,10,5\n\n\tvxor\t2,2,8\n\tvxor\t2,2,12\n\n.Loop_xts_dec_short:\n\tvperm\t1,1,0,7\n.long\t0x10420D48\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t0,0,1,7\n.long\t0x10420548\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\tbc\t16,0,.Loop_xts_dec_short\n\n\tvperm\t1,1,0,7\n.long\t0x10420D48\n\tlvx\t1,3,6\n\tli\t3,16\n\tvperm\t0,0,1,7\n\tvxor\t0,0,12\n.long\t0x10620549\n\n\n\tnop\n\n.long\t0x7C602799\n\n\tvor\t2,4,4\n\tlvx\t4,0,10\n\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2201, "line_end": 2260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:57", "text": "lvx\t1,3,6\n\tli\t3,16\n\tvperm\t0,0,1,7\n\tvxor\t0,0,12\n.long\t0x10620549\n\n\n\tnop\n\n.long\t0x7C602799\n\n\tvor\t2,4,4\n\tlvx\t4,0,10\n\n\tlvx\t0,0,6\n\tlvx\t1,3,6\n\taddi\t3,3,16\n\tvperm\t2,2,4,5\n\tvperm\t0,0,1,7\n\n\tlvsr\t5,0,5\n\tvxor\t4,4,4\n\tvspltisb\t11,-1\n\tvperm\t4,4,11,5\n\tvsel\t2,2,3,4\n\n\tvxor\t0,0,8\n\tvxor\t2,2,0\n\tlvx\t0,3,6\n\taddi\t3,3,16\n\n\tsubi\t11,4,1\n\tmtctr\t5\n\tli\t5,16\n.Loop_xts_dec_steal:\n\tlbzu\t0,1(11)\n\tstb\t0,16(11)\n\tbc\t16,0,.Loop_xts_dec_steal\n\n\tmtctr\t9\n\tb\t.Loop_xts_dec\n\n.Lxts_dec_done:\n\tcmplwi\t8,0\n\tbeq\t.Lxts_dec_ret\n\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t8,8,11\n\n\n.long\t0x7D004799\n\n.Lxts_dec_ret:\n\tmtspr\t256,12\n\tli\t3,0\n\tblr\n.long\t0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2241, "line_end": 2300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:58", "text": "b\t.Loop_xts_dec\n\n.Lxts_dec_done:\n\tcmplwi\t8,0\n\tbeq\t.Lxts_dec_ret\n\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvsldoi\t11,11,11,15\n\tvand\t11,11,10\n\tvxor\t8,8,11\n\n\n.long\t0x7D004799\n\n.Lxts_dec_ret:\n\tmtspr\t256,12\n\tli\t3,0\n\tblr\n.long\t0\n.byte\t0,12,0x04,0,0x80,6,6,0\n.long\t0\n\n.align\t5\n_aesp8_xts_encrypt6x:\n\tstwu\t1,-392(1)\n\tmflr\t11\n\tli\t7,175\n\tli\t3,191\n\tstw\t11,396(1)\n\tstvx\t20,7,1\n\taddi\t7,7,32\n\tstvx\t21,3,1\n\taddi\t3,3,32\n\tstvx\t22,7,1\n\taddi\t7,7,32\n\tstvx\t23,3,1\n\taddi\t3,3,32\n\tstvx\t24,7,1\n\taddi\t7,7,32\n\tstvx\t25,3,1\n\taddi\t3,3,32\n\tstvx\t26,7,1\n\taddi\t7,7,32\n\tstvx\t27,3,1\n\taddi\t3,3,32\n\tstvx\t28,7,1\n\taddi\t7,7,32\n\tstvx\t29,3,1\n\taddi\t3,3,32\n\tstvx\t30,7,1\n\tstvx\t31,3,1\n\tli\t0,-1\n\tstw\t12,364(1)\n\tli\t3,0x10\n\tstw\t26,368(1)\n\tli\t26,0x20\n\tstw\t27,372(1)\n\tli\t27,0x30\n\tstw\t28,376(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2281, "line_end": 2340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:59", "text": "stvx\t25,3,1\n\taddi\t3,3,32\n\tstvx\t26,7,1\n\taddi\t7,7,32\n\tstvx\t27,3,1\n\taddi\t3,3,32\n\tstvx\t28,7,1\n\taddi\t7,7,32\n\tstvx\t29,3,1\n\taddi\t3,3,32\n\tstvx\t30,7,1\n\tstvx\t31,3,1\n\tli\t0,-1\n\tstw\t12,364(1)\n\tli\t3,0x10\n\tstw\t26,368(1)\n\tli\t26,0x20\n\tstw\t27,372(1)\n\tli\t27,0x30\n\tstw\t28,376(1)\n\tli\t28,0x40\n\tstw\t29,380(1)\n\tli\t29,0x50\n\tstw\t30,384(1)\n\tli\t30,0x60\n\tstw\t31,388(1)\n\tli\t31,0x70\n\tmtspr\t256,0\n\n\n\txxlor\t2, 32+10, 32+10\n\tvsldoi\t10,11,10,1\n\txxlor\t1, 32+10, 32+10\n\n\n\tmr\t31, 6\n\tbl\t.Lconsts\n\tlxvw4x\t0, 28, 6\n\tmr\t6, 31\n\tli\t31,0x70\n\n\tsubi\t9,9,3\n\n\tlvx\t23,0,6\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,7\n\taddi\t7,1,32+15\n\tmtctr\t9\n\n.Load_xts_enc_key:\n\tvperm\t24,30,31,7\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,7\n\tvperm\t25,31,30,7\n\tlvx\t31,0,6\n\tstvx\t25,3,7\n\taddi\t7,7,0x20", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2321, "line_end": 2380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:60", "text": "subi\t9,9,3\n\n\tlvx\t23,0,6\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,7\n\taddi\t7,1,32+15\n\tmtctr\t9\n\n.Load_xts_enc_key:\n\tvperm\t24,30,31,7\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,7\n\tvperm\t25,31,30,7\n\tlvx\t31,0,6\n\tstvx\t25,3,7\n\taddi\t7,7,0x20\n\tbc\t16,0,.Load_xts_enc_key\n\n\tlvx\t26,3,6\n\tvperm\t24,30,31,7\n\tlvx\t27,26,6\n\tstvx\t24,0,7\n\tvperm\t25,31,26,7\n\tlvx\t28,27,6\n\tstvx\t25,3,7\n\taddi\t7,1,32+15\n\tvperm\t26,26,27,7\n\tlvx\t29,28,6\n\tvperm\t27,27,28,7\n\tlvx\t30,29,6\n\tvperm\t28,28,29,7\n\tlvx\t31,30,6\n\tvperm\t29,29,30,7\n\tlvx\t22,31,6\n\tvperm\t30,30,31,7\n\tlvx\t24,0,7\n\tvperm\t31,31,22,7\n\tlvx\t25,3,7\n\n\n\n\n\n\n\n\n\n\tvperm\t0,2,4,5\n\tsubi\t10,10,31\n\tvxor\t17,8,23\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvand\t11,11,10\n\tvxor\t7,0,17\n\txxlor\t32+1, 0, 0\n\tvpermxor\t8, 8, 11, 1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2361, "line_end": 2420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:64", "text": ".long\t0x11CECD08\n\tvxor\t1,18,31\n\tvsrab\t11,8,9\n\tvxor\t18,8,23\n.long\t0x11EFCD08\n.long\t0x1210CD08\n\n\tand\t0,0,5\n\tvaddubm\t8,8,8\n.long\t0x10E7D508\n.long\t0x118CD508\n\tvand\t11,11,10\n.long\t0x11ADD508\n.long\t0x11CED508\n\txxlor\t32+2, 0, 0\n\tvpermxor\t8, 8, 11, 2\n.long\t0x11EFD508\n.long\t0x1210D508\n\n\tadd\t10,10,0\n\n\n\n\tvxor\t2,19,31\n\tvsrab\t11,8,9\n\tvxor\t19,8,23\n\tvaddubm\t8,8,8\n.long\t0x10E7DD08\n.long\t0x118CDD08\n.long\t0x11ADDD08\n.long\t0x11CEDD08\n\tvand\t11,11,10\n.long\t0x11EFDD08\n.long\t0x1210DD08\n\n\taddi\t7,1,32+15\n\txxlor\t32+3, 0, 0\n\tvpermxor\t8, 8, 11, 3\n.long\t0x10E7E508\n.long\t0x118CE508\n\tvxor\t3,20,31\n\tvsrab\t11,8,9\n\tvxor\t20,8,23\n.long\t0x11ADE508\n.long\t0x11CEE508\n\tvaddubm\t8,8,8\n.long\t0x11EFE508\n.long\t0x1210E508\n\tlvx\t24,0,7\n\tvand\t11,11,10\n\n.long\t0x10E7ED08\n.long\t0x118CED08\n\txxlor\t32+4, 0, 0\n\tvpermxor\t8, 8, 11, 4\n.long\t0x11ADED08\n.long\t0x11CEED08\n\tvxor\t4,21,31\n\tvsrab\t11,8,9\n\tvxor\t21,8,23", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2521, "line_end": 2580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:69", "text": "vor\t17,20,20\n\n.long\t0x7CE02799\n\tvxor\t11,13,20\n\n.long\t0x7D832799\n.long\t0x7DBA2799\n\taddi\t4,4,0x30\n\tbne\t.Lxts_enc6x_steal\n\tb\t.Lxts_enc6x_done\n\n.align\t4\n.Lxts_enc6x_two:\n\tvxor\t7,4,17\n\tvxor\t12,5,18\n\tvxor\t13,13,13\n\tvxor\t14,14,14\n\tvxor\t15,15,15\n\n\tbl\t_aesp8_xts_enc5x\n\n\n\tvor\t17,19,19\n\tvxor\t11,12,19\n\n.long\t0x7CE02799\n.long\t0x7D832799\n\taddi\t4,4,0x20\n\tbne\t.Lxts_enc6x_steal\n\tb\t.Lxts_enc6x_done\n\n.align\t4\n.Lxts_enc6x_one:\n\tvxor\t7,5,17\n\tnop\n.Loop_xts_enc1x:\n.long\t0x10E7C508\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD08\n\tlvx\t25,3,7\n\tbc\t16,0,.Loop_xts_enc1x\n\n\tadd\t10,10,31\n\tcmpwi\t31,0\n.long\t0x10E7C508\n\n\tsubi\t10,10,16\n.long\t0x10E7CD08\n\n\tlvsr\t5,0,31\n.long\t0x10E7D508\n\n.long\t0x7C005699\n.long\t0x10E7DD08\n\n\taddi\t7,1,32+15", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2721, "line_end": 2780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:70", "text": "addi\t7,7,0x20\n\n.long\t0x10E7CD08\n\tlvx\t25,3,7\n\tbc\t16,0,.Loop_xts_enc1x\n\n\tadd\t10,10,31\n\tcmpwi\t31,0\n.long\t0x10E7C508\n\n\tsubi\t10,10,16\n.long\t0x10E7CD08\n\n\tlvsr\t5,0,31\n.long\t0x10E7D508\n\n.long\t0x7C005699\n.long\t0x10E7DD08\n\n\taddi\t7,1,32+15\n.long\t0x10E7E508\n\tlvx\t24,0,7\n\n.long\t0x10E7ED08\n\tlvx\t25,3,7\n\tvxor\t17,17,31\n\n\n.long\t0x10E7F508\n\n\tvperm\t0,0,0,5\n.long\t0x10E78D09\n\n\tvor\t17,18,18\n\tvxor\t11,7,18\n\n.long\t0x7CE02799\n\taddi\t4,4,0x10\n\tbne\t.Lxts_enc6x_steal\n\tb\t.Lxts_enc6x_done\n\n.align\t4\n.Lxts_enc6x_zero:\n\tcmpwi\t31,0\n\tbeq\t.Lxts_enc6x_done\n\n\tadd\t10,10,31\n\tsubi\t10,10,16\n.long\t0x7C005699\n\tlvsr\t5,0,31\n\n\tvperm\t0,0,0,5\n\tvxor\t11,11,17\n.Lxts_enc6x_steal:\n\tvxor\t0,0,17\n\tvxor\t7,7,7\n\tvspltisb\t12,-1\n\tvperm\t7,7,12,5\n\tvsel\t7,0,11,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2761, "line_end": 2820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:71", "text": ".align\t4\n.Lxts_enc6x_zero:\n\tcmpwi\t31,0\n\tbeq\t.Lxts_enc6x_done\n\n\tadd\t10,10,31\n\tsubi\t10,10,16\n.long\t0x7C005699\n\tlvsr\t5,0,31\n\n\tvperm\t0,0,0,5\n\tvxor\t11,11,17\n.Lxts_enc6x_steal:\n\tvxor\t0,0,17\n\tvxor\t7,7,7\n\tvspltisb\t12,-1\n\tvperm\t7,7,12,5\n\tvsel\t7,0,11,7\n\n\tsubi\t30,4,17\n\tsubi\t4,4,16\n\tmtctr\t31\n.Loop_xts_enc6x_steal:\n\tlbzu\t0,1(30)\n\tstb\t0,16(30)\n\tbc\t16,0,.Loop_xts_enc6x_steal\n\n\tli\t31,0\n\tmtctr\t9\n\tb\t.Loop_xts_enc1x\n\n.align\t4\n.Lxts_enc6x_done:\n\tcmplwi\t8,0\n\tbeq\t.Lxts_enc6x_ret\n\n\tvxor\t8,17,23\n\n.long\t0x7D004799\n\n.Lxts_enc6x_ret:\n\tmtlr\t11\n\tli\t10,47\n\tli\t11,63\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2801, "line_end": 2860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:72", "text": ".Lxts_enc6x_ret:\n\tmtlr\t11\n\tli\t10,47\n\tli\t11,63\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\n\tmtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1\n\taddi\t11,11,32\n\tlvx\t24,10,1\n\taddi\t10,10,32\n\tlvx\t25,11,1\n\taddi\t11,11,32\n\tlvx\t26,10,1\n\taddi\t10,10,32\n\tlvx\t27,11,1\n\taddi\t11,11,32\n\tlvx\t28,10,1\n\taddi\t10,10,32\n\tlvx\t29,11,1\n\taddi\t11,11,32\n\tlvx\t30,10,1\n\tlvx\t31,11,1\n\tlwz\t26,368(1)\n\tlwz\t27,372(1)\n\tlwz\t28,376(1)\n\tlwz\t29,380(1)\n\tlwz\t30,384(1)\n\tlwz\t31,388(1)\n\taddi\t1,1,392\n\tblr\n.long\t0\n.byte\t0,12,0x04,1,0x80,6,6,0\n.long\t0\n\n.align\t5\n_aesp8_xts_enc5x:\n.long\t0x10E7C508", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2841, "line_end": 2900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:73", "text": "addi\t10,10,32\n\tlvx\t29,11,1\n\taddi\t11,11,32\n\tlvx\t30,10,1\n\tlvx\t31,11,1\n\tlwz\t26,368(1)\n\tlwz\t27,372(1)\n\tlwz\t28,376(1)\n\tlwz\t29,380(1)\n\tlwz\t30,384(1)\n\tlwz\t31,388(1)\n\taddi\t1,1,392\n\tblr\n.long\t0\n.byte\t0,12,0x04,1,0x80,6,6,0\n.long\t0\n\n.align\t5\n_aesp8_xts_enc5x:\n.long\t0x10E7C508\n.long\t0x118CC508\n.long\t0x11ADC508\n.long\t0x11CEC508\n.long\t0x11EFC508\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD08\n.long\t0x118CCD08\n.long\t0x11ADCD08\n.long\t0x11CECD08\n.long\t0x11EFCD08\n\tlvx\t25,3,7\n\tbc\t16,0,_aesp8_xts_enc5x\n\n\tadd\t10,10,31\n\tcmpwi\t31,0\n.long\t0x10E7C508\n.long\t0x118CC508\n.long\t0x11ADC508\n.long\t0x11CEC508\n.long\t0x11EFC508\n\n\tsubi\t10,10,16\n.long\t0x10E7CD08\n.long\t0x118CCD08\n.long\t0x11ADCD08\n.long\t0x11CECD08\n.long\t0x11EFCD08\n\tvxor\t17,17,31\n\n.long\t0x10E7D508\n\tlvsr\t5,0,31\n.long\t0x118CD508\n.long\t0x11ADD508\n.long\t0x11CED508\n.long\t0x11EFD508\n\tvxor\t1,18,31\n\n.long\t0x10E7DD08", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2881, "line_end": 2940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:74", "text": ".long\t0x11CEC508\n.long\t0x11EFC508\n\n\tsubi\t10,10,16\n.long\t0x10E7CD08\n.long\t0x118CCD08\n.long\t0x11ADCD08\n.long\t0x11CECD08\n.long\t0x11EFCD08\n\tvxor\t17,17,31\n\n.long\t0x10E7D508\n\tlvsr\t5,0,31\n.long\t0x118CD508\n.long\t0x11ADD508\n.long\t0x11CED508\n.long\t0x11EFD508\n\tvxor\t1,18,31\n\n.long\t0x10E7DD08\n.long\t0x7C005699\n.long\t0x118CDD08\n.long\t0x11ADDD08\n.long\t0x11CEDD08\n.long\t0x11EFDD08\n\tvxor\t2,19,31\n\n\taddi\t7,1,32+15\n.long\t0x10E7E508\n.long\t0x118CE508\n.long\t0x11ADE508\n.long\t0x11CEE508\n.long\t0x11EFE508\n\tlvx\t24,0,7\n\tvxor\t3,20,31\n\n.long\t0x10E7ED08\n\n.long\t0x118CED08\n.long\t0x11ADED08\n.long\t0x11CEED08\n.long\t0x11EFED08\n\tlvx\t25,3,7\n\tvxor\t4,21,31\n\n.long\t0x10E7F508\n\tvperm\t0,0,0,5\n.long\t0x118CF508\n.long\t0x11ADF508\n.long\t0x11CEF508\n.long\t0x11EFF508\n\n.long\t0x10E78D09\n.long\t0x118C0D09\n.long\t0x11AD1509\n.long\t0x11CE1D09\n.long\t0x11EF2509\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2921, "line_end": 2980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:75", "text": ".long\t0x11CEED08\n.long\t0x11EFED08\n\tlvx\t25,3,7\n\tvxor\t4,21,31\n\n.long\t0x10E7F508\n\tvperm\t0,0,0,5\n.long\t0x118CF508\n.long\t0x11ADF508\n.long\t0x11CEF508\n.long\t0x11EFF508\n\n.long\t0x10E78D09\n.long\t0x118C0D09\n.long\t0x11AD1509\n.long\t0x11CE1D09\n.long\t0x11EF2509\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.align\t5\n_aesp8_xts_decrypt6x:\n\tstwu\t1,-392(1)\n\tmflr\t11\n\tli\t7,175\n\tli\t3,191\n\tstw\t11,396(1)\n\tstvx\t20,7,1\n\taddi\t7,7,32\n\tstvx\t21,3,1\n\taddi\t3,3,32\n\tstvx\t22,7,1\n\taddi\t7,7,32\n\tstvx\t23,3,1\n\taddi\t3,3,32\n\tstvx\t24,7,1\n\taddi\t7,7,32\n\tstvx\t25,3,1\n\taddi\t3,3,32\n\tstvx\t26,7,1\n\taddi\t7,7,32\n\tstvx\t27,3,1\n\taddi\t3,3,32\n\tstvx\t28,7,1\n\taddi\t7,7,32\n\tstvx\t29,3,1\n\taddi\t3,3,32\n\tstvx\t30,7,1\n\tstvx\t31,3,1\n\tli\t0,-1\n\tstw\t12,364(1)\n\tli\t3,0x10\n\tstw\t26,368(1)\n\tli\t26,0x20\n\tstw\t27,372(1)\n\tli\t27,0x30\n\tstw\t28,376(1)\n\tli\t28,0x40\n\tstw\t29,380(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 2961, "line_end": 3020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:76", "text": "stvx\t26,7,1\n\taddi\t7,7,32\n\tstvx\t27,3,1\n\taddi\t3,3,32\n\tstvx\t28,7,1\n\taddi\t7,7,32\n\tstvx\t29,3,1\n\taddi\t3,3,32\n\tstvx\t30,7,1\n\tstvx\t31,3,1\n\tli\t0,-1\n\tstw\t12,364(1)\n\tli\t3,0x10\n\tstw\t26,368(1)\n\tli\t26,0x20\n\tstw\t27,372(1)\n\tli\t27,0x30\n\tstw\t28,376(1)\n\tli\t28,0x40\n\tstw\t29,380(1)\n\tli\t29,0x50\n\tstw\t30,384(1)\n\tli\t30,0x60\n\tstw\t31,388(1)\n\tli\t31,0x70\n\tmtspr\t256,0\n\n\n\txxlor\t2, 32+10, 32+10\n\tvsldoi\t10,11,10,1\n\txxlor\t1, 32+10, 32+10\n\n\n\tmr\t31, 6\n\tbl\t.Lconsts\n\tlxvw4x\t0, 28, 6\n\tmr\t6, 31\n\tli\t31,0x70\n\n\tsubi\t9,9,3\n\n\tlvx\t23,0,6\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,7\n\taddi\t7,1,32+15\n\tmtctr\t9\n\n.Load_xts_dec_key:\n\tvperm\t24,30,31,7\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,7\n\tvperm\t25,31,30,7\n\tlvx\t31,0,6\n\tstvx\t25,3,7\n\taddi\t7,7,0x20\n\tbc\t16,0,.Load_xts_dec_key", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3001, "line_end": 3060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:77", "text": "lvx\t23,0,6\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tlvx\t31,0,6\n\tvperm\t23,23,30,7\n\taddi\t7,1,32+15\n\tmtctr\t9\n\n.Load_xts_dec_key:\n\tvperm\t24,30,31,7\n\tlvx\t30,3,6\n\taddi\t6,6,0x20\n\tstvx\t24,0,7\n\tvperm\t25,31,30,7\n\tlvx\t31,0,6\n\tstvx\t25,3,7\n\taddi\t7,7,0x20\n\tbc\t16,0,.Load_xts_dec_key\n\n\tlvx\t26,3,6\n\tvperm\t24,30,31,7\n\tlvx\t27,26,6\n\tstvx\t24,0,7\n\tvperm\t25,31,26,7\n\tlvx\t28,27,6\n\tstvx\t25,3,7\n\taddi\t7,1,32+15\n\tvperm\t26,26,27,7\n\tlvx\t29,28,6\n\tvperm\t27,27,28,7\n\tlvx\t30,29,6\n\tvperm\t28,28,29,7\n\tlvx\t31,30,6\n\tvperm\t29,29,30,7\n\tlvx\t22,31,6\n\tvperm\t30,30,31,7\n\tlvx\t24,0,7\n\tvperm\t31,31,22,7\n\tlvx\t25,3,7\n\n\tvperm\t0,2,4,5\n\tsubi\t10,10,31\n\tvxor\t17,8,23\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\tvand\t11,11,10\n\tvxor\t7,0,17\n\txxlor\t32+1, 0, 0\n\tvpermxor\t8, 8, 11, 1\n\n.long\t0x7C235699\n\tvxor\t18,8,23\n\tvsrab\t11,8,9\n\tvaddubm\t8,8,8\n\n\tvand\t11,11,10\n\tvxor\t12,1,18\n\txxlor\t32+2, 0, 0\n\tvpermxor\t8, 8, 11, 2", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3041, "line_end": 3100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:81", "text": ".long\t0x118CD548\n\tvand\t11,11,10\n.long\t0x11ADD548\n.long\t0x11CED548\n\txxlor\t32+2, 0, 0\n\tvpermxor\t8, 8, 11, 2\n.long\t0x11EFD548\n.long\t0x1210D548\n\n\tadd\t10,10,0\n\n\n\n\tvxor\t2,19,31\n\tvsrab\t11,8,9\n\tvxor\t19,8,23\n\tvaddubm\t8,8,8\n.long\t0x10E7DD48\n.long\t0x118CDD48\n.long\t0x11ADDD48\n.long\t0x11CEDD48\n\tvand\t11,11,10\n.long\t0x11EFDD48\n.long\t0x1210DD48\n\n\taddi\t7,1,32+15\n\txxlor\t32+3, 0, 0\n\tvpermxor\t8, 8, 11, 3\n.long\t0x10E7E548\n.long\t0x118CE548\n\tvxor\t3,20,31\n\tvsrab\t11,8,9\n\tvxor\t20,8,23\n.long\t0x11ADE548\n.long\t0x11CEE548\n\tvaddubm\t8,8,8\n.long\t0x11EFE548\n.long\t0x1210E548\n\tlvx\t24,0,7\n\tvand\t11,11,10\n\n.long\t0x10E7ED48\n.long\t0x118CED48\n\txxlor\t32+4, 0, 0\n\tvpermxor\t8, 8, 11, 4\n.long\t0x11ADED48\n.long\t0x11CEED48\n\tvxor\t4,21,31\n\tvsrab\t11,8,9\n\tvxor\t21,8,23\n.long\t0x11EFED48\n.long\t0x1210ED48\n\tlvx\t25,3,7\n\tvaddubm\t8,8,8\n\n.long\t0x10E7F548\n.long\t0x118CF548\n\tvand\t11,11,10\n.long\t0x11ADF548\n.long\t0x11CEF548", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3201, "line_end": 3260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:86", "text": "addi\t4,4,0x30\n\tbne\t.Lxts_dec6x_steal\n\tb\t.Lxts_dec6x_done\n\n.align\t4\n.Lxts_dec6x_two:\n\tvxor\t7,4,17\n\tvxor\t12,5,18\n\tvxor\t13,13,13\n\tvxor\t14,14,14\n\tvxor\t15,15,15\n\n\tbl\t_aesp8_xts_dec5x\n\n\n\tvor\t17,19,19\n\tvor\t18,20,20\n\n.long\t0x7CE02799\n\tvxor\t7,0,20\n.long\t0x7D832799\n\taddi\t4,4,0x20\n\tbne\t.Lxts_dec6x_steal\n\tb\t.Lxts_dec6x_done\n\n.align\t4\n.Lxts_dec6x_one:\n\tvxor\t7,5,17\n\tnop\n.Loop_xts_dec1x:\n.long\t0x10E7C548\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD48\n\tlvx\t25,3,7\n\tbc\t16,0,.Loop_xts_dec1x\n\n\tsubi\t0,31,1\n.long\t0x10E7C548\n\n\tandi.\t0,0,16\n\tcmpwi\t31,0\n.long\t0x10E7CD48\n\n\tsub\t10,10,0\n.long\t0x10E7D548\n\n.long\t0x7C005699\n.long\t0x10E7DD48\n\n\taddi\t7,1,32+15\n.long\t0x10E7E548\n\tlvx\t24,0,7\n\n.long\t0x10E7ED48\n\tlvx\t25,3,7\n\tvxor\t17,17,31", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3401, "line_end": 3460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:87", "text": "andi.\t0,0,16\n\tcmpwi\t31,0\n.long\t0x10E7CD48\n\n\tsub\t10,10,0\n.long\t0x10E7D548\n\n.long\t0x7C005699\n.long\t0x10E7DD48\n\n\taddi\t7,1,32+15\n.long\t0x10E7E548\n\tlvx\t24,0,7\n\n.long\t0x10E7ED48\n\tlvx\t25,3,7\n\tvxor\t17,17,31\n\n\n.long\t0x10E7F548\n\n\tmtctr\t9\n.long\t0x10E78D49\n\n\tvor\t17,18,18\n\tvor\t18,19,19\n\n.long\t0x7CE02799\n\taddi\t4,4,0x10\n\tvxor\t7,0,19\n\tbne\t.Lxts_dec6x_steal\n\tb\t.Lxts_dec6x_done\n\n.align\t4\n.Lxts_dec6x_zero:\n\tcmpwi\t31,0\n\tbeq\t.Lxts_dec6x_done\n\n.long\t0x7C005699\n\n\tvxor\t7,0,18\n.Lxts_dec6x_steal:\n.long\t0x10E7C548\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD48\n\tlvx\t25,3,7\n\tbc\t16,0,.Lxts_dec6x_steal\n\n\tadd\t10,10,31\n.long\t0x10E7C548\n\n\tcmpwi\t31,0\n.long\t0x10E7CD48\n\n.long\t0x7C005699\n.long\t0x10E7D548", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3441, "line_end": 3500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:88", "text": "vxor\t7,0,18\n.Lxts_dec6x_steal:\n.long\t0x10E7C548\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD48\n\tlvx\t25,3,7\n\tbc\t16,0,.Lxts_dec6x_steal\n\n\tadd\t10,10,31\n.long\t0x10E7C548\n\n\tcmpwi\t31,0\n.long\t0x10E7CD48\n\n.long\t0x7C005699\n.long\t0x10E7D548\n\n\tlvsr\t5,0,31\n.long\t0x10E7DD48\n\n\taddi\t7,1,32+15\n.long\t0x10E7E548\n\tlvx\t24,0,7\n\n.long\t0x10E7ED48\n\tlvx\t25,3,7\n\tvxor\t18,18,31\n\n\n.long\t0x10E7F548\n\n\tvperm\t0,0,0,5\n.long\t0x11679549\n\n\n\n.long\t0x7D602799\n\n\tvxor\t7,7,7\n\tvspltisb\t12,-1\n\tvperm\t7,7,12,5\n\tvsel\t7,0,11,7\n\tvxor\t7,7,17\n\n\tsubi\t30,4,1\n\tmtctr\t31\n.Loop_xts_dec6x_steal:\n\tlbzu\t0,1(30)\n\tstb\t0,16(30)\n\tbc\t16,0,.Loop_xts_dec6x_steal\n\n\tli\t31,0\n\tmtctr\t9\n\tb\t.Loop_xts_dec1x\n\n.align\t4\n.Lxts_dec6x_done:", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3481, "line_end": 3540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:89", "text": "vxor\t7,7,7\n\tvspltisb\t12,-1\n\tvperm\t7,7,12,5\n\tvsel\t7,0,11,7\n\tvxor\t7,7,17\n\n\tsubi\t30,4,1\n\tmtctr\t31\n.Loop_xts_dec6x_steal:\n\tlbzu\t0,1(30)\n\tstb\t0,16(30)\n\tbc\t16,0,.Loop_xts_dec6x_steal\n\n\tli\t31,0\n\tmtctr\t9\n\tb\t.Loop_xts_dec1x\n\n.align\t4\n.Lxts_dec6x_done:\n\tcmplwi\t8,0\n\tbeq\t.Lxts_dec6x_ret\n\n\tvxor\t8,17,23\n\n.long\t0x7D004799\n\n.Lxts_dec6x_ret:\n\tmtlr\t11\n\tli\t10,47\n\tli\t11,63\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\n\tmtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1\n\taddi\t11,11,32\n\tlvx\t24,10,1\n\taddi\t10,10,32\n\tlvx\t25,11,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3521, "line_end": 3580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:90", "text": "addi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\tstvx\t9,10,1\n\taddi\t10,10,32\n\tstvx\t9,11,1\n\taddi\t11,11,32\n\n\tmtspr\t256,12\n\tlvx\t20,10,1\n\taddi\t10,10,32\n\tlvx\t21,11,1\n\taddi\t11,11,32\n\tlvx\t22,10,1\n\taddi\t10,10,32\n\tlvx\t23,11,1\n\taddi\t11,11,32\n\tlvx\t24,10,1\n\taddi\t10,10,32\n\tlvx\t25,11,1\n\taddi\t11,11,32\n\tlvx\t26,10,1\n\taddi\t10,10,32\n\tlvx\t27,11,1\n\taddi\t11,11,32\n\tlvx\t28,10,1\n\taddi\t10,10,32\n\tlvx\t29,11,1\n\taddi\t11,11,32\n\tlvx\t30,10,1\n\tlvx\t31,11,1\n\tlwz\t26,368(1)\n\tlwz\t27,372(1)\n\tlwz\t28,376(1)\n\tlwz\t29,380(1)\n\tlwz\t30,384(1)\n\tlwz\t31,388(1)\n\taddi\t1,1,392\n\tblr\n.long\t0\n.byte\t0,12,0x04,1,0x80,6,6,0\n.long\t0\n\n.align\t5\n_aesp8_xts_dec5x:\n.long\t0x10E7C548\n.long\t0x118CC548\n.long\t0x11ADC548\n.long\t0x11CEC548\n.long\t0x11EFC548\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD48\n.long\t0x118CCD48\n.long\t0x11ADCD48\n.long\t0x11CECD48\n.long\t0x11EFCD48\n\tlvx\t25,3,7\n\tbc\t16,0,_aesp8_xts_dec5x", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3561, "line_end": 3620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:91", "text": ".byte\t0,12,0x04,1,0x80,6,6,0\n.long\t0\n\n.align\t5\n_aesp8_xts_dec5x:\n.long\t0x10E7C548\n.long\t0x118CC548\n.long\t0x11ADC548\n.long\t0x11CEC548\n.long\t0x11EFC548\n\tlvx\t24,26,7\n\taddi\t7,7,0x20\n\n.long\t0x10E7CD48\n.long\t0x118CCD48\n.long\t0x11ADCD48\n.long\t0x11CECD48\n.long\t0x11EFCD48\n\tlvx\t25,3,7\n\tbc\t16,0,_aesp8_xts_dec5x\n\n\tsubi\t0,31,1\n.long\t0x10E7C548\n.long\t0x118CC548\n.long\t0x11ADC548\n.long\t0x11CEC548\n.long\t0x11EFC548\n\n\tandi.\t0,0,16\n\tcmpwi\t31,0\n.long\t0x10E7CD48\n.long\t0x118CCD48\n.long\t0x11ADCD48\n.long\t0x11CECD48\n.long\t0x11EFCD48\n\tvxor\t17,17,31\n\n\tsub\t10,10,0\n.long\t0x10E7D548\n.long\t0x118CD548\n.long\t0x11ADD548\n.long\t0x11CED548\n.long\t0x11EFD548\n\tvxor\t1,18,31\n\n.long\t0x10E7DD48\n.long\t0x7C005699\n.long\t0x118CDD48\n.long\t0x11ADDD48\n.long\t0x11CEDD48\n.long\t0x11EFDD48\n\tvxor\t2,19,31\n\n\taddi\t7,1,32+15\n.long\t0x10E7E548\n.long\t0x118CE548\n.long\t0x11ADE548\n.long\t0x11CEE548\n.long\t0x11EFE548\n\tlvx\t24,0,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3601, "line_end": 3660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S:92", "text": ".long\t0x11ADD548\n.long\t0x11CED548\n.long\t0x11EFD548\n\tvxor\t1,18,31\n\n.long\t0x10E7DD48\n.long\t0x7C005699\n.long\t0x118CDD48\n.long\t0x11ADDD48\n.long\t0x11CEDD48\n.long\t0x11EFDD48\n\tvxor\t2,19,31\n\n\taddi\t7,1,32+15\n.long\t0x10E7E548\n.long\t0x118CE548\n.long\t0x11ADE548\n.long\t0x11CEE548\n.long\t0x11EFE548\n\tlvx\t24,0,7\n\tvxor\t3,20,31\n\n.long\t0x10E7ED48\n\n.long\t0x118CED48\n.long\t0x11ADED48\n.long\t0x11CEED48\n.long\t0x11EFED48\n\tlvx\t25,3,7\n\tvxor\t4,21,31\n\n.long\t0x10E7F548\n.long\t0x118CF548\n.long\t0x11ADF548\n.long\t0x11CEF548\n.long\t0x11EFF548\n\n.long\t0x10E78D49\n.long\t0x118C0D49\n.long\t0x11AD1549\n.long\t0x11CE1D49\n.long\t0x11EF2549\n\tmtctr\t9\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/aesp8-ppc.S", "line_start": 3641, "line_end": 3686}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/bn.inc:1", "text": ".PATH.S: ${.PARSEDIR}\nBN_SRCS = ppc.S ppc-mont.S bn_ppc.c\nCPPFLAGS += -DOPENSSL_BN_ASM_MONT\n.include \"../../bn.inc\"", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/bn.inc", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/bn.inc", "line_start": 1, "line_end": 4}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:1", "text": ".machine\t\"any\"\n.text\n\n.globl\tChaCha20_ctr32_int\n.type\tChaCha20_ctr32_int,@function\n.align\t5\nChaCha20_ctr32_int:\n__ChaCha20_ctr32_int:\n\tcmplwi\t5,0\n\tbeqlr\n\n\tstwu\t1,-160(1)\n\tmflr\t0\n\n\tstw\t14,88(1)\n\tstw\t15,92(1)\n\tstw\t16,96(1)\n\tstw\t17,100(1)\n\tstw\t18,104(1)\n\tstw\t19,108(1)\n\tstw\t20,112(1)\n\tstw\t21,116(1)\n\tstw\t22,120(1)\n\tstw\t23,124(1)\n\tstw\t24,128(1)\n\tstw\t25,132(1)\n\tstw\t26,136(1)\n\tstw\t27,140(1)\n\tstw\t28,144(1)\n\tstw\t29,148(1)\n\tstw\t30,152(1)\n\tstw\t31,156(1)\n\tstw\t0,164(1)\n\n\tlwz\t11,0(7)\n\tlwz\t12,4(7)\n\tlwz\t14,8(7)\n\tlwz\t15,12(7)\n\n\tbl\t__ChaCha20_1x\n\n\tlwz\t0,164(1)\n\tlwz\t14,88(1)\n\tlwz\t15,92(1)\n\tlwz\t16,96(1)\n\tlwz\t17,100(1)\n\tlwz\t18,104(1)\n\tlwz\t19,108(1)\n\tlwz\t20,112(1)\n\tlwz\t21,116(1)\n\tlwz\t22,120(1)\n\tlwz\t23,124(1)\n\tlwz\t24,128(1)\n\tlwz\t25,132(1)\n\tlwz\t26,136(1)\n\tlwz\t27,140(1)\n\tlwz\t28,144(1)\n\tlwz\t29,148(1)\n\tlwz\t30,152(1)\n\tlwz\t31,156(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1, "line_end": 60}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:2", "text": "lwz\t0,164(1)\n\tlwz\t14,88(1)\n\tlwz\t15,92(1)\n\tlwz\t16,96(1)\n\tlwz\t17,100(1)\n\tlwz\t18,104(1)\n\tlwz\t19,108(1)\n\tlwz\t20,112(1)\n\tlwz\t21,116(1)\n\tlwz\t22,120(1)\n\tlwz\t23,124(1)\n\tlwz\t24,128(1)\n\tlwz\t25,132(1)\n\tlwz\t26,136(1)\n\tlwz\t27,140(1)\n\tlwz\t28,144(1)\n\tlwz\t29,148(1)\n\tlwz\t30,152(1)\n\tlwz\t31,156(1)\n\tmtlr\t0\n\taddi\t1,1,160\n\tblr\n.long\t0\n.byte\t0,12,4,1,0x80,18,5,0\n.long\t0\n\n\n.align\t5\n__ChaCha20_1x:\n.Loop_outer:\n\tlis\t16,0x6170\n\tlis\t17,0x3320\n\tlis\t18,0x7962\n\tlis\t19,0x6b20\n\tori\t16,16,0x7865\n\tori\t17,17,0x646e\n\tori\t18,18,0x2d32\n\tori\t19,19,0x6574\n\n\tli\t0,10\n\tlwz\t20,0(6)\n\tlwz\t21,4(6)\n\tlwz\t22,8(6)\n\tlwz\t23,12(6)\n\tlwz\t24,16(6)\n\tmr\t28,11\n\tlwz\t25,20(6)\n\tmr\t29,12\n\tlwz\t26,24(6)\n\tmr\t30,14\n\tlwz\t27,28(6)\n\tmr\t31,15\n\n\tmr\t7,20\n\tmr\t8,21\n\tmr\t9,22\n\tmr\t10,23\n\n\tmtctr\t0", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 41, "line_end": 100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:3", "text": "li\t0,10\n\tlwz\t20,0(6)\n\tlwz\t21,4(6)\n\tlwz\t22,8(6)\n\tlwz\t23,12(6)\n\tlwz\t24,16(6)\n\tmr\t28,11\n\tlwz\t25,20(6)\n\tmr\t29,12\n\tlwz\t26,24(6)\n\tmr\t30,14\n\tlwz\t27,28(6)\n\tmr\t31,15\n\n\tmr\t7,20\n\tmr\t8,21\n\tmr\t9,22\n\tmr\t10,23\n\n\tmtctr\t0\n.Loop:\n\tadd\t16,16,20\n\tadd\t17,17,21\n\tadd\t18,18,22\n\tadd\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,16\n\trotlwi\t29,29,16\n\trotlwi\t30,30,16\n\trotlwi\t31,31,16\n\tadd\t24,24,28\n\tadd\t25,25,29\n\tadd\t26,26,30\n\tadd\t27,27,31\n\txor\t20,20,24\n\txor\t21,21,25\n\txor\t22,22,26\n\txor\t23,23,27\n\trotlwi\t20,20,12\n\trotlwi\t21,21,12\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\tadd\t16,16,20\n\tadd\t17,17,21\n\tadd\t18,18,22\n\tadd\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,8\n\trotlwi\t29,29,8\n\trotlwi\t30,30,8\n\trotlwi\t31,31,8\n\tadd\t24,24,28\n\tadd\t25,25,29\n\tadd\t26,26,30", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 81, "line_end": 140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:4", "text": "xor\t23,23,27\n\trotlwi\t20,20,12\n\trotlwi\t21,21,12\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\tadd\t16,16,20\n\tadd\t17,17,21\n\tadd\t18,18,22\n\tadd\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,8\n\trotlwi\t29,29,8\n\trotlwi\t30,30,8\n\trotlwi\t31,31,8\n\tadd\t24,24,28\n\tadd\t25,25,29\n\tadd\t26,26,30\n\tadd\t27,27,31\n\txor\t20,20,24\n\txor\t21,21,25\n\txor\t22,22,26\n\txor\t23,23,27\n\trotlwi\t20,20,7\n\trotlwi\t21,21,7\n\trotlwi\t22,22,7\n\trotlwi\t23,23,7\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tadd\t19,19,20\n\txor\t31,31,16\n\txor\t28,28,17\n\txor\t29,29,18\n\txor\t30,30,19\n\trotlwi\t31,31,16\n\trotlwi\t28,28,16\n\trotlwi\t29,29,16\n\trotlwi\t30,30,16\n\tadd\t26,26,31\n\tadd\t27,27,28\n\tadd\t24,24,29\n\tadd\t25,25,30\n\txor\t21,21,26\n\txor\t22,22,27\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,12\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\trotlwi\t20,20,12\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tadd\t19,19,20\n\txor\t31,31,16\n\txor\t28,28,17\n\txor\t29,29,18", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 121, "line_end": 180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:5", "text": "rotlwi\t30,30,16\n\tadd\t26,26,31\n\tadd\t27,27,28\n\tadd\t24,24,29\n\tadd\t25,25,30\n\txor\t21,21,26\n\txor\t22,22,27\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,12\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\trotlwi\t20,20,12\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tadd\t19,19,20\n\txor\t31,31,16\n\txor\t28,28,17\n\txor\t29,29,18\n\txor\t30,30,19\n\trotlwi\t31,31,8\n\trotlwi\t28,28,8\n\trotlwi\t29,29,8\n\trotlwi\t30,30,8\n\tadd\t26,26,31\n\tadd\t27,27,28\n\tadd\t24,24,29\n\tadd\t25,25,30\n\txor\t21,21,26\n\txor\t22,22,27\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,7\n\trotlwi\t22,22,7\n\trotlwi\t23,23,7\n\trotlwi\t20,20,7\n\tbc\t16,0,.Loop\n\n\tsubic\t5,5,64\n\taddi\t16,16,0x7865\n\taddi\t17,17,0x646e\n\taddi\t18,18,0x2d32\n\taddi\t19,19,0x6574\n\taddis\t16,16,0x6170\n\taddis\t17,17,0x3320\n\taddis\t18,18,0x7962\n\taddis\t19,19,0x6b20\n\n\tsubfe.\t0,0,0\n\tadd\t20,20,7\n\tlwz\t7,16(6)\n\tadd\t21,21,8\n\tlwz\t8,20(6)\n\tadd\t22,22,9\n\tlwz\t9,24(6)\n\tadd\t23,23,10\n\tlwz\t10,28(6)\n\tadd\t24,24,7\n\tadd\t25,25,8", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 161, "line_end": 220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:6", "text": "addi\t16,16,0x7865\n\taddi\t17,17,0x646e\n\taddi\t18,18,0x2d32\n\taddi\t19,19,0x6574\n\taddis\t16,16,0x6170\n\taddis\t17,17,0x3320\n\taddis\t18,18,0x7962\n\taddis\t19,19,0x6b20\n\n\tsubfe.\t0,0,0\n\tadd\t20,20,7\n\tlwz\t7,16(6)\n\tadd\t21,21,8\n\tlwz\t8,20(6)\n\tadd\t22,22,9\n\tlwz\t9,24(6)\n\tadd\t23,23,10\n\tlwz\t10,28(6)\n\tadd\t24,24,7\n\tadd\t25,25,8\n\tadd\t26,26,9\n\tadd\t27,27,10\n\n\tadd\t28,28,11\n\tadd\t29,29,12\n\tadd\t30,30,14\n\tadd\t31,31,15\n\taddi\t11,11,1\n\tmr\t7,16\n\trotlwi\t16,16,8\n\trlwimi\t16,7,24,0,7\n\trlwimi\t16,7,24,16,23\n\tmr\t8,17\n\trotlwi\t17,17,8\n\trlwimi\t17,8,24,0,7\n\trlwimi\t17,8,24,16,23\n\tmr\t9,18\n\trotlwi\t18,18,8\n\trlwimi\t18,9,24,0,7\n\trlwimi\t18,9,24,16,23\n\tmr\t10,19\n\trotlwi\t19,19,8\n\trlwimi\t19,10,24,0,7\n\trlwimi\t19,10,24,16,23\n\tmr\t7,20\n\trotlwi\t20,20,8\n\trlwimi\t20,7,24,0,7\n\trlwimi\t20,7,24,16,23\n\tmr\t8,21\n\trotlwi\t21,21,8\n\trlwimi\t21,8,24,0,7\n\trlwimi\t21,8,24,16,23\n\tmr\t9,22\n\trotlwi\t22,22,8\n\trlwimi\t22,9,24,0,7\n\trlwimi\t22,9,24,16,23\n\tmr\t10,23\n\trotlwi\t23,23,8\n\trlwimi\t23,10,24,0,7\n\trlwimi\t23,10,24,16,23", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 201, "line_end": 260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:7", "text": "mr\t10,19\n\trotlwi\t19,19,8\n\trlwimi\t19,10,24,0,7\n\trlwimi\t19,10,24,16,23\n\tmr\t7,20\n\trotlwi\t20,20,8\n\trlwimi\t20,7,24,0,7\n\trlwimi\t20,7,24,16,23\n\tmr\t8,21\n\trotlwi\t21,21,8\n\trlwimi\t21,8,24,0,7\n\trlwimi\t21,8,24,16,23\n\tmr\t9,22\n\trotlwi\t22,22,8\n\trlwimi\t22,9,24,0,7\n\trlwimi\t22,9,24,16,23\n\tmr\t10,23\n\trotlwi\t23,23,8\n\trlwimi\t23,10,24,0,7\n\trlwimi\t23,10,24,16,23\n\tmr\t7,24\n\trotlwi\t24,24,8\n\trlwimi\t24,7,24,0,7\n\trlwimi\t24,7,24,16,23\n\tmr\t8,25\n\trotlwi\t25,25,8\n\trlwimi\t25,8,24,0,7\n\trlwimi\t25,8,24,16,23\n\tmr\t9,26\n\trotlwi\t26,26,8\n\trlwimi\t26,9,24,0,7\n\trlwimi\t26,9,24,16,23\n\tmr\t10,27\n\trotlwi\t27,27,8\n\trlwimi\t27,10,24,0,7\n\trlwimi\t27,10,24,16,23\n\tmr\t7,28\n\trotlwi\t28,28,8\n\trlwimi\t28,7,24,0,7\n\trlwimi\t28,7,24,16,23\n\tmr\t8,29\n\trotlwi\t29,29,8\n\trlwimi\t29,8,24,0,7\n\trlwimi\t29,8,24,16,23\n\tmr\t9,30\n\trotlwi\t30,30,8\n\trlwimi\t30,9,24,0,7\n\trlwimi\t30,9,24,16,23\n\tmr\t10,31\n\trotlwi\t31,31,8\n\trlwimi\t31,10,24,0,7\n\trlwimi\t31,10,24,16,23\n\tbne\t.Ltail\n\n\tlwz\t7,0(4)\n\tlwz\t8,4(4)\n\tcmplwi\t5,0\n\tlwz\t9,8(4)\n\tlwz\t10,12(4)\n\txor\t16,16,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 241, "line_end": 300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:8", "text": "mr\t8,29\n\trotlwi\t29,29,8\n\trlwimi\t29,8,24,0,7\n\trlwimi\t29,8,24,16,23\n\tmr\t9,30\n\trotlwi\t30,30,8\n\trlwimi\t30,9,24,0,7\n\trlwimi\t30,9,24,16,23\n\tmr\t10,31\n\trotlwi\t31,31,8\n\trlwimi\t31,10,24,0,7\n\trlwimi\t31,10,24,16,23\n\tbne\t.Ltail\n\n\tlwz\t7,0(4)\n\tlwz\t8,4(4)\n\tcmplwi\t5,0\n\tlwz\t9,8(4)\n\tlwz\t10,12(4)\n\txor\t16,16,7\n\tlwz\t7,16(4)\n\txor\t17,17,8\n\tlwz\t8,20(4)\n\txor\t18,18,9\n\tlwz\t9,24(4)\n\txor\t19,19,10\n\tlwz\t10,28(4)\n\txor\t20,20,7\n\tlwz\t7,32(4)\n\txor\t21,21,8\n\tlwz\t8,36(4)\n\txor\t22,22,9\n\tlwz\t9,40(4)\n\txor\t23,23,10\n\tlwz\t10,44(4)\n\txor\t24,24,7\n\tlwz\t7,48(4)\n\txor\t25,25,8\n\tlwz\t8,52(4)\n\txor\t26,26,9\n\tlwz\t9,56(4)\n\txor\t27,27,10\n\tlwz\t10,60(4)\n\txor\t28,28,7\n\tstw\t16,0(3)\n\txor\t29,29,8\n\tstw\t17,4(3)\n\txor\t30,30,9\n\tstw\t18,8(3)\n\txor\t31,31,10\n\tstw\t19,12(3)\n\tstw\t20,16(3)\n\tstw\t21,20(3)\n\tstw\t22,24(3)\n\tstw\t23,28(3)\n\tstw\t24,32(3)\n\tstw\t25,36(3)\n\tstw\t26,40(3)\n\tstw\t27,44(3)\n\tstw\t28,48(3)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 281, "line_end": 340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:9", "text": "lwz\t9,56(4)\n\txor\t27,27,10\n\tlwz\t10,60(4)\n\txor\t28,28,7\n\tstw\t16,0(3)\n\txor\t29,29,8\n\tstw\t17,4(3)\n\txor\t30,30,9\n\tstw\t18,8(3)\n\txor\t31,31,10\n\tstw\t19,12(3)\n\tstw\t20,16(3)\n\tstw\t21,20(3)\n\tstw\t22,24(3)\n\tstw\t23,28(3)\n\tstw\t24,32(3)\n\tstw\t25,36(3)\n\tstw\t26,40(3)\n\tstw\t27,44(3)\n\tstw\t28,48(3)\n\tstw\t29,52(3)\n\tstw\t30,56(3)\n\taddi\t4,4,64\n\tstw\t31,60(3)\n\taddi\t3,3,64\n\n\tbne\t.Loop_outer\n\n\tblr\n\n.align\t4\n.Ltail:\n\taddi\t5,5,64\n\tsubi\t4,4,1\n\tsubi\t3,3,1\n\taddi\t7,1,24-1\n\tmtctr\t5\n\n\tstw\t16,24(1)\n\tstw\t17,28(1)\n\tstw\t18,32(1)\n\tstw\t19,36(1)\n\tstw\t20,40(1)\n\tstw\t21,44(1)\n\tstw\t22,48(1)\n\tstw\t23,52(1)\n\tstw\t24,56(1)\n\tstw\t25,60(1)\n\tstw\t26,64(1)\n\tstw\t27,68(1)\n\tstw\t28,72(1)\n\tstw\t29,76(1)\n\tstw\t30,80(1)\n\tstw\t31,84(1)\n\n.Loop_tail:\n\tlbzu\t11,1(4)\n\tlbzu\t16,1(7)\n\txor\t12,11,16\n\tstbu\t12,1(3)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 321, "line_end": 380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:10", "text": "stw\t18,32(1)\n\tstw\t19,36(1)\n\tstw\t20,40(1)\n\tstw\t21,44(1)\n\tstw\t22,48(1)\n\tstw\t23,52(1)\n\tstw\t24,56(1)\n\tstw\t25,60(1)\n\tstw\t26,64(1)\n\tstw\t27,68(1)\n\tstw\t28,72(1)\n\tstw\t29,76(1)\n\tstw\t30,80(1)\n\tstw\t31,84(1)\n\n.Loop_tail:\n\tlbzu\t11,1(4)\n\tlbzu\t16,1(7)\n\txor\t12,11,16\n\tstbu\t12,1(3)\n\tbc\t16,0,.Loop_tail\n\n\tstw\t1,24(1)\n\tstw\t1,28(1)\n\tstw\t1,32(1)\n\tstw\t1,36(1)\n\tstw\t1,40(1)\n\tstw\t1,44(1)\n\tstw\t1,48(1)\n\tstw\t1,52(1)\n\tstw\t1,56(1)\n\tstw\t1,60(1)\n\tstw\t1,64(1)\n\tstw\t1,68(1)\n\tstw\t1,72(1)\n\tstw\t1,76(1)\n\tstw\t1,80(1)\n\tstw\t1,84(1)\n\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.globl\tChaCha20_ctr32_vmx\n.type\tChaCha20_ctr32_vmx,@function\n.align\t5\nChaCha20_ctr32_vmx:\n\tcmplwi\t5,256\n\tblt\t__ChaCha20_ctr32_int\n\n\tstwu\t1,-320(1)\n\tmflr\t0\n\tli\t10,103\n\tli\t11,119\n\tmfspr\t12,256\n\tstvx\t23,10,1\n\taddi\t10,10,32\n\tstvx\t24,11,1\n\taddi\t11,11,32\n\tstvx\t25,10,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 361, "line_end": 420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:11", "text": ".long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n\n.globl\tChaCha20_ctr32_vmx\n.type\tChaCha20_ctr32_vmx,@function\n.align\t5\nChaCha20_ctr32_vmx:\n\tcmplwi\t5,256\n\tblt\t__ChaCha20_ctr32_int\n\n\tstwu\t1,-320(1)\n\tmflr\t0\n\tli\t10,103\n\tli\t11,119\n\tmfspr\t12,256\n\tstvx\t23,10,1\n\taddi\t10,10,32\n\tstvx\t24,11,1\n\taddi\t11,11,32\n\tstvx\t25,10,1\n\taddi\t10,10,32\n\tstvx\t26,11,1\n\taddi\t11,11,32\n\tstvx\t27,10,1\n\taddi\t10,10,32\n\tstvx\t28,11,1\n\taddi\t11,11,32\n\tstvx\t29,10,1\n\taddi\t10,10,32\n\tstvx\t30,11,1\n\tstvx\t31,10,1\n\tstw\t12,244(1)\n\tstw\t14,248(1)\n\tstw\t15,252(1)\n\tstw\t16,256(1)\n\tstw\t17,260(1)\n\tstw\t18,264(1)\n\tstw\t19,268(1)\n\tstw\t20,272(1)\n\tstw\t21,276(1)\n\tstw\t22,280(1)\n\tstw\t23,284(1)\n\tstw\t24,288(1)\n\tstw\t25,292(1)\n\tstw\t26,296(1)\n\tstw\t27,300(1)\n\tstw\t28,304(1)\n\tstw\t29,308(1)\n\tstw\t30,312(1)\n\tstw\t31,316(1)\n\tli\t12,-4096+511\n\tstw\t0, 324(1)\n\tmtspr\t256,12\n\n\tbl\t.Lconsts\n\tli\t16,16\n\tli\t17,32\n\tli\t18,48\n\tli\t19,64\n\tli\t20,31", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 401, "line_end": 460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:12", "text": "stw\t22,280(1)\n\tstw\t23,284(1)\n\tstw\t24,288(1)\n\tstw\t25,292(1)\n\tstw\t26,296(1)\n\tstw\t27,300(1)\n\tstw\t28,304(1)\n\tstw\t29,308(1)\n\tstw\t30,312(1)\n\tstw\t31,316(1)\n\tli\t12,-4096+511\n\tstw\t0, 324(1)\n\tmtspr\t256,12\n\n\tbl\t.Lconsts\n\tli\t16,16\n\tli\t17,32\n\tli\t18,48\n\tli\t19,64\n\tli\t20,31\n\tli\t21,15\n\n\tlvx\t13,0,6\n\tlvsl\t29,0,6\n\tlvx\t14,16,6\n\tlvx\t27,20,6\n\n\tlvx\t15,0,7\n\tlvsl\t30,0,7\n\tlvx\t28,21,7\n\n\tlvx\t12,0,12\n\tlvx\t17,16,12\n\tlvx\t18,17,12\n\tlvx\t19,18,12\n\tlvx\t23,19,12\n\n\tvperm\t13,13,14,29\n\tvperm\t14,14,27,29\n\tvperm\t15,15,28,30\n\n\tlwz\t11,0(7)\n\tlwz\t12,4(7)\n\tvadduwm\t15,15,17\n\tlwz\t14,8(7)\n\tvadduwm\t16,15,17\n\tlwz\t15,12(7)\n\tvadduwm\t17,16,17\n\n\tvxor\t29,29,29\n\tvspltisw\t26,-1\n\tlvsl\t24,0,4\n\tlvsr\t25,0,3\n\tvperm\t26,29,26,25\n\n\tlvsl\t29,0,16\n\tvspltisb\t30,3\n\tvxor\t29,29,30\n\tvxor\t25,25,30\n\tvperm\t24,24,24,29", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 441, "line_end": 500}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:13", "text": "lwz\t11,0(7)\n\tlwz\t12,4(7)\n\tvadduwm\t15,15,17\n\tlwz\t14,8(7)\n\tvadduwm\t16,15,17\n\tlwz\t15,12(7)\n\tvadduwm\t17,16,17\n\n\tvxor\t29,29,29\n\tvspltisw\t26,-1\n\tlvsl\t24,0,4\n\tlvsr\t25,0,3\n\tvperm\t26,29,26,25\n\n\tlvsl\t29,0,16\n\tvspltisb\t30,3\n\tvxor\t29,29,30\n\tvxor\t25,25,30\n\tvperm\t24,24,24,29\n\n\tli\t0,10\n\tb\t.Loop_outer_vmx\n\n.align\t4\n.Loop_outer_vmx:\n\tlis\t16,0x6170\n\tlis\t17,0x3320\n\tvor\t0,12,12\n\tlis\t18,0x7962\n\tlis\t19,0x6b20\n\tvor\t4,12,12\n\tori\t16,16,0x7865\n\tori\t17,17,0x646e\n\tvor\t8,12,12\n\tori\t18,18,0x2d32\n\tori\t19,19,0x6574\n\tvor\t1,13,13\n\n\tlwz\t20,0(6)\n\tvor\t5,13,13\n\tlwz\t21,4(6)\n\tvor\t9,13,13\n\tlwz\t22,8(6)\n\tvor\t2,14,14\n\tlwz\t23,12(6)\n\tvor\t6,14,14\n\tlwz\t24,16(6)\n\tvor\t10,14,14\n\tmr\t28,11\n\tlwz\t25,20(6)\n\tvor\t3,15,15\n\tmr\t29,12\n\tlwz\t26,24(6)\n\tvor\t7,16,16\n\tmr\t30,14\n\tlwz\t27,28(6)\n\tvor\t11,17,17\n\tmr\t31,15", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 481, "line_end": 540}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:14", "text": "vor\t5,13,13\n\tlwz\t21,4(6)\n\tvor\t9,13,13\n\tlwz\t22,8(6)\n\tvor\t2,14,14\n\tlwz\t23,12(6)\n\tvor\t6,14,14\n\tlwz\t24,16(6)\n\tvor\t10,14,14\n\tmr\t28,11\n\tlwz\t25,20(6)\n\tvor\t3,15,15\n\tmr\t29,12\n\tlwz\t26,24(6)\n\tvor\t7,16,16\n\tmr\t30,14\n\tlwz\t27,28(6)\n\tvor\t11,17,17\n\tmr\t31,15\n\n\tmr\t7,20\n\tmr\t8,21\n\tmr\t9,22\n\tmr\t10,23\n\n\tvspltisw\t27,12\n\tvspltisw\t28,7\n\n\tmtctr\t0\n\tnop\n.Loop_vmx:\n\tvadduwm\t0,0,1\n\tvadduwm\t4,4,5\n\tvadduwm\t8,8,9\n\tadd\t16,16,20\n\tadd\t17,17,21\n\tadd\t18,18,22\n\tvxor\t3,3,0\n\tvxor\t7,7,4\n\tvxor\t11,11,8\n\tadd\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\tvperm\t3,3,3,19\n\tvperm\t7,7,7,19\n\tvperm\t11,11,11,19\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,16\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7\n\tvadduwm\t10,10,11\n\trotlwi\t29,29,16\n\trotlwi\t30,30,16\n\trotlwi\t31,31,16\n\tvxor\t1,1,2\n\tvxor\t5,5,6\n\tvxor\t9,9,10\n\tadd\t24,24,28\n\tadd\t25,25,29", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 521, "line_end": 580}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:15", "text": "add\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\tvperm\t3,3,3,19\n\tvperm\t7,7,7,19\n\tvperm\t11,11,11,19\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,16\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7\n\tvadduwm\t10,10,11\n\trotlwi\t29,29,16\n\trotlwi\t30,30,16\n\trotlwi\t31,31,16\n\tvxor\t1,1,2\n\tvxor\t5,5,6\n\tvxor\t9,9,10\n\tadd\t24,24,28\n\tadd\t25,25,29\n\tadd\t26,26,30\n\tvrlw\t1,1,27\n\tvrlw\t5,5,27\n\tvrlw\t9,9,27\n\tadd\t27,27,31\n\txor\t20,20,24\n\txor\t21,21,25\n\tvadduwm\t0,0,1\n\tvadduwm\t4,4,5\n\tvadduwm\t8,8,9\n\txor\t22,22,26\n\txor\t23,23,27\n\trotlwi\t20,20,12\n\tvxor\t3,3,0\n\tvxor\t7,7,4\n\tvxor\t11,11,8\n\trotlwi\t21,21,12\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\tvperm\t3,3,3,23\n\tvperm\t7,7,7,23\n\tvperm\t11,11,11,23\n\tadd\t16,16,20\n\tadd\t17,17,21\n\tadd\t18,18,22\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7\n\tvadduwm\t10,10,11\n\tadd\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\tvxor\t1,1,2\n\tvxor\t5,5,6\n\tvxor\t9,9,10\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,8\n\tvrlw\t1,1,28\n\tvrlw\t5,5,28\n\tvrlw\t9,9,28", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 561, "line_end": 620}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:16", "text": "vperm\t7,7,7,23\n\tvperm\t11,11,11,23\n\tadd\t16,16,20\n\tadd\t17,17,21\n\tadd\t18,18,22\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7\n\tvadduwm\t10,10,11\n\tadd\t19,19,23\n\txor\t28,28,16\n\txor\t29,29,17\n\tvxor\t1,1,2\n\tvxor\t5,5,6\n\tvxor\t9,9,10\n\txor\t30,30,18\n\txor\t31,31,19\n\trotlwi\t28,28,8\n\tvrlw\t1,1,28\n\tvrlw\t5,5,28\n\tvrlw\t9,9,28\n\trotlwi\t29,29,8\n\trotlwi\t30,30,8\n\trotlwi\t31,31,8\n\tvsldoi\t2,2,2, 16-8\n\tvsldoi\t6,6,6, 16-8\n\tvsldoi\t10,10,10, 16-8\n\tadd\t24,24,28\n\tadd\t25,25,29\n\tadd\t26,26,30\n\tvsldoi\t1,1,1, 16-12\n\tvsldoi\t5,5,5, 16-12\n\tvsldoi\t9,9,9, 16-12\n\tadd\t27,27,31\n\txor\t20,20,24\n\txor\t21,21,25\n\tvsldoi\t3,3,3, 16-4\n\tvsldoi\t7,7,7, 16-4\n\tvsldoi\t11,11,11, 16-4\n\txor\t22,22,26\n\txor\t23,23,27\n\trotlwi\t20,20,7\n\trotlwi\t21,21,7\n\trotlwi\t22,22,7\n\trotlwi\t23,23,7\n\tvadduwm\t0,0,1\n\tvadduwm\t4,4,5\n\tvadduwm\t8,8,9\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tvxor\t3,3,0\n\tvxor\t7,7,4\n\tvxor\t11,11,8\n\tadd\t19,19,20\n\txor\t31,31,16\n\txor\t28,28,17\n\tvperm\t3,3,3,19\n\tvperm\t7,7,7,19\n\tvperm\t11,11,11,19\n\txor\t29,29,18", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 601, "line_end": 660}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:17", "text": "rotlwi\t20,20,7\n\trotlwi\t21,21,7\n\trotlwi\t22,22,7\n\trotlwi\t23,23,7\n\tvadduwm\t0,0,1\n\tvadduwm\t4,4,5\n\tvadduwm\t8,8,9\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tvxor\t3,3,0\n\tvxor\t7,7,4\n\tvxor\t11,11,8\n\tadd\t19,19,20\n\txor\t31,31,16\n\txor\t28,28,17\n\tvperm\t3,3,3,19\n\tvperm\t7,7,7,19\n\tvperm\t11,11,11,19\n\txor\t29,29,18\n\txor\t30,30,19\n\trotlwi\t31,31,16\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7\n\tvadduwm\t10,10,11\n\trotlwi\t28,28,16\n\trotlwi\t29,29,16\n\trotlwi\t30,30,16\n\tvxor\t1,1,2\n\tvxor\t5,5,6\n\tvxor\t9,9,10\n\tadd\t26,26,31\n\tadd\t27,27,28\n\tadd\t24,24,29\n\tvrlw\t1,1,27\n\tvrlw\t5,5,27\n\tvrlw\t9,9,27\n\tadd\t25,25,30\n\txor\t21,21,26\n\txor\t22,22,27\n\tvadduwm\t0,0,1\n\tvadduwm\t4,4,5\n\tvadduwm\t8,8,9\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,12\n\tvxor\t3,3,0\n\tvxor\t7,7,4\n\tvxor\t11,11,8\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\trotlwi\t20,20,12\n\tvperm\t3,3,3,23\n\tvperm\t7,7,7,23\n\tvperm\t11,11,11,23\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 641, "line_end": 700}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:18", "text": "vadduwm\t0,0,1\n\tvadduwm\t4,4,5\n\tvadduwm\t8,8,9\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,12\n\tvxor\t3,3,0\n\tvxor\t7,7,4\n\tvxor\t11,11,8\n\trotlwi\t22,22,12\n\trotlwi\t23,23,12\n\trotlwi\t20,20,12\n\tvperm\t3,3,3,23\n\tvperm\t7,7,7,23\n\tvperm\t11,11,11,23\n\tadd\t16,16,21\n\tadd\t17,17,22\n\tadd\t18,18,23\n\tvadduwm\t2,2,3\n\tvadduwm\t6,6,7\n\tvadduwm\t10,10,11\n\tadd\t19,19,20\n\txor\t31,31,16\n\txor\t28,28,17\n\tvxor\t1,1,2\n\tvxor\t5,5,6\n\tvxor\t9,9,10\n\txor\t29,29,18\n\txor\t30,30,19\n\trotlwi\t31,31,8\n\tvrlw\t1,1,28\n\tvrlw\t5,5,28\n\tvrlw\t9,9,28\n\trotlwi\t28,28,8\n\trotlwi\t29,29,8\n\trotlwi\t30,30,8\n\tvsldoi\t2,2,2, 16-8\n\tvsldoi\t6,6,6, 16-8\n\tvsldoi\t10,10,10, 16-8\n\tadd\t26,26,31\n\tadd\t27,27,28\n\tadd\t24,24,29\n\tvsldoi\t1,1,1, 16-4\n\tvsldoi\t5,5,5, 16-4\n\tvsldoi\t9,9,9, 16-4\n\tadd\t25,25,30\n\txor\t21,21,26\n\txor\t22,22,27\n\tvsldoi\t3,3,3, 16-12\n\tvsldoi\t7,7,7, 16-12\n\tvsldoi\t11,11,11, 16-12\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,7\n\trotlwi\t22,22,7\n\trotlwi\t23,23,7\n\trotlwi\t20,20,7\n\tbc\t16,0,.Loop_vmx\n\n\tsubi\t5,5,256", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 681, "line_end": 740}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:19", "text": "add\t27,27,28\n\tadd\t24,24,29\n\tvsldoi\t1,1,1, 16-4\n\tvsldoi\t5,5,5, 16-4\n\tvsldoi\t9,9,9, 16-4\n\tadd\t25,25,30\n\txor\t21,21,26\n\txor\t22,22,27\n\tvsldoi\t3,3,3, 16-12\n\tvsldoi\t7,7,7, 16-12\n\tvsldoi\t11,11,11, 16-12\n\txor\t23,23,24\n\txor\t20,20,25\n\trotlwi\t21,21,7\n\trotlwi\t22,22,7\n\trotlwi\t23,23,7\n\trotlwi\t20,20,7\n\tbc\t16,0,.Loop_vmx\n\n\tsubi\t5,5,256\n\taddi\t16,16,0x7865\n\taddi\t17,17,0x646e\n\taddi\t18,18,0x2d32\n\taddi\t19,19,0x6574\n\taddis\t16,16,0x6170\n\taddis\t17,17,0x3320\n\taddis\t18,18,0x7962\n\taddis\t19,19,0x6b20\n\tadd\t20,20,7\n\tlwz\t7,16(6)\n\tadd\t21,21,8\n\tlwz\t8,20(6)\n\tadd\t22,22,9\n\tlwz\t9,24(6)\n\tadd\t23,23,10\n\tlwz\t10,28(6)\n\tadd\t24,24,7\n\tadd\t25,25,8\n\tadd\t26,26,9\n\tadd\t27,27,10\n\tadd\t28,28,11\n\tadd\t29,29,12\n\tadd\t30,30,14\n\tadd\t31,31,15\n\n\tvadduwm\t0,0,12\n\tvadduwm\t4,4,12\n\tvadduwm\t8,8,12\n\tvadduwm\t1,1,13\n\tvadduwm\t5,5,13\n\tvadduwm\t9,9,13\n\tvadduwm\t2,2,14\n\tvadduwm\t6,6,14\n\tvadduwm\t10,10,14\n\tvadduwm\t3,3,15\n\tvadduwm\t7,7,16\n\tvadduwm\t11,11,17\n\n\taddi\t11,11,4\n\tvadduwm\t15,15,18", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 721, "line_end": 780}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:20", "text": "add\t28,28,11\n\tadd\t29,29,12\n\tadd\t30,30,14\n\tadd\t31,31,15\n\n\tvadduwm\t0,0,12\n\tvadduwm\t4,4,12\n\tvadduwm\t8,8,12\n\tvadduwm\t1,1,13\n\tvadduwm\t5,5,13\n\tvadduwm\t9,9,13\n\tvadduwm\t2,2,14\n\tvadduwm\t6,6,14\n\tvadduwm\t10,10,14\n\tvadduwm\t3,3,15\n\tvadduwm\t7,7,16\n\tvadduwm\t11,11,17\n\n\taddi\t11,11,4\n\tvadduwm\t15,15,18\n\tvadduwm\t16,16,18\n\tvadduwm\t17,17,18\n\n\tmr\t7,16\n\trotlwi\t16,16,8\n\trlwimi\t16,7,24,0,7\n\trlwimi\t16,7,24,16,23\n\tmr\t8,17\n\trotlwi\t17,17,8\n\trlwimi\t17,8,24,0,7\n\trlwimi\t17,8,24,16,23\n\tmr\t9,18\n\trotlwi\t18,18,8\n\trlwimi\t18,9,24,0,7\n\trlwimi\t18,9,24,16,23\n\tmr\t10,19\n\trotlwi\t19,19,8\n\trlwimi\t19,10,24,0,7\n\trlwimi\t19,10,24,16,23\n\tmr\t7,20\n\trotlwi\t20,20,8\n\trlwimi\t20,7,24,0,7\n\trlwimi\t20,7,24,16,23\n\tmr\t8,21\n\trotlwi\t21,21,8\n\trlwimi\t21,8,24,0,7\n\trlwimi\t21,8,24,16,23\n\tmr\t9,22\n\trotlwi\t22,22,8\n\trlwimi\t22,9,24,0,7\n\trlwimi\t22,9,24,16,23\n\tmr\t10,23\n\trotlwi\t23,23,8\n\trlwimi\t23,10,24,0,7\n\trlwimi\t23,10,24,16,23\n\tmr\t7,24\n\trotlwi\t24,24,8\n\trlwimi\t24,7,24,0,7\n\trlwimi\t24,7,24,16,23\n\tmr\t8,25", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 761, "line_end": 820}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:21", "text": "rotlwi\t20,20,8\n\trlwimi\t20,7,24,0,7\n\trlwimi\t20,7,24,16,23\n\tmr\t8,21\n\trotlwi\t21,21,8\n\trlwimi\t21,8,24,0,7\n\trlwimi\t21,8,24,16,23\n\tmr\t9,22\n\trotlwi\t22,22,8\n\trlwimi\t22,9,24,0,7\n\trlwimi\t22,9,24,16,23\n\tmr\t10,23\n\trotlwi\t23,23,8\n\trlwimi\t23,10,24,0,7\n\trlwimi\t23,10,24,16,23\n\tmr\t7,24\n\trotlwi\t24,24,8\n\trlwimi\t24,7,24,0,7\n\trlwimi\t24,7,24,16,23\n\tmr\t8,25\n\trotlwi\t25,25,8\n\trlwimi\t25,8,24,0,7\n\trlwimi\t25,8,24,16,23\n\tmr\t9,26\n\trotlwi\t26,26,8\n\trlwimi\t26,9,24,0,7\n\trlwimi\t26,9,24,16,23\n\tmr\t10,27\n\trotlwi\t27,27,8\n\trlwimi\t27,10,24,0,7\n\trlwimi\t27,10,24,16,23\n\tmr\t7,28\n\trotlwi\t28,28,8\n\trlwimi\t28,7,24,0,7\n\trlwimi\t28,7,24,16,23\n\tmr\t8,29\n\trotlwi\t29,29,8\n\trlwimi\t29,8,24,0,7\n\trlwimi\t29,8,24,16,23\n\tmr\t9,30\n\trotlwi\t30,30,8\n\trlwimi\t30,9,24,0,7\n\trlwimi\t30,9,24,16,23\n\tmr\t10,31\n\trotlwi\t31,31,8\n\trlwimi\t31,10,24,0,7\n\trlwimi\t31,10,24,16,23\n\tlwz\t7,0(4)\n\tlwz\t8,4(4)\n\tlwz\t9,8(4)\n\tlwz\t10,12(4)\n\txor\t16,16,7\n\tlwz\t7,16(4)\n\txor\t17,17,8\n\tlwz\t8,20(4)\n\txor\t18,18,9\n\tlwz\t9,24(4)\n\txor\t19,19,10\n\tlwz\t10,28(4)\n\txor\t20,20,7", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 801, "line_end": 860}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:22", "text": "rotlwi\t30,30,8\n\trlwimi\t30,9,24,0,7\n\trlwimi\t30,9,24,16,23\n\tmr\t10,31\n\trotlwi\t31,31,8\n\trlwimi\t31,10,24,0,7\n\trlwimi\t31,10,24,16,23\n\tlwz\t7,0(4)\n\tlwz\t8,4(4)\n\tlwz\t9,8(4)\n\tlwz\t10,12(4)\n\txor\t16,16,7\n\tlwz\t7,16(4)\n\txor\t17,17,8\n\tlwz\t8,20(4)\n\txor\t18,18,9\n\tlwz\t9,24(4)\n\txor\t19,19,10\n\tlwz\t10,28(4)\n\txor\t20,20,7\n\tlwz\t7,32(4)\n\txor\t21,21,8\n\tlwz\t8,36(4)\n\txor\t22,22,9\n\tlwz\t9,40(4)\n\txor\t23,23,10\n\tlwz\t10,44(4)\n\txor\t24,24,7\n\tlwz\t7,48(4)\n\txor\t25,25,8\n\tlwz\t8,52(4)\n\txor\t26,26,9\n\tlwz\t9,56(4)\n\txor\t27,27,10\n\tlwz\t10,60(4)\n\txor\t28,28,7\n\tstw\t16,0(3)\n\txor\t29,29,8\n\tstw\t17,4(3)\n\txor\t30,30,9\n\tstw\t18,8(3)\n\txor\t31,31,10\n\tstw\t19,12(3)\n\taddi\t4,4,64\n\tstw\t20,16(3)\n\tli\t7,16\n\tstw\t21,20(3)\n\tli\t8,32\n\tstw\t22,24(3)\n\tli\t9,48\n\tstw\t23,28(3)\n\tli\t10,64\n\tstw\t24,32(3)\n\tstw\t25,36(3)\n\tstw\t26,40(3)\n\tstw\t27,44(3)\n\tstw\t28,48(3)\n\tstw\t29,52(3)\n\tstw\t30,56(3)\n\tstw\t31,60(3)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 841, "line_end": 900}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:23", "text": "stw\t18,8(3)\n\txor\t31,31,10\n\tstw\t19,12(3)\n\taddi\t4,4,64\n\tstw\t20,16(3)\n\tli\t7,16\n\tstw\t21,20(3)\n\tli\t8,32\n\tstw\t22,24(3)\n\tli\t9,48\n\tstw\t23,28(3)\n\tli\t10,64\n\tstw\t24,32(3)\n\tstw\t25,36(3)\n\tstw\t26,40(3)\n\tstw\t27,44(3)\n\tstw\t28,48(3)\n\tstw\t29,52(3)\n\tstw\t30,56(3)\n\tstw\t31,60(3)\n\taddi\t3,3,64\n\n\tlvx\t27,0,4\n\tlvx\t28,7,4\n\tlvx\t29,8,4\n\tlvx\t30,9,4\n\tlvx\t31,10,4\n\taddi\t4,4,64\n\n\tvperm\t27,27,28,24\n\tvperm\t28,28,29,24\n\tvperm\t29,29,30,24\n\tvperm\t30,30,31,24\n\tvxor\t0,0,27\n\tvxor\t1,1,28\n\tlvx\t28,7,4\n\tvxor\t2,2,29\n\tlvx\t29,8,4\n\tvxor\t3,3,30\n\tlvx\t30,9,4\n\tlvx\t27,10,4\n\taddi\t4,4,64\n\tli\t10,63\n\tvperm\t0,0,0,25\n\tvperm\t1,1,1,25\n\tvperm\t2,2,2,25\n\tvperm\t3,3,3,25\n\n\tvperm\t31,31,28,24\n\tvperm\t28,28,29,24\n\tvperm\t29,29,30,24\n\tvperm\t30,30,27,24\n\tvxor\t4,4,31\n\tvxor\t5,5,28\n\tlvx\t28,7,4\n\tvxor\t6,6,29\n\tlvx\t29,8,4\n\tvxor\t7,7,30\n\tlvx\t30,9,4\n\tlvx\t31,10,4", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 881, "line_end": 940}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:24", "text": "lvx\t27,10,4\n\taddi\t4,4,64\n\tli\t10,63\n\tvperm\t0,0,0,25\n\tvperm\t1,1,1,25\n\tvperm\t2,2,2,25\n\tvperm\t3,3,3,25\n\n\tvperm\t31,31,28,24\n\tvperm\t28,28,29,24\n\tvperm\t29,29,30,24\n\tvperm\t30,30,27,24\n\tvxor\t4,4,31\n\tvxor\t5,5,28\n\tlvx\t28,7,4\n\tvxor\t6,6,29\n\tlvx\t29,8,4\n\tvxor\t7,7,30\n\tlvx\t30,9,4\n\tlvx\t31,10,4\n\taddi\t4,4,64\n\tvperm\t4,4,4,25\n\tvperm\t5,5,5,25\n\tvperm\t6,6,6,25\n\tvperm\t7,7,7,25\n\n\tvperm\t27,27,28,24\n\tvperm\t28,28,29,24\n\tvperm\t29,29,30,24\n\tvperm\t30,30,31,24\n\tvxor\t8,8,27\n\tvxor\t9,9,28\n\tvxor\t10,10,29\n\tvxor\t11,11,30\n\tvperm\t8,8,8,25\n\tvperm\t9,9,9,25\n\tvperm\t10,10,10,25\n\tvperm\t11,11,11,25\n\n\tandi.\t17,3,15\n\tmr\t16,3\n\n\tvsel\t27,0,1,26\n\tvsel\t28,1,2,26\n\tvsel\t29,2,3,26\n\tvsel\t30,3,4,26\n\tvsel\t1,4,5,26\n\tvsel\t2,5,6,26\n\tvsel\t3,6,7,26\n\tvsel\t4,7,8,26\n\tvsel\t5,8,9,26\n\tvsel\t6,9,10,26\n\tvsel\t7,10,11,26\n\n\n\tstvx\t27,7,3\n\tstvx\t28,8,3\n\tstvx\t29,9,3\n\taddi\t3,3,64\n\tstvx\t30,0,3", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 921, "line_end": 980}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:25", "text": "mr\t16,3\n\n\tvsel\t27,0,1,26\n\tvsel\t28,1,2,26\n\tvsel\t29,2,3,26\n\tvsel\t30,3,4,26\n\tvsel\t1,4,5,26\n\tvsel\t2,5,6,26\n\tvsel\t3,6,7,26\n\tvsel\t4,7,8,26\n\tvsel\t5,8,9,26\n\tvsel\t6,9,10,26\n\tvsel\t7,10,11,26\n\n\n\tstvx\t27,7,3\n\tstvx\t28,8,3\n\tstvx\t29,9,3\n\taddi\t3,3,64\n\tstvx\t30,0,3\n\tstvx\t1,7,3\n\tstvx\t2,8,3\n\tstvx\t3,9,3\n\taddi\t3,3,64\n\tstvx\t4,0,3\n\tstvx\t5,7,3\n\tstvx\t6,8,3\n\tstvx\t7,9,3\n\taddi\t3,3,64\n\n\tbeq\t.Laligned_vmx\n\n\tsub\t18,3,17\n\tli\t19,0\n.Lunaligned_tail_vmx:\n\tstvebx\t11,19,18\n\taddi\t19,19,1\n\tcmpw\t19,17\n\tbne\t.Lunaligned_tail_vmx\n\n\tsub\t18,16,17\n.Lunaligned_head_vmx:\n\tstvebx\t0,17,18\n\tcmpwi\t17,15\n\taddi\t17,17,1\n\tbne\t.Lunaligned_head_vmx\n\n\tcmplwi\t5,255\n\tbgt\t.Loop_outer_vmx\n\n\tb\t.Ldone_vmx\n\n.align\t4\n.Laligned_vmx:\n\tstvx\t0,0,16\n\n\tcmplwi\t5,255\n\tbgt\t.Loop_outer_vmx\n\tnop", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 961, "line_end": 1020}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:26", "text": "sub\t18,16,17\n.Lunaligned_head_vmx:\n\tstvebx\t0,17,18\n\tcmpwi\t17,15\n\taddi\t17,17,1\n\tbne\t.Lunaligned_head_vmx\n\n\tcmplwi\t5,255\n\tbgt\t.Loop_outer_vmx\n\n\tb\t.Ldone_vmx\n\n.align\t4\n.Laligned_vmx:\n\tstvx\t0,0,16\n\n\tcmplwi\t5,255\n\tbgt\t.Loop_outer_vmx\n\tnop\n\n.Ldone_vmx:\n\tcmplwi\t5,0\n\tbnel\t__ChaCha20_1x\n\n\tlwz\t12,244(1)\n\tli\t10,103\n\tli\t11,119\n\tmtspr\t256,12\n\tlvx\t23,10,1\n\taddi\t10,10,32\n\tlvx\t24,11,1\n\taddi\t11,11,32\n\tlvx\t25,10,1\n\taddi\t10,10,32\n\tlvx\t26,11,1\n\taddi\t11,11,32\n\tlvx\t27,10,1\n\taddi\t10,10,32\n\tlvx\t28,11,1\n\taddi\t11,11,32\n\tlvx\t29,10,1\n\taddi\t10,10,32\n\tlvx\t30,11,1\n\tlvx\t31,10,1\n\tlwz\t0, 324(1)\n\tlwz\t14,248(1)\n\tlwz\t15,252(1)\n\tlwz\t16,256(1)\n\tlwz\t17,260(1)\n\tlwz\t18,264(1)\n\tlwz\t19,268(1)\n\tlwz\t20,272(1)\n\tlwz\t21,276(1)\n\tlwz\t22,280(1)\n\tlwz\t23,284(1)\n\tlwz\t24,288(1)\n\tlwz\t25,292(1)\n\tlwz\t26,296(1)\n\tlwz\t27,300(1)\n\tlwz\t28,304(1)", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1001, "line_end": 1060}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:27", "text": "lvx\t29,10,1\n\taddi\t10,10,32\n\tlvx\t30,11,1\n\tlvx\t31,10,1\n\tlwz\t0, 324(1)\n\tlwz\t14,248(1)\n\tlwz\t15,252(1)\n\tlwz\t16,256(1)\n\tlwz\t17,260(1)\n\tlwz\t18,264(1)\n\tlwz\t19,268(1)\n\tlwz\t20,272(1)\n\tlwz\t21,276(1)\n\tlwz\t22,280(1)\n\tlwz\t23,284(1)\n\tlwz\t24,288(1)\n\tlwz\t25,292(1)\n\tlwz\t26,296(1)\n\tlwz\t27,300(1)\n\tlwz\t28,304(1)\n\tlwz\t29,308(1)\n\tlwz\t30,312(1)\n\tlwz\t31,316(1)\n\tmtlr\t0\n\taddi\t1,1,320\n\tblr\n.long\t0\n.byte\t0,12,0x04,1,0x80,18,5,0\n.long\t0\n\n\n.globl\tChaCha20_ctr32_vsx\n.type\tChaCha20_ctr32_vsx,@function\n.align\t5\nChaCha20_ctr32_vsx:\n\tstwu\t1,-200(1)\n\tmflr\t0\n\tli\t10,103\n\tli\t11,119\n\tmfspr\t12,256\n\tstvx\t26,10,1\n\taddi\t10,10,32\n\tstvx\t27,11,1\n\taddi\t11,11,32\n\tstvx\t28,10,1\n\taddi\t10,10,32\n\tstvx\t29,11,1\n\taddi\t11,11,32\n\tstvx\t30,10,1\n\tstvx\t31,11,1\n\tstw\t12,196(1)\n\tli\t12,-4096+63\n\tstw\t0, 204(1)\n\tmtspr\t256,12\n\n\tbl\t.Lconsts\n.long\t0x7E006619\n\taddi\t12,12,0x50\n\tli\t8,16\n\tli\t9,32", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1041, "line_end": 1100}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:28", "text": "stvx\t26,10,1\n\taddi\t10,10,32\n\tstvx\t27,11,1\n\taddi\t11,11,32\n\tstvx\t28,10,1\n\taddi\t10,10,32\n\tstvx\t29,11,1\n\taddi\t11,11,32\n\tstvx\t30,10,1\n\tstvx\t31,11,1\n\tstw\t12,196(1)\n\tli\t12,-4096+63\n\tstw\t0, 204(1)\n\tmtspr\t256,12\n\n\tbl\t.Lconsts\n.long\t0x7E006619\n\taddi\t12,12,0x50\n\tli\t8,16\n\tli\t9,32\n\tli\t10,48\n\tli\t11,64\n\n.long\t0x7E203619\n.long\t0x7E483619\n.long\t0x7E603E19\n\n\tvxor\t27,27,27\n.long\t0x7F8B6619\n\tvspltw\t26,19,0\n\tvsldoi\t19,19,27,4\n\tvsldoi\t19,27,19,12\n\tvadduwm\t26,26,28\n\n\tlvsl\t31,0,8\n\tvspltisb\t27,3\n\tvxor\t31,31,27\n\n\tli\t0,10\n\tmtctr\t0\n\tb\t.Loop_outer_vsx\n\n.align\t5\n.Loop_outer_vsx:\n\tlvx\t0,0,12\n\tlvx\t1,8,12\n\tlvx\t2,9,12\n\tlvx\t3,10,12\n\n\tvspltw\t4,17,0\n\tvspltw\t5,17,1\n\tvspltw\t6,17,2\n\tvspltw\t7,17,3\n\n\tvspltw\t8,18,0\n\tvspltw\t9,18,1\n\tvspltw\t10,18,2\n\tvspltw\t11,18,3\n\n\tvor\t12,26,26", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1081, "line_end": 1140}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:29", "text": "b\t.Loop_outer_vsx\n\n.align\t5\n.Loop_outer_vsx:\n\tlvx\t0,0,12\n\tlvx\t1,8,12\n\tlvx\t2,9,12\n\tlvx\t3,10,12\n\n\tvspltw\t4,17,0\n\tvspltw\t5,17,1\n\tvspltw\t6,17,2\n\tvspltw\t7,17,3\n\n\tvspltw\t8,18,0\n\tvspltw\t9,18,1\n\tvspltw\t10,18,2\n\tvspltw\t11,18,3\n\n\tvor\t12,26,26\n\tvspltw\t13,19,1\n\tvspltw\t14,19,2\n\tvspltw\t15,19,3\n\n\tvspltisw\t27,-16\n\tvspltisw\t28,12\n\tvspltisw\t29,8\n\tvspltisw\t30,7\n\n.Loop_vsx:\n\tvadduwm\t0,0,4\n\tvadduwm\t1,1,5\n\tvadduwm\t2,2,6\n\tvadduwm\t3,3,7\n\tvxor\t12,12,0\n\tvxor\t13,13,1\n\tvxor\t14,14,2\n\tvxor\t15,15,3\n\tvrlw\t12,12,27\n\tvrlw\t13,13,27\n\tvrlw\t14,14,27\n\tvrlw\t15,15,27\n\tvadduwm\t8,8,12\n\tvadduwm\t9,9,13\n\tvadduwm\t10,10,14\n\tvadduwm\t11,11,15\n\tvxor\t4,4,8\n\tvxor\t5,5,9\n\tvxor\t6,6,10\n\tvxor\t7,7,11\n\tvrlw\t4,4,28\n\tvrlw\t5,5,28\n\tvrlw\t6,6,28\n\tvrlw\t7,7,28\n\tvadduwm\t0,0,4\n\tvadduwm\t1,1,5\n\tvadduwm\t2,2,6\n\tvadduwm\t3,3,7\n\tvxor\t12,12,0\n\tvxor\t13,13,1", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1121, "line_end": 1180}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:30", "text": "vrlw\t14,14,27\n\tvrlw\t15,15,27\n\tvadduwm\t8,8,12\n\tvadduwm\t9,9,13\n\tvadduwm\t10,10,14\n\tvadduwm\t11,11,15\n\tvxor\t4,4,8\n\tvxor\t5,5,9\n\tvxor\t6,6,10\n\tvxor\t7,7,11\n\tvrlw\t4,4,28\n\tvrlw\t5,5,28\n\tvrlw\t6,6,28\n\tvrlw\t7,7,28\n\tvadduwm\t0,0,4\n\tvadduwm\t1,1,5\n\tvadduwm\t2,2,6\n\tvadduwm\t3,3,7\n\tvxor\t12,12,0\n\tvxor\t13,13,1\n\tvxor\t14,14,2\n\tvxor\t15,15,3\n\tvrlw\t12,12,29\n\tvrlw\t13,13,29\n\tvrlw\t14,14,29\n\tvrlw\t15,15,29\n\tvadduwm\t8,8,12\n\tvadduwm\t9,9,13\n\tvadduwm\t10,10,14\n\tvadduwm\t11,11,15\n\tvxor\t4,4,8\n\tvxor\t5,5,9\n\tvxor\t6,6,10\n\tvxor\t7,7,11\n\tvrlw\t4,4,30\n\tvrlw\t5,5,30\n\tvrlw\t6,6,30\n\tvrlw\t7,7,30\n\tvadduwm\t0,0,5\n\tvadduwm\t1,1,6\n\tvadduwm\t2,2,7\n\tvadduwm\t3,3,4\n\tvxor\t15,15,0\n\tvxor\t12,12,1\n\tvxor\t13,13,2\n\tvxor\t14,14,3\n\tvrlw\t15,15,27\n\tvrlw\t12,12,27\n\tvrlw\t13,13,27\n\tvrlw\t14,14,27\n\tvadduwm\t10,10,15\n\tvadduwm\t11,11,12\n\tvadduwm\t8,8,13\n\tvadduwm\t9,9,14\n\tvxor\t5,5,10\n\tvxor\t6,6,11\n\tvxor\t7,7,8\n\tvxor\t4,4,9\n\tvrlw\t5,5,28\n\tvrlw\t6,6,28", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1161, "line_end": 1220}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:31", "text": "vadduwm\t2,2,7\n\tvadduwm\t3,3,4\n\tvxor\t15,15,0\n\tvxor\t12,12,1\n\tvxor\t13,13,2\n\tvxor\t14,14,3\n\tvrlw\t15,15,27\n\tvrlw\t12,12,27\n\tvrlw\t13,13,27\n\tvrlw\t14,14,27\n\tvadduwm\t10,10,15\n\tvadduwm\t11,11,12\n\tvadduwm\t8,8,13\n\tvadduwm\t9,9,14\n\tvxor\t5,5,10\n\tvxor\t6,6,11\n\tvxor\t7,7,8\n\tvxor\t4,4,9\n\tvrlw\t5,5,28\n\tvrlw\t6,6,28\n\tvrlw\t7,7,28\n\tvrlw\t4,4,28\n\tvadduwm\t0,0,5\n\tvadduwm\t1,1,6\n\tvadduwm\t2,2,7\n\tvadduwm\t3,3,4\n\tvxor\t15,15,0\n\tvxor\t12,12,1\n\tvxor\t13,13,2\n\tvxor\t14,14,3\n\tvrlw\t15,15,29\n\tvrlw\t12,12,29\n\tvrlw\t13,13,29\n\tvrlw\t14,14,29\n\tvadduwm\t10,10,15\n\tvadduwm\t11,11,12\n\tvadduwm\t8,8,13\n\tvadduwm\t9,9,14\n\tvxor\t5,5,10\n\tvxor\t6,6,11\n\tvxor\t7,7,8\n\tvxor\t4,4,9\n\tvrlw\t5,5,30\n\tvrlw\t6,6,30\n\tvrlw\t7,7,30\n\tvrlw\t4,4,30\n\tbc\t16,0,.Loop_vsx\n\n\tvadduwm\t12,12,26\n\n.long\t0x13600F8C\n.long\t0x13821F8C\n.long\t0x10000E8C\n.long\t0x10421E8C\n.long\t0x13A42F8C\n.long\t0x13C63F8C\n.long\t0xF0201057\n.long\t0xF0601357\n.long\t0xF01BE057\n.long\t0xF05BE357", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1201, "line_end": 1260}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:32", "text": "vxor\t7,7,8\n\tvxor\t4,4,9\n\tvrlw\t5,5,30\n\tvrlw\t6,6,30\n\tvrlw\t7,7,30\n\tvrlw\t4,4,30\n\tbc\t16,0,.Loop_vsx\n\n\tvadduwm\t12,12,26\n\n.long\t0x13600F8C\n.long\t0x13821F8C\n.long\t0x10000E8C\n.long\t0x10421E8C\n.long\t0x13A42F8C\n.long\t0x13C63F8C\n.long\t0xF0201057\n.long\t0xF0601357\n.long\t0xF01BE057\n.long\t0xF05BE357\n\n.long\t0x10842E8C\n.long\t0x10C63E8C\n.long\t0x13684F8C\n.long\t0x138A5F8C\n.long\t0xF0A43057\n.long\t0xF0E43357\n.long\t0xF09DF057\n.long\t0xF0DDF357\n\n.long\t0x11084E8C\n.long\t0x114A5E8C\n.long\t0x13AC6F8C\n.long\t0x13CE7F8C\n.long\t0xF1285057\n.long\t0xF1685357\n.long\t0xF11BE057\n.long\t0xF15BE357\n\n.long\t0x118C6E8C\n.long\t0x11CE7E8C\n\tvspltisw\t27,4\n\tvadduwm\t26,26,27\n.long\t0xF1AC7057\n.long\t0xF1EC7357\n.long\t0xF19DF057\n.long\t0xF1DDF357\n\n\tvadduwm\t0,0,16\n\tvadduwm\t4,4,17\n\tvadduwm\t8,8,18\n\tvadduwm\t12,12,19\n\n\tvperm\t0,0,0,31\n\tvperm\t4,4,4,31\n\tvperm\t8,8,8,31\n\tvperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1241, "line_end": 1300}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:33", "text": ".long\t0x11CE7E8C\n\tvspltisw\t27,4\n\tvadduwm\t26,26,27\n.long\t0xF1AC7057\n.long\t0xF1EC7357\n.long\t0xF19DF057\n.long\t0xF1DDF357\n\n\tvadduwm\t0,0,16\n\tvadduwm\t4,4,17\n\tvadduwm\t8,8,18\n\tvadduwm\t12,12,19\n\n\tvperm\t0,0,0,31\n\tvperm\t4,4,4,31\n\tvperm\t8,8,8,31\n\tvperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx\n\n.long\t0x7F602619\n.long\t0x7F882619\n.long\t0x7FA92619\n.long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4\n\tvxor\t29,29,8\n\tvxor\t30,30,12\n\n.long\t0x7F601F19\n.long\t0x7F881F19\n\taddi\t4,4,0x40\n.long\t0x7FA91F19\n\tsubi\t5,5,0x40\n.long\t0x7FCA1F19\n\taddi\t3,3,0x40\n\tbeq\t.Ldone_vsx\n\n\tvadduwm\t0,1,16\n\tvadduwm\t4,5,17\n\tvadduwm\t8,9,18\n\tvadduwm\t12,13,19\n\n\tvperm\t0,0,0,31\n\tvperm\t4,4,4,31\n\tvperm\t8,8,8,31\n\tvperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx\n\n.long\t0x7F602619\n.long\t0x7F882619\n.long\t0x7FA92619\n.long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1281, "line_end": 1340}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:34", "text": "vadduwm\t0,1,16\n\tvadduwm\t4,5,17\n\tvadduwm\t8,9,18\n\tvadduwm\t12,13,19\n\n\tvperm\t0,0,0,31\n\tvperm\t4,4,4,31\n\tvperm\t8,8,8,31\n\tvperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx\n\n.long\t0x7F602619\n.long\t0x7F882619\n.long\t0x7FA92619\n.long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4\n\tvxor\t29,29,8\n\tvxor\t30,30,12\n\n.long\t0x7F601F19\n.long\t0x7F881F19\n\taddi\t4,4,0x40\n.long\t0x7FA91F19\n\tsubi\t5,5,0x40\n.long\t0x7FCA1F19\n\taddi\t3,3,0x40\n\tbeq\t.Ldone_vsx\n\n\tvadduwm\t0,2,16\n\tvadduwm\t4,6,17\n\tvadduwm\t8,10,18\n\tvadduwm\t12,14,19\n\n\tvperm\t0,0,0,31\n\tvperm\t4,4,4,31\n\tvperm\t8,8,8,31\n\tvperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx\n\n.long\t0x7F602619\n.long\t0x7F882619\n.long\t0x7FA92619\n.long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4\n\tvxor\t29,29,8\n\tvxor\t30,30,12\n\n.long\t0x7F601F19\n.long\t0x7F881F19\n\taddi\t4,4,0x40\n.long\t0x7FA91F19\n\tsubi\t5,5,0x40", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1321, "line_end": 1380}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:35", "text": "vperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx\n\n.long\t0x7F602619\n.long\t0x7F882619\n.long\t0x7FA92619\n.long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4\n\tvxor\t29,29,8\n\tvxor\t30,30,12\n\n.long\t0x7F601F19\n.long\t0x7F881F19\n\taddi\t4,4,0x40\n.long\t0x7FA91F19\n\tsubi\t5,5,0x40\n.long\t0x7FCA1F19\n\taddi\t3,3,0x40\n\tbeq\t.Ldone_vsx\n\n\tvadduwm\t0,3,16\n\tvadduwm\t4,7,17\n\tvadduwm\t8,11,18\n\tvadduwm\t12,15,19\n\n\tvperm\t0,0,0,31\n\tvperm\t4,4,4,31\n\tvperm\t8,8,8,31\n\tvperm\t12,12,12,31\n\n\tcmplwi\t5,0x40\n\tblt\t.Ltail_vsx\n\n.long\t0x7F602619\n.long\t0x7F882619\n.long\t0x7FA92619\n.long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4\n\tvxor\t29,29,8\n\tvxor\t30,30,12\n\n.long\t0x7F601F19\n.long\t0x7F881F19\n\taddi\t4,4,0x40\n.long\t0x7FA91F19\n\tsubi\t5,5,0x40\n.long\t0x7FCA1F19\n\taddi\t3,3,0x40\n\tmtctr\t0\n\tbne\t.Loop_outer_vsx\n\n.Ldone_vsx:\n\tlwz\t12,196(1)\n\tli\t10,103", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1361, "line_end": 1420}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:36", "text": ".long\t0x7FCA2619\n\n\tvxor\t27,27,0\n\tvxor\t28,28,4\n\tvxor\t29,29,8\n\tvxor\t30,30,12\n\n.long\t0x7F601F19\n.long\t0x7F881F19\n\taddi\t4,4,0x40\n.long\t0x7FA91F19\n\tsubi\t5,5,0x40\n.long\t0x7FCA1F19\n\taddi\t3,3,0x40\n\tmtctr\t0\n\tbne\t.Loop_outer_vsx\n\n.Ldone_vsx:\n\tlwz\t12,196(1)\n\tli\t10,103\n\tli\t11,119\n\tlwz\t0, 204(1)\n\tmtspr\t256,12\n\tlvx\t26,10,1\n\taddi\t10,10,32\n\tlvx\t27,11,1\n\taddi\t11,11,32\n\tlvx\t28,10,1\n\taddi\t10,10,32\n\tlvx\t29,11,1\n\taddi\t11,11,32\n\tlvx\t30,10,1\n\tlvx\t31,11,1\n\tmtlr\t0\n\taddi\t1,1,200\n\tblr\n\n.align\t4\n.Ltail_vsx:\n\taddi\t11,1,24\n\tmtctr\t5\n.long\t0x7C005F19\n.long\t0x7C885F19\n.long\t0x7D095F19\n.long\t0x7D8A5F19\n\tsubi\t12,11,1\n\tsubi\t4,4,1\n\tsubi\t3,3,1\n\n.Loop_tail_vsx:\n\tlbzu\t6,1(12)\n\tlbzu\t7,1(4)\n\txor\t6,6,7\n\tstbu\t6,1(3)\n\tbc\t16,0,.Loop_tail_vsx\n\n.long\t0x7E005F19\n.long\t0x7E085F19\n.long\t0x7E095F19\n.long\t0x7E0A5F19", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1401, "line_end": 1460}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:37", "text": "mtctr\t5\n.long\t0x7C005F19\n.long\t0x7C885F19\n.long\t0x7D095F19\n.long\t0x7D8A5F19\n\tsubi\t12,11,1\n\tsubi\t4,4,1\n\tsubi\t3,3,1\n\n.Loop_tail_vsx:\n\tlbzu\t6,1(12)\n\tlbzu\t7,1(4)\n\txor\t6,6,7\n\tstbu\t6,1(3)\n\tbc\t16,0,.Loop_tail_vsx\n\n.long\t0x7E005F19\n.long\t0x7E085F19\n.long\t0x7E095F19\n.long\t0x7E0A5F19\n\n\tb\t.Ldone_vsx\n.long\t0\n.byte\t0,12,0x04,1,0x80,0,5,0\n.long\t0\n\n.align\t5\n.Lconsts:\n\tmflr\t0\n\tbcl\t20,31,$+4\n\tmflr\t12\n\taddi\t12,12,56\n\tmtlr\t0\n\tblr\n.long\t0\n.byte\t0,12,0x14,0,0,0,0,0\n.space\t28\n.Lsigma:\n.long\t0x61707865,0x3320646e,0x79622d32,0x6b206574\n.long\t1,0,0,0\n.long\t4,0,0,0\n.long\t0x02030001,0x06070405,0x0a0b0809,0x0e0f0c0d\n.long\t0x01020300,0x05060704,0x090a0b08,0x0d0e0f0c\n.long\t0x61707865,0x61707865,0x61707865,0x61707865\n.long\t0x3320646e,0x3320646e,0x3320646e,0x3320646e\n.long\t0x79622d32,0x79622d32,0x79622d32,0x79622d32\n.long\t0x6b206574,0x6b206574,0x6b206574,0x6b206574\n.long\t0,1,2,3\n.byte\t67,104,97,67,104,97,50,48,32,102,111,114,32,80,111,119,101,114,80,67,47,65,108,116,105,86,101,99,44,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1441, "line_end": 1491}
{"id": "NetBSD/src:crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S:38", "text": ".long\t4,0,0,0\n.long\t0x02030001,0x06070405,0x0a0b0809,0x0e0f0c0d\n.long\t0x01020300,0x05060704,0x090a0b08,0x0d0e0f0c\n.long\t0x61707865,0x61707865,0x61707865,0x61707865\n.long\t0x3320646e,0x3320646e,0x3320646e,0x3320646e\n.long\t0x79622d32,0x79622d32,0x79622d32,0x79622d32\n.long\t0x6b206574,0x6b206574,0x6b206574,0x6b206574\n.long\t0,1,2,3\n.byte\t67,104,97,67,104,97,50,48,32,102,111,114,32,80,111,119,101,114,80,67,47,65,108,116,105,86,101,99,44,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0\n.align\t2\n.align\t2", "arch": "powerpc", "syntax": "gas-like", "kind": "handwritten", "repo": "NetBSD/src", "path": "crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "license": "BSD-2-Clause", "commit": "3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd", "source_host": "github", "category": "kernel", "source_url": "https://github.com/NetBSD/src/blob/3f1390c8cc18c3f67a4bd2632f8c7ad919cf86fd/crypto/external/apache2/openssl/lib/libcrypto/arch/powerpc/chacha-ppc.S", "line_start": 1481, "line_end": 1491}
